@nswds/app 1.54.3 → 1.54.7
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 +246 -4
- package/dist/index.cjs +473 -369
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -6
- package/dist/index.d.ts +18 -6
- package/dist/index.js +341 -238
- package/dist/index.js.map +1 -1
- package/dist/styles.css +256 -4
- package/dist/styles.css.map +1 -1
- package/package.json +5 -4
package/dist/index.cjs
CHANGED
|
@@ -8,7 +8,7 @@ var classVarianceAuthority = require('class-variance-authority');
|
|
|
8
8
|
var AspectRatioPrimitive = require('@radix-ui/react-aspect-ratio');
|
|
9
9
|
var AvatarPrimitive = require('@radix-ui/react-avatar');
|
|
10
10
|
var Headless4 = require('@headlessui/react');
|
|
11
|
-
var
|
|
11
|
+
var React18 = require('react');
|
|
12
12
|
var Link10 = require('next/link');
|
|
13
13
|
var culori = require('culori');
|
|
14
14
|
var reactSlot = require('@radix-ui/react-slot');
|
|
@@ -33,7 +33,7 @@ var sonner = require('sonner');
|
|
|
33
33
|
var LabelPrimitive = require('@radix-ui/react-label');
|
|
34
34
|
var RadioGroupPrimitive = require('@radix-ui/react-radio-group');
|
|
35
35
|
var lucideReact = require('lucide-react');
|
|
36
|
-
var
|
|
36
|
+
var TabsPrimitives = require('@radix-ui/react-tabs');
|
|
37
37
|
var CollapsiblePrimitive = require('@radix-ui/react-collapsible');
|
|
38
38
|
var cmdk = require('cmdk');
|
|
39
39
|
var DialogPrimitive = require('@radix-ui/react-dialog');
|
|
@@ -85,7 +85,7 @@ var clsx21__default = /*#__PURE__*/_interopDefault(clsx21);
|
|
|
85
85
|
var AspectRatioPrimitive__namespace = /*#__PURE__*/_interopNamespace(AspectRatioPrimitive);
|
|
86
86
|
var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
|
|
87
87
|
var Headless4__namespace = /*#__PURE__*/_interopNamespace(Headless4);
|
|
88
|
-
var
|
|
88
|
+
var React18__namespace = /*#__PURE__*/_interopNamespace(React18);
|
|
89
89
|
var Link10__default = /*#__PURE__*/_interopDefault(Link10);
|
|
90
90
|
var culori__namespace = /*#__PURE__*/_interopNamespace(culori);
|
|
91
91
|
var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive);
|
|
@@ -97,7 +97,7 @@ var SelectPrimitive__namespace = /*#__PURE__*/_interopNamespace(SelectPrimitive)
|
|
|
97
97
|
var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitive);
|
|
98
98
|
var LabelPrimitive__namespace = /*#__PURE__*/_interopNamespace(LabelPrimitive);
|
|
99
99
|
var RadioGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(RadioGroupPrimitive);
|
|
100
|
-
var
|
|
100
|
+
var TabsPrimitives__namespace = /*#__PURE__*/_interopNamespace(TabsPrimitives);
|
|
101
101
|
var CollapsiblePrimitive__namespace = /*#__PURE__*/_interopNamespace(CollapsiblePrimitive);
|
|
102
102
|
var DialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(DialogPrimitive);
|
|
103
103
|
var ContextMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(ContextMenuPrimitive);
|
|
@@ -122,6 +122,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
122
122
|
});
|
|
123
123
|
var Icons = {
|
|
124
124
|
account_circle: (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M234-276q51-39 114-61.5T480-360q69 0 132 22.5T726-276q35-41 54.5-93T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 59 19.5 111t54.5 93Zm246-164q-59 0-99.5-40.5T340-580q0-59 40.5-99.5T480-720q59 0 99.5 40.5T620-580q0 59-40.5 99.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q53 0 100-15.5t86-44.5q-39-29-86-44.5T480-280q-53 0-100 15.5T294-220q39 29 86 44.5T480-160Zm0-360q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17Zm0-60Zm0 360Z" }) }),
|
|
125
|
+
add_circle: (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M440-440v120q0 17 11.5 28.5T480-280q17 0 28.5-11.5T520-320v-120h120q17 0 28.5-11.5T680-480q0-17-11.5-28.5T640-520H520v-120q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640v120H320q-17 0-28.5 11.5T280-480q0 17 11.5 28.5T320-440h120Zm40 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" }) }),
|
|
125
126
|
add_location: (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M440-520v80q0 17 11.5 28.5T480-400q17 0 28.5-11.5T520-440v-80h80q17 0 28.5-11.5T640-560q0-17-11.5-28.5T600-600h-80v-80q0-17-11.5-28.5T480-720q-17 0-28.5 11.5T440-680v80h-80q-17 0-28.5 11.5T320-560q0 17 11.5 28.5T360-520h80Zm40 334q122-112 181-203.5T720-552q0-109-69.5-178.5T480-800q-101 0-170.5 69.5T240-552q0 71 59 162.5T480-186Zm0 79q-14 0-28-5t-25-15q-65-60-115-117t-83.5-110.5q-33.5-53.5-51-103T160-552q0-150 96.5-239T480-880q127 0 223.5 89T800-552q0 45-17.5 94.5t-51 103Q698-301 648-244T533-127q-11 10-25 15t-28 5Zm0-453Z" }) }),
|
|
126
127
|
add_photo: (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M480-480ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280q17 0 28.5 11.5T520-800q0 17-11.5 28.5T480-760H200v560h560v-280q0-17 11.5-28.5T800-520q17 0 28.5 11.5T840-480v280q0 33-23.5 56.5T760-120H200Zm40-160h480L570-480 450-320l-90-120-120 160Zm440-400h-40q-17 0-28.5-11.5T600-720q0-17 11.5-28.5T640-760h40v-40q0-17 11.5-28.5T720-840q17 0 28.5 11.5T760-800v40h40q17 0 28.5 11.5T840-720q0 17-11.5 28.5T800-680h-40v40q0 17-11.5 28.5T720-600q-17 0-28.5-11.5T680-640v-40Z" }) }),
|
|
127
128
|
add: (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M440-440H240q-17 0-28.5-11.5T200-480q0-17 11.5-28.5T240-520h200v-200q0-17 11.5-28.5T480-760q17 0 28.5 11.5T520-720v200h200q17 0 28.5 11.5T760-480q0 17-11.5 28.5T720-440H520v200q0 17-11.5 28.5T480-200q-17 0-28.5-11.5T440-240v-200Z" }) }),
|
|
@@ -161,6 +162,7 @@ var Icons = {
|
|
|
161
162
|
error: (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480v-160q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640v160q0 17 11.5 28.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" }) }),
|
|
162
163
|
exclamation: (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M480-400q-17 0-28.5-11.5T440-440v-280q0-17 11.5-28.5T480-760q17 0 28.5 11.5T520-720v280q0 17-11.5 28.5T480-400Zm0 200q-17 0-28.5-11.5T440-240q0-17 11.5-28.5T480-280q17 0 28.5 11.5T520-240q0 17-11.5 28.5T480-200Z" }) }),
|
|
163
164
|
eye: (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm0 192q-134 0-244.5-72T61-462q-5-9-7.5-18.5T51-500q0-10 2.5-19.5T61-538q64-118 174.5-190T480-800q134 0 244.5 72T899-538q5 9 7.5 18.5T909-500q0 10-2.5 19.5T899-462q-64 118-174.5 190T480-200Zm0-300Zm0 220q113 0 207.5-59.5T832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280Z" }) }),
|
|
165
|
+
eye_off: (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M607-627q29 29 42.5 66t9.5 76q0 15-11 25.5T622-449q-15 0-25.5-10.5T586-485q5-26-3-50t-25-41q-17-17-41-26t-51-4q-15 0-25.5-11T430-643q0-15 10.5-25.5T466-679q38-4 75 9.5t66 42.5Zm-127-93q-19 0-37 1.5t-36 5.5q-17 3-30.5-5T358-742q-5-16 3.5-31t24.5-18q23-5 46.5-7t47.5-2q137 0 250.5 72T904-534q4 8 6 16.5t2 17.5q0 9-1.5 17.5T905-466q-18 40-44.5 75T802-327q-12 11-28 9t-26-16q-10-14-8.5-30.5T753-392q24-23 44-50t35-58q-50-101-144.5-160.5T480-720Zm0 520q-134 0-245-72.5T60-463q-5-8-7.5-17.5T50-500q0-10 2-19t7-18q20-40 46.5-76.5T166-680l-83-84q-11-12-10.5-28.5T84-820q11-11 28-11t28 11l680 680q11 11 11.5 27.5T820-84q-11 11-28 11t-28-11L624-222q-35 11-71 16.5t-73 5.5ZM222-624q-29 26-53 57t-41 67q50 101 144.5 160.5T480-280q20 0 39-2.5t39-5.5l-36-38q-11 3-21 4.5t-21 1.5q-75 0-127.5-52.5T300-500q0-11 1.5-21t4.5-21l-84-82Zm319 93Zm-151 75Z" }) }),
|
|
164
166
|
face: (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M360-390q-21 0-35.5-14.5T310-440q0-21 14.5-35.5T360-490q21 0 35.5 14.5T410-440q0 21-14.5 35.5T360-390Zm240 0q-21 0-35.5-14.5T550-440q0-21 14.5-35.5T600-490q21 0 35.5 14.5T650-440q0 21-14.5 35.5T600-390ZM480-160q134 0 227-93t93-227q0-24-3-46.5T786-570q-21 5-42 7.5t-44 2.5q-91 0-172-39T390-708q-32 78-91.5 135.5T160-486v6q0 134 93 227t227 93Zm0 80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm-54-715q42 70 114 112.5T700-640q14 0 27-1.5t27-3.5q-42-70-114-112.5T480-800q-14 0-27 1.5t-27 3.5ZM177-581q51-29 89-75t57-103q-51 29-89 75t-57 103Zm249-214Zm-103 36Z" }) }),
|
|
165
167
|
favorite: (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M480-147q-14 0-28.5-5T426-168l-69-63q-106-97-191.5-192.5T80-634q0-94 63-157t157-63q53 0 100 22.5t80 61.5q33-39 80-61.5T660-854q94 0 157 63t63 157q0 115-85 211T602-230l-68 62q-11 11-25.5 16t-28.5 5Zm-38-543q-29-41-62-62.5T300-774q-60 0-100 40t-40 100q0 52 37 110.5T285.5-410q51.5 55 106 103t88.5 79q34-31 88.5-79t106-103Q726-465 763-523.5T800-634q0-60-40-100t-100-40q-47 0-80 21.5T518-690q-7 10-17 15t-21 5q-11 0-21-5t-17-15Zm38 189Z" }) }),
|
|
166
168
|
file_open: (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h287q16 0 30.5 6t25.5 17l194 194q11 11 17 25.5t6 30.5v167q0 17-11.5 28.5T760-400q-17 0-28.5-11.5T720-440v-160H560q-17 0-28.5-11.5T520-640v-160H240v640h320q17 0 28.5 11.5T600-120q0 17-11.5 28.5T560-80H240Zm520-103v49q0 17-11.5 28.5T720-94q-17 0-28.5-11.5T680-134v-146q0-17 11.5-28.5T720-320h146q17 0 28.5 11.5T906-280q0 17-11.5 28.5T866-240h-50l90 90q11 11 11 27.5T906-94q-12 12-28.5 12T849-94l-89-89Zm-520 23v-640 640Z" }) }),
|
|
@@ -225,6 +227,7 @@ var Icons = {
|
|
|
225
227
|
table_view: (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M320-80q-33 0-56.5-23.5T240-160v-480q0-33 23.5-56.5T320-720h480q33 0 56.5 23.5T880-640v480q0 33-23.5 56.5T800-80H320Zm0-80h200v-120H320v120Zm280 0h200v-120H600v120Zm-480-80q-17 0-28.5-11.5T80-280v-520q0-33 23.5-56.5T160-880h520q17 0 28.5 11.5T720-840q0 17-11.5 28.5T680-800H160v520q0 17-11.5 28.5T120-240Zm200-120h200v-120H320v120Zm280 0h200v-120H600v120ZM320-560h480v-80H320v80Z" }) }),
|
|
226
228
|
tablet: (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M480-140q17 0 28.5-11.5T520-180q0-17-11.5-28.5T480-220q-17 0-28.5 11.5T440-180q0 17 11.5 28.5T480-140ZM200-40q-33 0-56.5-23.5T120-120v-720q0-33 23.5-56.5T200-920h560q33 0 56.5 23.5T840-840v720q0 33-23.5 56.5T760-40H200Zm0-200v120h560v-120H200Zm0-80h560v-400H200v400Zm0-480h560v-40H200v40Zm0 0v-40 40Zm0 560v120-120Z" }) }),
|
|
227
229
|
toc: (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M160-280q-17 0-28.5-11.5T120-320q0-17 11.5-28.5T160-360h480q17 0 28.5 11.5T680-320q0 17-11.5 28.5T640-280H160Zm0-160q-17 0-28.5-11.5T120-480q0-17 11.5-28.5T160-520h480q17 0 28.5 11.5T680-480q0 17-11.5 28.5T640-440H160Zm0-160q-17 0-28.5-11.5T120-640q0-17 11.5-28.5T160-680h480q17 0 28.5 11.5T680-640q0 17-11.5 28.5T640-600H160Zm640 320q-17 0-28.5-11.5T760-320q0-17 11.5-28.5T800-360q17 0 28.5 11.5T840-320q0 17-11.5 28.5T800-280Zm0-160q-17 0-28.5-11.5T760-480q0-17 11.5-28.5T800-520q17 0 28.5 11.5T840-480q0 17-11.5 28.5T800-440Zm0-160q-17 0-28.5-11.5T760-640q0-17 11.5-28.5T800-680q17 0 28.5 11.5T840-640q0 17-11.5 28.5T800-600Z" }) }),
|
|
230
|
+
tune: (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M480-120q-17 0-28.5-11.5T440-160v-160q0-17 11.5-28.5T480-360q17 0 28.5 11.5T520-320v40h280q17 0 28.5 11.5T840-240q0 17-11.5 28.5T800-200H520v40q0 17-11.5 28.5T480-120Zm-320-80q-17 0-28.5-11.5T120-240q0-17 11.5-28.5T160-280h160q17 0 28.5 11.5T360-240q0 17-11.5 28.5T320-200H160Zm160-160q-17 0-28.5-11.5T280-400v-40H160q-17 0-28.5-11.5T120-480q0-17 11.5-28.5T160-520h120v-40q0-17 11.5-28.5T320-600q17 0 28.5 11.5T360-560v160q0 17-11.5 28.5T320-360Zm160-80q-17 0-28.5-11.5T440-480q0-17 11.5-28.5T480-520h320q17 0 28.5 11.5T840-480q0 17-11.5 28.5T800-440H480Zm160-160q-17 0-28.5-11.5T600-640v-160q0-17 11.5-28.5T640-840q17 0 28.5 11.5T680-800v40h120q17 0 28.5 11.5T840-720q0 17-11.5 28.5T800-680H680v40q0 17-11.5 28.5T640-600Zm-480-80q-17 0-28.5-11.5T120-720q0-17 11.5-28.5T160-760h320q17 0 28.5 11.5T520-720q0 17-11.5 28.5T480-680H160Z" }) }),
|
|
228
231
|
unfold_less: (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m480-284-96 96q-11 11-28 11t-28-11q-11-11-11-28t11-28l124-124q6-6 13-8.5t15-2.5q8 0 15 2.5t13 8.5l124 124q11 11 11 28t-11 28q-11 11-28 11t-28-11l-96-96Zm0-392 96-96q11-11 28-11t28 11q11 11 11 28t-11 28L508-592q-6 6-13 8.5t-15 2.5q-8 0-15-2.5t-13-8.5L328-716q-11-11-11-28t11-28q11-11 28-11t28 11l96 96Z" }) }),
|
|
229
232
|
unfold_more: (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "m480-236 93-93q12-12 29-12t29 12q12 12 12 29t-12 29L508-148q-6 6-13 8.5t-15 2.5q-8 0-15-2.5t-13-8.5L329-271q-12-12-12-29t12-29q12-12 29-12t29 12l93 93Zm0-484-93 93q-12 12-29 12t-29-12q-12-12-12-29t12-29l123-123q6-6 13-8.5t15-2.5q8 0 15 2.5t13 8.5l123 123q12 12 12 29t-12 29q-12 12-29 12t-29-12l-93-93Z" }) }),
|
|
230
233
|
upload: (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M240-160q-33 0-56.5-23.5T160-240v-80q0-17 11.5-28.5T200-360q17 0 28.5 11.5T240-320v80h480v-80q0-17 11.5-28.5T760-360q17 0 28.5 11.5T800-320v80q0 33-23.5 56.5T720-160H240Zm200-486-75 75q-12 12-28.5 11.5T308-572q-11-12-11.5-28t11.5-28l144-144q6-6 13-8.5t15-2.5q8 0 15 2.5t13 8.5l144 144q12 12 11.5 28T652-572q-12 12-28.5 12.5T595-571l-75-75v286q0 17-11.5 28.5T480-320q-17 0-28.5-11.5T440-360v-286Z" }) }),
|
|
@@ -431,7 +434,7 @@ function AvatarFallback({
|
|
|
431
434
|
}
|
|
432
435
|
);
|
|
433
436
|
}
|
|
434
|
-
var Link =
|
|
437
|
+
var Link = React18.forwardRef(function Link2(props, ref) {
|
|
435
438
|
return /* @__PURE__ */ jsxRuntime.jsx(Headless4__namespace.DataInteractive, { children: /* @__PURE__ */ jsxRuntime.jsx(Link10__default.default, { ...props, ref }) });
|
|
436
439
|
});
|
|
437
440
|
var styles = {
|
|
@@ -743,7 +746,7 @@ var buttonVariants = classVarianceAuthority.cva(styles.base, {
|
|
|
743
746
|
size: "default"
|
|
744
747
|
}
|
|
745
748
|
});
|
|
746
|
-
var Button2 =
|
|
749
|
+
var Button2 = React18.forwardRef(function Button3({ className, variant, color: color2, size, children, ...props }, ref) {
|
|
747
750
|
const classes = cn(buttonVariants({ variant, color: color2, size }), className);
|
|
748
751
|
return "href" in props ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
749
752
|
Link,
|
|
@@ -1216,7 +1219,7 @@ function Badge({
|
|
|
1216
1219
|
}
|
|
1217
1220
|
);
|
|
1218
1221
|
}
|
|
1219
|
-
var BadgeButton =
|
|
1222
|
+
var BadgeButton = React18.forwardRef(function BadgeButton2({
|
|
1220
1223
|
variant,
|
|
1221
1224
|
color: color2,
|
|
1222
1225
|
size,
|
|
@@ -1925,7 +1928,7 @@ function Breadcrumbs({
|
|
|
1925
1928
|
});
|
|
1926
1929
|
const shouldCollapse = breadcrumbItems.length > maxItems;
|
|
1927
1930
|
if (!shouldCollapse) {
|
|
1928
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Breadcrumb, { className: "-ml-1", children: /* @__PURE__ */ jsxRuntime.jsx(BreadcrumbList, { children: breadcrumbItems.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1931
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Breadcrumb, { className: "-ml-1", children: /* @__PURE__ */ jsxRuntime.jsx(BreadcrumbList, { children: breadcrumbItems.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(React18__namespace.Fragment, { children: [
|
|
1929
1932
|
/* @__PURE__ */ jsxRuntime.jsx(BreadcrumbItem, { children: item.isCurrent ? /* @__PURE__ */ jsxRuntime.jsx(BreadcrumbPage, { children: item.label }) : /* @__PURE__ */ jsxRuntime.jsx(BreadcrumbLink, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Link10__default.default, { href: item.path, children: item.label }) }) }),
|
|
1930
1933
|
index < breadcrumbItems.length - 1 && /* @__PURE__ */ jsxRuntime.jsx(BreadcrumbSeparator, {})
|
|
1931
1934
|
] }, item.path)) }) });
|
|
@@ -1936,7 +1939,7 @@ function Breadcrumbs({
|
|
|
1936
1939
|
const itemsAtEnd = breadcrumbItems.slice(-endItems);
|
|
1937
1940
|
const collapsedItems = breadcrumbItems.slice(startItems, breadcrumbItems.length - endItems);
|
|
1938
1941
|
return /* @__PURE__ */ jsxRuntime.jsx(Breadcrumb, { children: /* @__PURE__ */ jsxRuntime.jsxs(BreadcrumbList, { children: [
|
|
1939
|
-
itemsAtStart.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1942
|
+
itemsAtStart.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(React18__namespace.Fragment, { children: [
|
|
1940
1943
|
/* @__PURE__ */ jsxRuntime.jsx(BreadcrumbItem, { children: item.isCurrent ? /* @__PURE__ */ jsxRuntime.jsx(BreadcrumbPage, { children: item.label }) : /* @__PURE__ */ jsxRuntime.jsx(BreadcrumbLink, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Link10__default.default, { href: item.path, children: item.label }) }) }),
|
|
1941
1944
|
index < itemsAtStart.length - 1 && /* @__PURE__ */ jsxRuntime.jsx(BreadcrumbSeparator, {})
|
|
1942
1945
|
] }, item.path)),
|
|
@@ -1949,7 +1952,7 @@ function Breadcrumbs({
|
|
|
1949
1952
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuContent, { align: "start", children: collapsedItems.map((item) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Link10__default.default, { href: item.path, children: item.label }) }, item.path)) })
|
|
1950
1953
|
] }) }),
|
|
1951
1954
|
itemsAtEnd.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(BreadcrumbSeparator, {}),
|
|
1952
|
-
itemsAtEnd.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1955
|
+
itemsAtEnd.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(React18__namespace.Fragment, { children: [
|
|
1953
1956
|
/* @__PURE__ */ jsxRuntime.jsx(BreadcrumbItem, { children: item.isCurrent ? /* @__PURE__ */ jsxRuntime.jsx(BreadcrumbPage, { children: item.label }) : /* @__PURE__ */ jsxRuntime.jsx(BreadcrumbLink, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Link10__default.default, { href: item.path, children: item.label }) }) }),
|
|
1954
1957
|
index < itemsAtEnd.length - 1 && /* @__PURE__ */ jsxRuntime.jsx(BreadcrumbSeparator, {})
|
|
1955
1958
|
] }, item.path))
|
|
@@ -5571,8 +5574,8 @@ function ScrollBar({
|
|
|
5571
5574
|
);
|
|
5572
5575
|
}
|
|
5573
5576
|
function PreWithCopy(props) {
|
|
5574
|
-
const textInput =
|
|
5575
|
-
const [isJustCopied, setJustCopied] =
|
|
5577
|
+
const textInput = React18.useRef(null);
|
|
5578
|
+
const [isJustCopied, setJustCopied] = React18.useState(false);
|
|
5576
5579
|
function handleCopy() {
|
|
5577
5580
|
if (textInput.current) {
|
|
5578
5581
|
navigator.clipboard.writeText(textInput.current.textContent || "");
|
|
@@ -5892,7 +5895,7 @@ function SegmentedControl({
|
|
|
5892
5895
|
...props
|
|
5893
5896
|
}) {
|
|
5894
5897
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5895
|
-
|
|
5898
|
+
TabsPrimitives__namespace.Root,
|
|
5896
5899
|
{
|
|
5897
5900
|
"data-slot": "tabs",
|
|
5898
5901
|
className: cn("flex flex-col gap-2", className),
|
|
@@ -5905,7 +5908,7 @@ function SegmentedControlList({
|
|
|
5905
5908
|
...props
|
|
5906
5909
|
}) {
|
|
5907
5910
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5908
|
-
|
|
5911
|
+
TabsPrimitives__namespace.List,
|
|
5909
5912
|
{
|
|
5910
5913
|
"data-slot": "segmented-control-list",
|
|
5911
5914
|
className: cn(
|
|
@@ -5921,7 +5924,7 @@ function SegmentedControlTrigger({
|
|
|
5921
5924
|
...props
|
|
5922
5925
|
}) {
|
|
5923
5926
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5924
|
-
|
|
5927
|
+
TabsPrimitives__namespace.Trigger,
|
|
5925
5928
|
{
|
|
5926
5929
|
"data-slot": "segmented-control-trigger",
|
|
5927
5930
|
className: cn(
|
|
@@ -5974,8 +5977,8 @@ function ThemeSelectorContent({
|
|
|
5974
5977
|
colorThemes: colorThemes2
|
|
5975
5978
|
}) {
|
|
5976
5979
|
const [, copyToClipboardRaw] = usehooks.useCopyToClipboard();
|
|
5977
|
-
const [copied, setCopied] =
|
|
5978
|
-
const updateUrlParams =
|
|
5980
|
+
const [copied, setCopied] = React18.useState(false);
|
|
5981
|
+
const updateUrlParams = React18.useCallback(
|
|
5979
5982
|
(category, primary, accent) => {
|
|
5980
5983
|
const params = new URLSearchParams();
|
|
5981
5984
|
params.set("theme", category);
|
|
@@ -6155,7 +6158,7 @@ function ThemeSelectorContent({
|
|
|
6155
6158
|
] });
|
|
6156
6159
|
}
|
|
6157
6160
|
function ThemeSelector(props) {
|
|
6158
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6161
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React18.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(ThemeSelectorLoading, {}), children: /* @__PURE__ */ jsxRuntime.jsx(ThemeSelectorContent, { ...props }) });
|
|
6159
6162
|
}
|
|
6160
6163
|
function CodeDemoLoading() {
|
|
6161
6164
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-8 animate-pulse", children: [
|
|
@@ -6179,19 +6182,19 @@ function CodeDemoContent({ data, hide = {} }) {
|
|
|
6179
6182
|
const { resolvedTheme } = nextThemes.useTheme();
|
|
6180
6183
|
const searchParams = navigation.useSearchParams();
|
|
6181
6184
|
const { rtl = false, darkMode = false, themeSelector = false } = hide;
|
|
6182
|
-
const [tabIndex, setTabIndex] =
|
|
6183
|
-
const [variant, setVariant] =
|
|
6184
|
-
const [view, setView] =
|
|
6185
|
-
const [isRTL, setIsRTL] =
|
|
6186
|
-
const [isDarkMode, setDarkMode] =
|
|
6187
|
-
const [isExpanded, setExpanded] =
|
|
6188
|
-
const [isJustCopied, setJustCopied] =
|
|
6189
|
-
const [themeCategory, setThemeCategory] =
|
|
6190
|
-
const [primaryColor, setPrimaryColor] =
|
|
6191
|
-
const [accentColor, setAccentColor] =
|
|
6192
|
-
const [greyColor, setGreyColor] =
|
|
6193
|
-
const [isThemeInitialized, setIsThemeInitialized] =
|
|
6194
|
-
|
|
6185
|
+
const [tabIndex, setTabIndex] = React18.useState(0);
|
|
6186
|
+
const [variant, setVariant] = React18.useState(getInitialVariant(data));
|
|
6187
|
+
const [view, setView] = React18.useState("desktop");
|
|
6188
|
+
const [isRTL, setIsRTL] = React18.useState(false);
|
|
6189
|
+
const [isDarkMode, setDarkMode] = React18.useState(null);
|
|
6190
|
+
const [isExpanded, setExpanded] = React18.useState(false);
|
|
6191
|
+
const [isJustCopied, setJustCopied] = React18.useState(false);
|
|
6192
|
+
const [themeCategory, setThemeCategory] = React18.useState("brand");
|
|
6193
|
+
const [primaryColor, setPrimaryColor] = React18.useState("blue");
|
|
6194
|
+
const [accentColor, setAccentColor] = React18.useState("red");
|
|
6195
|
+
const [greyColor, setGreyColor] = React18.useState("grey");
|
|
6196
|
+
const [isThemeInitialized, setIsThemeInitialized] = React18.useState(false);
|
|
6197
|
+
React18.useEffect(() => {
|
|
6195
6198
|
const themeParam = searchParams.get("theme");
|
|
6196
6199
|
const primaryParam = searchParams.get("primary");
|
|
6197
6200
|
const accentParam = searchParams.get("accent");
|
|
@@ -6237,16 +6240,16 @@ function CodeDemoContent({ data, hide = {} }) {
|
|
|
6237
6240
|
}
|
|
6238
6241
|
setIsThemeInitialized(true);
|
|
6239
6242
|
}, [searchParams, themeCategory, primaryColor, accentColor]);
|
|
6240
|
-
|
|
6243
|
+
React18.useEffect(() => {
|
|
6241
6244
|
setDarkMode(resolvedTheme === "dark");
|
|
6242
6245
|
}, [resolvedTheme]);
|
|
6243
|
-
const iframeRef =
|
|
6246
|
+
const iframeRef = React18.useRef(null);
|
|
6244
6247
|
const getShades = (prefix, colorKey, themeCat) => colors[themeCat][colorKey].colors.reduce((acc, shade) => {
|
|
6245
6248
|
const suffix = shade.token.split("-").pop();
|
|
6246
6249
|
acc[`${prefix}${suffix}`] = shade.hex;
|
|
6247
6250
|
return acc;
|
|
6248
6251
|
}, {});
|
|
6249
|
-
const themeValues =
|
|
6252
|
+
const themeValues = React18__namespace.default.useMemo(
|
|
6250
6253
|
() => ({
|
|
6251
6254
|
...getShades("primary", primaryColor, themeCategory),
|
|
6252
6255
|
...getShades("accent", accentColor, themeCategory),
|
|
@@ -6254,7 +6257,7 @@ function CodeDemoContent({ data, hide = {} }) {
|
|
|
6254
6257
|
}),
|
|
6255
6258
|
[themeCategory, primaryColor, accentColor, greyColor]
|
|
6256
6259
|
);
|
|
6257
|
-
|
|
6260
|
+
React18__namespace.default.useEffect(() => {
|
|
6258
6261
|
const frame2 = iframeRef.current;
|
|
6259
6262
|
if (!frame2) return;
|
|
6260
6263
|
const send = () => {
|
|
@@ -6321,11 +6324,11 @@ function CodeDemoContent({ data, hide = {} }) {
|
|
|
6321
6324
|
const codeItems = getCodeItems(code);
|
|
6322
6325
|
const current = getCurrent(codeItems, tabIndex);
|
|
6323
6326
|
const shouldExpand = getShouldExpand(current.code.trim());
|
|
6324
|
-
const variantLabels =
|
|
6327
|
+
const variantLabels = React18__namespace.default.useMemo(() => {
|
|
6325
6328
|
const explicit = data.labels ?? {};
|
|
6326
6329
|
return Object.fromEntries(variants.map((v) => [v, explicit[v] ?? humaniseVariant(v)]));
|
|
6327
6330
|
}, [variants, data]);
|
|
6328
|
-
|
|
6331
|
+
React18.useEffect(() => {
|
|
6329
6332
|
if (!isThemeInitialized) return;
|
|
6330
6333
|
const neutralKey = Object.keys(colorThemes[themeCategory]).find((k) => k.toLowerCase().includes("grey")) ?? "";
|
|
6331
6334
|
if (neutralKey && neutralKey !== greyColor) {
|
|
@@ -6439,11 +6442,11 @@ function CodeDemoContent({ data, hide = {} }) {
|
|
|
6439
6442
|
] });
|
|
6440
6443
|
}
|
|
6441
6444
|
function CodeDemo(props) {
|
|
6442
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6445
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React18.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(CodeDemoLoading, {}), children: /* @__PURE__ */ jsxRuntime.jsx(CodeDemoContent, { ...props }) });
|
|
6443
6446
|
}
|
|
6444
|
-
var IFrame =
|
|
6447
|
+
var IFrame = React18__namespace.default.forwardRef(
|
|
6445
6448
|
({ iframe, isRTL, isDarkMode }, ref) => {
|
|
6446
|
-
|
|
6449
|
+
React18.useEffect(() => {
|
|
6447
6450
|
const document2 = ref?.current?.contentDocument;
|
|
6448
6451
|
const root = document2?.documentElement;
|
|
6449
6452
|
if (document2 && root) {
|
|
@@ -6488,7 +6491,7 @@ function CodePreview({
|
|
|
6488
6491
|
themeValues,
|
|
6489
6492
|
children
|
|
6490
6493
|
}) {
|
|
6491
|
-
const cssVars =
|
|
6494
|
+
const cssVars = React18__namespace.default.useMemo(() => {
|
|
6492
6495
|
const withCssVarNames = Object.entries(themeValues).map(([key, value]) => {
|
|
6493
6496
|
const kebab = key.replace(/(\D+)(\d+)/, "$1-$2");
|
|
6494
6497
|
return [`--color-${kebab}`, value];
|
|
@@ -6584,7 +6587,7 @@ function ThemeSelectorDropDown({
|
|
|
6584
6587
|
setGreyColor,
|
|
6585
6588
|
isInitialized
|
|
6586
6589
|
}) {
|
|
6587
|
-
const filteredColorThemes =
|
|
6590
|
+
const filteredColorThemes = React18.useMemo(() => {
|
|
6588
6591
|
const filtered = {};
|
|
6589
6592
|
for (const category of Object.keys(colorThemes)) {
|
|
6590
6593
|
filtered[category] = Object.fromEntries(
|
|
@@ -6595,11 +6598,11 @@ function ThemeSelectorDropDown({
|
|
|
6595
6598
|
}
|
|
6596
6599
|
return filtered;
|
|
6597
6600
|
}, []);
|
|
6598
|
-
const availableAccentColors =
|
|
6601
|
+
const availableAccentColors = React18.useMemo(() => {
|
|
6599
6602
|
const allColors = Object.keys(filteredColorThemes[themeCategory]);
|
|
6600
6603
|
return allColors.filter((color2) => color2 !== primaryColor);
|
|
6601
6604
|
}, [filteredColorThemes, themeCategory, primaryColor]);
|
|
6602
|
-
|
|
6605
|
+
React18.useEffect(() => {
|
|
6603
6606
|
if (!isInitialized) return;
|
|
6604
6607
|
const neutralKey = Object.keys(colorThemes[themeCategory]).find((k) => k.toLowerCase().includes("grey")) ?? "";
|
|
6605
6608
|
if (neutralKey && neutralKey !== greyColor) {
|
|
@@ -6748,9 +6751,9 @@ function CollapsibleContent2({
|
|
|
6748
6751
|
return /* @__PURE__ */ jsxRuntime.jsx(CollapsiblePrimitive__namespace.CollapsibleContent, { "data-slot": "collapsible-content", ...props });
|
|
6749
6752
|
}
|
|
6750
6753
|
var TruncatingTooltip = ({ children, className }) => {
|
|
6751
|
-
const textRef =
|
|
6752
|
-
const [isTruncated, setIsTruncated] =
|
|
6753
|
-
|
|
6754
|
+
const textRef = React18.useRef(null);
|
|
6755
|
+
const [isTruncated, setIsTruncated] = React18.useState(false);
|
|
6756
|
+
React18.useEffect(() => {
|
|
6754
6757
|
const el = textRef.current;
|
|
6755
6758
|
if (el) {
|
|
6756
6759
|
setIsTruncated(el.scrollWidth > el.clientWidth);
|
|
@@ -6763,7 +6766,7 @@ var TruncatingTooltip = ({ children, className }) => {
|
|
|
6763
6766
|
};
|
|
6764
6767
|
function ColorCard({ name, token, hex: hex2, rgb: rgb2, hsl, oklch: oklch2, format, viewMode }) {
|
|
6765
6768
|
const [, copyToClipboardRaw] = usehooks.useCopyToClipboard();
|
|
6766
|
-
const [copied, setCopied] =
|
|
6769
|
+
const [copied, setCopied] = React18.useState(false);
|
|
6767
6770
|
const formattedColor = getColorValue({ oklch: oklch2, hex: hex2, rgb: rgb2, hsl }, format);
|
|
6768
6771
|
const copyToClipboard = () => {
|
|
6769
6772
|
copyToClipboardRaw(formattedColor);
|
|
@@ -7235,6 +7238,80 @@ function ContextMenuShortcut({ className, ...props }) {
|
|
|
7235
7238
|
}
|
|
7236
7239
|
);
|
|
7237
7240
|
}
|
|
7241
|
+
var CheckboxSmall = React18__namespace.default.forwardRef(({ className, checked, ...props }, forwardedRef) => {
|
|
7242
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7243
|
+
CheckboxPrimitive__namespace.Root,
|
|
7244
|
+
{
|
|
7245
|
+
ref: forwardedRef,
|
|
7246
|
+
...props,
|
|
7247
|
+
checked,
|
|
7248
|
+
className: cn(
|
|
7249
|
+
// base
|
|
7250
|
+
"relative inline-flex size-4 shrink-0 appearance-none items-center justify-center rounded-sm shadow-xs ring-1 outline-hidden transition duration-100 ring-inset enabled:cursor-pointer",
|
|
7251
|
+
// text color
|
|
7252
|
+
"dark:text-grey-50 text-white",
|
|
7253
|
+
// background color
|
|
7254
|
+
"dark:bg-grey-950 bg-white",
|
|
7255
|
+
// ring color
|
|
7256
|
+
"ring-grey-300 dark:ring-grey-800",
|
|
7257
|
+
// disabled
|
|
7258
|
+
"data-disabled:bg-grey-100 data-disabled:text-grey-400 data-disabled:ring-grey-300",
|
|
7259
|
+
"dark:data-disabled:bg-grey-800 dark:data-disabled:text-grey-500 dark:data-disabled:ring-grey-700",
|
|
7260
|
+
// checked and enabled
|
|
7261
|
+
"enabled:data-[state=checked]:bg-primary-600 enabled:data-[state=checked]:ring-0 enabled:data-[state=checked]:ring-transparent",
|
|
7262
|
+
// indeterminate
|
|
7263
|
+
"enabled:data-[state=indeterminate]:bg-primary-600 enabled:data-[state=indeterminate]:ring-0 enabled:data-[state=indeterminate]:ring-transparent",
|
|
7264
|
+
// focus
|
|
7265
|
+
focusRing,
|
|
7266
|
+
className
|
|
7267
|
+
),
|
|
7268
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(CheckboxPrimitive__namespace.Indicator, { asChild: true, className: "flex size-full items-center justify-center", children: checked === "indeterminate" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7269
|
+
"svg",
|
|
7270
|
+
{
|
|
7271
|
+
"aria-hidden": "true",
|
|
7272
|
+
width: "16",
|
|
7273
|
+
height: "16",
|
|
7274
|
+
viewBox: "0 0 16 16",
|
|
7275
|
+
fill: "none",
|
|
7276
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7277
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7278
|
+
"line",
|
|
7279
|
+
{
|
|
7280
|
+
stroke: "currentColor",
|
|
7281
|
+
strokeLinecap: "round",
|
|
7282
|
+
strokeWidth: "2",
|
|
7283
|
+
x1: "4",
|
|
7284
|
+
x2: "12",
|
|
7285
|
+
y1: "8",
|
|
7286
|
+
y2: "8"
|
|
7287
|
+
}
|
|
7288
|
+
)
|
|
7289
|
+
}
|
|
7290
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
7291
|
+
"svg",
|
|
7292
|
+
{
|
|
7293
|
+
"aria-hidden": "true",
|
|
7294
|
+
width: "16",
|
|
7295
|
+
height: "16",
|
|
7296
|
+
viewBox: "0 0 16 16",
|
|
7297
|
+
fill: "none",
|
|
7298
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7299
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7300
|
+
"path",
|
|
7301
|
+
{
|
|
7302
|
+
d: "M11.2 5.59998L6.79999 9.99998L4.79999 7.99998",
|
|
7303
|
+
stroke: "currentColor",
|
|
7304
|
+
strokeLinecap: "round",
|
|
7305
|
+
strokeLinejoin: "round",
|
|
7306
|
+
strokeWidth: "2"
|
|
7307
|
+
}
|
|
7308
|
+
)
|
|
7309
|
+
}
|
|
7310
|
+
) })
|
|
7311
|
+
}
|
|
7312
|
+
);
|
|
7313
|
+
});
|
|
7314
|
+
CheckboxSmall.displayName = "CheckboxSmall";
|
|
7238
7315
|
function Drawer({ ...props }) {
|
|
7239
7316
|
return /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Root, { "data-slot": "drawer", ...props });
|
|
7240
7317
|
}
|
|
@@ -7335,7 +7412,7 @@ function DrawerDescription({
|
|
|
7335
7412
|
);
|
|
7336
7413
|
}
|
|
7337
7414
|
function DynamicFavicon({ lightModeFavicon, darkModeFavicon }) {
|
|
7338
|
-
|
|
7415
|
+
React18.useEffect(() => {
|
|
7339
7416
|
const updateFavicon = () => {
|
|
7340
7417
|
const isDarkMode = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
7341
7418
|
const favicon = document.querySelector("link[rel='icon']");
|
|
@@ -7355,10 +7432,10 @@ function DynamicFavicon({ lightModeFavicon, darkModeFavicon }) {
|
|
|
7355
7432
|
}, [lightModeFavicon, darkModeFavicon]);
|
|
7356
7433
|
return null;
|
|
7357
7434
|
}
|
|
7358
|
-
var ExpandableSearchContext =
|
|
7359
|
-
var ExpandableSearch =
|
|
7360
|
-
const [value, setValue] =
|
|
7361
|
-
const formRef =
|
|
7435
|
+
var ExpandableSearchContext = React18__namespace.createContext(null);
|
|
7436
|
+
var ExpandableSearch = React18__namespace.forwardRef(({ className, onAction, defaultValue = "", ...props }, ref) => {
|
|
7437
|
+
const [value, setValue] = React18__namespace.useState(defaultValue);
|
|
7438
|
+
const formRef = React18__namespace.useRef(null);
|
|
7362
7439
|
const handleAction = (e) => {
|
|
7363
7440
|
e.preventDefault();
|
|
7364
7441
|
if (onAction) {
|
|
@@ -7376,10 +7453,10 @@ var ExpandableSearch = React16__namespace.forwardRef(({ className, onAction, def
|
|
|
7376
7453
|
) });
|
|
7377
7454
|
});
|
|
7378
7455
|
ExpandableSearch.displayName = "ExpandableSearch";
|
|
7379
|
-
var ExpandableSearchField =
|
|
7380
|
-
const context =
|
|
7456
|
+
var ExpandableSearchField = React18__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
7457
|
+
const context = React18__namespace.useContext(ExpandableSearchContext);
|
|
7381
7458
|
if (!context) throw new Error("ExpandableSearchField must be used within ExpandableSearch");
|
|
7382
|
-
const [isFocused, setIsFocused] =
|
|
7459
|
+
const [isFocused, setIsFocused] = React18__namespace.useState(false);
|
|
7383
7460
|
const isActive = context.value.length > 0 || isFocused;
|
|
7384
7461
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex-1", children: [
|
|
7385
7462
|
/* @__PURE__ */ jsxRuntime.jsx("label", { className: "sr-only", htmlFor: "expandable-search", children: "Search" }),
|
|
@@ -7508,15 +7585,15 @@ function Footer({
|
|
|
7508
7585
|
] });
|
|
7509
7586
|
}
|
|
7510
7587
|
var Form = reactHookForm.FormProvider;
|
|
7511
|
-
var FormFieldContext =
|
|
7588
|
+
var FormFieldContext = React18__namespace.createContext({});
|
|
7512
7589
|
var FormField = ({
|
|
7513
7590
|
...props
|
|
7514
7591
|
}) => {
|
|
7515
7592
|
return /* @__PURE__ */ jsxRuntime.jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsxRuntime.jsx(reactHookForm.Controller, { ...props }) });
|
|
7516
7593
|
};
|
|
7517
7594
|
var useFormField = () => {
|
|
7518
|
-
const fieldContext =
|
|
7519
|
-
const itemContext =
|
|
7595
|
+
const fieldContext = React18__namespace.useContext(FormFieldContext);
|
|
7596
|
+
const itemContext = React18__namespace.useContext(FormItemContext);
|
|
7520
7597
|
const { getFieldState } = reactHookForm.useFormContext();
|
|
7521
7598
|
const formState = reactHookForm.useFormState({ name: fieldContext.name });
|
|
7522
7599
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
@@ -7533,9 +7610,9 @@ var useFormField = () => {
|
|
|
7533
7610
|
...fieldState
|
|
7534
7611
|
};
|
|
7535
7612
|
};
|
|
7536
|
-
var FormItemContext =
|
|
7613
|
+
var FormItemContext = React18__namespace.createContext({});
|
|
7537
7614
|
function FormItem({ className, ...props }) {
|
|
7538
|
-
const id3 =
|
|
7615
|
+
const id3 = React18__namespace.useId();
|
|
7539
7616
|
return /* @__PURE__ */ jsxRuntime.jsx(FormItemContext.Provider, { value: { id: id3 }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "form-item", className: cn("grid gap-2", className), ...props }) });
|
|
7540
7617
|
}
|
|
7541
7618
|
function FormLabel({ className, ...props }) {
|
|
@@ -7663,7 +7740,7 @@ function Toggle({
|
|
|
7663
7740
|
}
|
|
7664
7741
|
);
|
|
7665
7742
|
}
|
|
7666
|
-
var ToggleGroupContext =
|
|
7743
|
+
var ToggleGroupContext = React18__namespace.createContext({
|
|
7667
7744
|
size: "default",
|
|
7668
7745
|
variant: "ghost"
|
|
7669
7746
|
});
|
|
@@ -7696,7 +7773,7 @@ function ToggleGroupItem({
|
|
|
7696
7773
|
size,
|
|
7697
7774
|
...props
|
|
7698
7775
|
}) {
|
|
7699
|
-
const context =
|
|
7776
|
+
const context = React18__namespace.useContext(ToggleGroupContext);
|
|
7700
7777
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7701
7778
|
ToggleGroupPrimitive__namespace.Item,
|
|
7702
7779
|
{
|
|
@@ -7794,7 +7871,7 @@ function Heading({
|
|
|
7794
7871
|
|
|
7795
7872
|
// package.json
|
|
7796
7873
|
var package_default = {
|
|
7797
|
-
version: "1.
|
|
7874
|
+
version: "1.54.4"};
|
|
7798
7875
|
function Logo(props) {
|
|
7799
7876
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7800
7877
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "NSW Government" }),
|
|
@@ -7836,9 +7913,9 @@ function Logo(props) {
|
|
|
7836
7913
|
}
|
|
7837
7914
|
function ThemeSwitcher() {
|
|
7838
7915
|
const { resolvedTheme, setTheme } = nextThemes.useTheme();
|
|
7839
|
-
const [mounted, setMounted] =
|
|
7916
|
+
const [mounted, setMounted] = React18.useState(false);
|
|
7840
7917
|
const classes = "fill-grey-600 dark:fill-grey-100";
|
|
7841
|
-
|
|
7918
|
+
React18.useEffect(() => {
|
|
7842
7919
|
setMounted(true);
|
|
7843
7920
|
}, []);
|
|
7844
7921
|
if (!mounted) {
|
|
@@ -7860,9 +7937,9 @@ function ThemeSwitcher() {
|
|
|
7860
7937
|
);
|
|
7861
7938
|
}
|
|
7862
7939
|
function SiteSearch({ navigation: navigation$1 }) {
|
|
7863
|
-
const [open, setOpen] =
|
|
7940
|
+
const [open, setOpen] = React18__namespace.useState(false);
|
|
7864
7941
|
const router = navigation.useRouter();
|
|
7865
|
-
|
|
7942
|
+
React18__namespace.useEffect(() => {
|
|
7866
7943
|
const down = (e) => {
|
|
7867
7944
|
if (e.key === "k" && (e.metaKey || e.ctrlKey)) {
|
|
7868
7945
|
e.preventDefault();
|
|
@@ -7872,7 +7949,7 @@ function SiteSearch({ navigation: navigation$1 }) {
|
|
|
7872
7949
|
document.addEventListener("keydown", down);
|
|
7873
7950
|
return () => document.removeEventListener("keydown", down);
|
|
7874
7951
|
}, []);
|
|
7875
|
-
const runCommand =
|
|
7952
|
+
const runCommand = React18__namespace.useCallback((command) => {
|
|
7876
7953
|
setOpen(false);
|
|
7877
7954
|
command();
|
|
7878
7955
|
}, []);
|
|
@@ -7917,9 +7994,9 @@ function Header2({
|
|
|
7917
7994
|
version = false,
|
|
7918
7995
|
hide = {}
|
|
7919
7996
|
}) {
|
|
7920
|
-
const [isScrolled, setIsScrolled] =
|
|
7997
|
+
const [isScrolled, setIsScrolled] = React18.useState(false);
|
|
7921
7998
|
const { search = true, themeSwitcher = true, github = true, shadow = true } = hide;
|
|
7922
|
-
|
|
7999
|
+
React18.useEffect(() => {
|
|
7923
8000
|
function onScroll() {
|
|
7924
8001
|
setIsScrolled(window.scrollY > 0);
|
|
7925
8002
|
}
|
|
@@ -8118,7 +8195,7 @@ var gapStyles = {
|
|
|
8118
8195
|
md: "space-y-2",
|
|
8119
8196
|
lg: "space-y-3"
|
|
8120
8197
|
};
|
|
8121
|
-
var List2 =
|
|
8198
|
+
var List2 = React18__namespace.forwardRef(
|
|
8122
8199
|
({ asChild, variant = "disc", size = "md", gap = "md", className, ...props }, ref) => {
|
|
8123
8200
|
const Comp = asChild ? reactSlot.Slot : "ul";
|
|
8124
8201
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -8133,7 +8210,7 @@ var List2 = React16__namespace.forwardRef(
|
|
|
8133
8210
|
}
|
|
8134
8211
|
);
|
|
8135
8212
|
List2.displayName = "List";
|
|
8136
|
-
var ListItem =
|
|
8213
|
+
var ListItem = React18__namespace.forwardRef(
|
|
8137
8214
|
({ icon, className, children, ...props }, ref) => {
|
|
8138
8215
|
if (icon) {
|
|
8139
8216
|
return /* @__PURE__ */ jsxRuntime.jsxs("li", { ref, "data-slot": "list-item", className: cn2("flex gap-2", className), ...props, children: [
|
|
@@ -8358,10 +8435,10 @@ function MenubarSubContent({
|
|
|
8358
8435
|
);
|
|
8359
8436
|
}
|
|
8360
8437
|
function useSelectorHeight(selector = "header") {
|
|
8361
|
-
const [height, setHeight] =
|
|
8362
|
-
const elementRef =
|
|
8363
|
-
const resizeObserverRef =
|
|
8364
|
-
|
|
8438
|
+
const [height, setHeight] = React18.useState(0);
|
|
8439
|
+
const elementRef = React18.useRef(null);
|
|
8440
|
+
const resizeObserverRef = React18.useRef(null);
|
|
8441
|
+
React18.useEffect(() => {
|
|
8365
8442
|
const element = document.querySelector(selector);
|
|
8366
8443
|
if (!element) return;
|
|
8367
8444
|
elementRef.current = element;
|
|
@@ -8554,9 +8631,9 @@ function NavigationLink({
|
|
|
8554
8631
|
}
|
|
8555
8632
|
);
|
|
8556
8633
|
}
|
|
8557
|
-
var LayoutGroupContext =
|
|
8634
|
+
var LayoutGroupContext = React18.createContext({});
|
|
8558
8635
|
function useConstant(init) {
|
|
8559
|
-
const ref =
|
|
8636
|
+
const ref = React18.useRef(null);
|
|
8560
8637
|
if (ref.current === null) {
|
|
8561
8638
|
ref.current = init();
|
|
8562
8639
|
}
|
|
@@ -8567,8 +8644,8 @@ function useConstant(init) {
|
|
|
8567
8644
|
var isBrowser = typeof window !== "undefined";
|
|
8568
8645
|
|
|
8569
8646
|
// node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs
|
|
8570
|
-
var useIsomorphicLayoutEffect = isBrowser ?
|
|
8571
|
-
var PresenceContext = /* @__PURE__ */
|
|
8647
|
+
var useIsomorphicLayoutEffect = isBrowser ? React18.useLayoutEffect : React18.useEffect;
|
|
8648
|
+
var PresenceContext = /* @__PURE__ */ React18.createContext(null);
|
|
8572
8649
|
|
|
8573
8650
|
// node_modules/motion-utils/dist/es/array.mjs
|
|
8574
8651
|
function addUniqueItem(arr, item) {
|
|
@@ -11624,28 +11701,28 @@ var isMotionValue = (value) => Boolean(value && value.getVelocity);
|
|
|
11624
11701
|
// node_modules/motion-dom/dist/es/value/types/utils/find.mjs
|
|
11625
11702
|
var valueTypes = [...dimensionValueTypes, color, complex];
|
|
11626
11703
|
var findValueType = (v) => valueTypes.find(testValueType(v));
|
|
11627
|
-
var MotionConfigContext =
|
|
11704
|
+
var MotionConfigContext = React18.createContext({
|
|
11628
11705
|
transformPagePoint: (p) => p,
|
|
11629
11706
|
isStatic: false,
|
|
11630
11707
|
reducedMotion: "never"
|
|
11631
11708
|
});
|
|
11632
11709
|
function usePresence(subscribe = true) {
|
|
11633
|
-
const context =
|
|
11710
|
+
const context = React18.useContext(PresenceContext);
|
|
11634
11711
|
if (context === null)
|
|
11635
11712
|
return [true, null];
|
|
11636
11713
|
const { isPresent, onExitComplete, register } = context;
|
|
11637
|
-
const id3 =
|
|
11638
|
-
|
|
11714
|
+
const id3 = React18.useId();
|
|
11715
|
+
React18.useEffect(() => {
|
|
11639
11716
|
if (subscribe) {
|
|
11640
11717
|
return register(id3);
|
|
11641
11718
|
}
|
|
11642
11719
|
}, [subscribe]);
|
|
11643
|
-
const safeToRemove =
|
|
11720
|
+
const safeToRemove = React18.useCallback(() => subscribe && onExitComplete && onExitComplete(id3), [id3, onExitComplete, subscribe]);
|
|
11644
11721
|
return !isPresent && onExitComplete ? [false, safeToRemove] : [true];
|
|
11645
11722
|
}
|
|
11646
|
-
var DeprecatedLayoutGroupContext =
|
|
11723
|
+
var DeprecatedLayoutGroupContext = React18.createContext(null);
|
|
11647
11724
|
function useIsMounted() {
|
|
11648
|
-
const isMounted =
|
|
11725
|
+
const isMounted = React18.useRef(false);
|
|
11649
11726
|
useIsomorphicLayoutEffect(() => {
|
|
11650
11727
|
isMounted.current = true;
|
|
11651
11728
|
return () => {
|
|
@@ -11658,11 +11735,11 @@ function useIsMounted() {
|
|
|
11658
11735
|
// node_modules/framer-motion/dist/es/utils/use-force-update.mjs
|
|
11659
11736
|
function useForceUpdate() {
|
|
11660
11737
|
const isMounted = useIsMounted();
|
|
11661
|
-
const [forcedRenderCount, setForcedRenderCount] =
|
|
11662
|
-
const forceRender =
|
|
11738
|
+
const [forcedRenderCount, setForcedRenderCount] = React18.useState(0);
|
|
11739
|
+
const forceRender = React18.useCallback(() => {
|
|
11663
11740
|
isMounted.current && setForcedRenderCount(forcedRenderCount + 1);
|
|
11664
11741
|
}, [forcedRenderCount]);
|
|
11665
|
-
const deferredForceRender =
|
|
11742
|
+
const deferredForceRender = React18.useCallback(() => frame.postRender(forceRender), [forceRender]);
|
|
11666
11743
|
return [deferredForceRender, forcedRenderCount];
|
|
11667
11744
|
}
|
|
11668
11745
|
|
|
@@ -11694,10 +11771,10 @@ function nodeGroup() {
|
|
|
11694
11771
|
var shouldInheritGroup = (inherit) => inherit === true;
|
|
11695
11772
|
var shouldInheritId = (inherit) => shouldInheritGroup(inherit === true) || inherit === "id";
|
|
11696
11773
|
var LayoutGroup = ({ children, id: id3, inherit = true }) => {
|
|
11697
|
-
const layoutGroupContext =
|
|
11698
|
-
const deprecatedLayoutGroupContext =
|
|
11774
|
+
const layoutGroupContext = React18.useContext(LayoutGroupContext);
|
|
11775
|
+
const deprecatedLayoutGroupContext = React18.useContext(DeprecatedLayoutGroupContext);
|
|
11699
11776
|
const [forceRender, key] = useForceUpdate();
|
|
11700
|
-
const context =
|
|
11777
|
+
const context = React18.useRef(null);
|
|
11701
11778
|
const upstreamId = layoutGroupContext.id || deprecatedLayoutGroupContext;
|
|
11702
11779
|
if (context.current === null) {
|
|
11703
11780
|
if (shouldInheritId(inherit) && upstreamId) {
|
|
@@ -11708,10 +11785,10 @@ var LayoutGroup = ({ children, id: id3, inherit = true }) => {
|
|
|
11708
11785
|
group: shouldInheritGroup(inherit) ? layoutGroupContext.group || nodeGroup() : nodeGroup()
|
|
11709
11786
|
};
|
|
11710
11787
|
}
|
|
11711
|
-
const memoizedContext =
|
|
11788
|
+
const memoizedContext = React18.useMemo(() => ({ ...context.current, forceRender }), [key]);
|
|
11712
11789
|
return jsxRuntime.jsx(LayoutGroupContext.Provider, { value: memoizedContext, children });
|
|
11713
11790
|
};
|
|
11714
|
-
var LazyContext =
|
|
11791
|
+
var LazyContext = React18.createContext({ strict: false });
|
|
11715
11792
|
|
|
11716
11793
|
// node_modules/framer-motion/dist/es/motion/features/definitions.mjs
|
|
11717
11794
|
var featureProps = {
|
|
@@ -11840,7 +11917,7 @@ function createDOMMotionComponentProxy(componentFactory) {
|
|
|
11840
11917
|
}
|
|
11841
11918
|
});
|
|
11842
11919
|
}
|
|
11843
|
-
var MotionContext = /* @__PURE__ */
|
|
11920
|
+
var MotionContext = /* @__PURE__ */ React18.createContext({});
|
|
11844
11921
|
|
|
11845
11922
|
// node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.mjs
|
|
11846
11923
|
function isAnimationControls(v) {
|
|
@@ -11886,8 +11963,8 @@ function getCurrentTreeVariants(props, context) {
|
|
|
11886
11963
|
|
|
11887
11964
|
// node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
|
|
11888
11965
|
function useCreateMotionContext(props) {
|
|
11889
|
-
const { initial, animate } = getCurrentTreeVariants(props,
|
|
11890
|
-
return
|
|
11966
|
+
const { initial, animate } = getCurrentTreeVariants(props, React18.useContext(MotionContext));
|
|
11967
|
+
return React18.useMemo(() => ({ initial, animate }), [variantLabelsAsDependency(initial), variantLabelsAsDependency(animate)]);
|
|
11891
11968
|
}
|
|
11892
11969
|
function variantLabelsAsDependency(prop) {
|
|
11893
11970
|
return Array.isArray(prop) ? prop.join(" ") : prop;
|
|
@@ -11903,7 +11980,7 @@ function isRefObject(ref) {
|
|
|
11903
11980
|
|
|
11904
11981
|
// node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
|
|
11905
11982
|
function useMotionRef(visualState, visualElement, externalRef) {
|
|
11906
|
-
return
|
|
11983
|
+
return React18.useCallback(
|
|
11907
11984
|
(instance) => {
|
|
11908
11985
|
if (instance) {
|
|
11909
11986
|
visualState.onMount && visualState.onMount(instance);
|
|
@@ -11938,15 +12015,15 @@ var camelToDash = (str) => str.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(
|
|
|
11938
12015
|
// node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.mjs
|
|
11939
12016
|
var optimizedAppearDataId = "framerAppearId";
|
|
11940
12017
|
var optimizedAppearDataAttribute = "data-" + camelToDash(optimizedAppearDataId);
|
|
11941
|
-
var SwitchLayoutGroupContext =
|
|
12018
|
+
var SwitchLayoutGroupContext = React18.createContext({});
|
|
11942
12019
|
|
|
11943
12020
|
// node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
|
|
11944
12021
|
function useVisualElement(Component2, visualState, props, createVisualElement, ProjectionNodeConstructor) {
|
|
11945
|
-
const { visualElement: parent } =
|
|
11946
|
-
const lazyContext =
|
|
11947
|
-
const presenceContext =
|
|
11948
|
-
const reducedMotionConfig =
|
|
11949
|
-
const visualElementRef =
|
|
12022
|
+
const { visualElement: parent } = React18.useContext(MotionContext);
|
|
12023
|
+
const lazyContext = React18.useContext(LazyContext);
|
|
12024
|
+
const presenceContext = React18.useContext(PresenceContext);
|
|
12025
|
+
const reducedMotionConfig = React18.useContext(MotionConfigContext).reducedMotion;
|
|
12026
|
+
const visualElementRef = React18.useRef(null);
|
|
11950
12027
|
createVisualElement = createVisualElement || lazyContext.renderer;
|
|
11951
12028
|
if (!visualElementRef.current && createVisualElement) {
|
|
11952
12029
|
visualElementRef.current = createVisualElement(Component2, {
|
|
@@ -11959,18 +12036,18 @@ function useVisualElement(Component2, visualState, props, createVisualElement, P
|
|
|
11959
12036
|
});
|
|
11960
12037
|
}
|
|
11961
12038
|
const visualElement = visualElementRef.current;
|
|
11962
|
-
const initialLayoutGroupConfig =
|
|
12039
|
+
const initialLayoutGroupConfig = React18.useContext(SwitchLayoutGroupContext);
|
|
11963
12040
|
if (visualElement && !visualElement.projection && ProjectionNodeConstructor && (visualElement.type === "html" || visualElement.type === "svg")) {
|
|
11964
12041
|
createProjectionNode(visualElementRef.current, props, ProjectionNodeConstructor, initialLayoutGroupConfig);
|
|
11965
12042
|
}
|
|
11966
|
-
const isMounted =
|
|
11967
|
-
|
|
12043
|
+
const isMounted = React18.useRef(false);
|
|
12044
|
+
React18.useInsertionEffect(() => {
|
|
11968
12045
|
if (visualElement && isMounted.current) {
|
|
11969
12046
|
visualElement.update(props, presenceContext);
|
|
11970
12047
|
}
|
|
11971
12048
|
});
|
|
11972
12049
|
const optimisedAppearId = props[optimizedAppearDataAttribute];
|
|
11973
|
-
const wantsHandoff =
|
|
12050
|
+
const wantsHandoff = React18.useRef(Boolean(optimisedAppearId) && !window.MotionHandoffIsComplete?.(optimisedAppearId) && window.MotionHasOptimisedAnimation?.(optimisedAppearId));
|
|
11974
12051
|
useIsomorphicLayoutEffect(() => {
|
|
11975
12052
|
if (!visualElement)
|
|
11976
12053
|
return;
|
|
@@ -11982,7 +12059,7 @@ function useVisualElement(Component2, visualState, props, createVisualElement, P
|
|
|
11982
12059
|
visualElement.animationState.animateChanges();
|
|
11983
12060
|
}
|
|
11984
12061
|
});
|
|
11985
|
-
|
|
12062
|
+
React18.useEffect(() => {
|
|
11986
12063
|
if (!visualElement)
|
|
11987
12064
|
return;
|
|
11988
12065
|
if (!wantsHandoff.current && visualElement.animationState) {
|
|
@@ -12031,7 +12108,7 @@ function createRendererMotionComponent({ preloadedFeatures, createVisualElement,
|
|
|
12031
12108
|
function MotionComponent(props, externalRef) {
|
|
12032
12109
|
let MeasureLayout2;
|
|
12033
12110
|
const configAndProps = {
|
|
12034
|
-
...
|
|
12111
|
+
...React18.useContext(MotionConfigContext),
|
|
12035
12112
|
...props,
|
|
12036
12113
|
layoutId: useLayoutId(props)
|
|
12037
12114
|
};
|
|
@@ -12047,16 +12124,16 @@ function createRendererMotionComponent({ preloadedFeatures, createVisualElement,
|
|
|
12047
12124
|
return jsxRuntime.jsxs(MotionContext.Provider, { value: context, children: [MeasureLayout2 && context.visualElement ? jsxRuntime.jsx(MeasureLayout2, { visualElement: context.visualElement, ...configAndProps }) : null, useRender(Component2, props, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic, context.visualElement)] });
|
|
12048
12125
|
}
|
|
12049
12126
|
MotionComponent.displayName = `motion.${typeof Component2 === "string" ? Component2 : `create(${Component2.displayName ?? Component2.name ?? ""})`}`;
|
|
12050
|
-
const ForwardRefMotionComponent =
|
|
12127
|
+
const ForwardRefMotionComponent = React18.forwardRef(MotionComponent);
|
|
12051
12128
|
ForwardRefMotionComponent[motionComponentSymbol] = Component2;
|
|
12052
12129
|
return ForwardRefMotionComponent;
|
|
12053
12130
|
}
|
|
12054
12131
|
function useLayoutId({ layoutId }) {
|
|
12055
|
-
const layoutGroupId =
|
|
12132
|
+
const layoutGroupId = React18.useContext(LayoutGroupContext).id;
|
|
12056
12133
|
return layoutGroupId && layoutId !== void 0 ? layoutGroupId + "-" + layoutId : layoutId;
|
|
12057
12134
|
}
|
|
12058
12135
|
function useStrictMode(configAndProps, preloadedFeatures) {
|
|
12059
|
-
const isStrict =
|
|
12136
|
+
const isStrict = React18.useContext(LazyContext).strict;
|
|
12060
12137
|
if (process.env.NODE_ENV !== "production" && preloadedFeatures && isStrict) {
|
|
12061
12138
|
const strictMessage = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
12062
12139
|
configAndProps.ignoreStrict ? warning(false, strictMessage) : invariant(false, strictMessage);
|
|
@@ -12185,7 +12262,7 @@ function copyRawValuesOnly(target, source, props) {
|
|
|
12185
12262
|
}
|
|
12186
12263
|
}
|
|
12187
12264
|
function useInitialMotionValues({ transformTemplate }, visualState) {
|
|
12188
|
-
return
|
|
12265
|
+
return React18.useMemo(() => {
|
|
12189
12266
|
const state = createHtmlRenderState();
|
|
12190
12267
|
buildHTMLStyles(state, visualState, transformTemplate);
|
|
12191
12268
|
return Object.assign({}, state.vars, state.style);
|
|
@@ -12286,7 +12363,7 @@ var isSVGTag = (tag) => typeof tag === "string" && tag.toLowerCase() === "svg";
|
|
|
12286
12363
|
|
|
12287
12364
|
// node_modules/framer-motion/dist/es/render/svg/use-props.mjs
|
|
12288
12365
|
function useSVGProps(props, visualState, _isStatic, Component2) {
|
|
12289
|
-
const visualProps =
|
|
12366
|
+
const visualProps = React18.useMemo(() => {
|
|
12290
12367
|
const state = createSvgRenderState();
|
|
12291
12368
|
buildSVGAttrs(state, visualState, isSVGTag(Component2), props.transformTemplate, props.style);
|
|
12292
12369
|
return {
|
|
@@ -12364,10 +12441,10 @@ function createUseRender(forwardMotionProps = false) {
|
|
|
12364
12441
|
const useVisualProps = isSVGComponent(Component2) ? useSVGProps : useHTMLProps;
|
|
12365
12442
|
const visualProps = useVisualProps(props, latestValues, isStatic, Component2);
|
|
12366
12443
|
const filteredProps = filterProps(props, typeof Component2 === "string", forwardMotionProps);
|
|
12367
|
-
const elementProps = Component2 !==
|
|
12444
|
+
const elementProps = Component2 !== React18.Fragment ? { ...filteredProps, ...visualProps, ref } : {};
|
|
12368
12445
|
const { children } = props;
|
|
12369
|
-
const renderedChildren =
|
|
12370
|
-
return
|
|
12446
|
+
const renderedChildren = React18.useMemo(() => isMotionValue(children) ? children.get() : children, [children]);
|
|
12447
|
+
return React18.createElement(Component2, {
|
|
12371
12448
|
...elementProps,
|
|
12372
12449
|
children: renderedChildren
|
|
12373
12450
|
});
|
|
@@ -12413,8 +12490,8 @@ function makeState({ scrapeMotionValuesFromProps: scrapeMotionValuesFromProps3,
|
|
|
12413
12490
|
return state;
|
|
12414
12491
|
}
|
|
12415
12492
|
var makeUseVisualState = (config) => (props, isStatic) => {
|
|
12416
|
-
const context =
|
|
12417
|
-
const presenceContext =
|
|
12493
|
+
const context = React18.useContext(MotionContext);
|
|
12494
|
+
const presenceContext = React18.useContext(PresenceContext);
|
|
12418
12495
|
const make = () => makeState(config, props, context, presenceContext);
|
|
12419
12496
|
return isStatic ? make() : useConstant(make);
|
|
12420
12497
|
};
|
|
@@ -14022,7 +14099,7 @@ var correctBoxShadow = {
|
|
|
14022
14099
|
|
|
14023
14100
|
// node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs
|
|
14024
14101
|
var hasTakenAnySnapshot = false;
|
|
14025
|
-
var MeasureLayoutWithContext = class extends
|
|
14102
|
+
var MeasureLayoutWithContext = class extends React18.Component {
|
|
14026
14103
|
/**
|
|
14027
14104
|
* This only mounts projection nodes for components that
|
|
14028
14105
|
* need measuring, we might want to do it for all components
|
|
@@ -14109,8 +14186,8 @@ var MeasureLayoutWithContext = class extends React16.Component {
|
|
|
14109
14186
|
};
|
|
14110
14187
|
function MeasureLayout(props) {
|
|
14111
14188
|
const [isPresent, safeToRemove] = usePresence();
|
|
14112
|
-
const layoutGroup =
|
|
14113
|
-
return jsxRuntime.jsx(MeasureLayoutWithContext, { ...props, layoutGroup, switchLayoutGroup:
|
|
14189
|
+
const layoutGroup = React18.useContext(LayoutGroupContext);
|
|
14190
|
+
return jsxRuntime.jsx(MeasureLayoutWithContext, { ...props, layoutGroup, switchLayoutGroup: React18.useContext(SwitchLayoutGroupContext), isPresent, safeToRemove });
|
|
14114
14191
|
}
|
|
14115
14192
|
var defaultScaleCorrectors = {
|
|
14116
14193
|
borderRadius: {
|
|
@@ -16260,7 +16337,7 @@ var SVGVisualElement = class extends DOMVisualElement {
|
|
|
16260
16337
|
// node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
|
|
16261
16338
|
var createDomVisualElement = (Component2, options) => {
|
|
16262
16339
|
return isSVGComponent(Component2) ? new SVGVisualElement(options) : new HTMLVisualElement(options, {
|
|
16263
|
-
allowProjection: Component2 !==
|
|
16340
|
+
allowProjection: Component2 !== React18.Fragment
|
|
16264
16341
|
});
|
|
16265
16342
|
};
|
|
16266
16343
|
|
|
@@ -16288,13 +16365,13 @@ function NavbarDivider({ className, ...props }) {
|
|
|
16288
16365
|
);
|
|
16289
16366
|
}
|
|
16290
16367
|
function NavbarSection({ className, ...props }) {
|
|
16291
|
-
const id3 =
|
|
16368
|
+
const id3 = React18.useId();
|
|
16292
16369
|
return /* @__PURE__ */ jsxRuntime.jsx(LayoutGroup, { id: id3, children: /* @__PURE__ */ jsxRuntime.jsx("div", { ...props, className: clsx21__default.default(className, "flex items-center gap-3") }) });
|
|
16293
16370
|
}
|
|
16294
16371
|
function NavbarSpacer({ className, ...props }) {
|
|
16295
16372
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "aria-hidden": "true", ...props, className: clsx21__default.default(className, "-ml-4 flex-1") });
|
|
16296
16373
|
}
|
|
16297
|
-
var NavbarItem =
|
|
16374
|
+
var NavbarItem = React18.forwardRef(function NavbarItem2({
|
|
16298
16375
|
current,
|
|
16299
16376
|
className,
|
|
16300
16377
|
children,
|
|
@@ -16907,7 +16984,7 @@ function SidebarLink({ link, pathname, onLinkClick, depth }) {
|
|
|
16907
16984
|
)) }) })
|
|
16908
16985
|
] }) : /* @__PURE__ */ jsxRuntime.jsx(Link10__default.default, { href: link.href, onClick: onLinkClick, className: baseLinkClasses, children: link.title }) });
|
|
16909
16986
|
}
|
|
16910
|
-
var StepIndicator =
|
|
16987
|
+
var StepIndicator = React18__namespace.forwardRef(
|
|
16911
16988
|
({ className, array, onLinkClick, ...props }, ref) => {
|
|
16912
16989
|
const pathname = navigation.usePathname();
|
|
16913
16990
|
return /* @__PURE__ */ jsxRuntime.jsx("ul", { role: "list", ref, className: cn("w-full", className), ...props, children: array.map((step, stepIdx) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -17149,7 +17226,7 @@ function StepNavigation({
|
|
|
17149
17226
|
getStatus = defaultGetStatus
|
|
17150
17227
|
}) {
|
|
17151
17228
|
const { formStatus } = useFormStore();
|
|
17152
|
-
const navigationWithStatus =
|
|
17229
|
+
const navigationWithStatus = React18.useMemo(
|
|
17153
17230
|
() => navigation.map((section) => ({
|
|
17154
17231
|
...section,
|
|
17155
17232
|
links: (section.links ?? []).map((link) => ({
|
|
@@ -17182,7 +17259,7 @@ function Slider({
|
|
|
17182
17259
|
max = 100,
|
|
17183
17260
|
...props
|
|
17184
17261
|
}) {
|
|
17185
|
-
const _values =
|
|
17262
|
+
const _values = React18__namespace.useMemo(
|
|
17186
17263
|
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
17187
17264
|
[value, defaultValue, min, max]
|
|
17188
17265
|
);
|
|
@@ -17508,8 +17585,8 @@ function useActiveSectionObserver(tableOfContents) {
|
|
|
17508
17585
|
const headerHeight = useSelectorHeight("#nsw-header");
|
|
17509
17586
|
const mastheadHeight = useSelectorHeight("#nsw-masthead");
|
|
17510
17587
|
const navigationHeight = useSelectorHeight("#nsw-main-navigation");
|
|
17511
|
-
const [currentSection, setCurrentSection] =
|
|
17512
|
-
|
|
17588
|
+
const [currentSection, setCurrentSection] = React18.useState(null);
|
|
17589
|
+
React18.useEffect(() => {
|
|
17513
17590
|
if (tableOfContents.length === 0) return;
|
|
17514
17591
|
if (!headerHeight) return;
|
|
17515
17592
|
const totalHeight = headerHeight + mastheadHeight + navigationHeight;
|
|
@@ -17550,7 +17627,7 @@ function useActiveSectionObserver(tableOfContents) {
|
|
|
17550
17627
|
cancelAnimationFrame(raf);
|
|
17551
17628
|
};
|
|
17552
17629
|
}, [tableOfContents, headerHeight, mastheadHeight, navigationHeight]);
|
|
17553
|
-
|
|
17630
|
+
React18.useEffect(() => {
|
|
17554
17631
|
const handleResize = () => {
|
|
17555
17632
|
setCurrentSection(null);
|
|
17556
17633
|
};
|
|
@@ -17613,70 +17690,96 @@ function TableOfContents({ tableOfContents }) {
|
|
|
17613
17690
|
)
|
|
17614
17691
|
] }) });
|
|
17615
17692
|
}
|
|
17616
|
-
|
|
17617
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17618
|
-
|
|
17619
|
-
|
|
17620
|
-
|
|
17621
|
-
|
|
17622
|
-
|
|
17623
|
-
|
|
17624
|
-
|
|
17625
|
-
|
|
17626
|
-
|
|
17627
|
-
|
|
17628
|
-
|
|
17629
|
-
|
|
17630
|
-
|
|
17631
|
-
|
|
17632
|
-
|
|
17633
|
-
|
|
17634
|
-
|
|
17635
|
-
|
|
17636
|
-
|
|
17637
|
-
|
|
17638
|
-
className
|
|
17639
|
-
),
|
|
17640
|
-
...props
|
|
17641
|
-
}
|
|
17642
|
-
) });
|
|
17643
|
-
}
|
|
17644
|
-
function TabsTrigger({ className, ...props }) {
|
|
17645
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17646
|
-
TabsPrimitive2__namespace.Trigger,
|
|
17693
|
+
var Tabs2 = (props) => {
|
|
17694
|
+
return /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitives__namespace.Root, { "tremor-id": "tremor-raw", ...props });
|
|
17695
|
+
};
|
|
17696
|
+
Tabs2.displayName = "Tabs";
|
|
17697
|
+
var TabsListVariantContext = React18__namespace.default.createContext("line");
|
|
17698
|
+
var variantStyles2 = {
|
|
17699
|
+
line: cn(
|
|
17700
|
+
// base
|
|
17701
|
+
"flex items-center justify-start border-b",
|
|
17702
|
+
// border color
|
|
17703
|
+
"border-grey-200 dark:border-grey-800"
|
|
17704
|
+
),
|
|
17705
|
+
solid: cn(
|
|
17706
|
+
// base
|
|
17707
|
+
"inline-flex items-center justify-center rounded-md p-1",
|
|
17708
|
+
// background color
|
|
17709
|
+
"bg-grey-100 dark:bg-grey-900"
|
|
17710
|
+
)
|
|
17711
|
+
};
|
|
17712
|
+
var TabsList = React18__namespace.default.forwardRef(
|
|
17713
|
+
({ className, variant = "line", children, ...props }, forwardedRef) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
17714
|
+
TabsPrimitives__namespace.List,
|
|
17647
17715
|
{
|
|
17648
|
-
|
|
17649
|
-
className: cn(
|
|
17650
|
-
|
|
17651
|
-
|
|
17652
|
-
"text-grey-800 cursor-pointer border-b-1 border-transparent p-4 text-base font-medium whitespace-nowrap",
|
|
17653
|
-
// Focus
|
|
17654
|
-
"focus:z-10",
|
|
17655
|
-
// Active
|
|
17656
|
-
"data-[state=active]:border-accent-600",
|
|
17657
|
-
// Hover
|
|
17658
|
-
"hover:bg-grey-100 hover:text-grey-850",
|
|
17659
|
-
// Dark mode
|
|
17660
|
-
"dark:text-white",
|
|
17661
|
-
// Dark mode hover
|
|
17662
|
-
"dark:hover:bg-white/10 dark:hover:text-white"
|
|
17663
|
-
],
|
|
17664
|
-
className
|
|
17665
|
-
),
|
|
17666
|
-
...props
|
|
17716
|
+
ref: forwardedRef,
|
|
17717
|
+
className: cn(variantStyles2[variant], className),
|
|
17718
|
+
...props,
|
|
17719
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(TabsListVariantContext.Provider, { value: variant, children })
|
|
17667
17720
|
}
|
|
17668
|
-
)
|
|
17721
|
+
)
|
|
17722
|
+
);
|
|
17723
|
+
TabsList.displayName = "TabsList";
|
|
17724
|
+
function getVariantStyles(tabVariant) {
|
|
17725
|
+
switch (tabVariant) {
|
|
17726
|
+
case "line":
|
|
17727
|
+
return cn(
|
|
17728
|
+
// base
|
|
17729
|
+
"-mb-px items-center justify-center border-b-2 border-transparent px-3 py-2 text-sm font-medium whitespace-nowrap transition-all cursor-pointer",
|
|
17730
|
+
// text color
|
|
17731
|
+
"text-grey-500 dark:text-grey-500",
|
|
17732
|
+
// hover
|
|
17733
|
+
"hover:text-grey-700 dark:hover:text-grey-400 hover:bg-primary-800/10",
|
|
17734
|
+
// border hover
|
|
17735
|
+
"hover:border-grey-300 dark:hover:border-grey-400",
|
|
17736
|
+
// selected
|
|
17737
|
+
"data-[state=active]:border-accent-600 data-[state=active]:text-grey-800",
|
|
17738
|
+
"dark:data-[state=active]:border-accent-500 dark:data-[state=active]:text-grey-200",
|
|
17739
|
+
// disabled
|
|
17740
|
+
"data-disabled:pointer-events-none",
|
|
17741
|
+
"data-disabled:text-grey-300 dark:data-disabled:text-grey-700"
|
|
17742
|
+
);
|
|
17743
|
+
case "solid":
|
|
17744
|
+
return cn(
|
|
17745
|
+
// base
|
|
17746
|
+
"inline-flex items-center justify-center rounded-sm px-3 py-1 text-sm font-medium whitespace-nowrap ring-1 transition-all ring-inset cursor-pointer",
|
|
17747
|
+
// text color
|
|
17748
|
+
"text-grey-500 dark:text-grey-400",
|
|
17749
|
+
// hover
|
|
17750
|
+
"hover:text-grey-700 dark:hover:text-grey-200",
|
|
17751
|
+
// ring
|
|
17752
|
+
"ring-transparent",
|
|
17753
|
+
// selected
|
|
17754
|
+
"data-[state=active]:bg-white data-[state=active]:text-grey-900 data-[state=active]:shadow-sm",
|
|
17755
|
+
"dark:data-[state=active]:bg-grey-950 dark:data-[state=active]:text-grey-50",
|
|
17756
|
+
// disabled
|
|
17757
|
+
"data-disabled:pointer-events-none data-disabled:text-grey-400 data-disabled:opacity-50 dark:data-disabled:text-grey-600"
|
|
17758
|
+
);
|
|
17759
|
+
}
|
|
17669
17760
|
}
|
|
17670
|
-
|
|
17761
|
+
var TabsTrigger = React18__namespace.default.forwardRef(({ className, children, ...props }, forwardedRef) => {
|
|
17762
|
+
const variant = React18__namespace.default.useContext(TabsListVariantContext);
|
|
17671
17763
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17672
|
-
|
|
17764
|
+
TabsPrimitives__namespace.Trigger,
|
|
17673
17765
|
{
|
|
17674
|
-
|
|
17675
|
-
className: cn(
|
|
17676
|
-
...props
|
|
17766
|
+
ref: forwardedRef,
|
|
17767
|
+
className: cn(getVariantStyles(variant), focusRing, className),
|
|
17768
|
+
...props,
|
|
17769
|
+
children
|
|
17677
17770
|
}
|
|
17678
17771
|
);
|
|
17679
|
-
}
|
|
17772
|
+
});
|
|
17773
|
+
TabsTrigger.displayName = "TabsTrigger";
|
|
17774
|
+
var TabsContent = React18__namespace.default.forwardRef(({ className, ...props }, forwardedRef) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
17775
|
+
TabsPrimitives__namespace.Content,
|
|
17776
|
+
{
|
|
17777
|
+
ref: forwardedRef,
|
|
17778
|
+
className: cn("outline-hidden", focusRing, className),
|
|
17779
|
+
...props
|
|
17780
|
+
}
|
|
17781
|
+
));
|
|
17782
|
+
TabsContent.displayName = "TabsContent";
|
|
17680
17783
|
function Text({ className, trim = "normal", size = 2, label = false, ...props }) {
|
|
17681
17784
|
const textSizeClasses = {
|
|
17682
17785
|
1: "text-[length:var(--font-size-1)] leading-[var(--line-height-28)] tracking-[var(--letter-spacing-0)]",
|
|
@@ -17805,15 +17908,15 @@ function ThemeColorPaletteContent() {
|
|
|
17805
17908
|
brand,
|
|
17806
17909
|
aboriginal
|
|
17807
17910
|
};
|
|
17808
|
-
const [format, setFormat] =
|
|
17809
|
-
const [viewMode, setViewMode] =
|
|
17810
|
-
const [themeCategory, setThemeCategory] =
|
|
17811
|
-
const [primaryColor, setPrimaryColor] =
|
|
17812
|
-
const [accentColor, setAccentColor] =
|
|
17813
|
-
const [greyColor, setGreyColor] =
|
|
17814
|
-
const [sheetOpen, setSheetOpen] =
|
|
17815
|
-
const [isInitialized, setIsInitialized] =
|
|
17816
|
-
|
|
17911
|
+
const [format, setFormat] = React18.useState("hex");
|
|
17912
|
+
const [viewMode, setViewMode] = React18.useState("grid");
|
|
17913
|
+
const [themeCategory, setThemeCategory] = React18.useState("brand");
|
|
17914
|
+
const [primaryColor, setPrimaryColor] = React18.useState("blue");
|
|
17915
|
+
const [accentColor, setAccentColor] = React18.useState("red");
|
|
17916
|
+
const [greyColor, setGreyColor] = React18.useState("grey");
|
|
17917
|
+
const [sheetOpen, setSheetOpen] = React18.useState(false);
|
|
17918
|
+
const [isInitialized, setIsInitialized] = React18.useState(false);
|
|
17919
|
+
React18.useEffect(() => {
|
|
17817
17920
|
const themeParam = searchParams.get("theme");
|
|
17818
17921
|
const primaryParam = searchParams.get("primary");
|
|
17819
17922
|
const accentParam = searchParams.get("accent");
|
|
@@ -17859,7 +17962,7 @@ function ThemeColorPaletteContent() {
|
|
|
17859
17962
|
}
|
|
17860
17963
|
setIsInitialized(true);
|
|
17861
17964
|
}, [searchParams, themeCategory, primaryColor, accentColor]);
|
|
17862
|
-
const filteredColorThemes =
|
|
17965
|
+
const filteredColorThemes = React18.useMemo(() => {
|
|
17863
17966
|
const filtered = {};
|
|
17864
17967
|
for (const category of Object.keys(colorThemes)) {
|
|
17865
17968
|
filtered[category] = Object.fromEntries(
|
|
@@ -17870,11 +17973,11 @@ function ThemeColorPaletteContent() {
|
|
|
17870
17973
|
}
|
|
17871
17974
|
return filtered;
|
|
17872
17975
|
}, []);
|
|
17873
|
-
const availableAccentColors =
|
|
17976
|
+
const availableAccentColors = React18.useMemo(() => {
|
|
17874
17977
|
const allColors = Object.keys(filteredColorThemes[themeCategory]);
|
|
17875
17978
|
return allColors.filter((color2) => color2 !== primaryColor);
|
|
17876
17979
|
}, [filteredColorThemes, themeCategory, primaryColor]);
|
|
17877
|
-
|
|
17980
|
+
React18.useEffect(() => {
|
|
17878
17981
|
if (!isInitialized) return;
|
|
17879
17982
|
const neutralKey = Object.keys(colorThemes[themeCategory]).find((k) => k.toLowerCase().includes("grey")) ?? "";
|
|
17880
17983
|
if (neutralKey && neutralKey !== greyColor) {
|
|
@@ -17895,7 +17998,7 @@ function ThemeColorPaletteContent() {
|
|
|
17895
17998
|
}
|
|
17896
17999
|
}
|
|
17897
18000
|
}, [themeCategory, primaryColor, accentColor, greyColor, isInitialized]);
|
|
17898
|
-
const currentColorPalette =
|
|
18001
|
+
const currentColorPalette = React18.useMemo(() => {
|
|
17899
18002
|
if (!colorThemes[themeCategory] || !colorThemes[themeCategory][primaryColor] || !colorThemes[themeCategory][accentColor]) {
|
|
17900
18003
|
return [
|
|
17901
18004
|
{
|
|
@@ -17988,22 +18091,22 @@ function ThemeColorPaletteContent() {
|
|
|
17988
18091
|
] });
|
|
17989
18092
|
}
|
|
17990
18093
|
function ThemeColorPalette() {
|
|
17991
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18094
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React18.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(ThemeColorPaletteLoading, {}), children: /* @__PURE__ */ jsxRuntime.jsx(ThemeColorPaletteContent, {}) });
|
|
17992
18095
|
}
|
|
17993
18096
|
function ThemeProvider({ children, ...props }) {
|
|
17994
18097
|
return /* @__PURE__ */ jsxRuntime.jsx(nextThemes.ThemeProvider, { ...props, children });
|
|
17995
18098
|
}
|
|
17996
|
-
var TocContext =
|
|
18099
|
+
var TocContext = React18.createContext({
|
|
17997
18100
|
toc: true,
|
|
17998
18101
|
setToc: () => {
|
|
17999
18102
|
}
|
|
18000
18103
|
});
|
|
18001
18104
|
function TocProvider({ children }) {
|
|
18002
|
-
const [toc, setToc] =
|
|
18105
|
+
const [toc, setToc] = React18.useState(true);
|
|
18003
18106
|
const pathname = navigation.usePathname();
|
|
18004
|
-
const isInitialMount =
|
|
18005
|
-
const tocExplicitlySet =
|
|
18006
|
-
|
|
18107
|
+
const isInitialMount = React18.useRef(true);
|
|
18108
|
+
const tocExplicitlySet = React18.useRef(false);
|
|
18109
|
+
React18.useEffect(() => {
|
|
18007
18110
|
if (isInitialMount.current) {
|
|
18008
18111
|
isInitialMount.current = false;
|
|
18009
18112
|
return;
|
|
@@ -18018,12 +18121,12 @@ function TocProvider({ children }) {
|
|
|
18018
18121
|
return /* @__PURE__ */ jsxRuntime.jsx(TocContext.Provider, { value: { toc, setToc: handleSetToc }, children });
|
|
18019
18122
|
}
|
|
18020
18123
|
function useToc() {
|
|
18021
|
-
return
|
|
18124
|
+
return React18.useContext(TocContext);
|
|
18022
18125
|
}
|
|
18023
18126
|
var THEMES = { light: "", dark: ".dark" };
|
|
18024
|
-
var ChartContext =
|
|
18127
|
+
var ChartContext = React18__namespace.createContext(null);
|
|
18025
18128
|
function useChart() {
|
|
18026
|
-
const context =
|
|
18129
|
+
const context = React18__namespace.useContext(ChartContext);
|
|
18027
18130
|
if (!context) {
|
|
18028
18131
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
18029
18132
|
}
|
|
@@ -18036,7 +18139,7 @@ function ChartContainer({
|
|
|
18036
18139
|
config,
|
|
18037
18140
|
...props
|
|
18038
18141
|
}) {
|
|
18039
|
-
const uniqueId =
|
|
18142
|
+
const uniqueId = React18__namespace.useId();
|
|
18040
18143
|
const chartId = `chart-${id3 || uniqueId.replace(/:/g, "")}`;
|
|
18041
18144
|
return /* @__PURE__ */ jsxRuntime.jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18042
18145
|
"div",
|
|
@@ -18095,7 +18198,7 @@ function ChartTooltipContent({
|
|
|
18095
18198
|
labelKey
|
|
18096
18199
|
}) {
|
|
18097
18200
|
const { config } = useChart();
|
|
18098
|
-
const tooltipLabel =
|
|
18201
|
+
const tooltipLabel = React18__namespace.useMemo(() => {
|
|
18099
18202
|
if (hideLabel || !payload?.length) {
|
|
18100
18203
|
return null;
|
|
18101
18204
|
}
|
|
@@ -18335,7 +18438,7 @@ function hasOnlyOneValueForKey(array, keyToCheck) {
|
|
|
18335
18438
|
return true;
|
|
18336
18439
|
}
|
|
18337
18440
|
var useOnWindowResize = (handler) => {
|
|
18338
|
-
|
|
18441
|
+
React18__namespace.useEffect(() => {
|
|
18339
18442
|
const handleResize = () => {
|
|
18340
18443
|
handler();
|
|
18341
18444
|
};
|
|
@@ -18390,9 +18493,9 @@ var LegendItem = ({ name, color: color2, onClick, activeLegend }) => {
|
|
|
18390
18493
|
};
|
|
18391
18494
|
var ScrollButton = ({ icon, onClick, disabled }) => {
|
|
18392
18495
|
const Icon2 = icon;
|
|
18393
|
-
const [isPressed, setIsPressed] =
|
|
18394
|
-
const intervalRef =
|
|
18395
|
-
|
|
18496
|
+
const [isPressed, setIsPressed] = React18__namespace.default.useState(false);
|
|
18497
|
+
const intervalRef = React18__namespace.default.useRef(null);
|
|
18498
|
+
React18__namespace.default.useEffect(() => {
|
|
18396
18499
|
if (isPressed) {
|
|
18397
18500
|
intervalRef.current = setInterval(() => {
|
|
18398
18501
|
onClick?.();
|
|
@@ -18402,7 +18505,7 @@ var ScrollButton = ({ icon, onClick, disabled }) => {
|
|
|
18402
18505
|
}
|
|
18403
18506
|
return () => clearInterval(intervalRef.current);
|
|
18404
18507
|
}, [isPressed, onClick]);
|
|
18405
|
-
|
|
18508
|
+
React18__namespace.default.useEffect(() => {
|
|
18406
18509
|
if (disabled) {
|
|
18407
18510
|
clearInterval(intervalRef.current);
|
|
18408
18511
|
setIsPressed(false);
|
|
@@ -18434,7 +18537,7 @@ var ScrollButton = ({ icon, onClick, disabled }) => {
|
|
|
18434
18537
|
}
|
|
18435
18538
|
);
|
|
18436
18539
|
};
|
|
18437
|
-
var Legend4 =
|
|
18540
|
+
var Legend4 = React18__namespace.default.forwardRef((props, ref) => {
|
|
18438
18541
|
const {
|
|
18439
18542
|
categories,
|
|
18440
18543
|
colors: colors3 = AvailableChartColors,
|
|
@@ -18444,19 +18547,19 @@ var Legend4 = React16__namespace.default.forwardRef((props, ref) => {
|
|
|
18444
18547
|
enableLegendSlider = false,
|
|
18445
18548
|
...other
|
|
18446
18549
|
} = props;
|
|
18447
|
-
const scrollableRef =
|
|
18448
|
-
const scrollButtonsRef =
|
|
18449
|
-
const [hasScroll, setHasScroll] =
|
|
18450
|
-
const [isKeyDowned, setIsKeyDowned] =
|
|
18451
|
-
const intervalRef =
|
|
18452
|
-
const checkScroll =
|
|
18550
|
+
const scrollableRef = React18__namespace.default.useRef(null);
|
|
18551
|
+
const scrollButtonsRef = React18__namespace.default.useRef(null);
|
|
18552
|
+
const [hasScroll, setHasScroll] = React18__namespace.default.useState(null);
|
|
18553
|
+
const [isKeyDowned, setIsKeyDowned] = React18__namespace.default.useState(null);
|
|
18554
|
+
const intervalRef = React18__namespace.default.useRef(null);
|
|
18555
|
+
const checkScroll = React18__namespace.default.useCallback(() => {
|
|
18453
18556
|
const scrollable = scrollableRef?.current;
|
|
18454
18557
|
if (!scrollable) return;
|
|
18455
18558
|
const hasLeftScroll = scrollable.scrollLeft > 0;
|
|
18456
18559
|
const hasRightScroll = scrollable.scrollWidth - scrollable.clientWidth > scrollable.scrollLeft;
|
|
18457
18560
|
setHasScroll({ left: hasLeftScroll, right: hasRightScroll });
|
|
18458
18561
|
}, [setHasScroll]);
|
|
18459
|
-
const scrollToTest =
|
|
18562
|
+
const scrollToTest = React18__namespace.default.useCallback(
|
|
18460
18563
|
(direction) => {
|
|
18461
18564
|
const element = scrollableRef?.current;
|
|
18462
18565
|
const scrollButtons = scrollButtonsRef?.current;
|
|
@@ -18474,7 +18577,7 @@ var Legend4 = React16__namespace.default.forwardRef((props, ref) => {
|
|
|
18474
18577
|
},
|
|
18475
18578
|
[enableLegendSlider, checkScroll]
|
|
18476
18579
|
);
|
|
18477
|
-
|
|
18580
|
+
React18__namespace.default.useEffect(() => {
|
|
18478
18581
|
const keyDownHandler = (key) => {
|
|
18479
18582
|
if (key === "ArrowLeft") {
|
|
18480
18583
|
scrollToTest("left");
|
|
@@ -18503,7 +18606,7 @@ var Legend4 = React16__namespace.default.forwardRef((props, ref) => {
|
|
|
18503
18606
|
e.stopPropagation();
|
|
18504
18607
|
setIsKeyDowned(null);
|
|
18505
18608
|
};
|
|
18506
|
-
|
|
18609
|
+
React18__namespace.default.useEffect(() => {
|
|
18507
18610
|
const scrollable = scrollableRef?.current;
|
|
18508
18611
|
if (enableLegendSlider) {
|
|
18509
18612
|
checkScroll();
|
|
@@ -18576,7 +18679,7 @@ var Legend4 = React16__namespace.default.forwardRef((props, ref) => {
|
|
|
18576
18679
|
});
|
|
18577
18680
|
Legend4.displayName = "Legend";
|
|
18578
18681
|
var ChartLegend2 = ({ payload }, categoryColors, setLegendHeight, activeLegend, onClick, enableLegendSlider, legendPosition, yAxisWidth) => {
|
|
18579
|
-
const legendRef =
|
|
18682
|
+
const legendRef = React18__namespace.default.useRef(null);
|
|
18580
18683
|
useOnWindowResize(() => {
|
|
18581
18684
|
const calculateHeight = (height) => height ? Number(height) + 15 : 60;
|
|
18582
18685
|
setLegendHeight(calculateHeight(legendRef.current?.clientHeight));
|
|
@@ -18677,7 +18780,7 @@ var ChartTooltip2 = ({ active, payload, label, valueFormatter }) => {
|
|
|
18677
18780
|
}
|
|
18678
18781
|
return null;
|
|
18679
18782
|
};
|
|
18680
|
-
var AreaChart =
|
|
18783
|
+
var AreaChart = React18__namespace.default.forwardRef((props, ref) => {
|
|
18681
18784
|
const {
|
|
18682
18785
|
data = [],
|
|
18683
18786
|
categories = [],
|
|
@@ -18712,16 +18815,16 @@ var AreaChart = React16__namespace.default.forwardRef((props, ref) => {
|
|
|
18712
18815
|
} = props;
|
|
18713
18816
|
const CustomTooltip = customTooltip;
|
|
18714
18817
|
const paddingValue = !showXAxis && !showYAxis || startEndOnly && !showYAxis ? 0 : 20;
|
|
18715
|
-
const [legendHeight, setLegendHeight] =
|
|
18716
|
-
const [activeDot, setActiveDot] =
|
|
18717
|
-
const [activeLegend, setActiveLegend] =
|
|
18818
|
+
const [legendHeight, setLegendHeight] = React18__namespace.default.useState(60);
|
|
18819
|
+
const [activeDot, setActiveDot] = React18__namespace.default.useState(void 0);
|
|
18820
|
+
const [activeLegend, setActiveLegend] = React18__namespace.default.useState(void 0);
|
|
18718
18821
|
const categoryColors = constructCategoryColors(categories, colors3);
|
|
18719
18822
|
const yAxisDomain = getYAxisDomain(autoMinValue, minValue, maxValue);
|
|
18720
18823
|
const hasOnValueChange = !!onValueChange;
|
|
18721
18824
|
const stacked = type === "stacked" || type === "percent";
|
|
18722
|
-
const areaId =
|
|
18723
|
-
const prevActiveRef =
|
|
18724
|
-
const prevLabelRef =
|
|
18825
|
+
const areaId = React18__namespace.default.useId();
|
|
18826
|
+
const prevActiveRef = React18__namespace.default.useRef(void 0);
|
|
18827
|
+
const prevLabelRef = React18__namespace.default.useRef(void 0);
|
|
18725
18828
|
const getFillContent = ({
|
|
18726
18829
|
fillType,
|
|
18727
18830
|
activeDot: activeDot2,
|
|
@@ -18922,7 +19025,7 @@ var AreaChart = React16__namespace.default.forwardRef((props, ref) => {
|
|
|
18922
19025
|
) : null,
|
|
18923
19026
|
categories.map((category) => {
|
|
18924
19027
|
const categoryId = `${areaId}-${category.replace(/[^a-zA-Z0-9]/g, "")}`;
|
|
18925
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
19028
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(React18__namespace.default.Fragment, { children: [
|
|
18926
19029
|
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18927
19030
|
"linearGradient",
|
|
18928
19031
|
{
|
|
@@ -19024,7 +19127,7 @@ var AreaChart = React16__namespace.default.forwardRef((props, ref) => {
|
|
|
19024
19127
|
index2
|
|
19025
19128
|
);
|
|
19026
19129
|
}
|
|
19027
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
19130
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React18__namespace.default.Fragment, {}, index2);
|
|
19028
19131
|
},
|
|
19029
19132
|
name: category,
|
|
19030
19133
|
type: "linear",
|
|
@@ -19149,9 +19252,9 @@ var LegendItem2 = ({ name, color: color2, onClick, activeLegend }) => {
|
|
|
19149
19252
|
};
|
|
19150
19253
|
var ScrollButton2 = ({ icon, onClick, disabled }) => {
|
|
19151
19254
|
const Icon2 = icon;
|
|
19152
|
-
const [isPressed, setIsPressed] =
|
|
19153
|
-
const intervalRef =
|
|
19154
|
-
|
|
19255
|
+
const [isPressed, setIsPressed] = React18__namespace.default.useState(false);
|
|
19256
|
+
const intervalRef = React18__namespace.default.useRef(null);
|
|
19257
|
+
React18__namespace.default.useEffect(() => {
|
|
19155
19258
|
if (isPressed) {
|
|
19156
19259
|
intervalRef.current = setInterval(() => {
|
|
19157
19260
|
onClick?.();
|
|
@@ -19161,7 +19264,7 @@ var ScrollButton2 = ({ icon, onClick, disabled }) => {
|
|
|
19161
19264
|
}
|
|
19162
19265
|
return () => clearInterval(intervalRef.current);
|
|
19163
19266
|
}, [isPressed, onClick]);
|
|
19164
|
-
|
|
19267
|
+
React18__namespace.default.useEffect(() => {
|
|
19165
19268
|
if (disabled) {
|
|
19166
19269
|
clearInterval(intervalRef.current);
|
|
19167
19270
|
setIsPressed(false);
|
|
@@ -19193,7 +19296,7 @@ var ScrollButton2 = ({ icon, onClick, disabled }) => {
|
|
|
19193
19296
|
}
|
|
19194
19297
|
);
|
|
19195
19298
|
};
|
|
19196
|
-
var Legend5 =
|
|
19299
|
+
var Legend5 = React18__namespace.default.forwardRef((props, ref) => {
|
|
19197
19300
|
const {
|
|
19198
19301
|
categories,
|
|
19199
19302
|
colors: colors3 = AvailableChartColors,
|
|
@@ -19203,19 +19306,19 @@ var Legend5 = React16__namespace.default.forwardRef((props, ref) => {
|
|
|
19203
19306
|
enableLegendSlider = false,
|
|
19204
19307
|
...other
|
|
19205
19308
|
} = props;
|
|
19206
|
-
const scrollableRef =
|
|
19207
|
-
const scrollButtonsRef =
|
|
19208
|
-
const [hasScroll, setHasScroll] =
|
|
19209
|
-
const [isKeyDowned, setIsKeyDowned] =
|
|
19210
|
-
const intervalRef =
|
|
19211
|
-
const checkScroll =
|
|
19309
|
+
const scrollableRef = React18__namespace.default.useRef(null);
|
|
19310
|
+
const scrollButtonsRef = React18__namespace.default.useRef(null);
|
|
19311
|
+
const [hasScroll, setHasScroll] = React18__namespace.default.useState(null);
|
|
19312
|
+
const [isKeyDowned, setIsKeyDowned] = React18__namespace.default.useState(null);
|
|
19313
|
+
const intervalRef = React18__namespace.default.useRef(null);
|
|
19314
|
+
const checkScroll = React18__namespace.default.useCallback(() => {
|
|
19212
19315
|
const scrollable = scrollableRef?.current;
|
|
19213
19316
|
if (!scrollable) return;
|
|
19214
19317
|
const hasLeftScroll = scrollable.scrollLeft > 0;
|
|
19215
19318
|
const hasRightScroll = scrollable.scrollWidth - scrollable.clientWidth > scrollable.scrollLeft;
|
|
19216
19319
|
setHasScroll({ left: hasLeftScroll, right: hasRightScroll });
|
|
19217
19320
|
}, [setHasScroll]);
|
|
19218
|
-
const scrollToTest =
|
|
19321
|
+
const scrollToTest = React18__namespace.default.useCallback(
|
|
19219
19322
|
(direction) => {
|
|
19220
19323
|
const element = scrollableRef?.current;
|
|
19221
19324
|
const scrollButtons = scrollButtonsRef?.current;
|
|
@@ -19233,7 +19336,7 @@ var Legend5 = React16__namespace.default.forwardRef((props, ref) => {
|
|
|
19233
19336
|
},
|
|
19234
19337
|
[enableLegendSlider, checkScroll]
|
|
19235
19338
|
);
|
|
19236
|
-
|
|
19339
|
+
React18__namespace.default.useEffect(() => {
|
|
19237
19340
|
const keyDownHandler = (key) => {
|
|
19238
19341
|
if (key === "ArrowLeft") {
|
|
19239
19342
|
scrollToTest("left");
|
|
@@ -19262,7 +19365,7 @@ var Legend5 = React16__namespace.default.forwardRef((props, ref) => {
|
|
|
19262
19365
|
e.stopPropagation();
|
|
19263
19366
|
setIsKeyDowned(null);
|
|
19264
19367
|
};
|
|
19265
|
-
|
|
19368
|
+
React18__namespace.default.useEffect(() => {
|
|
19266
19369
|
const scrollable = scrollableRef?.current;
|
|
19267
19370
|
if (enableLegendSlider) {
|
|
19268
19371
|
checkScroll();
|
|
@@ -19335,7 +19438,7 @@ var Legend5 = React16__namespace.default.forwardRef((props, ref) => {
|
|
|
19335
19438
|
});
|
|
19336
19439
|
Legend5.displayName = "Legend";
|
|
19337
19440
|
var ChartLegend3 = ({ payload }, categoryColors, setLegendHeight, activeLegend, onClick, enableLegendSlider, legendPosition, yAxisWidth) => {
|
|
19338
|
-
const legendRef =
|
|
19441
|
+
const legendRef = React18__namespace.default.useRef(null);
|
|
19339
19442
|
useOnWindowResize(() => {
|
|
19340
19443
|
const calculateHeight = (height) => height ? Number(height) + 15 : 60;
|
|
19341
19444
|
setLegendHeight(calculateHeight(legendRef.current?.clientHeight));
|
|
@@ -19435,7 +19538,7 @@ var ChartTooltip3 = ({ active, payload, label, valueFormatter }) => {
|
|
|
19435
19538
|
}
|
|
19436
19539
|
return null;
|
|
19437
19540
|
};
|
|
19438
|
-
var BarChart =
|
|
19541
|
+
var BarChart = React18__namespace.default.forwardRef((props, forwardedRef) => {
|
|
19439
19542
|
const {
|
|
19440
19543
|
data = [],
|
|
19441
19544
|
categories = [],
|
|
@@ -19470,15 +19573,15 @@ var BarChart = React16__namespace.default.forwardRef((props, forwardedRef) => {
|
|
|
19470
19573
|
} = props;
|
|
19471
19574
|
const CustomTooltip = customTooltip;
|
|
19472
19575
|
const paddingValue = !showXAxis && !showYAxis || startEndOnly && !showYAxis ? 0 : 20;
|
|
19473
|
-
const [legendHeight, setLegendHeight] =
|
|
19474
|
-
const [activeLegend, setActiveLegend] =
|
|
19576
|
+
const [legendHeight, setLegendHeight] = React18__namespace.default.useState(60);
|
|
19577
|
+
const [activeLegend, setActiveLegend] = React18__namespace.default.useState(void 0);
|
|
19475
19578
|
const categoryColors = constructCategoryColors(categories, colors3);
|
|
19476
|
-
const [activeBar, setActiveBar] =
|
|
19579
|
+
const [activeBar, setActiveBar] = React18__namespace.default.useState(void 0);
|
|
19477
19580
|
const yAxisDomain = getYAxisDomain(autoMinValue, minValue, maxValue);
|
|
19478
19581
|
const hasOnValueChange = !!onValueChange;
|
|
19479
19582
|
const stacked = type === "stacked" || type === "percent";
|
|
19480
|
-
const prevActiveRef =
|
|
19481
|
-
const prevLabelRef =
|
|
19583
|
+
const prevActiveRef = React18__namespace.default.useRef(void 0);
|
|
19584
|
+
const prevLabelRef = React18__namespace.default.useRef(void 0);
|
|
19482
19585
|
function valueToPercent(value) {
|
|
19483
19586
|
return `${(value * 100).toFixed(0)}%`;
|
|
19484
19587
|
}
|
|
@@ -19726,7 +19829,7 @@ function BarListInner({
|
|
|
19726
19829
|
...props
|
|
19727
19830
|
}, forwardedRef) {
|
|
19728
19831
|
const Component2 = onValueChange ? "button" : "div";
|
|
19729
|
-
const sortedData =
|
|
19832
|
+
const sortedData = React18__namespace.default.useMemo(() => {
|
|
19730
19833
|
if (sortOrder === "none") {
|
|
19731
19834
|
return data;
|
|
19732
19835
|
}
|
|
@@ -19734,7 +19837,7 @@ function BarListInner({
|
|
|
19734
19837
|
return sortOrder === "ascending" ? a.value - b.value : b.value - a.value;
|
|
19735
19838
|
});
|
|
19736
19839
|
}, [data, sortOrder]);
|
|
19737
|
-
const widths =
|
|
19840
|
+
const widths = React18__namespace.default.useMemo(() => {
|
|
19738
19841
|
const maxValue = Math.max(...sortedData.map((item) => item.value), 0);
|
|
19739
19842
|
return sortedData.map(
|
|
19740
19843
|
(item) => item.value === 0 ? 0 : Math.max(item.value / maxValue * 100, 2)
|
|
@@ -19848,8 +19951,8 @@ function BarListInner({
|
|
|
19848
19951
|
);
|
|
19849
19952
|
}
|
|
19850
19953
|
BarListInner.displayName = "BarList";
|
|
19851
|
-
var BarList =
|
|
19852
|
-
var Tooltip5 =
|
|
19954
|
+
var BarList = React18__namespace.default.forwardRef(BarListInner);
|
|
19955
|
+
var Tooltip5 = React18__namespace.default.forwardRef(
|
|
19853
19956
|
({
|
|
19854
19957
|
children,
|
|
19855
19958
|
className,
|
|
@@ -19942,7 +20045,7 @@ var formatNumber = (num) => {
|
|
|
19942
20045
|
return num.toFixed(1);
|
|
19943
20046
|
};
|
|
19944
20047
|
var BarLabels = ({ values }) => {
|
|
19945
|
-
const sumValues =
|
|
20048
|
+
const sumValues = React18__namespace.default.useMemo(() => sumNumericArray(values), [values]);
|
|
19946
20049
|
let prefixSum = 0;
|
|
19947
20050
|
let sumConsecutiveHiddenLabels = 0;
|
|
19948
20051
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -19976,20 +20079,20 @@ var BarLabels = ({ values }) => {
|
|
|
19976
20079
|
}
|
|
19977
20080
|
);
|
|
19978
20081
|
};
|
|
19979
|
-
var CategoryBar =
|
|
20082
|
+
var CategoryBar = React18__namespace.default.forwardRef(
|
|
19980
20083
|
({ values = [], colors: colors3 = AvailableChartColors, marker, showLabels = true, className, ...props }, forwardedRef) => {
|
|
19981
|
-
const markerBgColor =
|
|
20084
|
+
const markerBgColor = React18__namespace.default.useMemo(
|
|
19982
20085
|
() => getMarkerBgColor(marker?.value, values, colors3),
|
|
19983
20086
|
[marker, values, colors3]
|
|
19984
20087
|
);
|
|
19985
|
-
const maxValue =
|
|
19986
|
-
const adjustedMarkerValue =
|
|
20088
|
+
const maxValue = React18__namespace.default.useMemo(() => sumNumericArray(values), [values]);
|
|
20089
|
+
const adjustedMarkerValue = React18__namespace.default.useMemo(() => {
|
|
19987
20090
|
if (marker === void 0) return void 0;
|
|
19988
20091
|
if (marker.value < 0) return 0;
|
|
19989
20092
|
if (marker.value > maxValue) return maxValue;
|
|
19990
20093
|
return marker.value;
|
|
19991
20094
|
}, [marker, maxValue]);
|
|
19992
|
-
const markerPositionLeft =
|
|
20095
|
+
const markerPositionLeft = React18__namespace.default.useMemo(
|
|
19993
20096
|
() => getPositionLeft(adjustedMarkerValue, maxValue),
|
|
19994
20097
|
[adjustedMarkerValue, maxValue]
|
|
19995
20098
|
);
|
|
@@ -20149,9 +20252,9 @@ var LegendItem3 = ({ name, color: color2, onClick, activeLegend, chartType }) =>
|
|
|
20149
20252
|
};
|
|
20150
20253
|
var ScrollButton3 = ({ icon, onClick, disabled }) => {
|
|
20151
20254
|
const Icon2 = icon;
|
|
20152
|
-
const [isPressed, setIsPressed] =
|
|
20153
|
-
const intervalRef =
|
|
20154
|
-
|
|
20255
|
+
const [isPressed, setIsPressed] = React18__namespace.default.useState(false);
|
|
20256
|
+
const intervalRef = React18__namespace.default.useRef(null);
|
|
20257
|
+
React18__namespace.default.useEffect(() => {
|
|
20155
20258
|
if (isPressed) {
|
|
20156
20259
|
intervalRef.current = setInterval(() => {
|
|
20157
20260
|
onClick?.();
|
|
@@ -20161,7 +20264,7 @@ var ScrollButton3 = ({ icon, onClick, disabled }) => {
|
|
|
20161
20264
|
}
|
|
20162
20265
|
return () => clearInterval(intervalRef.current);
|
|
20163
20266
|
}, [isPressed, onClick]);
|
|
20164
|
-
|
|
20267
|
+
React18__namespace.default.useEffect(() => {
|
|
20165
20268
|
if (disabled) {
|
|
20166
20269
|
clearInterval(intervalRef.current);
|
|
20167
20270
|
setIsPressed(false);
|
|
@@ -20193,7 +20296,7 @@ var ScrollButton3 = ({ icon, onClick, disabled }) => {
|
|
|
20193
20296
|
}
|
|
20194
20297
|
);
|
|
20195
20298
|
};
|
|
20196
|
-
var Legend6 =
|
|
20299
|
+
var Legend6 = React18__namespace.default.forwardRef((props, ref) => {
|
|
20197
20300
|
const {
|
|
20198
20301
|
categories,
|
|
20199
20302
|
barCategoryColors,
|
|
@@ -20204,18 +20307,18 @@ var Legend6 = React16__namespace.default.forwardRef((props, ref) => {
|
|
|
20204
20307
|
className,
|
|
20205
20308
|
...other
|
|
20206
20309
|
} = props;
|
|
20207
|
-
const scrollableRef =
|
|
20208
|
-
const [hasScroll, setHasScroll] =
|
|
20209
|
-
const [isKeyDowned, setIsKeyDowned] =
|
|
20210
|
-
const intervalRef =
|
|
20211
|
-
const checkScroll =
|
|
20310
|
+
const scrollableRef = React18__namespace.default.useRef(null);
|
|
20311
|
+
const [hasScroll, setHasScroll] = React18__namespace.default.useState(null);
|
|
20312
|
+
const [isKeyDowned, setIsKeyDowned] = React18__namespace.default.useState(null);
|
|
20313
|
+
const intervalRef = React18__namespace.default.useRef(null);
|
|
20314
|
+
const checkScroll = React18__namespace.default.useCallback(() => {
|
|
20212
20315
|
const scrollable = scrollableRef?.current;
|
|
20213
20316
|
if (!scrollable) return;
|
|
20214
20317
|
const hasLeftScroll = scrollable.scrollLeft > 0;
|
|
20215
20318
|
const hasRightScroll = scrollable.scrollWidth - scrollable.clientWidth > scrollable.scrollLeft;
|
|
20216
20319
|
setHasScroll({ left: hasLeftScroll, right: hasRightScroll });
|
|
20217
20320
|
}, [setHasScroll]);
|
|
20218
|
-
const scrollToTest =
|
|
20321
|
+
const scrollToTest = React18__namespace.default.useCallback(
|
|
20219
20322
|
(direction) => {
|
|
20220
20323
|
const element = scrollableRef?.current;
|
|
20221
20324
|
const width = element?.clientWidth ?? 0;
|
|
@@ -20231,7 +20334,7 @@ var Legend6 = React16__namespace.default.forwardRef((props, ref) => {
|
|
|
20231
20334
|
},
|
|
20232
20335
|
[enableLegendSlider, checkScroll]
|
|
20233
20336
|
);
|
|
20234
|
-
|
|
20337
|
+
React18__namespace.default.useEffect(() => {
|
|
20235
20338
|
const keyDownHandler = (key) => {
|
|
20236
20339
|
if (key === "ArrowLeft") {
|
|
20237
20340
|
scrollToTest("left");
|
|
@@ -20260,7 +20363,7 @@ var Legend6 = React16__namespace.default.forwardRef((props, ref) => {
|
|
|
20260
20363
|
e.stopPropagation();
|
|
20261
20364
|
setIsKeyDowned(null);
|
|
20262
20365
|
};
|
|
20263
|
-
|
|
20366
|
+
React18__namespace.default.useEffect(() => {
|
|
20264
20367
|
const scrollable = scrollableRef?.current;
|
|
20265
20368
|
if (enableLegendSlider) {
|
|
20266
20369
|
checkScroll();
|
|
@@ -20337,7 +20440,7 @@ var Legend6 = React16__namespace.default.forwardRef((props, ref) => {
|
|
|
20337
20440
|
});
|
|
20338
20441
|
Legend6.displayName = "Legend";
|
|
20339
20442
|
var ChartLegend4 = ({ payload }, barCategoryColors, lineCategoryColors, setLegendHeight, activeLegend, onClick, enableLegendSlider, legendPosition, barYAxisWidth, lineYAxisWidth) => {
|
|
20340
|
-
const legendRef =
|
|
20443
|
+
const legendRef = React18__namespace.default.useRef(null);
|
|
20341
20444
|
useOnWindowResize(() => {
|
|
20342
20445
|
const calculateHeight = (height) => height ? Number(height) + 15 : 60;
|
|
20343
20446
|
setLegendHeight(calculateHeight(legendRef.current?.clientHeight));
|
|
@@ -20456,7 +20559,7 @@ var ChartTooltip4 = ({
|
|
|
20456
20559
|
}
|
|
20457
20560
|
return null;
|
|
20458
20561
|
};
|
|
20459
|
-
var ComboChart =
|
|
20562
|
+
var ComboChart = React18__namespace.default.forwardRef((props, forwardedRef) => {
|
|
20460
20563
|
const defaultSeries = {
|
|
20461
20564
|
categories: [],
|
|
20462
20565
|
colors: AvailableChartColors,
|
|
@@ -20501,11 +20604,11 @@ var ComboChart = React16__namespace.default.forwardRef((props, forwardedRef) =>
|
|
|
20501
20604
|
const mergedLineSeries = { ...defaultLineSeries, ...lineSeries };
|
|
20502
20605
|
const CustomTooltip = customTooltip;
|
|
20503
20606
|
const paddingValue = !showXAxis && !mergedBarSeries.showYAxis && enableBiaxial && !mergedLineSeries.showYAxis || startEndOnly && !mergedBarSeries.showYAxis && enableBiaxial && !mergedLineSeries.showYAxis ? 0 : 20;
|
|
20504
|
-
const [legendHeight, setLegendHeight] =
|
|
20505
|
-
const [activeDot, setActiveDot] =
|
|
20506
|
-
const [activeLegend, setActiveLegend] =
|
|
20507
|
-
const prevActiveRef =
|
|
20508
|
-
const prevLabelRef =
|
|
20607
|
+
const [legendHeight, setLegendHeight] = React18__namespace.default.useState(60);
|
|
20608
|
+
const [activeDot, setActiveDot] = React18__namespace.default.useState(void 0);
|
|
20609
|
+
const [activeLegend, setActiveLegend] = React18__namespace.default.useState(void 0);
|
|
20610
|
+
const prevActiveRef = React18__namespace.default.useRef(void 0);
|
|
20611
|
+
const prevLabelRef = React18__namespace.default.useRef(void 0);
|
|
20509
20612
|
const barCategoryColors = constructCategoryColors(
|
|
20510
20613
|
mergedBarSeries.categories,
|
|
20511
20614
|
mergedBarSeries.colors ?? AvailableChartColors
|
|
@@ -20514,7 +20617,7 @@ var ComboChart = React16__namespace.default.forwardRef((props, forwardedRef) =>
|
|
|
20514
20617
|
mergedLineSeries.categories,
|
|
20515
20618
|
mergedLineSeries.colors ?? AvailableChartColors
|
|
20516
20619
|
);
|
|
20517
|
-
const [activeBar, setActiveBar] =
|
|
20620
|
+
const [activeBar, setActiveBar] = React18__namespace.default.useState(void 0);
|
|
20518
20621
|
const barYAxisDomain = getYAxisDomain(
|
|
20519
20622
|
mergedBarSeries.autoMinValue ?? false,
|
|
20520
20623
|
mergedBarSeries.minValue,
|
|
@@ -20914,7 +21017,7 @@ var ComboChart = React16__namespace.default.forwardRef((props, forwardedRef) =>
|
|
|
20914
21017
|
index2
|
|
20915
21018
|
);
|
|
20916
21019
|
}
|
|
20917
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21020
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React18__namespace.default.Fragment, {}, index2);
|
|
20918
21021
|
},
|
|
20919
21022
|
name: category,
|
|
20920
21023
|
type: "linear",
|
|
@@ -21022,7 +21125,7 @@ var renderInactiveShape = (props) => {
|
|
|
21022
21125
|
}
|
|
21023
21126
|
);
|
|
21024
21127
|
};
|
|
21025
|
-
var DonutChart =
|
|
21128
|
+
var DonutChart = React18__namespace.default.forwardRef(
|
|
21026
21129
|
({
|
|
21027
21130
|
data = [],
|
|
21028
21131
|
value,
|
|
@@ -21040,13 +21143,13 @@ var DonutChart = React16__namespace.default.forwardRef(
|
|
|
21040
21143
|
...other
|
|
21041
21144
|
}, forwardedRef) => {
|
|
21042
21145
|
const CustomTooltip = customTooltip;
|
|
21043
|
-
const [activeIndex, setActiveIndex] =
|
|
21146
|
+
const [activeIndex, setActiveIndex] = React18__namespace.default.useState(void 0);
|
|
21044
21147
|
const isDonut = variant === "donut";
|
|
21045
21148
|
const parsedLabelInput = parseLabelInput(label, valueFormatter, data, value);
|
|
21046
21149
|
const categories = Array.from(new Set(data.map((item) => item[category])));
|
|
21047
21150
|
const categoryColors = constructCategoryColors(categories, colors3);
|
|
21048
|
-
const prevActiveRef =
|
|
21049
|
-
const prevCategoryRef =
|
|
21151
|
+
const prevActiveRef = React18__namespace.default.useRef(void 0);
|
|
21152
|
+
const prevCategoryRef = React18__namespace.default.useRef(void 0);
|
|
21050
21153
|
const handleShapeClick = (data2, index, event) => {
|
|
21051
21154
|
event.stopPropagation();
|
|
21052
21155
|
if (!onValueChange) return;
|
|
@@ -21201,9 +21304,9 @@ var LegendItem4 = ({ name, color: color2, onClick, activeLegend }) => {
|
|
|
21201
21304
|
};
|
|
21202
21305
|
var ScrollButton4 = ({ icon, onClick, disabled }) => {
|
|
21203
21306
|
const Icon2 = icon;
|
|
21204
|
-
const [isPressed, setIsPressed] =
|
|
21205
|
-
const intervalRef =
|
|
21206
|
-
|
|
21307
|
+
const [isPressed, setIsPressed] = React18__namespace.default.useState(false);
|
|
21308
|
+
const intervalRef = React18__namespace.default.useRef(null);
|
|
21309
|
+
React18__namespace.default.useEffect(() => {
|
|
21207
21310
|
if (isPressed) {
|
|
21208
21311
|
intervalRef.current = setInterval(() => {
|
|
21209
21312
|
onClick?.();
|
|
@@ -21213,7 +21316,7 @@ var ScrollButton4 = ({ icon, onClick, disabled }) => {
|
|
|
21213
21316
|
}
|
|
21214
21317
|
return () => clearInterval(intervalRef.current);
|
|
21215
21318
|
}, [isPressed, onClick]);
|
|
21216
|
-
|
|
21319
|
+
React18__namespace.default.useEffect(() => {
|
|
21217
21320
|
if (disabled) {
|
|
21218
21321
|
clearInterval(intervalRef.current);
|
|
21219
21322
|
setIsPressed(false);
|
|
@@ -21245,7 +21348,7 @@ var ScrollButton4 = ({ icon, onClick, disabled }) => {
|
|
|
21245
21348
|
}
|
|
21246
21349
|
);
|
|
21247
21350
|
};
|
|
21248
|
-
var Legend7 =
|
|
21351
|
+
var Legend7 = React18__namespace.default.forwardRef((props, ref) => {
|
|
21249
21352
|
const {
|
|
21250
21353
|
categories,
|
|
21251
21354
|
colors: colors3 = AvailableChartColors,
|
|
@@ -21255,19 +21358,19 @@ var Legend7 = React16__namespace.default.forwardRef((props, ref) => {
|
|
|
21255
21358
|
enableLegendSlider = false,
|
|
21256
21359
|
...other
|
|
21257
21360
|
} = props;
|
|
21258
|
-
const scrollableRef =
|
|
21259
|
-
const scrollButtonsRef =
|
|
21260
|
-
const [hasScroll, setHasScroll] =
|
|
21261
|
-
const [isKeyDowned, setIsKeyDowned] =
|
|
21262
|
-
const intervalRef =
|
|
21263
|
-
const checkScroll =
|
|
21361
|
+
const scrollableRef = React18__namespace.default.useRef(null);
|
|
21362
|
+
const scrollButtonsRef = React18__namespace.default.useRef(null);
|
|
21363
|
+
const [hasScroll, setHasScroll] = React18__namespace.default.useState(null);
|
|
21364
|
+
const [isKeyDowned, setIsKeyDowned] = React18__namespace.default.useState(null);
|
|
21365
|
+
const intervalRef = React18__namespace.default.useRef(null);
|
|
21366
|
+
const checkScroll = React18__namespace.default.useCallback(() => {
|
|
21264
21367
|
const scrollable = scrollableRef?.current;
|
|
21265
21368
|
if (!scrollable) return;
|
|
21266
21369
|
const hasLeftScroll = scrollable.scrollLeft > 0;
|
|
21267
21370
|
const hasRightScroll = scrollable.scrollWidth - scrollable.clientWidth > scrollable.scrollLeft;
|
|
21268
21371
|
setHasScroll({ left: hasLeftScroll, right: hasRightScroll });
|
|
21269
21372
|
}, [setHasScroll]);
|
|
21270
|
-
const scrollToTest =
|
|
21373
|
+
const scrollToTest = React18__namespace.default.useCallback(
|
|
21271
21374
|
(direction) => {
|
|
21272
21375
|
const element = scrollableRef?.current;
|
|
21273
21376
|
const scrollButtons = scrollButtonsRef?.current;
|
|
@@ -21285,7 +21388,7 @@ var Legend7 = React16__namespace.default.forwardRef((props, ref) => {
|
|
|
21285
21388
|
},
|
|
21286
21389
|
[enableLegendSlider, checkScroll]
|
|
21287
21390
|
);
|
|
21288
|
-
|
|
21391
|
+
React18__namespace.default.useEffect(() => {
|
|
21289
21392
|
const keyDownHandler = (key) => {
|
|
21290
21393
|
if (key === "ArrowLeft") {
|
|
21291
21394
|
scrollToTest("left");
|
|
@@ -21314,7 +21417,7 @@ var Legend7 = React16__namespace.default.forwardRef((props, ref) => {
|
|
|
21314
21417
|
e.stopPropagation();
|
|
21315
21418
|
setIsKeyDowned(null);
|
|
21316
21419
|
};
|
|
21317
|
-
|
|
21420
|
+
React18__namespace.default.useEffect(() => {
|
|
21318
21421
|
const scrollable = scrollableRef?.current;
|
|
21319
21422
|
if (enableLegendSlider) {
|
|
21320
21423
|
checkScroll();
|
|
@@ -21387,7 +21490,7 @@ var Legend7 = React16__namespace.default.forwardRef((props, ref) => {
|
|
|
21387
21490
|
});
|
|
21388
21491
|
Legend7.displayName = "Legend";
|
|
21389
21492
|
var ChartLegend5 = ({ payload }, categoryColors, setLegendHeight, activeLegend, onClick, enableLegendSlider, legendPosition, yAxisWidth) => {
|
|
21390
|
-
const legendRef =
|
|
21493
|
+
const legendRef = React18__namespace.default.useRef(null);
|
|
21391
21494
|
useOnWindowResize(() => {
|
|
21392
21495
|
const calculateHeight = (height) => height ? Number(height) + 15 : 60;
|
|
21393
21496
|
setLegendHeight(calculateHeight(legendRef.current?.clientHeight));
|
|
@@ -21489,7 +21592,7 @@ var ChartTooltip6 = ({ active, payload, label, valueFormatter }) => {
|
|
|
21489
21592
|
}
|
|
21490
21593
|
return null;
|
|
21491
21594
|
};
|
|
21492
|
-
var LineChart =
|
|
21595
|
+
var LineChart = React18__namespace.default.forwardRef((props, ref) => {
|
|
21493
21596
|
const {
|
|
21494
21597
|
data = [],
|
|
21495
21598
|
categories = [],
|
|
@@ -21522,14 +21625,14 @@ var LineChart = React16__namespace.default.forwardRef((props, ref) => {
|
|
|
21522
21625
|
} = props;
|
|
21523
21626
|
const CustomTooltip = customTooltip;
|
|
21524
21627
|
const paddingValue = !showXAxis && !showYAxis || startEndOnly && !showYAxis ? 0 : 20;
|
|
21525
|
-
const [legendHeight, setLegendHeight] =
|
|
21526
|
-
const [activeDot, setActiveDot] =
|
|
21527
|
-
const [activeLegend, setActiveLegend] =
|
|
21628
|
+
const [legendHeight, setLegendHeight] = React18__namespace.default.useState(60);
|
|
21629
|
+
const [activeDot, setActiveDot] = React18__namespace.default.useState(void 0);
|
|
21630
|
+
const [activeLegend, setActiveLegend] = React18__namespace.default.useState(void 0);
|
|
21528
21631
|
const categoryColors = constructCategoryColors(categories, colors3);
|
|
21529
21632
|
const yAxisDomain = getYAxisDomain(autoMinValue, minValue, maxValue);
|
|
21530
21633
|
const hasOnValueChange = !!onValueChange;
|
|
21531
|
-
const prevActiveRef =
|
|
21532
|
-
const prevLabelRef =
|
|
21634
|
+
const prevActiveRef = React18__namespace.default.useRef(void 0);
|
|
21635
|
+
const prevLabelRef = React18__namespace.default.useRef(void 0);
|
|
21533
21636
|
function onDotClick(itemData, event) {
|
|
21534
21637
|
event.stopPropagation();
|
|
21535
21638
|
if (!hasOnValueChange) return;
|
|
@@ -21782,7 +21885,7 @@ var LineChart = React16__namespace.default.forwardRef((props, ref) => {
|
|
|
21782
21885
|
index2
|
|
21783
21886
|
);
|
|
21784
21887
|
}
|
|
21785
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21888
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React18__namespace.default.Fragment, {}, index2);
|
|
21786
21889
|
},
|
|
21787
21890
|
name: category,
|
|
21788
21891
|
type: "linear",
|
|
@@ -21856,7 +21959,7 @@ var progressBarVariants = tailwindVariants.tv({
|
|
|
21856
21959
|
variant: "default"
|
|
21857
21960
|
}
|
|
21858
21961
|
});
|
|
21859
|
-
var ProgressBar =
|
|
21962
|
+
var ProgressBar = React18__namespace.default.forwardRef(
|
|
21860
21963
|
({
|
|
21861
21964
|
value = 0,
|
|
21862
21965
|
max = 100,
|
|
@@ -21944,7 +22047,7 @@ var progressCircleVariants = tailwindVariants.tv({
|
|
|
21944
22047
|
variant: "default"
|
|
21945
22048
|
}
|
|
21946
22049
|
});
|
|
21947
|
-
var ProgressCircle =
|
|
22050
|
+
var ProgressCircle = React18__namespace.default.forwardRef(
|
|
21948
22051
|
({
|
|
21949
22052
|
value = 0,
|
|
21950
22053
|
max = 100,
|
|
@@ -22026,7 +22129,7 @@ var ProgressCircle = React16__namespace.default.forwardRef(
|
|
|
22026
22129
|
}
|
|
22027
22130
|
);
|
|
22028
22131
|
ProgressCircle.displayName = "ProgressCircle";
|
|
22029
|
-
var SparkAreaChart =
|
|
22132
|
+
var SparkAreaChart = React18__namespace.default.forwardRef(
|
|
22030
22133
|
(props, forwardedRef) => {
|
|
22031
22134
|
const {
|
|
22032
22135
|
data = [],
|
|
@@ -22045,7 +22148,7 @@ var SparkAreaChart = React16__namespace.default.forwardRef(
|
|
|
22045
22148
|
const categoryColors = constructCategoryColors(categories, colors3);
|
|
22046
22149
|
const yAxisDomain = getYAxisDomain(autoMinValue, minValue, maxValue);
|
|
22047
22150
|
const stacked = type === "stacked" || type === "percent";
|
|
22048
|
-
const areaId =
|
|
22151
|
+
const areaId = React18__namespace.default.useId();
|
|
22049
22152
|
const getFillContent = (fillType) => {
|
|
22050
22153
|
switch (fillType) {
|
|
22051
22154
|
case "none":
|
|
@@ -22084,7 +22187,7 @@ var SparkAreaChart = React16__namespace.default.forwardRef(
|
|
|
22084
22187
|
/* @__PURE__ */ jsxRuntime.jsx(RechartsPrimitive.YAxis, { hide: true, domain: yAxisDomain }),
|
|
22085
22188
|
categories.map((category) => {
|
|
22086
22189
|
const categoryId = `${areaId}-${category.replace(/[^a-zA-Z0-9]/g, "")}`;
|
|
22087
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
22190
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(React18__namespace.default.Fragment, { children: [
|
|
22088
22191
|
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
22089
22192
|
"linearGradient",
|
|
22090
22193
|
{
|
|
@@ -22137,7 +22240,7 @@ var SparkAreaChart = React16__namespace.default.forwardRef(
|
|
|
22137
22240
|
}
|
|
22138
22241
|
);
|
|
22139
22242
|
SparkAreaChart.displayName = "SparkAreaChart";
|
|
22140
|
-
var SparkLineChart =
|
|
22243
|
+
var SparkLineChart = React18__namespace.default.forwardRef(
|
|
22141
22244
|
(props, forwardedRef) => {
|
|
22142
22245
|
const {
|
|
22143
22246
|
data = [],
|
|
@@ -22204,7 +22307,7 @@ var SparkLineChart = React16__namespace.default.forwardRef(
|
|
|
22204
22307
|
}
|
|
22205
22308
|
);
|
|
22206
22309
|
SparkLineChart.displayName = "SparkLineChart";
|
|
22207
|
-
var SparkBarChart =
|
|
22310
|
+
var SparkBarChart = React18__namespace.default.forwardRef((props, forwardedRef) => {
|
|
22208
22311
|
const {
|
|
22209
22312
|
data = [],
|
|
22210
22313
|
categories = [],
|
|
@@ -22266,7 +22369,7 @@ var SparkBarChart = React16__namespace.default.forwardRef((props, forwardedRef)
|
|
|
22266
22369
|
});
|
|
22267
22370
|
SparkBarChart.displayName = "SparkBarChart";
|
|
22268
22371
|
var Block = ({ color: color2, tooltip, defaultBackgroundColor, hoverEffect }) => {
|
|
22269
|
-
const [open, setOpen] =
|
|
22372
|
+
const [open, setOpen] = React18__namespace.default.useState(false);
|
|
22270
22373
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
22271
22374
|
HoverCardPrimitives__namespace.Root,
|
|
22272
22375
|
{
|
|
@@ -22309,7 +22412,7 @@ var Block = ({ color: color2, tooltip, defaultBackgroundColor, hoverEffect }) =>
|
|
|
22309
22412
|
);
|
|
22310
22413
|
};
|
|
22311
22414
|
Block.displayName = "Block";
|
|
22312
|
-
var Tracker =
|
|
22415
|
+
var Tracker = React18__namespace.default.forwardRef(
|
|
22313
22416
|
({
|
|
22314
22417
|
data = [],
|
|
22315
22418
|
defaultBackgroundColor = "bg-gray-400 dark:bg-gray-400",
|
|
@@ -22612,8 +22715,8 @@ function CalendarDayButton({
|
|
|
22612
22715
|
...props
|
|
22613
22716
|
}) {
|
|
22614
22717
|
const defaultClassNames = reactDayPicker.getDefaultClassNames();
|
|
22615
|
-
const ref =
|
|
22616
|
-
|
|
22718
|
+
const ref = React18__namespace.useRef(null);
|
|
22719
|
+
React18__namespace.useEffect(() => {
|
|
22617
22720
|
if (modifiers.focused) ref.current?.focus();
|
|
22618
22721
|
}, [modifiers.focused]);
|
|
22619
22722
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -22636,9 +22739,9 @@ function CalendarDayButton({
|
|
|
22636
22739
|
}
|
|
22637
22740
|
);
|
|
22638
22741
|
}
|
|
22639
|
-
var CarouselContext =
|
|
22742
|
+
var CarouselContext = React18__namespace.createContext(null);
|
|
22640
22743
|
function useCarousel() {
|
|
22641
|
-
const context =
|
|
22744
|
+
const context = React18__namespace.useContext(CarouselContext);
|
|
22642
22745
|
if (!context) {
|
|
22643
22746
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
22644
22747
|
}
|
|
@@ -22660,20 +22763,20 @@ function Carousel({
|
|
|
22660
22763
|
},
|
|
22661
22764
|
plugins
|
|
22662
22765
|
);
|
|
22663
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
22664
|
-
const [canScrollNext, setCanScrollNext] =
|
|
22665
|
-
const onSelect =
|
|
22766
|
+
const [canScrollPrev, setCanScrollPrev] = React18__namespace.useState(false);
|
|
22767
|
+
const [canScrollNext, setCanScrollNext] = React18__namespace.useState(false);
|
|
22768
|
+
const onSelect = React18__namespace.useCallback((api2) => {
|
|
22666
22769
|
if (!api2) return;
|
|
22667
22770
|
setCanScrollPrev(api2.canScrollPrev());
|
|
22668
22771
|
setCanScrollNext(api2.canScrollNext());
|
|
22669
22772
|
}, []);
|
|
22670
|
-
const scrollPrev =
|
|
22773
|
+
const scrollPrev = React18__namespace.useCallback(() => {
|
|
22671
22774
|
api?.scrollPrev();
|
|
22672
22775
|
}, [api]);
|
|
22673
|
-
const scrollNext =
|
|
22776
|
+
const scrollNext = React18__namespace.useCallback(() => {
|
|
22674
22777
|
api?.scrollNext();
|
|
22675
22778
|
}, [api]);
|
|
22676
|
-
const handleKeyDown =
|
|
22779
|
+
const handleKeyDown = React18__namespace.useCallback(
|
|
22677
22780
|
(event) => {
|
|
22678
22781
|
if (event.key === "ArrowLeft") {
|
|
22679
22782
|
event.preventDefault();
|
|
@@ -22685,11 +22788,11 @@ function Carousel({
|
|
|
22685
22788
|
},
|
|
22686
22789
|
[scrollPrev, scrollNext]
|
|
22687
22790
|
);
|
|
22688
|
-
|
|
22791
|
+
React18__namespace.useEffect(() => {
|
|
22689
22792
|
if (!api || !setApi) return;
|
|
22690
22793
|
setApi(api);
|
|
22691
22794
|
}, [api, setApi]);
|
|
22692
|
-
|
|
22795
|
+
React18__namespace.useEffect(() => {
|
|
22693
22796
|
if (!api) return;
|
|
22694
22797
|
onSelect(api);
|
|
22695
22798
|
api.on("reInit", onSelect);
|
|
@@ -22858,7 +22961,7 @@ function InputOTPSlot({
|
|
|
22858
22961
|
className,
|
|
22859
22962
|
...props
|
|
22860
22963
|
}) {
|
|
22861
|
-
const inputOTPContext =
|
|
22964
|
+
const inputOTPContext = React18__namespace.useContext(inputOtp.OTPInputContext);
|
|
22862
22965
|
const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
|
|
22863
22966
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
22864
22967
|
"div",
|
|
@@ -23014,7 +23117,7 @@ function ListboxOption2({
|
|
|
23014
23117
|
// Avatars
|
|
23015
23118
|
"*:data-[slot=avatar]:-mx-0.5 *:data-[slot=avatar]:size-6 sm:*:data-[slot=avatar]:size-5"
|
|
23016
23119
|
);
|
|
23017
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Headless4__namespace.ListboxOption, { as:
|
|
23120
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Headless4__namespace.ListboxOption, { as: React18.Fragment, ...props, children: ({ selectedOption }) => {
|
|
23018
23121
|
if (selectedOption) {
|
|
23019
23122
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx21__default.default(className, sharedClasses), children });
|
|
23020
23123
|
}
|
|
@@ -23151,17 +23254,17 @@ function MultiLevelPushMenu({
|
|
|
23151
23254
|
initialTitle = "Menu"
|
|
23152
23255
|
}) {
|
|
23153
23256
|
const pathname = navigation.usePathname();
|
|
23154
|
-
const [navigationHistory, setNavigationHistory] =
|
|
23257
|
+
const [navigationHistory, setNavigationHistory] = React18.useState([
|
|
23155
23258
|
{ items: navigation$1 || [], title: initialTitle, depth: 1, id: generateLevelId() }
|
|
23156
23259
|
]);
|
|
23157
|
-
const [animationState, setAnimationState] =
|
|
23158
|
-
const [isAnimationStarted, setIsAnimationStarted] =
|
|
23159
|
-
const containerRef =
|
|
23160
|
-
const breadcrumb =
|
|
23260
|
+
const [animationState, setAnimationState] = React18.useState("idle");
|
|
23261
|
+
const [isAnimationStarted, setIsAnimationStarted] = React18.useState(false);
|
|
23262
|
+
const containerRef = React18.useRef(null);
|
|
23263
|
+
const breadcrumb = React18.useMemo(() => {
|
|
23161
23264
|
const levels = navigationHistory.map((level) => ({ title: level.title, depth: level.depth }));
|
|
23162
23265
|
return generateBreadcrumb(levels);
|
|
23163
23266
|
}, [navigationHistory]);
|
|
23164
|
-
const navigateToSubmenu =
|
|
23267
|
+
const navigateToSubmenu = React18.useCallback(
|
|
23165
23268
|
(item) => {
|
|
23166
23269
|
if (item.links && item.links.length > 0 && animationState === "idle") {
|
|
23167
23270
|
const newLevel = {
|
|
@@ -23187,7 +23290,7 @@ function MultiLevelPushMenu({
|
|
|
23187
23290
|
},
|
|
23188
23291
|
[navigationHistory, animationState, onNavigate]
|
|
23189
23292
|
);
|
|
23190
|
-
const navigateBack =
|
|
23293
|
+
const navigateBack = React18.useCallback(() => {
|
|
23191
23294
|
if (navigationHistory.length > 1 && animationState === "idle") {
|
|
23192
23295
|
setAnimationState("sliding-backward");
|
|
23193
23296
|
setTimeout(() => {
|
|
@@ -23198,7 +23301,7 @@ function MultiLevelPushMenu({
|
|
|
23198
23301
|
}, 300);
|
|
23199
23302
|
}
|
|
23200
23303
|
}, [navigationHistory, animationState, onNavigate]);
|
|
23201
|
-
const handleItemClick =
|
|
23304
|
+
const handleItemClick = React18.useCallback(
|
|
23202
23305
|
(item, event) => {
|
|
23203
23306
|
if (item.links && item.links.length > 0) {
|
|
23204
23307
|
event?.preventDefault();
|
|
@@ -23333,9 +23436,9 @@ function MultiLevelPushMenu({
|
|
|
23333
23436
|
}) }) });
|
|
23334
23437
|
}
|
|
23335
23438
|
function MobileSearch({ navigation: navigation$1 }) {
|
|
23336
|
-
const [open, setOpen] =
|
|
23439
|
+
const [open, setOpen] = React18__namespace.useState(false);
|
|
23337
23440
|
const router = navigation.useRouter();
|
|
23338
|
-
|
|
23441
|
+
React18__namespace.useEffect(() => {
|
|
23339
23442
|
const down = (e) => {
|
|
23340
23443
|
if (e.key === "k" && (e.metaKey || e.ctrlKey)) {
|
|
23341
23444
|
e.preventDefault();
|
|
@@ -23345,7 +23448,7 @@ function MobileSearch({ navigation: navigation$1 }) {
|
|
|
23345
23448
|
document.addEventListener("keydown", down);
|
|
23346
23449
|
return () => document.removeEventListener("keydown", down);
|
|
23347
23450
|
}, []);
|
|
23348
|
-
const runCommand =
|
|
23451
|
+
const runCommand = React18__namespace.useCallback((command) => {
|
|
23349
23452
|
setOpen(false);
|
|
23350
23453
|
command();
|
|
23351
23454
|
}, []);
|
|
@@ -23383,7 +23486,7 @@ function MobileHeader({
|
|
|
23383
23486
|
version = false,
|
|
23384
23487
|
hide = {}
|
|
23385
23488
|
}) {
|
|
23386
|
-
const [open, setOpen] =
|
|
23489
|
+
const [open, setOpen] = React18.useState(false);
|
|
23387
23490
|
const { search = true, menu = true } = hide;
|
|
23388
23491
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "lg:hidden", children: [
|
|
23389
23492
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -23459,8 +23562,8 @@ function MobileHeader({
|
|
|
23459
23562
|
}
|
|
23460
23563
|
var MOBILE_BREAKPOINT = 768;
|
|
23461
23564
|
function useIsMobile() {
|
|
23462
|
-
const [isMobile, setIsMobile] =
|
|
23463
|
-
|
|
23565
|
+
const [isMobile, setIsMobile] = React18__namespace.useState(void 0);
|
|
23566
|
+
React18__namespace.useEffect(() => {
|
|
23464
23567
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
23465
23568
|
const onChange = () => {
|
|
23466
23569
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -23477,9 +23580,9 @@ var SIDEBAR_WIDTH = "16rem";
|
|
|
23477
23580
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
23478
23581
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
23479
23582
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
23480
|
-
var SidebarContext =
|
|
23583
|
+
var SidebarContext = React18__namespace.createContext(null);
|
|
23481
23584
|
function useSidebar() {
|
|
23482
|
-
const context =
|
|
23585
|
+
const context = React18__namespace.useContext(SidebarContext);
|
|
23483
23586
|
if (!context) {
|
|
23484
23587
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
23485
23588
|
}
|
|
@@ -23495,10 +23598,10 @@ function SidebarProvider({
|
|
|
23495
23598
|
...props
|
|
23496
23599
|
}) {
|
|
23497
23600
|
const isMobile = useIsMobile();
|
|
23498
|
-
const [openMobile, setOpenMobile] =
|
|
23499
|
-
const [_open, _setOpen] =
|
|
23601
|
+
const [openMobile, setOpenMobile] = React18__namespace.useState(false);
|
|
23602
|
+
const [_open, _setOpen] = React18__namespace.useState(defaultOpen);
|
|
23500
23603
|
const open = openProp ?? _open;
|
|
23501
|
-
const setOpen =
|
|
23604
|
+
const setOpen = React18__namespace.useCallback(
|
|
23502
23605
|
(value) => {
|
|
23503
23606
|
const openState = typeof value === "function" ? value(open) : value;
|
|
23504
23607
|
if (setOpenProp) {
|
|
@@ -23510,10 +23613,10 @@ function SidebarProvider({
|
|
|
23510
23613
|
},
|
|
23511
23614
|
[setOpenProp, open]
|
|
23512
23615
|
);
|
|
23513
|
-
const toggleSidebar =
|
|
23616
|
+
const toggleSidebar = React18__namespace.useCallback(() => {
|
|
23514
23617
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
23515
23618
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
23516
|
-
|
|
23619
|
+
React18__namespace.useEffect(() => {
|
|
23517
23620
|
const handleKeyDown = (event) => {
|
|
23518
23621
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
23519
23622
|
event.preventDefault();
|
|
@@ -23524,7 +23627,7 @@ function SidebarProvider({
|
|
|
23524
23627
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
23525
23628
|
}, [toggleSidebar]);
|
|
23526
23629
|
const state = open ? "expanded" : "collapsed";
|
|
23527
|
-
const contextValue =
|
|
23630
|
+
const contextValue = React18__namespace.useMemo(
|
|
23528
23631
|
() => ({
|
|
23529
23632
|
state,
|
|
23530
23633
|
open,
|
|
@@ -23967,7 +24070,7 @@ function SidebarMenuSkeleton({
|
|
|
23967
24070
|
showIcon = false,
|
|
23968
24071
|
...props
|
|
23969
24072
|
}) {
|
|
23970
|
-
const width =
|
|
24073
|
+
const width = React18__namespace.useMemo(() => {
|
|
23971
24074
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
23972
24075
|
}, []);
|
|
23973
24076
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -24046,13 +24149,13 @@ function SidebarMenuSubButton({
|
|
|
24046
24149
|
}
|
|
24047
24150
|
);
|
|
24048
24151
|
}
|
|
24049
|
-
var useIsomorphicLayoutEffect2 = typeof window !== "undefined" ?
|
|
24152
|
+
var useIsomorphicLayoutEffect2 = typeof window !== "undefined" ? React18.useLayoutEffect : React18.useEffect;
|
|
24050
24153
|
function useDisableToc() {
|
|
24051
24154
|
const { setToc } = useToc();
|
|
24052
24155
|
useIsomorphicLayoutEffect2(() => {
|
|
24053
24156
|
setToc(false);
|
|
24054
24157
|
}, [setToc]);
|
|
24055
|
-
|
|
24158
|
+
React18.useEffect(() => {
|
|
24056
24159
|
const raf = requestAnimationFrame(() => {
|
|
24057
24160
|
setToc(false);
|
|
24058
24161
|
});
|
|
@@ -24131,9 +24234,9 @@ function getHeadings(slugify$1 = slugify.slugifyWithCounter()) {
|
|
|
24131
24234
|
|
|
24132
24235
|
// src/hooks/usePageHeadings.ts
|
|
24133
24236
|
function usePageHeadings() {
|
|
24134
|
-
const [headings, setHeadings] =
|
|
24237
|
+
const [headings, setHeadings] = React18.useState([]);
|
|
24135
24238
|
const pathname = navigation.usePathname();
|
|
24136
|
-
|
|
24239
|
+
React18.useEffect(() => {
|
|
24137
24240
|
const timer = setTimeout(() => {
|
|
24138
24241
|
const result = getHeadings();
|
|
24139
24242
|
setHeadings(result);
|
|
@@ -24248,6 +24351,7 @@ exports.ChartStyle = ChartStyle;
|
|
|
24248
24351
|
exports.ChartTooltip = ChartTooltip;
|
|
24249
24352
|
exports.ChartTooltipContent = ChartTooltipContent;
|
|
24250
24353
|
exports.Checkbox = Checkbox;
|
|
24354
|
+
exports.CheckboxSmall = CheckboxSmall;
|
|
24251
24355
|
exports.Code = Code;
|
|
24252
24356
|
exports.CodeDemo = CodeDemo;
|
|
24253
24357
|
exports.CodeHighlight = CodeHighlight;
|