@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,728 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { LucideIcon } from "lucide-react";
|
|
3
|
+
import { AnimateViewProps } from "motion/react-animate-view";
|
|
4
|
+
//#region src/components/workspace-kit/canvas.d.ts
|
|
5
|
+
type Viewport = {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
zoom: number;
|
|
9
|
+
};
|
|
10
|
+
/** A rectangle in canvas units, e.g. where a node will settle. */
|
|
11
|
+
type CanvasBox = {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
};
|
|
17
|
+
type CanvasInset = {
|
|
18
|
+
side: number;
|
|
19
|
+
top: number;
|
|
20
|
+
bottom: number;
|
|
21
|
+
};
|
|
22
|
+
type CanvasViewportOptions = {
|
|
23
|
+
/**
|
|
24
|
+
* `width` fits the content's width and pins it to the top, for a column
|
|
25
|
+
* layout that grows downwards. `contain` fits both axes and centres.
|
|
26
|
+
*/
|
|
27
|
+
fit?: 'width' | 'contain';
|
|
28
|
+
/** Content height in canvas units; `contain` needs it. */
|
|
29
|
+
contentHeight?: number;
|
|
30
|
+
/** Top-left corner of the content in canvas units, when it doesn't start at the origin. */
|
|
31
|
+
contentOrigin?: {
|
|
32
|
+
x: number;
|
|
33
|
+
y: number;
|
|
34
|
+
};
|
|
35
|
+
minZoom?: number;
|
|
36
|
+
maxZoom?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Smallest zoom a `contain` fit may choose; below it the content stays
|
|
39
|
+
* readable, centred horizontally and pinned to the top. Defaults to `minZoom`.
|
|
40
|
+
*/
|
|
41
|
+
minFitZoom?: number;
|
|
42
|
+
/** Room kept clear at the edges when fitting and revealing, e.g. for pinned controls. */
|
|
43
|
+
inset?: CanvasInset;
|
|
44
|
+
};
|
|
45
|
+
/** Elements marked with this attribute (and native controls) never start a pan or swallow wheel scrolling. */
|
|
46
|
+
declare const NO_PAN_ATTRIBUTE = "data-no-pan";
|
|
47
|
+
/** Nodes that handle their own presses (select, drag) but still let the wheel pan and zoom over them. */
|
|
48
|
+
declare const CANVAS_NODE_ATTRIBUTE = "data-canvas-node";
|
|
49
|
+
/**
|
|
50
|
+
* Pan and zoom state for a canvas: drag, pinch, wheel, ctrl/⌘-wheel,
|
|
51
|
+
* keyboard, and zoom buttons, plus `reveal` to ease a node into view and
|
|
52
|
+
* `fit` to frame the content again. The view keeps fitting its container
|
|
53
|
+
* until the person pans or zooms. Transitions are skipped while dragging so
|
|
54
|
+
* the canvas tracks the pointer 1:1.
|
|
55
|
+
*/
|
|
56
|
+
declare function useCanvasViewport(contentWidth: number, options?: CanvasViewportOptions): {
|
|
57
|
+
/** Read-only handle on the canvas element; attach it with `attach`. */
|
|
58
|
+
viewportRef: React$1.RefObject<HTMLDivElement | null>;
|
|
59
|
+
attach: (node: HTMLDivElement | null) => void;
|
|
60
|
+
view: Viewport;
|
|
61
|
+
transition: string;
|
|
62
|
+
dragging: boolean;
|
|
63
|
+
handlers: {
|
|
64
|
+
onPointerCancel: (event: React$1.PointerEvent<HTMLDivElement>) => void;
|
|
65
|
+
onLostPointerCapture: (event: React$1.PointerEvent<HTMLDivElement>) => void;
|
|
66
|
+
onPointerDown(event: React$1.PointerEvent<HTMLDivElement>): void;
|
|
67
|
+
onPointerMove(event: React$1.PointerEvent<HTMLDivElement>): void;
|
|
68
|
+
onPointerUp(event: React$1.PointerEvent<HTMLDivElement>): void;
|
|
69
|
+
onKeyDown(event: React$1.KeyboardEvent<HTMLDivElement>): void;
|
|
70
|
+
};
|
|
71
|
+
zoomTo: (zoom: number) => void;
|
|
72
|
+
zoomIn: () => void;
|
|
73
|
+
zoomOut: () => void;
|
|
74
|
+
canZoomIn: boolean;
|
|
75
|
+
canZoomOut: boolean;
|
|
76
|
+
fit: () => void;
|
|
77
|
+
reveal: (target: Element | CanvasBox) => void;
|
|
78
|
+
hold: () => void;
|
|
79
|
+
/** True when the last press panned; use it to ignore the click that ends a drag. */
|
|
80
|
+
wasPanned: () => boolean;
|
|
81
|
+
};
|
|
82
|
+
type CanvasViewport = ReturnType<typeof useCanvasViewport>;
|
|
83
|
+
type CanvasSurfaceProps = {
|
|
84
|
+
viewport: CanvasViewport;
|
|
85
|
+
/** Accessible name; say how to pan and zoom. */
|
|
86
|
+
label: string;
|
|
87
|
+
layerRef?: React$1.Ref<HTMLDivElement>;
|
|
88
|
+
/** Content in canvas coordinates; it pans and zooms with the view. */
|
|
89
|
+
children: React$1.ReactNode;
|
|
90
|
+
/** Controls pinned to the canvas edges, such as the zoom pill. */
|
|
91
|
+
overlay?: React$1.ReactNode;
|
|
92
|
+
/** A click on empty canvas, not the end of a pan, e.g. to clear a selection. */
|
|
93
|
+
onPaneClick?: () => void;
|
|
94
|
+
className?: string;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* The canvas card: a dotted grid that pans and zooms with a transformed layer
|
|
98
|
+
* of nodes, and an overlay for pinned controls. Spread the viewport handlers
|
|
99
|
+
* here once; mark interactive node parts with `NO_PAN_ATTRIBUTE`.
|
|
100
|
+
*/
|
|
101
|
+
declare function CanvasSurface({ viewport, label, layerRef, children, overlay, onPaneClick, className }: CanvasSurfaceProps): React$1.JSX.Element;
|
|
102
|
+
/** Floating zoom pill: out, the current percentage (resets to 100%), in, and an optional fit. */
|
|
103
|
+
declare function CanvasZoomControls({ viewport, fit, className }: {
|
|
104
|
+
viewport: CanvasViewport;
|
|
105
|
+
fit?: boolean;
|
|
106
|
+
className?: string;
|
|
107
|
+
}): React$1.JSX.Element;
|
|
108
|
+
/** Shell radius; its 1px border and 3px inset make the inner card 10px (concentric). */
|
|
109
|
+
declare const NODE_RADIUS = "rounded-[14px]";
|
|
110
|
+
type NodeShellTone = 'plain' | 'new' | 'target';
|
|
111
|
+
type NodeShellProps = Omit<React$1.ComponentProps<'div'>, 'children'> & {
|
|
112
|
+
as?: 'div' | 'section';
|
|
113
|
+
/** `new` marks parts added since the last save; `target` marks a valid drop target. */
|
|
114
|
+
tone?: NodeShellTone;
|
|
115
|
+
selected?: boolean;
|
|
116
|
+
/** Painted between the bezel and the card, e.g. a loading glow. */
|
|
117
|
+
underlay?: React$1.ReactNode;
|
|
118
|
+
/** Classes for the raised card, e.g. `flex-1` when the shell has a fixed height. */
|
|
119
|
+
cardClassName?: string;
|
|
120
|
+
innerClassName?: string;
|
|
121
|
+
children: React$1.ReactNode;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Double-framed canvas node: a quiet bezel around a raised card, with
|
|
125
|
+
* concentric corners. Selected nodes get a primary edge and a soft halo.
|
|
126
|
+
*/
|
|
127
|
+
declare function NodeShell({ as: Element, tone, selected, underlay, cardClassName, innerClassName, className, style, children, ...props }: NodeShellProps): React$1.JSX.Element;
|
|
128
|
+
/** Small framed tile holding a node's primary-tinted icon. */
|
|
129
|
+
declare function NodeIconTile({ icon: Icon }: {
|
|
130
|
+
icon: React$1.ComponentType<{
|
|
131
|
+
className?: string;
|
|
132
|
+
strokeWidth?: number;
|
|
133
|
+
}>;
|
|
134
|
+
}): React$1.JSX.Element;
|
|
135
|
+
type WireTone = 'rest' | 'live' | 'warn';
|
|
136
|
+
type WirePoint = [number, number];
|
|
137
|
+
declare const WIRE_STROKE: Record<WireTone, string>;
|
|
138
|
+
/** Cubic bezier between two anchors, leaving and entering along `axis`. */
|
|
139
|
+
declare function wirePath(start: WirePoint, end: WirePoint, axis?: 'horizontal' | 'vertical'): string;
|
|
140
|
+
type CanvasWireProps = {
|
|
141
|
+
start: WirePoint;
|
|
142
|
+
end: WirePoint;
|
|
143
|
+
tone?: WireTone;
|
|
144
|
+
axis?: 'horizontal' | 'vertical';
|
|
145
|
+
/** Marching dashes; pass only when motion is allowed. */
|
|
146
|
+
animated?: boolean;
|
|
147
|
+
/** Draw the start anchor; turn off when several wires share one start. */
|
|
148
|
+
startDot?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Ease to new anchors when the layout changes, alongside nodes that
|
|
151
|
+
* transition their position. Browsers without CSS `d` support jump.
|
|
152
|
+
*/
|
|
153
|
+
glide?: boolean;
|
|
154
|
+
};
|
|
155
|
+
/** Anchor dot; its position also lives in CSS so `glide` can ease it. */
|
|
156
|
+
declare function WireDot({ at, glide, stroke }: {
|
|
157
|
+
at: WirePoint;
|
|
158
|
+
glide?: boolean;
|
|
159
|
+
stroke?: string;
|
|
160
|
+
}): React$1.JSX.Element;
|
|
161
|
+
/**
|
|
162
|
+
* One wire with anchor dots. Render inside an SVG in layer coordinates.
|
|
163
|
+
* `rest` wires are solid; `live` and `warn` wires are dashed.
|
|
164
|
+
*/
|
|
165
|
+
declare function CanvasWire({ start, end, tone, axis, animated, startDot, glide }: CanvasWireProps): React$1.JSX.Element;
|
|
166
|
+
//#endregion
|
|
167
|
+
//#region src/components/workspace-kit/menu.d.ts
|
|
168
|
+
type WorkspaceTheme = 'light' | 'dark' | 'system';
|
|
169
|
+
/** The appearance row every workspace menu carries: light, dark, or system. */
|
|
170
|
+
declare function AppearanceRow({ value, onChange }: {
|
|
171
|
+
value: WorkspaceTheme;
|
|
172
|
+
onChange: (theme: WorkspaceTheme) => void;
|
|
173
|
+
}): React$1.JSX.Element;
|
|
174
|
+
/** Up to two initials for a name: "Northwind Labs" → "NL". Empty for a name with nothing to show; `SwitcherTrigger` then draws an icon. */
|
|
175
|
+
declare function monogram(name: string): string;
|
|
176
|
+
type SwitcherTriggerProps = {
|
|
177
|
+
/** Accessible name, e.g. "Billing account: Northwind Labs". */
|
|
178
|
+
label: string;
|
|
179
|
+
/** Name shown beside the glyph when the rail is expanded. */
|
|
180
|
+
name: string;
|
|
181
|
+
/** Tile content: an icon or a monogram. An empty value falls back to a building icon. */
|
|
182
|
+
glyph: React$1.ReactNode;
|
|
183
|
+
collapsed: boolean;
|
|
184
|
+
};
|
|
185
|
+
/** Sidebar header trigger for a workspace or account switcher menu. */
|
|
186
|
+
declare function SwitcherTrigger({ label, name, glyph, collapsed }: SwitcherTriggerProps): React$1.JSX.Element;
|
|
187
|
+
//#endregion
|
|
188
|
+
//#region src/components/workspace-kit/nav.d.ts
|
|
189
|
+
/**
|
|
190
|
+
* Labels a rail control with a tooltip while the sidebar is collapsed. A `tip`
|
|
191
|
+
* adds a line under the label there, and is the whole tooltip when expanded.
|
|
192
|
+
*/
|
|
193
|
+
declare function RailTip({ label, collapsed, tip, children }: {
|
|
194
|
+
label: string;
|
|
195
|
+
collapsed: boolean;
|
|
196
|
+
tip?: React$1.ReactNode;
|
|
197
|
+
children: React$1.ReactElement;
|
|
198
|
+
}): React$1.JSX.Element;
|
|
199
|
+
type NavRowProps = {
|
|
200
|
+
label: string;
|
|
201
|
+
collapsed: boolean;
|
|
202
|
+
active?: boolean;
|
|
203
|
+
/** Leading glyph: an icon, or any node such as a monogram. */
|
|
204
|
+
leading: React$1.ReactNode;
|
|
205
|
+
/** Replaces the plain label, e.g. with shimmering text. */
|
|
206
|
+
labelNode?: React$1.ReactNode;
|
|
207
|
+
/** Quiet trailing value such as a count. */
|
|
208
|
+
trailing?: React$1.ReactNode;
|
|
209
|
+
/** Tooltip detail, e.g. what an agent waits on. Shown expanded too; replaces the truncation title. */
|
|
210
|
+
tip?: React$1.ReactNode;
|
|
211
|
+
/** A short word under the collapsed square's glyph, e.g. "Approve". The square stretches into a capsule to hold it. */
|
|
212
|
+
railBadge?: React$1.ReactNode;
|
|
213
|
+
/** Row tone when not active. */
|
|
214
|
+
muted?: boolean;
|
|
215
|
+
/** Not choosable right now, e.g. while another row loads or policy forbids it. */
|
|
216
|
+
disabled?: boolean;
|
|
217
|
+
/** Loading this row's destination; announced and shown in place of the trailing value. */
|
|
218
|
+
busy?: boolean;
|
|
219
|
+
onClick?: () => void;
|
|
220
|
+
/** Renders the row as a link to this address instead of a button. */
|
|
221
|
+
href?: string;
|
|
222
|
+
/** Renders the link through the host's router component. Default: a plain anchor. */
|
|
223
|
+
renderLink?: (props: NavRowLinkProps) => React$1.ReactElement;
|
|
224
|
+
};
|
|
225
|
+
/** Props a link-mode row hands to `renderLink`. */
|
|
226
|
+
type NavRowLinkProps = Omit<React$1.ComponentProps<'a'>, 'href'> & {
|
|
227
|
+
href: string;
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* One sidebar row. Focus reads through weight and a tinted fill, never a
|
|
231
|
+
* coloured dot; hover is instant because rows are clicked constantly.
|
|
232
|
+
*/
|
|
233
|
+
declare function NavRow({ label, collapsed, active, leading, labelNode, trailing, tip, railBadge, muted, disabled, busy, onClick, href, renderLink }: NavRowProps): React$1.JSX.Element;
|
|
234
|
+
declare function NavIcon({ icon: Icon, active }: {
|
|
235
|
+
icon: LucideIcon;
|
|
236
|
+
active?: boolean;
|
|
237
|
+
}): React$1.JSX.Element;
|
|
238
|
+
/**
|
|
239
|
+
* Quiet trailing count for a nav row; hidden from assistive tech, which reads
|
|
240
|
+
* the label instead. A number is grouped (`1,284`); pass a string to format it yourself.
|
|
241
|
+
*/
|
|
242
|
+
declare function NavCount({ value, tone, locale }: {
|
|
243
|
+
value: React$1.ReactNode;
|
|
244
|
+
tone?: 'muted' | 'warning' | 'danger';
|
|
245
|
+
locale?: string;
|
|
246
|
+
}): React$1.JSX.Element;
|
|
247
|
+
type NavSectionProps = {
|
|
248
|
+
/** Visible heading above the rows; hidden in the icon rail. */
|
|
249
|
+
title?: string;
|
|
250
|
+
collapsed: boolean;
|
|
251
|
+
/** Optional control beside the heading, such as an add button. */
|
|
252
|
+
action?: React$1.ReactNode;
|
|
253
|
+
children: React$1.ReactNode;
|
|
254
|
+
};
|
|
255
|
+
/** A group of rows with an optional small heading. */
|
|
256
|
+
declare function NavSection({ title, collapsed, action, children }: NavSectionProps): React$1.JSX.Element;
|
|
257
|
+
type SidebarFrameProps = {
|
|
258
|
+
/** Accessible name of the navigation landmark. */
|
|
259
|
+
label: string;
|
|
260
|
+
/** Workspace or account switcher at the top left. */
|
|
261
|
+
menu: React$1.ReactNode;
|
|
262
|
+
collapsed: boolean;
|
|
263
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
264
|
+
drawer?: boolean;
|
|
265
|
+
/** Closes the drawer. */
|
|
266
|
+
onClose?: () => void;
|
|
267
|
+
children: React$1.ReactNode;
|
|
268
|
+
/** Pinned below the scrolling body, e.g. a notice or a promo card. */
|
|
269
|
+
footer?: React$1.ReactNode;
|
|
270
|
+
className?: string;
|
|
271
|
+
};
|
|
272
|
+
/**
|
|
273
|
+
* Sidebar chrome: a 48px header with the switcher and a collapse (or close)
|
|
274
|
+
* control, a scrolling body, and an optional pinned footer. 224px wide, or a
|
|
275
|
+
* 52px icon rail when collapsed.
|
|
276
|
+
*/
|
|
277
|
+
declare function SidebarFrame({ label, menu, collapsed: collapsedProp, onCollapsedChange, drawer, onClose, children, footer, className }: SidebarFrameProps): React$1.JSX.Element;
|
|
278
|
+
//#endregion
|
|
279
|
+
//#region src/components/workspace-kit/primitives.d.ts
|
|
280
|
+
/** Tactile press for custom controls: 0.96, never lower. */
|
|
281
|
+
declare const pressClass = "transition-transform duration-(--duration-fast) ease-out motion-safe:active:scale-[0.96]";
|
|
282
|
+
/** Grows a small control's hit area to at least 40px without changing its box. */
|
|
283
|
+
declare const hitAreaClass = "relative before:absolute before:-inset-2 before:content-[''] pointer-coarse:before:-inset-2.5";
|
|
284
|
+
declare const focusRingClass = "outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50";
|
|
285
|
+
declare const ICON_BUTTON_VARIANT: {
|
|
286
|
+
readonly ghost: "text-muted-foreground hover:bg-overlay-hover hover:text-foreground";
|
|
287
|
+
readonly raised: "bg-card text-foreground shadow-card hover:bg-muted";
|
|
288
|
+
};
|
|
289
|
+
declare const ICON_BUTTON_SIZE: {
|
|
290
|
+
readonly sm: "size-6";
|
|
291
|
+
readonly md: "size-7";
|
|
292
|
+
readonly lg: "size-8";
|
|
293
|
+
};
|
|
294
|
+
type IconButtonOptions = {
|
|
295
|
+
variant?: keyof typeof ICON_BUTTON_VARIANT;
|
|
296
|
+
size?: keyof typeof ICON_BUTTON_SIZE;
|
|
297
|
+
/** Set false when neighbours sit closer than the extended hit area. */
|
|
298
|
+
extendHitArea?: boolean;
|
|
299
|
+
/** For a menu trigger: it keeps its hover fill while the menu is open, so the menu reads as coming from it. */
|
|
300
|
+
menu?: boolean;
|
|
301
|
+
};
|
|
302
|
+
type TooltipIconButtonProps = Omit<React$1.ComponentProps<'button'>, 'aria-label'> & Omit<IconButtonOptions, 'menu'> & {
|
|
303
|
+
label: string;
|
|
304
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
305
|
+
};
|
|
306
|
+
/**
|
|
307
|
+
* Icon-only button with a matching tooltip and accessible name. Hover state is
|
|
308
|
+
* instant; press scales to 0.96.
|
|
309
|
+
*/
|
|
310
|
+
declare function TooltipIconButton({ label, side, variant, size, extendHitArea, className, children, ...props }: TooltipIconButtonProps): React$1.JSX.Element;
|
|
311
|
+
/** CSS colour for each non-neutral tone, for tints mixed at runtime. */
|
|
312
|
+
declare const TONE_COLOR: {
|
|
313
|
+
readonly primary: "var(--primary)";
|
|
314
|
+
readonly warning: "var(--warning)";
|
|
315
|
+
readonly violet: "var(--chart-3)";
|
|
316
|
+
readonly amber: "var(--chart-4)";
|
|
317
|
+
readonly success: "var(--success)";
|
|
318
|
+
readonly danger: "var(--destructive)";
|
|
319
|
+
readonly info: "var(--info)";
|
|
320
|
+
};
|
|
321
|
+
type Tone = keyof typeof TONE_COLOR | 'neutral';
|
|
322
|
+
type ToneBadgeProps = {
|
|
323
|
+
tone: Tone;
|
|
324
|
+
children: React$1.ReactNode;
|
|
325
|
+
onClick?: () => void;
|
|
326
|
+
className?: string;
|
|
327
|
+
};
|
|
328
|
+
/** Small tinted label. Clickable when `onClick` is set. */
|
|
329
|
+
declare function ToneBadge({ tone, children, onClick, className }: ToneBadgeProps): React$1.JSX.Element;
|
|
330
|
+
type SearchFieldProps = Omit<React$1.ComponentProps<'input'>, 'type'> & {
|
|
331
|
+
label: string;
|
|
332
|
+
trailing?: React$1.ReactNode;
|
|
333
|
+
inputRef?: React$1.Ref<HTMLInputElement>;
|
|
334
|
+
};
|
|
335
|
+
/** Compact search input with a leading glyph and a visually hidden label. */
|
|
336
|
+
declare function SearchField({ label, trailing, inputRef, className, ...props }: SearchFieldProps): React$1.JSX.Element;
|
|
337
|
+
type ViewHeaderProps = {
|
|
338
|
+
icon: LucideIcon;
|
|
339
|
+
title: React$1.ReactNode;
|
|
340
|
+
children?: React$1.ReactNode;
|
|
341
|
+
divider?: boolean;
|
|
342
|
+
};
|
|
343
|
+
/** Opens the navigation drawer; only rendered below the sidebar breakpoint. */
|
|
344
|
+
declare function NavMenuButton(): React$1.JSX.Element;
|
|
345
|
+
/**
|
|
346
|
+
* View header at least 48px tall: icon and title on the left, actions on the
|
|
347
|
+
* right. The title keeps a floor of 8rem, so on a narrow view the actions wrap
|
|
348
|
+
* onto a second row instead of squeezing it to an ellipsis.
|
|
349
|
+
*/
|
|
350
|
+
declare function ViewHeader({ icon: Icon, title, children, divider }: ViewHeaderProps): React$1.JSX.Element;
|
|
351
|
+
type ViewFrameProps = {
|
|
352
|
+
icon: LucideIcon;
|
|
353
|
+
title: React$1.ReactNode;
|
|
354
|
+
/** Header controls on the right. */
|
|
355
|
+
actions?: React$1.ReactNode;
|
|
356
|
+
/** Accessible name for the view region; defaults to the title when it is a string. */
|
|
357
|
+
label?: string;
|
|
358
|
+
/** Widest the content column grows. */
|
|
359
|
+
maxWidth?: string;
|
|
360
|
+
className?: string;
|
|
361
|
+
children: React$1.ReactNode;
|
|
362
|
+
};
|
|
363
|
+
/**
|
|
364
|
+
* A full view: the 48px header over a scrolling, centred content column with
|
|
365
|
+
* container-relative padding. Views keep their own scroll so the sidebar
|
|
366
|
+
* never moves.
|
|
367
|
+
*/
|
|
368
|
+
declare function ViewFrame({ icon, title, actions, label, maxWidth, className, children }: ViewFrameProps): React$1.JSX.Element;
|
|
369
|
+
/**
|
|
370
|
+
* Sideways-scrolling row whose children keep their shadows. A scroll container
|
|
371
|
+
* clips everything outside its padding box, which would shave the ring and
|
|
372
|
+
* drop shadow off raised children; the matching negative margin and padding
|
|
373
|
+
* give them room without moving the row.
|
|
374
|
+
*/
|
|
375
|
+
declare const scrollRowClass = "-m-2 overflow-x-auto p-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden";
|
|
376
|
+
type FilterGroupProps<T extends string> = {
|
|
377
|
+
label: string;
|
|
378
|
+
value: T;
|
|
379
|
+
options: {
|
|
380
|
+
value: T;
|
|
381
|
+
label: string;
|
|
382
|
+
count?: number;
|
|
383
|
+
icon?: LucideIcon;
|
|
384
|
+
}[];
|
|
385
|
+
onChange: (value: T) => void;
|
|
386
|
+
/** Shows only icons in narrow containers; labels stay available to screen readers. */
|
|
387
|
+
compact?: boolean;
|
|
388
|
+
/** Styles the pill row, e.g. a tinted track. */
|
|
389
|
+
className?: string;
|
|
390
|
+
/** Styles the scroll wrapper, e.g. to stop it shrinking in a toolbar. */
|
|
391
|
+
rootClassName?: string;
|
|
392
|
+
/** Locale for the counts. Defaults to en-US. */
|
|
393
|
+
locale?: string;
|
|
394
|
+
};
|
|
395
|
+
/** Single-choice filter pills with optional counts; scrolls sideways when narrow. */
|
|
396
|
+
declare function FilterGroup<T extends string>({ label, value, options, onChange, compact, className, rootClassName, locale }: FilterGroupProps<T>): React$1.JSX.Element;
|
|
397
|
+
type SegmentedChoice<T extends string> = {
|
|
398
|
+
value: T;
|
|
399
|
+
label: string;
|
|
400
|
+
icon?: LucideIcon;
|
|
401
|
+
};
|
|
402
|
+
type SegmentedProps<T extends string> = {
|
|
403
|
+
label: string;
|
|
404
|
+
value: T;
|
|
405
|
+
options: SegmentedChoice<T>[];
|
|
406
|
+
onChange: (value: T) => void;
|
|
407
|
+
className?: string;
|
|
408
|
+
};
|
|
409
|
+
/**
|
|
410
|
+
* Two-to-four option segmented control. The track has a 6px radius and 2px
|
|
411
|
+
* padding, so each segment is 4px (concentric with the track).
|
|
412
|
+
*/
|
|
413
|
+
declare function Segmented<T extends string>({ label, value, options, onChange, className }: SegmentedProps<T>): React$1.JSX.Element;
|
|
414
|
+
/**
|
|
415
|
+
* Card surfaces whose full-bleed children (tinted strips, sticky columns,
|
|
416
|
+
* table heads, canvas grids) must not cover the edge. `shadow-card` draws its
|
|
417
|
+
* edge as an inset shadow in both modes, which keeps it safe from any clipping
|
|
418
|
+
* ancestor but paints it beneath children, so the surface gets a 1px inset and
|
|
419
|
+
* every child lives in `SurfaceBody`.
|
|
420
|
+
*/
|
|
421
|
+
declare const surfaceInsetClass = "overflow-hidden p-px";
|
|
422
|
+
declare function SurfaceBody({ className, children, ...props }: React$1.ComponentProps<'div'>): React$1.JSX.Element;
|
|
423
|
+
/** Staggered entrance for a column of blocks: each child waits `step` ms longer. */
|
|
424
|
+
declare function staggerStyle(index: number, step?: number): React$1.CSSProperties;
|
|
425
|
+
declare const enterClass = "animate-[ai-fade-up_var(--duration-slow)_var(--ease-out)_both] motion-reduce:animate-none";
|
|
426
|
+
/**
|
|
427
|
+
* Ref that toggles the DOM `inert` property. React 18 has no `inert` prop and
|
|
428
|
+
* React 19 treats it as boolean, so setting the property works on both.
|
|
429
|
+
*/
|
|
430
|
+
declare function useInert<T extends HTMLElement>(inert: boolean): (node: T | null) => void;
|
|
431
|
+
//#endregion
|
|
432
|
+
//#region src/lib/intl.d.ts
|
|
433
|
+
/**
|
|
434
|
+
* Groups the digits of a count: `1284` becomes "1,284". Defaults to en-US so the server and the browser agree; pass
|
|
435
|
+
* the reader's locale to show their own separators. A missing or non-finite value reads as an em dash.
|
|
436
|
+
*/
|
|
437
|
+
declare function formatCount(value: number, locale?: string): string;
|
|
438
|
+
type PluralForms = {
|
|
439
|
+
one: string;
|
|
440
|
+
other: string;
|
|
441
|
+
zero?: string;
|
|
442
|
+
two?: string;
|
|
443
|
+
few?: string;
|
|
444
|
+
many?: string;
|
|
445
|
+
};
|
|
446
|
+
/**
|
|
447
|
+
* Picks the noun form for a count with `Intl.PluralRules`, so `1` reads "1 skill" and `2` reads "2 skills". Falls
|
|
448
|
+
* back to `other` for a form that was not supplied.
|
|
449
|
+
*
|
|
450
|
+
* The forms are English unless `locale` says otherwise, and the choice follows the rules of the language they are
|
|
451
|
+
* written in, not of the page's formatting locale: Japanese has no "one" form, so English forms picked by Japanese
|
|
452
|
+
* rules would read "1 skills". Pass `locale` only together with forms written for it, such as
|
|
453
|
+
* `plural(n, { one, few, many, other }, 'ru')`.
|
|
454
|
+
*/
|
|
455
|
+
declare function plural(count: number, forms: PluralForms, locale?: string): string;
|
|
456
|
+
/**
|
|
457
|
+
* Joins names for a sentence, showing the first `max` and a count of the rest: "a, b, c, and 12 more". Fifteen names
|
|
458
|
+
* are a number to act on, not a paragraph to read.
|
|
459
|
+
*/
|
|
460
|
+
declare function nameList(names: readonly string[], { max, locale }?: {
|
|
461
|
+
max?: number;
|
|
462
|
+
locale?: string;
|
|
463
|
+
}): string;
|
|
464
|
+
//#endregion
|
|
465
|
+
//#region src/lib/use-scroll-fade.d.ts
|
|
466
|
+
interface ScrollFade<T extends HTMLElement> {
|
|
467
|
+
/** A callback ref, so the fade follows the scroller even when it mounts after the component does. */
|
|
468
|
+
ref: (node: T | null) => void;
|
|
469
|
+
/** The scroller, once mounted. */
|
|
470
|
+
node: T | null;
|
|
471
|
+
/** Whether the content is wider than the scroller. */
|
|
472
|
+
overflowing: boolean;
|
|
473
|
+
/** A mask that fades each edge with content past it; undefined while everything fits. */
|
|
474
|
+
style: React$1.CSSProperties | undefined;
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* Tracks a sideways scroller and fades each edge that still has content past it, so a row cut off at the edge reads
|
|
478
|
+
* as scrollable instead of ending in a hard cut. The sides are physical, so the mask is right in both directions.
|
|
479
|
+
*/
|
|
480
|
+
declare function useScrollFade<T extends HTMLElement>(): ScrollFade<T>;
|
|
481
|
+
//#endregion
|
|
482
|
+
//#region src/components/workspace-kit/middle-truncate.d.ts
|
|
483
|
+
interface MiddleTruncateProps {
|
|
484
|
+
text: string;
|
|
485
|
+
/**
|
|
486
|
+
* Characters that always stay visible at the end: the extension, version or last path segment. Defaults to the
|
|
487
|
+
* extension plus four characters, or eight. `0` keeps none: an ordinary line that ends in an ellipsis.
|
|
488
|
+
*/
|
|
489
|
+
tail?: number;
|
|
490
|
+
/** The tooltip. Default: the whole text. Pass `false` when an ancestor already has a richer `title`, which a nested one would hide. */
|
|
491
|
+
title?: string | false;
|
|
492
|
+
className?: string;
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* `MiddleTruncate` — one line that gives up its middle when it runs out of room, keeping the start and the end.
|
|
496
|
+
* Names and keys differ at the end (`…edited_edited.HEIC`, `…/2025/09/14/`), so clipping only the end would make
|
|
497
|
+
* different files read the same. The full text is the tooltip.
|
|
498
|
+
*
|
|
499
|
+
* A long text is drawn as two pieces, so the text itself is in the document once more, visually hidden: that copy is
|
|
500
|
+
* what assistive tech reads and what a selection or copy picks up, so a copied name is the original string once. The
|
|
501
|
+
* two visible pieces cannot be selected themselves. Graphemes are never cut, so an emoji or accent stays whole.
|
|
502
|
+
*/
|
|
503
|
+
declare function MiddleTruncate({ text, tail, title, className }: MiddleTruncateProps): React$1.JSX.Element;
|
|
504
|
+
//#endregion
|
|
505
|
+
//#region src/components/workspace-kit/reduced-motion.d.ts
|
|
506
|
+
declare function prefersReducedMotion(): boolean;
|
|
507
|
+
/** Reduced-motion preference that renders `false` on the server and hydrates without a mismatch. */
|
|
508
|
+
declare function useReducedMotion(): boolean;
|
|
509
|
+
//#endregion
|
|
510
|
+
//#region src/components/workspace-kit/shell.d.ts
|
|
511
|
+
/** An icon for a navigation row or account action: any component that takes a class name. */
|
|
512
|
+
type WorkspaceIcon = React$1.ComponentType<{
|
|
513
|
+
className?: string;
|
|
514
|
+
'aria-hidden'?: boolean | 'true' | 'false';
|
|
515
|
+
}>;
|
|
516
|
+
/** The product mark at the top of the sidebar. */
|
|
517
|
+
type WorkspaceBrand = {
|
|
518
|
+
name: React$1.ReactNode;
|
|
519
|
+
description?: React$1.ReactNode;
|
|
520
|
+
href?: string;
|
|
521
|
+
logo?: React$1.ReactNode;
|
|
522
|
+
};
|
|
523
|
+
/** One sidebar destination. Rows are links, so hosts keep their own router. */
|
|
524
|
+
type WorkspaceNavigationItem = {
|
|
525
|
+
id: string;
|
|
526
|
+
label: React$1.ReactNode;
|
|
527
|
+
href: string;
|
|
528
|
+
isActive?: boolean;
|
|
529
|
+
disabled?: boolean;
|
|
530
|
+
icon?: WorkspaceIcon;
|
|
531
|
+
/** Quiet trailing value, such as a count. */
|
|
532
|
+
badge?: React$1.ReactNode;
|
|
533
|
+
};
|
|
534
|
+
/** A titled run of sidebar rows. */
|
|
535
|
+
type WorkspaceNavigationGroup = {
|
|
536
|
+
id: string;
|
|
537
|
+
label?: React$1.ReactNode;
|
|
538
|
+
items: readonly WorkspaceNavigationItem[];
|
|
539
|
+
};
|
|
540
|
+
type WorkspaceAccountActionBase = {
|
|
541
|
+
id: string;
|
|
542
|
+
label: React$1.ReactNode;
|
|
543
|
+
icon?: WorkspaceIcon;
|
|
544
|
+
disabled?: boolean;
|
|
545
|
+
variant?: 'default' | 'destructive';
|
|
546
|
+
};
|
|
547
|
+
/** A session action in the account menu: a link, or a callback. */
|
|
548
|
+
type WorkspaceAccountAction = WorkspaceAccountActionBase & ({
|
|
549
|
+
href: string;
|
|
550
|
+
onSelect?: never;
|
|
551
|
+
} | {
|
|
552
|
+
href?: never;
|
|
553
|
+
onSelect: () => void;
|
|
554
|
+
});
|
|
555
|
+
type WorkspaceAccountActionGroup = {
|
|
556
|
+
id: string;
|
|
557
|
+
label?: React$1.ReactNode;
|
|
558
|
+
actions: readonly WorkspaceAccountAction[];
|
|
559
|
+
};
|
|
560
|
+
/** The signed-in person shown at the foot of the sidebar. */
|
|
561
|
+
type WorkspaceAccount = {
|
|
562
|
+
name: string;
|
|
563
|
+
secondaryLabel?: string;
|
|
564
|
+
avatarUrl?: string;
|
|
565
|
+
avatarAlt?: string;
|
|
566
|
+
/** Initials when there is no avatar; derived from `name` by default. */
|
|
567
|
+
fallback?: string;
|
|
568
|
+
actionGroups?: readonly WorkspaceAccountActionGroup[];
|
|
569
|
+
};
|
|
570
|
+
type WorkspaceShellContextValue = {
|
|
571
|
+
/** Opens the navigation drawer shown below the sidebar breakpoint. */
|
|
572
|
+
openNav: () => void;
|
|
573
|
+
};
|
|
574
|
+
declare const WorkspaceShellContext: React$1.Context<WorkspaceShellContextValue>;
|
|
575
|
+
/** The enclosing workspace shell. Outside one, `openNav` is a no-op. */
|
|
576
|
+
declare function useWorkspaceShell(): WorkspaceShellContextValue;
|
|
577
|
+
type WorkspaceSidebarRenderProps = {
|
|
578
|
+
/** `rail` sits beside the content from the `3xl` container width up; `drawer` renders inside the mobile sheet. */
|
|
579
|
+
mode: 'rail' | 'drawer';
|
|
580
|
+
/** Icon-rail state. Always false in the drawer. */
|
|
581
|
+
collapsed: boolean;
|
|
582
|
+
onCollapsedChange: (collapsed: boolean) => void;
|
|
583
|
+
/** Closes the drawer. Call it after any navigation item is chosen. */
|
|
584
|
+
onNavigate: () => void;
|
|
585
|
+
};
|
|
586
|
+
type WorkspaceShellProps = {
|
|
587
|
+
/** Rendered twice: once as the rail and once inside the navigation drawer. */
|
|
588
|
+
sidebar: (props: WorkspaceSidebarRenderProps) => React$1.ReactNode;
|
|
589
|
+
children: React$1.ReactNode;
|
|
590
|
+
/** `data-slot` on the root, so hosts and tests can target a specific template. */
|
|
591
|
+
slot?: string;
|
|
592
|
+
defaultSidebarCollapsed?: boolean;
|
|
593
|
+
/**
|
|
594
|
+
* Sits the workspace in a rounded, hairline-edged frame on a canvas one tier
|
|
595
|
+
* darker than the content, for hosts that present it as an app window rather
|
|
596
|
+
* than the whole page. `className` then lands on the canvas.
|
|
597
|
+
*/
|
|
598
|
+
framed?: boolean;
|
|
599
|
+
className?: string;
|
|
600
|
+
};
|
|
601
|
+
/**
|
|
602
|
+
* Workspace layout shared by the application templates: a collapsible sidebar
|
|
603
|
+
* rail beside the main region, a left drawer below the `3xl` container width,
|
|
604
|
+
* a skip link, and one tooltip provider. The root is the `ws` container, so
|
|
605
|
+
* every view sizes itself to the space it is given rather than the viewport.
|
|
606
|
+
*/
|
|
607
|
+
declare function WorkspaceShell({ sidebar, children, slot, defaultSidebarCollapsed, framed, className }: WorkspaceShellProps): React$1.JSX.Element;
|
|
608
|
+
//#endregion
|
|
609
|
+
//#region src/components/workspace-kit/surface.d.ts
|
|
610
|
+
/** A status as the UI shows it: a short label and the tone that colours it. */
|
|
611
|
+
type Presentation = {
|
|
612
|
+
label: string;
|
|
613
|
+
tone: Tone;
|
|
614
|
+
description?: string;
|
|
615
|
+
};
|
|
616
|
+
/** Hairline dashed rule used between sections of one surface. */
|
|
617
|
+
declare const dashedRule = "border-dashed border-foreground/10";
|
|
618
|
+
/** Header row and body row classes shared by every workspace table. */
|
|
619
|
+
declare const tableHeadClass = "bg-muted/60 text-left rtl:text-right text-xs font-normal text-muted-foreground [&_th]:px-4 [&_th]:py-2 [&_th]:font-normal";
|
|
620
|
+
declare const tableRowClass = "border-t border-border align-middle [&_td]:px-4 [&_td]:py-2.5";
|
|
621
|
+
/**
|
|
622
|
+
* Heading row that opens a group of body rows, tinted like the header so the
|
|
623
|
+
* break reads without a heavier line. Pair it with `<th scope="rowgroup" colSpan>`.
|
|
624
|
+
*/
|
|
625
|
+
declare const tableGroupRowClass = "border-t border-border bg-muted/60 [&_th]:px-4 [&_th]:py-1.5 [&_th]:text-start [&_th]:text-xs [&_th]:font-medium [&_th]:text-muted-foreground";
|
|
626
|
+
/** A native select styled like the kit's inputs. */
|
|
627
|
+
declare const nativeSelectClass: string;
|
|
628
|
+
/**
|
|
629
|
+
* Card around a table that scrolls sideways below `minWidth`, keeping the card
|
|
630
|
+
* edge visible over full-bleed header rows. An edge fades while there is more
|
|
631
|
+
* to scroll to, so a table cut off on a phone reads as scrollable.
|
|
632
|
+
*/
|
|
633
|
+
declare function TableSurface({ children, className, minWidth }: {
|
|
634
|
+
children: React$1.ReactNode;
|
|
635
|
+
className?: string;
|
|
636
|
+
minWidth?: string;
|
|
637
|
+
}): React$1.JSX.Element;
|
|
638
|
+
/** Small tinted status label from a presentation map entry. */
|
|
639
|
+
declare function StatusBadge({ presentation, className, children }: {
|
|
640
|
+
presentation: Presentation;
|
|
641
|
+
className?: string;
|
|
642
|
+
children?: React$1.ReactNode;
|
|
643
|
+
}): React$1.JSX.Element;
|
|
644
|
+
type PanelProps = Omit<React$1.ComponentProps<'section'>, 'title'> & {
|
|
645
|
+
title?: React$1.ReactNode;
|
|
646
|
+
description?: React$1.ReactNode;
|
|
647
|
+
/** Controls on the right of the header. */
|
|
648
|
+
actions?: React$1.ReactNode;
|
|
649
|
+
/** Tinted strip under a dashed rule, for totals, notes, or secondary actions. */
|
|
650
|
+
footer?: React$1.ReactNode;
|
|
651
|
+
/** Padding for the body; pass `p-0` for tables that run edge to edge. */
|
|
652
|
+
bodyClassName?: string;
|
|
653
|
+
};
|
|
654
|
+
/**
|
|
655
|
+
* The basic workspace surface: a card with an optional header, a body, and a
|
|
656
|
+
* tinted footer strip. Full-bleed children never cover the card edge (see
|
|
657
|
+
* `SurfaceBody`).
|
|
658
|
+
*/
|
|
659
|
+
declare function Panel({ title, description, actions, footer, bodyClassName, className, children, ...props }: PanelProps): React$1.JSX.Element;
|
|
660
|
+
/**
|
|
661
|
+
* Double frame: a quiet 3px bezel around a raised card. The bezel is 14px and
|
|
662
|
+
* the card 11px, so the corners stay concentric.
|
|
663
|
+
*/
|
|
664
|
+
declare function Bezel({ className, innerClassName, muted, children, ...props }: React$1.ComponentProps<'div'> & {
|
|
665
|
+
innerClassName?: string;
|
|
666
|
+
muted?: boolean;
|
|
667
|
+
}): React$1.JSX.Element;
|
|
668
|
+
type StatTileProps = {
|
|
669
|
+
label: React$1.ReactNode;
|
|
670
|
+
value: React$1.ReactNode;
|
|
671
|
+
hint?: React$1.ReactNode;
|
|
672
|
+
icon?: LucideIcon;
|
|
673
|
+
className?: string;
|
|
674
|
+
};
|
|
675
|
+
/** Label over a large tabular figure, with an optional hint below. */
|
|
676
|
+
declare function StatTile({ label, value, hint, icon: Icon, className }: StatTileProps): React$1.JSX.Element;
|
|
677
|
+
type KeyValueListProps = {
|
|
678
|
+
items: {
|
|
679
|
+
label: React$1.ReactNode;
|
|
680
|
+
value: React$1.ReactNode;
|
|
681
|
+
key?: string;
|
|
682
|
+
}[];
|
|
683
|
+
className?: string;
|
|
684
|
+
};
|
|
685
|
+
/** Label and value rows separated by dashed rules. */
|
|
686
|
+
declare function KeyValueList({ items, className }: KeyValueListProps): React$1.JSX.Element;
|
|
687
|
+
type EmptyStateProps = {
|
|
688
|
+
icon: LucideIcon;
|
|
689
|
+
title: React$1.ReactNode;
|
|
690
|
+
description?: React$1.ReactNode;
|
|
691
|
+
action?: React$1.ReactNode;
|
|
692
|
+
className?: string;
|
|
693
|
+
};
|
|
694
|
+
/** Centred empty or blocked state with one next step. */
|
|
695
|
+
declare function EmptyState({ icon: Icon, title, description, action, className }: EmptyStateProps): React$1.JSX.Element;
|
|
696
|
+
/** Heading row between groups of panels inside a view. */
|
|
697
|
+
declare function SectionHeading({ title, description, actions, id }: {
|
|
698
|
+
title: React$1.ReactNode;
|
|
699
|
+
description?: React$1.ReactNode;
|
|
700
|
+
actions?: React$1.ReactNode;
|
|
701
|
+
id?: string;
|
|
702
|
+
}): React$1.JSX.Element;
|
|
703
|
+
/** Tinted icon tile used as a leading glyph in rows and notices. */
|
|
704
|
+
declare function IconTile({ icon: Icon, tone, className }: {
|
|
705
|
+
icon: LucideIcon;
|
|
706
|
+
tone?: Tone;
|
|
707
|
+
className?: string;
|
|
708
|
+
}): React$1.JSX.Element;
|
|
709
|
+
//#endregion
|
|
710
|
+
//#region src/components/workspace-kit/view-transition.d.ts
|
|
711
|
+
type ViewAnimationProps = AnimateViewProps & {
|
|
712
|
+
children: React$1.ReactNode;
|
|
713
|
+
};
|
|
714
|
+
/**
|
|
715
|
+
* `AnimateView` for full-view swaps (route-like changes, list swaps, shared
|
|
716
|
+
* elements). Renders children untouched when React lacks `ViewTransition`, and
|
|
717
|
+
* zeroes durations under reduced motion because view-transition pseudo-elements
|
|
718
|
+
* sit outside the app's reduced-motion CSS.
|
|
719
|
+
*/
|
|
720
|
+
declare function ViewAnimation({ children, transition, ...props }: ViewAnimationProps): React$1.JSX.Element;
|
|
721
|
+
/**
|
|
722
|
+
* Runs a state update as a view transition, tagging it with `types` (e.g. a
|
|
723
|
+
* direction) that `enter`/`exit`/`update` functions can read.
|
|
724
|
+
*/
|
|
725
|
+
declare function startViewTransition(update: () => void, ...types: string[]): void;
|
|
726
|
+
//#endregion
|
|
727
|
+
export { AppearanceRow, Bezel, CANVAS_NODE_ATTRIBUTE, CanvasSurface, type CanvasViewport, type CanvasViewportOptions, CanvasWire, CanvasZoomControls, EmptyState, FilterGroup, IconTile, KeyValueList, MiddleTruncate, NODE_RADIUS, NO_PAN_ATTRIBUTE, NavCount, NavIcon, NavMenuButton, NavRow, type NavRowLinkProps, type NavRowProps, NavSection, type NavSectionProps, NodeIconTile, NodeShell, type NodeShellTone, Panel, type Presentation, RailTip, SearchField, SectionHeading, Segmented, SidebarFrame, type SidebarFrameProps, StatTile, StatusBadge, SurfaceBody, SwitcherTrigger, TONE_COLOR, TableSurface, type Tone, ToneBadge, TooltipIconButton, ViewAnimation, ViewFrame, ViewHeader, type Viewport, WIRE_STROKE, WireDot, type WirePoint, type WireTone, type WorkspaceAccount, type WorkspaceAccountAction, type WorkspaceAccountActionGroup, type WorkspaceBrand, type WorkspaceIcon, type WorkspaceNavigationGroup, type WorkspaceNavigationItem, WorkspaceShell, WorkspaceShellContext, type WorkspaceShellContextValue, type WorkspaceShellProps, type WorkspaceSidebarRenderProps, type WorkspaceTheme, dashedRule, enterClass, focusRingClass, formatCount, hitAreaClass, monogram, nameList, nativeSelectClass, plural, prefersReducedMotion, pressClass, scrollRowClass, staggerStyle, startViewTransition, surfaceInsetClass, tableGroupRowClass, tableHeadClass, tableRowClass, useCanvasViewport, useInert, useReducedMotion, useScrollFade, useWorkspaceShell, wirePath };
|
|
728
|
+
//# sourceMappingURL=index.d.ts.map
|