@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,87 @@
|
|
|
1
|
+
import { t as e } from "./utils-BO0qfoA6.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { mergeProps as n } from "@base-ui/react/merge-props";
|
|
4
|
+
import { useRender as r } from "@base-ui/react/use-render";
|
|
5
|
+
//#region src/components/ui/table/base.tsx
|
|
6
|
+
function i({ className: i, variant: a = "default", render: o, ...s }) {
|
|
7
|
+
let c = {
|
|
8
|
+
children: /* @__PURE__ */ t("table", {
|
|
9
|
+
className: e("w-full caption-bottom in-data-[variant=card]:border-separate in-data-[variant=card]:border-spacing-0 text-sm", i),
|
|
10
|
+
"data-slot": "table",
|
|
11
|
+
...s
|
|
12
|
+
}),
|
|
13
|
+
className: "relative w-full overflow-x-auto",
|
|
14
|
+
"data-slot": "table-container",
|
|
15
|
+
"data-variant": a
|
|
16
|
+
};
|
|
17
|
+
return r({
|
|
18
|
+
defaultTagName: "div",
|
|
19
|
+
props: n(c, {}),
|
|
20
|
+
render: o
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/components/ui/table/header.tsx
|
|
25
|
+
function a({ className: n, ...r }) {
|
|
26
|
+
return /* @__PURE__ */ t("thead", {
|
|
27
|
+
className: e("[&_tr]:border-b", n),
|
|
28
|
+
"data-slot": "table-header",
|
|
29
|
+
...r
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/components/ui/table/body.tsx
|
|
34
|
+
function o({ className: n, ...r }) {
|
|
35
|
+
return /* @__PURE__ */ t("tbody", {
|
|
36
|
+
className: e("relative in-data-[variant=card]:rounded-xl in-data-[variant=card]:shadow-xs/5 before:pointer-events-none before:absolute before:inset-px not-in-data-[variant=card]:before:hidden before:rounded-[calc(var(--radius-xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] dark:before:shadow-[0_-1px_--theme(--color-white/8%)] [&_tr:last-child]:border-0 in-data-[variant=card]:*:[tr]:border-0 in-data-[variant=card]:*:[tr]:*:[td]:border-b in-data-[variant=card]:*:[tr]:*:[td]:bg-card in-data-[variant=card]:*:[tr]:first:*:[td]:first:rounded-ss-xl in-data-[variant=card]:*:[tr]:*:[td]:first:border-s in-data-[variant=card]:*:[tr]:first:*:[td]:border-t in-data-[variant=card]:*:[tr]:last:*:[td]:last:rounded-ee-xl in-data-[variant=card]:*:[tr]:*:[td]:last:border-e in-data-[variant=card]:*:[tr]:first:*:[td]:last:rounded-se-xl in-data-[variant=card]:*:[tr]:last:*:[td]:first:rounded-es-xl in-data-[variant=card]:*:[tr]:hover:*:[td]:bg-[color-mix(in_srgb,var(--card),var(--color-black)_2%)] in-data-[variant=card]:*:[tr]:data-[state=selected]:*:[td]:bg-[color-mix(in_srgb,var(--card),var(--color-black)_4%)] dark:in-data-[variant=card]:*:[tr]:data-[state=selected]:*:[td]:bg-[color-mix(in_srgb,var(--card),var(--color-white)_4%)] dark:in-data-[variant=card]:*:[tr]:hover:*:[td]:bg-[color-mix(in_srgb,var(--card),var(--color-white)_2%)]", n),
|
|
37
|
+
"data-slot": "table-body",
|
|
38
|
+
...r
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/components/ui/table/footer.tsx
|
|
43
|
+
function s({ className: n, ...r }) {
|
|
44
|
+
return /* @__PURE__ */ t("tfoot", {
|
|
45
|
+
className: e("border-t in-data-[variant=card]:border-none bg-transparent not-in-data-[variant=card]:bg-[color-mix(in_srgb,var(--card),var(--color-black)_2%)] font-medium dark:not-in-data-[variant=card]:bg-[color-mix(in_srgb,var(--card),var(--color-white)_2%)] [&>tr]:last:border-b-0", n),
|
|
46
|
+
"data-slot": "table-footer",
|
|
47
|
+
...r
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/components/ui/table/row.tsx
|
|
52
|
+
function c({ className: n, ...r }) {
|
|
53
|
+
return /* @__PURE__ */ t("tr", {
|
|
54
|
+
className: e("relative border-b not-in-data-[variant=card]:hover:bg-[color-mix(in_srgb,var(--background),var(--color-black)_2%)] not-in-data-[variant=card]:data-[state=selected]:bg-[color-mix(in_srgb,var(--background),var(--color-black)_4%)] dark:not-in-data-[variant=card]:data-[state=selected]:bg-[color-mix(in_srgb,var(--background),var(--color-white)_4%)] dark:not-in-data-[variant=card]:hover:bg-[color-mix(in_srgb,var(--background),var(--color-white)_2%)]", n),
|
|
55
|
+
"data-slot": "table-row",
|
|
56
|
+
...r
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/components/ui/table/head.tsx
|
|
61
|
+
function l({ className: n, ...r }) {
|
|
62
|
+
return /* @__PURE__ */ t("th", {
|
|
63
|
+
className: e("h-10 whitespace-nowrap px-2.5 text-left align-middle font-medium text-muted-foreground leading-none has-[[role=checkbox]]:w-px last:has-[[role=checkbox]]:ps-0 first:has-[[role=checkbox]]:pe-0", n),
|
|
64
|
+
"data-slot": "table-head",
|
|
65
|
+
...r
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/components/ui/table/cell.tsx
|
|
70
|
+
function u({ className: n, ...r }) {
|
|
71
|
+
return /* @__PURE__ */ t("td", {
|
|
72
|
+
className: e("whitespace-nowrap bg-clip-padding p-2.5 in-data-[slot=table-footer]:py-3.5 align-middle leading-none in-data-[variant=card]:first:ps-[calc(--spacing(2.5)-1px)] in-data-[variant=card]:last:pe-[calc(--spacing(2.5)-1px)] has-[[role=checkbox]]:w-px last:has-[[role=checkbox]]:ps-0 first:has-[[role=checkbox]]:pe-0", n),
|
|
73
|
+
"data-slot": "table-cell",
|
|
74
|
+
...r
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/components/ui/table/caption.tsx
|
|
79
|
+
function d({ className: n, ...r }) {
|
|
80
|
+
return /* @__PURE__ */ t("caption", {
|
|
81
|
+
className: e("in-data-[variant=card]:my-4 mt-4 text-muted-foreground text-sm", n),
|
|
82
|
+
"data-slot": "table-caption",
|
|
83
|
+
...r
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
//#endregion
|
|
87
|
+
export { s as a, i as c, c as i, u as n, o, l as r, a as s, d as t };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { t as e } from "./utils-BO0qfoA6.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { cva as r } from "class-variance-authority";
|
|
4
|
+
import * as i from "react";
|
|
5
|
+
import { Tabs as a } from "@base-ui/react/tabs";
|
|
6
|
+
//#region src/lib/segmented-control.ts
|
|
7
|
+
var o = {
|
|
8
|
+
default: "h-8.5 px-[calc(--spacing(2.5)-1px)] sm:h-7.5",
|
|
9
|
+
lg: "h-9.5 px-[calc(--spacing(3)-1px)] sm:h-8.5",
|
|
10
|
+
sm: "h-7.5 px-[calc(--spacing(2)-1px)] sm:h-6.5",
|
|
11
|
+
xs: "h-6.5 px-[calc(--spacing(1.5)-1px)] sm:h-5.5"
|
|
12
|
+
}, s = "gap-1.5 [&_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";
|
|
13
|
+
r(["relative inline-flex shrink-0 cursor-pointer select-none items-center justify-center whitespace-nowrap rounded-md border border-transparent font-medium text-base text-muted-foreground/72 outline-2 outline-transparent transition-[outline-color] hover:bg-transparent hover:text-muted-foreground focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-64 data-disabled:pointer-events-none data-disabled:opacity-64 sm:text-sm", s], {
|
|
14
|
+
defaultVariants: { size: "default" },
|
|
15
|
+
variants: {
|
|
16
|
+
size: o,
|
|
17
|
+
state: {
|
|
18
|
+
checked: "data-checked:bg-background data-checked:text-foreground data-checked:shadow-sm/5 dark:data-checked:bg-input",
|
|
19
|
+
current: "aria-[current=page]:bg-background aria-[current=page]:text-foreground aria-[current=page]:shadow-sm/5 dark:aria-[current=page]:bg-input",
|
|
20
|
+
pressed: "data-pressed:bg-background data-pressed:text-foreground data-pressed:shadow-sm/5 dark:data-pressed:bg-input"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/components/ui/tabs.tsx
|
|
26
|
+
var c = i.createContext("default");
|
|
27
|
+
function l({ className: n, ...r }) {
|
|
28
|
+
return /* @__PURE__ */ t(a.Root, {
|
|
29
|
+
className: e("flex flex-col gap-2 data-[orientation=vertical]:flex-row", n),
|
|
30
|
+
"data-slot": "tabs",
|
|
31
|
+
...r
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function u({ variant: r = "default", size: i = "default", className: o, children: s, ...l }) {
|
|
35
|
+
return /* @__PURE__ */ n(a.List, {
|
|
36
|
+
className: e("relative z-0 flex w-fit items-center justify-center gap-x-0.5 text-muted-foreground", "data-[orientation=vertical]:flex-col", r === "default" ? "rounded-lg bg-muted p-0.5 text-muted-foreground/72" : "data-[orientation=horizontal]:py-1 data-[orientation=vertical]:px-1 *:data-[slot=tabs-tab]:hover:bg-accent", i === "xs" && "text-xs!", o),
|
|
37
|
+
"data-size": i,
|
|
38
|
+
"data-slot": "tabs-list",
|
|
39
|
+
...l,
|
|
40
|
+
children: [/* @__PURE__ */ t(c.Provider, {
|
|
41
|
+
value: i,
|
|
42
|
+
children: s
|
|
43
|
+
}), /* @__PURE__ */ t(a.Indicator, {
|
|
44
|
+
className: e("absolute bottom-0 left-0 h-(--active-tab-height) w-(--active-tab-width) translate-x-(--active-tab-left) -translate-y-(--active-tab-bottom) transition-[width,translate] duration-200 ease-in-out", r === "underline" ? "z-10 bg-primary data-[orientation=horizontal]:h-0.5 data-[orientation=horizontal]:translate-y-px data-[orientation=vertical]:w-0.5 data-[orientation=vertical]:-translate-x-px" : "-z-1 rounded-md bg-background shadow-sm/5 dark:bg-input"),
|
|
45
|
+
"data-slot": "tab-indicator"
|
|
46
|
+
})]
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function d({ className: n, size: r, ...l }) {
|
|
50
|
+
let u = i.useContext(c), d = r ?? u;
|
|
51
|
+
return /* @__PURE__ */ t(a.Tab, {
|
|
52
|
+
className: e("relative flex shrink-0 grow cursor-pointer items-center justify-center rounded-md border border-transparent text-base font-medium whitespace-nowrap transition-[color,background-color,box-shadow] outline-none hover:text-muted-foreground focus-visible:ring-2 focus-visible:ring-ring data-[orientation=vertical]:w-full data-[orientation=vertical]:justify-start sm:text-sm data-disabled:pointer-events-none data-disabled:opacity-64 data-active:text-foreground", s, o[d], r === "xs" && "text-xs!", n),
|
|
53
|
+
"data-size": d,
|
|
54
|
+
"data-slot": "tabs-tab",
|
|
55
|
+
...l
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function f({ className: n, ...r }) {
|
|
59
|
+
return /* @__PURE__ */ t(a.Panel, {
|
|
60
|
+
className: e("flex-1 outline-none", n),
|
|
61
|
+
"data-slot": "tabs-content",
|
|
62
|
+
...r
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
export { d as a, a as i, u as n, f as r, l as t };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { t as e } from "./utils-BO0qfoA6.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { mergeProps as n } from "@base-ui/react/merge-props";
|
|
4
|
+
import { Field as r } from "@base-ui/react/field";
|
|
5
|
+
//#region src/components/ui/textarea.tsx
|
|
6
|
+
function i({ className: i, size: a = "default", unstyled: o = !1, ref: s, ...c }) {
|
|
7
|
+
return /* @__PURE__ */ t("span", {
|
|
8
|
+
className: e(!o && "relative inline-flex w-full rounded-md border border-input bg-background not-dark:bg-clip-padding text-base text-foreground shadow-xs/5 ring-ring/24 transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] has-focus-visible:has-aria-invalid:border-destructive/64 has-focus-visible:has-aria-invalid:ring-destructive/16 has-aria-invalid:border-destructive/36 has-focus-visible:border-ring has-disabled:opacity-64 has-[:disabled,:focus-visible,[aria-invalid]]:shadow-none has-focus-visible:ring-[3px] not-has-disabled:has-not-focus-visible:not-has-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)] sm:text-sm dark:bg-input/32 dark:has-aria-invalid:ring-destructive/24 dark:not-has-disabled:has-not-focus-visible:not-has-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)]", i) || void 0,
|
|
9
|
+
"data-size": a,
|
|
10
|
+
"data-slot": "textarea-control",
|
|
11
|
+
children: /* @__PURE__ */ t(r.Control, {
|
|
12
|
+
ref: s,
|
|
13
|
+
value: c.value,
|
|
14
|
+
defaultValue: c.defaultValue,
|
|
15
|
+
disabled: c.disabled,
|
|
16
|
+
id: c.id,
|
|
17
|
+
name: c.name,
|
|
18
|
+
render: (r) => /* @__PURE__ */ t("textarea", {
|
|
19
|
+
className: e("field-sizing-content min-h-17.5 w-full rounded-[inherit] px-[calc(--spacing(3)-1px)] py-[calc(--spacing(1.5)-1px)] outline-none max-sm:min-h-20.5", a === "sm" && "min-h-16.5 px-[calc(--spacing(2.5)-1px)] py-[calc(--spacing(1)-1px)] max-sm:min-h-19.5", a === "lg" && "min-h-18.5 py-[calc(--spacing(2)-1px)] max-sm:min-h-21.5"),
|
|
20
|
+
"data-slot": "textarea",
|
|
21
|
+
...n(r, c)
|
|
22
|
+
})
|
|
23
|
+
})
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { i as n, r as t };
|
|
@@ -1,105 +1,63 @@
|
|
|
1
1
|
import { t as e } from "./utils-BO0qfoA6.js";
|
|
2
|
-
import { n as t } from "./button-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { jsx as
|
|
6
|
-
import {
|
|
7
|
-
import { Toast as f } from "@base-ui/react/toast";
|
|
8
|
-
//#region src/lib/state/portal-context.ts
|
|
9
|
-
var p = s(void 0);
|
|
10
|
-
function m(e) {
|
|
11
|
-
let t = c(p);
|
|
12
|
-
return e === void 0 ? t : e;
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/components/ui/tooltip.tsx
|
|
16
|
-
var h = d.createHandle, g = d.Provider, _ = d.Root;
|
|
17
|
-
function v(e) {
|
|
18
|
-
return /* @__PURE__ */ l(d.Trigger, {
|
|
19
|
-
"data-slot": "tooltip-trigger",
|
|
20
|
-
...e
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
function y({ className: t, align: n = "center", sideOffset: r = 4, side: i = "top", anchor: a, children: o, portalProps: s, ...c }) {
|
|
24
|
-
let u = m(s?.container);
|
|
25
|
-
return /* @__PURE__ */ l(d.Portal, {
|
|
26
|
-
...s,
|
|
27
|
-
container: u,
|
|
28
|
-
children: /* @__PURE__ */ l(d.Positioner, {
|
|
29
|
-
align: n,
|
|
30
|
-
anchor: a,
|
|
31
|
-
className: "z-50 h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom,transform] data-instant:transition-none",
|
|
32
|
-
"data-slot": "tooltip-positioner",
|
|
33
|
-
side: i,
|
|
34
|
-
sideOffset: r,
|
|
35
|
-
children: /* @__PURE__ */ l(d.Popup, {
|
|
36
|
-
className: e("relative flex h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) text-balance rounded-md border bg-popover not-dark:bg-clip-padding text-popover-foreground text-xs shadow-md/5 transition-[width,height,scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 data-instant:duration-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]", t),
|
|
37
|
-
"data-slot": "tooltip-popup",
|
|
38
|
-
...c,
|
|
39
|
-
children: /* @__PURE__ */ l(d.Viewport, {
|
|
40
|
-
className: "relative size-full overflow-clip px-(--viewport-inline-padding) py-1 [--viewport-inline-padding:--spacing(2)] data-instant:transition-none **:data-current:data-ending-style:opacity-0 **:data-current:data-starting-style:opacity-0 **:data-previous:data-ending-style:opacity-0 **:data-previous:data-starting-style:opacity-0 **:data-current:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-previous:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-previous:truncate **:data-current:opacity-100 **:data-previous:opacity-100 **:data-current:transition-opacity **:data-previous:transition-opacity",
|
|
41
|
-
"data-slot": "tooltip-viewport",
|
|
42
|
-
children: o
|
|
43
|
-
})
|
|
44
|
-
})
|
|
45
|
-
})
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
//#endregion
|
|
2
|
+
import { n as t } from "./button-DDBbG_zF.js";
|
|
3
|
+
import { n } from "./portal-context-oIZFl3NP.js";
|
|
4
|
+
import { CircleAlertIcon as r, CircleCheckIcon as i, InfoIcon as a, LoaderCircleIcon as o, TriangleAlertIcon as s } from "lucide-react";
|
|
5
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
|
+
import { Toast as u } from "@base-ui/react/toast";
|
|
49
7
|
//#region src/components/ui/toast.tsx
|
|
50
|
-
var
|
|
51
|
-
error:
|
|
52
|
-
info:
|
|
53
|
-
loading:
|
|
54
|
-
success:
|
|
55
|
-
warning:
|
|
8
|
+
var d = {
|
|
9
|
+
error: r,
|
|
10
|
+
info: a,
|
|
11
|
+
loading: o,
|
|
12
|
+
success: i,
|
|
13
|
+
warning: s
|
|
56
14
|
};
|
|
57
|
-
function
|
|
15
|
+
function f(e) {
|
|
58
16
|
let t = e.startsWith("top") ? "up" : "down";
|
|
59
17
|
return e.includes("center") ? [t] : e.includes("left") ? ["left", t] : ["right", t];
|
|
60
18
|
}
|
|
61
|
-
function
|
|
19
|
+
function p(e) {
|
|
62
20
|
let t = e.updateKey ?? 0;
|
|
63
21
|
if (t <= 0) return;
|
|
64
22
|
let n = t % 2 == 0;
|
|
65
23
|
return e.type === "error" ? n ? "animate-toast-error-even" : "animate-toast-error-odd" : n ? "animate-toast-success-even" : "animate-toast-success-odd";
|
|
66
24
|
}
|
|
67
|
-
function
|
|
68
|
-
let { toasts: i } =
|
|
69
|
-
return /* @__PURE__ */
|
|
25
|
+
function m({ position: n, portalProps: r }) {
|
|
26
|
+
let { toasts: i } = u.useToastManager(), a = f(n);
|
|
27
|
+
return /* @__PURE__ */ c(u.Portal, {
|
|
70
28
|
"data-slot": "toast-portal",
|
|
71
29
|
...r,
|
|
72
|
-
children: /* @__PURE__ */
|
|
30
|
+
children: /* @__PURE__ */ c(u.Viewport, {
|
|
73
31
|
className: e("fixed z-60 mx-auto flex w-[calc(100%-var(--toast-inset)*2)] max-w-90 [--toast-inset:--spacing(4)] sm:[--toast-inset:--spacing(8)]", "data-[position*=top]:top-(--toast-inset)", "data-[position*=bottom]:bottom-(--toast-inset)", "data-[position*=left]:left-(--toast-inset)", "data-[position*=right]:right-(--toast-inset)", "data-[position*=center]:left-1/2 data-[position*=center]:-translate-x-1/2"),
|
|
74
32
|
"data-position": n,
|
|
75
33
|
"data-slot": "toast-viewport",
|
|
76
34
|
children: i.map((r) => {
|
|
77
|
-
let i = r.type ?
|
|
78
|
-
return /* @__PURE__ */
|
|
79
|
-
className: e("absolute z-[calc(9999-var(--toast-index))] h-(--toast-calc-height) w-full select-none rounded-lg border bg-[color-mix(in_srgb,var(--popover),var(--color-black)_calc(1%*max(0,var(--toast-index,0))))] not-dark:bg-clip-padding text-popover-foreground shadow-lg/5 [transition:transform_.5s_cubic-bezier(.22,1,.36,1),opacity_.5s,height_.15s,background-color_.5s] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-expanded:bg-popover dark:bg-[color-mix(in_srgb,var(--popover),var(--color-black)_calc(6%*max(0,var(--toast-index,0))))] dark:data-expanded:bg-popover dark:before:shadow-[0_-1px_--theme(--color-white/6%)]", "data-[position*=right]:right-0 data-[position*=right]:left-auto", "data-[position*=left]:right-auto data-[position*=left]:left-0", "data-[position*=center]:right-0 data-[position*=center]:left-0", "data-[position*=top]:top-0 data-[position*=top]:bottom-auto data-[position*=top]:origin-[50%_calc(50%-50%*min(var(--toast-index,0),1))]", "data-[position*=bottom]:top-auto data-[position*=bottom]:bottom-0 data-[position*=bottom]:origin-[50%_calc(50%+50%*min(var(--toast-index,0),1))]", "after:absolute after:left-0 after:h-[calc(var(--toast-gap)+1px)] after:w-full", "data-[position*=top]:after:top-full", "data-[position*=bottom]:after:bottom-full", "[--toast-calc-height:var(--toast-frontmost-height,var(--toast-height))] [--toast-gap:--spacing(3)] [--toast-peek:--spacing(3)] [--toast-scale:calc(max(0,1-(var(--toast-index)*.1)))] [--toast-shrink:calc(1-var(--toast-scale))]", "data-[position*=top]:[--toast-calc-offset-y:calc(var(--toast-offset-y)+var(--toast-index)*var(--toast-gap)+var(--toast-swipe-movement-y))]", "data-[position*=bottom]:[--toast-calc-offset-y:calc(var(--toast-offset-y)*-1+var(--toast-index)*var(--toast-gap)*-1+var(--toast-swipe-movement-y))]", "data-[position*=top]:transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)+(var(--toast-index)*var(--toast-peek))+(var(--toast-shrink)*var(--toast-calc-height))))_scale(var(--toast-scale))]", "data-[position*=bottom]:transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--toast-peek))-(var(--toast-shrink)*var(--toast-calc-height))))_scale(var(--toast-scale))]", "data-limited:opacity-0", "data-expanded:h-(--toast-height)", "data-position:data-expanded:transform-[translateX(var(--toast-swipe-movement-x))_translateY(var(--toast-calc-offset-y))]", "data-[position*=top]:data-starting-style:transform-[translateY(calc(-100%-var(--toast-inset)))]", "data-[position*=bottom]:data-starting-style:transform-[translateY(calc(100%+var(--toast-inset)))]", "data-ending-style:opacity-0", "data-[position*=top]:data-ending-style:not-data-limited:not-data-swipe-direction:transform-[translateY(calc(-100%-var(--toast-inset)))]", "data-[position*=bottom]:data-ending-style:not-data-limited:not-data-swipe-direction:transform-[translateY(calc(100%+var(--toast-inset)))]", "data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-100%-var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]", "data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]", "data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-100%-var(--toast-inset)))]", "data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+100%+var(--toast-inset)))]", "data-expanded:data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-100%-var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]", "data-expanded:data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]", "data-expanded:data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-100%-var(--toast-inset)))]", "data-expanded:data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+100%+var(--toast-inset)))]",
|
|
35
|
+
let i = r.type ? d[r.type] : null, o = r.data;
|
|
36
|
+
return /* @__PURE__ */ c(u.Root, {
|
|
37
|
+
className: e("absolute z-[calc(9999-var(--toast-index))] h-(--toast-calc-height) w-full select-none rounded-lg border bg-[color-mix(in_srgb,var(--popover),var(--color-black)_calc(1%*max(0,var(--toast-index,0))))] not-dark:bg-clip-padding text-popover-foreground shadow-lg/5 [transition:transform_.5s_cubic-bezier(.22,1,.36,1),opacity_.5s,height_.15s,background-color_.5s] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-expanded:bg-popover dark:bg-[color-mix(in_srgb,var(--popover),var(--color-black)_calc(6%*max(0,var(--toast-index,0))))] dark:data-expanded:bg-popover dark:before:shadow-[0_-1px_--theme(--color-white/6%)]", "data-[position*=right]:right-0 data-[position*=right]:left-auto", "data-[position*=left]:right-auto data-[position*=left]:left-0", "data-[position*=center]:right-0 data-[position*=center]:left-0", "data-[position*=top]:top-0 data-[position*=top]:bottom-auto data-[position*=top]:origin-[50%_calc(50%-50%*min(var(--toast-index,0),1))]", "data-[position*=bottom]:top-auto data-[position*=bottom]:bottom-0 data-[position*=bottom]:origin-[50%_calc(50%+50%*min(var(--toast-index,0),1))]", "after:absolute after:left-0 after:h-[calc(var(--toast-gap)+1px)] after:w-full", "data-[position*=top]:after:top-full", "data-[position*=bottom]:after:bottom-full", "[--toast-calc-height:var(--toast-frontmost-height,var(--toast-height))] [--toast-gap:--spacing(3)] [--toast-peek:--spacing(3)] [--toast-scale:calc(max(0,1-(var(--toast-index)*.1)))] [--toast-shrink:calc(1-var(--toast-scale))]", "data-[position*=top]:[--toast-calc-offset-y:calc(var(--toast-offset-y)+var(--toast-index)*var(--toast-gap)+var(--toast-swipe-movement-y))]", "data-[position*=bottom]:[--toast-calc-offset-y:calc(var(--toast-offset-y)*-1+var(--toast-index)*var(--toast-gap)*-1+var(--toast-swipe-movement-y))]", "data-[position*=top]:transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)+(var(--toast-index)*var(--toast-peek))+(var(--toast-shrink)*var(--toast-calc-height))))_scale(var(--toast-scale))]", "data-[position*=bottom]:transform-[translateX(var(--toast-swipe-movement-x))_translateY(calc(var(--toast-swipe-movement-y)-(var(--toast-index)*var(--toast-peek))-(var(--toast-shrink)*var(--toast-calc-height))))_scale(var(--toast-scale))]", "data-limited:opacity-0", "data-expanded:h-(--toast-height)", "data-position:data-expanded:transform-[translateX(var(--toast-swipe-movement-x))_translateY(var(--toast-calc-offset-y))]", "data-[position*=top]:data-starting-style:transform-[translateY(calc(-100%-var(--toast-inset)))]", "data-[position*=bottom]:data-starting-style:transform-[translateY(calc(100%+var(--toast-inset)))]", "data-ending-style:opacity-0", "data-[position*=top]:data-ending-style:not-data-limited:not-data-swipe-direction:transform-[translateY(calc(-100%-var(--toast-inset)))]", "data-[position*=bottom]:data-ending-style:not-data-limited:not-data-swipe-direction:transform-[translateY(calc(100%+var(--toast-inset)))]", "data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-100%-var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]", "data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]", "data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-100%-var(--toast-inset)))]", "data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+100%+var(--toast-inset)))]", "data-expanded:data-ending-style:data-[swipe-direction=left]:transform-[translateX(calc(var(--toast-swipe-movement-x)-100%-var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]", "data-expanded:data-ending-style:data-[swipe-direction=right]:transform-[translateX(calc(var(--toast-swipe-movement-x)+100%+var(--toast-inset)))_translateY(var(--toast-calc-offset-y))]", "data-expanded:data-ending-style:data-[swipe-direction=up]:transform-[translateY(calc(var(--toast-swipe-movement-y)-100%-var(--toast-inset)))]", "data-expanded:data-ending-style:data-[swipe-direction=down]:transform-[translateY(calc(var(--toast-swipe-movement-y)+100%+var(--toast-inset)))]", p(r)),
|
|
80
38
|
...o?.rootProps,
|
|
81
39
|
"data-position": n,
|
|
82
40
|
swipeDirection: a,
|
|
83
41
|
toast: r,
|
|
84
|
-
children: /* @__PURE__ */ u
|
|
42
|
+
children: /* @__PURE__ */ l(u.Content, {
|
|
85
43
|
className: "pointer-events-auto flex items-center justify-between gap-1.5 overflow-hidden px-3.5 py-3 text-sm transition-opacity duration-250 data-behind:not-data-expanded:pointer-events-none data-behind:opacity-0 data-expanded:opacity-100",
|
|
86
|
-
children: [/* @__PURE__ */
|
|
44
|
+
children: [/* @__PURE__ */ l("div", {
|
|
87
45
|
className: "flex gap-2",
|
|
88
|
-
children: [i && /* @__PURE__ */
|
|
46
|
+
children: [i && /* @__PURE__ */ c("div", {
|
|
89
47
|
className: "[&>svg]:h-lh [&>svg]:w-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
90
48
|
"data-slot": "toast-icon",
|
|
91
|
-
children: /* @__PURE__ */
|
|
92
|
-
}), /* @__PURE__ */
|
|
49
|
+
children: /* @__PURE__ */ c(i, { className: "in-data-[type=loading]:animate-spin in-data-[type=error]:text-destructive in-data-[type=info]:text-info in-data-[type=success]:text-success in-data-[type=warning]:text-warning in-data-[type=loading]:opacity-80" })
|
|
50
|
+
}), /* @__PURE__ */ l("div", {
|
|
93
51
|
className: "flex flex-col gap-0.5",
|
|
94
|
-
children: [/* @__PURE__ */
|
|
52
|
+
children: [/* @__PURE__ */ c(u.Title, {
|
|
95
53
|
className: "font-medium",
|
|
96
54
|
"data-slot": "toast-title"
|
|
97
|
-
}), /* @__PURE__ */
|
|
55
|
+
}), /* @__PURE__ */ c(u.Description, {
|
|
98
56
|
className: "text-muted-foreground",
|
|
99
57
|
"data-slot": "toast-description"
|
|
100
58
|
})]
|
|
101
59
|
})]
|
|
102
|
-
}), r.actionProps && /* @__PURE__ */
|
|
60
|
+
}), r.actionProps && /* @__PURE__ */ c(u.Action, {
|
|
103
61
|
className: t({ size: "xs" }),
|
|
104
62
|
"data-slot": "toast-action",
|
|
105
63
|
children: r.actionProps.children
|
|
@@ -110,48 +68,48 @@ function C({ position: n, portalProps: r }) {
|
|
|
110
68
|
})
|
|
111
69
|
});
|
|
112
70
|
}
|
|
113
|
-
function
|
|
114
|
-
let { toasts: r } =
|
|
115
|
-
return /* @__PURE__ */
|
|
71
|
+
function h({ portalProps: n }) {
|
|
72
|
+
let { toasts: r } = u.useToastManager();
|
|
73
|
+
return /* @__PURE__ */ c(u.Portal, {
|
|
116
74
|
"data-slot": "toast-portal-anchored",
|
|
117
75
|
...n,
|
|
118
|
-
children: /* @__PURE__ */
|
|
76
|
+
children: /* @__PURE__ */ c(u.Viewport, {
|
|
119
77
|
className: "outline-none",
|
|
120
78
|
"data-slot": "toast-viewport-anchored",
|
|
121
79
|
children: r.map((n) => {
|
|
122
|
-
let r = n.type ?
|
|
123
|
-
return o?.anchor ? /* @__PURE__ */
|
|
80
|
+
let r = n.type ? d[n.type] : null, i = n.data, a = i?.tooltipStyle ?? !1, o = n.positionerProps;
|
|
81
|
+
return o?.anchor ? /* @__PURE__ */ c(u.Positioner, {
|
|
124
82
|
className: "z-60 max-w-[min(--spacing(64),var(--available-width))]",
|
|
125
83
|
"data-slot": "toast-positioner",
|
|
126
84
|
sideOffset: o.sideOffset ?? 4,
|
|
127
85
|
toast: n,
|
|
128
|
-
children: /* @__PURE__ */
|
|
129
|
-
className: e("relative text-balance border bg-popover not-dark:bg-clip-padding text-popover-foreground text-xs transition-[scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]", a ? "rounded-md shadow-md/5 before:rounded-[calc(var(--radius-md)-1px)]" : "rounded-lg shadow-lg/5 before:rounded-[calc(var(--radius-lg)-1px)]",
|
|
86
|
+
children: /* @__PURE__ */ c(u.Root, {
|
|
87
|
+
className: e("relative text-balance border bg-popover not-dark:bg-clip-padding text-popover-foreground text-xs transition-[scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]", a ? "rounded-md shadow-md/5 before:rounded-[calc(var(--radius-md)-1px)]" : "rounded-lg shadow-lg/5 before:rounded-[calc(var(--radius-lg)-1px)]", p(n)),
|
|
130
88
|
...i?.rootProps,
|
|
131
89
|
"data-slot": "toast-popup",
|
|
132
90
|
toast: n,
|
|
133
|
-
children: a ? /* @__PURE__ */
|
|
91
|
+
children: a ? /* @__PURE__ */ c(u.Content, {
|
|
134
92
|
className: "pointer-events-auto px-2 py-1",
|
|
135
|
-
children: /* @__PURE__ */
|
|
136
|
-
}) : /* @__PURE__ */ u
|
|
93
|
+
children: /* @__PURE__ */ c(u.Title, { "data-slot": "toast-title" })
|
|
94
|
+
}) : /* @__PURE__ */ l(u.Content, {
|
|
137
95
|
className: "pointer-events-auto flex items-center justify-between gap-1.5 overflow-hidden px-3.5 py-3 text-sm",
|
|
138
|
-
children: [/* @__PURE__ */
|
|
96
|
+
children: [/* @__PURE__ */ l("div", {
|
|
139
97
|
className: "flex gap-2",
|
|
140
|
-
children: [r && /* @__PURE__ */
|
|
98
|
+
children: [r && /* @__PURE__ */ c("div", {
|
|
141
99
|
className: "[&>svg]:h-lh [&>svg]:w-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
142
100
|
"data-slot": "toast-icon",
|
|
143
|
-
children: /* @__PURE__ */
|
|
144
|
-
}), /* @__PURE__ */
|
|
101
|
+
children: /* @__PURE__ */ c(r, { className: "in-data-[type=loading]:animate-spin in-data-[type=error]:text-destructive in-data-[type=info]:text-info in-data-[type=success]:text-success in-data-[type=warning]:text-warning in-data-[type=loading]:opacity-80" })
|
|
102
|
+
}), /* @__PURE__ */ l("div", {
|
|
145
103
|
className: "flex flex-col gap-0.5",
|
|
146
|
-
children: [/* @__PURE__ */
|
|
104
|
+
children: [/* @__PURE__ */ c(u.Title, {
|
|
147
105
|
className: "font-medium",
|
|
148
106
|
"data-slot": "toast-title"
|
|
149
|
-
}), /* @__PURE__ */
|
|
107
|
+
}), /* @__PURE__ */ c(u.Description, {
|
|
150
108
|
className: "text-muted-foreground",
|
|
151
109
|
"data-slot": "toast-description"
|
|
152
110
|
})]
|
|
153
111
|
})]
|
|
154
|
-
}), n.actionProps && /* @__PURE__ */
|
|
112
|
+
}), n.actionProps && /* @__PURE__ */ c(u.Action, {
|
|
155
113
|
className: t({ size: "xs" }),
|
|
156
114
|
"data-slot": "toast-action",
|
|
157
115
|
children: n.actionProps.children
|
|
@@ -163,31 +121,31 @@ function w({ portalProps: n }) {
|
|
|
163
121
|
})
|
|
164
122
|
});
|
|
165
123
|
}
|
|
166
|
-
var
|
|
167
|
-
function
|
|
168
|
-
let
|
|
169
|
-
return /* @__PURE__ */ u
|
|
170
|
-
toastManager:
|
|
171
|
-
...
|
|
172
|
-
children: [e, /* @__PURE__ */
|
|
124
|
+
var g = u.createToastManager(), _ = u.useToastManager, v = u.createToastManager();
|
|
125
|
+
function y({ children: e, position: t = "bottom-right", portalProps: r, ...i }) {
|
|
126
|
+
let a = n(r?.container);
|
|
127
|
+
return /* @__PURE__ */ l(u.Provider, {
|
|
128
|
+
toastManager: g,
|
|
129
|
+
...i,
|
|
130
|
+
children: [e, /* @__PURE__ */ c(m, {
|
|
173
131
|
portalProps: {
|
|
174
|
-
...
|
|
175
|
-
container:
|
|
132
|
+
...r,
|
|
133
|
+
container: a
|
|
176
134
|
},
|
|
177
135
|
position: t
|
|
178
136
|
})]
|
|
179
137
|
});
|
|
180
138
|
}
|
|
181
|
-
function
|
|
182
|
-
let
|
|
183
|
-
return /* @__PURE__ */ u
|
|
184
|
-
toastManager:
|
|
185
|
-
...
|
|
186
|
-
children: [e, /* @__PURE__ */
|
|
139
|
+
function b({ children: e, portalProps: t, ...r }) {
|
|
140
|
+
let i = n(t?.container);
|
|
141
|
+
return /* @__PURE__ */ l(u.Provider, {
|
|
142
|
+
toastManager: v,
|
|
143
|
+
...r,
|
|
144
|
+
children: [e, /* @__PURE__ */ c(h, { portalProps: {
|
|
187
145
|
...t,
|
|
188
|
-
container:
|
|
146
|
+
container: i
|
|
189
147
|
} })]
|
|
190
148
|
});
|
|
191
149
|
}
|
|
192
150
|
//#endregion
|
|
193
|
-
export {
|
|
151
|
+
export { g as a, v as i, u as n, _ as o, y as r, b as t };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { t as e } from "./utils-BO0qfoA6.js";
|
|
2
|
+
import { t } from "./separator-D7T-98IV.js";
|
|
3
|
+
import { t as n } from "./base-CiR7nLAD.js";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
import * as i from "react";
|
|
6
|
+
import { ToggleGroup as a, ToggleGroup as o } from "@base-ui/react/toggle-group";
|
|
7
|
+
//#region src/components/ui/toggle-group/context.ts
|
|
8
|
+
var s = i.createContext({
|
|
9
|
+
size: "default",
|
|
10
|
+
variant: "default"
|
|
11
|
+
});
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/ui/toggle-group/base.tsx
|
|
14
|
+
function c({ className: t, variant: n = "default", size: i = "default", orientation: o = "horizontal", children: c, ...l }) {
|
|
15
|
+
return /* @__PURE__ */ r(a, {
|
|
16
|
+
className: e("flex w-fit *:focus-visible:z-10 dark:*:[[data-slot=separator]:has(+[data-slot=toggle]:hover)]:before:bg-input/64 dark:*:[[data-slot=separator]:has(+[data-slot=toggle][data-pressed])]:before:bg-input dark:*:[[data-slot=toggle]:hover+[data-slot=separator]]:before:bg-input/64 dark:*:[[data-slot=toggle][data-pressed]+[data-slot=separator]]:before:bg-input", o === "horizontal" ? "*:pointer-coarse:after:min-w-auto" : "*:pointer-coarse:after:min-h-auto", n === "default" ? "gap-0.5" : o === "horizontal" ? "*:not-first:rounded-s-none *:not-last:rounded-e-none *:not-first:border-s-0 *:not-last:border-e-0 *:not-first:not-data-[slot=separator]:before:-start-[0.5px] *:not-last:not-data-[slot=separator]:before:-end-[0.5px] *:not-first:before:rounded-s-none *:not-last:before:rounded-e-none" : "flex-col *:not-first:rounded-t-none *:not-last:rounded-b-none *:not-first:border-t-0 *:not-last:border-b-0 *:not-first:not-data-[slot=separator]:before:-top-[0.5px] *:not-last:not-data-[slot=separator]:before:-bottom-[0.5px] *:not-first:before:rounded-t-none *:not-last:before:rounded-b-none *:data-[slot=toggle]:not-last:before:hidden dark:*:last:before:hidden dark:*:first:before:block", t),
|
|
17
|
+
"data-size": i,
|
|
18
|
+
"data-slot": "toggle-group",
|
|
19
|
+
"data-variant": n,
|
|
20
|
+
orientation: o,
|
|
21
|
+
...l,
|
|
22
|
+
children: /* @__PURE__ */ r(s.Provider, {
|
|
23
|
+
value: {
|
|
24
|
+
size: i,
|
|
25
|
+
variant: n
|
|
26
|
+
},
|
|
27
|
+
children: c
|
|
28
|
+
})
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/ui/toggle-group/item.tsx
|
|
33
|
+
function l({ className: e, children: t, variant: a, size: o, ...c }) {
|
|
34
|
+
let l = i.useContext(s), u = l.variant || a, d = l.size || o;
|
|
35
|
+
return /* @__PURE__ */ r(n, {
|
|
36
|
+
className: e,
|
|
37
|
+
"data-size": d,
|
|
38
|
+
"data-variant": u,
|
|
39
|
+
size: d,
|
|
40
|
+
variant: u,
|
|
41
|
+
...c,
|
|
42
|
+
children: t
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/components/ui/toggle-group/separator.tsx
|
|
47
|
+
function u({ className: n, orientation: i = "vertical", ...a }) {
|
|
48
|
+
return /* @__PURE__ */ r(t, {
|
|
49
|
+
className: e("pointer-events-none relative bg-input before:absolute before:inset-0 dark:before:bg-input/32", n),
|
|
50
|
+
orientation: i,
|
|
51
|
+
...a
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
export { s as a, c as i, u as n, l as r, o as t };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { t as e } from "./utils-BO0qfoA6.js";
|
|
2
|
+
import { n as t } from "./portal-context-oIZFl3NP.js";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { Tooltip as r } from "@base-ui/react/tooltip";
|
|
5
|
+
//#region src/components/ui/tooltip.tsx
|
|
6
|
+
var i = r.createHandle, a = r.Provider, o = r.Root;
|
|
7
|
+
function s(e) {
|
|
8
|
+
return /* @__PURE__ */ n(r.Trigger, {
|
|
9
|
+
"data-slot": "tooltip-trigger",
|
|
10
|
+
...e
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function c({ className: i, align: a = "center", sideOffset: o = 4, side: s = "top", anchor: c, children: l, portalProps: u, ...d }) {
|
|
14
|
+
let f = t(u?.container);
|
|
15
|
+
return /* @__PURE__ */ n(r.Portal, {
|
|
16
|
+
...u,
|
|
17
|
+
container: f,
|
|
18
|
+
children: /* @__PURE__ */ n(r.Positioner, {
|
|
19
|
+
align: a,
|
|
20
|
+
anchor: c,
|
|
21
|
+
className: "z-50 h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom,transform] data-instant:transition-none",
|
|
22
|
+
"data-slot": "tooltip-positioner",
|
|
23
|
+
side: s,
|
|
24
|
+
sideOffset: o,
|
|
25
|
+
children: /* @__PURE__ */ n(r.Popup, {
|
|
26
|
+
className: e("relative flex h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) text-balance rounded-md border bg-popover not-dark:bg-clip-padding text-popover-foreground text-xs shadow-md/5 transition-[width,height,scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 data-instant:duration-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]", i),
|
|
27
|
+
"data-slot": "tooltip-popup",
|
|
28
|
+
...d,
|
|
29
|
+
children: /* @__PURE__ */ n(r.Viewport, {
|
|
30
|
+
className: "relative size-full overflow-clip px-(--viewport-inline-padding) py-1 [--viewport-inline-padding:--spacing(2)] data-instant:transition-none **:data-current:data-ending-style:opacity-0 **:data-current:data-starting-style:opacity-0 **:data-previous:data-ending-style:opacity-0 **:data-previous:data-starting-style:opacity-0 **:data-current:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-previous:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-previous:truncate **:data-current:opacity-100 **:data-previous:opacity-100 **:data-current:transition-opacity **:data-previous:transition-opacity",
|
|
31
|
+
"data-slot": "tooltip-viewport",
|
|
32
|
+
children: l
|
|
33
|
+
})
|
|
34
|
+
})
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { a, r as i, i as n, s as o, c as r, o as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/ui/accordion';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { t as e } from "../utils-BO0qfoA6.js";
|
|
2
|
+
import { Accordion as t } from "@base-ui/react/accordion";
|
|
3
|
+
import { ChevronDownIcon as n } from "lucide-react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/ui/accordion.tsx
|
|
6
|
+
function a(e) {
|
|
7
|
+
return /* @__PURE__ */ r(t.Root, {
|
|
8
|
+
"data-slot": "accordion",
|
|
9
|
+
...e
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
function o({ className: n, ...i }) {
|
|
13
|
+
return /* @__PURE__ */ r(t.Item, {
|
|
14
|
+
className: e("border-b last:border-b-0", n),
|
|
15
|
+
"data-slot": "accordion-item",
|
|
16
|
+
...i
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function s({ className: a, children: o, ...s }) {
|
|
20
|
+
return /* @__PURE__ */ r(t.Header, {
|
|
21
|
+
className: "flex",
|
|
22
|
+
children: /* @__PURE__ */ i(t.Trigger, {
|
|
23
|
+
className: e("flex flex-1 cursor-pointer items-start justify-between gap-4 rounded-md py-4 text-left font-medium text-sm outline-none transition-all focus-visible:ring-[3px] focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-64 data-panel-open:*:data-[slot=accordion-indicator]:rotate-180", a),
|
|
24
|
+
"data-slot": "accordion-trigger",
|
|
25
|
+
...s,
|
|
26
|
+
children: [o, /* @__PURE__ */ r(n, {
|
|
27
|
+
className: "pointer-events-none size-4 shrink-0 translate-y-0.5 opacity-80 transition-transform duration-200 ease-in-out",
|
|
28
|
+
"data-slot": "accordion-indicator"
|
|
29
|
+
})]
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function c({ className: n, children: i, ...a }) {
|
|
34
|
+
return /* @__PURE__ */ r(t.Panel, {
|
|
35
|
+
className: "h-(--accordion-panel-height) overflow-hidden text-muted-foreground text-sm transition-[height,opacity] duration-300 ease-[var(--ease-out-strong)] data-ending-style:h-0 data-ending-style:opacity-0 data-starting-style:h-0 data-starting-style:opacity-0",
|
|
36
|
+
"data-slot": "accordion-panel",
|
|
37
|
+
...a,
|
|
38
|
+
children: /* @__PURE__ */ r("div", {
|
|
39
|
+
className: e("pt-0 pb-4", n),
|
|
40
|
+
children: i
|
|
41
|
+
})
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { a as Accordion, c as AccordionContent, c as AccordionPanel, o as AccordionItem, t as AccordionPrimitive, s as AccordionTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../components/ui/alert-dialog';
|