@pos-360/horizon 0.2.1 → 0.3.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/{chunk-BYICEALC.mjs → chunk-HJPQ6TOR.mjs} +272 -110
- package/dist/chunk-HJPQ6TOR.mjs.map +1 -0
- package/dist/{chunk-FOXFMLET.js → chunk-S2A3IDOX.js} +282 -112
- package/dist/chunk-S2A3IDOX.js.map +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +118 -86
- package/dist/index.mjs +1 -1
- package/dist/primitives.d.mts +56 -14
- package/dist/primitives.d.ts +56 -14
- package/dist/primitives.js +118 -86
- package/dist/primitives.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-BYICEALC.mjs.map +0 -1
- package/dist/chunk-FOXFMLET.js.map +0 -1
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
var chunkTMZLQK74_js = require('./chunk-TMZLQK74.js');
|
|
4
4
|
var classVarianceAuthority = require('class-variance-authority');
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var
|
|
6
|
+
var React7 = require('react');
|
|
7
7
|
var reactSlot = require('@radix-ui/react-slot');
|
|
8
8
|
var CheckboxPrimitive = require('@radix-ui/react-checkbox');
|
|
9
9
|
var lucideReact = require('lucide-react');
|
|
10
10
|
var DialogPrimitive = require('@radix-ui/react-dialog');
|
|
11
11
|
var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
|
|
12
|
+
var LabelPrimitive = require('@radix-ui/react-label');
|
|
12
13
|
var PopoverPrimitive = require('@radix-ui/react-popover');
|
|
13
14
|
var framerMotion = require('framer-motion');
|
|
14
15
|
var SelectPrimitive = require('@radix-ui/react-select');
|
|
15
16
|
var TabsPrimitive = require('@radix-ui/react-tabs');
|
|
16
|
-
var LabelPrimitive = require('@radix-ui/react-label');
|
|
17
17
|
|
|
18
18
|
function _interopNamespace(e) {
|
|
19
19
|
if (e && e.__esModule) return e;
|
|
@@ -33,14 +33,14 @@ function _interopNamespace(e) {
|
|
|
33
33
|
return Object.freeze(n);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var React7__namespace = /*#__PURE__*/_interopNamespace(React7);
|
|
37
37
|
var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
|
|
38
38
|
var DialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(DialogPrimitive);
|
|
39
39
|
var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive);
|
|
40
|
+
var LabelPrimitive__namespace = /*#__PURE__*/_interopNamespace(LabelPrimitive);
|
|
40
41
|
var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitive);
|
|
41
42
|
var SelectPrimitive__namespace = /*#__PURE__*/_interopNamespace(SelectPrimitive);
|
|
42
43
|
var TabsPrimitive__namespace = /*#__PURE__*/_interopNamespace(TabsPrimitive);
|
|
43
|
-
var LabelPrimitive__namespace = /*#__PURE__*/_interopNamespace(LabelPrimitive);
|
|
44
44
|
|
|
45
45
|
var badgeVariants = classVarianceAuthority.cva(
|
|
46
46
|
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",
|
|
@@ -91,7 +91,7 @@ var buttonVariants = classVarianceAuthority.cva(
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
);
|
|
94
|
-
var Button =
|
|
94
|
+
var Button = React7__namespace.forwardRef(
|
|
95
95
|
({
|
|
96
96
|
className,
|
|
97
97
|
variant,
|
|
@@ -131,7 +131,7 @@ var Button = React9__namespace.forwardRef(
|
|
|
131
131
|
}
|
|
132
132
|
);
|
|
133
133
|
Button.displayName = "Button";
|
|
134
|
-
var Card =
|
|
134
|
+
var Card = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
135
135
|
"div",
|
|
136
136
|
{
|
|
137
137
|
ref,
|
|
@@ -143,7 +143,7 @@ var Card = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
143
143
|
}
|
|
144
144
|
));
|
|
145
145
|
Card.displayName = "Card";
|
|
146
|
-
var CardHeader =
|
|
146
|
+
var CardHeader = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
147
147
|
"div",
|
|
148
148
|
{
|
|
149
149
|
ref,
|
|
@@ -152,7 +152,7 @@ var CardHeader = React9__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
152
152
|
}
|
|
153
153
|
));
|
|
154
154
|
CardHeader.displayName = "CardHeader";
|
|
155
|
-
var CardTitle =
|
|
155
|
+
var CardTitle = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
156
156
|
"div",
|
|
157
157
|
{
|
|
158
158
|
ref,
|
|
@@ -161,7 +161,7 @@ var CardTitle = React9__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
161
161
|
}
|
|
162
162
|
));
|
|
163
163
|
CardTitle.displayName = "CardTitle";
|
|
164
|
-
var CardDescription =
|
|
164
|
+
var CardDescription = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
165
165
|
"div",
|
|
166
166
|
{
|
|
167
167
|
ref,
|
|
@@ -170,7 +170,7 @@ var CardDescription = React9__namespace.forwardRef(({ className, ...props }, ref
|
|
|
170
170
|
}
|
|
171
171
|
));
|
|
172
172
|
CardDescription.displayName = "CardDescription";
|
|
173
|
-
var CardContent =
|
|
173
|
+
var CardContent = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
174
174
|
"div",
|
|
175
175
|
{
|
|
176
176
|
ref,
|
|
@@ -179,7 +179,7 @@ var CardContent = React9__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
179
179
|
}
|
|
180
180
|
));
|
|
181
181
|
CardContent.displayName = "CardContent";
|
|
182
|
-
var CardFooter =
|
|
182
|
+
var CardFooter = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
183
183
|
"div",
|
|
184
184
|
{
|
|
185
185
|
ref,
|
|
@@ -188,7 +188,7 @@ var CardFooter = React9__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
188
188
|
}
|
|
189
189
|
));
|
|
190
190
|
CardFooter.displayName = "CardFooter";
|
|
191
|
-
var Checkbox =
|
|
191
|
+
var Checkbox = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
192
192
|
CheckboxPrimitive__namespace.Root,
|
|
193
193
|
{
|
|
194
194
|
ref,
|
|
@@ -211,7 +211,7 @@ var Dialog = DialogPrimitive__namespace.Root;
|
|
|
211
211
|
var DialogTrigger = DialogPrimitive__namespace.Trigger;
|
|
212
212
|
var DialogPortal = DialogPrimitive__namespace.Portal;
|
|
213
213
|
var DialogClose = DialogPrimitive__namespace.Close;
|
|
214
|
-
var DialogOverlay =
|
|
214
|
+
var DialogOverlay = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
215
215
|
DialogPrimitive__namespace.Overlay,
|
|
216
216
|
{
|
|
217
217
|
ref,
|
|
@@ -223,7 +223,7 @@ var DialogOverlay = React9__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
223
223
|
}
|
|
224
224
|
));
|
|
225
225
|
DialogOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
|
|
226
|
-
var DialogContent =
|
|
226
|
+
var DialogContent = React7__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { children: [
|
|
227
227
|
/* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
|
|
228
228
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
229
229
|
DialogPrimitive__namespace.Content,
|
|
@@ -273,7 +273,7 @@ var DialogFooter = ({
|
|
|
273
273
|
}
|
|
274
274
|
);
|
|
275
275
|
DialogFooter.displayName = "DialogFooter";
|
|
276
|
-
var DialogTitle =
|
|
276
|
+
var DialogTitle = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
277
277
|
DialogPrimitive__namespace.Title,
|
|
278
278
|
{
|
|
279
279
|
ref,
|
|
@@ -285,7 +285,7 @@ var DialogTitle = React9__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
285
285
|
}
|
|
286
286
|
));
|
|
287
287
|
DialogTitle.displayName = DialogPrimitive__namespace.Title.displayName;
|
|
288
|
-
var DialogDescription =
|
|
288
|
+
var DialogDescription = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
289
289
|
DialogPrimitive__namespace.Description,
|
|
290
290
|
{
|
|
291
291
|
ref,
|
|
@@ -300,7 +300,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
|
|
|
300
300
|
var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
|
|
301
301
|
var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
|
|
302
302
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
|
|
303
|
-
var DropdownMenuSubTrigger =
|
|
303
|
+
var DropdownMenuSubTrigger = React7__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
304
304
|
DropdownMenuPrimitive__namespace.SubTrigger,
|
|
305
305
|
{
|
|
306
306
|
ref,
|
|
@@ -317,7 +317,7 @@ var DropdownMenuSubTrigger = React9__namespace.forwardRef(({ className, inset, c
|
|
|
317
317
|
}
|
|
318
318
|
));
|
|
319
319
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
|
|
320
|
-
var DropdownMenuSubContent =
|
|
320
|
+
var DropdownMenuSubContent = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
321
321
|
DropdownMenuPrimitive__namespace.SubContent,
|
|
322
322
|
{
|
|
323
323
|
ref,
|
|
@@ -329,7 +329,7 @@ var DropdownMenuSubContent = React9__namespace.forwardRef(({ className, ...props
|
|
|
329
329
|
}
|
|
330
330
|
));
|
|
331
331
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
|
|
332
|
-
var DropdownMenuContent =
|
|
332
|
+
var DropdownMenuContent = React7__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
333
333
|
DropdownMenuPrimitive__namespace.Content,
|
|
334
334
|
{
|
|
335
335
|
ref,
|
|
@@ -343,7 +343,7 @@ var DropdownMenuContent = React9__namespace.forwardRef(({ className, sideOffset
|
|
|
343
343
|
}
|
|
344
344
|
) }));
|
|
345
345
|
DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
|
|
346
|
-
var DropdownMenuItem =
|
|
346
|
+
var DropdownMenuItem = React7__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
347
347
|
DropdownMenuPrimitive__namespace.Item,
|
|
348
348
|
{
|
|
349
349
|
ref,
|
|
@@ -356,7 +356,7 @@ var DropdownMenuItem = React9__namespace.forwardRef(({ className, inset, ...prop
|
|
|
356
356
|
}
|
|
357
357
|
));
|
|
358
358
|
DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
|
|
359
|
-
var DropdownMenuCheckboxItem =
|
|
359
|
+
var DropdownMenuCheckboxItem = React7__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
360
360
|
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
361
361
|
{
|
|
362
362
|
ref,
|
|
@@ -373,7 +373,7 @@ var DropdownMenuCheckboxItem = React9__namespace.forwardRef(({ className, childr
|
|
|
373
373
|
}
|
|
374
374
|
));
|
|
375
375
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
376
|
-
var DropdownMenuRadioItem =
|
|
376
|
+
var DropdownMenuRadioItem = React7__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
377
377
|
DropdownMenuPrimitive__namespace.RadioItem,
|
|
378
378
|
{
|
|
379
379
|
ref,
|
|
@@ -389,7 +389,7 @@ var DropdownMenuRadioItem = React9__namespace.forwardRef(({ className, children,
|
|
|
389
389
|
}
|
|
390
390
|
));
|
|
391
391
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
|
|
392
|
-
var DropdownMenuLabel =
|
|
392
|
+
var DropdownMenuLabel = React7__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
393
393
|
DropdownMenuPrimitive__namespace.Label,
|
|
394
394
|
{
|
|
395
395
|
ref,
|
|
@@ -402,7 +402,7 @@ var DropdownMenuLabel = React9__namespace.forwardRef(({ className, inset, ...pro
|
|
|
402
402
|
}
|
|
403
403
|
));
|
|
404
404
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
|
|
405
|
-
var DropdownMenuSeparator =
|
|
405
|
+
var DropdownMenuSeparator = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
406
406
|
DropdownMenuPrimitive__namespace.Separator,
|
|
407
407
|
{
|
|
408
408
|
ref,
|
|
@@ -424,14 +424,218 @@ var DropdownMenuShortcut = ({
|
|
|
424
424
|
);
|
|
425
425
|
};
|
|
426
426
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
427
|
-
var
|
|
427
|
+
var labelVariants = classVarianceAuthority.cva(
|
|
428
|
+
"font-bricolage font-medium text-neutral-900 dark:text-neutral-100 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
429
|
+
{
|
|
430
|
+
variants: {
|
|
431
|
+
variant: {
|
|
432
|
+
default: "",
|
|
433
|
+
eyebrow: "uppercase tracking-[0.2em]"
|
|
434
|
+
},
|
|
435
|
+
size: {
|
|
436
|
+
xs: "text-[10px] leading-3",
|
|
437
|
+
sm: "text-xs leading-4",
|
|
438
|
+
base: "text-sm leading-5",
|
|
439
|
+
lg: "text-base leading-6",
|
|
440
|
+
xl: "text-lg leading-7"
|
|
441
|
+
},
|
|
442
|
+
weight: {
|
|
443
|
+
medium: "font-medium",
|
|
444
|
+
semibold: "font-semibold",
|
|
445
|
+
bold: "font-bold"
|
|
446
|
+
},
|
|
447
|
+
required: {
|
|
448
|
+
true: "after:content-['*'] after:ml-0.5 after:text-red-500",
|
|
449
|
+
false: ""
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
defaultVariants: {
|
|
453
|
+
variant: "default",
|
|
454
|
+
size: "base",
|
|
455
|
+
weight: "medium",
|
|
456
|
+
required: false
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
);
|
|
460
|
+
var Label2 = React7__namespace.forwardRef(({ className, variant, size, weight, required, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
461
|
+
LabelPrimitive__namespace.Root,
|
|
462
|
+
{
|
|
463
|
+
ref,
|
|
464
|
+
className: chunkTMZLQK74_js.cn(labelVariants({ variant, size, weight, required, className })),
|
|
465
|
+
...props
|
|
466
|
+
}
|
|
467
|
+
));
|
|
468
|
+
Label2.displayName = LabelPrimitive__namespace.Root.displayName;
|
|
469
|
+
var FormContext = React7__namespace.createContext(null);
|
|
470
|
+
function useFormContext() {
|
|
471
|
+
const context = React7__namespace.useContext(FormContext);
|
|
472
|
+
if (!context) {
|
|
473
|
+
throw new Error("useFormContext must be used within a Form component");
|
|
474
|
+
}
|
|
475
|
+
return context;
|
|
476
|
+
}
|
|
477
|
+
var FormFieldContext = React7__namespace.createContext(
|
|
478
|
+
null
|
|
479
|
+
);
|
|
480
|
+
function useFormFieldContext() {
|
|
481
|
+
const context = React7__namespace.useContext(FormFieldContext);
|
|
482
|
+
if (!context) {
|
|
483
|
+
throw new Error(
|
|
484
|
+
"useFormFieldContext must be used within a FormField component"
|
|
485
|
+
);
|
|
486
|
+
}
|
|
487
|
+
return context;
|
|
488
|
+
}
|
|
489
|
+
var Form = React7__namespace.forwardRef(
|
|
490
|
+
({ className, children, onFormSubmit, ...props }, ref) => {
|
|
491
|
+
const [errors, setErrors] = React7__namespace.useState({});
|
|
492
|
+
const [isSubmitting, setIsSubmitting] = React7__namespace.useState(false);
|
|
493
|
+
const setError = React7__namespace.useCallback(
|
|
494
|
+
(name, message) => {
|
|
495
|
+
setErrors((prev) => ({ ...prev, [name]: message }));
|
|
496
|
+
},
|
|
497
|
+
[]
|
|
498
|
+
);
|
|
499
|
+
const clearError = React7__namespace.useCallback((name) => {
|
|
500
|
+
setErrors((prev) => {
|
|
501
|
+
const next = { ...prev };
|
|
502
|
+
delete next[name];
|
|
503
|
+
return next;
|
|
504
|
+
});
|
|
505
|
+
}, []);
|
|
506
|
+
const clearAllErrors = React7__namespace.useCallback(() => {
|
|
507
|
+
setErrors({});
|
|
508
|
+
}, []);
|
|
509
|
+
const isValid = Object.keys(errors).length === 0;
|
|
510
|
+
const handleSubmit = async (e) => {
|
|
511
|
+
e.preventDefault();
|
|
512
|
+
if (onFormSubmit) {
|
|
513
|
+
setIsSubmitting(true);
|
|
514
|
+
try {
|
|
515
|
+
await onFormSubmit(e, {
|
|
516
|
+
setError: (name, message) => setError(name, message),
|
|
517
|
+
clearErrors: clearAllErrors,
|
|
518
|
+
setSubmitting: setIsSubmitting
|
|
519
|
+
});
|
|
520
|
+
} finally {
|
|
521
|
+
setIsSubmitting(false);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
};
|
|
525
|
+
const contextValue = React7__namespace.useMemo(
|
|
526
|
+
() => ({
|
|
527
|
+
errors,
|
|
528
|
+
setError,
|
|
529
|
+
clearError,
|
|
530
|
+
clearAllErrors,
|
|
531
|
+
isSubmitting,
|
|
532
|
+
isValid
|
|
533
|
+
}),
|
|
534
|
+
[errors, setError, clearError, clearAllErrors, isSubmitting, isValid]
|
|
535
|
+
);
|
|
536
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FormContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
537
|
+
"form",
|
|
538
|
+
{
|
|
539
|
+
ref,
|
|
540
|
+
className: chunkTMZLQK74_js.cn("space-y-6", className),
|
|
541
|
+
onSubmit: handleSubmit,
|
|
542
|
+
...props,
|
|
543
|
+
children
|
|
544
|
+
}
|
|
545
|
+
) });
|
|
546
|
+
}
|
|
547
|
+
);
|
|
548
|
+
Form.displayName = "Form";
|
|
549
|
+
var FormField = React7__namespace.forwardRef(
|
|
550
|
+
({ className, name, children, ...props }, ref) => {
|
|
551
|
+
const { errors } = useFormContext();
|
|
552
|
+
const id = React7__namespace.useId();
|
|
553
|
+
const error = errors[name];
|
|
554
|
+
const contextValue = React7__namespace.useMemo(
|
|
555
|
+
() => ({ name, error, id }),
|
|
556
|
+
[name, error, id]
|
|
557
|
+
);
|
|
558
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FormFieldContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: chunkTMZLQK74_js.cn("space-y-2", className), ...props, children }) });
|
|
559
|
+
}
|
|
560
|
+
);
|
|
561
|
+
FormField.displayName = "FormField";
|
|
562
|
+
var FormLabel = React7__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
563
|
+
const { id, error } = useFormFieldContext();
|
|
564
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
565
|
+
Label2,
|
|
566
|
+
{
|
|
567
|
+
ref,
|
|
568
|
+
htmlFor: id,
|
|
569
|
+
className: chunkTMZLQK74_js.cn(error && "text-red-500 dark:text-red-400", className),
|
|
570
|
+
...props
|
|
571
|
+
}
|
|
572
|
+
);
|
|
573
|
+
});
|
|
574
|
+
FormLabel.displayName = "FormLabel";
|
|
575
|
+
var FormControl = React7__namespace.forwardRef(
|
|
576
|
+
({ children, ...props }, ref) => {
|
|
577
|
+
const { id, error, name } = useFormFieldContext();
|
|
578
|
+
const child = React7__namespace.cloneElement(children, {
|
|
579
|
+
id,
|
|
580
|
+
name,
|
|
581
|
+
"aria-invalid": !!error,
|
|
582
|
+
"aria-describedby": error ? `${id}-error` : void 0,
|
|
583
|
+
...children.props
|
|
584
|
+
});
|
|
585
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, ...props, children: child });
|
|
586
|
+
}
|
|
587
|
+
);
|
|
588
|
+
FormControl.displayName = "FormControl";
|
|
589
|
+
var FormDescription = React7__namespace.forwardRef(
|
|
590
|
+
({ className, ...props }, ref) => {
|
|
591
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
592
|
+
"span",
|
|
593
|
+
{
|
|
594
|
+
ref,
|
|
595
|
+
className: chunkTMZLQK74_js.cn(
|
|
596
|
+
"block text-sm text-neutral-500 dark:text-neutral-400",
|
|
597
|
+
className
|
|
598
|
+
),
|
|
599
|
+
...props
|
|
600
|
+
}
|
|
601
|
+
);
|
|
602
|
+
}
|
|
603
|
+
);
|
|
604
|
+
FormDescription.displayName = "FormDescription";
|
|
605
|
+
var FormMessage = React7__namespace.forwardRef(
|
|
606
|
+
({ className, children, error: errorProp, ...props }, ref) => {
|
|
607
|
+
const fieldContext = React7__namespace.useContext(FormFieldContext);
|
|
608
|
+
const error = errorProp ?? fieldContext?.error;
|
|
609
|
+
const id = fieldContext?.id;
|
|
610
|
+
if (!error && !children) {
|
|
611
|
+
return null;
|
|
612
|
+
}
|
|
613
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
614
|
+
"p",
|
|
615
|
+
{
|
|
616
|
+
ref,
|
|
617
|
+
id: id ? `${id}-error` : void 0,
|
|
618
|
+
className: chunkTMZLQK74_js.cn(
|
|
619
|
+
"text-sm font-medium",
|
|
620
|
+
error ? "text-red-500 dark:text-red-400" : "text-neutral-600 dark:text-neutral-400",
|
|
621
|
+
className
|
|
622
|
+
),
|
|
623
|
+
role: error ? "alert" : void 0,
|
|
624
|
+
...props,
|
|
625
|
+
children: error || children
|
|
626
|
+
}
|
|
627
|
+
);
|
|
628
|
+
}
|
|
629
|
+
);
|
|
630
|
+
FormMessage.displayName = "FormMessage";
|
|
631
|
+
var PopoverContext = React7__namespace.createContext({ open: false });
|
|
428
632
|
var Popover = ({
|
|
429
633
|
children,
|
|
430
634
|
open: controlledOpen,
|
|
431
635
|
onOpenChange,
|
|
432
636
|
...props
|
|
433
637
|
}) => {
|
|
434
|
-
const [uncontrolledOpen, setUncontrolledOpen] =
|
|
638
|
+
const [uncontrolledOpen, setUncontrolledOpen] = React7__namespace.useState(false);
|
|
435
639
|
const isControlled = controlledOpen !== void 0;
|
|
436
640
|
const open = isControlled ? controlledOpen : uncontrolledOpen;
|
|
437
641
|
const handleOpenChange = (newOpen) => {
|
|
@@ -452,8 +656,8 @@ var Popover = ({
|
|
|
452
656
|
};
|
|
453
657
|
var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
|
|
454
658
|
var PopoverAnchor = PopoverPrimitive__namespace.Anchor;
|
|
455
|
-
var PopoverContent =
|
|
456
|
-
const { open } =
|
|
659
|
+
var PopoverContent = React7__namespace.forwardRef(({ className, align = "center", sideOffset = 4, children, ...props }, ref) => {
|
|
660
|
+
const { open } = React7__namespace.useContext(PopoverContext);
|
|
457
661
|
const {
|
|
458
662
|
onOpenAutoFocus,
|
|
459
663
|
onCloseAutoFocus,
|
|
@@ -513,14 +717,14 @@ var PopoverContent = React9__namespace.forwardRef(({ className, align = "center"
|
|
|
513
717
|
) }) });
|
|
514
718
|
});
|
|
515
719
|
PopoverContent.displayName = PopoverPrimitive__namespace.Content.displayName;
|
|
516
|
-
var SelectContext =
|
|
720
|
+
var SelectContext = React7__namespace.createContext({ open: false });
|
|
517
721
|
var Select = ({
|
|
518
722
|
children,
|
|
519
723
|
open: controlledOpen,
|
|
520
724
|
onOpenChange,
|
|
521
725
|
...props
|
|
522
726
|
}) => {
|
|
523
|
-
const [uncontrolledOpen, setUncontrolledOpen] =
|
|
727
|
+
const [uncontrolledOpen, setUncontrolledOpen] = React7__namespace.useState(false);
|
|
524
728
|
const isControlled = controlledOpen !== void 0;
|
|
525
729
|
const open = isControlled ? controlledOpen : uncontrolledOpen;
|
|
526
730
|
const handleOpenChange = (newOpen) => {
|
|
@@ -541,7 +745,7 @@ var Select = ({
|
|
|
541
745
|
};
|
|
542
746
|
var SelectGroup = SelectPrimitive__namespace.Group;
|
|
543
747
|
var SelectValue = SelectPrimitive__namespace.Value;
|
|
544
|
-
var SelectTrigger =
|
|
748
|
+
var SelectTrigger = React7__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
545
749
|
SelectPrimitive__namespace.Trigger,
|
|
546
750
|
{
|
|
547
751
|
ref,
|
|
@@ -557,7 +761,7 @@ var SelectTrigger = React9__namespace.forwardRef(({ className, children, ...prop
|
|
|
557
761
|
}
|
|
558
762
|
));
|
|
559
763
|
SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
|
|
560
|
-
var SelectScrollUpButton =
|
|
764
|
+
var SelectScrollUpButton = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
561
765
|
SelectPrimitive__namespace.ScrollUpButton,
|
|
562
766
|
{
|
|
563
767
|
ref,
|
|
@@ -570,7 +774,7 @@ var SelectScrollUpButton = React9__namespace.forwardRef(({ className, ...props }
|
|
|
570
774
|
}
|
|
571
775
|
));
|
|
572
776
|
SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
|
|
573
|
-
var SelectScrollDownButton =
|
|
777
|
+
var SelectScrollDownButton = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
574
778
|
SelectPrimitive__namespace.ScrollDownButton,
|
|
575
779
|
{
|
|
576
780
|
ref,
|
|
@@ -583,8 +787,8 @@ var SelectScrollDownButton = React9__namespace.forwardRef(({ className, ...props
|
|
|
583
787
|
}
|
|
584
788
|
));
|
|
585
789
|
SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
|
|
586
|
-
var SelectContent =
|
|
587
|
-
const { open } =
|
|
790
|
+
var SelectContent = React7__namespace.forwardRef(({ className, children, position = "popper", ...props }, ref) => {
|
|
791
|
+
const { open } = React7__namespace.useContext(SelectContext);
|
|
588
792
|
const {
|
|
589
793
|
onCloseAutoFocus,
|
|
590
794
|
onEscapeKeyDown,
|
|
@@ -656,7 +860,7 @@ var SelectContent = React9__namespace.forwardRef(({ className, children, positio
|
|
|
656
860
|
) }) });
|
|
657
861
|
});
|
|
658
862
|
SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
|
|
659
|
-
var SelectLabel =
|
|
863
|
+
var SelectLabel = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
660
864
|
SelectPrimitive__namespace.Label,
|
|
661
865
|
{
|
|
662
866
|
ref,
|
|
@@ -665,7 +869,7 @@ var SelectLabel = React9__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
665
869
|
}
|
|
666
870
|
));
|
|
667
871
|
SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
|
|
668
|
-
var SelectItem =
|
|
872
|
+
var SelectItem = React7__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
669
873
|
SelectPrimitive__namespace.Item,
|
|
670
874
|
{
|
|
671
875
|
ref,
|
|
@@ -681,7 +885,7 @@ var SelectItem = React9__namespace.forwardRef(({ className, children, ...props }
|
|
|
681
885
|
}
|
|
682
886
|
));
|
|
683
887
|
SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
|
|
684
|
-
var SelectSeparator =
|
|
888
|
+
var SelectSeparator = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
685
889
|
SelectPrimitive__namespace.Separator,
|
|
686
890
|
{
|
|
687
891
|
ref,
|
|
@@ -757,7 +961,7 @@ function SkeletonCard({ className }) {
|
|
|
757
961
|
}
|
|
758
962
|
);
|
|
759
963
|
}
|
|
760
|
-
var Table =
|
|
964
|
+
var Table = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
761
965
|
"table",
|
|
762
966
|
{
|
|
763
967
|
ref,
|
|
@@ -766,7 +970,7 @@ var Table = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
766
970
|
}
|
|
767
971
|
) }));
|
|
768
972
|
Table.displayName = "Table";
|
|
769
|
-
var TableHeader =
|
|
973
|
+
var TableHeader = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
770
974
|
"thead",
|
|
771
975
|
{
|
|
772
976
|
ref,
|
|
@@ -775,7 +979,7 @@ var TableHeader = React9__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
775
979
|
}
|
|
776
980
|
));
|
|
777
981
|
TableHeader.displayName = "TableHeader";
|
|
778
|
-
var TableBody =
|
|
982
|
+
var TableBody = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
779
983
|
"tbody",
|
|
780
984
|
{
|
|
781
985
|
ref,
|
|
@@ -784,7 +988,7 @@ var TableBody = React9__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
784
988
|
}
|
|
785
989
|
));
|
|
786
990
|
TableBody.displayName = "TableBody";
|
|
787
|
-
var TableFooter =
|
|
991
|
+
var TableFooter = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
788
992
|
"tfoot",
|
|
789
993
|
{
|
|
790
994
|
ref,
|
|
@@ -796,7 +1000,7 @@ var TableFooter = React9__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
796
1000
|
}
|
|
797
1001
|
));
|
|
798
1002
|
TableFooter.displayName = "TableFooter";
|
|
799
|
-
var TableRow =
|
|
1003
|
+
var TableRow = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
800
1004
|
"tr",
|
|
801
1005
|
{
|
|
802
1006
|
ref,
|
|
@@ -808,7 +1012,7 @@ var TableRow = React9__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
808
1012
|
}
|
|
809
1013
|
));
|
|
810
1014
|
TableRow.displayName = "TableRow";
|
|
811
|
-
var TableHead =
|
|
1015
|
+
var TableHead = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
812
1016
|
"th",
|
|
813
1017
|
{
|
|
814
1018
|
ref,
|
|
@@ -820,7 +1024,7 @@ var TableHead = React9__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
820
1024
|
}
|
|
821
1025
|
));
|
|
822
1026
|
TableHead.displayName = "TableHead";
|
|
823
|
-
var TableCell =
|
|
1027
|
+
var TableCell = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
824
1028
|
"td",
|
|
825
1029
|
{
|
|
826
1030
|
ref,
|
|
@@ -829,7 +1033,7 @@ var TableCell = React9__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
829
1033
|
}
|
|
830
1034
|
));
|
|
831
1035
|
TableCell.displayName = "TableCell";
|
|
832
|
-
var TableCaption =
|
|
1036
|
+
var TableCaption = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
833
1037
|
"caption",
|
|
834
1038
|
{
|
|
835
1039
|
ref,
|
|
@@ -838,31 +1042,31 @@ var TableCaption = React9__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
838
1042
|
}
|
|
839
1043
|
));
|
|
840
1044
|
TableCaption.displayName = "TableCaption";
|
|
841
|
-
var TabsContext =
|
|
1045
|
+
var TabsContext = React7__namespace.createContext(null);
|
|
842
1046
|
var useTabsContext = () => {
|
|
843
|
-
const context =
|
|
1047
|
+
const context = React7__namespace.useContext(TabsContext);
|
|
844
1048
|
if (!context) {
|
|
845
1049
|
throw new Error("Tabs components must be used within a Tabs provider");
|
|
846
1050
|
}
|
|
847
1051
|
return context;
|
|
848
1052
|
};
|
|
849
|
-
var Tabs =
|
|
850
|
-
const [activeTab, setActiveTabState] =
|
|
851
|
-
const tabRefs =
|
|
852
|
-
const listRef =
|
|
853
|
-
const setActiveTab =
|
|
1053
|
+
var Tabs = React7__namespace.forwardRef(({ defaultValue, value, onValueChange, children, ...props }, ref) => {
|
|
1054
|
+
const [activeTab, setActiveTabState] = React7__namespace.useState(value ?? defaultValue);
|
|
1055
|
+
const tabRefs = React7__namespace.useRef(/* @__PURE__ */ new Map()).current;
|
|
1056
|
+
const listRef = React7__namespace.useRef(null);
|
|
1057
|
+
const setActiveTab = React7__namespace.useCallback(
|
|
854
1058
|
(newValue) => {
|
|
855
1059
|
setActiveTabState(newValue);
|
|
856
1060
|
onValueChange?.(newValue);
|
|
857
1061
|
},
|
|
858
1062
|
[onValueChange]
|
|
859
1063
|
);
|
|
860
|
-
|
|
1064
|
+
React7__namespace.useEffect(() => {
|
|
861
1065
|
if (value !== void 0) {
|
|
862
1066
|
setActiveTabState(value);
|
|
863
1067
|
}
|
|
864
1068
|
}, [value]);
|
|
865
|
-
const registerTab =
|
|
1069
|
+
const registerTab = React7__namespace.useCallback(
|
|
866
1070
|
(tabValue, element) => {
|
|
867
1071
|
tabRefs.set(tabValue, element);
|
|
868
1072
|
},
|
|
@@ -887,10 +1091,10 @@ var Tabs = React9__namespace.forwardRef(({ defaultValue, value, onValueChange, c
|
|
|
887
1091
|
);
|
|
888
1092
|
});
|
|
889
1093
|
Tabs.displayName = "Tabs";
|
|
890
|
-
var TabsList =
|
|
1094
|
+
var TabsList = React7__namespace.forwardRef(({ className, children, ...props }, ref) => {
|
|
891
1095
|
const { activeTab, tabRefs, listRef } = useTabsContext();
|
|
892
|
-
const [indicatorStyle, setIndicatorStyle] =
|
|
893
|
-
|
|
1096
|
+
const [indicatorStyle, setIndicatorStyle] = React7__namespace.useState(null);
|
|
1097
|
+
React7__namespace.useEffect(() => {
|
|
894
1098
|
const updateIndicator = () => {
|
|
895
1099
|
if (!activeTab || !listRef.current) return;
|
|
896
1100
|
const activeElement = tabRefs.get(activeTab);
|
|
@@ -942,10 +1146,10 @@ var TabsList = React9__namespace.forwardRef(({ className, children, ...props },
|
|
|
942
1146
|
);
|
|
943
1147
|
});
|
|
944
1148
|
TabsList.displayName = TabsPrimitive__namespace.List.displayName;
|
|
945
|
-
var TabsTrigger =
|
|
1149
|
+
var TabsTrigger = React7__namespace.forwardRef(({ className, value, ...props }, ref) => {
|
|
946
1150
|
const { registerTab, activeTab } = useTabsContext();
|
|
947
|
-
const triggerRef =
|
|
948
|
-
|
|
1151
|
+
const triggerRef = React7__namespace.useRef(null);
|
|
1152
|
+
React7__namespace.useEffect(() => {
|
|
949
1153
|
registerTab(value, triggerRef.current);
|
|
950
1154
|
return () => registerTab(value, null);
|
|
951
1155
|
}, [value, registerTab]);
|
|
@@ -969,7 +1173,7 @@ var TabsTrigger = React9__namespace.forwardRef(({ className, value, ...props },
|
|
|
969
1173
|
);
|
|
970
1174
|
});
|
|
971
1175
|
TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
|
|
972
|
-
var TabsContent =
|
|
1176
|
+
var TabsContent = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
973
1177
|
TabsPrimitive__namespace.Content,
|
|
974
1178
|
{
|
|
975
1179
|
ref,
|
|
@@ -981,7 +1185,7 @@ var TabsContent = React9__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
981
1185
|
}
|
|
982
1186
|
));
|
|
983
1187
|
TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
|
|
984
|
-
var Textarea =
|
|
1188
|
+
var Textarea = React7__namespace.forwardRef(
|
|
985
1189
|
({ className, ...props }, ref) => {
|
|
986
1190
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
987
1191
|
"textarea",
|
|
@@ -1028,7 +1232,7 @@ var headingVariants = classVarianceAuthority.cva(
|
|
|
1028
1232
|
}
|
|
1029
1233
|
}
|
|
1030
1234
|
);
|
|
1031
|
-
var Heading =
|
|
1235
|
+
var Heading = React7__namespace.forwardRef(
|
|
1032
1236
|
({ className, level = 1, weight, align, as, children, ...props }, ref) => {
|
|
1033
1237
|
const Tag = as || `h${level}`;
|
|
1034
1238
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1082,7 +1286,7 @@ var textVariants = classVarianceAuthority.cva("font-bricolage text-neutral-700 d
|
|
|
1082
1286
|
color: "default"
|
|
1083
1287
|
}
|
|
1084
1288
|
});
|
|
1085
|
-
var Text =
|
|
1289
|
+
var Text = React7__namespace.forwardRef(
|
|
1086
1290
|
({ className, size, weight, align, color, asChild = false, as = "p", children, ...props }, ref) => {
|
|
1087
1291
|
const Comp = asChild ? reactSlot.Slot : as;
|
|
1088
1292
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1097,48 +1301,6 @@ var Text = React9__namespace.forwardRef(
|
|
|
1097
1301
|
}
|
|
1098
1302
|
);
|
|
1099
1303
|
Text.displayName = "Text";
|
|
1100
|
-
var labelVariants = classVarianceAuthority.cva(
|
|
1101
|
-
"font-bricolage font-medium text-neutral-900 dark:text-neutral-100 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
1102
|
-
{
|
|
1103
|
-
variants: {
|
|
1104
|
-
variant: {
|
|
1105
|
-
default: "",
|
|
1106
|
-
eyebrow: "uppercase tracking-[0.2em]"
|
|
1107
|
-
},
|
|
1108
|
-
size: {
|
|
1109
|
-
xs: "text-[10px] leading-3",
|
|
1110
|
-
sm: "text-xs leading-4",
|
|
1111
|
-
base: "text-sm leading-5",
|
|
1112
|
-
lg: "text-base leading-6",
|
|
1113
|
-
xl: "text-lg leading-7"
|
|
1114
|
-
},
|
|
1115
|
-
weight: {
|
|
1116
|
-
medium: "font-medium",
|
|
1117
|
-
semibold: "font-semibold",
|
|
1118
|
-
bold: "font-bold"
|
|
1119
|
-
},
|
|
1120
|
-
required: {
|
|
1121
|
-
true: "after:content-['*'] after:ml-0.5 after:text-red-500",
|
|
1122
|
-
false: ""
|
|
1123
|
-
}
|
|
1124
|
-
},
|
|
1125
|
-
defaultVariants: {
|
|
1126
|
-
variant: "default",
|
|
1127
|
-
size: "base",
|
|
1128
|
-
weight: "medium",
|
|
1129
|
-
required: false
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
);
|
|
1133
|
-
var Label3 = React9__namespace.forwardRef(({ className, variant, size, weight, required, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1134
|
-
LabelPrimitive__namespace.Root,
|
|
1135
|
-
{
|
|
1136
|
-
ref,
|
|
1137
|
-
className: chunkTMZLQK74_js.cn(labelVariants({ variant, size, weight, required, className })),
|
|
1138
|
-
...props
|
|
1139
|
-
}
|
|
1140
|
-
));
|
|
1141
|
-
Label3.displayName = LabelPrimitive__namespace.Root.displayName;
|
|
1142
1304
|
var captionVariants = classVarianceAuthority.cva(
|
|
1143
1305
|
"font-bricolage text-xs leading-4 text-neutral-500 dark:text-neutral-400",
|
|
1144
1306
|
{
|
|
@@ -1168,7 +1330,7 @@ var captionVariants = classVarianceAuthority.cva(
|
|
|
1168
1330
|
}
|
|
1169
1331
|
}
|
|
1170
1332
|
);
|
|
1171
|
-
var Caption =
|
|
1333
|
+
var Caption = React7__namespace.forwardRef(
|
|
1172
1334
|
({ className, weight, align, color, children, ...props }, ref) => {
|
|
1173
1335
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1174
1336
|
"span",
|
|
@@ -1208,7 +1370,7 @@ var codeVariants = classVarianceAuthority.cva("font-mono", {
|
|
|
1208
1370
|
color: "default"
|
|
1209
1371
|
}
|
|
1210
1372
|
});
|
|
1211
|
-
var Code =
|
|
1373
|
+
var Code = React7__namespace.forwardRef(
|
|
1212
1374
|
({ className, variant, color, children, ...props }, ref) => {
|
|
1213
1375
|
const isBlock = variant === "block";
|
|
1214
1376
|
if (isBlock) {
|
|
@@ -1271,8 +1433,14 @@ exports.DropdownMenuSub = DropdownMenuSub;
|
|
|
1271
1433
|
exports.DropdownMenuSubContent = DropdownMenuSubContent;
|
|
1272
1434
|
exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger;
|
|
1273
1435
|
exports.DropdownMenuTrigger = DropdownMenuTrigger;
|
|
1436
|
+
exports.Form = Form;
|
|
1437
|
+
exports.FormControl = FormControl;
|
|
1438
|
+
exports.FormDescription = FormDescription;
|
|
1439
|
+
exports.FormField = FormField;
|
|
1440
|
+
exports.FormLabel = FormLabel;
|
|
1441
|
+
exports.FormMessage = FormMessage;
|
|
1274
1442
|
exports.Heading = Heading;
|
|
1275
|
-
exports.Label =
|
|
1443
|
+
exports.Label = Label2;
|
|
1276
1444
|
exports.Popover = Popover;
|
|
1277
1445
|
exports.PopoverAnchor = PopoverAnchor;
|
|
1278
1446
|
exports.PopoverContent = PopoverContent;
|
|
@@ -1320,5 +1488,7 @@ exports.codeVariants = codeVariants;
|
|
|
1320
1488
|
exports.headingVariants = headingVariants;
|
|
1321
1489
|
exports.labelVariants = labelVariants;
|
|
1322
1490
|
exports.textVariants = textVariants;
|
|
1323
|
-
|
|
1324
|
-
|
|
1491
|
+
exports.useFormContext = useFormContext;
|
|
1492
|
+
exports.useFormFieldContext = useFormFieldContext;
|
|
1493
|
+
//# sourceMappingURL=chunk-S2A3IDOX.js.map
|
|
1494
|
+
//# sourceMappingURL=chunk-S2A3IDOX.js.map
|