@epilot/zenith-react 0.2.0-next.1 → 0.2.0-next.4
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 +25 -0
- package/codemods/README.md +168 -0
- package/codemods/migrate/base-elements/accordion.ts +132 -0
- package/codemods/migrate/base-elements/alert.ts +81 -0
- package/codemods/migrate/base-elements/avatar.ts +116 -0
- package/codemods/migrate/base-elements/button.ts +188 -0
- package/codemods/migrate/base-elements/checkbox.ts +17 -0
- package/codemods/migrate/base-elements/chip.ts +87 -0
- package/codemods/migrate/base-elements/chip360.ts +162 -0
- package/codemods/migrate/base-elements/circular-progress.ts +73 -0
- package/codemods/migrate/base-elements/dialog.ts +323 -0
- package/codemods/migrate/base-elements/divider.ts +61 -0
- package/codemods/migrate/base-elements/feedback-message.ts +95 -0
- package/codemods/migrate/base-elements/icon-button.ts +203 -0
- package/codemods/migrate/base-elements/index.ts +55 -0
- package/codemods/migrate/base-elements/mui-props.ts +29 -0
- package/codemods/migrate/base-elements/notification.ts +98 -0
- package/codemods/migrate/base-elements/paper.ts +78 -0
- package/codemods/migrate/base-elements/select.ts +328 -0
- package/codemods/migrate/base-elements/shared.ts +910 -0
- package/codemods/migrate/base-elements/skeleton.ts +83 -0
- package/codemods/migrate/base-elements/switch.ts +19 -0
- package/codemods/migrate/base-elements/tabs.ts +222 -0
- package/codemods/migrate/base-elements/text-field.ts +425 -0
- package/codemods/migrate/base-elements/toggle-button.ts +185 -0
- package/codemods/migrate/base-elements/tooltip.ts +231 -0
- package/codemods/migrate/base-elements/typography.ts +247 -0
- package/codemods/migrate/base-elements/unsupported.ts +277 -0
- package/codemods/migrate/from-base-elements.ts +20 -0
- package/codemods/migrate/from-volt.ts +20 -0
- package/codemods/migrate/lib/imports.ts +399 -0
- package/codemods/migrate/lib/jsx.ts +313 -0
- package/codemods/migrate/lib/run-migration.ts +528 -0
- package/codemods/migrate/lib/source.ts +6 -0
- package/codemods/migrate/lib/todo.ts +107 -0
- package/codemods/migrate/lib/types.ts +114 -0
- package/codemods/migrate/volt/class-helpers.ts +37 -0
- package/codemods/migrate/volt/index.ts +18 -0
- package/codemods/migrate/volt/pagination.ts +26 -0
- package/codemods/migrate/volt/same-name.ts +293 -0
- package/codemods/migrate/volt/stylesheets.ts +18 -0
- package/codemods/migrate/volt/tanstack-types.ts +20 -0
- package/codemods/radix-to-base-ui.ts +389 -0
- package/dist/_virtual/_zenith-runtime-family_accordion.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_accordion.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_alert-dialog.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_alert-dialog.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_avatar.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_avatar.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_button.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_button.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_checkbox.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_checkbox.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_csp-provider.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_csp-provider.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_dialog.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_dialog.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_direction-provider.js +8 -0
- package/dist/_virtual/_zenith-runtime-family_direction-provider.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_menu.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_menu.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_merge-props.js +11 -0
- package/dist/_virtual/_zenith-runtime-family_merge-props.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_popover.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_popover.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_radio-group.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_radio-group.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_radio.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_radio.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_scroll-area.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_scroll-area.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_select.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_select.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_separator.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_separator.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_switch.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_switch.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_tabs.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_tabs.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_toast.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_toast.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_toggle-group.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_toggle-group.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_toggle.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_toggle.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_tooltip.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_tooltip.js.map +1 -0
- package/dist/_virtual/_zenith-runtime-family_use-render.js +7 -0
- package/dist/_virtual/_zenith-runtime-family_use-render.js.map +1 -0
- package/dist/components/accordion/accordion.js +179 -96
- package/dist/components/accordion/accordion.js.map +1 -1
- package/dist/components/alert-dialog/alert-dialog.js +243 -206
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/avatar/avatar.js +94 -82
- package/dist/components/avatar/avatar.js.map +1 -1
- package/dist/components/badge/badge.js +11 -11
- package/dist/components/breadcrumb/breadcrumb.js +69 -70
- package/dist/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/components/button/button.js +119 -102
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/checkbox/checkbox.js +68 -51
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/data-table/data-table-header.js +113 -99
- package/dist/components/data-table/data-table-header.js.map +1 -1
- package/dist/components/data-table/data-table-row.js +49 -40
- package/dist/components/data-table/data-table-row.js.map +1 -1
- package/dist/components/date-range-picker/date-range-picker.js +100 -90
- package/dist/components/date-range-picker/date-range-picker.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker-input.js +118 -108
- package/dist/components/date-time-picker/date-time-picker-input.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker-panel.js +91 -94
- package/dist/components/date-time-picker/date-time-picker-panel.js.map +1 -1
- package/dist/components/dialog/dialog.js +238 -228
- package/dist/components/dialog/dialog.js.map +1 -1
- package/dist/components/drawer/drawer.js +260 -322
- package/dist/components/drawer/drawer.js.map +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.js +533 -279
- package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/field/field-combobox.js +87 -77
- package/dist/components/field/field-combobox.js.map +1 -1
- package/dist/components/list/list-sortable.js +104 -0
- package/dist/components/list/list-sortable.js.map +1 -0
- package/dist/components/list/list.js +246 -324
- package/dist/components/list/list.js.map +1 -1
- package/dist/components/option-card/option-card.js +121 -117
- package/dist/components/option-card/option-card.js.map +1 -1
- package/dist/components/pill/pill.js +7 -7
- package/dist/components/popover/popover.js +223 -127
- package/dist/components/popover/popover.js.map +1 -1
- package/dist/components/radio/radio-group-base.js +54 -0
- package/dist/components/radio/radio-group-base.js.map +1 -0
- package/dist/components/radio/radio.js +71 -60
- package/dist/components/radio/radio.js.map +1 -1
- package/dist/components/scroll-area/scroll-area.js +142 -108
- package/dist/components/scroll-area/scroll-area.js.map +1 -1
- package/dist/components/scroll-overflow/scroll-overflow.js +156 -127
- package/dist/components/scroll-overflow/scroll-overflow.js.map +1 -1
- package/dist/components/segmented-control/segmented-control.js +93 -81
- package/dist/components/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/select/select.js +485 -310
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/separator/separator.js.map +1 -1
- package/dist/components/slot/compose-as-child.js +15 -12
- package/dist/components/slot/compose-as-child.js.map +1 -1
- package/dist/components/switch/switch.js +75 -68
- package/dist/components/switch/switch.js.map +1 -1
- package/dist/components/table/table-pagination.js +212 -175
- package/dist/components/table/table-pagination.js.map +1 -1
- package/dist/components/tabs/tabs.js +193 -190
- package/dist/components/tabs/tabs.js.map +1 -1
- package/dist/components/toast/toast.js +610 -148
- package/dist/components/toast/toast.js.map +1 -1
- package/dist/components/toggle/toggle-group.js +143 -32
- package/dist/components/toggle/toggle-group.js.map +1 -1
- package/dist/components/toggle/toggle.js +83 -53
- package/dist/components/toggle/toggle.js.map +1 -1
- package/dist/components/tooltip/tooltip.js +298 -138
- package/dist/components/tooltip/tooltip.js.map +1 -1
- package/dist/index.d.ts +2335 -2129
- package/dist/index.js +24 -23
- package/dist/list/sortable/index.d.ts +29 -0
- package/dist/list/sortable/index.js +5 -0
- package/dist/{_virtual → list/sortable}/index.js.map +1 -1
- package/dist/packages/tokens/dist/delivery/index.js +10 -10
- package/dist/packages/tokens/dist/delivery/index.js.map +1 -1
- package/dist/packages/tokens/dist/generated/core.generated.js +6 -15
- package/dist/packages/tokens/dist/generated/core.generated.js.map +1 -1
- package/dist/packages/tokens/dist/generated/palette.generated.js +4 -5
- package/dist/packages/tokens/dist/generated/palette.generated.js.map +1 -1
- package/dist/packages/tokens/dist/generated/palette.meta.generated.js +5 -0
- package/dist/packages/tokens/dist/generated/palette.meta.generated.js.map +1 -0
- package/dist/packages/tokens/dist/install.js +40 -17
- package/dist/packages/tokens/dist/install.js.map +1 -1
- package/dist/renderer/runtime-contract.generated.js +8 -0
- package/dist/renderer/runtime-contract.generated.js.map +1 -0
- package/dist/renderer/served.js +34 -0
- package/dist/renderer/served.js.map +1 -0
- package/dist/tokens/core.meta.generated.js +2 -2
- package/dist/tokens/core.meta.generated.js.map +1 -1
- package/dist/tokens/index.d.ts +1028 -1028
- package/dist/tokens/index.js +863 -863
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/palette.meta.generated.js +5 -0
- package/dist/tokens/palette.meta.generated.js.map +1 -0
- package/dist/tokens.json +1 -1
- package/dist/vendor/.bun/@radix-ui_react-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-dialog/dist/index.js +57 -62
- package/dist/vendor/.bun/@radix-ui_react-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-dialog/dist/index.js.map +1 -1
- package/dist/vendor/.bun/@radix-ui_react-slot@1.2.3_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js +32 -38
- package/dist/vendor/.bun/@radix-ui_react-slot@1.2.3_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js.map +1 -1
- package/package.json +29 -21
- package/scripts/migration-diagnostics-core.mjs +18 -10
- package/scripts/migration-diagnostics.mjs +31 -8
- package/dist/_virtual/index.js +0 -6
- package/dist/_virtual/index2.js +0 -5
- package/dist/_virtual/index2.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.development.js +0 -5
- package/dist/_virtual/use-sync-external-store-shim.development.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.production.js +0 -5
- package/dist/_virtual/use-sync-external-store-shim.production.js.map +0 -1
- package/dist/tokens/palette.generated.js +0 -5
- package/dist/tokens/palette.generated.js.map +0 -1
- package/dist/vendor/.bun/@floating-ui_core@1.8.0/vendor/@floating-ui/core/dist/floating-ui.core.js +0 -512
- package/dist/vendor/.bun/@floating-ui_core@1.8.0/vendor/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
- package/dist/vendor/.bun/@floating-ui_dom@1.8.0/vendor/@floating-ui/dom/dist/floating-ui.dom.js +0 -396
- package/dist/vendor/.bun/@floating-ui_dom@1.8.0/vendor/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
- package/dist/vendor/.bun/@floating-ui_react-dom@2.1.9_6f4b9a1cfb20c0ae/vendor/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -233
- package/dist/vendor/.bun/@floating-ui_react-dom@2.1.9_6f4b9a1cfb20c0ae/vendor/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
- package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -137
- package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
- package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.js +0 -129
- package/dist/vendor/.bun/@floating-ui_utils@0.2.12/vendor/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_number@1.1.1/vendor/@radix-ui/number/dist/index.js +0 -7
- package/dist/vendor/.bun/@radix-ui_number@1.1.1/vendor/@radix-ui/number/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-accordion@1.2.12_2b23df507bdda662/vendor/@radix-ui/react-accordion/dist/index.js +0 -240
- package/dist/vendor/.bun/@radix-ui_react-accordion@1.2.12_2b23df507bdda662/vendor/@radix-ui/react-accordion/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-alert-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-alert-dialog/dist/index.js +0 -128
- package/dist/vendor/.bun/@radix-ui_react-alert-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-alert-dialog/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-arrow@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-arrow/dist/index.js +0 -25
- package/dist/vendor/.bun/@radix-ui_react-arrow@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-arrow/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-avatar@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-avatar/dist/index.js +0 -76
- package/dist/vendor/.bun/@radix-ui_react-avatar@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-avatar/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-checkbox@1.3.3_2b23df507bdda662/vendor/@radix-ui/react-checkbox/dist/index.js +0 -252
- package/dist/vendor/.bun/@radix-ui_react-checkbox@1.3.3_2b23df507bdda662/vendor/@radix-ui/react-checkbox/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-collapsible@1.1.12_2b23df507bdda662/vendor/@radix-ui/react-collapsible/dist/index.js +0 -121
- package/dist/vendor/.bun/@radix-ui_react-collapsible@1.1.12_2b23df507bdda662/vendor/@radix-ui/react-collapsible/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-collection@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-collection/dist/index.js +0 -49
- package/dist/vendor/.bun/@radix-ui_react-collection@1.1.7_2b23df507bdda662/vendor/@radix-ui/react-collection/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-direction@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-direction/dist/index.js +0 -11
- package/dist/vendor/.bun/@radix-ui_react-direction@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-direction/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-dropdown-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-dropdown-menu/dist/index.js +0 -228
- package/dist/vendor/.bun/@radix-ui_react-dropdown-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-dropdown-menu/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-menu/dist/index.js +0 -653
- package/dist/vendor/.bun/@radix-ui_react-menu@2.1.16_2b23df507bdda662/vendor/@radix-ui/react-menu/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-popover@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-popover/dist/index.js +0 -244
- package/dist/vendor/.bun/@radix-ui_react-popover@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-popover/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-popper@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-popper/dist/index.js +0 -222
- package/dist/vendor/.bun/@radix-ui_react-popper@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-popper/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-radio-group@1.3.8_2b23df507bdda662/vendor/@radix-ui/react-radio-group/dist/index.js +0 -239
- package/dist/vendor/.bun/@radix-ui_react-radio-group@1.3.8_2b23df507bdda662/vendor/@radix-ui/react-radio-group/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-roving-focus@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-roving-focus/dist/index.js +0 -184
- package/dist/vendor/.bun/@radix-ui_react-roving-focus@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-roving-focus/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-scroll-area@1.2.10_2b23df507bdda662/vendor/@radix-ui/react-scroll-area/dist/index.js +0 -535
- package/dist/vendor/.bun/@radix-ui_react-scroll-area@1.2.10_2b23df507bdda662/vendor/@radix-ui/react-scroll-area/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-select@2.2.6_2b23df507bdda662/vendor/@radix-ui/react-select/dist/index.js +0 -863
- package/dist/vendor/.bun/@radix-ui_react-select@2.2.6_2b23df507bdda662/vendor/@radix-ui/react-select/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-slot@1.2.4_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js +0 -63
- package/dist/vendor/.bun/@radix-ui_react-slot@1.2.4_0ac650c021fb1b59/vendor/@radix-ui/react-slot/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-switch@1.2.6_2b23df507bdda662/vendor/@radix-ui/react-switch/dist/index.js +0 -133
- package/dist/vendor/.bun/@radix-ui_react-switch@1.2.6_2b23df507bdda662/vendor/@radix-ui/react-switch/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-tabs@1.1.13_2b23df507bdda662/vendor/@radix-ui/react-tabs/dist/index.js +0 -164
- package/dist/vendor/.bun/@radix-ui_react-tabs@1.1.13_2b23df507bdda662/vendor/@radix-ui/react-tabs/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-toggle-group@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-toggle-group/dist/index.js +0 -138
- package/dist/vendor/.bun/@radix-ui_react-toggle-group@1.1.11_2b23df507bdda662/vendor/@radix-ui/react-toggle-group/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-toggle@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-toggle/dist/index.js +0 -34
- package/dist/vendor/.bun/@radix-ui_react-toggle@1.1.10_2b23df507bdda662/vendor/@radix-ui/react-toggle/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-tooltip@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-tooltip/dist/index.js +0 -340
- package/dist/vendor/.bun/@radix-ui_react-tooltip@1.2.8_2b23df507bdda662/vendor/@radix-ui/react-tooltip/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-use-is-hydrated@0.1.0_0ac650c021fb1b59/vendor/@radix-ui/react-use-is-hydrated/dist/index.js +0 -16
- package/dist/vendor/.bun/@radix-ui_react-use-is-hydrated@0.1.0_0ac650c021fb1b59/vendor/@radix-ui/react-use-is-hydrated/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-use-previous@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-previous/dist/index.js +0 -9
- package/dist/vendor/.bun/@radix-ui_react-use-previous@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-previous/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-use-size@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-size/dist/index.js +0 -28
- package/dist/vendor/.bun/@radix-ui_react-use-size@1.1.1_0ac650c021fb1b59/vendor/@radix-ui/react-use-size/dist/index.js.map +0 -1
- package/dist/vendor/.bun/@radix-ui_react-visually-hidden@1.2.3_2b23df507bdda662/vendor/@radix-ui/react-visually-hidden/dist/index.js +0 -33
- package/dist/vendor/.bun/@radix-ui_react-visually-hidden@1.2.3_2b23df507bdda662/vendor/@radix-ui/react-visually-hidden/dist/index.js.map +0 -1
- package/dist/vendor/.bun/sonner@2.0.7_6f4b9a1cfb20c0ae/vendor/sonner/dist/index.js +0 -747
- package/dist/vendor/.bun/sonner@2.0.7_6f4b9a1cfb20c0ae/vendor/sonner/dist/index.js.map +0 -1
- package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -68
- package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +0 -1
- package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -56
- package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +0 -1
- package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/shim/index.js +0 -11
- package/dist/vendor/.bun/use-sync-external-store@1.7.0_62547eec5a2188e3/vendor/use-sync-external-store/shim/index.js.map +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
import { mergeClasses as
|
|
5
|
-
import { makeZenithStyles as
|
|
6
|
-
import { boxModel as c, nativeControl as
|
|
7
|
-
import { OVERLAY_Z_INDEX as
|
|
8
|
-
import { accentA3 as
|
|
9
|
-
import { useAppearanceAttributes as
|
|
10
|
-
import { useDensity as
|
|
11
|
-
import { calculatePagination as
|
|
12
|
-
import { TooltipProvider as
|
|
13
|
-
import { Button as
|
|
14
|
-
const
|
|
1
|
+
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import * as Y from "react";
|
|
3
|
+
import { Select as i } from "../../_virtual/_zenith-runtime-family_select.js";
|
|
4
|
+
import { mergeClasses as J, SLOT_ATTR as q, shorthands as a } from "@epilot/zenith-runtime/v1";
|
|
5
|
+
import { makeZenithStyles as K } from "../../styles/make-styles.js";
|
|
6
|
+
import { boxModel as c, nativeControl as Q } from "../../styles/host-reset.js";
|
|
7
|
+
import { OVERLAY_Z_INDEX as R } from "../../styles/overlay-layer.js";
|
|
8
|
+
import { accentA3 as $, leadingSm as f, textSm as v, grayA11 as P, fontWeightSemibold as ee, leadingXs as te, textXs as oe, body as ne, accent8 as re, grayA4 as y, grayA3 as h, spacingElement1 as ie, spacingGroup1 as D, accent11 as C, trackingNormal as ae, accentA8 as se, spacingElement2 as le, radiusMd as ce, grayA6 as de, radiusLg as _, spacingElement3 as ge } from "../../tokens/index.js";
|
|
9
|
+
import { useAppearanceAttributes as pe } from "../appearance-boundary/appearance-boundary.js";
|
|
10
|
+
import { useDensity as he } from "../density-provider/density-provider.js";
|
|
11
|
+
import { calculatePagination as me, getPageNumbers as ue, clampPage as fe } from "../../lib/pagination.js";
|
|
12
|
+
import { TooltipProvider as ve, Tooltip as we, TooltipTrigger as ke, TooltipContent as xe } from "../tooltip/tooltip.js";
|
|
13
|
+
import { Button as p } from "../button/button.js";
|
|
14
|
+
const Pe = (r) => /* @__PURE__ */ s(
|
|
15
15
|
"svg",
|
|
16
16
|
{
|
|
17
17
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -23,13 +23,13 @@ const je = (o) => /* @__PURE__ */ a(
|
|
|
23
23
|
strokeWidth: "2",
|
|
24
24
|
strokeLinecap: "round",
|
|
25
25
|
strokeLinejoin: "round",
|
|
26
|
-
...
|
|
26
|
+
...r,
|
|
27
27
|
children: [
|
|
28
28
|
/* @__PURE__ */ t("path", { d: "M6 6v12" }),
|
|
29
29
|
/* @__PURE__ */ t("path", { d: "m15 18-6-6 6-6" })
|
|
30
30
|
]
|
|
31
31
|
}
|
|
32
|
-
),
|
|
32
|
+
), ye = (r) => /* @__PURE__ */ t(
|
|
33
33
|
"svg",
|
|
34
34
|
{
|
|
35
35
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -41,10 +41,10 @@ const je = (o) => /* @__PURE__ */ a(
|
|
|
41
41
|
strokeWidth: "2",
|
|
42
42
|
strokeLinecap: "round",
|
|
43
43
|
strokeLinejoin: "round",
|
|
44
|
-
...
|
|
44
|
+
...r,
|
|
45
45
|
children: /* @__PURE__ */ t("path", { d: "m15 18-6-6 6-6" })
|
|
46
46
|
}
|
|
47
|
-
),
|
|
47
|
+
), Ce = (r) => /* @__PURE__ */ t(
|
|
48
48
|
"svg",
|
|
49
49
|
{
|
|
50
50
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -56,10 +56,10 @@ const je = (o) => /* @__PURE__ */ a(
|
|
|
56
56
|
strokeWidth: "2",
|
|
57
57
|
strokeLinecap: "round",
|
|
58
58
|
strokeLinejoin: "round",
|
|
59
|
-
...
|
|
59
|
+
...r,
|
|
60
60
|
children: /* @__PURE__ */ t("path", { d: "m9 18 6-6-6-6" })
|
|
61
61
|
}
|
|
62
|
-
),
|
|
62
|
+
), Ie = (r) => /* @__PURE__ */ s(
|
|
63
63
|
"svg",
|
|
64
64
|
{
|
|
65
65
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -71,13 +71,13 @@ const je = (o) => /* @__PURE__ */ a(
|
|
|
71
71
|
strokeWidth: "2",
|
|
72
72
|
strokeLinecap: "round",
|
|
73
73
|
strokeLinejoin: "round",
|
|
74
|
-
...
|
|
74
|
+
...r,
|
|
75
75
|
children: [
|
|
76
76
|
/* @__PURE__ */ t("path", { d: "m9 18 6-6-6-6" }),
|
|
77
77
|
/* @__PURE__ */ t("path", { d: "M18 6v12" })
|
|
78
78
|
]
|
|
79
79
|
}
|
|
80
|
-
),
|
|
80
|
+
), Ne = (r) => /* @__PURE__ */ t(
|
|
81
81
|
"svg",
|
|
82
82
|
{
|
|
83
83
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -89,10 +89,10 @@ const je = (o) => /* @__PURE__ */ a(
|
|
|
89
89
|
strokeWidth: "2",
|
|
90
90
|
strokeLinecap: "round",
|
|
91
91
|
strokeLinejoin: "round",
|
|
92
|
-
...
|
|
92
|
+
...r,
|
|
93
93
|
children: /* @__PURE__ */ t("path", { d: "m6 9 6 6 6-6" })
|
|
94
94
|
}
|
|
95
|
-
),
|
|
95
|
+
), Le = (r) => /* @__PURE__ */ t(
|
|
96
96
|
"svg",
|
|
97
97
|
{
|
|
98
98
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -104,34 +104,34 @@ const je = (o) => /* @__PURE__ */ a(
|
|
|
104
104
|
strokeWidth: "2",
|
|
105
105
|
strokeLinecap: "round",
|
|
106
106
|
strokeLinejoin: "round",
|
|
107
|
-
...
|
|
107
|
+
...r,
|
|
108
108
|
children: /* @__PURE__ */ t("path", { d: "M20 6 9 17l-5-5" })
|
|
109
109
|
}
|
|
110
|
-
),
|
|
110
|
+
), Se = [10, 25, 50, 100], Te = K({
|
|
111
111
|
root: {
|
|
112
112
|
...c,
|
|
113
113
|
display: "flex",
|
|
114
114
|
alignItems: "center",
|
|
115
115
|
justifyContent: "space-between",
|
|
116
|
-
gap:
|
|
117
|
-
...
|
|
116
|
+
gap: D,
|
|
117
|
+
...a.paddingBlock(ge),
|
|
118
118
|
fontSize: v,
|
|
119
|
-
lineHeight:
|
|
119
|
+
lineHeight: f
|
|
120
120
|
},
|
|
121
121
|
left: {
|
|
122
122
|
display: "flex",
|
|
123
123
|
alignItems: "center",
|
|
124
|
-
gap:
|
|
124
|
+
gap: le
|
|
125
125
|
},
|
|
126
126
|
navButton: {
|
|
127
|
-
backgroundColor:
|
|
128
|
-
color:
|
|
127
|
+
backgroundColor: h,
|
|
128
|
+
color: C,
|
|
129
129
|
":hover": {
|
|
130
|
-
backgroundColor:
|
|
130
|
+
backgroundColor: y
|
|
131
131
|
},
|
|
132
132
|
":disabled": {
|
|
133
|
-
backgroundColor:
|
|
134
|
-
color:
|
|
133
|
+
backgroundColor: h,
|
|
134
|
+
color: se,
|
|
135
135
|
pointerEvents: "none"
|
|
136
136
|
}
|
|
137
137
|
},
|
|
@@ -140,58 +140,58 @@ const je = (o) => /* @__PURE__ */ a(
|
|
|
140
140
|
},
|
|
141
141
|
pageButtonInactive: {
|
|
142
142
|
backgroundColor: "transparent",
|
|
143
|
-
color:
|
|
143
|
+
color: C,
|
|
144
144
|
":hover": {
|
|
145
|
-
backgroundColor:
|
|
145
|
+
backgroundColor: h
|
|
146
146
|
},
|
|
147
147
|
":active": {
|
|
148
|
-
backgroundColor:
|
|
148
|
+
backgroundColor: y
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
151
|
ellipsisButton: {
|
|
152
|
-
letterSpacing:
|
|
152
|
+
letterSpacing: ae,
|
|
153
153
|
backgroundColor: "transparent",
|
|
154
|
-
color:
|
|
154
|
+
color: C,
|
|
155
155
|
":hover": {
|
|
156
|
-
backgroundColor:
|
|
156
|
+
backgroundColor: h
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
159
|
right: {
|
|
160
160
|
...c,
|
|
161
161
|
display: "flex",
|
|
162
162
|
alignItems: "center",
|
|
163
|
-
gap:
|
|
163
|
+
gap: D,
|
|
164
164
|
paddingRight: "0.125rem"
|
|
165
165
|
},
|
|
166
166
|
range: {
|
|
167
167
|
fontSize: v,
|
|
168
|
-
lineHeight:
|
|
169
|
-
color:
|
|
168
|
+
lineHeight: f,
|
|
169
|
+
color: P,
|
|
170
170
|
fontVariantNumeric: "tabular-nums"
|
|
171
171
|
},
|
|
172
172
|
selectTrigger: {
|
|
173
|
-
...
|
|
173
|
+
...Q,
|
|
174
174
|
display: "flex",
|
|
175
175
|
height: "2rem",
|
|
176
176
|
width: "auto",
|
|
177
177
|
minWidth: "4rem",
|
|
178
178
|
alignItems: "center",
|
|
179
179
|
justifyContent: "space-between",
|
|
180
|
-
gap:
|
|
181
|
-
...
|
|
182
|
-
backgroundColor:
|
|
183
|
-
...
|
|
180
|
+
gap: ie,
|
|
181
|
+
...a.borderRadius(_),
|
|
182
|
+
backgroundColor: h,
|
|
183
|
+
...a.paddingInline("0.75rem"),
|
|
184
184
|
fontSize: v,
|
|
185
|
-
lineHeight:
|
|
185
|
+
lineHeight: f,
|
|
186
186
|
cursor: "pointer",
|
|
187
|
-
...
|
|
187
|
+
...a.borderWidth(0),
|
|
188
188
|
":hover": {
|
|
189
|
-
backgroundColor:
|
|
189
|
+
backgroundColor: y
|
|
190
190
|
},
|
|
191
191
|
":focus": {
|
|
192
192
|
outlineWidth: "2px",
|
|
193
193
|
outlineStyle: "solid",
|
|
194
|
-
outlineColor:
|
|
194
|
+
outlineColor: re,
|
|
195
195
|
outlineOffset: "2px"
|
|
196
196
|
},
|
|
197
197
|
":disabled": {
|
|
@@ -202,29 +202,49 @@ const je = (o) => /* @__PURE__ */ a(
|
|
|
202
202
|
selectIcon: {
|
|
203
203
|
display: "flex",
|
|
204
204
|
alignItems: "center",
|
|
205
|
-
color:
|
|
205
|
+
color: P
|
|
206
|
+
},
|
|
207
|
+
// The positioner is what stacks against other layers, as Radix's popper wrapper did, keeping
|
|
208
|
+
// that wrapper's `max-content` floor.
|
|
209
|
+
selectPositioner: {
|
|
210
|
+
zIndex: R,
|
|
211
|
+
minWidth: "max-content"
|
|
206
212
|
},
|
|
207
213
|
selectContent: {
|
|
208
214
|
...c,
|
|
215
|
+
// Radix laid its content out as a column around the viewport.
|
|
216
|
+
display: "flex",
|
|
217
|
+
flexDirection: "column",
|
|
209
218
|
position: "relative",
|
|
210
|
-
zIndex:
|
|
211
|
-
...
|
|
212
|
-
...
|
|
213
|
-
...
|
|
214
|
-
backgroundColor:
|
|
219
|
+
zIndex: R,
|
|
220
|
+
...a.overflow("hidden"),
|
|
221
|
+
...a.borderRadius(_),
|
|
222
|
+
...a.border("1px", "solid", de),
|
|
223
|
+
backgroundColor: ne,
|
|
215
224
|
boxShadow: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)"
|
|
216
225
|
},
|
|
217
226
|
selectViewport: {
|
|
218
227
|
...c,
|
|
219
|
-
|
|
228
|
+
// Radix's viewport: the scroller, its scrollbar hidden.
|
|
229
|
+
position: "relative",
|
|
230
|
+
flexGrow: 1,
|
|
231
|
+
flexShrink: 1,
|
|
232
|
+
flexBasis: "0%",
|
|
233
|
+
overflowX: "hidden",
|
|
234
|
+
overflowY: "auto",
|
|
235
|
+
scrollbarWidth: "none",
|
|
236
|
+
"&::-webkit-scrollbar": {
|
|
237
|
+
display: "none"
|
|
238
|
+
},
|
|
239
|
+
...a.padding("0.25rem")
|
|
220
240
|
},
|
|
221
241
|
selectLabel: {
|
|
222
242
|
...c,
|
|
223
|
-
...
|
|
224
|
-
fontSize:
|
|
225
|
-
lineHeight:
|
|
226
|
-
fontWeight:
|
|
227
|
-
color:
|
|
243
|
+
...a.padding("0.375rem", "0.5rem"),
|
|
244
|
+
fontSize: oe,
|
|
245
|
+
lineHeight: te,
|
|
246
|
+
fontWeight: ee,
|
|
247
|
+
color: P
|
|
228
248
|
},
|
|
229
249
|
selectItem: {
|
|
230
250
|
...c,
|
|
@@ -233,16 +253,17 @@ const je = (o) => /* @__PURE__ */ a(
|
|
|
233
253
|
cursor: "pointer",
|
|
234
254
|
userSelect: "none",
|
|
235
255
|
alignItems: "center",
|
|
236
|
-
...
|
|
237
|
-
...
|
|
256
|
+
...a.borderRadius(ce),
|
|
257
|
+
...a.padding("0.375rem", "0.5rem", "0.375rem", "2rem"),
|
|
238
258
|
fontSize: v,
|
|
239
|
-
lineHeight:
|
|
259
|
+
lineHeight: f,
|
|
240
260
|
outlineStyle: "none",
|
|
241
|
-
|
|
242
|
-
|
|
261
|
+
// Base UI highlights the active item without moving focus to it, as Radix did.
|
|
262
|
+
"&[data-highlighted]": {
|
|
263
|
+
backgroundColor: $
|
|
243
264
|
},
|
|
244
|
-
"&[data-
|
|
245
|
-
backgroundColor:
|
|
265
|
+
"&[data-selected]": {
|
|
266
|
+
backgroundColor: $
|
|
246
267
|
}
|
|
247
268
|
},
|
|
248
269
|
selectItemIndicator: {
|
|
@@ -255,191 +276,207 @@ const je = (o) => /* @__PURE__ */ a(
|
|
|
255
276
|
alignItems: "center",
|
|
256
277
|
justifyContent: "center"
|
|
257
278
|
}
|
|
258
|
-
}),
|
|
279
|
+
}), be = {
|
|
259
280
|
navigation: "Pagination",
|
|
260
281
|
firstPage: "First page",
|
|
261
282
|
previousPage: "Previous page",
|
|
262
283
|
nextPage: "Next page",
|
|
263
284
|
lastPage: "Last page",
|
|
264
|
-
goToPage: (
|
|
265
|
-
jumpToPage: (
|
|
266
|
-
pageSizeSelector: (
|
|
267
|
-
},
|
|
268
|
-
page:
|
|
269
|
-
totalItems:
|
|
270
|
-
pageSize:
|
|
271
|
-
onPageChange:
|
|
272
|
-
onPageSizeChange:
|
|
273
|
-
pageSizeOptions:
|
|
274
|
-
siblingCount:
|
|
275
|
-
disabled:
|
|
276
|
-
labels:
|
|
277
|
-
className:
|
|
278
|
-
...
|
|
279
|
-
},
|
|
280
|
-
var
|
|
281
|
-
const e = { ...
|
|
282
|
-
page:
|
|
283
|
-
pageSize:
|
|
284
|
-
totalItems:
|
|
285
|
-
}),
|
|
286
|
-
const
|
|
287
|
-
isNaN(
|
|
285
|
+
goToPage: (r) => `Page ${r}`,
|
|
286
|
+
jumpToPage: (r) => `Jump to page ${r}`,
|
|
287
|
+
pageSizeSelector: (r) => `Rows per page: ${r}`
|
|
288
|
+
}, Ve = Y.forwardRef(function({
|
|
289
|
+
page: I,
|
|
290
|
+
totalItems: m,
|
|
291
|
+
pageSize: w,
|
|
292
|
+
onPageChange: d,
|
|
293
|
+
onPageSizeChange: O,
|
|
294
|
+
pageSizeOptions: N = Se,
|
|
295
|
+
siblingCount: G = 2,
|
|
296
|
+
disabled: l = !1,
|
|
297
|
+
labels: V,
|
|
298
|
+
className: F,
|
|
299
|
+
...H
|
|
300
|
+
}, M) {
|
|
301
|
+
var A;
|
|
302
|
+
const e = { ...be, ...V }, n = Te(), L = he(), X = pe(), { totalPages: k, start: S, end: T, isFirstPage: b, isLastPage: B } = me({
|
|
303
|
+
page: I,
|
|
304
|
+
pageSize: w,
|
|
305
|
+
totalItems: m
|
|
306
|
+
}), u = fe(I, k), Z = ue(u, k, G), U = (o) => {
|
|
307
|
+
const g = parseInt(o, 10);
|
|
308
|
+
isNaN(g) || O(g);
|
|
288
309
|
};
|
|
289
|
-
return
|
|
310
|
+
return m === 0 ? null : /* @__PURE__ */ t(ve, { children: /* @__PURE__ */ s(
|
|
290
311
|
"div",
|
|
291
312
|
{
|
|
292
|
-
ref:
|
|
313
|
+
ref: M,
|
|
293
314
|
"data-slot": "table-pagination",
|
|
294
|
-
[
|
|
315
|
+
[q]: "table-pagination",
|
|
295
316
|
"data-fs-element": "TablePagination",
|
|
296
317
|
role: "navigation",
|
|
297
318
|
"aria-label": e == null ? void 0 : e.navigation,
|
|
298
|
-
className:
|
|
299
|
-
...
|
|
319
|
+
className: J(n.root, F),
|
|
320
|
+
...H,
|
|
300
321
|
children: [
|
|
301
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ s("div", { className: n.left, children: [
|
|
302
323
|
/* @__PURE__ */ t(
|
|
303
|
-
|
|
324
|
+
p,
|
|
304
325
|
{
|
|
305
326
|
variant: "secondary",
|
|
306
327
|
size: "icon-sm",
|
|
307
328
|
shape: "normal",
|
|
308
|
-
disabled:
|
|
309
|
-
onClick: () =>
|
|
329
|
+
disabled: l || b,
|
|
330
|
+
onClick: () => d(1),
|
|
310
331
|
"aria-label": e == null ? void 0 : e.firstPage,
|
|
311
332
|
className: n.navButton,
|
|
312
|
-
children: /* @__PURE__ */ t(
|
|
333
|
+
children: /* @__PURE__ */ t(Pe, {})
|
|
313
334
|
}
|
|
314
335
|
),
|
|
315
336
|
/* @__PURE__ */ t(
|
|
316
|
-
|
|
337
|
+
p,
|
|
317
338
|
{
|
|
318
339
|
variant: "secondary",
|
|
319
340
|
size: "icon-sm",
|
|
320
341
|
shape: "normal",
|
|
321
|
-
disabled:
|
|
322
|
-
onClick: () =>
|
|
342
|
+
disabled: l || b,
|
|
343
|
+
onClick: () => d(u - 1),
|
|
323
344
|
"aria-label": e == null ? void 0 : e.previousPage,
|
|
324
345
|
className: n.navButton,
|
|
325
|
-
children: /* @__PURE__ */ t(
|
|
346
|
+
children: /* @__PURE__ */ t(ye, {})
|
|
326
347
|
}
|
|
327
348
|
),
|
|
328
|
-
|
|
329
|
-
var
|
|
330
|
-
const
|
|
331
|
-
if (
|
|
332
|
-
return /* @__PURE__ */
|
|
333
|
-
/* @__PURE__ */ t(
|
|
334
|
-
|
|
349
|
+
Z.map((o, g) => {
|
|
350
|
+
var z, W, E;
|
|
351
|
+
const j = o.type === "ellipsis" ? `ellipsis-${g}-${o.targetPage}` : `page-${o.page}`;
|
|
352
|
+
if (o.type === "ellipsis")
|
|
353
|
+
return /* @__PURE__ */ s(we, { children: [
|
|
354
|
+
/* @__PURE__ */ t(ke, { asChild: !0, children: /* @__PURE__ */ t(
|
|
355
|
+
p,
|
|
335
356
|
{
|
|
336
357
|
variant: "tertiary",
|
|
337
358
|
size: "icon-sm",
|
|
338
359
|
shape: "normal",
|
|
339
|
-
disabled:
|
|
340
|
-
onClick: () =>
|
|
341
|
-
"aria-label": (
|
|
360
|
+
disabled: l,
|
|
361
|
+
onClick: () => d(o.targetPage),
|
|
362
|
+
"aria-label": (z = e == null ? void 0 : e.jumpToPage) == null ? void 0 : z.call(e, o.targetPage),
|
|
342
363
|
className: n.ellipsisButton,
|
|
343
364
|
children: "..."
|
|
344
365
|
}
|
|
345
366
|
) }),
|
|
346
|
-
/* @__PURE__ */ t(
|
|
347
|
-
] },
|
|
348
|
-
const
|
|
367
|
+
/* @__PURE__ */ t(xe, { children: (W = e == null ? void 0 : e.jumpToPage) == null ? void 0 : W.call(e, o.targetPage) })
|
|
368
|
+
] }, j);
|
|
369
|
+
const x = o.page === u;
|
|
349
370
|
return /* @__PURE__ */ t(
|
|
350
|
-
|
|
371
|
+
p,
|
|
351
372
|
{
|
|
352
|
-
variant:
|
|
373
|
+
variant: x ? "secondary" : "tertiary",
|
|
353
374
|
size: "icon-sm",
|
|
354
375
|
shape: "normal",
|
|
355
|
-
disabled:
|
|
356
|
-
onClick: () =>
|
|
357
|
-
"aria-label": (
|
|
358
|
-
"aria-current":
|
|
359
|
-
className:
|
|
360
|
-
children:
|
|
376
|
+
disabled: l,
|
|
377
|
+
onClick: () => d(o.page),
|
|
378
|
+
"aria-label": (E = e == null ? void 0 : e.goToPage) == null ? void 0 : E.call(e, o.page),
|
|
379
|
+
"aria-current": x ? "page" : void 0,
|
|
380
|
+
className: x ? n.pageButtonActive : n.pageButtonInactive,
|
|
381
|
+
children: o.page
|
|
361
382
|
},
|
|
362
|
-
|
|
383
|
+
j
|
|
363
384
|
);
|
|
364
385
|
}),
|
|
365
386
|
/* @__PURE__ */ t(
|
|
366
|
-
|
|
387
|
+
p,
|
|
367
388
|
{
|
|
368
389
|
variant: "secondary",
|
|
369
390
|
size: "icon-sm",
|
|
370
391
|
shape: "normal",
|
|
371
|
-
disabled:
|
|
372
|
-
onClick: () =>
|
|
392
|
+
disabled: l || B,
|
|
393
|
+
onClick: () => d(u + 1),
|
|
373
394
|
"aria-label": e == null ? void 0 : e.nextPage,
|
|
374
395
|
className: n.navButton,
|
|
375
|
-
children: /* @__PURE__ */ t(
|
|
396
|
+
children: /* @__PURE__ */ t(Ce, {})
|
|
376
397
|
}
|
|
377
398
|
),
|
|
378
399
|
/* @__PURE__ */ t(
|
|
379
|
-
|
|
400
|
+
p,
|
|
380
401
|
{
|
|
381
402
|
variant: "secondary",
|
|
382
403
|
size: "icon-sm",
|
|
383
404
|
shape: "normal",
|
|
384
|
-
disabled:
|
|
385
|
-
onClick: () =>
|
|
405
|
+
disabled: l || B,
|
|
406
|
+
onClick: () => d(k),
|
|
386
407
|
"aria-label": e == null ? void 0 : e.lastPage,
|
|
387
408
|
className: n.navButton,
|
|
388
|
-
children: /* @__PURE__ */ t(
|
|
409
|
+
children: /* @__PURE__ */ t(Ie, {})
|
|
389
410
|
}
|
|
390
411
|
)
|
|
391
412
|
] }),
|
|
392
|
-
/* @__PURE__ */
|
|
413
|
+
/* @__PURE__ */ s("div", { className: n.right, children: [
|
|
393
414
|
/* @__PURE__ */ t(
|
|
394
415
|
"span",
|
|
395
416
|
{
|
|
396
417
|
"data-slot": "table-pagination-range",
|
|
397
418
|
className: n.range,
|
|
398
419
|
"aria-live": "polite",
|
|
399
|
-
children: e != null && e.rangeDisplay ? e.rangeDisplay(
|
|
420
|
+
children: e != null && e.rangeDisplay ? e.rangeDisplay(S, T, m) : `${S}-${T} / ${m}`
|
|
400
421
|
}
|
|
401
422
|
),
|
|
402
|
-
/* @__PURE__ */
|
|
403
|
-
|
|
423
|
+
/* @__PURE__ */ s(
|
|
424
|
+
i.Root,
|
|
404
425
|
{
|
|
405
|
-
value: String(
|
|
406
|
-
onValueChange:
|
|
407
|
-
|
|
426
|
+
value: String(w),
|
|
427
|
+
onValueChange: (o) => {
|
|
428
|
+
o !== null && U(o);
|
|
429
|
+
},
|
|
430
|
+
disabled: l,
|
|
408
431
|
children: [
|
|
409
|
-
/* @__PURE__ */
|
|
410
|
-
|
|
432
|
+
/* @__PURE__ */ s(
|
|
433
|
+
i.Trigger,
|
|
411
434
|
{
|
|
412
435
|
className: n.selectTrigger,
|
|
413
|
-
"aria-label": (
|
|
436
|
+
"aria-label": (A = e == null ? void 0 : e.pageSizeSelector) == null ? void 0 : A.call(e, w),
|
|
414
437
|
children: [
|
|
415
|
-
/* @__PURE__ */ t(
|
|
416
|
-
/* @__PURE__ */ t(
|
|
438
|
+
/* @__PURE__ */ t(i.Value, { children: (o) => N.some((g) => String(g) === o) ? o : null }),
|
|
439
|
+
/* @__PURE__ */ t(i.Icon, { className: n.selectIcon, children: /* @__PURE__ */ t(Ne, {}) })
|
|
417
440
|
]
|
|
418
441
|
}
|
|
419
442
|
),
|
|
420
|
-
/* @__PURE__ */ t(
|
|
421
|
-
|
|
443
|
+
/* @__PURE__ */ t(i.Portal, { children: /* @__PURE__ */ t(
|
|
444
|
+
i.Positioner,
|
|
422
445
|
{
|
|
423
|
-
className: n.
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
position: "popper",
|
|
446
|
+
className: n.selectPositioner,
|
|
447
|
+
alignItemWithTrigger: !1,
|
|
448
|
+
align: "start",
|
|
427
449
|
sideOffset: 4,
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
450
|
+
collisionPadding: 10,
|
|
451
|
+
children: /* @__PURE__ */ t(
|
|
452
|
+
i.Popup,
|
|
453
|
+
{
|
|
454
|
+
className: n.selectContent,
|
|
455
|
+
...L !== void 0 ? { "data-density": L } : {},
|
|
456
|
+
...X,
|
|
457
|
+
children: /* @__PURE__ */ t(i.List, { className: n.selectViewport, children: /* @__PURE__ */ s(i.Group, { children: [
|
|
458
|
+
(e == null ? void 0 : e.resultsPerPage) && /* @__PURE__ */ t(
|
|
459
|
+
i.GroupLabel,
|
|
460
|
+
{
|
|
461
|
+
className: n.selectLabel,
|
|
462
|
+
children: e.resultsPerPage
|
|
463
|
+
}
|
|
464
|
+
),
|
|
465
|
+
N.map((o) => /* @__PURE__ */ s(
|
|
466
|
+
i.Item,
|
|
467
|
+
{
|
|
468
|
+
value: String(o),
|
|
469
|
+
className: n.selectItem,
|
|
470
|
+
children: [
|
|
471
|
+
/* @__PURE__ */ t("span", { className: n.selectItemIndicator, children: /* @__PURE__ */ t(i.ItemIndicator, { children: /* @__PURE__ */ t(Le, { style: { width: 16, height: 16 } }) }) }),
|
|
472
|
+
/* @__PURE__ */ t(i.ItemText, { render: /* @__PURE__ */ t("span", {}), children: o })
|
|
473
|
+
]
|
|
474
|
+
},
|
|
475
|
+
o
|
|
476
|
+
))
|
|
477
|
+
] }) })
|
|
478
|
+
}
|
|
479
|
+
)
|
|
443
480
|
}
|
|
444
481
|
) })
|
|
445
482
|
]
|
|
@@ -451,6 +488,6 @@ const je = (o) => /* @__PURE__ */ a(
|
|
|
451
488
|
) });
|
|
452
489
|
});
|
|
453
490
|
export {
|
|
454
|
-
|
|
491
|
+
Ve as TablePagination
|
|
455
492
|
};
|
|
456
493
|
//# sourceMappingURL=table-pagination.js.map
|