@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,48 @@
|
|
|
1
|
+
@use '../01-settings/settings.config' as config;
|
|
2
|
+
@use '../01-settings/settings.grid' as grid;
|
|
3
|
+
@use '../01-settings/settings.breakpoints' as breakpoints;
|
|
4
|
+
@use 'sass:math';
|
|
5
|
+
@use 'sass:map';
|
|
6
|
+
@use 'sass:list';
|
|
7
|
+
|
|
8
|
+
// Breakpoint viewport sizes and media queries.
|
|
9
|
+
@mixin media-breakpoint-up($name, $breakpoints: breakpoints.$grid-breakpoints) {
|
|
10
|
+
$min: map.get($breakpoints, $name);
|
|
11
|
+
@if $min {
|
|
12
|
+
@media (min-width: $min) {
|
|
13
|
+
@content;
|
|
14
|
+
}
|
|
15
|
+
} @else {
|
|
16
|
+
@content;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Media of at most the maximum breakpoint width
|
|
21
|
+
@mixin media-breakpoint-down($name, $breakpoints: breakpoints.$grid-breakpoints) {
|
|
22
|
+
// Get the next breakpoint
|
|
23
|
+
$breakpoint-names: map.keys($breakpoints);
|
|
24
|
+
$breakpoint-index: list.index($breakpoint-names, $name);
|
|
25
|
+
|
|
26
|
+
// If not the largest breakpoint
|
|
27
|
+
@if $breakpoint-index < list.length($breakpoint-names) {
|
|
28
|
+
$next-breakpoint: list.nth($breakpoint-names, $breakpoint-index + 1);
|
|
29
|
+
$next-value: map.get($breakpoints, $next-breakpoint);
|
|
30
|
+
|
|
31
|
+
@media (max-width: ($next-value - 0.02)) {
|
|
32
|
+
@content;
|
|
33
|
+
}
|
|
34
|
+
} @else {
|
|
35
|
+
@content;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.
|
|
40
|
+
@function breakpoint-infix($name, $breakpoints: breakpoints.$grid-breakpoints) {
|
|
41
|
+
@return if(breakpoint-min($name, $breakpoints) == null, '', '-#{$name}');
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Returns the minimum breakpoint width.
|
|
45
|
+
@function breakpoint-min($name, $breakpoints: breakpoints.$grid-breakpoints) {
|
|
46
|
+
$min: map.get($breakpoints, $name);
|
|
47
|
+
@return if($min != 0, $min, null);
|
|
48
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
@use '../01-settings/settings.config' as config;
|
|
3
|
+
@use '../01-settings/settings.button' as button;
|
|
4
|
+
@use '../01-settings/settings.colors' as colors;
|
|
5
|
+
@use '../01-settings/settings.border-radius' as *;
|
|
6
|
+
@use 'tools.to-rgb' as *;
|
|
7
|
+
@use 'tools.border-radius' as *;
|
|
8
|
+
|
|
9
|
+
// Button variant mixin
|
|
10
|
+
@mixin btn-variant(
|
|
11
|
+
$color,
|
|
12
|
+
$background,
|
|
13
|
+
$border: $background,
|
|
14
|
+
$hover-background: null,
|
|
15
|
+
$hover-border: null,
|
|
16
|
+
$active-background: null,
|
|
17
|
+
$active-border: null
|
|
18
|
+
) {
|
|
19
|
+
$btn-text-color: colors.$white;
|
|
20
|
+
$btn-text-hover-color: colors.$white;
|
|
21
|
+
|
|
22
|
+
@if ($color == 'light') {
|
|
23
|
+
$btn-text-color: var(--#{config.$prefix}dark-text-emphasis);
|
|
24
|
+
$btn-text-hover-color: var(--#{config.$prefix}dark-text-emphasis);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
--#{config.$prefix}btn-color: #{$btn-text-color};
|
|
28
|
+
--#{config.$prefix}btn-bg: #{$background};
|
|
29
|
+
--#{config.$prefix}btn-border-color: #{$border};
|
|
30
|
+
--#{config.$prefix}btn-hover-color: #{$btn-text-hover-color};
|
|
31
|
+
--#{config.$prefix}btn-hover-bg: #{if(
|
|
32
|
+
$hover-background,
|
|
33
|
+
$hover-background,
|
|
34
|
+
color.scale($background, $lightness: -15%)
|
|
35
|
+
)};
|
|
36
|
+
--#{config.$prefix}btn-hover-border-color: #{if(
|
|
37
|
+
$hover-border,
|
|
38
|
+
$hover-border,
|
|
39
|
+
color.scale($border, $lightness: -10%)
|
|
40
|
+
)};
|
|
41
|
+
--#{config.$prefix}btn-active-color: #{colors.$white};
|
|
42
|
+
--#{config.$prefix}btn-active-bg: #{if(
|
|
43
|
+
$active-background,
|
|
44
|
+
$active-background,
|
|
45
|
+
color.scale($background, $lightness: -20%)
|
|
46
|
+
)};
|
|
47
|
+
--#{config.$prefix}btn-active-border-color: #{if(
|
|
48
|
+
$active-border,
|
|
49
|
+
$active-border,
|
|
50
|
+
color.scale($border, $lightness: -25%)
|
|
51
|
+
)};
|
|
52
|
+
--#{config.$prefix}btn-disabled-color: #{colors.$white};
|
|
53
|
+
--#{config.$prefix}btn-disabled-bg: #{$background};
|
|
54
|
+
--#{config.$prefix}btn-disabled-border-color: #{$background};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Button outline variant mixin
|
|
58
|
+
@mixin btn-outline-variant(
|
|
59
|
+
$color,
|
|
60
|
+
$color-hover: 'light',
|
|
61
|
+
$hover-background: $color,
|
|
62
|
+
$hover-border: $color,
|
|
63
|
+
$active-background: $color,
|
|
64
|
+
$active-border: $color
|
|
65
|
+
) {
|
|
66
|
+
@if ($hover-background == 'primary') {
|
|
67
|
+
$hover-background: 'primary';
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@if ($hover-background == 'light') {
|
|
71
|
+
$hover-background: 'secondary';
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@if ($hover-background == 'dark') {
|
|
75
|
+
$hover-background: 'secondary';
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
$btn-color: $color;
|
|
79
|
+
|
|
80
|
+
@if ($color == 'secondary') {
|
|
81
|
+
$btn-color: 'invert';
|
|
82
|
+
$color-hover: 'invert';
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@if ($color == 'dark') {
|
|
86
|
+
$btn-color: 'invert';
|
|
87
|
+
$color-hover: 'invert';
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@if ($color == 'light') {
|
|
91
|
+
$btn-color: 'invert';
|
|
92
|
+
$color-hover: 'invert';
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
--#{config.$prefix}btn-color: var(--#{config.$prefix}#{$btn-color});
|
|
96
|
+
--#{config.$prefix}btn-bg: transparent;
|
|
97
|
+
--#{config.$prefix}btn-border-color: var(--#{config.$prefix}#{$color});
|
|
98
|
+
--#{config.$prefix}btn-hover-color: var(--#{config.$prefix}#{$color-hover});
|
|
99
|
+
--#{config.$prefix}btn-hover-bg: var(--#{config.$prefix}#{$hover-background});
|
|
100
|
+
--#{config.$prefix}btn-hover-border-color: var(--#{config.$prefix}#{$hover-border});
|
|
101
|
+
--#{config.$prefix}btn-active-color: var(--#{config.$prefix}#{$color-hover});
|
|
102
|
+
--#{config.$prefix}btn-active-bg: var(--#{config.$prefix}#{$active-background});
|
|
103
|
+
--#{config.$prefix}btn-active-border-color: var(--#{config.$prefix}#{$active-border});
|
|
104
|
+
--#{config.$prefix}btn-disabled-color: var(--#{config.$prefix}#{$color});
|
|
105
|
+
--#{config.$prefix}btn-disabled-bg: transparent;
|
|
106
|
+
--#{config.$prefix}btn-disabled-border-color: var(--#{config.$prefix}#{$color});
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// Button size mixin
|
|
110
|
+
@mixin btn-size($padding-y, $padding-x, $font-size, $border-radius) {
|
|
111
|
+
--#{config.$prefix}btn-padding-y: #{$padding-y};
|
|
112
|
+
--#{config.$prefix}btn-padding-x: #{$padding-x};
|
|
113
|
+
--#{config.$prefix}btn-font-size: #{$font-size};
|
|
114
|
+
--#{config.$prefix}btn-border-radius: #{$border-radius};
|
|
115
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
@use 'sass:math';
|
|
3
|
+
@use '../01-settings/settings.config' as config;
|
|
4
|
+
|
|
5
|
+
// Return SASS color from RGB
|
|
6
|
+
@function rgb-to-color($r, $g, $b) {
|
|
7
|
+
@return rgb($r, $g, $b);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// Tint a color: mix a color with white
|
|
11
|
+
@function tint-color($color, $weight) {
|
|
12
|
+
@return color.mix(white, $color, $weight);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// Shade a color: mix a color with black
|
|
16
|
+
@function shade-color($color, $weight) {
|
|
17
|
+
@return color.mix(black, $color, $weight);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Shade the color if the weight is positive, else tint it
|
|
21
|
+
@function shift-color($color, $weight) {
|
|
22
|
+
@return if($weight > 0, tint-color($color, $weight), shade-color($color, -$weight));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Return valid calc expression if includes CSS variables
|
|
26
|
+
@function add-var($value1, $value2) {
|
|
27
|
+
@return $value1 + $value2;
|
|
28
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use '../01-settings/settings.color-mode' as color-mode;
|
|
2
|
+
@use '../01-settings/settings.config' as config;
|
|
3
|
+
|
|
4
|
+
@mixin color-mode($mode: light, $root: false) {
|
|
5
|
+
@if color-mode.$color-mode-type == 'media-query' {
|
|
6
|
+
@if $root == true {
|
|
7
|
+
@media (prefers-color-scheme: $mode) {
|
|
8
|
+
:root {
|
|
9
|
+
@content;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
} @else {
|
|
13
|
+
@media (prefers-color-scheme: $mode) {
|
|
14
|
+
@content;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
} @else {
|
|
18
|
+
[data-#{config.$prefix}theme='#{$mode}'] {
|
|
19
|
+
@content;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// Event wrapper
|
|
2
|
+
/// @author Harry Roberts
|
|
3
|
+
/// @param {Bool} $self [false] - Whether or not to include current selector
|
|
4
|
+
/// @link https://twitter.com/csswizardry/status/478938530342006784 Original tweet from Harry Roberts
|
|
5
|
+
@mixin on-event($self: false) {
|
|
6
|
+
@if $self {
|
|
7
|
+
&,
|
|
8
|
+
&:hover,
|
|
9
|
+
&:active,
|
|
10
|
+
&:focus,
|
|
11
|
+
&:focus-visible {
|
|
12
|
+
@content;
|
|
13
|
+
}
|
|
14
|
+
} @else {
|
|
15
|
+
&:hover,
|
|
16
|
+
&:active,
|
|
17
|
+
&:focus,
|
|
18
|
+
&:focus-visible {
|
|
19
|
+
@content;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
@use '../01-settings/settings.config' as config;
|
|
2
|
+
@use '../01-settings/settings.grid' as grid;
|
|
3
|
+
@use '../01-settings/settings.breakpoints' as breakpoints;
|
|
4
|
+
@use './tools.breakpoints' as *;
|
|
5
|
+
@use 'sass:math';
|
|
6
|
+
@use 'sass:map';
|
|
7
|
+
@use 'sass:list';
|
|
8
|
+
|
|
9
|
+
// Container mixin
|
|
10
|
+
@mixin make-container($gutter: grid.$grid-gutter-width) {
|
|
11
|
+
width: 100%;
|
|
12
|
+
padding-right: $gutter * 0.5;
|
|
13
|
+
padding-left: $gutter * 0.5;
|
|
14
|
+
margin-right: auto;
|
|
15
|
+
margin-left: auto;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Row mixin
|
|
19
|
+
@mixin make-row($gutter: grid.$grid-gutter-width) {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-wrap: wrap;
|
|
22
|
+
margin-right: -$gutter * 0.5;
|
|
23
|
+
margin-left: -$gutter * 0.5;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Column ready mixin
|
|
27
|
+
@mixin make-col-ready($gutter: grid.$grid-gutter-width) {
|
|
28
|
+
position: relative;
|
|
29
|
+
width: 100%;
|
|
30
|
+
padding-right: $gutter * 0.5;
|
|
31
|
+
padding-left: $gutter * 0.5;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Column size mixin
|
|
35
|
+
@mixin make-col($size, $columns: grid.$grid-columns) {
|
|
36
|
+
flex: 0 0 auto;
|
|
37
|
+
width: math.percentage(math.div($size, $columns));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Column offset mixin
|
|
41
|
+
@mixin make-col-offset($size, $columns: grid.$grid-columns) {
|
|
42
|
+
margin-left: if($size > 0, math.percentage(math.div($size, $columns)), 0);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Grid columns generator
|
|
46
|
+
@mixin grid-columns(
|
|
47
|
+
$columns: grid.$grid-columns,
|
|
48
|
+
$gutter: grid.$grid-gutter-width,
|
|
49
|
+
$breakpoints: breakpoints.$grid-breakpoints
|
|
50
|
+
) {
|
|
51
|
+
@each $breakpoint in map.keys($breakpoints) {
|
|
52
|
+
$infix: breakpoint-infix($breakpoint, $breakpoints);
|
|
53
|
+
|
|
54
|
+
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
|
55
|
+
.o-grid__col-#{$infix}-auto {
|
|
56
|
+
flex: 1 0 0%; // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@if $columns > 0 {
|
|
60
|
+
@for $i from 1 through $columns {
|
|
61
|
+
.o-grid__col-#{$infix}-#{$i} {
|
|
62
|
+
@include make-col($i, $columns);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@for $i from 0 through ($columns - 1) {
|
|
67
|
+
@if not($infix == '' and $i == 0) {
|
|
68
|
+
.o-grid__offset-#{$infix}-#{$i} {
|
|
69
|
+
@include make-col-offset($i, $columns);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// Hide content visually while keeping it accessible to screen readers
|
|
2
|
+
/// @author Harry Roberts
|
|
3
|
+
/// @link https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css
|
|
4
|
+
@mixin visually-hidden {
|
|
5
|
+
border: 0;
|
|
6
|
+
clip: rect(0 0 0 0);
|
|
7
|
+
height: 1px;
|
|
8
|
+
margin: -1px;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
padding: 0;
|
|
11
|
+
position: absolute;
|
|
12
|
+
width: 1px;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/// Unhide visually hidden content
|
|
17
|
+
@mixin visually-unhide {
|
|
18
|
+
clip: auto;
|
|
19
|
+
height: auto;
|
|
20
|
+
margin: 0;
|
|
21
|
+
overflow: visible;
|
|
22
|
+
position: static;
|
|
23
|
+
width: auto;
|
|
24
|
+
white-space: normal;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/// Visually hide but reveal on focus
|
|
28
|
+
@mixin visually-hidden-focusable {
|
|
29
|
+
&:not(:focus):not(:focus-within) {
|
|
30
|
+
@include visually-hidden;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:meta';
|
|
3
|
+
@use 'sass:color';
|
|
4
|
+
@use '../02-tools/tools.to-rgb' as to-rgb;
|
|
5
|
+
|
|
6
|
+
/// Calls `$function` for each pair in `$map`, passing the value of `$key` and `$value` as arguments.
|
|
7
|
+
/// Returns a new map with the same keys and the result of `$function` as values.
|
|
8
|
+
@function map-loop($map, $function-name, $key: '$key', $value: '$value') {
|
|
9
|
+
$result: ();
|
|
10
|
+
@each $k, $v in $map {
|
|
11
|
+
$function-result: null;
|
|
12
|
+
|
|
13
|
+
// Handle the to-rgb function specifically since it's commonly used
|
|
14
|
+
@if $function-name == 'to-rgb' {
|
|
15
|
+
$function-result: to-rgb.to-rgb($v);
|
|
16
|
+
} @else {
|
|
17
|
+
// For unsupported functions, return the original value
|
|
18
|
+
// or you could use @warn instead of @error to continue execution
|
|
19
|
+
@warn "Function #{$function-name} not supported by map-loop, returning original value";
|
|
20
|
+
$function-result: $v;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
$result: map.merge(
|
|
24
|
+
$result,
|
|
25
|
+
(
|
|
26
|
+
$k: $function-result,
|
|
27
|
+
)
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
@return $result;
|
|
31
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
@use '../01-settings/settings.breakpoints' as breakpoints;
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
|
|
4
|
+
// Media Up - Min-width
|
|
5
|
+
@mixin media-up($breakpoint) {
|
|
6
|
+
@if map.has-key(breakpoints.$grid-breakpoints, $breakpoint) {
|
|
7
|
+
$value: map.get(breakpoints.$grid-breakpoints, $breakpoint);
|
|
8
|
+
@media (min-width: $value) {
|
|
9
|
+
@content;
|
|
10
|
+
}
|
|
11
|
+
} @else {
|
|
12
|
+
@warn "Unknown breakpoint `#{$breakpoint}` in $breakpoints";
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Media Down - Max-width
|
|
17
|
+
@mixin media-down($breakpoint) {
|
|
18
|
+
@if map.has-key(breakpoints.$grid-breakpoints, $breakpoint) {
|
|
19
|
+
$value: map.get(breakpoints.$grid-breakpoints, $breakpoint);
|
|
20
|
+
@media (max-width: ($value - 0.02px)) {
|
|
21
|
+
@content;
|
|
22
|
+
}
|
|
23
|
+
} @else {
|
|
24
|
+
@warn "Unknown breakpoint `#{$breakpoint}` in $breakpoints";
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// Media Between - Min-width and Max-width
|
|
29
|
+
@mixin media-between($lower, $upper) {
|
|
30
|
+
@if map.has-key(breakpoints.$grid-breakpoints, $lower) and
|
|
31
|
+
map.has-key(breakpoints.$grid-breakpoints, $upper)
|
|
32
|
+
{
|
|
33
|
+
$min: map.get(breakpoints.$grid-breakpoints, $lower);
|
|
34
|
+
$max: map.get(breakpoints.$grid-breakpoints, $upper);
|
|
35
|
+
@media (min-width: $min) and (max-width: ($max - 0.02px)) {
|
|
36
|
+
@content;
|
|
37
|
+
}
|
|
38
|
+
} @else {
|
|
39
|
+
@warn "Unknown breakpoint `#{$lower}` or `#{$upper}` in $breakpoints";
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Media Only - Specific breakpoint
|
|
44
|
+
@mixin media-only($breakpoint) {
|
|
45
|
+
@if map.has-key(breakpoints.$grid-breakpoints, $breakpoint) {
|
|
46
|
+
$lower: $breakpoint;
|
|
47
|
+
$upper: 'xl';
|
|
48
|
+
|
|
49
|
+
@if $breakpoint == 'xs' {
|
|
50
|
+
$upper: 'sm';
|
|
51
|
+
} @else if $breakpoint == 'sm' {
|
|
52
|
+
$upper: 'md';
|
|
53
|
+
} @else if $breakpoint == 'md' {
|
|
54
|
+
$upper: 'lg';
|
|
55
|
+
} @else if $breakpoint == 'lg' {
|
|
56
|
+
$upper: 'xl';
|
|
57
|
+
} @else if $breakpoint == 'xl' {
|
|
58
|
+
@include media-up($breakpoint) {
|
|
59
|
+
@content;
|
|
60
|
+
}
|
|
61
|
+
} @else {
|
|
62
|
+
@include media-between($lower, $upper) {
|
|
63
|
+
@content;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
} @else {
|
|
67
|
+
@warn "Unknown breakpoint `#{$breakpoint}` in $breakpoints";
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@mixin placeholder-color($color: #000) {
|
|
2
|
+
::-webkit-input-placeholder {
|
|
3
|
+
color: $color;
|
|
4
|
+
}
|
|
5
|
+
:-moz-placeholder {
|
|
6
|
+
color: $color;
|
|
7
|
+
}
|
|
8
|
+
::-moz-placeholder {
|
|
9
|
+
color: $color;
|
|
10
|
+
}
|
|
11
|
+
:-ms-input-placeholder {
|
|
12
|
+
color: $color;
|
|
13
|
+
}
|
|
14
|
+
::-ms-input-placeholder {
|
|
15
|
+
color: $color;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../01-settings/settings.config' as config;
|
|
3
|
+
@use '../01-settings/settings.spacing' as *;
|
|
4
|
+
|
|
5
|
+
$spacing-important: false !default;
|
|
6
|
+
|
|
7
|
+
@mixin m($t: 1, $r: null, $b: null, $l: null) {
|
|
8
|
+
@if ($t and $r and $b and $l) {
|
|
9
|
+
@include mt($t);
|
|
10
|
+
@include mr($r);
|
|
11
|
+
@include mb($b);
|
|
12
|
+
@include ml($l);
|
|
13
|
+
} @else if ($t and $r and $b and not $l) {
|
|
14
|
+
@include mt($t);
|
|
15
|
+
@include mx($r);
|
|
16
|
+
@include mb($b);
|
|
17
|
+
} @else if ($t and $r and not $b and not $l) {
|
|
18
|
+
@include my($t);
|
|
19
|
+
@include mx($r);
|
|
20
|
+
} @else if ($t and not $r and not $b and not $l) {
|
|
21
|
+
@if ($t == 'auto') {
|
|
22
|
+
@include my(0); //be explicit about what the browser does
|
|
23
|
+
@include mx(auto);
|
|
24
|
+
} @else {
|
|
25
|
+
@include my($t);
|
|
26
|
+
@include mx($t);
|
|
27
|
+
}
|
|
28
|
+
} @else {
|
|
29
|
+
@error "m(#{$t}, #{$r}, #{$b}, #{$l}): Invalid parameters. Expects m($size), m($y, $x), m($t, $x, $b) or m($t, $r, $b, $l)";
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@mixin mx($r: 1, $l: null) {
|
|
34
|
+
@if ($r and $l) {
|
|
35
|
+
@include mr($r);
|
|
36
|
+
@include ml($l);
|
|
37
|
+
} @else if ($r and not $l) {
|
|
38
|
+
@include mr($r);
|
|
39
|
+
@include ml($r);
|
|
40
|
+
} @else {
|
|
41
|
+
@error "mx(#{$r}, #{$l}): Invalid parameters. Expects mx($size) or mx($r, $l)";
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@mixin my($t: 1, $b: null) {
|
|
46
|
+
@if ($t and $b) {
|
|
47
|
+
@include mt($t);
|
|
48
|
+
@include mb($b);
|
|
49
|
+
} @else if ($t and not $b) {
|
|
50
|
+
@include mt($t);
|
|
51
|
+
@include mb($t);
|
|
52
|
+
} @else {
|
|
53
|
+
@error "my(#{$t}, #{$b}): Invalid parameters. Expects my($size) or my($t, $b)";
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@mixin ml($size: 1) {
|
|
58
|
+
@if ($size == 'auto') {
|
|
59
|
+
margin-left: auto #{if($spacing-important, '!important', '')};
|
|
60
|
+
} @else {
|
|
61
|
+
margin-left: map.get($spacing-sizes, $size) #{if($spacing-important, '!important', '')};
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@mixin mt($size: 1) {
|
|
66
|
+
margin-top: map.get($spacing-sizes, $size) #{if($spacing-important, '!important', '')};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@mixin mr($size: 1) {
|
|
70
|
+
@if ($size == 'auto') {
|
|
71
|
+
margin-right: auto #{if($spacing-important, '!important', '')};
|
|
72
|
+
} @else {
|
|
73
|
+
margin-right: map.get($spacing-sizes, $size) #{if($spacing-important, '!important', '')};
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@mixin mb($size: 1) {
|
|
78
|
+
margin-bottom: map.get($spacing-sizes, $size) #{if($spacing-important, '!important', '')};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@mixin p($t: 1, $r: null, $b: null, $l: null) {
|
|
82
|
+
@if ($t and $r and $b and $l) {
|
|
83
|
+
@include pt($t);
|
|
84
|
+
@include pr($r);
|
|
85
|
+
@include pb($b);
|
|
86
|
+
@include pl($l);
|
|
87
|
+
} @else if ($t and $r and $b and not $l) {
|
|
88
|
+
@include pt($t);
|
|
89
|
+
@include px($r);
|
|
90
|
+
@include pb($b);
|
|
91
|
+
} @else if ($t and $r and not $b and not $l) {
|
|
92
|
+
@include py($t);
|
|
93
|
+
@include px($r);
|
|
94
|
+
} @else if ($t and not $r and not $b and not $l) {
|
|
95
|
+
@include py($t);
|
|
96
|
+
@include px($t);
|
|
97
|
+
} @else {
|
|
98
|
+
@error "p(#{$t}, #{$r}, #{$b}, #{$l}): Invalid parameters. Expects p($size), p($y, $x), p($t, $x, $b) or p($t, $r, $b, $l)";
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@mixin px($r: 1, $l: null) {
|
|
103
|
+
@if ($r and $l) {
|
|
104
|
+
@include pr($r);
|
|
105
|
+
@include pl($l);
|
|
106
|
+
} @else if ($r and not $l) {
|
|
107
|
+
@include pr($r);
|
|
108
|
+
@include pl($r);
|
|
109
|
+
} @else {
|
|
110
|
+
@error "px(#{$r}, #{$l}): Invalid parameters. Expects px($size) or px($r, $l)";
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@mixin py($t: 1, $b: null) {
|
|
115
|
+
@if ($t and $b) {
|
|
116
|
+
@include pt($t);
|
|
117
|
+
@include pb($b);
|
|
118
|
+
} @else if ($t and not $b) {
|
|
119
|
+
@include pt($t);
|
|
120
|
+
@include pb($t);
|
|
121
|
+
} @else {
|
|
122
|
+
@error "py(#{$t}, #{$b}): Invalid parameters. Expects py($size) or py($t, $b)";
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@mixin pl($size: 1) {
|
|
127
|
+
padding-left: map.get($spacing-sizes, $size) #{if($spacing-important, '!important', '')};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@mixin pt($size: 1) {
|
|
131
|
+
padding-top: map.get($spacing-sizes, $size) #{if($spacing-important, '!important', '')};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@mixin pr($size: 1) {
|
|
135
|
+
padding-right: map.get($spacing-sizes, $size) #{if($spacing-important, '!important', '')};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@mixin pb($size: 1) {
|
|
139
|
+
padding-bottom: map.get($spacing-sizes, $size) #{if($spacing-important, '!important', '')};
|
|
140
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
@use 'sass:meta';
|
|
3
|
+
|
|
4
|
+
@function to-rgb($color) {
|
|
5
|
+
@if meta.type-of($color) == 'color' {
|
|
6
|
+
@return "#{color.channel($color, 'red', $space: rgb)}, #{color.channel($color, 'green', $space: rgb)}, #{color.channel($color, 'blue', $space: rgb)}";
|
|
7
|
+
}
|
|
8
|
+
@return $color; // Pass through CSS variable or string
|
|
9
|
+
}
|