@exegia/corpora-ui 3.1.0 → 4.0.0
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/dist-lib/autocomplete-DzjspdKa.js +151 -0
- package/dist-lib/base-CiR7nLAD.js +37 -0
- package/dist-lib/breadcrumb-DtFOhTfs.js +83 -0
- package/dist-lib/{button-CIRkQXA6.js → button-DDBbG_zF.js} +34 -43
- package/dist-lib/button.js +1 -1
- package/dist-lib/calendar-Dyut8HPa.js +62 -0
- package/dist-lib/checkbox-group-B0BPFc-K.js +12 -0
- package/dist-lib/combobox-BwfmU1S_.js +267 -0
- package/dist-lib/components/blocks/sidebar-primitives/content.d.ts +2 -0
- package/dist-lib/components/blocks/sidebar-primitives/context.d.ts +2 -0
- package/dist-lib/components/blocks/sidebar-primitives/footer.d.ts +2 -0
- package/dist-lib/components/blocks/sidebar-primitives/group-action.d.ts +3 -0
- package/dist-lib/components/blocks/sidebar-primitives/group-content.d.ts +2 -0
- package/dist-lib/components/blocks/sidebar-primitives/group-label.d.ts +3 -0
- package/dist-lib/components/blocks/sidebar-primitives/group.d.ts +2 -0
- package/dist-lib/components/blocks/sidebar-primitives/header.d.ts +2 -0
- package/dist-lib/components/blocks/sidebar-primitives/index.d.ts +26 -0
- package/dist-lib/components/blocks/sidebar-primitives/input.d.ts +3 -0
- package/dist-lib/components/blocks/sidebar-primitives/inset.d.ts +2 -0
- package/dist-lib/components/blocks/sidebar-primitives/menu-action.d.ts +5 -0
- package/dist-lib/components/blocks/sidebar-primitives/menu-badge.d.ts +2 -0
- package/dist-lib/components/blocks/sidebar-primitives/menu-button.d.ts +9 -0
- package/dist-lib/components/blocks/sidebar-primitives/menu-item.d.ts +2 -0
- package/dist-lib/components/blocks/sidebar-primitives/menu-skeleton.d.ts +4 -0
- package/dist-lib/components/blocks/sidebar-primitives/menu-sub-button.d.ts +6 -0
- package/dist-lib/components/blocks/sidebar-primitives/menu-sub-item.d.ts +2 -0
- package/dist-lib/components/blocks/sidebar-primitives/menu-sub.d.ts +2 -0
- package/dist-lib/components/blocks/sidebar-primitives/menu.d.ts +2 -0
- package/dist-lib/components/blocks/sidebar-primitives/provider.d.ts +3 -0
- package/dist-lib/components/blocks/sidebar-primitives/rail.d.ts +2 -0
- package/dist-lib/components/blocks/sidebar-primitives/separator.d.ts +3 -0
- package/dist-lib/components/blocks/sidebar-primitives/sidebar-atom.d.ts +32 -0
- package/dist-lib/components/blocks/sidebar-primitives/sidebar.d.ts +6 -0
- package/dist-lib/components/blocks/sidebar-primitives/trigger.d.ts +3 -0
- package/dist-lib/components/blocks/sidebar-primitives/types.d.ts +26 -0
- package/dist-lib/components/blocks/sidebar-primitives/use-mobile.d.ts +1 -0
- package/dist-lib/components/blocks/sidebar-primitives/use-sidebar.d.ts +4 -0
- package/dist-lib/components/blocks/sidebar-primitives/utils.d.ts +10 -0
- package/dist-lib/components/ui/alert.d.ts +1 -1
- package/dist-lib/components/ui/badge.d.ts +2 -2
- package/dist-lib/components/ui/breadcrumb/base.d.ts +2 -0
- package/dist-lib/components/ui/breadcrumb/ellipsis.d.ts +2 -0
- package/dist-lib/components/ui/breadcrumb/index.d.ts +7 -0
- package/dist-lib/components/ui/breadcrumb/item.d.ts +2 -0
- package/dist-lib/components/ui/breadcrumb/link.d.ts +3 -0
- package/dist-lib/components/ui/breadcrumb/list.d.ts +2 -0
- package/dist-lib/components/ui/breadcrumb/page.d.ts +2 -0
- package/dist-lib/components/ui/breadcrumb/separator.d.ts +2 -0
- package/dist-lib/components/ui/button.d.ts +2 -2
- package/dist-lib/components/ui/calendar/base.d.ts +3 -0
- package/dist-lib/components/ui/calendar/index.d.ts +1 -0
- package/dist-lib/components/ui/calendar/utils.d.ts +1 -0
- package/dist-lib/components/ui/checkbox-group/base.d.ts +3 -0
- package/dist-lib/components/ui/checkbox-group/index.d.ts +2 -0
- package/dist-lib/components/ui/combobox/chip-remove.d.ts +3 -0
- package/dist-lib/components/ui/combobox/chip.d.ts +5 -0
- package/dist-lib/components/ui/combobox/chips-input.d.ts +6 -0
- package/dist-lib/components/ui/combobox/chips.d.ts +5 -0
- package/dist-lib/components/ui/combobox/clear.d.ts +3 -0
- package/dist-lib/components/ui/combobox/collection.d.ts +3 -0
- package/dist-lib/components/ui/combobox/context.d.ts +5 -0
- package/dist-lib/components/ui/combobox/empty.d.ts +3 -0
- package/dist-lib/components/ui/combobox/group-label.d.ts +3 -0
- package/dist-lib/components/ui/combobox/group.d.ts +3 -0
- package/dist-lib/components/ui/combobox/index.d.ts +22 -0
- package/dist-lib/components/ui/combobox/input.d.ts +11 -0
- package/dist-lib/components/ui/combobox/item.d.ts +3 -0
- package/dist-lib/components/ui/combobox/list.d.ts +3 -0
- package/dist-lib/components/ui/combobox/popup.d.ts +10 -0
- package/dist-lib/components/ui/combobox/root.d.ts +3 -0
- package/dist-lib/components/ui/combobox/row.d.ts +3 -0
- package/dist-lib/components/ui/combobox/separator.d.ts +3 -0
- package/dist-lib/components/ui/combobox/status.d.ts +3 -0
- package/dist-lib/components/ui/combobox/trigger.d.ts +3 -0
- package/dist-lib/components/ui/combobox/utils.d.ts +2 -0
- package/dist-lib/components/ui/combobox/value.d.ts +3 -0
- package/dist-lib/components/ui/dialog/backdrop.d.ts +3 -0
- package/dist-lib/components/ui/dialog/close.d.ts +3 -0
- package/dist-lib/components/ui/dialog/description.d.ts +3 -0
- package/dist-lib/components/ui/dialog/footer.d.ts +5 -0
- package/dist-lib/components/ui/dialog/header.d.ts +3 -0
- package/dist-lib/components/ui/dialog/index.d.ts +16 -0
- package/dist-lib/components/ui/dialog/panel.d.ts +5 -0
- package/dist-lib/components/ui/dialog/popup.d.ts +8 -0
- package/dist-lib/components/ui/dialog/title.d.ts +3 -0
- package/dist-lib/components/ui/dialog/trigger.d.ts +3 -0
- package/dist-lib/components/ui/dialog/utils.d.ts +4 -0
- package/dist-lib/components/ui/dialog/viewport.d.ts +3 -0
- package/dist-lib/components/ui/drawer/backdrop.d.ts +3 -0
- package/dist-lib/components/ui/drawer/bar.d.ts +6 -0
- package/dist-lib/components/ui/drawer/close.d.ts +3 -0
- package/dist-lib/components/ui/drawer/content.d.ts +3 -0
- package/dist-lib/components/ui/drawer/context.d.ts +5 -0
- package/dist-lib/components/ui/drawer/description.d.ts +3 -0
- package/dist-lib/components/ui/drawer/footer.d.ts +6 -0
- package/dist-lib/components/ui/drawer/header.d.ts +5 -0
- package/dist-lib/components/ui/drawer/index.d.ts +26 -0
- package/dist-lib/components/ui/drawer/menu-checkbox-item.d.ts +6 -0
- package/dist-lib/components/ui/drawer/menu-group-label.d.ts +3 -0
- package/dist-lib/components/ui/drawer/menu-group.d.ts +3 -0
- package/dist-lib/components/ui/drawer/menu-item.d.ts +5 -0
- package/dist-lib/components/ui/drawer/menu-radio-group.d.ts +3 -0
- package/dist-lib/components/ui/drawer/menu-radio-item.d.ts +6 -0
- package/dist-lib/components/ui/drawer/menu-separator.d.ts +3 -0
- package/dist-lib/components/ui/drawer/menu-trigger.d.ts +3 -0
- package/dist-lib/components/ui/drawer/menu.d.ts +3 -0
- package/dist-lib/components/ui/drawer/panel.d.ts +7 -0
- package/dist-lib/components/ui/drawer/popup.d.ts +10 -0
- package/dist-lib/components/ui/drawer/portal.d.ts +3 -0
- package/dist-lib/components/ui/drawer/root.d.ts +6 -0
- package/dist-lib/components/ui/drawer/swipe-area.d.ts +6 -0
- package/dist-lib/components/ui/drawer/title.d.ts +3 -0
- package/dist-lib/components/ui/drawer/trigger.d.ts +3 -0
- package/dist-lib/components/ui/drawer/types.d.ts +1 -0
- package/dist-lib/components/ui/drawer/utils.d.ts +4 -0
- package/dist-lib/components/ui/drawer/viewport.d.ts +7 -0
- package/dist-lib/components/ui/empty/base.d.ts +2 -0
- package/dist-lib/components/ui/empty/content.d.ts +2 -0
- package/dist-lib/components/ui/empty/description.d.ts +2 -0
- package/dist-lib/components/ui/empty/header.d.ts +2 -0
- package/dist-lib/components/ui/empty/index.d.ts +6 -0
- package/dist-lib/components/ui/empty/media.d.ts +4 -0
- package/dist-lib/components/ui/empty/title.d.ts +2 -0
- package/dist-lib/components/ui/empty/utils.d.ts +3 -0
- package/dist-lib/components/ui/fieldset/base.d.ts +3 -0
- package/dist-lib/components/ui/fieldset/index.d.ts +3 -0
- package/dist-lib/components/ui/fieldset/legend.d.ts +3 -0
- package/dist-lib/components/ui/form/base.d.ts +3 -0
- package/dist-lib/components/ui/form/index.d.ts +2 -0
- package/dist-lib/components/ui/meter/base.d.ts +3 -0
- package/dist-lib/components/ui/meter/index.d.ts +6 -0
- package/dist-lib/components/ui/meter/indicator.d.ts +3 -0
- package/dist-lib/components/ui/meter/label.d.ts +3 -0
- package/dist-lib/components/ui/meter/track.d.ts +3 -0
- package/dist-lib/components/ui/meter/value.d.ts +3 -0
- package/dist-lib/components/ui/number-field/base.d.ts +5 -0
- package/dist-lib/components/ui/number-field/context.d.ts +4 -0
- package/dist-lib/components/ui/number-field/cursor-grow-icon.d.ts +2 -0
- package/dist-lib/components/ui/number-field/decrement.d.ts +3 -0
- package/dist-lib/components/ui/number-field/group.d.ts +3 -0
- package/dist-lib/components/ui/number-field/increment.d.ts +3 -0
- package/dist-lib/components/ui/number-field/index.d.ts +9 -0
- package/dist-lib/components/ui/number-field/input.d.ts +3 -0
- package/dist-lib/components/ui/number-field/scrub-area.d.ts +5 -0
- package/dist-lib/components/ui/pagination/base.d.ts +2 -0
- package/dist-lib/components/ui/pagination/content.d.ts +2 -0
- package/dist-lib/components/ui/pagination/ellipsis.d.ts +2 -0
- package/dist-lib/components/ui/pagination/index.d.ts +8 -0
- package/dist-lib/components/ui/pagination/item.d.ts +2 -0
- package/dist-lib/components/ui/pagination/link.d.ts +3 -0
- package/dist-lib/components/ui/pagination/next.d.ts +3 -0
- package/dist-lib/components/ui/pagination/previous.d.ts +3 -0
- package/dist-lib/components/ui/pagination/types.d.ts +7 -0
- package/dist-lib/components/ui/preview-card.d.ts +2 -1
- package/dist-lib/components/ui/progress/base.d.ts +3 -0
- package/dist-lib/components/ui/progress/index.d.ts +6 -0
- package/dist-lib/components/ui/progress/indicator.d.ts +3 -0
- package/dist-lib/components/ui/progress/label.d.ts +3 -0
- package/dist-lib/components/ui/progress/track.d.ts +3 -0
- package/dist-lib/components/ui/progress/value.d.ts +3 -0
- package/dist-lib/components/ui/radio-group/base.d.ts +3 -0
- package/dist-lib/components/ui/radio-group/index.d.ts +5 -0
- package/dist-lib/components/ui/radio-group/radio.d.ts +3 -0
- package/dist-lib/components/ui/sheet-parts/backdrop.d.ts +2 -0
- package/dist-lib/components/ui/sheet-parts/overlay.d.ts +2 -0
- package/dist-lib/components/ui/sheet-parts/panel.d.ts +5 -0
- package/dist-lib/components/ui/sheet-parts/popup.d.ts +10 -0
- package/dist-lib/components/ui/sheet-parts/portal.d.ts +2 -0
- package/dist-lib/components/ui/sheet-parts/viewport.d.ts +6 -0
- package/dist-lib/components/ui/sheet.d.ts +19 -9
- package/dist-lib/components/ui/slider/base.d.ts +3 -0
- package/dist-lib/components/ui/slider/index.d.ts +3 -0
- package/dist-lib/components/ui/slider/value.d.ts +3 -0
- package/dist-lib/components/ui/table/base.d.ts +3 -0
- package/dist-lib/components/ui/table/body.d.ts +2 -0
- package/dist-lib/components/ui/table/caption.d.ts +2 -0
- package/dist-lib/components/ui/table/cell.d.ts +2 -0
- package/dist-lib/components/ui/table/footer.d.ts +2 -0
- package/dist-lib/components/ui/table/head.d.ts +2 -0
- package/dist-lib/components/ui/table/header.d.ts +2 -0
- package/dist-lib/components/ui/table/index.d.ts +10 -0
- package/dist-lib/components/ui/table/row.d.ts +2 -0
- package/dist-lib/components/ui/table/types.d.ts +7 -0
- package/dist-lib/components/ui/toggle/base.d.ts +5 -0
- package/dist-lib/components/ui/toggle/index.d.ts +3 -0
- package/dist-lib/components/ui/toggle/utils.d.ts +4 -0
- package/dist-lib/components/ui/toggle-group/base.d.ts +5 -0
- package/dist-lib/components/ui/toggle-group/context.d.ts +4 -0
- package/dist-lib/components/ui/toggle-group/index.d.ts +5 -0
- package/dist-lib/components/ui/toggle-group/item.d.ts +5 -0
- package/dist-lib/components/ui/toggle-group/separator.d.ts +5 -0
- package/dist-lib/dialog-BF9rLVsx.js +135 -0
- package/dist-lib/drawer-DuQtc_IN.js +350 -0
- package/dist-lib/empty-CUO4MoHd.js +87 -0
- package/dist-lib/{exegia-provider-DNTuLljX.js → exegia-provider-CDYMDsSW.js} +33 -31
- package/dist-lib/fieldset-C3YDowBt.js +22 -0
- package/dist-lib/form-DdxBnCxo.js +12 -0
- package/dist-lib/index.css +1 -1
- package/dist-lib/index.d.ts +1 -0
- package/dist-lib/index.js +6401 -7684
- package/dist-lib/{liquid-glass-BihU6nMl.js → liquid-glass-BrmOha12.js} +11 -11
- package/dist-lib/meter-B5i2cf7m.js +49 -0
- package/dist-lib/modal-BSBLNZfo.js +24 -0
- package/dist-lib/number-field-D5p-WTn_.js +97 -0
- package/dist-lib/overlays.js +5 -3
- package/dist-lib/pagination-CPOVfufE.js +94 -0
- package/dist-lib/{modal-DLaOK-s1.js → popover-BKYgU_p3.js} +22 -42
- package/dist-lib/portal-context-oIZFl3NP.js +9 -0
- package/dist-lib/progress-ByAk9CV5.js +50 -0
- package/dist-lib/radio-group-CMwDkKFE.js +27 -0
- package/dist-lib/{scaffold-Qv4hs5Pf.js → scaffold-DjS8eLk9.js} +198 -198
- package/dist-lib/scaffold.js +1 -1
- package/dist-lib/scroll-area-BNcHlmRX.js +39 -0
- package/dist-lib/separator-D7T-98IV.js +14 -0
- package/dist-lib/sheet-BAYosIsg.js +148 -0
- package/dist-lib/sheet-D4fmEZW5.js +22 -0
- package/dist-lib/{shell-BQ9cjIEu.js → shell-WTIa9_ul.js} +170 -170
- package/dist-lib/shell.js +1 -1
- package/dist-lib/sidebar-1j5RYZ2t.js +529 -0
- package/dist-lib/skeleton-CwqQoMiY.js +12 -0
- package/dist-lib/slider-_1H30BMt.js +48 -0
- package/dist-lib/spinner-cwaneGYM.js +14 -0
- package/dist-lib/state.js +1 -1
- package/dist-lib/table-D43_yedE.js +87 -0
- package/dist-lib/tabs-CwWnKxRI.js +66 -0
- package/dist-lib/textarea-CxycYTkF.js +27 -0
- package/dist-lib/{toast-CataVXHN.js → toast-BLwJEhKU.js} +63 -105
- package/dist-lib/toggle-group-BzDvDKL0.js +55 -0
- package/dist-lib/tooltip-aPB3pyrl.js +39 -0
- package/dist-lib/ui/accordion.d.ts +1 -0
- package/dist-lib/ui/accordion.js +45 -0
- package/dist-lib/ui/alert-dialog.d.ts +1 -0
- package/dist-lib/ui/alert-dialog.js +74 -0
- package/dist-lib/ui/alert.d.ts +1 -0
- package/dist-lib/ui/alert.js +45 -0
- package/dist-lib/ui/autocomplete.d.ts +1 -0
- package/dist-lib/ui/autocomplete.js +2 -0
- package/dist-lib/ui/avatar.d.ts +2 -0
- package/dist-lib/ui/avatar.js +50 -0
- package/dist-lib/ui/badge.d.ts +2 -0
- package/dist-lib/ui/badge.js +72 -0
- package/dist-lib/ui/breadcrumb.d.ts +1 -0
- package/dist-lib/ui/breadcrumb.js +2 -0
- package/dist-lib/ui/button.d.ts +2 -0
- package/dist-lib/ui/button.js +2 -0
- package/dist-lib/ui/calendar.d.ts +1 -0
- package/dist-lib/ui/calendar.js +2 -0
- package/dist-lib/ui/card.d.ts +1 -0
- package/dist-lib/ui/card.js +2 -0
- package/dist-lib/ui/checkbox-group.d.ts +1 -0
- package/dist-lib/ui/checkbox-group.js +2 -0
- package/dist-lib/ui/checkbox.d.ts +1 -0
- package/dist-lib/ui/checkbox.js +51 -0
- package/dist-lib/ui/collapsible.d.ts +1 -0
- package/dist-lib/ui/collapsible.js +26 -0
- package/dist-lib/ui/combobox.d.ts +1 -0
- package/dist-lib/ui/combobox.js +2 -0
- package/dist-lib/ui/command.d.ts +1 -0
- package/dist-lib/ui/command.js +125 -0
- package/dist-lib/ui/context-menu.d.ts +1 -0
- package/dist-lib/ui/context-menu.js +178 -0
- package/dist-lib/ui/dialog.d.ts +1 -0
- package/dist-lib/ui/dialog.js +2 -0
- package/dist-lib/ui/drawer.d.ts +1 -0
- package/dist-lib/ui/drawer.js +2 -0
- package/dist-lib/ui/empty.d.ts +1 -0
- package/dist-lib/ui/empty.js +2 -0
- package/dist-lib/ui/field.d.ts +1 -0
- package/dist-lib/ui/field.js +42 -0
- package/dist-lib/ui/fieldset.d.ts +1 -0
- package/dist-lib/ui/fieldset.js +2 -0
- package/dist-lib/ui/form.d.ts +1 -0
- package/dist-lib/ui/form.js +2 -0
- package/dist-lib/ui/frame.d.ts +1 -0
- package/dist-lib/ui/frame.js +47 -0
- package/dist-lib/ui/group.d.ts +1 -0
- package/dist-lib/ui/group.js +44 -0
- package/dist-lib/ui/index.d.ts +55 -0
- package/dist-lib/ui/index.js +497 -0
- package/dist-lib/ui/input-group.d.ts +1 -0
- package/dist-lib/ui/input-group.js +59 -0
- package/dist-lib/ui/input.d.ts +2 -0
- package/dist-lib/ui/input.js +2 -0
- package/dist-lib/ui/kbd.d.ts +1 -0
- package/dist-lib/ui/kbd.js +19 -0
- package/dist-lib/ui/label.d.ts +1 -0
- package/dist-lib/ui/label.js +2 -0
- package/dist-lib/ui/menu.d.ts +1 -0
- package/dist-lib/ui/menu.js +178 -0
- package/dist-lib/ui/meter.d.ts +1 -0
- package/dist-lib/ui/meter.js +2 -0
- package/dist-lib/ui/number-field.d.ts +1 -0
- package/dist-lib/ui/number-field.js +2 -0
- package/dist-lib/ui/otp-field.d.ts +1 -0
- package/dist-lib/ui/otp-field.js +36 -0
- package/dist-lib/ui/pagination.d.ts +1 -0
- package/dist-lib/ui/pagination.js +2 -0
- package/dist-lib/ui/popover.d.ts +1 -0
- package/dist-lib/ui/popover.js +2 -0
- package/dist-lib/ui/preview-card.d.ts +1 -0
- package/dist-lib/ui/preview-card.js +35 -0
- package/dist-lib/ui/progress.d.ts +1 -0
- package/dist-lib/ui/progress.js +2 -0
- package/dist-lib/ui/radio-group.d.ts +1 -0
- package/dist-lib/ui/radio-group.js +2 -0
- package/dist-lib/ui/scroll-area.d.ts +1 -0
- package/dist-lib/ui/scroll-area.js +2 -0
- package/dist-lib/ui/select.d.ts +2 -0
- package/dist-lib/ui/select.js +145 -0
- package/dist-lib/ui/separator.d.ts +2 -0
- package/dist-lib/ui/separator.js +3 -0
- package/dist-lib/ui/sheet.d.ts +1 -0
- package/dist-lib/ui/sheet.js +3 -0
- package/dist-lib/ui/sidebar.d.ts +1 -0
- package/dist-lib/ui/sidebar.js +2 -0
- package/dist-lib/ui/skeleton.d.ts +1 -0
- package/dist-lib/ui/skeleton.js +2 -0
- package/dist-lib/ui/slider.d.ts +1 -0
- package/dist-lib/ui/slider.js +2 -0
- package/dist-lib/ui/spinner.d.ts +1 -0
- package/dist-lib/ui/spinner.js +2 -0
- package/dist-lib/ui/switch.d.ts +1 -0
- package/dist-lib/ui/switch.js +17 -0
- package/dist-lib/ui/table.d.ts +1 -0
- package/dist-lib/ui/table.js +2 -0
- package/dist-lib/ui/tabs.d.ts +1 -0
- package/dist-lib/ui/tabs.js +2 -0
- package/dist-lib/ui/textarea.d.ts +2 -0
- package/dist-lib/ui/textarea.js +2 -0
- package/dist-lib/ui/toast.d.ts +1 -0
- package/dist-lib/ui/toast.js +2 -0
- package/dist-lib/ui/toggle-group.d.ts +1 -0
- package/dist-lib/ui/toggle-group.js +2 -0
- package/dist-lib/ui/toggle.d.ts +1 -0
- package/dist-lib/ui/toggle.js +3 -0
- package/dist-lib/ui/toolbar.d.ts +1 -0
- package/dist-lib/ui/toolbar.js +48 -0
- package/dist-lib/ui/tooltip.d.ts +1 -0
- package/dist-lib/ui/tooltip.js +2 -0
- package/package.json +222 -1
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import { t as e } from "./utils-BO0qfoA6.js";
|
|
2
|
+
import { t } from "./scroll-area-BNcHlmRX.js";
|
|
3
|
+
import { t as n } from "./button-DDBbG_zF.js";
|
|
4
|
+
import { n as r } from "./portal-context-oIZFl3NP.js";
|
|
5
|
+
import { ChevronRightIcon as i, XIcon as a } from "lucide-react";
|
|
6
|
+
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
|
+
import { createContext as l, useContext as u } from "react";
|
|
8
|
+
import { mergeProps as d } from "@base-ui/react/merge-props";
|
|
9
|
+
import { useRender as f } from "@base-ui/react/use-render";
|
|
10
|
+
import { Checkbox as p } from "@base-ui/react/checkbox";
|
|
11
|
+
import { Drawer as m, Drawer as h } from "@base-ui/react/drawer";
|
|
12
|
+
import { RadioGroup as g } from "@base-ui/react/radio-group";
|
|
13
|
+
import { Radio as _ } from "@base-ui/react/radio";
|
|
14
|
+
//#region src/components/ui/drawer/context.ts
|
|
15
|
+
var v = l({ position: "bottom" }), y = {
|
|
16
|
+
bottom: "down",
|
|
17
|
+
left: "left",
|
|
18
|
+
right: "right",
|
|
19
|
+
top: "up"
|
|
20
|
+
}, b = m.createHandle;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/components/ui/drawer/root.tsx
|
|
23
|
+
function x({ swipeDirection: e, position: t = "bottom", ...n }) {
|
|
24
|
+
return /* @__PURE__ */ s(v.Provider, {
|
|
25
|
+
value: { position: t },
|
|
26
|
+
children: /* @__PURE__ */ s(m.Root, {
|
|
27
|
+
swipeDirection: e ?? y[t],
|
|
28
|
+
...n
|
|
29
|
+
})
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/components/ui/drawer/portal.tsx
|
|
34
|
+
function S(e) {
|
|
35
|
+
let t = r(e.container);
|
|
36
|
+
return /* @__PURE__ */ s(m.Portal, {
|
|
37
|
+
...e,
|
|
38
|
+
container: t
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/components/ui/drawer/trigger.tsx
|
|
43
|
+
function C(e) {
|
|
44
|
+
return /* @__PURE__ */ s(m.Trigger, {
|
|
45
|
+
"data-slot": "drawer-trigger",
|
|
46
|
+
...e
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/components/ui/drawer/close.tsx
|
|
51
|
+
function w(e) {
|
|
52
|
+
return /* @__PURE__ */ s(m.Close, {
|
|
53
|
+
"data-slot": "drawer-close",
|
|
54
|
+
...e
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/components/ui/drawer/swipe-area.tsx
|
|
59
|
+
function T({ className: t, position: n, ...r }) {
|
|
60
|
+
let { position: i } = u(v), a = n ?? i;
|
|
61
|
+
return /* @__PURE__ */ s(m.SwipeArea, {
|
|
62
|
+
className: e("fixed z-50 touch-none", a === "bottom" && "inset-x-0 bottom-0 h-8", a === "top" && "inset-x-0 top-0 h-8", a === "left" && "inset-y-0 left-0 w-8", a === "right" && "inset-y-0 right-0 w-8", t),
|
|
63
|
+
"data-slot": "drawer-swipe-area",
|
|
64
|
+
...r
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/components/ui/drawer/backdrop.tsx
|
|
69
|
+
function E({ className: t, ...n }) {
|
|
70
|
+
return /* @__PURE__ */ s(m.Backdrop, {
|
|
71
|
+
className: e("fixed inset-0 z-50 bg-black/32 opacity-[calc(1-var(--drawer-swipe-progress))] backdrop-blur-sm transition-opacity duration-450 ease-[cubic-bezier(0.32,0.72,0,1)] data-ending-style:opacity-0 data-starting-style:opacity-0 data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)] data-swiping:duration-0 supports-[-webkit-touch-callout:none]:absolute", t),
|
|
72
|
+
"data-slot": "drawer-backdrop",
|
|
73
|
+
...n
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/components/ui/drawer/viewport.tsx
|
|
78
|
+
function D({ className: t, position: n, variant: r = "default", ...i }) {
|
|
79
|
+
return /* @__PURE__ */ s(m.Viewport, {
|
|
80
|
+
className: e("fixed inset-0 z-50 [--bleed:--spacing(12)] [--inset:--spacing(0)]", "touch-none", n === "bottom" && "grid grid-rows-[1fr_auto] pt-12", n === "top" && "grid grid-rows-[auto_1fr] pb-12", n === "left" && "flex justify-start", n === "right" && "flex justify-end", r === "inset" && "px-(--inset) sm:[--inset:--spacing(4)]", r === "inset" && n !== "bottom" && "pt-(--inset)", r === "inset" && n !== "top" && "pb-(--inset)", t),
|
|
81
|
+
"data-slot": "drawer-viewport",
|
|
82
|
+
...i
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/components/ui/drawer/bar.tsx
|
|
87
|
+
function O({ className: t, position: n, render: r, ...i }) {
|
|
88
|
+
let { position: a } = u(v), o = n ?? a, s = {
|
|
89
|
+
"aria-hidden": !0,
|
|
90
|
+
className: e("absolute flex touch-none items-center justify-center p-3 before:rounded-full before:bg-input", o === "left" || o === "right" ? "inset-y-0 before:h-12 before:w-1" : "inset-x-0 before:h-1 before:w-12", o === "top" && "bottom-0", o === "bottom" && "top-0", o === "left" && "right-0", o === "right" && "left-0", t),
|
|
91
|
+
"data-slot": "drawer-bar"
|
|
92
|
+
};
|
|
93
|
+
return f({
|
|
94
|
+
defaultTagName: "div",
|
|
95
|
+
props: d(s, i),
|
|
96
|
+
render: r
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region src/components/ui/drawer/popup.tsx
|
|
101
|
+
function k({ className: t, children: r, showCloseButton: i = !1, position: o, variant: l = "default", showBar: d = !1, portalProps: f, ...p }) {
|
|
102
|
+
let { position: h } = u(v), g = o ?? h;
|
|
103
|
+
return /* @__PURE__ */ c(S, {
|
|
104
|
+
...f,
|
|
105
|
+
children: [/* @__PURE__ */ s(E, {}), /* @__PURE__ */ s(D, {
|
|
106
|
+
position: g,
|
|
107
|
+
variant: l,
|
|
108
|
+
children: /* @__PURE__ */ c(m.Popup, {
|
|
109
|
+
className: e("relative flex max-h-full min-h-0 w-full min-w-0 flex-col bg-popover not-dark:bg-clip-padding text-popover-foreground shadow-lg/5 outline-none transition-[transform,box-shadow,height,background-color] duration-450 ease-[cubic-bezier(0.32,0.72,0,1)] will-change-transform [--peek:calc(--spacing(6)-1px)] [--scale-base:calc(max(0,1-(var(--nested-drawers)*var(--stack-step))))] [--scale:clamp(0,calc(var(--scale-base)+(var(--stack-step)*var(--stack-progress))),1)] [--shrink:calc(1-var(--scale))] [--stack-peek-offset:max(0px,calc((var(--nested-drawers)-var(--stack-progress))*var(--peek)))] [--stack-progress:clamp(0,var(--drawer-swipe-progress),1)] [--stack-step:0.05] before:pointer-events-none before:absolute before:inset-0 before:shadow-[0_1px_--theme(--color-black/4%)] after:pointer-events-none after:absolute after:bg-popover data-swiping:select-none data-nested-drawer-open:overflow-hidden data-nested-drawer-open:bg-[color-mix(in_srgb,var(--popover),var(--color-black)_calc(2%*(var(--nested-drawers)-var(--stack-progress))))] data-ending-style:shadow-transparent data-starting-style:shadow-transparent data-ending-style:duration-[calc(var(--drawer-swipe-strength)*400ms)] dark:data-nested-drawer-open:bg-[color-mix(in_srgb,var(--popover),var(--color-black)_calc(6%*(var(--nested-drawers)-var(--stack-progress))))] dark:before:shadow-[0_-1px_--theme(--color-white/6%)]", "touch-none", g === "bottom" && "transform-[translateY(calc(var(--drawer-snap-point-offset)+var(--drawer-swipe-movement-y)))] data-ending-style:transform-[translateY(calc(100%+env(safe-area-inset-bottom,0px)+var(--inset)))] data-starting-style:transform-[translateY(calc(100%+env(safe-area-inset-bottom,0px)+var(--inset)))] row-start-2 -mb-[max(0px,calc(var(--drawer-snap-point-offset,0px)+clamp(0,1,var(--drawer-snap-point-offset,0px)/1px)*var(--drawer-swipe-movement-y,0px)))] border-t pb-[max(0px,calc(env(safe-area-inset-bottom,0px)+var(--drawer-snap-point-offset,0px)+clamp(0,1,var(--drawer-snap-point-offset,0px)/1px)*var(--drawer-swipe-movement-y,0px)))] not-data-starting-style:not-data-ending-style:transition-[transform,box-shadow,height,background-color,margin,padding] after:inset-x-0 after:top-full after:h-(--bleed) has-data-[slot=drawer-bar]:pt-2 data-ending-style:mb-0 data-starting-style:mb-0 data-ending-style:pb-0 data-starting-style:pb-0", g === "top" && "data-starting-style:transform-[translateY(calc(-100%-var(--inset)))] data-ending-style:transform-[translateY(calc(-100%-var(--inset)))] transform-[translateY(var(--drawer-swipe-movement-y))] border-b after:inset-x-0 after:bottom-full after:h-(--bleed) has-data-[slot=drawer-bar]:pb-2", g === "left" && "data-starting-style:transform-[translateX(calc(-100%-var(--inset)))] data-ending-style:transform-[translateX(calc(-100%-var(--inset)))] transform-[translateX(var(--drawer-swipe-movement-x))] w-[calc(100%-(--spacing(12)))] max-w-md border-e after:inset-y-0 after:end-full after:w-(--bleed) has-data-[slot=drawer-bar]:pe-2", g === "right" && "transform-[translateX(var(--drawer-swipe-movement-x))] data-ending-style:transform-[translateX(calc(100%+var(--inset)))] data-starting-style:transform-[translateX(calc(100%+var(--inset)))] col-start-2 w-[calc(100%-(--spacing(12)))] max-w-md border-s after:inset-y-0 after:start-full after:w-(--bleed) has-data-[slot=drawer-bar]:ps-2", l !== "straight" && e(g === "bottom" && "rounded-t-2xl", g === "top" && "rounded-b-2xl **:data-[slot=drawer-footer]:rounded-b-[calc(var(--radius-2xl)-1px)]", g === "left" && "rounded-e-2xl **:data-[slot=drawer-footer]:rounded-ee-[calc(var(--radius-2xl)-1px)]", g === "right" && "rounded-s-2xl **:data-[slot=drawer-footer]:rounded-es-[calc(var(--radius-2xl)-1px)]"), l === "default" && e(g === "bottom" && "before:rounded-t-[calc(var(--radius-2xl)-1px)]", g === "top" && "before:rounded-b-[calc(var(--radius-2xl)-1px)]", g === "left" && "before:rounded-e-[calc(var(--radius-2xl)-1px)]", g === "right" && "before:rounded-s-[calc(var(--radius-2xl)-1px)]"), l === "inset" && "before:hidden sm:rounded-2xl sm:border sm:after:bg-transparent sm:before:rounded-[calc(var(--radius-2xl)-1px)] sm:**:data-[slot=drawer-footer]:rounded-b-[calc(var(--radius-2xl)-1px)]", l === "straight" && "[--stack-step:0]", (g === "bottom" || g === "top") && "h-(--drawer-height,auto) [--height:max(0px,calc(var(--drawer-frontmost-height,var(--drawer-height))))] data-nested-drawer-open:h-(--height)", g === "bottom" && "data-nested-drawer-open:transform-[translateY(calc(var(--drawer-swipe-movement-y)-var(--stack-peek-offset)-(var(--shrink)*var(--height))))_scale(var(--scale))] origin-[50%_calc(100%-var(--inset))]", g === "top" && "data-nested-drawer-open:transform-[translateY(calc(var(--drawer-swipe-movement-y)+var(--stack-peek-offset)+(var(--shrink)*var(--height))))_scale(var(--scale))] origin-[50%_var(--inset)]", g === "left" && "data-nested-drawer-open:transform-[translateX(calc(var(--drawer-swipe-movement-x)+var(--stack-peek-offset)))_scale(var(--scale))] origin-right", g === "right" && "data-nested-drawer-open:transform-[translateX(calc(var(--drawer-swipe-movement-x)-var(--stack-peek-offset)))_scale(var(--scale))] origin-left", t),
|
|
110
|
+
"data-slot": "drawer-popup",
|
|
111
|
+
...p,
|
|
112
|
+
children: [
|
|
113
|
+
r,
|
|
114
|
+
i && /* @__PURE__ */ s(m.Close, {
|
|
115
|
+
"aria-label": "Close",
|
|
116
|
+
className: "absolute end-2 top-2",
|
|
117
|
+
render: /* @__PURE__ */ s(n, {
|
|
118
|
+
size: "icon",
|
|
119
|
+
variant: "ghost"
|
|
120
|
+
}),
|
|
121
|
+
children: /* @__PURE__ */ s(a, {})
|
|
122
|
+
}),
|
|
123
|
+
d && /* @__PURE__ */ s(O, {})
|
|
124
|
+
]
|
|
125
|
+
})
|
|
126
|
+
})]
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region src/components/ui/drawer/content.tsx
|
|
131
|
+
var A = m.Content;
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/components/ui/drawer/header.tsx
|
|
134
|
+
function j({ className: t, allowSelection: n = !1, render: r, ...i }) {
|
|
135
|
+
let a = {
|
|
136
|
+
className: e("flex flex-col gap-2 p-6 in-[[data-slot=drawer-popup]:has([data-slot=drawer-panel])]:pb-3 max-sm:pb-4", !n && "cursor-default", t),
|
|
137
|
+
"data-slot": "drawer-header"
|
|
138
|
+
};
|
|
139
|
+
return f({
|
|
140
|
+
defaultTagName: "div",
|
|
141
|
+
props: d(a, i),
|
|
142
|
+
render: n ? /* @__PURE__ */ s(A, { render: r }) : r
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
//#endregion
|
|
146
|
+
//#region src/components/ui/drawer/footer.tsx
|
|
147
|
+
function M({ className: t, variant: n = "default", allowSelection: r = !0, render: i, ...a }) {
|
|
148
|
+
let o = {
|
|
149
|
+
className: e("flex flex-col-reverse gap-2 px-6 pb-(--safe-area-inset-bottom,0px) sm:flex-row sm:justify-end", !r && "cursor-default", n === "default" && "border-t bg-muted/72 pt-4 pb-[calc(env(safe-area-inset-bottom,0px)+--spacing(4))]", n === "bare" && "in-[[data-slot=drawer-popup]:has([data-slot=drawer-panel])]:pt-3 pt-4 pb-[calc(env(safe-area-inset-bottom,0px)+--spacing(6))]", t),
|
|
150
|
+
"data-slot": "drawer-footer"
|
|
151
|
+
};
|
|
152
|
+
return f({
|
|
153
|
+
defaultTagName: "div",
|
|
154
|
+
props: d(o, a),
|
|
155
|
+
render: r ? /* @__PURE__ */ s(A, { render: i }) : i
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
//#endregion
|
|
159
|
+
//#region src/components/ui/drawer/title.tsx
|
|
160
|
+
function N({ className: t, ...n }) {
|
|
161
|
+
return /* @__PURE__ */ s(m.Title, {
|
|
162
|
+
className: e("font-heading font-semibold text-xl leading-none", t),
|
|
163
|
+
"data-slot": "drawer-title",
|
|
164
|
+
...n
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
//#endregion
|
|
168
|
+
//#region src/components/ui/drawer/description.tsx
|
|
169
|
+
function P({ className: t, ...n }) {
|
|
170
|
+
return /* @__PURE__ */ s(m.Description, {
|
|
171
|
+
className: e("text-muted-foreground text-sm", t),
|
|
172
|
+
"data-slot": "drawer-description",
|
|
173
|
+
...n
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region src/components/ui/drawer/panel.tsx
|
|
178
|
+
function F({ className: n, scrollFade: r = !0, scrollable: i = !0, allowSelection: a = !0, render: o, ...c }) {
|
|
179
|
+
let l = {
|
|
180
|
+
className: e("p-6 in-[[data-slot=drawer-popup]:has([data-slot=drawer-header])]:pt-1 in-[[data-slot=drawer-popup]:has([data-slot=drawer-footer]:not(.border-t))]:pb-1", !a && "cursor-default", n),
|
|
181
|
+
"data-slot": "drawer-panel"
|
|
182
|
+
}, u = f({
|
|
183
|
+
defaultTagName: "div",
|
|
184
|
+
props: d(l, c),
|
|
185
|
+
render: a ? /* @__PURE__ */ s(A, { render: o }) : o
|
|
186
|
+
});
|
|
187
|
+
return i ? /* @__PURE__ */ s(t, {
|
|
188
|
+
className: "touch-auto",
|
|
189
|
+
scrollFade: r,
|
|
190
|
+
children: u
|
|
191
|
+
}) : u;
|
|
192
|
+
}
|
|
193
|
+
//#endregion
|
|
194
|
+
//#region src/components/ui/drawer/menu.tsx
|
|
195
|
+
function I({ className: t, render: n, ...r }) {
|
|
196
|
+
let i = {
|
|
197
|
+
className: e("-m-2 flex flex-col", t),
|
|
198
|
+
"data-slot": "drawer-menu"
|
|
199
|
+
};
|
|
200
|
+
return f({
|
|
201
|
+
defaultTagName: "nav",
|
|
202
|
+
props: d(i, r),
|
|
203
|
+
render: n
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region src/components/ui/drawer/menu-item.tsx
|
|
208
|
+
function L({ className: t, variant: n = "default", render: r, disabled: i, ...a }) {
|
|
209
|
+
let o = {
|
|
210
|
+
className: e("flex min-h-9 w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-1 text-base text-foreground outline-none hover:bg-accent hover:text-accent-foreground disabled:pointer-events-none disabled:opacity-64 data-[variant=destructive]:text-destructive-foreground sm:min-h-8 sm:text-sm [&>svg:not([class*='opacity-'])]:opacity-80 [&>svg:not([class*='size-'])]:size-4.5 sm:[&>svg:not([class*='size-'])]:size-4 [&>svg]:pointer-events-none [&>svg]:-mx-0.5 [&>svg]:shrink-0", t),
|
|
211
|
+
"data-slot": "drawer-menu-item",
|
|
212
|
+
"data-variant": n,
|
|
213
|
+
disabled: i,
|
|
214
|
+
type: "button"
|
|
215
|
+
};
|
|
216
|
+
return f({
|
|
217
|
+
defaultTagName: "button",
|
|
218
|
+
props: d(o, a),
|
|
219
|
+
render: r
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
//#endregion
|
|
223
|
+
//#region src/components/ui/drawer/menu-separator.tsx
|
|
224
|
+
function R({ className: t, render: n, ...r }) {
|
|
225
|
+
let i = {
|
|
226
|
+
className: e("mx-2 my-1 h-px bg-border", t),
|
|
227
|
+
"data-slot": "drawer-menu-separator"
|
|
228
|
+
};
|
|
229
|
+
return f({
|
|
230
|
+
defaultTagName: "div",
|
|
231
|
+
props: d(i, r),
|
|
232
|
+
render: n
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
//#endregion
|
|
236
|
+
//#region src/components/ui/drawer/menu-group.tsx
|
|
237
|
+
function z({ className: t, render: n, ...r }) {
|
|
238
|
+
let i = {
|
|
239
|
+
className: e("flex flex-col", t),
|
|
240
|
+
"data-slot": "drawer-menu-group"
|
|
241
|
+
};
|
|
242
|
+
return f({
|
|
243
|
+
defaultTagName: "div",
|
|
244
|
+
props: d(i, r),
|
|
245
|
+
render: n
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
//#endregion
|
|
249
|
+
//#region src/components/ui/drawer/menu-group-label.tsx
|
|
250
|
+
function B({ className: t, render: n, ...r }) {
|
|
251
|
+
let i = {
|
|
252
|
+
className: e("px-2 py-1.5 font-medium text-muted-foreground text-xs", t),
|
|
253
|
+
"data-slot": "drawer-menu-group-label"
|
|
254
|
+
};
|
|
255
|
+
return f({
|
|
256
|
+
defaultTagName: "div",
|
|
257
|
+
props: d(i, r),
|
|
258
|
+
render: n
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
//#endregion
|
|
262
|
+
//#region src/components/ui/drawer/menu-trigger.tsx
|
|
263
|
+
function V({ className: t, children: n, ...r }) {
|
|
264
|
+
return /* @__PURE__ */ c(C, {
|
|
265
|
+
className: e("flex min-h-9 w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-1 text-base text-foreground outline-none hover:bg-accent hover:text-accent-foreground sm:min-h-8 sm:text-sm [&_svg:not(:last-child)]:-mx-0.5 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", t),
|
|
266
|
+
"data-slot": "drawer-menu-trigger",
|
|
267
|
+
...r,
|
|
268
|
+
children: [n, /* @__PURE__ */ s(i, { className: "ms-auto -me-0.5 opacity-80" })]
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
//#endregion
|
|
272
|
+
//#region src/components/ui/drawer/menu-checkbox-item.tsx
|
|
273
|
+
function H({ className: t, children: n, checked: r, defaultChecked: i, onCheckedChange: a, variant: l = "default", disabled: u, render: d, ...f }) {
|
|
274
|
+
return /* @__PURE__ */ s(p.Root, {
|
|
275
|
+
checked: r,
|
|
276
|
+
className: e("grid min-h-9 w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-1 text-base text-foreground outline-none hover:bg-accent hover:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-64 sm:min-h-8 sm:text-sm [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:-mx-0.5 [&_svg]:shrink-0", l === "switch" ? "grid-cols-[1fr_auto] gap-4 pe-1.5" : "grid-cols-[1rem_1fr] pe-4", t),
|
|
277
|
+
"data-slot": "drawer-menu-checkbox-item",
|
|
278
|
+
defaultChecked: i,
|
|
279
|
+
disabled: u,
|
|
280
|
+
onCheckedChange: a,
|
|
281
|
+
render: d,
|
|
282
|
+
...f,
|
|
283
|
+
children: l === "switch" ? /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s("span", {
|
|
284
|
+
className: "col-start-1",
|
|
285
|
+
children: n
|
|
286
|
+
}), /* @__PURE__ */ s(p.Indicator, {
|
|
287
|
+
className: "inset-shadow-[0_1px_--theme(--color-black/4%)] col-start-2 inline-flex h-[calc(var(--thumb-size)+2px)] w-[calc(var(--thumb-size)*2-2px)] shrink-0 items-center rounded-full p-px outline-none transition-[background-color,box-shadow] duration-200 [--thumb-size:--spacing(4)] focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background data-checked:bg-primary data-unchecked:bg-input data-disabled:opacity-64 sm:[--thumb-size:--spacing(3)]",
|
|
288
|
+
keepMounted: !0,
|
|
289
|
+
children: /* @__PURE__ */ s("span", { className: "pointer-events-none block aspect-square h-full in-[[data-slot=drawer-menu-checkbox-item][data-checked]]:origin-[var(--thumb-size)_50%] origin-left in-[[data-slot=drawer-menu-checkbox-item][data-checked]]:translate-x-[calc(var(--thumb-size)-4px)] in-[[data-slot=drawer-menu-checkbox-item]:active]:not-data-disabled:scale-x-110 in-[[data-slot=drawer-menu-checkbox-item]:active]:rounded-[var(--thumb-size)/calc(var(--thumb-size)*1.10)] rounded-(--thumb-size) bg-background shadow-sm/5 will-change-transform [transition:translate_.15s,border-radius_.15s,scale_.1s_.1s,transform-origin_.15s]" })
|
|
290
|
+
})] }) : /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(p.Indicator, {
|
|
291
|
+
className: "col-start-1",
|
|
292
|
+
children: /* @__PURE__ */ s("svg", {
|
|
293
|
+
fill: "none",
|
|
294
|
+
height: "24",
|
|
295
|
+
stroke: "currentColor",
|
|
296
|
+
strokeLinecap: "round",
|
|
297
|
+
strokeLinejoin: "round",
|
|
298
|
+
strokeWidth: "2",
|
|
299
|
+
viewBox: "0 0 24 24",
|
|
300
|
+
width: "24",
|
|
301
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
302
|
+
children: /* @__PURE__ */ s("path", { d: "M5.252 12.7 10.2 18.63 18.748 5.37" })
|
|
303
|
+
})
|
|
304
|
+
}), /* @__PURE__ */ s("span", {
|
|
305
|
+
className: "col-start-2",
|
|
306
|
+
children: n
|
|
307
|
+
})] })
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
//#endregion
|
|
311
|
+
//#region src/components/ui/drawer/menu-radio-group.tsx
|
|
312
|
+
function U({ className: t, ...n }) {
|
|
313
|
+
return /* @__PURE__ */ s(g, {
|
|
314
|
+
className: e("flex flex-col", t),
|
|
315
|
+
"data-slot": "drawer-menu-radio-group",
|
|
316
|
+
...n
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
//#endregion
|
|
320
|
+
//#region src/components/ui/drawer/menu-radio-item.tsx
|
|
321
|
+
function W({ className: t, children: n, value: r, disabled: i, render: a, ...o }) {
|
|
322
|
+
return /* @__PURE__ */ c(_.Root, {
|
|
323
|
+
className: e("grid min-h-9 w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-1 text-base text-foreground outline-none hover:bg-accent hover:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-64 sm:min-h-8 sm:text-sm [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:-mx-0.5 [&_svg]:shrink-0", "grid-cols-[1rem_1fr] items-center pe-4", t),
|
|
324
|
+
"data-slot": "drawer-menu-radio-item",
|
|
325
|
+
disabled: i,
|
|
326
|
+
render: a,
|
|
327
|
+
value: r,
|
|
328
|
+
...o,
|
|
329
|
+
children: [/* @__PURE__ */ s(_.Indicator, {
|
|
330
|
+
className: "col-start-1",
|
|
331
|
+
children: /* @__PURE__ */ s("svg", {
|
|
332
|
+
fill: "none",
|
|
333
|
+
height: "24",
|
|
334
|
+
stroke: "currentColor",
|
|
335
|
+
strokeLinecap: "round",
|
|
336
|
+
strokeLinejoin: "round",
|
|
337
|
+
strokeWidth: "2",
|
|
338
|
+
viewBox: "0 0 24 24",
|
|
339
|
+
width: "24",
|
|
340
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
341
|
+
children: /* @__PURE__ */ s("path", { d: "M5.252 12.7 10.2 18.63 18.748 5.37" })
|
|
342
|
+
})
|
|
343
|
+
}), /* @__PURE__ */ s("span", {
|
|
344
|
+
className: "col-start-2",
|
|
345
|
+
children: n
|
|
346
|
+
})]
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
//#endregion
|
|
350
|
+
export { C, b as E, w as S, x as T, k as _, V as a, E as b, R as c, F as d, P as f, A as g, j as h, H as i, L as l, M as m, W as n, B as o, N as p, U as r, z as s, h as t, I as u, O as v, S as w, T as x, D as y };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { t as e } from "./utils-BO0qfoA6.js";
|
|
2
|
+
import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
|
+
import { cva as i } from "class-variance-authority";
|
|
4
|
+
//#region src/components/ui/empty/base.tsx
|
|
5
|
+
function a({ className: t, ...r }) {
|
|
6
|
+
return /* @__PURE__ */ n("div", {
|
|
7
|
+
className: e("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance px-6 py-12 text-center md:py-20", t),
|
|
8
|
+
"data-slot": "empty",
|
|
9
|
+
...r
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/ui/empty/header.tsx
|
|
14
|
+
function o({ className: t, ...r }) {
|
|
15
|
+
return /* @__PURE__ */ n("div", {
|
|
16
|
+
className: e("flex max-w-sm flex-col items-center text-center", t),
|
|
17
|
+
"data-slot": "empty-header",
|
|
18
|
+
...r
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/components/ui/empty/utils.ts
|
|
23
|
+
var s = i("flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
24
|
+
defaultVariants: { variant: "default" },
|
|
25
|
+
variants: { variant: {
|
|
26
|
+
default: "bg-transparent",
|
|
27
|
+
icon: "relative flex size-9 shrink-0 items-center justify-center rounded-md border bg-card not-dark:bg-clip-padding text-foreground shadow-sm/5 before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)] [&_svg:not([class*='size-'])]:size-4.5"
|
|
28
|
+
} }
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/components/ui/empty/media.tsx
|
|
32
|
+
function c({ className: i, variant: a = "default", ...o }) {
|
|
33
|
+
return /* @__PURE__ */ r("div", {
|
|
34
|
+
className: e("relative mb-6", i),
|
|
35
|
+
"data-slot": "empty-media",
|
|
36
|
+
"data-variant": a,
|
|
37
|
+
...o,
|
|
38
|
+
children: [a === "icon" && /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n("div", {
|
|
39
|
+
"aria-hidden": "true",
|
|
40
|
+
className: e(s({
|
|
41
|
+
className: i,
|
|
42
|
+
variant: a
|
|
43
|
+
}), "pointer-events-none absolute bottom-px origin-bottom-left -translate-x-0.5 -rotate-10 scale-84 shadow-none")
|
|
44
|
+
}), /* @__PURE__ */ n("div", {
|
|
45
|
+
"aria-hidden": "true",
|
|
46
|
+
className: e(s({
|
|
47
|
+
className: i,
|
|
48
|
+
variant: a
|
|
49
|
+
}), "pointer-events-none absolute bottom-px origin-bottom-right translate-x-0.5 rotate-10 scale-84 shadow-none")
|
|
50
|
+
})] }), /* @__PURE__ */ n("div", {
|
|
51
|
+
className: e(s({
|
|
52
|
+
className: i,
|
|
53
|
+
variant: a
|
|
54
|
+
})),
|
|
55
|
+
...o
|
|
56
|
+
})]
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/components/ui/empty/title.tsx
|
|
61
|
+
function l({ className: t, ...r }) {
|
|
62
|
+
return /* @__PURE__ */ n("div", {
|
|
63
|
+
className: e("font-heading font-semibold text-xl", t),
|
|
64
|
+
"data-slot": "empty-title",
|
|
65
|
+
...r
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/components/ui/empty/description.tsx
|
|
70
|
+
function u({ className: t, ...r }) {
|
|
71
|
+
return /* @__PURE__ */ n("div", {
|
|
72
|
+
className: e("text-muted-foreground text-sm [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4 [[data-slot=empty-title]+&]:mt-1", t),
|
|
73
|
+
"data-slot": "empty-description",
|
|
74
|
+
...r
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/components/ui/empty/content.tsx
|
|
79
|
+
function d({ className: t, ...r }) {
|
|
80
|
+
return /* @__PURE__ */ n("div", {
|
|
81
|
+
className: e("flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm", t),
|
|
82
|
+
"data-slot": "empty-content",
|
|
83
|
+
...r
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
//#endregion
|
|
87
|
+
export { o as a, c as i, u as n, a as o, l as r, d as t };
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { jsx as
|
|
1
|
+
import { t as e } from "./portal-context-oIZFl3NP.js";
|
|
2
|
+
import { a as t } from "./tooltip-aPB3pyrl.js";
|
|
3
|
+
import { r as n } from "./toast-BLwJEhKU.js";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
import * as i from "react";
|
|
6
|
+
import { Provider as a, createStore as o, useStore as s } from "jotai";
|
|
5
7
|
//#region src/components/theme-provider.tsx
|
|
6
8
|
var c = "(prefers-color-scheme: dark)", l = [
|
|
7
9
|
"dark",
|
|
8
10
|
"light",
|
|
9
11
|
"system"
|
|
10
|
-
], u =
|
|
12
|
+
], u = i.createContext(void 0);
|
|
11
13
|
function d(e) {
|
|
12
14
|
return e !== null && l.includes(e);
|
|
13
15
|
}
|
|
@@ -27,25 +29,25 @@ function p() {
|
|
|
27
29
|
function m(e) {
|
|
28
30
|
return e instanceof HTMLElement && !!(e.isContentEditable || e.closest("input, textarea, select, [contenteditable='true']"));
|
|
29
31
|
}
|
|
30
|
-
function h({ children: e, defaultTheme: t = "system", storageKey: n = "theme", disableTransitionOnChange:
|
|
31
|
-
let [
|
|
32
|
+
function h({ children: e, defaultTheme: t = "system", storageKey: n = "theme", disableTransitionOnChange: a = !0, ...o }) {
|
|
33
|
+
let [s, l] = i.useState(() => {
|
|
32
34
|
let e = localStorage.getItem(n);
|
|
33
35
|
return d(e) ? e : t;
|
|
34
|
-
}), h =
|
|
36
|
+
}), h = i.useCallback((e) => {
|
|
35
37
|
localStorage.setItem(n, e), l(e);
|
|
36
|
-
}, [n]), g =
|
|
37
|
-
let t = document.documentElement, n = e === "system" ? f() : e, r =
|
|
38
|
+
}, [n]), g = i.useCallback((e) => {
|
|
39
|
+
let t = document.documentElement, n = e === "system" ? f() : e, r = a ? p() : null;
|
|
38
40
|
t.classList.remove("light", "dark"), t.classList.add(n), r && r();
|
|
39
|
-
}, [
|
|
40
|
-
|
|
41
|
-
if (g(
|
|
41
|
+
}, [a]);
|
|
42
|
+
i.useEffect(() => {
|
|
43
|
+
if (g(s), s !== "system") return;
|
|
42
44
|
let e = window.matchMedia(c), t = () => {
|
|
43
45
|
g("system");
|
|
44
46
|
};
|
|
45
47
|
return e.addEventListener("change", t), () => {
|
|
46
48
|
e.removeEventListener("change", t);
|
|
47
49
|
};
|
|
48
|
-
}, [
|
|
50
|
+
}, [s, g]), i.useEffect(() => {
|
|
49
51
|
let e = (e) => {
|
|
50
52
|
e.repeat || e.metaKey || e.ctrlKey || e.altKey || m(e.target) || e.key.toLowerCase() === "d" && l((e) => {
|
|
51
53
|
let t = e === "dark" ? "light" : e === "light" ? "dark" : f() === "dark" ? "light" : "dark";
|
|
@@ -55,7 +57,7 @@ function h({ children: e, defaultTheme: t = "system", storageKey: n = "theme", d
|
|
|
55
57
|
return window.addEventListener("keydown", e), () => {
|
|
56
58
|
window.removeEventListener("keydown", e);
|
|
57
59
|
};
|
|
58
|
-
}, [n]),
|
|
60
|
+
}, [n]), i.useEffect(() => {
|
|
59
61
|
let e = (e) => {
|
|
60
62
|
if (e.storageArea === localStorage && e.key === n) {
|
|
61
63
|
if (d(e.newValue)) {
|
|
@@ -69,12 +71,12 @@ function h({ children: e, defaultTheme: t = "system", storageKey: n = "theme", d
|
|
|
69
71
|
window.removeEventListener("storage", e);
|
|
70
72
|
};
|
|
71
73
|
}, [t, n]);
|
|
72
|
-
let _ =
|
|
73
|
-
theme:
|
|
74
|
+
let _ = i.useMemo(() => ({
|
|
75
|
+
theme: s,
|
|
74
76
|
setTheme: h
|
|
75
|
-
}), [
|
|
76
|
-
return /* @__PURE__ */
|
|
77
|
-
...
|
|
77
|
+
}), [s, h]);
|
|
78
|
+
return /* @__PURE__ */ r(u.Provider, {
|
|
79
|
+
...o,
|
|
78
80
|
value: _,
|
|
79
81
|
children: e
|
|
80
82
|
});
|
|
@@ -94,31 +96,31 @@ function _(e = g) {
|
|
|
94
96
|
}
|
|
95
97
|
//#endregion
|
|
96
98
|
//#region src/lib/state/store.ts
|
|
97
|
-
var v =
|
|
99
|
+
var v = o();
|
|
98
100
|
//#endregion
|
|
99
101
|
//#region src/lib/state/exegia-provider.tsx
|
|
100
|
-
function y({ children:
|
|
101
|
-
|
|
102
|
+
function y({ children: o, store: s, portalContainer: c, toast: l, tooltip: u, sound: d = !1, theme: f }) {
|
|
103
|
+
i.useEffect(() => {
|
|
102
104
|
if (d) return _();
|
|
103
105
|
}, [d]);
|
|
104
|
-
let p = /* @__PURE__ */
|
|
106
|
+
let p = /* @__PURE__ */ r(e.Provider, {
|
|
105
107
|
value: c,
|
|
106
|
-
children: /* @__PURE__ */
|
|
108
|
+
children: /* @__PURE__ */ r(t, {
|
|
107
109
|
...u,
|
|
108
|
-
children: /* @__PURE__ */
|
|
110
|
+
children: /* @__PURE__ */ r(n, {
|
|
109
111
|
...l,
|
|
110
|
-
children:
|
|
112
|
+
children: o
|
|
111
113
|
})
|
|
112
114
|
})
|
|
113
115
|
});
|
|
114
|
-
return /* @__PURE__ */
|
|
115
|
-
store:
|
|
116
|
-
children: f ? /* @__PURE__ */
|
|
116
|
+
return /* @__PURE__ */ r(a, {
|
|
117
|
+
store: s ?? v,
|
|
118
|
+
children: f ? /* @__PURE__ */ r(h, {
|
|
117
119
|
...f,
|
|
118
120
|
children: p
|
|
119
121
|
}) : p
|
|
120
122
|
});
|
|
121
123
|
}
|
|
122
|
-
var b =
|
|
124
|
+
var b = s;
|
|
123
125
|
//#endregion
|
|
124
126
|
export { g as i, b as n, v as r, y as t };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { t as e } from "./utils-BO0qfoA6.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { Fieldset as n, Fieldset as r } from "@base-ui/react/fieldset";
|
|
4
|
+
//#region src/components/ui/fieldset/base.tsx
|
|
5
|
+
function i({ className: e, ...r }) {
|
|
6
|
+
return /* @__PURE__ */ t(n.Root, {
|
|
7
|
+
className: e,
|
|
8
|
+
"data-slot": "fieldset",
|
|
9
|
+
...r
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/ui/fieldset/legend.tsx
|
|
14
|
+
function a({ className: r, ...i }) {
|
|
15
|
+
return /* @__PURE__ */ t(n.Legend, {
|
|
16
|
+
className: e("font-semibold text-foreground", r),
|
|
17
|
+
"data-slot": "fieldset-legend",
|
|
18
|
+
...i
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { a as n, i as r, r as t };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Form as t, Form as n } from "@base-ui/react/form";
|
|
3
|
+
//#region src/components/ui/form/base.tsx
|
|
4
|
+
function r({ className: n, ...r }) {
|
|
5
|
+
return /* @__PURE__ */ e(t, {
|
|
6
|
+
className: n,
|
|
7
|
+
"data-slot": "form",
|
|
8
|
+
...r
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { r as n, n as t };
|