@shohojdhara/atomix 0.1.16 → 0.1.17
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/dist/css/atomix.css +1 -2
- package/dist/js/194.js +1 -2
- package/dist/js/atomix.react.esm.js +1 -2
- package/dist/js/atomix.react.umd.js +1 -2
- package/dist/js/chunks/esm/{202.ff48d27672233280e021.js → 202.82aa7b3244e53c9edb72.js} +1 -2
- package/dist/js/chunks/esm/{308.f873332126eba90e5c62.js → 308.27e1e4005705ae320432.js} +1 -2
- package/dist/js/chunks/esm/{54.4db919e5e4e5cc6d7c72.js → 54.ece1fd6964f98d4d994f.js} +1 -2
- package/dist/js/chunks/esm/{619.afc5a718eff77fa423b5.js → 619.ebeb0298432a066ac05c.js} +1 -2
- package/dist/js/chunks/esm/{690.a9e968c7497d61e56cdc.js → 690.c5f412cc979b55740359.js} +1 -2
- package/dist/js/chunks/esm/{894.f1091a4a8758c26d29e4.js → 894.3604ddc9367d75191198.js} +1 -2
- package/dist/js/chunks/esm/{897.561a50f7d043d42169da.js → 897.a4aab2fad9401693eb12.js} +1 -2
- package/dist/js/chunks/umd/{202.dac7605cc555b6bda542.js → 202.5017dd0403d696bf1644.js} +1 -2
- package/dist/js/chunks/umd/{308.6709979849dcbdb90c9b.js → 308.4bc14b9d7b16b6ee0ab8.js} +1 -2
- package/dist/js/chunks/umd/{54.403470e1f7d0ef4424a7.js → 54.7fdfb4a031989470a70d.js} +1 -2
- package/dist/js/chunks/umd/{619.fa05ea98c10270eb64c5.js → 619.84a0c35ecee695250085.js} +1 -2
- package/dist/js/chunks/umd/{690.aa7054d1c53e5402c2d6.js → 690.d7041094a34a4a434be2.js} +1 -2
- package/dist/js/chunks/umd/{894.3e1eaf0a2aadf4434390.js → 894.c127ee4e9513c22ee97d.js} +1 -2
- package/dist/js/chunks/umd/{897.554ea37be4453698c167.js → 897.26932ac837a39fc91907.js} +1 -2
- package/dist/types/components/Badge/index.d.ts +3 -3
- package/dist/types/components/PhotoViewer/PhotoViewer.d.ts +2 -2
- package/dist/types/components/PhotoViewer/PhotoViewerHeader.d.ts +2 -2
- package/dist/types/components/Tab/index.d.ts +2 -2
- package/dist/types/components/Toggle/index.d.ts +2 -2
- package/dist/types/components/Tooltip/index.d.ts +3 -3
- package/dist/types/lib/composables/useDatePicker.d.ts +1 -1
- package/dist/types/lib/composables/useDropdown.d.ts +1 -1
- package/dist/types/lib/composables/useModal.d.ts +1 -1
- package/dist/types/lib/composables/usePhotoViewer.d.ts +1 -1
- package/dist/types/lib/composables/useRating.d.ts +1 -1
- package/package.json +58 -41
- package/NPM_PUBLISHING.md +0 -221
- package/dist/css/atomix.css.map +0 -1
- package/dist/js/194.js.map +0 -1
- package/dist/js/atomix.react.esm.js.map +0 -1
- package/dist/js/atomix.react.umd.js.map +0 -1
- package/dist/js/chunks/esm/202.ff48d27672233280e021.js.map +0 -1
- package/dist/js/chunks/esm/308.f873332126eba90e5c62.js.map +0 -1
- package/dist/js/chunks/esm/54.4db919e5e4e5cc6d7c72.js.map +0 -1
- package/dist/js/chunks/esm/619.afc5a718eff77fa423b5.js.map +0 -1
- package/dist/js/chunks/esm/690.a9e968c7497d61e56cdc.js.map +0 -1
- package/dist/js/chunks/esm/894.f1091a4a8758c26d29e4.js.map +0 -1
- package/dist/js/chunks/esm/897.561a50f7d043d42169da.js.map +0 -1
- package/dist/js/chunks/umd/202.dac7605cc555b6bda542.js.map +0 -1
- package/dist/js/chunks/umd/308.6709979849dcbdb90c9b.js.map +0 -1
- package/dist/js/chunks/umd/54.403470e1f7d0ef4424a7.js.map +0 -1
- package/dist/js/chunks/umd/619.fa05ea98c10270eb64c5.js.map +0 -1
- package/dist/js/chunks/umd/690.aa7054d1c53e5402c2d6.js.map +0 -1
- package/dist/js/chunks/umd/894.3e1eaf0a2aadf4434390.js.map +0 -1
- package/dist/js/chunks/umd/897.554ea37be4453698c167.js.map +0 -1
- package/src/Introduction.mdx +0 -46
- 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 +0 -569
- package/src/assets/fonts/HelveticaNeue/stylesheet.css +0 -168
- 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 +0 -9
- package/src/components/Accordion/Accordion.stories.tsx +0 -258
- package/src/components/Accordion/Accordion.tsx +0 -121
- package/src/components/Accordion/index.ts +0 -3
- package/src/components/Accordion/scripts/accordionInteractions.ts +0 -70
- package/src/components/Accordion/scripts/bundle.ts +0 -24
- package/src/components/Accordion/scripts/constants.ts +0 -11
- package/src/components/Accordion/scripts/index.ts +0 -212
- package/src/components/AtomixLogo/AtomixLogo.tsx +0 -36
- package/src/components/AtomixLogo/index.ts +0 -3
- package/src/components/AtomixLogo.tsx +0 -46
- package/src/components/Avatar/Avatar.stories.tsx +0 -260
- package/src/components/Avatar/Avatar.tsx +0 -71
- package/src/components/Avatar/AvatarGroup.tsx +0 -73
- package/src/components/Avatar/index.ts +0 -3
- package/src/components/Avatar/scripts/index.ts +0 -502
- package/src/components/Badge/Badge.stories.tsx +0 -344
- package/src/components/Badge/Badge.tsx +0 -37
- package/src/components/Badge/index.ts +0 -3
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +0 -108
- package/src/components/Breadcrumb/Breadcrumb.tsx +0 -105
- package/src/components/Breadcrumb/index.ts +0 -3
- package/src/components/Breadcrumb/scripts/breadcrumb.ts +0 -206
- package/src/components/Breadcrumb/scripts/demo.html +0 -246
- package/src/components/Breadcrumb/scripts/index.ts +0 -5
- package/src/components/Breadcrumb/scripts/types.ts +0 -69
- package/src/components/Button/Button.stories.tsx +0 -289
- package/src/components/Button/Button.tsx +0 -57
- package/src/components/Button/index.ts +0 -3
- package/src/components/Button/scripts/buttonInteractions.ts +0 -73
- package/src/components/Button/scripts/index.ts +0 -1
- package/src/components/Callout/Callout.stories.tsx +0 -502
- package/src/components/Callout/Callout.tsx +0 -78
- package/src/components/Callout/index.ts +0 -1
- package/src/components/Callout/scripts/CalloutInteractions.ts +0 -340
- package/src/components/Callout/scripts/bundle.ts +0 -18
- package/src/components/Callout/scripts/index.ts +0 -126
- package/src/components/Card/Card.stories.tsx +0 -107
- package/src/components/Card/Card.tsx +0 -92
- package/src/components/Card/ElevationCard.tsx +0 -51
- package/src/components/Card/index.ts +0 -15
- package/src/components/Card/scripts/bundle.ts +0 -30
- package/src/components/Card/scripts/cardInteractions.ts +0 -171
- package/src/components/Card/scripts/demo.html +0 -322
- package/src/components/Card/scripts/index.ts +0 -319
- package/src/components/ColorModeToggle/ColorModeToggle.stories.tsx +0 -43
- package/src/components/ColorModeToggle/ColorModeToggle.tsx +0 -88
- package/src/components/ColorModeToggle/index.ts +0 -2
- package/src/components/Countdown/Countdown.stories.tsx +0 -43
- package/src/components/Countdown/Countdown.tsx +0 -82
- package/src/components/Countdown/index.ts +0 -2
- package/src/components/Countdown/scripts/index.ts +0 -233
- package/src/components/DataTable/DataTable.stories.tsx +0 -244
- package/src/components/DataTable/DataTable.tsx +0 -213
- package/src/components/DataTable/index.ts +0 -3
- package/src/components/DataTable/scripts/bundle.ts +0 -15
- package/src/components/DataTable/scripts/index.ts +0 -763
- package/src/components/DatePicker/DatePicker.stories.tsx +0 -377
- package/src/components/DatePicker/DatePicker.tsx +0 -463
- package/src/components/DatePicker/index.ts +0 -4
- package/src/components/DatePicker/readme.md +0 -106
- package/src/components/DatePicker/scripts/bundle.ts +0 -34
- package/src/components/DatePicker/scripts/componentInteractions.ts +0 -200
- package/src/components/DatePicker/scripts/index.ts +0 -887
- package/src/components/DatePicker/types.ts +0 -167
- package/src/components/DatePicker/utils.ts +0 -152
- package/src/components/Dropdown/Dropdown.stories.tsx +0 -329
- package/src/components/Dropdown/Dropdown.tsx +0 -333
- package/src/components/Dropdown/index.ts +0 -19
- package/src/components/Dropdown/readme.md +0 -151
- package/src/components/Dropdown/scripts/bundle.ts +0 -24
- package/src/components/Dropdown/scripts/componentInteractions.ts +0 -31
- package/src/components/Dropdown/scripts/index.ts +0 -607
- package/src/components/EdgePanel/EdgePanel.stories.tsx +0 -183
- package/src/components/EdgePanel/EdgePanel.tsx +0 -79
- package/src/components/EdgePanel/index.ts +0 -1
- package/src/components/EdgePanel/scripts/bundle.ts +0 -30
- package/src/components/EdgePanel/scripts/edgePanelInteractions.ts +0 -206
- package/src/components/EdgePanel/scripts/index.ts +0 -415
- package/src/components/Form/Checkbox.stories.tsx +0 -77
- package/src/components/Form/Checkbox.tsx +0 -63
- package/src/components/Form/Form.stories.tsx +0 -565
- package/src/components/Form/Form.tsx +0 -46
- package/src/components/Form/FormGroup.stories.tsx +0 -180
- package/src/components/Form/FormGroup.tsx +0 -55
- package/src/components/Form/Input.stories.tsx +0 -107
- package/src/components/Form/Input.tsx +0 -77
- package/src/components/Form/Radio.stories.tsx +0 -108
- package/src/components/Form/Radio.tsx +0 -60
- package/src/components/Form/Select.stories.tsx +0 -152
- package/src/components/Form/Select.tsx +0 -193
- package/src/components/Form/Textarea.stories.tsx +0 -119
- package/src/components/Form/Textarea.tsx +0 -69
- package/src/components/Form/index.ts +0 -7
- package/src/components/Hero/Hero.stories.tsx +0 -295
- package/src/components/Hero/Hero.tsx +0 -185
- package/src/components/Hero/index.ts +0 -6
- package/src/components/Hero/scripts/bundle.ts +0 -33
- package/src/components/Hero/scripts/heroInteractions.ts +0 -135
- package/src/components/Hero/scripts/index.ts +0 -145
- package/src/components/Icon/Icon.tsx +0 -89
- package/src/components/Icon/index.ts +0 -2
- package/src/components/List/List.stories.tsx +0 -125
- package/src/components/List/List.tsx +0 -39
- package/src/components/List/ListGroup.tsx +0 -34
- package/src/components/List/index.ts +0 -2
- package/src/components/Messages/Messages.stories.tsx +0 -160
- package/src/components/Messages/Messages.tsx +0 -167
- package/src/components/Messages/index.ts +0 -3
- package/src/components/Messages/scripts/bundle.ts +0 -52
- package/src/components/Messages/scripts/componentInteractions.ts +0 -137
- package/src/components/Messages/scripts/index.ts +0 -372
- package/src/components/Modal/Modal.stories.tsx +0 -264
- package/src/components/Modal/Modal.tsx +0 -197
- package/src/components/Modal/README.md +0 -169
- package/src/components/Modal/index.ts +0 -1
- package/src/components/Modal/scripts/bundle.ts +0 -23
- package/src/components/Modal/scripts/index.ts +0 -362
- package/src/components/Modal/scripts/modalInteractions.ts +0 -139
- package/src/components/Navbar/MegaMenu.tsx +0 -116
- package/src/components/Navbar/Menu.tsx +0 -122
- package/src/components/Navbar/Nav.tsx +0 -35
- package/src/components/Navbar/NavDropdown.tsx +0 -108
- package/src/components/Navbar/NavItem.tsx +0 -128
- package/src/components/Navbar/Navbar.stories.tsx +0 -458
- package/src/components/Navbar/Navbar.tsx +0 -124
- package/src/components/Navbar/index.ts +0 -6
- package/src/components/Pagination/Pagination.stories.tsx +0 -193
- package/src/components/Pagination/Pagination.tsx +0 -172
- package/src/components/Pagination/index.ts +0 -1
- package/src/components/Pagination/scripts/bundle.ts +0 -15
- package/src/components/Pagination/scripts/index.ts +0 -310
- package/src/components/PhotoViewer/PhotoViewer.stories.tsx +0 -160
- package/src/components/PhotoViewer/PhotoViewer.tsx +0 -263
- package/src/components/PhotoViewer/PhotoViewerHeader.tsx +0 -183
- package/src/components/PhotoViewer/PhotoViewerImage.tsx +0 -171
- package/src/components/PhotoViewer/PhotoViewerInfo.tsx +0 -57
- package/src/components/PhotoViewer/PhotoViewerNavigation.tsx +0 -82
- package/src/components/PhotoViewer/PhotoViewerThumbnails.tsx +0 -52
- package/src/components/PhotoViewer/README.md +0 -358
- package/src/components/PhotoViewer/examples/ImageGallery.tsx +0 -200
- package/src/components/PhotoViewer/examples/SimpleGallery.tsx +0 -71
- package/src/components/PhotoViewer/examples/index.ts +0 -2
- package/src/components/PhotoViewer/index.ts +0 -14
- package/src/components/PhotoViewer/scripts/PhotoViewerInteractions.ts +0 -243
- package/src/components/PhotoViewer/scripts/bundle.ts +0 -81
- package/src/components/PhotoViewer/scripts/index.ts +0 -903
- package/src/components/Popover/Popover.stories.tsx +0 -144
- package/src/components/Popover/Popover.tsx +0 -137
- package/src/components/Popover/index.ts +0 -5
- package/src/components/Popover/readme.md +0 -120
- package/src/components/Popover/scripts/bundle.ts +0 -12
- package/src/components/Popover/scripts/componentInteractions.ts +0 -311
- package/src/components/Popover/scripts/index.ts +0 -331
- package/src/components/ProductReview/ProductReview.stories.tsx +0 -86
- package/src/components/ProductReview/ProductReview.tsx +0 -173
- package/src/components/ProductReview/index.ts +0 -3
- package/src/components/ProductReview/scripts/bundle.ts +0 -3
- package/src/components/ProductReview/scripts/componentInteractions.ts +0 -129
- package/src/components/ProductReview/scripts/index.ts +0 -3
- package/src/components/Progress/Progress.stories.tsx +0 -75
- package/src/components/Progress/Progress.tsx +0 -43
- package/src/components/Progress/index.ts +0 -1
- package/src/components/Progress/scripts/bundle.ts +0 -12
- package/src/components/Progress/scripts/componentInteractions.ts +0 -95
- package/src/components/Progress/scripts/index.ts +0 -178
- package/src/components/Rating/Rating.stories.tsx +0 -122
- package/src/components/Rating/Rating.tsx +0 -267
- package/src/components/Rating/index.ts +0 -6
- package/src/components/Rating/scripts/bundle.ts +0 -34
- package/src/components/Rating/scripts/index.d.ts +0 -12
- package/src/components/Rating/scripts/index.ts +0 -331
- package/src/components/Rating/scripts/ratingInteractions.ts +0 -157
- package/src/components/River/River.stories.tsx +0 -184
- package/src/components/River/River.tsx +0 -172
- package/src/components/River/examples.html +0 -223
- package/src/components/River/index.ts +0 -2
- package/src/components/River/scripts/index.ts +0 -138
- package/src/components/SectionIntro/SectionIntro.stories.tsx +0 -142
- package/src/components/SectionIntro/SectionIntro.tsx +0 -203
- package/src/components/SectionIntro/index.ts +0 -3
- package/src/components/SectionIntro/scripts/bundle.ts +0 -9
- package/src/components/SectionIntro/scripts/componentInteractions.ts +0 -37
- package/src/components/SectionIntro/scripts/index.ts +0 -149
- package/src/components/Spinner/Spinner.stories.tsx +0 -68
- package/src/components/Spinner/Spinner.tsx +0 -31
- package/src/components/Spinner/index.ts +0 -2
- package/src/components/Steps/Steps.stories.tsx +0 -162
- package/src/components/Steps/Steps.tsx +0 -154
- package/src/components/Steps/index.ts +0 -3
- package/src/components/Steps/scripts/index.ts +0 -159
- package/src/components/Tab/Tab.stories.tsx +0 -121
- package/src/components/Tab/Tab.tsx +0 -135
- package/src/components/Tab/index.ts +0 -2
- package/src/components/Tab/scripts/index.ts +0 -200
- package/src/components/Testimonial/Testimonial.stories.tsx +0 -177
- package/src/components/Testimonial/Testimonial.tsx +0 -149
- package/src/components/Testimonial/index.ts +0 -3
- package/src/components/Testimonial/scripts/index.ts +0 -96
- package/src/components/Todo/Todo.stories.tsx +0 -172
- package/src/components/Todo/Todo.tsx +0 -169
- package/src/components/Todo/index.ts +0 -1
- package/src/components/Todo/scripts/bundle.ts +0 -14
- package/src/components/Todo/scripts/index.ts +0 -516
- package/src/components/Todo/scripts/todoInteractions.ts +0 -118
- package/src/components/Todo/scripts/types.ts +0 -19
- package/src/components/Toggle/Toggle.stories.tsx +0 -50
- package/src/components/Toggle/Toggle.tsx +0 -114
- package/src/components/Toggle/index.ts +0 -2
- package/src/components/Toggle/scripts/bundle.ts +0 -14
- package/src/components/Toggle/scripts/index.ts +0 -114
- package/src/components/Toggle/scripts/toggleInteractions.ts +0 -80
- package/src/components/Tooltip/Tooltip.stories.tsx +0 -108
- package/src/components/Tooltip/Tooltip.tsx +0 -95
- package/src/components/Tooltip/index.ts +0 -3
- package/src/components/Tooltip/scripts/bundle.ts +0 -1
- package/src/components/Tooltip/scripts/index.ts +0 -392
- package/src/components/Tooltip/scripts/tooltipInteractions.ts +0 -165
- package/src/components/Upload/Upload.stories.tsx +0 -227
- package/src/components/Upload/Upload.tsx +0 -407
- package/src/components/Upload/index.ts +0 -3
- package/src/components/Upload/scripts/index.ts +0 -452
- package/src/components/index.ts +0 -118
- package/src/design-tokens/BoxShadow/BoxShadow.stories.tsx +0 -112
- package/src/design-tokens/Colors/colors.scss +0 -118
- package/src/design-tokens/Colors/colors.stories.tsx +0 -326
- package/src/design-tokens/Spacing/Spacing.scss +0 -60
- package/src/design-tokens/Spacing/Spacing.stories.tsx +0 -114
- package/src/design-tokens/Typography/Typography.scss +0 -177
- package/src/design-tokens/Typography/Typography.stories.tsx +0 -170
- package/src/docs/atomix-component-guidelines.mdx +0 -942
- package/src/docs/atomix-roadmap.mdx +0 -325
- package/src/docs/implementation-guide.mdx +0 -506
- package/src/htmlComponentsEntry.ts +0 -318
- package/src/index.ts +0 -21
- package/src/layouts/Grid/Container.tsx +0 -60
- package/src/layouts/Grid/Grid.stories.tsx +0 -522
- package/src/layouts/Grid/Grid.tsx +0 -74
- package/src/layouts/Grid/GridCol.tsx +0 -157
- package/src/layouts/Grid/README.md +0 -108
- package/src/layouts/Grid/Row.tsx +0 -75
- package/src/layouts/Grid/index.ts +0 -8
- package/src/layouts/MasonryGrid/MasonryGrid.stories.tsx +0 -381
- package/src/layouts/MasonryGrid/MasonryGrid.tsx +0 -408
- package/src/layouts/MasonryGrid/MasonryGridItem.tsx +0 -50
- package/src/layouts/MasonryGrid/README.md +0 -117
- package/src/layouts/MasonryGrid/index.ts +0 -4
- package/src/layouts/index.ts +0 -10
- package/src/lib/README.md +0 -89
- package/src/lib/composables/index.ts +0 -44
- package/src/lib/composables/useAccordion.ts +0 -120
- package/src/lib/composables/useBadge.ts +0 -42
- package/src/lib/composables/useBreadcrumb.ts +0 -80
- package/src/lib/composables/useButton.ts +0 -59
- package/src/lib/composables/useCallout.ts +0 -55
- package/src/lib/composables/useCard.ts +0 -133
- package/src/lib/composables/useCheckbox.ts +0 -70
- package/src/lib/composables/useDataTable.ts +0 -204
- package/src/lib/composables/useDatePicker.ts +0 -538
- package/src/lib/composables/useDropdown.ts +0 -257
- package/src/lib/composables/useEdgePanel.ts +0 -258
- package/src/lib/composables/useForm.ts +0 -65
- package/src/lib/composables/useFormGroup.ts +0 -52
- package/src/lib/composables/useHero.ts +0 -252
- package/src/lib/composables/useInput.ts +0 -59
- package/src/lib/composables/useMessages.ts +0 -79
- package/src/lib/composables/useModal.ts +0 -107
- package/src/lib/composables/useNavbar.ts +0 -277
- package/src/lib/composables/usePagination.ts +0 -108
- package/src/lib/composables/usePhotoViewer.ts +0 -857
- package/src/lib/composables/usePopover.ts +0 -348
- package/src/lib/composables/useProgress.ts +0 -77
- package/src/lib/composables/useRadio.ts +0 -47
- package/src/lib/composables/useRating.ts +0 -162
- package/src/lib/composables/useRiver.ts +0 -208
- package/src/lib/composables/useSelect.ts +0 -53
- package/src/lib/composables/useSpinner.ts +0 -42
- package/src/lib/composables/useTextarea.ts +0 -56
- package/src/lib/composables/useTodo.ts +0 -146
- package/src/lib/constants/components.ts +0 -977
- package/src/lib/constants/index.ts +0 -4
- package/src/lib/index.ts +0 -11
- package/src/lib/types/components.ts +0 -2368
- package/src/lib/types/index.ts +0 -2
- package/src/lib/utils/dom.ts +0 -45
- package/src/lib/utils/icons.ts +0 -66
- package/src/lib/utils/index.ts +0 -7
- package/src/lib/utils/useForkRef.ts +0 -37
- package/src/styles/01-settings/_index.scss +0 -64
- package/src/styles/01-settings/_settings.accordion.scss +0 -29
- package/src/styles/01-settings/_settings.animations.scss +0 -2
- package/src/styles/01-settings/_settings.avatar-group.scss +0 -20
- package/src/styles/01-settings/_settings.avatar.scss +0 -46
- package/src/styles/01-settings/_settings.badge.scss +0 -12
- package/src/styles/01-settings/_settings.border-radius.scss +0 -11
- package/src/styles/01-settings/_settings.border.scss +0 -14
- package/src/styles/01-settings/_settings.box-shadow.scss +0 -16
- package/src/styles/01-settings/_settings.breadcrumb.scss +0 -19
- package/src/styles/01-settings/_settings.breakpoints.scss +0 -8
- package/src/styles/01-settings/_settings.btn-group.scss +0 -1
- package/src/styles/01-settings/_settings.button.scss +0 -67
- package/src/styles/01-settings/_settings.callout.scss +0 -41
- package/src/styles/01-settings/_settings.card.scss +0 -39
- package/src/styles/01-settings/_settings.checkbox-group.scss +0 -3
- package/src/styles/01-settings/_settings.checkbox.scss +0 -21
- package/src/styles/01-settings/_settings.color-mode.scss +0 -5
- package/src/styles/01-settings/_settings.colors.scss +0 -269
- package/src/styles/01-settings/_settings.config.scss +0 -6
- package/src/styles/01-settings/_settings.countdown.scss +0 -15
- package/src/styles/01-settings/_settings.data-table.scss +0 -52
- package/src/styles/01-settings/_settings.datepicker.scss +0 -46
- package/src/styles/01-settings/_settings.dropdown.scss +0 -38
- package/src/styles/01-settings/_settings.edge-panel.scss +0 -17
- package/src/styles/01-settings/_settings.fonts.scss +0 -15
- package/src/styles/01-settings/_settings.form-group.scss +0 -11
- package/src/styles/01-settings/_settings.form.scss +0 -3
- package/src/styles/01-settings/_settings.grid.scss +0 -15
- package/src/styles/01-settings/_settings.hero.scss +0 -30
- package/src/styles/01-settings/_settings.input.scss +0 -38
- package/src/styles/01-settings/_settings.link.scss +0 -12
- package/src/styles/01-settings/_settings.list-group.scss +0 -14
- package/src/styles/01-settings/_settings.list.scss +0 -10
- package/src/styles/01-settings/_settings.maps.scss +0 -283
- package/src/styles/01-settings/_settings.masonry-grid.scss +0 -17
- package/src/styles/01-settings/_settings.menu.scss +0 -38
- package/src/styles/01-settings/_settings.messages.scss +0 -77
- package/src/styles/01-settings/_settings.modal.scss +0 -31
- package/src/styles/01-settings/_settings.nav.scss +0 -18
- package/src/styles/01-settings/_settings.navbar.scss +0 -19
- package/src/styles/01-settings/_settings.pagination.scss +0 -29
- package/src/styles/01-settings/_settings.photoviewer.scss +0 -35
- package/src/styles/01-settings/_settings.popover.scss +0 -13
- package/src/styles/01-settings/_settings.position.scss +0 -7
- package/src/styles/01-settings/_settings.progress.scss +0 -18
- package/src/styles/01-settings/_settings.rating.scss +0 -8
- package/src/styles/01-settings/_settings.river.scss +0 -34
- package/src/styles/01-settings/_settings.sectionintro.scss +0 -22
- package/src/styles/01-settings/_settings.select.scss +0 -32
- package/src/styles/01-settings/_settings.side-menu.scss +0 -16
- package/src/styles/01-settings/_settings.skeleton.scss +0 -14
- package/src/styles/01-settings/_settings.spacing.scss +0 -39
- package/src/styles/01-settings/_settings.spinner.scss +0 -13
- package/src/styles/01-settings/_settings.steps.scss +0 -26
- package/src/styles/01-settings/_settings.tabs.scss +0 -28
- package/src/styles/01-settings/_settings.testimonials.scss +0 -20
- package/src/styles/01-settings/_settings.todo.scss +0 -50
- package/src/styles/01-settings/_settings.toggle.scss +0 -34
- package/src/styles/01-settings/_settings.tooltip.scss +0 -19
- package/src/styles/01-settings/_settings.typography.scss +0 -76
- package/src/styles/01-settings/_settings.upload.scss +0 -77
- package/src/styles/01-settings/_settings.z-layers.scss +0 -9
- package/src/styles/02-tools/_index.scss +0 -20
- package/src/styles/02-tools/_tools.animations.scss +0 -19
- package/src/styles/02-tools/_tools.border-radius.scss +0 -79
- package/src/styles/02-tools/_tools.breakpoints.scss +0 -49
- package/src/styles/02-tools/_tools.button.scss +0 -91
- package/src/styles/02-tools/_tools.clearfix.scss +0 -10
- package/src/styles/02-tools/_tools.color-functions.scss +0 -28
- package/src/styles/02-tools/_tools.color-mode.scss +0 -22
- package/src/styles/02-tools/_tools.event.scss +0 -22
- package/src/styles/02-tools/_tools.grid.scss +0 -76
- package/src/styles/02-tools/_tools.hidden-visually.scss +0 -32
- package/src/styles/02-tools/_tools.hidden.scss +0 -2
- package/src/styles/02-tools/_tools.map-loop.scss +0 -31
- package/src/styles/02-tools/_tools.media-queries.scss +0 -67
- package/src/styles/02-tools/_tools.object-fit.scss +0 -4
- package/src/styles/02-tools/_tools.placeholder.scss +0 -18
- package/src/styles/02-tools/_tools.rem.scss +0 -5
- package/src/styles/02-tools/_tools.size.scss +0 -8
- package/src/styles/02-tools/_tools.spacing.scss +0 -166
- package/src/styles/02-tools/_tools.to-rgb.scss +0 -9
- package/src/styles/02-tools/_tools.transition.scss +0 -50
- package/src/styles/02-tools/_tools.utilities.scss +0 -14
- package/src/styles/02-tools/_tools.utility-api.scss +0 -129
- package/src/styles/03-generic/_generic.fonts.scss +0 -25
- package/src/styles/03-generic/_generic.reset.scss +0 -397
- package/src/styles/03-generic/_generic.root.scss +0 -184
- package/src/styles/03-generic/_generic.selection.scss +0 -15
- package/src/styles/03-generic/_index.scss +0 -5
- package/src/styles/04-elements/_elements.all.scss +0 -16
- package/src/styles/04-elements/_elements.body.scss +0 -16
- package/src/styles/04-elements/_elements.heading.scss +0 -38
- package/src/styles/04-elements/_elements.html.scss +0 -9
- package/src/styles/04-elements/_elements.links.scss +0 -12
- package/src/styles/04-elements/_index.scss +0 -6
- package/src/styles/05-objects/_index.scss +0 -4
- package/src/styles/05-objects/_objects.container.scss +0 -35
- package/src/styles/05-objects/_objects.grid.scss +0 -25
- package/src/styles/05-objects/_objects.masonry-grid.scss +0 -90
- package/src/styles/06-components/_components.accordion.scss +0 -103
- package/src/styles/06-components/_components.avatar-group.scss +0 -84
- package/src/styles/06-components/_components.avatar.scss +0 -100
- package/src/styles/06-components/_components.badge.scss +0 -62
- package/src/styles/06-components/_components.breadcrumb.scss +0 -81
- package/src/styles/06-components/_components.btn-group.scss +0 -35
- package/src/styles/06-components/_components.button.scss +0 -126
- package/src/styles/06-components/_components.callout.scss +0 -266
- package/src/styles/06-components/_components.card.scss +0 -152
- package/src/styles/06-components/_components.checkbox-group.scss +0 -18
- package/src/styles/06-components/_components.checkbox.scss +0 -142
- package/src/styles/06-components/_components.color-mode-toggle.scss +0 -36
- package/src/styles/06-components/_components.countdown.scss +0 -64
- package/src/styles/06-components/_components.data-table.scss +0 -179
- package/src/styles/06-components/_components.datepicker.scss +0 -524
- package/src/styles/06-components/_components.dropdown.scss +0 -249
- package/src/styles/06-components/_components.edge-panel.scss +0 -309
- package/src/styles/06-components/_components.form-group.scss +0 -77
- package/src/styles/06-components/_components.form.scss +0 -21
- package/src/styles/06-components/_components.hero.scss +0 -151
- package/src/styles/06-components/_components.icon.scss +0 -80
- package/src/styles/06-components/_components.image-gallery.scss +0 -70
- package/src/styles/06-components/_components.input.scss +0 -105
- package/src/styles/06-components/_components.list-group.scss +0 -62
- package/src/styles/06-components/_components.list.scss +0 -57
- package/src/styles/06-components/_components.menu.scss +0 -234
- package/src/styles/06-components/_components.messages.scss +0 -319
- package/src/styles/06-components/_components.modal.scss +0 -154
- package/src/styles/06-components/_components.nav.scss +0 -127
- package/src/styles/06-components/_components.navbar.scss +0 -234
- package/src/styles/06-components/_components.pagination.scss +0 -154
- package/src/styles/06-components/_components.photoviewer.scss +0 -873
- package/src/styles/06-components/_components.popover.scss +0 -99
- package/src/styles/06-components/_components.product-review.scss +0 -128
- package/src/styles/06-components/_components.progress.scss +0 -46
- package/src/styles/06-components/_components.rating.scss +0 -160
- package/src/styles/06-components/_components.river.scss +0 -214
- package/src/styles/06-components/_components.sectionintro.scss +0 -170
- package/src/styles/06-components/_components.select.scss +0 -126
- package/src/styles/06-components/_components.side-menu.scss +0 -108
- package/src/styles/06-components/_components.skeleton.scss +0 -56
- package/src/styles/06-components/_components.spinner.scss +0 -47
- package/src/styles/06-components/_components.steps.scss +0 -100
- package/src/styles/06-components/_components.tabs.scss +0 -119
- package/src/styles/06-components/_components.testimonials.scss +0 -68
- package/src/styles/06-components/_components.todo.scss +0 -163
- package/src/styles/06-components/_components.toggle.scss +0 -100
- package/src/styles/06-components/_components.tooltip.scss +0 -137
- package/src/styles/06-components/_components.upload.scss +0 -260
- package/src/styles/06-components/_index.scss +0 -49
- package/src/styles/99-utilities/_index.scss +0 -21
- package/src/styles/99-utilities/_utilities.background.scss +0 -28
- package/src/styles/99-utilities/_utilities.border.scss +0 -157
- package/src/styles/99-utilities/_utilities.clearfix.scss +0 -5
- package/src/styles/99-utilities/_utilities.display.scss +0 -12
- package/src/styles/99-utilities/_utilities.flex.scss +0 -109
- package/src/styles/99-utilities/_utilities.link.scss +0 -79
- package/src/styles/99-utilities/_utilities.object-fit.scss +0 -17
- package/src/styles/99-utilities/_utilities.opacity.scss +0 -16
- package/src/styles/99-utilities/_utilities.overflow.scss +0 -20
- package/src/styles/99-utilities/_utilities.position.scss +0 -40
- package/src/styles/99-utilities/_utilities.scss +0 -42
- package/src/styles/99-utilities/_utilities.shadow.scss +0 -19
- package/src/styles/99-utilities/_utilities.sizes.scss +0 -81
- package/src/styles/99-utilities/_utilities.spacing.scss +0 -153
- package/src/styles/99-utilities/_utilities.text.scss +0 -87
- package/src/styles/99-utilities/_utilities.visibility.scss +0 -13
- package/src/styles/99-utilities/_utilities.visually-hidden.scss +0 -5
- package/src/styles/99-utilities/_utilities.z-index.scss +0 -11
- package/src/styles/index.scss +0 -12
|
@@ -1,340 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Class for handling callout interactions
|
|
3
|
-
*/
|
|
4
|
-
export class CalloutInteractions {
|
|
5
|
-
private static instances: Map<string, CalloutInteractions> = new Map();
|
|
6
|
-
private element: HTMLElement;
|
|
7
|
-
private id: string;
|
|
8
|
-
private autoHideTimeout: number | null = null;
|
|
9
|
-
private config: {
|
|
10
|
-
autoHide: boolean;
|
|
11
|
-
autoHideDelay: number;
|
|
12
|
-
onClose?: () => void;
|
|
13
|
-
position?: ToastPosition;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Available toast positions
|
|
18
|
-
*/
|
|
19
|
-
public static ToastPositions = {
|
|
20
|
-
TOP_RIGHT: 'top-right',
|
|
21
|
-
TOP_LEFT: 'top-left',
|
|
22
|
-
TOP_CENTER: 'top-center',
|
|
23
|
-
BOTTOM_RIGHT: 'bottom-right',
|
|
24
|
-
BOTTOM_LEFT: 'bottom-left',
|
|
25
|
-
BOTTOM_CENTER: 'bottom-center'
|
|
26
|
-
} as const;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Create a new CalloutInteractions instance
|
|
30
|
-
* @param element - The callout element
|
|
31
|
-
* @param options - Configuration options
|
|
32
|
-
*/
|
|
33
|
-
constructor(element: HTMLElement, options: {
|
|
34
|
-
autoHide?: boolean;
|
|
35
|
-
autoHideDelay?: number;
|
|
36
|
-
onClose?: () => void;
|
|
37
|
-
position?: ToastPosition;
|
|
38
|
-
} = {}) {
|
|
39
|
-
this.element = element;
|
|
40
|
-
this.id = element.id || `callout-${Math.random().toString(36).substring(2, 9)}`;
|
|
41
|
-
|
|
42
|
-
if (!element.id) {
|
|
43
|
-
element.id = this.id;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
this.config = {
|
|
47
|
-
autoHide: options.autoHide ?? false,
|
|
48
|
-
autoHideDelay: options.autoHideDelay ?? 5000, // Default 5 seconds
|
|
49
|
-
onClose: options.onClose,
|
|
50
|
-
position: options.position ?? CalloutInteractions.ToastPositions.TOP_RIGHT
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
this._initialize();
|
|
54
|
-
CalloutInteractions.instances.set(this.id, this);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Initialize the callout interactions
|
|
59
|
-
*/
|
|
60
|
-
private _initialize(): void {
|
|
61
|
-
// Add hover pause functionality for toast callouts
|
|
62
|
-
if (this.element.classList.contains('c-callout--toast')) {
|
|
63
|
-
this.element.addEventListener('mouseenter', this._pauseAutoHide.bind(this));
|
|
64
|
-
this.element.addEventListener('mouseleave', this._resumeAutoHide.bind(this));
|
|
65
|
-
|
|
66
|
-
// Add keyboard support for toast callouts
|
|
67
|
-
this.element.addEventListener('keydown', this._handleKeyDown.bind(this));
|
|
68
|
-
|
|
69
|
-
// Make sure toast is focusable
|
|
70
|
-
if (this.element.tabIndex < 0) {
|
|
71
|
-
this.element.tabIndex = 0;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// Set up auto-hide if configured
|
|
76
|
-
if (this.config.autoHide) {
|
|
77
|
-
this._startAutoHideTimer();
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Handle keyboard events
|
|
83
|
-
*/
|
|
84
|
-
private _handleKeyDown(event: KeyboardEvent): void {
|
|
85
|
-
// Close on Escape key
|
|
86
|
-
if (event.key === 'Escape') {
|
|
87
|
-
this.close();
|
|
88
|
-
event.preventDefault();
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Start the auto-hide timer
|
|
94
|
-
*/
|
|
95
|
-
private _startAutoHideTimer(): void {
|
|
96
|
-
if (this.autoHideTimeout) {
|
|
97
|
-
clearTimeout(this.autoHideTimeout);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
this.autoHideTimeout = window.setTimeout(() => {
|
|
101
|
-
this.close();
|
|
102
|
-
}, this.config.autoHideDelay);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Pause the auto-hide timer (on hover)
|
|
107
|
-
*/
|
|
108
|
-
private _pauseAutoHide(): void {
|
|
109
|
-
if (this.autoHideTimeout) {
|
|
110
|
-
clearTimeout(this.autoHideTimeout);
|
|
111
|
-
this.autoHideTimeout = null;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Resume the auto-hide timer (on mouse leave)
|
|
117
|
-
*/
|
|
118
|
-
private _resumeAutoHide(): void {
|
|
119
|
-
if (this.config.autoHide) {
|
|
120
|
-
this._startAutoHideTimer();
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Close the callout
|
|
126
|
-
*/
|
|
127
|
-
public close(): void {
|
|
128
|
-
this.element.classList.add('is-hide');
|
|
129
|
-
|
|
130
|
-
// Remove from DOM after animation completes
|
|
131
|
-
setTimeout(() => {
|
|
132
|
-
if (this.element.parentNode) {
|
|
133
|
-
this.element.parentNode.removeChild(this.element);
|
|
134
|
-
CalloutInteractions.instances.delete(this.id);
|
|
135
|
-
|
|
136
|
-
if (this.config.onClose) {
|
|
137
|
-
this.config.onClose();
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// Dispatch custom event
|
|
141
|
-
document.dispatchEvent(new CustomEvent('atomix:callout:closed', {
|
|
142
|
-
detail: { id: this.id }
|
|
143
|
-
}));
|
|
144
|
-
}
|
|
145
|
-
}, 300); // Match the transition duration in CSS
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Clean up event listeners
|
|
150
|
-
*/
|
|
151
|
-
public destroy(): void {
|
|
152
|
-
if (this.autoHideTimeout) {
|
|
153
|
-
clearTimeout(this.autoHideTimeout);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
this.element.removeEventListener('mouseenter', this._pauseAutoHide.bind(this));
|
|
157
|
-
this.element.removeEventListener('mouseleave', this._resumeAutoHide.bind(this));
|
|
158
|
-
this.element.removeEventListener('keydown', this._handleKeyDown.bind(this));
|
|
159
|
-
|
|
160
|
-
CalloutInteractions.instances.delete(this.id);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Get the toast container for a specific position
|
|
165
|
-
*/
|
|
166
|
-
private static _getToastContainer(position: ToastPosition = CalloutInteractions.ToastPositions.TOP_RIGHT): HTMLElement {
|
|
167
|
-
const containerId = `atomix-toast-container-${position}`;
|
|
168
|
-
let container = document.getElementById(containerId);
|
|
169
|
-
|
|
170
|
-
if (!container) {
|
|
171
|
-
container = document.createElement('div');
|
|
172
|
-
container.id = containerId;
|
|
173
|
-
container.className = `c-callout-container c-callout-container--${position}`;
|
|
174
|
-
container.setAttribute('aria-live', 'polite');
|
|
175
|
-
container.setAttribute('role', 'status');
|
|
176
|
-
document.body.appendChild(container);
|
|
177
|
-
|
|
178
|
-
// Apply positioning styles
|
|
179
|
-
container.style.position = 'fixed';
|
|
180
|
-
container.style.zIndex = '9999';
|
|
181
|
-
container.style.display = 'flex';
|
|
182
|
-
container.style.flexDirection = 'column';
|
|
183
|
-
container.style.gap = '8px';
|
|
184
|
-
|
|
185
|
-
// Position the container based on position value
|
|
186
|
-
switch (position) {
|
|
187
|
-
case CalloutInteractions.ToastPositions.TOP_RIGHT:
|
|
188
|
-
container.style.top = '20px';
|
|
189
|
-
container.style.right = '20px';
|
|
190
|
-
container.style.alignItems = 'flex-end';
|
|
191
|
-
break;
|
|
192
|
-
case CalloutInteractions.ToastPositions.TOP_LEFT:
|
|
193
|
-
container.style.top = '20px';
|
|
194
|
-
container.style.left = '20px';
|
|
195
|
-
container.style.alignItems = 'flex-start';
|
|
196
|
-
break;
|
|
197
|
-
case CalloutInteractions.ToastPositions.TOP_CENTER:
|
|
198
|
-
container.style.top = '20px';
|
|
199
|
-
container.style.left = '50%';
|
|
200
|
-
container.style.transform = 'translateX(-50%)';
|
|
201
|
-
container.style.alignItems = 'center';
|
|
202
|
-
break;
|
|
203
|
-
case CalloutInteractions.ToastPositions.BOTTOM_RIGHT:
|
|
204
|
-
container.style.bottom = '20px';
|
|
205
|
-
container.style.right = '20px';
|
|
206
|
-
container.style.alignItems = 'flex-end';
|
|
207
|
-
break;
|
|
208
|
-
case CalloutInteractions.ToastPositions.BOTTOM_LEFT:
|
|
209
|
-
container.style.bottom = '20px';
|
|
210
|
-
container.style.left = '20px';
|
|
211
|
-
container.style.alignItems = 'flex-start';
|
|
212
|
-
break;
|
|
213
|
-
case CalloutInteractions.ToastPositions.BOTTOM_CENTER:
|
|
214
|
-
container.style.bottom = '20px';
|
|
215
|
-
container.style.left = '50%';
|
|
216
|
-
container.style.transform = 'translateX(-50%)';
|
|
217
|
-
container.style.alignItems = 'center';
|
|
218
|
-
break;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
return container;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* Create a toast notification
|
|
227
|
-
* @param options - Toast options
|
|
228
|
-
*/
|
|
229
|
-
public static createToast(options: {
|
|
230
|
-
title: string;
|
|
231
|
-
content?: string;
|
|
232
|
-
variant?: string;
|
|
233
|
-
icon?: string;
|
|
234
|
-
autoHide?: boolean;
|
|
235
|
-
autoHideDelay?: number;
|
|
236
|
-
onClose?: () => void;
|
|
237
|
-
position?: ToastPosition;
|
|
238
|
-
}): CalloutInteractions {
|
|
239
|
-
// Get the appropriate toast container
|
|
240
|
-
const position = options.position || CalloutInteractions.ToastPositions.TOP_RIGHT;
|
|
241
|
-
const toastContainer = this._getToastContainer(position);
|
|
242
|
-
|
|
243
|
-
// Create toast element
|
|
244
|
-
const toast = document.createElement('div');
|
|
245
|
-
toast.className = `c-callout c-callout--toast ${options.variant ? `c-callout--${options.variant}` : 'c-callout--primary'}`;
|
|
246
|
-
toast.id = `toast-${Math.random().toString(36).substring(2, 9)}`;
|
|
247
|
-
toast.setAttribute('role', 'alert');
|
|
248
|
-
toast.setAttribute('aria-live', 'assertive');
|
|
249
|
-
toast.tabIndex = 0; // Make focusable
|
|
250
|
-
|
|
251
|
-
// Create toast content
|
|
252
|
-
let iconHtml = '';
|
|
253
|
-
if (options.icon) {
|
|
254
|
-
iconHtml = `<div class="c-callout__icon">${options.icon}</div>`;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
toast.innerHTML = `
|
|
258
|
-
<div class="c-callout__content">
|
|
259
|
-
${iconHtml}
|
|
260
|
-
<div class="c-callout__message">
|
|
261
|
-
<div class="c-callout__title">${options.title}</div>
|
|
262
|
-
${options.content ? `<div class="c-callout__text">${options.content}</div>` : ''}
|
|
263
|
-
</div>
|
|
264
|
-
</div>
|
|
265
|
-
<button class="c-callout__close-btn" aria-label="Close">
|
|
266
|
-
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
267
|
-
<path d="M18 6L6 18M6 6L18 18" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
268
|
-
</svg>
|
|
269
|
-
</button>
|
|
270
|
-
`;
|
|
271
|
-
|
|
272
|
-
// Add to container
|
|
273
|
-
toastContainer.appendChild(toast);
|
|
274
|
-
|
|
275
|
-
// Initialize interactions
|
|
276
|
-
const interaction = new CalloutInteractions(toast, {
|
|
277
|
-
autoHide: options.autoHide ?? true,
|
|
278
|
-
autoHideDelay: options.autoHideDelay ?? 5000,
|
|
279
|
-
onClose: options.onClose,
|
|
280
|
-
position
|
|
281
|
-
});
|
|
282
|
-
|
|
283
|
-
// Add close button event listener
|
|
284
|
-
const closeButton = toast.querySelector('.c-callout__close-btn');
|
|
285
|
-
if (closeButton) {
|
|
286
|
-
closeButton.addEventListener('click', () => interaction.close());
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
// Focus the toast for accessibility
|
|
290
|
-
setTimeout(() => toast.focus(), 100);
|
|
291
|
-
|
|
292
|
-
return interaction;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* Initialize all callout elements on the page
|
|
297
|
-
*/
|
|
298
|
-
public static initializeAll(options: {
|
|
299
|
-
autoHide?: boolean;
|
|
300
|
-
autoHideDelay?: number;
|
|
301
|
-
onClose?: () => void;
|
|
302
|
-
} = {}): CalloutInteractions[] {
|
|
303
|
-
const interactions: CalloutInteractions[] = [];
|
|
304
|
-
const elements = document.querySelectorAll('.c-callout');
|
|
305
|
-
|
|
306
|
-
elements.forEach(element => {
|
|
307
|
-
if (!CalloutInteractions.instances.has((element as HTMLElement).id)) {
|
|
308
|
-
interactions.push(new CalloutInteractions(element as HTMLElement, options));
|
|
309
|
-
}
|
|
310
|
-
});
|
|
311
|
-
|
|
312
|
-
return interactions;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
* Clear all toast notifications
|
|
317
|
-
*/
|
|
318
|
-
public static clearAllToasts(): void {
|
|
319
|
-
// Get all toast containers
|
|
320
|
-
const containers = document.querySelectorAll('[id^="atomix-toast-container-"]');
|
|
321
|
-
|
|
322
|
-
containers.forEach(container => {
|
|
323
|
-
const toasts = container.querySelectorAll('.c-callout--toast');
|
|
324
|
-
toasts.forEach(toast => {
|
|
325
|
-
const id = (toast as HTMLElement).id;
|
|
326
|
-
const instance = CalloutInteractions.instances.get(id);
|
|
327
|
-
|
|
328
|
-
if (instance) {
|
|
329
|
-
instance.close();
|
|
330
|
-
} else {
|
|
331
|
-
// If no instance, remove directly
|
|
332
|
-
container.removeChild(toast);
|
|
333
|
-
}
|
|
334
|
-
});
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
// Type for toast positions
|
|
340
|
-
type ToastPosition = typeof CalloutInteractions.ToastPositions[keyof typeof CalloutInteractions.ToastPositions];
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Callout component bundle for vanilla JS usage
|
|
3
|
-
*/
|
|
4
|
-
import { Callout, CalloutInteractions } from './index';
|
|
5
|
-
|
|
6
|
-
// Export to global namespace when included directly via script tag
|
|
7
|
-
if (typeof window !== 'undefined') {
|
|
8
|
-
// Create Atomix namespace if it doesn't exist
|
|
9
|
-
window.Atomix = window.Atomix || {};
|
|
10
|
-
|
|
11
|
-
// Add Callout to Atomix namespace
|
|
12
|
-
// @ts-ignore - Ignore type mismatch between React component and vanilla JS class
|
|
13
|
-
window.Atomix.Callout = Callout;
|
|
14
|
-
window.Atomix.CalloutInteractions = CalloutInteractions;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// Export for module usage
|
|
18
|
-
export { Callout, CalloutInteractions };
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { CalloutInteractions } from './CalloutInteractions';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Callout component class for vanilla JS implementation
|
|
5
|
-
*/
|
|
6
|
-
export class Callout {
|
|
7
|
-
private element: HTMLElement;
|
|
8
|
-
private closeButton: HTMLElement | null;
|
|
9
|
-
private config: {
|
|
10
|
-
onClose?: () => void;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Create a new Callout instance
|
|
15
|
-
* @param element - The callout element
|
|
16
|
-
* @param options - Configuration options
|
|
17
|
-
*/
|
|
18
|
-
constructor(element: HTMLElement, options: { onClose?: () => void } = {}) {
|
|
19
|
-
this.element = element;
|
|
20
|
-
this.closeButton = element.querySelector('.c-callout__close-btn');
|
|
21
|
-
this.config = {
|
|
22
|
-
onClose: options.onClose,
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
this._initialize();
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Initialize the callout component
|
|
30
|
-
*/
|
|
31
|
-
private _initialize(): void {
|
|
32
|
-
if (this.closeButton) {
|
|
33
|
-
this.closeButton.addEventListener('click', this._handleClose.bind(this));
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Handle close button click
|
|
39
|
-
*/
|
|
40
|
-
private _handleClose(): void {
|
|
41
|
-
this.close();
|
|
42
|
-
|
|
43
|
-
if (this.config.onClose) {
|
|
44
|
-
this.config.onClose();
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// Dispatch custom event
|
|
48
|
-
this.element.dispatchEvent(new CustomEvent('atomix:callout:close', {
|
|
49
|
-
bubbles: true,
|
|
50
|
-
}));
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Close the callout
|
|
55
|
-
*/
|
|
56
|
-
public close(): void {
|
|
57
|
-
this.element.classList.add('is-hide');
|
|
58
|
-
|
|
59
|
-
// Remove from DOM after animation completes
|
|
60
|
-
setTimeout(() => {
|
|
61
|
-
if (this.element.parentNode) {
|
|
62
|
-
this.element.parentNode.removeChild(this.element);
|
|
63
|
-
}
|
|
64
|
-
}, 300); // Match the transition duration in CSS
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Show the callout
|
|
69
|
-
*/
|
|
70
|
-
public show(): void {
|
|
71
|
-
this.element.classList.remove('is-hide');
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Update callout content
|
|
76
|
-
* @param options - Content options
|
|
77
|
-
*/
|
|
78
|
-
public update(options: { title?: string; content?: string; variant?: string }): void {
|
|
79
|
-
const titleElement = this.element.querySelector('.c-callout__title');
|
|
80
|
-
const contentElement = this.element.querySelector('.c-callout__text');
|
|
81
|
-
|
|
82
|
-
if (options.title && titleElement) {
|
|
83
|
-
titleElement.textContent = options.title;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
if (options.content && contentElement) {
|
|
87
|
-
contentElement.textContent = options.content;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
if (options.variant) {
|
|
91
|
-
// Remove existing variant classes
|
|
92
|
-
const variantClasses = Array.from(this.element.classList)
|
|
93
|
-
.filter(cls => cls.startsWith('c-callout--') && !['c-callout--oneline', 'c-callout--toast'].includes(cls));
|
|
94
|
-
|
|
95
|
-
variantClasses.forEach(cls => this.element.classList.remove(cls));
|
|
96
|
-
|
|
97
|
-
// Add new variant class
|
|
98
|
-
this.element.classList.add(`c-callout--${options.variant}`);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Clean up event listeners
|
|
104
|
-
*/
|
|
105
|
-
public destroy(): void {
|
|
106
|
-
if (this.closeButton) {
|
|
107
|
-
this.closeButton.removeEventListener('click', this._handleClose.bind(this));
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Initialize all callout elements on the page
|
|
113
|
-
*/
|
|
114
|
-
public static initializeAll(options: { onClose?: () => void } = {}): Callout[] {
|
|
115
|
-
const callouts: Callout[] = [];
|
|
116
|
-
const elements = document.querySelectorAll('.c-callout');
|
|
117
|
-
|
|
118
|
-
elements.forEach(element => {
|
|
119
|
-
callouts.push(new Callout(element as HTMLElement, options));
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
return callouts;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export { CalloutInteractions };
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
import { Card, ElevationCard } from './index';
|
|
4
|
-
|
|
5
|
-
const meta: Meta<typeof Card> = {
|
|
6
|
-
title: 'Components/Card',
|
|
7
|
-
component: Card,
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: 'centered',
|
|
10
|
-
},
|
|
11
|
-
tags: ['autodocs'],
|
|
12
|
-
argTypes: {
|
|
13
|
-
header: { control: 'text' },
|
|
14
|
-
title: { control: 'text' },
|
|
15
|
-
text: { control: 'text' },
|
|
16
|
-
image: { control: 'text' },
|
|
17
|
-
imageAlt: { control: 'text' },
|
|
18
|
-
footer: { control: 'text' },
|
|
19
|
-
row: { control: 'boolean' },
|
|
20
|
-
flat: { control: 'boolean' },
|
|
21
|
-
active: { control: 'boolean' },
|
|
22
|
-
className: { control: 'text' },
|
|
23
|
-
onClick: { action: 'clicked' },
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export default meta;
|
|
28
|
-
type Story = StoryObj<typeof Card>;
|
|
29
|
-
|
|
30
|
-
// Basic Card
|
|
31
|
-
export const Basic: Story = {
|
|
32
|
-
args: {
|
|
33
|
-
title: 'Card Title',
|
|
34
|
-
text: 'This is a basic card with title and text content.',
|
|
35
|
-
className: 'custom-card',
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
// Card with Image
|
|
40
|
-
export const WithImage: Story = {
|
|
41
|
-
args: {
|
|
42
|
-
title: 'Card with Image',
|
|
43
|
-
text: 'This card includes an image above the content.',
|
|
44
|
-
image: 'https://placehold.co/600x400',
|
|
45
|
-
imageAlt: 'Placeholder image',
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
// Card with Actions
|
|
50
|
-
export const WithActions: Story = {
|
|
51
|
-
args: {
|
|
52
|
-
title: 'Card with Actions',
|
|
53
|
-
text: 'This card includes buttons at the bottom.',
|
|
54
|
-
actions: (
|
|
55
|
-
<React.Fragment>
|
|
56
|
-
<button className="c-btn c-btn--primary c-btn--sm">Learn More</button>
|
|
57
|
-
<button className="c-btn c-btn--secondary c-btn--sm">Cancel</button>
|
|
58
|
-
</React.Fragment>
|
|
59
|
-
)
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
// Row Card
|
|
64
|
-
export const Row: Story = {
|
|
65
|
-
args: {
|
|
66
|
-
title: 'Row Layout Card',
|
|
67
|
-
text: 'This card uses a horizontal layout with the image on the left.',
|
|
68
|
-
image: 'https://placehold.co/300x300',
|
|
69
|
-
imageAlt: 'Placeholder',
|
|
70
|
-
row: true,
|
|
71
|
-
},
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
// Flat Card
|
|
75
|
-
export const Flat: Story = {
|
|
76
|
-
args: {
|
|
77
|
-
title: 'Flat Style Card',
|
|
78
|
-
text: 'This card uses the flat style with the image extending to the edges.',
|
|
79
|
-
image: 'https://placehold.co/600x400',
|
|
80
|
-
imageAlt: 'Placeholder',
|
|
81
|
-
flat: true,
|
|
82
|
-
},
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
// Clickable Card
|
|
86
|
-
export const Clickable: Story = {
|
|
87
|
-
args: {
|
|
88
|
-
title: 'Clickable Card',
|
|
89
|
-
text: 'Click me! This card has an onClick handler attached.',
|
|
90
|
-
onClick: () => alert('Card clicked!'),
|
|
91
|
-
},
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
// Elevation Card
|
|
95
|
-
export const WithElevation: Story = {
|
|
96
|
-
render: (args) => (
|
|
97
|
-
<div style={{ padding: '20px', width: '300px' }}>
|
|
98
|
-
<ElevationCard {...args} />
|
|
99
|
-
</div>
|
|
100
|
-
),
|
|
101
|
-
args: {
|
|
102
|
-
title: 'Elevation Effect Card',
|
|
103
|
-
text: 'Hover over this card to see an elevation effect.',
|
|
104
|
-
image: 'https://picsum.photos/id/0/712/500',
|
|
105
|
-
imageAlt: 'Placeholder',
|
|
106
|
-
},
|
|
107
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef, Ref } from 'react';
|
|
2
|
-
import { CARD } from '../../lib/constants/components';
|
|
3
|
-
import { CardProps } from '../../lib/types/components';
|
|
4
|
-
|
|
5
|
-
export const Card = forwardRef<HTMLDivElement, CardProps>(({
|
|
6
|
-
header,
|
|
7
|
-
image,
|
|
8
|
-
imageAlt = '',
|
|
9
|
-
title,
|
|
10
|
-
text,
|
|
11
|
-
actions,
|
|
12
|
-
icon,
|
|
13
|
-
footer,
|
|
14
|
-
row = false,
|
|
15
|
-
flat = false,
|
|
16
|
-
active = false,
|
|
17
|
-
className = '',
|
|
18
|
-
children,
|
|
19
|
-
onClick,
|
|
20
|
-
...rest
|
|
21
|
-
}, ref) => {
|
|
22
|
-
const cardClasses = [
|
|
23
|
-
CARD.CLASSES.BASE,
|
|
24
|
-
row ? CARD.CLASSES.ROW : '',
|
|
25
|
-
flat ? CARD.CLASSES.FLAT : '',
|
|
26
|
-
active ? CARD.CLASSES.ACTIVE : '',
|
|
27
|
-
className
|
|
28
|
-
].filter(Boolean).join(' ');
|
|
29
|
-
|
|
30
|
-
return (
|
|
31
|
-
<div
|
|
32
|
-
ref={ref}
|
|
33
|
-
className={cardClasses}
|
|
34
|
-
onClick={onClick}
|
|
35
|
-
{...rest}
|
|
36
|
-
>
|
|
37
|
-
{(image || icon || header) && (
|
|
38
|
-
<div className={CARD.SELECTORS.HEADER.substring(1)}>
|
|
39
|
-
{header}
|
|
40
|
-
{image && (
|
|
41
|
-
<img
|
|
42
|
-
src={image}
|
|
43
|
-
alt={imageAlt}
|
|
44
|
-
className={CARD.SELECTORS.IMAGE.substring(1)}
|
|
45
|
-
/>
|
|
46
|
-
)}
|
|
47
|
-
|
|
48
|
-
{icon && (
|
|
49
|
-
<div className={CARD.SELECTORS.ICON.substring(1)}>
|
|
50
|
-
{icon}
|
|
51
|
-
</div>
|
|
52
|
-
)}
|
|
53
|
-
</div>
|
|
54
|
-
)}
|
|
55
|
-
|
|
56
|
-
<div className={CARD.SELECTORS.BODY.substring(1)}>
|
|
57
|
-
{title && (
|
|
58
|
-
<h3 className={CARD.SELECTORS.TITLE.substring(1)}>
|
|
59
|
-
{title}
|
|
60
|
-
</h3>
|
|
61
|
-
)}
|
|
62
|
-
|
|
63
|
-
{text && (
|
|
64
|
-
<p className={CARD.SELECTORS.TEXT.substring(1)}>
|
|
65
|
-
{text}
|
|
66
|
-
</p>
|
|
67
|
-
)}
|
|
68
|
-
|
|
69
|
-
{children}
|
|
70
|
-
</div>
|
|
71
|
-
|
|
72
|
-
{actions && (
|
|
73
|
-
<div className={CARD.SELECTORS.ACTIONS.substring(1)}>
|
|
74
|
-
{actions}
|
|
75
|
-
</div>
|
|
76
|
-
)}
|
|
77
|
-
|
|
78
|
-
{footer && (
|
|
79
|
-
<div className={CARD.SELECTORS.FOOTER.substring(1)}>
|
|
80
|
-
{footer}
|
|
81
|
-
</div>
|
|
82
|
-
)}
|
|
83
|
-
</div>
|
|
84
|
-
);
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
export type { CardProps };
|
|
89
|
-
|
|
90
|
-
Card.displayName = 'Card';
|
|
91
|
-
|
|
92
|
-
export default Card;
|