@ag2/weave 0.19.0 → 0.20.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.
@@ -2,9 +2,13 @@ import React, { HTMLAttributes, ReactNode } from "react";
2
2
  export declare type AccountCardProps = HTMLAttributes<HTMLDivElement> & {
3
3
  header?: ReactNode;
4
4
  footer?: ReactNode;
5
+ /** `wide` is the 640px app onboarding card; `default` (400px) suits browser sign-in. */
6
+ size?: "default" | "wide";
5
7
  };
6
8
  /** White account surface. The consumer supplies headings, forms, links and routing. */
7
9
  export declare const AccountCard: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
8
10
  header?: ReactNode;
9
11
  footer?: ReactNode;
12
+ /** `wide` is the 640px app onboarding card; `default` (400px) suits browser sign-in. */
13
+ size?: "default" | "wide" | undefined;
10
14
  } & React.RefAttributes<HTMLDivElement>>;
@@ -72,6 +72,8 @@ export * from "./lobby";
72
72
  export * from "./orb-background";
73
73
  export * from "./account-card";
74
74
  export * from "./onboarding-key-button";
75
+ export * from "./onboarding-button";
76
+ export * from "./onboarding-chip";
75
77
  export * from "./option-card";
76
78
  export * from "./color-swatch-picker";
77
79
  export * from "./onboarding-setup";
@@ -0,0 +1 @@
1
+ export declare const Button: string;
@@ -0,0 +1,19 @@
1
+ import React, { ButtonHTMLAttributes } from "react";
2
+ export declare type OnboardingButtonVariant = "Brand" | "Primary" | "Ghost";
3
+ export declare type OnboardingButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
4
+ /**
5
+ * Brand: white pill with the Ember inner glow (Allow, Connect).
6
+ * Primary: dark pill without the Key glow. Ghost: Back, Skip, Finish later.
7
+ */
8
+ variant?: OnboardingButtonVariant;
9
+ fullWidth?: boolean;
10
+ };
11
+ /** Onboarding actions other than the one Key action per screen. */
12
+ export declare const OnboardingButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
13
+ /**
14
+ * Brand: white pill with the Ember inner glow (Allow, Connect).
15
+ * Primary: dark pill without the Key glow. Ghost: Back, Skip, Finish later.
16
+ */
17
+ variant?: OnboardingButtonVariant | undefined;
18
+ fullWidth?: boolean | undefined;
19
+ } & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1 @@
1
+ export * from "./OnboardingButton";
@@ -0,0 +1,2 @@
1
+ export declare const Chip: string;
2
+ export declare const Check: string;
@@ -0,0 +1,10 @@
1
+ import React, { ButtonHTMLAttributes } from "react";
2
+ export declare type OnboardingChipProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type"> & {
3
+ pressed: boolean;
4
+ onPressedChange: (pressed: boolean) => void;
5
+ };
6
+ /** Multi-select choice pill (roles, interests). Dark with a check while pressed. */
7
+ export declare const OnboardingChip: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type"> & {
8
+ pressed: boolean;
9
+ onPressedChange: (pressed: boolean) => void;
10
+ } & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1 @@
1
+ export * from "./OnboardingChip";
@@ -10,4 +10,12 @@ export declare const Status: string;
10
10
  export declare const Working: string;
11
11
  export declare const Navigation: string;
12
12
  export declare const Actions: string;
13
+ export declare const Card: string;
14
+ export declare const CardHeading: string;
15
+ export declare const CardTitle: string;
16
+ export declare const CardMeta: string;
17
+ export declare const CardStatus: string;
18
+ export declare const CardBarInset: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
19
+ export declare const CardBar: string;
20
+ export declare const CardBarFill: string;
13
21
  export declare const Hidden: string;
@@ -34,6 +34,35 @@ export declare const SetupStatusRow: React.ForwardRefExoticComponent<React.HTMLA
34
34
  disabled?: boolean | undefined;
35
35
  } | undefined;
36
36
  } & React.RefAttributes<HTMLDivElement>>;
