@brett_lamy/ui 0.0.1 → 1.1.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 +131 -13
- package/dist/components/adaptive-pane.d.ts +15 -0
- package/dist/components/adaptive-pane.d.ts.map +1 -0
- package/dist/components/adaptive-pane.stories.d.ts +7 -0
- package/dist/components/adaptive-pane.stories.d.ts.map +1 -0
- package/dist/components/animated-height.d.ts +23 -0
- package/dist/components/animated-height.d.ts.map +1 -0
- package/dist/components/badge.d.ts +9 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/badge.stories.d.ts +9 -0
- package/dist/components/badge.stories.d.ts.map +1 -0
- package/dist/components/button.d.ts +12 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.stories.d.ts +9 -0
- package/dist/components/button.stories.d.ts.map +1 -0
- package/dist/components/card.d.ts +14 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/card.stories.d.ts +9 -0
- package/dist/components/card.stories.d.ts.map +1 -0
- package/dist/components/celebrate.d.ts +14 -0
- package/dist/components/celebrate.d.ts.map +1 -0
- package/dist/components/chat/channel-list.d.ts +35 -0
- package/dist/components/chat/channel-list.d.ts.map +1 -0
- package/dist/components/chat/channel-list.stories.d.ts +13 -0
- package/dist/components/chat/channel-list.stories.d.ts.map +1 -0
- package/dist/components/chat/chat-avatar.d.ts +13 -0
- package/dist/components/chat/chat-avatar.d.ts.map +1 -0
- package/dist/components/chat/chat-avatar.stories.d.ts +9 -0
- package/dist/components/chat/chat-avatar.stories.d.ts.map +1 -0
- package/dist/components/chat/chat-column.d.ts +8 -0
- package/dist/components/chat/chat-column.d.ts.map +1 -0
- package/dist/components/chat/chat-column.stories.d.ts +7 -0
- package/dist/components/chat/chat-column.stories.d.ts.map +1 -0
- package/dist/components/chat/chat-composer.d.ts +22 -0
- package/dist/components/chat/chat-composer.d.ts.map +1 -0
- package/dist/components/chat/chat-composer.stories.d.ts +16 -0
- package/dist/components/chat/chat-composer.stories.d.ts.map +1 -0
- package/dist/components/chat/chat.fixtures.d.ts +29 -0
- package/dist/components/chat/chat.fixtures.d.ts.map +1 -0
- package/dist/components/chat/floating-chat.d.ts +71 -0
- package/dist/components/chat/floating-chat.d.ts.map +1 -0
- package/dist/components/chat/floating-chat.stories.d.ts +17 -0
- package/dist/components/chat/floating-chat.stories.d.ts.map +1 -0
- package/dist/components/chat/floating-sheet.d.ts +83 -0
- package/dist/components/chat/floating-sheet.d.ts.map +1 -0
- package/dist/components/chat/floating-sheet.stories.d.ts +22 -0
- package/dist/components/chat/floating-sheet.stories.d.ts.map +1 -0
- package/dist/components/chat/member-list.d.ts +21 -0
- package/dist/components/chat/member-list.d.ts.map +1 -0
- package/dist/components/chat/message-list.d.ts +34 -0
- package/dist/components/chat/message-list.d.ts.map +1 -0
- package/dist/components/chat/message.d.ts +47 -0
- package/dist/components/chat/message.d.ts.map +1 -0
- package/dist/components/chat/message.stories.d.ts +30 -0
- package/dist/components/chat/message.stories.d.ts.map +1 -0
- package/dist/components/chat/progress-stepper.d.ts +30 -0
- package/dist/components/chat/progress-stepper.d.ts.map +1 -0
- package/dist/components/chat/rich-text.d.ts +8 -0
- package/dist/components/chat/rich-text.d.ts.map +1 -0
- package/dist/components/chat/rich-text.stories.d.ts +9 -0
- package/dist/components/chat/rich-text.stories.d.ts.map +1 -0
- package/dist/components/chat/server-header.d.ts +10 -0
- package/dist/components/chat/server-header.d.ts.map +1 -0
- package/dist/components/chat/thread-preview.d.ts +25 -0
- package/dist/components/chat/thread-preview.d.ts.map +1 -0
- package/dist/components/chat/thread-preview.stories.d.ts +18 -0
- package/dist/components/chat/thread-preview.stories.d.ts.map +1 -0
- package/dist/components/chat/user-panel.d.ts +16 -0
- package/dist/components/chat/user-panel.d.ts.map +1 -0
- package/dist/components/chat/workspace-rail.d.ts +56 -0
- package/dist/components/chat/workspace-rail.d.ts.map +1 -0
- package/dist/components/chat/workspace-rail.stories.d.ts +12 -0
- package/dist/components/chat/workspace-rail.stories.d.ts.map +1 -0
- package/dist/components/checkbox.d.ts +13 -0
- package/dist/components/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox.stories.d.ts +11 -0
- package/dist/components/checkbox.stories.d.ts.map +1 -0
- package/dist/components/combobox.d.ts +20 -0
- package/dist/components/combobox.d.ts.map +1 -0
- package/dist/components/combobox.stories.d.ts +10 -0
- package/dist/components/combobox.stories.d.ts.map +1 -0
- package/dist/components/credenza.d.ts.map +1 -1
- package/dist/components/dialog.d.ts +40 -0
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/dialog.stories.d.ts +12 -0
- package/dist/components/dialog.stories.d.ts.map +1 -0
- package/dist/components/disclosure.d.ts +23 -0
- package/dist/components/disclosure.d.ts.map +1 -0
- package/dist/components/disclosure.stories.d.ts +10 -0
- package/dist/components/disclosure.stories.d.ts.map +1 -0
- package/dist/components/dropdown-menu.d.ts +33 -0
- package/dist/components/dropdown-menu.d.ts.map +1 -0
- package/dist/components/dropdown-menu.stories.d.ts +11 -0
- package/dist/components/dropdown-menu.stories.d.ts.map +1 -0
- package/dist/components/edge-drawer.d.ts +17 -0
- package/dist/components/edge-drawer.d.ts.map +1 -0
- package/dist/components/edge-drawer.stories.d.ts +8 -0
- package/dist/components/edge-drawer.stories.d.ts.map +1 -0
- package/dist/components/edit-bar.d.ts.map +1 -1
- package/dist/components/form.d.ts +9 -0
- package/dist/components/form.d.ts.map +1 -0
- package/dist/components/form.stories.d.ts +9 -0
- package/dist/components/form.stories.d.ts.map +1 -0
- package/dist/components/haptic-indicator.d.ts +3 -1
- package/dist/components/haptic-indicator.d.ts.map +1 -1
- package/dist/components/icon-swap.d.ts +27 -0
- package/dist/components/icon-swap.d.ts.map +1 -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.stories.d.ts +4 -0
- package/dist/components/index-bar.stories.d.ts.map +1 -1
- package/dist/components/input.d.ts +9 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/input.stories.d.ts +10 -0
- package/dist/components/input.stories.d.ts.map +1 -0
- package/dist/components/kbd.d.ts +5 -0
- package/dist/components/kbd.d.ts.map +1 -0
- package/dist/components/kbd.stories.d.ts +9 -0
- package/dist/components/kbd.stories.d.ts.map +1 -0
- package/dist/components/label.d.ts +9 -0
- package/dist/components/label.d.ts.map +1 -0
- package/dist/components/label.stories.d.ts +8 -0
- package/dist/components/label.stories.d.ts.map +1 -0
- package/dist/components/list-box.d.ts +30 -0
- package/dist/components/list-box.d.ts.map +1 -0
- package/dist/components/list-box.stories.d.ts +9 -0
- package/dist/components/list-box.stories.d.ts.map +1 -0
- package/dist/components/list-row.stories.d.ts +9 -0
- package/dist/components/list-row.stories.d.ts.map +1 -1
- package/dist/components/list.d.ts +33 -2
- package/dist/components/list.d.ts.map +1 -1
- package/dist/components/list.stories.d.ts +5 -1
- package/dist/components/list.stories.d.ts.map +1 -1
- package/dist/components/markdown-editor.d.ts +131 -0
- package/dist/components/markdown-editor.d.ts.map +1 -0
- package/dist/components/markdown-editor.stories.d.ts +17 -0
- package/dist/components/markdown-editor.stories.d.ts.map +1 -0
- package/dist/components/morph.d.ts +61 -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 +15 -0
- package/dist/components/motion.stories.d.ts.map +1 -0
- package/dist/components/navigation-stack.d.ts +9 -3
- package/dist/components/navigation-stack.d.ts.map +1 -1
- package/dist/components/navigation-stack.stories.d.ts +11 -0
- 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 +11 -0
- package/dist/components/number-morph.d.ts.map +1 -0
- package/dist/components/pencilkit/pencil-canvas.d.ts +24 -0
- package/dist/components/pencilkit/pencil-canvas.d.ts.map +1 -0
- package/dist/components/pencilkit/pencil-canvas.stories.d.ts +18 -0
- package/dist/components/pencilkit/pencil-canvas.stories.d.ts.map +1 -0
- package/dist/components/pencilkit/pencil-toolbar.d.ts +60 -0
- package/dist/components/pencilkit/pencil-toolbar.d.ts.map +1 -0
- package/dist/components/pencilkit/pencil-toolbar.stories.d.ts +10 -0
- package/dist/components/pencilkit/pencil-toolbar.stories.d.ts.map +1 -0
- package/dist/components/pencilkit/pencilkit-annotator.d.ts +8 -0
- package/dist/components/pencilkit/pencilkit-annotator.d.ts.map +1 -0
- package/dist/components/pencilkit/pk-icon.d.ts +8 -0
- package/dist/components/pencilkit/pk-icon.d.ts.map +1 -0
- package/dist/components/pencilkit/stroke-path.d.ts +11 -0
- package/dist/components/pencilkit/stroke-path.d.ts.map +1 -0
- package/dist/components/pencilkit/use-pencil-history.d.ts +15 -0
- package/dist/components/pencilkit/use-pencil-history.d.ts.map +1 -0
- package/dist/components/pill-button.d.ts +1 -1
- package/dist/components/pill-button.d.ts.map +1 -1
- package/dist/components/popover.d.ts +15 -0
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/popover.stories.d.ts +9 -0
- package/dist/components/popover.stories.d.ts.map +1 -0
- package/dist/components/progress-ring.d.ts +66 -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 +16 -0
- package/dist/components/progress.d.ts.map +1 -0
- package/dist/components/progress.stories.d.ts +10 -0
- package/dist/components/progress.stories.d.ts.map +1 -0
- package/dist/components/qr-svg.d.ts +30 -3
- package/dist/components/qr-svg.d.ts.map +1 -1
- package/dist/components/qr-svg.stories.d.ts +8 -1
- package/dist/components/qr-svg.stories.d.ts.map +1 -1
- package/dist/components/radio-group.d.ts +13 -0
- package/dist/components/radio-group.d.ts.map +1 -0
- package/dist/components/radio-group.stories.d.ts +10 -0
- package/dist/components/radio-group.stories.d.ts.map +1 -0
- package/dist/components/scroll-area.d.ts +9 -0
- package/dist/components/scroll-area.d.ts.map +1 -0
- package/dist/components/scroll-area.stories.d.ts +8 -0
- package/dist/components/scroll-area.stories.d.ts.map +1 -0
- package/dist/components/search-field.d.ts +12 -3
- package/dist/components/search-field.d.ts.map +1 -1
- package/dist/components/search-field.stories.d.ts +2 -0
- package/dist/components/search-field.stories.d.ts.map +1 -1
- package/dist/components/segmented.d.ts +5 -1
- package/dist/components/segmented.d.ts.map +1 -1
- package/dist/components/select.d.ts +26 -0
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/select.stories.d.ts +12 -0
- package/dist/components/select.stories.d.ts.map +1 -0
- package/dist/components/separator.d.ts +10 -0
- package/dist/components/separator.d.ts.map +1 -0
- package/dist/components/separator.stories.d.ts +9 -0
- package/dist/components/separator.stories.d.ts.map +1 -0
- package/dist/components/sheet.d.ts +29 -0
- package/dist/components/sheet.d.ts.map +1 -0
- package/dist/components/sheet.stories.d.ts +12 -0
- package/dist/components/sheet.stories.d.ts.map +1 -0
- package/dist/components/side-drawer.d.ts.map +1 -1
- package/dist/components/sidebar.d.ts +86 -0
- package/dist/components/sidebar.d.ts.map +1 -0
- package/dist/components/sidebar.stories.d.ts +10 -0
- package/dist/components/sidebar.stories.d.ts.map +1 -0
- package/dist/components/skeleton.d.ts +27 -0
- package/dist/components/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton.stories.d.ts +11 -0
- package/dist/components/skeleton.stories.d.ts.map +1 -0
- package/dist/components/slider.d.ts +26 -0
- package/dist/components/slider.d.ts.map +1 -0
- package/dist/components/slider.stories.d.ts +12 -0
- package/dist/components/slider.stories.d.ts.map +1 -0
- package/dist/components/spinner.d.ts +2 -0
- package/dist/components/spinner.d.ts.map +1 -1
- package/dist/components/split-view.d.ts +199 -8
- package/dist/components/split-view.d.ts.map +1 -1
- package/dist/components/split-view.stories.d.ts +45 -2
- package/dist/components/split-view.stories.d.ts.map +1 -1
- package/dist/components/switch.d.ts +4 -1
- package/dist/components/switch.d.ts.map +1 -1
- package/dist/components/syntax-highlighting.d.ts +102 -0
- package/dist/components/syntax-highlighting.d.ts.map +1 -0
- package/dist/components/syntax-highlighting.stories.d.ts +18 -0
- package/dist/components/syntax-highlighting.stories.d.ts.map +1 -0
- package/dist/components/tab-bar.d.ts +2 -0
- package/dist/components/tab-bar.d.ts.map +1 -1
- package/dist/components/tab-view.d.ts +93 -0
- package/dist/components/tab-view.d.ts.map +1 -0
- package/dist/components/tab-view.stories.d.ts +28 -0
- package/dist/components/tab-view.stories.d.ts.map +1 -0
- package/dist/components/tabs.d.ts +26 -0
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/tabs.stories.d.ts +9 -0
- package/dist/components/tabs.stories.d.ts.map +1 -0
- package/dist/components/text-field.d.ts +9 -0
- package/dist/components/text-field.d.ts.map +1 -0
- package/dist/components/text-field.stories.d.ts +9 -0
- package/dist/components/text-field.stories.d.ts.map +1 -0
- package/dist/components/text-morph.d.ts +8 -0
- package/dist/components/text-morph.d.ts.map +1 -0
- package/dist/components/textarea.d.ts +9 -0
- package/dist/components/textarea.d.ts.map +1 -0
- package/dist/components/toast.d.ts +104 -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 +15 -0
- package/dist/components/toggle-group.d.ts.map +1 -0
- package/dist/components/toggle-group.stories.d.ts +10 -0
- package/dist/components/toggle-group.stories.d.ts.map +1 -0
- package/dist/components/toggle.d.ts +10 -0
- package/dist/components/toggle.d.ts.map +1 -0
- package/dist/components/toggle.stories.d.ts +9 -0
- package/dist/components/toggle.stories.d.ts.map +1 -0
- package/dist/components/tooltip.d.ts +10 -0
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip.stories.d.ts +11 -0
- package/dist/components/tooltip.stories.d.ts.map +1 -0
- package/dist/components/workbench/annotator.d.ts +22 -0
- package/dist/components/workbench/annotator.d.ts.map +1 -0
- package/dist/components/workbench/chat.d.ts +99 -0
- package/dist/components/workbench/chat.d.ts.map +1 -0
- package/dist/components/workbench/chat.stories.d.ts +13 -0
- package/dist/components/workbench/chat.stories.d.ts.map +1 -0
- 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 +441 -0
- package/dist/components/workbench/composer.d.ts.map +1 -0
- package/dist/components/workbench/composer.stories.d.ts +35 -0
- package/dist/components/workbench/composer.stories.d.ts.map +1 -0
- package/dist/components/workbench/fixtures.d.ts +38 -0
- package/dist/components/workbench/fixtures.d.ts.map +1 -0
- package/dist/components/workbench/markdown.d.ts +26 -0
- package/dist/components/workbench/markdown.d.ts.map +1 -0
- package/dist/components/workbench/message-scroller.d.ts +16 -0
- package/dist/components/workbench/message-scroller.d.ts.map +1 -0
- package/dist/components/workbench/message-scroller.stories.d.ts +9 -0
- package/dist/components/workbench/message-scroller.stories.d.ts.map +1 -0
- package/dist/components/workbench/model-picker.d.ts +29 -0
- package/dist/components/workbench/model-picker.d.ts.map +1 -0
- package/dist/components/workbench/models.d.ts +32 -0
- package/dist/components/workbench/models.d.ts.map +1 -0
- package/dist/components/workbench/snap-sheet.d.ts +12 -0
- package/dist/components/workbench/snap-sheet.d.ts.map +1 -0
- package/dist/components/workbench/snap-sheet.stories.d.ts +8 -0
- package/dist/components/workbench/snap-sheet.stories.d.ts.map +1 -0
- package/dist/components/workbench/surfaces.d.ts +67 -0
- package/dist/components/workbench/surfaces.d.ts.map +1 -0
- package/dist/components/workbench/surfaces.stories.d.ts +15 -0
- package/dist/components/workbench/surfaces.stories.d.ts.map +1 -0
- package/dist/components/workbench/terminal.d.ts +43 -0
- package/dist/components/workbench/terminal.d.ts.map +1 -0
- package/dist/components/workbench/terminal.stories.d.ts +8 -0
- package/dist/components/workbench/terminal.stories.d.ts.map +1 -0
- package/dist/components/workbench/thread-sidebar.d.ts +100 -0
- package/dist/components/workbench/thread-sidebar.d.ts.map +1 -0
- package/dist/components/workbench/thread-sidebar.stories.d.ts +9 -0
- package/dist/components/workbench/thread-sidebar.stories.d.ts.map +1 -0
- package/dist/components/workbench/wb-popover.d.ts +11 -0
- package/dist/components/workbench/wb-popover.d.ts.map +1 -0
- package/dist/components/workbench/workbench-composer.d.ts +26 -0
- package/dist/components/workbench/workbench-composer.d.ts.map +1 -0
- package/dist/demos/delivery/delivery-tracking-demo.d.ts +41 -0
- package/dist/demos/delivery/delivery-tracking-demo.d.ts.map +1 -0
- package/dist/demos/delivery/delivery-tracking-demo.stories.d.ts +13 -0
- package/dist/demos/delivery/delivery-tracking-demo.stories.d.ts.map +1 -0
- package/dist/demos/haptics-playground.d.ts +4 -1
- package/dist/demos/haptics-playground.d.ts.map +1 -1
- package/dist/demos/map-chat/geo.d.ts +46 -0
- package/dist/demos/map-chat/geo.d.ts.map +1 -0
- package/dist/demos/map-chat/map-agent.d.ts +48 -0
- package/dist/demos/map-chat/map-agent.d.ts.map +1 -0
- package/dist/demos/map-chat/map-chat-demo.d.ts +19 -0
- package/dist/demos/map-chat/map-chat-demo.d.ts.map +1 -0
- package/dist/demos/map-chat/map-chat-demo.stories.d.ts +16 -0
- package/dist/demos/map-chat/map-chat-demo.stories.d.ts.map +1 -0
- package/dist/demos/map-chat/map-icons.d.ts +44 -0
- package/dist/demos/map-chat/map-icons.d.ts.map +1 -0
- package/dist/demos/map-chat/places.d.ts +29 -0
- package/dist/demos/map-chat/places.d.ts.map +1 -0
- package/dist/demos/map-chat/tile-map.d.ts +72 -0
- package/dist/demos/map-chat/tile-map.d.ts.map +1 -0
- package/dist/demos/pencilkit/demo-strokes.d.ts +4 -0
- package/dist/demos/pencilkit/demo-strokes.d.ts.map +1 -0
- package/dist/demos/pencilkit/pencilkit-demo.d.ts +15 -0
- package/dist/demos/pencilkit/pencilkit-demo.d.ts.map +1 -0
- package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts +11 -0
- package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts.map +1 -0
- package/dist/demos/sidebar-demo.d.ts +9 -0
- package/dist/demos/sidebar-demo.d.ts.map +1 -0
- package/dist/demos/split-view-demos.d.ts +50 -0
- package/dist/demos/split-view-demos.d.ts.map +1 -0
- package/dist/index.css +2 -1
- package/dist/index.d.ts +169 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19360 -14635
- package/dist/lib/chat/chat-icon.d.ts +24 -0
- package/dist/lib/chat/chat-icon.d.ts.map +1 -0
- package/dist/lib/chat/chat-shell-context.d.ts +19 -0
- package/dist/lib/chat/chat-shell-context.d.ts.map +1 -0
- package/dist/lib/chat/chat-tokens.d.ts +72 -0
- package/dist/lib/chat/chat-tokens.d.ts.map +1 -0
- package/dist/lib/chat/chat-users.d.ts +18 -0
- package/dist/lib/chat/chat-users.d.ts.map +1 -0
- package/dist/lib/chat/kvib.d.ts +3 -0
- package/dist/lib/chat/kvib.d.ts.map +1 -0
- package/dist/lib/chat/persistent-host.d.ts +29 -0
- package/dist/lib/chat/persistent-host.d.ts.map +1 -0
- package/dist/lib/chat/title-ref.d.ts +3 -0
- package/dist/lib/chat/title-ref.d.ts.map +1 -0
- package/dist/lib/container.d.ts +21 -0
- package/dist/lib/container.d.ts.map +1 -0
- package/dist/lib/haptics.d.ts +7 -7
- package/dist/lib/haptics.d.ts.map +1 -1
- package/dist/lib/icon.d.ts +1297 -6
- package/dist/lib/icon.d.ts.map +1 -1
- package/dist/lib/icon.stories.d.ts +7 -0
- package/dist/lib/icon.stories.d.ts.map +1 -1
- package/dist/lib/motion.d.ts +74 -0
- package/dist/lib/motion.d.ts.map +1 -1
- package/dist/lib/pencilkit/constants.d.ts +33 -0
- package/dist/lib/pencilkit/constants.d.ts.map +1 -0
- package/dist/lib/primitives.d.ts +12 -0
- package/dist/lib/primitives.d.ts.map +1 -0
- package/dist/lib/qr.d.ts +28 -0
- package/dist/lib/qr.d.ts.map +1 -0
- package/dist/lib/sheet-drag.d.ts +38 -0
- package/dist/lib/sheet-drag.d.ts.map +1 -0
- package/dist/lib/syntax.d.ts +55 -0
- package/dist/lib/syntax.d.ts.map +1 -0
- package/dist/lib/theme.d.ts +14 -4
- package/dist/lib/theme.d.ts.map +1 -1
- package/dist/lib/utils.d.ts +1 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/workbench/haptics.d.ts +3 -0
- package/dist/lib/workbench/haptics.d.ts.map +1 -0
- package/dist/lib/workbench/icons.d.ts +29 -0
- package/dist/lib/workbench/icons.d.ts.map +1 -0
- package/dist/lib/workbench/motion.d.ts +83 -0
- package/dist/lib/workbench/motion.d.ts.map +1 -0
- package/dist/lib/workbench/press.d.ts +10 -0
- package/dist/lib/workbench/press.d.ts.map +1 -0
- package/dist/lib/workbench/theme.d.ts +16 -0
- package/dist/lib/workbench/theme.d.ts.map +1 -0
- package/dist/lib/workbench/util.d.ts +6 -0
- package/dist/lib/workbench/util.d.ts.map +1 -0
- package/dist/stories/primitive-frame.d.ts +20 -0
- package/dist/stories/primitive-frame.d.ts.map +1 -0
- package/dist/templates/artifact-chat-container.d.ts +63 -0
- package/dist/templates/artifact-chat-container.d.ts.map +1 -0
- package/dist/templates/artifact-chat-container.stories.d.ts +24 -0
- package/dist/templates/artifact-chat-container.stories.d.ts.map +1 -0
- package/dist/templates/chat-shell.d.ts +86 -0
- package/dist/templates/chat-shell.d.ts.map +1 -0
- package/dist/templates/chat-shell.stories.d.ts +22 -0
- package/dist/templates/chat-shell.stories.d.ts.map +1 -0
- package/dist/templates/workbench-shell.d.ts +177 -0
- package/dist/templates/workbench-shell.d.ts.map +1 -0
- package/dist/templates/workbench-shell.stories.d.ts +17 -0
- package/dist/templates/workbench-shell.stories.d.ts.map +1 -0
- package/package.json +28 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":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gBAAgB,0BAAoB,CAAC;AAClD,eAAO,MAAM,SAAS,mBAAa,CAAC;AACpC,eAAO,MAAM,UAAU,oBAAc,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { SheetContent } from './sheet';
|
|
3
|
+
declare const meta: Meta<typeof SheetContent>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof SheetContent>;
|
|
6
|
+
export declare const Bottom: Story;
|
|
7
|
+
export declare const BottomDark: Story;
|
|
8
|
+
export declare const Right: Story;
|
|
9
|
+
export declare const Left: Story;
|
|
10
|
+
export declare const Top: Story;
|
|
11
|
+
export declare const Closed: Story;
|
|
12
|
+
//# sourceMappingURL=sheet.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet.stories.d.ts","sourceRoot":"","sources":["../../src/components/sheet.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAS,YAAY,EAAiF,MAAM,SAAS,CAAC;AAM7H,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAKnC,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAsC3C,eAAO,MAAM,MAAM,EAAE,KAAgD,CAAC;AACtE,eAAO,MAAM,UAAU,EAAE,KAAqD,CAAC;AAC/E,eAAO,MAAM,KAAK,EAAE,KAA+C,CAAC;AACpE,eAAO,MAAM,IAAI,EAAE,KAAmD,CAAC;AACvE,eAAO,MAAM,GAAG,EAAE,KAA6C,CAAC;AAChE,eAAO,MAAM,MAAM,EAAE,KAA6D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-drawer.d.ts","sourceRoot":"","sources":["../../src/components/side-drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"side-drawer.d.ts","sourceRoot":"","sources":["../../src/components/side-drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAStD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,eAAe,2CA+B5G"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
/** Sidebar item icons: 24×24 stroke paths, keyed by name. */
|
|
4
|
+
export declare const SIDEBAR_ICONS: Record<string, string>;
|
|
5
|
+
export interface SidebarContextValue {
|
|
6
|
+
open: boolean;
|
|
7
|
+
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
8
|
+
toggle: () => void;
|
|
9
|
+
narrow: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const SBCtx: React.Context<SidebarContextValue | null>;
|
|
12
|
+
export declare const SBCollapsedCtx: React.Context<boolean>;
|
|
13
|
+
export declare function useSidebar(): SidebarContextValue;
|
|
14
|
+
export interface SidebarProviderProps {
|
|
15
|
+
defaultOpen?: boolean;
|
|
16
|
+
breakpoint?: number;
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
style?: CSSProperties;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare function SidebarProvider({ defaultOpen, breakpoint, children, style, className }: SidebarProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export type SidebarVariant = 'docked' | 'rail' | 'float' | 'overlay';
|
|
23
|
+
export interface SidebarProps {
|
|
24
|
+
variant?: SidebarVariant;
|
|
25
|
+
width?: number;
|
|
26
|
+
railWidth?: number;
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
}
|
|
29
|
+
export declare function Sidebar({ variant, width, railWidth, children }: SidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare namespace Sidebar {
|
|
31
|
+
var Header: typeof SidebarHeader;
|
|
32
|
+
var Content: typeof SidebarContent;
|
|
33
|
+
var Footer: typeof SidebarFooter;
|
|
34
|
+
var Workspace: typeof SidebarWorkspace;
|
|
35
|
+
var Search: typeof SidebarSearch;
|
|
36
|
+
var Section: typeof SidebarSection;
|
|
37
|
+
var Item: typeof SidebarItem;
|
|
38
|
+
}
|
|
39
|
+
export declare function SidebarHeader({ children }: {
|
|
40
|
+
children?: ReactNode;
|
|
41
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare function SidebarContent({ children }: {
|
|
43
|
+
children?: ReactNode;
|
|
44
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare function SidebarFooter({ children }: {
|
|
46
|
+
children?: ReactNode;
|
|
47
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export interface SidebarWorkspaceProps {
|
|
49
|
+
name?: string;
|
|
50
|
+
detail?: ReactNode;
|
|
51
|
+
initial?: ReactNode;
|
|
52
|
+
}
|
|
53
|
+
export declare function SidebarWorkspace({ name, detail, initial }: SidebarWorkspaceProps): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export interface SidebarSearchProps {
|
|
55
|
+
placeholder?: string;
|
|
56
|
+
onPress?: () => void;
|
|
57
|
+
}
|
|
58
|
+
export declare function SidebarSearch({ placeholder, onPress }: SidebarSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export interface SidebarSectionProps {
|
|
60
|
+
title?: ReactNode;
|
|
61
|
+
children?: ReactNode;
|
|
62
|
+
}
|
|
63
|
+
export declare function SidebarSection({ title, children }: SidebarSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
export interface SidebarItemProps {
|
|
65
|
+
icon?: string | ReactNode;
|
|
66
|
+
label?: string;
|
|
67
|
+
badge?: ReactNode;
|
|
68
|
+
active?: boolean;
|
|
69
|
+
tone?: string;
|
|
70
|
+
onPress?: () => void;
|
|
71
|
+
}
|
|
72
|
+
export declare function SidebarItem({ icon, label, badge, active, tone, onPress }: SidebarItemProps): import("react/jsx-runtime").JSX.Element;
|
|
73
|
+
export declare function SidebarTrigger({ style, className }: {
|
|
74
|
+
style?: CSSProperties;
|
|
75
|
+
className?: string;
|
|
76
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
77
|
+
export declare function SidebarInset({ children, style, className }: {
|
|
78
|
+
children?: ReactNode;
|
|
79
|
+
style?: CSSProperties;
|
|
80
|
+
className?: string;
|
|
81
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
82
|
+
export interface SidebarNavProps {
|
|
83
|
+
variant?: SidebarVariant;
|
|
84
|
+
}
|
|
85
|
+
export declare function SidebarNav({ variant }: SidebarNavProps): import("react/jsx-runtime").JSX.Element;
|
|
86
|
+
//# sourceMappingURL=sidebar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../src/components/sidebar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAsBtD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KAAK,EAAE,SAAS,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE,aAAa,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAejG;AAED,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,aAAa,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAU/H;AAGD,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AACD,wBAAgB,UAAU,CAAC,EAAE,OAAkB,EAAE,EAAE,eAAe,2CAkBjE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Sidebar } from './sidebar';
|
|
3
|
+
declare const meta: Meta<typeof Sidebar>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Sidebar>;
|
|
6
|
+
export declare const Docked: Story;
|
|
7
|
+
export declare const Rail: Story;
|
|
8
|
+
export declare const Float: Story;
|
|
9
|
+
export declare const Overlay: Story;
|
|
10
|
+
//# sourceMappingURL=sidebar.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar.stories.d.ts","sourceRoot":"","sources":["../../src/components/sidebar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,OAAO,CAG9B,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;AAEtC,eAAO,MAAM,MAAM,EAAE,KAA0D,CAAC;AAChF,eAAO,MAAM,IAAI,EAAE,KAAwD,CAAC;AAC5E,eAAO,MAAM,KAAK,EAAE,KAAyD,CAAC;AAC9E,eAAO,MAAM,OAAO,EAAE,KAA2D,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
export declare const skeletonVariants: (props?: ({
|
|
4
|
+
shape?: "rounded" | "text" | "circle" | "rect" | "default" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export interface SkeletonProps extends ComponentProps<'div'>, VariantProps<typeof skeletonVariants> {
|
|
7
|
+
/** Width — a number is px. Classes work too. */
|
|
8
|
+
width?: number | string;
|
|
9
|
+
/** Height — a number is px. Classes work too. */
|
|
10
|
+
height?: number | string;
|
|
11
|
+
}
|
|
12
|
+
export declare function Skeleton({ className, shape, width, height, style, ...props }: SkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export interface SkeletonTextProps extends Omit<ComponentProps<'div'>, 'children'> {
|
|
14
|
+
/** Number of lines (default 3). */
|
|
15
|
+
lines?: number;
|
|
16
|
+
/** Width of the last line, so the block reads as a paragraph (default `60%`; `100%` for a full line). */
|
|
17
|
+
lastLineWidth?: number | string;
|
|
18
|
+
/** Height of each bar in px (default the `text` shape's 14). */
|
|
19
|
+
lineHeight?: number;
|
|
20
|
+
/** Extra classes for each bar. */
|
|
21
|
+
lineClassName?: string;
|
|
22
|
+
/** Gap between lines in px (default 8). */
|
|
23
|
+
gap?: number;
|
|
24
|
+
}
|
|
25
|
+
/** A paragraph placeholder: `lines` text bars, the last one shorter. */
|
|
26
|
+
export declare function SkeletonText({ lines, lastLineWidth, lineHeight, lineClassName, gap, className, style, ...props }: SkeletonTextProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
//# sourceMappingURL=skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../src/components/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAOlE,eAAO,MAAM,gBAAgB;;8EAmB5B,CAAC;AAEF,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,gBAAgB,CAAC;IACjG,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,2CAM3F;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAChF,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yGAAyG;IACzG,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,gEAAgE;IAChE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kCAAkC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2CAA2C;IAC3C,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wEAAwE;AACxE,wBAAgB,YAAY,CAAC,EAAE,KAAS,EAAE,aAAqB,EAAE,UAAU,EAAE,aAAa,EAAE,GAAO,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAUnJ"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Skeleton } from './skeleton';
|
|
3
|
+
declare const meta: Meta<typeof Skeleton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Skeleton>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const ListRows: Story;
|
|
8
|
+
export declare const Dark: Story;
|
|
9
|
+
/** Every shape, plus a SkeletonText paragraph. */
|
|
10
|
+
export declare const Shapes: Story;
|
|
11
|
+
//# sourceMappingURL=skeleton.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.stories.d.ts","sourceRoot":"","sources":["../../src/components/skeleton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAgB,MAAM,YAAY,CAAC;AAIpD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAI/B,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEvC,eAAO,MAAM,OAAO,EAAE,KAA8C,CAAC;AAgBrE,eAAO,MAAM,QAAQ,EAAE,KAA8B,CAAC;AACtD,eAAO,MAAM,IAAI,EAAE,KAAsF,CAAC;AAE1G,kDAAkD;AAClD,eAAO,MAAM,MAAM,EAAE,KAapB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SliderProps as AriaSliderProps, SliderThumbProps, SliderTrackProps } from 'react-aria-components';
|
|
3
|
+
export interface SliderProps<T extends number | number[]> extends AriaSliderProps<T> {
|
|
4
|
+
label?: ReactNode;
|
|
5
|
+
/** Show the formatted value opposite the label. */
|
|
6
|
+
showValue?: boolean;
|
|
7
|
+
/** Color scheme of the track, fill and thumb. `default`: the tint on the fill color. `onDark`: translucent
|
|
8
|
+
white for media controls over artwork or dark glass (Music's scrubber and volume). `onLight`: translucent
|
|
9
|
+
black for light imagery. Fine-tune any of them with `trackColor` / `fillColor` / `thumbColor`. */
|
|
10
|
+
tone?: SliderTone;
|
|
11
|
+
/** `default`: the 26px iOS thumb. `sm`: a 12px thumb on a 20px-tall hit area that grows while dragging (scrubbers). */
|
|
12
|
+
size?: 'default' | 'sm';
|
|
13
|
+
/** Any CSS color for the unfilled track. */
|
|
14
|
+
trackColor?: string;
|
|
15
|
+
/** Any CSS color for the filled part. */
|
|
16
|
+
fillColor?: string;
|
|
17
|
+
/** Any CSS color for the thumb. */
|
|
18
|
+
thumbColor?: string;
|
|
19
|
+
}
|
|
20
|
+
export type SliderTone = 'default' | 'onDark' | 'onLight';
|
|
21
|
+
export declare function Slider<T extends number | number[]>({ className, label, showValue, children, onChange, minValue, maxValue, step, tone, size, trackColor, fillColor, thumbColor, style, ...props }: SliderProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
/** 28px hit area with the 4px track and tint fill inside; inset by half a thumb so the thumb never overhangs
|
|
23
|
+
(like a native range). Children are the thumbs. */
|
|
24
|
+
export declare function SliderTrack({ className, children, ...props }: SliderTrackProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare function SliderThumb({ className, ...props }: SliderThumbProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=slider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../src/components/slider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,EAEiB,KAAK,WAAW,IAAI,eAAe,EAEzB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EAEtD,MAAM,uBAAuB,CAAC;AAQ/B,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;IAClF,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,mDAAmD;IACnD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;yGAEqG;IACrG,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,uHAAuH;IACvH,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IACxB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAQ1D,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,EAAE,EAClD,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAY,EAAE,QAAc,EAAE,IAAQ,EACvF,IAAgB,EAAE,IAAgB,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,KAAK,EACvF,EAAE,WAAW,CAAC,CAAC,CAAC,2CA6ChB;AAED;sDACsD;AACtD,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,2CA0B9E;AAED,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,2CAcpE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Slider } from './slider';
|
|
3
|
+
declare const meta: Meta<typeof Slider>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Slider>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Labeled: Story;
|
|
8
|
+
/** `tone` for media controls over artwork or dark glass (`onDark`) and light imagery (`onLight`); `size="sm"` is the
|
|
9
|
+
scrubber thumb that grows while dragging. Custom `trackColor` / `fillColor` / `thumbColor` fine-tune any tone. */
|
|
10
|
+
export declare const Tones: Story;
|
|
11
|
+
export declare const Dark: Story;
|
|
12
|
+
//# sourceMappingURL=slider.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.stories.d.ts","sourceRoot":"","sources":["../../src/components/slider.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,CAK7B,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAErC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC;AAEF;qHACqH;AACrH,eAAO,MAAM,KAAK,EAAE,KAanB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAQlB,CAAC"}
|
|
@@ -5,5 +5,7 @@ export interface SpinnerProps {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
style?: CSSProperties;
|
|
7
7
|
}
|
|
8
|
+
/** iOS activity indicator: eight fading spokes, stepped rotation. It grows in when it mounts (a spinner
|
|
9
|
+
appearing is an event; popping in unannounced reads as a glitch). */
|
|
8
10
|
export declare function Spinner({ spin, size, className, style }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
//# sourceMappingURL=spinner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../src/components/spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,wBAAgB,OAAO,CAAC,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../src/components/spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED;wEACwE;AACxE,wBAAgB,OAAO,CAAC,EAAE,IAAI,EAAE,IAAS,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,YAAY,2CAS1E"}
|
|
@@ -1,14 +1,205 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
export type SplitViewColumn = 'sidebar' | 'supplementary' | 'detail';
|
|
3
|
+
export type SplitViewWidthClass = 'compact' | 'medium' | 'regular';
|
|
4
|
+
/** How a shown sidebar shares space with the other columns. `auto`: tile at regular, overlay at medium. */
|
|
5
|
+
export type SplitViewSidebarBehavior = 'auto' | 'tile' | 'overlay' | 'displace';
|
|
6
|
+
export type SplitViewSelection = Partial<Record<SplitViewColumn, string | null>>;
|
|
7
|
+
export interface SplitViewState {
|
|
8
|
+
/** Width class in effect (measured from the SplitView's own width unless `widthClass` is given). */
|
|
9
|
+
widthClass: SplitViewWidthClass;
|
|
10
|
+
/** True in compact: one column at a time, navigated like a stack. */
|
|
11
|
+
collapsed: boolean;
|
|
12
|
+
/** Measured width of the SplitView, px. */
|
|
13
|
+
width: number;
|
|
14
|
+
/** Columns that are shown, in order (a hidden supplementary is left out). */
|
|
15
|
+
columns: SplitViewColumn[];
|
|
16
|
+
sidebarVisible: boolean;
|
|
17
|
+
setSidebarVisible: (visible: boolean) => void;
|
|
18
|
+
toggleSidebar: () => void;
|
|
19
|
+
/** Resolved sidebar behavior for the current width class. */
|
|
20
|
+
sidebarBehavior: Exclude<SplitViewSidebarBehavior, 'auto'>;
|
|
21
|
+
selection: SplitViewSelection;
|
|
22
|
+
/** Select `id` in `column`; shows the next column (a push when collapsed). `null` clears. */
|
|
23
|
+
select: (column: SplitViewColumn, id: string | null) => void;
|
|
24
|
+
/** Whether `id` should be drawn selected — never while collapsed, where rows are navigation. */
|
|
25
|
+
isSelected: (column: SplitViewColumn, id: string) => boolean;
|
|
26
|
+
/** Top column of the stack when collapsed (tracked at every width, so collapsing lands where you were). */
|
|
27
|
+
topColumn: SplitViewColumn;
|
|
28
|
+
show: (column: SplitViewColumn) => void;
|
|
29
|
+
back: () => void;
|
|
30
|
+
canGoBack: boolean;
|
|
31
|
+
widths: Partial<Record<SplitViewColumn, number>>;
|
|
32
|
+
setColumnWidth: (column: SplitViewColumn, width: number) => void;
|
|
33
|
+
/** False while the supplementary column is hidden and the detail has taken its space. */
|
|
34
|
+
supplementaryVisible: boolean;
|
|
35
|
+
setSupplementaryVisible: (visible: boolean) => void;
|
|
36
|
+
}
|
|
37
|
+
/** Split view state: width class, sidebar visibility, selection and navigation. */
|
|
38
|
+
export declare function useSplitView(): SplitViewState;
|
|
39
|
+
/** The column the calling component is rendered in, or null outside a column. */
|
|
40
|
+
export declare function useSplitViewColumn(): SplitViewColumn | null;
|
|
2
41
|
export interface SplitViewProps {
|
|
3
|
-
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
42
|
+
/** Force a width class. Omit to measure the SplitView's own width against `breakpoints`. */
|
|
43
|
+
widthClass?: SplitViewWidthClass;
|
|
44
|
+
/** Minimum widths (px) of the medium and regular classes. Default 640 / 1024. */
|
|
45
|
+
breakpoints?: {
|
|
46
|
+
medium: number;
|
|
47
|
+
regular: number;
|
|
48
|
+
};
|
|
49
|
+
sidebarBehavior?: SplitViewSidebarBehavior;
|
|
50
|
+
/** Controlled sidebar visibility. */
|
|
51
|
+
sidebarVisible?: boolean;
|
|
52
|
+
/** Sidebar visibility at regular width — shorthand for `sidebarVisibility={{ regular }}`. Default true. */
|
|
53
|
+
defaultSidebarVisible?: boolean;
|
|
54
|
+
/** The visibility the sidebar starts at, and resets to whenever the width class changes, per class.
|
|
55
|
+
* Default `{ regular: defaultSidebarVisible, medium: false }`. */
|
|
56
|
+
sidebarVisibility?: Partial<Record<Exclude<SplitViewWidthClass, 'compact'>, boolean>>;
|
|
57
|
+
/** Every visibility change: the toggle, the scrim, Esc, picking in a floating sidebar — and the reset to
|
|
58
|
+
* `sidebarVisibility` when the width class changes, so a controlling parent can simply mirror it. */
|
|
59
|
+
onSidebarVisibleChange?: (visible: boolean) => void;
|
|
60
|
+
/** Controlled supplementary visibility. `false` slides the supplementary away and the detail takes its space
|
|
61
|
+
* (Notes' gallery); when collapsed, the stack skips it. */
|
|
62
|
+
supplementaryVisible?: boolean;
|
|
63
|
+
/** Default true. */
|
|
64
|
+
defaultSupplementaryVisible?: boolean;
|
|
65
|
+
onSupplementaryVisibleChange?: (visible: boolean) => void;
|
|
66
|
+
selection?: SplitViewSelection;
|
|
67
|
+
defaultSelection?: SplitViewSelection;
|
|
68
|
+
onSelectionChange?: (selection: SplitViewSelection) => void;
|
|
69
|
+
/** Initial top column when collapsed. Default: supplementary, else sidebar, else detail. */
|
|
70
|
+
defaultCompactColumn?: SplitViewColumn;
|
|
71
|
+
onCompactColumnChange?: (column: SplitViewColumn) => void;
|
|
72
|
+
onWidthClassChange?: (widthClass: SplitViewWidthClass) => void;
|
|
73
|
+
/** Accessible name of the whole split view. */
|
|
74
|
+
'aria-label'?: string;
|
|
75
|
+
children?: ReactNode;
|
|
76
|
+
className?: string;
|
|
77
|
+
style?: CSSProperties;
|
|
78
|
+
}
|
|
79
|
+
export declare function SplitView({ widthClass: wcProp, breakpoints, sidebarBehavior, sidebarVisible: sideProp, defaultSidebarVisible, sidebarVisibility, onSidebarVisibleChange, supplementaryVisible: suppProp, defaultSupplementaryVisible, onSupplementaryVisibleChange, selection: selProp, defaultSelection, onSelectionChange, defaultCompactColumn, onCompactColumnChange, onWidthClassChange, children, className, style, ...aria }: SplitViewProps): import("react/jsx-runtime").JSX.Element;
|
|
80
|
+
export interface SplitViewColumnProps {
|
|
81
|
+
/** Preferred width, px (sidebar default 280, supplementary 340; the detail fills what's left). */
|
|
82
|
+
width?: number;
|
|
83
|
+
minWidth?: number;
|
|
84
|
+
maxWidth?: number;
|
|
85
|
+
/** Draggable divider on the trailing edge (tiled only). Default true for sidebar and supplementary. */
|
|
86
|
+
resizable?: boolean;
|
|
87
|
+
/** Host a push/pop stack: the children become its root page (see `SplitViewStack`, `useSplitViewStack`). */
|
|
88
|
+
stack?: boolean;
|
|
89
|
+
/** Accessible name of the column region. */
|
|
90
|
+
'aria-label'?: string;
|
|
91
|
+
children?: ReactNode;
|
|
10
92
|
className?: string;
|
|
11
93
|
style?: CSSProperties;
|
|
12
94
|
}
|
|
13
|
-
|
|
95
|
+
/** Primary column: navigation (mailboxes, folders, settings sections). */
|
|
96
|
+
export declare function SplitViewSidebar(props: SplitViewColumnProps): import("react/jsx-runtime").JSX.Element;
|
|
97
|
+
/** Middle column of a three-column split: the list whose selection drives the detail. */
|
|
98
|
+
export declare function SplitViewSupplementary(props: SplitViewColumnProps): import("react/jsx-runtime").JSX.Element;
|
|
99
|
+
/** Content column: fills the remaining width. */
|
|
100
|
+
export declare function SplitViewDetail(props: SplitViewColumnProps): import("react/jsx-runtime").JSX.Element;
|
|
101
|
+
export interface SplitViewHeaderProps {
|
|
102
|
+
title?: ReactNode;
|
|
103
|
+
/** iOS large title: drawn big at the top of the pane's SplitViewContent and scrolling with it; once it has
|
|
104
|
+
* gone under the bar the inline title (and the bar's hairline) spring in. */
|
|
105
|
+
largeTitle?: boolean;
|
|
106
|
+
/** Leading items (e.g. <SplitViewToggle/>). Replaced by the back button when collapsed and not the root. */
|
|
107
|
+
leading?: ReactNode;
|
|
108
|
+
trailing?: ReactNode;
|
|
109
|
+
/** Back button label; defaults to the previous column's (or stack page's) title, truncated to the room
|
|
110
|
+
* the title leaves. */
|
|
111
|
+
backLabel?: string;
|
|
112
|
+
className?: string;
|
|
113
|
+
style?: CSSProperties;
|
|
114
|
+
}
|
|
115
|
+
/** Column bar: back button when collapsed (or on a pushed stack page), title, leading / trailing items. */
|
|
116
|
+
export declare function SplitViewHeader({ title, largeTitle, leading, trailing, backLabel, className, style }: SplitViewHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
117
|
+
/** Scrolling body of a column. Draws the header's large title, if it has one, at the top of the scroll. */
|
|
118
|
+
export declare function SplitViewContent({ children, className, style }: {
|
|
119
|
+
children?: ReactNode;
|
|
120
|
+
className?: string;
|
|
121
|
+
style?: CSSProperties;
|
|
122
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
123
|
+
export interface SplitViewToggleProps {
|
|
124
|
+
className?: string;
|
|
125
|
+
'aria-label'?: string;
|
|
126
|
+
}
|
|
127
|
+
/** Sidebar button. Shown whenever there's a sidebar to show or hide; hidden when collapsed (back takes over). */
|
|
128
|
+
export declare function SplitViewToggle({ className, ...aria }: SplitViewToggleProps): import("react/jsx-runtime").JSX.Element | null;
|
|
129
|
+
/** Selected colours for a SplitViewItem: a background (foreground white), or both. */
|
|
130
|
+
export type SplitViewItemTint = string | {
|
|
131
|
+
background: string;
|
|
132
|
+
foreground?: string;
|
|
133
|
+
};
|
|
134
|
+
export interface SplitViewItemProps {
|
|
135
|
+
/** Selection value within this column. Several items may share one (the same mailbox under Favorites and
|
|
136
|
+
* under its account): every item whose id is selected draws selected. */
|
|
137
|
+
id: string;
|
|
138
|
+
title?: ReactNode;
|
|
139
|
+
subtitle?: ReactNode;
|
|
140
|
+
icon?: ReactNode;
|
|
141
|
+
/** Trailing detail: a count, a time… */
|
|
142
|
+
badge?: ReactNode;
|
|
143
|
+
/** Replaces the title/subtitle layout entirely. */
|
|
144
|
+
children?: ReactNode;
|
|
145
|
+
/** `pill` (sidebar default): inset rounded row. `row`: full-bleed list row with a separator. */
|
|
146
|
+
variant?: 'pill' | 'row';
|
|
147
|
+
/** This item's own selection colour instead of the app tint (Reminders' coloured lists). Also colours the
|
|
148
|
+
* icon while unselected. Exposed to custom content as `--split-item-tint` / `--split-item-on-tint`. */
|
|
149
|
+
tint?: SplitViewItemTint;
|
|
150
|
+
onPress?: () => void;
|
|
151
|
+
className?: string;
|
|
152
|
+
}
|
|
153
|
+
/** A selectable row bound to the column's selection: pressing it selects `id` and shows the next column. */
|
|
154
|
+
export declare function SplitViewItem({ id, title, subtitle, icon, badge, children, variant, tint, onPress, className }: SplitViewItemProps): import("react/jsx-runtime").JSX.Element;
|
|
155
|
+
export interface SplitViewSectionProps {
|
|
156
|
+
/** Section label ("Favorites", "iCloud"). */
|
|
157
|
+
title?: ReactNode;
|
|
158
|
+
/** The label becomes a disclosure button that folds the section with a spring. */
|
|
159
|
+
collapsible?: boolean;
|
|
160
|
+
expanded?: boolean;
|
|
161
|
+
/** Default true. */
|
|
162
|
+
defaultExpanded?: boolean;
|
|
163
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
164
|
+
children?: ReactNode;
|
|
165
|
+
className?: string;
|
|
166
|
+
}
|
|
167
|
+
/** A titled group of SplitViewItems in a column. An item id may appear in more than one section; each copy
|
|
168
|
+
* highlights when it's selected. */
|
|
169
|
+
export declare function SplitViewSection({ title, collapsible, expanded, defaultExpanded, onExpandedChange, children, className }: SplitViewSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
170
|
+
export interface SplitViewStackApi {
|
|
171
|
+
/** Push a page on top. Pages are kept as elements, so read live data from hooks/context inside them. */
|
|
172
|
+
push: (page: ReactNode, options?: {
|
|
173
|
+
key?: string;
|
|
174
|
+
}) => void;
|
|
175
|
+
/** Pop the top page (no-op at the root). */
|
|
176
|
+
pop: () => void;
|
|
177
|
+
popToRoot: () => void;
|
|
178
|
+
/** Pages including the root: 1 at the root. */
|
|
179
|
+
depth: number;
|
|
180
|
+
canPop: boolean;
|
|
181
|
+
}
|
|
182
|
+
/** The nearest SplitViewStack's push / pop. */
|
|
183
|
+
export declare function useSplitViewStack(): SplitViewStackApi;
|
|
184
|
+
export interface SplitViewStackProps {
|
|
185
|
+
/** The root page. */
|
|
186
|
+
children?: ReactNode;
|
|
187
|
+
/** Changing this drops every pushed page at once (e.g. the sidebar selection the stack belongs to). */
|
|
188
|
+
resetKey?: unknown;
|
|
189
|
+
onDepthChange?: (depth: number) => void;
|
|
190
|
+
className?: string;
|
|
191
|
+
style?: CSSProperties;
|
|
192
|
+
}
|
|
193
|
+
/** A push/pop stack inside a column. Each page may have its own SplitViewHeader (whose back button pops,
|
|
194
|
+
* labelled with the page below's title) and SplitViewContent. The leading-edge swipe and Esc pop the
|
|
195
|
+
* innermost level first; the column stack only moves once this stack is at its root. */
|
|
196
|
+
export declare function SplitViewStack({ children, resetKey, onDepthChange, className, style }: SplitViewStackProps): import("react/jsx-runtime").JSX.Element;
|
|
197
|
+
export interface SplitViewEmptyProps {
|
|
198
|
+
icon?: ReactNode;
|
|
199
|
+
title?: ReactNode;
|
|
200
|
+
description?: ReactNode;
|
|
201
|
+
className?: string;
|
|
202
|
+
}
|
|
203
|
+
/** Placeholder for a column with nothing selected. */
|
|
204
|
+
export declare function SplitViewEmpty({ icon, title, description, className }: SplitViewEmptyProps): import("react/jsx-runtime").JSX.Element;
|
|
14
205
|
//# sourceMappingURL=split-view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"split-view.d.ts","sourceRoot":"","sources":["../../src/components/split-view.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"split-view.d.ts","sourceRoot":"","sources":["../../src/components/split-view.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAEL,KAAK,aAAa,EAAoF,KAAK,SAAS,EAC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AI,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAC5D,4CAA4C;IAC5C,GAAG,EAAE,MAAM,IAAI,CAAC;IAChB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;CACjB;AASD,+CAA+C;AAC/C,wBAAgB,iBAAiB,IAAI,iBAAiB,CAIrD;AAED,MAAM,WAAW,mBAAmB;IAClC,qBAAqB;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,uGAAuG;IACvG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAKD;;yFAEyF;AACzF,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,mBAAmB,2CAwG1G;AAmDD,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,sDAAsD;AACtD,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,mBAAmB,2CAU1F"}
|
|
@@ -3,6 +3,49 @@ import { SplitView } from './split-view';
|
|
|
3
3
|
declare const meta: Meta<typeof SplitView>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof SplitView>;
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
6
|
+
/** Mail at regular width: mailboxes, list and message tiled. The toggle slides the sidebar away. */
|
|
7
|
+
export declare const Mail: Story;
|
|
8
|
+
export declare const MailDark: Story;
|
|
9
|
+
/** Two columns: the note list is the sidebar; hide it for a full-width editor. */
|
|
10
|
+
export declare const Notes: Story;
|
|
11
|
+
/** Sidebar + grouped detail. */
|
|
12
|
+
export declare const Settings: Story;
|
|
13
|
+
/** Compact: one column at a time. Rows push the next column; back, Esc or an edge swipe pops. */
|
|
14
|
+
export declare const CompactStack: Story;
|
|
15
|
+
/** Compact, landed on the message: the same state a regular split collapses into. */
|
|
16
|
+
export declare const CompactPushed: Story;
|
|
17
|
+
/** Medium: list and message tile; the sidebar floats over them. Tap the scrim or press Esc to dismiss. */
|
|
18
|
+
export declare const OverlaySidebar: Story;
|
|
19
|
+
/** Medium, `displace`: the sidebar pushes the columns aside instead of covering them. */
|
|
20
|
+
export declare const DisplaceSidebar: Story;
|
|
21
|
+
/** Drag the handle (or focus it and use the arrow keys): the split morphs between regular, medium and
|
|
22
|
+
* compact without losing the selection or the scroll position. */
|
|
23
|
+
export declare const ResizableFrame: Story;
|
|
24
|
+
/** Medium width with `sidebarVisibility={{ medium: true }}` and a tiled sidebar: the sidebar starts shown
|
|
25
|
+
* at medium too. Resize across the breakpoints — each class resets to its own visibility, and the parent
|
|
26
|
+
* (which controls `sidebarVisible`) hears every reset through `onSidebarVisibleChange`. */
|
|
27
|
+
export declare const MediumSidebarVisible: Story;
|
|
28
|
+
/** Per-item `tint`: every list selects in its own colour (the icon disc reads `--split-item-tint`). Groceries
|
|
29
|
+
* is in Pinned and My Lists — selection is by value, so both copies highlight. Both columns use large titles. */
|
|
30
|
+
export declare const TintedItems: Story;
|
|
31
|
+
export declare const TintedItemsDark: Story;
|
|
32
|
+
/** Large title after scrolling: the big title has gone under the bar, so the inline title and the hairline
|
|
33
|
+
* have sprung in. Scroll back up and it unfolds again. */
|
|
34
|
+
export declare const LargeTitleScrolled: Story;
|
|
35
|
+
/** Large titles in the compact stack: the lists screen is the root, the list pushes with its own large title. */
|
|
36
|
+
export declare const LargeTitleCompact: Story;
|
|
37
|
+
/** A push/pop stack inside the detail column (`SplitViewStack` + `useSplitViewStack`): album → credits.
|
|
38
|
+
* The sidebar selection is the stack's `resetKey`, so picking a section drops back to its root. */
|
|
39
|
+
export declare const NestedStack: Story;
|
|
40
|
+
/** Compact with a nested stack: the album page is on top. Its back button carries the page below's title,
|
|
41
|
+
* "Recently Added Albums", truncated to the room the centered title leaves. The edge swipe (and Esc) pops
|
|
42
|
+
* the album page first; only at the stack's root does it pop the column. */
|
|
43
|
+
export declare const NestedStackCompact: Story;
|
|
44
|
+
/** Gallery: `supplementaryVisible={false}` — the list column has slid away and the detail fills its space.
|
|
45
|
+
* The list button springs it back. */
|
|
46
|
+
export declare const Gallery: Story;
|
|
47
|
+
export declare const GalleryDark: Story;
|
|
48
|
+
/** A NavigationStack nested in the compact detail column: the edge swipe (and Esc) pop the NavigationStack's
|
|
49
|
+
* screen only — the column stays — and once it's at its root the next swipe pops the column. */
|
|
50
|
+
export declare const NestedNavigationStack: Story;
|
|
8
51
|
//# sourceMappingURL=split-view.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"split-view.stories.d.ts","sourceRoot":"","sources":["../../src/components/split-view.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"split-view.stories.d.ts","sourceRoot":"","sources":["../../src/components/split-view.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,SAAS,EACV,MAAM,cAAc,CAAC;AAStB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAGhC,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAExC,oGAAoG;AACpG,eAAO,MAAM,IAAI,EAAE,KAElB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC;AAEF,gCAAgC;AAChC,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AAEF,qFAAqF;AACrF,eAAO,MAAM,aAAa,EAAE,KAE3B,CAAC;AAEF,0GAA0G;AAC1G,eAAO,MAAM,cAAc,EAAE,KAK5B,CAAC;AAEF,yFAAyF;AACzF,eAAO,MAAM,eAAe,EAAE,KAK7B,CAAC;AAEF;mEACmE;AACnE,eAAO,MAAM,cAAc,EAAE,KAU5B,CAAC;AAEF;;4FAE4F;AAC5F,eAAO,MAAM,oBAAoB,EAAE,KAclC,CAAC;AAEF;kHACkH;AAClH,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAE7B,CAAC;AAEF;2DAC2D;AAC3D,eAAO,MAAM,kBAAkB,EAAE,KAEhC,CAAC;AAEF,iHAAiH;AACjH,eAAO,MAAM,iBAAiB,EAAE,KAE/B,CAAC;AAEF;oGACoG;AACpG,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAEF;;6EAE6E;AAC7E,eAAO,MAAM,kBAAkB,EAAE,KAEhC,CAAC;AAEF;uCACuC;AACvC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAEF;iGACiG;AACjG,eAAO,MAAM,qBAAqB,EAAE,KAgCnC,CAAC"}
|
|
@@ -3,9 +3,12 @@ export interface SwitchProps {
|
|
|
3
3
|
checked: boolean;
|
|
4
4
|
onChange: (v: boolean) => void;
|
|
5
5
|
'aria-label'?: string;
|
|
6
|
+
/** Label the switch by another element (ListRow points it at the row title). */
|
|
7
|
+
'aria-labelledby'?: string;
|
|
6
8
|
className?: string;
|
|
7
9
|
style?: CSSProperties;
|
|
8
10
|
}
|
|
9
|
-
/** iOS
|
|
11
|
+
/** iOS switch — shadcn's Switch shape on react-aria's Switch. The thumb springs across, and stretches toward
|
|
12
|
+
the far side while pressed (as on iOS), so a press already hints where it will go. */
|
|
10
13
|
export declare function Switch({ checked, onChange, className, style, ...rest }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
11
14
|
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../src/components/switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3C,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../src/components/switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3C,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED;yFACyF;AACzF,wBAAgB,MAAM,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,2CAqBnF"}
|