@pos-360/horizon 0.2.0 → 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-24KNWDO5.js → chunk-BWR6DSQJ.js} +329 -50
- package/dist/chunk-BWR6DSQJ.js.map +1 -0
- package/dist/{chunk-RMVND66S.mjs → chunk-HJPQ6TOR.mjs} +488 -88
- package/dist/chunk-HJPQ6TOR.mjs.map +1 -0
- package/dist/{chunk-VMM4FQ6A.js → chunk-S2A3IDOX.js} +507 -88
- package/dist/chunk-S2A3IDOX.js.map +1 -0
- package/dist/{chunk-FEMSTEHE.mjs → chunk-TQPMV72P.mjs} +307 -51
- package/dist/chunk-TQPMV72P.mjs.map +1 -0
- package/dist/enhanced.d.mts +10 -3
- package/dist/enhanced.d.ts +10 -3
- package/dist/enhanced.js +30 -6
- package/dist/enhanced.mjs +1 -1
- package/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +178 -82
- package/dist/index.mjs +2 -2
- package/dist/primitives.d.mts +104 -10
- package/dist/primitives.d.ts +104 -10
- package/dist/primitives.js +148 -76
- package/dist/primitives.mjs +1 -1
- package/package.json +15 -11
- package/tailwind.config.js +1 -0
- package/dist/chunk-24KNWDO5.js.map +0 -1
- package/dist/chunk-FEMSTEHE.mjs.map +0 -1
- package/dist/chunk-RMVND66S.mjs.map +0 -1
- package/dist/chunk-VMM4FQ6A.js.map +0 -1
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkTMZLQK74_js = require('./chunk-TMZLQK74.js');
|
|
4
|
-
var React9 = require('react');
|
|
5
|
-
var reactSlot = require('@radix-ui/react-slot');
|
|
6
4
|
var classVarianceAuthority = require('class-variance-authority');
|
|
7
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var React7 = require('react');
|
|
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');
|
|
@@ -32,14 +33,39 @@ function _interopNamespace(e) {
|
|
|
32
33
|
return Object.freeze(n);
|
|
33
34
|
}
|
|
34
35
|
|
|
35
|
-
var
|
|
36
|
+
var React7__namespace = /*#__PURE__*/_interopNamespace(React7);
|
|
36
37
|
var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
|
|
37
38
|
var DialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(DialogPrimitive);
|
|
38
39
|
var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive);
|
|
40
|
+
var LabelPrimitive__namespace = /*#__PURE__*/_interopNamespace(LabelPrimitive);
|
|
39
41
|
var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitive);
|
|
40
42
|
var SelectPrimitive__namespace = /*#__PURE__*/_interopNamespace(SelectPrimitive);
|
|
41
43
|
var TabsPrimitive__namespace = /*#__PURE__*/_interopNamespace(TabsPrimitive);
|
|
42
44
|
|
|
45
|
+
var badgeVariants = classVarianceAuthority.cva(
|
|
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",
|
|
47
|
+
{
|
|
48
|
+
variants: {
|
|
49
|
+
variant: {
|
|
50
|
+
default: "border-transparent bg-blue-600 text-white hover:bg-blue-700",
|
|
51
|
+
secondary: "border-transparent bg-gray-100 text-gray-900 hover:bg-gray-200 dark:bg-neutral-700 dark:text-gray-100 dark:hover:bg-neutral-600",
|
|
52
|
+
destructive: "border-transparent bg-red-600 text-white hover:bg-red-700",
|
|
53
|
+
outline: "border-gray-300 text-gray-700 dark:border-neutral-600 dark:text-gray-300",
|
|
54
|
+
success: "border-transparent bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400",
|
|
55
|
+
warning: "border-transparent bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400",
|
|
56
|
+
info: "border-transparent bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400",
|
|
57
|
+
purple: "border-transparent bg-purple-100 text-purple-800 dark:bg-purple-900/30 dark:text-purple-400",
|
|
58
|
+
purpleOutline: "border-purple-300 dark:border-purple-600 bg-transparent text-purple-700 dark:text-purple-300 hover:bg-purple-50 dark:hover:bg-purple-900/20"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
defaultVariants: {
|
|
62
|
+
variant: "default"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
function Badge({ className, variant, ...props }) {
|
|
67
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkTMZLQK74_js.cn(badgeVariants({ variant }), className), ...props });
|
|
68
|
+
}
|
|
43
69
|
var buttonVariants = classVarianceAuthority.cva(
|
|
44
70
|
"group inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
45
71
|
{
|
|
@@ -65,7 +91,7 @@ var buttonVariants = classVarianceAuthority.cva(
|
|
|
65
91
|
}
|
|
66
92
|
}
|
|
67
93
|
);
|
|
68
|
-
var Button =
|
|
94
|
+
var Button = React7__namespace.forwardRef(
|
|
69
95
|
({
|
|
70
96
|
className,
|
|
71
97
|
variant,
|
|
@@ -105,31 +131,7 @@ var Button = React9__namespace.forwardRef(
|
|
|
105
131
|
}
|
|
106
132
|
);
|
|
107
133
|
Button.displayName = "Button";
|
|
108
|
-
var
|
|
109
|
-
"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",
|
|
110
|
-
{
|
|
111
|
-
variants: {
|
|
112
|
-
variant: {
|
|
113
|
-
default: "border-transparent bg-blue-600 text-white hover:bg-blue-700",
|
|
114
|
-
secondary: "border-transparent bg-gray-100 text-gray-900 hover:bg-gray-200 dark:bg-neutral-700 dark:text-gray-100 dark:hover:bg-neutral-600",
|
|
115
|
-
destructive: "border-transparent bg-red-600 text-white hover:bg-red-700",
|
|
116
|
-
outline: "border-gray-300 text-gray-700 dark:border-neutral-600 dark:text-gray-300",
|
|
117
|
-
success: "border-transparent bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400",
|
|
118
|
-
warning: "border-transparent bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400",
|
|
119
|
-
info: "border-transparent bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400",
|
|
120
|
-
purple: "border-transparent bg-purple-100 text-purple-800 dark:bg-purple-900/30 dark:text-purple-400",
|
|
121
|
-
purpleOutline: "border-purple-300 dark:border-purple-600 bg-transparent text-purple-700 dark:text-purple-300 hover:bg-purple-50 dark:hover:bg-purple-900/20"
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
defaultVariants: {
|
|
125
|
-
variant: "default"
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
);
|
|
129
|
-
function Badge({ className, variant, ...props }) {
|
|
130
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkTMZLQK74_js.cn(badgeVariants({ variant }), className), ...props });
|
|
131
|
-
}
|
|
132
|
-
var Card = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
134
|
+
var Card = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
133
135
|
"div",
|
|
134
136
|
{
|
|
135
137
|
ref,
|
|
@@ -141,7 +143,7 @@ var Card = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
141
143
|
}
|
|
142
144
|
));
|
|
143
145
|
Card.displayName = "Card";
|
|
144
|
-
var CardHeader =
|
|
146
|
+
var CardHeader = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
145
147
|
"div",
|
|
146
148
|
{
|
|
147
149
|
ref,
|
|
@@ -150,7 +152,7 @@ var CardHeader = React9__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
150
152
|
}
|
|
151
153
|
));
|
|
152
154
|
CardHeader.displayName = "CardHeader";
|
|
153
|
-
var CardTitle =
|
|
155
|
+
var CardTitle = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
154
156
|
"div",
|
|
155
157
|
{
|
|
156
158
|
ref,
|
|
@@ -159,7 +161,7 @@ var CardTitle = React9__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
159
161
|
}
|
|
160
162
|
));
|
|
161
163
|
CardTitle.displayName = "CardTitle";
|
|
162
|
-
var CardDescription =
|
|
164
|
+
var CardDescription = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
163
165
|
"div",
|
|
164
166
|
{
|
|
165
167
|
ref,
|
|
@@ -168,7 +170,7 @@ var CardDescription = React9__namespace.forwardRef(({ className, ...props }, ref
|
|
|
168
170
|
}
|
|
169
171
|
));
|
|
170
172
|
CardDescription.displayName = "CardDescription";
|
|
171
|
-
var CardContent =
|
|
173
|
+
var CardContent = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
172
174
|
"div",
|
|
173
175
|
{
|
|
174
176
|
ref,
|
|
@@ -177,7 +179,7 @@ var CardContent = React9__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
177
179
|
}
|
|
178
180
|
));
|
|
179
181
|
CardContent.displayName = "CardContent";
|
|
180
|
-
var CardFooter =
|
|
182
|
+
var CardFooter = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
181
183
|
"div",
|
|
182
184
|
{
|
|
183
185
|
ref,
|
|
@@ -186,7 +188,7 @@ var CardFooter = React9__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
186
188
|
}
|
|
187
189
|
));
|
|
188
190
|
CardFooter.displayName = "CardFooter";
|
|
189
|
-
var Checkbox =
|
|
191
|
+
var Checkbox = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
190
192
|
CheckboxPrimitive__namespace.Root,
|
|
191
193
|
{
|
|
192
194
|
ref,
|
|
@@ -209,7 +211,7 @@ var Dialog = DialogPrimitive__namespace.Root;
|
|
|
209
211
|
var DialogTrigger = DialogPrimitive__namespace.Trigger;
|
|
210
212
|
var DialogPortal = DialogPrimitive__namespace.Portal;
|
|
211
213
|
var DialogClose = DialogPrimitive__namespace.Close;
|
|
212
|
-
var DialogOverlay =
|
|
214
|
+
var DialogOverlay = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
213
215
|
DialogPrimitive__namespace.Overlay,
|
|
214
216
|
{
|
|
215
217
|
ref,
|
|
@@ -221,7 +223,7 @@ var DialogOverlay = React9__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
221
223
|
}
|
|
222
224
|
));
|
|
223
225
|
DialogOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
|
|
224
|
-
var DialogContent =
|
|
226
|
+
var DialogContent = React7__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { children: [
|
|
225
227
|
/* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
|
|
226
228
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
227
229
|
DialogPrimitive__namespace.Content,
|
|
@@ -271,7 +273,7 @@ var DialogFooter = ({
|
|
|
271
273
|
}
|
|
272
274
|
);
|
|
273
275
|
DialogFooter.displayName = "DialogFooter";
|
|
274
|
-
var DialogTitle =
|
|
276
|
+
var DialogTitle = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
275
277
|
DialogPrimitive__namespace.Title,
|
|
276
278
|
{
|
|
277
279
|
ref,
|
|
@@ -283,7 +285,7 @@ var DialogTitle = React9__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
283
285
|
}
|
|
284
286
|
));
|
|
285
287
|
DialogTitle.displayName = DialogPrimitive__namespace.Title.displayName;
|
|
286
|
-
var DialogDescription =
|
|
288
|
+
var DialogDescription = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
287
289
|
DialogPrimitive__namespace.Description,
|
|
288
290
|
{
|
|
289
291
|
ref,
|
|
@@ -298,7 +300,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
|
|
|
298
300
|
var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
|
|
299
301
|
var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
|
|
300
302
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
|
|
301
|
-
var DropdownMenuSubTrigger =
|
|
303
|
+
var DropdownMenuSubTrigger = React7__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
302
304
|
DropdownMenuPrimitive__namespace.SubTrigger,
|
|
303
305
|
{
|
|
304
306
|
ref,
|
|
@@ -315,7 +317,7 @@ var DropdownMenuSubTrigger = React9__namespace.forwardRef(({ className, inset, c
|
|
|
315
317
|
}
|
|
316
318
|
));
|
|
317
319
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
|
|
318
|
-
var DropdownMenuSubContent =
|
|
320
|
+
var DropdownMenuSubContent = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
319
321
|
DropdownMenuPrimitive__namespace.SubContent,
|
|
320
322
|
{
|
|
321
323
|
ref,
|
|
@@ -327,7 +329,7 @@ var DropdownMenuSubContent = React9__namespace.forwardRef(({ className, ...props
|
|
|
327
329
|
}
|
|
328
330
|
));
|
|
329
331
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
|
|
330
|
-
var DropdownMenuContent =
|
|
332
|
+
var DropdownMenuContent = React7__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
331
333
|
DropdownMenuPrimitive__namespace.Content,
|
|
332
334
|
{
|
|
333
335
|
ref,
|
|
@@ -341,7 +343,7 @@ var DropdownMenuContent = React9__namespace.forwardRef(({ className, sideOffset
|
|
|
341
343
|
}
|
|
342
344
|
) }));
|
|
343
345
|
DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
|
|
344
|
-
var DropdownMenuItem =
|
|
346
|
+
var DropdownMenuItem = React7__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
345
347
|
DropdownMenuPrimitive__namespace.Item,
|
|
346
348
|
{
|
|
347
349
|
ref,
|
|
@@ -354,7 +356,7 @@ var DropdownMenuItem = React9__namespace.forwardRef(({ className, inset, ...prop
|
|
|
354
356
|
}
|
|
355
357
|
));
|
|
356
358
|
DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
|
|
357
|
-
var DropdownMenuCheckboxItem =
|
|
359
|
+
var DropdownMenuCheckboxItem = React7__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
358
360
|
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
359
361
|
{
|
|
360
362
|
ref,
|
|
@@ -371,7 +373,7 @@ var DropdownMenuCheckboxItem = React9__namespace.forwardRef(({ className, childr
|
|
|
371
373
|
}
|
|
372
374
|
));
|
|
373
375
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
374
|
-
var DropdownMenuRadioItem =
|
|
376
|
+
var DropdownMenuRadioItem = React7__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
375
377
|
DropdownMenuPrimitive__namespace.RadioItem,
|
|
376
378
|
{
|
|
377
379
|
ref,
|
|
@@ -387,7 +389,7 @@ var DropdownMenuRadioItem = React9__namespace.forwardRef(({ className, children,
|
|
|
387
389
|
}
|
|
388
390
|
));
|
|
389
391
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
|
|
390
|
-
var DropdownMenuLabel =
|
|
392
|
+
var DropdownMenuLabel = React7__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
391
393
|
DropdownMenuPrimitive__namespace.Label,
|
|
392
394
|
{
|
|
393
395
|
ref,
|
|
@@ -400,7 +402,7 @@ var DropdownMenuLabel = React9__namespace.forwardRef(({ className, inset, ...pro
|
|
|
400
402
|
}
|
|
401
403
|
));
|
|
402
404
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
|
|
403
|
-
var DropdownMenuSeparator =
|
|
405
|
+
var DropdownMenuSeparator = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
404
406
|
DropdownMenuPrimitive__namespace.Separator,
|
|
405
407
|
{
|
|
406
408
|
ref,
|
|
@@ -422,14 +424,218 @@ var DropdownMenuShortcut = ({
|
|
|
422
424
|
);
|
|
423
425
|
};
|
|
424
426
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
425
|
-
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 });
|
|
426
632
|
var Popover = ({
|
|
427
633
|
children,
|
|
428
634
|
open: controlledOpen,
|
|
429
635
|
onOpenChange,
|
|
430
636
|
...props
|
|
431
637
|
}) => {
|
|
432
|
-
const [uncontrolledOpen, setUncontrolledOpen] =
|
|
638
|
+
const [uncontrolledOpen, setUncontrolledOpen] = React7__namespace.useState(false);
|
|
433
639
|
const isControlled = controlledOpen !== void 0;
|
|
434
640
|
const open = isControlled ? controlledOpen : uncontrolledOpen;
|
|
435
641
|
const handleOpenChange = (newOpen) => {
|
|
@@ -450,8 +656,8 @@ var Popover = ({
|
|
|
450
656
|
};
|
|
451
657
|
var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
|
|
452
658
|
var PopoverAnchor = PopoverPrimitive__namespace.Anchor;
|
|
453
|
-
var PopoverContent =
|
|
454
|
-
const { open } =
|
|
659
|
+
var PopoverContent = React7__namespace.forwardRef(({ className, align = "center", sideOffset = 4, children, ...props }, ref) => {
|
|
660
|
+
const { open } = React7__namespace.useContext(PopoverContext);
|
|
455
661
|
const {
|
|
456
662
|
onOpenAutoFocus,
|
|
457
663
|
onCloseAutoFocus,
|
|
@@ -511,14 +717,14 @@ var PopoverContent = React9__namespace.forwardRef(({ className, align = "center"
|
|
|
511
717
|
) }) });
|
|
512
718
|
});
|
|
513
719
|
PopoverContent.displayName = PopoverPrimitive__namespace.Content.displayName;
|
|
514
|
-
var SelectContext =
|
|
720
|
+
var SelectContext = React7__namespace.createContext({ open: false });
|
|
515
721
|
var Select = ({
|
|
516
722
|
children,
|
|
517
723
|
open: controlledOpen,
|
|
518
724
|
onOpenChange,
|
|
519
725
|
...props
|
|
520
726
|
}) => {
|
|
521
|
-
const [uncontrolledOpen, setUncontrolledOpen] =
|
|
727
|
+
const [uncontrolledOpen, setUncontrolledOpen] = React7__namespace.useState(false);
|
|
522
728
|
const isControlled = controlledOpen !== void 0;
|
|
523
729
|
const open = isControlled ? controlledOpen : uncontrolledOpen;
|
|
524
730
|
const handleOpenChange = (newOpen) => {
|
|
@@ -539,7 +745,7 @@ var Select = ({
|
|
|
539
745
|
};
|
|
540
746
|
var SelectGroup = SelectPrimitive__namespace.Group;
|
|
541
747
|
var SelectValue = SelectPrimitive__namespace.Value;
|
|
542
|
-
var SelectTrigger =
|
|
748
|
+
var SelectTrigger = React7__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
543
749
|
SelectPrimitive__namespace.Trigger,
|
|
544
750
|
{
|
|
545
751
|
ref,
|
|
@@ -555,7 +761,7 @@ var SelectTrigger = React9__namespace.forwardRef(({ className, children, ...prop
|
|
|
555
761
|
}
|
|
556
762
|
));
|
|
557
763
|
SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
|
|
558
|
-
var SelectScrollUpButton =
|
|
764
|
+
var SelectScrollUpButton = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
559
765
|
SelectPrimitive__namespace.ScrollUpButton,
|
|
560
766
|
{
|
|
561
767
|
ref,
|
|
@@ -568,7 +774,7 @@ var SelectScrollUpButton = React9__namespace.forwardRef(({ className, ...props }
|
|
|
568
774
|
}
|
|
569
775
|
));
|
|
570
776
|
SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
|
|
571
|
-
var SelectScrollDownButton =
|
|
777
|
+
var SelectScrollDownButton = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
572
778
|
SelectPrimitive__namespace.ScrollDownButton,
|
|
573
779
|
{
|
|
574
780
|
ref,
|
|
@@ -581,8 +787,8 @@ var SelectScrollDownButton = React9__namespace.forwardRef(({ className, ...props
|
|
|
581
787
|
}
|
|
582
788
|
));
|
|
583
789
|
SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
|
|
584
|
-
var SelectContent =
|
|
585
|
-
const { open } =
|
|
790
|
+
var SelectContent = React7__namespace.forwardRef(({ className, children, position = "popper", ...props }, ref) => {
|
|
791
|
+
const { open } = React7__namespace.useContext(SelectContext);
|
|
586
792
|
const {
|
|
587
793
|
onCloseAutoFocus,
|
|
588
794
|
onEscapeKeyDown,
|
|
@@ -654,7 +860,7 @@ var SelectContent = React9__namespace.forwardRef(({ className, children, positio
|
|
|
654
860
|
) }) });
|
|
655
861
|
});
|
|
656
862
|
SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
|
|
657
|
-
var SelectLabel =
|
|
863
|
+
var SelectLabel = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
658
864
|
SelectPrimitive__namespace.Label,
|
|
659
865
|
{
|
|
660
866
|
ref,
|
|
@@ -663,7 +869,7 @@ var SelectLabel = React9__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
663
869
|
}
|
|
664
870
|
));
|
|
665
871
|
SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
|
|
666
|
-
var SelectItem =
|
|
872
|
+
var SelectItem = React7__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
667
873
|
SelectPrimitive__namespace.Item,
|
|
668
874
|
{
|
|
669
875
|
ref,
|
|
@@ -679,7 +885,7 @@ var SelectItem = React9__namespace.forwardRef(({ className, children, ...props }
|
|
|
679
885
|
}
|
|
680
886
|
));
|
|
681
887
|
SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
|
|
682
|
-
var SelectSeparator =
|
|
888
|
+
var SelectSeparator = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
683
889
|
SelectPrimitive__namespace.Separator,
|
|
684
890
|
{
|
|
685
891
|
ref,
|
|
@@ -755,7 +961,7 @@ function SkeletonCard({ className }) {
|
|
|
755
961
|
}
|
|
756
962
|
);
|
|
757
963
|
}
|
|
758
|
-
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(
|
|
759
965
|
"table",
|
|
760
966
|
{
|
|
761
967
|
ref,
|
|
@@ -764,7 +970,7 @@ var Table = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
764
970
|
}
|
|
765
971
|
) }));
|
|
766
972
|
Table.displayName = "Table";
|
|
767
|
-
var TableHeader =
|
|
973
|
+
var TableHeader = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
768
974
|
"thead",
|
|
769
975
|
{
|
|
770
976
|
ref,
|
|
@@ -773,7 +979,7 @@ var TableHeader = React9__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
773
979
|
}
|
|
774
980
|
));
|
|
775
981
|
TableHeader.displayName = "TableHeader";
|
|
776
|
-
var TableBody =
|
|
982
|
+
var TableBody = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
777
983
|
"tbody",
|
|
778
984
|
{
|
|
779
985
|
ref,
|
|
@@ -782,7 +988,7 @@ var TableBody = React9__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
782
988
|
}
|
|
783
989
|
));
|
|
784
990
|
TableBody.displayName = "TableBody";
|
|
785
|
-
var TableFooter =
|
|
991
|
+
var TableFooter = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
786
992
|
"tfoot",
|
|
787
993
|
{
|
|
788
994
|
ref,
|
|
@@ -794,7 +1000,7 @@ var TableFooter = React9__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
794
1000
|
}
|
|
795
1001
|
));
|
|
796
1002
|
TableFooter.displayName = "TableFooter";
|
|
797
|
-
var TableRow =
|
|
1003
|
+
var TableRow = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
798
1004
|
"tr",
|
|
799
1005
|
{
|
|
800
1006
|
ref,
|
|
@@ -806,7 +1012,7 @@ var TableRow = React9__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
806
1012
|
}
|
|
807
1013
|
));
|
|
808
1014
|
TableRow.displayName = "TableRow";
|
|
809
|
-
var TableHead =
|
|
1015
|
+
var TableHead = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
810
1016
|
"th",
|
|
811
1017
|
{
|
|
812
1018
|
ref,
|
|
@@ -818,7 +1024,7 @@ var TableHead = React9__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
818
1024
|
}
|
|
819
1025
|
));
|
|
820
1026
|
TableHead.displayName = "TableHead";
|
|
821
|
-
var TableCell =
|
|
1027
|
+
var TableCell = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
822
1028
|
"td",
|
|
823
1029
|
{
|
|
824
1030
|
ref,
|
|
@@ -827,7 +1033,7 @@ var TableCell = React9__namespace.forwardRef(({ className, ...props }, ref) => /
|
|
|
827
1033
|
}
|
|
828
1034
|
));
|
|
829
1035
|
TableCell.displayName = "TableCell";
|
|
830
|
-
var TableCaption =
|
|
1036
|
+
var TableCaption = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
831
1037
|
"caption",
|
|
832
1038
|
{
|
|
833
1039
|
ref,
|
|
@@ -836,31 +1042,31 @@ var TableCaption = React9__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
836
1042
|
}
|
|
837
1043
|
));
|
|
838
1044
|
TableCaption.displayName = "TableCaption";
|
|
839
|
-
var TabsContext =
|
|
1045
|
+
var TabsContext = React7__namespace.createContext(null);
|
|
840
1046
|
var useTabsContext = () => {
|
|
841
|
-
const context =
|
|
1047
|
+
const context = React7__namespace.useContext(TabsContext);
|
|
842
1048
|
if (!context) {
|
|
843
1049
|
throw new Error("Tabs components must be used within a Tabs provider");
|
|
844
1050
|
}
|
|
845
1051
|
return context;
|
|
846
1052
|
};
|
|
847
|
-
var Tabs =
|
|
848
|
-
const [activeTab, setActiveTabState] =
|
|
849
|
-
const tabRefs =
|
|
850
|
-
const listRef =
|
|
851
|
-
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(
|
|
852
1058
|
(newValue) => {
|
|
853
1059
|
setActiveTabState(newValue);
|
|
854
1060
|
onValueChange?.(newValue);
|
|
855
1061
|
},
|
|
856
1062
|
[onValueChange]
|
|
857
1063
|
);
|
|
858
|
-
|
|
1064
|
+
React7__namespace.useEffect(() => {
|
|
859
1065
|
if (value !== void 0) {
|
|
860
1066
|
setActiveTabState(value);
|
|
861
1067
|
}
|
|
862
1068
|
}, [value]);
|
|
863
|
-
const registerTab =
|
|
1069
|
+
const registerTab = React7__namespace.useCallback(
|
|
864
1070
|
(tabValue, element) => {
|
|
865
1071
|
tabRefs.set(tabValue, element);
|
|
866
1072
|
},
|
|
@@ -885,10 +1091,10 @@ var Tabs = React9__namespace.forwardRef(({ defaultValue, value, onValueChange, c
|
|
|
885
1091
|
);
|
|
886
1092
|
});
|
|
887
1093
|
Tabs.displayName = "Tabs";
|
|
888
|
-
var TabsList =
|
|
1094
|
+
var TabsList = React7__namespace.forwardRef(({ className, children, ...props }, ref) => {
|
|
889
1095
|
const { activeTab, tabRefs, listRef } = useTabsContext();
|
|
890
|
-
const [indicatorStyle, setIndicatorStyle] =
|
|
891
|
-
|
|
1096
|
+
const [indicatorStyle, setIndicatorStyle] = React7__namespace.useState(null);
|
|
1097
|
+
React7__namespace.useEffect(() => {
|
|
892
1098
|
const updateIndicator = () => {
|
|
893
1099
|
if (!activeTab || !listRef.current) return;
|
|
894
1100
|
const activeElement = tabRefs.get(activeTab);
|
|
@@ -940,10 +1146,10 @@ var TabsList = React9__namespace.forwardRef(({ className, children, ...props },
|
|
|
940
1146
|
);
|
|
941
1147
|
});
|
|
942
1148
|
TabsList.displayName = TabsPrimitive__namespace.List.displayName;
|
|
943
|
-
var TabsTrigger =
|
|
1149
|
+
var TabsTrigger = React7__namespace.forwardRef(({ className, value, ...props }, ref) => {
|
|
944
1150
|
const { registerTab, activeTab } = useTabsContext();
|
|
945
|
-
const triggerRef =
|
|
946
|
-
|
|
1151
|
+
const triggerRef = React7__namespace.useRef(null);
|
|
1152
|
+
React7__namespace.useEffect(() => {
|
|
947
1153
|
registerTab(value, triggerRef.current);
|
|
948
1154
|
return () => registerTab(value, null);
|
|
949
1155
|
}, [value, registerTab]);
|
|
@@ -967,7 +1173,7 @@ var TabsTrigger = React9__namespace.forwardRef(({ className, value, ...props },
|
|
|
967
1173
|
);
|
|
968
1174
|
});
|
|
969
1175
|
TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
|
|
970
|
-
var TabsContent =
|
|
1176
|
+
var TabsContent = React7__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
971
1177
|
TabsPrimitive__namespace.Content,
|
|
972
1178
|
{
|
|
973
1179
|
ref,
|
|
@@ -979,7 +1185,7 @@ var TabsContent = React9__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
979
1185
|
}
|
|
980
1186
|
));
|
|
981
1187
|
TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
|
|
982
|
-
var Textarea =
|
|
1188
|
+
var Textarea = React7__namespace.forwardRef(
|
|
983
1189
|
({ className, ...props }, ref) => {
|
|
984
1190
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
985
1191
|
"textarea",
|
|
@@ -995,9 +1201,205 @@ var Textarea = React9__namespace.forwardRef(
|
|
|
995
1201
|
}
|
|
996
1202
|
);
|
|
997
1203
|
Textarea.displayName = "Textarea";
|
|
1204
|
+
var headingVariants = classVarianceAuthority.cva(
|
|
1205
|
+
"font-bricolage tracking-tight text-neutral-900 dark:text-neutral-50",
|
|
1206
|
+
{
|
|
1207
|
+
variants: {
|
|
1208
|
+
level: {
|
|
1209
|
+
1: "text-4xl sm:text-5xl lg:text-6xl",
|
|
1210
|
+
2: "text-3xl sm:text-4xl lg:text-5xl",
|
|
1211
|
+
3: "text-2xl sm:text-3xl lg:text-4xl",
|
|
1212
|
+
4: "text-xl sm:text-2xl lg:text-3xl",
|
|
1213
|
+
5: "text-lg sm:text-xl lg:text-2xl",
|
|
1214
|
+
6: "text-base sm:text-lg lg:text-xl"
|
|
1215
|
+
},
|
|
1216
|
+
weight: {
|
|
1217
|
+
regular: "font-normal",
|
|
1218
|
+
medium: "font-medium",
|
|
1219
|
+
semibold: "font-semibold",
|
|
1220
|
+
bold: "font-bold"
|
|
1221
|
+
},
|
|
1222
|
+
align: {
|
|
1223
|
+
left: "text-left",
|
|
1224
|
+
center: "text-center",
|
|
1225
|
+
right: "text-right"
|
|
1226
|
+
}
|
|
1227
|
+
},
|
|
1228
|
+
defaultVariants: {
|
|
1229
|
+
level: 1,
|
|
1230
|
+
weight: "bold",
|
|
1231
|
+
align: "left"
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
);
|
|
1235
|
+
var Heading = React7__namespace.forwardRef(
|
|
1236
|
+
({ className, level = 1, weight, align, as, children, ...props }, ref) => {
|
|
1237
|
+
const Tag = as || `h${level}`;
|
|
1238
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1239
|
+
Tag,
|
|
1240
|
+
{
|
|
1241
|
+
ref,
|
|
1242
|
+
className: chunkTMZLQK74_js.cn(headingVariants({ level, weight, align, className })),
|
|
1243
|
+
...props,
|
|
1244
|
+
children
|
|
1245
|
+
}
|
|
1246
|
+
);
|
|
1247
|
+
}
|
|
1248
|
+
);
|
|
1249
|
+
Heading.displayName = "Heading";
|
|
1250
|
+
var textVariants = classVarianceAuthority.cva("font-bricolage text-neutral-700 dark:text-neutral-300", {
|
|
1251
|
+
variants: {
|
|
1252
|
+
size: {
|
|
1253
|
+
xs: "text-xs leading-4",
|
|
1254
|
+
sm: "text-sm leading-5",
|
|
1255
|
+
base: "text-base leading-6",
|
|
1256
|
+
lg: "text-lg leading-7",
|
|
1257
|
+
xl: "text-xl leading-8",
|
|
1258
|
+
"2xl": "text-2xl leading-9",
|
|
1259
|
+
"3xl": "text-3xl leading-10",
|
|
1260
|
+
"4xl": "text-4xl leading-[2.75rem]"
|
|
1261
|
+
},
|
|
1262
|
+
weight: {
|
|
1263
|
+
regular: "font-normal",
|
|
1264
|
+
medium: "font-medium",
|
|
1265
|
+
semibold: "font-semibold"
|
|
1266
|
+
},
|
|
1267
|
+
align: {
|
|
1268
|
+
left: "text-left",
|
|
1269
|
+
center: "text-center",
|
|
1270
|
+
right: "text-right",
|
|
1271
|
+
justify: "text-justify"
|
|
1272
|
+
},
|
|
1273
|
+
color: {
|
|
1274
|
+
default: "text-neutral-700 dark:text-neutral-300",
|
|
1275
|
+
muted: "text-neutral-500 dark:text-neutral-400",
|
|
1276
|
+
accent: "text-blue-600 dark:text-blue-400",
|
|
1277
|
+
success: "text-emerald-600 dark:text-emerald-400",
|
|
1278
|
+
warning: "text-amber-600 dark:text-amber-400",
|
|
1279
|
+
error: "text-red-600 dark:text-red-400"
|
|
1280
|
+
}
|
|
1281
|
+
},
|
|
1282
|
+
defaultVariants: {
|
|
1283
|
+
size: "base",
|
|
1284
|
+
weight: "regular",
|
|
1285
|
+
align: "left",
|
|
1286
|
+
color: "default"
|
|
1287
|
+
}
|
|
1288
|
+
});
|
|
1289
|
+
var Text = React7__namespace.forwardRef(
|
|
1290
|
+
({ className, size, weight, align, color, asChild = false, as = "p", children, ...props }, ref) => {
|
|
1291
|
+
const Comp = asChild ? reactSlot.Slot : as;
|
|
1292
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1293
|
+
Comp,
|
|
1294
|
+
{
|
|
1295
|
+
ref,
|
|
1296
|
+
className: chunkTMZLQK74_js.cn(textVariants({ size, weight, align, color, className })),
|
|
1297
|
+
...props,
|
|
1298
|
+
children
|
|
1299
|
+
}
|
|
1300
|
+
);
|
|
1301
|
+
}
|
|
1302
|
+
);
|
|
1303
|
+
Text.displayName = "Text";
|
|
1304
|
+
var captionVariants = classVarianceAuthority.cva(
|
|
1305
|
+
"font-bricolage text-xs leading-4 text-neutral-500 dark:text-neutral-400",
|
|
1306
|
+
{
|
|
1307
|
+
variants: {
|
|
1308
|
+
weight: {
|
|
1309
|
+
regular: "font-normal",
|
|
1310
|
+
medium: "font-medium"
|
|
1311
|
+
},
|
|
1312
|
+
align: {
|
|
1313
|
+
left: "text-left",
|
|
1314
|
+
center: "text-center",
|
|
1315
|
+
right: "text-right"
|
|
1316
|
+
},
|
|
1317
|
+
color: {
|
|
1318
|
+
default: "text-neutral-500 dark:text-neutral-400",
|
|
1319
|
+
muted: "text-neutral-400 dark:text-neutral-500",
|
|
1320
|
+
accent: "text-blue-500 dark:text-blue-400",
|
|
1321
|
+
success: "text-emerald-500 dark:text-emerald-400",
|
|
1322
|
+
warning: "text-amber-500 dark:text-amber-400",
|
|
1323
|
+
error: "text-red-500 dark:text-red-400"
|
|
1324
|
+
}
|
|
1325
|
+
},
|
|
1326
|
+
defaultVariants: {
|
|
1327
|
+
weight: "regular",
|
|
1328
|
+
align: "left",
|
|
1329
|
+
color: "default"
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
);
|
|
1333
|
+
var Caption = React7__namespace.forwardRef(
|
|
1334
|
+
({ className, weight, align, color, children, ...props }, ref) => {
|
|
1335
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1336
|
+
"span",
|
|
1337
|
+
{
|
|
1338
|
+
ref,
|
|
1339
|
+
className: chunkTMZLQK74_js.cn(captionVariants({ weight, align, color, className })),
|
|
1340
|
+
...props,
|
|
1341
|
+
children
|
|
1342
|
+
}
|
|
1343
|
+
);
|
|
1344
|
+
}
|
|
1345
|
+
);
|
|
1346
|
+
Caption.displayName = "Caption";
|
|
1347
|
+
var codeVariants = classVarianceAuthority.cva("font-mono", {
|
|
1348
|
+
variants: {
|
|
1349
|
+
variant: {
|
|
1350
|
+
inline: "px-1.5 py-0.5 text-sm rounded-md bg-neutral-100 dark:bg-neutral-800 text-neutral-800 dark:text-neutral-200 border border-neutral-200 dark:border-neutral-700",
|
|
1351
|
+
block: "block p-4 text-sm rounded-lg bg-neutral-900 dark:bg-neutral-950 text-neutral-100 overflow-x-auto"
|
|
1352
|
+
},
|
|
1353
|
+
color: {
|
|
1354
|
+
default: "",
|
|
1355
|
+
accent: "bg-blue-50 dark:bg-blue-950/30 text-blue-700 dark:text-blue-300 border-blue-200 dark:border-blue-800",
|
|
1356
|
+
success: "bg-emerald-50 dark:bg-emerald-950/30 text-emerald-700 dark:text-emerald-300 border-emerald-200 dark:border-emerald-800",
|
|
1357
|
+
warning: "bg-amber-50 dark:bg-amber-950/30 text-amber-700 dark:text-amber-300 border-amber-200 dark:border-amber-800",
|
|
1358
|
+
error: "bg-red-50 dark:bg-red-950/30 text-red-700 dark:text-red-300 border-red-200 dark:border-red-800"
|
|
1359
|
+
}
|
|
1360
|
+
},
|
|
1361
|
+
compoundVariants: [
|
|
1362
|
+
{
|
|
1363
|
+
variant: "block",
|
|
1364
|
+
color: ["accent", "success", "warning", "error"],
|
|
1365
|
+
className: "border"
|
|
1366
|
+
}
|
|
1367
|
+
],
|
|
1368
|
+
defaultVariants: {
|
|
1369
|
+
variant: "inline",
|
|
1370
|
+
color: "default"
|
|
1371
|
+
}
|
|
1372
|
+
});
|
|
1373
|
+
var Code = React7__namespace.forwardRef(
|
|
1374
|
+
({ className, variant, color, children, ...props }, ref) => {
|
|
1375
|
+
const isBlock = variant === "block";
|
|
1376
|
+
if (isBlock) {
|
|
1377
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1378
|
+
"pre",
|
|
1379
|
+
{
|
|
1380
|
+
ref,
|
|
1381
|
+
className: chunkTMZLQK74_js.cn(codeVariants({ variant, color, className })),
|
|
1382
|
+
...props,
|
|
1383
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("code", { children })
|
|
1384
|
+
}
|
|
1385
|
+
);
|
|
1386
|
+
}
|
|
1387
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1388
|
+
"code",
|
|
1389
|
+
{
|
|
1390
|
+
ref,
|
|
1391
|
+
className: chunkTMZLQK74_js.cn(codeVariants({ variant, color, className })),
|
|
1392
|
+
...props,
|
|
1393
|
+
children
|
|
1394
|
+
}
|
|
1395
|
+
);
|
|
1396
|
+
}
|
|
1397
|
+
);
|
|
1398
|
+
Code.displayName = "Code";
|
|
998
1399
|
|
|
999
1400
|
exports.Badge = Badge;
|
|
1000
1401
|
exports.Button = Button;
|
|
1402
|
+
exports.Caption = Caption;
|
|
1001
1403
|
exports.Card = Card;
|
|
1002
1404
|
exports.CardContent = CardContent;
|
|
1003
1405
|
exports.CardDescription = CardDescription;
|
|
@@ -1005,6 +1407,7 @@ exports.CardFooter = CardFooter;
|
|
|
1005
1407
|
exports.CardHeader = CardHeader;
|
|
1006
1408
|
exports.CardTitle = CardTitle;
|
|
1007
1409
|
exports.Checkbox = Checkbox;
|
|
1410
|
+
exports.Code = Code;
|
|
1008
1411
|
exports.Dialog = Dialog;
|
|
1009
1412
|
exports.DialogClose = DialogClose;
|
|
1010
1413
|
exports.DialogContent = DialogContent;
|
|
@@ -1030,6 +1433,14 @@ exports.DropdownMenuSub = DropdownMenuSub;
|
|
|
1030
1433
|
exports.DropdownMenuSubContent = DropdownMenuSubContent;
|
|
1031
1434
|
exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger;
|
|
1032
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;
|
|
1442
|
+
exports.Heading = Heading;
|
|
1443
|
+
exports.Label = Label2;
|
|
1033
1444
|
exports.Popover = Popover;
|
|
1034
1445
|
exports.PopoverAnchor = PopoverAnchor;
|
|
1035
1446
|
exports.PopoverContent = PopoverContent;
|
|
@@ -1068,8 +1479,16 @@ exports.Tabs = Tabs;
|
|
|
1068
1479
|
exports.TabsContent = TabsContent;
|
|
1069
1480
|
exports.TabsList = TabsList;
|
|
1070
1481
|
exports.TabsTrigger = TabsTrigger;
|
|
1482
|
+
exports.Text = Text;
|
|
1071
1483
|
exports.Textarea = Textarea;
|
|
1072
1484
|
exports.badgeVariants = badgeVariants;
|
|
1073
1485
|
exports.buttonVariants = buttonVariants;
|
|
1074
|
-
|
|
1075
|
-
|
|
1486
|
+
exports.captionVariants = captionVariants;
|
|
1487
|
+
exports.codeVariants = codeVariants;
|
|
1488
|
+
exports.headingVariants = headingVariants;
|
|
1489
|
+
exports.labelVariants = labelVariants;
|
|
1490
|
+
exports.textVariants = textVariants;
|
|
1491
|
+
exports.useFormContext = useFormContext;
|
|
1492
|
+
exports.useFormFieldContext = useFormFieldContext;
|
|
1493
|
+
//# sourceMappingURL=chunk-S2A3IDOX.js.map
|
|
1494
|
+
//# sourceMappingURL=chunk-S2A3IDOX.js.map
|