@brett_lamy/ui 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +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/channel-list.d.ts +1 -1
- package/dist/components/chat/channel-list.stories.d.ts +1 -2
- package/dist/components/chat/chat-avatar.d.ts +2 -2
- package/dist/components/chat/chat-avatar.stories.d.ts +1 -2
- package/dist/components/chat/chat-column.d.ts +1 -1
- package/dist/components/chat/chat-column.stories.d.ts +1 -2
- package/dist/components/chat/chat-composer.d.ts +1 -1
- package/dist/components/chat/chat-composer.stories.d.ts +1 -2
- package/dist/components/chat/chat.fixtures.d.ts +2 -2
- package/dist/components/chat/floating-chat.d.ts +2 -2
- package/dist/components/chat/floating-chat.stories.d.ts +2 -3
- package/dist/components/chat/floating-sheet.d.ts +1 -1
- package/dist/components/chat/floating-sheet.stories.d.ts +2 -3
- package/dist/components/chat/member-list.d.ts +3 -3
- package/dist/components/chat/message-list.d.ts +3 -3
- package/dist/components/chat/message.d.ts +4 -4
- package/dist/components/chat/message.stories.d.ts +1 -2
- package/dist/components/chat/progress-stepper.d.ts +2 -2
- package/dist/components/chat/rich-text.d.ts +1 -1
- package/dist/components/chat/rich-text.stories.d.ts +1 -2
- package/dist/components/chat/server-header.d.ts +1 -1
- package/dist/components/chat/thread-preview.d.ts +2 -2
- package/dist/components/chat/thread-preview.stories.d.ts +1 -2
- package/dist/components/chat/user-panel.d.ts +1 -1
- package/dist/components/chat/workspace-rail.d.ts +1 -1
- package/dist/components/chat/workspace-rail.stories.d.ts +1 -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/credenza.d.ts +1 -1
- 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 +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 +10 -1
- package/dist/components/list-row.stories.d.ts.map +1 -1
- package/dist/components/list.d.ts +34 -3
- 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 +61 -0
- package/dist/components/morph.d.ts.map +1 -0
- package/dist/components/morph.stories.d.ts +14 -0
- package/dist/components/morph.stories.d.ts.map +1 -0
- package/dist/components/motion.stories.d.ts +1 -1
- package/dist/components/navigation-stack.d.ts +9 -3
- package/dist/components/navigation-stack.d.ts.map +1 -1
- package/dist/components/navigation-stack.stories.d.ts +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-toolbar.d.ts +7 -4
- 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/pencilkit-annotator.d.ts +2 -2
- package/dist/components/pencilkit/pk-icon.d.ts +1 -1
- package/dist/components/pencilkit/stroke-path.d.ts +1 -1
- package/dist/components/pencilkit/use-pencil-history.d.ts +2 -2
- package/dist/components/pill-button.d.ts +1 -1
- package/dist/components/pill-button.stories.d.ts +1 -1
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.stories.d.ts +1 -1
- package/dist/components/progress-ring.d.ts +66 -0
- package/dist/components/progress-ring.d.ts.map +1 -0
- package/dist/components/progress-ring.stories.d.ts +15 -0
- package/dist/components/progress-ring.stories.d.ts.map +1 -0
- package/dist/components/progress.d.ts +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 +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 +1 -1
- package/dist/components/side-drawer.stories.d.ts +1 -1
- package/dist/components/sidebar.d.ts +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 +16 -3
- 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 +81 -10
- package/dist/components/split-view.d.ts.map +1 -1
- package/dist/components/split-view.stories.d.ts +28 -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 +8 -8
- package/dist/components/tab-view.d.ts.map +1 -1
- package/dist/components/tab-view.stories.d.ts +9 -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 +104 -0
- package/dist/components/toast.d.ts.map +1 -0
- package/dist/components/toast.stories.d.ts +13 -0
- package/dist/components/toast.stories.d.ts.map +1 -0
- package/dist/components/toggle-group.d.ts +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 +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 +111 -28
- 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/markdown.d.ts +2 -3
- package/dist/components/workbench/message-scroller.stories.d.ts +1 -2
- package/dist/components/workbench/model-picker.d.ts +3 -3
- package/dist/components/workbench/snap-sheet.stories.d.ts +1 -2
- package/dist/components/workbench/surfaces.d.ts +1 -1
- package/dist/components/workbench/surfaces.stories.d.ts +1 -2
- package/dist/components/workbench/terminal.d.ts +1 -1
- package/dist/components/workbench/terminal.stories.d.ts +1 -2
- package/dist/components/workbench/thread-sidebar.d.ts +1 -1
- package/dist/components/workbench/thread-sidebar.stories.d.ts +1 -2
- package/dist/components/workbench/wb-popover.d.ts +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 +3 -3
- package/dist/demos/pencilkit/demo-strokes.d.ts +1 -1
- package/dist/demos/pencilkit/pencilkit-demo.d.ts +2 -2
- package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts +1 -1
- package/dist/demos/sidebar-demo.d.ts +2 -2
- 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 +26 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9348 -5277
- package/dist/lib/chat/chat-icon.d.ts +1 -1
- package/dist/lib/chat/chat-shell-context.d.ts +1 -1
- package/dist/lib/chat/chat-tokens.d.ts +2 -2
- package/dist/lib/chat/chat-users.d.ts +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.d.ts +1298 -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 +1 -1
- package/dist/lib/qr.d.ts +28 -0
- package/dist/lib/qr.d.ts.map +1 -0
- package/dist/lib/sheet-drag.d.ts +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 +4 -4
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/workbench/icons.d.ts +1 -1
- package/dist/lib/workbench/motion.d.ts +2 -2
- 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 +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 +2 -2
- package/dist/templates/artifact-chat-container.stories.d.ts +2 -3
- package/dist/templates/chat-shell.d.ts +5 -5
- package/dist/templates/chat-shell.stories.d.ts +1 -2
- package/dist/templates/workbench-shell.d.ts +2 -2
- package/dist/templates/workbench-shell.stories.d.ts +1 -2
- package/package.json +3 -4
- package/dist/tsconfig.lib.tsbuildinfo +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pencil-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/pencilkit/pencil-toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAiB,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhG,OAAO,EAAwB,KAAK,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAInF,0GAA0G;AAC1G,eAAO,MAAM,wBAAwB;;8EAWpC,CAAC;AAEF,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,WAAW,EAAE,UA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,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACrC;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAa,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,gBAAgB,2CA4B1G;AAID,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC9E,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wCAAwC;AACxC,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,kBAAkB,2CAQnI"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComposerAnnotatorProps } from '../workbench/annotator';
|
|
2
2
|
/**
|
|
3
3
|
* The Composer's default image annotator, on PencilKit: a canvas over the image, and the tool / ink / undo bar
|
|
4
4
|
* under it so it never covers the image. Save flattens the strokes into the image. Every Composer and
|
|
5
5
|
* AnnotateLightbox uses it unless a `ComposerAnnotatorProvider` or `annotator` prop says otherwise.
|
|
6
6
|
*/
|
|
7
|
-
export declare function PencilKitAnnotator({ children }: ComposerAnnotatorProps): import(
|
|
7
|
+
export declare function PencilKitAnnotator({ children }: ComposerAnnotatorProps): import('react').ReactNode;
|
|
8
8
|
//# sourceMappingURL=pencilkit-annotator.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { PKIconName } from '../../lib/pencilkit/constants';
|
|
1
2
|
import * as React from 'react';
|
|
2
|
-
import { type PKIconName } from '../../lib/pencilkit/constants';
|
|
3
3
|
export interface PKIconProps extends React.SVGAttributes<SVGSVGElement> {
|
|
4
4
|
name: PKIconName;
|
|
5
5
|
size?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { PencilStroke } from '../../lib/pencilkit/constants';
|
|
1
2
|
import * as React from 'react';
|
|
2
|
-
import { type PencilStroke } from '../../lib/pencilkit/constants';
|
|
3
3
|
export declare function outlinePath(pts: number[][]): string;
|
|
4
4
|
export interface StrokePathProps {
|
|
5
5
|
st: PencilStroke;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { PencilStroke } from '../../lib/pencilkit/constants';
|
|
2
|
+
import { PencilStrokesChangeSource } from './pencil-canvas';
|
|
3
3
|
export interface PencilHistory {
|
|
4
4
|
strokes: PencilStroke[];
|
|
5
5
|
/** Wire to PencilCanvas `onStrokesChange`. A committed draw clears the redo stack. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DialogProps as AriaDialogProps, DialogTrigger, PopoverProps as AriaPopoverProps } from 'react-aria-components';
|
|
2
2
|
/** Opens the Popover/Dialog it wraps from its first pressable child. */
|
|
3
3
|
export declare const PopoverTrigger: typeof DialogTrigger;
|
|
4
4
|
export interface PopoverProps extends AriaPopoverProps {
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { ProgressBarProps } from 'react-aria-components';
|
|
3
|
+
type RingSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
declare const TONES: {
|
|
5
|
+
readonly default: "var(--bl-tint)";
|
|
6
|
+
readonly success: "var(--bl-green)";
|
|
7
|
+
readonly warning: "var(--bl-orange, #FF9F0A)";
|
|
8
|
+
readonly destructive: "var(--bl-red)";
|
|
9
|
+
};
|
|
10
|
+
export type ProgressRingTone = keyof typeof TONES;
|
|
11
|
+
export interface ProgressRingProps extends Omit<ProgressBarProps, 'children' | 'className' | 'style'> {
|
|
12
|
+
/** `sm` 20 · `md` 28 · `lg` 44 · `xl` 72 px, or a number of px. */
|
|
13
|
+
size?: RingSize | number;
|
|
14
|
+
/** Stroke width in px (defaults scale with the size). */
|
|
15
|
+
thickness?: number;
|
|
16
|
+
tone?: ProgressRingTone;
|
|
17
|
+
/** Any CSS color for the arc (overrides `tone`). */
|
|
18
|
+
color?: string;
|
|
19
|
+
/** Any CSS color for the track. */
|
|
20
|
+
trackColor?: string;
|
|
21
|
+
/** Show the percentage in the middle (rolling digits). Needs `md` or larger. */
|
|
22
|
+
showValue?: boolean;
|
|
23
|
+
/** Custom content in the middle (an icon, a stop button…). */
|
|
24
|
+
children?: ReactNode;
|
|
25
|
+
className?: string;
|
|
26
|
+
style?: CSSProperties;
|
|
27
|
+
}
|
|
28
|
+
export declare function ProgressRing({ size, thickness, tone, color, trackColor, showValue, children, className, style, ...props }: ProgressRingProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export interface CountdownRingProps {
|
|
30
|
+
/** Seconds left. */
|
|
31
|
+
remaining: number;
|
|
32
|
+
/** Seconds in a full period (default 30). */
|
|
33
|
+
duration?: number;
|
|
34
|
+
/** Turn the warning color at or below this many seconds (default 5; 0 never). */
|
|
35
|
+
warnAt?: number;
|
|
36
|
+
/** `sm` 20 · `md` 28 · `lg` 44 · `xl` 72 px, or a number of px. */
|
|
37
|
+
size?: RingSize | number;
|
|
38
|
+
thickness?: number;
|
|
39
|
+
/** The arc color while not warning (default the tint). */
|
|
40
|
+
color?: string;
|
|
41
|
+
/** The arc and label color while warning (default red). */
|
|
42
|
+
warnColor?: string;
|
|
43
|
+
trackColor?: string;
|
|
44
|
+
/** Seconds in the middle (default true when the ring is `md` or larger). */
|
|
45
|
+
showLabel?: boolean;
|
|
46
|
+
/** Accessible label; default "N seconds left". */
|
|
47
|
+
'aria-label'?: string;
|
|
48
|
+
className?: string;
|
|
49
|
+
style?: CSSProperties;
|
|
50
|
+
}
|
|
51
|
+
export declare function CountdownRing({ remaining, duration, warnAt, size, thickness, color, warnColor, trackColor, showLabel, className, style, 'aria-label': label, }: CountdownRingProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export interface UseCountdownOptions {
|
|
53
|
+
/** Running (default true). Pausing freezes the remaining time. */
|
|
54
|
+
running?: boolean;
|
|
55
|
+
/** Start again from `duration` when it reaches zero (default true: a TOTP-style period). */
|
|
56
|
+
loop?: boolean;
|
|
57
|
+
/** Called each time it reaches zero. */
|
|
58
|
+
onEnd?: () => void;
|
|
59
|
+
}
|
|
60
|
+
/** Whole seconds left in a `duration`-second countdown, ticking once a second. */
|
|
61
|
+
export declare function useCountdown(duration: number, { running, loop, onEnd }?: UseCountdownOptions): {
|
|
62
|
+
remaining: number;
|
|
63
|
+
reset: () => void;
|
|
64
|
+
};
|
|
65
|
+
export {};
|
|
66
|
+
//# sourceMappingURL=progress-ring.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-ring.d.ts","sourceRoot":"","sources":["../../src/components/progress-ring.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACxF,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAc3E,KAAK,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAO1C,QAAA,MAAM,KAAK;;;;;CAKD,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,KAAK,CAAC;AAgClD,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC;IACnG,mEAAmE;IACnE,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACzB,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC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,EAAE,SAAS,EAAE,KAAK,EAChH,YAAY,EAAE,KAAK,GACpB,EAAE,kBAAkB,2CAkCpB;AAED,MAAM,WAAW,mBAAmB;IAClC,kEAAkE;IAClE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4FAA4F;IAC5F,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,kFAAkF;AAClF,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,OAAc,EAAE,IAAW,EAAE,KAAK,EAAE,GAAE,mBAAwB;;;EAqB9G"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { ProgressRing } from './progress-ring';
|
|
3
|
+
declare const meta: Meta<typeof ProgressRing>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ProgressRing>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Variants: Story;
|
|
8
|
+
export declare const Dark: Story;
|
|
9
|
+
/** A stop button in the middle, like a download in the App Store. */
|
|
10
|
+
export declare const WithContent: Story;
|
|
11
|
+
/** Press the buttons: the arc springs and the digits roll. */
|
|
12
|
+
export declare const Interactive: Story;
|
|
13
|
+
/** `useCountdown` driving a verification-code ring (starts paused). */
|
|
14
|
+
export declare const LiveCountdown: Story;
|
|
15
|
+
//# sourceMappingURL=progress-ring.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-ring.stories.d.ts","sourceRoot":"","sources":["../../src/components/progress-ring.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAiB,YAAY,EAAgB,MAAM,iBAAiB,CAAC;AAK5E,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAKnC,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3C,eAAO,MAAM,OAAO,EAAE,KAAiD,CAAC;AAiCxE,eAAO,MAAM,QAAQ,EAAE,KAA6B,CAAC;AAErD,eAAO,MAAM,IAAI,EAAE,KAAqF,CAAC;AAEzG,qEAAqE;AACrE,eAAO,MAAM,WAAW,EAAE,KASzB,CAAC;AAeF,8DAA8D;AAC9D,eAAO,MAAM,WAAW,EAAE,KAAqC,CAAC;AAchE,uEAAuE;AACvE,eAAO,MAAM,aAAa,EAAE,KAAkC,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ProgressBarProps } from 'react-aria-components';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
export declare const progressVariants: (props?: ({
|
|
5
5
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
6
|
-
} & import(
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export declare const progressIndicatorVariants: (props?: ({
|
|
8
8
|
tone?: "destructive" | "success" | "default" | null | undefined;
|
|
9
|
-
} & import(
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
10
|
export interface ProgressProps extends ProgressBarProps, VariantProps<typeof progressVariants>, VariantProps<typeof progressIndicatorVariants> {
|
|
11
11
|
label?: ReactNode;
|
|
12
12
|
/** Show the formatted value opposite the label. */
|
|
@@ -1,10 +1,37 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { QRLevel } from '../lib/qr';
|
|
2
3
|
export interface QRSvgProps {
|
|
3
|
-
|
|
4
|
+
/** Text to encode (UTF-8, byte mode): a URL, a `WIFI:S:…;T:WPA;P:…;;` string, plain text… */
|
|
5
|
+
value?: string;
|
|
6
|
+
/** @deprecated Use `value`. Kept as an alias so existing callers keep working. */
|
|
7
|
+
seed?: string;
|
|
8
|
+
/** Rendered width/height in px (default 168). */
|
|
4
9
|
size?: number;
|
|
10
|
+
/** Error-correction level (default 'M'). Use 'Q'/'H' if the code may be partially covered or worn. */
|
|
11
|
+
level?: QRLevel;
|
|
12
|
+
/**
|
|
13
|
+
* Quiet zone around the code, in modules (default 0, so it sits flush inside a white card like the old
|
|
14
|
+
* decorative look). Scanners want 1–4 modules of light space around the code: either set `margin` or
|
|
15
|
+
* put the SVG on a light card with padding.
|
|
16
|
+
*/
|
|
17
|
+
margin?: number;
|
|
18
|
+
/** Colour of dark modules (default `currentColor`). Keep strong contrast against the background. */
|
|
19
|
+
color?: string;
|
|
20
|
+
/** Background fill (default none / transparent). */
|
|
21
|
+
background?: string;
|
|
22
|
+
/**
|
|
23
|
+
* iOS-style rounded module dots and rounded finder "eyes" (default true). Modules still fill ~85% of
|
|
24
|
+
* their cell and finder rings stay solid, so the code remains scannable. `false` renders square modules.
|
|
25
|
+
*/
|
|
26
|
+
rounded?: boolean;
|
|
27
|
+
/** Accessible label. When given the SVG is `role="img"` with a `<title>`; otherwise it is `aria-hidden`. */
|
|
28
|
+
title?: string;
|
|
5
29
|
className?: string;
|
|
6
30
|
style?: CSSProperties;
|
|
7
31
|
}
|
|
8
|
-
/**
|
|
9
|
-
|
|
32
|
+
/**
|
|
33
|
+
* A real, scannable QR code (byte mode, auto version, ECC L/M/Q/H) rendered as two `<path>`s: one for the
|
|
34
|
+
* data modules and one (even-odd) for the three finder patterns.
|
|
35
|
+
*/
|
|
36
|
+
export declare function QRSvg({ value, seed, size, level, margin, color, background, rounded, title, className, style, }: QRSvgProps): import("react/jsx-runtime").JSX.Element;
|
|
10
37
|
//# sourceMappingURL=qr-svg.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qr-svg.d.ts","sourceRoot":"","sources":["../../src/components/qr-svg.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"qr-svg.d.ts","sourceRoot":"","sources":["../../src/components/qr-svg.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAY,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAEnD,MAAM,WAAW,UAAU;IACzB,6FAA6F;IAC7F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sGAAsG;IACtG,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oGAAoG;IACpG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4GAA4G;IAC5G,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAwBD;;;GAGG;AACH,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,IAAI,EACJ,IAAU,EACV,KAAW,EACX,MAAU,EACV,KAAsB,EACtB,UAAU,EACV,OAAc,EACd,KAAK,EACL,SAAS,EACT,KAAK,GACN,EAAE,UAAU,2CA0DZ"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import { QRSvg } from './qr-svg';
|
|
3
3
|
declare const meta: Meta<typeof QRSvg>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof QRSvg>;
|
|
6
|
-
/**
|
|
6
|
+
/** A real, scannable QR code (point a phone camera at it). The white card provides the quiet zone. */
|
|
7
7
|
export declare const Default: Story;
|
|
8
|
+
/** Error-correction levels: higher levels survive more damage but need more modules. */
|
|
9
|
+
export declare const Levels: Story;
|
|
10
|
+
/** iOS-style rounded dots and eyes (default) vs classic square modules. */
|
|
11
|
+
export declare const RoundedVsSquare: Story;
|
|
12
|
+
/** Tinted modules on white, and light modules on a dark card (keep strong contrast either way). */
|
|
13
|
+
export declare const Colors: Story;
|
|
14
|
+
/** Small codes for different values (e.g. contact IDs). */
|
|
8
15
|
export declare const Seeds: Story;
|
|
9
16
|
//# sourceMappingURL=qr-svg.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qr-svg.stories.d.ts","sourceRoot":"","sources":["../../src/components/qr-svg.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"qr-svg.stories.d.ts","sourceRoot":"","sources":["../../src/components/qr-svg.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CAI5B,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAWpC,sGAAsG;AACtG,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,wFAAwF;AACxF,eAAO,MAAM,MAAM,EAAE,KAUpB,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,eAAe,EAAE,KAO7B,CAAC;AAEF,mGAAmG;AACnG,eAAO,MAAM,MAAM,EAAE,KAUpB,CAAC;AAEF,2DAA2D;AAC3D,eAAO,MAAM,KAAK,EAAE,KAUnB,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { RadioProps as AriaRadioProps, RadioGroupProps as AriaRadioGroupProps } from 'react-aria-components';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
export declare const radioGroupVariants: (props?: ({
|
|
4
4
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
5
|
-
} & import(
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export interface RadioGroupProps extends AriaRadioGroupProps {
|
|
7
7
|
}
|
|
8
8
|
export declare function RadioGroup({ className, orientation, onChange, ...props }: RadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare const radioVariants: (props?: import(
|
|
9
|
+
export declare const radioVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
10
10
|
export interface RadioProps extends AriaRadioProps, VariantProps<typeof radioVariants> {
|
|
11
11
|
}
|
|
12
12
|
export declare function Radio({ className, children, ...props }: RadioProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
export declare const scrollAreaVariants: (props?: ({
|
|
4
4
|
orientation?: "both" | "horizontal" | "vertical" | null | undefined;
|
|
5
|
-
} & import(
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export interface ScrollAreaProps extends ComponentProps<'div'>, VariantProps<typeof scrollAreaVariants> {
|
|
7
7
|
}
|
|
8
8
|
export declare function ScrollArea({ className, orientation, ...props }: ScrollAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
2
|
export interface SearchFieldProps {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/** Controlled query. */
|
|
4
|
+
value?: string;
|
|
5
|
+
/** Initial query when uncontrolled. */
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
/** Called with the new query on every keystroke, and with '' when cleared (button or Esc). */
|
|
8
|
+
onChange?: (value: string) => void;
|
|
9
|
+
/** Enter pressed. */
|
|
10
|
+
onSubmit?: (value: string) => void;
|
|
5
11
|
placeholder?: string;
|
|
12
|
+
autoFocus?: boolean;
|
|
6
13
|
'aria-label'?: string;
|
|
7
14
|
className?: string;
|
|
8
15
|
style?: CSSProperties;
|
|
9
16
|
}
|
|
10
|
-
/** iOS search field on react-aria's SearchField (Esc clears a non-empty query).
|
|
11
|
-
|
|
17
|
+
/** iOS search field on react-aria's SearchField (Esc clears a non-empty query). Controlled with
|
|
18
|
+
* `value` + `onChange`, or uncontrolled with `defaultValue`. */
|
|
19
|
+
export declare function SearchField({ value, defaultValue, onChange, onSubmit, placeholder, autoFocus, className, style, ...rest }: SearchFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
12
20
|
//# sourceMappingURL=search-field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-field.d.ts","sourceRoot":"","sources":["../../src/components/search-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"search-field.d.ts","sourceRoot":"","sources":["../../src/components/search-field.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAKrD,MAAM,WAAW,gBAAgB;IAC/B,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8FAA8F;IAC9F,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,qBAAqB;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED;iEACiE;AACjE,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EAAE,YAAiB,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAsB,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAC3G,EAAE,gBAAgB,2CAkBlB"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import { SearchField } from './search-field';
|
|
3
3
|
declare const meta: Meta<typeof SearchField>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof SearchField>;
|
|
6
6
|
export declare const Empty: Story;
|
|
7
7
|
export declare const WithQuery: Story;
|
|
8
|
+
/** Uncontrolled: `defaultValue` seeds the query, `onChange` / `onSubmit` report it. */
|
|
9
|
+
export declare const Uncontrolled: Story;
|
|
8
10
|
//# sourceMappingURL=search-field.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-field.stories.d.ts","sourceRoot":"","sources":["../../src/components/search-field.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAIlC,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAO1C,eAAO,MAAM,KAAK,EAAE,KAAkC,CAAC;AACvD,eAAO,MAAM,SAAS,EAAE,KAAiD,CAAC"}
|
|
1
|
+
{"version":3,"file":"search-field.stories.d.ts","sourceRoot":"","sources":["../../src/components/search-field.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAIlC,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAO1C,eAAO,MAAM,KAAK,EAAE,KAAkC,CAAC;AACvD,eAAO,MAAM,SAAS,EAAE,KAAiD,CAAC;AAE1E,uFAAuF;AACvF,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
/** The sliding selected card (react-aria's SelectionIndicator), shared by Segmented, Tabs and ToggleGroup. It sits
|
|
3
3
|
behind the labels (the group is `isolate`), and width/height transition too, so it resizes between unequal items. */
|
|
4
4
|
export declare const segmentIndicator = "absolute top-0 left-0 -z-1 size-full rounded-[inherit] bg-bl-card shadow-[0_1px_4px_rgba(0,0,0,.14)] transition-[translate,width,height] duration-spring-smooth ease-spring-smooth motion-reduce:transition-none";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ListBoxSection,
|
|
4
|
-
import {
|
|
1
|
+
import { ButtonProps as AriaButtonProps, SelectProps as AriaSelectProps, SelectValueProps } from 'react-aria-components';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
import { ListBoxSection, ListBoxItemProps, ListBoxProps } from './list-box';
|
|
4
|
+
import { PopoverProps } from './popover';
|
|
5
5
|
export interface SelectProps<T extends object, M extends 'single' | 'multiple' = 'single'> extends AriaSelectProps<T, M> {
|
|
6
6
|
}
|
|
7
7
|
export declare function Select<T extends object, M extends 'single' | 'multiple' = 'single'>({ className, onChange, ...props }: SelectProps<T, M>): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export declare const selectTriggerVariants: (props?: ({
|
|
9
9
|
variant?: "default" | "plain" | null | undefined;
|
|
10
10
|
size?: "default" | "sm" | null | undefined;
|
|
11
|
-
} & import(
|
|
11
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
12
|
export interface SelectTriggerProps extends Omit<AriaButtonProps, 'children'>, VariantProps<typeof selectTriggerVariants> {
|
|
13
13
|
/** Custom value rendering; defaults to <SelectValue />. */
|
|
14
14
|
children?: AriaButtonProps['children'];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SeparatorProps as AriaSeparatorProps } from 'react-aria-components';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
export declare const separatorVariants: (props?: ({
|
|
4
4
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
5
5
|
inset?: boolean | null | undefined;
|
|
6
|
-
} & import(
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export interface SeparatorProps extends Omit<AriaSeparatorProps, 'orientation'>, VariantProps<typeof separatorVariants> {
|
|
8
8
|
}
|
|
9
9
|
export declare function Separator({ className, orientation, inset, ...props }: SeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { DialogProps as AriaDialogProps, DialogTrigger, ModalOverlayProps } from 'react-aria-components';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
import { DialogBody, DialogClose, DialogDescription, DialogHeader, DialogTitle } from './dialog';
|
|
5
5
|
/** Opens the SheetContent it wraps from its first pressable child (react-aria's DialogTrigger). */
|
|
6
6
|
export declare const Sheet: typeof DialogTrigger;
|
|
7
7
|
export declare const sheetVariants: (props?: ({
|
|
8
8
|
side?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
9
|
-
} & import(
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
10
|
export interface SheetContentProps extends Omit<ModalOverlayProps, 'children' | 'className'>, VariantProps<typeof sheetVariants> {
|
|
11
11
|
children?: AriaDialogProps['children'];
|
|
12
12
|
className?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
1
2
|
import * as React from 'react';
|
|
2
|
-
import type { CSSProperties, ReactNode } from 'react';
|
|
3
3
|
/** Sidebar item icons: 24×24 stroke paths, keyed by name. */
|
|
4
4
|
export declare const SIDEBAR_ICONS: Record<string, string>;
|
|
5
5
|
export interface SidebarContextValue {
|
|
@@ -1,9 +1,27 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
export declare const skeletonVariants: (props?: ({
|
|
4
|
-
shape?: "text" | "circle" | "default" | null | undefined;
|
|
5
|
-
} & import(
|
|
4
|
+
shape?: "rounded" | "text" | "circle" | "rect" | "default" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export interface SkeletonProps extends ComponentProps<'div'>, VariantProps<typeof skeletonVariants> {
|
|
7
|
+
/** Width — a number is px. Classes work too. */
|
|
8
|
+
width?: number | string;
|
|
9
|
+
/** Height — a number is px. Classes work too. */
|
|
10
|
+
height?: number | string;
|
|
7
11
|
}
|
|
8
|
-
export declare function Skeleton({ className, shape, ...props }: SkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function Skeleton({ className, shape, width, height, style, ...props }: SkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export interface SkeletonTextProps extends Omit<ComponentProps<'div'>, 'children'> {
|
|
14
|
+
/** Number of lines (default 3). */
|
|
15
|
+
lines?: number;
|
|
16
|
+
/** Width of the last line, so the block reads as a paragraph (default `60%`; `100%` for a full line). */
|
|
17
|
+
lastLineWidth?: number | string;
|
|
18
|
+
/** Height of each bar in px (default the `text` shape's 14). */
|
|
19
|
+
lineHeight?: number;
|
|
20
|
+
/** Extra classes for each bar. */
|
|
21
|
+
lineClassName?: string;
|
|
22
|
+
/** Gap between lines in px (default 8). */
|
|
23
|
+
gap?: number;
|
|
24
|
+
}
|
|
25
|
+
/** A paragraph placeholder: `lines` text bars, the last one shorter. */
|
|
26
|
+
export declare function SkeletonText({ lines, lastLineWidth, lineHeight, lineClassName, gap, className, style, ...props }: SkeletonTextProps): import("react/jsx-runtime").JSX.Element;
|
|
9
27
|
//# sourceMappingURL=skeleton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../src/components/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../src/components/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAOlE,eAAO,MAAM,gBAAgB;;8EAmB5B,CAAC;AAEF,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,gBAAgB,CAAC;IACjG,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,2CAM3F;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAChF,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yGAAyG;IACzG,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,gEAAgE;IAChE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kCAAkC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2CAA2C;IAC3C,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wEAAwE;AACxE,wBAAgB,YAAY,CAAC,EAAE,KAAS,EAAE,aAAqB,EAAE,UAAU,EAAE,aAAa,EAAE,GAAO,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAUnJ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import { Skeleton } from './skeleton';
|
|
3
3
|
declare const meta: Meta<typeof Skeleton>;
|
|
4
4
|
export default meta;
|
|
@@ -6,4 +6,6 @@ type Story = StoryObj<typeof Skeleton>;
|
|
|
6
6
|
export declare const Default: Story;
|
|
7
7
|
export declare const ListRows: Story;
|
|
8
8
|
export declare const Dark: Story;
|
|
9
|
+
/** Every shape, plus a SkeletonText paragraph. */
|
|
10
|
+
export declare const Shapes: Story;
|
|
9
11
|
//# sourceMappingURL=skeleton.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.stories.d.ts","sourceRoot":"","sources":["../../src/components/skeleton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"skeleton.stories.d.ts","sourceRoot":"","sources":["../../src/components/skeleton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAgB,MAAM,YAAY,CAAC;AAIpD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAI/B,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEvC,eAAO,MAAM,OAAO,EAAE,KAA8C,CAAC;AAgBrE,eAAO,MAAM,QAAQ,EAAE,KAA8B,CAAC;AACtD,eAAO,MAAM,IAAI,EAAE,KAAsF,CAAC;AAE1G,kDAAkD;AAClD,eAAO,MAAM,MAAM,EAAE,KAapB,CAAC"}
|
|
@@ -1,11 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SliderProps as AriaSliderProps, SliderThumbProps, SliderTrackProps } from 'react-aria-components';
|
|
3
3
|
export interface SliderProps<T extends number | number[]> extends AriaSliderProps<T> {
|
|
4
4
|
label?: ReactNode;
|
|
5
5
|
/** Show the formatted value opposite the label. */
|
|
6
6
|
showValue?: boolean;
|
|
7
|
+
/** Color scheme of the track, fill and thumb. `default`: the tint on the fill color. `onDark`: translucent
|
|
8
|
+
white for media controls over artwork or dark glass (Music's scrubber and volume). `onLight`: translucent
|
|
9
|
+
black for light imagery. Fine-tune any of them with `trackColor` / `fillColor` / `thumbColor`. */
|
|
10
|
+
tone?: SliderTone;
|
|
11
|
+
/** `default`: the 26px iOS thumb. `sm`: a 12px thumb on a 20px-tall hit area that grows while dragging (scrubbers). */
|
|
12
|
+
size?: 'default' | 'sm';
|
|
13
|
+
/** Any CSS color for the unfilled track. */
|
|
14
|
+
trackColor?: string;
|
|
15
|
+
/** Any CSS color for the filled part. */
|
|
16
|
+
fillColor?: string;
|
|
17
|
+
/** Any CSS color for the thumb. */
|
|
18
|
+
thumbColor?: string;
|
|
7
19
|
}
|
|
8
|
-
export
|
|
20
|
+
export type SliderTone = 'default' | 'onDark' | 'onLight';
|
|
21
|
+
export declare function Slider<T extends number | number[]>({ className, label, showValue, children, onChange, minValue, maxValue, step, tone, size, trackColor, fillColor, thumbColor, style, ...props }: SliderProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
9
22
|
/** 28px hit area with the 4px track and tint fill inside; inset by half a thumb so the thumb never overhangs
|
|
10
23
|
(like a native range). Children are the thumbs. */
|
|
11
24
|
export declare function SliderTrack({ className, children, ...props }: SliderTrackProps): import("react/jsx-runtime").JSX.Element;
|