@ag2/weave 0.8.0 → 0.10.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/badge/Badge.css.d.ts +6 -24
- package/dist/components/badge/Badge.d.ts +2 -0
- package/dist/components/button/Button.css.d.ts +2 -2
- package/dist/components/commons-tabs/CommonsTabs.css.d.ts +10 -0
- package/dist/components/commons-tabs/CommonsTabs.d.ts +21 -0
- package/dist/components/commons-tabs/index.d.ts +1 -0
- package/dist/components/dock/Dock.css.d.ts +7 -0
- package/dist/components/dock/Dock.d.ts +19 -0
- package/dist/components/dock/index.d.ts +1 -0
- package/dist/components/form/Form.css.d.ts +41 -0
- package/dist/components/form/Form.d.ts +29 -0
- package/dist/components/form/FormContext.d.ts +19 -0
- package/dist/components/form/index.d.ts +1 -0
- package/dist/components/icon/Icons.d.ts +11 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/components/input/Input.css.d.ts +1 -1
- package/dist/components/inspector-tabs/InspectorTabs.css.d.ts +4 -0
- package/dist/components/inspector-tabs/InspectorTabs.d.ts +15 -0
- package/dist/components/inspector-tabs/index.d.ts +1 -0
- package/dist/components/panel-switch/PanelSwitch.css.d.ts +8 -0
- package/dist/components/panel-switch/PanelSwitch.d.ts +17 -0
- package/dist/components/panel-switch/index.d.ts +1 -0
- package/dist/components/people-line/PeopleLine.css.d.ts +6 -0
- package/dist/components/people-line/PeopleLine.d.ts +11 -0
- package/dist/components/people-line/index.d.ts +1 -0
- package/dist/components/radio-button/RadioGroup.d.ts +7 -0
- package/dist/components/radio-button/index.d.ts +1 -0
- package/dist/components/room-header/RoomHeader.css.d.ts +8 -0
- package/dist/components/room-header/RoomHeader.d.ts +21 -0
- package/dist/components/room-header/index.d.ts +1 -0
- package/dist/components/select/Select.css.d.ts +11 -0
- package/dist/components/select/Select.d.ts +10 -0
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/setting-tile/SettingTile.d.ts +1 -10
- package/dist/components/surface-toolbar/SurfaceToolbar.css.d.ts +11 -0
- package/dist/components/surface-toolbar/SurfaceToolbar.d.ts +18 -0
- package/dist/components/surface-toolbar/index.d.ts +1 -0
- package/dist/components/switch/Switch.css.d.ts +51 -6
- package/dist/components/switch/Switch.d.ts +2 -1
- package/dist/components/tabFocusKeyboard.d.ts +4 -0
- package/dist/components/type-tile/TypeTile.css.d.ts +4 -0
- package/dist/components/type-tile/TypeTile.d.ts +14 -0
- package/dist/components/type-tile/index.d.ts +1 -0
- package/dist/components/unread-badge/UnreadBadge.d.ts +1 -0
- package/dist/index.js +11262 -1816
- package/dist/index.js.map +1 -1
- package/dist/style.css +1679 -315
- package/dist/theme/config.css.d.ts +26 -1
- package/package.json +14 -8
|
@@ -1,41 +1,23 @@
|
|
|
1
1
|
import { ComplexStyleRule } from "@vanilla-extract/css";
|
|
2
2
|
import { RecipeVariants } from "@vanilla-extract/recipes";
|
|
3
3
|
export declare const Badge: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
4
|
+
kind: {
|
|
5
|
+
Tag: string;
|
|
6
|
+
Count: {
|
|
7
|
+
fontVariantNumeric: "tabular-nums";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
4
10
|
size: {
|
|
5
11
|
"500": {
|
|
6
|
-
selectors: {
|
|
7
|
-
[x: string]: {
|
|
8
|
-
height: "auto";
|
|
9
|
-
minHeight: string;
|
|
10
|
-
minWidth: `max(${string}, calc(var(--${string}) + 4px))` | `max(${string}, calc(var(--${string}, ${string}) + 4px))` | `max(${string}, calc(var(--${string}, ${number}) + 4px))`;
|
|
11
|
-
paddingBlock: "2px";
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
12
|
height: string;
|
|
15
13
|
minWidth: string;
|
|
16
14
|
padding: `0 var(--${string})` | `0 var(--${string}, ${string})` | `0 var(--${string}, ${number})`;
|
|
17
15
|
};
|
|
18
16
|
"400": {
|
|
19
|
-
selectors: {
|
|
20
|
-
[x: string]: {
|
|
21
|
-
height: "auto";
|
|
22
|
-
minHeight: string;
|
|
23
|
-
minWidth: `max(${string}, calc(var(--${string}) + 4px))` | `max(${string}, calc(var(--${string}, ${string}) + 4px))` | `max(${string}, calc(var(--${string}, ${number}) + 4px))`;
|
|
24
|
-
paddingBlock: "2px";
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
17
|
height: string;
|
|
28
18
|
minWidth: string;
|
|
29
19
|
};
|
|
30
20
|
"300": {
|
|
31
|
-
selectors: {
|
|
32
|
-
[x: string]: {
|
|
33
|
-
height: "auto";
|
|
34
|
-
minHeight: string;
|
|
35
|
-
minWidth: `max(${string}, calc(var(--${string}) + 4px))` | `max(${string}, calc(var(--${string}, ${string}) + 4px))` | `max(${string}, calc(var(--${string}, ${number}) + 4px))`;
|
|
36
|
-
paddingBlock: "2px";
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
21
|
height: string;
|
|
40
22
|
minWidth: string;
|
|
41
23
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
/** Text labels use Tag; compact numerical indicators use Count. Empty badges remain dots. */
|
|
2
3
|
export declare const Badge: <T extends React.ElementType<any> = "span">(props: Omit<React.PropsWithChildren<React.ComponentPropsWithRef<T>>, "as"> & {
|
|
4
|
+
kind?: "Tag" | "Count" | undefined;
|
|
3
5
|
size?: "200" | "300" | "400" | "500" | undefined;
|
|
4
6
|
variant?: "Success" | "Warning" | "Critical" | "Primary" | "Secondary" | "Info" | undefined;
|
|
5
7
|
fill?: "Solid" | "Soft" | "None" | undefined;
|
|
@@ -15,7 +15,7 @@ export declare const Button: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
15
15
|
};
|
|
16
16
|
"400": {
|
|
17
17
|
vars: {
|
|
18
|
-
[x: string]:
|
|
18
|
+
[x: string]: string;
|
|
19
19
|
};
|
|
20
20
|
height: string;
|
|
21
21
|
gap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -26,7 +26,7 @@ export declare const Button: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
26
26
|
};
|
|
27
27
|
"500": {
|
|
28
28
|
vars: {
|
|
29
|
-
[x: string]:
|
|
29
|
+
[x: string]: string;
|
|
30
30
|
};
|
|
31
31
|
height: string;
|
|
32
32
|
gap: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const CommonsTabStrip: string;
|
|
2
|
+
export declare const CommonsTabList: string;
|
|
3
|
+
export declare const CommonsTabControls: string;
|
|
4
|
+
export declare const CommonsTabDivider: string;
|
|
5
|
+
export declare const CommonsTab: string;
|
|
6
|
+
export declare const CommonsTabButton: string;
|
|
7
|
+
export declare const CommonsTabLabel: string;
|
|
8
|
+
export declare const CommonsTabDrafting: string;
|
|
9
|
+
export declare const CommonsTabUnseen: string;
|
|
10
|
+
export declare const CommonsTabClose: string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
export declare type CommonsTabStripProps = {
|
|
3
|
+
/** The panel's own controls after the tabs: Commons menu, Expand, Hide. */
|
|
4
|
+
controls?: ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export declare const CommonsTabStrip: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, CommonsTabStripProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
7
|
+
export declare type CommonsTabProps = {
|
|
8
|
+
label: string;
|
|
9
|
+
/** The page's type tile, 16px. */
|
|
10
|
+
tile?: ReactNode;
|
|
11
|
+
selected?: boolean;
|
|
12
|
+
/** An agent made or changed it since you looked. */
|
|
13
|
+
unseen?: boolean;
|
|
14
|
+
/** An agent is still writing it; `draftingBy` names who, for the tooltip. */
|
|
15
|
+
drafting?: boolean;
|
|
16
|
+
draftingBy?: string;
|
|
17
|
+
onSelect?: () => void;
|
|
18
|
+
/** Shown on the open tab and on hover; omit for a tab that can't close. */
|
|
19
|
+
onClose?: () => void;
|
|
20
|
+
};
|
|
21
|
+
export declare const CommonsTab: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, CommonsTabProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CommonsTabs";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const Dock: string;
|
|
2
|
+
export declare const DockButton: string;
|
|
3
|
+
export declare const DockCount: string;
|
|
4
|
+
export declare const DockDivider: string;
|
|
5
|
+
export declare const DockHint: string;
|
|
6
|
+
export declare const DockChip: string;
|
|
7
|
+
export declare const DockChipText: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { IconSrc } from "../icon";
|
|
3
|
+
export declare const Dock: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, object>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
4
|
+
export declare type DockButtonProps = {
|
|
5
|
+
icon: IconSrc;
|
|
6
|
+
/** The tooltip and accessible name; the visible text too when `labelled`. */
|
|
7
|
+
label: string;
|
|
8
|
+
labelled?: boolean;
|
|
9
|
+
/** A mode that's on (commenting, picking an area): the button turns dark. */
|
|
10
|
+
pressed?: boolean;
|
|
11
|
+
count?: number;
|
|
12
|
+
};
|
|
13
|
+
export declare const DockButton: <T extends React.ElementType<any> = "button">(props: import("..").AsOutProps<T, DockButtonProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
14
|
+
export declare const DockDivider: () => JSX.Element;
|
|
15
|
+
export declare const DockHint: <T extends React.ElementType<any> = "span">(props: import("..").AsOutProps<T, object>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
16
|
+
export declare type DockChipProps = {
|
|
17
|
+
before?: ReactNode;
|
|
18
|
+
};
|
|
19
|
+
export declare const DockChip: <T extends React.ElementType<any> = "button">(props: import("..").AsOutProps<T, DockChipProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Dock";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { RecipeVariants } from "@vanilla-extract/recipes";
|
|
2
|
+
export declare const Row: string;
|
|
3
|
+
export declare const Body: string;
|
|
4
|
+
export declare const Label: string;
|
|
5
|
+
export declare const Description: string;
|
|
6
|
+
export declare const Children: string;
|
|
7
|
+
export declare const Control: string;
|
|
8
|
+
export declare const Field: string;
|
|
9
|
+
export declare const Error: string;
|
|
10
|
+
export declare const Card: string;
|
|
11
|
+
export declare const CardTone: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
12
|
+
variant: {
|
|
13
|
+
Surface: {};
|
|
14
|
+
SurfaceVariant: {};
|
|
15
|
+
Background: {
|
|
16
|
+
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
17
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
18
|
+
};
|
|
19
|
+
Primary: {
|
|
20
|
+
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
21
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
22
|
+
};
|
|
23
|
+
Secondary: {
|
|
24
|
+
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
25
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
26
|
+
};
|
|
27
|
+
Success: {
|
|
28
|
+
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
29
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
30
|
+
};
|
|
31
|
+
Warning: {
|
|
32
|
+
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
33
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
34
|
+
};
|
|
35
|
+
Critical: {
|
|
36
|
+
background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
37
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
}>;
|
|
41
|
+
export declare type FormCardVariants = RecipeVariants<typeof CardTone>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
export declare const FormRow: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
3
|
+
title?: ReactNode;
|
|
4
|
+
description?: ReactNode;
|
|
5
|
+
before?: ReactNode;
|
|
6
|
+
after?: ReactNode;
|
|
7
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const Field: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
9
|
+
label: ReactNode;
|
|
10
|
+
description?: ReactNode;
|
|
11
|
+
error?: ReactNode;
|
|
12
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export declare const FormCard: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, Omit<any, "as"> & {
|
|
14
|
+
display?: "Flex" | "InlineFlex" | undefined;
|
|
15
|
+
direction?: "Inherit" | "Row" | "RowReverse" | "Column" | "ColumnReverse" | undefined;
|
|
16
|
+
wrap?: "Inherit" | "NoWrap" | "Wrap" | "WrapReverse" | undefined;
|
|
17
|
+
justifyContent?: "End" | "Start" | "Center" | "Inherit" | "Stretch" | "Baseline" | "SpaceBetween" | "SpaceAround" | "SpaceEvenly" | undefined;
|
|
18
|
+
justifyItems?: "End" | "Start" | "Center" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
19
|
+
justifySelf?: "End" | "Start" | "Center" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
20
|
+
alignContent?: "End" | "Start" | "Center" | "Inherit" | "Stretch" | "Baseline" | "SpaceBetween" | "SpaceAround" | "SpaceEvenly" | undefined;
|
|
21
|
+
alignItems?: "End" | "Start" | "Center" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
22
|
+
alignSelf?: "End" | "Start" | "Center" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
23
|
+
gap?: "0" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "Inherit" | undefined;
|
|
24
|
+
grow?: "No" | "Yes" | undefined;
|
|
25
|
+
shrink?: "No" | "Yes" | undefined;
|
|
26
|
+
basis?: "No" | "Yes" | undefined;
|
|
27
|
+
} & import("..").AsProp<React.ElementType<any>> & {
|
|
28
|
+
variant?: "Background" | "Success" | "Warning" | "Critical" | "Surface" | "SurfaceVariant" | "Primary" | "Secondary" | undefined;
|
|
29
|
+
}>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const FormContext: import("react").Context<{
|
|
2
|
+
controlId?: string | undefined;
|
|
3
|
+
labelId?: string | undefined;
|
|
4
|
+
descriptionId?: string | undefined;
|
|
5
|
+
invalid?: boolean | undefined;
|
|
6
|
+
registerControlId?: ((id: string) => () => void) | undefined;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const useFormControl: (props: {
|
|
9
|
+
id?: string;
|
|
10
|
+
"aria-label"?: string;
|
|
11
|
+
"aria-labelledby"?: string;
|
|
12
|
+
"aria-describedby"?: string;
|
|
13
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling";
|
|
14
|
+
}) => {
|
|
15
|
+
id: string | undefined;
|
|
16
|
+
"aria-labelledby": string | undefined;
|
|
17
|
+
"aria-describedby": string | undefined;
|
|
18
|
+
"aria-invalid": boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Field, FormRow, FormCard } from "./Form";
|
|
@@ -153,5 +153,16 @@ export declare const Icons: {
|
|
|
153
153
|
Question: IconSrc;
|
|
154
154
|
Sigma: IconSrc;
|
|
155
155
|
WordFile: IconSrc;
|
|
156
|
+
Files: IconSrc;
|
|
157
|
+
Pulse: IconSrc;
|
|
158
|
+
Doc: IconSrc;
|
|
159
|
+
Whiteboard: IconSrc;
|
|
160
|
+
Table: IconSrc;
|
|
161
|
+
Database: IconSrc;
|
|
162
|
+
Kanban: IconSrc;
|
|
163
|
+
Pdf: IconSrc;
|
|
164
|
+
FrameCorners: IconSrc;
|
|
165
|
+
Presentation: IconSrc;
|
|
166
|
+
Selection: IconSrc;
|
|
156
167
|
};
|
|
157
168
|
export declare type IconName = keyof typeof Icons;
|
|
@@ -15,6 +15,8 @@ export * from "./header";
|
|
|
15
15
|
export * from "./icon";
|
|
16
16
|
export * from "./icon-button";
|
|
17
17
|
export * from "./input";
|
|
18
|
+
export * from "./form";
|
|
19
|
+
export * from "./select";
|
|
18
20
|
export * from "./line";
|
|
19
21
|
export * from "./menu";
|
|
20
22
|
export * from "./modal";
|
|
@@ -54,3 +56,11 @@ export * from "./tab";
|
|
|
54
56
|
export * from "./toggle-chip";
|
|
55
57
|
export * from "./segmented-control";
|
|
56
58
|
export * from "./empty-state";
|
|
59
|
+
export * from "./panel-switch";
|
|
60
|
+
export * from "./people-line";
|
|
61
|
+
export * from "./room-header";
|
|
62
|
+
export * from "./type-tile";
|
|
63
|
+
export * from "./commons-tabs";
|
|
64
|
+
export * from "./surface-toolbar";
|
|
65
|
+
export * from "./dock";
|
|
66
|
+
export * from "./inspector-tabs";
|
|
@@ -48,7 +48,7 @@ export declare const Input: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
48
48
|
};
|
|
49
49
|
outlined: {
|
|
50
50
|
true: {
|
|
51
|
-
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})`;
|
|
51
|
+
boxShadow: `inset 0 0 0 1px var(--${string}), inset 0 1px 2px color-mix(in srgb, var(--${string}) 3%, transparent)` | `inset 0 0 0 1px var(--${string}), inset 0 1px 2px color-mix(in srgb, var(--${string}, ${string}) 3%, transparent)` | `inset 0 0 0 1px var(--${string}), inset 0 1px 2px color-mix(in srgb, var(--${string}, ${number}) 3%, transparent)` | `inset 0 0 0 1px var(--${string}, ${string}), inset 0 1px 2px color-mix(in srgb, var(--${string}) 3%, transparent)` | `inset 0 0 0 1px var(--${string}, ${string}), inset 0 1px 2px color-mix(in srgb, var(--${string}, ${string}) 3%, transparent)` | `inset 0 0 0 1px var(--${string}, ${string}), inset 0 1px 2px color-mix(in srgb, var(--${string}, ${number}) 3%, transparent)` | `inset 0 0 0 1px var(--${string}, ${number}), inset 0 1px 2px color-mix(in srgb, var(--${string}) 3%, transparent)` | `inset 0 0 0 1px var(--${string}, ${number}), inset 0 1px 2px color-mix(in srgb, var(--${string}, ${string}) 3%, transparent)` | `inset 0 0 0 1px var(--${string}, ${number}), inset 0 1px 2px color-mix(in srgb, var(--${string}, ${number}) 3%, transparent)`;
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
radii: {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
export declare type InspectorHeaderProps = {
|
|
3
|
+
/** After the tabs, at the far end: Close. */
|
|
4
|
+
after?: ReactNode;
|
|
5
|
+
label?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const InspectorHeader: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, InspectorHeaderProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
8
|
+
export declare type InspectorTabProps = {
|
|
9
|
+
/** The tab's glyph, standard size. */
|
|
10
|
+
icon: ReactNode;
|
|
11
|
+
label: string;
|
|
12
|
+
selected?: boolean;
|
|
13
|
+
onSelect?: () => void;
|
|
14
|
+
};
|
|
15
|
+
export declare const InspectorTab: <T extends React.ElementType<any> = "button">(props: import("..").AsOutProps<T, InspectorTabProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./InspectorTabs";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const PanelSwitchGroup: string;
|
|
2
|
+
export declare const PanelSwitch: string;
|
|
3
|
+
export declare const Glyph: string;
|
|
4
|
+
export declare const Attention: string;
|
|
5
|
+
export declare const Count: string;
|
|
6
|
+
export declare const CountPill: string;
|
|
7
|
+
export declare const Label: string;
|
|
8
|
+
export declare const Folds: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IconSrc } from "../icon";
|
|
3
|
+
export declare type PanelSwitchProps = {
|
|
4
|
+
icon: IconSrc;
|
|
5
|
+
label: string;
|
|
6
|
+
/** The panel is open: the pill expands into the dark state with its name. */
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
count?: number;
|
|
9
|
+
/** Activity shows its count in a pill; Commons shows it as plain text. */
|
|
10
|
+
countStyle?: "Plain" | "Pill";
|
|
11
|
+
/** Keep the name visible while closed (Commons). */
|
|
12
|
+
labelled?: boolean;
|
|
13
|
+
/** Something in this panel needs you; shown while closed. */
|
|
14
|
+
attention?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare const PanelSwitchGroup: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, object>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
17
|
+
export declare const PanelSwitch: <T extends React.ElementType<any> = "button">(props: import("..").AsOutProps<T, PanelSwitchProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PanelSwitch";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
export declare type PeopleLineProps = {
|
|
3
|
+
/** PeopleLineFace elements: who's here, or the agent that's working. */
|
|
4
|
+
faces?: ReactNode;
|
|
5
|
+
/** Live state: an agent working runs the grey sweep; a call shows green. */
|
|
6
|
+
status?: "Default" | "Working" | "Call";
|
|
7
|
+
};
|
|
8
|
+
export declare const PeopleLineFace: <T extends React.ElementType<any> = "span">(props: import("..").AsOutProps<T, {
|
|
9
|
+
size?: "small" | "large" | undefined;
|
|
10
|
+
}>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
11
|
+
export declare const PeopleLine: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, PeopleLineProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PeopleLine";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import * as Primitive from "@radix-ui/react-radio-group";
|
|
3
|
+
export declare const RadioGroup: React.ForwardRefExoticComponent<Pick<Primitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "slot" | "style" | "title" | "children" | "className" | "color" | "id" | "lang" | "name" | "role" | "tabIndex" | "orientation" | "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" | "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" | "loop" | "disabled" | "value" | "required" | "asChild" | "onValueChange"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export declare const RadioGroupItem: React.ForwardRefExoticComponent<Pick<Primitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "form" | "slot" | "style" | "title" | "children" | "className" | "color" | "id" | "lang" | "type" | "role" | "tabIndex" | "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" | "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" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "checked" | "required" | "asChild"> & {
|
|
5
|
+
variant?: "Success" | "Warning" | "Critical" | "Primary" | "Secondary" | undefined;
|
|
6
|
+
size?: "100" | "200" | "300" | "400" | "500" | "600" | "Inherit" | "50" | undefined;
|
|
7
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const RoomHeader: string;
|
|
2
|
+
export declare const Row: string;
|
|
3
|
+
export declare const Mark: string;
|
|
4
|
+
export declare const Identity: string;
|
|
5
|
+
export declare const Name: string;
|
|
6
|
+
export declare const Spacer: string;
|
|
7
|
+
export declare const Controls: string;
|
|
8
|
+
export declare const Divider: string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
export declare type RoomHeaderProps = {
|
|
3
|
+
/** Room tile, or the faces themselves for a DM or small group. */
|
|
4
|
+
mark: ReactNode;
|
|
5
|
+
name: ReactNode;
|
|
6
|
+
/** Heading element for the room name; h1 when the header leads the page. */
|
|
7
|
+
nameAs?: "h1" | "h2" | "h3" | "span";
|
|
8
|
+
/** The people line under the name. */
|
|
9
|
+
people?: ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Call, search, bell and the ⋯ menu. Children marked data-optional hide in a
|
|
12
|
+
* very narrow header, so the caller should also offer them from the ⋯ menu.
|
|
13
|
+
*/
|
|
14
|
+
controls?: ReactNode;
|
|
15
|
+
/** The Threads · Activity · Commons switcher. */
|
|
16
|
+
panels?: ReactNode;
|
|
17
|
+
};
|
|
18
|
+
export declare const RoomHeaderMark: <T extends React.ElementType<any> = "span">(props: import("..").AsOutProps<T, {
|
|
19
|
+
faces?: boolean | undefined;
|
|
20
|
+
}>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
21
|
+
export declare const RoomHeader: <T extends React.ElementType<any> = "header">(props: import("..").AsOutProps<T, RoomHeaderProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RoomHeader";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const Root: string;
|
|
2
|
+
export declare const Select: string;
|
|
3
|
+
export declare const Chevron: string;
|
|
4
|
+
export declare const Content: string;
|
|
5
|
+
export declare const Viewport: string;
|
|
6
|
+
export declare const Item: string;
|
|
7
|
+
export declare const Indicator: string;
|
|
8
|
+
export declare const ScrollButton: string;
|
|
9
|
+
export declare const Label: string;
|
|
10
|
+
export declare const Value: string;
|
|
11
|
+
export declare const Description: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import * as Primitive from "@radix-ui/react-select";
|
|
3
|
+
export declare const Select: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "defaultValue" | "dir" | "value"> & Pick<Primitive.SelectProps, "form" | "name" | "defaultValue" | "dir" | "value" | "autoComplete" | "required" | "onValueChange"> & {
|
|
4
|
+
placeholder?: string | undefined;
|
|
5
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
export declare const SelectItem: React.ForwardRefExoticComponent<Primitive.SelectItemProps & {
|
|
7
|
+
description?: React.ReactNode;
|
|
8
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const SelectGroup: React.ForwardRefExoticComponent<Primitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export declare const SelectLabel: React.ForwardRefExoticComponent<Primitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Select, SelectItem, SelectGroup, SelectLabel } from "./Select";
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
declare type SettingTileProps = {
|
|
3
|
-
title?: ReactNode;
|
|
4
|
-
description?: ReactNode;
|
|
5
|
-
before?: ReactNode;
|
|
6
|
-
after?: ReactNode;
|
|
7
|
-
children?: ReactNode;
|
|
8
|
-
};
|
|
9
|
-
export declare const SettingTile: ({ title, description, before, after, children }: SettingTileProps) => JSX.Element;
|
|
10
|
-
export {};
|
|
1
|
+
export { FormRow as SettingTile } from "../form";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const SurfaceToolbar: string;
|
|
2
|
+
export declare const SurfaceToolbarTitle: string;
|
|
3
|
+
export declare const SurfaceToolbarTitleText: string;
|
|
4
|
+
export declare const SurfaceToolbarMeta: string;
|
|
5
|
+
export declare const SurfaceToolbarTools: string;
|
|
6
|
+
export declare const SurfaceToolbarSpacer: string;
|
|
7
|
+
export declare const SurfaceToolbarDivider: string;
|
|
8
|
+
export declare const SummonPill: string;
|
|
9
|
+
export declare const SummonPillHere: string;
|
|
10
|
+
export declare const SummonPillFaces: string;
|
|
11
|
+
export declare const SummonPillGlyph: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
export declare const SurfaceToolbar: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, object>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
3
|
+
export declare type SurfaceToolbarTitleProps = {
|
|
4
|
+
/** The page's type tile, 20px. */
|
|
5
|
+
tile?: ReactNode;
|
|
6
|
+
/** After the title, quieter: "· Page 1 of 3". */
|
|
7
|
+
meta?: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare const SurfaceToolbarTitle: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, SurfaceToolbarTitleProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
10
|
+
export declare const SurfaceToolbarTools: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, object>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
11
|
+
export declare const SurfaceToolbarSpacer: () => JSX.Element;
|
|
12
|
+
export declare const SurfaceToolbarDivider: () => JSX.Element;
|
|
13
|
+
export declare type SummonPillProps = {
|
|
14
|
+
/** Faces of who's on this page now, overlapping; omit when nobody else is here. */
|
|
15
|
+
faces?: ReactNode;
|
|
16
|
+
label?: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const SummonPill: <T extends React.ElementType<any> = "button">(props: import("..").AsOutProps<T, SummonPillProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SurfaceToolbar";
|
|
@@ -1,13 +1,58 @@
|
|
|
1
|
-
import { ComplexStyleRule } from "@vanilla-extract/css";
|
|
2
1
|
import { RecipeVariants } from "@vanilla-extract/recipes";
|
|
3
2
|
export declare const Switch: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
4
3
|
variant: {
|
|
5
|
-
Primary:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
Primary: {
|
|
5
|
+
vars: {
|
|
6
|
+
[x: string]: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
7
|
+
};
|
|
8
|
+
selectors: {
|
|
9
|
+
"&[data-state=checked]": {
|
|
10
|
+
color: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
Secondary: {
|
|
15
|
+
vars: {
|
|
16
|
+
[x: string]: string;
|
|
17
|
+
};
|
|
18
|
+
selectors: {
|
|
19
|
+
"&[data-state=checked]": {
|
|
20
|
+
color: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
Success: {
|
|
25
|
+
vars: {
|
|
26
|
+
[x: string]: string;
|
|
27
|
+
};
|
|
28
|
+
selectors: {
|
|
29
|
+
"&[data-state=checked]": {
|
|
30
|
+
color: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
Warning: {
|
|
35
|
+
vars: {
|
|
36
|
+
[x: string]: string;
|
|
37
|
+
};
|
|
38
|
+
selectors: {
|
|
39
|
+
"&[data-state=checked]": {
|
|
40
|
+
color: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
Critical: {
|
|
45
|
+
vars: {
|
|
46
|
+
[x: string]: string;
|
|
47
|
+
};
|
|
48
|
+
selectors: {
|
|
49
|
+
"&[data-state=checked]": {
|
|
50
|
+
color: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
10
54
|
};
|
|
11
55
|
}>;
|
|
12
56
|
export declare type SwitchVariants = RecipeVariants<typeof Switch>;
|
|
57
|
+
export declare const SwitchFill: string;
|
|
13
58
|
export declare const SwitchThumb: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export declare const Switch: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children" | "role" | "onChange" | "
|
|
2
|
+
export declare const Switch: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children" | "role" | "onChange" | "defaultValue" | "value"> & {
|
|
3
3
|
value?: boolean | undefined;
|
|
4
|
+
defaultValue?: boolean | undefined;
|
|
4
5
|
onChange?: ((on: boolean) => void) | undefined;
|
|
5
6
|
} & {
|
|
6
7
|
variant?: "Success" | "Warning" | "Critical" | "Primary" | "Secondary" | undefined;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FocusEvent, KeyboardEvent } from "react";
|
|
2
|
+
export declare const tabFocusRoving: (event: FocusEvent<HTMLElement>) => void;
|
|
3
|
+
export declare const tabBlurRoving: (event: FocusEvent<HTMLElement>) => void;
|
|
4
|
+
export declare const tabFocusKeyboard: (event: KeyboardEvent<HTMLElement>) => void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const TypeTile: string;
|
|
2
|
+
export declare const TypeTileSize: Record<"200" | "300" | "500", string>;
|
|
3
|
+
export declare const TypeTileGlyph: Record<"200" | "300" | "500", string>;
|
|
4
|
+
export declare const TypeTileKind: Record<"Media" | "Doc" | "Html" | "Whiteboard" | "Sheet" | "Database" | "Pdf" | "Analysis" | "Figma" | "Presentation" | "Apps" | "Kanban", string>;
|