@designa8/vibedesign-figma-deepseek-image-v1-2-176b 0.2.0 → 0.2.2
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/README.md +1 -1
- package/dist/index.cjs +100 -49
- package/dist/index.js +100 -49
- package/dist/styles.css +26 -18
- package/package.json +1 -1
- package/src/atoms/Accordion/Accordion.tsx +2 -2
- package/src/atoms/Accordion/preview.tsx +33 -10
- package/src/atoms/AccordionItemDesktop/AccordionItemDesktop.tsx +2 -5
- package/src/atoms/Button/Button.tsx +77 -13
- package/src/atoms/Button/preview.tsx +98 -73
- package/src/atoms/CalendarDateRangePicker/CalendarDateRangePicker.tsx +2 -2
- package/src/atoms/CalendarDateRangePicker/preview.tsx +31 -107
- package/src/atoms/Combobox/Combobox.tsx +1 -4
- package/src/atoms/DatePickerInput/DatePickerInput.tsx +1 -1
- package/src/atoms/StepperItem/StepperItem.tsx +4 -2
- package/src/atoms/TestimonialBlock/TestimonialBlock.tsx +2 -2
- package/src/atoms/Wizard/Wizard.tsx +99 -32
- package/src/atoms/Wizard/preview.tsx +174 -67
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @designa8/vibedesign-figma-deepseek-image-v1-2-176b
|
|
2
2
|
|
|
3
|
-
Complete design system generated by Atoms Design, version **0.2.
|
|
3
|
+
Complete design system generated by Atoms Design, version **0.2.2**.
|
|
4
4
|
Tokens, atoms, molecules, organisms, and templates — import from the package root;
|
|
5
5
|
never hardcode visual values in consumer code.
|
|
6
6
|
|
package/dist/index.cjs
CHANGED
|
@@ -370,7 +370,7 @@ var Accordion = React2.forwardRef(
|
|
|
370
370
|
isOpen ? "bg-primary-soft" : "bg-surface hover:bg-surface-soft active:bg-surface-soft"
|
|
371
371
|
),
|
|
372
372
|
children: [
|
|
373
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "text-label-lg font-
|
|
373
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "text-label-lg font-medium text-ink", children: item.title }),
|
|
374
374
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
375
375
|
"span",
|
|
376
376
|
{
|
|
@@ -400,7 +400,7 @@ var Accordion = React2.forwardRef(
|
|
|
400
400
|
"div",
|
|
401
401
|
{
|
|
402
402
|
className: cn(
|
|
403
|
-
"px-lg pb-base pt-xs text-body-md
|
|
403
|
+
"px-lg pb-base pt-xs text-body-md text-body",
|
|
404
404
|
"transition-opacity duration-200 ease-out",
|
|
405
405
|
isOpen ? "opacity-100" : "opacity-0"
|
|
406
406
|
),
|
|
@@ -490,14 +490,7 @@ var AccordionItemDesktop = React3.forwardRef(
|
|
|
490
490
|
isOpen ? "bg-primary-soft" : "bg-surface hover:bg-surface-soft active:bg-surface-strong"
|
|
491
491
|
),
|
|
492
492
|
children: [
|
|
493
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
494
|
-
"span",
|
|
495
|
-
{
|
|
496
|
-
id: titleId,
|
|
497
|
-
className: "text-label-lg font-weight-label-lg text-ink",
|
|
498
|
-
children: title
|
|
499
|
-
}
|
|
500
|
-
),
|
|
493
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { id: titleId, className: "text-label-lg font-medium text-ink", children: title }),
|
|
501
494
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
502
495
|
"span",
|
|
503
496
|
{
|
|
@@ -528,7 +521,7 @@ var AccordionItemDesktop = React3.forwardRef(
|
|
|
528
521
|
"div",
|
|
529
522
|
{
|
|
530
523
|
className: cn2(
|
|
531
|
-
"px-lg pb-base pt-xs text-body-md
|
|
524
|
+
"px-lg pb-base pt-xs text-body-md text-body",
|
|
532
525
|
"transition-opacity duration-200 ease-out",
|
|
533
526
|
isOpen ? "opacity-100" : "opacity-0"
|
|
534
527
|
),
|
|
@@ -751,8 +744,12 @@ var React7 = __toESM(require("react"));
|
|
|
751
744
|
// virtual-pkg:src/atoms/Button/Button.tsx
|
|
752
745
|
var React6 = __toESM(require("react"));
|
|
753
746
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
754
|
-
var BASE = "relative inline-flex items-center
|
|
755
|
-
var BARE_BASE = "relative inline-flex items-center gap-sm select-none cursor-pointer transition duration-150 ease-out disabled:cursor-not-allowed disabled:opacity-50";
|
|
747
|
+
var BASE = "relative inline-flex items-center gap-sm whitespace-nowrap select-none cursor-pointer transition duration-150 ease-out active:scale-100 disabled:cursor-not-allowed disabled:opacity-50";
|
|
748
|
+
var BARE_BASE = "relative inline-flex items-center gap-sm select-none cursor-pointer transition duration-150 ease-out active:scale-100 disabled:cursor-not-allowed disabled:opacity-50";
|
|
749
|
+
var ALIGN = {
|
|
750
|
+
center: "justify-center",
|
|
751
|
+
start: "justify-start text-left"
|
|
752
|
+
};
|
|
756
753
|
var FOCUS_RING = {
|
|
757
754
|
outer: "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue focus-visible:ring-offset-2 focus-visible:ring-offset-canvas",
|
|
758
755
|
inset: "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue focus-visible:ring-inset"
|
|
@@ -874,6 +871,7 @@ function forcedRing(variant, visualState, focusRing) {
|
|
|
874
871
|
const color = variant === "quiet" || variant === "ghost" ? "ring-primary/30" : "ring-focus-blue";
|
|
875
872
|
return focusRing === "inset" ? `ring-2 ${color} ring-inset` : `ring-2 ${color} ring-offset-2 ring-offset-canvas`;
|
|
876
873
|
}
|
|
874
|
+
var ICON_SLOT = "inline-flex shrink-0 items-center justify-center";
|
|
877
875
|
var Button = React6.forwardRef(
|
|
878
876
|
({
|
|
879
877
|
variant = "primary",
|
|
@@ -886,6 +884,9 @@ var Button = React6.forwardRef(
|
|
|
886
884
|
visualState = "rest",
|
|
887
885
|
fullWidth = false,
|
|
888
886
|
iconOnly = false,
|
|
887
|
+
align = "center",
|
|
888
|
+
iconLeft,
|
|
889
|
+
iconRight,
|
|
889
890
|
disabled = false,
|
|
890
891
|
className,
|
|
891
892
|
children,
|
|
@@ -898,12 +899,15 @@ var Button = React6.forwardRef(
|
|
|
898
899
|
chromeLess ? BARE_BASE : BASE,
|
|
899
900
|
chromeLess ? "" : RADIUS[shape],
|
|
900
901
|
chromeLess ? "" : iconOnly ? ICON_ONLY_SIZE[size] : SIZE[size],
|
|
902
|
+
chromeLess ? "" : iconOnly ? ALIGN.center : ALIGN[align],
|
|
901
903
|
chromeLess ? "" : SURFACE[variant][visualState],
|
|
902
904
|
chromeLess && visualState === "rest" ? "" : forcedRing(variant, visualState, focusRing),
|
|
903
905
|
FOCUS_RING[focusRing],
|
|
904
906
|
fullWidth ? "w-full" : "",
|
|
905
907
|
className
|
|
906
908
|
].filter(Boolean).join(" ");
|
|
909
|
+
const leading = iconLeft ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { "aria-hidden": "true", className: ICON_SLOT, children: iconLeft }) : null;
|
|
910
|
+
const trailing = iconRight ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { "aria-hidden": "true", className: ICON_SLOT, children: iconRight }) : null;
|
|
907
911
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
908
912
|
"button",
|
|
909
913
|
{
|
|
@@ -911,7 +915,7 @@ var Button = React6.forwardRef(
|
|
|
911
915
|
type,
|
|
912
916
|
disabled,
|
|
913
917
|
"aria-busy": loading || void 0,
|
|
914
|
-
className: classes
|
|
918
|
+
className: `${classes} cursor-pointer transition duration-150 ease-out active:scale-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus-blue disabled:cursor-not-allowed disabled:opacity-50`,
|
|
915
919
|
...rest,
|
|
916
920
|
children: [
|
|
917
921
|
loading ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
@@ -921,7 +925,9 @@ var Button = React6.forwardRef(
|
|
|
921
925
|
className: "inline-block size-4 shrink-0 animate-spin rounded-full border-2 border-current border-t-transparent"
|
|
922
926
|
}
|
|
923
927
|
) : null,
|
|
924
|
-
|
|
928
|
+
leading,
|
|
929
|
+
chromeLess || iconOnly ? content : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "truncate", children: content }),
|
|
930
|
+
trailing
|
|
925
931
|
]
|
|
926
932
|
}
|
|
927
933
|
);
|
|
@@ -2107,7 +2113,7 @@ var CalendarDateRangePicker = React14.forwardRef(function CalendarDateRangePicke
|
|
|
2107
2113
|
{
|
|
2108
2114
|
id: headingId,
|
|
2109
2115
|
"aria-live": "polite",
|
|
2110
|
-
className: "flex-1 text-center text-body-md font-
|
|
2116
|
+
className: "flex-1 text-center text-body-md font-medium text-ink",
|
|
2111
2117
|
children: formatMonth(viewDate)
|
|
2112
2118
|
}
|
|
2113
2119
|
),
|
|
@@ -2186,7 +2192,7 @@ var CalendarDateRangePicker = React14.forwardRef(function CalendarDateRangePicke
|
|
|
2186
2192
|
{
|
|
2187
2193
|
className: cx(
|
|
2188
2194
|
"relative z-10 flex size-8 items-center justify-center text-body-sm",
|
|
2189
|
-
isSelected ? "rounded-md bg-primary font-
|
|
2195
|
+
isSelected ? "rounded-md bg-primary font-medium text-on-primary shadow-sm" : "text-ink"
|
|
2190
2196
|
),
|
|
2191
2197
|
children: cell.day
|
|
2192
2198
|
}
|
|
@@ -2303,7 +2309,7 @@ var PADDING = {
|
|
|
2303
2309
|
sm: "gap-md px-base py-sm",
|
|
2304
2310
|
md: "gap-lg px-lg py-base"
|
|
2305
2311
|
};
|
|
2306
|
-
var
|
|
2312
|
+
var ALIGN2 = {
|
|
2307
2313
|
start: "items-start",
|
|
2308
2314
|
center: "items-center"
|
|
2309
2315
|
};
|
|
@@ -2332,7 +2338,7 @@ var CardFooter = React16.forwardRef(
|
|
|
2332
2338
|
className: cx3(
|
|
2333
2339
|
"flex w-full flex-wrap rounded-lg",
|
|
2334
2340
|
separated ? "border-t border-hairline-soft" : "",
|
|
2335
|
-
|
|
2341
|
+
ALIGN2[align],
|
|
2336
2342
|
PADDING[size],
|
|
2337
2343
|
className
|
|
2338
2344
|
),
|
|
@@ -2373,7 +2379,7 @@ var PADDING2 = {
|
|
|
2373
2379
|
sm: "gap-md px-base py-sm",
|
|
2374
2380
|
md: "gap-lg px-lg py-base"
|
|
2375
2381
|
};
|
|
2376
|
-
var
|
|
2382
|
+
var ALIGN3 = {
|
|
2377
2383
|
start: "items-start",
|
|
2378
2384
|
center: "items-center"
|
|
2379
2385
|
};
|
|
@@ -2400,7 +2406,7 @@ var CardHeader = React17.forwardRef(
|
|
|
2400
2406
|
ref,
|
|
2401
2407
|
className: cx4(
|
|
2402
2408
|
"flex w-full flex-wrap rounded-lg",
|
|
2403
|
-
|
|
2409
|
+
ALIGN3[align],
|
|
2404
2410
|
PADDING2[size],
|
|
2405
2411
|
className
|
|
2406
2412
|
),
|
|
@@ -3886,10 +3892,7 @@ var Combobox = React25.forwardRef(
|
|
|
3886
3892
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3887
3893
|
"span",
|
|
3888
3894
|
{
|
|
3889
|
-
className: cx6(
|
|
3890
|
-
"truncate",
|
|
3891
|
-
isActive ? "font-weight-label-lg" : ""
|
|
3892
|
-
),
|
|
3895
|
+
className: cx6("truncate", isActive ? "font-medium" : ""),
|
|
3893
3896
|
children: option.label
|
|
3894
3897
|
}
|
|
3895
3898
|
)
|
|
@@ -6375,7 +6378,7 @@ var DatePickerInput = React35.forwardRef(function DatePickerInput2({
|
|
|
6375
6378
|
"span",
|
|
6376
6379
|
{
|
|
6377
6380
|
"aria-live": "polite",
|
|
6378
|
-
className: "flex-1 text-center text-body-sm font-
|
|
6381
|
+
className: "flex-1 text-center text-body-sm font-medium text-ink",
|
|
6379
6382
|
children: formatMonth2(viewDate)
|
|
6380
6383
|
}
|
|
6381
6384
|
),
|
|
@@ -13156,7 +13159,7 @@ function ProgressRing({ label, ratio }) {
|
|
|
13156
13159
|
className: "absolute inset-xxs rounded-full bg-surface"
|
|
13157
13160
|
}
|
|
13158
13161
|
),
|
|
13159
|
-
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "relative text-caption font-
|
|
13162
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "relative text-caption font-medium text-ink", children: label })
|
|
13160
13163
|
]
|
|
13161
13164
|
}
|
|
13162
13165
|
);
|
|
@@ -13168,7 +13171,7 @@ function StatusMarker({
|
|
|
13168
13171
|
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "flex size-5 shrink-0 items-center justify-center rounded-full bg-semantic-success text-on-primary", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Icon, { name: "check", size: 12, strokeWidth: 3 }) });
|
|
13169
13172
|
}
|
|
13170
13173
|
if (status === "error") {
|
|
13171
|
-
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "flex size-5 shrink-0 items-center justify-center rounded-full border-2 border-semantic-error bg-surface text-semantic-error", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-caption font-
|
|
13174
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "flex size-5 shrink-0 items-center justify-center rounded-full border-2 border-semantic-error bg-surface text-semantic-error", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { "aria-hidden": "true", className: "text-caption font-semibold leading-none", children: "!" }) });
|
|
13172
13175
|
}
|
|
13173
13176
|
if (status === "active") {
|
|
13174
13177
|
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "flex size-5 shrink-0 items-center justify-center rounded-full border-2 border-primary bg-surface", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "size-2 rounded-full bg-primary" }) });
|
|
@@ -13993,7 +13996,7 @@ var LOGO_TONE = {
|
|
|
13993
13996
|
};
|
|
13994
13997
|
function QuoteCard({ item }) {
|
|
13995
13998
|
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("figure", { className: "flex w-full flex-col rounded-lg border border-hairline bg-surface p-lg", children: [
|
|
13996
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("blockquote", { className: "text-body-lg font-
|
|
13999
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("blockquote", { className: "text-body-lg font-medium text-ink", children: [
|
|
13997
14000
|
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { "aria-hidden": "true", className: "select-none", children: "\u201C" }),
|
|
13998
14001
|
item.quote,
|
|
13999
14002
|
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { "aria-hidden": "true", className: "select-none", children: "\u201D" })
|
|
@@ -14037,7 +14040,7 @@ var TestimonialBlock = React80.forwardRef(function TestimonialBlock2({
|
|
|
14037
14040
|
children: [
|
|
14038
14041
|
headingLines.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("h2", { className: "mb-xl flex flex-col text-heading-lg text-ink", children: headingLines.map((line) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { children: line }, line)) }) : null,
|
|
14039
14042
|
variant === "logos" ? /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex w-full flex-col items-center gap-lg", children: [
|
|
14040
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "text-center text-body-lg font-
|
|
14043
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "text-center text-body-lg font-medium text-ink", children: trustedHeading }),
|
|
14041
14044
|
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("ul", { className: "flex flex-wrap items-center justify-center gap-x-xl gap-y-base", children: logos.map((logo) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("li", { className: "flex items-center gap-sm", children: [
|
|
14042
14045
|
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
14043
14046
|
Icon,
|
|
@@ -14443,14 +14446,18 @@ var React84 = __toESM(require("react"));
|
|
|
14443
14446
|
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
14444
14447
|
var Wizard = React84.forwardRef(
|
|
14445
14448
|
({
|
|
14446
|
-
title = "
|
|
14449
|
+
title = "",
|
|
14447
14450
|
steps,
|
|
14448
14451
|
currentStep,
|
|
14449
14452
|
defaultStep = 0,
|
|
14450
14453
|
onStepChange,
|
|
14451
14454
|
onClose,
|
|
14452
14455
|
onBack,
|
|
14456
|
+
onNext,
|
|
14453
14457
|
onComplete,
|
|
14458
|
+
canAdvance = true,
|
|
14459
|
+
allowJumpAhead = false,
|
|
14460
|
+
completing = false,
|
|
14454
14461
|
backLabel = "Back",
|
|
14455
14462
|
nextLabel = "Next",
|
|
14456
14463
|
completeLabel = "Publish",
|
|
@@ -14466,27 +14473,40 @@ var Wizard = React84.forwardRef(
|
|
|
14466
14473
|
lastIndex
|
|
14467
14474
|
);
|
|
14468
14475
|
const baseId = React84.useId();
|
|
14469
|
-
const titleId = baseId + "-title";
|
|
14470
14476
|
const isLast = index === lastIndex;
|
|
14471
|
-
const
|
|
14477
|
+
const hasTitle = title !== "" && title !== null && title !== void 0;
|
|
14478
|
+
const showHeader = hasTitle || onClose !== void 0;
|
|
14479
|
+
const backDisabled = index === 0 && onBack === void 0;
|
|
14480
|
+
const primaryDisabled = !canAdvance || completing;
|
|
14481
|
+
const commitStep = (next) => {
|
|
14472
14482
|
const clamped = Math.min(Math.max(next, 0), lastIndex);
|
|
14473
14483
|
if (clamped === index) return;
|
|
14474
14484
|
if (!controlled) setUncontrolledStep(clamped);
|
|
14475
14485
|
onStepChange?.(clamped, steps[clamped]);
|
|
14476
14486
|
};
|
|
14487
|
+
const handleRailClick = (target) => {
|
|
14488
|
+
if (target === index) return;
|
|
14489
|
+
if (!allowJumpAhead && target > index) return;
|
|
14490
|
+
commitStep(target);
|
|
14491
|
+
};
|
|
14477
14492
|
const handleAdvance = () => {
|
|
14493
|
+
if (primaryDisabled) return;
|
|
14494
|
+
if (onNext) {
|
|
14495
|
+
const outcome = onNext(index);
|
|
14496
|
+
if (outcome === false) return;
|
|
14497
|
+
}
|
|
14478
14498
|
if (isLast) {
|
|
14479
14499
|
onComplete?.();
|
|
14480
14500
|
return;
|
|
14481
14501
|
}
|
|
14482
|
-
|
|
14502
|
+
commitStep(index + 1);
|
|
14483
14503
|
};
|
|
14484
14504
|
const handleBack = () => {
|
|
14485
14505
|
if (index === 0) {
|
|
14486
14506
|
onBack?.();
|
|
14487
14507
|
return;
|
|
14488
14508
|
}
|
|
14489
|
-
|
|
14509
|
+
commitStep(index - 1);
|
|
14490
14510
|
};
|
|
14491
14511
|
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
14492
14512
|
"div",
|
|
@@ -14498,9 +14518,9 @@ var Wizard = React84.forwardRef(
|
|
|
14498
14518
|
].filter(Boolean).join(" "),
|
|
14499
14519
|
...rest,
|
|
14500
14520
|
children: [
|
|
14501
|
-
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex items-center justify-between gap-base border-b border-hairline py-md pl-lg pr-md", children: [
|
|
14502
|
-
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("h2", {
|
|
14503
|
-
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
14521
|
+
showHeader ? /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex items-center justify-between gap-base border-b border-hairline py-md pl-lg pr-md", children: [
|
|
14522
|
+
hasTitle ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("h2", { className: "min-w-0 truncate text-heading-sm text-ink", children: title }) : /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { "aria-hidden": "true" }),
|
|
14523
|
+
onClose ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
14504
14524
|
Button,
|
|
14505
14525
|
{
|
|
14506
14526
|
variant: "ghost",
|
|
@@ -14510,37 +14530,39 @@ var Wizard = React84.forwardRef(
|
|
|
14510
14530
|
onClick: onClose,
|
|
14511
14531
|
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Icon, { name: "x", size: 18, strokeWidth: 2 })
|
|
14512
14532
|
}
|
|
14513
|
-
)
|
|
14514
|
-
] }),
|
|
14533
|
+
) : null
|
|
14534
|
+
] }) : null,
|
|
14515
14535
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex flex-col sm:flex-row", children: [
|
|
14516
14536
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
14517
14537
|
"nav",
|
|
14518
14538
|
{
|
|
14519
14539
|
"aria-label": "Progress",
|
|
14520
|
-
"
|
|
14521
|
-
className: "w-full shrink-0 border-b border-hairline p-sm sm:w-1/3 sm:border-b-0 sm:border-r sm:px-md sm:py-md",
|
|
14540
|
+
className: "w-full shrink-0 border-b border-hairline p-sm sm:w-2/5 sm:border-b-0 sm:border-r sm:px-md sm:py-md",
|
|
14522
14541
|
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("ol", { className: "flex flex-col gap-xxs", children: steps.map((item, itemIndex) => {
|
|
14523
14542
|
const isActive = itemIndex === index;
|
|
14524
14543
|
const isDone = itemIndex < index;
|
|
14544
|
+
const locked = !allowJumpAhead && itemIndex > index;
|
|
14525
14545
|
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
14526
14546
|
Button,
|
|
14527
14547
|
{
|
|
14528
14548
|
chrome: "none",
|
|
14529
|
-
onClick: () =>
|
|
14549
|
+
onClick: () => handleRailClick(itemIndex),
|
|
14530
14550
|
"aria-current": isActive ? "step" : void 0,
|
|
14551
|
+
"aria-disabled": locked || void 0,
|
|
14531
14552
|
"aria-controls": baseId + "-panel-" + itemIndex,
|
|
14532
14553
|
className: [
|
|
14533
14554
|
"w-full rounded-md px-sm py-xs text-left",
|
|
14555
|
+
locked ? "cursor-not-allowed" : "",
|
|
14534
14556
|
isActive ? "bg-primary-soft hover:bg-primary-soft active:bg-primary-soft" : "hover:bg-surface-soft active:bg-surface-strong"
|
|
14535
|
-
].join(" "),
|
|
14557
|
+
].filter(Boolean).join(" "),
|
|
14536
14558
|
children: [
|
|
14537
14559
|
isDone ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: "flex size-6 shrink-0 items-center justify-center rounded-full border border-semantic-success bg-surface text-semantic-success", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Icon, { name: "check", size: 13, strokeWidth: 2.8 }) }) : /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
14538
14560
|
"span",
|
|
14539
14561
|
{
|
|
14540
14562
|
className: [
|
|
14541
|
-
"flex size-6 shrink-0 items-center justify-center rounded-full text-
|
|
14563
|
+
"flex size-6 shrink-0 items-center justify-center rounded-full text-caption",
|
|
14542
14564
|
"transition duration-200 ease-out",
|
|
14543
|
-
isActive ? "bg-primary text-on-primary" : "border border-hairline text-muted"
|
|
14565
|
+
isActive ? "bg-primary text-on-primary" : "border border-hairline-strong bg-surface text-muted"
|
|
14544
14566
|
].join(" "),
|
|
14545
14567
|
children: itemIndex + 1
|
|
14546
14568
|
}
|
|
@@ -14549,7 +14571,7 @@ var Wizard = React84.forwardRef(
|
|
|
14549
14571
|
"span",
|
|
14550
14572
|
{
|
|
14551
14573
|
className: [
|
|
14552
|
-
"min-w-0
|
|
14574
|
+
"min-w-0 text-label-sm leading-snug transition duration-200 ease-out",
|
|
14553
14575
|
isActive ? "text-ink" : isDone ? "text-body" : "text-muted"
|
|
14554
14576
|
].join(" "),
|
|
14555
14577
|
children: item.label
|
|
@@ -14593,8 +14615,37 @@ var Wizard = React84.forwardRef(
|
|
|
14593
14615
|
);
|
|
14594
14616
|
}) }),
|
|
14595
14617
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex items-center justify-end gap-sm px-lg pb-base pt-md", children: [
|
|
14596
|
-
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
14597
|
-
|
|
14618
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
14619
|
+
Button,
|
|
14620
|
+
{
|
|
14621
|
+
variant: "outline",
|
|
14622
|
+
size: "control",
|
|
14623
|
+
onClick: handleBack,
|
|
14624
|
+
disabled: backDisabled,
|
|
14625
|
+
children: backLabel
|
|
14626
|
+
}
|
|
14627
|
+
),
|
|
14628
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
14629
|
+
Button,
|
|
14630
|
+
{
|
|
14631
|
+
variant: "primary",
|
|
14632
|
+
size: "control",
|
|
14633
|
+
onClick: handleAdvance,
|
|
14634
|
+
disabled: primaryDisabled,
|
|
14635
|
+
"aria-busy": completing || void 0,
|
|
14636
|
+
children: completing ? /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("span", { className: "inline-flex items-center gap-xs", children: [
|
|
14637
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
14638
|
+
Spinner,
|
|
14639
|
+
{
|
|
14640
|
+
size: "sm",
|
|
14641
|
+
statusLabel: completeLabel,
|
|
14642
|
+
className: "[&>span]:border-on-primary/30 [&>span]:border-t-on-primary"
|
|
14643
|
+
}
|
|
14644
|
+
),
|
|
14645
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { children: completeLabel })
|
|
14646
|
+
] }) : isLast ? completeLabel : nextLabel
|
|
14647
|
+
}
|
|
14648
|
+
)
|
|
14598
14649
|
] })
|
|
14599
14650
|
] })
|
|
14600
14651
|
] })
|