@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,145 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
const require_utils = require('./utils-CzTQ3-VI.cjs');
|
|
3
|
+
const require_tuning = require('./tuning-BRPG7U1U.cjs');
|
|
4
|
+
let react = require("react");
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
+
let motion_react = require("motion/react");
|
|
7
|
+
|
|
8
|
+
//#region src/lib/motion/fluid-highlight.tsx
|
|
9
|
+
/**
|
|
10
|
+
* Base UI toggles a bare `data-highlighted` attribute; cmdk uses
|
|
11
|
+
* `data-selected="true"`; Toggle/ToggleGroup mark the active item with
|
|
12
|
+
* `data-pressed`. The `:not([...="false"])` guards cover components
|
|
13
|
+
* like multi-select that render the attribute explicitly as "false".
|
|
14
|
+
*/
|
|
15
|
+
const TARGET_SELECTOR = "[data-highlighted]:not([data-highlighted=\"false\"]), [data-selected=\"true\"], [data-pressed]:not([data-pressed=\"false\"])";
|
|
16
|
+
const OBSERVED_ATTRIBUTES = [
|
|
17
|
+
"data-highlighted",
|
|
18
|
+
"data-selected",
|
|
19
|
+
"data-pressed"
|
|
20
|
+
];
|
|
21
|
+
/**
|
|
22
|
+
* Where `target` sits inside `container`, in the container's own unscaled pixels. Popups scale in from 95%, and a
|
|
23
|
+
* transform changes no attribute or size to re-measure on, so a rect read on the first frame is shrunken; dividing
|
|
24
|
+
* by the container's current scale gives the size and offset it settles at. Pass `box` when the caller has already
|
|
25
|
+
* measured the container.
|
|
26
|
+
*/
|
|
27
|
+
function unscaledRect(target, container, box = container.getBoundingClientRect()) {
|
|
28
|
+
const t = target.getBoundingClientRect();
|
|
29
|
+
const scaleX = box.width / container.offsetWidth || 1;
|
|
30
|
+
const scaleY = box.height / container.offsetHeight || 1;
|
|
31
|
+
return {
|
|
32
|
+
top: (t.top - box.top) / scaleY,
|
|
33
|
+
left: (t.left - box.left) / scaleX,
|
|
34
|
+
width: t.width / scaleX,
|
|
35
|
+
height: t.height / scaleY
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Track the highlighted descendant of `container` and return its rect in the
|
|
40
|
+
* container's padding-box coordinates. Updates on highlight changes, DOM
|
|
41
|
+
* mutations, and any nested scroll (scroll doesn't bubble, so capture).
|
|
42
|
+
*/
|
|
43
|
+
function useFluidHighlight(container) {
|
|
44
|
+
const [state, setState] = (0, react.useState)(null);
|
|
45
|
+
(0, react.useEffect)(() => {
|
|
46
|
+
if (!container) return;
|
|
47
|
+
const update = () => {
|
|
48
|
+
const target = container.querySelector(TARGET_SELECTOR);
|
|
49
|
+
if (!target) {
|
|
50
|
+
setState((s) => s ? {
|
|
51
|
+
...s,
|
|
52
|
+
visible: false
|
|
53
|
+
} : s);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const offset = unscaledRect(target, container);
|
|
57
|
+
setState({
|
|
58
|
+
rect: {
|
|
59
|
+
...offset,
|
|
60
|
+
top: offset.top - container.clientTop + container.scrollTop,
|
|
61
|
+
left: offset.left - container.clientLeft
|
|
62
|
+
},
|
|
63
|
+
visible: true
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
update();
|
|
67
|
+
const observer = new MutationObserver(update);
|
|
68
|
+
observer.observe(container, {
|
|
69
|
+
attributes: true,
|
|
70
|
+
attributeFilter: OBSERVED_ATTRIBUTES,
|
|
71
|
+
childList: true,
|
|
72
|
+
subtree: true
|
|
73
|
+
});
|
|
74
|
+
const resizeObserver = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(update);
|
|
75
|
+
resizeObserver?.observe(container);
|
|
76
|
+
container.addEventListener("scroll", update, {
|
|
77
|
+
capture: true,
|
|
78
|
+
passive: true
|
|
79
|
+
});
|
|
80
|
+
return () => {
|
|
81
|
+
observer.disconnect();
|
|
82
|
+
resizeObserver?.disconnect();
|
|
83
|
+
container.removeEventListener("scroll", update, { capture: true });
|
|
84
|
+
};
|
|
85
|
+
}, [container]);
|
|
86
|
+
return state;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Traveling highlight for menu/list popups — slides under whichever item is
|
|
90
|
+
* `[data-highlighted]` (Base UI) or `[data-selected="true"]` (cmdk) instead of
|
|
91
|
+
* flashing a per-item background. Render as the first child of a `relative`
|
|
92
|
+
* container; positioned siblings paint on top. No props needed — it locates
|
|
93
|
+
* its own parent as the tracking container.
|
|
94
|
+
*
|
|
95
|
+
* Appears/fades instantly at the target; travel uses the dial-tunable fast
|
|
96
|
+
* spring tier. Reduced-motion renders an untransitioned fill.
|
|
97
|
+
*/
|
|
98
|
+
function FluidHighlight({ className, inset = 0 }) {
|
|
99
|
+
const [container, setContainer] = (0, react.useState)(null);
|
|
100
|
+
const state = useFluidHighlight(container);
|
|
101
|
+
const reduce = (0, motion_react.useReducedMotion)();
|
|
102
|
+
const tier = require_tuning.useSpringTiers().fast;
|
|
103
|
+
const mountRef = (0, react.useCallback)((el) => {
|
|
104
|
+
setContainer(el?.offsetParent ?? el?.parentElement ?? null);
|
|
105
|
+
}, []);
|
|
106
|
+
const rect = state ? {
|
|
107
|
+
top: state.rect.top + inset,
|
|
108
|
+
left: state.rect.left + inset,
|
|
109
|
+
width: state.rect.width - inset * 2,
|
|
110
|
+
height: state.rect.height - inset * 2
|
|
111
|
+
} : null;
|
|
112
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(motion_react.motion.span, {
|
|
113
|
+
ref: mountRef,
|
|
114
|
+
"aria-hidden": true,
|
|
115
|
+
className: require_utils.cn("pointer-events-none absolute rounded-sm bg-accent", className),
|
|
116
|
+
initial: rect ? {
|
|
117
|
+
...rect,
|
|
118
|
+
opacity: 0
|
|
119
|
+
} : false,
|
|
120
|
+
animate: rect ? {
|
|
121
|
+
...rect,
|
|
122
|
+
opacity: state?.visible ? 1 : 0
|
|
123
|
+
} : { opacity: 0 },
|
|
124
|
+
transition: reduce ? { duration: 0 } : {
|
|
125
|
+
type: "spring",
|
|
126
|
+
visualDuration: tier.duration,
|
|
127
|
+
bounce: tier.bounce
|
|
128
|
+
}
|
|
129
|
+
}, state ? "tracking" : "idle");
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
//#endregion
|
|
133
|
+
Object.defineProperty(exports, 'FluidHighlight', {
|
|
134
|
+
enumerable: true,
|
|
135
|
+
get: function () {
|
|
136
|
+
return FluidHighlight;
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
Object.defineProperty(exports, 'unscaledRect', {
|
|
140
|
+
enumerable: true,
|
|
141
|
+
get: function () {
|
|
142
|
+
return unscaledRect;
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
//# sourceMappingURL=fluid-highlight-YWFRZXsw.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fluid-highlight-YWFRZXsw.cjs","names":["useSpringTiers","motion","cn"],"sources":["../src/lib/motion/fluid-highlight.tsx"],"sourcesContent":["'use client';\n\nimport { useCallback, useEffect, useState } from 'react';\nimport { motion, useReducedMotion } from 'motion/react';\n\nimport { cn } from '../utils';\nimport { useSpringTiers } from './tuning';\n\ninterface Rect {\n\ttop: number;\n\tleft: number;\n\twidth: number;\n\theight: number;\n}\n\n/**\n * Base UI toggles a bare `data-highlighted` attribute; cmdk uses\n * `data-selected=\"true\"`; Toggle/ToggleGroup mark the active item with\n * `data-pressed`. The `:not([...=\"false\"])` guards cover components\n * like multi-select that render the attribute explicitly as \"false\".\n */\nconst TARGET_SELECTOR =\n\t'[data-highlighted]:not([data-highlighted=\"false\"]), [data-selected=\"true\"], [data-pressed]:not([data-pressed=\"false\"])';\nconst OBSERVED_ATTRIBUTES = ['data-highlighted', 'data-selected', 'data-pressed'];\n\n/**\n * Where `target` sits inside `container`, in the container's own unscaled pixels. Popups scale in from 95%, and a\n * transform changes no attribute or size to re-measure on, so a rect read on the first frame is shrunken; dividing\n * by the container's current scale gives the size and offset it settles at. Pass `box` when the caller has already\n * measured the container.\n */\nexport function unscaledRect(target: Element, container: HTMLElement, box = container.getBoundingClientRect()): Rect {\n\tconst t = target.getBoundingClientRect();\n\tconst scaleX = box.width / container.offsetWidth || 1;\n\tconst scaleY = box.height / container.offsetHeight || 1;\n\treturn {\n\t\ttop: (t.top - box.top) / scaleY,\n\t\tleft: (t.left - box.left) / scaleX,\n\t\twidth: t.width / scaleX,\n\t\theight: t.height / scaleY,\n\t};\n}\n\n/**\n * Track the highlighted descendant of `container` and return its rect in the\n * container's padding-box coordinates. Updates on highlight changes, DOM\n * mutations, and any nested scroll (scroll doesn't bubble, so capture).\n */\nfunction useFluidHighlight(container: HTMLElement | null): { rect: Rect; visible: boolean } | null {\n\tconst [state, setState] = useState<{ rect: Rect; visible: boolean } | null>(null);\n\n\tuseEffect(() => {\n\t\tif (!container) return;\n\n\t\tconst update = () => {\n\t\t\tconst target = container.querySelector<HTMLElement>(TARGET_SELECTOR);\n\t\t\tif (!target) {\n\t\t\t\tsetState((s) => (s ? { ...s, visible: false } : s));\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// Unscaled, or a popup still scaling in leaves the highlight at the shrunken size of its first frame.\n\t\t\tconst offset = unscaledRect(target, container);\n\t\t\tsetState({\n\t\t\t\trect: {\n\t\t\t\t\t...offset,\n\t\t\t\t\ttop: offset.top - container.clientTop + container.scrollTop,\n\t\t\t\t\tleft: offset.left - container.clientLeft,\n\t\t\t\t},\n\t\t\t\tvisible: true,\n\t\t\t});\n\t\t};\n\n\t\tupdate();\n\t\tconst observer = new MutationObserver(update);\n\t\tobserver.observe(container, {\n\t\t\tattributes: true,\n\t\t\tattributeFilter: OBSERVED_ATTRIBUTES,\n\t\t\tchildList: true,\n\t\t\tsubtree: true,\n\t\t});\n\t\t// Re-measure on resize too — items can reflow without attribute changes.\n\t\t// ResizeObserver is absent in jsdom and some embedded webviews.\n\t\tconst resizeObserver =\n\t\t\ttypeof ResizeObserver === 'undefined' ? null : new ResizeObserver(update);\n\t\tresizeObserver?.observe(container);\n\t\tcontainer.addEventListener('scroll', update, { capture: true, passive: true });\n\t\treturn () => {\n\t\t\tobserver.disconnect();\n\t\t\tresizeObserver?.disconnect();\n\t\t\tcontainer.removeEventListener('scroll', update, { capture: true });\n\t\t};\n\t}, [container]);\n\n\treturn state;\n}\n\n/**\n * Traveling highlight for menu/list popups — slides under whichever item is\n * `[data-highlighted]` (Base UI) or `[data-selected=\"true\"]` (cmdk) instead of\n * flashing a per-item background. Render as the first child of a `relative`\n * container; positioned siblings paint on top. No props needed — it locates\n * its own parent as the tracking container.\n *\n * Appears/fades instantly at the target; travel uses the dial-tunable fast\n * spring tier. Reduced-motion renders an untransitioned fill.\n */\nexport function FluidHighlight({ className, inset = 0 }: { className?: string; inset?: number }) {\n\t// offsetParent is the containing block this span is positioned against —\n\t// measuring the target in the same coordinate space keeps rect math exact\n\t// whether the container itself scrolls or sits inside scrolled content.\n\tconst [container, setContainer] = useState<HTMLElement | null>(null);\n\tconst state = useFluidHighlight(container);\n\tconst reduce = useReducedMotion();\n\tconst tier = useSpringTiers().fast;\n\n\t// Stable, so React doesn't detach and reattach it (and set state again) on every render.\n\tconst mountRef = useCallback((el: HTMLElement | null) => {\n\t\tsetContainer((el?.offsetParent as HTMLElement | null) ?? el?.parentElement ?? null);\n\t}, []);\n\n\tconst rect = state\n\t\t? {\n\t\t\t\ttop: state.rect.top + inset,\n\t\t\t\tleft: state.rect.left + inset,\n\t\t\t\twidth: state.rect.width - inset * 2,\n\t\t\t\theight: state.rect.height - inset * 2,\n\t\t\t}\n\t\t: null;\n\n\treturn (\n\t\t// Remount on idle→tracking so the pill fades in at the target instead of\n\t\t// sliding from (0,0) — `initial` only applies on mount.\n\t\t<motion.span\n\t\t\tkey={state ? 'tracking' : 'idle'}\n\t\t\tref={mountRef}\n\t\t\taria-hidden\n\t\t\tclassName={cn('pointer-events-none absolute rounded-sm bg-accent', className)}\n\t\t\tinitial={rect ? { ...rect, opacity: 0 } : false}\n\t\t\tanimate={rect ? { ...rect, opacity: state?.visible ? 1 : 0 } : { opacity: 0 }}\n\t\t\ttransition={\n\t\t\t\treduce ? { duration: 0 } : { type: 'spring', visualDuration: tier.duration, bounce: tier.bounce }\n\t\t\t}\n\t\t/>\n\t);\n}\n"],"mappings":";;;;;;;;;;;;;;AAqBA,MAAM,kBACL;AACD,MAAM,sBAAsB;CAAC;CAAoB;CAAiB;AAAc;;;;;;;AAQhF,SAAgB,aAAa,QAAiB,WAAwB,MAAM,UAAU,sBAAsB,GAAS;CACpH,MAAM,IAAI,OAAO,sBAAsB;CACvC,MAAM,SAAS,IAAI,QAAQ,UAAU,eAAe;CACpD,MAAM,SAAS,IAAI,SAAS,UAAU,gBAAgB;CACtD,OAAO;EACN,MAAM,EAAE,MAAM,IAAI,OAAO;EACzB,OAAO,EAAE,OAAO,IAAI,QAAQ;EAC5B,OAAO,EAAE,QAAQ;EACjB,QAAQ,EAAE,SAAS;CACpB;AACD;;;;;;AAOA,SAAS,kBAAkB,WAAwE;CAClG,MAAM,CAAC,OAAO,gCAA8D,IAAI;CAEhF,2BAAgB;EACf,IAAI,CAAC,WAAW;EAEhB,MAAM,eAAe;GACpB,MAAM,SAAS,UAAU,cAA2B,eAAe;GACnE,IAAI,CAAC,QAAQ;IACZ,UAAU,MAAO,IAAI;KAAE,GAAG;KAAG,SAAS;IAAM,IAAI,CAAE;IAClD;GACD;GAEA,MAAM,SAAS,aAAa,QAAQ,SAAS;GAC7C,SAAS;IACR,MAAM;KACL,GAAG;KACH,KAAK,OAAO,MAAM,UAAU,YAAY,UAAU;KAClD,MAAM,OAAO,OAAO,UAAU;IAC/B;IACA,SAAS;GACV,CAAC;EACF;EAEA,OAAO;EACP,MAAM,WAAW,IAAI,iBAAiB,MAAM;EAC5C,SAAS,QAAQ,WAAW;GAC3B,YAAY;GACZ,iBAAiB;GACjB,WAAW;GACX,SAAS;EACV,CAAC;EAGD,MAAM,iBACL,OAAO,mBAAmB,cAAc,OAAO,IAAI,eAAe,MAAM;EACzE,gBAAgB,QAAQ,SAAS;EACjC,UAAU,iBAAiB,UAAU,QAAQ;GAAE,SAAS;GAAM,SAAS;EAAK,CAAC;EAC7E,aAAa;GACZ,SAAS,WAAW;GACpB,gBAAgB,WAAW;GAC3B,UAAU,oBAAoB,UAAU,QAAQ,EAAE,SAAS,KAAK,CAAC;EAClE;CACD,GAAG,CAAC,SAAS,CAAC;CAEd,OAAO;AACR;;;;;;;;;;;AAYA,SAAgB,eAAe,EAAE,WAAW,QAAQ,KAA6C;CAIhG,MAAM,CAAC,WAAW,oCAA6C,IAAI;CACnE,MAAM,QAAQ,kBAAkB,SAAS;CACzC,MAAM,4CAA0B;CAChC,MAAM,OAAOA,8BAAe,CAAC,CAAC;CAG9B,MAAM,mCAAwB,OAA2B;EACxD,aAAc,IAAI,gBAAuC,IAAI,iBAAiB,IAAI;CACnF,GAAG,CAAC,CAAC;CAEL,MAAM,OAAO,QACV;EACA,KAAK,MAAM,KAAK,MAAM;EACtB,MAAM,MAAM,KAAK,OAAO;EACxB,OAAO,MAAM,KAAK,QAAQ,QAAQ;EAClC,QAAQ,MAAM,KAAK,SAAS,QAAQ;CACrC,IACC;CAEH,OAGC,2CAACC,oBAAO,MAAR;EAEC,KAAK;EACL;EACA,WAAWC,iBAAG,qDAAqD,SAAS;EAC5E,SAAS,OAAO;GAAE,GAAG;GAAM,SAAS;EAAE,IAAI;EAC1C,SAAS,OAAO;GAAE,GAAG;GAAM,SAAS,OAAO,UAAU,IAAI;EAAE,IAAI,EAAE,SAAS,EAAE;EAC5E,YACC,SAAS,EAAE,UAAU,EAAE,IAAI;GAAE,MAAM;GAAU,gBAAgB,KAAK;GAAU,QAAQ,KAAK;EAAO;CAEjG,GATK,QAAQ,aAAa,MAS1B;AAEH"}
|
|
@@ -361,7 +361,7 @@ declare function useCardReady(): {
|
|
|
361
361
|
};
|
|
362
362
|
//#endregion
|
|
363
363
|
//#region src/components/stack/stack-viewport.d.ts
|
|
364
|
-
declare function CardStackViewport({ backdrop, renderBackdrop, renderHeader, renderEmpty, peekDepth, animation, mobile, peekGestures, className }: CardStackViewportProps): string | number | bigint | boolean | Iterable<React$2.ReactNode> | Promise<string | number | bigint | boolean | React$2.ReactPortal | React$2.ReactElement<unknown, string | React$2.JSXElementConstructor<any>> | Iterable<React$2.ReactNode> | null | undefined> |
|
|
364
|
+
declare function CardStackViewport({ backdrop, renderBackdrop, renderHeader, renderEmpty, peekDepth, animation, mobile, peekGestures, className }: CardStackViewportProps): string | number | bigint | boolean | React$2.JSX.Element | Iterable<React$2.ReactNode> | Promise<string | number | bigint | boolean | React$2.ReactPortal | React$2.ReactElement<unknown, string | React$2.JSXElementConstructor<any>> | Iterable<React$2.ReactNode> | null | undefined> | null | undefined;
|
|
365
365
|
//#endregion
|
|
366
366
|
//#region src/components/stack/stack-backdrop.d.ts
|
|
367
367
|
type StackBackdropProps = {
|
|
@@ -510,7 +510,7 @@ interface DeferredCardContentProps {
|
|
|
510
510
|
* </DeferredCardContent>
|
|
511
511
|
* ```
|
|
512
512
|
*/
|
|
513
|
-
declare function DeferredCardContent({ children, placeholder, delay, immediate, priority, onReady }: DeferredCardContentProps): string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined
|
|
513
|
+
declare function DeferredCardContent({ children, placeholder, delay, immediate, priority, onReady }: DeferredCardContentProps): string | number | bigint | boolean | import("react").JSX.Element | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined>;
|
|
514
514
|
//#endregion
|
|
515
515
|
//#region src/components/stack/use-stack-responsive.d.ts
|
|
516
516
|
type UseStackResponsiveOptions = MobileConfig;
|
|
@@ -690,4 +690,4 @@ declare function createReducedMotionVariants(): Variants;
|
|
|
690
690
|
declare const reducedMotionBackdropVariants: Variants;
|
|
691
691
|
//#endregion
|
|
692
692
|
export { useStackLayoutMode as $, useIsMobile as A, StackHeaderSlot as B, isCardVisible as C, UsePeekGesturesResult as D, UsePeekGesturesOptions as E, StackCardProps as F, CardStackProvider as G, StackBackdrop as H, UseStackGesturesResult as I, useCardReady as J, useCardIndex as K, useStackGestures as L, DeferredCardContent as M, DeferredCardContentProps as N, usePeekGestures as O, StackCard as P, useStackContext as Q, StackHeader as R, getVisibleCardIndices as S, parseWidthToPixels as T, StackBackdropProps as U, StackHeaderSlotProps as V, CardStackViewport as W, useIsTopCard as X, useCardStack as Y, useStackCards as Z, getCardOffset as _, PushOptions as _t, createExitTransition as a, CardPushOptions as at, getResponsiveCardOffset as b, StackState as bt, peekDragSpring as c, CardSpec as ct, reducedMotionBackdropVariants as d, CardStackViewportProps as dt, AnimationConfig as et, snapBackSpring as f, DismissOptions as ft, calculateResponsiveOffset as g, PeekGestureConfig as gt, ResponsiveOffsetResult as h, MobileConfig as ht, createEnterTransition as i, CardInjectedProps as it, useStackResponsive as j, UseStackResponsiveResult as k, peekHoverSpring as l, CardStackApi as lt, ResponsiveOffsetConfig as m, LayoutMode as mt, backdropVariants as n, CardComponent as nt, createOffsetTransition as o, CardRouteDefinition as ot, swipeDismissTransition as p, GestureConfig as pt, useCardInjectedProps as q, createCardVariants as r, CardId as rt, createReducedMotionVariants as s, CardRouteMap as st, DEFAULT_ANIMATION_CONFIG as t, BackdropConfig as tt, peekSlideSpring as u, CardStackProviderProps as ut, getCardZIndex as v, StackAction as vt, normalizeWidth as w, getSideBySideOffset as x, getCascadeOffset as y, StackContextValue as yt, StackHeaderProps as z };
|
|
693
|
-
//# sourceMappingURL=index-
|
|
693
|
+
//# sourceMappingURL=index-B7cT7gZU.d.cts.map
|
|
@@ -361,7 +361,7 @@ declare function useCardReady(): {
|
|
|
361
361
|
};
|
|
362
362
|
//#endregion
|
|
363
363
|
//#region src/components/stack/stack-viewport.d.ts
|
|
364
|
-
declare function CardStackViewport({ backdrop, renderBackdrop, renderHeader, renderEmpty, peekDepth, animation, mobile, peekGestures, className }: CardStackViewportProps): string | number | bigint | boolean | Iterable<React$2.ReactNode> | Promise<string | number | bigint | boolean | React$2.ReactPortal | React$2.ReactElement<unknown, string | React$2.JSXElementConstructor<any>> | Iterable<React$2.ReactNode> | null | undefined> |
|
|
364
|
+
declare function CardStackViewport({ backdrop, renderBackdrop, renderHeader, renderEmpty, peekDepth, animation, mobile, peekGestures, className }: CardStackViewportProps): string | number | bigint | boolean | React$2.JSX.Element | Iterable<React$2.ReactNode> | Promise<string | number | bigint | boolean | React$2.ReactPortal | React$2.ReactElement<unknown, string | React$2.JSXElementConstructor<any>> | Iterable<React$2.ReactNode> | null | undefined> | null | undefined;
|
|
365
365
|
//#endregion
|
|
366
366
|
//#region src/components/stack/stack-backdrop.d.ts
|
|
367
367
|
type StackBackdropProps = {
|
|
@@ -510,7 +510,7 @@ interface DeferredCardContentProps {
|
|
|
510
510
|
* </DeferredCardContent>
|
|
511
511
|
* ```
|
|
512
512
|
*/
|
|
513
|
-
declare function DeferredCardContent({ children, placeholder, delay, immediate, priority, onReady }: DeferredCardContentProps): string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined
|
|
513
|
+
declare function DeferredCardContent({ children, placeholder, delay, immediate, priority, onReady }: DeferredCardContentProps): string | number | bigint | boolean | import("react").JSX.Element | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined>;
|
|
514
514
|
//#endregion
|
|
515
515
|
//#region src/components/stack/use-stack-responsive.d.ts
|
|
516
516
|
type UseStackResponsiveOptions = MobileConfig;
|
|
@@ -690,4 +690,4 @@ declare function createReducedMotionVariants(): Variants;
|
|
|
690
690
|
declare const reducedMotionBackdropVariants: Variants;
|
|
691
691
|
//#endregion
|
|
692
692
|
export { useStackLayoutMode as $, useIsMobile as A, StackHeaderSlot as B, isCardVisible as C, UsePeekGesturesResult as D, UsePeekGesturesOptions as E, StackCardProps as F, CardStackProvider as G, StackBackdrop as H, UseStackGesturesResult as I, useCardReady as J, useCardIndex as K, useStackGestures as L, DeferredCardContent as M, DeferredCardContentProps as N, usePeekGestures as O, StackCard as P, useStackContext as Q, StackHeader as R, getVisibleCardIndices as S, parseWidthToPixels as T, StackBackdropProps as U, StackHeaderSlotProps as V, CardStackViewport as W, useIsTopCard as X, useCardStack as Y, useStackCards as Z, getCardOffset as _, PushOptions as _t, createExitTransition as a, CardPushOptions as at, getResponsiveCardOffset as b, StackState as bt, peekDragSpring as c, CardSpec as ct, reducedMotionBackdropVariants as d, CardStackViewportProps as dt, AnimationConfig as et, snapBackSpring as f, DismissOptions as ft, calculateResponsiveOffset as g, PeekGestureConfig as gt, ResponsiveOffsetResult as h, MobileConfig as ht, createEnterTransition as i, CardInjectedProps as it, useStackResponsive as j, UseStackResponsiveResult as k, peekHoverSpring as l, CardStackApi as lt, ResponsiveOffsetConfig as m, LayoutMode as mt, backdropVariants as n, CardComponent as nt, createOffsetTransition as o, CardRouteDefinition as ot, swipeDismissTransition as p, GestureConfig as pt, useCardInjectedProps as q, createCardVariants as r, CardId as rt, createReducedMotionVariants as s, CardRouteMap as st, DEFAULT_ANIMATION_CONFIG as t, BackdropConfig as tt, peekSlideSpring as u, CardStackProviderProps as ut, getCardZIndex as v, StackAction as vt, normalizeWidth as w, getSideBySideOffset as x, getCascadeOffset as y, StackContextValue as yt, StackHeaderProps as z };
|
|
693
|
-
//# sourceMappingURL=index-
|
|
693
|
+
//# sourceMappingURL=index-B7cT7gZU.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
//#region src/components/toast/toast-
|
|
2
|
-
|
|
1
|
+
//#region src/components/toast/toast-card.d.ts
|
|
2
|
+
/** What every toast variant takes: `toast.error(props)`, `toast.success(props)` and so on. */
|
|
3
|
+
interface ToastProps {
|
|
3
4
|
message: string;
|
|
4
5
|
description?: string;
|
|
5
6
|
action?: {
|
|
@@ -8,42 +9,21 @@ interface ToastErrorProps {
|
|
|
8
9
|
};
|
|
9
10
|
onDismiss?: () => void;
|
|
10
11
|
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/toast/toast-error.d.ts
|
|
14
|
+
type ToastErrorProps = ToastProps;
|
|
11
15
|
declare function showErrorToast(props: ToastErrorProps): string | number;
|
|
12
16
|
//#endregion
|
|
13
17
|
//#region src/components/toast/toast-info.d.ts
|
|
14
|
-
|
|
15
|
-
message: string;
|
|
16
|
-
description?: string;
|
|
17
|
-
action?: {
|
|
18
|
-
label: string;
|
|
19
|
-
onClick: () => void;
|
|
20
|
-
};
|
|
21
|
-
onDismiss?: () => void;
|
|
22
|
-
}
|
|
18
|
+
type ToastInfoProps = ToastProps;
|
|
23
19
|
declare function showInfoToast(props: ToastInfoProps): string | number;
|
|
24
20
|
//#endregion
|
|
25
21
|
//#region src/components/toast/toast-success.d.ts
|
|
26
|
-
|
|
27
|
-
message: string;
|
|
28
|
-
description?: string;
|
|
29
|
-
action?: {
|
|
30
|
-
label: string;
|
|
31
|
-
onClick: () => void;
|
|
32
|
-
};
|
|
33
|
-
onDismiss?: () => void;
|
|
34
|
-
}
|
|
22
|
+
type ToastSuccessProps = ToastProps;
|
|
35
23
|
declare function showSuccessToast(props: ToastSuccessProps): string | number;
|
|
36
24
|
//#endregion
|
|
37
25
|
//#region src/components/toast/toast-warning.d.ts
|
|
38
|
-
|
|
39
|
-
message: string;
|
|
40
|
-
description?: string;
|
|
41
|
-
action?: {
|
|
42
|
-
label: string;
|
|
43
|
-
onClick: () => void;
|
|
44
|
-
};
|
|
45
|
-
onDismiss?: () => void;
|
|
46
|
-
}
|
|
26
|
+
type ToastWarningProps = ToastProps;
|
|
47
27
|
declare function showWarningToast(props: ToastWarningProps): string | number;
|
|
48
28
|
//#endregion
|
|
49
29
|
//#region src/components/toast/index.d.ts
|
|
@@ -54,5 +34,5 @@ declare const toast: {
|
|
|
54
34
|
warning: typeof showWarningToast;
|
|
55
35
|
};
|
|
56
36
|
//#endregion
|
|
57
|
-
export { showSuccessToast as a, ToastErrorProps as c, ToastSuccessProps as i, showErrorToast as l, ToastWarningProps as n, ToastInfoProps as o, showWarningToast as r, showInfoToast as s, toast as t };
|
|
58
|
-
//# sourceMappingURL=index-
|
|
37
|
+
export { showSuccessToast as a, ToastErrorProps as c, ToastSuccessProps as i, showErrorToast as l, ToastWarningProps as n, ToastInfoProps as o, showWarningToast as r, showInfoToast as s, toast as t, ToastProps as u };
|
|
38
|
+
//# sourceMappingURL=index-BQZxmMpw.d.cts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
//#region src/components/toast/toast-
|
|
2
|
-
|
|
1
|
+
//#region src/components/toast/toast-card.d.ts
|
|
2
|
+
/** What every toast variant takes: `toast.error(props)`, `toast.success(props)` and so on. */
|
|
3
|
+
interface ToastProps {
|
|
3
4
|
message: string;
|
|
4
5
|
description?: string;
|
|
5
6
|
action?: {
|
|
@@ -8,42 +9,21 @@ interface ToastErrorProps {
|
|
|
8
9
|
};
|
|
9
10
|
onDismiss?: () => void;
|
|
10
11
|
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/toast/toast-error.d.ts
|
|
14
|
+
type ToastErrorProps = ToastProps;
|
|
11
15
|
declare function showErrorToast(props: ToastErrorProps): string | number;
|
|
12
16
|
//#endregion
|
|
13
17
|
//#region src/components/toast/toast-info.d.ts
|
|
14
|
-
|
|
15
|
-
message: string;
|
|
16
|
-
description?: string;
|
|
17
|
-
action?: {
|
|
18
|
-
label: string;
|
|
19
|
-
onClick: () => void;
|
|
20
|
-
};
|
|
21
|
-
onDismiss?: () => void;
|
|
22
|
-
}
|
|
18
|
+
type ToastInfoProps = ToastProps;
|
|
23
19
|
declare function showInfoToast(props: ToastInfoProps): string | number;
|
|
24
20
|
//#endregion
|
|
25
21
|
//#region src/components/toast/toast-success.d.ts
|
|
26
|
-
|
|
27
|
-
message: string;
|
|
28
|
-
description?: string;
|
|
29
|
-
action?: {
|
|
30
|
-
label: string;
|
|
31
|
-
onClick: () => void;
|
|
32
|
-
};
|
|
33
|
-
onDismiss?: () => void;
|
|
34
|
-
}
|
|
22
|
+
type ToastSuccessProps = ToastProps;
|
|
35
23
|
declare function showSuccessToast(props: ToastSuccessProps): string | number;
|
|
36
24
|
//#endregion
|
|
37
25
|
//#region src/components/toast/toast-warning.d.ts
|
|
38
|
-
|
|
39
|
-
message: string;
|
|
40
|
-
description?: string;
|
|
41
|
-
action?: {
|
|
42
|
-
label: string;
|
|
43
|
-
onClick: () => void;
|
|
44
|
-
};
|
|
45
|
-
onDismiss?: () => void;
|
|
46
|
-
}
|
|
26
|
+
type ToastWarningProps = ToastProps;
|
|
47
27
|
declare function showWarningToast(props: ToastWarningProps): string | number;
|
|
48
28
|
//#endregion
|
|
49
29
|
//#region src/components/toast/index.d.ts
|
|
@@ -54,5 +34,5 @@ declare const toast: {
|
|
|
54
34
|
warning: typeof showWarningToast;
|
|
55
35
|
};
|
|
56
36
|
//#endregion
|
|
57
|
-
export { showSuccessToast as a, ToastErrorProps as c, ToastSuccessProps as i, showErrorToast as l, ToastWarningProps as n, ToastInfoProps as o, showWarningToast as r, showInfoToast as s, toast as t };
|
|
58
|
-
//# sourceMappingURL=index-
|
|
37
|
+
export { showSuccessToast as a, ToastErrorProps as c, ToastSuccessProps as i, showErrorToast as l, ToastWarningProps as n, ToastInfoProps as o, showWarningToast as r, showInfoToast as s, toast as t, ToastProps as u };
|
|
38
|
+
//# sourceMappingURL=index-BQZxmMpw.d.ts.map
|