@wisdomgarden/torque 0.1.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/README.md +75 -0
- package/dist/common/components.types.d.ts +60 -0
- package/dist/common/components.types.js +1 -0
- package/dist/common/dayjs.d.ts +7 -0
- package/dist/common/dayjs.js +10 -0
- package/dist/common/use-css-variable-value.d.ts +6 -0
- package/dist/common/use-css-variable-value.js +23 -0
- package/dist/common/use-css-variable-values.d.ts +10 -0
- package/dist/common/use-css-variable-values.js +25 -0
- package/dist/common/use-form-wrapper-props.d.ts +48 -0
- package/dist/common/use-form-wrapper-props.js +59 -0
- package/dist/common/use-ime-safe-input.d.ts +10 -0
- package/dist/common/use-ime-safe-input.js +23 -0
- package/dist/common/use-notification-a11y.d.ts +4 -0
- package/dist/common/use-notification-a11y.js +18 -0
- package/dist/common/use-sticky-box.d.ts +9 -0
- package/dist/common/use-sticky-box.js +217 -0
- package/dist/common/util.d.ts +5 -0
- package/dist/common/util.js +14 -0
- package/dist/components/_inner/base-select/common/searchable.d.ts +5 -0
- package/dist/components/_inner/base-select/common/searchable.js +6 -0
- package/dist/components/_inner/base-select/common/select.types.d.ts +169 -0
- package/dist/components/_inner/base-select/common/select.types.js +1 -0
- package/dist/components/_inner/base-select/search-select/index.d.ts +6 -0
- package/dist/components/_inner/base-select/search-select/index.js +106 -0
- package/dist/components/_inner/base-select/search-select/search-select.module.css.js +10 -0
- package/dist/components/_inner/base-select/single-select/index.d.ts +1 -0
- package/dist/components/_inner/base-select/single-select/index.js +5 -0
- package/dist/components/_inner/base-select/single-select/single-select.d.ts +5 -0
- package/dist/components/_inner/base-select/single-select/single-select.js +58 -0
- package/dist/components/_inner/base-select/target/single-select-target.d.ts +15 -0
- package/dist/components/_inner/base-select/target/single-select-target.js +56 -0
- package/dist/components/_inner/bottom-action/bottom-action-item.d.ts +11 -0
- package/dist/components/_inner/bottom-action/bottom-action-item.js +140 -0
- package/dist/components/_inner/bottom-action/bottom-action.d.ts +6 -0
- package/dist/components/_inner/bottom-action/bottom-action.js +161 -0
- package/dist/components/_inner/bottom-action/bottom-action.module.css.js +46 -0
- package/dist/components/_inner/bottom-action/bottom-action.types.d.ts +117 -0
- package/dist/components/_inner/bottom-action/index.d.ts +2 -0
- package/dist/components/_inner/bottom-action/index.js +5 -0
- package/dist/components/_inner/drawer/base-bottom-drawer.d.ts +32 -0
- package/dist/components/_inner/drawer/base-bottom-drawer.js +91 -0
- package/dist/components/_inner/drawer/base-bottom-drawer.module.css.js +18 -0
- package/dist/components/_inner/dropdown/empty-state.d.ts +6 -0
- package/dist/components/_inner/dropdown/empty-state.js +16 -0
- package/dist/components/_inner/dropdown/empty-state.module.css.js +12 -0
- package/dist/components/_inner/dropdown/options-drop-down.d.ts +22 -0
- package/dist/components/_inner/dropdown/options-drop-down.js +95 -0
- package/dist/components/_inner/dropdown/options-drop-down.module.css.js +18 -0
- package/dist/components/_inner/menu/_mobile/menu.mobile.d.ts +11 -0
- package/dist/components/_inner/menu/_mobile/menu.mobile.js +15 -0
- package/dist/components/_inner/menu/_web/menu-web.module.css.js +18 -0
- package/dist/components/_inner/menu/_web/menu.web.d.ts +6 -0
- package/dist/components/_inner/menu/_web/menu.web.js +198 -0
- package/dist/components/_inner/number/number-input-left.d.ts +5 -0
- package/dist/components/_inner/number/number-input-left.js +29 -0
- package/dist/components/_inner/number/number-input-right.d.ts +6 -0
- package/dist/components/_inner/number/number-input-right.js +62 -0
- package/dist/components/_inner/number/number.module.css.js +12 -0
- package/dist/components/_inner/table/head/table-head-filter-multi-select.d.ts +25 -0
- package/dist/components/_inner/table/head/table-head-filter-multi-select.js +139 -0
- package/dist/components/_inner/table/head/table-head-filter-search.d.ts +18 -0
- package/dist/components/_inner/table/head/table-head-filter-search.js +102 -0
- package/dist/components/_inner/table/head/table-head-filter-single-select.d.ts +21 -0
- package/dist/components/_inner/table/head/table-head-filter-single-select.js +76 -0
- package/dist/components/_inner/table/head/table-head-sort.d.ts +16 -0
- package/dist/components/_inner/table/head/table-head-sort.js +51 -0
- package/dist/components/_inner/table/head/table-head.module.css.js +40 -0
- package/dist/components/_inner/table/index.d.ts +5 -0
- package/dist/components/_inner/table/index.js +13 -0
- package/dist/components/_inner/table/table-header-title.d.ts +7 -0
- package/dist/components/_inner/table/table-header-title.js +24 -0
- package/dist/components/_inner/table/table-header-title.module.css.js +12 -0
- package/dist/components/_inner/tags-input/hooks/use-height-transition.d.ts +15 -0
- package/dist/components/_inner/tags-input/hooks/use-height-transition.js +31 -0
- package/dist/components/_inner/tags-input/hooks/use-is-wrapped.d.ts +12 -0
- package/dist/components/_inner/tags-input/hooks/use-is-wrapped.js +24 -0
- package/dist/components/_inner/tags-input/index.d.ts +2 -0
- package/dist/components/_inner/tags-input/index.js +5 -0
- package/dist/components/_inner/tags-input/styles/tags-input.module.css.js +48 -0
- package/dist/components/_inner/tags-input/tags-input-tag.d.ts +13 -0
- package/dist/components/_inner/tags-input/tags-input-tag.js +53 -0
- package/dist/components/_inner/tags-input/tags-input.d.ts +9 -0
- package/dist/components/_inner/tags-input/tags-input.js +143 -0
- package/dist/components/_inner/tags-input/tags-input.types.d.ts +57 -0
- package/dist/components/alert/alert.d.ts +6 -0
- package/dist/components/alert/alert.js +102 -0
- package/dist/components/alert/alert.module.css.js +20 -0
- package/dist/components/alert/alert.types.d.ts +18 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/index.js +6 -0
- package/dist/components/base-input/base-input.d.ts +5 -0
- package/dist/components/base-input/base-input.js +143 -0
- package/dist/components/base-input/base-input.types.d.ts +89 -0
- package/dist/components/base-input/index.d.ts +5 -0
- package/dist/components/base-input/index.js +11 -0
- package/dist/components/base-input/styles/base-input-variables.module.css.js +8 -0
- package/dist/components/base-input/styles/base-input.module.css.js +24 -0
- package/dist/components/base-input/subs/base-input-left-section.d.ts +10 -0
- package/dist/components/base-input/subs/base-input-left-section.js +29 -0
- package/dist/components/base-input/subs/base-input-right-section.d.ts +23 -0
- package/dist/components/base-input/subs/base-input-right-section.js +87 -0
- package/dist/components/base-input/subs/base-input-target.d.ts +11 -0
- package/dist/components/base-input/subs/base-input-target.js +35 -0
- package/dist/components/base-input/subs/base-input-wrapper.d.ts +18 -0
- package/dist/components/base-input/subs/base-input-wrapper.js +51 -0
- package/dist/components/base-input/util.d.ts +8 -0
- package/dist/components/base-input/util.js +16 -0
- package/dist/components/bottom-drawer/bottom-drawer.d.ts +6 -0
- package/dist/components/bottom-drawer/bottom-drawer.js +16 -0
- package/dist/components/bottom-drawer/index.d.ts +2 -0
- package/dist/components/bottom-drawer/index.js +5 -0
- package/dist/components/box/box.d.ts +2 -0
- package/dist/components/box/box.js +27 -0
- package/dist/components/box/box.module.css.js +8 -0
- package/dist/components/box/box.types.d.ts +36 -0
- package/dist/components/box/index.d.ts +2 -0
- package/dist/components/box/index.js +5 -0
- package/dist/components/button/button.d.ts +17 -0
- package/dist/components/button/button.js +91 -0
- package/dist/components/button/button.types.d.ts +88 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.js +5 -0
- package/dist/components/button/styles/button-variables.module.css.js +8 -0
- package/dist/components/button/styles/button.module.css.js +18 -0
- package/dist/components/checkbox/checkbox-group.d.ts +7 -0
- package/dist/components/checkbox/checkbox-group.js +51 -0
- package/dist/components/checkbox/checkbox-variables.module.css.js +8 -0
- package/dist/components/checkbox/checkbox.d.ts +9 -0
- package/dist/components/checkbox/checkbox.js +93 -0
- package/dist/components/checkbox/checkbox.module.css.js +12 -0
- package/dist/components/checkbox/checkbox.types.d.ts +41 -0
- package/dist/components/checkbox/index.d.ts +3 -0
- package/dist/components/checkbox/index.js +8 -0
- package/dist/components/combobox/combobox-context.d.ts +9 -0
- package/dist/components/combobox/combobox-context.js +15 -0
- package/dist/components/combobox/combobox-dropdown.d.ts +13 -0
- package/dist/components/combobox/combobox-dropdown.js +35 -0
- package/dist/components/combobox/combobox-infinite-dropdown.d.ts +51 -0
- package/dist/components/combobox/combobox-infinite-dropdown.js +56 -0
- package/dist/components/combobox/combobox-option.d.ts +3 -0
- package/dist/components/combobox/combobox-option.js +50 -0
- package/dist/components/combobox/combobox-options.d.ts +8 -0
- package/dist/components/combobox/combobox-options.js +38 -0
- package/dist/components/combobox/combobox-search.d.ts +27 -0
- package/dist/components/combobox/combobox-search.js +29 -0
- package/dist/components/combobox/combobox-target.d.ts +15 -0
- package/dist/components/combobox/combobox-target.js +49 -0
- package/dist/components/combobox/combobox.d.ts +61 -0
- package/dist/components/combobox/combobox.js +53 -0
- package/dist/components/combobox/combobox.types.d.ts +58 -0
- package/dist/components/combobox/hooks/use-combobox-search-input.d.ts +11 -0
- package/dist/components/combobox/hooks/use-combobox-search-input.js +22 -0
- package/dist/components/combobox/hooks/use-combobox-target-key-down.d.ts +12 -0
- package/dist/components/combobox/hooks/use-combobox-target-key-down.js +35 -0
- package/dist/components/combobox/hooks/use-combobox.d.ts +58 -0
- package/dist/components/combobox/hooks/use-combobox.js +90 -0
- package/dist/components/combobox/index.d.ts +5 -0
- package/dist/components/combobox/index.js +9 -0
- package/dist/components/combobox/styles/combobox.module.css.js +14 -0
- package/dist/components/combobox/subs/combobox-bottom-drawer-dropdown.d.ts +10 -0
- package/dist/components/combobox/subs/combobox-bottom-drawer-dropdown.js +14 -0
- package/dist/components/combobox/subs/combobox-bottom-drawer-target.d.ts +3 -0
- package/dist/components/combobox/subs/combobox-bottom-drawer-target.js +20 -0
- package/dist/components/data-filter/data-filter-content.d.ts +13 -0
- package/dist/components/data-filter/data-filter-content.js +46 -0
- package/dist/components/data-filter/data-filter-drawer.d.ts +19 -0
- package/dist/components/data-filter/data-filter-drawer.js +73 -0
- package/dist/components/data-filter/data-filter-inline.d.ts +6 -0
- package/dist/components/data-filter/data-filter-inline.js +12 -0
- package/dist/components/data-filter/data-filter-panel.d.ts +13 -0
- package/dist/components/data-filter/data-filter-panel.js +40 -0
- package/dist/components/data-filter/data-filter.d.ts +2 -0
- package/dist/components/data-filter/data-filter.js +94 -0
- package/dist/components/data-filter/data-filter.module.css.js +56 -0
- package/dist/components/data-filter/data-filter.types.d.ts +29 -0
- package/dist/components/data-filter/filter-condition-tags/filter-condition-tags.d.ts +16 -0
- package/dist/components/data-filter/filter-condition-tags/filter-condition-tags.js +114 -0
- package/dist/components/data-filter/filter-condition-tags/index.d.ts +1 -0
- package/dist/components/data-filter/filter-condition-tags/index.js +5 -0
- package/dist/components/data-filter/hooks/use-data-filter-open-state.d.ts +10 -0
- package/dist/components/data-filter/hooks/use-data-filter-open-state.js +21 -0
- package/dist/components/data-filter/hooks/use-data-filter-state.d.ts +11 -0
- package/dist/components/data-filter/hooks/use-data-filter-state.js +48 -0
- package/dist/components/data-filter/index.d.ts +3 -0
- package/dist/components/data-filter/index.js +7 -0
- package/dist/components/date-picker/components/common/calendar-header.d.ts +10 -0
- package/dist/components/date-picker/components/common/calendar-header.js +70 -0
- package/dist/components/date-picker/components/common/calendar-panel.d.ts +6 -0
- package/dist/components/date-picker/components/common/calendar-panel.js +133 -0
- package/dist/components/date-picker/components/common/date-cell.d.ts +8 -0
- package/dist/components/date-picker/components/common/date-cell.js +46 -0
- package/dist/components/date-picker/components/common/decade-view.d.ts +8 -0
- package/dist/components/date-picker/components/common/decade-view.js +36 -0
- package/dist/components/date-picker/components/common/month-view.d.ts +5 -0
- package/dist/components/date-picker/components/common/month-view.js +65 -0
- package/dist/components/date-picker/components/common/picker-footer.d.ts +28 -0
- package/dist/components/date-picker/components/common/picker-footer.js +29 -0
- package/dist/components/date-picker/components/common/picker-sections.d.ts +14 -0
- package/dist/components/date-picker/components/common/picker-sections.js +31 -0
- package/dist/components/date-picker/components/common/picker-target-input.d.ts +7 -0
- package/dist/components/date-picker/components/common/picker-target-input.js +11 -0
- package/dist/components/date-picker/components/common/time-column.d.ts +6 -0
- package/dist/components/date-picker/components/common/time-column.js +121 -0
- package/dist/components/date-picker/components/common/time-input-row.d.ts +20 -0
- package/dist/components/date-picker/components/common/time-input-row.js +65 -0
- package/dist/components/date-picker/components/common/time-panel.d.ts +6 -0
- package/dist/components/date-picker/components/common/time-panel.js +86 -0
- package/dist/components/date-picker/components/common/year-view.d.ts +8 -0
- package/dist/components/date-picker/components/common/year-view.js +36 -0
- package/dist/components/date-picker/components/picker-focus-context.d.ts +21 -0
- package/dist/components/date-picker/components/picker-focus-context.js +16 -0
- package/dist/components/date-picker/components/range/range-panel.d.ts +33 -0
- package/dist/components/date-picker/components/range/range-panel.js +101 -0
- package/dist/components/date-picker/components/range/range-shell.d.ts +6 -0
- package/dist/components/date-picker/components/range/range-shell.js +110 -0
- package/dist/components/date-picker/components/single/picker-shell.d.ts +6 -0
- package/dist/components/date-picker/components/single/picker-shell.js +109 -0
- package/dist/components/date-picker/date-picker.d.ts +6 -0
- package/dist/components/date-picker/date-picker.js +76 -0
- package/dist/components/date-picker/date-picker.types.d.ts +543 -0
- package/dist/components/date-picker/date-picker.types.js +5 -0
- package/dist/components/date-picker/date-range-picker.d.ts +5 -0
- package/dist/components/date-picker/date-range-picker.js +103 -0
- package/dist/components/date-picker/date-time-picker.d.ts +6 -0
- package/dist/components/date-picker/date-time-picker.js +181 -0
- package/dist/components/date-picker/date-time-range-picker.d.ts +6 -0
- package/dist/components/date-picker/date-time-range-picker.js +157 -0
- package/dist/components/date-picker/hooks/date-disabled.d.ts +27 -0
- package/dist/components/date-picker/hooks/date-disabled.js +60 -0
- package/dist/components/date-picker/hooks/time-utils.d.ts +17 -0
- package/dist/components/date-picker/hooks/time-utils.js +14 -0
- package/dist/components/date-picker/hooks/use-calendar.d.ts +12 -0
- package/dist/components/date-picker/hooks/use-calendar.js +28 -0
- package/dist/components/date-picker/hooks/use-date-parser.d.ts +17 -0
- package/dist/components/date-picker/hooks/use-date-parser.js +16 -0
- package/dist/components/date-picker/hooks/use-grid-keyboard.d.ts +22 -0
- package/dist/components/date-picker/hooks/use-grid-keyboard.js +74 -0
- package/dist/components/date-picker/hooks/use-range-draft.d.ts +61 -0
- package/dist/components/date-picker/hooks/use-range-draft.js +84 -0
- package/dist/components/date-picker/hooks/use-range-session.d.ts +14 -0
- package/dist/components/date-picker/hooks/use-range-session.js +11 -0
- package/dist/components/date-picker/hooks/use-resolved-format.d.ts +15 -0
- package/dist/components/date-picker/hooks/use-resolved-format.js +25 -0
- package/dist/components/date-picker/index.d.ts +21 -0
- package/dist/components/date-picker/index.js +15 -0
- package/dist/components/date-picker/styles/calendar-header.module.css.js +14 -0
- package/dist/components/date-picker/styles/calendar-panel.module.css.js +12 -0
- package/dist/components/date-picker/styles/date-cell.module.css.js +8 -0
- package/dist/components/date-picker/styles/month-view.module.css.js +12 -0
- package/dist/components/date-picker/styles/panel-layout.module.css.js +12 -0
- package/dist/components/date-picker/styles/picker-footer.module.css.js +10 -0
- package/dist/components/date-picker/styles/picker-shell.module.css.js +12 -0
- package/dist/components/date-picker/styles/range-panel.module.css.js +12 -0
- package/dist/components/date-picker/styles/time-column.module.css.js +10 -0
- package/dist/components/date-picker/styles/time-input-row.module.css.js +16 -0
- package/dist/components/date-picker/styles/time-panel.module.css.js +8 -0
- package/dist/components/date-picker/styles/year-view.module.css.js +10 -0
- package/dist/components/date-picker/time-picker.d.ts +6 -0
- package/dist/components/date-picker/time-picker.js +81 -0
- package/dist/components/date-picker/time-range-picker.d.ts +6 -0
- package/dist/components/date-picker/time-range-picker.js +135 -0
- package/dist/components/drawer/drawer-events.d.ts +28 -0
- package/dist/components/drawer/drawer-events.js +14 -0
- package/dist/components/drawer/drawer.d.ts +33 -0
- package/dist/components/drawer/drawer.js +86 -0
- package/dist/components/drawer/drawer.module.css.js +34 -0
- package/dist/components/drawer/drawes.d.ts +4 -0
- package/dist/components/drawer/drawes.js +82 -0
- package/dist/components/drawer/index.d.ts +4 -0
- package/dist/components/drawer/index.js +9 -0
- package/dist/components/filter/filter-popover.d.ts +11 -0
- package/dist/components/filter/filter-popover.js +53 -0
- package/dist/components/filter/filter.d.ts +5 -0
- package/dist/components/filter/filter.js +29 -0
- package/dist/components/filter/filter.module.css.js +12 -0
- package/dist/components/filter/filter.types.d.ts +27 -0
- package/dist/components/filter/filter.types.js +1 -0
- package/dist/components/filter/icon-filter.d.ts +6 -0
- package/dist/components/filter/icon-filter.js +25 -0
- package/dist/components/filter/index.d.ts +4 -0
- package/dist/components/filter/index.js +9 -0
- package/dist/components/filter/multi-filter.d.ts +5 -0
- package/dist/components/filter/multi-filter.js +52 -0
- package/dist/components/flex/flex.d.ts +9 -0
- package/dist/components/flex/flex.js +28 -0
- package/dist/components/flex/flex.module.css.js +8 -0
- package/dist/components/flex/index.d.ts +2 -0
- package/dist/components/flex/index.js +5 -0
- package/dist/components/flex/layout.types.d.ts +69 -0
- package/dist/components/form-wrapper/form-item-wrapper-defaults-context.d.ts +10 -0
- package/dist/components/form-wrapper/form-item-wrapper-defaults-context.js +19 -0
- package/dist/components/form-wrapper/form-item-wrapper.d.ts +5 -0
- package/dist/components/form-wrapper/form-item-wrapper.js +111 -0
- package/dist/components/form-wrapper/form-item-wrapper.module.css.js +28 -0
- package/dist/components/form-wrapper/form-wrapper.types.d.ts +15 -0
- package/dist/components/form-wrapper/index.d.ts +3 -0
- package/dist/components/form-wrapper/index.js +8 -0
- package/dist/components/group/group.d.ts +8 -0
- package/dist/components/group/group.js +36 -0
- package/dist/components/group/group.module.css.js +8 -0
- package/dist/components/group/index.d.ts +1 -0
- package/dist/components/group/index.js +5 -0
- package/dist/components/icon-button/icon-button.d.ts +20 -0
- package/dist/components/icon-button/icon-button.js +20 -0
- package/dist/components/icon-button/icon-button.module.css.js +8 -0
- package/dist/components/icon-button/icon-button.types.d.ts +7 -0
- package/dist/components/icon-button/index.d.ts +2 -0
- package/dist/components/icon-button/index.js +5 -0
- package/dist/components/link-button/index.d.ts +1 -0
- package/dist/components/link-button/index.js +5 -0
- package/dist/components/link-button/link-button.d.ts +31 -0
- package/dist/components/link-button/link-button.js +31 -0
- package/dist/components/link-icon-button/index.d.ts +1 -0
- package/dist/components/link-icon-button/index.js +5 -0
- package/dist/components/link-icon-button/link-icon-button.d.ts +37 -0
- package/dist/components/link-icon-button/link-icon-button.js +30 -0
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/index.js +5 -0
- package/dist/components/menu/menu.d.ts +33 -0
- package/dist/components/menu/menu.js +17 -0
- package/dist/components/menu/menu.types.d.ts +46 -0
- package/dist/components/message/index.d.ts +2 -0
- package/dist/components/message/index.js +5 -0
- package/dist/components/message/message.d.ts +2 -0
- package/dist/components/message/message.js +42 -0
- package/dist/components/message/message.module.css.js +14 -0
- package/dist/components/message/message.types.d.ts +7 -0
- package/dist/components/message/messages.d.ts +10 -0
- package/dist/components/message/messages.js +37 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/index.js +5 -0
- package/dist/components/modal/modal.d.ts +6 -0
- package/dist/components/modal/modal.js +51 -0
- package/dist/components/modal/modal.module.css.js +10 -0
- package/dist/components/multi-select/base-multi-select.d.ts +3 -0
- package/dist/components/multi-select/base-multi-select.js +100 -0
- package/dist/components/multi-select/index.d.ts +1 -0
- package/dist/components/multi-select/index.js +5 -0
- package/dist/components/multi-select/multi-select-input.d.ts +29 -0
- package/dist/components/multi-select/multi-select-input.js +74 -0
- package/dist/components/multi-select/multi-select.d.ts +28 -0
- package/dist/components/multi-select/multi-select.js +34 -0
- package/dist/components/multi-select/multi-select.mobile.d.ts +4 -0
- package/dist/components/multi-select/multi-select.mobile.js +59 -0
- package/dist/components/multi-select/multi-select.types.d.ts +56 -0
- package/dist/components/multi-select/multi-select.types.js +1 -0
- package/dist/components/multi-select/styles/base-multi-select.module.css.js +16 -0
- package/dist/components/notifications/index.d.ts +3 -0
- package/dist/components/notifications/index.js +7 -0
- package/dist/components/notifications/notification.d.ts +11 -0
- package/dist/components/notifications/notification.js +79 -0
- package/dist/components/notifications/notification.module.css.js +14 -0
- package/dist/components/notifications/notification.types.d.ts +25 -0
- package/dist/components/notifications/notifications.d.ts +42 -0
- package/dist/components/notifications/notifications.js +42 -0
- package/dist/components/number-input/index.d.ts +2 -0
- package/dist/components/number-input/index.js +5 -0
- package/dist/components/number-input/number-input.d.ts +8 -0
- package/dist/components/number-input/number-input.js +161 -0
- package/dist/components/number-input/number-input.module.css.js +8 -0
- package/dist/components/number-input/number-input.types.d.ts +65 -0
- package/dist/components/paper/index.d.ts +1 -0
- package/dist/components/paper/index.js +5 -0
- package/dist/components/paper/paper.d.ts +7 -0
- package/dist/components/paper/paper.js +15 -0
- package/dist/components/paper/paper.module.css.js +8 -0
- package/dist/components/password-input/index.d.ts +2 -0
- package/dist/components/password-input/index.js +5 -0
- package/dist/components/password-input/password-input.d.ts +15 -0
- package/dist/components/password-input/password-input.js +32 -0
- package/dist/components/popover/hooks.d.ts +17 -0
- package/dist/components/popover/hooks.js +131 -0
- package/dist/components/popover/index.d.ts +8 -0
- package/dist/components/popover/index.js +13 -0
- package/dist/components/popover/popover-context.d.ts +4 -0
- package/dist/components/popover/popover-context.js +16 -0
- package/dist/components/popover/popover-dropdown.d.ts +3 -0
- package/dist/components/popover/popover-dropdown.js +149 -0
- package/dist/components/popover/popover-stack.d.ts +10 -0
- package/dist/components/popover/popover-stack.js +24 -0
- package/dist/components/popover/popover-target.d.ts +3 -0
- package/dist/components/popover/popover-target.js +55 -0
- package/dist/components/popover/popover.d.ts +3 -0
- package/dist/components/popover/popover.js +175 -0
- package/dist/components/popover/popover.types.d.ts +211 -0
- package/dist/components/popover/styles/popover.module.css.js +12 -0
- package/dist/components/radio/index.d.ts +8 -0
- package/dist/components/radio/index.js +12 -0
- package/dist/components/radio/radio-group.d.ts +18 -0
- package/dist/components/radio/radio-group.js +54 -0
- package/dist/components/radio/radio-variables.module.css.js +8 -0
- package/dist/components/radio/radio.d.ts +17 -0
- package/dist/components/radio/radio.js +56 -0
- package/dist/components/radio/radio.module.css.js +14 -0
- package/dist/components/radio/radio.types.d.ts +59 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/index.js +5 -0
- package/dist/components/select/select.d.ts +15 -0
- package/dist/components/select/select.js +48 -0
- package/dist/components/select/select.mobile.d.ts +12 -0
- package/dist/components/select/select.mobile.js +53 -0
- package/dist/components/stack/index.d.ts +1 -0
- package/dist/components/stack/index.js +5 -0
- package/dist/components/stack/stack.d.ts +6 -0
- package/dist/components/stack/stack.js +10 -0
- package/dist/components/sticky-box.d.ts +2 -0
- package/dist/components/sticky-box.js +10 -0
- package/dist/components/switch/index.d.ts +4 -0
- package/dist/components/switch/index.js +7 -0
- package/dist/components/switch/switch-group.d.ts +26 -0
- package/dist/components/switch/switch-group.js +12 -0
- package/dist/components/switch/switch.d.ts +27 -0
- package/dist/components/switch/switch.js +23 -0
- package/dist/components/switch/switch.module.css.js +7 -0
- package/dist/components/tab/index.d.ts +7 -0
- package/dist/components/tab/index.js +13 -0
- package/dist/components/tab/styles/tabs-variables.module.css.js +8 -0
- package/dist/components/tab/styles/tabs.module.css.js +22 -0
- package/dist/components/tab/subs/tabs-link-tab.d.ts +10 -0
- package/dist/components/tab/subs/tabs-link-tab.js +28 -0
- package/dist/components/tab/subs/tabs-list.d.ts +6 -0
- package/dist/components/tab/subs/tabs-list.js +59 -0
- package/dist/components/tab/subs/tabs-panel.d.ts +6 -0
- package/dist/components/tab/subs/tabs-panel.js +40 -0
- package/dist/components/tab/subs/tabs-tab.d.ts +6 -0
- package/dist/components/tab/subs/tabs-tab.js +52 -0
- package/dist/components/tab/tabs-context.d.ts +3 -0
- package/dist/components/tab/tabs-context.js +13 -0
- package/dist/components/tab/tabs.d.ts +20 -0
- package/dist/components/tab/tabs.js +83 -0
- package/dist/components/tab/tabs.types.d.ts +107 -0
- package/dist/components/tab/use-tabs-data-props.d.ts +9 -0
- package/dist/components/tab/use-tabs-data-props.js +12 -0
- package/dist/components/tab/use-tabs-keyboard-navigation.d.ts +13 -0
- package/dist/components/tab/use-tabs-keyboard-navigation.js +44 -0
- package/dist/components/table/index.d.ts +3 -0
- package/dist/components/table/index.js +16 -0
- package/dist/components/table/table.d.ts +23 -0
- package/dist/components/table/table.js +159 -0
- package/dist/components/table/table.module.css.js +56 -0
- package/dist/components/table/table.types.d.ts +55 -0
- package/dist/components/table-pagination/index.d.ts +3 -0
- package/dist/components/table-pagination/index.js +8 -0
- package/dist/components/table-pagination/pagination.d.ts +10 -0
- package/dist/components/table-pagination/pagination.js +115 -0
- package/dist/components/table-pagination/pagination.module.css.js +14 -0
- package/dist/components/table-pagination/table-pagination.d.ts +15 -0
- package/dist/components/table-pagination/table-pagination.js +123 -0
- package/dist/components/table-pagination/table-pagination.module.css.js +18 -0
- package/dist/components/tag/closable-tag.d.ts +2 -0
- package/dist/components/tag/closable-tag.js +35 -0
- package/dist/components/tag/icon-tag.d.ts +2 -0
- package/dist/components/tag/icon-tag.js +36 -0
- package/dist/components/tag/index.d.ts +5 -0
- package/dist/components/tag/index.js +11 -0
- package/dist/components/tag/link-tag.d.ts +11 -0
- package/dist/components/tag/link-tag.js +31 -0
- package/dist/components/tag/styles/tag-variables.module.css.js +8 -0
- package/dist/components/tag/styles/tag.module.css.js +18 -0
- package/dist/components/tag/tag.d.ts +28 -0
- package/dist/components/tag/tag.js +40 -0
- package/dist/components/tag/tag.types.d.ts +72 -0
- package/dist/components/text/index.d.ts +2 -0
- package/dist/components/text/index.js +5 -0
- package/dist/components/text/text.d.ts +3 -0
- package/dist/components/text/text.js +36 -0
- package/dist/components/text/text.module.css.js +8 -0
- package/dist/components/text/text.types.d.ts +11 -0
- package/dist/components/text-area/index.d.ts +2 -0
- package/dist/components/text-area/index.js +5 -0
- package/dist/components/text-area/text-area.d.ts +9 -0
- package/dist/components/text-area/text-area.js +125 -0
- package/dist/components/text-area/text-area.module.css.js +22 -0
- package/dist/components/text-area/text-area.types.d.ts +46 -0
- package/dist/components/text-input/index.d.ts +2 -0
- package/dist/components/text-input/index.js +5 -0
- package/dist/components/text-input/text-input.d.ts +14 -0
- package/dist/components/text-input/text-input.js +24 -0
- package/dist/components/tooltip/floating-arrow.d.ts +13 -0
- package/dist/components/tooltip/floating-arrow.js +40 -0
- package/dist/components/tooltip/get-arrow-position-styles.d.ts +11 -0
- package/dist/components/tooltip/get-arrow-position-styles.js +63 -0
- package/dist/components/tooltip/index.d.ts +54 -0
- package/dist/components/tooltip/index.js +150 -0
- package/dist/components/tooltip/styles.module.css.js +10 -0
- package/dist/components/tooltip/types.d.ts +13 -0
- package/dist/components/tooltip/use-merged-events.d.ts +18 -0
- package/dist/components/tooltip/use-merged-events.js +22 -0
- package/dist/components/tooltip/use-tooltip-trigger.d.ts +13 -0
- package/dist/components/tooltip/use-tooltip-trigger.js +59 -0
- package/dist/components/tooltip/utils.d.ts +4 -0
- package/dist/components/tooltip/utils.js +35 -0
- package/dist/components/tree/hooks/use-custom-click-behavior-feature.d.ts +16 -0
- package/dist/components/tree/hooks/use-custom-click-behavior-feature.js +125 -0
- package/dist/components/tree/hooks/use-tree-animation.d.ts +12 -0
- package/dist/components/tree/hooks/use-tree-animation.js +111 -0
- package/dist/components/tree/hooks/use-tree-config.d.ts +22 -0
- package/dist/components/tree/hooks/use-tree-config.js +96 -0
- package/dist/components/tree/hooks/use-tree-search.d.ts +19 -0
- package/dist/components/tree/hooks/use-tree-search.js +57 -0
- package/dist/components/tree/hooks/use-tree-value.d.ts +16 -0
- package/dist/components/tree/hooks/use-tree-value.js +37 -0
- package/dist/components/tree/hooks/use-tree.d.ts +13 -0
- package/dist/components/tree/hooks/use-tree.js +111 -0
- package/dist/components/tree/index.d.ts +7 -0
- package/dist/components/tree/index.js +16 -0
- package/dist/components/tree/styles/tree.module.css.js +44 -0
- package/dist/components/tree/tree-content.d.ts +15 -0
- package/dist/components/tree/tree-content.js +77 -0
- package/dist/components/tree/tree-context.d.ts +19 -0
- package/dist/components/tree/tree-context.js +13 -0
- package/dist/components/tree/tree-node-list.d.ts +9 -0
- package/dist/components/tree/tree-node-list.js +21 -0
- package/dist/components/tree/tree-node.d.ts +11 -0
- package/dist/components/tree/tree-node.js +137 -0
- package/dist/components/tree/tree.d.ts +20 -0
- package/dist/components/tree/tree.js +22 -0
- package/dist/components/tree/tree.types.d.ts +126 -0
- package/dist/components/tree-select/index.d.ts +2 -0
- package/dist/components/tree-select/index.js +5 -0
- package/dist/components/tree-select/styles/tree-select.module.css.js +20 -0
- package/dist/components/tree-select/tree-select-dropdown.d.ts +9 -0
- package/dist/components/tree-select/tree-select-dropdown.js +36 -0
- package/dist/components/tree-select/tree-select-target.d.ts +18 -0
- package/dist/components/tree-select/tree-select-target.js +116 -0
- package/dist/components/tree-select/tree-select.d.ts +21 -0
- package/dist/components/tree-select/tree-select.js +201 -0
- package/dist/components/tree-select/tree-select.types.d.ts +39 -0
- package/dist/components/unstyled-button/index.d.ts +1 -0
- package/dist/components/unstyled-button/index.js +5 -0
- package/dist/components/unstyled-button/unstyled-button.d.ts +3 -0
- package/dist/components/unstyled-button/unstyled-button.js +19 -0
- package/dist/components/unstyled-button/unstyled-button.module.css.js +8 -0
- package/dist/components/virtualized-tree-select/index.d.ts +2 -0
- package/dist/components/virtualized-tree-select/index.js +5 -0
- package/dist/components/virtualized-tree-select/virtualized-tree-select.d.ts +25 -0
- package/dist/components/virtualized-tree-select/virtualized-tree-select.js +253 -0
- package/dist/components/virtualized-tree-select/virtualized-tree-select.module.css.js +20 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +53 -0
- package/dist/index.js +214 -0
- package/dist/locale/ar.d.ts +2 -0
- package/dist/locale/ar.js +58 -0
- package/dist/locale/en.d.ts +2 -0
- package/dist/locale/en.js +58 -0
- package/dist/locale/index.d.ts +6 -0
- package/dist/locale/index.js +15 -0
- package/dist/locale/ko.d.ts +2 -0
- package/dist/locale/ko.js +58 -0
- package/dist/locale/types.d.ts +55 -0
- package/dist/locale/types.js +8 -0
- package/dist/locale/zh-Hans.d.ts +2 -0
- package/dist/locale/zh-Hans.js +58 -0
- package/dist/locale/zh-Hant.d.ts +2 -0
- package/dist/locale/zh-Hant.js +58 -0
- package/dist/node_modules/.pnpm/react-number-format@5.4.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-number-format/dist/react-number-format.es.js +572 -0
- package/dist/provider/hooks.d.ts +24 -0
- package/dist/provider/hooks.js +26 -0
- package/dist/provider/index.d.ts +7 -0
- package/dist/provider/index.js +16 -0
- package/dist/provider/ui-context.d.ts +16 -0
- package/dist/provider/ui-context.js +14 -0
- package/dist/provider/ui-link.d.ts +22 -0
- package/dist/provider/ui-link.js +10 -0
- package/dist/provider/ui-provider.d.ts +19 -0
- package/dist/provider/ui-provider.js +21 -0
- package/package.json +198 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
function f({
|
|
3
|
+
listRef: c,
|
|
4
|
+
activateOnFocus: s = !1,
|
|
5
|
+
loop: a = !0
|
|
6
|
+
}) {
|
|
7
|
+
return { handleKeyDown: (n) => {
|
|
8
|
+
const l = c.current;
|
|
9
|
+
if (!l) return;
|
|
10
|
+
const t = Array.from(
|
|
11
|
+
l.querySelectorAll(
|
|
12
|
+
'[role="tab"]:not([disabled]), [role="radio"]:not([disabled])'
|
|
13
|
+
)
|
|
14
|
+
);
|
|
15
|
+
if (!t.length) return;
|
|
16
|
+
const r = t.findIndex(
|
|
17
|
+
(i) => i === document.activeElement
|
|
18
|
+
);
|
|
19
|
+
let e = r;
|
|
20
|
+
switch (n.key) {
|
|
21
|
+
case "ArrowRight":
|
|
22
|
+
case "ArrowDown":
|
|
23
|
+
n.preventDefault(), e = r + 1, e >= t.length && (e = a ? 0 : t.length - 1);
|
|
24
|
+
break;
|
|
25
|
+
case "ArrowLeft":
|
|
26
|
+
case "ArrowUp":
|
|
27
|
+
n.preventDefault(), e = r - 1, e < 0 && (e = a ? t.length - 1 : 0);
|
|
28
|
+
break;
|
|
29
|
+
case "Home":
|
|
30
|
+
n.preventDefault(), e = 0;
|
|
31
|
+
break;
|
|
32
|
+
case "End":
|
|
33
|
+
n.preventDefault(), e = t.length - 1;
|
|
34
|
+
break;
|
|
35
|
+
default:
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const o = t[e];
|
|
39
|
+
e !== r && o && (o.focus(), s && o.click());
|
|
40
|
+
} };
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
f as useTabsKeyboardNavigation
|
|
44
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Table as l, TableSkeleton as t } from "./table.js";
|
|
3
|
+
import { TableHeaderTitle as a } from "../_inner/table/table-header-title.js";
|
|
4
|
+
import { TableHeadSort as b } from "../_inner/table/head/table-head-sort.js";
|
|
5
|
+
import { TableHeadFilterSingleSelect as f } from "../_inner/table/head/table-head-filter-single-select.js";
|
|
6
|
+
import { TableHeadFilterMultiSelect as p } from "../_inner/table/head/table-head-filter-multi-select.js";
|
|
7
|
+
import { TableHeadFilterSearch as S } from "../_inner/table/head/table-head-filter-search.js";
|
|
8
|
+
export {
|
|
9
|
+
l as Table,
|
|
10
|
+
p as TableHeadFilterMultiSelect,
|
|
11
|
+
S as TableHeadFilterSearch,
|
|
12
|
+
f as TableHeadFilterSingleSelect,
|
|
13
|
+
b as TableHeadSort,
|
|
14
|
+
a as TableHeaderTitle,
|
|
15
|
+
t as TableSkeleton
|
|
16
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TableProps } from './table.types';
|
|
2
|
+
/**
|
|
3
|
+
* 增强的数据表格组件。
|
|
4
|
+
* 基于 `mantine-datatable` 进行封装,提供了自定义的排序图标、边框样式、高亮悬停效果等,
|
|
5
|
+
* 并支持通过 `tableColumns` 属性自定义表头内容的渲染。
|
|
6
|
+
*
|
|
7
|
+
* @template T - 表格数据行的类型
|
|
8
|
+
* @param props - 表格的属性,继承自 `mantine-datatable` 但使用 `tableColumns` 替代 `columns`
|
|
9
|
+
* @returns React 组件
|
|
10
|
+
*/
|
|
11
|
+
export declare const Table: <T>(props: TableProps<T>) => import("react").JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* 表格的骨架屏占位组件。
|
|
14
|
+
* 在表格数据加载时显示,提供一致的视觉反馈。
|
|
15
|
+
* 包含表头、多行数据占位以及底部的分页器占位。
|
|
16
|
+
*
|
|
17
|
+
* @param fillHeight - 是否让骨架屏填满所在 flex 容器的剩余高度(而非按内容自身高度显示)。
|
|
18
|
+
* 默认 `false`,保持原有的按内容高度展示;仅在父级是 flex 容器且需要骨架屏撑满剩余空间时传入 `true`。
|
|
19
|
+
* @returns React 组件
|
|
20
|
+
*/
|
|
21
|
+
export declare const TableSkeleton: ({ fillHeight, }?: {
|
|
22
|
+
readonly fillHeight?: boolean;
|
|
23
|
+
}) => import("react").JSX.Element;
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as l, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { Paper as W, Table as F, TableThead as G, TableTr as x, TableTh as i, Skeleton as s, TableTbody as _, TableTd as c, Group as z } from "@mantine/core";
|
|
4
|
+
import { useMergedRef as D } from "@mantine/hooks";
|
|
5
|
+
import { Icon as E } from "@wisdomgarden/torque-icons";
|
|
6
|
+
import { clsx as t } from "clsx";
|
|
7
|
+
import { getValueAtPath as L, DataTable as M } from "mantine-datatable";
|
|
8
|
+
import { useRef as J, useEffect as K } from "react";
|
|
9
|
+
import "../../provider/ui-context.js";
|
|
10
|
+
import { useLocale as Q } from "../../provider/hooks.js";
|
|
11
|
+
import { TableHeaderTitle as U } from "../_inner/table/table-header-title.js";
|
|
12
|
+
import { Tooltip as X } from "../tooltip/index.js";
|
|
13
|
+
import e from "./table.module.css.js";
|
|
14
|
+
const Y = (a) => a == null || a === "", Z = "var(--t-space-lg)", ee = "var(--t-space-md)", H = 16, le = /^(-?(?:\d+\.?\d*|\.\d+))px$/i, w = (a) => {
|
|
15
|
+
if (typeof a == "number")
|
|
16
|
+
return Number.isFinite(a) ? `${a / H}rem` : a;
|
|
17
|
+
const r = a?.trim().match(le);
|
|
18
|
+
return r ? `${Number(r[1]) / H}rem` : a;
|
|
19
|
+
}, ae = (a) => a.width === void 0 ? a : { ...a, width: w(a.width) }, O = (a) => a.map((r) => ({
|
|
20
|
+
...r,
|
|
21
|
+
columns: r.columns?.map(ae),
|
|
22
|
+
groups: r.groups ? O(r.groups) : void 0
|
|
23
|
+
})), Ne = (a) => {
|
|
24
|
+
const r = Q(), {
|
|
25
|
+
tableColumns: m,
|
|
26
|
+
classNames: p,
|
|
27
|
+
defaultColumnRender: u,
|
|
28
|
+
emptyCellPlaceholder: V = r.placeholder,
|
|
29
|
+
scrollAreaProps: C,
|
|
30
|
+
tableRef: $,
|
|
31
|
+
groups: k,
|
|
32
|
+
defaultColumnProps: h,
|
|
33
|
+
customRowAttributes: P,
|
|
34
|
+
"data-testid": S,
|
|
35
|
+
...f
|
|
36
|
+
} = a, v = J(null), j = D(v, $);
|
|
37
|
+
K(() => {
|
|
38
|
+
v.current?.querySelectorAll("thead th:not([scope]), tfoot th:not([scope])").forEach((o) => o.setAttribute("scope", "col"));
|
|
39
|
+
});
|
|
40
|
+
let y = [];
|
|
41
|
+
m && m.length > 0 && (y = m.map((o) => {
|
|
42
|
+
const {
|
|
43
|
+
disableTooltip: N,
|
|
44
|
+
emptyCellPlaceholder: B,
|
|
45
|
+
render: g,
|
|
46
|
+
renderTitle: se,
|
|
47
|
+
...b
|
|
48
|
+
} = o, R = B === void 0 ? V : B;
|
|
49
|
+
return {
|
|
50
|
+
...b,
|
|
51
|
+
...b.width === void 0 ? {} : { width: w(b.width) },
|
|
52
|
+
render: (T, A) => {
|
|
53
|
+
const q = g ? g(T, A) : u ? u(T, A, o.accessor) : L(T, o.accessor), d = Y(q) && R !== !1 ? R : q;
|
|
54
|
+
return !N && !g && !u && typeof d == "string" && d !== "" ? /* @__PURE__ */ l(X, { label: d, showOnlyWhenTruncated: !0, children: d }) : d;
|
|
55
|
+
},
|
|
56
|
+
title: /* @__PURE__ */ l(U, { column: o }),
|
|
57
|
+
titleClassName: t(e.noPadding, o.titleClassName)
|
|
58
|
+
// resizable: true,
|
|
59
|
+
};
|
|
60
|
+
}));
|
|
61
|
+
const I = {
|
|
62
|
+
horizontalSpacing: Z,
|
|
63
|
+
verticalSpacing: ee,
|
|
64
|
+
...f,
|
|
65
|
+
columns: y,
|
|
66
|
+
groups: k ? O(k) : void 0,
|
|
67
|
+
customRowAttributes: S ? (o, N) => ({
|
|
68
|
+
...P?.(o, N),
|
|
69
|
+
"data-testid": S
|
|
70
|
+
}) : P,
|
|
71
|
+
defaultColumnProps: h ? {
|
|
72
|
+
...h,
|
|
73
|
+
width: w(h.width)
|
|
74
|
+
} : void 0,
|
|
75
|
+
scrollAreaProps: {
|
|
76
|
+
...C,
|
|
77
|
+
type: C?.type ?? "auto"
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
return /* @__PURE__ */ l(
|
|
81
|
+
M,
|
|
82
|
+
{
|
|
83
|
+
...I,
|
|
84
|
+
tableRef: j,
|
|
85
|
+
className: t(e.root, f.className),
|
|
86
|
+
withColumnBorders: !0,
|
|
87
|
+
highlightOnHover: !0,
|
|
88
|
+
selectionColumnClassName: t(
|
|
89
|
+
e.selectionColumn,
|
|
90
|
+
f.selectionColumnClassName
|
|
91
|
+
),
|
|
92
|
+
classNames: {
|
|
93
|
+
...p,
|
|
94
|
+
table: t(e.table, p?.table),
|
|
95
|
+
pagination: t(e.pagination, p?.pagination)
|
|
96
|
+
},
|
|
97
|
+
sortIcons: {
|
|
98
|
+
sorted: /* @__PURE__ */ l(E, { name: "sorted-fill", useOriginalColor: !0, width: 16, height: 16 }),
|
|
99
|
+
unsorted: /* @__PURE__ */ l(E, { name: "unsorted-fill", useOriginalColor: !0, width: 16, height: 16 })
|
|
100
|
+
},
|
|
101
|
+
rowBorderColor: "var(--t-line-5)"
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
}, ge = ({
|
|
105
|
+
fillHeight: a = !1
|
|
106
|
+
} = {}) => /* @__PURE__ */ n(
|
|
107
|
+
W,
|
|
108
|
+
{
|
|
109
|
+
className: t(
|
|
110
|
+
e.skeletonPaper,
|
|
111
|
+
a && e.skeletonFillHeight
|
|
112
|
+
),
|
|
113
|
+
children: [
|
|
114
|
+
/* @__PURE__ */ n(
|
|
115
|
+
F,
|
|
116
|
+
{
|
|
117
|
+
classNames: { thead: e.skeletonThead },
|
|
118
|
+
horizontalSpacing: "var(--t-space-lg)",
|
|
119
|
+
verticalSpacing: "var(--t-space-md)",
|
|
120
|
+
children: [
|
|
121
|
+
/* @__PURE__ */ l(G, { children: /* @__PURE__ */ n(x, { children: [
|
|
122
|
+
/* @__PURE__ */ l(i, { className: e.w48, children: /* @__PURE__ */ l(s, { className: t(e.skeletonBar, e.w20) }) }),
|
|
123
|
+
/* @__PURE__ */ l(i, { className: e.w450, children: /* @__PURE__ */ l(s, { className: t(e.skeletonBar, e.w80) }) }),
|
|
124
|
+
/* @__PURE__ */ l(i, { className: e.w200, children: /* @__PURE__ */ l(s, { className: t(e.skeletonBar, e.w100) }) }),
|
|
125
|
+
/* @__PURE__ */ l(i, { className: e.w140, children: /* @__PURE__ */ l(s, { className: t(e.skeletonBar, e.w60) }) }),
|
|
126
|
+
/* @__PURE__ */ l(i, { className: e.w140, children: /* @__PURE__ */ l(s, { className: t(e.skeletonBar, e.w80) }) }),
|
|
127
|
+
/* @__PURE__ */ l(i, { className: e.w92, children: /* @__PURE__ */ l(s, { className: t(e.skeletonBar, e.w60) }) })
|
|
128
|
+
] }) }),
|
|
129
|
+
/* @__PURE__ */ l(_, { children: Array.from({ length: 10 }).map((r, m) => /* @__PURE__ */ n(x, { children: [
|
|
130
|
+
/* @__PURE__ */ l(c, { children: /* @__PURE__ */ l(s, { className: e.skeletonSquare, circle: !0 }) }),
|
|
131
|
+
/* @__PURE__ */ l(c, { children: /* @__PURE__ */ n(z, { gap: "sm", children: [
|
|
132
|
+
/* @__PURE__ */ l(s, { className: e.skeletonSquare, circle: !0 }),
|
|
133
|
+
/* @__PURE__ */ l(
|
|
134
|
+
s,
|
|
135
|
+
{
|
|
136
|
+
className: t(e.skeletonBarTall, e.w200)
|
|
137
|
+
}
|
|
138
|
+
)
|
|
139
|
+
] }) }),
|
|
140
|
+
/* @__PURE__ */ l(c, { children: /* @__PURE__ */ l(s, { className: t(e.skeletonBar, e.w120) }) }),
|
|
141
|
+
/* @__PURE__ */ l(c, { children: /* @__PURE__ */ l(s, { className: t(e.skeletonBar, e.w60) }) }),
|
|
142
|
+
/* @__PURE__ */ l(c, { children: /* @__PURE__ */ l(s, { className: t(e.skeletonBar, e.w40) }) }),
|
|
143
|
+
/* @__PURE__ */ l(c, { children: /* @__PURE__ */ l(s, { className: e.skeletonSquare24 }) })
|
|
144
|
+
] }, String.fromCharCode(97 + m))) })
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
),
|
|
148
|
+
/* @__PURE__ */ n(z, { justify: "flex-end", gap: "sm", className: e.skeletonPagination, children: [
|
|
149
|
+
/* @__PURE__ */ l(s, { className: e.skeletonSquare26 }),
|
|
150
|
+
/* @__PURE__ */ l(s, { className: e.skeletonSquare26 }),
|
|
151
|
+
/* @__PURE__ */ l(s, { className: e.skeletonSquare26 })
|
|
152
|
+
] })
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
);
|
|
156
|
+
export {
|
|
157
|
+
Ne as Table,
|
|
158
|
+
ge as TableSkeleton
|
|
159
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const e = "_table_1e4nq_2", n = "_selectionColumn_1e4nq_50", o = "_root_1e4nq_74", _ = "_noPadding_1e4nq_82", t = "_pagination_1e4nq_86", s = "_skeletonPaper_1e4nq_90", l = "_skeletonFillHeight_1e4nq_95", a = "_skeletonThead_1e4nq_100", q = "_skeletonBar_1e4nq_109", w = "_skeletonBarTall_1e4nq_114", c = "_skeletonSquare_1e4nq_119", k = "_skeletonSquare24_1e4nq_124", i = "_skeletonSquare26_1e4nq_130", r = "_skeletonPagination_1e4nq_136", u = "_w20_1e4nq_140", g = "_w48_1e4nq_144", d = "_w40_1e4nq_148", P = "_w60_1e4nq_152", S = "_w80_1e4nq_156", p = "_w92_1e4nq_160", h = "_w100_1e4nq_164", B = "_w120_1e4nq_168", T = "_w140_1e4nq_172", b = "_w200_1e4nq_176", m = "_w450_1e4nq_180", C = {
|
|
3
|
+
table: e,
|
|
4
|
+
selectionColumn: n,
|
|
5
|
+
root: o,
|
|
6
|
+
noPadding: _,
|
|
7
|
+
pagination: t,
|
|
8
|
+
skeletonPaper: s,
|
|
9
|
+
skeletonFillHeight: l,
|
|
10
|
+
skeletonThead: a,
|
|
11
|
+
skeletonBar: q,
|
|
12
|
+
skeletonBarTall: w,
|
|
13
|
+
skeletonSquare: c,
|
|
14
|
+
skeletonSquare24: k,
|
|
15
|
+
skeletonSquare26: i,
|
|
16
|
+
skeletonPagination: r,
|
|
17
|
+
w20: u,
|
|
18
|
+
w48: g,
|
|
19
|
+
w40: d,
|
|
20
|
+
w60: P,
|
|
21
|
+
w80: S,
|
|
22
|
+
w92: p,
|
|
23
|
+
w100: h,
|
|
24
|
+
w120: B,
|
|
25
|
+
w140: T,
|
|
26
|
+
w200: b,
|
|
27
|
+
w450: m
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
C as default,
|
|
31
|
+
_ as noPadding,
|
|
32
|
+
t as pagination,
|
|
33
|
+
o as root,
|
|
34
|
+
n as selectionColumn,
|
|
35
|
+
q as skeletonBar,
|
|
36
|
+
w as skeletonBarTall,
|
|
37
|
+
l as skeletonFillHeight,
|
|
38
|
+
r as skeletonPagination,
|
|
39
|
+
s as skeletonPaper,
|
|
40
|
+
c as skeletonSquare,
|
|
41
|
+
k as skeletonSquare24,
|
|
42
|
+
i as skeletonSquare26,
|
|
43
|
+
a as skeletonThead,
|
|
44
|
+
e as table,
|
|
45
|
+
h as w100,
|
|
46
|
+
B as w120,
|
|
47
|
+
T as w140,
|
|
48
|
+
u as w20,
|
|
49
|
+
b as w200,
|
|
50
|
+
d as w40,
|
|
51
|
+
m as w450,
|
|
52
|
+
g as w48,
|
|
53
|
+
P as w60,
|
|
54
|
+
S as w80,
|
|
55
|
+
p as w92
|
|
56
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { DataTableColumn, DataTableProps } from 'mantine-datatable';
|
|
2
|
+
/**
|
|
3
|
+
* 表示表格列的排序方式。
|
|
4
|
+
* 'asc' 表示升序,'desc' 表示降序,undefined 表示未排序。
|
|
5
|
+
*/
|
|
6
|
+
export type SortType = 'asc' | 'desc' | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* 自定义表格列配置的属性扩展。
|
|
9
|
+
*/
|
|
10
|
+
export interface TableColumnProps<T = unknown> {
|
|
11
|
+
/**
|
|
12
|
+
* 是否关闭普通字符串单元格自动添加的 Tooltip。
|
|
13
|
+
*
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
disableTooltip?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 当前列空值的占位内容。
|
|
19
|
+
* `undefined` 时继承 Table 的 `emptyCellPlaceholder`,`false` 时不显示占位内容。
|
|
20
|
+
*/
|
|
21
|
+
emptyCellPlaceholder?: React.ReactNode | false;
|
|
22
|
+
/**
|
|
23
|
+
* 自定义渲染表头标题的方法。
|
|
24
|
+
* 如果提供,将用于覆盖默认的表头标题渲染逻辑。
|
|
25
|
+
*
|
|
26
|
+
* @param column 当前列的配置信息
|
|
27
|
+
* @returns 返回 React 节点作为表头内容
|
|
28
|
+
*/
|
|
29
|
+
renderTitle?: (column: TableColumn<T>) => React.ReactNode;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* 表格列配置类型。
|
|
33
|
+
* 继承自 `mantine-datatable` 的 `DataTableColumn` 并扩展了自定义属性 `TableColumnProps`。
|
|
34
|
+
*/
|
|
35
|
+
export type TableColumn<T = unknown> = DataTableColumn<T> & TableColumnProps<T>;
|
|
36
|
+
/**
|
|
37
|
+
* `Table` 组件的属性类型。
|
|
38
|
+
* 继承自 `mantine-datatable` 的 `DataTableProps`,但移除了默认的 `columns`,
|
|
39
|
+
* 使用 `tableColumns` 来支持扩展的列配置。
|
|
40
|
+
*/
|
|
41
|
+
export type TableProps<T = unknown> = Omit<DataTableProps<T>, 'columns'> & {
|
|
42
|
+
readonly 'data-testid'?: string;
|
|
43
|
+
/**
|
|
44
|
+
* `null`、`undefined`、空字符串的统一占位内容。
|
|
45
|
+
* 设置为 `false` 时关闭空值占位。
|
|
46
|
+
*
|
|
47
|
+
* @default locale.placeholder)
|
|
48
|
+
*/
|
|
49
|
+
emptyCellPlaceholder?: React.ReactNode | false;
|
|
50
|
+
/**
|
|
51
|
+
* 表格的列配置数组。
|
|
52
|
+
* 替代原生的 `columns` 属性,支持自定义表头渲染等增强功能。
|
|
53
|
+
*/
|
|
54
|
+
tableColumns?: TableColumn<T>[];
|
|
55
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const DOTS: "dots";
|
|
2
|
+
type PaginationItem = number | typeof DOTS;
|
|
3
|
+
export interface PaginationProps {
|
|
4
|
+
readonly page: number;
|
|
5
|
+
readonly totalPages: number;
|
|
6
|
+
readonly onChange: (page: number) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function getPaginationRange(page: number, totalPages: number): PaginationItem[];
|
|
9
|
+
export declare function Pagination({ page, totalPages, onChange }: PaginationProps): import("react").JSX.Element | null;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as b, jsx as l } from "react/jsx-runtime";
|
|
3
|
+
import { Icon as M } from "@wisdomgarden/torque-icons";
|
|
4
|
+
import { formatTemplate as x } from "../../locale/types.js";
|
|
5
|
+
import "../../provider/ui-context.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import { useLocale as I } from "../../provider/hooks.js";
|
|
8
|
+
import { Box as v } from "../box/box.js";
|
|
9
|
+
import { Button as N } from "../button/button.js";
|
|
10
|
+
import { Group as C } from "../group/group.js";
|
|
11
|
+
import { IconButton as f } from "../icon-button/icon-button.js";
|
|
12
|
+
import u from "./pagination.module.css.js";
|
|
13
|
+
const s = "dots", p = 1, r = 1, i = (e, c) => Array.from(
|
|
14
|
+
{ length: Math.max(c - e + 1, 0) },
|
|
15
|
+
(t, n) => Math.trunc(e + n)
|
|
16
|
+
);
|
|
17
|
+
function k(e, c) {
|
|
18
|
+
const t = Math.max(Math.trunc(c), 0), n = Math.min(Math.max(Math.trunc(e), 1), t);
|
|
19
|
+
if (p * 2 + 3 + r * 2 >= t) return i(1, t);
|
|
20
|
+
const a = Math.max(n - p, r), o = Math.min(n + p, t - r), d = a > r + 2, h = o < t - (r + 1);
|
|
21
|
+
if (!d && h) {
|
|
22
|
+
const g = p * 2 + r + 2;
|
|
23
|
+
return [
|
|
24
|
+
...i(1, g),
|
|
25
|
+
s,
|
|
26
|
+
...i(t - r + 1, t)
|
|
27
|
+
];
|
|
28
|
+
}
|
|
29
|
+
if (d && !h) {
|
|
30
|
+
const g = r + 1 + p * 2;
|
|
31
|
+
return [
|
|
32
|
+
...i(1, r),
|
|
33
|
+
s,
|
|
34
|
+
...i(t - g, t)
|
|
35
|
+
];
|
|
36
|
+
}
|
|
37
|
+
return [
|
|
38
|
+
...i(1, r),
|
|
39
|
+
s,
|
|
40
|
+
...i(a, o),
|
|
41
|
+
s,
|
|
42
|
+
...i(t - r + 1, t)
|
|
43
|
+
];
|
|
44
|
+
}
|
|
45
|
+
function G({ page: e, totalPages: c, onChange: t }) {
|
|
46
|
+
const { pagination: n } = I(), m = Math.max(Math.trunc(c), 0), a = Math.min(Math.max(Math.trunc(e), 1), m);
|
|
47
|
+
return m <= 1 ? null : /* @__PURE__ */ b(
|
|
48
|
+
C,
|
|
49
|
+
{
|
|
50
|
+
component: "nav",
|
|
51
|
+
gap: "xs",
|
|
52
|
+
wrap: "nowrap",
|
|
53
|
+
"aria-label": n.pageNavigation,
|
|
54
|
+
children: [
|
|
55
|
+
/* @__PURE__ */ l(
|
|
56
|
+
f,
|
|
57
|
+
{
|
|
58
|
+
size: "md",
|
|
59
|
+
color: "regular",
|
|
60
|
+
variant: "stroke",
|
|
61
|
+
borderRadius: "sm",
|
|
62
|
+
iconName: "left",
|
|
63
|
+
iconClassName: u.directionIcon,
|
|
64
|
+
"aria-label": n.previousPage,
|
|
65
|
+
disabled: a === 1,
|
|
66
|
+
onClick: () => t(a - 1)
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
k(a, m).map(
|
|
70
|
+
(o, d) => o === s ? /* @__PURE__ */ l(
|
|
71
|
+
v,
|
|
72
|
+
{
|
|
73
|
+
"aria-hidden": "true",
|
|
74
|
+
className: u.dots,
|
|
75
|
+
children: /* @__PURE__ */ l(M, { name: "more-horizontal", className: u.dotsIcon })
|
|
76
|
+
},
|
|
77
|
+
`${s}-${d}`
|
|
78
|
+
) : /* @__PURE__ */ l(
|
|
79
|
+
N,
|
|
80
|
+
{
|
|
81
|
+
size: "md",
|
|
82
|
+
color: o === a ? "brand" : "regular",
|
|
83
|
+
variant: o === a ? "primary" : "stroke",
|
|
84
|
+
borderRadius: "sm",
|
|
85
|
+
className: u.pageButton,
|
|
86
|
+
"aria-label": x(n.page, { page: o }),
|
|
87
|
+
"aria-current": o === a ? "page" : void 0,
|
|
88
|
+
onClick: () => t(o),
|
|
89
|
+
children: o
|
|
90
|
+
},
|
|
91
|
+
o
|
|
92
|
+
)
|
|
93
|
+
),
|
|
94
|
+
/* @__PURE__ */ l(
|
|
95
|
+
f,
|
|
96
|
+
{
|
|
97
|
+
size: "md",
|
|
98
|
+
color: "regular",
|
|
99
|
+
variant: "stroke",
|
|
100
|
+
borderRadius: "sm",
|
|
101
|
+
iconName: "right",
|
|
102
|
+
iconClassName: u.directionIcon,
|
|
103
|
+
"aria-label": n.nextPage,
|
|
104
|
+
disabled: a === m,
|
|
105
|
+
onClick: () => t(a + 1)
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
export {
|
|
113
|
+
G as Pagination,
|
|
114
|
+
k as getPaginationRange
|
|
115
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const o = "_dots_9j5oy_2", t = "_dotsIcon_9j5oy_11", n = "_pageButton_9j5oy_16", c = "_directionIcon_9j5oy_21", s = {
|
|
3
|
+
dots: o,
|
|
4
|
+
dotsIcon: t,
|
|
5
|
+
pageButton: n,
|
|
6
|
+
directionIcon: c
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
s as default,
|
|
10
|
+
c as directionIcon,
|
|
11
|
+
o as dots,
|
|
12
|
+
t as dotsIcon,
|
|
13
|
+
n as pageButton
|
|
14
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface PaginationState {
|
|
2
|
+
page: number;
|
|
3
|
+
totalPages: number;
|
|
4
|
+
recordsPerPage: number | undefined;
|
|
5
|
+
}
|
|
6
|
+
export interface PaginationActions {
|
|
7
|
+
setPage: (page: number) => void;
|
|
8
|
+
setRecordsPerPage?: (recordsPerPage: number) => void;
|
|
9
|
+
}
|
|
10
|
+
export interface TablePaginationProps {
|
|
11
|
+
readonly state: PaginationState;
|
|
12
|
+
readonly actions: PaginationActions;
|
|
13
|
+
readonly pageSizeOptions: number[];
|
|
14
|
+
}
|
|
15
|
+
export declare function TablePagination({ state, actions, pageSizeOptions, }: TablePaginationProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as u, Fragment as b, jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { useState as d, useRef as N, useEffect as v, useId as x } from "react";
|
|
4
|
+
import { formatTemplate as P } from "../../locale/types.js";
|
|
5
|
+
import "../../provider/ui-context.js";
|
|
6
|
+
import { useLocale as T } from "../../provider/hooks.js";
|
|
7
|
+
import { Box as S } from "../box/box.js";
|
|
8
|
+
import { Group as h } from "../group/group.js";
|
|
9
|
+
import { NumberInput as I } from "../number-input/number-input.js";
|
|
10
|
+
import { Select as R } from "../select/select.js";
|
|
11
|
+
import { Text as f } from "../text/text.js";
|
|
12
|
+
import { Pagination as w } from "./pagination.js";
|
|
13
|
+
import n from "./table-pagination.module.css.js";
|
|
14
|
+
function G({
|
|
15
|
+
state: e,
|
|
16
|
+
actions: t,
|
|
17
|
+
pageSizeOptions: s
|
|
18
|
+
}) {
|
|
19
|
+
const { pagination: o } = T(), [i, p] = d(""), l = N({
|
|
20
|
+
page: e.page,
|
|
21
|
+
totalPages: e.totalPages
|
|
22
|
+
});
|
|
23
|
+
return v(() => {
|
|
24
|
+
const a = l.current;
|
|
25
|
+
a.page === e.page && a.totalPages === e.totalPages || (l.current = {
|
|
26
|
+
page: e.page,
|
|
27
|
+
totalPages: e.totalPages
|
|
28
|
+
}, p(
|
|
29
|
+
P(o.pageOfTotal, {
|
|
30
|
+
page: e.page,
|
|
31
|
+
totalPages: e.totalPages
|
|
32
|
+
})
|
|
33
|
+
));
|
|
34
|
+
}, [o.pageOfTotal, e.page, e.totalPages]), e.totalPages <= 1 ? null : /* @__PURE__ */ u(b, { children: [
|
|
35
|
+
/* @__PURE__ */ r(
|
|
36
|
+
S,
|
|
37
|
+
{
|
|
38
|
+
className: n.visuallyHidden,
|
|
39
|
+
role: "status",
|
|
40
|
+
"aria-live": "polite",
|
|
41
|
+
"aria-atomic": "true",
|
|
42
|
+
children: i
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ u(h, { wrap: "nowrap", justify: "flex-end", gap: "lg", className: n.root, children: [
|
|
46
|
+
/* @__PURE__ */ r(
|
|
47
|
+
w,
|
|
48
|
+
{
|
|
49
|
+
page: e.page,
|
|
50
|
+
totalPages: e.totalPages,
|
|
51
|
+
onChange: t.setPage
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
/* @__PURE__ */ r(
|
|
55
|
+
R,
|
|
56
|
+
{
|
|
57
|
+
borderRadius: "sm",
|
|
58
|
+
className: n.pageSizeSelect,
|
|
59
|
+
value: String(e.recordsPerPage ?? ""),
|
|
60
|
+
onChange: (a) => a && t.setRecordsPerPage?.(Number(a)),
|
|
61
|
+
options: s.map((a) => ({
|
|
62
|
+
value: String(a),
|
|
63
|
+
label: P(o.perPage, { count: a })
|
|
64
|
+
})),
|
|
65
|
+
"aria-label": o.itemsPerPage
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
/* @__PURE__ */ r(
|
|
69
|
+
C,
|
|
70
|
+
{
|
|
71
|
+
page: e.page,
|
|
72
|
+
totalPages: e.totalPages,
|
|
73
|
+
onChange: t.setPage,
|
|
74
|
+
label: o.goTo,
|
|
75
|
+
pageUnit: o.pageUnit
|
|
76
|
+
},
|
|
77
|
+
e.page
|
|
78
|
+
)
|
|
79
|
+
] })
|
|
80
|
+
] });
|
|
81
|
+
}
|
|
82
|
+
const C = ({
|
|
83
|
+
page: e,
|
|
84
|
+
totalPages: t,
|
|
85
|
+
onChange: s,
|
|
86
|
+
label: o,
|
|
87
|
+
pageUnit: i
|
|
88
|
+
}) => {
|
|
89
|
+
const p = x(), [l, a] = d(e), c = () => {
|
|
90
|
+
const g = Number(l);
|
|
91
|
+
if (!g || Number.isNaN(g)) {
|
|
92
|
+
a(e);
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
const m = Math.min(Math.max(1, Math.floor(g)), t);
|
|
96
|
+
a(m), m !== e && s(m);
|
|
97
|
+
};
|
|
98
|
+
return /* @__PURE__ */ u(h, { wrap: "nowrap", gap: "xs", children: [
|
|
99
|
+
/* @__PURE__ */ r(f, { component: "label", htmlFor: p, className: n.goToLabel, children: o }),
|
|
100
|
+
/* @__PURE__ */ r(
|
|
101
|
+
I,
|
|
102
|
+
{
|
|
103
|
+
id: p,
|
|
104
|
+
hideControls: !0,
|
|
105
|
+
min: 1,
|
|
106
|
+
borderRadius: "sm",
|
|
107
|
+
max: t,
|
|
108
|
+
clampBehavior: "blur",
|
|
109
|
+
className: n.goToInput,
|
|
110
|
+
value: l,
|
|
111
|
+
onChange: a,
|
|
112
|
+
onKeyDown: (g) => {
|
|
113
|
+
g.key === "Enter" && c();
|
|
114
|
+
},
|
|
115
|
+
onBlur: c,
|
|
116
|
+
renderRightSection: i ? /* @__PURE__ */ r(f, { component: "span", size: "sm", className: n.pageUnit, children: i }) : void 0
|
|
117
|
+
}
|
|
118
|
+
)
|
|
119
|
+
] });
|
|
120
|
+
};
|
|
121
|
+
export {
|
|
122
|
+
G as TablePagination
|
|
123
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const e = "_visuallyHidden_1ey6c_2", o = "_root_1ey6c_14", t = "_pageSizeSelect_1ey6c_18", c = "_goToLabel_1ey6c_22", _ = "_goToInput_1ey6c_28", n = "_pageUnit_1ey6c_32", a = {
|
|
3
|
+
visuallyHidden: e,
|
|
4
|
+
root: o,
|
|
5
|
+
pageSizeSelect: t,
|
|
6
|
+
goToLabel: c,
|
|
7
|
+
goToInput: _,
|
|
8
|
+
pageUnit: n
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
a as default,
|
|
12
|
+
_ as goToInput,
|
|
13
|
+
c as goToLabel,
|
|
14
|
+
t as pageSizeSelect,
|
|
15
|
+
n as pageUnit,
|
|
16
|
+
o as root,
|
|
17
|
+
e as visuallyHidden
|
|
18
|
+
};
|