@brett_lamy/ui 1.1.0 → 3.0.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 +37 -23
- package/dist/components/adaptive-pane.d.ts.map +1 -1
- package/dist/components/adaptive-pane.js +30 -0
- package/dist/components/animated-height.d.ts.map +1 -1
- package/dist/components/animated-height.js +82 -0
- package/dist/{templates → components}/artifact-chat-container.d.ts +17 -5
- package/dist/components/artifact-chat-container.d.ts.map +1 -0
- package/dist/components/artifact-chat-container.js +200 -0
- package/dist/components/avatar.js +26 -0
- package/dist/components/badge.js +24 -0
- package/dist/components/button.d.ts.map +1 -1
- package/dist/components/button.js +46 -0
- package/dist/components/card.js +56 -0
- package/dist/components/celebrate.d.ts.map +1 -1
- package/dist/components/celebrate.js +142 -0
- package/dist/components/chat-column.d.ts.map +1 -0
- package/dist/components/chat-column.js +26 -0
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox.js +55 -0
- package/dist/components/combobox.d.ts +1 -1
- package/dist/components/combobox.d.ts.map +1 -1
- package/dist/components/combobox.js +65 -0
- package/dist/components/command-menu.d.ts +210 -0
- package/dist/components/command-menu.d.ts.map +1 -0
- package/dist/components/command-menu.js +906 -0
- package/dist/components/composer/annotator.d.ts.map +1 -0
- package/dist/components/composer/annotator.js +17 -0
- package/dist/components/composer/composer-files.d.ts.map +1 -0
- package/dist/components/composer/composer-files.js +91 -0
- package/dist/components/{workbench/wb-popover.d.ts → composer/composer-popover.d.ts} +3 -5
- package/dist/components/composer/composer-popover.d.ts.map +1 -0
- package/dist/components/composer/composer-popover.js +29 -0
- package/dist/components/{workbench → composer}/composer.d.ts +11 -11
- package/dist/components/composer/composer.d.ts.map +1 -0
- package/dist/components/composer/composer.js +1633 -0
- package/dist/components/{workbench/chat.d.ts → conversation.d.ts} +3 -3
- package/dist/components/conversation.d.ts.map +1 -0
- package/dist/components/conversation.js +357 -0
- package/dist/components/credenza.d.ts +7 -2
- package/dist/components/credenza.d.ts.map +1 -1
- package/dist/components/credenza.js +294 -0
- package/dist/components/dialog.d.ts +2 -2
- package/dist/components/dialog.d.ts.map +1 -1
- package/dist/components/dialog.js +125 -0
- package/dist/components/disclosure.d.ts.map +1 -1
- package/dist/components/disclosure.js +59 -0
- package/dist/components/dropdown-menu.d.ts +1 -1
- package/dist/components/dropdown-menu.d.ts.map +1 -1
- package/dist/components/dropdown-menu.js +114 -0
- package/dist/components/edge-drawer.d.ts +14 -2
- package/dist/components/edge-drawer.d.ts.map +1 -1
- package/dist/components/edge-drawer.js +73 -0
- package/dist/components/edit-bar.d.ts.map +1 -1
- package/dist/components/edit-bar.js +33 -0
- package/dist/components/{chat/floating-chat.d.ts → floating-chat.d.ts} +26 -3
- package/dist/components/floating-chat.d.ts.map +1 -0
- package/dist/components/floating-chat.js +288 -0
- package/dist/components/{chat/floating-sheet.d.ts → floating-sheet.d.ts} +24 -4
- package/dist/components/floating-sheet.d.ts.map +1 -0
- package/dist/components/floating-sheet.js +252 -0
- package/dist/components/form.d.ts.map +1 -1
- package/dist/components/form.js +32 -0
- package/dist/components/icon-button.d.ts +19 -0
- package/dist/components/icon-button.d.ts.map +1 -0
- package/dist/components/icon-button.js +31 -0
- package/dist/components/icon-swap.d.ts.map +1 -1
- package/dist/components/icon-swap.js +80 -0
- package/dist/components/index-bar.d.ts +14 -1
- package/dist/components/index-bar.d.ts.map +1 -1
- package/dist/components/index-bar.js +249 -0
- package/dist/components/input.d.ts.map +1 -1
- package/dist/components/input.js +30 -0
- package/dist/components/kbd.d.ts.map +1 -1
- package/dist/components/kbd.js +21 -0
- package/dist/components/label.d.ts.map +1 -1
- package/dist/components/label.js +22 -0
- package/dist/components/list-box.d.ts +1 -3
- package/dist/components/list-box.d.ts.map +1 -1
- package/dist/components/list-box.js +104 -0
- package/dist/components/list.d.ts +15 -1
- package/dist/components/list.d.ts.map +1 -1
- package/dist/components/list.js +491 -0
- package/dist/components/markdown-editor.d.ts.map +1 -1
- package/dist/components/markdown-editor.js +300 -0
- package/dist/components/{workbench/markdown.d.ts → markdown-view.d.ts} +1 -1
- package/dist/components/markdown-view.d.ts.map +1 -0
- package/dist/components/markdown-view.js +129 -0
- package/dist/components/measure-h.d.ts.map +1 -1
- package/dist/components/measure-h.js +20 -0
- package/dist/components/message-scroller.d.ts.map +1 -0
- package/dist/components/message-scroller.js +247 -0
- package/dist/components/morph.d.ts +6 -3
- package/dist/components/morph.d.ts.map +1 -1
- package/dist/components/morph.js +89 -0
- package/dist/components/navigation-stack.d.ts +27 -2
- package/dist/components/navigation-stack.d.ts.map +1 -1
- package/dist/components/navigation-stack.js +506 -0
- package/dist/components/now-playing-bars.js +38 -0
- package/dist/components/number-morph.d.ts.map +1 -1
- package/dist/components/number-morph.js +123 -0
- package/dist/{lib → components}/pencilkit/constants.d.ts +8 -8
- package/dist/components/pencilkit/constants.d.ts.map +1 -0
- package/dist/components/pencilkit/constants.js +63 -0
- package/dist/components/pencilkit/pencil-canvas.d.ts +1 -1
- package/dist/components/pencilkit/pencil-canvas.d.ts.map +1 -1
- package/dist/components/pencilkit/pencil-canvas.js +105 -0
- package/dist/components/pencilkit/pencil-toolbar.d.ts +8 -6
- package/dist/components/pencilkit/pencil-toolbar.d.ts.map +1 -1
- package/dist/components/pencilkit/pencil-toolbar.js +186 -0
- package/dist/components/pencilkit/pencilkit-annotator.d.ts +1 -1
- package/dist/components/pencilkit/pencilkit-annotator.d.ts.map +1 -1
- package/dist/components/pencilkit/pencilkit-annotator.js +44 -0
- package/dist/components/pencilkit/stroke-path.d.ts +1 -1
- package/dist/components/pencilkit/stroke-path.d.ts.map +1 -1
- package/dist/components/pencilkit/stroke-path.js +44 -0
- package/dist/components/pencilkit/use-pencil-history.d.ts +2 -2
- package/dist/components/pencilkit/use-pencil-history.d.ts.map +1 -1
- package/dist/components/pencilkit/use-pencil-history.js +25 -0
- package/dist/components/plain-button.d.ts +10 -0
- package/dist/components/plain-button.d.ts.map +1 -0
- package/dist/components/plain-button.js +23 -0
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.d.ts.map +1 -1
- package/dist/components/popover.js +36 -0
- package/dist/components/progress-ring.d.ts +34 -15
- package/dist/components/progress-ring.d.ts.map +1 -1
- package/dist/components/progress-ring.js +195 -0
- package/dist/components/progress-stepper.d.ts.map +1 -0
- package/dist/components/progress-stepper.js +62 -0
- package/dist/components/progress.d.ts.map +1 -1
- package/dist/components/progress.js +54 -0
- package/dist/components/qr-svg.d.ts.map +1 -1
- package/dist/components/qr-svg.js +74 -0
- package/dist/components/radio-group.d.ts +1 -1
- package/dist/components/radio-group.d.ts.map +1 -1
- package/dist/components/radio-group.js +41 -0
- package/dist/components/replay-preview.d.ts +4 -0
- package/dist/components/replay-preview.d.ts.map +1 -0
- package/dist/components/replay-preview.js +3 -0
- package/dist/components/scroll-area.js +23 -0
- package/dist/components/search-field.d.ts.map +1 -1
- package/dist/components/search-field.js +44 -0
- package/dist/components/segmented.d.ts +2 -2
- package/dist/components/segmented.d.ts.map +1 -1
- package/dist/components/segmented.js +32 -0
- package/dist/components/select.d.ts +1 -1
- package/dist/components/select.d.ts.map +1 -1
- package/dist/components/select.js +93 -0
- package/dist/components/separator.d.ts.map +1 -1
- package/dist/components/separator.js +40 -0
- package/dist/components/sheet.d.ts.map +1 -1
- package/dist/components/sheet.js +55 -0
- package/dist/components/side-drawer.d.ts +16 -2
- package/dist/components/side-drawer.d.ts.map +1 -1
- package/dist/components/side-drawer.js +247 -0
- package/dist/components/sidebar.d.ts.map +1 -1
- package/dist/components/sidebar.js +282 -0
- package/dist/components/skeleton.js +48 -0
- package/dist/components/slider.d.ts +10 -4
- package/dist/components/slider.d.ts.map +1 -1
- package/dist/components/slider.js +98 -0
- package/dist/components/snap-sheet.d.ts +13 -0
- package/dist/components/snap-sheet.d.ts.map +1 -0
- package/dist/components/snap-sheet.js +100 -0
- package/dist/components/spinner.js +35 -0
- package/dist/components/split-view.d.ts +34 -5
- package/dist/components/split-view.d.ts.map +1 -1
- package/dist/components/split-view.js +1060 -0
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/switch.d.ts.map +1 -1
- package/dist/components/switch.js +27 -0
- package/dist/components/syntax-highlighting.d.ts.map +1 -1
- package/dist/components/syntax-highlighting.js +293 -0
- package/dist/components/tab-bar.js +28 -0
- package/dist/components/tab-view.d.ts +8 -7
- package/dist/components/tab-view.d.ts.map +1 -1
- package/dist/components/tab-view.js +307 -0
- package/dist/components/tabs.d.ts +1 -1
- package/dist/components/tabs.d.ts.map +1 -1
- package/dist/components/tabs.js +86 -0
- package/dist/components/text-field.d.ts.map +1 -1
- package/dist/components/text-field.js +29 -0
- package/dist/components/text-morph.d.ts.map +1 -1
- package/dist/components/text-morph.js +131 -0
- package/dist/components/textarea.d.ts.map +1 -1
- package/dist/components/textarea.js +30 -0
- package/dist/components/toast.d.ts +8 -2
- package/dist/components/toast.d.ts.map +1 -1
- package/dist/components/toast.js +302 -0
- package/dist/components/toggle-group.d.ts +1 -1
- package/dist/components/toggle-group.d.ts.map +1 -1
- package/dist/components/toggle-group.js +48 -0
- package/dist/components/toggle.d.ts +1 -1
- package/dist/components/toggle.d.ts.map +1 -1
- package/dist/components/toggle.js +42 -0
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.d.ts.map +1 -1
- package/dist/components/tooltip.js +42 -0
- package/dist/{lib/workbench/theme.d.ts → components/workbench-theme.d.ts} +4 -5
- package/dist/components/workbench-theme.d.ts.map +1 -0
- package/dist/components/workbench-theme.js +34 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +37 -80
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +91 -20192
- package/dist/lib/container.d.ts.map +1 -1
- package/dist/lib/container.js +49 -0
- package/dist/lib/icon-shapes/chat.d.ts +32 -0
- package/dist/lib/icon-shapes/chat.d.ts.map +1 -0
- package/dist/lib/icon-shapes/chat.js +13 -0
- package/dist/lib/icon-shapes/pencilkit.d.ts +49 -0
- package/dist/lib/icon-shapes/pencilkit.d.ts.map +1 -0
- package/dist/lib/icon-shapes/pencilkit.js +20 -0
- package/dist/lib/icon-shapes/workbench.d.ts +199 -0
- package/dist/lib/icon-shapes/workbench.d.ts.map +1 -0
- package/dist/lib/icon-shapes/workbench.js +47 -0
- package/dist/lib/icon.d.ts +352 -1
- package/dist/lib/icon.d.ts.map +1 -1
- package/dist/lib/icon.js +1774 -0
- package/dist/lib/motion.d.ts +16 -0
- package/dist/lib/motion.d.ts.map +1 -1
- package/dist/lib/motion.js +104 -0
- package/dist/lib/{chat/persistent-host.d.ts → persistent-host.d.ts} +1 -1
- package/dist/lib/persistent-host.d.ts.map +1 -0
- package/dist/lib/persistent-host.js +41 -0
- package/dist/lib/primitives.d.ts +1 -1
- package/dist/lib/primitives.d.ts.map +1 -1
- package/dist/lib/primitives.js +8 -0
- package/dist/lib/qr.js +552 -0
- package/dist/lib/row-label.d.ts +9 -0
- package/dist/lib/row-label.d.ts.map +1 -0
- package/dist/lib/row-label.js +10 -0
- package/dist/lib/sheet-drag.d.ts +22 -7
- package/dist/lib/sheet-drag.d.ts.map +1 -1
- package/dist/lib/sheet-drag.js +128 -0
- package/dist/lib/syntax.js +204 -0
- package/dist/lib/theme.d.ts +61 -5
- package/dist/lib/theme.d.ts.map +1 -1
- package/dist/lib/theme.js +138 -0
- package/dist/lib/tokens.generated.d.ts +16 -0
- package/dist/lib/tokens.generated.d.ts.map +1 -0
- package/dist/lib/tokens.generated.js +22 -0
- package/dist/lib/utils.d.ts +5 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +18 -0
- package/dist/theme.css +265 -0
- package/package.json +8 -7
- package/dist/components/adaptive-pane.stories.d.ts +0 -7
- package/dist/components/adaptive-pane.stories.d.ts.map +0 -1
- package/dist/components/avatar.stories.d.ts +0 -9
- package/dist/components/avatar.stories.d.ts.map +0 -1
- package/dist/components/badge.stories.d.ts +0 -9
- package/dist/components/badge.stories.d.ts.map +0 -1
- package/dist/components/button.stories.d.ts +0 -9
- package/dist/components/button.stories.d.ts.map +0 -1
- package/dist/components/card.stories.d.ts +0 -9
- package/dist/components/card.stories.d.ts.map +0 -1
- package/dist/components/chat/channel-list.d.ts +0 -35
- package/dist/components/chat/channel-list.d.ts.map +0 -1
- package/dist/components/chat/channel-list.stories.d.ts +0 -13
- package/dist/components/chat/channel-list.stories.d.ts.map +0 -1
- package/dist/components/chat/chat-avatar.d.ts +0 -13
- package/dist/components/chat/chat-avatar.d.ts.map +0 -1
- package/dist/components/chat/chat-avatar.stories.d.ts +0 -9
- package/dist/components/chat/chat-avatar.stories.d.ts.map +0 -1
- package/dist/components/chat/chat-column.d.ts.map +0 -1
- package/dist/components/chat/chat-column.stories.d.ts +0 -7
- package/dist/components/chat/chat-column.stories.d.ts.map +0 -1
- package/dist/components/chat/chat-composer.d.ts +0 -22
- package/dist/components/chat/chat-composer.d.ts.map +0 -1
- package/dist/components/chat/chat-composer.stories.d.ts +0 -16
- package/dist/components/chat/chat-composer.stories.d.ts.map +0 -1
- package/dist/components/chat/chat.fixtures.d.ts +0 -29
- package/dist/components/chat/chat.fixtures.d.ts.map +0 -1
- package/dist/components/chat/floating-chat.d.ts.map +0 -1
- package/dist/components/chat/floating-chat.stories.d.ts +0 -17
- package/dist/components/chat/floating-chat.stories.d.ts.map +0 -1
- package/dist/components/chat/floating-sheet.d.ts.map +0 -1
- package/dist/components/chat/floating-sheet.stories.d.ts +0 -22
- package/dist/components/chat/floating-sheet.stories.d.ts.map +0 -1
- package/dist/components/chat/member-list.d.ts +0 -21
- package/dist/components/chat/member-list.d.ts.map +0 -1
- package/dist/components/chat/message-list.d.ts +0 -34
- package/dist/components/chat/message-list.d.ts.map +0 -1
- package/dist/components/chat/message.d.ts +0 -47
- package/dist/components/chat/message.d.ts.map +0 -1
- package/dist/components/chat/message.stories.d.ts +0 -30
- package/dist/components/chat/message.stories.d.ts.map +0 -1
- package/dist/components/chat/progress-stepper.d.ts.map +0 -1
- package/dist/components/chat/rich-text.d.ts +0 -8
- package/dist/components/chat/rich-text.d.ts.map +0 -1
- package/dist/components/chat/rich-text.stories.d.ts +0 -9
- package/dist/components/chat/rich-text.stories.d.ts.map +0 -1
- package/dist/components/chat/server-header.d.ts +0 -10
- package/dist/components/chat/server-header.d.ts.map +0 -1
- package/dist/components/chat/thread-preview.d.ts +0 -25
- package/dist/components/chat/thread-preview.d.ts.map +0 -1
- package/dist/components/chat/thread-preview.stories.d.ts +0 -18
- package/dist/components/chat/thread-preview.stories.d.ts.map +0 -1
- package/dist/components/chat/user-panel.d.ts +0 -16
- package/dist/components/chat/user-panel.d.ts.map +0 -1
- package/dist/components/chat/workspace-rail.d.ts +0 -56
- package/dist/components/chat/workspace-rail.d.ts.map +0 -1
- package/dist/components/chat/workspace-rail.stories.d.ts +0 -12
- package/dist/components/chat/workspace-rail.stories.d.ts.map +0 -1
- package/dist/components/checkbox.stories.d.ts +0 -11
- package/dist/components/checkbox.stories.d.ts.map +0 -1
- package/dist/components/combobox.stories.d.ts +0 -10
- package/dist/components/combobox.stories.d.ts.map +0 -1
- package/dist/components/credenza.stories.d.ts +0 -8
- package/dist/components/credenza.stories.d.ts.map +0 -1
- package/dist/components/dialog.stories.d.ts +0 -12
- package/dist/components/dialog.stories.d.ts.map +0 -1
- package/dist/components/disclosure.stories.d.ts +0 -10
- package/dist/components/disclosure.stories.d.ts.map +0 -1
- package/dist/components/dropdown-menu.stories.d.ts +0 -11
- package/dist/components/dropdown-menu.stories.d.ts.map +0 -1
- package/dist/components/edge-drawer.stories.d.ts +0 -8
- package/dist/components/edge-drawer.stories.d.ts.map +0 -1
- package/dist/components/edit-bar.stories.d.ts +0 -10
- package/dist/components/edit-bar.stories.d.ts.map +0 -1
- package/dist/components/form.stories.d.ts +0 -9
- package/dist/components/form.stories.d.ts.map +0 -1
- package/dist/components/haptic-indicator.d.ts +0 -11
- package/dist/components/haptic-indicator.d.ts.map +0 -1
- package/dist/components/haptic-indicator.stories.d.ts +0 -8
- package/dist/components/haptic-indicator.stories.d.ts.map +0 -1
- package/dist/components/index-bar.stories.d.ts +0 -12
- package/dist/components/index-bar.stories.d.ts.map +0 -1
- package/dist/components/input.stories.d.ts +0 -10
- package/dist/components/input.stories.d.ts.map +0 -1
- package/dist/components/kbd.stories.d.ts +0 -9
- package/dist/components/kbd.stories.d.ts.map +0 -1
- package/dist/components/label.stories.d.ts +0 -8
- package/dist/components/label.stories.d.ts.map +0 -1
- package/dist/components/list-box.stories.d.ts +0 -9
- package/dist/components/list-box.stories.d.ts.map +0 -1
- package/dist/components/list-row.stories.d.ts +0 -21
- package/dist/components/list-row.stories.d.ts.map +0 -1
- package/dist/components/list.stories.d.ts +0 -27
- package/dist/components/list.stories.d.ts.map +0 -1
- package/dist/components/markdown-editor.stories.d.ts +0 -17
- package/dist/components/markdown-editor.stories.d.ts.map +0 -1
- package/dist/components/morph.stories.d.ts +0 -14
- package/dist/components/morph.stories.d.ts.map +0 -1
- package/dist/components/motion.stories.d.ts +0 -15
- package/dist/components/motion.stories.d.ts.map +0 -1
- package/dist/components/navigation-stack.stories.d.ts +0 -31
- package/dist/components/navigation-stack.stories.d.ts.map +0 -1
- package/dist/components/now-playing-bars.stories.d.ts +0 -12
- package/dist/components/now-playing-bars.stories.d.ts.map +0 -1
- package/dist/components/pencilkit/pencil-canvas.stories.d.ts +0 -18
- package/dist/components/pencilkit/pencil-canvas.stories.d.ts.map +0 -1
- package/dist/components/pencilkit/pencil-toolbar.stories.d.ts +0 -10
- package/dist/components/pencilkit/pencil-toolbar.stories.d.ts.map +0 -1
- package/dist/components/pencilkit/pk-icon.d.ts +0 -8
- package/dist/components/pencilkit/pk-icon.d.ts.map +0 -1
- package/dist/components/pill-button.d.ts +0 -11
- package/dist/components/pill-button.d.ts.map +0 -1
- package/dist/components/pill-button.stories.d.ts +0 -9
- package/dist/components/pill-button.stories.d.ts.map +0 -1
- package/dist/components/popover.stories.d.ts +0 -9
- package/dist/components/popover.stories.d.ts.map +0 -1
- package/dist/components/progress-ring.stories.d.ts +0 -15
- package/dist/components/progress-ring.stories.d.ts.map +0 -1
- package/dist/components/progress.stories.d.ts +0 -10
- package/dist/components/progress.stories.d.ts.map +0 -1
- package/dist/components/qr-svg.stories.d.ts +0 -16
- package/dist/components/qr-svg.stories.d.ts.map +0 -1
- package/dist/components/radio-group.stories.d.ts +0 -10
- package/dist/components/radio-group.stories.d.ts.map +0 -1
- package/dist/components/scroll-area.stories.d.ts +0 -8
- package/dist/components/scroll-area.stories.d.ts.map +0 -1
- package/dist/components/search-field.stories.d.ts +0 -10
- package/dist/components/search-field.stories.d.ts.map +0 -1
- package/dist/components/segmented.stories.d.ts +0 -8
- package/dist/components/segmented.stories.d.ts.map +0 -1
- package/dist/components/select.stories.d.ts +0 -12
- package/dist/components/select.stories.d.ts.map +0 -1
- package/dist/components/separator.stories.d.ts +0 -9
- package/dist/components/separator.stories.d.ts.map +0 -1
- package/dist/components/sheet.stories.d.ts +0 -12
- package/dist/components/sheet.stories.d.ts.map +0 -1
- package/dist/components/side-drawer.stories.d.ts +0 -8
- package/dist/components/side-drawer.stories.d.ts.map +0 -1
- package/dist/components/sidebar.stories.d.ts +0 -10
- package/dist/components/sidebar.stories.d.ts.map +0 -1
- package/dist/components/skeleton.stories.d.ts +0 -11
- package/dist/components/skeleton.stories.d.ts.map +0 -1
- package/dist/components/slider.stories.d.ts +0 -12
- package/dist/components/slider.stories.d.ts.map +0 -1
- package/dist/components/spinner.stories.d.ts +0 -9
- package/dist/components/spinner.stories.d.ts.map +0 -1
- package/dist/components/split-view.stories.d.ts +0 -51
- package/dist/components/split-view.stories.d.ts.map +0 -1
- package/dist/components/switch.stories.d.ts +0 -9
- package/dist/components/switch.stories.d.ts.map +0 -1
- package/dist/components/syntax-highlighting.stories.d.ts +0 -18
- package/dist/components/syntax-highlighting.stories.d.ts.map +0 -1
- package/dist/components/tab-bar.stories.d.ts +0 -8
- package/dist/components/tab-bar.stories.d.ts.map +0 -1
- package/dist/components/tab-view.stories.d.ts +0 -28
- package/dist/components/tab-view.stories.d.ts.map +0 -1
- package/dist/components/tabs.stories.d.ts +0 -9
- package/dist/components/tabs.stories.d.ts.map +0 -1
- package/dist/components/text-field.stories.d.ts +0 -9
- package/dist/components/text-field.stories.d.ts.map +0 -1
- package/dist/components/toast.stories.d.ts +0 -13
- package/dist/components/toast.stories.d.ts.map +0 -1
- package/dist/components/toggle-group.stories.d.ts +0 -10
- package/dist/components/toggle-group.stories.d.ts.map +0 -1
- package/dist/components/toggle.stories.d.ts +0 -9
- package/dist/components/toggle.stories.d.ts.map +0 -1
- package/dist/components/tooltip.stories.d.ts +0 -11
- package/dist/components/tooltip.stories.d.ts.map +0 -1
- package/dist/components/workbench/annotator.d.ts.map +0 -1
- package/dist/components/workbench/chat.d.ts.map +0 -1
- package/dist/components/workbench/chat.stories.d.ts +0 -13
- package/dist/components/workbench/chat.stories.d.ts.map +0 -1
- package/dist/components/workbench/composer-files.d.ts.map +0 -1
- package/dist/components/workbench/composer.d.ts.map +0 -1
- package/dist/components/workbench/composer.stories.d.ts +0 -35
- package/dist/components/workbench/composer.stories.d.ts.map +0 -1
- package/dist/components/workbench/fixtures.d.ts +0 -38
- package/dist/components/workbench/fixtures.d.ts.map +0 -1
- package/dist/components/workbench/markdown.d.ts.map +0 -1
- package/dist/components/workbench/message-scroller.d.ts.map +0 -1
- package/dist/components/workbench/message-scroller.stories.d.ts +0 -9
- package/dist/components/workbench/message-scroller.stories.d.ts.map +0 -1
- package/dist/components/workbench/model-picker.d.ts +0 -29
- package/dist/components/workbench/model-picker.d.ts.map +0 -1
- package/dist/components/workbench/models.d.ts +0 -32
- package/dist/components/workbench/models.d.ts.map +0 -1
- package/dist/components/workbench/snap-sheet.d.ts +0 -12
- package/dist/components/workbench/snap-sheet.d.ts.map +0 -1
- package/dist/components/workbench/snap-sheet.stories.d.ts +0 -8
- package/dist/components/workbench/snap-sheet.stories.d.ts.map +0 -1
- package/dist/components/workbench/surfaces.d.ts +0 -67
- package/dist/components/workbench/surfaces.d.ts.map +0 -1
- package/dist/components/workbench/surfaces.stories.d.ts +0 -15
- package/dist/components/workbench/surfaces.stories.d.ts.map +0 -1
- package/dist/components/workbench/terminal.d.ts +0 -43
- package/dist/components/workbench/terminal.d.ts.map +0 -1
- package/dist/components/workbench/terminal.stories.d.ts +0 -8
- package/dist/components/workbench/terminal.stories.d.ts.map +0 -1
- package/dist/components/workbench/thread-sidebar.d.ts +0 -100
- package/dist/components/workbench/thread-sidebar.d.ts.map +0 -1
- package/dist/components/workbench/thread-sidebar.stories.d.ts +0 -9
- package/dist/components/workbench/thread-sidebar.stories.d.ts.map +0 -1
- package/dist/components/workbench/wb-popover.d.ts.map +0 -1
- package/dist/components/workbench/workbench-composer.d.ts +0 -26
- package/dist/components/workbench/workbench-composer.d.ts.map +0 -1
- package/dist/demos/delivery/delivery-tracking-demo.d.ts +0 -41
- package/dist/demos/delivery/delivery-tracking-demo.d.ts.map +0 -1
- package/dist/demos/delivery/delivery-tracking-demo.stories.d.ts +0 -13
- package/dist/demos/delivery/delivery-tracking-demo.stories.d.ts.map +0 -1
- package/dist/demos/haptics-playground.d.ts +0 -18
- package/dist/demos/haptics-playground.d.ts.map +0 -1
- package/dist/demos/haptics-playground.stories.d.ts +0 -8
- package/dist/demos/haptics-playground.stories.d.ts.map +0 -1
- package/dist/demos/map-chat/geo.d.ts +0 -46
- package/dist/demos/map-chat/geo.d.ts.map +0 -1
- package/dist/demos/map-chat/map-agent.d.ts +0 -48
- package/dist/demos/map-chat/map-agent.d.ts.map +0 -1
- package/dist/demos/map-chat/map-chat-demo.d.ts +0 -19
- package/dist/demos/map-chat/map-chat-demo.d.ts.map +0 -1
- package/dist/demos/map-chat/map-chat-demo.stories.d.ts +0 -16
- package/dist/demos/map-chat/map-chat-demo.stories.d.ts.map +0 -1
- package/dist/demos/map-chat/map-icons.d.ts +0 -44
- package/dist/demos/map-chat/map-icons.d.ts.map +0 -1
- package/dist/demos/map-chat/places.d.ts +0 -29
- package/dist/demos/map-chat/places.d.ts.map +0 -1
- package/dist/demos/map-chat/tile-map.d.ts +0 -72
- package/dist/demos/map-chat/tile-map.d.ts.map +0 -1
- package/dist/demos/pencilkit/demo-strokes.d.ts +0 -4
- package/dist/demos/pencilkit/demo-strokes.d.ts.map +0 -1
- package/dist/demos/pencilkit/pencilkit-demo.d.ts +0 -15
- package/dist/demos/pencilkit/pencilkit-demo.d.ts.map +0 -1
- package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts +0 -11
- package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts.map +0 -1
- package/dist/demos/sidebar-demo.d.ts +0 -9
- package/dist/demos/sidebar-demo.d.ts.map +0 -1
- package/dist/demos/split-view-demos.d.ts +0 -50
- package/dist/demos/split-view-demos.d.ts.map +0 -1
- package/dist/lib/chat/chat-icon.d.ts +0 -24
- package/dist/lib/chat/chat-icon.d.ts.map +0 -1
- package/dist/lib/chat/chat-shell-context.d.ts +0 -19
- package/dist/lib/chat/chat-shell-context.d.ts.map +0 -1
- package/dist/lib/chat/chat-tokens.d.ts +0 -72
- package/dist/lib/chat/chat-tokens.d.ts.map +0 -1
- package/dist/lib/chat/chat-users.d.ts +0 -18
- package/dist/lib/chat/chat-users.d.ts.map +0 -1
- package/dist/lib/chat/kvib.d.ts +0 -3
- package/dist/lib/chat/kvib.d.ts.map +0 -1
- package/dist/lib/chat/persistent-host.d.ts.map +0 -1
- package/dist/lib/chat/title-ref.d.ts +0 -3
- package/dist/lib/chat/title-ref.d.ts.map +0 -1
- package/dist/lib/haptics.d.ts +0 -27
- package/dist/lib/haptics.d.ts.map +0 -1
- package/dist/lib/icon.stories.d.ts +0 -15
- package/dist/lib/icon.stories.d.ts.map +0 -1
- package/dist/lib/pencilkit/constants.d.ts.map +0 -1
- package/dist/lib/workbench/haptics.d.ts +0 -3
- package/dist/lib/workbench/haptics.d.ts.map +0 -1
- package/dist/lib/workbench/icons.d.ts +0 -29
- package/dist/lib/workbench/icons.d.ts.map +0 -1
- package/dist/lib/workbench/motion.d.ts +0 -83
- package/dist/lib/workbench/motion.d.ts.map +0 -1
- package/dist/lib/workbench/press.d.ts +0 -10
- package/dist/lib/workbench/press.d.ts.map +0 -1
- package/dist/lib/workbench/theme.d.ts.map +0 -1
- package/dist/lib/workbench/util.d.ts +0 -6
- package/dist/lib/workbench/util.d.ts.map +0 -1
- package/dist/stories/frame.d.ts +0 -16
- package/dist/stories/frame.d.ts.map +0 -1
- package/dist/stories/primitive-frame.d.ts +0 -20
- package/dist/stories/primitive-frame.d.ts.map +0 -1
- package/dist/templates/artifact-chat-container.d.ts.map +0 -1
- package/dist/templates/artifact-chat-container.stories.d.ts +0 -24
- package/dist/templates/artifact-chat-container.stories.d.ts.map +0 -1
- package/dist/templates/chat-shell.d.ts +0 -86
- package/dist/templates/chat-shell.d.ts.map +0 -1
- package/dist/templates/chat-shell.stories.d.ts +0 -22
- package/dist/templates/chat-shell.stories.d.ts.map +0 -1
- package/dist/templates/workbench-shell.d.ts +0 -177
- package/dist/templates/workbench-shell.d.ts.map +0 -1
- package/dist/templates/workbench-shell.stories.d.ts +0 -17
- package/dist/templates/workbench-shell.stories.d.ts.map +0 -1
- /package/dist/components/{chat/chat-column.d.ts → chat-column.d.ts} +0 -0
- /package/dist/components/{workbench → composer}/annotator.d.ts +0 -0
- /package/dist/components/{workbench → composer}/composer-files.d.ts +0 -0
- /package/dist/components/{workbench/message-scroller.d.ts → message-scroller.d.ts} +0 -0
- /package/dist/components/{chat/progress-stepper.d.ts → progress-stepper.d.ts} +0 -0
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../lib/utils.js";
|
|
3
|
+
import { Icon as t } from "../lib/icon.js";
|
|
4
|
+
import { useChromeHidden as n } from "../lib/theme.js";
|
|
5
|
+
import { TabDirection as r, useTabPanelDirection as i } from "./tabs.js";
|
|
6
|
+
import { Children as a, createContext as o, isValidElement as s, useContext as c, useLayoutEffect as l, useReducer as u, useRef as d, useState as f } from "react";
|
|
7
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
8
|
+
import { Button as g, SelectionIndicator as _, Tab as v, TabList as y, TabListStateContext as b, TabPanel as x, TabPanels as S, Tabs as C, composeRenderProps as w, createLeafComponent as T } from "react-aria-components";
|
|
9
|
+
import { cva as E } from "class-variance-authority";
|
|
10
|
+
import { createPortal as D } from "react-dom";
|
|
11
|
+
//#region src/components/tab-view.tsx
|
|
12
|
+
var O = o({
|
|
13
|
+
orientation: "horizontal",
|
|
14
|
+
placement: "bottom",
|
|
15
|
+
variant: "bar"
|
|
16
|
+
});
|
|
17
|
+
function k() {
|
|
18
|
+
let e = /* @__PURE__ */ new Set(), t = {
|
|
19
|
+
seen: /* @__PURE__ */ new WeakSet(),
|
|
20
|
+
content: null,
|
|
21
|
+
host: null,
|
|
22
|
+
set(n, r) {
|
|
23
|
+
t.content = n, t.host = r, e.forEach((e) => e());
|
|
24
|
+
},
|
|
25
|
+
subscribe(t) {
|
|
26
|
+
return e.add(t), () => {
|
|
27
|
+
e.delete(t);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
return t;
|
|
32
|
+
}
|
|
33
|
+
var A = o(null);
|
|
34
|
+
function j({ store: e }) {
|
|
35
|
+
let [, t] = u((e) => e + 1, 0);
|
|
36
|
+
return l(() => e.subscribe(t), [e]), e.content && e.host ? D(e.content, e.host) : null;
|
|
37
|
+
}
|
|
38
|
+
var M = (e) => s(e) && (e.type === B || e.type === H), ee = (e) => s(e) && e.type === $;
|
|
39
|
+
function N({ kids: e, store: t }) {
|
|
40
|
+
let n = a.toArray(e), r = n.findIndex(ee), i = e;
|
|
41
|
+
if (r >= 0 && n.slice(r).some(M)) {
|
|
42
|
+
let e = n.filter((e, t) => t > r && M(e)), t = n.filter((e, t) => !(t > r && M(e)));
|
|
43
|
+
t.splice(r, 0, ...e), i = t;
|
|
44
|
+
}
|
|
45
|
+
return /* @__PURE__ */ h(A.Provider, {
|
|
46
|
+
value: t,
|
|
47
|
+
children: [i, /* @__PURE__ */ m(j, { store: t })]
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
var P = () => c(O), F = o(null), I = () => c(F), L = E("flex min-h-0 min-w-0", {
|
|
51
|
+
variants: { placement: {
|
|
52
|
+
top: "flex-col",
|
|
53
|
+
bottom: "flex-col-reverse",
|
|
54
|
+
start: "flex-row",
|
|
55
|
+
end: "flex-row-reverse"
|
|
56
|
+
} },
|
|
57
|
+
defaultVariants: { placement: "bottom" }
|
|
58
|
+
});
|
|
59
|
+
function R({ placement: t, orientation: n, className: i, children: a, ...o }) {
|
|
60
|
+
let s = t ?? (n === "vertical" ? "start" : "bottom"), c = n ?? (s === "start" || s === "end" ? "vertical" : "horizontal"), [l] = f(k);
|
|
61
|
+
return /* @__PURE__ */ m(O.Provider, {
|
|
62
|
+
value: {
|
|
63
|
+
orientation: c,
|
|
64
|
+
placement: s,
|
|
65
|
+
variant: c === "vertical" ? "rail" : "bar"
|
|
66
|
+
},
|
|
67
|
+
children: /* @__PURE__ */ m(C, {
|
|
68
|
+
"data-slot": "tab-view",
|
|
69
|
+
"data-placement": s,
|
|
70
|
+
orientation: c,
|
|
71
|
+
className: w(i, (t) => e(L({ placement: s }), t)),
|
|
72
|
+
...o,
|
|
73
|
+
children: w(a, (e) => /* @__PURE__ */ m(r, { children: /* @__PURE__ */ m(N, {
|
|
74
|
+
kids: e,
|
|
75
|
+
store: l
|
|
76
|
+
}) }))
|
|
77
|
+
})
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
var z = E("box-border", {
|
|
81
|
+
variants: { variant: {
|
|
82
|
+
bar: "absolute inset-x-0 bottom-0 z-120 flex h-[62px] [border-top:1px_solid_var(--border)] bg-bar pb-1 backdrop-blur-[20px] backdrop-saturate-[1.7] transition-transform duration-spring-smooth ease-spring-smooth",
|
|
83
|
+
rail: "relative flex w-[76px] shrink-0 flex-col gap-1 bg-bar py-2 data-[placement=end]:[border-left:1px_solid_var(--border)] data-[placement=start]:[border-right:1px_solid_var(--border)]",
|
|
84
|
+
workspace: "flex w-[52px] shrink-0 flex-col items-center gap-[8px] border-r border-border bg-muted px-0 py-[10px]",
|
|
85
|
+
plain: "flex shrink-0 data-[orientation=vertical]:flex-col"
|
|
86
|
+
} },
|
|
87
|
+
defaultVariants: { variant: "bar" }
|
|
88
|
+
});
|
|
89
|
+
function B({ variant: t, hideOnScroll: r = !0, className: i, style: a, children: o, ...s }) {
|
|
90
|
+
let l = c(O), u = t ?? (l.orientation === "vertical" ? "rail" : "bar"), d = n() && r && u === "bar";
|
|
91
|
+
return /* @__PURE__ */ m(O.Provider, {
|
|
92
|
+
value: {
|
|
93
|
+
...l,
|
|
94
|
+
variant: u
|
|
95
|
+
},
|
|
96
|
+
children: /* @__PURE__ */ m("div", {
|
|
97
|
+
"data-slot": "tab-view-bar",
|
|
98
|
+
...s,
|
|
99
|
+
"data-variant": u,
|
|
100
|
+
"data-orientation": l.orientation,
|
|
101
|
+
"data-placement": l.placement,
|
|
102
|
+
className: e(z({ variant: u }), d && "translate-y-full", i),
|
|
103
|
+
style: a,
|
|
104
|
+
children: o
|
|
105
|
+
})
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
var V = E("outline-none", {
|
|
109
|
+
variants: { variant: {
|
|
110
|
+
bar: "flex flex-1",
|
|
111
|
+
rail: "flex flex-col gap-1 px-1.5",
|
|
112
|
+
workspace: "flex min-h-0 w-full flex-col items-center gap-[8px] overflow-y-auto overscroll-contain -mt-1 -mb-1.5 pt-1 pb-1.5 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
113
|
+
plain: "flex data-[orientation=vertical]:flex-col"
|
|
114
|
+
} },
|
|
115
|
+
defaultVariants: { variant: "plain" }
|
|
116
|
+
});
|
|
117
|
+
function H({ className: t, ...n }) {
|
|
118
|
+
let { variant: r } = c(O), i = c(b), a = c(A);
|
|
119
|
+
return i && a && a.seen.add(i), /* @__PURE__ */ m(y, {
|
|
120
|
+
"data-slot": "tab-view-list",
|
|
121
|
+
className: w(t, (t) => e(V({ variant: r }), t)),
|
|
122
|
+
...n
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
var U = E("relative cursor-pointer outline-none", {
|
|
126
|
+
variants: { variant: {
|
|
127
|
+
bar: "bl-btn flex flex-1 flex-col items-center justify-center gap-[3px] border-0 bg-transparent p-0 text-center leading-[normal] [font-family:inherit] text-tertiary-foreground transition-[color] duration-spring-snappy ease-spring-snappy data-selected:text-primary data-focus-visible:rounded-panel data-focus-visible:ring-2 data-focus-visible:ring-ring/45 data-focus-visible:ring-inset",
|
|
128
|
+
rail: "bl-btn flex flex-col items-center justify-center gap-[3px] rounded-panel px-1 pt-[7px] pb-1.5 text-center leading-[normal] text-tertiary-foreground transition-[color,background-color] duration-spring-snappy ease-spring-snappy data-hovered:bg-secondary/60 data-hovered:text-muted-foreground data-pressed:bg-secondary data-selected:bg-primary/12 data-selected:text-primary data-focus-visible:ring-2 data-focus-visible:ring-ring/45 data-disabled:cursor-default data-disabled:opacity-40",
|
|
129
|
+
workspace: "group flex w-full shrink-0 justify-center data-disabled:cursor-default",
|
|
130
|
+
plain: "data-disabled:cursor-default"
|
|
131
|
+
} },
|
|
132
|
+
defaultVariants: { variant: "plain" }
|
|
133
|
+
});
|
|
134
|
+
function W({ className: t, icon: n, title: r, children: i, ...a }) {
|
|
135
|
+
let { variant: o } = c(O);
|
|
136
|
+
return /* @__PURE__ */ m(v, {
|
|
137
|
+
"data-slot": "tab-view-tab",
|
|
138
|
+
className: w(t, (t) => e(U({ variant: o }), t)),
|
|
139
|
+
...a,
|
|
140
|
+
children: (e) => /* @__PURE__ */ m(F.Provider, {
|
|
141
|
+
value: e,
|
|
142
|
+
children: i == null ? /* @__PURE__ */ m(G, {
|
|
143
|
+
icon: n,
|
|
144
|
+
title: r,
|
|
145
|
+
selected: e.isSelected
|
|
146
|
+
}) : typeof i == "function" ? i(e) : i
|
|
147
|
+
})
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
function G({ icon: e, title: n, selected: r }) {
|
|
151
|
+
let { variant: i } = c(O);
|
|
152
|
+
return i === "rail" ? /* @__PURE__ */ h(p, { children: [e && /* @__PURE__ */ m(t, {
|
|
153
|
+
name: e,
|
|
154
|
+
size: 24,
|
|
155
|
+
sw: r ? 2.1 : 1.8
|
|
156
|
+
}), n != null && /* @__PURE__ */ m("span", {
|
|
157
|
+
className: "text-[10.5px] font-semibold tracking-[.1px]",
|
|
158
|
+
children: n
|
|
159
|
+
})] }) : /* @__PURE__ */ h(p, { children: [e && /* @__PURE__ */ m(t, {
|
|
160
|
+
name: e,
|
|
161
|
+
size: 25,
|
|
162
|
+
sw: r ? 2.1 : 1.8
|
|
163
|
+
}), n != null && /* @__PURE__ */ m("span", {
|
|
164
|
+
className: "text-[10px] font-semibold tracking-[.1px]",
|
|
165
|
+
children: n
|
|
166
|
+
})] });
|
|
167
|
+
}
|
|
168
|
+
var K = E("pointer-events-none absolute", {
|
|
169
|
+
variants: {
|
|
170
|
+
variant: {
|
|
171
|
+
bar: "bg-primary transition-[translate,width,height] duration-spring-smooth ease-spring-smooth motion-reduce:transition-none",
|
|
172
|
+
pill: "start-0 top-1/2 h-0 w-1 -translate-y-1/2 rounded-e-[4px] bg-foreground opacity-0 transition-[height,opacity] duration-spring-snappy ease-spring-snappy data-attention:h-1.5 data-attention:opacity-100 data-hovered:h-3.5 data-hovered:opacity-100 data-selected:h-7 data-selected:opacity-100"
|
|
173
|
+
},
|
|
174
|
+
orientation: {
|
|
175
|
+
horizontal: "",
|
|
176
|
+
vertical: ""
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
compoundVariants: [{
|
|
180
|
+
variant: "bar",
|
|
181
|
+
orientation: "horizontal",
|
|
182
|
+
className: "inset-x-3 bottom-0 h-[2px] rounded-full"
|
|
183
|
+
}, {
|
|
184
|
+
variant: "bar",
|
|
185
|
+
orientation: "vertical",
|
|
186
|
+
className: "start-0 inset-y-2.5 w-[3px] rounded-e-full"
|
|
187
|
+
}],
|
|
188
|
+
defaultVariants: {
|
|
189
|
+
variant: "bar",
|
|
190
|
+
orientation: "horizontal"
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
function q({ variant: t = "bar", attention: n, className: r, style: i }) {
|
|
194
|
+
let { orientation: a, variant: o } = c(O), s = c(F), l = e(K({
|
|
195
|
+
variant: t,
|
|
196
|
+
orientation: a
|
|
197
|
+
}), t === "pill" && o === "workspace" && "duration-(--duration-spring-bouncy) ease-(--ease-spring-bouncy)", r);
|
|
198
|
+
return t === "bar" ? /* @__PURE__ */ m(_, {
|
|
199
|
+
"data-slot": "tab-view-indicator",
|
|
200
|
+
className: l,
|
|
201
|
+
style: i
|
|
202
|
+
}) : /* @__PURE__ */ m("span", {
|
|
203
|
+
"data-slot": "tab-view-indicator",
|
|
204
|
+
"aria-hidden": !0,
|
|
205
|
+
className: l,
|
|
206
|
+
style: i,
|
|
207
|
+
"data-selected": s?.isSelected || void 0,
|
|
208
|
+
"data-hovered": s?.isHovered && !s.isSelected || void 0,
|
|
209
|
+
"data-attention": n && !s?.isSelected && !s?.isHovered || void 0
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
var J = T("separator", (t, n) => {
|
|
213
|
+
let { orientation: r, variant: i } = c(O);
|
|
214
|
+
return /* @__PURE__ */ m("div", {
|
|
215
|
+
ref: n,
|
|
216
|
+
role: "presentation",
|
|
217
|
+
"data-slot": "tab-view-separator",
|
|
218
|
+
"data-orientation": r,
|
|
219
|
+
className: e("shrink-0 self-center bg-border", i === "workspace" ? "my-[-1px] h-[2px] w-[20px] rounded-full" : r === "vertical" ? "h-px w-8" : "h-6 w-px", t.className),
|
|
220
|
+
style: t.style
|
|
221
|
+
});
|
|
222
|
+
});
|
|
223
|
+
function Y(e) {
|
|
224
|
+
return /* @__PURE__ */ m(J, {
|
|
225
|
+
...e,
|
|
226
|
+
isDisabled: !0
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
var X = E("cursor-pointer outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring/45", {
|
|
230
|
+
variants: { variant: {
|
|
231
|
+
bar: "bl-btn flex flex-1 flex-col items-center justify-center gap-[3px] border-0 bg-transparent p-0 leading-[normal] [font-family:inherit] text-tertiary-foreground data-pressed:opacity-60",
|
|
232
|
+
rail: "bl-btn mx-1.5 flex flex-col items-center justify-center gap-[3px] rounded-panel border-0 bg-transparent px-1 pt-[7px] pb-1.5 leading-[normal] [font-family:inherit] text-tertiary-foreground data-hovered:bg-secondary/60 data-pressed:bg-secondary",
|
|
233
|
+
workspace: "grid size-[34px] shrink-0 place-items-center rounded-[17px] border border-dashed border-border bg-transparent text-tertiary-foreground [transition:border-radius_var(--duration-spring-bouncy)_var(--ease-spring-bouncy),color_var(--duration-spring-snappy)_var(--ease-spring-snappy),scale_var(--duration-spring-snappy)_var(--ease-spring-snappy)] data-hovered:rounded-[11px] data-hovered:text-muted-foreground data-pressed:scale-[.94] motion-reduce:transition-none",
|
|
234
|
+
plain: "bl-btn border-0 bg-transparent p-0 [font-family:inherit]"
|
|
235
|
+
} },
|
|
236
|
+
defaultVariants: { variant: "plain" }
|
|
237
|
+
});
|
|
238
|
+
function Z({ className: n, icon: r, title: i, children: a, onPress: o, ...s }) {
|
|
239
|
+
let { variant: l } = c(O);
|
|
240
|
+
return /* @__PURE__ */ m(g, {
|
|
241
|
+
"data-slot": "tab-view-action",
|
|
242
|
+
onPress: o,
|
|
243
|
+
className: w(n, (t) => e(X({ variant: l }), t)),
|
|
244
|
+
...s,
|
|
245
|
+
children: a ?? /* @__PURE__ */ h(p, { children: [r && /* @__PURE__ */ m(t, {
|
|
246
|
+
name: r,
|
|
247
|
+
size: l === "bar" ? 25 : l === "workspace" ? 14 : 24,
|
|
248
|
+
sw: l === "workspace" ? 1.9 : 1.8
|
|
249
|
+
}), i != null && /* @__PURE__ */ m("span", {
|
|
250
|
+
className: e("font-semibold tracking-[.1px]", l === "bar" ? "text-[10px]" : "text-[10.5px]"),
|
|
251
|
+
children: i
|
|
252
|
+
})] })
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
function Q({ className: t, style: n, children: r }) {
|
|
256
|
+
return /* @__PURE__ */ m("div", {
|
|
257
|
+
"data-slot": "tab-view-header",
|
|
258
|
+
className: e("flex shrink-0 items-center justify-center", t),
|
|
259
|
+
style: n,
|
|
260
|
+
children: r
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
function te({ className: t, style: n, children: r }) {
|
|
264
|
+
let { orientation: i, variant: a } = c(O);
|
|
265
|
+
return /* @__PURE__ */ m("div", {
|
|
266
|
+
"data-slot": "tab-view-footer",
|
|
267
|
+
className: e("flex shrink-0 items-center justify-center", i === "vertical" ? e("flex-col", a === "workspace" ? "gap-[8px]" : "mt-auto") : "ms-auto", t),
|
|
268
|
+
style: n,
|
|
269
|
+
children: r
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
function $({ className: t, ...n }) {
|
|
273
|
+
let r = c(A), i = c(b), a = d(null);
|
|
274
|
+
!a.current && i && (a.current = r && !r.seen.has(i) ? "outlet" : "direct");
|
|
275
|
+
let o = a.current === "outlet", [s, u] = f(null), p = /* @__PURE__ */ m(S, {
|
|
276
|
+
"data-slot": "tab-view-panels",
|
|
277
|
+
className: e("relative min-h-0 min-w-0 flex-1", t),
|
|
278
|
+
...n
|
|
279
|
+
});
|
|
280
|
+
return l(() => {
|
|
281
|
+
o && r?.set(p, s);
|
|
282
|
+
}), l(() => () => {
|
|
283
|
+
a.current === "outlet" && r?.set(null, null);
|
|
284
|
+
}, [r]), o ? /* @__PURE__ */ m("div", {
|
|
285
|
+
ref: u,
|
|
286
|
+
"data-slot": "tab-view-panels-placeholder",
|
|
287
|
+
className: "contents"
|
|
288
|
+
}) : /* @__PURE__ */ m(S, {
|
|
289
|
+
"data-slot": "tab-view-panels",
|
|
290
|
+
className: e("relative min-h-0 min-w-0 flex-1", t),
|
|
291
|
+
...n
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
function ne({ className: t, style: n, ...r }) {
|
|
295
|
+
let { orientation: a } = c(O), o = i(a);
|
|
296
|
+
return /* @__PURE__ */ m(x, {
|
|
297
|
+
"data-slot": "tab-view-panel",
|
|
298
|
+
className: w(t, (t) => e("absolute inset-0 overflow-auto outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring/45 data-focus-visible:ring-inset data-inert:not-data-exiting:hidden", "data-entering:animate-bl-panel-in data-exiting:pointer-events-none data-exiting:animate-bl-panel-out motion-reduce:data-entering:animate-bl-fade-in motion-reduce:data-exiting:animate-bl-fade-out", t)),
|
|
299
|
+
style: w(n, (e) => ({
|
|
300
|
+
...o,
|
|
301
|
+
...e
|
|
302
|
+
})),
|
|
303
|
+
...r
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
//#endregion
|
|
307
|
+
export { R as TabView, Z as TabViewAction, B as TabViewBar, te as TabViewFooter, Q as TabViewHeader, q as TabViewIndicator, H as TabViewList, ne as TabViewPanel, $ as TabViewPanels, Y as TabViewSeparator, W as TabViewTab, X as tabViewActionVariants, z as tabViewBarVariants, K as tabViewIndicatorVariants, V as tabViewListVariants, U as tabViewTabVariants, L as tabViewVariants, P as useTabView, I as useTabViewTab };
|
|
@@ -17,7 +17,7 @@ type TabsVariant = VariantProps<typeof tabsListVariants>['variant'];
|
|
|
17
17
|
export interface TabsProps extends AriaTabsProps {
|
|
18
18
|
variant?: TabsVariant;
|
|
19
19
|
}
|
|
20
|
-
export declare function Tabs({ className, variant,
|
|
20
|
+
export declare function Tabs({ className, variant, children, ...props }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
export declare function TabList<T extends object>({ className, ...props }: AriaTabListProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
export declare function Tab({ className, children, ...props }: AriaTabProps): import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
/** Panels arrive from the side of the newly selected tab (a tab to the left → content comes in from the left). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../src/components/tabs.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../src/components/tabs.tsx"],"names":[],"mappings":"AACA,OAAO,EAA6B,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACtF,OAAO,EACW,KAAK,QAAQ,IAAI,YAAY,EACrB,KAAK,YAAY,IAAI,gBAAgB,EACnC,KAAK,aAAa,IAAI,iBAAiB,EAE/C,KAAK,SAAS,IAAI,aAAa,EAElD,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAOlE,eAAO,MAAM,gBAAgB;;8EAQ3B,CAAC;AAEH,eAAO,MAAM,WAAW;;8EAavB,CAAC;AAKF,6GAA6G;AAC7G,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,2CAKlE;AAED,qFAAqF;AACrF,wBAAgB,oBAAoB,CAAC,WAAW,GAAE,YAAY,GAAG,UAAyB,GAAG,aAAa,CAGzG;AAED,KAAK,WAAW,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC;AAGpE,MAAM,WAAW,SAAU,SAAQ,aAAa;IAC9C,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;AAED,wBAAgB,IAAI,CAAC,EAAE,SAAS,EAAE,OAAqB,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CAYvF;AAED,wBAAgB,OAAO,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,CAAC,CAAC,CAAC,2CASrF;AAMD,wBAAgB,GAAG,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,2CAgBlE;AAED,kHAAkH;AAClH,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAWzE"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../lib/utils.js";
|
|
3
|
+
import { useDirection as t } from "../lib/motion.js";
|
|
4
|
+
import { segmentIndicator as n } from "./segmented.js";
|
|
5
|
+
import { createContext as r, useContext as i } from "react";
|
|
6
|
+
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
|
+
import { SelectionIndicator as c, Tab as l, TabList as u, TabListStateContext as d, TabPanel as f, Tabs as p, composeRenderProps as m } from "react-aria-components";
|
|
8
|
+
import { cva as h } from "class-variance-authority";
|
|
9
|
+
//#region src/components/tabs.tsx
|
|
10
|
+
var g = h("isolate flex", {
|
|
11
|
+
variants: { variant: {
|
|
12
|
+
segmented: "gap-0.5 rounded-[9px] bg-secondary p-0.5",
|
|
13
|
+
underline: "gap-5 shadow-hairline-b"
|
|
14
|
+
} },
|
|
15
|
+
defaultVariants: { variant: "segmented" }
|
|
16
|
+
}), _ = h("bl-btn relative box-border flex cursor-pointer items-center justify-center gap-1.5 font-semibold whitespace-nowrap outline-none transition-[color] duration-spring-snappy ease-spring-snappy data-disabled:cursor-default data-disabled:opacity-40", {
|
|
17
|
+
variants: { variant: {
|
|
18
|
+
segmented: "flex-1 rounded-[7px] px-3 py-[5px] text-footnote text-foreground data-focus-visible:ring-[3px] data-focus-visible:ring-ring/45",
|
|
19
|
+
underline: "-mb-px h-10 px-0.5 text-subhead text-muted-foreground data-hovered:text-foreground data-selected:text-primary data-focus-visible:rounded-md data-focus-visible:ring-[3px] data-focus-visible:ring-ring/45"
|
|
20
|
+
} },
|
|
21
|
+
defaultVariants: { variant: "segmented" }
|
|
22
|
+
}), v = r(0);
|
|
23
|
+
function y({ children: e }) {
|
|
24
|
+
let n = i(d), r = n ? [...n.collection.getKeys()] : [], a = t(n?.selectedKey == null ? -1 : r.indexOf(n.selectedKey));
|
|
25
|
+
return /* @__PURE__ */ o(v.Provider, {
|
|
26
|
+
value: a,
|
|
27
|
+
children: e
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function b(e = "horizontal") {
|
|
31
|
+
let t = i(v);
|
|
32
|
+
return e === "vertical" ? {
|
|
33
|
+
"--bl-dx": 0,
|
|
34
|
+
"--bl-dy": t
|
|
35
|
+
} : {
|
|
36
|
+
"--bl-dx": t,
|
|
37
|
+
"--bl-dy": 0
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
var x = r("segmented");
|
|
41
|
+
function S({ className: t, variant: n = "segmented", children: r, ...i }) {
|
|
42
|
+
return /* @__PURE__ */ o(x.Provider, {
|
|
43
|
+
value: n,
|
|
44
|
+
children: /* @__PURE__ */ o(p, {
|
|
45
|
+
"data-slot": "tabs",
|
|
46
|
+
className: m(t, (t) => e("flex flex-col gap-4 data-[orientation=vertical]:flex-row", t)),
|
|
47
|
+
...i,
|
|
48
|
+
children: m(r, (e) => /* @__PURE__ */ o(y, { children: e }))
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function C({ className: t, ...n }) {
|
|
53
|
+
let r = i(x);
|
|
54
|
+
return /* @__PURE__ */ o(u, {
|
|
55
|
+
"data-slot": "tab-list",
|
|
56
|
+
className: m(t, (t) => e(g({ variant: r }), t)),
|
|
57
|
+
...n
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
var w = "absolute bottom-0 left-0 -z-1 h-[2px] w-full bg-primary transition-[translate,width] duration-spring-smooth ease-spring-smooth motion-reduce:transition-none";
|
|
61
|
+
function T({ className: t, children: r, ...u }) {
|
|
62
|
+
let d = i(x);
|
|
63
|
+
return /* @__PURE__ */ o(l, {
|
|
64
|
+
"data-slot": "tab",
|
|
65
|
+
className: m(t, (t) => e(_({ variant: d }), t)),
|
|
66
|
+
...u,
|
|
67
|
+
children: m(r, (t) => /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o(c, {
|
|
68
|
+
"data-slot": "tab-indicator",
|
|
69
|
+
className: d === "underline" ? w : e(n, "bg-card")
|
|
70
|
+
}), t] }))
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function E({ className: t, style: n, ...r }) {
|
|
74
|
+
let i = b();
|
|
75
|
+
return /* @__PURE__ */ o(f, {
|
|
76
|
+
"data-slot": "tab-panel",
|
|
77
|
+
className: m(t, (t) => e("rounded-card outline-none data-focus-visible:ring-[3px] data-focus-visible:ring-ring/45 data-entering:animate-bl-panel-in motion-reduce:data-entering:animate-bl-fade-in", t)),
|
|
78
|
+
style: m(n, (e) => ({
|
|
79
|
+
...i,
|
|
80
|
+
...e
|
|
81
|
+
})),
|
|
82
|
+
...r
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
export { T as Tab, y as TabDirection, C as TabList, E as TabPanel, S as Tabs, _ as tabVariants, g as tabsListVariants, b as useTabPanelDirection };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../src/components/text-field.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../src/components/text-field.tsx"],"names":[],"mappings":"AACA,OAAO,EACyB,KAAK,eAAe,IAAI,mBAAmB,EACnE,KAAK,SAAS,EACQ,KAAK,cAAc,IAAI,kBAAkB,EAEtE,MAAM,uBAAuB,CAAC;AAU/B,MAAM,WAAW,cAAe,SAAQ,kBAAkB;CAAG;AAE7D,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,2CAQhE;AAED,2FAA2F;AAC3F,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,2CAElE;AAED,mEAAmE;AACnE,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,2CAQtE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../lib/utils.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import { FieldError as n, Text as r, TextField as i, composeRenderProps as a } from "react-aria-components";
|
|
5
|
+
//#region src/components/text-field.tsx
|
|
6
|
+
function o({ className: n, ...r }) {
|
|
7
|
+
return /* @__PURE__ */ t(i, {
|
|
8
|
+
"data-slot": "text-field",
|
|
9
|
+
className: a(n, (t) => e("group flex flex-col gap-1.5", t)),
|
|
10
|
+
...r
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function s({ className: n, ...i }) {
|
|
14
|
+
return /* @__PURE__ */ t(r, {
|
|
15
|
+
"data-slot": "field-description",
|
|
16
|
+
slot: "description",
|
|
17
|
+
className: e("px-1 text-footnote leading-[18px] text-muted-foreground", n),
|
|
18
|
+
...i
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function c({ className: r, ...i }) {
|
|
22
|
+
return /* @__PURE__ */ t(n, {
|
|
23
|
+
"data-slot": "field-error",
|
|
24
|
+
className: a(r, (t) => e("px-1 text-footnote leading-[18px] text-destructive", t)),
|
|
25
|
+
...i
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { s as FieldDescription, c as FieldError, o as TextField };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-morph.d.ts","sourceRoot":"","sources":["../../src/components/text-morph.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-morph.d.ts","sourceRoot":"","sources":["../../src/components/text-morph.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgD,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAiDzF,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,cAAc,2CA4EvE"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../lib/utils.js";
|
|
3
|
+
import { springs as t } from "../lib/motion.js";
|
|
4
|
+
import { AnimatePresence as n, animate as r, motion as i, useMotionValue as a, useReducedMotion as o } from "framer-motion";
|
|
5
|
+
import { useEffect as s, useLayoutEffect as c, useRef as l, useState as u } from "react";
|
|
6
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/text-morph.tsx
|
|
8
|
+
function p(e) {
|
|
9
|
+
let t = {};
|
|
10
|
+
return Array.from(e).map((e) => (t[e] = (t[e] ?? -1) + 1, {
|
|
11
|
+
key: `${e}\u0000${t[e]}`,
|
|
12
|
+
ch: e
|
|
13
|
+
}));
|
|
14
|
+
}
|
|
15
|
+
function m(e, t) {
|
|
16
|
+
let n = e?.firstChild;
|
|
17
|
+
if (!e || !n || n.nodeType !== Node.TEXT_NODE) return null;
|
|
18
|
+
let r = document.createRange();
|
|
19
|
+
r.selectNodeContents(n);
|
|
20
|
+
let i = r.getBoundingClientRect(), a = e.offsetWidth && i.width / e.offsetWidth || 1, o = p(t), s = [], c = 0;
|
|
21
|
+
for (let e of o) r.setStart(n, c), r.setEnd(n, c + e.ch.length), s.push((r.getBoundingClientRect().left - i.left) / a), c += e.ch.length;
|
|
22
|
+
return {
|
|
23
|
+
text: t,
|
|
24
|
+
glyphs: o,
|
|
25
|
+
xs: s,
|
|
26
|
+
w: i.width / a
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
var h = {
|
|
30
|
+
duration: .3,
|
|
31
|
+
ease: [
|
|
32
|
+
.22,
|
|
33
|
+
1,
|
|
34
|
+
.36,
|
|
35
|
+
1
|
|
36
|
+
],
|
|
37
|
+
delay: .05
|
|
38
|
+
}, g = {
|
|
39
|
+
duration: .18,
|
|
40
|
+
ease: [
|
|
41
|
+
.4,
|
|
42
|
+
0,
|
|
43
|
+
1,
|
|
44
|
+
1
|
|
45
|
+
]
|
|
46
|
+
};
|
|
47
|
+
function _({ children: p, className: _, style: v }) {
|
|
48
|
+
let y = String(p ?? ""), b = o(), x = l(null), S = l(null), [C, w] = u(null), T = a("auto"), E = l(void 0);
|
|
49
|
+
c(() => {
|
|
50
|
+
let e = m(x.current, y), n = S.current;
|
|
51
|
+
S.current = e, !(!e || !n || n.text === y || b || /\n/.test(y + n.text)) && (C ?? T.set(n.w), r(T, e.w, t.snappy), w({
|
|
52
|
+
from: n,
|
|
53
|
+
to: e
|
|
54
|
+
}), clearTimeout(E.current), E.current = setTimeout(() => {
|
|
55
|
+
w(null), T.set("auto");
|
|
56
|
+
}, 700));
|
|
57
|
+
}, [y]), s(() => {
|
|
58
|
+
let e = !0;
|
|
59
|
+
return document.fonts?.ready.then(() => {
|
|
60
|
+
e && !C && (S.current = m(x.current, y));
|
|
61
|
+
}), () => {
|
|
62
|
+
e = !1;
|
|
63
|
+
};
|
|
64
|
+
}, [y, C]), s(() => () => clearTimeout(E.current), []);
|
|
65
|
+
let D = new Map(C?.from.glyphs.map((e, t) => [e.key, C.from.xs[t]]) ?? []), O = new Set(C?.to.glyphs.map((e) => e.key) ?? []);
|
|
66
|
+
return /* @__PURE__ */ f(i.span, {
|
|
67
|
+
"data-slot": "text-morph",
|
|
68
|
+
"data-morphing": C ? "" : void 0,
|
|
69
|
+
className: e(C ? "relative inline-block text-start whitespace-pre" : "contents", _),
|
|
70
|
+
style: C ? {
|
|
71
|
+
...v,
|
|
72
|
+
width: T
|
|
73
|
+
} : v,
|
|
74
|
+
children: [/* @__PURE__ */ d("span", {
|
|
75
|
+
ref: x,
|
|
76
|
+
style: C ? { visibility: "hidden" } : void 0,
|
|
77
|
+
children: y
|
|
78
|
+
}), C ? /* @__PURE__ */ d("span", {
|
|
79
|
+
"aria-hidden": "true",
|
|
80
|
+
className: "pointer-events-none absolute inset-0",
|
|
81
|
+
children: /* @__PURE__ */ f(n, { children: [C.to.glyphs.map((e, n) => {
|
|
82
|
+
let r = D.get(e.key), a = C.to.xs[n];
|
|
83
|
+
return /* @__PURE__ */ d(i.span, {
|
|
84
|
+
className: "absolute top-0 left-0 whitespace-pre",
|
|
85
|
+
initial: r == null ? {
|
|
86
|
+
x: a,
|
|
87
|
+
opacity: 0,
|
|
88
|
+
scale: .7,
|
|
89
|
+
filter: "blur(4px)"
|
|
90
|
+
} : {
|
|
91
|
+
x: r,
|
|
92
|
+
opacity: 1
|
|
93
|
+
},
|
|
94
|
+
animate: {
|
|
95
|
+
x: a,
|
|
96
|
+
opacity: 1,
|
|
97
|
+
scale: 1,
|
|
98
|
+
filter: "blur(0px)"
|
|
99
|
+
},
|
|
100
|
+
exit: {
|
|
101
|
+
opacity: 0,
|
|
102
|
+
scale: .7,
|
|
103
|
+
filter: "blur(4px)",
|
|
104
|
+
transition: g
|
|
105
|
+
},
|
|
106
|
+
transition: {
|
|
107
|
+
x: t.snappy,
|
|
108
|
+
default: h
|
|
109
|
+
},
|
|
110
|
+
children: e.ch
|
|
111
|
+
}, e.key);
|
|
112
|
+
}), C.from.glyphs.map((e, t) => O.has(e.key) ? null : /* @__PURE__ */ d(i.span, {
|
|
113
|
+
className: "absolute top-0 left-0 whitespace-pre",
|
|
114
|
+
initial: {
|
|
115
|
+
x: C.from.xs[t],
|
|
116
|
+
opacity: 1
|
|
117
|
+
},
|
|
118
|
+
animate: {
|
|
119
|
+
opacity: 0,
|
|
120
|
+
scale: .7,
|
|
121
|
+
filter: "blur(4px)"
|
|
122
|
+
},
|
|
123
|
+
exit: { opacity: 0 },
|
|
124
|
+
transition: g,
|
|
125
|
+
children: e.ch
|
|
126
|
+
}, e.key))] })
|
|
127
|
+
}) : null]
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
//#endregion
|
|
131
|
+
export { _ as TextMorph };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../src/components/textarea.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../src/components/textarea.tsx"],"names":[],"mappings":"AACA,OAAO,EAA4B,KAAK,aAAa,IAAI,iBAAiB,EAAsB,MAAM,uBAAuB,CAAC;AAC9H,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,eAAO,MAAM,gBAAgB;;8EAkB5B,CAAC;AAEF,MAAM,WAAW,aAAc,SAAQ,iBAAiB,EAAE,YAAY,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAElG,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,2CAQpE"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../lib/utils.js";
|
|
3
|
+
import { selectableText as t } from "../lib/primitives.js";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
import { TextArea as r, composeRenderProps as i } from "react-aria-components";
|
|
6
|
+
import { cva as a } from "class-variance-authority";
|
|
7
|
+
//#region src/components/textarea.tsx
|
|
8
|
+
var o = a([
|
|
9
|
+
"box-border block w-full min-w-0 resize-none rounded-ctl border-0 bg-input px-3 py-2.5 [font-family:inherit] text-body leading-[22px] text-foreground outline-none",
|
|
10
|
+
"transition-[box-shadow,background-color] duration-spring-snappy ease-spring-snappy placeholder:text-tertiary-foreground",
|
|
11
|
+
"data-focused:bg-transparent data-focused:shadow-[inset_0_0_0_1.5px_var(--primary)]",
|
|
12
|
+
"data-invalid:shadow-[inset_0_0_0_1.5px_var(--destructive)] data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
13
|
+
t
|
|
14
|
+
], {
|
|
15
|
+
variants: { size: {
|
|
16
|
+
default: "min-h-24",
|
|
17
|
+
sm: "min-h-16 text-subhead leading-[20px]",
|
|
18
|
+
lg: "min-h-36"
|
|
19
|
+
} },
|
|
20
|
+
defaultVariants: { size: "default" }
|
|
21
|
+
});
|
|
22
|
+
function s({ className: t, size: a, ...s }) {
|
|
23
|
+
return /* @__PURE__ */ n(r, {
|
|
24
|
+
"data-slot": "textarea",
|
|
25
|
+
className: i(t, (t) => e(o({ size: a }), t)),
|
|
26
|
+
...s
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { s as Textarea, o as textareaVariants };
|
|
@@ -25,8 +25,6 @@ export interface ToastOptions {
|
|
|
25
25
|
/** Milliseconds before it closes (default 1600 for a HUD, 5000 for a banner; 0 = until closed). */
|
|
26
26
|
timeout?: number;
|
|
27
27
|
onClose?: () => void;
|
|
28
|
-
/** Haptic on show: `success` / `warning` / `error` notification, or none (default: from the tone). */
|
|
29
|
-
haptic?: 'success' | 'warning' | 'error' | 'none';
|
|
30
28
|
}
|
|
31
29
|
interface Entry {
|
|
32
30
|
data: ToastData & {
|
|
@@ -100,5 +98,13 @@ export interface ToasterProps {
|
|
|
100
98
|
}
|
|
101
99
|
/** The toast region. Mount once per queue. Children (optional) get `useToast()` bound to this queue. */
|
|
102
100
|
export declare function Toaster({ queue, placement, inline, offset, className, style, children, ...props }: ToasterProps): import("react/jsx-runtime").JSX.Element;
|
|
101
|
+
/** A toast's surface: the dark HUD pill (a fixed material, the same in light and dark, as on iOS) or the banner card. */
|
|
102
|
+
export declare const toastVariants: (props?: ({
|
|
103
|
+
variant?: "banner" | "hud" | null | undefined;
|
|
104
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
105
|
+
/** The icon's color per tone. */
|
|
106
|
+
export declare const toastIconVariants: (props?: ({
|
|
107
|
+
tone?: "destructive" | "success" | "warning" | "default" | null | undefined;
|
|
108
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
103
109
|
export {};
|
|
104
110
|
//# sourceMappingURL=toast.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../src/components/toast.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../src/components/toast.tsx"],"names":[],"mappings":"AACA,OAAO,EACyE,KAAK,aAAa,EAAE,KAAK,SAAS,EACjH,MAAM,OAAO,CAAC;AAGf,OAAO,EAAwB,mBAAmB,IAAI,cAAc,EAAqC,MAAM,uBAAuB,CAAC;AA0BvI,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,QAAQ,CAAC;AAC5C,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,CAAC;AAE1E,MAAM,WAAW,SAAS;IACxB,iGAAiG;IACjG,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,yEAAyE;IACzE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,oEAAoE;IACpE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kGAAkG;IAClG,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,OAAO,CAAA;KAAE,CAAC;IAC3D,qDAAqD;IACrD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,YAAY;IAC3B,mGAAmG;IACnG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,UAAU,KAAK;IAAG,IAAI,EAAE,SAAS,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE;AAKjE,0GAA0G;AAC1G,qBAAa,UAAU;IACrB,+CAA+C;IAC/C,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;IACrC,OAAO,CAAC,SAAS,CAAyB;gBAC9B,OAAO,GAAE;QAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;KAAO;IAIvD,OAAO,CAAC,IAAI;IAIZ,OAAO,CAAC,IAAI;IAEZ,yFAAyF;IACzF,SAAS,CAAC,EAAE,EAAE,MAAM,IAAI;IAKxB,iFAAiF;IACjF,IAAI,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,GAAE,YAAiB,GAAG,MAAM;IAmB1D,mFAAmF;IACnF,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,OAAO,GAAE,YAAiB;IAMxE,6CAA6C;IAC7C,OAAO,CAAC,EAAE,CAAC,EAAE,MAAM;CAKpB;AAED,wFAAwF;AACxF,eAAO,MAAM,iBAAiB,YAAmB,CAAC;AAElD,wBAAgB,gBAAgB,CAAC,OAAO,CAAC,EAAE;IAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,cAEvE;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG,YAAY,GAAG,MAAM,CAAC;IAC3E,gCAAgC;IAChC,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC,GAAG,YAAY,KAAK,MAAM,CAAC;IAC9F,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,MAAM,CAAC,GAAG,YAAY,KAAK,MAAM,CAAC;IAC/F,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,MAAM,CAAC,GAAG,YAAY,KAAK,MAAM,CAAC;IAC/F,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,MAAM,CAAC,GAAG,YAAY,KAAK,MAAM,CAAC;IAC7F,kDAAkD;IAClD,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,SAAS,CAAC,GAAG,YAAY,KAAK,MAAM,CAAC;IAClG,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,EAAE,YAAY,KAAK,IAAI,CAAC;IAChF,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,KAAK,EAAE,UAAU,CAAC;CACnB;AAOD,qCAAqC;AACrC,wBAAgB,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,QAAQ,CAepD;AAED,yGAAyG;AACzG,eAAO,MAAM,KAAK,EAAE,QAAsC,CAAC;AAI3D,yFAAyF;AACzF,wBAAgB,QAAQ,IAAI,QAAQ,CAKnC;AAED,kGAAkG;AAClG,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,2CAE7F;AA0BD,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,YAAY,CAAC;AAEtF,MAAM,WAAW,YAAY;IAC3B,qDAAqD;IACrD,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,oFAAoF;IACpF,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B;kGAC8F;IAC9F,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAUD,wGAAwG;AACxG,wBAAgB,OAAO,CAAC,EAAE,KAAyB,EAAE,SAAoB,EAAE,MAAM,EAAE,MAAW,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,2CAkBnJ;AA8BD,yHAAyH;AACzH,eAAO,MAAM,aAAa;;8EAWzB,CAAC;AAEF,iCAAiC;AACjC,eAAO,MAAM,iBAAiB;;8EAK5B,CAAC"}
|