@editora/ui-core 0.1.9 → 0.1.12
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 +35 -0
- package/dist/ElementBase-1b301e7f.js +1 -0
- package/dist/ElementBase-909688f3.mjs +79 -0
- package/dist/accordion.cjs.js +360 -0
- package/dist/accordion.esm.js +647 -0
- package/dist/alert-dialog.cjs.js +567 -0
- package/dist/alert-dialog.esm.js +1043 -0
- package/dist/alert.cjs.js +351 -0
- package/dist/alert.esm.js +450 -0
- package/dist/anchor.cjs.js +30 -0
- package/dist/anchor.esm.js +62 -0
- package/dist/animated-beam.cjs.js +720 -0
- package/dist/animated-beam.esm.js +1540 -0
- package/dist/animated-list.cjs.js +672 -0
- package/dist/animated-list.esm.js +1137 -0
- package/dist/animated-text.cjs.js +683 -0
- package/dist/animated-text.esm.js +1020 -0
- package/dist/app-header.cjs.js +345 -0
- package/dist/app-header.esm.js +398 -0
- package/dist/aspect-ratio.cjs.js +294 -0
- package/dist/aspect-ratio.esm.js +416 -0
- package/dist/avatar.cjs.js +365 -0
- package/dist/avatar.esm.js +513 -0
- package/dist/badge.cjs.js +432 -0
- package/dist/badge.esm.js +554 -0
- package/dist/block-controls.cjs.js +347 -0
- package/dist/block-controls.esm.js +556 -0
- package/dist/box.cjs.js +226 -0
- package/dist/box.esm.js +556 -0
- package/dist/breadcrumb.cjs.js +288 -0
- package/dist/breadcrumb.esm.js +523 -0
- package/dist/button.cjs.js +521 -0
- package/dist/button.esm.js +671 -0
- package/dist/calendar-2c11b824.mjs +1685 -0
- package/dist/calendar-a8735e40.js +741 -0
- package/dist/calendar.cjs.js +1 -0
- package/dist/calendar.esm.js +11 -0
- package/dist/card.cjs.js +306 -0
- package/dist/card.esm.js +378 -0
- package/dist/chart.cjs.js +783 -0
- package/dist/chart.esm.js +1369 -0
- package/dist/checkbox.cjs.js +338 -0
- package/dist/checkbox.esm.js +455 -0
- package/dist/collapsible.cjs.js +381 -0
- package/dist/collapsible.esm.js +548 -0
- package/dist/collection-a1aac0c6.mjs +56 -0
- package/dist/collection-a2969ad2.js +1 -0
- package/dist/collection.cjs.js +1 -0
- package/dist/collection.esm.js +136 -0
- package/dist/color-picker.cjs.js +803 -0
- package/dist/color-picker.esm.js +1809 -0
- package/dist/combobox.cjs.js +525 -0
- package/dist/combobox.esm.js +1023 -0
- package/dist/command-palette.cjs.js +67 -0
- package/dist/command-palette.esm.js +181 -0
- package/dist/command.cjs.js +130 -0
- package/dist/command.esm.js +307 -0
- package/dist/components/ui-icon.d.ts.map +1 -1
- package/dist/components/ui-split-button.d.ts +2 -0
- package/dist/components/ui-split-button.d.ts.map +1 -1
- package/dist/container.cjs.js +115 -0
- package/dist/container.esm.js +156 -0
- package/dist/context-menu.cjs.js +357 -0
- package/dist/context-menu.esm.js +1204 -0
- package/dist/control-group.cjs.js +80 -0
- package/dist/control-group.esm.js +110 -0
- package/dist/data-table.cjs.js +682 -0
- package/dist/data-table.esm.js +1660 -0
- package/dist/date-field.cjs.js +142 -0
- package/dist/date-field.esm.js +384 -0
- package/dist/date-picker.cjs.js +570 -0
- package/dist/date-picker.esm.js +1067 -0
- package/dist/date-range-picker.cjs.js +455 -0
- package/dist/date-range-picker.esm.js +973 -0
- package/dist/date-range-time-picker.cjs.js +573 -0
- package/dist/date-range-time-picker.esm.js +1137 -0
- package/dist/date-time-picker.cjs.js +495 -0
- package/dist/date-time-picker.esm.js +1062 -0
- package/dist/date-time-utils-5cf58cd0.js +1 -0
- package/dist/date-time-utils-bdceb7af.mjs +273 -0
- package/dist/description.cjs.js +85 -0
- package/dist/description.esm.js +136 -0
- package/dist/dialog.cjs.js +406 -0
- package/dist/dialog.esm.js +822 -0
- package/dist/direction-provider.cjs.js +30 -0
- package/dist/direction-provider.esm.js +74 -0
- package/dist/dismissable-layer-193e3bed.js +1 -0
- package/dist/dismissable-layer-9c7e6b58.mjs +112 -0
- package/dist/dismissable-layer.cjs.js +6 -0
- package/dist/dismissable-layer.esm.js +115 -0
- package/dist/dock.cjs.js +347 -0
- package/dist/dock.esm.js +826 -0
- package/dist/drawer.cjs.js +538 -0
- package/dist/drawer.esm.js +872 -0
- package/dist/dropdown.cjs.js +511 -0
- package/dist/dropdown.esm.js +1084 -0
- package/dist/dropzone.cjs.js +1 -0
- package/dist/dropzone.esm.js +11 -0
- package/dist/empty-state.cjs.js +169 -0
- package/dist/empty-state.esm.js +199 -0
- package/dist/field-error.cjs.js +74 -0
- package/dist/field-error.esm.js +125 -0
- package/dist/field.cjs.js +398 -0
- package/dist/field.esm.js +542 -0
- package/dist/fieldset.cjs.js +214 -0
- package/dist/fieldset.esm.js +298 -0
- package/dist/file-upload.cjs.js +353 -0
- package/dist/file-upload.esm.js +740 -0
- package/dist/flex.cjs.js +54 -0
- package/dist/flex.esm.js +168 -0
- package/dist/floating-toolbar.cjs.js +223 -0
- package/dist/floating-toolbar.esm.js +513 -0
- package/dist/focus-scope-103833ee.mjs +147 -0
- package/dist/focus-scope-2b12b4e7.js +1 -0
- package/dist/focus-scope.cjs.js +6 -0
- package/dist/focus-scope.esm.js +97 -0
- package/dist/form.cjs.js +377 -0
- package/dist/form.esm.js +862 -0
- package/dist/gantt.cjs.js +157 -0
- package/dist/gantt.esm.js +214 -0
- package/dist/grid.cjs.js +67 -0
- package/dist/grid.esm.js +211 -0
- package/dist/hover-card.cjs.js +284 -0
- package/dist/hover-card.esm.js +470 -0
- package/dist/icon-9e9da03b.js +207 -0
- package/dist/icon-cloud.cjs.js +495 -0
- package/dist/icon-cloud.esm.js +828 -0
- package/dist/icon-e2a85cc1.mjs +368 -0
- package/dist/icon.cjs.js +1 -0
- package/dist/icon.esm.js +6 -0
- package/dist/icons.d.ts +1 -1
- package/dist/icons.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -36010
- package/dist/index.esm.js +440 -66615
- package/dist/inline-edit.cjs.js +118 -0
- package/dist/inline-edit.esm.js +206 -0
- package/dist/input.cjs.js +535 -0
- package/dist/input.esm.js +790 -0
- package/dist/label.cjs.js +195 -0
- package/dist/label.esm.js +301 -0
- package/dist/layout.cjs.js +266 -0
- package/dist/layout.esm.js +408 -0
- package/dist/listbox-308789a0.mjs +210 -0
- package/dist/listbox-ef2f708e.js +46 -0
- package/dist/listbox.cjs.js +1 -0
- package/dist/listbox.esm.js +6 -0
- package/dist/marquee.cjs.js +513 -0
- package/dist/marquee.esm.js +767 -0
- package/dist/masonry-grid.cjs.js +65 -0
- package/dist/masonry-grid.esm.js +180 -0
- package/dist/menu-item-styles-27fdbac4.mjs +181 -0
- package/dist/menu-item-styles-83ad1e22.js +152 -0
- package/dist/menu.cjs.js +275 -0
- package/dist/menu.esm.js +743 -0
- package/dist/menubar.cjs.js +455 -0
- package/dist/menubar.esm.js +1195 -0
- package/dist/meter.cjs.js +241 -0
- package/dist/meter.esm.js +334 -0
- package/dist/multi-select.cjs.js +549 -0
- package/dist/multi-select.esm.js +914 -0
- package/dist/navigation-menu.cjs.js +382 -0
- package/dist/navigation-menu.esm.js +614 -0
- package/dist/number-field.cjs.js +351 -0
- package/dist/number-field.esm.js +771 -0
- package/dist/number-ticker.cjs.js +209 -0
- package/dist/number-ticker.esm.js +749 -0
- package/dist/odometer.cjs.js +313 -0
- package/dist/odometer.esm.js +565 -0
- package/dist/orbiter.cjs.js +495 -0
- package/dist/orbiter.esm.js +831 -0
- package/dist/overlayManager-86454af7.mjs +58 -0
- package/dist/overlayManager-ece06517.js +1 -0
- package/dist/pagination.cjs.js +201 -0
- package/dist/pagination.esm.js +297 -0
- package/dist/panel-group-40254cdd.js +36 -0
- package/dist/panel-group-a376cc5e.mjs +326 -0
- package/dist/panel-group.cjs.js +1 -0
- package/dist/panel-group.esm.js +7 -0
- package/dist/panel.cjs.js +22 -0
- package/dist/panel.esm.js +46 -0
- package/dist/password-field.cjs.js +626 -0
- package/dist/password-field.esm.js +925 -0
- package/dist/pin-input.cjs.js +185 -0
- package/dist/pin-input.esm.js +412 -0
- package/dist/placement-grid.cjs.js +99 -0
- package/dist/placement-grid.esm.js +486 -0
- package/dist/plugin-panel.cjs.js +131 -0
- package/dist/plugin-panel.esm.js +173 -0
- package/dist/popover.cjs.js +286 -0
- package/dist/popover.esm.js +483 -0
- package/dist/portal-1cf392ca.mjs +114 -0
- package/dist/portal-d8d7fbca.js +1 -0
- package/dist/portal.cjs.js +39 -0
- package/dist/portal.esm.js +187 -0
- package/dist/positioner-accc6e5f.js +1 -0
- package/dist/positioner-fbd61bf1.mjs +132 -0
- package/dist/positioner.cjs.js +6 -0
- package/dist/positioner.esm.js +137 -0
- package/dist/presence.cjs.js +164 -0
- package/dist/presence.esm.js +301 -0
- package/dist/progress.cjs.js +329 -0
- package/dist/progress.esm.js +453 -0
- package/dist/quick-actions.cjs.js +202 -0
- package/dist/quick-actions.esm.js +357 -0
- package/dist/radio-group.cjs.js +257 -0
- package/dist/radio-group.esm.js +477 -0
- package/dist/rating.cjs.js +355 -0
- package/dist/rating.esm.js +637 -0
- package/dist/roving-focus-group-4350c9a7.mjs +50 -0
- package/dist/roving-focus-group-5c059bf9.js +1 -0
- package/dist/roving-focus-group.cjs.js +1 -0
- package/dist/roving-focus-group.esm.js +72 -0
- package/dist/{runtime-3cc1c386.mjs → runtime-4ac0107b.mjs} +348 -459
- package/dist/runtime-5f282bc8.js +1 -0
- package/dist/runtime.cjs.js +1 -1
- package/dist/runtime.esm.js +24 -23
- package/dist/scroll-area.cjs.js +294 -0
- package/dist/scroll-area.esm.js +478 -0
- package/dist/scroll-lock-48793569.js +1 -0
- package/dist/scroll-lock-9de6d328.mjs +53 -0
- package/dist/section.cjs.js +167 -0
- package/dist/section.esm.js +202 -0
- package/dist/select.cjs.js +799 -0
- package/dist/select.esm.js +1266 -0
- package/dist/selection-popup.cjs.js +203 -0
- package/dist/selection-popup.esm.js +392 -0
- package/dist/separator.cjs.js +221 -0
- package/dist/separator.esm.js +241 -0
- package/dist/sidebar.cjs.js +769 -0
- package/dist/sidebar.esm.js +1219 -0
- package/dist/skeleton.cjs.js +205 -0
- package/dist/skeleton.esm.js +249 -0
- package/dist/slider.cjs.js +493 -0
- package/dist/slider.esm.js +694 -0
- package/dist/slot.cjs.js +159 -0
- package/dist/slot.esm.js +227 -0
- package/dist/sortable.cjs.js +855 -1
- package/dist/sortable.esm.js +2176 -2
- package/dist/spinning-text.cjs.js +395 -0
- package/dist/spinning-text.esm.js +635 -0
- package/dist/split-button.cjs.js +485 -0
- package/dist/split-button.esm.js +709 -0
- package/dist/splitter.cjs.js +70 -0
- package/dist/splitter.esm.js +105 -0
- package/dist/standalone/accordion.d.ts +2 -0
- package/dist/standalone/accordion.d.ts.map +1 -0
- package/dist/standalone/alert-dialog.d.ts +2 -0
- package/dist/standalone/alert-dialog.d.ts.map +1 -0
- package/dist/standalone/alert.d.ts +2 -0
- package/dist/standalone/alert.d.ts.map +1 -0
- package/dist/standalone/anchor.d.ts +2 -0
- package/dist/standalone/anchor.d.ts.map +1 -0
- package/dist/standalone/animated-beam.d.ts +2 -0
- package/dist/standalone/animated-beam.d.ts.map +1 -0
- package/dist/standalone/animated-list.d.ts +2 -0
- package/dist/standalone/animated-list.d.ts.map +1 -0
- package/dist/standalone/animated-text.d.ts +2 -0
- package/dist/standalone/animated-text.d.ts.map +1 -0
- package/dist/standalone/app-header.d.ts +2 -0
- package/dist/standalone/app-header.d.ts.map +1 -0
- package/dist/standalone/aspect-ratio.d.ts +2 -0
- package/dist/standalone/aspect-ratio.d.ts.map +1 -0
- package/dist/standalone/avatar.d.ts +2 -0
- package/dist/standalone/avatar.d.ts.map +1 -0
- package/dist/standalone/badge.d.ts +2 -0
- package/dist/standalone/badge.d.ts.map +1 -0
- package/dist/standalone/block-controls.d.ts +2 -0
- package/dist/standalone/block-controls.d.ts.map +1 -0
- package/dist/standalone/box.d.ts +2 -0
- package/dist/standalone/box.d.ts.map +1 -0
- package/dist/standalone/breadcrumb.d.ts +2 -0
- package/dist/standalone/breadcrumb.d.ts.map +1 -0
- package/dist/standalone/button.d.ts +2 -0
- package/dist/standalone/button.d.ts.map +1 -0
- package/dist/standalone/calendar.d.ts +2 -0
- package/dist/standalone/calendar.d.ts.map +1 -0
- package/dist/standalone/card.d.ts +2 -0
- package/dist/standalone/card.d.ts.map +1 -0
- package/dist/standalone/chart.d.ts +2 -0
- package/dist/standalone/chart.d.ts.map +1 -0
- package/dist/standalone/checkbox.d.ts +2 -0
- package/dist/standalone/checkbox.d.ts.map +1 -0
- package/dist/standalone/collapsible.d.ts +2 -0
- package/dist/standalone/collapsible.d.ts.map +1 -0
- package/dist/standalone/collection.d.ts +2 -0
- package/dist/standalone/collection.d.ts.map +1 -0
- package/dist/standalone/color-picker.d.ts +2 -0
- package/dist/standalone/color-picker.d.ts.map +1 -0
- package/dist/standalone/combobox.d.ts +2 -0
- package/dist/standalone/combobox.d.ts.map +1 -0
- package/dist/standalone/command-palette.d.ts +2 -0
- package/dist/standalone/command-palette.d.ts.map +1 -0
- package/dist/standalone/command.d.ts +2 -0
- package/dist/standalone/command.d.ts.map +1 -0
- package/dist/standalone/container.d.ts +2 -0
- package/dist/standalone/container.d.ts.map +1 -0
- package/dist/standalone/context-menu.d.ts +2 -0
- package/dist/standalone/context-menu.d.ts.map +1 -0
- package/dist/standalone/control-group.d.ts +2 -0
- package/dist/standalone/control-group.d.ts.map +1 -0
- package/dist/standalone/data-table.d.ts +2 -0
- package/dist/standalone/data-table.d.ts.map +1 -0
- package/dist/standalone/date-field.d.ts +2 -0
- package/dist/standalone/date-field.d.ts.map +1 -0
- package/dist/standalone/date-picker.d.ts +2 -0
- package/dist/standalone/date-picker.d.ts.map +1 -0
- package/dist/standalone/date-range-picker.d.ts +2 -0
- package/dist/standalone/date-range-picker.d.ts.map +1 -0
- package/dist/standalone/date-range-time-picker.d.ts +2 -0
- package/dist/standalone/date-range-time-picker.d.ts.map +1 -0
- package/dist/standalone/date-time-picker.d.ts +2 -0
- package/dist/standalone/date-time-picker.d.ts.map +1 -0
- package/dist/standalone/description.d.ts +2 -0
- package/dist/standalone/description.d.ts.map +1 -0
- package/dist/standalone/dialog.d.ts +2 -0
- package/dist/standalone/dialog.d.ts.map +1 -0
- package/dist/standalone/direction-provider.d.ts +2 -0
- package/dist/standalone/direction-provider.d.ts.map +1 -0
- package/dist/standalone/dismissable-layer.d.ts +2 -0
- package/dist/standalone/dismissable-layer.d.ts.map +1 -0
- package/dist/standalone/dock.d.ts +2 -0
- package/dist/standalone/dock.d.ts.map +1 -0
- package/dist/standalone/drawer.d.ts +2 -0
- package/dist/standalone/drawer.d.ts.map +1 -0
- package/dist/standalone/dropdown.d.ts +2 -0
- package/dist/standalone/dropdown.d.ts.map +1 -0
- package/dist/standalone/dropzone.d.ts +2 -0
- package/dist/standalone/dropzone.d.ts.map +1 -0
- package/dist/standalone/empty-state.d.ts +2 -0
- package/dist/standalone/empty-state.d.ts.map +1 -0
- package/dist/standalone/field-error.d.ts +2 -0
- package/dist/standalone/field-error.d.ts.map +1 -0
- package/dist/standalone/field.d.ts +2 -0
- package/dist/standalone/field.d.ts.map +1 -0
- package/dist/standalone/fieldset.d.ts +2 -0
- package/dist/standalone/fieldset.d.ts.map +1 -0
- package/dist/standalone/file-upload.d.ts +2 -0
- package/dist/standalone/file-upload.d.ts.map +1 -0
- package/dist/standalone/flex.d.ts +2 -0
- package/dist/standalone/flex.d.ts.map +1 -0
- package/dist/standalone/floating-toolbar.d.ts +2 -0
- package/dist/standalone/floating-toolbar.d.ts.map +1 -0
- package/dist/standalone/focus-scope.d.ts +2 -0
- package/dist/standalone/focus-scope.d.ts.map +1 -0
- package/dist/standalone/form.d.ts +2 -0
- package/dist/standalone/form.d.ts.map +1 -0
- package/dist/standalone/gantt.d.ts +2 -0
- package/dist/standalone/gantt.d.ts.map +1 -0
- package/dist/standalone/grid.d.ts +2 -0
- package/dist/standalone/grid.d.ts.map +1 -0
- package/dist/standalone/hover-card.d.ts +2 -0
- package/dist/standalone/hover-card.d.ts.map +1 -0
- package/dist/standalone/icon-cloud.d.ts +2 -0
- package/dist/standalone/icon-cloud.d.ts.map +1 -0
- package/dist/standalone/icon.d.ts +2 -0
- package/dist/standalone/icon.d.ts.map +1 -0
- package/dist/standalone/inline-edit.d.ts +2 -0
- package/dist/standalone/inline-edit.d.ts.map +1 -0
- package/dist/standalone/input.d.ts +2 -0
- package/dist/standalone/input.d.ts.map +1 -0
- package/dist/standalone/label.d.ts +2 -0
- package/dist/standalone/label.d.ts.map +1 -0
- package/dist/standalone/layout.d.ts +2 -0
- package/dist/standalone/layout.d.ts.map +1 -0
- package/dist/standalone/listbox.d.ts +2 -0
- package/dist/standalone/listbox.d.ts.map +1 -0
- package/dist/standalone/marquee.d.ts +2 -0
- package/dist/standalone/marquee.d.ts.map +1 -0
- package/dist/standalone/masonry-grid.d.ts +2 -0
- package/dist/standalone/masonry-grid.d.ts.map +1 -0
- package/dist/standalone/menu.d.ts +2 -0
- package/dist/standalone/menu.d.ts.map +1 -0
- package/dist/standalone/menubar.d.ts +2 -0
- package/dist/standalone/menubar.d.ts.map +1 -0
- package/dist/standalone/meter.d.ts +2 -0
- package/dist/standalone/meter.d.ts.map +1 -0
- package/dist/standalone/multi-select.d.ts +2 -0
- package/dist/standalone/multi-select.d.ts.map +1 -0
- package/dist/standalone/navigation-menu.d.ts +2 -0
- package/dist/standalone/navigation-menu.d.ts.map +1 -0
- package/dist/standalone/number-field.d.ts +2 -0
- package/dist/standalone/number-field.d.ts.map +1 -0
- package/dist/standalone/number-ticker.d.ts +2 -0
- package/dist/standalone/number-ticker.d.ts.map +1 -0
- package/dist/standalone/odometer.d.ts +2 -0
- package/dist/standalone/odometer.d.ts.map +1 -0
- package/dist/standalone/orbiter.d.ts +2 -0
- package/dist/standalone/orbiter.d.ts.map +1 -0
- package/dist/standalone/pagination.d.ts +2 -0
- package/dist/standalone/pagination.d.ts.map +1 -0
- package/dist/standalone/panel-group.d.ts +2 -0
- package/dist/standalone/panel-group.d.ts.map +1 -0
- package/dist/standalone/panel.d.ts +2 -0
- package/dist/standalone/panel.d.ts.map +1 -0
- package/dist/standalone/password-field.d.ts +2 -0
- package/dist/standalone/password-field.d.ts.map +1 -0
- package/dist/standalone/pin-input.d.ts +2 -0
- package/dist/standalone/pin-input.d.ts.map +1 -0
- package/dist/standalone/placement-grid.d.ts +2 -0
- package/dist/standalone/placement-grid.d.ts.map +1 -0
- package/dist/standalone/plugin-panel.d.ts +2 -0
- package/dist/standalone/plugin-panel.d.ts.map +1 -0
- package/dist/standalone/popover.d.ts +2 -0
- package/dist/standalone/popover.d.ts.map +1 -0
- package/dist/standalone/portal.d.ts +2 -0
- package/dist/standalone/portal.d.ts.map +1 -0
- package/dist/standalone/positioner.d.ts +2 -0
- package/dist/standalone/positioner.d.ts.map +1 -0
- package/dist/standalone/presence.d.ts +2 -0
- package/dist/standalone/presence.d.ts.map +1 -0
- package/dist/standalone/progress.d.ts +2 -0
- package/dist/standalone/progress.d.ts.map +1 -0
- package/dist/standalone/quick-actions.d.ts +2 -0
- package/dist/standalone/quick-actions.d.ts.map +1 -0
- package/dist/standalone/radio-group.d.ts +2 -0
- package/dist/standalone/radio-group.d.ts.map +1 -0
- package/dist/standalone/rating.d.ts +2 -0
- package/dist/standalone/rating.d.ts.map +1 -0
- package/dist/standalone/roving-focus-group.d.ts +2 -0
- package/dist/standalone/roving-focus-group.d.ts.map +1 -0
- package/dist/standalone/scroll-area.d.ts +2 -0
- package/dist/standalone/scroll-area.d.ts.map +1 -0
- package/dist/standalone/section.d.ts +2 -0
- package/dist/standalone/section.d.ts.map +1 -0
- package/dist/standalone/select.d.ts +2 -0
- package/dist/standalone/select.d.ts.map +1 -0
- package/dist/standalone/selection-popup.d.ts +2 -0
- package/dist/standalone/selection-popup.d.ts.map +1 -0
- package/dist/standalone/separator.d.ts +2 -0
- package/dist/standalone/separator.d.ts.map +1 -0
- package/dist/standalone/sidebar.d.ts +2 -0
- package/dist/standalone/sidebar.d.ts.map +1 -0
- package/dist/standalone/skeleton.d.ts +2 -0
- package/dist/standalone/skeleton.d.ts.map +1 -0
- package/dist/standalone/slider.d.ts +2 -0
- package/dist/standalone/slider.d.ts.map +1 -0
- package/dist/standalone/slot.d.ts +2 -0
- package/dist/standalone/slot.d.ts.map +1 -0
- package/dist/standalone/spinning-text.d.ts +2 -0
- package/dist/standalone/spinning-text.d.ts.map +1 -0
- package/dist/standalone/split-button.d.ts +2 -0
- package/dist/standalone/split-button.d.ts.map +1 -0
- package/dist/standalone/splitter.d.ts +2 -0
- package/dist/standalone/splitter.d.ts.map +1 -0
- package/dist/standalone/stepper.d.ts +2 -0
- package/dist/standalone/stepper.d.ts.map +1 -0
- package/dist/standalone/switch.d.ts +2 -0
- package/dist/standalone/switch.d.ts.map +1 -0
- package/dist/standalone/table.d.ts +2 -0
- package/dist/standalone/table.d.ts.map +1 -0
- package/dist/standalone/tabs.d.ts +2 -0
- package/dist/standalone/tabs.d.ts.map +1 -0
- package/dist/standalone/tags-input.d.ts +2 -0
- package/dist/standalone/tags-input.d.ts.map +1 -0
- package/dist/standalone/textarea.d.ts +2 -0
- package/dist/standalone/textarea.d.ts.map +1 -0
- package/dist/standalone/time-field.d.ts +2 -0
- package/dist/standalone/time-field.d.ts.map +1 -0
- package/dist/standalone/time-picker.d.ts +2 -0
- package/dist/standalone/time-picker.d.ts.map +1 -0
- package/dist/standalone/timeline.d.ts +2 -0
- package/dist/standalone/timeline.d.ts.map +1 -0
- package/dist/standalone/toast.d.ts +2 -0
- package/dist/standalone/toast.d.ts.map +1 -0
- package/dist/standalone/toggle-group.d.ts +2 -0
- package/dist/standalone/toggle-group.d.ts.map +1 -0
- package/dist/standalone/toggle.d.ts +2 -0
- package/dist/standalone/toggle.d.ts.map +1 -0
- package/dist/standalone/toolbar.d.ts +2 -0
- package/dist/standalone/toolbar.d.ts.map +1 -0
- package/dist/standalone/tooltip.d.ts +2 -0
- package/dist/standalone/tooltip.d.ts.map +1 -0
- package/dist/standalone/transfer-list.d.ts +2 -0
- package/dist/standalone/transfer-list.d.ts.map +1 -0
- package/dist/standalone/tree-item.d.ts +2 -0
- package/dist/standalone/tree-item.d.ts.map +1 -0
- package/dist/standalone/tree.d.ts +2 -0
- package/dist/standalone/tree.d.ts.map +1 -0
- package/dist/standalone/visually-hidden.d.ts +2 -0
- package/dist/standalone/visually-hidden.d.ts.map +1 -0
- package/dist/standalone/wizard.d.ts +2 -0
- package/dist/standalone/wizard.d.ts.map +1 -0
- package/dist/stepper.cjs.js +337 -0
- package/dist/stepper.esm.js +578 -0
- package/dist/switch.cjs.js +397 -0
- package/dist/switch.esm.js +543 -0
- package/dist/table.cjs.js +212 -0
- package/dist/table.esm.js +432 -0
- package/dist/tabs.cjs.js +515 -0
- package/dist/tabs.esm.js +808 -0
- package/dist/tags-input.cjs.js +202 -0
- package/dist/tags-input.esm.js +436 -0
- package/dist/textarea.cjs.js +329 -0
- package/dist/textarea.esm.js +520 -0
- package/dist/time-field.cjs.js +142 -0
- package/dist/time-field.esm.js +387 -0
- package/dist/time-picker.cjs.js +284 -0
- package/dist/time-picker.esm.js +686 -0
- package/dist/timeline.cjs.js +198 -0
- package/dist/timeline.esm.js +248 -0
- package/dist/toast.cjs.js +234 -0
- package/dist/toast.esm.js +399 -0
- package/dist/toggle-group.cjs.js +131 -0
- package/dist/toggle-group.esm.js +382 -0
- package/dist/toggle.cjs.js +237 -0
- package/dist/toggle.esm.js +346 -0
- package/dist/toolbar.cjs.js +126 -0
- package/dist/toolbar.esm.js +240 -0
- package/dist/tooltip.cjs.js +159 -0
- package/dist/tooltip.esm.js +376 -0
- package/dist/transfer-list.cjs.js +734 -0
- package/dist/transfer-list.esm.js +969 -0
- package/dist/tree-0a7a8d05.js +39 -0
- package/dist/tree-dcd74a4a.mjs +294 -0
- package/dist/tree-item.cjs.js +103 -0
- package/dist/tree-item.esm.js +143 -0
- package/dist/tree.cjs.js +1 -0
- package/dist/tree.esm.js +7 -0
- package/dist/visually-hidden.cjs.js +42 -0
- package/dist/visually-hidden.esm.js +68 -0
- package/dist/wizard.cjs.js +677 -0
- package/dist/wizard.esm.js +1068 -0
- package/package.json +7 -1
- package/dist/runtime-41717c1e.js +0 -1
- package/dist/sortable-06a3bd6c.js +0 -855
- package/dist/sortable-23bf110b.mjs +0 -2254
|
@@ -1,168 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
if (typeof document > "u")
|
|
3
|
-
return null;
|
|
4
|
-
let a = document.getElementById(e);
|
|
5
|
-
return a || (a = document.createElement("div"), a.id = e, a.style.position = "fixed", a.style.top = "0", a.style.left = "0", a.style.width = "100%", a.style.height = "0", a.style.pointerEvents = "none", a.style.zIndex = "var(--ui-portal-z, 1600)", document.body.appendChild(a)), a.style.zIndex || (a.style.zIndex = "var(--ui-portal-z, 1600)"), a;
|
|
6
|
-
}
|
|
7
|
-
function Va(e, a, i = "top") {
|
|
8
|
-
const n = typeof i == "string" ? { placement: i } : i, r = n.placement || "top", t = typeof n.offset == "number" ? n.offset : 8, l = !!n.shift, s = e.getBoundingClientRect(), p = a.getBoundingClientRect();
|
|
9
|
-
let c = 0, d = 0;
|
|
10
|
-
r === "top" ? (c = s.top - p.height - t, d = s.left + (s.width - p.width) / 2) : r === "bottom" ? (c = s.bottom + t, d = s.left + (s.width - p.width) / 2) : r === "left" ? (c = s.top + (s.height - p.height) / 2, d = s.left - p.width - t) : (c = s.top + (s.height - p.height) / 2, d = s.right + t);
|
|
11
|
-
const y = s.left + s.width / 2, x = s.top + s.height / 2, _ = Math.round(y - d), w = Math.round(x - c);
|
|
12
|
-
if (l) {
|
|
13
|
-
const m = window.innerWidth || document.documentElement.clientWidth, b = window.innerHeight || document.documentElement.clientHeight;
|
|
14
|
-
if (r === "top" || r === "bottom") {
|
|
15
|
-
const h = m - p.width - 4;
|
|
16
|
-
d < 4 && (d = Math.min(h, d + (4 - d))), d > h && (d = Math.max(4, d - (d - h)));
|
|
17
|
-
} else {
|
|
18
|
-
const h = b - p.height - 4;
|
|
19
|
-
c < 4 && (c = Math.min(h, c + (4 - c))), c > h && (c = Math.max(4, c - (c - h)));
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return { top: c, left: d, placement: r, x: _, y: w };
|
|
23
|
-
}
|
|
24
|
-
function ee(e, a, i) {
|
|
25
|
-
let n = null, r = null, t = null, l = 0;
|
|
26
|
-
const s = [], p = () => {
|
|
27
|
-
l || (l = requestAnimationFrame(() => {
|
|
28
|
-
l = 0, i();
|
|
29
|
-
}));
|
|
30
|
-
}, c = () => p();
|
|
31
|
-
if (typeof ResizeObserver < "u") {
|
|
32
|
-
n = new ResizeObserver(p), r = new ResizeObserver(p);
|
|
33
|
-
try {
|
|
34
|
-
n.observe(e);
|
|
35
|
-
} catch {
|
|
36
|
-
}
|
|
37
|
-
try {
|
|
38
|
-
r.observe(a);
|
|
39
|
-
} catch {
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
if (typeof MutationObserver < "u") {
|
|
43
|
-
t = new MutationObserver(p);
|
|
44
|
-
try {
|
|
45
|
-
t.observe(e, { attributes: !0, childList: !1, subtree: !1 });
|
|
46
|
-
} catch {
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return window.addEventListener("scroll", c, !0), window.addEventListener("resize", c), s.push(() => window.removeEventListener("scroll", c, !0)), s.push(() => window.removeEventListener("resize", c)), s.push(() => {
|
|
50
|
-
n && n.disconnect(), n = null;
|
|
51
|
-
}), s.push(() => {
|
|
52
|
-
r && r.disconnect(), r = null;
|
|
53
|
-
}), s.push(() => {
|
|
54
|
-
t && t.disconnect(), t = null;
|
|
55
|
-
}), s.push(() => {
|
|
56
|
-
l && (cancelAnimationFrame(l), l = 0);
|
|
57
|
-
}), () => s.forEach((d) => {
|
|
58
|
-
try {
|
|
59
|
-
d();
|
|
60
|
-
} catch {
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
function he(e, a, i = "top") {
|
|
65
|
-
const n = typeof i == "string" ? { placement: i } : i, r = n.placement || "top", t = typeof n.offset == "number" ? n.offset : 8, l = n.flip !== !1, s = !!n.shift, p = ae();
|
|
66
|
-
if (!p)
|
|
67
|
-
return;
|
|
68
|
-
a.style.position = "absolute", a.style.pointerEvents = "auto", p.appendChild(a);
|
|
69
|
-
let c = () => {
|
|
70
|
-
};
|
|
71
|
-
function d(x, _, w) {
|
|
72
|
-
const m = a.querySelector(".arrow");
|
|
73
|
-
if (!m)
|
|
74
|
-
return;
|
|
75
|
-
const b = e.getBoundingClientRect(), g = b.left + b.width / 2, h = b.top + b.height / 2;
|
|
76
|
-
if (w === "top" || w === "bottom") {
|
|
77
|
-
const S = g - _, C = 8, k = a.offsetWidth - 8, z = Math.max(C, Math.min(k, S));
|
|
78
|
-
m.style.left = `${Math.round(z)}px`, m.style.top = "";
|
|
79
|
-
} else {
|
|
80
|
-
const S = h - x, C = 8, k = a.offsetHeight - 8, z = Math.max(C, Math.min(k, S));
|
|
81
|
-
m.style.top = `${Math.round(z)}px`, m.style.left = "";
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
function y() {
|
|
85
|
-
var b;
|
|
86
|
-
if (e && typeof e.getBoundingClientRect == "function" && e instanceof HTMLElement) {
|
|
87
|
-
const g = e, h = (b = g.getRootNode) == null ? void 0 : b.call(g), S = h instanceof ShadowRoot ? h.host : null, C = g.isConnected || document.body.contains(g) || (S ? document.body.contains(S) : !1), k = window.getComputedStyle(g), z = k.display !== "none" && k.visibility !== "hidden" && parseFloat(k.opacity || "1") > 0;
|
|
88
|
-
if (!C || !z) {
|
|
89
|
-
try {
|
|
90
|
-
a.parentElement && a.parentElement.removeChild(a);
|
|
91
|
-
} catch {
|
|
92
|
-
}
|
|
93
|
-
c();
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
const x = Va(e, a, { placement: r, offset: t, shift: s }), _ = window.innerWidth || document.documentElement.clientWidth, w = window.innerHeight || document.documentElement.clientHeight;
|
|
98
|
-
let m = x;
|
|
99
|
-
l && (x.top < 0 && r === "top" || x.top + a.offsetHeight > w && r === "bottom") && (m = Va(e, a, { placement: r === "top" ? "bottom" : "top", offset: t, shift: s })), m.left < 4 && (m.left = 4), m.left + a.offsetWidth > _ - 4 && (m.left = _ - a.offsetWidth - 4), m.top < 4 && (m.top = 4), m.top + a.offsetHeight > w - 4 && (m.top = w - a.offsetHeight - 4), a.style.top = `${Math.round(m.top)}px`, a.style.left = `${Math.round(m.left)}px`, d(m.top, m.left, m.placement), a.setAttribute("data-placement", m.placement);
|
|
100
|
-
}
|
|
101
|
-
return y(), c = ee(e, a, y), () => {
|
|
102
|
-
try {
|
|
103
|
-
a.parentElement && a.parentElement.removeChild(a);
|
|
104
|
-
} catch {
|
|
105
|
-
}
|
|
106
|
-
c();
|
|
107
|
-
};
|
|
108
|
-
}
|
|
1
|
+
import "./portal-1cf392ca.mjs";
|
|
109
2
|
function ja() {
|
|
110
3
|
return typeof window < "u" && typeof document < "u";
|
|
111
4
|
}
|
|
112
|
-
function
|
|
5
|
+
function qa(e) {
|
|
113
6
|
return e ? typeof e == "string" ? e : e instanceof Error && e.message ? e.message : "Something went wrong. Please try again." : "Something went wrong. Please try again.";
|
|
114
7
|
}
|
|
115
|
-
function
|
|
8
|
+
function ae(e) {
|
|
116
9
|
return e === "replace" || e === "stack" ? e : "queue";
|
|
117
10
|
}
|
|
118
|
-
function
|
|
11
|
+
function Za(e) {
|
|
119
12
|
return `ui-alert-dialog-${e}`;
|
|
120
13
|
}
|
|
121
|
-
function
|
|
122
|
-
var r,
|
|
123
|
-
const
|
|
14
|
+
function ee(e, a) {
|
|
15
|
+
var r, o;
|
|
16
|
+
const n = e.kind === "alert" && a.action === "cancel" ? "dismiss" : a.action, i = (r = e.dialog) == null ? void 0 : r.getChecked();
|
|
124
17
|
if (e.kind === "prompt") {
|
|
125
|
-
const
|
|
18
|
+
const c = ((o = e.dialog) == null ? void 0 : o.getInputValue()) ?? e.value ?? "";
|
|
126
19
|
return {
|
|
127
20
|
id: e.id,
|
|
128
|
-
action:
|
|
129
|
-
value:
|
|
130
|
-
checked:
|
|
21
|
+
action: n,
|
|
22
|
+
value: c,
|
|
23
|
+
checked: i,
|
|
131
24
|
source: a.source,
|
|
132
25
|
reason: a.reason
|
|
133
26
|
};
|
|
134
27
|
}
|
|
135
28
|
return {
|
|
136
29
|
id: e.id,
|
|
137
|
-
action:
|
|
30
|
+
action: n,
|
|
138
31
|
value: e.value,
|
|
139
|
-
checked:
|
|
32
|
+
checked: i,
|
|
140
33
|
source: a.source,
|
|
141
34
|
reason: a.reason
|
|
142
35
|
};
|
|
143
36
|
}
|
|
144
|
-
function ka(e, a,
|
|
145
|
-
var
|
|
37
|
+
function ka(e, a, n) {
|
|
38
|
+
var i, r, o;
|
|
146
39
|
return e.kind === "prompt" ? {
|
|
147
40
|
id: e.id,
|
|
148
41
|
action: "dismiss",
|
|
149
|
-
value: ((
|
|
42
|
+
value: ((i = e.dialog) == null ? void 0 : i.getInputValue()) ?? e.value ?? "",
|
|
150
43
|
checked: (r = e.dialog) == null ? void 0 : r.getChecked(),
|
|
151
44
|
source: a,
|
|
152
|
-
reason:
|
|
45
|
+
reason: n
|
|
153
46
|
} : {
|
|
154
47
|
id: e.id,
|
|
155
48
|
action: "dismiss",
|
|
156
49
|
value: e.value,
|
|
157
|
-
checked: (
|
|
50
|
+
checked: (o = e.dialog) == null ? void 0 : o.getChecked(),
|
|
158
51
|
source: a,
|
|
159
|
-
reason:
|
|
52
|
+
reason: n
|
|
160
53
|
};
|
|
161
54
|
}
|
|
162
|
-
function
|
|
55
|
+
function ie(e) {
|
|
163
56
|
return e === "esc" || e === "backdrop" || e === "close-icon" || e === "abort" || e === "unmount" || e === "replace" || e === "programmatic" ? e : "abort";
|
|
164
57
|
}
|
|
165
|
-
class
|
|
58
|
+
class ne {
|
|
166
59
|
constructor(a) {
|
|
167
60
|
this._container = null, this._ownsContainer = !1, this._queue = [], this._active = [], this._disposed = !1, this._seed = 0, this._defaults = {}, this._container = a ?? null;
|
|
168
61
|
}
|
|
@@ -183,136 +76,136 @@ class re {
|
|
|
183
76
|
}
|
|
184
77
|
destroy(a = "unmount") {
|
|
185
78
|
this._disposed = !0;
|
|
186
|
-
const
|
|
79
|
+
const n = [...this._active, ...this._queue];
|
|
187
80
|
this._queue = [];
|
|
188
|
-
for (const
|
|
189
|
-
this._settle(
|
|
81
|
+
for (const i of n)
|
|
82
|
+
this._settle(i, ka(i, a), !1);
|
|
190
83
|
this._active = [], this._ownsContainer && this._container && this._container.parentElement && this._container.parentElement.removeChild(this._container), this._container = null, this._ownsContainer = !1;
|
|
191
84
|
}
|
|
192
|
-
_enqueue(a,
|
|
193
|
-
const
|
|
85
|
+
_enqueue(a, n) {
|
|
86
|
+
const i = this._mergeOptions(n);
|
|
194
87
|
if (!ja() || this._disposed) {
|
|
195
|
-
const
|
|
196
|
-
id:
|
|
88
|
+
const c = {
|
|
89
|
+
id: i.id || Za(++this._seed),
|
|
197
90
|
action: "dismiss",
|
|
198
91
|
source: "unmount"
|
|
199
92
|
};
|
|
200
|
-
return Promise.resolve(
|
|
93
|
+
return Promise.resolve(c);
|
|
201
94
|
}
|
|
202
|
-
const r =
|
|
203
|
-
return new Promise((
|
|
204
|
-
var
|
|
205
|
-
const
|
|
95
|
+
const r = i.id || Za(++this._seed), o = ae(i.mode);
|
|
96
|
+
return new Promise((c) => {
|
|
97
|
+
var d;
|
|
98
|
+
const l = {
|
|
206
99
|
id: r,
|
|
207
100
|
kind: a,
|
|
208
|
-
mode:
|
|
209
|
-
options:
|
|
101
|
+
mode: o,
|
|
102
|
+
options: i,
|
|
210
103
|
settled: !1,
|
|
211
104
|
processing: !1,
|
|
212
|
-
resolve:
|
|
105
|
+
resolve: c,
|
|
213
106
|
cleanup: []
|
|
214
107
|
};
|
|
215
|
-
if ((
|
|
216
|
-
this._settle(
|
|
108
|
+
if ((d = i.signal) != null && d.aborted) {
|
|
109
|
+
this._settle(l, ka(l, "abort"), !1);
|
|
217
110
|
return;
|
|
218
111
|
}
|
|
219
|
-
if (
|
|
220
|
-
const
|
|
221
|
-
|
|
112
|
+
if (o === "replace") {
|
|
113
|
+
const f = this._active[this._active.length - 1];
|
|
114
|
+
f && this._settle(f, ka(f, "replace", "replace"), !1, !1), this._open(l);
|
|
222
115
|
return;
|
|
223
116
|
}
|
|
224
|
-
if (
|
|
225
|
-
this._open(
|
|
117
|
+
if (o === "stack") {
|
|
118
|
+
this._open(l);
|
|
226
119
|
return;
|
|
227
120
|
}
|
|
228
121
|
if (this._active.length > 0) {
|
|
229
|
-
this._queue.push(
|
|
122
|
+
this._queue.push(l);
|
|
230
123
|
return;
|
|
231
124
|
}
|
|
232
|
-
this._open(
|
|
125
|
+
this._open(l);
|
|
233
126
|
});
|
|
234
127
|
}
|
|
235
128
|
_open(a) {
|
|
236
|
-
var
|
|
237
|
-
const
|
|
238
|
-
if (!
|
|
129
|
+
var d;
|
|
130
|
+
const n = this._ensureContainer();
|
|
131
|
+
if (!n) {
|
|
239
132
|
this._settle(a, ka(a, "unmount"), !1);
|
|
240
133
|
return;
|
|
241
134
|
}
|
|
242
|
-
const
|
|
243
|
-
a.dialog =
|
|
135
|
+
const i = document.createElement("ui-alert-dialog");
|
|
136
|
+
a.dialog = i, a.checked = !!((d = a.options.checkbox) != null && d.defaultChecked);
|
|
244
137
|
const r = this._buildConfig(a);
|
|
245
|
-
|
|
246
|
-
const
|
|
138
|
+
i.dialogId = a.id, i.config = r;
|
|
139
|
+
const o = (f) => {
|
|
247
140
|
if (a.settled)
|
|
248
141
|
return;
|
|
249
|
-
const
|
|
250
|
-
a.value =
|
|
251
|
-
const
|
|
252
|
-
if (
|
|
253
|
-
|
|
142
|
+
const u = f.detail;
|
|
143
|
+
a.value = u == null ? void 0 : u.inputValue, a.checked = u == null ? void 0 : u.checked;
|
|
144
|
+
const m = this._validatePrompt(a);
|
|
145
|
+
if (m) {
|
|
146
|
+
f.preventDefault(), i.setError(m);
|
|
254
147
|
return;
|
|
255
148
|
}
|
|
256
149
|
if (!a.options.onConfirm) {
|
|
257
|
-
|
|
150
|
+
i.clearError();
|
|
258
151
|
return;
|
|
259
152
|
}
|
|
260
|
-
|
|
153
|
+
f.preventDefault(), a.processing = !0, i.state = "loading", i.clearError(), Promise.resolve(
|
|
261
154
|
a.options.onConfirm({
|
|
262
155
|
id: a.id,
|
|
263
156
|
value: a.value,
|
|
264
157
|
checked: a.checked,
|
|
265
|
-
dialog:
|
|
158
|
+
dialog: i,
|
|
266
159
|
signal: a.options.signal
|
|
267
160
|
})
|
|
268
161
|
).then(() => {
|
|
269
|
-
a.processing = !1,
|
|
270
|
-
}).catch((
|
|
271
|
-
a.processing = !1,
|
|
162
|
+
a.processing = !1, i.state = "idle", i.clearError(), a.settled || i.close("confirm");
|
|
163
|
+
}).catch((h) => {
|
|
164
|
+
a.processing = !1, i.state = "error", i.setError(qa(h));
|
|
272
165
|
});
|
|
273
|
-
},
|
|
274
|
-
a.settled || (a.value =
|
|
275
|
-
},
|
|
166
|
+
}, c = () => {
|
|
167
|
+
a.settled || (a.value = i.getInputValue(), a.checked = i.getChecked(), i.state === "error" && i.clearError());
|
|
168
|
+
}, l = (f) => {
|
|
276
169
|
if (a.settled)
|
|
277
170
|
return;
|
|
278
|
-
const
|
|
279
|
-
this._handleClose(a,
|
|
171
|
+
const u = f.detail;
|
|
172
|
+
this._handleClose(a, u);
|
|
280
173
|
};
|
|
281
|
-
if (
|
|
282
|
-
const
|
|
174
|
+
if (i.addEventListener("ui-confirm", o), i.addEventListener("ui-change", c), i.addEventListener("ui-close", l), a.cleanup.push(() => i.removeEventListener("ui-confirm", o)), a.cleanup.push(() => i.removeEventListener("ui-change", c)), a.cleanup.push(() => i.removeEventListener("ui-close", l)), a.options.signal) {
|
|
175
|
+
const f = () => {
|
|
283
176
|
a.settled || this._settle(a, ka(a, "abort"), !1);
|
|
284
177
|
};
|
|
285
|
-
a.options.signal.addEventListener("abort",
|
|
286
|
-
var
|
|
287
|
-
return (
|
|
178
|
+
a.options.signal.addEventListener("abort", f, { once: !0 }), a.cleanup.push(() => {
|
|
179
|
+
var u;
|
|
180
|
+
return (u = a.options.signal) == null ? void 0 : u.removeEventListener("abort", f);
|
|
288
181
|
});
|
|
289
182
|
}
|
|
290
|
-
this._active.push(a),
|
|
183
|
+
this._active.push(a), n.appendChild(i), i.open = !0, this._updateStackZIndex();
|
|
291
184
|
}
|
|
292
185
|
_validatePrompt(a) {
|
|
293
|
-
var
|
|
186
|
+
var o;
|
|
294
187
|
if (a.kind !== "prompt")
|
|
295
188
|
return null;
|
|
296
|
-
const
|
|
297
|
-
return
|
|
189
|
+
const i = a.options.input, r = ((o = a.dialog) == null ? void 0 : o.getInputValue()) ?? a.value ?? "";
|
|
190
|
+
return i != null && i.required && !r.trim() ? "Please enter a value." : i != null && i.validate ? i.validate(r) : null;
|
|
298
191
|
}
|
|
299
|
-
_settle(a,
|
|
192
|
+
_settle(a, n, i, r = !0) {
|
|
300
193
|
if (!a.settled) {
|
|
301
|
-
if (a.settled = !0, this._cleanupRequest(a), this._active = this._active.filter((
|
|
302
|
-
const
|
|
303
|
-
if (!
|
|
304
|
-
const
|
|
305
|
-
|
|
194
|
+
if (a.settled = !0, this._cleanupRequest(a), this._active = this._active.filter((o) => o !== a), this._queue = this._queue.filter((o) => o !== a), a.dialog) {
|
|
195
|
+
const o = a.dialog;
|
|
196
|
+
if (!i && o.open) {
|
|
197
|
+
const c = ie(n.source);
|
|
198
|
+
o.close("dismiss", c, n.reason);
|
|
306
199
|
}
|
|
307
|
-
|
|
200
|
+
o.parentElement && o.parentElement.removeChild(o);
|
|
308
201
|
}
|
|
309
|
-
a.resolve(
|
|
202
|
+
a.resolve(n), this._updateStackZIndex(), !this._disposed && r && this._drainQueue();
|
|
310
203
|
}
|
|
311
204
|
}
|
|
312
205
|
_cleanupRequest(a) {
|
|
313
|
-
for (const
|
|
206
|
+
for (const n of a.cleanup.splice(0))
|
|
314
207
|
try {
|
|
315
|
-
|
|
208
|
+
n();
|
|
316
209
|
} catch {
|
|
317
210
|
}
|
|
318
211
|
}
|
|
@@ -323,87 +216,87 @@ class re {
|
|
|
323
216
|
a && this._open(a);
|
|
324
217
|
}
|
|
325
218
|
_buildConfig(a) {
|
|
326
|
-
var
|
|
327
|
-
const
|
|
219
|
+
var c, l, d;
|
|
220
|
+
const n = a.options, i = a.kind === "prompt", r = a.kind === "alert", o = i ? n.input : void 0;
|
|
328
221
|
return {
|
|
329
222
|
id: a.id,
|
|
330
|
-
title:
|
|
331
|
-
description:
|
|
332
|
-
confirmText:
|
|
333
|
-
cancelText:
|
|
334
|
-
loadingText:
|
|
335
|
-
errorMessage:
|
|
336
|
-
dismissible:
|
|
337
|
-
closeOnEsc:
|
|
338
|
-
closeOnBackdrop:
|
|
339
|
-
lockWhileLoading:
|
|
340
|
-
role:
|
|
341
|
-
tone:
|
|
342
|
-
size:
|
|
343
|
-
variant:
|
|
344
|
-
radius:
|
|
345
|
-
elevation:
|
|
346
|
-
indicator:
|
|
347
|
-
initialFocus:
|
|
348
|
-
ariaLabel:
|
|
349
|
-
ariaLabelledby:
|
|
350
|
-
ariaDescribedby:
|
|
351
|
-
headless:
|
|
223
|
+
title: n.title,
|
|
224
|
+
description: n.description,
|
|
225
|
+
confirmText: n.confirmText || (r ? "OK" : "Confirm"),
|
|
226
|
+
cancelText: n.cancelText || "Cancel",
|
|
227
|
+
loadingText: n.loadingText,
|
|
228
|
+
errorMessage: n.errorMessage,
|
|
229
|
+
dismissible: n.dismissible ?? !0,
|
|
230
|
+
closeOnEsc: n.closeOnEsc,
|
|
231
|
+
closeOnBackdrop: n.closeOnBackdrop,
|
|
232
|
+
lockWhileLoading: n.lockWhileLoading ?? !0,
|
|
233
|
+
role: n.role || "alertdialog",
|
|
234
|
+
tone: n.tone || (r ? "info" : i ? "neutral" : "warning"),
|
|
235
|
+
size: n.size || "md",
|
|
236
|
+
variant: n.variant || "surface",
|
|
237
|
+
radius: n.radius,
|
|
238
|
+
elevation: n.elevation || "low",
|
|
239
|
+
indicator: n.indicator || "line",
|
|
240
|
+
initialFocus: n.initialFocus,
|
|
241
|
+
ariaLabel: n.ariaLabel,
|
|
242
|
+
ariaLabelledby: n.ariaLabelledby,
|
|
243
|
+
ariaDescribedby: n.ariaDescribedby,
|
|
244
|
+
headless: n.headless,
|
|
352
245
|
showCancel: !r,
|
|
353
|
-
showClose:
|
|
246
|
+
showClose: n.dismissible ?? !0,
|
|
354
247
|
input: {
|
|
355
|
-
enabled:
|
|
356
|
-
label:
|
|
357
|
-
placeholder:
|
|
358
|
-
value: (
|
|
359
|
-
required:
|
|
248
|
+
enabled: i,
|
|
249
|
+
label: o == null ? void 0 : o.label,
|
|
250
|
+
placeholder: o == null ? void 0 : o.placeholder,
|
|
251
|
+
value: (o == null ? void 0 : o.defaultValue) || "",
|
|
252
|
+
required: o == null ? void 0 : o.required
|
|
360
253
|
},
|
|
361
254
|
checkbox: {
|
|
362
|
-
enabled: !!((
|
|
363
|
-
label: (
|
|
364
|
-
checked: (
|
|
255
|
+
enabled: !!((c = n.checkbox) != null && c.enabled),
|
|
256
|
+
label: (l = n.checkbox) == null ? void 0 : l.label,
|
|
257
|
+
checked: (d = n.checkbox) == null ? void 0 : d.defaultChecked
|
|
365
258
|
}
|
|
366
259
|
};
|
|
367
260
|
}
|
|
368
261
|
_buildLifecycleContext(a) {
|
|
369
|
-
var
|
|
262
|
+
var n, i;
|
|
370
263
|
return {
|
|
371
264
|
id: a.id,
|
|
372
|
-
value: ((
|
|
373
|
-
checked: ((
|
|
265
|
+
value: ((n = a.dialog) == null ? void 0 : n.getInputValue()) ?? a.value,
|
|
266
|
+
checked: ((i = a.dialog) == null ? void 0 : i.getChecked()) ?? a.checked,
|
|
374
267
|
dialog: a.dialog,
|
|
375
268
|
signal: a.options.signal
|
|
376
269
|
};
|
|
377
270
|
}
|
|
378
|
-
_handleClose(a,
|
|
379
|
-
const
|
|
380
|
-
if (
|
|
271
|
+
_handleClose(a, n) {
|
|
272
|
+
const i = ee(a, n);
|
|
273
|
+
if (n.action === "cancel" && a.options.onCancel) {
|
|
381
274
|
Promise.resolve(a.options.onCancel(this._buildLifecycleContext(a))).finally(() => {
|
|
382
|
-
this._settle(a,
|
|
275
|
+
this._settle(a, i, !0);
|
|
383
276
|
});
|
|
384
277
|
return;
|
|
385
278
|
}
|
|
386
|
-
if (
|
|
279
|
+
if (n.action === "dismiss" && a.options.onDismiss) {
|
|
387
280
|
Promise.resolve(
|
|
388
281
|
a.options.onDismiss({
|
|
389
282
|
...this._buildLifecycleContext(a),
|
|
390
|
-
source:
|
|
391
|
-
reason:
|
|
283
|
+
source: n.source || "programmatic",
|
|
284
|
+
reason: n.reason
|
|
392
285
|
})
|
|
393
286
|
).finally(() => {
|
|
394
|
-
this._settle(a,
|
|
287
|
+
this._settle(a, i, !0);
|
|
395
288
|
});
|
|
396
289
|
return;
|
|
397
290
|
}
|
|
398
|
-
this._settle(a,
|
|
291
|
+
this._settle(a, i, !0);
|
|
399
292
|
}
|
|
400
293
|
_mergeOptions(a) {
|
|
401
|
-
const
|
|
294
|
+
const n = this._defaults;
|
|
402
295
|
return {
|
|
403
|
-
...
|
|
296
|
+
...n,
|
|
404
297
|
...a,
|
|
405
298
|
checkbox: {
|
|
406
|
-
...
|
|
299
|
+
...n.checkbox || {},
|
|
407
300
|
...a.checkbox || {}
|
|
408
301
|
}
|
|
409
302
|
};
|
|
@@ -418,43 +311,43 @@ class re {
|
|
|
418
311
|
}
|
|
419
312
|
_updateStackZIndex() {
|
|
420
313
|
for (let a = 0; a < this._active.length; a += 1) {
|
|
421
|
-
const
|
|
422
|
-
|
|
314
|
+
const n = this._active[a];
|
|
315
|
+
n.dialog && (n.dialog.style.setProperty("--ui-alert-backdrop-z", String(1e3 + a * 2)), n.dialog.style.setProperty("--ui-alert-z", String(1001 + a * 2)));
|
|
423
316
|
}
|
|
424
317
|
}
|
|
425
318
|
}
|
|
426
|
-
let
|
|
427
|
-
function
|
|
428
|
-
return new
|
|
319
|
+
let x = null;
|
|
320
|
+
function oe(e = {}) {
|
|
321
|
+
return new ne(e.container ?? null);
|
|
429
322
|
}
|
|
430
323
|
function Sa() {
|
|
431
|
-
return
|
|
324
|
+
return x || (x = oe()), x;
|
|
432
325
|
}
|
|
433
|
-
function
|
|
326
|
+
function ue(e = {}) {
|
|
434
327
|
return Sa().alert(e);
|
|
435
328
|
}
|
|
436
|
-
function
|
|
329
|
+
function ge(e = {}) {
|
|
437
330
|
return Sa().confirm(e);
|
|
438
331
|
}
|
|
439
|
-
function
|
|
332
|
+
function me(e = {}) {
|
|
440
333
|
return Sa().prompt(e);
|
|
441
334
|
}
|
|
442
|
-
function
|
|
443
|
-
|
|
335
|
+
function he(e = "programmatic") {
|
|
336
|
+
x && (x.destroy(e), x = null);
|
|
444
337
|
}
|
|
445
|
-
function
|
|
338
|
+
function Ua() {
|
|
446
339
|
return typeof window < "u" && typeof document < "u";
|
|
447
340
|
}
|
|
448
|
-
function
|
|
341
|
+
function te(e) {
|
|
449
342
|
return e === "replace" || e === "stack" ? e : "queue";
|
|
450
343
|
}
|
|
451
|
-
function
|
|
344
|
+
function Qa(e) {
|
|
452
345
|
return `ui-dialog-${e}`;
|
|
453
346
|
}
|
|
454
|
-
function
|
|
347
|
+
function re(e) {
|
|
455
348
|
return e ? typeof e == "string" ? e : e instanceof Error && e.message ? e.message : "Something went wrong. Please try again." : "Something went wrong. Please try again.";
|
|
456
349
|
}
|
|
457
|
-
class
|
|
350
|
+
class se {
|
|
458
351
|
constructor(a) {
|
|
459
352
|
this._container = null, this._ownsContainer = !1, this._queue = [], this._active = [], this._disposed = !1, this._seed = 0, this._container = a ?? null;
|
|
460
353
|
}
|
|
@@ -469,11 +362,11 @@ class le {
|
|
|
469
362
|
}
|
|
470
363
|
destroy(a = "unmount") {
|
|
471
364
|
this._disposed = !0;
|
|
472
|
-
const
|
|
365
|
+
const n = [...this._active, ...this._queue];
|
|
473
366
|
this._queue = [];
|
|
474
|
-
for (const
|
|
475
|
-
this._settle(
|
|
476
|
-
id:
|
|
367
|
+
for (const i of n)
|
|
368
|
+
this._settle(i, {
|
|
369
|
+
id: i.id,
|
|
477
370
|
action: "dismiss",
|
|
478
371
|
source: a,
|
|
479
372
|
reason: a
|
|
@@ -481,46 +374,46 @@ class le {
|
|
|
481
374
|
this._active = [], this._ownsContainer && this._container && this._container.parentElement && this._container.parentElement.removeChild(this._container), this._container = null, this._ownsContainer = !1;
|
|
482
375
|
}
|
|
483
376
|
_enqueue(a) {
|
|
484
|
-
if (!
|
|
377
|
+
if (!Ua() || this._disposed)
|
|
485
378
|
return Promise.resolve({
|
|
486
|
-
id: a.id ||
|
|
379
|
+
id: a.id || Qa(++this._seed),
|
|
487
380
|
action: "dismiss",
|
|
488
381
|
source: "unmount"
|
|
489
382
|
});
|
|
490
|
-
const
|
|
383
|
+
const n = a.id || Qa(++this._seed), i = te(a.mode);
|
|
491
384
|
return new Promise((r) => {
|
|
492
|
-
var
|
|
493
|
-
const
|
|
494
|
-
id:
|
|
495
|
-
mode:
|
|
385
|
+
var c;
|
|
386
|
+
const o = {
|
|
387
|
+
id: n,
|
|
388
|
+
mode: i,
|
|
496
389
|
options: a,
|
|
497
390
|
settled: !1,
|
|
498
391
|
resolve: r,
|
|
499
392
|
cleanup: []
|
|
500
393
|
};
|
|
501
|
-
if ((
|
|
502
|
-
this._settle(
|
|
394
|
+
if ((c = a.signal) != null && c.aborted) {
|
|
395
|
+
this._settle(o, { id: n, action: "dismiss", source: "abort" }, !1);
|
|
503
396
|
return;
|
|
504
397
|
}
|
|
505
|
-
if (
|
|
506
|
-
const
|
|
507
|
-
|
|
398
|
+
if (i === "replace") {
|
|
399
|
+
const l = this._active[this._active.length - 1];
|
|
400
|
+
l && this._settle(l, { id: l.id, action: "dismiss", source: "replace", reason: "replace" }, !1, !1), this._open(o);
|
|
508
401
|
return;
|
|
509
402
|
}
|
|
510
|
-
if (
|
|
511
|
-
this._open(
|
|
403
|
+
if (i === "stack") {
|
|
404
|
+
this._open(o);
|
|
512
405
|
return;
|
|
513
406
|
}
|
|
514
407
|
if (this._active.length > 0) {
|
|
515
|
-
this._queue.push(
|
|
408
|
+
this._queue.push(o);
|
|
516
409
|
return;
|
|
517
410
|
}
|
|
518
|
-
this._open(
|
|
411
|
+
this._open(o);
|
|
519
412
|
});
|
|
520
413
|
}
|
|
521
414
|
_open(a) {
|
|
522
|
-
const
|
|
523
|
-
if (!
|
|
415
|
+
const n = this._ensureContainer();
|
|
416
|
+
if (!n) {
|
|
524
417
|
this._settle(a, {
|
|
525
418
|
id: a.id,
|
|
526
419
|
action: "dismiss",
|
|
@@ -528,70 +421,70 @@ class le {
|
|
|
528
421
|
}, !1);
|
|
529
422
|
return;
|
|
530
423
|
}
|
|
531
|
-
const
|
|
532
|
-
a.dialog =
|
|
424
|
+
const i = document.createElement("ui-dialog");
|
|
425
|
+
a.dialog = i;
|
|
533
426
|
const r = this._buildConfig(a.options, a.id);
|
|
534
|
-
|
|
535
|
-
const
|
|
427
|
+
i.dialogId = a.id, i.config = r;
|
|
428
|
+
const o = (l) => {
|
|
536
429
|
if (a.settled)
|
|
537
430
|
return;
|
|
538
|
-
const
|
|
539
|
-
if (a.resultFormData =
|
|
540
|
-
|
|
431
|
+
const d = l.detail;
|
|
432
|
+
if (a.resultFormData = d == null ? void 0 : d.formData, !a.options.onSubmit) {
|
|
433
|
+
i.clearError();
|
|
541
434
|
return;
|
|
542
435
|
}
|
|
543
|
-
|
|
436
|
+
l.preventDefault(), i.state = "loading", i.clearError(), Promise.resolve(
|
|
544
437
|
a.options.onSubmit({
|
|
545
438
|
id: a.id,
|
|
546
|
-
dialog:
|
|
439
|
+
dialog: i,
|
|
547
440
|
signal: a.options.signal,
|
|
548
|
-
formData:
|
|
441
|
+
formData: d == null ? void 0 : d.formData
|
|
549
442
|
})
|
|
550
443
|
).then(() => {
|
|
551
|
-
a.settled || (
|
|
552
|
-
}).catch((
|
|
553
|
-
|
|
444
|
+
a.settled || (i.state = "idle", i.clearError(), i.close("submit"));
|
|
445
|
+
}).catch((f) => {
|
|
446
|
+
i.state = "error", i.setError(re(f));
|
|
554
447
|
});
|
|
555
|
-
},
|
|
448
|
+
}, c = (l) => {
|
|
556
449
|
if (a.settled)
|
|
557
450
|
return;
|
|
558
|
-
const
|
|
451
|
+
const d = l.detail;
|
|
559
452
|
this._settle(a, {
|
|
560
453
|
id: a.id,
|
|
561
|
-
action:
|
|
562
|
-
source:
|
|
563
|
-
reason:
|
|
454
|
+
action: d.action,
|
|
455
|
+
source: d.source,
|
|
456
|
+
reason: d.reason,
|
|
564
457
|
formData: a.resultFormData
|
|
565
458
|
}, !0);
|
|
566
459
|
};
|
|
567
|
-
if (
|
|
568
|
-
const
|
|
460
|
+
if (i.addEventListener("ui-submit", o), i.addEventListener("ui-close", c), a.cleanup.push(() => i.removeEventListener("ui-submit", o)), a.cleanup.push(() => i.removeEventListener("ui-close", c)), a.options.signal) {
|
|
461
|
+
const l = () => {
|
|
569
462
|
a.settled || this._settle(a, {
|
|
570
463
|
id: a.id,
|
|
571
464
|
action: "dismiss",
|
|
572
465
|
source: "abort"
|
|
573
466
|
}, !1);
|
|
574
467
|
};
|
|
575
|
-
a.options.signal.addEventListener("abort",
|
|
576
|
-
var
|
|
577
|
-
return (
|
|
468
|
+
a.options.signal.addEventListener("abort", l, { once: !0 }), a.cleanup.push(() => {
|
|
469
|
+
var d;
|
|
470
|
+
return (d = a.options.signal) == null ? void 0 : d.removeEventListener("abort", l);
|
|
578
471
|
});
|
|
579
472
|
}
|
|
580
|
-
this._active.push(a),
|
|
473
|
+
this._active.push(a), n.appendChild(i), i.openDialog(), this._updateStackZIndex();
|
|
581
474
|
}
|
|
582
|
-
_settle(a,
|
|
475
|
+
_settle(a, n, i, r = !0) {
|
|
583
476
|
if (!a.settled) {
|
|
584
|
-
if (a.settled = !0, this._cleanupRequest(a), this._active = this._active.filter((
|
|
585
|
-
const
|
|
586
|
-
!
|
|
477
|
+
if (a.settled = !0, this._cleanupRequest(a), this._active = this._active.filter((o) => o !== a), this._queue = this._queue.filter((o) => o !== a), a.dialog) {
|
|
478
|
+
const o = a.dialog;
|
|
479
|
+
!i && o.open && o.close("dismiss", n.source || "abort", n.reason), o.parentElement && o.parentElement.removeChild(o);
|
|
587
480
|
}
|
|
588
|
-
a.resolve(
|
|
481
|
+
a.resolve(n), this._updateStackZIndex(), !this._disposed && r && this._drainQueue();
|
|
589
482
|
}
|
|
590
483
|
}
|
|
591
484
|
_cleanupRequest(a) {
|
|
592
|
-
for (const
|
|
485
|
+
for (const n of a.cleanup.splice(0))
|
|
593
486
|
try {
|
|
594
|
-
|
|
487
|
+
n();
|
|
595
488
|
} catch {
|
|
596
489
|
}
|
|
597
490
|
}
|
|
@@ -601,9 +494,9 @@ class le {
|
|
|
601
494
|
const a = this._queue.shift();
|
|
602
495
|
a && this._open(a);
|
|
603
496
|
}
|
|
604
|
-
_buildConfig(a,
|
|
497
|
+
_buildConfig(a, n) {
|
|
605
498
|
return {
|
|
606
|
-
id:
|
|
499
|
+
id: n,
|
|
607
500
|
title: a.title,
|
|
608
501
|
description: a.description,
|
|
609
502
|
submitText: a.submitText || "Submit",
|
|
@@ -626,7 +519,7 @@ class le {
|
|
|
626
519
|
};
|
|
627
520
|
}
|
|
628
521
|
_ensureContainer() {
|
|
629
|
-
if (!
|
|
522
|
+
if (!Ua())
|
|
630
523
|
return null;
|
|
631
524
|
if (this._container && this._container.isConnected)
|
|
632
525
|
return this._container;
|
|
@@ -635,28 +528,28 @@ class le {
|
|
|
635
528
|
}
|
|
636
529
|
_updateStackZIndex() {
|
|
637
530
|
for (let a = 0; a < this._active.length; a += 1) {
|
|
638
|
-
const
|
|
639
|
-
|
|
531
|
+
const n = this._active[a];
|
|
532
|
+
n.dialog && (n.dialog.style.setProperty("--ui-dialog-backdrop-z", String(1200 + a * 2)), n.dialog.style.setProperty("--ui-dialog-z", String(1201 + a * 2)));
|
|
640
533
|
}
|
|
641
534
|
}
|
|
642
535
|
}
|
|
643
|
-
let
|
|
644
|
-
function
|
|
645
|
-
return new
|
|
536
|
+
let b = null;
|
|
537
|
+
function pe(e = {}) {
|
|
538
|
+
return new se(e.container ?? null);
|
|
646
539
|
}
|
|
647
|
-
function
|
|
648
|
-
return
|
|
540
|
+
function Na() {
|
|
541
|
+
return b || (b = pe()), b;
|
|
649
542
|
}
|
|
650
|
-
function
|
|
651
|
-
return
|
|
543
|
+
function xe(e = {}) {
|
|
544
|
+
return Na().open(e);
|
|
652
545
|
}
|
|
653
|
-
function
|
|
654
|
-
return
|
|
546
|
+
function be(e = {}) {
|
|
547
|
+
return Na().confirm(e);
|
|
655
548
|
}
|
|
656
|
-
function
|
|
657
|
-
|
|
549
|
+
function ye(e = "programmatic") {
|
|
550
|
+
b && (b.destroy(e), b = null);
|
|
658
551
|
}
|
|
659
|
-
const
|
|
552
|
+
const Ga = {
|
|
660
553
|
1: "#0000000d",
|
|
661
554
|
2: "#0000001a",
|
|
662
555
|
3: "#00000026",
|
|
@@ -669,7 +562,7 @@ const Ya = {
|
|
|
669
562
|
10: "#000c",
|
|
670
563
|
11: "#000000e6",
|
|
671
564
|
12: "#000000f2"
|
|
672
|
-
},
|
|
565
|
+
}, Ka = {
|
|
673
566
|
1: "#ffffff0d",
|
|
674
567
|
2: "#ffffff1a",
|
|
675
568
|
3: "#ffffff26",
|
|
@@ -682,7 +575,7 @@ const Ya = {
|
|
|
682
575
|
10: "#fffc",
|
|
683
576
|
11: "#ffffffe6",
|
|
684
577
|
12: "#fffffff2"
|
|
685
|
-
},
|
|
578
|
+
}, g = {
|
|
686
579
|
amber: {
|
|
687
580
|
light: {
|
|
688
581
|
scale: {
|
|
@@ -1033,7 +926,7 @@ const Ya = {
|
|
|
1033
926
|
track: "#7b7b7b"
|
|
1034
927
|
}
|
|
1035
928
|
}
|
|
1036
|
-
},
|
|
929
|
+
}, ce = {
|
|
1037
930
|
button: {
|
|
1038
931
|
"height-sm": "32px",
|
|
1039
932
|
"height-md": "36px",
|
|
@@ -1332,7 +1225,7 @@ const Ya = {
|
|
|
1332
1225
|
border: "1px solid color-mix(in srgb, var(--gray-a5) 84%, transparent)",
|
|
1333
1226
|
"focus-ring": "0 0 0 3px color-mix(in srgb, var(--accent-a5) 48%, transparent)"
|
|
1334
1227
|
}
|
|
1335
|
-
},
|
|
1228
|
+
}, le = {
|
|
1336
1229
|
button: {
|
|
1337
1230
|
"height-sm": "32px",
|
|
1338
1231
|
"height-md": "36px",
|
|
@@ -1632,7 +1525,7 @@ const Ya = {
|
|
|
1632
1525
|
"focus-ring": "0 0 0 3px color-mix(in srgb, var(--accent-a6) 42%, transparent)"
|
|
1633
1526
|
}
|
|
1634
1527
|
};
|
|
1635
|
-
function
|
|
1528
|
+
function Ja(e) {
|
|
1636
1529
|
return {
|
|
1637
1530
|
primary: e.scale[9],
|
|
1638
1531
|
primaryHover: e.scale[10] || e.scale[9],
|
|
@@ -1686,18 +1579,18 @@ const _a = {
|
|
|
1686
1579
|
11: "#0000009b",
|
|
1687
1580
|
12: "#000000df"
|
|
1688
1581
|
},
|
|
1689
|
-
blackAlpha:
|
|
1690
|
-
whiteAlpha:
|
|
1582
|
+
blackAlpha: Ga,
|
|
1583
|
+
whiteAlpha: Ka,
|
|
1691
1584
|
accent: {
|
|
1692
|
-
...
|
|
1585
|
+
...g.amber.light.scale
|
|
1693
1586
|
},
|
|
1694
1587
|
accentAlpha: {
|
|
1695
|
-
...
|
|
1588
|
+
...g.amber.light.alphaScale
|
|
1696
1589
|
},
|
|
1697
|
-
accentContrast:
|
|
1698
|
-
accentSurface:
|
|
1699
|
-
accentIndicator:
|
|
1700
|
-
accentTrack:
|
|
1590
|
+
accentContrast: g.amber.light.contrast,
|
|
1591
|
+
accentSurface: g.amber.light.surface,
|
|
1592
|
+
accentIndicator: g.amber.light.indicator,
|
|
1593
|
+
accentTrack: g.amber.light.track
|
|
1701
1594
|
},
|
|
1702
1595
|
surfaces: {
|
|
1703
1596
|
background: "#ffffff",
|
|
@@ -1795,10 +1688,10 @@ const _a = {
|
|
|
1795
1688
|
effects: {
|
|
1796
1689
|
backdropFilterPanel: "blur(64px)"
|
|
1797
1690
|
},
|
|
1798
|
-
components:
|
|
1691
|
+
components: ce,
|
|
1799
1692
|
zIndex: { modal: 1e3, overlay: 900, toast: 1100 },
|
|
1800
1693
|
breakpoints: { sm: "640px", md: "768px", lg: "1024px" }
|
|
1801
|
-
},
|
|
1694
|
+
}, de = {
|
|
1802
1695
|
..._a,
|
|
1803
1696
|
colors: {
|
|
1804
1697
|
primary: "#ffc53d",
|
|
@@ -1845,18 +1738,18 @@ const _a = {
|
|
|
1845
1738
|
11: "#ffffffaf",
|
|
1846
1739
|
12: "#ffffffed"
|
|
1847
1740
|
},
|
|
1848
|
-
blackAlpha:
|
|
1849
|
-
whiteAlpha:
|
|
1741
|
+
blackAlpha: Ga,
|
|
1742
|
+
whiteAlpha: Ka,
|
|
1850
1743
|
accent: {
|
|
1851
|
-
...
|
|
1744
|
+
...g.amber.dark.scale
|
|
1852
1745
|
},
|
|
1853
1746
|
accentAlpha: {
|
|
1854
|
-
...
|
|
1747
|
+
...g.amber.dark.alphaScale
|
|
1855
1748
|
},
|
|
1856
|
-
accentContrast:
|
|
1857
|
-
accentSurface:
|
|
1858
|
-
accentIndicator:
|
|
1859
|
-
accentTrack:
|
|
1749
|
+
accentContrast: g.amber.dark.contrast,
|
|
1750
|
+
accentSurface: g.amber.dark.surface,
|
|
1751
|
+
accentIndicator: g.amber.dark.indicator,
|
|
1752
|
+
accentTrack: g.amber.dark.track
|
|
1860
1753
|
},
|
|
1861
1754
|
surfaces: {
|
|
1862
1755
|
background: "#111111",
|
|
@@ -1878,188 +1771,184 @@ const _a = {
|
|
|
1878
1771
|
5: "0 0 0 1px var(--gray-a6),0 12px 60px var(--black-a5),0 12px 32px -16px var(--black-a7)",
|
|
1879
1772
|
6: "0 0 0 1px var(--gray-a6),0 12px 60px var(--black-a4),0 16px 64px var(--black-a6),0 16px 36px -20px var(--black-a11)"
|
|
1880
1773
|
},
|
|
1881
|
-
components:
|
|
1882
|
-
},
|
|
1883
|
-
function
|
|
1774
|
+
components: le
|
|
1775
|
+
}, we = _a, Xa = /* @__PURE__ */ new Set();
|
|
1776
|
+
function p(e, a) {
|
|
1884
1777
|
if (!(!e && !a))
|
|
1885
1778
|
return { ...e || {}, ...a || {} };
|
|
1886
1779
|
}
|
|
1887
|
-
function
|
|
1888
|
-
var
|
|
1889
|
-
const
|
|
1780
|
+
function Ya(e, a) {
|
|
1781
|
+
var d, f, u, m, h, y, w, v, k, _, S, C, z, E, A, D, T, I, L, M, P, R, H, F, O, B, $, V, j, Z, U, Q, W, N, G, K, J, X, Y, q, aa, ea, ia, na, oa, ta, ra, sa, pa, ca, la, da, fa, ua, ga, ma, ha, xa, ba, ya, wa, va;
|
|
1782
|
+
const n = (a == null ? void 0 : a.mode) || "light", i = n === "dark" ? de : _a, r = a == null ? void 0 : a.accentPalette, o = r ? g[r][n] : null, c = o ? {
|
|
1890
1783
|
colors: {
|
|
1891
|
-
...
|
|
1784
|
+
...Ja(o)
|
|
1892
1785
|
},
|
|
1893
1786
|
palette: {
|
|
1894
|
-
accent:
|
|
1895
|
-
accentAlpha:
|
|
1896
|
-
accentContrast:
|
|
1897
|
-
accentSurface:
|
|
1898
|
-
accentIndicator:
|
|
1899
|
-
accentTrack:
|
|
1787
|
+
accent: o.scale,
|
|
1788
|
+
accentAlpha: o.alphaScale,
|
|
1789
|
+
accentContrast: o.contrast,
|
|
1790
|
+
accentSurface: o.surface,
|
|
1791
|
+
accentIndicator: o.indicator,
|
|
1792
|
+
accentTrack: o.track
|
|
1900
1793
|
}
|
|
1901
1794
|
} : null;
|
|
1902
1795
|
return {
|
|
1903
|
-
...
|
|
1796
|
+
...i,
|
|
1904
1797
|
...e,
|
|
1905
1798
|
colors: {
|
|
1906
|
-
...
|
|
1907
|
-
...(
|
|
1799
|
+
...i.colors,
|
|
1800
|
+
...(c == null ? void 0 : c.colors) || {},
|
|
1908
1801
|
...(e == null ? void 0 : e.colors) || {}
|
|
1909
1802
|
},
|
|
1910
1803
|
palette: {
|
|
1911
|
-
...
|
|
1912
|
-
...(
|
|
1804
|
+
...i.palette || {},
|
|
1805
|
+
...(c == null ? void 0 : c.palette) || {},
|
|
1913
1806
|
...(e == null ? void 0 : e.palette) || {},
|
|
1914
|
-
gray:
|
|
1915
|
-
grayAlpha:
|
|
1916
|
-
blackAlpha:
|
|
1917
|
-
whiteAlpha:
|
|
1918
|
-
accent:
|
|
1919
|
-
accentAlpha:
|
|
1807
|
+
gray: p((d = i.palette) == null ? void 0 : d.gray, (f = e == null ? void 0 : e.palette) == null ? void 0 : f.gray),
|
|
1808
|
+
grayAlpha: p((u = i.palette) == null ? void 0 : u.grayAlpha, (m = e == null ? void 0 : e.palette) == null ? void 0 : m.grayAlpha),
|
|
1809
|
+
blackAlpha: p((h = i.palette) == null ? void 0 : h.blackAlpha, (y = e == null ? void 0 : e.palette) == null ? void 0 : y.blackAlpha),
|
|
1810
|
+
whiteAlpha: p((w = i.palette) == null ? void 0 : w.whiteAlpha, (v = e == null ? void 0 : e.palette) == null ? void 0 : v.whiteAlpha),
|
|
1811
|
+
accent: p((o == null ? void 0 : o.scale) || ((k = i.palette) == null ? void 0 : k.accent), (_ = e == null ? void 0 : e.palette) == null ? void 0 : _.accent),
|
|
1812
|
+
accentAlpha: p((o == null ? void 0 : o.alphaScale) || ((S = i.palette) == null ? void 0 : S.accentAlpha), (C = e == null ? void 0 : e.palette) == null ? void 0 : C.accentAlpha)
|
|
1920
1813
|
},
|
|
1921
1814
|
surfaces: {
|
|
1922
|
-
...
|
|
1815
|
+
...i.surfaces || {},
|
|
1923
1816
|
...(e == null ? void 0 : e.surfaces) || {}
|
|
1924
1817
|
},
|
|
1925
1818
|
shadows: {
|
|
1926
|
-
...
|
|
1819
|
+
...i.shadows || {},
|
|
1927
1820
|
...(e == null ? void 0 : e.shadows) || {}
|
|
1928
1821
|
},
|
|
1929
1822
|
spacing: {
|
|
1930
|
-
...
|
|
1823
|
+
...i.spacing || {},
|
|
1931
1824
|
...(e == null ? void 0 : e.spacing) || {}
|
|
1932
1825
|
},
|
|
1933
|
-
spaceScale:
|
|
1934
|
-
radiusScale:
|
|
1826
|
+
spaceScale: p(i.spaceScale, e == null ? void 0 : e.spaceScale),
|
|
1827
|
+
radiusScale: p(i.radiusScale, e == null ? void 0 : e.radiusScale),
|
|
1935
1828
|
typography: {
|
|
1936
|
-
...
|
|
1829
|
+
...i.typography || {},
|
|
1937
1830
|
...(e == null ? void 0 : e.typography) || {},
|
|
1938
1831
|
size: {
|
|
1939
|
-
...((
|
|
1940
|
-
...((
|
|
1832
|
+
...((z = i.typography) == null ? void 0 : z.size) || {},
|
|
1833
|
+
...((E = e == null ? void 0 : e.typography) == null ? void 0 : E.size) || {}
|
|
1941
1834
|
},
|
|
1942
|
-
fontScale:
|
|
1943
|
-
lineHeight:
|
|
1944
|
-
letterSpacing:
|
|
1835
|
+
fontScale: p((A = i.typography) == null ? void 0 : A.fontScale, (D = e == null ? void 0 : e.typography) == null ? void 0 : D.fontScale),
|
|
1836
|
+
lineHeight: p((T = i.typography) == null ? void 0 : T.lineHeight, (I = e == null ? void 0 : e.typography) == null ? void 0 : I.lineHeight),
|
|
1837
|
+
letterSpacing: p((L = i.typography) == null ? void 0 : L.letterSpacing, (M = e == null ? void 0 : e.typography) == null ? void 0 : M.letterSpacing)
|
|
1945
1838
|
},
|
|
1946
1839
|
motion: {
|
|
1947
|
-
...
|
|
1840
|
+
...i.motion || {},
|
|
1948
1841
|
...(e == null ? void 0 : e.motion) || {}
|
|
1949
1842
|
},
|
|
1950
1843
|
effects: {
|
|
1951
|
-
...
|
|
1844
|
+
...i.effects || {},
|
|
1952
1845
|
...(e == null ? void 0 : e.effects) || {}
|
|
1953
1846
|
},
|
|
1954
1847
|
components: {
|
|
1955
|
-
...
|
|
1848
|
+
...i.components || {},
|
|
1956
1849
|
...(e == null ? void 0 : e.components) || {},
|
|
1957
|
-
button:
|
|
1958
|
-
badge:
|
|
1959
|
-
dropdown:
|
|
1960
|
-
select:
|
|
1961
|
-
sidebar:
|
|
1962
|
-
card:
|
|
1963
|
-
navigationMenu:
|
|
1964
|
-
blockControls:
|
|
1965
|
-
box:
|
|
1966
|
-
breadcrumb:
|
|
1967
|
-
contextMenu:
|
|
1968
|
-
menubar:
|
|
1969
|
-
alert:
|
|
1970
|
-
alertDialog:
|
|
1971
|
-
appHeader:
|
|
1972
|
-
aspectRatio:
|
|
1973
|
-
avatar:
|
|
1974
|
-
menu:
|
|
1975
|
-
multiSelect:
|
|
1976
|
-
panel:
|
|
1977
|
-
input:
|
|
1850
|
+
button: p((P = i.components) == null ? void 0 : P.button, (R = e == null ? void 0 : e.components) == null ? void 0 : R.button),
|
|
1851
|
+
badge: p((H = i.components) == null ? void 0 : H.badge, (F = e == null ? void 0 : e.components) == null ? void 0 : F.badge),
|
|
1852
|
+
dropdown: p((O = i.components) == null ? void 0 : O.dropdown, (B = e == null ? void 0 : e.components) == null ? void 0 : B.dropdown),
|
|
1853
|
+
select: p(($ = i.components) == null ? void 0 : $.select, (V = e == null ? void 0 : e.components) == null ? void 0 : V.select),
|
|
1854
|
+
sidebar: p((j = i.components) == null ? void 0 : j.sidebar, (Z = e == null ? void 0 : e.components) == null ? void 0 : Z.sidebar),
|
|
1855
|
+
card: p((U = i.components) == null ? void 0 : U.card, (Q = e == null ? void 0 : e.components) == null ? void 0 : Q.card),
|
|
1856
|
+
navigationMenu: p((W = i.components) == null ? void 0 : W.navigationMenu, (N = e == null ? void 0 : e.components) == null ? void 0 : N.navigationMenu),
|
|
1857
|
+
blockControls: p((G = i.components) == null ? void 0 : G.blockControls, (K = e == null ? void 0 : e.components) == null ? void 0 : K.blockControls),
|
|
1858
|
+
box: p((J = i.components) == null ? void 0 : J.box, (X = e == null ? void 0 : e.components) == null ? void 0 : X.box),
|
|
1859
|
+
breadcrumb: p((Y = i.components) == null ? void 0 : Y.breadcrumb, (q = e == null ? void 0 : e.components) == null ? void 0 : q.breadcrumb),
|
|
1860
|
+
contextMenu: p((aa = i.components) == null ? void 0 : aa.contextMenu, (ea = e == null ? void 0 : e.components) == null ? void 0 : ea.contextMenu),
|
|
1861
|
+
menubar: p((ia = i.components) == null ? void 0 : ia.menubar, (na = e == null ? void 0 : e.components) == null ? void 0 : na.menubar),
|
|
1862
|
+
alert: p((oa = i.components) == null ? void 0 : oa.alert, (ta = e == null ? void 0 : e.components) == null ? void 0 : ta.alert),
|
|
1863
|
+
alertDialog: p((ra = i.components) == null ? void 0 : ra.alertDialog, (sa = e == null ? void 0 : e.components) == null ? void 0 : sa.alertDialog),
|
|
1864
|
+
appHeader: p((pa = i.components) == null ? void 0 : pa.appHeader, (ca = e == null ? void 0 : e.components) == null ? void 0 : ca.appHeader),
|
|
1865
|
+
aspectRatio: p((la = i.components) == null ? void 0 : la.aspectRatio, (da = e == null ? void 0 : e.components) == null ? void 0 : da.aspectRatio),
|
|
1866
|
+
avatar: p((fa = i.components) == null ? void 0 : fa.avatar, (ua = e == null ? void 0 : e.components) == null ? void 0 : ua.avatar),
|
|
1867
|
+
menu: p((ga = i.components) == null ? void 0 : ga.menu, (ma = e == null ? void 0 : e.components) == null ? void 0 : ma.menu),
|
|
1868
|
+
multiSelect: p((ha = i.components) == null ? void 0 : ha.multiSelect, (xa = e == null ? void 0 : e.components) == null ? void 0 : xa.multiSelect),
|
|
1869
|
+
panel: p((ba = i.components) == null ? void 0 : ba.panel, (ya = e == null ? void 0 : e.components) == null ? void 0 : ya.panel),
|
|
1870
|
+
input: p((wa = i.components) == null ? void 0 : wa.input, (va = e == null ? void 0 : e.components) == null ? void 0 : va.input)
|
|
1978
1871
|
},
|
|
1979
1872
|
zIndex: {
|
|
1980
|
-
...
|
|
1873
|
+
...i.zIndex || {},
|
|
1981
1874
|
...(e == null ? void 0 : e.zIndex) || {}
|
|
1982
1875
|
},
|
|
1983
1876
|
breakpoints: {
|
|
1984
|
-
...
|
|
1877
|
+
...i.breakpoints || {},
|
|
1985
1878
|
...(e == null ? void 0 : e.breakpoints) || {}
|
|
1986
1879
|
}
|
|
1987
1880
|
};
|
|
1988
1881
|
}
|
|
1989
|
-
function
|
|
1990
|
-
const
|
|
1991
|
-
return
|
|
1882
|
+
function ve(e, a, n = "light") {
|
|
1883
|
+
const i = g[a][n], r = e;
|
|
1884
|
+
return Ya(
|
|
1992
1885
|
{
|
|
1993
1886
|
...r,
|
|
1994
1887
|
colors: {
|
|
1995
1888
|
...r.colors || {},
|
|
1996
|
-
...
|
|
1889
|
+
...Ja(i)
|
|
1997
1890
|
},
|
|
1998
1891
|
palette: {
|
|
1999
1892
|
...r.palette || {},
|
|
2000
|
-
accent:
|
|
2001
|
-
accentAlpha:
|
|
2002
|
-
accentContrast:
|
|
2003
|
-
accentSurface:
|
|
2004
|
-
accentIndicator:
|
|
2005
|
-
accentTrack:
|
|
1893
|
+
accent: i.scale,
|
|
1894
|
+
accentAlpha: i.alphaScale,
|
|
1895
|
+
accentContrast: i.contrast,
|
|
1896
|
+
accentSurface: i.surface,
|
|
1897
|
+
accentIndicator: i.indicator,
|
|
1898
|
+
accentTrack: i.track
|
|
2006
1899
|
}
|
|
2007
1900
|
},
|
|
2008
|
-
{ mode:
|
|
1901
|
+
{ mode: n }
|
|
2009
1902
|
);
|
|
2010
1903
|
}
|
|
2011
|
-
function
|
|
1904
|
+
function t(e, a, n) {
|
|
2012
1905
|
try {
|
|
2013
|
-
e.style.setProperty(a,
|
|
1906
|
+
e.style.setProperty(a, n);
|
|
2014
1907
|
} catch {
|
|
2015
1908
|
}
|
|
2016
1909
|
}
|
|
2017
|
-
function
|
|
2018
|
-
|
|
2019
|
-
typeof r == "string" && r && e.style.setProperty(`${a}${
|
|
1910
|
+
function s(e, a, n) {
|
|
1911
|
+
n && Object.entries(n).forEach(([i, r]) => {
|
|
1912
|
+
typeof r == "string" && r && e.style.setProperty(`${a}${i}`, r);
|
|
2020
1913
|
});
|
|
2021
1914
|
}
|
|
2022
|
-
function
|
|
2023
|
-
e &&
|
|
1915
|
+
function ke(e) {
|
|
1916
|
+
e && Xa.add(e);
|
|
2024
1917
|
}
|
|
2025
|
-
function
|
|
2026
|
-
var
|
|
2027
|
-
|
|
1918
|
+
function Wa(e, a) {
|
|
1919
|
+
var n, i, r, o, c, l, d, f, u, m, h, y, w, v, k, _, S, C, z, E, A, D, T, I, L, M, P, R, H, F, O, B, $, V, j, Z, U, Q, W, N, G, K, J, X, Y, q, aa, ea, ia, na, oa, ta, ra, sa, pa, ca, la, da, fa, ua, ga, ma, ha, xa, ba, ya, wa, va, Ca, za, Ea, Aa, Da, Ta, Ia, La, Ma, Pa, Ra, Ha, Fa, Oa, Ba, $a, Va;
|
|
1920
|
+
t(e, "--ui-color-primary", a.colors.primary), t(e, "--ui-color-primary-hover", a.colors.primaryHover || a.colors.primary), t(e, "--ui-color-foreground-on-primary", a.colors.foregroundOnPrimary || "#ffffff"), t(e, "--ui-color-background", a.colors.background || "#ffffff"), t(e, "--ui-color-surface", a.colors.surface || a.colors.background || "#ffffff"), t(e, "--ui-color-surface-alt", a.colors.surfaceAlt || a.colors.surface || "#f9f9f9"), t(e, "--ui-color-text", a.colors.text || "#202020"), t(e, "--ui-color-muted", a.colors.muted || "#646464"), t(e, "--ui-color-border", a.colors.border || "#0000001f"), t(e, "--ui-color-focus-ring", a.colors.focusRing || a.colors.primary), t(e, "--ui-color-success", a.colors.success || "#30a46c"), t(e, "--ui-color-danger", a.colors.danger || "#e5484d"), t(e, "--ui-color-warning", a.colors.warning || a.colors.primary), t(e, "--ui-primary", a.colors.primary), t(e, "--ui-primary-hover", a.colors.primaryHover || a.colors.primary), t(e, "--ui-foreground", a.colors.foregroundOnPrimary || "#ffffff"), t(e, "--ui-background", a.colors.background || "#ffffff"), t(e, "--ui-surface", a.colors.surface || a.colors.background || "#ffffff"), t(e, "--ui-surface-alt", a.colors.surfaceAlt || a.colors.surface || "#f9f9f9"), t(e, "--ui-text", a.colors.text || "#202020"), t(e, "--ui-muted", a.colors.muted || "#646464"), t(e, "--ui-border", a.colors.border || "#0000001f"), t(e, "--ui-focus-ring", a.colors.focusRing || a.colors.primary), t(e, "--ui-success", a.colors.success || "#30a46c"), t(e, "--ui-error", a.colors.danger || "#e5484d"), t(e, "--ui-warning", a.colors.warning || a.colors.primary), t(e, "--ui-radius", a.radius || "4px"), t(e, "--ui-space-xs", ((n = a.spacing) == null ? void 0 : n.xs) || "4px"), t(e, "--ui-space-sm", ((i = a.spacing) == null ? void 0 : i.sm) || "8px"), t(e, "--ui-space-md", ((r = a.spacing) == null ? void 0 : r.md) || "12px"), t(e, "--ui-space-lg", ((o = a.spacing) == null ? void 0 : o.lg) || "24px"), t(e, "--ui-space-xl", ((c = a.spacing) == null ? void 0 : c.xl) || "32px"), t(e, "--ui-space-xxl", ((l = a.spacing) == null ? void 0 : l.xxl) || "48px"), t(e, "--ui-default-gap", ((d = a.spacing) == null ? void 0 : d.sm) || ((f = a.spaceScale) == null ? void 0 : f["2"]) || "8px"), t(e, "--ui-shadow-sm", ((u = a.shadows) == null ? void 0 : u.sm) || ((m = a.shadows) == null ? void 0 : m["2"]) || "none"), t(e, "--ui-shadow-md", ((h = a.shadows) == null ? void 0 : h.md) || ((y = a.shadows) == null ? void 0 : y["3"]) || "none"), t(e, "--ui-shadow-lg", ((w = a.shadows) == null ? void 0 : w.lg) || ((v = a.shadows) == null ? void 0 : v["4"]) || "none"), t(e, "--ui-font-family", ((k = a.typography) == null ? void 0 : k.family) || "system-ui, sans-serif"), t(e, "--ui-font-family-heading", ((_ = a.typography) == null ? void 0 : _.headingFamily) || ((S = a.typography) == null ? void 0 : S.family) || "system-ui, sans-serif"), t(e, "--ui-font-family-code", ((C = a.typography) == null ? void 0 : C.codeFamily) || "monospace"), t(e, "--ui-font-size-sm", ((E = (z = a.typography) == null ? void 0 : z.size) == null ? void 0 : E.sm) || "12px"), t(e, "--ui-font-size-md", ((D = (A = a.typography) == null ? void 0 : A.size) == null ? void 0 : D.md) || "14px"), t(e, "--ui-font-size-lg", ((I = (T = a.typography) == null ? void 0 : T.size) == null ? void 0 : I.lg) || "16px"), t(e, "--ui-default-font-size", ((M = (L = a.typography) == null ? void 0 : L.size) == null ? void 0 : M.md) || ((R = (P = a.typography) == null ? void 0 : P.fontScale) == null ? void 0 : R["2"]) || "14px"), t(e, "--ui-default-line-height", ((F = (H = a.typography) == null ? void 0 : H.lineHeight) == null ? void 0 : F["2"]) || "20px"), t(e, "--ui-default-letter-spacing", ((B = (O = a.typography) == null ? void 0 : O.letterSpacing) == null ? void 0 : B["2"]) || "0em"), t(e, "--ui-motion-short", (($ = a.motion) == null ? void 0 : $.durationShort) || "120ms"), t(e, "--ui-motion-base", ((V = a.motion) == null ? void 0 : V.durationBase) || "180ms"), t(e, "--ui-motion-long", ((j = a.motion) == null ? void 0 : j.durationLong) || "260ms"), t(e, "--ui-motion-easing", ((Z = a.motion) == null ? void 0 : Z.easing) || "cubic-bezier(0.2, 0.8, 0.2, 1)"), t(e, "--ui-z-modal", String(((U = a.zIndex) == null ? void 0 : U.modal) ?? 1e3)), t(e, "--ui-z-overlay", String(((Q = a.zIndex) == null ? void 0 : Q.overlay) ?? 900)), t(e, "--ui-z-toast", String(((W = a.zIndex) == null ? void 0 : W.toast) ?? 1100)), t(e, "--ui-breakpoint-sm", ((N = a.breakpoints) == null ? void 0 : N.sm) || "640px"), t(e, "--ui-breakpoint-md", ((G = a.breakpoints) == null ? void 0 : G.md) || "768px"), t(e, "--ui-breakpoint-lg", ((K = a.breakpoints) == null ? void 0 : K.lg) || "1024px"), t(e, "--color-background", ((J = a.surfaces) == null ? void 0 : J.background) || a.colors.background || "#ffffff"), t(e, "--color-surface", ((X = a.surfaces) == null ? void 0 : X.surface) || a.colors.surface || "#fcfcfc"), t(e, "--color-panel", ((Y = a.surfaces) == null ? void 0 : Y.panel) || ((q = a.surfaces) == null ? void 0 : q.panelTranslucent) || "#ffffffcc"), t(e, "--color-panel-solid", ((aa = a.surfaces) == null ? void 0 : aa.panelSolid) || a.colors.surface || "#ffffff"), t(e, "--color-panel-translucent", ((ea = a.surfaces) == null ? void 0 : ea.panelTranslucent) || "#ffffffcc"), t(e, "--color-overlay", ((ia = a.surfaces) == null ? void 0 : ia.overlay) || "rgba(2, 6, 23, 0.52)"), t(e, "--color-transparent", ((na = a.surfaces) == null ? void 0 : na.transparent) || "transparent"), t(e, "--backdrop-filter-panel", ((oa = a.effects) == null ? void 0 : oa.backdropFilterPanel) || "blur(64px)"), (ta = a.palette) != null && ta.accentContrast && t(e, "--accent-contrast", a.palette.accentContrast), (ra = a.palette) != null && ra.accentSurface && t(e, "--accent-surface", a.palette.accentSurface), (sa = a.palette) != null && sa.accentIndicator && t(e, "--accent-indicator", a.palette.accentIndicator), (pa = a.palette) != null && pa.accentTrack && t(e, "--accent-track", a.palette.accentTrack), s(e, "--gray-", (ca = a.palette) == null ? void 0 : ca.gray), s(e, "--gray-a", (la = a.palette) == null ? void 0 : la.grayAlpha), s(e, "--black-a", (da = a.palette) == null ? void 0 : da.blackAlpha), s(e, "--white-a", (fa = a.palette) == null ? void 0 : fa.whiteAlpha), s(e, "--accent-", (ua = a.palette) == null ? void 0 : ua.accent), s(e, "--accent-a", (ga = a.palette) == null ? void 0 : ga.accentAlpha), s(e, "--space-", a.spaceScale), s(e, "--radius-", a.radiusScale), s(e, "--font-size-", (ma = a.typography) == null ? void 0 : ma.fontScale), s(e, "--line-height-", (ha = a.typography) == null ? void 0 : ha.lineHeight), s(e, "--letter-spacing-", (xa = a.typography) == null ? void 0 : xa.letterSpacing), s(e, "--shadow-", a.shadows), s(e, "--base-button-", (ba = a.components) == null ? void 0 : ba.button), s(e, "--base-badge-", (ya = a.components) == null ? void 0 : ya.badge), s(e, "--base-dropdown-", (wa = a.components) == null ? void 0 : wa.dropdown), s(e, "--base-select-", (va = a.components) == null ? void 0 : va.select), s(e, "--base-sidebar-", (Ca = a.components) == null ? void 0 : Ca.sidebar), s(e, "--base-block-controls-", (za = a.components) == null ? void 0 : za.blockControls), s(e, "--base-box-", (Ea = a.components) == null ? void 0 : Ea.box), s(e, "--base-breadcrumb-", (Aa = a.components) == null ? void 0 : Aa.breadcrumb), s(e, "--base-card-", (Da = a.components) == null ? void 0 : Da.card), s(e, "--base-multi-select-", (Ta = a.components) == null ? void 0 : Ta.multiSelect), s(e, "--base-navigation-menu-", (Ia = a.components) == null ? void 0 : Ia.navigationMenu), s(e, "--base-menubar-", (La = a.components) == null ? void 0 : La.menubar), s(e, "--base-context-menu-", (Ma = a.components) == null ? void 0 : Ma.contextMenu), s(e, "--base-alert-", (Pa = a.components) == null ? void 0 : Pa.alert), s(e, "--base-alert-dialog-", (Ra = a.components) == null ? void 0 : Ra.alertDialog), s(e, "--base-app-header-", (Ha = a.components) == null ? void 0 : Ha.appHeader), s(e, "--base-aspect-ratio-", (Fa = a.components) == null ? void 0 : Fa.aspectRatio), s(e, "--base-avatar-", (Oa = a.components) == null ? void 0 : Oa.avatar), s(e, "--base-menu-", (Ba = a.components) == null ? void 0 : Ba.menu), s(e, "--base-panel-", ($a = a.components) == null ? void 0 : $a.panel), s(e, "--base-input-", (Va = a.components) == null ? void 0 : Va.input);
|
|
2028
1921
|
}
|
|
2029
|
-
function
|
|
1922
|
+
function _e(e, a = typeof document < "u" ? document : null) {
|
|
2030
1923
|
if (!a)
|
|
2031
1924
|
return;
|
|
2032
|
-
const
|
|
1925
|
+
const n = Ya(e), i = a === document || a instanceof ShadowRoot;
|
|
2033
1926
|
let r;
|
|
2034
|
-
if (a === document ? r = document.documentElement : a instanceof ShadowRoot ? r = a.host : r = a,
|
|
2035
|
-
for (const
|
|
1927
|
+
if (a === document ? r = document.documentElement : a instanceof ShadowRoot ? r = a.host : r = a, Wa(r, n), i)
|
|
1928
|
+
for (const o of Xa)
|
|
2036
1929
|
try {
|
|
2037
|
-
|
|
1930
|
+
Wa(o, n);
|
|
2038
1931
|
} catch {
|
|
2039
1932
|
}
|
|
2040
1933
|
}
|
|
2041
1934
|
export {
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
1935
|
+
ne as A,
|
|
1936
|
+
se as D,
|
|
1937
|
+
ue as a,
|
|
2045
1938
|
ge as b,
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
1939
|
+
oe as c,
|
|
1940
|
+
he as d,
|
|
1941
|
+
pe as e,
|
|
1942
|
+
be as f,
|
|
1943
|
+
ye as g,
|
|
1944
|
+
g as h,
|
|
1945
|
+
_a as i,
|
|
1946
|
+
de as j,
|
|
1947
|
+
we as k,
|
|
1948
|
+
Ya as l,
|
|
2056
1949
|
_e as m,
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
Ce as r,
|
|
2062
|
-
he as s,
|
|
2063
|
-
ee as t,
|
|
2064
|
-
Se as w
|
|
1950
|
+
me as p,
|
|
1951
|
+
ke as r,
|
|
1952
|
+
xe as s,
|
|
1953
|
+
ve as w
|
|
2065
1954
|
};
|