@hexclave/ui 1.0.40 → 1.0.42
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/accordion-1LxYtcF-.d.ts +17 -0
- package/dist/accordion-1LxYtcF-.d.ts.map +1 -0
- package/dist/action-dialog-DjRuope_.d.ts +32 -0
- package/dist/action-dialog-DjRuope_.d.ts.map +1 -0
- package/dist/alert-BQa8jVOm.d.ts +18 -0
- package/dist/alert-BQa8jVOm.d.ts.map +1 -0
- package/dist/aspect-ratio-CwMSZ5Lk.d.ts +7 -0
- package/dist/aspect-ratio-CwMSZ5Lk.d.ts.map +1 -0
- package/dist/avatar-COsl9aaA.d.ts +16 -0
- package/dist/avatar-COsl9aaA.d.ts.map +1 -0
- package/dist/badge-B0KrSxYn.d.ts +16 -0
- package/dist/badge-B0KrSxYn.d.ts.map +1 -0
- package/dist/brand-icons-Bjvj9pgI.d.ts +75 -0
- package/dist/brand-icons-Bjvj9pgI.d.ts.map +1 -0
- package/dist/breadcrumb-xoLPVWeD.d.ts +40 -0
- package/dist/breadcrumb-xoLPVWeD.d.ts.map +1 -0
- package/dist/button-DqvToJ0R.d.ts +31 -0
- package/dist/button-DqvToJ0R.d.ts.map +1 -0
- package/dist/calendar-Cm6dI-sl.d.ts +17 -0
- package/dist/calendar-Cm6dI-sl.d.ts.map +1 -0
- package/dist/card-zNadDkms.d.ts +25 -0
- package/dist/card-zNadDkms.d.ts.map +1 -0
- package/dist/cells-C2kaNfav.d.ts +34 -0
- package/dist/cells-C2kaNfav.d.ts.map +1 -0
- package/dist/checkbox-CZveCMkD.d.ts +10 -0
- package/dist/checkbox-CZveCMkD.d.ts.map +1 -0
- package/dist/collapsible-BGCYUDWQ.d.ts +9 -0
- package/dist/collapsible-BGCYUDWQ.d.ts.map +1 -0
- package/dist/column-header-U53XE9Tp.d.ts +15 -0
- package/dist/column-header-U53XE9Tp.d.ts.map +1 -0
- package/dist/command-Cyfe0FJ4.d.ts +27 -0
- package/dist/command-Cyfe0FJ4.d.ts.map +1 -0
- package/dist/components/action-dialog.d.ts +2 -33
- package/dist/components/action-dialog.js +5 -7
- package/dist/components/action-dialog.js.map +1 -1
- package/dist/components/brand-icons.d.ts +2 -78
- package/dist/components/brand-icons.js +3 -5
- package/dist/components/brand-icons.js.map +1 -1
- package/dist/components/browser-frame/index.d.ts +2 -21
- package/dist/components/browser-frame/index.js +4 -5
- package/dist/components/browser-frame/index.js.map +1 -1
- package/dist/components/copy-button.d.ts +2 -22
- package/dist/components/copy-button.js +5 -8
- package/dist/components/copy-button.js.map +1 -1
- package/dist/components/copy-field.d.ts +2 -18
- package/dist/components/copy-field.js +2 -4
- package/dist/components/copy-field.js.map +1 -1
- package/dist/components/data-table/cells.d.ts +2 -35
- package/dist/components/data-table/cells.js +5 -7
- package/dist/components/data-table/cells.js.map +1 -1
- package/dist/components/data-table/column-header.d.ts +2 -16
- package/dist/components/data-table/column-header.js +2 -4
- package/dist/components/data-table/column-header.js.map +1 -1
- package/dist/components/data-table/data-table.d.ts +2 -59
- package/dist/components/data-table/data-table.js +4 -6
- package/dist/components/data-table/data-table.js.map +1 -1
- package/dist/components/data-table/faceted-filter.d.ts +2 -24
- package/dist/components/data-table/faceted-filter.js +4 -5
- package/dist/components/data-table/faceted-filter.js.map +1 -1
- package/dist/components/data-table/index.d.ts +9 -9
- package/dist/components/data-table/index.js +63 -55
- package/dist/components/data-table/pagination.d.ts +2 -13
- package/dist/components/data-table/pagination.js +2 -4
- package/dist/components/data-table/pagination.js.map +1 -1
- package/dist/components/data-table/toolbar-items.d.ts +2 -13
- package/dist/components/data-table/toolbar-items.js +2 -4
- package/dist/components/data-table/toolbar-items.js.map +1 -1
- package/dist/components/data-table/toolbar.d.ts +2 -23
- package/dist/components/data-table/toolbar.js +2 -5
- package/dist/components/data-table/toolbar.js.map +1 -1
- package/dist/components/data-table/utils.d.ts +2 -6
- package/dist/components/data-table/utils.js +2 -3
- package/dist/components/data-table/utils.js.map +1 -1
- package/dist/components/data-table/view-options.d.ts +2 -19
- package/dist/components/data-table/view-options.js +2 -5
- package/dist/components/data-table/view-options.js.map +1 -1
- package/dist/components/simple-tooltip.d.ts +2 -14
- package/dist/components/simple-tooltip.js +2 -4
- package/dist/components/simple-tooltip.js.map +1 -1
- package/dist/components/ui/accordion.d.ts +2 -17
- package/dist/components/ui/accordion.js +5 -7
- package/dist/components/ui/accordion.js.map +1 -1
- package/dist/components/ui/alert.d.ts +2 -19
- package/dist/components/ui/alert.js +5 -7
- package/dist/components/ui/alert.js.map +1 -1
- package/dist/components/ui/aspect-ratio.d.ts +2 -8
- package/dist/components/ui/aspect-ratio.js +4 -6
- package/dist/components/ui/aspect-ratio.js.map +1 -1
- package/dist/components/ui/avatar.d.ts +2 -16
- package/dist/components/ui/avatar.js +5 -7
- package/dist/components/ui/avatar.js.map +1 -1
- package/dist/components/ui/badge.d.ts +2 -17
- package/dist/components/ui/badge.js +5 -7
- package/dist/components/ui/badge.js.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts +2 -41
- package/dist/components/ui/breadcrumb.js +4 -5
- package/dist/components/ui/breadcrumb.js.map +1 -1
- package/dist/components/ui/button.d.ts +2 -32
- package/dist/components/ui/button.js +4 -5
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/calendar.d.ts +2 -18
- package/dist/components/ui/calendar.js +4 -6
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/card.d.ts +2 -27
- package/dist/components/ui/card.js +2 -4
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/checkbox.d.ts +2 -10
- package/dist/components/ui/checkbox.js +5 -7
- package/dist/components/ui/checkbox.js.map +1 -1
- package/dist/components/ui/collapsible.d.ts +2 -10
- package/dist/components/ui/collapsible.js +4 -6
- package/dist/components/ui/collapsible.js.map +1 -1
- package/dist/components/ui/command.d.ts +2 -28
- package/dist/components/ui/command.js +4 -6
- package/dist/components/ui/command.js.map +1 -1
- package/dist/components/ui/context-menu.d.ts +2 -51
- package/dist/components/ui/context-menu.js +5 -7
- package/dist/components/ui/context-menu.js.map +1 -1
- package/dist/components/ui/dialog.d.ts +2 -45
- package/dist/components/ui/dialog.js +5 -7
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +2 -54
- package/dist/components/ui/dropdown-menu.js +5 -7
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/form.d.ts +2 -42
- package/dist/components/ui/form.js +5 -7
- package/dist/components/ui/form.js.map +1 -1
- package/dist/components/ui/hover-card.d.ts +2 -12
- package/dist/components/ui/hover-card.js +5 -7
- package/dist/components/ui/hover-card.js.map +1 -1
- package/dist/components/ui/inline-code.d.ts +2 -9
- package/dist/components/ui/inline-code.js +4 -6
- package/dist/components/ui/inline-code.js.map +1 -1
- package/dist/components/ui/input-otp.d.ts +2 -20
- package/dist/components/ui/input-otp.js +4 -6
- package/dist/components/ui/input-otp.js.map +1 -1
- package/dist/components/ui/input.d.ts +2 -24
- package/dist/components/ui/input.js +4 -5
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/label.d.ts +2 -15
- package/dist/components/ui/label.js +5 -7
- package/dist/components/ui/label.js.map +1 -1
- package/dist/components/ui/menubar.d.ts +2 -38
- package/dist/components/ui/menubar.js +5 -7
- package/dist/components/ui/menubar.js.map +1 -1
- package/dist/components/ui/navigation-menu.d.ts +2 -29
- package/dist/components/ui/navigation-menu.js +5 -7
- package/dist/components/ui/navigation-menu.js.map +1 -1
- package/dist/components/ui/password-input.d.ts +2 -11
- package/dist/components/ui/password-input.js +2 -5
- package/dist/components/ui/password-input.js.map +1 -1
- package/dist/components/ui/popover.d.ts +2 -13
- package/dist/components/ui/popover.js +5 -7
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/progress.d.ts +2 -10
- package/dist/components/ui/progress.js +5 -7
- package/dist/components/ui/progress.js.map +1 -1
- package/dist/components/ui/radio-group.d.ts +2 -13
- package/dist/components/ui/radio-group.js +5 -7
- package/dist/components/ui/radio-group.js.map +1 -1
- package/dist/components/ui/resizable.d.ts +2 -36
- package/dist/components/ui/resizable.js +4 -6
- package/dist/components/ui/resizable.js.map +1 -1
- package/dist/components/ui/scroll-area.d.ts +2 -13
- package/dist/components/ui/scroll-area.js +5 -7
- package/dist/components/ui/scroll-area.js.map +1 -1
- package/dist/components/ui/select.d.ts +2 -33
- package/dist/components/ui/select.js +5 -7
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/separator.d.ts +2 -10
- package/dist/components/ui/separator.js +5 -7
- package/dist/components/ui/separator.js.map +1 -1
- package/dist/components/ui/sheet.d.ts +2 -44
- package/dist/components/ui/sheet.js +5 -7
- package/dist/components/ui/sheet.js.map +1 -1
- package/dist/components/ui/skeleton.d.ts +2 -12
- package/dist/components/ui/skeleton.js +4 -6
- package/dist/components/ui/skeleton.js.map +1 -1
- package/dist/components/ui/slider.d.ts +2 -10
- package/dist/components/ui/slider.js +5 -7
- package/dist/components/ui/slider.js.map +1 -1
- package/dist/components/ui/spinner.d.ts +2 -11
- package/dist/components/ui/spinner.js +4 -5
- package/dist/components/ui/spinner.js.map +1 -1
- package/dist/components/ui/switch.d.ts +2 -14
- package/dist/components/ui/switch.js +5 -7
- package/dist/components/ui/switch.js.map +1 -1
- package/dist/components/ui/table.d.ts +2 -30
- package/dist/components/ui/table.js +4 -5
- package/dist/components/ui/table.js.map +1 -1
- package/dist/components/ui/tabs.d.ts +2 -17
- package/dist/components/ui/tabs.js +5 -7
- package/dist/components/ui/tabs.js.map +1 -1
- package/dist/components/ui/textarea.d.ts +2 -10
- package/dist/components/ui/textarea.js +4 -5
- package/dist/components/ui/textarea.js.map +1 -1
- package/dist/components/ui/toast.d.ts +2 -32
- package/dist/components/ui/toast.js +6 -8
- package/dist/components/ui/toast.js.map +1 -1
- package/dist/components/ui/toaster.d.ts +2 -7
- package/dist/components/ui/toaster.js +2 -5
- package/dist/components/ui/toaster.js.map +1 -1
- package/dist/components/ui/toggle-group.d.ts +2 -21
- package/dist/components/ui/toggle-group.js +5 -7
- package/dist/components/ui/toggle-group.js.map +1 -1
- package/dist/components/ui/toggle.d.ts +2 -3
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/toggle.js +5 -7
- package/dist/components/ui/toggle.js.map +1 -1
- package/dist/components/ui/tooltip.d.ts +2 -16
- package/dist/components/ui/tooltip.js +5 -7
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/components/ui/typography.d.ts +2 -14
- package/dist/components/ui/typography.js +5 -7
- package/dist/components/ui/typography.js.map +1 -1
- package/dist/components/ui/use-toast.d.ts +2 -50
- package/dist/components/ui/use-toast.js +4 -6
- package/dist/components/ui/use-toast.js.map +1 -1
- package/dist/context-menu-D5-FvPFJ.d.ts +50 -0
- package/dist/context-menu-D5-FvPFJ.d.ts.map +1 -0
- package/dist/copy-button-ClCNLwvl.d.ts +20 -0
- package/dist/copy-button-ClCNLwvl.d.ts.map +1 -0
- package/dist/copy-field-Cf7eTpio.d.ts +16 -0
- package/dist/copy-field-Cf7eTpio.d.ts.map +1 -0
- package/dist/data-table-xbTf50By.d.ts +58 -0
- package/dist/data-table-xbTf50By.d.ts.map +1 -0
- package/dist/dialog-Dple6cLo.d.ts +44 -0
- package/dist/dialog-Dple6cLo.d.ts.map +1 -0
- package/dist/dropdown-menu-T3VfUZNR.d.ts +53 -0
- package/dist/dropdown-menu-T3VfUZNR.d.ts.map +1 -0
- package/dist/esm/components/action-dialog.d.ts +2 -3
- package/dist/esm/components/action-dialog.d.ts.map +1 -1
- package/dist/esm/components/action-dialog.js +2 -4
- package/dist/esm/components/action-dialog.js.map +1 -1
- package/dist/esm/components/brand-icons.d.ts +13 -15
- package/dist/esm/components/brand-icons.d.ts.map +1 -1
- package/dist/esm/components/brand-icons.js +2 -3
- package/dist/esm/components/brand-icons.js.map +1 -1
- package/dist/esm/components/browser-frame/index.d.ts +1 -2
- package/dist/esm/components/browser-frame/index.d.ts.map +1 -1
- package/dist/esm/components/browser-frame/index.js +2 -3
- package/dist/esm/components/browser-frame/index.js.map +1 -1
- package/dist/esm/components/copy-button.d.ts +3 -5
- package/dist/esm/components/copy-button.d.ts.map +1 -1
- package/dist/esm/components/copy-button.js +2 -4
- package/dist/esm/components/copy-button.js.map +1 -1
- package/dist/esm/components/copy-field.d.ts +1 -3
- package/dist/esm/components/copy-field.d.ts.map +1 -1
- package/dist/esm/components/copy-field.js +1 -2
- package/dist/esm/components/copy-field.js.map +1 -1
- package/dist/esm/components/data-table/cells.d.ts +5 -6
- package/dist/esm/components/data-table/cells.d.ts.map +1 -1
- package/dist/esm/components/data-table/cells.js +2 -4
- package/dist/esm/components/data-table/cells.js.map +1 -1
- package/dist/esm/components/data-table/column-header.d.ts +1 -2
- package/dist/esm/components/data-table/column-header.d.ts.map +1 -1
- package/dist/esm/components/data-table/column-header.js +1 -2
- package/dist/esm/components/data-table/column-header.js.map +1 -1
- package/dist/esm/components/data-table/data-table.d.ts +3 -4
- package/dist/esm/components/data-table/data-table.d.ts.map +1 -1
- package/dist/esm/components/data-table/data-table.js +1 -3
- package/dist/esm/components/data-table/data-table.js.map +1 -1
- package/dist/esm/components/data-table/faceted-filter.d.ts +1 -2
- package/dist/esm/components/data-table/faceted-filter.d.ts.map +1 -1
- package/dist/esm/components/data-table/faceted-filter.js +2 -3
- package/dist/esm/components/data-table/faceted-filter.js.map +1 -1
- package/dist/esm/components/data-table/index.d.ts +9 -9
- package/dist/esm/components/data-table/index.js +10 -19
- package/dist/esm/components/data-table/pagination.d.ts +1 -2
- package/dist/esm/components/data-table/pagination.d.ts.map +1 -1
- package/dist/esm/components/data-table/pagination.js +1 -2
- package/dist/esm/components/data-table/pagination.js.map +1 -1
- package/dist/esm/components/data-table/toolbar-items.d.ts +1 -2
- package/dist/esm/components/data-table/toolbar-items.d.ts.map +1 -1
- package/dist/esm/components/data-table/toolbar-items.js +1 -2
- package/dist/esm/components/data-table/toolbar-items.js.map +1 -1
- package/dist/esm/components/data-table/toolbar.d.ts +1 -2
- package/dist/esm/components/data-table/toolbar.d.ts.map +1 -1
- package/dist/esm/components/data-table/toolbar.js +1 -3
- package/dist/esm/components/data-table/toolbar.js.map +1 -1
- package/dist/esm/components/data-table/utils.js +1 -1
- package/dist/esm/components/data-table/utils.js.map +1 -1
- package/dist/esm/components/data-table/view-options.d.ts +1 -2
- package/dist/esm/components/data-table/view-options.d.ts.map +1 -1
- package/dist/esm/components/data-table/view-options.js +1 -3
- package/dist/esm/components/data-table/view-options.js.map +1 -1
- package/dist/esm/components/simple-tooltip.d.ts +1 -3
- package/dist/esm/components/simple-tooltip.d.ts.map +1 -1
- package/dist/esm/components/simple-tooltip.js +1 -2
- package/dist/esm/components/simple-tooltip.js.map +1 -1
- package/dist/esm/components/ui/accordion.js +2 -4
- package/dist/esm/components/ui/accordion.js.map +1 -1
- package/dist/esm/components/ui/alert.d.ts +1 -2
- package/dist/esm/components/ui/alert.d.ts.map +1 -1
- package/dist/esm/components/ui/alert.js +2 -3
- package/dist/esm/components/ui/alert.js.map +1 -1
- package/dist/esm/components/ui/aspect-ratio.d.ts +1 -2
- package/dist/esm/components/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/esm/components/ui/aspect-ratio.js +1 -3
- package/dist/esm/components/ui/aspect-ratio.js.map +1 -1
- package/dist/esm/components/ui/avatar.js +2 -4
- package/dist/esm/components/ui/avatar.js.map +1 -1
- package/dist/esm/components/ui/badge.d.ts +2 -3
- package/dist/esm/components/ui/badge.d.ts.map +1 -1
- package/dist/esm/components/ui/badge.js +2 -3
- package/dist/esm/components/ui/badge.js.map +1 -1
- package/dist/esm/components/ui/breadcrumb.d.ts +2 -3
- package/dist/esm/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/esm/components/ui/breadcrumb.js +2 -3
- package/dist/esm/components/ui/breadcrumb.js.map +1 -1
- package/dist/esm/components/ui/button.d.ts +4 -5
- package/dist/esm/components/ui/button.d.ts.map +1 -1
- package/dist/esm/components/ui/button.js +2 -3
- package/dist/esm/components/ui/button.js.map +1 -1
- package/dist/esm/components/ui/calendar.d.ts +1 -2
- package/dist/esm/components/ui/calendar.d.ts.map +1 -1
- package/dist/esm/components/ui/calendar.js +2 -4
- package/dist/esm/components/ui/calendar.js.map +1 -1
- package/dist/esm/components/ui/card.d.ts +14 -16
- package/dist/esm/components/ui/card.d.ts.map +1 -1
- package/dist/esm/components/ui/card.js +1 -2
- package/dist/esm/components/ui/card.js.map +1 -1
- package/dist/esm/components/ui/checkbox.js +2 -4
- package/dist/esm/components/ui/checkbox.js.map +1 -1
- package/dist/esm/components/ui/collapsible.d.ts +3 -4
- package/dist/esm/components/ui/collapsible.d.ts.map +1 -1
- package/dist/esm/components/ui/collapsible.js +1 -3
- package/dist/esm/components/ui/collapsible.js.map +1 -1
- package/dist/esm/components/ui/command.d.ts +2 -3
- package/dist/esm/components/ui/command.d.ts.map +1 -1
- package/dist/esm/components/ui/command.js +2 -4
- package/dist/esm/components/ui/command.js.map +1 -1
- package/dist/esm/components/ui/context-menu.d.ts +1 -2
- package/dist/esm/components/ui/context-menu.d.ts.map +1 -1
- package/dist/esm/components/ui/context-menu.js +2 -4
- package/dist/esm/components/ui/context-menu.js.map +1 -1
- package/dist/esm/components/ui/dialog.d.ts +3 -4
- package/dist/esm/components/ui/dialog.d.ts.map +1 -1
- package/dist/esm/components/ui/dialog.js +2 -4
- package/dist/esm/components/ui/dialog.js.map +1 -1
- package/dist/esm/components/ui/dropdown-menu.d.ts +1 -2
- package/dist/esm/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/esm/components/ui/dropdown-menu.js +1 -3
- package/dist/esm/components/ui/dropdown-menu.js.map +1 -1
- package/dist/esm/components/ui/form.d.ts +4 -7
- package/dist/esm/components/ui/form.d.ts.map +1 -1
- package/dist/esm/components/ui/form.js +2 -4
- package/dist/esm/components/ui/form.js.map +1 -1
- package/dist/esm/components/ui/hover-card.js +2 -4
- package/dist/esm/components/ui/hover-card.js.map +1 -1
- package/dist/esm/components/ui/inline-code.js +2 -4
- package/dist/esm/components/ui/inline-code.js.map +1 -1
- package/dist/esm/components/ui/input-otp.js +1 -3
- package/dist/esm/components/ui/input-otp.js.map +1 -1
- package/dist/esm/components/ui/input.d.ts.map +1 -1
- package/dist/esm/components/ui/input.js +1 -2
- package/dist/esm/components/ui/input.js.map +1 -1
- package/dist/esm/components/ui/label.d.ts +2 -3
- package/dist/esm/components/ui/label.d.ts.map +1 -1
- package/dist/esm/components/ui/label.js +2 -4
- package/dist/esm/components/ui/label.js.map +1 -1
- package/dist/esm/components/ui/menubar.d.ts +1 -2
- package/dist/esm/components/ui/menubar.d.ts.map +1 -1
- package/dist/esm/components/ui/menubar.js +1 -3
- package/dist/esm/components/ui/menubar.js.map +1 -1
- package/dist/esm/components/ui/navigation-menu.d.ts +1 -2
- package/dist/esm/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/esm/components/ui/navigation-menu.js +2 -4
- package/dist/esm/components/ui/navigation-menu.js.map +1 -1
- package/dist/esm/components/ui/password-input.d.ts +3 -5
- package/dist/esm/components/ui/password-input.d.ts.map +1 -1
- package/dist/esm/components/ui/password-input.js +1 -3
- package/dist/esm/components/ui/password-input.js.map +1 -1
- package/dist/esm/components/ui/popover.js +2 -4
- package/dist/esm/components/ui/popover.js.map +1 -1
- package/dist/esm/components/ui/progress.js +2 -4
- package/dist/esm/components/ui/progress.js.map +1 -1
- package/dist/esm/components/ui/radio-group.js +2 -4
- package/dist/esm/components/ui/radio-group.js.map +1 -1
- package/dist/esm/components/ui/resizable.d.ts +5 -7
- package/dist/esm/components/ui/resizable.d.ts.map +1 -1
- package/dist/esm/components/ui/resizable.js +1 -3
- package/dist/esm/components/ui/resizable.js.map +1 -1
- package/dist/esm/components/ui/scroll-area.js +2 -4
- package/dist/esm/components/ui/scroll-area.js.map +1 -1
- package/dist/esm/components/ui/select.js +2 -4
- package/dist/esm/components/ui/select.js.map +1 -1
- package/dist/esm/components/ui/separator.js +2 -4
- package/dist/esm/components/ui/separator.js.map +1 -1
- package/dist/esm/components/ui/sheet.d.ts +3 -5
- package/dist/esm/components/ui/sheet.d.ts.map +1 -1
- package/dist/esm/components/ui/sheet.js +2 -4
- package/dist/esm/components/ui/sheet.js.map +1 -1
- package/dist/esm/components/ui/skeleton.d.ts +1 -2
- package/dist/esm/components/ui/skeleton.d.ts.map +1 -1
- package/dist/esm/components/ui/skeleton.js +2 -4
- package/dist/esm/components/ui/skeleton.js.map +1 -1
- package/dist/esm/components/ui/slider.js +2 -4
- package/dist/esm/components/ui/slider.js.map +1 -1
- package/dist/esm/components/ui/spinner.js +2 -3
- package/dist/esm/components/ui/spinner.js.map +1 -1
- package/dist/esm/components/ui/switch.js +2 -4
- package/dist/esm/components/ui/switch.js.map +1 -1
- package/dist/esm/components/ui/table.js +2 -3
- package/dist/esm/components/ui/table.js.map +1 -1
- package/dist/esm/components/ui/tabs.js +2 -4
- package/dist/esm/components/ui/tabs.js.map +1 -1
- package/dist/esm/components/ui/textarea.d.ts.map +1 -1
- package/dist/esm/components/ui/textarea.js +2 -3
- package/dist/esm/components/ui/textarea.js.map +1 -1
- package/dist/esm/components/ui/toast.d.ts +1 -2
- package/dist/esm/components/ui/toast.d.ts.map +1 -1
- package/dist/esm/components/ui/toast.js +3 -5
- package/dist/esm/components/ui/toast.js.map +1 -1
- package/dist/esm/components/ui/toaster.d.ts +1 -3
- package/dist/esm/components/ui/toaster.d.ts.map +1 -1
- package/dist/esm/components/ui/toaster.js +1 -3
- package/dist/esm/components/ui/toaster.js.map +1 -1
- package/dist/esm/components/ui/toggle-group.d.ts +2 -3
- package/dist/esm/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/esm/components/ui/toggle-group.js +1 -3
- package/dist/esm/components/ui/toggle-group.js.map +1 -1
- package/dist/esm/components/ui/toggle.d.ts +2 -3
- package/dist/esm/components/ui/toggle.d.ts.map +1 -1
- package/dist/esm/components/ui/toggle.js +2 -4
- package/dist/esm/components/ui/toggle.js.map +1 -1
- package/dist/esm/components/ui/tooltip.js +2 -4
- package/dist/esm/components/ui/tooltip.js.map +1 -1
- package/dist/esm/components/ui/typography.d.ts +2 -3
- package/dist/esm/components/ui/typography.d.ts.map +1 -1
- package/dist/esm/components/ui/typography.js +2 -3
- package/dist/esm/components/ui/typography.js.map +1 -1
- package/dist/esm/components/ui/use-toast.d.ts +3 -3
- package/dist/esm/components/ui/use-toast.d.ts.map +1 -1
- package/dist/esm/components/ui/use-toast.js +1 -3
- package/dist/esm/components/ui/use-toast.js.map +1 -1
- package/dist/esm/index.d.ts +53 -53
- package/dist/esm/index.js +52 -104
- package/dist/esm/lib/utils.d.ts.map +1 -1
- package/dist/esm/lib/utils.js +1 -2
- package/dist/esm/lib/utils.js.map +1 -1
- package/dist/faceted-filter-D7lzC-jQ.d.ts +23 -0
- package/dist/faceted-filter-D7lzC-jQ.d.ts.map +1 -0
- package/dist/form-tbb6TTzR.d.ts +39 -0
- package/dist/form-tbb6TTzR.d.ts.map +1 -0
- package/dist/hover-card-Db1Z51JY.d.ts +12 -0
- package/dist/hover-card-Db1Z51JY.d.ts.map +1 -0
- package/dist/index-BVVgDSdq.d.ts +1 -0
- package/dist/index-CExKVq1L.d.ts +20 -0
- package/dist/index-CExKVq1L.d.ts.map +1 -0
- package/dist/index.d.ts +62 -62
- package/dist/index.js +371 -320
- package/dist/inline-code-AXm9EHRp.d.ts +9 -0
- package/dist/inline-code-AXm9EHRp.d.ts.map +1 -0
- package/dist/input-D57fCXWj.d.ts +24 -0
- package/dist/input-D57fCXWj.d.ts.map +1 -0
- package/dist/input-otp-DQyimdZZ.d.ts +20 -0
- package/dist/input-otp-DQyimdZZ.d.ts.map +1 -0
- package/dist/label-D1hxJj6E.d.ts +14 -0
- package/dist/label-D1hxJj6E.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +2 -7
- package/dist/lib/utils.js +2 -4
- package/dist/lib/utils.js.map +1 -1
- package/dist/menubar-C4IR0XyE.d.ts +37 -0
- package/dist/menubar-C4IR0XyE.d.ts.map +1 -0
- package/dist/navigation-menu-B0mRDLJl.d.ts +28 -0
- package/dist/navigation-menu-B0mRDLJl.d.ts.map +1 -0
- package/dist/pagination-CM_S9U09.d.ts +12 -0
- package/dist/pagination-CM_S9U09.d.ts.map +1 -0
- package/dist/password-input-dDKI5XMl.d.ts +9 -0
- package/dist/password-input-dDKI5XMl.d.ts.map +1 -0
- package/dist/popover-f6eyU589.d.ts +13 -0
- package/dist/popover-f6eyU589.d.ts.map +1 -0
- package/dist/progress-CA-6BN6M.d.ts +10 -0
- package/dist/progress-CA-6BN6M.d.ts.map +1 -0
- package/dist/radio-group-DVGseXHe.d.ts +13 -0
- package/dist/radio-group-DVGseXHe.d.ts.map +1 -0
- package/dist/resizable-s9cEwmcP.d.ts +34 -0
- package/dist/resizable-s9cEwmcP.d.ts.map +1 -0
- package/dist/{chunk-BE-pF4vm.js → rolldown-runtime-D6vf50IK.js} +12 -18
- package/dist/scroll-area-4m-KlrLi.d.ts +13 -0
- package/dist/scroll-area-4m-KlrLi.d.ts.map +1 -0
- package/dist/select-CjuKJZCz.d.ts +33 -0
- package/dist/select-CjuKJZCz.d.ts.map +1 -0
- package/dist/separator-Cjk8CDfK.d.ts +10 -0
- package/dist/separator-Cjk8CDfK.d.ts.map +1 -0
- package/dist/sheet-zQxyw3Gk.d.ts +42 -0
- package/dist/sheet-zQxyw3Gk.d.ts.map +1 -0
- package/dist/simple-tooltip-DUT6gJoc.d.ts +12 -0
- package/dist/simple-tooltip-DUT6gJoc.d.ts.map +1 -0
- package/dist/skeleton-Cyj6UxcU.d.ts +11 -0
- package/dist/skeleton-Cyj6UxcU.d.ts.map +1 -0
- package/dist/slider-D8BSwczz.d.ts +10 -0
- package/dist/slider-D8BSwczz.d.ts.map +1 -0
- package/dist/spinner-BV3t_oJC.d.ts +11 -0
- package/dist/spinner-BV3t_oJC.d.ts.map +1 -0
- package/dist/switch-D58EsVj5.d.ts +14 -0
- package/dist/switch-D58EsVj5.d.ts.map +1 -0
- package/dist/table-CN5qY3kG.d.ts +30 -0
- package/dist/table-CN5qY3kG.d.ts.map +1 -0
- package/dist/tabs-DLqjVLtJ.d.ts +17 -0
- package/dist/tabs-DLqjVLtJ.d.ts.map +1 -0
- package/dist/textarea-BbfG-NR-.d.ts +10 -0
- package/dist/textarea-BbfG-NR-.d.ts.map +1 -0
- package/dist/toast-CYNoBddH.d.ts +31 -0
- package/dist/toast-CYNoBddH.d.ts.map +1 -0
- package/dist/toaster-D1hq_EiX.d.ts +5 -0
- package/dist/toaster-D1hq_EiX.d.ts.map +1 -0
- package/dist/toggle-group-DViDiVTV.d.ts +20 -0
- package/dist/toggle-group-DViDiVTV.d.ts.map +1 -0
- package/dist/toolbar-HaHcbLXl.d.ts +22 -0
- package/dist/toolbar-HaHcbLXl.d.ts.map +1 -0
- package/dist/toolbar-items-C7xWp9cs.d.ts +12 -0
- package/dist/toolbar-items-C7xWp9cs.d.ts.map +1 -0
- package/dist/tooltip-Earz1C6g.d.ts +16 -0
- package/dist/tooltip-Earz1C6g.d.ts.map +1 -0
- package/dist/typography-DCVZg-AC.d.ts +13 -0
- package/dist/typography-DCVZg-AC.d.ts.map +1 -0
- package/dist/use-toast-vZWO0yi1.d.ts +50 -0
- package/dist/use-toast-vZWO0yi1.d.ts.map +1 -0
- package/dist/utils-BVWSvBld.d.ts +7 -0
- package/dist/utils-BVWSvBld.d.ts.map +1 -0
- package/dist/utils-f0RNcD81.d.ts +6 -0
- package/dist/utils-f0RNcD81.d.ts.map +1 -0
- package/dist/view-options-drlEs3Xp.d.ts +18 -0
- package/dist/view-options-drlEs3Xp.d.ts.map +1 -0
- package/package.json +2 -5
- package/dist/components/action-dialog.d.ts.map +0 -1
- package/dist/components/brand-icons.d.ts.map +0 -1
- package/dist/components/browser-frame/index.d.ts.map +0 -1
- package/dist/components/copy-button.d.ts.map +0 -1
- package/dist/components/copy-field.d.ts.map +0 -1
- package/dist/components/data-table/cells.d.ts.map +0 -1
- package/dist/components/data-table/column-header.d.ts.map +0 -1
- package/dist/components/data-table/data-table.d.ts.map +0 -1
- package/dist/components/data-table/faceted-filter.d.ts.map +0 -1
- package/dist/components/data-table/pagination.d.ts.map +0 -1
- package/dist/components/data-table/toolbar-items.d.ts.map +0 -1
- package/dist/components/data-table/toolbar.d.ts.map +0 -1
- package/dist/components/data-table/utils.d.ts.map +0 -1
- package/dist/components/data-table/view-options.d.ts.map +0 -1
- package/dist/components/simple-tooltip.d.ts.map +0 -1
- package/dist/components/ui/accordion.d.ts.map +0 -1
- package/dist/components/ui/alert.d.ts.map +0 -1
- package/dist/components/ui/aspect-ratio.d.ts.map +0 -1
- package/dist/components/ui/avatar.d.ts.map +0 -1
- package/dist/components/ui/badge.d.ts.map +0 -1
- package/dist/components/ui/breadcrumb.d.ts.map +0 -1
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/calendar.d.ts.map +0 -1
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/checkbox.d.ts.map +0 -1
- package/dist/components/ui/collapsible.d.ts.map +0 -1
- package/dist/components/ui/command.d.ts.map +0 -1
- package/dist/components/ui/context-menu.d.ts.map +0 -1
- package/dist/components/ui/dialog.d.ts.map +0 -1
- package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/components/ui/form.d.ts.map +0 -1
- package/dist/components/ui/hover-card.d.ts.map +0 -1
- package/dist/components/ui/inline-code.d.ts.map +0 -1
- package/dist/components/ui/input-otp.d.ts.map +0 -1
- package/dist/components/ui/input.d.ts.map +0 -1
- package/dist/components/ui/label.d.ts.map +0 -1
- package/dist/components/ui/menubar.d.ts.map +0 -1
- package/dist/components/ui/navigation-menu.d.ts.map +0 -1
- package/dist/components/ui/password-input.d.ts.map +0 -1
- package/dist/components/ui/popover.d.ts.map +0 -1
- package/dist/components/ui/progress.d.ts.map +0 -1
- package/dist/components/ui/radio-group.d.ts.map +0 -1
- package/dist/components/ui/resizable.d.ts.map +0 -1
- package/dist/components/ui/scroll-area.d.ts.map +0 -1
- package/dist/components/ui/select.d.ts.map +0 -1
- package/dist/components/ui/separator.d.ts.map +0 -1
- package/dist/components/ui/sheet.d.ts.map +0 -1
- package/dist/components/ui/skeleton.d.ts.map +0 -1
- package/dist/components/ui/slider.d.ts.map +0 -1
- package/dist/components/ui/spinner.d.ts.map +0 -1
- package/dist/components/ui/switch.d.ts.map +0 -1
- package/dist/components/ui/table.d.ts.map +0 -1
- package/dist/components/ui/tabs.d.ts.map +0 -1
- package/dist/components/ui/textarea.d.ts.map +0 -1
- package/dist/components/ui/toast.d.ts.map +0 -1
- package/dist/components/ui/toaster.d.ts.map +0 -1
- package/dist/components/ui/toggle-group.d.ts.map +0 -1
- package/dist/components/ui/tooltip.d.ts.map +0 -1
- package/dist/components/ui/typography.d.ts.map +0 -1
- package/dist/components/ui/use-toast.d.ts.map +0 -1
- package/dist/lib/utils.d.ts.map +0 -1
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
-
import * as _radix_ui_react_slot0 from "@radix-ui/react-slot";
|
|
4
|
-
import * as react_hook_form0 from "react-hook-form";
|
|
5
2
|
import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
|
|
6
3
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
7
4
|
|
|
8
5
|
//#region src/components/ui/form.d.ts
|
|
9
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props:
|
|
6
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
10
7
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({
|
|
11
8
|
...props
|
|
12
|
-
}: ControllerProps<TFieldValues, TName>) =>
|
|
9
|
+
}: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
|
|
13
10
|
declare const useFormField: () => {
|
|
14
11
|
invalid: boolean;
|
|
15
12
|
isDirty: boolean;
|
|
16
13
|
isTouched: boolean;
|
|
17
14
|
isValidating: boolean;
|
|
18
|
-
error?:
|
|
15
|
+
error?: import("react-hook-form").FieldError;
|
|
19
16
|
id: string;
|
|
20
17
|
name: string;
|
|
21
18
|
formItemId: string;
|
|
@@ -28,7 +25,7 @@ declare const FormItem: React.FC<React.HTMLAttributes<HTMLDivElement> & {
|
|
|
28
25
|
declare const FormLabel: React.FC<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & {
|
|
29
26
|
ref?: React.Ref<HTMLLabelElement> | undefined;
|
|
30
27
|
}>;
|
|
31
|
-
declare const FormControl: React.FC<Omit<
|
|
28
|
+
declare const FormControl: React.FC<Omit<import("@radix-ui/react-slot").SlotProps & React.RefAttributes<HTMLElement>, "ref"> & {
|
|
32
29
|
ref?: React.Ref<HTMLElement> | undefined;
|
|
33
30
|
}>;
|
|
34
31
|
declare const FormDescription: React.FC<React.HTMLAttributes<HTMLParagraphElement> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","names":[],"sources":["../../../../src/components/ui/form.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"form.d.ts","names":[],"sources":["../../../../src/components/ui/form.tsx"],"mappings":";;;;;cAmBM,IAAA,wBAAI,WAAA,uCAAA,YAAA,EAAA,KAAA,4BAAA,iBAAA,CAAA,YAAA,EAAA,QAAA,EAAA,kBAAA,MAAA,KAAA,CAAA,GAAA,CAAA,OAAA;AAAA,cAWJ,SAAA,wBACiB,WAAA,GAAc,WAAA,gBACrB,SAAA,CAAU,YAAA,IAAgB,SAAA,CAAU,YAAA;EAAA,GAClD;AAAA,GAEG,eAAA,CAAgB,YAAA,EAAc,KAAA,kCAAM,GAAA,CAAA,OAAA;AAAA,cAQnC,YAAA;;;;;;;;;;;;cAgCA,QAAA,EAAQ,KAAA,CAAA,EAAA,CAAA,KAAA,CAAA,cAAA,CAAA,cAAA;;;cAcR,SAAA,EAAS,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,cAAA,CAAA,UAAA,GAAA,KAAA,CAAA,aAAA,CAAA,gBAAA;;;cAgBT,WAAA,EAAW,KAAA,CAAA,EAAA,CAAA,IAAA,gCAAA,SAAA,GAAA,KAAA,CAAA,aAAA,CAAA,WAAA;;;cAsBX,eAAA,EAAe,KAAA,CAAA,EAAA,CAAA,KAAA,CAAA,cAAA,CAAA,oBAAA;;;cAiBf,WAAA,EAAW,KAAA,CAAA,EAAA,CAAA,KAAA,CAAA,cAAA,CAAA,oBAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use client";
|
|
3
2
|
import React from "react";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { forwardRefIfNeeded } from "@hexclave/shared/dist/utils/react";
|
|
@@ -8,7 +7,6 @@ import { Slot } from "@radix-ui/react-slot";
|
|
|
8
7
|
import { HexclaveAssertionError } from "@hexclave/shared/dist/utils/errors";
|
|
9
8
|
import { Controller, FormProvider, useFormContext } from "react-hook-form";
|
|
10
9
|
import { SpanLabel } from "./label.js";
|
|
11
|
-
|
|
12
10
|
//#region src/components/ui/form.tsx
|
|
13
11
|
const Form = FormProvider;
|
|
14
12
|
const FormFieldContext = React.createContext(null);
|
|
@@ -91,7 +89,7 @@ const FormMessage = forwardRefIfNeeded(({ className, children, ...props }, ref)
|
|
|
91
89
|
});
|
|
92
90
|
});
|
|
93
91
|
FormMessage.displayName = "FormMessage";
|
|
94
|
-
|
|
95
92
|
//#endregion
|
|
96
93
|
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
|
|
94
|
+
|
|
97
95
|
//# sourceMappingURL=form.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.js","names":[],"sources":["../../../../src/components/ui/form.tsx"],"sourcesContent":["'use client';\n\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport {\n Controller,\n ControllerProps,\n FieldPath,\n FieldValues,\n FormProvider,\n useFormContext,\n} from \"react-hook-form\";\n\nimport { HexclaveAssertionError } from \"@hexclave/shared/dist/utils/errors\";\nimport { cn } from \"../../lib/utils\";\nimport { SpanLabel } from \"./label\";\n\nconst Form = FormProvider;\n\ntype FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n> = {\n name: TName,\n}\n\nconst FormFieldContext = React.createContext<FormFieldContextValue | null>(null);\n\nconst FormField = <\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n>({\n ...props\n }: ControllerProps<TFieldValues, TName>) => {\n return (\n <FormFieldContext.Provider value={{ name: props.name }}>\n <Controller {...props} />\n </FormFieldContext.Provider>\n );\n};\n\nconst useFormField = () => {\n const fieldContext = React.useContext(FormFieldContext);\n const itemContext = React.useContext(FormItemContext);\n const { getFieldState, formState } = useFormContext();\n\n if (!fieldContext) {\n throw new HexclaveAssertionError(\"useFormField should be used within <FormField>\");\n }\n\n const fieldState = getFieldState(fieldContext.name, formState);\n\n const { id } = itemContext;\n const formItemId = React.useId();\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${formItemId}-form-item`,\n formDescriptionId: `${id}-form-item-description`,\n formMessageId: `${id}-form-item-message`,\n ...fieldState,\n };\n};\n\ntype FormItemContextValue = {\n id: string,\n}\n\nconst FormItemContext = React.createContext<FormItemContextValue>(\n {} as FormItemContextValue\n);\n\nconst FormItem = forwardRefIfNeeded<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => {\n const id = React.useId();\n\n return (\n <FormItemContext.Provider value={{ id }}>\n <div ref={ref} className={cn(\"space-y-2\", className)} {...props} />\n </FormItemContext.Provider>\n );\n});\nFormItem.displayName = \"FormItem\";\n\nconst FormLabel = forwardRefIfNeeded<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>\n>(({ className, ...props }, ref) => {\n const { error } = useFormField();\n\n return (\n <SpanLabel\n ref={ref}\n className={cn(error && \"text-destructive\", className)}\n {...props}\n />\n );\n});\nFormLabel.displayName = \"FormLabel\";\n\nconst FormControl = forwardRefIfNeeded<\n React.ElementRef<typeof Slot>,\n React.ComponentPropsWithoutRef<typeof Slot>\n>(({ ...props }, ref) => {\n const { error, formItemId, formDescriptionId, formMessageId } = useFormField();\n\n return (\n <Slot\n ref={ref}\n id={formItemId}\n aria-describedby={\n !error\n ? `${formDescriptionId}`\n : `${formDescriptionId} ${formMessageId}`\n }\n aria-invalid={!!error}\n {...props}\n />\n );\n});\nFormControl.displayName = \"FormControl\";\n\nconst FormDescription = forwardRefIfNeeded<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField();\n\n return (\n <p\n ref={ref}\n id={formDescriptionId}\n className={cn(\"text-[0.8rem] text-muted-foreground\", className)}\n {...props}\n />\n );\n});\nFormDescription.displayName = \"FormDescription\";\n\nconst FormMessage = forwardRefIfNeeded<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, children, ...props }, ref) => {\n const { error, formMessageId } = useFormField();\n const body = error ? String(error.message) : children;\n\n if (!body) {\n return null;\n }\n\n return (\n <p\n ref={ref}\n id={formMessageId}\n className={cn(\"text-[0.8rem] font-medium text-destructive\", className)}\n {...props}\n >\n {body}\n </p>\n );\n});\nFormMessage.displayName = \"FormMessage\";\n\nexport {\n Form, FormControl,\n FormDescription, FormField, FormItem,\n FormLabel, FormMessage, useFormField\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"form.js","names":[],"sources":["../../../../src/components/ui/form.tsx"],"sourcesContent":["'use client';\n\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport {\n Controller,\n ControllerProps,\n FieldPath,\n FieldValues,\n FormProvider,\n useFormContext,\n} from \"react-hook-form\";\n\nimport { HexclaveAssertionError } from \"@hexclave/shared/dist/utils/errors\";\nimport { cn } from \"../../lib/utils\";\nimport { SpanLabel } from \"./label\";\n\nconst Form = FormProvider;\n\ntype FormFieldContextValue<\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n> = {\n name: TName,\n}\n\nconst FormFieldContext = React.createContext<FormFieldContextValue | null>(null);\n\nconst FormField = <\n TFieldValues extends FieldValues = FieldValues,\n TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>\n>({\n ...props\n }: ControllerProps<TFieldValues, TName>) => {\n return (\n <FormFieldContext.Provider value={{ name: props.name }}>\n <Controller {...props} />\n </FormFieldContext.Provider>\n );\n};\n\nconst useFormField = () => {\n const fieldContext = React.useContext(FormFieldContext);\n const itemContext = React.useContext(FormItemContext);\n const { getFieldState, formState } = useFormContext();\n\n if (!fieldContext) {\n throw new HexclaveAssertionError(\"useFormField should be used within <FormField>\");\n }\n\n const fieldState = getFieldState(fieldContext.name, formState);\n\n const { id } = itemContext;\n const formItemId = React.useId();\n\n return {\n id,\n name: fieldContext.name,\n formItemId: `${formItemId}-form-item`,\n formDescriptionId: `${id}-form-item-description`,\n formMessageId: `${id}-form-item-message`,\n ...fieldState,\n };\n};\n\ntype FormItemContextValue = {\n id: string,\n}\n\nconst FormItemContext = React.createContext<FormItemContextValue>(\n {} as FormItemContextValue\n);\n\nconst FormItem = forwardRefIfNeeded<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => {\n const id = React.useId();\n\n return (\n <FormItemContext.Provider value={{ id }}>\n <div ref={ref} className={cn(\"space-y-2\", className)} {...props} />\n </FormItemContext.Provider>\n );\n});\nFormItem.displayName = \"FormItem\";\n\nconst FormLabel = forwardRefIfNeeded<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>\n>(({ className, ...props }, ref) => {\n const { error } = useFormField();\n\n return (\n <SpanLabel\n ref={ref}\n className={cn(error && \"text-destructive\", className)}\n {...props}\n />\n );\n});\nFormLabel.displayName = \"FormLabel\";\n\nconst FormControl = forwardRefIfNeeded<\n React.ElementRef<typeof Slot>,\n React.ComponentPropsWithoutRef<typeof Slot>\n>(({ ...props }, ref) => {\n const { error, formItemId, formDescriptionId, formMessageId } = useFormField();\n\n return (\n <Slot\n ref={ref}\n id={formItemId}\n aria-describedby={\n !error\n ? `${formDescriptionId}`\n : `${formDescriptionId} ${formMessageId}`\n }\n aria-invalid={!!error}\n {...props}\n />\n );\n});\nFormControl.displayName = \"FormControl\";\n\nconst FormDescription = forwardRefIfNeeded<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => {\n const { formDescriptionId } = useFormField();\n\n return (\n <p\n ref={ref}\n id={formDescriptionId}\n className={cn(\"text-[0.8rem] text-muted-foreground\", className)}\n {...props}\n />\n );\n});\nFormDescription.displayName = \"FormDescription\";\n\nconst FormMessage = forwardRefIfNeeded<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, children, ...props }, ref) => {\n const { error, formMessageId } = useFormField();\n const body = error ? String(error.message) : children;\n\n if (!body) {\n return null;\n }\n\n return (\n <p\n ref={ref}\n id={formMessageId}\n className={cn(\"text-[0.8rem] font-medium text-destructive\", className)}\n {...props}\n >\n {body}\n </p>\n );\n});\nFormMessage.displayName = \"FormMessage\";\n\nexport {\n Form, FormControl,\n FormDescription, FormField, FormItem,\n FormLabel, FormMessage, useFormField\n};\n"],"mappings":";;;;;;;;;;AAmBA,MAAM,OAAO;AASb,MAAM,mBAAmB,MAAM,cAA4C,IAAI;AAE/E,MAAM,aAGJ,EACE,GAAG,YACuC;CAC5C,OACE,oBAAC,iBAAiB,UAAlB;EAA2B,OAAO,EAAE,MAAM,MAAM,KAAK;YACnD,oBAAC,YAAD,EAAY,GAAI,MAAQ,CAAA;CACC,CAAA;AAE/B;AAEA,MAAM,qBAAqB;CACzB,MAAM,eAAe,MAAM,WAAW,gBAAgB;CACtD,MAAM,cAAc,MAAM,WAAW,eAAe;CACpD,MAAM,EAAE,eAAe,cAAc,eAAe;CAEpD,IAAI,CAAC,cACH,MAAM,IAAI,uBAAuB,gDAAgD;CAGnF,MAAM,aAAa,cAAc,aAAa,MAAM,SAAS;CAE7D,MAAM,EAAE,OAAO;CACf,MAAM,aAAa,MAAM,MAAM;CAE/B,OAAO;EACL;EACA,MAAM,aAAa;EACnB,YAAY,GAAG,WAAW;EAC1B,mBAAmB,GAAG,GAAG;EACzB,eAAe,GAAG,GAAG;EACrB,GAAG;CACL;AACF;AAMA,MAAM,kBAAkB,MAAM,cAC5B,CAAC,CACH;AAEA,MAAM,WAAW,oBAGd,EAAE,WAAW,GAAG,SAAS,QAAQ;CAClC,MAAM,KAAK,MAAM,MAAM;CAEvB,OACE,oBAAC,gBAAgB,UAAjB;EAA0B,OAAO,EAAE,GAAG;YACpC,oBAAC,OAAD;GAAU;GAAK,WAAW,GAAG,aAAa,SAAS;GAAG,GAAI;EAAQ,CAAA;CAC1C,CAAA;AAE9B,CAAC;AACD,SAAS,cAAc;AAEvB,MAAM,YAAY,oBAGf,EAAE,WAAW,GAAG,SAAS,QAAQ;CAClC,MAAM,EAAE,UAAU,aAAa;CAE/B,OACE,oBAAC,WAAD;EACO;EACL,WAAW,GAAG,SAAS,oBAAoB,SAAS;EACpD,GAAI;CACL,CAAA;AAEL,CAAC;AACD,UAAU,cAAc;AAExB,MAAM,cAAc,oBAGjB,EAAE,GAAG,SAAS,QAAQ;CACvB,MAAM,EAAE,OAAO,YAAY,mBAAmB,kBAAkB,aAAa;CAE7E,OACE,oBAAC,MAAD;EACO;EACL,IAAI;EACJ,oBACE,CAAC,QACG,GAAG,sBACH,GAAG,kBAAkB,GAAG;EAE9B,gBAAc,CAAC,CAAC;EAChB,GAAI;CACL,CAAA;AAEL,CAAC;AACD,YAAY,cAAc;AAE1B,MAAM,kBAAkB,oBAGrB,EAAE,WAAW,GAAG,SAAS,QAAQ;CAClC,MAAM,EAAE,sBAAsB,aAAa;CAE3C,OACE,oBAAC,KAAD;EACO;EACL,IAAI;EACJ,WAAW,GAAG,uCAAuC,SAAS;EAC9D,GAAI;CACL,CAAA;AAEL,CAAC;AACD,gBAAgB,cAAc;AAE9B,MAAM,cAAc,oBAGjB,EAAE,WAAW,UAAU,GAAG,SAAS,QAAQ;CAC5C,MAAM,EAAE,OAAO,kBAAkB,aAAa;CAC9C,MAAM,OAAO,QAAQ,OAAO,MAAM,OAAO,IAAI;CAE7C,IAAI,CAAC,MACH,OAAO;CAGT,OACE,oBAAC,KAAD;EACO;EACL,IAAI;EACJ,WAAW,GAAG,8CAA8C,SAAS;EACrE,GAAI;YAEH;CACA,CAAA;AAEP,CAAC;AACD,YAAY,cAAc"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import React from "react";
|
|
2
|
+
import "react";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { forwardRefIfNeeded } from "@hexclave/shared/dist/utils/react";
|
|
6
5
|
import { cn } from "../../lib/utils.js";
|
|
7
6
|
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
8
|
-
|
|
9
7
|
//#region src/components/ui/hover-card.tsx
|
|
10
8
|
const HoverCard = HoverCardPrimitive.Root;
|
|
11
9
|
const HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
@@ -17,7 +15,7 @@ const HoverCardContent = forwardRefIfNeeded(({ className, align = "center", side
|
|
|
17
15
|
...props
|
|
18
16
|
}));
|
|
19
17
|
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
20
|
-
|
|
21
18
|
//#endregion
|
|
22
19
|
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
20
|
+
|
|
23
21
|
//# sourceMappingURL=hover-card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hover-card.js","names":[],"sources":["../../../../src/components/ui/hover-card.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport * as HoverCardPrimitive from \"@radix-ui/react-hover-card\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst HoverCard = HoverCardPrimitive.Root;\n\nconst HoverCardTrigger = HoverCardPrimitive.Trigger;\n\nconst HoverCardContent = forwardRefIfNeeded<\n React.ElementRef<typeof HoverCardPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <HoverCardPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"stack-scope z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n));\nHoverCardContent.displayName = HoverCardPrimitive.Content.displayName;\n\nexport { HoverCard, HoverCardTrigger, HoverCardContent };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"hover-card.js","names":[],"sources":["../../../../src/components/ui/hover-card.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport * as HoverCardPrimitive from \"@radix-ui/react-hover-card\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst HoverCard = HoverCardPrimitive.Root;\n\nconst HoverCardTrigger = HoverCardPrimitive.Trigger;\n\nconst HoverCardContent = forwardRefIfNeeded<\n React.ElementRef<typeof HoverCardPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <HoverCardPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"stack-scope z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n));\nHoverCardContent.displayName = HoverCardPrimitive.Content.displayName;\n\nexport { HoverCard, HoverCardTrigger, HoverCardContent };\n"],"mappings":";;;;;;;AAQA,MAAM,YAAY,mBAAmB;AAErC,MAAM,mBAAmB,mBAAmB;AAE5C,MAAM,mBAAmB,oBAGtB,EAAE,WAAW,QAAQ,UAAU,aAAa,GAAG,GAAG,SAAS,QAC5D,oBAAC,mBAAmB,SAApB;CACO;CACE;CACK;CACZ,WAAW,GACT,0bACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,iBAAiB,cAAc,mBAAmB,QAAQ"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import React from "react";
|
|
2
|
+
import "react";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { forwardRefIfNeeded, getNodeText } from "@hexclave/shared/dist/utils/react";
|
|
6
5
|
import { cn } from "../../lib/utils.js";
|
|
7
6
|
import { runAsynchronously } from "@hexclave/shared/dist/utils/promises";
|
|
8
7
|
import { hasClickableParent } from "@hexclave/shared/dist/utils/dom";
|
|
9
8
|
import { useToast } from "./use-toast.js";
|
|
10
|
-
|
|
11
9
|
//#region src/components/ui/inline-code.tsx
|
|
12
10
|
const InlineCode = forwardRefIfNeeded((props, ref) => {
|
|
13
11
|
const { toast } = useToast();
|
|
@@ -39,7 +37,7 @@ const InlineCode = forwardRefIfNeeded((props, ref) => {
|
|
|
39
37
|
});
|
|
40
38
|
});
|
|
41
39
|
InlineCode.displayName = "Code";
|
|
42
|
-
|
|
43
40
|
//#endregion
|
|
44
41
|
export { InlineCode };
|
|
42
|
+
|
|
45
43
|
//# sourceMappingURL=inline-code.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-code.js","names":[],"sources":["../../../../src/components/ui/inline-code.tsx"],"sourcesContent":["\"use client\";\n\nimport { cn } from \"../../lib/utils\";\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport { hasClickableParent } from \"@hexclave/shared/dist/utils/dom\";\nimport { getNodeText } from \"@hexclave/shared/dist/utils/react\";\nimport { runAsynchronously } from \"@hexclave/shared/dist/utils/promises\";\nimport { useToast } from \"./use-toast\";\n\nconst InlineCode = forwardRefIfNeeded<\n React.ElementRef<\"code\">,\n React.ComponentPropsWithoutRef<\"code\">\n>((props, ref) => {\n const { toast } = useToast();\n\n return <code\n ref={ref}\n {...props}\n className={cn(\"stack-scope bg-zinc-200 text-zinc-700 dark:bg-zinc-800 dark:text-zinc-300 rounded-sm px-1 cursor-pointer\", props.className)}\n onClick={(e: React.MouseEvent<HTMLElement>) => {\n props.onClick?.(e);\n if (!hasClickableParent(e.currentTarget)) {\n e.stopPropagation();\n e.preventDefault();\n runAsynchronously(async () => {\n try {\n await navigator.clipboard.writeText(getNodeText(props.children));\n toast({ description: 'Copied to clipboard!', variant: 'success' });\n } catch (e) {\n toast({ description: 'Failed to copy to clipboard', variant: 'destructive' });\n }\n });\n }\n }}\n />;\n});\nInlineCode.displayName = \"Code\";\n\nexport { InlineCode };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"inline-code.js","names":[],"sources":["../../../../src/components/ui/inline-code.tsx"],"sourcesContent":["\"use client\";\n\nimport { cn } from \"../../lib/utils\";\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport { hasClickableParent } from \"@hexclave/shared/dist/utils/dom\";\nimport { getNodeText } from \"@hexclave/shared/dist/utils/react\";\nimport { runAsynchronously } from \"@hexclave/shared/dist/utils/promises\";\nimport { useToast } from \"./use-toast\";\n\nconst InlineCode = forwardRefIfNeeded<\n React.ElementRef<\"code\">,\n React.ComponentPropsWithoutRef<\"code\">\n>((props, ref) => {\n const { toast } = useToast();\n\n return <code\n ref={ref}\n {...props}\n className={cn(\"stack-scope bg-zinc-200 text-zinc-700 dark:bg-zinc-800 dark:text-zinc-300 rounded-sm px-1 cursor-pointer\", props.className)}\n onClick={(e: React.MouseEvent<HTMLElement>) => {\n props.onClick?.(e);\n if (!hasClickableParent(e.currentTarget)) {\n e.stopPropagation();\n e.preventDefault();\n runAsynchronously(async () => {\n try {\n await navigator.clipboard.writeText(getNodeText(props.children));\n toast({ description: 'Copied to clipboard!', variant: 'success' });\n } catch (e) {\n toast({ description: 'Failed to copy to clipboard', variant: 'destructive' });\n }\n });\n }\n }}\n />;\n});\nInlineCode.displayName = \"Code\";\n\nexport { InlineCode };\n"],"mappings":";;;;;;;;;AAUA,MAAM,aAAa,oBAGhB,OAAO,QAAQ;CAChB,MAAM,EAAE,UAAW,SAAS;CAE5B,OAAO,oBAAC,QAAD;EACA;EACL,GAAI;EACJ,WAAW,GAAG,4GAA4G,MAAM,SAAS;EACzI,UAAU,MAAqC;GAC7C,MAAM,UAAU,CAAC;GACjB,IAAI,CAAC,mBAAmB,EAAE,aAAa,GAAG;IACxC,EAAE,gBAAgB;IAClB,EAAE,eAAe;IACjB,kBAAkB,YAAY;KAC5B,IAAI;MACF,MAAM,UAAU,UAAU,UAAU,YAAY,MAAM,QAAQ,CAAC;MAC/D,MAAM;OAAE,aAAa;OAAwB,SAAS;MAAU,CAAC;KACnE,SAAS,GAAG;MACV,MAAM;OAAE,aAAa;OAA+B,SAAS;MAAc,CAAC;KAC9E;IACF,CAAC;GACH;EACF;CACD,CAAA;AACH,CAAC;AACD,WAAW,cAAc"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
2
|
import React from "react";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { forwardRefIfNeeded } from "@hexclave/shared/dist/utils/react";
|
|
6
5
|
import { DashIcon } from "@radix-ui/react-icons";
|
|
7
6
|
import { cn } from "../../lib/utils.js";
|
|
8
7
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
9
|
-
|
|
10
8
|
//#region src/components/ui/input-otp.tsx
|
|
11
9
|
const InputOTP = forwardRefIfNeeded(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx(OTPInput, {
|
|
12
10
|
ref,
|
|
@@ -41,7 +39,7 @@ const InputOTPSeparator = forwardRefIfNeeded(({ ...props }, ref) => /* @__PURE__
|
|
|
41
39
|
children: /* @__PURE__ */ jsx(DashIcon, {})
|
|
42
40
|
}));
|
|
43
41
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
44
|
-
|
|
45
42
|
//#endregion
|
|
46
43
|
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
44
|
+
|
|
47
45
|
//# sourceMappingURL=input-otp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-otp.js","names":[],"sources":["../../../../src/components/ui/input-otp.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport { DashIcon } from \"@radix-ui/react-icons\";\nimport { OTPInput, OTPInputContext } from \"input-otp\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst InputOTP: React.FC<React.ComponentPropsWithoutRef<typeof OTPInput>> = forwardRefIfNeeded<\n React.ElementRef<typeof OTPInput>,\n React.ComponentPropsWithoutRef<typeof OTPInput>\n>(({ className, containerClassName, ...props }, ref) => (\n <OTPInput\n ref={ref}\n containerClassName={cn(\n \"stack-scope flex items-center gap-2 has-[:disabled]:opacity-50\",\n containerClassName\n )}\n className={cn(\"disabled:cursor-not-allowed\", className)}\n {...props}\n />\n));\nInputOTP.displayName = \"InputOTP\";\n\nconst InputOTPGroup = forwardRefIfNeeded<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"flex items-center gap-1\", className)} {...props} />\n));\nInputOTPGroup.displayName = \"InputOTPGroup\";\n\nconst InputOTPSlot = forwardRefIfNeeded<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\"> & { index: number, size?: 'default' | 'lg' }\n>(({ index, className, size = 'default', ...props }, ref) => {\n const inputOTPContext = React.useContext(OTPInputContext);\n const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];\n\n return (\n <div\n ref={ref}\n className={cn(\n \"relative flex h-9 w-9 items-center justify-center border border-input text-sm rounded-md\",\n size === 'lg' ? 'h-10 w-10 text-lg font-medium' : '',\n isActive && \"z-10 ring-1 ring-ring\",\n className\n )}\n {...props}\n >\n {char}\n {hasFakeCaret && (\n <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n <div className=\"h-4 w-px animate-caret-blink bg-foreground duration-1000\" />\n </div>\n )}\n </div>\n );\n});\nInputOTPSlot.displayName = \"InputOTPSlot\";\n\nconst InputOTPSeparator = forwardRefIfNeeded<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ ...props }, ref) => (\n <div ref={ref} role=\"separator\" {...props}>\n <DashIcon />\n </div>\n));\nInputOTPSeparator.displayName = \"InputOTPSeparator\";\n\nexport { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"input-otp.js","names":[],"sources":["../../../../src/components/ui/input-otp.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport { DashIcon } from \"@radix-ui/react-icons\";\nimport { OTPInput, OTPInputContext } from \"input-otp\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst InputOTP: React.FC<React.ComponentPropsWithoutRef<typeof OTPInput>> = forwardRefIfNeeded<\n React.ElementRef<typeof OTPInput>,\n React.ComponentPropsWithoutRef<typeof OTPInput>\n>(({ className, containerClassName, ...props }, ref) => (\n <OTPInput\n ref={ref}\n containerClassName={cn(\n \"stack-scope flex items-center gap-2 has-[:disabled]:opacity-50\",\n containerClassName\n )}\n className={cn(\"disabled:cursor-not-allowed\", className)}\n {...props}\n />\n));\nInputOTP.displayName = \"InputOTP\";\n\nconst InputOTPGroup = forwardRefIfNeeded<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn(\"flex items-center gap-1\", className)} {...props} />\n));\nInputOTPGroup.displayName = \"InputOTPGroup\";\n\nconst InputOTPSlot = forwardRefIfNeeded<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\"> & { index: number, size?: 'default' | 'lg' }\n>(({ index, className, size = 'default', ...props }, ref) => {\n const inputOTPContext = React.useContext(OTPInputContext);\n const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];\n\n return (\n <div\n ref={ref}\n className={cn(\n \"relative flex h-9 w-9 items-center justify-center border border-input text-sm rounded-md\",\n size === 'lg' ? 'h-10 w-10 text-lg font-medium' : '',\n isActive && \"z-10 ring-1 ring-ring\",\n className\n )}\n {...props}\n >\n {char}\n {hasFakeCaret && (\n <div className=\"pointer-events-none absolute inset-0 flex items-center justify-center\">\n <div className=\"h-4 w-px animate-caret-blink bg-foreground duration-1000\" />\n </div>\n )}\n </div>\n );\n});\nInputOTPSlot.displayName = \"InputOTPSlot\";\n\nconst InputOTPSeparator = forwardRefIfNeeded<\n React.ElementRef<\"div\">,\n React.ComponentPropsWithoutRef<\"div\">\n>(({ ...props }, ref) => (\n <div ref={ref} role=\"separator\" {...props}>\n <DashIcon />\n </div>\n));\nInputOTPSeparator.displayName = \"InputOTPSeparator\";\n\nexport { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };\n"],"mappings":";;;;;;;;AASA,MAAM,WAAsE,oBAGzE,EAAE,WAAW,oBAAoB,GAAG,SAAS,QAC9C,oBAAC,UAAD;CACO;CACL,oBAAoB,GAClB,kEACA,kBACF;CACA,WAAW,GAAG,+BAA+B,SAAS;CACtD,GAAI;AACL,CAAA,CACF;AACD,SAAS,cAAc;AAEvB,MAAM,gBAAgB,oBAGnB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,OAAD;CAAU;CAAK,WAAW,GAAG,2BAA2B,SAAS;CAAG,GAAI;AAAQ,CAAA,CACjF;AACD,cAAc,cAAc;AAE5B,MAAM,eAAe,oBAGlB,EAAE,OAAO,WAAW,OAAO,WAAW,GAAG,SAAS,QAAQ;CAE3D,MAAM,EAAE,MAAM,cAAc,aADJ,MAAM,WAAW,eACc,CAAC,CAAC,MAAM;CAE/D,OACE,qBAAC,OAAD;EACO;EACL,WAAW,GACT,4FACA,SAAS,OAAO,kCAAkC,IAClD,YAAY,yBACZ,SACF;EACA,GAAI;YARN,CAUG,MACA,gBACC,oBAAC,OAAD;GAAK,WAAU;aACb,oBAAC,OAAD,EAAK,WAAU,2DAA4D,CAAA;EACxE,CAAA,CAEJ;;AAET,CAAC;AACD,aAAa,cAAc;AAE3B,MAAM,oBAAoB,oBAGvB,EAAE,GAAG,SAAS,QACf,oBAAC,OAAD;CAAU;CAAK,MAAK;CAAY,GAAI;WAClC,oBAAC,UAAD,CAAW,CAAA;AACR,CAAA,CACN;AACD,kBAAkB,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","names":[],"sources":["../../../../src/components/ui/input.tsx"],"mappings":";;;KAKY,UAAA;EACV,UAAA,GAAa,KAAA,CAAM,SAAA;AAAA,IACjB,KAAA,CAAM,mBAAA,CAAoB,gBAAA;AAAA,cAEjB,KAAA,EAAK,KAAA,CAAA,EAAA;eAHH,KAAA,CAAM,SAAA;AAAA;;;KAsCT,iBAAA;EACV,KAAA;AAAA,IACE,
|
|
1
|
+
{"version":3,"file":"input.d.ts","names":[],"sources":["../../../../src/components/ui/input.tsx"],"mappings":";;;KAKY,UAAA;EACV,UAAA,GAAa,KAAA,CAAM,SAAA;AAAA,IACjB,KAAA,CAAM,mBAAA,CAAoB,gBAAA;AAAA,cAEjB,KAAA,EAAK,KAAA,CAAA,EAAA;eAHH,KAAA,CAAM,SAAA;AAAA;;;KAsCT,iBAAA;EACV,KAAA;AAAA,IACE,UAAU;AAAA,cAED,YAAA,EAAY,KAAA,CAAA,EAAA;;;eA1CV,KAAA,CAAM,SAAA;AAAA"}
|
|
@@ -2,7 +2,6 @@ import React from "react";
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRefIfNeeded } from "@hexclave/shared/dist/utils/react";
|
|
4
4
|
import { cn } from "../../lib/utils.js";
|
|
5
|
-
|
|
6
5
|
//#region src/components/ui/input.tsx
|
|
7
6
|
const Input = forwardRefIfNeeded(({ className, type, prefixItem, ...props }, ref) => {
|
|
8
7
|
const baseClasses = "stack-scope flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50";
|
|
@@ -47,7 +46,7 @@ const DelayedInput = forwardRefIfNeeded(({ delay = 500, defaultValue, ...props }
|
|
|
47
46
|
});
|
|
48
47
|
});
|
|
49
48
|
DelayedInput.displayName = "DelayedInput";
|
|
50
|
-
|
|
51
49
|
//#endregion
|
|
52
50
|
export { DelayedInput, Input };
|
|
51
|
+
|
|
53
52
|
//# sourceMappingURL=input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","names":[],"sources":["../../../../src/components/ui/input.tsx"],"sourcesContent":["import { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\nexport type InputProps = {\n prefixItem?: React.ReactNode,\n} & React.InputHTMLAttributes<HTMLInputElement>\n\nexport const Input = forwardRefIfNeeded<HTMLInputElement, InputProps>(\n ({ className, type, prefixItem, ...props }, ref) => {\n const baseClasses = \"stack-scope flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50\";\n\n if (prefixItem) {\n return (\n <div className=\"flex flex-row items-center backdrop-blur-md bg-white/20 dark:bg-black/20 flex-1\">\n <div className={'flex self-stretch justify-center items-center text-muted-foreground pl-3 select-none bg-muted/70 pr-3 border-r border-input rounded-l-md'}>\n {prefixItem}\n </div>\n <input\n type={type}\n className={cn(baseClasses, 'rounded-l-none', className)}\n ref={ref}\n {...props}\n />\n </div>\n );\n } else {\n return (\n <div className=\"flex flex-row items-center backdrop-blur-md bg-white/20 dark:bg-black/20 flex-1\">\n <input\n type={type}\n className={cn(baseClasses, className)}\n ref={ref}\n {...props}\n />\n </div>\n );\n }\n }\n);\nInput.displayName = \"Input\";\n\n\nexport type DelayedInputProps = {\n delay?: number,\n} & InputProps\n\nexport const DelayedInput = forwardRefIfNeeded<HTMLInputElement, DelayedInputProps>(\n ({ delay = 500, defaultValue, ...props }, ref) => {\n const [value, setValue] = React.useState(defaultValue ?? \"\");\n\n const timeout = React.useRef<ReturnType<typeof setTimeout> | null>(null);\n\n const onChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n setValue(e.target.value);\n if (timeout.current) {\n clearTimeout(timeout.current);\n }\n timeout.current = setTimeout(() => {\n props.onChange?.(e);\n }, delay);\n };\n\n return <Input ref={ref} {...props} value={value} onChange={onChange} />;\n }\n);\nDelayedInput.displayName = \"DelayedInput\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"input.js","names":[],"sources":["../../../../src/components/ui/input.tsx"],"sourcesContent":["import { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\nexport type InputProps = {\n prefixItem?: React.ReactNode,\n} & React.InputHTMLAttributes<HTMLInputElement>\n\nexport const Input = forwardRefIfNeeded<HTMLInputElement, InputProps>(\n ({ className, type, prefixItem, ...props }, ref) => {\n const baseClasses = \"stack-scope flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50\";\n\n if (prefixItem) {\n return (\n <div className=\"flex flex-row items-center backdrop-blur-md bg-white/20 dark:bg-black/20 flex-1\">\n <div className={'flex self-stretch justify-center items-center text-muted-foreground pl-3 select-none bg-muted/70 pr-3 border-r border-input rounded-l-md'}>\n {prefixItem}\n </div>\n <input\n type={type}\n className={cn(baseClasses, 'rounded-l-none', className)}\n ref={ref}\n {...props}\n />\n </div>\n );\n } else {\n return (\n <div className=\"flex flex-row items-center backdrop-blur-md bg-white/20 dark:bg-black/20 flex-1\">\n <input\n type={type}\n className={cn(baseClasses, className)}\n ref={ref}\n {...props}\n />\n </div>\n );\n }\n }\n);\nInput.displayName = \"Input\";\n\n\nexport type DelayedInputProps = {\n delay?: number,\n} & InputProps\n\nexport const DelayedInput = forwardRefIfNeeded<HTMLInputElement, DelayedInputProps>(\n ({ delay = 500, defaultValue, ...props }, ref) => {\n const [value, setValue] = React.useState(defaultValue ?? \"\");\n\n const timeout = React.useRef<ReturnType<typeof setTimeout> | null>(null);\n\n const onChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n setValue(e.target.value);\n if (timeout.current) {\n clearTimeout(timeout.current);\n }\n timeout.current = setTimeout(() => {\n props.onChange?.(e);\n }, delay);\n };\n\n return <Input ref={ref} {...props} value={value} onChange={onChange} />;\n }\n);\nDelayedInput.displayName = \"DelayedInput\";\n"],"mappings":";;;;;AASA,MAAa,QAAQ,oBAClB,EAAE,WAAW,MAAM,YAAY,GAAG,SAAS,QAAQ;CAClD,MAAM,cAAe;CAErB,IAAI,YACF,OACE,qBAAC,OAAD;EAAK,WAAU;YAAf,CACE,oBAAC,OAAD;GAAK,WAAW;aACb;EACE,CAAA,GACL,oBAAC,SAAD;GACQ;GACN,WAAW,GAAG,aAAa,kBAAkB,SAAS;GACjD;GACL,GAAI;EACL,CAAA,CACE;;MAGP,OACE,oBAAC,OAAD;EAAK,WAAU;YACb,oBAAC,SAAD;GACQ;GACN,WAAW,GAAG,aAAa,SAAS;GAC/B;GACL,GAAI;EACL,CAAA;CACE,CAAA;AAGX,CACF;AACA,MAAM,cAAc;AAOpB,MAAa,eAAe,oBACzB,EAAE,QAAQ,KAAK,cAAc,GAAG,SAAS,QAAQ;CAChD,MAAM,CAAC,OAAO,YAAY,MAAM,SAAS,gBAAgB,EAAE;CAE3D,MAAM,UAAU,MAAM,OAA6C,IAAI;CAEvE,MAAM,YAAY,MAA2C;EAC3D,SAAS,EAAE,OAAO,KAAK;EACvB,IAAI,QAAQ,SACV,aAAa,QAAQ,OAAO;EAE9B,QAAQ,UAAU,iBAAiB;GACjC,MAAM,WAAW,CAAC;EACpB,GAAG,KAAK;CACV;CAEA,OAAO,oBAAC,OAAD;EAAY;EAAK,GAAI;EAAc;EAAiB;CAAW,CAAA;AACxE,CACF;AACA,aAAa,cAAc"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
4
|
-
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
5
4
|
|
|
6
5
|
//#region src/components/ui/label.d.ts
|
|
7
|
-
declare const Label: React.FC<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?:
|
|
6
|
+
declare const Label: React.FC<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
|
|
8
7
|
ref?: React.Ref<HTMLLabelElement> | undefined;
|
|
9
8
|
}>;
|
|
10
|
-
declare const SpanLabel: React.FC<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?:
|
|
9
|
+
declare const SpanLabel: React.FC<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
|
|
11
10
|
ref?: React.Ref<HTMLLabelElement> | undefined;
|
|
12
11
|
}>;
|
|
13
12
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.d.ts","names":[],"sources":["../../../../src/components/ui/label.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"label.d.ts","names":[],"sources":["../../../../src/components/ui/label.tsx"],"mappings":";;;;;cAaM,KAAA,EAAK,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,cAAA,CAAA,UAAA,GAAA,KAAA,CAAA,aAAA,CAAA,gBAAA,YAAA,YAAA,EAAA,KAAA,4CAAA,SAAA;;;cAaL,SAAA,EAAS,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,cAAA,CAAA,UAAA,GAAA,KAAA,CAAA,aAAA,CAAA,gBAAA,YAAA,YAAA,EAAA,KAAA,4CAAA,SAAA"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import React from "react";
|
|
2
|
+
import "react";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { forwardRefIfNeeded } from "@hexclave/shared/dist/utils/react";
|
|
6
5
|
import { cn } from "../../lib/utils.js";
|
|
7
6
|
import { cva } from "class-variance-authority";
|
|
8
7
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
9
|
-
|
|
10
8
|
//#region src/components/ui/label.tsx
|
|
11
9
|
const labelVariants = cva("stack-scope text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-gray-600 dark:text-gray-400");
|
|
12
10
|
const Label = forwardRefIfNeeded(({ className, ...props }, ref) => /* @__PURE__ */ jsx("label", {
|
|
@@ -21,7 +19,7 @@ const SpanLabel = forwardRefIfNeeded(({ className, ...props }, ref) => /* @__PUR
|
|
|
21
19
|
...props
|
|
22
20
|
}));
|
|
23
21
|
SpanLabel.displayName = LabelPrimitive.Root.displayName;
|
|
24
|
-
|
|
25
22
|
//#endregion
|
|
26
23
|
export { Label, SpanLabel };
|
|
24
|
+
|
|
27
25
|
//# sourceMappingURL=label.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.js","names":[],"sources":["../../../../src/components/ui/label.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst labelVariants = cva(\n \"stack-scope text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-gray-600 dark:text-gray-400\",\n);\n\nconst Label = forwardRefIfNeeded<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n <label\n ref={ref}\n className={cn(labelVariants(), className)}\n {...props}\n />\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nconst SpanLabel = forwardRefIfNeeded<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n <span\n ref={ref}\n className={cn(labelVariants(), className)}\n {...props}\n />\n));\nSpanLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label, SpanLabel };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"label.js","names":[],"sources":["../../../../src/components/ui/label.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst labelVariants = cva(\n \"stack-scope text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-gray-600 dark:text-gray-400\",\n);\n\nconst Label = forwardRefIfNeeded<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n <label\n ref={ref}\n className={cn(labelVariants(), className)}\n {...props}\n />\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nconst SpanLabel = forwardRefIfNeeded<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n <span\n ref={ref}\n className={cn(labelVariants(), className)}\n {...props}\n />\n));\nSpanLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label, SpanLabel };\n"],"mappings":";;;;;;;;AASA,MAAM,gBAAgB,IACpB,yIACF;AAEA,MAAM,QAAQ,oBAIX,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,SAAD;CACO;CACL,WAAW,GAAG,cAAc,GAAG,SAAS;CACxC,GAAI;AACL,CAAA,CACF;AACD,MAAM,cAAc,eAAe,KAAK;AAExC,MAAM,YAAY,oBAIf,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,QAAD;CACO;CACL,WAAW,GAAG,cAAc,GAAG,SAAS;CACxC,GAAI;AACL,CAAA,CACF;AACD,UAAU,cAAc,eAAe,KAAK"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
2
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
4
3
|
|
|
5
4
|
//#region src/components/ui/menubar.d.ts
|
|
@@ -30,7 +29,7 @@ declare const MenubarShortcut: {
|
|
|
30
29
|
({
|
|
31
30
|
className,
|
|
32
31
|
...props
|
|
33
|
-
}: React.HTMLAttributes<HTMLSpanElement>):
|
|
32
|
+
}: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
34
33
|
displayname: string;
|
|
35
34
|
};
|
|
36
35
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menubar.d.ts","names":[],"sources":["../../../../src/components/ui/menubar.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"menubar.d.ts","names":[],"sources":["../../../../src/components/ui/menubar.tsx"],"mappings":";;;;cAaM,WAAA;AAAA,cAEA,YAAA,EAAY,KAAA,CAAA,yBAAA,CAAA,gBAAA,CAAA,iBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA;AAAA,cAEZ,aAAA,EAAa,KAAA,CAAA,EAAA,CAAA,gBAAA,CAAA,kBAAA;AAAA,cAEb,UAAA,EAAU,KAAA,CAAA,EAAA,CAAA,gBAAA,CAAA,eAAA;AAAA,cAEV,iBAAA,EAAiB,KAAA,CAAA,yBAAA,CAAA,gBAAA,CAAA,sBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA;AAAA,cAEjB,OAAA,EAAO,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,gBAAA,CAAA,YAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA,YAAA,KAAA,CAAA,aAAA,CAAA,cAAA;AAAA,cAeP,cAAA,EAAc,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,gBAAA,CAAA,mBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,iBAAA,YAAA,KAAA,CAAA,aAAA,CAAA,iBAAA;AAAA,cAed,iBAAA,EAAiB,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,gBAAA,CAAA,sBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA;;;cAqBjB,iBAAA,EAAiB,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,gBAAA,CAAA,sBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA,YAAA,KAAA,CAAA,aAAA,CAAA,cAAA;AAAA,cAejB,cAAA,EAAc,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,gBAAA,CAAA,mBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA,YAAA,KAAA,CAAA,aAAA,CAAA,cAAA;AAAA,cAyBd,WAAA,EAAW,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,gBAAA,CAAA,gBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA;;;cAkBX,mBAAA,EAAmB,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,gBAAA,CAAA,wBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA,YAAA,KAAA,CAAA,aAAA,CAAA,cAAA;AAAA,cAuBnB,gBAAA,EAAgB,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,gBAAA,CAAA,qBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA,YAAA,KAAA,CAAA,aAAA,CAAA,cAAA;AAAA,cAsBhB,YAAA,EAAY,KAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,gBAAA,CAAA,iBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA;;;cAkBZ,gBAAA,EAAgB,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,gBAAA,CAAA,qBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA;;;cAYhB,eAAA;EAAA;;;KAGH,KAAA,CAAM,cAAA,CAAe,eAAA,gCAAgB,GAAA,CAAA,OAAA"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
2
|
import React from "react";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { forwardRefIfNeeded } from "@hexclave/shared/dist/utils/react";
|
|
6
5
|
import { CheckIcon, ChevronRightIcon, DotFilledIcon } from "@radix-ui/react-icons";
|
|
7
6
|
import { cn } from "../../lib/utils.js";
|
|
8
7
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
9
|
-
|
|
10
8
|
//#region src/components/ui/menubar.tsx
|
|
11
9
|
const MenubarMenu = MenubarPrimitive.Menu;
|
|
12
10
|
const MenubarGroup = MenubarPrimitive.Group;
|
|
@@ -93,7 +91,7 @@ const MenubarShortcut = ({ className, ...props }) => {
|
|
|
93
91
|
});
|
|
94
92
|
};
|
|
95
93
|
MenubarShortcut.displayname = "MenubarShortcut";
|
|
96
|
-
|
|
97
94
|
//#endregion
|
|
98
95
|
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
|
|
96
|
+
|
|
99
97
|
//# sourceMappingURL=menubar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menubar.js","names":[],"sources":["../../../../src/components/ui/menubar.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport {\n CheckIcon,\n ChevronRightIcon,\n DotFilledIcon,\n} from \"@radix-ui/react-icons\";\nimport * as MenubarPrimitive from \"@radix-ui/react-menubar\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst MenubarMenu = MenubarPrimitive.Menu as any;\n\nconst MenubarGroup = MenubarPrimitive.Group;\n\nconst MenubarPortal = MenubarPrimitive.Portal;\n\nconst MenubarSub = MenubarPrimitive.Sub;\n\nconst MenubarRadioGroup = MenubarPrimitive.RadioGroup;\n\nconst Menubar = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Root\n ref={ref}\n className={cn(\n \"stack-scope flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm\",\n className\n )}\n {...props}\n />\n));\nMenubar.displayName = MenubarPrimitive.Root.displayName;\n\nconst MenubarTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground\",\n className\n )}\n {...props}\n />\n));\nMenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;\n\nconst MenubarSubTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubTrigger> & {\n inset?: boolean,\n }\n>(({ className, inset, children, ...props }, ref) => (\n <MenubarPrimitive.SubTrigger\n ref={ref}\n className={cn(\n \"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto h-4 w-4\" />\n </MenubarPrimitive.SubTrigger>\n));\nMenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;\n\nconst MenubarSubContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.SubContent\n ref={ref}\n className={cn(\n \"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n));\nMenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;\n\nconst MenubarContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Content>\n>(\n (\n { className, align = \"start\", alignOffset = -4, sideOffset = 8, ...props },\n ref\n ) => (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.Content\n ref={ref}\n align={align}\n alignOffset={alignOffset}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n </MenubarPrimitive.Portal>\n )\n);\nMenubarContent.displayName = MenubarPrimitive.Content.displayName;\n\nconst MenubarItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> & {\n inset?: boolean,\n }\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n />\n));\nMenubarItem.displayName = MenubarPrimitive.Item.displayName;\n\nconst MenubarCheckboxItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n <MenubarPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <CheckIcon className=\"h-4 w-4\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n));\nMenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;\n\nconst MenubarRadioItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <MenubarPrimitive.RadioItem\n ref={ref}\n className={cn(\n \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <DotFilledIcon className=\"h-4 w-4 fill-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n));\nMenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;\n\nconst MenubarLabel = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Label> & {\n inset?: boolean,\n }\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Label\n ref={ref}\n className={cn(\n \"px-2 py-1.5 text-sm font-semibold\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n />\n));\nMenubarLabel.displayName = MenubarPrimitive.Label.displayName;\n\nconst MenubarSeparator = forwardRefIfNeeded<\n React.ElementRef<typeof MenubarPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n {...props}\n />\n));\nMenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;\n\nconst MenubarShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn(\n \"ml-auto text-xs tracking-widest text-muted-foreground\",\n className\n )}\n {...props}\n />\n );\n};\nMenubarShortcut.displayname = \"MenubarShortcut\";\n\nexport {\n Menubar,\n MenubarMenu,\n MenubarTrigger,\n MenubarContent,\n MenubarItem,\n MenubarSeparator,\n MenubarLabel,\n MenubarCheckboxItem,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarPortal,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarGroup,\n MenubarSub,\n MenubarShortcut,\n};\n"],"mappings":";;;;;;;;;;AAaA,MAAM,cAAc,iBAAiB;AAErC,MAAM,eAAe,iBAAiB;AAEtC,MAAM,gBAAgB,iBAAiB;AAEvC,MAAM,aAAa,iBAAiB;AAEpC,MAAM,oBAAoB,iBAAiB;AAE3C,MAAM,UAAU,MAAM,YAGnB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,iBAAiB;CACX;CACL,WAAW,GACT,6FACA,UACD;CACD,GAAI;EACJ,CACF;AACF,QAAQ,cAAc,iBAAiB,KAAK;AAE5C,MAAM,iBAAiB,MAAM,YAG1B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,iBAAiB;CACX;CACL,WAAW,GACT,wNACA,UACD;CACD,GAAI;EACJ,CACF;AACF,eAAe,cAAc,iBAAiB,QAAQ;AAEtD,MAAM,oBAAoB,MAAM,YAK7B,EAAE,WAAW,OAAO,UAAU,GAAG,SAAS,QAC3C,qBAAC,iBAAiB;CACX;CACL,WAAW,GACT,8MACA,SAAS,QACT,UACD;CACD,GAAI;YAEH,UACD,oBAAC,oBAAiB,WAAU,oBAAoB;EACpB,CAC9B;AACF,kBAAkB,cAAc,iBAAiB,WAAW;AAE5D,MAAM,oBAAoB,MAAM,YAG7B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,iBAAiB;CACX;CACL,WAAW,GACT,ybACA,UACD;CACD,GAAI;EACJ,CACF;AACF,kBAAkB,cAAc,iBAAiB,WAAW;AAE5D,MAAM,iBAAiB,MAAM,YAKzB,EAAE,WAAW,QAAQ,SAAS,cAAc,IAAI,aAAa,GAAG,GAAG,SACnE,QAEA,oBAAC,iBAAiB,oBAChB,oBAAC,iBAAiB;CACX;CACE;CACM;CACD;CACZ,WAAW,GACT,0ZACA,UACD;CACD,GAAI;EACJ,GACsB,CAE7B;AACD,eAAe,cAAc,iBAAiB,QAAQ;AAEtD,MAAM,cAAc,MAAM,YAKvB,EAAE,WAAW,OAAO,GAAG,SAAS,QACjC,oBAAC,iBAAiB;CACX;CACL,WAAW,GACT,iNACA,SAAS,QACT,UACD;CACD,GAAI;EACJ,CACF;AACF,YAAY,cAAc,iBAAiB,KAAK;AAEhD,MAAM,sBAAsB,MAAM,YAG/B,EAAE,WAAW,UAAU,SAAS,GAAG,SAAS,QAC7C,qBAAC,iBAAiB;CACX;CACL,WAAW,GACT,sNACA,UACD;CACQ;CACT,GAAI;YAEJ,oBAAC;EAAK,WAAU;YACd,oBAAC,iBAAiB,2BAChB,oBAAC,aAAU,WAAU,YAAY,GACF;GAC5B,EACN;EAC6B,CAChC;AACF,oBAAoB,cAAc,iBAAiB,aAAa;AAEhE,MAAM,mBAAmB,MAAM,YAG5B,EAAE,WAAW,UAAU,GAAG,SAAS,QACpC,qBAAC,iBAAiB;CACX;CACL,WAAW,GACT,sNACA,UACD;CACD,GAAI;YAEJ,oBAAC;EAAK,WAAU;YACd,oBAAC,iBAAiB,2BAChB,oBAAC,iBAAc,WAAU,yBAAyB,GACnB;GAC5B,EACN;EAC0B,CAC7B;AACF,iBAAiB,cAAc,iBAAiB,UAAU;AAE1D,MAAM,eAAe,MAAM,YAKxB,EAAE,WAAW,OAAO,GAAG,SAAS,QACjC,oBAAC,iBAAiB;CACX;CACL,WAAW,GACT,qCACA,SAAS,QACT,UACD;CACD,GAAI;EACJ,CACF;AACF,aAAa,cAAc,iBAAiB,MAAM;AAElD,MAAM,mBAAmB,oBAGtB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,iBAAiB;CACX;CACL,WAAW,GAAG,4BAA4B,UAAU;CACpD,GAAI;EACJ,CACF;AACF,iBAAiB,cAAc,iBAAiB,UAAU;AAE1D,MAAM,mBAAmB,EACvB,WACA,GAAG,YACwC;AAC3C,QACE,oBAAC;EACC,WAAW,GACT,yDACA,UACD;EACD,GAAI;GACJ;;AAGN,gBAAgB,cAAc"}
|
|
1
|
+
{"version":3,"file":"menubar.js","names":[],"sources":["../../../../src/components/ui/menubar.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport {\n CheckIcon,\n ChevronRightIcon,\n DotFilledIcon,\n} from \"@radix-ui/react-icons\";\nimport * as MenubarPrimitive from \"@radix-ui/react-menubar\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst MenubarMenu = MenubarPrimitive.Menu as any;\n\nconst MenubarGroup = MenubarPrimitive.Group;\n\nconst MenubarPortal = MenubarPrimitive.Portal;\n\nconst MenubarSub = MenubarPrimitive.Sub;\n\nconst MenubarRadioGroup = MenubarPrimitive.RadioGroup;\n\nconst Menubar = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Root\n ref={ref}\n className={cn(\n \"stack-scope flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm\",\n className\n )}\n {...props}\n />\n));\nMenubar.displayName = MenubarPrimitive.Root.displayName;\n\nconst MenubarTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground\",\n className\n )}\n {...props}\n />\n));\nMenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;\n\nconst MenubarSubTrigger = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubTrigger> & {\n inset?: boolean,\n }\n>(({ className, inset, children, ...props }, ref) => (\n <MenubarPrimitive.SubTrigger\n ref={ref}\n className={cn(\n \"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto h-4 w-4\" />\n </MenubarPrimitive.SubTrigger>\n));\nMenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;\n\nconst MenubarSubContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.SubContent\n ref={ref}\n className={cn(\n \"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n));\nMenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;\n\nconst MenubarContent = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Content>\n>(\n (\n { className, align = \"start\", alignOffset = -4, sideOffset = 8, ...props },\n ref\n ) => (\n <MenubarPrimitive.Portal>\n <MenubarPrimitive.Content\n ref={ref}\n align={align}\n alignOffset={alignOffset}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n </MenubarPrimitive.Portal>\n )\n);\nMenubarContent.displayName = MenubarPrimitive.Content.displayName;\n\nconst MenubarItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> & {\n inset?: boolean,\n }\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n />\n));\nMenubarItem.displayName = MenubarPrimitive.Item.displayName;\n\nconst MenubarCheckboxItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n <MenubarPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <CheckIcon className=\"h-4 w-4\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.CheckboxItem>\n));\nMenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;\n\nconst MenubarRadioItem = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <MenubarPrimitive.RadioItem\n ref={ref}\n className={cn(\n \"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <MenubarPrimitive.ItemIndicator>\n <DotFilledIcon className=\"h-4 w-4 fill-current\" />\n </MenubarPrimitive.ItemIndicator>\n </span>\n {children}\n </MenubarPrimitive.RadioItem>\n));\nMenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;\n\nconst MenubarLabel = React.forwardRef<\n React.ElementRef<typeof MenubarPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Label> & {\n inset?: boolean,\n }\n>(({ className, inset, ...props }, ref) => (\n <MenubarPrimitive.Label\n ref={ref}\n className={cn(\n \"px-2 py-1.5 text-sm font-semibold\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n />\n));\nMenubarLabel.displayName = MenubarPrimitive.Label.displayName;\n\nconst MenubarSeparator = forwardRefIfNeeded<\n React.ElementRef<typeof MenubarPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <MenubarPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n {...props}\n />\n));\nMenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;\n\nconst MenubarShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn(\n \"ml-auto text-xs tracking-widest text-muted-foreground\",\n className\n )}\n {...props}\n />\n );\n};\nMenubarShortcut.displayname = \"MenubarShortcut\";\n\nexport {\n Menubar,\n MenubarMenu,\n MenubarTrigger,\n MenubarContent,\n MenubarItem,\n MenubarSeparator,\n MenubarLabel,\n MenubarCheckboxItem,\n MenubarRadioGroup,\n MenubarRadioItem,\n MenubarPortal,\n MenubarSubContent,\n MenubarSubTrigger,\n MenubarGroup,\n MenubarSub,\n MenubarShortcut,\n};\n"],"mappings":";;;;;;;;AAaA,MAAM,cAAc,iBAAiB;AAErC,MAAM,eAAe,iBAAiB;AAEtC,MAAM,gBAAgB,iBAAiB;AAEvC,MAAM,aAAa,iBAAiB;AAEpC,MAAM,oBAAoB,iBAAiB;AAE3C,MAAM,UAAU,MAAM,YAGnB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,iBAAiB,MAAlB;CACO;CACL,WAAW,GACT,6FACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,QAAQ,cAAc,iBAAiB,KAAK;AAE5C,MAAM,iBAAiB,MAAM,YAG1B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,iBAAiB,SAAlB;CACO;CACL,WAAW,GACT,wNACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,eAAe,cAAc,iBAAiB,QAAQ;AAEtD,MAAM,oBAAoB,MAAM,YAK7B,EAAE,WAAW,OAAO,UAAU,GAAG,SAAS,QAC3C,qBAAC,iBAAiB,YAAlB;CACO;CACL,WAAW,GACT,8MACA,SAAS,QACT,SACF;CACA,GAAI;WAPN,CASG,UACD,oBAAC,kBAAD,EAAkB,WAAU,kBAAmB,CAAA,CACpB;EAC9B;AACD,kBAAkB,cAAc,iBAAiB,WAAW;AAE5D,MAAM,oBAAoB,MAAM,YAG7B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,iBAAiB,YAAlB;CACO;CACL,WAAW,GACT,ybACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,kBAAkB,cAAc,iBAAiB,WAAW;AAE5D,MAAM,iBAAiB,MAAM,YAKzB,EAAE,WAAW,QAAQ,SAAS,cAAc,IAAI,aAAa,GAAG,GAAG,SACnE,QAEA,oBAAC,iBAAiB,QAAlB,EAAA,UACE,oBAAC,iBAAiB,SAAlB;CACO;CACE;CACM;CACD;CACZ,WAAW,GACT,0ZACA,SACF;CACA,GAAI;AACL,CAAA,EACsB,CAAA,CAE7B;AACA,eAAe,cAAc,iBAAiB,QAAQ;AAEtD,MAAM,cAAc,MAAM,YAKvB,EAAE,WAAW,OAAO,GAAG,SAAS,QACjC,oBAAC,iBAAiB,MAAlB;CACO;CACL,WAAW,GACT,iNACA,SAAS,QACT,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc,iBAAiB,KAAK;AAEhD,MAAM,sBAAsB,MAAM,YAG/B,EAAE,WAAW,UAAU,SAAS,GAAG,SAAS,QAC7C,qBAAC,iBAAiB,cAAlB;CACO;CACL,WAAW,GACT,sNACA,SACF;CACS;CACT,GAAI;WAPN,CASE,oBAAC,QAAD;EAAM,WAAU;YACd,oBAAC,iBAAiB,eAAlB,EAAA,UACE,oBAAC,WAAD,EAAW,WAAU,UAAW,CAAA,EACF,CAAA;CAC5B,CAAA,GACL,QAC4B;EAChC;AACD,oBAAoB,cAAc,iBAAiB,aAAa;AAEhE,MAAM,mBAAmB,MAAM,YAG5B,EAAE,WAAW,UAAU,GAAG,SAAS,QACpC,qBAAC,iBAAiB,WAAlB;CACO;CACL,WAAW,GACT,sNACA,SACF;CACA,GAAI;WANN,CAQE,oBAAC,QAAD;EAAM,WAAU;YACd,oBAAC,iBAAiB,eAAlB,EAAA,UACE,oBAAC,eAAD,EAAe,WAAU,uBAAwB,CAAA,EACnB,CAAA;CAC5B,CAAA,GACL,QACyB;EAC7B;AACD,iBAAiB,cAAc,iBAAiB,UAAU;AAE1D,MAAM,eAAe,MAAM,YAKxB,EAAE,WAAW,OAAO,GAAG,SAAS,QACjC,oBAAC,iBAAiB,OAAlB;CACO;CACL,WAAW,GACT,qCACA,SAAS,QACT,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,aAAa,cAAc,iBAAiB,MAAM;AAElD,MAAM,mBAAmB,oBAGtB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,iBAAiB,WAAlB;CACO;CACL,WAAW,GAAG,4BAA4B,SAAS;CACnD,GAAI;AACL,CAAA,CACF;AACD,iBAAiB,cAAc,iBAAiB,UAAU;AAE1D,MAAM,mBAAmB,EACvB,WACA,GAAG,YACwC;CAC3C,OACE,oBAAC,QAAD;EACE,WAAW,GACT,yDACA,SACF;EACA,GAAI;CACL,CAAA;AAEL;AACA,gBAAgB,cAAc"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
3
|
-
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
4
3
|
|
|
5
4
|
//#region src/components/ui/navigation-menu.d.ts
|
|
6
5
|
declare const NavigationMenu: React.FC<Omit<NavigationMenuPrimitive.NavigationMenuProps & React.RefAttributes<HTMLElement>, "ref"> & {
|
|
@@ -10,7 +9,7 @@ declare const NavigationMenuList: React.FC<Omit<NavigationMenuPrimitive.Navigati
|
|
|
10
9
|
ref?: React.Ref<HTMLUListElement> | undefined;
|
|
11
10
|
}>;
|
|
12
11
|
declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
13
|
-
declare const navigationMenuTriggerStyle: (props?:
|
|
12
|
+
declare const navigationMenuTriggerStyle: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
14
13
|
declare const NavigationMenuTrigger: React.FC<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
15
14
|
ref?: React.Ref<HTMLButtonElement> | undefined;
|
|
16
15
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-menu.d.ts","names":[],"sources":["../../../../src/components/ui/navigation-menu.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"navigation-menu.d.ts","names":[],"sources":["../../../../src/components/ui/navigation-menu.tsx"],"mappings":";;;;cAUM,cAAA,EAAc,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,uBAAA,CAAA,mBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,WAAA;;;cAkBd,kBAAA,EAAkB,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,uBAAA,CAAA,uBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,gBAAA;;;cAelB,kBAAA,EAAkB,KAAA,CAAA,yBAAA,CAAA,uBAAA,CAAA,uBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,aAAA;AAAA,cAElB,0BAAA,GAA0B,KAAA,4CAAA,SAAA;AAAA,cAI1B,qBAAA,EAAqB,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,uBAAA,CAAA,0BAAA,GAAA,KAAA,CAAA,aAAA,CAAA,iBAAA;;;cAkBrB,qBAAA,EAAqB,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,uBAAA,CAAA,0BAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA;;;cAerB,kBAAA,EAAkB,KAAA,CAAA,yBAAA,CAAA,uBAAA,CAAA,uBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,iBAAA;AAAA,cAElB,sBAAA,EAAsB,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,uBAAA,CAAA,2BAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA;;;cAkBtB,uBAAA,EAAuB,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,uBAAA,CAAA,4BAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import React from "react";
|
|
2
|
+
import "react";
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { forwardRefIfNeeded } from "@hexclave/shared/dist/utils/react";
|
|
6
5
|
import { ChevronDownIcon } from "@radix-ui/react-icons";
|
|
7
6
|
import { cn } from "../../lib/utils.js";
|
|
8
7
|
import { cva } from "class-variance-authority";
|
|
9
8
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
10
|
-
|
|
11
9
|
//#region src/components/ui/navigation-menu.tsx
|
|
12
10
|
const NavigationMenu = forwardRefIfNeeded(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(NavigationMenuPrimitive.Root, {
|
|
13
11
|
ref,
|
|
@@ -61,7 +59,7 @@ const NavigationMenuIndicator = forwardRefIfNeeded(({ className, ...props }, ref
|
|
|
61
59
|
children: /* @__PURE__ */ jsx("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
62
60
|
}));
|
|
63
61
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
64
|
-
|
|
65
62
|
//#endregion
|
|
66
63
|
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };
|
|
64
|
+
|
|
67
65
|
//# sourceMappingURL=navigation-menu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-menu.js","names":[],"sources":["../../../../src/components/ui/navigation-menu.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport { ChevronDownIcon } from \"@radix-ui/react-icons\";\nimport * as NavigationMenuPrimitive from \"@radix-ui/react-navigation-menu\";\nimport { cva } from \"class-variance-authority\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst NavigationMenu = forwardRefIfNeeded<\n React.ElementRef<typeof NavigationMenuPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Root\n ref={ref}\n className={cn(\n \"stack-scope relative z-10 flex max-w-max flex-1 items-center justify-center\",\n className\n )}\n {...props}\n >\n {children}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive.Root>\n));\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;\n\nconst NavigationMenuList = forwardRefIfNeeded<\n React.ElementRef<typeof NavigationMenuPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.List\n ref={ref}\n className={cn(\n \"stack-scope group flex flex-1 list-none items-center justify-center space-x-1\",\n className\n )}\n {...props}\n />\n));\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item;\n\nconst navigationMenuTriggerStyle = cva(\n \"stack-scope group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50\"\n);\n\nconst NavigationMenuTrigger = forwardRefIfNeeded<\n React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Trigger\n ref={ref}\n className={cn(navigationMenuTriggerStyle(), \"group\", className)}\n {...props}\n >\n {children}{\" \"}\n <ChevronDownIcon\n className=\"relative top-[1px] ml-1 h-3 w-3 duration-300 group-data-[state=open]:rotate-180\"\n aria-hidden=\"true\"\n />\n </NavigationMenuPrimitive.Trigger>\n));\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;\n\nconst NavigationMenuContent = forwardRefIfNeeded<\n React.ElementRef<typeof NavigationMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Content\n ref={ref}\n className={cn(\n \"stack-scope left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto \",\n className\n )}\n {...props}\n />\n));\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link;\n\nconst NavigationMenuViewport = forwardRefIfNeeded<\n React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>\n>(({ className, ...props }, ref) => (\n <div className={cn(\"absolute left-0 top-full flex justify-center\")}>\n <NavigationMenuPrimitive.Viewport\n className={cn(\n \"stack-scope origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]\",\n className\n )}\n ref={ref}\n {...props}\n />\n </div>\n));\nNavigationMenuViewport.displayName =\n NavigationMenuPrimitive.Viewport.displayName;\n\nconst NavigationMenuIndicator = forwardRefIfNeeded<\n React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Indicator\n ref={ref}\n className={cn(\n \"stack-scope top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in\",\n className\n )}\n {...props}\n >\n <div className=\"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md\" />\n </NavigationMenuPrimitive.Indicator>\n));\nNavigationMenuIndicator.displayName =\n NavigationMenuPrimitive.Indicator.displayName;\n\nexport {\n navigationMenuTriggerStyle,\n NavigationMenu,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuContent,\n NavigationMenuTrigger,\n NavigationMenuLink,\n NavigationMenuIndicator,\n NavigationMenuViewport,\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"navigation-menu.js","names":[],"sources":["../../../../src/components/ui/navigation-menu.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport { ChevronDownIcon } from \"@radix-ui/react-icons\";\nimport * as NavigationMenuPrimitive from \"@radix-ui/react-navigation-menu\";\nimport { cva } from \"class-variance-authority\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst NavigationMenu = forwardRefIfNeeded<\n React.ElementRef<typeof NavigationMenuPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Root\n ref={ref}\n className={cn(\n \"stack-scope relative z-10 flex max-w-max flex-1 items-center justify-center\",\n className\n )}\n {...props}\n >\n {children}\n <NavigationMenuViewport />\n </NavigationMenuPrimitive.Root>\n));\nNavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;\n\nconst NavigationMenuList = forwardRefIfNeeded<\n React.ElementRef<typeof NavigationMenuPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.List\n ref={ref}\n className={cn(\n \"stack-scope group flex flex-1 list-none items-center justify-center space-x-1\",\n className\n )}\n {...props}\n />\n));\nNavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;\n\nconst NavigationMenuItem = NavigationMenuPrimitive.Item;\n\nconst navigationMenuTriggerStyle = cva(\n \"stack-scope group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50\"\n);\n\nconst NavigationMenuTrigger = forwardRefIfNeeded<\n React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <NavigationMenuPrimitive.Trigger\n ref={ref}\n className={cn(navigationMenuTriggerStyle(), \"group\", className)}\n {...props}\n >\n {children}{\" \"}\n <ChevronDownIcon\n className=\"relative top-[1px] ml-1 h-3 w-3 duration-300 group-data-[state=open]:rotate-180\"\n aria-hidden=\"true\"\n />\n </NavigationMenuPrimitive.Trigger>\n));\nNavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;\n\nconst NavigationMenuContent = forwardRefIfNeeded<\n React.ElementRef<typeof NavigationMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Content\n ref={ref}\n className={cn(\n \"stack-scope left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto \",\n className\n )}\n {...props}\n />\n));\nNavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;\n\nconst NavigationMenuLink = NavigationMenuPrimitive.Link;\n\nconst NavigationMenuViewport = forwardRefIfNeeded<\n React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>\n>(({ className, ...props }, ref) => (\n <div className={cn(\"absolute left-0 top-full flex justify-center\")}>\n <NavigationMenuPrimitive.Viewport\n className={cn(\n \"stack-scope origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]\",\n className\n )}\n ref={ref}\n {...props}\n />\n </div>\n));\nNavigationMenuViewport.displayName =\n NavigationMenuPrimitive.Viewport.displayName;\n\nconst NavigationMenuIndicator = forwardRefIfNeeded<\n React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,\n React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>\n>(({ className, ...props }, ref) => (\n <NavigationMenuPrimitive.Indicator\n ref={ref}\n className={cn(\n \"stack-scope top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in\",\n className\n )}\n {...props}\n >\n <div className=\"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md\" />\n </NavigationMenuPrimitive.Indicator>\n));\nNavigationMenuIndicator.displayName =\n NavigationMenuPrimitive.Indicator.displayName;\n\nexport {\n navigationMenuTriggerStyle,\n NavigationMenu,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuContent,\n NavigationMenuTrigger,\n NavigationMenuLink,\n NavigationMenuIndicator,\n NavigationMenuViewport,\n};\n"],"mappings":";;;;;;;;;AAUA,MAAM,iBAAiB,oBAGpB,EAAE,WAAW,UAAU,GAAG,SAAS,QACpC,qBAAC,wBAAwB,MAAzB;CACO;CACL,WAAW,GACT,+EACA,SACF;CACA,GAAI;WANN,CAQG,UACD,oBAAC,wBAAD,CAAyB,CAAA,CACG;EAC/B;AACD,eAAe,cAAc,wBAAwB,KAAK;AAE1D,MAAM,qBAAqB,oBAGxB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,wBAAwB,MAAzB;CACO;CACL,WAAW,GACT,iFACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,mBAAmB,cAAc,wBAAwB,KAAK;AAE9D,MAAM,qBAAqB,wBAAwB;AAEnD,MAAM,6BAA6B,IACjC,oVACF;AAEA,MAAM,wBAAwB,oBAG3B,EAAE,WAAW,UAAU,GAAG,SAAS,QACpC,qBAAC,wBAAwB,SAAzB;CACO;CACL,WAAW,GAAG,2BAA2B,GAAG,SAAS,SAAS;CAC9D,GAAI;WAHN;EAKG;EAAU;EACX,oBAAC,iBAAD;GACE,WAAU;GACV,eAAY;EACb,CAAA;CAC8B;EAClC;AACD,sBAAsB,cAAc,wBAAwB,QAAQ;AAEpE,MAAM,wBAAwB,oBAG3B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,wBAAwB,SAAzB;CACO;CACL,WAAW,GACT,sWACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,sBAAsB,cAAc,wBAAwB,QAAQ;AAEpE,MAAM,qBAAqB,wBAAwB;AAEnD,MAAM,yBAAyB,oBAG5B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,OAAD;CAAK,WAAW,GAAG,8CAA8C;WAC/D,oBAAC,wBAAwB,UAAzB;EACE,WAAW,GACT,kWACA,SACF;EACK;EACL,GAAI;CACL,CAAA;AACE,CAAA,CACN;AACD,uBAAuB,cACrB,wBAAwB,SAAS;AAEnC,MAAM,0BAA0B,oBAG7B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,wBAAwB,WAAzB;CACO;CACL,WAAW,GACT,4MACA,SACF;CACA,GAAI;WAEJ,oBAAC,OAAD,EAAK,WAAU,yEAA0E,CAAA;AACxD,CAAA,CACpC;AACD,wBAAwB,cACtB,wBAAwB,UAAU"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import * as react from "react";
|
|
2
|
-
|
|
3
1
|
//#region src/components/ui/password-input.d.ts
|
|
4
|
-
declare const PasswordInput: react.FC<{
|
|
2
|
+
declare const PasswordInput: import("react").FC<{
|
|
5
3
|
prefixItem?: React.ReactNode;
|
|
6
|
-
} & react.InputHTMLAttributes<HTMLInputElement> & {
|
|
7
|
-
ref?: react.Ref<HTMLInputElement> | undefined;
|
|
4
|
+
} & import("react").InputHTMLAttributes<HTMLInputElement> & {
|
|
5
|
+
ref?: import("react").Ref<HTMLInputElement> | undefined;
|
|
8
6
|
}>;
|
|
9
7
|
//#endregion
|
|
10
8
|
export { PasswordInput };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-input.d.ts","names":[],"sources":["../../../../src/components/ui/password-input.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"password-input.d.ts","names":[],"sources":["../../../../src/components/ui/password-input.tsx"],"mappings":";cASM,aAAA,kBAAa,EAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
2
|
import { EyeIcon, EyeOffIcon } from "lucide-react";
|
|
4
3
|
import { useState } from "react";
|
|
5
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -7,7 +6,6 @@ import { forwardRefIfNeeded } from "@hexclave/shared/dist/utils/react";
|
|
|
7
6
|
import { cn } from "../../lib/utils.js";
|
|
8
7
|
import { Button } from "./button.js";
|
|
9
8
|
import { Input } from "./input.js";
|
|
10
|
-
|
|
11
9
|
//#region src/components/ui/password-input.tsx
|
|
12
10
|
const PasswordInput = forwardRefIfNeeded(({ className, ...props }, ref) => {
|
|
13
11
|
const [showPassword, setShowPassword] = useState(false);
|
|
@@ -38,7 +36,7 @@ const PasswordInput = forwardRefIfNeeded(({ className, ...props }, ref) => {
|
|
|
38
36
|
});
|
|
39
37
|
});
|
|
40
38
|
PasswordInput.displayName = "PasswordInput";
|
|
41
|
-
|
|
42
39
|
//#endregion
|
|
43
40
|
export { PasswordInput };
|
|
41
|
+
|
|
44
42
|
//# sourceMappingURL=password-input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-input.js","names":[],"sources":["../../../../src/components/ui/password-input.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { EyeIcon, EyeOffIcon } from \"lucide-react\";\nimport { Button } from \"./button\";\nimport { Input, InputProps } from \"./input\";\nimport { cn } from \"../../lib/utils\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\n\nconst PasswordInput = forwardRefIfNeeded<HTMLInputElement, InputProps>(\n\t({ className, ...props }, ref) => {\n\t const [showPassword, setShowPassword] = useState(false);\n\n\t return (\n\t <div className=\"relative\">\n\t <Input\n\t type={showPassword ? \"text\" : \"password\"}\n\t className={cn(\"stack-scope hide-password-toggle pr-10\", className)}\n\t ref={ref}\n\t {...props}\n\t />\n\t <Button\n\t type=\"button\"\n\t variant=\"ghost\"\n\t size=\"sm\"\n\t className=\"absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent\"\n\t onClick={() => setShowPassword((prev) => !prev)}\n\t disabled={props.disabled}\n\t aria-label={showPassword ? \"Hide password\" : \"Show password\"}\n\t tabIndex={-1}\n\t >\n\t {showPassword ? (\n\t <EyeIcon\n\t className=\"h-4 w-4\"\n\t aria-hidden=\"true\"\n\t />\n\t ) : (\n\t <EyeOffIcon\n\t className=\"h-4 w-4\"\n\t aria-hidden=\"true\"\n\t />\n\t )}\n\t </Button>\n\t </div>\n\t );\n\t},\n);\nPasswordInput.displayName = \"PasswordInput\";\n\nexport { PasswordInput };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"password-input.js","names":[],"sources":["../../../../src/components/ui/password-input.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState } from \"react\";\nimport { EyeIcon, EyeOffIcon } from \"lucide-react\";\nimport { Button } from \"./button\";\nimport { Input, InputProps } from \"./input\";\nimport { cn } from \"../../lib/utils\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\n\nconst PasswordInput = forwardRefIfNeeded<HTMLInputElement, InputProps>(\n\t({ className, ...props }, ref) => {\n\t const [showPassword, setShowPassword] = useState(false);\n\n\t return (\n\t <div className=\"relative\">\n\t <Input\n\t type={showPassword ? \"text\" : \"password\"}\n\t className={cn(\"stack-scope hide-password-toggle pr-10\", className)}\n\t ref={ref}\n\t {...props}\n\t />\n\t <Button\n\t type=\"button\"\n\t variant=\"ghost\"\n\t size=\"sm\"\n\t className=\"absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent\"\n\t onClick={() => setShowPassword((prev) => !prev)}\n\t disabled={props.disabled}\n\t aria-label={showPassword ? \"Hide password\" : \"Show password\"}\n\t tabIndex={-1}\n\t >\n\t {showPassword ? (\n\t <EyeIcon\n\t className=\"h-4 w-4\"\n\t aria-hidden=\"true\"\n\t />\n\t ) : (\n\t <EyeOffIcon\n\t className=\"h-4 w-4\"\n\t aria-hidden=\"true\"\n\t />\n\t )}\n\t </Button>\n\t </div>\n\t );\n\t},\n);\nPasswordInput.displayName = \"PasswordInput\";\n\nexport { PasswordInput };\n"],"mappings":";;;;;;;;;AASA,MAAM,gBAAgB,oBACpB,EAAE,WAAW,GAAG,SAAS,QAAQ;CAChC,MAAM,CAAC,cAAc,mBAAmB,SAAS,KAAK;CAEtD,OACE,qBAAC,OAAD;EAAK,WAAU;YAAf,CACE,oBAAC,OAAD;GACE,MAAM,eAAe,SAAS;GAC9B,WAAW,GAAG,0CAA0C,SAAS;GAC5D;GACL,GAAI;EACL,CAAA,GACD,oBAAC,QAAD;GACE,MAAK;GACL,SAAQ;GACR,MAAK;GACL,WAAU;GACV,eAAe,iBAAiB,SAAS,CAAC,IAAI;GAC9C,UAAU,MAAM;GAChB,cAAY,eAAe,kBAAkB;GAC7C,UAAU;aAET,eACC,oBAAC,SAAD;IACE,WAAU;IACV,eAAY;GACb,CAAA,IAED,oBAAC,YAAD;IACE,WAAU;IACV,eAAY;GACb,CAAA;EAEG,CAAA,CACL;;AAET,CACD;AACA,cAAc,cAAc"}
|