@constructive-io/ui 0.11.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{ai-CiaH2sfF.js → ai-B7XNnqYL.js} +1674 -228
- package/dist/ai-B7XNnqYL.js.map +1 -0
- package/dist/{ai-lAkichk8.cjs → ai-DJ-YPj8c.cjs} +1768 -226
- package/dist/ai-DJ-YPj8c.cjs.map +1 -0
- package/dist/{alert-BXuP0ayz.d.ts → alert-CJ4Qyk6W.d.cts} +4 -2
- package/dist/{alert-BXuP0ayz.d.cts → alert-CJ4Qyk6W.d.ts} +4 -2
- package/dist/components/accordion.cjs +60 -0
- package/dist/components/accordion.cjs.map +1 -0
- package/dist/components/accordion.d.cts +14 -0
- package/dist/components/accordion.d.ts +14 -0
- package/dist/components/accordion.js +54 -0
- package/dist/components/accordion.js.map +1 -0
- package/dist/components/ai/index.cjs +17 -1
- package/dist/components/ai/index.d.cts +2 -2
- package/dist/components/ai/index.d.ts +2 -2
- package/dist/components/ai/index.js +2 -2
- package/dist/components/alert-dialog.cjs +17 -8
- package/dist/components/alert-dialog.cjs.map +1 -1
- package/dist/components/alert-dialog.d.cts +1 -1
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +17 -8
- package/dist/components/alert-dialog.js.map +1 -1
- package/dist/components/alert.cjs +18 -8
- package/dist/components/alert.cjs.map +1 -1
- package/dist/components/alert.d.cts +2 -2
- package/dist/components/alert.d.ts +2 -2
- package/dist/components/alert.js +18 -9
- package/dist/components/alert.js.map +1 -1
- package/dist/components/autocomplete.cjs +9 -5
- package/dist/components/autocomplete.cjs.map +1 -1
- package/dist/components/autocomplete.js +9 -5
- package/dist/components/autocomplete.js.map +1 -1
- package/dist/components/avatar.cjs +9 -3
- package/dist/components/avatar.cjs.map +1 -1
- package/dist/components/avatar.d.cts +6 -0
- package/dist/components/avatar.d.ts +6 -0
- package/dist/components/avatar.js +9 -3
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/badge.cjs +25 -18
- package/dist/components/badge.cjs.map +1 -1
- package/dist/components/badge.js +25 -18
- package/dist/components/badge.js.map +1 -1
- package/dist/components/breadcrumb.cjs +9 -6
- package/dist/components/breadcrumb.cjs.map +1 -1
- package/dist/components/breadcrumb.js +9 -6
- package/dist/components/breadcrumb.js.map +1 -1
- package/dist/components/button-group.cjs +57 -0
- package/dist/components/button-group.cjs.map +1 -0
- package/dist/components/button-group.d.cts +16 -0
- package/dist/components/button-group.d.ts +16 -0
- package/dist/components/button-group.js +51 -0
- package/dist/components/button-group.js.map +1 -0
- package/dist/components/button.cjs +59 -15
- package/dist/components/button.cjs.map +1 -1
- package/dist/components/button.d.cts +32 -2
- package/dist/components/button.d.ts +32 -2
- package/dist/components/button.js +59 -15
- package/dist/components/button.js.map +1 -1
- package/dist/components/calendar-rac.cjs +14 -8
- package/dist/components/calendar-rac.cjs.map +1 -1
- package/dist/components/calendar-rac.js +14 -8
- package/dist/components/calendar-rac.js.map +1 -1
- package/dist/components/card.cjs +35 -23
- package/dist/components/card.cjs.map +1 -1
- package/dist/components/card.d.cts +3 -2
- package/dist/components/card.d.ts +3 -2
- package/dist/components/card.js +35 -23
- package/dist/components/card.js.map +1 -1
- package/dist/components/checkbox.cjs +5 -5
- package/dist/components/checkbox.cjs.map +1 -1
- package/dist/components/checkbox.js +5 -5
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/collapsible.cjs +3 -3
- package/dist/components/collapsible.cjs.map +1 -1
- package/dist/components/collapsible.js +3 -3
- package/dist/components/collapsible.js.map +1 -1
- package/dist/components/combobox.cjs +24 -12
- package/dist/components/combobox.cjs.map +1 -1
- package/dist/components/combobox.d.cts +2 -1
- package/dist/components/combobox.d.ts +2 -1
- package/dist/components/combobox.js +24 -12
- package/dist/components/combobox.js.map +1 -1
- package/dist/components/command.cjs +25 -14
- package/dist/components/command.cjs.map +1 -1
- package/dist/components/command.d.cts +6 -2
- package/dist/components/command.d.ts +6 -2
- package/dist/components/command.js +25 -14
- package/dist/components/command.js.map +1 -1
- package/dist/components/dialog.cjs +22 -12
- package/dist/components/dialog.cjs.map +1 -1
- package/dist/components/dialog.d.cts +5 -2
- package/dist/components/dialog.d.ts +5 -2
- package/dist/components/dialog.js +22 -12
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/dock.cjs +50 -27
- package/dist/components/dock.cjs.map +1 -1
- package/dist/components/dock.d.cts +1 -1
- package/dist/components/dock.d.ts +1 -1
- package/dist/components/dock.js +51 -28
- package/dist/components/dock.js.map +1 -1
- package/dist/components/drawer.cjs +22 -14
- package/dist/components/drawer.cjs.map +1 -1
- package/dist/components/drawer.js +22 -14
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/dropdown-menu.cjs +34 -28
- package/dist/components/dropdown-menu.cjs.map +1 -1
- package/dist/components/dropdown-menu.d.cts +2 -2
- package/dist/components/dropdown-menu.d.ts +2 -2
- package/dist/components/dropdown-menu.js +52 -46
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/empty.cjs +4 -4
- package/dist/components/empty.cjs.map +1 -1
- package/dist/components/empty.js +4 -4
- package/dist/components/empty.js.map +1 -1
- package/dist/components/field.cjs +33 -33
- package/dist/components/field.cjs.map +1 -1
- package/dist/components/field.d.cts +1 -1
- package/dist/components/field.d.ts +1 -1
- package/dist/components/field.js +34 -34
- package/dist/components/field.js.map +1 -1
- package/dist/components/flickering-grid.cjs +1 -1
- package/dist/components/flickering-grid.cjs.map +1 -1
- package/dist/components/flickering-grid.js +1 -1
- package/dist/components/flickering-grid.js.map +1 -1
- package/dist/components/flow-zoom-panel.cjs +10 -5
- package/dist/components/flow-zoom-panel.cjs.map +1 -1
- package/dist/components/flow-zoom-panel.d.cts +8 -1
- package/dist/components/flow-zoom-panel.d.ts +8 -1
- package/dist/components/flow-zoom-panel.js +10 -5
- package/dist/components/flow-zoom-panel.js.map +1 -1
- package/dist/components/form-control.cjs +12 -8
- package/dist/components/form-control.cjs.map +1 -1
- package/dist/components/form-control.js +12 -8
- package/dist/components/form-control.js.map +1 -1
- package/dist/components/form.cjs +5 -5
- package/dist/components/form.cjs.map +1 -1
- package/dist/components/form.js +5 -5
- package/dist/components/form.js.map +1 -1
- package/dist/components/input-group.cjs +13 -7
- package/dist/components/input-group.cjs.map +1 -1
- package/dist/components/input-group.d.cts +2 -2
- package/dist/components/input-group.d.ts +2 -2
- package/dist/components/input-group.js +11 -7
- package/dist/components/input-group.js.map +1 -1
- package/dist/components/input-otp.cjs +252 -0
- package/dist/components/input-otp.cjs.map +1 -0
- package/dist/components/input-otp.d.cts +44 -0
- package/dist/components/input-otp.d.ts +44 -0
- package/dist/components/input-otp.js +251 -0
- package/dist/components/input-otp.js.map +1 -0
- package/dist/components/input.cjs +10 -4
- package/dist/components/input.cjs.map +1 -1
- package/dist/components/input.d.cts +11 -2
- package/dist/components/input.d.ts +11 -2
- package/dist/components/input.js +10 -4
- package/dist/components/input.js.map +1 -1
- package/dist/components/item.cjs +151 -0
- package/dist/components/item.cjs.map +1 -0
- package/dist/components/item.d.cts +37 -0
- package/dist/components/item.d.ts +37 -0
- package/dist/components/item.js +137 -0
- package/dist/components/item.js.map +1 -0
- package/dist/components/json-input.cjs +4 -143
- package/dist/components/json-input.d.cts +6 -4
- package/dist/components/json-input.d.ts +6 -4
- package/dist/components/json-input.js +2 -140
- package/dist/components/kbd.cjs +35 -0
- package/dist/components/kbd.cjs.map +1 -0
- package/dist/components/kbd.d.cts +16 -0
- package/dist/components/kbd.d.ts +16 -0
- package/dist/components/kbd.js +31 -0
- package/dist/components/kbd.js.map +1 -0
- package/dist/components/label.cjs +3 -3
- package/dist/components/label.cjs.map +1 -1
- package/dist/components/label.js +3 -3
- package/dist/components/label.js.map +1 -1
- package/dist/components/motion-grid.cjs +20 -8
- package/dist/components/motion-grid.cjs.map +1 -1
- package/dist/components/motion-grid.js +20 -8
- package/dist/components/motion-grid.js.map +1 -1
- package/dist/components/multi-select.cjs +77 -67
- package/dist/components/multi-select.cjs.map +1 -1
- package/dist/components/multi-select.js +77 -67
- package/dist/components/multi-select.js.map +1 -1
- package/dist/components/page-header.cjs +12 -9
- package/dist/components/page-header.cjs.map +1 -1
- package/dist/components/page-header.js +12 -9
- package/dist/components/page-header.js.map +1 -1
- package/dist/components/pagination.cjs +10 -4
- package/dist/components/pagination.cjs.map +1 -1
- package/dist/components/pagination.d.cts +1 -1
- package/dist/components/pagination.d.ts +1 -1
- package/dist/components/pagination.js +10 -4
- package/dist/components/pagination.js.map +1 -1
- package/dist/components/phone-input.cjs +228 -0
- package/dist/components/phone-input.cjs.map +1 -0
- package/dist/components/phone-input.d.cts +42 -0
- package/dist/components/phone-input.d.ts +42 -0
- package/dist/components/phone-input.js +220 -0
- package/dist/components/phone-input.js.map +1 -0
- package/dist/components/popover.cjs +5 -4
- package/dist/components/popover.cjs.map +1 -1
- package/dist/components/popover.js +5 -4
- package/dist/components/popover.js.map +1 -1
- package/dist/components/progress.cjs +20 -3
- package/dist/components/progress.cjs.map +1 -1
- package/dist/components/progress.d.cts +1 -1
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/progress.js +20 -3
- package/dist/components/progress.js.map +1 -1
- package/dist/components/progressive-blur-scroll-container.cjs +2 -2
- package/dist/components/progressive-blur-scroll-container.cjs.map +1 -1
- package/dist/components/progressive-blur-scroll-container.d.cts +1 -1
- package/dist/components/progressive-blur-scroll-container.d.ts +1 -1
- package/dist/components/progressive-blur-scroll-container.js +2 -2
- package/dist/components/progressive-blur-scroll-container.js.map +1 -1
- package/dist/components/progressive-blur.cjs +3 -2
- package/dist/components/progressive-blur.cjs.map +1 -1
- package/dist/components/progressive-blur.js +3 -2
- package/dist/components/progressive-blur.js.map +1 -1
- package/dist/components/radio-group.cjs +2 -2
- package/dist/components/radio-group.cjs.map +1 -1
- package/dist/components/radio-group.js +2 -2
- package/dist/components/radio-group.js.map +1 -1
- package/dist/components/record-picker.cjs +1 -1
- package/dist/components/record-picker.js +1 -1
- package/dist/components/resizable.cjs +2 -2
- package/dist/components/resizable.cjs.map +1 -1
- package/dist/components/resizable.js +2 -2
- package/dist/components/resizable.js.map +1 -1
- package/dist/components/responsive-diagram.cjs +43 -21
- package/dist/components/responsive-diagram.cjs.map +1 -1
- package/dist/components/responsive-diagram.d.cts +7 -1
- package/dist/components/responsive-diagram.d.ts +7 -1
- package/dist/components/responsive-diagram.js +43 -21
- package/dist/components/responsive-diagram.js.map +1 -1
- package/dist/components/scroll-area.cjs +2 -2
- package/dist/components/scroll-area.cjs.map +1 -1
- package/dist/components/scroll-area.js +2 -2
- package/dist/components/scroll-area.js.map +1 -1
- package/dist/components/select.cjs +84 -20
- package/dist/components/select.cjs.map +1 -1
- package/dist/components/select.d.cts +12 -7
- package/dist/components/select.d.ts +12 -7
- package/dist/components/select.js +84 -20
- package/dist/components/select.js.map +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.cjs.map +1 -1
- package/dist/components/separator.d.cts +11 -2
- package/dist/components/separator.d.ts +11 -2
- package/dist/components/separator.js +1 -1
- package/dist/components/separator.js.map +1 -1
- package/dist/components/sheet.cjs +1 -1
- package/dist/components/sheet.d.cts +11 -5
- package/dist/components/sheet.d.ts +12 -6
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar.cjs +2 -1
- package/dist/components/sidebar.d.cts +7 -6
- package/dist/components/sidebar.d.ts +7 -6
- package/dist/components/sidebar.js +2 -1
- package/dist/components/slider.cjs +47 -0
- package/dist/components/slider.cjs.map +1 -0
- package/dist/components/slider.d.cts +8 -0
- package/dist/components/slider.d.ts +8 -0
- package/dist/components/slider.js +44 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/sonner.cjs +15 -4
- package/dist/components/sonner.cjs.map +1 -1
- package/dist/components/sonner.d.cts +10 -1
- package/dist/components/sonner.d.ts +10 -1
- package/dist/components/sonner.js +16 -5
- package/dist/components/sonner.js.map +1 -1
- package/dist/components/spinner.cjs +25 -0
- package/dist/components/spinner.cjs.map +1 -0
- package/dist/components/spinner.d.cts +16 -0
- package/dist/components/spinner.d.ts +16 -0
- package/dist/components/spinner.js +22 -0
- package/dist/components/spinner.js.map +1 -0
- package/dist/components/stack/index.cjs +1 -1
- package/dist/components/stack/index.js +1 -1
- package/dist/components/stepper.cjs +23 -17
- package/dist/components/stepper.cjs.map +1 -1
- package/dist/components/stepper.d.cts +2 -2
- package/dist/components/stepper.d.ts +2 -2
- package/dist/components/stepper.js +23 -17
- package/dist/components/stepper.js.map +1 -1
- package/dist/components/switch.cjs +5 -5
- package/dist/components/switch.cjs.map +1 -1
- package/dist/components/switch.js +5 -5
- package/dist/components/switch.js.map +1 -1
- package/dist/components/table.cjs +26 -7
- package/dist/components/table.cjs.map +1 -1
- package/dist/components/table.d.cts +20 -2
- package/dist/components/table.d.ts +20 -2
- package/dist/components/table.js +26 -8
- package/dist/components/table.js.map +1 -1
- package/dist/components/tabs.cjs +61 -8
- package/dist/components/tabs.cjs.map +1 -1
- package/dist/components/tabs.d.cts +13 -2
- package/dist/components/tabs.d.ts +13 -2
- package/dist/components/tabs.js +63 -11
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/tags.cjs +10 -5
- package/dist/components/tags.cjs.map +1 -1
- package/dist/components/tags.d.cts +1 -1
- package/dist/components/tags.d.ts +1 -1
- package/dist/components/tags.js +10 -5
- package/dist/components/tags.js.map +1 -1
- package/dist/components/textarea.cjs +5 -4
- package/dist/components/textarea.cjs.map +1 -1
- package/dist/components/textarea.js +5 -4
- package/dist/components/textarea.js.map +1 -1
- package/dist/components/toast/index.cjs +1 -1
- package/dist/components/toast/index.d.cts +2 -2
- package/dist/components/toast/index.d.ts +2 -2
- package/dist/components/toast/index.js +1 -1
- package/dist/components/toggle-group.cjs +69 -0
- package/dist/components/toggle-group.cjs.map +1 -0
- package/dist/components/toggle-group.d.cts +27 -0
- package/dist/components/toggle-group.d.ts +27 -0
- package/dist/components/toggle-group.js +65 -0
- package/dist/components/toggle-group.js.map +1 -0
- package/dist/components/toggle.cjs +54 -0
- package/dist/components/toggle.cjs.map +1 -0
- package/dist/components/toggle.d.cts +13 -0
- package/dist/components/toggle.d.ts +13 -0
- package/dist/components/toggle.js +50 -0
- package/dist/components/toggle.js.map +1 -0
- package/dist/components/tooltip.cjs +18 -6
- package/dist/components/tooltip.cjs.map +1 -1
- package/dist/components/tooltip.d.cts +1 -1
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +18 -6
- package/dist/components/tooltip.js.map +1 -1
- package/dist/components/unlink-button.cjs +2 -2
- package/dist/components/unlink-button.cjs.map +1 -1
- package/dist/components/unlink-button.d.cts +1 -0
- package/dist/components/unlink-button.d.ts +1 -0
- package/dist/components/unlink-button.js +2 -2
- package/dist/components/unlink-button.js.map +1 -1
- package/dist/components/workspace-kit/index.cjs +1477 -0
- package/dist/components/workspace-kit/index.cjs.map +1 -0
- package/dist/components/workspace-kit/index.d.cts +716 -0
- package/dist/components/workspace-kit/index.d.ts +716 -0
- package/dist/components/workspace-kit/index.js +1410 -0
- package/dist/components/workspace-kit/index.js.map +1 -0
- package/dist/compose-refs-Mbma1O3M.js +47 -0
- package/dist/compose-refs-Mbma1O3M.js.map +1 -0
- package/dist/compose-refs-uPrvNoiU.cjs +52 -0
- package/dist/compose-refs-uPrvNoiU.cjs.map +1 -0
- package/dist/fluid-highlight-AW-OITqJ.cjs +124 -0
- package/dist/fluid-highlight-AW-OITqJ.cjs.map +1 -0
- package/dist/fluid-highlight-DxWeZ7iu.js +119 -0
- package/dist/fluid-highlight-DxWeZ7iu.js.map +1 -0
- package/dist/{index-UnM04j0t.d.ts → index-BQZxmMpw.d.cts} +11 -31
- package/dist/{index-UnM04j0t.d.cts → index-BQZxmMpw.d.ts} +11 -31
- package/dist/{index-CyaFaZe2.d.cts → index-CiO-3M_X.d.cts} +334 -18
- package/dist/{index-B0wXxIAb.d.ts → index-z3LqQ5L5.d.ts} +334 -18
- package/dist/index.cjs +107 -17
- package/dist/index.d.cts +63 -13
- package/dist/index.d.ts +63 -13
- package/dist/index.js +27 -14
- package/dist/initial-focus-B8RLtyOZ.cjs +67 -0
- package/dist/initial-focus-B8RLtyOZ.cjs.map +1 -0
- package/dist/initial-focus-j2E0EnIx.js +61 -0
- package/dist/initial-focus-j2E0EnIx.js.map +1 -0
- package/dist/initials-DSkWTOb0.cjs +127 -0
- package/dist/initials-DSkWTOb0.cjs.map +1 -0
- package/dist/initials-kCcHgrSy.js +97 -0
- package/dist/initials-kCcHgrSy.js.map +1 -0
- package/dist/json-input-CH5aEmoA.js +293 -0
- package/dist/json-input-CH5aEmoA.js.map +1 -0
- package/dist/json-input-D8yM578l.cjs +311 -0
- package/dist/json-input-D8yM578l.cjs.map +1 -0
- package/dist/{motion-config-COCFHq1L.cjs → motion-config-DZ7w5Uhq.cjs} +32 -2
- package/dist/motion-config-DZ7w5Uhq.cjs.map +1 -0
- package/dist/{motion-config-COsZ6azM.js → motion-config-DoFp4I8f.js} +21 -3
- package/dist/motion-config-DoFp4I8f.js.map +1 -0
- package/dist/{record-picker-Bz4FApxD.cjs → record-picker-BQ1-Vx0g.cjs} +23 -8
- package/dist/record-picker-BQ1-Vx0g.cjs.map +1 -0
- package/dist/{record-picker-BbxngCeV.js → record-picker-DSRo4RXV.js} +23 -8
- package/dist/record-picker-DSRo4RXV.js.map +1 -0
- package/dist/{sheet-BdA0rfIz.cjs → sheet-OxWlnT_G.cjs} +25 -32
- package/dist/sheet-OxWlnT_G.cjs.map +1 -0
- package/dist/{sheet-BLHnhLRH.js → sheet-wPF_l9Cn.js} +25 -32
- package/dist/sheet-wPF_l9Cn.js.map +1 -0
- package/dist/{sidebar-BavjjJp0.cjs → sidebar-BEEWmJwC.cjs} +74 -57
- package/dist/sidebar-BEEWmJwC.cjs.map +1 -0
- package/dist/{sidebar-DeoL2ttp.js → sidebar-DWl1Azyv.js} +74 -57
- package/dist/sidebar-DWl1Azyv.js.map +1 -0
- package/dist/{stack-ci2lkfkr.cjs → stack-CEvmUSwF.cjs} +12 -10
- package/dist/stack-CEvmUSwF.cjs.map +1 -0
- package/dist/{stack-C9GROTGA.js → stack-Kqu7YaR0.js} +12 -10
- package/dist/stack-Kqu7YaR0.js.map +1 -0
- package/dist/text-runs-CdmlS5C7.cjs +52 -0
- package/dist/text-runs-CdmlS5C7.cjs.map +1 -0
- package/dist/text-runs-DqcEO8L_.js +45 -0
- package/dist/text-runs-DqcEO8L_.js.map +1 -0
- package/dist/theme-DTTTlylA.d.cts +520 -0
- package/dist/theme-DTTTlylA.d.ts +520 -0
- package/dist/theme-dials-config.cjs +273 -0
- package/dist/theme-dials-config.cjs.map +1 -0
- package/dist/theme-dials-config.d.cts +95 -0
- package/dist/theme-dials-config.d.ts +95 -0
- package/dist/theme-dials-config.js +269 -0
- package/dist/theme-dials-config.js.map +1 -0
- package/dist/theme-presets.cjs +922 -0
- package/dist/theme-presets.cjs.map +1 -0
- package/dist/theme-presets.d.cts +89 -0
- package/dist/theme-presets.d.ts +89 -0
- package/dist/theme-presets.js +912 -0
- package/dist/theme-presets.js.map +1 -0
- package/dist/theme-tuning-DjgDvV8V.d.ts +158 -0
- package/dist/theme-tuning-TJ76tnxZ.d.cts +158 -0
- package/dist/theme-tuning.cjs +349 -0
- package/dist/theme-tuning.cjs.map +1 -0
- package/dist/theme-tuning.d.cts +2 -0
- package/dist/theme-tuning.d.ts +2 -0
- package/dist/theme-tuning.js +333 -0
- package/dist/theme-tuning.js.map +1 -0
- package/dist/theme.cjs +432 -0
- package/dist/theme.cjs.map +1 -0
- package/dist/theme.d.cts +2 -0
- package/dist/theme.d.ts +2 -0
- package/dist/theme.js +430 -0
- package/dist/theme.js.map +1 -0
- package/dist/toast-08jF1DBQ.cjs +193 -0
- package/dist/toast-08jF1DBQ.cjs.map +1 -0
- package/dist/toast-CVW5XY4u.js +164 -0
- package/dist/toast-CVW5XY4u.js.map +1 -0
- package/dist/toast-details-BdxxSLlN.cjs +209 -0
- package/dist/toast-details-BdxxSLlN.cjs.map +1 -0
- package/dist/toast-details-CfsB1Vxb.js +198 -0
- package/dist/toast-details-CfsB1Vxb.js.map +1 -0
- package/dist/{tooltip-CTRQoN1A.d.ts → tooltip-Fqb4JK-g.d.cts} +2 -2
- package/dist/{tooltip-CTRQoN1A.d.cts → tooltip-Fqb4JK-g.d.ts} +2 -2
- package/dist/tuning-BKVFsxLr.js +48 -0
- package/dist/tuning-BKVFsxLr.js.map +1 -0
- package/dist/tuning-BRPG7U1U.cjs +71 -0
- package/dist/tuning-BRPG7U1U.cjs.map +1 -0
- package/dist/use-document-theme-BSEuNsEE.cjs +43 -0
- package/dist/use-document-theme-BSEuNsEE.cjs.map +1 -0
- package/dist/use-document-theme-Ch_PqxZz.js +38 -0
- package/dist/use-document-theme-Ch_PqxZz.js.map +1 -0
- package/dist/use-scroll-fade-CaHp52u4.cjs +79 -0
- package/dist/use-scroll-fade-CaHp52u4.cjs.map +1 -0
- package/dist/use-scroll-fade-ilq-o00-.js +72 -0
- package/dist/use-scroll-fade-ilq-o00-.js.map +1 -0
- package/package.json +163 -27
- package/src/styles/globals.css +176 -97
- package/dist/ai-CiaH2sfF.js.map +0 -1
- package/dist/ai-lAkichk8.cjs.map +0 -1
- package/dist/button-DBRYW_AI.d.cts +0 -20
- package/dist/button-DBRYW_AI.d.ts +0 -20
- package/dist/components/app-bar.cjs +0 -81
- package/dist/components/app-bar.cjs.map +0 -1
- package/dist/components/app-bar.d.cts +0 -27
- package/dist/components/app-bar.d.ts +0 -27
- package/dist/components/app-bar.js +0 -77
- package/dist/components/app-bar.js.map +0 -1
- package/dist/components/app-shell.cjs +0 -267
- package/dist/components/app-shell.cjs.map +0 -1
- package/dist/components/app-shell.d.cts +0 -98
- package/dist/components/app-shell.d.ts +0 -98
- package/dist/components/app-shell.js +0 -264
- package/dist/components/app-shell.js.map +0 -1
- package/dist/components/json-input.cjs.map +0 -1
- package/dist/components/json-input.js.map +0 -1
- package/dist/input-CBrCuMH8.d.cts +0 -11
- package/dist/input-CBrCuMH8.d.ts +0 -11
- package/dist/motion-config-COCFHq1L.cjs.map +0 -1
- package/dist/motion-config-COsZ6azM.js.map +0 -1
- package/dist/record-picker-BbxngCeV.js.map +0 -1
- package/dist/record-picker-Bz4FApxD.cjs.map +0 -1
- package/dist/separator-BQEsr0Rc.d.cts +0 -11
- package/dist/separator-BQEsr0Rc.d.ts +0 -11
- package/dist/sheet-BLHnhLRH.js.map +0 -1
- package/dist/sheet-BdA0rfIz.cjs.map +0 -1
- package/dist/sidebar-BavjjJp0.cjs.map +0 -1
- package/dist/sidebar-DeoL2ttp.js.map +0 -1
- package/dist/stack-C9GROTGA.js.map +0 -1
- package/dist/stack-ci2lkfkr.cjs.map +0 -1
- package/dist/toast-D6MqijT2.cjs +0 -316
- package/dist/toast-D6MqijT2.cjs.map +0 -1
- package/dist/toast-D_BOLzm3.js +0 -287
- package/dist/toast-D_BOLzm3.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as
|
|
3
|
-
import {
|
|
1
|
+
import { Accordion, AccordionContent, AccordionContentProps, AccordionItem, AccordionItemProps, AccordionProps, AccordionTrigger, AccordionTriggerProps } from "./components/accordion.js";
|
|
2
|
+
import { $ as PromptSuggestionsProps, $n as PromptInputProps, $t as PlanStepStatus, A as usageTone, An as ResponseStreamProps, At as InlineDiff, B as ToolTraceProps, Bn as MessageActionsProps, Bt as ApprovalQuestion, C as AiModelTag, Cn as ChatContainer, Ct as DiffTableColumn, D as ModelSelectorProps, Dn as useChatContainer, Dt as StreamingText, E as ModelSelector, En as ChatContainerProps, Et as StreamToken, F as PromptInputTrayTone, Fn as renderBasicMarkdown, Ft as Sources, G as iconEnterClass, Gn as MessageProps, Gt as ToolProps, H as ToolTraceStep, Hn as MessageAvatarProps, Ht as Tool, I as ThinkingStatus, In as Message, It as SourcesProps, J as FileUpload, Jn as PromptInputActionProps, Jt as DiffFileChip, K as AiImage, Kn as PromptInput, Kt as ToolVariant, L as ThinkingStatusProps, Ln as MessageAction, Lt as ApprovalCard, M as PromptInputTrayProps, Mn as CodeBlockProps, Mt as lineDiff, N as PromptInputTrayRow, Nn as Markdown, Nt as Source, O as UsageNotice, On as ResponseStream, Ot as StreamingTextProps, P as PromptInputTrayRowProps, Pn as MarkdownProps, Pt as SourceProps, Q as PromptSuggestions, Qn as PromptInputBodyProps, Qt as PlanStep, R as formatElapsed, Rn as MessageActionProps, Rt as ApprovalCardProps, S as AiModelPricing, Sn as ScrollButtonProps, St as DiffTableAddedRow, T as ModelSelection, Tn as ChatContainerContentProps, Tt as DiffTableRowBase, U as MarkTile, Un as MessageContent, Ut as ToolGroup, V as ToolTraceStatus, Vn as MessageAvatar, Vt as StatusIcon, W as MarkTileProps, Wn as MessageContentProps, Wt as ToolGroupProps, X as PromptSuggestion, Xn as PromptInputActionsProps, Xt as NormalizedToolStatus, Y as FileUploadProps, Yn as PromptInputActions, Yt as InlineDiffSource, Z as PromptSuggestionProps, Zn as PromptInputBody, Zt as Plan, _ as PromptInputAttachmentStatus, _n as STREAM_THROTTLE_MS, _t as ContextRingProps, a as AgentDraftTool, an as StepProps, ar as AgentLoaderVariant, at as RecommendationOption, b as AiModel, bn as SystemMessageProps, bt as PlanTrackerProps, c as ConnectPromptStatus, cn as StepsProps, cr as SimpleVariant, ct as ContextCards, d as AskCardProps, dn as ThinkingTraceProps, dt as TaskList, en as ToolStatus, er as PromptInputTextarea, et as FeedbackBar, f as AskChoice, fn as ThinkingTraceRow, ft as TaskListProps, g as PromptInputAttachmentProps, gn as ThinkingBarProps, gt as ContextRing, h as PromptInputAttachment, hn as ThinkingBar, ht as TaskStatus, i as AgentDraftCardProps, in as Step, ir as AgentLoaderProps, it as RecommendationCardProps, j as PromptInputTray, jn as CodeBlock, jt as InlineDiffProps, k as UsageNoticeProps, kn as ResponseStreamMode, kt as StreamingTextSource, l as AskAnswer, ln as ThinkingTrace, lr as TextShimmer, lt as ContextCardsProps, m as AskQuestion, mn as ReasoningProps, mt as TaskRowProps, n as AgentDraftAction, nn as ChainOfThought, nr as usePromptInput, nt as FeedbackValue, o as ConnectPrompt, on as StepStatus, or as Loader, ot as ContextCard, p as AskOption, pn as Reasoning, pt as TaskRow, q as AiImageProps, qn as PromptInputAction, qt as ContextUsage, r as AgentDraftCard, rn as ChainOfThoughtStep, rr as AgentLoader, rt as RecommendationCard, s as ConnectPromptProps, sn as Steps, sr as PixelVariant, st as ContextCardProps, t as formatDuration, tn as normalizeToolStatus, tr as PromptInputTextareaProps, tt as FeedbackBarProps, u as AskCard, un as ThinkingTraceMode, ur as TextShimmerProps, ut as TaskDetail, v as PromptInputAttachments, vn as useThrottledText, vt as formatCompact, w as CostBlocks, wn as ChatContainerContent, wt as DiffTableProps, x as AiModelLevel, xn as ScrollButton, xt as DiffTable, y as PromptInputAttachmentsProps, yn as SystemMessage, yt as PlanTracker, z as ToolTrace, zn as MessageActions, zt as ApprovalOption } from "./index-z3LqQ5L5.js";
|
|
3
|
+
import { i as TooltipTrigger, n as TooltipContent, r as TooltipProvider, t as Tooltip } from "./tooltip-Fqb4JK-g.js";
|
|
4
|
+
import { a as AlertTitle, n as AlertAction, o as alertVariants, r as AlertDescription, t as Alert } from "./alert-CJ4Qyk6W.js";
|
|
4
5
|
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from "./components/alert-dialog.js";
|
|
5
|
-
import { AppBar, AppBarProps, AppBreadcrumbItem, AppLinkRenderProps, AppLinkRenderer, createAppLink } from "./components/app-bar.js";
|
|
6
|
-
import { n as ButtonProps, r as buttonVariants, t as Button } from "./button-DBRYW_AI.js";
|
|
7
|
-
import { n as InputProps, t as Input } from "./input-CBrCuMH8.js";
|
|
8
|
-
import { n as SeparatorProps, t as Separator } from "./separator-BQEsr0Rc.js";
|
|
9
|
-
import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from "./components/sidebar.js";
|
|
10
|
-
import { AppAccount, AppAccountAction, AppAccountActionGroup, AppIcon, AppNavigationChild, AppNavigationGroup, AppNavigationItem, AppShell, AppShellBrand, AppShellProps } from "./components/app-shell.js";
|
|
11
6
|
import { Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator } from "./components/autocomplete.js";
|
|
12
7
|
import { Avatar, AvatarFallback, AvatarImage } from "./components/avatar.js";
|
|
13
8
|
import { Badge, BadgeProps, badgeVariants } from "./components/badge.js";
|
|
14
9
|
import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "./components/breadcrumb.js";
|
|
10
|
+
import { Separator, SeparatorProps } from "./components/separator.js";
|
|
11
|
+
import { ButtonGroup, ButtonGroupProps, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants } from "./components/button-group.js";
|
|
12
|
+
import { Button, ButtonProps, buttonVariants } from "./components/button.js";
|
|
15
13
|
import { Calendar, RangeCalendar } from "./components/calendar-rac.js";
|
|
16
14
|
import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardProps, CardTitle, cardVariants } from "./components/card.js";
|
|
17
15
|
import { CheckboxGroup, CheckboxGroupProps } from "./components/checkbox-group.js";
|
|
@@ -30,9 +28,13 @@ import { FlickeringGrid } from "./components/flickering-grid.js";
|
|
|
30
28
|
import { FlowZoomPanel } from "./components/flow-zoom-panel.js";
|
|
31
29
|
import { FormControl as FormControl$1, FormControlLayout } from "./components/form-control.js";
|
|
32
30
|
import { a as FormItem, c as useFormField, d as composeRefs, f as mergeProps, i as FormField, l as Slot, n as FormControl, o as FormLabel, r as FormDescription, s as FormMessage, t as Form, u as Slottable } from "./form-DgRTv7O7.js";
|
|
31
|
+
import { Input, InputProps } from "./components/input.js";
|
|
33
32
|
import { Textarea, TextareaProps } from "./components/textarea.js";
|
|
34
33
|
import { InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea } from "./components/input-group.js";
|
|
34
|
+
import { InputOtp, InputOtpProps } from "./components/input-otp.js";
|
|
35
|
+
import { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemProps, ItemSeparator, ItemTitle, itemMediaVariants, itemVariants } from "./components/item.js";
|
|
35
36
|
import { JsonEditor, JsonInput, validateJson } from "./components/json-input.js";
|
|
37
|
+
import { Kbd, KbdGroup, KbdGroupProps, KbdProps } from "./components/kbd.js";
|
|
36
38
|
import { Frame, FrameDot, Frames, MotionGrid, MotionGridProps } from "./components/motion-grid.js";
|
|
37
39
|
import { MultiSelect, MultiSelectGroup, MultiSelectOption, MultiSelectProps, MultiSelectRef } from "./components/multi-select.js";
|
|
38
40
|
import { PageHeader } from "./components/page-header.js";
|
|
@@ -48,21 +50,63 @@ import { ResponsiveDiagram } from "./components/responsive-diagram.js";
|
|
|
48
50
|
import { ScrollArea, ScrollBar } from "./components/scroll-area.js";
|
|
49
51
|
import { Select, SelectContent as SelectPopup, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectItem, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue } from "./components/select.js";
|
|
50
52
|
import { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from "./components/sheet.js";
|
|
53
|
+
import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from "./components/sidebar.js";
|
|
51
54
|
import { Skeleton, SkeletonProps } from "./components/skeleton.js";
|
|
55
|
+
import { Slider, SliderProps } from "./components/slider.js";
|
|
52
56
|
import { Toaster } from "./components/sonner.js";
|
|
57
|
+
import { Spinner, SpinnerProps } from "./components/spinner.js";
|
|
53
58
|
import { $ as useStackLayoutMode, A as useIsMobile, B as StackHeaderSlot, C as isCardVisible, D as UsePeekGesturesResult, E as UsePeekGesturesOptions, F as StackCardProps, G as CardStackProvider, H as StackBackdrop, I as UseStackGesturesResult, J as useCardReady, K as useCardIndex, L as useStackGestures, M as DeferredCardContent, N as DeferredCardContentProps, O as usePeekGestures, P as StackCard, Q as useStackContext, R as StackHeader, S as getVisibleCardIndices, T as parseWidthToPixels, U as StackBackdropProps, V as StackHeaderSlotProps, W as CardStackViewport, X as useIsTopCard, Y as useCardStack, Z as useStackCards, _ as getCardOffset, _t as PushOptions, a as createExitTransition, at as CardPushOptions, b as getResponsiveCardOffset, bt as StackState, c as peekDragSpring, ct as CardSpec, d as reducedMotionBackdropVariants, dt as CardStackViewportProps, et as AnimationConfig, f as snapBackSpring, ft as DismissOptions, g as calculateResponsiveOffset, gt as PeekGestureConfig, h as ResponsiveOffsetResult, ht as MobileConfig, i as createEnterTransition, it as CardInjectedProps, j as useStackResponsive, k as UseStackResponsiveResult, l as peekHoverSpring, lt as CardStackApi, m as ResponsiveOffsetConfig, mt as LayoutMode, n as backdropVariants, nt as CardComponent, o as createOffsetTransition, ot as CardRouteDefinition, p as swipeDismissTransition, pt as GestureConfig, q as useCardInjectedProps, r as createCardVariants, rt as CardId, s as createReducedMotionVariants, st as CardRouteMap, t as DEFAULT_ANIMATION_CONFIG, tt as BackdropConfig, u as peekSlideSpring, ut as CardStackProviderProps, v as getCardZIndex, vt as StackAction, w as normalizeWidth, x as getSideBySideOffset, y as getCascadeOffset, yt as StackContextValue, z as StackHeaderProps } from "./index-B7cT7gZU.js";
|
|
54
59
|
import { Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger } from "./components/stepper.js";
|
|
55
60
|
import { Switch, SwitchProps } from "./components/switch.js";
|
|
56
|
-
import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from "./components/table.js";
|
|
61
|
+
import { Table, TableBody, TableCaption, TableCell, TableCellProps, TableFooter, TableGroupRow, TableGroupRowProps, TableHead, TableHeader, TableRow } from "./components/table.js";
|
|
57
62
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./components/tabs.js";
|
|
58
63
|
import { Tags, TagsContent, TagsContentProps, TagsEmpty, TagsEmptyProps, TagsGroup, TagsGroupProps, TagsInput, TagsInputProps, TagsItem, TagsItemProps, TagsList, TagsListProps, TagsProps, TagsTrigger, TagsTriggerProps, TagsValue, TagsValueProps } from "./components/tags.js";
|
|
59
|
-
import { a as showSuccessToast, c as ToastErrorProps, i as ToastSuccessProps, l as showErrorToast, n as ToastWarningProps, o as ToastInfoProps, r as showWarningToast, s as showInfoToast, t as toast } from "./index-
|
|
64
|
+
import { a as showSuccessToast, c as ToastErrorProps, i as ToastSuccessProps, l as showErrorToast, n as ToastWarningProps, o as ToastInfoProps, r as showWarningToast, s as showInfoToast, t as toast, u as ToastProps } from "./index-BQZxmMpw.js";
|
|
65
|
+
import { Toggle, ToggleProps, toggleVariants } from "./components/toggle.js";
|
|
66
|
+
import { ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps } from "./components/toggle-group.js";
|
|
60
67
|
import { UnlinkButton } from "./components/unlink-button.js";
|
|
68
|
+
import { C as getSpringTiers, S as SpringTiers, T as useSpringTiers, _ as shadowBorderRecipe, a as ThemeTuning, b as DEFAULT_SPRING_TIERS, c as deriveModeTokens, d as modeTuningDefaults, f as oklchToLinearSrgb, g as resolveThemeTuning, h as relativeLuminance, i as OklchParts, l as formatOklch, m as parseOklch, n as NEUTRAL_CHROMA_WEIGHTS, o as contrastRatio, p as parseColor, r as NEUTRAL_REFERENCE_HUE, s as defaultThemeTuning, t as ModeTuning, v as themeOverrideStyleSheet, w as setSpringTiers, x as SpringTier, y as toCssDeclarations } from "./theme-tuning-DjgDvV8V.js";
|
|
69
|
+
import { a as constructiveTheme, i as ThemeTokenMap, t as ConstructiveTheme } from "./theme-DTTTlylA.js";
|
|
70
|
+
import { GhosttyScheme, PIN_FAMILIES, PresetMode, THEME_PRESETS, THEME_PRESET_IDS, ThemePreset, ThemePresetId, ThemePresetSource, fitModeTuning, getThemePreset, isThemePresetId, themePresetRegistryName } from "./theme-presets.js";
|
|
71
|
+
import { buildThemeDialConfig, dialValuesToTuning, tuningToDialValues } from "./theme-dials-config.js";
|
|
61
72
|
import { ClassValue } from "clsx";
|
|
73
|
+
import { Transition } from "motion/react";
|
|
62
74
|
import { FloatingPortalStrategy, FloatingZIndex, ModalPortalScope, OverlayLayer, PORTAL_ROOT_ID, PortalRoot, useFloatingOverlayPortalProps, useInModalOverlay, usePortalContainer, usePortalContext, useRootPortalContainer } from "@constructive-io/ui/portal";
|
|
63
75
|
//#region src/lib/utils.d.ts
|
|
64
76
|
declare function cn(...inputs: ClassValue[]): string;
|
|
65
77
|
//#endregion
|
|
78
|
+
//#region src/lib/initials.d.ts
|
|
79
|
+
/**
|
|
80
|
+
* Initials for an avatar fallback, safe for any script.
|
|
81
|
+
*
|
|
82
|
+
* Takes the first grapheme of the first and last word, so emoji, ZWJ sequences,
|
|
83
|
+
* combining marks and non-Latin names are never split mid-character (the
|
|
84
|
+
* `word[0]` pattern turns `🦊 Fox` into a lone surrogate). A single word gives
|
|
85
|
+
* one initial. Pass an email address and the local part is used.
|
|
86
|
+
*
|
|
87
|
+
* Letters are upper-cased without consulting the runtime's locale, so the server
|
|
88
|
+
* and the browser always draw the same characters (`toLocaleUpperCase()` turns `i`
|
|
89
|
+
* into `İ` under a Turkish default, which would not hydrate). Pass `locale` to opt
|
|
90
|
+
* in to a language's casing rules.
|
|
91
|
+
*
|
|
92
|
+
* Returns `null` when there is nothing to show, so callers can render an icon
|
|
93
|
+
* instead of an empty circle:
|
|
94
|
+
*
|
|
95
|
+
* ```tsx
|
|
96
|
+
* <AvatarFallback>{initials(user.name ?? user.email) ?? <UserIcon />}</AvatarFallback>
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
interface InitialsOptions {
|
|
100
|
+
/** Maximum number of initials. Defaults to 2 (first and last word). */
|
|
101
|
+
max?: number;
|
|
102
|
+
/**
|
|
103
|
+
* BCP 47 language tag whose casing rules upper-case the initials, for example `'tr'`
|
|
104
|
+
* so `irem` becomes `İ`. Without it casing is locale-independent.
|
|
105
|
+
*/
|
|
106
|
+
locale?: string | string[];
|
|
107
|
+
}
|
|
108
|
+
declare function initials(name: string | null | undefined, { max, locale }?: InitialsOptions): string | null;
|
|
109
|
+
//#endregion
|
|
66
110
|
//#region src/lib/use-controllable-state.d.ts
|
|
67
111
|
type UseControllableStateParams<T> = {
|
|
68
112
|
prop?: T;
|
|
@@ -86,7 +130,12 @@ declare function useControllableState<T>({ prop, defaultProp, onChange }: UseCon
|
|
|
86
130
|
* 3. Use custom easing curves for more impactful animations
|
|
87
131
|
* 4. Make animations origin-aware when possible
|
|
88
132
|
* 5. Use blur to smooth transitions when needed
|
|
133
|
+
* 6. Exits run one tier faster than enters — dismissal should feel instant
|
|
89
134
|
*/
|
|
135
|
+
/** duration+bounce tier → a motion spring transition. Reads the tuning store so Storybook dials retune live. */
|
|
136
|
+
declare function tierSpring(tier: SpringTier): Transition;
|
|
137
|
+
/** Crisp exit tween for the same tier — always faster than the enter spring. */
|
|
138
|
+
declare function tierExit(tier: SpringTier): Transition;
|
|
90
139
|
/**
|
|
91
140
|
* Standard easing curves for UI animations.
|
|
92
141
|
* Reference: https://easings.co/
|
|
@@ -125,7 +174,8 @@ declare const durations: {
|
|
|
125
174
|
};
|
|
126
175
|
/**
|
|
127
176
|
* Spring configurations for physics-based animations.
|
|
128
|
-
*
|
|
177
|
+
* Prefer `tierSpring`/`tierExit` for new code — these stiffness/damping presets remain for
|
|
178
|
+
* consumers that need mass/spring-physics control (e.g. dock magnification).
|
|
129
179
|
*/
|
|
130
180
|
declare const springs: {
|
|
131
181
|
/** Snappy spring - good for quick interactions */
|
|
@@ -283,5 +333,5 @@ declare const variants: {
|
|
|
283
333
|
};
|
|
284
334
|
};
|
|
285
335
|
//#endregion
|
|
286
|
-
export { AgentLoader, type AgentLoaderProps, type AgentLoaderVariant, AiImage, type AiImageProps, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationConfig, type AppAccount, type AppAccountAction, type AppAccountActionGroup, AppBar, type AppBarProps, type AppBreadcrumbItem, type AppIcon, type AppLinkRenderProps, type AppLinkRenderer, type AppNavigationChild, type AppNavigationGroup, type AppNavigationItem, AppShell, type AppShellBrand, type AppShellProps, ApprovalCard, type ApprovalCardProps, type ApprovalOption, type ApprovalQuestion, Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator, Avatar, AvatarFallback, AvatarImage, type BackdropConfig, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, Card, CardAction, type CardComponent, CardContent, CardDescription, CardFooter, CardHeader, type CardId, type CardInjectedProps, type CardProps, type CardPushOptions, type CardRouteDefinition, type CardRouteMap, type CardSpec, type CardStackApi, CardStackProvider, type CardStackProviderProps, CardStackViewport, type CardStackViewportProps, CardTitle, ChainOfThought, ChainOfThoughtStep, ChatContainer, ChatContainerContent, type ChatContainerContentProps, type ChatContainerProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, CodeBlock, type CodeBlockProps, Collapsible, CollapsiblePanel as CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, type ComboboxGroupProps, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, ComboboxList, type ComboboxListProps, type ComboboxProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, type ComboboxTriggerProps, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, ContextCard, type ContextCardProps, ContextCards, type ContextCardsProps, ContextRing, type ContextRingProps, type ContextUsage, DEFAULT_ANIMATION_CONFIG, DeferredCardContent, type DeferredCardContentProps, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTitle, DialogTrigger, type DiffFileChip, DiffTable, type DiffTableAddedRow, type DiffTableColumn, type DiffTableProps, type DiffTableRowBase, type DismissOptions, Dock, DockIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FeedbackBar, type FeedbackBarProps, type FeedbackValue, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, type FieldProps, FieldRow, type FieldRowProps, FieldSeparator, FieldSet, FieldTitle, FileUpload, type FileUploadProps, FlickeringGrid, type FloatingPortalStrategy, type FloatingZIndex, FlowZoomPanel, Form, FormControl, FormControl$1 as FormControlComponent, type FormControlLayout, FormDescription, FormField, FormItem, FormLabel, FormMessage, type Frame, type FrameDot, type Frames, type GestureConfig, InlineDiff, type InlineDiffProps, type InlineDiffSource, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, JsonEditor, JsonInput, Label, type LabelProps, type LayoutMode, type LegacyFieldProps, Loader, Markdown, type MarkdownProps, Message, MessageAction, type MessageActionProps, MessageActions, type MessageActionsProps, MessageAvatar, type MessageAvatarProps, MessageContent, type MessageContentProps, type MessageProps, type MobileConfig, ModalPortalScope, MotionGrid, type MotionGridProps, MultiSelect, type MultiSelectGroup, type MultiSelectOption, type MultiSelectProps, type MultiSelectRef, type NormalizedToolStatus, type OverlayLayer, PORTAL_ROOT_ID, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PeekGestureConfig, type PixelVariant, type Plan, type PlanStep, type PlanStepStatus, PlanTracker, type PlanTrackerProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, PortalRoot, Progress, type ProgressProps, ProgressiveBlur, ProgressiveBlurScrollContainer, PromptInput, PromptInputAction, type PromptInputActionProps, PromptInputActions, type PromptInputActionsProps, PromptInputBody, type PromptInputBodyProps, type PromptInputProps, PromptInputTextarea, type PromptInputTextareaProps, PromptSuggestion, type PromptSuggestionProps, PromptSuggestions, type PromptSuggestionsProps, type PushOptions, Radio, Radio as RadioGroupItem, RadioGroup, type RadioGroupProps, type RadioProps, RangeCalendar, Reasoning, type ReasoningProps, RecommendationCard, type RecommendationCardProps, type RecommendationOption, RecordPicker, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponseStream, type ResponseStreamMode, type ResponseStreamProps, ResponsiveDiagram, type ResponsiveOffsetConfig, type ResponsiveOffsetResult, STREAM_THROTTLE_MS, ScrollArea, ScrollBar, ScrollButton, type ScrollButtonProps, Select, SelectPopup as SelectContent, SelectPopup, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectGroupLabel as SelectLabel, SelectItem, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, type SimpleVariant, Skeleton, type SkeletonProps, Slot, Slottable, Source, type SourceProps, Sources, type SourcesProps, type StackAction, StackBackdrop, type StackBackdropProps, StackCard, type StackCardProps, type StackContextValue, StackHeader, type StackHeaderProps, StackHeaderSlot, type StackHeaderSlotProps, type StackState, StatusIcon, Step, type StepProps, type StepStatus, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, Steps, type StepsProps, type StreamToken, StreamingText, type StreamingTextProps, type StreamingTextSource, type StructuralFieldProps, Switch, type SwitchProps, SystemMessage, type SystemMessageProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, type TagsContentProps, TagsEmpty, type TagsEmptyProps, TagsGroup, type TagsGroupProps, TagsInput, type TagsInputProps, TagsItem, type TagsItemProps, TagsList, type TagsListProps, type TagsProps, TagsTrigger, type TagsTriggerProps, TagsValue, type TagsValueProps, type TaskDetail, TaskList, type TaskListProps, TaskRow, type TaskRowProps, type TaskStatus, TextShimmer, type TextShimmerProps, Textarea, type TextareaProps, ThinkingBar, type ThinkingBarProps, ThinkingTrace, type ThinkingTraceMode, type ThinkingTraceProps, type ThinkingTraceRow, type ToastErrorProps, type ToastInfoProps, type ToastSuccessProps, type ToastWarningProps, Toaster, Tool, ToolGroup, type ToolGroupProps, type ToolProps, type ToolStatus, type ToolVariant, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnlinkButton, type UsePeekGesturesOptions, type UsePeekGesturesResult, type UseStackGesturesResult, type UseStackResponsiveResult, alertVariants, backdropVariants, badgeVariants, buttonVariants, calculateResponsiveOffset, cardVariants, cn, composeRefs, createAppLink, createCardVariants, createEnterTransition, createExitTransition, createOffsetTransition, createReducedMotionVariants, dockVariants, durations, easings, formatCompact, formatDuration, getCardOffset, getCardZIndex, getCascadeOffset, getResponsiveCardOffset, getSideBySideOffset, getVisibleCardIndices, isCardVisible, lineDiff, mergeProps, normalizeToolStatus, normalizeWidth, parseWidthToPixels, peekDragSpring, peekHoverSpring, peekSlideSpring, reducedMotionBackdropVariants, renderBasicMarkdown, showErrorToast, showInfoToast, showSuccessToast, showWarningToast, snapBackSpring, springs, swipeDismissTransition, toast, transitions, useCardIndex, useCardInjectedProps, useCardReady, useCardStack, useChatContainer, useControllableState, useFloatingOverlayPortalProps, useFormField, useInModalOverlay, useIsMobile, useIsTopCard, usePeekGestures, usePortalContainer, usePortalContext, usePromptInput, useRootPortalContainer, useSidebar, useStackCards, useStackContext, useStackGestures, useStackLayoutMode, useStackResponsive, useThrottledText, validateJson, variants };
|
|
336
|
+
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type AgentDraftAction, AgentDraftCard, type AgentDraftCardProps, type AgentDraftTool, AgentLoader, type AgentLoaderProps, type AgentLoaderVariant, AiImage, type AiImageProps, type AiModel, type AiModelLevel, type AiModelPricing, type AiModelTag, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AnimationConfig, ApprovalCard, type ApprovalCardProps, type ApprovalOption, type ApprovalQuestion, type AskAnswer, AskCard, type AskCardProps, type AskChoice, type AskOption, type AskQuestion, Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator, Avatar, AvatarFallback, AvatarImage, type BackdropConfig, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, type ButtonGroupProps, ButtonGroupSeparator, ButtonGroupText, type ButtonProps, Calendar, Card, CardAction, type CardComponent, CardContent, CardDescription, CardFooter, CardHeader, type CardId, type CardInjectedProps, type CardProps, type CardPushOptions, type CardRouteDefinition, type CardRouteMap, type CardSpec, type CardStackApi, CardStackProvider, type CardStackProviderProps, CardStackViewport, type CardStackViewportProps, CardTitle, ChainOfThought, ChainOfThoughtStep, ChatContainer, ChatContainerContent, type ChatContainerContentProps, type ChatContainerProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, CodeBlock, type CodeBlockProps, Collapsible, CollapsiblePanel as CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, type ComboboxGroupProps, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, ComboboxList, type ComboboxListProps, type ComboboxProps, ComboboxSeparator, type ComboboxSeparatorProps, ComboboxTrigger, type ComboboxTriggerProps, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, ConnectPrompt, type ConnectPromptProps, type ConnectPromptStatus, type ConstructiveTheme, ContextCard, type ContextCardProps, ContextCards, type ContextCardsProps, ContextRing, type ContextRingProps, type ContextUsage, CostBlocks, DEFAULT_ANIMATION_CONFIG, DEFAULT_SPRING_TIERS, DeferredCardContent, type DeferredCardContentProps, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTitle, DialogTrigger, type DiffFileChip, DiffTable, type DiffTableAddedRow, type DiffTableColumn, type DiffTableProps, type DiffTableRowBase, type DismissOptions, Dock, DockIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FeedbackBar, type FeedbackBarProps, type FeedbackValue, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, type FieldProps, FieldRow, type FieldRowProps, FieldSeparator, FieldSet, FieldTitle, FileUpload, type FileUploadProps, FlickeringGrid, type FloatingPortalStrategy, type FloatingZIndex, FlowZoomPanel, Form, FormControl, FormControl$1 as FormControlComponent, type FormControlLayout, FormDescription, FormField, FormItem, FormLabel, FormMessage, type Frame, type FrameDot, type Frames, type GestureConfig, type GhosttyScheme, type InitialsOptions, InlineDiff, type InlineDiffProps, type InlineDiffSource, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, InputOtp, type InputOtpProps, type InputProps, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, type ItemProps, ItemSeparator, ItemTitle, JsonEditor, JsonInput, Kbd, KbdGroup, type KbdGroupProps, type KbdProps, Label, type LabelProps, type LayoutMode, type LegacyFieldProps, Loader, MarkTile, type MarkTileProps, Markdown, type MarkdownProps, Message, MessageAction, type MessageActionProps, MessageActions, type MessageActionsProps, MessageAvatar, type MessageAvatarProps, MessageContent, type MessageContentProps, type MessageProps, type MobileConfig, ModalPortalScope, type ModeTuning, type ModelSelection, ModelSelector, type ModelSelectorProps, MotionGrid, type MotionGridProps, MultiSelect, type MultiSelectGroup, type MultiSelectOption, type MultiSelectProps, type MultiSelectRef, NEUTRAL_CHROMA_WEIGHTS, NEUTRAL_REFERENCE_HUE, type NormalizedToolStatus, type OklchParts, type OverlayLayer, PIN_FAMILIES, PORTAL_ROOT_ID, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PeekGestureConfig, type PixelVariant, type Plan, type PlanStep, type PlanStepStatus, PlanTracker, type PlanTrackerProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, PortalRoot, type PresetMode, Progress, type ProgressProps, ProgressiveBlur, ProgressiveBlurScrollContainer, PromptInput, PromptInputAction, type PromptInputActionProps, PromptInputActions, type PromptInputActionsProps, PromptInputAttachment, type PromptInputAttachmentProps, type PromptInputAttachmentStatus, PromptInputAttachments, type PromptInputAttachmentsProps, PromptInputBody, type PromptInputBodyProps, type PromptInputProps, PromptInputTextarea, type PromptInputTextareaProps, PromptInputTray, type PromptInputTrayProps, PromptInputTrayRow, type PromptInputTrayRowProps, type PromptInputTrayTone, PromptSuggestion, type PromptSuggestionProps, PromptSuggestions, type PromptSuggestionsProps, type PushOptions, Radio, Radio as RadioGroupItem, RadioGroup, type RadioGroupProps, type RadioProps, RangeCalendar, Reasoning, type ReasoningProps, RecommendationCard, type RecommendationCardProps, type RecommendationOption, RecordPicker, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponseStream, type ResponseStreamMode, type ResponseStreamProps, ResponsiveDiagram, type ResponsiveOffsetConfig, type ResponsiveOffsetResult, STREAM_THROTTLE_MS, ScrollArea, ScrollBar, ScrollButton, type ScrollButtonProps, Select, SelectPopup as SelectContent, SelectPopup, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectGroupLabel as SelectLabel, SelectItem, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, type SimpleVariant, Skeleton, type SkeletonProps, Slider, type SliderProps, Slot, Slottable, Source, type SourceProps, Sources, type SourcesProps, Spinner, type SpinnerProps, type SpringTier, type SpringTiers, type StackAction, StackBackdrop, type StackBackdropProps, StackCard, type StackCardProps, type StackContextValue, StackHeader, type StackHeaderProps, StackHeaderSlot, type StackHeaderSlotProps, type StackState, StatusIcon, Step, type StepProps, type StepStatus, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, Steps, type StepsProps, type StreamToken, StreamingText, type StreamingTextProps, type StreamingTextSource, type StructuralFieldProps, Switch, type SwitchProps, SystemMessage, type SystemMessageProps, THEME_PRESETS, THEME_PRESET_IDS, Table, TableBody, TableCaption, TableCell, type TableCellProps, TableFooter, TableGroupRow, type TableGroupRowProps, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, type TagsContentProps, TagsEmpty, type TagsEmptyProps, TagsGroup, type TagsGroupProps, TagsInput, type TagsInputProps, TagsItem, type TagsItemProps, TagsList, type TagsListProps, type TagsProps, TagsTrigger, type TagsTriggerProps, TagsValue, type TagsValueProps, type TaskDetail, TaskList, type TaskListProps, TaskRow, type TaskRowProps, type TaskStatus, TextShimmer, type TextShimmerProps, Textarea, type TextareaProps, type ThemePreset, type ThemePresetId, type ThemePresetSource, type ThemeTokenMap, type ThemeTuning, ThinkingBar, type ThinkingBarProps, ThinkingStatus, type ThinkingStatusProps, ThinkingTrace, type ThinkingTraceMode, type ThinkingTraceProps, type ThinkingTraceRow, type ToastErrorProps, type ToastInfoProps, type ToastProps, type ToastSuccessProps, type ToastWarningProps, Toaster, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tool, ToolGroup, type ToolGroupProps, type ToolProps, type ToolStatus, ToolTrace, type ToolTraceProps, type ToolTraceStatus, type ToolTraceStep, type ToolVariant, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnlinkButton, UsageNotice, type UsageNoticeProps, type UsePeekGesturesOptions, type UsePeekGesturesResult, type UseStackGesturesResult, type UseStackResponsiveResult, alertVariants, backdropVariants, badgeVariants, buildThemeDialConfig, buttonGroupVariants, buttonVariants, calculateResponsiveOffset, cardVariants, cn, composeRefs, constructiveTheme, contrastRatio, createCardVariants, createEnterTransition, createExitTransition, createOffsetTransition, createReducedMotionVariants, defaultThemeTuning, deriveModeTokens, dialValuesToTuning, dockVariants, durations, easings, fitModeTuning, formatCompact, formatDuration, formatElapsed, formatOklch, getCardOffset, getCardZIndex, getCascadeOffset, getResponsiveCardOffset, getSideBySideOffset, getSpringTiers, getThemePreset, getVisibleCardIndices, iconEnterClass, initials, isCardVisible, isThemePresetId, itemMediaVariants, itemVariants, lineDiff, mergeProps, modeTuningDefaults, normalizeToolStatus, normalizeWidth, oklchToLinearSrgb, parseColor, parseOklch, parseWidthToPixels, peekDragSpring, peekHoverSpring, peekSlideSpring, reducedMotionBackdropVariants, relativeLuminance, renderBasicMarkdown, resolveThemeTuning, setSpringTiers, shadowBorderRecipe, showErrorToast, showInfoToast, showSuccessToast, showWarningToast, snapBackSpring, springs, swipeDismissTransition, themeOverrideStyleSheet, themePresetRegistryName, tierExit, tierSpring, toCssDeclarations, toast, toggleVariants, transitions, tuningToDialValues, usageTone, useCardIndex, useCardInjectedProps, useCardReady, useCardStack, useChatContainer, useControllableState, useFloatingOverlayPortalProps, useFormField, useInModalOverlay, useIsMobile, useIsTopCard, usePeekGestures, usePortalContainer, usePortalContext, usePromptInput, useRootPortalContainer, useSidebar, useSpringTiers, useStackCards, useStackContext, useStackGestures, useStackLayoutMode, useStackResponsive, useThrottledText, validateJson, variants };
|
|
287
337
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,21 +1,33 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { t as cn } from "./utils-BkMLyah9.js";
|
|
3
3
|
import { i as mergeProps, n as Slottable, r as composeRefs, t as Slot } from "./slot-EL8zfLG0.js";
|
|
4
|
-
import {
|
|
5
|
-
import { a as
|
|
4
|
+
import { t as initials } from "./initials-kCcHgrSy.js";
|
|
5
|
+
import { a as SheetDescription, d as SheetTitle, f as SheetTrigger, h as useControllableState, i as SheetContent, n as Sheet, o as SheetFooter, r as SheetClose, s as SheetHeader } from "./sheet-wPF_l9Cn.js";
|
|
6
|
+
import { a as tierSpring, i as tierExit, n as easings, o as transitions, r as springs, s as variants, t as durations } from "./motion-config-DoFp4I8f.js";
|
|
7
|
+
import { i as useSpringTiers, n as getSpringTiers, r as setSpringTiers, t as DEFAULT_SPRING_TIERS } from "./tuning-BKVFsxLr.js";
|
|
8
|
+
import { constructiveTheme } from "./theme.js";
|
|
9
|
+
import { NEUTRAL_CHROMA_WEIGHTS, NEUTRAL_REFERENCE_HUE, contrastRatio, defaultThemeTuning, deriveModeTokens, formatOklch, modeTuningDefaults, oklchToLinearSrgb, parseColor, parseOklch, relativeLuminance, resolveThemeTuning, shadowBorderRecipe, themeOverrideStyleSheet, toCssDeclarations } from "./theme-tuning.js";
|
|
10
|
+
import { PIN_FAMILIES, THEME_PRESETS, THEME_PRESET_IDS, fitModeTuning, getThemePreset, isThemePresetId, themePresetRegistryName } from "./theme-presets.js";
|
|
11
|
+
import { buildThemeDialConfig, dialValuesToTuning, tuningToDialValues } from "./theme-dials-config.js";
|
|
6
12
|
import { Button, buttonVariants } from "./components/button.js";
|
|
13
|
+
import { Separator } from "./components/separator.js";
|
|
14
|
+
import { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants } from "./components/button-group.js";
|
|
7
15
|
import { Badge, badgeVariants } from "./components/badge.js";
|
|
8
16
|
import { Label } from "./components/label.js";
|
|
17
|
+
import { Kbd, KbdGroup } from "./components/kbd.js";
|
|
9
18
|
import { Skeleton } from "./components/skeleton.js";
|
|
19
|
+
import { Spinner } from "./components/spinner.js";
|
|
10
20
|
import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, cardVariants } from "./components/card.js";
|
|
11
|
-
import {
|
|
12
|
-
import { Alert, AlertDescription, AlertTitle, alertVariants } from "./components/alert.js";
|
|
21
|
+
import { Alert, AlertAction, AlertDescription, AlertTitle, alertVariants } from "./components/alert.js";
|
|
13
22
|
import { Input } from "./components/input.js";
|
|
14
23
|
import { Textarea } from "./components/textarea.js";
|
|
15
24
|
import { Checkbox } from "./components/checkbox.js";
|
|
16
25
|
import { CheckboxGroup } from "./components/checkbox-group.js";
|
|
17
26
|
import { Radio, RadioGroup } from "./components/radio-group.js";
|
|
18
27
|
import { Switch } from "./components/switch.js";
|
|
28
|
+
import { Slider } from "./components/slider.js";
|
|
29
|
+
import { Toggle, toggleVariants } from "./components/toggle.js";
|
|
30
|
+
import { ToggleGroup, ToggleGroupItem } from "./components/toggle-group.js";
|
|
19
31
|
import { Select, SelectContent as SelectPopup, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectItem, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue } from "./components/select.js";
|
|
20
32
|
import { Progress } from "./components/progress.js";
|
|
21
33
|
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField } from "./components/form.js";
|
|
@@ -31,25 +43,26 @@ import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent,
|
|
|
31
43
|
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./components/dropdown-menu.js";
|
|
32
44
|
import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from "./components/drawer.js";
|
|
33
45
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./components/tabs.js";
|
|
46
|
+
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./components/accordion.js";
|
|
34
47
|
import { Collapsible, CollapsibleContent as CollapsiblePanel, CollapsibleTrigger } from "./components/collapsible.js";
|
|
35
48
|
import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "./components/resizable.js";
|
|
36
|
-
import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from "./components/table.js";
|
|
49
|
+
import { Table, TableBody, TableCaption, TableCell, TableFooter, TableGroupRow, TableHead, TableHeader, TableRow } from "./components/table.js";
|
|
37
50
|
import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "./components/pagination.js";
|
|
38
51
|
import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "./components/breadcrumb.js";
|
|
39
52
|
import { Avatar, AvatarFallback, AvatarImage } from "./components/avatar.js";
|
|
53
|
+
import { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, itemMediaVariants, itemVariants } from "./components/item.js";
|
|
40
54
|
import { Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator } from "./components/autocomplete.js";
|
|
41
55
|
import { FlowZoomPanel } from "./components/flow-zoom-panel.js";
|
|
42
56
|
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "./components/command.js";
|
|
43
57
|
import { Combobox, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxList, ComboboxSeparator, ComboboxTrigger } from "./components/combobox.js";
|
|
58
|
+
import { InputOtp } from "./components/input-otp.js";
|
|
44
59
|
import { MultiSelect } from "./components/multi-select.js";
|
|
45
60
|
import { Tags, TagsContent, TagsEmpty, TagsGroup, TagsInput, TagsItem, TagsList, TagsTrigger, TagsValue } from "./components/tags.js";
|
|
46
|
-
import { t as RecordPicker } from "./record-picker-
|
|
61
|
+
import { t as RecordPicker } from "./record-picker-DSRo4RXV.js";
|
|
47
62
|
import { Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger } from "./components/stepper.js";
|
|
48
|
-
import { C as SidebarTrigger, S as SidebarSeparator, _ as SidebarMenuSub, a as SidebarGroupAction, b as SidebarProvider, c as SidebarHeader, d as SidebarMenu, f as SidebarMenuAction, g as SidebarMenuSkeleton, h as SidebarMenuItem, i as SidebarGroup, l as SidebarInput, m as SidebarMenuButton, n as SidebarContent, o as SidebarGroupContent, p as SidebarMenuBadge, r as SidebarFooter, s as SidebarGroupLabel, t as Sidebar, u as SidebarInset, v as SidebarMenuSubButton, w as useSidebar, x as SidebarRail, y as SidebarMenuSubItem } from "./sidebar-
|
|
49
|
-
import { AppBar, createAppLink } from "./components/app-bar.js";
|
|
50
|
-
import { AppShell } from "./components/app-shell.js";
|
|
63
|
+
import { C as SidebarTrigger, S as SidebarSeparator, _ as SidebarMenuSub, a as SidebarGroupAction, b as SidebarProvider, c as SidebarHeader, d as SidebarMenu, f as SidebarMenuAction, g as SidebarMenuSkeleton, h as SidebarMenuItem, i as SidebarGroup, l as SidebarInput, m as SidebarMenuButton, n as SidebarContent, o as SidebarGroupContent, p as SidebarMenuBadge, r as SidebarFooter, s as SidebarGroupLabel, t as Sidebar, u as SidebarInset, v as SidebarMenuSubButton, w as useSidebar, x as SidebarRail, y as SidebarMenuSubItem } from "./sidebar-DWl1Azyv.js";
|
|
51
64
|
import { Calendar, RangeCalendar } from "./components/calendar-rac.js";
|
|
52
|
-
import {
|
|
65
|
+
import { n as JsonInput, r as validateJson, t as JsonEditor } from "./json-input-CH5aEmoA.js";
|
|
53
66
|
import { Toaster } from "./components/sonner.js";
|
|
54
67
|
import { Dock, DockIcon, dockVariants } from "./components/dock.js";
|
|
55
68
|
import { PageHeader } from "./components/page-header.js";
|
|
@@ -59,9 +72,9 @@ import { ProgressiveBlur } from "./components/progressive-blur.js";
|
|
|
59
72
|
import { ProgressiveBlurScrollContainer } from "./components/progressive-blur-scroll-container.js";
|
|
60
73
|
import { ResponsiveDiagram } from "./components/responsive-diagram.js";
|
|
61
74
|
import { UnlinkButton } from "./components/unlink-button.js";
|
|
62
|
-
import { A as peekSlideSpring, B as useStackCards, C as createCardVariants, D as createReducedMotionVariants, E as createOffsetTransition, F as useCardIndex, H as useStackLayoutMode, I as useCardInjectedProps, L as useCardReady, M as snapBackSpring, N as swipeDismissTransition, O as peekDragSpring, P as CardStackProvider, R as useCardStack, S as backdropVariants, T as createExitTransition, V as useStackContext, _ as parseWidthToPixels, a as useStackGestures, b as StackBackdrop, c as calculateResponsiveOffset, d as getCascadeOffset, f as getResponsiveCardOffset, g as normalizeWidth, h as isCardVisible, i as useStackResponsive, j as reducedMotionBackdropVariants, k as peekHoverSpring, l as getCardOffset, m as getVisibleCardIndices, n as CardStackViewport, o as StackCard, p as getSideBySideOffset, r as useIsMobile, s as usePeekGestures, t as DeferredCardContent, u as getCardZIndex, v as StackHeader, w as createEnterTransition, x as DEFAULT_ANIMATION_CONFIG, y as StackHeaderSlot, z as useIsTopCard } from "./stack-
|
|
63
|
-
import { a as showErrorToast, i as showInfoToast, n as showWarningToast, r as showSuccessToast, t as toast } from "./toast-
|
|
64
|
-
import { $ as
|
|
75
|
+
import { A as peekSlideSpring, B as useStackCards, C as createCardVariants, D as createReducedMotionVariants, E as createOffsetTransition, F as useCardIndex, H as useStackLayoutMode, I as useCardInjectedProps, L as useCardReady, M as snapBackSpring, N as swipeDismissTransition, O as peekDragSpring, P as CardStackProvider, R as useCardStack, S as backdropVariants, T as createExitTransition, V as useStackContext, _ as parseWidthToPixels, a as useStackGestures, b as StackBackdrop, c as calculateResponsiveOffset, d as getCascadeOffset, f as getResponsiveCardOffset, g as normalizeWidth, h as isCardVisible, i as useStackResponsive, j as reducedMotionBackdropVariants, k as peekHoverSpring, l as getCardOffset, m as getVisibleCardIndices, n as CardStackViewport, o as StackCard, p as getSideBySideOffset, r as useIsMobile, s as usePeekGestures, t as DeferredCardContent, u as getCardZIndex, v as StackHeader, w as createEnterTransition, x as DEFAULT_ANIMATION_CONFIG, y as StackHeaderSlot, z as useIsTopCard } from "./stack-Kqu7YaR0.js";
|
|
76
|
+
import { a as showErrorToast, i as showInfoToast, n as showWarningToast, r as showSuccessToast, t as toast } from "./toast-CVW5XY4u.js";
|
|
77
|
+
import { $ as useChatContainer, A as PromptSuggestions, B as normalizeToolStatus, C as TaskRow, D as DiffTable, E as PlanTracker, F as Sources, G as ThinkingTrace, H as ChainOfThoughtStep, I as ApprovalCard, J as formatDuration, K as Reasoning, L as StatusIcon, M as InlineDiff, N as lineDiff, O as StreamingText, P as Source, Q as ChatContainerContent, R as Tool, S as TaskList, T as formatCompact, U as Step, V as ChainOfThought, W as Steps, X as ScrollButton, Y as SystemMessage, Z as ChatContainer, _ as AiImage, _t as AgentLoader, a as PromptInputAttachments, at as MessageAvatar, b as ContextCard, c as UsageNotice, ct as renderBasicMarkdown, d as PromptInputTrayRow, dt as PromptInput, et as ResponseStream, f as ThinkingStatus, ft as PromptInputAction, g as iconEnterClass, gt as usePromptInput, h as MarkTile, ht as PromptInputTextarea, i as PromptInputAttachment, it as MessageActions, j as FeedbackBar, k as PromptSuggestion, l as usageTone, lt as STREAM_THROTTLE_MS, m as ToolTrace, mt as PromptInputBody, n as ConnectPrompt, nt as Message, o as CostBlocks, ot as MessageContent, p as formatElapsed, pt as PromptInputActions, q as ThinkingBar, r as AskCard, rt as MessageAction, s as ModelSelector, st as Markdown, t as AgentDraftCard, tt as CodeBlock, u as PromptInputTray, ut as useThrottledText, v as FileUpload, vt as Loader, w as ContextRing, x as ContextCards, y as RecommendationCard, yt as TextShimmer, z as ToolGroup } from "./ai-B7XNnqYL.js";
|
|
65
78
|
import { ModalPortalScope, PORTAL_ROOT_ID, PortalRoot, useFloatingOverlayPortalProps, useInModalOverlay, usePortalContainer, usePortalContext, useRootPortalContainer } from "@constructive-io/ui/portal";
|
|
66
79
|
|
|
67
|
-
export { AgentLoader, AiImage, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle,
|
|
80
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgentDraftCard, AgentLoader, AiImage, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, ApprovalCard, AskCard, Autocomplete, AutocompleteEmpty, AutocompleteInput, AutocompleteItem, AutocompletePopup, AutocompleteSeparator, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardStackProvider, CardStackViewport, CardTitle, ChainOfThought, ChainOfThoughtStep, ChatContainer, ChatContainerContent, Checkbox, CheckboxGroup, CodeBlock, Collapsible, CollapsiblePanel as CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxList, ComboboxSeparator, ComboboxTrigger, Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, ConnectPrompt, ContextCard, ContextCards, ContextRing, CostBlocks, DEFAULT_ANIMATION_CONFIG, DEFAULT_SPRING_TIERS, DeferredCardContent, Dialog, DialogBackdrop, DialogClose, DialogPopup as DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPortal, DialogTitle, DialogTrigger, DiffTable, Dock, DockIcon, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FeedbackBar, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldRow, FieldSeparator, FieldSet, FieldTitle, FileUpload, FlickeringGrid, FlowZoomPanel, Form, FormControl, FormControl$1 as FormControlComponent, FormDescription, FormField, FormItem, FormLabel, FormMessage, InlineDiff, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, InputOtp, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, JsonEditor, JsonInput, Kbd, KbdGroup, Label, Loader, MarkTile, Markdown, Message, MessageAction, MessageActions, MessageAvatar, MessageContent, ModalPortalScope, ModelSelector, MotionGrid, MultiSelect, NEUTRAL_CHROMA_WEIGHTS, NEUTRAL_REFERENCE_HUE, PIN_FAMILIES, PORTAL_ROOT_ID, PageHeader, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PlanTracker, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger, PortalRoot, Progress, ProgressiveBlur, ProgressiveBlurScrollContainer, PromptInput, PromptInputAction, PromptInputActions, PromptInputAttachment, PromptInputAttachments, PromptInputBody, PromptInputTextarea, PromptInputTray, PromptInputTrayRow, PromptSuggestion, PromptSuggestions, Radio, Radio as RadioGroupItem, RadioGroup, RangeCalendar, Reasoning, RecommendationCard, RecordPicker, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponseStream, ResponsiveDiagram, STREAM_THROTTLE_MS, ScrollArea, ScrollBar, ScrollButton, Select, SelectPopup as SelectContent, SelectPopup, SelectFieldItem, SelectGroup, SelectGroupLabel, SelectGroupLabel as SelectLabel, SelectItem, SelectRichItem, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Slot, Slottable, Source, Sources, Spinner, StackBackdrop, StackCard, StackHeader, StackHeaderSlot, StatusIcon, Step, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, Steps, StreamingText, Switch, SystemMessage, THEME_PRESETS, THEME_PRESET_IDS, Table, TableBody, TableCaption, TableCell, TableFooter, TableGroupRow, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tags, TagsContent, TagsEmpty, TagsGroup, TagsInput, TagsItem, TagsList, TagsTrigger, TagsValue, TaskList, TaskRow, TextShimmer, Textarea, ThinkingBar, ThinkingStatus, ThinkingTrace, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tool, ToolGroup, ToolTrace, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnlinkButton, UsageNotice, alertVariants, backdropVariants, badgeVariants, buildThemeDialConfig, buttonGroupVariants, buttonVariants, calculateResponsiveOffset, cardVariants, cn, composeRefs, constructiveTheme, contrastRatio, createCardVariants, createEnterTransition, createExitTransition, createOffsetTransition, createReducedMotionVariants, defaultThemeTuning, deriveModeTokens, dialValuesToTuning, dockVariants, durations, easings, fitModeTuning, formatCompact, formatDuration, formatElapsed, formatOklch, getCardOffset, getCardZIndex, getCascadeOffset, getResponsiveCardOffset, getSideBySideOffset, getSpringTiers, getThemePreset, getVisibleCardIndices, iconEnterClass, initials, isCardVisible, isThemePresetId, itemMediaVariants, itemVariants, lineDiff, mergeProps, modeTuningDefaults, normalizeToolStatus, normalizeWidth, oklchToLinearSrgb, parseColor, parseOklch, parseWidthToPixels, peekDragSpring, peekHoverSpring, peekSlideSpring, reducedMotionBackdropVariants, relativeLuminance, renderBasicMarkdown, resolveThemeTuning, setSpringTiers, shadowBorderRecipe, showErrorToast, showInfoToast, showSuccessToast, showWarningToast, snapBackSpring, springs, swipeDismissTransition, themeOverrideStyleSheet, themePresetRegistryName, tierExit, tierSpring, toCssDeclarations, toast, toggleVariants, transitions, tuningToDialValues, usageTone, useCardIndex, useCardInjectedProps, useCardReady, useCardStack, useChatContainer, useControllableState, useFloatingOverlayPortalProps, useFormField, useInModalOverlay, useIsMobile, useIsTopCard, usePeekGestures, usePortalContainer, usePortalContext, usePromptInput, useRootPortalContainer, useSidebar, useSpringTiers, useStackCards, useStackContext, useStackGestures, useStackLayoutMode, useStackResponsive, useThrottledText, validateJson, variants };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
//#region src/lib/initial-focus.ts
|
|
4
|
+
/**
|
|
5
|
+
* Initial focus for an overlay that can scroll.
|
|
6
|
+
*
|
|
7
|
+
* By default the first tabbable element gets focus. When that element sits below the fold (a footer button under a
|
|
8
|
+
* long list, say) focusing it scrolls the overlay down to it, so the overlay opens showing its end instead of its
|
|
9
|
+
* title. This keeps the default whenever that element is already on screen, and otherwise focuses the overlay
|
|
10
|
+
* itself, which does not scroll: the overlay opens at the top, and the focus moves on with the first Tab. That is
|
|
11
|
+
* the WAI-ARIA dialog pattern for content long enough to scroll.
|
|
12
|
+
*
|
|
13
|
+
* Base UI's own default also focuses the popup, not the first control, when it is opened by touch, so the soft
|
|
14
|
+
* keyboard does not open over it (needed on Android). Replacing `initialFocus` replaces that rule too, so this
|
|
15
|
+
* function carries it.
|
|
16
|
+
*
|
|
17
|
+
* ```tsx
|
|
18
|
+
* <DialogPrimitive.Popup ref={popupRef} initialFocus={initialFocus ?? scrollSafeInitialFocus(() => popupRef.current)} />
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
const TABBABLE = [
|
|
22
|
+
"a[href]",
|
|
23
|
+
"area[href]",
|
|
24
|
+
"button",
|
|
25
|
+
"input:not([type=\"hidden\"])",
|
|
26
|
+
"select",
|
|
27
|
+
"textarea",
|
|
28
|
+
"summary",
|
|
29
|
+
"[contenteditable]:not([contenteditable=\"false\"])",
|
|
30
|
+
"[tabindex]"
|
|
31
|
+
].join(",");
|
|
32
|
+
const SCROLLS = /auto|scroll/;
|
|
33
|
+
function firstTabbableIsInView(overlay) {
|
|
34
|
+
const first = Array.from(overlay.querySelectorAll(TABBABLE)).find((element) => element.tabIndex >= 0 && !element.disabled && element.getClientRects().length > 0 && !element.closest("[inert]"));
|
|
35
|
+
if (!first) return true;
|
|
36
|
+
const box = first.getBoundingClientRect();
|
|
37
|
+
for (let node = first.parentElement; node; node = node.parentElement) {
|
|
38
|
+
const style = getComputedStyle(node);
|
|
39
|
+
if (SCROLLS.test(style.overflowY) || SCROLLS.test(style.overflowX)) {
|
|
40
|
+
const room = node.getBoundingClientRect();
|
|
41
|
+
if (box.top < room.top - 1 || box.bottom > room.bottom + 1 || box.left < room.left - 1 || box.right > room.right + 1) return false;
|
|
42
|
+
}
|
|
43
|
+
if (node === overlay) break;
|
|
44
|
+
}
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Returns an `initialFocus` function for a Base UI popup. `getOverlay` reads the popup element when focus is
|
|
49
|
+
* placed, so it can come from a ref.
|
|
50
|
+
*/
|
|
51
|
+
function scrollSafeInitialFocus(getOverlay) {
|
|
52
|
+
return (interactionType) => {
|
|
53
|
+
const overlay = getOverlay();
|
|
54
|
+
if (!overlay) return true;
|
|
55
|
+
if (interactionType === "touch") return overlay;
|
|
56
|
+
return firstTabbableIsInView(overlay) ? true : overlay;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
//#endregion
|
|
61
|
+
Object.defineProperty(exports, 'scrollSafeInitialFocus', {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function () {
|
|
64
|
+
return scrollSafeInitialFocus;
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
//# sourceMappingURL=initial-focus-B8RLtyOZ.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initial-focus-B8RLtyOZ.cjs","names":[],"sources":["../src/lib/initial-focus.ts"],"sourcesContent":["/**\n * Initial focus for an overlay that can scroll.\n *\n * By default the first tabbable element gets focus. When that element sits below the fold (a footer button under a\n * long list, say) focusing it scrolls the overlay down to it, so the overlay opens showing its end instead of its\n * title. This keeps the default whenever that element is already on screen, and otherwise focuses the overlay\n * itself, which does not scroll: the overlay opens at the top, and the focus moves on with the first Tab. That is\n * the WAI-ARIA dialog pattern for content long enough to scroll.\n *\n * Base UI's own default also focuses the popup, not the first control, when it is opened by touch, so the soft\n * keyboard does not open over it (needed on Android). Replacing `initialFocus` replaces that rule too, so this\n * function carries it.\n *\n * ```tsx\n * <DialogPrimitive.Popup ref={popupRef} initialFocus={initialFocus ?? scrollSafeInitialFocus(() => popupRef.current)} />\n * ```\n */\nconst TABBABLE = [\n\t'a[href]',\n\t'area[href]',\n\t'button',\n\t'input:not([type=\"hidden\"])',\n\t'select',\n\t'textarea',\n\t'summary',\n\t'[contenteditable]:not([contenteditable=\"false\"])',\n\t'[tabindex]',\n].join(',');\n\nconst SCROLLS = /auto|scroll/;\n\nfunction firstTabbableIsInView(overlay: HTMLElement) {\n\tconst first = Array.from(overlay.querySelectorAll<HTMLElement>(TABBABLE)).find(\n\t\t(element) => element.tabIndex >= 0 && !(element as HTMLButtonElement).disabled && element.getClientRects().length > 0 && !element.closest('[inert]'),\n\t);\n\tif (!first) return true;\n\n\t// Visible means inside every scroll container between the element and the overlay, the overlay included.\n\tconst box = first.getBoundingClientRect();\n\tfor (let node = first.parentElement; node; node = node.parentElement) {\n\t\tconst style = getComputedStyle(node);\n\t\tif (SCROLLS.test(style.overflowY) || SCROLLS.test(style.overflowX)) {\n\t\t\tconst room = node.getBoundingClientRect();\n\t\t\tif (box.top < room.top - 1 || box.bottom > room.bottom + 1 || box.left < room.left - 1 || box.right > room.right + 1) return false;\n\t\t}\n\t\tif (node === overlay) break;\n\t}\n\treturn true;\n}\n\n/**\n * Returns an `initialFocus` function for a Base UI popup. `getOverlay` reads the popup element when focus is\n * placed, so it can come from a ref.\n */\nexport function scrollSafeInitialFocus(getOverlay: () => HTMLElement | null) {\n\t// `interactionType` is Base UI's: 'mouse', 'touch', 'pen', 'keyboard' or ''.\n\treturn (interactionType?: string): true | HTMLElement => {\n\t\tconst overlay = getOverlay();\n\t\tif (!overlay) return true;\n\t\tif (interactionType === 'touch') return overlay;\n\t\treturn firstTabbableIsInView(overlay) ? true : overlay;\n\t};\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAiBA,MAAM,WAAW;CAChB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC,CAAC,KAAK,GAAG;AAEV,MAAM,UAAU;AAEhB,SAAS,sBAAsB,SAAsB;CACpD,MAAM,QAAQ,MAAM,KAAK,QAAQ,iBAA8B,QAAQ,CAAC,CAAC,CAAC,MACxE,YAAY,QAAQ,YAAY,KAAK,CAAE,QAA8B,YAAY,QAAQ,eAAe,CAAC,CAAC,SAAS,KAAK,CAAC,QAAQ,QAAQ,SAAS,CACpJ;CACA,IAAI,CAAC,OAAO,OAAO;CAGnB,MAAM,MAAM,MAAM,sBAAsB;CACxC,KAAK,IAAI,OAAO,MAAM,eAAe,MAAM,OAAO,KAAK,eAAe;EACrE,MAAM,QAAQ,iBAAiB,IAAI;EACnC,IAAI,QAAQ,KAAK,MAAM,SAAS,KAAK,QAAQ,KAAK,MAAM,SAAS,GAAG;GACnE,MAAM,OAAO,KAAK,sBAAsB;GACxC,IAAI,IAAI,MAAM,KAAK,MAAM,KAAK,IAAI,SAAS,KAAK,SAAS,KAAK,IAAI,OAAO,KAAK,OAAO,KAAK,IAAI,QAAQ,KAAK,QAAQ,GAAG,OAAO;EAC9H;EACA,IAAI,SAAS,SAAS;CACvB;CACA,OAAO;AACR;;;;;AAMA,SAAgB,uBAAuB,YAAsC;CAE5E,QAAQ,oBAAiD;EACxD,MAAM,UAAU,WAAW;EAC3B,IAAI,CAAC,SAAS,OAAO;EACrB,IAAI,oBAAoB,SAAS,OAAO;EACxC,OAAO,sBAAsB,OAAO,IAAI,OAAO;CAChD;AACD"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
//#region src/lib/initial-focus.ts
|
|
3
|
+
/**
|
|
4
|
+
* Initial focus for an overlay that can scroll.
|
|
5
|
+
*
|
|
6
|
+
* By default the first tabbable element gets focus. When that element sits below the fold (a footer button under a
|
|
7
|
+
* long list, say) focusing it scrolls the overlay down to it, so the overlay opens showing its end instead of its
|
|
8
|
+
* title. This keeps the default whenever that element is already on screen, and otherwise focuses the overlay
|
|
9
|
+
* itself, which does not scroll: the overlay opens at the top, and the focus moves on with the first Tab. That is
|
|
10
|
+
* the WAI-ARIA dialog pattern for content long enough to scroll.
|
|
11
|
+
*
|
|
12
|
+
* Base UI's own default also focuses the popup, not the first control, when it is opened by touch, so the soft
|
|
13
|
+
* keyboard does not open over it (needed on Android). Replacing `initialFocus` replaces that rule too, so this
|
|
14
|
+
* function carries it.
|
|
15
|
+
*
|
|
16
|
+
* ```tsx
|
|
17
|
+
* <DialogPrimitive.Popup ref={popupRef} initialFocus={initialFocus ?? scrollSafeInitialFocus(() => popupRef.current)} />
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
const TABBABLE = [
|
|
21
|
+
"a[href]",
|
|
22
|
+
"area[href]",
|
|
23
|
+
"button",
|
|
24
|
+
"input:not([type=\"hidden\"])",
|
|
25
|
+
"select",
|
|
26
|
+
"textarea",
|
|
27
|
+
"summary",
|
|
28
|
+
"[contenteditable]:not([contenteditable=\"false\"])",
|
|
29
|
+
"[tabindex]"
|
|
30
|
+
].join(",");
|
|
31
|
+
const SCROLLS = /auto|scroll/;
|
|
32
|
+
function firstTabbableIsInView(overlay) {
|
|
33
|
+
const first = Array.from(overlay.querySelectorAll(TABBABLE)).find((element) => element.tabIndex >= 0 && !element.disabled && element.getClientRects().length > 0 && !element.closest("[inert]"));
|
|
34
|
+
if (!first) return true;
|
|
35
|
+
const box = first.getBoundingClientRect();
|
|
36
|
+
for (let node = first.parentElement; node; node = node.parentElement) {
|
|
37
|
+
const style = getComputedStyle(node);
|
|
38
|
+
if (SCROLLS.test(style.overflowY) || SCROLLS.test(style.overflowX)) {
|
|
39
|
+
const room = node.getBoundingClientRect();
|
|
40
|
+
if (box.top < room.top - 1 || box.bottom > room.bottom + 1 || box.left < room.left - 1 || box.right > room.right + 1) return false;
|
|
41
|
+
}
|
|
42
|
+
if (node === overlay) break;
|
|
43
|
+
}
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Returns an `initialFocus` function for a Base UI popup. `getOverlay` reads the popup element when focus is
|
|
48
|
+
* placed, so it can come from a ref.
|
|
49
|
+
*/
|
|
50
|
+
function scrollSafeInitialFocus(getOverlay) {
|
|
51
|
+
return (interactionType) => {
|
|
52
|
+
const overlay = getOverlay();
|
|
53
|
+
if (!overlay) return true;
|
|
54
|
+
if (interactionType === "touch") return overlay;
|
|
55
|
+
return firstTabbableIsInView(overlay) ? true : overlay;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
//#endregion
|
|
60
|
+
export { scrollSafeInitialFocus as t };
|
|
61
|
+
//# sourceMappingURL=initial-focus-j2E0EnIx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initial-focus-j2E0EnIx.js","names":[],"sources":["../src/lib/initial-focus.ts"],"sourcesContent":["/**\n * Initial focus for an overlay that can scroll.\n *\n * By default the first tabbable element gets focus. When that element sits below the fold (a footer button under a\n * long list, say) focusing it scrolls the overlay down to it, so the overlay opens showing its end instead of its\n * title. This keeps the default whenever that element is already on screen, and otherwise focuses the overlay\n * itself, which does not scroll: the overlay opens at the top, and the focus moves on with the first Tab. That is\n * the WAI-ARIA dialog pattern for content long enough to scroll.\n *\n * Base UI's own default also focuses the popup, not the first control, when it is opened by touch, so the soft\n * keyboard does not open over it (needed on Android). Replacing `initialFocus` replaces that rule too, so this\n * function carries it.\n *\n * ```tsx\n * <DialogPrimitive.Popup ref={popupRef} initialFocus={initialFocus ?? scrollSafeInitialFocus(() => popupRef.current)} />\n * ```\n */\nconst TABBABLE = [\n\t'a[href]',\n\t'area[href]',\n\t'button',\n\t'input:not([type=\"hidden\"])',\n\t'select',\n\t'textarea',\n\t'summary',\n\t'[contenteditable]:not([contenteditable=\"false\"])',\n\t'[tabindex]',\n].join(',');\n\nconst SCROLLS = /auto|scroll/;\n\nfunction firstTabbableIsInView(overlay: HTMLElement) {\n\tconst first = Array.from(overlay.querySelectorAll<HTMLElement>(TABBABLE)).find(\n\t\t(element) => element.tabIndex >= 0 && !(element as HTMLButtonElement).disabled && element.getClientRects().length > 0 && !element.closest('[inert]'),\n\t);\n\tif (!first) return true;\n\n\t// Visible means inside every scroll container between the element and the overlay, the overlay included.\n\tconst box = first.getBoundingClientRect();\n\tfor (let node = first.parentElement; node; node = node.parentElement) {\n\t\tconst style = getComputedStyle(node);\n\t\tif (SCROLLS.test(style.overflowY) || SCROLLS.test(style.overflowX)) {\n\t\t\tconst room = node.getBoundingClientRect();\n\t\t\tif (box.top < room.top - 1 || box.bottom > room.bottom + 1 || box.left < room.left - 1 || box.right > room.right + 1) return false;\n\t\t}\n\t\tif (node === overlay) break;\n\t}\n\treturn true;\n}\n\n/**\n * Returns an `initialFocus` function for a Base UI popup. `getOverlay` reads the popup element when focus is\n * placed, so it can come from a ref.\n */\nexport function scrollSafeInitialFocus(getOverlay: () => HTMLElement | null) {\n\t// `interactionType` is Base UI's: 'mouse', 'touch', 'pen', 'keyboard' or ''.\n\treturn (interactionType?: string): true | HTMLElement => {\n\t\tconst overlay = getOverlay();\n\t\tif (!overlay) return true;\n\t\tif (interactionType === 'touch') return overlay;\n\t\treturn firstTabbableIsInView(overlay) ? true : overlay;\n\t};\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAiBA,MAAM,WAAW;CAChB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC,CAAC,KAAK,GAAG;AAEV,MAAM,UAAU;AAEhB,SAAS,sBAAsB,SAAsB;CACpD,MAAM,QAAQ,MAAM,KAAK,QAAQ,iBAA8B,QAAQ,CAAC,CAAC,CAAC,MACxE,YAAY,QAAQ,YAAY,KAAK,CAAE,QAA8B,YAAY,QAAQ,eAAe,CAAC,CAAC,SAAS,KAAK,CAAC,QAAQ,QAAQ,SAAS,CACpJ;CACA,IAAI,CAAC,OAAO,OAAO;CAGnB,MAAM,MAAM,MAAM,sBAAsB;CACxC,KAAK,IAAI,OAAO,MAAM,eAAe,MAAM,OAAO,KAAK,eAAe;EACrE,MAAM,QAAQ,iBAAiB,IAAI;EACnC,IAAI,QAAQ,KAAK,MAAM,SAAS,KAAK,QAAQ,KAAK,MAAM,SAAS,GAAG;GACnE,MAAM,OAAO,KAAK,sBAAsB;GACxC,IAAI,IAAI,MAAM,KAAK,MAAM,KAAK,IAAI,SAAS,KAAK,SAAS,KAAK,IAAI,OAAO,KAAK,OAAO,KAAK,IAAI,QAAQ,KAAK,QAAQ,GAAG,OAAO;EAC9H;EACA,IAAI,SAAS,SAAS;CACvB;CACA,OAAO;AACR;;;;;AAMA,SAAgB,uBAAuB,YAAsC;CAE5E,QAAQ,oBAAiD;EACxD,MAAM,UAAU,WAAW;EAC3B,IAAI,CAAC,SAAS,OAAO;EACrB,IAAI,oBAAoB,SAAS,OAAO;EACxC,OAAO,sBAAsB,OAAO,IAAI,OAAO;CAChD;AACD"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
//#region src/lib/intl.ts
|
|
4
|
+
const formatters = /* @__PURE__ */ new Map();
|
|
5
|
+
function cached(key, create, locale) {
|
|
6
|
+
let formatter = formatters.get(`${key}|${locale}`);
|
|
7
|
+
if (!formatter) {
|
|
8
|
+
try {
|
|
9
|
+
formatter = create(locale);
|
|
10
|
+
} catch (error) {
|
|
11
|
+
if (!(error instanceof RangeError) || locale === "en-US") throw error;
|
|
12
|
+
formatter = create("en-US");
|
|
13
|
+
}
|
|
14
|
+
formatters.set(`${key}|${locale}`, formatter);
|
|
15
|
+
}
|
|
16
|
+
return formatter;
|
|
17
|
+
}
|
|
18
|
+
function numberFormat(locale, options = {}) {
|
|
19
|
+
return cached(`n|${JSON.stringify(options)}`, (tag) => new Intl.NumberFormat(tag, options), locale);
|
|
20
|
+
}
|
|
21
|
+
function listFormat(locale) {
|
|
22
|
+
return cached("l", (tag) => new Intl.ListFormat(tag, { type: "conjunction" }), locale);
|
|
23
|
+
}
|
|
24
|
+
function pluralRules(locale) {
|
|
25
|
+
return cached("p", (tag) => new Intl.PluralRules(tag), locale);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Groups the digits of a count: `1284` becomes "1,284". Defaults to en-US so the server and the browser agree; pass
|
|
29
|
+
* the reader's locale to show their own separators. A missing or non-finite value reads as an em dash.
|
|
30
|
+
*/
|
|
31
|
+
function formatCount(value, locale = "en-US") {
|
|
32
|
+
return Number.isFinite(value) ? numberFormat(locale).format(value) : "—";
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Picks the noun form for a count with `Intl.PluralRules`, so `1` reads "1 skill" and `2` reads "2 skills". Falls
|
|
36
|
+
* back to `other` for a form that was not supplied.
|
|
37
|
+
*
|
|
38
|
+
* The forms are English unless `locale` says otherwise, and the choice follows the rules of the language they are
|
|
39
|
+
* written in, not of the page's formatting locale: Japanese has no "one" form, so English forms picked by Japanese
|
|
40
|
+
* rules would read "1 skills". Pass `locale` only together with forms written for it, such as
|
|
41
|
+
* `plural(n, { one, few, many, other }, 'ru')`.
|
|
42
|
+
*/
|
|
43
|
+
function plural(count, forms, locale = "en-US") {
|
|
44
|
+
return forms[pluralRules(locale).select(count)] ?? forms.other;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Joins names for a sentence, showing the first `max` and a count of the rest: "a, b, c, and 12 more". Fifteen names
|
|
48
|
+
* are a number to act on, not a paragraph to read.
|
|
49
|
+
*/
|
|
50
|
+
function nameList(names, { max = 3, locale = "en-US" } = {}) {
|
|
51
|
+
const shown = names.slice(0, max);
|
|
52
|
+
const rest = names.length - shown.length;
|
|
53
|
+
return listFormat(locale).format(rest > 0 ? [...shown, `${formatCount(rest, locale)} more`] : shown);
|
|
54
|
+
}
|
|
55
|
+
/** Built once. Grapheme boundaries do not depend on the locale, so the server and the browser split text alike. */
|
|
56
|
+
const graphemeSegmenter = typeof Intl !== "undefined" && typeof Intl.Segmenter === "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null;
|
|
57
|
+
/** The characters a reader sees: a letter with its accent or an emoji sequence is one piece, never cut in half. */
|
|
58
|
+
function graphemes(text) {
|
|
59
|
+
return graphemeSegmenter ? Array.from(graphemeSegmenter.segment(text), (part) => part.segment) : Array.from(text);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/lib/initials.ts
|
|
64
|
+
const GRAPHEME_FALLBACK = /^(?:\p{Regional_Indicator}{2}|.[\p{M}️\u{1F3FB}-\u{1F3FF}]*(?:.[\p{M}️\u{1F3FB}-\u{1F3FF}]*)*)/u;
|
|
65
|
+
const LEADING_NOISE = /^[^\p{L}\p{N}\p{Extended_Pictographic}\p{Regional_Indicator}]+/u;
|
|
66
|
+
const TRAILING_NOISE = /[^\p{L}\p{N}\p{Extended_Pictographic}\p{Regional_Indicator}]+$/u;
|
|
67
|
+
const GENERATIONAL_SUFFIX = /^(?:jr|sr|ii|iii|iv|phd|md|esq)$/i;
|
|
68
|
+
const EMAIL = /^[^\s@]+@[^\s@]+$/;
|
|
69
|
+
function firstGrapheme(text) {
|
|
70
|
+
if (graphemeSegmenter) {
|
|
71
|
+
for (const { segment } of graphemeSegmenter.segment(text)) return segment;
|
|
72
|
+
return "";
|
|
73
|
+
}
|
|
74
|
+
return GRAPHEME_FALLBACK.exec(text)?.[0] ?? "";
|
|
75
|
+
}
|
|
76
|
+
function upperCase(grapheme, locale) {
|
|
77
|
+
const upper = locale ? grapheme.toLocaleUpperCase(locale) : grapheme.toUpperCase();
|
|
78
|
+
return firstGrapheme(upper) === upper ? upper : grapheme;
|
|
79
|
+
}
|
|
80
|
+
function wordsOf(value) {
|
|
81
|
+
const trimmed = value.trim();
|
|
82
|
+
if (EMAIL.test(trimmed)) return trimmed.slice(0, trimmed.indexOf("@")).split("+")[0].split(/[._-]+/);
|
|
83
|
+
return trimmed.split(/\s+/u);
|
|
84
|
+
}
|
|
85
|
+
function initials(name, { max = 2, locale } = {}) {
|
|
86
|
+
if (!name) return null;
|
|
87
|
+
const limit = Math.max(1, Math.floor(max));
|
|
88
|
+
let words = wordsOf(name).map((word) => word.replace(LEADING_NOISE, "").replace(TRAILING_NOISE, "")).filter(Boolean);
|
|
89
|
+
if (words.length > 1 && GENERATIONAL_SUFFIX.test(words[words.length - 1])) words = words.slice(0, -1);
|
|
90
|
+
if (words.length === 0) return null;
|
|
91
|
+
let picked = words;
|
|
92
|
+
if (words.length > limit) picked = limit === 1 ? [words[0]] : [...words.slice(0, limit - 1), words[words.length - 1]];
|
|
93
|
+
return picked.map((word) => upperCase(firstGrapheme(word), locale)).join("");
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
//#endregion
|
|
97
|
+
Object.defineProperty(exports, 'formatCount', {
|
|
98
|
+
enumerable: true,
|
|
99
|
+
get: function () {
|
|
100
|
+
return formatCount;
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
Object.defineProperty(exports, 'graphemes', {
|
|
104
|
+
enumerable: true,
|
|
105
|
+
get: function () {
|
|
106
|
+
return graphemes;
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
Object.defineProperty(exports, 'initials', {
|
|
110
|
+
enumerable: true,
|
|
111
|
+
get: function () {
|
|
112
|
+
return initials;
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
Object.defineProperty(exports, 'nameList', {
|
|
116
|
+
enumerable: true,
|
|
117
|
+
get: function () {
|
|
118
|
+
return nameList;
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
Object.defineProperty(exports, 'plural', {
|
|
122
|
+
enumerable: true,
|
|
123
|
+
get: function () {
|
|
124
|
+
return plural;
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
//# sourceMappingURL=initials-DSkWTOb0.cjs.map
|