@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,878 @@
|
|
|
1
|
+
@use '../01-settings/settings.photoviewer' as photoviewer;
|
|
2
|
+
@use '../01-settings/settings.config' as config;
|
|
3
|
+
@use '../01-settings/settings.colors' as *;
|
|
4
|
+
@use '../01-settings/settings.border-radius' as *;
|
|
5
|
+
@use '../01-settings/settings.box-shadow' as *;
|
|
6
|
+
@use '../01-settings/settings.spacing' as *;
|
|
7
|
+
@use '../01-settings/settings.typography' as *;
|
|
8
|
+
@use '../02-tools/tools.rem' as rem;
|
|
9
|
+
@use '../02-tools/tools.spacing' as *;
|
|
10
|
+
|
|
11
|
+
// Common mixins
|
|
12
|
+
%flex-center {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
%standard-transition {
|
|
19
|
+
transition: all var(--#{config.$prefix}photoviewer-transition-duration)
|
|
20
|
+
var(--#{config.$prefix}photoviewer-transition-timing);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
%standard-transition {
|
|
24
|
+
transition: all var(--#{config.$prefix}photoviewer-transition-duration)
|
|
25
|
+
var(--#{config.$prefix}photoviewer-transition-timing);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
%svg-icon {
|
|
29
|
+
fill: currentColor;
|
|
30
|
+
pointer-events: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Common panel styles
|
|
34
|
+
%panel-base {
|
|
35
|
+
background: $gray-1;
|
|
36
|
+
border-radius: var(--#{config.$prefix}photoviewer-control-border-radius);
|
|
37
|
+
box-shadow: $box-shadow-lg;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Custom scrollbar styling
|
|
41
|
+
%custom-scrollbar {
|
|
42
|
+
&::-webkit-scrollbar {
|
|
43
|
+
width: 6px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&::-webkit-scrollbar-track {
|
|
47
|
+
background: transparent;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&::-webkit-scrollbar-thumb {
|
|
51
|
+
background: $gray-4;
|
|
52
|
+
border-radius: 3px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
56
|
+
background: $gray-5;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Hover effect for interactive elements
|
|
61
|
+
%hover-effect {
|
|
62
|
+
&:hover:not(:disabled) {
|
|
63
|
+
transform: translateY(-2px);
|
|
64
|
+
box-shadow: $box-shadow-sm;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:active:not(:disabled) {
|
|
68
|
+
transform: translateY(0);
|
|
69
|
+
box-shadow: $box-shadow-xs;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Common image styling
|
|
74
|
+
%image-base {
|
|
75
|
+
max-width: 100%;
|
|
76
|
+
max-height: 100%;
|
|
77
|
+
object-fit: contain;
|
|
78
|
+
transform-origin: center center;
|
|
79
|
+
will-change: auto;
|
|
80
|
+
|
|
81
|
+
// Enhanced image quality
|
|
82
|
+
image-rendering: auto;
|
|
83
|
+
image-rendering: -webkit-optimize-contrast;
|
|
84
|
+
-webkit-backface-visibility: hidden;
|
|
85
|
+
backface-visibility: hidden;
|
|
86
|
+
|
|
87
|
+
// Smooth hardware-accelerated transforms
|
|
88
|
+
transform: translateZ(0);
|
|
89
|
+
|
|
90
|
+
// Prevent any touch actions on the image itself
|
|
91
|
+
touch-action: none;
|
|
92
|
+
-webkit-touch-callout: none;
|
|
93
|
+
-webkit-user-select: none;
|
|
94
|
+
user-select: none;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// Thumbnail styling
|
|
98
|
+
%thumbnail-base {
|
|
99
|
+
@extend %flex-center;
|
|
100
|
+
@extend %standard-transition;
|
|
101
|
+
border: 2px solid transparent;
|
|
102
|
+
border-radius: $border-radius-sm;
|
|
103
|
+
padding: 0;
|
|
104
|
+
background: rgba(255, 255, 255, 0.1);
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
overflow: hidden;
|
|
107
|
+
position: relative;
|
|
108
|
+
|
|
109
|
+
&::after {
|
|
110
|
+
content: '';
|
|
111
|
+
position: absolute;
|
|
112
|
+
inset: 0;
|
|
113
|
+
background: rgba(0, 0, 0, 0.2);
|
|
114
|
+
opacity: 1;
|
|
115
|
+
transition: opacity var(--#{config.$prefix}photoviewer-transition-duration)
|
|
116
|
+
var(--#{config.$prefix}photoviewer-transition-timing);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&:hover {
|
|
120
|
+
transform: translateY(-2px);
|
|
121
|
+
box-shadow: $box-shadow-sm;
|
|
122
|
+
border-color: rgba(255, 255, 255, 0.3);
|
|
123
|
+
|
|
124
|
+
&::after {
|
|
125
|
+
opacity: 0;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&.is-active {
|
|
130
|
+
border-color: var(--#{config.$prefix}photoviewer-thumbnail-border);
|
|
131
|
+
box-shadow: var(--#{config.$prefix}box-shadow-md);
|
|
132
|
+
transform: scale(1.05);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// Info panel metadata styling
|
|
137
|
+
%info-meta-item {
|
|
138
|
+
font-size: $font-size-sm;
|
|
139
|
+
color: $gray-7;
|
|
140
|
+
margin-bottom: 0.75rem;
|
|
141
|
+
padding-left: 1.5rem;
|
|
142
|
+
position: relative;
|
|
143
|
+
|
|
144
|
+
&::before {
|
|
145
|
+
content: '';
|
|
146
|
+
position: absolute;
|
|
147
|
+
left: 0;
|
|
148
|
+
top: 0.4rem;
|
|
149
|
+
width: 8px;
|
|
150
|
+
height: 8px;
|
|
151
|
+
background: var(--#{config.$prefix}primary-lighter);
|
|
152
|
+
border-radius: 50%;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// Info panel tag styling
|
|
157
|
+
%info-tag {
|
|
158
|
+
display: inline-flex;
|
|
159
|
+
padding: 0.25rem 0.75rem;
|
|
160
|
+
background: $gray-2;
|
|
161
|
+
color: $gray-8;
|
|
162
|
+
border-radius: $border-radius-pill;
|
|
163
|
+
font-size: $font-size-xs;
|
|
164
|
+
font-weight: 500;
|
|
165
|
+
transition: all 0.2s ease;
|
|
166
|
+
|
|
167
|
+
&:hover {
|
|
168
|
+
background: var(--#{config.$prefix}primary-lighter);
|
|
169
|
+
color: var(--#{config.$prefix}primary-darker);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// Common responsive control size adjustments
|
|
174
|
+
@mixin responsive-control-sizes($size-multiplier) {
|
|
175
|
+
&__action-btn,
|
|
176
|
+
&__action-button {
|
|
177
|
+
width: calc(var(--#{config.$prefix}photoviewer-control-size-small) * #{$size-multiplier});
|
|
178
|
+
height: calc(var(--#{config.$prefix}photoviewer-control-size-small) * #{$size-multiplier});
|
|
179
|
+
|
|
180
|
+
svg {
|
|
181
|
+
width: calc(20px * #{$size-multiplier});
|
|
182
|
+
height: calc(20px * #{$size-multiplier});
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&__nav-btn,
|
|
187
|
+
&__nav-button {
|
|
188
|
+
width: calc(var(--#{config.$prefix}photoviewer-control-size) * #{$size-multiplier});
|
|
189
|
+
height: calc(var(--#{config.$prefix}photoviewer-control-size) * #{$size-multiplier});
|
|
190
|
+
|
|
191
|
+
svg {
|
|
192
|
+
width: calc(24px * #{$size-multiplier});
|
|
193
|
+
height: calc(24px * #{$size-multiplier});
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&__thumbnail {
|
|
198
|
+
width: calc(var(--#{config.$prefix}photoviewer-thumbnail-size) * #{$size-multiplier});
|
|
199
|
+
height: calc(var(--#{config.$prefix}photoviewer-thumbnail-size) * #{$size-multiplier});
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// When the PhotoViewer is open, an 'is-open-photoviewer' class is added to the body
|
|
204
|
+
// This can be used to apply additional styling to the page when the PhotoViewer is active
|
|
205
|
+
body.is-open-photoviewer {
|
|
206
|
+
overflow: hidden;
|
|
207
|
+
|
|
208
|
+
// Prevent iOS bounce scrolling
|
|
209
|
+
position: fixed;
|
|
210
|
+
width: 100%;
|
|
211
|
+
|
|
212
|
+
// Prevent touch zoom/pan on the entire page when PhotoViewer is open
|
|
213
|
+
touch-action: none;
|
|
214
|
+
-webkit-touch-callout: none;
|
|
215
|
+
-webkit-user-select: none;
|
|
216
|
+
|
|
217
|
+
// Optimize for trackpad gestures on macOS
|
|
218
|
+
-webkit-transform: translateZ(0);
|
|
219
|
+
-webkit-backface-visibility: hidden;
|
|
220
|
+
|
|
221
|
+
@supports (overflow: clip) {
|
|
222
|
+
overflow: clip;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// Enhanced mobile support
|
|
227
|
+
@media (max-width: 768px) {
|
|
228
|
+
body.is-open-photoviewer {
|
|
229
|
+
// Additional mobile-specific styles
|
|
230
|
+
-webkit-overflow-scrolling: touch;
|
|
231
|
+
|
|
232
|
+
// Prevent address bar from showing/hiding
|
|
233
|
+
height: 100vh;
|
|
234
|
+
height: 100dvh; // Dynamic viewport height
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
// Main component styles
|
|
239
|
+
.c-photo-viewer {
|
|
240
|
+
$root: &;
|
|
241
|
+
// Set CSS variables for component
|
|
242
|
+
--#{config.$prefix}photoviewer-bg: #{photoviewer.$component-background-color};
|
|
243
|
+
--#{config.$prefix}photoviewer-border-radius: #{$border-radius-xl};
|
|
244
|
+
--#{config.$prefix}photoviewer-shadow: #{$box-shadow-lg};
|
|
245
|
+
--#{config.$prefix}photoviewer-backdrop-bg: #{photoviewer.$modal-background-color};
|
|
246
|
+
--#{config.$prefix}photoviewer-backdrop-blur: 12px;
|
|
247
|
+
--#{config.$prefix}photoviewer-action-color: #{photoviewer.$control-color};
|
|
248
|
+
--#{config.$prefix}photoviewer-action-hover-color: #{photoviewer.$control-color-hover};
|
|
249
|
+
--#{config.$prefix}photoviewer-action-bg: #{photoviewer.$control-background};
|
|
250
|
+
--#{config.$prefix}photoviewer-action-hover-bg: #{photoviewer.$control-background-hover};
|
|
251
|
+
--#{config.$prefix}photoviewer-close-color: #{photoviewer.$modal-close-button-color};
|
|
252
|
+
--#{config.$prefix}photoviewer-thumbnail-border: #{photoviewer.$thumbnail-active-border-color};
|
|
253
|
+
--#{config.$prefix}photoviewer-spacing: #{photoviewer.$component-spacing};
|
|
254
|
+
--#{config.$prefix}photoviewer-transition-duration: #{photoviewer.$photoviewer-transition-duration};
|
|
255
|
+
--#{config.$prefix}photoviewer-transition-timing: #{photoviewer.$photoviewer-transition-timing};
|
|
256
|
+
--#{config.$prefix}photoviewer-control-size: #{photoviewer.$control-size};
|
|
257
|
+
--#{config.$prefix}photoviewer-control-size-small: #{photoviewer.$control-size-small};
|
|
258
|
+
--#{config.$prefix}photoviewer-control-border-radius: #{photoviewer.$control-border-radius};
|
|
259
|
+
--#{config.$prefix}photoviewer-thumbnail-size: #{photoviewer.$thumbnail-size};
|
|
260
|
+
--#{config.$prefix}photoviewer-thumbnail-size-large: #{photoviewer.$thumbnail-size-large};
|
|
261
|
+
--#{config.$prefix}photoviewer-thumbnail-gap: #{photoviewer.$thumbnail-gap};
|
|
262
|
+
--#{config.$prefix}photoviewer-info-panel-width: #{photoviewer.$info-panel-width};
|
|
263
|
+
|
|
264
|
+
@extend %flex-center;
|
|
265
|
+
@extend %standard-transition;
|
|
266
|
+
height: 100vh;
|
|
267
|
+
background: var(--#{config.$prefix}photoviewer-bg);
|
|
268
|
+
border-radius: var(--#{config.$prefix}photoviewer-border-radius);
|
|
269
|
+
box-shadow: var(--#{config.$prefix}photoviewer-shadow);
|
|
270
|
+
position: fixed;
|
|
271
|
+
inset: 0;
|
|
272
|
+
z-index: 1000;
|
|
273
|
+
overflow: hidden;
|
|
274
|
+
opacity: 1;
|
|
275
|
+
transition-property: opacity;
|
|
276
|
+
|
|
277
|
+
&__backdrop {
|
|
278
|
+
@extend %standard-transition;
|
|
279
|
+
position: absolute;
|
|
280
|
+
inset: 0;
|
|
281
|
+
background: var(--#{config.$prefix}photoviewer-backdrop-bg);
|
|
282
|
+
backdrop-filter: blur(var(--#{config.$prefix}photoviewer-backdrop-blur));
|
|
283
|
+
z-index: 1;
|
|
284
|
+
opacity: 1;
|
|
285
|
+
transition-property: opacity;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
&__container {
|
|
289
|
+
@extend %standard-transition;
|
|
290
|
+
@extend %panel-base;
|
|
291
|
+
position: relative;
|
|
292
|
+
z-index: 2;
|
|
293
|
+
background: var(--#{config.$prefix}photoviewer-bg);
|
|
294
|
+
border-radius: var(--#{config.$prefix}photoviewer-border-radius);
|
|
295
|
+
padding: var(--#{config.$prefix}photoviewer-spacing);
|
|
296
|
+
display: flex;
|
|
297
|
+
flex-direction: column;
|
|
298
|
+
min-width: 320px;
|
|
299
|
+
max-width: 90vw;
|
|
300
|
+
min-height: 240px;
|
|
301
|
+
max-height: 90vh;
|
|
302
|
+
width: 100%;
|
|
303
|
+
height: 100%;
|
|
304
|
+
transform: scale(1);
|
|
305
|
+
transition-property: transform;
|
|
306
|
+
overflow: hidden;
|
|
307
|
+
|
|
308
|
+
.is-entering & {
|
|
309
|
+
transform: scale(0.95);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.is-exiting & {
|
|
313
|
+
transform: scale(0.95);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
&__header {
|
|
318
|
+
display: flex;
|
|
319
|
+
justify-content: space-between;
|
|
320
|
+
align-items: center;
|
|
321
|
+
margin-bottom: var(--#{config.$prefix}photoviewer-spacing);
|
|
322
|
+
position: relative;
|
|
323
|
+
z-index: 5;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
&__counter,
|
|
327
|
+
&__counter-badge {
|
|
328
|
+
font-size: $font-size-sm;
|
|
329
|
+
color: $gray-7;
|
|
330
|
+
font-weight: 500;
|
|
331
|
+
background: rgba(255, 255, 255, 0.8);
|
|
332
|
+
padding: 0.25rem 0.75rem;
|
|
333
|
+
border-radius: $border-radius-pill;
|
|
334
|
+
backdrop-filter: blur(4px);
|
|
335
|
+
box-shadow: $box-shadow-xs;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
&__actions {
|
|
339
|
+
display: flex;
|
|
340
|
+
gap: 0.75rem;
|
|
341
|
+
align-items: center;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
// Common button styles mixin
|
|
345
|
+
%button-base {
|
|
346
|
+
@extend %flex-center;
|
|
347
|
+
@extend %standard-transition;
|
|
348
|
+
@extend %hover-effect;
|
|
349
|
+
background: var(--#{config.$prefix}photoviewer-action-bg);
|
|
350
|
+
color: var(--#{config.$prefix}photoviewer-action-color);
|
|
351
|
+
border: none;
|
|
352
|
+
border-radius: var(--#{config.$prefix}photoviewer-control-border-radius);
|
|
353
|
+
cursor: pointer;
|
|
354
|
+
box-shadow: $box-shadow-xs;
|
|
355
|
+
|
|
356
|
+
&:disabled {
|
|
357
|
+
opacity: 0.5;
|
|
358
|
+
cursor: not-allowed;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
svg {
|
|
362
|
+
@extend %svg-icon;
|
|
363
|
+
transition: transform 0.2s ease;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
&__action-btn,
|
|
368
|
+
&__action-button {
|
|
369
|
+
@extend %button-base;
|
|
370
|
+
width: var(--#{config.$prefix}photoviewer-control-size-small);
|
|
371
|
+
height: var(--#{config.$prefix}photoviewer-control-size-small);
|
|
372
|
+
|
|
373
|
+
&:hover:not(:disabled) {
|
|
374
|
+
background: var(--#{config.$prefix}photoviewer-action-hover-bg);
|
|
375
|
+
color: var(--#{config.$prefix}photoviewer-action-hover-color);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
svg {
|
|
379
|
+
width: 20px;
|
|
380
|
+
height: 20px;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
&__close {
|
|
385
|
+
color: var(--#{config.$prefix}photoviewer-close-color);
|
|
386
|
+
background: rgba(0, 0, 0, 0.3);
|
|
387
|
+
margin-left: 0.5rem;
|
|
388
|
+
|
|
389
|
+
&:hover {
|
|
390
|
+
background: rgba(0, 0, 0, 0.5);
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
&__content {
|
|
395
|
+
@extend %flex-center;
|
|
396
|
+
position: relative;
|
|
397
|
+
flex: 1 1 auto;
|
|
398
|
+
overflow: hidden;
|
|
399
|
+
min-height: 0;
|
|
400
|
+
|
|
401
|
+
&.is-transitioning {
|
|
402
|
+
.c-photo-viewer__image-container {
|
|
403
|
+
opacity: 0.7;
|
|
404
|
+
transition: opacity 0.15s ease-out;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
&__image-container {
|
|
410
|
+
@extend %flex-center;
|
|
411
|
+
position: relative;
|
|
412
|
+
width: 100%;
|
|
413
|
+
height: 100%;
|
|
414
|
+
overflow: hidden;
|
|
415
|
+
user-select: none;
|
|
416
|
+
-webkit-user-select: none;
|
|
417
|
+
-webkit-touch-callout: none;
|
|
418
|
+
-webkit-overflow-scrolling: touch;
|
|
419
|
+
|
|
420
|
+
// Control touch interactions - allow pan and zoom only within the container
|
|
421
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
422
|
+
|
|
423
|
+
// Optimize for smooth trackpad gestures
|
|
424
|
+
transform: translateZ(0);
|
|
425
|
+
-webkit-transform: translateZ(0);
|
|
426
|
+
-webkit-backface-visibility: hidden;
|
|
427
|
+
backface-visibility: hidden;
|
|
428
|
+
|
|
429
|
+
// Enable smooth scaling animations for trackpad gestures
|
|
430
|
+
transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
431
|
+
|
|
432
|
+
&.is-transitioning {
|
|
433
|
+
transition: opacity 0.15s ease-out;
|
|
434
|
+
|
|
435
|
+
.c-photo-viewer__image {
|
|
436
|
+
transition: opacity 0.15s ease-out !important;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
// Prevent image selection and dragging
|
|
441
|
+
img {
|
|
442
|
+
pointer-events: none;
|
|
443
|
+
-webkit-user-drag: none;
|
|
444
|
+
-khtml-user-drag: none;
|
|
445
|
+
-moz-user-drag: none;
|
|
446
|
+
-o-user-drag: none;
|
|
447
|
+
user-drag: none;
|
|
448
|
+
|
|
449
|
+
// Ensure touch actions are controlled
|
|
450
|
+
touch-action: none;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
// Loading state
|
|
454
|
+
&::before {
|
|
455
|
+
content: '';
|
|
456
|
+
position: absolute;
|
|
457
|
+
inset: 0;
|
|
458
|
+
background: linear-gradient(
|
|
459
|
+
90deg,
|
|
460
|
+
transparent 0%,
|
|
461
|
+
rgba(255, 255, 255, 0.1) 50%,
|
|
462
|
+
transparent 100%
|
|
463
|
+
);
|
|
464
|
+
animation: loading-shimmer 1.5s infinite;
|
|
465
|
+
opacity: 0;
|
|
466
|
+
pointer-events: none;
|
|
467
|
+
transition: opacity 0.3s ease;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
&.is-loading::before {
|
|
471
|
+
opacity: 1;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
&__image {
|
|
476
|
+
@extend %image-base;
|
|
477
|
+
|
|
478
|
+
// Dynamic transitions based on state - optimized for trackpad
|
|
479
|
+
transition:
|
|
480
|
+
transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
|
|
481
|
+
opacity 0.2s ease-out,
|
|
482
|
+
filter 0.2s ease-out;
|
|
483
|
+
|
|
484
|
+
// Dragging state - disable transitions for direct manipulation
|
|
485
|
+
.c-photo-viewer--dragging & {
|
|
486
|
+
transition: none !important;
|
|
487
|
+
will-change: transform;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
// Trackpad gesture state - smoother transitions for pinch zoom
|
|
491
|
+
&[style*='scale(']:not(.c-photo-viewer--dragging) {
|
|
492
|
+
transition: transform 0.1s cubic-bezier(0.23, 1, 0.32, 1);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
// Loading state
|
|
496
|
+
&.is-loading {
|
|
497
|
+
opacity: 0.3;
|
|
498
|
+
filter: blur(1px);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
// Zoom state optimizations
|
|
502
|
+
&[style*='scale(1)'] {
|
|
503
|
+
will-change: auto;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
&[style*='scale(']:not([style*='scale(1)']) {
|
|
507
|
+
will-change: transform;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
@media (prefers-reduced-motion: reduce) {
|
|
511
|
+
transition: none !important;
|
|
512
|
+
animation: none !important;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
// Loading animation
|
|
517
|
+
@keyframes loading-shimmer {
|
|
518
|
+
0% {
|
|
519
|
+
transform: translateX(-100%);
|
|
520
|
+
}
|
|
521
|
+
100% {
|
|
522
|
+
transform: translateX(100%);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
&__nav-btn,
|
|
527
|
+
&__nav-button {
|
|
528
|
+
@extend %button-base;
|
|
529
|
+
position: absolute;
|
|
530
|
+
top: 50%;
|
|
531
|
+
transform: translateY(-50%);
|
|
532
|
+
width: var(--#{config.$prefix}photoviewer-control-size);
|
|
533
|
+
height: var(--#{config.$prefix}photoviewer-control-size);
|
|
534
|
+
z-index: 5;
|
|
535
|
+
|
|
536
|
+
&:hover:not(:disabled) {
|
|
537
|
+
background: var(--#{config.$prefix}photoviewer-action-hover-bg);
|
|
538
|
+
color: var(--#{config.$prefix}photoviewer-action-hover-color);
|
|
539
|
+
transform: translateY(-50%) scale(1.05);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
&:active:not(:disabled) {
|
|
543
|
+
transform: translateY(-50%) scale(1);
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
&--prev {
|
|
547
|
+
left: 1rem;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
&--next {
|
|
551
|
+
right: 1rem;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
svg {
|
|
555
|
+
width: 24px;
|
|
556
|
+
height: 24px;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
&--fullscreen {
|
|
561
|
+
width: 100vw;
|
|
562
|
+
height: 100vh;
|
|
563
|
+
border-radius: 0;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
&__thumbnails {
|
|
567
|
+
display: flex;
|
|
568
|
+
gap: var(--#{config.$prefix}photoviewer-thumbnail-gap);
|
|
569
|
+
margin-top: var(--#{config.$prefix}photoviewer-spacing);
|
|
570
|
+
justify-content: center;
|
|
571
|
+
flex-wrap: wrap;
|
|
572
|
+
padding: 0.5rem;
|
|
573
|
+
background: rgba(255, 255, 255, 0.05);
|
|
574
|
+
border-radius: $border-radius-lg;
|
|
575
|
+
backdrop-filter: blur(4px);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
&__thumbnail {
|
|
579
|
+
@extend %thumbnail-base;
|
|
580
|
+
width: var(--#{config.$prefix}photoviewer-thumbnail-size);
|
|
581
|
+
height: var(--#{config.$prefix}photoviewer-thumbnail-size);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
&__thumbnail-img {
|
|
585
|
+
@extend %standard-transition;
|
|
586
|
+
@extend %image-base;
|
|
587
|
+
width: 100%;
|
|
588
|
+
height: 100%;
|
|
589
|
+
object-fit: cover;
|
|
590
|
+
object-position: center;
|
|
591
|
+
border-radius: calc($border-radius-sm - 2px);
|
|
592
|
+
transition-property: transform;
|
|
593
|
+
|
|
594
|
+
.c-photo-viewer__thumbnail:hover & {
|
|
595
|
+
transform: scale(1.05);
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
&--dragging {
|
|
600
|
+
cursor: grabbing;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
&.is-disabled {
|
|
604
|
+
pointer-events: none;
|
|
605
|
+
opacity: 0.7;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
&.is-entering {
|
|
609
|
+
opacity: 0;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
&.is-exiting {
|
|
613
|
+
opacity: 0;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
// Layout variants for thumbnail positions
|
|
617
|
+
&--thumbnails-left,
|
|
618
|
+
&--thumbnails-right {
|
|
619
|
+
.c-photo-viewer__container {
|
|
620
|
+
flex-direction: row;
|
|
621
|
+
gap: var(--#{config.$prefix}photoviewer-spacing);
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.c-photo-viewer__thumbnails {
|
|
625
|
+
flex-direction: column;
|
|
626
|
+
margin-top: 0;
|
|
627
|
+
max-height: 80vh;
|
|
628
|
+
overflow-y: auto;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
.c-photo-viewer__content {
|
|
632
|
+
flex: 1;
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
&--thumbnails-left {
|
|
637
|
+
.c-photo-viewer__thumbnails {
|
|
638
|
+
order: -1;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
&--thumbnails-right {
|
|
643
|
+
.c-photo-viewer__thumbnails {
|
|
644
|
+
order: 1;
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
// Info panel styles
|
|
649
|
+
&__info-panel {
|
|
650
|
+
@extend %standard-transition;
|
|
651
|
+
@extend %panel-base;
|
|
652
|
+
@extend %custom-scrollbar;
|
|
653
|
+
position: absolute;
|
|
654
|
+
top: 0;
|
|
655
|
+
right: 0;
|
|
656
|
+
bottom: 0;
|
|
657
|
+
width: var(--#{config.$prefix}photoviewer-info-panel-width);
|
|
658
|
+
border-left: 1px solid $gray-3;
|
|
659
|
+
padding: 1.5rem;
|
|
660
|
+
overflow-y: auto;
|
|
661
|
+
z-index: 10;
|
|
662
|
+
transform: translateX(100%);
|
|
663
|
+
transition-property: transform;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
&--info-open {
|
|
667
|
+
.c-photo-viewer__container {
|
|
668
|
+
padding-right: var(--#{config.$prefix}photoviewer-info-panel-width);
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.c-photo-viewer__info-panel {
|
|
672
|
+
transform: translateX(0);
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
&__info-close {
|
|
677
|
+
@extend %button-base;
|
|
678
|
+
position: absolute;
|
|
679
|
+
top: 1rem;
|
|
680
|
+
right: 1rem;
|
|
681
|
+
width: var(--#{config.$prefix}photoviewer-control-size-small);
|
|
682
|
+
height: var(--#{config.$prefix}photoviewer-control-size-small);
|
|
683
|
+
box-shadow: $box-shadow-xs;
|
|
684
|
+
z-index: 2;
|
|
685
|
+
|
|
686
|
+
&:hover {
|
|
687
|
+
background: var(--#{config.$prefix}photoviewer-action-hover-bg);
|
|
688
|
+
transform: translateY(-2px);
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
svg {
|
|
692
|
+
width: 16px;
|
|
693
|
+
height: 16px;
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
&__info-content {
|
|
698
|
+
margin-top: 2rem;
|
|
699
|
+
padding-bottom: 2rem;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
&__info-title {
|
|
703
|
+
font-size: $font-size-lg;
|
|
704
|
+
font-weight: 600;
|
|
705
|
+
margin-bottom: 1rem;
|
|
706
|
+
padding-bottom: 1rem;
|
|
707
|
+
color: $gray-9;
|
|
708
|
+
position: relative;
|
|
709
|
+
|
|
710
|
+
&::after {
|
|
711
|
+
content: '';
|
|
712
|
+
position: absolute;
|
|
713
|
+
left: 0;
|
|
714
|
+
bottom: 0;
|
|
715
|
+
width: 60px;
|
|
716
|
+
height: 2px;
|
|
717
|
+
background: var(--#{config.$prefix}primary);
|
|
718
|
+
border-radius: 2px;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
&__info-description {
|
|
723
|
+
font-size: $font-size-base;
|
|
724
|
+
line-height: 1.6;
|
|
725
|
+
margin-bottom: 1.5rem;
|
|
726
|
+
color: $gray-8;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
&__info-meta {
|
|
730
|
+
@extend %info-meta-item;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
&__info-tags {
|
|
734
|
+
display: flex;
|
|
735
|
+
flex-wrap: wrap;
|
|
736
|
+
gap: 0.5rem;
|
|
737
|
+
margin-top: 1.5rem;
|
|
738
|
+
margin-bottom: 0.5rem;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
&__info-tag {
|
|
742
|
+
@extend %info-tag;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
// Responsive styles
|
|
746
|
+
@media (max-width: 992px) {
|
|
747
|
+
@include responsive-control-sizes(0.9);
|
|
748
|
+
|
|
749
|
+
&__container {
|
|
750
|
+
max-width: 95vw;
|
|
751
|
+
max-height: 90vh;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
&__image-container {
|
|
755
|
+
max-width: 90vw;
|
|
756
|
+
max-height: 70vh;
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
@media (max-width: 768px) {
|
|
761
|
+
@include responsive-control-sizes(0.8);
|
|
762
|
+
|
|
763
|
+
&__container {
|
|
764
|
+
max-width: 100vw;
|
|
765
|
+
max-height: 100vh;
|
|
766
|
+
min-height: 100vh;
|
|
767
|
+
padding: 0.75rem;
|
|
768
|
+
border-radius: 0;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
&__header {
|
|
772
|
+
margin-bottom: 0.75rem;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
&__actions {
|
|
776
|
+
gap: 0.5rem;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
&__image-container {
|
|
780
|
+
max-height: 75vh;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
&__nav-btn,
|
|
784
|
+
&__nav-button {
|
|
785
|
+
&--prev {
|
|
786
|
+
left: 0.25rem;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
&--next {
|
|
790
|
+
right: 0.25rem;
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
&__thumbnails {
|
|
795
|
+
max-width: 100%;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
&--thumbnails-left,
|
|
799
|
+
&--thumbnails-right {
|
|
800
|
+
.c-photo-viewer__container {
|
|
801
|
+
flex-direction: column;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
.c-photo-viewer__thumbnails {
|
|
805
|
+
flex-direction: row;
|
|
806
|
+
order: 1;
|
|
807
|
+
margin-top: var(--#{config.$prefix}photoviewer-spacing);
|
|
808
|
+
max-height: none;
|
|
809
|
+
max-width: 100%;
|
|
810
|
+
overflow-x: auto;
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
&--info-open {
|
|
815
|
+
.c-photo-viewer__container {
|
|
816
|
+
padding-right: 0;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
.c-photo-viewer__info-panel {
|
|
820
|
+
width: 100%;
|
|
821
|
+
height: 100%;
|
|
822
|
+
position: absolute;
|
|
823
|
+
left: 0;
|
|
824
|
+
top: 0;
|
|
825
|
+
right: 0;
|
|
826
|
+
transform: translateX(0);
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
.c-photo-viewer__info-panel {
|
|
830
|
+
overflow-y: auto;
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
@media (max-width: 480px) {
|
|
836
|
+
@include responsive-control-sizes(0.7);
|
|
837
|
+
|
|
838
|
+
&__container {
|
|
839
|
+
padding: 0.5rem;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
&__header {
|
|
843
|
+
margin-bottom: 0.5rem;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
&__counter,
|
|
847
|
+
&__counter-badge {
|
|
848
|
+
font-size: $font-size-xs;
|
|
849
|
+
padding: 0.2rem 0.5rem;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
&__actions {
|
|
853
|
+
gap: 0.3rem;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
&__image-container {
|
|
857
|
+
max-height: 65vh;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
&__info-panel {
|
|
861
|
+
width: 100%;
|
|
862
|
+
height: 70%;
|
|
863
|
+
bottom: 0;
|
|
864
|
+
top: auto;
|
|
865
|
+
transform: translateY(100%);
|
|
866
|
+
border-left: none;
|
|
867
|
+
border-top: 1px solid $gray-3;
|
|
868
|
+
|
|
869
|
+
&.is-open {
|
|
870
|
+
transform: translateY(0);
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
&--info-open &__info-panel {
|
|
875
|
+
padding: 1rem;
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
}
|