@ag2/weave 0.20.0 → 0.21.1

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.
@@ -1 +1,3 @@
1
1
  export declare const DayHeader: string;
2
+ export declare const dayHeaderBackground: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
3
+ export declare const Sticky: string;
@@ -1,4 +1,12 @@
1
1
  import React from "react";
2
- export declare const DayHeader: <T extends React.ElementType<any> = "h2">(props: import("..").AsOutProps<T, {
2
+ export { dayHeaderBackground } from "./DayHeader.css";
3
+ export declare type DayHeaderProps = {
3
4
  label: string;
4
- }>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
5
+ /** Shown after the label: "Today · 4". */
6
+ count?: number;
7
+ /** What screen readers hear for the count, such as "4 tasks". */
8
+ countLabel?: string;
9
+ /** Sticks to the top of its scroller; set dayHeaderBackground to match the surface behind it. */
10
+ sticky?: boolean;
11
+ };
12
+ export declare const DayHeader: <T extends React.ElementType<any> = "h2">(props: import("..").AsOutProps<T, DayHeaderProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
@@ -165,5 +165,11 @@ export declare const Icons: {
165
165
  FrameCorners: IconSrc;
166
166
  Presentation: IconSrc;
167
167
  Selection: IconSrc;
168
+ CheckCircle: IconSrc;
169
+ CircleNotch: IconSrc;
170
+ HandPalm: IconSrc;
171
+ Hourglass: IconSrc;
172
+ Laptop: IconSrc;
173
+ WarningCircle: IconSrc;
168
174
  };
169
175
  export declare type IconName = keyof typeof Icons;
@@ -67,6 +67,9 @@ export * from "./surface-toolbar";
67
67
  export * from "./dock";
68
68
  export * from "./inspector-tabs";
69
69
  export * from "./activity-item";
70
+ export * from "./status-tile";
71
+ export * from "./task-row";
72
+ export * from "./resource-chip";
70
73
  export * from "./quote-card";
71
74
  export * from "./lobby";
72
75
  export * from "./orb-background";
@@ -0,0 +1,3 @@
1
+ export declare const ResourceChip: string;
2
+ export declare const Label: string;
3
+ export declare const Verb: string;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { IconSrc } from "../icon";
3
+ export declare type ResourceChipProps = {
4
+ icon: IconSrc;
5
+ /** The item's title, or its kind ("Doc") when it has none. */
6
+ label: string;
7
+ /** The kind of item, for the accessible name: "Doc", "Whiteboard". */
8
+ kind: string;
9
+ /** Editing adds a pencil; reading adds nothing. */
10
+ verb?: "reading" | "editing";
11
+ };
12
+ export declare const ResourceChip: <T extends React.ElementType<any> = "button">(props: import("..").AsOutProps<T, ResourceChipProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
@@ -0,0 +1 @@
1
+ export * from "./ResourceChip";
@@ -0,0 +1,47 @@
1
+ import { RecipeVariants } from "@vanilla-extract/recipes";
2
+ export declare const StatusTile: import("@vanilla-extract/recipes").RuntimeFn<{
3
+ size: {
4
+ standard: {
5
+ width: string;
6
+ height: string;
7
+ borderRadius: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
8
+ };
9
+ compact: {
10
+ width: string;
11
+ height: string;
12
+ borderRadius: string;
13
+ };
14
+ };
15
+ tone: {
16
+ success: {
17
+ backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
18
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
19
+ };
20
+ neutral: {
21
+ backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
22
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
23
+ };
24
+ info: {
25
+ backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
26
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
27
+ };
28
+ warning: {
29
+ backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
30
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
31
+ };
32
+ attention: {
33
+ backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
34
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
35
+ };
36
+ critical: {
37
+ backgroundColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
38
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
39
+ };
40
+ };
41
+ }>;
42
+ export declare type StatusTileVariants = RecipeVariants<typeof StatusTile>;
43
+ export declare const Glyph: string;
44
+ export declare const Spin: string;
45
+ export declare const Ring: string;
46
+ export declare const Trigger: string;
47
+ export declare const Badge: string;
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ import { IconSrc } from "../icon";
3
+ export declare type StatusTileTone = "success" | "neutral" | "info" | "warning" | "attention" | "critical";
4
+ export declare type StatusTileProps = {
5
+ tone: StatusTileTone;
6
+ icon: IconSrc;
7
+ /** The exact status word: the tooltip and the accessible name. */
8
+ label: string;
9
+ size?: "standard" | "compact";
10
+ /** "spin" turns the glyph; "ring" turns a ring around the tile. Both stop under reduced motion. */
11
+ busy?: "spin" | "ring";
12
+ /** Skip the hover tooltip when the surrounding control already says the status. */
13
+ tooltip?: boolean;
14
+ /** A notification dot on the top-right corner; the surrounding control says "new". */
15
+ badge?: boolean;
16
+ /** Shows the tooltip without hover, such as while the row around the tile has keyboard focus. */
17
+ tooltipOpen?: boolean;
18
+ };
19
+ export declare const StatusTile: <T extends React.ElementType<any> = "span">(props: import("..").AsOutProps<T, StatusTileProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
@@ -0,0 +1 @@
1
+ export * from "./StatusTile";
@@ -0,0 +1,18 @@
1
+ export declare const TaskRow: string;
2
+ export declare const Main: string;
3
+ export declare const Tile: string;
4
+ export declare const Text: string;
5
+ export declare const Title: string;
6
+ export declare const Request: string;
7
+ export declare const Outcome: string;
8
+ export declare const Meta: string;
9
+ export declare const Separator: string;
10
+ export declare const Time: string;
11
+ export declare const Agent: string;
12
+ export declare const Room: string;
13
+ export declare const RoomText: string;
14
+ export declare const Related: string;
15
+ export declare const End: string;
16
+ export declare const Hidden: string;
17
+ export declare const Static: string;
18
+ export declare const Resource: string;
@@ -0,0 +1,41 @@
1
+ import React, { ReactNode } from "react";
2
+ export declare type TaskRowProps = {
3
+ /** A StatusTile: standard size on top-level rows, compact on nested ones. isNew adds its badge, and keyboard focus opens its tooltip. */
4
+ status: ReactNode;
5
+ title: string;
6
+ /** "request" is the fallback when the agent wrote no title: two lines, regular weight. */
7
+ titleKind?: "title" | "request";
8
+ /** The agent's outcome, two lines at most (one when nested). */
9
+ outcome?: ReactNode;
10
+ /** The visible time, such as "9:21 am" or "Yesterday 6:40 pm". */
11
+ time: string;
12
+ /** The full date and time, shown on hover. */
13
+ timeTitle?: string;
14
+ /** ISO date-time for the time element. */
15
+ dateTime: string;
16
+ /** The agent, shown only where more than one agent's tasks are listed. */
17
+ agent?: {
18
+ avatar: ReactNode;
19
+ name: string;
20
+ };
21
+ /** The room; with onOpen it is a link to the room. */
22
+ room?: {
23
+ label: string;
24
+ onOpen?: () => void;
25
+ };
26
+ /** A ResourceChip for the Commons item the task touched. */
27
+ resource?: ReactNode;
28
+ related?: {
29
+ count: number;
30
+ expanded: boolean;
31
+ onToggle: () => void;
32
+ };
33
+ nested?: boolean;
34
+ isNew?: boolean;
35
+ /** An optional IconButton at the end of the row; nothing renders there without it. */
36
+ action?: ReactNode;
37
+ onOpen?: () => void;
38
+ /** The main target's accessible name; it defaults to the tile's status, the title and the outcome. */
39
+ label?: string;
40
+ };
41
+ export declare const TaskRow: <T extends React.ElementType<any> = "li">(props: import("..").AsOutProps<T, TaskRowProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
@@ -0,0 +1 @@
1
+ export * from "./TaskRow";
@@ -15,6 +15,8 @@ interface TooltipProviderProps {
15
15
  tooltip: ReactNode;
16
16
  children: (triggerRef: RefCallback<HTMLElement | SVGElement>) => ReactNode;
17
17
  container?: Element | DocumentFragment;
18
+ /** Shows the tooltip regardless of hover, such as while a containing control has keyboard focus. */
19
+ forceOpen?: boolean;
18
20
  }
19
21
  export declare const TooltipProvider: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, TooltipProviderProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
20
22
  export {};