@bonlineza/luxity-lib v2.36.3
Luxity Component Library
Includes:
- Documentation
- Storybook
- CHANGELOG
- React Components and base styles
- JS/React Testing suite
- Rollup build system
Components in this Library
- Accordion
- Interests
- Checkbox
- CheckboxFormWrapper
- CountryCodeSelect
- CurrencyInputFormatter
- GraphQLMultiSelector
- InterestCatSelector
- InterestItem
- LuxityGraphQLMultiSelector
- LuxityPageReady
- RadioButtons
- RadioButtonsFormWrapper
- ReactSelectWrapper
- StyleSelector
- Tooltip
- CheckBoxButton
- GenderSelector
- GraphQLDropdownSelector
- LuxityGraphQLDropdownSelector
- MaterialSelector
- ModelSelector
- RareStepHeader
- RareStepFooter
Elements (simple Styled Components)
- Buttons
- PrimaryButton
- SecondaryButton
- TextButton
- InvertedTextButton
- WrapperButton
Helper Functions in this Library
- axios - an axios instance getter
- currency - a currency number formatter
- formatErrors - conditions a laravel validation error into something we can use in our Forms
- notify - simple wrapper to trigger
errororsuccessversions ofreact-notify-toast - simpleRequest - simple wrapper for configuring an axios instance
- themed - a component wrapper function to apply a
ThemeProviderto styled-components with minial syntax - token - token helper functions for getting, and setting
_tknamed cookies
SVGs
- Accessories
- Account
- Add
- ArrowRight
- Bags
- BurgerMenu
- Calendar
- CalendarCircled
- CheckCircled
- Close
- Dot
- Edit
- Eye
- FileAttach
- FileAttachCircled
- LightBulb
- Logo
- LuxityMenu
- Minus
- MobileAvatar
- MyOrder
- MyPayment
- MyProfile
- MySale
- Notification
- PointerDown
- Search
- Shoes
- LuxityArrowLeft
- LuxityArrowRight
Commands
yarn- install npm dependenciesyarn start- Open Storybookyarn docs- run both lint and testsyarn build- generate built js filesyarn build --watch- build and watch filesyarn test- run both lint and testsyarn lint- run linter onlyyarn jest --watch- watch tests (reccomended)
Testing your local Changes in other Projects
tl;dr
- Checkout your Fork of this Repo
- Run this in the fork root folder:
yarn link - Run this in the root folder of the project you would like to use this module:
yarn link @bonlineza/luxity-lib
You will now be able to import this module like any normal npm module like so:
import { Accordion } from '@bonlineza/luxity-lib';or alternatively (preferred)
import Accordion from '@bonlineza/luxity-lib/Accordion';Publish Package
- after testing is complete and your changes have been merged to master in this Library
Prerequisites
- Your personal account on
NPMJS.com - Your Account is added to the
Bonlineza Org- see: https://www.npmjs.com/org/bonlineza
Steps:
- checkout/pull latest UPSTREAM
masterand run... yarn installyarn testyarn build- Update your
Package.jsonversion info (according to SEMVER) - Update you
CHANGELOG.MDandREADME.MDfile with additions/changes yarn loginnpm publish --dry-run- to confirm that your new files will be packaged into the npm reponpm publish- commit the published files to the npm repoyarn docs- generates all documentationyarn build:storybook- ensure static stybook site is up to dateCommitandTAGthis commit with the Tag name the same as the package version number to UPSTREAMmaster- example: 'v2.1.0'
8 months ago
7 months ago
7 months ago
10 months ago
7 months ago
9 months ago
7 months ago
9 months ago
9 months ago
9 months ago
8 months ago
8 months ago
9 months ago
9 months ago
8 months ago
8 months ago
11 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago