@brett_lamy/ui 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -22
- package/dist/components/adaptive-pane.d.ts +2 -2
- package/dist/components/adaptive-pane.stories.d.ts +1 -1
- package/dist/components/animated-height.d.ts +2 -2
- package/dist/components/avatar.d.ts +1 -1
- package/dist/components/avatar.stories.d.ts +1 -1
- package/dist/components/badge.d.ts +3 -3
- package/dist/components/badge.stories.d.ts +1 -1
- package/dist/components/button.d.ts +3 -3
- package/dist/components/button.stories.d.ts +3 -1
- package/dist/components/button.stories.d.ts.map +1 -1
- package/dist/components/card.d.ts +3 -3
- package/dist/components/card.stories.d.ts +1 -1
- package/dist/components/celebrate.d.ts +1 -1
- package/dist/components/chat/chat-column.d.ts +1 -1
- package/dist/components/chat/chat-column.stories.d.ts +3 -2
- package/dist/components/chat/chat-column.stories.d.ts.map +1 -1
- package/dist/components/chat/floating-chat.d.ts +21 -2
- package/dist/components/chat/floating-chat.d.ts.map +1 -1
- package/dist/components/chat/floating-chat.stories.d.ts +2 -3
- package/dist/components/chat/floating-chat.stories.d.ts.map +1 -1
- package/dist/components/chat/floating-sheet.d.ts +22 -2
- package/dist/components/chat/floating-sheet.d.ts.map +1 -1
- package/dist/components/chat/floating-sheet.stories.d.ts +2 -3
- package/dist/components/chat/floating-sheet.stories.d.ts.map +1 -1
- package/dist/components/chat/progress-stepper.d.ts +2 -2
- package/dist/components/checkbox.d.ts +3 -3
- package/dist/components/checkbox.stories.d.ts +1 -1
- package/dist/components/combobox.d.ts +3 -3
- package/dist/components/combobox.stories.d.ts +1 -1
- package/dist/components/command-menu.d.ts +210 -0
- package/dist/components/command-menu.d.ts.map +1 -0
- package/dist/components/command-menu.stories.d.ts +17 -0
- package/dist/components/command-menu.stories.d.ts.map +1 -0
- package/dist/components/credenza.d.ts +8 -3
- package/dist/components/credenza.d.ts.map +1 -1
- package/dist/components/credenza.stories.d.ts +1 -1
- package/dist/components/dialog.d.ts +5 -5
- package/dist/components/dialog.stories.d.ts +1 -1
- package/dist/components/disclosure.d.ts +4 -4
- package/dist/components/disclosure.stories.d.ts +1 -1
- package/dist/components/dropdown-menu.d.ts +5 -5
- package/dist/components/dropdown-menu.stories.d.ts +1 -1
- package/dist/components/edge-drawer.d.ts +15 -3
- package/dist/components/edge-drawer.d.ts.map +1 -1
- package/dist/components/edge-drawer.stories.d.ts +1 -1
- package/dist/components/edit-bar.d.ts +1 -1
- package/dist/components/edit-bar.stories.d.ts +1 -1
- package/dist/components/form.d.ts +2 -2
- package/dist/components/form.stories.d.ts +1 -1
- package/dist/components/haptic-indicator.d.ts +1 -1
- package/dist/components/haptic-indicator.stories.d.ts +1 -1
- package/dist/components/icon-swap.d.ts +1 -1
- package/dist/components/index-bar.d.ts +6 -3
- package/dist/components/index-bar.d.ts.map +1 -1
- package/dist/components/index-bar.stories.d.ts +1 -1
- package/dist/components/input.d.ts +3 -3
- package/dist/components/input.stories.d.ts +1 -1
- package/dist/components/kbd.d.ts +1 -1
- package/dist/components/kbd.stories.d.ts +1 -1
- package/dist/components/label.d.ts +3 -3
- package/dist/components/label.stories.d.ts +1 -1
- package/dist/components/list-box.d.ts +5 -5
- package/dist/components/list-box.stories.d.ts +1 -1
- package/dist/components/list-row.stories.d.ts +13 -1
- package/dist/components/list-row.stories.d.ts.map +1 -1
- package/dist/components/list.d.ts +49 -4
- package/dist/components/list.d.ts.map +1 -1
- package/dist/components/list.stories.d.ts +6 -2
- package/dist/components/list.stories.d.ts.map +1 -1
- package/dist/components/markdown-editor.d.ts +39 -5
- package/dist/components/markdown-editor.d.ts.map +1 -1
- package/dist/components/markdown-editor.stories.d.ts +4 -1
- package/dist/components/markdown-editor.stories.d.ts.map +1 -1
- package/dist/components/measure-h.d.ts +1 -1
- package/dist/components/morph.d.ts +64 -0
- package/dist/components/morph.d.ts.map +1 -0
- package/dist/components/morph.stories.d.ts +14 -0
- package/dist/components/morph.stories.d.ts.map +1 -0
- package/dist/components/motion.stories.d.ts +1 -1
- package/dist/components/navigation-stack.d.ts +22 -5
- package/dist/components/navigation-stack.d.ts.map +1 -1
- package/dist/components/navigation-stack.stories.d.ts +12 -1
- package/dist/components/navigation-stack.stories.d.ts.map +1 -1
- package/dist/components/now-playing-bars.d.ts +21 -0
- package/dist/components/now-playing-bars.d.ts.map +1 -0
- package/dist/components/now-playing-bars.stories.d.ts +12 -0
- package/dist/components/now-playing-bars.stories.d.ts.map +1 -0
- package/dist/components/number-morph.d.ts +1 -1
- package/dist/components/pencilkit/pencil-canvas.d.ts +1 -1
- package/dist/components/pencilkit/pencil-canvas.stories.d.ts +1 -1
- package/dist/components/pencilkit/pencil-canvas.stories.d.ts.map +1 -1
- package/dist/components/pencilkit/pencil-toolbar.d.ts +13 -8
- package/dist/components/pencilkit/pencil-toolbar.d.ts.map +1 -1
- package/dist/components/pencilkit/pencil-toolbar.stories.d.ts +1 -1
- package/dist/components/pencilkit/pencil-toolbar.stories.d.ts.map +1 -1
- package/dist/components/pencilkit/pencilkit-annotator.d.ts +2 -2
- package/dist/components/pencilkit/stroke-path.d.ts +1 -1
- package/dist/components/pencilkit/use-pencil-history.d.ts +2 -2
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.stories.d.ts +1 -1
- package/dist/components/progress-ring.d.ts +85 -0
- package/dist/components/progress-ring.d.ts.map +1 -0
- package/dist/components/progress-ring.stories.d.ts +15 -0
- package/dist/components/progress-ring.stories.d.ts.map +1 -0
- package/dist/components/progress.d.ts +5 -5
- package/dist/components/progress.stories.d.ts +1 -1
- package/dist/components/qr-svg.d.ts +31 -4
- package/dist/components/qr-svg.d.ts.map +1 -1
- package/dist/components/qr-svg.stories.d.ts +9 -2
- package/dist/components/qr-svg.stories.d.ts.map +1 -1
- package/dist/components/radio-group.d.ts +4 -4
- package/dist/components/radio-group.stories.d.ts +1 -1
- package/dist/components/scroll-area.d.ts +3 -3
- package/dist/components/scroll-area.stories.d.ts +1 -1
- package/dist/components/search-field.d.ts +13 -5
- package/dist/components/search-field.d.ts.map +1 -1
- package/dist/components/search-field.stories.d.ts +3 -1
- package/dist/components/search-field.stories.d.ts.map +1 -1
- package/dist/components/segmented.d.ts +2 -2
- package/dist/components/segmented.d.ts.map +1 -1
- package/dist/components/segmented.stories.d.ts +1 -1
- package/dist/components/select.d.ts +5 -5
- package/dist/components/select.stories.d.ts +1 -1
- package/dist/components/separator.d.ts +3 -3
- package/dist/components/separator.stories.d.ts +1 -1
- package/dist/components/sheet.d.ts +4 -4
- package/dist/components/sheet.stories.d.ts +1 -1
- package/dist/components/side-drawer.d.ts +7 -2
- package/dist/components/side-drawer.d.ts.map +1 -1
- package/dist/components/side-drawer.stories.d.ts +1 -1
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.d.ts.map +1 -1
- package/dist/components/sidebar.stories.d.ts +1 -1
- package/dist/components/skeleton.d.ts +23 -5
- package/dist/components/skeleton.d.ts.map +1 -1
- package/dist/components/skeleton.stories.d.ts +3 -1
- package/dist/components/skeleton.stories.d.ts.map +1 -1
- package/dist/components/slider.d.ts +23 -4
- package/dist/components/slider.d.ts.map +1 -1
- package/dist/components/slider.stories.d.ts +4 -1
- package/dist/components/slider.stories.d.ts.map +1 -1
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/spinner.stories.d.ts +1 -1
- package/dist/components/split-view.d.ts +112 -12
- package/dist/components/split-view.d.ts.map +1 -1
- package/dist/components/split-view.stories.d.ts +35 -1
- package/dist/components/split-view.stories.d.ts.map +1 -1
- package/dist/components/switch.d.ts +3 -1
- package/dist/components/switch.d.ts.map +1 -1
- package/dist/components/switch.stories.d.ts +1 -1
- package/dist/components/syntax-highlighting.d.ts +14 -11
- package/dist/components/syntax-highlighting.d.ts.map +1 -1
- package/dist/components/syntax-highlighting.stories.d.ts +1 -1
- package/dist/components/tab-bar.d.ts +1 -1
- package/dist/components/tab-bar.stories.d.ts +1 -1
- package/dist/components/tab-view.d.ts +15 -14
- package/dist/components/tab-view.d.ts.map +1 -1
- package/dist/components/tab-view.stories.d.ts +18 -2
- package/dist/components/tab-view.stories.d.ts.map +1 -1
- package/dist/components/tabs.d.ts +5 -5
- package/dist/components/tabs.stories.d.ts +1 -1
- package/dist/components/text-field.d.ts +1 -1
- package/dist/components/text-field.stories.d.ts +1 -1
- package/dist/components/text-morph.d.ts +1 -1
- package/dist/components/textarea.d.ts +3 -3
- package/dist/components/toast.d.ts +112 -0
- package/dist/components/toast.d.ts.map +1 -0
- package/dist/components/toast.stories.d.ts +13 -0
- package/dist/components/toast.stories.d.ts.map +1 -0
- package/dist/components/toggle-group.d.ts +3 -3
- package/dist/components/toggle-group.stories.d.ts +1 -1
- package/dist/components/toggle.d.ts +3 -3
- package/dist/components/toggle.stories.d.ts +1 -1
- package/dist/components/tooltip.d.ts +2 -2
- package/dist/components/tooltip.stories.d.ts +1 -1
- package/dist/components/workbench/chat.d.ts +2 -2
- package/dist/components/workbench/chat.d.ts.map +1 -1
- package/dist/components/workbench/chat.stories.d.ts +1 -2
- package/dist/components/workbench/composer-files.d.ts +36 -0
- package/dist/components/workbench/composer-files.d.ts.map +1 -0
- package/dist/components/workbench/composer.d.ts +115 -32
- package/dist/components/workbench/composer.d.ts.map +1 -1
- package/dist/components/workbench/composer.stories.d.ts +8 -2
- package/dist/components/workbench/composer.stories.d.ts.map +1 -1
- package/dist/components/workbench/fixtures.d.ts +2 -2
- package/dist/components/workbench/fixtures.d.ts.map +1 -1
- package/dist/components/workbench/markdown.d.ts +2 -3
- package/dist/components/workbench/markdown.d.ts.map +1 -1
- package/dist/components/workbench/message-scroller.stories.d.ts +1 -2
- package/dist/components/workbench/message-scroller.stories.d.ts.map +1 -1
- package/dist/components/workbench/model-picker.d.ts +3 -3
- package/dist/components/workbench/model-picker.d.ts.map +1 -1
- package/dist/components/workbench/snap-sheet.d.ts +3 -2
- package/dist/components/workbench/snap-sheet.d.ts.map +1 -1
- package/dist/components/workbench/snap-sheet.stories.d.ts +1 -2
- package/dist/components/workbench/snap-sheet.stories.d.ts.map +1 -1
- package/dist/components/workbench/surfaces.d.ts +2 -2
- package/dist/components/workbench/surfaces.d.ts.map +1 -1
- package/dist/components/workbench/surfaces.stories.d.ts +1 -2
- package/dist/components/workbench/terminal.d.ts +10 -2
- package/dist/components/workbench/terminal.d.ts.map +1 -1
- package/dist/components/workbench/terminal.stories.d.ts +1 -2
- package/dist/components/workbench/terminal.stories.d.ts.map +1 -1
- package/dist/components/workbench/wb-popover.d.ts +3 -5
- package/dist/components/workbench/wb-popover.d.ts.map +1 -1
- package/dist/components/workbench/workbench-composer.d.ts +1 -1
- package/dist/demos/delivery/delivery-tracking-demo.d.ts +4 -3
- package/dist/demos/delivery/delivery-tracking-demo.d.ts.map +1 -1
- package/dist/demos/delivery/delivery-tracking-demo.stories.d.ts +2 -3
- package/dist/demos/haptics-playground.d.ts +4 -1
- package/dist/demos/haptics-playground.d.ts.map +1 -1
- package/dist/demos/haptics-playground.stories.d.ts +1 -1
- package/dist/demos/map-chat/map-agent.d.ts +2 -2
- package/dist/demos/map-chat/map-chat-demo.d.ts +3 -3
- package/dist/demos/map-chat/map-chat-demo.d.ts.map +1 -1
- package/dist/demos/map-chat/map-chat-demo.stories.d.ts +2 -3
- package/dist/demos/map-chat/places.d.ts +2 -2
- package/dist/demos/map-chat/tile-map.d.ts +39 -3
- package/dist/demos/map-chat/tile-map.d.ts.map +1 -1
- package/dist/demos/pencilkit/demo-strokes.d.ts +1 -1
- package/dist/demos/pencilkit/pencilkit-demo.d.ts +4 -2
- package/dist/demos/pencilkit/pencilkit-demo.d.ts.map +1 -1
- package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts +1 -1
- package/dist/demos/sidebar-demo.d.ts +1 -4
- package/dist/demos/sidebar-demo.d.ts.map +1 -1
- package/dist/demos/split-view-demos.d.ts +15 -2
- package/dist/demos/split-view-demos.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +46 -57
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15267 -11038
- package/dist/lib/chat/chat-shell-context.d.ts +3 -2
- package/dist/lib/chat/chat-shell-context.d.ts.map +1 -1
- package/dist/lib/chat/persistent-host.d.ts +4 -4
- package/dist/lib/container.d.ts +8 -1
- package/dist/lib/container.d.ts.map +1 -1
- package/dist/lib/haptics.d.ts +7 -5
- package/dist/lib/haptics.d.ts.map +1 -1
- package/dist/lib/icon-shapes/chat.d.ts +32 -0
- package/dist/lib/icon-shapes/chat.d.ts.map +1 -0
- package/dist/lib/icon-shapes/pencilkit.d.ts +49 -0
- package/dist/lib/icon-shapes/pencilkit.d.ts.map +1 -0
- package/dist/lib/icon-shapes/workbench.d.ts +199 -0
- package/dist/lib/icon-shapes/workbench.d.ts.map +1 -0
- package/dist/lib/icon.d.ts +1649 -7
- package/dist/lib/icon.d.ts.map +1 -1
- package/dist/lib/icon.stories.d.ts +8 -1
- package/dist/lib/icon.stories.d.ts.map +1 -1
- package/dist/lib/pencilkit/constants.d.ts +9 -9
- package/dist/lib/pencilkit/constants.d.ts.map +1 -1
- package/dist/lib/primitives.d.ts +1 -1
- package/dist/lib/primitives.d.ts.map +1 -1
- package/dist/lib/qr.d.ts +28 -0
- package/dist/lib/qr.d.ts.map +1 -0
- package/dist/lib/row-label.d.ts +9 -0
- package/dist/lib/row-label.d.ts.map +1 -0
- package/dist/lib/sheet-drag.d.ts +23 -8
- package/dist/lib/sheet-drag.d.ts.map +1 -1
- package/dist/lib/syntax.d.ts +27 -10
- package/dist/lib/syntax.d.ts.map +1 -1
- package/dist/lib/theme.d.ts +39 -8
- package/dist/lib/theme.d.ts.map +1 -1
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/workbench/icons.d.ts +6 -16
- package/dist/lib/workbench/icons.d.ts.map +1 -1
- package/dist/lib/workbench/motion.d.ts +1 -65
- package/dist/lib/workbench/motion.d.ts.map +1 -1
- package/dist/lib/workbench/press.d.ts +1 -1
- package/dist/lib/workbench/press.d.ts.map +1 -1
- package/dist/lib/workbench/theme.d.ts +3 -4
- package/dist/lib/workbench/theme.d.ts.map +1 -1
- package/dist/lib/workbench/util.d.ts +5 -3
- package/dist/lib/workbench/util.d.ts.map +1 -1
- package/dist/stories/frame.d.ts +1 -1
- package/dist/stories/primitive-frame.d.ts +1 -1
- package/dist/templates/artifact-chat-container.d.ts +8 -3
- package/dist/templates/artifact-chat-container.d.ts.map +1 -1
- package/dist/templates/artifact-chat-container.stories.d.ts +2 -3
- package/dist/templates/artifact-chat-container.stories.d.ts.map +1 -1
- package/dist/templates/chat-shell.d.ts +10 -9
- package/dist/templates/chat-shell.d.ts.map +1 -1
- package/dist/templates/workbench-shell.d.ts +8 -8
- package/dist/templates/workbench-shell.d.ts.map +1 -1
- package/dist/templates/workbench-shell.stories.d.ts +1 -2
- package/dist/templates/workbench-shell.stories.d.ts.map +1 -1
- package/dist/theme.css +325 -0
- package/package.json +7 -4
- package/dist/components/chat/channel-list.d.ts +0 -35
- package/dist/components/chat/channel-list.d.ts.map +0 -1
- package/dist/components/chat/channel-list.stories.d.ts +0 -14
- package/dist/components/chat/channel-list.stories.d.ts.map +0 -1
- package/dist/components/chat/chat-avatar.d.ts +0 -13
- package/dist/components/chat/chat-avatar.d.ts.map +0 -1
- package/dist/components/chat/chat-avatar.stories.d.ts +0 -10
- package/dist/components/chat/chat-avatar.stories.d.ts.map +0 -1
- package/dist/components/chat/chat-composer.d.ts +0 -22
- package/dist/components/chat/chat-composer.d.ts.map +0 -1
- package/dist/components/chat/chat-composer.stories.d.ts +0 -17
- package/dist/components/chat/chat-composer.stories.d.ts.map +0 -1
- package/dist/components/chat/chat.fixtures.d.ts +0 -29
- package/dist/components/chat/chat.fixtures.d.ts.map +0 -1
- package/dist/components/chat/member-list.d.ts +0 -21
- package/dist/components/chat/member-list.d.ts.map +0 -1
- package/dist/components/chat/message-list.d.ts +0 -34
- package/dist/components/chat/message-list.d.ts.map +0 -1
- package/dist/components/chat/message.d.ts +0 -47
- package/dist/components/chat/message.d.ts.map +0 -1
- package/dist/components/chat/message.stories.d.ts +0 -31
- package/dist/components/chat/message.stories.d.ts.map +0 -1
- package/dist/components/chat/rich-text.d.ts +0 -8
- package/dist/components/chat/rich-text.d.ts.map +0 -1
- package/dist/components/chat/rich-text.stories.d.ts +0 -10
- package/dist/components/chat/rich-text.stories.d.ts.map +0 -1
- package/dist/components/chat/server-header.d.ts +0 -10
- package/dist/components/chat/server-header.d.ts.map +0 -1
- package/dist/components/chat/thread-preview.d.ts +0 -25
- package/dist/components/chat/thread-preview.d.ts.map +0 -1
- package/dist/components/chat/thread-preview.stories.d.ts +0 -19
- package/dist/components/chat/thread-preview.stories.d.ts.map +0 -1
- package/dist/components/chat/user-panel.d.ts +0 -16
- package/dist/components/chat/user-panel.d.ts.map +0 -1
- package/dist/components/chat/workspace-rail.d.ts +0 -56
- package/dist/components/chat/workspace-rail.d.ts.map +0 -1
- package/dist/components/chat/workspace-rail.stories.d.ts +0 -13
- package/dist/components/chat/workspace-rail.stories.d.ts.map +0 -1
- package/dist/components/pencilkit/pk-icon.d.ts +0 -8
- package/dist/components/pencilkit/pk-icon.d.ts.map +0 -1
- package/dist/components/pill-button.d.ts +0 -11
- package/dist/components/pill-button.d.ts.map +0 -1
- package/dist/components/pill-button.stories.d.ts +0 -9
- package/dist/components/pill-button.stories.d.ts.map +0 -1
- package/dist/components/workbench/thread-sidebar.d.ts +0 -100
- package/dist/components/workbench/thread-sidebar.d.ts.map +0 -1
- package/dist/components/workbench/thread-sidebar.stories.d.ts +0 -10
- package/dist/components/workbench/thread-sidebar.stories.d.ts.map +0 -1
- package/dist/lib/chat/chat-icon.d.ts +0 -24
- package/dist/lib/chat/chat-icon.d.ts.map +0 -1
- package/dist/lib/chat/chat-tokens.d.ts +0 -72
- package/dist/lib/chat/chat-tokens.d.ts.map +0 -1
- package/dist/lib/chat/chat-users.d.ts +0 -18
- package/dist/lib/chat/chat-users.d.ts.map +0 -1
- package/dist/lib/chat/kvib.d.ts +0 -3
- package/dist/lib/chat/kvib.d.ts.map +0 -1
- package/dist/lib/chat/title-ref.d.ts +0 -3
- package/dist/lib/chat/title-ref.d.ts.map +0 -1
- package/dist/templates/chat-shell.stories.d.ts +0 -23
- package/dist/templates/chat-shell.stories.d.ts.map +0 -1
- package/dist/tsconfig.lib.tsbuildinfo +0 -1
|
@@ -1,11 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SliderProps as AriaSliderProps, SliderThumbProps, SliderTrackProps } from 'react-aria-components';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
/** Root layout plus the tone's track / fill colors (as --bl-slider-* knobs the track and thumb read). */
|
|
5
|
+
export declare const sliderVariants: (props?: ({
|
|
6
|
+
tone?: "default" | "onDark" | "onLight" | null | undefined;
|
|
7
|
+
size?: "default" | "sm" | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
+
export interface SliderProps<T extends number | number[]> extends AriaSliderProps<T>, VariantProps<typeof sliderVariants> {
|
|
4
10
|
label?: ReactNode;
|
|
5
11
|
/** Show the formatted value opposite the label. */
|
|
6
12
|
showValue?: boolean;
|
|
13
|
+
/** Color scheme of the track, fill and thumb. `default`: the tint on the fill color. `onDark`: translucent
|
|
14
|
+
white for media controls over artwork or dark glass (Music's scrubber and volume). `onLight`: translucent
|
|
15
|
+
black for light imagery. Fine-tune any of them with `trackColor` / `fillColor` / `thumbColor`. */
|
|
16
|
+
tone?: SliderTone | null;
|
|
17
|
+
/** `default`: the 26px iOS thumb. `sm`: a 12px thumb on a 20px-tall hit area that grows while dragging (scrubbers). */
|
|
18
|
+
size?: 'default' | 'sm' | null;
|
|
19
|
+
/** Any CSS color for the unfilled track. */
|
|
20
|
+
trackColor?: string;
|
|
21
|
+
/** Any CSS color for the filled part. */
|
|
22
|
+
fillColor?: string;
|
|
23
|
+
/** Any CSS color for the thumb. */
|
|
24
|
+
thumbColor?: string;
|
|
7
25
|
}
|
|
8
|
-
export
|
|
26
|
+
export type SliderTone = 'default' | 'onDark' | 'onLight';
|
|
27
|
+
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;
|
|
9
28
|
/** 28px hit area with the 4px track and tint fill inside; inset by half a thumb so the thumb never overhangs
|
|
10
29
|
(like a native range). Children are the thumbs. */
|
|
11
30
|
export declare function SliderTrack({ className, children, ...props }: SliderTrackProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +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;
|
|
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;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AASlE,yGAAyG;AACzG,eAAO,MAAM,cAAc;;;8EAUzB,CAAC;AAEH,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;IACvH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,mDAAmD;IACnD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;yGAEqG;IACrG,IAAI,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IACzB,uHAAuH;IACvH,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC;IAC/B,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;AAE1D,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,2CA8ChB;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"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import { Slider } from './slider';
|
|
3
3
|
declare const meta: Meta<typeof Slider>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof Slider>;
|
|
6
6
|
export declare const Default: Story;
|
|
7
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;
|
|
8
11
|
export declare const Dark: Story;
|
|
9
12
|
//# sourceMappingURL=slider.stories.d.ts.map
|
|
@@ -1 +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,eAAO,MAAM,IAAI,EAAE,KAQlB,CAAC"}
|
|
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"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
3
|
export type SplitViewColumn = 'sidebar' | 'supplementary' | 'detail';
|
|
3
4
|
export type SplitViewWidthClass = 'compact' | 'medium' | 'regular';
|
|
4
5
|
/** How a shown sidebar shares space with the other columns. `auto`: tile at regular, overlay at medium. */
|
|
@@ -11,7 +12,7 @@ export interface SplitViewState {
|
|
|
11
12
|
collapsed: boolean;
|
|
12
13
|
/** Measured width of the SplitView, px. */
|
|
13
14
|
width: number;
|
|
14
|
-
/** Columns that are
|
|
15
|
+
/** Columns that are shown, in order (a hidden supplementary is left out). */
|
|
15
16
|
columns: SplitViewColumn[];
|
|
16
17
|
sidebarVisible: boolean;
|
|
17
18
|
setSidebarVisible: (visible: boolean) => void;
|
|
@@ -30,11 +31,22 @@ export interface SplitViewState {
|
|
|
30
31
|
canGoBack: boolean;
|
|
31
32
|
widths: Partial<Record<SplitViewColumn, number>>;
|
|
32
33
|
setColumnWidth: (column: SplitViewColumn, width: number) => void;
|
|
34
|
+
/** False while the supplementary column is hidden and the detail has taken its space. */
|
|
35
|
+
supplementaryVisible: boolean;
|
|
36
|
+
setSupplementaryVisible: (visible: boolean) => void;
|
|
33
37
|
}
|
|
34
38
|
/** Split view state: width class, sidebar visibility, selection and navigation. */
|
|
35
39
|
export declare function useSplitView(): SplitViewState;
|
|
36
40
|
/** The column the calling component is rendered in, or null outside a column. */
|
|
37
41
|
export declare function useSplitViewColumn(): SplitViewColumn | null;
|
|
42
|
+
/** For a container that draws its own bar (NavigationStack) at the root of a SplitView column: while the split
|
|
43
|
+
* view is collapsed and a column comes before this one, that column's title and the way back to it — else
|
|
44
|
+
* null (outside a SplitView too). `title` registers this column's own title, for the back label of the column
|
|
45
|
+
* after it (what a SplitViewHeader does). */
|
|
46
|
+
export declare function useSplitViewBack(title?: string): {
|
|
47
|
+
title: string;
|
|
48
|
+
back: () => void;
|
|
49
|
+
} | null;
|
|
38
50
|
export interface SplitViewProps {
|
|
39
51
|
/** Force a width class. Omit to measure the SplitView's own width against `breakpoints`. */
|
|
40
52
|
widthClass?: SplitViewWidthClass;
|
|
@@ -46,9 +58,20 @@ export interface SplitViewProps {
|
|
|
46
58
|
sidebarBehavior?: SplitViewSidebarBehavior;
|
|
47
59
|
/** Controlled sidebar visibility. */
|
|
48
60
|
sidebarVisible?: boolean;
|
|
49
|
-
/**
|
|
61
|
+
/** Sidebar visibility at regular width — shorthand for `sidebarVisibility={{ regular }}`. Default true. */
|
|
50
62
|
defaultSidebarVisible?: boolean;
|
|
63
|
+
/** The visibility the sidebar starts at, and resets to whenever the width class changes, per class.
|
|
64
|
+
* Default `{ regular: defaultSidebarVisible, medium: false }`. */
|
|
65
|
+
sidebarVisibility?: Partial<Record<Exclude<SplitViewWidthClass, 'compact'>, boolean>>;
|
|
66
|
+
/** Every visibility change: the toggle, the scrim, Esc, picking in a floating sidebar — and the reset to
|
|
67
|
+
* `sidebarVisibility` when the width class changes, so a controlling parent can simply mirror it. */
|
|
51
68
|
onSidebarVisibleChange?: (visible: boolean) => void;
|
|
69
|
+
/** Controlled supplementary visibility. `false` slides the supplementary away and the detail takes its space
|
|
70
|
+
* (Notes' gallery); when collapsed, the stack skips it. */
|
|
71
|
+
supplementaryVisible?: boolean;
|
|
72
|
+
/** Default true. */
|
|
73
|
+
defaultSupplementaryVisible?: boolean;
|
|
74
|
+
onSupplementaryVisibleChange?: (visible: boolean) => void;
|
|
52
75
|
selection?: SplitViewSelection;
|
|
53
76
|
defaultSelection?: SplitViewSelection;
|
|
54
77
|
onSelectionChange?: (selection: SplitViewSelection) => void;
|
|
@@ -62,7 +85,7 @@ export interface SplitViewProps {
|
|
|
62
85
|
className?: string;
|
|
63
86
|
style?: CSSProperties;
|
|
64
87
|
}
|
|
65
|
-
export declare function SplitView({ widthClass: wcProp, breakpoints, sidebarBehavior, sidebarVisible: sideProp, defaultSidebarVisible, onSidebarVisibleChange, selection: selProp, defaultSelection, onSelectionChange, defaultCompactColumn, onCompactColumnChange, onWidthClassChange, children, className, style, ...aria }: SplitViewProps): import("react/jsx-runtime").JSX.Element;
|
|
88
|
+
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;
|
|
66
89
|
export interface SplitViewColumnProps {
|
|
67
90
|
/** Preferred width, px (sidebar default 280, supplementary 340; the detail fills what's left). */
|
|
68
91
|
width?: number;
|
|
@@ -70,6 +93,8 @@ export interface SplitViewColumnProps {
|
|
|
70
93
|
maxWidth?: number;
|
|
71
94
|
/** Draggable divider on the trailing edge (tiled only). Default true for sidebar and supplementary. */
|
|
72
95
|
resizable?: boolean;
|
|
96
|
+
/** Host a push/pop stack: the children become its root page (see `SplitViewStack`, `useSplitViewStack`). */
|
|
97
|
+
stack?: boolean;
|
|
73
98
|
/** Accessible name of the column region. */
|
|
74
99
|
'aria-label'?: string;
|
|
75
100
|
children?: ReactNode;
|
|
@@ -84,17 +109,27 @@ export declare function SplitViewSupplementary(props: SplitViewColumnProps): imp
|
|
|
84
109
|
export declare function SplitViewDetail(props: SplitViewColumnProps): import("react/jsx-runtime").JSX.Element;
|
|
85
110
|
export interface SplitViewHeaderProps {
|
|
86
111
|
title?: ReactNode;
|
|
112
|
+
/** iOS large title: drawn big at the top of the pane's SplitViewContent and scrolling with it; once it has
|
|
113
|
+
* gone under the bar the inline title (and the bar's hairline) spring in. */
|
|
114
|
+
largeTitle?: boolean;
|
|
115
|
+
/** Drawn on the large title's line, at the trailing edge (Reminders' open count). */
|
|
116
|
+
largeTitleTrailing?: ReactNode;
|
|
117
|
+
/** Classes for the large-title block — to line it up with the content (`mx-auto max-w-[760px] px-5`). */
|
|
118
|
+
largeTitleClassName?: string;
|
|
119
|
+
/** No large title: the inline title (and the bar's hairline) fade in once the content scrolls. */
|
|
120
|
+
titleOnScroll?: boolean;
|
|
87
121
|
/** Leading items (e.g. <SplitViewToggle/>). Replaced by the back button when collapsed and not the root. */
|
|
88
122
|
leading?: ReactNode;
|
|
89
123
|
trailing?: ReactNode;
|
|
90
|
-
/** Back button label; defaults to the previous column's title
|
|
124
|
+
/** Back button label; defaults to the previous column's (or stack page's) title, truncated to the room
|
|
125
|
+
* the title leaves. */
|
|
91
126
|
backLabel?: string;
|
|
92
127
|
className?: string;
|
|
93
128
|
style?: CSSProperties;
|
|
94
129
|
}
|
|
95
|
-
/** Column bar: back button when collapsed, title, leading / trailing items. */
|
|
96
|
-
export declare function SplitViewHeader({ title, leading, trailing, backLabel, className, style }: SplitViewHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
97
|
-
/** Scrolling body of a column. */
|
|
130
|
+
/** Column bar: back button when collapsed (or on a pushed stack page), title, leading / trailing items. */
|
|
131
|
+
export declare function SplitViewHeader({ title, largeTitle, largeTitleTrailing, largeTitleClassName, titleOnScroll, leading, trailing, backLabel, className, style, }: SplitViewHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
132
|
+
/** Scrolling body of a column. Draws the header's large title, if it has one, at the top of the scroll. */
|
|
98
133
|
export declare function SplitViewContent({ children, className, style }: {
|
|
99
134
|
children?: ReactNode;
|
|
100
135
|
className?: string;
|
|
@@ -106,8 +141,21 @@ export interface SplitViewToggleProps {
|
|
|
106
141
|
}
|
|
107
142
|
/** Sidebar button. Shown whenever there's a sidebar to show or hide; hidden when collapsed (back takes over). */
|
|
108
143
|
export declare function SplitViewToggle({ className, ...aria }: SplitViewToggleProps): import("react/jsx-runtime").JSX.Element | null;
|
|
109
|
-
|
|
110
|
-
|
|
144
|
+
/** Selected colours for a SplitViewItem: a background (foreground white), or both. */
|
|
145
|
+
export type SplitViewItemTint = string | {
|
|
146
|
+
background: string;
|
|
147
|
+
foreground?: string;
|
|
148
|
+
};
|
|
149
|
+
/** A SplitViewItem's surface: `pill` (inset rounded, sidebar default) or `row` (full-bleed with a separator);
|
|
150
|
+
* selected fills with the tint (pill) or a 14% wash of it (row) — the item's own `tint` when it has one. */
|
|
151
|
+
export declare const splitViewItemVariants: (props?: ({
|
|
152
|
+
variant?: "row" | "pill" | null | undefined;
|
|
153
|
+
selected?: boolean | null | undefined;
|
|
154
|
+
tinted?: boolean | null | undefined;
|
|
155
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
156
|
+
export interface SplitViewItemProps extends Pick<VariantProps<typeof splitViewItemVariants>, 'variant'> {
|
|
157
|
+
/** Selection value within this column. Several items may share one (the same mailbox under Favorites and
|
|
158
|
+
* under its account): every item whose id is selected draws selected. */
|
|
111
159
|
id: string;
|
|
112
160
|
title?: ReactNode;
|
|
113
161
|
subtitle?: ReactNode;
|
|
@@ -117,12 +165,64 @@ export interface SplitViewItemProps {
|
|
|
117
165
|
/** Replaces the title/subtitle layout entirely. */
|
|
118
166
|
children?: ReactNode;
|
|
119
167
|
/** `pill` (sidebar default): inset rounded row. `row`: full-bleed list row with a separator. */
|
|
120
|
-
variant?: 'pill' | 'row';
|
|
168
|
+
variant?: 'pill' | 'row' | null;
|
|
169
|
+
/** This item's own selection colour instead of the app tint (Reminders' coloured lists). Also colours the
|
|
170
|
+
* icon while unselected. Exposed to custom content as `--split-item-tint` / `--split-item-on-tint`. */
|
|
171
|
+
tint?: SplitViewItemTint;
|
|
121
172
|
onPress?: () => void;
|
|
122
173
|
className?: string;
|
|
123
174
|
}
|
|
124
175
|
/** A selectable row bound to the column's selection: pressing it selects `id` and shows the next column. */
|
|
125
|
-
export declare function SplitViewItem({ id, title, subtitle, icon, badge, children, variant, onPress, className }: SplitViewItemProps): import("react/jsx-runtime").JSX.Element;
|
|
176
|
+
export declare function SplitViewItem({ id, title, subtitle, icon, badge, children, variant, tint, onPress, className }: SplitViewItemProps): import("react/jsx-runtime").JSX.Element;
|
|
177
|
+
/** A SplitViewSection's label: `default` — the small grey group label (Mail's "Favorites"); `prominent` — the
|
|
178
|
+
* bold 20px heading iOS uses over a list group (Reminders' "My Lists"). */
|
|
179
|
+
export declare const splitViewSectionLabelVariants: (props?: ({
|
|
180
|
+
variant?: "default" | "prominent" | null | undefined;
|
|
181
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
182
|
+
export interface SplitViewSectionProps extends VariantProps<typeof splitViewSectionLabelVariants> {
|
|
183
|
+
/** Section label ("Favorites", "iCloud"). */
|
|
184
|
+
title?: ReactNode;
|
|
185
|
+
/** Classes for the label (merged over the variant's). */
|
|
186
|
+
labelClassName?: string;
|
|
187
|
+
/** The label becomes a disclosure button that folds the section with a spring. */
|
|
188
|
+
collapsible?: boolean;
|
|
189
|
+
expanded?: boolean;
|
|
190
|
+
/** Default true. */
|
|
191
|
+
defaultExpanded?: boolean;
|
|
192
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
193
|
+
children?: ReactNode;
|
|
194
|
+
className?: string;
|
|
195
|
+
}
|
|
196
|
+
/** A titled group of SplitViewItems in a column. An item id may appear in more than one section; each copy
|
|
197
|
+
* highlights when it's selected. */
|
|
198
|
+
export declare function SplitViewSection({ title, variant, labelClassName, collapsible, expanded, defaultExpanded, onExpandedChange, children, className, }: SplitViewSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
199
|
+
export interface SplitViewStackApi {
|
|
200
|
+
/** Push a page on top. Pages are kept as elements, so read live data from hooks/context inside them. */
|
|
201
|
+
push: (page: ReactNode, options?: {
|
|
202
|
+
key?: string;
|
|
203
|
+
}) => void;
|
|
204
|
+
/** Pop the top page (no-op at the root). */
|
|
205
|
+
pop: () => void;
|
|
206
|
+
popToRoot: () => void;
|
|
207
|
+
/** Pages including the root: 1 at the root. */
|
|
208
|
+
depth: number;
|
|
209
|
+
canPop: boolean;
|
|
210
|
+
}
|
|
211
|
+
/** The nearest SplitViewStack's push / pop. */
|
|
212
|
+
export declare function useSplitViewStack(): SplitViewStackApi;
|
|
213
|
+
export interface SplitViewStackProps {
|
|
214
|
+
/** The root page. */
|
|
215
|
+
children?: ReactNode;
|
|
216
|
+
/** Changing this drops every pushed page at once (e.g. the sidebar selection the stack belongs to). */
|
|
217
|
+
resetKey?: unknown;
|
|
218
|
+
onDepthChange?: (depth: number) => void;
|
|
219
|
+
className?: string;
|
|
220
|
+
style?: CSSProperties;
|
|
221
|
+
}
|
|
222
|
+
/** A push/pop stack inside a column. Each page may have its own SplitViewHeader (whose back button pops,
|
|
223
|
+
* labelled with the page below's title) and SplitViewContent. The leading-edge swipe and Esc pop the
|
|
224
|
+
* innermost level first; the column stack only moves once this stack is at its root. */
|
|
225
|
+
export declare function SplitViewStack({ children, resetKey, onDepthChange, className, style }: SplitViewStackProps): import("react/jsx-runtime").JSX.Element;
|
|
126
226
|
export interface SplitViewEmptyProps {
|
|
127
227
|
icon?: ReactNode;
|
|
128
228
|
title?: ReactNode;
|
|
@@ -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,EACrH,MAAM,OAAO,CAAC;AAIf,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AASlE,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,eAAe,GAAG,QAAQ,CAAC;AACrE,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AACnE,2GAA2G;AAC3G,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC;AAChF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,M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,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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import { SplitView } from './split-view';
|
|
3
3
|
declare const meta: Meta<typeof SplitView>;
|
|
4
4
|
export default meta;
|
|
@@ -21,4 +21,38 @@ export declare const DisplaceSidebar: Story;
|
|
|
21
21
|
/** Drag the handle (or focus it and use the arrow keys): the split morphs between regular, medium and
|
|
22
22
|
* compact without losing the selection or the scroll position. */
|
|
23
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;
|
|
51
|
+
/** Collapsed with a NavigationStack at its root: the root screen gets a back button to the sidebar, labelled
|
|
52
|
+
* with its title (`rootBack` defaults to the previous column inside a collapsed SplitView). */
|
|
53
|
+
export declare const NavigationStackRootBack: Story;
|
|
54
|
+
/** Header and section options: the sidebar's bar shows its title only once the list scrolls (`titleOnScroll`);
|
|
55
|
+
* "My Lists" is a `prominent` section label; the detail's large title carries a trailing count
|
|
56
|
+
* (`largeTitleTrailing`) and lines up with the centred content (`largeTitleClassName`). */
|
|
57
|
+
export declare const HeaderOptions: Story;
|
|
24
58
|
//# 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;AAC5D,OAAO,
|
|
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,uB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ACjG,eAAO,MAAM,qBAAqB,EAAE,KAgCnC,CAAC;AAEF;gGACgG;AAChG,eAAO,MAAM,uBAAuB,EAAE,KAwBrC,CAAC;AAEF;;4FAE4F;AAC5F,eAAO,MAAM,aAAa,EAAE,KA2B3B,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
2
|
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. Inside a ListRow it defaults to the row title. */
|
|
7
|
+
'aria-labelledby'?: string;
|
|
6
8
|
className?: string;
|
|
7
9
|
style?: CSSProperties;
|
|
8
10
|
}
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../src/components/switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAM3C,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,0FAA0F;IAC1F,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,2CAsBnF"}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { ComponentProps, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { ButtonProps as AriaButtonProps } from 'react-aria-components';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { SyntaxEngine, SyntaxHighlighter, SyntaxToken } from '../lib/syntax';
|
|
5
5
|
export interface UseSyntaxTokensOptions {
|
|
6
6
|
/** A plain-text language (`text`, `plaintext`, `none`) skips lexing. Other values are informational: gpu-lexer
|
|
7
7
|
recognizes the language itself. */
|
|
8
8
|
language?: string;
|
|
9
9
|
/** `false` renders plain lines and never lexes. */
|
|
10
10
|
enabled?: boolean;
|
|
11
|
-
/** `
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
/** `auto` (default): gpu-lexer on a hardware WebGPU adapter; where the only adapter is a software one
|
|
12
|
+
(SwiftShader in headless CI, llvmpipe), there is none, or the one-time adapter probe takes over 2.5 s, the
|
|
13
|
+
small fallback at once. `gpu`: gpu-lexer on any adapter, software included (slow on software; the fallback
|
|
14
|
+
only where WebGPU is missing). `fallback`: always the fallback (tests, or pages that must not touch the GPU). */
|
|
15
|
+
engine?: SyntaxEngine;
|
|
14
16
|
}
|
|
15
17
|
export interface SyntaxTokensState {
|
|
16
18
|
/** One token array per line (a single trailing newline is dropped). Plain until the lexer answers. */
|
|
@@ -30,14 +32,14 @@ export declare function SyntaxTokens({ tokens }: {
|
|
|
30
32
|
export type SyntaxLineRange = number | readonly [number, number] | string;
|
|
31
33
|
export declare const syntaxHighlightingVariants: (props?: ({
|
|
32
34
|
variant?: "default" | "inline" | "ghost" | null | undefined;
|
|
33
|
-
} & import(
|
|
35
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
34
36
|
type Variant = NonNullable<VariantProps<typeof syntaxHighlightingVariants>['variant']>;
|
|
35
37
|
interface SyntaxHighlightingContextValue {
|
|
36
38
|
code: string;
|
|
37
39
|
language?: string;
|
|
38
40
|
variant: Variant;
|
|
39
41
|
title?: ReactNode;
|
|
40
|
-
engine?:
|
|
42
|
+
engine?: SyntaxEngine;
|
|
41
43
|
}
|
|
42
44
|
/** The enclosing SyntaxHighlighting's `code`, `language`, `variant` and `title`. */
|
|
43
45
|
export declare const useSyntaxHighlighting: () => SyntaxHighlightingContextValue | null;
|
|
@@ -63,8 +65,9 @@ export interface SyntaxHighlightingContentProps extends Omit<ComponentProps<'pre
|
|
|
63
65
|
lineProps?: (line: number) => HTMLAttributes<HTMLSpanElement> | undefined;
|
|
64
66
|
/** `false` renders plain text and never lexes. */
|
|
65
67
|
highlight?: boolean;
|
|
66
|
-
/** `
|
|
67
|
-
|
|
68
|
+
/** `auto` (default: GPU on a hardware adapter, else the fallback at once), `gpu` (gpu-lexer even on a software
|
|
69
|
+
adapter) or `fallback` — see `useSyntaxTokens`. */
|
|
70
|
+
engine?: SyntaxEngine;
|
|
68
71
|
}
|
|
69
72
|
export declare function SyntaxHighlightingContent({ code: codeProp, language: languageProp, lineNumbers, startLine, highlightLines, addedLines, removedLines, wrap, maxHeight, lineProps, highlight, engine, className, style, tabIndex, ...props }: SyntaxHighlightingContentProps): import("react/jsx-runtime").JSX.Element;
|
|
70
73
|
export declare function SyntaxHighlightingHeader({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"syntax-highlighting.d.ts","sourceRoot":"","sources":["../../src/components/syntax-highlighting.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEe,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAC7E,MAAM,OAAO,CAAC;AACf,OAAO,EAAwB,KAAK,WAAW,IAAI,eAAe,EAAsB,MAAM,uBAAuB,CAAC;AACtH,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,OAAO,EAEL,KAAK,iBAAiB,EAAqB,KAAK,WAAW,
|
|
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GAAG,MAAM,CAAC;IAC9B,mCAAmC;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;0HAC0H;AAC1H,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAgB,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,gBAAgB,EAAE,KAAK,EAAE,QAAQ,EAC1G,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,UAAU,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAC/G,GAAG,KAAK,EACT,EAAE,uBAAuB,2CAuCzB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { CSSProperties, HTMLAttributes, ReactNode, Ref } from 'react';
|
|
2
|
+
import { ButtonProps as AriaButtonProps, TabProps as AriaTabProps, TabRenderProps, TabListProps as AriaTabListProps, TabPanelProps as AriaTabPanelProps, TabPanelsProps as AriaTabPanelsProps, TabsProps as AriaTabsProps } from 'react-aria-components';
|
|
3
3
|
export type TabViewPlacement = 'top' | 'bottom' | 'start' | 'end';
|
|
4
4
|
export type TabViewOrientation = 'horizontal' | 'vertical';
|
|
5
|
-
export type TabViewBarVariant = 'bar' | 'rail' | 'plain';
|
|
5
|
+
export type TabViewBarVariant = 'bar' | 'rail' | 'workspace' | 'plain';
|
|
6
6
|
interface TabViewCtxValue {
|
|
7
7
|
orientation: TabViewOrientation;
|
|
8
8
|
placement: TabViewPlacement;
|
|
@@ -14,7 +14,7 @@ export declare const useTabView: () => TabViewCtxValue;
|
|
|
14
14
|
export declare const useTabViewTab: () => TabRenderProps | null;
|
|
15
15
|
export declare const tabViewVariants: (props?: ({
|
|
16
16
|
placement?: "bottom" | "end" | "start" | "top" | null | undefined;
|
|
17
|
-
} & import(
|
|
17
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
18
18
|
export interface TabViewProps extends Omit<AriaTabsProps, 'orientation'> {
|
|
19
19
|
/** Where the bar sits. `top`/`bottom` → horizontal, `start`/`end` → vertical. */
|
|
20
20
|
placement?: TabViewPlacement;
|
|
@@ -23,8 +23,8 @@ export interface TabViewProps extends Omit<AriaTabsProps, 'orientation'> {
|
|
|
23
23
|
}
|
|
24
24
|
export declare function TabView({ placement, orientation, className, onSelectionChange, children, ...props }: TabViewProps): import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
export declare const tabViewBarVariants: (props?: ({
|
|
26
|
-
variant?: "bar" | "rail" | "plain" | null | undefined;
|
|
27
|
-
} & import(
|
|
26
|
+
variant?: "bar" | "rail" | "workspace" | "plain" | null | undefined;
|
|
27
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
28
28
|
export interface TabViewBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
29
29
|
/** Defaults to `bar` when horizontal, `rail` when vertical. */
|
|
30
30
|
variant?: TabViewBarVariant;
|
|
@@ -33,12 +33,12 @@ export interface TabViewBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
33
33
|
}
|
|
34
34
|
export declare function TabViewBar({ variant, hideOnScroll, className, style, children, ...props }: TabViewBarProps): import("react/jsx-runtime").JSX.Element;
|
|
35
35
|
export declare const tabViewListVariants: (props?: ({
|
|
36
|
-
variant?: "bar" | "rail" | "plain" | null | undefined;
|
|
37
|
-
} & import(
|
|
36
|
+
variant?: "bar" | "rail" | "workspace" | "plain" | null | undefined;
|
|
37
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
38
38
|
export declare function TabViewList<T extends object>({ className, ...props }: AriaTabListProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
39
39
|
export declare const tabViewTabVariants: (props?: ({
|
|
40
|
-
variant?: "bar" | "rail" | "plain" | null | undefined;
|
|
41
|
-
} & import(
|
|
40
|
+
variant?: "bar" | "rail" | "workspace" | "plain" | null | undefined;
|
|
41
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
42
42
|
export interface TabViewTabProps extends AriaTabProps {
|
|
43
43
|
/** Default content: an icon name (see `Icon`)… */
|
|
44
44
|
icon?: string;
|
|
@@ -52,7 +52,7 @@ export declare function TabViewTab({ className, icon, title, children, ...props
|
|
|
52
52
|
export declare const tabViewIndicatorVariants: (props?: ({
|
|
53
53
|
variant?: "bar" | "pill" | null | undefined;
|
|
54
54
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
55
|
-
} & import(
|
|
55
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
56
56
|
export interface TabViewIndicatorProps {
|
|
57
57
|
variant?: 'bar' | 'pill';
|
|
58
58
|
/** `pill` only: show the small unread nub while not hovered/selected. */
|
|
@@ -68,8 +68,8 @@ interface SeparatorProps {
|
|
|
68
68
|
/** A divider between tabs. It lives in the tablist's collection but is disabled, so arrow keys skip it. */
|
|
69
69
|
export declare function TabViewSeparator(props: SeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
70
70
|
export declare const tabViewActionVariants: (props?: ({
|
|
71
|
-
variant?: "bar" | "rail" | "plain" | null | undefined;
|
|
72
|
-
} & import(
|
|
71
|
+
variant?: "bar" | "rail" | "workspace" | "plain" | null | undefined;
|
|
72
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
73
73
|
export interface TabViewActionProps extends AriaButtonProps {
|
|
74
74
|
icon?: string;
|
|
75
75
|
title?: ReactNode;
|
|
@@ -83,7 +83,8 @@ interface SlotProps {
|
|
|
83
83
|
}
|
|
84
84
|
/** Content above/before the tabs (logo, title). */
|
|
85
85
|
export declare function TabViewHeader({ className, style, children }: SlotProps): import("react/jsx-runtime").JSX.Element;
|
|
86
|
-
/** Content after the tabs, pushed to the far end of the bar
|
|
86
|
+
/** Content after the tabs, pushed to the far end of the bar — in a `workspace` bar it follows the list instead
|
|
87
|
+
* (Discord's add button sits right under the last tile), and the list scrolls once they no longer fit. */
|
|
87
88
|
export declare function TabViewFooter({ className, style, children }: SlotProps): import("react/jsx-runtime").JSX.Element;
|
|
88
89
|
export declare function TabViewPanels<T extends object>({ className, ...props }: AriaTabPanelsProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
89
90
|
/** Panels move with the selection: the new one arrives from the side (or, vertically, the end) of the tab you
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-view.d.ts","sourceRoot":"","sources":["../../src/components/tab-view.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"tab-view.d.ts","sourceRoot":"","sources":["../../src/components/tab-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAClE,MAAM,OAAO,CAAC;AAEf,OAAO,EACiB,KAAK,WAAW,IAAI,eAAe,EAEzC,KAAK,QAAQ,IAAI,YAAY,EAAE,KAAK,cAAc,EAC1C,KAAK,YAAY,IAAI,gBAAgB,EACnC,KAAK,aAAa,IAAI,iBAAiB,EACrC,KAAK,cAAc,IAAI,kBAAkB,EAEnD,KAAK,SAAS,IAAI,aAAa,EAGlD,MAAM,uBAAuB,CAAC;AAgC/B,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;AAClE,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,UAAU,CAAC;AAC3D,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,MAAM,GAAG,WAAW,GAAG,OAAO,CAAC;AAEvE,UAAU,eAAe;IACvB,WAAW,EAAE,kBAAkB,CAAC;IAChC,SAAS,EAAE,gBAAgB,CAAC;IAC5B,OAAO,EAAE,iBAAiB,CAAC;CAC5B;AAsDD,sEAAsE;AACtE,eAAO,MAAM,UAAU,uBAA+B,CAAC;AAGvD,mGAAmG;AACnG,eAAO,MAAM,aAAa,6BAA+B,CAAC;AAE1D,eAAO,MAAM,eAAe;;8EA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