@brett_lamy/ui 1.1.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -23
- package/dist/components/adaptive-pane.d.ts.map +1 -1
- package/dist/components/adaptive-pane.js +30 -0
- package/dist/components/animated-height.d.ts.map +1 -1
- package/dist/components/animated-height.js +82 -0
- package/dist/{templates → components}/artifact-chat-container.d.ts +17 -5
- package/dist/components/artifact-chat-container.d.ts.map +1 -0
- package/dist/components/artifact-chat-container.js +200 -0
- package/dist/components/avatar.js +26 -0
- package/dist/components/badge.js +24 -0
- package/dist/components/button.d.ts.map +1 -1
- package/dist/components/button.js +46 -0
- package/dist/components/card.js +56 -0
- package/dist/components/celebrate.d.ts.map +1 -1
- package/dist/components/celebrate.js +142 -0
- package/dist/components/chat-column.d.ts.map +1 -0
- package/dist/components/chat-column.js +26 -0
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox.js +55 -0
- package/dist/components/combobox.d.ts +1 -1
- package/dist/components/combobox.d.ts.map +1 -1
- package/dist/components/combobox.js +65 -0
- package/dist/components/command-menu.d.ts +210 -0
- package/dist/components/command-menu.d.ts.map +1 -0
- package/dist/components/command-menu.js +906 -0
- package/dist/components/composer/annotator.d.ts.map +1 -0
- package/dist/components/composer/annotator.js +17 -0
- package/dist/components/composer/composer-files.d.ts.map +1 -0
- package/dist/components/composer/composer-files.js +91 -0
- package/dist/components/{workbench/wb-popover.d.ts → composer/composer-popover.d.ts} +3 -5
- package/dist/components/composer/composer-popover.d.ts.map +1 -0
- package/dist/components/composer/composer-popover.js +29 -0
- package/dist/components/{workbench → composer}/composer.d.ts +11 -11
- package/dist/components/composer/composer.d.ts.map +1 -0
- package/dist/components/composer/composer.js +1633 -0
- package/dist/components/{workbench/chat.d.ts → conversation.d.ts} +3 -3
- package/dist/components/conversation.d.ts.map +1 -0
- package/dist/components/conversation.js +357 -0
- package/dist/components/credenza.d.ts +7 -2
- package/dist/components/credenza.d.ts.map +1 -1
- package/dist/components/credenza.js +294 -0
- package/dist/components/dialog.d.ts +2 -2
- package/dist/components/dialog.d.ts.map +1 -1
- package/dist/components/dialog.js +125 -0
- package/dist/components/disclosure.d.ts.map +1 -1
- package/dist/components/disclosure.js +59 -0
- package/dist/components/dropdown-menu.d.ts +1 -1
- package/dist/components/dropdown-menu.d.ts.map +1 -1
- package/dist/components/dropdown-menu.js +114 -0
- package/dist/components/edge-drawer.d.ts +14 -2
- package/dist/components/edge-drawer.d.ts.map +1 -1
- package/dist/components/edge-drawer.js +73 -0
- package/dist/components/edit-bar.d.ts.map +1 -1
- package/dist/components/edit-bar.js +33 -0
- package/dist/components/{chat/floating-chat.d.ts → floating-chat.d.ts} +26 -3
- package/dist/components/floating-chat.d.ts.map +1 -0
- package/dist/components/floating-chat.js +288 -0
- package/dist/components/{chat/floating-sheet.d.ts → floating-sheet.d.ts} +24 -4
- package/dist/components/floating-sheet.d.ts.map +1 -0
- package/dist/components/floating-sheet.js +252 -0
- package/dist/components/form.d.ts.map +1 -1
- package/dist/components/form.js +32 -0
- package/dist/components/icon-button.d.ts +19 -0
- package/dist/components/icon-button.d.ts.map +1 -0
- package/dist/components/icon-button.js +31 -0
- package/dist/components/icon-swap.d.ts.map +1 -1
- package/dist/components/icon-swap.js +80 -0
- package/dist/components/index-bar.d.ts +14 -1
- package/dist/components/index-bar.d.ts.map +1 -1
- package/dist/components/index-bar.js +249 -0
- package/dist/components/input.d.ts.map +1 -1
- package/dist/components/input.js +30 -0
- package/dist/components/kbd.d.ts.map +1 -1
- package/dist/components/kbd.js +21 -0
- package/dist/components/label.d.ts.map +1 -1
- package/dist/components/label.js +22 -0
- package/dist/components/list-box.d.ts +1 -3
- package/dist/components/list-box.d.ts.map +1 -1
- package/dist/components/list-box.js +104 -0
- package/dist/components/list.d.ts +15 -1
- package/dist/components/list.d.ts.map +1 -1
- package/dist/components/list.js +491 -0
- package/dist/components/markdown-editor.d.ts.map +1 -1
- package/dist/components/markdown-editor.js +300 -0
- package/dist/components/{workbench/markdown.d.ts → markdown-view.d.ts} +1 -1
- package/dist/components/markdown-view.d.ts.map +1 -0
- package/dist/components/markdown-view.js +129 -0
- package/dist/components/measure-h.d.ts.map +1 -1
- package/dist/components/measure-h.js +20 -0
- package/dist/components/message-scroller.d.ts.map +1 -0
- package/dist/components/message-scroller.js +247 -0
- package/dist/components/morph.d.ts +6 -3
- package/dist/components/morph.d.ts.map +1 -1
- package/dist/components/morph.js +89 -0
- package/dist/components/navigation-stack.d.ts +27 -2
- package/dist/components/navigation-stack.d.ts.map +1 -1
- package/dist/components/navigation-stack.js +506 -0
- package/dist/components/now-playing-bars.js +38 -0
- package/dist/components/number-morph.d.ts.map +1 -1
- package/dist/components/number-morph.js +123 -0
- package/dist/{lib → components}/pencilkit/constants.d.ts +8 -8
- package/dist/components/pencilkit/constants.d.ts.map +1 -0
- package/dist/components/pencilkit/constants.js +63 -0
- package/dist/components/pencilkit/pencil-canvas.d.ts +1 -1
- package/dist/components/pencilkit/pencil-canvas.d.ts.map +1 -1
- package/dist/components/pencilkit/pencil-canvas.js +105 -0
- package/dist/components/pencilkit/pencil-toolbar.d.ts +8 -6
- package/dist/components/pencilkit/pencil-toolbar.d.ts.map +1 -1
- package/dist/components/pencilkit/pencil-toolbar.js +186 -0
- package/dist/components/pencilkit/pencilkit-annotator.d.ts +1 -1
- package/dist/components/pencilkit/pencilkit-annotator.d.ts.map +1 -1
- package/dist/components/pencilkit/pencilkit-annotator.js +44 -0
- package/dist/components/pencilkit/stroke-path.d.ts +1 -1
- package/dist/components/pencilkit/stroke-path.d.ts.map +1 -1
- package/dist/components/pencilkit/stroke-path.js +44 -0
- package/dist/components/pencilkit/use-pencil-history.d.ts +2 -2
- package/dist/components/pencilkit/use-pencil-history.d.ts.map +1 -1
- package/dist/components/pencilkit/use-pencil-history.js +25 -0
- package/dist/components/plain-button.d.ts +10 -0
- package/dist/components/plain-button.d.ts.map +1 -0
- package/dist/components/plain-button.js +23 -0
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.d.ts.map +1 -1
- package/dist/components/popover.js +36 -0
- package/dist/components/progress-ring.d.ts +34 -15
- package/dist/components/progress-ring.d.ts.map +1 -1
- package/dist/components/progress-ring.js +195 -0
- package/dist/components/progress-stepper.d.ts.map +1 -0
- package/dist/components/progress-stepper.js +62 -0
- package/dist/components/progress.d.ts.map +1 -1
- package/dist/components/progress.js +54 -0
- package/dist/components/qr-svg.d.ts.map +1 -1
- package/dist/components/qr-svg.js +74 -0
- package/dist/components/radio-group.d.ts +1 -1
- package/dist/components/radio-group.d.ts.map +1 -1
- package/dist/components/radio-group.js +41 -0
- package/dist/components/replay-preview.d.ts +4 -0
- package/dist/components/replay-preview.d.ts.map +1 -0
- package/dist/components/replay-preview.js +3 -0
- package/dist/components/scroll-area.js +23 -0
- package/dist/components/search-field.d.ts.map +1 -1
- package/dist/components/search-field.js +44 -0
- package/dist/components/segmented.d.ts +2 -2
- package/dist/components/segmented.d.ts.map +1 -1
- package/dist/components/segmented.js +32 -0
- package/dist/components/select.d.ts +1 -1
- package/dist/components/select.d.ts.map +1 -1
- package/dist/components/select.js +93 -0
- package/dist/components/separator.d.ts.map +1 -1
- package/dist/components/separator.js +40 -0
- package/dist/components/sheet.d.ts.map +1 -1
- package/dist/components/sheet.js +55 -0
- package/dist/components/side-drawer.d.ts +16 -2
- package/dist/components/side-drawer.d.ts.map +1 -1
- package/dist/components/side-drawer.js +247 -0
- package/dist/components/sidebar.d.ts.map +1 -1
- package/dist/components/sidebar.js +282 -0
- package/dist/components/skeleton.js +48 -0
- package/dist/components/slider.d.ts +10 -4
- package/dist/components/slider.d.ts.map +1 -1
- package/dist/components/slider.js +98 -0
- package/dist/components/snap-sheet.d.ts +13 -0
- package/dist/components/snap-sheet.d.ts.map +1 -0
- package/dist/components/snap-sheet.js +100 -0
- package/dist/components/spinner.js +35 -0
- package/dist/components/split-view.d.ts +34 -5
- package/dist/components/split-view.d.ts.map +1 -1
- package/dist/components/split-view.js +1060 -0
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/switch.d.ts.map +1 -1
- package/dist/components/switch.js +27 -0
- package/dist/components/syntax-highlighting.d.ts.map +1 -1
- package/dist/components/syntax-highlighting.js +293 -0
- package/dist/components/tab-bar.js +28 -0
- package/dist/components/tab-view.d.ts +8 -7
- package/dist/components/tab-view.d.ts.map +1 -1
- package/dist/components/tab-view.js +307 -0
- package/dist/components/tabs.d.ts +1 -1
- package/dist/components/tabs.d.ts.map +1 -1
- package/dist/components/tabs.js +86 -0
- package/dist/components/text-field.d.ts.map +1 -1
- package/dist/components/text-field.js +29 -0
- package/dist/components/text-morph.d.ts.map +1 -1
- package/dist/components/text-morph.js +131 -0
- package/dist/components/textarea.d.ts.map +1 -1
- package/dist/components/textarea.js +30 -0
- package/dist/components/toast.d.ts +8 -2
- package/dist/components/toast.d.ts.map +1 -1
- package/dist/components/toast.js +302 -0
- package/dist/components/toggle-group.d.ts +1 -1
- package/dist/components/toggle-group.d.ts.map +1 -1
- package/dist/components/toggle-group.js +48 -0
- package/dist/components/toggle.d.ts +1 -1
- package/dist/components/toggle.d.ts.map +1 -1
- package/dist/components/toggle.js +42 -0
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.d.ts.map +1 -1
- package/dist/components/tooltip.js +42 -0
- package/dist/{lib/workbench/theme.d.ts → components/workbench-theme.d.ts} +4 -5
- package/dist/components/workbench-theme.d.ts.map +1 -0
- package/dist/components/workbench-theme.js +34 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +37 -80
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +91 -20192
- package/dist/lib/container.d.ts.map +1 -1
- package/dist/lib/container.js +49 -0
- package/dist/lib/icon-shapes/chat.d.ts +32 -0
- package/dist/lib/icon-shapes/chat.d.ts.map +1 -0
- package/dist/lib/icon-shapes/chat.js +13 -0
- package/dist/lib/icon-shapes/pencilkit.d.ts +49 -0
- package/dist/lib/icon-shapes/pencilkit.d.ts.map +1 -0
- package/dist/lib/icon-shapes/pencilkit.js +20 -0
- package/dist/lib/icon-shapes/workbench.d.ts +199 -0
- package/dist/lib/icon-shapes/workbench.d.ts.map +1 -0
- package/dist/lib/icon-shapes/workbench.js +47 -0
- package/dist/lib/icon.d.ts +352 -1
- package/dist/lib/icon.d.ts.map +1 -1
- package/dist/lib/icon.js +1774 -0
- package/dist/lib/motion.d.ts +16 -0
- package/dist/lib/motion.d.ts.map +1 -1
- package/dist/lib/motion.js +104 -0
- package/dist/lib/{chat/persistent-host.d.ts → persistent-host.d.ts} +1 -1
- package/dist/lib/persistent-host.d.ts.map +1 -0
- package/dist/lib/persistent-host.js +41 -0
- package/dist/lib/primitives.d.ts +1 -1
- package/dist/lib/primitives.d.ts.map +1 -1
- package/dist/lib/primitives.js +8 -0
- package/dist/lib/qr.js +552 -0
- package/dist/lib/row-label.d.ts +9 -0
- package/dist/lib/row-label.d.ts.map +1 -0
- package/dist/lib/row-label.js +10 -0
- package/dist/lib/sheet-drag.d.ts +22 -7
- package/dist/lib/sheet-drag.d.ts.map +1 -1
- package/dist/lib/sheet-drag.js +128 -0
- package/dist/lib/syntax.js +204 -0
- package/dist/lib/theme.d.ts +61 -5
- package/dist/lib/theme.d.ts.map +1 -1
- package/dist/lib/theme.js +138 -0
- package/dist/lib/tokens.generated.d.ts +16 -0
- package/dist/lib/tokens.generated.d.ts.map +1 -0
- package/dist/lib/tokens.generated.js +22 -0
- package/dist/lib/utils.d.ts +5 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +18 -0
- package/dist/theme.css +265 -0
- package/package.json +8 -7
- package/dist/components/adaptive-pane.stories.d.ts +0 -7
- package/dist/components/adaptive-pane.stories.d.ts.map +0 -1
- package/dist/components/avatar.stories.d.ts +0 -9
- package/dist/components/avatar.stories.d.ts.map +0 -1
- package/dist/components/badge.stories.d.ts +0 -9
- package/dist/components/badge.stories.d.ts.map +0 -1
- package/dist/components/button.stories.d.ts +0 -9
- package/dist/components/button.stories.d.ts.map +0 -1
- package/dist/components/card.stories.d.ts +0 -9
- package/dist/components/card.stories.d.ts.map +0 -1
- package/dist/components/chat/channel-list.d.ts +0 -35
- package/dist/components/chat/channel-list.d.ts.map +0 -1
- package/dist/components/chat/channel-list.stories.d.ts +0 -13
- package/dist/components/chat/channel-list.stories.d.ts.map +0 -1
- package/dist/components/chat/chat-avatar.d.ts +0 -13
- package/dist/components/chat/chat-avatar.d.ts.map +0 -1
- package/dist/components/chat/chat-avatar.stories.d.ts +0 -9
- package/dist/components/chat/chat-avatar.stories.d.ts.map +0 -1
- package/dist/components/chat/chat-column.d.ts.map +0 -1
- package/dist/components/chat/chat-column.stories.d.ts +0 -7
- package/dist/components/chat/chat-column.stories.d.ts.map +0 -1
- package/dist/components/chat/chat-composer.d.ts +0 -22
- package/dist/components/chat/chat-composer.d.ts.map +0 -1
- package/dist/components/chat/chat-composer.stories.d.ts +0 -16
- package/dist/components/chat/chat-composer.stories.d.ts.map +0 -1
- package/dist/components/chat/chat.fixtures.d.ts +0 -29
- package/dist/components/chat/chat.fixtures.d.ts.map +0 -1
- package/dist/components/chat/floating-chat.d.ts.map +0 -1
- package/dist/components/chat/floating-chat.stories.d.ts +0 -17
- package/dist/components/chat/floating-chat.stories.d.ts.map +0 -1
- package/dist/components/chat/floating-sheet.d.ts.map +0 -1
- package/dist/components/chat/floating-sheet.stories.d.ts +0 -22
- package/dist/components/chat/floating-sheet.stories.d.ts.map +0 -1
- package/dist/components/chat/member-list.d.ts +0 -21
- package/dist/components/chat/member-list.d.ts.map +0 -1
- package/dist/components/chat/message-list.d.ts +0 -34
- package/dist/components/chat/message-list.d.ts.map +0 -1
- package/dist/components/chat/message.d.ts +0 -47
- package/dist/components/chat/message.d.ts.map +0 -1
- package/dist/components/chat/message.stories.d.ts +0 -30
- package/dist/components/chat/message.stories.d.ts.map +0 -1
- package/dist/components/chat/progress-stepper.d.ts.map +0 -1
- package/dist/components/chat/rich-text.d.ts +0 -8
- package/dist/components/chat/rich-text.d.ts.map +0 -1
- package/dist/components/chat/rich-text.stories.d.ts +0 -9
- package/dist/components/chat/rich-text.stories.d.ts.map +0 -1
- package/dist/components/chat/server-header.d.ts +0 -10
- package/dist/components/chat/server-header.d.ts.map +0 -1
- package/dist/components/chat/thread-preview.d.ts +0 -25
- package/dist/components/chat/thread-preview.d.ts.map +0 -1
- package/dist/components/chat/thread-preview.stories.d.ts +0 -18
- package/dist/components/chat/thread-preview.stories.d.ts.map +0 -1
- package/dist/components/chat/user-panel.d.ts +0 -16
- package/dist/components/chat/user-panel.d.ts.map +0 -1
- package/dist/components/chat/workspace-rail.d.ts +0 -56
- package/dist/components/chat/workspace-rail.d.ts.map +0 -1
- package/dist/components/chat/workspace-rail.stories.d.ts +0 -12
- package/dist/components/chat/workspace-rail.stories.d.ts.map +0 -1
- package/dist/components/checkbox.stories.d.ts +0 -11
- package/dist/components/checkbox.stories.d.ts.map +0 -1
- package/dist/components/combobox.stories.d.ts +0 -10
- package/dist/components/combobox.stories.d.ts.map +0 -1
- package/dist/components/credenza.stories.d.ts +0 -8
- package/dist/components/credenza.stories.d.ts.map +0 -1
- package/dist/components/dialog.stories.d.ts +0 -12
- package/dist/components/dialog.stories.d.ts.map +0 -1
- package/dist/components/disclosure.stories.d.ts +0 -10
- package/dist/components/disclosure.stories.d.ts.map +0 -1
- package/dist/components/dropdown-menu.stories.d.ts +0 -11
- package/dist/components/dropdown-menu.stories.d.ts.map +0 -1
- package/dist/components/edge-drawer.stories.d.ts +0 -8
- package/dist/components/edge-drawer.stories.d.ts.map +0 -1
- package/dist/components/edit-bar.stories.d.ts +0 -10
- package/dist/components/edit-bar.stories.d.ts.map +0 -1
- package/dist/components/form.stories.d.ts +0 -9
- package/dist/components/form.stories.d.ts.map +0 -1
- package/dist/components/haptic-indicator.d.ts +0 -11
- package/dist/components/haptic-indicator.d.ts.map +0 -1
- package/dist/components/haptic-indicator.stories.d.ts +0 -8
- package/dist/components/haptic-indicator.stories.d.ts.map +0 -1
- package/dist/components/index-bar.stories.d.ts +0 -12
- package/dist/components/index-bar.stories.d.ts.map +0 -1
- package/dist/components/input.stories.d.ts +0 -10
- package/dist/components/input.stories.d.ts.map +0 -1
- package/dist/components/kbd.stories.d.ts +0 -9
- package/dist/components/kbd.stories.d.ts.map +0 -1
- package/dist/components/label.stories.d.ts +0 -8
- package/dist/components/label.stories.d.ts.map +0 -1
- package/dist/components/list-box.stories.d.ts +0 -9
- package/dist/components/list-box.stories.d.ts.map +0 -1
- package/dist/components/list-row.stories.d.ts +0 -21
- package/dist/components/list-row.stories.d.ts.map +0 -1
- package/dist/components/list.stories.d.ts +0 -27
- package/dist/components/list.stories.d.ts.map +0 -1
- package/dist/components/markdown-editor.stories.d.ts +0 -17
- package/dist/components/markdown-editor.stories.d.ts.map +0 -1
- package/dist/components/morph.stories.d.ts +0 -14
- package/dist/components/morph.stories.d.ts.map +0 -1
- package/dist/components/motion.stories.d.ts +0 -15
- package/dist/components/motion.stories.d.ts.map +0 -1
- package/dist/components/navigation-stack.stories.d.ts +0 -31
- package/dist/components/navigation-stack.stories.d.ts.map +0 -1
- package/dist/components/now-playing-bars.stories.d.ts +0 -12
- package/dist/components/now-playing-bars.stories.d.ts.map +0 -1
- package/dist/components/pencilkit/pencil-canvas.stories.d.ts +0 -18
- package/dist/components/pencilkit/pencil-canvas.stories.d.ts.map +0 -1
- package/dist/components/pencilkit/pencil-toolbar.stories.d.ts +0 -10
- package/dist/components/pencilkit/pencil-toolbar.stories.d.ts.map +0 -1
- package/dist/components/pencilkit/pk-icon.d.ts +0 -8
- package/dist/components/pencilkit/pk-icon.d.ts.map +0 -1
- package/dist/components/pill-button.d.ts +0 -11
- package/dist/components/pill-button.d.ts.map +0 -1
- package/dist/components/pill-button.stories.d.ts +0 -9
- package/dist/components/pill-button.stories.d.ts.map +0 -1
- package/dist/components/popover.stories.d.ts +0 -9
- package/dist/components/popover.stories.d.ts.map +0 -1
- package/dist/components/progress-ring.stories.d.ts +0 -15
- package/dist/components/progress-ring.stories.d.ts.map +0 -1
- package/dist/components/progress.stories.d.ts +0 -10
- package/dist/components/progress.stories.d.ts.map +0 -1
- package/dist/components/qr-svg.stories.d.ts +0 -16
- package/dist/components/qr-svg.stories.d.ts.map +0 -1
- package/dist/components/radio-group.stories.d.ts +0 -10
- package/dist/components/radio-group.stories.d.ts.map +0 -1
- package/dist/components/scroll-area.stories.d.ts +0 -8
- package/dist/components/scroll-area.stories.d.ts.map +0 -1
- package/dist/components/search-field.stories.d.ts +0 -10
- package/dist/components/search-field.stories.d.ts.map +0 -1
- package/dist/components/segmented.stories.d.ts +0 -8
- package/dist/components/segmented.stories.d.ts.map +0 -1
- package/dist/components/select.stories.d.ts +0 -12
- package/dist/components/select.stories.d.ts.map +0 -1
- package/dist/components/separator.stories.d.ts +0 -9
- package/dist/components/separator.stories.d.ts.map +0 -1
- package/dist/components/sheet.stories.d.ts +0 -12
- package/dist/components/sheet.stories.d.ts.map +0 -1
- package/dist/components/side-drawer.stories.d.ts +0 -8
- package/dist/components/side-drawer.stories.d.ts.map +0 -1
- package/dist/components/sidebar.stories.d.ts +0 -10
- package/dist/components/sidebar.stories.d.ts.map +0 -1
- package/dist/components/skeleton.stories.d.ts +0 -11
- package/dist/components/skeleton.stories.d.ts.map +0 -1
- package/dist/components/slider.stories.d.ts +0 -12
- package/dist/components/slider.stories.d.ts.map +0 -1
- package/dist/components/spinner.stories.d.ts +0 -9
- package/dist/components/spinner.stories.d.ts.map +0 -1
- package/dist/components/split-view.stories.d.ts +0 -51
- package/dist/components/split-view.stories.d.ts.map +0 -1
- package/dist/components/switch.stories.d.ts +0 -9
- package/dist/components/switch.stories.d.ts.map +0 -1
- package/dist/components/syntax-highlighting.stories.d.ts +0 -18
- package/dist/components/syntax-highlighting.stories.d.ts.map +0 -1
- package/dist/components/tab-bar.stories.d.ts +0 -8
- package/dist/components/tab-bar.stories.d.ts.map +0 -1
- package/dist/components/tab-view.stories.d.ts +0 -28
- package/dist/components/tab-view.stories.d.ts.map +0 -1
- package/dist/components/tabs.stories.d.ts +0 -9
- package/dist/components/tabs.stories.d.ts.map +0 -1
- package/dist/components/text-field.stories.d.ts +0 -9
- package/dist/components/text-field.stories.d.ts.map +0 -1
- package/dist/components/toast.stories.d.ts +0 -13
- package/dist/components/toast.stories.d.ts.map +0 -1
- package/dist/components/toggle-group.stories.d.ts +0 -10
- package/dist/components/toggle-group.stories.d.ts.map +0 -1
- package/dist/components/toggle.stories.d.ts +0 -9
- package/dist/components/toggle.stories.d.ts.map +0 -1
- package/dist/components/tooltip.stories.d.ts +0 -11
- package/dist/components/tooltip.stories.d.ts.map +0 -1
- package/dist/components/workbench/annotator.d.ts.map +0 -1
- package/dist/components/workbench/chat.d.ts.map +0 -1
- package/dist/components/workbench/chat.stories.d.ts +0 -13
- package/dist/components/workbench/chat.stories.d.ts.map +0 -1
- package/dist/components/workbench/composer-files.d.ts.map +0 -1
- package/dist/components/workbench/composer.d.ts.map +0 -1
- package/dist/components/workbench/composer.stories.d.ts +0 -35
- package/dist/components/workbench/composer.stories.d.ts.map +0 -1
- package/dist/components/workbench/fixtures.d.ts +0 -38
- package/dist/components/workbench/fixtures.d.ts.map +0 -1
- package/dist/components/workbench/markdown.d.ts.map +0 -1
- package/dist/components/workbench/message-scroller.d.ts.map +0 -1
- package/dist/components/workbench/message-scroller.stories.d.ts +0 -9
- package/dist/components/workbench/message-scroller.stories.d.ts.map +0 -1
- package/dist/components/workbench/model-picker.d.ts +0 -29
- package/dist/components/workbench/model-picker.d.ts.map +0 -1
- package/dist/components/workbench/models.d.ts +0 -32
- package/dist/components/workbench/models.d.ts.map +0 -1
- package/dist/components/workbench/snap-sheet.d.ts +0 -12
- package/dist/components/workbench/snap-sheet.d.ts.map +0 -1
- package/dist/components/workbench/snap-sheet.stories.d.ts +0 -8
- package/dist/components/workbench/snap-sheet.stories.d.ts.map +0 -1
- package/dist/components/workbench/surfaces.d.ts +0 -67
- package/dist/components/workbench/surfaces.d.ts.map +0 -1
- package/dist/components/workbench/surfaces.stories.d.ts +0 -15
- package/dist/components/workbench/surfaces.stories.d.ts.map +0 -1
- package/dist/components/workbench/terminal.d.ts +0 -43
- package/dist/components/workbench/terminal.d.ts.map +0 -1
- package/dist/components/workbench/terminal.stories.d.ts +0 -8
- package/dist/components/workbench/terminal.stories.d.ts.map +0 -1
- package/dist/components/workbench/thread-sidebar.d.ts +0 -100
- package/dist/components/workbench/thread-sidebar.d.ts.map +0 -1
- package/dist/components/workbench/thread-sidebar.stories.d.ts +0 -9
- package/dist/components/workbench/thread-sidebar.stories.d.ts.map +0 -1
- package/dist/components/workbench/wb-popover.d.ts.map +0 -1
- package/dist/components/workbench/workbench-composer.d.ts +0 -26
- package/dist/components/workbench/workbench-composer.d.ts.map +0 -1
- package/dist/demos/delivery/delivery-tracking-demo.d.ts +0 -41
- package/dist/demos/delivery/delivery-tracking-demo.d.ts.map +0 -1
- package/dist/demos/delivery/delivery-tracking-demo.stories.d.ts +0 -13
- package/dist/demos/delivery/delivery-tracking-demo.stories.d.ts.map +0 -1
- package/dist/demos/haptics-playground.d.ts +0 -18
- package/dist/demos/haptics-playground.d.ts.map +0 -1
- package/dist/demos/haptics-playground.stories.d.ts +0 -8
- package/dist/demos/haptics-playground.stories.d.ts.map +0 -1
- package/dist/demos/map-chat/geo.d.ts +0 -46
- package/dist/demos/map-chat/geo.d.ts.map +0 -1
- package/dist/demos/map-chat/map-agent.d.ts +0 -48
- package/dist/demos/map-chat/map-agent.d.ts.map +0 -1
- package/dist/demos/map-chat/map-chat-demo.d.ts +0 -19
- package/dist/demos/map-chat/map-chat-demo.d.ts.map +0 -1
- package/dist/demos/map-chat/map-chat-demo.stories.d.ts +0 -16
- package/dist/demos/map-chat/map-chat-demo.stories.d.ts.map +0 -1
- package/dist/demos/map-chat/map-icons.d.ts +0 -44
- package/dist/demos/map-chat/map-icons.d.ts.map +0 -1
- package/dist/demos/map-chat/places.d.ts +0 -29
- package/dist/demos/map-chat/places.d.ts.map +0 -1
- package/dist/demos/map-chat/tile-map.d.ts +0 -72
- package/dist/demos/map-chat/tile-map.d.ts.map +0 -1
- package/dist/demos/pencilkit/demo-strokes.d.ts +0 -4
- package/dist/demos/pencilkit/demo-strokes.d.ts.map +0 -1
- package/dist/demos/pencilkit/pencilkit-demo.d.ts +0 -15
- package/dist/demos/pencilkit/pencilkit-demo.d.ts.map +0 -1
- package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts +0 -11
- package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts.map +0 -1
- package/dist/demos/sidebar-demo.d.ts +0 -9
- package/dist/demos/sidebar-demo.d.ts.map +0 -1
- package/dist/demos/split-view-demos.d.ts +0 -50
- package/dist/demos/split-view-demos.d.ts.map +0 -1
- package/dist/lib/chat/chat-icon.d.ts +0 -24
- package/dist/lib/chat/chat-icon.d.ts.map +0 -1
- package/dist/lib/chat/chat-shell-context.d.ts +0 -19
- package/dist/lib/chat/chat-shell-context.d.ts.map +0 -1
- package/dist/lib/chat/chat-tokens.d.ts +0 -72
- package/dist/lib/chat/chat-tokens.d.ts.map +0 -1
- package/dist/lib/chat/chat-users.d.ts +0 -18
- package/dist/lib/chat/chat-users.d.ts.map +0 -1
- package/dist/lib/chat/kvib.d.ts +0 -3
- package/dist/lib/chat/kvib.d.ts.map +0 -1
- package/dist/lib/chat/persistent-host.d.ts.map +0 -1
- package/dist/lib/chat/title-ref.d.ts +0 -3
- package/dist/lib/chat/title-ref.d.ts.map +0 -1
- package/dist/lib/haptics.d.ts +0 -27
- package/dist/lib/haptics.d.ts.map +0 -1
- package/dist/lib/icon.stories.d.ts +0 -15
- package/dist/lib/icon.stories.d.ts.map +0 -1
- package/dist/lib/pencilkit/constants.d.ts.map +0 -1
- package/dist/lib/workbench/haptics.d.ts +0 -3
- package/dist/lib/workbench/haptics.d.ts.map +0 -1
- package/dist/lib/workbench/icons.d.ts +0 -29
- package/dist/lib/workbench/icons.d.ts.map +0 -1
- package/dist/lib/workbench/motion.d.ts +0 -83
- package/dist/lib/workbench/motion.d.ts.map +0 -1
- package/dist/lib/workbench/press.d.ts +0 -10
- package/dist/lib/workbench/press.d.ts.map +0 -1
- package/dist/lib/workbench/theme.d.ts.map +0 -1
- package/dist/lib/workbench/util.d.ts +0 -6
- package/dist/lib/workbench/util.d.ts.map +0 -1
- package/dist/stories/frame.d.ts +0 -16
- package/dist/stories/frame.d.ts.map +0 -1
- package/dist/stories/primitive-frame.d.ts +0 -20
- package/dist/stories/primitive-frame.d.ts.map +0 -1
- package/dist/templates/artifact-chat-container.d.ts.map +0 -1
- package/dist/templates/artifact-chat-container.stories.d.ts +0 -24
- package/dist/templates/artifact-chat-container.stories.d.ts.map +0 -1
- package/dist/templates/chat-shell.d.ts +0 -86
- package/dist/templates/chat-shell.d.ts.map +0 -1
- package/dist/templates/chat-shell.stories.d.ts +0 -22
- package/dist/templates/chat-shell.stories.d.ts.map +0 -1
- package/dist/templates/workbench-shell.d.ts +0 -177
- package/dist/templates/workbench-shell.d.ts.map +0 -1
- package/dist/templates/workbench-shell.stories.d.ts +0 -17
- package/dist/templates/workbench-shell.stories.d.ts.map +0 -1
- /package/dist/components/{chat/chat-column.d.ts → chat-column.d.ts} +0 -0
- /package/dist/components/{workbench → composer}/annotator.d.ts +0 -0
- /package/dist/components/{workbench → composer}/composer-files.d.ts +0 -0
- /package/dist/components/{workbench/message-scroller.d.ts → message-scroller.d.ts} +0 -0
- /package/dist/components/{chat/progress-stepper.d.ts → progress-stepper.d.ts} +0 -0
|
@@ -0,0 +1,1060 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../lib/utils.js";
|
|
3
|
+
import { fades as t, springs as n, useReducedMotion as r } from "../lib/motion.js";
|
|
4
|
+
import { Icon as i } from "../lib/icon.js";
|
|
5
|
+
import { Chevron as a } from "./icon-swap.js";
|
|
6
|
+
import { AnimatedHeight as o } from "./animated-height.js";
|
|
7
|
+
import { useContainerWidth as s } from "../lib/container.js";
|
|
8
|
+
import { animate as c, motion as l, useMotionValue as u } from "framer-motion";
|
|
9
|
+
import { createContext as d, useCallback as f, useContext as p, useEffect as m, useId as h, useLayoutEffect as g, useMemo as _, useRef as v, useState as y } from "react";
|
|
10
|
+
import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
11
|
+
import { Button as C } from "react-aria-components";
|
|
12
|
+
import { cva as w } from "class-variance-authority";
|
|
13
|
+
import { mergeProps as T, useFocusRing as E, useHover as D, useMove as O } from "react-aria";
|
|
14
|
+
//#region src/components/split-view.tsx
|
|
15
|
+
var ee = [
|
|
16
|
+
"sidebar",
|
|
17
|
+
"supplementary",
|
|
18
|
+
"detail"
|
|
19
|
+
], k = {
|
|
20
|
+
sidebar: {
|
|
21
|
+
width: 280,
|
|
22
|
+
minWidth: 200,
|
|
23
|
+
maxWidth: 380,
|
|
24
|
+
resizable: !0
|
|
25
|
+
},
|
|
26
|
+
supplementary: {
|
|
27
|
+
width: 340,
|
|
28
|
+
minWidth: 260,
|
|
29
|
+
maxWidth: 480,
|
|
30
|
+
resizable: !0
|
|
31
|
+
},
|
|
32
|
+
detail: {
|
|
33
|
+
width: 0,
|
|
34
|
+
minWidth: 320,
|
|
35
|
+
maxWidth: Infinity,
|
|
36
|
+
resizable: !1
|
|
37
|
+
}
|
|
38
|
+
}, A = (e, t, n) => Math.max(t, Math.min(n, e));
|
|
39
|
+
function j(e) {
|
|
40
|
+
let { W: t, wc: n, present: r, specs: i, widths: a, sidebarVisible: o, behavior: s, top: c, swipe: l, hidden: u = [] } = e, d = {}, f = 0, p = (e, t) => ({
|
|
41
|
+
x: e,
|
|
42
|
+
width: t,
|
|
43
|
+
z: 0,
|
|
44
|
+
dim: 0,
|
|
45
|
+
inert: !0,
|
|
46
|
+
lifted: !1,
|
|
47
|
+
resizable: !1,
|
|
48
|
+
hairline: !0
|
|
49
|
+
});
|
|
50
|
+
if (n === "compact") {
|
|
51
|
+
u.forEach((e) => {
|
|
52
|
+
d[e] = p(t + 24, t);
|
|
53
|
+
});
|
|
54
|
+
let e = Math.max(0, r.indexOf(c)), n = t ? A(l / t, 0, 1) : 0;
|
|
55
|
+
return r.forEach((r, i) => {
|
|
56
|
+
let a = i < e ? -.3 * t : i === e ? 0 : t + 24, o = i < e ? .1 : 0;
|
|
57
|
+
n > 0 && i === e && (a = l), n > 0 && i === e - 1 && (a = -.3 * t * (1 - n), o = .1 * (1 - n)), d[r] = {
|
|
58
|
+
x: a,
|
|
59
|
+
width: t,
|
|
60
|
+
z: 10 + i,
|
|
61
|
+
dim: o,
|
|
62
|
+
inert: i !== e,
|
|
63
|
+
lifted: i > 0 && i <= e,
|
|
64
|
+
resizable: !1,
|
|
65
|
+
hairline: !1
|
|
66
|
+
};
|
|
67
|
+
}), {
|
|
68
|
+
columns: d,
|
|
69
|
+
scrim: f
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
let m = (e) => r.includes(e), h = (e) => i[e] ?? k[e], g = m("detail") ? h("detail").minWidth : 0, _ = m("sidebar") && r.length > 1, v = _ && o, y = _ ? A(a.sidebar ?? h("sidebar").width, h("sidebar").minWidth, h("sidebar").maxWidth) : 0, b = v && s === "tile", x = v && s !== "overlay" ? y : 0, S = t - (b ? y : 0);
|
|
73
|
+
_ && (d.sidebar = {
|
|
74
|
+
x: v ? 0 : -y - (s === "tile" ? 0 : 32),
|
|
75
|
+
width: y,
|
|
76
|
+
z: s === "tile" ? 2 : 30,
|
|
77
|
+
dim: 0,
|
|
78
|
+
inert: !v,
|
|
79
|
+
lifted: v && s !== "tile",
|
|
80
|
+
resizable: b && h("sidebar").resizable,
|
|
81
|
+
hairline: !0
|
|
82
|
+
}, v && s !== "tile" && (f = s === "overlay" ? 1 : .6));
|
|
83
|
+
let C = r.filter((e) => e !== "sidebar" || !_);
|
|
84
|
+
u.forEach((e) => {
|
|
85
|
+
let t = h(e), n = A(a[e] ?? t.width, t.minWidth, t.maxWidth);
|
|
86
|
+
d[e] = p(x - n - 1, n);
|
|
87
|
+
});
|
|
88
|
+
let w = x;
|
|
89
|
+
return C.forEach((e, t) => {
|
|
90
|
+
let n = t === C.length - 1, r = h(e), i;
|
|
91
|
+
if (n) i = Math.max(S - (w - x), 0);
|
|
92
|
+
else {
|
|
93
|
+
let n = C.slice(t + 1).reduce((e, t) => e + (t === "detail" ? g : h(t).minWidth), 0);
|
|
94
|
+
i = A(a[e] ?? r.width, r.minWidth, Math.max(r.minWidth, Math.min(r.maxWidth, S - (w - x) - n)));
|
|
95
|
+
}
|
|
96
|
+
d[e] = {
|
|
97
|
+
x: w,
|
|
98
|
+
width: i,
|
|
99
|
+
z: 1,
|
|
100
|
+
dim: 0,
|
|
101
|
+
inert: !1,
|
|
102
|
+
lifted: !1,
|
|
103
|
+
resizable: !n && r.resizable,
|
|
104
|
+
hairline: !n
|
|
105
|
+
}, w += i;
|
|
106
|
+
}), {
|
|
107
|
+
columns: d,
|
|
108
|
+
scrim: f
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
var M = d(null), N = d(null);
|
|
112
|
+
function P(e) {
|
|
113
|
+
let t = p(M);
|
|
114
|
+
if (!t) throw Error(`<${e}> must be rendered inside <SplitView>`);
|
|
115
|
+
return t;
|
|
116
|
+
}
|
|
117
|
+
function F() {
|
|
118
|
+
return P("useSplitView");
|
|
119
|
+
}
|
|
120
|
+
function I() {
|
|
121
|
+
return p(N);
|
|
122
|
+
}
|
|
123
|
+
function L(e) {
|
|
124
|
+
let t = p(M), n = p(N), r = p(ce), i = t?.setTitle, a = !r || r.index === 0;
|
|
125
|
+
if (g(() => {
|
|
126
|
+
i && n && a && e !== void 0 && i(n, e);
|
|
127
|
+
}, [
|
|
128
|
+
i,
|
|
129
|
+
n,
|
|
130
|
+
a,
|
|
131
|
+
e
|
|
132
|
+
]), !t || !n || !t.collapsed || !a) return null;
|
|
133
|
+
let o = t.columns.indexOf(n);
|
|
134
|
+
return o < 1 ? null : {
|
|
135
|
+
title: t.titles[t.columns[o - 1]] ?? "Back",
|
|
136
|
+
back: t.back
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
function R({ widthClass: t, breakpoints: n = {
|
|
140
|
+
medium: 640,
|
|
141
|
+
regular: 1024
|
|
142
|
+
}, sidebarBehavior: i = "auto", sidebarVisible: a, defaultSidebarVisible: o = !0, sidebarVisibility: c, onSidebarVisibleChange: l, supplementaryVisible: u, defaultSupplementaryVisible: d = !0, onSupplementaryVisibleChange: p, selection: _, defaultSelection: b, onSelectionChange: C, defaultCompactColumn: w, onCompactColumnChange: T, onWidthClassChange: E, children: D, className: O, style: k, ...A }) {
|
|
143
|
+
let [N, P] = s(), F = t ?? (P >= n.regular ? "regular" : P >= n.medium ? "medium" : "compact"), I = F === "compact", L = !!r(), R = h(), [B, te] = y({}), H = f((e, t) => {
|
|
144
|
+
te((n) => {
|
|
145
|
+
let r = n[e];
|
|
146
|
+
if (t == null) {
|
|
147
|
+
if (!r) return n;
|
|
148
|
+
let t = { ...n };
|
|
149
|
+
return delete t[e], t;
|
|
150
|
+
}
|
|
151
|
+
return r && r.width === t.width && r.minWidth === t.minWidth && r.maxWidth === t.maxWidth && r.resizable === t.resizable ? n : {
|
|
152
|
+
...n,
|
|
153
|
+
[e]: t
|
|
154
|
+
};
|
|
155
|
+
});
|
|
156
|
+
}, []), [U, W] = y(d), G = u ?? U, K = v(p);
|
|
157
|
+
K.current = p;
|
|
158
|
+
let ne = f((e) => {
|
|
159
|
+
W(e), K.current?.(e);
|
|
160
|
+
}, []), re = ee.filter((e) => B[e]), ie = !G && B.supplementary && B.detail ? ["supplementary"] : [], q = re.filter((e) => !ie.includes(e)), [ae, J] = y({}), Y = f((e, t) => {
|
|
161
|
+
J((n) => n[e] === t ? n : {
|
|
162
|
+
...n,
|
|
163
|
+
[e]: t
|
|
164
|
+
});
|
|
165
|
+
}, []), X = (e) => e === "regular" ? c?.regular ?? o : e === "medium" ? c?.medium ?? !1 : !1, [Z, oe] = y(() => X(F)), [se, ce] = y(F);
|
|
166
|
+
se !== F && (ce(F), oe(X(F)));
|
|
167
|
+
let Q = a ?? Z, le = v(l);
|
|
168
|
+
le.current = l;
|
|
169
|
+
let $ = f((e) => {
|
|
170
|
+
oe(e), le.current?.(e);
|
|
171
|
+
}, []), ue = v(Q), de = v(!1), fe = v(X);
|
|
172
|
+
fe.current = X, m(() => {
|
|
173
|
+
if (!de.current) return;
|
|
174
|
+
let e = fe.current(F);
|
|
175
|
+
e !== ue.current && le.current?.(e);
|
|
176
|
+
}, [F]), m(() => {
|
|
177
|
+
ue.current = Q;
|
|
178
|
+
});
|
|
179
|
+
let pe = v(E);
|
|
180
|
+
pe.current = E, m(() => {
|
|
181
|
+
pe.current?.(F);
|
|
182
|
+
}, [F]);
|
|
183
|
+
let me = i === "auto" ? F === "regular" ? "tile" : "overlay" : i, [he, ge] = y(b ?? {}), _e = _ ?? he, ve = v(_e);
|
|
184
|
+
ve.current = _e;
|
|
185
|
+
let ye = v(C);
|
|
186
|
+
ye.current = C;
|
|
187
|
+
let [be, xe] = y(w ?? null), Se = be && q.includes(be) ? be : q.includes("supplementary") ? "supplementary" : q.includes("sidebar") ? "sidebar" : q[0] ?? "detail", Ce = v(T);
|
|
188
|
+
Ce.current = T;
|
|
189
|
+
let we = v(q);
|
|
190
|
+
we.current = q;
|
|
191
|
+
let Te = v(Se);
|
|
192
|
+
Te.current = Se;
|
|
193
|
+
let Ee = f((e) => {
|
|
194
|
+
e !== Te.current && (xe(e), Ce.current?.(e));
|
|
195
|
+
}, []), De = f(() => {
|
|
196
|
+
let e = we.current, t = e.indexOf(Te.current);
|
|
197
|
+
t > 0 && Ee(e[t - 1]);
|
|
198
|
+
}, [Ee]), Oe = v(me);
|
|
199
|
+
Oe.current = me;
|
|
200
|
+
let ke = v(I);
|
|
201
|
+
ke.current = I;
|
|
202
|
+
let Ae = f((e, t) => {
|
|
203
|
+
let n = {
|
|
204
|
+
...ve.current,
|
|
205
|
+
[e]: t
|
|
206
|
+
};
|
|
207
|
+
ve.current = n, ge(n), ye.current?.(n);
|
|
208
|
+
let r = we.current, i = r[r.indexOf(e) + 1];
|
|
209
|
+
Ee(t != null && i ? i : e), e === "sidebar" && !ke.current && Oe.current !== "tile" && $(!1);
|
|
210
|
+
}, [Ee, $]), je = f((e, t) => !I && _e[e] === t, [I, _e]), [Me, Ne] = y({}), Pe = f((e, t) => Ne((n) => ({
|
|
211
|
+
...n,
|
|
212
|
+
[e]: Math.round(t)
|
|
213
|
+
})), []), [Fe, Ie] = y(0), Le = v(null), [Re, ze] = y(!1), { columns: Be, scrim: Ve } = j({
|
|
214
|
+
W: P,
|
|
215
|
+
wc: F,
|
|
216
|
+
present: q,
|
|
217
|
+
specs: B,
|
|
218
|
+
widths: Me,
|
|
219
|
+
sidebarVisible: Q,
|
|
220
|
+
behavior: me,
|
|
221
|
+
top: Se,
|
|
222
|
+
swipe: Fe,
|
|
223
|
+
hidden: ie
|
|
224
|
+
}), [He, Ue] = y(!1);
|
|
225
|
+
m(() => {
|
|
226
|
+
let e = 0, t = requestAnimationFrame(() => {
|
|
227
|
+
e = requestAnimationFrame(() => {
|
|
228
|
+
de.current = !0, Ue(!0);
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
return () => {
|
|
232
|
+
cancelAnimationFrame(t), cancelAnimationFrame(e);
|
|
233
|
+
};
|
|
234
|
+
}, []);
|
|
235
|
+
let We = v({
|
|
236
|
+
W: P,
|
|
237
|
+
wc: F
|
|
238
|
+
}), Ge = P !== We.current.W && F === We.current.wc;
|
|
239
|
+
g(() => {
|
|
240
|
+
We.current = {
|
|
241
|
+
W: P,
|
|
242
|
+
wc: F
|
|
243
|
+
};
|
|
244
|
+
});
|
|
245
|
+
let Ke = f(() => $(!Q), [Q, $]), qe = f((e) => `${R}-${e}`, [R]), Je = q.indexOf(Se), Ye = {
|
|
246
|
+
widthClass: F,
|
|
247
|
+
collapsed: I,
|
|
248
|
+
width: P,
|
|
249
|
+
columns: q,
|
|
250
|
+
sidebarVisible: q.includes("sidebar") && Q,
|
|
251
|
+
setSidebarVisible: $,
|
|
252
|
+
toggleSidebar: Ke,
|
|
253
|
+
sidebarBehavior: me,
|
|
254
|
+
selection: _e,
|
|
255
|
+
select: Ae,
|
|
256
|
+
isSelected: je,
|
|
257
|
+
topColumn: Se,
|
|
258
|
+
show: Ee,
|
|
259
|
+
back: De,
|
|
260
|
+
canGoBack: I && Je > 0,
|
|
261
|
+
widths: Me,
|
|
262
|
+
setColumnWidth: Pe,
|
|
263
|
+
supplementaryVisible: G,
|
|
264
|
+
setSupplementaryVisible: ne,
|
|
265
|
+
layout: Be,
|
|
266
|
+
specs: B,
|
|
267
|
+
register: H,
|
|
268
|
+
titles: ae,
|
|
269
|
+
setTitle: Y,
|
|
270
|
+
instant: !He || L,
|
|
271
|
+
tracking: Re || Fe > 0 ? "drag" : Ge ? "resize" : !1,
|
|
272
|
+
setResizing: ze,
|
|
273
|
+
idFor: qe,
|
|
274
|
+
rootRef: N
|
|
275
|
+
}, Xe = (e) => {
|
|
276
|
+
if (!I || Je < 1 || e.button) return;
|
|
277
|
+
let t = e.currentTarget.getBoundingClientRect();
|
|
278
|
+
e.clientX - t.left > 28 || z(e.target, e.currentTarget) || (Le.current = {
|
|
279
|
+
x0: e.clientX,
|
|
280
|
+
y0: e.clientY,
|
|
281
|
+
on: !1,
|
|
282
|
+
last: e.clientX,
|
|
283
|
+
lt: performance.now(),
|
|
284
|
+
vel: 0
|
|
285
|
+
});
|
|
286
|
+
}, Ze = (e) => {
|
|
287
|
+
let t = Le.current;
|
|
288
|
+
if (!t) return;
|
|
289
|
+
let n = e.clientX - t.x0, r = e.clientY - t.y0;
|
|
290
|
+
if (!t.on) {
|
|
291
|
+
if (n > 8 && n > Math.abs(r) * 1.2) {
|
|
292
|
+
t.on = !0;
|
|
293
|
+
try {
|
|
294
|
+
e.currentTarget.setPointerCapture(e.pointerId);
|
|
295
|
+
} catch {}
|
|
296
|
+
} else {
|
|
297
|
+
Math.abs(r) > 14 && (Le.current = null);
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
let i = performance.now();
|
|
302
|
+
t.vel = (e.clientX - t.last) / Math.max(1, i - t.lt), t.last = e.clientX, t.lt = i, Ie(Math.max(.01, n));
|
|
303
|
+
}, Qe = () => {
|
|
304
|
+
let e = Le.current;
|
|
305
|
+
Le.current = null, !(!e || !e.on) && ((Fe / Math.max(1, P) > .33 || e.vel > .5) && De(), Ie(0));
|
|
306
|
+
};
|
|
307
|
+
return /* @__PURE__ */ x(M.Provider, {
|
|
308
|
+
value: Ye,
|
|
309
|
+
children: /* @__PURE__ */ S("div", {
|
|
310
|
+
ref: N,
|
|
311
|
+
"data-slot": "split-view",
|
|
312
|
+
"data-width-class": F,
|
|
313
|
+
"data-sidebar-visible": Ye.sidebarVisible || void 0,
|
|
314
|
+
role: "group",
|
|
315
|
+
"aria-label": A["aria-label"],
|
|
316
|
+
className: e("relative isolate h-full w-full touch-pan-y overflow-hidden bg-background", O),
|
|
317
|
+
style: k,
|
|
318
|
+
onPointerDownCapture: Xe,
|
|
319
|
+
onPointerMoveCapture: Ze,
|
|
320
|
+
onPointerUpCapture: Qe,
|
|
321
|
+
onPointerCancelCapture: Qe,
|
|
322
|
+
onKeyDown: (e) => {
|
|
323
|
+
e.key !== "Escape" || e.defaultPrevented || z(e.target, e.currentTarget) || (!I && Ye.sidebarVisible && me !== "tile" ? ($(!1), e.preventDefault()) : I && Je > 0 && (De(), e.preventDefault()));
|
|
324
|
+
},
|
|
325
|
+
children: [D, /* @__PURE__ */ x(V, {
|
|
326
|
+
amount: Ve,
|
|
327
|
+
onPress: () => $(!1)
|
|
328
|
+
})]
|
|
329
|
+
})
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
function z(e, t) {
|
|
333
|
+
let n = e instanceof Element ? e : null;
|
|
334
|
+
for (; n && n !== t;) {
|
|
335
|
+
if (n.hasAttribute("data-split-stack-can-pop") || n.getAttribute("data-slot") === "navigation-stack" && [...n.children].filter((e) => e.getAttribute("data-slot") === "screen").length > 1) return !0;
|
|
336
|
+
n = n.parentElement;
|
|
337
|
+
}
|
|
338
|
+
return !1;
|
|
339
|
+
}
|
|
340
|
+
function B(e, t, r, i) {
|
|
341
|
+
g(() => {
|
|
342
|
+
r ? e.jump(t) : i === "drag" || i === "resize" && !e.isAnimating() ? (e.stop(), e.set(t)) : e.get() !== t && c(e, t, n.smooth);
|
|
343
|
+
}, [
|
|
344
|
+
e,
|
|
345
|
+
t,
|
|
346
|
+
r,
|
|
347
|
+
i
|
|
348
|
+
]);
|
|
349
|
+
}
|
|
350
|
+
function V({ amount: t, onPress: n }) {
|
|
351
|
+
let r = P("SplitView"), i = u(t);
|
|
352
|
+
return B(i, t, r.instant, !1), /* @__PURE__ */ x(l.div, {
|
|
353
|
+
"data-slot": "split-view-scrim",
|
|
354
|
+
"aria-hidden": "true",
|
|
355
|
+
onClick: n,
|
|
356
|
+
className: e("absolute inset-0 z-20 bg-overlay", t > 0 ? "pointer-events-auto" : "pointer-events-none"),
|
|
357
|
+
style: { opacity: i }
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
var te = {
|
|
361
|
+
sidebar: "bg-sidebar",
|
|
362
|
+
supplementary: "bg-background",
|
|
363
|
+
detail: "bg-background"
|
|
364
|
+
};
|
|
365
|
+
function H({ column: t, width: n, minWidth: r, maxWidth: i, resizable: a, stack: o, children: s, className: c, style: d, ...f }) {
|
|
366
|
+
let p = P(`SplitView${t[0].toUpperCase()}${t.slice(1)}`), h = k[t], _ = {
|
|
367
|
+
width: n ?? h.width,
|
|
368
|
+
minWidth: r ?? h.minWidth,
|
|
369
|
+
maxWidth: i ?? h.maxWidth,
|
|
370
|
+
resizable: a ?? h.resizable
|
|
371
|
+
}, { register: y } = p;
|
|
372
|
+
g(() => {
|
|
373
|
+
y(t, _);
|
|
374
|
+
}, [
|
|
375
|
+
y,
|
|
376
|
+
t,
|
|
377
|
+
_.width,
|
|
378
|
+
_.minWidth,
|
|
379
|
+
_.maxWidth,
|
|
380
|
+
_.resizable
|
|
381
|
+
]), g(() => () => y(t, null), [y, t]);
|
|
382
|
+
let b = p.layout[t], C = u(b?.x ?? 0), w = u(b?.width ?? 0), T = u(b?.dim ?? 0);
|
|
383
|
+
B(C, b?.x ?? 0, p.instant || !b, p.tracking), B(w, b?.width ?? 0, p.instant || !b, p.tracking), B(T, b?.dim ?? 0, p.instant || !b, p.tracking);
|
|
384
|
+
let E = v(null), D = p.collapsed && p.topColumn === t, O = v(D);
|
|
385
|
+
return m(() => {
|
|
386
|
+
let e = p.rootRef.current;
|
|
387
|
+
if (D && !O.current && E.current && e) {
|
|
388
|
+
let t = document.activeElement;
|
|
389
|
+
(!t || t === document.body || e.contains(t) && !E.current.contains(t)) && E.current.focus({ preventScroll: !0 });
|
|
390
|
+
}
|
|
391
|
+
O.current = D;
|
|
392
|
+
}, [D, p.rootRef]), /* @__PURE__ */ x(N.Provider, {
|
|
393
|
+
value: t,
|
|
394
|
+
children: /* @__PURE__ */ S(l.section, {
|
|
395
|
+
ref: E,
|
|
396
|
+
id: p.idFor(t),
|
|
397
|
+
tabIndex: -1,
|
|
398
|
+
"data-slot": `split-view-${t}`,
|
|
399
|
+
"data-top": D || void 0,
|
|
400
|
+
"aria-label": f["aria-label"],
|
|
401
|
+
inert: b?.inert || void 0,
|
|
402
|
+
className: "absolute inset-y-0 left-0 outline-none",
|
|
403
|
+
style: {
|
|
404
|
+
x: C,
|
|
405
|
+
width: w,
|
|
406
|
+
zIndex: b?.z ?? 0,
|
|
407
|
+
visibility: b ? void 0 : "hidden"
|
|
408
|
+
},
|
|
409
|
+
children: [
|
|
410
|
+
/* @__PURE__ */ S("div", {
|
|
411
|
+
className: e("relative flex h-full min-w-0 flex-col overflow-hidden text-foreground", te[t], b?.hairline && "shadow-[inset_-1px_0_0_var(--border)]", c),
|
|
412
|
+
style: d,
|
|
413
|
+
children: [/* @__PURE__ */ x(re, { children: o ? /* @__PURE__ */ x($, { children: s }) : s }), /* @__PURE__ */ x(l.div, {
|
|
414
|
+
"aria-hidden": "true",
|
|
415
|
+
className: "pointer-events-none absolute inset-0 z-50 bg-black",
|
|
416
|
+
style: { opacity: T }
|
|
417
|
+
})]
|
|
418
|
+
}),
|
|
419
|
+
/* @__PURE__ */ x("div", {
|
|
420
|
+
"aria-hidden": "true",
|
|
421
|
+
className: e("pointer-events-none absolute inset-y-0 -left-10 w-10 transition-opacity duration-300", "bg-[linear-gradient(to_left,--alpha(black/14%),transparent)]", b?.lifted && t !== "sidebar" ? "opacity-100" : "opacity-0")
|
|
422
|
+
}),
|
|
423
|
+
/* @__PURE__ */ x("div", {
|
|
424
|
+
"aria-hidden": "true",
|
|
425
|
+
className: e("pointer-events-none absolute inset-y-0 -right-10 w-10 transition-opacity duration-300", "bg-[linear-gradient(to_right,--alpha(black/16%),transparent)]", b?.lifted && t === "sidebar" ? "opacity-100" : "opacity-0")
|
|
426
|
+
}),
|
|
427
|
+
b?.resizable ? /* @__PURE__ */ x(K, { column: t }) : null
|
|
428
|
+
]
|
|
429
|
+
})
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
function U(e) {
|
|
433
|
+
return /* @__PURE__ */ x(H, {
|
|
434
|
+
column: "sidebar",
|
|
435
|
+
"aria-label": "Sidebar",
|
|
436
|
+
...e
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
function W(e) {
|
|
440
|
+
return /* @__PURE__ */ x(H, {
|
|
441
|
+
column: "supplementary",
|
|
442
|
+
...e
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
function G(e) {
|
|
446
|
+
return /* @__PURE__ */ x(H, {
|
|
447
|
+
column: "detail",
|
|
448
|
+
...e
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
function K({ column: t }) {
|
|
452
|
+
let n = P("SplitView"), r = n.specs[t] ?? k[t], i = n.layout[t]?.width ?? r.width, a = v(i), o = (e) => n.setColumnWidth(t, A(e, r.minWidth, r.maxWidth)), { moveProps: s } = O({
|
|
453
|
+
onMoveStart() {
|
|
454
|
+
a.current = i, n.setResizing(!0);
|
|
455
|
+
},
|
|
456
|
+
onMove(e) {
|
|
457
|
+
a.current += e.pointerType === "keyboard" ? e.deltaX * (e.shiftKey ? 48 : 12) : e.deltaX, o(a.current);
|
|
458
|
+
},
|
|
459
|
+
onMoveEnd() {
|
|
460
|
+
n.setResizing(!1);
|
|
461
|
+
}
|
|
462
|
+
}), { focusProps: c, isFocusVisible: l } = E(), { hoverProps: u, isHovered: d } = D({}), [f, p] = y(!1);
|
|
463
|
+
return /* @__PURE__ */ x("div", {
|
|
464
|
+
role: "separator",
|
|
465
|
+
"aria-orientation": "vertical",
|
|
466
|
+
"aria-label": t === "sidebar" ? "Resize sidebar" : "Resize list",
|
|
467
|
+
"aria-controls": n.idFor(t),
|
|
468
|
+
"aria-valuenow": Math.round(i),
|
|
469
|
+
"aria-valuemin": r.minWidth,
|
|
470
|
+
"aria-valuemax": Number.isFinite(r.maxWidth) ? r.maxWidth : void 0,
|
|
471
|
+
tabIndex: 0,
|
|
472
|
+
"data-slot": "split-view-resizer",
|
|
473
|
+
...T(s, c, u, {
|
|
474
|
+
onPointerDown: () => p(!0),
|
|
475
|
+
onPointerUp: () => p(!1),
|
|
476
|
+
onPointerCancel: () => p(!1),
|
|
477
|
+
onKeyDown: (e) => {
|
|
478
|
+
e.key === "Home" ? (o(r.minWidth), e.preventDefault()) : e.key === "End" ? (o(r.maxWidth), e.preventDefault()) : e.key === "Enter" && (o(r.width), e.preventDefault());
|
|
479
|
+
},
|
|
480
|
+
onDoubleClick: () => o(r.width)
|
|
481
|
+
}),
|
|
482
|
+
className: "group absolute inset-y-0 -right-[5px] z-40 w-[10px] cursor-col-resize touch-none outline-none",
|
|
483
|
+
children: /* @__PURE__ */ x("div", { className: e("absolute inset-y-0 left-1/2 w-[3px] -translate-x-1/2 rounded-full bg-primary transition-[opacity,transform] duration-200", l || f || d ? "scale-y-100 opacity-100" : "scale-y-[.96] opacity-0", !(l || f) && d && "opacity-45") })
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
var ne = d(null);
|
|
487
|
+
function re({ children: e }) {
|
|
488
|
+
let [t, n] = y(null), [r, i] = y(!1), [a, o] = y(!1), [s, c] = y(0), l = f(() => (c((e) => e + 1), () => c((e) => e - 1)), []), u = _(() => ({
|
|
489
|
+
large: t,
|
|
490
|
+
setLarge: n,
|
|
491
|
+
under: r,
|
|
492
|
+
setUnder: i,
|
|
493
|
+
scrolled: a,
|
|
494
|
+
setScrolled: o,
|
|
495
|
+
contents: s,
|
|
496
|
+
addContent: l
|
|
497
|
+
}), [
|
|
498
|
+
t,
|
|
499
|
+
r,
|
|
500
|
+
a,
|
|
501
|
+
s,
|
|
502
|
+
l
|
|
503
|
+
]);
|
|
504
|
+
return /* @__PURE__ */ x(ne.Provider, {
|
|
505
|
+
value: u,
|
|
506
|
+
children: e
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
function ie({ spec: t, titleRef: n }) {
|
|
510
|
+
let r = "m-0 truncate text-[34px] leading-[1.15] font-extrabold tracking-[-.5px]";
|
|
511
|
+
return t.trailing == null ? /* @__PURE__ */ x("div", {
|
|
512
|
+
"data-slot": "split-view-large-title",
|
|
513
|
+
className: e("px-4 pt-1 pb-2", t.className),
|
|
514
|
+
children: /* @__PURE__ */ x("div", {
|
|
515
|
+
ref: n,
|
|
516
|
+
role: "heading",
|
|
517
|
+
"aria-level": 1,
|
|
518
|
+
className: r,
|
|
519
|
+
children: t.title
|
|
520
|
+
})
|
|
521
|
+
}) : /* @__PURE__ */ S("div", {
|
|
522
|
+
"data-slot": "split-view-large-title",
|
|
523
|
+
className: e("flex items-end gap-4 px-4 pt-1 pb-2", t.className),
|
|
524
|
+
children: [/* @__PURE__ */ x("div", {
|
|
525
|
+
ref: n,
|
|
526
|
+
role: "heading",
|
|
527
|
+
"aria-level": 1,
|
|
528
|
+
className: e(r, "min-w-0 flex-1"),
|
|
529
|
+
children: t.title
|
|
530
|
+
}), /* @__PURE__ */ x("div", {
|
|
531
|
+
"data-slot": "split-view-large-title-trailing",
|
|
532
|
+
className: "flex shrink-0 items-center text-[34px] leading-[1.15]",
|
|
533
|
+
children: t.trailing
|
|
534
|
+
})]
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
function q({ title: a, largeTitle: o, largeTitleTrailing: s, largeTitleClassName: c, titleOnScroll: u, leading: d, trailing: f, backLabel: m, className: h, style: w }) {
|
|
538
|
+
let T = P("SplitViewHeader"), E = p(N), D = p(ce), O = p(ne), ee = !!r(), { setTitle: k } = T, A = typeof a == "string" ? a : void 0, j = !D || D.index === 0;
|
|
539
|
+
g(() => {
|
|
540
|
+
E && j && k(E, A);
|
|
541
|
+
}, [
|
|
542
|
+
E,
|
|
543
|
+
A,
|
|
544
|
+
k,
|
|
545
|
+
j
|
|
546
|
+
]);
|
|
547
|
+
let M = D?.stack.setTitle, F = D?.pageKey;
|
|
548
|
+
g(() => {
|
|
549
|
+
M && F && M(F, A);
|
|
550
|
+
}, [
|
|
551
|
+
M,
|
|
552
|
+
F,
|
|
553
|
+
A
|
|
554
|
+
]);
|
|
555
|
+
let I = !!D && D.index > 0, L = E ? T.columns.indexOf(E) : -1, R = L > 0 ? T.columns[L - 1] : null, z = I || T.collapsed && !!R, B = I ? D.stack.titleAt(D.index - 1) : R ? T.titles[R] : void 0, V = m ?? B ?? "Back", te = I ? D.stack.pop : T.back, H = !!o && a != null, U = _(() => H ? {
|
|
556
|
+
title: a,
|
|
557
|
+
trailing: s,
|
|
558
|
+
className: c
|
|
559
|
+
} : null, [
|
|
560
|
+
H,
|
|
561
|
+
a,
|
|
562
|
+
s,
|
|
563
|
+
c
|
|
564
|
+
]), W = O?.setLarge;
|
|
565
|
+
g(() => {
|
|
566
|
+
W?.(U);
|
|
567
|
+
}, [W, U]), g(() => () => W?.(null), [W]);
|
|
568
|
+
let G = H && !!O && O.contents > 0, K = !H && !!u && !!O && O.contents > 0, re = H || K, q = H ? G && O.under : !K || O.scrolled, ae = v(null), J = v(null), [Y, X] = y(void 0);
|
|
569
|
+
g(() => {
|
|
570
|
+
let e = ae.current;
|
|
571
|
+
if (!z || !e) return;
|
|
572
|
+
let t = () => {
|
|
573
|
+
let t = J.current?.offsetWidth ?? 0;
|
|
574
|
+
X(Math.max(44, t ? (e.clientWidth - t) / 2 - 10 : e.clientWidth * .6));
|
|
575
|
+
};
|
|
576
|
+
if (t(), typeof ResizeObserver > "u") return;
|
|
577
|
+
let n = new ResizeObserver(t);
|
|
578
|
+
return n.observe(e), J.current && n.observe(J.current), () => n.disconnect();
|
|
579
|
+
}, [z, a]);
|
|
580
|
+
let Z = "pointer-events-none absolute left-1/2 max-w-[56%] -translate-x-1/2 truncate text-body font-semibold tracking-[-.2px]";
|
|
581
|
+
return /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ S("div", {
|
|
582
|
+
ref: ae,
|
|
583
|
+
"data-slot": "split-view-header",
|
|
584
|
+
"data-large-title": H || void 0,
|
|
585
|
+
className: e("relative z-30 flex h-toolbar shrink-0 items-center px-1.5", !re && "shadow-hairline-b", h),
|
|
586
|
+
style: w,
|
|
587
|
+
children: [
|
|
588
|
+
/* @__PURE__ */ x("div", {
|
|
589
|
+
className: "relative z-1 flex min-w-[44px] items-center",
|
|
590
|
+
children: z ? /* @__PURE__ */ S(C, {
|
|
591
|
+
onPress: te,
|
|
592
|
+
"data-slot": "split-view-back",
|
|
593
|
+
"aria-label": V === "Back" ? void 0 : `Back to ${V}`,
|
|
594
|
+
className: e("bl-btn flex cursor-pointer items-center border-0 bg-transparent py-1.5 pr-2 pl-0 [font-family:inherit] text-body text-primary outline-none data-[focus-visible]:rounded-lg data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring", Y == null ? "max-w-[150px]" : "max-w-(--back-max)"),
|
|
595
|
+
style: Y == null ? void 0 : { "--back-max": Y + "px" },
|
|
596
|
+
children: [/* @__PURE__ */ x(i, {
|
|
597
|
+
name: "chevL",
|
|
598
|
+
size: 24,
|
|
599
|
+
sw: 2.4,
|
|
600
|
+
className: "shrink-0"
|
|
601
|
+
}), /* @__PURE__ */ x("span", {
|
|
602
|
+
className: "min-w-0 truncate",
|
|
603
|
+
children: V
|
|
604
|
+
})]
|
|
605
|
+
}) : d
|
|
606
|
+
}),
|
|
607
|
+
re ? /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(l.div, {
|
|
608
|
+
ref: J,
|
|
609
|
+
className: Z,
|
|
610
|
+
"aria-hidden": !q || void 0,
|
|
611
|
+
initial: !1,
|
|
612
|
+
animate: {
|
|
613
|
+
opacity: +!!q,
|
|
614
|
+
y: q ? 0 : 8
|
|
615
|
+
},
|
|
616
|
+
transition: ee ? { duration: 0 } : {
|
|
617
|
+
y: n.snappy,
|
|
618
|
+
opacity: q ? t.in : t.out
|
|
619
|
+
},
|
|
620
|
+
children: a
|
|
621
|
+
}), /* @__PURE__ */ x(l.span, {
|
|
622
|
+
"aria-hidden": "true",
|
|
623
|
+
className: "pointer-events-none absolute inset-x-0 bottom-0 h-px bg-border",
|
|
624
|
+
initial: !1,
|
|
625
|
+
animate: { opacity: +!!q },
|
|
626
|
+
transition: ee ? { duration: 0 } : q ? t.in : t.out
|
|
627
|
+
})] }) : /* @__PURE__ */ x("div", {
|
|
628
|
+
ref: J,
|
|
629
|
+
className: Z,
|
|
630
|
+
children: a
|
|
631
|
+
}),
|
|
632
|
+
/* @__PURE__ */ x("div", {
|
|
633
|
+
className: "relative z-1 ml-auto flex items-center gap-0.5",
|
|
634
|
+
children: f
|
|
635
|
+
})
|
|
636
|
+
]
|
|
637
|
+
}), U && !G ? /* @__PURE__ */ x(ie, { spec: U }) : null] });
|
|
638
|
+
}
|
|
639
|
+
function ae({ children: t, className: n, style: r }) {
|
|
640
|
+
let i = p(ne), a = i?.addContent;
|
|
641
|
+
g(() => a?.(), [a]);
|
|
642
|
+
let o = i?.large, s = i?.setUnder, c = i?.setScrolled, l = v(null), u = v(null), d = f(() => {
|
|
643
|
+
let e = u.current, t = l.current;
|
|
644
|
+
t && (s?.(!!e && t.scrollTop > e.offsetTop + e.offsetHeight - 4), c?.(t.scrollTop > 8));
|
|
645
|
+
}, [s, c]);
|
|
646
|
+
return g(() => {
|
|
647
|
+
d();
|
|
648
|
+
}, [d, o != null]), /* @__PURE__ */ S("div", {
|
|
649
|
+
ref: l,
|
|
650
|
+
"data-slot": "split-view-content",
|
|
651
|
+
onScroll: i ? d : void 0,
|
|
652
|
+
className: e("bl-scroll relative min-h-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain", n),
|
|
653
|
+
style: r,
|
|
654
|
+
children: [o ? /* @__PURE__ */ x(ie, {
|
|
655
|
+
spec: o,
|
|
656
|
+
titleRef: u
|
|
657
|
+
}) : null, t]
|
|
658
|
+
});
|
|
659
|
+
}
|
|
660
|
+
function J({ className: t, ...n }) {
|
|
661
|
+
let r = P("SplitViewToggle");
|
|
662
|
+
return r.collapsed || !r.columns.includes("sidebar") || r.columns.length < 2 ? null : /* @__PURE__ */ x(C, {
|
|
663
|
+
onPress: r.toggleSidebar,
|
|
664
|
+
"data-slot": "split-view-toggle",
|
|
665
|
+
"aria-label": n["aria-label"] ?? (r.sidebarVisible ? "Hide sidebar" : "Show sidebar"),
|
|
666
|
+
"aria-expanded": r.sidebarVisible,
|
|
667
|
+
"aria-controls": r.idFor("sidebar"),
|
|
668
|
+
className: e("bl-btn grid cursor-pointer place-items-center rounded-ctl border-0 bg-transparent px-2.5 py-2 text-primary outline-none", "transition-[background,transform] duration-150 data-[hovered]:bg-secondary data-[pressed]:scale-[.94] data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring", t),
|
|
669
|
+
children: /* @__PURE__ */ x(i, {
|
|
670
|
+
name: "sidebar",
|
|
671
|
+
size: 22,
|
|
672
|
+
sw: 1.9
|
|
673
|
+
})
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
var Y = w([
|
|
677
|
+
"bl-btn group/item relative flex w-full cursor-pointer items-center gap-3 border-0 text-left [font-family:inherit] text-foreground outline-none",
|
|
678
|
+
"transition-[background-color,color] duration-150",
|
|
679
|
+
"data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring data-[focus-visible]:ring-inset"
|
|
680
|
+
], {
|
|
681
|
+
variants: {
|
|
682
|
+
variant: {
|
|
683
|
+
pill: "min-h-[40px] rounded-ctl px-2.5 py-1.5 text-[15.5px]",
|
|
684
|
+
row: "min-h-row px-4 py-2.5 text-[15.5px]"
|
|
685
|
+
},
|
|
686
|
+
selected: {
|
|
687
|
+
true: "",
|
|
688
|
+
false: "bg-transparent data-[hovered]:bg-secondary data-[pressed]:bg-accent"
|
|
689
|
+
},
|
|
690
|
+
tinted: {
|
|
691
|
+
true: "",
|
|
692
|
+
false: ""
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
compoundVariants: [
|
|
696
|
+
{
|
|
697
|
+
variant: "pill",
|
|
698
|
+
selected: !0,
|
|
699
|
+
tinted: !1,
|
|
700
|
+
class: "bg-primary text-primary-foreground"
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
variant: "pill",
|
|
704
|
+
selected: !0,
|
|
705
|
+
tinted: !0,
|
|
706
|
+
class: "bg-(--split-item-tint) text-(--split-item-on-tint)"
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
variant: "row",
|
|
710
|
+
selected: !0,
|
|
711
|
+
tinted: !1,
|
|
712
|
+
class: "bg-[color-mix(in_srgb,var(--primary)_14%,transparent)]"
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
variant: "row",
|
|
716
|
+
selected: !0,
|
|
717
|
+
tinted: !0,
|
|
718
|
+
class: "bg-[color-mix(in_srgb,var(--split-item-tint)_14%,transparent)]"
|
|
719
|
+
}
|
|
720
|
+
],
|
|
721
|
+
defaultVariants: {
|
|
722
|
+
variant: "pill",
|
|
723
|
+
selected: !1,
|
|
724
|
+
tinted: !1
|
|
725
|
+
}
|
|
726
|
+
});
|
|
727
|
+
function X({ id: t, title: n, subtitle: r, icon: a, badge: o, children: s, variant: c, tint: l, onPress: u, className: d }) {
|
|
728
|
+
let f = P("SplitViewItem"), m = p(N) ?? "supplementary", h = c ?? (m === "sidebar" ? "pill" : "row"), g = f.isSelected(m, t), _ = f.collapsed && f.columns.indexOf(m) < f.columns.length - 1, v = l != null, y = v ? {
|
|
729
|
+
"--split-item-tint": typeof l == "string" ? l : l.background,
|
|
730
|
+
"--split-item-on-tint": typeof l == "string" ? "white" : l.foreground ?? "white"
|
|
731
|
+
} : void 0, w = g && h === "pill";
|
|
732
|
+
return /* @__PURE__ */ S(C, {
|
|
733
|
+
"data-split-item": "",
|
|
734
|
+
"data-slot": "split-view-item",
|
|
735
|
+
"data-selected": g || void 0,
|
|
736
|
+
"aria-current": g || void 0,
|
|
737
|
+
"data-tinted": v || void 0,
|
|
738
|
+
onPress: () => {
|
|
739
|
+
f.select(m, t), u?.();
|
|
740
|
+
},
|
|
741
|
+
onKeyDown: (e) => {
|
|
742
|
+
if (e.key !== "ArrowDown" && e.key !== "ArrowUp") return;
|
|
743
|
+
let t = e.currentTarget.closest("[data-slot^=\"split-view-\"]"), n = t ? [...t.querySelectorAll("[data-split-item]")] : [], r = n[n.indexOf(e.currentTarget) + (e.key === "ArrowDown" ? 1 : -1)];
|
|
744
|
+
r && (r.focus(), e.preventDefault());
|
|
745
|
+
},
|
|
746
|
+
className: e(Y({
|
|
747
|
+
variant: h,
|
|
748
|
+
selected: g,
|
|
749
|
+
tinted: v
|
|
750
|
+
}), d),
|
|
751
|
+
style: y,
|
|
752
|
+
children: [s ?? /* @__PURE__ */ S(b, { children: [
|
|
753
|
+
a ? /* @__PURE__ */ x("span", {
|
|
754
|
+
className: e("grid w-6 shrink-0 place-items-center", w ? v ? "text-(--split-item-on-tint)" : "text-primary-foreground" : v ? "text-(--split-item-tint)" : "text-primary"),
|
|
755
|
+
children: a
|
|
756
|
+
}) : null,
|
|
757
|
+
/* @__PURE__ */ S("span", {
|
|
758
|
+
className: "min-w-0 flex-1",
|
|
759
|
+
children: [/* @__PURE__ */ x("span", {
|
|
760
|
+
className: "block truncate leading-[1.3]",
|
|
761
|
+
children: n
|
|
762
|
+
}), r ? /* @__PURE__ */ x("span", {
|
|
763
|
+
className: e("mt-px block truncate text-footnote", w ? v ? "text-(--split-item-on-tint)/80" : "text-primary-foreground/80" : "text-muted-foreground"),
|
|
764
|
+
children: r
|
|
765
|
+
}) : null]
|
|
766
|
+
}),
|
|
767
|
+
o == null ? null : /* @__PURE__ */ x("span", {
|
|
768
|
+
className: e("shrink-0 text-detail tabular-nums", w ? v ? "text-(--split-item-on-tint)/85" : "text-primary-foreground/85" : "text-muted-foreground"),
|
|
769
|
+
children: o
|
|
770
|
+
}),
|
|
771
|
+
_ ? /* @__PURE__ */ x(i, {
|
|
772
|
+
name: "chev",
|
|
773
|
+
size: 14,
|
|
774
|
+
sw: 2.6,
|
|
775
|
+
className: e("shrink-0", w ? v ? "text-(--split-item-on-tint)/70" : "text-primary-foreground/70" : "text-tertiary-foreground")
|
|
776
|
+
}) : null
|
|
777
|
+
] }), h === "row" ? /* @__PURE__ */ x("span", {
|
|
778
|
+
"aria-hidden": "true",
|
|
779
|
+
className: "pointer-events-none absolute right-0 bottom-0 left-4 h-px bg-border"
|
|
780
|
+
}) : null]
|
|
781
|
+
});
|
|
782
|
+
}
|
|
783
|
+
var Z = w("", {
|
|
784
|
+
variants: { variant: {
|
|
785
|
+
default: "px-2.5 pt-4 pb-1.5 text-footnote font-semibold tracking-[-.1px] text-muted-foreground",
|
|
786
|
+
prominent: "px-1 pt-6 pb-2 text-title font-bold tracking-[-.2px] text-foreground"
|
|
787
|
+
} },
|
|
788
|
+
defaultVariants: { variant: "default" }
|
|
789
|
+
});
|
|
790
|
+
function oe({ title: t, variant: n, labelClassName: r, collapsible: i, expanded: s, defaultExpanded: c = !0, onExpandedChange: l, children: u, className: d }) {
|
|
791
|
+
let f = h(), [p, m] = y(c), g = !i || (s ?? p), _ = () => {
|
|
792
|
+
let e = !g;
|
|
793
|
+
m(e), l?.(e);
|
|
794
|
+
}, v = e(Z({ variant: n }), r), b = /* @__PURE__ */ x("div", {
|
|
795
|
+
className: "flex flex-col gap-px",
|
|
796
|
+
children: u
|
|
797
|
+
});
|
|
798
|
+
return /* @__PURE__ */ S("div", {
|
|
799
|
+
"data-slot": "split-view-section",
|
|
800
|
+
role: "group",
|
|
801
|
+
"aria-labelledby": t == null ? void 0 : f,
|
|
802
|
+
className: d,
|
|
803
|
+
children: [t == null ? null : i ? /* @__PURE__ */ S(C, {
|
|
804
|
+
id: f,
|
|
805
|
+
onPress: _,
|
|
806
|
+
"aria-expanded": g,
|
|
807
|
+
className: e("bl-btn flex w-full cursor-pointer items-center border-0 bg-transparent text-left [font-family:inherit] outline-none data-[focus-visible]:rounded-lg data-[focus-visible]:ring-2 data-[focus-visible]:ring-ring", v),
|
|
808
|
+
children: [/* @__PURE__ */ x("span", {
|
|
809
|
+
className: "flex-1",
|
|
810
|
+
children: t
|
|
811
|
+
}), /* @__PURE__ */ x(a, {
|
|
812
|
+
direction: g ? "down" : "right",
|
|
813
|
+
size: n === "prominent" ? 18 : 14,
|
|
814
|
+
sw: 2.6,
|
|
815
|
+
className: "text-primary"
|
|
816
|
+
})]
|
|
817
|
+
}) : /* @__PURE__ */ x("div", {
|
|
818
|
+
id: f,
|
|
819
|
+
className: v,
|
|
820
|
+
children: t
|
|
821
|
+
}), i ? /* @__PURE__ */ x(o, { children: g ? b : null }) : b]
|
|
822
|
+
});
|
|
823
|
+
}
|
|
824
|
+
var se = d(null), ce = d(null);
|
|
825
|
+
function Q() {
|
|
826
|
+
let e = p(se);
|
|
827
|
+
if (!e) throw Error("useSplitViewStack must be used inside <SplitViewStack> (or a column with `stack`)");
|
|
828
|
+
return e;
|
|
829
|
+
}
|
|
830
|
+
var le = "__root";
|
|
831
|
+
function $({ children: t, resetKey: n, onDepthChange: r, className: i, style: a }) {
|
|
832
|
+
let o = P("SplitViewStack"), [c, l] = s(), [u, d] = y([]), p = u.filter((e) => !e.leaving), h = p.length + 1, g = v(0), [b, S] = y(n);
|
|
833
|
+
Object.is(b, n) || (S(n), d([]));
|
|
834
|
+
let C = f((e, t) => {
|
|
835
|
+
let n = t?.key ?? `page-${++g.current}`;
|
|
836
|
+
d((t) => [...t.filter((e) => e.key !== n), {
|
|
837
|
+
key: n,
|
|
838
|
+
node: e
|
|
839
|
+
}]);
|
|
840
|
+
}, []), w = v(h);
|
|
841
|
+
w.current = h;
|
|
842
|
+
let T = f(() => {
|
|
843
|
+
w.current < 2 || d((e) => {
|
|
844
|
+
let t = e.length - 1;
|
|
845
|
+
for (; t >= 0 && e[t].leaving;) t--;
|
|
846
|
+
if (t < 0) return e;
|
|
847
|
+
let n = [...e];
|
|
848
|
+
return n[t] = {
|
|
849
|
+
...n[t],
|
|
850
|
+
leaving: !0
|
|
851
|
+
}, n;
|
|
852
|
+
});
|
|
853
|
+
}, []), E = f(() => d((e) => e.map((e) => e.leaving ? e : {
|
|
854
|
+
...e,
|
|
855
|
+
leaving: !0
|
|
856
|
+
})), []), D = f((e) => d((t) => t.filter((t) => t.key !== e || !t.leaving)), []), [O, ee] = y({}), k = f((e, t) => ee((n) => n[e] === t ? n : {
|
|
857
|
+
...n,
|
|
858
|
+
[e]: t
|
|
859
|
+
}), []), j = p.map((e) => e.key).join("\0"), M = f((e) => O[e === 0 ? le : j.split("\0")[e - 1]], [O, j]), N = v(r);
|
|
860
|
+
N.current = r;
|
|
861
|
+
let F = v(!0);
|
|
862
|
+
m(() => {
|
|
863
|
+
if (F.current) {
|
|
864
|
+
F.current = !1;
|
|
865
|
+
return;
|
|
866
|
+
}
|
|
867
|
+
N.current?.(h);
|
|
868
|
+
}, [h]);
|
|
869
|
+
let I = _(() => ({
|
|
870
|
+
push: C,
|
|
871
|
+
pop: T,
|
|
872
|
+
popToRoot: E,
|
|
873
|
+
depth: h,
|
|
874
|
+
canPop: h > 1,
|
|
875
|
+
setTitle: k,
|
|
876
|
+
titleAt: M
|
|
877
|
+
}), [
|
|
878
|
+
C,
|
|
879
|
+
T,
|
|
880
|
+
E,
|
|
881
|
+
h,
|
|
882
|
+
k,
|
|
883
|
+
M
|
|
884
|
+
]), [L, R] = y(0), B = v(null), V = (e) => {
|
|
885
|
+
if (h < 2 || e.button) return;
|
|
886
|
+
let t = e.currentTarget.getBoundingClientRect();
|
|
887
|
+
e.clientX - t.left > 28 || z(e.target, e.currentTarget) || (B.current = {
|
|
888
|
+
x0: e.clientX,
|
|
889
|
+
y0: e.clientY,
|
|
890
|
+
on: !1,
|
|
891
|
+
last: e.clientX,
|
|
892
|
+
lt: performance.now(),
|
|
893
|
+
vel: 0
|
|
894
|
+
});
|
|
895
|
+
}, te = (e) => {
|
|
896
|
+
let t = B.current;
|
|
897
|
+
if (!t) return;
|
|
898
|
+
let n = e.clientX - t.x0, r = e.clientY - t.y0;
|
|
899
|
+
if (!t.on) {
|
|
900
|
+
if (n > 8 && n > Math.abs(r) * 1.2) {
|
|
901
|
+
t.on = !0;
|
|
902
|
+
try {
|
|
903
|
+
e.currentTarget.setPointerCapture(e.pointerId);
|
|
904
|
+
} catch {}
|
|
905
|
+
} else {
|
|
906
|
+
Math.abs(r) > 14 && (B.current = null);
|
|
907
|
+
return;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
let i = performance.now();
|
|
911
|
+
t.vel = (e.clientX - t.last) / Math.max(1, i - t.lt), t.last = e.clientX, t.lt = i, R(Math.max(.01, n));
|
|
912
|
+
}, H = () => {
|
|
913
|
+
let e = B.current;
|
|
914
|
+
B.current = null, !(!e || !e.on) && ((L / Math.max(1, l) > .33 || e.vel > .5) && T(), R(0));
|
|
915
|
+
}, U = (e) => {
|
|
916
|
+
e.key !== "Escape" || e.defaultPrevented || h < 2 || z(e.target, e.currentTarget) || (T(), e.preventDefault());
|
|
917
|
+
}, W = h - 1, G = l ? A(L / l, 0, 1) : 0, K = [{
|
|
918
|
+
key: le,
|
|
919
|
+
node: t,
|
|
920
|
+
pos: 0
|
|
921
|
+
}], ne = 0;
|
|
922
|
+
return u.forEach((e) => K.push({
|
|
923
|
+
...e,
|
|
924
|
+
pos: e.leaving ? W + 1 : ++ne
|
|
925
|
+
})), /* @__PURE__ */ x(se.Provider, {
|
|
926
|
+
value: I,
|
|
927
|
+
children: /* @__PURE__ */ x("div", {
|
|
928
|
+
ref: c,
|
|
929
|
+
"data-slot": "split-view-stack",
|
|
930
|
+
"data-depth": h,
|
|
931
|
+
"data-split-stack-can-pop": h > 1 || void 0,
|
|
932
|
+
className: e("relative min-h-0 flex-1 touch-pan-y overflow-hidden bg-inherit", i),
|
|
933
|
+
style: a,
|
|
934
|
+
onPointerDownCapture: V,
|
|
935
|
+
onPointerMoveCapture: te,
|
|
936
|
+
onPointerUpCapture: H,
|
|
937
|
+
onPointerCancelCapture: H,
|
|
938
|
+
onKeyDown: U,
|
|
939
|
+
children: K.map((e, t) => {
|
|
940
|
+
let n = 0, r = 0;
|
|
941
|
+
return e.leaving ? n = l + 24 : e.pos < W ? (n = -.3 * l, r = .1, G > 0 && e.pos === W - 1 && (n = -.3 * l * (1 - G), r = .1 * (1 - G))) : G > 0 && (n = L), /* @__PURE__ */ x(ue, {
|
|
942
|
+
pageKey: e.key,
|
|
943
|
+
index: e.pos,
|
|
944
|
+
z: t,
|
|
945
|
+
x: n,
|
|
946
|
+
dim: r,
|
|
947
|
+
top: e.pos === W && !e.leaving,
|
|
948
|
+
leaving: !!e.leaving,
|
|
949
|
+
enterFrom: l + 24,
|
|
950
|
+
instant: o.instant,
|
|
951
|
+
tracking: L > 0,
|
|
952
|
+
api: I,
|
|
953
|
+
onGone: D,
|
|
954
|
+
children: e.node
|
|
955
|
+
}, e.key);
|
|
956
|
+
})
|
|
957
|
+
})
|
|
958
|
+
});
|
|
959
|
+
}
|
|
960
|
+
function ue({ pageKey: e, index: t, z: r, x: i, dim: a, top: o, leaving: s, enterFrom: d, instant: f, tracking: p, api: h, onGone: y, children: b }) {
|
|
961
|
+
let C = u(t > 0 && !f ? d : i), w = u(a);
|
|
962
|
+
g(() => {
|
|
963
|
+
if (f) {
|
|
964
|
+
C.jump(i), s && y(e);
|
|
965
|
+
return;
|
|
966
|
+
}
|
|
967
|
+
if (p) {
|
|
968
|
+
C.stop(), C.set(i);
|
|
969
|
+
return;
|
|
970
|
+
}
|
|
971
|
+
if (C.get() === i) {
|
|
972
|
+
s && y(e);
|
|
973
|
+
return;
|
|
974
|
+
}
|
|
975
|
+
let t = c(C, i, n.smooth);
|
|
976
|
+
s && t.then(() => y(e));
|
|
977
|
+
}, [
|
|
978
|
+
C,
|
|
979
|
+
i,
|
|
980
|
+
f,
|
|
981
|
+
p,
|
|
982
|
+
s,
|
|
983
|
+
e,
|
|
984
|
+
y
|
|
985
|
+
]), g(() => {
|
|
986
|
+
f || p ? w.jump(a) : w.get() !== a && c(w, a, n.smooth);
|
|
987
|
+
}, [
|
|
988
|
+
w,
|
|
989
|
+
a,
|
|
990
|
+
f,
|
|
991
|
+
p
|
|
992
|
+
]);
|
|
993
|
+
let T = v(null), E = v(o);
|
|
994
|
+
m(() => {
|
|
995
|
+
let e = T.current, t = e?.parentElement;
|
|
996
|
+
if (o && !E.current && e && t) {
|
|
997
|
+
let n = document.activeElement;
|
|
998
|
+
(!n || n === document.body || t.contains(n) && !e.contains(n)) && e.focus({ preventScroll: !0 });
|
|
999
|
+
}
|
|
1000
|
+
E.current = o;
|
|
1001
|
+
}, [o]);
|
|
1002
|
+
let D = _(() => ({
|
|
1003
|
+
index: t,
|
|
1004
|
+
pageKey: e,
|
|
1005
|
+
stack: h
|
|
1006
|
+
}), [
|
|
1007
|
+
t,
|
|
1008
|
+
e,
|
|
1009
|
+
h
|
|
1010
|
+
]);
|
|
1011
|
+
return /* @__PURE__ */ x(ce.Provider, {
|
|
1012
|
+
value: D,
|
|
1013
|
+
children: /* @__PURE__ */ S(l.div, {
|
|
1014
|
+
ref: T,
|
|
1015
|
+
tabIndex: -1,
|
|
1016
|
+
"data-slot": "split-view-stack-page",
|
|
1017
|
+
"data-top": o || void 0,
|
|
1018
|
+
inert: !o || void 0,
|
|
1019
|
+
className: "absolute inset-0 flex flex-col bg-inherit outline-none",
|
|
1020
|
+
style: {
|
|
1021
|
+
x: C,
|
|
1022
|
+
zIndex: r
|
|
1023
|
+
},
|
|
1024
|
+
children: [
|
|
1025
|
+
/* @__PURE__ */ x(re, { children: b }),
|
|
1026
|
+
/* @__PURE__ */ x(l.div, {
|
|
1027
|
+
"aria-hidden": "true",
|
|
1028
|
+
className: "pointer-events-none absolute inset-0 z-50 bg-black",
|
|
1029
|
+
style: { opacity: w }
|
|
1030
|
+
}),
|
|
1031
|
+
t > 0 ? /* @__PURE__ */ x("div", {
|
|
1032
|
+
"aria-hidden": "true",
|
|
1033
|
+
className: "pointer-events-none absolute inset-y-0 -left-10 w-10 bg-[linear-gradient(to_left,--alpha(black/14%),transparent)]"
|
|
1034
|
+
}) : null
|
|
1035
|
+
]
|
|
1036
|
+
})
|
|
1037
|
+
});
|
|
1038
|
+
}
|
|
1039
|
+
function de({ icon: t, title: n, description: r, className: i }) {
|
|
1040
|
+
return /* @__PURE__ */ x("div", {
|
|
1041
|
+
"data-slot": "split-view-empty",
|
|
1042
|
+
className: e("grid h-full place-items-center p-6 text-center", i),
|
|
1043
|
+
children: /* @__PURE__ */ S("div", { children: [
|
|
1044
|
+
t ? /* @__PURE__ */ x("div", {
|
|
1045
|
+
className: "mb-2.5 grid place-items-center text-tertiary-foreground",
|
|
1046
|
+
children: t
|
|
1047
|
+
}) : null,
|
|
1048
|
+
n ? /* @__PURE__ */ x("div", {
|
|
1049
|
+
className: "text-callout font-medium text-muted-foreground",
|
|
1050
|
+
children: n
|
|
1051
|
+
}) : null,
|
|
1052
|
+
r ? /* @__PURE__ */ x("div", {
|
|
1053
|
+
className: "mt-1 text-footnote text-tertiary-foreground",
|
|
1054
|
+
children: r
|
|
1055
|
+
}) : null
|
|
1056
|
+
] })
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1059
|
+
//#endregion
|
|
1060
|
+
export { R as SplitView, ae as SplitViewContent, G as SplitViewDetail, de as SplitViewEmpty, q as SplitViewHeader, X as SplitViewItem, oe as SplitViewSection, U as SplitViewSidebar, $ as SplitViewStack, W as SplitViewSupplementary, J as SplitViewToggle, Y as splitViewItemVariants, Z as splitViewSectionLabelVariants, F as useSplitView, L as useSplitViewBack, I as useSplitViewColumn, Q as useSplitViewStack };
|