@nswds/app 1.27.0 → 1.28.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/globals.css +85 -4
- package/dist/index.cjs +43 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +43 -36
- package/dist/index.js.map +1 -1
- package/dist/styles.css +85 -4
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/globals.css
CHANGED
|
@@ -116,6 +116,11 @@
|
|
|
116
116
|
--color-grey-600: oklch(0.426426783985819 0.011202235626284581 232.61715023407646);
|
|
117
117
|
--color-grey-800: oklch(0.26941250740174183 0.010359971488680036 242.08383926925922);
|
|
118
118
|
--color-grey-900: oklch(0.17511812981113217 0.007251980042076026 242.08383926925922);
|
|
119
|
+
--color-success-450: oklch(0.6326270919832794 0.153487552492673 142.8252122365381);
|
|
120
|
+
--color-success-500: oklch(0.6047649705534097 0.16397310554979067 142.81705960187193);
|
|
121
|
+
--color-success-550: oklch(0.57690284912354 0.17445865860690835 142.80890696720576);
|
|
122
|
+
--color-danger-450: oklch(0.5961466901234453 0.1600594003984286 18.251840020312933);
|
|
123
|
+
--color-danger-500: oklch(0.5647631027123693 0.17094795668235796 18.194273652364046);
|
|
119
124
|
}
|
|
120
125
|
}
|
|
121
126
|
@layer base {
|
|
@@ -1371,6 +1376,9 @@
|
|
|
1371
1376
|
.border-grey-200 {
|
|
1372
1377
|
border-color: oklch(0.9400701096450296 0 0);
|
|
1373
1378
|
}
|
|
1379
|
+
.border-grey-300 {
|
|
1380
|
+
border-color: oklch(0.9015833129261941 0.0038881189007590215 228.8687380011113);
|
|
1381
|
+
}
|
|
1374
1382
|
.border-grey-950 {
|
|
1375
1383
|
border-color: oklch(0.12797094101582737 0.005697984318774021 242.08383926925922);
|
|
1376
1384
|
}
|
|
@@ -1389,12 +1397,18 @@
|
|
|
1389
1397
|
.border-nsw-grey-600 {
|
|
1390
1398
|
border-color: var(--color-nsw-grey-600);
|
|
1391
1399
|
}
|
|
1400
|
+
.border-primary-500 {
|
|
1401
|
+
border-color: oklch(0.719602022988773 0.1609881523353869 242.17574150873253);
|
|
1402
|
+
}
|
|
1392
1403
|
.border-red-400 {
|
|
1393
1404
|
border-color: var(--color-red-400);
|
|
1394
1405
|
}
|
|
1395
1406
|
.border-slate-200 {
|
|
1396
1407
|
border-color: var(--color-slate-200);
|
|
1397
1408
|
}
|
|
1409
|
+
.border-success-450 {
|
|
1410
|
+
border-color: var(--color-success-450);
|
|
1411
|
+
}
|
|
1398
1412
|
.border-transparent {
|
|
1399
1413
|
border-color: transparent;
|
|
1400
1414
|
}
|
|
@@ -1449,8 +1463,8 @@
|
|
|
1449
1463
|
.bg-border {
|
|
1450
1464
|
background-color: var(--border);
|
|
1451
1465
|
}
|
|
1452
|
-
.bg-
|
|
1453
|
-
background-color: var(--color-
|
|
1466
|
+
.bg-danger-450 {
|
|
1467
|
+
background-color: var(--color-danger-450);
|
|
1454
1468
|
}
|
|
1455
1469
|
.bg-gray-800 {
|
|
1456
1470
|
background-color: var(--color-gray-800);
|
|
@@ -1467,6 +1481,9 @@
|
|
|
1467
1481
|
.bg-grey-100 {
|
|
1468
1482
|
background-color: oklch(0.9700350548225147 0 0);
|
|
1469
1483
|
}
|
|
1484
|
+
.bg-grey-300 {
|
|
1485
|
+
background-color: oklch(0.9015833129261941 0.0038881189007590215 228.8687380011113);
|
|
1486
|
+
}
|
|
1470
1487
|
.bg-grey-950 {
|
|
1471
1488
|
background-color: oklch(0.12797094101582737 0.005697984318774021 242.08383926925922);
|
|
1472
1489
|
}
|
|
@@ -1497,6 +1514,9 @@
|
|
|
1497
1514
|
.bg-nsw-grey-800 {
|
|
1498
1515
|
background-color: var(--color-nsw-grey-800);
|
|
1499
1516
|
}
|
|
1517
|
+
.bg-primary-500 {
|
|
1518
|
+
background-color: oklch(0.719602022988773 0.1609881523353869 242.17574150873253);
|
|
1519
|
+
}
|
|
1500
1520
|
.bg-primary-800 {
|
|
1501
1521
|
background-color: oklch(0.2899986864508513 0.11729574451023282 259.841936589881);
|
|
1502
1522
|
}
|
|
@@ -1509,6 +1529,12 @@
|
|
|
1509
1529
|
.bg-purple-50 {
|
|
1510
1530
|
background-color: var(--color-purple-50);
|
|
1511
1531
|
}
|
|
1532
|
+
.bg-success-450 {
|
|
1533
|
+
background-color: var(--color-success-450);
|
|
1534
|
+
}
|
|
1535
|
+
.bg-success-500 {
|
|
1536
|
+
background-color: var(--color-success-500);
|
|
1537
|
+
}
|
|
1512
1538
|
.bg-transparent {
|
|
1513
1539
|
background-color: transparent;
|
|
1514
1540
|
}
|
|
@@ -2039,6 +2065,9 @@
|
|
|
2039
2065
|
.text-nsw-grey-800 {
|
|
2040
2066
|
color: var(--color-nsw-grey-800);
|
|
2041
2067
|
}
|
|
2068
|
+
.text-primary-500 {
|
|
2069
|
+
color: oklch(0.719602022988773 0.1609881523353869 242.17574150873253);
|
|
2070
|
+
}
|
|
2042
2071
|
.text-primary-700 {
|
|
2043
2072
|
color: oklch(0.43255566986372795 0.17356468700683536 260.29913478593846);
|
|
2044
2073
|
}
|
|
@@ -2063,6 +2092,9 @@
|
|
|
2063
2092
|
.text-slate-900 {
|
|
2064
2093
|
color: var(--color-slate-900);
|
|
2065
2094
|
}
|
|
2095
|
+
.text-success-450 {
|
|
2096
|
+
color: var(--color-success-450);
|
|
2097
|
+
}
|
|
2066
2098
|
.text-transparent {
|
|
2067
2099
|
color: transparent;
|
|
2068
2100
|
}
|
|
@@ -2526,6 +2558,13 @@
|
|
|
2526
2558
|
background-color: color-mix(in oklab, oklch(0.2899986864508513 0.11729574451023282 259.841936589881) 10%, transparent);
|
|
2527
2559
|
}
|
|
2528
2560
|
}
|
|
2561
|
+
.group-hover\:border-danger-500 {
|
|
2562
|
+
&:is(:where(.group):hover *) {
|
|
2563
|
+
@media (hover: hover) {
|
|
2564
|
+
border-color: var(--color-danger-500);
|
|
2565
|
+
}
|
|
2566
|
+
}
|
|
2567
|
+
}
|
|
2529
2568
|
.group-hover\:border-gray-400 {
|
|
2530
2569
|
&:is(:where(.group):hover *) {
|
|
2531
2570
|
@media (hover: hover) {
|
|
@@ -2533,10 +2572,31 @@
|
|
|
2533
2572
|
}
|
|
2534
2573
|
}
|
|
2535
2574
|
}
|
|
2536
|
-
.group-hover\:
|
|
2575
|
+
.group-hover\:border-primary-550 {
|
|
2537
2576
|
&:is(:where(.group):hover *) {
|
|
2538
2577
|
@media (hover: hover) {
|
|
2539
|
-
|
|
2578
|
+
border-color: oklch(0.6473573381326887 0.19541089091941238 251.4660372453642);
|
|
2579
|
+
}
|
|
2580
|
+
}
|
|
2581
|
+
}
|
|
2582
|
+
.group-hover\:border-success-550 {
|
|
2583
|
+
&:is(:where(.group):hover *) {
|
|
2584
|
+
@media (hover: hover) {
|
|
2585
|
+
border-color: var(--color-success-550);
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
}
|
|
2589
|
+
.group-hover\:bg-danger-500 {
|
|
2590
|
+
&:is(:where(.group):hover *) {
|
|
2591
|
+
@media (hover: hover) {
|
|
2592
|
+
background-color: var(--color-danger-500);
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
}
|
|
2596
|
+
.group-hover\:bg-grey-300 {
|
|
2597
|
+
&:is(:where(.group):hover *) {
|
|
2598
|
+
@media (hover: hover) {
|
|
2599
|
+
background-color: oklch(0.9015833129261941 0.0038881189007590215 228.8687380011113);
|
|
2540
2600
|
}
|
|
2541
2601
|
}
|
|
2542
2602
|
}
|
|
@@ -2547,6 +2607,27 @@
|
|
|
2547
2607
|
}
|
|
2548
2608
|
}
|
|
2549
2609
|
}
|
|
2610
|
+
.group-hover\:bg-primary-550 {
|
|
2611
|
+
&:is(:where(.group):hover *) {
|
|
2612
|
+
@media (hover: hover) {
|
|
2613
|
+
background-color: oklch(0.6473573381326887 0.19541089091941238 251.4660372453642);
|
|
2614
|
+
}
|
|
2615
|
+
}
|
|
2616
|
+
}
|
|
2617
|
+
.group-hover\:bg-success-450 {
|
|
2618
|
+
&:is(:where(.group):hover *) {
|
|
2619
|
+
@media (hover: hover) {
|
|
2620
|
+
background-color: var(--color-success-450);
|
|
2621
|
+
}
|
|
2622
|
+
}
|
|
2623
|
+
}
|
|
2624
|
+
.group-hover\:bg-success-500 {
|
|
2625
|
+
&:is(:where(.group):hover *) {
|
|
2626
|
+
@media (hover: hover) {
|
|
2627
|
+
background-color: var(--color-success-500);
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2550
2631
|
.group-hover\:fill-nsw-grey-900 {
|
|
2551
2632
|
&:is(:where(.group):hover *) {
|
|
2552
2633
|
@media (hover: hover) {
|
package/dist/index.cjs
CHANGED
|
@@ -7454,7 +7454,7 @@ function Heading({
|
|
|
7454
7454
|
|
|
7455
7455
|
// package.json
|
|
7456
7456
|
var package_default = {
|
|
7457
|
-
version: "1.
|
|
7457
|
+
version: "1.27.0"};
|
|
7458
7458
|
function Logo(props) {
|
|
7459
7459
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7460
7460
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "NSW Government" }),
|
|
@@ -8526,7 +8526,7 @@ var StepIndicator = React6__namespace.forwardRef(
|
|
|
8526
8526
|
"div",
|
|
8527
8527
|
{
|
|
8528
8528
|
"aria-hidden": "true",
|
|
8529
|
-
className: "absolute top-4 left-3 mt-0.5 -ml-px h-full w-0.5
|
|
8529
|
+
className: "bg-grey-300 absolute top-4 left-3 mt-0.5 -ml-px h-full w-0.5"
|
|
8530
8530
|
}
|
|
8531
8531
|
) : null,
|
|
8532
8532
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -8536,16 +8536,16 @@ var StepIndicator = React6__namespace.forwardRef(
|
|
|
8536
8536
|
className: "group relative flex items-center",
|
|
8537
8537
|
onClick: onLinkClick,
|
|
8538
8538
|
children: [
|
|
8539
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "-ml-1 flex h-9 items-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "border-
|
|
8539
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "-ml-1 flex h-9 items-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "border-primary-500 relative z-10 flex size-8 items-center justify-center rounded-full border-2 bg-white", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "border-primary-500 relative z-10 flex size-6 items-center justify-center rounded-full border-2 bg-white", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8540
8540
|
Icons.more_horiz,
|
|
8541
8541
|
{
|
|
8542
8542
|
"aria-hidden": "true",
|
|
8543
|
-
className: "text-
|
|
8543
|
+
className: "text-primary-500 size-4"
|
|
8544
8544
|
}
|
|
8545
8545
|
) }) }) }),
|
|
8546
8546
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ml-3 flex min-w-0 flex-col", children: [
|
|
8547
|
-
step.title && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-
|
|
8548
|
-
step.description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-
|
|
8547
|
+
step.title && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary-500 text-sm font-semibold dark:text-slate-400", children: step.title }),
|
|
8548
|
+
step.description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary-500 text-sm font-semibold dark:text-slate-400", children: step.description })
|
|
8549
8549
|
] })
|
|
8550
8550
|
]
|
|
8551
8551
|
}
|
|
@@ -8555,7 +8555,7 @@ var StepIndicator = React6__namespace.forwardRef(
|
|
|
8555
8555
|
"div",
|
|
8556
8556
|
{
|
|
8557
8557
|
"aria-hidden": "true",
|
|
8558
|
-
className: "absolute top-4 left-3 mt-0.5 -ml-px h-full w-0.5
|
|
8558
|
+
className: "bg-grey-300 absolute top-4 left-3 mt-0.5 -ml-px h-full w-0.5"
|
|
8559
8559
|
}
|
|
8560
8560
|
) : null,
|
|
8561
8561
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -8566,10 +8566,10 @@ var StepIndicator = React6__namespace.forwardRef(
|
|
|
8566
8566
|
className: "group relative flex items-center",
|
|
8567
8567
|
onClick: onLinkClick,
|
|
8568
8568
|
children: [
|
|
8569
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: "flex h-9 items-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "border-
|
|
8569
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: "flex h-9 items-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "border-primary-500 relative z-10 flex size-6 items-center justify-center rounded-full border-2 bg-white", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-primary-500 size-2 rounded-full" }) }) }),
|
|
8570
8570
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ml-4 flex min-w-0 flex-col", children: [
|
|
8571
|
-
step.title && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-
|
|
8572
|
-
step.description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-
|
|
8571
|
+
step.title && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary-500 text-sm font-semibold dark:text-slate-400", children: step.title }),
|
|
8572
|
+
step.description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-primary-500 text-sm font-semibold dark:text-slate-400", children: step.description })
|
|
8573
8573
|
] })
|
|
8574
8574
|
]
|
|
8575
8575
|
}
|
|
@@ -8579,7 +8579,7 @@ var StepIndicator = React6__namespace.forwardRef(
|
|
|
8579
8579
|
"div",
|
|
8580
8580
|
{
|
|
8581
8581
|
"aria-hidden": "true",
|
|
8582
|
-
className: "bg-success absolute top-4 left-3 mt-0.5 -ml-px h-full w-0.5"
|
|
8582
|
+
className: "bg-success-500 absolute top-4 left-3 mt-0.5 -ml-px h-full w-0.5"
|
|
8583
8583
|
}
|
|
8584
8584
|
) : null,
|
|
8585
8585
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -8589,7 +8589,7 @@ var StepIndicator = React6__namespace.forwardRef(
|
|
|
8589
8589
|
className: "group relative flex items-center",
|
|
8590
8590
|
onClick: onLinkClick,
|
|
8591
8591
|
children: [
|
|
8592
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-9 items-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-success-
|
|
8592
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-9 items-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-success-450 group-hover:bg-success-500 group-hover:border-success-550 relative z-10 flex size-6 items-center justify-center rounded-full", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.check, { "aria-hidden": "true", className: "size-4 text-white" }) }) }),
|
|
8593
8593
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ml-4 flex min-w-0 flex-col", children: [
|
|
8594
8594
|
step.title && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-nsw-grey-700 hover:text-nsw-grey-800 text-sm dark:text-slate-400 dark:hover:text-slate-300", children: step.title }),
|
|
8595
8595
|
step.description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-nsw-grey-700 hover:text-nsw-grey-800 text-sm dark:text-slate-400 dark:hover:text-slate-300", children: step.description })
|
|
@@ -8602,7 +8602,7 @@ var StepIndicator = React6__namespace.forwardRef(
|
|
|
8602
8602
|
"div",
|
|
8603
8603
|
{
|
|
8604
8604
|
"aria-hidden": "true",
|
|
8605
|
-
className: "absolute top-4 left-3 mt-0.5 -ml-px h-full w-0.5
|
|
8605
|
+
className: "bg-grey-300 absolute top-4 left-3 mt-0.5 -ml-px h-full w-0.5"
|
|
8606
8606
|
}
|
|
8607
8607
|
) : null,
|
|
8608
8608
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -8612,7 +8612,7 @@ var StepIndicator = React6__namespace.forwardRef(
|
|
|
8612
8612
|
className: "group relative flex items-center",
|
|
8613
8613
|
onClick: onLinkClick,
|
|
8614
8614
|
children: [
|
|
8615
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-9 items-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "border-success-
|
|
8615
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-9 items-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "border-success-450 group-hover:bg-success-450 text-success-450 relative z-10 flex size-6 items-center justify-center rounded-full border-2 bg-white group-hover:text-white", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.check, { "aria-hidden": "true", className: "size-4" }) }) }),
|
|
8616
8616
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ml-4 flex min-w-0 flex-col", children: [
|
|
8617
8617
|
step.title && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-nsw-grey-700 hover:text-nsw-grey-800 text-sm dark:text-slate-400 dark:hover:text-slate-300", children: step.title }),
|
|
8618
8618
|
step.description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-nsw-grey-700 hover:text-nsw-grey-800 text-sm dark:text-slate-400 dark:hover:text-slate-300", children: step.description })
|
|
@@ -8625,7 +8625,7 @@ var StepIndicator = React6__namespace.forwardRef(
|
|
|
8625
8625
|
"div",
|
|
8626
8626
|
{
|
|
8627
8627
|
"aria-hidden": "true",
|
|
8628
|
-
className: "absolute top-4 left-3 mt-0.5 -ml-px h-full w-0.5
|
|
8628
|
+
className: "bg-grey-300 absolute top-4 left-3 mt-0.5 -ml-px h-full w-0.5"
|
|
8629
8629
|
}
|
|
8630
8630
|
) : null,
|
|
8631
8631
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -8635,7 +8635,7 @@ var StepIndicator = React6__namespace.forwardRef(
|
|
|
8635
8635
|
className: "group relative flex items-center",
|
|
8636
8636
|
onClick: onLinkClick,
|
|
8637
8637
|
children: [
|
|
8638
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-9 items-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "border-
|
|
8638
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-9 items-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "border-primary-500 group-hover:border-primary-550 group-hover:bg-primary-550 text-primary-500 relative z-10 flex size-6 items-center justify-center rounded-full border-2 bg-white group-hover:text-white", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.more_horiz, { "aria-hidden": "true", className: "size-4" }) }) }),
|
|
8639
8639
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ml-4 flex min-w-0 flex-col", children: [
|
|
8640
8640
|
step.title && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-nsw-grey-700 hover:text-nsw-grey-800 text-sm dark:text-slate-400 dark:hover:text-slate-300", children: step.title }),
|
|
8641
8641
|
step.description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-nsw-grey-700 hover:text-nsw-grey-800 text-sm dark:text-slate-400 dark:hover:text-slate-300", children: step.description })
|
|
@@ -8648,7 +8648,7 @@ var StepIndicator = React6__namespace.forwardRef(
|
|
|
8648
8648
|
"div",
|
|
8649
8649
|
{
|
|
8650
8650
|
"aria-hidden": "true",
|
|
8651
|
-
className: "bg-
|
|
8651
|
+
className: "bg-danger-450 absolute top-4 left-3 mt-0.5 -ml-px h-full w-0.5"
|
|
8652
8652
|
}
|
|
8653
8653
|
) : null,
|
|
8654
8654
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -8658,7 +8658,7 @@ var StepIndicator = React6__namespace.forwardRef(
|
|
|
8658
8658
|
className: "group relative flex items-center",
|
|
8659
8659
|
onClick: onLinkClick,
|
|
8660
8660
|
children: [
|
|
8661
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-9 items-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-
|
|
8661
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-9 items-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "bg-danger-450 group-hover:bg-danger-500 group-hover:border-danger-500 relative z-10 flex size-6 items-center justify-center rounded-full", children: /* @__PURE__ */ jsxRuntime.jsx(Icons.exclamation, { "aria-hidden": "true", className: "size-4 text-white" }) }) }),
|
|
8662
8662
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ml-4 flex min-w-0 flex-col", children: [
|
|
8663
8663
|
step.title && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-nsw-grey-700 hover:text-nsw-grey-800 text-sm dark:text-slate-400 dark:hover:text-slate-300", children: step.title }),
|
|
8664
8664
|
step.description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-nsw-grey-700 hover:text-nsw-grey-800 text-sm dark:text-slate-400 dark:hover:text-slate-300", children: step.description })
|
|
@@ -8671,7 +8671,7 @@ var StepIndicator = React6__namespace.forwardRef(
|
|
|
8671
8671
|
"div",
|
|
8672
8672
|
{
|
|
8673
8673
|
"aria-hidden": "true",
|
|
8674
|
-
className: "absolute top-4 left-3 mt-0.5 -ml-px h-full w-0.5
|
|
8674
|
+
className: "bg-grey-300 absolute top-4 left-3 mt-0.5 -ml-px h-full w-0.5"
|
|
8675
8675
|
}
|
|
8676
8676
|
) : null,
|
|
8677
8677
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -8681,7 +8681,7 @@ var StepIndicator = React6__namespace.forwardRef(
|
|
|
8681
8681
|
className: "group relative flex items-center",
|
|
8682
8682
|
onClick: onLinkClick,
|
|
8683
8683
|
children: [
|
|
8684
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: "flex h-9 items-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "relative z-10 flex size-6 items-center justify-center rounded-full border-2
|
|
8684
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: "flex h-9 items-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "border-grey-300 relative z-10 flex size-6 items-center justify-center rounded-full border-2 bg-white group-hover:border-gray-400", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "group-hover:bg-grey-300 size-2 rounded-full bg-transparent" }) }) }),
|
|
8685
8685
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ml-4 flex min-w-0 flex-col", children: [
|
|
8686
8686
|
step.title && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-nsw-grey-700 hover:text-nsw-grey-800 text-sm dark:text-slate-400 dark:hover:text-slate-300", children: step.title }),
|
|
8687
8687
|
step.description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-nsw-grey-700 hover:text-nsw-grey-800 text-sm dark:text-slate-400 dark:hover:text-slate-300", children: step.description })
|
|
@@ -8694,7 +8694,7 @@ var StepIndicator = React6__namespace.forwardRef(
|
|
|
8694
8694
|
"div",
|
|
8695
8695
|
{
|
|
8696
8696
|
"aria-hidden": "true",
|
|
8697
|
-
className: "absolute top-4 left-3 mt-0.5 -ml-px h-full w-0.5
|
|
8697
|
+
className: "bg-grey-300 absolute top-4 left-3 mt-0.5 -ml-px h-full w-0.5"
|
|
8698
8698
|
}
|
|
8699
8699
|
) : null,
|
|
8700
8700
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -8717,7 +8717,7 @@ var StepIndicator = React6__namespace.forwardRef(
|
|
|
8717
8717
|
"div",
|
|
8718
8718
|
{
|
|
8719
8719
|
"aria-hidden": "true",
|
|
8720
|
-
className: "absolute top-4 left-3 mt-0.5 -ml-px h-full w-0.5
|
|
8720
|
+
className: "bg-grey-300 absolute top-4 left-3 mt-0.5 -ml-px h-full w-0.5"
|
|
8721
8721
|
}
|
|
8722
8722
|
) : null,
|
|
8723
8723
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -8727,7 +8727,7 @@ var StepIndicator = React6__namespace.forwardRef(
|
|
|
8727
8727
|
className: "group relative flex items-center",
|
|
8728
8728
|
onClick: onLinkClick,
|
|
8729
8729
|
children: [
|
|
8730
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: "flex h-9 items-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "relative z-10 flex size-6 items-center justify-center rounded-full border-2
|
|
8730
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: "flex h-9 items-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "border-grey-300 relative z-10 flex size-6 items-center justify-center rounded-full border-2 bg-white group-hover:border-gray-400", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "group-hover:bg-grey-300 size-2 rounded-full bg-transparent" }) }) }),
|
|
8731
8731
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ml-4 flex min-w-0 flex-col", children: [
|
|
8732
8732
|
step.title && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-nsw-grey-700 hover:text-nsw-grey-800 text-sm dark:text-slate-400 dark:hover:text-slate-300", children: step.title }),
|
|
8733
8733
|
step.description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-nsw-grey-700 hover:text-nsw-grey-800 text-sm dark:text-slate-400 dark:hover:text-slate-300", children: step.description })
|
|
@@ -8742,27 +8742,34 @@ var StepIndicator = React6__namespace.forwardRef(
|
|
|
8742
8742
|
}
|
|
8743
8743
|
);
|
|
8744
8744
|
StepIndicator.displayName = "StepIndicator";
|
|
8745
|
+
function defaultGetStatus(id, storeStatus) {
|
|
8746
|
+
const status = storeStatus[id];
|
|
8747
|
+
if (status === "completed" || status === "saved" || status === "in-progress" || status === "error" || status === "not-started" || status === "cannot-start" || status === "default") {
|
|
8748
|
+
return status;
|
|
8749
|
+
}
|
|
8750
|
+
return "default";
|
|
8751
|
+
}
|
|
8745
8752
|
function StepNavigation({
|
|
8746
8753
|
className,
|
|
8747
8754
|
navigation,
|
|
8748
|
-
useFormStore
|
|
8755
|
+
useFormStore,
|
|
8756
|
+
getStatus = defaultGetStatus
|
|
8749
8757
|
}) {
|
|
8750
8758
|
const { formStatus } = useFormStore();
|
|
8751
|
-
const navigationWithStatus =
|
|
8752
|
-
|
|
8753
|
-
|
|
8754
|
-
|
|
8759
|
+
const navigationWithStatus = React6.useMemo(
|
|
8760
|
+
() => navigation.map((section) => ({
|
|
8761
|
+
...section,
|
|
8762
|
+
links: section.links.map((link) => ({
|
|
8755
8763
|
...link,
|
|
8756
|
-
status: formStatus
|
|
8757
|
-
|
|
8758
|
-
|
|
8759
|
-
|
|
8760
|
-
|
|
8761
|
-
|
|
8762
|
-
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx("nav", { className: clsx12__default.default("text-base lg:text-sm", className), children: /* @__PURE__ */ jsxRuntime.jsx("ul", { role: "list", className: "space-y-9", children: navigationWithStatus.map((section) => /* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
|
|
8764
|
+
status: getStatus(link.id ?? "", formStatus)
|
|
8765
|
+
}))
|
|
8766
|
+
})),
|
|
8767
|
+
[navigation, formStatus, getStatus]
|
|
8768
|
+
);
|
|
8769
|
+
return /* @__PURE__ */ jsxRuntime.jsx("nav", { className: clsx12__default.default("text-base lg:text-sm", className), children: /* @__PURE__ */ jsxRuntime.jsx("ul", { role: "list", className: "space-y-9", children: navigationWithStatus.map((section) => /* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
|
|
8763
8770
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-display font-medium text-slate-900 dark:text-white", children: section.title }),
|
|
8764
8771
|
/* @__PURE__ */ jsxRuntime.jsx(StepIndicator, { className: "mt-2 lg:mt-4", array: section.links })
|
|
8765
|
-
] }, section.title)) }) })
|
|
8772
|
+
] }, section.title)) }) });
|
|
8766
8773
|
}
|
|
8767
8774
|
function Skeleton({ className, ...props }) {
|
|
8768
8775
|
return /* @__PURE__ */ jsxRuntime.jsx(
|