@brett_lamy/ui 1.0.0 → 2.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 +36 -22
- package/dist/components/adaptive-pane.d.ts +2 -2
- package/dist/components/adaptive-pane.stories.d.ts +1 -1
- package/dist/components/animated-height.d.ts +2 -2
- package/dist/components/avatar.d.ts +1 -1
- package/dist/components/avatar.stories.d.ts +1 -1
- package/dist/components/badge.d.ts +3 -3
- package/dist/components/badge.stories.d.ts +1 -1
- package/dist/components/button.d.ts +3 -3
- package/dist/components/button.stories.d.ts +3 -1
- package/dist/components/button.stories.d.ts.map +1 -1
- package/dist/components/card.d.ts +3 -3
- package/dist/components/card.stories.d.ts +1 -1
- package/dist/components/celebrate.d.ts +1 -1
- package/dist/components/chat/chat-column.d.ts +1 -1
- package/dist/components/chat/chat-column.stories.d.ts +3 -2
- package/dist/components/chat/chat-column.stories.d.ts.map +1 -1
- package/dist/components/chat/floating-chat.d.ts +21 -2
- package/dist/components/chat/floating-chat.d.ts.map +1 -1
- package/dist/components/chat/floating-chat.stories.d.ts +2 -3
- package/dist/components/chat/floating-chat.stories.d.ts.map +1 -1
- package/dist/components/chat/floating-sheet.d.ts +22 -2
- package/dist/components/chat/floating-sheet.d.ts.map +1 -1
- package/dist/components/chat/floating-sheet.stories.d.ts +2 -3
- package/dist/components/chat/floating-sheet.stories.d.ts.map +1 -1
- package/dist/components/chat/progress-stepper.d.ts +2 -2
- package/dist/components/checkbox.d.ts +3 -3
- package/dist/components/checkbox.stories.d.ts +1 -1
- package/dist/components/combobox.d.ts +3 -3
- package/dist/components/combobox.stories.d.ts +1 -1
- package/dist/components/command-menu.d.ts +210 -0
- package/dist/components/command-menu.d.ts.map +1 -0
- package/dist/components/command-menu.stories.d.ts +17 -0
- package/dist/components/command-menu.stories.d.ts.map +1 -0
- package/dist/components/credenza.d.ts +8 -3
- package/dist/components/credenza.d.ts.map +1 -1
- package/dist/components/credenza.stories.d.ts +1 -1
- package/dist/components/dialog.d.ts +5 -5
- package/dist/components/dialog.stories.d.ts +1 -1
- package/dist/components/disclosure.d.ts +4 -4
- package/dist/components/disclosure.stories.d.ts +1 -1
- package/dist/components/dropdown-menu.d.ts +5 -5
- package/dist/components/dropdown-menu.stories.d.ts +1 -1
- package/dist/components/edge-drawer.d.ts +15 -3
- package/dist/components/edge-drawer.d.ts.map +1 -1
- package/dist/components/edge-drawer.stories.d.ts +1 -1
- package/dist/components/edit-bar.d.ts +1 -1
- package/dist/components/edit-bar.stories.d.ts +1 -1
- package/dist/components/form.d.ts +2 -2
- package/dist/components/form.stories.d.ts +1 -1
- package/dist/components/haptic-indicator.d.ts +1 -1
- package/dist/components/haptic-indicator.stories.d.ts +1 -1
- package/dist/components/icon-swap.d.ts +1 -1
- package/dist/components/index-bar.d.ts +6 -3
- package/dist/components/index-bar.d.ts.map +1 -1
- package/dist/components/index-bar.stories.d.ts +1 -1
- package/dist/components/input.d.ts +3 -3
- package/dist/components/input.stories.d.ts +1 -1
- package/dist/components/kbd.d.ts +1 -1
- package/dist/components/kbd.stories.d.ts +1 -1
- package/dist/components/label.d.ts +3 -3
- package/dist/components/label.stories.d.ts +1 -1
- package/dist/components/list-box.d.ts +5 -5
- package/dist/components/list-box.stories.d.ts +1 -1
- package/dist/components/list-row.stories.d.ts +13 -1
- package/dist/components/list-row.stories.d.ts.map +1 -1
- package/dist/components/list.d.ts +49 -4
- package/dist/components/list.d.ts.map +1 -1
- package/dist/components/list.stories.d.ts +6 -2
- package/dist/components/list.stories.d.ts.map +1 -1
- package/dist/components/markdown-editor.d.ts +39 -5
- package/dist/components/markdown-editor.d.ts.map +1 -1
- package/dist/components/markdown-editor.stories.d.ts +4 -1
- package/dist/components/markdown-editor.stories.d.ts.map +1 -1
- package/dist/components/measure-h.d.ts +1 -1
- package/dist/components/morph.d.ts +64 -0
- package/dist/components/morph.d.ts.map +1 -0
- package/dist/components/morph.stories.d.ts +14 -0
- package/dist/components/morph.stories.d.ts.map +1 -0
- package/dist/components/motion.stories.d.ts +1 -1
- package/dist/components/navigation-stack.d.ts +22 -5
- package/dist/components/navigation-stack.d.ts.map +1 -1
- package/dist/components/navigation-stack.stories.d.ts +12 -1
- package/dist/components/navigation-stack.stories.d.ts.map +1 -1
- package/dist/components/now-playing-bars.d.ts +21 -0
- package/dist/components/now-playing-bars.d.ts.map +1 -0
- package/dist/components/now-playing-bars.stories.d.ts +12 -0
- package/dist/components/now-playing-bars.stories.d.ts.map +1 -0
- package/dist/components/number-morph.d.ts +1 -1
- package/dist/components/pencilkit/pencil-canvas.d.ts +1 -1
- package/dist/components/pencilkit/pencil-canvas.stories.d.ts +1 -1
- package/dist/components/pencilkit/pencil-canvas.stories.d.ts.map +1 -1
- package/dist/components/pencilkit/pencil-toolbar.d.ts +13 -8
- package/dist/components/pencilkit/pencil-toolbar.d.ts.map +1 -1
- package/dist/components/pencilkit/pencil-toolbar.stories.d.ts +1 -1
- package/dist/components/pencilkit/pencil-toolbar.stories.d.ts.map +1 -1
- package/dist/components/pencilkit/pencilkit-annotator.d.ts +2 -2
- package/dist/components/pencilkit/stroke-path.d.ts +1 -1
- package/dist/components/pencilkit/use-pencil-history.d.ts +2 -2
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.stories.d.ts +1 -1
- package/dist/components/progress-ring.d.ts +85 -0
- package/dist/components/progress-ring.d.ts.map +1 -0
- package/dist/components/progress-ring.stories.d.ts +15 -0
- package/dist/components/progress-ring.stories.d.ts.map +1 -0
- package/dist/components/progress.d.ts +5 -5
- package/dist/components/progress.stories.d.ts +1 -1
- package/dist/components/qr-svg.d.ts +31 -4
- package/dist/components/qr-svg.d.ts.map +1 -1
- package/dist/components/qr-svg.stories.d.ts +9 -2
- package/dist/components/qr-svg.stories.d.ts.map +1 -1
- package/dist/components/radio-group.d.ts +4 -4
- package/dist/components/radio-group.stories.d.ts +1 -1
- package/dist/components/scroll-area.d.ts +3 -3
- package/dist/components/scroll-area.stories.d.ts +1 -1
- package/dist/components/search-field.d.ts +13 -5
- package/dist/components/search-field.d.ts.map +1 -1
- package/dist/components/search-field.stories.d.ts +3 -1
- package/dist/components/search-field.stories.d.ts.map +1 -1
- package/dist/components/segmented.d.ts +2 -2
- package/dist/components/segmented.d.ts.map +1 -1
- package/dist/components/segmented.stories.d.ts +1 -1
- package/dist/components/select.d.ts +5 -5
- package/dist/components/select.stories.d.ts +1 -1
- package/dist/components/separator.d.ts +3 -3
- package/dist/components/separator.stories.d.ts +1 -1
- package/dist/components/sheet.d.ts +4 -4
- package/dist/components/sheet.stories.d.ts +1 -1
- package/dist/components/side-drawer.d.ts +7 -2
- package/dist/components/side-drawer.d.ts.map +1 -1
- package/dist/components/side-drawer.stories.d.ts +1 -1
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.d.ts.map +1 -1
- package/dist/components/sidebar.stories.d.ts +1 -1
- package/dist/components/skeleton.d.ts +23 -5
- package/dist/components/skeleton.d.ts.map +1 -1
- package/dist/components/skeleton.stories.d.ts +3 -1
- package/dist/components/skeleton.stories.d.ts.map +1 -1
- package/dist/components/slider.d.ts +23 -4
- package/dist/components/slider.d.ts.map +1 -1
- package/dist/components/slider.stories.d.ts +4 -1
- package/dist/components/slider.stories.d.ts.map +1 -1
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/spinner.stories.d.ts +1 -1
- package/dist/components/split-view.d.ts +112 -12
- package/dist/components/split-view.d.ts.map +1 -1
- package/dist/components/split-view.stories.d.ts +35 -1
- package/dist/components/split-view.stories.d.ts.map +1 -1
- package/dist/components/switch.d.ts +3 -1
- package/dist/components/switch.d.ts.map +1 -1
- package/dist/components/switch.stories.d.ts +1 -1
- package/dist/components/syntax-highlighting.d.ts +14 -11
- package/dist/components/syntax-highlighting.d.ts.map +1 -1
- package/dist/components/syntax-highlighting.stories.d.ts +1 -1
- package/dist/components/tab-bar.d.ts +1 -1
- package/dist/components/tab-bar.stories.d.ts +1 -1
- package/dist/components/tab-view.d.ts +15 -14
- package/dist/components/tab-view.d.ts.map +1 -1
- package/dist/components/tab-view.stories.d.ts +18 -2
- package/dist/components/tab-view.stories.d.ts.map +1 -1
- package/dist/components/tabs.d.ts +5 -5
- package/dist/components/tabs.stories.d.ts +1 -1
- package/dist/components/text-field.d.ts +1 -1
- package/dist/components/text-field.stories.d.ts +1 -1
- package/dist/components/text-morph.d.ts +1 -1
- package/dist/components/textarea.d.ts +3 -3
- package/dist/components/toast.d.ts +112 -0
- package/dist/components/toast.d.ts.map +1 -0
- package/dist/components/toast.stories.d.ts +13 -0
- package/dist/components/toast.stories.d.ts.map +1 -0
- package/dist/components/toggle-group.d.ts +3 -3
- package/dist/components/toggle-group.stories.d.ts +1 -1
- package/dist/components/toggle.d.ts +3 -3
- package/dist/components/toggle.stories.d.ts +1 -1
- package/dist/components/tooltip.d.ts +2 -2
- package/dist/components/tooltip.stories.d.ts +1 -1
- package/dist/components/workbench/chat.d.ts +2 -2
- package/dist/components/workbench/chat.d.ts.map +1 -1
- package/dist/components/workbench/chat.stories.d.ts +1 -2
- package/dist/components/workbench/composer-files.d.ts +36 -0
- package/dist/components/workbench/composer-files.d.ts.map +1 -0
- package/dist/components/workbench/composer.d.ts +115 -32
- package/dist/components/workbench/composer.d.ts.map +1 -1
- package/dist/components/workbench/composer.stories.d.ts +8 -2
- package/dist/components/workbench/composer.stories.d.ts.map +1 -1
- package/dist/components/workbench/fixtures.d.ts +2 -2
- package/dist/components/workbench/fixtures.d.ts.map +1 -1
- package/dist/components/workbench/markdown.d.ts +2 -3
- package/dist/components/workbench/markdown.d.ts.map +1 -1
- package/dist/components/workbench/message-scroller.stories.d.ts +1 -2
- package/dist/components/workbench/message-scroller.stories.d.ts.map +1 -1
- package/dist/components/workbench/model-picker.d.ts +3 -3
- package/dist/components/workbench/model-picker.d.ts.map +1 -1
- package/dist/components/workbench/snap-sheet.d.ts +3 -2
- package/dist/components/workbench/snap-sheet.d.ts.map +1 -1
- package/dist/components/workbench/snap-sheet.stories.d.ts +1 -2
- package/dist/components/workbench/snap-sheet.stories.d.ts.map +1 -1
- package/dist/components/workbench/surfaces.d.ts +2 -2
- package/dist/components/workbench/surfaces.d.ts.map +1 -1
- package/dist/components/workbench/surfaces.stories.d.ts +1 -2
- package/dist/components/workbench/terminal.d.ts +10 -2
- package/dist/components/workbench/terminal.d.ts.map +1 -1
- package/dist/components/workbench/terminal.stories.d.ts +1 -2
- package/dist/components/workbench/terminal.stories.d.ts.map +1 -1
- package/dist/components/workbench/wb-popover.d.ts +3 -5
- package/dist/components/workbench/wb-popover.d.ts.map +1 -1
- package/dist/components/workbench/workbench-composer.d.ts +1 -1
- package/dist/demos/delivery/delivery-tracking-demo.d.ts +4 -3
- package/dist/demos/delivery/delivery-tracking-demo.d.ts.map +1 -1
- package/dist/demos/delivery/delivery-tracking-demo.stories.d.ts +2 -3
- package/dist/demos/haptics-playground.d.ts +4 -1
- package/dist/demos/haptics-playground.d.ts.map +1 -1
- package/dist/demos/haptics-playground.stories.d.ts +1 -1
- package/dist/demos/map-chat/map-agent.d.ts +2 -2
- package/dist/demos/map-chat/map-chat-demo.d.ts +3 -3
- package/dist/demos/map-chat/map-chat-demo.d.ts.map +1 -1
- package/dist/demos/map-chat/map-chat-demo.stories.d.ts +2 -3
- package/dist/demos/map-chat/places.d.ts +2 -2
- package/dist/demos/map-chat/tile-map.d.ts +39 -3
- package/dist/demos/map-chat/tile-map.d.ts.map +1 -1
- package/dist/demos/pencilkit/demo-strokes.d.ts +1 -1
- package/dist/demos/pencilkit/pencilkit-demo.d.ts +4 -2
- package/dist/demos/pencilkit/pencilkit-demo.d.ts.map +1 -1
- package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts +1 -1
- package/dist/demos/sidebar-demo.d.ts +1 -4
- package/dist/demos/sidebar-demo.d.ts.map +1 -1
- package/dist/demos/split-view-demos.d.ts +15 -2
- package/dist/demos/split-view-demos.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +46 -57
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15267 -11038
- package/dist/lib/chat/chat-shell-context.d.ts +3 -2
- package/dist/lib/chat/chat-shell-context.d.ts.map +1 -1
- package/dist/lib/chat/persistent-host.d.ts +4 -4
- package/dist/lib/container.d.ts +8 -1
- package/dist/lib/container.d.ts.map +1 -1
- package/dist/lib/haptics.d.ts +7 -5
- package/dist/lib/haptics.d.ts.map +1 -1
- package/dist/lib/icon-shapes/chat.d.ts +32 -0
- package/dist/lib/icon-shapes/chat.d.ts.map +1 -0
- package/dist/lib/icon-shapes/pencilkit.d.ts +49 -0
- package/dist/lib/icon-shapes/pencilkit.d.ts.map +1 -0
- package/dist/lib/icon-shapes/workbench.d.ts +199 -0
- package/dist/lib/icon-shapes/workbench.d.ts.map +1 -0
- package/dist/lib/icon.d.ts +1649 -7
- package/dist/lib/icon.d.ts.map +1 -1
- package/dist/lib/icon.stories.d.ts +8 -1
- package/dist/lib/icon.stories.d.ts.map +1 -1
- package/dist/lib/pencilkit/constants.d.ts +9 -9
- package/dist/lib/pencilkit/constants.d.ts.map +1 -1
- package/dist/lib/primitives.d.ts +1 -1
- package/dist/lib/primitives.d.ts.map +1 -1
- package/dist/lib/qr.d.ts +28 -0
- package/dist/lib/qr.d.ts.map +1 -0
- package/dist/lib/row-label.d.ts +9 -0
- package/dist/lib/row-label.d.ts.map +1 -0
- package/dist/lib/sheet-drag.d.ts +23 -8
- package/dist/lib/sheet-drag.d.ts.map +1 -1
- package/dist/lib/syntax.d.ts +27 -10
- package/dist/lib/syntax.d.ts.map +1 -1
- package/dist/lib/theme.d.ts +39 -8
- package/dist/lib/theme.d.ts.map +1 -1
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/workbench/icons.d.ts +6 -16
- package/dist/lib/workbench/icons.d.ts.map +1 -1
- package/dist/lib/workbench/motion.d.ts +1 -65
- package/dist/lib/workbench/motion.d.ts.map +1 -1
- package/dist/lib/workbench/press.d.ts +1 -1
- package/dist/lib/workbench/press.d.ts.map +1 -1
- package/dist/lib/workbench/theme.d.ts +3 -4
- package/dist/lib/workbench/theme.d.ts.map +1 -1
- package/dist/lib/workbench/util.d.ts +5 -3
- package/dist/lib/workbench/util.d.ts.map +1 -1
- package/dist/stories/frame.d.ts +1 -1
- package/dist/stories/primitive-frame.d.ts +1 -1
- package/dist/templates/artifact-chat-container.d.ts +8 -3
- package/dist/templates/artifact-chat-container.d.ts.map +1 -1
- package/dist/templates/artifact-chat-container.stories.d.ts +2 -3
- package/dist/templates/artifact-chat-container.stories.d.ts.map +1 -1
- package/dist/templates/chat-shell.d.ts +10 -9
- package/dist/templates/chat-shell.d.ts.map +1 -1
- package/dist/templates/workbench-shell.d.ts +8 -8
- package/dist/templates/workbench-shell.d.ts.map +1 -1
- package/dist/templates/workbench-shell.stories.d.ts +1 -2
- package/dist/templates/workbench-shell.stories.d.ts.map +1 -1
- package/dist/theme.css +325 -0
- package/package.json +7 -4
- package/dist/components/chat/channel-list.d.ts +0 -35
- package/dist/components/chat/channel-list.d.ts.map +0 -1
- package/dist/components/chat/channel-list.stories.d.ts +0 -14
- package/dist/components/chat/channel-list.stories.d.ts.map +0 -1
- package/dist/components/chat/chat-avatar.d.ts +0 -13
- package/dist/components/chat/chat-avatar.d.ts.map +0 -1
- package/dist/components/chat/chat-avatar.stories.d.ts +0 -10
- package/dist/components/chat/chat-avatar.stories.d.ts.map +0 -1
- package/dist/components/chat/chat-composer.d.ts +0 -22
- package/dist/components/chat/chat-composer.d.ts.map +0 -1
- package/dist/components/chat/chat-composer.stories.d.ts +0 -17
- package/dist/components/chat/chat-composer.stories.d.ts.map +0 -1
- package/dist/components/chat/chat.fixtures.d.ts +0 -29
- package/dist/components/chat/chat.fixtures.d.ts.map +0 -1
- package/dist/components/chat/member-list.d.ts +0 -21
- package/dist/components/chat/member-list.d.ts.map +0 -1
- package/dist/components/chat/message-list.d.ts +0 -34
- package/dist/components/chat/message-list.d.ts.map +0 -1
- package/dist/components/chat/message.d.ts +0 -47
- package/dist/components/chat/message.d.ts.map +0 -1
- package/dist/components/chat/message.stories.d.ts +0 -31
- package/dist/components/chat/message.stories.d.ts.map +0 -1
- package/dist/components/chat/rich-text.d.ts +0 -8
- package/dist/components/chat/rich-text.d.ts.map +0 -1
- package/dist/components/chat/rich-text.stories.d.ts +0 -10
- package/dist/components/chat/rich-text.stories.d.ts.map +0 -1
- package/dist/components/chat/server-header.d.ts +0 -10
- package/dist/components/chat/server-header.d.ts.map +0 -1
- package/dist/components/chat/thread-preview.d.ts +0 -25
- package/dist/components/chat/thread-preview.d.ts.map +0 -1
- package/dist/components/chat/thread-preview.stories.d.ts +0 -19
- package/dist/components/chat/thread-preview.stories.d.ts.map +0 -1
- package/dist/components/chat/user-panel.d.ts +0 -16
- package/dist/components/chat/user-panel.d.ts.map +0 -1
- package/dist/components/chat/workspace-rail.d.ts +0 -56
- package/dist/components/chat/workspace-rail.d.ts.map +0 -1
- package/dist/components/chat/workspace-rail.stories.d.ts +0 -13
- package/dist/components/chat/workspace-rail.stories.d.ts.map +0 -1
- package/dist/components/pencilkit/pk-icon.d.ts +0 -8
- package/dist/components/pencilkit/pk-icon.d.ts.map +0 -1
- package/dist/components/pill-button.d.ts +0 -11
- package/dist/components/pill-button.d.ts.map +0 -1
- package/dist/components/pill-button.stories.d.ts +0 -9
- package/dist/components/pill-button.stories.d.ts.map +0 -1
- package/dist/components/workbench/thread-sidebar.d.ts +0 -100
- package/dist/components/workbench/thread-sidebar.d.ts.map +0 -1
- package/dist/components/workbench/thread-sidebar.stories.d.ts +0 -10
- package/dist/components/workbench/thread-sidebar.stories.d.ts.map +0 -1
- package/dist/lib/chat/chat-icon.d.ts +0 -24
- package/dist/lib/chat/chat-icon.d.ts.map +0 -1
- package/dist/lib/chat/chat-tokens.d.ts +0 -72
- package/dist/lib/chat/chat-tokens.d.ts.map +0 -1
- package/dist/lib/chat/chat-users.d.ts +0 -18
- package/dist/lib/chat/chat-users.d.ts.map +0 -1
- package/dist/lib/chat/kvib.d.ts +0 -3
- package/dist/lib/chat/kvib.d.ts.map +0 -1
- package/dist/lib/chat/title-ref.d.ts +0 -3
- package/dist/lib/chat/title-ref.d.ts.map +0 -1
- package/dist/templates/chat-shell.stories.d.ts +0 -23
- package/dist/templates/chat-shell.stories.d.ts.map +0 -1
- package/dist/tsconfig.lib.tsbuildinfo +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @brett_lamy/ui
|
|
2
2
|
|
|
3
|
-
Touch-first React components inspired by UIKit container patterns. The package includes
|
|
3
|
+
Touch-first React components inspired by UIKit container patterns. Colors come from your shadcn theme (CSS variables); the iOS look ships as an optional theme. The package includes haptics, lists, navigation, adaptive split views, drawers, sheets, and a reusable jump rail — plus a team-chat scaffold (`ChatShell`, `ArtifactChatContainer`, `FloatingSheet`), an IDE workbench (`WorkbenchShell`, `Composer`, `MessageScroller`, terminal dock, surfaces, `MarkdownView`) and PencilKit drawing (`PencilCanvas`, pickers, `usePencilHistory`, on perfect-freehand).
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -8,10 +8,14 @@ Touch-first React components inspired by UIKit container patterns. The package i
|
|
|
8
8
|
npm i @brett_lamy/ui
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
Import the stylesheet once,
|
|
11
|
+
Import the stylesheet once — and, for the iOS palette, the bl-theme (it sets shadcn's CSS variables; leave it out to use your own shadcn theme). `BLProvider` picks light/dark and a tint for a subtree:
|
|
12
|
+
|
|
13
|
+
```css
|
|
14
|
+
@import '@brett_lamy/ui/styles.css';
|
|
15
|
+
@import '@brett_lamy/ui/theme.css'; /* optional: the iOS palette */
|
|
16
|
+
```
|
|
12
17
|
|
|
13
18
|
```tsx
|
|
14
|
-
import '@brett_lamy/ui/styles.css';
|
|
15
19
|
import { BLProvider, NavigationStack } from '@brett_lamy/ui';
|
|
16
20
|
|
|
17
21
|
export function App() {
|
|
@@ -23,7 +27,7 @@ export function App() {
|
|
|
23
27
|
}
|
|
24
28
|
```
|
|
25
29
|
|
|
26
|
-
React 18 and 19 are supported peer dependencies.
|
|
30
|
+
React 18 and 19 are supported peer dependencies. Upgrading from 1.x: see [Migrating to 2.0](https://blamy.github.io/ui/#/migrating-to-2).
|
|
27
31
|
|
|
28
32
|
## IndexBar
|
|
29
33
|
|
|
@@ -61,22 +65,22 @@ If `items` is omitted or empty, the component retains its A-Z form:
|
|
|
61
65
|
- Lists and navigation: `List`, `List.Section`, `List.Row`, `IndexBar`, `TabBar`, `TabView`, `EditBar`
|
|
62
66
|
- Inputs and feedback: `SearchField`, `Switch`, `Segmented`, `Haptics`, `HapticIndicator`, plus shadcn-style primitives (`Button`, `Dialog`, `Sheet`, `Select`, `ComboBox`, `Tabs`, …)
|
|
63
67
|
- Motion: `springs`, `springCss`, `TextMorph`, `NumberMorph`, `AnimatedHeight`, `ContentSwap`, `Celebrate`
|
|
64
|
-
- Foundations: `BLProvider`, `Icon`, `Avatar`, `Spinner
|
|
65
|
-
- Team chat: `ChatShell` and its regions (`ChatShellNav`, `ChatShellSidebar`, `ChatShellMain`, `ChatShellHeader`, `ChatShellAside`, `ChatShellPanel`…), `
|
|
66
|
-
- Workbench: `WorkbenchShell` and its parts (`WorkbenchSidebar`, `WorkbenchMain`, `WorkbenchHeader`, `WorkbenchDock`, `WorkbenchPanel`, `WorkbenchTabBar`, …),
|
|
68
|
+
- Foundations: `BLProvider`, `ThemeScope`, `AppearanceProvider`, `Icon`, `Avatar`, `Spinner`
|
|
69
|
+
- Team chat: `ChatShell` and its regions (`ChatShellNav`, `ChatShellSidebar`, `ChatShellMain`, `ChatShellHeader`, `ChatShellAside`, `ChatShellPanel`…), `FloatingSheet`, `FloatingChat`, `ChatColumn`, `ArtifactChatContainer` (the Discord parts — channels, messages, threads, members — live in the `discord-clone` registry block)
|
|
70
|
+
- Workbench: `WorkbenchShell` and its parts (`WorkbenchSidebar`, `WorkbenchMain`, `WorkbenchHeader`, `WorkbenchDock`, `WorkbenchPanel`, `WorkbenchTabBar`, …), conversation parts (`Conversation`, `UserMessage`, `AssistantMessage`, `WorkLog`, `ToolCall`, …), `TerminalHeader` / `TerminalBody`, surfaces (`SurfacePicker`, `SurfaceBrowser`, `SurfaceFiles`, `SurfaceDiff`, `SurfaceAgents`), `Composer` and its parts, `ModelPicker`, `MessageScroller`, `SnapSheet`, `MarkdownView`
|
|
67
71
|
- Demo apps: `MapChatDemo`, `DeliveryTrackingDemo`, `SidebarDemo`, `HapticsPlayground` (full apps — Discord, T3 Code, GitHub — are registry blocks)
|
|
68
72
|
|
|
69
73
|
Every component exports its props type from the package root. See the Storybook catalog for interaction and responsive examples.
|
|
70
74
|
|
|
71
75
|
## Team chat
|
|
72
76
|
|
|
73
|
-
`ChatShell` is a thin layout root: it measures its own width, owns the compact navigation drawer and applies the chat palette. Everything inside is a part you place yourself — leave out what a layout doesn't need. Parts read shell state (`width`, `compact`, `navOpen`, `setNavOpen`) through `useChatShell()`. A full Discord-style app
|
|
77
|
+
`ChatShell` is a thin layout root: it measures its own width, owns the compact navigation drawer and applies the chat palette. Everything inside is a part you place yourself — leave out what a layout doesn't need. Parts read shell state (`width`, `compact`, `navOpen`, `setNavOpen`) through `useChatShell()`. A full Discord-style app ships as the `discord-clone` registry block, with its channel, message, member and composer parts (install it to own and edit them).
|
|
74
78
|
|
|
75
79
|
```tsx
|
|
76
80
|
import {
|
|
77
81
|
ChatShell, ChatShellNav, ChatShellSidebar, ChatShellMain, ChatShellHeader, ChatShellNavTrigger, ChatShellTitle,
|
|
78
|
-
ChatShellFooter,
|
|
79
|
-
|
|
82
|
+
ChatShellFooter, TabView, TabViewBar, TabViewList, TabViewTab, TabViewIndicator, SidebarContent, SidebarSection,
|
|
83
|
+
SidebarItem, Composer, ComposerCard, ComposerInput, ComposerFooter, ComposerSpacer, ComposerSend,
|
|
80
84
|
} from '@brett_lamy/ui';
|
|
81
85
|
|
|
82
86
|
export function Chat() {
|
|
@@ -84,23 +88,33 @@ export function Chat() {
|
|
|
84
88
|
return (
|
|
85
89
|
<ChatShell breakpoint={880}>
|
|
86
90
|
<ChatShellNav>
|
|
87
|
-
<
|
|
88
|
-
<
|
|
89
|
-
|
|
91
|
+
<TabView orientation="vertical" defaultSelectedKey="hq" className="contents">
|
|
92
|
+
<TabViewBar variant="workspace">
|
|
93
|
+
<TabViewList aria-label="Workspaces">
|
|
94
|
+
<TabViewTab id="hq" textValue="HQ"><TabViewIndicator variant="pill" />{/* tile */}</TabViewTab>
|
|
95
|
+
</TabViewList>
|
|
96
|
+
</TabViewBar>
|
|
97
|
+
</TabView>
|
|
90
98
|
<ChatShellSidebar>
|
|
91
|
-
<
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
<
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
</ChannelList>
|
|
99
|
+
<SidebarContent>
|
|
100
|
+
<SidebarSection title="Team">
|
|
101
|
+
<SidebarItem label="general" active={channel === 'general'} onPress={() => setChannel('general')} />
|
|
102
|
+
<SidebarItem label="dev" badge={2} active={channel === 'dev'} onPress={() => setChannel('dev')} />
|
|
103
|
+
</SidebarSection>
|
|
104
|
+
</SidebarContent>
|
|
98
105
|
</ChatShellSidebar>
|
|
99
106
|
</ChatShellNav>
|
|
100
107
|
<ChatShellMain>
|
|
101
108
|
<ChatShellHeader><ChatShellNavTrigger /><ChatShellTitle>{channel}</ChatShellTitle></ChatShellHeader>
|
|
102
|
-
<
|
|
103
|
-
<ChatShellFooter
|
|
109
|
+
<div role="log" className="min-h-0 flex-1 overflow-y-auto">{/* messages */}</div>
|
|
110
|
+
<ChatShellFooter>
|
|
111
|
+
<Composer onSubmit={send}>
|
|
112
|
+
<ComposerCard>
|
|
113
|
+
<ComposerInput placeholder={'Message #' + channel} />
|
|
114
|
+
<ComposerFooter><ComposerSpacer /><ComposerSend /></ComposerFooter>
|
|
115
|
+
</ComposerCard>
|
|
116
|
+
</Composer>
|
|
117
|
+
</ChatShellFooter>
|
|
104
118
|
</ChatShellMain>
|
|
105
119
|
</ChatShell>
|
|
106
120
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { EdgeDrawerProps } from './edge-drawer';
|
|
3
3
|
export type AdaptivePaneMode = 'column' | 'drawer' | 'cover' | 'hidden';
|
|
4
4
|
export interface AdaptivePaneProps extends Omit<EdgeDrawerProps, 'open' | 'width'> {
|
|
5
5
|
mode: AdaptivePaneMode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { SpringName } from '../lib/motion';
|
|
3
3
|
export interface AnimatedHeightProps {
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
/** Spring preset for the height (default `tray`). */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
export declare const badgeVariants: (props?: ({
|
|
4
4
|
variant?: "secondary" | "destructive" | "success" | "outline" | "default" | "tinted" | null | undefined;
|
|
5
|
-
} & import(
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export interface BadgeProps extends ComponentProps<'span'>, VariantProps<typeof badgeVariants> {
|
|
7
7
|
}
|
|
8
8
|
export declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ButtonProps as AriaButtonProps } from 'react-aria-components';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
export declare const buttonVariants: (props?: ({
|
|
4
4
|
variant?: "secondary" | "destructive" | "link" | "default" | "ghost" | null | undefined;
|
|
5
5
|
size?: "default" | "icon" | "sm" | "lg" | "pill" | null | undefined;
|
|
6
|
-
} & import(
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export interface ButtonProps extends Omit<AriaButtonProps, 'render'>, VariantProps<typeof buttonVariants> {
|
|
8
8
|
/** Tooltip — react-aria's Button drops `title`, so it is rendered onto the <button> here. */
|
|
9
9
|
title?: string;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import { Button } from './button';
|
|
3
3
|
declare const meta: Meta<typeof Button>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof Button>;
|
|
6
6
|
export declare const Variants: Story;
|
|
7
|
+
/** `size="pill"` — the full-width iOS action pill (was `PillButton`; its soft tone is `variant="secondary"`). */
|
|
8
|
+
export declare const Pill: Story;
|
|
7
9
|
/** Each press counts once and ticks once — the haptics check taps this in iOS-Safari mode. */
|
|
8
10
|
export declare const PressCounter: Story;
|
|
9
11
|
//# sourceMappingURL=button.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.stories.d.ts","sourceRoot":"","sources":["../../src/components/button.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,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,QAAQ,EAAE,KAatB,CAAC;AAEF,8FAA8F;AAC9F,eAAO,MAAM,YAAY,EAAE,KAU1B,CAAC"}
|
|
1
|
+
{"version":3,"file":"button.stories.d.ts","sourceRoot":"","sources":["../../src/components/button.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,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,QAAQ,EAAE,KAatB,CAAC;AAEF,iHAAiH;AACjH,eAAO,MAAM,IAAI,EAAE,KAOlB,CAAC;AAEF,8FAA8F;AAC9F,eAAO,MAAM,YAAY,EAAE,KAU1B,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
export declare const cardVariants: (props?: ({
|
|
4
4
|
variant?: "outline" | "default" | "elevated" | null | undefined;
|
|
5
|
-
} & import(
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export interface CardProps extends ComponentProps<'div'>, VariantProps<typeof cardVariants> {
|
|
7
7
|
}
|
|
8
8
|
export declare function Card({ className, variant, ...props }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
2
|
export type ChatColumnProps = ComponentProps<'aside'>;
|
|
3
3
|
export declare function ChatColumn({ className, ...props }: ChatColumnProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
/** The scrolling region; takes the column's remaining height. */
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '../../styles.css';
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
3
2
|
import { ChatColumn } from './chat-column';
|
|
4
3
|
declare const meta: Meta<typeof ChatColumn>;
|
|
5
4
|
export default meta;
|
|
6
5
|
type Story = StoryObj<typeof ChatColumn>;
|
|
6
|
+
/** A ChatColumn on a plain page: the transcript on the dark chat palette, the Workbench Composer in the `glass`
|
|
7
|
+
scope (as ArtifactChatContainer docks it). */
|
|
7
8
|
export declare const Default: Story;
|
|
8
9
|
//# sourceMappingURL=chat-column.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-column.stories.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat-column.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAA4C,MAAM,eAAe,CAAC;AAqBrF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAGjC,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"chat-column.stories.d.ts","sourceRoot":"","sources":["../../../src/components/chat/chat-column.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAA4C,MAAM,eAAe,CAAC;AAqBrF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAGjC,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC;iDACiD;AACjD,eAAO,MAAM,OAAO,EAAE,KAkBrB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { CSSProperties, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { FloatingSheetAppearance, FloatingSheetFabPosition, FloatingSheetTone } from './floating-sheet';
|
|
3
3
|
export type FloatingChatFabPosition = FloatingSheetFabPosition;
|
|
4
4
|
export interface FloatingChatContextValue {
|
|
5
5
|
/** Whether the full transcript is revealed. */
|
|
@@ -54,6 +54,25 @@ export interface FloatingChatProps {
|
|
|
54
54
|
className?: string;
|
|
55
55
|
style?: CSSProperties;
|
|
56
56
|
}
|
|
57
|
+
/** The layer. --ck-sheet-surface / --ck-sheet-line are the RGB triplets the glass mixes its alphas into (dark glass
|
|
58
|
+
unless the tone is light). ck-floating-chat keeps the host's palette for the transcript (styles.css). */
|
|
59
|
+
export declare const floatingChatVariants: (props?: ({
|
|
60
|
+
tone?: "light" | "auto" | "dark" | null | undefined;
|
|
61
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
62
|
+
/** The transcript's bump on top of the composer: glass that firms up as it grows, or an opaque card. */
|
|
63
|
+
export declare const floatingChatBumpVariants: (props?: ({
|
|
64
|
+
appearance?: "sheet" | "glass" | null | undefined;
|
|
65
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
66
|
+
/** The FAB the chat folds into: glazed or opaque, resting at one of eight spots. */
|
|
67
|
+
export declare const floatingChatFabVariants: (props?: ({
|
|
68
|
+
appearance?: "sheet" | "glass" | null | undefined;
|
|
69
|
+
position?: "top-left" | "top-center" | "top-right" | "center-left" | "center-right" | "bottom-left" | "bottom-center" | "bottom-right" | null | undefined;
|
|
70
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
71
|
+
/** The embedded Workbench Composer's theme scope: the bl-theme's `glass` (dark unless the chat's tone is light). */
|
|
72
|
+
export declare function glassScopeProps(tone: FloatingSheetTone): {
|
|
73
|
+
'data-theme-scope': "glass";
|
|
74
|
+
className: string;
|
|
75
|
+
};
|
|
57
76
|
/**
|
|
58
77
|
* The floating chat: the host's Workbench `Composer` floats over any positioned host, and the transcript
|
|
59
78
|
* hangs off a draggable top bump of that composer (added through a `ComposerOutlet`, so the composer itself
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floating-chat.d.ts","sourceRoot":"","sources":["../../../src/components/chat/floating-chat.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"floating-chat.d.ts","sourceRoot":"","sources":["../../../src/components/chat/floating-chat.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAUf,OAAO,EAAkB,KAAK,uBAAuB,EAAE,KAAK,wBAAwB,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAGvI,MAAM,MAAM,uBAAuB,GAAG,wBAAwB,CAAC;AAE/D,MAAM,WAAW,wBAAwB;IACvC,+CAA+C;IAC/C,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,+FAA+F;IAC/F,QAAQ,EAAE,MAAM,CAAC;IACjB,oFAAoF;IACpF,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,qDAAqD;IACrD,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C;AAID,wBAAgB,eAAe,IAAI,wBAAwB,CAM1D;AAED,MAAM,WAAW,iBAAiB;IAChC,mDAAmD;IACnD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,kEAAkE;IAClE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,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Q,EACR,UAAoB,EACpB,IAAI,EAAE,QAAQ,EACd,KAAmB,EACnB,QAAQ,EACR,SAAS,EACT,KAAK,GACN,EAAE,iBAAiB,2CA6OnB;yBAjQe,YAAY"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '
|
|
3
|
-
import { type FloatingChatFabPosition } from './floating-chat';
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { FloatingChatFabPosition } from './floating-chat';
|
|
4
3
|
interface Args {
|
|
5
4
|
width: number;
|
|
6
5
|
height: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floating-chat.stories.d.ts","sourceRoot":"","sources":["../../../src/components/chat/floating-chat.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAgB,KAAK,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAqB7E,UAAU,IAAI;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,uBAAuB,CAAC;IACrC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACjC;
|
|
1
|
+
{"version":3,"file":"floating-chat.stories.d.ts","sourceRoot":"","sources":["../../../src/components/chat/floating-chat.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAgB,KAAK,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAqB7E,UAAU,IAAI;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,uBAAuB,CAAC;IACrC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CACjC;AAkDD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CAmBpB,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;AAE5B,eAAO,MAAM,iBAAiB,EAAE,KAAU,CAAC;AAC3C,eAAO,MAAM,OAAO,EAAE,KAA+B,CAAC;AACtD,eAAO,MAAM,OAAO,EAAE,KAAmC,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CSSProperties, ReactNode, RefObject } from 'react';
|
|
2
2
|
export type FloatingSheetFabPosition = 'top-left' | 'top-center' | 'top-right' | 'center-left' | 'center-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
3
3
|
/** Translucent glass over dark content, or an opaque card like a system sheet. */
|
|
4
4
|
export type FloatingSheetAppearance = 'glass' | 'sheet';
|
|
5
|
-
/** Colour scheme of the surface
|
|
5
|
+
/** Colour scheme of the surface: `dark` / `light` put the bl-theme's `sheet` scope on it in that appearance (the
|
|
6
|
+
host's background and accent stay); `auto` inherits the host's theme. */
|
|
6
7
|
export type FloatingSheetTone = 'auto' | 'dark' | 'light';
|
|
7
8
|
export interface FloatingSheetContextValue {
|
|
8
9
|
/** Whether the sheet has grown to its full height. */
|
|
@@ -17,6 +18,25 @@ export interface FloatingSheetContextValue {
|
|
|
17
18
|
setMinimized: (minimized: boolean) => void;
|
|
18
19
|
}
|
|
19
20
|
export declare function useFloatingSheet(): FloatingSheetContextValue;
|
|
21
|
+
/** The surface: translucent glass (a highlight gradient over the tone's surface colour) or an opaque system sheet
|
|
22
|
+
(card colour, no glass highlights, a soft shadow that deepens as it grows) — resting, hidden by scrolling, or
|
|
23
|
+
folded into its FAB at one of eight spots (bottom-center keeps 20px from the host edge even when docked). */
|
|
24
|
+
export declare const floatingSheetSurfaceVariants: (props?: ({
|
|
25
|
+
appearance?: "sheet" | "glass" | null | undefined;
|
|
26
|
+
placement?: "hidden" | "top-left" | "top-center" | "top-right" | "center-left" | "center-right" | "bottom-left" | "bottom-center" | "bottom-right" | "resting" | null | undefined;
|
|
27
|
+
hidden?: boolean | null | undefined;
|
|
28
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
29
|
+
/** The layer. --ck-sheet-surface / --ck-sheet-line are the RGB triplets the glass mixes its alphas into: dark glass
|
|
30
|
+
unless the tone is light. ck-floating-sheet keys the body / peek-mask rules in styles.css. */
|
|
31
|
+
export declare const floatingSheetVariants: (props?: ({
|
|
32
|
+
tone?: "light" | "auto" | "dark" | null | undefined;
|
|
33
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
34
|
+
/** The theme-scope props for a floating chat surface's tone: the bl-theme's `sheet` scope in that appearance, or
|
|
35
|
+
nothing for `auto` (the host's theme carries through). */
|
|
36
|
+
export declare function sheetToneProps(tone: FloatingSheetTone): {
|
|
37
|
+
'data-theme-scope'?: 'sheet';
|
|
38
|
+
className?: string;
|
|
39
|
+
};
|
|
20
40
|
export interface FloatingSheetProps {
|
|
21
41
|
/** Controlled state for the fully grown sheet. */
|
|
22
42
|
open?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floating-sheet.d.ts","sourceRoot":"","sources":["../../../src/components/chat/floating-sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"floating-sheet.d.ts","sourceRoot":"","sources":["../../../src/components/chat/floating-sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AA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2
|
+
import { FloatingSheetAppearance, FloatingSheetTone } from './floating-sheet';
|
|
4
3
|
interface Args {
|
|
5
4
|
width: number;
|
|
6
5
|
height: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floating-sheet.stories.d.ts","sourceRoot":"","sources":["../../../src/components/chat/floating-sheet.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAiB,KAAK,uBAAuB,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"floating-sheet.stories.d.ts","sourceRoot":"","sources":["../../../src/components/chat/floating-sheet.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAiB,KAAK,uBAAuB,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAEvG,OAAO,kBAAkB,CAAC;AAE1B,UAAU,IAAI;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,uBAAuB,CAAC;IACpC,IAAI,EAAE,iBAAiB,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,GAAG,KAAK,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;CACtB;AAqED,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CA4BpB,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;AAE5B,eAAO,MAAM,KAAK,EAAE,KAAU,CAAC;AAC/B,eAAO,MAAM,YAAY,EAAE,KAA+B,CAAC;AAC3D,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AACF,eAAO,MAAM,IAAI,EAAE,KAAuC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
export interface ProgressStep {
|
|
3
3
|
id: string;
|
|
4
4
|
/** Shown under the icon when `labels` is on; always used as the accessible name. */
|
|
@@ -20,7 +20,7 @@ export interface ProgressStepperProps {
|
|
|
20
20
|
}
|
|
21
21
|
export declare const progressStepperVariants: (props?: ({
|
|
22
22
|
variant?: "line" | "bars" | null | undefined;
|
|
23
|
-
} & import(
|
|
23
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
24
24
|
/**
|
|
25
25
|
* A row of milestones for a multi-step process (an order, a checkout, a deploy). Each step
|
|
26
26
|
* exposes `data-state="done|active|todo"` so hosts can restyle any of the three, and the
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { CheckboxProps as AriaCheckboxProps, CheckboxGroupProps as AriaCheckboxGroupProps } from 'react-aria-components';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
export declare const checkboxVariants: (props?: ({
|
|
4
4
|
shape?: "circle" | "square" | null | undefined;
|
|
5
|
-
} & import(
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export interface CheckboxProps extends AriaCheckboxProps, VariantProps<typeof checkboxVariants> {
|
|
7
7
|
}
|
|
8
8
|
export declare function Checkbox({ className, shape, children, onChange, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ListBoxSection,
|
|
3
|
-
import {
|
|
1
|
+
import { ComboBoxProps as AriaComboBoxProps, InputProps as AriaInputProps } from 'react-aria-components';
|
|
2
|
+
import { ListBoxSection, ListBoxItemProps, ListBoxProps } from './list-box';
|
|
3
|
+
import { PopoverProps } from './popover';
|
|
4
4
|
export interface ComboBoxProps<T extends object> extends AriaComboBoxProps<T> {
|
|
5
5
|
}
|
|
6
6
|
export declare function ComboBox<T extends object>({ className, onSelectionChange, ...props }: ComboBoxProps<T>): import("react/jsx-runtime").JSX.Element;
|