@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,267 @@
|
|
|
1
|
+
import { t as e } from "./utils-BO0qfoA6.js";
|
|
2
|
+
import { Input as t } from "./input.js";
|
|
3
|
+
import { t as n } from "./scroll-area-BNcHlmRX.js";
|
|
4
|
+
import { n as r } from "./portal-context-oIZFl3NP.js";
|
|
5
|
+
import { ChevronsUpDownIcon as i, XIcon as a } from "lucide-react";
|
|
6
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
|
+
import * as c from "react";
|
|
8
|
+
import { Combobox as l, Combobox as u } from "@base-ui/react/combobox";
|
|
9
|
+
//#region src/components/ui/combobox/context.ts
|
|
10
|
+
var d = c.createContext({
|
|
11
|
+
chipsRef: null,
|
|
12
|
+
multiple: !1
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/components/ui/combobox/root.tsx
|
|
16
|
+
function f(e) {
|
|
17
|
+
let t = c.useRef(null);
|
|
18
|
+
return /* @__PURE__ */ o(d.Provider, {
|
|
19
|
+
value: {
|
|
20
|
+
chipsRef: t,
|
|
21
|
+
multiple: !!e.multiple
|
|
22
|
+
},
|
|
23
|
+
children: /* @__PURE__ */ o(l.Root, { ...e })
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/components/ui/combobox/chips-input.tsx
|
|
28
|
+
function p({ className: t, size: n, ...r }) {
|
|
29
|
+
let i = n ?? "default";
|
|
30
|
+
return /* @__PURE__ */ o(l.Input, {
|
|
31
|
+
className: e("min-w-12 flex-1 text-base outline-none sm:text-sm [[data-slot=combobox-chip]+&]:ps-0.5", i === "sm" ? "ps-1.5" : "ps-2", t),
|
|
32
|
+
"data-size": typeof i == "string" ? i : void 0,
|
|
33
|
+
"data-slot": "combobox-chips-input",
|
|
34
|
+
size: typeof i == "number" ? i : void 0,
|
|
35
|
+
...r
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/components/ui/combobox/trigger.tsx
|
|
40
|
+
function m({ className: e, children: t, ...n }) {
|
|
41
|
+
return /* @__PURE__ */ o(l.Trigger, {
|
|
42
|
+
className: e,
|
|
43
|
+
"data-slot": "combobox-trigger",
|
|
44
|
+
...n,
|
|
45
|
+
children: t
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/components/ui/combobox/clear.tsx
|
|
50
|
+
function h({ className: e, ...t }) {
|
|
51
|
+
return /* @__PURE__ */ o(l.Clear, {
|
|
52
|
+
className: e,
|
|
53
|
+
"data-slot": "combobox-clear",
|
|
54
|
+
...t
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/components/ui/combobox/input.tsx
|
|
59
|
+
function g({ className: n, showTrigger: r = !0, showClear: c = !1, startAddon: u, size: d, triggerProps: f, clearProps: p, ...g }) {
|
|
60
|
+
let _ = d ?? "default";
|
|
61
|
+
return /* @__PURE__ */ s(l.InputGroup, {
|
|
62
|
+
className: "relative not-has-[>*.w-full]:w-fit w-full text-foreground has-disabled:opacity-64",
|
|
63
|
+
"data-slot": "combobox-input-group",
|
|
64
|
+
children: [
|
|
65
|
+
u && /* @__PURE__ */ o("div", {
|
|
66
|
+
"aria-hidden": "true",
|
|
67
|
+
className: "pointer-events-none absolute inset-y-0 start-px z-10 flex items-center ps-[calc(--spacing(3)-1px)] opacity-80 has-[+[data-size=sm]]:ps-[calc(--spacing(2.5)-1px)] [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:-mx-0.5",
|
|
68
|
+
"data-slot": "combobox-start-addon",
|
|
69
|
+
children: u
|
|
70
|
+
}),
|
|
71
|
+
/* @__PURE__ */ o(l.Input, {
|
|
72
|
+
className: e(u && "data-[size=sm]:*:data-[slot=combobox-input]:ps-[calc(--spacing(7.5)-1px)] *:data-[slot=combobox-input]:ps-[calc(--spacing(8.5)-1px)] sm:data-[size=sm]:*:data-[slot=combobox-input]:ps-[calc(--spacing(7)-1px)] sm:*:data-[slot=combobox-input]:ps-[calc(--spacing(8)-1px)]", _ === "sm" ? "has-[+[data-slot=combobox-trigger],+[data-slot=combobox-clear]]:*:data-[slot=combobox-input]:pe-6.5" : "has-[+[data-slot=combobox-trigger],+[data-slot=combobox-clear]]:*:data-[slot=combobox-input]:pe-7", n),
|
|
73
|
+
"data-slot": "combobox-input",
|
|
74
|
+
render: /* @__PURE__ */ o(t, {
|
|
75
|
+
className: "has-disabled:opacity-100",
|
|
76
|
+
nativeInput: !0,
|
|
77
|
+
size: _
|
|
78
|
+
}),
|
|
79
|
+
...g
|
|
80
|
+
}),
|
|
81
|
+
r && /* @__PURE__ */ o(m, {
|
|
82
|
+
className: e("absolute top-1/2 inline-flex size-8 shrink-0 -translate-y-1/2 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-opacity pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 has-[+[data-slot=combobox-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", _ === "sm" ? "end-0" : "end-0.5"),
|
|
83
|
+
...f,
|
|
84
|
+
children: /* @__PURE__ */ o(l.Icon, {
|
|
85
|
+
"data-slot": "combobox-icon",
|
|
86
|
+
children: /* @__PURE__ */ o(i, {})
|
|
87
|
+
})
|
|
88
|
+
}),
|
|
89
|
+
c && /* @__PURE__ */ o(h, {
|
|
90
|
+
className: e("absolute top-1/2 inline-flex size-8 shrink-0 -translate-y-1/2 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-opacity pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 has-[+[data-slot=combobox-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", _ === "sm" ? "end-0" : "end-0.5"),
|
|
91
|
+
...p,
|
|
92
|
+
children: /* @__PURE__ */ o(a, {})
|
|
93
|
+
})
|
|
94
|
+
]
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region src/components/ui/combobox/popup.tsx
|
|
99
|
+
function _({ className: t, children: n, side: i = "bottom", sideOffset: a = 4, alignOffset: s, align: u = "start", anchor: f, portalProps: p, ...m }) {
|
|
100
|
+
let h = r(p?.container), { chipsRef: g } = c.useContext(d), _ = f ?? g;
|
|
101
|
+
return /* @__PURE__ */ o(l.Portal, {
|
|
102
|
+
...p,
|
|
103
|
+
container: h,
|
|
104
|
+
children: /* @__PURE__ */ o(l.Positioner, {
|
|
105
|
+
align: u,
|
|
106
|
+
alignOffset: s,
|
|
107
|
+
anchor: _,
|
|
108
|
+
className: "z-50 select-none",
|
|
109
|
+
"data-slot": "combobox-positioner",
|
|
110
|
+
side: i,
|
|
111
|
+
sideOffset: a,
|
|
112
|
+
children: /* @__PURE__ */ o("span", {
|
|
113
|
+
className: e("relative flex max-h-full min-w-(--anchor-width) max-w-(--available-width) origin-(--transform-origin) rounded-lg border bg-popover not-dark:bg-clip-padding shadow-lg/5 transition-[scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)]", t),
|
|
114
|
+
children: /* @__PURE__ */ o(l.Popup, {
|
|
115
|
+
className: "flex max-h-[min(var(--available-height),23rem)] flex-1 flex-col text-foreground",
|
|
116
|
+
"data-slot": "combobox-popup",
|
|
117
|
+
...m,
|
|
118
|
+
children: n
|
|
119
|
+
})
|
|
120
|
+
})
|
|
121
|
+
})
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region src/components/ui/combobox/item.tsx
|
|
126
|
+
function v({ className: t, children: n, ...r }) {
|
|
127
|
+
return /* @__PURE__ */ s(l.Item, {
|
|
128
|
+
className: e("grid min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-default grid-cols-[1rem_1fr] items-center gap-2 rounded-sm py-1 ps-2 pe-4 text-base outline-none data-disabled:pointer-events-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", t),
|
|
129
|
+
"data-slot": "combobox-item",
|
|
130
|
+
...r,
|
|
131
|
+
children: [/* @__PURE__ */ o(l.ItemIndicator, {
|
|
132
|
+
className: "col-start-1",
|
|
133
|
+
children: /* @__PURE__ */ o("svg", {
|
|
134
|
+
"aria-hidden": "true",
|
|
135
|
+
fill: "none",
|
|
136
|
+
height: "24",
|
|
137
|
+
stroke: "currentColor",
|
|
138
|
+
strokeLinecap: "round",
|
|
139
|
+
strokeLinejoin: "round",
|
|
140
|
+
strokeWidth: "2",
|
|
141
|
+
viewBox: "0 0 24 24",
|
|
142
|
+
width: "24",
|
|
143
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
144
|
+
children: /* @__PURE__ */ o("path", { d: "M5.252 12.7 10.2 18.63 18.748 5.37" })
|
|
145
|
+
})
|
|
146
|
+
}), /* @__PURE__ */ o("div", {
|
|
147
|
+
className: "col-start-2",
|
|
148
|
+
children: n
|
|
149
|
+
})]
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region src/components/ui/combobox/separator.tsx
|
|
154
|
+
function y({ className: t, ...n }) {
|
|
155
|
+
return /* @__PURE__ */ o(l.Separator, {
|
|
156
|
+
className: e("mx-2 my-1 h-px bg-border last:hidden", t),
|
|
157
|
+
"data-slot": "combobox-separator",
|
|
158
|
+
...n
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region src/components/ui/combobox/group.tsx
|
|
163
|
+
function b({ className: t, ...n }) {
|
|
164
|
+
return /* @__PURE__ */ o(l.Group, {
|
|
165
|
+
className: e("[[role=group]+&]:mt-1.5", t),
|
|
166
|
+
"data-slot": "combobox-group",
|
|
167
|
+
...n
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
//#endregion
|
|
171
|
+
//#region src/components/ui/combobox/group-label.tsx
|
|
172
|
+
function x({ className: t, ...n }) {
|
|
173
|
+
return /* @__PURE__ */ o(l.GroupLabel, {
|
|
174
|
+
className: e("px-2 py-1.5 font-medium text-muted-foreground text-xs", t),
|
|
175
|
+
"data-slot": "combobox-group-label",
|
|
176
|
+
...n
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region src/components/ui/combobox/empty.tsx
|
|
181
|
+
function S({ className: t, ...n }) {
|
|
182
|
+
return /* @__PURE__ */ o(l.Empty, {
|
|
183
|
+
className: e("not-empty:p-2 text-center text-base text-muted-foreground sm:text-sm", t),
|
|
184
|
+
"data-slot": "combobox-empty",
|
|
185
|
+
...n
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
//#endregion
|
|
189
|
+
//#region src/components/ui/combobox/row.tsx
|
|
190
|
+
function C({ className: e, ...t }) {
|
|
191
|
+
return /* @__PURE__ */ o(l.Row, {
|
|
192
|
+
className: e,
|
|
193
|
+
"data-slot": "combobox-row",
|
|
194
|
+
...t
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
//#endregion
|
|
198
|
+
//#region src/components/ui/combobox/value.tsx
|
|
199
|
+
var w = l.Value;
|
|
200
|
+
//#endregion
|
|
201
|
+
//#region src/components/ui/combobox/list.tsx
|
|
202
|
+
function T({ className: t, ...r }) {
|
|
203
|
+
return /* @__PURE__ */ o(n, {
|
|
204
|
+
scrollbarGutter: !0,
|
|
205
|
+
scrollFade: !0,
|
|
206
|
+
children: /* @__PURE__ */ o(l.List, {
|
|
207
|
+
className: e("not-empty:scroll-py-1 not-empty:px-1 not-empty:py-1 in-data-has-overflow-y:pe-3", t),
|
|
208
|
+
"data-slot": "combobox-list",
|
|
209
|
+
...r
|
|
210
|
+
})
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
//#endregion
|
|
214
|
+
//#region src/components/ui/combobox/status.tsx
|
|
215
|
+
function E({ className: t, ...n }) {
|
|
216
|
+
return /* @__PURE__ */ o(l.Status, {
|
|
217
|
+
className: e("px-3 py-2 font-medium text-muted-foreground text-xs empty:m-0 empty:p-0", t),
|
|
218
|
+
"data-slot": "combobox-status",
|
|
219
|
+
...n
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
//#endregion
|
|
223
|
+
//#region src/components/ui/combobox/collection.tsx
|
|
224
|
+
var D = l.Collection;
|
|
225
|
+
//#endregion
|
|
226
|
+
//#region src/components/ui/combobox/chips.tsx
|
|
227
|
+
function O({ className: t, children: n, startAddon: r, ...i }) {
|
|
228
|
+
let { chipsRef: a } = c.useContext(d);
|
|
229
|
+
return /* @__PURE__ */ s(l.Chips, {
|
|
230
|
+
className: e("relative inline-flex min-h-9 w-full flex-wrap gap-1 rounded-lg border border-input bg-background not-dark:bg-clip-padding p-[calc(--spacing(1)-1px)] text-base shadow-xs/5 outline-none ring-ring/24 transition-shadow *:min-h-7 before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] not-has-disabled:not-focus-within:not-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)] focus-within:border-ring focus-within:ring-[3px] has-disabled:pointer-events-none has-data-[size=lg]:min-h-10 has-data-[size=sm]:min-h-8 has-aria-invalid:border-destructive/36 has-autofill:bg-foreground/4 has-disabled:opacity-64 has-[:disabled,:focus-within,[aria-invalid]]:shadow-none focus-within:has-aria-invalid:border-destructive/64 focus-within:has-aria-invalid:ring-destructive/16 has-data-[size=lg]:*:min-h-8 has-data-[size=sm]:*:min-h-6 sm:min-h-8 sm:text-sm sm:has-data-[size=lg]:min-h-9 sm:has-data-[size=sm]:min-h-7 sm:*:min-h-6 sm:has-data-[size=lg]:*:min-h-7 sm:has-data-[size=sm]:*:min-h-5 dark:not-has-disabled:bg-input/32 dark:has-autofill:bg-foreground/8 dark:has-aria-invalid:ring-destructive/24 dark:not-has-disabled:not-focus-within:not-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)]", t),
|
|
231
|
+
"data-slot": "combobox-chips",
|
|
232
|
+
ref: a,
|
|
233
|
+
...i,
|
|
234
|
+
children: [r && /* @__PURE__ */ o("div", {
|
|
235
|
+
"aria-hidden": "true",
|
|
236
|
+
className: "flex shrink-0 items-center ps-2 opacity-80 has-[~[data-size=sm]]:has-[+[data-slot=combobox-chip]]:pe-1.5 has-[~[data-size=sm]]:ps-1.5 has-[+[data-slot=combobox-chip]]:pe-2 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:-ms-0.5 [&_svg]:-me-1.5",
|
|
237
|
+
"data-slot": "combobox-start-addon",
|
|
238
|
+
children: r
|
|
239
|
+
}), n]
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
//#endregion
|
|
243
|
+
//#region src/components/ui/combobox/chip-remove.tsx
|
|
244
|
+
function k(e) {
|
|
245
|
+
return /* @__PURE__ */ o(l.ChipRemove, {
|
|
246
|
+
"aria-label": "Remove",
|
|
247
|
+
className: "h-full shrink-0 cursor-pointer px-1.5 opacity-80 hover:opacity-100 [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5",
|
|
248
|
+
"data-slot": "combobox-chip-remove",
|
|
249
|
+
...e,
|
|
250
|
+
children: /* @__PURE__ */ o(a, {})
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
//#endregion
|
|
254
|
+
//#region src/components/ui/combobox/chip.tsx
|
|
255
|
+
function A({ children: e, removeProps: t, ...n }) {
|
|
256
|
+
return /* @__PURE__ */ s(l.Chip, {
|
|
257
|
+
className: "flex items-center rounded-[calc(var(--radius-md)-1px)] bg-accent ps-2 font-medium text-accent-foreground text-sm outline-none sm:text-xs/(--text-xs--line-height) [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5",
|
|
258
|
+
"data-slot": "combobox-chip",
|
|
259
|
+
...n,
|
|
260
|
+
children: [e, /* @__PURE__ */ o(k, { ...t })]
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
//#endregion
|
|
264
|
+
//#region src/components/ui/combobox/utils.ts
|
|
265
|
+
var j = l.useFilter;
|
|
266
|
+
//#endregion
|
|
267
|
+
export { d as S, g as _, O as a, p as b, T as c, S as d, x as f, _ as g, v as h, k as i, w as l, y as m, j as n, D as o, b as p, A as r, E as s, u as t, C as u, h as v, f as x, m as y };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { default as Sidebar } from './sidebar';
|
|
2
|
+
export { default as SidebarTrigger } from './trigger';
|
|
3
|
+
export { default as SidebarRail } from './rail';
|
|
4
|
+
export { default as SidebarInset } from './inset';
|
|
5
|
+
export { default as SidebarInput } from './input';
|
|
6
|
+
export { default as SidebarHeader } from './header';
|
|
7
|
+
export { default as SidebarFooter } from './footer';
|
|
8
|
+
export { default as SidebarSeparator } from './separator';
|
|
9
|
+
export { default as SidebarContent } from './content';
|
|
10
|
+
export { default as SidebarGroup } from './group';
|
|
11
|
+
export { default as SidebarGroupLabel } from './group-label';
|
|
12
|
+
export { default as SidebarGroupAction } from './group-action';
|
|
13
|
+
export { default as SidebarGroupContent } from './group-content';
|
|
14
|
+
export { default as SidebarMenu } from './menu';
|
|
15
|
+
export { default as SidebarMenuItem } from './menu-item';
|
|
16
|
+
export { default as SidebarMenuButton } from './menu-button';
|
|
17
|
+
export { default as SidebarMenuAction } from './menu-action';
|
|
18
|
+
export { default as SidebarMenuBadge } from './menu-badge';
|
|
19
|
+
export { default as SidebarMenuSkeleton } from './menu-skeleton';
|
|
20
|
+
export { default as SidebarMenuSub } from './menu-sub';
|
|
21
|
+
export { default as SidebarMenuSubItem } from './menu-sub-item';
|
|
22
|
+
export { default as SidebarMenuSubButton } from './menu-sub-button';
|
|
23
|
+
export { default as SidebarProvider } from './provider';
|
|
24
|
+
export { useSidebar, useSidebarState, useSidebarActions } from './use-sidebar';
|
|
25
|
+
export type { SidebarContextProps, SidebarState, SidebarActions, SidebarProviderProps } from './types';
|
|
26
|
+
export { sidebarOpenAtom, sidebarOpenMobileAtom, sidebarIsMobileAtom, sidebarStateAtom, setSidebarOpenAtom, setSidebarOpenMobileAtom, toggleSidebarAtom, removeSidebarInstance } from './sidebar-atom';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
export default function SidebarMenuAction({ className, showOnHover, render, ...props }: useRender.ComponentProps<"button"> & {
|
|
4
|
+
showOnHover?: boolean;
|
|
5
|
+
}): React.ReactElement;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { TooltipPopup } from '../../ui/tooltip';
|
|
4
|
+
import { sidebarMenuButtonVariants } from './utils';
|
|
5
|
+
import type * as React from "react";
|
|
6
|
+
export default function SidebarMenuButton({ isActive, variant, size, tooltip, className, render, ...props }: useRender.ComponentProps<"button"> & {
|
|
7
|
+
isActive?: boolean;
|
|
8
|
+
tooltip?: string | React.ComponentProps<typeof TooltipPopup>;
|
|
9
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): React.ReactElement;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
export default function SidebarMenuSubButton({ size, isActive, className, render, ...props }: useRender.ComponentProps<"a"> & {
|
|
4
|
+
size?: "sm" | "md";
|
|
5
|
+
isActive?: boolean;
|
|
6
|
+
}): React.ReactElement;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SidebarConfig, SidebarState, SidebarValue } from './types';
|
|
2
|
+
/** @internal */
|
|
3
|
+
export declare const sidebarOwnedOpenAtom: import('../../../lib/keyed-atom').TFamily<import('jotai').PrimitiveAtom<boolean> & {
|
|
4
|
+
init: boolean;
|
|
5
|
+
}>;
|
|
6
|
+
/** @internal */
|
|
7
|
+
export declare const sidebarMobileOpenValueAtom: import('../../../lib/keyed-atom').TFamily<import('jotai').PrimitiveAtom<boolean> & {
|
|
8
|
+
init: boolean;
|
|
9
|
+
}>;
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const sidebarMobileValueAtom: import('../../../lib/keyed-atom').TFamily<import('jotai').PrimitiveAtom<boolean> & {
|
|
12
|
+
init: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const sidebarConfigAtom: import('../../../lib/keyed-atom').TFamily<import('jotai').PrimitiveAtom<SidebarConfig> & {
|
|
16
|
+
init: SidebarConfig;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const sidebarOpenAtom: import('../../../lib/keyed-atom').TFamily<import('jotai').Atom<boolean>>;
|
|
19
|
+
export declare const sidebarOpenMobileAtom: import('../../../lib/keyed-atom').TFamily<import('jotai').Atom<boolean>>;
|
|
20
|
+
export declare const sidebarIsMobileAtom: import('../../../lib/keyed-atom').TFamily<import('jotai').Atom<boolean>>;
|
|
21
|
+
export declare const sidebarStateAtom: import('../../../lib/keyed-atom').TFamily<import('jotai').Atom<SidebarState>>;
|
|
22
|
+
export declare const setSidebarOpenAtom: import('../../../lib/keyed-atom').TFamily<import('jotai').WritableAtom<null, [update: SidebarValue], void> & {
|
|
23
|
+
init: null;
|
|
24
|
+
}>;
|
|
25
|
+
export declare const setSidebarOpenMobileAtom: import('../../../lib/keyed-atom').TFamily<import('jotai').WritableAtom<null, [update: SidebarValue], void> & {
|
|
26
|
+
init: null;
|
|
27
|
+
}>;
|
|
28
|
+
export declare const toggleSidebarAtom: import('../../../lib/keyed-atom').TFamily<import('jotai').WritableAtom<null, [], void> & {
|
|
29
|
+
init: null;
|
|
30
|
+
}>;
|
|
31
|
+
/** Release a named instance after its components and subscribers unmount. */
|
|
32
|
+
export declare const removeSidebarInstance: (id: string) => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export default function Sidebar({ side, variant, collapsible, className, children, ...props }: React.ComponentProps<"div"> & {
|
|
3
|
+
side?: "left" | "right";
|
|
4
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
5
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
6
|
+
}): React.ReactElement;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
export type SidebarValue = boolean | ((previous: boolean) => boolean);
|
|
3
|
+
export interface SidebarState {
|
|
4
|
+
state: "expanded" | "collapsed";
|
|
5
|
+
open: boolean;
|
|
6
|
+
openMobile: boolean;
|
|
7
|
+
isMobile: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface SidebarActions {
|
|
10
|
+
setOpen: (value: SidebarValue) => void;
|
|
11
|
+
setOpenMobile: (value: SidebarValue) => void;
|
|
12
|
+
toggleSidebar: () => void;
|
|
13
|
+
}
|
|
14
|
+
export type SidebarContextProps = SidebarState & SidebarActions;
|
|
15
|
+
export type SidebarProviderProps = React.ComponentProps<"div"> & {
|
|
16
|
+
/** Explicit ids retain state across remounts and support remote actions. */
|
|
17
|
+
sidebarId?: string;
|
|
18
|
+
defaultOpen?: boolean;
|
|
19
|
+
open?: boolean;
|
|
20
|
+
onOpenChange?: (open: boolean) => void;
|
|
21
|
+
};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export interface SidebarConfig {
|
|
24
|
+
controlled: boolean;
|
|
25
|
+
onOpenChange?: (open: boolean) => void;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useSidebarMobile(): boolean;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SidebarActions, SidebarContextProps, SidebarState } from './types';
|
|
2
|
+
export declare function useSidebarState(sidebarId: string): SidebarState;
|
|
3
|
+
export declare function useSidebarActions(sidebarId: string): SidebarActions;
|
|
4
|
+
export declare function useSidebar(): SidebarContextProps;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const SIDEBAR_COOKIE_NAME: string;
|
|
2
|
+
export declare const SIDEBAR_COOKIE_MAX_AGE: number;
|
|
3
|
+
export declare const SIDEBAR_WIDTH: string;
|
|
4
|
+
export declare const SIDEBAR_WIDTH_MOBILE: string;
|
|
5
|
+
export declare const SIDEBAR_WIDTH_ICON: string;
|
|
6
|
+
export declare const SIDEBAR_KEYBOARD_SHORTCUT: string;
|
|
7
|
+
export declare const sidebarMenuButtonVariants: (props?: ({
|
|
8
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
9
|
+
variant?: "default" | "outline" | null | undefined;
|
|
10
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import type * as React from "react";
|
|
3
3
|
declare const alertVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "error" | "
|
|
4
|
+
variant?: "default" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): React.ReactElement;
|
|
7
7
|
export declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): React.ReactElement;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useRender } from '@base-ui/react/use-render';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
5
|
-
size?: "default" | "
|
|
4
|
+
variant?: "invert" | "default" | "info" | "success" | "warning" | "outline" | "secondary" | "destructive" | "focus" | "primary-light" | "warning-light" | "success-light" | "info-light" | "destructive-light" | "invert-light" | "focus-light" | "primary-outline" | "warning-outline" | "success-outline" | "info-outline" | "destructive-outline" | "invert-outline" | "focus-outline" | null | undefined;
|
|
5
|
+
size?: "default" | "sm" | "lg" | "xl" | "xs" | null | undefined;
|
|
6
6
|
radius?: "default" | "full" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
interface IBadgeProps extends useRender.ComponentProps<"span"> {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as Breadcrumb } from './base';
|
|
2
|
+
export { default as BreadcrumbList } from './list';
|
|
3
|
+
export { default as BreadcrumbItem } from './item';
|
|
4
|
+
export { default as BreadcrumbLink } from './link';
|
|
5
|
+
export { default as BreadcrumbPage } from './page';
|
|
6
|
+
export { default as BreadcrumbSeparator } from './separator';
|
|
7
|
+
export { default as BreadcrumbEllipsis } from './ellipsis';
|
|
@@ -3,8 +3,8 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
import { TFrostGlassVariant } from '../../lib/glass-variants';
|
|
4
4
|
import type * as React from "react";
|
|
5
5
|
export declare const buttonVariants: (props?: ({
|
|
6
|
-
size?: "
|
|
7
|
-
variant?: "
|
|
6
|
+
size?: "default" | "sm" | "lg" | "icon" | "xl" | "xs" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | null | undefined;
|
|
7
|
+
variant?: "link" | "default" | "outline" | "secondary" | "destructive" | "destructive-outline" | "ghost" | "glass" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
type TButtonVariant = VariantProps<typeof buttonVariants>["variant"];
|
|
10
10
|
interface IButtonBaseProps extends useRender.ComponentProps<"button"> {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Calendar } from './base';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const buttonClassNames = "relative flex size-(--cell-size) text-base sm:text-sm items-center justify-center rounded-lg text-foreground not-in-data-selected:hover:bg-accent disabled:pointer-events-none disabled:opacity-64 [&_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]:shrink-0";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react/combobox';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export default function ComboboxChip({ children, removeProps, ...props }: ComboboxPrimitive.Chip.Props & {
|
|
4
|
+
removeProps?: ComboboxPrimitive.ChipRemove.Props;
|
|
5
|
+
}): React.ReactElement;
|