@particle-academy/react-fancy 4.4.4 → 4.4.5
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/index.cjs +64 -53
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +34 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3,31 +3,11 @@
|
|
|
3
3
|
var react = require('react');
|
|
4
4
|
var clsx = require('clsx');
|
|
5
5
|
var tailwindMerge = require('tailwind-merge');
|
|
6
|
-
var LucideIcons = require('lucide-react');
|
|
7
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
7
|
var reactDom = require('react-dom');
|
|
8
|
+
var lucideReact = require('lucide-react');
|
|
9
9
|
var marked = require('marked');
|
|
10
10
|
|
|
11
|
-
function _interopNamespace(e) {
|
|
12
|
-
if (e && e.__esModule) return e;
|
|
13
|
-
var n = Object.create(null);
|
|
14
|
-
if (e) {
|
|
15
|
-
Object.keys(e).forEach(function (k) {
|
|
16
|
-
if (k !== 'default') {
|
|
17
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () { return e[k]; }
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
n.default = e;
|
|
26
|
-
return Object.freeze(n);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
var LucideIcons__namespace = /*#__PURE__*/_interopNamespace(LucideIcons);
|
|
30
|
-
|
|
31
11
|
// src/components/Button/Button.tsx
|
|
32
12
|
function cn(...inputs) {
|
|
33
13
|
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
@@ -2122,14 +2102,40 @@ function applyTone(char, tone) {
|
|
|
2122
2102
|
const idx = SKIN_TONES.indexOf(tone);
|
|
2123
2103
|
return entry.skinTones[idx] ?? char;
|
|
2124
2104
|
}
|
|
2105
|
+
|
|
2106
|
+
// src/components/Icon/icon-config.ts
|
|
2125
2107
|
var registry = /* @__PURE__ */ new Map();
|
|
2126
2108
|
var defaultSetName = "lucide";
|
|
2127
2109
|
function kebabToPascal(str) {
|
|
2128
2110
|
return str.split("-").map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join("");
|
|
2129
2111
|
}
|
|
2112
|
+
var lucideModule = null;
|
|
2113
|
+
var lucidePromise = null;
|
|
2114
|
+
var lucideVersion = 0;
|
|
2115
|
+
var lucideListeners = /* @__PURE__ */ new Set();
|
|
2116
|
+
function ensureLucideLoaded() {
|
|
2117
|
+
if (lucideModule || lucidePromise) return;
|
|
2118
|
+
lucidePromise = import('lucide-react').then((mod) => {
|
|
2119
|
+
lucideModule = mod;
|
|
2120
|
+
lucideVersion++;
|
|
2121
|
+
for (const listener of lucideListeners) listener();
|
|
2122
|
+
}).catch(() => {
|
|
2123
|
+
});
|
|
2124
|
+
}
|
|
2125
|
+
function subscribeIconResolution(listener) {
|
|
2126
|
+
lucideListeners.add(listener);
|
|
2127
|
+
return () => lucideListeners.delete(listener);
|
|
2128
|
+
}
|
|
2129
|
+
function getIconResolutionVersion() {
|
|
2130
|
+
return lucideVersion;
|
|
2131
|
+
}
|
|
2130
2132
|
function resolveFromLucide(name) {
|
|
2133
|
+
if (!lucideModule) {
|
|
2134
|
+
ensureLucideLoaded();
|
|
2135
|
+
return null;
|
|
2136
|
+
}
|
|
2131
2137
|
const pascal = kebabToPascal(name);
|
|
2132
|
-
const icon =
|
|
2138
|
+
const icon = lucideModule[pascal];
|
|
2133
2139
|
return typeof icon === "function" || icon && typeof icon === "object" ? icon : null;
|
|
2134
2140
|
}
|
|
2135
2141
|
function registerIcons(icons) {
|
|
@@ -2182,6 +2188,11 @@ var sizePixels = {
|
|
|
2182
2188
|
};
|
|
2183
2189
|
var Icon = react.forwardRef(
|
|
2184
2190
|
({ size = "md", className, children, name, iconSet, ...props }, ref) => {
|
|
2191
|
+
react.useSyncExternalStore(
|
|
2192
|
+
subscribeIconResolution,
|
|
2193
|
+
getIconResolutionVersion,
|
|
2194
|
+
getIconResolutionVersion
|
|
2195
|
+
);
|
|
2185
2196
|
let content = children;
|
|
2186
2197
|
if (name && !children) {
|
|
2187
2198
|
const ResolvedIcon = resolveIcon(name, iconSet);
|
|
@@ -6616,7 +6627,7 @@ var Callout = react.forwardRef(
|
|
|
6616
6627
|
"shrink-0 rounded p-0.5 opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-current"
|
|
6617
6628
|
),
|
|
6618
6629
|
"aria-label": "Dismiss",
|
|
6619
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6630
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { size: 16 })
|
|
6620
6631
|
}
|
|
6621
6632
|
)
|
|
6622
6633
|
]
|
|
@@ -7855,7 +7866,7 @@ function ModalHeader({ children, className }) {
|
|
|
7855
7866
|
onClick: close,
|
|
7856
7867
|
className: "rounded-lg p-1 text-zinc-400 transition-colors hover:bg-zinc-100 hover:text-zinc-600 dark:hover:bg-zinc-800 dark:hover:text-zinc-300",
|
|
7857
7868
|
"aria-label": "Close",
|
|
7858
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7869
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { size: 20 })
|
|
7859
7870
|
}
|
|
7860
7871
|
)
|
|
7861
7872
|
]
|
|
@@ -8034,10 +8045,10 @@ function ToastItem({ data, onDismiss }) {
|
|
|
8034
8045
|
),
|
|
8035
8046
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
8036
8047
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("mt-0.5 shrink-0", VARIANT_ICON_COLORS[variant]), children: [
|
|
8037
|
-
variant === "success" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8038
|
-
variant === "error" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8039
|
-
variant === "warning" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8040
|
-
variant === "info" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8048
|
+
variant === "success" && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { size: 16 }),
|
|
8049
|
+
variant === "error" && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.XCircle, { size: 16 }),
|
|
8050
|
+
variant === "warning" && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertTriangle, { size: 16 }),
|
|
8051
|
+
variant === "info" && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Info, { size: 16 })
|
|
8041
8052
|
] }),
|
|
8042
8053
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
8043
8054
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-zinc-900 dark:text-zinc-100", children: title }),
|
|
@@ -8050,7 +8061,7 @@ function ToastItem({ data, onDismiss }) {
|
|
|
8050
8061
|
onClick: () => onDismiss(id),
|
|
8051
8062
|
className: "shrink-0 rounded p-0.5 text-zinc-400 transition-colors hover:text-zinc-600 dark:hover:text-zinc-300",
|
|
8052
8063
|
"aria-label": "Dismiss",
|
|
8053
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8064
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { size: 14 })
|
|
8054
8065
|
}
|
|
8055
8066
|
)
|
|
8056
8067
|
] })
|
|
@@ -8117,7 +8128,7 @@ function CommandInput({
|
|
|
8117
8128
|
}) {
|
|
8118
8129
|
const { query, setQuery } = useCommand();
|
|
8119
8130
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-react-fancy-command-input": "", className: "flex items-center border-b border-zinc-200 px-4 dark:border-zinc-700", children: [
|
|
8120
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8131
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { size: 16, className: "shrink-0 text-zinc-400" }),
|
|
8121
8132
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8122
8133
|
"input",
|
|
8123
8134
|
{
|
|
@@ -8476,7 +8487,7 @@ function AccordionTrigger({
|
|
|
8476
8487
|
),
|
|
8477
8488
|
children: [
|
|
8478
8489
|
children,
|
|
8479
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8490
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { size: 16, className: cn("shrink-0 transition-transform duration-200", isOpen && "rotate-180") })
|
|
8480
8491
|
]
|
|
8481
8492
|
}
|
|
8482
8493
|
);
|
|
@@ -8563,7 +8574,7 @@ function BreadcrumbsDropdown({ items, activeLabel }) {
|
|
|
8563
8574
|
className: "flex items-center gap-1 rounded-lg px-2 py-1 text-sm font-medium text-zinc-900 hover:bg-zinc-100 dark:text-white dark:hover:bg-zinc-800",
|
|
8564
8575
|
children: [
|
|
8565
8576
|
activeLabel,
|
|
8566
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8577
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { size: 14, className: cn("transition-transform", open && "rotate-180") })
|
|
8567
8578
|
]
|
|
8568
8579
|
}
|
|
8569
8580
|
),
|
|
@@ -8588,7 +8599,7 @@ function BreadcrumbsRoot({
|
|
|
8588
8599
|
}) {
|
|
8589
8600
|
const items = react.Children.toArray(children);
|
|
8590
8601
|
const [expanded, setExpanded] = react.useState(false);
|
|
8591
|
-
const sep = separator ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
8602
|
+
const sep = separator ?? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { size: 12, className: "text-zinc-400" });
|
|
8592
8603
|
const lastItem = items[items.length - 1];
|
|
8593
8604
|
const dropdownItems = items.map((child) => {
|
|
8594
8605
|
const el = child;
|
|
@@ -8692,7 +8703,7 @@ function NavbarToggle({ className }) {
|
|
|
8692
8703
|
),
|
|
8693
8704
|
"aria-label": "Toggle navigation",
|
|
8694
8705
|
"aria-expanded": mobileOpen,
|
|
8695
|
-
children: mobileOpen ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
8706
|
+
children: mobileOpen ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { size: 20 }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Menu, { size: 20 })
|
|
8696
8707
|
}
|
|
8697
8708
|
);
|
|
8698
8709
|
}
|
|
@@ -8772,7 +8783,7 @@ function Pagination({
|
|
|
8772
8783
|
onClick: () => onPageChange(page - 1),
|
|
8773
8784
|
className: cn(btnBase, btnDefault, page <= 1 && btnDisabled, "px-2"),
|
|
8774
8785
|
"aria-label": "Previous page",
|
|
8775
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8786
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { size: 16 })
|
|
8776
8787
|
}
|
|
8777
8788
|
),
|
|
8778
8789
|
pages.map(
|
|
@@ -8805,7 +8816,7 @@ function Pagination({
|
|
|
8805
8816
|
"px-2"
|
|
8806
8817
|
),
|
|
8807
8818
|
"aria-label": "Next page",
|
|
8808
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8819
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { size: 16 })
|
|
8809
8820
|
}
|
|
8810
8821
|
)
|
|
8811
8822
|
] });
|
|
@@ -9020,7 +9031,7 @@ var Pillbox = react.forwardRef(
|
|
|
9020
9031
|
},
|
|
9021
9032
|
className: "text-zinc-400 hover:text-zinc-600 dark:hover:text-zinc-300",
|
|
9022
9033
|
"aria-label": `Remove ${item}`,
|
|
9023
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9034
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { size: 12 })
|
|
9024
9035
|
}
|
|
9025
9036
|
)
|
|
9026
9037
|
]
|
|
@@ -9195,7 +9206,7 @@ function FileUploadDropzone({
|
|
|
9195
9206
|
}
|
|
9196
9207
|
),
|
|
9197
9208
|
children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
9198
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9209
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Upload, { size: 32, strokeWidth: 1.5, className: "mb-2 text-zinc-400" }),
|
|
9199
9210
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-zinc-500", children: "Drop files here or click to browse" })
|
|
9200
9211
|
] })
|
|
9201
9212
|
]
|
|
@@ -9223,7 +9234,7 @@ function ThumbnailItem({ file, index, onRemove }) {
|
|
|
9223
9234
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "group relative flex w-20 flex-col items-center gap-1", children: [
|
|
9224
9235
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative h-20 w-20 overflow-hidden rounded-lg border border-zinc-200 bg-zinc-50 dark:border-zinc-700 dark:bg-zinc-800", children: [
|
|
9225
9236
|
isImage && objectUrl ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: objectUrl, alt: file.name, className: "h-full w-full object-cover" }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full w-full flex-col items-center justify-center gap-1", children: [
|
|
9226
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9237
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.File, { size: 20, className: "text-zinc-400" }),
|
|
9227
9238
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[10px] font-medium text-zinc-500", children: getExtension(file.name) })
|
|
9228
9239
|
] }),
|
|
9229
9240
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -9233,7 +9244,7 @@ function ThumbnailItem({ file, index, onRemove }) {
|
|
|
9233
9244
|
onClick: () => onRemove(index),
|
|
9234
9245
|
className: "absolute top-1 right-1 flex h-5 w-5 items-center justify-center rounded-full bg-black/60 text-white opacity-0 transition-opacity hover:bg-black/80 group-hover:opacity-100",
|
|
9235
9246
|
"aria-label": `Remove ${file.name}`,
|
|
9236
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9247
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { size: 10 })
|
|
9237
9248
|
}
|
|
9238
9249
|
)
|
|
9239
9250
|
] }),
|
|
@@ -9251,7 +9262,7 @@ function FileUploadList({ thumbnail, className }) {
|
|
|
9251
9262
|
{
|
|
9252
9263
|
className: "flex items-center gap-3 rounded-lg border border-zinc-200 px-3 py-2 text-sm dark:border-zinc-700",
|
|
9253
9264
|
children: [
|
|
9254
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9265
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.File, { size: 16, className: "shrink-0 text-zinc-400" }),
|
|
9255
9266
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1 truncate", children: file.name }),
|
|
9256
9267
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-xs text-zinc-400", children: formatSize(file.size) }),
|
|
9257
9268
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -9261,7 +9272,7 @@ function FileUploadList({ thumbnail, className }) {
|
|
|
9261
9272
|
onClick: () => removeFile(i),
|
|
9262
9273
|
className: "shrink-0 text-zinc-400 hover:text-zinc-600 dark:hover:text-zinc-300",
|
|
9263
9274
|
"aria-label": `Remove ${file.name}`,
|
|
9264
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9275
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { size: 14 })
|
|
9265
9276
|
}
|
|
9266
9277
|
)
|
|
9267
9278
|
]
|
|
@@ -9374,15 +9385,15 @@ var TimePicker = react.forwardRef(
|
|
|
9374
9385
|
),
|
|
9375
9386
|
children: [
|
|
9376
9387
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
9377
|
-
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: () => changeHour(1), disabled, className: spinBtnClass, "aria-label": "Increase hour", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9388
|
+
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: () => changeHour(1), disabled, className: spinBtnClass, "aria-label": "Increase hour", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronUp, { size: 14 }) }),
|
|
9378
9389
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: displayClass, children: pad(displayHour) }),
|
|
9379
|
-
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: () => changeHour(-1), disabled, className: spinBtnClass, "aria-label": "Decrease hour", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9390
|
+
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: () => changeHour(-1), disabled, className: spinBtnClass, "aria-label": "Decrease hour", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { size: 14 }) })
|
|
9380
9391
|
] }),
|
|
9381
9392
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-lg text-zinc-400", children: ":" }),
|
|
9382
9393
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
9383
|
-
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: () => changeMinute(minuteStep), disabled, className: spinBtnClass, "aria-label": "Increase minute", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9394
|
+
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: () => changeMinute(minuteStep), disabled, className: spinBtnClass, "aria-label": "Increase minute", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronUp, { size: 14 }) }),
|
|
9384
9395
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: displayClass, children: pad(minutes) }),
|
|
9385
|
-
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: () => changeMinute(-minuteStep), disabled, className: spinBtnClass, "aria-label": "Decrease minute", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9396
|
+
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: () => changeMinute(-minuteStep), disabled, className: spinBtnClass, "aria-label": "Decrease minute", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { size: 14 }) })
|
|
9386
9397
|
] }),
|
|
9387
9398
|
format === "12h" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9388
9399
|
"button",
|
|
@@ -9553,7 +9564,7 @@ var Calendar = react.forwardRef(
|
|
|
9553
9564
|
onClick: prevMonth,
|
|
9554
9565
|
className: "rounded-lg p-1 text-zinc-400 hover:bg-zinc-100 dark:hover:bg-zinc-800",
|
|
9555
9566
|
"aria-label": "Previous month",
|
|
9556
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9567
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { size: 16 })
|
|
9557
9568
|
}
|
|
9558
9569
|
),
|
|
9559
9570
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-sm font-semibold", children: [
|
|
@@ -9568,7 +9579,7 @@ var Calendar = react.forwardRef(
|
|
|
9568
9579
|
onClick: nextMonth,
|
|
9569
9580
|
className: "rounded-lg p-1 text-zinc-400 hover:bg-zinc-100 dark:hover:bg-zinc-800",
|
|
9570
9581
|
"aria-label": "Next month",
|
|
9571
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9582
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { size: 16 })
|
|
9572
9583
|
}
|
|
9573
9584
|
)
|
|
9574
9585
|
] }),
|
|
@@ -11230,7 +11241,7 @@ function MenuSubmenu({
|
|
|
11230
11241
|
children: [
|
|
11231
11242
|
icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: icon }),
|
|
11232
11243
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: label }),
|
|
11233
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11244
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "h-3.5 w-3.5 opacity-60" })
|
|
11234
11245
|
]
|
|
11235
11246
|
}
|
|
11236
11247
|
),
|
|
@@ -11263,7 +11274,7 @@ function MenuSubmenu({
|
|
|
11263
11274
|
icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: icon }),
|
|
11264
11275
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1 text-left", children: label }),
|
|
11265
11276
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11266
|
-
|
|
11277
|
+
lucideReact.ChevronDown,
|
|
11267
11278
|
{
|
|
11268
11279
|
className: cn(
|
|
11269
11280
|
"h-3.5 w-3.5 opacity-60 transition-transform duration-200",
|
|
@@ -11430,7 +11441,7 @@ function SidebarSubmenu({
|
|
|
11430
11441
|
icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: icon }),
|
|
11431
11442
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1 text-left", children: label }),
|
|
11432
11443
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11433
|
-
|
|
11444
|
+
lucideReact.ChevronDown,
|
|
11434
11445
|
{
|
|
11435
11446
|
className: cn(
|
|
11436
11447
|
"h-3.5 w-3.5 opacity-60 transition-transform duration-200",
|
|
@@ -11468,7 +11479,7 @@ function SidebarToggle({ className }) {
|
|
|
11468
11479
|
"hover:bg-zinc-100 hover:text-zinc-600 dark:hover:bg-zinc-800 dark:hover:text-zinc-300",
|
|
11469
11480
|
className
|
|
11470
11481
|
),
|
|
11471
|
-
children: collapsed ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
11482
|
+
children: collapsed ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.PanelLeftOpen, { className: "h-4 w-4" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.PanelLeftClose, { className: "h-4 w-4" })
|
|
11472
11483
|
}
|
|
11473
11484
|
);
|
|
11474
11485
|
}
|
|
@@ -11570,7 +11581,7 @@ function MobileMenuFlyout({
|
|
|
11570
11581
|
type: "button",
|
|
11571
11582
|
onClick: onClose,
|
|
11572
11583
|
className: "flex h-8 w-8 items-center justify-center rounded-md text-zinc-400 transition-colors hover:bg-zinc-100 hover:text-zinc-600 dark:hover:bg-zinc-800 dark:hover:text-zinc-300",
|
|
11573
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11584
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" })
|
|
11574
11585
|
}
|
|
11575
11586
|
)
|
|
11576
11587
|
] }),
|