@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.js
CHANGED
|
@@ -7,8 +7,8 @@ import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
|
7
7
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
8
8
|
import * as Headless4 from '@headlessui/react';
|
|
9
9
|
import { PopoverGroup, Popover as Popover$1, PopoverButton, PopoverPanel, Dialog as Dialog$1, DialogPanel } from '@headlessui/react';
|
|
10
|
-
import * as
|
|
11
|
-
import
|
|
10
|
+
import * as React18 from 'react';
|
|
11
|
+
import React18__default, { forwardRef, useEffect, createContext, useRef, useState, Suspense, useId, useMemo, useContext, Fragment as Fragment$1, useCallback, useLayoutEffect, useInsertionEffect, createElement, Component } from 'react';
|
|
12
12
|
import Link10 from 'next/link';
|
|
13
13
|
import * as culori from 'culori';
|
|
14
14
|
import { Slot } from '@radix-ui/react-slot';
|
|
@@ -33,7 +33,7 @@ import { Toaster as Toaster$1, toast } from 'sonner';
|
|
|
33
33
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
34
34
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
35
35
|
import { CircleIcon, ArrowLeft, ArrowRight, MinusIcon, Layers, Hash } from 'lucide-react';
|
|
36
|
-
import * as
|
|
36
|
+
import * as TabsPrimitives from '@radix-ui/react-tabs';
|
|
37
37
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
38
38
|
import { Command as Command$1 } from 'cmdk';
|
|
39
39
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
@@ -69,6 +69,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
69
69
|
});
|
|
70
70
|
var Icons = {
|
|
71
71
|
account_circle: (props) => /* @__PURE__ */ jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ 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" }) }),
|
|
72
|
+
add_circle: (props) => /* @__PURE__ */ jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ 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" }) }),
|
|
72
73
|
add_location: (props) => /* @__PURE__ */ jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ 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" }) }),
|
|
73
74
|
add_photo: (props) => /* @__PURE__ */ jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ 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" }) }),
|
|
74
75
|
add: (props) => /* @__PURE__ */ jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ 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" }) }),
|
|
@@ -108,6 +109,7 @@ var Icons = {
|
|
|
108
109
|
error: (props) => /* @__PURE__ */ jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ 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" }) }),
|
|
109
110
|
exclamation: (props) => /* @__PURE__ */ jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ 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" }) }),
|
|
110
111
|
eye: (props) => /* @__PURE__ */ jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ 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" }) }),
|
|
112
|
+
eye_off: (props) => /* @__PURE__ */ jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ 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" }) }),
|
|
111
113
|
face: (props) => /* @__PURE__ */ jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ 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" }) }),
|
|
112
114
|
favorite: (props) => /* @__PURE__ */ jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ 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" }) }),
|
|
113
115
|
file_open: (props) => /* @__PURE__ */ jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ 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" }) }),
|
|
@@ -172,6 +174,7 @@ var Icons = {
|
|
|
172
174
|
table_view: (props) => /* @__PURE__ */ jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ 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" }) }),
|
|
173
175
|
tablet: (props) => /* @__PURE__ */ jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ 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" }) }),
|
|
174
176
|
toc: (props) => /* @__PURE__ */ jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ 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" }) }),
|
|
177
|
+
tune: (props) => /* @__PURE__ */ jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ 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" }) }),
|
|
175
178
|
unfold_less: (props) => /* @__PURE__ */ jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ 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" }) }),
|
|
176
179
|
unfold_more: (props) => /* @__PURE__ */ jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ 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" }) }),
|
|
177
180
|
upload: (props) => /* @__PURE__ */ jsx("svg", { fill: "currentColor", "data-slot": "icon", viewBox: "0 -960 960 960", ...props, children: /* @__PURE__ */ 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" }) }),
|
|
@@ -1872,7 +1875,7 @@ function Breadcrumbs({
|
|
|
1872
1875
|
});
|
|
1873
1876
|
const shouldCollapse = breadcrumbItems.length > maxItems;
|
|
1874
1877
|
if (!shouldCollapse) {
|
|
1875
|
-
return /* @__PURE__ */ jsx(Breadcrumb, { className: "-ml-1", children: /* @__PURE__ */ jsx(BreadcrumbList, { children: breadcrumbItems.map((item, index) => /* @__PURE__ */ jsxs(
|
|
1878
|
+
return /* @__PURE__ */ jsx(Breadcrumb, { className: "-ml-1", children: /* @__PURE__ */ jsx(BreadcrumbList, { children: breadcrumbItems.map((item, index) => /* @__PURE__ */ jsxs(React18.Fragment, { children: [
|
|
1876
1879
|
/* @__PURE__ */ jsx(BreadcrumbItem, { children: item.isCurrent ? /* @__PURE__ */ jsx(BreadcrumbPage, { children: item.label }) : /* @__PURE__ */ jsx(BreadcrumbLink, { asChild: true, children: /* @__PURE__ */ jsx(Link10, { href: item.path, children: item.label }) }) }),
|
|
1877
1880
|
index < breadcrumbItems.length - 1 && /* @__PURE__ */ jsx(BreadcrumbSeparator, {})
|
|
1878
1881
|
] }, item.path)) }) });
|
|
@@ -1883,7 +1886,7 @@ function Breadcrumbs({
|
|
|
1883
1886
|
const itemsAtEnd = breadcrumbItems.slice(-endItems);
|
|
1884
1887
|
const collapsedItems = breadcrumbItems.slice(startItems, breadcrumbItems.length - endItems);
|
|
1885
1888
|
return /* @__PURE__ */ jsx(Breadcrumb, { children: /* @__PURE__ */ jsxs(BreadcrumbList, { children: [
|
|
1886
|
-
itemsAtStart.map((item, index) => /* @__PURE__ */ jsxs(
|
|
1889
|
+
itemsAtStart.map((item, index) => /* @__PURE__ */ jsxs(React18.Fragment, { children: [
|
|
1887
1890
|
/* @__PURE__ */ jsx(BreadcrumbItem, { children: item.isCurrent ? /* @__PURE__ */ jsx(BreadcrumbPage, { children: item.label }) : /* @__PURE__ */ jsx(BreadcrumbLink, { asChild: true, children: /* @__PURE__ */ jsx(Link10, { href: item.path, children: item.label }) }) }),
|
|
1888
1891
|
index < itemsAtStart.length - 1 && /* @__PURE__ */ jsx(BreadcrumbSeparator, {})
|
|
1889
1892
|
] }, item.path)),
|
|
@@ -1896,7 +1899,7 @@ function Breadcrumbs({
|
|
|
1896
1899
|
/* @__PURE__ */ jsx(DropdownMenuContent, { align: "start", children: collapsedItems.map((item) => /* @__PURE__ */ jsx(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsx(Link10, { href: item.path, children: item.label }) }, item.path)) })
|
|
1897
1900
|
] }) }),
|
|
1898
1901
|
itemsAtEnd.length > 0 && /* @__PURE__ */ jsx(BreadcrumbSeparator, {}),
|
|
1899
|
-
itemsAtEnd.map((item, index) => /* @__PURE__ */ jsxs(
|
|
1902
|
+
itemsAtEnd.map((item, index) => /* @__PURE__ */ jsxs(React18.Fragment, { children: [
|
|
1900
1903
|
/* @__PURE__ */ jsx(BreadcrumbItem, { children: item.isCurrent ? /* @__PURE__ */ jsx(BreadcrumbPage, { children: item.label }) : /* @__PURE__ */ jsx(BreadcrumbLink, { asChild: true, children: /* @__PURE__ */ jsx(Link10, { href: item.path, children: item.label }) }) }),
|
|
1901
1904
|
index < itemsAtEnd.length - 1 && /* @__PURE__ */ jsx(BreadcrumbSeparator, {})
|
|
1902
1905
|
] }, item.path))
|
|
@@ -5839,7 +5842,7 @@ function SegmentedControl({
|
|
|
5839
5842
|
...props
|
|
5840
5843
|
}) {
|
|
5841
5844
|
return /* @__PURE__ */ jsx(
|
|
5842
|
-
|
|
5845
|
+
TabsPrimitives.Root,
|
|
5843
5846
|
{
|
|
5844
5847
|
"data-slot": "tabs",
|
|
5845
5848
|
className: cn("flex flex-col gap-2", className),
|
|
@@ -5852,7 +5855,7 @@ function SegmentedControlList({
|
|
|
5852
5855
|
...props
|
|
5853
5856
|
}) {
|
|
5854
5857
|
return /* @__PURE__ */ jsx(
|
|
5855
|
-
|
|
5858
|
+
TabsPrimitives.List,
|
|
5856
5859
|
{
|
|
5857
5860
|
"data-slot": "segmented-control-list",
|
|
5858
5861
|
className: cn(
|
|
@@ -5868,7 +5871,7 @@ function SegmentedControlTrigger({
|
|
|
5868
5871
|
...props
|
|
5869
5872
|
}) {
|
|
5870
5873
|
return /* @__PURE__ */ jsx(
|
|
5871
|
-
|
|
5874
|
+
TabsPrimitives.Trigger,
|
|
5872
5875
|
{
|
|
5873
5876
|
"data-slot": "segmented-control-trigger",
|
|
5874
5877
|
className: cn(
|
|
@@ -6193,7 +6196,7 @@ function CodeDemoContent({ data, hide = {} }) {
|
|
|
6193
6196
|
acc[`${prefix}${suffix}`] = shade.hex;
|
|
6194
6197
|
return acc;
|
|
6195
6198
|
}, {});
|
|
6196
|
-
const themeValues =
|
|
6199
|
+
const themeValues = React18__default.useMemo(
|
|
6197
6200
|
() => ({
|
|
6198
6201
|
...getShades("primary", primaryColor, themeCategory),
|
|
6199
6202
|
...getShades("accent", accentColor, themeCategory),
|
|
@@ -6201,7 +6204,7 @@ function CodeDemoContent({ data, hide = {} }) {
|
|
|
6201
6204
|
}),
|
|
6202
6205
|
[themeCategory, primaryColor, accentColor, greyColor]
|
|
6203
6206
|
);
|
|
6204
|
-
|
|
6207
|
+
React18__default.useEffect(() => {
|
|
6205
6208
|
const frame2 = iframeRef.current;
|
|
6206
6209
|
if (!frame2) return;
|
|
6207
6210
|
const send = () => {
|
|
@@ -6268,7 +6271,7 @@ function CodeDemoContent({ data, hide = {} }) {
|
|
|
6268
6271
|
const codeItems = getCodeItems(code);
|
|
6269
6272
|
const current = getCurrent(codeItems, tabIndex);
|
|
6270
6273
|
const shouldExpand = getShouldExpand(current.code.trim());
|
|
6271
|
-
const variantLabels =
|
|
6274
|
+
const variantLabels = React18__default.useMemo(() => {
|
|
6272
6275
|
const explicit = data.labels ?? {};
|
|
6273
6276
|
return Object.fromEntries(variants.map((v) => [v, explicit[v] ?? humaniseVariant(v)]));
|
|
6274
6277
|
}, [variants, data]);
|
|
@@ -6388,7 +6391,7 @@ function CodeDemoContent({ data, hide = {} }) {
|
|
|
6388
6391
|
function CodeDemo(props) {
|
|
6389
6392
|
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(CodeDemoLoading, {}), children: /* @__PURE__ */ jsx(CodeDemoContent, { ...props }) });
|
|
6390
6393
|
}
|
|
6391
|
-
var IFrame =
|
|
6394
|
+
var IFrame = React18__default.forwardRef(
|
|
6392
6395
|
({ iframe, isRTL, isDarkMode }, ref) => {
|
|
6393
6396
|
useEffect(() => {
|
|
6394
6397
|
const document2 = ref?.current?.contentDocument;
|
|
@@ -6435,7 +6438,7 @@ function CodePreview({
|
|
|
6435
6438
|
themeValues,
|
|
6436
6439
|
children
|
|
6437
6440
|
}) {
|
|
6438
|
-
const cssVars =
|
|
6441
|
+
const cssVars = React18__default.useMemo(() => {
|
|
6439
6442
|
const withCssVarNames = Object.entries(themeValues).map(([key, value]) => {
|
|
6440
6443
|
const kebab = key.replace(/(\D+)(\d+)/, "$1-$2");
|
|
6441
6444
|
return [`--color-${kebab}`, value];
|
|
@@ -7182,6 +7185,80 @@ function ContextMenuShortcut({ className, ...props }) {
|
|
|
7182
7185
|
}
|
|
7183
7186
|
);
|
|
7184
7187
|
}
|
|
7188
|
+
var CheckboxSmall = React18__default.forwardRef(({ className, checked, ...props }, forwardedRef) => {
|
|
7189
|
+
return /* @__PURE__ */ jsx(
|
|
7190
|
+
CheckboxPrimitive.Root,
|
|
7191
|
+
{
|
|
7192
|
+
ref: forwardedRef,
|
|
7193
|
+
...props,
|
|
7194
|
+
checked,
|
|
7195
|
+
className: cn(
|
|
7196
|
+
// base
|
|
7197
|
+
"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",
|
|
7198
|
+
// text color
|
|
7199
|
+
"dark:text-grey-50 text-white",
|
|
7200
|
+
// background color
|
|
7201
|
+
"dark:bg-grey-950 bg-white",
|
|
7202
|
+
// ring color
|
|
7203
|
+
"ring-grey-300 dark:ring-grey-800",
|
|
7204
|
+
// disabled
|
|
7205
|
+
"data-disabled:bg-grey-100 data-disabled:text-grey-400 data-disabled:ring-grey-300",
|
|
7206
|
+
"dark:data-disabled:bg-grey-800 dark:data-disabled:text-grey-500 dark:data-disabled:ring-grey-700",
|
|
7207
|
+
// checked and enabled
|
|
7208
|
+
"enabled:data-[state=checked]:bg-primary-600 enabled:data-[state=checked]:ring-0 enabled:data-[state=checked]:ring-transparent",
|
|
7209
|
+
// indeterminate
|
|
7210
|
+
"enabled:data-[state=indeterminate]:bg-primary-600 enabled:data-[state=indeterminate]:ring-0 enabled:data-[state=indeterminate]:ring-transparent",
|
|
7211
|
+
// focus
|
|
7212
|
+
focusRing,
|
|
7213
|
+
className
|
|
7214
|
+
),
|
|
7215
|
+
children: /* @__PURE__ */ jsx(CheckboxPrimitive.Indicator, { asChild: true, className: "flex size-full items-center justify-center", children: checked === "indeterminate" ? /* @__PURE__ */ jsx(
|
|
7216
|
+
"svg",
|
|
7217
|
+
{
|
|
7218
|
+
"aria-hidden": "true",
|
|
7219
|
+
width: "16",
|
|
7220
|
+
height: "16",
|
|
7221
|
+
viewBox: "0 0 16 16",
|
|
7222
|
+
fill: "none",
|
|
7223
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7224
|
+
children: /* @__PURE__ */ jsx(
|
|
7225
|
+
"line",
|
|
7226
|
+
{
|
|
7227
|
+
stroke: "currentColor",
|
|
7228
|
+
strokeLinecap: "round",
|
|
7229
|
+
strokeWidth: "2",
|
|
7230
|
+
x1: "4",
|
|
7231
|
+
x2: "12",
|
|
7232
|
+
y1: "8",
|
|
7233
|
+
y2: "8"
|
|
7234
|
+
}
|
|
7235
|
+
)
|
|
7236
|
+
}
|
|
7237
|
+
) : /* @__PURE__ */ jsx(
|
|
7238
|
+
"svg",
|
|
7239
|
+
{
|
|
7240
|
+
"aria-hidden": "true",
|
|
7241
|
+
width: "16",
|
|
7242
|
+
height: "16",
|
|
7243
|
+
viewBox: "0 0 16 16",
|
|
7244
|
+
fill: "none",
|
|
7245
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7246
|
+
children: /* @__PURE__ */ jsx(
|
|
7247
|
+
"path",
|
|
7248
|
+
{
|
|
7249
|
+
d: "M11.2 5.59998L6.79999 9.99998L4.79999 7.99998",
|
|
7250
|
+
stroke: "currentColor",
|
|
7251
|
+
strokeLinecap: "round",
|
|
7252
|
+
strokeLinejoin: "round",
|
|
7253
|
+
strokeWidth: "2"
|
|
7254
|
+
}
|
|
7255
|
+
)
|
|
7256
|
+
}
|
|
7257
|
+
) })
|
|
7258
|
+
}
|
|
7259
|
+
);
|
|
7260
|
+
});
|
|
7261
|
+
CheckboxSmall.displayName = "CheckboxSmall";
|
|
7185
7262
|
function Drawer({ ...props }) {
|
|
7186
7263
|
return /* @__PURE__ */ jsx(Drawer$1.Root, { "data-slot": "drawer", ...props });
|
|
7187
7264
|
}
|
|
@@ -7302,10 +7379,10 @@ function DynamicFavicon({ lightModeFavicon, darkModeFavicon }) {
|
|
|
7302
7379
|
}, [lightModeFavicon, darkModeFavicon]);
|
|
7303
7380
|
return null;
|
|
7304
7381
|
}
|
|
7305
|
-
var ExpandableSearchContext =
|
|
7306
|
-
var ExpandableSearch =
|
|
7307
|
-
const [value, setValue] =
|
|
7308
|
-
const formRef =
|
|
7382
|
+
var ExpandableSearchContext = React18.createContext(null);
|
|
7383
|
+
var ExpandableSearch = React18.forwardRef(({ className, onAction, defaultValue = "", ...props }, ref) => {
|
|
7384
|
+
const [value, setValue] = React18.useState(defaultValue);
|
|
7385
|
+
const formRef = React18.useRef(null);
|
|
7309
7386
|
const handleAction = (e) => {
|
|
7310
7387
|
e.preventDefault();
|
|
7311
7388
|
if (onAction) {
|
|
@@ -7323,10 +7400,10 @@ var ExpandableSearch = React16.forwardRef(({ className, onAction, defaultValue =
|
|
|
7323
7400
|
) });
|
|
7324
7401
|
});
|
|
7325
7402
|
ExpandableSearch.displayName = "ExpandableSearch";
|
|
7326
|
-
var ExpandableSearchField =
|
|
7327
|
-
const context =
|
|
7403
|
+
var ExpandableSearchField = React18.forwardRef(({ className, ...props }, ref) => {
|
|
7404
|
+
const context = React18.useContext(ExpandableSearchContext);
|
|
7328
7405
|
if (!context) throw new Error("ExpandableSearchField must be used within ExpandableSearch");
|
|
7329
|
-
const [isFocused, setIsFocused] =
|
|
7406
|
+
const [isFocused, setIsFocused] = React18.useState(false);
|
|
7330
7407
|
const isActive = context.value.length > 0 || isFocused;
|
|
7331
7408
|
return /* @__PURE__ */ jsxs("div", { className: "relative flex-1", children: [
|
|
7332
7409
|
/* @__PURE__ */ jsx("label", { className: "sr-only", htmlFor: "expandable-search", children: "Search" }),
|
|
@@ -7455,15 +7532,15 @@ function Footer({
|
|
|
7455
7532
|
] });
|
|
7456
7533
|
}
|
|
7457
7534
|
var Form = FormProvider;
|
|
7458
|
-
var FormFieldContext =
|
|
7535
|
+
var FormFieldContext = React18.createContext({});
|
|
7459
7536
|
var FormField = ({
|
|
7460
7537
|
...props
|
|
7461
7538
|
}) => {
|
|
7462
7539
|
return /* @__PURE__ */ jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx(Controller, { ...props }) });
|
|
7463
7540
|
};
|
|
7464
7541
|
var useFormField = () => {
|
|
7465
|
-
const fieldContext =
|
|
7466
|
-
const itemContext =
|
|
7542
|
+
const fieldContext = React18.useContext(FormFieldContext);
|
|
7543
|
+
const itemContext = React18.useContext(FormItemContext);
|
|
7467
7544
|
const { getFieldState } = useFormContext();
|
|
7468
7545
|
const formState = useFormState({ name: fieldContext.name });
|
|
7469
7546
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
@@ -7480,9 +7557,9 @@ var useFormField = () => {
|
|
|
7480
7557
|
...fieldState
|
|
7481
7558
|
};
|
|
7482
7559
|
};
|
|
7483
|
-
var FormItemContext =
|
|
7560
|
+
var FormItemContext = React18.createContext({});
|
|
7484
7561
|
function FormItem({ className, ...props }) {
|
|
7485
|
-
const id3 =
|
|
7562
|
+
const id3 = React18.useId();
|
|
7486
7563
|
return /* @__PURE__ */ jsx(FormItemContext.Provider, { value: { id: id3 }, children: /* @__PURE__ */ jsx("div", { "data-slot": "form-item", className: cn("grid gap-2", className), ...props }) });
|
|
7487
7564
|
}
|
|
7488
7565
|
function FormLabel({ className, ...props }) {
|
|
@@ -7610,7 +7687,7 @@ function Toggle({
|
|
|
7610
7687
|
}
|
|
7611
7688
|
);
|
|
7612
7689
|
}
|
|
7613
|
-
var ToggleGroupContext =
|
|
7690
|
+
var ToggleGroupContext = React18.createContext({
|
|
7614
7691
|
size: "default",
|
|
7615
7692
|
variant: "ghost"
|
|
7616
7693
|
});
|
|
@@ -7643,7 +7720,7 @@ function ToggleGroupItem({
|
|
|
7643
7720
|
size,
|
|
7644
7721
|
...props
|
|
7645
7722
|
}) {
|
|
7646
|
-
const context =
|
|
7723
|
+
const context = React18.useContext(ToggleGroupContext);
|
|
7647
7724
|
return /* @__PURE__ */ jsx(
|
|
7648
7725
|
ToggleGroupPrimitive.Item,
|
|
7649
7726
|
{
|
|
@@ -7741,7 +7818,7 @@ function Heading({
|
|
|
7741
7818
|
|
|
7742
7819
|
// package.json
|
|
7743
7820
|
var package_default = {
|
|
7744
|
-
version: "1.
|
|
7821
|
+
version: "1.54.4"};
|
|
7745
7822
|
function Logo(props) {
|
|
7746
7823
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7747
7824
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "NSW Government" }),
|
|
@@ -7807,9 +7884,9 @@ function ThemeSwitcher() {
|
|
|
7807
7884
|
);
|
|
7808
7885
|
}
|
|
7809
7886
|
function SiteSearch({ navigation }) {
|
|
7810
|
-
const [open, setOpen] =
|
|
7887
|
+
const [open, setOpen] = React18.useState(false);
|
|
7811
7888
|
const router = useRouter();
|
|
7812
|
-
|
|
7889
|
+
React18.useEffect(() => {
|
|
7813
7890
|
const down = (e) => {
|
|
7814
7891
|
if (e.key === "k" && (e.metaKey || e.ctrlKey)) {
|
|
7815
7892
|
e.preventDefault();
|
|
@@ -7819,7 +7896,7 @@ function SiteSearch({ navigation }) {
|
|
|
7819
7896
|
document.addEventListener("keydown", down);
|
|
7820
7897
|
return () => document.removeEventListener("keydown", down);
|
|
7821
7898
|
}, []);
|
|
7822
|
-
const runCommand =
|
|
7899
|
+
const runCommand = React18.useCallback((command) => {
|
|
7823
7900
|
setOpen(false);
|
|
7824
7901
|
command();
|
|
7825
7902
|
}, []);
|
|
@@ -8065,7 +8142,7 @@ var gapStyles = {
|
|
|
8065
8142
|
md: "space-y-2",
|
|
8066
8143
|
lg: "space-y-3"
|
|
8067
8144
|
};
|
|
8068
|
-
var List2 =
|
|
8145
|
+
var List2 = React18.forwardRef(
|
|
8069
8146
|
({ asChild, variant = "disc", size = "md", gap = "md", className, ...props }, ref) => {
|
|
8070
8147
|
const Comp = asChild ? Slot : "ul";
|
|
8071
8148
|
return /* @__PURE__ */ jsx(
|
|
@@ -8080,7 +8157,7 @@ var List2 = React16.forwardRef(
|
|
|
8080
8157
|
}
|
|
8081
8158
|
);
|
|
8082
8159
|
List2.displayName = "List";
|
|
8083
|
-
var ListItem =
|
|
8160
|
+
var ListItem = React18.forwardRef(
|
|
8084
8161
|
({ icon, className, children, ...props }, ref) => {
|
|
8085
8162
|
if (icon) {
|
|
8086
8163
|
return /* @__PURE__ */ jsxs("li", { ref, "data-slot": "list-item", className: cn2("flex gap-2", className), ...props, children: [
|
|
@@ -16854,7 +16931,7 @@ function SidebarLink({ link, pathname, onLinkClick, depth }) {
|
|
|
16854
16931
|
)) }) })
|
|
16855
16932
|
] }) : /* @__PURE__ */ jsx(Link10, { href: link.href, onClick: onLinkClick, className: baseLinkClasses, children: link.title }) });
|
|
16856
16933
|
}
|
|
16857
|
-
var StepIndicator =
|
|
16934
|
+
var StepIndicator = React18.forwardRef(
|
|
16858
16935
|
({ className, array, onLinkClick, ...props }, ref) => {
|
|
16859
16936
|
const pathname = usePathname();
|
|
16860
16937
|
return /* @__PURE__ */ jsx("ul", { role: "list", ref, className: cn("w-full", className), ...props, children: array.map((step, stepIdx) => /* @__PURE__ */ jsx(
|
|
@@ -17129,7 +17206,7 @@ function Slider({
|
|
|
17129
17206
|
max = 100,
|
|
17130
17207
|
...props
|
|
17131
17208
|
}) {
|
|
17132
|
-
const _values =
|
|
17209
|
+
const _values = React18.useMemo(
|
|
17133
17210
|
() => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
|
|
17134
17211
|
[value, defaultValue, min, max]
|
|
17135
17212
|
);
|
|
@@ -17560,70 +17637,96 @@ function TableOfContents({ tableOfContents }) {
|
|
|
17560
17637
|
)
|
|
17561
17638
|
] }) });
|
|
17562
17639
|
}
|
|
17563
|
-
|
|
17564
|
-
return /* @__PURE__ */ jsx(
|
|
17565
|
-
|
|
17566
|
-
|
|
17567
|
-
|
|
17568
|
-
|
|
17569
|
-
|
|
17570
|
-
|
|
17571
|
-
|
|
17572
|
-
|
|
17573
|
-
|
|
17574
|
-
|
|
17575
|
-
|
|
17576
|
-
|
|
17577
|
-
|
|
17578
|
-
|
|
17579
|
-
|
|
17580
|
-
|
|
17581
|
-
|
|
17582
|
-
|
|
17583
|
-
|
|
17584
|
-
|
|
17585
|
-
className
|
|
17586
|
-
),
|
|
17587
|
-
...props
|
|
17588
|
-
}
|
|
17589
|
-
) });
|
|
17590
|
-
}
|
|
17591
|
-
function TabsTrigger({ className, ...props }) {
|
|
17592
|
-
return /* @__PURE__ */ jsx(
|
|
17593
|
-
TabsPrimitive2.Trigger,
|
|
17640
|
+
var Tabs2 = (props) => {
|
|
17641
|
+
return /* @__PURE__ */ jsx(TabsPrimitives.Root, { "tremor-id": "tremor-raw", ...props });
|
|
17642
|
+
};
|
|
17643
|
+
Tabs2.displayName = "Tabs";
|
|
17644
|
+
var TabsListVariantContext = React18__default.createContext("line");
|
|
17645
|
+
var variantStyles2 = {
|
|
17646
|
+
line: cn(
|
|
17647
|
+
// base
|
|
17648
|
+
"flex items-center justify-start border-b",
|
|
17649
|
+
// border color
|
|
17650
|
+
"border-grey-200 dark:border-grey-800"
|
|
17651
|
+
),
|
|
17652
|
+
solid: cn(
|
|
17653
|
+
// base
|
|
17654
|
+
"inline-flex items-center justify-center rounded-md p-1",
|
|
17655
|
+
// background color
|
|
17656
|
+
"bg-grey-100 dark:bg-grey-900"
|
|
17657
|
+
)
|
|
17658
|
+
};
|
|
17659
|
+
var TabsList = React18__default.forwardRef(
|
|
17660
|
+
({ className, variant = "line", children, ...props }, forwardedRef) => /* @__PURE__ */ jsx(
|
|
17661
|
+
TabsPrimitives.List,
|
|
17594
17662
|
{
|
|
17595
|
-
|
|
17596
|
-
className: cn(
|
|
17597
|
-
|
|
17598
|
-
|
|
17599
|
-
"text-grey-800 cursor-pointer border-b-1 border-transparent p-4 text-base font-medium whitespace-nowrap",
|
|
17600
|
-
// Focus
|
|
17601
|
-
"focus:z-10",
|
|
17602
|
-
// Active
|
|
17603
|
-
"data-[state=active]:border-accent-600",
|
|
17604
|
-
// Hover
|
|
17605
|
-
"hover:bg-grey-100 hover:text-grey-850",
|
|
17606
|
-
// Dark mode
|
|
17607
|
-
"dark:text-white",
|
|
17608
|
-
// Dark mode hover
|
|
17609
|
-
"dark:hover:bg-white/10 dark:hover:text-white"
|
|
17610
|
-
],
|
|
17611
|
-
className
|
|
17612
|
-
),
|
|
17613
|
-
...props
|
|
17663
|
+
ref: forwardedRef,
|
|
17664
|
+
className: cn(variantStyles2[variant], className),
|
|
17665
|
+
...props,
|
|
17666
|
+
children: /* @__PURE__ */ jsx(TabsListVariantContext.Provider, { value: variant, children })
|
|
17614
17667
|
}
|
|
17615
|
-
)
|
|
17668
|
+
)
|
|
17669
|
+
);
|
|
17670
|
+
TabsList.displayName = "TabsList";
|
|
17671
|
+
function getVariantStyles(tabVariant) {
|
|
17672
|
+
switch (tabVariant) {
|
|
17673
|
+
case "line":
|
|
17674
|
+
return cn(
|
|
17675
|
+
// base
|
|
17676
|
+
"-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",
|
|
17677
|
+
// text color
|
|
17678
|
+
"text-grey-500 dark:text-grey-500",
|
|
17679
|
+
// hover
|
|
17680
|
+
"hover:text-grey-700 dark:hover:text-grey-400 hover:bg-primary-800/10",
|
|
17681
|
+
// border hover
|
|
17682
|
+
"hover:border-grey-300 dark:hover:border-grey-400",
|
|
17683
|
+
// selected
|
|
17684
|
+
"data-[state=active]:border-accent-600 data-[state=active]:text-grey-800",
|
|
17685
|
+
"dark:data-[state=active]:border-accent-500 dark:data-[state=active]:text-grey-200",
|
|
17686
|
+
// disabled
|
|
17687
|
+
"data-disabled:pointer-events-none",
|
|
17688
|
+
"data-disabled:text-grey-300 dark:data-disabled:text-grey-700"
|
|
17689
|
+
);
|
|
17690
|
+
case "solid":
|
|
17691
|
+
return cn(
|
|
17692
|
+
// base
|
|
17693
|
+
"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",
|
|
17694
|
+
// text color
|
|
17695
|
+
"text-grey-500 dark:text-grey-400",
|
|
17696
|
+
// hover
|
|
17697
|
+
"hover:text-grey-700 dark:hover:text-grey-200",
|
|
17698
|
+
// ring
|
|
17699
|
+
"ring-transparent",
|
|
17700
|
+
// selected
|
|
17701
|
+
"data-[state=active]:bg-white data-[state=active]:text-grey-900 data-[state=active]:shadow-sm",
|
|
17702
|
+
"dark:data-[state=active]:bg-grey-950 dark:data-[state=active]:text-grey-50",
|
|
17703
|
+
// disabled
|
|
17704
|
+
"data-disabled:pointer-events-none data-disabled:text-grey-400 data-disabled:opacity-50 dark:data-disabled:text-grey-600"
|
|
17705
|
+
);
|
|
17706
|
+
}
|
|
17616
17707
|
}
|
|
17617
|
-
|
|
17708
|
+
var TabsTrigger = React18__default.forwardRef(({ className, children, ...props }, forwardedRef) => {
|
|
17709
|
+
const variant = React18__default.useContext(TabsListVariantContext);
|
|
17618
17710
|
return /* @__PURE__ */ jsx(
|
|
17619
|
-
|
|
17711
|
+
TabsPrimitives.Trigger,
|
|
17620
17712
|
{
|
|
17621
|
-
|
|
17622
|
-
className: cn(
|
|
17623
|
-
...props
|
|
17713
|
+
ref: forwardedRef,
|
|
17714
|
+
className: cn(getVariantStyles(variant), focusRing, className),
|
|
17715
|
+
...props,
|
|
17716
|
+
children
|
|
17624
17717
|
}
|
|
17625
17718
|
);
|
|
17626
|
-
}
|
|
17719
|
+
});
|
|
17720
|
+
TabsTrigger.displayName = "TabsTrigger";
|
|
17721
|
+
var TabsContent = React18__default.forwardRef(({ className, ...props }, forwardedRef) => /* @__PURE__ */ jsx(
|
|
17722
|
+
TabsPrimitives.Content,
|
|
17723
|
+
{
|
|
17724
|
+
ref: forwardedRef,
|
|
17725
|
+
className: cn("outline-hidden", focusRing, className),
|
|
17726
|
+
...props
|
|
17727
|
+
}
|
|
17728
|
+
));
|
|
17729
|
+
TabsContent.displayName = "TabsContent";
|
|
17627
17730
|
function Text({ className, trim = "normal", size = 2, label = false, ...props }) {
|
|
17628
17731
|
const textSizeClasses = {
|
|
17629
17732
|
1: "text-[length:var(--font-size-1)] leading-[var(--line-height-28)] tracking-[var(--letter-spacing-0)]",
|
|
@@ -17968,9 +18071,9 @@ function useToc() {
|
|
|
17968
18071
|
return useContext(TocContext);
|
|
17969
18072
|
}
|
|
17970
18073
|
var THEMES = { light: "", dark: ".dark" };
|
|
17971
|
-
var ChartContext =
|
|
18074
|
+
var ChartContext = React18.createContext(null);
|
|
17972
18075
|
function useChart() {
|
|
17973
|
-
const context =
|
|
18076
|
+
const context = React18.useContext(ChartContext);
|
|
17974
18077
|
if (!context) {
|
|
17975
18078
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
17976
18079
|
}
|
|
@@ -17983,7 +18086,7 @@ function ChartContainer({
|
|
|
17983
18086
|
config,
|
|
17984
18087
|
...props
|
|
17985
18088
|
}) {
|
|
17986
|
-
const uniqueId =
|
|
18089
|
+
const uniqueId = React18.useId();
|
|
17987
18090
|
const chartId = `chart-${id3 || uniqueId.replace(/:/g, "")}`;
|
|
17988
18091
|
return /* @__PURE__ */ jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs(
|
|
17989
18092
|
"div",
|
|
@@ -18042,7 +18145,7 @@ function ChartTooltipContent({
|
|
|
18042
18145
|
labelKey
|
|
18043
18146
|
}) {
|
|
18044
18147
|
const { config } = useChart();
|
|
18045
|
-
const tooltipLabel =
|
|
18148
|
+
const tooltipLabel = React18.useMemo(() => {
|
|
18046
18149
|
if (hideLabel || !payload?.length) {
|
|
18047
18150
|
return null;
|
|
18048
18151
|
}
|
|
@@ -18282,7 +18385,7 @@ function hasOnlyOneValueForKey(array, keyToCheck) {
|
|
|
18282
18385
|
return true;
|
|
18283
18386
|
}
|
|
18284
18387
|
var useOnWindowResize = (handler) => {
|
|
18285
|
-
|
|
18388
|
+
React18.useEffect(() => {
|
|
18286
18389
|
const handleResize = () => {
|
|
18287
18390
|
handler();
|
|
18288
18391
|
};
|
|
@@ -18337,9 +18440,9 @@ var LegendItem = ({ name, color: color2, onClick, activeLegend }) => {
|
|
|
18337
18440
|
};
|
|
18338
18441
|
var ScrollButton = ({ icon, onClick, disabled }) => {
|
|
18339
18442
|
const Icon2 = icon;
|
|
18340
|
-
const [isPressed, setIsPressed] =
|
|
18341
|
-
const intervalRef =
|
|
18342
|
-
|
|
18443
|
+
const [isPressed, setIsPressed] = React18__default.useState(false);
|
|
18444
|
+
const intervalRef = React18__default.useRef(null);
|
|
18445
|
+
React18__default.useEffect(() => {
|
|
18343
18446
|
if (isPressed) {
|
|
18344
18447
|
intervalRef.current = setInterval(() => {
|
|
18345
18448
|
onClick?.();
|
|
@@ -18349,7 +18452,7 @@ var ScrollButton = ({ icon, onClick, disabled }) => {
|
|
|
18349
18452
|
}
|
|
18350
18453
|
return () => clearInterval(intervalRef.current);
|
|
18351
18454
|
}, [isPressed, onClick]);
|
|
18352
|
-
|
|
18455
|
+
React18__default.useEffect(() => {
|
|
18353
18456
|
if (disabled) {
|
|
18354
18457
|
clearInterval(intervalRef.current);
|
|
18355
18458
|
setIsPressed(false);
|
|
@@ -18381,7 +18484,7 @@ var ScrollButton = ({ icon, onClick, disabled }) => {
|
|
|
18381
18484
|
}
|
|
18382
18485
|
);
|
|
18383
18486
|
};
|
|
18384
|
-
var Legend4 =
|
|
18487
|
+
var Legend4 = React18__default.forwardRef((props, ref) => {
|
|
18385
18488
|
const {
|
|
18386
18489
|
categories,
|
|
18387
18490
|
colors: colors3 = AvailableChartColors,
|
|
@@ -18391,19 +18494,19 @@ var Legend4 = React16__default.forwardRef((props, ref) => {
|
|
|
18391
18494
|
enableLegendSlider = false,
|
|
18392
18495
|
...other
|
|
18393
18496
|
} = props;
|
|
18394
|
-
const scrollableRef =
|
|
18395
|
-
const scrollButtonsRef =
|
|
18396
|
-
const [hasScroll, setHasScroll] =
|
|
18397
|
-
const [isKeyDowned, setIsKeyDowned] =
|
|
18398
|
-
const intervalRef =
|
|
18399
|
-
const checkScroll =
|
|
18497
|
+
const scrollableRef = React18__default.useRef(null);
|
|
18498
|
+
const scrollButtonsRef = React18__default.useRef(null);
|
|
18499
|
+
const [hasScroll, setHasScroll] = React18__default.useState(null);
|
|
18500
|
+
const [isKeyDowned, setIsKeyDowned] = React18__default.useState(null);
|
|
18501
|
+
const intervalRef = React18__default.useRef(null);
|
|
18502
|
+
const checkScroll = React18__default.useCallback(() => {
|
|
18400
18503
|
const scrollable = scrollableRef?.current;
|
|
18401
18504
|
if (!scrollable) return;
|
|
18402
18505
|
const hasLeftScroll = scrollable.scrollLeft > 0;
|
|
18403
18506
|
const hasRightScroll = scrollable.scrollWidth - scrollable.clientWidth > scrollable.scrollLeft;
|
|
18404
18507
|
setHasScroll({ left: hasLeftScroll, right: hasRightScroll });
|
|
18405
18508
|
}, [setHasScroll]);
|
|
18406
|
-
const scrollToTest =
|
|
18509
|
+
const scrollToTest = React18__default.useCallback(
|
|
18407
18510
|
(direction) => {
|
|
18408
18511
|
const element = scrollableRef?.current;
|
|
18409
18512
|
const scrollButtons = scrollButtonsRef?.current;
|
|
@@ -18421,7 +18524,7 @@ var Legend4 = React16__default.forwardRef((props, ref) => {
|
|
|
18421
18524
|
},
|
|
18422
18525
|
[enableLegendSlider, checkScroll]
|
|
18423
18526
|
);
|
|
18424
|
-
|
|
18527
|
+
React18__default.useEffect(() => {
|
|
18425
18528
|
const keyDownHandler = (key) => {
|
|
18426
18529
|
if (key === "ArrowLeft") {
|
|
18427
18530
|
scrollToTest("left");
|
|
@@ -18450,7 +18553,7 @@ var Legend4 = React16__default.forwardRef((props, ref) => {
|
|
|
18450
18553
|
e.stopPropagation();
|
|
18451
18554
|
setIsKeyDowned(null);
|
|
18452
18555
|
};
|
|
18453
|
-
|
|
18556
|
+
React18__default.useEffect(() => {
|
|
18454
18557
|
const scrollable = scrollableRef?.current;
|
|
18455
18558
|
if (enableLegendSlider) {
|
|
18456
18559
|
checkScroll();
|
|
@@ -18523,7 +18626,7 @@ var Legend4 = React16__default.forwardRef((props, ref) => {
|
|
|
18523
18626
|
});
|
|
18524
18627
|
Legend4.displayName = "Legend";
|
|
18525
18628
|
var ChartLegend2 = ({ payload }, categoryColors, setLegendHeight, activeLegend, onClick, enableLegendSlider, legendPosition, yAxisWidth) => {
|
|
18526
|
-
const legendRef =
|
|
18629
|
+
const legendRef = React18__default.useRef(null);
|
|
18527
18630
|
useOnWindowResize(() => {
|
|
18528
18631
|
const calculateHeight = (height) => height ? Number(height) + 15 : 60;
|
|
18529
18632
|
setLegendHeight(calculateHeight(legendRef.current?.clientHeight));
|
|
@@ -18624,7 +18727,7 @@ var ChartTooltip2 = ({ active, payload, label, valueFormatter }) => {
|
|
|
18624
18727
|
}
|
|
18625
18728
|
return null;
|
|
18626
18729
|
};
|
|
18627
|
-
var AreaChart =
|
|
18730
|
+
var AreaChart = React18__default.forwardRef((props, ref) => {
|
|
18628
18731
|
const {
|
|
18629
18732
|
data = [],
|
|
18630
18733
|
categories = [],
|
|
@@ -18659,16 +18762,16 @@ var AreaChart = React16__default.forwardRef((props, ref) => {
|
|
|
18659
18762
|
} = props;
|
|
18660
18763
|
const CustomTooltip = customTooltip;
|
|
18661
18764
|
const paddingValue = !showXAxis && !showYAxis || startEndOnly && !showYAxis ? 0 : 20;
|
|
18662
|
-
const [legendHeight, setLegendHeight] =
|
|
18663
|
-
const [activeDot, setActiveDot] =
|
|
18664
|
-
const [activeLegend, setActiveLegend] =
|
|
18765
|
+
const [legendHeight, setLegendHeight] = React18__default.useState(60);
|
|
18766
|
+
const [activeDot, setActiveDot] = React18__default.useState(void 0);
|
|
18767
|
+
const [activeLegend, setActiveLegend] = React18__default.useState(void 0);
|
|
18665
18768
|
const categoryColors = constructCategoryColors(categories, colors3);
|
|
18666
18769
|
const yAxisDomain = getYAxisDomain(autoMinValue, minValue, maxValue);
|
|
18667
18770
|
const hasOnValueChange = !!onValueChange;
|
|
18668
18771
|
const stacked = type === "stacked" || type === "percent";
|
|
18669
|
-
const areaId =
|
|
18670
|
-
const prevActiveRef =
|
|
18671
|
-
const prevLabelRef =
|
|
18772
|
+
const areaId = React18__default.useId();
|
|
18773
|
+
const prevActiveRef = React18__default.useRef(void 0);
|
|
18774
|
+
const prevLabelRef = React18__default.useRef(void 0);
|
|
18672
18775
|
const getFillContent = ({
|
|
18673
18776
|
fillType,
|
|
18674
18777
|
activeDot: activeDot2,
|
|
@@ -18869,7 +18972,7 @@ var AreaChart = React16__default.forwardRef((props, ref) => {
|
|
|
18869
18972
|
) : null,
|
|
18870
18973
|
categories.map((category) => {
|
|
18871
18974
|
const categoryId = `${areaId}-${category.replace(/[^a-zA-Z0-9]/g, "")}`;
|
|
18872
|
-
return /* @__PURE__ */ jsxs(
|
|
18975
|
+
return /* @__PURE__ */ jsxs(React18__default.Fragment, { children: [
|
|
18873
18976
|
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx(
|
|
18874
18977
|
"linearGradient",
|
|
18875
18978
|
{
|
|
@@ -18971,7 +19074,7 @@ var AreaChart = React16__default.forwardRef((props, ref) => {
|
|
|
18971
19074
|
index2
|
|
18972
19075
|
);
|
|
18973
19076
|
}
|
|
18974
|
-
return /* @__PURE__ */ jsx(
|
|
19077
|
+
return /* @__PURE__ */ jsx(React18__default.Fragment, {}, index2);
|
|
18975
19078
|
},
|
|
18976
19079
|
name: category,
|
|
18977
19080
|
type: "linear",
|
|
@@ -19096,9 +19199,9 @@ var LegendItem2 = ({ name, color: color2, onClick, activeLegend }) => {
|
|
|
19096
19199
|
};
|
|
19097
19200
|
var ScrollButton2 = ({ icon, onClick, disabled }) => {
|
|
19098
19201
|
const Icon2 = icon;
|
|
19099
|
-
const [isPressed, setIsPressed] =
|
|
19100
|
-
const intervalRef =
|
|
19101
|
-
|
|
19202
|
+
const [isPressed, setIsPressed] = React18__default.useState(false);
|
|
19203
|
+
const intervalRef = React18__default.useRef(null);
|
|
19204
|
+
React18__default.useEffect(() => {
|
|
19102
19205
|
if (isPressed) {
|
|
19103
19206
|
intervalRef.current = setInterval(() => {
|
|
19104
19207
|
onClick?.();
|
|
@@ -19108,7 +19211,7 @@ var ScrollButton2 = ({ icon, onClick, disabled }) => {
|
|
|
19108
19211
|
}
|
|
19109
19212
|
return () => clearInterval(intervalRef.current);
|
|
19110
19213
|
}, [isPressed, onClick]);
|
|
19111
|
-
|
|
19214
|
+
React18__default.useEffect(() => {
|
|
19112
19215
|
if (disabled) {
|
|
19113
19216
|
clearInterval(intervalRef.current);
|
|
19114
19217
|
setIsPressed(false);
|
|
@@ -19140,7 +19243,7 @@ var ScrollButton2 = ({ icon, onClick, disabled }) => {
|
|
|
19140
19243
|
}
|
|
19141
19244
|
);
|
|
19142
19245
|
};
|
|
19143
|
-
var Legend5 =
|
|
19246
|
+
var Legend5 = React18__default.forwardRef((props, ref) => {
|
|
19144
19247
|
const {
|
|
19145
19248
|
categories,
|
|
19146
19249
|
colors: colors3 = AvailableChartColors,
|
|
@@ -19150,19 +19253,19 @@ var Legend5 = React16__default.forwardRef((props, ref) => {
|
|
|
19150
19253
|
enableLegendSlider = false,
|
|
19151
19254
|
...other
|
|
19152
19255
|
} = props;
|
|
19153
|
-
const scrollableRef =
|
|
19154
|
-
const scrollButtonsRef =
|
|
19155
|
-
const [hasScroll, setHasScroll] =
|
|
19156
|
-
const [isKeyDowned, setIsKeyDowned] =
|
|
19157
|
-
const intervalRef =
|
|
19158
|
-
const checkScroll =
|
|
19256
|
+
const scrollableRef = React18__default.useRef(null);
|
|
19257
|
+
const scrollButtonsRef = React18__default.useRef(null);
|
|
19258
|
+
const [hasScroll, setHasScroll] = React18__default.useState(null);
|
|
19259
|
+
const [isKeyDowned, setIsKeyDowned] = React18__default.useState(null);
|
|
19260
|
+
const intervalRef = React18__default.useRef(null);
|
|
19261
|
+
const checkScroll = React18__default.useCallback(() => {
|
|
19159
19262
|
const scrollable = scrollableRef?.current;
|
|
19160
19263
|
if (!scrollable) return;
|
|
19161
19264
|
const hasLeftScroll = scrollable.scrollLeft > 0;
|
|
19162
19265
|
const hasRightScroll = scrollable.scrollWidth - scrollable.clientWidth > scrollable.scrollLeft;
|
|
19163
19266
|
setHasScroll({ left: hasLeftScroll, right: hasRightScroll });
|
|
19164
19267
|
}, [setHasScroll]);
|
|
19165
|
-
const scrollToTest =
|
|
19268
|
+
const scrollToTest = React18__default.useCallback(
|
|
19166
19269
|
(direction) => {
|
|
19167
19270
|
const element = scrollableRef?.current;
|
|
19168
19271
|
const scrollButtons = scrollButtonsRef?.current;
|
|
@@ -19180,7 +19283,7 @@ var Legend5 = React16__default.forwardRef((props, ref) => {
|
|
|
19180
19283
|
},
|
|
19181
19284
|
[enableLegendSlider, checkScroll]
|
|
19182
19285
|
);
|
|
19183
|
-
|
|
19286
|
+
React18__default.useEffect(() => {
|
|
19184
19287
|
const keyDownHandler = (key) => {
|
|
19185
19288
|
if (key === "ArrowLeft") {
|
|
19186
19289
|
scrollToTest("left");
|
|
@@ -19209,7 +19312,7 @@ var Legend5 = React16__default.forwardRef((props, ref) => {
|
|
|
19209
19312
|
e.stopPropagation();
|
|
19210
19313
|
setIsKeyDowned(null);
|
|
19211
19314
|
};
|
|
19212
|
-
|
|
19315
|
+
React18__default.useEffect(() => {
|
|
19213
19316
|
const scrollable = scrollableRef?.current;
|
|
19214
19317
|
if (enableLegendSlider) {
|
|
19215
19318
|
checkScroll();
|
|
@@ -19282,7 +19385,7 @@ var Legend5 = React16__default.forwardRef((props, ref) => {
|
|
|
19282
19385
|
});
|
|
19283
19386
|
Legend5.displayName = "Legend";
|
|
19284
19387
|
var ChartLegend3 = ({ payload }, categoryColors, setLegendHeight, activeLegend, onClick, enableLegendSlider, legendPosition, yAxisWidth) => {
|
|
19285
|
-
const legendRef =
|
|
19388
|
+
const legendRef = React18__default.useRef(null);
|
|
19286
19389
|
useOnWindowResize(() => {
|
|
19287
19390
|
const calculateHeight = (height) => height ? Number(height) + 15 : 60;
|
|
19288
19391
|
setLegendHeight(calculateHeight(legendRef.current?.clientHeight));
|
|
@@ -19382,7 +19485,7 @@ var ChartTooltip3 = ({ active, payload, label, valueFormatter }) => {
|
|
|
19382
19485
|
}
|
|
19383
19486
|
return null;
|
|
19384
19487
|
};
|
|
19385
|
-
var BarChart =
|
|
19488
|
+
var BarChart = React18__default.forwardRef((props, forwardedRef) => {
|
|
19386
19489
|
const {
|
|
19387
19490
|
data = [],
|
|
19388
19491
|
categories = [],
|
|
@@ -19417,15 +19520,15 @@ var BarChart = React16__default.forwardRef((props, forwardedRef) => {
|
|
|
19417
19520
|
} = props;
|
|
19418
19521
|
const CustomTooltip = customTooltip;
|
|
19419
19522
|
const paddingValue = !showXAxis && !showYAxis || startEndOnly && !showYAxis ? 0 : 20;
|
|
19420
|
-
const [legendHeight, setLegendHeight] =
|
|
19421
|
-
const [activeLegend, setActiveLegend] =
|
|
19523
|
+
const [legendHeight, setLegendHeight] = React18__default.useState(60);
|
|
19524
|
+
const [activeLegend, setActiveLegend] = React18__default.useState(void 0);
|
|
19422
19525
|
const categoryColors = constructCategoryColors(categories, colors3);
|
|
19423
|
-
const [activeBar, setActiveBar] =
|
|
19526
|
+
const [activeBar, setActiveBar] = React18__default.useState(void 0);
|
|
19424
19527
|
const yAxisDomain = getYAxisDomain(autoMinValue, minValue, maxValue);
|
|
19425
19528
|
const hasOnValueChange = !!onValueChange;
|
|
19426
19529
|
const stacked = type === "stacked" || type === "percent";
|
|
19427
|
-
const prevActiveRef =
|
|
19428
|
-
const prevLabelRef =
|
|
19530
|
+
const prevActiveRef = React18__default.useRef(void 0);
|
|
19531
|
+
const prevLabelRef = React18__default.useRef(void 0);
|
|
19429
19532
|
function valueToPercent(value) {
|
|
19430
19533
|
return `${(value * 100).toFixed(0)}%`;
|
|
19431
19534
|
}
|
|
@@ -19673,7 +19776,7 @@ function BarListInner({
|
|
|
19673
19776
|
...props
|
|
19674
19777
|
}, forwardedRef) {
|
|
19675
19778
|
const Component2 = onValueChange ? "button" : "div";
|
|
19676
|
-
const sortedData =
|
|
19779
|
+
const sortedData = React18__default.useMemo(() => {
|
|
19677
19780
|
if (sortOrder === "none") {
|
|
19678
19781
|
return data;
|
|
19679
19782
|
}
|
|
@@ -19681,7 +19784,7 @@ function BarListInner({
|
|
|
19681
19784
|
return sortOrder === "ascending" ? a.value - b.value : b.value - a.value;
|
|
19682
19785
|
});
|
|
19683
19786
|
}, [data, sortOrder]);
|
|
19684
|
-
const widths =
|
|
19787
|
+
const widths = React18__default.useMemo(() => {
|
|
19685
19788
|
const maxValue = Math.max(...sortedData.map((item) => item.value), 0);
|
|
19686
19789
|
return sortedData.map(
|
|
19687
19790
|
(item) => item.value === 0 ? 0 : Math.max(item.value / maxValue * 100, 2)
|
|
@@ -19795,8 +19898,8 @@ function BarListInner({
|
|
|
19795
19898
|
);
|
|
19796
19899
|
}
|
|
19797
19900
|
BarListInner.displayName = "BarList";
|
|
19798
|
-
var BarList =
|
|
19799
|
-
var Tooltip5 =
|
|
19901
|
+
var BarList = React18__default.forwardRef(BarListInner);
|
|
19902
|
+
var Tooltip5 = React18__default.forwardRef(
|
|
19800
19903
|
({
|
|
19801
19904
|
children,
|
|
19802
19905
|
className,
|
|
@@ -19889,7 +19992,7 @@ var formatNumber = (num) => {
|
|
|
19889
19992
|
return num.toFixed(1);
|
|
19890
19993
|
};
|
|
19891
19994
|
var BarLabels = ({ values }) => {
|
|
19892
|
-
const sumValues =
|
|
19995
|
+
const sumValues = React18__default.useMemo(() => sumNumericArray(values), [values]);
|
|
19893
19996
|
let prefixSum = 0;
|
|
19894
19997
|
let sumConsecutiveHiddenLabels = 0;
|
|
19895
19998
|
return /* @__PURE__ */ jsxs(
|
|
@@ -19923,20 +20026,20 @@ var BarLabels = ({ values }) => {
|
|
|
19923
20026
|
}
|
|
19924
20027
|
);
|
|
19925
20028
|
};
|
|
19926
|
-
var CategoryBar =
|
|
20029
|
+
var CategoryBar = React18__default.forwardRef(
|
|
19927
20030
|
({ values = [], colors: colors3 = AvailableChartColors, marker, showLabels = true, className, ...props }, forwardedRef) => {
|
|
19928
|
-
const markerBgColor =
|
|
20031
|
+
const markerBgColor = React18__default.useMemo(
|
|
19929
20032
|
() => getMarkerBgColor(marker?.value, values, colors3),
|
|
19930
20033
|
[marker, values, colors3]
|
|
19931
20034
|
);
|
|
19932
|
-
const maxValue =
|
|
19933
|
-
const adjustedMarkerValue =
|
|
20035
|
+
const maxValue = React18__default.useMemo(() => sumNumericArray(values), [values]);
|
|
20036
|
+
const adjustedMarkerValue = React18__default.useMemo(() => {
|
|
19934
20037
|
if (marker === void 0) return void 0;
|
|
19935
20038
|
if (marker.value < 0) return 0;
|
|
19936
20039
|
if (marker.value > maxValue) return maxValue;
|
|
19937
20040
|
return marker.value;
|
|
19938
20041
|
}, [marker, maxValue]);
|
|
19939
|
-
const markerPositionLeft =
|
|
20042
|
+
const markerPositionLeft = React18__default.useMemo(
|
|
19940
20043
|
() => getPositionLeft(adjustedMarkerValue, maxValue),
|
|
19941
20044
|
[adjustedMarkerValue, maxValue]
|
|
19942
20045
|
);
|
|
@@ -20096,9 +20199,9 @@ var LegendItem3 = ({ name, color: color2, onClick, activeLegend, chartType }) =>
|
|
|
20096
20199
|
};
|
|
20097
20200
|
var ScrollButton3 = ({ icon, onClick, disabled }) => {
|
|
20098
20201
|
const Icon2 = icon;
|
|
20099
|
-
const [isPressed, setIsPressed] =
|
|
20100
|
-
const intervalRef =
|
|
20101
|
-
|
|
20202
|
+
const [isPressed, setIsPressed] = React18__default.useState(false);
|
|
20203
|
+
const intervalRef = React18__default.useRef(null);
|
|
20204
|
+
React18__default.useEffect(() => {
|
|
20102
20205
|
if (isPressed) {
|
|
20103
20206
|
intervalRef.current = setInterval(() => {
|
|
20104
20207
|
onClick?.();
|
|
@@ -20108,7 +20211,7 @@ var ScrollButton3 = ({ icon, onClick, disabled }) => {
|
|
|
20108
20211
|
}
|
|
20109
20212
|
return () => clearInterval(intervalRef.current);
|
|
20110
20213
|
}, [isPressed, onClick]);
|
|
20111
|
-
|
|
20214
|
+
React18__default.useEffect(() => {
|
|
20112
20215
|
if (disabled) {
|
|
20113
20216
|
clearInterval(intervalRef.current);
|
|
20114
20217
|
setIsPressed(false);
|
|
@@ -20140,7 +20243,7 @@ var ScrollButton3 = ({ icon, onClick, disabled }) => {
|
|
|
20140
20243
|
}
|
|
20141
20244
|
);
|
|
20142
20245
|
};
|
|
20143
|
-
var Legend6 =
|
|
20246
|
+
var Legend6 = React18__default.forwardRef((props, ref) => {
|
|
20144
20247
|
const {
|
|
20145
20248
|
categories,
|
|
20146
20249
|
barCategoryColors,
|
|
@@ -20151,18 +20254,18 @@ var Legend6 = React16__default.forwardRef((props, ref) => {
|
|
|
20151
20254
|
className,
|
|
20152
20255
|
...other
|
|
20153
20256
|
} = props;
|
|
20154
|
-
const scrollableRef =
|
|
20155
|
-
const [hasScroll, setHasScroll] =
|
|
20156
|
-
const [isKeyDowned, setIsKeyDowned] =
|
|
20157
|
-
const intervalRef =
|
|
20158
|
-
const checkScroll =
|
|
20257
|
+
const scrollableRef = React18__default.useRef(null);
|
|
20258
|
+
const [hasScroll, setHasScroll] = React18__default.useState(null);
|
|
20259
|
+
const [isKeyDowned, setIsKeyDowned] = React18__default.useState(null);
|
|
20260
|
+
const intervalRef = React18__default.useRef(null);
|
|
20261
|
+
const checkScroll = React18__default.useCallback(() => {
|
|
20159
20262
|
const scrollable = scrollableRef?.current;
|
|
20160
20263
|
if (!scrollable) return;
|
|
20161
20264
|
const hasLeftScroll = scrollable.scrollLeft > 0;
|
|
20162
20265
|
const hasRightScroll = scrollable.scrollWidth - scrollable.clientWidth > scrollable.scrollLeft;
|
|
20163
20266
|
setHasScroll({ left: hasLeftScroll, right: hasRightScroll });
|
|
20164
20267
|
}, [setHasScroll]);
|
|
20165
|
-
const scrollToTest =
|
|
20268
|
+
const scrollToTest = React18__default.useCallback(
|
|
20166
20269
|
(direction) => {
|
|
20167
20270
|
const element = scrollableRef?.current;
|
|
20168
20271
|
const width = element?.clientWidth ?? 0;
|
|
@@ -20178,7 +20281,7 @@ var Legend6 = React16__default.forwardRef((props, ref) => {
|
|
|
20178
20281
|
},
|
|
20179
20282
|
[enableLegendSlider, checkScroll]
|
|
20180
20283
|
);
|
|
20181
|
-
|
|
20284
|
+
React18__default.useEffect(() => {
|
|
20182
20285
|
const keyDownHandler = (key) => {
|
|
20183
20286
|
if (key === "ArrowLeft") {
|
|
20184
20287
|
scrollToTest("left");
|
|
@@ -20207,7 +20310,7 @@ var Legend6 = React16__default.forwardRef((props, ref) => {
|
|
|
20207
20310
|
e.stopPropagation();
|
|
20208
20311
|
setIsKeyDowned(null);
|
|
20209
20312
|
};
|
|
20210
|
-
|
|
20313
|
+
React18__default.useEffect(() => {
|
|
20211
20314
|
const scrollable = scrollableRef?.current;
|
|
20212
20315
|
if (enableLegendSlider) {
|
|
20213
20316
|
checkScroll();
|
|
@@ -20284,7 +20387,7 @@ var Legend6 = React16__default.forwardRef((props, ref) => {
|
|
|
20284
20387
|
});
|
|
20285
20388
|
Legend6.displayName = "Legend";
|
|
20286
20389
|
var ChartLegend4 = ({ payload }, barCategoryColors, lineCategoryColors, setLegendHeight, activeLegend, onClick, enableLegendSlider, legendPosition, barYAxisWidth, lineYAxisWidth) => {
|
|
20287
|
-
const legendRef =
|
|
20390
|
+
const legendRef = React18__default.useRef(null);
|
|
20288
20391
|
useOnWindowResize(() => {
|
|
20289
20392
|
const calculateHeight = (height) => height ? Number(height) + 15 : 60;
|
|
20290
20393
|
setLegendHeight(calculateHeight(legendRef.current?.clientHeight));
|
|
@@ -20403,7 +20506,7 @@ var ChartTooltip4 = ({
|
|
|
20403
20506
|
}
|
|
20404
20507
|
return null;
|
|
20405
20508
|
};
|
|
20406
|
-
var ComboChart =
|
|
20509
|
+
var ComboChart = React18__default.forwardRef((props, forwardedRef) => {
|
|
20407
20510
|
const defaultSeries = {
|
|
20408
20511
|
categories: [],
|
|
20409
20512
|
colors: AvailableChartColors,
|
|
@@ -20448,11 +20551,11 @@ var ComboChart = React16__default.forwardRef((props, forwardedRef) => {
|
|
|
20448
20551
|
const mergedLineSeries = { ...defaultLineSeries, ...lineSeries };
|
|
20449
20552
|
const CustomTooltip = customTooltip;
|
|
20450
20553
|
const paddingValue = !showXAxis && !mergedBarSeries.showYAxis && enableBiaxial && !mergedLineSeries.showYAxis || startEndOnly && !mergedBarSeries.showYAxis && enableBiaxial && !mergedLineSeries.showYAxis ? 0 : 20;
|
|
20451
|
-
const [legendHeight, setLegendHeight] =
|
|
20452
|
-
const [activeDot, setActiveDot] =
|
|
20453
|
-
const [activeLegend, setActiveLegend] =
|
|
20454
|
-
const prevActiveRef =
|
|
20455
|
-
const prevLabelRef =
|
|
20554
|
+
const [legendHeight, setLegendHeight] = React18__default.useState(60);
|
|
20555
|
+
const [activeDot, setActiveDot] = React18__default.useState(void 0);
|
|
20556
|
+
const [activeLegend, setActiveLegend] = React18__default.useState(void 0);
|
|
20557
|
+
const prevActiveRef = React18__default.useRef(void 0);
|
|
20558
|
+
const prevLabelRef = React18__default.useRef(void 0);
|
|
20456
20559
|
const barCategoryColors = constructCategoryColors(
|
|
20457
20560
|
mergedBarSeries.categories,
|
|
20458
20561
|
mergedBarSeries.colors ?? AvailableChartColors
|
|
@@ -20461,7 +20564,7 @@ var ComboChart = React16__default.forwardRef((props, forwardedRef) => {
|
|
|
20461
20564
|
mergedLineSeries.categories,
|
|
20462
20565
|
mergedLineSeries.colors ?? AvailableChartColors
|
|
20463
20566
|
);
|
|
20464
|
-
const [activeBar, setActiveBar] =
|
|
20567
|
+
const [activeBar, setActiveBar] = React18__default.useState(void 0);
|
|
20465
20568
|
const barYAxisDomain = getYAxisDomain(
|
|
20466
20569
|
mergedBarSeries.autoMinValue ?? false,
|
|
20467
20570
|
mergedBarSeries.minValue,
|
|
@@ -20861,7 +20964,7 @@ var ComboChart = React16__default.forwardRef((props, forwardedRef) => {
|
|
|
20861
20964
|
index2
|
|
20862
20965
|
);
|
|
20863
20966
|
}
|
|
20864
|
-
return /* @__PURE__ */ jsx(
|
|
20967
|
+
return /* @__PURE__ */ jsx(React18__default.Fragment, {}, index2);
|
|
20865
20968
|
},
|
|
20866
20969
|
name: category,
|
|
20867
20970
|
type: "linear",
|
|
@@ -20969,7 +21072,7 @@ var renderInactiveShape = (props) => {
|
|
|
20969
21072
|
}
|
|
20970
21073
|
);
|
|
20971
21074
|
};
|
|
20972
|
-
var DonutChart =
|
|
21075
|
+
var DonutChart = React18__default.forwardRef(
|
|
20973
21076
|
({
|
|
20974
21077
|
data = [],
|
|
20975
21078
|
value,
|
|
@@ -20987,13 +21090,13 @@ var DonutChart = React16__default.forwardRef(
|
|
|
20987
21090
|
...other
|
|
20988
21091
|
}, forwardedRef) => {
|
|
20989
21092
|
const CustomTooltip = customTooltip;
|
|
20990
|
-
const [activeIndex, setActiveIndex] =
|
|
21093
|
+
const [activeIndex, setActiveIndex] = React18__default.useState(void 0);
|
|
20991
21094
|
const isDonut = variant === "donut";
|
|
20992
21095
|
const parsedLabelInput = parseLabelInput(label, valueFormatter, data, value);
|
|
20993
21096
|
const categories = Array.from(new Set(data.map((item) => item[category])));
|
|
20994
21097
|
const categoryColors = constructCategoryColors(categories, colors3);
|
|
20995
|
-
const prevActiveRef =
|
|
20996
|
-
const prevCategoryRef =
|
|
21098
|
+
const prevActiveRef = React18__default.useRef(void 0);
|
|
21099
|
+
const prevCategoryRef = React18__default.useRef(void 0);
|
|
20997
21100
|
const handleShapeClick = (data2, index, event) => {
|
|
20998
21101
|
event.stopPropagation();
|
|
20999
21102
|
if (!onValueChange) return;
|
|
@@ -21148,9 +21251,9 @@ var LegendItem4 = ({ name, color: color2, onClick, activeLegend }) => {
|
|
|
21148
21251
|
};
|
|
21149
21252
|
var ScrollButton4 = ({ icon, onClick, disabled }) => {
|
|
21150
21253
|
const Icon2 = icon;
|
|
21151
|
-
const [isPressed, setIsPressed] =
|
|
21152
|
-
const intervalRef =
|
|
21153
|
-
|
|
21254
|
+
const [isPressed, setIsPressed] = React18__default.useState(false);
|
|
21255
|
+
const intervalRef = React18__default.useRef(null);
|
|
21256
|
+
React18__default.useEffect(() => {
|
|
21154
21257
|
if (isPressed) {
|
|
21155
21258
|
intervalRef.current = setInterval(() => {
|
|
21156
21259
|
onClick?.();
|
|
@@ -21160,7 +21263,7 @@ var ScrollButton4 = ({ icon, onClick, disabled }) => {
|
|
|
21160
21263
|
}
|
|
21161
21264
|
return () => clearInterval(intervalRef.current);
|
|
21162
21265
|
}, [isPressed, onClick]);
|
|
21163
|
-
|
|
21266
|
+
React18__default.useEffect(() => {
|
|
21164
21267
|
if (disabled) {
|
|
21165
21268
|
clearInterval(intervalRef.current);
|
|
21166
21269
|
setIsPressed(false);
|
|
@@ -21192,7 +21295,7 @@ var ScrollButton4 = ({ icon, onClick, disabled }) => {
|
|
|
21192
21295
|
}
|
|
21193
21296
|
);
|
|
21194
21297
|
};
|
|
21195
|
-
var Legend7 =
|
|
21298
|
+
var Legend7 = React18__default.forwardRef((props, ref) => {
|
|
21196
21299
|
const {
|
|
21197
21300
|
categories,
|
|
21198
21301
|
colors: colors3 = AvailableChartColors,
|
|
@@ -21202,19 +21305,19 @@ var Legend7 = React16__default.forwardRef((props, ref) => {
|
|
|
21202
21305
|
enableLegendSlider = false,
|
|
21203
21306
|
...other
|
|
21204
21307
|
} = props;
|
|
21205
|
-
const scrollableRef =
|
|
21206
|
-
const scrollButtonsRef =
|
|
21207
|
-
const [hasScroll, setHasScroll] =
|
|
21208
|
-
const [isKeyDowned, setIsKeyDowned] =
|
|
21209
|
-
const intervalRef =
|
|
21210
|
-
const checkScroll =
|
|
21308
|
+
const scrollableRef = React18__default.useRef(null);
|
|
21309
|
+
const scrollButtonsRef = React18__default.useRef(null);
|
|
21310
|
+
const [hasScroll, setHasScroll] = React18__default.useState(null);
|
|
21311
|
+
const [isKeyDowned, setIsKeyDowned] = React18__default.useState(null);
|
|
21312
|
+
const intervalRef = React18__default.useRef(null);
|
|
21313
|
+
const checkScroll = React18__default.useCallback(() => {
|
|
21211
21314
|
const scrollable = scrollableRef?.current;
|
|
21212
21315
|
if (!scrollable) return;
|
|
21213
21316
|
const hasLeftScroll = scrollable.scrollLeft > 0;
|
|
21214
21317
|
const hasRightScroll = scrollable.scrollWidth - scrollable.clientWidth > scrollable.scrollLeft;
|
|
21215
21318
|
setHasScroll({ left: hasLeftScroll, right: hasRightScroll });
|
|
21216
21319
|
}, [setHasScroll]);
|
|
21217
|
-
const scrollToTest =
|
|
21320
|
+
const scrollToTest = React18__default.useCallback(
|
|
21218
21321
|
(direction) => {
|
|
21219
21322
|
const element = scrollableRef?.current;
|
|
21220
21323
|
const scrollButtons = scrollButtonsRef?.current;
|
|
@@ -21232,7 +21335,7 @@ var Legend7 = React16__default.forwardRef((props, ref) => {
|
|
|
21232
21335
|
},
|
|
21233
21336
|
[enableLegendSlider, checkScroll]
|
|
21234
21337
|
);
|
|
21235
|
-
|
|
21338
|
+
React18__default.useEffect(() => {
|
|
21236
21339
|
const keyDownHandler = (key) => {
|
|
21237
21340
|
if (key === "ArrowLeft") {
|
|
21238
21341
|
scrollToTest("left");
|
|
@@ -21261,7 +21364,7 @@ var Legend7 = React16__default.forwardRef((props, ref) => {
|
|
|
21261
21364
|
e.stopPropagation();
|
|
21262
21365
|
setIsKeyDowned(null);
|
|
21263
21366
|
};
|
|
21264
|
-
|
|
21367
|
+
React18__default.useEffect(() => {
|
|
21265
21368
|
const scrollable = scrollableRef?.current;
|
|
21266
21369
|
if (enableLegendSlider) {
|
|
21267
21370
|
checkScroll();
|
|
@@ -21334,7 +21437,7 @@ var Legend7 = React16__default.forwardRef((props, ref) => {
|
|
|
21334
21437
|
});
|
|
21335
21438
|
Legend7.displayName = "Legend";
|
|
21336
21439
|
var ChartLegend5 = ({ payload }, categoryColors, setLegendHeight, activeLegend, onClick, enableLegendSlider, legendPosition, yAxisWidth) => {
|
|
21337
|
-
const legendRef =
|
|
21440
|
+
const legendRef = React18__default.useRef(null);
|
|
21338
21441
|
useOnWindowResize(() => {
|
|
21339
21442
|
const calculateHeight = (height) => height ? Number(height) + 15 : 60;
|
|
21340
21443
|
setLegendHeight(calculateHeight(legendRef.current?.clientHeight));
|
|
@@ -21436,7 +21539,7 @@ var ChartTooltip6 = ({ active, payload, label, valueFormatter }) => {
|
|
|
21436
21539
|
}
|
|
21437
21540
|
return null;
|
|
21438
21541
|
};
|
|
21439
|
-
var LineChart =
|
|
21542
|
+
var LineChart = React18__default.forwardRef((props, ref) => {
|
|
21440
21543
|
const {
|
|
21441
21544
|
data = [],
|
|
21442
21545
|
categories = [],
|
|
@@ -21469,14 +21572,14 @@ var LineChart = React16__default.forwardRef((props, ref) => {
|
|
|
21469
21572
|
} = props;
|
|
21470
21573
|
const CustomTooltip = customTooltip;
|
|
21471
21574
|
const paddingValue = !showXAxis && !showYAxis || startEndOnly && !showYAxis ? 0 : 20;
|
|
21472
|
-
const [legendHeight, setLegendHeight] =
|
|
21473
|
-
const [activeDot, setActiveDot] =
|
|
21474
|
-
const [activeLegend, setActiveLegend] =
|
|
21575
|
+
const [legendHeight, setLegendHeight] = React18__default.useState(60);
|
|
21576
|
+
const [activeDot, setActiveDot] = React18__default.useState(void 0);
|
|
21577
|
+
const [activeLegend, setActiveLegend] = React18__default.useState(void 0);
|
|
21475
21578
|
const categoryColors = constructCategoryColors(categories, colors3);
|
|
21476
21579
|
const yAxisDomain = getYAxisDomain(autoMinValue, minValue, maxValue);
|
|
21477
21580
|
const hasOnValueChange = !!onValueChange;
|
|
21478
|
-
const prevActiveRef =
|
|
21479
|
-
const prevLabelRef =
|
|
21581
|
+
const prevActiveRef = React18__default.useRef(void 0);
|
|
21582
|
+
const prevLabelRef = React18__default.useRef(void 0);
|
|
21480
21583
|
function onDotClick(itemData, event) {
|
|
21481
21584
|
event.stopPropagation();
|
|
21482
21585
|
if (!hasOnValueChange) return;
|
|
@@ -21729,7 +21832,7 @@ var LineChart = React16__default.forwardRef((props, ref) => {
|
|
|
21729
21832
|
index2
|
|
21730
21833
|
);
|
|
21731
21834
|
}
|
|
21732
|
-
return /* @__PURE__ */ jsx(
|
|
21835
|
+
return /* @__PURE__ */ jsx(React18__default.Fragment, {}, index2);
|
|
21733
21836
|
},
|
|
21734
21837
|
name: category,
|
|
21735
21838
|
type: "linear",
|
|
@@ -21803,7 +21906,7 @@ var progressBarVariants = tv({
|
|
|
21803
21906
|
variant: "default"
|
|
21804
21907
|
}
|
|
21805
21908
|
});
|
|
21806
|
-
var ProgressBar =
|
|
21909
|
+
var ProgressBar = React18__default.forwardRef(
|
|
21807
21910
|
({
|
|
21808
21911
|
value = 0,
|
|
21809
21912
|
max = 100,
|
|
@@ -21891,7 +21994,7 @@ var progressCircleVariants = tv({
|
|
|
21891
21994
|
variant: "default"
|
|
21892
21995
|
}
|
|
21893
21996
|
});
|
|
21894
|
-
var ProgressCircle =
|
|
21997
|
+
var ProgressCircle = React18__default.forwardRef(
|
|
21895
21998
|
({
|
|
21896
21999
|
value = 0,
|
|
21897
22000
|
max = 100,
|
|
@@ -21973,7 +22076,7 @@ var ProgressCircle = React16__default.forwardRef(
|
|
|
21973
22076
|
}
|
|
21974
22077
|
);
|
|
21975
22078
|
ProgressCircle.displayName = "ProgressCircle";
|
|
21976
|
-
var SparkAreaChart =
|
|
22079
|
+
var SparkAreaChart = React18__default.forwardRef(
|
|
21977
22080
|
(props, forwardedRef) => {
|
|
21978
22081
|
const {
|
|
21979
22082
|
data = [],
|
|
@@ -21992,7 +22095,7 @@ var SparkAreaChart = React16__default.forwardRef(
|
|
|
21992
22095
|
const categoryColors = constructCategoryColors(categories, colors3);
|
|
21993
22096
|
const yAxisDomain = getYAxisDomain(autoMinValue, minValue, maxValue);
|
|
21994
22097
|
const stacked = type === "stacked" || type === "percent";
|
|
21995
|
-
const areaId =
|
|
22098
|
+
const areaId = React18__default.useId();
|
|
21996
22099
|
const getFillContent = (fillType) => {
|
|
21997
22100
|
switch (fillType) {
|
|
21998
22101
|
case "none":
|
|
@@ -22031,7 +22134,7 @@ var SparkAreaChart = React16__default.forwardRef(
|
|
|
22031
22134
|
/* @__PURE__ */ jsx(YAxis, { hide: true, domain: yAxisDomain }),
|
|
22032
22135
|
categories.map((category) => {
|
|
22033
22136
|
const categoryId = `${areaId}-${category.replace(/[^a-zA-Z0-9]/g, "")}`;
|
|
22034
|
-
return /* @__PURE__ */ jsxs(
|
|
22137
|
+
return /* @__PURE__ */ jsxs(React18__default.Fragment, { children: [
|
|
22035
22138
|
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx(
|
|
22036
22139
|
"linearGradient",
|
|
22037
22140
|
{
|
|
@@ -22084,7 +22187,7 @@ var SparkAreaChart = React16__default.forwardRef(
|
|
|
22084
22187
|
}
|
|
22085
22188
|
);
|
|
22086
22189
|
SparkAreaChart.displayName = "SparkAreaChart";
|
|
22087
|
-
var SparkLineChart =
|
|
22190
|
+
var SparkLineChart = React18__default.forwardRef(
|
|
22088
22191
|
(props, forwardedRef) => {
|
|
22089
22192
|
const {
|
|
22090
22193
|
data = [],
|
|
@@ -22151,7 +22254,7 @@ var SparkLineChart = React16__default.forwardRef(
|
|
|
22151
22254
|
}
|
|
22152
22255
|
);
|
|
22153
22256
|
SparkLineChart.displayName = "SparkLineChart";
|
|
22154
|
-
var SparkBarChart =
|
|
22257
|
+
var SparkBarChart = React18__default.forwardRef((props, forwardedRef) => {
|
|
22155
22258
|
const {
|
|
22156
22259
|
data = [],
|
|
22157
22260
|
categories = [],
|
|
@@ -22213,7 +22316,7 @@ var SparkBarChart = React16__default.forwardRef((props, forwardedRef) => {
|
|
|
22213
22316
|
});
|
|
22214
22317
|
SparkBarChart.displayName = "SparkBarChart";
|
|
22215
22318
|
var Block = ({ color: color2, tooltip, defaultBackgroundColor, hoverEffect }) => {
|
|
22216
|
-
const [open, setOpen] =
|
|
22319
|
+
const [open, setOpen] = React18__default.useState(false);
|
|
22217
22320
|
return /* @__PURE__ */ jsxs(
|
|
22218
22321
|
HoverCardPrimitives.Root,
|
|
22219
22322
|
{
|
|
@@ -22256,7 +22359,7 @@ var Block = ({ color: color2, tooltip, defaultBackgroundColor, hoverEffect }) =>
|
|
|
22256
22359
|
);
|
|
22257
22360
|
};
|
|
22258
22361
|
Block.displayName = "Block";
|
|
22259
|
-
var Tracker =
|
|
22362
|
+
var Tracker = React18__default.forwardRef(
|
|
22260
22363
|
({
|
|
22261
22364
|
data = [],
|
|
22262
22365
|
defaultBackgroundColor = "bg-gray-400 dark:bg-gray-400",
|
|
@@ -22559,8 +22662,8 @@ function CalendarDayButton({
|
|
|
22559
22662
|
...props
|
|
22560
22663
|
}) {
|
|
22561
22664
|
const defaultClassNames = getDefaultClassNames();
|
|
22562
|
-
const ref =
|
|
22563
|
-
|
|
22665
|
+
const ref = React18.useRef(null);
|
|
22666
|
+
React18.useEffect(() => {
|
|
22564
22667
|
if (modifiers.focused) ref.current?.focus();
|
|
22565
22668
|
}, [modifiers.focused]);
|
|
22566
22669
|
return /* @__PURE__ */ jsx(
|
|
@@ -22583,9 +22686,9 @@ function CalendarDayButton({
|
|
|
22583
22686
|
}
|
|
22584
22687
|
);
|
|
22585
22688
|
}
|
|
22586
|
-
var CarouselContext =
|
|
22689
|
+
var CarouselContext = React18.createContext(null);
|
|
22587
22690
|
function useCarousel() {
|
|
22588
|
-
const context =
|
|
22691
|
+
const context = React18.useContext(CarouselContext);
|
|
22589
22692
|
if (!context) {
|
|
22590
22693
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
22591
22694
|
}
|
|
@@ -22607,20 +22710,20 @@ function Carousel({
|
|
|
22607
22710
|
},
|
|
22608
22711
|
plugins
|
|
22609
22712
|
);
|
|
22610
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
22611
|
-
const [canScrollNext, setCanScrollNext] =
|
|
22612
|
-
const onSelect =
|
|
22713
|
+
const [canScrollPrev, setCanScrollPrev] = React18.useState(false);
|
|
22714
|
+
const [canScrollNext, setCanScrollNext] = React18.useState(false);
|
|
22715
|
+
const onSelect = React18.useCallback((api2) => {
|
|
22613
22716
|
if (!api2) return;
|
|
22614
22717
|
setCanScrollPrev(api2.canScrollPrev());
|
|
22615
22718
|
setCanScrollNext(api2.canScrollNext());
|
|
22616
22719
|
}, []);
|
|
22617
|
-
const scrollPrev =
|
|
22720
|
+
const scrollPrev = React18.useCallback(() => {
|
|
22618
22721
|
api?.scrollPrev();
|
|
22619
22722
|
}, [api]);
|
|
22620
|
-
const scrollNext =
|
|
22723
|
+
const scrollNext = React18.useCallback(() => {
|
|
22621
22724
|
api?.scrollNext();
|
|
22622
22725
|
}, [api]);
|
|
22623
|
-
const handleKeyDown =
|
|
22726
|
+
const handleKeyDown = React18.useCallback(
|
|
22624
22727
|
(event) => {
|
|
22625
22728
|
if (event.key === "ArrowLeft") {
|
|
22626
22729
|
event.preventDefault();
|
|
@@ -22632,11 +22735,11 @@ function Carousel({
|
|
|
22632
22735
|
},
|
|
22633
22736
|
[scrollPrev, scrollNext]
|
|
22634
22737
|
);
|
|
22635
|
-
|
|
22738
|
+
React18.useEffect(() => {
|
|
22636
22739
|
if (!api || !setApi) return;
|
|
22637
22740
|
setApi(api);
|
|
22638
22741
|
}, [api, setApi]);
|
|
22639
|
-
|
|
22742
|
+
React18.useEffect(() => {
|
|
22640
22743
|
if (!api) return;
|
|
22641
22744
|
onSelect(api);
|
|
22642
22745
|
api.on("reInit", onSelect);
|
|
@@ -22805,7 +22908,7 @@ function InputOTPSlot({
|
|
|
22805
22908
|
className,
|
|
22806
22909
|
...props
|
|
22807
22910
|
}) {
|
|
22808
|
-
const inputOTPContext =
|
|
22911
|
+
const inputOTPContext = React18.useContext(OTPInputContext);
|
|
22809
22912
|
const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
|
|
22810
22913
|
return /* @__PURE__ */ jsxs(
|
|
22811
22914
|
"div",
|
|
@@ -23280,9 +23383,9 @@ function MultiLevelPushMenu({
|
|
|
23280
23383
|
}) }) });
|
|
23281
23384
|
}
|
|
23282
23385
|
function MobileSearch({ navigation }) {
|
|
23283
|
-
const [open, setOpen] =
|
|
23386
|
+
const [open, setOpen] = React18.useState(false);
|
|
23284
23387
|
const router = useRouter();
|
|
23285
|
-
|
|
23388
|
+
React18.useEffect(() => {
|
|
23286
23389
|
const down = (e) => {
|
|
23287
23390
|
if (e.key === "k" && (e.metaKey || e.ctrlKey)) {
|
|
23288
23391
|
e.preventDefault();
|
|
@@ -23292,7 +23395,7 @@ function MobileSearch({ navigation }) {
|
|
|
23292
23395
|
document.addEventListener("keydown", down);
|
|
23293
23396
|
return () => document.removeEventListener("keydown", down);
|
|
23294
23397
|
}, []);
|
|
23295
|
-
const runCommand =
|
|
23398
|
+
const runCommand = React18.useCallback((command) => {
|
|
23296
23399
|
setOpen(false);
|
|
23297
23400
|
command();
|
|
23298
23401
|
}, []);
|
|
@@ -23406,8 +23509,8 @@ function MobileHeader({
|
|
|
23406
23509
|
}
|
|
23407
23510
|
var MOBILE_BREAKPOINT = 768;
|
|
23408
23511
|
function useIsMobile() {
|
|
23409
|
-
const [isMobile, setIsMobile] =
|
|
23410
|
-
|
|
23512
|
+
const [isMobile, setIsMobile] = React18.useState(void 0);
|
|
23513
|
+
React18.useEffect(() => {
|
|
23411
23514
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
23412
23515
|
const onChange = () => {
|
|
23413
23516
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -23424,9 +23527,9 @@ var SIDEBAR_WIDTH = "16rem";
|
|
|
23424
23527
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
23425
23528
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
23426
23529
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
23427
|
-
var SidebarContext =
|
|
23530
|
+
var SidebarContext = React18.createContext(null);
|
|
23428
23531
|
function useSidebar() {
|
|
23429
|
-
const context =
|
|
23532
|
+
const context = React18.useContext(SidebarContext);
|
|
23430
23533
|
if (!context) {
|
|
23431
23534
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
23432
23535
|
}
|
|
@@ -23442,10 +23545,10 @@ function SidebarProvider({
|
|
|
23442
23545
|
...props
|
|
23443
23546
|
}) {
|
|
23444
23547
|
const isMobile = useIsMobile();
|
|
23445
|
-
const [openMobile, setOpenMobile] =
|
|
23446
|
-
const [_open, _setOpen] =
|
|
23548
|
+
const [openMobile, setOpenMobile] = React18.useState(false);
|
|
23549
|
+
const [_open, _setOpen] = React18.useState(defaultOpen);
|
|
23447
23550
|
const open = openProp ?? _open;
|
|
23448
|
-
const setOpen =
|
|
23551
|
+
const setOpen = React18.useCallback(
|
|
23449
23552
|
(value) => {
|
|
23450
23553
|
const openState = typeof value === "function" ? value(open) : value;
|
|
23451
23554
|
if (setOpenProp) {
|
|
@@ -23457,10 +23560,10 @@ function SidebarProvider({
|
|
|
23457
23560
|
},
|
|
23458
23561
|
[setOpenProp, open]
|
|
23459
23562
|
);
|
|
23460
|
-
const toggleSidebar =
|
|
23563
|
+
const toggleSidebar = React18.useCallback(() => {
|
|
23461
23564
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
23462
23565
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
23463
|
-
|
|
23566
|
+
React18.useEffect(() => {
|
|
23464
23567
|
const handleKeyDown = (event) => {
|
|
23465
23568
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
23466
23569
|
event.preventDefault();
|
|
@@ -23471,7 +23574,7 @@ function SidebarProvider({
|
|
|
23471
23574
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
23472
23575
|
}, [toggleSidebar]);
|
|
23473
23576
|
const state = open ? "expanded" : "collapsed";
|
|
23474
|
-
const contextValue =
|
|
23577
|
+
const contextValue = React18.useMemo(
|
|
23475
23578
|
() => ({
|
|
23476
23579
|
state,
|
|
23477
23580
|
open,
|
|
@@ -23914,7 +24017,7 @@ function SidebarMenuSkeleton({
|
|
|
23914
24017
|
showIcon = false,
|
|
23915
24018
|
...props
|
|
23916
24019
|
}) {
|
|
23917
|
-
const width =
|
|
24020
|
+
const width = React18.useMemo(() => {
|
|
23918
24021
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
23919
24022
|
}, []);
|
|
23920
24023
|
return /* @__PURE__ */ jsxs(
|
|
@@ -24134,6 +24237,6 @@ var languages = [
|
|
|
24134
24237
|
"html"
|
|
24135
24238
|
];
|
|
24136
24239
|
|
|
24137
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AreaChart, AspectRatio, AuthLayout, AvailableChartColors, Avatar, AvatarFallback, AvatarImage, Badge, BadgeButton, BarChart, BarList, BaseColorSwatches, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, Button2 as Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CategoryBar, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Code, CodeDemo, CodeHighlight, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, ColorCard, ColorSwatches, ColourScale, ComboChart, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Description3 as Description, DescriptionDetails, DescriptionList, DescriptionTerm, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DonutChart, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicFavicon, ErrorMessage, ExpandableSearch, ExpandableSearchField, Field2 as Field, FieldGroup, FieldLabel, Fieldset2 as Fieldset, Footer, FooterAcknowledgement, FooterLegalLinks, FooterSmallPrint, FooterSocialLink, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormatToggle, GenerateInterpolatedColors, Header2 as Header, Heading, HoverCard, HoverCardContent, HoverCardTrigger, Icons, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label3 as Label, Legend2 as Legend, LineChart, Link, _List as List, Listbox2 as Listbox, ListboxDescription, ListboxLabel, ListboxOption2 as ListboxOption, Logo, MainNavigation, Masthead, MegaMenu, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileHeader, MobileSearch, MultiLevelPushMenu, Navbar, NavbarDivider, NavbarItem, NavbarLabel, NavbarSection, NavbarSpacer, Navigation, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreWithCopy, PrevNextLinks, PrevNextLinksPageLink, Progress, ProgressBar, ProgressCircle, Prose, RadioGroup2 as RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator4 as Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLink, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarNavigation, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SiteSearch, Skeleton, Slider, Social, SparkAreaChart, SparkBarChart, SparkLineChart, Spinner, StepIndicator, StepNavigation, Strong, Switch2 as Switch, SwitchField, SwitchGroup, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, TableRow, Tabs2 as Tabs, TabsContent, TabsList, TabsTrigger, Text, TextLink, Textarea, ThemeColorPalette, ThemeProvider, ThemeSelector, ThemeSwitcher, Toaster, TocContext, TocProvider, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopLevel, TouchTarget, Tracker, Tooltip5 as TremorTooltip, ViewToggle, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants, brand, buttonVariants, camelCase, chartColors, cn, colorDataArray, colorThemes, colors, constructCategoryColors, createColorArray, createColorData, createFormStore, darkenColor, domToSimple, focusInput, focusRing, generateColorThemes, getColorClassName, getColorValue, getHeadings, getNodeText, getSurroundingColors, getYAxisDomain, hasErrorInput, hasOnlyOneValueForKey, humaniseVariant, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, progressBarVariants, renderColorOutput, renderColorOutputToDTFM, semantic, shades, themeIndices, themeTokens, toggleVariants, truncate, useActiveSectionObserver, useDisableToc, useFormField, useIsMobile, useOnWindowResize, usePageHeadings, useSelectorHeight, useSidebar, useToc };
|
|
24240
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AreaChart, AspectRatio, AuthLayout, AvailableChartColors, Avatar, AvatarFallback, AvatarImage, Badge, BadgeButton, BarChart, BarList, BaseColorSwatches, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, Button2 as Button, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CategoryBar, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CheckboxSmall, Code, CodeDemo, CodeHighlight, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, ColorCard, ColorSwatches, ColourScale, ComboChart, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Description3 as Description, DescriptionDetails, DescriptionList, DescriptionTerm, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DonutChart, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicFavicon, ErrorMessage, ExpandableSearch, ExpandableSearchField, Field2 as Field, FieldGroup, FieldLabel, Fieldset2 as Fieldset, Footer, FooterAcknowledgement, FooterLegalLinks, FooterSmallPrint, FooterSocialLink, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormatToggle, GenerateInterpolatedColors, Header2 as Header, Heading, HoverCard, HoverCardContent, HoverCardTrigger, Icons, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Label3 as Label, Legend2 as Legend, LineChart, Link, _List as List, Listbox2 as Listbox, ListboxDescription, ListboxLabel, ListboxOption2 as ListboxOption, Logo, MainNavigation, Masthead, MegaMenu, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileHeader, MobileSearch, MultiLevelPushMenu, Navbar, NavbarDivider, NavbarItem, NavbarLabel, NavbarSection, NavbarSpacer, Navigation, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PreWithCopy, PrevNextLinks, PrevNextLinksPageLink, Progress, ProgressBar, ProgressCircle, Prose, RadioGroup2 as RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator4 as Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLink, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarNavigation, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SiteSearch, Skeleton, Slider, Social, SparkAreaChart, SparkBarChart, SparkLineChart, Spinner, StepIndicator, StepNavigation, Strong, Switch2 as Switch, SwitchField, SwitchGroup, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, TableRow, Tabs2 as Tabs, TabsContent, TabsList, TabsTrigger, Text, TextLink, Textarea, ThemeColorPalette, ThemeProvider, ThemeSelector, ThemeSwitcher, Toaster, TocContext, TocProvider, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TopLevel, TouchTarget, Tracker, Tooltip5 as TremorTooltip, ViewToggle, aboriginal, addStartStopToColorArray, allPalettes, badgeVariants, brand, buttonVariants, camelCase, chartColors, cn, colorDataArray, colorThemes, colors, constructCategoryColors, createColorArray, createColorData, createFormStore, darkenColor, domToSimple, focusInput, focusRing, generateColorThemes, getColorClassName, getColorValue, getHeadings, getNodeText, getSurroundingColors, getYAxisDomain, hasErrorInput, hasOnlyOneValueForKey, humaniseVariant, interpolateColors, isLightColor, kebabCase, languages, lightenColor, navigationMenuTriggerStyle, oklchConverter, progressBarVariants, renderColorOutput, renderColorOutputToDTFM, semantic, shades, themeIndices, themeTokens, toggleVariants, truncate, useActiveSectionObserver, useDisableToc, useFormField, useIsMobile, useOnWindowResize, usePageHeadings, useSelectorHeight, useSidebar, useToc };
|
|
24138
24241
|
//# sourceMappingURL=index.js.map
|
|
24139
24242
|
//# sourceMappingURL=index.js.map
|