@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
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { t as e } from "./utils-BO0qfoA6.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { t } from "./button-DDBbG_zF.js";
|
|
3
|
+
import { a as n, g as r, n as i } from "./ease-C9At8rnB.js";
|
|
4
4
|
import { PanelLeft as a, PanelRight as o } from "lucide-react";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
|
+
import * as l from "react";
|
|
7
|
+
import { createContext as u, forwardRef as d, useCallback as f, useContext as p, useEffect as m, useId as h, useMemo as g, useRef as _, useState as v, useSyncExternalStore as y } from "react";
|
|
8
|
+
import { atom as b, useAtomValueRawSync as x, useSetAtom as S } from "jotai";
|
|
9
|
+
import { motion as C, useIsomorphicLayoutEffect as w, useReducedMotion as T } from "motion/react";
|
|
10
10
|
//#region src/components/blocks/shell/shell-panel-atom.ts
|
|
11
11
|
function E() {
|
|
12
|
-
let e =
|
|
12
|
+
let e = b(null), t = b(null, (t, n, r) => {
|
|
13
13
|
Number.isFinite(r) && n(e, Math.max(180, Math.min(480, r)));
|
|
14
|
-
}), n =
|
|
14
|
+
}), n = b({
|
|
15
15
|
left: !0,
|
|
16
16
|
right: !1
|
|
17
|
-
}), r =
|
|
17
|
+
}), r = b({
|
|
18
18
|
left: !1,
|
|
19
19
|
right: !1
|
|
20
|
-
}), i =
|
|
20
|
+
}), i = b({}), a = b(null), o = b(!1), s = b(null, (e, t, r, i) => {
|
|
21
21
|
let o = e(a);
|
|
22
22
|
o ? o.setOpen(r, i) : t(n, {
|
|
23
23
|
...e(n),
|
|
@@ -32,15 +32,15 @@ function E() {
|
|
|
32
32
|
components: i,
|
|
33
33
|
handlers: a,
|
|
34
34
|
setOpen: s,
|
|
35
|
-
setOpenMobile:
|
|
35
|
+
setOpenMobile: b(null, (e, t, n, i) => {
|
|
36
36
|
let o = e(a);
|
|
37
37
|
o ? o.setOpenMobile(n, i) : t(r, {
|
|
38
38
|
...e(r),
|
|
39
39
|
[i]: n
|
|
40
40
|
});
|
|
41
41
|
}),
|
|
42
|
-
toggle:
|
|
43
|
-
seed:
|
|
42
|
+
toggle: b(null, (e, t, r) => t(s, !e(n)[r], r)),
|
|
43
|
+
seed: b(null, (e, t, i, a) => {
|
|
44
44
|
e(o) || (t(o, !0), t(n, {
|
|
45
45
|
...e(n),
|
|
46
46
|
...i
|
|
@@ -114,19 +114,19 @@ function I(e) {
|
|
|
114
114
|
}
|
|
115
115
|
function L(e, t) {
|
|
116
116
|
return I((n) => {
|
|
117
|
-
let r =
|
|
117
|
+
let r = b(t);
|
|
118
118
|
return r.debugLabel = `shell-fit/${n}/${e}`, r;
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
function R(e, t) {
|
|
122
122
|
return I((n) => {
|
|
123
|
-
let r =
|
|
123
|
+
let r = b((e) => t(e, n));
|
|
124
124
|
return r.debugLabel = `shell-fit/${n}/${e}`, r;
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
function z(e, t) {
|
|
128
128
|
return I((n) => {
|
|
129
|
-
let r =
|
|
129
|
+
let r = b(null, (e, r, ...i) => t(e, r, n, ...i));
|
|
130
130
|
return r.debugLabel = `shell-fit/${n}/${e}`, r;
|
|
131
131
|
});
|
|
132
132
|
}
|
|
@@ -169,26 +169,26 @@ var ae = "bezel-lit-t-2 bezel-lit-blur-2 bezel-lit/57 bezel-dim-b-2 bezel-dim-bl
|
|
|
169
169
|
}, ce = {
|
|
170
170
|
duration: .2,
|
|
171
171
|
delay: .08,
|
|
172
|
-
ease:
|
|
172
|
+
ease: n
|
|
173
173
|
}, le = {
|
|
174
174
|
duration: .12,
|
|
175
|
-
ease:
|
|
175
|
+
ease: n
|
|
176
176
|
}, ue = {
|
|
177
177
|
duration: .36,
|
|
178
|
-
ease:
|
|
178
|
+
ease: i
|
|
179
179
|
}, de = {
|
|
180
180
|
duration: .16,
|
|
181
|
-
ease:
|
|
181
|
+
ease: n
|
|
182
182
|
}, fe = {
|
|
183
183
|
duration: .18,
|
|
184
|
-
ease:
|
|
184
|
+
ease: n
|
|
185
185
|
}, pe = {
|
|
186
186
|
closed: {
|
|
187
187
|
opacity: 0,
|
|
188
188
|
clipPath: "inset(0 0 100% 0 round 8px)",
|
|
189
189
|
transition: {
|
|
190
190
|
duration: .14,
|
|
191
|
-
ease:
|
|
191
|
+
ease: n,
|
|
192
192
|
staggerChildren: .025,
|
|
193
193
|
staggerDirection: -1
|
|
194
194
|
}
|
|
@@ -199,7 +199,7 @@ var ae = "bezel-lit-t-2 bezel-lit-blur-2 bezel-lit/57 bezel-dim-b-2 bezel-dim-bl
|
|
|
199
199
|
transition: {
|
|
200
200
|
duration: .2,
|
|
201
201
|
delayChildren: .035,
|
|
202
|
-
ease:
|
|
202
|
+
ease: n,
|
|
203
203
|
staggerChildren: .045
|
|
204
204
|
}
|
|
205
205
|
}
|
|
@@ -239,9 +239,9 @@ function $(e, t) {
|
|
|
239
239
|
let r = n.getBoundingClientRect().width;
|
|
240
240
|
return n.remove(), r;
|
|
241
241
|
}
|
|
242
|
-
var be =
|
|
242
|
+
var be = u(null), xe = u(null);
|
|
243
243
|
function Se() {
|
|
244
|
-
let e =
|
|
244
|
+
let e = p(be);
|
|
245
245
|
if (!e) throw Error("useAnimatedSidebar must be used inside AnimatedPanelProvider.");
|
|
246
246
|
return e;
|
|
247
247
|
}
|
|
@@ -256,67 +256,67 @@ function Te() {
|
|
|
256
256
|
return !1;
|
|
257
257
|
}
|
|
258
258
|
function Ee() {
|
|
259
|
-
return
|
|
259
|
+
return y(Ce, we, Te);
|
|
260
260
|
}
|
|
261
261
|
function De() {
|
|
262
|
-
let e =
|
|
262
|
+
let e = p(xe);
|
|
263
263
|
if (!e) throw Error("Animated Sidebar parts must be used inside AnimatedPanel.");
|
|
264
264
|
return e;
|
|
265
265
|
}
|
|
266
266
|
//#endregion
|
|
267
267
|
//#region src/components/blocks/shell/animated-panel.tsx
|
|
268
|
-
function Oe({ side: t = "left", variant:
|
|
269
|
-
let
|
|
268
|
+
function Oe({ side: t = "left", variant: n = "sidebar", collapsible: i = "icon", ariaLabel: a = "Sidebar", children: o, className: l, panelClassName: u, style: d, ref: p, ...m }) {
|
|
269
|
+
let h = Se(), g = S(O(h.fit.shellId).resizeSidebar), { bounds: _, panelWidth: v, resizePanel: y } = h.fit, b = h.fit.sidebar, x = h.open[t], w = t === "left" && b ? b.mode !== "expanded" : i !== "none" && !x, T = t === "left" && b ? b.mode === "hidden" : w && i === "offcanvas", E = t !== "right" || h.fit.fits, D = t === "right" ? v ?? 320 : b?.width ?? (w ? 56 : 256), { panelRef: k, gripRef: A } = r({
|
|
270
270
|
size: D,
|
|
271
|
-
defaultSize: t === "right" ?
|
|
272
|
-
minSize: t === "right" ?
|
|
273
|
-
maxSize: t === "right" ?
|
|
274
|
-
collapsed:
|
|
271
|
+
defaultSize: t === "right" ? h.fit.defaultPanelWidth ?? (_.min || 320) : 256,
|
|
272
|
+
minSize: t === "right" ? _.min || 320 : w ? D : b?.minWidth ?? 180,
|
|
273
|
+
maxSize: t === "right" ? _.max || 640 : w ? D : b?.maxWidth ?? 480,
|
|
274
|
+
collapsed: T,
|
|
275
275
|
enabled: E,
|
|
276
276
|
overshoot: !1,
|
|
277
|
-
transition:
|
|
278
|
-
onSizeChange: (e) => t === "right" ?
|
|
279
|
-
onCollapsedChange: i === "none" ? void 0 : (e) =>
|
|
280
|
-
}), j =
|
|
281
|
-
k.current = e, typeof
|
|
282
|
-
}, [k,
|
|
283
|
-
return t === "right" && !
|
|
284
|
-
...
|
|
277
|
+
transition: h.reduce ? { duration: 0 } : se,
|
|
278
|
+
onSizeChange: (e) => t === "right" ? y(Number(e)) : g(Number(e)),
|
|
279
|
+
onCollapsedChange: i === "none" ? void 0 : (e) => h.setOpen(!e, t)
|
|
280
|
+
}), j = f((e) => {
|
|
281
|
+
k.current = e, typeof p == "function" ? p(e) : p && (p.current = e);
|
|
282
|
+
}, [k, p]);
|
|
283
|
+
return t === "right" && !h.fit.fits ? null : /* @__PURE__ */ c(C.aside, {
|
|
284
|
+
...m,
|
|
285
285
|
ref: j,
|
|
286
286
|
initial: !1,
|
|
287
287
|
"aria-label": a,
|
|
288
|
-
"aria-hidden":
|
|
289
|
-
inert:
|
|
288
|
+
"aria-hidden": T || void 0,
|
|
289
|
+
inert: T || void 0,
|
|
290
290
|
"data-slot": "sidebar",
|
|
291
|
-
"data-state":
|
|
291
|
+
"data-state": w ? "collapsed" : "expanded",
|
|
292
292
|
"data-collapsible": i,
|
|
293
|
-
"data-variant":
|
|
293
|
+
"data-variant": n,
|
|
294
294
|
"data-side": t,
|
|
295
|
-
animate: { ...t === "right" ? { marginLeft:
|
|
296
|
-
transition:
|
|
295
|
+
animate: { ...t === "right" ? { marginLeft: T ? "-0.5rem" : "0rem" } : { marginRight: T ? "-0.5rem" : "0rem" } },
|
|
296
|
+
transition: h.reduce ? { duration: 0 } : se,
|
|
297
297
|
style: {
|
|
298
|
-
...
|
|
298
|
+
...d,
|
|
299
299
|
flexShrink: 0
|
|
300
300
|
},
|
|
301
|
-
className: e("group/sidebar relative h-full shrink-0 will-change-[width]", "peer flex!", t === "right" && "order-last",
|
|
302
|
-
children: [i !== "none" && /* @__PURE__ */
|
|
301
|
+
className: e("group/sidebar relative h-full shrink-0 will-change-[width]", "peer flex!", t === "right" && "order-last", l),
|
|
302
|
+
children: [i !== "none" && /* @__PURE__ */ s("div", {
|
|
303
303
|
ref: A,
|
|
304
304
|
role: "separator",
|
|
305
305
|
"aria-label": `Resize ${a}`,
|
|
306
306
|
"aria-orientation": "vertical",
|
|
307
|
-
tabIndex:
|
|
308
|
-
"aria-hidden":
|
|
309
|
-
className: e("inset-y-0 w-2 hover:bg-amber-300/20 data-resizing:bg-amber-300/20 absolute z-10 cursor-col-resize touch-none focus-visible:outline-2 focus-visible:outline-ring",
|
|
310
|
-
}), /* @__PURE__ */
|
|
307
|
+
tabIndex: w ? -1 : 0,
|
|
308
|
+
"aria-hidden": w || void 0,
|
|
309
|
+
className: e("inset-y-0 w-2 hover:bg-amber-300/20 data-resizing:bg-amber-300/20 absolute z-10 cursor-col-resize touch-none focus-visible:outline-2 focus-visible:outline-ring", w && "pointer-events-none", t === "right" ? "-left-2" : "-right-2")
|
|
310
|
+
}), /* @__PURE__ */ s("div", {
|
|
311
311
|
className: "contents",
|
|
312
|
-
children: /* @__PURE__ */
|
|
312
|
+
children: /* @__PURE__ */ s(C.div, {
|
|
313
313
|
initial: !1,
|
|
314
|
-
animate: { opacity: +!
|
|
315
|
-
transition:
|
|
316
|
-
className: e("top-0 sticky flex w-full flex-col overflow-hidden", t === "right" && "ml-auto",
|
|
317
|
-
children: /* @__PURE__ */
|
|
314
|
+
animate: { opacity: +!T },
|
|
315
|
+
transition: h.reduce ? de : ue,
|
|
316
|
+
className: e("top-0 sticky flex w-full flex-col overflow-hidden", t === "right" && "ml-auto", n === "floating" && "mx-2 mt-2 h-[calc(100%-0.5rem)]", n === "inset" && "mt-2 h-[calc(100%-0.5rem)]", u),
|
|
317
|
+
children: /* @__PURE__ */ s(xe.Provider, {
|
|
318
318
|
value: {
|
|
319
|
-
collapsed:
|
|
319
|
+
collapsed: w,
|
|
320
320
|
collapsible: i,
|
|
321
321
|
side: t
|
|
322
322
|
},
|
|
@@ -351,19 +351,19 @@ function ke(e, t) {
|
|
|
351
351
|
};
|
|
352
352
|
}
|
|
353
353
|
function Ae({ shellId: e, hostRef: t, railOpen: n, defaultPanelWidth: r, onUnfit: i }) {
|
|
354
|
-
let a =
|
|
355
|
-
|
|
354
|
+
let a = h(), o = e ?? a, s = x(O(o).railWidth), [c] = v(() => ({ panelWidth: r ?? null })), l = S(Z(o)), u = S(ie(o)), d = S(Y(o)), f = S(X(o));
|
|
355
|
+
w(() => {
|
|
356
356
|
l(c);
|
|
357
357
|
}, [l, c]);
|
|
358
|
-
let
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
}),
|
|
358
|
+
let p = _(i);
|
|
359
|
+
w(() => {
|
|
360
|
+
p.current = i;
|
|
361
|
+
}), w(() => {
|
|
362
362
|
let e = t.current;
|
|
363
363
|
if (!e) return;
|
|
364
364
|
let r = () => {
|
|
365
365
|
let t = ke(e, n);
|
|
366
|
-
u(t), M(t) ||
|
|
366
|
+
u(t), M(t) || p.current?.();
|
|
367
367
|
};
|
|
368
368
|
r();
|
|
369
369
|
let i = new ResizeObserver(r);
|
|
@@ -375,54 +375,54 @@ function Ae({ shellId: e, hostRef: t, railOpen: n, defaultPanelWidth: r, onUnfit
|
|
|
375
375
|
n,
|
|
376
376
|
s,
|
|
377
377
|
u
|
|
378
|
-
]),
|
|
378
|
+
]), m(() => {
|
|
379
379
|
if (e === void 0) return () => Q(o);
|
|
380
380
|
}, [o, e]);
|
|
381
|
-
let
|
|
382
|
-
return
|
|
381
|
+
let y = x(J(o));
|
|
382
|
+
return g(() => ({
|
|
383
383
|
shellId: o,
|
|
384
|
-
...
|
|
384
|
+
...y,
|
|
385
385
|
defaultPanelWidth: c.panelWidth,
|
|
386
386
|
resizePanel: d,
|
|
387
|
-
resetPanelWidth:
|
|
387
|
+
resetPanelWidth: f
|
|
388
388
|
}), [
|
|
389
389
|
o,
|
|
390
|
-
|
|
390
|
+
y,
|
|
391
391
|
c.panelWidth,
|
|
392
392
|
d,
|
|
393
|
-
|
|
393
|
+
f
|
|
394
394
|
]);
|
|
395
395
|
}
|
|
396
396
|
//#endregion
|
|
397
397
|
//#region src/components/blocks/shell/animated-panel-provider.tsx
|
|
398
|
-
function je({ children: t, shellId: n, defaultPanelWidth: r, open: i, defaultOpen: a, onOpenChange: o, openMobile:
|
|
399
|
-
let
|
|
400
|
-
|
|
398
|
+
function je({ children: t, shellId: n, defaultPanelWidth: r, open: i, defaultOpen: a, onOpenChange: o, openMobile: c, defaultOpenMobile: l, onOpenMobileChange: u, onNarrowChange: d, panelComponents: p, className: v, style: y, ...b }) {
|
|
399
|
+
let C = h(), E = n ?? C;
|
|
400
|
+
m(() => {
|
|
401
401
|
if (n === void 0) return () => Q(E);
|
|
402
402
|
}, [E, n]);
|
|
403
|
-
let D = O(E), k =
|
|
404
|
-
|
|
405
|
-
P(a,
|
|
403
|
+
let D = O(E), k = x(D.railWidth), A = x(D.open), j = x(D.mobile), M = S(D.open), N = S(D.mobile), P = S(D.seed), F = S(D.handlers);
|
|
404
|
+
m(() => {
|
|
405
|
+
P(a, l);
|
|
406
406
|
}, [
|
|
407
407
|
P,
|
|
408
408
|
a,
|
|
409
|
-
|
|
409
|
+
l
|
|
410
410
|
]);
|
|
411
|
-
let ee = Ee(), te =
|
|
411
|
+
let ee = Ee(), te = T() ?? !1, ne = _(null), re = _(null), I = _(null), L = _(!0), R = _(!0), z = i?.left, B = i?.right, V = c?.left, H = c?.right, U = g(() => ({
|
|
412
412
|
left: z ?? A.left,
|
|
413
413
|
right: B ?? A.right
|
|
414
414
|
}), [
|
|
415
415
|
z,
|
|
416
416
|
B,
|
|
417
417
|
A
|
|
418
|
-
]), W =
|
|
418
|
+
]), W = g(() => ({
|
|
419
419
|
left: V ?? j.left,
|
|
420
420
|
right: H ?? j.right
|
|
421
421
|
}), [
|
|
422
422
|
V,
|
|
423
423
|
H,
|
|
424
424
|
j
|
|
425
|
-
]), G =
|
|
425
|
+
]), G = f((e, t) => {
|
|
426
426
|
(!e || t !== "right" || L.current) && (!e || t !== "left" || R.current) && ((t === "left" ? z : B) === void 0 && M((n) => n[t] === e ? n : {
|
|
427
427
|
...n,
|
|
428
428
|
[t]: e
|
|
@@ -432,25 +432,25 @@ function je({ children: t, shellId: n, defaultPanelWidth: r, open: i, defaultOpe
|
|
|
432
432
|
B,
|
|
433
433
|
o,
|
|
434
434
|
M
|
|
435
|
-
]), K =
|
|
435
|
+
]), K = f((e, t) => {
|
|
436
436
|
(!e || t !== "right" || L.current) && (!e || t !== "left" || R.current) && ((t === "left" ? V : H) === void 0 && N((n) => n[t] === e ? n : {
|
|
437
437
|
...n,
|
|
438
438
|
[t]: e
|
|
439
|
-
}),
|
|
439
|
+
}), u?.(e, t));
|
|
440
440
|
}, [
|
|
441
441
|
V,
|
|
442
442
|
H,
|
|
443
|
-
|
|
443
|
+
u,
|
|
444
444
|
N
|
|
445
445
|
]);
|
|
446
|
-
|
|
446
|
+
m(() => (F({
|
|
447
447
|
setOpen: G,
|
|
448
448
|
setOpenMobile: K
|
|
449
449
|
}), () => F(null)), [
|
|
450
450
|
F,
|
|
451
451
|
G,
|
|
452
452
|
K
|
|
453
|
-
]),
|
|
453
|
+
]), m(() => {
|
|
454
454
|
(z !== void 0 || B !== void 0) && M((e) => ({
|
|
455
455
|
...e,
|
|
456
456
|
...i
|
|
@@ -460,55 +460,55 @@ function je({ children: t, shellId: n, defaultPanelWidth: r, open: i, defaultOpe
|
|
|
460
460
|
B,
|
|
461
461
|
i,
|
|
462
462
|
M
|
|
463
|
-
]),
|
|
463
|
+
]), m(() => {
|
|
464
464
|
(V !== void 0 || H !== void 0) && N((e) => ({
|
|
465
465
|
...e,
|
|
466
|
-
...
|
|
466
|
+
...c
|
|
467
467
|
}));
|
|
468
468
|
}, [
|
|
469
469
|
V,
|
|
470
470
|
H,
|
|
471
|
-
|
|
471
|
+
c,
|
|
472
472
|
N
|
|
473
473
|
]);
|
|
474
|
-
let q =
|
|
474
|
+
let q = f((e) => {
|
|
475
475
|
(e !== "left" || R.current) && G(!U[e], e);
|
|
476
|
-
}, [U, G]), J =
|
|
476
|
+
}, [U, G]), J = g(() => ({
|
|
477
477
|
left: ne,
|
|
478
478
|
right: re
|
|
479
|
-
}), []), ie =
|
|
480
|
-
|
|
479
|
+
}), []), ie = _(() => {});
|
|
480
|
+
w(() => {
|
|
481
481
|
ie.current = () => {
|
|
482
482
|
U.right && G(!1, "right"), W.right && K(!1, "right");
|
|
483
483
|
};
|
|
484
484
|
});
|
|
485
|
-
let Y =
|
|
485
|
+
let Y = f(() => ie.current(), []), X = Ae({
|
|
486
486
|
shellId: E,
|
|
487
487
|
hostRef: I,
|
|
488
488
|
railOpen: U.left,
|
|
489
489
|
defaultPanelWidth: r,
|
|
490
490
|
onUnfit: Y
|
|
491
491
|
}), Z = !X.fits;
|
|
492
|
-
|
|
492
|
+
w(() => {
|
|
493
493
|
L.current = X.fits, R.current = X.sidebar?.canExpand ?? !0;
|
|
494
494
|
});
|
|
495
|
-
let ae =
|
|
496
|
-
|
|
495
|
+
let ae = _(d);
|
|
496
|
+
m(() => {
|
|
497
497
|
ae.current = d;
|
|
498
498
|
});
|
|
499
|
-
let oe =
|
|
500
|
-
return
|
|
499
|
+
let oe = _(!1);
|
|
500
|
+
return m(() => {
|
|
501
501
|
oe.current !== Z && (oe.current = Z, ae.current?.(Z));
|
|
502
|
-
}, [Z]),
|
|
502
|
+
}, [Z]), m(() => {
|
|
503
503
|
let e = (e) => {
|
|
504
504
|
e.key.toLowerCase() === "b" && (e.metaKey || e.ctrlKey) && (e.preventDefault(), q("left"));
|
|
505
505
|
};
|
|
506
506
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
507
|
-
}, [q]), /* @__PURE__ */
|
|
507
|
+
}, [q]), /* @__PURE__ */ s(be.Provider, {
|
|
508
508
|
value: {
|
|
509
509
|
isMobile: ee,
|
|
510
510
|
fit: X,
|
|
511
|
-
layoutId: `${
|
|
511
|
+
layoutId: `${C}-active`,
|
|
512
512
|
open: U,
|
|
513
513
|
openMobile: W,
|
|
514
514
|
reduce: te,
|
|
@@ -517,8 +517,8 @@ function je({ children: t, shellId: n, defaultPanelWidth: r, open: i, defaultOpe
|
|
|
517
517
|
toggleSidebar: q,
|
|
518
518
|
triggerRefs: J
|
|
519
519
|
},
|
|
520
|
-
children: /* @__PURE__ */
|
|
521
|
-
...
|
|
520
|
+
children: /* @__PURE__ */ s("div", {
|
|
521
|
+
...b,
|
|
522
522
|
ref: I,
|
|
523
523
|
"data-slot": "sidebar-wrapper",
|
|
524
524
|
"data-narrow": Z ? "" : void 0,
|
|
@@ -527,38 +527,38 @@ function je({ children: t, shellId: n, defaultPanelWidth: r, open: i, defaultOpe
|
|
|
527
527
|
"data-state-right": U.right ? "expanded" : "collapsed",
|
|
528
528
|
style: {
|
|
529
529
|
...ve,
|
|
530
|
-
...
|
|
530
|
+
...y,
|
|
531
531
|
...k !== null && { "--sidebar-width": `${k}px` }
|
|
532
532
|
},
|
|
533
|
-
className: e("group/sidebar-wrapper min-w-0 gap-x-2 flex w-full overflow-hidden",
|
|
533
|
+
className: e("group/sidebar-wrapper min-w-0 gap-x-2 flex w-full overflow-hidden", v),
|
|
534
534
|
children: t
|
|
535
535
|
})
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
538
|
//#endregion
|
|
539
539
|
//#region src/components/blocks/shell/animated-panel-trigger.tsx
|
|
540
|
-
var Me =
|
|
541
|
-
let o = Se(),
|
|
542
|
-
return
|
|
543
|
-
...
|
|
540
|
+
var Me = d(function({ onClick: e, side: n = "left", type: r = "button", ...i }, a) {
|
|
541
|
+
let o = Se(), c = n === "left" && o.fit.sidebar ? o.fit.sidebar.mode === "expanded" : o.open[n], l = o.triggerRefs[n];
|
|
542
|
+
return n === "right" && !o.fit.fits ? null : /* @__PURE__ */ s(t, {
|
|
543
|
+
...i,
|
|
544
544
|
ref: (e) => {
|
|
545
|
-
|
|
545
|
+
l.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
|
|
546
546
|
},
|
|
547
|
-
disabled:
|
|
548
|
-
type:
|
|
547
|
+
disabled: i.disabled || n === "left" && o.fit.sidebar?.canExpand === !1,
|
|
548
|
+
type: r,
|
|
549
549
|
variant: "ghost",
|
|
550
550
|
size: "icon-xl",
|
|
551
|
-
"aria-label":
|
|
552
|
-
"aria-expanded":
|
|
551
|
+
"aria-label": i["aria-label"] ?? "Toggle sidebar",
|
|
552
|
+
"aria-expanded": c,
|
|
553
553
|
"data-slot": "sidebar-trigger",
|
|
554
|
-
"data-side":
|
|
555
|
-
"data-state":
|
|
556
|
-
onClick: (
|
|
557
|
-
e?.(
|
|
554
|
+
"data-side": n,
|
|
555
|
+
"data-state": c ? "expanded" : "collapsed",
|
|
556
|
+
onClick: (t) => {
|
|
557
|
+
e?.(t), !t.defaultPrevented && o.toggleSidebar(n);
|
|
558
558
|
}
|
|
559
559
|
});
|
|
560
|
-
}), Ne =
|
|
561
|
-
return /* @__PURE__ */
|
|
560
|
+
}), Ne = d(function({ className: t, ...n }, r) {
|
|
561
|
+
return /* @__PURE__ */ s(C.main, {
|
|
562
562
|
...n,
|
|
563
563
|
ref: r,
|
|
564
564
|
"data-slot": "sidebar-inset",
|
|
@@ -568,38 +568,38 @@ var Me = l(function({ onClick: e, side: t = "left", type: n = "button", ...r },
|
|
|
568
568
|
});
|
|
569
569
|
//#endregion
|
|
570
570
|
//#region src/components/blocks/shell/shell-layout.tsx
|
|
571
|
-
function Pe({ children: t, variant: n = "desktop", panels: r, className: i, header:
|
|
572
|
-
let
|
|
573
|
-
|
|
574
|
-
if (
|
|
575
|
-
}, [
|
|
576
|
-
let
|
|
571
|
+
function Pe({ children: t, variant: n = "desktop", panels: r, className: i, header: u, trailing: d, defaultOpen: f, panelComponents: p, ...m }) {
|
|
572
|
+
let h = l.useId(), g = m.shellId ?? h;
|
|
573
|
+
l.useEffect(() => {
|
|
574
|
+
if (m.shellId === void 0) return () => Q(g);
|
|
575
|
+
}, [g, m.shellId]);
|
|
576
|
+
let _ = x(O(g).components), v = _.left ?? p?.left ?? r?.left?.component, y = _.right ?? p?.right ?? r?.right?.component, b = {
|
|
577
577
|
...r?.left && { left: r.left.defaultOpen ?? !0 },
|
|
578
578
|
...r?.right && { right: r.right.defaultOpen ?? !1 },
|
|
579
|
-
...
|
|
579
|
+
...f
|
|
580
580
|
};
|
|
581
|
-
return /* @__PURE__ */
|
|
582
|
-
...
|
|
583
|
-
shellId:
|
|
584
|
-
defaultOpen:
|
|
581
|
+
return /* @__PURE__ */ c(je, {
|
|
582
|
+
...m,
|
|
583
|
+
shellId: g,
|
|
584
|
+
defaultOpen: b,
|
|
585
585
|
className: e("min-h-0 px-2 pb-2 relative h-full", n === "web" && "pt-2", i, "bg-linear-to-tr/increasing from-neutral-200 via-neutral-100 to-stone-200 dark:from-neutral-900 dark:via-neutral-950 dark:to-stone-950"),
|
|
586
586
|
style: { paddingTop: n === "desktop" ? 48 : 0 },
|
|
587
587
|
children: [
|
|
588
|
-
|
|
588
|
+
v && /* @__PURE__ */ s(Oe, {
|
|
589
589
|
ariaLabel: "Primary navigation",
|
|
590
590
|
collapsible: "icon",
|
|
591
591
|
role: "navigation",
|
|
592
592
|
variant: "inset",
|
|
593
|
-
children:
|
|
593
|
+
children: v
|
|
594
594
|
}),
|
|
595
|
-
/* @__PURE__ */
|
|
595
|
+
/* @__PURE__ */ c(Ne, { children: [/* @__PURE__ */ c("header", {
|
|
596
596
|
className: "h-12 gap-2 px-2 flex flex-row! items-center justify-between border-b",
|
|
597
597
|
children: [
|
|
598
|
-
|
|
598
|
+
v && /* @__PURE__ */ s("div", {
|
|
599
599
|
className: "min-w-0 gap-2 flex shrink-0 items-center justify-start",
|
|
600
|
-
children: /* @__PURE__ */
|
|
600
|
+
children: /* @__PURE__ */ s(Me, {
|
|
601
601
|
side: "left",
|
|
602
|
-
children: /* @__PURE__ */
|
|
602
|
+
children: /* @__PURE__ */ s("span", {
|
|
603
603
|
className: "motion-press",
|
|
604
604
|
role: "img",
|
|
605
605
|
"aria-label": "PanelLeft",
|
|
@@ -611,23 +611,23 @@ function Pe({ children: t, variant: n = "desktop", panels: r, className: i, head
|
|
|
611
611
|
animationDelay: "0ms",
|
|
612
612
|
color: "currentColor"
|
|
613
613
|
},
|
|
614
|
-
children: /* @__PURE__ */
|
|
614
|
+
children: /* @__PURE__ */ s(a, {
|
|
615
615
|
size: 24,
|
|
616
616
|
"aria-hidden": "true"
|
|
617
617
|
})
|
|
618
618
|
})
|
|
619
619
|
})
|
|
620
620
|
}),
|
|
621
|
-
|
|
621
|
+
u && /* @__PURE__ */ s("div", {
|
|
622
622
|
className: "min-w-0 flex flex-1 items-center",
|
|
623
|
-
children:
|
|
623
|
+
children: u
|
|
624
624
|
}),
|
|
625
|
-
(
|
|
625
|
+
(d || y) && /* @__PURE__ */ c("div", {
|
|
626
626
|
className: "gap-2 ml-auto flex shrink-0 items-center justify-end",
|
|
627
|
-
children: [
|
|
627
|
+
children: [d, y && /* @__PURE__ */ s(Me, {
|
|
628
628
|
"aria-label": "Toggle panel",
|
|
629
629
|
side: "right",
|
|
630
|
-
children: /* @__PURE__ */
|
|
630
|
+
children: /* @__PURE__ */ s("span", {
|
|
631
631
|
className: "opacity-70",
|
|
632
632
|
role: "img",
|
|
633
633
|
"aria-label": "PanelRight",
|
|
@@ -637,7 +637,7 @@ function Pe({ children: t, variant: n = "desktop", panels: r, className: i, head
|
|
|
637
637
|
justifyContent: "center",
|
|
638
638
|
color: "currentColor"
|
|
639
639
|
},
|
|
640
|
-
children: /* @__PURE__ */
|
|
640
|
+
children: /* @__PURE__ */ s(o, {
|
|
641
641
|
size: 24,
|
|
642
642
|
"aria-hidden": "true"
|
|
643
643
|
})
|
|
@@ -645,18 +645,18 @@ function Pe({ children: t, variant: n = "desktop", panels: r, className: i, head
|
|
|
645
645
|
})]
|
|
646
646
|
})
|
|
647
647
|
]
|
|
648
|
-
}), /* @__PURE__ */
|
|
648
|
+
}), /* @__PURE__ */ s("div", {
|
|
649
649
|
className: "min-h-24 flex-1 overflow-auto",
|
|
650
650
|
children: t
|
|
651
651
|
})] }),
|
|
652
|
-
|
|
652
|
+
y && /* @__PURE__ */ s(Oe, {
|
|
653
653
|
ariaLabel: r?.right?.name ?? "Secondary panel",
|
|
654
654
|
className: e("bg-neutral-50 dark:border-neutral-800 dark:bg-neutral-900", "rounded-md", "bezel-lit-t-2 bezel-lit-blur-2 bezel-lit/57 bezel-dim-b-2 bezel-dim-blur-3 bezel-dim/11 dark:bezel-lit-blur-3 dark:bezel-lit/14 dark:bezel-dim/78"),
|
|
655
655
|
collapsible: "offcanvas",
|
|
656
656
|
role: "complementary",
|
|
657
657
|
side: "right",
|
|
658
658
|
variant: "inset",
|
|
659
|
-
children:
|
|
659
|
+
children: y
|
|
660
660
|
})
|
|
661
661
|
]
|
|
662
662
|
});
|
|
@@ -664,56 +664,56 @@ function Pe({ children: t, variant: n = "desktop", panels: r, className: i, head
|
|
|
664
664
|
//#endregion
|
|
665
665
|
//#region src/components/blocks/shell/use-shell-panels.ts
|
|
666
666
|
function Fe({ shellId: e, defaultOpen: t, defaultOpenMobile: n, defaultPanelWidth: r, onPanelChange: i } = {}) {
|
|
667
|
-
let a =
|
|
668
|
-
|
|
667
|
+
let a = h(), o = e ?? a;
|
|
668
|
+
m(() => {
|
|
669
669
|
if (e === void 0) return () => Q(o);
|
|
670
670
|
}, [o, e]);
|
|
671
|
-
let s = O(o), c =
|
|
671
|
+
let s = O(o), c = x(s.railWidth), l = S(s.resizeSidebar), u = x(s.open), d = x(s.mobile), p = S(s.setOpen), _ = S(s.setOpenMobile), v = S(s.toggle), y = x(s.components), b = S(s.components), C = !x(G(o)), { sidebar: w } = x(J(o));
|
|
672
672
|
return {
|
|
673
673
|
shellId: o,
|
|
674
674
|
sidebar: w,
|
|
675
675
|
sidebarWidth: c,
|
|
676
676
|
resizeSidebar: l,
|
|
677
677
|
isNarrow: C,
|
|
678
|
-
panelWidth:
|
|
679
|
-
resizePanel:
|
|
680
|
-
open:
|
|
681
|
-
openMobile:
|
|
682
|
-
setOpen:
|
|
678
|
+
panelWidth: x(q(o)),
|
|
679
|
+
resizePanel: S(Y(o)),
|
|
680
|
+
open: u,
|
|
681
|
+
openMobile: d,
|
|
682
|
+
setOpen: p,
|
|
683
683
|
setOpenMobile: _,
|
|
684
684
|
toggle: v,
|
|
685
|
-
openPanel:
|
|
686
|
-
t !== void 0 &&
|
|
685
|
+
openPanel: f((e, t) => {
|
|
686
|
+
t !== void 0 && b((n) => n[e] === t ? n : {
|
|
687
687
|
...n,
|
|
688
688
|
[e]: t
|
|
689
|
-
}),
|
|
690
|
-
}, [
|
|
691
|
-
providerProps:
|
|
689
|
+
}), p(!0, e);
|
|
690
|
+
}, [p, b]),
|
|
691
|
+
providerProps: g(() => ({
|
|
692
692
|
shellId: o,
|
|
693
693
|
defaultPanelWidth: r,
|
|
694
694
|
defaultOpen: t,
|
|
695
695
|
defaultOpenMobile: n,
|
|
696
696
|
onOpenChange: i,
|
|
697
697
|
onOpenMobileChange: i,
|
|
698
|
-
panelComponents:
|
|
698
|
+
panelComponents: y
|
|
699
699
|
}), [
|
|
700
700
|
o,
|
|
701
701
|
r,
|
|
702
702
|
t,
|
|
703
703
|
n,
|
|
704
704
|
i,
|
|
705
|
-
|
|
705
|
+
y
|
|
706
706
|
])
|
|
707
707
|
};
|
|
708
708
|
}
|
|
709
709
|
//#endregion
|
|
710
710
|
//#region src/components/blocks/shell/use-shell-fit-state.ts
|
|
711
711
|
function Ie(e) {
|
|
712
|
-
return
|
|
712
|
+
return x(J(e));
|
|
713
713
|
}
|
|
714
714
|
function Le(e) {
|
|
715
|
-
let t =
|
|
716
|
-
return
|
|
715
|
+
let t = S(Y(e)), n = S(X(e));
|
|
716
|
+
return g(() => ({
|
|
717
717
|
resizePanel: t,
|
|
718
718
|
resetPanelWidth: n
|
|
719
719
|
}), [t, n]);
|