@shohojdhara/atomix 0.1.4 → 0.1.5
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-0.1.4.css → atomix-0.1.5.css} +1 -1
- package/dist/css/{atomix-0.1.4.css.map → atomix-0.1.5.css.map} +1 -1
- package/dist/css/{atomix-0.1.4.min.css → atomix-0.1.5.min.css} +1 -1
- package/dist/css/{atomix-0.1.4.min.css.map → atomix-0.1.5.min.css.map} +1 -1
- package/dist/js/202.atomix-0.1.5.react.cjs.js +2 -0
- package/dist/js/202.atomix-0.1.5.react.cjs.js.map +1 -0
- package/dist/js/202.atomix-0.1.5.react.esm.js +2 -0
- package/dist/js/202.atomix-0.1.5.react.esm.js.map +1 -0
- package/dist/js/202.atomix-0.1.5.react.js +2 -0
- package/dist/js/202.atomix-0.1.5.react.js.map +1 -0
- package/dist/js/308.atomix-0.1.5.react.cjs.js +2 -0
- package/dist/js/308.atomix-0.1.5.react.cjs.js.map +1 -0
- package/dist/js/308.atomix-0.1.5.react.esm.js +2 -0
- package/dist/js/308.atomix-0.1.5.react.esm.js.map +1 -0
- package/dist/js/308.atomix-0.1.5.react.js +2 -0
- package/dist/js/308.atomix-0.1.5.react.js.map +1 -0
- package/dist/js/34.atomix-0.1.5.react.cjs.js +2 -0
- package/dist/js/34.atomix-0.1.5.react.cjs.js.map +1 -0
- package/dist/js/34.atomix-0.1.5.react.esm.js +2 -0
- package/dist/js/34.atomix-0.1.5.react.esm.js.map +1 -0
- package/dist/js/34.atomix-0.1.5.react.js +2 -0
- package/dist/js/34.atomix-0.1.5.react.js.map +1 -0
- package/dist/js/471.atomix-0.1.5.react.cjs.js +2 -0
- package/dist/js/471.atomix-0.1.5.react.cjs.js.map +1 -0
- package/dist/js/471.atomix-0.1.5.react.esm.js +2 -0
- package/dist/js/471.atomix-0.1.5.react.esm.js.map +1 -0
- package/dist/js/471.atomix-0.1.5.react.js +2 -0
- package/dist/js/471.atomix-0.1.5.react.js.map +1 -0
- package/dist/js/54.atomix-0.1.5.react.cjs.js +2 -0
- package/dist/js/54.atomix-0.1.5.react.cjs.js.map +1 -0
- package/dist/js/54.atomix-0.1.5.react.esm.js +2 -0
- package/dist/js/54.atomix-0.1.5.react.esm.js.map +1 -0
- package/dist/js/54.atomix-0.1.5.react.js +2 -0
- package/dist/js/54.atomix-0.1.5.react.js.map +1 -0
- package/dist/js/619.atomix-0.1.5.react.cjs.js +2 -0
- package/dist/js/619.atomix-0.1.5.react.cjs.js.map +1 -0
- package/dist/js/619.atomix-0.1.5.react.esm.js +2 -0
- package/dist/js/619.atomix-0.1.5.react.esm.js.map +1 -0
- package/dist/js/619.atomix-0.1.5.react.js +2 -0
- package/dist/js/619.atomix-0.1.5.react.js.map +1 -0
- package/dist/js/690.atomix-0.1.5.react.cjs.js +2 -0
- package/dist/js/690.atomix-0.1.5.react.cjs.js.map +1 -0
- package/dist/js/690.atomix-0.1.5.react.esm.js +2 -0
- package/dist/js/690.atomix-0.1.5.react.esm.js.map +1 -0
- package/dist/js/690.atomix-0.1.5.react.js +2 -0
- package/dist/js/690.atomix-0.1.5.react.js.map +1 -0
- package/dist/js/894.atomix-0.1.5.react.cjs.js +2 -0
- package/dist/js/894.atomix-0.1.5.react.cjs.js.map +1 -0
- package/dist/js/894.atomix-0.1.5.react.esm.js +2 -0
- package/dist/js/894.atomix-0.1.5.react.esm.js.map +1 -0
- package/dist/js/894.atomix-0.1.5.react.js +2 -0
- package/dist/js/894.atomix-0.1.5.react.js.map +1 -0
- package/dist/js/897.atomix-0.1.5.react.cjs.js +2 -0
- package/dist/js/897.atomix-0.1.5.react.cjs.js.map +1 -0
- package/dist/js/897.atomix-0.1.5.react.esm.js +2 -0
- package/dist/js/897.atomix-0.1.5.react.esm.js.map +1 -0
- package/dist/js/897.atomix-0.1.5.react.js +2 -0
- package/dist/js/897.atomix-0.1.5.react.js.map +1 -0
- package/dist/js/atomix-0.1.5.react.cjs.js +2 -0
- package/dist/js/atomix-0.1.5.react.cjs.js.map +1 -0
- package/dist/js/atomix-0.1.5.react.esm.js +2 -0
- package/dist/js/atomix-0.1.5.react.esm.js.map +1 -0
- package/dist/js/atomix-0.1.5.react.js +2 -0
- package/dist/js/atomix-0.1.5.react.js.map +1 -0
- package/package.json +13 -13
- package/src/components/Accordion/Accordion.tsx +11 -2
- package/src/components/Avatar/Avatar.tsx +12 -2
- package/src/components/Avatar/AvatarGroup.tsx +11 -2
- package/src/components/Badge/Badge.tsx +13 -2
- package/src/components/Badge/index.tsx +2 -4
- package/src/components/Breadcrumb/Breadcrumb.tsx +9 -3
- package/src/components/Callout/Callout.tsx +13 -2
- package/src/components/Card/Card.tsx +12 -2
- package/src/components/ColorModeToggle/ColorModeToggle.tsx +11 -2
- package/src/components/ColorModeToggle/index.ts +2 -1
- package/src/components/Countdown/Countdown.tsx +13 -3
- package/src/components/DataTable/DataTable.tsx +11 -2
- package/src/components/DatePicker/DatePicker.tsx +5 -0
- package/src/components/Dropdown/Dropdown.tsx +14 -1
- package/src/components/EdgePanel/EdgePanel.tsx +15 -2
- package/src/components/Form/Checkbox.tsx +12 -2
- package/src/components/Form/Form.tsx +11 -2
- package/src/components/Form/FormGroup.tsx +11 -2
- package/src/components/Form/Input.tsx +11 -2
- package/src/components/Form/Radio.tsx +11 -2
- package/src/components/Form/Select.tsx +11 -2
- package/src/components/Form/Textarea.tsx +11 -2
- package/src/components/Form/index.ts +7 -7
- package/src/components/Hero/Hero.tsx +13 -4
- package/src/components/Hero/index.ts +2 -2
- package/src/components/Icon/Icon.tsx +12 -3
- package/src/components/List/List.tsx +13 -2
- package/src/components/Messages/Messages.tsx +11 -4
- package/src/components/Messages/index.ts +1 -1
- package/src/components/Modal/Modal.tsx +11 -2
- package/src/components/Navbar/Menu.tsx +12 -1
- package/src/components/Navbar/Nav.tsx +12 -2
- package/src/components/Navbar/Navbar.tsx +14 -2
- package/src/components/Pagination/Pagination.tsx +14 -2
- package/src/components/PhotoViewer/PhotoViewer.tsx +10 -1
- package/src/components/Popover/Popover.tsx +13 -2
- package/src/components/ProductReview/ProductReview.tsx +11 -2
- package/src/components/Progress/Progress.tsx +10 -2
- package/src/components/Rating/Rating.tsx +9 -2
- package/src/components/River/River.tsx +11 -4
- package/src/components/River/index.ts +1 -3
- package/src/components/SectionIntro/SectionIntro.tsx +11 -2
- package/src/components/Spinner/Spinner.tsx +12 -2
- package/src/components/Spinner/index.ts +2 -1
- package/src/components/Steps/Steps.tsx +13 -4
- package/src/components/Tab/Tab.tsx +14 -4
- package/src/components/Testimonial/Testimonial.tsx +13 -4
- package/src/components/Todo/Todo.tsx +11 -2
- package/src/components/Toggle/Toggle.tsx +13 -3
- package/src/components/Tooltip/Tooltip.tsx +14 -3
- package/src/components/Upload/Upload.tsx +12 -3
- package/src/components/index.ts +81 -40
- package/src/index.ts +5 -9
- package/dist/js/13.atomix-0.1.4.react.cjs.js +0 -2
- package/dist/js/13.atomix-0.1.4.react.cjs.js.map +0 -1
- package/dist/js/13.atomix-0.1.4.react.esm.js +0 -2
- package/dist/js/13.atomix-0.1.4.react.esm.js.map +0 -1
- package/dist/js/13.atomix-0.1.4.react.js +0 -2
- package/dist/js/13.atomix-0.1.4.react.js.map +0 -1
- package/dist/js/646.atomix-0.1.4.react.cjs.js +0 -2
- package/dist/js/646.atomix-0.1.4.react.cjs.js.map +0 -1
- package/dist/js/646.atomix-0.1.4.react.esm.js +0 -2
- package/dist/js/646.atomix-0.1.4.react.esm.js.map +0 -1
- package/dist/js/646.atomix-0.1.4.react.js +0 -2
- package/dist/js/646.atomix-0.1.4.react.js.map +0 -1
- package/dist/js/979.atomix-0.1.4.react.cjs.js +0 -2
- package/dist/js/979.atomix-0.1.4.react.cjs.js.map +0 -1
- package/dist/js/979.atomix-0.1.4.react.esm.js +0 -2
- package/dist/js/979.atomix-0.1.4.react.esm.js.map +0 -1
- package/dist/js/979.atomix-0.1.4.react.js +0 -2
- package/dist/js/979.atomix-0.1.4.react.js.map +0 -1
- package/dist/js/989.atomix-0.1.4.react.cjs.js +0 -2
- package/dist/js/989.atomix-0.1.4.react.cjs.js.map +0 -1
- package/dist/js/989.atomix-0.1.4.react.esm.js +0 -2
- package/dist/js/989.atomix-0.1.4.react.esm.js.map +0 -1
- package/dist/js/989.atomix-0.1.4.react.js +0 -2
- package/dist/js/989.atomix-0.1.4.react.js.map +0 -1
- package/dist/js/atomix-0.1.4.react.cjs.js +0 -2
- package/dist/js/atomix-0.1.4.react.cjs.js.map +0 -1
- package/dist/js/atomix-0.1.4.react.esm.js +0 -2
- package/dist/js/atomix-0.1.4.react.esm.js.map +0 -1
- package/dist/js/atomix-0.1.4.react.js +0 -2
- package/dist/js/atomix-0.1.4.react.js.map +0 -1
- package/dist/types/components/Accordion/Accordion.d.ts +0 -17
- package/dist/types/components/Accordion/index.d.ts +0 -2
- package/dist/types/components/Accordion/scripts/accordionInteractions.d.ts +0 -19
- package/dist/types/components/Accordion/scripts/constants.d.ts +0 -24
- package/dist/types/components/Accordion/scripts/index.d.ts +0 -100
- package/dist/types/components/AtomixLogo/AtomixLogo.d.ts +0 -8
- package/dist/types/components/AtomixLogo/index.d.ts +0 -3
- package/dist/types/components/AtomixLogo.d.ts +0 -8
- package/dist/types/components/Avatar/Avatar.d.ts +0 -4
- package/dist/types/components/Avatar/AvatarGroup.d.ts +0 -4
- package/dist/types/components/Avatar/index.d.ts +0 -2
- package/dist/types/components/Avatar/scripts/index.d.ts +0 -105
- package/dist/types/components/Badge/Badge.d.ts +0 -3
- package/dist/types/components/Badge/index.d.ts +0 -3
- package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +0 -43
- package/dist/types/components/Breadcrumb/index.d.ts +0 -2
- 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/Breadcrumb/scripts/types.d.ts +0 -59
- package/dist/types/components/Button/Button.d.ts +0 -10
- package/dist/types/components/Button/index.d.ts +0 -5
- 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/Callout/Callout.d.ts +0 -6
- package/dist/types/components/Callout/index.d.ts +0 -1
- package/dist/types/components/Callout/scripts/CalloutInteractions.d.ts +0 -92
- package/dist/types/components/Callout/scripts/index.d.ts +0 -53
- package/dist/types/components/Card/Card.d.ts +0 -4
- package/dist/types/components/Card/ElevationCard.d.ts +0 -4
- package/dist/types/components/Card/index.d.ts +0 -9
- package/dist/types/components/Card/scripts/cardInteractions.d.ts +0 -37
- package/dist/types/components/Card/scripts/index.d.ts +0 -80
- package/dist/types/components/ColorModeToggle/ColorModeToggle.d.ts +0 -6
- package/dist/types/components/ColorModeToggle/index.d.ts +0 -1
- package/dist/types/components/Countdown/Countdown.d.ts +0 -17
- package/dist/types/components/Countdown/index.d.ts +0 -2
- package/dist/types/components/Countdown/scripts/index.d.ts +0 -71
- package/dist/types/components/DataTable/DataTable.d.ts +0 -17
- package/dist/types/components/DataTable/index.d.ts +0 -2
- package/dist/types/components/DataTable/scripts/index.d.ts +0 -174
- package/dist/types/components/DatePicker/DatePicker.d.ts +0 -8
- package/dist/types/components/DatePicker/index.d.ts +0 -4
- 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/DatePicker/types.d.ts +0 -127
- package/dist/types/components/DatePicker/utils.d.ts +0 -39
- package/dist/types/components/Dropdown/Dropdown.d.ts +0 -18
- package/dist/types/components/Dropdown/index.d.ts +0 -5
- 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/EdgePanel.d.ts +0 -3
- package/dist/types/components/EdgePanel/index.d.ts +0 -1
- 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/Form/Checkbox.d.ts +0 -7
- package/dist/types/components/Form/Form.d.ts +0 -7
- package/dist/types/components/Form/FormGroup.d.ts +0 -7
- package/dist/types/components/Form/Input.d.ts +0 -7
- package/dist/types/components/Form/Radio.d.ts +0 -7
- package/dist/types/components/Form/Select.d.ts +0 -7
- package/dist/types/components/Form/Textarea.d.ts +0 -7
- package/dist/types/components/Form/index.d.ts +0 -7
- package/dist/types/components/Hero/Hero.d.ts +0 -4
- package/dist/types/components/Hero/index.d.ts +0 -5
- 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/Icon/Icon.d.ts +0 -36
- package/dist/types/components/Icon/index.d.ts +0 -2
- package/dist/types/components/List/List.d.ts +0 -4
- package/dist/types/components/List/ListGroup.d.ts +0 -4
- package/dist/types/components/List/index.d.ts +0 -2
- package/dist/types/components/Messages/Messages.d.ts +0 -8
- package/dist/types/components/Messages/index.d.ts +0 -2
- package/dist/types/components/Messages/scripts/componentInteractions.d.ts +0 -49
- package/dist/types/components/Messages/scripts/index.d.ts +0 -110
- package/dist/types/components/Modal/Modal.d.ts +0 -7
- package/dist/types/components/Modal/index.d.ts +0 -1
- 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/Navbar/MegaMenu.d.ts +0 -5
- package/dist/types/components/Navbar/Menu.d.ts +0 -13
- package/dist/types/components/Navbar/Nav.d.ts +0 -3
- package/dist/types/components/Navbar/NavDropdown.d.ts +0 -3
- package/dist/types/components/Navbar/NavItem.d.ts +0 -3
- package/dist/types/components/Navbar/Navbar.d.ts +0 -3
- package/dist/types/components/Navbar/index.d.ts +0 -6
- package/dist/types/components/Pagination/Pagination.d.ts +0 -6
- package/dist/types/components/Pagination/index.d.ts +0 -1
- package/dist/types/components/Pagination/scripts/index.d.ts +0 -52
- package/dist/types/components/PhotoViewer/PhotoViewer.d.ts +0 -21
- package/dist/types/components/PhotoViewer/PhotoViewerHeader.d.ts +0 -45
- package/dist/types/components/PhotoViewer/PhotoViewerImage.d.ts +0 -51
- package/dist/types/components/PhotoViewer/PhotoViewerInfo.d.ts +0 -21
- package/dist/types/components/PhotoViewer/PhotoViewerNavigation.d.ts +0 -28
- package/dist/types/components/PhotoViewer/PhotoViewerThumbnails.d.ts +0 -21
- package/dist/types/components/PhotoViewer/examples/ImageGallery.d.ts +0 -11
- package/dist/types/components/PhotoViewer/examples/SimpleGallery.d.ts +0 -3
- package/dist/types/components/PhotoViewer/examples/index.d.ts +0 -2
- package/dist/types/components/PhotoViewer/index.d.ts +0 -12
- package/dist/types/components/PhotoViewer/scripts/PhotoViewerInteractions.d.ts +0 -44
- package/dist/types/components/PhotoViewer/scripts/index.d.ts +0 -110
- package/dist/types/components/Popover/Popover.d.ts +0 -10
- package/dist/types/components/Popover/index.d.ts +0 -4
- package/dist/types/components/Popover/scripts/componentInteractions.d.ts +0 -60
- package/dist/types/components/Popover/scripts/index.d.ts +0 -89
- package/dist/types/components/ProductReview/ProductReview.d.ts +0 -41
- package/dist/types/components/ProductReview/index.d.ts +0 -2
- 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/ProductReview/scripts/index.d.ts +0 -2
- package/dist/types/components/Progress/Progress.d.ts +0 -3
- package/dist/types/components/Progress/index.d.ts +0 -1
- package/dist/types/components/Progress/scripts/componentInteractions.d.ts +0 -29
- package/dist/types/components/Progress/scripts/index.d.ts +0 -64
- package/dist/types/components/Rating/Rating.d.ts +0 -21
- package/dist/types/components/Rating/index.d.ts +0 -4
- 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/River/River.d.ts +0 -8
- package/dist/types/components/River/index.d.ts +0 -4
- package/dist/types/components/River/scripts/index.d.ts +0 -40
- package/dist/types/components/SectionIntro/SectionIntro.d.ts +0 -62
- package/dist/types/components/SectionIntro/index.d.ts +0 -4
- package/dist/types/components/SectionIntro/scripts/componentInteractions.d.ts +0 -13
- package/dist/types/components/SectionIntro/scripts/index.d.ts +0 -36
- package/dist/types/components/Spinner/Spinner.d.ts +0 -3
- package/dist/types/components/Spinner/index.d.ts +0 -1
- package/dist/types/components/Steps/Steps.d.ts +0 -42
- package/dist/types/components/Steps/index.d.ts +0 -4
- package/dist/types/components/Steps/scripts/index.d.ts +0 -58
- package/dist/types/components/Tab/Tab.d.ts +0 -41
- package/dist/types/components/Tab/index.d.ts +0 -2
- package/dist/types/components/Tab/scripts/index.d.ts +0 -61
- package/dist/types/components/Testimonial/Testimonial.d.ts +0 -46
- package/dist/types/components/Testimonial/index.d.ts +0 -4
- package/dist/types/components/Testimonial/scripts/index.d.ts +0 -36
- package/dist/types/components/Todo/Todo.d.ts +0 -4
- package/dist/types/components/Todo/index.d.ts +0 -1
- 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/Todo/scripts/types.d.ts +0 -17
- package/dist/types/components/Toggle/Toggle.d.ts +0 -27
- package/dist/types/components/Toggle/index.d.ts +0 -2
- package/dist/types/components/Toggle/scripts/index.d.ts +0 -50
- package/dist/types/components/Toggle/scripts/toggleInteractions.d.ts +0 -23
- package/dist/types/components/Tooltip/Tooltip.d.ts +0 -32
- package/dist/types/components/Tooltip/index.d.ts +0 -3
- package/dist/types/components/Tooltip/scripts/index.d.ts +0 -123
- package/dist/types/components/Tooltip/scripts/tooltipInteractions.d.ts +0 -23
- package/dist/types/components/Upload/Upload.d.ts +0 -64
- package/dist/types/components/Upload/index.d.ts +0 -4
- package/dist/types/components/Upload/scripts/index.d.ts +0 -118
- package/dist/types/components/index.d.ts +0 -37
- package/dist/types/htmlComponentsEntry.d.ts +0 -160
- package/dist/types/index.d.ts +0 -3
- package/dist/types/layouts/Grid/Container.d.ts +0 -38
- package/dist/types/layouts/Grid/Grid.d.ts +0 -37
- package/dist/types/layouts/Grid/GridCol.d.ts +0 -64
- package/dist/types/layouts/Grid/Row.d.ts +0 -38
- package/dist/types/layouts/Grid/index.d.ts +0 -8
- package/dist/types/layouts/MasonryGrid/MasonryGrid.d.ts +0 -71
- package/dist/types/layouts/MasonryGrid/MasonryGridItem.d.ts +0 -24
- package/dist/types/layouts/MasonryGrid/index.d.ts +0 -4
- package/dist/types/lib/composables/index.d.ts +0 -21
- package/dist/types/lib/composables/useAccordion.d.ts +0 -30
- package/dist/types/lib/composables/useBadge.d.ts +0 -10
- package/dist/types/lib/composables/useBreadcrumb.d.ts +0 -13
- package/dist/types/lib/composables/useButton.d.ts +0 -11
- package/dist/types/lib/composables/useCallout.d.ts +0 -11
- package/dist/types/lib/composables/useCard.d.ts +0 -8
- package/dist/types/lib/composables/useCheckbox.d.ts +0 -11
- package/dist/types/lib/composables/useDataTable.d.ts +0 -66
- package/dist/types/lib/composables/useDatePicker.d.ts +0 -91
- package/dist/types/lib/composables/useDropdown.d.ts +0 -26
- package/dist/types/lib/composables/useEdgePanel.d.ts +0 -15
- package/dist/types/lib/composables/useForm.d.ts +0 -12
- package/dist/types/lib/composables/useFormGroup.d.ts +0 -10
- package/dist/types/lib/composables/useHero.d.ts +0 -53
- package/dist/types/lib/composables/useInput.d.ts +0 -12
- package/dist/types/lib/composables/useMessages.d.ts +0 -38
- package/dist/types/lib/composables/useModal.d.ts +0 -40
- package/dist/types/lib/composables/useNavbar.d.ts +0 -59
- package/dist/types/lib/composables/usePagination.d.ts +0 -13
- package/dist/types/lib/composables/usePhotoViewer.d.ts +0 -57
- package/dist/types/lib/composables/usePopover.d.ts +0 -30
- package/dist/types/lib/composables/useProgress.d.ts +0 -38
- package/dist/types/lib/composables/useRadio.d.ts +0 -10
- package/dist/types/lib/composables/useRating.d.ts +0 -52
- package/dist/types/lib/composables/useRiver.d.ts +0 -107
- package/dist/types/lib/composables/useSelect.d.ts +0 -10
- package/dist/types/lib/composables/useSpinner.d.ts +0 -10
- package/dist/types/lib/composables/useTextarea.d.ts +0 -10
- package/dist/types/lib/composables/useTodo.d.ts +0 -19
- package/dist/types/lib/constants/components.d.ts +0 -921
- package/dist/types/lib/constants/index.d.ts +0 -1
- package/dist/types/lib/index.d.ts +0 -4
- package/dist/types/lib/types/components.d.ts +0 -1947
- package/dist/types/lib/types/index.d.ts +0 -2
- package/dist/types/lib/utils/dom.d.ts +0 -26
- package/dist/types/lib/utils/icons.d.ts +0 -20
- package/dist/types/lib/utils/index.d.ts +0 -2
- package/dist/types/lib/utils/useForkRef.d.ts +0 -10
|
@@ -1,1947 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Common component size options
|
|
4
|
-
*/
|
|
5
|
-
export type Size = 'sm' | 'md' | 'lg';
|
|
6
|
-
/**
|
|
7
|
-
* Theme color variants
|
|
8
|
-
*/
|
|
9
|
-
export type ThemeColor = 'primary' | 'secondary' | 'tertiary' | 'invert' | 'brand' | 'error' | 'success' | 'warning' | 'info' | 'light' | 'dark';
|
|
10
|
-
/**
|
|
11
|
-
* Component variant including theme colors and outline variants
|
|
12
|
-
*/
|
|
13
|
-
export type Variant = ThemeColor | `outline-${ThemeColor}` | 'link';
|
|
14
|
-
/**
|
|
15
|
-
* Base component properties interface
|
|
16
|
-
*/
|
|
17
|
-
export interface BaseComponentProps {
|
|
18
|
-
/**
|
|
19
|
-
* Additional CSS class names
|
|
20
|
-
*/
|
|
21
|
-
className?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Component disabled state
|
|
24
|
-
*/
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* CSS class state modifiers
|
|
29
|
-
*/
|
|
30
|
-
export type StateModifier = 'is-open' | 'is-closed' | 'is-active' | 'is-disabled' | 'is-loading' | 'is-selected' | 'is-animating' | 'is-hovered';
|
|
31
|
-
/**
|
|
32
|
-
* Icon position options
|
|
33
|
-
*/
|
|
34
|
-
export type IconPosition = 'left' | 'right';
|
|
35
|
-
export type listvariant = 'dash' | 'number' | 'text';
|
|
36
|
-
/**;
|
|
37
|
-
* List component properties
|
|
38
|
-
*/
|
|
39
|
-
export interface ListProps extends BaseComponentProps {
|
|
40
|
-
children?: ReactNode;
|
|
41
|
-
/**
|
|
42
|
-
* List items
|
|
43
|
-
*/
|
|
44
|
-
items?: ReactNode[];
|
|
45
|
-
/**
|
|
46
|
-
* List variant
|
|
47
|
-
*/
|
|
48
|
-
variant?: listvariant;
|
|
49
|
-
/**
|
|
50
|
-
* List size
|
|
51
|
-
*/
|
|
52
|
-
size?: Size;
|
|
53
|
-
/**
|
|
54
|
-
* Whether the list is ordered
|
|
55
|
-
*/
|
|
56
|
-
ordered?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Whether to display list items inline
|
|
59
|
-
*/
|
|
60
|
-
inline?: boolean;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* List group component properties
|
|
64
|
-
*/
|
|
65
|
-
export interface ListGroupProps extends BaseComponentProps {
|
|
66
|
-
/**
|
|
67
|
-
* List group children
|
|
68
|
-
*/
|
|
69
|
-
children?: ReactNode;
|
|
70
|
-
/**
|
|
71
|
-
* List group variant
|
|
72
|
-
*/
|
|
73
|
-
variant?: Variant;
|
|
74
|
-
/**
|
|
75
|
-
* List group size
|
|
76
|
-
*/
|
|
77
|
-
size?: Size;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Button component properties
|
|
81
|
-
*/
|
|
82
|
-
export interface ButtonProps extends BaseComponentProps {
|
|
83
|
-
/**
|
|
84
|
-
* Button contents
|
|
85
|
-
*/
|
|
86
|
-
label: string;
|
|
87
|
-
/**
|
|
88
|
-
* Optional click handler
|
|
89
|
-
*/
|
|
90
|
-
onClick?: () => void;
|
|
91
|
-
/**
|
|
92
|
-
* Button variant
|
|
93
|
-
*/
|
|
94
|
-
variant?: Variant;
|
|
95
|
-
/**
|
|
96
|
-
* Button size
|
|
97
|
-
*/
|
|
98
|
-
size?: Size;
|
|
99
|
-
/**
|
|
100
|
-
* Optional icon
|
|
101
|
-
*/
|
|
102
|
-
icon?: ReactNode;
|
|
103
|
-
/**
|
|
104
|
-
* Icon only button
|
|
105
|
-
*/
|
|
106
|
-
iconOnly?: boolean;
|
|
107
|
-
/**
|
|
108
|
-
* Make button fully rounded (pill shape)
|
|
109
|
-
*/
|
|
110
|
-
rounded?: boolean;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Badge component properties
|
|
114
|
-
*/
|
|
115
|
-
export interface BadgeProps extends BaseComponentProps {
|
|
116
|
-
/**
|
|
117
|
-
* Badge text content
|
|
118
|
-
*/
|
|
119
|
-
label: string;
|
|
120
|
-
/**
|
|
121
|
-
* Badge color variant
|
|
122
|
-
*/
|
|
123
|
-
variant?: ThemeColor;
|
|
124
|
-
/**
|
|
125
|
-
* Badge size
|
|
126
|
-
*/
|
|
127
|
-
size?: Size;
|
|
128
|
-
/**
|
|
129
|
-
* Optional icon
|
|
130
|
-
*/
|
|
131
|
-
icon?: ReactNode;
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Callout component properties
|
|
135
|
-
*/
|
|
136
|
-
export interface CalloutProps extends BaseComponentProps {
|
|
137
|
-
/**
|
|
138
|
-
* Callout title
|
|
139
|
-
*/
|
|
140
|
-
title?: ReactNode;
|
|
141
|
-
/**
|
|
142
|
-
* Callout content
|
|
143
|
-
*/
|
|
144
|
-
children?: ReactNode;
|
|
145
|
-
/**
|
|
146
|
-
* Optional icon
|
|
147
|
-
*/
|
|
148
|
-
icon?: ReactNode;
|
|
149
|
-
/**
|
|
150
|
-
* Callout variant
|
|
151
|
-
*/
|
|
152
|
-
variant?: ThemeColor;
|
|
153
|
-
/**
|
|
154
|
-
* Optional close handler
|
|
155
|
-
*/
|
|
156
|
-
onClose?: () => void;
|
|
157
|
-
/**
|
|
158
|
-
* Optional action buttons
|
|
159
|
-
*/
|
|
160
|
-
actions?: ReactNode;
|
|
161
|
-
/**
|
|
162
|
-
* Display in one line mode
|
|
163
|
-
*/
|
|
164
|
-
oneLine?: boolean;
|
|
165
|
-
/**
|
|
166
|
-
* Display as toast notification
|
|
167
|
-
*/
|
|
168
|
-
toast?: boolean;
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* Accordion component properties
|
|
172
|
-
*/
|
|
173
|
-
export interface AccordionProps extends BaseComponentProps {
|
|
174
|
-
/**
|
|
175
|
-
* Title of the accordion
|
|
176
|
-
*/
|
|
177
|
-
title: string;
|
|
178
|
-
/**
|
|
179
|
-
* Content to be shown when accordion is expanded
|
|
180
|
-
*/
|
|
181
|
-
children: ReactNode;
|
|
182
|
-
/**
|
|
183
|
-
* Whether the accordion is initially open
|
|
184
|
-
*/
|
|
185
|
-
defaultOpen?: boolean;
|
|
186
|
-
/**
|
|
187
|
-
* Position of the icon (right or left)
|
|
188
|
-
*/
|
|
189
|
-
iconPosition?: IconPosition;
|
|
190
|
-
/**
|
|
191
|
-
* Custom icon for the accordion
|
|
192
|
-
*/
|
|
193
|
-
icon?: ReactNode;
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* Accordion state
|
|
197
|
-
*/
|
|
198
|
-
export interface AccordionState {
|
|
199
|
-
/**
|
|
200
|
-
* Whether the accordion is open
|
|
201
|
-
*/
|
|
202
|
-
isOpen: boolean;
|
|
203
|
-
/**
|
|
204
|
-
* Current panel height CSS value
|
|
205
|
-
*/
|
|
206
|
-
panelHeight: string;
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* Common element ref types
|
|
210
|
-
*/
|
|
211
|
-
export interface ElementRefs {
|
|
212
|
-
panelRef?: React.RefObject<HTMLDivElement>;
|
|
213
|
-
contentRef?: React.RefObject<HTMLDivElement>;
|
|
214
|
-
buttonRef?: React.RefObject<HTMLButtonElement>;
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* Hero alignment options
|
|
218
|
-
*/
|
|
219
|
-
export type HeroAlignment = 'left' | 'center' | 'right';
|
|
220
|
-
/**
|
|
221
|
-
* Hero component properties
|
|
222
|
-
*/
|
|
223
|
-
export interface HeroProps extends BaseComponentProps {
|
|
224
|
-
/**
|
|
225
|
-
* Hero title
|
|
226
|
-
*/
|
|
227
|
-
title: string;
|
|
228
|
-
/**
|
|
229
|
-
* Hero subtitle
|
|
230
|
-
*/
|
|
231
|
-
subtitle?: string;
|
|
232
|
-
/**
|
|
233
|
-
* Hero text content
|
|
234
|
-
*/
|
|
235
|
-
text?: string;
|
|
236
|
-
/**
|
|
237
|
-
* Image source for the hero
|
|
238
|
-
*/
|
|
239
|
-
imageSrc?: string;
|
|
240
|
-
/**
|
|
241
|
-
* Image alt text
|
|
242
|
-
*/
|
|
243
|
-
imageAlt?: string;
|
|
244
|
-
/**
|
|
245
|
-
* Content alignment
|
|
246
|
-
*/
|
|
247
|
-
alignment?: HeroAlignment;
|
|
248
|
-
/**
|
|
249
|
-
* Background image source
|
|
250
|
-
*/
|
|
251
|
-
backgroundImageSrc?: string;
|
|
252
|
-
/**
|
|
253
|
-
* Whether to show the background overlay
|
|
254
|
-
*/
|
|
255
|
-
showOverlay?: boolean;
|
|
256
|
-
/**
|
|
257
|
-
* Whether the hero should take full viewport height
|
|
258
|
-
*/
|
|
259
|
-
fullViewportHeight?: boolean;
|
|
260
|
-
/**
|
|
261
|
-
* Actions to display in the hero
|
|
262
|
-
*/
|
|
263
|
-
actions?: ReactNode;
|
|
264
|
-
/**
|
|
265
|
-
* Custom grid column size for image (default is 7)
|
|
266
|
-
*/
|
|
267
|
-
imageColSize?: number;
|
|
268
|
-
/**
|
|
269
|
-
* Custom grid column size for content (default is 5)
|
|
270
|
-
*/
|
|
271
|
-
contentColSize?: number;
|
|
272
|
-
/**
|
|
273
|
-
* Custom width for the hero content (overrides the default CSS variable)
|
|
274
|
-
*/
|
|
275
|
-
contentWidth?: string;
|
|
276
|
-
/**
|
|
277
|
-
* Enable parallax effect on background image
|
|
278
|
-
*/
|
|
279
|
-
parallax?: boolean;
|
|
280
|
-
/**
|
|
281
|
-
* Parallax effect intensity (0-1)
|
|
282
|
-
*/
|
|
283
|
-
parallaxIntensity?: number;
|
|
284
|
-
/**
|
|
285
|
-
* Video background URL
|
|
286
|
-
*/
|
|
287
|
-
videoBackground?: string;
|
|
288
|
-
/**
|
|
289
|
-
* Video background options
|
|
290
|
-
*/
|
|
291
|
-
videoOptions?: {
|
|
292
|
-
/**
|
|
293
|
-
* Whether the video should autoplay
|
|
294
|
-
*/
|
|
295
|
-
autoplay?: boolean;
|
|
296
|
-
/**
|
|
297
|
-
* Whether the video should loop
|
|
298
|
-
*/
|
|
299
|
-
loop?: boolean;
|
|
300
|
-
/**
|
|
301
|
-
* Whether the video should be muted
|
|
302
|
-
*/
|
|
303
|
-
muted?: boolean;
|
|
304
|
-
/**
|
|
305
|
-
* Poster image URL for the video
|
|
306
|
-
*/
|
|
307
|
-
posterUrl?: string;
|
|
308
|
-
};
|
|
309
|
-
}
|
|
310
|
-
/**
|
|
311
|
-
* Spinner component properties
|
|
312
|
-
*/
|
|
313
|
-
export interface SpinnerProps extends BaseComponentProps {
|
|
314
|
-
/**
|
|
315
|
-
* Spinner color variant
|
|
316
|
-
*/
|
|
317
|
-
variant?: ThemeColor;
|
|
318
|
-
/**
|
|
319
|
-
* Spinner size
|
|
320
|
-
*/
|
|
321
|
-
size?: Size;
|
|
322
|
-
/**
|
|
323
|
-
* Whether the spinner should be displayed fullscreen
|
|
324
|
-
*/
|
|
325
|
-
fullscreen?: boolean;
|
|
326
|
-
}
|
|
327
|
-
/**
|
|
328
|
-
* Navbar position options
|
|
329
|
-
*/
|
|
330
|
-
export type NavbarPosition = 'static' | 'fixed' | 'fixed-bottom';
|
|
331
|
-
/**
|
|
332
|
-
* Nav item alignment options
|
|
333
|
-
*/
|
|
334
|
-
export type NavAlignment = 'start' | 'center' | 'end';
|
|
335
|
-
/**
|
|
336
|
-
* Navbar component properties
|
|
337
|
-
*/
|
|
338
|
-
export interface NavbarProps extends BaseComponentProps {
|
|
339
|
-
/**
|
|
340
|
-
* Brand/logo component or text
|
|
341
|
-
*/
|
|
342
|
-
brand?: ReactNode;
|
|
343
|
-
/**
|
|
344
|
-
* Navbar navigation items
|
|
345
|
-
*/
|
|
346
|
-
children?: ReactNode;
|
|
347
|
-
/**
|
|
348
|
-
* Optional variant/color scheme
|
|
349
|
-
*/
|
|
350
|
-
variant?: ThemeColor;
|
|
351
|
-
/**
|
|
352
|
-
* Navbar position
|
|
353
|
-
*/
|
|
354
|
-
position?: NavbarPosition;
|
|
355
|
-
/**
|
|
356
|
-
* Container max width (default is from settings)
|
|
357
|
-
*/
|
|
358
|
-
containerWidth?: string;
|
|
359
|
-
/**
|
|
360
|
-
* Whether to collapse navbar on mobile
|
|
361
|
-
*/
|
|
362
|
-
collapsible?: boolean;
|
|
363
|
-
/**
|
|
364
|
-
* Whether navbar is expanded (for controlled component)
|
|
365
|
-
*/
|
|
366
|
-
expanded?: boolean;
|
|
367
|
-
/**
|
|
368
|
-
* Callback when expansion state changes
|
|
369
|
-
*/
|
|
370
|
-
onToggle?: (expanded: boolean) => void;
|
|
371
|
-
}
|
|
372
|
-
/**
|
|
373
|
-
* Nav component properties
|
|
374
|
-
*/
|
|
375
|
-
export interface NavProps extends BaseComponentProps {
|
|
376
|
-
/**
|
|
377
|
-
* Navigation items
|
|
378
|
-
*/
|
|
379
|
-
children: ReactNode;
|
|
380
|
-
/**
|
|
381
|
-
* Alignment of nav items
|
|
382
|
-
*/
|
|
383
|
-
alignment?: NavAlignment;
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* Nav item properties
|
|
387
|
-
*/
|
|
388
|
-
export interface NavItemProps extends BaseComponentProps {
|
|
389
|
-
/**
|
|
390
|
-
* Item content
|
|
391
|
-
*/
|
|
392
|
-
children: ReactNode;
|
|
393
|
-
/**
|
|
394
|
-
* Whether this item has a dropdown
|
|
395
|
-
*/
|
|
396
|
-
dropdown?: boolean;
|
|
397
|
-
/**
|
|
398
|
-
* Whether this item has a mega menu
|
|
399
|
-
*/
|
|
400
|
-
megaMenu?: boolean;
|
|
401
|
-
/**
|
|
402
|
-
* Whether this item is active
|
|
403
|
-
*/
|
|
404
|
-
active?: boolean;
|
|
405
|
-
/**
|
|
406
|
-
* Optional href for link items
|
|
407
|
-
*/
|
|
408
|
-
href?: string;
|
|
409
|
-
/**
|
|
410
|
-
* Optional click handler
|
|
411
|
-
*/
|
|
412
|
-
onClick?: () => void;
|
|
413
|
-
/**
|
|
414
|
-
* Whether dropdown/mega menu is expanded
|
|
415
|
-
*/
|
|
416
|
-
'aria-expanded'?: boolean;
|
|
417
|
-
}
|
|
418
|
-
/**
|
|
419
|
-
* Nav dropdown properties
|
|
420
|
-
*/
|
|
421
|
-
export interface NavDropdownProps extends BaseComponentProps {
|
|
422
|
-
/**
|
|
423
|
-
* Dropdown title/trigger content
|
|
424
|
-
*/
|
|
425
|
-
title: ReactNode;
|
|
426
|
-
/**
|
|
427
|
-
* Dropdown menu items
|
|
428
|
-
*/
|
|
429
|
-
children: ReactNode;
|
|
430
|
-
/**
|
|
431
|
-
* Dropdown alignment
|
|
432
|
-
*/
|
|
433
|
-
alignment?: 'start' | 'center' | 'end';
|
|
434
|
-
/**
|
|
435
|
-
* Whether it's a mega menu (full width)
|
|
436
|
-
*/
|
|
437
|
-
megaMenu?: boolean;
|
|
438
|
-
}
|
|
439
|
-
/**
|
|
440
|
-
* Menu component properties
|
|
441
|
-
*/
|
|
442
|
-
export interface MenuProps extends BaseComponentProps {
|
|
443
|
-
/**
|
|
444
|
-
* Menu content
|
|
445
|
-
*/
|
|
446
|
-
children: ReactNode;
|
|
447
|
-
}
|
|
448
|
-
/**
|
|
449
|
-
* Menu item properties
|
|
450
|
-
*/
|
|
451
|
-
export interface MenuItemProps extends BaseComponentProps {
|
|
452
|
-
/**
|
|
453
|
-
* Item content
|
|
454
|
-
*/
|
|
455
|
-
children: ReactNode;
|
|
456
|
-
/**
|
|
457
|
-
* Item href
|
|
458
|
-
*/
|
|
459
|
-
href?: string;
|
|
460
|
-
/**
|
|
461
|
-
* Item icon
|
|
462
|
-
*/
|
|
463
|
-
icon?: ReactNode;
|
|
464
|
-
/**
|
|
465
|
-
* Whether item is active
|
|
466
|
-
*/
|
|
467
|
-
active?: boolean;
|
|
468
|
-
/**
|
|
469
|
-
* Item click handler
|
|
470
|
-
*/
|
|
471
|
-
onClick?: () => void;
|
|
472
|
-
}
|
|
473
|
-
/**
|
|
474
|
-
* MegaMenu component properties
|
|
475
|
-
*/
|
|
476
|
-
export interface MegaMenuProps extends BaseComponentProps {
|
|
477
|
-
/**
|
|
478
|
-
* MegaMenu content
|
|
479
|
-
*/
|
|
480
|
-
children: ReactNode;
|
|
481
|
-
}
|
|
482
|
-
/**
|
|
483
|
-
* MegaMenu column properties
|
|
484
|
-
*/
|
|
485
|
-
export interface MegaMenuColumnProps extends BaseComponentProps {
|
|
486
|
-
/**
|
|
487
|
-
* Column title
|
|
488
|
-
*/
|
|
489
|
-
title?: ReactNode;
|
|
490
|
-
/**
|
|
491
|
-
* Column icon
|
|
492
|
-
*/
|
|
493
|
-
icon?: ReactNode;
|
|
494
|
-
/**
|
|
495
|
-
* Column content
|
|
496
|
-
*/
|
|
497
|
-
children: ReactNode;
|
|
498
|
-
/**
|
|
499
|
-
* Column width (auto by default)
|
|
500
|
-
*/
|
|
501
|
-
width?: 'auto' | number;
|
|
502
|
-
}
|
|
503
|
-
/**
|
|
504
|
-
* MegaMenu link properties
|
|
505
|
-
*/
|
|
506
|
-
export interface MegaMenuLinkProps extends BaseComponentProps {
|
|
507
|
-
/**
|
|
508
|
-
* Link href
|
|
509
|
-
*/
|
|
510
|
-
href: string;
|
|
511
|
-
/**
|
|
512
|
-
* Link content
|
|
513
|
-
*/
|
|
514
|
-
children: ReactNode;
|
|
515
|
-
/**
|
|
516
|
-
* Link click handler
|
|
517
|
-
*/
|
|
518
|
-
onClick?: () => void;
|
|
519
|
-
}
|
|
520
|
-
/**
|
|
521
|
-
* EdgePanel position options
|
|
522
|
-
*/
|
|
523
|
-
export type EdgePanelPosition = 'start' | 'end' | 'top' | 'bottom';
|
|
524
|
-
/**
|
|
525
|
-
* EdgePanel animation mode options
|
|
526
|
-
*/
|
|
527
|
-
export type EdgePanelMode = 'slide' | 'push' | 'none';
|
|
528
|
-
/**
|
|
529
|
-
* EdgePanel component properties
|
|
530
|
-
*/
|
|
531
|
-
export interface EdgePanelProps extends BaseComponentProps {
|
|
532
|
-
/**
|
|
533
|
-
* Panel title
|
|
534
|
-
*/
|
|
535
|
-
title?: ReactNode;
|
|
536
|
-
/**
|
|
537
|
-
* Panel content
|
|
538
|
-
*/
|
|
539
|
-
children: ReactNode;
|
|
540
|
-
/**
|
|
541
|
-
* Panel position
|
|
542
|
-
*/
|
|
543
|
-
position?: EdgePanelPosition;
|
|
544
|
-
/**
|
|
545
|
-
* Animation mode
|
|
546
|
-
*/
|
|
547
|
-
mode?: EdgePanelMode;
|
|
548
|
-
/**
|
|
549
|
-
* Whether the panel is open
|
|
550
|
-
*/
|
|
551
|
-
isOpen?: boolean;
|
|
552
|
-
/**
|
|
553
|
-
* Open/close callback
|
|
554
|
-
*/
|
|
555
|
-
onOpenChange?: (open: boolean) => void;
|
|
556
|
-
/**
|
|
557
|
-
* Show backdrop
|
|
558
|
-
*/
|
|
559
|
-
backdrop?: boolean;
|
|
560
|
-
/**
|
|
561
|
-
* Close when clicking backdrop
|
|
562
|
-
*/
|
|
563
|
-
closeOnBackdropClick?: boolean;
|
|
564
|
-
/**
|
|
565
|
-
* Close when pressing escape key
|
|
566
|
-
*/
|
|
567
|
-
closeOnEscape?: boolean;
|
|
568
|
-
}
|
|
569
|
-
/**
|
|
570
|
-
* DataTable column definition
|
|
571
|
-
*/
|
|
572
|
-
export interface DataTableColumn {
|
|
573
|
-
/**
|
|
574
|
-
* Unique identifier for the column
|
|
575
|
-
*/
|
|
576
|
-
key: string;
|
|
577
|
-
/**
|
|
578
|
-
* Display title for the column
|
|
579
|
-
*/
|
|
580
|
-
title: string;
|
|
581
|
-
/**
|
|
582
|
-
* Whether the column is sortable
|
|
583
|
-
*/
|
|
584
|
-
sortable?: boolean;
|
|
585
|
-
/**
|
|
586
|
-
* Whether the column is filterable
|
|
587
|
-
*/
|
|
588
|
-
filterable?: boolean;
|
|
589
|
-
/**
|
|
590
|
-
* Custom render function for the cell
|
|
591
|
-
*/
|
|
592
|
-
render?: (value: any, row: any) => React.ReactNode;
|
|
593
|
-
/**
|
|
594
|
-
* Width of the column (CSS value)
|
|
595
|
-
*/
|
|
596
|
-
width?: string;
|
|
597
|
-
}
|
|
598
|
-
/**
|
|
599
|
-
* Sort configuration
|
|
600
|
-
*/
|
|
601
|
-
export interface SortConfig {
|
|
602
|
-
/**
|
|
603
|
-
* Column key to sort by
|
|
604
|
-
*/
|
|
605
|
-
key: string;
|
|
606
|
-
/**
|
|
607
|
-
* Sort direction
|
|
608
|
-
*/
|
|
609
|
-
direction: 'asc' | 'desc';
|
|
610
|
-
}
|
|
611
|
-
/**
|
|
612
|
-
* DataTable component properties
|
|
613
|
-
*/
|
|
614
|
-
export interface DataTableProps extends BaseComponentProps {
|
|
615
|
-
/**
|
|
616
|
-
* Data array to display in the table
|
|
617
|
-
*/
|
|
618
|
-
data: any[];
|
|
619
|
-
/**
|
|
620
|
-
* Column definitions
|
|
621
|
-
*/
|
|
622
|
-
columns: DataTableColumn[];
|
|
623
|
-
/**
|
|
624
|
-
* Whether the table is sortable
|
|
625
|
-
*/
|
|
626
|
-
sortable?: boolean;
|
|
627
|
-
/**
|
|
628
|
-
* Whether the table is filterable
|
|
629
|
-
*/
|
|
630
|
-
filterable?: boolean;
|
|
631
|
-
/**
|
|
632
|
-
* Whether the table is paginated
|
|
633
|
-
*/
|
|
634
|
-
paginated?: boolean;
|
|
635
|
-
/**
|
|
636
|
-
* Number of rows per page
|
|
637
|
-
*/
|
|
638
|
-
pageSize?: number;
|
|
639
|
-
/**
|
|
640
|
-
* Whether to show alternating row colors
|
|
641
|
-
*/
|
|
642
|
-
striped?: boolean;
|
|
643
|
-
/**
|
|
644
|
-
* Whether to show borders around cells
|
|
645
|
-
*/
|
|
646
|
-
bordered?: boolean;
|
|
647
|
-
/**
|
|
648
|
-
* Whether to use compact styling
|
|
649
|
-
*/
|
|
650
|
-
dense?: boolean;
|
|
651
|
-
/**
|
|
652
|
-
* Whether the table is in loading state
|
|
653
|
-
*/
|
|
654
|
-
loading?: boolean;
|
|
655
|
-
/**
|
|
656
|
-
* Message to display when there is no data
|
|
657
|
-
*/
|
|
658
|
-
emptyMessage?: string;
|
|
659
|
-
/**
|
|
660
|
-
* Callback when a row is clicked
|
|
661
|
-
*/
|
|
662
|
-
onRowClick?: (row: any) => void;
|
|
663
|
-
/**
|
|
664
|
-
* Callback when sorting changes
|
|
665
|
-
*/
|
|
666
|
-
onSort?: (sortConfig: SortConfig) => void;
|
|
667
|
-
}
|
|
668
|
-
/**
|
|
669
|
-
* Pagination component properties
|
|
670
|
-
*/
|
|
671
|
-
export interface PaginationProps extends BaseComponentProps {
|
|
672
|
-
/**
|
|
673
|
-
* Current active page
|
|
674
|
-
*/
|
|
675
|
-
currentPage: number;
|
|
676
|
-
/**
|
|
677
|
-
* Total number of pages
|
|
678
|
-
*/
|
|
679
|
-
totalPages: number;
|
|
680
|
-
/**
|
|
681
|
-
* Callback function when page changes
|
|
682
|
-
*/
|
|
683
|
-
onPageChange: (page: number) => void;
|
|
684
|
-
/**
|
|
685
|
-
* Number of page links to show before and after current page
|
|
686
|
-
*/
|
|
687
|
-
siblingCount?: number;
|
|
688
|
-
/**
|
|
689
|
-
* Whether to show first/last page buttons
|
|
690
|
-
*/
|
|
691
|
-
showFirstLastButtons?: boolean;
|
|
692
|
-
/**
|
|
693
|
-
* Whether to show previous/next page buttons
|
|
694
|
-
*/
|
|
695
|
-
showPrevNextButtons?: boolean;
|
|
696
|
-
/**
|
|
697
|
-
* Custom class for the pagination container
|
|
698
|
-
*/
|
|
699
|
-
className?: string;
|
|
700
|
-
/**
|
|
701
|
-
* Size variant for the pagination component
|
|
702
|
-
*/
|
|
703
|
-
size?: Size;
|
|
704
|
-
/**
|
|
705
|
-
* Accessible label for the navigation element
|
|
706
|
-
*/
|
|
707
|
-
ariaLabel?: string;
|
|
708
|
-
}
|
|
709
|
-
/**
|
|
710
|
-
* Todo item data structure
|
|
711
|
-
*/
|
|
712
|
-
export interface TodoItem {
|
|
713
|
-
/**
|
|
714
|
-
* Unique identifier for the todo
|
|
715
|
-
*/
|
|
716
|
-
id: string;
|
|
717
|
-
/**
|
|
718
|
-
* Todo item text
|
|
719
|
-
*/
|
|
720
|
-
text: string;
|
|
721
|
-
/**
|
|
722
|
-
* Whether the todo is completed
|
|
723
|
-
*/
|
|
724
|
-
completed: boolean;
|
|
725
|
-
}
|
|
726
|
-
/**
|
|
727
|
-
* Todo component properties
|
|
728
|
-
*/
|
|
729
|
-
export interface TodoProps extends BaseComponentProps {
|
|
730
|
-
/**
|
|
731
|
-
* List of todo items
|
|
732
|
-
*/
|
|
733
|
-
items: TodoItem[];
|
|
734
|
-
/**
|
|
735
|
-
* Callback when a todo item is added
|
|
736
|
-
*/
|
|
737
|
-
onAddTodo?: (text: string) => void;
|
|
738
|
-
/**
|
|
739
|
-
* Callback when a todo item is toggled
|
|
740
|
-
*/
|
|
741
|
-
onToggleTodo?: (id: string) => void;
|
|
742
|
-
/**
|
|
743
|
-
* Callback when a todo item is deleted
|
|
744
|
-
*/
|
|
745
|
-
onDeleteTodo?: (id: string) => void;
|
|
746
|
-
/**
|
|
747
|
-
* Title of the todo list
|
|
748
|
-
*/
|
|
749
|
-
title?: string;
|
|
750
|
-
/**
|
|
751
|
-
* Size variant for the todo component
|
|
752
|
-
*/
|
|
753
|
-
size?: Size;
|
|
754
|
-
/**
|
|
755
|
-
* Placeholder text for the new todo input
|
|
756
|
-
*/
|
|
757
|
-
placeholder?: string;
|
|
758
|
-
/**
|
|
759
|
-
* Whether to show the completed todos
|
|
760
|
-
*/
|
|
761
|
-
showCompleted?: boolean;
|
|
762
|
-
}
|
|
763
|
-
/**
|
|
764
|
-
* Form component properties
|
|
765
|
-
*/
|
|
766
|
-
export interface FormProps extends BaseComponentProps {
|
|
767
|
-
/**
|
|
768
|
-
* Form content
|
|
769
|
-
*/
|
|
770
|
-
children: ReactNode;
|
|
771
|
-
/**
|
|
772
|
-
* Form submit handler
|
|
773
|
-
*/
|
|
774
|
-
onSubmit?: (event: React.FormEvent<HTMLFormElement>) => void;
|
|
775
|
-
/**
|
|
776
|
-
* Form reset handler
|
|
777
|
-
*/
|
|
778
|
-
onReset?: (event: React.FormEvent<HTMLFormElement>) => void;
|
|
779
|
-
/**
|
|
780
|
-
* Form ID
|
|
781
|
-
*/
|
|
782
|
-
id?: string;
|
|
783
|
-
/**
|
|
784
|
-
* Form method
|
|
785
|
-
*/
|
|
786
|
-
method?: 'get' | 'post';
|
|
787
|
-
/**
|
|
788
|
-
* Form encoding type
|
|
789
|
-
*/
|
|
790
|
-
encType?: string;
|
|
791
|
-
/**
|
|
792
|
-
* Whether to disable HTML5 validation
|
|
793
|
-
*/
|
|
794
|
-
noValidate?: boolean;
|
|
795
|
-
/**
|
|
796
|
-
* Form autocomplete setting
|
|
797
|
-
*/
|
|
798
|
-
autoComplete?: string;
|
|
799
|
-
}
|
|
800
|
-
/**
|
|
801
|
-
* Form Group component properties
|
|
802
|
-
*/
|
|
803
|
-
export interface FormGroupProps extends BaseComponentProps {
|
|
804
|
-
/**
|
|
805
|
-
* Form control content
|
|
806
|
-
*/
|
|
807
|
-
children: ReactNode;
|
|
808
|
-
/**
|
|
809
|
-
* Label text
|
|
810
|
-
*/
|
|
811
|
-
label?: string;
|
|
812
|
-
/**
|
|
813
|
-
* Helper text displayed below the input
|
|
814
|
-
*/
|
|
815
|
-
helperText?: ReactNode;
|
|
816
|
-
/**
|
|
817
|
-
* ID of the form control this label is for
|
|
818
|
-
*/
|
|
819
|
-
htmlFor?: string;
|
|
820
|
-
/**
|
|
821
|
-
* Whether the field is required
|
|
822
|
-
*/
|
|
823
|
-
required?: boolean;
|
|
824
|
-
/**
|
|
825
|
-
* Whether the field is invalid
|
|
826
|
-
*/
|
|
827
|
-
invalid?: boolean;
|
|
828
|
-
/**
|
|
829
|
-
* Whether the field is valid
|
|
830
|
-
*/
|
|
831
|
-
valid?: boolean;
|
|
832
|
-
/**
|
|
833
|
-
* Size variant
|
|
834
|
-
*/
|
|
835
|
-
size?: Size;
|
|
836
|
-
}
|
|
837
|
-
/**
|
|
838
|
-
* Input component properties
|
|
839
|
-
*/
|
|
840
|
-
export interface InputProps extends BaseComponentProps {
|
|
841
|
-
/**
|
|
842
|
-
* Input type
|
|
843
|
-
*/
|
|
844
|
-
type?: string;
|
|
845
|
-
/**
|
|
846
|
-
* Input value
|
|
847
|
-
*/
|
|
848
|
-
value?: string | number;
|
|
849
|
-
/**
|
|
850
|
-
* Change handler
|
|
851
|
-
*/
|
|
852
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
853
|
-
/**
|
|
854
|
-
* Blur handler
|
|
855
|
-
*/
|
|
856
|
-
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
857
|
-
/**
|
|
858
|
-
* Focus handler
|
|
859
|
-
*/
|
|
860
|
-
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
861
|
-
/**
|
|
862
|
-
* Placeholder text
|
|
863
|
-
*/
|
|
864
|
-
placeholder?: string;
|
|
865
|
-
/**
|
|
866
|
-
* Whether the input is required
|
|
867
|
-
*/
|
|
868
|
-
required?: boolean;
|
|
869
|
-
/**
|
|
870
|
-
* Whether the input is read-only
|
|
871
|
-
*/
|
|
872
|
-
readOnly?: boolean;
|
|
873
|
-
/**
|
|
874
|
-
* Input ID
|
|
875
|
-
*/
|
|
876
|
-
id?: string;
|
|
877
|
-
/**
|
|
878
|
-
* Input name
|
|
879
|
-
*/
|
|
880
|
-
name?: string;
|
|
881
|
-
/**
|
|
882
|
-
* Autocomplete attribute
|
|
883
|
-
*/
|
|
884
|
-
autoComplete?: string;
|
|
885
|
-
/**
|
|
886
|
-
* Whether the input should receive focus on render
|
|
887
|
-
*/
|
|
888
|
-
autoFocus?: boolean;
|
|
889
|
-
/**
|
|
890
|
-
* Size variant
|
|
891
|
-
*/
|
|
892
|
-
size?: Size;
|
|
893
|
-
/**
|
|
894
|
-
* Color variant
|
|
895
|
-
*/
|
|
896
|
-
variant?: ThemeColor;
|
|
897
|
-
/**
|
|
898
|
-
* Whether the input is invalid
|
|
899
|
-
*/
|
|
900
|
-
invalid?: boolean;
|
|
901
|
-
/**
|
|
902
|
-
* Whether the input is valid
|
|
903
|
-
*/
|
|
904
|
-
valid?: boolean;
|
|
905
|
-
/**
|
|
906
|
-
* Maximum length
|
|
907
|
-
*/
|
|
908
|
-
maxLength?: number;
|
|
909
|
-
/**
|
|
910
|
-
* Minimum length
|
|
911
|
-
*/
|
|
912
|
-
minLength?: number;
|
|
913
|
-
/**
|
|
914
|
-
* Input pattern
|
|
915
|
-
*/
|
|
916
|
-
pattern?: string;
|
|
917
|
-
/**
|
|
918
|
-
* Minimum value (for number inputs)
|
|
919
|
-
*/
|
|
920
|
-
min?: number | string;
|
|
921
|
-
/**
|
|
922
|
-
* Maximum value (for number inputs)
|
|
923
|
-
*/
|
|
924
|
-
max?: number | string;
|
|
925
|
-
/**
|
|
926
|
-
* Step value (for number inputs)
|
|
927
|
-
*/
|
|
928
|
-
step?: number | string;
|
|
929
|
-
/**
|
|
930
|
-
* Accessible label (if no visible label)
|
|
931
|
-
*/
|
|
932
|
-
ariaLabel?: string;
|
|
933
|
-
/**
|
|
934
|
-
* ID of element that describes this input
|
|
935
|
-
*/
|
|
936
|
-
ariaDescribedBy?: string;
|
|
937
|
-
}
|
|
938
|
-
/**
|
|
939
|
-
* Select option
|
|
940
|
-
*/
|
|
941
|
-
export interface SelectOption {
|
|
942
|
-
/**
|
|
943
|
-
* Option value
|
|
944
|
-
*/
|
|
945
|
-
value: string;
|
|
946
|
-
/**
|
|
947
|
-
* Option display label
|
|
948
|
-
*/
|
|
949
|
-
label: string;
|
|
950
|
-
/**
|
|
951
|
-
* Whether the option is disabled
|
|
952
|
-
*/
|
|
953
|
-
disabled?: boolean;
|
|
954
|
-
}
|
|
955
|
-
/**
|
|
956
|
-
* Select component properties
|
|
957
|
-
*/
|
|
958
|
-
export interface SelectProps extends BaseComponentProps {
|
|
959
|
-
/**
|
|
960
|
-
* Select options
|
|
961
|
-
*/
|
|
962
|
-
options: SelectOption[];
|
|
963
|
-
/**
|
|
964
|
-
* Selected value(s)
|
|
965
|
-
*/
|
|
966
|
-
value?: string | string[];
|
|
967
|
-
/**
|
|
968
|
-
* Change handler
|
|
969
|
-
*/
|
|
970
|
-
onChange?: (event: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
971
|
-
/**
|
|
972
|
-
* Blur handler
|
|
973
|
-
*/
|
|
974
|
-
onBlur?: (event: React.FocusEvent<HTMLSelectElement>) => void;
|
|
975
|
-
/**
|
|
976
|
-
* Focus handler
|
|
977
|
-
*/
|
|
978
|
-
onFocus?: (event: React.FocusEvent<HTMLSelectElement>) => void;
|
|
979
|
-
/**
|
|
980
|
-
* Placeholder text
|
|
981
|
-
*/
|
|
982
|
-
placeholder?: string;
|
|
983
|
-
/**
|
|
984
|
-
* Whether the select is required
|
|
985
|
-
*/
|
|
986
|
-
required?: boolean;
|
|
987
|
-
/**
|
|
988
|
-
* Select ID
|
|
989
|
-
*/
|
|
990
|
-
id?: string;
|
|
991
|
-
/**
|
|
992
|
-
* Select name
|
|
993
|
-
*/
|
|
994
|
-
name?: string;
|
|
995
|
-
/**
|
|
996
|
-
* Size variant
|
|
997
|
-
*/
|
|
998
|
-
size?: Size;
|
|
999
|
-
/**
|
|
1000
|
-
* Whether the select is invalid
|
|
1001
|
-
*/
|
|
1002
|
-
invalid?: boolean;
|
|
1003
|
-
/**
|
|
1004
|
-
* Whether the select is valid
|
|
1005
|
-
*/
|
|
1006
|
-
valid?: boolean;
|
|
1007
|
-
/**
|
|
1008
|
-
* Whether multiple options can be selected
|
|
1009
|
-
*/
|
|
1010
|
-
multiple?: boolean;
|
|
1011
|
-
/**
|
|
1012
|
-
* Accessible label (if no visible label)
|
|
1013
|
-
*/
|
|
1014
|
-
ariaLabel?: string;
|
|
1015
|
-
/**
|
|
1016
|
-
* ID of element that describes this select
|
|
1017
|
-
*/
|
|
1018
|
-
ariaDescribedBy?: string;
|
|
1019
|
-
}
|
|
1020
|
-
/**
|
|
1021
|
-
* Checkbox component properties
|
|
1022
|
-
*/
|
|
1023
|
-
export interface CheckboxProps extends BaseComponentProps {
|
|
1024
|
-
/**
|
|
1025
|
-
* Checkbox label
|
|
1026
|
-
*/
|
|
1027
|
-
label?: ReactNode;
|
|
1028
|
-
/**
|
|
1029
|
-
* Whether the checkbox is checked
|
|
1030
|
-
*/
|
|
1031
|
-
checked?: boolean;
|
|
1032
|
-
/**
|
|
1033
|
-
* Change handler
|
|
1034
|
-
*/
|
|
1035
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
1036
|
-
/**
|
|
1037
|
-
* Whether the checkbox is required
|
|
1038
|
-
*/
|
|
1039
|
-
required?: boolean;
|
|
1040
|
-
/**
|
|
1041
|
-
* Checkbox ID
|
|
1042
|
-
*/
|
|
1043
|
-
id?: string;
|
|
1044
|
-
/**
|
|
1045
|
-
* Checkbox name
|
|
1046
|
-
*/
|
|
1047
|
-
name?: string;
|
|
1048
|
-
/**
|
|
1049
|
-
* Checkbox value
|
|
1050
|
-
*/
|
|
1051
|
-
value?: string;
|
|
1052
|
-
/**
|
|
1053
|
-
* Whether the checkbox is invalid
|
|
1054
|
-
*/
|
|
1055
|
-
invalid?: boolean;
|
|
1056
|
-
/**
|
|
1057
|
-
* Whether the checkbox is valid
|
|
1058
|
-
*/
|
|
1059
|
-
valid?: boolean;
|
|
1060
|
-
/**
|
|
1061
|
-
* Whether the checkbox is in indeterminate state
|
|
1062
|
-
*/
|
|
1063
|
-
indeterminate?: boolean;
|
|
1064
|
-
/**
|
|
1065
|
-
* Accessible label (if no visible label)
|
|
1066
|
-
*/
|
|
1067
|
-
ariaLabel?: string;
|
|
1068
|
-
/**
|
|
1069
|
-
* ID of element that describes this checkbox
|
|
1070
|
-
*/
|
|
1071
|
-
ariaDescribedBy?: string;
|
|
1072
|
-
}
|
|
1073
|
-
/**
|
|
1074
|
-
* Radio component properties
|
|
1075
|
-
*/
|
|
1076
|
-
export interface RadioProps extends BaseComponentProps {
|
|
1077
|
-
/**
|
|
1078
|
-
* Radio label
|
|
1079
|
-
*/
|
|
1080
|
-
label?: ReactNode;
|
|
1081
|
-
/**
|
|
1082
|
-
* Whether the radio is checked
|
|
1083
|
-
*/
|
|
1084
|
-
checked?: boolean;
|
|
1085
|
-
/**
|
|
1086
|
-
* Change handler
|
|
1087
|
-
*/
|
|
1088
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
1089
|
-
/**
|
|
1090
|
-
* Whether the radio is required
|
|
1091
|
-
*/
|
|
1092
|
-
required?: boolean;
|
|
1093
|
-
/**
|
|
1094
|
-
* Radio ID
|
|
1095
|
-
*/
|
|
1096
|
-
id?: string;
|
|
1097
|
-
/**
|
|
1098
|
-
* Radio name
|
|
1099
|
-
*/
|
|
1100
|
-
name?: string;
|
|
1101
|
-
/**
|
|
1102
|
-
* Radio value
|
|
1103
|
-
*/
|
|
1104
|
-
value?: string;
|
|
1105
|
-
/**
|
|
1106
|
-
* Whether the radio is invalid
|
|
1107
|
-
*/
|
|
1108
|
-
invalid?: boolean;
|
|
1109
|
-
/**
|
|
1110
|
-
* Whether the radio is valid
|
|
1111
|
-
*/
|
|
1112
|
-
valid?: boolean;
|
|
1113
|
-
/**
|
|
1114
|
-
* Accessible label (if no visible label)
|
|
1115
|
-
*/
|
|
1116
|
-
ariaLabel?: string;
|
|
1117
|
-
/**
|
|
1118
|
-
* ID of element that describes this radio
|
|
1119
|
-
*/
|
|
1120
|
-
ariaDescribedBy?: string;
|
|
1121
|
-
}
|
|
1122
|
-
/**
|
|
1123
|
-
* Textarea component properties
|
|
1124
|
-
*/
|
|
1125
|
-
export interface TextareaProps extends BaseComponentProps {
|
|
1126
|
-
/**
|
|
1127
|
-
* Textarea value
|
|
1128
|
-
*/
|
|
1129
|
-
value?: string;
|
|
1130
|
-
/**
|
|
1131
|
-
* Change handler
|
|
1132
|
-
*/
|
|
1133
|
-
onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
1134
|
-
/**
|
|
1135
|
-
* Blur handler
|
|
1136
|
-
*/
|
|
1137
|
-
onBlur?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
1138
|
-
/**
|
|
1139
|
-
* Focus handler
|
|
1140
|
-
*/
|
|
1141
|
-
onFocus?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
1142
|
-
/**
|
|
1143
|
-
* Placeholder text
|
|
1144
|
-
*/
|
|
1145
|
-
placeholder?: string;
|
|
1146
|
-
/**
|
|
1147
|
-
* Whether the textarea is required
|
|
1148
|
-
*/
|
|
1149
|
-
required?: boolean;
|
|
1150
|
-
/**
|
|
1151
|
-
* Whether the textarea is read-only
|
|
1152
|
-
*/
|
|
1153
|
-
readOnly?: boolean;
|
|
1154
|
-
/**
|
|
1155
|
-
* Textarea ID
|
|
1156
|
-
*/
|
|
1157
|
-
id?: string;
|
|
1158
|
-
/**
|
|
1159
|
-
* Textarea name
|
|
1160
|
-
*/
|
|
1161
|
-
name?: string;
|
|
1162
|
-
/**
|
|
1163
|
-
* Number of rows
|
|
1164
|
-
*/
|
|
1165
|
-
rows?: number;
|
|
1166
|
-
/**
|
|
1167
|
-
* Number of columns
|
|
1168
|
-
*/
|
|
1169
|
-
cols?: number;
|
|
1170
|
-
/**
|
|
1171
|
-
* Maximum length
|
|
1172
|
-
*/
|
|
1173
|
-
maxLength?: number;
|
|
1174
|
-
/**
|
|
1175
|
-
* Minimum length
|
|
1176
|
-
*/
|
|
1177
|
-
minLength?: number;
|
|
1178
|
-
/**
|
|
1179
|
-
* Size variant
|
|
1180
|
-
*/
|
|
1181
|
-
size?: Size;
|
|
1182
|
-
/**
|
|
1183
|
-
* Color variant
|
|
1184
|
-
*/
|
|
1185
|
-
variant?: ThemeColor;
|
|
1186
|
-
/**
|
|
1187
|
-
* Whether the textarea is invalid
|
|
1188
|
-
*/
|
|
1189
|
-
invalid?: boolean;
|
|
1190
|
-
/**
|
|
1191
|
-
* Whether the textarea is valid
|
|
1192
|
-
*/
|
|
1193
|
-
valid?: boolean;
|
|
1194
|
-
/**
|
|
1195
|
-
* Whether the textarea should receive focus on render
|
|
1196
|
-
*/
|
|
1197
|
-
autoFocus?: boolean;
|
|
1198
|
-
/**
|
|
1199
|
-
* Accessible label (if no visible label)
|
|
1200
|
-
*/
|
|
1201
|
-
ariaLabel?: string;
|
|
1202
|
-
/**
|
|
1203
|
-
* ID of element that describes this textarea
|
|
1204
|
-
*/
|
|
1205
|
-
ariaDescribedBy?: string;
|
|
1206
|
-
}
|
|
1207
|
-
/**
|
|
1208
|
-
* Avatar size options
|
|
1209
|
-
*/
|
|
1210
|
-
export type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1211
|
-
/**
|
|
1212
|
-
* Avatar component properties
|
|
1213
|
-
*/
|
|
1214
|
-
export interface AvatarProps extends BaseComponentProps {
|
|
1215
|
-
/**
|
|
1216
|
-
* Avatar image source URL
|
|
1217
|
-
*/
|
|
1218
|
-
src?: string;
|
|
1219
|
-
/**
|
|
1220
|
-
* Alt text for the avatar image
|
|
1221
|
-
*/
|
|
1222
|
-
alt?: string;
|
|
1223
|
-
/**
|
|
1224
|
-
* Initials to display when no image is available
|
|
1225
|
-
*/
|
|
1226
|
-
initials?: string;
|
|
1227
|
-
/**
|
|
1228
|
-
* Icon to display when no image or initials are available
|
|
1229
|
-
*/
|
|
1230
|
-
icon?: ReactNode;
|
|
1231
|
-
/**
|
|
1232
|
-
* Size variant for the avatar
|
|
1233
|
-
*/
|
|
1234
|
-
size?: AvatarSize;
|
|
1235
|
-
/**
|
|
1236
|
-
* Whether to make the avatar circular
|
|
1237
|
-
*/
|
|
1238
|
-
circle?: boolean;
|
|
1239
|
-
/**
|
|
1240
|
-
* Optional click handler
|
|
1241
|
-
*/
|
|
1242
|
-
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
1243
|
-
}
|
|
1244
|
-
/**
|
|
1245
|
-
* Avatar Group component properties
|
|
1246
|
-
*/
|
|
1247
|
-
export interface AvatarGroupProps extends BaseComponentProps {
|
|
1248
|
-
/**
|
|
1249
|
-
* Child Avatar components
|
|
1250
|
-
*/
|
|
1251
|
-
children: ReactNode;
|
|
1252
|
-
/**
|
|
1253
|
-
* Maximum number of avatars to display before showing a "+X" indicator
|
|
1254
|
-
*/
|
|
1255
|
-
max?: number;
|
|
1256
|
-
/**
|
|
1257
|
-
* Whether to display avatars in a stacked formation
|
|
1258
|
-
*/
|
|
1259
|
-
stacked?: boolean;
|
|
1260
|
-
/**
|
|
1261
|
-
* Custom text for the "more" indicator
|
|
1262
|
-
*/
|
|
1263
|
-
moreText?: string;
|
|
1264
|
-
}
|
|
1265
|
-
/**
|
|
1266
|
-
* Modal component props
|
|
1267
|
-
*/
|
|
1268
|
-
export interface ModalProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
1269
|
-
/**
|
|
1270
|
-
* Whether the modal is open
|
|
1271
|
-
*/
|
|
1272
|
-
isOpen?: boolean;
|
|
1273
|
-
/**
|
|
1274
|
-
* Callback when the modal's open state changes
|
|
1275
|
-
*/
|
|
1276
|
-
onOpenChange?: (isOpen: boolean) => void;
|
|
1277
|
-
/**
|
|
1278
|
-
* Callback when the modal is opened
|
|
1279
|
-
*/
|
|
1280
|
-
onOpen?: () => void;
|
|
1281
|
-
/**
|
|
1282
|
-
* Callback when the modal is closed
|
|
1283
|
-
*/
|
|
1284
|
-
onClose?: () => void;
|
|
1285
|
-
/**
|
|
1286
|
-
* Modal title displayed in the header
|
|
1287
|
-
*/
|
|
1288
|
-
title?: React.ReactNode;
|
|
1289
|
-
/**
|
|
1290
|
-
* Modal subtitle displayed below the title
|
|
1291
|
-
*/
|
|
1292
|
-
subtitle?: React.ReactNode;
|
|
1293
|
-
/**
|
|
1294
|
-
* Modal size
|
|
1295
|
-
*/
|
|
1296
|
-
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
1297
|
-
/**
|
|
1298
|
-
* Whether to close when backdrop is clicked
|
|
1299
|
-
*/
|
|
1300
|
-
backdrop?: boolean;
|
|
1301
|
-
/**
|
|
1302
|
-
* Whether to close when the escape key is pressed
|
|
1303
|
-
*/
|
|
1304
|
-
keyboard?: boolean;
|
|
1305
|
-
/**
|
|
1306
|
-
* Whether to show the close button
|
|
1307
|
-
*/
|
|
1308
|
-
closeButton?: boolean;
|
|
1309
|
-
/**
|
|
1310
|
-
* Content for the modal footer
|
|
1311
|
-
*/
|
|
1312
|
-
footer?: React.ReactNode;
|
|
1313
|
-
}
|
|
1314
|
-
/**
|
|
1315
|
-
* Breadcrumb item interface
|
|
1316
|
-
*/
|
|
1317
|
-
export interface BreadcrumbItem {
|
|
1318
|
-
/**
|
|
1319
|
-
* Item label text
|
|
1320
|
-
*/
|
|
1321
|
-
label: string;
|
|
1322
|
-
/**
|
|
1323
|
-
* Optional URL for the breadcrumb item
|
|
1324
|
-
*/
|
|
1325
|
-
href?: string;
|
|
1326
|
-
/**
|
|
1327
|
-
* Whether this item is active/current
|
|
1328
|
-
*/
|
|
1329
|
-
active?: boolean;
|
|
1330
|
-
/**
|
|
1331
|
-
* Icon name from Phosphor Icons
|
|
1332
|
-
*/
|
|
1333
|
-
icon?: string;
|
|
1334
|
-
/**
|
|
1335
|
-
* Optional click handler
|
|
1336
|
-
*/
|
|
1337
|
-
onClick?: (event: MouseEvent) => void;
|
|
1338
|
-
}
|
|
1339
|
-
/**
|
|
1340
|
-
* Breadcrumb options interface
|
|
1341
|
-
*/
|
|
1342
|
-
export interface BreadcrumbOptions {
|
|
1343
|
-
/**
|
|
1344
|
-
* Array of breadcrumb items
|
|
1345
|
-
*/
|
|
1346
|
-
items?: BreadcrumbItem[];
|
|
1347
|
-
/**
|
|
1348
|
-
* Divider character or string between items
|
|
1349
|
-
*/
|
|
1350
|
-
divider?: string;
|
|
1351
|
-
/**
|
|
1352
|
-
* Additional CSS class names
|
|
1353
|
-
*/
|
|
1354
|
-
className?: string;
|
|
1355
|
-
/**
|
|
1356
|
-
* Accessible label for the breadcrumb navigation
|
|
1357
|
-
*/
|
|
1358
|
-
ariaLabel?: string;
|
|
1359
|
-
}
|
|
1360
|
-
/**
|
|
1361
|
-
* Breadcrumb instance interface
|
|
1362
|
-
*/
|
|
1363
|
-
export interface BreadcrumbInstance {
|
|
1364
|
-
/**
|
|
1365
|
-
* Update the breadcrumb with new options
|
|
1366
|
-
*/
|
|
1367
|
-
update: (options: Partial<BreadcrumbOptions>) => void;
|
|
1368
|
-
/**
|
|
1369
|
-
* Destroy the breadcrumb component
|
|
1370
|
-
*/
|
|
1371
|
-
destroy: () => void;
|
|
1372
|
-
}
|
|
1373
|
-
/**
|
|
1374
|
-
* Message item interface
|
|
1375
|
-
*/
|
|
1376
|
-
export interface MessageItem {
|
|
1377
|
-
/**
|
|
1378
|
-
* Unique identifier for the message
|
|
1379
|
-
*/
|
|
1380
|
-
id: string;
|
|
1381
|
-
/**
|
|
1382
|
-
* Message text content
|
|
1383
|
-
*/
|
|
1384
|
-
text?: string;
|
|
1385
|
-
/**
|
|
1386
|
-
* Image URL for image messages
|
|
1387
|
-
*/
|
|
1388
|
-
image?: string;
|
|
1389
|
-
/**
|
|
1390
|
-
* File information for file messages
|
|
1391
|
-
*/
|
|
1392
|
-
file?: {
|
|
1393
|
-
/**
|
|
1394
|
-
* File name
|
|
1395
|
-
*/
|
|
1396
|
-
name: string;
|
|
1397
|
-
/**
|
|
1398
|
-
* File size (formatted string)
|
|
1399
|
-
*/
|
|
1400
|
-
size: string;
|
|
1401
|
-
};
|
|
1402
|
-
/**
|
|
1403
|
-
* Message timestamp
|
|
1404
|
-
*/
|
|
1405
|
-
time: string;
|
|
1406
|
-
/**
|
|
1407
|
-
* Whether the message is from the current user
|
|
1408
|
-
*/
|
|
1409
|
-
isSelf?: boolean;
|
|
1410
|
-
}
|
|
1411
|
-
/**
|
|
1412
|
-
* Messages component properties
|
|
1413
|
-
*/
|
|
1414
|
-
export interface MessagesProps extends BaseComponentProps {
|
|
1415
|
-
/**
|
|
1416
|
-
* Array of message items to display
|
|
1417
|
-
*/
|
|
1418
|
-
messages: MessageItem[];
|
|
1419
|
-
/**
|
|
1420
|
-
* Avatar image URL for the other person
|
|
1421
|
-
*/
|
|
1422
|
-
otherAvatar?: string;
|
|
1423
|
-
/**
|
|
1424
|
-
* Avatar image URL for the current user
|
|
1425
|
-
*/
|
|
1426
|
-
selfAvatar?: string;
|
|
1427
|
-
/**
|
|
1428
|
-
* Name of the other person
|
|
1429
|
-
*/
|
|
1430
|
-
otherName?: string;
|
|
1431
|
-
/**
|
|
1432
|
-
* Custom width for the messages container
|
|
1433
|
-
*/
|
|
1434
|
-
width?: string;
|
|
1435
|
-
/**
|
|
1436
|
-
* Callback when a new message is sent
|
|
1437
|
-
*/
|
|
1438
|
-
onSendMessage?: (text: string) => void;
|
|
1439
|
-
/**
|
|
1440
|
-
* Placeholder text for the input field
|
|
1441
|
-
*/
|
|
1442
|
-
placeholder?: string;
|
|
1443
|
-
/**
|
|
1444
|
-
* Maximum height for the messages body
|
|
1445
|
-
*/
|
|
1446
|
-
bodyHeight?: string;
|
|
1447
|
-
/**
|
|
1448
|
-
* Unique identifier for the messages component
|
|
1449
|
-
*/
|
|
1450
|
-
id?: string;
|
|
1451
|
-
}
|
|
1452
|
-
/**
|
|
1453
|
-
* Popover component properties
|
|
1454
|
-
*/
|
|
1455
|
-
export interface PopoverTriggerProps {
|
|
1456
|
-
/**
|
|
1457
|
-
* The element that will trigger the popover
|
|
1458
|
-
*/
|
|
1459
|
-
children: ReactNode;
|
|
1460
|
-
/**
|
|
1461
|
-
* How the popover is triggered
|
|
1462
|
-
*/
|
|
1463
|
-
trigger?: 'hover' | 'click';
|
|
1464
|
-
/**
|
|
1465
|
-
* Popover reference passed from PopoverContext
|
|
1466
|
-
*/
|
|
1467
|
-
popoverId?: string;
|
|
1468
|
-
}
|
|
1469
|
-
export interface PopoverProps {
|
|
1470
|
-
/**
|
|
1471
|
-
* Content to be displayed in the popover
|
|
1472
|
-
*/
|
|
1473
|
-
content: ReactNode;
|
|
1474
|
-
/**
|
|
1475
|
-
* The position of the popover relative to the trigger
|
|
1476
|
-
*/
|
|
1477
|
-
position?: 'top' | 'bottom' | 'left' | 'right' | 'auto';
|
|
1478
|
-
/**
|
|
1479
|
-
* How the popover is triggered
|
|
1480
|
-
*/
|
|
1481
|
-
trigger?: 'hover' | 'click';
|
|
1482
|
-
/**
|
|
1483
|
-
* Additional CSS class for the popover
|
|
1484
|
-
*/
|
|
1485
|
-
className?: string;
|
|
1486
|
-
/**
|
|
1487
|
-
* Delay before showing the popover (in milliseconds)
|
|
1488
|
-
*/
|
|
1489
|
-
delay?: number;
|
|
1490
|
-
/**
|
|
1491
|
-
* Offset from the trigger element (in pixels)
|
|
1492
|
-
*/
|
|
1493
|
-
offset?: number;
|
|
1494
|
-
/**
|
|
1495
|
-
* Whether the popover should be open initially
|
|
1496
|
-
*/
|
|
1497
|
-
defaultOpen?: boolean;
|
|
1498
|
-
/**
|
|
1499
|
-
* Controlled state of the popover
|
|
1500
|
-
*/
|
|
1501
|
-
isOpen?: boolean;
|
|
1502
|
-
/**
|
|
1503
|
-
* Callback when the popover open state changes
|
|
1504
|
-
*/
|
|
1505
|
-
onOpenChange?: (isOpen: boolean) => void;
|
|
1506
|
-
/**
|
|
1507
|
-
* Whether to close the popover when clicking outside
|
|
1508
|
-
*/
|
|
1509
|
-
closeOnClickOutside?: boolean;
|
|
1510
|
-
/**
|
|
1511
|
-
* Whether to close the popover when pressing escape key
|
|
1512
|
-
*/
|
|
1513
|
-
closeOnEscape?: boolean;
|
|
1514
|
-
/**
|
|
1515
|
-
* Optional ID for the popover
|
|
1516
|
-
*/
|
|
1517
|
-
id?: string;
|
|
1518
|
-
/**
|
|
1519
|
-
* Children content (removed in favor of using PopoverTrigger)
|
|
1520
|
-
*/
|
|
1521
|
-
children?: ReactNode;
|
|
1522
|
-
}
|
|
1523
|
-
/**
|
|
1524
|
-
* The trigger method for the dropdown menu
|
|
1525
|
-
*/
|
|
1526
|
-
export type DropdownTrigger = 'click' | 'hover';
|
|
1527
|
-
/**
|
|
1528
|
-
* The placement of the dropdown menu
|
|
1529
|
-
*/
|
|
1530
|
-
export type DropdownPlacement = 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
1531
|
-
/**
|
|
1532
|
-
* Dropdown component properties
|
|
1533
|
-
*/
|
|
1534
|
-
export interface DropdownProps extends BaseComponentProps {
|
|
1535
|
-
/**
|
|
1536
|
-
* Dropdown trigger element
|
|
1537
|
-
*/
|
|
1538
|
-
children: ReactNode;
|
|
1539
|
-
/**
|
|
1540
|
-
* Dropdown menu content
|
|
1541
|
-
*/
|
|
1542
|
-
menu: ReactNode;
|
|
1543
|
-
/**
|
|
1544
|
-
* How the dropdown is triggered
|
|
1545
|
-
*/
|
|
1546
|
-
trigger?: DropdownTrigger;
|
|
1547
|
-
/**
|
|
1548
|
-
* The placement of the dropdown menu
|
|
1549
|
-
*/
|
|
1550
|
-
placement?: DropdownPlacement;
|
|
1551
|
-
/**
|
|
1552
|
-
* Whether the dropdown is initially open
|
|
1553
|
-
*/
|
|
1554
|
-
defaultOpen?: boolean;
|
|
1555
|
-
/**
|
|
1556
|
-
* Controlled state of the dropdown
|
|
1557
|
-
*/
|
|
1558
|
-
isOpen?: boolean;
|
|
1559
|
-
/**
|
|
1560
|
-
* Callback when the dropdown open state changes
|
|
1561
|
-
*/
|
|
1562
|
-
onOpenChange?: (isOpen: boolean) => void;
|
|
1563
|
-
/**
|
|
1564
|
-
* Offset from the trigger element (in pixels)
|
|
1565
|
-
*/
|
|
1566
|
-
offset?: number;
|
|
1567
|
-
/**
|
|
1568
|
-
* Whether the dropdown should be closed when clicking outside
|
|
1569
|
-
*/
|
|
1570
|
-
closeOnClickOutside?: boolean;
|
|
1571
|
-
/**
|
|
1572
|
-
* Whether the dropdown should be closed when pressing escape key
|
|
1573
|
-
*/
|
|
1574
|
-
closeOnEscape?: boolean;
|
|
1575
|
-
/**
|
|
1576
|
-
* Max height for the dropdown menu
|
|
1577
|
-
*/
|
|
1578
|
-
maxHeight?: string;
|
|
1579
|
-
/**
|
|
1580
|
-
* Min width for the dropdown menu
|
|
1581
|
-
*/
|
|
1582
|
-
minWidth?: string | number;
|
|
1583
|
-
/**
|
|
1584
|
-
* Color variant for the dropdown trigger
|
|
1585
|
-
*/
|
|
1586
|
-
variant?: ThemeColor;
|
|
1587
|
-
/**
|
|
1588
|
-
* Optional ID for the dropdown
|
|
1589
|
-
*/
|
|
1590
|
-
id?: string;
|
|
1591
|
-
}
|
|
1592
|
-
/**
|
|
1593
|
-
* Dropdown menu item properties
|
|
1594
|
-
*/
|
|
1595
|
-
export interface DropdownItemProps extends BaseComponentProps {
|
|
1596
|
-
/**
|
|
1597
|
-
* Item content
|
|
1598
|
-
*/
|
|
1599
|
-
children: ReactNode;
|
|
1600
|
-
/**
|
|
1601
|
-
* Item href
|
|
1602
|
-
*/
|
|
1603
|
-
href?: string;
|
|
1604
|
-
/**
|
|
1605
|
-
* Whether item is active
|
|
1606
|
-
*/
|
|
1607
|
-
active?: boolean;
|
|
1608
|
-
/**
|
|
1609
|
-
* Whether item is disabled
|
|
1610
|
-
*/
|
|
1611
|
-
disabled?: boolean;
|
|
1612
|
-
/**
|
|
1613
|
-
* Item icon
|
|
1614
|
-
*/
|
|
1615
|
-
icon?: ReactNode;
|
|
1616
|
-
/**
|
|
1617
|
-
* Item click handler
|
|
1618
|
-
*/
|
|
1619
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
|
|
1620
|
-
}
|
|
1621
|
-
/**
|
|
1622
|
-
* Dropdown divider properties
|
|
1623
|
-
*/
|
|
1624
|
-
export interface DropdownDividerProps {
|
|
1625
|
-
/**
|
|
1626
|
-
* Additional CSS class names
|
|
1627
|
-
*/
|
|
1628
|
-
className?: string;
|
|
1629
|
-
}
|
|
1630
|
-
/**
|
|
1631
|
-
* Dropdown header properties
|
|
1632
|
-
*/
|
|
1633
|
-
export interface DropdownHeaderProps {
|
|
1634
|
-
/**
|
|
1635
|
-
* Header content
|
|
1636
|
-
*/
|
|
1637
|
-
children: ReactNode;
|
|
1638
|
-
/**
|
|
1639
|
-
* Additional CSS class names
|
|
1640
|
-
*/
|
|
1641
|
-
className?: string;
|
|
1642
|
-
}
|
|
1643
|
-
/**
|
|
1644
|
-
* Progress component properties
|
|
1645
|
-
*/
|
|
1646
|
-
export interface ProgressProps extends BaseComponentProps {
|
|
1647
|
-
/**
|
|
1648
|
-
* Progress value (0-100)
|
|
1649
|
-
*/
|
|
1650
|
-
value: number;
|
|
1651
|
-
/**
|
|
1652
|
-
* Progress bar color variant
|
|
1653
|
-
*/
|
|
1654
|
-
variant?: ThemeColor;
|
|
1655
|
-
/**
|
|
1656
|
-
* Progress bar size
|
|
1657
|
-
*/
|
|
1658
|
-
size?: Size;
|
|
1659
|
-
/**
|
|
1660
|
-
* Accessible label for screen readers
|
|
1661
|
-
*/
|
|
1662
|
-
ariaLabel?: string;
|
|
1663
|
-
}
|
|
1664
|
-
/**
|
|
1665
|
-
* Rating component properties
|
|
1666
|
-
*/
|
|
1667
|
-
export interface RatingProps extends BaseComponentProps {
|
|
1668
|
-
/**
|
|
1669
|
-
* The rating value (0-5)
|
|
1670
|
-
*/
|
|
1671
|
-
value?: number;
|
|
1672
|
-
/**
|
|
1673
|
-
* Default value for uncontrolled mode
|
|
1674
|
-
*/
|
|
1675
|
-
defaultValue?: number;
|
|
1676
|
-
/**
|
|
1677
|
-
* Maximum possible rating value
|
|
1678
|
-
*/
|
|
1679
|
-
maxValue?: number;
|
|
1680
|
-
/**
|
|
1681
|
-
* Whether to allow half-star ratings
|
|
1682
|
-
*/
|
|
1683
|
-
allowHalf?: boolean;
|
|
1684
|
-
/**
|
|
1685
|
-
* Whether the rating is read-only
|
|
1686
|
-
*/
|
|
1687
|
-
readOnly?: boolean;
|
|
1688
|
-
/**
|
|
1689
|
-
* Size variant
|
|
1690
|
-
*/
|
|
1691
|
-
size?: Size;
|
|
1692
|
-
/**
|
|
1693
|
-
* Color theme
|
|
1694
|
-
*/
|
|
1695
|
-
color?: ThemeColor;
|
|
1696
|
-
/**
|
|
1697
|
-
* Optional callback when rating changes
|
|
1698
|
-
*/
|
|
1699
|
-
onChange?: (value: number) => void;
|
|
1700
|
-
/**
|
|
1701
|
-
* Optional label for the rating component (for accessibility)
|
|
1702
|
-
*/
|
|
1703
|
-
label?: string;
|
|
1704
|
-
/**
|
|
1705
|
-
* ID for the rating component (for accessibility)
|
|
1706
|
-
*/
|
|
1707
|
-
id?: string;
|
|
1708
|
-
/**
|
|
1709
|
-
* Whether to use the vanilla JS implementation
|
|
1710
|
-
*/
|
|
1711
|
-
useVanillaJS?: boolean;
|
|
1712
|
-
}
|
|
1713
|
-
/**
|
|
1714
|
-
* PhotoViewer component properties
|
|
1715
|
-
*/
|
|
1716
|
-
/**
|
|
1717
|
-
* Interface for image objects used in PhotoViewer
|
|
1718
|
-
*/
|
|
1719
|
-
export interface ImageType {
|
|
1720
|
-
src: string;
|
|
1721
|
-
alt?: string;
|
|
1722
|
-
thumbnail?: string;
|
|
1723
|
-
title?: string;
|
|
1724
|
-
description?: string;
|
|
1725
|
-
date?: string;
|
|
1726
|
-
author?: string;
|
|
1727
|
-
tags?: string[];
|
|
1728
|
-
}
|
|
1729
|
-
export interface PhotoViewerProps extends BaseComponentProps {
|
|
1730
|
-
/**
|
|
1731
|
-
* Array of image URLs or image objects to display in the viewer
|
|
1732
|
-
*/
|
|
1733
|
-
images: (string | ImageType)[];
|
|
1734
|
-
/**
|
|
1735
|
-
* Index of the image to show first
|
|
1736
|
-
* @default 0
|
|
1737
|
-
*/
|
|
1738
|
-
startIndex?: number;
|
|
1739
|
-
/**
|
|
1740
|
-
* Additional className for the root element
|
|
1741
|
-
*/
|
|
1742
|
-
className?: string;
|
|
1743
|
-
/**
|
|
1744
|
-
* Whether the viewer is disabled
|
|
1745
|
-
* @default false
|
|
1746
|
-
*/
|
|
1747
|
-
disabled?: boolean;
|
|
1748
|
-
/**
|
|
1749
|
-
* Enable keyboard navigation (arrow keys, escape)
|
|
1750
|
-
* @default true
|
|
1751
|
-
*/
|
|
1752
|
-
enableKeyboardNavigation?: boolean;
|
|
1753
|
-
/**
|
|
1754
|
-
* Enable touch gestures for mobile devices
|
|
1755
|
-
* @default true
|
|
1756
|
-
*/
|
|
1757
|
-
enableGestures?: boolean;
|
|
1758
|
-
/**
|
|
1759
|
-
* Enable fullscreen mode
|
|
1760
|
-
* @default true
|
|
1761
|
-
*/
|
|
1762
|
-
enableFullscreen?: boolean;
|
|
1763
|
-
/**
|
|
1764
|
-
* Position of thumbnails
|
|
1765
|
-
* @default 'bottom'
|
|
1766
|
-
*/
|
|
1767
|
-
thumbnailPosition?: 'bottom' | 'top' | 'left' | 'right' | 'none';
|
|
1768
|
-
/**
|
|
1769
|
-
* Callback when image changes
|
|
1770
|
-
*/
|
|
1771
|
-
onImageChange?: (index: number) => void;
|
|
1772
|
-
/**
|
|
1773
|
-
* Callback when viewer is closed
|
|
1774
|
-
*/
|
|
1775
|
-
onClose?: () => void;
|
|
1776
|
-
}
|
|
1777
|
-
/**
|
|
1778
|
-
* Card component props
|
|
1779
|
-
*/
|
|
1780
|
-
export interface CardProps extends BaseComponentProps {
|
|
1781
|
-
/**
|
|
1782
|
-
* Card header content
|
|
1783
|
-
*/
|
|
1784
|
-
header?: ReactNode;
|
|
1785
|
-
/**
|
|
1786
|
-
* Card image source URL
|
|
1787
|
-
*/
|
|
1788
|
-
image?: string;
|
|
1789
|
-
/**
|
|
1790
|
-
* Alternative text for the image
|
|
1791
|
-
*/
|
|
1792
|
-
imageAlt?: string;
|
|
1793
|
-
/**
|
|
1794
|
-
* Card title
|
|
1795
|
-
*/
|
|
1796
|
-
title?: ReactNode;
|
|
1797
|
-
/**
|
|
1798
|
-
* Card text content
|
|
1799
|
-
*/
|
|
1800
|
-
text?: ReactNode;
|
|
1801
|
-
/**
|
|
1802
|
-
* Card actions (buttons, links, etc.)
|
|
1803
|
-
*/
|
|
1804
|
-
actions?: ReactNode;
|
|
1805
|
-
/**
|
|
1806
|
-
* Card icon
|
|
1807
|
-
*/
|
|
1808
|
-
icon?: ReactNode;
|
|
1809
|
-
/**
|
|
1810
|
-
* Card footer content
|
|
1811
|
-
*/
|
|
1812
|
-
footer?: ReactNode;
|
|
1813
|
-
/**
|
|
1814
|
-
* Row layout (horizontal card)
|
|
1815
|
-
*/
|
|
1816
|
-
row?: boolean;
|
|
1817
|
-
/**
|
|
1818
|
-
* Flat style (no padding on image container)
|
|
1819
|
-
*/
|
|
1820
|
-
flat?: boolean;
|
|
1821
|
-
/**
|
|
1822
|
-
* Active state
|
|
1823
|
-
*/
|
|
1824
|
-
active?: boolean;
|
|
1825
|
-
/**
|
|
1826
|
-
* Card content (body)
|
|
1827
|
-
*/
|
|
1828
|
-
children?: ReactNode;
|
|
1829
|
-
/**
|
|
1830
|
-
* Optional click handler
|
|
1831
|
-
*/
|
|
1832
|
-
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
1833
|
-
}
|
|
1834
|
-
/**
|
|
1835
|
-
* Elevation Card component props
|
|
1836
|
-
*/
|
|
1837
|
-
export interface ElevationCardProps extends CardProps {
|
|
1838
|
-
/**
|
|
1839
|
-
* CSS class for elevation effect
|
|
1840
|
-
*/
|
|
1841
|
-
elevationClass?: string;
|
|
1842
|
-
}
|
|
1843
|
-
/**
|
|
1844
|
-
* Card hook options
|
|
1845
|
-
*/
|
|
1846
|
-
export interface UseCardOptions {
|
|
1847
|
-
/**
|
|
1848
|
-
* Enable elevation effect on hover
|
|
1849
|
-
*/
|
|
1850
|
-
elevationEffect?: boolean;
|
|
1851
|
-
/**
|
|
1852
|
-
* CSS class for elevation effect
|
|
1853
|
-
*/
|
|
1854
|
-
elevationClass?: string;
|
|
1855
|
-
/**
|
|
1856
|
-
* Enable flip effect
|
|
1857
|
-
*/
|
|
1858
|
-
flipEffect?: boolean;
|
|
1859
|
-
/**
|
|
1860
|
-
* Trigger for flip effect: 'click' or 'hover'
|
|
1861
|
-
*/
|
|
1862
|
-
flipTrigger?: 'click' | 'hover';
|
|
1863
|
-
/**
|
|
1864
|
-
* Make card focusable and add focus effect
|
|
1865
|
-
*/
|
|
1866
|
-
focusEffect?: boolean;
|
|
1867
|
-
/**
|
|
1868
|
-
* Make card clickable
|
|
1869
|
-
*/
|
|
1870
|
-
clickable?: boolean;
|
|
1871
|
-
/**
|
|
1872
|
-
* Click handler for clickable card
|
|
1873
|
-
*/
|
|
1874
|
-
onClick?: (event: React.MouseEvent) => void;
|
|
1875
|
-
}
|
|
1876
|
-
/**
|
|
1877
|
-
* Card hook return value
|
|
1878
|
-
*/
|
|
1879
|
-
export interface UseCardReturn {
|
|
1880
|
-
/**
|
|
1881
|
-
* Reference to the card element
|
|
1882
|
-
*/
|
|
1883
|
-
cardRef: React.RefObject<HTMLDivElement>;
|
|
1884
|
-
/**
|
|
1885
|
-
* Reference to the front side of a flip card
|
|
1886
|
-
*/
|
|
1887
|
-
frontRef: React.RefObject<HTMLDivElement>;
|
|
1888
|
-
/**
|
|
1889
|
-
* Reference to the back side of a flip card
|
|
1890
|
-
*/
|
|
1891
|
-
backRef: React.RefObject<HTMLDivElement>;
|
|
1892
|
-
/**
|
|
1893
|
-
* Whether the card is flipped
|
|
1894
|
-
*/
|
|
1895
|
-
isFlipped: boolean;
|
|
1896
|
-
/**
|
|
1897
|
-
* Whether the card is elevated
|
|
1898
|
-
*/
|
|
1899
|
-
isElevated: boolean;
|
|
1900
|
-
/**
|
|
1901
|
-
* Whether the card is focused
|
|
1902
|
-
*/
|
|
1903
|
-
isFocused: boolean;
|
|
1904
|
-
/**
|
|
1905
|
-
* Whether the card is hovered
|
|
1906
|
-
*/
|
|
1907
|
-
isHovered: boolean;
|
|
1908
|
-
/**
|
|
1909
|
-
* Click event handler
|
|
1910
|
-
*/
|
|
1911
|
-
handleClick: (event: React.MouseEvent) => void;
|
|
1912
|
-
/**
|
|
1913
|
-
* Keyboard event handler
|
|
1914
|
-
*/
|
|
1915
|
-
handleKeyDown: (event: React.KeyboardEvent) => void;
|
|
1916
|
-
/**
|
|
1917
|
-
* Mouse enter event handler
|
|
1918
|
-
*/
|
|
1919
|
-
handleMouseEnter: () => void;
|
|
1920
|
-
/**
|
|
1921
|
-
* Mouse leave event handler
|
|
1922
|
-
*/
|
|
1923
|
-
handleMouseLeave: () => void;
|
|
1924
|
-
/**
|
|
1925
|
-
* Focus event handler
|
|
1926
|
-
*/
|
|
1927
|
-
handleFocus: () => void;
|
|
1928
|
-
/**
|
|
1929
|
-
* Blur event handler
|
|
1930
|
-
*/
|
|
1931
|
-
handleBlur: () => void;
|
|
1932
|
-
/**
|
|
1933
|
-
* Get all card props combined
|
|
1934
|
-
*/
|
|
1935
|
-
getCardProps: () => {
|
|
1936
|
-
className: string;
|
|
1937
|
-
ref: React.RefObject<HTMLDivElement>;
|
|
1938
|
-
tabIndex?: number;
|
|
1939
|
-
role?: string;
|
|
1940
|
-
onMouseEnter: () => void;
|
|
1941
|
-
onMouseLeave: () => void;
|
|
1942
|
-
onFocus: () => void;
|
|
1943
|
-
onBlur: () => void;
|
|
1944
|
-
onClick: (event: React.MouseEvent) => void;
|
|
1945
|
-
onKeyDown: (event: React.KeyboardEvent) => void;
|
|
1946
|
-
};
|
|
1947
|
-
}
|