@hexclave/ui 1.0.41 → 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,8 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "react";
|
|
2
2
|
import { jsx } 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/table.tsx
|
|
7
6
|
const Table = forwardRefIfNeeded(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", {
|
|
8
7
|
className: "relative w-full overflow-auto",
|
|
@@ -55,7 +54,7 @@ const TableCaption = forwardRefIfNeeded(({ className, ...props }, ref) => /* @__
|
|
|
55
54
|
...props
|
|
56
55
|
}));
|
|
57
56
|
TableCaption.displayName = "TableCaption";
|
|
58
|
-
|
|
59
57
|
//#endregion
|
|
60
58
|
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
59
|
+
|
|
61
60
|
//# sourceMappingURL=table.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","names":[],"sources":["../../../../src/components/ui/table.tsx"],"sourcesContent":["import { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst Table = forwardRefIfNeeded<\n HTMLTableElement,\n React.HTMLAttributes<HTMLTableElement>\n>(({ className, ...props }, ref) => (\n <div className=\"relative w-full overflow-auto\">\n <table\n ref={ref}\n className={cn(\"stack-scope w-full caption-bottom text-sm\", className)}\n {...props}\n />\n </div>\n));\nTable.displayName = \"Table\";\n\nconst TableHeader = forwardRefIfNeeded<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <thead ref={ref} className={cn(\"[&_tr]:border-b\", className)} {...props} />\n));\nTableHeader.displayName = \"TableHeader\";\n\nconst TableBody = forwardRefIfNeeded<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tbody\n ref={ref}\n className={cn(\"[&_tr:last-child]:border-0\", className)}\n {...props}\n />\n));\nTableBody.displayName = \"TableBody\";\n\nconst TableFooter = forwardRefIfNeeded<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n className={cn(\n \"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0\",\n className\n )}\n {...props}\n />\n));\nTableFooter.displayName = \"TableFooter\";\n\nconst TableRow = forwardRefIfNeeded<\n HTMLTableRowElement,\n React.HTMLAttributes<HTMLTableRowElement>\n>(({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn(\n \"border-b data-[state=selected]:bg-muted\",\n props.onClick ? \"hover:bg-muted/50 cursor-pointer\" : \"\",\n className\n )}\n {...props}\n />\n));\nTableRow.displayName = \"TableRow\";\n\nconst TableHead = forwardRefIfNeeded<\n HTMLTableCellElement,\n React.ThHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <th\n ref={ref}\n className={cn(\n \"h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]\",\n className\n )}\n {...props}\n />\n));\nTableHead.displayName = \"TableHead\";\n\nconst TableCell = forwardRefIfNeeded<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <td\n ref={ref}\n className={cn(\n \"p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]\",\n className\n )}\n {...props}\n />\n));\nTableCell.displayName = \"TableCell\";\n\nconst TableCaption = forwardRefIfNeeded<\n HTMLTableCaptionElement,\n React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n <caption\n ref={ref}\n className={cn(\"mt-4 text-sm text-muted-foreground\", className)}\n {...props}\n />\n));\nTableCaption.displayName = \"TableCaption\";\n\nexport {\n Table, TableBody, TableCaption, TableCell, TableFooter,\n TableHead, TableHeader, TableRow\n};\n\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"table.js","names":[],"sources":["../../../../src/components/ui/table.tsx"],"sourcesContent":["import { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst Table = forwardRefIfNeeded<\n HTMLTableElement,\n React.HTMLAttributes<HTMLTableElement>\n>(({ className, ...props }, ref) => (\n <div className=\"relative w-full overflow-auto\">\n <table\n ref={ref}\n className={cn(\"stack-scope w-full caption-bottom text-sm\", className)}\n {...props}\n />\n </div>\n));\nTable.displayName = \"Table\";\n\nconst TableHeader = forwardRefIfNeeded<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <thead ref={ref} className={cn(\"[&_tr]:border-b\", className)} {...props} />\n));\nTableHeader.displayName = \"TableHeader\";\n\nconst TableBody = forwardRefIfNeeded<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tbody\n ref={ref}\n className={cn(\"[&_tr:last-child]:border-0\", className)}\n {...props}\n />\n));\nTableBody.displayName = \"TableBody\";\n\nconst TableFooter = forwardRefIfNeeded<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n className={cn(\n \"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0\",\n className\n )}\n {...props}\n />\n));\nTableFooter.displayName = \"TableFooter\";\n\nconst TableRow = forwardRefIfNeeded<\n HTMLTableRowElement,\n React.HTMLAttributes<HTMLTableRowElement>\n>(({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn(\n \"border-b data-[state=selected]:bg-muted\",\n props.onClick ? \"hover:bg-muted/50 cursor-pointer\" : \"\",\n className\n )}\n {...props}\n />\n));\nTableRow.displayName = \"TableRow\";\n\nconst TableHead = forwardRefIfNeeded<\n HTMLTableCellElement,\n React.ThHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <th\n ref={ref}\n className={cn(\n \"h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]\",\n className\n )}\n {...props}\n />\n));\nTableHead.displayName = \"TableHead\";\n\nconst TableCell = forwardRefIfNeeded<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <td\n ref={ref}\n className={cn(\n \"p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]\",\n className\n )}\n {...props}\n />\n));\nTableCell.displayName = \"TableCell\";\n\nconst TableCaption = forwardRefIfNeeded<\n HTMLTableCaptionElement,\n React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n <caption\n ref={ref}\n className={cn(\"mt-4 text-sm text-muted-foreground\", className)}\n {...props}\n />\n));\nTableCaption.displayName = \"TableCaption\";\n\nexport {\n Table, TableBody, TableCaption, TableCell, TableFooter,\n TableHead, TableHeader, TableRow\n};\n\n"],"mappings":";;;;;AAKA,MAAM,QAAQ,oBAGX,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,OAAD;CAAK,WAAU;WACb,oBAAC,SAAD;EACO;EACL,WAAW,GAAG,6CAA6C,SAAS;EACpE,GAAI;CACL,CAAA;AACE,CAAA,CACN;AACD,MAAM,cAAc;AAEpB,MAAM,cAAc,oBAGjB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,SAAD;CAAY;CAAK,WAAW,GAAG,mBAAmB,SAAS;CAAG,GAAI;AAAQ,CAAA,CAC3E;AACD,YAAY,cAAc;AAE1B,MAAM,YAAY,oBAGf,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,SAAD;CACO;CACL,WAAW,GAAG,8BAA8B,SAAS;CACrD,GAAI;AACL,CAAA,CACF;AACD,UAAU,cAAc;AAExB,MAAM,cAAc,oBAGjB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,SAAD;CACO;CACL,WAAW,GACT,2DACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc;AAE1B,MAAM,WAAW,oBAGd,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,MAAD;CACO;CACL,WAAW,GACT,2CACA,MAAM,UAAU,qCAAqC,IACrD,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,SAAS,cAAc;AAEvB,MAAM,YAAY,oBAGf,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,MAAD;CACO;CACL,WAAW,GACT,0IACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,UAAU,cAAc;AAExB,MAAM,YAAY,oBAGf,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,MAAD;CACO;CACL,WAAW,GACT,wFACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,UAAU,cAAc;AAExB,MAAM,eAAe,oBAGlB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,WAAD;CACO;CACL,WAAW,GAAG,sCAAsC,SAAS;CAC7D,GAAI;AACL,CAAA,CACF;AACD,aAAa,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 TabsPrimitive from "@radix-ui/react-tabs";
|
|
8
|
-
|
|
9
7
|
//#region src/components/ui/tabs.tsx
|
|
10
8
|
const Tabs = TabsPrimitive.Root;
|
|
11
9
|
const TabsList = forwardRefIfNeeded(({ className, ...props }, ref) => /* @__PURE__ */ jsx(TabsPrimitive.List, {
|
|
@@ -26,7 +24,7 @@ const TabsContent = forwardRefIfNeeded(({ className, ...props }, ref) => /* @__P
|
|
|
26
24
|
...props
|
|
27
25
|
}));
|
|
28
26
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
29
|
-
|
|
30
27
|
//#endregion
|
|
31
28
|
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
29
|
+
|
|
32
30
|
//# sourceMappingURL=tabs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.js","names":[],"sources":["../../../../src/components/ui/tabs.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport * as TabsPrimitive from \"@radix-ui/react-tabs\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst Tabs = TabsPrimitive.Root;\n\nconst TabsList = forwardRefIfNeeded<\n React.ElementRef<typeof TabsPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.List\n ref={ref}\n className={cn(\n \"stack-scope inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground\",\n className\n )}\n {...props}\n />\n));\nTabsList.displayName = TabsPrimitive.List.displayName;\n\nconst TabsTrigger = forwardRefIfNeeded<\n React.ElementRef<typeof TabsPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\n \"inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm\",\n className\n )}\n {...props}\n />\n));\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\nconst TabsContent = forwardRefIfNeeded<\n React.ElementRef<typeof TabsPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(\n \"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\",\n className\n )}\n {...props}\n />\n));\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tabs.js","names":[],"sources":["../../../../src/components/ui/tabs.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport * as TabsPrimitive from \"@radix-ui/react-tabs\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst Tabs = TabsPrimitive.Root;\n\nconst TabsList = forwardRefIfNeeded<\n React.ElementRef<typeof TabsPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.List\n ref={ref}\n className={cn(\n \"stack-scope inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground\",\n className\n )}\n {...props}\n />\n));\nTabsList.displayName = TabsPrimitive.List.displayName;\n\nconst TabsTrigger = forwardRefIfNeeded<\n React.ElementRef<typeof TabsPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\n \"inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm\",\n className\n )}\n {...props}\n />\n));\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\nconst TabsContent = forwardRefIfNeeded<\n React.ElementRef<typeof TabsPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(\n \"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\",\n className\n )}\n {...props}\n />\n));\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent };\n"],"mappings":";;;;;;;AAQA,MAAM,OAAO,cAAc;AAE3B,MAAM,WAAW,oBAGd,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,cAAc,MAAf;CACO;CACL,WAAW,GACT,yGACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,SAAS,cAAc,cAAc,KAAK;AAE1C,MAAM,cAAc,oBAGjB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,cAAc,SAAf;CACO;CACL,WAAW,GACT,qYACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc,cAAc,QAAQ;AAEhD,MAAM,cAAc,oBAGjB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,cAAc,SAAf;CACO;CACL,WAAW,GACT,mIACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc,cAAc,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.d.ts","names":[],"sources":["../../../../src/components/ui/textarea.tsx"],"mappings":";;;KAKY,aAAA,QAAqB,KAAA,CAAM,
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","names":[],"sources":["../../../../src/components/ui/textarea.tsx"],"mappings":";;;KAKY,aAAA,QAAqB,KAAA,CAAM,sBAAsB,CAAC,mBAAA;AAAA,cAExD,QAAA,EAAQ,KAAA,CAAA,EAAA,CAAA,KAAA,CAAA,sBAAA,CAAA,mBAAA"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "react";
|
|
2
2
|
import { jsx } 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/textarea.tsx
|
|
7
6
|
const Textarea = forwardRefIfNeeded(({ className, ...props }, ref) => {
|
|
8
7
|
return /* @__PURE__ */ jsx("textarea", {
|
|
@@ -12,7 +11,7 @@ const Textarea = forwardRefIfNeeded(({ className, ...props }, ref) => {
|
|
|
12
11
|
});
|
|
13
12
|
});
|
|
14
13
|
Textarea.displayName = "Textarea";
|
|
15
|
-
|
|
16
14
|
//#endregion
|
|
17
15
|
export { Textarea };
|
|
16
|
+
|
|
18
17
|
//# sourceMappingURL=textarea.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.js","names":[],"sources":["../../../../src/components/ui/textarea.tsx"],"sourcesContent":["import { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\nexport type TextareaProps = {} & React.TextareaHTMLAttributes<HTMLTextAreaElement>\n\nconst Textarea = forwardRefIfNeeded<HTMLTextAreaElement, TextareaProps>(\n ({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n \"stack-scope flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n ref={ref}\n {...props}\n />\n );\n }\n);\nTextarea.displayName = \"Textarea\";\n\nexport { Textarea };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"textarea.js","names":[],"sources":["../../../../src/components/ui/textarea.tsx"],"sourcesContent":["import { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport React from \"react\";\n\nimport { cn } from \"../../lib/utils\";\n\nexport type TextareaProps = {} & React.TextareaHTMLAttributes<HTMLTextAreaElement>\n\nconst Textarea = forwardRefIfNeeded<HTMLTextAreaElement, TextareaProps>(\n ({ className, ...props }, ref) => {\n return (\n <textarea\n className={cn(\n \"stack-scope flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n ref={ref}\n {...props}\n />\n );\n }\n);\nTextarea.displayName = \"Textarea\";\n\nexport { Textarea };\n"],"mappings":";;;;;AAOA,MAAM,WAAW,oBACd,EAAE,WAAW,GAAG,SAAS,QAAQ;CAChC,OACE,oBAAC,YAAD;EACE,WAAW,GACT,4QACA,SACF;EACK;EACL,GAAI;CACL,CAAA;AAEL,CACF;AACA,SAAS,cAAc"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
4
|
-
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
5
4
|
|
|
6
5
|
//#region src/components/ui/toast.d.ts
|
|
7
6
|
declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
|
|
@@ -10,7 +9,7 @@ declare const ToastViewport: React.FC<Omit<ToastPrimitives.ToastViewportProps &
|
|
|
10
9
|
}>;
|
|
11
10
|
declare const Toast: React.FC<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
12
11
|
variant?: "default" | "destructive" | "success" | null | undefined;
|
|
13
|
-
} &
|
|
12
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
14
13
|
ref?: React.Ref<HTMLLIElement> | undefined;
|
|
15
14
|
}>;
|
|
16
15
|
declare const ToastAction: React.FC<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.d.ts","names":[],"sources":["../../../../src/components/ui/toast.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"toast.d.ts","names":[],"sources":["../../../../src/components/ui/toast.tsx"],"mappings":";;;;;cAUM,aAAA,EAAa,KAAA,CAAA,EAAA,CAAA,eAAA,CAAA,kBAAA;AAAA,cAEb,aAAA,EAAa,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,eAAA,CAAA,kBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,gBAAA;;;cAkCb,KAAA,EAAK,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,eAAA,CAAA,UAAA,GAAA,KAAA,CAAA,aAAA,CAAA,aAAA,YAAA,YAAA,EAAA,KAAA;;;;;cAeL,WAAA,EAAW,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,eAAA,CAAA,gBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,iBAAA;;;cAeX,UAAA,EAAU,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,eAAA,CAAA,eAAA,GAAA,KAAA,CAAA,aAAA,CAAA,iBAAA;;;cAoBV,UAAA,EAAU,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,eAAA,CAAA,eAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA;;;cAYV,gBAAA,EAAgB,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,eAAA,CAAA,qBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA;;;KAYjB,UAAA,GAAa,KAAA,CAAM,wBAAwB,QAAQ,KAAA;AAAA,KAEnD,kBAAA,GAAqB,KAAA,CAAM,YAAY,QAAQ,WAAA"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import React from "react";
|
|
1
|
+
"use client";
|
|
2
|
+
import "react";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { forwardRefIfNeeded } from "@hexclave/shared/dist/utils/react";
|
|
6
5
|
import { Cross2Icon } 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 ToastPrimitives from "@radix-ui/react-toast";
|
|
10
|
-
|
|
11
9
|
//#region src/components/ui/toast.tsx
|
|
12
10
|
const ToastProvider = ToastPrimitives.Provider;
|
|
13
11
|
const ToastViewport = forwardRefIfNeeded(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Viewport, {
|
|
@@ -58,7 +56,7 @@ const ToastDescription = forwardRefIfNeeded(({ className, ...props }, ref) => /*
|
|
|
58
56
|
...props
|
|
59
57
|
}));
|
|
60
58
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
61
|
-
|
|
62
59
|
//#endregion
|
|
63
60
|
export { Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport };
|
|
61
|
+
|
|
64
62
|
//# sourceMappingURL=toast.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.js","names":[],"sources":["../../../../src/components/ui/toast.tsx"],"sourcesContent":["'use client';\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport { Cross2Icon } from \"@radix-ui/react-icons\";\nimport * as ToastPrimitives from \"@radix-ui/react-toast\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst ToastProvider = ToastPrimitives.Provider;\n\nconst ToastViewport = forwardRefIfNeeded<\n React.ElementRef<typeof ToastPrimitives.Viewport>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Viewport\n ref={ref}\n className={cn(\n \"stack-scope fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]\",\n className\n )}\n {...props}\n />\n));\nToastViewport.displayName = ToastPrimitives.Viewport.displayName;\n\nconst toastVariants = cva(\n \"stack-scope group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full\",\n {\n variants: {\n variant: {\n default:\n \"border border-border bg-background text-foreground shadow-lg dark:border-gray-600 dark:bg-gray-800 dark:text-foreground\",\n destructive:\n 'destructive group border-destructive bg-destructive text-destructive-foreground',\n success:\n 'success group border-success bg-success text-success-foreground',\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n);\n\nconst Toast = forwardRefIfNeeded<\n React.ElementRef<typeof ToastPrimitives.Root>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> &\n VariantProps<typeof toastVariants>\n>(({ className, variant, ...props }, ref) => {\n return (\n <ToastPrimitives.Root\n ref={ref}\n className={cn(toastVariants({ variant }), className)}\n {...props}\n />\n );\n});\nToast.displayName = ToastPrimitives.Root.displayName;\n\nconst ToastAction = forwardRefIfNeeded<\n React.ElementRef<typeof ToastPrimitives.Action>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Action\n ref={ref}\n className={cn(\n \"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive\",\n className\n )}\n {...props}\n />\n));\nToastAction.displayName = ToastPrimitives.Action.displayName;\n\nconst ToastClose = forwardRefIfNeeded<\n React.ElementRef<typeof ToastPrimitives.Close>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Close\n ref={ref}\n className={cn(\n 'absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100',\n 'group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600',\n 'group-[.success]:text-green-300 group-[.success]:hover:text-green-50 group-[.success]:focus:ring-green-400 group-[.success]:focus:ring-offset-green-600',\n className\n )}\n toast-close=''\n {...props}\n >\n <Cross2Icon className=\"h-4 w-4\" />\n </ToastPrimitives.Close>\n));\nToastClose.displayName = ToastPrimitives.Close.displayName;\n\nconst ToastTitle = forwardRefIfNeeded<\n React.ElementRef<typeof ToastPrimitives.Title>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Title\n ref={ref}\n className={cn(\"text-sm font-semibold [&+div]:text-xs\", className)}\n {...props}\n />\n));\nToastTitle.displayName = ToastPrimitives.Title.displayName;\n\nconst ToastDescription = forwardRefIfNeeded<\n React.ElementRef<typeof ToastPrimitives.Description>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Description\n ref={ref}\n className={cn(\"text-sm opacity-90\", className)}\n {...props}\n />\n));\nToastDescription.displayName = ToastPrimitives.Description.displayName;\n\ntype ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;\n\ntype ToastActionElement = React.ReactElement<typeof ToastAction>;\n\nexport {\n type ToastProps,\n type ToastActionElement,\n ToastProvider,\n ToastViewport,\n Toast,\n ToastTitle,\n ToastDescription,\n ToastClose,\n ToastAction,\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"toast.js","names":[],"sources":["../../../../src/components/ui/toast.tsx"],"sourcesContent":["'use client';\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport { Cross2Icon } from \"@radix-ui/react-icons\";\nimport * as ToastPrimitives from \"@radix-ui/react-toast\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst ToastProvider = ToastPrimitives.Provider;\n\nconst ToastViewport = forwardRefIfNeeded<\n React.ElementRef<typeof ToastPrimitives.Viewport>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Viewport\n ref={ref}\n className={cn(\n \"stack-scope fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]\",\n className\n )}\n {...props}\n />\n));\nToastViewport.displayName = ToastPrimitives.Viewport.displayName;\n\nconst toastVariants = cva(\n \"stack-scope group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full\",\n {\n variants: {\n variant: {\n default:\n \"border border-border bg-background text-foreground shadow-lg dark:border-gray-600 dark:bg-gray-800 dark:text-foreground\",\n destructive:\n 'destructive group border-destructive bg-destructive text-destructive-foreground',\n success:\n 'success group border-success bg-success text-success-foreground',\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n);\n\nconst Toast = forwardRefIfNeeded<\n React.ElementRef<typeof ToastPrimitives.Root>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> &\n VariantProps<typeof toastVariants>\n>(({ className, variant, ...props }, ref) => {\n return (\n <ToastPrimitives.Root\n ref={ref}\n className={cn(toastVariants({ variant }), className)}\n {...props}\n />\n );\n});\nToast.displayName = ToastPrimitives.Root.displayName;\n\nconst ToastAction = forwardRefIfNeeded<\n React.ElementRef<typeof ToastPrimitives.Action>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Action\n ref={ref}\n className={cn(\n \"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive\",\n className\n )}\n {...props}\n />\n));\nToastAction.displayName = ToastPrimitives.Action.displayName;\n\nconst ToastClose = forwardRefIfNeeded<\n React.ElementRef<typeof ToastPrimitives.Close>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Close\n ref={ref}\n className={cn(\n 'absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100',\n 'group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600',\n 'group-[.success]:text-green-300 group-[.success]:hover:text-green-50 group-[.success]:focus:ring-green-400 group-[.success]:focus:ring-offset-green-600',\n className\n )}\n toast-close=''\n {...props}\n >\n <Cross2Icon className=\"h-4 w-4\" />\n </ToastPrimitives.Close>\n));\nToastClose.displayName = ToastPrimitives.Close.displayName;\n\nconst ToastTitle = forwardRefIfNeeded<\n React.ElementRef<typeof ToastPrimitives.Title>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Title\n ref={ref}\n className={cn(\"text-sm font-semibold [&+div]:text-xs\", className)}\n {...props}\n />\n));\nToastTitle.displayName = ToastPrimitives.Title.displayName;\n\nconst ToastDescription = forwardRefIfNeeded<\n React.ElementRef<typeof ToastPrimitives.Description>,\n React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description>\n>(({ className, ...props }, ref) => (\n <ToastPrimitives.Description\n ref={ref}\n className={cn(\"text-sm opacity-90\", className)}\n {...props}\n />\n));\nToastDescription.displayName = ToastPrimitives.Description.displayName;\n\ntype ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;\n\ntype ToastActionElement = React.ReactElement<typeof ToastAction>;\n\nexport {\n type ToastProps,\n type ToastActionElement,\n ToastProvider,\n ToastViewport,\n Toast,\n ToastTitle,\n ToastDescription,\n ToastClose,\n ToastAction,\n};\n"],"mappings":";;;;;;;;;AAUA,MAAM,gBAAgB,gBAAgB;AAEtC,MAAM,gBAAgB,oBAGnB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,UAAjB;CACO;CACL,WAAW,GACT,iJACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,cAAc,cAAc,gBAAgB,SAAS;AAErD,MAAM,gBAAgB,IACpB,ymBACA;CACE,UAAU,EACR,SAAS;EACP,SACE;EACF,aACE;EACF,SACE;CACJ,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CACF;AAEA,MAAM,QAAQ,oBAIX,EAAE,WAAW,SAAS,GAAG,SAAS,QAAQ;CAC3C,OACE,oBAAC,gBAAgB,MAAjB;EACO;EACL,WAAW,GAAG,cAAc,EAAE,QAAQ,CAAC,GAAG,SAAS;EACnD,GAAI;CACL,CAAA;AAEL,CAAC;AACD,MAAM,cAAc,gBAAgB,KAAK;AAEzC,MAAM,cAAc,oBAGjB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,QAAjB;CACO;CACL,WAAW,GACT,2dACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc,gBAAgB,OAAO;AAEjD,MAAM,aAAa,oBAGhB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,OAAjB;CACO;CACL,WAAW,GACT,yLACA,mKACA,2JACA,SACF;CACA,eAAY;CACZ,GAAI;WAEJ,oBAAC,YAAD,EAAY,WAAU,UAAW,CAAA;AACZ,CAAA,CACxB;AACD,WAAW,cAAc,gBAAgB,MAAM;AAE/C,MAAM,aAAa,oBAGhB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,OAAjB;CACO;CACL,WAAW,GAAG,yCAAyC,SAAS;CAChE,GAAI;AACL,CAAA,CACF;AACD,WAAW,cAAc,gBAAgB,MAAM;AAE/C,MAAM,mBAAmB,oBAGtB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,aAAjB;CACO;CACL,WAAW,GAAG,sBAAsB,SAAS;CAC7C,GAAI;AACL,CAAA,CACF;AACD,iBAAiB,cAAc,gBAAgB,YAAY"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
-
|
|
3
1
|
//#region src/components/ui/toaster.d.ts
|
|
4
|
-
declare function Toaster():
|
|
2
|
+
declare function Toaster(): import("react/jsx-runtime").JSX.Element;
|
|
5
3
|
//#endregion
|
|
6
4
|
export { Toaster };
|
|
7
5
|
//# sourceMappingURL=toaster.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toaster.d.ts","names":[],"sources":["../../../../src/components/ui/toaster.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"toaster.d.ts","names":[],"sources":["../../../../src/components/ui/toaster.tsx"],"mappings":";iBAYgB,OAAA,gCAAO,GAAA,CAAA,OAAA"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import { useToast } from "./use-toast.js";
|
|
5
4
|
import { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport } from "./toast.js";
|
|
6
|
-
|
|
7
5
|
//#region src/components/ui/toaster.tsx
|
|
8
6
|
function Toaster() {
|
|
9
7
|
const { toasts } = useToast();
|
|
@@ -21,7 +19,7 @@ function Toaster() {
|
|
|
21
19
|
}, id);
|
|
22
20
|
}), /* @__PURE__ */ jsx(ToastViewport, {})] });
|
|
23
21
|
}
|
|
24
|
-
|
|
25
22
|
//#endregion
|
|
26
23
|
export { Toaster };
|
|
24
|
+
|
|
27
25
|
//# sourceMappingURL=toaster.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toaster.js","names":[],"sources":["../../../../src/components/ui/toaster.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n Toast,\n ToastClose,\n ToastDescription,\n ToastProvider,\n ToastTitle,\n ToastViewport,\n} from \"./toast\";\nimport { useToast } from \"./use-toast\";\n\nexport function Toaster() {\n const { toasts } = useToast();\n\n return (\n <ToastProvider>\n {toasts.map(function ({ id, title, description, action, ...props }) {\n return (\n <Toast key={id} {...props}>\n <div className=\"stack-scope grid gap-1\">\n {title && <ToastTitle>{title}</ToastTitle>}\n {description && (\n <ToastDescription>{description}</ToastDescription>\n )}\n </div>\n {action}\n <ToastClose />\n </Toast>\n );\n })}\n <ToastViewport />\n </ToastProvider>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"toaster.js","names":[],"sources":["../../../../src/components/ui/toaster.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n Toast,\n ToastClose,\n ToastDescription,\n ToastProvider,\n ToastTitle,\n ToastViewport,\n} from \"./toast\";\nimport { useToast } from \"./use-toast\";\n\nexport function Toaster() {\n const { toasts } = useToast();\n\n return (\n <ToastProvider>\n {toasts.map(function ({ id, title, description, action, ...props }) {\n return (\n <Toast key={id} {...props}>\n <div className=\"stack-scope grid gap-1\">\n {title && <ToastTitle>{title}</ToastTitle>}\n {description && (\n <ToastDescription>{description}</ToastDescription>\n )}\n </div>\n {action}\n <ToastClose />\n </Toast>\n );\n })}\n <ToastViewport />\n </ToastProvider>\n );\n}\n"],"mappings":";;;;;AAYA,SAAgB,UAAU;CACxB,MAAM,EAAE,WAAW,SAAS;CAE5B,OACE,qBAAC,eAAD,EAAA,UAAA,CACG,OAAO,IAAI,SAAU,EAAE,IAAI,OAAO,aAAa,QAAQ,GAAG,SAAS;EAClE,OACE,qBAAC,OAAD;GAAgB,GAAI;aAApB;IACE,qBAAC,OAAD;KAAK,WAAU;eAAf,CACG,SAAS,oBAAC,YAAD,EAAA,UAAa,MAAkB,CAAA,GACxC,eACC,oBAAC,kBAAD,EAAA,UAAmB,YAA8B,CAAA,CAEhD;;IACJ;IACD,oBAAC,YAAD,CAAa,CAAA;GACR;KATK,EASL;CAEX,CAAC,GACD,oBAAC,eAAD,CAAgB,CAAA,CACH,EAAA,CAAA;AAEnB"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
4
|
-
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
5
4
|
|
|
6
5
|
//#region src/components/ui/toggle-group.d.ts
|
|
7
6
|
declare const ToggleGroup: React.FC<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
8
7
|
variant?: "default" | "outline" | null | undefined;
|
|
9
8
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
10
|
-
} &
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string>) & {
|
|
11
10
|
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
12
11
|
}>;
|
|
13
12
|
declare const ToggleGroupItem: React.FC<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
14
13
|
variant?: "default" | "outline" | null | undefined;
|
|
15
14
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
16
|
-
} &
|
|
15
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
17
16
|
ref?: React.Ref<HTMLButtonElement> | undefined;
|
|
18
17
|
}>;
|
|
19
18
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-group.d.ts","names":[],"sources":["../../../../src/components/ui/toggle-group.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"toggle-group.d.ts","names":[],"sources":["../../../../src/components/ui/toggle-group.tsx"],"mappings":";;;;;cAiBM,WAAA,EAAW,KAAA,CAAA,EAAA,GAAA,IAAA,CAAA,oBAAA,CAAA,sBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA,YAAA,IAAA,CAAA,oBAAA,CAAA,wBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,cAAA,aAAA,YAAA,EAAA,KAAA;;;;;;cAkBX,eAAA,EAAe,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,oBAAA,CAAA,oBAAA,GAAA,KAAA,CAAA,aAAA,CAAA,iBAAA,YAAA,YAAA,EAAA,KAAA"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
2
|
import React from "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 ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
8
7
|
import { toggleVariants } from "./toggle.js";
|
|
9
|
-
|
|
10
8
|
//#region src/components/ui/toggle-group.tsx
|
|
11
9
|
const ToggleGroupContext = React.createContext({
|
|
12
10
|
size: "default",
|
|
@@ -38,7 +36,7 @@ const ToggleGroupItem = forwardRefIfNeeded(({ className, children, variant, size
|
|
|
38
36
|
});
|
|
39
37
|
});
|
|
40
38
|
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
41
|
-
|
|
42
39
|
//#endregion
|
|
43
40
|
export { ToggleGroup, ToggleGroupItem };
|
|
41
|
+
|
|
44
42
|
//# sourceMappingURL=toggle-group.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-group.js","names":[],"sources":["../../../../src/components/ui/toggle-group.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport * as ToggleGroupPrimitive from \"@radix-ui/react-toggle-group\";\nimport { VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"../../lib/utils\";\nimport { toggleVariants } from \"./toggle\";\n\nconst ToggleGroupContext = React.createContext<\n VariantProps<typeof toggleVariants>\n>({\n size: \"default\",\n variant: \"default\",\n});\n\nconst ToggleGroup = forwardRefIfNeeded<\n React.ElementRef<typeof ToggleGroupPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> &\n VariantProps<typeof toggleVariants>\n>(({ className, variant, size, children, ...props }, ref) => (\n <ToggleGroupPrimitive.Root\n ref={ref}\n className={cn(\"flex items-center justify-center gap-1\", className)}\n {...props}\n >\n <ToggleGroupContext.Provider value={{ variant, size }}>\n {children}\n </ToggleGroupContext.Provider>\n </ToggleGroupPrimitive.Root>\n));\n\nToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;\n\nconst ToggleGroupItem = forwardRefIfNeeded<\n React.ElementRef<typeof ToggleGroupPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> &\n VariantProps<typeof toggleVariants>\n>(({ className, children, variant, size, ...props }, ref) => {\n const context = React.useContext(ToggleGroupContext);\n\n return (\n <ToggleGroupPrimitive.Item\n ref={ref}\n className={cn(\n toggleVariants({\n variant: context.variant || variant,\n size: context.size || size,\n }),\n className\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n );\n});\n\nToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;\n\nexport { ToggleGroup, ToggleGroupItem };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"toggle-group.js","names":[],"sources":["../../../../src/components/ui/toggle-group.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport * as ToggleGroupPrimitive from \"@radix-ui/react-toggle-group\";\nimport { VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"../../lib/utils\";\nimport { toggleVariants } from \"./toggle\";\n\nconst ToggleGroupContext = React.createContext<\n VariantProps<typeof toggleVariants>\n>({\n size: \"default\",\n variant: \"default\",\n});\n\nconst ToggleGroup = forwardRefIfNeeded<\n React.ElementRef<typeof ToggleGroupPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> &\n VariantProps<typeof toggleVariants>\n>(({ className, variant, size, children, ...props }, ref) => (\n <ToggleGroupPrimitive.Root\n ref={ref}\n className={cn(\"flex items-center justify-center gap-1\", className)}\n {...props}\n >\n <ToggleGroupContext.Provider value={{ variant, size }}>\n {children}\n </ToggleGroupContext.Provider>\n </ToggleGroupPrimitive.Root>\n));\n\nToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;\n\nconst ToggleGroupItem = forwardRefIfNeeded<\n React.ElementRef<typeof ToggleGroupPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> &\n VariantProps<typeof toggleVariants>\n>(({ className, children, variant, size, ...props }, ref) => {\n const context = React.useContext(ToggleGroupContext);\n\n return (\n <ToggleGroupPrimitive.Item\n ref={ref}\n className={cn(\n toggleVariants({\n variant: context.variant || variant,\n size: context.size || size,\n }),\n className\n )}\n {...props}\n >\n {children}\n </ToggleGroupPrimitive.Item>\n );\n});\n\nToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;\n\nexport { ToggleGroup, ToggleGroupItem };\n"],"mappings":";;;;;;;;AAUA,MAAM,qBAAqB,MAAM,cAE/B;CACA,MAAM;CACN,SAAS;AACX,CAAC;AAED,MAAM,cAAc,oBAIjB,EAAE,WAAW,SAAS,MAAM,UAAU,GAAG,SAAS,QACnD,oBAAC,qBAAqB,MAAtB;CACO;CACL,WAAW,GAAG,0CAA0C,SAAS;CACjE,GAAI;WAEJ,oBAAC,mBAAmB,UAApB;EAA6B,OAAO;GAAE;GAAS;EAAK;EACjD;CAC0B,CAAA;AACJ,CAAA,CAC5B;AAED,YAAY,cAAc,qBAAqB,KAAK;AAEpD,MAAM,kBAAkB,oBAIrB,EAAE,WAAW,UAAU,SAAS,MAAM,GAAG,SAAS,QAAQ;CAC3D,MAAM,UAAU,MAAM,WAAW,kBAAkB;CAEnD,OACE,oBAAC,qBAAqB,MAAtB;EACO;EACL,WAAW,GACT,eAAe;GACb,SAAS,QAAQ,WAAW;GAC5B,MAAM,QAAQ,QAAQ;EACxB,CAAC,GACD,SACF;EACA,GAAI;EAEH;CACwB,CAAA;AAE/B,CAAC;AAED,gBAAgB,cAAc,qBAAqB,KAAK"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
4
|
-
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
5
4
|
|
|
6
5
|
//#region src/components/ui/toggle.d.ts
|
|
7
6
|
declare const toggleVariants: (props?: ({
|
|
8
7
|
variant?: "default" | "outline" | null | undefined;
|
|
9
8
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
10
|
-
} &
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
10
|
declare const Toggle: React.FC<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
12
11
|
variant?: "default" | "outline" | null | undefined;
|
|
13
12
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
14
|
-
} &
|
|
13
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
15
14
|
ref?: React.Ref<HTMLButtonElement> | undefined;
|
|
16
15
|
}>;
|
|
17
16
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.d.ts","names":[],"sources":["../../../../src/components/ui/toggle.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","names":[],"sources":["../../../../src/components/ui/toggle.tsx"],"mappings":";;;;;cASM,cAAA,GAAc,KAAA;;;;cAsBd,MAAA,EAAM,KAAA,CAAA,EAAA,CAAA,IAAA,CAAA,eAAA,CAAA,WAAA,GAAA,KAAA,CAAA,aAAA,CAAA,iBAAA,YAAA,YAAA,EAAA,KAAA"}
|
|
@@ -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 TogglePrimitive from "@radix-ui/react-toggle";
|
|
9
|
-
|
|
10
8
|
//#region src/components/ui/toggle.tsx
|
|
11
9
|
const toggleVariants = cva("stack-scope inline-flex items-center justify-center rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground", {
|
|
12
10
|
variants: {
|
|
@@ -35,7 +33,7 @@ const Toggle = forwardRefIfNeeded(({ className, variant, size, ...props }, ref)
|
|
|
35
33
|
...props
|
|
36
34
|
}));
|
|
37
35
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
38
|
-
|
|
39
36
|
//#endregion
|
|
40
37
|
export { Toggle, toggleVariants };
|
|
38
|
+
|
|
41
39
|
//# sourceMappingURL=toggle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.js","names":[],"sources":["../../../../src/components/ui/toggle.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport * as TogglePrimitive from \"@radix-ui/react-toggle\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst toggleVariants = cva(\n \"stack-scope inline-flex items-center justify-center rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground\",\n {\n variants: {\n variant: {\n default: \"bg-transparent\",\n outline:\n \"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground\",\n },\n size: {\n default: \"h-9 px-3\",\n sm: \"h-8 px-2\",\n lg: \"h-10 px-3\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n);\n\nconst Toggle = forwardRefIfNeeded<\n React.ElementRef<typeof TogglePrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root> &\n VariantProps<typeof toggleVariants>\n>(({ className, variant, size, ...props }, ref) => (\n <TogglePrimitive.Root\n ref={ref}\n className={cn(toggleVariants({ variant, size, className }))}\n {...props}\n />\n));\n\nToggle.displayName = TogglePrimitive.Root.displayName;\n\nexport { Toggle, toggleVariants };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"toggle.js","names":[],"sources":["../../../../src/components/ui/toggle.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport * as TogglePrimitive from \"@radix-ui/react-toggle\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst toggleVariants = cva(\n \"stack-scope inline-flex items-center justify-center rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground\",\n {\n variants: {\n variant: {\n default: \"bg-transparent\",\n outline:\n \"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground\",\n },\n size: {\n default: \"h-9 px-3\",\n sm: \"h-8 px-2\",\n lg: \"h-10 px-3\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n);\n\nconst Toggle = forwardRefIfNeeded<\n React.ElementRef<typeof TogglePrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root> &\n VariantProps<typeof toggleVariants>\n>(({ className, variant, size, ...props }, ref) => (\n <TogglePrimitive.Root\n ref={ref}\n className={cn(toggleVariants({ variant, size, className }))}\n {...props}\n />\n));\n\nToggle.displayName = TogglePrimitive.Root.displayName;\n\nexport { Toggle, toggleVariants };\n"],"mappings":";;;;;;;;AASA,MAAM,iBAAiB,IACrB,2TACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,SACE;EACJ;EACA,MAAM;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;EACN;CACF;CACA,iBAAiB;EACf,SAAS;EACT,MAAM;CACR;AACF,CACF;AAEA,MAAM,SAAS,oBAIZ,EAAE,WAAW,SAAS,MAAM,GAAG,SAAS,QACzC,oBAAC,gBAAgB,MAAjB;CACO;CACL,WAAW,GAAG,eAAe;EAAE;EAAS;EAAM;CAAU,CAAC,CAAC;CAC1D,GAAI;AACL,CAAA,CACF;AAED,OAAO,cAAc,gBAAgB,KAAK"}
|
|
@@ -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 * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
7
6
|
import { cn } from "../../lib/utils.js";
|
|
8
|
-
|
|
9
7
|
//#region src/components/ui/tooltip.tsx
|
|
10
8
|
const TooltipProvider = forwardRefIfNeeded((props, ref) => /* @__PURE__ */ jsx(TooltipPrimitive.Provider, {
|
|
11
9
|
delayDuration: 0,
|
|
@@ -22,7 +20,7 @@ const TooltipContent = forwardRefIfNeeded(({ className, sideOffset = 4, ...props
|
|
|
22
20
|
...props
|
|
23
21
|
}));
|
|
24
22
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
25
|
-
|
|
26
23
|
//#endregion
|
|
27
24
|
export { Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger };
|
|
25
|
+
|
|
28
26
|
//# sourceMappingURL=tooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.js","names":[],"sources":["../../../../src/components/ui/tooltip.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst TooltipProvider = forwardRefIfNeeded<\n void,\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider>\n>((props, ref) => (\n <TooltipPrimitive.Provider\n delayDuration={0}\n {...props}\n />\n));\nTooltipProvider.displayName = TooltipPrimitive.Provider.displayName;\n\nconst Tooltip = TooltipPrimitive.Root;\n\nconst TooltipTrigger = TooltipPrimitive.Trigger;\n\nconst TooltipPortal = TooltipPrimitive.Portal;\n\nconst TooltipContent = forwardRefIfNeeded<\n React.ElementRef<typeof TooltipPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n \"stack-scope z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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));\nTooltipContent.displayName = TooltipPrimitive.Content.displayName;\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipPortal, TooltipProvider };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tooltip.js","names":[],"sources":["../../../../src/components/ui/tooltip.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\nimport { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\";\n\nimport { cn } from \"../../lib/utils\";\n\nconst TooltipProvider = forwardRefIfNeeded<\n void,\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider>\n>((props, ref) => (\n <TooltipPrimitive.Provider\n delayDuration={0}\n {...props}\n />\n));\nTooltipProvider.displayName = TooltipPrimitive.Provider.displayName;\n\nconst Tooltip = TooltipPrimitive.Root;\n\nconst TooltipTrigger = TooltipPrimitive.Trigger;\n\nconst TooltipPortal = TooltipPrimitive.Portal;\n\nconst TooltipContent = forwardRefIfNeeded<\n React.ElementRef<typeof TooltipPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n \"stack-scope z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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));\nTooltipContent.displayName = TooltipPrimitive.Content.displayName;\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipPortal, TooltipProvider };\n"],"mappings":";;;;;;;AAQA,MAAM,kBAAkB,oBAGrB,OAAO,QACR,oBAAC,iBAAiB,UAAlB;CACE,eAAe;CACf,GAAI;AACL,CAAA,CACF;AACD,gBAAgB,cAAc,iBAAiB,SAAS;AAExD,MAAM,UAAU,iBAAiB;AAEjC,MAAM,iBAAiB,iBAAiB;AAExC,MAAM,gBAAgB,iBAAiB;AAEvC,MAAM,iBAAiB,oBAGpB,EAAE,WAAW,aAAa,GAAG,GAAG,SAAS,QAC1C,oBAAC,iBAAiB,SAAlB;CACO;CACO;CACZ,WAAW,GACT,iYACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,eAAe,cAAc,iBAAiB,QAAQ"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
4
3
|
|
|
5
4
|
//#region src/components/ui/typography.d.ts
|
|
6
5
|
declare const Typography: React.FC<React.HTMLAttributes<HTMLHeadingElement> & VariantProps<(props?: ({
|
|
7
6
|
type?: "div" | "h2" | "h3" | "label" | "p" | "h1" | "h4" | "footnote" | null | undefined;
|
|
8
|
-
variant?: "destructive" | "
|
|
9
|
-
} &
|
|
7
|
+
variant?: "destructive" | "success" | "secondary" | "primary" | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
10
9
|
ref?: React.Ref<HTMLHeadingElement> | undefined;
|
|
11
10
|
}>;
|
|
12
11
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.d.ts","names":[],"sources":["../../../../src/components/ui/typography.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"typography.d.ts","names":[],"sources":["../../../../src/components/ui/typography.tsx"],"mappings":";;;;cAgCM,UAAA,EAAU,KAAA,CAAA,EAAA,CAAA,KAAA,CAAA,cAAA,CAAA,kBAAA,IAAA,YAAA,EAAA,KAAA"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRefIfNeeded } from "@hexclave/shared/dist/utils/react";
|
|
4
4
|
import { cn } from "../../lib/utils.js";
|
|
5
5
|
import { cva } from "class-variance-authority";
|
|
6
|
-
|
|
7
6
|
//#region src/components/ui/typography.tsx
|
|
8
7
|
const typographyVariants = cva("stack-scope text-md", {
|
|
9
8
|
variants: {
|
|
@@ -41,7 +40,7 @@ const Typography = forwardRefIfNeeded(({ className, type, variant, ...props }, r
|
|
|
41
40
|
});
|
|
42
41
|
});
|
|
43
42
|
Typography.displayName = "Typography";
|
|
44
|
-
|
|
45
43
|
//#endregion
|
|
46
44
|
export { Typography };
|
|
45
|
+
|
|
47
46
|
//# sourceMappingURL=typography.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.js","names":[],"sources":["../../../../src/components/ui/typography.tsx"],"sourcesContent":["import { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport React from \"react\";\nimport { cn } from \"../../lib/utils\";\n\nconst typographyVariants = cva(\"stack-scope text-md\", {\n variants: {\n type: {\n h1: \"text-3xl font-bold\",\n h2: \"text-2xl font-semibold\",\n h3: \"text-xl font-medium\",\n h4: \"text-lg font-medium\",\n p: \"text-md\",\n label: \"text-sm\",\n footnote: \"text-xs\",\n div: \"text-md\",\n },\n variant: {\n primary: \"text-black dark:text-white\",\n secondary: \"text-zinc-600 dark:text-zinc-400\",\n destructive: \"text-destructive\",\n success: \"text-green-500\",\n },\n },\n defaultVariants: {\n type: \"p\",\n variant: \"primary\",\n },\n});\n\ntype TypographyProps = {} & React.HTMLAttributes<HTMLHeadingElement> & VariantProps<typeof typographyVariants>\n\nconst Typography = forwardRefIfNeeded<HTMLHeadingElement, TypographyProps>(\n ({ className, type, variant, ...props }, ref) => {\n const Comp = (type === 'footnote' || type === 'label' ? 'p' : type) || 'p';\n return (\n <Comp\n className={cn(typographyVariants({ type, variant, className }))}\n ref={ref}\n {...props}\n />\n );\n },\n);\nTypography.displayName = \"Typography\";\n\nexport { Typography };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"typography.js","names":[],"sources":["../../../../src/components/ui/typography.tsx"],"sourcesContent":["import { forwardRefIfNeeded } from \"@hexclave/shared/dist/utils/react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport React from \"react\";\nimport { cn } from \"../../lib/utils\";\n\nconst typographyVariants = cva(\"stack-scope text-md\", {\n variants: {\n type: {\n h1: \"text-3xl font-bold\",\n h2: \"text-2xl font-semibold\",\n h3: \"text-xl font-medium\",\n h4: \"text-lg font-medium\",\n p: \"text-md\",\n label: \"text-sm\",\n footnote: \"text-xs\",\n div: \"text-md\",\n },\n variant: {\n primary: \"text-black dark:text-white\",\n secondary: \"text-zinc-600 dark:text-zinc-400\",\n destructive: \"text-destructive\",\n success: \"text-green-500\",\n },\n },\n defaultVariants: {\n type: \"p\",\n variant: \"primary\",\n },\n});\n\ntype TypographyProps = {} & React.HTMLAttributes<HTMLHeadingElement> & VariantProps<typeof typographyVariants>\n\nconst Typography = forwardRefIfNeeded<HTMLHeadingElement, TypographyProps>(\n ({ className, type, variant, ...props }, ref) => {\n const Comp = (type === 'footnote' || type === 'label' ? 'p' : type) || 'p';\n return (\n <Comp\n className={cn(typographyVariants({ type, variant, className }))}\n ref={ref}\n {...props}\n />\n );\n },\n);\nTypography.displayName = \"Typography\";\n\nexport { Typography };\n"],"mappings":";;;;;;AAKA,MAAM,qBAAqB,IAAI,uBAAuB;CACpD,UAAU;EACR,MAAM;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,GAAG;GACH,OAAO;GACP,UAAU;GACV,KAAK;EACP;EACA,SAAS;GACP,SAAS;GACT,WAAW;GACX,aAAa;GACb,SAAS;EACX;CACF;CACA,iBAAiB;EACf,MAAM;EACN,SAAS;CACX;AACF,CAAC;AAID,MAAM,aAAa,oBAChB,EAAE,WAAW,MAAM,SAAS,GAAG,SAAS,QAAQ;CAE/C,OACE,qBAFY,SAAS,cAAc,SAAS,UAAU,MAAM,SAAS,KAErE;EACE,WAAW,GAAG,mBAAmB;GAAE;GAAM;GAAS;EAAU,CAAC,CAAC;EACzD;EACL,GAAI;CACL,CAAA;AAEL,CACF;AACA,WAAW,cAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ToastActionElement, ToastProps } from "./toast";
|
|
2
|
+
import { ToastActionElement, ToastProps } from "./toast.js";
|
|
3
3
|
|
|
4
4
|
//#region src/components/ui/use-toast.d.ts
|
|
5
5
|
type ToasterToast = ToastProps & {
|
|
@@ -32,10 +32,10 @@ type State = {
|
|
|
32
32
|
toasts: ToasterToast[];
|
|
33
33
|
};
|
|
34
34
|
declare const reducer: (state: State, action: Action) => State;
|
|
35
|
-
type Toast = Omit<ToasterToast, "id">;
|
|
35
|
+
type Toast$1 = Omit<ToasterToast, "id">;
|
|
36
36
|
declare function toast({
|
|
37
37
|
...props
|
|
38
|
-
}: Toast): {
|
|
38
|
+
}: Toast$1): {
|
|
39
39
|
id: string;
|
|
40
40
|
dismiss: () => void;
|
|
41
41
|
update: (props: ToasterToast) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-toast.d.ts","names":[],"sources":["../../../../src/components/ui/use-toast.tsx"],"mappings":";;;;KAaK,YAAA,GAAe,UAAA;EAClB,EAAA;EACA,KAAA,GAAQ,KAAA,CAAM,SAAA;EACd,WAAA,GAAc,KAAA,CAAM,SAAA;EACpB,MAAA,GAAS,kBAAA;AAAA;AAAA,cAGL,WAAA;EAAA;;;;;KAcD,UAAA,UAAoB,
|
|
1
|
+
{"version":3,"file":"use-toast.d.ts","names":[],"sources":["../../../../src/components/ui/use-toast.tsx"],"mappings":";;;;KAaK,YAAA,GAAe,UAAA;EAClB,EAAA;EACA,KAAA,GAAQ,KAAA,CAAM,SAAA;EACd,WAAA,GAAc,KAAA,CAAM,SAAA;EACpB,MAAA,GAAS,kBAAA;AAAA;AAAA,cAGL,WAAA;EAAA;;;;;KAcD,UAAA,UAAoB,WAAW;AAAA,KAE/B,MAAA;EAEC,IAAA,EAAM,UAAA;EACN,KAAA,EAAO,YAAA;AAAA;EAGP,IAAA,EAAM,UAAA;EACN,KAAA,EAAO,OAAA,CAAQ,YAAA;AAAA;EAGf,IAAA,EAAM,UAAA;EACN,OAAA,GAAU,YAAA;AAAA;EAGV,IAAA,EAAM,UAAA;EACN,OAAA,GAAU,YAAA;AAAA;AAAA,KAGX,KAAA;EACH,MAAA,EAAQ,YAAY;AAAA;AAAA,cAqBT,OAAA,GAAW,KAAA,EAAO,KAAA,EAAO,MAAA,EAAQ,MAAA,KAAS,KAAA;AAAA,KAmElD,OAAA,GAAQ,IAAI,CAAC,YAAA;AAAA,iBAET,KAAA;EAAA,GAAW;AAAA,GAAS,OAAA;;;kBAGJ,YAAY;AAAA;AAAA,iBA0B5B,QAAA;gBAAQ,KAAA;;UAvHP,YAAY;AAAA"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
2
|
import React from "react";
|
|
4
|
-
|
|
5
3
|
//#region src/components/ui/use-toast.tsx
|
|
6
4
|
const TOAST_LIMIT = 1;
|
|
7
5
|
const TOAST_REMOVE_DELAY = 1e6;
|
|
@@ -116,7 +114,7 @@ function useToast() {
|
|
|
116
114
|
})
|
|
117
115
|
};
|
|
118
116
|
}
|
|
119
|
-
|
|
120
117
|
//#endregion
|
|
121
118
|
export { reducer, toast, useToast };
|
|
119
|
+
|
|
122
120
|
//# sourceMappingURL=use-toast.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-toast.js","names":[],"sources":["../../../../src/components/ui/use-toast.tsx"],"sourcesContent":["\"use client\";\n\n// Inspired by react-hot-toast library\nimport React from \"react\";\n\nimport type {\n ToastActionElement,\n ToastProps,\n} from \"./toast\";\n\nconst TOAST_LIMIT = 1;\nconst TOAST_REMOVE_DELAY = 1000000;\n\ntype ToasterToast = ToastProps & {\n id: string,\n title?: React.ReactNode,\n description?: React.ReactNode,\n action?: ToastActionElement,\n}\n\nconst actionTypes = {\n ADD_TOAST: \"ADD_TOAST\",\n UPDATE_TOAST: \"UPDATE_TOAST\",\n DISMISS_TOAST: \"DISMISS_TOAST\",\n REMOVE_TOAST: \"REMOVE_TOAST\",\n} as const;\n\nlet count = 0;\n\nfunction genId() {\n count = (count + 1) % Number.MAX_SAFE_INTEGER;\n return count.toString();\n}\n\ntype ActionType = typeof actionTypes\n\ntype Action =\n | {\n type: ActionType[\"ADD_TOAST\"],\n toast: ToasterToast,\n }\n | {\n type: ActionType[\"UPDATE_TOAST\"],\n toast: Partial<ToasterToast>,\n }\n | {\n type: ActionType[\"DISMISS_TOAST\"],\n toastId?: ToasterToast[\"id\"],\n }\n | {\n type: ActionType[\"REMOVE_TOAST\"],\n toastId?: ToasterToast[\"id\"],\n }\n\ntype State = {\n toasts: ToasterToast[],\n}\n\nconst toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>();\n\nconst addToRemoveQueue = (toastId: string) => {\n if (toastTimeouts.has(toastId)) {\n return;\n }\n\n const timeout = setTimeout(() => {\n toastTimeouts.delete(toastId);\n dispatch({\n type: \"REMOVE_TOAST\",\n toastId: toastId,\n });\n }, TOAST_REMOVE_DELAY);\n\n toastTimeouts.set(toastId, timeout);\n};\n\nexport const reducer = (state: State, action: Action): State => {\n switch (action.type) {\n case \"ADD_TOAST\": {\n return {\n ...state,\n toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),\n };\n }\n case \"UPDATE_TOAST\": {\n return {\n ...state,\n toasts: state.toasts.map((t) =>\n t.id === action.toast.id ? { ...t, ...action.toast } : t\n ),\n };\n }\n case \"DISMISS_TOAST\": {\n const { toastId } = action;\n\n // ! Side effects ! - This could be extracted into a dismissToast() action,\n // but I'll keep it here for simplicity\n if (toastId) {\n addToRemoveQueue(toastId);\n } else {\n state.toasts.forEach((toast) => {\n addToRemoveQueue(toast.id);\n });\n }\n\n return {\n ...state,\n toasts: state.toasts.map((t) =>\n t.id === toastId || toastId === undefined\n ? {\n ...t,\n open: false,\n }\n : t\n ),\n };\n }\n case \"REMOVE_TOAST\": {\n if (action.toastId === undefined) {\n return {\n ...state,\n toasts: [],\n };\n }\n return {\n ...state,\n toasts: state.toasts.filter((t) => t.id !== action.toastId),\n };\n }\n }\n};\n\nconst listeners: Array<(state: State) => void> = [];\n\nlet memoryState: State = { toasts: [] };\n\nfunction dispatch(action: Action) {\n memoryState = reducer(memoryState, action);\n listeners.forEach((listener) => {\n listener(memoryState);\n });\n}\n\ntype Toast = Omit<ToasterToast, \"id\">\n\nfunction toast({ ...props }: Toast) {\n const id = genId();\n\n const update = (props: ToasterToast) =>\n dispatch({\n type: \"UPDATE_TOAST\",\n toast: { ...props, id },\n });\n const dismiss = () => dispatch({ type: \"DISMISS_TOAST\", toastId: id });\n\n dispatch({\n type: \"ADD_TOAST\",\n toast: {\n ...props,\n id,\n open: true,\n onOpenChange: (open) => {\n if (!open) dismiss();\n },\n },\n });\n\n return {\n id: id,\n dismiss,\n update,\n };\n}\n\nfunction useToast() {\n const [state, setState] = React.useState<State>(memoryState);\n\n React.useEffect(() => {\n listeners.push(setState);\n return () => {\n const index = listeners.indexOf(setState);\n if (index > -1) {\n listeners.splice(index, 1);\n }\n };\n }, [state]);\n\n return {\n ...state,\n toast,\n dismiss: (toastId?: string) => dispatch({ type: \"DISMISS_TOAST\", toastId }),\n };\n}\n\nexport { useToast, toast };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-toast.js","names":[],"sources":["../../../../src/components/ui/use-toast.tsx"],"sourcesContent":["\"use client\";\n\n// Inspired by react-hot-toast library\nimport React from \"react\";\n\nimport type {\n ToastActionElement,\n ToastProps,\n} from \"./toast\";\n\nconst TOAST_LIMIT = 1;\nconst TOAST_REMOVE_DELAY = 1000000;\n\ntype ToasterToast = ToastProps & {\n id: string,\n title?: React.ReactNode,\n description?: React.ReactNode,\n action?: ToastActionElement,\n}\n\nconst actionTypes = {\n ADD_TOAST: \"ADD_TOAST\",\n UPDATE_TOAST: \"UPDATE_TOAST\",\n DISMISS_TOAST: \"DISMISS_TOAST\",\n REMOVE_TOAST: \"REMOVE_TOAST\",\n} as const;\n\nlet count = 0;\n\nfunction genId() {\n count = (count + 1) % Number.MAX_SAFE_INTEGER;\n return count.toString();\n}\n\ntype ActionType = typeof actionTypes\n\ntype Action =\n | {\n type: ActionType[\"ADD_TOAST\"],\n toast: ToasterToast,\n }\n | {\n type: ActionType[\"UPDATE_TOAST\"],\n toast: Partial<ToasterToast>,\n }\n | {\n type: ActionType[\"DISMISS_TOAST\"],\n toastId?: ToasterToast[\"id\"],\n }\n | {\n type: ActionType[\"REMOVE_TOAST\"],\n toastId?: ToasterToast[\"id\"],\n }\n\ntype State = {\n toasts: ToasterToast[],\n}\n\nconst toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>();\n\nconst addToRemoveQueue = (toastId: string) => {\n if (toastTimeouts.has(toastId)) {\n return;\n }\n\n const timeout = setTimeout(() => {\n toastTimeouts.delete(toastId);\n dispatch({\n type: \"REMOVE_TOAST\",\n toastId: toastId,\n });\n }, TOAST_REMOVE_DELAY);\n\n toastTimeouts.set(toastId, timeout);\n};\n\nexport const reducer = (state: State, action: Action): State => {\n switch (action.type) {\n case \"ADD_TOAST\": {\n return {\n ...state,\n toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),\n };\n }\n case \"UPDATE_TOAST\": {\n return {\n ...state,\n toasts: state.toasts.map((t) =>\n t.id === action.toast.id ? { ...t, ...action.toast } : t\n ),\n };\n }\n case \"DISMISS_TOAST\": {\n const { toastId } = action;\n\n // ! Side effects ! - This could be extracted into a dismissToast() action,\n // but I'll keep it here for simplicity\n if (toastId) {\n addToRemoveQueue(toastId);\n } else {\n state.toasts.forEach((toast) => {\n addToRemoveQueue(toast.id);\n });\n }\n\n return {\n ...state,\n toasts: state.toasts.map((t) =>\n t.id === toastId || toastId === undefined\n ? {\n ...t,\n open: false,\n }\n : t\n ),\n };\n }\n case \"REMOVE_TOAST\": {\n if (action.toastId === undefined) {\n return {\n ...state,\n toasts: [],\n };\n }\n return {\n ...state,\n toasts: state.toasts.filter((t) => t.id !== action.toastId),\n };\n }\n }\n};\n\nconst listeners: Array<(state: State) => void> = [];\n\nlet memoryState: State = { toasts: [] };\n\nfunction dispatch(action: Action) {\n memoryState = reducer(memoryState, action);\n listeners.forEach((listener) => {\n listener(memoryState);\n });\n}\n\ntype Toast = Omit<ToasterToast, \"id\">\n\nfunction toast({ ...props }: Toast) {\n const id = genId();\n\n const update = (props: ToasterToast) =>\n dispatch({\n type: \"UPDATE_TOAST\",\n toast: { ...props, id },\n });\n const dismiss = () => dispatch({ type: \"DISMISS_TOAST\", toastId: id });\n\n dispatch({\n type: \"ADD_TOAST\",\n toast: {\n ...props,\n id,\n open: true,\n onOpenChange: (open) => {\n if (!open) dismiss();\n },\n },\n });\n\n return {\n id: id,\n dismiss,\n update,\n };\n}\n\nfunction useToast() {\n const [state, setState] = React.useState<State>(memoryState);\n\n React.useEffect(() => {\n listeners.push(setState);\n return () => {\n const index = listeners.indexOf(setState);\n if (index > -1) {\n listeners.splice(index, 1);\n }\n };\n }, [state]);\n\n return {\n ...state,\n toast,\n dismiss: (toastId?: string) => dispatch({ type: \"DISMISS_TOAST\", toastId }),\n };\n}\n\nexport { useToast, toast };\n"],"mappings":";;;AAUA,MAAM,cAAc;AACpB,MAAM,qBAAqB;AAgB3B,IAAI,QAAQ;AAEZ,SAAS,QAAQ;CACf,SAAS,QAAQ,KAAK,OAAO;CAC7B,OAAO,MAAM,SAAS;AACxB;AA0BA,MAAM,gCAAgB,IAAI,IAA2C;AAErE,MAAM,oBAAoB,YAAoB;CAC5C,IAAI,cAAc,IAAI,OAAO,GAC3B;CAGF,MAAM,UAAU,iBAAiB;EAC/B,cAAc,OAAO,OAAO;EAC5B,SAAS;GACP,MAAM;GACG;EACX,CAAC;CACH,GAAG,kBAAkB;CAErB,cAAc,IAAI,SAAS,OAAO;AACpC;AAEA,MAAa,WAAW,OAAc,WAA0B;CAC9D,QAAQ,OAAO,MAAf;EACE,KAAK,aACH,OAAO;GACL,GAAG;GACH,QAAQ,CAAC,OAAO,OAAO,GAAG,MAAM,MAAM,CAAC,CAAC,MAAM,GAAG,WAAW;EAC9D;EAEF,KAAK,gBACH,OAAO;GACL,GAAG;GACH,QAAQ,MAAM,OAAO,KAAK,MACxB,EAAE,OAAO,OAAO,MAAM,KAAK;IAAE,GAAG;IAAG,GAAG,OAAO;GAAM,IAAI,CACzD;EACF;EAEF,KAAK,iBAAiB;GACpB,MAAM,EAAE,YAAY;GAIpB,IAAI,SACF,iBAAiB,OAAO;QAExB,MAAM,OAAO,SAAS,UAAU;IAC9B,iBAAiB,MAAM,EAAE;GAC3B,CAAC;GAGH,OAAO;IACL,GAAG;IACH,QAAQ,MAAM,OAAO,KAAK,MACxB,EAAE,OAAO,WAAW,YAAY,KAAA,IAC5B;KACA,GAAG;KACH,MAAM;IACR,IACE,CACN;GACF;EACF;EACA,KAAK;GACH,IAAI,OAAO,YAAY,KAAA,GACrB,OAAO;IACL,GAAG;IACH,QAAQ,CAAC;GACX;GAEF,OAAO;IACL,GAAG;IACH,QAAQ,MAAM,OAAO,QAAQ,MAAM,EAAE,OAAO,OAAO,OAAO;GAC5D;CAEJ;AACF;AAEA,MAAM,YAA2C,CAAC;AAElD,IAAI,cAAqB,EAAE,QAAQ,CAAC,EAAE;AAEtC,SAAS,SAAS,QAAgB;CAChC,cAAc,QAAQ,aAAa,MAAM;CACzC,UAAU,SAAS,aAAa;EAC9B,SAAS,WAAW;CACtB,CAAC;AACH;AAIA,SAAS,MAAM,EAAE,GAAG,SAAgB;CAClC,MAAM,KAAK,MAAM;CAEjB,MAAM,UAAU,UACd,SAAS;EACP,MAAM;EACN,OAAO;GAAE,GAAG;GAAO;EAAG;CACxB,CAAC;CACH,MAAM,gBAAgB,SAAS;EAAE,MAAM;EAAiB,SAAS;CAAG,CAAC;CAErE,SAAS;EACP,MAAM;EACN,OAAO;GACL,GAAG;GACH;GACA,MAAM;GACN,eAAe,SAAS;IACtB,IAAI,CAAC,MAAM,QAAQ;GACrB;EACF;CACF,CAAC;CAED,OAAO;EACD;EACJ;EACA;CACF;AACF;AAEA,SAAS,WAAW;CAClB,MAAM,CAAC,OAAO,YAAY,MAAM,SAAgB,WAAW;CAE3D,MAAM,gBAAgB;EACpB,UAAU,KAAK,QAAQ;EACvB,aAAa;GACX,MAAM,QAAQ,UAAU,QAAQ,QAAQ;GACxC,IAAI,QAAQ,IACV,UAAU,OAAO,OAAO,CAAC;EAE7B;CACF,GAAG,CAAC,KAAK,CAAC;CAEV,OAAO;EACL,GAAG;EACH;EACA,UAAU,YAAqB,SAAS;GAAE,MAAM;GAAiB;EAAQ,CAAC;CAC5E;AACF"}
|