37
+ export declare type SetupProgressCardProps = Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
38
+ /** Provider or task name, e.g. Codex. */
39
+ title: string;
40
+ /** Quiet text beside the title, e.g. by OpenAI. */
41
+ meta?: ReactNode;
42
+ state?: SetupState;
43
+ /** Live status line, e.g. Installing Codex…. Shimmers while working. */
44
+ statusText: string;
45
+ /** Omit while the amount of work is unknown: the bar sweeps instead. */
46
+ value?: number;
47
+ max?: number;
48
+ /** Accessible name of the bar. Defaults to the title. */
49
+ progressLabel?: string;
50
+ };
51
+ /** Install or sign-in progress for one provider. The client supplies real progress and state. */
52
+ export declare const SetupProgressCard: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "title"> & {
53
+ /** Provider or task name, e.g. Codex. */
54
+ title: string;
55
+ /** Quiet text beside the title, e.g. by OpenAI. */
56
+ meta?: ReactNode;
57
+ state?: SetupState | undefined;
58
+ /** Live status line, e.g. Installing Codex…. Shimmers while working. */
59
+ statusText: string;
60
+ /** Omit while the amount of work is unknown: the bar sweeps instead. */
61
+ value?: number | undefined;
62
+ max?: number | undefined;
63
+ /** Accessible name of the bar. Defaults to the title. */
64
+ progressLabel?: string | undefined;
65
+ } & React.RefAttributes<HTMLDivElement>>;
37
66
  export declare type PermissionRowProps = Omit<SetupStatusRowProps, "state" | "action"> & {
38
67
  state: "not-allowed" | "waiting" | "allowed" | "error";
39
68
  onAllow?: () => void;
@@ -3,4 +3,5 @@ export declare const Card: string;
3
3
  export declare const Body: string;
4
4
  export declare const Title: string;
5
5
  export declare const Description: string;
6
+ export declare const Status: string;
6
7
  export declare const Indicator: string;
@@ -5,10 +5,14 @@ export declare type OptionCardProps = Omit<ComponentPropsWithoutRef<typeof Primi
5
5
  title: ReactNode;
6
6
  description?: ReactNode;
7
7
  before?: ReactNode;
8
+ /** Short state line under the description, e.g. On this Mac. Green while selected. */
9
+ status?: ReactNode;
8
10
  };
9
11
  /** One radio choice; slots must not contain interactive controls. Group owns selection and name. */
10
12
  export declare const OptionCard: React.ForwardRefExoticComponent<Omit<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">, "title" | "children" | "asChild"> & {
11
13
  title: ReactNode;
12
14
  description?: ReactNode;
13
15
  before?: ReactNode;
16
+ /** Short state line under the description, e.g. On this Mac. Green while selected. */
17
+ status?: ReactNode;
14
18
  } & React.RefAttributes<HTMLButtonElement>>;
package/dist/index.js CHANGED
@@ -869,7 +869,10 @@ const onboardingTokens = {
869
869
  keyInk: colorScale.Neutral[0],
870
870
  keyPressedInk: brandColors.Ink,
871
871
  keyGradient: `linear-gradient(105deg, ${brandColors.Sky}, ${brandColors.Pink} 52%, ${brandColors.Orange})`,
872
- cardShadow: `0 8px 32px color-mix(in srgb, ${brandColors.Ink} 9%, transparent)`
872
+ cardShadow: `0 8px 32px color-mix(in srgb, ${brandColors.Ink} 9%, transparent)`,
873
+ /** Brand/Ember inner glow on white: Brand buttons, selected option cards. */
874
+ brandGlow: `inset 2px 2px 10px color-mix(in srgb, ${brandColors.Orange} 30%, transparent), inset -2px -2px 10px color-mix(in srgb, ${brandColors.Orange} 30%, transparent)`,
875
+ brandGlowStrong: `inset 2px 2px 12px color-mix(in srgb, ${brandColors.Orange} 45%, transparent), inset -2px -2px 12px color-mix(in srgb, ${brandColors.Orange} 45%, transparent)`
873
876
  };
874
877
  const agentColorTokens = {
875
878
  ember: { label: "Ember", center: brandColors.Orange, rim: colorScale.Orange[600] },
@@ -1291,8 +1294,8 @@ const Box = as(
1291
1294
  )
1292
1295
  );
1293
1296
  const Button_css_ts_vanilla = "";
