0.0.6 • Published 2 years 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'sDoctab in Storybook.
Other File Structure within /src
api/mocks- Mock API data for use within Storybook example componentsapi/product- API fetch callassets- Containsimagesandlogosfoldershelpers- Contains helper functions for updating cookies.introductionMDX documentation about our Storybook component library.scss- Containsvariables.scssandglobal.scsswhich import our Google Fonts.utilities- Contains thetypesfolder
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