@epilot/zenith-react 0.2.0-next.3 → 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/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 +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 +28 -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,240 +1,127 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as i, jsxs as P, Fragment as j } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { mergeClasses as
|
|
5
|
-
import { useAppearanceAttributes as
|
|
6
|
-
import { useDensity as
|
|
7
|
-
import { makeZenithStyles as
|
|
8
|
-
import { boxModel as
|
|
9
|
-
import { OVERLAY_Z_INDEX as
|
|
10
|
-
import { leadingSm as
|
|
11
|
-
const
|
|
3
|
+
import { Dialog as f } from "../../_virtual/_zenith-runtime-family_dialog.js";
|
|
4
|
+
import { mergeClasses as p, SLOT_ATTR as u, shorthands as c } from "@epilot/zenith-runtime/v1";
|
|
5
|
+
import { useAppearanceAttributes as M } from "../appearance-boundary/appearance-boundary.js";
|
|
6
|
+
import { useDensity as Z } from "../density-provider/density-provider.js";
|
|
7
|
+
import { makeZenithStyles as V } from "../../styles/make-styles.js";
|
|
8
|
+
import { boxModel as g, nativeControl as L } from "../../styles/host-reset.js";
|
|
9
|
+
import { OVERLAY_Z_INDEX as k } from "../../styles/overlay-layer.js";
|
|
10
|
+
import { leadingSm as q, textSm as G, grayA11 as J, grayA12 as K, fontWeightSemibold as Q, leadingLg as U, textLg as $, accentA8 as E, accentSoft as tt, accentA11 as et, spacingLayout1 as h, spacingElement1 as d, gray2 as rt, spacingElement2 as D, grayA1 as x, radius2xl as ot } from "../../tokens/index.js";
|
|
11
|
+
const A = "cubic-bezier(0.4, 0, 0.2, 1)", N = "cubic-bezier(0.4, 0, 1, 1)", m = V({
|
|
12
12
|
// For the bare native `<button>` a Trigger/Close renders. Not applied under `asChild`, where the
|
|
13
13
|
// child owns its own element and two atom sets would race for the same properties.
|
|
14
14
|
nativeTrigger: {
|
|
15
|
-
...
|
|
15
|
+
...L
|
|
16
16
|
},
|
|
17
17
|
overlay: {
|
|
18
18
|
position: "fixed",
|
|
19
|
-
...
|
|
20
|
-
zIndex:
|
|
19
|
+
...c.inset(0),
|
|
20
|
+
zIndex: k,
|
|
21
21
|
backgroundColor: "rgb(0 0 0 / 50%)",
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
"&[data-state='closed']": {
|
|
31
|
-
animationName: {
|
|
32
|
-
from: { opacity: 1 },
|
|
33
|
-
to: { opacity: 0 }
|
|
34
|
-
},
|
|
35
|
-
animationDuration: "150ms",
|
|
36
|
-
animationTimingFunction: "cubic-bezier(0.4, 0, 1, 1)"
|
|
22
|
+
transitionProperty: "opacity",
|
|
23
|
+
transitionDuration: "150ms",
|
|
24
|
+
transitionTimingFunction: A,
|
|
25
|
+
"&[data-starting-style]": { opacity: 0 },
|
|
26
|
+
"&[data-ending-style]": { opacity: 0, transitionTimingFunction: N },
|
|
27
|
+
"@media (prefers-reduced-motion: reduce)": {
|
|
28
|
+
transitionDuration: "0.01ms"
|
|
37
29
|
}
|
|
38
30
|
},
|
|
39
31
|
content: {
|
|
40
|
-
...
|
|
41
|
-
backgroundColor:
|
|
32
|
+
...g,
|
|
33
|
+
backgroundColor: rt,
|
|
42
34
|
position: "fixed",
|
|
43
|
-
zIndex:
|
|
35
|
+
zIndex: k,
|
|
44
36
|
display: "flex",
|
|
45
37
|
flexDirection: "column",
|
|
46
|
-
...
|
|
47
|
-
...
|
|
38
|
+
...c.gap(h),
|
|
39
|
+
...c.borderRadius(ot),
|
|
48
40
|
// v1 shadow-lg; elevation has no token in this package.
|
|
49
41
|
boxShadow: "0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a",
|
|
50
|
-
//
|
|
42
|
+
// The fade lives here, the slide's distance in each side's slot below.
|
|
43
|
+
transitionProperty: "opacity, transform",
|
|
44
|
+
transitionDuration: "150ms",
|
|
45
|
+
transitionTimingFunction: A,
|
|
46
|
+
"&[data-starting-style]": { opacity: 0 },
|
|
47
|
+
"&[data-ending-style]": { opacity: 0, transitionTimingFunction: N },
|
|
48
|
+
// Collapses the side slots' slide too: they set only where it starts and ends.
|
|
51
49
|
"@media (prefers-reduced-motion: reduce)": {
|
|
52
|
-
|
|
53
|
-
animationIterationCount: "1",
|
|
54
|
-
"&[data-state='open']": {
|
|
55
|
-
animationDuration: "0.01ms"
|
|
56
|
-
},
|
|
57
|
-
"&[data-state='closed']": {
|
|
58
|
-
animationDuration: "0.01ms"
|
|
59
|
-
}
|
|
50
|
+
transitionDuration: "0.01ms"
|
|
60
51
|
}
|
|
61
52
|
},
|
|
62
53
|
contentPadding: {
|
|
63
|
-
...
|
|
54
|
+
...g,
|
|
64
55
|
// Layout tier, unlike Dialog, AlertDialog and Popover: a drawer holds sections, not one group.
|
|
65
|
-
...
|
|
56
|
+
...c.padding(h)
|
|
66
57
|
},
|
|
67
58
|
right: {
|
|
68
|
-
...
|
|
69
|
-
top:
|
|
70
|
-
bottom:
|
|
71
|
-
right:
|
|
59
|
+
...g,
|
|
60
|
+
top: d,
|
|
61
|
+
bottom: d,
|
|
62
|
+
right: d,
|
|
72
63
|
height: "calc(100% - 0.5rem)",
|
|
73
|
-
...
|
|
74
|
-
"&[data-
|
|
75
|
-
|
|
76
|
-
from: {
|
|
77
|
-
opacity: 0,
|
|
78
|
-
transform: "translateX(100%)"
|
|
79
|
-
},
|
|
80
|
-
to: {
|
|
81
|
-
opacity: 1,
|
|
82
|
-
transform: "translateX(0)"
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
animationDuration: "150ms",
|
|
86
|
-
animationTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)"
|
|
87
|
-
},
|
|
88
|
-
"&[data-state='closed']": {
|
|
89
|
-
animationName: {
|
|
90
|
-
from: {
|
|
91
|
-
opacity: 1,
|
|
92
|
-
transform: "translateX(0)"
|
|
93
|
-
},
|
|
94
|
-
to: {
|
|
95
|
-
opacity: 0,
|
|
96
|
-
transform: "translateX(100%)"
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
animationDuration: "150ms",
|
|
100
|
-
animationTimingFunction: "cubic-bezier(0.4, 0, 1, 1)"
|
|
101
|
-
}
|
|
64
|
+
...c.borderLeft("1px", "solid", x),
|
|
65
|
+
"&[data-starting-style]": { transform: "translateX(100%)" },
|
|
66
|
+
"&[data-ending-style]": { transform: "translateX(100%)" }
|
|
102
67
|
},
|
|
103
68
|
left: {
|
|
104
|
-
...
|
|
105
|
-
top:
|
|
106
|
-
bottom:
|
|
107
|
-
left:
|
|
69
|
+
...g,
|
|
70
|
+
top: d,
|
|
71
|
+
bottom: d,
|
|
72
|
+
left: d,
|
|
108
73
|
height: "calc(100% - 0.5rem)",
|
|
109
|
-
...
|
|
110
|
-
"&[data-
|
|
111
|
-
|
|
112
|
-
from: {
|
|
113
|
-
opacity: 0,
|
|
114
|
-
transform: "translateX(-100%)"
|
|
115
|
-
},
|
|
116
|
-
to: {
|
|
117
|
-
opacity: 1,
|
|
118
|
-
transform: "translateX(0)"
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
animationDuration: "150ms",
|
|
122
|
-
animationTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)"
|
|
123
|
-
},
|
|
124
|
-
"&[data-state='closed']": {
|
|
125
|
-
animationName: {
|
|
126
|
-
from: {
|
|
127
|
-
opacity: 1,
|
|
128
|
-
transform: "translateX(0)"
|
|
129
|
-
},
|
|
130
|
-
to: {
|
|
131
|
-
opacity: 0,
|
|
132
|
-
transform: "translateX(-100%)"
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
animationDuration: "150ms",
|
|
136
|
-
animationTimingFunction: "cubic-bezier(0.4, 0, 1, 1)"
|
|
137
|
-
}
|
|
74
|
+
...c.borderRight("1px", "solid", x),
|
|
75
|
+
"&[data-starting-style]": { transform: "translateX(-100%)" },
|
|
76
|
+
"&[data-ending-style]": { transform: "translateX(-100%)" }
|
|
138
77
|
},
|
|
139
78
|
top: {
|
|
140
|
-
...
|
|
141
|
-
left:
|
|
142
|
-
right:
|
|
143
|
-
top:
|
|
79
|
+
...g,
|
|
80
|
+
left: d,
|
|
81
|
+
right: d,
|
|
82
|
+
top: d,
|
|
144
83
|
width: "calc(100% - 0.5rem)",
|
|
145
|
-
...
|
|
146
|
-
"&[data-
|
|
147
|
-
|
|
148
|
-
from: {
|
|
149
|
-
opacity: 0,
|
|
150
|
-
transform: "translateY(-100%)"
|
|
151
|
-
},
|
|
152
|
-
to: {
|
|
153
|
-
opacity: 1,
|
|
154
|
-
transform: "translateY(0)"
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
animationDuration: "150ms",
|
|
158
|
-
animationTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)"
|
|
159
|
-
},
|
|
160
|
-
"&[data-state='closed']": {
|
|
161
|
-
animationName: {
|
|
162
|
-
from: {
|
|
163
|
-
opacity: 1,
|
|
164
|
-
transform: "translateY(0)"
|
|
165
|
-
},
|
|
166
|
-
to: {
|
|
167
|
-
opacity: 0,
|
|
168
|
-
transform: "translateY(-100%)"
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
animationDuration: "150ms",
|
|
172
|
-
animationTimingFunction: "cubic-bezier(0.4, 0, 1, 1)"
|
|
173
|
-
}
|
|
84
|
+
...c.borderBottom("1px", "solid", x),
|
|
85
|
+
"&[data-starting-style]": { transform: "translateY(-100%)" },
|
|
86
|
+
"&[data-ending-style]": { transform: "translateY(-100%)" }
|
|
174
87
|
},
|
|
175
88
|
bottom: {
|
|
176
|
-
...
|
|
177
|
-
left:
|
|
178
|
-
right:
|
|
179
|
-
bottom:
|
|
89
|
+
...g,
|
|
90
|
+
left: d,
|
|
91
|
+
right: d,
|
|
92
|
+
bottom: d,
|
|
180
93
|
width: "calc(100% - 0.5rem)",
|
|
181
|
-
...
|
|
182
|
-
"&[data-
|
|
183
|
-
|
|
184
|
-
from: {
|
|
185
|
-
opacity: 0,
|
|
186
|
-
transform: "translateY(100%)"
|
|
187
|
-
},
|
|
188
|
-
to: {
|
|
189
|
-
opacity: 1,
|
|
190
|
-
transform: "translateY(0)"
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
animationDuration: "150ms",
|
|
194
|
-
animationTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)"
|
|
195
|
-
},
|
|
196
|
-
"&[data-state='closed']": {
|
|
197
|
-
animationName: {
|
|
198
|
-
from: {
|
|
199
|
-
opacity: 1,
|
|
200
|
-
transform: "translateY(0)"
|
|
201
|
-
},
|
|
202
|
-
to: {
|
|
203
|
-
opacity: 0,
|
|
204
|
-
transform: "translateY(100%)"
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
animationDuration: "150ms",
|
|
208
|
-
animationTimingFunction: "cubic-bezier(0.4, 0, 1, 1)"
|
|
209
|
-
}
|
|
94
|
+
...c.borderTop("1px", "solid", x),
|
|
95
|
+
"&[data-starting-style]": { transform: "translateY(100%)" },
|
|
96
|
+
"&[data-ending-style]": { transform: "translateY(100%)" }
|
|
210
97
|
},
|
|
211
98
|
close: {
|
|
212
99
|
":focus-visible": {
|
|
213
100
|
outlineWidth: "2px",
|
|
214
101
|
outlineStyle: "solid",
|
|
215
102
|
outlineOffset: "2px",
|
|
216
|
-
outlineColor:
|
|
103
|
+
outlineColor: E
|
|
217
104
|
}
|
|
218
105
|
},
|
|
219
106
|
closeButton: {
|
|
220
|
-
...
|
|
107
|
+
...L,
|
|
221
108
|
position: "absolute",
|
|
222
109
|
// Inset by the content padding so it lines up with the padded header.
|
|
223
|
-
top:
|
|
224
|
-
right:
|
|
225
|
-
...
|
|
110
|
+
top: h,
|
|
111
|
+
right: h,
|
|
112
|
+
...c.padding(D),
|
|
226
113
|
// v1 rounded-full; no full-radius token exists in this package.
|
|
227
114
|
borderRadius: "9999px",
|
|
228
115
|
cursor: "pointer",
|
|
229
|
-
color:
|
|
116
|
+
color: et,
|
|
230
117
|
":hover": {
|
|
231
|
-
backgroundColor:
|
|
118
|
+
backgroundColor: tt
|
|
232
119
|
},
|
|
233
120
|
":focus-visible": {
|
|
234
121
|
outlineWidth: "2px",
|
|
235
122
|
outlineStyle: "solid",
|
|
236
123
|
outlineOffset: "2px",
|
|
237
|
-
outlineColor:
|
|
124
|
+
outlineColor: E
|
|
238
125
|
},
|
|
239
126
|
":disabled": {
|
|
240
127
|
pointerEvents: "none"
|
|
@@ -251,31 +138,31 @@ const d = I({
|
|
|
251
138
|
display: "flex",
|
|
252
139
|
flexShrink: 0,
|
|
253
140
|
flexDirection: "column",
|
|
254
|
-
...
|
|
141
|
+
...c.gap(D),
|
|
255
142
|
textAlign: "left"
|
|
256
143
|
},
|
|
257
144
|
footer: {
|
|
258
145
|
marginTop: "auto",
|
|
259
146
|
display: "flex",
|
|
260
147
|
flexShrink: 0,
|
|
261
|
-
...
|
|
148
|
+
...c.gap(D),
|
|
262
149
|
justifyContent: "flex-end"
|
|
263
150
|
},
|
|
264
151
|
title: {
|
|
265
|
-
...
|
|
266
|
-
fontSize:
|
|
267
|
-
lineHeight:
|
|
268
|
-
fontWeight:
|
|
269
|
-
color:
|
|
152
|
+
...c.margin(0),
|
|
153
|
+
fontSize: $,
|
|
154
|
+
lineHeight: U,
|
|
155
|
+
fontWeight: Q,
|
|
156
|
+
color: K
|
|
270
157
|
},
|
|
271
158
|
description: {
|
|
272
|
-
...
|
|
273
|
-
color:
|
|
274
|
-
fontSize:
|
|
275
|
-
lineHeight:
|
|
159
|
+
...c.margin(0),
|
|
160
|
+
color: J,
|
|
161
|
+
fontSize: G,
|
|
162
|
+
lineHeight: q
|
|
276
163
|
},
|
|
277
164
|
srOnly: {
|
|
278
|
-
...
|
|
165
|
+
...g,
|
|
279
166
|
position: "absolute",
|
|
280
167
|
width: "1px",
|
|
281
168
|
height: "1px",
|
|
@@ -285,19 +172,19 @@ const d = I({
|
|
|
285
172
|
clip: "rect(0, 0, 0, 0)",
|
|
286
173
|
whiteSpace: "nowrap"
|
|
287
174
|
}
|
|
288
|
-
}),
|
|
289
|
-
function(t,
|
|
290
|
-
return /* @__PURE__ */
|
|
175
|
+
}), nt = s.forwardRef(
|
|
176
|
+
function(t, e) {
|
|
177
|
+
return /* @__PURE__ */ i(
|
|
291
178
|
"svg",
|
|
292
179
|
{
|
|
293
|
-
ref:
|
|
180
|
+
ref: e,
|
|
294
181
|
width: "12",
|
|
295
182
|
height: "12",
|
|
296
183
|
viewBox: "0 0 9 9",
|
|
297
184
|
fill: "none",
|
|
298
185
|
xmlns: "http://www.w3.org/2000/svg",
|
|
299
186
|
...t,
|
|
300
|
-
children: /* @__PURE__ */
|
|
187
|
+
children: /* @__PURE__ */ i(
|
|
301
188
|
"path",
|
|
302
189
|
{
|
|
303
190
|
d: "M4.38333 5.31667L1.11667 8.58333C0.994445 8.70556 0.838889 8.76667 0.65 8.76667C0.461111 8.76667 0.305556 8.70556 0.183333 8.58333C0.0611111 8.46111 0 8.30556 0 8.11667C0 7.92778 0.0611111 7.77222 0.183333 7.65L3.45 4.38333L0.183333 1.11667C0.0611111 0.994445 0 0.838889 0 0.65C0 0.461111 0.0611111 0.305556 0.183333 0.183333C0.305556 0.0611111 0.461111 0 0.65 0C0.838889 0 0.994445 0.0611111 1.11667 0.183333L4.38333 3.45L7.65 0.183333C7.77222 0.0611111 7.92778 0 8.11667 0C8.30556 0 8.46111 0.0611111 8.58333 0.183333C8.70556 0.305556 8.76667 0.461111 8.76667 0.65C8.76667 0.838889 8.70556 0.994445 8.58333 1.11667L5.31667 4.38333L8.58333 7.65C8.70556 7.77222 8.76667 7.92778 8.76667 8.11667C8.76667 8.30556 8.70556 8.46111 8.58333 8.58333C8.46111 8.70556 8.30556 8.76667 8.11667 8.76667C7.92778 8.76667 7.77222 8.70556 7.65 8.58333L4.38333 5.31667Z",
|
|
@@ -307,172 +194,223 @@ const d = I({
|
|
|
307
194
|
}
|
|
308
195
|
);
|
|
309
196
|
}
|
|
310
|
-
)
|
|
311
|
-
|
|
312
|
-
|
|
197
|
+
);
|
|
198
|
+
function X(n) {
|
|
199
|
+
const t = s.Children.toArray(n).filter(s.isValidElement);
|
|
200
|
+
return t.length === 1 ? t[0] : void 0;
|
|
201
|
+
}
|
|
202
|
+
function y(n, t) {
|
|
203
|
+
const e = n ? X(t) : void 0;
|
|
204
|
+
return e ? { render: e } : { children: t };
|
|
205
|
+
}
|
|
206
|
+
function F(n) {
|
|
207
|
+
if (n)
|
|
208
|
+
return () => {
|
|
209
|
+
const t = new Event("focus", { cancelable: !0 }), e = document.activeElement;
|
|
210
|
+
n(t);
|
|
211
|
+
const r = document.activeElement;
|
|
212
|
+
return r !== e && r instanceof HTMLElement && queueMicrotask(() => r.focus()), !t.defaultPrevented;
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
const mt = s.forwardRef(
|
|
216
|
+
function({ onOpenChange: t, ...e }, r) {
|
|
217
|
+
return /* @__PURE__ */ i(
|
|
218
|
+
f.Root,
|
|
219
|
+
{
|
|
220
|
+
"data-slot": "drawer",
|
|
221
|
+
onOpenChange: (o, a) => {
|
|
222
|
+
if (a.reason === "escape-key" && a.event.defaultPrevented) {
|
|
223
|
+
a.cancel();
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
t == null || t(o, a);
|
|
227
|
+
},
|
|
228
|
+
...e
|
|
229
|
+
}
|
|
230
|
+
);
|
|
313
231
|
}
|
|
314
|
-
),
|
|
315
|
-
const
|
|
316
|
-
return /* @__PURE__ */
|
|
317
|
-
|
|
232
|
+
), gt = s.forwardRef(function({ asChild: t = !1, children: e, className: r, ...o }, a) {
|
|
233
|
+
const l = m();
|
|
234
|
+
return /* @__PURE__ */ i(
|
|
235
|
+
f.Trigger,
|
|
318
236
|
{
|
|
319
|
-
ref:
|
|
237
|
+
ref: a,
|
|
320
238
|
"data-slot": "drawer-trigger",
|
|
321
|
-
[
|
|
322
|
-
className:
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
),
|
|
326
|
-
...a
|
|
239
|
+
[u]: "drawer-trigger",
|
|
240
|
+
className: p(!t && l.nativeTrigger, r),
|
|
241
|
+
...o,
|
|
242
|
+
...y(t, e)
|
|
327
243
|
}
|
|
328
244
|
);
|
|
329
|
-
}),
|
|
330
|
-
function(t,
|
|
331
|
-
return /* @__PURE__ */
|
|
332
|
-
|
|
245
|
+
}), z = s.createContext(!1), wt = s.forwardRef(
|
|
246
|
+
function({ container: t, forceMount: e, ...r }, o) {
|
|
247
|
+
return /* @__PURE__ */ i(z.Provider, { value: !0, children: /* @__PURE__ */ i(
|
|
248
|
+
f.Portal,
|
|
333
249
|
{
|
|
250
|
+
ref: o,
|
|
334
251
|
"data-slot": "drawer-portal",
|
|
335
|
-
[
|
|
336
|
-
|
|
252
|
+
[u]: "drawer-portal",
|
|
253
|
+
container: t ?? void 0,
|
|
254
|
+
keepMounted: e,
|
|
255
|
+
...r
|
|
337
256
|
}
|
|
338
|
-
);
|
|
257
|
+
) });
|
|
339
258
|
}
|
|
340
|
-
),
|
|
341
|
-
const
|
|
342
|
-
return /* @__PURE__ */
|
|
343
|
-
|
|
259
|
+
), yt = s.forwardRef(function({ asChild: t = !1, children: e, className: r, forceMount: o, ...a }, l) {
|
|
260
|
+
const v = m(), C = M();
|
|
261
|
+
return /* @__PURE__ */ i(
|
|
262
|
+
f.Backdrop,
|
|
344
263
|
{
|
|
345
|
-
ref:
|
|
264
|
+
ref: l,
|
|
265
|
+
forceRender: !0,
|
|
346
266
|
"data-slot": "drawer-overlay",
|
|
347
|
-
[
|
|
348
|
-
...
|
|
349
|
-
className:
|
|
350
|
-
...a
|
|
267
|
+
[u]: "drawer-overlay",
|
|
268
|
+
...C,
|
|
269
|
+
className: p(v.overlay, r),
|
|
270
|
+
...a,
|
|
271
|
+
...y(t, e)
|
|
351
272
|
}
|
|
352
273
|
);
|
|
353
|
-
}),
|
|
354
|
-
|
|
355
|
-
|
|
274
|
+
}), ht = s.forwardRef(function({
|
|
275
|
+
asChild: t = !1,
|
|
276
|
+
className: e,
|
|
277
|
+
children: r,
|
|
356
278
|
showCloseButton: o = !0,
|
|
357
|
-
closeButtonLabel:
|
|
358
|
-
side:
|
|
359
|
-
flush:
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
279
|
+
closeButtonLabel: a = "Close",
|
|
280
|
+
side: l = "right",
|
|
281
|
+
flush: v = !1,
|
|
282
|
+
forceMount: C,
|
|
283
|
+
onOpenAutoFocus: B,
|
|
284
|
+
onCloseAutoFocus: I,
|
|
285
|
+
...O
|
|
286
|
+
}, H) {
|
|
287
|
+
const w = m(), Y = s.useContext(z), R = Z(), _ = M(), T = o && /* @__PURE__ */ P(
|
|
288
|
+
f.Close,
|
|
365
289
|
{
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
...h !== void 0 ? { "data-density": h } : {},
|
|
370
|
-
...z,
|
|
371
|
-
"data-side": f,
|
|
372
|
-
className: m(
|
|
373
|
-
u.content,
|
|
374
|
-
u[f],
|
|
375
|
-
!N && u.contentPadding,
|
|
376
|
-
t
|
|
377
|
-
),
|
|
378
|
-
...R,
|
|
290
|
+
"data-slot": "drawer-close",
|
|
291
|
+
[u]: "drawer-close",
|
|
292
|
+
className: w.closeButton,
|
|
379
293
|
children: [
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
v,
|
|
383
|
-
{
|
|
384
|
-
"data-slot": "drawer-close",
|
|
385
|
-
[l]: "drawer-close",
|
|
386
|
-
className: u.closeButton,
|
|
387
|
-
children: [
|
|
388
|
-
/* @__PURE__ */ n(J, {}),
|
|
389
|
-
/* @__PURE__ */ n("span", { className: u.srOnly, children: r })
|
|
390
|
-
]
|
|
391
|
-
}
|
|
392
|
-
)
|
|
294
|
+
/* @__PURE__ */ i(nt, {}),
|
|
295
|
+
/* @__PURE__ */ i("span", { className: w.srOnly, children: a })
|
|
393
296
|
]
|
|
394
297
|
}
|
|
298
|
+
), b = t ? X(r) : void 0, W = b ? {
|
|
299
|
+
render: s.cloneElement(
|
|
300
|
+
b,
|
|
301
|
+
void 0,
|
|
302
|
+
b.props.children,
|
|
303
|
+
T
|
|
304
|
+
)
|
|
305
|
+
} : {
|
|
306
|
+
children: /* @__PURE__ */ P(j, { children: [
|
|
307
|
+
r,
|
|
308
|
+
T
|
|
309
|
+
] })
|
|
310
|
+
}, S = /* @__PURE__ */ i(
|
|
311
|
+
f.Popup,
|
|
312
|
+
{
|
|
313
|
+
ref: H,
|
|
314
|
+
"data-slot": "drawer-content",
|
|
315
|
+
[u]: "drawer-content",
|
|
316
|
+
...R !== void 0 ? { "data-density": R } : {},
|
|
317
|
+
..._,
|
|
318
|
+
"data-side": l,
|
|
319
|
+
initialFocus: F(B),
|
|
320
|
+
finalFocus: F(I),
|
|
321
|
+
className: p(
|
|
322
|
+
w.content,
|
|
323
|
+
w[l],
|
|
324
|
+
!v && w.contentPadding,
|
|
325
|
+
e
|
|
326
|
+
),
|
|
327
|
+
...O,
|
|
328
|
+
...W
|
|
329
|
+
}
|
|
395
330
|
);
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
331
|
+
return Y ? S : /* @__PURE__ */ i(f.Portal, { keepMounted: C, children: S });
|
|
332
|
+
}), xt = s.forwardRef(function({ asChild: t = !1, className: e, children: r, ...o }, a) {
|
|
333
|
+
const l = m();
|
|
334
|
+
return /* @__PURE__ */ i(
|
|
335
|
+
f.Close,
|
|
400
336
|
{
|
|
401
|
-
ref:
|
|
337
|
+
ref: a,
|
|
402
338
|
"data-slot": "drawer-close",
|
|
403
|
-
[
|
|
404
|
-
className:
|
|
405
|
-
!
|
|
406
|
-
|
|
407
|
-
|
|
339
|
+
[u]: "drawer-close",
|
|
340
|
+
className: p(
|
|
341
|
+
!t && l.nativeTrigger,
|
|
342
|
+
l.close,
|
|
343
|
+
e
|
|
408
344
|
),
|
|
409
345
|
...o,
|
|
410
|
-
|
|
346
|
+
...y(t, r)
|
|
411
347
|
}
|
|
412
348
|
);
|
|
413
|
-
}),
|
|
414
|
-
function({ className: t, ...
|
|
415
|
-
const
|
|
416
|
-
return /* @__PURE__ */
|
|
349
|
+
}), vt = s.forwardRef(
|
|
350
|
+
function({ className: t, ...e }, r) {
|
|
351
|
+
const o = m();
|
|
352
|
+
return /* @__PURE__ */ i(
|
|
417
353
|
"div",
|
|
418
354
|
{
|
|
419
|
-
ref:
|
|
355
|
+
ref: r,
|
|
420
356
|
"data-slot": "drawer-header",
|
|
421
|
-
[
|
|
422
|
-
className:
|
|
423
|
-
...
|
|
357
|
+
[u]: "drawer-header",
|
|
358
|
+
className: p(o.header, t),
|
|
359
|
+
...e
|
|
424
360
|
}
|
|
425
361
|
);
|
|
426
362
|
}
|
|
427
|
-
),
|
|
428
|
-
function({ className: t, ...
|
|
429
|
-
const
|
|
430
|
-
return /* @__PURE__ */
|
|
363
|
+
), Ct = s.forwardRef(
|
|
364
|
+
function({ className: t, ...e }, r) {
|
|
365
|
+
const o = m();
|
|
366
|
+
return /* @__PURE__ */ i(
|
|
431
367
|
"div",
|
|
432
368
|
{
|
|
433
|
-
ref:
|
|
369
|
+
ref: r,
|
|
434
370
|
"data-slot": "drawer-footer",
|
|
435
|
-
[
|
|
436
|
-
className:
|
|
437
|
-
...
|
|
371
|
+
[u]: "drawer-footer",
|
|
372
|
+
className: p(o.footer, t),
|
|
373
|
+
...e
|
|
438
374
|
}
|
|
439
375
|
);
|
|
440
376
|
}
|
|
441
|
-
),
|
|
442
|
-
const
|
|
443
|
-
return /* @__PURE__ */
|
|
444
|
-
|
|
377
|
+
), bt = s.forwardRef(function({ asChild: t = !1, children: e, className: r, ...o }, a) {
|
|
378
|
+
const l = m();
|
|
379
|
+
return /* @__PURE__ */ i(
|
|
380
|
+
f.Title,
|
|
445
381
|
{
|
|
446
|
-
ref:
|
|
382
|
+
ref: a,
|
|
447
383
|
"data-slot": "drawer-title",
|
|
448
|
-
[
|
|
449
|
-
className:
|
|
450
|
-
...
|
|
384
|
+
[u]: "drawer-title",
|
|
385
|
+
className: p(l.title, r),
|
|
386
|
+
...o,
|
|
387
|
+
...y(t, e)
|
|
451
388
|
}
|
|
452
389
|
);
|
|
453
|
-
}),
|
|
454
|
-
const
|
|
455
|
-
return /* @__PURE__ */
|
|
456
|
-
|
|
390
|
+
}), Dt = s.forwardRef(function({ asChild: t = !1, children: e, className: r, ...o }, a) {
|
|
391
|
+
const l = m();
|
|
392
|
+
return /* @__PURE__ */ i(
|
|
393
|
+
f.Description,
|
|
457
394
|
{
|
|
458
|
-
ref:
|
|
395
|
+
ref: a,
|
|
459
396
|
"data-slot": "drawer-description",
|
|
460
|
-
[
|
|
461
|
-
className:
|
|
462
|
-
...
|
|
397
|
+
[u]: "drawer-description",
|
|
398
|
+
className: p(l.description, r),
|
|
399
|
+
...o,
|
|
400
|
+
...y(t, e)
|
|
463
401
|
}
|
|
464
402
|
);
|
|
465
403
|
});
|
|
466
404
|
export {
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
405
|
+
mt as Drawer,
|
|
406
|
+
xt as DrawerClose,
|
|
407
|
+
ht as DrawerContent,
|
|
408
|
+
Dt as DrawerDescription,
|
|
409
|
+
Ct as DrawerFooter,
|
|
410
|
+
vt as DrawerHeader,
|
|
411
|
+
yt as DrawerOverlay,
|
|
412
|
+
wt as DrawerPortal,
|
|
413
|
+
bt as DrawerTitle,
|
|
414
|
+
gt as DrawerTrigger
|
|
477
415
|
};
|
|
478
416
|
//# sourceMappingURL=drawer.js.map
|