@constructive-io/ui 0.12.0 → 0.14.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-4JrVVL3q.js} +1794 -250
- package/dist/ai-4JrVVL3q.js.map +1 -0
- package/dist/{ai-lAkichk8.cjs → ai-B08ufcbD.cjs} +1888 -248
- package/dist/ai-B08ufcbD.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.d.cts +2 -2
- package/dist/components/badge.d.ts +2 -2
- 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 +62 -18
- 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 +62 -18
- 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 +30 -14
- package/dist/components/command.cjs.map +1 -1
- package/dist/components/command.d.cts +9 -2
- package/dist/components/command.d.ts +9 -2
- package/dist/components/command.js +30 -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.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 +12 -4
- package/dist/components/popover.cjs.map +1 -1
- package/dist/components/popover.d.cts +7 -1
- package/dist/components/popover.d.ts +7 -1
- package/dist/components/popover.js +12 -5
- 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 +8 -7
- package/dist/components/sidebar.d.ts +8 -7
- 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.d.cts +1 -1
- package/dist/components/stack/index.d.ts +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 +64 -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 +66 -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 +1507 -0
- package/dist/components/workspace-kit/index.cjs.map +1 -0
- package/dist/components/workspace-kit/index.d.cts +728 -0
- package/dist/components/workspace-kit/index.d.ts +728 -0
- package/dist/components/workspace-kit/index.js +1440 -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-CNELHV8o.js +134 -0
- package/dist/fluid-highlight-CNELHV8o.js.map +1 -0
- package/dist/fluid-highlight-YWFRZXsw.cjs +145 -0
- package/dist/fluid-highlight-YWFRZXsw.cjs.map +1 -0
- package/dist/{index-BzLmDsId.d.cts → index-B7cT7gZU.d.cts} +3 -3
- package/dist/{index-BzLmDsId.d.ts → index-B7cT7gZU.d.ts} +3 -3
- 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-Cluc_xc5.d.ts} +345 -20
- package/dist/{index-B0wXxIAb.d.ts → index-DXoG0ghv.d.cts} +345 -20
- package/dist/index.cjs +107 -17
- package/dist/index.d.cts +64 -14
- package/dist/index.d.ts +64 -14
- 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-CKpIa4Fj.d.cts +536 -0
- package/dist/theme-CKpIa4Fj.d.ts +536 -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-CTOHSrsh.d.cts +158 -0
- package/dist/theme-tuning-DOko6Pmy.d.ts +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 +438 -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 +436 -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 +166 -27
- package/src/styles/globals.css +194 -97
- package/dist/ai-CiaH2sfF.js.map +0 -1
- package/dist/ai-lAkichk8.cjs.map +0 -1
- package/dist/button-Bvh83YGs.d.cts +0 -20
- package/dist/button-Bvh83YGs.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
|
@@ -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,2 +1,2 @@
|
|
|
1
|
-
import { $ as useStackLayoutMode, A as useIsMobile, B as StackHeaderSlot, C as isCardVisible, D as UsePeekGesturesResult, E as UsePeekGesturesOptions, F as StackCardProps, G as CardStackProvider, H as StackBackdrop, I as UseStackGesturesResult, J as useCardReady, K as useCardIndex, L as useStackGestures, M as DeferredCardContent, N as DeferredCardContentProps, O as usePeekGestures, P as StackCard, Q as useStackContext, R as StackHeader, S as getVisibleCardIndices, T as parseWidthToPixels, U as StackBackdropProps, V as StackHeaderSlotProps, W as CardStackViewport, X as useIsTopCard, Y as useCardStack, Z as useStackCards, _ as getCardOffset, _t as PushOptions, a as createExitTransition, at as CardPushOptions, b as getResponsiveCardOffset, bt as StackState, c as peekDragSpring, ct as CardSpec, d as reducedMotionBackdropVariants, dt as CardStackViewportProps, et as AnimationConfig, f as snapBackSpring, ft as DismissOptions, g as calculateResponsiveOffset, gt as PeekGestureConfig, h as ResponsiveOffsetResult, ht as MobileConfig, i as createEnterTransition, it as CardInjectedProps, j as useStackResponsive, k as UseStackResponsiveResult, l as peekHoverSpring, lt as CardStackApi, m as ResponsiveOffsetConfig, mt as LayoutMode, n as backdropVariants, nt as CardComponent, o as createOffsetTransition, ot as CardRouteDefinition, p as swipeDismissTransition, pt as GestureConfig, q as useCardInjectedProps, r as createCardVariants, rt as CardId, s as createReducedMotionVariants, st as CardRouteMap, t as DEFAULT_ANIMATION_CONFIG, tt as BackdropConfig, u as peekSlideSpring, ut as CardStackProviderProps, v as getCardZIndex, vt as StackAction, w as normalizeWidth, x as getSideBySideOffset, y as getCascadeOffset, yt as StackContextValue, z as StackHeaderProps } from "../../index-
|
|
1
|
+
import { $ as useStackLayoutMode, A as useIsMobile, B as StackHeaderSlot, C as isCardVisible, D as UsePeekGesturesResult, E as UsePeekGesturesOptions, F as StackCardProps, G as CardStackProvider, H as StackBackdrop, I as UseStackGesturesResult, J as useCardReady, K as useCardIndex, L as useStackGestures, M as DeferredCardContent, N as DeferredCardContentProps, O as usePeekGestures, P as StackCard, Q as useStackContext, R as StackHeader, S as getVisibleCardIndices, T as parseWidthToPixels, U as StackBackdropProps, V as StackHeaderSlotProps, W as CardStackViewport, X as useIsTopCard, Y as useCardStack, Z as useStackCards, _ as getCardOffset, _t as PushOptions, a as createExitTransition, at as CardPushOptions, b as getResponsiveCardOffset, bt as StackState, c as peekDragSpring, ct as CardSpec, d as reducedMotionBackdropVariants, dt as CardStackViewportProps, et as AnimationConfig, f as snapBackSpring, ft as DismissOptions, g as calculateResponsiveOffset, gt as PeekGestureConfig, h as ResponsiveOffsetResult, ht as MobileConfig, i as createEnterTransition, it as CardInjectedProps, j as useStackResponsive, k as UseStackResponsiveResult, l as peekHoverSpring, lt as CardStackApi, m as ResponsiveOffsetConfig, mt as LayoutMode, n as backdropVariants, nt as CardComponent, o as createOffsetTransition, ot as CardRouteDefinition, p as swipeDismissTransition, pt as GestureConfig, q as useCardInjectedProps, r as createCardVariants, rt as CardId, s as createReducedMotionVariants, st as CardRouteMap, t as DEFAULT_ANIMATION_CONFIG, tt as BackdropConfig, u as peekSlideSpring, ut as CardStackProviderProps, v as getCardZIndex, vt as StackAction, w as normalizeWidth, x as getSideBySideOffset, y as getCascadeOffset, yt as StackContextValue, z as StackHeaderProps } from "../../index-B7cT7gZU.cjs";
|
|
2
2
|
export { type AnimationConfig, type BackdropConfig, type CardComponent, type CardId, type CardInjectedProps, type CardPushOptions, type CardRouteDefinition, type CardRouteMap, type CardSpec, type CardStackApi, CardStackProvider, type CardStackProviderProps, CardStackViewport, type CardStackViewportProps, DEFAULT_ANIMATION_CONFIG, DeferredCardContent, type DeferredCardContentProps, type DismissOptions, type GestureConfig, type LayoutMode, type MobileConfig, type PeekGestureConfig, type PushOptions, type ResponsiveOffsetConfig, type ResponsiveOffsetResult, type StackAction, StackBackdrop, type StackBackdropProps, StackCard, type StackCardProps, type StackContextValue, StackHeader, type StackHeaderProps, StackHeaderSlot, type StackHeaderSlotProps, type StackState, type UsePeekGesturesOptions, type UsePeekGesturesResult, type UseStackGesturesResult, type UseStackResponsiveResult, 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 };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as useStackLayoutMode, A as useIsMobile, B as StackHeaderSlot, C as isCardVisible, D as UsePeekGesturesResult, E as UsePeekGesturesOptions, F as StackCardProps, G as CardStackProvider, H as StackBackdrop, I as UseStackGesturesResult, J as useCardReady, K as useCardIndex, L as useStackGestures, M as DeferredCardContent, N as DeferredCardContentProps, O as usePeekGestures, P as StackCard, Q as useStackContext, R as StackHeader, S as getVisibleCardIndices, T as parseWidthToPixels, U as StackBackdropProps, V as StackHeaderSlotProps, W as CardStackViewport, X as useIsTopCard, Y as useCardStack, Z as useStackCards, _ as getCardOffset, _t as PushOptions, a as createExitTransition, at as CardPushOptions, b as getResponsiveCardOffset, bt as StackState, c as peekDragSpring, ct as CardSpec, d as reducedMotionBackdropVariants, dt as CardStackViewportProps, et as AnimationConfig, f as snapBackSpring, ft as DismissOptions, g as calculateResponsiveOffset, gt as PeekGestureConfig, h as ResponsiveOffsetResult, ht as MobileConfig, i as createEnterTransition, it as CardInjectedProps, j as useStackResponsive, k as UseStackResponsiveResult, l as peekHoverSpring, lt as CardStackApi, m as ResponsiveOffsetConfig, mt as LayoutMode, n as backdropVariants, nt as CardComponent, o as createOffsetTransition, ot as CardRouteDefinition, p as swipeDismissTransition, pt as GestureConfig, q as useCardInjectedProps, r as createCardVariants, rt as CardId, s as createReducedMotionVariants, st as CardRouteMap, t as DEFAULT_ANIMATION_CONFIG, tt as BackdropConfig, u as peekSlideSpring, ut as CardStackProviderProps, v as getCardZIndex, vt as StackAction, w as normalizeWidth, x as getSideBySideOffset, y as getCascadeOffset, yt as StackContextValue, z as StackHeaderProps } from "../../index-
|
|
1
|
+
import { $ as useStackLayoutMode, A as useIsMobile, B as StackHeaderSlot, C as isCardVisible, D as UsePeekGesturesResult, E as UsePeekGesturesOptions, F as StackCardProps, G as CardStackProvider, H as StackBackdrop, I as UseStackGesturesResult, J as useCardReady, K as useCardIndex, L as useStackGestures, M as DeferredCardContent, N as DeferredCardContentProps, O as usePeekGestures, P as StackCard, Q as useStackContext, R as StackHeader, S as getVisibleCardIndices, T as parseWidthToPixels, U as StackBackdropProps, V as StackHeaderSlotProps, W as CardStackViewport, X as useIsTopCard, Y as useCardStack, Z as useStackCards, _ as getCardOffset, _t as PushOptions, a as createExitTransition, at as CardPushOptions, b as getResponsiveCardOffset, bt as StackState, c as peekDragSpring, ct as CardSpec, d as reducedMotionBackdropVariants, dt as CardStackViewportProps, et as AnimationConfig, f as snapBackSpring, ft as DismissOptions, g as calculateResponsiveOffset, gt as PeekGestureConfig, h as ResponsiveOffsetResult, ht as MobileConfig, i as createEnterTransition, it as CardInjectedProps, j as useStackResponsive, k as UseStackResponsiveResult, l as peekHoverSpring, lt as CardStackApi, m as ResponsiveOffsetConfig, mt as LayoutMode, n as backdropVariants, nt as CardComponent, o as createOffsetTransition, ot as CardRouteDefinition, p as swipeDismissTransition, pt as GestureConfig, q as useCardInjectedProps, r as createCardVariants, rt as CardId, s as createReducedMotionVariants, st as CardRouteMap, t as DEFAULT_ANIMATION_CONFIG, tt as BackdropConfig, u as peekSlideSpring, ut as CardStackProviderProps, v as getCardZIndex, vt as StackAction, w as normalizeWidth, x as getSideBySideOffset, y as getCascadeOffset, yt as StackContextValue, z as StackHeaderProps } from "../../index-B7cT7gZU.js";
|
|
2
2
|
export { type AnimationConfig, type BackdropConfig, type CardComponent, type CardId, type CardInjectedProps, type CardPushOptions, type CardRouteDefinition, type CardRouteMap, type CardSpec, type CardStackApi, CardStackProvider, type CardStackProviderProps, CardStackViewport, type CardStackViewportProps, DEFAULT_ANIMATION_CONFIG, DeferredCardContent, type DeferredCardContentProps, type DismissOptions, type GestureConfig, type LayoutMode, type MobileConfig, type PeekGestureConfig, type PushOptions, type ResponsiveOffsetConfig, type ResponsiveOffsetResult, type StackAction, StackBackdrop, type StackBackdropProps, StackCard, type StackCardProps, type StackContextValue, StackHeader, type StackHeaderProps, StackHeaderSlot, type StackHeaderSlotProps, type StackState, type UsePeekGesturesOptions, type UsePeekGesturesResult, type UseStackGesturesResult, type UseStackResponsiveResult, 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 };
|
|
@@ -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 };
|
|
@@ -12,7 +12,7 @@ let lucide_react = require("lucide-react");
|
|
|
12
12
|
//#region src/components/stepper.tsx
|
|
13
13
|
const StepperContext = (0, react.createContext)(void 0);
|
|
14
14
|
const StepItemContext = (0, react.createContext)(void 0);
|
|
15
|
-
const iconSwapClass = "transition-[opacity,scale,filter] duration-
|
|
15
|
+
const iconSwapClass = "transition-[opacity,scale,filter] duration-(--duration-slow) ease-out motion-reduce:transition-none";
|
|
16
16
|
const iconSwapVisible = "scale-100 opacity-100 blur-0";
|
|
17
17
|
const iconSwapHidden = "scale-[0.25] opacity-0 blur-[4px]";
|
|
18
18
|
const useStepper = () => {
|
|
@@ -40,7 +40,8 @@ function Stepper({ defaultValue = 0, value, onValueChange, orientation = "horizo
|
|
|
40
40
|
},
|
|
41
41
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
42
42
|
"data-slot": "stepper",
|
|
43
|
-
className: require_utils.cn(`group/stepper inline-flex data-[orientation=horizontal]
|
|
43
|
+
className: require_utils.cn(`group/stepper inline-flex max-w-full min-w-0 data-[orientation=horizontal]:-my-2 data-[orientation=horizontal]:w-full
|
|
44
|
+
data-[orientation=horizontal]:flex-row data-[orientation=horizontal]:overflow-x-auto data-[orientation=horizontal]:py-2
|
|
44
45
|
data-[orientation=vertical]:flex-col`, className),
|
|
45
46
|
"data-orientation": orientation,
|
|
46
47
|
...props
|
|
@@ -60,8 +61,8 @@ function StepperItem({ step, completed = false, disabled = false, loading = fals
|
|
|
60
61
|
},
|
|
61
62
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
62
63
|
"data-slot": "stepper-item",
|
|
63
|
-
className: require_utils.cn(`group/step flex items-center group-data-[orientation=horizontal]/stepper:flex-row
|
|
64
|
-
group-data-[orientation=vertical]/stepper:flex-col`, className),
|
|
64
|
+
className: require_utils.cn(`group/step flex min-w-0 items-center group-data-[orientation=horizontal]/stepper:flex-row
|
|
65
|
+
group-data-[orientation=vertical]/stepper:flex-col group-data-[orientation=vertical]/stepper:items-start`, className),
|
|
65
66
|
"data-state": state,
|
|
66
67
|
...isLoading ? { "data-loading": true } : {},
|
|
67
68
|
...props,
|
|
@@ -72,9 +73,9 @@ function StepperItem({ step, completed = false, disabled = false, loading = fals
|
|
|
72
73
|
function StepperTrigger({ asChild = false, static: isStatic, className, children, ...props }) {
|
|
73
74
|
const { setActiveStep } = useStepper();
|
|
74
75
|
const { step, isDisabled } = useStepItem();
|
|
75
|
-
const triggerClassName = require_utils.cn(`focus-visible:
|
|
76
|
-
duration-
|
|
77
|
-
disabled:pointer-events-none disabled:opacity-
|
|
76
|
+
const triggerClassName = require_utils.cn(`focus-visible:ring-ring/50 -my-1 inline-flex min-w-0 items-center gap-3 rounded-full py-1 transition-transform
|
|
77
|
+
duration-(--duration-moderate) ease-out outline-none focus-visible:z-10 focus-visible:ring-[3px]
|
|
78
|
+
disabled:pointer-events-none disabled:opacity-64 [&>*]:min-w-0`, !isStatic && "motion-safe:hover:scale-105 motion-safe:active:not-disabled:scale-[0.96]", className);
|
|
78
79
|
if (asChild) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_slot.Slot, {
|
|
79
80
|
"data-slot": "stepper-trigger",
|
|
80
81
|
className: triggerClassName,
|
|
@@ -100,12 +101,12 @@ function StepperIndicator({ asChild = false, className, children, ...props }) {
|
|
|
100
101
|
"data-slot": "stepper-indicator",
|
|
101
102
|
className: require_utils.cn(`bg-muted text-muted-foreground data-[state=active]:bg-primary data-[state=completed]:bg-primary
|
|
102
103
|
data-[state=active]:text-primary-foreground data-[state=completed]:text-primary-foreground relative flex size-6
|
|
103
|
-
shrink-0 items-center justify-center rounded-full text-xs font-medium transition-[color,background-color] duration-
|
|
104
|
+
shrink-0 items-center justify-center rounded-full text-xs font-medium transition-[color,background-color] duration-(--duration-slow) ease-out`, className),
|
|
104
105
|
"data-state": state,
|
|
105
106
|
...props,
|
|
106
107
|
children: asChild ? children : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
107
108
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
108
|
-
className: require_utils.cn("absolute", iconSwapClass, showNumber ? iconSwapVisible : iconSwapHidden),
|
|
109
|
+
className: require_utils.cn("absolute tabular-nums", iconSwapClass, showNumber ? iconSwapVisible : iconSwapHidden),
|
|
109
110
|
children: step
|
|
110
111
|
}),
|
|
111
112
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.CheckIcon, {
|
|
@@ -124,26 +125,31 @@ function StepperIndicator({ asChild = false, className, children, ...props }) {
|
|
|
124
125
|
] })
|
|
125
126
|
});
|
|
126
127
|
}
|
|
127
|
-
function StepperTitle({ className, ...props }) {
|
|
128
|
+
function StepperTitle({ className, children, ...props }) {
|
|
128
129
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
129
130
|
"data-slot": "stepper-title",
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
title: typeof children === "string" ? children : void 0,
|
|
132
|
+
className: require_utils.cn("text-sm font-medium [overflow-wrap:anywhere] group-data-[orientation=horizontal]/stepper:truncate transition-[color,background-color,border-color,text-decoration-color,fill,stroke,box-shadow] duration-(--duration-slow) ease-out", className),
|
|
133
|
+
...props,
|
|
134
|
+
children
|
|
132
135
|
});
|
|
133
136
|
}
|
|
134
|
-
function StepperDescription({ className, ...props }) {
|
|
137
|
+
function StepperDescription({ className, children, ...props }) {
|
|
135
138
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
136
139
|
"data-slot": "stepper-description",
|
|
137
|
-
|
|
138
|
-
|
|
140
|
+
title: typeof children === "string" ? children : void 0,
|
|
141
|
+
className: require_utils.cn("text-muted-foreground text-sm [overflow-wrap:anywhere] group-data-[orientation=horizontal]/stepper:truncate transition-[color,background-color,border-color,text-decoration-color,fill,stroke,box-shadow] duration-(--duration-slow) ease-out", className),
|
|
142
|
+
...props,
|
|
143
|
+
children
|
|
139
144
|
});
|
|
140
145
|
}
|
|
141
146
|
function StepperSeparator({ className, ...props }) {
|
|
142
147
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
143
148
|
"data-slot": "stepper-separator",
|
|
144
|
-
className: require_utils.cn(`bg-muted group-data-[state=completed]/step:bg-primary m-0.5 transition-
|
|
149
|
+
className: require_utils.cn(`bg-muted group-data-[state=completed]/step:bg-primary m-0.5 transition-[color,background-color,border-color,text-decoration-color,fill,stroke,box-shadow] duration-(--duration-slow) ease-out
|
|
145
150
|
group-data-[orientation=horizontal]/stepper:h-0.5 group-data-[orientation=horizontal]/stepper:w-full
|
|
146
|
-
group-data-[orientation=horizontal]/stepper:flex-1
|
|
151
|
+
group-data-[orientation=horizontal]/stepper:flex-1
|
|
152
|
+
group-data-[orientation=vertical]/stepper:ms-[calc(--spacing(3)-1px)] group-data-[orientation=vertical]/stepper:h-12
|
|
147
153
|
group-data-[orientation=vertical]/stepper:w-0.5`, className),
|
|
148
154
|
...props
|
|
149
155
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepper.cjs","names":["React","cn","Slot","CheckIcon","LoaderCircleIcon"],"sources":["../../src/components/stepper.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { createContext, useContext } from 'react';\nimport { CheckIcon, LoaderCircleIcon } from 'lucide-react';\nimport { Slot } from '../lib/slot';\n\nimport { cn } from '../lib/utils';\n\n// Types\ntype StepperContextValue = {\n\tactiveStep: number;\n\tsetActiveStep: (step: number) => void;\n\torientation: 'horizontal' | 'vertical';\n};\n\ntype StepItemContextValue = {\n\tstep: number;\n\tstate: StepState;\n\tisDisabled: boolean;\n\tisLoading: boolean;\n};\n\ntype StepState = 'active' | 'completed' | 'inactive' | 'loading';\n\n// Contexts\nconst StepperContext = createContext<StepperContextValue | undefined>(undefined);\nconst StepItemContext = createContext<StepItemContextValue | undefined>(undefined);\n\nconst iconSwapClass =\n\t'transition-[opacity,scale,filter] duration-300 ease-[cubic-bezier(0.2,0,0,1)] motion-reduce:transition-none';\nconst iconSwapVisible = 'scale-100 opacity-100 blur-0';\nconst iconSwapHidden = 'scale-[0.25] opacity-0 blur-[4px]';\n\nconst useStepper = () => {\n\tconst context = useContext(StepperContext);\n\tif (!context) {\n\t\tthrow new Error('useStepper must be used within a Stepper');\n\t}\n\treturn context;\n};\n\nconst useStepItem = () => {\n\tconst context = useContext(StepItemContext);\n\tif (!context) {\n\t\tthrow new Error('useStepItem must be used within a StepperItem');\n\t}\n\treturn context;\n};\n\n// Components\ninterface StepperProps extends React.HTMLAttributes<HTMLDivElement> {\n\tdefaultValue?: number;\n\tvalue?: number;\n\tonValueChange?: (value: number) => void;\n\torientation?: 'horizontal' | 'vertical';\n}\n\nfunction Stepper({\n\tdefaultValue = 0,\n\tvalue,\n\tonValueChange,\n\torientation = 'horizontal',\n\tclassName,\n\t...props\n}: StepperProps) {\n\tconst [activeStep, setInternalStep] = React.useState(defaultValue);\n\n\tconst setActiveStep = React.useCallback(\n\t\t(step: number) => {\n\t\t\tif (value === undefined) {\n\t\t\t\tsetInternalStep(step);\n\t\t\t}\n\t\t\tonValueChange?.(step);\n\t\t},\n\t\t[value, onValueChange],\n\t);\n\n\tconst currentStep = value ?? activeStep;\n\n\treturn (\n\t\t<StepperContext.Provider\n\t\t\tvalue={{\n\t\t\t\tactiveStep: currentStep,\n\t\t\t\tsetActiveStep,\n\t\t\t\torientation,\n\t\t\t}}\n\t\t>\n\t\t\t<div\n\t\t\t\tdata-slot=\"stepper\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t`group/stepper inline-flex data-[orientation=horizontal]:w-full data-[orientation=horizontal]:flex-row\n\t\t\t\t\tdata-[orientation=vertical]:flex-col`,\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tdata-orientation={orientation}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</StepperContext.Provider>\n\t);\n}\n\n// StepperItem\ninterface StepperItemProps extends React.HTMLAttributes<HTMLDivElement> {\n\tstep: number;\n\tcompleted?: boolean;\n\tdisabled?: boolean;\n\tloading?: boolean;\n}\n\nfunction StepperItem({\n\tstep,\n\tcompleted = false,\n\tdisabled = false,\n\tloading = false,\n\tclassName,\n\tchildren,\n\t...props\n}: StepperItemProps) {\n\tconst { activeStep } = useStepper();\n\n\tconst state: StepState = completed || step < activeStep ? 'completed' : activeStep === step ? 'active' : 'inactive';\n\n\tconst isLoading = loading && step === activeStep;\n\n\treturn (\n\t\t<StepItemContext.Provider value={{ step, state, isDisabled: disabled, isLoading }}>\n\t\t\t<div\n\t\t\t\tdata-slot=\"stepper-item\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t`group/step flex items-center group-data-[orientation=horizontal]/stepper:flex-row\n\t\t\t\t\tgroup-data-[orientation=vertical]/stepper:flex-col`,\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tdata-state={state}\n\t\t\t\t{...(isLoading ? { 'data-loading': true } : {})}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</StepItemContext.Provider>\n\t);\n}\n\n// StepperTrigger\ninterface StepperTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n\tasChild?: boolean;\n\t/** Disables hover and press scaling when motion would distract. */\n\tstatic?: boolean;\n}\n\nfunction StepperTrigger({ asChild = false, static: isStatic, className, children, ...props }: StepperTriggerProps) {\n\tconst { setActiveStep } = useStepper();\n\tconst { step, isDisabled } = useStepItem();\n\n\tconst triggerClassName = cn(\n\t\t`focus-visible:border-ring focus-visible:ring-ring/50 inline-flex items-center gap-3 rounded-full transition-transform\n\t\tduration-150 ease-out outline-none focus-visible:z-10 focus-visible:ring-[3px]\n\t\tdisabled:pointer-events-none disabled:opacity-50`,\n\t\t!isStatic && 'motion-safe:hover:scale-105 motion-safe:active:not-disabled:scale-[0.96]',\n\t\tclassName,\n\t);\n\n\tif (asChild) {\n\t\treturn (\n\t\t\t<Slot\n\t\t\t\tdata-slot=\"stepper-trigger\"\n\t\t\t\tclassName={triggerClassName}\n\t\t\t\tonClick={() => setActiveStep(step)}\n\t\t\t\tdisabled={isDisabled}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</Slot>\n\t\t);\n\t}\n\n\treturn (\n\t\t<button\n\t\t\tdata-slot=\"stepper-trigger\"\n\t\t\tclassName={triggerClassName}\n\t\t\tonClick={() => setActiveStep(step)}\n\t\t\tdisabled={isDisabled}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t</button>\n\t);\n}\n\n// StepperIndicator\ninterface StepperIndicatorProps extends React.HTMLAttributes<HTMLDivElement> {\n\tasChild?: boolean;\n}\n\nfunction StepperIndicator({ asChild = false, className, children, ...props }: StepperIndicatorProps) {\n\tconst { state, step, isLoading } = useStepItem();\n\tconst showNumber = !isLoading && state !== 'completed';\n\tconst showCheck = !isLoading && state === 'completed';\n\n\treturn (\n\t\t<span\n\t\t\tdata-slot=\"stepper-indicator\"\n\t\t\tclassName={cn(\n\t\t\t\t`bg-muted text-muted-foreground data-[state=active]:bg-primary data-[state=completed]:bg-primary\n\t\t\t\t\tdata-[state=active]:text-primary-foreground data-[state=completed]:text-primary-foreground relative flex size-6\n\t\t\t\t\tshrink-0 items-center justify-center rounded-full text-xs font-medium transition-[color,background-color] duration-200 ease-out`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-state={state}\n\t\t\t{...props}\n\t\t>\n\t\t\t{asChild ? (\n\t\t\t\tchildren\n\t\t\t) : (\n\t\t\t\t<>\n\t\t\t\t\t<span className={cn('absolute', iconSwapClass, showNumber ? iconSwapVisible : iconSwapHidden)}>\n\t\t\t\t\t\t{step}\n\t\t\t\t\t</span>\n\t\t\t\t\t<CheckIcon\n\t\t\t\t\t\tclassName={cn('absolute', iconSwapClass, showCheck ? iconSwapVisible : iconSwapHidden)}\n\t\t\t\t\t\tsize={16}\n\t\t\t\t\t\taria-hidden='true'\n\t\t\t\t\t/>\n\t\t\t\t\t<span className={cn('absolute', iconSwapClass, isLoading ? iconSwapVisible : iconSwapHidden)}>\n\t\t\t\t\t\t<LoaderCircleIcon\n\t\t\t\t\t\t\tclassName={cn(isLoading && 'motion-safe:animate-spin')}\n\t\t\t\t\t\t\tsize={14}\n\t\t\t\t\t\t\taria-hidden='true'\n\t\t\t\t\t\t/>\n\t\t\t\t\t</span>\n\t\t\t\t</>\n\t\t\t)}\n\t\t</span>\n\t);\n}\n\n// StepperTitle\nfunction StepperTitle({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>) {\n\treturn (\n\t\t<h3\n\t\t\tdata-slot=\"stepper-title\"\n\t\t\tclassName={cn('text-sm font-medium transition-colors duration-200 ease-out', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\n// StepperDescription\nfunction StepperDescription({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>) {\n\treturn (\n\t\t<p\n\t\t\tdata-slot=\"stepper-description\"\n\t\t\tclassName={cn('text-muted-foreground text-sm transition-colors duration-200 ease-out', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\n// StepperSeparator\nfunction StepperSeparator({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"stepper-separator\"\n\t\t\tclassName={cn(\n\t\t\t\t`bg-muted group-data-[state=completed]/step:bg-primary m-0.5 transition-colors duration-200 ease-out\n\t\t\t\tgroup-data-[orientation=horizontal]/stepper:h-0.5 group-data-[orientation=horizontal]/stepper:w-full\n\t\t\t\tgroup-data-[orientation=horizontal]/stepper:flex-1 group-data-[orientation=vertical]/stepper:h-12\n\t\t\t\tgroup-data-[orientation=vertical]/stepper:w-0.5`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport { Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger };\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"stepper.cjs","names":["React","cn","Slot","CheckIcon","LoaderCircleIcon"],"sources":["../../src/components/stepper.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { createContext, useContext } from 'react';\nimport { CheckIcon, LoaderCircleIcon } from 'lucide-react';\nimport { Slot } from '../lib/slot';\n\nimport { cn } from '../lib/utils';\n\n// Types\ntype StepperContextValue = {\n\tactiveStep: number;\n\tsetActiveStep: (step: number) => void;\n\torientation: 'horizontal' | 'vertical';\n};\n\ntype StepItemContextValue = {\n\tstep: number;\n\tstate: StepState;\n\tisDisabled: boolean;\n\tisLoading: boolean;\n};\n\ntype StepState = 'active' | 'completed' | 'inactive' | 'loading';\n\n// Contexts\nconst StepperContext = createContext<StepperContextValue | undefined>(undefined);\nconst StepItemContext = createContext<StepItemContextValue | undefined>(undefined);\n\nconst iconSwapClass =\n\t'transition-[opacity,scale,filter] duration-(--duration-slow) ease-out motion-reduce:transition-none';\nconst iconSwapVisible = 'scale-100 opacity-100 blur-0';\nconst iconSwapHidden = 'scale-[0.25] opacity-0 blur-[4px]';\n\nconst useStepper = () => {\n\tconst context = useContext(StepperContext);\n\tif (!context) {\n\t\tthrow new Error('useStepper must be used within a Stepper');\n\t}\n\treturn context;\n};\n\nconst useStepItem = () => {\n\tconst context = useContext(StepItemContext);\n\tif (!context) {\n\t\tthrow new Error('useStepItem must be used within a StepperItem');\n\t}\n\treturn context;\n};\n\n// Components\ninterface StepperProps extends React.HTMLAttributes<HTMLDivElement> {\n\tdefaultValue?: number;\n\tvalue?: number;\n\tonValueChange?: (value: number) => void;\n\torientation?: 'horizontal' | 'vertical';\n}\n\nfunction Stepper({\n\tdefaultValue = 0,\n\tvalue,\n\tonValueChange,\n\torientation = 'horizontal',\n\tclassName,\n\t...props\n}: StepperProps) {\n\tconst [activeStep, setInternalStep] = React.useState(defaultValue);\n\n\tconst setActiveStep = React.useCallback(\n\t\t(step: number) => {\n\t\t\tif (value === undefined) {\n\t\t\t\tsetInternalStep(step);\n\t\t\t}\n\t\t\tonValueChange?.(step);\n\t\t},\n\t\t[value, onValueChange],\n\t);\n\n\tconst currentStep = value ?? activeStep;\n\n\treturn (\n\t\t<StepperContext.Provider\n\t\t\tvalue={{\n\t\t\t\tactiveStep: currentStep,\n\t\t\t\tsetActiveStep,\n\t\t\t\torientation,\n\t\t\t}}\n\t\t>\n\t\t\t<div\n\t\t\t\tdata-slot=\"stepper\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t// Never wider than the container. Labels truncate before connectors shrink, and\n\t\t\t\t\t// horizontal scrolls only as a last resort instead of widening the page.\n\t\t\t\t\t// A scroll container clips on both axes, and a trigger reaches 4px past the row (`-my-1 py-1`) with a 3px\n\t\t\t\t\t// focus ring around that. The 0.5rem of vertical padding keeps both inside the clip and the negative\n\t\t\t\t\t// margin takes it back, so the stepper covers the height it always did. It adds nothing sideways: a box\n\t\t\t\t\t// wider than its container would widen the page when the stepper runs edge to edge.\n\t\t\t\t\t`group/stepper inline-flex max-w-full min-w-0 data-[orientation=horizontal]:-my-2 data-[orientation=horizontal]:w-full\n\t\t\t\t\tdata-[orientation=horizontal]:flex-row data-[orientation=horizontal]:overflow-x-auto data-[orientation=horizontal]:py-2\n\t\t\t\t\tdata-[orientation=vertical]:flex-col`,\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tdata-orientation={orientation}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</StepperContext.Provider>\n\t);\n}\n\n// StepperItem\ninterface StepperItemProps extends React.HTMLAttributes<HTMLDivElement> {\n\tstep: number;\n\tcompleted?: boolean;\n\tdisabled?: boolean;\n\tloading?: boolean;\n}\n\nfunction StepperItem({\n\tstep,\n\tcompleted = false,\n\tdisabled = false,\n\tloading = false,\n\tclassName,\n\tchildren,\n\t...props\n}: StepperItemProps) {\n\tconst { activeStep } = useStepper();\n\n\tconst state: StepState = completed || step < activeStep ? 'completed' : activeStep === step ? 'active' : 'inactive';\n\n\tconst isLoading = loading && step === activeStep;\n\n\treturn (\n\t\t<StepItemContext.Provider value={{ step, state, isDisabled: disabled, isLoading }}>\n\t\t\t<div\n\t\t\t\tdata-slot=\"stepper-item\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t`group/step flex min-w-0 items-center group-data-[orientation=horizontal]/stepper:flex-row\n\t\t\t\t\tgroup-data-[orientation=vertical]/stepper:flex-col group-data-[orientation=vertical]/stepper:items-start`,\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tdata-state={state}\n\t\t\t\t{...(isLoading ? { 'data-loading': true } : {})}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</StepItemContext.Provider>\n\t);\n}\n\n// StepperTrigger\ninterface StepperTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n\tasChild?: boolean;\n\t/** Disables hover and press scaling when motion would distract. */\n\tstatic?: boolean;\n}\n\nfunction StepperTrigger({ asChild = false, static: isStatic, className, children, ...props }: StepperTriggerProps) {\n\tconst { setActiveStep } = useStepper();\n\tconst { step, isDisabled } = useStepItem();\n\n\tconst triggerClassName = cn(\n\t\t`focus-visible:ring-ring/50 -my-1 inline-flex min-w-0 items-center gap-3 rounded-full py-1 transition-transform\n\t\tduration-(--duration-moderate) ease-out outline-none focus-visible:z-10 focus-visible:ring-[3px]\n\t\tdisabled:pointer-events-none disabled:opacity-64 [&>*]:min-w-0`,\n\t\t!isStatic && 'motion-safe:hover:scale-105 motion-safe:active:not-disabled:scale-[0.96]',\n\t\tclassName,\n\t);\n\n\tif (asChild) {\n\t\treturn (\n\t\t\t<Slot\n\t\t\t\tdata-slot=\"stepper-trigger\"\n\t\t\t\tclassName={triggerClassName}\n\t\t\t\tonClick={() => setActiveStep(step)}\n\t\t\t\tdisabled={isDisabled}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</Slot>\n\t\t);\n\t}\n\n\treturn (\n\t\t<button\n\t\t\tdata-slot=\"stepper-trigger\"\n\t\t\tclassName={triggerClassName}\n\t\t\tonClick={() => setActiveStep(step)}\n\t\t\tdisabled={isDisabled}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t</button>\n\t);\n}\n\n// StepperIndicator\ninterface StepperIndicatorProps extends React.HTMLAttributes<HTMLDivElement> {\n\tasChild?: boolean;\n}\n\nfunction StepperIndicator({ asChild = false, className, children, ...props }: StepperIndicatorProps) {\n\tconst { state, step, isLoading } = useStepItem();\n\tconst showNumber = !isLoading && state !== 'completed';\n\tconst showCheck = !isLoading && state === 'completed';\n\n\treturn (\n\t\t<span\n\t\t\tdata-slot=\"stepper-indicator\"\n\t\t\tclassName={cn(\n\t\t\t\t`bg-muted text-muted-foreground data-[state=active]:bg-primary data-[state=completed]:bg-primary\n\t\t\t\t\tdata-[state=active]:text-primary-foreground data-[state=completed]:text-primary-foreground relative flex size-6\n\t\t\t\t\tshrink-0 items-center justify-center rounded-full text-xs font-medium transition-[color,background-color] duration-(--duration-slow) ease-out`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-state={state}\n\t\t\t{...props}\n\t\t>\n\t\t\t{asChild ? (\n\t\t\t\tchildren\n\t\t\t) : (\n\t\t\t\t<>\n\t\t\t\t\t<span\n\t\t\t\t\t\tclassName={cn('absolute tabular-nums', iconSwapClass, showNumber ? iconSwapVisible : iconSwapHidden)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{step}\n\t\t\t\t\t</span>\n\t\t\t\t\t<CheckIcon\n\t\t\t\t\t\tclassName={cn('absolute', iconSwapClass, showCheck ? iconSwapVisible : iconSwapHidden)}\n\t\t\t\t\t\tsize={16}\n\t\t\t\t\t\taria-hidden='true'\n\t\t\t\t\t/>\n\t\t\t\t\t<span className={cn('absolute', iconSwapClass, isLoading ? iconSwapVisible : iconSwapHidden)}>\n\t\t\t\t\t\t<LoaderCircleIcon\n\t\t\t\t\t\t\tclassName={cn(isLoading && 'motion-safe:animate-spin')}\n\t\t\t\t\t\t\tsize={14}\n\t\t\t\t\t\t\taria-hidden='true'\n\t\t\t\t\t\t/>\n\t\t\t\t\t</span>\n\t\t\t\t</>\n\t\t\t)}\n\t\t</span>\n\t);\n}\n\n// StepperTitle\nfunction StepperTitle({ className, children, ...props }: React.HTMLAttributes<HTMLHeadingElement>) {\n\treturn (\n\t\t<h3\n\t\t\tdata-slot=\"stepper-title\"\n\t\t\ttitle={typeof children === 'string' ? children : undefined}\n\t\t\tclassName={cn(\n\t\t\t\t'text-sm font-medium [overflow-wrap:anywhere] group-data-[orientation=horizontal]/stepper:truncate transition-[color,background-color,border-color,text-decoration-color,fill,stroke,box-shadow] duration-(--duration-slow) ease-out',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t</h3>\n\t);\n}\n\n// StepperDescription\nfunction StepperDescription({ className, children, ...props }: React.HTMLAttributes<HTMLParagraphElement>) {\n\treturn (\n\t\t<p\n\t\t\tdata-slot=\"stepper-description\"\n\t\t\ttitle={typeof children === 'string' ? children : undefined}\n\t\t\tclassName={cn(\n\t\t\t\t'text-muted-foreground text-sm [overflow-wrap:anywhere] group-data-[orientation=horizontal]/stepper:truncate transition-[color,background-color,border-color,text-decoration-color,fill,stroke,box-shadow] duration-(--duration-slow) ease-out',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t</p>\n\t);\n}\n\n// StepperSeparator\nfunction StepperSeparator({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"stepper-separator\"\n\t\t\tclassName={cn(\n\t\t\t\t`bg-muted group-data-[state=completed]/step:bg-primary m-0.5 transition-[color,background-color,border-color,text-decoration-color,fill,stroke,box-shadow] duration-(--duration-slow) ease-out\n\t\t\t\tgroup-data-[orientation=horizontal]/stepper:h-0.5 group-data-[orientation=horizontal]/stepper:w-full\n\t\t\t\tgroup-data-[orientation=horizontal]/stepper:flex-1\n\t\t\t\tgroup-data-[orientation=vertical]/stepper:ms-[calc(--spacing(3)-1px)] group-data-[orientation=vertical]/stepper:h-12\n\t\t\t\tgroup-data-[orientation=vertical]/stepper:w-0.5`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport { Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger };\n"],"mappings":"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"}
|
|
@@ -24,8 +24,8 @@ interface StepperIndicatorProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
24
24
|
asChild?: boolean;
|
|
25
25
|
}
|
|
26
26
|
declare function StepperIndicator({ asChild, className, children, ...props }: StepperIndicatorProps): React$1.JSX.Element;
|
|
27
|
-
declare function StepperTitle({ className, ...props }: React$1.HTMLAttributes<HTMLHeadingElement>): React$1.JSX.Element;
|
|
28
|
-
declare function StepperDescription({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): React$1.JSX.Element;
|
|
27
|
+
declare function StepperTitle({ className, children, ...props }: React$1.HTMLAttributes<HTMLHeadingElement>): React$1.JSX.Element;
|
|
28
|
+
declare function StepperDescription({ className, children, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): React$1.JSX.Element;
|
|
29
29
|
declare function StepperSeparator({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger };
|
|
@@ -24,8 +24,8 @@ interface StepperIndicatorProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
24
24
|
asChild?: boolean;
|
|
25
25
|
}
|
|
26
26
|
declare function StepperIndicator({ asChild, className, children, ...props }: StepperIndicatorProps): React$1.JSX.Element;
|
|
27
|
-
declare function StepperTitle({ className, ...props }: React$1.HTMLAttributes<HTMLHeadingElement>): React$1.JSX.Element;
|
|
28
|
-
declare function StepperDescription({ className, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): React$1.JSX.Element;
|
|
27
|
+
declare function StepperTitle({ className, children, ...props }: React$1.HTMLAttributes<HTMLHeadingElement>): React$1.JSX.Element;
|
|
28
|
+
declare function StepperDescription({ className, children, ...props }: React$1.HTMLAttributes<HTMLParagraphElement>): React$1.JSX.Element;
|
|
29
29
|
declare function StepperSeparator({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger };
|