1294
- var Button$3 = createRuntimeFn({ defaultClassName: "_1atfpl9e _8nex5a1 _8nex5a0 _1atfpl9d x4g6301", variantClassNames: { size: { "300": "_1atfpl9f", "400": "_1atfpl9g", "500": "_1atfpl9h" }, variant: { Primary: "_1atfpl9i", Secondary: "_1atfpl9j", Success: "_1atfpl9k", Warning: "_1atfpl9l", Critical: "_1atfpl9m" }, fill: { Solid: "_1atfpl9n", Soft: "_1atfpl9o", None: "_1atfpl9p" }, outlined: { true: "_1atfpl9q" }, radii: { "0": "ebramc1", "300": "ebramc2", "400": "ebramc3", "500": "ebramc4", Inherit: "ebramc0", Pill: "ebramc5" } }, defaultVariants: { size: "400", variant: "Primary", fill: "Solid", radii: "Pill" }, compoundVariants: [[{ variant: "Secondary", fill: "Solid" }, "_1atfpl9x"], [{ variant: "Secondary", fill: "None" }, "_1atfpl9y"], [{ variant: "Critical", fill: "Soft" }, "_1atfpl9z"], [{ variant: "Critical", fill: "Solid" }, "_1atfpl910"], [{ fill: "Solid", outlined: true }, "_1atfpl911"], [{ variant: "Primary", fill: "Solid" }, "_1atfpl912"]] });
1295
- const Button$2 = as(
1297
+ var Button$4 = createRuntimeFn({ defaultClassName: "_1atfpl9e _8nex5a1 _8nex5a0 _1atfpl9d x4g6301", variantClassNames: { size: { "300": "_1atfpl9f", "400": "_1atfpl9g", "500": "_1atfpl9h" }, variant: { Primary: "_1atfpl9i", Secondary: "_1atfpl9j", Success: "_1atfpl9k", Warning: "_1atfpl9l", Critical: "_1atfpl9m" }, fill: { Solid: "_1atfpl9n", Soft: "_1atfpl9o", None: "_1atfpl9p" }, outlined: { true: "_1atfpl9q" }, radii: { "0": "ebramc1", "300": "ebramc2", "400": "ebramc3", "500": "ebramc4", Inherit: "ebramc0", Pill: "ebramc5" } }, defaultVariants: { size: "400", variant: "Primary", fill: "Solid", radii: "Pill" }, compoundVariants: [[{ variant: "Secondary", fill: "Solid" }, "_1atfpl9x"], [{ variant: "Secondary", fill: "None" }, "_1atfpl9y"], [{ variant: "Critical", fill: "Soft" }, "_1atfpl9z"], [{ variant: "Critical", fill: "Solid" }, "_1atfpl910"], [{ fill: "Solid", outlined: true }, "_1atfpl911"], [{ variant: "Primary", fill: "Solid" }, "_1atfpl912"]] });
1298
+ const Button$3 = as(
1296
1299
  ({
1297
1300
  as: AsButton = "button",
1298
1301
  className,
@@ -1308,7 +1311,7 @@ const Button$2 = as(
1308
1311
  }, ref) => /* @__PURE__ */ jsxs(
1309
1312
  AsButton,
1310
1313
  {
1311
- className: classNames(Button$3({ size: size2, variant, fill, outlined, radii }), className),
1314
+ className: classNames(Button$4({ size: size2, variant, fill, outlined, radii }), className),
1312
1315
  "data-ui-before": before ? true : void 0,
1313
1316
  "data-ui-after": after ? true : void 0,
1314
1317
  ...props,
@@ -6094,8 +6097,8 @@ const Checkbox = forwardRef(
6094
6097
  ] })
6095
6098
  );
6096
6099
  const Chip_css_ts_vanilla = "";
6097
- var Chip$1 = createRuntimeFn({ defaultClassName: "tg8exa6 _8nex5a1 _8nex5a0 x4g6300 x4g6301", variantClassNames: { variant: { Background: "tg8exa7", Surface: "tg8exa8", SurfaceVariant: "tg8exa9", Primary: "tg8exaa", Secondary: "tg8exab", Info: "tg8exac", Success: "tg8exad", Warning: "tg8exae", Critical: "tg8exaf" }, size: { "400": "tg8exag", "500": "tg8exah" }, fill: { Soft: "tg8exai", None: "tg8exaj" }, outlined: { true: "tg8exak" }, radii: { "0": "ebramc1", "300": "ebramc2", "400": "ebramc3", "500": "ebramc4", Inherit: "ebramc0", Pill: "ebramc5" } }, defaultVariants: { variant: "Surface", fill: "Soft", size: "400", radii: "400" }, compoundVariants: [[{ variant: "Info", outlined: true }, "tg8exar"], [{ variant: "Success", outlined: true }, "tg8exas"], [{ variant: "Warning", outlined: true }, "tg8exat"], [{ variant: "Critical", outlined: true }, "tg8exau"]] });
6098
- const Chip = as(
6100
+ var Chip$2 = createRuntimeFn({ defaultClassName: "tg8exa6 _8nex5a1 _8nex5a0 x4g6300 x4g6301", variantClassNames: { variant: { Background: "tg8exa7", Surface: "tg8exa8", SurfaceVariant: "tg8exa9", Primary: "tg8exaa", Secondary: "tg8exab", Info: "tg8exac", Success: "tg8exad", Warning: "tg8exae", Critical: "tg8exaf" }, size: { "400": "tg8exag", "500": "tg8exah" }, fill: { Soft: "tg8exai", None: "tg8exaj" }, outlined: { true: "tg8exak" }, radii: { "0": "ebramc1", "300": "ebramc2", "400": "ebramc3", "500": "ebramc4", Inherit: "ebramc0", Pill: "ebramc5" } }, defaultVariants: { variant: "Surface", fill: "Soft", size: "400", radii: "400" }, compoundVariants: [[{ variant: "Info", outlined: true }, "tg8exar"], [{ variant: "Success", outlined: true }, "tg8exas"], [{ variant: "Warning", outlined: true }, "tg8exat"], [{ variant: "Critical", outlined: true }, "tg8exau"]] });
6101
+ const Chip$1 = as(
6099
6102
  ({
6100
6103
  as: AsChip = "button",
6101
6104
  className,
@@ -6112,7 +6115,7 @@ const Chip = as(
6112
6115
  AsChip,
6113
6116
  {
6114
6117
  className: classNames(
6115
- Chip$1({
6118
+ Chip$2({
6116
6119
  variant,
6117
6120
  fill,
6118
6121
  size: size2,
@@ -6203,7 +6206,7 @@ const Input = forwardRef(
6203
6206
  );
6204
6207
  const Form_css_ts_vanilla = "";
6205
6208
  var Body$4 = "_1699xxt1";
6206
- var Card$3 = "_1699xxt8";
6209
+ var Card$4 = "_1699xxt8";
6207
6210
  var CardTone = createRuntimeFn({ defaultClassName: "", variantClassNames: { variant: { Surface: "_1699xxt9", SurfaceVariant: "_1699xxta", Background: "_1699xxtb", Primary: "_1699xxtc", Secondary: "_1699xxtd", Success: "_1699xxte", Warning: "_1699xxtf", Critical: "_1699xxtg" } }, defaultVariants: {}, compoundVariants: [] });
6208
6211
  var Children = "_1699xxt4";
6209
6212
  var Control = "_1699xxt5";
@@ -6286,7 +6289,7 @@ const FormCard = as(
6286
6289
  gap: "0",
6287
6290
  ...props,
6288
6291
  ref,
6289
- className: classNames(Card$3, CardTone({ variant }), className),
6292
+ className: classNames(Card$4, CardTone({ variant }), className),
6290
6293
  "data-weave-form-card": true
6291
6294
  }
6292
6295
  )
@@ -17719,7 +17722,7 @@ const ToggleChip_css_ts_vanilla = "";
17719
17722
  var ToggleChip$1 = "_1wh5y420";
17720
17723
  const ToggleChip = as(
17721
17724
  ({ as: Component = "button", pressed, onToggle, className, onClick, ...props }, ref) => /* @__PURE__ */ jsx(
17722
- Chip,
17725
+ Chip$1,
17723
17726
  {
17724
17727
  as: Component,
17725
17728
  type: Component === "button" ? "button" : void 0,
@@ -18587,7 +18590,7 @@ var AddAgentRow = "pkh0681u _8nex5a1 _8nex5a0 x4g6300";
18587
18590
  var AgentChoice = "pkh068w _8nex5a1 _8nex5a0";
18588
18591
  var AgentTile = "pkh06817 _8nex5a1 _8nex5a0";
18589
18592
  var AllSetCheck = "pkh068l";
18590
- var Button$1 = "pkh068e _8nex5a1 _8nex5a0 x4g6300";
18593
+ var Button$2 = "pkh068e _8nex5a1 _8nex5a0 x4g6300";
18591
18594
  var ButtonFull = "pkh068h";
18592
18595
  var ButtonType = { Dark: "pkh068f", Outline: "pkh068g" };
18593
18596
  var CardText = "pkh06816";
@@ -18664,7 +18667,7 @@ const LobbyButton = as(
18664
18667
  Component,
18665
18668
  {
18666
18669
  type: Component === "button" ? "button" : void 0,
18667
- className: classNames(Button$1, ButtonType[variant], full && ButtonFull, className),
18670
+ className: classNames(Button$2, ButtonType[variant], full && ButtonFull, className),
18668
18671
  ...props,
18669
18672
  ref,
18670
18673
  children: /* @__PURE__ */ jsx(Text, { as: "span", size: "B300", children })
@@ -18965,16 +18968,17 @@ const SidebarAddAgent = as(
18965
18968
  )
18966
18969
  );
18967
18970
  const AccountCard_css_ts_vanilla = "";
18968
- var Card$2 = "dzm7ge0 _8nex5a1 _8nex5a0";
18971
+ var Card$3 = "dzm7ge0 _8nex5a1 _8nex5a0";
18969
18972
  var Slot = "dzm7ge1";
18970
18973
  const AccountCard = forwardRef(
18971
- ({ header: header2, footer, children, className, ...props }, ref) => /* @__PURE__ */ jsxs(
18974
+ ({ header: header2, footer, size: size2 = "default", children, className, ...props }, ref) => /* @__PURE__ */ jsxs(
18972
18975
  "div",
18973
18976
  {
18974
18977
  ...props,
18975
18978
  "data-weave-account-card": true,
18979
+ "data-size": size2,
18976
18980
  ref,
18977
- className: classNames(lightTheme, Card$2, className),
18981
+ className: classNames(lightTheme, Card$3, className),
18978
18982
  children: [
18979
18983
  header2 && /* @__PURE__ */ jsx("div", { className: Slot, children: header2 }),
18980
18984
  /* @__PURE__ */ jsx("div", { className: Slot, children }),
@@ -18985,7 +18989,7 @@ const AccountCard = forwardRef(
18985
18989
  );
18986
18990
  AccountCard.displayName = "AccountCard";
18987
18991
  const OnboardingKeyButton_css_ts_vanilla = "";
18988
- var Button = "_1idz8s11 _8nex5a1 _8nex5a0";
18992
+ var Button$1 = "_1idz8s11 _8nex5a1 _8nex5a0";
18989
18993
  var Fill = "_1idz8s13";
18990
18994
  var Glow = "_1idz8s12";
18991
18995
  var Label = "_1idz8s14";
@@ -18998,7 +19002,7 @@ const OnboardingKeyButton = forwardRef(
18998
19002
  "data-full-width": fullWidth || void 0,
18999
19003
  ref,
19000
19004
  type,
19001
- className: classNames(Button, className),
19005
+ className: classNames(Button$1, className),
19002
19006
  children: [
19003
19007
  /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: Glow }),
19004
19008
  /* @__PURE__ */ jsx("span", { "data-weave-key-fill": true, "aria-hidden": "true", className: Fill }),
@@ -19008,31 +19012,74 @@ const OnboardingKeyButton = forwardRef(
19008
19012
  )
19009
19013
  );
19010
19014
  OnboardingKeyButton.displayName = "OnboardingKeyButton";
19015
+ const OnboardingButton_css_ts_vanilla = "";
19016
+ var Button = "j7dz860 _8nex5a1 _8nex5a0";
19017
+ const OnboardingButton = forwardRef(
19018
+ ({ className, type = "button", variant = "Ghost", fullWidth = false, ...props }, ref) => /* @__PURE__ */ jsx(
19019
+ "button",
19020
+ {
19021
+ ...props,
19022
+ ref,
19023
+ type,
19024
+ "data-variant": variant,
19025
+ "data-full-width": fullWidth || void 0,
19026
+ className: classNames(Button, className)
19027
+ }
19028
+ )
19029
+ );
19030
+ OnboardingButton.displayName = "OnboardingButton";
19031
+ const OnboardingChip_css_ts_vanilla = "";
19032
+ var Check$1 = "ck5bid1";
19033
+ var Chip = "ck5bid0 _8nex5a1 _8nex5a0";
19034
+ const OnboardingChip = forwardRef(
19035
+ ({ pressed, onPressedChange, onClick, children, className, ...props }, ref) => /* @__PURE__ */ jsxs(
19036
+ "button",
19037
+ {
19038
+ ...props,
19039
+ ref,
19040
+ type: "button",
19041
+ "aria-pressed": pressed,
19042
+ className: classNames(Chip, className),
19043
+ onClick: (event) => {
19044
+ onClick == null ? void 0 : onClick(event);
19045
+ if (!event.defaultPrevented)
19046
+ onPressedChange(!pressed);
19047
+ },
19048
+ children: [
19049
+ pressed && /* @__PURE__ */ jsx(Icon$2, { "aria-hidden": true, src: Icons.Check, size: "50", className: Check$1 }),
19050
+ children
19051
+ ]
19052
+ }
19053
+ )
19054
+ );
19055
+ OnboardingChip.displayName = "OnboardingChip";
19011
19056
  const OptionCard_css_ts_vanilla = "";
19012
19057
  var Body$1 = "g3b1zp2";
19013
- var Card$1 = "g3b1zp1 _8nex5a1 _8nex5a0";
19058
+ var Card$2 = "g3b1zp1 _8nex5a1 _8nex5a0";
19014
19059
  var Description$1 = "g3b1zp4";
19015
19060
  var Group$1 = "g3b1zp0";
19016
- var Indicator = "g3b1zp5";
19061
+ var Indicator = "g3b1zp6";
19062
+ var Status$1 = "g3b1zp5";
19017
19063
  var Title$1 = "g3b1zp3";
19018
19064
  const OptionCardGroup = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Root2, { ...props, ref, className: classNames(Group$1, className) }));
19019
19065
  OptionCardGroup.displayName = "OptionCardGroup";
19020
19066
  const OptionCard = forwardRef(
19021
- ({ title, description, before, className, ...props }, ref) => {
19067
+ ({ title, description, before, status, className, ...props }, ref) => {
19022
19068
  const id = useId$1();
19023
19069
  return /* @__PURE__ */ jsxs(
19024
19070
  Item2,
19025
19071
  {
19026
19072
  "aria-labelledby": `${id}-title`,
19027
- "aria-describedby": description ? `${id}-description` : void 0,
19073
+ "aria-describedby": [description && `${id}-description`, status && `${id}-status`].filter(Boolean).join(" ") || void 0,
19028
19074
  ...props,
19029
19075
  ref,
19030
- className: classNames(Card$1, className),
19076
+ className: classNames(Card$2, className),
19031
19077
  children: [
19032
19078
  before && /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: before }),
19033
19079
  /* @__PURE__ */ jsxs("span", { className: Body$1, children: [
19034
19080
  /* @__PURE__ */ jsx("span", { id: `${id}-title`, className: Title$1, children: title }),
19035
- description && /* @__PURE__ */ jsx("span", { id: `${id}-description`, className: Description$1, children: description })
19081
+ description && /* @__PURE__ */ jsx("span", { id: `${id}-description`, className: Description$1, children: description }),
19082
+ status && /* @__PURE__ */ jsx("span", { id: `${id}-status`, className: Status$1, children: status })
19036
19083
  ] }),
19037
19084
  /* @__PURE__ */ jsx("span", { className: Indicator, "aria-hidden": "true", children: /* @__PURE__ */ jsx(Indicator$1, { children: "✓" }) })
19038
19085
  ]
@@ -19096,8 +19143,16 @@ ColorSwatchPicker.displayName = "ColorSwatchPicker";
19096
19143
  const OnboardingSetup_css_ts_vanilla = "";
19097
19144
  var Actions = "_10w4f9zc";
19098
19145
  var Body = "_10w4f9z5";
19146
+ var Card$1 = "_10w4f9zd";
19147
+ var CardBar = "_10w4f9zk";
19148
+ var CardBarFill = "_10w4f9zn";
19149
+ var CardBarInset = "var(--_10w4f9zj)";
19150
+ var CardHeading = "_10w4f9ze";
19151
+ var CardMeta = "_10w4f9zg";
19152
+ var CardStatus = "_10w4f9zi";
19153
+ var CardTitle = "_10w4f9zf";
19099
19154
  var Description = "_10w4f9z7";
19100
- var Hidden = "_10w4f9zd";
19155
+ var Hidden = "_10w4f9zo";
19101
19156
  var Navigation = "_10w4f9zb";
19102
19157
  var Progress = "_10w4f9z0";
19103
19158
  var ProgressFill = "_10w4f9z2";
@@ -19194,10 +19249,9 @@ const SetupStatusRow = forwardRef(
19194
19249
  }
19195
19250
  ),
19196
19251
  action2 && /* @__PURE__ */ jsx(
19197
- Button$2,
19252
+ OnboardingButton,
19198
19253
  {
19199
- type: "button",
19200
- variant: "Secondary",
19254
+ variant: "Brand",
19201
19255
  ref: bindAction,
19202
19256
  "aria-disabled": action2.disabled || state === "working" || void 0,
19203
19257
  onClick: () => {
@@ -19212,6 +19266,63 @@ const SetupStatusRow = forwardRef(
19212
19266
  }
19213
19267
  );
19214
19268
  SetupStatusRow.displayName = "SetupStatusRow";
19269
+ const SetupProgressCard = forwardRef(
19270
+ ({
19271
+ title,
19272
+ meta: meta2,
19273
+ state = "working",
19274
+ statusText,
19275
+ value,
19276
+ max: max2 = 100,
19277
+ progressLabel,
19278
+ className,
19279
+ ...props
19280
+ }, ref) => {
19281
+ const end = Number.isFinite(max2) && max2 > 0 ? max2 : 100;
19282
+ const known = value !== void 0 && Number.isFinite(value);
19283
+ let amount;
19284
+ if (state === "ready")
19285
+ amount = end;
19286
+ else if (known)
19287
+ amount = Math.min(end, Math.max(0, value));
19288
+ const indeterminate = state === "working" && amount === void 0;
19289
+ return /* @__PURE__ */ jsxs("div", { ...props, ref, "data-state": state, className: classNames(Card$1, className), children: [
19290
+ /* @__PURE__ */ jsxs("p", { className: CardHeading, children: [
19291
+ /* @__PURE__ */ jsx("span", { className: CardTitle, children: title }),
19292
+ meta2 && /* @__PURE__ */ jsx("span", { className: CardMeta, children: meta2 })
19293
+ ] }),
19294
+ /* @__PURE__ */ jsxs("span", { role: "status", "aria-atomic": "true", "data-state": state, className: CardStatus, children: [
19295
+ /* @__PURE__ */ jsxs("span", { className: Hidden, children: [
19296
+ title,
19297
+ ": "
19298
+ ] }),
19299
+ statusText
19300
+ ] }),
19301
+ state !== "error" && /* @__PURE__ */ jsx(
19302
+ "div",
19303
+ {
19304
+ role: "progressbar",
19305
+ "aria-label": progressLabel ?? title,
19306
+ "aria-valuemin": indeterminate ? void 0 : 0,
19307
+ "aria-valuemax": indeterminate ? void 0 : end,
19308
+ "aria-valuenow": indeterminate ? void 0 : amount,
19309
+ "data-indeterminate": indeterminate || void 0,
19310
+ className: CardBar,
19311
+ children: /* @__PURE__ */ jsx(
19312
+ "div",
19313
+ {
19314
+ className: CardBarFill,
19315
+ style: indeterminate ? void 0 : {
19316
+ [CardBarInset.slice(4, -1)]: `${100 * (1 - (amount ?? 0) / end)}%`
19317
+ }
19318
+ }
19319
+ )
19320
+ }
19321
+ )
19322
+ ] });
19323
+ }
19324
+ );
19325
+ SetupProgressCard.displayName = "SetupProgressCard";
19215
19326
  const permissionStates = {
19216
19327
  "not-allowed": "idle",
19217
19328
  waiting: "working",
@@ -19582,9 +19693,9 @@ export {
19582
19693
  AvatarImage,
19583
19694
  Badge,
19584
19695
  Box,
19585
- Button$2 as Button,
19696
+ Button$3 as Button,
19586
19697
  Checkbox,
19587
- Chip,
19698
+ Chip$1 as Chip,
19588
19699
  ColorSwatchPicker,
19589
19700
  CommonsTab,
19590
19701
  CommonsTabStrip,
@@ -19642,6 +19753,8 @@ export {
19642
19753
  MenuItem,
19643
19754
  Modal,
19644
19755
  NavCollapseRow,
19756
+ OnboardingButton,
19757
+ OnboardingChip,
19645
19758
  OnboardingFinish,
19646
19759
  OnboardingKeyButton,
19647
19760
  OnboardingNavigation,
@@ -19698,6 +19811,7 @@ export {
19698
19811
  SequenceCard,
19699
19812
  ServerBadge,
19700
19813
  FormRow as SettingTile,
19814
+ SetupProgressCard,
19701
19815
  SetupStatusRow,
19702
19816
  Sidebar,
19703
19817
  SidebarAddAgent,