@shohojdhara/atomix 0.1.17 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +151 -0
- package/NEXTJS_INTEGRATION.md +358 -0
- package/README.md +168 -119
- package/babel.config.js +58 -0
- package/css.d.ts +10 -0
- package/dist/css/atomix.css +1 -1
- package/dist/js/244.js +1 -0
- package/dist/js/atomix.react.cjs.js +1 -0
- package/dist/js/atomix.react.esm.js +1 -1
- package/dist/js/atomix.react.umd.js +1 -1
- package/dist/js/chunks/cjs/202.9d3b1ef1eaa0d5c8a309.js +1 -0
- package/dist/js/chunks/cjs/308.6ea9685ea38ead4120d0.js +1 -0
- package/dist/js/chunks/cjs/54.73db6922594e421ba6b1.js +1 -0
- package/dist/js/chunks/cjs/619.51feecaadcab819780d4.js +1 -0
- package/dist/js/chunks/cjs/690.90f6d11164081cbcbc4d.js +1 -0
- package/dist/js/chunks/cjs/894.24877561df336a8dfd14.js +1 -0
- package/dist/js/chunks/cjs/897.6c2a71fae95338890de7.js +1 -0
- package/dist/types/components/{Navbar → Navigation/Menu}/MegaMenu.d.ts +1 -1
- package/dist/types/components/{Navbar → Navigation/Menu}/Menu.d.ts +1 -1
- package/dist/types/components/Navigation/Nav/Nav.d.ts +20 -0
- package/dist/types/components/{Navbar → Navigation/Nav}/NavDropdown.d.ts +1 -1
- package/dist/types/components/Navigation/Nav/NavItem.d.ts +33 -0
- package/dist/types/components/Navigation/Navbar/Navbar.d.ts +19 -0
- package/dist/types/components/Navigation/SideMenu/SideMenu.d.ts +20 -0
- package/dist/types/components/Navigation/SideMenu/SideMenuItem.d.ts +30 -0
- package/dist/types/components/Navigation/SideMenu/SideMenuList.d.ts +17 -0
- package/dist/types/components/Navigation/index.d.ts +10 -0
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/lib/composables/index.d.ts +1 -0
- package/dist/types/lib/composables/useSideMenu.d.ts +28 -0
- package/dist/types/lib/constants/components.d.ts +72 -0
- package/dist/types/lib/types/components.d.ts +103 -0
- package/examples/nextjs-example.tsx +271 -0
- package/implementation-guide.md +505 -0
- package/next.config.js +69 -0
- package/package.json +26 -5
- package/postcss.config.js +28 -0
- package/src/Introduction.mdx +44 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-Alternatives.eot +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-Alternatives.ttf +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-Alternatives.woff +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-Alternatives.woff2 +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-Expert.eot +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-Expert.ttf +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-Expert.woff +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-Expert.woff2 +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-ItalicSwash.eot +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-ItalicSwash.ttf +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-ItalicSwash.woff +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-ItalicSwash.woff2 +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-SmallCaps.eot +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-SmallCaps.ttf +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-SmallCaps.woff +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslon-SmallCaps.woff2 +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Black.eot +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Black.ttf +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Black.woff +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Black.woff2 +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-BlackItalic.eot +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-BlackItalic.ttf +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-BlackItalic.woff +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-BlackItalic.woff2 +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Bold.eot +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Bold.ttf +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Bold.woff +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Bold.woff2 +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-BoldItalic.eot +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-BoldItalic.ttf +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-BoldItalic.woff +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-BoldItalic.woff2 +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Italic.eot +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Italic.ttf +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Italic.woff +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Italic.woff2 +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Regular.eot +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Regular.ttf +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Regular.woff +0 -0
- package/src/assets/fonts/BigCaslon/BigCaslonFB-Regular.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Black.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Black.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Black.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Black.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BlackItalic.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BlackItalic.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BlackItalic.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BlackItalic.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Bold.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Bold.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Bold.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Bold.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BoldItalic.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BoldItalic.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BoldItalic.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BoldItalic.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Book.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Book.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Book.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Book.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BookItalic.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BookItalic.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BookItalic.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-BookItalic.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Heavy.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Heavy.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Heavy.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Heavy.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-HeavyItalic.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-HeavyItalic.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-HeavyItalic.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-HeavyItalic.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Light.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Light.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Light.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Light.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-LightItalic.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-LightItalic.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-LightItalic.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-LightItalic.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Medium.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Medium.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Medium.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Medium.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-MediumItalic.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-MediumItalic.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-MediumItalic.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-MediumItalic.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Regular.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Regular.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Regular.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Regular.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-RegularItalic.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-RegularItalic.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-RegularItalic.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-RegularItalic.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Thin.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Thin.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Thin.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-Thin.woff2 +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-ThinItalic.eot +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-ThinItalic.ttf +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-ThinItalic.woff +0 -0
- package/src/assets/fonts/FilsonPro/FilsonPro-ThinItalic.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Bold.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Bold.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Bold.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Bold.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-BoldItalic.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-BoldItalic.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-BoldItalic.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-BoldItalic.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-CondensedBlack.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-CondensedBlack.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-CondensedBlack.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-CondensedBlack.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-CondensedBold.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-CondensedBold.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-CondensedBold.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-CondensedBold.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Italic.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Italic.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Italic.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Italic.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Light.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Light.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Light.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Light.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-LightItalic.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-LightItalic.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-LightItalic.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-LightItalic.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Medium.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Medium.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Medium.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Medium.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-MediumItalic.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-MediumItalic.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-MediumItalic.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-MediumItalic.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Thin.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Thin.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Thin.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-Thin.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-ThinItalic.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-ThinItalic.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-ThinItalic.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-ThinItalic.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-UltraLight.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-UltraLight.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-UltraLight.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-UltraLight.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-UltraLightItalic.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-UltraLightItalic.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-UltraLightItalic.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue-UltraLightItalic.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue.eot +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue.ttf +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue.woff +0 -0
- package/src/assets/fonts/HelveticaNeue/HelveticaNeue.woff2 +0 -0
- package/src/assets/fonts/HelveticaNeue/demo.html +569 -0
- package/src/assets/fonts/HelveticaNeue/stylesheet.css +181 -0
- package/src/assets/fonts/Lato/Lato-Black.eot +0 -0
- package/src/assets/fonts/Lato/Lato-Black.ttf +0 -0
- package/src/assets/fonts/Lato/Lato-Black.woff +0 -0
- package/src/assets/fonts/Lato/Lato-Black.woff2 +0 -0
- package/src/assets/fonts/Lato/Lato-Bold.eot +0 -0
- package/src/assets/fonts/Lato/Lato-Bold.ttf +0 -0
- package/src/assets/fonts/Lato/Lato-Bold.woff +0 -0
- package/src/assets/fonts/Lato/Lato-Bold.woff2 +0 -0
- package/src/assets/fonts/Lato/Lato-Light.eot +0 -0
- package/src/assets/fonts/Lato/Lato-Light.ttf +0 -0
- package/src/assets/fonts/Lato/Lato-Light.woff +0 -0
- package/src/assets/fonts/Lato/Lato-Light.woff2 +0 -0
- package/src/assets/fonts/Lato/Lato-Regular.eot +0 -0
- package/src/assets/fonts/Lato/Lato-Regular.ttf +0 -0
- package/src/assets/fonts/Lato/Lato-Regular.woff +0 -0
- package/src/assets/fonts/Lato/Lato-Regular.woff2 +0 -0
- package/src/assets/fonts/Lux-Icons.woff2 +0 -0
- package/src/assets/fonts/MaterialIcons-Regular.eot +0 -0
- package/src/assets/fonts/MaterialIcons-Regular.ttf +0 -0
- package/src/assets/fonts/MaterialIcons-Regular.woff +0 -0
- package/src/assets/fonts/MaterialIcons-Regular.woff2 +0 -0
- package/src/assets/fonts/OpenSans-Regular.ttf +0 -0
- package/src/assets/fonts/Roboto-Regular.ttf +0 -0
- package/src/assets/images/logo-transparent.png +0 -0
- package/src/assets/svgs/atomix-logo.svg +9 -0
- package/src/components/Accordion/Accordion.stories.tsx +271 -0
- package/src/components/Accordion/Accordion.tsx +131 -0
- package/src/components/Accordion/index.ts +3 -0
- package/src/components/Accordion/scripts/accordionInteractions.ts +70 -0
- package/src/components/Accordion/scripts/bundle.ts +24 -0
- package/src/components/Accordion/scripts/constants.ts +11 -0
- package/src/components/Accordion/scripts/index.ts +212 -0
- package/src/components/AtomixLogo/AtomixLogo.tsx +36 -0
- package/src/components/AtomixLogo/index.ts +3 -0
- package/src/components/AtomixLogo.tsx +40 -0
- package/src/components/Avatar/Avatar.stories.tsx +263 -0
- package/src/components/Avatar/Avatar.tsx +68 -0
- package/src/components/Avatar/AvatarGroup.tsx +73 -0
- package/src/components/Avatar/index.ts +3 -0
- package/src/components/Avatar/scripts/index.ts +497 -0
- package/src/components/Badge/Badge.stories.tsx +374 -0
- package/src/components/Badge/Badge.tsx +39 -0
- package/src/components/Badge/index.ts +3 -0
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +108 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +98 -0
- package/src/components/Breadcrumb/index.ts +3 -0
- package/src/components/Breadcrumb/scripts/breadcrumb.ts +208 -0
- package/src/components/Breadcrumb/scripts/demo.html +246 -0
- package/src/components/Breadcrumb/scripts/index.ts +5 -0
- package/src/components/Breadcrumb/scripts/types.ts +69 -0
- package/src/components/Button/Button.stories.tsx +313 -0
- package/src/components/Button/Button.tsx +70 -0
- package/src/components/Button/index.ts +3 -0
- package/src/components/Button/scripts/buttonInteractions.ts +73 -0
- package/src/components/Button/scripts/index.ts +1 -0
- package/src/components/Callout/Callout.stories.tsx +595 -0
- package/src/components/Callout/Callout.tsx +78 -0
- package/src/components/Callout/index.ts +1 -0
- package/src/components/Callout/scripts/CalloutInteractions.ts +350 -0
- package/src/components/Callout/scripts/bundle.ts +18 -0
- package/src/components/Callout/scripts/index.ts +130 -0
- package/src/components/Card/Card.stories.tsx +107 -0
- package/src/components/Card/Card.tsx +69 -0
- package/src/components/Card/ElevationCard.tsx +47 -0
- package/src/components/Card/index.ts +15 -0
- package/src/components/Card/scripts/bundle.ts +30 -0
- package/src/components/Card/scripts/cardInteractions.ts +171 -0
- package/src/components/Card/scripts/demo.html +322 -0
- package/src/components/Card/scripts/index.ts +318 -0
- package/src/components/ColorModeToggle/ColorModeToggle.stories.tsx +46 -0
- package/src/components/ColorModeToggle/ColorModeToggle.tsx +85 -0
- package/src/components/ColorModeToggle/index.ts +2 -0
- package/src/components/Countdown/Countdown.stories.tsx +47 -0
- package/src/components/Countdown/Countdown.tsx +90 -0
- package/src/components/Countdown/index.ts +2 -0
- package/src/components/Countdown/scripts/index.ts +238 -0
- package/src/components/DataTable/DataTable.stories.tsx +249 -0
- package/src/components/DataTable/DataTable.tsx +213 -0
- package/src/components/DataTable/index.ts +3 -0
- package/src/components/DataTable/scripts/bundle.ts +20 -0
- package/src/components/DataTable/scripts/index.ts +781 -0
- package/src/components/DatePicker/DatePicker.stories.tsx +365 -0
- package/src/components/DatePicker/DatePicker.tsx +504 -0
- package/src/components/DatePicker/index.ts +4 -0
- package/src/components/DatePicker/readme.md +106 -0
- package/src/components/DatePicker/scripts/bundle.ts +39 -0
- package/src/components/DatePicker/scripts/componentInteractions.ts +230 -0
- package/src/components/DatePicker/scripts/index.ts +907 -0
- package/src/components/DatePicker/types.ts +167 -0
- package/src/components/DatePicker/utils.ts +163 -0
- package/src/components/Dropdown/Dropdown.stories.tsx +359 -0
- package/src/components/Dropdown/Dropdown.tsx +342 -0
- package/src/components/Dropdown/index.ts +14 -0
- package/src/components/Dropdown/readme.md +151 -0
- package/src/components/Dropdown/scripts/bundle.ts +24 -0
- package/src/components/Dropdown/scripts/componentInteractions.ts +39 -0
- package/src/components/Dropdown/scripts/index.ts +612 -0
- package/src/components/EdgePanel/EdgePanel.stories.tsx +267 -0
- package/src/components/EdgePanel/EdgePanel.tsx +73 -0
- package/src/components/EdgePanel/index.ts +1 -0
- package/src/components/EdgePanel/scripts/bundle.ts +30 -0
- package/src/components/EdgePanel/scripts/edgePanelInteractions.ts +206 -0
- package/src/components/EdgePanel/scripts/index.ts +415 -0
- package/src/components/Form/Checkbox.stories.tsx +77 -0
- package/src/components/Form/Checkbox.tsx +69 -0
- package/src/components/Form/Form.stories.tsx +491 -0
- package/src/components/Form/Form.tsx +46 -0
- package/src/components/Form/FormGroup.stories.tsx +163 -0
- package/src/components/Form/FormGroup.tsx +53 -0
- package/src/components/Form/Input.stories.tsx +107 -0
- package/src/components/Form/Input.tsx +87 -0
- package/src/components/Form/Radio.stories.tsx +95 -0
- package/src/components/Form/Radio.tsx +65 -0
- package/src/components/Form/Select.stories.tsx +152 -0
- package/src/components/Form/Select.tsx +191 -0
- package/src/components/Form/Textarea.stories.tsx +124 -0
- package/src/components/Form/Textarea.tsx +78 -0
- package/src/components/Form/index.ts +7 -0
- package/src/components/Hero/Hero.stories.tsx +297 -0
- package/src/components/Hero/Hero.tsx +175 -0
- package/src/components/Hero/index.ts +6 -0
- package/src/components/Hero/scripts/bundle.ts +33 -0
- package/src/components/Hero/scripts/heroInteractions.ts +130 -0
- package/src/components/Hero/scripts/index.ts +144 -0
- package/src/components/Icon/Icon.tsx +87 -0
- package/src/components/Icon/index.ts +2 -0
- package/src/components/List/List.stories.tsx +123 -0
- package/src/components/List/List.tsx +35 -0
- package/src/components/List/ListGroup.tsx +34 -0
- package/src/components/List/index.ts +2 -0
- package/src/components/Messages/Messages.stories.tsx +161 -0
- package/src/components/Messages/Messages.tsx +172 -0
- package/src/components/Messages/index.ts +3 -0
- package/src/components/Messages/scripts/bundle.ts +47 -0
- package/src/components/Messages/scripts/componentInteractions.ts +132 -0
- package/src/components/Messages/scripts/index.ts +378 -0
- package/src/components/Modal/Modal.stories.tsx +288 -0
- package/src/components/Modal/Modal.tsx +198 -0
- package/src/components/Modal/README.md +169 -0
- package/src/components/Modal/index.ts +1 -0
- package/src/components/Modal/scripts/bundle.ts +23 -0
- package/src/components/Modal/scripts/index.ts +374 -0
- package/src/components/Modal/scripts/modalInteractions.ts +141 -0
- package/src/components/Navigation/Menu/MegaMenu.tsx +107 -0
- package/src/components/Navigation/Menu/Menu.stories.tsx +340 -0
- package/src/components/Navigation/Menu/Menu.tsx +110 -0
- package/src/components/Navigation/Nav/Nav.stories.tsx +458 -0
- package/src/components/Navigation/Nav/Nav.tsx +50 -0
- package/src/components/Navigation/Nav/NavDropdown.tsx +105 -0
- package/src/components/Navigation/Nav/NavItem.tsx +159 -0
- package/src/components/Navigation/Navbar/Navbar.stories.tsx +552 -0
- package/src/components/Navigation/Navbar/Navbar.tsx +150 -0
- package/src/components/Navigation/README.md +314 -0
- package/src/components/Navigation/SideMenu/SideMenu.README.md +494 -0
- package/src/components/Navigation/SideMenu/SideMenu.stories.tsx +618 -0
- package/src/components/Navigation/SideMenu/SideMenu.tsx +101 -0
- package/src/components/Navigation/SideMenu/SideMenuItem.tsx +95 -0
- package/src/components/Navigation/SideMenu/SideMenuList.tsx +41 -0
- package/src/components/Navigation/index.ts +23 -0
- package/src/components/Navigation/scripts/NavbarInteractions.ts +171 -0
- package/src/components/Navigation/scripts/SideMenu.ts +319 -0
- package/src/components/Navigation/scripts/SideMenuBundle.ts +69 -0
- package/src/components/Navigation/scripts/SideMenuInteractions.ts +250 -0
- package/src/components/Navigation/scripts/bundle.ts +58 -0
- package/src/components/Navigation/scripts/index.ts +248 -0
- package/src/components/Pagination/Pagination.stories.tsx +194 -0
- package/src/components/Pagination/Pagination.tsx +162 -0
- package/src/components/Pagination/index.ts +1 -0
- package/src/components/Pagination/scripts/bundle.ts +15 -0
- package/src/components/Pagination/scripts/index.ts +315 -0
- package/src/components/PhotoViewer/PhotoViewer.stories.tsx +160 -0
- package/src/components/PhotoViewer/PhotoViewer.tsx +246 -0
- package/src/components/PhotoViewer/PhotoViewerHeader.tsx +177 -0
- package/src/components/PhotoViewer/PhotoViewerImage.tsx +173 -0
- package/src/components/PhotoViewer/PhotoViewerInfo.tsx +65 -0
- package/src/components/PhotoViewer/PhotoViewerNavigation.tsx +82 -0
- package/src/components/PhotoViewer/PhotoViewerThumbnails.tsx +53 -0
- package/src/components/PhotoViewer/README.md +358 -0
- package/src/components/PhotoViewer/examples/ImageGallery.tsx +190 -0
- package/src/components/PhotoViewer/examples/SimpleGallery.tsx +77 -0
- package/src/components/PhotoViewer/examples/index.ts +2 -0
- package/src/components/PhotoViewer/index.ts +14 -0
- package/src/components/PhotoViewer/scripts/PhotoViewerInteractions.ts +253 -0
- package/src/components/PhotoViewer/scripts/bundle.ts +81 -0
- package/src/components/PhotoViewer/scripts/index.ts +947 -0
- package/src/components/Popover/Popover.stories.tsx +143 -0
- package/src/components/Popover/Popover.tsx +137 -0
- package/src/components/Popover/index.ts +5 -0
- package/src/components/Popover/readme.md +120 -0
- package/src/components/Popover/scripts/bundle.ts +12 -0
- package/src/components/Popover/scripts/componentInteractions.ts +299 -0
- package/src/components/Popover/scripts/index.ts +342 -0
- package/src/components/ProductReview/ProductReview.stories.tsx +88 -0
- package/src/components/ProductReview/ProductReview.tsx +169 -0
- package/src/components/ProductReview/index.ts +3 -0
- package/src/components/ProductReview/scripts/bundle.ts +3 -0
- package/src/components/ProductReview/scripts/componentInteractions.ts +129 -0
- package/src/components/ProductReview/scripts/index.ts +3 -0
- package/src/components/Progress/Progress.stories.tsx +75 -0
- package/src/components/Progress/Progress.tsx +45 -0
- package/src/components/Progress/index.ts +1 -0
- package/src/components/Progress/scripts/bundle.ts +17 -0
- package/src/components/Progress/scripts/componentInteractions.ts +101 -0
- package/src/components/Progress/scripts/index.ts +184 -0
- package/src/components/Rating/Rating.stories.tsx +109 -0
- package/src/components/Rating/Rating.tsx +286 -0
- package/src/components/Rating/index.ts +6 -0
- package/src/components/Rating/scripts/bundle.ts +39 -0
- package/src/components/Rating/scripts/index.d.ts +12 -0
- package/src/components/Rating/scripts/index.ts +336 -0
- package/src/components/Rating/scripts/ratingInteractions.ts +160 -0
- package/src/components/River/River.stories.tsx +230 -0
- package/src/components/River/River.tsx +162 -0
- package/src/components/River/examples.html +223 -0
- package/src/components/River/index.ts +2 -0
- package/src/components/River/scripts/index.ts +137 -0
- package/src/components/SectionIntro/SectionIntro.stories.tsx +145 -0
- package/src/components/SectionIntro/SectionIntro.tsx +197 -0
- package/src/components/SectionIntro/index.ts +3 -0
- package/src/components/SectionIntro/scripts/bundle.ts +9 -0
- package/src/components/SectionIntro/scripts/componentInteractions.ts +37 -0
- package/src/components/SectionIntro/scripts/index.ts +163 -0
- package/src/components/Spinner/Spinner.stories.tsx +66 -0
- package/src/components/Spinner/Spinner.tsx +36 -0
- package/src/components/Spinner/index.ts +2 -0
- package/src/components/Steps/Steps.stories.tsx +158 -0
- package/src/components/Steps/Steps.tsx +154 -0
- package/src/components/Steps/index.ts +3 -0
- package/src/components/Steps/scripts/index.ts +159 -0
- package/src/components/Tab/Tab.stories.tsx +129 -0
- package/src/components/Tab/Tab.tsx +133 -0
- package/src/components/Tab/index.ts +2 -0
- package/src/components/Tab/scripts/index.ts +200 -0
- package/src/components/Testimonial/Testimonial.stories.tsx +180 -0
- package/src/components/Testimonial/Testimonial.tsx +148 -0
- package/src/components/Testimonial/index.ts +3 -0
- package/src/components/Testimonial/scripts/index.ts +107 -0
- package/src/components/Todo/Todo.stories.tsx +155 -0
- package/src/components/Todo/Todo.tsx +158 -0
- package/src/components/Todo/index.ts +1 -0
- package/src/components/Todo/scripts/bundle.ts +14 -0
- package/src/components/Todo/scripts/index.ts +534 -0
- package/src/components/Todo/scripts/todoInteractions.ts +118 -0
- package/src/components/Todo/scripts/types.ts +19 -0
- package/src/components/Toggle/Toggle.stories.tsx +50 -0
- package/src/components/Toggle/Toggle.tsx +114 -0
- package/src/components/Toggle/index.ts +2 -0
- package/src/components/Toggle/scripts/bundle.ts +19 -0
- package/src/components/Toggle/scripts/index.ts +118 -0
- package/src/components/Toggle/scripts/toggleInteractions.ts +77 -0
- package/src/components/Tooltip/Tooltip.stories.tsx +115 -0
- package/src/components/Tooltip/Tooltip.tsx +105 -0
- package/src/components/Tooltip/index.ts +3 -0
- package/src/components/Tooltip/scripts/bundle.ts +0 -0
- package/src/components/Tooltip/scripts/index.ts +395 -0
- package/src/components/Tooltip/scripts/tooltipInteractions.ts +165 -0
- package/src/components/Upload/Upload.stories.tsx +221 -0
- package/src/components/Upload/Upload.tsx +422 -0
- package/src/components/Upload/index.ts +3 -0
- package/src/components/Upload/scripts/index.ts +467 -0
- package/src/components/index.ts +117 -0
- package/src/design-tokens/BoxShadow/BoxShadow.stories.tsx +115 -0
- package/src/design-tokens/Colors/colors.scss +121 -0
- package/src/design-tokens/Colors/colors.stories.tsx +313 -0
- package/src/design-tokens/Spacing/Spacing.scss +62 -0
- package/src/design-tokens/Spacing/Spacing.stories.tsx +115 -0
- package/src/design-tokens/Typography/Typography.scss +240 -0
- package/src/design-tokens/Typography/Typography.stories.tsx +167 -0
- package/src/docs/atomix-component-guidelines.mdx +942 -0
- package/src/docs/atomix-roadmap.mdx +325 -0
- package/src/docs/implementation-guide.mdx +506 -0
- package/src/htmlComponentsEntry.ts +318 -0
- package/src/index.ts +21 -0
- package/src/layouts/Grid/Container.tsx +56 -0
- package/src/layouts/Grid/Grid.stories.tsx +560 -0
- package/src/layouts/Grid/Grid.tsx +67 -0
- package/src/layouts/Grid/GridCol.tsx +160 -0
- package/src/layouts/Grid/README.md +108 -0
- package/src/layouts/Grid/Row.tsx +68 -0
- package/src/layouts/Grid/index.ts +8 -0
- package/src/layouts/MasonryGrid/MasonryGrid.stories.tsx +388 -0
- package/src/layouts/MasonryGrid/MasonryGrid.tsx +406 -0
- package/src/layouts/MasonryGrid/MasonryGridItem.tsx +42 -0
- package/src/layouts/MasonryGrid/README.md +117 -0
- package/src/layouts/MasonryGrid/index.ts +4 -0
- package/src/layouts/index.ts +9 -0
- package/src/lib/README.md +89 -0
- package/src/lib/composables/index.ts +44 -0
- package/src/lib/composables/useAccordion.ts +129 -0
- package/src/lib/composables/useBadge.ts +42 -0
- package/src/lib/composables/useBreadcrumb.ts +74 -0
- package/src/lib/composables/useButton.ts +59 -0
- package/src/lib/composables/useCallout.ts +55 -0
- package/src/lib/composables/useCard.ts +155 -0
- package/src/lib/composables/useCheckbox.ts +70 -0
- package/src/lib/composables/useDataTable.ts +208 -0
- package/src/lib/composables/useDatePicker.ts +562 -0
- package/src/lib/composables/useDropdown.ts +272 -0
- package/src/lib/composables/useEdgePanel.ts +261 -0
- package/src/lib/composables/useForm.ts +62 -0
- package/src/lib/composables/useFormGroup.ts +51 -0
- package/src/lib/composables/useHero.ts +250 -0
- package/src/lib/composables/useInput.ts +58 -0
- package/src/lib/composables/useMessages.ts +77 -0
- package/src/lib/composables/useModal.ts +110 -0
- package/src/lib/composables/useNavbar.ts +288 -0
- package/src/lib/composables/usePagination.ts +101 -0
- package/src/lib/composables/usePhotoViewer.ts +904 -0
- package/src/lib/composables/usePopover.ts +354 -0
- package/src/lib/composables/useProgress.ts +74 -0
- package/src/lib/composables/useRadio.ts +47 -0
- package/src/lib/composables/useRating.ts +174 -0
- package/src/lib/composables/useRiver.ts +205 -0
- package/src/lib/composables/useSelect.ts +52 -0
- package/src/lib/composables/useSideMenu.ts +197 -0
- package/src/lib/composables/useSpinner.ts +42 -0
- package/src/lib/composables/useTextarea.ts +55 -0
- package/src/lib/composables/useTodo.ts +142 -0
- package/src/lib/constants/components.ts +1050 -0
- package/src/lib/constants/index.ts +4 -0
- package/src/lib/index.ts +11 -0
- package/src/lib/types/components.ts +2498 -0
- package/src/lib/types/index.ts +2 -0
- package/src/lib/utils/dom.ts +41 -0
- package/src/lib/utils/icons.ts +74 -0
- package/src/lib/utils/index.ts +7 -0
- package/src/lib/utils/useForkRef.ts +36 -0
- package/src/styles/01-settings/_index.scss +64 -0
- package/src/styles/01-settings/_settings.accordion.scss +29 -0
- package/src/styles/01-settings/_settings.animations.scss +2 -0
- package/src/styles/01-settings/_settings.avatar-group.scss +20 -0
- package/src/styles/01-settings/_settings.avatar.scss +46 -0
- package/src/styles/01-settings/_settings.badge.scss +12 -0
- package/src/styles/01-settings/_settings.border-radius.scss +12 -0
- package/src/styles/01-settings/_settings.border.scss +14 -0
- package/src/styles/01-settings/_settings.box-shadow.scss +28 -0
- package/src/styles/01-settings/_settings.breadcrumb.scss +19 -0
- package/src/styles/01-settings/_settings.breakpoints.scss +8 -0
- package/src/styles/01-settings/_settings.btn-group.scss +1 -0
- package/src/styles/01-settings/_settings.button.scss +81 -0
- package/src/styles/01-settings/_settings.callout.scss +61 -0
- package/src/styles/01-settings/_settings.card.scss +36 -0
- package/src/styles/01-settings/_settings.checkbox-group.scss +2 -0
- package/src/styles/01-settings/_settings.checkbox.scss +20 -0
- package/src/styles/01-settings/_settings.color-mode.scss +5 -0
- package/src/styles/01-settings/_settings.colors.scss +252 -0
- package/src/styles/01-settings/_settings.config.scss +4 -0
- package/src/styles/01-settings/_settings.countdown.scss +15 -0
- package/src/styles/01-settings/_settings.data-table.scss +52 -0
- package/src/styles/01-settings/_settings.datepicker.scss +44 -0
- package/src/styles/01-settings/_settings.dropdown.scss +38 -0
- package/src/styles/01-settings/_settings.edge-panel.scss +17 -0
- package/src/styles/01-settings/_settings.fonts.scss +17 -0
- package/src/styles/01-settings/_settings.form-group.scss +11 -0
- package/src/styles/01-settings/_settings.form.scss +3 -0
- package/src/styles/01-settings/_settings.grid.scss +15 -0
- package/src/styles/01-settings/_settings.hero.scss +30 -0
- package/src/styles/01-settings/_settings.input.scss +38 -0
- package/src/styles/01-settings/_settings.link.scss +12 -0
- package/src/styles/01-settings/_settings.list-group.scss +14 -0
- package/src/styles/01-settings/_settings.list.scss +10 -0
- package/src/styles/01-settings/_settings.maps.scss +278 -0
- package/src/styles/01-settings/_settings.masonry-grid.scss +17 -0
- package/src/styles/01-settings/_settings.menu.scss +35 -0
- package/src/styles/01-settings/_settings.messages.scss +71 -0
- package/src/styles/01-settings/_settings.modal.scss +31 -0
- package/src/styles/01-settings/_settings.nav.scss +18 -0
- package/src/styles/01-settings/_settings.navbar.scss +46 -0
- package/src/styles/01-settings/_settings.pagination.scss +29 -0
- package/src/styles/01-settings/_settings.photoviewer.scss +35 -0
- package/src/styles/01-settings/_settings.popover.scss +13 -0
- package/src/styles/01-settings/_settings.position.scss +7 -0
- package/src/styles/01-settings/_settings.progress.scss +15 -0
- package/src/styles/01-settings/_settings.rating.scss +8 -0
- package/src/styles/01-settings/_settings.river.scss +34 -0
- package/src/styles/01-settings/_settings.sectionintro.scss +21 -0
- package/src/styles/01-settings/_settings.select.scss +32 -0
- package/src/styles/01-settings/_settings.side-menu.scss +64 -0
- package/src/styles/01-settings/_settings.skeleton.scss +14 -0
- package/src/styles/01-settings/_settings.spacing.scss +68 -0
- package/src/styles/01-settings/_settings.spinner.scss +13 -0
- package/src/styles/01-settings/_settings.steps.scss +26 -0
- package/src/styles/01-settings/_settings.tabs.scss +28 -0
- package/src/styles/01-settings/_settings.testimonials.scss +18 -0
- package/src/styles/01-settings/_settings.todo.scss +50 -0
- package/src/styles/01-settings/_settings.toggle.scss +34 -0
- package/src/styles/01-settings/_settings.tooltip.scss +19 -0
- package/src/styles/01-settings/_settings.typography.scss +93 -0
- package/src/styles/01-settings/_settings.upload.scss +70 -0
- package/src/styles/01-settings/_settings.z-layers.scss +9 -0
- package/src/styles/02-tools/_index.scss +20 -0
- package/src/styles/02-tools/_tools.animations.scss +19 -0
- package/src/styles/02-tools/_tools.border-radius.scss +78 -0
- package/src/styles/02-tools/_tools.breakpoints.scss +48 -0
- package/src/styles/02-tools/_tools.button.scss +115 -0
- package/src/styles/02-tools/_tools.clearfix.scss +10 -0
- package/src/styles/02-tools/_tools.color-functions.scss +28 -0
- package/src/styles/02-tools/_tools.color-mode.scss +22 -0
- package/src/styles/02-tools/_tools.event.scss +22 -0
- package/src/styles/02-tools/_tools.grid.scss +76 -0
- package/src/styles/02-tools/_tools.hidden-visually.scss +32 -0
- package/src/styles/02-tools/_tools.hidden.scss +2 -0
- package/src/styles/02-tools/_tools.map-loop.scss +31 -0
- package/src/styles/02-tools/_tools.media-queries.scss +69 -0
- package/src/styles/02-tools/_tools.object-fit.scss +4 -0
- package/src/styles/02-tools/_tools.placeholder.scss +17 -0
- package/src/styles/02-tools/_tools.rem.scss +5 -0
- package/src/styles/02-tools/_tools.size.scss +8 -0
- package/src/styles/02-tools/_tools.spacing.scss +140 -0
- package/src/styles/02-tools/_tools.to-rgb.scss +9 -0
- package/src/styles/02-tools/_tools.transition.scss +50 -0
- package/src/styles/02-tools/_tools.utilities.scss +14 -0
- package/src/styles/02-tools/_tools.utility-api.scss +144 -0
- package/src/styles/03-generic/_generic.fonts.scss +24 -0
- package/src/styles/03-generic/_generic.reset.scss +402 -0
- package/src/styles/03-generic/_generic.root.scss +184 -0
- package/src/styles/03-generic/_generic.selection.scss +15 -0
- package/src/styles/03-generic/_index.scss +5 -0
- package/src/styles/04-elements/_elements.all.scss +16 -0
- package/src/styles/04-elements/_elements.body.scss +15 -0
- package/src/styles/04-elements/_elements.heading.scss +54 -0
- package/src/styles/04-elements/_elements.html.scss +9 -0
- package/src/styles/04-elements/_elements.links.scss +11 -0
- package/src/styles/04-elements/_index.scss +6 -0
- package/src/styles/05-objects/_index.scss +4 -0
- package/src/styles/05-objects/_objects.container.scss +36 -0
- package/src/styles/05-objects/_objects.grid.scss +25 -0
- package/src/styles/05-objects/_objects.masonry-grid.scss +96 -0
- package/src/styles/06-components/_components.accordion.scss +109 -0
- package/src/styles/06-components/_components.avatar-group.scss +85 -0
- package/src/styles/06-components/_components.avatar.scss +101 -0
- package/src/styles/06-components/_components.badge.scss +62 -0
- package/src/styles/06-components/_components.breadcrumb.scss +80 -0
- package/src/styles/06-components/_components.btn-group.scss +35 -0
- package/src/styles/06-components/_components.button.scss +134 -0
- package/src/styles/06-components/_components.callout.scss +272 -0
- package/src/styles/06-components/_components.card.scss +148 -0
- package/src/styles/06-components/_components.checkbox-group.scss +17 -0
- package/src/styles/06-components/_components.checkbox.scss +135 -0
- package/src/styles/06-components/_components.color-mode-toggle.scss +36 -0
- package/src/styles/06-components/_components.countdown.scss +63 -0
- package/src/styles/06-components/_components.data-table.scss +183 -0
- package/src/styles/06-components/_components.datepicker.scss +546 -0
- package/src/styles/06-components/_components.dropdown.scss +255 -0
- package/src/styles/06-components/_components.edge-panel.scss +350 -0
- package/src/styles/06-components/_components.form-group.scss +78 -0
- package/src/styles/06-components/_components.form.scss +21 -0
- package/src/styles/06-components/_components.hero.scss +147 -0
- package/src/styles/06-components/_components.icon.scss +80 -0
- package/src/styles/06-components/_components.image-gallery.scss +72 -0
- package/src/styles/06-components/_components.input.scss +107 -0
- package/src/styles/06-components/_components.list-group.scss +63 -0
- package/src/styles/06-components/_components.list.scss +57 -0
- package/src/styles/06-components/_components.menu.scss +239 -0
- package/src/styles/06-components/_components.messages.scss +332 -0
- package/src/styles/06-components/_components.modal.scss +153 -0
- package/src/styles/06-components/_components.nav.scss +172 -0
- package/src/styles/06-components/_components.navbar.scss +310 -0
- package/src/styles/06-components/_components.pagination.scss +155 -0
- package/src/styles/06-components/_components.photoviewer.scss +878 -0
- package/src/styles/06-components/_components.popover.scss +99 -0
- package/src/styles/06-components/_components.product-review.scss +128 -0
- package/src/styles/06-components/_components.progress.scss +43 -0
- package/src/styles/06-components/_components.rating.scss +161 -0
- package/src/styles/06-components/_components.river.scss +216 -0
- package/src/styles/06-components/_components.sectionintro.scss +163 -0
- package/src/styles/06-components/_components.select.scss +125 -0
- package/src/styles/06-components/_components.side-menu.scss +234 -0
- package/src/styles/06-components/_components.skeleton.scss +55 -0
- package/src/styles/06-components/_components.spinner.scss +45 -0
- package/src/styles/06-components/_components.steps.scss +99 -0
- package/src/styles/06-components/_components.tabs.scss +124 -0
- package/src/styles/06-components/_components.testimonials.scss +65 -0
- package/src/styles/06-components/_components.todo.scss +163 -0
- package/src/styles/06-components/_components.toggle.scss +100 -0
- package/src/styles/06-components/_components.tooltip.scss +136 -0
- package/src/styles/06-components/_components.upload.scss +250 -0
- package/src/styles/06-components/_index.scss +49 -0
- package/src/styles/99-utilities/_index.scss +21 -0
- package/src/styles/99-utilities/_utilities.background.scss +28 -0
- package/src/styles/99-utilities/_utilities.border.scss +157 -0
- package/src/styles/99-utilities/_utilities.clearfix.scss +5 -0
- package/src/styles/99-utilities/_utilities.display.scss +13 -0
- package/src/styles/99-utilities/_utilities.flex.scss +109 -0
- package/src/styles/99-utilities/_utilities.link.scss +96 -0
- package/src/styles/99-utilities/_utilities.object-fit.scss +17 -0
- package/src/styles/99-utilities/_utilities.opacity.scss +16 -0
- package/src/styles/99-utilities/_utilities.overflow.scss +20 -0
- package/src/styles/99-utilities/_utilities.position.scss +40 -0
- package/src/styles/99-utilities/_utilities.scss +42 -0
- package/src/styles/99-utilities/_utilities.shadow.scss +19 -0
- package/src/styles/99-utilities/_utilities.sizes.scss +81 -0
- package/src/styles/99-utilities/_utilities.spacing.scss +188 -0
- package/src/styles/99-utilities/_utilities.text.scss +87 -0
- package/src/styles/99-utilities/_utilities.visibility.scss +13 -0
- package/src/styles/99-utilities/_utilities.visually-hidden.scss +5 -0
- package/src/styles/99-utilities/_utilities.z-index.scss +11 -0
- package/src/styles/index.scss +12 -0
- package/tsconfig.json +74 -0
- package/webpack.config.js +463 -0
- package/dist/types/components/Navbar/Nav.d.ts +0 -5
- package/dist/types/components/Navbar/NavItem.d.ts +0 -5
- package/dist/types/components/Navbar/Navbar.d.ts +0 -5
- package/dist/types/components/Navbar/index.d.ts +0 -6
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
.design-tokens {
|
|
2
|
+
padding: 2rem;
|
|
3
|
+
min-height: 100vh;
|
|
4
|
+
background-color: var(--atomix-primary-bg);
|
|
5
|
+
color: var(--atomix-primary-text-emphasis);
|
|
6
|
+
transition:
|
|
7
|
+
background-color 0.3s,
|
|
8
|
+
color 0.3s;
|
|
9
|
+
|
|
10
|
+
h1,
|
|
11
|
+
h2,
|
|
12
|
+
h3 {
|
|
13
|
+
margin-top: 0;
|
|
14
|
+
color: var(--atomix-primary-text-emphasis);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
section {
|
|
18
|
+
margin-bottom: 3rem;
|
|
19
|
+
padding: 1.5rem;
|
|
20
|
+
background-color: var(--atomix-secondary-bg);
|
|
21
|
+
border-radius: 8px;
|
|
22
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
h2 {
|
|
26
|
+
margin-bottom: 1.5rem;
|
|
27
|
+
padding-bottom: 0.5rem;
|
|
28
|
+
border-bottom: 1px solid var(--atomix-primary-border);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
h3 {
|
|
32
|
+
margin-bottom: 1rem;
|
|
33
|
+
color: var(--atomix-secondary-text-emphasis);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.color-palette {
|
|
38
|
+
margin-bottom: 2rem;
|
|
39
|
+
|
|
40
|
+
.color-grid {
|
|
41
|
+
display: grid;
|
|
42
|
+
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
|
|
43
|
+
margin-top: 1rem;
|
|
44
|
+
row-gap: 1rem;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.color-swatch {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
transition: all 0.1s ease-out;
|
|
53
|
+
|
|
54
|
+
&:hover {
|
|
55
|
+
transform: translateY(-20px);
|
|
56
|
+
border-radius: var(--atomix-border-radius) var(--atomix-border-radius) 0 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.is-right-hover {
|
|
60
|
+
border-radius: 4px 0 4px 0px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.is-left-hover {
|
|
64
|
+
border-radius: 0 4px 0 4px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.color-box {
|
|
68
|
+
height: 80px;
|
|
69
|
+
width: 100%;
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: flex-end;
|
|
72
|
+
padding: 0.5rem;
|
|
73
|
+
box-sizing: border-box;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.color-info {
|
|
77
|
+
padding: 0.75rem;
|
|
78
|
+
background-color: var(--atomix-primary-bg);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.color-name {
|
|
82
|
+
font-weight: 500;
|
|
83
|
+
font-size: var(atomix-fo);
|
|
84
|
+
margin-bottom: 0.25rem;
|
|
85
|
+
color: var(--atomix-primary-text);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.color-value {
|
|
89
|
+
font-family: monospace;
|
|
90
|
+
font-size: 0.8rem;
|
|
91
|
+
color: var(--atomix-secondary-text-emphasis);
|
|
92
|
+
word-break: break-all;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Dark mode specific styles */
|
|
97
|
+
.design-tokens.dark {
|
|
98
|
+
.color-swatch {
|
|
99
|
+
.color-info {
|
|
100
|
+
background-color: var(--atomix-primary-bg-dark);
|
|
101
|
+
border-top-color: var(--atomix-primary-border-dark);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* Responsive adjustments */
|
|
107
|
+
@media (max-width: 768px) {
|
|
108
|
+
.color-palette .color-grid {
|
|
109
|
+
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@media (max-width: 480px) {
|
|
114
|
+
.design-tokens {
|
|
115
|
+
padding: 1rem;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.color-palette .color-grid {
|
|
119
|
+
grid-template-columns: 1fr;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import React, { useState, useEffect, useRef } from 'react';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import './colors.scss';
|
|
4
|
+
|
|
5
|
+
interface ColorSwatchProps {
|
|
6
|
+
name: string;
|
|
7
|
+
value: string;
|
|
8
|
+
isDark?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const ColorSwatch = ({ name, value, isDark = false }: ColorSwatchProps) => (
|
|
12
|
+
<div className={`color-swatch`}>
|
|
13
|
+
<div
|
|
14
|
+
className="color-box"
|
|
15
|
+
style={{
|
|
16
|
+
backgroundColor: value,
|
|
17
|
+
}}
|
|
18
|
+
/>
|
|
19
|
+
<div className="color-info">
|
|
20
|
+
<div className="color-name">{name}</div>
|
|
21
|
+
<div className="color-value">{value}</div>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
interface ColorPaletteProps {
|
|
27
|
+
title: string;
|
|
28
|
+
colors: Record<string, string>;
|
|
29
|
+
isDark?: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function useWindowWidth() {
|
|
33
|
+
const [width, setWidth] = useState(window.innerWidth);
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
const handleResize = () => setWidth(window.innerWidth);
|
|
36
|
+
window.addEventListener('resize', handleResize);
|
|
37
|
+
return () => window.removeEventListener('resize', handleResize);
|
|
38
|
+
}, []);
|
|
39
|
+
return width;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const ColorPalette = ({ title, colors, isDark = false }: ColorPaletteProps) => {
|
|
43
|
+
const colorEntries = Object.entries(colors);
|
|
44
|
+
const width = useWindowWidth();
|
|
45
|
+
const paletteRef = useRef<HTMLDivElement>(null);
|
|
46
|
+
const [mousePosX, setMousePosX] = useState<number | null>(null);
|
|
47
|
+
const [closestSwatchIdx, setClosestSwatchIdx] = useState<number | null>(null);
|
|
48
|
+
|
|
49
|
+
let maxLift = -20;
|
|
50
|
+
if (width < 480) {
|
|
51
|
+
maxLift = -10;
|
|
52
|
+
} else if (width < 768) {
|
|
53
|
+
maxLift = -15;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
const paletteElement = paletteRef.current;
|
|
58
|
+
if (!paletteElement) return;
|
|
59
|
+
|
|
60
|
+
const handleMouseMove = (e: MouseEvent) => {
|
|
61
|
+
const rect = paletteElement.getBoundingClientRect();
|
|
62
|
+
const currentMouseX = e.clientX - rect.left;
|
|
63
|
+
setMousePosX(currentMouseX);
|
|
64
|
+
|
|
65
|
+
let minDistance = Infinity;
|
|
66
|
+
let closestIndex: number | null = null;
|
|
67
|
+
|
|
68
|
+
const colorGridElement = paletteElement.children[1] as HTMLDivElement;
|
|
69
|
+
if (!colorGridElement) return;
|
|
70
|
+
|
|
71
|
+
for (let i = 0; i < colorGridElement.children.length; i++) {
|
|
72
|
+
const swatchElement = colorGridElement.children[i] as HTMLDivElement;
|
|
73
|
+
if (swatchElement) {
|
|
74
|
+
const swatchRect = swatchElement.getBoundingClientRect();
|
|
75
|
+
const swatchCenterX = (swatchRect.left + swatchRect.right) / 2 - rect.left;
|
|
76
|
+
const distance = Math.abs(currentMouseX - swatchCenterX);
|
|
77
|
+
|
|
78
|
+
if (distance < minDistance) {
|
|
79
|
+
minDistance = distance;
|
|
80
|
+
closestIndex = i;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
setClosestSwatchIdx(closestIndex);
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
const handleMouseLeave = () => {
|
|
88
|
+
setMousePosX(null);
|
|
89
|
+
setClosestSwatchIdx(null);
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
paletteElement.addEventListener('mousemove', handleMouseMove);
|
|
93
|
+
paletteElement.addEventListener('mouseleave', handleMouseLeave);
|
|
94
|
+
|
|
95
|
+
return () => {
|
|
96
|
+
paletteElement.removeEventListener('mousemove', handleMouseMove);
|
|
97
|
+
paletteElement.removeEventListener('mouseleave', handleMouseLeave);
|
|
98
|
+
};
|
|
99
|
+
}, [paletteRef]);
|
|
100
|
+
|
|
101
|
+
return (
|
|
102
|
+
<div className="color-palette" ref={paletteRef}>
|
|
103
|
+
<h3>{title}</h3>
|
|
104
|
+
<div className="color-grid">
|
|
105
|
+
{colorEntries.map(([name, value], idx) => {
|
|
106
|
+
let translateY = 0;
|
|
107
|
+
let isLeftHover = false;
|
|
108
|
+
let isRightHover = false;
|
|
109
|
+
|
|
110
|
+
if (mousePosX !== null && paletteRef.current) {
|
|
111
|
+
const swatchElement = paletteRef.current.children[1].children[idx] as HTMLDivElement;
|
|
112
|
+
if (swatchElement) {
|
|
113
|
+
const swatchRect = swatchElement.getBoundingClientRect();
|
|
114
|
+
const paletteRect = paletteRef.current.getBoundingClientRect();
|
|
115
|
+
const swatchCenterX = (swatchRect.left + swatchRect.right) / 2 - paletteRect.left;
|
|
116
|
+
const distance = Math.abs(mousePosX - swatchCenterX);
|
|
117
|
+
|
|
118
|
+
const currentSwatchWidth = swatchRect.width;
|
|
119
|
+
const maxEffectDistance = currentSwatchWidth * 3;
|
|
120
|
+
|
|
121
|
+
if (distance < maxEffectDistance) {
|
|
122
|
+
const normalizedDistance = distance / maxEffectDistance;
|
|
123
|
+
const animationProgress = 1 - Math.pow(normalizedDistance, 2);
|
|
124
|
+
translateY = Math.round(maxLift * animationProgress);
|
|
125
|
+
if (maxLift < 0) {
|
|
126
|
+
translateY = Math.max(maxLift, translateY);
|
|
127
|
+
} else {
|
|
128
|
+
translateY = Math.min(maxLift, translateY);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (closestSwatchIdx !== null) {
|
|
134
|
+
if (idx < closestSwatchIdx) {
|
|
135
|
+
isRightHover = true; // All elements to the left of the closest
|
|
136
|
+
} else if (idx > closestSwatchIdx) {
|
|
137
|
+
isLeftHover = true; // All elements to the right of the closest
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
} else {
|
|
141
|
+
translateY = 0;
|
|
142
|
+
isLeftHover = false;
|
|
143
|
+
isRightHover = false;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return (
|
|
147
|
+
<div
|
|
148
|
+
key={name}
|
|
149
|
+
className={`color-swatch${isLeftHover ? ' is-left-hover' : ''}${isRightHover ? ' is-right-hover' : ''}`}
|
|
150
|
+
style={{
|
|
151
|
+
transform: `translateY(${translateY}px)`,
|
|
152
|
+
}}
|
|
153
|
+
>
|
|
154
|
+
<div className="color-box" style={{ backgroundColor: value }} />
|
|
155
|
+
<div className="color-info">
|
|
156
|
+
<div className="color-name">{name}</div>
|
|
157
|
+
<div className="color-value">{value}</div>
|
|
158
|
+
</div>
|
|
159
|
+
</div>
|
|
160
|
+
);
|
|
161
|
+
})}
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
);
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
const DesignTokens = () => {
|
|
168
|
+
const isDark = false;
|
|
169
|
+
|
|
170
|
+
const colorScales = {
|
|
171
|
+
primary: {
|
|
172
|
+
'primary-1': '#F2E8FD',
|
|
173
|
+
'primary-2': '#E4D0FA',
|
|
174
|
+
'primary-3': '#D0B2F5',
|
|
175
|
+
'primary-4': '#B88CEF',
|
|
176
|
+
'primary-5': '#9C63E9',
|
|
177
|
+
'primary-6': '#7C3AED',
|
|
178
|
+
'primary-7': '#6425CA',
|
|
179
|
+
'primary-8': '#501BA6',
|
|
180
|
+
'primary-9': '#3C1583',
|
|
181
|
+
'primary-10': '#2A0E60',
|
|
182
|
+
},
|
|
183
|
+
gray: {
|
|
184
|
+
'gray-1': '#F9FAFB',
|
|
185
|
+
'gray-2': '#F3F4F6',
|
|
186
|
+
'gray-3': '#E5E7EB',
|
|
187
|
+
'gray-4': '#D1D5DB',
|
|
188
|
+
'gray-5': '#9CA3AF',
|
|
189
|
+
'gray-6': '#6B7280',
|
|
190
|
+
'gray-7': '#4B5563',
|
|
191
|
+
'gray-8': '#374151',
|
|
192
|
+
'gray-9': '#1F2937',
|
|
193
|
+
'gray-10': '#111827',
|
|
194
|
+
},
|
|
195
|
+
red: {
|
|
196
|
+
'red-1': '#FEF2F2',
|
|
197
|
+
'red-2': '#FEE2E2',
|
|
198
|
+
'red-3': '#FECACA',
|
|
199
|
+
'red-4': '#FCA5A5',
|
|
200
|
+
'red-5': '#F87171',
|
|
201
|
+
'red-6': '#EF4444',
|
|
202
|
+
'red-7': '#DC2626',
|
|
203
|
+
'red-8': '#B91C1C',
|
|
204
|
+
'red-9': '#991B1B',
|
|
205
|
+
'red-10': '#7F1D1D',
|
|
206
|
+
},
|
|
207
|
+
green: {
|
|
208
|
+
'green-1': '#F0FDF4',
|
|
209
|
+
'green-2': '#DCFCE7',
|
|
210
|
+
'green-3': '#BBF7D0',
|
|
211
|
+
'green-4': '#86EFAC',
|
|
212
|
+
'green-5': '#4ADE80',
|
|
213
|
+
'green-6': '#22C55E',
|
|
214
|
+
'green-7': '#16A34A',
|
|
215
|
+
'green-8': '#15803D',
|
|
216
|
+
'green-9': '#166534',
|
|
217
|
+
'green-10': '#14532D',
|
|
218
|
+
},
|
|
219
|
+
blue: {
|
|
220
|
+
'blue-1': '#EFF6FF',
|
|
221
|
+
'blue-2': '#DBEAFE',
|
|
222
|
+
'blue-3': '#BFDBFE',
|
|
223
|
+
'blue-4': '#93C5FD',
|
|
224
|
+
'blue-5': '#60A5FA',
|
|
225
|
+
'blue-6': '#3B82F6',
|
|
226
|
+
'blue-7': '#2563EB',
|
|
227
|
+
'blue-8': '#1D4ED8',
|
|
228
|
+
'blue-9': '#1E40AF',
|
|
229
|
+
'blue-10': '#1E3A8A',
|
|
230
|
+
},
|
|
231
|
+
yellow: {
|
|
232
|
+
'yellow-1': '#FEFCE8',
|
|
233
|
+
'yellow-2': '#FEF9C3',
|
|
234
|
+
'yellow-3': '#FEF08A',
|
|
235
|
+
'yellow-4': '#FDE047',
|
|
236
|
+
'yellow-5': '#FACC15',
|
|
237
|
+
'yellow-6': '#EAB308',
|
|
238
|
+
'yellow-7': '#CA8A04',
|
|
239
|
+
'yellow-8': '#A16207',
|
|
240
|
+
'yellow-9': '#854D0E',
|
|
241
|
+
'yellow-10': '#713F12',
|
|
242
|
+
},
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
const themeColors = {
|
|
246
|
+
primary: '#7C3AED',
|
|
247
|
+
secondary: '#E5E7EB',
|
|
248
|
+
success: '#22C55E',
|
|
249
|
+
info: '#3B82F6',
|
|
250
|
+
warning: '#EAB308',
|
|
251
|
+
error: '#EF4444',
|
|
252
|
+
light: '#F9FAFB',
|
|
253
|
+
dark: '#1F2937',
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
const textColors = {
|
|
257
|
+
'primary-text': '#1F2937',
|
|
258
|
+
'secondary-text': '#374151',
|
|
259
|
+
'tertiary-text': '#6B7280',
|
|
260
|
+
'disabled-text': '#9CA3AF',
|
|
261
|
+
'invert-text': '#1F2937',
|
|
262
|
+
'brand-text': '#7C3AED',
|
|
263
|
+
'error-text': '#EF4444',
|
|
264
|
+
'success-text': '#22C55E',
|
|
265
|
+
'warning-text': '#EAB308',
|
|
266
|
+
'info-text': '#3B82F6',
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
return (
|
|
270
|
+
<div className={`design-tokens ${isDark ? 'dark' : 'light'}`}>
|
|
271
|
+
<h1>Design Tokens</h1>
|
|
272
|
+
|
|
273
|
+
<section>
|
|
274
|
+
<h2>Theme Colors</h2>
|
|
275
|
+
<ColorPalette title="Theme Colors" colors={themeColors} isDark={isDark} />
|
|
276
|
+
</section>
|
|
277
|
+
|
|
278
|
+
<section>
|
|
279
|
+
<h2>Color Scales</h2>
|
|
280
|
+
{Object.entries(colorScales).map(([name, colors]) => (
|
|
281
|
+
<ColorPalette
|
|
282
|
+
key={name}
|
|
283
|
+
title={name.charAt(0).toUpperCase() + name.slice(1)}
|
|
284
|
+
colors={colors}
|
|
285
|
+
isDark={isDark}
|
|
286
|
+
/>
|
|
287
|
+
))}
|
|
288
|
+
</section>
|
|
289
|
+
|
|
290
|
+
<section>
|
|
291
|
+
<h2>Text Colors</h2>
|
|
292
|
+
<ColorPalette title="Text Colors" colors={textColors} isDark={isDark} />
|
|
293
|
+
</section>
|
|
294
|
+
</div>
|
|
295
|
+
);
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
export default {
|
|
299
|
+
title: 'Design Tokens',
|
|
300
|
+
component: DesignTokens,
|
|
301
|
+
parameters: {
|
|
302
|
+
layout: 'fullscreen',
|
|
303
|
+
docs: {
|
|
304
|
+
description: {
|
|
305
|
+
component: 'Design tokens for the Atomix design system.',
|
|
306
|
+
},
|
|
307
|
+
},
|
|
308
|
+
},
|
|
309
|
+
} as Meta<typeof DesignTokens>;
|
|
310
|
+
|
|
311
|
+
type Story = StoryObj<typeof DesignTokens>;
|
|
312
|
+
|
|
313
|
+
export const Colors: Story = {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// Spacing Preview Styles
|
|
2
|
+
.spacing-preview {
|
|
3
|
+
color: var(--atomix-primary-text);
|
|
4
|
+
background-color: var(--atomix-brand-bg-subtle);
|
|
5
|
+
min-height: 100vh;
|
|
6
|
+
transition:
|
|
7
|
+
background-color 0.3s,
|
|
8
|
+
color 0.3s;
|
|
9
|
+
|
|
10
|
+
.section-description {
|
|
11
|
+
max-width: 800px;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.spacing-grid {
|
|
16
|
+
display: grid;
|
|
17
|
+
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
18
|
+
gap: 1.5rem;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.spacing-example {
|
|
22
|
+
.spacing-visual {
|
|
23
|
+
width: 100%;
|
|
24
|
+
background-color: var(--atomix-secondary-bg-subtle);
|
|
25
|
+
border-radius: 4px;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
padding: 0.5rem;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
|
|
31
|
+
.spacing-visual-inner {
|
|
32
|
+
height: 1.5rem;
|
|
33
|
+
width: var(--spacing-size);
|
|
34
|
+
background-color: var(--atomix-brand-bg-subtle);
|
|
35
|
+
border-radius: 3px;
|
|
36
|
+
position: relative;
|
|
37
|
+
|
|
38
|
+
&::after {
|
|
39
|
+
content: '';
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: 0;
|
|
42
|
+
left: 0;
|
|
43
|
+
width: 0px;
|
|
44
|
+
height: 100%;
|
|
45
|
+
background-color: var(--atomix-brand-bg);
|
|
46
|
+
border-radius: 3px;
|
|
47
|
+
transition:
|
|
48
|
+
width 0.3s ease-out,
|
|
49
|
+
background-color 0.3s ease-in-out;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:hover {
|
|
55
|
+
.spacing-visual-inner {
|
|
56
|
+
&::after {
|
|
57
|
+
width: var(--spacing-size);
|
|
58
|
+
background-color: var(--atomix-primary);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import './Spacing.scss';
|
|
4
|
+
|
|
5
|
+
interface SpacingExampleProps {
|
|
6
|
+
name: string;
|
|
7
|
+
size: string;
|
|
8
|
+
value: string;
|
|
9
|
+
isDark?: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const SpacingExample = ({ name, size, value, isDark = false }: SpacingExampleProps) => {
|
|
13
|
+
const sizeInPx = parseFloat(value) * 16; // Convert rem to px for display
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<div className="spacing-example u-d-flex u-flex-column u-gap-2">
|
|
17
|
+
<div className="spacing-info u-d-flex u-gap-2 u-justify-content-between u-items-center">
|
|
18
|
+
<span className="spacing-name u-fs-sm u-fw-bold">{name}</span>
|
|
19
|
+
<div className="spacing-details u-d-flex u-gap-2 u-items-center">
|
|
20
|
+
<code className="spacing-value u-fs-xs u-text-error u-bg-error-subtle u-rounded-sm u-px-2 u-py-1">
|
|
21
|
+
{value}
|
|
22
|
+
</code>
|
|
23
|
+
<span className="spacing-px u-fs-xs">{sizeInPx}px</span>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
<div
|
|
27
|
+
className="spacing-visual"
|
|
28
|
+
style={
|
|
29
|
+
{
|
|
30
|
+
'--spacing-size': value,
|
|
31
|
+
} as React.CSSProperties
|
|
32
|
+
}
|
|
33
|
+
>
|
|
34
|
+
<div className="spacing-visual-inner"></div>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const SpacingPreview = () => {
|
|
41
|
+
const isDark = false;
|
|
42
|
+
|
|
43
|
+
const spacingScale = [
|
|
44
|
+
{ name: '0', value: '0rem' },
|
|
45
|
+
{ name: '1', value: '0.25rem' },
|
|
46
|
+
{ name: '2', value: '0.5rem' },
|
|
47
|
+
{ name: '3', value: '0.75rem' },
|
|
48
|
+
{ name: '4', value: '1rem' },
|
|
49
|
+
{ name: '5', value: '1.25rem' },
|
|
50
|
+
{ name: '6', value: '1.5rem' },
|
|
51
|
+
{ name: '7', value: '1.75rem' },
|
|
52
|
+
{ name: '8', value: '2rem' },
|
|
53
|
+
{ name: '9', value: '2.25rem' },
|
|
54
|
+
{ name: '10', value: '2.5rem' },
|
|
55
|
+
{ name: '11', value: '2.75rem' },
|
|
56
|
+
{ name: '12', value: '3rem' },
|
|
57
|
+
{ name: '14', value: '3.5rem' },
|
|
58
|
+
{ name: '16', value: '4rem' },
|
|
59
|
+
{ name: '20', value: '5rem' },
|
|
60
|
+
{ name: '24', value: '6rem' },
|
|
61
|
+
{ name: '28', value: '7rem' },
|
|
62
|
+
{ name: '32', value: '8rem' },
|
|
63
|
+
{ name: '36', value: '9rem' },
|
|
64
|
+
{ name: '40', value: '10rem' },
|
|
65
|
+
{ name: '44', value: '11rem' },
|
|
66
|
+
{ name: '48', value: '12rem' },
|
|
67
|
+
{ name: '52', value: '13rem' },
|
|
68
|
+
{ name: '56', value: '14rem' },
|
|
69
|
+
{ name: '60', value: '15rem' },
|
|
70
|
+
{ name: '64', value: '16rem' },
|
|
71
|
+
{ name: '72', value: '18rem' },
|
|
72
|
+
{ name: '80', value: '20rem' },
|
|
73
|
+
{ name: '90', value: '22.5rem' },
|
|
74
|
+
];
|
|
75
|
+
|
|
76
|
+
return (
|
|
77
|
+
<div
|
|
78
|
+
className={`spacing-preview o-container o-container-fluid u-py-2 u-my-4 u-rounded-md ${isDark ? 'dark' : ''}`}
|
|
79
|
+
>
|
|
80
|
+
<h1 className="u-fs-xl u-text-primary u-mb-2">Spacing Scale</h1>
|
|
81
|
+
|
|
82
|
+
<section className="spacing-section u-bg-primary-subtle u-p-4 u-rounded-md">
|
|
83
|
+
<h2>Spacing Units</h2>
|
|
84
|
+
<p className="section-description u-fs-sm u-text-secondary u-mb-4">
|
|
85
|
+
The spacing scale is based on a 4px unit system. Each step in the scale represents a
|
|
86
|
+
multiple of 4px. Use these values for margin, padding, and other spacing-related
|
|
87
|
+
properties.
|
|
88
|
+
</p>
|
|
89
|
+
|
|
90
|
+
<div className="spacing-grid">
|
|
91
|
+
{spacingScale.map(({ name, value }) => (
|
|
92
|
+
<SpacingExample key={name} name={name} size={name} value={value} isDark={isDark} />
|
|
93
|
+
))}
|
|
94
|
+
</div>
|
|
95
|
+
</section>
|
|
96
|
+
</div>
|
|
97
|
+
);
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export default {
|
|
101
|
+
title: 'Design Tokens/Spacing',
|
|
102
|
+
component: SpacingPreview,
|
|
103
|
+
parameters: {
|
|
104
|
+
layout: 'fullscreen',
|
|
105
|
+
docs: {
|
|
106
|
+
description: {
|
|
107
|
+
component: 'Spacing scale and utilities for the Atomix design system.',
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
} as Meta<typeof SpacingPreview>;
|
|
112
|
+
|
|
113
|
+
type Story = StoryObj<typeof SpacingPreview>;
|
|
114
|
+
|
|
115
|
+
export const Spacing: Story = {};
|