r3-lib v0.8.2
R3-Lib
Standardizes flow and visuals for Norce Flight (> 5.14) projects
Work in progress ⚠️
TODO
-xChange BoxContent from arg -> children (using ContentPositioner instead)
- Add/use Fontawesome
- Folder with own types (if they are generall otherwise they should live in component)
- Check handeling of fragments in GQL ( dependencies to core aso )
- xCreate Animation wrapper (with a few animation styles)
- Teleprompt component (automatically types text)
- ScrollSnapper
- MarqueeSlider (Finntack)
- General close button + clickcallback
- General context for lib
- Count down component
- Form component ( submit url, children with title, input, validation )
- Documentation goal -> Complete Storybook
- Documentation start -> Add docs to route for dev/stage, add content renderer with components and show info using json
- Add slightly zoom in on image hoover ( use style and Animation wrapper )
- AddToCartButton (Radne)
- QtyAdjuster (Radne)
- Checkbox (Radne)
- xProgressbar
- xShakeStyle
- NotFoundPage
- R3-provider (contains all contexts)
- Device testing
- xUseJsonFetch
- Add regex to CE components
- UI page - presents all components
- xScriptLoader
- xScriptLoaderAttributes (files + json)
- PopupTrigger
- Payment icons
- xSeo components
- Price history component
- xAccordion component
- AccordionBlock ce components
- Change all px -> rem
- xLoader/spinner
- Use lottie animations ?
- xCurtain component
- xPopup component
- PartyTown 🎉
- Add notification handler (Toastify?)
- Notification component
- Add AutoAnimate
- HeadlessUI ( xDialog implemented )
- xMaxWidth component
- ContentColumns component (Radne)
- Add H1 bool for Hero and Box
- Add general tracking
- Add video hero
- Add video box
- Add Parakllax component ( using SwiperJS)
- Add license to package.json
Installation
R3-Lib requires:
Install the package.
- not implemented yet
yarn add r3-lib
Adding component
For adding new component use existing project structure. Naming convention: CamelCase.
- Add a folder width same name as component.
- Add a TypeScript file (Component (ExampleComponent.tsx))
- Add a JavaScript file (CSS style, use suffix .style before .js (ExampleComponent.style.js))
- Add a JavaScript test file (Jest test file (ExampleComponent.test.js))
Component styling file
- import { css } from 'linaria'
- Create an exported const width component name and suffix "Style" (const exampleComponentStyle = css
)
The end
10 months ago
10 months 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
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
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago