@mcp-b/react-components 0.69.0 → 0.70.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/Context-DQDumCV8.js +918 -0
- package/dist/components/agents-sdk/EmployeeChat.js +1 -1
- package/dist/components/ai-sdk/Context.js +1 -842
- package/dist/components/ai-sdk/Plan.d.ts +33 -9
- package/dist/components/ai-sdk/Plan.js +336 -107
- package/dist/styles/plan.css +160 -23
- package/package.json +2 -2
- package/dist/progress-ring-BO649JA9.js +0 -79
|
@@ -45,10 +45,12 @@ export declare function PlanStep({ className, status, ref, ...props }: PlanStepP
|
|
|
45
45
|
ref?: React.Ref<HTMLLIElement>;
|
|
46
46
|
}): React.JSX.Element;
|
|
47
47
|
export interface PlanStepIndicatorProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
48
|
+
/** Status chrome for compact plans, or a plain inline marker for transcript cards. */
|
|
49
|
+
variant?: "status" | "plain";
|
|
48
50
|
/** Accessible label for the visual state indicator. */
|
|
49
51
|
label?: string;
|
|
50
52
|
}
|
|
51
|
-
export declare function PlanStepIndicator({ children, className, label, ref, ...props }: PlanStepIndicatorProps & {
|
|
53
|
+
export declare function PlanStepIndicator({ children, className, label, variant, ref, ...props }: PlanStepIndicatorProps & {
|
|
52
54
|
ref?: React.Ref<HTMLSpanElement>;
|
|
53
55
|
}): React.JSX.Element;
|
|
54
56
|
export interface PlanStepTitleProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
@@ -69,9 +71,8 @@ export interface PlanSummaryProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
69
71
|
onOpenChange?: PopoverProps["onOpenChange"];
|
|
70
72
|
}
|
|
71
73
|
/**
|
|
72
|
-
* Collapsed presentation of an application-owned plan — a
|
|
73
|
-
* opens a popover with the full step list
|
|
74
|
-
* "Step 2 / 3" to-do plan pill. Compose the existing `Plan` anatomy inside
|
|
74
|
+
* Collapsed presentation of an application-owned plan — a completion count that
|
|
75
|
+
* opens a popover with the full step list. Compose the existing `Plan` anatomy inside
|
|
75
76
|
* `PlanSummaryContent`.
|
|
76
77
|
*
|
|
77
78
|
* @example
|
|
@@ -89,13 +90,12 @@ export declare function PlanSummary({ className, completed, total, open, default
|
|
|
89
90
|
}): React.JSX.Element;
|
|
90
91
|
export interface PlanSummaryTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {}
|
|
91
92
|
/**
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
* completed ones; children replace the label while keeping the ring.
|
|
93
|
+
* A quiet disclosure control. Children replace the completion label while
|
|
94
|
+
* retaining the chevron and native popover behavior.
|
|
95
95
|
*/
|
|
96
96
|
export declare function PlanSummaryTrigger({ className, children, ...props }: PlanSummaryTriggerProps): React.JSX.Element;
|
|
97
97
|
export interface PlanSummaryContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
98
|
-
/** The
|
|
98
|
+
/** The summary usually sits above a composer, so default "top". */
|
|
99
99
|
side?: PopoverPositionerProps["side"];
|
|
100
100
|
}
|
|
101
101
|
export declare function PlanSummaryContent({ className, side, children, ...props }: PlanSummaryContentProps): React.JSX.Element;
|
|
@@ -108,9 +108,33 @@ export interface PlanSummaryStep {
|
|
|
108
108
|
export interface PlanSummaryListProps {
|
|
109
109
|
/** Complete normalized plan state from the host. */
|
|
110
110
|
steps: readonly PlanSummaryStep[];
|
|
111
|
-
/** The
|
|
111
|
+
/** The summary usually sits above a composer, so default "top". */
|
|
112
112
|
side?: PlanSummaryContentProps["side"];
|
|
113
113
|
}
|
|
114
|
+
export interface PlanCardStep extends Omit<PlanSummaryStep, "step"> {
|
|
115
|
+
/** Short row label; supporting evidence belongs in details. */
|
|
116
|
+
step: string;
|
|
117
|
+
/** Optional supporting content, disclosed on request. */
|
|
118
|
+
details?: React.ReactNode;
|
|
119
|
+
}
|
|
120
|
+
export interface PlanResultProps extends Omit<React.HTMLAttributes<HTMLElement>, "children"> {
|
|
121
|
+
/** Markdown report, including headings, links and location tables. */
|
|
122
|
+
children: string;
|
|
123
|
+
}
|
|
124
|
+
/** Task result with readable references and tables, without artifact action buttons. */
|
|
125
|
+
export declare function PlanResult({ children, className, ...props }: PlanResultProps): React.JSX.Element;
|
|
126
|
+
export interface PlanCardProps extends Omit<PlanProps, "title" | "children"> {
|
|
127
|
+
/** Complete normalized plan state owned by the host. */
|
|
128
|
+
steps: readonly PlanCardStep[];
|
|
129
|
+
/** Heading for the work represented by this plan. */
|
|
130
|
+
title?: React.ReactNode;
|
|
131
|
+
/** Optional explanation or outcome from the host. */
|
|
132
|
+
description?: React.ReactNode;
|
|
133
|
+
/** Current task result. Uses the same general plan update, not another receipt. */
|
|
134
|
+
summary?: string;
|
|
135
|
+
}
|
|
136
|
+
/** Visible plan card for transcript progress, using the same anatomy as PlanSummaryList. */
|
|
137
|
+
export declare function PlanCard({ steps, title, description, summary, className, ...props }: PlanCardProps): React.JSX.Element | null;
|
|
114
138
|
/** Data-only convenience renderer for hosts that already own normalized plan rows. */
|
|
115
139
|
export declare function PlanSummaryList({ steps, side }: PlanSummaryListProps): React.JSX.Element | null;
|
|
116
140
|
//#endregion
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { S as DotIcon, i as ArrowRightIcon, p as CheckIcon } from "../../icons-nLTnB9kd.js";
|
|
2
|
+
import { S as DotIcon, i as ArrowRightIcon, m as ChevronDownIcon, p as CheckIcon } from "../../icons-nLTnB9kd.js";
|
|
3
|
+
import { Collapsible } from "../foundations/Collapsible.js";
|
|
4
|
+
import { MessageResponse } from "./Message.js";
|
|
3
5
|
import { Popover } from "../foundations/Popover.js";
|
|
4
|
-
import { t as ProgressRing } from "../../progress-ring-BO649JA9.js";
|
|
5
6
|
import { c } from "react/compiler-runtime";
|
|
6
7
|
import * as React from "react";
|
|
7
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -273,78 +274,84 @@ function defaultStepIcon(status) {
|
|
|
273
274
|
return /* @__PURE__ */ jsx(DotIcon, {});
|
|
274
275
|
}
|
|
275
276
|
function PlanStepIndicator(t0) {
|
|
276
|
-
const $ = c(
|
|
277
|
+
const $ = c(23);
|
|
277
278
|
let children;
|
|
278
279
|
let className;
|
|
279
280
|
let label;
|
|
280
281
|
let props;
|
|
281
282
|
let ref;
|
|
283
|
+
let t1;
|
|
282
284
|
if ($[0] !== t0) {
|
|
283
|
-
({children, className, label, ref, ...props} = t0);
|
|
285
|
+
({children, className, label, variant: t1, ref, ...props} = t0);
|
|
284
286
|
$[0] = t0;
|
|
285
287
|
$[1] = children;
|
|
286
288
|
$[2] = className;
|
|
287
289
|
$[3] = label;
|
|
288
290
|
$[4] = props;
|
|
289
291
|
$[5] = ref;
|
|
292
|
+
$[6] = t1;
|
|
290
293
|
} else {
|
|
291
294
|
children = $[1];
|
|
292
295
|
className = $[2];
|
|
293
296
|
label = $[3];
|
|
294
297
|
props = $[4];
|
|
295
298
|
ref = $[5];
|
|
299
|
+
t1 = $[6];
|
|
296
300
|
}
|
|
301
|
+
const variant = t1 === void 0 ? "status" : t1;
|
|
297
302
|
const status = React.useContext(PlanStepContext);
|
|
298
|
-
let t1;
|
|
299
|
-
if ($[6] !== className) {
|
|
300
|
-
t1 = cx("plan__step-indicator", className);
|
|
301
|
-
$[6] = className;
|
|
302
|
-
$[7] = t1;
|
|
303
|
-
} else t1 = $[7];
|
|
304
303
|
let t2;
|
|
305
|
-
if ($[
|
|
306
|
-
t2 =
|
|
307
|
-
$[
|
|
308
|
-
$[
|
|
309
|
-
|
|
310
|
-
} else t2 = $[10];
|
|
304
|
+
if ($[7] !== className) {
|
|
305
|
+
t2 = cx("plan__step-indicator", className);
|
|
306
|
+
$[7] = className;
|
|
307
|
+
$[8] = t2;
|
|
308
|
+
} else t2 = $[8];
|
|
311
309
|
let t3;
|
|
312
|
-
if ($[
|
|
313
|
-
t3 =
|
|
310
|
+
if ($[9] !== children || $[10] !== status) {
|
|
311
|
+
t3 = children ?? defaultStepIcon(status);
|
|
312
|
+
$[9] = children;
|
|
313
|
+
$[10] = status;
|
|
314
|
+
$[11] = t3;
|
|
315
|
+
} else t3 = $[11];
|
|
316
|
+
let t4;
|
|
317
|
+
if ($[12] !== t3) {
|
|
318
|
+
t4 = /* @__PURE__ */ jsx("span", {
|
|
314
319
|
className: "plan__step-indicator-visual",
|
|
315
320
|
"aria-hidden": "true",
|
|
316
|
-
children:
|
|
321
|
+
children: t3
|
|
317
322
|
});
|
|
318
|
-
$[11] = t2;
|
|
319
323
|
$[12] = t3;
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
324
|
+
$[13] = t4;
|
|
325
|
+
} else t4 = $[13];
|
|
326
|
+
const t5 = label ?? STATUS_LABELS[status];
|
|
327
|
+
let t6;
|
|
328
|
+
if ($[14] !== t5) {
|
|
329
|
+
t6 = /* @__PURE__ */ jsx("span", {
|
|
325
330
|
className: "sigvelo-visually-hidden",
|
|
326
|
-
children:
|
|
331
|
+
children: t5
|
|
327
332
|
});
|
|
328
|
-
$[13] = t4;
|
|
329
333
|
$[14] = t5;
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
+
$[15] = t6;
|
|
335
|
+
} else t6 = $[15];
|
|
336
|
+
let t7;
|
|
337
|
+
if ($[16] !== props || $[17] !== ref || $[18] !== t2 || $[19] !== t4 || $[20] !== t6 || $[21] !== variant) {
|
|
338
|
+
t7 = /* @__PURE__ */ jsxs("span", {
|
|
334
339
|
ref,
|
|
335
340
|
"data-slot": "plan-step-indicator",
|
|
336
|
-
|
|
341
|
+
"data-variant": variant,
|
|
342
|
+
className: t2,
|
|
337
343
|
...props,
|
|
338
|
-
children: [
|
|
344
|
+
children: [t4, t6]
|
|
339
345
|
});
|
|
340
|
-
$[
|
|
341
|
-
$[
|
|
342
|
-
$[
|
|
343
|
-
$[
|
|
344
|
-
$[19] = t5;
|
|
346
|
+
$[16] = props;
|
|
347
|
+
$[17] = ref;
|
|
348
|
+
$[18] = t2;
|
|
349
|
+
$[19] = t4;
|
|
345
350
|
$[20] = t6;
|
|
346
|
-
|
|
347
|
-
|
|
351
|
+
$[21] = variant;
|
|
352
|
+
$[22] = t7;
|
|
353
|
+
} else t7 = $[22];
|
|
354
|
+
return t7;
|
|
348
355
|
}
|
|
349
356
|
function PlanStepTitle(t0) {
|
|
350
357
|
const $ = c(10);
|
|
@@ -427,9 +434,8 @@ function usePlanSummaryContext() {
|
|
|
427
434
|
return ctx;
|
|
428
435
|
}
|
|
429
436
|
/**
|
|
430
|
-
* Collapsed presentation of an application-owned plan — a
|
|
431
|
-
* opens a popover with the full step list
|
|
432
|
-
* "Step 2 / 3" to-do plan pill. Compose the existing `Plan` anatomy inside
|
|
437
|
+
* Collapsed presentation of an application-owned plan — a completion count that
|
|
438
|
+
* opens a popover with the full step list. Compose the existing `Plan` anatomy inside
|
|
433
439
|
* `PlanSummaryContent`.
|
|
434
440
|
*
|
|
435
441
|
* @example
|
|
@@ -535,12 +541,11 @@ function PlanSummary(t0) {
|
|
|
535
541
|
return t5;
|
|
536
542
|
}
|
|
537
543
|
/**
|
|
538
|
-
*
|
|
539
|
-
*
|
|
540
|
-
* completed ones; children replace the label while keeping the ring.
|
|
544
|
+
* A quiet disclosure control. Children replace the completion label while
|
|
545
|
+
* retaining the chevron and native popover behavior.
|
|
541
546
|
*/
|
|
542
547
|
function PlanSummaryTrigger(t0) {
|
|
543
|
-
const $ = c(
|
|
548
|
+
const $ = c(14);
|
|
544
549
|
let children;
|
|
545
550
|
let className;
|
|
546
551
|
let props;
|
|
@@ -556,8 +561,6 @@ function PlanSummaryTrigger(t0) {
|
|
|
556
561
|
props = $[3];
|
|
557
562
|
}
|
|
558
563
|
const { completed, total } = usePlanSummaryContext();
|
|
559
|
-
const percent = total > 0 ? completed / total * 100 : 0;
|
|
560
|
-
const currentStep = Math.min(completed + 1, total);
|
|
561
564
|
let t1;
|
|
562
565
|
if ($[4] !== className) {
|
|
563
566
|
t1 = cx("plan-summary__trigger", className);
|
|
@@ -565,42 +568,36 @@ function PlanSummaryTrigger(t0) {
|
|
|
565
568
|
$[5] = t1;
|
|
566
569
|
} else t1 = $[5];
|
|
567
570
|
const t2 = `Plan: ${completed} of ${total} steps completed`;
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
size: 16,
|
|
573
|
-
stroke: 2.5
|
|
574
|
-
});
|
|
575
|
-
$[6] = percent;
|
|
576
|
-
$[7] = t3;
|
|
577
|
-
} else t3 = $[7];
|
|
578
|
-
const t4 = children ?? `Step ${currentStep} / ${total}`;
|
|
579
|
-
let t5;
|
|
580
|
-
if ($[8] !== t4) {
|
|
581
|
-
t5 = /* @__PURE__ */ jsx("span", {
|
|
571
|
+
const t3 = children ?? `${completed} of ${total} completed`;
|
|
572
|
+
let t4;
|
|
573
|
+
if ($[6] !== t3) {
|
|
574
|
+
t4 = /* @__PURE__ */ jsx("span", {
|
|
582
575
|
className: "plan-summary__trigger-label",
|
|
583
|
-
children:
|
|
576
|
+
children: t3
|
|
584
577
|
});
|
|
585
|
-
$[
|
|
586
|
-
$[
|
|
587
|
-
} else
|
|
578
|
+
$[6] = t3;
|
|
579
|
+
$[7] = t4;
|
|
580
|
+
} else t4 = $[7];
|
|
581
|
+
let t5;
|
|
582
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
583
|
+
t5 = /* @__PURE__ */ jsx(ChevronDownIcon, { "aria-hidden": "true" });
|
|
584
|
+
$[8] = t5;
|
|
585
|
+
} else t5 = $[8];
|
|
588
586
|
let t6;
|
|
589
|
-
if ($[
|
|
587
|
+
if ($[9] !== props || $[10] !== t1 || $[11] !== t2 || $[12] !== t4) {
|
|
590
588
|
t6 = /* @__PURE__ */ jsxs(Popover.Trigger, {
|
|
591
589
|
unstyled: true,
|
|
592
590
|
className: t1,
|
|
593
591
|
"aria-label": t2,
|
|
594
592
|
...props,
|
|
595
|
-
children: [
|
|
593
|
+
children: [t4, t5]
|
|
596
594
|
});
|
|
597
|
-
$[
|
|
598
|
-
$[
|
|
599
|
-
$[
|
|
600
|
-
$[
|
|
601
|
-
$[
|
|
602
|
-
|
|
603
|
-
} else t6 = $[15];
|
|
595
|
+
$[9] = props;
|
|
596
|
+
$[10] = t1;
|
|
597
|
+
$[11] = t2;
|
|
598
|
+
$[12] = t4;
|
|
599
|
+
$[13] = t6;
|
|
600
|
+
} else t6 = $[13];
|
|
604
601
|
return t6;
|
|
605
602
|
}
|
|
606
603
|
function PlanSummaryContent(t0) {
|
|
@@ -646,6 +643,7 @@ function PlanSummaryContent(t0) {
|
|
|
646
643
|
if ($[11] !== side || $[12] !== t3) {
|
|
647
644
|
t4 = /* @__PURE__ */ jsx(Popover.Portal, { children: /* @__PURE__ */ jsx(Popover.Positioner, {
|
|
648
645
|
side,
|
|
646
|
+
sideOffset: 8,
|
|
649
647
|
children: t3
|
|
650
648
|
}) });
|
|
651
649
|
$[11] = side;
|
|
@@ -654,14 +652,240 @@ function PlanSummaryContent(t0) {
|
|
|
654
652
|
} else t4 = $[13];
|
|
655
653
|
return t4;
|
|
656
654
|
}
|
|
655
|
+
function PlanResultTable(t0) {
|
|
656
|
+
const $ = c(4);
|
|
657
|
+
let props;
|
|
658
|
+
if ($[0] !== t0) {
|
|
659
|
+
const { node: _node, ...t1 } = t0;
|
|
660
|
+
props = t1;
|
|
661
|
+
$[0] = t0;
|
|
662
|
+
$[1] = props;
|
|
663
|
+
} else props = $[1];
|
|
664
|
+
let t1;
|
|
665
|
+
if ($[2] !== props) {
|
|
666
|
+
t1 = /* @__PURE__ */ jsx("div", {
|
|
667
|
+
className: "plan-result__table",
|
|
668
|
+
role: "region",
|
|
669
|
+
"aria-label": "Result table",
|
|
670
|
+
tabIndex: 0,
|
|
671
|
+
children: /* @__PURE__ */ jsx("table", {
|
|
672
|
+
"data-streamdown": "table",
|
|
673
|
+
...props
|
|
674
|
+
})
|
|
675
|
+
});
|
|
676
|
+
$[2] = props;
|
|
677
|
+
$[3] = t1;
|
|
678
|
+
} else t1 = $[3];
|
|
679
|
+
return t1;
|
|
680
|
+
}
|
|
681
|
+
/** Task result with readable references and tables, without artifact action buttons. */
|
|
682
|
+
function PlanResult(t0) {
|
|
683
|
+
const $ = c(14);
|
|
684
|
+
let children;
|
|
685
|
+
let className;
|
|
686
|
+
let props;
|
|
687
|
+
if ($[0] !== t0) {
|
|
688
|
+
({children, className, ...props} = t0);
|
|
689
|
+
$[0] = t0;
|
|
690
|
+
$[1] = children;
|
|
691
|
+
$[2] = className;
|
|
692
|
+
$[3] = props;
|
|
693
|
+
} else {
|
|
694
|
+
children = $[1];
|
|
695
|
+
className = $[2];
|
|
696
|
+
props = $[3];
|
|
697
|
+
}
|
|
698
|
+
let t1;
|
|
699
|
+
if ($[4] !== className) {
|
|
700
|
+
t1 = cx("plan-result", className);
|
|
701
|
+
$[4] = className;
|
|
702
|
+
$[5] = t1;
|
|
703
|
+
} else t1 = $[5];
|
|
704
|
+
let t2;
|
|
705
|
+
let t3;
|
|
706
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
707
|
+
t2 = { table: false };
|
|
708
|
+
t3 = { table: PlanResultTable };
|
|
709
|
+
$[6] = t2;
|
|
710
|
+
$[7] = t3;
|
|
711
|
+
} else {
|
|
712
|
+
t2 = $[6];
|
|
713
|
+
t3 = $[7];
|
|
714
|
+
}
|
|
715
|
+
let t4;
|
|
716
|
+
if ($[8] !== children) {
|
|
717
|
+
t4 = /* @__PURE__ */ jsx(MessageResponse, {
|
|
718
|
+
mode: "static",
|
|
719
|
+
controls: t2,
|
|
720
|
+
components: t3,
|
|
721
|
+
children
|
|
722
|
+
});
|
|
723
|
+
$[8] = children;
|
|
724
|
+
$[9] = t4;
|
|
725
|
+
} else t4 = $[9];
|
|
726
|
+
let t5;
|
|
727
|
+
if ($[10] !== props || $[11] !== t1 || $[12] !== t4) {
|
|
728
|
+
t5 = /* @__PURE__ */ jsx("section", {
|
|
729
|
+
className: t1,
|
|
730
|
+
...props,
|
|
731
|
+
children: t4
|
|
732
|
+
});
|
|
733
|
+
$[10] = props;
|
|
734
|
+
$[11] = t1;
|
|
735
|
+
$[12] = t4;
|
|
736
|
+
$[13] = t5;
|
|
737
|
+
} else t5 = $[13];
|
|
738
|
+
return t5;
|
|
739
|
+
}
|
|
740
|
+
/** Visible plan card for transcript progress, using the same anatomy as PlanSummaryList. */
|
|
741
|
+
function PlanCard(t0) {
|
|
742
|
+
const $ = c(35);
|
|
743
|
+
let className;
|
|
744
|
+
let description;
|
|
745
|
+
let props;
|
|
746
|
+
let steps;
|
|
747
|
+
let summary;
|
|
748
|
+
let t1;
|
|
749
|
+
if ($[0] !== t0) {
|
|
750
|
+
({steps, title: t1, description, summary, className, ...props} = t0);
|
|
751
|
+
$[0] = t0;
|
|
752
|
+
$[1] = className;
|
|
753
|
+
$[2] = description;
|
|
754
|
+
$[3] = props;
|
|
755
|
+
$[4] = steps;
|
|
756
|
+
$[5] = summary;
|
|
757
|
+
$[6] = t1;
|
|
758
|
+
} else {
|
|
759
|
+
className = $[1];
|
|
760
|
+
description = $[2];
|
|
761
|
+
props = $[3];
|
|
762
|
+
steps = $[4];
|
|
763
|
+
summary = $[5];
|
|
764
|
+
t1 = $[6];
|
|
765
|
+
}
|
|
766
|
+
const title = t1 === void 0 ? "Work plan" : t1;
|
|
767
|
+
if (steps.length === 0) return null;
|
|
768
|
+
let t2;
|
|
769
|
+
if ($[7] !== steps) {
|
|
770
|
+
t2 = steps.filter(_temp);
|
|
771
|
+
$[7] = steps;
|
|
772
|
+
$[8] = t2;
|
|
773
|
+
} else t2 = $[8];
|
|
774
|
+
const completed = t2.length;
|
|
775
|
+
let t3;
|
|
776
|
+
if ($[9] !== className) {
|
|
777
|
+
t3 = cx("plan-card", className);
|
|
778
|
+
$[9] = className;
|
|
779
|
+
$[10] = t3;
|
|
780
|
+
} else t3 = $[10];
|
|
781
|
+
let t4;
|
|
782
|
+
if ($[11] !== title) {
|
|
783
|
+
t4 = /* @__PURE__ */ jsx(PlanTitle, { children: title });
|
|
784
|
+
$[11] = title;
|
|
785
|
+
$[12] = t4;
|
|
786
|
+
} else t4 = $[12];
|
|
787
|
+
const t5 = `${completed} of ${steps.length} steps completed`;
|
|
788
|
+
let t6;
|
|
789
|
+
if ($[13] !== t5) {
|
|
790
|
+
t6 = /* @__PURE__ */ jsx(PlanDescription, { children: t5 });
|
|
791
|
+
$[13] = t5;
|
|
792
|
+
$[14] = t6;
|
|
793
|
+
} else t6 = $[14];
|
|
794
|
+
let t7;
|
|
795
|
+
if ($[15] !== description) {
|
|
796
|
+
t7 = description ? /* @__PURE__ */ jsx(PlanDescription, { children: description }) : null;
|
|
797
|
+
$[15] = description;
|
|
798
|
+
$[16] = t7;
|
|
799
|
+
} else t7 = $[16];
|
|
800
|
+
let t8;
|
|
801
|
+
if ($[17] !== t4 || $[18] !== t6 || $[19] !== t7) {
|
|
802
|
+
t8 = /* @__PURE__ */ jsxs(PlanHeader, { children: [
|
|
803
|
+
t4,
|
|
804
|
+
t6,
|
|
805
|
+
t7
|
|
806
|
+
] });
|
|
807
|
+
$[17] = t4;
|
|
808
|
+
$[18] = t6;
|
|
809
|
+
$[19] = t7;
|
|
810
|
+
$[20] = t8;
|
|
811
|
+
} else t8 = $[20];
|
|
812
|
+
let t9;
|
|
813
|
+
if ($[21] !== steps) {
|
|
814
|
+
t9 = steps.map(_temp2);
|
|
815
|
+
$[21] = steps;
|
|
816
|
+
$[22] = t9;
|
|
817
|
+
} else t9 = $[22];
|
|
818
|
+
let t10;
|
|
819
|
+
if ($[23] !== t9) {
|
|
820
|
+
t10 = /* @__PURE__ */ jsx(PlanContent, { children: t9 });
|
|
821
|
+
$[23] = t9;
|
|
822
|
+
$[24] = t10;
|
|
823
|
+
} else t10 = $[24];
|
|
824
|
+
let t11;
|
|
825
|
+
if ($[25] !== t10 || $[26] !== t8) {
|
|
826
|
+
t11 = /* @__PURE__ */ jsxs(Plan, {
|
|
827
|
+
className: "plan--card",
|
|
828
|
+
role: "region",
|
|
829
|
+
"aria-label": "Work plan",
|
|
830
|
+
children: [t8, t10]
|
|
831
|
+
});
|
|
832
|
+
$[25] = t10;
|
|
833
|
+
$[26] = t8;
|
|
834
|
+
$[27] = t11;
|
|
835
|
+
} else t11 = $[27];
|
|
836
|
+
let t12;
|
|
837
|
+
if ($[28] !== summary) {
|
|
838
|
+
t12 = summary ? /* @__PURE__ */ jsx(PlanResult, { children: summary }) : null;
|
|
839
|
+
$[28] = summary;
|
|
840
|
+
$[29] = t12;
|
|
841
|
+
} else t12 = $[29];
|
|
842
|
+
let t13;
|
|
843
|
+
if ($[30] !== props || $[31] !== t11 || $[32] !== t12 || $[33] !== t3) {
|
|
844
|
+
t13 = /* @__PURE__ */ jsxs("div", {
|
|
845
|
+
className: t3,
|
|
846
|
+
...props,
|
|
847
|
+
children: [t11, t12]
|
|
848
|
+
});
|
|
849
|
+
$[30] = props;
|
|
850
|
+
$[31] = t11;
|
|
851
|
+
$[32] = t12;
|
|
852
|
+
$[33] = t3;
|
|
853
|
+
$[34] = t13;
|
|
854
|
+
} else t13 = $[34];
|
|
855
|
+
return t13;
|
|
856
|
+
}
|
|
857
|
+
function _temp2(item_0) {
|
|
858
|
+
return /* @__PURE__ */ jsxs(PlanStep, {
|
|
859
|
+
status: item_0.status,
|
|
860
|
+
children: [/* @__PURE__ */ jsx(PlanStepIndicator, { variant: "plain" }), item_0.details ? /* @__PURE__ */ jsxs(Collapsible.Root, {
|
|
861
|
+
unstyled: true,
|
|
862
|
+
className: "plan__step-body",
|
|
863
|
+
children: [/* @__PURE__ */ jsxs(Collapsible.Trigger, {
|
|
864
|
+
unstyled: true,
|
|
865
|
+
className: "plan__step-trigger",
|
|
866
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
867
|
+
className: "plan__step-title",
|
|
868
|
+
children: item_0.step
|
|
869
|
+
}), /* @__PURE__ */ jsx(ChevronDownIcon, { "aria-hidden": "true" })]
|
|
870
|
+
}), /* @__PURE__ */ jsx(Collapsible.Panel, {
|
|
871
|
+
unstyled: true,
|
|
872
|
+
className: "plan__step-details",
|
|
873
|
+
children: /* @__PURE__ */ jsx("div", { children: item_0.details })
|
|
874
|
+
})]
|
|
875
|
+
}) : /* @__PURE__ */ jsx(PlanStepTitle, { children: item_0.step })]
|
|
876
|
+
}, item_0.id);
|
|
877
|
+
}
|
|
878
|
+
function _temp(item) {
|
|
879
|
+
return item.status === "complete";
|
|
880
|
+
}
|
|
657
881
|
/** Data-only convenience renderer for hosts that already own normalized plan rows. */
|
|
658
882
|
function PlanSummaryList(t0) {
|
|
659
|
-
const $ = c(
|
|
883
|
+
const $ = c(15);
|
|
660
884
|
const { steps, side } = t0;
|
|
661
885
|
if (steps.length === 0) return null;
|
|
662
886
|
let t1;
|
|
663
887
|
if ($[0] !== steps) {
|
|
664
|
-
t1 = steps.filter(
|
|
888
|
+
t1 = steps.filter(_temp3);
|
|
665
889
|
$[0] = steps;
|
|
666
890
|
$[1] = t1;
|
|
667
891
|
} else t1 = $[1];
|
|
@@ -673,49 +897,54 @@ function PlanSummaryList(t0) {
|
|
|
673
897
|
$[2] = t3;
|
|
674
898
|
} else t3 = $[2];
|
|
675
899
|
let t4;
|
|
676
|
-
if ($[3]
|
|
677
|
-
t4 =
|
|
678
|
-
$[3] =
|
|
679
|
-
|
|
680
|
-
} else t4 = $[4];
|
|
900
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
901
|
+
t4 = /* @__PURE__ */ jsx(PlanHeader, { children: /* @__PURE__ */ jsx(PlanTitle, { children: "Work plan" }) });
|
|
902
|
+
$[3] = t4;
|
|
903
|
+
} else t4 = $[3];
|
|
681
904
|
let t5;
|
|
682
|
-
if ($[
|
|
683
|
-
t5 =
|
|
684
|
-
$[
|
|
685
|
-
$[
|
|
686
|
-
} else t5 = $[
|
|
905
|
+
if ($[4] !== steps) {
|
|
906
|
+
t5 = steps.map(_temp4);
|
|
907
|
+
$[4] = steps;
|
|
908
|
+
$[5] = t5;
|
|
909
|
+
} else t5 = $[5];
|
|
687
910
|
let t6;
|
|
688
|
-
if ($[
|
|
689
|
-
t6 = /* @__PURE__ */ jsx(
|
|
911
|
+
if ($[6] !== t5) {
|
|
912
|
+
t6 = /* @__PURE__ */ jsxs(Plan, { children: [t4, /* @__PURE__ */ jsx(PlanContent, { children: t5 })] });
|
|
913
|
+
$[6] = t5;
|
|
914
|
+
$[7] = t6;
|
|
915
|
+
} else t6 = $[7];
|
|
916
|
+
let t7;
|
|
917
|
+
if ($[8] !== side || $[9] !== t6) {
|
|
918
|
+
t7 = /* @__PURE__ */ jsx(PlanSummaryContent, {
|
|
690
919
|
side,
|
|
691
|
-
children:
|
|
920
|
+
children: t6
|
|
692
921
|
});
|
|
693
|
-
$[
|
|
694
|
-
$[8] = t5;
|
|
922
|
+
$[8] = side;
|
|
695
923
|
$[9] = t6;
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
924
|
+
$[10] = t7;
|
|
925
|
+
} else t7 = $[10];
|
|
926
|
+
let t8;
|
|
927
|
+
if ($[11] !== completed || $[12] !== steps.length || $[13] !== t7) {
|
|
928
|
+
t8 = /* @__PURE__ */ jsxs(PlanSummary, {
|
|
700
929
|
completed,
|
|
701
930
|
total: t2,
|
|
702
|
-
children: [t3,
|
|
931
|
+
children: [t3, t7]
|
|
703
932
|
});
|
|
704
|
-
$[
|
|
705
|
-
$[
|
|
706
|
-
$[12] = t6;
|
|
933
|
+
$[11] = completed;
|
|
934
|
+
$[12] = steps.length;
|
|
707
935
|
$[13] = t7;
|
|
708
|
-
|
|
709
|
-
|
|
936
|
+
$[14] = t8;
|
|
937
|
+
} else t8 = $[14];
|
|
938
|
+
return t8;
|
|
710
939
|
}
|
|
711
|
-
function
|
|
940
|
+
function _temp4(item_0) {
|
|
712
941
|
return /* @__PURE__ */ jsxs(PlanStep, {
|
|
713
942
|
status: item_0.status,
|
|
714
|
-
children: [/* @__PURE__ */ jsx(PlanStepIndicator, {}), /* @__PURE__ */ jsx(PlanStepTitle, { children: item_0.step })]
|
|
943
|
+
children: [/* @__PURE__ */ jsx(PlanStepIndicator, { variant: "plain" }), /* @__PURE__ */ jsx(PlanStepTitle, { children: item_0.step })]
|
|
715
944
|
}, item_0.id);
|
|
716
945
|
}
|
|
717
|
-
function
|
|
946
|
+
function _temp3(item) {
|
|
718
947
|
return item.status === "complete";
|
|
719
948
|
}
|
|
720
949
|
//#endregion
|
|
721
|
-
export { Plan, PlanContent, PlanDescription, PlanHeader, PlanStep, PlanStepDescription, PlanStepIndicator, PlanStepTitle, PlanSummary, PlanSummaryContent, PlanSummaryList, PlanSummaryTrigger, PlanTitle };
|
|
950
|
+
export { Plan, PlanCard, PlanContent, PlanDescription, PlanHeader, PlanResult, PlanStep, PlanStepDescription, PlanStepIndicator, PlanStepTitle, PlanSummary, PlanSummaryContent, PlanSummaryList, PlanSummaryTrigger, PlanTitle };
|