@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,331 +0,0 @@
|
|
|
1
|
-
import type { RatingProps, Size, ThemeColor } from '../../../lib/types/components';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Rating component class for vanilla JavaScript implementation
|
|
5
|
-
*/
|
|
6
|
-
export type RatingOptions = Pick<RatingProps,
|
|
7
|
-
'value' |
|
|
8
|
-
'defaultValue' |
|
|
9
|
-
'maxValue' |
|
|
10
|
-
'allowHalf' |
|
|
11
|
-
'readOnly' |
|
|
12
|
-
'size' |
|
|
13
|
-
'color' |
|
|
14
|
-
'onChange'
|
|
15
|
-
>;
|
|
16
|
-
|
|
17
|
-
// Define default options
|
|
18
|
-
const DEFAULTS = {
|
|
19
|
-
value: 0,
|
|
20
|
-
maxValue: 5,
|
|
21
|
-
allowHalf: false,
|
|
22
|
-
readOnly: false,
|
|
23
|
-
size: 'md' as Size,
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Rating component class for vanilla JavaScript implementation
|
|
28
|
-
*/
|
|
29
|
-
export default class Rating {
|
|
30
|
-
element: HTMLElement;
|
|
31
|
-
options: RatingOptions;
|
|
32
|
-
stars: NodeListOf<HTMLElement> | null = null;
|
|
33
|
-
private _currentValue: number;
|
|
34
|
-
private _boundHandleMouseEnter: (event: MouseEvent) => void;
|
|
35
|
-
private _boundHandleMouseLeave: (event: MouseEvent) => void;
|
|
36
|
-
private _boundHandleClick: (event: MouseEvent) => void;
|
|
37
|
-
private _boundHandleKeyDown: (event: KeyboardEvent) => void;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Create a new Rating instance
|
|
41
|
-
* @param element - The element to attach the rating to
|
|
42
|
-
* @param options - Configuration options
|
|
43
|
-
*/
|
|
44
|
-
constructor(element: string | HTMLElement, options: RatingOptions = {}) {
|
|
45
|
-
this.element = typeof element === 'string' ? document.querySelector(element) as HTMLElement : element;
|
|
46
|
-
if (!this.element) {
|
|
47
|
-
throw new Error('Rating: Element not found');
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
this.options = { ...DEFAULTS, ...options };
|
|
51
|
-
this._currentValue = this.options.value || 0;
|
|
52
|
-
|
|
53
|
-
// Bind event handlers to this instance
|
|
54
|
-
this._boundHandleMouseEnter = this._handleMouseEnter.bind(this);
|
|
55
|
-
this._boundHandleMouseLeave = this._handleMouseLeave.bind(this);
|
|
56
|
-
this._boundHandleClick = this._handleClick.bind(this);
|
|
57
|
-
this._boundHandleKeyDown = this._handleKeyDown.bind(this);
|
|
58
|
-
|
|
59
|
-
// Store reference to instance on element
|
|
60
|
-
(this.element as any)._rating = this;
|
|
61
|
-
|
|
62
|
-
this._init();
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Initialize the component
|
|
67
|
-
*/
|
|
68
|
-
private _init(): void {
|
|
69
|
-
// Set data attributes
|
|
70
|
-
this.element.setAttribute('data-max-value', String(this.options.maxValue));
|
|
71
|
-
this.element.setAttribute('data-allow-half', String(this.options.allowHalf));
|
|
72
|
-
this.element.setAttribute('data-readonly', String(this.options.readOnly));
|
|
73
|
-
|
|
74
|
-
// Set ARIA attributes
|
|
75
|
-
if (this.options.readOnly) {
|
|
76
|
-
this.element.setAttribute('role', 'img');
|
|
77
|
-
this.element.setAttribute('aria-label', `Rating: ${this._currentValue} out of ${this.options.maxValue} stars`);
|
|
78
|
-
} else {
|
|
79
|
-
this.element.setAttribute('role', 'radiogroup');
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// Add CSS classes
|
|
83
|
-
if (this.options.size && this.options.size !== 'md') {
|
|
84
|
-
this.element.classList.add(`c-rating--${this.options.size}`);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
if (this.options.color) {
|
|
88
|
-
this.element.classList.add(`c-rating--${this.options.color}`);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// Get all stars
|
|
92
|
-
this.stars = this.element.querySelectorAll('.c-rating__star');
|
|
93
|
-
|
|
94
|
-
// Set initial state
|
|
95
|
-
this._updateStars();
|
|
96
|
-
|
|
97
|
-
// Bind events if not read-only
|
|
98
|
-
if (!this.options.readOnly) {
|
|
99
|
-
this._bindEvents();
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// Dispatch init event
|
|
103
|
-
this.element.dispatchEvent(new CustomEvent('rating:init', {
|
|
104
|
-
bubbles: true,
|
|
105
|
-
detail: { instance: this }
|
|
106
|
-
}));
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Bind event listeners
|
|
111
|
-
*/
|
|
112
|
-
private _bindEvents(): void {
|
|
113
|
-
if (!this.stars) return;
|
|
114
|
-
|
|
115
|
-
// Add event listeners to each star
|
|
116
|
-
this.stars.forEach((star) => {
|
|
117
|
-
star.addEventListener('mouseenter', this._boundHandleMouseEnter);
|
|
118
|
-
star.addEventListener('click', this._boundHandleClick);
|
|
119
|
-
star.addEventListener('keydown', this._boundHandleKeyDown);
|
|
120
|
-
|
|
121
|
-
// Make stars focusable
|
|
122
|
-
star.setAttribute('tabindex', '0');
|
|
123
|
-
star.setAttribute('role', 'button');
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
// Add mouseleave to the container
|
|
127
|
-
this.element.addEventListener('mouseleave', this._boundHandleMouseLeave);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Handle mouse enter on a star
|
|
132
|
-
*/
|
|
133
|
-
private _handleMouseEnter(event: MouseEvent): void {
|
|
134
|
-
if (this.options.readOnly) return;
|
|
135
|
-
|
|
136
|
-
const target = event.currentTarget as HTMLElement;
|
|
137
|
-
const value = Number(target.getAttribute('data-value'));
|
|
138
|
-
|
|
139
|
-
this._highlightStars(value);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Handle mouse leave from rating component
|
|
144
|
-
*/
|
|
145
|
-
private _handleMouseLeave(): void {
|
|
146
|
-
if (this.options.readOnly) return;
|
|
147
|
-
|
|
148
|
-
this._updateStars();
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Handle click on a star
|
|
153
|
-
*/
|
|
154
|
-
private _handleClick(event: MouseEvent): void {
|
|
155
|
-
if (this.options.readOnly) return;
|
|
156
|
-
|
|
157
|
-
const target = event.currentTarget as HTMLElement;
|
|
158
|
-
const value = Number(target.getAttribute('data-value'));
|
|
159
|
-
|
|
160
|
-
this.setValue(value);
|
|
161
|
-
|
|
162
|
-
if (this.options.onChange) {
|
|
163
|
-
this.options.onChange(value);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* Handle keyboard navigation
|
|
169
|
-
*/
|
|
170
|
-
private _handleKeyDown(event: KeyboardEvent): void {
|
|
171
|
-
if (this.options.readOnly) return;
|
|
172
|
-
|
|
173
|
-
const target = event.currentTarget as HTMLElement;
|
|
174
|
-
const index = Number(target.getAttribute('data-value'));
|
|
175
|
-
const step = this.options.allowHalf ? 0.5 : 1;
|
|
176
|
-
let newValue = this._currentValue;
|
|
177
|
-
|
|
178
|
-
switch (event.key) {
|
|
179
|
-
case 'ArrowRight':
|
|
180
|
-
case 'ArrowUp':
|
|
181
|
-
newValue = Math.min(this.options.maxValue || 5, this._currentValue + step);
|
|
182
|
-
event.preventDefault();
|
|
183
|
-
break;
|
|
184
|
-
case 'ArrowLeft':
|
|
185
|
-
case 'ArrowDown':
|
|
186
|
-
newValue = Math.max(0, this._currentValue - step);
|
|
187
|
-
event.preventDefault();
|
|
188
|
-
break;
|
|
189
|
-
case 'Home':
|
|
190
|
-
newValue = 0;
|
|
191
|
-
event.preventDefault();
|
|
192
|
-
break;
|
|
193
|
-
case 'End':
|
|
194
|
-
newValue = this.options.maxValue || 5;
|
|
195
|
-
event.preventDefault();
|
|
196
|
-
break;
|
|
197
|
-
case ' ':
|
|
198
|
-
case 'Enter':
|
|
199
|
-
newValue = index;
|
|
200
|
-
event.preventDefault();
|
|
201
|
-
break;
|
|
202
|
-
default:
|
|
203
|
-
return;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
if (newValue !== this._currentValue) {
|
|
207
|
-
this.setValue(newValue);
|
|
208
|
-
|
|
209
|
-
if (this.options.onChange) {
|
|
210
|
-
this.options.onChange(newValue);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* Update star appearance based on current value
|
|
217
|
-
*/
|
|
218
|
-
private _updateStars(): void {
|
|
219
|
-
if (!this.stars) return;
|
|
220
|
-
|
|
221
|
-
const roundedValue = this.options.allowHalf
|
|
222
|
-
? Math.floor(this._currentValue * 2) / 2
|
|
223
|
-
: Math.round(this._currentValue);
|
|
224
|
-
|
|
225
|
-
this.stars.forEach((star) => {
|
|
226
|
-
const starValue = Number(star.getAttribute('data-value'));
|
|
227
|
-
const isFullStar = starValue <= Math.floor(roundedValue);
|
|
228
|
-
const isHalfStar = this.options.allowHalf && (starValue - 0.5 === roundedValue);
|
|
229
|
-
|
|
230
|
-
// Remove existing classes
|
|
231
|
-
star.classList.remove('c-rating__star--full', 'c-rating__star--half');
|
|
232
|
-
|
|
233
|
-
// Add appropriate classes
|
|
234
|
-
if (isFullStar) {
|
|
235
|
-
star.classList.add('c-rating__star--full');
|
|
236
|
-
} else if (isHalfStar) {
|
|
237
|
-
star.classList.add('c-rating__star--half');
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
// Update ARIA attributes
|
|
241
|
-
star.setAttribute('aria-checked', isFullStar || isHalfStar ? 'true' : 'false');
|
|
242
|
-
});
|
|
243
|
-
|
|
244
|
-
// Update container ARIA label if read-only
|
|
245
|
-
if (this.options.readOnly) {
|
|
246
|
-
this.element.setAttribute('aria-label', `Rating: ${roundedValue} out of ${this.options.maxValue} stars`);
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
// Update data attribute
|
|
250
|
-
this.element.setAttribute('data-value', String(roundedValue));
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* Temporarily highlight stars up to a value
|
|
255
|
-
*/
|
|
256
|
-
private _highlightStars(value: number): void {
|
|
257
|
-
if (!this.stars) return;
|
|
258
|
-
|
|
259
|
-
this.stars.forEach((star) => {
|
|
260
|
-
const starValue = Number(star.getAttribute('data-value'));
|
|
261
|
-
|
|
262
|
-
// Remove existing classes
|
|
263
|
-
star.classList.remove('c-rating__star--full', 'c-rating__star--half');
|
|
264
|
-
|
|
265
|
-
// Add full class if star value is less than or equal to hovered value
|
|
266
|
-
if (starValue <= value) {
|
|
267
|
-
star.classList.add('c-rating__star--full');
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* Get current rating value
|
|
274
|
-
*/
|
|
275
|
-
public getValue(): number {
|
|
276
|
-
return this._currentValue;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* Set the rating value
|
|
281
|
-
* @param value - The new rating value
|
|
282
|
-
*/
|
|
283
|
-
public setValue(value: number): void {
|
|
284
|
-
// Clamp value between 0 and maxValue
|
|
285
|
-
const clampedValue = Math.max(0, Math.min(value, this.options.maxValue || 5));
|
|
286
|
-
|
|
287
|
-
// Update current value
|
|
288
|
-
this._currentValue = clampedValue;
|
|
289
|
-
|
|
290
|
-
// Update visual state
|
|
291
|
-
this._updateStars();
|
|
292
|
-
|
|
293
|
-
// Dispatch change event
|
|
294
|
-
this.element.dispatchEvent(new CustomEvent('rating:change', {
|
|
295
|
-
bubbles: true,
|
|
296
|
-
detail: { value: clampedValue }
|
|
297
|
-
}));
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* Update component options
|
|
302
|
-
* @param options Partial options to update
|
|
303
|
-
*/
|
|
304
|
-
public updateOptions(options: Partial<RatingOptions>): void {
|
|
305
|
-
// Update options
|
|
306
|
-
this.options = { ...this.options, ...options };
|
|
307
|
-
|
|
308
|
-
// Re-initialize component with new options
|
|
309
|
-
this._init();
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* Destroy the rating component and remove event listeners
|
|
314
|
-
*/
|
|
315
|
-
public destroy(): void {
|
|
316
|
-
if (this.stars) {
|
|
317
|
-
// Remove event listeners from stars
|
|
318
|
-
this.stars.forEach((star) => {
|
|
319
|
-
star.removeEventListener('mouseenter', this._boundHandleMouseEnter);
|
|
320
|
-
star.removeEventListener('click', this._boundHandleClick);
|
|
321
|
-
star.removeEventListener('keydown', this._boundHandleKeyDown);
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
// Remove event listener from container
|
|
326
|
-
this.element.removeEventListener('mouseleave', this._boundHandleMouseLeave);
|
|
327
|
-
|
|
328
|
-
// Remove reference from element
|
|
329
|
-
delete (this.element as any)._rating;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import Rating from './index';
|
|
2
|
-
// RatingOptions is used in other functions in this file
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Event handlers and utility functions for Rating component
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Handle keyboard navigation for rating stars
|
|
10
|
-
* @param event Keyboard event
|
|
11
|
-
* @param container Rating container element
|
|
12
|
-
*/
|
|
13
|
-
export function handleKeyboardNavigation(event: KeyboardEvent, container: HTMLElement): void {
|
|
14
|
-
if (!container) return;
|
|
15
|
-
|
|
16
|
-
const stars = container.querySelectorAll<HTMLElement>('.c-rating__star');
|
|
17
|
-
if (!stars.length) return;
|
|
18
|
-
|
|
19
|
-
const currentIndex = Array.from(stars).findIndex(item => item === document.activeElement);
|
|
20
|
-
let nextIndex = -1;
|
|
21
|
-
|
|
22
|
-
switch (event.key) {
|
|
23
|
-
case 'ArrowRight':
|
|
24
|
-
case 'ArrowUp':
|
|
25
|
-
event.preventDefault();
|
|
26
|
-
nextIndex = currentIndex < stars.length - 1 ? currentIndex + 1 : 0;
|
|
27
|
-
break;
|
|
28
|
-
|
|
29
|
-
case 'ArrowLeft':
|
|
30
|
-
case 'ArrowDown':
|
|
31
|
-
event.preventDefault();
|
|
32
|
-
nextIndex = currentIndex > 0 ? currentIndex - 1 : stars.length - 1;
|
|
33
|
-
break;
|
|
34
|
-
|
|
35
|
-
case 'Home':
|
|
36
|
-
event.preventDefault();
|
|
37
|
-
nextIndex = 0;
|
|
38
|
-
break;
|
|
39
|
-
|
|
40
|
-
case 'End':
|
|
41
|
-
event.preventDefault();
|
|
42
|
-
nextIndex = stars.length - 1;
|
|
43
|
-
break;
|
|
44
|
-
|
|
45
|
-
case ' ':
|
|
46
|
-
case 'Enter':
|
|
47
|
-
event.preventDefault();
|
|
48
|
-
if (currentIndex >= 0 && stars[currentIndex]) {
|
|
49
|
-
stars[currentIndex].click();
|
|
50
|
-
}
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
if (nextIndex >= 0 && stars[nextIndex]) {
|
|
55
|
-
stars[nextIndex].focus();
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Enhance a rating with keyboard navigation
|
|
61
|
-
* @param rating Rating instance
|
|
62
|
-
*/
|
|
63
|
-
export function enhanceWithKeyboardNavigation(rating: Rating): void {
|
|
64
|
-
const element = rating.element;
|
|
65
|
-
if (!element) return;
|
|
66
|
-
|
|
67
|
-
element.addEventListener('keydown', (e: KeyboardEvent) => {
|
|
68
|
-
handleKeyboardNavigation(e, element);
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
// Make stars focusable
|
|
72
|
-
const stars = element.querySelectorAll<HTMLElement>('.c-rating__star');
|
|
73
|
-
stars.forEach(star => {
|
|
74
|
-
if (!star.hasAttribute('tabindex')) {
|
|
75
|
-
star.setAttribute('tabindex', '0');
|
|
76
|
-
}
|
|
77
|
-
star.setAttribute('role', 'button');
|
|
78
|
-
star.setAttribute('aria-label', `Rate ${Array.from(stars).indexOf(star) + 1} out of ${stars.length}`);
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Initialize ratings with data attributes
|
|
84
|
-
*/
|
|
85
|
-
export function initFromDataAttributes(): Rating[] {
|
|
86
|
-
const instances: Rating[] = [];
|
|
87
|
-
|
|
88
|
-
document.querySelectorAll('[data-rating]').forEach(element => {
|
|
89
|
-
const el = element as HTMLElement;
|
|
90
|
-
|
|
91
|
-
// Parse options from data attributes
|
|
92
|
-
const options: Record<string, any> = {};
|
|
93
|
-
|
|
94
|
-
// Value
|
|
95
|
-
if (el.dataset.value) {
|
|
96
|
-
options.value = parseFloat(el.dataset.value);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Max value
|
|
100
|
-
if (el.dataset.maxValue) {
|
|
101
|
-
options.maxValue = parseFloat(el.dataset.maxValue);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Allow half
|
|
105
|
-
if (el.dataset.allowHalf !== undefined) {
|
|
106
|
-
options.allowHalf = el.dataset.allowHalf === 'true';
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// Read only
|
|
110
|
-
if (el.dataset.readOnly !== undefined) {
|
|
111
|
-
options.readOnly = el.dataset.readOnly === 'true';
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
// Size
|
|
115
|
-
if (el.dataset.size) {
|
|
116
|
-
options.size = el.dataset.size;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// Color
|
|
120
|
-
if (el.dataset.color) {
|
|
121
|
-
options.color = el.dataset.color;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
const instance = new Rating(el, options);
|
|
125
|
-
instances.push(instance);
|
|
126
|
-
|
|
127
|
-
// Enhance with keyboard navigation
|
|
128
|
-
enhanceWithKeyboardNavigation(instance);
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
return instances;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Get a Rating instance from an element
|
|
136
|
-
* @param element Element or selector
|
|
137
|
-
*/
|
|
138
|
-
export function getInstance(element: string | HTMLElement): Rating | null {
|
|
139
|
-
const el = typeof element === 'string' ? document.querySelector(element) : element;
|
|
140
|
-
|
|
141
|
-
if (!el) return null;
|
|
142
|
-
|
|
143
|
-
// Use a stored reference if exists
|
|
144
|
-
return (el as any)._rating || null;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Dispose all Rating instances
|
|
149
|
-
*/
|
|
150
|
-
export function disposeAll(): void {
|
|
151
|
-
document.querySelectorAll('[data-rating]').forEach(element => {
|
|
152
|
-
const instance = getInstance(element as HTMLElement);
|
|
153
|
-
if (instance) {
|
|
154
|
-
instance.destroy();
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
}
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StoryFn, Meta } from '@storybook/react';
|
|
3
|
-
import { River } from './River';
|
|
4
|
-
import type { RiverProps } from './River';
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
title: 'Components/River',
|
|
8
|
-
component: River,
|
|
9
|
-
argTypes: {
|
|
10
|
-
center: {
|
|
11
|
-
control: { type: 'boolean' },
|
|
12
|
-
defaultValue: false,
|
|
13
|
-
},
|
|
14
|
-
breakout: {
|
|
15
|
-
control: { type: 'boolean' },
|
|
16
|
-
defaultValue: false,
|
|
17
|
-
},
|
|
18
|
-
reverse: {
|
|
19
|
-
control: { type: 'boolean' },
|
|
20
|
-
defaultValue: false,
|
|
21
|
-
},
|
|
22
|
-
backgroundImageSrc: {
|
|
23
|
-
control: { type: 'text' },
|
|
24
|
-
description: 'Background image source URL',
|
|
25
|
-
},
|
|
26
|
-
showOverlay: {
|
|
27
|
-
control: { type: 'boolean' },
|
|
28
|
-
defaultValue: true,
|
|
29
|
-
description: 'Show background overlay',
|
|
30
|
-
},
|
|
31
|
-
contentWidth: {
|
|
32
|
-
control: { type: 'text' },
|
|
33
|
-
description: 'Custom width for the river content (e.g., "800px", "50%")',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
} as Meta<typeof River>;
|
|
37
|
-
|
|
38
|
-
const Template: StoryFn<typeof River> = (args) => (
|
|
39
|
-
<div style={{ padding: '0', maxWidth: '100%' }}>
|
|
40
|
-
<River {...args} />
|
|
41
|
-
</div>
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
// Default river (image left, content right)
|
|
45
|
-
export const Default = Template.bind({});
|
|
46
|
-
Default.args = {
|
|
47
|
-
title: 'Streamline Your Workflow',
|
|
48
|
-
text: 'Our platform provides a comprehensive suite of tools to optimize your workflow and increase productivity. With intuitive interfaces and powerful features, you can accomplish more in less time.',
|
|
49
|
-
actions: <a href="#" className="c-btn c-btn--primary">Get Started</a>,
|
|
50
|
-
imageSrc: 'https://unsplash.it/g/500/300',
|
|
51
|
-
imageAlt: 'Workflow diagram',
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
// Reverse layout (content left, image right)
|
|
55
|
-
export const Reverse = Template.bind({});
|
|
56
|
-
Reverse.args = {
|
|
57
|
-
...Default.args,
|
|
58
|
-
title: 'Data-Driven Insights',
|
|
59
|
-
text: 'Harness the power of analytics to make informed decisions. Our advanced data visualization tools help you understand trends and identify opportunities for growth.',
|
|
60
|
-
reverse: true,
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
// Center layout (content centered)
|
|
64
|
-
export const Centered = Template.bind({});
|
|
65
|
-
Centered.args = {
|
|
66
|
-
...Default.args,
|
|
67
|
-
title: 'Award-Winning Support',
|
|
68
|
-
text: 'Our dedicated team of experts is available around the clock to provide assistance and ensure your success. Experience the highest level of customer service.',
|
|
69
|
-
center: true,
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
// Breakout layout (full width)
|
|
73
|
-
export const Breakout = Template.bind({});
|
|
74
|
-
Breakout.args = {
|
|
75
|
-
...Default.args,
|
|
76
|
-
title: 'Scale With Confidence',
|
|
77
|
-
text: 'Our robust infrastructure adapts to your needs, whether you\'re a small business or a global enterprise. Grow your operations without worrying about technical limitations.',
|
|
78
|
-
breakout: true,
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
// Multi-paragraph text
|
|
82
|
-
export const MultiParagraph = Template.bind({});
|
|
83
|
-
MultiParagraph.args = {
|
|
84
|
-
...Default.args,
|
|
85
|
-
title: 'Revolutionize Your Approach',
|
|
86
|
-
text: [
|
|
87
|
-
'Our innovative solutions are designed to transform how you work, making complex tasks simple and intuitive.',
|
|
88
|
-
'By focusing on user experience and practical functionality, we\'ve created tools that adapt to your workflow rather than forcing you to adapt to them.',
|
|
89
|
-
'Experience the difference that thoughtful design and powerful technology can make in your daily operations.'
|
|
90
|
-
],
|
|
91
|
-
actions: <a href="#" className="c-btn c-btn--primary">Learn More</a>,
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
// Content columns
|
|
95
|
-
export const ContentColumns = Template.bind({});
|
|
96
|
-
ContentColumns.args = {
|
|
97
|
-
contentColumns: [
|
|
98
|
-
{
|
|
99
|
-
type: 'title',
|
|
100
|
-
content: <h2 className="c-river__title">Flexible Content Layout</h2>,
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
type: 'text',
|
|
104
|
-
content: (
|
|
105
|
-
<div>
|
|
106
|
-
<p className="c-river__text">Use content columns to create custom layouts with different types of content. This approach gives you more control over the structure and presentation of your information.</p>
|
|
107
|
-
<p className="c-river__text">Perfect for featuring important statistics, quotes, or highlighting key information alongside your main content.</p>
|
|
108
|
-
</div>
|
|
109
|
-
),
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
actions: <a href="#" className="c-btn c-btn--primary">Explore Options</a>,
|
|
113
|
-
imageSrc: 'https://unsplash.it/g/500/300',
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
// Custom title styling
|
|
117
|
-
export const CustomTitle = Template.bind({});
|
|
118
|
-
CustomTitle.args = {
|
|
119
|
-
title: <h1 className="c-river__title u-text-gradient">Custom Title with Gradient</h1>,
|
|
120
|
-
text: 'The sun had set, leaving the sky painted in shades of orange and pink as the stars twinkled above. The air was filled with the sound of crickets and the rustle of leaves in the gentle breeze.',
|
|
121
|
-
actions: <a href="#" className="c-btn u-pl-0">Text Link <i className="icon-lux-circle"></i></a>,
|
|
122
|
-
imageSrc: 'https://unsplash.it/g/712/196',
|
|
123
|
-
imageAlt: 'Image',
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
// With background image
|
|
127
|
-
export const WithBackgroundAndContent = Template.bind({});
|
|
128
|
-
WithBackgroundAndContent.args = {
|
|
129
|
-
title: 'Build Faster Applications',
|
|
130
|
-
text: 'Our component library is designed for developers who want to create beautiful interfaces with minimal effort. With built-in TypeScript support and comprehensive documentation, you can focus on building features, not fighting with UI.',
|
|
131
|
-
actions: <a href="#" className="c-btn c-btn--light">View Documentation</a>,
|
|
132
|
-
imageSrc: 'https://unsplash.it/g/500/300',
|
|
133
|
-
backgroundImageSrc: 'https://unsplash.it/g/1920/600',
|
|
134
|
-
showOverlay: true,
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
// With custom content width
|
|
138
|
-
export const CustomContentWidth = Template.bind({});
|
|
139
|
-
CustomContentWidth.args = {
|
|
140
|
-
title: 'Powerful Developer Experience',
|
|
141
|
-
text: 'Our River component gives you complete control over your content layout. Customize content width, background images, and layouts to create engaging sections that convert visitors into customers.',
|
|
142
|
-
actions: <a href="#" className="c-btn c-btn--primary">Explore API</a>,
|
|
143
|
-
imageSrc: 'https://unsplash.it/g/500/300',
|
|
144
|
-
contentWidth: '800px',
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
// Multiple Rivers layout example
|
|
148
|
-
const MultipeRiversExample: React.FC = () => {
|
|
149
|
-
return (
|
|
150
|
-
<div style={{ display: 'flex', flexDirection: 'column', gap: '40px' }}>
|
|
151
|
-
<River
|
|
152
|
-
title="Component-Driven Development"
|
|
153
|
-
text="Build your UI from the ground up using our composable components. Each component is designed to work seamlessly with the rest of the library."
|
|
154
|
-
actions={<a href="#" className="c-btn c-btn--primary">Get Started</a>}
|
|
155
|
-
imageSrc="https://unsplash.it/g/712/196"
|
|
156
|
-
/>
|
|
157
|
-
|
|
158
|
-
<River
|
|
159
|
-
title="TypeScript First"
|
|
160
|
-
text="Every component includes full TypeScript definitions, giving you complete type safety and excellent IDE integration."
|
|
161
|
-
actions={<a href="#" className="c-btn c-btn--primary">Read Docs</a>}
|
|
162
|
-
imageSrc="https://unsplash.it/g/712/196"
|
|
163
|
-
reverse={true}
|
|
164
|
-
/>
|
|
165
|
-
|
|
166
|
-
<River
|
|
167
|
-
title="Flexible Layouts"
|
|
168
|
-
text="Create engaging content sections with various layout options. Center, reverse, or breakout - all with simple props."
|
|
169
|
-
actions={<a href="#" className="c-btn c-btn--primary">See Examples</a>}
|
|
170
|
-
imageSrc="https://unsplash.it/g/1920/320"
|
|
171
|
-
center={true}
|
|
172
|
-
/>
|
|
173
|
-
|
|
174
|
-
<River
|
|
175
|
-
title="Pixel-Perfect Design"
|
|
176
|
-
text="Our components follow a consistent design system, ensuring your application looks professional across all pages and states."
|
|
177
|
-
actions={<a href="#" className="c-btn c-btn--light">View Design System</a>}
|
|
178
|
-
backgroundImageSrc="https://unsplash.it/g/1920/600"
|
|
179
|
-
/>
|
|
180
|
-
</div>
|
|
181
|
-
);
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
export const MultipleRivers: StoryFn<typeof River> = () => <MultipeRiversExample />;
|