0.0.6 • Published 10 months ago
@croissantpay/merchant-components v0.0.6
CRUDS: Croissant Retailer UI Design System
This repo contains our React.js component library for retailers.
Scripts
To run locally:
yarn install && yarn run storybook
Technologies
- Storybook
- React
- Sass
- Typescript
- Jest
Component File Structure
Components are located in the src/components/merchant-components
folder.
Each component contains 3 files:
Component.tsx
- The React component that can be exported and used on the retailer sideComponent.module.css
- The component-specific stylingComponent.stories.mdx
- The MDX documentation, viewable on the component'sDoc
tab in Storybook.
Other File Structure within /src
api/mocks
- Mock API data for use within Storybook example componentsapi/product
- API fetch callassets
- Containsimages
andlogos
foldershelpers
- Contains helper functions for updating cookies.introduction
MDX documentation about our Storybook component library.scss
- Containsvariables.scss
andglobal.scss
which import our Google Fonts.utilities
- Contains thetypes
folder
Storybook Component Library
Visit our Storybook web app that allows developers, designers, PMs, and other stakeholders to check if the UI looks right without touching code or requiring a local dev environment.
URL OF Storybook Component Library
Next Up
- API integration
- Export as Shopify App
- Document A11y standards
- Implement i18n compatibility
- Unit testing with Jest
- Updates to ESLint/Prettier config