@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.cjs
CHANGED
|
@@ -5,10 +5,10 @@ var clsx = require('clsx');
|
|
|
5
5
|
var tailwindMerge = require('tailwind-merge');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var AspectRatioPrimitive = require('@radix-ui/react-aspect-ratio');
|
|
8
|
-
var React26 = require('react');
|
|
9
8
|
var AvatarPrimitive = require('@radix-ui/react-avatar');
|
|
10
9
|
var reactSlot = require('@radix-ui/react-slot');
|
|
11
10
|
var SeparatorPrimitive = require('@radix-ui/react-separator');
|
|
11
|
+
var React6 = require('react');
|
|
12
12
|
var reactDayPicker = require('react-day-picker');
|
|
13
13
|
var CheckboxPrimitive = require('@radix-ui/react-checkbox');
|
|
14
14
|
var RadioGroupPrimitive = require('@radix-ui/react-radio-group');
|
|
@@ -66,9 +66,9 @@ function _interopNamespace(e) {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
var AspectRatioPrimitive__namespace = /*#__PURE__*/_interopNamespace(AspectRatioPrimitive);
|
|
69
|
-
var React26__namespace = /*#__PURE__*/_interopNamespace(React26);
|
|
70
69
|
var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
|
|
71
70
|
var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);
|
|
71
|
+
var React6__namespace = /*#__PURE__*/_interopNamespace(React6);
|
|
72
72
|
var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
|
|
73
73
|
var RadioGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(RadioGroupPrimitive);
|
|
74
74
|
var LabelPrimitive__namespace = /*#__PURE__*/_interopNamespace(LabelPrimitive);
|
|
@@ -252,7 +252,11 @@ function EmptyContent({ className, ...props }) {
|
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
254
|
}
|
|
255
|
-
var Avatar =
|
|
255
|
+
var Avatar = ({
|
|
256
|
+
ref,
|
|
257
|
+
className,
|
|
258
|
+
...props
|
|
259
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
256
260
|
AvatarPrimitive__namespace.Root,
|
|
257
261
|
{
|
|
258
262
|
ref,
|
|
@@ -262,18 +266,26 @@ var Avatar = React26__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
262
266
|
),
|
|
263
267
|
...props
|
|
264
268
|
}
|
|
265
|
-
)
|
|
269
|
+
);
|
|
266
270
|
Avatar.displayName = AvatarPrimitive__namespace.Root.displayName;
|
|
267
|
-
var AvatarImage =
|
|
271
|
+
var AvatarImage = ({
|
|
272
|
+
ref,
|
|
273
|
+
className,
|
|
274
|
+
...props
|
|
275
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
268
276
|
AvatarPrimitive__namespace.Image,
|
|
269
277
|
{
|
|
270
278
|
ref,
|
|
271
279
|
className: cn("aspect-square h-full w-full", className),
|
|
272
280
|
...props
|
|
273
281
|
}
|
|
274
|
-
)
|
|
282
|
+
);
|
|
275
283
|
AvatarImage.displayName = AvatarPrimitive__namespace.Image.displayName;
|
|
276
|
-
var AvatarFallback =
|
|
284
|
+
var AvatarFallback = ({
|
|
285
|
+
ref,
|
|
286
|
+
className,
|
|
287
|
+
...props
|
|
288
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
277
289
|
AvatarPrimitive__namespace.Fallback,
|
|
278
290
|
{
|
|
279
291
|
ref,
|
|
@@ -283,7 +295,7 @@ var AvatarFallback = React26__namespace.forwardRef(({ className, ...props }, ref
|
|
|
283
295
|
),
|
|
284
296
|
...props
|
|
285
297
|
}
|
|
286
|
-
)
|
|
298
|
+
);
|
|
287
299
|
AvatarFallback.displayName = AvatarPrimitive__namespace.Fallback.displayName;
|
|
288
300
|
|
|
289
301
|
// src/types.ts
|
|
@@ -366,19 +378,24 @@ var buttonVariants = classVarianceAuthority.cva(
|
|
|
366
378
|
}
|
|
367
379
|
}
|
|
368
380
|
);
|
|
369
|
-
var Button =
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
)
|
|
381
|
+
var Button = ({
|
|
382
|
+
ref,
|
|
383
|
+
className,
|
|
384
|
+
variant,
|
|
385
|
+
size,
|
|
386
|
+
asChild = false,
|
|
387
|
+
...props
|
|
388
|
+
}) => {
|
|
389
|
+
const Comp = asChild ? reactSlot.Slot : "button";
|
|
390
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
391
|
+
Comp,
|
|
392
|
+
{
|
|
393
|
+
className: cn(buttonVariants({ variant, size, className })),
|
|
394
|
+
ref,
|
|
395
|
+
...props
|
|
396
|
+
}
|
|
397
|
+
);
|
|
398
|
+
};
|
|
382
399
|
Button.displayName = "Button";
|
|
383
400
|
function Separator({
|
|
384
401
|
className,
|
|
@@ -698,8 +715,8 @@ function CalendarDayButton({
|
|
|
698
715
|
...props
|
|
699
716
|
}) {
|
|
700
717
|
const defaultClassNames = reactDayPicker.getDefaultClassNames();
|
|
701
|
-
const ref =
|
|
702
|
-
|
|
718
|
+
const ref = React6__namespace.useRef(null);
|
|
719
|
+
React6__namespace.useEffect(() => {
|
|
703
720
|
if (modifiers.focused) ref.current?.focus();
|
|
704
721
|
}, [modifiers.focused]);
|
|
705
722
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -919,7 +936,7 @@ function InputOTPSlot({
|
|
|
919
936
|
className,
|
|
920
937
|
...props
|
|
921
938
|
}) {
|
|
922
|
-
const inputOTPContext =
|
|
939
|
+
const inputOTPContext = React6__namespace.useContext(inputOtp.OTPInputContext);
|
|
923
940
|
const { char, hasFakeCaret, isActive } = inputOTPContext?.slots[index] ?? {};
|
|
924
941
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
925
942
|
"div",
|
|
@@ -941,22 +958,25 @@ function InputOTPSlot({
|
|
|
941
958
|
function InputOTPSeparator({ ...props }) {
|
|
942
959
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(MinusIcon, {}) });
|
|
943
960
|
}
|
|
944
|
-
var Input =
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
961
|
+
var Input = ({
|
|
962
|
+
ref,
|
|
963
|
+
className,
|
|
964
|
+
type,
|
|
965
|
+
...props
|
|
966
|
+
}) => {
|
|
967
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
968
|
+
"input",
|
|
969
|
+
{
|
|
970
|
+
type,
|
|
971
|
+
className: cn(
|
|
972
|
+
"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",
|
|
973
|
+
className
|
|
974
|
+
),
|
|
975
|
+
ref,
|
|
976
|
+
...props
|
|
977
|
+
}
|
|
978
|
+
);
|
|
979
|
+
};
|
|
960
980
|
Input.displayName = "Input";
|
|
961
981
|
function Label({
|
|
962
982
|
className,
|
|
@@ -1154,7 +1174,7 @@ function FieldError({
|
|
|
1154
1174
|
errors,
|
|
1155
1175
|
...props
|
|
1156
1176
|
}) {
|
|
1157
|
-
const content =
|
|
1177
|
+
const content = React6.useMemo(() => {
|
|
1158
1178
|
if (children) {
|
|
1159
1179
|
return children;
|
|
1160
1180
|
}
|
|
@@ -1186,7 +1206,7 @@ function FieldError({
|
|
|
1186
1206
|
);
|
|
1187
1207
|
}
|
|
1188
1208
|
var Form = reactHookForm.FormProvider;
|
|
1189
|
-
var FormFieldContext =
|
|
1209
|
+
var FormFieldContext = React6__namespace.createContext(
|
|
1190
1210
|
{}
|
|
1191
1211
|
);
|
|
1192
1212
|
var FormField = ({
|
|
@@ -1194,12 +1214,12 @@ var FormField = ({
|
|
|
1194
1214
|
}) => {
|
|
1195
1215
|
return /* @__PURE__ */ jsxRuntime.jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsxRuntime.jsx(reactHookForm.Controller, { ...props }) });
|
|
1196
1216
|
};
|
|
1197
|
-
var FormItemContext =
|
|
1217
|
+
var FormItemContext = React6__namespace.createContext(
|
|
1198
1218
|
{}
|
|
1199
1219
|
);
|
|
1200
1220
|
var useFormField = () => {
|
|
1201
|
-
const fieldContext =
|
|
1202
|
-
const itemContext =
|
|
1221
|
+
const fieldContext = React6__namespace.useContext(FormFieldContext);
|
|
1222
|
+
const itemContext = React6__namespace.useContext(FormItemContext);
|
|
1203
1223
|
const { getFieldState } = reactHookForm.useFormContext();
|
|
1204
1224
|
const formState = reactHookForm.useFormState({ name: fieldContext.name });
|
|
1205
1225
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
@@ -1217,7 +1237,7 @@ var useFormField = () => {
|
|
|
1217
1237
|
};
|
|
1218
1238
|
};
|
|
1219
1239
|
function FormItem({ className, ...props }) {
|
|
1220
|
-
const id =
|
|
1240
|
+
const id = React6__namespace.useId();
|
|
1221
1241
|
return /* @__PURE__ */ jsxRuntime.jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1222
1242
|
"div",
|
|
1223
1243
|
{
|
|
@@ -1285,62 +1305,73 @@ function FormMessage({ className, ...props }) {
|
|
|
1285
1305
|
}
|
|
1286
1306
|
);
|
|
1287
1307
|
}
|
|
1288
|
-
var Textarea =
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1308
|
+
var Textarea = ({
|
|
1309
|
+
ref,
|
|
1310
|
+
className,
|
|
1311
|
+
autoResize = false,
|
|
1312
|
+
minHeight = 50,
|
|
1313
|
+
maxHeight = 350,
|
|
1314
|
+
size = "default",
|
|
1315
|
+
onChange,
|
|
1316
|
+
...props
|
|
1317
|
+
}) => {
|
|
1318
|
+
const internalRef = React6__namespace.useRef(null);
|
|
1319
|
+
React6__namespace.useImperativeHandle(ref, () => internalRef.current);
|
|
1320
|
+
const sizeClasses = {
|
|
1321
|
+
sm: "min-h-11 h-11",
|
|
1322
|
+
// 44px / 2.75rem - exact height
|
|
1323
|
+
default: "min-h-[60px]",
|
|
1324
|
+
// 60px / 3.75rem
|
|
1325
|
+
lg: "min-h-20"
|
|
1326
|
+
// 80px / 5rem
|
|
1327
|
+
};
|
|
1328
|
+
const paddingClasses = {
|
|
1329
|
+
sm: "py-3",
|
|
1330
|
+
// 12px top + 12px bottom + 20px line-height = 44px
|
|
1331
|
+
default: "py-2",
|
|
1332
|
+
// 8px top + 8px bottom (default)
|
|
1333
|
+
lg: "py-2"
|
|
1334
|
+
// 8px top + 8px bottom (default)
|
|
1335
|
+
};
|
|
1336
|
+
const handleResize = React6__namespace.useCallback(() => {
|
|
1337
|
+
if (autoResize && size !== "sm" && internalRef.current) {
|
|
1338
|
+
const textarea = internalRef.current;
|
|
1339
|
+
textarea.style.height = "auto";
|
|
1340
|
+
const scrollHeight = textarea.scrollHeight;
|
|
1341
|
+
textarea.style.height = `${Math.min(Math.max(scrollHeight, minHeight), maxHeight)}px`;
|
|
1342
|
+
}
|
|
1343
|
+
}, [autoResize, size, minHeight, maxHeight]);
|
|
1344
|
+
React6__namespace.useEffect(() => {
|
|
1345
|
+
handleResize();
|
|
1346
|
+
}, [handleResize, props.value]);
|
|
1347
|
+
const handleChange = React6__namespace.useCallback(
|
|
1348
|
+
(e) => {
|
|
1317
1349
|
handleResize();
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
className
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
...props
|
|
1338
|
-
}
|
|
1339
|
-
);
|
|
1340
|
-
}
|
|
1341
|
-
);
|
|
1350
|
+
onChange?.(e);
|
|
1351
|
+
},
|
|
1352
|
+
[onChange, handleResize]
|
|
1353
|
+
);
|
|
1354
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1355
|
+
"textarea",
|
|
1356
|
+
{
|
|
1357
|
+
className: cn(
|
|
1358
|
+
"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",
|
|
1359
|
+
sizeClasses[size],
|
|
1360
|
+
paddingClasses[size],
|
|
1361
|
+
className
|
|
1362
|
+
),
|
|
1363
|
+
ref: internalRef,
|
|
1364
|
+
onChange: handleChange,
|
|
1365
|
+
...props
|
|
1366
|
+
}
|
|
1367
|
+
);
|
|
1368
|
+
};
|
|
1342
1369
|
Textarea.displayName = "Textarea";
|
|
1343
|
-
var Switch =
|
|
1370
|
+
var Switch = ({
|
|
1371
|
+
ref,
|
|
1372
|
+
className,
|
|
1373
|
+
...props
|
|
1374
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1344
1375
|
SwitchPrimitives__namespace.Root,
|
|
1345
1376
|
{
|
|
1346
1377
|
className: cn(
|
|
@@ -1360,7 +1391,7 @@ var Switch = React26__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1360
1391
|
}
|
|
1361
1392
|
)
|
|
1362
1393
|
}
|
|
1363
|
-
)
|
|
1394
|
+
);
|
|
1364
1395
|
Switch.displayName = SwitchPrimitives__namespace.Root.displayName;
|
|
1365
1396
|
function Table({ className, ...props }) {
|
|
1366
1397
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1488,7 +1519,12 @@ var ChevronUpIcon = ({
|
|
|
1488
1519
|
var Select = SelectPrimitive__namespace.Root;
|
|
1489
1520
|
var SelectGroup = SelectPrimitive__namespace.Group;
|
|
1490
1521
|
var SelectValue = SelectPrimitive__namespace.Value;
|
|
1491
|
-
var SelectTrigger =
|
|
1522
|
+
var SelectTrigger = ({
|
|
1523
|
+
ref,
|
|
1524
|
+
className,
|
|
1525
|
+
children,
|
|
1526
|
+
...props
|
|
1527
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1492
1528
|
SelectPrimitive__namespace.Trigger,
|
|
1493
1529
|
{
|
|
1494
1530
|
ref,
|
|
@@ -1503,9 +1539,13 @@ var SelectTrigger = React26__namespace.forwardRef(({ className, children, ...pro
|
|
|
1503
1539
|
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon, { className: "h-4 w-4 opacity-50" }) })
|
|
1504
1540
|
]
|
|
1505
1541
|
}
|
|
1506
|
-
)
|
|
1542
|
+
);
|
|
1507
1543
|
SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
|
|
1508
|
-
var SelectScrollUpButton =
|
|
1544
|
+
var SelectScrollUpButton = ({
|
|
1545
|
+
ref,
|
|
1546
|
+
className,
|
|
1547
|
+
...props
|
|
1548
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1509
1549
|
SelectPrimitive__namespace.ScrollUpButton,
|
|
1510
1550
|
{
|
|
1511
1551
|
ref,
|
|
@@ -1516,9 +1556,13 @@ var SelectScrollUpButton = React26__namespace.forwardRef(({ className, ...props
|
|
|
1516
1556
|
...props,
|
|
1517
1557
|
children: /* @__PURE__ */ jsxRuntime.jsx(ChevronUpIcon, { className: "h-4 w-4" })
|
|
1518
1558
|
}
|
|
1519
|
-
)
|
|
1559
|
+
);
|
|
1520
1560
|
SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
|
|
1521
|
-
var SelectScrollDownButton =
|
|
1561
|
+
var SelectScrollDownButton = ({
|
|
1562
|
+
ref,
|
|
1563
|
+
className,
|
|
1564
|
+
...props
|
|
1565
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1522
1566
|
SelectPrimitive__namespace.ScrollDownButton,
|
|
1523
1567
|
{
|
|
1524
1568
|
ref,
|
|
@@ -1529,9 +1573,15 @@ var SelectScrollDownButton = React26__namespace.forwardRef(({ className, ...prop
|
|
|
1529
1573
|
...props,
|
|
1530
1574
|
children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon, { className: "h-4 w-4" })
|
|
1531
1575
|
}
|
|
1532
|
-
)
|
|
1576
|
+
);
|
|
1533
1577
|
SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
|
|
1534
|
-
var SelectContent =
|
|
1578
|
+
var SelectContent = ({
|
|
1579
|
+
ref,
|
|
1580
|
+
className,
|
|
1581
|
+
children,
|
|
1582
|
+
position = "popper",
|
|
1583
|
+
...props
|
|
1584
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1535
1585
|
SelectPrimitive__namespace.Content,
|
|
1536
1586
|
{
|
|
1537
1587
|
ref,
|
|
@@ -1557,18 +1607,27 @@ var SelectContent = React26__namespace.forwardRef(({ className, children, positi
|
|
|
1557
1607
|
/* @__PURE__ */ jsxRuntime.jsx(SelectScrollDownButton, {})
|
|
1558
1608
|
]
|
|
1559
1609
|
}
|
|
1560
|
-
) })
|
|
1610
|
+
) });
|
|
1561
1611
|
SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
|
|
1562
|
-
var SelectLabel =
|
|
1612
|
+
var SelectLabel = ({
|
|
1613
|
+
ref,
|
|
1614
|
+
className,
|
|
1615
|
+
...props
|
|
1616
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1563
1617
|
SelectPrimitive__namespace.Label,
|
|
1564
1618
|
{
|
|
1565
1619
|
ref,
|
|
1566
1620
|
className: cn("px-2 py-1.5 text-sm font-semibold", className),
|
|
1567
1621
|
...props
|
|
1568
1622
|
}
|
|
1569
|
-
)
|
|
1623
|
+
);
|
|
1570
1624
|
SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
|
|
1571
|
-
var SelectItem =
|
|
1625
|
+
var SelectItem = ({
|
|
1626
|
+
ref,
|
|
1627
|
+
className,
|
|
1628
|
+
children,
|
|
1629
|
+
...props
|
|
1630
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1572
1631
|
SelectPrimitive__namespace.Item,
|
|
1573
1632
|
{
|
|
1574
1633
|
ref,
|
|
@@ -1582,16 +1641,20 @@ var SelectItem = React26__namespace.forwardRef(({ className, children, ...props
|
|
|
1582
1641
|
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemText, { children })
|
|
1583
1642
|
]
|
|
1584
1643
|
}
|
|
1585
|
-
)
|
|
1644
|
+
);
|
|
1586
1645
|
SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
|
|
1587
|
-
var SelectSeparator =
|
|
1646
|
+
var SelectSeparator = ({
|
|
1647
|
+
ref,
|
|
1648
|
+
className,
|
|
1649
|
+
...props
|
|
1650
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1588
1651
|
SelectPrimitive__namespace.Separator,
|
|
1589
1652
|
{
|
|
1590
1653
|
ref,
|
|
1591
1654
|
className: cn("-mx-1 my-1 h-px bg-muted", className),
|
|
1592
1655
|
...props
|
|
1593
1656
|
}
|
|
1594
|
-
)
|
|
1657
|
+
);
|
|
1595
1658
|
SelectSeparator.displayName = SelectPrimitive__namespace.Separator.displayName;
|
|
1596
1659
|
function DataTablePagination({
|
|
1597
1660
|
table,
|
|
@@ -1700,10 +1763,10 @@ function DataTable({
|
|
|
1700
1763
|
pageSize = 10,
|
|
1701
1764
|
noResultsMessage = "No results."
|
|
1702
1765
|
}) {
|
|
1703
|
-
const [sorting, setSorting] =
|
|
1704
|
-
const [columnFilters, setColumnFilters] =
|
|
1705
|
-
const [columnVisibility, setColumnVisibility] =
|
|
1706
|
-
const [rowSelection, setRowSelection] =
|
|
1766
|
+
const [sorting, setSorting] = React6__namespace.useState([]);
|
|
1767
|
+
const [columnFilters, setColumnFilters] = React6__namespace.useState([]);
|
|
1768
|
+
const [columnVisibility, setColumnVisibility] = React6__namespace.useState({});
|
|
1769
|
+
const [rowSelection, setRowSelection] = React6__namespace.useState({});
|
|
1707
1770
|
const internalTable = reactTable.useReactTable({
|
|
1708
1771
|
data,
|
|
1709
1772
|
columns,
|
|
@@ -1776,7 +1839,13 @@ var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
|
|
|
1776
1839
|
var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
|
|
1777
1840
|
var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
|
|
1778
1841
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
|
|
1779
|
-
var DropdownMenuSubTrigger =
|
|
1842
|
+
var DropdownMenuSubTrigger = ({
|
|
1843
|
+
ref,
|
|
1844
|
+
className,
|
|
1845
|
+
inset,
|
|
1846
|
+
children,
|
|
1847
|
+
...props
|
|
1848
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1780
1849
|
DropdownMenuPrimitive__namespace.SubTrigger,
|
|
1781
1850
|
{
|
|
1782
1851
|
ref,
|
|
@@ -1791,9 +1860,14 @@ var DropdownMenuSubTrigger = React26__namespace.forwardRef(({ className, inset,
|
|
|
1791
1860
|
/* @__PURE__ */ jsxRuntime.jsx(ChevronRightIcon, { className: "ms-auto rtl:rotate-180" })
|
|
1792
1861
|
]
|
|
1793
1862
|
}
|
|
1794
|
-
)
|
|
1863
|
+
);
|
|
1795
1864
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
|
|
1796
|
-
var DropdownMenuSubContent =
|
|
1865
|
+
var DropdownMenuSubContent = ({
|
|
1866
|
+
ref,
|
|
1867
|
+
className,
|
|
1868
|
+
container,
|
|
1869
|
+
...props
|
|
1870
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { container: container ?? void 0, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1797
1871
|
DropdownMenuPrimitive__namespace.SubContent,
|
|
1798
1872
|
{
|
|
1799
1873
|
ref,
|
|
@@ -1803,9 +1877,15 @@ var DropdownMenuSubContent = React26__namespace.forwardRef(({ className, contain
|
|
|
1803
1877
|
),
|
|
1804
1878
|
...props
|
|
1805
1879
|
}
|
|
1806
|
-
) })
|
|
1880
|
+
) });
|
|
1807
1881
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
|
|
1808
|
-
var DropdownMenuContent =
|
|
1882
|
+
var DropdownMenuContent = ({
|
|
1883
|
+
ref,
|
|
1884
|
+
className,
|
|
1885
|
+
sideOffset = 4,
|
|
1886
|
+
container,
|
|
1887
|
+
...props
|
|
1888
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { container: container ?? void 0, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1809
1889
|
DropdownMenuPrimitive__namespace.Content,
|
|
1810
1890
|
{
|
|
1811
1891
|
ref,
|
|
@@ -1817,9 +1897,14 @@ var DropdownMenuContent = React26__namespace.forwardRef(({ className, sideOffset
|
|
|
1817
1897
|
),
|
|
1818
1898
|
...props
|
|
1819
1899
|
}
|
|
1820
|
-
) })
|
|
1900
|
+
) });
|
|
1821
1901
|
DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
|
|
1822
|
-
var DropdownMenuItem =
|
|
1902
|
+
var DropdownMenuItem = ({
|
|
1903
|
+
ref,
|
|
1904
|
+
className,
|
|
1905
|
+
inset,
|
|
1906
|
+
...props
|
|
1907
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1823
1908
|
DropdownMenuPrimitive__namespace.Item,
|
|
1824
1909
|
{
|
|
1825
1910
|
ref,
|
|
@@ -1830,9 +1915,15 @@ var DropdownMenuItem = React26__namespace.forwardRef(({ className, inset, ...pro
|
|
|
1830
1915
|
),
|
|
1831
1916
|
...props
|
|
1832
1917
|
}
|
|
1833
|
-
)
|
|
1918
|
+
);
|
|
1834
1919
|
DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
|
|
1835
|
-
var DropdownMenuCheckboxItem =
|
|
1920
|
+
var DropdownMenuCheckboxItem = ({
|
|
1921
|
+
ref,
|
|
1922
|
+
className,
|
|
1923
|
+
children,
|
|
1924
|
+
checked,
|
|
1925
|
+
...props
|
|
1926
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1836
1927
|
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
1837
1928
|
{
|
|
1838
1929
|
ref,
|
|
@@ -1847,9 +1938,14 @@ var DropdownMenuCheckboxItem = React26__namespace.forwardRef(({ className, child
|
|
|
1847
1938
|
children
|
|
1848
1939
|
]
|
|
1849
1940
|
}
|
|
1850
|
-
)
|
|
1941
|
+
);
|
|
1851
1942
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
1852
|
-
var DropdownMenuRadioItem =
|
|
1943
|
+
var DropdownMenuRadioItem = ({
|
|
1944
|
+
ref,
|
|
1945
|
+
className,
|
|
1946
|
+
children,
|
|
1947
|
+
...props
|
|
1948
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1853
1949
|
DropdownMenuPrimitive__namespace.RadioItem,
|
|
1854
1950
|
{
|
|
1855
1951
|
ref,
|
|
@@ -1863,9 +1959,14 @@ var DropdownMenuRadioItem = React26__namespace.forwardRef(({ className, children
|
|
|
1863
1959
|
children
|
|
1864
1960
|
]
|
|
1865
1961
|
}
|
|
1866
|
-
)
|
|
1962
|
+
);
|
|
1867
1963
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
|
|
1868
|
-
var DropdownMenuLabel =
|
|
1964
|
+
var DropdownMenuLabel = ({
|
|
1965
|
+
ref,
|
|
1966
|
+
className,
|
|
1967
|
+
inset,
|
|
1968
|
+
...props
|
|
1969
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1869
1970
|
DropdownMenuPrimitive__namespace.Label,
|
|
1870
1971
|
{
|
|
1871
1972
|
ref,
|
|
@@ -1876,16 +1977,20 @@ var DropdownMenuLabel = React26__namespace.forwardRef(({ className, inset, ...pr
|
|
|
1876
1977
|
),
|
|
1877
1978
|
...props
|
|
1878
1979
|
}
|
|
1879
|
-
)
|
|
1980
|
+
);
|
|
1880
1981
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
|
|
1881
|
-
var DropdownMenuSeparator =
|
|
1982
|
+
var DropdownMenuSeparator = ({
|
|
1983
|
+
ref,
|
|
1984
|
+
className,
|
|
1985
|
+
...props
|
|
1986
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1882
1987
|
DropdownMenuPrimitive__namespace.Separator,
|
|
1883
1988
|
{
|
|
1884
1989
|
ref,
|
|
1885
1990
|
className: cn("-mx-1 my-1 h-px bg-muted", className),
|
|
1886
1991
|
...props
|
|
1887
1992
|
}
|
|
1888
|
-
)
|
|
1993
|
+
);
|
|
1889
1994
|
DropdownMenuSeparator.displayName = DropdownMenuPrimitive__namespace.Separator.displayName;
|
|
1890
1995
|
var DropdownMenuShortcut = ({
|
|
1891
1996
|
className,
|
|
@@ -1993,23 +2098,31 @@ function Skeleton({
|
|
|
1993
2098
|
}
|
|
1994
2099
|
);
|
|
1995
2100
|
}
|
|
1996
|
-
var Spinner =
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2101
|
+
var Spinner = ({
|
|
2102
|
+
ref,
|
|
2103
|
+
className,
|
|
2104
|
+
icon: Icon2 = lucideReact.Loader2,
|
|
2105
|
+
size = "size-4",
|
|
2106
|
+
...props
|
|
2107
|
+
}) => {
|
|
2108
|
+
const textColorClasses = className?.match(/\btext-\S+/g)?.join(" ") || "";
|
|
2109
|
+
const wrapperClasses = lodash.trim(className?.replace(/\btext-\S+/g, "") || "");
|
|
2110
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2111
|
+
"div",
|
|
2112
|
+
{
|
|
2113
|
+
ref,
|
|
2114
|
+
className: cn("inline-flex items-center justify-center", wrapperClasses),
|
|
2115
|
+
...props,
|
|
2116
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon2, { className: cn("animate-spin", size, textColorClasses) })
|
|
2117
|
+
}
|
|
2118
|
+
);
|
|
2119
|
+
};
|
|
2011
2120
|
Spinner.displayName = "Spinner";
|
|
2012
|
-
var Slider =
|
|
2121
|
+
var Slider = ({
|
|
2122
|
+
ref,
|
|
2123
|
+
className,
|
|
2124
|
+
...props
|
|
2125
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2013
2126
|
SliderPrimitive__namespace.Root,
|
|
2014
2127
|
{
|
|
2015
2128
|
ref,
|
|
@@ -2019,9 +2132,13 @@ var Slider = React26__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2019
2132
|
),
|
|
2020
2133
|
...props
|
|
2021
2134
|
}
|
|
2022
|
-
)
|
|
2135
|
+
);
|
|
2023
2136
|
Slider.displayName = SliderPrimitive__namespace.Root.displayName;
|
|
2024
|
-
var SliderTrack =
|
|
2137
|
+
var SliderTrack = ({
|
|
2138
|
+
ref,
|
|
2139
|
+
className,
|
|
2140
|
+
...props
|
|
2141
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2025
2142
|
SliderPrimitive__namespace.Track,
|
|
2026
2143
|
{
|
|
2027
2144
|
ref,
|
|
@@ -2031,18 +2148,26 @@ var SliderTrack = React26__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
2031
2148
|
),
|
|
2032
2149
|
...props
|
|
2033
2150
|
}
|
|
2034
|
-
)
|
|
2151
|
+
);
|
|
2035
2152
|
SliderTrack.displayName = SliderPrimitive__namespace.Track.displayName;
|
|
2036
|
-
var SliderRange =
|
|
2153
|
+
var SliderRange = ({
|
|
2154
|
+
ref,
|
|
2155
|
+
className,
|
|
2156
|
+
...props
|
|
2157
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2037
2158
|
SliderPrimitive__namespace.Range,
|
|
2038
2159
|
{
|
|
2039
2160
|
ref,
|
|
2040
2161
|
className: cn("absolute h-full bg-primary", className),
|
|
2041
2162
|
...props
|
|
2042
2163
|
}
|
|
2043
|
-
)
|
|
2164
|
+
);
|
|
2044
2165
|
SliderRange.displayName = SliderPrimitive__namespace.Range.displayName;
|
|
2045
|
-
var SliderThumb =
|
|
2166
|
+
var SliderThumb = ({
|
|
2167
|
+
ref,
|
|
2168
|
+
className,
|
|
2169
|
+
...props
|
|
2170
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2046
2171
|
SliderPrimitive__namespace.Thumb,
|
|
2047
2172
|
{
|
|
2048
2173
|
ref,
|
|
@@ -2052,9 +2177,14 @@ var SliderThumb = React26__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
2052
2177
|
),
|
|
2053
2178
|
...props
|
|
2054
2179
|
}
|
|
2055
|
-
)
|
|
2180
|
+
);
|
|
2056
2181
|
SliderThumb.displayName = SliderPrimitive__namespace.Thumb.displayName;
|
|
2057
|
-
var Progress =
|
|
2182
|
+
var Progress = ({
|
|
2183
|
+
ref,
|
|
2184
|
+
className,
|
|
2185
|
+
value,
|
|
2186
|
+
...props
|
|
2187
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2058
2188
|
ProgressPrimitive__namespace.Root,
|
|
2059
2189
|
{
|
|
2060
2190
|
ref,
|
|
@@ -2071,7 +2201,7 @@ var Progress = React26__namespace.forwardRef(({ className, value, ...props }, re
|
|
|
2071
2201
|
}
|
|
2072
2202
|
)
|
|
2073
2203
|
}
|
|
2074
|
-
)
|
|
2204
|
+
);
|
|
2075
2205
|
Progress.displayName = ProgressPrimitive__namespace.Root.displayName;
|
|
2076
2206
|
var Toaster = ({ ...props }) => {
|
|
2077
2207
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2091,7 +2221,7 @@ var Toaster = ({ ...props }) => {
|
|
|
2091
2221
|
};
|
|
2092
2222
|
function useToast(options = {}) {
|
|
2093
2223
|
const { defaultDuration, defaultPosition } = options;
|
|
2094
|
-
return
|
|
2224
|
+
return React6.useMemo(() => {
|
|
2095
2225
|
const mergeDefaults = (opts) => ({
|
|
2096
2226
|
duration: defaultDuration,
|
|
2097
2227
|
position: defaultPosition,
|
|
@@ -2124,9 +2254,17 @@ var Tooltip = ({
|
|
|
2124
2254
|
...props
|
|
2125
2255
|
}) => /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Root, { ...props }) });
|
|
2126
2256
|
Tooltip.displayName = TooltipPrimitive__namespace.Root.displayName;
|
|
2127
|
-
var TooltipTrigger =
|
|
2257
|
+
var TooltipTrigger = ({
|
|
2258
|
+
ref,
|
|
2259
|
+
...props
|
|
2260
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Trigger, { ref, ...props });
|
|
2128
2261
|
TooltipTrigger.displayName = TooltipPrimitive__namespace.Trigger.displayName;
|
|
2129
|
-
var TooltipContent =
|
|
2262
|
+
var TooltipContent = ({
|
|
2263
|
+
ref,
|
|
2264
|
+
className,
|
|
2265
|
+
sideOffset = 4,
|
|
2266
|
+
...props
|
|
2267
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2130
2268
|
TooltipPrimitive__namespace.Content,
|
|
2131
2269
|
{
|
|
2132
2270
|
ref,
|
|
@@ -2137,20 +2275,29 @@ var TooltipContent = React26__namespace.forwardRef(({ className, sideOffset = 4,
|
|
|
2137
2275
|
),
|
|
2138
2276
|
...props
|
|
2139
2277
|
}
|
|
2140
|
-
) })
|
|
2278
|
+
) });
|
|
2141
2279
|
TooltipContent.displayName = TooltipPrimitive__namespace.Content.displayName;
|
|
2142
2280
|
var Popover = PopoverPrimitive__namespace.Root;
|
|
2143
2281
|
Popover.displayName = "Popover";
|
|
2144
|
-
var PopoverTrigger =
|
|
2282
|
+
var PopoverTrigger = ({
|
|
2283
|
+
ref,
|
|
2284
|
+
...props
|
|
2285
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2145
2286
|
PopoverPrimitive__namespace.Trigger,
|
|
2146
2287
|
{
|
|
2147
2288
|
ref,
|
|
2148
2289
|
"data-slot": "popover-trigger",
|
|
2149
2290
|
...props
|
|
2150
2291
|
}
|
|
2151
|
-
)
|
|
2292
|
+
);
|
|
2152
2293
|
PopoverTrigger.displayName = "PopoverTrigger";
|
|
2153
|
-
var PopoverContent =
|
|
2294
|
+
var PopoverContent = ({
|
|
2295
|
+
ref,
|
|
2296
|
+
className,
|
|
2297
|
+
align = "center",
|
|
2298
|
+
sideOffset = 4,
|
|
2299
|
+
...props
|
|
2300
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2154
2301
|
PopoverPrimitive__namespace.Content,
|
|
2155
2302
|
{
|
|
2156
2303
|
ref,
|
|
@@ -2163,29 +2310,41 @@ var PopoverContent = React26__namespace.forwardRef(({ className, align = "center
|
|
|
2163
2310
|
),
|
|
2164
2311
|
...props
|
|
2165
2312
|
}
|
|
2166
|
-
) })
|
|
2313
|
+
) });
|
|
2167
2314
|
PopoverContent.displayName = "PopoverContent";
|
|
2168
|
-
var PopoverAnchor =
|
|
2315
|
+
var PopoverAnchor = ({
|
|
2316
|
+
ref,
|
|
2317
|
+
...props
|
|
2318
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2169
2319
|
PopoverPrimitive__namespace.Anchor,
|
|
2170
2320
|
{
|
|
2171
2321
|
ref,
|
|
2172
2322
|
"data-slot": "popover-anchor",
|
|
2173
2323
|
...props
|
|
2174
2324
|
}
|
|
2175
|
-
)
|
|
2325
|
+
);
|
|
2176
2326
|
PopoverAnchor.displayName = "PopoverAnchor";
|
|
2177
2327
|
var HoverCard = HoverCardPrimitive__namespace.Root;
|
|
2178
2328
|
HoverCard.displayName = "HoverCard";
|
|
2179
|
-
var HoverCardTrigger =
|
|
2329
|
+
var HoverCardTrigger = ({
|
|
2330
|
+
ref,
|
|
2331
|
+
...props
|
|
2332
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2180
2333
|
HoverCardPrimitive__namespace.Trigger,
|
|
2181
2334
|
{
|
|
2182
2335
|
ref,
|
|
2183
2336
|
"data-slot": "hover-card-trigger",
|
|
2184
2337
|
...props
|
|
2185
2338
|
}
|
|
2186
|
-
)
|
|
2339
|
+
);
|
|
2187
2340
|
HoverCardTrigger.displayName = "HoverCardTrigger";
|
|
2188
|
-
var HoverCardContent =
|
|
2341
|
+
var HoverCardContent = ({
|
|
2342
|
+
ref,
|
|
2343
|
+
className,
|
|
2344
|
+
align = "center",
|
|
2345
|
+
sideOffset = 4,
|
|
2346
|
+
...props
|
|
2347
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(HoverCardPrimitive__namespace.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2189
2348
|
HoverCardPrimitive__namespace.Content,
|
|
2190
2349
|
{
|
|
2191
2350
|
ref,
|
|
@@ -2198,9 +2357,13 @@ var HoverCardContent = React26__namespace.forwardRef(({ className, align = "cent
|
|
|
2198
2357
|
),
|
|
2199
2358
|
...props
|
|
2200
2359
|
}
|
|
2201
|
-
) })
|
|
2360
|
+
) });
|
|
2202
2361
|
HoverCardContent.displayName = "HoverCardContent";
|
|
2203
|
-
var Card =
|
|
2362
|
+
var Card = ({
|
|
2363
|
+
ref,
|
|
2364
|
+
className,
|
|
2365
|
+
...props
|
|
2366
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2204
2367
|
"div",
|
|
2205
2368
|
{
|
|
2206
2369
|
ref,
|
|
@@ -2210,63 +2373,90 @@ var Card = React26__namespace.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
2210
2373
|
),
|
|
2211
2374
|
...props
|
|
2212
2375
|
}
|
|
2213
|
-
)
|
|
2376
|
+
);
|
|
2214
2377
|
Card.displayName = "Card";
|
|
2215
|
-
var CardHeader =
|
|
2378
|
+
var CardHeader = ({
|
|
2379
|
+
ref,
|
|
2380
|
+
className,
|
|
2381
|
+
...props
|
|
2382
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2216
2383
|
"div",
|
|
2217
2384
|
{
|
|
2218
2385
|
ref,
|
|
2219
2386
|
className: cn("flex flex-col space-y-1.5 p-6", className),
|
|
2220
2387
|
...props
|
|
2221
2388
|
}
|
|
2222
|
-
)
|
|
2389
|
+
);
|
|
2223
2390
|
CardHeader.displayName = "CardHeader";
|
|
2224
|
-
var CardTitle =
|
|
2391
|
+
var CardTitle = ({
|
|
2392
|
+
ref,
|
|
2393
|
+
className,
|
|
2394
|
+
...props
|
|
2395
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2225
2396
|
"div",
|
|
2226
2397
|
{
|
|
2227
2398
|
ref,
|
|
2228
2399
|
className: cn("font-semibold leading-none tracking-tight", className),
|
|
2229
2400
|
...props
|
|
2230
2401
|
}
|
|
2231
|
-
)
|
|
2402
|
+
);
|
|
2232
2403
|
CardTitle.displayName = "CardTitle";
|
|
2233
|
-
var CardDescription =
|
|
2404
|
+
var CardDescription = ({
|
|
2405
|
+
ref,
|
|
2406
|
+
className,
|
|
2407
|
+
...props
|
|
2408
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2234
2409
|
"div",
|
|
2235
2410
|
{
|
|
2236
2411
|
ref,
|
|
2237
2412
|
className: cn("text-sm text-muted-foreground", className),
|
|
2238
2413
|
...props
|
|
2239
2414
|
}
|
|
2240
|
-
)
|
|
2415
|
+
);
|
|
2241
2416
|
CardDescription.displayName = "CardDescription";
|
|
2242
|
-
var CardContent =
|
|
2417
|
+
var CardContent = ({
|
|
2418
|
+
ref,
|
|
2419
|
+
className,
|
|
2420
|
+
...props
|
|
2421
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("p-6 pt-0", className), ...props });
|
|
2243
2422
|
CardContent.displayName = "CardContent";
|
|
2244
|
-
var CardFooter =
|
|
2423
|
+
var CardFooter = ({
|
|
2424
|
+
ref,
|
|
2425
|
+
className,
|
|
2426
|
+
...props
|
|
2427
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2245
2428
|
"div",
|
|
2246
2429
|
{
|
|
2247
2430
|
ref,
|
|
2248
2431
|
className: cn("flex items-center p-6 pt-0", className),
|
|
2249
2432
|
...props
|
|
2250
2433
|
}
|
|
2251
|
-
));
|
|
2252
|
-
CardFooter.displayName = "CardFooter";
|
|
2253
|
-
var Header = React26__namespace.default.forwardRef(
|
|
2254
|
-
({ children, className }, ref) => {
|
|
2255
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2256
|
-
"header",
|
|
2257
|
-
{
|
|
2258
|
-
ref,
|
|
2259
|
-
className: cn(
|
|
2260
|
-
"flex items-center justify-end px-6 py-4 bg-background border-b border-border h-16 w-full",
|
|
2261
|
-
className
|
|
2262
|
-
),
|
|
2263
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-4", children })
|
|
2264
|
-
}
|
|
2265
|
-
);
|
|
2266
|
-
}
|
|
2267
2434
|
);
|
|
2435
|
+
CardFooter.displayName = "CardFooter";
|
|
2436
|
+
var Header = ({
|
|
2437
|
+
ref,
|
|
2438
|
+
children,
|
|
2439
|
+
className
|
|
2440
|
+
}) => {
|
|
2441
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2442
|
+
"header",
|
|
2443
|
+
{
|
|
2444
|
+
ref,
|
|
2445
|
+
className: cn(
|
|
2446
|
+
"flex items-center justify-end px-6 py-4 bg-background border-b border-border h-16 w-full",
|
|
2447
|
+
className
|
|
2448
|
+
),
|
|
2449
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-4", children })
|
|
2450
|
+
}
|
|
2451
|
+
);
|
|
2452
|
+
};
|
|
2268
2453
|
Header.displayName = "Header";
|
|
2269
|
-
var NavigationMenu =
|
|
2454
|
+
var NavigationMenu = ({
|
|
2455
|
+
ref,
|
|
2456
|
+
className,
|
|
2457
|
+
children,
|
|
2458
|
+
...props
|
|
2459
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2270
2460
|
NavigationMenuPrimitive__namespace.Root,
|
|
2271
2461
|
{
|
|
2272
2462
|
ref,
|
|
@@ -2280,9 +2470,13 @@ var NavigationMenu = React26__namespace.forwardRef(({ className, children, ...pr
|
|
|
2280
2470
|
/* @__PURE__ */ jsxRuntime.jsx(NavigationMenuViewport, {})
|
|
2281
2471
|
]
|
|
2282
2472
|
}
|
|
2283
|
-
)
|
|
2473
|
+
);
|
|
2284
2474
|
NavigationMenu.displayName = NavigationMenuPrimitive__namespace.Root.displayName;
|
|
2285
|
-
var NavigationMenuList =
|
|
2475
|
+
var NavigationMenuList = ({
|
|
2476
|
+
ref,
|
|
2477
|
+
className,
|
|
2478
|
+
...props
|
|
2479
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2286
2480
|
NavigationMenuPrimitive__namespace.List,
|
|
2287
2481
|
{
|
|
2288
2482
|
ref,
|
|
@@ -2292,13 +2486,18 @@ var NavigationMenuList = React26__namespace.forwardRef(({ className, ...props },
|
|
|
2292
2486
|
),
|
|
2293
2487
|
...props
|
|
2294
2488
|
}
|
|
2295
|
-
)
|
|
2489
|
+
);
|
|
2296
2490
|
NavigationMenuList.displayName = NavigationMenuPrimitive__namespace.List.displayName;
|
|
2297
2491
|
var NavigationMenuItem = NavigationMenuPrimitive__namespace.Item;
|
|
2298
2492
|
var navigationMenuTriggerStyle = classVarianceAuthority.cva(
|
|
2299
2493
|
"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"
|
|
2300
2494
|
);
|
|
2301
|
-
var NavigationMenuTrigger =
|
|
2495
|
+
var NavigationMenuTrigger = ({
|
|
2496
|
+
ref,
|
|
2497
|
+
className,
|
|
2498
|
+
children,
|
|
2499
|
+
...props
|
|
2500
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2302
2501
|
NavigationMenuPrimitive__namespace.Trigger,
|
|
2303
2502
|
{
|
|
2304
2503
|
ref,
|
|
@@ -2316,9 +2515,13 @@ var NavigationMenuTrigger = React26__namespace.forwardRef(({ className, children
|
|
|
2316
2515
|
)
|
|
2317
2516
|
]
|
|
2318
2517
|
}
|
|
2319
|
-
)
|
|
2518
|
+
);
|
|
2320
2519
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive__namespace.Trigger.displayName;
|
|
2321
|
-
var NavigationMenuContent =
|
|
2520
|
+
var NavigationMenuContent = ({
|
|
2521
|
+
ref,
|
|
2522
|
+
className,
|
|
2523
|
+
...props
|
|
2524
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2322
2525
|
NavigationMenuPrimitive__namespace.Content,
|
|
2323
2526
|
{
|
|
2324
2527
|
ref,
|
|
@@ -2328,10 +2531,14 @@ var NavigationMenuContent = React26__namespace.forwardRef(({ className, ...props
|
|
|
2328
2531
|
),
|
|
2329
2532
|
...props
|
|
2330
2533
|
}
|
|
2331
|
-
)
|
|
2534
|
+
);
|
|
2332
2535
|
NavigationMenuContent.displayName = NavigationMenuPrimitive__namespace.Content.displayName;
|
|
2333
2536
|
var NavigationMenuLink = NavigationMenuPrimitive__namespace.Link;
|
|
2334
|
-
var NavigationMenuViewport =
|
|
2537
|
+
var NavigationMenuViewport = ({
|
|
2538
|
+
ref,
|
|
2539
|
+
className,
|
|
2540
|
+
...props
|
|
2541
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2335
2542
|
NavigationMenuPrimitive__namespace.Viewport,
|
|
2336
2543
|
{
|
|
2337
2544
|
className: cn(
|
|
@@ -2341,9 +2548,13 @@ var NavigationMenuViewport = React26__namespace.forwardRef(({ className, ...prop
|
|
|
2341
2548
|
ref,
|
|
2342
2549
|
...props
|
|
2343
2550
|
}
|
|
2344
|
-
) })
|
|
2551
|
+
) });
|
|
2345
2552
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive__namespace.Viewport.displayName;
|
|
2346
|
-
var NavigationMenuIndicator =
|
|
2553
|
+
var NavigationMenuIndicator = ({
|
|
2554
|
+
ref,
|
|
2555
|
+
className,
|
|
2556
|
+
...props
|
|
2557
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2347
2558
|
NavigationMenuPrimitive__namespace.Indicator,
|
|
2348
2559
|
{
|
|
2349
2560
|
ref,
|
|
@@ -2354,7 +2565,7 @@ var NavigationMenuIndicator = React26__namespace.forwardRef(({ className, ...pro
|
|
|
2354
2565
|
...props,
|
|
2355
2566
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
2356
2567
|
}
|
|
2357
|
-
)
|
|
2568
|
+
);
|
|
2358
2569
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive__namespace.Indicator.displayName;
|
|
2359
2570
|
function Breadcrumb({ ...props }) {
|
|
2360
2571
|
return /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...props });
|
|
@@ -2867,7 +3078,11 @@ var Sheet = SheetPrimitive__namespace.Root;
|
|
|
2867
3078
|
var SheetTrigger = SheetPrimitive__namespace.Trigger;
|
|
2868
3079
|
var SheetClose = SheetPrimitive__namespace.Close;
|
|
2869
3080
|
var SheetPortal = SheetPrimitive__namespace.Portal;
|
|
2870
|
-
var SheetOverlay =
|
|
3081
|
+
var SheetOverlay = ({
|
|
3082
|
+
ref,
|
|
3083
|
+
className,
|
|
3084
|
+
...props
|
|
3085
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2871
3086
|
SheetPrimitive__namespace.Overlay,
|
|
2872
3087
|
{
|
|
2873
3088
|
className: cn(
|
|
@@ -2877,7 +3092,7 @@ var SheetOverlay = React26__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
2877
3092
|
...props,
|
|
2878
3093
|
ref
|
|
2879
3094
|
}
|
|
2880
|
-
)
|
|
3095
|
+
);
|
|
2881
3096
|
SheetOverlay.displayName = SheetPrimitive__namespace.Overlay.displayName;
|
|
2882
3097
|
var sheetVariants = classVarianceAuthority.cva(
|
|
2883
3098
|
"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",
|
|
@@ -2895,7 +3110,13 @@ var sheetVariants = classVarianceAuthority.cva(
|
|
|
2895
3110
|
}
|
|
2896
3111
|
}
|
|
2897
3112
|
);
|
|
2898
|
-
var SheetContent =
|
|
3113
|
+
var SheetContent = ({
|
|
3114
|
+
ref,
|
|
3115
|
+
side = "right",
|
|
3116
|
+
className,
|
|
3117
|
+
children,
|
|
3118
|
+
...props
|
|
3119
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
|
|
2899
3120
|
/* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, {}),
|
|
2900
3121
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2901
3122
|
SheetPrimitive__namespace.Content,
|
|
@@ -2912,7 +3133,7 @@ var SheetContent = React26__namespace.forwardRef(({ side = "right", className, c
|
|
|
2912
3133
|
]
|
|
2913
3134
|
}
|
|
2914
3135
|
)
|
|
2915
|
-
] })
|
|
3136
|
+
] });
|
|
2916
3137
|
SheetContent.displayName = SheetPrimitive__namespace.Content.displayName;
|
|
2917
3138
|
var SheetHeader = ({
|
|
2918
3139
|
className,
|
|
@@ -2942,29 +3163,41 @@ var SheetFooter = ({
|
|
|
2942
3163
|
}
|
|
2943
3164
|
);
|
|
2944
3165
|
SheetFooter.displayName = "SheetFooter";
|
|
2945
|
-
var SheetTitle =
|
|
3166
|
+
var SheetTitle = ({
|
|
3167
|
+
ref,
|
|
3168
|
+
className,
|
|
3169
|
+
...props
|
|
3170
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2946
3171
|
SheetPrimitive__namespace.Title,
|
|
2947
3172
|
{
|
|
2948
3173
|
ref,
|
|
2949
3174
|
className: cn("text-lg font-semibold text-foreground", className),
|
|
2950
3175
|
...props
|
|
2951
3176
|
}
|
|
2952
|
-
)
|
|
3177
|
+
);
|
|
2953
3178
|
SheetTitle.displayName = SheetPrimitive__namespace.Title.displayName;
|
|
2954
|
-
var SheetDescription =
|
|
3179
|
+
var SheetDescription = ({
|
|
3180
|
+
ref,
|
|
3181
|
+
className,
|
|
3182
|
+
...props
|
|
3183
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2955
3184
|
SheetPrimitive__namespace.Description,
|
|
2956
3185
|
{
|
|
2957
3186
|
ref,
|
|
2958
3187
|
className: cn("text-sm text-muted-foreground", className),
|
|
2959
3188
|
...props
|
|
2960
3189
|
}
|
|
2961
|
-
)
|
|
3190
|
+
);
|
|
2962
3191
|
SheetDescription.displayName = SheetPrimitive__namespace.Description.displayName;
|
|
2963
3192
|
var Dialog = SheetPrimitive__namespace.Root;
|
|
2964
3193
|
var DialogTrigger = SheetPrimitive__namespace.Trigger;
|
|
2965
3194
|
var DialogPortal = SheetPrimitive__namespace.Portal;
|
|
2966
3195
|
var DialogClose = SheetPrimitive__namespace.Close;
|
|
2967
|
-
var DialogOverlay =
|
|
3196
|
+
var DialogOverlay = ({
|
|
3197
|
+
ref,
|
|
3198
|
+
className,
|
|
3199
|
+
...props
|
|
3200
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2968
3201
|
SheetPrimitive__namespace.Overlay,
|
|
2969
3202
|
{
|
|
2970
3203
|
ref,
|
|
@@ -2974,9 +3207,14 @@ var DialogOverlay = React26__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
2974
3207
|
),
|
|
2975
3208
|
...props
|
|
2976
3209
|
}
|
|
2977
|
-
)
|
|
3210
|
+
);
|
|
2978
3211
|
DialogOverlay.displayName = SheetPrimitive__namespace.Overlay.displayName;
|
|
2979
|
-
var DialogContent =
|
|
3212
|
+
var DialogContent = ({
|
|
3213
|
+
ref,
|
|
3214
|
+
className,
|
|
3215
|
+
children,
|
|
3216
|
+
...props
|
|
3217
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { children: [
|
|
2980
3218
|
/* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
|
|
2981
3219
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2982
3220
|
SheetPrimitive__namespace.Content,
|
|
@@ -2996,7 +3234,7 @@ var DialogContent = React26__namespace.forwardRef(({ className, children, ...pro
|
|
|
2996
3234
|
]
|
|
2997
3235
|
}
|
|
2998
3236
|
)
|
|
2999
|
-
] })
|
|
3237
|
+
] });
|
|
3000
3238
|
DialogContent.displayName = SheetPrimitive__namespace.Content.displayName;
|
|
3001
3239
|
var DialogHeader = ({
|
|
3002
3240
|
className,
|
|
@@ -3026,7 +3264,11 @@ var DialogFooter = ({
|
|
|
3026
3264
|
}
|
|
3027
3265
|
);
|
|
3028
3266
|
DialogFooter.displayName = "DialogFooter";
|
|
3029
|
-
var DialogTitle =
|
|
3267
|
+
var DialogTitle = ({
|
|
3268
|
+
ref,
|
|
3269
|
+
className,
|
|
3270
|
+
...props
|
|
3271
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3030
3272
|
SheetPrimitive__namespace.Title,
|
|
3031
3273
|
{
|
|
3032
3274
|
ref,
|
|
@@ -3036,35 +3278,46 @@ var DialogTitle = React26__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
3036
3278
|
),
|
|
3037
3279
|
...props
|
|
3038
3280
|
}
|
|
3039
|
-
)
|
|
3281
|
+
);
|
|
3040
3282
|
DialogTitle.displayName = SheetPrimitive__namespace.Title.displayName;
|
|
3041
|
-
var DialogDescription =
|
|
3283
|
+
var DialogDescription = ({
|
|
3284
|
+
ref,
|
|
3285
|
+
className,
|
|
3286
|
+
...props
|
|
3287
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3042
3288
|
SheetPrimitive__namespace.Description,
|
|
3043
3289
|
{
|
|
3044
3290
|
ref,
|
|
3045
3291
|
className: cn("text-sm text-muted-foreground", className),
|
|
3046
3292
|
...props
|
|
3047
3293
|
}
|
|
3048
|
-
)
|
|
3294
|
+
);
|
|
3049
3295
|
DialogDescription.displayName = SheetPrimitive__namespace.Description.displayName;
|
|
3050
3296
|
var AlertDialog = ({
|
|
3051
3297
|
...props
|
|
3052
3298
|
}) => /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Root, { "data-slot": "alert-dialog", ...props });
|
|
3053
3299
|
AlertDialog.displayName = "AlertDialog";
|
|
3054
|
-
var AlertDialogTrigger =
|
|
3300
|
+
var AlertDialogTrigger = ({
|
|
3301
|
+
ref,
|
|
3302
|
+
...props
|
|
3303
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3055
3304
|
AlertDialogPrimitive__namespace.Trigger,
|
|
3056
3305
|
{
|
|
3057
3306
|
ref,
|
|
3058
3307
|
"data-slot": "alert-dialog-trigger",
|
|
3059
3308
|
...props
|
|
3060
3309
|
}
|
|
3061
|
-
)
|
|
3310
|
+
);
|
|
3062
3311
|
AlertDialogTrigger.displayName = AlertDialogPrimitive__namespace.Trigger.displayName;
|
|
3063
3312
|
var AlertDialogPortal = ({
|
|
3064
3313
|
...props
|
|
3065
3314
|
}) => /* @__PURE__ */ jsxRuntime.jsx(AlertDialogPrimitive__namespace.Portal, { "data-slot": "alert-dialog-portal", ...props });
|
|
3066
3315
|
AlertDialogPortal.displayName = "AlertDialogPortal";
|
|
3067
|
-
var AlertDialogOverlay =
|
|
3316
|
+
var AlertDialogOverlay = ({
|
|
3317
|
+
ref,
|
|
3318
|
+
className,
|
|
3319
|
+
...props
|
|
3320
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3068
3321
|
AlertDialogPrimitive__namespace.Overlay,
|
|
3069
3322
|
{
|
|
3070
3323
|
ref,
|
|
@@ -3075,9 +3328,13 @@ var AlertDialogOverlay = React26__namespace.forwardRef(({ className, ...props },
|
|
|
3075
3328
|
),
|
|
3076
3329
|
...props
|
|
3077
3330
|
}
|
|
3078
|
-
)
|
|
3331
|
+
);
|
|
3079
3332
|
AlertDialogOverlay.displayName = AlertDialogPrimitive__namespace.Overlay.displayName;
|
|
3080
|
-
var AlertDialogContent =
|
|
3333
|
+
var AlertDialogContent = ({
|
|
3334
|
+
ref,
|
|
3335
|
+
className,
|
|
3336
|
+
...props
|
|
3337
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(AlertDialogPortal, { children: [
|
|
3081
3338
|
/* @__PURE__ */ jsxRuntime.jsx(AlertDialogOverlay, {}),
|
|
3082
3339
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3083
3340
|
AlertDialogPrimitive__namespace.Content,
|
|
@@ -3091,7 +3348,7 @@ var AlertDialogContent = React26__namespace.forwardRef(({ className, ...props },
|
|
|
3091
3348
|
...props
|
|
3092
3349
|
}
|
|
3093
3350
|
)
|
|
3094
|
-
] })
|
|
3351
|
+
] });
|
|
3095
3352
|
AlertDialogContent.displayName = AlertDialogPrimitive__namespace.Content.displayName;
|
|
3096
3353
|
var AlertDialogHeader = ({
|
|
3097
3354
|
className,
|
|
@@ -3120,7 +3377,11 @@ var AlertDialogFooter = ({
|
|
|
3120
3377
|
}
|
|
3121
3378
|
);
|
|
3122
3379
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
3123
|
-
var AlertDialogTitle =
|
|
3380
|
+
var AlertDialogTitle = ({
|
|
3381
|
+
ref,
|
|
3382
|
+
className,
|
|
3383
|
+
...props
|
|
3384
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3124
3385
|
AlertDialogPrimitive__namespace.Title,
|
|
3125
3386
|
{
|
|
3126
3387
|
ref,
|
|
@@ -3128,9 +3389,13 @@ var AlertDialogTitle = React26__namespace.forwardRef(({ className, ...props }, r
|
|
|
3128
3389
|
className: cn("text-lg font-semibold", className),
|
|
3129
3390
|
...props
|
|
3130
3391
|
}
|
|
3131
|
-
)
|
|
3392
|
+
);
|
|
3132
3393
|
AlertDialogTitle.displayName = AlertDialogPrimitive__namespace.Title.displayName;
|
|
3133
|
-
var AlertDialogDescription =
|
|
3394
|
+
var AlertDialogDescription = ({
|
|
3395
|
+
ref,
|
|
3396
|
+
className,
|
|
3397
|
+
...props
|
|
3398
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3134
3399
|
AlertDialogPrimitive__namespace.Description,
|
|
3135
3400
|
{
|
|
3136
3401
|
ref,
|
|
@@ -3138,39 +3403,57 @@ var AlertDialogDescription = React26__namespace.forwardRef(({ className, ...prop
|
|
|
3138
3403
|
className: cn("text-muted-foreground text-sm", className),
|
|
3139
3404
|
...props
|
|
3140
3405
|
}
|
|
3141
|
-
)
|
|
3406
|
+
);
|
|
3142
3407
|
AlertDialogDescription.displayName = AlertDialogPrimitive__namespace.Description.displayName;
|
|
3143
|
-
var AlertDialogAction =
|
|
3408
|
+
var AlertDialogAction = ({
|
|
3409
|
+
ref,
|
|
3410
|
+
className,
|
|
3411
|
+
...props
|
|
3412
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3144
3413
|
AlertDialogPrimitive__namespace.Action,
|
|
3145
3414
|
{
|
|
3146
3415
|
ref,
|
|
3147
3416
|
className: cn(buttonVariants(), className),
|
|
3148
3417
|
...props
|
|
3149
3418
|
}
|
|
3150
|
-
)
|
|
3419
|
+
);
|
|
3151
3420
|
AlertDialogAction.displayName = AlertDialogPrimitive__namespace.Action.displayName;
|
|
3152
|
-
var AlertDialogCancel =
|
|
3421
|
+
var AlertDialogCancel = ({
|
|
3422
|
+
ref,
|
|
3423
|
+
className,
|
|
3424
|
+
...props
|
|
3425
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3153
3426
|
AlertDialogPrimitive__namespace.Cancel,
|
|
3154
3427
|
{
|
|
3155
3428
|
ref,
|
|
3156
3429
|
className: cn(buttonVariants({ variant: "outline" /* Outline */ }), className),
|
|
3157
3430
|
...props
|
|
3158
3431
|
}
|
|
3159
|
-
)
|
|
3432
|
+
);
|
|
3160
3433
|
AlertDialogCancel.displayName = AlertDialogPrimitive__namespace.Cancel.displayName;
|
|
3161
3434
|
var Drawer = ({
|
|
3162
3435
|
...props
|
|
3163
3436
|
}) => /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Root, { "data-slot": "drawer", ...props });
|
|
3164
3437
|
Drawer.displayName = "Drawer";
|
|
3165
|
-
var DrawerTrigger =
|
|
3438
|
+
var DrawerTrigger = ({
|
|
3439
|
+
ref,
|
|
3440
|
+
...props
|
|
3441
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Trigger, { ref, "data-slot": "drawer-trigger", ...props });
|
|
3166
3442
|
DrawerTrigger.displayName = vaul.Drawer.Trigger.displayName;
|
|
3167
3443
|
var DrawerPortal = ({
|
|
3168
3444
|
...props
|
|
3169
3445
|
}) => /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Portal, { "data-slot": "drawer-portal", ...props });
|
|
3170
3446
|
DrawerPortal.displayName = "DrawerPortal";
|
|
3171
|
-
var DrawerClose =
|
|
3447
|
+
var DrawerClose = ({
|
|
3448
|
+
ref,
|
|
3449
|
+
...props
|
|
3450
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Close, { ref, "data-slot": "drawer-close", ...props });
|
|
3172
3451
|
DrawerClose.displayName = vaul.Drawer.Close.displayName;
|
|
3173
|
-
var DrawerOverlay =
|
|
3452
|
+
var DrawerOverlay = ({
|
|
3453
|
+
ref,
|
|
3454
|
+
className,
|
|
3455
|
+
...props
|
|
3456
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3174
3457
|
vaul.Drawer.Overlay,
|
|
3175
3458
|
{
|
|
3176
3459
|
ref,
|
|
@@ -3181,9 +3464,14 @@ var DrawerOverlay = React26__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
3181
3464
|
),
|
|
3182
3465
|
...props
|
|
3183
3466
|
}
|
|
3184
|
-
)
|
|
3467
|
+
);
|
|
3185
3468
|
DrawerOverlay.displayName = vaul.Drawer.Overlay.displayName;
|
|
3186
|
-
var DrawerContent =
|
|
3469
|
+
var DrawerContent = ({
|
|
3470
|
+
ref,
|
|
3471
|
+
className,
|
|
3472
|
+
children,
|
|
3473
|
+
...props
|
|
3474
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(DrawerPortal, { "data-slot": "drawer-portal", children: [
|
|
3187
3475
|
/* @__PURE__ */ jsxRuntime.jsx(DrawerOverlay, {}),
|
|
3188
3476
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3189
3477
|
vaul.Drawer.Content,
|
|
@@ -3205,7 +3493,7 @@ var DrawerContent = React26__namespace.forwardRef(({ className, children, ...pro
|
|
|
3205
3493
|
]
|
|
3206
3494
|
}
|
|
3207
3495
|
)
|
|
3208
|
-
] })
|
|
3496
|
+
] });
|
|
3209
3497
|
DrawerContent.displayName = vaul.Drawer.Content.displayName;
|
|
3210
3498
|
var DrawerHeader = ({
|
|
3211
3499
|
className,
|
|
@@ -3231,7 +3519,11 @@ var DrawerFooter = ({
|
|
|
3231
3519
|
}
|
|
3232
3520
|
);
|
|
3233
3521
|
DrawerFooter.displayName = "DrawerFooter";
|
|
3234
|
-
var DrawerTitle =
|
|
3522
|
+
var DrawerTitle = ({
|
|
3523
|
+
ref,
|
|
3524
|
+
className,
|
|
3525
|
+
...props
|
|
3526
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3235
3527
|
vaul.Drawer.Title,
|
|
3236
3528
|
{
|
|
3237
3529
|
ref,
|
|
@@ -3239,9 +3531,13 @@ var DrawerTitle = React26__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
3239
3531
|
className: cn("text-lg font-semibold text-foreground", className),
|
|
3240
3532
|
...props
|
|
3241
3533
|
}
|
|
3242
|
-
)
|
|
3534
|
+
);
|
|
3243
3535
|
DrawerTitle.displayName = vaul.Drawer.Title.displayName;
|
|
3244
|
-
var DrawerDescription =
|
|
3536
|
+
var DrawerDescription = ({
|
|
3537
|
+
ref,
|
|
3538
|
+
className,
|
|
3539
|
+
...props
|
|
3540
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3245
3541
|
vaul.Drawer.Description,
|
|
3246
3542
|
{
|
|
3247
3543
|
ref,
|
|
@@ -3249,7 +3545,7 @@ var DrawerDescription = React26__namespace.forwardRef(({ className, ...props },
|
|
|
3249
3545
|
className: cn("text-sm text-muted-foreground", className),
|
|
3250
3546
|
...props
|
|
3251
3547
|
}
|
|
3252
|
-
)
|
|
3548
|
+
);
|
|
3253
3549
|
DrawerDescription.displayName = vaul.Drawer.Description.displayName;
|
|
3254
3550
|
function ResizablePanelGroup({
|
|
3255
3551
|
className,
|
|
@@ -3513,16 +3809,23 @@ function ItemFooter({ className, ...props }) {
|
|
|
3513
3809
|
}
|
|
3514
3810
|
);
|
|
3515
3811
|
}
|
|
3516
|
-
var Accordion =
|
|
3812
|
+
var Accordion = ({
|
|
3813
|
+
ref,
|
|
3814
|
+
...props
|
|
3815
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3517
3816
|
AccordionPrimitive__namespace.Root,
|
|
3518
3817
|
{
|
|
3519
3818
|
ref,
|
|
3520
3819
|
"data-slot": "accordion",
|
|
3521
3820
|
...props
|
|
3522
3821
|
}
|
|
3523
|
-
)
|
|
3822
|
+
);
|
|
3524
3823
|
Accordion.displayName = "Accordion";
|
|
3525
|
-
var AccordionItem =
|
|
3824
|
+
var AccordionItem = ({
|
|
3825
|
+
ref,
|
|
3826
|
+
className,
|
|
3827
|
+
...props
|
|
3828
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3526
3829
|
AccordionPrimitive__namespace.Item,
|
|
3527
3830
|
{
|
|
3528
3831
|
ref,
|
|
@@ -3530,9 +3833,14 @@ var AccordionItem = React26__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
3530
3833
|
className: cn("border-b last:border-b-0", className),
|
|
3531
3834
|
...props
|
|
3532
3835
|
}
|
|
3533
|
-
)
|
|
3836
|
+
);
|
|
3534
3837
|
AccordionItem.displayName = "AccordionItem";
|
|
3535
|
-
var AccordionTrigger =
|
|
3838
|
+
var AccordionTrigger = ({
|
|
3839
|
+
ref,
|
|
3840
|
+
className,
|
|
3841
|
+
children,
|
|
3842
|
+
...props
|
|
3843
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3536
3844
|
AccordionPrimitive__namespace.Trigger,
|
|
3537
3845
|
{
|
|
3538
3846
|
ref,
|
|
@@ -3547,9 +3855,14 @@ var AccordionTrigger = React26__namespace.forwardRef(({ className, children, ...
|
|
|
3547
3855
|
/* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
|
|
3548
3856
|
]
|
|
3549
3857
|
}
|
|
3550
|
-
) })
|
|
3858
|
+
) });
|
|
3551
3859
|
AccordionTrigger.displayName = "AccordionTrigger";
|
|
3552
|
-
var AccordionContent =
|
|
3860
|
+
var AccordionContent = ({
|
|
3861
|
+
ref,
|
|
3862
|
+
className,
|
|
3863
|
+
children,
|
|
3864
|
+
...props
|
|
3865
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3553
3866
|
AccordionPrimitive__namespace.Content,
|
|
3554
3867
|
{
|
|
3555
3868
|
ref,
|
|
@@ -3558,103 +3871,106 @@ var AccordionContent = React26__namespace.forwardRef(({ className, children, ...
|
|
|
3558
3871
|
...props,
|
|
3559
3872
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("pt-0 pb-4", className), children })
|
|
3560
3873
|
}
|
|
3561
|
-
)
|
|
3874
|
+
);
|
|
3562
3875
|
AccordionContent.displayName = "AccordionContent";
|
|
3563
|
-
var CarouselContext =
|
|
3876
|
+
var CarouselContext = React6__namespace.createContext(null);
|
|
3564
3877
|
function useCarousel() {
|
|
3565
|
-
const context =
|
|
3878
|
+
const context = React6__namespace.useContext(CarouselContext);
|
|
3566
3879
|
if (!context) {
|
|
3567
3880
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
3568
3881
|
}
|
|
3569
3882
|
return context;
|
|
3570
3883
|
}
|
|
3571
|
-
var Carousel =
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3884
|
+
var Carousel = ({
|
|
3885
|
+
ref,
|
|
3886
|
+
orientation = "horizontal",
|
|
3887
|
+
opts,
|
|
3888
|
+
setApi,
|
|
3889
|
+
plugins,
|
|
3890
|
+
className,
|
|
3891
|
+
children,
|
|
3892
|
+
...props
|
|
3893
|
+
}) => {
|
|
3894
|
+
const [carouselRef, api] = useEmblaCarousel__default.default(
|
|
3895
|
+
{
|
|
3896
|
+
...opts,
|
|
3897
|
+
axis: orientation === "horizontal" ? "x" : "y"
|
|
3898
|
+
},
|
|
3899
|
+
plugins
|
|
3900
|
+
);
|
|
3901
|
+
const [canScrollPrev, setCanScrollPrev] = React6__namespace.useState(false);
|
|
3902
|
+
const [canScrollNext, setCanScrollNext] = React6__namespace.useState(false);
|
|
3903
|
+
const onSelect = React6__namespace.useCallback((api2) => {
|
|
3904
|
+
if (!api2) return;
|
|
3905
|
+
setCanScrollPrev(api2.canScrollPrev());
|
|
3906
|
+
setCanScrollNext(api2.canScrollNext());
|
|
3907
|
+
}, []);
|
|
3908
|
+
const scrollPrev = React6__namespace.useCallback(() => {
|
|
3909
|
+
api?.scrollPrev();
|
|
3910
|
+
}, [api]);
|
|
3911
|
+
const scrollNext = React6__namespace.useCallback(() => {
|
|
3912
|
+
api?.scrollNext();
|
|
3913
|
+
}, [api]);
|
|
3914
|
+
const handleKeyDown = React6__namespace.useCallback(
|
|
3915
|
+
(event) => {
|
|
3916
|
+
if (event.key === "ArrowLeft") {
|
|
3917
|
+
event.preventDefault();
|
|
3918
|
+
scrollPrev();
|
|
3919
|
+
} else if (event.key === "ArrowRight") {
|
|
3920
|
+
event.preventDefault();
|
|
3921
|
+
scrollNext();
|
|
3922
|
+
}
|
|
3923
|
+
},
|
|
3924
|
+
[scrollPrev, scrollNext]
|
|
3925
|
+
);
|
|
3926
|
+
React6__namespace.useEffect(() => {
|
|
3927
|
+
if (!api || !setApi) return;
|
|
3928
|
+
setApi(api);
|
|
3929
|
+
}, [api, setApi]);
|
|
3930
|
+
React6__namespace.useEffect(() => {
|
|
3931
|
+
if (!api) return;
|
|
3932
|
+
onSelect(api);
|
|
3933
|
+
api.on("reInit", onSelect);
|
|
3934
|
+
api.on("select", onSelect);
|
|
3935
|
+
return () => {
|
|
3936
|
+
api?.off("select", onSelect);
|
|
3937
|
+
};
|
|
3938
|
+
}, [api, onSelect]);
|
|
3939
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3940
|
+
CarouselContext.Provider,
|
|
3941
|
+
{
|
|
3942
|
+
value: {
|
|
3943
|
+
carouselRef,
|
|
3944
|
+
api,
|
|
3945
|
+
opts,
|
|
3946
|
+
orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
|
|
3947
|
+
scrollPrev,
|
|
3948
|
+
scrollNext,
|
|
3949
|
+
canScrollPrev,
|
|
3950
|
+
canScrollNext
|
|
3585
3951
|
},
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
}, [api]);
|
|
3598
|
-
const scrollNext = React26__namespace.useCallback(() => {
|
|
3599
|
-
api?.scrollNext();
|
|
3600
|
-
}, [api]);
|
|
3601
|
-
const handleKeyDown = React26__namespace.useCallback(
|
|
3602
|
-
(event) => {
|
|
3603
|
-
if (event.key === "ArrowLeft") {
|
|
3604
|
-
event.preventDefault();
|
|
3605
|
-
scrollPrev();
|
|
3606
|
-
} else if (event.key === "ArrowRight") {
|
|
3607
|
-
event.preventDefault();
|
|
3608
|
-
scrollNext();
|
|
3952
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3953
|
+
"div",
|
|
3954
|
+
{
|
|
3955
|
+
ref,
|
|
3956
|
+
onKeyDownCapture: handleKeyDown,
|
|
3957
|
+
className: cn("relative", className),
|
|
3958
|
+
role: "region",
|
|
3959
|
+
"aria-roledescription": "carousel",
|
|
3960
|
+
"data-slot": "carousel",
|
|
3961
|
+
...props,
|
|
3962
|
+
children
|
|
3609
3963
|
}
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
if (!api || !setApi) return;
|
|
3615
|
-
setApi(api);
|
|
3616
|
-
}, [api, setApi]);
|
|
3617
|
-
React26__namespace.useEffect(() => {
|
|
3618
|
-
if (!api) return;
|
|
3619
|
-
onSelect(api);
|
|
3620
|
-
api.on("reInit", onSelect);
|
|
3621
|
-
api.on("select", onSelect);
|
|
3622
|
-
return () => {
|
|
3623
|
-
api?.off("select", onSelect);
|
|
3624
|
-
};
|
|
3625
|
-
}, [api, onSelect]);
|
|
3626
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3627
|
-
CarouselContext.Provider,
|
|
3628
|
-
{
|
|
3629
|
-
value: {
|
|
3630
|
-
carouselRef,
|
|
3631
|
-
api,
|
|
3632
|
-
opts,
|
|
3633
|
-
orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
|
|
3634
|
-
scrollPrev,
|
|
3635
|
-
scrollNext,
|
|
3636
|
-
canScrollPrev,
|
|
3637
|
-
canScrollNext
|
|
3638
|
-
},
|
|
3639
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3640
|
-
"div",
|
|
3641
|
-
{
|
|
3642
|
-
ref,
|
|
3643
|
-
onKeyDownCapture: handleKeyDown,
|
|
3644
|
-
className: cn("relative", className),
|
|
3645
|
-
role: "region",
|
|
3646
|
-
"aria-roledescription": "carousel",
|
|
3647
|
-
"data-slot": "carousel",
|
|
3648
|
-
...props,
|
|
3649
|
-
children
|
|
3650
|
-
}
|
|
3651
|
-
)
|
|
3652
|
-
}
|
|
3653
|
-
);
|
|
3654
|
-
}
|
|
3655
|
-
);
|
|
3964
|
+
)
|
|
3965
|
+
}
|
|
3966
|
+
);
|
|
3967
|
+
};
|
|
3656
3968
|
Carousel.displayName = "Carousel";
|
|
3657
|
-
var CarouselContent =
|
|
3969
|
+
var CarouselContent = ({
|
|
3970
|
+
ref,
|
|
3971
|
+
className,
|
|
3972
|
+
...props
|
|
3973
|
+
}) => {
|
|
3658
3974
|
const { carouselRef, orientation } = useCarousel();
|
|
3659
3975
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3660
3976
|
"div",
|
|
@@ -3676,9 +3992,13 @@ var CarouselContent = React26__namespace.forwardRef(({ className, ...props }, re
|
|
|
3676
3992
|
)
|
|
3677
3993
|
}
|
|
3678
3994
|
);
|
|
3679
|
-
}
|
|
3995
|
+
};
|
|
3680
3996
|
CarouselContent.displayName = "CarouselContent";
|
|
3681
|
-
var CarouselItem =
|
|
3997
|
+
var CarouselItem = ({
|
|
3998
|
+
ref,
|
|
3999
|
+
className,
|
|
4000
|
+
...props
|
|
4001
|
+
}) => {
|
|
3682
4002
|
const { orientation } = useCarousel();
|
|
3683
4003
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3684
4004
|
"div",
|
|
@@ -3695,9 +4015,15 @@ var CarouselItem = React26__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
3695
4015
|
...props
|
|
3696
4016
|
}
|
|
3697
4017
|
);
|
|
3698
|
-
}
|
|
4018
|
+
};
|
|
3699
4019
|
CarouselItem.displayName = "CarouselItem";
|
|
3700
|
-
var CarouselPrevious =
|
|
4020
|
+
var CarouselPrevious = ({
|
|
4021
|
+
ref,
|
|
4022
|
+
className,
|
|
4023
|
+
variant = "outline" /* Outline */,
|
|
4024
|
+
size = "icon" /* Icon */,
|
|
4025
|
+
...props
|
|
4026
|
+
}) => {
|
|
3701
4027
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
3702
4028
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3703
4029
|
Button,
|
|
@@ -3720,9 +4046,15 @@ var CarouselPrevious = React26__namespace.forwardRef(({ className, variant = "ou
|
|
|
3720
4046
|
]
|
|
3721
4047
|
}
|
|
3722
4048
|
);
|
|
3723
|
-
}
|
|
4049
|
+
};
|
|
3724
4050
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
3725
|
-
var CarouselNext =
|
|
4051
|
+
var CarouselNext = ({
|
|
4052
|
+
ref,
|
|
4053
|
+
className,
|
|
4054
|
+
variant = "outline" /* Outline */,
|
|
4055
|
+
size = "icon" /* Icon */,
|
|
4056
|
+
...props
|
|
4057
|
+
}) => {
|
|
3726
4058
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
3727
4059
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3728
4060
|
Button,
|
|
@@ -3745,34 +4077,43 @@ var CarouselNext = React26__namespace.forwardRef(({ className, variant = "outlin
|
|
|
3745
4077
|
]
|
|
3746
4078
|
}
|
|
3747
4079
|
);
|
|
3748
|
-
}
|
|
4080
|
+
};
|
|
3749
4081
|
CarouselNext.displayName = "CarouselNext";
|
|
3750
|
-
var Collapsible =
|
|
4082
|
+
var Collapsible = ({
|
|
4083
|
+
ref,
|
|
4084
|
+
...props
|
|
4085
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3751
4086
|
CollapsiblePrimitive__namespace.Root,
|
|
3752
4087
|
{
|
|
3753
4088
|
ref,
|
|
3754
4089
|
"data-slot": "collapsible",
|
|
3755
4090
|
...props
|
|
3756
4091
|
}
|
|
3757
|
-
)
|
|
4092
|
+
);
|
|
3758
4093
|
Collapsible.displayName = "Collapsible";
|
|
3759
|
-
var CollapsibleTrigger2 =
|
|
4094
|
+
var CollapsibleTrigger2 = ({
|
|
4095
|
+
ref,
|
|
4096
|
+
...props
|
|
4097
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3760
4098
|
CollapsiblePrimitive__namespace.CollapsibleTrigger,
|
|
3761
4099
|
{
|
|
3762
4100
|
ref,
|
|
3763
4101
|
"data-slot": "collapsible-trigger",
|
|
3764
4102
|
...props
|
|
3765
4103
|
}
|
|
3766
|
-
)
|
|
4104
|
+
);
|
|
3767
4105
|
CollapsibleTrigger2.displayName = "CollapsibleTrigger";
|
|
3768
|
-
var CollapsibleContent2 =
|
|
4106
|
+
var CollapsibleContent2 = ({
|
|
4107
|
+
ref,
|
|
4108
|
+
...props
|
|
4109
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3769
4110
|
CollapsiblePrimitive__namespace.CollapsibleContent,
|
|
3770
4111
|
{
|
|
3771
4112
|
ref,
|
|
3772
4113
|
"data-slot": "collapsible-content",
|
|
3773
4114
|
...props
|
|
3774
4115
|
}
|
|
3775
|
-
)
|
|
4116
|
+
);
|
|
3776
4117
|
CollapsibleContent2.displayName = "CollapsibleContent";
|
|
3777
4118
|
function ChartContainer({
|
|
3778
4119
|
className,
|
|
@@ -4235,7 +4576,7 @@ function Toggle({
|
|
|
4235
4576
|
}
|
|
4236
4577
|
);
|
|
4237
4578
|
}
|
|
4238
|
-
var ToggleGroupContext =
|
|
4579
|
+
var ToggleGroupContext = React6__namespace.createContext({
|
|
4239
4580
|
size: "default",
|
|
4240
4581
|
variant: "default",
|
|
4241
4582
|
spacing: 0
|
|
@@ -4273,7 +4614,7 @@ function ToggleGroupItem({
|
|
|
4273
4614
|
size,
|
|
4274
4615
|
...props
|
|
4275
4616
|
}) {
|
|
4276
|
-
const context =
|
|
4617
|
+
const context = React6__namespace.useContext(ToggleGroupContext);
|
|
4277
4618
|
const resolvedSpacing = context.spacing ?? 0;
|
|
4278
4619
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4279
4620
|
ToggleGroupPrimitive__namespace.Item,
|
|
@@ -4480,27 +4821,37 @@ function TypographyMuted({
|
|
|
4480
4821
|
}
|
|
4481
4822
|
);
|
|
4482
4823
|
}
|
|
4483
|
-
var IconButton =
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
)
|
|
4824
|
+
var IconButton = ({
|
|
4825
|
+
ref,
|
|
4826
|
+
variant = "ghost" /* Ghost */,
|
|
4827
|
+
size = "default" /* Default */,
|
|
4828
|
+
className,
|
|
4829
|
+
...props
|
|
4830
|
+
}) => {
|
|
4831
|
+
const sizeStyles = {
|
|
4832
|
+
["sm" /* Small */]: "h-8 w-8",
|
|
4833
|
+
["default" /* Default */]: "h-9 w-9",
|
|
4834
|
+
["lg" /* Large */]: "h-10 w-10"
|
|
4835
|
+
};
|
|
4836
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4837
|
+
Button,
|
|
4838
|
+
{
|
|
4839
|
+
ref,
|
|
4840
|
+
variant,
|
|
4841
|
+
size: "icon" /* Icon */,
|
|
4842
|
+
className: cn(sizeStyles[size], className),
|
|
4843
|
+
...props
|
|
4844
|
+
}
|
|
4845
|
+
);
|
|
4846
|
+
};
|
|
4502
4847
|
IconButton.displayName = "IconButton";
|
|
4503
|
-
var DropdownButton =
|
|
4848
|
+
var DropdownButton = ({
|
|
4849
|
+
ref,
|
|
4850
|
+
children,
|
|
4851
|
+
variant = "outline" /* Outline */,
|
|
4852
|
+
className,
|
|
4853
|
+
...props
|
|
4854
|
+
}) => {
|
|
4504
4855
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4505
4856
|
Button,
|
|
4506
4857
|
{
|
|
@@ -4514,9 +4865,13 @@ var DropdownButton = React26__namespace.default.forwardRef(({ children, variant
|
|
|
4514
4865
|
]
|
|
4515
4866
|
}
|
|
4516
4867
|
);
|
|
4517
|
-
}
|
|
4868
|
+
};
|
|
4518
4869
|
DropdownButton.displayName = "DropdownButton";
|
|
4519
|
-
var InputGroup =
|
|
4870
|
+
var InputGroup = ({
|
|
4871
|
+
ref,
|
|
4872
|
+
className,
|
|
4873
|
+
...props
|
|
4874
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4520
4875
|
"div",
|
|
4521
4876
|
{
|
|
4522
4877
|
ref,
|
|
@@ -4538,7 +4893,7 @@ var InputGroup = React26__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
4538
4893
|
),
|
|
4539
4894
|
...props
|
|
4540
4895
|
}
|
|
4541
|
-
)
|
|
4896
|
+
);
|
|
4542
4897
|
InputGroup.displayName = "InputGroup";
|
|
4543
4898
|
var inputGroupAddonVariants = classVarianceAuthority.cva(
|
|
4544
4899
|
"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",
|
|
@@ -4556,7 +4911,12 @@ var inputGroupAddonVariants = classVarianceAuthority.cva(
|
|
|
4556
4911
|
}
|
|
4557
4912
|
}
|
|
4558
4913
|
);
|
|
4559
|
-
var InputGroupAddon =
|
|
4914
|
+
var InputGroupAddon = ({
|
|
4915
|
+
ref,
|
|
4916
|
+
className,
|
|
4917
|
+
align = "inline-start",
|
|
4918
|
+
...props
|
|
4919
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4560
4920
|
"div",
|
|
4561
4921
|
{
|
|
4562
4922
|
ref,
|
|
@@ -4572,7 +4932,7 @@ var InputGroupAddon = React26__namespace.forwardRef(({ className, align = "inlin
|
|
|
4572
4932
|
},
|
|
4573
4933
|
...props
|
|
4574
4934
|
}
|
|
4575
|
-
)
|
|
4935
|
+
);
|
|
4576
4936
|
InputGroupAddon.displayName = "InputGroupAddon";
|
|
4577
4937
|
var inputGroupButtonVariants = classVarianceAuthority.cva(
|
|
4578
4938
|
"text-sm shadow-none flex gap-2 items-center",
|
|
@@ -4590,7 +4950,14 @@ var inputGroupButtonVariants = classVarianceAuthority.cva(
|
|
|
4590
4950
|
}
|
|
4591
4951
|
}
|
|
4592
4952
|
);
|
|
4593
|
-
var InputGroupButton =
|
|
4953
|
+
var InputGroupButton = ({
|
|
4954
|
+
ref,
|
|
4955
|
+
className,
|
|
4956
|
+
type = "button",
|
|
4957
|
+
variant = "ghost" /* Ghost */,
|
|
4958
|
+
size = "xs",
|
|
4959
|
+
...props
|
|
4960
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4594
4961
|
Button,
|
|
4595
4962
|
{
|
|
4596
4963
|
ref,
|
|
@@ -4600,9 +4967,13 @@ var InputGroupButton = React26__namespace.forwardRef(({ className, type = "butto
|
|
|
4600
4967
|
className: cn(inputGroupButtonVariants({ size }), className),
|
|
4601
4968
|
...props
|
|
4602
4969
|
}
|
|
4603
|
-
)
|
|
4970
|
+
);
|
|
4604
4971
|
InputGroupButton.displayName = "InputGroupButton";
|
|
4605
|
-
var InputGroupText =
|
|
4972
|
+
var InputGroupText = ({
|
|
4973
|
+
ref,
|
|
4974
|
+
className,
|
|
4975
|
+
...props
|
|
4976
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4606
4977
|
"span",
|
|
4607
4978
|
{
|
|
4608
4979
|
ref,
|
|
@@ -4612,9 +4983,13 @@ var InputGroupText = React26__namespace.forwardRef(({ className, ...props }, ref
|
|
|
4612
4983
|
),
|
|
4613
4984
|
...props
|
|
4614
4985
|
}
|
|
4615
|
-
)
|
|
4986
|
+
);
|
|
4616
4987
|
InputGroupText.displayName = "InputGroupText";
|
|
4617
|
-
var InputGroupInput =
|
|
4988
|
+
var InputGroupInput = ({
|
|
4989
|
+
ref,
|
|
4990
|
+
className,
|
|
4991
|
+
...props
|
|
4992
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4618
4993
|
Input,
|
|
4619
4994
|
{
|
|
4620
4995
|
ref,
|
|
@@ -4625,9 +5000,13 @@ var InputGroupInput = React26__namespace.forwardRef(({ className, ...props }, re
|
|
|
4625
5000
|
),
|
|
4626
5001
|
...props
|
|
4627
5002
|
}
|
|
4628
|
-
)
|
|
5003
|
+
);
|
|
4629
5004
|
InputGroupInput.displayName = "InputGroupInput";
|
|
4630
|
-
var InputGroupTextarea =
|
|
5005
|
+
var InputGroupTextarea = ({
|
|
5006
|
+
ref,
|
|
5007
|
+
className,
|
|
5008
|
+
...props
|
|
5009
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4631
5010
|
Textarea,
|
|
4632
5011
|
{
|
|
4633
5012
|
ref,
|
|
@@ -4638,7 +5017,7 @@ var InputGroupTextarea = React26__namespace.forwardRef(({ className, ...props },
|
|
|
4638
5017
|
),
|
|
4639
5018
|
...props
|
|
4640
5019
|
}
|
|
4641
|
-
)
|
|
5020
|
+
);
|
|
4642
5021
|
InputGroupTextarea.displayName = "InputGroupTextarea";
|
|
4643
5022
|
var CalendarIcon = ({
|
|
4644
5023
|
className = "",
|
|
@@ -4666,9 +5045,9 @@ var CalendarIcon = ({
|
|
|
4666
5045
|
}
|
|
4667
5046
|
);
|
|
4668
5047
|
};
|
|
4669
|
-
var DatePickerContext =
|
|
5048
|
+
var DatePickerContext = React6__namespace.createContext(null);
|
|
4670
5049
|
function useDatePickerContext() {
|
|
4671
|
-
const context =
|
|
5050
|
+
const context = React6__namespace.useContext(DatePickerContext);
|
|
4672
5051
|
if (!context) {
|
|
4673
5052
|
throw new Error("DatePicker components must be used within a DatePicker");
|
|
4674
5053
|
}
|
|
@@ -4687,25 +5066,25 @@ function DatePicker({
|
|
|
4687
5066
|
defaultOpen = false,
|
|
4688
5067
|
formatDate: formatDateProp = defaultFormatDate
|
|
4689
5068
|
}) {
|
|
4690
|
-
const [uncontrolledDate, setUncontrolledDate] =
|
|
4691
|
-
const [uncontrolledOpen, setUncontrolledOpen] =
|
|
5069
|
+
const [uncontrolledDate, setUncontrolledDate] = React6__namespace.useState(defaultDate);
|
|
5070
|
+
const [uncontrolledOpen, setUncontrolledOpen] = React6__namespace.useState(defaultOpen);
|
|
4692
5071
|
const isDateControlled = controlledDate !== void 0;
|
|
4693
5072
|
const isOpenControlled = controlledOpen !== void 0;
|
|
4694
5073
|
const date = isDateControlled ? controlledDate : uncontrolledDate;
|
|
4695
5074
|
const open = isOpenControlled ? controlledOpen : uncontrolledOpen;
|
|
4696
|
-
const setDate =
|
|
5075
|
+
const setDate = React6__namespace.useCallback((newDate) => {
|
|
4697
5076
|
if (!isDateControlled) {
|
|
4698
5077
|
setUncontrolledDate(newDate);
|
|
4699
5078
|
}
|
|
4700
5079
|
onDateChange?.(newDate);
|
|
4701
5080
|
}, [isDateControlled, onDateChange]);
|
|
4702
|
-
const setOpen =
|
|
5081
|
+
const setOpen = React6__namespace.useCallback((newOpen) => {
|
|
4703
5082
|
if (!isOpenControlled) {
|
|
4704
5083
|
setUncontrolledOpen(newOpen);
|
|
4705
5084
|
}
|
|
4706
5085
|
onOpenChange?.(newOpen);
|
|
4707
5086
|
}, [isOpenControlled, onOpenChange]);
|
|
4708
|
-
const contextValue =
|
|
5087
|
+
const contextValue = React6__namespace.useMemo(() => ({
|
|
4709
5088
|
date,
|
|
4710
5089
|
setDate,
|
|
4711
5090
|
open,
|
|
@@ -4778,9 +5157,9 @@ function DatePickerInput({
|
|
|
4778
5157
|
id
|
|
4779
5158
|
}) {
|
|
4780
5159
|
const { date, setDate, setOpen, formatDate } = useDatePickerContext();
|
|
4781
|
-
const [inputValue, setInputValue] =
|
|
4782
|
-
const [month, setMonth] =
|
|
4783
|
-
|
|
5160
|
+
const [inputValue, setInputValue] = React6__namespace.useState(date ? formatDate(date) : "");
|
|
5161
|
+
const [month, setMonth] = React6__namespace.useState(date);
|
|
5162
|
+
React6__namespace.useEffect(() => {
|
|
4784
5163
|
setInputValue(date ? formatDate(date) : "");
|
|
4785
5164
|
}, [date, formatDate]);
|
|
4786
5165
|
const handleInputChange = (e) => {
|
|
@@ -4847,7 +5226,13 @@ function DatePickerInput({
|
|
|
4847
5226
|
)
|
|
4848
5227
|
] });
|
|
4849
5228
|
}
|
|
4850
|
-
var Sidebar =
|
|
5229
|
+
var Sidebar = ({
|
|
5230
|
+
ref,
|
|
5231
|
+
collapsed = false,
|
|
5232
|
+
className,
|
|
5233
|
+
children,
|
|
5234
|
+
...props
|
|
5235
|
+
}) => {
|
|
4851
5236
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4852
5237
|
"aside",
|
|
4853
5238
|
{
|
|
@@ -4864,9 +5249,13 @@ var Sidebar = React26__namespace.forwardRef(({ collapsed = false, className, chi
|
|
|
4864
5249
|
children
|
|
4865
5250
|
}
|
|
4866
5251
|
);
|
|
4867
|
-
}
|
|
5252
|
+
};
|
|
4868
5253
|
Sidebar.displayName = "Sidebar";
|
|
4869
|
-
var SidebarContent =
|
|
5254
|
+
var SidebarContent = ({
|
|
5255
|
+
ref,
|
|
5256
|
+
className,
|
|
5257
|
+
...props
|
|
5258
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4870
5259
|
"div",
|
|
4871
5260
|
{
|
|
4872
5261
|
ref,
|
|
@@ -4878,9 +5267,13 @@ var SidebarContent = React26__namespace.forwardRef(({ className, ...props }, ref
|
|
|
4878
5267
|
),
|
|
4879
5268
|
...props
|
|
4880
5269
|
}
|
|
4881
|
-
)
|
|
5270
|
+
);
|
|
4882
5271
|
SidebarContent.displayName = "SidebarContent";
|
|
4883
|
-
var SidebarMenu =
|
|
5272
|
+
var SidebarMenu = ({
|
|
5273
|
+
ref,
|
|
5274
|
+
className,
|
|
5275
|
+
...props
|
|
5276
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4884
5277
|
"ul",
|
|
4885
5278
|
{
|
|
4886
5279
|
ref,
|
|
@@ -4888,9 +5281,13 @@ var SidebarMenu = React26__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
4888
5281
|
className: cn("flex w-full min-w-0 flex-col gap-1", className),
|
|
4889
5282
|
...props
|
|
4890
5283
|
}
|
|
4891
|
-
)
|
|
5284
|
+
);
|
|
4892
5285
|
SidebarMenu.displayName = "SidebarMenu";
|
|
4893
|
-
var SidebarMenuItem =
|
|
5286
|
+
var SidebarMenuItem = ({
|
|
5287
|
+
ref,
|
|
5288
|
+
className,
|
|
5289
|
+
...props
|
|
5290
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4894
5291
|
"li",
|
|
4895
5292
|
{
|
|
4896
5293
|
ref,
|
|
@@ -4898,7 +5295,7 @@ var SidebarMenuItem = React26__namespace.forwardRef(({ className, ...props }, re
|
|
|
4898
5295
|
className: cn("group/menu-item relative", className),
|
|
4899
5296
|
...props
|
|
4900
5297
|
}
|
|
4901
|
-
)
|
|
5298
|
+
);
|
|
4902
5299
|
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
4903
5300
|
var sidebarMenuButtonVariants = classVarianceAuthority.cva(
|
|
4904
5301
|
// HAI3 customization: All sizing uses rem-based Tailwind classes for theme responsiveness
|
|
@@ -4922,110 +5319,128 @@ var sidebarMenuButtonVariants = classVarianceAuthority.cva(
|
|
|
4922
5319
|
}
|
|
4923
5320
|
}
|
|
4924
5321
|
);
|
|
4925
|
-
var SidebarMenuButton =
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
);
|
|
5322
|
+
var SidebarMenuButton = ({
|
|
5323
|
+
ref,
|
|
5324
|
+
asChild = false,
|
|
5325
|
+
isActive = false,
|
|
5326
|
+
variant = "default",
|
|
5327
|
+
size = "default",
|
|
5328
|
+
tooltip,
|
|
5329
|
+
className,
|
|
5330
|
+
...props
|
|
5331
|
+
}) => {
|
|
5332
|
+
const Comp = asChild ? reactSlot.Slot : "button";
|
|
5333
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5334
|
+
Comp,
|
|
5335
|
+
{
|
|
5336
|
+
ref,
|
|
5337
|
+
"data-sidebar": "menu-button",
|
|
5338
|
+
"data-size": size,
|
|
5339
|
+
"data-active": isActive,
|
|
5340
|
+
title: tooltip,
|
|
5341
|
+
className: cn(sidebarMenuButtonVariants({ variant, size }), className),
|
|
5342
|
+
...props
|
|
5343
|
+
}
|
|
5344
|
+
);
|
|
5345
|
+
};
|
|
4950
5346
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
4951
|
-
var SidebarMenuIcon =
|
|
5347
|
+
var SidebarMenuIcon = ({
|
|
5348
|
+
ref,
|
|
5349
|
+
className,
|
|
5350
|
+
...props
|
|
5351
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4952
5352
|
"span",
|
|
4953
5353
|
{
|
|
4954
5354
|
ref,
|
|
4955
5355
|
className: cn("size-5 min-w-[1.5rem] flex-shrink-0 [&>svg]:w-full [&>svg]:h-full", className),
|
|
4956
5356
|
...props
|
|
4957
5357
|
}
|
|
4958
|
-
)
|
|
5358
|
+
);
|
|
4959
5359
|
SidebarMenuIcon.displayName = "SidebarMenuIcon";
|
|
4960
|
-
var SidebarMenuLabel =
|
|
5360
|
+
var SidebarMenuLabel = ({
|
|
5361
|
+
ref,
|
|
5362
|
+
className,
|
|
5363
|
+
...props
|
|
5364
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4961
5365
|
"span",
|
|
4962
5366
|
{
|
|
4963
5367
|
ref,
|
|
4964
5368
|
className: cn(className),
|
|
4965
5369
|
...props
|
|
4966
5370
|
}
|
|
4967
|
-
));
|
|
4968
|
-
SidebarMenuLabel.displayName = "SidebarMenuLabel";
|
|
4969
|
-
var SidebarHeader = React26__namespace.forwardRef(
|
|
4970
|
-
({ logo, logoText, collapsed = false, onClick, className, ...props }, ref) => {
|
|
4971
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4972
|
-
"div",
|
|
4973
|
-
{
|
|
4974
|
-
ref,
|
|
4975
|
-
className: cn(
|
|
4976
|
-
"flex flex-col h-16",
|
|
4977
|
-
className
|
|
4978
|
-
),
|
|
4979
|
-
...props,
|
|
4980
|
-
children: [
|
|
4981
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center flex-1 px-2", children: /* @__PURE__ */ jsxRuntime.jsxs(SidebarMenuButton, { onClick, tooltip: collapsed ? "Expand menu" : "Collapse menu", children: [
|
|
4982
|
-
logo && /* @__PURE__ */ jsxRuntime.jsx(SidebarMenuIcon, { children: logo }),
|
|
4983
|
-
logoText && /* @__PURE__ */ jsxRuntime.jsx(SidebarMenuLabel, { className: "[&>svg]:h-5 [&>svg]:w-auto", children: logoText })
|
|
4984
|
-
] }) }),
|
|
4985
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-b border-mainMenu-border mx-4" })
|
|
4986
|
-
]
|
|
4987
|
-
}
|
|
4988
|
-
);
|
|
4989
|
-
}
|
|
4990
5371
|
);
|
|
5372
|
+
SidebarMenuLabel.displayName = "SidebarMenuLabel";
|
|
5373
|
+
var SidebarHeader = ({
|
|
5374
|
+
ref,
|
|
5375
|
+
logo,
|
|
5376
|
+
logoText,
|
|
5377
|
+
collapsed = false,
|
|
5378
|
+
onClick,
|
|
5379
|
+
className,
|
|
5380
|
+
...props
|
|
5381
|
+
}) => {
|
|
5382
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5383
|
+
"div",
|
|
5384
|
+
{
|
|
5385
|
+
ref,
|
|
5386
|
+
className: cn(
|
|
5387
|
+
"flex flex-col h-16",
|
|
5388
|
+
className
|
|
5389
|
+
),
|
|
5390
|
+
...props,
|
|
5391
|
+
children: [
|
|
5392
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center flex-1 px-2", children: /* @__PURE__ */ jsxRuntime.jsxs(SidebarMenuButton, { onClick, tooltip: collapsed ? "Expand menu" : "Collapse menu", children: [
|
|
5393
|
+
logo && /* @__PURE__ */ jsxRuntime.jsx(SidebarMenuIcon, { children: logo }),
|
|
5394
|
+
logoText && /* @__PURE__ */ jsxRuntime.jsx(SidebarMenuLabel, { className: "[&>svg]:h-5 [&>svg]:w-auto", children: logoText })
|
|
5395
|
+
] }) }),
|
|
5396
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-b border-mainMenu-border mx-4" })
|
|
5397
|
+
]
|
|
5398
|
+
}
|
|
5399
|
+
);
|
|
5400
|
+
};
|
|
4991
5401
|
SidebarHeader.displayName = "SidebarHeader";
|
|
4992
|
-
var UserInfo =
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
const
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
{
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
"flex items-center gap-2 text-sm text-muted-foreground",
|
|
5016
|
-
className
|
|
5017
|
-
),
|
|
5018
|
-
children: [
|
|
5019
|
-
/* @__PURE__ */ jsxRuntime.jsxs(Avatar, { className: "h-8 w-8", children: [
|
|
5020
|
-
avatarUrl && /* @__PURE__ */ jsxRuntime.jsx(AvatarImage, { src: avatarUrl, alt: displayText }),
|
|
5021
|
-
/* @__PURE__ */ jsxRuntime.jsx(AvatarFallback, { children: initials })
|
|
5022
|
-
] }),
|
|
5023
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: displayText })
|
|
5024
|
-
]
|
|
5025
|
-
}
|
|
5026
|
-
);
|
|
5402
|
+
var UserInfo = ({
|
|
5403
|
+
ref,
|
|
5404
|
+
displayName,
|
|
5405
|
+
email,
|
|
5406
|
+
avatarUrl,
|
|
5407
|
+
className,
|
|
5408
|
+
loading
|
|
5409
|
+
}) => {
|
|
5410
|
+
const getInitials = () => {
|
|
5411
|
+
if (!displayName) return lodash.toUpper(email?.[0] || "") || "?";
|
|
5412
|
+
const parts = lodash.trim(displayName).split(/\s+/);
|
|
5413
|
+
if (parts.length >= 2) {
|
|
5414
|
+
return lodash.toUpper(`${parts[0][0]}${parts[parts.length - 1][0]}`);
|
|
5415
|
+
}
|
|
5416
|
+
return lodash.toUpper(displayName.slice(0, 2));
|
|
5417
|
+
};
|
|
5418
|
+
const initials = getInitials();
|
|
5419
|
+
const displayText = displayName || email || "User";
|
|
5420
|
+
if (loading) {
|
|
5421
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: cn("flex items-center gap-2 text-sm", className), children: [
|
|
5422
|
+
/* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-8 w-8 rounded-full" }),
|
|
5423
|
+
/* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-4 w-24" })
|
|
5424
|
+
] });
|
|
5027
5425
|
}
|
|
5028
|
-
|
|
5426
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5427
|
+
"div",
|
|
5428
|
+
{
|
|
5429
|
+
ref,
|
|
5430
|
+
className: cn(
|
|
5431
|
+
"flex items-center gap-2 text-sm text-muted-foreground",
|
|
5432
|
+
className
|
|
5433
|
+
),
|
|
5434
|
+
children: [
|
|
5435
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Avatar, { className: "h-8 w-8", children: [
|
|
5436
|
+
avatarUrl && /* @__PURE__ */ jsxRuntime.jsx(AvatarImage, { src: avatarUrl, alt: displayText }),
|
|
5437
|
+
/* @__PURE__ */ jsxRuntime.jsx(AvatarFallback, { children: initials })
|
|
5438
|
+
] }),
|
|
5439
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: displayText })
|
|
5440
|
+
]
|
|
5441
|
+
}
|
|
5442
|
+
);
|
|
5443
|
+
};
|
|
5029
5444
|
UserInfo.displayName = "UserInfo";
|
|
5030
5445
|
var MessageType = /* @__PURE__ */ ((MessageType2) => {
|
|
5031
5446
|
MessageType2["User"] = "user";
|
|
@@ -5402,6 +5817,70 @@ var applyTheme = (theme, themeName) => {
|
|
|
5402
5817
|
root.style.fontSize = "";
|
|
5403
5818
|
}
|
|
5404
5819
|
};
|
|
5820
|
+
var applyThemeToShadowRoot = (shadowRoot, theme, themeName) => {
|
|
5821
|
+
let styleElement = shadowRoot.getElementById("__hai3-theme-vars__");
|
|
5822
|
+
if (!styleElement) {
|
|
5823
|
+
styleElement = document.createElement("style");
|
|
5824
|
+
styleElement.id = "__hai3-theme-vars__";
|
|
5825
|
+
shadowRoot.appendChild(styleElement);
|
|
5826
|
+
}
|
|
5827
|
+
if (themeName) {
|
|
5828
|
+
styleElement.setAttribute("data-theme", themeName);
|
|
5829
|
+
}
|
|
5830
|
+
const cssVars = [];
|
|
5831
|
+
cssVars.push(`--background: ${hslToVar(theme.colors.background)};`);
|
|
5832
|
+
cssVars.push(`--foreground: ${hslToVar(theme.colors.foreground)};`);
|
|
5833
|
+
cssVars.push(`--card: ${hslToVar(theme.colors.background)};`);
|
|
5834
|
+
cssVars.push(`--card-foreground: ${hslToVar(theme.colors.foreground)};`);
|
|
5835
|
+
cssVars.push(`--popover: ${hslToVar(theme.colors.background)};`);
|
|
5836
|
+
cssVars.push(`--popover-foreground: ${hslToVar(theme.colors.foreground)};`);
|
|
5837
|
+
cssVars.push(`--primary: ${hslToVar(theme.colors.primary)};`);
|
|
5838
|
+
cssVars.push(`--primary-foreground: ${hslToVar(theme.colors.background)};`);
|
|
5839
|
+
cssVars.push(`--secondary: ${hslToVar(theme.colors.secondary)};`);
|
|
5840
|
+
cssVars.push(`--secondary-foreground: ${hslToVar(theme.colors.foreground)};`);
|
|
5841
|
+
cssVars.push(`--muted: ${hslToVar(theme.colors.muted)};`);
|
|
5842
|
+
cssVars.push(`--muted-foreground: ${hslToVar(theme.colors.foreground)};`);
|
|
5843
|
+
cssVars.push(`--accent: ${hslToVar(theme.colors.accent)};`);
|
|
5844
|
+
cssVars.push(`--accent-foreground: ${hslToVar(theme.colors.background)};`);
|
|
5845
|
+
cssVars.push(`--destructive: ${hslToVar(theme.colors.error)};`);
|
|
5846
|
+
cssVars.push(`--destructive-foreground: ${hslToVar(theme.colors.foreground)};`);
|
|
5847
|
+
cssVars.push(`--border: ${hslToVar(theme.colors.border)};`);
|
|
5848
|
+
cssVars.push(`--input: ${hslToVar(theme.colors.border)};`);
|
|
5849
|
+
cssVars.push(`--ring: ${hslToVar(theme.colors.primary)};`);
|
|
5850
|
+
cssVars.push(`--error: ${hslToVar(theme.colors.error)};`);
|
|
5851
|
+
cssVars.push(`--warning: ${hslToVar(theme.colors.warning)};`);
|
|
5852
|
+
cssVars.push(`--success: ${hslToVar(theme.colors.success)};`);
|
|
5853
|
+
cssVars.push(`--info: ${hslToVar(theme.colors.info)};`);
|
|
5854
|
+
cssVars.push(`--chart-1: ${theme.colors.chart[1]};`);
|
|
5855
|
+
cssVars.push(`--chart-2: ${theme.colors.chart[2]};`);
|
|
5856
|
+
cssVars.push(`--chart-3: ${theme.colors.chart[3]};`);
|
|
5857
|
+
cssVars.push(`--chart-4: ${theme.colors.chart[4]};`);
|
|
5858
|
+
cssVars.push(`--chart-5: ${theme.colors.chart[5]};`);
|
|
5859
|
+
cssVars.push(`--left-menu: ${hslToVar(theme.colors.mainMenu.DEFAULT)};`);
|
|
5860
|
+
cssVars.push(`--left-menu-foreground: ${hslToVar(theme.colors.mainMenu.foreground)};`);
|
|
5861
|
+
cssVars.push(`--left-menu-hover: ${hslToVar(theme.colors.mainMenu.hover)};`);
|
|
5862
|
+
cssVars.push(`--left-menu-selected: ${hslToVar(theme.colors.mainMenu.selected)};`);
|
|
5863
|
+
cssVars.push(`--left-menu-border: ${hslToVar(theme.colors.mainMenu.border)};`);
|
|
5864
|
+
Object.entries(theme.spacing).forEach(([key, value]) => {
|
|
5865
|
+
cssVars.push(`--spacing-${key}: ${value};`);
|
|
5866
|
+
});
|
|
5867
|
+
Object.entries(theme.borderRadius).forEach(([key, value]) => {
|
|
5868
|
+
cssVars.push(`--radius-${key}: ${value};`);
|
|
5869
|
+
});
|
|
5870
|
+
Object.entries(theme.shadows).forEach(([key, value]) => {
|
|
5871
|
+
cssVars.push(`--shadow-${key}: ${value};`);
|
|
5872
|
+
});
|
|
5873
|
+
Object.entries(theme.transitions).forEach(([key, value]) => {
|
|
5874
|
+
cssVars.push(`--transition-${key}: ${value};`);
|
|
5875
|
+
});
|
|
5876
|
+
let cssContent = `:host {
|
|
5877
|
+
${cssVars.join("\n ")}
|
|
5878
|
+
}`;
|
|
5879
|
+
if (themeName?.endsWith("-large")) {
|
|
5880
|
+
cssContent += "\n\n:host {\n font-size: 125%;\n}";
|
|
5881
|
+
}
|
|
5882
|
+
styleElement.textContent = cssContent;
|
|
5883
|
+
};
|
|
5405
5884
|
|
|
5406
5885
|
Object.defineProperty(exports, "flexRender", {
|
|
5407
5886
|
enumerable: true,
|
|
@@ -5916,6 +6395,7 @@ exports.UiKitIcon = UiKitIcon;
|
|
|
5916
6395
|
exports.UserInfo = UserInfo;
|
|
5917
6396
|
exports.alertVariants = alertVariants;
|
|
5918
6397
|
exports.applyTheme = applyTheme;
|
|
6398
|
+
exports.applyThemeToShadowRoot = applyThemeToShadowRoot;
|
|
5919
6399
|
exports.badgeVariants = badgeVariants;
|
|
5920
6400
|
exports.buttonGroupVariants = buttonGroupVariants;
|
|
5921
6401
|
exports.emptyMediaVariants = emptyMediaVariants;
|