@ag2/weave 0.7.0 → 0.9.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/agent-tag/AgentTag.d.ts +1 -1
- package/dist/components/agent-tag/MemberTypeTag.css.d.ts +12 -0
- package/dist/components/agent-tag/MemberTypeTag.d.ts +5 -0
- package/dist/components/agent-tag/index.d.ts +1 -0
- 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/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 +2 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/components/input/Input.css.d.ts +1 -1
- 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/switch/Switch.css.d.ts +51 -6
- package/dist/components/switch/Switch.d.ts +2 -1
- package/dist/components/unread-badge/UnreadBadge.d.ts +1 -0
- package/dist/index.js +10458 -1675
- package/dist/index.js.map +1 -1
- package/dist/style.css +1273 -306
- package/dist/theme/config.css.d.ts +26 -1
- package/package.json +14 -8
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* - `AgentMark`, rendered INSIDE the avatar's presence badge (see PresenceBadge
|
|
7
7
|
* `glyph` prop) so "this is an agent" and the agent's presence colour are one
|
|
8
8
|
* combined mark instead of two competing corner badges, and
|
|
9
|
-
* - `AgentNameTag`, the
|
|
9
|
+
* - `AgentNameTag`, the shared "Agent" account-type pill after the display name.
|
|
10
10
|
*
|
|
11
11
|
* The mark was a bot glyph, then an "S" the owner asked for (2026-07-05), and is
|
|
12
12
|
* a bot glyph again. `isAgentMxid` says an account is an agent; it cannot say
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const MemberTypeTag: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
2
|
+
kind: {
|
|
3
|
+
agent: {
|
|
4
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
5
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
6
|
+
};
|
|
7
|
+
human: {
|
|
8
|
+
backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
9
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
}>;
|
|
@@ -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,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";
|
|
@@ -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,6 @@ 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";
|
|
@@ -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,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";
|
|
@@ -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;
|
|
@@ -4,5 +4,6 @@ export declare type UnreadBadgeProps = {
|
|
|
4
4
|
mentionCount?: number;
|
|
5
5
|
highlight?: boolean;
|
|
6
6
|
};
|
|
7
|
+
export declare const abbreviateCount: (count: number) => string;
|
|
7
8
|
export declare const UnreadBadgeCenter: <T extends React.ElementType<any> = "span">(props: import("..").AsOutProps<T, object>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
8
9
|
export declare const UnreadBadge: <T extends React.ElementType<any> = "span">(props: import("..").AsOutProps<T, UnreadBadgeProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|