@ag2/weave 0.5.1 → 0.6.0-direction-d.2
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/DIRECTION_D_PREVIEW.json +6 -0
- package/MATERIAL-SYMBOLS-LICENSE.txt +202 -0
- package/dist/components/activity-card/ActivityCard.d.ts +26 -0
- package/dist/components/activity-card/index.d.ts +1 -0
- package/dist/components/avatar/Avatar.css.d.ts +25 -0
- package/dist/components/avatar/Avatar.d.ts +2 -1
- package/dist/components/badge/Badge.css.d.ts +2 -0
- package/dist/components/badge/Badge.d.ts +1 -1
- package/dist/components/banner/Banner.d.ts +14 -0
- package/dist/components/banner/index.d.ts +1 -0
- package/dist/components/box/Box.css.d.ts +9 -0
- package/dist/components/box/Box.d.ts +1 -1
- package/dist/components/button/Button.css.d.ts +3 -1
- package/dist/components/button/Button.d.ts +1 -1
- package/dist/components/button-group/ButtonGroup.css.d.ts +2 -0
- package/dist/components/button-group/ButtonGroup.d.ts +16 -0
- package/dist/components/button-group/index.d.ts +1 -0
- package/dist/components/call/Call.css.d.ts +18 -0
- package/dist/components/call/Call.d.ts +46 -0
- package/dist/components/call/CallMicrophoneButton.d.ts +15 -0
- package/dist/components/call/index.d.ts +2 -0
- package/dist/components/card/Card.css.d.ts +2 -0
- package/dist/components/card/Card.d.ts +32 -0
- package/dist/components/card/index.d.ts +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +1 -0
- package/dist/components/chip/Chip.css.d.ts +3 -1
- package/dist/components/chip/Chip.d.ts +1 -1
- package/dist/components/composer/Composer.css.d.ts +22 -0
- package/dist/components/composer/Composer.d.ts +41 -0
- package/dist/components/composer/index.d.ts +1 -0
- package/dist/components/content-card/ContentCard.css.d.ts +3 -0
- package/dist/components/content-card/ContentCard.d.ts +37 -0
- package/dist/components/content-card/index.d.ts +1 -0
- package/dist/components/date-time/DateTime.d.ts +17 -0
- package/dist/components/date-time/index.d.ts +1 -0
- package/dist/components/dialog-frame/DialogFrame.css.d.ts +2 -0
- package/dist/components/dialog-frame/DialogFrame.d.ts +17 -0
- package/dist/components/dialog-frame/index.d.ts +1 -0
- package/dist/components/dock/Dock.css.d.ts +5 -0
- package/dist/components/dock/Dock.d.ts +14 -0
- package/dist/components/dock/index.d.ts +1 -0
- package/dist/components/file-attachment/FileAttachment.css.d.ts +1 -0
- package/dist/components/file-attachment/FileAttachment.d.ts +10 -0
- package/dist/components/file-attachment/index.d.ts +1 -0
- package/dist/components/floating-toolbar/FloatingToolbar.css.d.ts +1 -0
- package/dist/components/floating-toolbar/FloatingToolbar.d.ts +14 -0
- package/dist/components/floating-toolbar/index.d.ts +1 -0
- package/dist/components/folder-field/FolderField.d.ts +12 -0
- package/dist/components/folder-field/index.d.ts +1 -0
- package/dist/components/icon/Icons.d.ts +1 -1
- package/dist/components/icon-button/IconButton.css.d.ts +2 -0
- package/dist/components/icon-button/IconButton.d.ts +1 -1
- package/dist/components/identity/Identity.css.d.ts +32 -0
- package/dist/components/identity/Identity.d.ts +58 -0
- package/dist/components/identity/IdentityLists.d.ts +22 -0
- package/dist/components/identity/index.d.ts +2 -0
- package/dist/components/index.d.ts +32 -0
- package/dist/components/input/Input.css.d.ts +2 -0
- package/dist/components/input/Input.d.ts +1 -1
- package/dist/components/list-row/ListRow.css.d.ts +2 -0
- package/dist/components/list-row/ListRow.d.ts +11 -0
- package/dist/components/list-row/index.d.ts +1 -0
- package/dist/components/menu/MenuItem.css.d.ts +2 -0
- package/dist/components/menu/MenuItem.d.ts +1 -1
- package/dist/components/menu-button/MenuButton.css.d.ts +1 -0
- package/dist/components/menu-button/MenuButton.d.ts +31 -0
- package/dist/components/menu-button/index.d.ts +1 -0
- package/dist/components/motion/Motion.css.d.ts +3 -0
- package/dist/components/motion/Motion.d.ts +9 -0
- package/dist/components/motion/index.d.ts +1 -0
- package/dist/components/nav/Nav.css.d.ts +31 -0
- package/dist/components/nav/Nav.d.ts +52 -0
- package/dist/components/nav/index.d.ts +1 -0
- package/dist/components/page/Page.d.ts +1 -1
- package/dist/components/page/style.css.d.ts +2 -2
- package/dist/components/page-state/EmptyState.d.ts +12 -0
- package/dist/components/page-state/ErrorState.d.ts +9 -0
- package/dist/components/page-state/LoadingState.d.ts +5 -0
- package/dist/components/page-state/PageState.css.d.ts +3 -0
- package/dist/components/page-state/PageTitleHeader.d.ts +13 -0
- package/dist/components/page-state/index.d.ts +4 -0
- package/dist/components/password-input/PasswordInput.d.ts +7 -0
- package/dist/components/password-input/index.d.ts +1 -0
- package/dist/components/person-avatar/PersonAvatar.d.ts +6 -0
- package/dist/components/person-avatar/index.d.ts +1 -0
- package/dist/components/pill/Pill.d.ts +11 -0
- package/dist/components/pill/index.d.ts +1 -0
- package/dist/components/pop-out/PopOut.css.d.ts +1 -0
- package/dist/components/power/Power.css.d.ts +1 -0
- package/dist/components/power/Power.d.ts +24 -0
- package/dist/components/power/index.d.ts +1 -0
- package/dist/components/presence/Presence.css.d.ts +39 -0
- package/dist/components/presence/Presence.d.ts +20 -0
- package/dist/components/presence/index.d.ts +1 -0
- package/dist/components/progress-bar/ProgressBar.css.d.ts +2 -0
- package/dist/components/progress-bar/ProgressBar.d.ts +1 -1
- package/dist/components/scroll/Scroll.d.ts +1 -1
- package/dist/components/select/Select.css.d.ts +3 -0
- package/dist/components/select/Select.d.ts +21 -0
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/sequence-card/SequenceCard.d.ts +2 -2
- package/dist/components/sequence-card/style.css.d.ts +18 -2
- package/dist/components/settings-shell/SettingsShell.css.d.ts +6 -0
- package/dist/components/settings-shell/SettingsShell.d.ts +31 -0
- package/dist/components/settings-shell/index.d.ts +1 -0
- package/dist/components/sidebar/Sidebar.css.d.ts +2 -2
- package/dist/components/sidebar/SidebarItem.d.ts +2 -1
- package/dist/components/skeleton/Skeleton.css.d.ts +28 -0
- package/dist/components/skeleton/Skeleton.d.ts +10 -0
- package/dist/components/skeleton/index.d.ts +1 -0
- package/dist/components/spinner/Spinner.css.d.ts +5 -0
- package/dist/components/spinner/Spinner.d.ts +1 -0
- package/dist/components/split-button/SplitButton.css.d.ts +4 -0
- package/dist/components/split-button/SplitButton.d.ts +16 -0
- package/dist/components/split-button/index.d.ts +1 -0
- package/dist/components/tab-bar/TabBar.d.ts +12 -0
- package/dist/components/tab-bar/index.d.ts +1 -0
- package/dist/components/text/Text.css.d.ts +15 -0
- package/dist/components/text/Text.d.ts +1 -1
- package/dist/components/text-area/TextArea.css.d.ts +2 -3
- package/dist/components/text-area/TextArea.d.ts +1 -1
- package/dist/components/timeline/Timeline.css.d.ts +24 -0
- package/dist/components/timeline/Timeline.d.ts +51 -0
- package/dist/components/timeline/index.d.ts +1 -0
- package/dist/components/tooltip/Hint.d.ts +13 -0
- package/dist/components/tooltip/Tooltip.css.d.ts +2 -0
- package/dist/components/tooltip/Tooltip.d.ts +1 -1
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/typing-indicator/TypingIndicator.css.d.ts +7 -0
- package/dist/components/unread-badge/UnreadBadge.css.d.ts +2 -0
- package/dist/components/unread-badge/UnreadBadge.d.ts +13 -0
- package/dist/components/unread-badge/index.d.ts +1 -0
- package/dist/components/variant.css.d.ts +2 -0
- package/dist/components/wavy-progress/WavyProgress.css.d.ts +3 -0
- package/dist/components/wavy-progress/WavyProgress.d.ts +8 -0
- package/dist/components/wavy-progress/index.d.ts +1 -0
- package/dist/index.js +5854 -4497
- package/dist/index.js.map +1 -1
- package/dist/style.css +1671 -609
- package/dist/styles/ContainerColor.css.d.ts +1 -0
- package/dist/theme/color.css.d.ts +1 -0
- package/dist/theme/config.css.d.ts +23 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/review.css.d.ts +115 -0
- package/dist/utils/rovingFocus.d.ts +3 -0
- package/package.json +11 -75
- package/CHANGELOG.md +0 -239
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { ListRowProps } from "../list-row";
|
|
3
|
+
export declare const NavItem: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, {
|
|
4
|
+
variant?: "Background" | "Surface" | "SurfaceVariant" | "Primary" | "Secondary" | "Success" | "Warning" | "Critical" | undefined;
|
|
5
|
+
radii?: "0" | "300" | "400" | "500" | "600" | "700" | "Pill" | "Inherit" | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
highlight?: boolean | undefined;
|
|
8
|
+
active?: boolean | undefined;
|
|
9
|
+
}>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
10
|
+
/** Polymorphic so routers can supply their own link without a library dependency. */
|
|
11
|
+
export declare const NavLink: <T extends React.ElementType<any> = "a">(props: import("..").AsOutProps<T, object>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
12
|
+
export declare const NavButton: <T extends React.ElementType<any> = "button">(props: import("..").AsOutProps<T, object>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
13
|
+
export declare const NavItemContent: <T extends React.ElementType<any> = "span">(props: import("..").AsOutProps<T, Omit<any, "as"> & {
|
|
14
|
+
size?: "D400" | "H1" | "H2" | "H3" | "H4" | "H5" | "H6" | "T500" | "T400" | "T300" | "T200" | "B500" | "B400" | "B300" | "L400" | "LabelMono" | "O400" | "C400" | "Inherit" | "Metadata" | undefined;
|
|
15
|
+
align?: "Right" | "Left" | "Center" | "Justify" | undefined;
|
|
16
|
+
truncate?: boolean | undefined;
|
|
17
|
+
priority?: "300" | "400" | "500" | "Inherit" | "Initial" | undefined;
|
|
18
|
+
} & import("..").AsProp<React.ElementType<any>>>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
19
|
+
export declare const NavItemOptions: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, Omit<any, "as"> & {
|
|
20
|
+
display?: "Flex" | "InlineFlex" | undefined;
|
|
21
|
+
direction?: "Inherit" | "Row" | "RowReverse" | "Column" | "ColumnReverse" | undefined;
|
|
22
|
+
wrap?: "Inherit" | "NoWrap" | "Wrap" | "WrapReverse" | undefined;
|
|
23
|
+
justifyContent?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | "SpaceBetween" | "SpaceAround" | "SpaceEvenly" | undefined;
|
|
24
|
+
justifyItems?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
25
|
+
justifySelf?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
26
|
+
alignContent?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | "SpaceBetween" | "SpaceAround" | "SpaceEvenly" | undefined;
|
|
27
|
+
alignItems?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
28
|
+
alignSelf?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
29
|
+
gap?: "0" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "Inherit" | "50" | "250" | undefined;
|
|
30
|
+
grow?: "No" | "Yes" | undefined;
|
|
31
|
+
shrink?: "No" | "Yes" | undefined;
|
|
32
|
+
basis?: "No" | "Yes" | undefined;
|
|
33
|
+
} & import("..").AsProp<React.ElementType<any>>>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
34
|
+
export declare const NavCategory: <T extends React.ElementType<any> = "section">(props: import("..").AsOutProps<T, {
|
|
35
|
+
title?: string | undefined;
|
|
36
|
+
after?: ReactNode;
|
|
37
|
+
}>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
38
|
+
export declare type NavHeaderProps = {
|
|
39
|
+
title: ReactNode;
|
|
40
|
+
before?: ReactNode;
|
|
41
|
+
after?: ReactNode;
|
|
42
|
+
};
|
|
43
|
+
export declare const NavHeader: ({ title, before, after }: NavHeaderProps) => JSX.Element;
|
|
44
|
+
export declare type RoomListItemProps = Omit<ListRowProps, "after"> & {
|
|
45
|
+
active?: boolean;
|
|
46
|
+
unread?: boolean;
|
|
47
|
+
/** Non-interactive status displayed inside the main action. */
|
|
48
|
+
status?: ReactNode;
|
|
49
|
+
/** Independent actions are siblings of the link/button, never nested inside it. */
|
|
50
|
+
after?: ReactNode;
|
|
51
|
+
};
|
|
52
|
+
export declare const RoomListItem: <T extends React.ElementType<any> = "button">(props: import("..").AsOutProps<T, RoomListItemProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Nav";
|
|
@@ -38,7 +38,7 @@ export declare const PageHeroSection: <T extends React.ElementType<any> = "div">
|
|
|
38
38
|
alignContent?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | "SpaceBetween" | "SpaceAround" | "SpaceEvenly" | undefined;
|
|
39
39
|
alignItems?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
40
40
|
alignSelf?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
41
|
-
gap?: "0" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "Inherit" | undefined;
|
|
41
|
+
gap?: "0" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "Inherit" | "50" | "250" | undefined;
|
|
42
42
|
grow?: "No" | "Yes" | undefined;
|
|
43
43
|
shrink?: "No" | "Yes" | undefined;
|
|
44
44
|
basis?: "No" | "Yes" | undefined;
|
|
@@ -17,7 +17,7 @@ export declare const PageNavResizeHandle: string;
|
|
|
17
17
|
export declare const PageNavHeader: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
18
18
|
outlined: {
|
|
19
19
|
true: {
|
|
20
|
-
|
|
20
|
+
boxShadow: `inset 0 -1px var(--${string})` | `inset 0 -1px var(--${string}, ${string})` | `inset 0 -1px var(--${string}, ${number})`;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
}>;
|
|
@@ -36,7 +36,7 @@ export declare const PageHeader: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
36
36
|
};
|
|
37
37
|
outlined: {
|
|
38
38
|
true: {
|
|
39
|
-
|
|
39
|
+
boxShadow: `inset 0 -1px var(--${string})` | `inset 0 -1px var(--${string}, ${string})` | `inset 0 -1px var(--${string}, ${number})`;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export declare type EmptyStateProps = {
|
|
3
|
+
icon: ReactNode;
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
subTitle: ReactNode;
|
|
6
|
+
/** Actions under the copy — a primary button, a pair of links. */
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
/** Drop the height floor, for a docked panel. */
|
|
9
|
+
compact?: boolean;
|
|
10
|
+
};
|
|
11
|
+
/** The hero a page shows when it has nothing to list: icon, title, sub-title, actions. */
|
|
12
|
+
export declare const EmptyState: ({ icon, title, subTitle, children, compact }: EmptyStateProps) => JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare type ErrorStateProps = {
|
|
2
|
+
title: string;
|
|
3
|
+
description: string;
|
|
4
|
+
/** Label of the retry button. */
|
|
5
|
+
retry?: string;
|
|
6
|
+
onRetry?: () => void;
|
|
7
|
+
};
|
|
8
|
+
/** A centred error with a retry, as pages show when a request fails. */
|
|
9
|
+
export declare const ErrorState: ({ title, description, retry, onRetry }: ErrorStateProps) => JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export declare type PageTitleHeaderProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
/** Before the title — a room avatar, a section icon. */
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
/** Trailing actions, right-aligned. */
|
|
7
|
+
after?: ReactNode;
|
|
8
|
+
/** Show the back arrow; narrow layouts push instead of splitting. */
|
|
9
|
+
back?: boolean;
|
|
10
|
+
onBack?: () => void;
|
|
11
|
+
};
|
|
12
|
+
/** A page-level header: back arrow, icon, title, trailing actions. */
|
|
13
|
+
export declare const PageTitleHeader: ({ title, icon, after, back, onBack }: PageTitleHeaderProps) => JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React, { ComponentProps } from "react";
|
|
2
|
+
import { Input } from "../input";
|
|
3
|
+
export declare type PasswordInputProps = Omit<ComponentProps<typeof Input>, "type"> & {
|
|
4
|
+
revealLabel?: string;
|
|
5
|
+
concealLabel?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const PasswordInput: React.ForwardRefExoticComponent<Pick<PasswordInputProps, "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "as" | "children" | "className" | "color" | "height" | "id" | "lang" | "max" | "media" | "method" | "min" | "name" | "target" | "width" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "list" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "download" | "hrefLang" | "rel" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "dateTime" | "open" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "sizes" | "srcSet" | "async" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "size" | "step" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "integrity" | "charSet" | "content" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "start" | "selected" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "rows" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "wrap" | "default" | "kind" | "srcLang" | "poster" | "after" | "radii" | "variant" | "before" | "outlined" | "inputSize" | "revealLabel" | "concealLabel"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PasswordInput";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IdentityAvatarProps } from "../identity/Identity";
|
|
2
|
+
export declare type PersonAvatarProps = Omit<IdentityAvatarProps, "kind" | "fallback" | "busy"> & {
|
|
3
|
+
agent?: boolean;
|
|
4
|
+
};
|
|
5
|
+
/** Legacy agent avatars remain glyph-only; AgentAvatar also accepts uploaded photos. */
|
|
6
|
+
export declare const PersonAvatar: ({ agent, src, radii, ...props }: PersonAvatarProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PersonAvatar";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare type PillProps = {
|
|
2
|
+
label: string;
|
|
3
|
+
/** Renders pressed (Primary) and sets aria-pressed. */
|
|
4
|
+
active?: boolean;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* A pill-shaped toggle chip: join rules, filters, and tab-like choices that
|
|
9
|
+
* are not routes. It is a toggle, so it reports its state with aria-pressed.
|
|
10
|
+
*/
|
|
11
|
+
export declare const Pill: ({ label, active, onClick }: PillProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Pill";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Icon: string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { Select } from "../select";
|
|
3
|
+
import { MainColor } from "../types";
|
|
4
|
+
export declare type PowerOption = {
|
|
5
|
+
value: number;
|
|
6
|
+
label: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare type PowerSelectorProps = Omit<ComponentProps<typeof Select>, "options" | "value" | "onValueChange" | "onChange"> & {
|
|
10
|
+
options: PowerOption[];
|
|
11
|
+
value: number;
|
|
12
|
+
onValueChange: (value: number) => void;
|
|
13
|
+
};
|
|
14
|
+
export declare const PowerSelector: ({ options, value, onValueChange, ...props }: PowerSelectorProps) => JSX.Element;
|
|
15
|
+
export declare const PowerBadge: ({ label, level, variant, }: {
|
|
16
|
+
label: string;
|
|
17
|
+
level?: number | undefined;
|
|
18
|
+
variant?: MainColor | undefined;
|
|
19
|
+
}) => JSX.Element;
|
|
20
|
+
export declare const PowerIcon: ({ name, imageSrc, children, }: {
|
|
21
|
+
name: string;
|
|
22
|
+
imageSrc?: string | undefined;
|
|
23
|
+
children?: string | undefined;
|
|
24
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Power";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const AvatarPresence: string;
|
|
2
|
+
export declare const BadgeFrame: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
3
|
+
variant: {
|
|
4
|
+
Background: {
|
|
5
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
6
|
+
};
|
|
7
|
+
Surface: {
|
|
8
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
9
|
+
};
|
|
10
|
+
SurfaceVariant: {
|
|
11
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
12
|
+
};
|
|
13
|
+
Primary: {
|
|
14
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
15
|
+
};
|
|
16
|
+
Secondary: {
|
|
17
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
18
|
+
};
|
|
19
|
+
Success: {
|
|
20
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
21
|
+
};
|
|
22
|
+
Warning: {
|
|
23
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
24
|
+
};
|
|
25
|
+
Critical: {
|
|
26
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
animate: {
|
|
30
|
+
true: {
|
|
31
|
+
animation: `${string} 2.8s var(--${string}) infinite` | `${string} 2.8s var(--${string}, ${string}) infinite` | `${string} 2.8s var(--${string}, ${number}) infinite`;
|
|
32
|
+
"@media": {
|
|
33
|
+
"(prefers-reduced-motion: reduce)": {
|
|
34
|
+
animation: "none";
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { ContainerColor, MainColor } from "../types";
|
|
3
|
+
export declare type Presence = "online" | "unavailable" | "offline";
|
|
4
|
+
export declare type PresenceBadgeProps = {
|
|
5
|
+
presence: Presence;
|
|
6
|
+
status?: string;
|
|
7
|
+
/** Localised presence label. Status text is appended when supplied. */
|
|
8
|
+
label?: string;
|
|
9
|
+
size?: "200" | "300" | "400" | "500";
|
|
10
|
+
variantOverride?: MainColor;
|
|
11
|
+
glyph?: ReactNode;
|
|
12
|
+
};
|
|
13
|
+
/** A named image, with no tooltip id or network/state dependency. */
|
|
14
|
+
export declare const PresenceBadge: <T extends React.ElementType<any> = "span">(props: import("../types").AsOutProps<T, PresenceBadgeProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
15
|
+
export declare type AvatarPresenceProps = {
|
|
16
|
+
badge?: ReactNode;
|
|
17
|
+
variant?: ContainerColor;
|
|
18
|
+
animate?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare const AvatarPresence: <T extends React.ElementType<any> = "span">(props: import("../types").AsOutProps<T, AvatarPresenceProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Presence";
|
|
@@ -8,7 +8,7 @@ export declare const ProgressBar: <T extends React.ElementType<any> = "span">(pr
|
|
|
8
8
|
size?: "300" | "400" | "500" | undefined;
|
|
9
9
|
variant?: "Primary" | "Secondary" | "Success" | "Warning" | "Critical" | undefined;
|
|
10
10
|
fill?: "Solid" | "Soft" | "None" | undefined;
|
|
11
|
-
radii?: "0" | "300" | "400" | "500" | "Pill" | "Inherit" | undefined;
|
|
11
|
+
radii?: "0" | "300" | "400" | "500" | "600" | "700" | "Pill" | "Inherit" | undefined;
|
|
12
12
|
outlined?: boolean | undefined;
|
|
13
13
|
}>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
14
14
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export declare const Scroll: <T extends React.ElementType<any> = "div">(props: Omit<React.PropsWithChildren<React.ComponentPropsWithRef<T>>, "as"> & {
|
|
3
3
|
variant?: "Background" | "Surface" | "SurfaceVariant" | "Primary" | "Secondary" | "Success" | "Warning" | "Critical" | undefined;
|
|
4
|
-
visibility?: "
|
|
4
|
+
visibility?: "Hover" | "Always" | undefined;
|
|
5
5
|
hideTrack?: boolean | undefined;
|
|
6
6
|
size?: "0" | "300" | "400" | undefined;
|
|
7
7
|
direction?: "Horizontal" | "Vertical" | "Both" | undefined;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { SelectHTMLAttributes } from "react";
|
|
2
|
+
import * as inputCss from "../input/Input.css";
|
|
3
|
+
export declare type SelectOption = {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare type SelectProps = Omit<SelectHTMLAttributes<HTMLSelectElement>, "size" | "children"> & inputCss.InputVariants & {
|
|
9
|
+
options: SelectOption[];
|
|
10
|
+
onValueChange?: (value: string) => void;
|
|
11
|
+
};
|
|
12
|
+
/** A native choice field: keyboard navigation, touch picker and form submission stay native. */
|
|
13
|
+
export declare const Select: React.ForwardRefExoticComponent<Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "children" | "size"> & {
|
|
14
|
+
variant?: "Background" | "Surface" | "SurfaceVariant" | "Primary" | "Secondary" | "Success" | "Warning" | "Critical" | undefined;
|
|
15
|
+
size?: "300" | "400" | "500" | undefined;
|
|
16
|
+
outlined?: boolean | undefined;
|
|
17
|
+
radii?: "0" | "300" | "400" | "500" | "600" | "700" | "Pill" | "Inherit" | undefined;
|
|
18
|
+
} & {
|
|
19
|
+
options: SelectOption[];
|
|
20
|
+
onValueChange?: ((value: string) => void) | undefined;
|
|
21
|
+
} & React.RefAttributes<HTMLSelectElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Select";
|
|
@@ -9,14 +9,14 @@ export declare const SequenceCard: <T extends React.ElementType<any> = "div">(pr
|
|
|
9
9
|
alignContent?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | "SpaceBetween" | "SpaceAround" | "SpaceEvenly" | undefined;
|
|
10
10
|
alignItems?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
11
11
|
alignSelf?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
12
|
-
gap?: "0" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "Inherit" | undefined;
|
|
12
|
+
gap?: "0" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "Inherit" | "50" | "250" | undefined;
|
|
13
13
|
grow?: "No" | "Yes" | undefined;
|
|
14
14
|
shrink?: "No" | "Yes" | undefined;
|
|
15
15
|
basis?: "No" | "Yes" | undefined;
|
|
16
16
|
} & import("..").AsProp<React.ElementType<any>> & {
|
|
17
17
|
variant?: "Background" | "Surface" | "SurfaceVariant" | "Primary" | "Secondary" | "Success" | "Warning" | "Critical" | undefined;
|
|
18
18
|
} & {
|
|
19
|
-
radii?: "0" | "300" | "400" | "500" | undefined;
|
|
19
|
+
radii?: "0" | "300" | "400" | "500" | "600" | "700" | undefined;
|
|
20
20
|
outlined?: boolean | undefined;
|
|
21
21
|
mergeBorder?: boolean | undefined;
|
|
22
22
|
}>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -21,6 +21,16 @@ export declare const SequenceCard: import("@vanilla-extract/recipes").RuntimeFn<
|
|
|
21
21
|
[x: string]: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
+
"600": {
|
|
25
|
+
vars: {
|
|
26
|
+
[x: string]: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
"700": {
|
|
30
|
+
vars: {
|
|
31
|
+
[x: string]: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
24
34
|
};
|
|
25
35
|
outlined: {
|
|
26
36
|
true: {
|
|
@@ -31,10 +41,16 @@ export declare const SequenceCard: import("@vanilla-extract/recipes").RuntimeFn<
|
|
|
31
41
|
};
|
|
32
42
|
mergeBorder: {
|
|
33
43
|
true: {
|
|
34
|
-
|
|
44
|
+
marginBottom: `calc(-1 * var(--${string}))` | `calc(-1 * var(--${string}, ${string}))` | `calc(-1 * var(--${string}, ${number}))`;
|
|
35
45
|
selectors: {
|
|
36
46
|
"&:last-child, &:not(:has(+&))": {
|
|
37
|
-
|
|
47
|
+
marginBottom: number;
|
|
48
|
+
};
|
|
49
|
+
'&[data-last-child="false"]': {
|
|
50
|
+
marginBottom: `calc(-1 * var(--${string}))` | `calc(-1 * var(--${string}, ${string}))` | `calc(-1 * var(--${string}, ${number}))`;
|
|
51
|
+
};
|
|
52
|
+
'&[data-last-child="true"]': {
|
|
53
|
+
marginBottom: number;
|
|
38
54
|
};
|
|
39
55
|
};
|
|
40
56
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export declare type NavSection = {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare type SectionNavProps = {
|
|
9
|
+
header: ReactNode;
|
|
10
|
+
sections: NavSection[];
|
|
11
|
+
active: string;
|
|
12
|
+
onSelect?: (id: string) => void;
|
|
13
|
+
onClose?: () => void;
|
|
14
|
+
label?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const SectionNav: ({ header, sections, active, onSelect, onClose, label, }: SectionNavProps) => JSX.Element;
|
|
17
|
+
export declare type SettingsPageProps = {
|
|
18
|
+
title: string;
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
after?: ReactNode;
|
|
21
|
+
onBack?: () => void;
|
|
22
|
+
};
|
|
23
|
+
export declare const SettingsPage: ({ title, children, after, onBack }: SettingsPageProps) => JSX.Element;
|
|
24
|
+
export declare type SettingsShellProps = SettingsPageProps & {
|
|
25
|
+
nav: ReactNode;
|
|
26
|
+
/** The consuming layout decides when the two columns no longer fit. */
|
|
27
|
+
compact?: boolean;
|
|
28
|
+
/** Controlled mobile navigation; routing and history stay with the consumer. */
|
|
29
|
+
navigationVisible?: boolean;
|
|
30
|
+
};
|
|
31
|
+
export declare const SettingsShell: ({ nav, compact, navigationVisible, ...pageProps }: SettingsShellProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SettingsShell";
|
|
@@ -51,7 +51,7 @@ export declare const SidebarAvatar: import("@vanilla-extract/recipes").RuntimeFn
|
|
|
51
51
|
};
|
|
52
52
|
outlined: {
|
|
53
53
|
true: {
|
|
54
|
-
|
|
54
|
+
boxShadow: `inset 0 0 0 var(--${string}) var(--${string})` | `inset 0 0 0 var(--${string}) var(--${string}, ${string})` | `inset 0 0 0 var(--${string}) var(--${string}, ${number})` | `inset 0 0 0 var(--${string}, ${string}) var(--${string})` | `inset 0 0 0 var(--${string}, ${string}) var(--${string}, ${string})` | `inset 0 0 0 var(--${string}, ${string}) var(--${string}, ${number})` | `inset 0 0 0 var(--${string}, ${number}) var(--${string})` | `inset 0 0 0 var(--${string}, ${number}) var(--${string}, ${string})` | `inset 0 0 0 var(--${string}, ${number}) var(--${string}, ${number})`;
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
57
|
}>;
|
|
@@ -59,7 +59,7 @@ export declare type SidebarAvatarVariants = RecipeVariants<typeof SidebarAvatar>
|
|
|
59
59
|
export declare const SidebarFolder: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
60
60
|
state: {
|
|
61
61
|
Close: {
|
|
62
|
-
gap: string
|
|
62
|
+
gap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
63
63
|
borderRadius: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
64
64
|
};
|
|
65
65
|
Open: {
|
|
@@ -14,7 +14,8 @@ export declare const SidebarAvatar: <T extends React.ElementType<any> = "div">(p
|
|
|
14
14
|
outlined?: boolean | undefined;
|
|
15
15
|
} & Omit<any, "as"> & {
|
|
16
16
|
size?: "200" | "300" | "400" | "500" | undefined;
|
|
17
|
-
radii?: "0" | "300" | "400" | "500" | "Pill" | "Inherit" | undefined;
|
|
17
|
+
radii?: "0" | "300" | "400" | "500" | "600" | "700" | "Pill" | "Inherit" | undefined;
|
|
18
|
+
activity?: "Idle" | "Busy" | undefined;
|
|
18
19
|
} & import("..").AsProp<React.ElementType<any>>>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
19
20
|
export declare const SidebarFolder: <T extends React.ElementType<any> = "div">(props: Omit<React.PropsWithChildren<React.ComponentPropsWithRef<T>>, "as"> & {
|
|
20
21
|
state?: "Close" | "Open" | undefined;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { RecipeVariants } from "@vanilla-extract/recipes";
|
|
2
|
+
export declare const Skeleton: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
3
|
+
shape: {
|
|
4
|
+
line: {};
|
|
5
|
+
avatar: {
|
|
6
|
+
width: string;
|
|
7
|
+
height: string;
|
|
8
|
+
borderRadius: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
short: {
|
|
12
|
+
true: {
|
|
13
|
+
width: "40%";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
animate: {
|
|
17
|
+
true: {
|
|
18
|
+
animation: `${string} 1.8s var(--${string}) infinite` | `${string} 1.8s var(--${string}, ${string}) infinite` | `${string} 1.8s var(--${string}, ${number}) infinite`;
|
|
19
|
+
"@media": {
|
|
20
|
+
"(prefers-reduced-motion: reduce)": {
|
|
21
|
+
animation: "none";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}>;
|
|
27
|
+
export declare type SkeletonVariants = RecipeVariants<typeof Skeleton>;
|
|
28
|
+
export declare const Row: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const Skeleton: <T extends React.ElementType<any> = "span">(props: Omit<React.PropsWithChildren<React.ComponentPropsWithRef<T>>, "as"> & {
|
|
3
|
+
shape?: "line" | "avatar" | undefined;
|
|
4
|
+
short?: boolean | undefined;
|
|
5
|
+
animate?: boolean | undefined;
|
|
6
|
+
} & import("..").AsProp<T>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
7
|
+
export declare const SkeletonRow: ({ avatar, animate, }: {
|
|
8
|
+
avatar?: boolean | undefined;
|
|
9
|
+
animate?: boolean | undefined;
|
|
10
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Skeleton";
|
|
@@ -11,6 +11,10 @@ export declare const Spinner: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
11
11
|
"500": string;
|
|
12
12
|
"600": string;
|
|
13
13
|
};
|
|
14
|
+
shape: {
|
|
15
|
+
Ring: {};
|
|
16
|
+
Morph: {};
|
|
17
|
+
};
|
|
14
18
|
variant: {
|
|
15
19
|
Primary: ComplexStyleRule;
|
|
16
20
|
Secondary: ComplexStyleRule;
|
|
@@ -35,3 +39,4 @@ export declare type SpinnerVariants = RecipeVariants<typeof Spinner>;
|
|
|
35
39
|
export declare const SpinnerSvg: string;
|
|
36
40
|
export declare const SpinnerOuter: string;
|
|
37
41
|
export declare const SpinnerInner: string;
|
|
42
|
+
export declare const SpinnerMorph: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export declare const Spinner: <T extends React.ElementType<any> = "span">(props: Omit<React.PropsWithChildren<React.ComponentPropsWithRef<T>>, "as"> & {
|
|
3
3
|
size?: "100" | "200" | "300" | "400" | "500" | "600" | "Inherit" | "50" | undefined;
|
|
4
|
+
shape?: "Ring" | "Morph" | undefined;
|
|
4
5
|
variant?: "Primary" | "Secondary" | "Success" | "Warning" | "Critical" | undefined;
|
|
5
6
|
fill?: "Solid" | "Soft" | undefined;
|
|
6
7
|
} & import("..").AsProp<T>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from "react";
|
|
2
|
+
import { Button } from "../button";
|
|
3
|
+
import { MenuEntry } from "../menu-button";
|
|
4
|
+
export declare type SplitButtonProps = {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
onClick: ComponentProps<typeof Button>["onClick"];
|
|
7
|
+
entries: MenuEntry[];
|
|
8
|
+
menuLabel: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** Controlled: the consumer owns async work, errors and completion lifetime. */
|
|
11
|
+
busy?: boolean;
|
|
12
|
+
complete?: boolean;
|
|
13
|
+
busyLabel?: string;
|
|
14
|
+
completeLabel?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const SplitButton: ({ children, onClick, entries, menuLabel, disabled, busy, complete, busyLabel, completeLabel, }: SplitButtonProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SplitButton";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare type TabBarProps = {
|
|
2
|
+
tabs: string[];
|
|
3
|
+
/** The selected tab; compared to each entry by value. */
|
|
4
|
+
active: string;
|
|
5
|
+
onSelect?: (tab: string) => void;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* A row of tab chips — the settings tab strip, the explore filters, the
|
|
9
|
+
* console sections. A tablist, so the selected chip carries aria-selected;
|
|
10
|
+
* for a pressed-state toggle that is not a tab, use Pill.
|
|
11
|
+
*/
|
|
12
|
+
export declare const TabBar: ({ tabs, active, onSelect }: TabBarProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./TabBar";
|