@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,153 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DatePicker component class for vanilla JavaScript implementation
|
|
3
|
-
*/
|
|
4
|
-
export default class DatePicker {
|
|
5
|
-
private element;
|
|
6
|
-
private input;
|
|
7
|
-
private options;
|
|
8
|
-
private isOpen;
|
|
9
|
-
private calendar;
|
|
10
|
-
private viewDate;
|
|
11
|
-
private selectedDate;
|
|
12
|
-
private viewMode;
|
|
13
|
-
private eventListeners;
|
|
14
|
-
/**
|
|
15
|
-
* Create a new DatePicker instance
|
|
16
|
-
* @param element - The element to attach the datepicker to
|
|
17
|
-
* @param options - Configuration options
|
|
18
|
-
*/
|
|
19
|
-
constructor(element: string | HTMLElement, options?: any);
|
|
20
|
-
/**
|
|
21
|
-
* Initialize the DatePicker
|
|
22
|
-
*/
|
|
23
|
-
private _init;
|
|
24
|
-
/**
|
|
25
|
-
* Parse the initial date from the input
|
|
26
|
-
*/
|
|
27
|
-
private parseInitialDate;
|
|
28
|
-
/**
|
|
29
|
-
* Bind event listeners
|
|
30
|
-
*/
|
|
31
|
-
private _bindEvents;
|
|
32
|
-
/**
|
|
33
|
-
* Render the calendar element
|
|
34
|
-
*/
|
|
35
|
-
private _renderCalendar;
|
|
36
|
-
/**
|
|
37
|
-
* Update the calendar content based on current state
|
|
38
|
-
*/
|
|
39
|
-
private _updateCalendar;
|
|
40
|
-
/**
|
|
41
|
-
* Generate an array of date objects for the current month view
|
|
42
|
-
*/
|
|
43
|
-
private _generateDays;
|
|
44
|
-
/**
|
|
45
|
-
* Show the calendar
|
|
46
|
-
*/
|
|
47
|
-
private _showCalendar;
|
|
48
|
-
/**
|
|
49
|
-
* Hide the calendar
|
|
50
|
-
*/
|
|
51
|
-
private _hideCalendar;
|
|
52
|
-
/**
|
|
53
|
-
* Position the calendar relative to the input
|
|
54
|
-
*/
|
|
55
|
-
private _positionCalendar;
|
|
56
|
-
/**
|
|
57
|
-
* Select a date
|
|
58
|
-
* @param day - The day to select
|
|
59
|
-
*/
|
|
60
|
-
private _selectDate;
|
|
61
|
-
/**
|
|
62
|
-
* Navigate to previous month
|
|
63
|
-
*/
|
|
64
|
-
private _prevMonth;
|
|
65
|
-
/**
|
|
66
|
-
* Navigate to next month
|
|
67
|
-
*/
|
|
68
|
-
private _nextMonth;
|
|
69
|
-
/**
|
|
70
|
-
* Navigate to previous year
|
|
71
|
-
*/
|
|
72
|
-
private _prevYear;
|
|
73
|
-
/**
|
|
74
|
-
* Navigate to next year
|
|
75
|
-
*/
|
|
76
|
-
private _nextYear;
|
|
77
|
-
/**
|
|
78
|
-
* Switch to month view
|
|
79
|
-
*/
|
|
80
|
-
private _switchToMonthView;
|
|
81
|
-
/**
|
|
82
|
-
* Switch to year view
|
|
83
|
-
*/
|
|
84
|
-
private _switchToYearView;
|
|
85
|
-
/**
|
|
86
|
-
* Select a month
|
|
87
|
-
* @param month - The month index (0-11)
|
|
88
|
-
*/
|
|
89
|
-
private _selectMonth;
|
|
90
|
-
/**
|
|
91
|
-
* Select a year
|
|
92
|
-
* @param year - The year
|
|
93
|
-
*/
|
|
94
|
-
private _selectYear;
|
|
95
|
-
/**
|
|
96
|
-
* Go to today's date
|
|
97
|
-
*/
|
|
98
|
-
private _goToToday;
|
|
99
|
-
/**
|
|
100
|
-
* Clear the selected date
|
|
101
|
-
*/
|
|
102
|
-
private _clearDate;
|
|
103
|
-
/**
|
|
104
|
-
* Check if a date is selectable
|
|
105
|
-
*/
|
|
106
|
-
private _isDateSelectable;
|
|
107
|
-
/**
|
|
108
|
-
* Check if a date is selected
|
|
109
|
-
*/
|
|
110
|
-
private _isDateSelected;
|
|
111
|
-
/**
|
|
112
|
-
* Check if a date is today
|
|
113
|
-
*/
|
|
114
|
-
private _isToday;
|
|
115
|
-
/**
|
|
116
|
-
* Get week number for a date
|
|
117
|
-
*/
|
|
118
|
-
private _getWeekNumber;
|
|
119
|
-
/**
|
|
120
|
-
* Set a new date
|
|
121
|
-
* @param date - The date to set
|
|
122
|
-
*/
|
|
123
|
-
setDate(date: Date | null): void;
|
|
124
|
-
/**
|
|
125
|
-
* Get the currently selected date
|
|
126
|
-
*/
|
|
127
|
-
getDate(): Date | null;
|
|
128
|
-
/**
|
|
129
|
-
* Open the calendar
|
|
130
|
-
*/
|
|
131
|
-
open(): void;
|
|
132
|
-
/**
|
|
133
|
-
* Close the calendar
|
|
134
|
-
*/
|
|
135
|
-
close(): void;
|
|
136
|
-
/**
|
|
137
|
-
* Clear the selected date
|
|
138
|
-
*/
|
|
139
|
-
clear(): void;
|
|
140
|
-
/**
|
|
141
|
-
* Update the datepicker options
|
|
142
|
-
* @param options - New options to apply
|
|
143
|
-
*/
|
|
144
|
-
updateOptions(options: any): void;
|
|
145
|
-
/**
|
|
146
|
-
* Destroy the datepicker instance
|
|
147
|
-
*/
|
|
148
|
-
destroy(): void;
|
|
149
|
-
/**
|
|
150
|
-
* Initialize all datepickers in the document
|
|
151
|
-
*/
|
|
152
|
-
static initializeAll(selector?: string, options?: any): DatePicker[];
|
|
153
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dropdown position types
|
|
3
|
-
*/
|
|
4
|
-
export type DropdownPosition = 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
5
|
-
/**
|
|
6
|
-
* Dropdown trigger types
|
|
7
|
-
*/
|
|
8
|
-
export type DropdownTrigger = 'click' | 'hover';
|
|
9
|
-
/**
|
|
10
|
-
* Dropdown options interface
|
|
11
|
-
*/
|
|
12
|
-
export interface DropdownOptions {
|
|
13
|
-
placement?: DropdownPosition;
|
|
14
|
-
trigger?: DropdownTrigger;
|
|
15
|
-
offset?: number;
|
|
16
|
-
closeOnClickOutside?: boolean;
|
|
17
|
-
closeOnEscape?: boolean;
|
|
18
|
-
minWidth?: string | number;
|
|
19
|
-
maxHeight?: string;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Timer reference interface for hover delay
|
|
23
|
-
*/
|
|
24
|
-
export interface TimerRef {
|
|
25
|
-
current: number | null;
|
|
26
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { DropdownOptions } from './componentInteractions';
|
|
2
|
-
/**
|
|
3
|
-
* Class representing a Dropdown component
|
|
4
|
-
*/
|
|
5
|
-
declare class Dropdown {
|
|
6
|
-
private element;
|
|
7
|
-
private trigger;
|
|
8
|
-
private menuWrapper;
|
|
9
|
-
private menuInner;
|
|
10
|
-
private menu;
|
|
11
|
-
private options;
|
|
12
|
-
private isOpen;
|
|
13
|
-
private timeoutRef;
|
|
14
|
-
private animating;
|
|
15
|
-
/**
|
|
16
|
-
* Creates an instance of Dropdown
|
|
17
|
-
* @param element - The dropdown element
|
|
18
|
-
* @param options - Configuration options
|
|
19
|
-
*/
|
|
20
|
-
constructor(element: HTMLElement, options?: DropdownOptions);
|
|
21
|
-
/**
|
|
22
|
-
* Initialize the dropdown component
|
|
23
|
-
*/
|
|
24
|
-
private _initialize;
|
|
25
|
-
/**
|
|
26
|
-
* Set up menu structure
|
|
27
|
-
*/
|
|
28
|
-
private _setupMenuStructure;
|
|
29
|
-
/**
|
|
30
|
-
* Setup ARIA attributes
|
|
31
|
-
*/
|
|
32
|
-
private _setupAriaAttributes;
|
|
33
|
-
/**
|
|
34
|
-
* Apply styles to menu
|
|
35
|
-
*/
|
|
36
|
-
private _applyStyles;
|
|
37
|
-
/**
|
|
38
|
-
* Bind event listeners
|
|
39
|
-
*/
|
|
40
|
-
private _bindEvents;
|
|
41
|
-
/**
|
|
42
|
-
* Handle animation end events
|
|
43
|
-
*/
|
|
44
|
-
private _handleAnimationEnd;
|
|
45
|
-
/**
|
|
46
|
-
* Handle click on trigger
|
|
47
|
-
*/
|
|
48
|
-
private _handleTriggerClick;
|
|
49
|
-
/**
|
|
50
|
-
* Handle keydown on trigger
|
|
51
|
-
*/
|
|
52
|
-
private _handleTriggerKeyDown;
|
|
53
|
-
/**
|
|
54
|
-
* Handle document click
|
|
55
|
-
*/
|
|
56
|
-
private _handleDocumentClick;
|
|
57
|
-
/**
|
|
58
|
-
* Handle mouseenter on trigger
|
|
59
|
-
*/
|
|
60
|
-
private _handleTriggerMouseEnter;
|
|
61
|
-
/**
|
|
62
|
-
* Handle mouseleave on trigger
|
|
63
|
-
*/
|
|
64
|
-
private _handleTriggerMouseLeave;
|
|
65
|
-
/**
|
|
66
|
-
* Handle mouseenter on menu
|
|
67
|
-
*/
|
|
68
|
-
private _handleMenuMouseEnter;
|
|
69
|
-
/**
|
|
70
|
-
* Handle mouseleave on menu
|
|
71
|
-
*/
|
|
72
|
-
private _handleMenuMouseLeave;
|
|
73
|
-
/**
|
|
74
|
-
* Handle escape key
|
|
75
|
-
*/
|
|
76
|
-
private _handleEscapeKey;
|
|
77
|
-
/**
|
|
78
|
-
* Handle keyboard navigation
|
|
79
|
-
*/
|
|
80
|
-
private _handleMenuKeyDown;
|
|
81
|
-
/**
|
|
82
|
-
* Focus the first menu item
|
|
83
|
-
*/
|
|
84
|
-
private _focusFirstMenuItem;
|
|
85
|
-
/**
|
|
86
|
-
* Open the dropdown
|
|
87
|
-
*/
|
|
88
|
-
open(): void;
|
|
89
|
-
/**
|
|
90
|
-
* Close the dropdown
|
|
91
|
-
*/
|
|
92
|
-
close(): void;
|
|
93
|
-
/**
|
|
94
|
-
* Toggle the dropdown
|
|
95
|
-
*/
|
|
96
|
-
toggle(): void;
|
|
97
|
-
/**
|
|
98
|
-
* Update dropdown options
|
|
99
|
-
*/
|
|
100
|
-
update(options: Partial<DropdownOptions>): void;
|
|
101
|
-
/**
|
|
102
|
-
* Destroy the dropdown instance
|
|
103
|
-
*/
|
|
104
|
-
destroy(): void;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* Initialize all dropdowns in the document
|
|
108
|
-
*/
|
|
109
|
-
declare const initializeDropdowns: () => Dropdown[];
|
|
110
|
-
/**
|
|
111
|
-
* Create a dropdown instance for a specific element
|
|
112
|
-
*/
|
|
113
|
-
declare const createDropdown: (element: HTMLElement | string, options?: DropdownOptions) => Dropdown;
|
|
114
|
-
export { Dropdown, initializeDropdowns, createDropdown };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import EdgePanel from './index';
|
|
2
|
-
/**
|
|
3
|
-
* Apply custom animation effects for EdgePanel
|
|
4
|
-
* @param panel - Edge panel element
|
|
5
|
-
*/
|
|
6
|
-
export declare function applyCustomAnimations(panel: HTMLElement): void;
|
|
7
|
-
/**
|
|
8
|
-
* Initialize edge panels with custom behavior
|
|
9
|
-
* @returns Array of edge panel instances
|
|
10
|
-
*/
|
|
11
|
-
export declare function initializeEdgePanelsWithCustomBehavior(): EdgePanel[];
|
|
12
|
-
/**
|
|
13
|
-
* Apply responsive behavior based on breakpoints
|
|
14
|
-
* @param panel - Edge panel element
|
|
15
|
-
*/
|
|
16
|
-
export declare function applyResponsiveHandling(panel: HTMLElement): void;
|
|
17
|
-
/**
|
|
18
|
-
* Open a specific edge panel by selector or ID
|
|
19
|
-
* @param selector - CSS selector or ID of the panel to open
|
|
20
|
-
*/
|
|
21
|
-
export declare function openEdgePanel(selector: string): void;
|
|
22
|
-
/**
|
|
23
|
-
* Close a specific edge panel by selector or ID
|
|
24
|
-
* @param selector - CSS selector or ID of the panel to close
|
|
25
|
-
*/
|
|
26
|
-
export declare function closeEdgePanel(selector: string): void;
|
|
27
|
-
/**
|
|
28
|
-
* Close all edge panels on the page
|
|
29
|
-
*/
|
|
30
|
-
export declare function closeAllEdgePanels(): void;
|
|
31
|
-
/**
|
|
32
|
-
* Toggle a specific edge panel by selector or ID
|
|
33
|
-
* @param selector - CSS selector or ID of the panel to toggle
|
|
34
|
-
*/
|
|
35
|
-
export declare function toggleEdgePanel(selector: string): void;
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Interface for EdgePanel instance
|
|
3
|
-
*/
|
|
4
|
-
interface EdgePanelInstance {
|
|
5
|
-
openPanel: () => void;
|
|
6
|
-
closePanel: () => void;
|
|
7
|
-
destroy: () => void;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Class representing an EdgePanel component
|
|
11
|
-
*/
|
|
12
|
-
declare class EdgePanel implements EdgePanelInstance {
|
|
13
|
-
private $panel;
|
|
14
|
-
private $container;
|
|
15
|
-
private $backdrop;
|
|
16
|
-
private $closeButton;
|
|
17
|
-
private $trigger;
|
|
18
|
-
private isOpen;
|
|
19
|
-
private position;
|
|
20
|
-
private mode;
|
|
21
|
-
private closeOnBackdropClick;
|
|
22
|
-
private closeOnEscape;
|
|
23
|
-
private hasBackdrop;
|
|
24
|
-
private animationDuration;
|
|
25
|
-
private resizeHandler;
|
|
26
|
-
/**
|
|
27
|
-
* Creates an instance of EdgePanel
|
|
28
|
-
* @param element - The panel container element
|
|
29
|
-
*/
|
|
30
|
-
constructor(element: HTMLElement | string);
|
|
31
|
-
/**
|
|
32
|
-
* Initialize the edge panel component
|
|
33
|
-
*/
|
|
34
|
-
private _initialize;
|
|
35
|
-
/**
|
|
36
|
-
* Initialize DOM elements
|
|
37
|
-
*/
|
|
38
|
-
private _initializeElements;
|
|
39
|
-
/**
|
|
40
|
-
* Validate required elements exist
|
|
41
|
-
* @returns Whether all required elements exist
|
|
42
|
-
*/
|
|
43
|
-
private _validateElements;
|
|
44
|
-
/**
|
|
45
|
-
* Set initial styles for the panel
|
|
46
|
-
*/
|
|
47
|
-
private _setInitialStyles;
|
|
48
|
-
/**
|
|
49
|
-
* Bind event listeners
|
|
50
|
-
*/
|
|
51
|
-
private _bindEvents;
|
|
52
|
-
/**
|
|
53
|
-
* Handle trigger button click
|
|
54
|
-
*/
|
|
55
|
-
private _handleTriggerClick;
|
|
56
|
-
/**
|
|
57
|
-
* Handle close button click
|
|
58
|
-
*/
|
|
59
|
-
private _handleCloseClick;
|
|
60
|
-
/**
|
|
61
|
-
* Handle backdrop click
|
|
62
|
-
*/
|
|
63
|
-
private _handleBackdropClick;
|
|
64
|
-
/**
|
|
65
|
-
* Handle escape key press
|
|
66
|
-
*/
|
|
67
|
-
private _handleEscapeKey;
|
|
68
|
-
/**
|
|
69
|
-
* Handle window resize
|
|
70
|
-
*/
|
|
71
|
-
private _handleResize;
|
|
72
|
-
/**
|
|
73
|
-
* Adjust body padding when using push mode
|
|
74
|
-
*/
|
|
75
|
-
private _adjustBodyPadding;
|
|
76
|
-
/**
|
|
77
|
-
* Reset body padding
|
|
78
|
-
*/
|
|
79
|
-
private _resetBodyPadding;
|
|
80
|
-
/**
|
|
81
|
-
* Open the panel
|
|
82
|
-
*/
|
|
83
|
-
openPanel(): void;
|
|
84
|
-
/**
|
|
85
|
-
* Close the panel
|
|
86
|
-
*/
|
|
87
|
-
closePanel(): void;
|
|
88
|
-
/**
|
|
89
|
-
* Clean up event listeners
|
|
90
|
-
*/
|
|
91
|
-
destroy(): void;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Initialize all edge panels in the document
|
|
95
|
-
* @returns Array of edge panel instances
|
|
96
|
-
*/
|
|
97
|
-
export declare function initializeEdgePanels(): EdgePanelInstance[];
|
|
98
|
-
export declare const SELECTORS: {
|
|
99
|
-
PANEL: string;
|
|
100
|
-
BACKDROP: string;
|
|
101
|
-
CONTAINER: string;
|
|
102
|
-
HEADER: string;
|
|
103
|
-
BODY: string;
|
|
104
|
-
CLOSE: string;
|
|
105
|
-
};
|
|
106
|
-
export declare const CLASSES: {
|
|
107
|
-
BASE: string;
|
|
108
|
-
START: string;
|
|
109
|
-
END: string;
|
|
110
|
-
TOP: string;
|
|
111
|
-
BOTTOM: string;
|
|
112
|
-
IS_OPEN: string;
|
|
113
|
-
};
|
|
114
|
-
export declare const POSITIONS: {
|
|
115
|
-
START: string;
|
|
116
|
-
END: string;
|
|
117
|
-
TOP: string;
|
|
118
|
-
BOTTOM: string;
|
|
119
|
-
};
|
|
120
|
-
export declare const MODES: {
|
|
121
|
-
SLIDE: string;
|
|
122
|
-
PUSH: string;
|
|
123
|
-
NONE: string;
|
|
124
|
-
};
|
|
125
|
-
export * from './edgePanelInteractions';
|
|
126
|
-
export default EdgePanel;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Hero } from './index';
|
|
2
|
-
/**
|
|
3
|
-
* Apply parallax effect to hero background
|
|
4
|
-
* @param hero - Hero element
|
|
5
|
-
* @param intensity - Parallax effect intensity (0-1)
|
|
6
|
-
*/
|
|
7
|
-
export declare function applyParallaxEffect(hero: HTMLElement, intensity?: number): void;
|
|
8
|
-
/**
|
|
9
|
-
* Remove parallax effect from hero
|
|
10
|
-
* @param hero - Hero element
|
|
11
|
-
*/
|
|
12
|
-
export declare function removeParallaxEffect(hero: HTMLElement): void;
|
|
13
|
-
/**
|
|
14
|
-
* Apply video background to hero
|
|
15
|
-
* @param hero - Hero element
|
|
16
|
-
* @param videoUrl - URL of the video
|
|
17
|
-
* @param options - Video options
|
|
18
|
-
*/
|
|
19
|
-
export declare function applyVideoBackground(hero: HTMLElement, videoUrl: string, options?: {
|
|
20
|
-
autoplay?: boolean;
|
|
21
|
-
loop?: boolean;
|
|
22
|
-
muted?: boolean;
|
|
23
|
-
posterUrl?: string;
|
|
24
|
-
}): void;
|
|
25
|
-
/**
|
|
26
|
-
* Initialize hero with custom behavior
|
|
27
|
-
* @param selector - CSS selector for hero elements
|
|
28
|
-
*/
|
|
29
|
-
export declare function initializeHeroesWithCustomBehavior(selector?: string): Hero[];
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* HeroOptions interface for the vanilla JS implementation
|
|
3
|
-
*/
|
|
4
|
-
export interface HeroOptions {
|
|
5
|
-
backgroundImage?: string;
|
|
6
|
-
overlay?: boolean;
|
|
7
|
-
overlayOpacity?: number;
|
|
8
|
-
fullHeight?: boolean;
|
|
9
|
-
centered?: boolean;
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* HeroInstance interface
|
|
14
|
-
*/
|
|
15
|
-
export interface HeroInstance {
|
|
16
|
-
init(): void;
|
|
17
|
-
destroy(): void;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Hero Class - Vanilla JS implementation
|
|
21
|
-
*/
|
|
22
|
-
export declare class Hero implements HeroInstance {
|
|
23
|
-
private element;
|
|
24
|
-
private options;
|
|
25
|
-
/**
|
|
26
|
-
* Constructor
|
|
27
|
-
* @param element - DOM element or selector
|
|
28
|
-
* @param options - Configuration options
|
|
29
|
-
*/
|
|
30
|
-
constructor(element: string | HTMLElement, options?: HeroOptions);
|
|
31
|
-
/**
|
|
32
|
-
* Initialize the hero component
|
|
33
|
-
*/
|
|
34
|
-
init(): void;
|
|
35
|
-
/**
|
|
36
|
-
* Destroy the hero component
|
|
37
|
-
*/
|
|
38
|
-
destroy(): void;
|
|
39
|
-
/**
|
|
40
|
-
* Initialize all hero components in the document
|
|
41
|
-
*/
|
|
42
|
-
static initializeAll(selector?: string): Hero[];
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Initialize all hero components in the document
|
|
46
|
-
*/
|
|
47
|
-
export declare function initHeroes(): void;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
export type ModalOptions = {
|
|
2
|
-
openSelector?: string;
|
|
3
|
-
closeSelector?: string;
|
|
4
|
-
dialogSelector?: string;
|
|
5
|
-
backdropSelector?: string;
|
|
6
|
-
backdrop?: boolean;
|
|
7
|
-
keyboard?: boolean;
|
|
8
|
-
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
9
|
-
onOpen?: () => void;
|
|
10
|
-
onClose?: () => void;
|
|
11
|
-
onToggle?: (isOpen: boolean) => void;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Modal Component for vanilla JS implementations
|
|
15
|
-
*/
|
|
16
|
-
declare class Modal {
|
|
17
|
-
selector: string | HTMLElement;
|
|
18
|
-
$element: HTMLElement;
|
|
19
|
-
options: ModalOptions;
|
|
20
|
-
isOpen: boolean;
|
|
21
|
-
$closeButtons: NodeListOf<Element>;
|
|
22
|
-
$backdrop: HTMLElement | null;
|
|
23
|
-
$dialog: HTMLElement | null;
|
|
24
|
-
$openButtons: NodeListOf<Element>;
|
|
25
|
-
_keydownHandler: ((event: KeyboardEvent) => void) | null;
|
|
26
|
-
_documentClickHandler: ((event: MouseEvent) => void) | null;
|
|
27
|
-
/**
|
|
28
|
-
* Create a new Modal instance
|
|
29
|
-
* @param selector - CSS selector or HTMLElement for the modal
|
|
30
|
-
* @param options - Configuration options
|
|
31
|
-
*/
|
|
32
|
-
constructor(selector: string | HTMLElement, options?: ModalOptions);
|
|
33
|
-
/**
|
|
34
|
-
* Merge options from defaults, constructor options, and data attributes
|
|
35
|
-
*/
|
|
36
|
-
private _mergeOptions;
|
|
37
|
-
/**
|
|
38
|
-
* Initialize the modal
|
|
39
|
-
*/
|
|
40
|
-
private _initialize;
|
|
41
|
-
/**
|
|
42
|
-
* Bind all event listeners
|
|
43
|
-
*/
|
|
44
|
-
private _bindEvents;
|
|
45
|
-
/**
|
|
46
|
-
* Set up buttons that target this modal using data-target attribute
|
|
47
|
-
*/
|
|
48
|
-
private _setupTargetButtons;
|
|
49
|
-
/**
|
|
50
|
-
* Open the modal
|
|
51
|
-
*/
|
|
52
|
-
open(): void;
|
|
53
|
-
/**
|
|
54
|
-
* Close the modal
|
|
55
|
-
*/
|
|
56
|
-
close(): void;
|
|
57
|
-
/**
|
|
58
|
-
* Toggle the modal's open/closed state
|
|
59
|
-
*/
|
|
60
|
-
toggle(): void;
|
|
61
|
-
/**
|
|
62
|
-
* Focus trap for accessibility
|
|
63
|
-
*/
|
|
64
|
-
private _trapFocus;
|
|
65
|
-
/**
|
|
66
|
-
* Destroy the modal instance and remove event listeners
|
|
67
|
-
*/
|
|
68
|
-
destroy(): void;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Initialize all modals matching a selector
|
|
72
|
-
* @param selector - CSS selector to find modals
|
|
73
|
-
* @param options - Default options for all modals
|
|
74
|
-
* @returns Array of initialized Modal instances
|
|
75
|
-
*/
|
|
76
|
-
export declare function initializeModals(selector?: string, options?: ModalOptions): Modal[];
|
|
77
|
-
/**
|
|
78
|
-
* Get a modal instance from an element
|
|
79
|
-
* @param element - Modal element or selector
|
|
80
|
-
* @returns Modal instance or null
|
|
81
|
-
*/
|
|
82
|
-
export declare function getModalInstance(element: string | HTMLElement): Modal | null;
|
|
83
|
-
export default Modal;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Handle click events for modal open buttons
|
|
3
|
-
* @param event - Click event
|
|
4
|
-
* @param modalSelector - Modal selector to open
|
|
5
|
-
*/
|
|
6
|
-
export declare function handleModalOpenClick(event: MouseEvent, modalSelector: string): void;
|
|
7
|
-
/**
|
|
8
|
-
* Handle click events for modal close buttons
|
|
9
|
-
* @param event - Click event
|
|
10
|
-
* @param modal - Modal element to close
|
|
11
|
-
*/
|
|
12
|
-
export declare function handleModalCloseClick(event: MouseEvent, modal: HTMLElement): void;
|
|
13
|
-
/**
|
|
14
|
-
* Handle keydown events for Escape key
|
|
15
|
-
* @param event - Keyboard event
|
|
16
|
-
*/
|
|
17
|
-
export declare function handleModalKeydown(event: KeyboardEvent): void;
|
|
18
|
-
/**
|
|
19
|
-
* Handle clicks on modal backdrop
|
|
20
|
-
* @param event - Click event
|
|
21
|
-
* @param modal - Modal element
|
|
22
|
-
*/
|
|
23
|
-
export declare function handleBackdropClick(event: MouseEvent, modal: HTMLElement): void;
|
|
24
|
-
/**
|
|
25
|
-
* Delegate event handling for modals using data attributes
|
|
26
|
-
* This is useful for dynamically added modals
|
|
27
|
-
*/
|
|
28
|
-
export declare function setupModalEventDelegation(): void;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
interface PaginationOptions {
|
|
2
|
-
currentPage?: number;
|
|
3
|
-
totalPages?: number;
|
|
4
|
-
siblingCount?: number;
|
|
5
|
-
showFirstLastButtons?: boolean;
|
|
6
|
-
showPrevNextButtons?: boolean;
|
|
7
|
-
onPageChange?: (page: number) => void;
|
|
8
|
-
size?: 'sm' | 'md' | 'lg';
|
|
9
|
-
paginationSelector?: string;
|
|
10
|
-
pageItemSelector?: string;
|
|
11
|
-
pageLinkSelector?: string;
|
|
12
|
-
dotsSelector?: string;
|
|
13
|
-
activeClass?: string;
|
|
14
|
-
disabledClass?: string;
|
|
15
|
-
ariaLabel?: string;
|
|
16
|
-
useIcons?: boolean;
|
|
17
|
-
}
|
|
18
|
-
declare class Pagination {
|
|
19
|
-
private $element;
|
|
20
|
-
private options;
|
|
21
|
-
currentPage: number;
|
|
22
|
-
totalPages: number;
|
|
23
|
-
constructor(element: string | HTMLElement, options?: PaginationOptions);
|
|
24
|
-
/**
|
|
25
|
-
* Parse data attributes from the element
|
|
26
|
-
*/
|
|
27
|
-
private _parseDataAttributes;
|
|
28
|
-
private _initialize;
|
|
29
|
-
/**
|
|
30
|
-
* Create a navigation button HTML
|
|
31
|
-
*/
|
|
32
|
-
private _createNavButtonHtml;
|
|
33
|
-
private _render;
|
|
34
|
-
private _attachEventListeners;
|
|
35
|
-
/**
|
|
36
|
-
* Navigate to a specific page
|
|
37
|
-
*/
|
|
38
|
-
goToPage(page: number): void;
|
|
39
|
-
/**
|
|
40
|
-
* Update pagination options and re-render
|
|
41
|
-
*/
|
|
42
|
-
update(options: Partial<PaginationOptions>): void;
|
|
43
|
-
/**
|
|
44
|
-
* Clean up pagination instance
|
|
45
|
-
*/
|
|
46
|
-
destroy(): void;
|
|
47
|
-
/**
|
|
48
|
-
* Static initialization method
|
|
49
|
-
*/
|
|
50
|
-
static initializeAll(selector?: string, options?: PaginationOptions): Pagination[];
|
|
51
|
-
}
|
|
52
|
-
export default Pagination;
|