@shohojdhara/atomix 0.1.14 → 0.1.16
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 -5
- package/dist/css/atomix.css.map +1 -1
- package/dist/js/194.js +2 -0
- package/dist/js/194.js.map +1 -0
- package/dist/js/atomix.react.esm.js +1 -1
- package/dist/js/atomix.react.esm.js.map +1 -1
- package/dist/js/atomix.react.umd.js +2 -0
- package/dist/js/atomix.react.umd.js.map +1 -0
- package/dist/js/chunks/esm/202.ff48d27672233280e021.js +2 -0
- package/dist/js/chunks/esm/202.ff48d27672233280e021.js.map +1 -0
- package/dist/js/chunks/esm/308.f873332126eba90e5c62.js +2 -0
- package/dist/js/chunks/esm/308.f873332126eba90e5c62.js.map +1 -0
- package/dist/js/chunks/esm/54.4db919e5e4e5cc6d7c72.js +2 -0
- package/dist/js/chunks/esm/54.4db919e5e4e5cc6d7c72.js.map +1 -0
- package/dist/js/chunks/esm/619.afc5a718eff77fa423b5.js +2 -0
- package/dist/js/chunks/esm/619.afc5a718eff77fa423b5.js.map +1 -0
- package/dist/js/chunks/esm/690.a9e968c7497d61e56cdc.js +2 -0
- package/dist/js/chunks/esm/690.a9e968c7497d61e56cdc.js.map +1 -0
- package/dist/js/chunks/esm/894.f1091a4a8758c26d29e4.js +2 -0
- package/dist/js/chunks/esm/894.f1091a4a8758c26d29e4.js.map +1 -0
- package/dist/js/chunks/esm/897.561a50f7d043d42169da.js +2 -0
- package/dist/js/chunks/esm/897.561a50f7d043d42169da.js.map +1 -0
- package/dist/js/chunks/umd/202.dac7605cc555b6bda542.js +2 -0
- package/dist/js/chunks/umd/202.dac7605cc555b6bda542.js.map +1 -0
- package/dist/js/chunks/umd/308.6709979849dcbdb90c9b.js +2 -0
- package/dist/js/chunks/umd/308.6709979849dcbdb90c9b.js.map +1 -0
- package/dist/js/chunks/umd/54.403470e1f7d0ef4424a7.js +2 -0
- package/dist/js/chunks/umd/54.403470e1f7d0ef4424a7.js.map +1 -0
- package/dist/js/chunks/umd/619.fa05ea98c10270eb64c5.js +2 -0
- package/dist/js/chunks/umd/619.fa05ea98c10270eb64c5.js.map +1 -0
- package/dist/js/chunks/umd/690.aa7054d1c53e5402c2d6.js +2 -0
- package/dist/js/chunks/umd/690.aa7054d1c53e5402c2d6.js.map +1 -0
- package/dist/js/chunks/umd/894.3e1eaf0a2aadf4434390.js +2 -0
- package/dist/js/{894.atomix.react.cjs.js.map → chunks/umd/894.3e1eaf0a2aadf4434390.js.map} +1 -1
- package/dist/js/chunks/umd/897.554ea37be4453698c167.js +2 -0
- package/dist/js/chunks/umd/897.554ea37be4453698c167.js.map +1 -0
- package/dist/types/components/Accordion/Accordion.d.ts +1 -2
- package/dist/types/components/Accordion/index.d.ts +2 -1
- package/dist/types/components/AtomixLogo.d.ts +1 -1
- package/dist/types/components/Avatar/Avatar.d.ts +1 -2
- package/dist/types/components/Avatar/AvatarGroup.d.ts +3 -4
- package/dist/types/components/Avatar/index.d.ts +2 -1
- package/dist/types/components/Badge/Badge.d.ts +1 -2
- package/dist/types/components/Badge/index.d.ts +2 -1
- package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +1 -2
- package/dist/types/components/Breadcrumb/index.d.ts +1 -0
- package/dist/types/components/Button/Button.d.ts +3 -2
- package/dist/types/components/Button/index.d.ts +3 -5
- package/dist/types/components/Callout/Callout.d.ts +1 -2
- package/dist/types/components/Card/Card.d.ts +1 -2
- package/dist/types/components/Card/ElevationCard.d.ts +1 -0
- package/dist/types/components/ColorModeToggle/ColorModeToggle.d.ts +2 -4
- package/dist/types/components/Countdown/Countdown.d.ts +2 -4
- package/dist/types/components/DataTable/DataTable.d.ts +1 -2
- package/dist/types/components/DataTable/index.d.ts +3 -2
- package/dist/types/components/DatePicker/DatePicker.d.ts +2 -3
- package/dist/types/components/Dropdown/Dropdown.d.ts +7 -2
- package/dist/types/components/Dropdown/index.d.ts +1 -1
- package/dist/types/components/EdgePanel/EdgePanel.d.ts +2 -3
- package/dist/types/components/Form/Checkbox.d.ts +1 -2
- package/dist/types/components/Form/Form.d.ts +1 -2
- package/dist/types/components/Form/FormGroup.d.ts +1 -2
- package/dist/types/components/Form/Input.d.ts +1 -2
- package/dist/types/components/Form/Radio.d.ts +1 -2
- package/dist/types/components/Form/Select.d.ts +1 -2
- package/dist/types/components/Form/Textarea.d.ts +1 -2
- package/dist/types/components/Hero/Hero.d.ts +1 -2
- package/dist/types/components/Icon/Icon.d.ts +2 -4
- package/dist/types/components/List/List.d.ts +1 -2
- package/dist/types/components/Messages/Messages.d.ts +1 -2
- package/dist/types/components/Messages/index.d.ts +2 -1
- package/dist/types/components/Modal/Modal.d.ts +1 -2
- package/dist/types/components/Navbar/Menu.d.ts +1 -2
- package/dist/types/components/Navbar/Nav.d.ts +1 -2
- package/dist/types/components/Navbar/NavDropdown.d.ts +2 -0
- package/dist/types/components/Navbar/NavItem.d.ts +2 -0
- package/dist/types/components/Navbar/Navbar.d.ts +1 -2
- package/dist/types/components/Pagination/Pagination.d.ts +20 -2
- package/dist/types/components/PhotoViewer/PhotoViewer.d.ts +1 -2
- package/dist/types/components/PhotoViewer/index.d.ts +2 -1
- package/dist/types/components/Popover/Popover.d.ts +8 -2
- package/dist/types/components/ProductReview/ProductReview.d.ts +2 -4
- package/dist/types/components/ProductReview/index.d.ts +2 -1
- package/dist/types/components/Progress/Progress.d.ts +1 -2
- package/dist/types/components/Rating/Rating.d.ts +1 -2
- package/dist/types/components/River/River.d.ts +1 -2
- package/dist/types/components/SectionIntro/SectionIntro.d.ts +2 -4
- package/dist/types/components/SectionIntro/index.d.ts +1 -2
- package/dist/types/components/Spinner/Spinner.d.ts +1 -2
- package/dist/types/components/Steps/Steps.d.ts +3 -5
- package/dist/types/components/Steps/index.d.ts +1 -2
- package/dist/types/components/Tab/Tab.d.ts +3 -5
- package/dist/types/components/Testimonial/Testimonial.d.ts +3 -5
- package/dist/types/components/Testimonial/index.d.ts +1 -2
- package/dist/types/components/Todo/Todo.d.ts +1 -2
- package/dist/types/components/Toggle/Toggle.d.ts +2 -4
- package/dist/types/components/Tooltip/Tooltip.d.ts +2 -4
- package/dist/types/components/Tooltip/index.d.ts +1 -1
- package/dist/types/components/Upload/Upload.d.ts +2 -4
- package/dist/types/components/Upload/index.d.ts +1 -2
- package/dist/types/components/index.d.ts +45 -78
- package/dist/types/index.d.ts +21 -53
- package/dist/types/layouts/index.d.ts +2 -11
- package/dist/types/lib/composables/index.d.ts +21 -13
- package/dist/types/lib/composables/useCheckbox.d.ts +1 -1
- package/dist/types/lib/composables/useDatePicker.d.ts +4 -4
- package/dist/types/lib/composables/useEdgePanel.d.ts +2 -2
- package/dist/types/lib/composables/usePhotoViewer.d.ts +2 -2
- package/dist/types/lib/index.d.ts +6 -8
- package/dist/types/lib/utils/index.d.ts +1 -0
- package/package.json +60 -36
- package/src/components/Accordion/Accordion.tsx +2 -3
- package/src/components/Accordion/index.ts +2 -1
- package/src/components/AtomixLogo/index.ts +0 -0
- package/src/components/AtomixLogo.tsx +3 -1
- package/src/components/Avatar/Avatar.stories.tsx +1 -0
- package/src/components/Avatar/Avatar.tsx +3 -9
- package/src/components/Avatar/AvatarGroup.tsx +3 -8
- package/src/components/Avatar/index.ts +2 -1
- package/src/components/Badge/Badge.tsx +3 -8
- package/src/components/Badge/index.ts +3 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +2 -7
- package/src/components/Breadcrumb/index.ts +1 -0
- package/src/components/Button/Button.tsx +5 -2
- package/src/components/Button/index.ts +3 -6
- package/src/components/Callout/Callout.tsx +3 -8
- package/src/components/Callout/scripts/bundle.ts +2 -12
- package/src/components/Card/Card.tsx +3 -8
- package/src/components/Card/ElevationCard.tsx +4 -0
- package/src/components/Card/scripts/bundle.ts +0 -7
- package/src/components/ColorModeToggle/ColorModeToggle.tsx +3 -7
- package/src/components/Countdown/Countdown.tsx +9 -17
- package/src/components/DataTable/DataTable.tsx +9 -14
- package/src/components/DataTable/index.ts +3 -2
- package/src/components/DataTable/scripts/bundle.ts +5 -13
- package/src/components/DatePicker/DatePicker.tsx +3 -5
- package/src/components/Dropdown/Dropdown.tsx +5 -10
- package/src/components/Dropdown/index.ts +2 -4
- package/src/components/EdgePanel/EdgePanel.tsx +4 -10
- package/src/components/Form/Checkbox.tsx +2 -7
- package/src/components/Form/Form.tsx +2 -7
- package/src/components/Form/FormGroup.tsx +2 -7
- package/src/components/Form/Input.tsx +2 -7
- package/src/components/Form/Radio.tsx +2 -7
- package/src/components/Form/Select.tsx +2 -6
- package/src/components/Form/Textarea.tsx +2 -7
- package/src/components/Hero/Hero.tsx +2 -7
- package/src/components/Icon/Icon.tsx +3 -10
- package/src/components/List/List.tsx +2 -7
- package/src/components/Messages/Messages.tsx +4 -9
- package/src/components/Messages/index.ts +2 -1
- package/src/components/Messages/scripts/bundle.ts +3 -3
- package/src/components/Modal/Modal.tsx +3 -10
- package/src/components/Navbar/MegaMenu.tsx +14 -14
- package/src/components/Navbar/Menu.tsx +14 -21
- package/src/components/Navbar/Nav.tsx +5 -9
- package/src/components/Navbar/NavDropdown.tsx +13 -7
- package/src/components/Navbar/NavItem.tsx +15 -10
- package/src/components/Navbar/Navbar.tsx +6 -11
- package/src/components/Pagination/Pagination.tsx +4 -10
- package/src/components/PhotoViewer/PhotoViewer.tsx +2 -7
- package/src/components/PhotoViewer/PhotoViewerImage.tsx +1 -1
- package/src/components/PhotoViewer/PhotoViewerNavigation.tsx +1 -1
- package/src/components/PhotoViewer/README.md +0 -0
- package/src/components/PhotoViewer/examples/ImageGallery.tsx +4 -3
- package/src/components/PhotoViewer/examples/SimpleGallery.tsx +1 -1
- package/src/components/PhotoViewer/index.ts +2 -1
- package/src/components/PhotoViewer/scripts/bundle.ts +2 -9
- package/src/components/Popover/Popover.tsx +8 -13
- package/src/components/Popover/scripts/index.ts +6 -1
- package/src/components/ProductReview/ProductReview.tsx +6 -30
- package/src/components/ProductReview/index.ts +2 -1
- package/src/components/Progress/Progress.tsx +1 -8
- package/src/components/Rating/Rating.tsx +3 -25
- package/src/components/Rating/scripts/ratingInteractions.ts +3 -3
- package/src/components/River/River.tsx +4 -9
- package/src/components/SectionIntro/SectionIntro.tsx +3 -10
- package/src/components/SectionIntro/index.ts +1 -2
- package/src/components/Spinner/Spinner.tsx +2 -6
- package/src/components/Steps/Steps.tsx +5 -12
- package/src/components/Steps/index.ts +1 -2
- package/src/components/Tab/Tab.tsx +4 -10
- package/src/components/Testimonial/Testimonial.tsx +4 -10
- package/src/components/Testimonial/index.ts +1 -2
- package/src/components/Todo/Todo.tsx +4 -9
- package/src/components/Todo/scripts/bundle.ts +0 -7
- package/src/components/Toggle/Toggle.tsx +4 -10
- package/src/components/Toggle/scripts/bundle.ts +0 -7
- package/src/components/Tooltip/Tooltip.tsx +3 -10
- package/src/components/Tooltip/index.ts +1 -3
- package/src/components/Upload/Upload.tsx +9 -15
- package/src/components/Upload/index.ts +1 -2
- package/src/components/index.ts +44 -79
- package/src/docs/atomix-component-guidelines.mdx +0 -0
- package/src/index.ts +15 -12
- package/src/layouts/MasonryGrid/MasonryGrid.stories.tsx +2 -1
- package/src/layouts/MasonryGrid/MasonryGrid.tsx +5 -4
- package/src/lib/README.md +0 -0
- package/src/lib/composables/useDropdown.ts +3 -3
- package/src/lib/composables/useNavbar.ts +1 -1
- package/src/lib/composables/usePhotoViewer.ts +7 -5
- package/src/lib/composables/usePopover.ts +15 -15
- package/src/styles/01-settings/_settings.typography.scss +6 -3
- package/src/styles/03-generic/_generic.fonts.scss +20 -17
- package/css.d.ts +0 -10
- package/dist/css/atomix.min.css +0 -6
- package/dist/css/atomix.min.css.map +0 -1
- package/dist/fonts/0120456a11178b96ab66.woff +0 -0
- package/dist/fonts/0368bc04e1a895283091.woff +0 -0
- package/dist/fonts/0c5c9ce9dec531aa6b29.ttf +0 -0
- package/dist/fonts/0f355f1a3d693807d51c.ttf +0 -0
- package/dist/fonts/1ec349085efa62caa303.woff2 +0 -0
- package/dist/fonts/20ab2fe497fc18409e34.woff +0 -0
- package/dist/fonts/253918dde62b7326497e.woff +0 -0
- package/dist/fonts/285bdad411fbc4cec20d.ttf +0 -0
- package/dist/fonts/2f638dd07520c36c8d6e.woff +0 -0
- package/dist/fonts/30c9e80ac7b5699e21cc.woff2 +0 -0
- package/dist/fonts/33311918c95bc02cfcb1.woff +0 -0
- package/dist/fonts/35321e45ab1847c10daa.ttf +0 -0
- package/dist/fonts/3d2344627a22c58c9273.woff +0 -0
- package/dist/fonts/413b33b6d0cbd31f8714.woff2 +0 -0
- package/dist/fonts/4cb90386814103ea6b7f.woff2 +0 -0
- package/dist/fonts/4ee1c663781c9449f03f.woff2 +0 -0
- package/dist/fonts/4f4da6c0a5ff8b4ed6c6.eot +0 -0
- package/dist/fonts/576bbf31cdb2297b27b2.ttf +0 -0
- package/dist/fonts/585df04788e75f68f0af.eot +0 -0
- package/dist/fonts/5b5bd27f87c5700e93ad.ttf +0 -0
- package/dist/fonts/5bb2f179b9eb3479b077.eot +0 -0
- package/dist/fonts/5ff5446a28faf327d927.woff +0 -0
- package/dist/fonts/6192a85735f85ab06ed3.eot +0 -0
- package/dist/fonts/61f88f014cff75e8080e.woff2 +0 -0
- package/dist/fonts/6425aa0b60538ee25c68.woff +0 -0
- package/dist/fonts/6751f7983394e890189f.eot +0 -0
- package/dist/fonts/6960ee84f2d467663c34.ttf +0 -0
- package/dist/fonts/70685e4ff0b8497285e5.woff2 +0 -0
- package/dist/fonts/757b7e91c3555d312bbc.woff +0 -0
- package/dist/fonts/7a4ea74d7f43e6ad17d8.eot +0 -0
- package/dist/fonts/8109c3cad37ea32e4d32.ttf +0 -0
- package/dist/fonts/82a7a6000e2c2ab2ec5c.woff2 +0 -0
- package/dist/fonts/83ef74d7fa1b36b3afd2.ttf +0 -0
- package/dist/fonts/877cf3e897d614d4e5cf.ttf +0 -0
- package/dist/fonts/88bb1a07aeaed7b24844.eot +0 -0
- package/dist/fonts/9393172982d357731e53.eot +0 -0
- package/dist/fonts/945eac608d80a8166c05.eot +0 -0
- package/dist/fonts/9b837d45dc4c53f310f4.woff2 +0 -0
- package/dist/fonts/a5dbd3668c70794eda4d.ttf +0 -0
- package/dist/fonts/a74f60429e1436a0a540.woff +0 -0
- package/dist/fonts/bbc297fd58abb3c9f79a.ttf +0 -0
- package/dist/fonts/bbefaa1b3e495e24cae7.woff2 +0 -0
- package/dist/fonts/c0c00fe55a6c5b4bdcc3.ttf +0 -0
- package/dist/fonts/c7508e4a1d238d320671.woff2 +0 -0
- package/dist/fonts/cb9059c1418f52b5cfb2.woff +0 -0
- package/dist/fonts/d11e8912a7532aae2979.eot +0 -0
- package/dist/fonts/d852d165ab8f7b51e9d9.woff +0 -0
- package/dist/fonts/de48437d7037bf4c1dd1.eot +0 -0
- package/dist/fonts/df470b39be2d4a1f1ce1.woff +0 -0
- package/dist/fonts/f2af4f9e9e7805d25995.woff2 +0 -0
- package/dist/fonts/f79a05c25b9f6148e22c.eot +0 -0
- package/dist/fonts/fcaafb0a12fec09b1f45.woff2 +0 -0
- package/dist/fonts/fcefb320a4d49f66bb12.eot +0 -0
- package/dist/fonts/fd66d70b84764f279e6a.ttf +0 -0
- package/dist/fonts/fdf78119a6d3da284d71.woff2 +0 -0
- package/dist/fonts/ff75ad5d1cd4cbfb2485.eot +0 -0
- package/dist/js/202.atomix.react.cjs.js +0 -2
- package/dist/js/202.atomix.react.cjs.js.map +0 -1
- package/dist/js/202.atomix.react.esm.js +0 -2
- package/dist/js/202.atomix.react.esm.js.map +0 -1
- package/dist/js/202.atomix.react.js +0 -2
- package/dist/js/202.atomix.react.js.map +0 -1
- package/dist/js/308.atomix.react.cjs.js +0 -2
- package/dist/js/308.atomix.react.cjs.js.map +0 -1
- package/dist/js/308.atomix.react.esm.js +0 -2
- package/dist/js/308.atomix.react.esm.js.map +0 -1
- package/dist/js/308.atomix.react.js +0 -2
- package/dist/js/308.atomix.react.js.map +0 -1
- package/dist/js/34.atomix.react.cjs.js +0 -2
- package/dist/js/34.atomix.react.cjs.js.map +0 -1
- package/dist/js/34.atomix.react.esm.js +0 -2
- package/dist/js/34.atomix.react.esm.js.map +0 -1
- package/dist/js/34.atomix.react.js +0 -2
- package/dist/js/34.atomix.react.js.map +0 -1
- package/dist/js/471.atomix.react.cjs.js +0 -2
- package/dist/js/471.atomix.react.cjs.js.map +0 -1
- package/dist/js/471.atomix.react.esm.js +0 -2
- package/dist/js/471.atomix.react.esm.js.map +0 -1
- package/dist/js/471.atomix.react.js +0 -2
- package/dist/js/471.atomix.react.js.map +0 -1
- package/dist/js/54.atomix.react.cjs.js +0 -2
- package/dist/js/54.atomix.react.cjs.js.map +0 -1
- package/dist/js/54.atomix.react.esm.js +0 -2
- package/dist/js/54.atomix.react.esm.js.map +0 -1
- package/dist/js/54.atomix.react.js +0 -2
- package/dist/js/54.atomix.react.js.map +0 -1
- package/dist/js/619.atomix.react.cjs.js +0 -2
- package/dist/js/619.atomix.react.cjs.js.map +0 -1
- package/dist/js/619.atomix.react.esm.js +0 -2
- package/dist/js/619.atomix.react.esm.js.map +0 -1
- package/dist/js/619.atomix.react.js +0 -2
- package/dist/js/619.atomix.react.js.map +0 -1
- package/dist/js/690.atomix.react.cjs.js +0 -2
- package/dist/js/690.atomix.react.cjs.js.map +0 -1
- package/dist/js/690.atomix.react.esm.js +0 -2
- package/dist/js/690.atomix.react.esm.js.map +0 -1
- package/dist/js/690.atomix.react.js +0 -2
- package/dist/js/690.atomix.react.js.map +0 -1
- package/dist/js/894.atomix.react.cjs.js +0 -2
- package/dist/js/894.atomix.react.esm.js +0 -2
- package/dist/js/894.atomix.react.esm.js.map +0 -1
- package/dist/js/894.atomix.react.js +0 -2
- package/dist/js/894.atomix.react.js.map +0 -1
- package/dist/js/897.atomix.react.cjs.js +0 -2
- package/dist/js/897.atomix.react.cjs.js.map +0 -1
- package/dist/js/897.atomix.react.esm.js +0 -2
- package/dist/js/897.atomix.react.esm.js.map +0 -1
- package/dist/js/897.atomix.react.js +0 -2
- package/dist/js/897.atomix.react.js.map +0 -1
- package/dist/js/atomix.react.cjs.js +0 -2
- package/dist/js/atomix.react.cjs.js.map +0 -1
- package/dist/js/atomix.react.js +0 -2
- package/dist/js/atomix.react.js.map +0 -1
- package/dist/js/main.js +0 -0
- package/dist/js/minified.js +0 -0
- package/dist/types/components/Accordion/scripts/accordionInteractions.d.ts +0 -19
- package/dist/types/components/Accordion/scripts/index.d.ts +0 -100
- package/dist/types/components/Avatar/scripts/index.d.ts +0 -105
- package/dist/types/components/Breadcrumb/scripts/breadcrumb.d.ts +0 -43
- package/dist/types/components/Breadcrumb/scripts/index.d.ts +0 -4
- package/dist/types/components/Button/scripts/buttonInteractions.d.ts +0 -20
- package/dist/types/components/Button/scripts/index.d.ts +0 -1
- package/dist/types/components/Card/scripts/index.d.ts +0 -80
- package/dist/types/components/Countdown/scripts/index.d.ts +0 -71
- package/dist/types/components/DataTable/scripts/index.d.ts +0 -174
- package/dist/types/components/DatePicker/scripts/componentInteractions.d.ts +0 -28
- package/dist/types/components/DatePicker/scripts/index.d.ts +0 -153
- package/dist/types/components/Dropdown/scripts/componentInteractions.d.ts +0 -26
- package/dist/types/components/Dropdown/scripts/index.d.ts +0 -114
- package/dist/types/components/EdgePanel/scripts/edgePanelInteractions.d.ts +0 -35
- package/dist/types/components/EdgePanel/scripts/index.d.ts +0 -126
- package/dist/types/components/Hero/scripts/heroInteractions.d.ts +0 -29
- package/dist/types/components/Hero/scripts/index.d.ts +0 -47
- package/dist/types/components/Modal/scripts/index.d.ts +0 -83
- package/dist/types/components/Modal/scripts/modalInteractions.d.ts +0 -28
- package/dist/types/components/Pagination/scripts/index.d.ts +0 -52
- package/dist/types/components/ProductReview/scripts/bundle.d.ts +0 -2
- package/dist/types/components/ProductReview/scripts/componentInteractions.d.ts +0 -43
- package/dist/types/components/Rating/scripts/bundle.d.ts +0 -3
- package/dist/types/components/Rating/scripts/index.d.ts +0 -74
- package/dist/types/components/Rating/scripts/ratingInteractions.d.ts +0 -28
- package/dist/types/components/Todo/scripts/index.d.ts +0 -115
- package/dist/types/components/Todo/scripts/todoInteractions.d.ts +0 -38
- package/dist/types/components/Tooltip/scripts/tooltipInteractions.d.ts +0 -23
- package/dist/types/htmlComponentsEntry.d.ts +0 -160
- package/src/components/Badge/index.tsx +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef, useEffect, useState } from 'react';
|
|
2
2
|
import { UPLOAD } from '../../lib/constants/components';
|
|
3
3
|
|
|
4
|
-
interface UploadProps {
|
|
4
|
+
export interface UploadProps {
|
|
5
5
|
/**
|
|
6
6
|
* Whether the upload component is disabled
|
|
7
7
|
*/
|
|
@@ -81,7 +81,7 @@ type UploadStatus = 'idle' | 'loading' | 'success' | 'error';
|
|
|
81
81
|
/**
|
|
82
82
|
* Upload component for file uploads with drag and drop
|
|
83
83
|
*/
|
|
84
|
-
const Upload: React.FC<UploadProps> = ({
|
|
84
|
+
export const Upload: React.FC<UploadProps> = ({
|
|
85
85
|
disabled = false,
|
|
86
86
|
maxSizeInMB = 5,
|
|
87
87
|
acceptedFileTypes = ['application/pdf', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'image/jpeg', 'image/png'],
|
|
@@ -112,7 +112,7 @@ const Upload: React.FC<UploadProps> = ({
|
|
|
112
112
|
|
|
113
113
|
useEffect(() => {
|
|
114
114
|
// Only run on client-side
|
|
115
|
-
if (typeof window === 'undefined' || !uploadRef.current) return;
|
|
115
|
+
if (typeof window === 'undefined' || !uploadRef.current) return undefined;
|
|
116
116
|
|
|
117
117
|
// Dynamically import the upload script to avoid server-side rendering issues
|
|
118
118
|
import('./scripts').then(({ default: UploadClass }) => {
|
|
@@ -223,13 +223,15 @@ const Upload: React.FC<UploadProps> = ({
|
|
|
223
223
|
|
|
224
224
|
// Notify about file selection
|
|
225
225
|
if (validFiles.length && onFileSelect) {
|
|
226
|
-
onFileSelect(validFiles);
|
|
226
|
+
onFileSelect(validFiles as File[]);
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
// Process the first valid file
|
|
230
230
|
if (validFiles.length) {
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
setCurrentFile(validFiles[0] || null);
|
|
232
|
+
if (validFiles[0]) {
|
|
233
|
+
simulateUpload(validFiles[0]);
|
|
234
|
+
}
|
|
233
235
|
}
|
|
234
236
|
};
|
|
235
237
|
|
|
@@ -401,13 +403,5 @@ const Upload: React.FC<UploadProps> = ({
|
|
|
401
403
|
);
|
|
402
404
|
};
|
|
403
405
|
|
|
404
|
-
export type { UploadProps };
|
|
405
|
-
|
|
406
|
-
// Set display name for debugging
|
|
407
406
|
Upload.displayName = 'Upload';
|
|
408
|
-
|
|
409
|
-
// Default export (primary)
|
|
410
|
-
export default Upload;
|
|
411
|
-
|
|
412
|
-
// Named export for compatibility
|
|
413
|
-
export { Upload };
|
|
407
|
+
export default Upload;
|
package/src/components/index.ts
CHANGED
|
@@ -1,153 +1,118 @@
|
|
|
1
1
|
// Components Index - Explicit exports for better tree-shaking and compatibility
|
|
2
2
|
|
|
3
3
|
// Accordion
|
|
4
|
-
export {
|
|
5
|
-
export type { AccordionProps } from './Accordion/Accordion';
|
|
4
|
+
export { Accordion, type AccordionProps } from './Accordion/Accordion';
|
|
6
5
|
|
|
7
6
|
// Avatar
|
|
8
|
-
export {
|
|
9
|
-
|
|
7
|
+
export { Avatar, type AvatarProps } from './Avatar/Avatar';
|
|
8
|
+
|
|
9
|
+
// AvatarGroup
|
|
10
|
+
export { AvatarGroup, type AvatarGroupProps } from './Avatar/AvatarGroup';
|
|
10
11
|
|
|
11
12
|
// Badge
|
|
12
|
-
export {
|
|
13
|
-
export type { BadgeProps } from './Badge/Badge';
|
|
13
|
+
export { Badge, type BadgeProps } from './Badge/Badge';
|
|
14
14
|
|
|
15
15
|
// Breadcrumb
|
|
16
|
-
export {
|
|
17
|
-
export type { BreadcrumbProps } from './Breadcrumb/Breadcrumb';
|
|
16
|
+
export { Breadcrumb, type BreadcrumbProps } from './Breadcrumb/Breadcrumb';
|
|
18
17
|
|
|
19
18
|
// Button
|
|
20
|
-
export {
|
|
21
|
-
export type { ButtonProps } from './Button';
|
|
19
|
+
export { Button, type ButtonProps } from './Button/Button';
|
|
22
20
|
|
|
23
21
|
// Callout
|
|
24
|
-
export {
|
|
25
|
-
export type { CalloutProps } from './Callout/Callout';
|
|
22
|
+
export { Callout, type CalloutProps } from './Callout/Callout';
|
|
26
23
|
|
|
27
24
|
// Card
|
|
28
|
-
export {
|
|
29
|
-
export type { CardProps } from './Card/Card';
|
|
25
|
+
export { Card, type CardProps } from './Card/Card';
|
|
30
26
|
|
|
31
27
|
// ColorModeToggle
|
|
32
|
-
export {
|
|
33
|
-
export type { ColorModeToggleProps } from './ColorModeToggle/ColorModeToggle';
|
|
28
|
+
export { ColorModeToggle, type ColorModeToggleProps } from './ColorModeToggle/ColorModeToggle';
|
|
34
29
|
|
|
35
30
|
// Countdown
|
|
36
|
-
export {
|
|
37
|
-
export type { CountdownProps } from './Countdown/Countdown';
|
|
31
|
+
export { Countdown, type CountdownProps } from './Countdown/Countdown';
|
|
38
32
|
|
|
39
33
|
// DataTable
|
|
40
|
-
export {
|
|
41
|
-
export type { DataTableProps } from './DataTable/DataTable';
|
|
34
|
+
export { DataTable, type DataTableProps } from './DataTable/DataTable';
|
|
42
35
|
|
|
43
36
|
// DatePicker
|
|
44
|
-
export {
|
|
45
|
-
export type { DatePickerProps } from './DatePicker/DatePicker';
|
|
37
|
+
export { DatePicker, type DatePickerProps } from './DatePicker/DatePicker';
|
|
46
38
|
|
|
47
39
|
// Dropdown
|
|
48
|
-
export {
|
|
49
|
-
export type { DropdownProps } from './Dropdown/Dropdown';
|
|
40
|
+
export { Dropdown, type DropdownProps } from './Dropdown/Dropdown';
|
|
50
41
|
|
|
51
42
|
// EdgePanel
|
|
52
|
-
export {
|
|
53
|
-
export type { EdgePanelProps } from './EdgePanel/EdgePanel';
|
|
43
|
+
export { EdgePanel, type EdgePanelProps } from './EdgePanel/EdgePanel';
|
|
54
44
|
|
|
55
45
|
// Form components - you might want to break these down further
|
|
56
|
-
export {
|
|
57
|
-
export {
|
|
58
|
-
export {
|
|
59
|
-
export {
|
|
60
|
-
export {
|
|
61
|
-
export {
|
|
46
|
+
export { Form, type FormProps } from './Form/Form';
|
|
47
|
+
export { Input, type InputProps } from './Form/Input';
|
|
48
|
+
export { Textarea, type TextareaProps } from './Form/Textarea';
|
|
49
|
+
export { Select, type SelectProps } from './Form/Select';
|
|
50
|
+
export { Checkbox, type CheckboxProps } from './Form/Checkbox';
|
|
51
|
+
export { Radio, type RadioProps } from './Form/Radio';
|
|
62
52
|
|
|
63
53
|
// Hero
|
|
64
|
-
export {
|
|
65
|
-
export type { HeroProps } from './Hero/Hero';
|
|
54
|
+
export { Hero, type HeroProps } from './Hero/Hero';
|
|
66
55
|
|
|
67
56
|
// Icon
|
|
68
|
-
export {
|
|
69
|
-
export type { IconProps } from './Icon/Icon';
|
|
57
|
+
export { Icon, type IconProps } from './Icon/Icon';
|
|
70
58
|
|
|
71
59
|
// List
|
|
72
|
-
export {
|
|
73
|
-
export type { ListProps } from './List/List';
|
|
60
|
+
export { List, type ListProps } from './List/List';
|
|
74
61
|
|
|
75
62
|
// Messages
|
|
76
|
-
export {
|
|
77
|
-
export type { MessagesProps } from './Messages/Messages';
|
|
63
|
+
export { Messages, type MessagesProps } from './Messages/Messages';
|
|
78
64
|
|
|
79
65
|
// Modal
|
|
80
|
-
export {
|
|
81
|
-
export type { ModalProps } from './Modal/Modal';
|
|
66
|
+
export { Modal, type ModalProps } from './Modal/Modal';
|
|
82
67
|
|
|
83
68
|
// Navbar
|
|
84
|
-
export {
|
|
85
|
-
export type { NavbarProps } from './Navbar/Navbar';
|
|
69
|
+
export { Navbar, type NavbarProps } from './Navbar/Navbar';
|
|
86
70
|
|
|
87
71
|
// Pagination
|
|
88
|
-
export {
|
|
89
|
-
export type { PaginationProps } from './Pagination/Pagination';
|
|
72
|
+
export { Pagination, type PaginationProps } from './Pagination/Pagination';
|
|
90
73
|
|
|
91
74
|
// PhotoViewer
|
|
92
|
-
export {
|
|
93
|
-
export type { PhotoViewerProps } from './PhotoViewer/PhotoViewer';
|
|
75
|
+
export { PhotoViewer, type PhotoViewerProps } from './PhotoViewer/PhotoViewer';
|
|
94
76
|
|
|
95
77
|
// Popover
|
|
96
|
-
export {
|
|
97
|
-
export type { PopoverProps } from './Popover/Popover';
|
|
78
|
+
export { Popover, type PopoverProps } from './Popover/Popover';
|
|
98
79
|
|
|
99
80
|
// ProductReview
|
|
100
|
-
export {
|
|
101
|
-
export type { ProductReviewProps } from './ProductReview/ProductReview';
|
|
81
|
+
export { ProductReview, type ProductReviewProps } from './ProductReview/ProductReview';
|
|
102
82
|
|
|
103
83
|
// Progress
|
|
104
|
-
export {
|
|
105
|
-
export type { ProgressProps } from './Progress/Progress';
|
|
84
|
+
export { Progress, type ProgressProps } from './Progress/Progress';
|
|
106
85
|
|
|
107
86
|
// Rating
|
|
108
|
-
export {
|
|
109
|
-
export type { RatingProps } from './Rating/Rating';
|
|
87
|
+
export { Rating, type RatingProps } from './Rating/Rating';
|
|
110
88
|
|
|
111
89
|
// River
|
|
112
|
-
export {
|
|
113
|
-
export type { RiverProps } from './River/River';
|
|
90
|
+
export { River, type RiverProps } from './River/River';
|
|
114
91
|
|
|
115
92
|
// SectionIntro
|
|
116
|
-
export {
|
|
117
|
-
export type { SectionIntroProps } from './SectionIntro/SectionIntro';
|
|
93
|
+
export { SectionIntro, type SectionIntroProps } from './SectionIntro/SectionIntro';
|
|
118
94
|
|
|
119
95
|
// Spinner
|
|
120
|
-
export {
|
|
121
|
-
export type { SpinnerProps } from './Spinner/Spinner';
|
|
96
|
+
export { Spinner, type SpinnerProps } from './Spinner/Spinner';
|
|
122
97
|
|
|
123
98
|
// Steps
|
|
124
|
-
export {
|
|
125
|
-
export type { StepsProps } from './Steps/Steps';
|
|
99
|
+
export { Steps, type StepsProps } from './Steps/Steps';
|
|
126
100
|
|
|
127
101
|
// Tab
|
|
128
|
-
export {
|
|
129
|
-
export type { TabProps } from './Tab/Tab';
|
|
102
|
+
export { Tab, type TabProps } from './Tab/Tab';
|
|
130
103
|
|
|
131
104
|
// Testimonial
|
|
132
|
-
export {
|
|
133
|
-
export type { TestimonialProps } from './Testimonial/Testimonial';
|
|
105
|
+
export { Testimonial, type TestimonialProps } from './Testimonial/Testimonial';
|
|
134
106
|
|
|
135
107
|
// Todo
|
|
136
|
-
export {
|
|
137
|
-
export type { TodoProps } from './Todo/Todo';
|
|
108
|
+
export { Todo, type TodoProps } from './Todo/Todo';
|
|
138
109
|
|
|
139
110
|
// Toggle
|
|
140
|
-
export {
|
|
141
|
-
export type { ToggleProps } from './Toggle/Toggle';
|
|
111
|
+
export { Toggle, type ToggleProps } from './Toggle/Toggle';
|
|
142
112
|
|
|
143
113
|
// Tooltip
|
|
144
|
-
export {
|
|
145
|
-
export type { TooltipProps } from './Tooltip/Tooltip';
|
|
114
|
+
export { Tooltip, type TooltipProps } from './Tooltip/Tooltip';
|
|
146
115
|
|
|
147
116
|
// Upload
|
|
148
|
-
export {
|
|
149
|
-
export type { UploadProps } from './Upload/Upload';
|
|
117
|
+
export { Upload, type UploadProps } from './Upload/Upload';
|
|
150
118
|
|
|
151
|
-
// AtomixLogo
|
|
152
|
-
export { default as AtomixLogo } from './AtomixLogo/AtomixLogo';
|
|
153
|
-
export type { AtomixLogoProps } from './AtomixLogo/AtomixLogo';
|
|
File without changes
|
package/src/index.ts
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
// Export all components individually for better tree-shaking
|
|
2
|
+
export * from './components';
|
|
3
|
+
|
|
4
|
+
// Export lib utilities
|
|
5
|
+
export * from './lib';
|
|
6
|
+
|
|
7
|
+
// Export layouts
|
|
8
|
+
export * from './layouts';
|
|
5
9
|
|
|
6
10
|
// Create a properly typed default export
|
|
7
11
|
const atomix = {
|
|
8
|
-
//
|
|
9
|
-
...components,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
layouts: layouts
|
|
12
|
+
// Re-export all components and utilities
|
|
13
|
+
...require('./components'),
|
|
14
|
+
composables: require('./lib').composables,
|
|
15
|
+
utils: require('./lib').utils,
|
|
16
|
+
constants: require('./lib').constants,
|
|
17
|
+
layouts: require('./layouts')
|
|
15
18
|
};
|
|
16
19
|
|
|
17
|
-
|
|
20
|
+
// Default export
|
|
18
21
|
export default atomix;
|
|
@@ -2,7 +2,8 @@ import React, { useState, useEffect } from 'react';
|
|
|
2
2
|
import { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
import { MasonryGrid } from './MasonryGrid';
|
|
4
4
|
import { MasonryGridItem } from './MasonryGridItem';
|
|
5
|
-
import
|
|
5
|
+
import Card from '../../components/Card/Card';
|
|
6
|
+
import ElevationCard from '../../components/Card/Card';
|
|
6
7
|
|
|
7
8
|
const meta: Meta<typeof MasonryGrid> = {
|
|
8
9
|
title: 'Layouts/MasonryGrid',
|
|
@@ -213,7 +213,7 @@ export const MasonryGrid = forwardRef<HTMLDivElement, MasonryGridProps>(
|
|
|
213
213
|
);
|
|
214
214
|
|
|
215
215
|
const trackImages = useCallback(() => {
|
|
216
|
-
if (!imagesLoaded || !containerRef.current) return;
|
|
216
|
+
if (!imagesLoaded || !containerRef.current) return undefined;
|
|
217
217
|
imageElements.current.clear();
|
|
218
218
|
imagesLoadedCount.current = 0;
|
|
219
219
|
const images = containerRef.current.querySelectorAll('img');
|
|
@@ -222,7 +222,7 @@ export const MasonryGrid = forwardRef<HTMLDivElement, MasonryGridProps>(
|
|
|
222
222
|
setLayoutComplete(true);
|
|
223
223
|
setLoadingImages(false);
|
|
224
224
|
onLayoutComplete?.();
|
|
225
|
-
return;
|
|
225
|
+
return undefined;
|
|
226
226
|
}
|
|
227
227
|
setLoadingImages(true);
|
|
228
228
|
images.forEach((img) => {
|
|
@@ -283,8 +283,8 @@ export const MasonryGrid = forwardRef<HTMLDivElement, MasonryGridProps>(
|
|
|
283
283
|
|
|
284
284
|
// === OBSERVE CONTAINER RESIZE ===
|
|
285
285
|
useEffect(() => {
|
|
286
|
-
if (!containerRef.current) return;
|
|
287
|
-
let animationFrame:
|
|
286
|
+
if (!containerRef.current) return undefined;
|
|
287
|
+
let animationFrame: ReturnType<typeof requestAnimationFrame> | null = null;
|
|
288
288
|
const observer = new ResizeObserver(() => {
|
|
289
289
|
if (animationFrame) cancelAnimationFrame(animationFrame);
|
|
290
290
|
animationFrame = requestAnimationFrame(() => calculateLayout());
|
|
@@ -305,6 +305,7 @@ export const MasonryGrid = forwardRef<HTMLDivElement, MasonryGridProps>(
|
|
|
305
305
|
calculateLayout();
|
|
306
306
|
setLayoutComplete(true);
|
|
307
307
|
setLoadingImages(false);
|
|
308
|
+
return undefined;
|
|
308
309
|
}
|
|
309
310
|
// Only reset layoutComplete when items or columns change
|
|
310
311
|
// eslint-disable-next-line
|
package/src/lib/README.md
CHANGED
|
File without changes
|
|
@@ -67,7 +67,7 @@ export const useDropdown = ({
|
|
|
67
67
|
|
|
68
68
|
// Handle click outside
|
|
69
69
|
useEffect(() => {
|
|
70
|
-
if (!isOpen || !closeOnClickOutside) return;
|
|
70
|
+
if (!isOpen || !closeOnClickOutside) return undefined;
|
|
71
71
|
|
|
72
72
|
const handleClickOutside = (event: MouseEvent) => {
|
|
73
73
|
if (
|
|
@@ -89,7 +89,7 @@ export const useDropdown = ({
|
|
|
89
89
|
|
|
90
90
|
// Handle escape key
|
|
91
91
|
useEffect(() => {
|
|
92
|
-
if (!isOpen || !closeOnEscape) return;
|
|
92
|
+
if (!isOpen || !closeOnEscape) return undefined;
|
|
93
93
|
|
|
94
94
|
const handleEscapeKey = (event: KeyboardEvent) => {
|
|
95
95
|
if (event.key === 'Escape') {
|
|
@@ -204,7 +204,7 @@ export const useDropdown = ({
|
|
|
204
204
|
|
|
205
205
|
// Update position when menu is opened
|
|
206
206
|
useEffect(() => {
|
|
207
|
-
if (!isOpen) return;
|
|
207
|
+
if (!isOpen) return undefined;
|
|
208
208
|
|
|
209
209
|
// Initial position update
|
|
210
210
|
updatePosition();
|
|
@@ -2,7 +2,7 @@ import { useState } from 'react';
|
|
|
2
2
|
import { NavbarProps, NavProps, NavItemProps, NavDropdownProps } from '../types/components';
|
|
3
3
|
import { NAVBAR, NAV } from '../constants/components';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { Icon } from '../../components/Icon';
|
|
5
|
+
import { Icon } from '../../components/Icon/Icon';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Navbar state and functionality
|
|
@@ -47,7 +47,7 @@ export const usePhotoViewer = ({
|
|
|
47
47
|
const lastDistanceRef = useRef<number | null>(null);
|
|
48
48
|
const lastMidpointRef = useRef<{ x: number; y: number } | null>(null);
|
|
49
49
|
const lastWheelTime = useRef<number>(0);
|
|
50
|
-
const momentumTimeoutRef = useRef<
|
|
50
|
+
const momentumTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
|
|
51
51
|
|
|
52
52
|
// Calculate dragging bounds based on zoom level and image dimensions
|
|
53
53
|
const calculateBounds = useCallback((zoomLevel: number, rotation: number) => {
|
|
@@ -177,8 +177,8 @@ export const usePhotoViewer = ({
|
|
|
177
177
|
const image = imageRef.current;
|
|
178
178
|
const container = containerRef.current;
|
|
179
179
|
|
|
180
|
-
const updateImageBounds = () => {
|
|
181
|
-
if (!isMounted || !image || !container) return;
|
|
180
|
+
const updateImageBounds = (): void => {
|
|
181
|
+
if (!isMounted || !image || !container) return undefined;
|
|
182
182
|
|
|
183
183
|
setImageStates(prev => {
|
|
184
184
|
const currentState = prev[currentIndex] || {
|
|
@@ -204,16 +204,18 @@ export const usePhotoViewer = ({
|
|
|
204
204
|
|
|
205
205
|
if (image && container && image.complete && isMounted) {
|
|
206
206
|
updateImageBounds();
|
|
207
|
+
return undefined;
|
|
207
208
|
} else if (image && container && isMounted) {
|
|
208
209
|
image.addEventListener('load', updateImageBounds);
|
|
209
210
|
return () => image.removeEventListener('load', updateImageBounds);
|
|
210
211
|
}
|
|
212
|
+
return undefined;
|
|
211
213
|
}, [currentIndex, calculateBounds, constrainPosition, isMounted]);
|
|
212
214
|
|
|
213
215
|
// Handle window resize
|
|
214
216
|
useEffect(() => {
|
|
215
|
-
const handleResize = () => {
|
|
216
|
-
if (!isMounted || !imageRef.current || !containerRef.current) return;
|
|
217
|
+
const handleResize = (): void => {
|
|
218
|
+
if (!isMounted || !imageRef.current || !containerRef.current) return undefined;
|
|
217
219
|
|
|
218
220
|
setImageStates(prev => {
|
|
219
221
|
const currentState = prev[currentIndex] || {
|
|
@@ -47,7 +47,7 @@ export const usePopover = ({
|
|
|
47
47
|
const triggerRef = useRef<HTMLElement>(null);
|
|
48
48
|
const popoverRef = useRef<HTMLDivElement>(null);
|
|
49
49
|
const arrowRef = useRef<HTMLDivElement>(null);
|
|
50
|
-
const timeoutRef = useRef<
|
|
50
|
+
const timeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
|
|
51
51
|
const popoverId = id || `popover-${Math.random().toString(36).slice(2, 11)}`;
|
|
52
52
|
|
|
53
53
|
// Use controlled state if provided
|
|
@@ -66,16 +66,16 @@ export const usePopover = ({
|
|
|
66
66
|
|
|
67
67
|
// Handle hover events if trigger is hover
|
|
68
68
|
useEffect(() => {
|
|
69
|
-
if (trigger !== 'hover' || !triggerRef.current || !popoverRef.current) return;
|
|
69
|
+
if (trigger !== 'hover' || !triggerRef.current || !popoverRef.current) return undefined;
|
|
70
70
|
|
|
71
71
|
const handleTriggerMouseEnter = () => {
|
|
72
72
|
if (timeoutRef.current !== null) {
|
|
73
|
-
|
|
73
|
+
clearTimeout(timeoutRef.current);
|
|
74
74
|
timeoutRef.current = null;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
if (delay > 0) {
|
|
78
|
-
timeoutRef.current =
|
|
78
|
+
timeoutRef.current = setTimeout(() => {
|
|
79
79
|
setIsOpen(true);
|
|
80
80
|
}, delay);
|
|
81
81
|
} else {
|
|
@@ -85,11 +85,11 @@ export const usePopover = ({
|
|
|
85
85
|
|
|
86
86
|
const handleTriggerMouseLeave = () => {
|
|
87
87
|
if (timeoutRef.current !== null) {
|
|
88
|
-
|
|
88
|
+
clearTimeout(timeoutRef.current);
|
|
89
89
|
timeoutRef.current = null;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
timeoutRef.current =
|
|
92
|
+
timeoutRef.current = setTimeout(() => {
|
|
93
93
|
if (!popoverRef.current?.matches(':hover')) {
|
|
94
94
|
setIsOpen(false);
|
|
95
95
|
}
|
|
@@ -98,7 +98,7 @@ export const usePopover = ({
|
|
|
98
98
|
|
|
99
99
|
const handlePopoverMouseEnter = () => {
|
|
100
100
|
if (timeoutRef.current !== null) {
|
|
101
|
-
|
|
101
|
+
clearTimeout(timeoutRef.current);
|
|
102
102
|
timeoutRef.current = null;
|
|
103
103
|
}
|
|
104
104
|
};
|
|
@@ -247,7 +247,7 @@ export const usePopover = ({
|
|
|
247
247
|
|
|
248
248
|
// Position the popover
|
|
249
249
|
useEffect(() => {
|
|
250
|
-
if (!isOpenState || !triggerRef.current || !popoverRef.current) return;
|
|
250
|
+
if (!isOpenState || !triggerRef.current || !popoverRef.current) return undefined;
|
|
251
251
|
|
|
252
252
|
// Initial positioning
|
|
253
253
|
updatePosition();
|
|
@@ -256,13 +256,13 @@ export const usePopover = ({
|
|
|
256
256
|
window.addEventListener('resize', updatePosition);
|
|
257
257
|
|
|
258
258
|
// Update position on scroll, but throttled for performance
|
|
259
|
-
let scrollTimeout:
|
|
259
|
+
let scrollTimeout: ReturnType<typeof setTimeout> | null = null;
|
|
260
260
|
const handleScroll = (e: Event) => {
|
|
261
261
|
if (scrollTimeout) {
|
|
262
262
|
return;
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
scrollTimeout =
|
|
265
|
+
scrollTimeout = setTimeout(() => {
|
|
266
266
|
updatePosition(e);
|
|
267
267
|
scrollTimeout = null;
|
|
268
268
|
}, 100);
|
|
@@ -271,7 +271,7 @@ export const usePopover = ({
|
|
|
271
271
|
window.addEventListener('scroll', handleScroll, { passive: true });
|
|
272
272
|
|
|
273
273
|
// Update position less frequently to handle content changes
|
|
274
|
-
const intervalId = setInterval(() => {
|
|
274
|
+
const intervalId: ReturnType<typeof setInterval> = setInterval(() => {
|
|
275
275
|
updatePosition();
|
|
276
276
|
}, 500);
|
|
277
277
|
|
|
@@ -279,7 +279,7 @@ export const usePopover = ({
|
|
|
279
279
|
window.removeEventListener('resize', updatePosition);
|
|
280
280
|
window.removeEventListener('scroll', handleScroll);
|
|
281
281
|
if (scrollTimeout) {
|
|
282
|
-
|
|
282
|
+
clearTimeout(scrollTimeout);
|
|
283
283
|
}
|
|
284
284
|
clearInterval(intervalId);
|
|
285
285
|
};
|
|
@@ -287,7 +287,7 @@ export const usePopover = ({
|
|
|
287
287
|
|
|
288
288
|
// Handle click outside to close popover
|
|
289
289
|
useEffect(() => {
|
|
290
|
-
if (!isOpenState || !closeOnClickOutside) return;
|
|
290
|
+
if (!isOpenState || !closeOnClickOutside) return undefined;
|
|
291
291
|
|
|
292
292
|
const handleClickOutside = (event: MouseEvent) => {
|
|
293
293
|
if (
|
|
@@ -309,7 +309,7 @@ export const usePopover = ({
|
|
|
309
309
|
|
|
310
310
|
// Handle escape key to close popover
|
|
311
311
|
useEffect(() => {
|
|
312
|
-
if (!isOpenState || !closeOnEscape) return;
|
|
312
|
+
if (!isOpenState || !closeOnEscape) return undefined;
|
|
313
313
|
|
|
314
314
|
const handleEscapeKey = (event: KeyboardEvent) => {
|
|
315
315
|
if (event.key === 'Escape') {
|
|
@@ -345,4 +345,4 @@ export const usePopover = ({
|
|
|
345
345
|
};
|
|
346
346
|
};
|
|
347
347
|
|
|
348
|
-
export default usePopover;
|
|
348
|
+
export default usePopover;
|
|
@@ -3,13 +3,16 @@
|
|
|
3
3
|
// Font, line-height, and color for body text, headings, and more.
|
|
4
4
|
|
|
5
5
|
// Font stacks with appropriate fallbacks
|
|
6
|
+
$Roboto: "Roboto", sans-serif;
|
|
7
|
+
|
|
6
8
|
$helvetica-neue: 'Helvetica Neue', 'Helvetica', 'Arial', system-ui, -apple-system, BlinkMacSystemFont, sans-serif !default;
|
|
7
9
|
$system-font-stack: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif !default;
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
$font-family-
|
|
11
|
+
|
|
12
|
+
$font-family-base: $Roboto !default;
|
|
13
|
+
$font-family-sans-serif: $Roboto !default;
|
|
11
14
|
$font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace !default;
|
|
12
|
-
$headings-font-family: $
|
|
15
|
+
$headings-font-family: $Roboto !default;
|
|
13
16
|
|
|
14
17
|
$font-weight-light: 300 !default;
|
|
15
18
|
$font-weight-normal: 400 !default;
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
@use '../01-settings/settings.fonts' as fonts;
|
|
2
2
|
@use '../01-settings/settings.typography' as *;
|
|
3
3
|
|
|
4
|
-
// Import Helvetica Neue font family using the font-face mixin
|
|
5
|
-
@include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue', $font-weight-normal, normal);
|
|
6
|
-
@include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-Light', $font-weight-light, normal);
|
|
7
|
-
@include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-Medium', $font-weight-medium, normal);
|
|
8
|
-
@include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-Bold', $font-weight-bold, normal);
|
|
9
|
-
@include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-Thin', $font-weight-light - 100, normal);
|
|
10
|
-
@include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-UltraLight', $font-weight-light - 200, normal);
|
|
4
|
+
// // Import Helvetica Neue font family using the font-face mixin
|
|
5
|
+
// @include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue', $font-weight-normal, normal);
|
|
6
|
+
// @include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-Light', $font-weight-light, normal);
|
|
7
|
+
// @include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-Medium', $font-weight-medium, normal);
|
|
8
|
+
// @include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-Bold', $font-weight-bold, normal);
|
|
9
|
+
// @include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-Thin', $font-weight-light - 100, normal);
|
|
10
|
+
// @include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-UltraLight', $font-weight-light - 200, normal);
|
|
11
11
|
|
|
12
|
-
// Italic versions
|
|
13
|
-
@include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-Italic', $font-weight-normal, italic);
|
|
14
|
-
@include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-LightItalic', $font-weight-light, italic);
|
|
15
|
-
@include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-MediumItalic', $font-weight-medium, italic);
|
|
16
|
-
@include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-BoldItalic', $font-weight-bold, italic);
|
|
17
|
-
@include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-ThinItalic', $font-weight-light - 100, italic);
|
|
18
|
-
@include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-UltraLightItalic', $font-weight-light - 200, italic);
|
|
12
|
+
// // Italic versions
|
|
13
|
+
// @include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-Italic', $font-weight-normal, italic);
|
|
14
|
+
// @include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-LightItalic', $font-weight-light, italic);
|
|
15
|
+
// @include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-MediumItalic', $font-weight-medium, italic);
|
|
16
|
+
// @include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-BoldItalic', $font-weight-bold, italic);
|
|
17
|
+
// @include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-ThinItalic', $font-weight-light - 100, italic);
|
|
18
|
+
// @include fonts.font-face('Helvetica Neue', 'HelveticaNeue', 'HelveticaNeue-UltraLightItalic', $font-weight-light - 200, italic);
|
|
19
19
|
|
|
20
|
-
// Condensed versions
|
|
21
|
-
@include fonts.font-face('Helvetica Neue Condensed', 'HelveticaNeue', 'HelveticaNeue-CondensedBold', $font-weight-bold, normal);
|
|
22
|
-
@include fonts.font-face('Helvetica Neue Condensed', 'HelveticaNeue', 'HelveticaNeue-CondensedBlack', $font-weight-black, normal);
|
|
20
|
+
// // Condensed versions
|
|
21
|
+
// @include fonts.font-face('Helvetica Neue Condensed', 'HelveticaNeue', 'HelveticaNeue-CondensedBold', $font-weight-bold, normal);
|
|
22
|
+
// @include fonts.font-face('Helvetica Neue Condensed', 'HelveticaNeue', 'HelveticaNeue-CondensedBlack', $font-weight-black, normal);
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
|
package/css.d.ts
DELETED