@infonomic/uikit 1.0.0
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/LICENSE +21 -0
- package/dist/components/@types/shared.d.ts +9 -0
- package/dist/components/@types/shared.d.ts.map +1 -0
- package/dist/components/@types/shared.js +30 -0
- package/dist/components/accordion/accordion.d.ts +32 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/accordion/accordion.js +51 -0
- package/dist/components/accordion/accordion.module.js +11 -0
- package/dist/components/accordion/accordion_module.css +60 -0
- package/dist/components/animation/fade-in-lift.d.ts +12 -0
- package/dist/components/animation/fade-in-lift.d.ts.map +1 -0
- package/dist/components/animation/fade-in-lift.js +27 -0
- package/dist/components/avatar/avatar.d.ts +3 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/avatar.js +24 -0
- package/dist/components/avatar/avatar.module.js +12 -0
- package/dist/components/avatar/avatar_module.css +44 -0
- package/dist/components/button/@types/button.d.ts +12 -0
- package/dist/components/button/@types/button.d.ts.map +1 -0
- package/dist/components/button/@types/button.js +7 -0
- package/dist/components/button/button-group.d.ts +37 -0
- package/dist/components/button/button-group.d.ts.map +1 -0
- package/dist/components/button/button-group.js +81 -0
- package/dist/components/button/button-group.module.js +6 -0
- package/dist/components/button/button-group_module.css +17 -0
- package/dist/components/button/button.d.ts +23 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/button.js +28 -0
- package/dist/components/button/button.module.js +24 -0
- package/dist/components/button/button_module.css +503 -0
- package/dist/components/button/control-buttons.d.ts +17 -0
- package/dist/components/button/control-buttons.d.ts.map +1 -0
- package/dist/components/button/control-buttons.js +88 -0
- package/dist/components/button/control-buttons.module.js +20 -0
- package/dist/components/button/control-buttons_module.css +118 -0
- package/dist/components/button/copy-button.d.ts +12 -0
- package/dist/components/button/copy-button.d.ts.map +1 -0
- package/dist/components/button/copy-button.js +57 -0
- package/dist/components/button/copy-button.module.js +13 -0
- package/dist/components/button/copy-button_module.css +30 -0
- package/dist/components/button/icon-button.d.ts +9 -0
- package/dist/components/button/icon-button.d.ts.map +1 -0
- package/dist/components/button/icon-button.js +18 -0
- package/dist/components/button/index.d.ts +6 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +5 -0
- package/dist/components/calendar/calendar.d.ts +31 -0
- package/dist/components/calendar/calendar.d.ts.map +1 -0
- package/dist/components/calendar/calendar.js +122 -0
- package/dist/components/calendar/calendar.module.js +45 -0
- package/dist/components/calendar/calendar_module.css +256 -0
- package/dist/components/card/card.d.ts +44 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/card/card.js +52 -0
- package/dist/components/card/card.module.js +11 -0
- package/dist/components/card/card_module.css +66 -0
- package/dist/components/container/container.d.ts +9 -0
- package/dist/components/container/container.d.ts.map +1 -0
- package/dist/components/container/container.js +12 -0
- package/dist/components/container/container.module.js +5 -0
- package/dist/components/container/container_module.css +29 -0
- package/dist/components/dropdown/dropdown.d.ts +60 -0
- package/dist/components/dropdown/dropdown.d.ts.map +1 -0
- package/dist/components/dropdown/dropdown.js +92 -0
- package/dist/components/dropdown/dropdown.module.js +16 -0
- package/dist/components/dropdown/dropdown_module.css +117 -0
- package/dist/components/hamburger/hamburger.d.ts +11 -0
- package/dist/components/hamburger/hamburger.d.ts.map +1 -0
- package/dist/components/hamburger/hamburger.js +49 -0
- package/dist/components/input/@types/checkbox.d.ts +13 -0
- package/dist/components/input/@types/checkbox.d.ts.map +1 -0
- package/dist/components/input/@types/checkbox.js +10 -0
- package/dist/components/input/@types/input.d.ts +13 -0
- package/dist/components/input/@types/input.d.ts.map +1 -0
- package/dist/components/input/@types/input.js +11 -0
- package/dist/components/input/checkbox-group.d.ts +14 -0
- package/dist/components/input/checkbox-group.d.ts.map +1 -0
- package/dist/components/input/checkbox-group.js +42 -0
- package/dist/components/input/checkbox.d.ts +23 -0
- package/dist/components/input/checkbox.d.ts.map +1 -0
- package/dist/components/input/checkbox.js +47 -0
- package/dist/components/input/checkbox.module.js +25 -0
- package/dist/components/input/checkbox_module.css +248 -0
- package/dist/components/input/error-text.d.ts +9 -0
- package/dist/components/input/error-text.d.ts.map +1 -0
- package/dist/components/input/error-text.js +11 -0
- package/dist/components/input/error-text.module.js +5 -0
- package/dist/components/input/error-text_module.css +13 -0
- package/dist/components/input/errors.d.ts +14 -0
- package/dist/components/input/errors.d.ts.map +1 -0
- package/dist/components/input/errors.js +31 -0
- package/dist/components/input/help-text.d.ts +8 -0
- package/dist/components/input/help-text.d.ts.map +1 -0
- package/dist/components/input/help-text.js +10 -0
- package/dist/components/input/help-text.module.js +5 -0
- package/dist/components/input/help-text_module.css +13 -0
- package/dist/components/input/index.d.ts +9 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +8 -0
- package/dist/components/input/input-adornment.d.ts +11 -0
- package/dist/components/input/input-adornment.d.ts.map +1 -0
- package/dist/components/input/input-adornment.js +15 -0
- package/dist/components/input/input-adornment.module.js +7 -0
- package/dist/components/input/input-adornment_module.css +19 -0
- package/dist/components/input/input.d.ts +25 -0
- package/dist/components/input/input.d.ts.map +1 -0
- package/dist/components/input/input.js +60 -0
- package/dist/components/input/input.module.js +27 -0
- package/dist/components/input/input_module.css +283 -0
- package/dist/components/input/label.d.ts +11 -0
- package/dist/components/input/label.d.ts.map +1 -0
- package/dist/components/input/label.js +18 -0
- package/dist/components/input/label.module.js +6 -0
- package/dist/components/input/label_module.css +22 -0
- package/dist/components/input/radio-group.d.ts +23 -0
- package/dist/components/input/radio-group.d.ts.map +1 -0
- package/dist/components/input/radio-group.js +32 -0
- package/dist/components/input/radio-group.module.js +20 -0
- package/dist/components/input/radio-group_module.css +186 -0
- package/dist/components/input/select.d.ts +33 -0
- package/dist/components/input/select.d.ts.map +1 -0
- package/dist/components/input/select.js +84 -0
- package/dist/components/input/select.module.js +13 -0
- package/dist/components/input/select_module.css +77 -0
- package/dist/components/input/text-area.d.ts +20 -0
- package/dist/components/input/text-area.d.ts.map +1 -0
- package/dist/components/input/text-area.js +45 -0
- package/dist/components/input/text-area.module.js +6 -0
- package/dist/components/input/text-area_module.css +10 -0
- package/dist/components/input/utils.d.ts +3 -0
- package/dist/components/input/utils.d.ts.map +1 -0
- package/dist/components/input/utils.js +11 -0
- package/dist/components/notifications/@types/alert.d.ts +6 -0
- package/dist/components/notifications/@types/alert.d.ts.map +1 -0
- package/dist/components/notifications/@types/alert.js +0 -0
- package/dist/components/notifications/@types/toast.d.ts +9 -0
- package/dist/components/notifications/@types/toast.d.ts.map +1 -0
- package/dist/components/notifications/@types/toast.js +0 -0
- package/dist/components/notifications/alert.d.ts +14 -0
- package/dist/components/notifications/alert.d.ts.map +1 -0
- package/dist/components/notifications/alert.js +103 -0
- package/dist/components/notifications/alert.module.js +20 -0
- package/dist/components/notifications/alert_module.css +114 -0
- package/dist/components/notifications/index.js +2 -0
- package/dist/components/notifications/toast.d.ts +21 -0
- package/dist/components/notifications/toast.d.ts.map +1 -0
- package/dist/components/notifications/toast.js +82 -0
- package/dist/components/notifications/toast.module.js +24 -0
- package/dist/components/notifications/toast_module.css +207 -0
- package/dist/components/overlay/index.d.ts +2 -0
- package/dist/components/overlay/index.d.ts.map +1 -0
- package/dist/components/overlay/index.js +1 -0
- package/dist/components/overlay/overlay.d.ts +9 -0
- package/dist/components/overlay/overlay.d.ts.map +1 -0
- package/dist/components/overlay/overlay.js +47 -0
- package/dist/components/overlay/overlay.module.js +13 -0
- package/dist/components/overlay/overlay_module.css +42 -0
- package/dist/components/pager/@types/index.d.ts +3 -0
- package/dist/components/pager/@types/index.d.ts.map +1 -0
- package/dist/components/pager/@types/index.js +6 -0
- package/dist/components/pager/ellipses.d.ts +3 -0
- package/dist/components/pager/ellipses.d.ts.map +1 -0
- package/dist/components/pager/ellipses.js +16 -0
- package/dist/components/pager/event-pager.js +15 -0
- package/dist/components/pager/first-button.d.ts +9 -0
- package/dist/components/pager/first-button.d.ts.map +1 -0
- package/dist/components/pager/first-button.js +31 -0
- package/dist/components/pager/hooks/types/usePagination.d.ts +75 -0
- package/dist/components/pager/hooks/types/usePagination.d.ts.map +1 -0
- package/dist/components/pager/hooks/types/usePagination.js +0 -0
- package/dist/components/pager/hooks/usePagination.d.ts +3 -0
- package/dist/components/pager/hooks/usePagination.d.ts.map +1 -0
- package/dist/components/pager/hooks/usePagination.js +80 -0
- package/dist/components/pager/icons/first.js +36 -0
- package/dist/components/pager/icons/index.js +4 -0
- package/dist/components/pager/icons/last.js +36 -0
- package/dist/components/pager/icons/next.js +24 -0
- package/dist/components/pager/icons/previous.js +24 -0
- package/dist/components/pager/index.js +4 -0
- package/dist/components/pager/last-button.d.ts +12 -0
- package/dist/components/pager/last-button.d.ts.map +1 -0
- package/dist/components/pager/last-button.js +31 -0
- package/dist/components/pager/next-button.d.ts +12 -0
- package/dist/components/pager/next-button.d.ts.map +1 -0
- package/dist/components/pager/next-button.js +35 -0
- package/dist/components/pager/number-button.d.ts +14 -0
- package/dist/components/pager/number-button.d.ts.map +1 -0
- package/dist/components/pager/number-button.js +42 -0
- package/dist/components/pager/pagination.d.ts +104 -0
- package/dist/components/pager/pagination.d.ts.map +1 -0
- package/dist/components/pager/pagination.js +134 -0
- package/dist/components/pager/pagination.module.js +29 -0
- package/dist/components/pager/pagination_module.css +98 -0
- package/dist/components/pager/previous-button.d.ts +9 -0
- package/dist/components/pager/previous-button.d.ts.map +1 -0
- package/dist/components/pager/previous-button.js +33 -0
- package/dist/components/scroll-area/scroll-area.d.ts +7 -0
- package/dist/components/scroll-area/scroll-area.d.ts.map +1 -0
- package/dist/components/scroll-area/scroll-area.js +32 -0
- package/dist/components/scroll-area/scroll-area.module.js +9 -0
- package/dist/components/scroll-area/scroll-area_module.css +79 -0
- package/dist/components/scroll-to-top/scroll-to-top.d.ts +10 -0
- package/dist/components/scroll-to-top/scroll-to-top.d.ts.map +1 -0
- package/dist/components/scroll-to-top/scroll-to-top.js +43 -0
- package/dist/components/section/section.d.ts +9 -0
- package/dist/components/section/section.d.ts.map +1 -0
- package/dist/components/section/section.js +12 -0
- package/dist/components/section/section.module.js +5 -0
- package/dist/components/section/section_module.css +8 -0
- package/dist/components/shimmer/shimmer.d.ts +13 -0
- package/dist/components/shimmer/shimmer.d.ts.map +1 -0
- package/dist/components/shimmer/shimmer.js +42 -0
- package/dist/components/shimmer/shimmer.module.js +9 -0
- package/dist/components/shimmer/shimmer_module.css +47 -0
- package/dist/components/table/table.d.ts +37 -0
- package/dist/components/table/table.d.ts.map +1 -0
- package/dist/components/table/table.js +85 -0
- package/dist/components/table/table.module.js +19 -0
- package/dist/components/table/table_module.css +82 -0
- package/dist/components/tabs/tabs.d.ts +28 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tabs/tabs.js +34 -0
- package/dist/components/tabs/tabs.module.js +12 -0
- package/dist/components/tabs/tabs_module.css +57 -0
- package/dist/components/timeline/timeline.d.ts +60 -0
- package/dist/components/timeline/timeline.d.ts.map +1 -0
- package/dist/components/timeline/timeline.js +74 -0
- package/dist/components/timeline/timeline.module.js +17 -0
- package/dist/components/timeline/timeline_module.css +77 -0
- package/dist/components/tooltip/tooltip.d.ts +16 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.js +33 -0
- package/dist/components/tooltip/tooltip.module.js +7 -0
- package/dist/components/tooltip/tooltip_module.css +51 -0
- package/dist/hooks/use-media-query.d.ts +2 -0
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/hooks/use-media-query.js +20 -0
- package/dist/icons/activity-icon.d.ts +7 -0
- package/dist/icons/activity-icon.d.ts.map +1 -0
- package/dist/icons/activity-icon.js +45 -0
- package/dist/icons/calendar-icon.d.ts +7 -0
- package/dist/icons/calendar-icon.d.ts.map +1 -0
- package/dist/icons/calendar-icon.js +26 -0
- package/dist/icons/check-icon.d.ts +7 -0
- package/dist/icons/check-icon.d.ts.map +1 -0
- package/dist/icons/check-icon.js +25 -0
- package/dist/icons/chevron-down-icon.d.ts +7 -0
- package/dist/icons/chevron-down-icon.d.ts.map +1 -0
- package/dist/icons/chevron-down-icon.js +27 -0
- package/dist/icons/chevron-left-double-icon.d.ts +27 -0
- package/dist/icons/chevron-left-double-icon.d.ts.map +1 -0
- package/dist/icons/chevron-left-double-icon.js +28 -0
- package/dist/icons/chevron-left-icon.d.ts +27 -0
- package/dist/icons/chevron-left-icon.d.ts.map +1 -0
- package/dist/icons/chevron-left-icon.js +28 -0
- package/dist/icons/chevron-right-double-icon.d.ts +27 -0
- package/dist/icons/chevron-right-double-icon.d.ts.map +1 -0
- package/dist/icons/chevron-right-double-icon.js +28 -0
- package/dist/icons/chevron-right-icon.d.ts +27 -0
- package/dist/icons/chevron-right-icon.d.ts.map +1 -0
- package/dist/icons/chevron-right-icon.js +28 -0
- package/dist/icons/chevrons-up-down.d.ts +7 -0
- package/dist/icons/chevrons-up-down.d.ts.map +1 -0
- package/dist/icons/chevrons-up-down.js +34 -0
- package/dist/icons/close-icon.d.ts +7 -0
- package/dist/icons/close-icon.d.ts.map +1 -0
- package/dist/icons/close-icon.js +25 -0
- package/dist/icons/copy-icon.d.ts +7 -0
- package/dist/icons/copy-icon.d.ts.map +1 -0
- package/dist/icons/copy-icon.js +26 -0
- package/dist/icons/danger-icon.d.ts +4 -0
- package/dist/icons/danger-icon.d.ts.map +1 -0
- package/dist/icons/danger-icon.js +24 -0
- package/dist/icons/dashboard-icon.d.ts +7 -0
- package/dist/icons/dashboard-icon.d.ts.map +1 -0
- package/dist/icons/dashboard-icon.js +43 -0
- package/dist/icons/delete-icon.d.ts +7 -0
- package/dist/icons/delete-icon.d.ts.map +1 -0
- package/dist/icons/delete-icon.js +42 -0
- package/dist/icons/document-icon.d.ts +7 -0
- package/dist/icons/document-icon.d.ts.map +1 -0
- package/dist/icons/document-icon.js +36 -0
- package/dist/icons/download-icon.d.ts +7 -0
- package/dist/icons/download-icon.d.ts.map +1 -0
- package/dist/icons/download-icon.js +27 -0
- package/dist/icons/edit-icon.d.ts +7 -0
- package/dist/icons/edit-icon.d.ts.map +1 -0
- package/dist/icons/edit-icon.js +39 -0
- package/dist/icons/ellipsis-icon.d.ts +7 -0
- package/dist/icons/ellipsis-icon.d.ts.map +1 -0
- package/dist/icons/ellipsis-icon.js +40 -0
- package/dist/icons/email-icon.d.ts +7 -0
- package/dist/icons/email-icon.d.ts.map +1 -0
- package/dist/icons/email-icon.js +31 -0
- package/dist/icons/external-link-icon.d.ts +7 -0
- package/dist/icons/external-link-icon.d.ts.map +1 -0
- package/dist/icons/external-link-icon.js +27 -0
- package/dist/icons/github-icon.d.ts +7 -0
- package/dist/icons/github-icon.d.ts.map +1 -0
- package/dist/icons/github-icon.js +24 -0
- package/dist/icons/globe-icon.d.ts +7 -0
- package/dist/icons/globe-icon.d.ts.map +1 -0
- package/dist/icons/globe-icon.js +44 -0
- package/dist/icons/google-icon.d.ts +7 -0
- package/dist/icons/google-icon.d.ts.map +1 -0
- package/dist/icons/google-icon.js +42 -0
- package/dist/icons/gripper-vertical-icon.d.ts +7 -0
- package/dist/icons/gripper-vertical-icon.d.ts.map +1 -0
- package/dist/icons/gripper-vertical-icon.js +49 -0
- package/dist/icons/home-icon.d.ts +7 -0
- package/dist/icons/home-icon.d.ts.map +1 -0
- package/dist/icons/home-icon.js +37 -0
- package/dist/icons/icon-element.d.ts +11 -0
- package/dist/icons/icon-element.d.ts.map +1 -0
- package/dist/icons/icon-element.js +19 -0
- package/dist/icons/icon-sprite.js +10 -0
- package/dist/icons/icons.module.js +44 -0
- package/dist/icons/icons_module.css +148 -0
- package/dist/icons/index.d.ts +40 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons/index.js +39 -0
- package/dist/icons/info-icon.d.ts +4 -0
- package/dist/icons/info-icon.d.ts.map +1 -0
- package/dist/icons/info-icon.js +24 -0
- package/dist/icons/infonomic-icon.d.ts +7 -0
- package/dist/icons/infonomic-icon.d.ts.map +1 -0
- package/dist/icons/infonomic-icon.js +211 -0
- package/dist/icons/light-icon.d.ts +7 -0
- package/dist/icons/light-icon.d.ts.map +1 -0
- package/dist/icons/light-icon.js +23 -0
- package/dist/icons/location-pin-icon.d.ts +7 -0
- package/dist/icons/location-pin-icon.d.ts.map +1 -0
- package/dist/icons/location-pin-icon.js +31 -0
- package/dist/icons/moon-icon.d.ts +7 -0
- package/dist/icons/moon-icon.d.ts.map +1 -0
- package/dist/icons/moon-icon.js +26 -0
- package/dist/icons/plus-icon.d.ts +7 -0
- package/dist/icons/plus-icon.d.ts.map +1 -0
- package/dist/icons/plus-icon.js +32 -0
- package/dist/icons/primary-icon.d.ts +4 -0
- package/dist/icons/primary-icon.d.ts.map +1 -0
- package/dist/icons/primary-icon.js +21 -0
- package/dist/icons/refresh-icon.d.ts +7 -0
- package/dist/icons/refresh-icon.d.ts.map +1 -0
- package/dist/icons/refresh-icon.js +31 -0
- package/dist/icons/return-icon.d.ts +7 -0
- package/dist/icons/return-icon.d.ts.map +1 -0
- package/dist/icons/return-icon.js +35 -0
- package/dist/icons/roles-icon.d.ts +7 -0
- package/dist/icons/roles-icon.d.ts.map +1 -0
- package/dist/icons/roles-icon.js +34 -0
- package/dist/icons/search-icon.d.ts +7 -0
- package/dist/icons/search-icon.d.ts.map +1 -0
- package/dist/icons/search-icon.js +23 -0
- package/dist/icons/search-menu-icon.d.ts +7 -0
- package/dist/icons/search-menu-icon.d.ts.map +1 -0
- package/dist/icons/search-menu-icon.js +42 -0
- package/dist/icons/settings-gear-icon.d.ts +7 -0
- package/dist/icons/settings-gear-icon.d.ts.map +1 -0
- package/dist/icons/settings-gear-icon.js +34 -0
- package/dist/icons/settings-sliders-icon.d.ts +7 -0
- package/dist/icons/settings-sliders-icon.d.ts.map +1 -0
- package/dist/icons/settings-sliders-icon.js +55 -0
- package/dist/icons/sign-out-icon.d.ts +7 -0
- package/dist/icons/sign-out-icon.d.ts.map +1 -0
- package/dist/icons/sign-out-icon.js +39 -0
- package/dist/icons/stopwatch-icon.d.ts +7 -0
- package/dist/icons/stopwatch-icon.d.ts.map +1 -0
- package/dist/icons/stopwatch-icon.js +26 -0
- package/dist/icons/success-icon.d.ts +4 -0
- package/dist/icons/success-icon.d.ts.map +1 -0
- package/dist/icons/success-icon.js +24 -0
- package/dist/icons/types/icon.d.ts +10 -0
- package/dist/icons/types/icon.d.ts.map +1 -0
- package/dist/icons/types/icon.js +0 -0
- package/dist/icons/user-icon.d.ts +7 -0
- package/dist/icons/user-icon.d.ts.map +1 -0
- package/dist/icons/user-icon.js +31 -0
- package/dist/icons/users-icon.d.ts +7 -0
- package/dist/icons/users-icon.d.ts.map +1 -0
- package/dist/icons/users-icon.js +37 -0
- package/dist/icons/wallet-icon.d.ts +7 -0
- package/dist/icons/wallet-icon.d.ts.map +1 -0
- package/dist/icons/wallet-icon.js +23 -0
- package/dist/icons/warning-icon.d.ts +4 -0
- package/dist/icons/warning-icon.d.ts.map +1 -0
- package/dist/icons/warning-icon.js +24 -0
- package/dist/icons/x-icon.d.ts +7 -0
- package/dist/icons/x-icon.d.ts.map +1 -0
- package/dist/icons/x-icon.js +25 -0
- package/dist/loaders/ellipses.d.ts +4 -0
- package/dist/loaders/ellipses.d.ts.map +1 -0
- package/dist/loaders/ellipses.js +23 -0
- package/dist/loaders/ring.d.ts +4 -0
- package/dist/loaders/ring.d.ts.map +1 -0
- package/dist/loaders/ring.js +25 -0
- package/dist/loaders/spinner.d.ts +6 -0
- package/dist/loaders/spinner.d.ts.map +1 -0
- package/dist/loaders/spinner.js +22 -0
- package/dist/loaders/types/index.d.ts +7 -0
- package/dist/loaders/types/index.d.ts.map +1 -0
- package/dist/loaders/types/index.js +0 -0
- package/dist/react.d.ts +97 -0
- package/dist/react.d.ts.map +1 -0
- package/dist/react.js +92 -0
- package/dist/styles/styles.css +1 -0
- package/dist/styles/typography.css +1 -0
- package/dist/theme/theme-provider/index.js +1 -0
- package/dist/theme/theme-provider/provider.js +25 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/utils/capitalize.js +5 -0
- package/dist/utils/externalLinkProps.js +6 -0
- package/dist/utils/findMatch.js +6 -0
- package/dist/utils/getPortalRoot.d.ts +2 -0
- package/dist/utils/getPortalRoot.d.ts.map +1 -0
- package/dist/utils/getPortalRoot.js +4 -0
- package/dist/utils/isTouchDevice.js +3 -0
- package/dist/utils/objectsToArray.js +15 -0
- package/dist/utils/objectsToString.js +5 -0
- package/dist/utils/polymorphic.js +0 -0
- package/dist/utils/to-kebab-case.js +5 -0
- package/dist/widgets/datepicker/datepicker.js +245 -0
- package/dist/widgets/datepicker/datepicker.module.js +33 -0
- package/dist/widgets/datepicker/datepicker_module.css +187 -0
- package/dist/widgets/drawer/drawer-container.d.ts +10 -0
- package/dist/widgets/drawer/drawer-container.d.ts.map +1 -0
- package/dist/widgets/drawer/drawer-container.js +14 -0
- package/dist/widgets/drawer/drawer-content.d.ts +10 -0
- package/dist/widgets/drawer/drawer-content.d.ts.map +1 -0
- package/dist/widgets/drawer/drawer-content.js +13 -0
- package/dist/widgets/drawer/drawer-context.d.ts +14 -0
- package/dist/widgets/drawer/drawer-context.d.ts.map +1 -0
- package/dist/widgets/drawer/drawer-context.js +34 -0
- package/dist/widgets/drawer/drawer-header.d.ts +10 -0
- package/dist/widgets/drawer/drawer-header.d.ts.map +1 -0
- package/dist/widgets/drawer/drawer-header.js +17 -0
- package/dist/widgets/drawer/drawer-top-actions.d.ts +10 -0
- package/dist/widgets/drawer/drawer-top-actions.d.ts.map +1 -0
- package/dist/widgets/drawer/drawer-top-actions.js +17 -0
- package/dist/widgets/drawer/drawer-wrapper.d.ts +9 -0
- package/dist/widgets/drawer/drawer-wrapper.d.ts.map +1 -0
- package/dist/widgets/drawer/drawer-wrapper.js +37 -0
- package/dist/widgets/drawer/drawer.d.ts +27 -0
- package/dist/widgets/drawer/drawer.d.ts.map +1 -0
- package/dist/widgets/drawer/drawer.js +74 -0
- package/dist/widgets/drawer/drawer.module.js +29 -0
- package/dist/widgets/drawer/drawer_module.css +109 -0
- package/dist/widgets/drawer/motionDomAnimation.d.ts +3 -0
- package/dist/widgets/drawer/motionDomAnimation.d.ts.map +1 -0
- package/dist/widgets/drawer/motionDomAnimation.js +4 -0
- package/dist/widgets/drawer/motionDomMax.d.ts +3 -0
- package/dist/widgets/drawer/motionDomMax.d.ts.map +1 -0
- package/dist/widgets/drawer/motionDomMax.js +4 -0
- package/dist/widgets/modal/modal-actions.d.ts +10 -0
- package/dist/widgets/modal/modal-actions.d.ts.map +1 -0
- package/dist/widgets/modal/modal-actions.js +13 -0
- package/dist/widgets/modal/modal-container.d.ts +10 -0
- package/dist/widgets/modal/modal-container.d.ts.map +1 -0
- package/dist/widgets/modal/modal-container.js +13 -0
- package/dist/widgets/modal/modal-content.d.ts +10 -0
- package/dist/widgets/modal/modal-content.d.ts.map +1 -0
- package/dist/widgets/modal/modal-content.js +13 -0
- package/dist/widgets/modal/modal-header.d.ts +10 -0
- package/dist/widgets/modal/modal-header.d.ts.map +1 -0
- package/dist/widgets/modal/modal-header.js +17 -0
- package/dist/widgets/modal/modal-wrapper.d.ts +8 -0
- package/dist/widgets/modal/modal-wrapper.d.ts.map +1 -0
- package/dist/widgets/modal/modal-wrapper.js +36 -0
- package/dist/widgets/modal/modal.d.ts +35 -0
- package/dist/widgets/modal/modal.d.ts.map +1 -0
- package/dist/widgets/modal/modal.js +71 -0
- package/dist/widgets/modal/modal.module.js +14 -0
- package/dist/widgets/modal/modal_module.css +82 -0
- package/dist/widgets/modal/motionDomAnimation.d.ts +3 -0
- package/dist/widgets/modal/motionDomAnimation.d.ts.map +1 -0
- package/dist/widgets/modal/motionDomAnimation.js +4 -0
- package/dist/widgets/modal/motionDomMax.d.ts +3 -0
- package/dist/widgets/modal/motionDomMax.d.ts.map +1 -0
- package/dist/widgets/modal/motionDomMax.js +4 -0
- package/dist/widgets/search/index.js +1 -0
- package/dist/widgets/search/search.d.ts +21 -0
- package/dist/widgets/search/search.d.ts.map +1 -0
- package/dist/widgets/search/search.js +108 -0
- package/package.json +112 -0
- package/src/astro.js +43 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.overlay-hax8h5 {
|
|
2
|
+
z-index: 20;
|
|
3
|
+
background-color: #f5f5f559;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
position: fixed;
|
|
7
|
+
top: 0;
|
|
8
|
+
left: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.overlay-hax8h5:is(.dark *) {
|
|
12
|
+
background-color: #00000080;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.animate-fade-in-oC0Zd7 {
|
|
16
|
+
animation: .3s ease-in-out fade-in-ODU8WG;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.animate-fade-out-kWVP8l {
|
|
20
|
+
animation: .3s ease-in-out fade-out-i2NoTL;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@keyframes fade-in-ODU8WG {
|
|
24
|
+
from {
|
|
25
|
+
opacity: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
to {
|
|
29
|
+
opacity: 1;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@keyframes fade-out-i2NoTL {
|
|
34
|
+
from {
|
|
35
|
+
opacity: 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
to {
|
|
39
|
+
opacity: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/pager/@types/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,8CAA+C,CAAA;AACnE,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ellipses.d.ts","sourceRoot":"","sources":["../../../src/components/pager/ellipses.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,wBAAgB,QAAQ,IAAI,KAAK,CAAC,GAAG,CAAC,OAAO,CAQ5C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import classnames from "classnames";
|
|
4
|
+
import { usePager } from "./pagination.js";
|
|
5
|
+
import pagination_module from "./pagination.module.js";
|
|
6
|
+
function Ellipses() {
|
|
7
|
+
const { variant } = usePager();
|
|
8
|
+
return /*#__PURE__*/ jsx("li", {
|
|
9
|
+
className: "flex",
|
|
10
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
11
|
+
className: classnames(pagination_module.ellipses, 'pager-ellipses'),
|
|
12
|
+
children: "..."
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
export { Ellipses };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Pagination } from "./pagination.js";
|
|
4
|
+
function EventPager(props) {
|
|
5
|
+
const { className, 'aria-label': ariaLabel, ...rest } = props;
|
|
6
|
+
return /*#__PURE__*/ jsx(Pagination, {
|
|
7
|
+
...rest,
|
|
8
|
+
children: /*#__PURE__*/ jsx(Pagination.Root, {
|
|
9
|
+
className: className,
|
|
10
|
+
ariaLabel: ariaLabel,
|
|
11
|
+
children: /*#__PURE__*/ jsx(Pagination.Pager, {})
|
|
12
|
+
})
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
export { EventPager };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { PagerButtonProps, RefType } from './pagination';
|
|
3
|
+
export declare const FirstButton: {
|
|
4
|
+
({ ref, className, disabled, asChild, children, ...rest }: PagerButtonProps & {
|
|
5
|
+
ref?: React.RefObject<RefType>;
|
|
6
|
+
}): React.JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=first-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"first-button.d.ts","sourceRoot":"","sources":["../../../src/components/pager/first-button.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAI7D,eAAO,MAAM,WAAW;+DAOrB,gBAAgB,GAAG;QACpB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;KAC/B;;CA4BA,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { DoubleArrowLeftIcon } from "@radix-ui/react-icons";
|
|
4
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
5
|
+
import classnames from "classnames";
|
|
6
|
+
import { usePager } from "./pagination.js";
|
|
7
|
+
import pagination_module from "./pagination.module.js";
|
|
8
|
+
const FirstButton = ({ ref, className, disabled, asChild, children, ...rest })=>{
|
|
9
|
+
const { variant } = usePager();
|
|
10
|
+
const Comp = null != asChild ? Slot : 'button';
|
|
11
|
+
const aria = disabled ? {
|
|
12
|
+
'aria-disabled': true
|
|
13
|
+
} : {
|
|
14
|
+
'aria-label': 'First'
|
|
15
|
+
};
|
|
16
|
+
return /*#__PURE__*/ jsx("li", {
|
|
17
|
+
className: pagination_module["mobile-toggle"],
|
|
18
|
+
children: /*#__PURE__*/ jsx(Comp, {
|
|
19
|
+
ref: ref,
|
|
20
|
+
className: classnames(pagination_module["first-button"], pagination_module[variant], pagination_module["rounded-left"], 'pager-first', className),
|
|
21
|
+
disabled: disabled,
|
|
22
|
+
"data-testid": "pager-first",
|
|
23
|
+
title: "First",
|
|
24
|
+
...aria,
|
|
25
|
+
...rest,
|
|
26
|
+
children: asChild ?? false ? children : /*#__PURE__*/ jsx(DoubleArrowLeftIcon, {})
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
FirstButton.displayName = 'FirstButton';
|
|
31
|
+
export { FirstButton };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export interface UsePaginationProps {
|
|
3
|
+
/**
|
|
4
|
+
* Number of always visible pages at the beginning and end.
|
|
5
|
+
* @default 1
|
|
6
|
+
*/
|
|
7
|
+
boundaryCount?: number;
|
|
8
|
+
/**
|
|
9
|
+
* The name of the component where this hook is used.
|
|
10
|
+
*/
|
|
11
|
+
componentName?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The total number of pages.
|
|
14
|
+
* @default 1
|
|
15
|
+
*/
|
|
16
|
+
count: number;
|
|
17
|
+
/**
|
|
18
|
+
* The page selected by default when the component is uncontrolled.
|
|
19
|
+
* @default 1
|
|
20
|
+
*/
|
|
21
|
+
defaultPage?: number;
|
|
22
|
+
/**
|
|
23
|
+
* If `true`, the component is disabled.
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* If `true`, hide the next-page button.
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
hideNextButton?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* If `true`, hide the previous-page button.
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
hidePrevButton?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Callback fired when the page is changed.
|
|
39
|
+
*
|
|
40
|
+
* @param {React.ChangeEvent<unknown>} event The event source of the callback.
|
|
41
|
+
* @param {number} page The page selected.
|
|
42
|
+
*/
|
|
43
|
+
onChange?: (event: React.ChangeEvent<unknown>, page: number) => void;
|
|
44
|
+
/**
|
|
45
|
+
* The current page.
|
|
46
|
+
*/
|
|
47
|
+
page: number;
|
|
48
|
+
/**
|
|
49
|
+
* If `true`, show the first-page button.
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
showFirstButton?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* If `true`, show the last-page button.
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
showLastButton?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Number of always visible pages before and after the current page.
|
|
60
|
+
* @default 1
|
|
61
|
+
*/
|
|
62
|
+
siblingCount?: number;
|
|
63
|
+
}
|
|
64
|
+
export interface UsePaginationItem {
|
|
65
|
+
onClick: React.ReactEventHandler;
|
|
66
|
+
type: 'page' | 'first' | 'last' | 'next' | 'previous' | 'start-ellipsis' | 'end-ellipsis';
|
|
67
|
+
page: number;
|
|
68
|
+
selected: boolean;
|
|
69
|
+
disabled: boolean;
|
|
70
|
+
'aria-current'?: string | undefined;
|
|
71
|
+
}
|
|
72
|
+
export interface UsePaginationResult {
|
|
73
|
+
items: UsePaginationItem[];
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=usePagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePagination.d.ts","sourceRoot":"","sources":["../../../../../src/components/pager/hooks/types/usePagination.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAEnC,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACpE;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAA;IAChC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,gBAAgB,GAAG,cAAc,CAAA;IACzF,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACpC;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,iBAAiB,EAAE,CAAA;CAC3B"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePagination.d.ts","sourceRoot":"","sources":["../../../../src/components/pager/hooks/usePagination.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,uBAAuB,CAAA;AAE9B,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,mBAAmB,CAkI5E"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
function usePagination(props) {
|
|
2
|
+
const { boundaryCount = 1, count = 1, disabled = false, hideNextButton = false, hidePrevButton = false, onChange: handleChange, page = 1, showFirstButton = false, showLastButton = false, siblingCount = 1, ...other } = props;
|
|
3
|
+
const handleClick = (event, value)=>{
|
|
4
|
+
if (null != handleChange) handleChange(event, value);
|
|
5
|
+
};
|
|
6
|
+
const range = (start, end)=>{
|
|
7
|
+
const length = end - start + 1;
|
|
8
|
+
return Array.from({
|
|
9
|
+
length
|
|
10
|
+
}, (_, i)=>start + i);
|
|
11
|
+
};
|
|
12
|
+
const startPages = range(1, Math.min(boundaryCount, count));
|
|
13
|
+
const endPages = range(Math.max(count - boundaryCount + 1, boundaryCount + 1), count);
|
|
14
|
+
const siblingsStart = Math.max(Math.min(page - siblingCount, count - boundaryCount - 2 * siblingCount - 1), boundaryCount + 2);
|
|
15
|
+
const siblingsEnd = Math.min(Math.max(page + siblingCount, boundaryCount + 2 * siblingCount + 2), endPages.length > 0 ? endPages[0] - 2 : count - 1);
|
|
16
|
+
const itemList = [
|
|
17
|
+
...showFirstButton ? [
|
|
18
|
+
'first'
|
|
19
|
+
] : [],
|
|
20
|
+
...hidePrevButton ? [] : [
|
|
21
|
+
'previous'
|
|
22
|
+
],
|
|
23
|
+
...startPages,
|
|
24
|
+
...siblingsStart > boundaryCount + 2 ? [
|
|
25
|
+
'start-ellipsis'
|
|
26
|
+
] : boundaryCount + 1 < count - boundaryCount ? [
|
|
27
|
+
boundaryCount + 1
|
|
28
|
+
] : [],
|
|
29
|
+
...range(siblingsStart, siblingsEnd),
|
|
30
|
+
...siblingsEnd < count - boundaryCount - 1 ? [
|
|
31
|
+
'end-ellipsis'
|
|
32
|
+
] : count - boundaryCount > boundaryCount ? [
|
|
33
|
+
count - boundaryCount
|
|
34
|
+
] : [],
|
|
35
|
+
...endPages,
|
|
36
|
+
...hideNextButton ? [] : [
|
|
37
|
+
'next'
|
|
38
|
+
],
|
|
39
|
+
...showLastButton ? [
|
|
40
|
+
'last'
|
|
41
|
+
] : []
|
|
42
|
+
];
|
|
43
|
+
const buttonPage = (type)=>{
|
|
44
|
+
switch(type){
|
|
45
|
+
case 'first':
|
|
46
|
+
return 1;
|
|
47
|
+
case 'previous':
|
|
48
|
+
return page - 1;
|
|
49
|
+
case 'next':
|
|
50
|
+
return page + 1;
|
|
51
|
+
case 'last':
|
|
52
|
+
return count;
|
|
53
|
+
default:
|
|
54
|
+
return 1;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
const items = itemList.map((item)=>'number' == typeof item ? {
|
|
58
|
+
onClick: (event)=>{
|
|
59
|
+
handleClick(event, item);
|
|
60
|
+
},
|
|
61
|
+
type: 'page',
|
|
62
|
+
page: item,
|
|
63
|
+
selected: item === page,
|
|
64
|
+
disabled: item === page,
|
|
65
|
+
'aria-current': item === page ? 'true' : void 0
|
|
66
|
+
} : {
|
|
67
|
+
onClick: (event)=>{
|
|
68
|
+
handleClick(event, buttonPage(item));
|
|
69
|
+
},
|
|
70
|
+
type: item,
|
|
71
|
+
page: buttonPage(item),
|
|
72
|
+
selected: false,
|
|
73
|
+
disabled: disabled || !item.includes('ellipsis') && ('next' === item || 'last' === item ? page >= count : page <= 1)
|
|
74
|
+
});
|
|
75
|
+
return {
|
|
76
|
+
items,
|
|
77
|
+
...other
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
export { usePagination };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
function FirstIcon() {
|
|
3
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
|
4
|
+
children: [
|
|
5
|
+
/*#__PURE__*/ jsx("span", {
|
|
6
|
+
className: "sr-only",
|
|
7
|
+
children: "First"
|
|
8
|
+
}),
|
|
9
|
+
/*#__PURE__*/ jsx("svg", {
|
|
10
|
+
className: "h-5 w-5",
|
|
11
|
+
"aria-hidden": "true",
|
|
12
|
+
fill: "currentColor",
|
|
13
|
+
viewBox: "0 0 20 20",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
16
|
+
fillRule: "evenodd",
|
|
17
|
+
d: "M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",
|
|
18
|
+
clipRule: "evenodd"
|
|
19
|
+
})
|
|
20
|
+
}),
|
|
21
|
+
/*#__PURE__*/ jsx("svg", {
|
|
22
|
+
className: "-ml-2 h-5 w-5",
|
|
23
|
+
"aria-hidden": "true",
|
|
24
|
+
fill: "currentColor",
|
|
25
|
+
viewBox: "0 0 20 20",
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
28
|
+
fillRule: "evenodd",
|
|
29
|
+
d: "M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",
|
|
30
|
+
clipRule: "evenodd"
|
|
31
|
+
})
|
|
32
|
+
})
|
|
33
|
+
]
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
export { FirstIcon };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
function LastIcon() {
|
|
3
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
|
4
|
+
children: [
|
|
5
|
+
/*#__PURE__*/ jsx("span", {
|
|
6
|
+
className: "sr-only",
|
|
7
|
+
children: "Last"
|
|
8
|
+
}),
|
|
9
|
+
/*#__PURE__*/ jsx("svg", {
|
|
10
|
+
className: "-mr-2 h-5 w-5",
|
|
11
|
+
"aria-hidden": "true",
|
|
12
|
+
fill: "currentColor",
|
|
13
|
+
viewBox: "0 0 20 20",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
16
|
+
fillRule: "evenodd",
|
|
17
|
+
d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",
|
|
18
|
+
clipRule: "evenodd"
|
|
19
|
+
})
|
|
20
|
+
}),
|
|
21
|
+
/*#__PURE__*/ jsx("svg", {
|
|
22
|
+
className: "h-5 w-5",
|
|
23
|
+
"aria-hidden": "true",
|
|
24
|
+
fill: "currentColor",
|
|
25
|
+
viewBox: "0 0 20 20",
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
28
|
+
fillRule: "evenodd",
|
|
29
|
+
d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",
|
|
30
|
+
clipRule: "evenodd"
|
|
31
|
+
})
|
|
32
|
+
})
|
|
33
|
+
]
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
export { LastIcon };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
function NextIcon() {
|
|
3
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
|
4
|
+
children: [
|
|
5
|
+
/*#__PURE__*/ jsx("span", {
|
|
6
|
+
className: "sr-only",
|
|
7
|
+
children: "Next"
|
|
8
|
+
}),
|
|
9
|
+
/*#__PURE__*/ jsx("svg", {
|
|
10
|
+
className: "h-5 w-5",
|
|
11
|
+
"aria-hidden": "true",
|
|
12
|
+
fill: "currentColor",
|
|
13
|
+
viewBox: "0 0 20 20",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
16
|
+
fillRule: "evenodd",
|
|
17
|
+
d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",
|
|
18
|
+
clipRule: "evenodd"
|
|
19
|
+
})
|
|
20
|
+
})
|
|
21
|
+
]
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export { NextIcon };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
function PreviousIcon() {
|
|
3
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
|
4
|
+
children: [
|
|
5
|
+
/*#__PURE__*/ jsx("span", {
|
|
6
|
+
className: "sr-only",
|
|
7
|
+
children: "Previous"
|
|
8
|
+
}),
|
|
9
|
+
/*#__PURE__*/ jsx("svg", {
|
|
10
|
+
className: "h-5 w-5",
|
|
11
|
+
"aria-hidden": "true",
|
|
12
|
+
fill: "currentColor",
|
|
13
|
+
viewBox: "0 0 20 20",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
16
|
+
fillRule: "evenodd",
|
|
17
|
+
d: "M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",
|
|
18
|
+
clipRule: "evenodd"
|
|
19
|
+
})
|
|
20
|
+
})
|
|
21
|
+
]
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export { PreviousIcon };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { PagerButtonProps, RefType } from './pagination';
|
|
3
|
+
export type LastButtonProps = PagerButtonProps & {
|
|
4
|
+
count: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const LastButton: {
|
|
7
|
+
({ ref, className, disabled, count, asChild, children, ...rest }: LastButtonProps & {
|
|
8
|
+
ref?: React.RefObject<RefType>;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=last-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"last-button.d.ts","sourceRoot":"","sources":["../../../src/components/pager/last-button.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAI7D,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG;IAC/C,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,eAAO,MAAM,UAAU;sEAQpB,eAAe,GAAG;QACnB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;KAC/B;;CA2BA,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { DoubleArrowRightIcon } from "@radix-ui/react-icons";
|
|
4
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
5
|
+
import classnames from "classnames";
|
|
6
|
+
import { usePager } from "./pagination.js";
|
|
7
|
+
import pagination_module from "./pagination.module.js";
|
|
8
|
+
const LastButton = ({ ref, className, disabled, count, asChild, children, ...rest })=>{
|
|
9
|
+
const { variant } = usePager();
|
|
10
|
+
const Comp = null != asChild ? Slot : 'button';
|
|
11
|
+
const aria = disabled ? {
|
|
12
|
+
'aria-disabled': true
|
|
13
|
+
} : {
|
|
14
|
+
'aria-label': 'Last'
|
|
15
|
+
};
|
|
16
|
+
return /*#__PURE__*/ jsx("li", {
|
|
17
|
+
className: pagination_module["mobile-toggle"],
|
|
18
|
+
children: /*#__PURE__*/ jsx(Comp, {
|
|
19
|
+
ref: ref,
|
|
20
|
+
className: classnames(pagination_module["last-button"], pagination_module[variant], pagination_module["rounded-right"], 'pager-last', className),
|
|
21
|
+
disabled: disabled,
|
|
22
|
+
title: "Last",
|
|
23
|
+
"data-testid": "pager-last",
|
|
24
|
+
...aria,
|
|
25
|
+
...rest,
|
|
26
|
+
children: asChild ?? false ? children : /*#__PURE__*/ jsx(DoubleArrowRightIcon, {})
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
LastButton.displayName = 'LastButton';
|
|
31
|
+
export { LastButton };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { PagerButtonProps, RefType } from './pagination';
|
|
3
|
+
export type NextButtonProps = PagerButtonProps & {
|
|
4
|
+
page: number | null;
|
|
5
|
+
};
|
|
6
|
+
export declare const NextButton: {
|
|
7
|
+
({ ref, className, disabled, page, asChild, children, ...rest }: NextButtonProps & {
|
|
8
|
+
ref?: React.RefObject<RefType>;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=next-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next-button.d.ts","sourceRoot":"","sources":["../../../src/components/pager/next-button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAI7D,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG;IAC/C,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,UAAU;qEAQpB,eAAe,GAAG;QACnB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;KAC/B;;CA2BA,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { ChevronRightIcon } from "@radix-ui/react-icons";
|
|
4
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
5
|
+
import classnames from "classnames";
|
|
6
|
+
import { usePager } from "./pagination.js";
|
|
7
|
+
import pagination_module from "./pagination.module.js";
|
|
8
|
+
const NextButton = ({ ref, className, disabled, page, asChild, children, ...rest })=>{
|
|
9
|
+
const Comp = null != asChild ? Slot : 'button';
|
|
10
|
+
const { variant, showLastButton } = usePager();
|
|
11
|
+
const aria = disabled ? {
|
|
12
|
+
'aria-disabled': true
|
|
13
|
+
} : {
|
|
14
|
+
'aria-label': 'Next'
|
|
15
|
+
};
|
|
16
|
+
return /*#__PURE__*/ jsx("li", {
|
|
17
|
+
className: pagination_module["mobile-toggle"],
|
|
18
|
+
children: /*#__PURE__*/ jsx(Comp, {
|
|
19
|
+
ref: ref,
|
|
20
|
+
className: classnames(pagination_module["next-button"], [
|
|
21
|
+
pagination_module[variant]
|
|
22
|
+
], {
|
|
23
|
+
[pagination_module["rounded-right"]]: null == showLastButton || false === showLastButton
|
|
24
|
+
}, 'pager-next', className),
|
|
25
|
+
disabled: disabled,
|
|
26
|
+
title: "Next",
|
|
27
|
+
"data-testid": "pager-next",
|
|
28
|
+
...aria,
|
|
29
|
+
...rest,
|
|
30
|
+
children: asChild ?? false ? children : /*#__PURE__*/ jsx(ChevronRightIcon, {})
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
NextButton.displayName = 'NextButton';
|
|
35
|
+
export { NextButton };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { PagerButtonProps, RefType } from './pagination';
|
|
3
|
+
export type NumberButtonProps = PagerButtonProps & {
|
|
4
|
+
page: number | null;
|
|
5
|
+
activeClassName?: string;
|
|
6
|
+
selected?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const NumberButton: {
|
|
9
|
+
({ ref, page, className, disabled, activeClassName, asChild, children, ...rest }: NumberButtonProps & {
|
|
10
|
+
ref?: React.RefObject<RefType>;
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=number-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number-button.d.ts","sourceRoot":"","sources":["../../../src/components/pager/number-button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B,OAAO,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAM7D,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAAG;IACjD,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,YAAY;sFAStB,iBAAiB,GAAG;QACrB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;KAC/B;;CAmDA,CAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import classnames from "classnames";
|
|
5
|
+
import { usePager } from "./pagination.js";
|
|
6
|
+
import { useMediaQuery } from "../../hooks/use-media-query.js";
|
|
7
|
+
import pagination_module from "./pagination.module.js";
|
|
8
|
+
const NumberButton = ({ ref, page, className, disabled, activeClassName, asChild, children, ...rest })=>{
|
|
9
|
+
const mobile = useMediaQuery('(max-width: 640px)');
|
|
10
|
+
const { variant, currentPage, count, showFirstButton, showLastButton, hideNextButton, hidePrevButton } = usePager();
|
|
11
|
+
const Comp = null != asChild ? Slot : 'button';
|
|
12
|
+
const active = page === currentPage;
|
|
13
|
+
return /*#__PURE__*/ jsx("li", {
|
|
14
|
+
className: "flex",
|
|
15
|
+
children: /*#__PURE__*/ jsx(Comp, {
|
|
16
|
+
ref: ref,
|
|
17
|
+
className: classnames(pagination_module["number-button"], [
|
|
18
|
+
pagination_module[variant]
|
|
19
|
+
], {
|
|
20
|
+
[pagination_module.active]: true === active,
|
|
21
|
+
active: true === active
|
|
22
|
+
}, {
|
|
23
|
+
[pagination_module["rounded-left"]]: 1 === page && (!(showFirstButton ?? false) && (hidePrevButton ?? false) || mobile)
|
|
24
|
+
}, {
|
|
25
|
+
[pagination_module["rounded-right"]]: page === count && (!(showLastButton ?? false) && (hideNextButton ?? false) || mobile)
|
|
26
|
+
}, 'pager-number', className),
|
|
27
|
+
"data-testid": classnames({
|
|
28
|
+
'pager-number-active': currentPage === page,
|
|
29
|
+
[`pager-number-${page}`]: currentPage !== page
|
|
30
|
+
}).length > 0 || void 0,
|
|
31
|
+
disabled: disabled,
|
|
32
|
+
"aria-current": currentPage === page,
|
|
33
|
+
"aria-label": currentPage === page ? `Current Page, Page ${page}` : `Page ${page}`,
|
|
34
|
+
...rest,
|
|
35
|
+
children: asChild ?? false ? children : /*#__PURE__*/ jsx(Fragment, {
|
|
36
|
+
children: page
|
|
37
|
+
})
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
NumberButton.displayName = 'NumberButton';
|
|
42
|
+
export { NumberButton };
|