@ag2/weave 0.15.2 → 0.16.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.
- package/dist/components/index.d.ts +1 -0
- package/dist/components/lobby/Lobby.css.d.ts +59 -0
- package/dist/components/lobby/LobbyCards.d.ts +86 -0
- package/dist/components/lobby/LobbyChecklist.d.ts +43 -0
- package/dist/components/lobby/LobbyLayout.d.ts +27 -0
- package/dist/components/lobby/index.d.ts +3 -0
- package/dist/index.js +415 -16
- package/dist/index.js.map +1 -1
- package/dist/style.css +541 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1246,8 +1246,8 @@ const Box = as(
|
|
|
1246
1246
|
)
|
|
1247
1247
|
);
|
|
1248
1248
|
const Button_css_ts_vanilla = "";
|
|
1249
|
-
var Button$
|
|
1250
|
-
const Button = as(
|
|
1249
|
+
var Button$2 = 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"]] });
|
|
1250
|
+
const Button$1 = as(
|
|
1251
1251
|
({
|
|
1252
1252
|
as: AsButton = "button",
|
|
1253
1253
|
className,
|
|
@@ -1263,7 +1263,7 @@ const Button = as(
|
|
|
1263
1263
|
}, ref) => /* @__PURE__ */ jsxs(
|
|
1264
1264
|
AsButton,
|
|
1265
1265
|
{
|
|
1266
|
-
className: classNames(Button$
|
|
1266
|
+
className: classNames(Button$2({ size: size2, variant, fill, outlined, radii }), className),
|
|
1267
1267
|
"data-ui-before": before ? true : void 0,
|
|
1268
1268
|
"data-ui-after": after ? true : void 0,
|
|
1269
1269
|
...props,
|
|
@@ -16679,7 +16679,7 @@ const PageNavContent = ({
|
|
|
16679
16679
|
children: /* @__PURE__ */ jsx("div", { className: PageNavContent$1, children })
|
|
16680
16680
|
}
|
|
16681
16681
|
) });
|
|
16682
|
-
const Page = as(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
16682
|
+
const Page$1 = as(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
16683
16683
|
Box,
|
|
16684
16684
|
{
|
|
16685
16685
|
grow: "Yes",
|
|
@@ -17692,8 +17692,8 @@ const RoomHeader_css_ts_vanilla = "";
|
|
|
17692
17692
|
var Controls$1 = "cv0ofl6";
|
|
17693
17693
|
var Divider = "cv0ofl7";
|
|
17694
17694
|
var Identity = "cv0ofl3";
|
|
17695
|
-
var Mark = "cv0ofl2";
|
|
17696
|
-
var Name$
|
|
17695
|
+
var Mark$1 = "cv0ofl2";
|
|
17696
|
+
var Name$4 = "cv0ofl4";
|
|
17697
17697
|
var RoomHeader$1 = "cv0ofl0 _8nex5a1 _8nex5a0";
|
|
17698
17698
|
var Row = "cv0ofl1";
|
|
17699
17699
|
var Spacer$1 = "cv0ofl5";
|
|
@@ -17702,7 +17702,7 @@ const RoomHeaderMark = as(
|
|
|
17702
17702
|
Component,
|
|
17703
17703
|
{
|
|
17704
17704
|
"data-faces": faces || void 0,
|
|
17705
|
-
className: classNames(Mark, className),
|
|
17705
|
+
className: classNames(Mark$1, className),
|
|
17706
17706
|
...props,
|
|
17707
17707
|
ref
|
|
17708
17708
|
}
|
|
@@ -17722,7 +17722,7 @@ const RoomHeader = as(
|
|
|
17722
17722
|
}, ref) => /* @__PURE__ */ jsx(Component, { className: classNames(RoomHeader$1, className), ...props, ref, children: /* @__PURE__ */ jsxs("div", { className: Row, children: [
|
|
17723
17723
|
mark,
|
|
17724
17724
|
/* @__PURE__ */ jsxs("div", { className: Identity, children: [
|
|
17725
|
-
/* @__PURE__ */ jsx(Text, { as: nameAs, size: "H5", truncate: true, className: Name$
|
|
17725
|
+
/* @__PURE__ */ jsx(Text, { as: nameAs, size: "H5", truncate: true, className: Name$4, children: name }),
|
|
17726
17726
|
people
|
|
17727
17727
|
] }),
|
|
17728
17728
|
/* @__PURE__ */ jsx("div", { className: Spacer$1 }),
|
|
@@ -18119,7 +18119,7 @@ var Body = "_1wyqgiia _1wyqgii9";
|
|
|
18119
18119
|
var Face$1 = "_1wyqgii4";
|
|
18120
18120
|
var Head$1 = "_1wyqgii3";
|
|
18121
18121
|
var Main = "_1wyqgii2 _8nex5a1 _8nex5a0 x4g6300";
|
|
18122
|
-
var Name$
|
|
18122
|
+
var Name$3 = "_1wyqgii5";
|
|
18123
18123
|
var ObjectRow = "_1wyqgiid _1wyqgii9";
|
|
18124
18124
|
var Replies = "_1wyqgiib _8nex5a1 _8nex5a0 x4g6300 _1wyqgii9";
|
|
18125
18125
|
var RepliesUnread = "_1wyqgiic";
|
|
@@ -18179,7 +18179,7 @@ const ActivityItem = as(
|
|
|
18179
18179
|
children: [
|
|
18180
18180
|
/* @__PURE__ */ jsxs("span", { className: Head$1, children: [
|
|
18181
18181
|
/* @__PURE__ */ jsx("span", { className: Face$1, children: avatar }),
|
|
18182
|
-
/* @__PURE__ */ jsx(Text, { as: "span", size: "H6", className: Name$
|
|
18182
|
+
/* @__PURE__ */ jsx(Text, { as: "span", size: "H6", className: Name$3, children: name }),
|
|
18183
18183
|
/* @__PURE__ */ jsx(Text, { as: "span", size: "T300", className: What$1, children: what }),
|
|
18184
18184
|
/* @__PURE__ */ jsx(Text, { as: "span", size: "T200", className: Time$1, children: time }),
|
|
18185
18185
|
unread && /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: UnreadDot })
|
|
@@ -18242,7 +18242,7 @@ var Face = "amkbq13";
|
|
|
18242
18242
|
var FileRow = "amkbq17";
|
|
18243
18243
|
var Glyph$1 = "amkbq12";
|
|
18244
18244
|
var Head = "amkbq11";
|
|
18245
|
-
var Name$
|
|
18245
|
+
var Name$2 = "amkbq14";
|
|
18246
18246
|
var QuoteCard$1 = "amkbq10 _8nex5a1 _8nex5a0 x4g6300";
|
|
18247
18247
|
var Snippet = "amkbq16";
|
|
18248
18248
|
var Time = "amkbq15";
|
|
@@ -18297,7 +18297,7 @@ const QuoteCard = as(
|
|
|
18297
18297
|
/* @__PURE__ */ jsxs("span", { className: Head, children: [
|
|
18298
18298
|
glyph,
|
|
18299
18299
|
avatar && /* @__PURE__ */ jsx("span", { className: Face, "aria-hidden": true, children: avatar }),
|
|
18300
|
-
/* @__PURE__ */ jsx(Text, { as: "span", size: "L400", className: Name$
|
|
18300
|
+
/* @__PURE__ */ jsx(Text, { as: "span", size: "L400", className: Name$2, children: name }),
|
|
18301
18301
|
/* @__PURE__ */ jsx(Text, { as: "span", size: "C400", className: Time, children: [time, source2].filter(Boolean).join(" · ") })
|
|
18302
18302
|
] }),
|
|
18303
18303
|
context === "File" ? /* @__PURE__ */ jsxs("span", { className: FileRow, children: [
|
|
@@ -18313,7 +18313,7 @@ const ReplyBar_css_ts_vanilla = "";
|
|
|
18313
18313
|
var Close = "_1p1kcxb6 _1p1kcxb4 _8nex5a1 _8nex5a0 x4g6300";
|
|
18314
18314
|
var Glyph = "_1p1kcxb1";
|
|
18315
18315
|
var Mention = "_1p1kcxb5 _1p1kcxb4 _8nex5a1 _8nex5a0 x4g6300";
|
|
18316
|
-
var Name = "_1p1kcxb3";
|
|
18316
|
+
var Name$1 = "_1p1kcxb3";
|
|
18317
18317
|
var ReplyBar$1 = "_1p1kcxb0 _8nex5a1 _8nex5a0";
|
|
18318
18318
|
var What = "_1p1kcxb2";
|
|
18319
18319
|
const ReplyBar = as(
|
|
@@ -18330,7 +18330,7 @@ const ReplyBar = as(
|
|
|
18330
18330
|
/* @__PURE__ */ jsx(Icon$2, { className: Glyph, src: Icons.ReplyArrow, size: "compact", "aria-hidden": true }),
|
|
18331
18331
|
/* @__PURE__ */ jsxs(Text, { as: "span", size: "T300", className: What, children: [
|
|
18332
18332
|
"Replying to ",
|
|
18333
|
-
/* @__PURE__ */ jsx("span", { className: Name, children: name }),
|
|
18333
|
+
/* @__PURE__ */ jsx("span", { className: Name$1, children: name }),
|
|
18334
18334
|
" ",
|
|
18335
18335
|
snippet
|
|
18336
18336
|
] }),
|
|
@@ -18352,6 +18352,389 @@ const ReplyBar = as(
|
|
|
18352
18352
|
/* @__PURE__ */ jsx("button", { type: "button", className: Close, "aria-label": "Cancel reply", onClick: onCancel, children: /* @__PURE__ */ jsx(Icon$2, { src: Icons.Cross, size: "compact", "aria-hidden": true }) })
|
|
18353
18353
|
] })
|
|
18354
18354
|
);
|
|
18355
|
+
const Lobby_css_ts_vanilla = "";
|
|
18356
|
+
var About = "pkh0681i";
|
|
18357
|
+
var AddAgentRow = "pkh0681u _8nex5a1 _8nex5a0 x4g6300";
|
|
18358
|
+
var AgentChoice = "pkh068w _8nex5a1 _8nex5a0";
|
|
18359
|
+
var AgentTile = "pkh06817 _8nex5a1 _8nex5a0";
|
|
18360
|
+
var AllSetCheck = "pkh068l";
|
|
18361
|
+
var Button = "pkh068e _8nex5a1 _8nex5a0 x4g6300";
|
|
18362
|
+
var ButtonFull = "pkh068h";
|
|
18363
|
+
var ButtonType = { Dark: "pkh068f", Outline: "pkh068g" };
|
|
18364
|
+
var CardText = "pkh06816";
|
|
18365
|
+
var ChoiceDescription = "pkh068x";
|
|
18366
|
+
var Dot = { live: "pkh0681b", off: "pkh0681c", needsYou: "pkh0681d" };
|
|
18367
|
+
var GetStarted = "pkh068i _8nex5a1 _8nex5a0";
|
|
18368
|
+
var GetStartedHead = "pkh068j";
|
|
18369
|
+
var GetStartedTitle = "pkh068k";
|
|
18370
|
+
var Glow = "pkh068t";
|
|
18371
|
+
var Hero = "pkh0686";
|
|
18372
|
+
var HeroAside = "pkh068a";
|
|
18373
|
+
var HeroText = "pkh0687";
|
|
18374
|
+
var HeroTitle = { large: "pkh0688", medium: "pkh0689" };
|
|
18375
|
+
var LastMessage = "pkh0681n";
|
|
18376
|
+
var Mark = { "32": "pkh068y", "36": "pkh068z", "40": "pkh06810", "44": "pkh06811" };
|
|
18377
|
+
var Name = "pkh06813";
|
|
18378
|
+
var NameLine = "pkh06812";
|
|
18379
|
+
var NeedsYouPill = "pkh0681t _8nex5a1 _8nex5a0 x4g6300";
|
|
18380
|
+
var Page = "pkh0683 _8nex5a1 _8nex5a0";
|
|
18381
|
+
var PageFrame = "pkh0684";
|
|
18382
|
+
var Person = "pkh0681q _8nex5a1 _8nex5a0 x4g6300";
|
|
18383
|
+
var PersonFace = "pkh0681r";
|
|
18384
|
+
var PersonName = "pkh0681s";
|
|
18385
|
+
var Progress = "pkh068m";
|
|
18386
|
+
var ProgressFill = "pkh068o";
|
|
18387
|
+
var ProgressTrack = "pkh068n";
|
|
18388
|
+
var Resume = "pkh0681f _8nex5a1 _8nex5a0 x4g6300";
|
|
18389
|
+
var RoomCard = "pkh0681g _8nex5a1 _8nex5a0";
|
|
18390
|
+
var RoomCardText = "pkh0681h";
|
|
18391
|
+
var RoomMark = { "36": "pkh0681j", "44": "pkh0681k" };
|
|
18392
|
+
var RoomRow = "pkh0681l _8nex5a1 _8nex5a0 x4g6300";
|
|
18393
|
+
var RoomRowMeta = "pkh0681o";
|
|
18394
|
+
var RoomRowText = "pkh0681m";
|
|
18395
|
+
var Secondary = "pkh0680";
|
|
18396
|
+
var Section = "pkh0685";
|
|
18397
|
+
var SectionLink = "pkh068d _8nex5a1 _8nex5a0 x4g6300";
|
|
18398
|
+
var SectionTitle = "pkh068b";
|
|
18399
|
+
var SectionTitleText = "pkh068c";
|
|
18400
|
+
var SetupChip = "pkh0681e";
|
|
18401
|
+
var StatusLine = "pkh06819";
|
|
18402
|
+
var StatusText = "pkh0681a";
|
|
18403
|
+
var Step = "pkh068p _8nex5a1 _8nex5a0 x4g6300";
|
|
18404
|
+
var StepEnd = "pkh068s";
|
|
18405
|
+
var StepMark = "pkh068q";
|
|
18406
|
+
var StepText = "pkh068r";
|
|
18407
|
+
var Tag = "pkh06814";
|
|
18408
|
+
var TileOpen = "pkh06818 _8nex5a1 _8nex5a0 x4g6300";
|
|
18409
|
+
var Upright = "pkh0682";
|
|
18410
|
+
var YourAgent = "pkh06815 _8nex5a1 _8nex5a0";
|
|
18411
|
+
const LobbyPage = as(
|
|
18412
|
+
({ as: Component = "div", className, children, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: PageFrame, children: /* @__PURE__ */ jsx(Component, { className: classNames(Page, className), ...props, ref, children }) })
|
|
18413
|
+
);
|
|
18414
|
+
const LobbyHero = as(
|
|
18415
|
+
({ as: Component = "header", eyebrow, title, line, size: size2 = "large", aside, className, ...props }, ref) => /* @__PURE__ */ jsxs(Component, { className: classNames(Hero, className), ...props, ref, children: [
|
|
18416
|
+
/* @__PURE__ */ jsxs("div", { className: HeroText, children: [
|
|
18417
|
+
eyebrow && /* @__PURE__ */ jsx(Text, { as: "span", size: "L400", className: Secondary, children: eyebrow }),
|
|
18418
|
+
/* @__PURE__ */ jsx(Text, { as: "h1", className: HeroTitle[size2], children: title }),
|
|
18419
|
+
line && /* @__PURE__ */ jsx(Text, { as: "p", size: "T400", className: Secondary, children: line })
|
|
18420
|
+
] }),
|
|
18421
|
+
aside && /* @__PURE__ */ jsx("div", { className: HeroAside, children: aside })
|
|
18422
|
+
] })
|
|
18423
|
+
);
|
|
18424
|
+
const LobbySectionTitle = as(
|
|
18425
|
+
({ as: Component = "div", title, link, onLink, className, ...props }, ref) => /* @__PURE__ */ jsxs(Component, { className: classNames(SectionTitle, className), ...props, ref, children: [
|
|
18426
|
+
/* @__PURE__ */ jsx(Text, { as: "h2", size: "H5", className: SectionTitleText, children: title }),
|
|
18427
|
+
link && /* @__PURE__ */ jsx(Text, { as: "button", type: "button", size: "L400", className: SectionLink, onClick: onLink, children: link })
|
|
18428
|
+
] })
|
|
18429
|
+
);
|
|
18430
|
+
const LobbySection = as(
|
|
18431
|
+
({ as: Component = "section", className, ...props }, ref) => /* @__PURE__ */ jsx(Component, { className: classNames(Section, className), ...props, ref })
|
|
18432
|
+
);
|
|
18433
|
+
const LobbyButton = as(
|
|
18434
|
+
({ as: Component = "button", variant = "Outline", full, className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
18435
|
+
Component,
|
|
18436
|
+
{
|
|
18437
|
+
type: Component === "button" ? "button" : void 0,
|
|
18438
|
+
className: classNames(Button, ButtonType[variant], full && ButtonFull, className),
|
|
18439
|
+
...props,
|
|
18440
|
+
ref,
|
|
18441
|
+
children: /* @__PURE__ */ jsx(Text, { as: "span", size: "B300", children })
|
|
18442
|
+
}
|
|
18443
|
+
)
|
|
18444
|
+
);
|
|
18445
|
+
const LobbyProgress = as(
|
|
18446
|
+
({ as: Component = "div", done, total = 3, className, ...props }, ref) => /* @__PURE__ */ jsxs(Component, { className: classNames(Progress, className), ...props, ref, children: [
|
|
18447
|
+
/* @__PURE__ */ jsx(
|
|
18448
|
+
"span",
|
|
18449
|
+
{
|
|
18450
|
+
className: ProgressTrack,
|
|
18451
|
+
role: "progressbar",
|
|
18452
|
+
"aria-valuemin": 0,
|
|
18453
|
+
"aria-valuemax": total,
|
|
18454
|
+
"aria-valuenow": done,
|
|
18455
|
+
"aria-label": "Get started progress",
|
|
18456
|
+
children: /* @__PURE__ */ jsx("span", { className: ProgressFill, style: { width: `${done / total * 100}%` } })
|
|
18457
|
+
}
|
|
18458
|
+
),
|
|
18459
|
+
/* @__PURE__ */ jsxs(Text, { as: "span", size: "C400", className: classNames(Secondary, Upright), children: [
|
|
18460
|
+
done,
|
|
18461
|
+
" of ",
|
|
18462
|
+
total
|
|
18463
|
+
] })
|
|
18464
|
+
] })
|
|
18465
|
+
);
|
|
18466
|
+
const LobbyStep = as(
|
|
18467
|
+
({ as: AsComponent, state, number, title, description, action: action2, onAction, className, ...props }, ref) => {
|
|
18468
|
+
const Component = AsComponent ?? (state === "Todo" ? "button" : "div");
|
|
18469
|
+
const mark = state === "Done" ? /* @__PURE__ */ jsx(Icon$2, { size: "100", src: Icons.Check, "aria-hidden": true }) : /* @__PURE__ */ jsx(Text, { as: "span", size: "L400", children: number });
|
|
18470
|
+
const text = /* @__PURE__ */ jsxs("span", { className: StepText, children: [
|
|
18471
|
+
/* @__PURE__ */ jsx(Text, { as: "span", size: "H6", children: title }),
|
|
18472
|
+
description && /* @__PURE__ */ jsx(Text, { as: "span", size: "T200", className: Secondary, children: description })
|
|
18473
|
+
] });
|
|
18474
|
+
return a__default.createElement(
|
|
18475
|
+
Component,
|
|
18476
|
+
{
|
|
18477
|
+
type: Component === "button" ? "button" : void 0,
|
|
18478
|
+
"data-state": state,
|
|
18479
|
+
className: classNames(Step, className),
|
|
18480
|
+
onClick: state === "Todo" ? onAction : void 0,
|
|
18481
|
+
...props,
|
|
18482
|
+
ref
|
|
18483
|
+
},
|
|
18484
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
18485
|
+
/* @__PURE__ */ jsx("span", { className: StepMark, children: mark }),
|
|
18486
|
+
text,
|
|
18487
|
+
state === "Todo" && /* @__PURE__ */ jsx(Icon$2, { className: StepEnd, size: "200", src: Icons.ChevronRight, "aria-hidden": true }),
|
|
18488
|
+
state === "Done" && /* @__PURE__ */ jsx(Text, { as: "span", size: "C400", className: classNames(StepEnd, Upright), children: "Done" }),
|
|
18489
|
+
state === "Current" && action2 && /* @__PURE__ */ jsx(LobbyButton, { variant: "Dark", onClick: onAction, children: action2 })
|
|
18490
|
+
] })
|
|
18491
|
+
);
|
|
18492
|
+
}
|
|
18493
|
+
);
|
|
18494
|
+
const LobbyGetStarted = as(
|
|
18495
|
+
({
|
|
18496
|
+
as: Component = "section",
|
|
18497
|
+
done,
|
|
18498
|
+
total = 3,
|
|
18499
|
+
menu,
|
|
18500
|
+
allSet,
|
|
18501
|
+
onHide,
|
|
18502
|
+
className,
|
|
18503
|
+
children,
|
|
18504
|
+
...props
|
|
18505
|
+
}, ref) => /* @__PURE__ */ jsx(
|
|
18506
|
+
Component,
|
|
18507
|
+
{
|
|
18508
|
+
"aria-label": allSet ? "You're all set" : "Get started",
|
|
18509
|
+
className: classNames(GetStarted, className),
|
|
18510
|
+
...props,
|
|
18511
|
+
ref,
|
|
18512
|
+
children: allSet ? /* @__PURE__ */ jsxs("div", { className: GetStartedHead, children: [
|
|
18513
|
+
/* @__PURE__ */ jsx("span", { className: AllSetCheck, children: /* @__PURE__ */ jsx(Icon$2, { size: "50", src: Icons.Check, "aria-hidden": true }) }),
|
|
18514
|
+
/* @__PURE__ */ jsxs("span", { className: CardText, children: [
|
|
18515
|
+
/* @__PURE__ */ jsx(Text, { as: "span", size: "H6", children: "You’re all set" }),
|
|
18516
|
+
/* @__PURE__ */ jsx(Text, { as: "span", size: "C400", className: classNames(Secondary, Upright), children: "This goes away tomorrow. Your lobby becomes your everyday lobby." })
|
|
18517
|
+
] }),
|
|
18518
|
+
/* @__PURE__ */ jsx(LobbyButton, { onClick: onHide, children: "Hide now" })
|
|
18519
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
18520
|
+
/* @__PURE__ */ jsxs("div", { className: GetStartedHead, children: [
|
|
18521
|
+
/* @__PURE__ */ jsx(Text, { as: "h2", size: "H6", className: GetStartedTitle, children: "Get started" }),
|
|
18522
|
+
/* @__PURE__ */ jsx(LobbyProgress, { done, total }),
|
|
18523
|
+
menu
|
|
18524
|
+
] }),
|
|
18525
|
+
children
|
|
18526
|
+
] })
|
|
18527
|
+
}
|
|
18528
|
+
)
|
|
18529
|
+
);
|
|
18530
|
+
const LobbyAgentChoice = as(
|
|
18531
|
+
({ as: Component = "div", mark, name, description, recommended, onAdd, className, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
18532
|
+
Component,
|
|
18533
|
+
{
|
|
18534
|
+
className: classNames(AgentChoice, recommended && Glow, className),
|
|
18535
|
+
...props,
|
|
18536
|
+
ref,
|
|
18537
|
+
children: [
|
|
18538
|
+
/* @__PURE__ */ jsx("span", { className: Mark["36"], children: mark }),
|
|
18539
|
+
/* @__PURE__ */ jsxs("span", { className: NameLine, children: [
|
|
18540
|
+
/* @__PURE__ */ jsx(Text, { as: "span", size: "H6", className: Name, children: name }),
|
|
18541
|
+
recommended && /* @__PURE__ */ jsx(Text, { as: "span", size: "C400", className: classNames(Tag, Upright), children: "Suggested" })
|
|
18542
|
+
] }),
|
|
18543
|
+
/* @__PURE__ */ jsx(Text, { as: "span", size: "T200", className: classNames(Secondary, ChoiceDescription), children: description }),
|
|
18544
|
+
/* @__PURE__ */ jsx(
|
|
18545
|
+
LobbyButton,
|
|
18546
|
+
{
|
|
18547
|
+
full: true,
|
|
18548
|
+
onClick: onAdd,
|
|
18549
|
+
"aria-label": typeof name === "string" ? `Add ${name}` : void 0,
|
|
18550
|
+
children: "Add"
|
|
18551
|
+
}
|
|
18552
|
+
)
|
|
18553
|
+
]
|
|
18554
|
+
}
|
|
18555
|
+
)
|
|
18556
|
+
);
|
|
18557
|
+
const LobbyYourAgentCard = as(
|
|
18558
|
+
({ as: Component = "div", mark, name, status, online = true, tip, onSayHi, className, ...props }, ref) => /* @__PURE__ */ jsxs(Component, { className: classNames(YourAgent, className), ...props, ref, children: [
|
|
18559
|
+
/* @__PURE__ */ jsx("span", { className: Mark["40"], children: mark }),
|
|
18560
|
+
/* @__PURE__ */ jsxs("span", { className: CardText, children: [
|
|
18561
|
+
/* @__PURE__ */ jsx(Text, { as: "span", size: "H6", className: Name, children: name }),
|
|
18562
|
+
/* @__PURE__ */ jsxs("span", { className: StatusLine, children: [
|
|
18563
|
+
/* @__PURE__ */ jsx("span", { className: online ? Dot.live : Dot.off, "aria-hidden": true }),
|
|
18564
|
+
/* @__PURE__ */ jsx(Text, { as: "span", size: "C400", className: classNames(StatusText, Upright), children: status })
|
|
18565
|
+
] }),
|
|
18566
|
+
tip && /* @__PURE__ */ jsx(Text, { as: "span", size: "T200", className: Secondary, children: tip })
|
|
18567
|
+
] }),
|
|
18568
|
+
onSayHi && /* @__PURE__ */ jsx(LobbyButton, { onClick: onSayHi, children: "Say hi" })
|
|
18569
|
+
] })
|
|
18570
|
+
);
|
|
18571
|
+
const LobbyAgentTile = as(
|
|
18572
|
+
({ as: Component = "div", mark, name, status, detail, onOpen, onResume, className, ...props }, ref) => {
|
|
18573
|
+
let line;
|
|
18574
|
+
if (status === "Needs setup") {
|
|
18575
|
+
line = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
18576
|
+
/* @__PURE__ */ jsx(Text, { as: "span", size: "C400", className: classNames(SetupChip, Upright), children: "Setup not finished" }),
|
|
18577
|
+
onResume && /* @__PURE__ */ jsx(
|
|
18578
|
+
Text,
|
|
18579
|
+
{
|
|
18580
|
+
as: "button",
|
|
18581
|
+
type: "button",
|
|
18582
|
+
size: "L400",
|
|
18583
|
+
className: Resume,
|
|
18584
|
+
onClick: onResume,
|
|
18585
|
+
"aria-label": `Resume setting up ${name}`,
|
|
18586
|
+
children: "Resume"
|
|
18587
|
+
}
|
|
18588
|
+
)
|
|
18589
|
+
] });
|
|
18590
|
+
} else {
|
|
18591
|
+
const label = status === "Working" ? void 0 : status;
|
|
18592
|
+
line = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
18593
|
+
/* @__PURE__ */ jsx("span", { className: status === "Offline" ? Dot.off : Dot.live, "aria-hidden": true }),
|
|
18594
|
+
/* @__PURE__ */ jsxs(Text, { as: "span", size: "C400", className: classNames(StatusText, Upright), children: [
|
|
18595
|
+
label,
|
|
18596
|
+
label && detail ? " · " : null,
|
|
18597
|
+
detail
|
|
18598
|
+
] })
|
|
18599
|
+
] });
|
|
18600
|
+
}
|
|
18601
|
+
return /* @__PURE__ */ jsxs(
|
|
18602
|
+
Component,
|
|
18603
|
+
{
|
|
18604
|
+
"data-status": status,
|
|
18605
|
+
className: classNames(AgentTile, className),
|
|
18606
|
+
...props,
|
|
18607
|
+
ref,
|
|
18608
|
+
children: [
|
|
18609
|
+
onOpen && /* @__PURE__ */ jsx("button", { type: "button", className: TileOpen, onClick: onOpen, "aria-label": name }),
|
|
18610
|
+
/* @__PURE__ */ jsx("span", { className: Mark["32"], children: mark }),
|
|
18611
|
+
/* @__PURE__ */ jsx(Text, { as: "span", size: "H6", className: classNames(Name, ButtonFull), children: name }),
|
|
18612
|
+
/* @__PURE__ */ jsx("span", { className: StatusLine, children: line })
|
|
18613
|
+
]
|
|
18614
|
+
}
|
|
18615
|
+
);
|
|
18616
|
+
}
|
|
18617
|
+
);
|
|
18618
|
+
const LobbyRoomCard = as(
|
|
18619
|
+
({
|
|
18620
|
+
as: Component = "div",
|
|
18621
|
+
mark,
|
|
18622
|
+
name,
|
|
18623
|
+
about,
|
|
18624
|
+
live,
|
|
18625
|
+
suggested,
|
|
18626
|
+
tag = "You chose this at sign-up",
|
|
18627
|
+
joinLabel = "Join",
|
|
18628
|
+
onJoin,
|
|
18629
|
+
className,
|
|
18630
|
+
...props
|
|
18631
|
+
}, ref) => /* @__PURE__ */ jsxs(
|
|
18632
|
+
Component,
|
|
18633
|
+
{
|
|
18634
|
+
className: classNames(RoomCard, suggested && Glow, className),
|
|
18635
|
+
...props,
|
|
18636
|
+
ref,
|
|
18637
|
+
children: [
|
|
18638
|
+
/* @__PURE__ */ jsx("span", { className: RoomMark["44"], children: mark ?? /* @__PURE__ */ jsx(Icon$2, { size: "200", src: Icons.Hash, "aria-hidden": true }) }),
|
|
18639
|
+
/* @__PURE__ */ jsxs("span", { className: RoomCardText, children: [
|
|
18640
|
+
/* @__PURE__ */ jsxs("span", { className: NameLine, children: [
|
|
18641
|
+
/* @__PURE__ */ jsx(Text, { as: "span", size: "H6", className: Name, children: name }),
|
|
18642
|
+
suggested && /* @__PURE__ */ jsx(Text, { as: "span", size: "C400", className: classNames(Tag, Upright), children: tag })
|
|
18643
|
+
] }),
|
|
18644
|
+
about && /* @__PURE__ */ jsx(Text, { as: "span", size: "T200", className: classNames(Secondary, About), children: about }),
|
|
18645
|
+
live && /* @__PURE__ */ jsxs("span", { className: StatusLine, children: [
|
|
18646
|
+
/* @__PURE__ */ jsx("span", { className: Dot.live, "aria-hidden": true }),
|
|
18647
|
+
/* @__PURE__ */ jsx(Text, { as: "span", size: "C400", className: classNames(StatusText, Upright), children: live })
|
|
18648
|
+
] })
|
|
18649
|
+
] }),
|
|
18650
|
+
onJoin && /* @__PURE__ */ jsx(LobbyButton, { onClick: onJoin, children: joinLabel })
|
|
18651
|
+
]
|
|
18652
|
+
}
|
|
18653
|
+
)
|
|
18654
|
+
);
|
|
18655
|
+
const LobbyRoomRow = as(
|
|
18656
|
+
({
|
|
18657
|
+
as: Component = "button",
|
|
18658
|
+
mark,
|
|
18659
|
+
name,
|
|
18660
|
+
lastMessage,
|
|
18661
|
+
time,
|
|
18662
|
+
unread = 0,
|
|
18663
|
+
highlight,
|
|
18664
|
+
className,
|
|
18665
|
+
...props
|
|
18666
|
+
}, ref) => /* @__PURE__ */ jsxs(
|
|
18667
|
+
Component,
|
|
18668
|
+
{
|
|
18669
|
+
type: Component === "button" ? "button" : void 0,
|
|
18670
|
+
"data-unread": unread > 0 || void 0,
|
|
18671
|
+
className: classNames(RoomRow, className),
|
|
18672
|
+
...props,
|
|
18673
|
+
ref,
|
|
18674
|
+
children: [
|
|
18675
|
+
/* @__PURE__ */ jsx("span", { className: RoomMark["36"], children: mark ?? /* @__PURE__ */ jsx(Icon$2, { size: "100", src: Icons.Hash, "aria-hidden": true }) }),
|
|
18676
|
+
/* @__PURE__ */ jsxs("span", { className: RoomRowText, children: [
|
|
18677
|
+
/* @__PURE__ */ jsx(Text, { as: "span", size: unread > 0 ? "H6" : "T300", className: Name, children: name }),
|
|
18678
|
+
lastMessage && /* @__PURE__ */ jsx(Text, { as: "span", size: "T200", className: LastMessage, children: lastMessage })
|
|
18679
|
+
] }),
|
|
18680
|
+
/* @__PURE__ */ jsxs("span", { className: RoomRowMeta, children: [
|
|
18681
|
+
time && /* @__PURE__ */ jsx(Text, { as: "span", size: "C400", className: Upright, children: time }),
|
|
18682
|
+
unread > 0 && /* @__PURE__ */ jsx(UnreadBadge, { count: unread, highlight })
|
|
18683
|
+
] })
|
|
18684
|
+
]
|
|
18685
|
+
}
|
|
18686
|
+
)
|
|
18687
|
+
);
|
|
18688
|
+
const LobbyPerson = as(
|
|
18689
|
+
({ as: Component = "button", avatar, name, className, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
18690
|
+
Component,
|
|
18691
|
+
{
|
|
18692
|
+
type: Component === "button" ? "button" : void 0,
|
|
18693
|
+
className: classNames(Person, className),
|
|
18694
|
+
...props,
|
|
18695
|
+
ref,
|
|
18696
|
+
children: [
|
|
18697
|
+
/* @__PURE__ */ jsx("span", { className: PersonFace, children: avatar }),
|
|
18698
|
+
/* @__PURE__ */ jsx(Text, { as: "span", size: "C400", className: classNames(PersonName, Upright), children: name })
|
|
18699
|
+
]
|
|
18700
|
+
}
|
|
18701
|
+
)
|
|
18702
|
+
);
|
|
18703
|
+
const LobbyNeedsYouPill = as(
|
|
18704
|
+
({ as: Component = "button", count: count2, className, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
18705
|
+
Component,
|
|
18706
|
+
{
|
|
18707
|
+
type: Component === "button" ? "button" : void 0,
|
|
18708
|
+
className: classNames(NeedsYouPill, className),
|
|
18709
|
+
...props,
|
|
18710
|
+
ref,
|
|
18711
|
+
children: [
|
|
18712
|
+
/* @__PURE__ */ jsx("span", { className: Dot.needsYou, "aria-hidden": true }),
|
|
18713
|
+
/* @__PURE__ */ jsxs(Text, { as: "span", size: "L400", children: [
|
|
18714
|
+
count2,
|
|
18715
|
+
" ",
|
|
18716
|
+
count2 === 1 ? "needs" : "need",
|
|
18717
|
+
" you · Open Activity"
|
|
18718
|
+
] })
|
|
18719
|
+
]
|
|
18720
|
+
}
|
|
18721
|
+
)
|
|
18722
|
+
);
|
|
18723
|
+
const SidebarAddAgent = as(
|
|
18724
|
+
({ as: Component = "button", className, children = "Add an agent", ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
18725
|
+
Component,
|
|
18726
|
+
{
|
|
18727
|
+
type: Component === "button" ? "button" : void 0,
|
|
18728
|
+
className: classNames(AddAgentRow, className),
|
|
18729
|
+
...props,
|
|
18730
|
+
ref,
|
|
18731
|
+
children: [
|
|
18732
|
+
/* @__PURE__ */ jsx(Icon$2, { size: "200", src: Icons.Plus, "aria-hidden": true }),
|
|
18733
|
+
/* @__PURE__ */ jsx(Text, { as: "span", size: "T300", children })
|
|
18734
|
+
]
|
|
18735
|
+
}
|
|
18736
|
+
)
|
|
18737
|
+
);
|
|
18355
18738
|
function ActionGroup({ actions, hint: hint$1 }) {
|
|
18356
18739
|
return /* @__PURE__ */ jsxs("div", { className: actionSection, children: [
|
|
18357
18740
|
/* @__PURE__ */ jsx("div", { className: actionGroup, role: "group", "aria-label": "Draft a PR request", children: actions.map((action$1) => /* @__PURE__ */ jsxs(
|
|
@@ -18390,7 +18773,7 @@ export {
|
|
|
18390
18773
|
AvatarImage,
|
|
18391
18774
|
Badge,
|
|
18392
18775
|
Box,
|
|
18393
|
-
Button,
|
|
18776
|
+
Button$1 as Button,
|
|
18394
18777
|
Checkbox,
|
|
18395
18778
|
Chip,
|
|
18396
18779
|
CommonsTab,
|
|
@@ -18427,6 +18810,21 @@ export {
|
|
|
18427
18810
|
InspectorHeader,
|
|
18428
18811
|
InspectorTab,
|
|
18429
18812
|
Line,
|
|
18813
|
+
LobbyAgentChoice,
|
|
18814
|
+
LobbyAgentTile,
|
|
18815
|
+
LobbyButton,
|
|
18816
|
+
LobbyGetStarted,
|
|
18817
|
+
LobbyHero,
|
|
18818
|
+
LobbyNeedsYouPill,
|
|
18819
|
+
LobbyPage,
|
|
18820
|
+
LobbyPerson,
|
|
18821
|
+
LobbyProgress,
|
|
18822
|
+
LobbyRoomCard,
|
|
18823
|
+
LobbyRoomRow,
|
|
18824
|
+
LobbySection,
|
|
18825
|
+
LobbySectionTitle,
|
|
18826
|
+
LobbyStep,
|
|
18827
|
+
LobbyYourAgentCard,
|
|
18430
18828
|
MOBILE_BREAKPOINT,
|
|
18431
18829
|
MemberTypeTag,
|
|
18432
18830
|
Menu,
|
|
@@ -18439,7 +18837,7 @@ export {
|
|
|
18439
18837
|
OverlayBackdrop,
|
|
18440
18838
|
OverlayCenter,
|
|
18441
18839
|
OverlayContainerProvider,
|
|
18442
|
-
Page,
|
|
18840
|
+
Page$1 as Page,
|
|
18443
18841
|
PageCanvas,
|
|
18444
18842
|
PageContent,
|
|
18445
18843
|
PageContentCenter,
|
|
@@ -18482,6 +18880,7 @@ export {
|
|
|
18482
18880
|
ServerBadge,
|
|
18483
18881
|
FormRow as SettingTile,
|
|
18484
18882
|
Sidebar,
|
|
18883
|
+
SidebarAddAgent,
|
|
18485
18884
|
SidebarAvatar,
|
|
18486
18885
|
SidebarContent,
|
|
18487
18886
|
SidebarFolder,
|