@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
|
@@ -1,145 +1,104 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
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
|
|
1
|
+
import { jsx as r, jsxs as T, Fragment as _ } from "react/jsx-runtime";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
import { Dialog as d } from "../../_virtual/_zenith-runtime-family_dialog.js";
|
|
4
|
+
import { mergeClasses as f, SLOT_ATTR as g, shorthands as c } from "@epilot/zenith-runtime/v1";
|
|
5
|
+
import { useAppearanceAttributes as E } from "../appearance-boundary/appearance-boundary.js";
|
|
6
|
+
import { useDensity as j } from "../density-provider/density-provider.js";
|
|
7
|
+
import { makeZenithStyles as Z } from "../../styles/make-styles.js";
|
|
8
|
+
import { boxModel as v, nativeControl as z } from "../../styles/host-reset.js";
|
|
9
|
+
import { OVERLAY_Z_INDEX as P } from "../../styles/overlay-layer.js";
|
|
10
|
+
import { leadingSm as V, textSm as q, grayA11 as G, grayA12 as Y, fontWeightSemibold as $, leadingLg as J, textLg as K, focusRing as S, accentSoft as Q, accentA11 as U, spacingGroup2 as C, container5xl as tt, container4xl as ot, container3xl as et, container2xl as it, containerXl as nt, containerLg as at, containerMd as rt, containerSm as lt, body as st, spacingElement2 as D, grayA1 as ct, radiusXl as dt, spacingLayout1 as gt } from "../../tokens/index.js";
|
|
11
|
+
const L = "cubic-bezier(0.4, 0, 0.2, 1)", W = "cubic-bezier(0.4, 0, 1, 1)", u = Z({
|
|
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
|
+
...z
|
|
16
16
|
},
|
|
17
17
|
overlay: {
|
|
18
18
|
position: "fixed",
|
|
19
|
-
...
|
|
20
|
-
zIndex:
|
|
19
|
+
...c.inset(0),
|
|
20
|
+
zIndex: P,
|
|
21
21
|
backgroundColor: "rgb(0 0 0 / 50%)",
|
|
22
|
+
transitionProperty: "opacity",
|
|
23
|
+
transitionDuration: "150ms",
|
|
24
|
+
transitionTimingFunction: L,
|
|
25
|
+
"&[data-starting-style]": { opacity: 0 },
|
|
26
|
+
"&[data-ending-style]": { opacity: 0, transitionTimingFunction: W },
|
|
22
27
|
"@media (prefers-reduced-motion: reduce)": {
|
|
23
|
-
|
|
24
|
-
animationIterationCount: "1",
|
|
25
|
-
"&[data-state='open']": {
|
|
26
|
-
animationDuration: "0.01ms"
|
|
27
|
-
},
|
|
28
|
-
"&[data-state='closed']": {
|
|
29
|
-
animationDuration: "0.01ms"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"&[data-state='open']": {
|
|
33
|
-
animationName: {
|
|
34
|
-
from: { opacity: 0 },
|
|
35
|
-
to: { opacity: 1 }
|
|
36
|
-
},
|
|
37
|
-
animationDuration: "150ms",
|
|
38
|
-
animationTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)"
|
|
39
|
-
},
|
|
40
|
-
"&[data-state='closed']": {
|
|
41
|
-
animationName: {
|
|
42
|
-
from: { opacity: 1 },
|
|
43
|
-
to: { opacity: 0 }
|
|
44
|
-
},
|
|
45
|
-
animationDuration: "150ms",
|
|
46
|
-
animationTimingFunction: "cubic-bezier(0.4, 0, 1, 1)"
|
|
28
|
+
transitionDuration: "0.01ms"
|
|
47
29
|
}
|
|
48
30
|
},
|
|
49
31
|
content: {
|
|
50
|
-
...
|
|
51
|
-
backgroundColor:
|
|
32
|
+
...v,
|
|
33
|
+
backgroundColor: st,
|
|
52
34
|
position: "fixed",
|
|
53
35
|
top: "50%",
|
|
54
36
|
left: "50%",
|
|
55
|
-
zIndex:
|
|
37
|
+
zIndex: P,
|
|
56
38
|
display: "grid",
|
|
57
39
|
width: "100%",
|
|
58
40
|
maxWidth: "calc(100% - 2rem)",
|
|
59
41
|
transform: "translate(-50%, -50%)",
|
|
60
|
-
...
|
|
61
|
-
...
|
|
62
|
-
...
|
|
42
|
+
...c.gap(gt),
|
|
43
|
+
...c.borderRadius(dt),
|
|
44
|
+
...c.border("1px", "solid", ct),
|
|
63
45
|
// v1 shadow-lg; elevation has no token in this package.
|
|
64
46
|
boxShadow: "0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a",
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"&[data-state='closed']": {
|
|
72
|
-
animationDuration: "0.01ms"
|
|
73
|
-
}
|
|
47
|
+
transitionProperty: "opacity, transform",
|
|
48
|
+
transitionDuration: "150ms",
|
|
49
|
+
transitionTimingFunction: L,
|
|
50
|
+
"&[data-starting-style]": {
|
|
51
|
+
opacity: 0,
|
|
52
|
+
transform: "translate(-50%, -50%) scale(0.95)"
|
|
74
53
|
},
|
|
75
|
-
"&[data-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
transform: "translate(-50%, -50%) scale(0.95)"
|
|
80
|
-
},
|
|
81
|
-
to: {
|
|
82
|
-
opacity: 1,
|
|
83
|
-
transform: "translate(-50%, -50%) scale(1)"
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
animationDuration: "150ms",
|
|
87
|
-
animationTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)"
|
|
54
|
+
"&[data-ending-style]": {
|
|
55
|
+
opacity: 0,
|
|
56
|
+
transform: "translate(-50%, -50%) scale(0.95)",
|
|
57
|
+
transitionTimingFunction: W
|
|
88
58
|
},
|
|
89
|
-
"
|
|
90
|
-
|
|
91
|
-
from: {
|
|
92
|
-
opacity: 1,
|
|
93
|
-
transform: "translate(-50%, -50%) scale(1)"
|
|
94
|
-
},
|
|
95
|
-
to: {
|
|
96
|
-
opacity: 0,
|
|
97
|
-
transform: "translate(-50%, -50%) scale(0.95)"
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
animationDuration: "150ms",
|
|
101
|
-
animationTimingFunction: "cubic-bezier(0.4, 0, 1, 1)"
|
|
59
|
+
"@media (prefers-reduced-motion: reduce)": {
|
|
60
|
+
transitionDuration: "0.01ms"
|
|
102
61
|
},
|
|
103
|
-
"&[data-size='sm']": { maxWidth:
|
|
104
|
-
"&[data-size='md']": { maxWidth:
|
|
105
|
-
"&[data-size='lg']": { maxWidth:
|
|
106
|
-
"&[data-size='xl']": { maxWidth:
|
|
107
|
-
"&[data-size='2xl']": { maxWidth:
|
|
108
|
-
"&[data-size='3xl']": { maxWidth:
|
|
109
|
-
"&[data-size='4xl']": { maxWidth:
|
|
110
|
-
"&[data-size='5xl']": { maxWidth:
|
|
62
|
+
"&[data-size='sm']": { maxWidth: lt },
|
|
63
|
+
"&[data-size='md']": { maxWidth: rt },
|
|
64
|
+
"&[data-size='lg']": { maxWidth: at },
|
|
65
|
+
"&[data-size='xl']": { maxWidth: nt },
|
|
66
|
+
"&[data-size='2xl']": { maxWidth: it },
|
|
67
|
+
"&[data-size='3xl']": { maxWidth: et },
|
|
68
|
+
"&[data-size='4xl']": { maxWidth: ot },
|
|
69
|
+
"&[data-size='5xl']": { maxWidth: tt },
|
|
111
70
|
"&[data-size='full-width']": { maxWidth: "100%" }
|
|
112
71
|
},
|
|
113
72
|
contentPadding: {
|
|
114
|
-
...
|
|
115
|
-
...
|
|
73
|
+
...v,
|
|
74
|
+
...c.padding(C)
|
|
116
75
|
},
|
|
117
76
|
close: {
|
|
118
77
|
":focus-visible": {
|
|
119
78
|
outlineWidth: "2px",
|
|
120
79
|
outlineStyle: "solid",
|
|
121
80
|
outlineOffset: "2px",
|
|
122
|
-
outlineColor:
|
|
81
|
+
outlineColor: S
|
|
123
82
|
}
|
|
124
83
|
},
|
|
125
84
|
closeButton: {
|
|
126
|
-
...
|
|
85
|
+
...z,
|
|
127
86
|
position: "absolute",
|
|
128
|
-
top:
|
|
129
|
-
right:
|
|
130
|
-
...
|
|
87
|
+
top: C,
|
|
88
|
+
right: C,
|
|
89
|
+
...c.padding(D),
|
|
131
90
|
// v1 rounded-full; no full-radius token exists in this package.
|
|
132
91
|
borderRadius: "9999px",
|
|
133
92
|
cursor: "pointer",
|
|
134
|
-
color:
|
|
93
|
+
color: U,
|
|
135
94
|
":hover": {
|
|
136
|
-
backgroundColor:
|
|
95
|
+
backgroundColor: Q
|
|
137
96
|
},
|
|
138
97
|
":focus-visible": {
|
|
139
98
|
outlineWidth: "2px",
|
|
140
99
|
outlineStyle: "solid",
|
|
141
100
|
outlineOffset: "2px",
|
|
142
|
-
outlineColor:
|
|
101
|
+
outlineColor: S
|
|
143
102
|
},
|
|
144
103
|
":disabled": {
|
|
145
104
|
pointerEvents: "none"
|
|
@@ -155,29 +114,29 @@ const c = F({
|
|
|
155
114
|
header: {
|
|
156
115
|
display: "flex",
|
|
157
116
|
flexDirection: "column",
|
|
158
|
-
...
|
|
117
|
+
...c.gap(D),
|
|
159
118
|
textAlign: "left"
|
|
160
119
|
},
|
|
161
120
|
footer: {
|
|
162
121
|
display: "flex",
|
|
163
|
-
...
|
|
122
|
+
...c.gap(D),
|
|
164
123
|
justifyContent: "flex-end"
|
|
165
124
|
},
|
|
166
125
|
title: {
|
|
167
|
-
...
|
|
168
|
-
fontSize:
|
|
169
|
-
lineHeight:
|
|
170
|
-
fontWeight:
|
|
171
|
-
color:
|
|
126
|
+
...c.margin(0),
|
|
127
|
+
fontSize: K,
|
|
128
|
+
lineHeight: J,
|
|
129
|
+
fontWeight: $,
|
|
130
|
+
color: Y
|
|
172
131
|
},
|
|
173
132
|
description: {
|
|
174
|
-
...
|
|
175
|
-
color:
|
|
176
|
-
fontSize:
|
|
177
|
-
lineHeight:
|
|
133
|
+
...c.margin(0),
|
|
134
|
+
color: G,
|
|
135
|
+
fontSize: q,
|
|
136
|
+
lineHeight: V
|
|
178
137
|
},
|
|
179
138
|
srOnly: {
|
|
180
|
-
...
|
|
139
|
+
...v,
|
|
181
140
|
position: "absolute",
|
|
182
141
|
width: "1px",
|
|
183
142
|
height: "1px",
|
|
@@ -187,9 +146,9 @@ const c = F({
|
|
|
187
146
|
clip: "rect(0, 0, 0, 0)",
|
|
188
147
|
whiteSpace: "nowrap"
|
|
189
148
|
}
|
|
190
|
-
}),
|
|
149
|
+
}), ft = l.forwardRef(
|
|
191
150
|
function(t, o) {
|
|
192
|
-
return /* @__PURE__ */
|
|
151
|
+
return /* @__PURE__ */ r(
|
|
193
152
|
"svg",
|
|
194
153
|
{
|
|
195
154
|
ref: o,
|
|
@@ -199,7 +158,7 @@ const c = F({
|
|
|
199
158
|
fill: "none",
|
|
200
159
|
xmlns: "http://www.w3.org/2000/svg",
|
|
201
160
|
...t,
|
|
202
|
-
children: /* @__PURE__ */
|
|
161
|
+
children: /* @__PURE__ */ r(
|
|
203
162
|
"path",
|
|
204
163
|
{
|
|
205
164
|
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",
|
|
@@ -209,171 +168,222 @@ const c = F({
|
|
|
209
168
|
}
|
|
210
169
|
);
|
|
211
170
|
}
|
|
212
|
-
)
|
|
213
|
-
|
|
214
|
-
|
|
171
|
+
);
|
|
172
|
+
function N(n) {
|
|
173
|
+
const t = l.Children.toArray(n).filter(l.isValidElement);
|
|
174
|
+
return t.length === 1 ? t[0] : void 0;
|
|
175
|
+
}
|
|
176
|
+
function p(n, t) {
|
|
177
|
+
const o = n ? N(t) : void 0;
|
|
178
|
+
return o ? { render: o } : { children: t };
|
|
179
|
+
}
|
|
180
|
+
function k(n) {
|
|
181
|
+
if (n)
|
|
182
|
+
return () => {
|
|
183
|
+
const t = new Event("focus", { cancelable: !0 }), o = document.activeElement;
|
|
184
|
+
n(t);
|
|
185
|
+
const e = document.activeElement;
|
|
186
|
+
return e !== o && e instanceof HTMLElement && queueMicrotask(() => e.focus()), !t.defaultPrevented;
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
const wt = l.forwardRef(
|
|
190
|
+
function({ onOpenChange: t, ...o }, e) {
|
|
191
|
+
return /* @__PURE__ */ r(
|
|
192
|
+
d.Root,
|
|
193
|
+
{
|
|
194
|
+
"data-slot": "dialog",
|
|
195
|
+
onOpenChange: (i, a) => {
|
|
196
|
+
if (a.reason === "escape-key" && a.event.defaultPrevented) {
|
|
197
|
+
a.cancel();
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
t == null || t(i, a);
|
|
201
|
+
},
|
|
202
|
+
...o
|
|
203
|
+
}
|
|
204
|
+
);
|
|
215
205
|
}
|
|
216
|
-
),
|
|
217
|
-
const
|
|
218
|
-
return /* @__PURE__ */
|
|
219
|
-
|
|
206
|
+
), bt = l.forwardRef(function({ asChild: t = !1, children: o, className: e, ...i }, a) {
|
|
207
|
+
const s = u();
|
|
208
|
+
return /* @__PURE__ */ r(
|
|
209
|
+
d.Trigger,
|
|
220
210
|
{
|
|
221
211
|
ref: a,
|
|
222
212
|
"data-slot": "dialog-trigger",
|
|
223
|
-
[
|
|
224
|
-
className:
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
),
|
|
228
|
-
...o
|
|
213
|
+
[g]: "dialog-trigger",
|
|
214
|
+
className: f(!t && s.nativeTrigger, e),
|
|
215
|
+
...i,
|
|
216
|
+
...p(t, o)
|
|
229
217
|
}
|
|
230
218
|
);
|
|
231
|
-
}),
|
|
232
|
-
function(t, o) {
|
|
233
|
-
return /* @__PURE__ */
|
|
234
|
-
|
|
219
|
+
}), A = l.createContext(!1), Rt = l.forwardRef(
|
|
220
|
+
function({ container: t, forceMount: o, ...e }, i) {
|
|
221
|
+
return /* @__PURE__ */ r(A.Provider, { value: !0, children: /* @__PURE__ */ r(
|
|
222
|
+
d.Portal,
|
|
235
223
|
{
|
|
224
|
+
ref: i,
|
|
236
225
|
"data-slot": "dialog-portal",
|
|
237
|
-
[
|
|
238
|
-
|
|
226
|
+
[g]: "dialog-portal",
|
|
227
|
+
container: t ?? void 0,
|
|
228
|
+
keepMounted: o,
|
|
229
|
+
...e
|
|
239
230
|
}
|
|
240
|
-
);
|
|
231
|
+
) });
|
|
241
232
|
}
|
|
242
|
-
),
|
|
243
|
-
const
|
|
244
|
-
return /* @__PURE__ */
|
|
245
|
-
|
|
233
|
+
), Tt = l.forwardRef(function({ asChild: t = !1, children: o, className: e, forceMount: i, ...a }, s) {
|
|
234
|
+
const x = u(), h = E();
|
|
235
|
+
return /* @__PURE__ */ r(
|
|
236
|
+
d.Backdrop,
|
|
246
237
|
{
|
|
247
|
-
ref:
|
|
238
|
+
ref: s,
|
|
239
|
+
forceRender: !0,
|
|
248
240
|
"data-slot": "dialog-overlay",
|
|
249
|
-
[
|
|
250
|
-
...
|
|
251
|
-
className:
|
|
252
|
-
...
|
|
241
|
+
[g]: "dialog-overlay",
|
|
242
|
+
...h,
|
|
243
|
+
className: f(x.overlay, e),
|
|
244
|
+
...a,
|
|
245
|
+
...p(t, o)
|
|
253
246
|
}
|
|
254
247
|
);
|
|
255
|
-
}),
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
248
|
+
}), zt = l.forwardRef(function({
|
|
249
|
+
asChild: t = !1,
|
|
250
|
+
className: o,
|
|
251
|
+
children: e,
|
|
252
|
+
showCloseButton: i = !0,
|
|
253
|
+
closeButtonLabel: a = "Close",
|
|
254
|
+
flush: s = !1,
|
|
255
|
+
size: x = "lg",
|
|
256
|
+
forceMount: h,
|
|
257
|
+
onOpenAutoFocus: F,
|
|
258
|
+
onCloseAutoFocus: M,
|
|
259
|
+
...I
|
|
260
|
+
}, O) {
|
|
261
|
+
const m = u(), B = l.useContext(A), w = j(), H = E(), b = i && /* @__PURE__ */ T(
|
|
262
|
+
d.Close,
|
|
267
263
|
{
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
...x !== void 0 ? { "data-density": x } : {},
|
|
272
|
-
...T,
|
|
273
|
-
"data-size": w,
|
|
274
|
-
className: d(
|
|
275
|
-
g.content,
|
|
276
|
-
!m && g.contentPadding,
|
|
277
|
-
t
|
|
278
|
-
),
|
|
279
|
-
...z,
|
|
264
|
+
"data-slot": "dialog-close",
|
|
265
|
+
[g]: "dialog-close",
|
|
266
|
+
className: m.closeButton,
|
|
280
267
|
children: [
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
b,
|
|
284
|
-
{
|
|
285
|
-
"data-slot": "dialog-close",
|
|
286
|
-
[s]: "dialog-close",
|
|
287
|
-
className: g.closeButton,
|
|
288
|
-
children: [
|
|
289
|
-
/* @__PURE__ */ e(it, {}),
|
|
290
|
-
/* @__PURE__ */ e("span", { className: g.srOnly, children: i })
|
|
291
|
-
]
|
|
292
|
-
}
|
|
293
|
-
)
|
|
268
|
+
/* @__PURE__ */ r(ft, {}),
|
|
269
|
+
/* @__PURE__ */ r("span", { className: m.srOnly, children: a })
|
|
294
270
|
]
|
|
295
271
|
}
|
|
272
|
+
), y = t ? N(e) : void 0, X = y ? {
|
|
273
|
+
render: l.cloneElement(
|
|
274
|
+
y,
|
|
275
|
+
void 0,
|
|
276
|
+
y.props.children,
|
|
277
|
+
b
|
|
278
|
+
)
|
|
279
|
+
} : {
|
|
280
|
+
children: /* @__PURE__ */ T(_, { children: [
|
|
281
|
+
e,
|
|
282
|
+
b
|
|
283
|
+
] })
|
|
284
|
+
}, R = /* @__PURE__ */ r(
|
|
285
|
+
d.Popup,
|
|
286
|
+
{
|
|
287
|
+
ref: O,
|
|
288
|
+
"data-slot": "dialog-content",
|
|
289
|
+
[g]: "dialog-content",
|
|
290
|
+
...w !== void 0 ? { "data-density": w } : {},
|
|
291
|
+
...H,
|
|
292
|
+
"data-size": x,
|
|
293
|
+
initialFocus: k(F),
|
|
294
|
+
finalFocus: k(M),
|
|
295
|
+
className: f(
|
|
296
|
+
m.content,
|
|
297
|
+
!s && m.contentPadding,
|
|
298
|
+
o
|
|
299
|
+
),
|
|
300
|
+
...I,
|
|
301
|
+
...X
|
|
302
|
+
}
|
|
296
303
|
);
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
304
|
+
return B ? R : /* @__PURE__ */ r(d.Portal, { keepMounted: h, children: R });
|
|
305
|
+
}), Pt = l.forwardRef(function({ asChild: t = !1, className: o, children: e, ...i }, a) {
|
|
306
|
+
const s = u();
|
|
307
|
+
return /* @__PURE__ */ r(
|
|
308
|
+
d.Close,
|
|
301
309
|
{
|
|
302
|
-
ref:
|
|
310
|
+
ref: a,
|
|
303
311
|
"data-slot": "dialog-close",
|
|
304
|
-
[
|
|
305
|
-
className:
|
|
306
|
-
!
|
|
307
|
-
|
|
308
|
-
|
|
312
|
+
[g]: "dialog-close",
|
|
313
|
+
className: f(
|
|
314
|
+
!t && s.nativeTrigger,
|
|
315
|
+
s.close,
|
|
316
|
+
o
|
|
309
317
|
),
|
|
310
|
-
...
|
|
311
|
-
|
|
318
|
+
...i,
|
|
319
|
+
...p(t, e)
|
|
312
320
|
}
|
|
313
321
|
);
|
|
314
|
-
}),
|
|
315
|
-
function({ className: t, ...o },
|
|
316
|
-
const i =
|
|
317
|
-
return /* @__PURE__ */
|
|
322
|
+
}), St = l.forwardRef(
|
|
323
|
+
function({ className: t, ...o }, e) {
|
|
324
|
+
const i = u();
|
|
325
|
+
return /* @__PURE__ */ r(
|
|
318
326
|
"div",
|
|
319
327
|
{
|
|
320
|
-
ref:
|
|
328
|
+
ref: e,
|
|
321
329
|
"data-slot": "dialog-header",
|
|
322
|
-
[
|
|
323
|
-
className:
|
|
330
|
+
[g]: "dialog-header",
|
|
331
|
+
className: f(i.header, t),
|
|
324
332
|
...o
|
|
325
333
|
}
|
|
326
334
|
);
|
|
327
335
|
}
|
|
328
|
-
),
|
|
329
|
-
function({ className: t, ...o },
|
|
330
|
-
const i =
|
|
331
|
-
return /* @__PURE__ */
|
|
336
|
+
), Lt = l.forwardRef(
|
|
337
|
+
function({ className: t, ...o }, e) {
|
|
338
|
+
const i = u();
|
|
339
|
+
return /* @__PURE__ */ r(
|
|
332
340
|
"div",
|
|
333
341
|
{
|
|
334
|
-
ref:
|
|
342
|
+
ref: e,
|
|
335
343
|
"data-slot": "dialog-footer",
|
|
336
|
-
[
|
|
337
|
-
className:
|
|
344
|
+
[g]: "dialog-footer",
|
|
345
|
+
className: f(i.footer, t),
|
|
338
346
|
...o
|
|
339
347
|
}
|
|
340
348
|
);
|
|
341
349
|
}
|
|
342
|
-
),
|
|
343
|
-
const
|
|
344
|
-
return /* @__PURE__ */
|
|
345
|
-
|
|
350
|
+
), Wt = l.forwardRef(function({ asChild: t = !1, children: o, className: e, ...i }, a) {
|
|
351
|
+
const s = u();
|
|
352
|
+
return /* @__PURE__ */ r(
|
|
353
|
+
d.Title,
|
|
346
354
|
{
|
|
347
355
|
ref: a,
|
|
348
356
|
"data-slot": "dialog-title",
|
|
349
|
-
[
|
|
350
|
-
className:
|
|
351
|
-
...
|
|
357
|
+
[g]: "dialog-title",
|
|
358
|
+
className: f(s.title, e),
|
|
359
|
+
...i,
|
|
360
|
+
...p(t, o)
|
|
352
361
|
}
|
|
353
362
|
);
|
|
354
|
-
}),
|
|
355
|
-
const
|
|
356
|
-
return /* @__PURE__ */
|
|
357
|
-
|
|
363
|
+
}), kt = l.forwardRef(function({ asChild: t = !1, children: o, className: e, ...i }, a) {
|
|
364
|
+
const s = u();
|
|
365
|
+
return /* @__PURE__ */ r(
|
|
366
|
+
d.Description,
|
|
358
367
|
{
|
|
359
368
|
ref: a,
|
|
360
369
|
"data-slot": "dialog-description",
|
|
361
|
-
[
|
|
362
|
-
className:
|
|
363
|
-
...
|
|
370
|
+
[g]: "dialog-description",
|
|
371
|
+
className: f(s.description, e),
|
|
372
|
+
...i,
|
|
373
|
+
...p(t, o)
|
|
364
374
|
}
|
|
365
375
|
);
|
|
366
376
|
});
|
|
367
377
|
export {
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
+
wt as Dialog,
|
|
379
|
+
Pt as DialogClose,
|
|
380
|
+
zt as DialogContent,
|
|
381
|
+
kt as DialogDescription,
|
|
382
|
+
Lt as DialogFooter,
|
|
383
|
+
St as DialogHeader,
|
|
384
|
+
Tt as DialogOverlay,
|
|
385
|
+
Rt as DialogPortal,
|
|
386
|
+
Wt as DialogTitle,
|
|
387
|
+
bt as DialogTrigger
|
|
378
388
|
};
|
|
379
389
|
//# sourceMappingURL=dialog.js.map
|