@hai3/uikit 0.3.0-alpha.0 → 0.4.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +979 -499
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +613 -129
- package/dist/index.d.ts +613 -129
- package/dist/index.js +978 -499
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/styles/applyTheme.ts +102 -0
package/dist/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import { clsx } from 'clsx';
|
|
|
3
3
|
import { twMerge } from 'tailwind-merge';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
6
|
-
import * as React26 from 'react';
|
|
7
|
-
import React26__default, { useMemo } from 'react';
|
|
8
6
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
9
7
|
import { Slot } from '@radix-ui/react-slot';
|
|
10
8
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
9
|
+
import * as React6 from 'react';
|
|
10
|
+
import { useMemo } from 'react';
|
|
11
11
|
import { getDefaultClassNames, DayPicker } from 'react-day-picker';
|
|
12
12
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
13
13
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
@@ -17,7 +17,7 @@ import { FormProvider, Controller, useFormContext, useFormState } from 'react-ho
|
|
|
17
17
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
18
18
|
import { useReactTable, getFilteredRowModel, getSortedRowModel, getPaginationRowModel, getCoreRowModel, flexRender } from '@tanstack/react-table';
|
|
19
19
|
export { flexRender, getCoreRowModel, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, useReactTable } from '@tanstack/react-table';
|
|
20
|
-
import {
|
|
20
|
+
import { ChevronsLeft, ChevronLeft, ChevronRight, ChevronsRight, ArrowDown, ArrowUp, ChevronsUpDown, EyeOff, Settings2, Loader2, XOctagon, AlertTriangle, Info, CheckCircle2, MoreHorizontal, X, GripVertical, ArrowLeft, ArrowRight, SearchIcon, User, Bot, Paperclip, Send, Plus, Search } from 'lucide-react';
|
|
21
21
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
22
22
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
23
23
|
import { trim, toUpper } from 'lodash';
|
|
@@ -203,7 +203,11 @@ function EmptyContent({ className, ...props }) {
|
|
|
203
203
|
}
|
|
204
204
|
);
|
|
205
205
|
}
|
|
206
|
-
var Avatar =
|
|
206
|
+
var Avatar = ({
|
|
207
|
+
ref,
|
|
208
|
+
className,
|
|
209
|
+
...props
|
|
210
|
+
}) => /* @__PURE__ */ jsx(
|
|
207
211
|
AvatarPrimitive.Root,
|
|
208
212
|
{
|
|
209
213
|
ref,
|
|
@@ -213,18 +217,26 @@ var Avatar = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
213
217
|
),
|
|
214
218
|
...props
|
|
215
219
|
}
|
|
216
|
-
)
|
|
220
|
+
);
|
|
217
221
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
218
|
-
var AvatarImage =
|
|
222
|
+
var AvatarImage = ({
|
|
223
|
+
ref,
|
|
224
|
+
className,
|
|
225
|
+
...props
|
|
226
|
+
}) => /* @__PURE__ */ jsx(
|
|
219
227
|
AvatarPrimitive.Image,
|
|
220
228
|
{
|
|
221
229
|
ref,
|
|
222
230
|
className: cn("aspect-square h-full w-full", className),
|
|
223
231
|
...props
|
|
224
232
|
}
|
|
225
|
-
)
|
|
233
|
+
);
|
|
226
234
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
227
|
-
var AvatarFallback =
|
|
235
|
+
var AvatarFallback = ({
|
|
236
|
+
ref,
|
|
237
|
+
className,
|
|
238
|
+
...props
|
|
239
|
+
}) => /* @__PURE__ */ jsx(
|
|
228
240
|
AvatarPrimitive.Fallback,
|
|
229
241
|
{
|
|
230
242
|
ref,
|
|
@@ -234,7 +246,7 @@ var AvatarFallback = React26.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
234
246
|
),
|
|
235
247
|
...props
|
|
236
248
|
}
|
|
237
|
-
)
|
|
249
|
+
);
|
|
238
250
|
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
239
251
|
|
|
240
252
|
// src/types.ts
|
|
@@ -317,19 +329,24 @@ var buttonVariants = cva(
|
|
|
317
329
|
}
|
|
318
330
|
}
|
|
319
331
|
);
|
|
320
|
-
var Button =
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
)
|
|
332
|
+
var Button = ({
|
|
333
|
+
ref,
|
|
334
|
+
className,
|
|
335
|
+
variant,
|
|
336
|
+
size,
|
|
337
|
+
asChild = false,
|
|
338
|
+
...props
|
|
339
|
+
}) => {
|
|
340
|
+
const Comp = asChild ? Slot : "button";
|
|
341
|
+
return /* @__PURE__ */ jsx(
|
|
342
|
+
Comp,
|
|
343
|
+
{
|
|
344
|
+
className: cn(buttonVariants({ variant, size, className })),
|
|
345
|
+
ref,
|
|
346
|
+
...props
|
|
347
|
+
}
|
|
348
|
+
);
|
|
349
|
+
};
|
|
333
350
|
Button.displayName = "Button";
|
|
334
351
|
function Separator({
|
|
335
352
|
className,
|
|
@@ -649,8 +666,8 @@ function CalendarDayButton({
|
|
|
649
666
|
...props
|
|
650
667
|
}) {
|
|
651
668
|
const defaultClassNames = getDefaultClassNames();
|
|
652
|
-
const ref =
|
|
653
|
-
|
|
669
|
+
const ref = React6.useRef(null);
|
|
670
|
+
React6.useEffect(() => {
|
|
654
671
|
if (modifiers.focused) ref.current?.focus();
|
|
655
672
|
}, [modifiers.focused]);
|
|
656
673
|
return /* @__PURE__ */ jsx(
|
|
@@ -870,7 +887,7 @@ function InputOTPSlot({
|
|
|
870
887
|
className,
|
|
871
888
|
...props
|
|
872
889
|
}) {
|
|
873
|
-
const inputOTPContext =
|
|
890
|
+
const inputOTPContext = React6.useContext(OTPInputContext);
|
|
874
891
|
const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
|
|
875
892
|
return /* @__PURE__ */ jsxs(
|
|
876
893
|
"div",
|
|
@@ -892,22 +909,25 @@ function InputOTPSlot({
|
|
|
892
909
|
function InputOTPSeparator({ ...props }) {
|
|
893
910
|
return /* @__PURE__ */ jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsx(MinusIcon, {}) });
|
|
894
911
|
}
|
|
895
|
-
var Input =
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
912
|
+
var Input = ({
|
|
913
|
+
ref,
|
|
914
|
+
className,
|
|
915
|
+
type,
|
|
916
|
+
...props
|
|
917
|
+
}) => {
|
|
918
|
+
return /* @__PURE__ */ jsx(
|
|
919
|
+
"input",
|
|
920
|
+
{
|
|
921
|
+
type,
|
|
922
|
+
className: cn(
|
|
923
|
+
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
924
|
+
className
|
|
925
|
+
),
|
|
926
|
+
ref,
|
|
927
|
+
...props
|
|
928
|
+
}
|
|
929
|
+
);
|
|
930
|
+
};
|
|
911
931
|
Input.displayName = "Input";
|
|
912
932
|
function Label({
|
|
913
933
|
className,
|
|
@@ -1137,7 +1157,7 @@ function FieldError({
|
|
|
1137
1157
|
);
|
|
1138
1158
|
}
|
|
1139
1159
|
var Form = FormProvider;
|
|
1140
|
-
var FormFieldContext =
|
|
1160
|
+
var FormFieldContext = React6.createContext(
|
|
1141
1161
|
{}
|
|
1142
1162
|
);
|
|
1143
1163
|
var FormField = ({
|
|
@@ -1145,12 +1165,12 @@ var FormField = ({
|
|
|
1145
1165
|
}) => {
|
|
1146
1166
|
return /* @__PURE__ */ jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx(Controller, { ...props }) });
|
|
1147
1167
|
};
|
|
1148
|
-
var FormItemContext =
|
|
1168
|
+
var FormItemContext = React6.createContext(
|
|
1149
1169
|
{}
|
|
1150
1170
|
);
|
|
1151
1171
|
var useFormField = () => {
|
|
1152
|
-
const fieldContext =
|
|
1153
|
-
const itemContext =
|
|
1172
|
+
const fieldContext = React6.useContext(FormFieldContext);
|
|
1173
|
+
const itemContext = React6.useContext(FormItemContext);
|
|
1154
1174
|
const { getFieldState } = useFormContext();
|
|
1155
1175
|
const formState = useFormState({ name: fieldContext.name });
|
|
1156
1176
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
@@ -1168,7 +1188,7 @@ var useFormField = () => {
|
|
|
1168
1188
|
};
|
|
1169
1189
|
};
|
|
1170
1190
|
function FormItem({ className, ...props }) {
|
|
1171
|
-
const id =
|
|
1191
|
+
const id = React6.useId();
|
|
1172
1192
|
return /* @__PURE__ */ jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx(
|
|
1173
1193
|
"div",
|
|
1174
1194
|
{
|
|
@@ -1236,62 +1256,73 @@ function FormMessage({ className, ...props }) {
|
|
|
1236
1256
|
}
|
|
1237
1257
|
);
|
|
1238
1258
|
}
|
|
1239
|
-
var Textarea =
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1259
|
+
var Textarea = ({
|
|
1260
|
+
ref,
|
|
1261
|
+
className,
|
|
1262
|
+
autoResize = false,
|
|
1263
|
+
minHeight = 50,
|
|
1264
|
+
maxHeight = 350,
|
|
1265
|
+
size = "default",
|
|
1266
|
+
onChange,
|
|
1267
|
+
...props
|
|
1268
|
+
}) => {
|
|
1269
|
+
const internalRef = React6.useRef(null);
|
|
1270
|
+
React6.useImperativeHandle(ref, () => internalRef.current);
|
|
1271
|
+
const sizeClasses = {
|
|
1272
|
+
sm: "min-h-11 h-11",
|
|
1273
|
+
// 44px / 2.75rem - exact height
|
|
1274
|
+
default: "min-h-[60px]",
|
|
1275
|
+
// 60px / 3.75rem
|
|
1276
|
+
lg: "min-h-20"
|
|
1277
|
+
// 80px / 5rem
|
|
1278
|
+
};
|
|
1279
|
+
const paddingClasses = {
|
|
1280
|
+
sm: "py-3",
|
|
1281
|
+
// 12px top + 12px bottom + 20px line-height = 44px
|
|
1282
|
+
default: "py-2",
|
|
1283
|
+
// 8px top + 8px bottom (default)
|
|
1284
|
+
lg: "py-2"
|
|
1285
|
+
// 8px top + 8px bottom (default)
|
|
1286
|
+
};
|
|
1287
|
+
const handleResize = React6.useCallback(() => {
|
|
1288
|
+
if (autoResize && size !== "sm" && internalRef.current) {
|
|
1289
|
+
const textarea = internalRef.current;
|
|
1290
|
+
textarea.style.height = "auto";
|
|
1291
|
+
const scrollHeight = textarea.scrollHeight;
|
|
1292
|
+
textarea.style.height = `${Math.min(Math.max(scrollHeight, minHeight), maxHeight)}px`;
|
|
1293
|
+
}
|
|
1294
|
+
}, [autoResize, size, minHeight, maxHeight]);
|
|
1295
|
+
React6.useEffect(() => {
|
|
1296
|
+
handleResize();
|
|
1297
|
+
}, [handleResize, props.value]);
|
|
1298
|
+
const handleChange = React6.useCallback(
|
|
1299
|
+
(e) => {
|
|
1268
1300
|
handleResize();
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
className
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
...props
|
|
1289
|
-
}
|
|
1290
|
-
);
|
|
1291
|
-
}
|
|
1292
|
-
);
|
|
1301
|
+
onChange?.(e);
|
|
1302
|
+
},
|
|
1303
|
+
[onChange, handleResize]
|
|
1304
|
+
);
|
|
1305
|
+
return /* @__PURE__ */ jsx(
|
|
1306
|
+
"textarea",
|
|
1307
|
+
{
|
|
1308
|
+
className: cn(
|
|
1309
|
+
"flex w-full rounded-md border border-input bg-transparent px-3 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
1310
|
+
sizeClasses[size],
|
|
1311
|
+
paddingClasses[size],
|
|
1312
|
+
className
|
|
1313
|
+
),
|
|
1314
|
+
ref: internalRef,
|
|
1315
|
+
onChange: handleChange,
|
|
1316
|
+
...props
|
|
1317
|
+
}
|
|
1318
|
+
);
|
|
1319
|
+
};
|
|
1293
1320
|
Textarea.displayName = "Textarea";
|
|
1294
|
-
var Switch =
|
|
1321
|
+
var Switch = ({
|
|
1322
|
+
ref,
|
|
1323
|
+
className,
|
|
1324
|
+
...props
|
|
1325
|
+
}) => /* @__PURE__ */ jsx(
|
|
1295
1326
|
SwitchPrimitives.Root,
|
|
1296
1327
|
{
|
|
1297
1328
|
className: cn(
|
|
@@ -1311,7 +1342,7 @@ var Switch = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1311
1342
|
}
|
|
1312
1343
|
)
|
|
1313
1344
|
}
|
|
1314
|
-
)
|
|
1345
|
+
);
|
|
1315
1346
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
1316
1347
|
function Table({ className, ...props }) {
|
|
1317
1348
|
return /* @__PURE__ */ jsx(
|
|
@@ -1439,7 +1470,12 @@ var ChevronUpIcon = ({
|
|
|
1439
1470
|
var Select = SelectPrimitive.Root;
|
|
1440
1471
|
var SelectGroup = SelectPrimitive.Group;
|
|
1441
1472
|
var SelectValue = SelectPrimitive.Value;
|
|
1442
|
-
var SelectTrigger =
|
|
1473
|
+
var SelectTrigger = ({
|
|
1474
|
+
ref,
|
|
1475
|
+
className,
|
|
1476
|
+
children,
|
|
1477
|
+
...props
|
|
1478
|
+
}) => /* @__PURE__ */ jsxs(
|
|
1443
1479
|
SelectPrimitive.Trigger,
|
|
1444
1480
|
{
|
|
1445
1481
|
ref,
|
|
@@ -1454,9 +1490,13 @@ var SelectTrigger = React26.forwardRef(({ className, children, ...props }, ref)
|
|
|
1454
1490
|
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "h-4 w-4 opacity-50" }) })
|
|
1455
1491
|
]
|
|
1456
1492
|
}
|
|
1457
|
-
)
|
|
1493
|
+
);
|
|
1458
1494
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
1459
|
-
var SelectScrollUpButton =
|
|
1495
|
+
var SelectScrollUpButton = ({
|
|
1496
|
+
ref,
|
|
1497
|
+
className,
|
|
1498
|
+
...props
|
|
1499
|
+
}) => /* @__PURE__ */ jsx(
|
|
1460
1500
|
SelectPrimitive.ScrollUpButton,
|
|
1461
1501
|
{
|
|
1462
1502
|
ref,
|
|
@@ -1467,9 +1507,13 @@ var SelectScrollUpButton = React26.forwardRef(({ className, ...props }, ref) =>
|
|
|
1467
1507
|
...props,
|
|
1468
1508
|
children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: "h-4 w-4" })
|
|
1469
1509
|
}
|
|
1470
|
-
)
|
|
1510
|
+
);
|
|
1471
1511
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
1472
|
-
var SelectScrollDownButton =
|
|
1512
|
+
var SelectScrollDownButton = ({
|
|
1513
|
+
ref,
|
|
1514
|
+
className,
|
|
1515
|
+
...props
|
|
1516
|
+
}) => /* @__PURE__ */ jsx(
|
|
1473
1517
|
SelectPrimitive.ScrollDownButton,
|
|
1474
1518
|
{
|
|
1475
1519
|
ref,
|
|
@@ -1480,9 +1524,15 @@ var SelectScrollDownButton = React26.forwardRef(({ className, ...props }, ref) =
|
|
|
1480
1524
|
...props,
|
|
1481
1525
|
children: /* @__PURE__ */ jsx(ChevronDownIcon, { className: "h-4 w-4" })
|
|
1482
1526
|
}
|
|
1483
|
-
)
|
|
1527
|
+
);
|
|
1484
1528
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1485
|
-
var SelectContent =
|
|
1529
|
+
var SelectContent = ({
|
|
1530
|
+
ref,
|
|
1531
|
+
className,
|
|
1532
|
+
children,
|
|
1533
|
+
position = "popper",
|
|
1534
|
+
...props
|
|
1535
|
+
}) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
1486
1536
|
SelectPrimitive.Content,
|
|
1487
1537
|
{
|
|
1488
1538
|
ref,
|
|
@@ -1508,18 +1558,27 @@ var SelectContent = React26.forwardRef(({ className, children, position = "poppe
|
|
|
1508
1558
|
/* @__PURE__ */ jsx(SelectScrollDownButton, {})
|
|
1509
1559
|
]
|
|
1510
1560
|
}
|
|
1511
|
-
) })
|
|
1561
|
+
) });
|
|
1512
1562
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
1513
|
-
var SelectLabel =
|
|
1563
|
+
var SelectLabel = ({
|
|
1564
|
+
ref,
|
|
1565
|
+
className,
|
|
1566
|
+
...props
|
|
1567
|
+
}) => /* @__PURE__ */ jsx(
|
|
1514
1568
|
SelectPrimitive.Label,
|
|
1515
1569
|
{
|
|
1516
1570
|
ref,
|
|
1517
1571
|
className: cn("px-2 py-1.5 text-sm font-semibold", className),
|
|
1518
1572
|
...props
|
|
1519
1573
|
}
|
|
1520
|
-
)
|
|
1574
|
+
);
|
|
1521
1575
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
1522
|
-
var SelectItem =
|
|
1576
|
+
var SelectItem = ({
|
|
1577
|
+
ref,
|
|
1578
|
+
className,
|
|
1579
|
+
children,
|
|
1580
|
+
...props
|
|
1581
|
+
}) => /* @__PURE__ */ jsxs(
|
|
1523
1582
|
SelectPrimitive.Item,
|
|
1524
1583
|
{
|
|
1525
1584
|
ref,
|
|
@@ -1533,16 +1592,20 @@ var SelectItem = React26.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
1533
1592
|
/* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
|
|
1534
1593
|
]
|
|
1535
1594
|
}
|
|
1536
|
-
)
|
|
1595
|
+
);
|
|
1537
1596
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
1538
|
-
var SelectSeparator =
|
|
1597
|
+
var SelectSeparator = ({
|
|
1598
|
+
ref,
|
|
1599
|
+
className,
|
|
1600
|
+
...props
|
|
1601
|
+
}) => /* @__PURE__ */ jsx(
|
|
1539
1602
|
SelectPrimitive.Separator,
|
|
1540
1603
|
{
|
|
1541
1604
|
ref,
|
|
1542
1605
|
className: cn("-mx-1 my-1 h-px bg-muted", className),
|
|
1543
1606
|
...props
|
|
1544
1607
|
}
|
|
1545
|
-
)
|
|
1608
|
+
);
|
|
1546
1609
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
1547
1610
|
function DataTablePagination({
|
|
1548
1611
|
table,
|
|
@@ -1651,10 +1714,10 @@ function DataTable({
|
|
|
1651
1714
|
pageSize = 10,
|
|
1652
1715
|
noResultsMessage = "No results."
|
|
1653
1716
|
}) {
|
|
1654
|
-
const [sorting, setSorting] =
|
|
1655
|
-
const [columnFilters, setColumnFilters] =
|
|
1656
|
-
const [columnVisibility, setColumnVisibility] =
|
|
1657
|
-
const [rowSelection, setRowSelection] =
|
|
1717
|
+
const [sorting, setSorting] = React6.useState([]);
|
|
1718
|
+
const [columnFilters, setColumnFilters] = React6.useState([]);
|
|
1719
|
+
const [columnVisibility, setColumnVisibility] = React6.useState({});
|
|
1720
|
+
const [rowSelection, setRowSelection] = React6.useState({});
|
|
1658
1721
|
const internalTable = useReactTable({
|
|
1659
1722
|
data,
|
|
1660
1723
|
columns,
|
|
@@ -1727,7 +1790,13 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
|
1727
1790
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
1728
1791
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
1729
1792
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
1730
|
-
var DropdownMenuSubTrigger =
|
|
1793
|
+
var DropdownMenuSubTrigger = ({
|
|
1794
|
+
ref,
|
|
1795
|
+
className,
|
|
1796
|
+
inset,
|
|
1797
|
+
children,
|
|
1798
|
+
...props
|
|
1799
|
+
}) => /* @__PURE__ */ jsxs(
|
|
1731
1800
|
DropdownMenuPrimitive.SubTrigger,
|
|
1732
1801
|
{
|
|
1733
1802
|
ref,
|
|
@@ -1742,9 +1811,14 @@ var DropdownMenuSubTrigger = React26.forwardRef(({ className, inset, children, .
|
|
|
1742
1811
|
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "ms-auto rtl:rotate-180" })
|
|
1743
1812
|
]
|
|
1744
1813
|
}
|
|
1745
|
-
)
|
|
1814
|
+
);
|
|
1746
1815
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
1747
|
-
var DropdownMenuSubContent =
|
|
1816
|
+
var DropdownMenuSubContent = ({
|
|
1817
|
+
ref,
|
|
1818
|
+
className,
|
|
1819
|
+
container,
|
|
1820
|
+
...props
|
|
1821
|
+
}) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { container: container ?? void 0, children: /* @__PURE__ */ jsx(
|
|
1748
1822
|
DropdownMenuPrimitive.SubContent,
|
|
1749
1823
|
{
|
|
1750
1824
|
ref,
|
|
@@ -1754,9 +1828,15 @@ var DropdownMenuSubContent = React26.forwardRef(({ className, container, ...prop
|
|
|
1754
1828
|
),
|
|
1755
1829
|
...props
|
|
1756
1830
|
}
|
|
1757
|
-
) })
|
|
1831
|
+
) });
|
|
1758
1832
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
1759
|
-
var DropdownMenuContent =
|
|
1833
|
+
var DropdownMenuContent = ({
|
|
1834
|
+
ref,
|
|
1835
|
+
className,
|
|
1836
|
+
sideOffset = 4,
|
|
1837
|
+
container,
|
|
1838
|
+
...props
|
|
1839
|
+
}) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { container: container ?? void 0, children: /* @__PURE__ */ jsx(
|
|
1760
1840
|
DropdownMenuPrimitive.Content,
|
|
1761
1841
|
{
|
|
1762
1842
|
ref,
|
|
@@ -1768,9 +1848,14 @@ var DropdownMenuContent = React26.forwardRef(({ className, sideOffset = 4, conta
|
|
|
1768
1848
|
),
|
|
1769
1849
|
...props
|
|
1770
1850
|
}
|
|
1771
|
-
) })
|
|
1851
|
+
) });
|
|
1772
1852
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1773
|
-
var DropdownMenuItem =
|
|
1853
|
+
var DropdownMenuItem = ({
|
|
1854
|
+
ref,
|
|
1855
|
+
className,
|
|
1856
|
+
inset,
|
|
1857
|
+
...props
|
|
1858
|
+
}) => /* @__PURE__ */ jsx(
|
|
1774
1859
|
DropdownMenuPrimitive.Item,
|
|
1775
1860
|
{
|
|
1776
1861
|
ref,
|
|
@@ -1781,9 +1866,15 @@ var DropdownMenuItem = React26.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1781
1866
|
),
|
|
1782
1867
|
...props
|
|
1783
1868
|
}
|
|
1784
|
-
)
|
|
1869
|
+
);
|
|
1785
1870
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
1786
|
-
var DropdownMenuCheckboxItem =
|
|
1871
|
+
var DropdownMenuCheckboxItem = ({
|
|
1872
|
+
ref,
|
|
1873
|
+
className,
|
|
1874
|
+
children,
|
|
1875
|
+
checked,
|
|
1876
|
+
...props
|
|
1877
|
+
}) => /* @__PURE__ */ jsxs(
|
|
1787
1878
|
DropdownMenuPrimitive.CheckboxItem,
|
|
1788
1879
|
{
|
|
1789
1880
|
ref,
|
|
@@ -1798,9 +1889,14 @@ var DropdownMenuCheckboxItem = React26.forwardRef(({ className, children, checke
|
|
|
1798
1889
|
children
|
|
1799
1890
|
]
|
|
1800
1891
|
}
|
|
1801
|
-
)
|
|
1892
|
+
);
|
|
1802
1893
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
1803
|
-
var DropdownMenuRadioItem =
|
|
1894
|
+
var DropdownMenuRadioItem = ({
|
|
1895
|
+
ref,
|
|
1896
|
+
className,
|
|
1897
|
+
children,
|
|
1898
|
+
...props
|
|
1899
|
+
}) => /* @__PURE__ */ jsxs(
|
|
1804
1900
|
DropdownMenuPrimitive.RadioItem,
|
|
1805
1901
|
{
|
|
1806
1902
|
ref,
|
|
@@ -1814,9 +1910,14 @@ var DropdownMenuRadioItem = React26.forwardRef(({ className, children, ...props
|
|
|
1814
1910
|
children
|
|
1815
1911
|
]
|
|
1816
1912
|
}
|
|
1817
|
-
)
|
|
1913
|
+
);
|
|
1818
1914
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
1819
|
-
var DropdownMenuLabel =
|
|
1915
|
+
var DropdownMenuLabel = ({
|
|
1916
|
+
ref,
|
|
1917
|
+
className,
|
|
1918
|
+
inset,
|
|
1919
|
+
...props
|
|
1920
|
+
}) => /* @__PURE__ */ jsx(
|
|
1820
1921
|
DropdownMenuPrimitive.Label,
|
|
1821
1922
|
{
|
|
1822
1923
|
ref,
|
|
@@ -1827,16 +1928,20 @@ var DropdownMenuLabel = React26.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1827
1928
|
),
|
|
1828
1929
|
...props
|
|
1829
1930
|
}
|
|
1830
|
-
)
|
|
1931
|
+
);
|
|
1831
1932
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
1832
|
-
var DropdownMenuSeparator =
|
|
1933
|
+
var DropdownMenuSeparator = ({
|
|
1934
|
+
ref,
|
|
1935
|
+
className,
|
|
1936
|
+
...props
|
|
1937
|
+
}) => /* @__PURE__ */ jsx(
|
|
1833
1938
|
DropdownMenuPrimitive.Separator,
|
|
1834
1939
|
{
|
|
1835
1940
|
ref,
|
|
1836
1941
|
className: cn("-mx-1 my-1 h-px bg-muted", className),
|
|
1837
1942
|
...props
|
|
1838
1943
|
}
|
|
1839
|
-
)
|
|
1944
|
+
);
|
|
1840
1945
|
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
1841
1946
|
var DropdownMenuShortcut = ({
|
|
1842
1947
|
className,
|
|
@@ -1944,23 +2049,31 @@ function Skeleton({
|
|
|
1944
2049
|
}
|
|
1945
2050
|
);
|
|
1946
2051
|
}
|
|
1947
|
-
var Spinner =
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
2052
|
+
var Spinner = ({
|
|
2053
|
+
ref,
|
|
2054
|
+
className,
|
|
2055
|
+
icon: Icon2 = Loader2,
|
|
2056
|
+
size = "size-4",
|
|
2057
|
+
...props
|
|
2058
|
+
}) => {
|
|
2059
|
+
const textColorClasses = className?.match(/\btext-\S+/g)?.join(" ") || "";
|
|
2060
|
+
const wrapperClasses = trim(className?.replace(/\btext-\S+/g, "") || "");
|
|
2061
|
+
return /* @__PURE__ */ jsx(
|
|
2062
|
+
"div",
|
|
2063
|
+
{
|
|
2064
|
+
ref,
|
|
2065
|
+
className: cn("inline-flex items-center justify-center", wrapperClasses),
|
|
2066
|
+
...props,
|
|
2067
|
+
children: /* @__PURE__ */ jsx(Icon2, { className: cn("animate-spin", size, textColorClasses) })
|
|
2068
|
+
}
|
|
2069
|
+
);
|
|
2070
|
+
};
|
|
1962
2071
|
Spinner.displayName = "Spinner";
|
|
1963
|
-
var Slider =
|
|
2072
|
+
var Slider = ({
|
|
2073
|
+
ref,
|
|
2074
|
+
className,
|
|
2075
|
+
...props
|
|
2076
|
+
}) => /* @__PURE__ */ jsx(
|
|
1964
2077
|
SliderPrimitive.Root,
|
|
1965
2078
|
{
|
|
1966
2079
|
ref,
|
|
@@ -1970,9 +2083,13 @@ var Slider = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1970
2083
|
),
|
|
1971
2084
|
...props
|
|
1972
2085
|
}
|
|
1973
|
-
)
|
|
2086
|
+
);
|
|
1974
2087
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
1975
|
-
var SliderTrack =
|
|
2088
|
+
var SliderTrack = ({
|
|
2089
|
+
ref,
|
|
2090
|
+
className,
|
|
2091
|
+
...props
|
|
2092
|
+
}) => /* @__PURE__ */ jsx(
|
|
1976
2093
|
SliderPrimitive.Track,
|
|
1977
2094
|
{
|
|
1978
2095
|
ref,
|
|
@@ -1982,18 +2099,26 @@ var SliderTrack = React26.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1982
2099
|
),
|
|
1983
2100
|
...props
|
|
1984
2101
|
}
|
|
1985
|
-
)
|
|
2102
|
+
);
|
|
1986
2103
|
SliderTrack.displayName = SliderPrimitive.Track.displayName;
|
|
1987
|
-
var SliderRange =
|
|
2104
|
+
var SliderRange = ({
|
|
2105
|
+
ref,
|
|
2106
|
+
className,
|
|
2107
|
+
...props
|
|
2108
|
+
}) => /* @__PURE__ */ jsx(
|
|
1988
2109
|
SliderPrimitive.Range,
|
|
1989
2110
|
{
|
|
1990
2111
|
ref,
|
|
1991
2112
|
className: cn("absolute h-full bg-primary", className),
|
|
1992
2113
|
...props
|
|
1993
2114
|
}
|
|
1994
|
-
)
|
|
2115
|
+
);
|
|
1995
2116
|
SliderRange.displayName = SliderPrimitive.Range.displayName;
|
|
1996
|
-
var SliderThumb =
|
|
2117
|
+
var SliderThumb = ({
|
|
2118
|
+
ref,
|
|
2119
|
+
className,
|
|
2120
|
+
...props
|
|
2121
|
+
}) => /* @__PURE__ */ jsx(
|
|
1997
2122
|
SliderPrimitive.Thumb,
|
|
1998
2123
|
{
|
|
1999
2124
|
ref,
|
|
@@ -2003,9 +2128,14 @@ var SliderThumb = React26.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2003
2128
|
),
|
|
2004
2129
|
...props
|
|
2005
2130
|
}
|
|
2006
|
-
)
|
|
2131
|
+
);
|
|
2007
2132
|
SliderThumb.displayName = SliderPrimitive.Thumb.displayName;
|
|
2008
|
-
var Progress =
|
|
2133
|
+
var Progress = ({
|
|
2134
|
+
ref,
|
|
2135
|
+
className,
|
|
2136
|
+
value,
|
|
2137
|
+
...props
|
|
2138
|
+
}) => /* @__PURE__ */ jsx(
|
|
2009
2139
|
ProgressPrimitive.Root,
|
|
2010
2140
|
{
|
|
2011
2141
|
ref,
|
|
@@ -2022,7 +2152,7 @@ var Progress = React26.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
2022
2152
|
}
|
|
2023
2153
|
)
|
|
2024
2154
|
}
|
|
2025
|
-
)
|
|
2155
|
+
);
|
|
2026
2156
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
2027
2157
|
var Toaster = ({ ...props }) => {
|
|
2028
2158
|
return /* @__PURE__ */ jsx(
|
|
@@ -2075,9 +2205,17 @@ var Tooltip = ({
|
|
|
2075
2205
|
...props
|
|
2076
2206
|
}) => /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(TooltipPrimitive.Root, { ...props }) });
|
|
2077
2207
|
Tooltip.displayName = TooltipPrimitive.Root.displayName;
|
|
2078
|
-
var TooltipTrigger =
|
|
2208
|
+
var TooltipTrigger = ({
|
|
2209
|
+
ref,
|
|
2210
|
+
...props
|
|
2211
|
+
}) => /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { ref, ...props });
|
|
2079
2212
|
TooltipTrigger.displayName = TooltipPrimitive.Trigger.displayName;
|
|
2080
|
-
var TooltipContent =
|
|
2213
|
+
var TooltipContent = ({
|
|
2214
|
+
ref,
|
|
2215
|
+
className,
|
|
2216
|
+
sideOffset = 4,
|
|
2217
|
+
...props
|
|
2218
|
+
}) => /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
2081
2219
|
TooltipPrimitive.Content,
|
|
2082
2220
|
{
|
|
2083
2221
|
ref,
|
|
@@ -2088,20 +2226,29 @@ var TooltipContent = React26.forwardRef(({ className, sideOffset = 4, ...props }
|
|
|
2088
2226
|
),
|
|
2089
2227
|
...props
|
|
2090
2228
|
}
|
|
2091
|
-
) })
|
|
2229
|
+
) });
|
|
2092
2230
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
2093
2231
|
var Popover = PopoverPrimitive.Root;
|
|
2094
2232
|
Popover.displayName = "Popover";
|
|
2095
|
-
var PopoverTrigger =
|
|
2233
|
+
var PopoverTrigger = ({
|
|
2234
|
+
ref,
|
|
2235
|
+
...props
|
|
2236
|
+
}) => /* @__PURE__ */ jsx(
|
|
2096
2237
|
PopoverPrimitive.Trigger,
|
|
2097
2238
|
{
|
|
2098
2239
|
ref,
|
|
2099
2240
|
"data-slot": "popover-trigger",
|
|
2100
2241
|
...props
|
|
2101
2242
|
}
|
|
2102
|
-
)
|
|
2243
|
+
);
|
|
2103
2244
|
PopoverTrigger.displayName = "PopoverTrigger";
|
|
2104
|
-
var PopoverContent =
|
|
2245
|
+
var PopoverContent = ({
|
|
2246
|
+
ref,
|
|
2247
|
+
className,
|
|
2248
|
+
align = "center",
|
|
2249
|
+
sideOffset = 4,
|
|
2250
|
+
...props
|
|
2251
|
+
}) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
2105
2252
|
PopoverPrimitive.Content,
|
|
2106
2253
|
{
|
|
2107
2254
|
ref,
|
|
@@ -2114,29 +2261,41 @@ var PopoverContent = React26.forwardRef(({ className, align = "center", sideOffs
|
|
|
2114
2261
|
),
|
|
2115
2262
|
...props
|
|
2116
2263
|
}
|
|
2117
|
-
) })
|
|
2264
|
+
) });
|
|
2118
2265
|
PopoverContent.displayName = "PopoverContent";
|
|
2119
|
-
var PopoverAnchor =
|
|
2266
|
+
var PopoverAnchor = ({
|
|
2267
|
+
ref,
|
|
2268
|
+
...props
|
|
2269
|
+
}) => /* @__PURE__ */ jsx(
|
|
2120
2270
|
PopoverPrimitive.Anchor,
|
|
2121
2271
|
{
|
|
2122
2272
|
ref,
|
|
2123
2273
|
"data-slot": "popover-anchor",
|
|
2124
2274
|
...props
|
|
2125
2275
|
}
|
|
2126
|
-
)
|
|
2276
|
+
);
|
|
2127
2277
|
PopoverAnchor.displayName = "PopoverAnchor";
|
|
2128
2278
|
var HoverCard = HoverCardPrimitive.Root;
|
|
2129
2279
|
HoverCard.displayName = "HoverCard";
|
|
2130
|
-
var HoverCardTrigger =
|
|
2280
|
+
var HoverCardTrigger = ({
|
|
2281
|
+
ref,
|
|
2282
|
+
...props
|
|
2283
|
+
}) => /* @__PURE__ */ jsx(
|
|
2131
2284
|
HoverCardPrimitive.Trigger,
|
|
2132
2285
|
{
|
|
2133
2286
|
ref,
|
|
2134
2287
|
"data-slot": "hover-card-trigger",
|
|
2135
2288
|
...props
|
|
2136
2289
|
}
|
|
2137
|
-
)
|
|
2290
|
+
);
|
|
2138
2291
|
HoverCardTrigger.displayName = "HoverCardTrigger";
|
|
2139
|
-
var HoverCardContent =
|
|
2292
|
+
var HoverCardContent = ({
|
|
2293
|
+
ref,
|
|
2294
|
+
className,
|
|
2295
|
+
align = "center",
|
|
2296
|
+
sideOffset = 4,
|
|
2297
|
+
...props
|
|
2298
|
+
}) => /* @__PURE__ */ jsx(HoverCardPrimitive.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsx(
|
|
2140
2299
|
HoverCardPrimitive.Content,
|
|
2141
2300
|
{
|
|
2142
2301
|
ref,
|
|
@@ -2149,9 +2308,13 @@ var HoverCardContent = React26.forwardRef(({ className, align = "center", sideOf
|
|
|
2149
2308
|
),
|
|
2150
2309
|
...props
|
|
2151
2310
|
}
|
|
2152
|
-
) })
|
|
2311
|
+
) });
|
|
2153
2312
|
HoverCardContent.displayName = "HoverCardContent";
|
|
2154
|
-
var Card =
|
|
2313
|
+
var Card = ({
|
|
2314
|
+
ref,
|
|
2315
|
+
className,
|
|
2316
|
+
...props
|
|
2317
|
+
}) => /* @__PURE__ */ jsx(
|
|
2155
2318
|
"div",
|
|
2156
2319
|
{
|
|
2157
2320
|
ref,
|
|
@@ -2161,63 +2324,90 @@ var Card = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
2161
2324
|
),
|
|
2162
2325
|
...props
|
|
2163
2326
|
}
|
|
2164
|
-
)
|
|
2327
|
+
);
|
|
2165
2328
|
Card.displayName = "Card";
|
|
2166
|
-
var CardHeader =
|
|
2329
|
+
var CardHeader = ({
|
|
2330
|
+
ref,
|
|
2331
|
+
className,
|
|
2332
|
+
...props
|
|
2333
|
+
}) => /* @__PURE__ */ jsx(
|
|
2167
2334
|
"div",
|
|
2168
2335
|
{
|
|
2169
2336
|
ref,
|
|
2170
2337
|
className: cn("flex flex-col space-y-1.5 p-6", className),
|
|
2171
2338
|
...props
|
|
2172
2339
|
}
|
|
2173
|
-
)
|
|
2340
|
+
);
|
|
2174
2341
|
CardHeader.displayName = "CardHeader";
|
|
2175
|
-
var CardTitle =
|
|
2342
|
+
var CardTitle = ({
|
|
2343
|
+
ref,
|
|
2344
|
+
className,
|
|
2345
|
+
...props
|
|
2346
|
+
}) => /* @__PURE__ */ jsx(
|
|
2176
2347
|
"div",
|
|
2177
2348
|
{
|
|
2178
2349
|
ref,
|
|
2179
2350
|
className: cn("font-semibold leading-none tracking-tight", className),
|
|
2180
2351
|
...props
|
|
2181
2352
|
}
|
|
2182
|
-
)
|
|
2353
|
+
);
|
|
2183
2354
|
CardTitle.displayName = "CardTitle";
|
|
2184
|
-
var CardDescription =
|
|
2355
|
+
var CardDescription = ({
|
|
2356
|
+
ref,
|
|
2357
|
+
className,
|
|
2358
|
+
...props
|
|
2359
|
+
}) => /* @__PURE__ */ jsx(
|
|
2185
2360
|
"div",
|
|
2186
2361
|
{
|
|
2187
2362
|
ref,
|
|
2188
2363
|
className: cn("text-sm text-muted-foreground", className),
|
|
2189
2364
|
...props
|
|
2190
2365
|
}
|
|
2191
|
-
)
|
|
2366
|
+
);
|
|
2192
2367
|
CardDescription.displayName = "CardDescription";
|
|
2193
|
-
var CardContent =
|
|
2368
|
+
var CardContent = ({
|
|
2369
|
+
ref,
|
|
2370
|
+
className,
|
|
2371
|
+
...props
|
|
2372
|
+
}) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-6 pt-0", className), ...props });
|
|
2194
2373
|
CardContent.displayName = "CardContent";
|
|
2195
|
-
var CardFooter =
|
|
2374
|
+
var CardFooter = ({
|
|
2375
|
+
ref,
|
|
2376
|
+
className,
|
|
2377
|
+
...props
|
|
2378
|
+
}) => /* @__PURE__ */ jsx(
|
|
2196
2379
|
"div",
|
|
2197
2380
|
{
|
|
2198
2381
|
ref,
|
|
2199
2382
|
className: cn("flex items-center p-6 pt-0", className),
|
|
2200
2383
|
...props
|
|
2201
2384
|
}
|
|
2202
|
-
));
|
|
2203
|
-
CardFooter.displayName = "CardFooter";
|
|
2204
|
-
var Header = React26__default.forwardRef(
|
|
2205
|
-
({ children, className }, ref) => {
|
|
2206
|
-
return /* @__PURE__ */ jsx(
|
|
2207
|
-
"header",
|
|
2208
|
-
{
|
|
2209
|
-
ref,
|
|
2210
|
-
className: cn(
|
|
2211
|
-
"flex items-center justify-end px-6 py-4 bg-background border-b border-border h-16 w-full",
|
|
2212
|
-
className
|
|
2213
|
-
),
|
|
2214
|
-
children: /* @__PURE__ */ jsx("div", { className: "flex items-center gap-4", children })
|
|
2215
|
-
}
|
|
2216
|
-
);
|
|
2217
|
-
}
|
|
2218
2385
|
);
|
|
2386
|
+
CardFooter.displayName = "CardFooter";
|
|
2387
|
+
var Header = ({
|
|
2388
|
+
ref,
|
|
2389
|
+
children,
|
|
2390
|
+
className
|
|
2391
|
+
}) => {
|
|
2392
|
+
return /* @__PURE__ */ jsx(
|
|
2393
|
+
"header",
|
|
2394
|
+
{
|
|
2395
|
+
ref,
|
|
2396
|
+
className: cn(
|
|
2397
|
+
"flex items-center justify-end px-6 py-4 bg-background border-b border-border h-16 w-full",
|
|
2398
|
+
className
|
|
2399
|
+
),
|
|
2400
|
+
children: /* @__PURE__ */ jsx("div", { className: "flex items-center gap-4", children })
|
|
2401
|
+
}
|
|
2402
|
+
);
|
|
2403
|
+
};
|
|
2219
2404
|
Header.displayName = "Header";
|
|
2220
|
-
var NavigationMenu =
|
|
2405
|
+
var NavigationMenu = ({
|
|
2406
|
+
ref,
|
|
2407
|
+
className,
|
|
2408
|
+
children,
|
|
2409
|
+
...props
|
|
2410
|
+
}) => /* @__PURE__ */ jsxs(
|
|
2221
2411
|
NavigationMenuPrimitive.Root,
|
|
2222
2412
|
{
|
|
2223
2413
|
ref,
|
|
@@ -2231,9 +2421,13 @@ var NavigationMenu = React26.forwardRef(({ className, children, ...props }, ref)
|
|
|
2231
2421
|
/* @__PURE__ */ jsx(NavigationMenuViewport, {})
|
|
2232
2422
|
]
|
|
2233
2423
|
}
|
|
2234
|
-
)
|
|
2424
|
+
);
|
|
2235
2425
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
2236
|
-
var NavigationMenuList =
|
|
2426
|
+
var NavigationMenuList = ({
|
|
2427
|
+
ref,
|
|
2428
|
+
className,
|
|
2429
|
+
...props
|
|
2430
|
+
}) => /* @__PURE__ */ jsx(
|
|
2237
2431
|
NavigationMenuPrimitive.List,
|
|
2238
2432
|
{
|
|
2239
2433
|
ref,
|
|
@@ -2243,13 +2437,18 @@ var NavigationMenuList = React26.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2243
2437
|
),
|
|
2244
2438
|
...props
|
|
2245
2439
|
}
|
|
2246
|
-
)
|
|
2440
|
+
);
|
|
2247
2441
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
2248
2442
|
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
2249
2443
|
var navigationMenuTriggerStyle = cva(
|
|
2250
2444
|
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"
|
|
2251
2445
|
);
|
|
2252
|
-
var NavigationMenuTrigger =
|
|
2446
|
+
var NavigationMenuTrigger = ({
|
|
2447
|
+
ref,
|
|
2448
|
+
className,
|
|
2449
|
+
children,
|
|
2450
|
+
...props
|
|
2451
|
+
}) => /* @__PURE__ */ jsxs(
|
|
2253
2452
|
NavigationMenuPrimitive.Trigger,
|
|
2254
2453
|
{
|
|
2255
2454
|
ref,
|
|
@@ -2267,9 +2466,13 @@ var NavigationMenuTrigger = React26.forwardRef(({ className, children, ...props
|
|
|
2267
2466
|
)
|
|
2268
2467
|
]
|
|
2269
2468
|
}
|
|
2270
|
-
)
|
|
2469
|
+
);
|
|
2271
2470
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
2272
|
-
var NavigationMenuContent =
|
|
2471
|
+
var NavigationMenuContent = ({
|
|
2472
|
+
ref,
|
|
2473
|
+
className,
|
|
2474
|
+
...props
|
|
2475
|
+
}) => /* @__PURE__ */ jsx(
|
|
2273
2476
|
NavigationMenuPrimitive.Content,
|
|
2274
2477
|
{
|
|
2275
2478
|
ref,
|
|
@@ -2279,10 +2482,14 @@ var NavigationMenuContent = React26.forwardRef(({ className, ...props }, ref) =>
|
|
|
2279
2482
|
),
|
|
2280
2483
|
...props
|
|
2281
2484
|
}
|
|
2282
|
-
)
|
|
2485
|
+
);
|
|
2283
2486
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
2284
2487
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
2285
|
-
var NavigationMenuViewport =
|
|
2488
|
+
var NavigationMenuViewport = ({
|
|
2489
|
+
ref,
|
|
2490
|
+
className,
|
|
2491
|
+
...props
|
|
2492
|
+
}) => /* @__PURE__ */ jsx("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx(
|
|
2286
2493
|
NavigationMenuPrimitive.Viewport,
|
|
2287
2494
|
{
|
|
2288
2495
|
className: cn(
|
|
@@ -2292,9 +2499,13 @@ var NavigationMenuViewport = React26.forwardRef(({ className, ...props }, ref) =
|
|
|
2292
2499
|
ref,
|
|
2293
2500
|
...props
|
|
2294
2501
|
}
|
|
2295
|
-
) })
|
|
2502
|
+
) });
|
|
2296
2503
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
2297
|
-
var NavigationMenuIndicator =
|
|
2504
|
+
var NavigationMenuIndicator = ({
|
|
2505
|
+
ref,
|
|
2506
|
+
className,
|
|
2507
|
+
...props
|
|
2508
|
+
}) => /* @__PURE__ */ jsx(
|
|
2298
2509
|
NavigationMenuPrimitive.Indicator,
|
|
2299
2510
|
{
|
|
2300
2511
|
ref,
|
|
@@ -2305,7 +2516,7 @@ var NavigationMenuIndicator = React26.forwardRef(({ className, ...props }, ref)
|
|
|
2305
2516
|
...props,
|
|
2306
2517
|
children: /* @__PURE__ */ jsx("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
2307
2518
|
}
|
|
2308
|
-
)
|
|
2519
|
+
);
|
|
2309
2520
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
2310
2521
|
function Breadcrumb({ ...props }) {
|
|
2311
2522
|
return /* @__PURE__ */ jsx("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...props });
|
|
@@ -2818,7 +3029,11 @@ var Sheet = SheetPrimitive.Root;
|
|
|
2818
3029
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
2819
3030
|
var SheetClose = SheetPrimitive.Close;
|
|
2820
3031
|
var SheetPortal = SheetPrimitive.Portal;
|
|
2821
|
-
var SheetOverlay =
|
|
3032
|
+
var SheetOverlay = ({
|
|
3033
|
+
ref,
|
|
3034
|
+
className,
|
|
3035
|
+
...props
|
|
3036
|
+
}) => /* @__PURE__ */ jsx(
|
|
2822
3037
|
SheetPrimitive.Overlay,
|
|
2823
3038
|
{
|
|
2824
3039
|
className: cn(
|
|
@@ -2828,7 +3043,7 @@ var SheetOverlay = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2828
3043
|
...props,
|
|
2829
3044
|
ref
|
|
2830
3045
|
}
|
|
2831
|
-
)
|
|
3046
|
+
);
|
|
2832
3047
|
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
2833
3048
|
var sheetVariants = cva(
|
|
2834
3049
|
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
@@ -2846,7 +3061,13 @@ var sheetVariants = cva(
|
|
|
2846
3061
|
}
|
|
2847
3062
|
}
|
|
2848
3063
|
);
|
|
2849
|
-
var SheetContent =
|
|
3064
|
+
var SheetContent = ({
|
|
3065
|
+
ref,
|
|
3066
|
+
side = "right",
|
|
3067
|
+
className,
|
|
3068
|
+
children,
|
|
3069
|
+
...props
|
|
3070
|
+
}) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
|
|
2850
3071
|
/* @__PURE__ */ jsx(SheetOverlay, {}),
|
|
2851
3072
|
/* @__PURE__ */ jsxs(
|
|
2852
3073
|
SheetPrimitive.Content,
|
|
@@ -2863,7 +3084,7 @@ var SheetContent = React26.forwardRef(({ side = "right", className, children, ..
|
|
|
2863
3084
|
]
|
|
2864
3085
|
}
|
|
2865
3086
|
)
|
|
2866
|
-
] })
|
|
3087
|
+
] });
|
|
2867
3088
|
SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
2868
3089
|
var SheetHeader = ({
|
|
2869
3090
|
className,
|
|
@@ -2893,29 +3114,41 @@ var SheetFooter = ({
|
|
|
2893
3114
|
}
|
|
2894
3115
|
);
|
|
2895
3116
|
SheetFooter.displayName = "SheetFooter";
|
|
2896
|
-
var SheetTitle =
|
|
3117
|
+
var SheetTitle = ({
|
|
3118
|
+
ref,
|
|
3119
|
+
className,
|
|
3120
|
+
...props
|
|
3121
|
+
}) => /* @__PURE__ */ jsx(
|
|
2897
3122
|
SheetPrimitive.Title,
|
|
2898
3123
|
{
|
|
2899
3124
|
ref,
|
|
2900
3125
|
className: cn("text-lg font-semibold text-foreground", className),
|
|
2901
3126
|
...props
|
|
2902
3127
|
}
|
|
2903
|
-
)
|
|
3128
|
+
);
|
|
2904
3129
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
2905
|
-
var SheetDescription =
|
|
3130
|
+
var SheetDescription = ({
|
|
3131
|
+
ref,
|
|
3132
|
+
className,
|
|
3133
|
+
...props
|
|
3134
|
+
}) => /* @__PURE__ */ jsx(
|
|
2906
3135
|
SheetPrimitive.Description,
|
|
2907
3136
|
{
|
|
2908
3137
|
ref,
|
|
2909
3138
|
className: cn("text-sm text-muted-foreground", className),
|
|
2910
3139
|
...props
|
|
2911
3140
|
}
|
|
2912
|
-
)
|
|
3141
|
+
);
|
|
2913
3142
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
2914
3143
|
var Dialog = SheetPrimitive.Root;
|
|
2915
3144
|
var DialogTrigger = SheetPrimitive.Trigger;
|
|
2916
3145
|
var DialogPortal = SheetPrimitive.Portal;
|
|
2917
3146
|
var DialogClose = SheetPrimitive.Close;
|
|
2918
|
-
var DialogOverlay =
|
|
3147
|
+
var DialogOverlay = ({
|
|
3148
|
+
ref,
|
|
3149
|
+
className,
|
|
3150
|
+
...props
|
|
3151
|
+
}) => /* @__PURE__ */ jsx(
|
|
2919
3152
|
SheetPrimitive.Overlay,
|
|
2920
3153
|
{
|
|
2921
3154
|
ref,
|
|
@@ -2925,9 +3158,14 @@ var DialogOverlay = React26.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2925
3158
|
),
|
|
2926
3159
|
...props
|
|
2927
3160
|
}
|
|
2928
|
-
)
|
|
3161
|
+
);
|
|
2929
3162
|
DialogOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
2930
|
-
var DialogContent =
|
|
3163
|
+
var DialogContent = ({
|
|
3164
|
+
ref,
|
|
3165
|
+
className,
|
|
3166
|
+
children,
|
|
3167
|
+
...props
|
|
3168
|
+
}) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
|
|
2931
3169
|
/* @__PURE__ */ jsx(DialogOverlay, {}),
|
|
2932
3170
|
/* @__PURE__ */ jsxs(
|
|
2933
3171
|
SheetPrimitive.Content,
|
|
@@ -2947,7 +3185,7 @@ var DialogContent = React26.forwardRef(({ className, children, ...props }, ref)
|
|
|
2947
3185
|
]
|
|
2948
3186
|
}
|
|
2949
3187
|
)
|
|
2950
|
-
] })
|
|
3188
|
+
] });
|
|
2951
3189
|
DialogContent.displayName = SheetPrimitive.Content.displayName;
|
|
2952
3190
|
var DialogHeader = ({
|
|
2953
3191
|
className,
|
|
@@ -2977,7 +3215,11 @@ var DialogFooter = ({
|
|
|
2977
3215
|
}
|
|
2978
3216
|
);
|
|
2979
3217
|
DialogFooter.displayName = "DialogFooter";
|
|
2980
|
-
var DialogTitle =
|
|
3218
|
+
var DialogTitle = ({
|
|
3219
|
+
ref,
|
|
3220
|
+
className,
|
|
3221
|
+
...props
|
|
3222
|
+
}) => /* @__PURE__ */ jsx(
|
|
2981
3223
|
SheetPrimitive.Title,
|
|
2982
3224
|
{
|
|
2983
3225
|
ref,
|
|
@@ -2987,35 +3229,46 @@ var DialogTitle = React26.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2987
3229
|
),
|
|
2988
3230
|
...props
|
|
2989
3231
|
}
|
|
2990
|
-
)
|
|
3232
|
+
);
|
|
2991
3233
|
DialogTitle.displayName = SheetPrimitive.Title.displayName;
|
|
2992
|
-
var DialogDescription =
|
|
3234
|
+
var DialogDescription = ({
|
|
3235
|
+
ref,
|
|
3236
|
+
className,
|
|
3237
|
+
...props
|
|
3238
|
+
}) => /* @__PURE__ */ jsx(
|
|
2993
3239
|
SheetPrimitive.Description,
|
|
2994
3240
|
{
|
|
2995
3241
|
ref,
|
|
2996
3242
|
className: cn("text-sm text-muted-foreground", className),
|
|
2997
3243
|
...props
|
|
2998
3244
|
}
|
|
2999
|
-
)
|
|
3245
|
+
);
|
|
3000
3246
|
DialogDescription.displayName = SheetPrimitive.Description.displayName;
|
|
3001
3247
|
var AlertDialog = ({
|
|
3002
3248
|
...props
|
|
3003
3249
|
}) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Root, { "data-slot": "alert-dialog", ...props });
|
|
3004
3250
|
AlertDialog.displayName = "AlertDialog";
|
|
3005
|
-
var AlertDialogTrigger =
|
|
3251
|
+
var AlertDialogTrigger = ({
|
|
3252
|
+
ref,
|
|
3253
|
+
...props
|
|
3254
|
+
}) => /* @__PURE__ */ jsx(
|
|
3006
3255
|
AlertDialogPrimitive.Trigger,
|
|
3007
3256
|
{
|
|
3008
3257
|
ref,
|
|
3009
3258
|
"data-slot": "alert-dialog-trigger",
|
|
3010
3259
|
...props
|
|
3011
3260
|
}
|
|
3012
|
-
)
|
|
3261
|
+
);
|
|
3013
3262
|
AlertDialogTrigger.displayName = AlertDialogPrimitive.Trigger.displayName;
|
|
3014
3263
|
var AlertDialogPortal = ({
|
|
3015
3264
|
...props
|
|
3016
3265
|
}) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Portal, { "data-slot": "alert-dialog-portal", ...props });
|
|
3017
3266
|
AlertDialogPortal.displayName = "AlertDialogPortal";
|
|
3018
|
-
var AlertDialogOverlay =
|
|
3267
|
+
var AlertDialogOverlay = ({
|
|
3268
|
+
ref,
|
|
3269
|
+
className,
|
|
3270
|
+
...props
|
|
3271
|
+
}) => /* @__PURE__ */ jsx(
|
|
3019
3272
|
AlertDialogPrimitive.Overlay,
|
|
3020
3273
|
{
|
|
3021
3274
|
ref,
|
|
@@ -3026,9 +3279,13 @@ var AlertDialogOverlay = React26.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3026
3279
|
),
|
|
3027
3280
|
...props
|
|
3028
3281
|
}
|
|
3029
|
-
)
|
|
3282
|
+
);
|
|
3030
3283
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
3031
|
-
var AlertDialogContent =
|
|
3284
|
+
var AlertDialogContent = ({
|
|
3285
|
+
ref,
|
|
3286
|
+
className,
|
|
3287
|
+
...props
|
|
3288
|
+
}) => /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [
|
|
3032
3289
|
/* @__PURE__ */ jsx(AlertDialogOverlay, {}),
|
|
3033
3290
|
/* @__PURE__ */ jsx(
|
|
3034
3291
|
AlertDialogPrimitive.Content,
|
|
@@ -3042,7 +3299,7 @@ var AlertDialogContent = React26.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3042
3299
|
...props
|
|
3043
3300
|
}
|
|
3044
3301
|
)
|
|
3045
|
-
] })
|
|
3302
|
+
] });
|
|
3046
3303
|
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
3047
3304
|
var AlertDialogHeader = ({
|
|
3048
3305
|
className,
|
|
@@ -3071,7 +3328,11 @@ var AlertDialogFooter = ({
|
|
|
3071
3328
|
}
|
|
3072
3329
|
);
|
|
3073
3330
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
3074
|
-
var AlertDialogTitle =
|
|
3331
|
+
var AlertDialogTitle = ({
|
|
3332
|
+
ref,
|
|
3333
|
+
className,
|
|
3334
|
+
...props
|
|
3335
|
+
}) => /* @__PURE__ */ jsx(
|
|
3075
3336
|
AlertDialogPrimitive.Title,
|
|
3076
3337
|
{
|
|
3077
3338
|
ref,
|
|
@@ -3079,9 +3340,13 @@ var AlertDialogTitle = React26.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
3079
3340
|
className: cn("text-lg font-semibold", className),
|
|
3080
3341
|
...props
|
|
3081
3342
|
}
|
|
3082
|
-
)
|
|
3343
|
+
);
|
|
3083
3344
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
3084
|
-
var AlertDialogDescription =
|
|
3345
|
+
var AlertDialogDescription = ({
|
|
3346
|
+
ref,
|
|
3347
|
+
className,
|
|
3348
|
+
...props
|
|
3349
|
+
}) => /* @__PURE__ */ jsx(
|
|
3085
3350
|
AlertDialogPrimitive.Description,
|
|
3086
3351
|
{
|
|
3087
3352
|
ref,
|
|
@@ -3089,39 +3354,57 @@ var AlertDialogDescription = React26.forwardRef(({ className, ...props }, ref) =
|
|
|
3089
3354
|
className: cn("text-muted-foreground text-sm", className),
|
|
3090
3355
|
...props
|
|
3091
3356
|
}
|
|
3092
|
-
)
|
|
3357
|
+
);
|
|
3093
3358
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
3094
|
-
var AlertDialogAction =
|
|
3359
|
+
var AlertDialogAction = ({
|
|
3360
|
+
ref,
|
|
3361
|
+
className,
|
|
3362
|
+
...props
|
|
3363
|
+
}) => /* @__PURE__ */ jsx(
|
|
3095
3364
|
AlertDialogPrimitive.Action,
|
|
3096
3365
|
{
|
|
3097
3366
|
ref,
|
|
3098
3367
|
className: cn(buttonVariants(), className),
|
|
3099
3368
|
...props
|
|
3100
3369
|
}
|
|
3101
|
-
)
|
|
3370
|
+
);
|
|
3102
3371
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
3103
|
-
var AlertDialogCancel =
|
|
3372
|
+
var AlertDialogCancel = ({
|
|
3373
|
+
ref,
|
|
3374
|
+
className,
|
|
3375
|
+
...props
|
|
3376
|
+
}) => /* @__PURE__ */ jsx(
|
|
3104
3377
|
AlertDialogPrimitive.Cancel,
|
|
3105
3378
|
{
|
|
3106
3379
|
ref,
|
|
3107
3380
|
className: cn(buttonVariants({ variant: "outline" /* Outline */ }), className),
|
|
3108
3381
|
...props
|
|
3109
3382
|
}
|
|
3110
|
-
)
|
|
3383
|
+
);
|
|
3111
3384
|
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
3112
3385
|
var Drawer = ({
|
|
3113
3386
|
...props
|
|
3114
3387
|
}) => /* @__PURE__ */ jsx(Drawer$1.Root, { "data-slot": "drawer", ...props });
|
|
3115
3388
|
Drawer.displayName = "Drawer";
|
|
3116
|
-
var DrawerTrigger =
|
|
3389
|
+
var DrawerTrigger = ({
|
|
3390
|
+
ref,
|
|
3391
|
+
...props
|
|
3392
|
+
}) => /* @__PURE__ */ jsx(Drawer$1.Trigger, { ref, "data-slot": "drawer-trigger", ...props });
|
|
3117
3393
|
DrawerTrigger.displayName = Drawer$1.Trigger.displayName;
|
|
3118
3394
|
var DrawerPortal = ({
|
|
3119
3395
|
...props
|
|
3120
3396
|
}) => /* @__PURE__ */ jsx(Drawer$1.Portal, { "data-slot": "drawer-portal", ...props });
|
|
3121
3397
|
DrawerPortal.displayName = "DrawerPortal";
|
|
3122
|
-
var DrawerClose =
|
|
3398
|
+
var DrawerClose = ({
|
|
3399
|
+
ref,
|
|
3400
|
+
...props
|
|
3401
|
+
}) => /* @__PURE__ */ jsx(Drawer$1.Close, { ref, "data-slot": "drawer-close", ...props });
|
|
3123
3402
|
DrawerClose.displayName = Drawer$1.Close.displayName;
|
|
3124
|
-
var DrawerOverlay =
|
|
3403
|
+
var DrawerOverlay = ({
|
|
3404
|
+
ref,
|
|
3405
|
+
className,
|
|
3406
|
+
...props
|
|
3407
|
+
}) => /* @__PURE__ */ jsx(
|
|
3125
3408
|
Drawer$1.Overlay,
|
|
3126
3409
|
{
|
|
3127
3410
|
ref,
|
|
@@ -3132,9 +3415,14 @@ var DrawerOverlay = React26.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
3132
3415
|
),
|
|
3133
3416
|
...props
|
|
3134
3417
|
}
|
|
3135
|
-
)
|
|
3418
|
+
);
|
|
3136
3419
|
DrawerOverlay.displayName = Drawer$1.Overlay.displayName;
|
|
3137
|
-
var DrawerContent =
|
|
3420
|
+
var DrawerContent = ({
|
|
3421
|
+
ref,
|
|
3422
|
+
className,
|
|
3423
|
+
children,
|
|
3424
|
+
...props
|
|
3425
|
+
}) => /* @__PURE__ */ jsxs(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
3138
3426
|
/* @__PURE__ */ jsx(DrawerOverlay, {}),
|
|
3139
3427
|
/* @__PURE__ */ jsxs(
|
|
3140
3428
|
Drawer$1.Content,
|
|
@@ -3156,7 +3444,7 @@ var DrawerContent = React26.forwardRef(({ className, children, ...props }, ref)
|
|
|
3156
3444
|
]
|
|
3157
3445
|
}
|
|
3158
3446
|
)
|
|
3159
|
-
] })
|
|
3447
|
+
] });
|
|
3160
3448
|
DrawerContent.displayName = Drawer$1.Content.displayName;
|
|
3161
3449
|
var DrawerHeader = ({
|
|
3162
3450
|
className,
|
|
@@ -3182,7 +3470,11 @@ var DrawerFooter = ({
|
|
|
3182
3470
|
}
|
|
3183
3471
|
);
|
|
3184
3472
|
DrawerFooter.displayName = "DrawerFooter";
|
|
3185
|
-
var DrawerTitle =
|
|
3473
|
+
var DrawerTitle = ({
|
|
3474
|
+
ref,
|
|
3475
|
+
className,
|
|
3476
|
+
...props
|
|
3477
|
+
}) => /* @__PURE__ */ jsx(
|
|
3186
3478
|
Drawer$1.Title,
|
|
3187
3479
|
{
|
|
3188
3480
|
ref,
|
|
@@ -3190,9 +3482,13 @@ var DrawerTitle = React26.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3190
3482
|
className: cn("text-lg font-semibold text-foreground", className),
|
|
3191
3483
|
...props
|
|
3192
3484
|
}
|
|
3193
|
-
)
|
|
3485
|
+
);
|
|
3194
3486
|
DrawerTitle.displayName = Drawer$1.Title.displayName;
|
|
3195
|
-
var DrawerDescription =
|
|
3487
|
+
var DrawerDescription = ({
|
|
3488
|
+
ref,
|
|
3489
|
+
className,
|
|
3490
|
+
...props
|
|
3491
|
+
}) => /* @__PURE__ */ jsx(
|
|
3196
3492
|
Drawer$1.Description,
|
|
3197
3493
|
{
|
|
3198
3494
|
ref,
|
|
@@ -3200,7 +3496,7 @@ var DrawerDescription = React26.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3200
3496
|
className: cn("text-sm text-muted-foreground", className),
|
|
3201
3497
|
...props
|
|
3202
3498
|
}
|
|
3203
|
-
)
|
|
3499
|
+
);
|
|
3204
3500
|
DrawerDescription.displayName = Drawer$1.Description.displayName;
|
|
3205
3501
|
function ResizablePanelGroup({
|
|
3206
3502
|
className,
|
|
@@ -3464,16 +3760,23 @@ function ItemFooter({ className, ...props }) {
|
|
|
3464
3760
|
}
|
|
3465
3761
|
);
|
|
3466
3762
|
}
|
|
3467
|
-
var Accordion =
|
|
3763
|
+
var Accordion = ({
|
|
3764
|
+
ref,
|
|
3765
|
+
...props
|
|
3766
|
+
}) => /* @__PURE__ */ jsx(
|
|
3468
3767
|
AccordionPrimitive.Root,
|
|
3469
3768
|
{
|
|
3470
3769
|
ref,
|
|
3471
3770
|
"data-slot": "accordion",
|
|
3472
3771
|
...props
|
|
3473
3772
|
}
|
|
3474
|
-
)
|
|
3773
|
+
);
|
|
3475
3774
|
Accordion.displayName = "Accordion";
|
|
3476
|
-
var AccordionItem =
|
|
3775
|
+
var AccordionItem = ({
|
|
3776
|
+
ref,
|
|
3777
|
+
className,
|
|
3778
|
+
...props
|
|
3779
|
+
}) => /* @__PURE__ */ jsx(
|
|
3477
3780
|
AccordionPrimitive.Item,
|
|
3478
3781
|
{
|
|
3479
3782
|
ref,
|
|
@@ -3481,9 +3784,14 @@ var AccordionItem = React26.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
3481
3784
|
className: cn("border-b last:border-b-0", className),
|
|
3482
3785
|
...props
|
|
3483
3786
|
}
|
|
3484
|
-
)
|
|
3787
|
+
);
|
|
3485
3788
|
AccordionItem.displayName = "AccordionItem";
|
|
3486
|
-
var AccordionTrigger =
|
|
3789
|
+
var AccordionTrigger = ({
|
|
3790
|
+
ref,
|
|
3791
|
+
className,
|
|
3792
|
+
children,
|
|
3793
|
+
...props
|
|
3794
|
+
}) => /* @__PURE__ */ jsx(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
|
|
3487
3795
|
AccordionPrimitive.Trigger,
|
|
3488
3796
|
{
|
|
3489
3797
|
ref,
|
|
@@ -3498,9 +3806,14 @@ var AccordionTrigger = React26.forwardRef(({ className, children, ...props }, re
|
|
|
3498
3806
|
/* @__PURE__ */ jsx(ChevronDownIcon, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
|
|
3499
3807
|
]
|
|
3500
3808
|
}
|
|
3501
|
-
) })
|
|
3809
|
+
) });
|
|
3502
3810
|
AccordionTrigger.displayName = "AccordionTrigger";
|
|
3503
|
-
var AccordionContent =
|
|
3811
|
+
var AccordionContent = ({
|
|
3812
|
+
ref,
|
|
3813
|
+
className,
|
|
3814
|
+
children,
|
|
3815
|
+
...props
|
|
3816
|
+
}) => /* @__PURE__ */ jsx(
|
|
3504
3817
|
AccordionPrimitive.Content,
|
|
3505
3818
|
{
|
|
3506
3819
|
ref,
|
|
@@ -3509,103 +3822,106 @@ var AccordionContent = React26.forwardRef(({ className, children, ...props }, re
|
|
|
3509
3822
|
...props,
|
|
3510
3823
|
children: /* @__PURE__ */ jsx("div", { className: cn("pt-0 pb-4", className), children })
|
|
3511
3824
|
}
|
|
3512
|
-
)
|
|
3825
|
+
);
|
|
3513
3826
|
AccordionContent.displayName = "AccordionContent";
|
|
3514
|
-
var CarouselContext =
|
|
3827
|
+
var CarouselContext = React6.createContext(null);
|
|
3515
3828
|
function useCarousel() {
|
|
3516
|
-
const context =
|
|
3829
|
+
const context = React6.useContext(CarouselContext);
|
|
3517
3830
|
if (!context) {
|
|
3518
3831
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
3519
3832
|
}
|
|
3520
3833
|
return context;
|
|
3521
3834
|
}
|
|
3522
|
-
var Carousel =
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3835
|
+
var Carousel = ({
|
|
3836
|
+
ref,
|
|
3837
|
+
orientation = "horizontal",
|
|
3838
|
+
opts,
|
|
3839
|
+
setApi,
|
|
3840
|
+
plugins,
|
|
3841
|
+
className,
|
|
3842
|
+
children,
|
|
3843
|
+
...props
|
|
3844
|
+
}) => {
|
|
3845
|
+
const [carouselRef, api] = useEmblaCarousel(
|
|
3846
|
+
{
|
|
3847
|
+
...opts,
|
|
3848
|
+
axis: orientation === "horizontal" ? "x" : "y"
|
|
3849
|
+
},
|
|
3850
|
+
plugins
|
|
3851
|
+
);
|
|
3852
|
+
const [canScrollPrev, setCanScrollPrev] = React6.useState(false);
|
|
3853
|
+
const [canScrollNext, setCanScrollNext] = React6.useState(false);
|
|
3854
|
+
const onSelect = React6.useCallback((api2) => {
|
|
3855
|
+
if (!api2) return;
|
|
3856
|
+
setCanScrollPrev(api2.canScrollPrev());
|
|
3857
|
+
setCanScrollNext(api2.canScrollNext());
|
|
3858
|
+
}, []);
|
|
3859
|
+
const scrollPrev = React6.useCallback(() => {
|
|
3860
|
+
api?.scrollPrev();
|
|
3861
|
+
}, [api]);
|
|
3862
|
+
const scrollNext = React6.useCallback(() => {
|
|
3863
|
+
api?.scrollNext();
|
|
3864
|
+
}, [api]);
|
|
3865
|
+
const handleKeyDown = React6.useCallback(
|
|
3866
|
+
(event) => {
|
|
3867
|
+
if (event.key === "ArrowLeft") {
|
|
3868
|
+
event.preventDefault();
|
|
3869
|
+
scrollPrev();
|
|
3870
|
+
} else if (event.key === "ArrowRight") {
|
|
3871
|
+
event.preventDefault();
|
|
3872
|
+
scrollNext();
|
|
3873
|
+
}
|
|
3874
|
+
},
|
|
3875
|
+
[scrollPrev, scrollNext]
|
|
3876
|
+
);
|
|
3877
|
+
React6.useEffect(() => {
|
|
3878
|
+
if (!api || !setApi) return;
|
|
3879
|
+
setApi(api);
|
|
3880
|
+
}, [api, setApi]);
|
|
3881
|
+
React6.useEffect(() => {
|
|
3882
|
+
if (!api) return;
|
|
3883
|
+
onSelect(api);
|
|
3884
|
+
api.on("reInit", onSelect);
|
|
3885
|
+
api.on("select", onSelect);
|
|
3886
|
+
return () => {
|
|
3887
|
+
api?.off("select", onSelect);
|
|
3888
|
+
};
|
|
3889
|
+
}, [api, onSelect]);
|
|
3890
|
+
return /* @__PURE__ */ jsx(
|
|
3891
|
+
CarouselContext.Provider,
|
|
3892
|
+
{
|
|
3893
|
+
value: {
|
|
3894
|
+
carouselRef,
|
|
3895
|
+
api,
|
|
3896
|
+
opts,
|
|
3897
|
+
orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
|
|
3898
|
+
scrollPrev,
|
|
3899
|
+
scrollNext,
|
|
3900
|
+
canScrollPrev,
|
|
3901
|
+
canScrollNext
|
|
3536
3902
|
},
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
}, [api]);
|
|
3549
|
-
const scrollNext = React26.useCallback(() => {
|
|
3550
|
-
api?.scrollNext();
|
|
3551
|
-
}, [api]);
|
|
3552
|
-
const handleKeyDown = React26.useCallback(
|
|
3553
|
-
(event) => {
|
|
3554
|
-
if (event.key === "ArrowLeft") {
|
|
3555
|
-
event.preventDefault();
|
|
3556
|
-
scrollPrev();
|
|
3557
|
-
} else if (event.key === "ArrowRight") {
|
|
3558
|
-
event.preventDefault();
|
|
3559
|
-
scrollNext();
|
|
3903
|
+
children: /* @__PURE__ */ jsx(
|
|
3904
|
+
"div",
|
|
3905
|
+
{
|
|
3906
|
+
ref,
|
|
3907
|
+
onKeyDownCapture: handleKeyDown,
|
|
3908
|
+
className: cn("relative", className),
|
|
3909
|
+
role: "region",
|
|
3910
|
+
"aria-roledescription": "carousel",
|
|
3911
|
+
"data-slot": "carousel",
|
|
3912
|
+
...props,
|
|
3913
|
+
children
|
|
3560
3914
|
}
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
if (!api || !setApi) return;
|
|
3566
|
-
setApi(api);
|
|
3567
|
-
}, [api, setApi]);
|
|
3568
|
-
React26.useEffect(() => {
|
|
3569
|
-
if (!api) return;
|
|
3570
|
-
onSelect(api);
|
|
3571
|
-
api.on("reInit", onSelect);
|
|
3572
|
-
api.on("select", onSelect);
|
|
3573
|
-
return () => {
|
|
3574
|
-
api?.off("select", onSelect);
|
|
3575
|
-
};
|
|
3576
|
-
}, [api, onSelect]);
|
|
3577
|
-
return /* @__PURE__ */ jsx(
|
|
3578
|
-
CarouselContext.Provider,
|
|
3579
|
-
{
|
|
3580
|
-
value: {
|
|
3581
|
-
carouselRef,
|
|
3582
|
-
api,
|
|
3583
|
-
opts,
|
|
3584
|
-
orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
|
|
3585
|
-
scrollPrev,
|
|
3586
|
-
scrollNext,
|
|
3587
|
-
canScrollPrev,
|
|
3588
|
-
canScrollNext
|
|
3589
|
-
},
|
|
3590
|
-
children: /* @__PURE__ */ jsx(
|
|
3591
|
-
"div",
|
|
3592
|
-
{
|
|
3593
|
-
ref,
|
|
3594
|
-
onKeyDownCapture: handleKeyDown,
|
|
3595
|
-
className: cn("relative", className),
|
|
3596
|
-
role: "region",
|
|
3597
|
-
"aria-roledescription": "carousel",
|
|
3598
|
-
"data-slot": "carousel",
|
|
3599
|
-
...props,
|
|
3600
|
-
children
|
|
3601
|
-
}
|
|
3602
|
-
)
|
|
3603
|
-
}
|
|
3604
|
-
);
|
|
3605
|
-
}
|
|
3606
|
-
);
|
|
3915
|
+
)
|
|
3916
|
+
}
|
|
3917
|
+
);
|
|
3918
|
+
};
|
|
3607
3919
|
Carousel.displayName = "Carousel";
|
|
3608
|
-
var CarouselContent =
|
|
3920
|
+
var CarouselContent = ({
|
|
3921
|
+
ref,
|
|
3922
|
+
className,
|
|
3923
|
+
...props
|
|
3924
|
+
}) => {
|
|
3609
3925
|
const { carouselRef, orientation } = useCarousel();
|
|
3610
3926
|
return /* @__PURE__ */ jsx(
|
|
3611
3927
|
"div",
|
|
@@ -3627,9 +3943,13 @@ var CarouselContent = React26.forwardRef(({ className, ...props }, ref) => {
|
|
|
3627
3943
|
)
|
|
3628
3944
|
}
|
|
3629
3945
|
);
|
|
3630
|
-
}
|
|
3946
|
+
};
|
|
3631
3947
|
CarouselContent.displayName = "CarouselContent";
|
|
3632
|
-
var CarouselItem =
|
|
3948
|
+
var CarouselItem = ({
|
|
3949
|
+
ref,
|
|
3950
|
+
className,
|
|
3951
|
+
...props
|
|
3952
|
+
}) => {
|
|
3633
3953
|
const { orientation } = useCarousel();
|
|
3634
3954
|
return /* @__PURE__ */ jsx(
|
|
3635
3955
|
"div",
|
|
@@ -3646,9 +3966,15 @@ var CarouselItem = React26.forwardRef(({ className, ...props }, ref) => {
|
|
|
3646
3966
|
...props
|
|
3647
3967
|
}
|
|
3648
3968
|
);
|
|
3649
|
-
}
|
|
3969
|
+
};
|
|
3650
3970
|
CarouselItem.displayName = "CarouselItem";
|
|
3651
|
-
var CarouselPrevious =
|
|
3971
|
+
var CarouselPrevious = ({
|
|
3972
|
+
ref,
|
|
3973
|
+
className,
|
|
3974
|
+
variant = "outline" /* Outline */,
|
|
3975
|
+
size = "icon" /* Icon */,
|
|
3976
|
+
...props
|
|
3977
|
+
}) => {
|
|
3652
3978
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
3653
3979
|
return /* @__PURE__ */ jsxs(
|
|
3654
3980
|
Button,
|
|
@@ -3671,9 +3997,15 @@ var CarouselPrevious = React26.forwardRef(({ className, variant = "outline" /* O
|
|
|
3671
3997
|
]
|
|
3672
3998
|
}
|
|
3673
3999
|
);
|
|
3674
|
-
}
|
|
4000
|
+
};
|
|
3675
4001
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
3676
|
-
var CarouselNext =
|
|
4002
|
+
var CarouselNext = ({
|
|
4003
|
+
ref,
|
|
4004
|
+
className,
|
|
4005
|
+
variant = "outline" /* Outline */,
|
|
4006
|
+
size = "icon" /* Icon */,
|
|
4007
|
+
...props
|
|
4008
|
+
}) => {
|
|
3677
4009
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
3678
4010
|
return /* @__PURE__ */ jsxs(
|
|
3679
4011
|
Button,
|
|
@@ -3696,34 +4028,43 @@ var CarouselNext = React26.forwardRef(({ className, variant = "outline" /* Outli
|
|
|
3696
4028
|
]
|
|
3697
4029
|
}
|
|
3698
4030
|
);
|
|
3699
|
-
}
|
|
4031
|
+
};
|
|
3700
4032
|
CarouselNext.displayName = "CarouselNext";
|
|
3701
|
-
var Collapsible =
|
|
4033
|
+
var Collapsible = ({
|
|
4034
|
+
ref,
|
|
4035
|
+
...props
|
|
4036
|
+
}) => /* @__PURE__ */ jsx(
|
|
3702
4037
|
CollapsiblePrimitive.Root,
|
|
3703
4038
|
{
|
|
3704
4039
|
ref,
|
|
3705
4040
|
"data-slot": "collapsible",
|
|
3706
4041
|
...props
|
|
3707
4042
|
}
|
|
3708
|
-
)
|
|
4043
|
+
);
|
|
3709
4044
|
Collapsible.displayName = "Collapsible";
|
|
3710
|
-
var CollapsibleTrigger2 =
|
|
4045
|
+
var CollapsibleTrigger2 = ({
|
|
4046
|
+
ref,
|
|
4047
|
+
...props
|
|
4048
|
+
}) => /* @__PURE__ */ jsx(
|
|
3711
4049
|
CollapsiblePrimitive.CollapsibleTrigger,
|
|
3712
4050
|
{
|
|
3713
4051
|
ref,
|
|
3714
4052
|
"data-slot": "collapsible-trigger",
|
|
3715
4053
|
...props
|
|
3716
4054
|
}
|
|
3717
|
-
)
|
|
4055
|
+
);
|
|
3718
4056
|
CollapsibleTrigger2.displayName = "CollapsibleTrigger";
|
|
3719
|
-
var CollapsibleContent2 =
|
|
4057
|
+
var CollapsibleContent2 = ({
|
|
4058
|
+
ref,
|
|
4059
|
+
...props
|
|
4060
|
+
}) => /* @__PURE__ */ jsx(
|
|
3720
4061
|
CollapsiblePrimitive.CollapsibleContent,
|
|
3721
4062
|
{
|
|
3722
4063
|
ref,
|
|
3723
4064
|
"data-slot": "collapsible-content",
|
|
3724
4065
|
...props
|
|
3725
4066
|
}
|
|
3726
|
-
)
|
|
4067
|
+
);
|
|
3727
4068
|
CollapsibleContent2.displayName = "CollapsibleContent";
|
|
3728
4069
|
function ChartContainer({
|
|
3729
4070
|
className,
|
|
@@ -4186,7 +4527,7 @@ function Toggle({
|
|
|
4186
4527
|
}
|
|
4187
4528
|
);
|
|
4188
4529
|
}
|
|
4189
|
-
var ToggleGroupContext =
|
|
4530
|
+
var ToggleGroupContext = React6.createContext({
|
|
4190
4531
|
size: "default",
|
|
4191
4532
|
variant: "default",
|
|
4192
4533
|
spacing: 0
|
|
@@ -4224,7 +4565,7 @@ function ToggleGroupItem({
|
|
|
4224
4565
|
size,
|
|
4225
4566
|
...props
|
|
4226
4567
|
}) {
|
|
4227
|
-
const context =
|
|
4568
|
+
const context = React6.useContext(ToggleGroupContext);
|
|
4228
4569
|
const resolvedSpacing = context.spacing ?? 0;
|
|
4229
4570
|
return /* @__PURE__ */ jsx(
|
|
4230
4571
|
ToggleGroupPrimitive.Item,
|
|
@@ -4431,27 +4772,37 @@ function TypographyMuted({
|
|
|
4431
4772
|
}
|
|
4432
4773
|
);
|
|
4433
4774
|
}
|
|
4434
|
-
var IconButton =
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
)
|
|
4775
|
+
var IconButton = ({
|
|
4776
|
+
ref,
|
|
4777
|
+
variant = "ghost" /* Ghost */,
|
|
4778
|
+
size = "default" /* Default */,
|
|
4779
|
+
className,
|
|
4780
|
+
...props
|
|
4781
|
+
}) => {
|
|
4782
|
+
const sizeStyles = {
|
|
4783
|
+
["sm" /* Small */]: "h-8 w-8",
|
|
4784
|
+
["default" /* Default */]: "h-9 w-9",
|
|
4785
|
+
["lg" /* Large */]: "h-10 w-10"
|
|
4786
|
+
};
|
|
4787
|
+
return /* @__PURE__ */ jsx(
|
|
4788
|
+
Button,
|
|
4789
|
+
{
|
|
4790
|
+
ref,
|
|
4791
|
+
variant,
|
|
4792
|
+
size: "icon" /* Icon */,
|
|
4793
|
+
className: cn(sizeStyles[size], className),
|
|
4794
|
+
...props
|
|
4795
|
+
}
|
|
4796
|
+
);
|
|
4797
|
+
};
|
|
4453
4798
|
IconButton.displayName = "IconButton";
|
|
4454
|
-
var DropdownButton =
|
|
4799
|
+
var DropdownButton = ({
|
|
4800
|
+
ref,
|
|
4801
|
+
children,
|
|
4802
|
+
variant = "outline" /* Outline */,
|
|
4803
|
+
className,
|
|
4804
|
+
...props
|
|
4805
|
+
}) => {
|
|
4455
4806
|
return /* @__PURE__ */ jsxs(
|
|
4456
4807
|
Button,
|
|
4457
4808
|
{
|
|
@@ -4465,9 +4816,13 @@ var DropdownButton = React26__default.forwardRef(({ children, variant = "outline
|
|
|
4465
4816
|
]
|
|
4466
4817
|
}
|
|
4467
4818
|
);
|
|
4468
|
-
}
|
|
4819
|
+
};
|
|
4469
4820
|
DropdownButton.displayName = "DropdownButton";
|
|
4470
|
-
var InputGroup =
|
|
4821
|
+
var InputGroup = ({
|
|
4822
|
+
ref,
|
|
4823
|
+
className,
|
|
4824
|
+
...props
|
|
4825
|
+
}) => /* @__PURE__ */ jsx(
|
|
4471
4826
|
"div",
|
|
4472
4827
|
{
|
|
4473
4828
|
ref,
|
|
@@ -4489,7 +4844,7 @@ var InputGroup = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
4489
4844
|
),
|
|
4490
4845
|
...props
|
|
4491
4846
|
}
|
|
4492
|
-
)
|
|
4847
|
+
);
|
|
4493
4848
|
InputGroup.displayName = "InputGroup";
|
|
4494
4849
|
var inputGroupAddonVariants = cva(
|
|
4495
4850
|
"text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50",
|
|
@@ -4507,7 +4862,12 @@ var inputGroupAddonVariants = cva(
|
|
|
4507
4862
|
}
|
|
4508
4863
|
}
|
|
4509
4864
|
);
|
|
4510
|
-
var InputGroupAddon =
|
|
4865
|
+
var InputGroupAddon = ({
|
|
4866
|
+
ref,
|
|
4867
|
+
className,
|
|
4868
|
+
align = "inline-start",
|
|
4869
|
+
...props
|
|
4870
|
+
}) => /* @__PURE__ */ jsx(
|
|
4511
4871
|
"div",
|
|
4512
4872
|
{
|
|
4513
4873
|
ref,
|
|
@@ -4523,7 +4883,7 @@ var InputGroupAddon = React26.forwardRef(({ className, align = "inline-start", .
|
|
|
4523
4883
|
},
|
|
4524
4884
|
...props
|
|
4525
4885
|
}
|
|
4526
|
-
)
|
|
4886
|
+
);
|
|
4527
4887
|
InputGroupAddon.displayName = "InputGroupAddon";
|
|
4528
4888
|
var inputGroupButtonVariants = cva(
|
|
4529
4889
|
"text-sm shadow-none flex gap-2 items-center",
|
|
@@ -4541,7 +4901,14 @@ var inputGroupButtonVariants = cva(
|
|
|
4541
4901
|
}
|
|
4542
4902
|
}
|
|
4543
4903
|
);
|
|
4544
|
-
var InputGroupButton =
|
|
4904
|
+
var InputGroupButton = ({
|
|
4905
|
+
ref,
|
|
4906
|
+
className,
|
|
4907
|
+
type = "button",
|
|
4908
|
+
variant = "ghost" /* Ghost */,
|
|
4909
|
+
size = "xs",
|
|
4910
|
+
...props
|
|
4911
|
+
}) => /* @__PURE__ */ jsx(
|
|
4545
4912
|
Button,
|
|
4546
4913
|
{
|
|
4547
4914
|
ref,
|
|
@@ -4551,9 +4918,13 @@ var InputGroupButton = React26.forwardRef(({ className, type = "button", variant
|
|
|
4551
4918
|
className: cn(inputGroupButtonVariants({ size }), className),
|
|
4552
4919
|
...props
|
|
4553
4920
|
}
|
|
4554
|
-
)
|
|
4921
|
+
);
|
|
4555
4922
|
InputGroupButton.displayName = "InputGroupButton";
|
|
4556
|
-
var InputGroupText =
|
|
4923
|
+
var InputGroupText = ({
|
|
4924
|
+
ref,
|
|
4925
|
+
className,
|
|
4926
|
+
...props
|
|
4927
|
+
}) => /* @__PURE__ */ jsx(
|
|
4557
4928
|
"span",
|
|
4558
4929
|
{
|
|
4559
4930
|
ref,
|
|
@@ -4563,9 +4934,13 @@ var InputGroupText = React26.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
4563
4934
|
),
|
|
4564
4935
|
...props
|
|
4565
4936
|
}
|
|
4566
|
-
)
|
|
4937
|
+
);
|
|
4567
4938
|
InputGroupText.displayName = "InputGroupText";
|
|
4568
|
-
var InputGroupInput =
|
|
4939
|
+
var InputGroupInput = ({
|
|
4940
|
+
ref,
|
|
4941
|
+
className,
|
|
4942
|
+
...props
|
|
4943
|
+
}) => /* @__PURE__ */ jsx(
|
|
4569
4944
|
Input,
|
|
4570
4945
|
{
|
|
4571
4946
|
ref,
|
|
@@ -4576,9 +4951,13 @@ var InputGroupInput = React26.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
4576
4951
|
),
|
|
4577
4952
|
...props
|
|
4578
4953
|
}
|
|
4579
|
-
)
|
|
4954
|
+
);
|
|
4580
4955
|
InputGroupInput.displayName = "InputGroupInput";
|
|
4581
|
-
var InputGroupTextarea =
|
|
4956
|
+
var InputGroupTextarea = ({
|
|
4957
|
+
ref,
|
|
4958
|
+
className,
|
|
4959
|
+
...props
|
|
4960
|
+
}) => /* @__PURE__ */ jsx(
|
|
4582
4961
|
Textarea,
|
|
4583
4962
|
{
|
|
4584
4963
|
ref,
|
|
@@ -4589,7 +4968,7 @@ var InputGroupTextarea = React26.forwardRef(({ className, ...props }, ref) => /*
|
|
|
4589
4968
|
),
|
|
4590
4969
|
...props
|
|
4591
4970
|
}
|
|
4592
|
-
)
|
|
4971
|
+
);
|
|
4593
4972
|
InputGroupTextarea.displayName = "InputGroupTextarea";
|
|
4594
4973
|
var CalendarIcon = ({
|
|
4595
4974
|
className = "",
|
|
@@ -4617,9 +4996,9 @@ var CalendarIcon = ({
|
|
|
4617
4996
|
}
|
|
4618
4997
|
);
|
|
4619
4998
|
};
|
|
4620
|
-
var DatePickerContext =
|
|
4999
|
+
var DatePickerContext = React6.createContext(null);
|
|
4621
5000
|
function useDatePickerContext() {
|
|
4622
|
-
const context =
|
|
5001
|
+
const context = React6.useContext(DatePickerContext);
|
|
4623
5002
|
if (!context) {
|
|
4624
5003
|
throw new Error("DatePicker components must be used within a DatePicker");
|
|
4625
5004
|
}
|
|
@@ -4638,25 +5017,25 @@ function DatePicker({
|
|
|
4638
5017
|
defaultOpen = false,
|
|
4639
5018
|
formatDate: formatDateProp = defaultFormatDate
|
|
4640
5019
|
}) {
|
|
4641
|
-
const [uncontrolledDate, setUncontrolledDate] =
|
|
4642
|
-
const [uncontrolledOpen, setUncontrolledOpen] =
|
|
5020
|
+
const [uncontrolledDate, setUncontrolledDate] = React6.useState(defaultDate);
|
|
5021
|
+
const [uncontrolledOpen, setUncontrolledOpen] = React6.useState(defaultOpen);
|
|
4643
5022
|
const isDateControlled = controlledDate !== void 0;
|
|
4644
5023
|
const isOpenControlled = controlledOpen !== void 0;
|
|
4645
5024
|
const date = isDateControlled ? controlledDate : uncontrolledDate;
|
|
4646
5025
|
const open = isOpenControlled ? controlledOpen : uncontrolledOpen;
|
|
4647
|
-
const setDate =
|
|
5026
|
+
const setDate = React6.useCallback((newDate) => {
|
|
4648
5027
|
if (!isDateControlled) {
|
|
4649
5028
|
setUncontrolledDate(newDate);
|
|
4650
5029
|
}
|
|
4651
5030
|
onDateChange?.(newDate);
|
|
4652
5031
|
}, [isDateControlled, onDateChange]);
|
|
4653
|
-
const setOpen =
|
|
5032
|
+
const setOpen = React6.useCallback((newOpen) => {
|
|
4654
5033
|
if (!isOpenControlled) {
|
|
4655
5034
|
setUncontrolledOpen(newOpen);
|
|
4656
5035
|
}
|
|
4657
5036
|
onOpenChange?.(newOpen);
|
|
4658
5037
|
}, [isOpenControlled, onOpenChange]);
|
|
4659
|
-
const contextValue =
|
|
5038
|
+
const contextValue = React6.useMemo(() => ({
|
|
4660
5039
|
date,
|
|
4661
5040
|
setDate,
|
|
4662
5041
|
open,
|
|
@@ -4729,9 +5108,9 @@ function DatePickerInput({
|
|
|
4729
5108
|
id
|
|
4730
5109
|
}) {
|
|
4731
5110
|
const { date, setDate, setOpen, formatDate } = useDatePickerContext();
|
|
4732
|
-
const [inputValue, setInputValue] =
|
|
4733
|
-
const [month, setMonth] =
|
|
4734
|
-
|
|
5111
|
+
const [inputValue, setInputValue] = React6.useState(date ? formatDate(date) : "");
|
|
5112
|
+
const [month, setMonth] = React6.useState(date);
|
|
5113
|
+
React6.useEffect(() => {
|
|
4735
5114
|
setInputValue(date ? formatDate(date) : "");
|
|
4736
5115
|
}, [date, formatDate]);
|
|
4737
5116
|
const handleInputChange = (e) => {
|
|
@@ -4798,7 +5177,13 @@ function DatePickerInput({
|
|
|
4798
5177
|
)
|
|
4799
5178
|
] });
|
|
4800
5179
|
}
|
|
4801
|
-
var Sidebar =
|
|
5180
|
+
var Sidebar = ({
|
|
5181
|
+
ref,
|
|
5182
|
+
collapsed = false,
|
|
5183
|
+
className,
|
|
5184
|
+
children,
|
|
5185
|
+
...props
|
|
5186
|
+
}) => {
|
|
4802
5187
|
return /* @__PURE__ */ jsx(
|
|
4803
5188
|
"aside",
|
|
4804
5189
|
{
|
|
@@ -4815,9 +5200,13 @@ var Sidebar = React26.forwardRef(({ collapsed = false, className, children, ...p
|
|
|
4815
5200
|
children
|
|
4816
5201
|
}
|
|
4817
5202
|
);
|
|
4818
|
-
}
|
|
5203
|
+
};
|
|
4819
5204
|
Sidebar.displayName = "Sidebar";
|
|
4820
|
-
var SidebarContent =
|
|
5205
|
+
var SidebarContent = ({
|
|
5206
|
+
ref,
|
|
5207
|
+
className,
|
|
5208
|
+
...props
|
|
5209
|
+
}) => /* @__PURE__ */ jsx(
|
|
4821
5210
|
"div",
|
|
4822
5211
|
{
|
|
4823
5212
|
ref,
|
|
@@ -4829,9 +5218,13 @@ var SidebarContent = React26.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
4829
5218
|
),
|
|
4830
5219
|
...props
|
|
4831
5220
|
}
|
|
4832
|
-
)
|
|
5221
|
+
);
|
|
4833
5222
|
SidebarContent.displayName = "SidebarContent";
|
|
4834
|
-
var SidebarMenu =
|
|
5223
|
+
var SidebarMenu = ({
|
|
5224
|
+
ref,
|
|
5225
|
+
className,
|
|
5226
|
+
...props
|
|
5227
|
+
}) => /* @__PURE__ */ jsx(
|
|
4835
5228
|
"ul",
|
|
4836
5229
|
{
|
|
4837
5230
|
ref,
|
|
@@ -4839,9 +5232,13 @@ var SidebarMenu = React26.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4839
5232
|
className: cn("flex w-full min-w-0 flex-col gap-1", className),
|
|
4840
5233
|
...props
|
|
4841
5234
|
}
|
|
4842
|
-
)
|
|
5235
|
+
);
|
|
4843
5236
|
SidebarMenu.displayName = "SidebarMenu";
|
|
4844
|
-
var SidebarMenuItem =
|
|
5237
|
+
var SidebarMenuItem = ({
|
|
5238
|
+
ref,
|
|
5239
|
+
className,
|
|
5240
|
+
...props
|
|
5241
|
+
}) => /* @__PURE__ */ jsx(
|
|
4845
5242
|
"li",
|
|
4846
5243
|
{
|
|
4847
5244
|
ref,
|
|
@@ -4849,7 +5246,7 @@ var SidebarMenuItem = React26.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
4849
5246
|
className: cn("group/menu-item relative", className),
|
|
4850
5247
|
...props
|
|
4851
5248
|
}
|
|
4852
|
-
)
|
|
5249
|
+
);
|
|
4853
5250
|
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
4854
5251
|
var sidebarMenuButtonVariants = cva(
|
|
4855
5252
|
// HAI3 customization: All sizing uses rem-based Tailwind classes for theme responsiveness
|
|
@@ -4873,110 +5270,128 @@ var sidebarMenuButtonVariants = cva(
|
|
|
4873
5270
|
}
|
|
4874
5271
|
}
|
|
4875
5272
|
);
|
|
4876
|
-
var SidebarMenuButton =
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
);
|
|
5273
|
+
var SidebarMenuButton = ({
|
|
5274
|
+
ref,
|
|
5275
|
+
asChild = false,
|
|
5276
|
+
isActive = false,
|
|
5277
|
+
variant = "default",
|
|
5278
|
+
size = "default",
|
|
5279
|
+
tooltip,
|
|
5280
|
+
className,
|
|
5281
|
+
...props
|
|
5282
|
+
}) => {
|
|
5283
|
+
const Comp = asChild ? Slot : "button";
|
|
5284
|
+
return /* @__PURE__ */ jsx(
|
|
5285
|
+
Comp,
|
|
5286
|
+
{
|
|
5287
|
+
ref,
|
|
5288
|
+
"data-sidebar": "menu-button",
|
|
5289
|
+
"data-size": size,
|
|
5290
|
+
"data-active": isActive,
|
|
5291
|
+
title: tooltip,
|
|
5292
|
+
className: cn(sidebarMenuButtonVariants({ variant, size }), className),
|
|
5293
|
+
...props
|
|
5294
|
+
}
|
|
5295
|
+
);
|
|
5296
|
+
};
|
|
4901
5297
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
4902
|
-
var SidebarMenuIcon =
|
|
5298
|
+
var SidebarMenuIcon = ({
|
|
5299
|
+
ref,
|
|
5300
|
+
className,
|
|
5301
|
+
...props
|
|
5302
|
+
}) => /* @__PURE__ */ jsx(
|
|
4903
5303
|
"span",
|
|
4904
5304
|
{
|
|
4905
5305
|
ref,
|
|
4906
5306
|
className: cn("size-5 min-w-[1.5rem] flex-shrink-0 [&>svg]:w-full [&>svg]:h-full", className),
|
|
4907
5307
|
...props
|
|
4908
5308
|
}
|
|
4909
|
-
)
|
|
5309
|
+
);
|
|
4910
5310
|
SidebarMenuIcon.displayName = "SidebarMenuIcon";
|
|
4911
|
-
var SidebarMenuLabel =
|
|
5311
|
+
var SidebarMenuLabel = ({
|
|
5312
|
+
ref,
|
|
5313
|
+
className,
|
|
5314
|
+
...props
|
|
5315
|
+
}) => /* @__PURE__ */ jsx(
|
|
4912
5316
|
"span",
|
|
4913
5317
|
{
|
|
4914
5318
|
ref,
|
|
4915
5319
|
className: cn(className),
|
|
4916
5320
|
...props
|
|
4917
5321
|
}
|
|
4918
|
-
));
|
|
4919
|
-
SidebarMenuLabel.displayName = "SidebarMenuLabel";
|
|
4920
|
-
var SidebarHeader = React26.forwardRef(
|
|
4921
|
-
({ logo, logoText, collapsed = false, onClick, className, ...props }, ref) => {
|
|
4922
|
-
return /* @__PURE__ */ jsxs(
|
|
4923
|
-
"div",
|
|
4924
|
-
{
|
|
4925
|
-
ref,
|
|
4926
|
-
className: cn(
|
|
4927
|
-
"flex flex-col h-16",
|
|
4928
|
-
className
|
|
4929
|
-
),
|
|
4930
|
-
...props,
|
|
4931
|
-
children: [
|
|
4932
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center flex-1 px-2", children: /* @__PURE__ */ jsxs(SidebarMenuButton, { onClick, tooltip: collapsed ? "Expand menu" : "Collapse menu", children: [
|
|
4933
|
-
logo && /* @__PURE__ */ jsx(SidebarMenuIcon, { children: logo }),
|
|
4934
|
-
logoText && /* @__PURE__ */ jsx(SidebarMenuLabel, { className: "[&>svg]:h-5 [&>svg]:w-auto", children: logoText })
|
|
4935
|
-
] }) }),
|
|
4936
|
-
/* @__PURE__ */ jsx("div", { className: "border-b border-mainMenu-border mx-4" })
|
|
4937
|
-
]
|
|
4938
|
-
}
|
|
4939
|
-
);
|
|
4940
|
-
}
|
|
4941
5322
|
);
|
|
5323
|
+
SidebarMenuLabel.displayName = "SidebarMenuLabel";
|
|
5324
|
+
var SidebarHeader = ({
|
|
5325
|
+
ref,
|
|
5326
|
+
logo,
|
|
5327
|
+
logoText,
|
|
5328
|
+
collapsed = false,
|
|
5329
|
+
onClick,
|
|
5330
|
+
className,
|
|
5331
|
+
...props
|
|
5332
|
+
}) => {
|
|
5333
|
+
return /* @__PURE__ */ jsxs(
|
|
5334
|
+
"div",
|
|
5335
|
+
{
|
|
5336
|
+
ref,
|
|
5337
|
+
className: cn(
|
|
5338
|
+
"flex flex-col h-16",
|
|
5339
|
+
className
|
|
5340
|
+
),
|
|
5341
|
+
...props,
|
|
5342
|
+
children: [
|
|
5343
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center flex-1 px-2", children: /* @__PURE__ */ jsxs(SidebarMenuButton, { onClick, tooltip: collapsed ? "Expand menu" : "Collapse menu", children: [
|
|
5344
|
+
logo && /* @__PURE__ */ jsx(SidebarMenuIcon, { children: logo }),
|
|
5345
|
+
logoText && /* @__PURE__ */ jsx(SidebarMenuLabel, { className: "[&>svg]:h-5 [&>svg]:w-auto", children: logoText })
|
|
5346
|
+
] }) }),
|
|
5347
|
+
/* @__PURE__ */ jsx("div", { className: "border-b border-mainMenu-border mx-4" })
|
|
5348
|
+
]
|
|
5349
|
+
}
|
|
5350
|
+
);
|
|
5351
|
+
};
|
|
4942
5352
|
SidebarHeader.displayName = "SidebarHeader";
|
|
4943
|
-
var UserInfo =
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
const
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
{
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
"flex items-center gap-2 text-sm text-muted-foreground",
|
|
4967
|
-
className
|
|
4968
|
-
),
|
|
4969
|
-
children: [
|
|
4970
|
-
/* @__PURE__ */ jsxs(Avatar, { className: "h-8 w-8", children: [
|
|
4971
|
-
avatarUrl && /* @__PURE__ */ jsx(AvatarImage, { src: avatarUrl, alt: displayText }),
|
|
4972
|
-
/* @__PURE__ */ jsx(AvatarFallback, { children: initials })
|
|
4973
|
-
] }),
|
|
4974
|
-
/* @__PURE__ */ jsx("span", { children: displayText })
|
|
4975
|
-
]
|
|
4976
|
-
}
|
|
4977
|
-
);
|
|
5353
|
+
var UserInfo = ({
|
|
5354
|
+
ref,
|
|
5355
|
+
displayName,
|
|
5356
|
+
email,
|
|
5357
|
+
avatarUrl,
|
|
5358
|
+
className,
|
|
5359
|
+
loading
|
|
5360
|
+
}) => {
|
|
5361
|
+
const getInitials = () => {
|
|
5362
|
+
if (!displayName) return toUpper(email?.[0] || "") || "?";
|
|
5363
|
+
const parts = trim(displayName).split(/\s+/);
|
|
5364
|
+
if (parts.length >= 2) {
|
|
5365
|
+
return toUpper(`${parts[0][0]}${parts[parts.length - 1][0]}`);
|
|
5366
|
+
}
|
|
5367
|
+
return toUpper(displayName.slice(0, 2));
|
|
5368
|
+
};
|
|
5369
|
+
const initials = getInitials();
|
|
5370
|
+
const displayText = displayName || email || "User";
|
|
5371
|
+
if (loading) {
|
|
5372
|
+
return /* @__PURE__ */ jsxs("div", { ref, className: cn("flex items-center gap-2 text-sm", className), children: [
|
|
5373
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-8 rounded-full" }),
|
|
5374
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24" })
|
|
5375
|
+
] });
|
|
4978
5376
|
}
|
|
4979
|
-
|
|
5377
|
+
return /* @__PURE__ */ jsxs(
|
|
5378
|
+
"div",
|
|
5379
|
+
{
|
|
5380
|
+
ref,
|
|
5381
|
+
className: cn(
|
|
5382
|
+
"flex items-center gap-2 text-sm text-muted-foreground",
|
|
5383
|
+
className
|
|
5384
|
+
),
|
|
5385
|
+
children: [
|
|
5386
|
+
/* @__PURE__ */ jsxs(Avatar, { className: "h-8 w-8", children: [
|
|
5387
|
+
avatarUrl && /* @__PURE__ */ jsx(AvatarImage, { src: avatarUrl, alt: displayText }),
|
|
5388
|
+
/* @__PURE__ */ jsx(AvatarFallback, { children: initials })
|
|
5389
|
+
] }),
|
|
5390
|
+
/* @__PURE__ */ jsx("span", { children: displayText })
|
|
5391
|
+
]
|
|
5392
|
+
}
|
|
5393
|
+
);
|
|
5394
|
+
};
|
|
4980
5395
|
UserInfo.displayName = "UserInfo";
|
|
4981
5396
|
var MessageType = /* @__PURE__ */ ((MessageType2) => {
|
|
4982
5397
|
MessageType2["User"] = "user";
|
|
@@ -5353,7 +5768,71 @@ var applyTheme = (theme, themeName) => {
|
|
|
5353
5768
|
root.style.fontSize = "";
|
|
5354
5769
|
}
|
|
5355
5770
|
};
|
|
5771
|
+
var applyThemeToShadowRoot = (shadowRoot, theme, themeName) => {
|
|
5772
|
+
let styleElement = shadowRoot.getElementById("__hai3-theme-vars__");
|
|
5773
|
+
if (!styleElement) {
|
|
5774
|
+
styleElement = document.createElement("style");
|
|
5775
|
+
styleElement.id = "__hai3-theme-vars__";
|
|
5776
|
+
shadowRoot.appendChild(styleElement);
|
|
5777
|
+
}
|
|
5778
|
+
if (themeName) {
|
|
5779
|
+
styleElement.setAttribute("data-theme", themeName);
|
|
5780
|
+
}
|
|
5781
|
+
const cssVars = [];
|
|
5782
|
+
cssVars.push(`--background: ${hslToVar(theme.colors.background)};`);
|
|
5783
|
+
cssVars.push(`--foreground: ${hslToVar(theme.colors.foreground)};`);
|
|
5784
|
+
cssVars.push(`--card: ${hslToVar(theme.colors.background)};`);
|
|
5785
|
+
cssVars.push(`--card-foreground: ${hslToVar(theme.colors.foreground)};`);
|
|
5786
|
+
cssVars.push(`--popover: ${hslToVar(theme.colors.background)};`);
|
|
5787
|
+
cssVars.push(`--popover-foreground: ${hslToVar(theme.colors.foreground)};`);
|
|
5788
|
+
cssVars.push(`--primary: ${hslToVar(theme.colors.primary)};`);
|
|
5789
|
+
cssVars.push(`--primary-foreground: ${hslToVar(theme.colors.background)};`);
|
|
5790
|
+
cssVars.push(`--secondary: ${hslToVar(theme.colors.secondary)};`);
|
|
5791
|
+
cssVars.push(`--secondary-foreground: ${hslToVar(theme.colors.foreground)};`);
|
|
5792
|
+
cssVars.push(`--muted: ${hslToVar(theme.colors.muted)};`);
|
|
5793
|
+
cssVars.push(`--muted-foreground: ${hslToVar(theme.colors.foreground)};`);
|
|
5794
|
+
cssVars.push(`--accent: ${hslToVar(theme.colors.accent)};`);
|
|
5795
|
+
cssVars.push(`--accent-foreground: ${hslToVar(theme.colors.background)};`);
|
|
5796
|
+
cssVars.push(`--destructive: ${hslToVar(theme.colors.error)};`);
|
|
5797
|
+
cssVars.push(`--destructive-foreground: ${hslToVar(theme.colors.foreground)};`);
|
|
5798
|
+
cssVars.push(`--border: ${hslToVar(theme.colors.border)};`);
|
|
5799
|
+
cssVars.push(`--input: ${hslToVar(theme.colors.border)};`);
|
|
5800
|
+
cssVars.push(`--ring: ${hslToVar(theme.colors.primary)};`);
|
|
5801
|
+
cssVars.push(`--error: ${hslToVar(theme.colors.error)};`);
|
|
5802
|
+
cssVars.push(`--warning: ${hslToVar(theme.colors.warning)};`);
|
|
5803
|
+
cssVars.push(`--success: ${hslToVar(theme.colors.success)};`);
|
|
5804
|
+
cssVars.push(`--info: ${hslToVar(theme.colors.info)};`);
|
|
5805
|
+
cssVars.push(`--chart-1: ${theme.colors.chart[1]};`);
|
|
5806
|
+
cssVars.push(`--chart-2: ${theme.colors.chart[2]};`);
|
|
5807
|
+
cssVars.push(`--chart-3: ${theme.colors.chart[3]};`);
|
|
5808
|
+
cssVars.push(`--chart-4: ${theme.colors.chart[4]};`);
|
|
5809
|
+
cssVars.push(`--chart-5: ${theme.colors.chart[5]};`);
|
|
5810
|
+
cssVars.push(`--left-menu: ${hslToVar(theme.colors.mainMenu.DEFAULT)};`);
|
|
5811
|
+
cssVars.push(`--left-menu-foreground: ${hslToVar(theme.colors.mainMenu.foreground)};`);
|
|
5812
|
+
cssVars.push(`--left-menu-hover: ${hslToVar(theme.colors.mainMenu.hover)};`);
|
|
5813
|
+
cssVars.push(`--left-menu-selected: ${hslToVar(theme.colors.mainMenu.selected)};`);
|
|
5814
|
+
cssVars.push(`--left-menu-border: ${hslToVar(theme.colors.mainMenu.border)};`);
|
|
5815
|
+
Object.entries(theme.spacing).forEach(([key, value]) => {
|
|
5816
|
+
cssVars.push(`--spacing-${key}: ${value};`);
|
|
5817
|
+
});
|
|
5818
|
+
Object.entries(theme.borderRadius).forEach(([key, value]) => {
|
|
5819
|
+
cssVars.push(`--radius-${key}: ${value};`);
|
|
5820
|
+
});
|
|
5821
|
+
Object.entries(theme.shadows).forEach(([key, value]) => {
|
|
5822
|
+
cssVars.push(`--shadow-${key}: ${value};`);
|
|
5823
|
+
});
|
|
5824
|
+
Object.entries(theme.transitions).forEach(([key, value]) => {
|
|
5825
|
+
cssVars.push(`--transition-${key}: ${value};`);
|
|
5826
|
+
});
|
|
5827
|
+
let cssContent = `:host {
|
|
5828
|
+
${cssVars.join("\n ")}
|
|
5829
|
+
}`;
|
|
5830
|
+
if (themeName?.endsWith("-large")) {
|
|
5831
|
+
cssContent += "\n\n:host {\n font-size: 125%;\n}";
|
|
5832
|
+
}
|
|
5833
|
+
styleElement.textContent = cssContent;
|
|
5834
|
+
};
|
|
5356
5835
|
|
|
5357
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, ButtonSize, ButtonVariant, CLOSE_ICON_ID, Calendar, CalendarDayButton, CalendarIcon, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegendContent, ChartTooltipContent, ChatInput, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, DataTableColumnHeader, DataTablePagination, DataTableViewOptions, DatePicker, DatePickerContent, DatePickerInput, DatePickerTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownButton, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Header, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, IconButtonSize, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item6 as Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, MENU_ICON_ID, MenuIcon, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MessageBubble, MessageType, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuIcon, SidebarMenuItem, SidebarMenuLabel, Skeleton, Slider, SliderRange, SliderThumb, SliderTrack, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThreadList, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TypographyBlockquote, TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyInlineCode, TypographyLarge, TypographyList, TypographyMuted, TypographyP, TypographySmall, UiKitComponent, UiKitIcon, UserInfo, alertVariants, applyTheme, badgeVariants, buttonGroupVariants, emptyMediaVariants, toggleVariants, useFormField, useToast };
|
|
5836
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, ButtonSize, ButtonVariant, CLOSE_ICON_ID, Calendar, CalendarDayButton, CalendarIcon, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegendContent, ChartTooltipContent, ChatInput, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DataTable, DataTableColumnHeader, DataTablePagination, DataTableViewOptions, DatePicker, DatePickerContent, DatePickerInput, DatePickerTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownButton, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Header, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, IconButtonSize, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item6 as Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, MENU_ICON_ID, MenuIcon, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MessageBubble, MessageType, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuIcon, SidebarMenuItem, SidebarMenuLabel, Skeleton, Slider, SliderRange, SliderThumb, SliderTrack, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThreadList, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TypographyBlockquote, TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyInlineCode, TypographyLarge, TypographyList, TypographyMuted, TypographyP, TypographySmall, UiKitComponent, UiKitIcon, UserInfo, alertVariants, applyTheme, applyThemeToShadowRoot, badgeVariants, buttonGroupVariants, emptyMediaVariants, toggleVariants, useFormField, useToast };
|
|
5358
5837
|
//# sourceMappingURL=index.js.map
|
|
5359
5838
|
//# sourceMappingURL=index.js.map
|