@constructive-io/ui 0.11.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{ai-CiaH2sfF.js → ai-B7XNnqYL.js} +1674 -228
- package/dist/ai-B7XNnqYL.js.map +1 -0
- package/dist/{ai-lAkichk8.cjs → ai-DJ-YPj8c.cjs} +1768 -226
- package/dist/ai-DJ-YPj8c.cjs.map +1 -0
- package/dist/{alert-BXuP0ayz.d.ts → alert-CJ4Qyk6W.d.cts} +4 -2
- package/dist/{alert-BXuP0ayz.d.cts → alert-CJ4Qyk6W.d.ts} +4 -2
- package/dist/components/accordion.cjs +60 -0
- package/dist/components/accordion.cjs.map +1 -0
- package/dist/components/accordion.d.cts +14 -0
- package/dist/components/accordion.d.ts +14 -0
- package/dist/components/accordion.js +54 -0
- package/dist/components/accordion.js.map +1 -0
- package/dist/components/ai/index.cjs +17 -1
- package/dist/components/ai/index.d.cts +2 -2
- package/dist/components/ai/index.d.ts +2 -2
- package/dist/components/ai/index.js +2 -2
- package/dist/components/alert-dialog.cjs +17 -8
- package/dist/components/alert-dialog.cjs.map +1 -1
- package/dist/components/alert-dialog.d.cts +1 -1
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +17 -8
- package/dist/components/alert-dialog.js.map +1 -1
- package/dist/components/alert.cjs +18 -8
- package/dist/components/alert.cjs.map +1 -1
- package/dist/components/alert.d.cts +2 -2
- package/dist/components/alert.d.ts +2 -2
- package/dist/components/alert.js +18 -9
- package/dist/components/alert.js.map +1 -1
- package/dist/components/autocomplete.cjs +9 -5
- package/dist/components/autocomplete.cjs.map +1 -1
- package/dist/components/autocomplete.js +9 -5
- package/dist/components/autocomplete.js.map +1 -1
- package/dist/components/avatar.cjs +9 -3
- package/dist/components/avatar.cjs.map +1 -1
- package/dist/components/avatar.d.cts +6 -0
- package/dist/components/avatar.d.ts +6 -0
- package/dist/components/avatar.js +9 -3
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/badge.cjs +25 -18
- package/dist/components/badge.cjs.map +1 -1
- package/dist/components/badge.js +25 -18
- package/dist/components/badge.js.map +1 -1
- package/dist/components/breadcrumb.cjs +9 -6
- package/dist/components/breadcrumb.cjs.map +1 -1
- package/dist/components/breadcrumb.js +9 -6
- package/dist/components/breadcrumb.js.map +1 -1
- package/dist/components/button-group.cjs +57 -0
- package/dist/components/button-group.cjs.map +1 -0
- package/dist/components/button-group.d.cts +16 -0
- package/dist/components/button-group.d.ts +16 -0
- package/dist/components/button-group.js +51 -0
- package/dist/components/button-group.js.map +1 -0
- package/dist/components/button.cjs +59 -15
- package/dist/components/button.cjs.map +1 -1
- package/dist/components/button.d.cts +32 -2
- package/dist/components/button.d.ts +32 -2
- package/dist/components/button.js +59 -15
- package/dist/components/button.js.map +1 -1
- package/dist/components/calendar-rac.cjs +14 -8
- package/dist/components/calendar-rac.cjs.map +1 -1
- package/dist/components/calendar-rac.js +14 -8
- package/dist/components/calendar-rac.js.map +1 -1
- package/dist/components/card.cjs +35 -23
- package/dist/components/card.cjs.map +1 -1
- package/dist/components/card.d.cts +3 -2
- package/dist/components/card.d.ts +3 -2
- package/dist/components/card.js +35 -23
- package/dist/components/card.js.map +1 -1
- package/dist/components/checkbox.cjs +5 -5
- package/dist/components/checkbox.cjs.map +1 -1
- package/dist/components/checkbox.js +5 -5
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/collapsible.cjs +3 -3
- package/dist/components/collapsible.cjs.map +1 -1
- package/dist/components/collapsible.js +3 -3
- package/dist/components/collapsible.js.map +1 -1
- package/dist/components/combobox.cjs +24 -12
- package/dist/components/combobox.cjs.map +1 -1
- package/dist/components/combobox.d.cts +2 -1
- package/dist/components/combobox.d.ts +2 -1
- package/dist/components/combobox.js +24 -12
- package/dist/components/combobox.js.map +1 -1
- package/dist/components/command.cjs +25 -14
- package/dist/components/command.cjs.map +1 -1
- package/dist/components/command.d.cts +6 -2
- package/dist/components/command.d.ts +6 -2
- package/dist/components/command.js +25 -14
- package/dist/components/command.js.map +1 -1
- package/dist/components/dialog.cjs +22 -12
- package/dist/components/dialog.cjs.map +1 -1
- package/dist/components/dialog.d.cts +5 -2
- package/dist/components/dialog.d.ts +5 -2
- package/dist/components/dialog.js +22 -12
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/dock.cjs +50 -27
- package/dist/components/dock.cjs.map +1 -1
- package/dist/components/dock.d.cts +1 -1
- package/dist/components/dock.d.ts +1 -1
- package/dist/components/dock.js +51 -28
- package/dist/components/dock.js.map +1 -1
- package/dist/components/drawer.cjs +22 -14
- package/dist/components/drawer.cjs.map +1 -1
- package/dist/components/drawer.js +22 -14
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/dropdown-menu.cjs +34 -28
- package/dist/components/dropdown-menu.cjs.map +1 -1
- package/dist/components/dropdown-menu.d.cts +2 -2
- package/dist/components/dropdown-menu.d.ts +2 -2
- package/dist/components/dropdown-menu.js +52 -46
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/empty.cjs +4 -4
- package/dist/components/empty.cjs.map +1 -1
- package/dist/components/empty.js +4 -4
- package/dist/components/empty.js.map +1 -1
- package/dist/components/field.cjs +33 -33
- package/dist/components/field.cjs.map +1 -1
- package/dist/components/field.d.cts +1 -1
- package/dist/components/field.d.ts +1 -1
- package/dist/components/field.js +34 -34
- package/dist/components/field.js.map +1 -1
- package/dist/components/flickering-grid.cjs +1 -1
- package/dist/components/flickering-grid.cjs.map +1 -1
- package/dist/components/flickering-grid.js +1 -1
- package/dist/components/flickering-grid.js.map +1 -1
- package/dist/components/flow-zoom-panel.cjs +10 -5
- package/dist/components/flow-zoom-panel.cjs.map +1 -1
- package/dist/components/flow-zoom-panel.d.cts +8 -1
- package/dist/components/flow-zoom-panel.d.ts +8 -1
- package/dist/components/flow-zoom-panel.js +10 -5
- package/dist/components/flow-zoom-panel.js.map +1 -1
- package/dist/components/form-control.cjs +12 -8
- package/dist/components/form-control.cjs.map +1 -1
- package/dist/components/form-control.js +12 -8
- package/dist/components/form-control.js.map +1 -1
- package/dist/components/form.cjs +5 -5
- package/dist/components/form.cjs.map +1 -1
- package/dist/components/form.js +5 -5
- package/dist/components/form.js.map +1 -1
- package/dist/components/input-group.cjs +13 -7
- package/dist/components/input-group.cjs.map +1 -1
- package/dist/components/input-group.d.cts +2 -2
- package/dist/components/input-group.d.ts +2 -2
- package/dist/components/input-group.js +11 -7
- package/dist/components/input-group.js.map +1 -1
- package/dist/components/input-otp.cjs +252 -0
- package/dist/components/input-otp.cjs.map +1 -0
- package/dist/components/input-otp.d.cts +44 -0
- package/dist/components/input-otp.d.ts +44 -0
- package/dist/components/input-otp.js +251 -0
- package/dist/components/input-otp.js.map +1 -0
- package/dist/components/input.cjs +10 -4
- package/dist/components/input.cjs.map +1 -1
- package/dist/components/input.d.cts +11 -2
- package/dist/components/input.d.ts +11 -2
- package/dist/components/input.js +10 -4
- package/dist/components/input.js.map +1 -1
- package/dist/components/item.cjs +151 -0
- package/dist/components/item.cjs.map +1 -0
- package/dist/components/item.d.cts +37 -0
- package/dist/components/item.d.ts +37 -0
- package/dist/components/item.js +137 -0
- package/dist/components/item.js.map +1 -0
- package/dist/components/json-input.cjs +4 -143
- package/dist/components/json-input.d.cts +6 -4
- package/dist/components/json-input.d.ts +6 -4
- package/dist/components/json-input.js +2 -140
- package/dist/components/kbd.cjs +35 -0
- package/dist/components/kbd.cjs.map +1 -0
- package/dist/components/kbd.d.cts +16 -0
- package/dist/components/kbd.d.ts +16 -0
- package/dist/components/kbd.js +31 -0
- package/dist/components/kbd.js.map +1 -0
- package/dist/components/label.cjs +3 -3
- package/dist/components/label.cjs.map +1 -1
- package/dist/components/label.js +3 -3
- package/dist/components/label.js.map +1 -1
- package/dist/components/motion-grid.cjs +20 -8
- package/dist/components/motion-grid.cjs.map +1 -1
- package/dist/components/motion-grid.js +20 -8
- package/dist/components/motion-grid.js.map +1 -1
- package/dist/components/multi-select.cjs +77 -67
- package/dist/components/multi-select.cjs.map +1 -1
- package/dist/components/multi-select.js +77 -67
- package/dist/components/multi-select.js.map +1 -1
- package/dist/components/page-header.cjs +12 -9
- package/dist/components/page-header.cjs.map +1 -1
- package/dist/components/page-header.js +12 -9
- package/dist/components/page-header.js.map +1 -1
- package/dist/components/pagination.cjs +10 -4
- package/dist/components/pagination.cjs.map +1 -1
- package/dist/components/pagination.d.cts +1 -1
- package/dist/components/pagination.d.ts +1 -1
- package/dist/components/pagination.js +10 -4
- package/dist/components/pagination.js.map +1 -1
- package/dist/components/phone-input.cjs +228 -0
- package/dist/components/phone-input.cjs.map +1 -0
- package/dist/components/phone-input.d.cts +42 -0
- package/dist/components/phone-input.d.ts +42 -0
- package/dist/components/phone-input.js +220 -0
- package/dist/components/phone-input.js.map +1 -0
- package/dist/components/popover.cjs +5 -4
- package/dist/components/popover.cjs.map +1 -1
- package/dist/components/popover.js +5 -4
- package/dist/components/popover.js.map +1 -1
- package/dist/components/progress.cjs +20 -3
- package/dist/components/progress.cjs.map +1 -1
- package/dist/components/progress.d.cts +1 -1
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/progress.js +20 -3
- package/dist/components/progress.js.map +1 -1
- package/dist/components/progressive-blur-scroll-container.cjs +2 -2
- package/dist/components/progressive-blur-scroll-container.cjs.map +1 -1
- package/dist/components/progressive-blur-scroll-container.d.cts +1 -1
- package/dist/components/progressive-blur-scroll-container.d.ts +1 -1
- package/dist/components/progressive-blur-scroll-container.js +2 -2
- package/dist/components/progressive-blur-scroll-container.js.map +1 -1
- package/dist/components/progressive-blur.cjs +3 -2
- package/dist/components/progressive-blur.cjs.map +1 -1
- package/dist/components/progressive-blur.js +3 -2
- package/dist/components/progressive-blur.js.map +1 -1
- package/dist/components/radio-group.cjs +2 -2
- package/dist/components/radio-group.cjs.map +1 -1
- package/dist/components/radio-group.js +2 -2
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/record-picker.cjs +1 -1
- package/dist/components/record-picker.js +1 -1
- package/dist/components/resizable.cjs +2 -2
- package/dist/components/resizable.cjs.map +1 -1
- package/dist/components/resizable.js +2 -2
- package/dist/components/resizable.js.map +1 -1
- package/dist/components/responsive-diagram.cjs +43 -21
- package/dist/components/responsive-diagram.cjs.map +1 -1
- package/dist/components/responsive-diagram.d.cts +7 -1
- package/dist/components/responsive-diagram.d.ts +7 -1
- package/dist/components/responsive-diagram.js +43 -21
- package/dist/components/responsive-diagram.js.map +1 -1
- package/dist/components/scroll-area.cjs +2 -2
- package/dist/components/scroll-area.cjs.map +1 -1
- package/dist/components/scroll-area.js +2 -2
- package/dist/components/scroll-area.js.map +1 -1
- package/dist/components/select.cjs +84 -20
- package/dist/components/select.cjs.map +1 -1
- package/dist/components/select.d.cts +12 -7
- package/dist/components/select.d.ts +12 -7
- package/dist/components/select.js +84 -20
- package/dist/components/select.js.map +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.cjs.map +1 -1
- package/dist/components/separator.d.cts +11 -2
- package/dist/components/separator.d.ts +11 -2
- package/dist/components/separator.js +1 -1
- package/dist/components/separator.js.map +1 -1
- package/dist/components/sheet.cjs +1 -1
- package/dist/components/sheet.d.cts +11 -5
- package/dist/components/sheet.d.ts +12 -6
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar.cjs +2 -1
- package/dist/components/sidebar.d.cts +7 -6
- package/dist/components/sidebar.d.ts +7 -6
- package/dist/components/sidebar.js +2 -1
- package/dist/components/slider.cjs +47 -0
- package/dist/components/slider.cjs.map +1 -0
- package/dist/components/slider.d.cts +8 -0
- package/dist/components/slider.d.ts +8 -0
- package/dist/components/slider.js +44 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/sonner.cjs +15 -4
- package/dist/components/sonner.cjs.map +1 -1
- package/dist/components/sonner.d.cts +10 -1
- package/dist/components/sonner.d.ts +10 -1
- package/dist/components/sonner.js +16 -5
- package/dist/components/sonner.js.map +1 -1
- package/dist/components/spinner.cjs +25 -0
- package/dist/components/spinner.cjs.map +1 -0
- package/dist/components/spinner.d.cts +16 -0
- package/dist/components/spinner.d.ts +16 -0
- package/dist/components/spinner.js +22 -0
- package/dist/components/spinner.js.map +1 -0
- package/dist/components/stack/index.cjs +1 -1
- package/dist/components/stack/index.js +1 -1
- package/dist/components/stepper.cjs +23 -17
- package/dist/components/stepper.cjs.map +1 -1
- package/dist/components/stepper.d.cts +2 -2
- package/dist/components/stepper.d.ts +2 -2
- package/dist/components/stepper.js +23 -17
- package/dist/components/stepper.js.map +1 -1
- package/dist/components/switch.cjs +5 -5
- package/dist/components/switch.cjs.map +1 -1
- package/dist/components/switch.js +5 -5
- package/dist/components/switch.js.map +1 -1
- package/dist/components/table.cjs +26 -7
- package/dist/components/table.cjs.map +1 -1
- package/dist/components/table.d.cts +20 -2
- package/dist/components/table.d.ts +20 -2
- package/dist/components/table.js +26 -8
- package/dist/components/table.js.map +1 -1
- package/dist/components/tabs.cjs +61 -8
- package/dist/components/tabs.cjs.map +1 -1
- package/dist/components/tabs.d.cts +13 -2
- package/dist/components/tabs.d.ts +13 -2
- package/dist/components/tabs.js +63 -11
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/tags.cjs +10 -5
- package/dist/components/tags.cjs.map +1 -1
- package/dist/components/tags.d.cts +1 -1
- package/dist/components/tags.d.ts +1 -1
- package/dist/components/tags.js +10 -5
- package/dist/components/tags.js.map +1 -1
- package/dist/components/textarea.cjs +5 -4
- package/dist/components/textarea.cjs.map +1 -1
- package/dist/components/textarea.js +5 -4
- package/dist/components/textarea.js.map +1 -1
- package/dist/components/toast/index.cjs +1 -1
- package/dist/components/toast/index.d.cts +2 -2
- package/dist/components/toast/index.d.ts +2 -2
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toggle-group.cjs +69 -0
- package/dist/components/toggle-group.cjs.map +1 -0
- package/dist/components/toggle-group.d.cts +27 -0
- package/dist/components/toggle-group.d.ts +27 -0
- package/dist/components/toggle-group.js +65 -0
- package/dist/components/toggle-group.js.map +1 -0
- package/dist/components/toggle.cjs +54 -0
- package/dist/components/toggle.cjs.map +1 -0
- package/dist/components/toggle.d.cts +13 -0
- package/dist/components/toggle.d.ts +13 -0
- package/dist/components/toggle.js +50 -0
- package/dist/components/toggle.js.map +1 -0
- package/dist/components/tooltip.cjs +18 -6
- package/dist/components/tooltip.cjs.map +1 -1
- package/dist/components/tooltip.d.cts +1 -1
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +18 -6
- package/dist/components/tooltip.js.map +1 -1
- package/dist/components/unlink-button.cjs +2 -2
- package/dist/components/unlink-button.cjs.map +1 -1
- package/dist/components/unlink-button.d.cts +1 -0
- package/dist/components/unlink-button.d.ts +1 -0
- package/dist/components/unlink-button.js +2 -2
- package/dist/components/unlink-button.js.map +1 -1
- package/dist/components/workspace-kit/index.cjs +1477 -0
- package/dist/components/workspace-kit/index.cjs.map +1 -0
- package/dist/components/workspace-kit/index.d.cts +716 -0
- package/dist/components/workspace-kit/index.d.ts +716 -0
- package/dist/components/workspace-kit/index.js +1410 -0
- package/dist/components/workspace-kit/index.js.map +1 -0
- package/dist/compose-refs-Mbma1O3M.js +47 -0
- package/dist/compose-refs-Mbma1O3M.js.map +1 -0
- package/dist/compose-refs-uPrvNoiU.cjs +52 -0
- package/dist/compose-refs-uPrvNoiU.cjs.map +1 -0
- package/dist/fluid-highlight-AW-OITqJ.cjs +124 -0
- package/dist/fluid-highlight-AW-OITqJ.cjs.map +1 -0
- package/dist/fluid-highlight-DxWeZ7iu.js +119 -0
- package/dist/fluid-highlight-DxWeZ7iu.js.map +1 -0
- package/dist/{index-UnM04j0t.d.ts → index-BQZxmMpw.d.cts} +11 -31
- package/dist/{index-UnM04j0t.d.cts → index-BQZxmMpw.d.ts} +11 -31
- package/dist/{index-CyaFaZe2.d.cts → index-CiO-3M_X.d.cts} +334 -18
- package/dist/{index-B0wXxIAb.d.ts → index-z3LqQ5L5.d.ts} +334 -18
- package/dist/index.cjs +107 -17
- package/dist/index.d.cts +63 -13
- package/dist/index.d.ts +63 -13
- package/dist/index.js +27 -14
- package/dist/initial-focus-B8RLtyOZ.cjs +67 -0
- package/dist/initial-focus-B8RLtyOZ.cjs.map +1 -0
- package/dist/initial-focus-j2E0EnIx.js +61 -0
- package/dist/initial-focus-j2E0EnIx.js.map +1 -0
- package/dist/initials-DSkWTOb0.cjs +127 -0
- package/dist/initials-DSkWTOb0.cjs.map +1 -0
- package/dist/initials-kCcHgrSy.js +97 -0
- package/dist/initials-kCcHgrSy.js.map +1 -0
- package/dist/json-input-CH5aEmoA.js +293 -0
- package/dist/json-input-CH5aEmoA.js.map +1 -0
- package/dist/json-input-D8yM578l.cjs +311 -0
- package/dist/json-input-D8yM578l.cjs.map +1 -0
- package/dist/{motion-config-COCFHq1L.cjs → motion-config-DZ7w5Uhq.cjs} +32 -2
- package/dist/motion-config-DZ7w5Uhq.cjs.map +1 -0
- package/dist/{motion-config-COsZ6azM.js → motion-config-DoFp4I8f.js} +21 -3
- package/dist/motion-config-DoFp4I8f.js.map +1 -0
- package/dist/{record-picker-Bz4FApxD.cjs → record-picker-BQ1-Vx0g.cjs} +23 -8
- package/dist/record-picker-BQ1-Vx0g.cjs.map +1 -0
- package/dist/{record-picker-BbxngCeV.js → record-picker-DSRo4RXV.js} +23 -8
- package/dist/record-picker-DSRo4RXV.js.map +1 -0
- package/dist/{sheet-BdA0rfIz.cjs → sheet-OxWlnT_G.cjs} +25 -32
- package/dist/sheet-OxWlnT_G.cjs.map +1 -0
- package/dist/{sheet-BLHnhLRH.js → sheet-wPF_l9Cn.js} +25 -32
- package/dist/sheet-wPF_l9Cn.js.map +1 -0
- package/dist/{sidebar-BavjjJp0.cjs → sidebar-BEEWmJwC.cjs} +74 -57
- package/dist/sidebar-BEEWmJwC.cjs.map +1 -0
- package/dist/{sidebar-DeoL2ttp.js → sidebar-DWl1Azyv.js} +74 -57
- package/dist/sidebar-DWl1Azyv.js.map +1 -0
- package/dist/{stack-ci2lkfkr.cjs → stack-CEvmUSwF.cjs} +12 -10
- package/dist/stack-CEvmUSwF.cjs.map +1 -0
- package/dist/{stack-C9GROTGA.js → stack-Kqu7YaR0.js} +12 -10
- package/dist/stack-Kqu7YaR0.js.map +1 -0
- package/dist/text-runs-CdmlS5C7.cjs +52 -0
- package/dist/text-runs-CdmlS5C7.cjs.map +1 -0
- package/dist/text-runs-DqcEO8L_.js +45 -0
- package/dist/text-runs-DqcEO8L_.js.map +1 -0
- package/dist/theme-DTTTlylA.d.cts +520 -0
- package/dist/theme-DTTTlylA.d.ts +520 -0
- package/dist/theme-dials-config.cjs +273 -0
- package/dist/theme-dials-config.cjs.map +1 -0
- package/dist/theme-dials-config.d.cts +95 -0
- package/dist/theme-dials-config.d.ts +95 -0
- package/dist/theme-dials-config.js +269 -0
- package/dist/theme-dials-config.js.map +1 -0
- package/dist/theme-presets.cjs +922 -0
- package/dist/theme-presets.cjs.map +1 -0
- package/dist/theme-presets.d.cts +89 -0
- package/dist/theme-presets.d.ts +89 -0
- package/dist/theme-presets.js +912 -0
- package/dist/theme-presets.js.map +1 -0
- package/dist/theme-tuning-DjgDvV8V.d.ts +158 -0
- package/dist/theme-tuning-TJ76tnxZ.d.cts +158 -0
- package/dist/theme-tuning.cjs +349 -0
- package/dist/theme-tuning.cjs.map +1 -0
- package/dist/theme-tuning.d.cts +2 -0
- package/dist/theme-tuning.d.ts +2 -0
- package/dist/theme-tuning.js +333 -0
- package/dist/theme-tuning.js.map +1 -0
- package/dist/theme.cjs +432 -0
- package/dist/theme.cjs.map +1 -0
- package/dist/theme.d.cts +2 -0
- package/dist/theme.d.ts +2 -0
- package/dist/theme.js +430 -0
- package/dist/theme.js.map +1 -0
- package/dist/toast-08jF1DBQ.cjs +193 -0
- package/dist/toast-08jF1DBQ.cjs.map +1 -0
- package/dist/toast-CVW5XY4u.js +164 -0
- package/dist/toast-CVW5XY4u.js.map +1 -0
- package/dist/toast-details-BdxxSLlN.cjs +209 -0
- package/dist/toast-details-BdxxSLlN.cjs.map +1 -0
- package/dist/toast-details-CfsB1Vxb.js +198 -0
- package/dist/toast-details-CfsB1Vxb.js.map +1 -0
- package/dist/{tooltip-CTRQoN1A.d.ts → tooltip-Fqb4JK-g.d.cts} +2 -2
- package/dist/{tooltip-CTRQoN1A.d.cts → tooltip-Fqb4JK-g.d.ts} +2 -2
- package/dist/tuning-BKVFsxLr.js +48 -0
- package/dist/tuning-BKVFsxLr.js.map +1 -0
- package/dist/tuning-BRPG7U1U.cjs +71 -0
- package/dist/tuning-BRPG7U1U.cjs.map +1 -0
- package/dist/use-document-theme-BSEuNsEE.cjs +43 -0
- package/dist/use-document-theme-BSEuNsEE.cjs.map +1 -0
- package/dist/use-document-theme-Ch_PqxZz.js +38 -0
- package/dist/use-document-theme-Ch_PqxZz.js.map +1 -0
- package/dist/use-scroll-fade-CaHp52u4.cjs +79 -0
- package/dist/use-scroll-fade-CaHp52u4.cjs.map +1 -0
- package/dist/use-scroll-fade-ilq-o00-.js +72 -0
- package/dist/use-scroll-fade-ilq-o00-.js.map +1 -0
- package/package.json +163 -27
- package/src/styles/globals.css +176 -97
- package/dist/ai-CiaH2sfF.js.map +0 -1
- package/dist/ai-lAkichk8.cjs.map +0 -1
- package/dist/button-DBRYW_AI.d.cts +0 -20
- package/dist/button-DBRYW_AI.d.ts +0 -20
- package/dist/components/app-bar.cjs +0 -81
- package/dist/components/app-bar.cjs.map +0 -1
- package/dist/components/app-bar.d.cts +0 -27
- package/dist/components/app-bar.d.ts +0 -27
- package/dist/components/app-bar.js +0 -77
- package/dist/components/app-bar.js.map +0 -1
- package/dist/components/app-shell.cjs +0 -267
- package/dist/components/app-shell.cjs.map +0 -1
- package/dist/components/app-shell.d.cts +0 -98
- package/dist/components/app-shell.d.ts +0 -98
- package/dist/components/app-shell.js +0 -264
- package/dist/components/app-shell.js.map +0 -1
- package/dist/components/json-input.cjs.map +0 -1
- package/dist/components/json-input.js.map +0 -1
- package/dist/input-CBrCuMH8.d.cts +0 -11
- package/dist/input-CBrCuMH8.d.ts +0 -11
- package/dist/motion-config-COCFHq1L.cjs.map +0 -1
- package/dist/motion-config-COsZ6azM.js.map +0 -1
- package/dist/record-picker-BbxngCeV.js.map +0 -1
- package/dist/record-picker-Bz4FApxD.cjs.map +0 -1
- package/dist/separator-BQEsr0Rc.d.cts +0 -11
- package/dist/separator-BQEsr0Rc.d.ts +0 -11
- package/dist/sheet-BLHnhLRH.js.map +0 -1
- package/dist/sheet-BdA0rfIz.cjs.map +0 -1
- package/dist/sidebar-BavjjJp0.cjs.map +0 -1
- package/dist/sidebar-DeoL2ttp.js.map +0 -1
- package/dist/stack-C9GROTGA.js.map +0 -1
- package/dist/stack-ci2lkfkr.cjs.map +0 -1
- package/dist/toast-D6MqijT2.cjs +0 -316
- package/dist/toast-D6MqijT2.cjs.map +0 -1
- package/dist/toast-D_BOLzm3.js +0 -287
- package/dist/toast-D_BOLzm3.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
import { Dialog } from "@base-ui/react/dialog";
|
|
4
3
|
import { HTMLMotionProps, Transition } from "motion/react";
|
|
4
|
+
import { Dialog } from "@base-ui/react/dialog";
|
|
5
5
|
//#region src/components/sheet.d.ts
|
|
6
6
|
type SheetInfo = {
|
|
7
7
|
id: string;
|
|
@@ -93,11 +93,17 @@ type SheetContentProps = Omit<React$1.ComponentProps<typeof Dialog.Popup>, 'chil
|
|
|
93
93
|
/** @deprecated Use onOpenChange on Root instead */
|
|
94
94
|
onFocusOutside?: (e: Event) => void;
|
|
95
95
|
};
|
|
96
|
-
declare function SheetContent({ side, className, transition, overlay, showClose, children, forceMount: _forceMount, onInteractOutside: _onInteractOutside, onPointerDownOutside: _onPointerDownOutside, onEscapeKeyDown: _onEscapeKeyDown, onFocusOutside: _onFocusOutside, ...props }: SheetContentProps): React$1.JSX.Element;
|
|
97
|
-
type SheetHeaderProps = React$1.ComponentProps<'div'
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
declare function SheetContent({ side, className, transition, overlay, showClose, children, forceMount: _forceMount, onInteractOutside: _onInteractOutside, onPointerDownOutside: _onPointerDownOutside, onEscapeKeyDown: _onEscapeKeyDown, onFocusOutside: _onFocusOutside, initialFocus, ...props }: SheetContentProps): React$1.JSX.Element;
|
|
97
|
+
type SheetHeaderProps = React$1.ComponentProps<'div'> & {
|
|
98
|
+
/** `band` tints the header and closes it with a hairline, edge to edge. */
|
|
99
|
+
variant?: 'default' | 'band';
|
|
100
|
+
};
|
|
101
|
+
declare function SheetHeader({ className, variant, ...props }: SheetHeaderProps): React$1.JSX.Element;
|
|
102
|
+
type SheetFooterProps = React$1.ComponentProps<'div'> & {
|
|
103
|
+
/** `band` pins a tinted footer to the bottom edge, closed off by a hairline. */
|
|
104
|
+
variant?: 'default' | 'band';
|
|
105
|
+
};
|
|
106
|
+
declare function SheetFooter({ className, variant, ...props }: SheetFooterProps): React$1.JSX.Element;
|
|
101
107
|
type SheetTitleProps = React$1.ComponentProps<typeof Dialog.Title>;
|
|
102
108
|
declare function SheetTitle({ className, ...props }: SheetTitleProps): React$1.JSX.Element;
|
|
103
109
|
type SheetDescriptionProps = React$1.ComponentProps<typeof Dialog.Description>;
|
package/dist/components/sheet.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { a as SheetDescription, c as SheetOverlay, d as SheetTitle, f as SheetTrigger, i as SheetContent, l as SheetPortal, m as useSheetStack, n as Sheet, o as SheetFooter, p as useSheet, r as SheetClose, s as SheetHeader, t as SHEET_INDENT, u as SheetStackProvider } from "../sheet-
|
|
3
|
+
import { a as SheetDescription, c as SheetOverlay, d as SheetTitle, f as SheetTrigger, i as SheetContent, l as SheetPortal, m as useSheetStack, n as Sheet, o as SheetFooter, p as useSheet, r as SheetClose, s as SheetHeader, t as SHEET_INDENT, u as SheetStackProvider } from "../sheet-wPF_l9Cn.js";
|
|
4
4
|
|
|
5
5
|
export { SHEET_INDENT, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetStackProvider, SheetTitle, SheetTrigger, useSheet, useSheetStack };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
4
|
+
require('./separator.cjs');
|
|
5
|
+
const require_sidebar = require('../sidebar-BEEWmJwC.cjs');
|
|
5
6
|
|
|
6
7
|
exports.Sidebar = require_sidebar.Sidebar;
|
|
7
8
|
exports.SidebarContent = require_sidebar.SidebarContent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as TooltipContent } from "../tooltip-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { n as TooltipContent } from "../tooltip-Fqb4JK-g.cjs";
|
|
2
|
+
import { Separator } from "./separator.cjs";
|
|
3
|
+
import { Button } from "./button.cjs";
|
|
4
|
+
import { Input } from "./input.cjs";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { VariantProps } from "class-variance-authority";
|
|
7
7
|
import { useRender } from "@base-ui/react/use-render";
|
|
@@ -23,7 +23,8 @@ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: se
|
|
|
23
23
|
onOpenChange?: (open: boolean) => void;
|
|
24
24
|
}): React$1.JSX.Element;
|
|
25
25
|
declare function Sidebar({ side, variant, collapsible, className, children, dir, ...props }: React$1.ComponentProps<'div'> & {
|
|
26
|
-
|
|
26
|
+
/** `start` and `end` follow the reading direction; `left` and `right` are physical. */
|
|
27
|
+
side?: 'left' | 'right' | 'start' | 'end';
|
|
27
28
|
variant?: 'sidebar' | 'floating' | 'inset';
|
|
28
29
|
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
29
30
|
}): React$1.JSX.Element;
|
|
@@ -52,7 +53,7 @@ declare function SidebarMenuButton({ render, isActive, variant, size, tooltip, c
|
|
|
52
53
|
declare function SidebarMenuAction({ className, render, showOnHover, ...props }: useRender.ComponentProps<'button'> & React$1.ComponentProps<'button'> & {
|
|
53
54
|
showOnHover?: boolean;
|
|
54
55
|
}): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
55
|
-
declare function SidebarMenuBadge({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
56
|
+
declare function SidebarMenuBadge({ className, children, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
56
57
|
declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React$1.ComponentProps<'div'> & {
|
|
57
58
|
showIcon?: boolean;
|
|
58
59
|
}): React$1.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as TooltipContent } from "../tooltip-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { n as TooltipContent } from "../tooltip-Fqb4JK-g.js";
|
|
2
|
+
import { Separator } from "./separator.js";
|
|
3
|
+
import { Button } from "./button.js";
|
|
4
|
+
import { Input } from "./input.js";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { VariantProps } from "class-variance-authority";
|
|
7
7
|
import { useRender } from "@base-ui/react/use-render";
|
|
@@ -23,7 +23,8 @@ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: se
|
|
|
23
23
|
onOpenChange?: (open: boolean) => void;
|
|
24
24
|
}): React$1.JSX.Element;
|
|
25
25
|
declare function Sidebar({ side, variant, collapsible, className, children, dir, ...props }: React$1.ComponentProps<'div'> & {
|
|
26
|
-
|
|
26
|
+
/** `start` and `end` follow the reading direction; `left` and `right` are physical. */
|
|
27
|
+
side?: 'left' | 'right' | 'start' | 'end';
|
|
27
28
|
variant?: 'sidebar' | 'floating' | 'inset';
|
|
28
29
|
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
29
30
|
}): React$1.JSX.Element;
|
|
@@ -52,7 +53,7 @@ declare function SidebarMenuButton({ render, isActive, variant, size, tooltip, c
|
|
|
52
53
|
declare function SidebarMenuAction({ className, render, showOnHover, ...props }: useRender.ComponentProps<'button'> & React$1.ComponentProps<'button'> & {
|
|
53
54
|
showOnHover?: boolean;
|
|
54
55
|
}): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
55
|
-
declare function SidebarMenuBadge({ className, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
56
|
+
declare function SidebarMenuBadge({ className, children, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
56
57
|
declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React$1.ComponentProps<'div'> & {
|
|
57
58
|
showIcon?: boolean;
|
|
58
59
|
}): React$1.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import "./separator.js";
|
|
4
|
+
import { C as SidebarTrigger, S as SidebarSeparator, _ as SidebarMenuSub, a as SidebarGroupAction, b as SidebarProvider, c as SidebarHeader, d as SidebarMenu, f as SidebarMenuAction, g as SidebarMenuSkeleton, h as SidebarMenuItem, i as SidebarGroup, l as SidebarInput, m as SidebarMenuButton, n as SidebarContent, o as SidebarGroupContent, p as SidebarMenuBadge, r as SidebarFooter, s as SidebarGroupLabel, t as Sidebar, u as SidebarInset, v as SidebarMenuSubButton, w as useSidebar, x as SidebarRail, y as SidebarMenuSubItem } from "../sidebar-DWl1Azyv.js";
|
|
4
5
|
|
|
5
6
|
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
const require_rolldown_runtime = require('../rolldown-runtime-D_qnwXdH.cjs');
|
|
5
|
+
const require_utils = require('../utils-CzTQ3-VI.cjs');
|
|
6
|
+
let react = require("react");
|
|
7
|
+
react = require_rolldown_runtime.__toESM(react, 1);
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
+
let _base_ui_react_slider = require("@base-ui/react/slider");
|
|
10
|
+
|
|
11
|
+
//#region src/components/slider.tsx
|
|
12
|
+
function Slider({ className, defaultValue, value, min = 0, max = 100, disabled, "aria-label": ariaLabel, ...props }) {
|
|
13
|
+
const degenerate = !(max > min);
|
|
14
|
+
const thumbCount = Array.isArray(value) ? value.length : Array.isArray(defaultValue) ? defaultValue.length : 1;
|
|
15
|
+
const getAriaLabel = ariaLabel ? (index) => thumbCount > 1 ? `${ariaLabel} ${index + 1}` : ariaLabel : void 0;
|
|
16
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_slider.Slider.Root, {
|
|
17
|
+
"data-slot": "slider",
|
|
18
|
+
className: require_utils.cn("data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full", className),
|
|
19
|
+
defaultValue,
|
|
20
|
+
value,
|
|
21
|
+
min,
|
|
22
|
+
max: degenerate ? min + 1 : max,
|
|
23
|
+
disabled: disabled || degenerate,
|
|
24
|
+
thumbAlignment: "edge",
|
|
25
|
+
...props,
|
|
26
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_base_ui_react_slider.Slider.Control, {
|
|
27
|
+
className: require_utils.cn("relative flex w-full touch-none items-center select-none", "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", "data-[disabled]:opacity-64"),
|
|
28
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_slider.Slider.Track, {
|
|
29
|
+
"data-slot": "slider-track",
|
|
30
|
+
className: require_utils.cn("relative grow overflow-hidden rounded-full bg-muted select-none", "data-[orientation=horizontal]:h-1.5 data-[orientation=vertical]:w-1.5"),
|
|
31
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_slider.Slider.Indicator, {
|
|
32
|
+
"data-slot": "slider-indicator",
|
|
33
|
+
className: require_utils.cn("bg-primary select-none", "data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
|
|
34
|
+
})
|
|
35
|
+
}), Array.from({ length: thumbCount }, (_, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_slider.Slider.Thumb, {
|
|
36
|
+
index,
|
|
37
|
+
getAriaLabel,
|
|
38
|
+
"data-slot": "slider-thumb",
|
|
39
|
+
className: require_utils.cn("block size-4 shrink-0 rounded-full border border-primary bg-background shadow-xs outline-none select-none", "transition-[box-shadow,scale] duration-(--duration-fast) ease-out motion-reduce:transition-none", "hover:ring-[3px] hover:ring-ring/35", "focus-visible:ring-[3px] focus-visible:ring-ring/50", "data-[dragging]:scale-110 data-[dragging]:ring-[3px] data-[dragging]:ring-ring/35", "data-[disabled]:pointer-events-none")
|
|
40
|
+
}, index))]
|
|
41
|
+
})
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
exports.Slider = Slider;
|
|
47
|
+
//# sourceMappingURL=slider.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.cjs","names":["SliderPrimitive","cn"],"sources":["../../src/components/slider.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Slider as SliderPrimitive } from '@base-ui/react/slider';\n\nimport { cn } from '../lib/utils';\n\ntype SliderProps = React.ComponentProps<typeof SliderPrimitive.Root>;\n\nfunction Slider({\n\tclassName,\n\tdefaultValue,\n\tvalue,\n\tmin = 0,\n\tmax = 100,\n\tdisabled,\n\t'aria-label': ariaLabel,\n\t...props\n}: SliderProps) {\n\t// Base UI hides the thumb and indicator when `max <= min` (a range computed from a single data point, for\n\t// example). Give the track a unit of range and disable it so the control stays visible instead of vanishing.\n\tconst degenerate = !(max > min);\n\tconst thumbCount = Array.isArray(value)\n\t\t? value.length\n\t\t: Array.isArray(defaultValue)\n\t\t\t? defaultValue.length\n\t\t\t: 1;\n\t// Base UI doesn't forward Root `aria-label` to the thumb inputs — route it\n\t// through `getAriaLabel` so each input gets an accessible name.\n\tconst getAriaLabel = ariaLabel\n\t\t? (index: number) => (thumbCount > 1 ? `${ariaLabel} ${index + 1}` : ariaLabel)\n\t\t: undefined;\n\n\treturn (\n\t\t<SliderPrimitive.Root\n\t\t\tdata-slot=\"slider\"\n\t\t\tclassName={cn(\n\t\t\t\t'data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdefaultValue={defaultValue}\n\t\t\tvalue={value}\n\t\t\tmin={min}\n\t\t\tmax={degenerate ? min + 1 : max}\n\t\t\tdisabled={disabled || degenerate}\n\t\t\tthumbAlignment=\"edge\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<SliderPrimitive.Control\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'relative flex w-full touch-none items-center select-none',\n\t\t\t\t\t'data-[orientation=vertical]:h-full data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col',\n\t\t\t\t\t'data-[disabled]:opacity-64',\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t<SliderPrimitive.Track\n\t\t\t\t\tdata-slot=\"slider-track\"\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t'relative grow overflow-hidden rounded-full bg-muted select-none',\n\t\t\t\t\t\t'data-[orientation=horizontal]:h-1.5 data-[orientation=vertical]:w-1.5',\n\t\t\t\t\t)}\n\t\t\t\t>\n\t\t\t\t\t<SliderPrimitive.Indicator\n\t\t\t\t\t\tdata-slot=\"slider-indicator\"\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t'bg-primary select-none',\n\t\t\t\t\t\t\t'data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full',\n\t\t\t\t\t\t)}\n\t\t\t\t\t/>\n\t\t\t\t</SliderPrimitive.Track>\n\t\t\t\t{Array.from({ length: thumbCount }, (_, index) => (\n\t\t\t\t\t<SliderPrimitive.Thumb\n\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\tindex={index}\n\t\t\t\t\t\tgetAriaLabel={getAriaLabel}\n\t\t\t\t\t\tdata-slot=\"slider-thumb\"\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t'block size-4 shrink-0 rounded-full border border-primary bg-background shadow-xs outline-none select-none',\n\t\t\t\t\t\t\t'transition-[box-shadow,scale] duration-(--duration-fast) ease-out motion-reduce:transition-none',\n\t\t\t\t\t\t\t'hover:ring-[3px] hover:ring-ring/35',\n\t\t\t\t\t\t\t'focus-visible:ring-[3px] focus-visible:ring-ring/50',\n\t\t\t\t\t\t\t'data-[dragging]:scale-110 data-[dragging]:ring-[3px] data-[dragging]:ring-ring/35',\n\t\t\t\t\t\t\t'data-[disabled]:pointer-events-none',\n\t\t\t\t\t\t)}\n\t\t\t\t\t/>\n\t\t\t\t))}\n\t\t\t</SliderPrimitive.Control>\n\t\t</SliderPrimitive.Root>\n\t);\n}\n\nexport { Slider };\nexport type { SliderProps };\n"],"mappings":";;;;;;;;;;;AASA,SAAS,OAAO,EACf,WACA,cACA,OACA,MAAM,GACN,MAAM,KACN,UACA,cAAc,WACd,GAAG,SACY;CAGf,MAAM,aAAa,EAAE,MAAM;CAC3B,MAAM,aAAa,MAAM,QAAQ,KAAK,IACnC,MAAM,SACN,MAAM,QAAQ,YAAY,IACzB,aAAa,SACb;CAGJ,MAAM,eAAe,aACjB,UAAmB,aAAa,IAAI,GAAG,UAAU,GAAG,QAAQ,MAAM,YACnE;CAEH,OACC,2CAACA,6BAAgB,MAAjB;EACC,aAAU;EACV,WAAWC,iBACV,2EACA,SACD;EACc;EACP;EACF;EACL,KAAK,aAAa,MAAM,IAAI;EAC5B,UAAU,YAAY;EACtB,gBAAe;EACf,GAAI;YAEJ,4CAACD,6BAAgB,SAAjB;GACC,WAAWC,iBACV,4DACA,8GACA,4BACD;aALD,CAOC,2CAACD,6BAAgB,OAAjB;IACC,aAAU;IACV,WAAWC,iBACV,mEACA,uEACD;cAEA,2CAACD,6BAAgB,WAAjB;KACC,aAAU;KACV,WAAWC,iBACV,0BACA,yEACD;IACA;GACqB,IACtB,MAAM,KAAK,EAAE,QAAQ,WAAW,IAAI,GAAG,UACvC,2CAACD,6BAAgB,OAAjB;IAEQ;IACO;IACd,aAAU;IACV,WAAWC,iBACV,6GACA,mGACA,uCACA,uDACA,qFACA,qCACD;GACA,GAZK,KAYL,CACD,CACuB;;CACJ;AAExB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { Slider as Slider$1 } from "@base-ui/react/slider";
|
|
3
|
+
//#region src/components/slider.d.ts
|
|
4
|
+
type SliderProps = React$1.ComponentProps<typeof Slider$1.Root>;
|
|
5
|
+
declare function Slider({ className, defaultValue, value, min, max, disabled, 'aria-label': ariaLabel, ...props }: SliderProps): React$1.JSX.Element;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Slider, type SliderProps };
|
|
8
|
+
//# sourceMappingURL=slider.d.cts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { Slider as Slider$1 } from "@base-ui/react/slider";
|
|
3
|
+
//#region src/components/slider.d.ts
|
|
4
|
+
type SliderProps = React$1.ComponentProps<typeof Slider$1.Root>;
|
|
5
|
+
declare function Slider({ className, defaultValue, value, min, max, disabled, 'aria-label': ariaLabel, ...props }: SliderProps): React$1.JSX.Element;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Slider, type SliderProps };
|
|
8
|
+
//# sourceMappingURL=slider.d.ts.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { t as cn } from "../utils-BkMLyah9.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Slider as Slider$1 } from "@base-ui/react/slider";
|
|
7
|
+
|
|
8
|
+
//#region src/components/slider.tsx
|
|
9
|
+
function Slider({ className, defaultValue, value, min = 0, max = 100, disabled, "aria-label": ariaLabel, ...props }) {
|
|
10
|
+
const degenerate = !(max > min);
|
|
11
|
+
const thumbCount = Array.isArray(value) ? value.length : Array.isArray(defaultValue) ? defaultValue.length : 1;
|
|
12
|
+
const getAriaLabel = ariaLabel ? (index) => thumbCount > 1 ? `${ariaLabel} ${index + 1}` : ariaLabel : void 0;
|
|
13
|
+
return /* @__PURE__ */ jsx(Slider$1.Root, {
|
|
14
|
+
"data-slot": "slider",
|
|
15
|
+
className: cn("data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full", className),
|
|
16
|
+
defaultValue,
|
|
17
|
+
value,
|
|
18
|
+
min,
|
|
19
|
+
max: degenerate ? min + 1 : max,
|
|
20
|
+
disabled: disabled || degenerate,
|
|
21
|
+
thumbAlignment: "edge",
|
|
22
|
+
...props,
|
|
23
|
+
children: /* @__PURE__ */ jsxs(Slider$1.Control, {
|
|
24
|
+
className: cn("relative flex w-full touch-none items-center select-none", "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", "data-[disabled]:opacity-64"),
|
|
25
|
+
children: [/* @__PURE__ */ jsx(Slider$1.Track, {
|
|
26
|
+
"data-slot": "slider-track",
|
|
27
|
+
className: cn("relative grow overflow-hidden rounded-full bg-muted select-none", "data-[orientation=horizontal]:h-1.5 data-[orientation=vertical]:w-1.5"),
|
|
28
|
+
children: /* @__PURE__ */ jsx(Slider$1.Indicator, {
|
|
29
|
+
"data-slot": "slider-indicator",
|
|
30
|
+
className: cn("bg-primary select-none", "data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
|
|
31
|
+
})
|
|
32
|
+
}), Array.from({ length: thumbCount }, (_, index) => /* @__PURE__ */ jsx(Slider$1.Thumb, {
|
|
33
|
+
index,
|
|
34
|
+
getAriaLabel,
|
|
35
|
+
"data-slot": "slider-thumb",
|
|
36
|
+
className: cn("block size-4 shrink-0 rounded-full border border-primary bg-background shadow-xs outline-none select-none", "transition-[box-shadow,scale] duration-(--duration-fast) ease-out motion-reduce:transition-none", "hover:ring-[3px] hover:ring-ring/35", "focus-visible:ring-[3px] focus-visible:ring-ring/50", "data-[dragging]:scale-110 data-[dragging]:ring-[3px] data-[dragging]:ring-ring/35", "data-[disabled]:pointer-events-none")
|
|
37
|
+
}, index))]
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
export { Slider };
|
|
44
|
+
//# sourceMappingURL=slider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.js","names":["SliderPrimitive"],"sources":["../../src/components/slider.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Slider as SliderPrimitive } from '@base-ui/react/slider';\n\nimport { cn } from '../lib/utils';\n\ntype SliderProps = React.ComponentProps<typeof SliderPrimitive.Root>;\n\nfunction Slider({\n\tclassName,\n\tdefaultValue,\n\tvalue,\n\tmin = 0,\n\tmax = 100,\n\tdisabled,\n\t'aria-label': ariaLabel,\n\t...props\n}: SliderProps) {\n\t// Base UI hides the thumb and indicator when `max <= min` (a range computed from a single data point, for\n\t// example). Give the track a unit of range and disable it so the control stays visible instead of vanishing.\n\tconst degenerate = !(max > min);\n\tconst thumbCount = Array.isArray(value)\n\t\t? value.length\n\t\t: Array.isArray(defaultValue)\n\t\t\t? defaultValue.length\n\t\t\t: 1;\n\t// Base UI doesn't forward Root `aria-label` to the thumb inputs — route it\n\t// through `getAriaLabel` so each input gets an accessible name.\n\tconst getAriaLabel = ariaLabel\n\t\t? (index: number) => (thumbCount > 1 ? `${ariaLabel} ${index + 1}` : ariaLabel)\n\t\t: undefined;\n\n\treturn (\n\t\t<SliderPrimitive.Root\n\t\t\tdata-slot=\"slider\"\n\t\t\tclassName={cn(\n\t\t\t\t'data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdefaultValue={defaultValue}\n\t\t\tvalue={value}\n\t\t\tmin={min}\n\t\t\tmax={degenerate ? min + 1 : max}\n\t\t\tdisabled={disabled || degenerate}\n\t\t\tthumbAlignment=\"edge\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<SliderPrimitive.Control\n\t\t\t\tclassName={cn(\n\t\t\t\t\t'relative flex w-full touch-none items-center select-none',\n\t\t\t\t\t'data-[orientation=vertical]:h-full data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col',\n\t\t\t\t\t'data-[disabled]:opacity-64',\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t<SliderPrimitive.Track\n\t\t\t\t\tdata-slot=\"slider-track\"\n\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t'relative grow overflow-hidden rounded-full bg-muted select-none',\n\t\t\t\t\t\t'data-[orientation=horizontal]:h-1.5 data-[orientation=vertical]:w-1.5',\n\t\t\t\t\t)}\n\t\t\t\t>\n\t\t\t\t\t<SliderPrimitive.Indicator\n\t\t\t\t\t\tdata-slot=\"slider-indicator\"\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t'bg-primary select-none',\n\t\t\t\t\t\t\t'data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full',\n\t\t\t\t\t\t)}\n\t\t\t\t\t/>\n\t\t\t\t</SliderPrimitive.Track>\n\t\t\t\t{Array.from({ length: thumbCount }, (_, index) => (\n\t\t\t\t\t<SliderPrimitive.Thumb\n\t\t\t\t\t\tkey={index}\n\t\t\t\t\t\tindex={index}\n\t\t\t\t\t\tgetAriaLabel={getAriaLabel}\n\t\t\t\t\t\tdata-slot=\"slider-thumb\"\n\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t'block size-4 shrink-0 rounded-full border border-primary bg-background shadow-xs outline-none select-none',\n\t\t\t\t\t\t\t'transition-[box-shadow,scale] duration-(--duration-fast) ease-out motion-reduce:transition-none',\n\t\t\t\t\t\t\t'hover:ring-[3px] hover:ring-ring/35',\n\t\t\t\t\t\t\t'focus-visible:ring-[3px] focus-visible:ring-ring/50',\n\t\t\t\t\t\t\t'data-[dragging]:scale-110 data-[dragging]:ring-[3px] data-[dragging]:ring-ring/35',\n\t\t\t\t\t\t\t'data-[disabled]:pointer-events-none',\n\t\t\t\t\t\t)}\n\t\t\t\t\t/>\n\t\t\t\t))}\n\t\t\t</SliderPrimitive.Control>\n\t\t</SliderPrimitive.Root>\n\t);\n}\n\nexport { Slider };\nexport type { SliderProps };\n"],"mappings":";;;;;;;;AASA,SAAS,OAAO,EACf,WACA,cACA,OACA,MAAM,GACN,MAAM,KACN,UACA,cAAc,WACd,GAAG,SACY;CAGf,MAAM,aAAa,EAAE,MAAM;CAC3B,MAAM,aAAa,MAAM,QAAQ,KAAK,IACnC,MAAM,SACN,MAAM,QAAQ,YAAY,IACzB,aAAa,SACb;CAGJ,MAAM,eAAe,aACjB,UAAmB,aAAa,IAAI,GAAG,UAAU,GAAG,QAAQ,MAAM,YACnE;CAEH,OACC,oBAACA,SAAgB,MAAjB;EACC,aAAU;EACV,WAAW,GACV,2EACA,SACD;EACc;EACP;EACF;EACL,KAAK,aAAa,MAAM,IAAI;EAC5B,UAAU,YAAY;EACtB,gBAAe;EACf,GAAI;YAEJ,qBAACA,SAAgB,SAAjB;GACC,WAAW,GACV,4DACA,8GACA,4BACD;aALD,CAOC,oBAACA,SAAgB,OAAjB;IACC,aAAU;IACV,WAAW,GACV,mEACA,uEACD;cAEA,oBAACA,SAAgB,WAAjB;KACC,aAAU;KACV,WAAW,GACV,0BACA,yEACD;IACA;GACqB,IACtB,MAAM,KAAK,EAAE,QAAQ,WAAW,IAAI,GAAG,UACvC,oBAACA,SAAgB,OAAjB;IAEQ;IACO;IACd,aAAU;IACV,WAAW,GACV,6GACA,mGACA,uCACA,uDACA,qFACA,qCACD;GACA,GAZK,KAYL,CACD,CACuB;;CACJ;AAExB"}
|
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
const require_use_document_theme = require('../use-document-theme-BSEuNsEE.cjs');
|
|
5
|
+
const require_toast_details = require('../toast-details-BdxxSLlN.cjs');
|
|
6
|
+
let react = require("react");
|
|
4
7
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
8
|
let sonner = require("sonner");
|
|
6
9
|
|
|
7
10
|
//#region src/components/sonner.tsx
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Mount it once. It also shows the "View details" dialog of the toasts from `./toast`, next to Sonner, so the dialog
|
|
13
|
+
* gets the app's providers and focus returns sensibly. Mounting Sonner's own `Toaster` instead still works: the
|
|
14
|
+
* dialog then opens in a React root of its own, without the app's providers.
|
|
15
|
+
*/
|
|
16
|
+
const Toaster = ({ theme, ...props }) => {
|
|
17
|
+
const pageTheme = require_use_document_theme.useDocumentTheme(theme === void 0);
|
|
18
|
+
const region = (0, react.useRef)(null);
|
|
19
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(sonner.Toaster, {
|
|
20
|
+
ref: region,
|
|
21
|
+
theme: theme ?? pageTheme,
|
|
11
22
|
className: "toaster group",
|
|
12
23
|
style: {
|
|
13
24
|
"--normal-bg": "var(--popover)",
|
|
@@ -15,7 +26,7 @@ const Toaster = ({ theme = "system", ...props }) => {
|
|
|
15
26
|
"--normal-border": "var(--border)"
|
|
16
27
|
},
|
|
17
28
|
...props
|
|
18
|
-
});
|
|
29
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_toast_details.ToastDetailsHost, { regionRef: region })] });
|
|
19
30
|
};
|
|
20
31
|
|
|
21
32
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sonner.cjs","names":["Sonner"],"sources":["../../src/components/sonner.tsx"],"sourcesContent":["'use client';\n\nimport { Toaster as Sonner, ToasterProps } from 'sonner';\n\ntype ToasterComponentProps = ToasterProps & {\n\t
|
|
1
|
+
{"version":3,"file":"sonner.cjs","names":["useDocumentTheme","Sonner","ToastDetailsHost"],"sources":["../../src/components/sonner.tsx"],"sourcesContent":["'use client';\n\nimport { useRef } from 'react';\nimport { Toaster as Sonner, ToasterProps } from 'sonner';\n\nimport { useDocumentTheme } from '../lib/use-document-theme';\nimport { ToastDetailsHost } from './toast/toast-details';\n\ntype ToasterComponentProps = ToasterProps & {\n\t/**\n\t * Theme for the toaster. Defaults to the page's theme (the `dark` class on `<html>`), so\n\t * Sonner's own text colours match the app's surfaces. Pass `'system'` to follow the OS\n\t * instead, or your app's theme value to override.\n\t */\n\ttheme?: 'light' | 'dark' | 'system';\n};\n\n/**\n * Mount it once. It also shows the \"View details\" dialog of the toasts from `./toast`, next to Sonner, so the dialog\n * gets the app's providers and focus returns sensibly. Mounting Sonner's own `Toaster` instead still works: the\n * dialog then opens in a React root of its own, without the app's providers.\n */\nconst Toaster = ({ theme, ...props }: ToasterComponentProps) => {\n\tconst pageTheme = useDocumentTheme(theme === undefined);\n\tconst region = useRef<HTMLElement>(null);\n\n\treturn (\n\t\t<>\n\t\t\t<Sonner\n\t\t\t\tref={region}\n\t\t\t\ttheme={theme ?? pageTheme}\n\t\t\t\tclassName=\"toaster group\"\n\t\t\t\tstyle={\n\t\t\t\t\t{\n\t\t\t\t\t\t'--normal-bg': 'var(--popover)',\n\t\t\t\t\t\t'--normal-text': 'var(--popover-foreground)',\n\t\t\t\t\t\t'--normal-border': 'var(--border)',\n\t\t\t\t\t} as React.CSSProperties\n\t\t\t\t}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t\t{/* Beside Sonner, not inside it: Sonner must not see the details dialog's events, and the dialog should get the app's providers. */}\n\t\t\t<ToastDetailsHost regionRef={region} />\n\t\t</>\n\t);\n};\n\nexport { Toaster };\nexport type { ToasterComponentProps };\n"],"mappings":";;;;;;;;;;;;;;;AAsBA,MAAM,WAAW,EAAE,OAAO,GAAG,YAAmC;CAC/D,MAAM,YAAYA,4CAAiB,UAAU,MAAS;CACtD,MAAM,2BAA6B,IAAI;CAEvC,OACC,qFACC,2CAACC,gBAAD;EACC,KAAK;EACL,OAAO,SAAS;EAChB,WAAU;EACV,OACC;GACC,eAAe;GACf,iBAAiB;GACjB,mBAAmB;EACpB;EAED,GAAI;CACJ,IAED,2CAACC,wCAAD,EAAkB,WAAW,OAAS,EACrC;AAEJ"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { ToasterProps } from "sonner";
|
|
2
2
|
//#region src/components/sonner.d.ts
|
|
3
3
|
type ToasterComponentProps = ToasterProps & {
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Theme for the toaster. Defaults to the page's theme (the `dark` class on `<html>`), so
|
|
6
|
+
* Sonner's own text colours match the app's surfaces. Pass `'system'` to follow the OS
|
|
7
|
+
* instead, or your app's theme value to override.
|
|
8
|
+
*/
|
|
5
9
|
theme?: 'light' | 'dark' | 'system';
|
|
6
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Mount it once. It also shows the "View details" dialog of the toasts from `./toast`, next to Sonner, so the dialog
|
|
13
|
+
* gets the app's providers and focus returns sensibly. Mounting Sonner's own `Toaster` instead still works: the
|
|
14
|
+
* dialog then opens in a React root of its own, without the app's providers.
|
|
15
|
+
*/
|
|
7
16
|
declare const Toaster: ({ theme, ...props }: ToasterComponentProps) => import("react").JSX.Element;
|
|
8
17
|
//#endregion
|
|
9
18
|
export { Toaster, type ToasterComponentProps };
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { ToasterProps } from "sonner";
|
|
2
2
|
//#region src/components/sonner.d.ts
|
|
3
3
|
type ToasterComponentProps = ToasterProps & {
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Theme for the toaster. Defaults to the page's theme (the `dark` class on `<html>`), so
|
|
6
|
+
* Sonner's own text colours match the app's surfaces. Pass `'system'` to follow the OS
|
|
7
|
+
* instead, or your app's theme value to override.
|
|
8
|
+
*/
|
|
5
9
|
theme?: 'light' | 'dark' | 'system';
|
|
6
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Mount it once. It also shows the "View details" dialog of the toasts from `./toast`, next to Sonner, so the dialog
|
|
13
|
+
* gets the app's providers and focus returns sensibly. Mounting Sonner's own `Toaster` instead still works: the
|
|
14
|
+
* dialog then opens in a React root of its own, without the app's providers.
|
|
15
|
+
*/
|
|
7
16
|
declare const Toaster: ({ theme, ...props }: ToasterComponentProps) => import("react").JSX.Element;
|
|
8
17
|
//#endregion
|
|
9
18
|
export { Toaster, type ToasterComponentProps };
|
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { t as useDocumentTheme } from "../use-document-theme-Ch_PqxZz.js";
|
|
4
|
+
import { t as ToastDetailsHost } from "../toast-details-CfsB1Vxb.js";
|
|
5
|
+
import { useRef } from "react";
|
|
6
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
7
|
import { Toaster as Toaster$1 } from "sonner";
|
|
5
8
|
|
|
6
9
|
//#region src/components/sonner.tsx
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Mount it once. It also shows the "View details" dialog of the toasts from `./toast`, next to Sonner, so the dialog
|
|
12
|
+
* gets the app's providers and focus returns sensibly. Mounting Sonner's own `Toaster` instead still works: the
|
|
13
|
+
* dialog then opens in a React root of its own, without the app's providers.
|
|
14
|
+
*/
|
|
15
|
+
const Toaster = ({ theme, ...props }) => {
|
|
16
|
+
const pageTheme = useDocumentTheme(theme === void 0);
|
|
17
|
+
const region = useRef(null);
|
|
18
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Toaster$1, {
|
|
19
|
+
ref: region,
|
|
20
|
+
theme: theme ?? pageTheme,
|
|
10
21
|
className: "toaster group",
|
|
11
22
|
style: {
|
|
12
23
|
"--normal-bg": "var(--popover)",
|
|
@@ -14,7 +25,7 @@ const Toaster = ({ theme = "system", ...props }) => {
|
|
|
14
25
|
"--normal-border": "var(--border)"
|
|
15
26
|
},
|
|
16
27
|
...props
|
|
17
|
-
});
|
|
28
|
+
}), /* @__PURE__ */ jsx(ToastDetailsHost, { regionRef: region })] });
|
|
18
29
|
};
|
|
19
30
|
|
|
20
31
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sonner.js","names":["Sonner"],"sources":["../../src/components/sonner.tsx"],"sourcesContent":["'use client';\n\nimport { Toaster as Sonner, ToasterProps } from 'sonner';\n\ntype ToasterComponentProps = ToasterProps & {\n\t
|
|
1
|
+
{"version":3,"file":"sonner.js","names":["Sonner"],"sources":["../../src/components/sonner.tsx"],"sourcesContent":["'use client';\n\nimport { useRef } from 'react';\nimport { Toaster as Sonner, ToasterProps } from 'sonner';\n\nimport { useDocumentTheme } from '../lib/use-document-theme';\nimport { ToastDetailsHost } from './toast/toast-details';\n\ntype ToasterComponentProps = ToasterProps & {\n\t/**\n\t * Theme for the toaster. Defaults to the page's theme (the `dark` class on `<html>`), so\n\t * Sonner's own text colours match the app's surfaces. Pass `'system'` to follow the OS\n\t * instead, or your app's theme value to override.\n\t */\n\ttheme?: 'light' | 'dark' | 'system';\n};\n\n/**\n * Mount it once. It also shows the \"View details\" dialog of the toasts from `./toast`, next to Sonner, so the dialog\n * gets the app's providers and focus returns sensibly. Mounting Sonner's own `Toaster` instead still works: the\n * dialog then opens in a React root of its own, without the app's providers.\n */\nconst Toaster = ({ theme, ...props }: ToasterComponentProps) => {\n\tconst pageTheme = useDocumentTheme(theme === undefined);\n\tconst region = useRef<HTMLElement>(null);\n\n\treturn (\n\t\t<>\n\t\t\t<Sonner\n\t\t\t\tref={region}\n\t\t\t\ttheme={theme ?? pageTheme}\n\t\t\t\tclassName=\"toaster group\"\n\t\t\t\tstyle={\n\t\t\t\t\t{\n\t\t\t\t\t\t'--normal-bg': 'var(--popover)',\n\t\t\t\t\t\t'--normal-text': 'var(--popover-foreground)',\n\t\t\t\t\t\t'--normal-border': 'var(--border)',\n\t\t\t\t\t} as React.CSSProperties\n\t\t\t\t}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t\t{/* Beside Sonner, not inside it: Sonner must not see the details dialog's events, and the dialog should get the app's providers. */}\n\t\t\t<ToastDetailsHost regionRef={region} />\n\t\t</>\n\t);\n};\n\nexport { Toaster };\nexport type { ToasterComponentProps };\n"],"mappings":";;;;;;;;;;;;;;AAsBA,MAAM,WAAW,EAAE,OAAO,GAAG,YAAmC;CAC/D,MAAM,YAAY,iBAAiB,UAAU,MAAS;CACtD,MAAM,SAAS,OAAoB,IAAI;CAEvC,OACC,4CACC,oBAACA,WAAD;EACC,KAAK;EACL,OAAO,SAAS;EAChB,WAAU;EACV,OACC;GACC,eAAe;GACf,iBAAiB;GACjB,mBAAmB;EACpB;EAED,GAAI;CACJ,IAED,oBAAC,kBAAD,EAAkB,WAAW,OAAS,EACrC;AAEJ"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
3
|
+
const require_rolldown_runtime = require('../rolldown-runtime-D_qnwXdH.cjs');
|
|
4
|
+
const require_utils = require('../utils-CzTQ3-VI.cjs');
|
|
5
|
+
let react = require("react");
|
|
6
|
+
react = require_rolldown_runtime.__toESM(react, 1);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
let lucide_react = require("lucide-react");
|
|
9
|
+
|
|
10
|
+
//#region src/components/spinner.tsx
|
|
11
|
+
function Spinner({ className, label = "Loading", decorative = false, ...props }) {
|
|
12
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LoaderCircle, {
|
|
13
|
+
"data-slot": "spinner",
|
|
14
|
+
...decorative ? { "aria-hidden": true } : {
|
|
15
|
+
role: "status",
|
|
16
|
+
"aria-label": label
|
|
17
|
+
},
|
|
18
|
+
className: require_utils.cn("size-4 animate-spin motion-reduce:animate-pulse", className),
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
exports.Spinner = Spinner;
|
|
25
|
+
//# sourceMappingURL=spinner.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.cjs","names":["LoaderCircle","cn"],"sources":["../../src/components/spinner.tsx"],"sourcesContent":["import * as React from 'react';\nimport { LoaderCircle } from 'lucide-react';\n\nimport { cn } from '../lib/utils';\n\ntype SpinnerProps = React.ComponentProps<'svg'> & {\n\t/** Accessible name announced for the loading state. Defaults to \"Loading\". */\n\tlabel?: string;\n\t/**\n\t * Hides the spinner from assistive tech. Use it when text next to it already says what\n\t * is loading (a \"Saving…\" button), so a page of spinners is not a page of identical\n\t * \"Loading\" announcements.\n\t */\n\tdecorative?: boolean;\n};\n\nfunction Spinner({ className, label = 'Loading', decorative = false, ...props }: SpinnerProps) {\n\treturn (\n\t\t<LoaderCircle\n\t\t\tdata-slot=\"spinner\"\n\t\t\t{...(decorative ? { 'aria-hidden': true } : { role: 'status', 'aria-label': label })}\n\t\t\tclassName={cn('size-4 animate-spin motion-reduce:animate-pulse', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport { Spinner };\nexport type { SpinnerProps };\n"],"mappings":";;;;;;;;;;AAgBA,SAAS,QAAQ,EAAE,WAAW,QAAQ,WAAW,aAAa,OAAO,GAAG,SAAuB;CAC9F,OACC,2CAACA,2BAAD;EACC,aAAU;EACV,GAAK,aAAa,EAAE,eAAe,KAAK,IAAI;GAAE,MAAM;GAAU,cAAc;EAAM;EAClF,WAAWC,iBAAG,mDAAmD,SAAS;EAC1E,GAAI;CACJ;AAEH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
//#region src/components/spinner.d.ts
|
|
3
|
+
type SpinnerProps = React$1.ComponentProps<'svg'> & {
|
|
4
|
+
/** Accessible name announced for the loading state. Defaults to "Loading". */
|
|
5
|
+
label?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Hides the spinner from assistive tech. Use it when text next to it already says what
|
|
8
|
+
* is loading (a "Saving…" button), so a page of spinners is not a page of identical
|
|
9
|
+
* "Loading" announcements.
|
|
10
|
+
*/
|
|
11
|
+
decorative?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare function Spinner({ className, label, decorative, ...props }: SpinnerProps): React$1.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Spinner, type SpinnerProps };
|
|
16
|
+
//# sourceMappingURL=spinner.d.cts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
//#region src/components/spinner.d.ts
|
|
3
|
+
type SpinnerProps = React$1.ComponentProps<'svg'> & {
|
|
4
|
+
/** Accessible name announced for the loading state. Defaults to "Loading". */
|
|
5
|
+
label?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Hides the spinner from assistive tech. Use it when text next to it already says what
|
|
8
|
+
* is loading (a "Saving…" button), so a page of spinners is not a page of identical
|
|
9
|
+
* "Loading" announcements.
|
|
10
|
+
*/
|
|
11
|
+
decorative?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare function Spinner({ className, label, decorative, ...props }: SpinnerProps): React$1.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Spinner, type SpinnerProps };
|
|
16
|
+
//# sourceMappingURL=spinner.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { t as cn } from "../utils-BkMLyah9.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { LoaderCircle } from "lucide-react";
|
|
6
|
+
|
|
7
|
+
//#region src/components/spinner.tsx
|
|
8
|
+
function Spinner({ className, label = "Loading", decorative = false, ...props }) {
|
|
9
|
+
return /* @__PURE__ */ jsx(LoaderCircle, {
|
|
10
|
+
"data-slot": "spinner",
|
|
11
|
+
...decorative ? { "aria-hidden": true } : {
|
|
12
|
+
role: "status",
|
|
13
|
+
"aria-label": label
|
|
14
|
+
},
|
|
15
|
+
className: cn("size-4 animate-spin motion-reduce:animate-pulse", className),
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Spinner };
|
|
22
|
+
//# sourceMappingURL=spinner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.js","names":[],"sources":["../../src/components/spinner.tsx"],"sourcesContent":["import * as React from 'react';\nimport { LoaderCircle } from 'lucide-react';\n\nimport { cn } from '../lib/utils';\n\ntype SpinnerProps = React.ComponentProps<'svg'> & {\n\t/** Accessible name announced for the loading state. Defaults to \"Loading\". */\n\tlabel?: string;\n\t/**\n\t * Hides the spinner from assistive tech. Use it when text next to it already says what\n\t * is loading (a \"Saving…\" button), so a page of spinners is not a page of identical\n\t * \"Loading\" announcements.\n\t */\n\tdecorative?: boolean;\n};\n\nfunction Spinner({ className, label = 'Loading', decorative = false, ...props }: SpinnerProps) {\n\treturn (\n\t\t<LoaderCircle\n\t\t\tdata-slot=\"spinner\"\n\t\t\t{...(decorative ? { 'aria-hidden': true } : { role: 'status', 'aria-label': label })}\n\t\t\tclassName={cn('size-4 animate-spin motion-reduce:animate-pulse', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport { Spinner };\nexport type { SpinnerProps };\n"],"mappings":";;;;;;;AAgBA,SAAS,QAAQ,EAAE,WAAW,QAAQ,WAAW,aAAa,OAAO,GAAG,SAAuB;CAC9F,OACC,oBAAC,cAAD;EACC,aAAU;EACV,GAAK,aAAa,EAAE,eAAe,KAAK,IAAI;GAAE,MAAM;GAAU,cAAc;EAAM;EAClF,WAAW,GAAG,mDAAmD,SAAS;EAC1E,GAAI;CACJ;AAEH"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
3
|
-
const require_stack = require('../../stack-
|
|
3
|
+
const require_stack = require('../../stack-CEvmUSwF.cjs');
|
|
4
4
|
|
|
5
5
|
exports.CardStackProvider = require_stack.CardStackProvider;
|
|
6
6
|
exports.CardStackViewport = require_stack.CardStackViewport;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { A as peekSlideSpring, B as useStackCards, C as createCardVariants, D as createReducedMotionVariants, E as createOffsetTransition, F as useCardIndex, H as useStackLayoutMode, I as useCardInjectedProps, L as useCardReady, M as snapBackSpring, N as swipeDismissTransition, O as peekDragSpring, P as CardStackProvider, R as useCardStack, S as backdropVariants, T as createExitTransition, V as useStackContext, _ as parseWidthToPixels, a as useStackGestures, b as StackBackdrop, c as calculateResponsiveOffset, d as getCascadeOffset, f as getResponsiveCardOffset, g as normalizeWidth, h as isCardVisible, i as useStackResponsive, j as reducedMotionBackdropVariants, k as peekHoverSpring, l as getCardOffset, m as getVisibleCardIndices, n as CardStackViewport, o as StackCard, p as getSideBySideOffset, r as useIsMobile, s as usePeekGestures, t as DeferredCardContent, u as getCardZIndex, v as StackHeader, w as createEnterTransition, x as DEFAULT_ANIMATION_CONFIG, y as StackHeaderSlot, z as useIsTopCard } from "../../stack-
|
|
2
|
+
import { A as peekSlideSpring, B as useStackCards, C as createCardVariants, D as createReducedMotionVariants, E as createOffsetTransition, F as useCardIndex, H as useStackLayoutMode, I as useCardInjectedProps, L as useCardReady, M as snapBackSpring, N as swipeDismissTransition, O as peekDragSpring, P as CardStackProvider, R as useCardStack, S as backdropVariants, T as createExitTransition, V as useStackContext, _ as parseWidthToPixels, a as useStackGestures, b as StackBackdrop, c as calculateResponsiveOffset, d as getCascadeOffset, f as getResponsiveCardOffset, g as normalizeWidth, h as isCardVisible, i as useStackResponsive, j as reducedMotionBackdropVariants, k as peekHoverSpring, l as getCardOffset, m as getVisibleCardIndices, n as CardStackViewport, o as StackCard, p as getSideBySideOffset, r as useIsMobile, s as usePeekGestures, t as DeferredCardContent, u as getCardZIndex, v as StackHeader, w as createEnterTransition, x as DEFAULT_ANIMATION_CONFIG, y as StackHeaderSlot, z as useIsTopCard } from "../../stack-Kqu7YaR0.js";
|
|
3
3
|
|
|
4
4
|
export { CardStackProvider, CardStackViewport, DEFAULT_ANIMATION_CONFIG, DeferredCardContent, StackBackdrop, StackCard, StackHeader, StackHeaderSlot, backdropVariants, calculateResponsiveOffset, createCardVariants, createEnterTransition, createExitTransition, createOffsetTransition, createReducedMotionVariants, getCardOffset, getCardZIndex, getCascadeOffset, getResponsiveCardOffset, getSideBySideOffset, getVisibleCardIndices, isCardVisible, normalizeWidth, parseWidthToPixels, peekDragSpring, peekHoverSpring, peekSlideSpring, reducedMotionBackdropVariants, snapBackSpring, swipeDismissTransition, useCardIndex, useCardInjectedProps, useCardReady, useCardStack, useIsMobile, useIsTopCard, usePeekGestures, useStackCards, useStackContext, useStackGestures, useStackLayoutMode, useStackResponsive };
|