@brett_lamy/ui 2.0.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 +4 -4
- 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 +12 -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.map +1 -1
- 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} +1 -1
- 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 +3 -3
- 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} +2 -2
- package/dist/components/conversation.d.ts.map +1 -0
- package/dist/components/conversation.js +357 -0
- 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.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} +8 -4
- 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} +5 -5
- 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/{lib/workbench/icons.d.ts → components/icon-button.d.ts} +5 -5
- 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.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.map +1 -1
- package/dist/components/morph.js +89 -0
- package/dist/components/navigation-stack.d.ts +14 -0
- 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/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 +2 -2
- 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.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 +1 -1
- 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 +10 -1
- 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 +1 -1
- package/dist/components/slider.d.ts.map +1 -1
- package/dist/components/slider.js +98 -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.map +1 -1
- package/dist/components/split-view.js +1060 -0
- 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 +1 -1
- 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 +0 -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} +2 -2
- 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 +24 -47
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +91 -20350
- package/dist/lib/container.d.ts.map +1 -1
- package/dist/lib/container.js +49 -0
- package/dist/lib/icon-shapes/chat.js +13 -0
- package/dist/lib/icon-shapes/pencilkit.js +20 -0
- package/dist/lib/icon-shapes/workbench.js +47 -0
- package/dist/lib/icon.d.ts +1 -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.js +8 -0
- package/dist/lib/qr.js +552 -0
- package/dist/lib/row-label.d.ts.map +1 -1
- package/dist/lib/row-label.js +10 -0
- package/dist/lib/sheet-drag.d.ts +1 -1
- 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 +33 -8
- 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 +0 -60
- package/package.json +4 -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 -11
- 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/chat-column.d.ts.map +0 -1
- package/dist/components/chat/chat-column.stories.d.ts +0 -9
- package/dist/components/chat/chat-column.stories.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/progress-stepper.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/command-menu.stories.d.ts +0 -17
- package/dist/components/command-menu.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 -24
- 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/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 -58
- 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 -37
- 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.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 -51
- 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/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 -108
- 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 -17
- 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 -6
- 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-shell-context.d.ts +0 -20
- package/dist/lib/chat/chat-shell-context.d.ts.map +0 -1
- package/dist/lib/chat/persistent-host.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.map +0 -1
- package/dist/lib/workbench/motion.d.ts +0 -19
- 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 -8
- 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 -87
- package/dist/templates/chat-shell.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/{lib → components}/pencilkit/constants.d.ts +0 -0
- /package/dist/components/{chat/progress-stepper.d.ts → progress-stepper.d.ts} +0 -0
- /package/dist/components/{workbench/snap-sheet.d.ts → snap-sheet.d.ts} +0 -0
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../lib/utils.js";
|
|
3
|
+
import { fades as t, springs as n } from "../lib/motion.js";
|
|
4
|
+
import { TextMorph as r } from "./text-morph.js";
|
|
5
|
+
import { Icon as i } from "../lib/icon.js";
|
|
6
|
+
import { AnimatePresence as a, motion as o, useReducedMotion as s } from "framer-motion";
|
|
7
|
+
import { createContext as c, useContext as l, useEffect as u, useRef as d, useState as f, useSyncExternalStore as p } from "react";
|
|
8
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
9
|
+
import { Button as g, UNSTABLE_ToastQueue as _ } from "react-aria-components";
|
|
10
|
+
import { cva as v } from "class-variance-authority";
|
|
11
|
+
import { createPortal as y } from "react-dom";
|
|
12
|
+
import { useToast as b, useToastRegion as x } from "react-aria";
|
|
13
|
+
//#region src/components/toast.tsx
|
|
14
|
+
var S = {
|
|
15
|
+
hud: 1600,
|
|
16
|
+
banner: 5e3
|
|
17
|
+
}, C = 0, w = class {
|
|
18
|
+
aria;
|
|
19
|
+
listeners = /* @__PURE__ */ new Set();
|
|
20
|
+
constructor(e = {}) {
|
|
21
|
+
this.aria = new _({ maxVisibleToasts: e.maxVisibleToasts ?? 4 });
|
|
22
|
+
}
|
|
23
|
+
find(e) {
|
|
24
|
+
return this.aria.visibleToasts.find((t) => t.content.data.id === e);
|
|
25
|
+
}
|
|
26
|
+
emit() {
|
|
27
|
+
this.listeners.forEach((e) => e());
|
|
28
|
+
}
|
|
29
|
+
subscribe(e) {
|
|
30
|
+
return this.listeners.add(e), () => {
|
|
31
|
+
this.listeners.delete(e);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
show(e, t = {}) {
|
|
35
|
+
let n = e.variant ?? "banner", r = e.id ?? (n === "hud" ? this.aria.visibleToasts.find((e) => e.content.data.variant === "hud")?.content.data.id : void 0) ?? `t${++C}`, i = {
|
|
36
|
+
...e,
|
|
37
|
+
variant: n,
|
|
38
|
+
id: r
|
|
39
|
+
}, a = i.loading ? 0 : t.timeout ?? S[n], o = this.find(r);
|
|
40
|
+
return o ? (o.content = {
|
|
41
|
+
data: i,
|
|
42
|
+
rev: o.content.rev + 1
|
|
43
|
+
}, o.timeout = a || void 0, o.timer && a ? o.timer.reset(a) : o.timer && !a && o.timer.pause(), this.emit(), r) : (this.aria.add({
|
|
44
|
+
data: i,
|
|
45
|
+
rev: 0
|
|
46
|
+
}, {
|
|
47
|
+
timeout: a || void 0,
|
|
48
|
+
onClose: t.onClose
|
|
49
|
+
}), r);
|
|
50
|
+
}
|
|
51
|
+
update(e, t, n = {}) {
|
|
52
|
+
let r = this.find(e);
|
|
53
|
+
r && this.show({
|
|
54
|
+
...r.content.data,
|
|
55
|
+
loading: !1,
|
|
56
|
+
...t,
|
|
57
|
+
id: e
|
|
58
|
+
}, {
|
|
59
|
+
...n,
|
|
60
|
+
onClose: r.onClose
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
dismiss(e) {
|
|
64
|
+
if (e == null) {
|
|
65
|
+
this.aria.clear();
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
let t = this.find(e);
|
|
69
|
+
t && this.aria.close(t.key);
|
|
70
|
+
}
|
|
71
|
+
}, T = new w();
|
|
72
|
+
function E(e) {
|
|
73
|
+
return new w(e);
|
|
74
|
+
}
|
|
75
|
+
function D(e) {
|
|
76
|
+
let { timeout: t, onClose: n, ...r } = e ?? {};
|
|
77
|
+
return [r, {
|
|
78
|
+
timeout: t,
|
|
79
|
+
onClose: n
|
|
80
|
+
}];
|
|
81
|
+
}
|
|
82
|
+
function O(e) {
|
|
83
|
+
let t = (t) => (n, r) => {
|
|
84
|
+
let [i, a] = D(r);
|
|
85
|
+
return e.show({
|
|
86
|
+
...t,
|
|
87
|
+
...i,
|
|
88
|
+
title: n
|
|
89
|
+
}, a);
|
|
90
|
+
}, n = t({});
|
|
91
|
+
return n.hud = t({ variant: "hud" }), n.success = t({ tone: "success" }), n.warning = t({ tone: "warning" }), n.error = t({ tone: "destructive" }), n.loading = t({ loading: !0 }), n.update = (t, n, r) => e.update(t, n, r), n.dismiss = (t) => e.dismiss(t), n.queue = e, n;
|
|
92
|
+
}
|
|
93
|
+
var k = O(T), A = c(null);
|
|
94
|
+
function j() {
|
|
95
|
+
let e = l(A) ?? T, t = d(null);
|
|
96
|
+
return (!t.current || t.current.q !== e) && (t.current = {
|
|
97
|
+
q: e,
|
|
98
|
+
api: O(e)
|
|
99
|
+
}), t.current.api;
|
|
100
|
+
}
|
|
101
|
+
function M({ queue: e, children: t }) {
|
|
102
|
+
return /* @__PURE__ */ m(A.Provider, {
|
|
103
|
+
value: e,
|
|
104
|
+
children: t
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
function N(e) {
|
|
108
|
+
let t = e.aria, n = p((e) => t.subscribe(e), () => t.visibleToasts, () => t.visibleToasts);
|
|
109
|
+
return p((t) => e.subscribe(t), () => n.map((e) => e.content.rev).join(","), () => ""), {
|
|
110
|
+
visibleToasts: n,
|
|
111
|
+
add: (e, n) => t.add(e, n),
|
|
112
|
+
close: (e) => t.close(e),
|
|
113
|
+
pauseAll: () => t.pauseAll(),
|
|
114
|
+
resumeAll: () => t.resumeAll()
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
var P = {
|
|
118
|
+
top: "top-(--bl-toast-offset) left-1/2 -translate-x-1/2 items-center flex-col",
|
|
119
|
+
bottom: "bottom-(--bl-toast-offset) left-1/2 -translate-x-1/2 items-center flex-col-reverse",
|
|
120
|
+
center: "top-1/2 left-1/2 -translate-1/2 items-center flex-col",
|
|
121
|
+
"top-end": "top-(--bl-toast-offset) right-(--bl-toast-offset) items-end flex-col",
|
|
122
|
+
"bottom-end": "bottom-(--bl-toast-offset) right-(--bl-toast-offset) items-end flex-col-reverse"
|
|
123
|
+
};
|
|
124
|
+
function F({ queue: e = T, placement: t = "bottom", inline: n, offset: r = 24, className: i, style: a, children: o, ...s }) {
|
|
125
|
+
let c = N(e), [l, d] = f(!1), p = c.visibleToasts.length > 0;
|
|
126
|
+
u(() => {
|
|
127
|
+
p && d(!0);
|
|
128
|
+
}, [p]);
|
|
129
|
+
let [g, _] = f(!1);
|
|
130
|
+
u(() => _(!0), []);
|
|
131
|
+
let v = p || l ? /* @__PURE__ */ m(I, {
|
|
132
|
+
state: c,
|
|
133
|
+
placement: t,
|
|
134
|
+
inline: n,
|
|
135
|
+
offset: r,
|
|
136
|
+
className: i,
|
|
137
|
+
style: a,
|
|
138
|
+
"aria-label": s["aria-label"],
|
|
139
|
+
onSettled: () => {
|
|
140
|
+
e.aria.visibleToasts.length || d(!1);
|
|
141
|
+
}
|
|
142
|
+
}) : null;
|
|
143
|
+
return /* @__PURE__ */ h(A.Provider, {
|
|
144
|
+
value: e,
|
|
145
|
+
children: [o, n ? v : g && v ? y(v, document.body) : null]
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
function I({ state: t, placement: n, inline: r, offset: i, className: o, style: s, onSettled: c, ...l }) {
|
|
149
|
+
let u = d(null), { regionProps: f } = x(l, t, u), p = n.startsWith("top");
|
|
150
|
+
return /* @__PURE__ */ m("div", {
|
|
151
|
+
...f,
|
|
152
|
+
ref: u,
|
|
153
|
+
"data-slot": "toaster",
|
|
154
|
+
"data-placement": n,
|
|
155
|
+
className: e("pointer-events-none z-[1000] flex w-max max-w-[calc(100%-32px)] gap-2 outline-none", r ? "absolute" : "fixed", P[n], o),
|
|
156
|
+
style: {
|
|
157
|
+
"--bl-toast-offset": `${i}px`,
|
|
158
|
+
...s
|
|
159
|
+
},
|
|
160
|
+
children: /* @__PURE__ */ m(a, {
|
|
161
|
+
initial: !0,
|
|
162
|
+
onExitComplete: c,
|
|
163
|
+
children: t.visibleToasts.map((e) => /* @__PURE__ */ m(V, {
|
|
164
|
+
toast: e,
|
|
165
|
+
state: t,
|
|
166
|
+
fromTop: p
|
|
167
|
+
}, e.key))
|
|
168
|
+
})
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
var L = v("outline-none data-[focus-visible]:ring-2 focus-visible:ring-2 focus-visible:ring-[var(--primary)]", {
|
|
172
|
+
variants: { variant: {
|
|
173
|
+
hud: "flex items-center gap-2 rounded-full bg-[rgba(30,30,32,.86)] px-4 py-2.5 text-detail font-semibold text-white shadow-[0_8px_30px_black] shadow-black/25 backdrop-blur-xl backdrop-saturate-150",
|
|
174
|
+
banner: "flex w-[min(360px,calc(100vw-32px))] items-start gap-3 rounded-2xl bg-card px-3.5 py-3 text-foreground shadow-[0_10px_34px_--alpha(black/16%),0_0_0_.5px_var(--border)]"
|
|
175
|
+
} },
|
|
176
|
+
defaultVariants: { variant: "banner" }
|
|
177
|
+
}), R = v("grid shrink-0 place-items-center", {
|
|
178
|
+
variants: { tone: {
|
|
179
|
+
default: "text-primary",
|
|
180
|
+
success: "text-success",
|
|
181
|
+
warning: "text-warning",
|
|
182
|
+
destructive: "text-destructive"
|
|
183
|
+
} },
|
|
184
|
+
defaultVariants: { tone: "default" }
|
|
185
|
+
}), z = {
|
|
186
|
+
hud: {
|
|
187
|
+
default: null,
|
|
188
|
+
success: "check",
|
|
189
|
+
warning: "warning",
|
|
190
|
+
destructive: "xmark"
|
|
191
|
+
},
|
|
192
|
+
banner: {
|
|
193
|
+
default: null,
|
|
194
|
+
success: "check-circle-fill",
|
|
195
|
+
warning: "warning-fill",
|
|
196
|
+
destructive: "xmark-circle-fill"
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
function B({ data: t, size: n }) {
|
|
200
|
+
let r = t.tone ?? "default";
|
|
201
|
+
if (t.loading) return /* @__PURE__ */ m("span", {
|
|
202
|
+
"aria-hidden": "true",
|
|
203
|
+
className: e("inline-block shrink-0 animate-spin rounded-full border-2 border-current border-r-transparent opacity-80 motion-reduce:animate-[spin_2s_linear_infinite]", n === 16 ? "size-[14px]" : "size-[18px]")
|
|
204
|
+
});
|
|
205
|
+
let a = t.icon ?? z[t.variant ?? "banner"][r];
|
|
206
|
+
return a == null ? null : /* @__PURE__ */ m("span", {
|
|
207
|
+
"aria-hidden": "true",
|
|
208
|
+
className: R({ tone: r }),
|
|
209
|
+
children: typeof a == "string" ? /* @__PURE__ */ m(i, {
|
|
210
|
+
name: a,
|
|
211
|
+
size: n,
|
|
212
|
+
sw: t.variant === "hud" ? 2.6 : 2.2
|
|
213
|
+
}) : a
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
function V({ toast: a, state: c, fromTop: l }) {
|
|
217
|
+
let u = d(null), { toastProps: f, contentProps: p, titleProps: _, descriptionProps: v, closeButtonProps: y } = b({ toast: a }, c, u), x = s(), S = a.content.data, C = S.variant === "hud", w = x ? { opacity: 0 } : {
|
|
218
|
+
opacity: 0,
|
|
219
|
+
y: l ? -16 : 16,
|
|
220
|
+
scale: C ? .85 : .96,
|
|
221
|
+
filter: "blur(4px)"
|
|
222
|
+
}, T = (e, t) => {
|
|
223
|
+
(Math.abs(t.offset.x) > 90 || Math.abs(t.velocity.x) > 600) && c.close(a.key);
|
|
224
|
+
}, { onPress: E, ...D } = y;
|
|
225
|
+
return /* @__PURE__ */ m(o.div, {
|
|
226
|
+
layout: !x && "position",
|
|
227
|
+
initial: w,
|
|
228
|
+
animate: {
|
|
229
|
+
opacity: 1,
|
|
230
|
+
y: 0,
|
|
231
|
+
scale: 1,
|
|
232
|
+
filter: "blur(0px)"
|
|
233
|
+
},
|
|
234
|
+
exit: {
|
|
235
|
+
...w,
|
|
236
|
+
transition: x ? { duration: .12 } : {
|
|
237
|
+
...t.out,
|
|
238
|
+
y: n.snappy,
|
|
239
|
+
scale: n.snappy
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
transition: x ? { duration: .15 } : {
|
|
243
|
+
default: t.in,
|
|
244
|
+
y: n.snappy,
|
|
245
|
+
scale: n.bouncy,
|
|
246
|
+
layout: n.smooth
|
|
247
|
+
},
|
|
248
|
+
...!C && !x ? {
|
|
249
|
+
drag: "x",
|
|
250
|
+
dragSnapToOrigin: !0,
|
|
251
|
+
dragElastic: .6,
|
|
252
|
+
onDragEnd: T
|
|
253
|
+
} : null,
|
|
254
|
+
className: "pointer-events-auto",
|
|
255
|
+
children: /* @__PURE__ */ h("div", {
|
|
256
|
+
...f,
|
|
257
|
+
ref: u,
|
|
258
|
+
"data-slot": "toast",
|
|
259
|
+
"data-variant": S.variant,
|
|
260
|
+
"data-tone": S.tone ?? "default",
|
|
261
|
+
className: L({ variant: C ? "hud" : "banner" }),
|
|
262
|
+
children: [
|
|
263
|
+
/* @__PURE__ */ m(B, {
|
|
264
|
+
data: S,
|
|
265
|
+
size: C ? 16 : 20
|
|
266
|
+
}),
|
|
267
|
+
/* @__PURE__ */ h("div", {
|
|
268
|
+
...p,
|
|
269
|
+
className: e("min-w-0", !C && "flex-1 pt-px"),
|
|
270
|
+
children: [/* @__PURE__ */ m("div", {
|
|
271
|
+
..._,
|
|
272
|
+
className: e(C ? "whitespace-nowrap" : "text-subhead font-semibold leading-snug"),
|
|
273
|
+
children: C ? /* @__PURE__ */ m(r, { children: S.title }) : S.title
|
|
274
|
+
}), !C && S.description ? /* @__PURE__ */ m("div", {
|
|
275
|
+
...v,
|
|
276
|
+
className: "mt-0.5 text-[13.5px] leading-snug text-muted-foreground",
|
|
277
|
+
children: S.description
|
|
278
|
+
}) : null]
|
|
279
|
+
}),
|
|
280
|
+
!C && S.action ? /* @__PURE__ */ m(g, {
|
|
281
|
+
onPress: () => {
|
|
282
|
+
S.action.onAction() !== !1 && c.close(a.key);
|
|
283
|
+
},
|
|
284
|
+
className: "bl-btn shrink-0 cursor-pointer self-center rounded-full border-0 bg-secondary px-3 py-1.5 text-[13.5px] font-semibold text-primary outline-none transition-[background-color,scale] duration-spring-snappy ease-spring-snappy hover:bg-secondary-strong active:scale-95 data-[focus-visible]:ring-2 data-[focus-visible]:ring-[var(--primary)]",
|
|
285
|
+
children: S.action.label
|
|
286
|
+
}) : null,
|
|
287
|
+
!C && S.dismissible !== !1 ? /* @__PURE__ */ m(g, {
|
|
288
|
+
...D,
|
|
289
|
+
onPress: E,
|
|
290
|
+
className: "bl-btn -mt-0.5 -mr-1 grid size-7 shrink-0 cursor-pointer place-items-center rounded-full border-0 bg-transparent text-muted-foreground outline-none transition-colors hover:bg-secondary hover:text-foreground data-[focus-visible]:ring-2 data-[focus-visible]:ring-[var(--primary)]",
|
|
291
|
+
children: /* @__PURE__ */ m(i, {
|
|
292
|
+
name: "x",
|
|
293
|
+
size: 14,
|
|
294
|
+
sw: 2.2
|
|
295
|
+
})
|
|
296
|
+
}) : null
|
|
297
|
+
]
|
|
298
|
+
})
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
//#endregion
|
|
302
|
+
export { M as ToastProvider, w as ToastQueue, F as Toaster, E as createToastQueue, T as defaultToastQueue, k as toast, O as toastApi, R as toastIconVariants, L as toastVariants, j as useToast };
|
|
@@ -7,7 +7,7 @@ export declare const toggleGroupVariants: (props?: ({
|
|
|
7
7
|
type ToggleGroupStyle = VariantProps<typeof toggleVariants>;
|
|
8
8
|
export interface ToggleGroupProps extends ToggleButtonGroupProps, ToggleGroupStyle {
|
|
9
9
|
}
|
|
10
|
-
export declare function ToggleGroup({ className, variant, size,
|
|
10
|
+
export declare function ToggleGroup({ className, variant, size, ...props }: ToggleGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export interface ToggleGroupItemProps extends ToggleButtonProps, ToggleGroupStyle {
|
|
12
12
|
}
|
|
13
13
|
export declare function ToggleGroupItem({ className, variant, size, children, ...props }: ToggleGroupItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-group.d.ts","sourceRoot":"","sources":["../../src/components/toggle-group.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toggle-group.d.ts","sourceRoot":"","sources":["../../src/components/toggle-group.tsx"],"names":[],"mappings":"AAEA,OAAO,EACkC,KAAK,sBAAsB,EAAE,KAAK,iBAAiB,EAC3F,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAU,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAMhE,eAAO,MAAM,mBAAmB;;8EAU9B,CAAC;AAEH,KAAK,gBAAgB,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC;AAG5D,MAAM,WAAW,gBAAiB,SAAQ,sBAAsB,EAAE,gBAAgB;CAAG;AAErF,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,2CAWnF;AAED,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB,EAAE,gBAAgB;CAAG;AAEpF,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,2CAuBrG"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../lib/utils.js";
|
|
3
|
+
import { segmentIndicator as t } from "./segmented.js";
|
|
4
|
+
import { Toggle as n } from "./toggle.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, ToggleButtonGroup as l, composeRenderProps as u } from "react-aria-components";
|
|
8
|
+
import { cva as d } from "class-variance-authority";
|
|
9
|
+
//#region src/components/toggle-group.tsx
|
|
10
|
+
var f = d("isolate inline-flex w-fit items-center", {
|
|
11
|
+
variants: { variant: {
|
|
12
|
+
default: "gap-1",
|
|
13
|
+
filled: "gap-0.5 rounded-[11px] bg-secondary p-0.5",
|
|
14
|
+
outline: "gap-0 overflow-hidden rounded-ctl shadow-hairline"
|
|
15
|
+
} },
|
|
16
|
+
defaultVariants: { variant: "default" }
|
|
17
|
+
}), p = r({});
|
|
18
|
+
function m({ className: t, variant: n, size: r, ...i }) {
|
|
19
|
+
return /* @__PURE__ */ o(p.Provider, {
|
|
20
|
+
value: {
|
|
21
|
+
variant: n,
|
|
22
|
+
size: r,
|
|
23
|
+
single: (i.selectionMode ?? "single") === "single"
|
|
24
|
+
},
|
|
25
|
+
children: /* @__PURE__ */ o(l, {
|
|
26
|
+
"data-slot": "toggle-group",
|
|
27
|
+
"data-variant": n ?? "default",
|
|
28
|
+
className: u(t, (t) => e(f({ variant: n }), t)),
|
|
29
|
+
...i
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function h({ className: r, variant: l, size: d, children: f, ...m }) {
|
|
34
|
+
let h = i(p), g = l ?? h.variant, _ = g === "filled" && h.single;
|
|
35
|
+
return /* @__PURE__ */ o(n, {
|
|
36
|
+
"data-slot": "toggle-group-item",
|
|
37
|
+
variant: g === "filled" ? "default" : g,
|
|
38
|
+
size: d ?? h.size,
|
|
39
|
+
className: u(r, (t) => e(g === "filled" && (_ ? "relative rounded-[9px] data-selected:bg-transparent data-selected:text-foreground data-selected:data-pressed:bg-transparent" : "rounded-[9px] data-selected:bg-card data-selected:text-foreground data-selected:shadow-[0_1px_4px_black] data-selected:shadow-black/14 data-selected:data-pressed:bg-card"), g === "outline" && "rounded-none shadow-none not-first:shadow-[inset_1px_0_0_var(--border)] data-selected:shadow-none data-selected:not-first:shadow-[inset_1px_0_0_var(--border)]", t)),
|
|
40
|
+
...m,
|
|
41
|
+
children: _ ? u(f, (n) => /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o(c, {
|
|
42
|
+
"data-slot": "toggle-group-indicator",
|
|
43
|
+
className: e(t, "bg-card")
|
|
44
|
+
}), n] })) : f
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
export { m as ToggleGroup, h as ToggleGroupItem, f as toggleGroupVariants };
|
|
@@ -6,5 +6,5 @@ export declare const toggleVariants: (props?: ({
|
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export interface ToggleProps extends ToggleButtonProps, VariantProps<typeof toggleVariants> {
|
|
8
8
|
}
|
|
9
|
-
export declare function Toggle({ className, variant, size,
|
|
9
|
+
export declare function Toggle({ className, variant, size, ...props }: ToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
//# sourceMappingURL=toggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../src/components/toggle.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../src/components/toggle.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgB,KAAK,iBAAiB,EAAsB,MAAM,uBAAuB,CAAC;AACjG,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,eAAO,MAAM,cAAc;;;8EAwB1B,CAAC;AAEF,MAAM,WAAW,WAAY,SAAQ,iBAAiB,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;CAAG;AAE9F,wBAAgB,MAAM,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAQzE"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../lib/utils.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import { ToggleButton as n, composeRenderProps as r } from "react-aria-components";
|
|
5
|
+
import { cva as i } from "class-variance-authority";
|
|
6
|
+
//#region src/components/toggle.tsx
|
|
7
|
+
var a = i([
|
|
8
|
+
"bl-btn box-border inline-flex cursor-pointer items-center justify-center gap-1.5 border-0 [font-family:inherit] font-semibold whitespace-nowrap text-foreground outline-none",
|
|
9
|
+
"transition-[background-color,color,box-shadow,scale] duration-spring-snappy ease-spring-snappy data-pressed:not-aria-expanded:scale-[.96] motion-reduce:transition-none [&_svg]:shrink-0",
|
|
10
|
+
"data-hovered:bg-accent data-pressed:bg-secondary-strong",
|
|
11
|
+
"data-selected:bg-primary/15 data-selected:text-primary data-selected:data-pressed:bg-primary/25",
|
|
12
|
+
"data-focus-visible:ring-[3px] data-focus-visible:ring-ring/45 data-disabled:cursor-default data-disabled:opacity-40"
|
|
13
|
+
], {
|
|
14
|
+
variants: {
|
|
15
|
+
variant: {
|
|
16
|
+
default: "bg-transparent",
|
|
17
|
+
filled: "bg-secondary",
|
|
18
|
+
outline: "bg-transparent shadow-hairline data-selected:shadow-[inset_0_0_0_1px_transparent]"
|
|
19
|
+
},
|
|
20
|
+
size: {
|
|
21
|
+
sm: "h-8 min-w-8 rounded-lg px-2 text-footnote",
|
|
22
|
+
default: "h-9 min-w-9 rounded-ctl px-2.5 text-subhead",
|
|
23
|
+
lg: "h-11 min-w-11 rounded-xl px-3.5 text-body"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
defaultVariants: {
|
|
27
|
+
variant: "default",
|
|
28
|
+
size: "default"
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
function o({ className: i, variant: o, size: s, ...c }) {
|
|
32
|
+
return /* @__PURE__ */ t(n, {
|
|
33
|
+
"data-slot": "toggle",
|
|
34
|
+
className: r(i, (t) => e(a({
|
|
35
|
+
variant: o,
|
|
36
|
+
size: s
|
|
37
|
+
}), t)),
|
|
38
|
+
...c
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { o as Toggle, a as toggleVariants };
|
|
@@ -6,5 +6,5 @@ export interface TooltipProps extends Omit<AriaTooltipProps, 'children'> {
|
|
|
6
6
|
/** Draw the pointer toward the trigger (default true). */
|
|
7
7
|
arrow?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare function Tooltip({ className, offset, arrow, children, ...props }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function Tooltip({ className, style, offset, arrow, children, ...props }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/components/tooltip.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/components/tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAEmB,KAAK,YAAY,IAAI,gBAAgB,EACvB,KAAK,4BAA4B,EAExE,MAAM,uBAAuB,CAAC;AAS/B,wBAAgB,cAAc,CAAC,EAAE,KAAW,EAAE,UAAgB,EAAE,GAAG,KAAK,EAAE,EAAE,4BAA4B,2CAEvG;AAED,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC;IACtE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,MAAU,EAAE,KAAY,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,2CA0BvG"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../lib/utils.js";
|
|
3
|
+
import { useThemeScopeProps as t } from "../lib/theme.js";
|
|
4
|
+
import { overlayZ as n, popoverMotion as r } from "../lib/primitives.js";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
import { OverlayArrow as o, Tooltip as s, TooltipTrigger as c, composeRenderProps as l } from "react-aria-components";
|
|
7
|
+
//#region src/components/tooltip.tsx
|
|
8
|
+
function u({ delay: e = 500, closeDelay: t = 200, ...n }) {
|
|
9
|
+
return /* @__PURE__ */ i(c, {
|
|
10
|
+
delay: e,
|
|
11
|
+
closeDelay: t,
|
|
12
|
+
...n
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function d({ className: c, style: u, offset: d = 8, arrow: f = !0, children: p, ...m }) {
|
|
16
|
+
let h = t();
|
|
17
|
+
return /* @__PURE__ */ a(s, {
|
|
18
|
+
"data-slot": "tooltip",
|
|
19
|
+
"data-theme-scope": h["data-theme-scope"],
|
|
20
|
+
offset: d,
|
|
21
|
+
style: l(u, (e) => ({
|
|
22
|
+
...h.style,
|
|
23
|
+
...e
|
|
24
|
+
})),
|
|
25
|
+
className: l(c, (t) => e("box-border max-w-60 rounded-[9px] bg-foreground px-2.5 py-1.5 text-footnote leading-[17px] font-medium text-background shadow-[0_4px_14px_black] shadow-black/18", r, n, h.className, t)),
|
|
26
|
+
...m,
|
|
27
|
+
children: [f ? /* @__PURE__ */ i(o, {
|
|
28
|
+
"data-slot": "tooltip-arrow",
|
|
29
|
+
className: "group",
|
|
30
|
+
children: /* @__PURE__ */ i("svg", {
|
|
31
|
+
width: 10,
|
|
32
|
+
height: 5,
|
|
33
|
+
viewBox: "0 0 10 5",
|
|
34
|
+
"aria-hidden": "true",
|
|
35
|
+
className: "block fill-foreground group-data-[placement=bottom]:rotate-180 group-data-[placement=left]:-rotate-90 group-data-[placement=right]:rotate-90",
|
|
36
|
+
children: /* @__PURE__ */ i("path", { d: "M0 0 L5 5 L10 0" })
|
|
37
|
+
})
|
|
38
|
+
}) : null, p]
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { d as Tooltip, u as TooltipTrigger };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Appearance } from '../theme';
|
|
1
|
+
import { Appearance } from '../lib/theme';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
export declare const WorkbenchAppearanceProvider: React.Provider<Appearance | undefined>;
|
|
4
4
|
/** The explicit prop, else the ambient `AppearanceProvider`, else Workbench's dark default. */
|
|
@@ -12,4 +12,4 @@ export interface WorkbenchThemeProps extends React.HTMLAttributes<HTMLDivElement
|
|
|
12
12
|
}
|
|
13
13
|
/** A `workbench` theme scope with the Workbench's base styling — for Workbench parts used outside WorkbenchShell. */
|
|
14
14
|
export declare function WorkbenchTheme({ tint, appearance: appearanceProp, className, style, children, ...rest }: WorkbenchThemeProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
//# sourceMappingURL=theme.d.ts.map
|
|
15
|
+
//# sourceMappingURL=workbench-theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workbench-theme.d.ts","sourceRoot":"","sources":["../../src/components/workbench-theme.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAkC,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAW9E,eAAO,MAAM,2BAA2B,wCAAsC,CAAC;AAE/E,+FAA+F;AAC/F,wBAAgB,sBAAsB,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,UAAU,CAIxE;AAED,MAAM,WAAW,mBAAoB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC/E,oEAAoE;IACpE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AACD,qHAAqH;AACrH,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,mBAAmB,2CAc5H"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../lib/utils.js";
|
|
3
|
+
import { themeScopeProps as t, useAppearance as n } from "../lib/theme.js";
|
|
4
|
+
import * as r from "react";
|
|
5
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/workbench-theme.tsx
|
|
7
|
+
var a = r.createContext(void 0), o = a.Provider;
|
|
8
|
+
function s(e) {
|
|
9
|
+
let t = r.useContext(a), i = n();
|
|
10
|
+
return e ?? t ?? i ?? "dark";
|
|
11
|
+
}
|
|
12
|
+
function c({ tint: n, appearance: r, className: a, style: c, children: l, ...u }) {
|
|
13
|
+
let d = s(r), f = t({
|
|
14
|
+
scope: "workbench",
|
|
15
|
+
appearance: d,
|
|
16
|
+
tint: n
|
|
17
|
+
});
|
|
18
|
+
return /* @__PURE__ */ i("div", {
|
|
19
|
+
"data-slot": "workbench-theme",
|
|
20
|
+
"data-theme-scope": f["data-theme-scope"],
|
|
21
|
+
className: e("bg-background font-sans text-foreground antialiased", f.className, a),
|
|
22
|
+
style: {
|
|
23
|
+
...f.style,
|
|
24
|
+
...c
|
|
25
|
+
},
|
|
26
|
+
...u,
|
|
27
|
+
children: /* @__PURE__ */ i(o, {
|
|
28
|
+
value: d,
|
|
29
|
+
children: l
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { o as WorkbenchAppearanceProvider, c as WorkbenchTheme, s as useWorkbenchAppearance };
|