@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,12 +1,10 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
import { successLight as ut, warningLight as pt, errorLight as gt, spacingGroup2 as V, grayA12 as X, fontWeightSemibold as mt, leadingSm as $, textSm as K, grayA10 as ft, fontWeightMedium as ht, accentSolid as xt, accentA8 as vt, grayA11 as B, grayA8 as yt, leadingXs as bt, textXs as wt, listIndexPaddingX as Z, listItemPaddingX as _, listItemPaddingY as P, listIndexMinWidth as It, grayA2 as q, radiusMd as R, successSoftHover as St, warningSoftHover as Lt, errorSoftHover as kt, accentSoft as Ct, successDefault as Dt, successSoft as Tt, warningDefault as Wt, warningSoft as Nt, errorDefault as Et, errorSoft as Ot, listItemMinHeight as At, spacingElement3 as Gt, grayA5 as Bt, spacingElement1 as Pt, spacingElement2 as Rt, listItemGap as Ht } from "../../tokens/index.js";
|
|
9
|
-
const zt = (n) => /* @__PURE__ */ T(
|
|
1
|
+
import { jsx as t, jsxs as I } from "react/jsx-runtime";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { mergeClasses as g, SLOT_ATTR as u, shorthands as p } from "@epilot/zenith-runtime/v1";
|
|
4
|
+
import { makeZenithStyles as Y } from "../../styles/make-styles.js";
|
|
5
|
+
import { boxModel as d } from "../../styles/host-reset.js";
|
|
6
|
+
import { successLight as _, warningLight as q, errorLight as J, spacingGroup2 as B, grayA12 as G, fontWeightSemibold as Q, leadingSm as R, textSm as E, grayA10 as tt, fontWeightMedium as et, accentSolid as ot, accentA8 as rt, grayA11 as C, grayA8 as nt, leadingXs as it, textXs as st, listIndexPaddingX as O, listItemPaddingX as H, listItemPaddingY as T, listIndexMinWidth as at, grayA2 as P, radiusMd as D, successSoftHover as lt, warningSoftHover as ct, errorSoftHover as dt, accentSoft as pt, successDefault as ut, successSoft as gt, warningDefault as mt, warningSoft as ft, errorDefault as ht, errorSoft as xt, listItemMinHeight as wt, spacingElement3 as vt, grayA5 as yt, spacingElement1 as bt, spacingElement2 as It, listItemGap as St } from "../../tokens/index.js";
|
|
7
|
+
const kt = (r) => /* @__PURE__ */ I(
|
|
10
8
|
"svg",
|
|
11
9
|
{
|
|
12
10
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -15,7 +13,7 @@ const zt = (n) => /* @__PURE__ */ T(
|
|
|
15
13
|
viewBox: "0 0 24 24",
|
|
16
14
|
fill: "currentColor",
|
|
17
15
|
"aria-hidden": "true",
|
|
18
|
-
...
|
|
16
|
+
...r,
|
|
19
17
|
children: [
|
|
20
18
|
/* @__PURE__ */ t("circle", { cx: "9", cy: "5", r: "1.5" }),
|
|
21
19
|
/* @__PURE__ */ t("circle", { cx: "15", cy: "5", r: "1.5" }),
|
|
@@ -25,7 +23,7 @@ const zt = (n) => /* @__PURE__ */ T(
|
|
|
25
23
|
/* @__PURE__ */ t("circle", { cx: "15", cy: "19", r: "1.5" })
|
|
26
24
|
]
|
|
27
25
|
}
|
|
28
|
-
),
|
|
26
|
+
), z = (r) => /* @__PURE__ */ I(
|
|
29
27
|
"svg",
|
|
30
28
|
{
|
|
31
29
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -36,14 +34,14 @@ const zt = (n) => /* @__PURE__ */ T(
|
|
|
36
34
|
strokeLinecap: "round",
|
|
37
35
|
strokeLinejoin: "round",
|
|
38
36
|
"aria-hidden": "true",
|
|
39
|
-
...
|
|
37
|
+
...r,
|
|
40
38
|
children: [
|
|
41
39
|
/* @__PURE__ */ t("path", { d: "M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z" }),
|
|
42
40
|
/* @__PURE__ */ t("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
|
|
43
41
|
/* @__PURE__ */ t("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
|
|
44
42
|
]
|
|
45
43
|
}
|
|
46
|
-
),
|
|
44
|
+
), Lt = (r) => /* @__PURE__ */ I(
|
|
47
45
|
"svg",
|
|
48
46
|
{
|
|
49
47
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -54,13 +52,13 @@ const zt = (n) => /* @__PURE__ */ T(
|
|
|
54
52
|
strokeLinecap: "round",
|
|
55
53
|
strokeLinejoin: "round",
|
|
56
54
|
"aria-hidden": "true",
|
|
57
|
-
...
|
|
55
|
+
...r,
|
|
58
56
|
children: [
|
|
59
57
|
/* @__PURE__ */ t("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
|
|
60
58
|
/* @__PURE__ */ t("polyline", { points: "22 4 12 14.01 9 11.01" })
|
|
61
59
|
]
|
|
62
60
|
}
|
|
63
|
-
),
|
|
61
|
+
), Ct = (r) => /* @__PURE__ */ t(
|
|
64
62
|
"svg",
|
|
65
63
|
{
|
|
66
64
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -71,37 +69,37 @@ const zt = (n) => /* @__PURE__ */ T(
|
|
|
71
69
|
strokeLinecap: "round",
|
|
72
70
|
strokeLinejoin: "round",
|
|
73
71
|
"aria-hidden": "true",
|
|
74
|
-
...
|
|
72
|
+
...r,
|
|
75
73
|
children: /* @__PURE__ */ t("polyline", { points: "9 18 15 12 9 6" })
|
|
76
74
|
}
|
|
77
|
-
),
|
|
75
|
+
), h = Y({
|
|
78
76
|
list: {
|
|
79
|
-
...
|
|
77
|
+
...d,
|
|
80
78
|
display: "flex",
|
|
81
79
|
width: "100%",
|
|
82
80
|
listStyleType: "none",
|
|
83
81
|
flexDirection: "column",
|
|
84
|
-
...
|
|
85
|
-
...
|
|
86
|
-
...
|
|
82
|
+
...p.gap(0),
|
|
83
|
+
...p.padding(0),
|
|
84
|
+
...p.margin(0)
|
|
87
85
|
},
|
|
88
86
|
// ListItem base — density-bound (DENSITY-SPEC.md §2.2, WP9B2A-ACCEPTANCE-LIST).
|
|
89
87
|
item: {
|
|
90
|
-
...
|
|
88
|
+
...d,
|
|
91
89
|
position: "relative",
|
|
92
90
|
display: "flex",
|
|
93
91
|
width: "100%",
|
|
94
92
|
alignItems: "center",
|
|
95
|
-
...
|
|
96
|
-
color:
|
|
93
|
+
...p.borderRadius(D),
|
|
94
|
+
color: G,
|
|
97
95
|
transitionProperty: "color, background-color, border-color, text-decoration-color, fill, stroke",
|
|
98
96
|
transitionDuration: "150ms",
|
|
99
97
|
transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
100
|
-
minHeight:
|
|
101
|
-
...
|
|
102
|
-
...
|
|
103
|
-
fontSize:
|
|
104
|
-
lineHeight:
|
|
98
|
+
minHeight: wt,
|
|
99
|
+
...p.gap(St),
|
|
100
|
+
...p.padding(T, H),
|
|
101
|
+
fontSize: E,
|
|
102
|
+
lineHeight: R,
|
|
105
103
|
"& > svg": {
|
|
106
104
|
flexShrink: 0,
|
|
107
105
|
width: "1rem",
|
|
@@ -111,42 +109,42 @@ const zt = (n) => /* @__PURE__ */ T(
|
|
|
111
109
|
// Status variants
|
|
112
110
|
statusDefault: {},
|
|
113
111
|
statusError: {
|
|
114
|
-
backgroundColor:
|
|
115
|
-
color:
|
|
112
|
+
backgroundColor: xt,
|
|
113
|
+
color: ht
|
|
116
114
|
},
|
|
117
115
|
statusWarning: {
|
|
118
|
-
backgroundColor:
|
|
119
|
-
color:
|
|
116
|
+
backgroundColor: ft,
|
|
117
|
+
color: mt
|
|
120
118
|
},
|
|
121
119
|
statusSuccess: {
|
|
122
|
-
backgroundColor:
|
|
123
|
-
color:
|
|
120
|
+
backgroundColor: gt,
|
|
121
|
+
color: ut
|
|
124
122
|
},
|
|
125
123
|
// Striped variant (only neutral rows)
|
|
126
124
|
stripedEven: {
|
|
127
125
|
"&:nth-child(even)": {
|
|
128
|
-
backgroundColor:
|
|
126
|
+
backgroundColor: P
|
|
129
127
|
}
|
|
130
128
|
},
|
|
131
129
|
// Interactive hovers
|
|
132
130
|
interactiveDefault: {
|
|
133
131
|
":hover": {
|
|
134
|
-
backgroundColor:
|
|
132
|
+
backgroundColor: pt
|
|
135
133
|
}
|
|
136
134
|
},
|
|
137
135
|
interactiveError: {
|
|
138
136
|
":hover": {
|
|
139
|
-
backgroundColor:
|
|
137
|
+
backgroundColor: dt
|
|
140
138
|
}
|
|
141
139
|
},
|
|
142
140
|
interactiveWarning: {
|
|
143
141
|
":hover": {
|
|
144
|
-
backgroundColor:
|
|
142
|
+
backgroundColor: ct
|
|
145
143
|
}
|
|
146
144
|
},
|
|
147
145
|
interactiveSuccess: {
|
|
148
146
|
":hover": {
|
|
149
|
-
backgroundColor:
|
|
147
|
+
backgroundColor: lt
|
|
150
148
|
}
|
|
151
149
|
},
|
|
152
150
|
// Sortable modifiers
|
|
@@ -162,36 +160,36 @@ const zt = (n) => /* @__PURE__ */ T(
|
|
|
162
160
|
},
|
|
163
161
|
// Index gutter — density-bound.
|
|
164
162
|
indexBase: {
|
|
165
|
-
...
|
|
163
|
+
...d,
|
|
166
164
|
display: "flex",
|
|
167
165
|
flexShrink: 0,
|
|
168
166
|
userSelect: "none",
|
|
169
167
|
alignItems: "center",
|
|
170
168
|
justifyContent: "center",
|
|
171
169
|
alignSelf: "stretch",
|
|
172
|
-
borderTopLeftRadius:
|
|
173
|
-
borderBottomLeftRadius:
|
|
174
|
-
backgroundColor:
|
|
170
|
+
borderTopLeftRadius: D,
|
|
171
|
+
borderBottomLeftRadius: D,
|
|
172
|
+
backgroundColor: P,
|
|
175
173
|
textAlign: "center",
|
|
176
|
-
color:
|
|
174
|
+
color: C,
|
|
177
175
|
fontVariantNumeric: "tabular-nums",
|
|
178
|
-
minWidth:
|
|
179
|
-
marginTop: `calc(-1 * ${
|
|
180
|
-
marginBottom: `calc(-1 * ${
|
|
181
|
-
marginLeft: `calc(-1 * ${
|
|
182
|
-
paddingLeft:
|
|
183
|
-
paddingRight:
|
|
176
|
+
minWidth: at,
|
|
177
|
+
marginTop: `calc(-1 * ${T})`,
|
|
178
|
+
marginBottom: `calc(-1 * ${T})`,
|
|
179
|
+
marginLeft: `calc(-1 * ${H})`,
|
|
180
|
+
paddingLeft: O,
|
|
181
|
+
paddingRight: O
|
|
184
182
|
},
|
|
185
183
|
// Content
|
|
186
184
|
content: {
|
|
187
|
-
...
|
|
185
|
+
...d,
|
|
188
186
|
display: "flex",
|
|
189
187
|
minWidth: 0,
|
|
190
188
|
flexGrow: 1,
|
|
191
189
|
flexShrink: 1,
|
|
192
190
|
flexBasis: "0%",
|
|
193
191
|
alignItems: "center",
|
|
194
|
-
...
|
|
192
|
+
...p.gap(It),
|
|
195
193
|
overflow: "hidden",
|
|
196
194
|
textOverflow: "ellipsis",
|
|
197
195
|
whiteSpace: "nowrap",
|
|
@@ -208,43 +206,43 @@ const zt = (n) => /* @__PURE__ */ T(
|
|
|
208
206
|
display: "flex",
|
|
209
207
|
flexShrink: 0,
|
|
210
208
|
alignItems: "center",
|
|
211
|
-
...
|
|
209
|
+
...p.gap(bt)
|
|
212
210
|
},
|
|
213
211
|
// Text
|
|
214
212
|
text: {
|
|
215
|
-
...
|
|
213
|
+
...d,
|
|
216
214
|
display: "flex",
|
|
217
215
|
minWidth: 0,
|
|
218
216
|
flexGrow: 1,
|
|
219
217
|
flexShrink: 1,
|
|
220
218
|
flexBasis: "0%",
|
|
221
219
|
flexDirection: "column",
|
|
222
|
-
...
|
|
220
|
+
...p.gap("0.125rem")
|
|
223
221
|
},
|
|
224
222
|
// Description
|
|
225
223
|
description: {
|
|
226
224
|
overflow: "hidden",
|
|
227
225
|
textOverflow: "ellipsis",
|
|
228
226
|
whiteSpace: "nowrap",
|
|
229
|
-
fontSize:
|
|
230
|
-
lineHeight:
|
|
231
|
-
color:
|
|
227
|
+
fontSize: st,
|
|
228
|
+
lineHeight: it,
|
|
229
|
+
color: C
|
|
232
230
|
},
|
|
233
231
|
// Drag handle button
|
|
234
232
|
dragHandle: {
|
|
235
|
-
...
|
|
233
|
+
...d,
|
|
236
234
|
position: "relative",
|
|
237
235
|
zIndex: 10,
|
|
238
236
|
display: "inline-flex",
|
|
239
237
|
flexShrink: 0,
|
|
240
238
|
cursor: "grab",
|
|
241
239
|
alignItems: "center",
|
|
242
|
-
color:
|
|
240
|
+
color: nt,
|
|
243
241
|
backgroundColor: "transparent",
|
|
244
|
-
...
|
|
245
|
-
...
|
|
242
|
+
...p.border("0"),
|
|
243
|
+
...p.padding(0),
|
|
246
244
|
":hover": {
|
|
247
|
-
color:
|
|
245
|
+
color: C
|
|
248
246
|
},
|
|
249
247
|
":active": {
|
|
250
248
|
cursor: "grabbing"
|
|
@@ -253,7 +251,7 @@ const zt = (n) => /* @__PURE__ */ T(
|
|
|
253
251
|
outlineWidth: "2px",
|
|
254
252
|
outlineStyle: "solid",
|
|
255
253
|
outlineOffset: "2px",
|
|
256
|
-
outlineColor:
|
|
254
|
+
outlineColor: rt
|
|
257
255
|
},
|
|
258
256
|
"& svg": {
|
|
259
257
|
width: "1rem",
|
|
@@ -262,7 +260,7 @@ const zt = (n) => /* @__PURE__ */ T(
|
|
|
262
260
|
},
|
|
263
261
|
// Drop indicator line
|
|
264
262
|
dropIndicator: {
|
|
265
|
-
...
|
|
263
|
+
...d,
|
|
266
264
|
pointerEvents: "none",
|
|
267
265
|
position: "absolute",
|
|
268
266
|
left: 0,
|
|
@@ -270,8 +268,8 @@ const zt = (n) => /* @__PURE__ */ T(
|
|
|
270
268
|
zIndex: 10,
|
|
271
269
|
height: "0.125rem",
|
|
272
270
|
transformOrigin: "center",
|
|
273
|
-
...
|
|
274
|
-
backgroundColor:
|
|
271
|
+
...p.borderRadius("9999px"),
|
|
272
|
+
backgroundColor: ot,
|
|
275
273
|
animationName: {
|
|
276
274
|
from: {
|
|
277
275
|
transform: "scaleX(0)",
|
|
@@ -293,11 +291,11 @@ const zt = (n) => /* @__PURE__ */ T(
|
|
|
293
291
|
},
|
|
294
292
|
// DragOverlay ghost
|
|
295
293
|
dragOverlayItem: {
|
|
296
|
-
...
|
|
294
|
+
...d,
|
|
297
295
|
transformOrigin: "center",
|
|
298
296
|
transform: "scale(0.95)",
|
|
299
297
|
cursor: "grabbing",
|
|
300
|
-
...
|
|
298
|
+
...p.border("1px", "solid", yt),
|
|
301
299
|
backgroundColor: "rgb(255 255 255 / 55%)",
|
|
302
300
|
boxShadow: "0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a",
|
|
303
301
|
backdropFilter: "blur(12px)",
|
|
@@ -316,19 +314,19 @@ const zt = (n) => /* @__PURE__ */ T(
|
|
|
316
314
|
listStyleType: "none"
|
|
317
315
|
},
|
|
318
316
|
groupTrigger: {
|
|
319
|
-
...
|
|
317
|
+
...d,
|
|
320
318
|
cursor: "pointer",
|
|
321
319
|
textAlign: "left",
|
|
322
|
-
fontWeight:
|
|
320
|
+
fontWeight: et,
|
|
323
321
|
backgroundColor: "transparent",
|
|
324
|
-
...
|
|
322
|
+
...p.border("0")
|
|
325
323
|
},
|
|
326
324
|
groupChevron: {
|
|
327
|
-
...
|
|
325
|
+
...d,
|
|
328
326
|
width: "1rem",
|
|
329
327
|
height: "1rem",
|
|
330
328
|
flexShrink: 0,
|
|
331
|
-
color:
|
|
329
|
+
color: tt,
|
|
332
330
|
transitionProperty: "transform",
|
|
333
331
|
transitionDuration: "150ms",
|
|
334
332
|
transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)"
|
|
@@ -337,7 +335,7 @@ const zt = (n) => /* @__PURE__ */ T(
|
|
|
337
335
|
transform: "rotate(90deg)"
|
|
338
336
|
},
|
|
339
337
|
groupTriggerText: {
|
|
340
|
-
...
|
|
338
|
+
...d,
|
|
341
339
|
minWidth: 0,
|
|
342
340
|
flexGrow: 1,
|
|
343
341
|
flexShrink: 1,
|
|
@@ -347,22 +345,22 @@ const zt = (n) => /* @__PURE__ */ T(
|
|
|
347
345
|
whiteSpace: "nowrap"
|
|
348
346
|
},
|
|
349
347
|
standaloneGroupLabel: {
|
|
350
|
-
...
|
|
351
|
-
marginTop:
|
|
348
|
+
...d,
|
|
349
|
+
marginTop: B,
|
|
352
350
|
display: "block",
|
|
353
351
|
listStyleType: "none",
|
|
354
|
-
...
|
|
355
|
-
fontSize:
|
|
356
|
-
lineHeight:
|
|
357
|
-
fontWeight:
|
|
358
|
-
color:
|
|
352
|
+
...p.padding("0.375rem", vt),
|
|
353
|
+
fontSize: E,
|
|
354
|
+
lineHeight: R,
|
|
355
|
+
fontWeight: Q,
|
|
356
|
+
color: G,
|
|
359
357
|
"&:first-child": {
|
|
360
358
|
marginTop: 0
|
|
361
359
|
}
|
|
362
360
|
},
|
|
363
361
|
groupContentList: {
|
|
364
|
-
...
|
|
365
|
-
paddingLeft:
|
|
362
|
+
...d,
|
|
363
|
+
paddingLeft: B
|
|
366
364
|
},
|
|
367
365
|
collapseWrapper: {
|
|
368
366
|
display: "grid",
|
|
@@ -378,377 +376,301 @@ const zt = (n) => /* @__PURE__ */ T(
|
|
|
378
376
|
gridTemplateRows: "1fr"
|
|
379
377
|
},
|
|
380
378
|
collapseInner: {
|
|
381
|
-
...
|
|
379
|
+
...d,
|
|
382
380
|
minHeight: 0,
|
|
383
381
|
overflow: "hidden"
|
|
384
382
|
},
|
|
385
383
|
// Status icons
|
|
386
384
|
statusIconError: {
|
|
387
|
-
...
|
|
385
|
+
...d,
|
|
388
386
|
width: "1rem",
|
|
389
387
|
height: "1rem",
|
|
390
388
|
flexShrink: 0,
|
|
391
|
-
color:
|
|
389
|
+
color: J
|
|
392
390
|
},
|
|
393
391
|
statusIconWarning: {
|
|
394
|
-
...
|
|
392
|
+
...d,
|
|
395
393
|
width: "1rem",
|
|
396
394
|
height: "1rem",
|
|
397
395
|
flexShrink: 0,
|
|
398
|
-
color:
|
|
396
|
+
color: q
|
|
399
397
|
},
|
|
400
398
|
statusIconSuccess: {
|
|
401
|
-
...
|
|
399
|
+
...d,
|
|
402
400
|
width: "1rem",
|
|
403
401
|
height: "1rem",
|
|
404
402
|
flexShrink: 0,
|
|
405
|
-
color:
|
|
403
|
+
color: _
|
|
406
404
|
}
|
|
407
|
-
}),
|
|
408
|
-
const o =
|
|
409
|
-
return
|
|
410
|
-
},
|
|
405
|
+
}), Tt = ({ status: r }) => {
|
|
406
|
+
const o = h();
|
|
407
|
+
return r === "error" ? /* @__PURE__ */ t(z, { className: o.statusIconError }) : r === "warning" ? /* @__PURE__ */ t(z, { className: o.statusIconWarning }) : r === "success" ? /* @__PURE__ */ t(Lt, { className: o.statusIconSuccess }) : null;
|
|
408
|
+
}, M = n.createContext({
|
|
411
409
|
striped: !1,
|
|
412
410
|
showIndex: !1,
|
|
413
411
|
sortable: !1
|
|
414
|
-
}),
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
children: v,
|
|
422
|
-
...w
|
|
423
|
-
}, I) {
|
|
424
|
-
const y = b(), p = Vt(l), S = i.Children.toArray(v).filter(
|
|
425
|
-
i.isValidElement
|
|
426
|
-
), W = S.map(
|
|
427
|
-
(d, D) => d.type === Y ? i.cloneElement(d, { index: D }) : d
|
|
428
|
-
), x = S.filter((d) => d.type === Y), a = x.map((d) => d.props.value).filter((d) => typeof d == "string"), [L, N] = i.useState(null), k = L ? a.indexOf(L) : -1, C = L != null ? x.find((d) => d.props.value === L) : void 0, E = tt(
|
|
429
|
-
F(it, { activationConstraint: { distance: 3 } }),
|
|
430
|
-
F(nt)
|
|
431
|
-
), O = (d) => {
|
|
432
|
-
N(d.active.id);
|
|
433
|
-
}, G = (d) => {
|
|
434
|
-
N(null);
|
|
435
|
-
const { active: D, over: m } = d;
|
|
436
|
-
if (!m || D.id === m.id) return;
|
|
437
|
-
const M = a.indexOf(D.id), j = a.indexOf(m.id);
|
|
438
|
-
M === -1 || j === -1 || r == null || r(lt(a, M, j));
|
|
439
|
-
}, A = /* @__PURE__ */ t(
|
|
412
|
+
}), j = () => n.useContext(M), Dt = (r) => r === void 0 ? void 0 : r === "relaxed" ? "normal" : r, Wt = n.forwardRef(function({ className: o, density: i, children: e, ...l }, a) {
|
|
413
|
+
const s = h(), m = Dt(i), b = n.Children.toArray(e).filter(n.isValidElement).map(
|
|
414
|
+
(x, y) => x.type === Bt ? n.cloneElement(x, {
|
|
415
|
+
index: y
|
|
416
|
+
}) : x
|
|
417
|
+
);
|
|
418
|
+
return /* @__PURE__ */ t(
|
|
440
419
|
"ol",
|
|
441
420
|
{
|
|
442
|
-
ref:
|
|
421
|
+
ref: a,
|
|
443
422
|
"data-slot": "list",
|
|
444
|
-
[
|
|
445
|
-
...
|
|
446
|
-
className:
|
|
447
|
-
...
|
|
448
|
-
children:
|
|
423
|
+
[u]: "list",
|
|
424
|
+
...m !== void 0 ? { "data-density": m } : {},
|
|
425
|
+
className: g(s.list, o),
|
|
426
|
+
...l,
|
|
427
|
+
children: b
|
|
449
428
|
}
|
|
450
429
|
);
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
collisionDetection: ot,
|
|
456
|
-
onDragStart: O,
|
|
457
|
-
onDragEnd: G,
|
|
458
|
-
onDragCancel: () => N(null),
|
|
459
|
-
children: [
|
|
460
|
-
/* @__PURE__ */ t(
|
|
461
|
-
st,
|
|
462
|
-
{
|
|
463
|
-
items: a,
|
|
464
|
-
strategy: at,
|
|
465
|
-
children: A
|
|
466
|
-
}
|
|
467
|
-
),
|
|
468
|
-
/* @__PURE__ */ t(rt, { children: C ? /* @__PURE__ */ t(
|
|
469
|
-
H,
|
|
470
|
-
{
|
|
471
|
-
value: C.props.value,
|
|
472
|
-
status: C.props.status,
|
|
473
|
-
index: k,
|
|
474
|
-
className: y.dragOverlayItem,
|
|
475
|
-
...p !== void 0 ? { "data-density": p } : {},
|
|
476
|
-
children: C.props.children
|
|
477
|
-
}
|
|
478
|
-
) : null })
|
|
479
|
-
]
|
|
480
|
-
}
|
|
481
|
-
) : A });
|
|
482
|
-
}), Xt = i.forwardRef(function({ className: o, children: l, ...e }, c) {
|
|
483
|
-
const s = b();
|
|
430
|
+
}), Pt = n.forwardRef(function({ striped: o = !1, showIndex: i = !1, ...e }, l) {
|
|
431
|
+
return /* @__PURE__ */ t(M.Provider, { value: { striped: o, showIndex: i, sortable: !1 }, children: /* @__PURE__ */ t(Wt, { ref: l, ...e }) });
|
|
432
|
+
}), Nt = n.forwardRef(function({ className: o, children: i, ...e }, l) {
|
|
433
|
+
const a = h();
|
|
484
434
|
return /* @__PURE__ */ t(
|
|
485
435
|
"span",
|
|
486
436
|
{
|
|
487
|
-
ref:
|
|
437
|
+
ref: l,
|
|
488
438
|
"data-slot": "list-item-actions",
|
|
489
|
-
[
|
|
490
|
-
onPointerDown: (
|
|
491
|
-
className:
|
|
439
|
+
[u]: "list-item-actions",
|
|
440
|
+
onPointerDown: (s) => s.stopPropagation(),
|
|
441
|
+
className: g(a.actions, o),
|
|
492
442
|
...e,
|
|
493
|
-
children:
|
|
443
|
+
children: i
|
|
494
444
|
}
|
|
495
445
|
);
|
|
496
|
-
}),
|
|
497
|
-
const
|
|
446
|
+
}), zt = n.forwardRef(function({ className: o, ...i }, e) {
|
|
447
|
+
const l = h();
|
|
498
448
|
return /* @__PURE__ */ t(
|
|
499
449
|
"span",
|
|
500
450
|
{
|
|
501
451
|
ref: e,
|
|
502
452
|
"data-slot": "list-item-text",
|
|
503
|
-
[
|
|
504
|
-
className:
|
|
505
|
-
...
|
|
453
|
+
[u]: "list-item-text",
|
|
454
|
+
className: g(l.text, o),
|
|
455
|
+
...i
|
|
506
456
|
}
|
|
507
457
|
);
|
|
508
|
-
}),
|
|
509
|
-
const
|
|
458
|
+
}), Mt = n.forwardRef(function({ className: o, ...i }, e) {
|
|
459
|
+
const l = h();
|
|
510
460
|
return /* @__PURE__ */ t(
|
|
511
461
|
"span",
|
|
512
462
|
{
|
|
513
463
|
ref: e,
|
|
514
464
|
"data-slot": "list-item-description",
|
|
515
|
-
[
|
|
516
|
-
className:
|
|
517
|
-
...
|
|
465
|
+
[u]: "list-item-description",
|
|
466
|
+
className: g(l.description, o),
|
|
467
|
+
...i
|
|
518
468
|
}
|
|
519
469
|
);
|
|
520
|
-
}),
|
|
470
|
+
}), At = n.forwardRef(
|
|
521
471
|
function({
|
|
522
472
|
className: o,
|
|
523
|
-
value:
|
|
473
|
+
value: i,
|
|
524
474
|
status: e = "default",
|
|
525
|
-
index:
|
|
526
|
-
children:
|
|
527
|
-
setNodeRef:
|
|
528
|
-
setActivatorNodeRef:
|
|
529
|
-
style:
|
|
530
|
-
isDragging:
|
|
475
|
+
index: l,
|
|
476
|
+
children: a,
|
|
477
|
+
setNodeRef: s,
|
|
478
|
+
setActivatorNodeRef: m,
|
|
479
|
+
style: b,
|
|
480
|
+
isDragging: x,
|
|
531
481
|
dropEdge: y,
|
|
532
|
-
listeners:
|
|
533
|
-
attributes:
|
|
534
|
-
...
|
|
535
|
-
},
|
|
536
|
-
const
|
|
537
|
-
(
|
|
538
|
-
),
|
|
539
|
-
(
|
|
540
|
-
|
|
482
|
+
listeners: f,
|
|
483
|
+
attributes: k,
|
|
484
|
+
...L
|
|
485
|
+
}, w) {
|
|
486
|
+
const c = h(), { striped: F, showIndex: X, sortable: S } = j(), V = S && !x, N = n.Children.toArray(a), A = N.find(
|
|
487
|
+
(v) => n.isValidElement(v) && v.type === Nt
|
|
488
|
+
), $ = N.filter((v) => v !== A), K = n.useCallback(
|
|
489
|
+
(v) => {
|
|
490
|
+
s == null || s(v), typeof w == "function" ? w(v) : w && (w.current = v);
|
|
541
491
|
},
|
|
542
|
-
[
|
|
543
|
-
),
|
|
544
|
-
return /* @__PURE__ */
|
|
492
|
+
[s, w]
|
|
493
|
+
), Z = e === "error" ? c.statusError : e === "warning" ? c.statusWarning : e === "success" ? c.statusSuccess : c.statusDefault, U = V ? e === "error" ? c.interactiveError : e === "warning" ? c.interactiveWarning : e === "success" ? c.interactiveSuccess : c.interactiveDefault : void 0;
|
|
494
|
+
return /* @__PURE__ */ I(
|
|
545
495
|
"li",
|
|
546
496
|
{
|
|
547
|
-
ref:
|
|
548
|
-
style:
|
|
497
|
+
ref: K,
|
|
498
|
+
style: b,
|
|
549
499
|
"data-slot": "list-item",
|
|
550
|
-
[
|
|
500
|
+
[u]: "list-item",
|
|
551
501
|
"data-status": e,
|
|
552
|
-
"data-value":
|
|
553
|
-
onPointerDown:
|
|
554
|
-
className:
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
502
|
+
"data-value": i,
|
|
503
|
+
onPointerDown: S ? f == null ? void 0 : f.onPointerDown : void 0,
|
|
504
|
+
className: g(
|
|
505
|
+
c.item,
|
|
506
|
+
Z,
|
|
507
|
+
F && e === "default" && c.stripedEven,
|
|
508
|
+
U,
|
|
509
|
+
S && c.sortableItem,
|
|
510
|
+
x && c.itemDragging,
|
|
561
511
|
o
|
|
562
512
|
),
|
|
563
|
-
...
|
|
513
|
+
...L,
|
|
564
514
|
children: [
|
|
565
515
|
y && /* @__PURE__ */ t(
|
|
566
516
|
"span",
|
|
567
517
|
{
|
|
568
518
|
"data-slot": "list-drop-indicator",
|
|
569
|
-
[
|
|
519
|
+
[u]: "list-drop-indicator",
|
|
570
520
|
"aria-hidden": "true",
|
|
571
|
-
className:
|
|
572
|
-
|
|
573
|
-
y === "top" ?
|
|
521
|
+
className: g(
|
|
522
|
+
c.dropIndicator,
|
|
523
|
+
y === "top" ? c.dropIndicatorTop : c.dropIndicatorBottom
|
|
574
524
|
)
|
|
575
525
|
}
|
|
576
526
|
),
|
|
577
|
-
|
|
527
|
+
X && /* @__PURE__ */ t(
|
|
578
528
|
"span",
|
|
579
529
|
{
|
|
580
530
|
"data-slot": "list-item-index",
|
|
581
|
-
[
|
|
531
|
+
[u]: "list-item-index",
|
|
582
532
|
"aria-hidden": "true",
|
|
583
|
-
className:
|
|
584
|
-
children: (
|
|
533
|
+
className: c.indexBase,
|
|
534
|
+
children: (l ?? 0) + 1
|
|
585
535
|
}
|
|
586
536
|
),
|
|
587
537
|
/* @__PURE__ */ t(
|
|
588
538
|
"span",
|
|
589
539
|
{
|
|
590
540
|
"data-slot": "list-item-content",
|
|
591
|
-
[
|
|
592
|
-
className:
|
|
593
|
-
children:
|
|
541
|
+
[u]: "list-item-content",
|
|
542
|
+
className: c.content,
|
|
543
|
+
children: $
|
|
594
544
|
}
|
|
595
545
|
),
|
|
596
|
-
/* @__PURE__ */ t(
|
|
597
|
-
|
|
598
|
-
|
|
546
|
+
/* @__PURE__ */ t(Tt, { status: e }),
|
|
547
|
+
A,
|
|
548
|
+
S && /* @__PURE__ */ t(
|
|
599
549
|
"button",
|
|
600
550
|
{
|
|
601
|
-
ref:
|
|
551
|
+
ref: m,
|
|
602
552
|
type: "button",
|
|
603
|
-
"aria-label": `Drag to reorder ${
|
|
604
|
-
className:
|
|
605
|
-
...
|
|
606
|
-
onKeyDown:
|
|
607
|
-
children: /* @__PURE__ */ t(
|
|
553
|
+
"aria-label": `Drag to reorder ${i ?? "item"}`,
|
|
554
|
+
className: c.dragHandle,
|
|
555
|
+
...k,
|
|
556
|
+
onKeyDown: f == null ? void 0 : f.onKeyDown,
|
|
557
|
+
children: /* @__PURE__ */ t(kt, {})
|
|
608
558
|
}
|
|
609
559
|
)
|
|
610
560
|
]
|
|
611
561
|
}
|
|
612
562
|
);
|
|
613
563
|
}
|
|
614
|
-
),
|
|
615
|
-
function(o,
|
|
616
|
-
const e =
|
|
617
|
-
|
|
618
|
-
"List: a sortable `ListItem` is missing a `value`. Give each sortable item a unique `value` so it can be reordered — items without one are excluded from `onReorder`."
|
|
619
|
-
);
|
|
620
|
-
const {
|
|
621
|
-
attributes: c,
|
|
622
|
-
listeners: s,
|
|
623
|
-
setNodeRef: r,
|
|
624
|
-
setActivatorNodeRef: v,
|
|
625
|
-
isDragging: w,
|
|
626
|
-
isOver: I,
|
|
627
|
-
activeIndex: y,
|
|
628
|
-
overIndex: p
|
|
629
|
-
} = ct({
|
|
630
|
-
id: o.value ?? e,
|
|
631
|
-
animateLayoutChanges: () => !1
|
|
632
|
-
}), S = I && !w && y !== -1 ? y < p ? "bottom" : "top" : null;
|
|
633
|
-
return /* @__PURE__ */ t(
|
|
634
|
-
H,
|
|
635
|
-
{
|
|
636
|
-
ref: l,
|
|
637
|
-
...o,
|
|
638
|
-
setNodeRef: r,
|
|
639
|
-
setActivatorNodeRef: v,
|
|
640
|
-
isDragging: w,
|
|
641
|
-
dropEdge: S,
|
|
642
|
-
listeners: s,
|
|
643
|
-
attributes: c
|
|
644
|
-
}
|
|
645
|
-
);
|
|
646
|
-
}
|
|
647
|
-
), Y = i.forwardRef(
|
|
648
|
-
function(o, l) {
|
|
649
|
-
const { sortable: e } = Q();
|
|
650
|
-
return e ? /* @__PURE__ */ t($t, { ref: l, ...o }) : /* @__PURE__ */ t(H, { ref: l, ...o });
|
|
564
|
+
), Bt = n.forwardRef(
|
|
565
|
+
function(o, i) {
|
|
566
|
+
const { SortableItem: e } = j();
|
|
567
|
+
return e ? /* @__PURE__ */ t(e, { ref: i, ...o }) : /* @__PURE__ */ t(At, { ref: i, ...o });
|
|
651
568
|
}
|
|
652
|
-
),
|
|
569
|
+
), W = n.createContext(null), jt = n.forwardRef(
|
|
653
570
|
function({
|
|
654
571
|
open: o,
|
|
655
|
-
defaultOpen:
|
|
572
|
+
defaultOpen: i = !1,
|
|
656
573
|
onOpenChange: e,
|
|
657
|
-
className:
|
|
658
|
-
children:
|
|
659
|
-
...
|
|
660
|
-
},
|
|
661
|
-
const
|
|
662
|
-
o === void 0 && y(
|
|
574
|
+
className: l,
|
|
575
|
+
children: a,
|
|
576
|
+
...s
|
|
577
|
+
}, m) {
|
|
578
|
+
const b = h(), [x, y] = n.useState(i), f = o ?? x, k = n.useId(), L = (w) => {
|
|
579
|
+
o === void 0 && y(w), e == null || e(w);
|
|
663
580
|
};
|
|
664
|
-
return /* @__PURE__ */ t(
|
|
581
|
+
return /* @__PURE__ */ t(W.Provider, { value: { open: f, setOpen: L, contentId: k }, children: /* @__PURE__ */ t(
|
|
665
582
|
"li",
|
|
666
583
|
{
|
|
667
|
-
ref:
|
|
584
|
+
ref: m,
|
|
668
585
|
"data-slot": "list-group",
|
|
669
|
-
[
|
|
670
|
-
"data-state":
|
|
671
|
-
className:
|
|
672
|
-
...
|
|
673
|
-
children:
|
|
586
|
+
[u]: "list-group",
|
|
587
|
+
"data-state": f ? "open" : "closed",
|
|
588
|
+
className: g(b.group, l),
|
|
589
|
+
...s,
|
|
590
|
+
children: a
|
|
674
591
|
}
|
|
675
592
|
) });
|
|
676
593
|
}
|
|
677
|
-
),
|
|
678
|
-
const
|
|
679
|
-
return
|
|
594
|
+
), Ft = n.forwardRef(function({ className: o, children: i, ...e }, l) {
|
|
595
|
+
const a = h(), s = n.useContext(W);
|
|
596
|
+
return s ? /* @__PURE__ */ I(
|
|
680
597
|
"button",
|
|
681
598
|
{
|
|
682
|
-
ref:
|
|
599
|
+
ref: l,
|
|
683
600
|
type: "button",
|
|
684
601
|
"data-slot": "list-group-trigger",
|
|
685
|
-
[
|
|
686
|
-
"aria-expanded":
|
|
687
|
-
"aria-controls":
|
|
688
|
-
onClick: () =>
|
|
689
|
-
className:
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
602
|
+
[u]: "list-group-trigger",
|
|
603
|
+
"aria-expanded": s.open,
|
|
604
|
+
"aria-controls": s.contentId,
|
|
605
|
+
onClick: () => s.setOpen(!s.open),
|
|
606
|
+
className: g(
|
|
607
|
+
a.item,
|
|
608
|
+
a.interactiveDefault,
|
|
609
|
+
a.groupTrigger,
|
|
693
610
|
o
|
|
694
611
|
),
|
|
695
612
|
...e,
|
|
696
613
|
children: [
|
|
697
614
|
/* @__PURE__ */ t(
|
|
698
|
-
|
|
615
|
+
Ct,
|
|
699
616
|
{
|
|
700
|
-
className:
|
|
701
|
-
|
|
702
|
-
|
|
617
|
+
className: g(
|
|
618
|
+
a.groupChevron,
|
|
619
|
+
s.open && a.groupChevronOpen
|
|
703
620
|
)
|
|
704
621
|
}
|
|
705
622
|
),
|
|
706
|
-
/* @__PURE__ */ t("span", { className:
|
|
623
|
+
/* @__PURE__ */ t("span", { className: a.groupTriggerText, children: i })
|
|
707
624
|
]
|
|
708
625
|
}
|
|
709
626
|
) : /* @__PURE__ */ t(
|
|
710
627
|
"li",
|
|
711
628
|
{
|
|
712
|
-
ref:
|
|
629
|
+
ref: l,
|
|
713
630
|
"data-slot": "list-group-label",
|
|
714
|
-
[
|
|
715
|
-
className:
|
|
716
|
-
children:
|
|
631
|
+
[u]: "list-group-label",
|
|
632
|
+
className: g(a.standaloneGroupLabel, o),
|
|
633
|
+
children: i
|
|
717
634
|
}
|
|
718
635
|
);
|
|
719
|
-
}),
|
|
720
|
-
const
|
|
636
|
+
}), Xt = n.forwardRef(function({ className: o, children: i, ...e }, l) {
|
|
637
|
+
const a = h(), s = n.useContext(W), m = /* @__PURE__ */ t(
|
|
721
638
|
"ul",
|
|
722
639
|
{
|
|
723
|
-
ref:
|
|
640
|
+
ref: l,
|
|
724
641
|
"data-slot": "list-group-content",
|
|
725
|
-
[
|
|
726
|
-
className:
|
|
642
|
+
[u]: "list-group-content",
|
|
643
|
+
className: g(a.list, a.groupContentList, o),
|
|
727
644
|
...e,
|
|
728
|
-
children:
|
|
645
|
+
children: i
|
|
729
646
|
}
|
|
730
647
|
);
|
|
731
|
-
return
|
|
648
|
+
return s ? /* @__PURE__ */ t(
|
|
732
649
|
"div",
|
|
733
650
|
{
|
|
734
|
-
id:
|
|
735
|
-
"data-state":
|
|
736
|
-
className:
|
|
737
|
-
|
|
738
|
-
|
|
651
|
+
id: s.contentId,
|
|
652
|
+
"data-state": s.open ? "open" : "closed",
|
|
653
|
+
className: g(
|
|
654
|
+
a.collapseWrapper,
|
|
655
|
+
s.open && a.collapseWrapperOpen
|
|
739
656
|
),
|
|
740
|
-
children: /* @__PURE__ */ t("div", { className:
|
|
657
|
+
children: /* @__PURE__ */ t("div", { className: a.collapseInner, children: m })
|
|
741
658
|
}
|
|
742
|
-
) :
|
|
659
|
+
) : m;
|
|
743
660
|
});
|
|
744
661
|
export {
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
662
|
+
Pt as List,
|
|
663
|
+
jt as ListGroup,
|
|
664
|
+
Xt as ListGroupContent,
|
|
665
|
+
Ft as ListGroupLabel,
|
|
666
|
+
Bt as ListItem,
|
|
667
|
+
Nt as ListItemActions,
|
|
668
|
+
At as ListItemBody,
|
|
669
|
+
Mt as ListItemDescription,
|
|
670
|
+
zt as ListItemText,
|
|
671
|
+
Wt as ListRoot,
|
|
672
|
+
Dt as canonicalDomDensity,
|
|
673
|
+
M as listContext,
|
|
674
|
+
h as useListStyles
|
|
753
675
|
};
|
|
754
676
|
//# sourceMappingURL=list.js.map
|