@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,204 @@
|
|
|
1
|
+
//#region src/lib/syntax.ts
|
|
2
|
+
var e = "unknown", t = null, n = null, r = /swiftshader|llvmpipe|lavapipe|software|microsoft basic/i, i = () => typeof navigator > "u" ? void 0 : navigator.gpu;
|
|
3
|
+
async function a(e) {
|
|
4
|
+
if (!e) return "none";
|
|
5
|
+
let t = e.info;
|
|
6
|
+
if (!t && typeof e.requestAdapterInfo == "function" && (t = await e.requestAdapterInfo().catch(() => void 0)), e.isFallbackAdapter || t?.isFallbackAdapter) return "software";
|
|
7
|
+
let n = [
|
|
8
|
+
t?.vendor,
|
|
9
|
+
t?.architecture,
|
|
10
|
+
t?.device,
|
|
11
|
+
t?.description
|
|
12
|
+
].filter(Boolean).join(" ");
|
|
13
|
+
return r.test(n) ? "software" : "hardware";
|
|
14
|
+
}
|
|
15
|
+
function o() {
|
|
16
|
+
if (n) return n;
|
|
17
|
+
let e = i();
|
|
18
|
+
if (!e) return t = "none", n = Promise.resolve("none");
|
|
19
|
+
let r = Promise.resolve().then(() => e.requestAdapter()).then(a, () => "none"), o, s = new Promise((e) => {
|
|
20
|
+
o = setTimeout(() => e("software"), 2500);
|
|
21
|
+
});
|
|
22
|
+
return r.then((e) => {
|
|
23
|
+
clearTimeout(o), t = e;
|
|
24
|
+
}), n = Promise.race([r, s]).then((e) => t ??= e), n;
|
|
25
|
+
}
|
|
26
|
+
function s(n = "auto") {
|
|
27
|
+
return n === "fallback" || e === "unavailable" || t === "none" || n === "auto" && t === "software" ? !1 : !!i();
|
|
28
|
+
}
|
|
29
|
+
var c = 256, l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map();
|
|
30
|
+
function d(e, t) {
|
|
31
|
+
let n = e.get(t);
|
|
32
|
+
return n && (e.delete(t), e.set(t, n)), n;
|
|
33
|
+
}
|
|
34
|
+
function f(e, t, n) {
|
|
35
|
+
e.set(t, n), e.size > c && e.delete(e.keys().next().value);
|
|
36
|
+
}
|
|
37
|
+
function p(e, t = "auto") {
|
|
38
|
+
return t === "fallback" ? d(u, e) : d(l, e) ?? (s(t) ? void 0 : d(u, e));
|
|
39
|
+
}
|
|
40
|
+
var m = /* @__PURE__ */ new Set([
|
|
41
|
+
"keyword",
|
|
42
|
+
"type",
|
|
43
|
+
"function",
|
|
44
|
+
"constant"
|
|
45
|
+
]), h = "=<>!+-*/%&|^~?:.", g = "()[]{};,", _ = (e) => e === " " || e === " " || e === "\n" || e === "\r" || e === "\f" || e === "\v", v = (e) => !!e && !_(e) && !h.includes(e) && !g.includes(e);
|
|
46
|
+
function y(e, t) {
|
|
47
|
+
let n = e[t];
|
|
48
|
+
if (_(n)) return "space";
|
|
49
|
+
if (g.includes(n)) return "punct";
|
|
50
|
+
if (!h.includes(n)) return "word";
|
|
51
|
+
if (n === "-") {
|
|
52
|
+
if (v(e[t - 1]) && v(e[t + 1])) return "word";
|
|
53
|
+
let n = t;
|
|
54
|
+
for (; e[n - 1] === "-";) n--;
|
|
55
|
+
let r = t;
|
|
56
|
+
for (; e[r] === "-";) r++;
|
|
57
|
+
if (n === 0 && v(e[r])) return "word";
|
|
58
|
+
}
|
|
59
|
+
return "op";
|
|
60
|
+
}
|
|
61
|
+
function b(e, t) {
|
|
62
|
+
let n = [], r = 0, i = (e, t, i) => {
|
|
63
|
+
if (t = Math.max(t, r), i <= t || (r = i, e === "plain")) return;
|
|
64
|
+
let a = n[n.length - 1];
|
|
65
|
+
a && a.type === e && a.end === t ? a.end = i : n.push({
|
|
66
|
+
type: e,
|
|
67
|
+
start: t,
|
|
68
|
+
end: i
|
|
69
|
+
});
|
|
70
|
+
}, a = t.every((e, n) => n === 0 || t[n - 1].start <= e.start) ? t : [...t].sort((e, t) => e.start - t.start);
|
|
71
|
+
for (let t of a) {
|
|
72
|
+
if (!m.has(t.type)) {
|
|
73
|
+
i(t.type, t.start, t.end);
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
let n = e.slice(t.start, t.end), r = 0;
|
|
77
|
+
for (; r < n.length;) {
|
|
78
|
+
let e = y(n, r), a = r + 1;
|
|
79
|
+
for (; a < n.length && y(n, a) === e;) a++;
|
|
80
|
+
let o = n.slice(r, a), s = /^(<\/?|\/?>)$/.test(o) && /[A-Za-z]/.test(n);
|
|
81
|
+
i(e === "word" ? t.type : e === "op" && o !== "." && o !== ":" && !s ? "operator" : "plain", t.start + r, t.start + a), r = a;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return n;
|
|
85
|
+
}
|
|
86
|
+
var x = null, S = () => x ??= import("gpu-lexer").then((e) => e.parse), C = Promise.resolve(), w = /* @__PURE__ */ new Map(), T = 65536;
|
|
87
|
+
async function E(e) {
|
|
88
|
+
let t = await S();
|
|
89
|
+
if (e.length <= T) return b(e, await t(e));
|
|
90
|
+
let n = [], r = 0;
|
|
91
|
+
for (; r < e.length;) {
|
|
92
|
+
let i = Math.min(e.length, r + T);
|
|
93
|
+
if (i < e.length) {
|
|
94
|
+
let t = e.lastIndexOf("\n", i);
|
|
95
|
+
t > r && (i = t + 1);
|
|
96
|
+
}
|
|
97
|
+
for (let a of await t(e.slice(r, i))) n.push({
|
|
98
|
+
type: a.type,
|
|
99
|
+
start: a.start + r,
|
|
100
|
+
end: a.end + r
|
|
101
|
+
});
|
|
102
|
+
r = i;
|
|
103
|
+
}
|
|
104
|
+
return b(e, n);
|
|
105
|
+
}
|
|
106
|
+
function D(t) {
|
|
107
|
+
return C = C.then(() => E(t).then((t) => (e = "ready", {
|
|
108
|
+
spans: t,
|
|
109
|
+
highlighter: "gpu"
|
|
110
|
+
}), (n) => (e !== "ready" && /unavailable/i.test(String(n)) && (e = "unavailable"), k(t))));
|
|
111
|
+
}
|
|
112
|
+
function O(e, t = "auto") {
|
|
113
|
+
let n = p(e, t);
|
|
114
|
+
if (n) return Promise.resolve(n);
|
|
115
|
+
if (!s(t)) return Promise.resolve(k(e));
|
|
116
|
+
let r = t + "\0" + e, i = w.get(r);
|
|
117
|
+
if (i) return i;
|
|
118
|
+
let a = o().then(() => s(t) ? D(e) : k(e)).then((t) => (w.delete(r), t.highlighter === "gpu" && f(l, e, t), t));
|
|
119
|
+
return w.set(r, a), a;
|
|
120
|
+
}
|
|
121
|
+
function k(e) {
|
|
122
|
+
let t = d(u, e);
|
|
123
|
+
if (t) return t;
|
|
124
|
+
let n = {
|
|
125
|
+
spans: b(e, N(e)),
|
|
126
|
+
highlighter: "fallback"
|
|
127
|
+
};
|
|
128
|
+
return f(u, e, n), n;
|
|
129
|
+
}
|
|
130
|
+
var A = new Set("as async await break case catch class const continue def default delete do elif else enum export extends fn for from func function go if impl implements import in instanceof interface let match mod module mut new package pass private protected pub public raise readonly return static struct super switch then this throw trait try type typeof use var void where while with yield fi done esac local echo".split(" ")), j = new Set("true false null undefined nil None True False NaN Infinity self".split(" ")), M = /(\/\/[^\n]*|#(?=[ \t!]|$)[^\n]*|\/\*[\s\S]*?(?:\*\/|$)|<!--[\s\S]*?(?:-->|$))|("(?:[^"\\\n]|\\.)*"?|'(?:[^'\\\n]|\\.)*'?|`(?:[^`\\]|\\.)*`?)|(\b(?:0[xob][\da-f_]+|\d[\d_]*(?:\.\d+)?(?:e[+-]?\d+)?)\b)|([A-Za-z_$][\w$]*)|(\?\.(?!\d)|\.{2,3}|::|[=<>!+\-*/%&|^~?:]*[=<>!+\-*/%&|^~?][=<>!+\-*/%&|^~?:]*)/gi;
|
|
131
|
+
function N(e) {
|
|
132
|
+
let t = [];
|
|
133
|
+
M.lastIndex = 0;
|
|
134
|
+
let n;
|
|
135
|
+
for (; n = M.exec(e);) {
|
|
136
|
+
let r = n.index, i = r + n[0].length, a = "plain";
|
|
137
|
+
if (n[1]) a = "comment";
|
|
138
|
+
else if (n[2]) a = "string";
|
|
139
|
+
else if (n[3]) a = "number";
|
|
140
|
+
else if (n[4]) {
|
|
141
|
+
let t = n[4];
|
|
142
|
+
a = A.has(t) ? "keyword" : j.has(t) ? "constant" : /^\s*\(/.test(e.slice(i, i + 8)) ? "function" : /^[A-Z][a-z]/.test(t) ? "type" : "plain";
|
|
143
|
+
} else n[5] && (a = "operator");
|
|
144
|
+
a !== "plain" && t.push({
|
|
145
|
+
type: a,
|
|
146
|
+
start: r,
|
|
147
|
+
end: i
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
return t;
|
|
151
|
+
}
|
|
152
|
+
function P(e, t) {
|
|
153
|
+
let n = e.endsWith("\n") ? e.slice(0, -1) : e, r = [[]], i = (e, t) => {
|
|
154
|
+
let n = 0;
|
|
155
|
+
for (let i = t.indexOf("\n"); i !== -1; i = t.indexOf("\n", n)) i > n && r[r.length - 1].push({
|
|
156
|
+
type: e,
|
|
157
|
+
text: t.slice(n, i)
|
|
158
|
+
}), r.push([]), n = i + 1;
|
|
159
|
+
n < t.length && r[r.length - 1].push({
|
|
160
|
+
type: e,
|
|
161
|
+
text: t.slice(n)
|
|
162
|
+
});
|
|
163
|
+
}, a = 0;
|
|
164
|
+
for (let e of t ?? []) {
|
|
165
|
+
if (e.start >= n.length) break;
|
|
166
|
+
e.start > a && i("plain", n.slice(a, e.start));
|
|
167
|
+
let t = Math.max(e.start, a), r = Math.min(e.end, n.length);
|
|
168
|
+
r > t && i(e.type, n.slice(t, r)), a = Math.max(a, r);
|
|
169
|
+
}
|
|
170
|
+
return a < n.length && i("plain", n.slice(a)), r;
|
|
171
|
+
}
|
|
172
|
+
function F(e) {
|
|
173
|
+
let t = (e.split("/").pop() ?? e).toLowerCase();
|
|
174
|
+
if (t === "dockerfile") return "dockerfile";
|
|
175
|
+
if (t === "makefile") return "makefile";
|
|
176
|
+
let n = t.includes(".") ? t.split(".").pop() : "";
|
|
177
|
+
return {
|
|
178
|
+
mjs: "js",
|
|
179
|
+
cjs: "js",
|
|
180
|
+
mts: "ts",
|
|
181
|
+
cts: "ts",
|
|
182
|
+
yml: "yaml",
|
|
183
|
+
markdown: "md",
|
|
184
|
+
mdx: "mdx",
|
|
185
|
+
sh: "bash",
|
|
186
|
+
zsh: "bash",
|
|
187
|
+
py: "python",
|
|
188
|
+
rb: "ruby",
|
|
189
|
+
rs: "rust",
|
|
190
|
+
kt: "kotlin",
|
|
191
|
+
htm: "html",
|
|
192
|
+
txt: "text",
|
|
193
|
+
patch: "diff"
|
|
194
|
+
}[n] ?? (n || "text");
|
|
195
|
+
}
|
|
196
|
+
var I = /* @__PURE__ */ new Set([
|
|
197
|
+
"text",
|
|
198
|
+
"txt",
|
|
199
|
+
"plaintext",
|
|
200
|
+
"plain",
|
|
201
|
+
"none"
|
|
202
|
+
]);
|
|
203
|
+
//#endregion
|
|
204
|
+
export { I as PLAIN_LANGUAGES, k as fallbackResult, N as fallbackSpans, F as languageFromPath, O as lexSyntax, b as normalizeSpans, p as peekSyntax, o as probeWebGPU, P as tokenizeLines, s as webgpuSupported };
|
package/dist/lib/theme.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { THEME_VARS, ThemeVar } from './tokens.generated';
|
|
3
|
+
export { THEME_VARS, type ThemeVar };
|
|
2
4
|
export declare const chromeStore: {
|
|
3
5
|
hidden: boolean;
|
|
4
6
|
subs: Set<(v: boolean) => void>;
|
|
@@ -15,37 +17,60 @@ export declare function AppearanceProvider({ value, children }: {
|
|
|
15
17
|
children?: ReactNode;
|
|
16
18
|
}): import("react/jsx-runtime").JSX.Element;
|
|
17
19
|
export declare function useAppearance(): Appearance | undefined;
|
|
18
|
-
export type ThemeScopeName = 'workbench' | 'chat' | 'terminal' | 'sheet' | 'glass';
|
|
20
|
+
export type ThemeScopeName = 'workbench' | 'chat' | 'terminal' | 'sheet' | 'glass' | (string & {});
|
|
21
|
+
/** Variables to set on a scope, by name without the leading `--`: `{ radius: '0.25rem', primary: '#f43' }`. Names are
|
|
22
|
+
the theme variables (tokens.css), so they autocomplete; anything else is a custom property of your own. */
|
|
23
|
+
export type ThemeVars = {
|
|
24
|
+
[K in ThemeVar]?: string;
|
|
25
|
+
} & {
|
|
26
|
+
[custom: string]: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
/** The inline style for a `vars` object: `{ radius: '0.25rem' }` → `{ '--radius': '0.25rem' }`. */
|
|
29
|
+
export declare const themeVarStyle: (vars?: ThemeVars) => CSSProperties;
|
|
19
30
|
/** Root classes for an appearance: shadcn's `dark` (or `light`) plus the matching color-scheme. */
|
|
20
31
|
export declare const themeScopeClass: (appearance: Appearance | undefined) => "" | "dark scheme-dark" | "light scheme-light";
|
|
21
32
|
/** --primary / --ring for a tint (nothing when no tint is given, so the theme's primary applies). */
|
|
22
33
|
export declare const tintVars: (tint?: string) => CSSProperties;
|
|
23
34
|
/** The props a scope root carries: `data-theme-scope`, the appearance class and the tint. */
|
|
24
|
-
export declare function themeScopeProps({ scope, appearance, tint }: {
|
|
35
|
+
export declare function themeScopeProps({ scope, appearance, tint, vars }: {
|
|
25
36
|
scope?: ThemeScopeName;
|
|
26
37
|
appearance?: Appearance;
|
|
27
38
|
tint?: string;
|
|
39
|
+
vars?: ThemeVars;
|
|
28
40
|
}): {
|
|
29
41
|
'data-theme-scope': ThemeScopeName | undefined;
|
|
30
42
|
className: string;
|
|
31
43
|
style: CSSProperties;
|
|
32
44
|
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
45
|
+
export interface ThemeScopeState {
|
|
46
|
+
scope?: ThemeScopeName;
|
|
47
|
+
appearance?: Appearance;
|
|
48
|
+
tint?: string;
|
|
49
|
+
vars?: ThemeVars;
|
|
50
|
+
}
|
|
51
|
+
export declare const ThemeScopeContext: import('react').Context<ThemeScopeState | null>;
|
|
52
|
+
/** Props (`data-theme-scope`, `className`, `style`) that carry the surrounding ThemeScope onto a portalled overlay. */
|
|
53
|
+
export declare function useThemeScopeProps(): {
|
|
54
|
+
'data-theme-scope'?: string;
|
|
55
|
+
className?: string;
|
|
56
|
+
style?: CSSProperties;
|
|
57
|
+
};
|
|
36
58
|
/** The resolved theme variables (and color-scheme) at an element, as a style object. */
|
|
37
59
|
export declare function readThemeVars(el: Element | null | undefined): CSSProperties;
|
|
38
60
|
export interface ThemeScopeProps extends HTMLAttributes<HTMLDivElement> {
|
|
39
|
-
/**
|
|
61
|
+
/** A named surface palette — `[data-theme-scope="name"] { … }` in your CSS, or one the bl-theme and the blocks define (`workbench`, `chat`, `terminal`, `sheet`, `glass`). Omit for the plain theme. */
|
|
40
62
|
scope?: ThemeScopeName;
|
|
41
63
|
/** Defaults to the ambient `AppearanceProvider` value; without one a plain scope inherits the page's `.dark` / light,
|
|
42
64
|
a surface scope is light (the terminal scope is always dark). */
|
|
43
65
|
appearance?: Appearance;
|
|
44
66
|
/** Accent for the subtree (--primary / --ring). */
|
|
45
67
|
tint?: string;
|
|
68
|
+
/** Theme variables for the subtree, by name without `--`: `{ radius: '0.25rem', card: '#111' }`. Wins over `tint`. */
|
|
69
|
+
vars?: ThemeVars;
|
|
46
70
|
}
|
|
47
|
-
/** A subtree with its own appearance, accent and (optionally) surface palette.
|
|
48
|
-
|
|
71
|
+
/** A subtree with its own appearance, accent, variables and (optionally) named surface palette. Overlays opened inside
|
|
72
|
+
it (popovers, menus, dialogs, tooltips) wear the same scope. Scopes nest; the nearest one wins. */
|
|
73
|
+
export declare function ThemeScope({ scope, appearance: appearanceProp, tint, vars, className, style, ...props }: ThemeScopeProps): import("react/jsx-runtime").JSX.Element;
|
|
49
74
|
export interface BLProviderProps {
|
|
50
75
|
/** Defaults to the ambient `AppearanceProvider` value; without one the provider inherits the page's appearance
|
|
51
76
|
(shadcn's `.dark` on an ancestor, else light). */
|
package/dist/lib/theme.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/lib/theme.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/lib/theme.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { THEME_VARS as e } from "./tokens.generated.js";
|
|
3
|
+
import { cn as t } from "./utils.js";
|
|
4
|
+
import { createContext as n, useCallback as r, useContext as i, useEffect as a, useMemo as o, useState as s, useSyncExternalStore as c } from "react";
|
|
5
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
|
+
import { UNSAFE_PortalProvider as d } from "react-aria/PortalProvider";
|
|
7
|
+
//#region src/lib/theme.tsx
|
|
8
|
+
var f = {
|
|
9
|
+
hidden: !1,
|
|
10
|
+
subs: /* @__PURE__ */ new Set(),
|
|
11
|
+
set(e) {
|
|
12
|
+
e !== this.hidden && (this.hidden = e, this.subs.forEach((t) => t(e)));
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
function p() {
|
|
16
|
+
let [e, t] = s(f.hidden);
|
|
17
|
+
return a(() => {
|
|
18
|
+
let e = (e) => t(e);
|
|
19
|
+
return f.subs.add(e), t(f.hidden), () => {
|
|
20
|
+
f.subs.delete(e);
|
|
21
|
+
};
|
|
22
|
+
}, []), e;
|
|
23
|
+
}
|
|
24
|
+
var m = n(0), h = n(0), g = (e, t) => t ? Math.max(0, e - 52) : e, _ = n(void 0);
|
|
25
|
+
function v({ value: e, children: t }) {
|
|
26
|
+
return /* @__PURE__ */ l(_.Provider, {
|
|
27
|
+
value: e,
|
|
28
|
+
children: t
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function y(e) {
|
|
32
|
+
if (typeof MutationObserver > "u" || typeof document > "u") return () => {};
|
|
33
|
+
let t = new MutationObserver(e);
|
|
34
|
+
return t.observe(document.documentElement, {
|
|
35
|
+
attributes: !0,
|
|
36
|
+
attributeFilter: ["class"]
|
|
37
|
+
}), () => t.disconnect();
|
|
38
|
+
}
|
|
39
|
+
var b = () => typeof document < "u" && document.documentElement.classList.contains("dark");
|
|
40
|
+
function x() {
|
|
41
|
+
let e = i(_), t = c(y, b, () => !1);
|
|
42
|
+
return e ?? (t ? "dark" : void 0);
|
|
43
|
+
}
|
|
44
|
+
var S = (e) => {
|
|
45
|
+
let t = {};
|
|
46
|
+
for (let [n, r] of Object.entries(e ?? {})) r != null && (t["--" + n.replace(/^--/, "")] = r);
|
|
47
|
+
return t;
|
|
48
|
+
}, C = (e) => e === "dark" ? "dark scheme-dark" : e === "light" ? "light scheme-light" : "", w = (e) => e ? {
|
|
49
|
+
"--primary": e,
|
|
50
|
+
"--ring": e
|
|
51
|
+
} : {};
|
|
52
|
+
function T({ scope: e, appearance: t, tint: n, vars: r }) {
|
|
53
|
+
return {
|
|
54
|
+
"data-theme-scope": e,
|
|
55
|
+
className: C(t),
|
|
56
|
+
style: {
|
|
57
|
+
...w(n),
|
|
58
|
+
...S(r)
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
var E = n(null);
|
|
63
|
+
function D() {
|
|
64
|
+
let e = i(E);
|
|
65
|
+
if (!e) return {};
|
|
66
|
+
let t = T(e);
|
|
67
|
+
return {
|
|
68
|
+
"data-theme-scope": t["data-theme-scope"],
|
|
69
|
+
className: t.className || void 0,
|
|
70
|
+
style: t.style
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function O(t) {
|
|
74
|
+
if (!t || typeof getComputedStyle > "u") return {};
|
|
75
|
+
let n = getComputedStyle(t), r = {};
|
|
76
|
+
for (let t of e) {
|
|
77
|
+
let e = n.getPropertyValue("--" + t).trim();
|
|
78
|
+
e && (r["--" + t] = e);
|
|
79
|
+
}
|
|
80
|
+
return n.colorScheme && n.colorScheme !== "normal" && (r.colorScheme = n.colorScheme), r;
|
|
81
|
+
}
|
|
82
|
+
function k({ scope: e, appearance: n, tint: r, vars: i, className: a, style: s, ...c }) {
|
|
83
|
+
let u = x(), d = e === "terminal" ? "dark" : n ?? u ?? (e ? "light" : void 0), f = T({
|
|
84
|
+
scope: e,
|
|
85
|
+
appearance: d,
|
|
86
|
+
tint: r,
|
|
87
|
+
vars: i
|
|
88
|
+
}), p = o(() => ({
|
|
89
|
+
scope: e,
|
|
90
|
+
appearance: d,
|
|
91
|
+
tint: r,
|
|
92
|
+
vars: i
|
|
93
|
+
}), [
|
|
94
|
+
e,
|
|
95
|
+
d,
|
|
96
|
+
r,
|
|
97
|
+
i
|
|
98
|
+
]);
|
|
99
|
+
return /* @__PURE__ */ l(E.Provider, {
|
|
100
|
+
value: p,
|
|
101
|
+
children: /* @__PURE__ */ l("div", {
|
|
102
|
+
"data-slot": "theme-scope",
|
|
103
|
+
...c,
|
|
104
|
+
"data-theme-scope": f["data-theme-scope"],
|
|
105
|
+
className: t(f.className, a),
|
|
106
|
+
style: {
|
|
107
|
+
...f.style,
|
|
108
|
+
...s
|
|
109
|
+
}
|
|
110
|
+
})
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
function A({ dark: e, tint: n, safeTop: i, children: a, className: o, style: c }) {
|
|
114
|
+
let f = x(), p = e ?? (f ? f === "dark" : void 0), h = i === !0 ? 59 : typeof i == "number" ? i : 0, [g, _] = s(null), v = r(() => g, [g]);
|
|
115
|
+
return /* @__PURE__ */ u("div", {
|
|
116
|
+
ref: _,
|
|
117
|
+
"data-slot": "bl-provider",
|
|
118
|
+
className: t("relative h-full w-full overflow-hidden bg-muted font-sans text-foreground select-none transition-[background] duration-spring-smooth ease-spring-smooth", C(p === void 0 ? void 0 : p ? "dark" : "light"), o),
|
|
119
|
+
style: {
|
|
120
|
+
...w(n),
|
|
121
|
+
"--bl-safe-top": h + "px",
|
|
122
|
+
...c
|
|
123
|
+
},
|
|
124
|
+
children: [/* @__PURE__ */ l(d, {
|
|
125
|
+
getContainer: v,
|
|
126
|
+
children: /* @__PURE__ */ l(m.Provider, {
|
|
127
|
+
value: h,
|
|
128
|
+
children: a
|
|
129
|
+
})
|
|
130
|
+
}), h ? /* @__PURE__ */ l("div", {
|
|
131
|
+
className: "pointer-events-none absolute left-1/2 z-400 h-[35px] w-[118px] -translate-x-1/2 rounded-[18px] bg-black",
|
|
132
|
+
style: { top: Math.max(8, h / 5) },
|
|
133
|
+
"aria-hidden": "true"
|
|
134
|
+
}) : null]
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
//#endregion
|
|
138
|
+
export { _ as AppearanceContext, v as AppearanceProvider, A as BLProvider, m as BLSafeCtx, h as BLStickyCtx, e as THEME_VARS, k as ThemeScope, E as ThemeScopeContext, g as chromeOffset, f as chromeStore, O as readThemeVars, C as themeScopeClass, T as themeScopeProps, S as themeVarStyle, w as tintVars, x as useAppearance, p as useChromeHidden, D as useThemeScopeProps };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Color utilities (bg-*, text-*, border-*…) by name: `--color-<name>`. */
|
|
2
|
+
export declare const COLOR_TOKENS: readonly ["background", "foreground", "card", "card-foreground", "popover", "popover-foreground", "primary", "primary-foreground", "secondary", "secondary-foreground", "muted", "muted-foreground", "accent", "accent-foreground", "destructive", "border", "input", "ring", "chart-1", "chart-2", "chart-3", "chart-4", "chart-5", "sidebar", "sidebar-foreground", "sidebar-primary", "sidebar-primary-foreground", "sidebar-accent", "sidebar-accent-foreground", "sidebar-border", "sidebar-ring", "success", "warning", "tertiary-foreground", "secondary-strong", "overlay", "bar", "sticky", "handle", "link", "code", "code-foreground"];
|
|
3
|
+
/** Font-size utilities (text-*): `--text-<name>`. Size only — no line-height. */
|
|
4
|
+
export declare const TEXT_TOKENS: readonly ["caption2", "caption", "footnote", "detail", "subhead", "callout", "body", "title"];
|
|
5
|
+
/** Radius utilities (rounded-*): `--radius-<name>`, all derived from the `--radius` variable. */
|
|
6
|
+
export declare const RADIUS_TOKENS: readonly ["ctl", "panel", "card", "sheet"];
|
|
7
|
+
/** Shadow utilities (shadow-*): `--shadow-<name>`. */
|
|
8
|
+
export declare const SHADOW_TOKENS: readonly ["hairline", "hairline-t", "hairline-b"];
|
|
9
|
+
/** Spacing utilities (h-*, min-h-*, size-*…) added by BL UI: `--spacing-<name>`. */
|
|
10
|
+
export declare const SPACING_TOKENS: readonly ["toolbar", "row"];
|
|
11
|
+
/** Font-family utilities (font-*): `--font-<name>`. */
|
|
12
|
+
export declare const FONT_TOKENS: readonly ["sans", "mono"];
|
|
13
|
+
/** The CSS variables a theme (or a `ThemeScope`'s `vars`) sets, without the leading `--`. */
|
|
14
|
+
export declare const THEME_VARS: readonly ["background", "foreground", "card", "card-foreground", "popover", "popover-foreground", "primary", "primary-foreground", "secondary", "secondary-foreground", "muted", "muted-foreground", "accent", "accent-foreground", "destructive", "border", "input", "ring", "chart-1", "chart-2", "chart-3", "chart-4", "chart-5", "sidebar", "sidebar-foreground", "sidebar-primary", "sidebar-primary-foreground", "sidebar-accent", "sidebar-accent-foreground", "sidebar-border", "sidebar-ring", "success", "warning", "tertiary-foreground", "secondary-strong", "overlay", "bar", "sticky", "handle", "link", "code", "code-foreground", "radius", "font-sans", "font-mono"];
|
|
15
|
+
export type ThemeVar = (typeof THEME_VARS)[number];
|
|
16
|
+
//# sourceMappingURL=tokens.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.generated.d.ts","sourceRoot":"","sources":["../../src/lib/tokens.generated.ts"],"names":[],"mappings":"AAGA,2EAA2E;AAC3E,eAAO,MAAM,YAAY,mnBA2Cf,CAAC;AAEX,iFAAiF;AACjF,eAAO,MAAM,WAAW,+FASd,CAAC;AAEX,iGAAiG;AACjG,eAAO,MAAM,aAAa,4CAKhB,CAAC;AAEX,sDAAsD;AACtD,eAAO,MAAM,aAAa,mDAIhB,CAAC;AAEX,oFAAoF;AACpF,eAAO,MAAM,cAAc,6BAGjB,CAAC;AAEX,uDAAuD;AACvD,eAAO,MAAM,WAAW,2BAGd,CAAC;AAEX,6FAA6F;AAC7F,eAAO,MAAM,UAAU,upBA8Cb,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/lib/tokens.generated.ts
|
|
2
|
+
var e = /* @__PURE__ */ "background.foreground.card.card-foreground.popover.popover-foreground.primary.primary-foreground.secondary.secondary-foreground.muted.muted-foreground.accent.accent-foreground.destructive.border.input.ring.chart-1.chart-2.chart-3.chart-4.chart-5.sidebar.sidebar-foreground.sidebar-primary.sidebar-primary-foreground.sidebar-accent.sidebar-accent-foreground.sidebar-border.sidebar-ring.success.warning.tertiary-foreground.secondary-strong.overlay.bar.sticky.handle.link.code.code-foreground".split("."), t = [
|
|
3
|
+
"caption2",
|
|
4
|
+
"caption",
|
|
5
|
+
"footnote",
|
|
6
|
+
"detail",
|
|
7
|
+
"subhead",
|
|
8
|
+
"callout",
|
|
9
|
+
"body",
|
|
10
|
+
"title"
|
|
11
|
+
], n = [
|
|
12
|
+
"ctl",
|
|
13
|
+
"panel",
|
|
14
|
+
"card",
|
|
15
|
+
"sheet"
|
|
16
|
+
], r = [
|
|
17
|
+
"hairline",
|
|
18
|
+
"hairline-t",
|
|
19
|
+
"hairline-b"
|
|
20
|
+
], i = ["toolbar", "row"], a = ["sans", "mono"], o = /* @__PURE__ */ "background.foreground.card.card-foreground.popover.popover-foreground.primary.primary-foreground.secondary.secondary-foreground.muted.muted-foreground.accent.accent-foreground.destructive.border.input.ring.chart-1.chart-2.chart-3.chart-4.chart-5.sidebar.sidebar-foreground.sidebar-primary.sidebar-primary-foreground.sidebar-accent.sidebar-accent-foreground.sidebar-border.sidebar-ring.success.warning.tertiary-foreground.secondary-strong.overlay.bar.sticky.handle.link.code.code-foreground.radius.font-sans.font-mono".split(".");
|
|
21
|
+
//#endregion
|
|
22
|
+
export { e as COLOR_TOKENS, a as FONT_TOKENS, n as RADIUS_TOKENS, r as SHADOW_TOKENS, i as SPACING_TOKENS, t as TEXT_TOKENS, o as THEME_VARS };
|
package/dist/lib/utils.d.ts
CHANGED
|
@@ -4,4 +4,9 @@ export declare const FONT = "-apple-system,BlinkMacSystemFont,'SF Pro Text','Seg
|
|
|
4
4
|
/** @deprecated Legacy iOS curve. New motion uses the spring tokens (lib/motion.ts `springs`, CSS `--ease-spring-*`). */
|
|
5
5
|
export declare const EASE = "cubic-bezier(.32,.72,0,1)";
|
|
6
6
|
export declare const BARH = 52;
|
|
7
|
+
/** Pressables: no tap flash, the host font, and a brightness nudge on hover (dimmer on light surfaces, brighter on
|
|
8
|
+
dark ones — the terminal scope is dark in both appearances). */
|
|
9
|
+
export declare const pressable = "[-webkit-tap-highlight-color:transparent] [font-family:inherit] hover:brightness-[.97] dark:hover:brightness-[1.12]";
|
|
10
|
+
/** A brand tile: the accent into iOS indigo (#5E5CE6, a fixed brand color). */
|
|
11
|
+
export declare const brandTile = "bg-[linear-gradient(135deg,var(--primary),#5E5CE6)]";
|
|
7
12
|
//# sourceMappingURL=utils.d.ts.map
|
package/dist/lib/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAoB7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAED,eAAO,MAAM,IAAI,iGAC+E,CAAC;AACjG,wHAAwH;AACxH,eAAO,MAAM,IAAI,8BAA8B,CAAC;AAChD,eAAO,MAAM,IAAI,KAAK,CAAC;AAEvB;mEACmE;AACnE,eAAO,MAAM,SAAS,wHACiG,CAAC;AAExH,+EAA+E;AAC/E,eAAO,MAAM,SAAS,wDAAwD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { COLOR_TOKENS as e, FONT_TOKENS as t, RADIUS_TOKENS as n, SHADOW_TOKENS as r, SPACING_TOKENS as i, TEXT_TOKENS as a } from "./tokens.generated.js";
|
|
2
|
+
import { clsx as o } from "clsx";
|
|
3
|
+
import { extendTailwindMerge as s } from "tailwind-merge";
|
|
4
|
+
//#region src/lib/utils.ts
|
|
5
|
+
var c = s({ extend: { theme: {
|
|
6
|
+
color: [...e],
|
|
7
|
+
text: [...a],
|
|
8
|
+
radius: [...n],
|
|
9
|
+
shadow: [...r],
|
|
10
|
+
spacing: [...i],
|
|
11
|
+
font: [...t]
|
|
12
|
+
} } });
|
|
13
|
+
function l(...e) {
|
|
14
|
+
return c(o(e));
|
|
15
|
+
}
|
|
16
|
+
var u = "-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',Roboto,'Helvetica Neue',sans-serif", d = "cubic-bezier(.32,.72,0,1)", f = 52, p = "[-webkit-tap-highlight-color:transparent] [font-family:inherit] hover:brightness-[.97] dark:hover:brightness-[1.12]", m = "bg-[linear-gradient(135deg,var(--primary),#5E5CE6)]";
|
|
17
|
+
//#endregion
|
|
18
|
+
export { f as BARH, d as EASE, u as FONT, m as brandTile, l as cn, p as pressable };
|
package/dist/theme.css
CHANGED
|
@@ -178,66 +178,6 @@
|
|
|
178
178
|
--handle: rgba(255, 255, 255, .22);
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
/* ── Chat scope (ChatShell): the team-chat palette ── */
|
|
182
|
-
[data-theme-scope="chat"] {
|
|
183
|
-
color-scheme: light;
|
|
184
|
-
--background: #FFFFFF;
|
|
185
|
-
--foreground: #17171C;
|
|
186
|
-
--card: #F4F4F7;
|
|
187
|
-
--card-foreground: #17171C;
|
|
188
|
-
--popover: #F4F4F7;
|
|
189
|
-
--popover-foreground: #17171C;
|
|
190
|
-
--secondary: rgba(0, 0, 0, .045);
|
|
191
|
-
--secondary-foreground: #3C3C43;
|
|
192
|
-
--muted: #ECECF0;
|
|
193
|
-
--muted-foreground: rgba(60, 60, 67, .72);
|
|
194
|
-
--accent: rgba(0, 0, 0, .025);
|
|
195
|
-
--accent-foreground: #17171C;
|
|
196
|
-
--destructive: #E0352B;
|
|
197
|
-
--border: rgba(0, 0, 0, .08);
|
|
198
|
-
--input: rgba(0, 0, 0, .045);
|
|
199
|
-
--sidebar: #F7F7F9;
|
|
200
|
-
--sidebar-foreground: #17171C;
|
|
201
|
-
--sidebar-accent: rgba(0, 0, 0, .025);
|
|
202
|
-
--sidebar-accent-foreground: #17171C;
|
|
203
|
-
--sidebar-border: rgba(0, 0, 0, .08);
|
|
204
|
-
--success: #1F9D45;
|
|
205
|
-
--warning: #C76A00;
|
|
206
|
-
--tertiary-foreground: rgba(60, 60, 67, .46);
|
|
207
|
-
--secondary-strong: rgba(0, 0, 0, .08);
|
|
208
|
-
--overlay: rgba(0, 0, 0, .25);
|
|
209
|
-
--link: #0A64D6;
|
|
210
|
-
}
|
|
211
|
-
[data-theme-scope="chat"].dark {
|
|
212
|
-
color-scheme: dark;
|
|
213
|
-
--background: #131318;
|
|
214
|
-
--foreground: #EDEDF2;
|
|
215
|
-
--card: #1B1B22;
|
|
216
|
-
--card-foreground: #EDEDF2;
|
|
217
|
-
--popover: #1B1B22;
|
|
218
|
-
--popover-foreground: #EDEDF2;
|
|
219
|
-
--secondary: rgba(255, 255, 255, .055);
|
|
220
|
-
--secondary-foreground: #fff;
|
|
221
|
-
--muted: #0D0D11;
|
|
222
|
-
--muted-foreground: rgba(235, 235, 245, .6);
|
|
223
|
-
--accent: rgba(255, 255, 255, .035);
|
|
224
|
-
--accent-foreground: #EDEDF2;
|
|
225
|
-
--destructive: #FF453A;
|
|
226
|
-
--border: rgba(255, 255, 255, .07);
|
|
227
|
-
--input: rgba(255, 255, 255, .055);
|
|
228
|
-
--sidebar: #101015;
|
|
229
|
-
--sidebar-foreground: #EDEDF2;
|
|
230
|
-
--sidebar-accent: rgba(255, 255, 255, .035);
|
|
231
|
-
--sidebar-accent-foreground: #EDEDF2;
|
|
232
|
-
--sidebar-border: rgba(255, 255, 255, .07);
|
|
233
|
-
--success: #32D74B;
|
|
234
|
-
--warning: #FF9F0A;
|
|
235
|
-
--tertiary-foreground: rgba(235, 235, 245, .35);
|
|
236
|
-
--secondary-strong: rgba(255, 255, 255, .1);
|
|
237
|
-
--overlay: rgba(0, 0, 0, .5);
|
|
238
|
-
--link: #7EB6FF;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
181
|
/* ── Sheet scope (FloatingSheet, FloatingChat, ArtifactChatContainer given a `tone`): the surface's text,
|
|
242
182
|
cards, fills and hairlines take the tone; the page's background and accent stay the host's ── */
|
|
243
183
|
[data-theme-scope="sheet"].dark {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brett_lamy/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -23,13 +23,10 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@brett_lamy/docstream": "1.
|
|
27
|
-
"@brett_lamy/docstream-editor": "1.
|
|
28
|
-
"@pierre/diffs": "^1.3.6",
|
|
29
|
-
"@pierre/trees": "1.0.0-beta.6",
|
|
26
|
+
"@brett_lamy/docstream": "1.7.0",
|
|
27
|
+
"@brett_lamy/docstream-editor": "1.7.0",
|
|
30
28
|
"@tiptap/core": "3.30.5",
|
|
31
29
|
"@tiptap/extension-code-block": "3.30.5",
|
|
32
|
-
"@tiptap/extension-code-block-lowlight": "3.30.5",
|
|
33
30
|
"@tiptap/extension-list": "3.30.5",
|
|
34
31
|
"@tiptap/extension-placeholder": "3.30.5",
|
|
35
32
|
"@tiptap/extension-table": "3.30.5",
|
|
@@ -50,7 +47,7 @@
|
|
|
50
47
|
"react": "^18 || ^19",
|
|
51
48
|
"react-dom": "^18 || ^19"
|
|
52
49
|
},
|
|
53
|
-
"description": "iOS-flavored React components
|
|
50
|
+
"description": "iOS-flavored React components on react-aria-components, Tailwind v4 and cva — containers, lists, tokens, Composer, PencilKit. Also a shadcn registry (source-copy items and app blocks).",
|
|
54
51
|
"license": "MIT",
|
|
55
52
|
"sideEffects": [
|
|
56
53
|
"*.css"
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { AdaptivePane } from './adaptive-pane';
|
|
3
|
-
declare const meta: Meta<typeof AdaptivePane>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof AdaptivePane>;
|
|
6
|
-
export declare const Modes: Story;
|
|
7
|
-
//# sourceMappingURL=adaptive-pane.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"adaptive-pane.stories.d.ts","sourceRoot":"","sources":["../../src/components/adaptive-pane.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAyB,MAAM,iBAAiB,CAAC;AAGtE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAGnC,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAkC3C,eAAO,MAAM,KAAK,EAAE,KAAkC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { Avatar } from './avatar';
|
|
3
|
-
declare const meta: Meta<typeof Avatar>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Avatar>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const Sizes: Story;
|
|
8
|
-
export declare const Palette: Story;
|
|
9
|
-
//# sourceMappingURL=avatar.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.stories.d.ts","sourceRoot":"","sources":["../../src/components/avatar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAI7B,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAErC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { Badge } from './badge';
|
|
3
|
-
declare const meta: Meta<typeof Badge>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Badge>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const Variants: Story;
|
|
8
|
-
export declare const Dark: Story;
|
|
9
|
-
//# sourceMappingURL=badge.stories.d.ts.map
|