@epilot/zenith-react 0.2.0-next.3 → 0.2.0-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -1
- package/codemods/README.md +182 -0
- package/codemods/format.ts +86 -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 +26 -0
- package/codemods/migrate/from-volt.ts +26 -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 +677 -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/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 +259 -321
- 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 +205 -186
- package/dist/components/field/field-combobox.js.map +1 -1
- package/dist/components/field/field-select.js +37 -22
- package/dist/components/field/field-select.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 +82 -49
- 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 +2336 -2130
- 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 +39 -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 +302 -10
- package/scripts/migration-diagnostics.mjs +31 -8
- package/scripts/migration-sweep.mjs +10 -10
- package/testing/setup.cjs +87 -0
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_zenith-runtime-family_avatar.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_zenith-runtime-family_button.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_zenith-runtime-family_checkbox.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { servedFamily as r } from "../renderer/served.js";
|
|
2
|
+
import { cspProvider as o } from "@epilot/zenith-runtime/v1";
|
|
3
|
+
const e = r("cspProvider", o), s = e.CSPProvider;
|
|
4
|
+
export {
|
|
5
|
+
s as CSPProvider
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=_zenith-runtime-family_csp-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_zenith-runtime-family_csp-provider.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_zenith-runtime-family_dialog.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { servedFamily as i } from "../renderer/served.js";
|
|
2
|
+
import { directionProvider as o } from "@epilot/zenith-runtime/v1";
|
|
3
|
+
const r = i("directionProvider", o), d = r.DirectionProvider;
|
|
4
|
+
r.useDirection;
|
|
5
|
+
export {
|
|
6
|
+
d as DirectionProvider
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=_zenith-runtime-family_direction-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_zenith-runtime-family_direction-provider.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_zenith-runtime-family_menu.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { servedFamily as r } from "../renderer/served.js";
|
|
2
|
+
import { mergeProps as m } from "@epilot/zenith-runtime/v1";
|
|
3
|
+
const e = r("mergeProps", m);
|
|
4
|
+
e.makeEventPreventable;
|
|
5
|
+
e.mergeClassNames;
|
|
6
|
+
const p = e.mergeProps;
|
|
7
|
+
e.mergePropsN;
|
|
8
|
+
export {
|
|
9
|
+
p as mergeProps
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=_zenith-runtime-family_merge-props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_zenith-runtime-family_merge-props.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_zenith-runtime-family_popover.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { servedFamily as o } from "../renderer/served.js";
|
|
2
|
+
import { radioGroup as r } from "@epilot/zenith-runtime/v1";
|
|
3
|
+
const i = o("radioGroup", r), a = i.RadioGroup;
|
|
4
|
+
export {
|
|
5
|
+
a as RadioGroup
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=_zenith-runtime-family_radio-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_zenith-runtime-family_radio-group.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_zenith-runtime-family_radio.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { servedFamily as r } from "../renderer/served.js";
|
|
2
|
+
import { scrollArea as o } from "@epilot/zenith-runtime/v1";
|
|
3
|
+
const e = r("scrollArea", o), s = e.ScrollArea;
|
|
4
|
+
export {
|
|
5
|
+
s as ScrollArea
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=_zenith-runtime-family_scroll-area.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_zenith-runtime-family_scroll-area.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_zenith-runtime-family_select.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_zenith-runtime-family_separator.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_zenith-runtime-family_switch.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_zenith-runtime-family_tabs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_zenith-runtime-family_toast.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { servedFamily as o } from "../renderer/served.js";
|
|
2
|
+
import { toggleGroup as r } from "@epilot/zenith-runtime/v1";
|
|
3
|
+
const e = o("toggleGroup", r), t = e.ToggleGroup;
|
|
4
|
+
export {
|
|
5
|
+
t as ToggleGroup
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=_zenith-runtime-family_toggle-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_zenith-runtime-family_toggle-group.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_zenith-runtime-family_toggle.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_zenith-runtime-family_tooltip.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_zenith-runtime-family_use-render.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { makeZenithStyles as
|
|
6
|
-
import { boxModel as
|
|
7
|
-
import { spacingElement2 as
|
|
8
|
-
const
|
|
1
|
+
import { jsx as a, jsxs as L, Fragment as O } from "react/jsx-runtime";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { Accordion as h } from "../../_virtual/_zenith-runtime-family_accordion.js";
|
|
4
|
+
import { mergeClasses as v, SLOT_ATTR as m, shorthands as S } from "@epilot/zenith-runtime/v1";
|
|
5
|
+
import { makeZenithStyles as B } from "../../styles/make-styles.js";
|
|
6
|
+
import { boxModel as A, nativeControl as N } from "../../styles/host-reset.js";
|
|
7
|
+
import { spacingElement2 as P, spacingElement1 as F, spacingElement3 as b, leadingSm as k, textSm as E, grayA11 as H, grayA3 as _, fontWeightMedium as j, radiusMd as D, accentA8 as W } from "../../tokens/index.js";
|
|
8
|
+
const R = B({
|
|
9
9
|
header: {
|
|
10
10
|
// Radix renders the header as an `<h3>`, whose UA margin and type would otherwise show.
|
|
11
|
-
...
|
|
11
|
+
...S.margin(0),
|
|
12
12
|
fontSize: "inherit",
|
|
13
13
|
fontWeight: "inherit",
|
|
14
14
|
display: "flex"
|
|
15
15
|
},
|
|
16
16
|
trigger: {
|
|
17
|
-
...
|
|
18
|
-
outlineColor:
|
|
19
|
-
...
|
|
20
|
-
...
|
|
17
|
+
...N,
|
|
18
|
+
outlineColor: W,
|
|
19
|
+
...S.paddingInline(b),
|
|
20
|
+
...S.paddingBlock("1rem"),
|
|
21
21
|
cursor: "pointer",
|
|
22
22
|
display: "flex",
|
|
23
23
|
flexGrow: 1,
|
|
24
24
|
flexShrink: 1,
|
|
25
25
|
flexBasis: "0%",
|
|
26
26
|
alignItems: "flex-start",
|
|
27
|
-
gap:
|
|
28
|
-
borderRadius:
|
|
27
|
+
gap: b,
|
|
28
|
+
borderRadius: D,
|
|
29
29
|
textAlign: "left",
|
|
30
|
-
fontSize:
|
|
31
|
-
lineHeight:
|
|
32
|
-
fontWeight:
|
|
30
|
+
fontSize: E,
|
|
31
|
+
lineHeight: k,
|
|
32
|
+
fontWeight: j,
|
|
33
33
|
transitionProperty: "all",
|
|
34
34
|
transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
35
35
|
transitionDuration: "150ms",
|
|
36
|
-
":hover": { backgroundColor:
|
|
36
|
+
":hover": { backgroundColor: _ },
|
|
37
37
|
":focus-visible": {
|
|
38
38
|
outlineOffset: "2px",
|
|
39
39
|
outlineWidth: "2px",
|
|
@@ -43,7 +43,7 @@ const h = C({
|
|
|
43
43
|
pointerEvents: "none",
|
|
44
44
|
opacity: 0.5
|
|
45
45
|
},
|
|
46
|
-
"&[data-
|
|
46
|
+
"&[data-panel-open] > [data-zenith-slot='accordion-icon']": {
|
|
47
47
|
transform: "rotate(180deg)"
|
|
48
48
|
}
|
|
49
49
|
},
|
|
@@ -54,10 +54,10 @@ const h = C({
|
|
|
54
54
|
justifyContent: "space-between"
|
|
55
55
|
},
|
|
56
56
|
icon: {
|
|
57
|
-
...
|
|
57
|
+
...A,
|
|
58
58
|
width: "1.25rem",
|
|
59
59
|
height: "1.25rem",
|
|
60
|
-
color:
|
|
60
|
+
color: H,
|
|
61
61
|
pointerEvents: "none",
|
|
62
62
|
flexShrink: 0,
|
|
63
63
|
transform: "translateY(0)",
|
|
@@ -66,112 +66,195 @@ const h = C({
|
|
|
66
66
|
transitionDuration: "150ms"
|
|
67
67
|
},
|
|
68
68
|
panel: {
|
|
69
|
-
...
|
|
69
|
+
...A,
|
|
70
70
|
overflow: "hidden",
|
|
71
|
-
fontSize:
|
|
72
|
-
lineHeight:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
},
|
|
89
|
-
animationDuration: "200ms",
|
|
90
|
-
animationTimingFunction: "cubic-bezier(0, 0, 0.2, 1)"
|
|
91
|
-
}
|
|
71
|
+
fontSize: E,
|
|
72
|
+
lineHeight: k,
|
|
73
|
+
height: "var(--accordion-panel-height)",
|
|
74
|
+
transitionProperty: "height",
|
|
75
|
+
transitionDuration: "200ms",
|
|
76
|
+
transitionTimingFunction: "cubic-bezier(0, 0, 0.2, 1)",
|
|
77
|
+
"&[data-starting-style], &[data-ending-style]": { height: 0 },
|
|
78
|
+
// Transitions pause in a background tab, so a close there never ends and Base UI keeps the
|
|
79
|
+
// panel mounted at full height. A closed panel is empty whether or not it has unmounted.
|
|
80
|
+
"&[data-closed]": { height: 0 }
|
|
81
|
+
},
|
|
82
|
+
// Padding sits inside the panel so the measured height includes it and a close reaches 0.
|
|
83
|
+
padding: {
|
|
84
|
+
...A,
|
|
85
|
+
paddingInline: b,
|
|
86
|
+
paddingBlockStart: F,
|
|
87
|
+
paddingBlockEnd: P
|
|
92
88
|
},
|
|
93
89
|
inner: {
|
|
94
|
-
...
|
|
90
|
+
...A,
|
|
95
91
|
paddingInline: "0",
|
|
96
92
|
paddingBlock: "0"
|
|
97
93
|
}
|
|
98
|
-
})
|
|
99
|
-
|
|
100
|
-
|
|
94
|
+
});
|
|
95
|
+
function I(e) {
|
|
96
|
+
const t = s.Children.toArray(e).filter(s.isValidElement);
|
|
97
|
+
return t.length === 1 ? t[0] : void 0;
|
|
98
|
+
}
|
|
99
|
+
function y(e, t) {
|
|
100
|
+
const o = e ? I(t) : void 0;
|
|
101
|
+
return o ? { render: o } : { children: t };
|
|
102
|
+
}
|
|
103
|
+
const z = s.createContext({
|
|
104
|
+
orientation: void 0,
|
|
105
|
+
dir: void 0
|
|
106
|
+
}), G = `[${m}='accordion-trigger']`, T = `[${m}='accordion']`;
|
|
107
|
+
function $(e, { orientation: t = "vertical", dir: o = "ltr" }) {
|
|
108
|
+
const n = e.currentTarget, r = n.closest(T);
|
|
109
|
+
if (!r) return;
|
|
110
|
+
const i = t === "horizontal", c = i ? o === "rtl" ? "ArrowLeft" : "ArrowRight" : "ArrowDown";
|
|
111
|
+
if (!["Home", "End", c, i ? o === "rtl" ? "ArrowRight" : "ArrowLeft" : "ArrowUp"].includes(e.key)) return;
|
|
112
|
+
const l = Array.from(
|
|
113
|
+
r.querySelectorAll(G)
|
|
114
|
+
).filter(
|
|
115
|
+
(p) => p.closest(T) === r && !p.hasAttribute("data-disabled")
|
|
116
|
+
), f = l.indexOf(n);
|
|
117
|
+
if (f === -1) return;
|
|
118
|
+
e.preventDefault();
|
|
119
|
+
const g = l.length - 1, u = e.key === "Home" ? 0 : e.key === "End" ? g : e.key === c ? f === g ? 0 : f + 1 : f === 0 ? g : f - 1;
|
|
120
|
+
l[u].focus();
|
|
121
|
+
}
|
|
122
|
+
const U = s.forwardRef(function({
|
|
123
|
+
asChild: t = !1,
|
|
124
|
+
children: o,
|
|
125
|
+
collapsible: n = !1,
|
|
126
|
+
defaultValue: r = "",
|
|
127
|
+
dir: i,
|
|
128
|
+
onValueChange: c,
|
|
129
|
+
value: d,
|
|
130
|
+
...l
|
|
131
|
+
}, f) {
|
|
132
|
+
const [g, u] = s.useState(r), p = d !== void 0, w = p ? d : g, M = s.useMemo(() => w === "" ? [] : [w], [w]);
|
|
133
|
+
return /* @__PURE__ */ a(
|
|
134
|
+
h.Root,
|
|
101
135
|
{
|
|
102
|
-
ref:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
136
|
+
ref: f,
|
|
137
|
+
multiple: !1,
|
|
138
|
+
value: M,
|
|
139
|
+
onValueChange: (q) => {
|
|
140
|
+
const x = q[0] ?? "";
|
|
141
|
+
x === "" && !n || (p || u(x), c == null || c(x));
|
|
142
|
+
},
|
|
143
|
+
...l,
|
|
144
|
+
...y(t, o)
|
|
107
145
|
}
|
|
108
146
|
);
|
|
109
|
-
}),
|
|
110
|
-
return /* @__PURE__ */
|
|
111
|
-
|
|
147
|
+
}), Z = s.forwardRef(function({ asChild: t = !1, children: o, dir: n, onValueChange: r, ...i }, c) {
|
|
148
|
+
return /* @__PURE__ */ a(
|
|
149
|
+
h.Root,
|
|
112
150
|
{
|
|
113
|
-
ref:
|
|
151
|
+
ref: c,
|
|
152
|
+
multiple: !0,
|
|
153
|
+
onValueChange: r && ((d) => r(d)),
|
|
154
|
+
...i,
|
|
155
|
+
...y(t, o)
|
|
156
|
+
}
|
|
157
|
+
);
|
|
158
|
+
}), tt = s.forwardRef(
|
|
159
|
+
function({ className: t, type: o = "single", ...n }, r) {
|
|
160
|
+
const { orientation: i, dir: c } = n, d = s.useMemo(
|
|
161
|
+
() => ({ orientation: i, dir: c }),
|
|
162
|
+
[i, c]
|
|
163
|
+
), l = {
|
|
164
|
+
ref: r,
|
|
165
|
+
"data-slot": "accordion",
|
|
166
|
+
[m]: "accordion",
|
|
167
|
+
className: t
|
|
168
|
+
};
|
|
169
|
+
return /* @__PURE__ */ a(z.Provider, { value: d, children: o === "multiple" ? /* @__PURE__ */ a(
|
|
170
|
+
Z,
|
|
171
|
+
{
|
|
172
|
+
...l,
|
|
173
|
+
...n
|
|
174
|
+
}
|
|
175
|
+
) : /* @__PURE__ */ a(
|
|
176
|
+
U,
|
|
177
|
+
{
|
|
178
|
+
...l,
|
|
179
|
+
...n
|
|
180
|
+
}
|
|
181
|
+
) });
|
|
182
|
+
}
|
|
183
|
+
), ot = s.forwardRef(function({ asChild: t = !1, children: o, className: n, ...r }, i) {
|
|
184
|
+
return /* @__PURE__ */ a(
|
|
185
|
+
h.Item,
|
|
186
|
+
{
|
|
187
|
+
ref: i,
|
|
114
188
|
"data-slot": "accordion-item",
|
|
115
|
-
[
|
|
189
|
+
[m]: "accordion-item",
|
|
116
190
|
className: n,
|
|
117
|
-
...
|
|
191
|
+
...r,
|
|
192
|
+
...y(t, o)
|
|
118
193
|
}
|
|
119
194
|
);
|
|
120
|
-
}),
|
|
121
|
-
const
|
|
122
|
-
return /* @__PURE__ */
|
|
195
|
+
}), C = s.forwardRef(function({ className: t, ...o }, n) {
|
|
196
|
+
const r = R();
|
|
197
|
+
return /* @__PURE__ */ a(
|
|
123
198
|
"svg",
|
|
124
199
|
{
|
|
125
|
-
ref:
|
|
200
|
+
ref: n,
|
|
126
201
|
"data-slot": "accordion-icon",
|
|
127
|
-
[
|
|
128
|
-
className:
|
|
202
|
+
[m]: "accordion-icon",
|
|
203
|
+
className: v(r.icon, t),
|
|
129
204
|
xmlns: "http://www.w3.org/2000/svg",
|
|
130
205
|
viewBox: "0 -960 960 960",
|
|
131
206
|
fill: "currentColor",
|
|
132
|
-
...
|
|
133
|
-
children: /* @__PURE__ */
|
|
207
|
+
...o,
|
|
208
|
+
children: /* @__PURE__ */ a("path", { d: "M480-361q-8 0-15-2.5t-13-8.5L268-556q-11-11-11-28t11-28q11-11 28-11t28 11l156 156 156-156q11-11 28-11t28 11q11 11 11 28t-11 28L508-372q-6 6-13 8.5t-15 2.5Z" })
|
|
134
209
|
}
|
|
135
210
|
);
|
|
136
|
-
}),
|
|
137
|
-
const
|
|
138
|
-
return /* @__PURE__ */
|
|
139
|
-
|
|
211
|
+
}), nt = s.forwardRef(function({ align: t = "end", asChild: o = !1, children: n, className: r, onKeyDown: i, ...c }, d) {
|
|
212
|
+
const l = R(), f = s.useContext(z), g = o ? I(n) : void 0;
|
|
213
|
+
return /* @__PURE__ */ a(h.Header, { className: l.header, children: /* @__PURE__ */ a(
|
|
214
|
+
h.Trigger,
|
|
140
215
|
{
|
|
141
|
-
ref:
|
|
216
|
+
ref: d,
|
|
142
217
|
"data-slot": "accordion-trigger",
|
|
143
|
-
[
|
|
144
|
-
className:
|
|
145
|
-
|
|
146
|
-
t === "start" ?
|
|
147
|
-
|
|
218
|
+
[m]: "accordion-trigger",
|
|
219
|
+
className: v(
|
|
220
|
+
l.trigger,
|
|
221
|
+
t === "start" ? l.alignStart : l.alignEnd,
|
|
222
|
+
r
|
|
148
223
|
),
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
224
|
+
onKeyDown: (u) => {
|
|
225
|
+
i == null || i(u), u.defaultPrevented || $(u, f);
|
|
226
|
+
},
|
|
227
|
+
...c,
|
|
228
|
+
...g ? { render: g } : {
|
|
229
|
+
children: /* @__PURE__ */ L(O, { children: [
|
|
230
|
+
t === "start" && /* @__PURE__ */ a(C, {}),
|
|
231
|
+
n,
|
|
232
|
+
t === "end" && /* @__PURE__ */ a(C, {})
|
|
233
|
+
] })
|
|
234
|
+
}
|
|
155
235
|
}
|
|
156
236
|
) });
|
|
157
|
-
}),
|
|
158
|
-
const
|
|
159
|
-
return /* @__PURE__ */
|
|
160
|
-
|
|
237
|
+
}), rt = s.forwardRef(function({ asChild: t = !1, children: o, className: n, forceMount: r, ...i }, c) {
|
|
238
|
+
const d = R();
|
|
239
|
+
return /* @__PURE__ */ a(
|
|
240
|
+
h.Panel,
|
|
161
241
|
{
|
|
162
|
-
ref:
|
|
242
|
+
ref: c,
|
|
163
243
|
"data-slot": "accordion-content",
|
|
164
|
-
[
|
|
165
|
-
className:
|
|
166
|
-
|
|
167
|
-
|
|
244
|
+
[m]: "accordion-content",
|
|
245
|
+
className: d.panel,
|
|
246
|
+
keepMounted: r,
|
|
247
|
+
...i,
|
|
248
|
+
...t ? y(!0, o) : {
|
|
249
|
+
children: /* @__PURE__ */ a("div", { className: d.padding, children: /* @__PURE__ */ a("div", { className: v(d.inner, n), children: o }) })
|
|
250
|
+
}
|
|
168
251
|
}
|
|
169
252
|
);
|
|
170
253
|
});
|
|
171
254
|
export {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
255
|
+
tt as Accordion,
|
|
256
|
+
rt as AccordionContent,
|
|
257
|
+
ot as AccordionItem,
|
|
258
|
+
nt as AccordionTrigger
|
|
176
259
|
};
|
|
177
260
|
//# sourceMappingURL=accordion.js.map
|