@hai3/uikit 0.1.0-alpha.1 → 0.1.0-alpha.2
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.d.mts +64 -1
- package/dist/index.d.ts +64 -1
- package/dist/index.js +641 -69
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +601 -71
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var React18 = require('react');
|
|
4
4
|
var AvatarPrimitive = require('@radix-ui/react-avatar');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var tailwindMerge = require('tailwind-merge');
|
|
@@ -14,10 +14,18 @@ var lodash = require('lodash');
|
|
|
14
14
|
var SliderPrimitive = require('@radix-ui/react-slider');
|
|
15
15
|
var ProgressPrimitive = require('@radix-ui/react-progress');
|
|
16
16
|
var TooltipPrimitive = require('@radix-ui/react-tooltip');
|
|
17
|
+
var PopoverPrimitive = require('@radix-ui/react-popover');
|
|
18
|
+
var HoverCardPrimitive = require('@radix-ui/react-hover-card');
|
|
17
19
|
var NavigationMenuPrimitive = require('@radix-ui/react-navigation-menu');
|
|
18
20
|
var SheetPrimitive = require('@radix-ui/react-dialog');
|
|
21
|
+
var AccordionPrimitive = require('@radix-ui/react-accordion');
|
|
22
|
+
var useEmblaCarousel = require('embla-carousel-react');
|
|
23
|
+
var CollapsiblePrimitive = require('@radix-ui/react-collapsible');
|
|
19
24
|
var SelectPrimitive = require('@radix-ui/react-select');
|
|
20
25
|
var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
|
|
26
|
+
var ContextMenuPrimitive = require('@radix-ui/react-context-menu');
|
|
27
|
+
|
|
28
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
21
29
|
|
|
22
30
|
function _interopNamespace(e) {
|
|
23
31
|
if (e && e.__esModule) return e;
|
|
@@ -37,22 +45,28 @@ function _interopNamespace(e) {
|
|
|
37
45
|
return Object.freeze(n);
|
|
38
46
|
}
|
|
39
47
|
|
|
40
|
-
var
|
|
48
|
+
var React18__namespace = /*#__PURE__*/_interopNamespace(React18);
|
|
41
49
|
var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
|
|
42
50
|
var SwitchPrimitives__namespace = /*#__PURE__*/_interopNamespace(SwitchPrimitives);
|
|
43
51
|
var SliderPrimitive__namespace = /*#__PURE__*/_interopNamespace(SliderPrimitive);
|
|
44
52
|
var ProgressPrimitive__namespace = /*#__PURE__*/_interopNamespace(ProgressPrimitive);
|
|
45
53
|
var TooltipPrimitive__namespace = /*#__PURE__*/_interopNamespace(TooltipPrimitive);
|
|
54
|
+
var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitive);
|
|
55
|
+
var HoverCardPrimitive__namespace = /*#__PURE__*/_interopNamespace(HoverCardPrimitive);
|
|
46
56
|
var NavigationMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(NavigationMenuPrimitive);
|
|
47
57
|
var SheetPrimitive__namespace = /*#__PURE__*/_interopNamespace(SheetPrimitive);
|
|
58
|
+
var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
|
|
59
|
+
var useEmblaCarousel__default = /*#__PURE__*/_interopDefault(useEmblaCarousel);
|
|
60
|
+
var CollapsiblePrimitive__namespace = /*#__PURE__*/_interopNamespace(CollapsiblePrimitive);
|
|
48
61
|
var SelectPrimitive__namespace = /*#__PURE__*/_interopNamespace(SelectPrimitive);
|
|
49
62
|
var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive);
|
|
63
|
+
var ContextMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(ContextMenuPrimitive);
|
|
50
64
|
|
|
51
65
|
// src/base/avatar.tsx
|
|
52
66
|
function cn(...inputs) {
|
|
53
67
|
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
54
68
|
}
|
|
55
|
-
var Avatar =
|
|
69
|
+
var Avatar = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
56
70
|
AvatarPrimitive__namespace.Root,
|
|
57
71
|
{
|
|
58
72
|
ref,
|
|
@@ -64,7 +78,7 @@ var Avatar = React16__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
64
78
|
}
|
|
65
79
|
));
|
|
66
80
|
Avatar.displayName = AvatarPrimitive__namespace.Root.displayName;
|
|
67
|
-
var AvatarImage =
|
|
81
|
+
var AvatarImage = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
68
82
|
AvatarPrimitive__namespace.Image,
|
|
69
83
|
{
|
|
70
84
|
ref,
|
|
@@ -73,7 +87,7 @@ var AvatarImage = React16__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
73
87
|
}
|
|
74
88
|
));
|
|
75
89
|
AvatarImage.displayName = AvatarPrimitive__namespace.Image.displayName;
|
|
76
|
-
var AvatarFallback =
|
|
90
|
+
var AvatarFallback = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
77
91
|
AvatarPrimitive__namespace.Fallback,
|
|
78
92
|
{
|
|
79
93
|
ref,
|
|
@@ -110,7 +124,7 @@ var buttonVariants = classVarianceAuthority.cva(
|
|
|
110
124
|
}
|
|
111
125
|
}
|
|
112
126
|
);
|
|
113
|
-
var Button =
|
|
127
|
+
var Button = React18__namespace.forwardRef(
|
|
114
128
|
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
115
129
|
const Comp = asChild ? reactSlot.Slot : "button";
|
|
116
130
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -155,7 +169,7 @@ function Badge({
|
|
|
155
169
|
}
|
|
156
170
|
);
|
|
157
171
|
}
|
|
158
|
-
var Input =
|
|
172
|
+
var Input = React18__namespace.forwardRef(
|
|
159
173
|
({ className, type, ...props }, ref) => {
|
|
160
174
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
161
175
|
"input",
|
|
@@ -172,10 +186,10 @@ var Input = React16__namespace.forwardRef(
|
|
|
172
186
|
}
|
|
173
187
|
);
|
|
174
188
|
Input.displayName = "Input";
|
|
175
|
-
var Textarea =
|
|
189
|
+
var Textarea = React18__namespace.forwardRef(
|
|
176
190
|
({ className, autoResize = false, minHeight = 50, maxHeight = 350, size = "default", onChange, ...props }, ref) => {
|
|
177
|
-
const internalRef =
|
|
178
|
-
|
|
191
|
+
const internalRef = React18__namespace.useRef(null);
|
|
192
|
+
React18__namespace.useImperativeHandle(ref, () => internalRef.current);
|
|
179
193
|
const sizeClasses = {
|
|
180
194
|
sm: "min-h-11 h-11",
|
|
181
195
|
// 44px / 2.75rem - exact height
|
|
@@ -192,7 +206,7 @@ var Textarea = React16__namespace.forwardRef(
|
|
|
192
206
|
lg: "py-2"
|
|
193
207
|
// 8px top + 8px bottom (default)
|
|
194
208
|
};
|
|
195
|
-
const handleResize =
|
|
209
|
+
const handleResize = React18__namespace.useCallback(() => {
|
|
196
210
|
if (autoResize && size !== "sm" && internalRef.current) {
|
|
197
211
|
const textarea = internalRef.current;
|
|
198
212
|
textarea.style.height = "auto";
|
|
@@ -200,10 +214,10 @@ var Textarea = React16__namespace.forwardRef(
|
|
|
200
214
|
textarea.style.height = `${Math.min(Math.max(scrollHeight, minHeight), maxHeight)}px`;
|
|
201
215
|
}
|
|
202
216
|
}, [autoResize, size, minHeight, maxHeight]);
|
|
203
|
-
|
|
217
|
+
React18__namespace.useEffect(() => {
|
|
204
218
|
handleResize();
|
|
205
219
|
}, [handleResize, props.value]);
|
|
206
|
-
const handleChange =
|
|
220
|
+
const handleChange = React18__namespace.useCallback(
|
|
207
221
|
(e) => {
|
|
208
222
|
handleResize();
|
|
209
223
|
onChange?.(e);
|
|
@@ -227,7 +241,7 @@ var Textarea = React16__namespace.forwardRef(
|
|
|
227
241
|
}
|
|
228
242
|
);
|
|
229
243
|
Textarea.displayName = "Textarea";
|
|
230
|
-
var Switch =
|
|
244
|
+
var Switch = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
231
245
|
SwitchPrimitives__namespace.Root,
|
|
232
246
|
{
|
|
233
247
|
className: cn(
|
|
@@ -266,7 +280,7 @@ function Skeleton({
|
|
|
266
280
|
}
|
|
267
281
|
);
|
|
268
282
|
}
|
|
269
|
-
var Spinner =
|
|
283
|
+
var Spinner = React18__namespace.forwardRef(
|
|
270
284
|
({ className, icon: Icon2 = lucideReact.Loader2, size = "size-4", ...props }, ref) => {
|
|
271
285
|
const textColorClasses = className?.match(/\btext-\S+/g)?.join(" ") || "";
|
|
272
286
|
const wrapperClasses = lodash.trim(className?.replace(/\btext-\S+/g, "") || "");
|
|
@@ -282,7 +296,7 @@ var Spinner = React16__namespace.forwardRef(
|
|
|
282
296
|
}
|
|
283
297
|
);
|
|
284
298
|
Spinner.displayName = "Spinner";
|
|
285
|
-
var Slider =
|
|
299
|
+
var Slider = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
286
300
|
SliderPrimitive__namespace.Root,
|
|
287
301
|
{
|
|
288
302
|
ref,
|
|
@@ -294,7 +308,7 @@ var Slider = React16__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
294
308
|
}
|
|
295
309
|
));
|
|
296
310
|
Slider.displayName = SliderPrimitive__namespace.Root.displayName;
|
|
297
|
-
var SliderTrack =
|
|
311
|
+
var SliderTrack = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
298
312
|
SliderPrimitive__namespace.Track,
|
|
299
313
|
{
|
|
300
314
|
ref,
|
|
@@ -306,7 +320,7 @@ var SliderTrack = React16__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
306
320
|
}
|
|
307
321
|
));
|
|
308
322
|
SliderTrack.displayName = SliderPrimitive__namespace.Track.displayName;
|
|
309
|
-
var SliderRange =
|
|
323
|
+
var SliderRange = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
310
324
|
SliderPrimitive__namespace.Range,
|
|
311
325
|
{
|
|
312
326
|
ref,
|
|
@@ -315,7 +329,7 @@ var SliderRange = React16__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
315
329
|
}
|
|
316
330
|
));
|
|
317
331
|
SliderRange.displayName = SliderPrimitive__namespace.Range.displayName;
|
|
318
|
-
var SliderThumb =
|
|
332
|
+
var SliderThumb = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
319
333
|
SliderPrimitive__namespace.Thumb,
|
|
320
334
|
{
|
|
321
335
|
ref,
|
|
@@ -327,7 +341,7 @@ var SliderThumb = React16__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
327
341
|
}
|
|
328
342
|
));
|
|
329
343
|
SliderThumb.displayName = SliderPrimitive__namespace.Thumb.displayName;
|
|
330
|
-
var Progress =
|
|
344
|
+
var Progress = React18__namespace.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
331
345
|
ProgressPrimitive__namespace.Root,
|
|
332
346
|
{
|
|
333
347
|
ref,
|
|
@@ -361,9 +375,9 @@ var Tooltip = ({
|
|
|
361
375
|
...props
|
|
362
376
|
}) => /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Root, { ...props }) });
|
|
363
377
|
Tooltip.displayName = TooltipPrimitive__namespace.Root.displayName;
|
|
364
|
-
var TooltipTrigger =
|
|
378
|
+
var TooltipTrigger = React18__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Trigger, { ref, ...props }));
|
|
365
379
|
TooltipTrigger.displayName = TooltipPrimitive__namespace.Trigger.displayName;
|
|
366
|
-
var TooltipContent =
|
|
380
|
+
var TooltipContent = React18__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
367
381
|
TooltipPrimitive__namespace.Content,
|
|
368
382
|
{
|
|
369
383
|
ref,
|
|
@@ -376,7 +390,68 @@ var TooltipContent = React16__namespace.forwardRef(({ className, sideOffset = 4,
|
|
|
376
390
|
}
|
|
377
391
|
) }));
|
|
378
392
|
TooltipContent.displayName = TooltipPrimitive__namespace.Content.displayName;
|
|
379
|
-
var
|
|
393
|
+
var Popover = PopoverPrimitive__namespace.Root;
|
|
394
|
+
Popover.displayName = "Popover";
|
|
395
|
+
var PopoverTrigger = React18__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
396
|
+
PopoverPrimitive__namespace.Trigger,
|
|
397
|
+
{
|
|
398
|
+
ref,
|
|
399
|
+
"data-slot": "popover-trigger",
|
|
400
|
+
...props
|
|
401
|
+
}
|
|
402
|
+
));
|
|
403
|
+
PopoverTrigger.displayName = "PopoverTrigger";
|
|
404
|
+
var PopoverContent = React18__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
405
|
+
PopoverPrimitive__namespace.Content,
|
|
406
|
+
{
|
|
407
|
+
ref,
|
|
408
|
+
"data-slot": "popover-content",
|
|
409
|
+
align,
|
|
410
|
+
sideOffset,
|
|
411
|
+
className: cn(
|
|
412
|
+
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
413
|
+
className
|
|
414
|
+
),
|
|
415
|
+
...props
|
|
416
|
+
}
|
|
417
|
+
) }));
|
|
418
|
+
PopoverContent.displayName = "PopoverContent";
|
|
419
|
+
var PopoverAnchor = React18__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
420
|
+
PopoverPrimitive__namespace.Anchor,
|
|
421
|
+
{
|
|
422
|
+
ref,
|
|
423
|
+
"data-slot": "popover-anchor",
|
|
424
|
+
...props
|
|
425
|
+
}
|
|
426
|
+
));
|
|
427
|
+
PopoverAnchor.displayName = "PopoverAnchor";
|
|
428
|
+
var HoverCard = HoverCardPrimitive__namespace.Root;
|
|
429
|
+
HoverCard.displayName = "HoverCard";
|
|
430
|
+
var HoverCardTrigger = React18__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
431
|
+
HoverCardPrimitive__namespace.Trigger,
|
|
432
|
+
{
|
|
433
|
+
ref,
|
|
434
|
+
"data-slot": "hover-card-trigger",
|
|
435
|
+
...props
|
|
436
|
+
}
|
|
437
|
+
));
|
|
438
|
+
HoverCardTrigger.displayName = "HoverCardTrigger";
|
|
439
|
+
var HoverCardContent = React18__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(HoverCardPrimitive__namespace.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
440
|
+
HoverCardPrimitive__namespace.Content,
|
|
441
|
+
{
|
|
442
|
+
ref,
|
|
443
|
+
"data-slot": "hover-card-content",
|
|
444
|
+
align,
|
|
445
|
+
sideOffset,
|
|
446
|
+
className: cn(
|
|
447
|
+
"z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
448
|
+
className
|
|
449
|
+
),
|
|
450
|
+
...props
|
|
451
|
+
}
|
|
452
|
+
) }));
|
|
453
|
+
HoverCardContent.displayName = "HoverCardContent";
|
|
454
|
+
var Card = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
380
455
|
"div",
|
|
381
456
|
{
|
|
382
457
|
ref,
|
|
@@ -388,7 +463,7 @@ var Card = React16__namespace.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
388
463
|
}
|
|
389
464
|
));
|
|
390
465
|
Card.displayName = "Card";
|
|
391
|
-
var CardHeader =
|
|
466
|
+
var CardHeader = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
392
467
|
"div",
|
|
393
468
|
{
|
|
394
469
|
ref,
|
|
@@ -397,7 +472,7 @@ var CardHeader = React16__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
397
472
|
}
|
|
398
473
|
));
|
|
399
474
|
CardHeader.displayName = "CardHeader";
|
|
400
|
-
var CardTitle =
|
|
475
|
+
var CardTitle = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
401
476
|
"div",
|
|
402
477
|
{
|
|
403
478
|
ref,
|
|
@@ -406,7 +481,7 @@ var CardTitle = React16__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
406
481
|
}
|
|
407
482
|
));
|
|
408
483
|
CardTitle.displayName = "CardTitle";
|
|
409
|
-
var CardDescription =
|
|
484
|
+
var CardDescription = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
410
485
|
"div",
|
|
411
486
|
{
|
|
412
487
|
ref,
|
|
@@ -415,9 +490,9 @@ var CardDescription = React16__namespace.forwardRef(({ className, ...props }, re
|
|
|
415
490
|
}
|
|
416
491
|
));
|
|
417
492
|
CardDescription.displayName = "CardDescription";
|
|
418
|
-
var CardContent =
|
|
493
|
+
var CardContent = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
419
494
|
CardContent.displayName = "CardContent";
|
|
420
|
-
var CardFooter =
|
|
495
|
+
var CardFooter = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
421
496
|
"div",
|
|
422
497
|
{
|
|
423
498
|
ref,
|
|
@@ -426,7 +501,7 @@ var CardFooter = React16__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
426
501
|
}
|
|
427
502
|
));
|
|
428
503
|
CardFooter.displayName = "CardFooter";
|
|
429
|
-
var Header =
|
|
504
|
+
var Header = React18__namespace.default.forwardRef(
|
|
430
505
|
({ children, className }, ref) => {
|
|
431
506
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
432
507
|
"header",
|
|
@@ -442,7 +517,7 @@ var Header = React16__namespace.default.forwardRef(
|
|
|
442
517
|
}
|
|
443
518
|
);
|
|
444
519
|
Header.displayName = "Header";
|
|
445
|
-
var NavigationMenu =
|
|
520
|
+
var NavigationMenu = React18__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
446
521
|
NavigationMenuPrimitive__namespace.Root,
|
|
447
522
|
{
|
|
448
523
|
ref,
|
|
@@ -458,7 +533,7 @@ var NavigationMenu = React16__namespace.forwardRef(({ className, children, ...pr
|
|
|
458
533
|
}
|
|
459
534
|
));
|
|
460
535
|
NavigationMenu.displayName = NavigationMenuPrimitive__namespace.Root.displayName;
|
|
461
|
-
var NavigationMenuList =
|
|
536
|
+
var NavigationMenuList = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
462
537
|
NavigationMenuPrimitive__namespace.List,
|
|
463
538
|
{
|
|
464
539
|
ref,
|
|
@@ -474,7 +549,7 @@ var NavigationMenuItem = NavigationMenuPrimitive__namespace.Item;
|
|
|
474
549
|
var navigationMenuTriggerStyle = classVarianceAuthority.cva(
|
|
475
550
|
"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"
|
|
476
551
|
);
|
|
477
|
-
var NavigationMenuTrigger =
|
|
552
|
+
var NavigationMenuTrigger = React18__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
478
553
|
NavigationMenuPrimitive__namespace.Trigger,
|
|
479
554
|
{
|
|
480
555
|
ref,
|
|
@@ -494,7 +569,7 @@ var NavigationMenuTrigger = React16__namespace.forwardRef(({ className, children
|
|
|
494
569
|
}
|
|
495
570
|
));
|
|
496
571
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive__namespace.Trigger.displayName;
|
|
497
|
-
var NavigationMenuContent =
|
|
572
|
+
var NavigationMenuContent = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
498
573
|
NavigationMenuPrimitive__namespace.Content,
|
|
499
574
|
{
|
|
500
575
|
ref,
|
|
@@ -507,7 +582,7 @@ var NavigationMenuContent = React16__namespace.forwardRef(({ className, ...props
|
|
|
507
582
|
));
|
|
508
583
|
NavigationMenuContent.displayName = NavigationMenuPrimitive__namespace.Content.displayName;
|
|
509
584
|
var NavigationMenuLink = NavigationMenuPrimitive__namespace.Link;
|
|
510
|
-
var NavigationMenuViewport =
|
|
585
|
+
var NavigationMenuViewport = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
511
586
|
NavigationMenuPrimitive__namespace.Viewport,
|
|
512
587
|
{
|
|
513
588
|
className: cn(
|
|
@@ -519,7 +594,7 @@ var NavigationMenuViewport = React16__namespace.forwardRef(({ className, ...prop
|
|
|
519
594
|
}
|
|
520
595
|
) }));
|
|
521
596
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive__namespace.Viewport.displayName;
|
|
522
|
-
var NavigationMenuIndicator =
|
|
597
|
+
var NavigationMenuIndicator = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
523
598
|
NavigationMenuPrimitive__namespace.Indicator,
|
|
524
599
|
{
|
|
525
600
|
ref,
|
|
@@ -536,7 +611,7 @@ var Sheet = SheetPrimitive__namespace.Root;
|
|
|
536
611
|
var SheetTrigger = SheetPrimitive__namespace.Trigger;
|
|
537
612
|
var SheetClose = SheetPrimitive__namespace.Close;
|
|
538
613
|
var SheetPortal = SheetPrimitive__namespace.Portal;
|
|
539
|
-
var SheetOverlay =
|
|
614
|
+
var SheetOverlay = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
540
615
|
SheetPrimitive__namespace.Overlay,
|
|
541
616
|
{
|
|
542
617
|
className: cn(
|
|
@@ -564,7 +639,7 @@ var sheetVariants = classVarianceAuthority.cva(
|
|
|
564
639
|
}
|
|
565
640
|
}
|
|
566
641
|
);
|
|
567
|
-
var SheetContent =
|
|
642
|
+
var SheetContent = React18__namespace.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
|
|
568
643
|
/* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, {}),
|
|
569
644
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
570
645
|
SheetPrimitive__namespace.Content,
|
|
@@ -611,7 +686,7 @@ var SheetFooter = ({
|
|
|
611
686
|
}
|
|
612
687
|
);
|
|
613
688
|
SheetFooter.displayName = "SheetFooter";
|
|
614
|
-
var SheetTitle =
|
|
689
|
+
var SheetTitle = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
615
690
|
SheetPrimitive__namespace.Title,
|
|
616
691
|
{
|
|
617
692
|
ref,
|
|
@@ -620,7 +695,7 @@ var SheetTitle = React16__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
620
695
|
}
|
|
621
696
|
));
|
|
622
697
|
SheetTitle.displayName = SheetPrimitive__namespace.Title.displayName;
|
|
623
|
-
var SheetDescription =
|
|
698
|
+
var SheetDescription = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
624
699
|
SheetPrimitive__namespace.Description,
|
|
625
700
|
{
|
|
626
701
|
ref,
|
|
@@ -633,7 +708,7 @@ var Dialog = SheetPrimitive__namespace.Root;
|
|
|
633
708
|
var DialogTrigger = SheetPrimitive__namespace.Trigger;
|
|
634
709
|
var DialogPortal = SheetPrimitive__namespace.Portal;
|
|
635
710
|
var DialogClose = SheetPrimitive__namespace.Close;
|
|
636
|
-
var DialogOverlay =
|
|
711
|
+
var DialogOverlay = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
637
712
|
SheetPrimitive__namespace.Overlay,
|
|
638
713
|
{
|
|
639
714
|
ref,
|
|
@@ -645,7 +720,7 @@ var DialogOverlay = React16__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
645
720
|
}
|
|
646
721
|
));
|
|
647
722
|
DialogOverlay.displayName = SheetPrimitive__namespace.Overlay.displayName;
|
|
648
|
-
var DialogContent =
|
|
723
|
+
var DialogContent = React18__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { children: [
|
|
649
724
|
/* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
|
|
650
725
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
651
726
|
SheetPrimitive__namespace.Content,
|
|
@@ -695,7 +770,7 @@ var DialogFooter = ({
|
|
|
695
770
|
}
|
|
696
771
|
);
|
|
697
772
|
DialogFooter.displayName = "DialogFooter";
|
|
698
|
-
var DialogTitle =
|
|
773
|
+
var DialogTitle = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
699
774
|
SheetPrimitive__namespace.Title,
|
|
700
775
|
{
|
|
701
776
|
ref,
|
|
@@ -707,7 +782,7 @@ var DialogTitle = React16__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
707
782
|
}
|
|
708
783
|
));
|
|
709
784
|
DialogTitle.displayName = SheetPrimitive__namespace.Title.displayName;
|
|
710
|
-
var DialogDescription =
|
|
785
|
+
var DialogDescription = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
711
786
|
SheetPrimitive__namespace.Description,
|
|
712
787
|
{
|
|
713
788
|
ref,
|
|
@@ -716,10 +791,271 @@ var DialogDescription = React16__namespace.forwardRef(({ className, ...props },
|
|
|
716
791
|
}
|
|
717
792
|
));
|
|
718
793
|
DialogDescription.displayName = SheetPrimitive__namespace.Description.displayName;
|
|
794
|
+
var Accordion = React18__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
795
|
+
AccordionPrimitive__namespace.Root,
|
|
796
|
+
{
|
|
797
|
+
ref,
|
|
798
|
+
"data-slot": "accordion",
|
|
799
|
+
...props
|
|
800
|
+
}
|
|
801
|
+
));
|
|
802
|
+
Accordion.displayName = "Accordion";
|
|
803
|
+
var AccordionItem = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
804
|
+
AccordionPrimitive__namespace.Item,
|
|
805
|
+
{
|
|
806
|
+
ref,
|
|
807
|
+
"data-slot": "accordion-item",
|
|
808
|
+
className: cn("border-b last:border-b-0", className),
|
|
809
|
+
...props
|
|
810
|
+
}
|
|
811
|
+
));
|
|
812
|
+
AccordionItem.displayName = "AccordionItem";
|
|
813
|
+
var AccordionTrigger = React18__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
814
|
+
AccordionPrimitive__namespace.Trigger,
|
|
815
|
+
{
|
|
816
|
+
ref,
|
|
817
|
+
"data-slot": "accordion-trigger",
|
|
818
|
+
className: cn(
|
|
819
|
+
"flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] focus-visible:border-ring focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
|
|
820
|
+
className
|
|
821
|
+
),
|
|
822
|
+
...props,
|
|
823
|
+
children: [
|
|
824
|
+
children,
|
|
825
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
|
|
826
|
+
]
|
|
827
|
+
}
|
|
828
|
+
) }));
|
|
829
|
+
AccordionTrigger.displayName = "AccordionTrigger";
|
|
830
|
+
var AccordionContent = React18__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
831
|
+
AccordionPrimitive__namespace.Content,
|
|
832
|
+
{
|
|
833
|
+
ref,
|
|
834
|
+
"data-slot": "accordion-content",
|
|
835
|
+
className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
836
|
+
...props,
|
|
837
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("pt-0 pb-4", className), children })
|
|
838
|
+
}
|
|
839
|
+
));
|
|
840
|
+
AccordionContent.displayName = "AccordionContent";
|
|
841
|
+
var CarouselContext = React18__namespace.createContext(null);
|
|
842
|
+
function useCarousel() {
|
|
843
|
+
const context = React18__namespace.useContext(CarouselContext);
|
|
844
|
+
if (!context) {
|
|
845
|
+
throw new Error("useCarousel must be used within a <Carousel />");
|
|
846
|
+
}
|
|
847
|
+
return context;
|
|
848
|
+
}
|
|
849
|
+
var Carousel = React18__namespace.forwardRef(
|
|
850
|
+
({
|
|
851
|
+
orientation = "horizontal",
|
|
852
|
+
opts,
|
|
853
|
+
setApi,
|
|
854
|
+
plugins,
|
|
855
|
+
className,
|
|
856
|
+
children,
|
|
857
|
+
...props
|
|
858
|
+
}, ref) => {
|
|
859
|
+
const [carouselRef, api] = useEmblaCarousel__default.default(
|
|
860
|
+
{
|
|
861
|
+
...opts,
|
|
862
|
+
axis: orientation === "horizontal" ? "x" : "y"
|
|
863
|
+
},
|
|
864
|
+
plugins
|
|
865
|
+
);
|
|
866
|
+
const [canScrollPrev, setCanScrollPrev] = React18__namespace.useState(false);
|
|
867
|
+
const [canScrollNext, setCanScrollNext] = React18__namespace.useState(false);
|
|
868
|
+
const onSelect = React18__namespace.useCallback((api2) => {
|
|
869
|
+
if (!api2) return;
|
|
870
|
+
setCanScrollPrev(api2.canScrollPrev());
|
|
871
|
+
setCanScrollNext(api2.canScrollNext());
|
|
872
|
+
}, []);
|
|
873
|
+
const scrollPrev = React18__namespace.useCallback(() => {
|
|
874
|
+
api?.scrollPrev();
|
|
875
|
+
}, [api]);
|
|
876
|
+
const scrollNext = React18__namespace.useCallback(() => {
|
|
877
|
+
api?.scrollNext();
|
|
878
|
+
}, [api]);
|
|
879
|
+
const handleKeyDown = React18__namespace.useCallback(
|
|
880
|
+
(event) => {
|
|
881
|
+
if (event.key === "ArrowLeft") {
|
|
882
|
+
event.preventDefault();
|
|
883
|
+
scrollPrev();
|
|
884
|
+
} else if (event.key === "ArrowRight") {
|
|
885
|
+
event.preventDefault();
|
|
886
|
+
scrollNext();
|
|
887
|
+
}
|
|
888
|
+
},
|
|
889
|
+
[scrollPrev, scrollNext]
|
|
890
|
+
);
|
|
891
|
+
React18__namespace.useEffect(() => {
|
|
892
|
+
if (!api || !setApi) return;
|
|
893
|
+
setApi(api);
|
|
894
|
+
}, [api, setApi]);
|
|
895
|
+
React18__namespace.useEffect(() => {
|
|
896
|
+
if (!api) return;
|
|
897
|
+
onSelect(api);
|
|
898
|
+
api.on("reInit", onSelect);
|
|
899
|
+
api.on("select", onSelect);
|
|
900
|
+
return () => {
|
|
901
|
+
api?.off("select", onSelect);
|
|
902
|
+
};
|
|
903
|
+
}, [api, onSelect]);
|
|
904
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
905
|
+
CarouselContext.Provider,
|
|
906
|
+
{
|
|
907
|
+
value: {
|
|
908
|
+
carouselRef,
|
|
909
|
+
api,
|
|
910
|
+
opts,
|
|
911
|
+
orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
|
|
912
|
+
scrollPrev,
|
|
913
|
+
scrollNext,
|
|
914
|
+
canScrollPrev,
|
|
915
|
+
canScrollNext
|
|
916
|
+
},
|
|
917
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
918
|
+
"div",
|
|
919
|
+
{
|
|
920
|
+
ref,
|
|
921
|
+
onKeyDownCapture: handleKeyDown,
|
|
922
|
+
className: cn("relative", className),
|
|
923
|
+
role: "region",
|
|
924
|
+
"aria-roledescription": "carousel",
|
|
925
|
+
"data-slot": "carousel",
|
|
926
|
+
...props,
|
|
927
|
+
children
|
|
928
|
+
}
|
|
929
|
+
)
|
|
930
|
+
}
|
|
931
|
+
);
|
|
932
|
+
}
|
|
933
|
+
);
|
|
934
|
+
Carousel.displayName = "Carousel";
|
|
935
|
+
var CarouselContent = React18__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
936
|
+
const { carouselRef, orientation } = useCarousel();
|
|
937
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
938
|
+
"div",
|
|
939
|
+
{
|
|
940
|
+
ref: carouselRef,
|
|
941
|
+
className: "overflow-hidden",
|
|
942
|
+
"data-slot": "carousel-content",
|
|
943
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
944
|
+
"div",
|
|
945
|
+
{
|
|
946
|
+
ref,
|
|
947
|
+
className: cn(
|
|
948
|
+
"flex",
|
|
949
|
+
orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
|
|
950
|
+
className
|
|
951
|
+
),
|
|
952
|
+
...props
|
|
953
|
+
}
|
|
954
|
+
)
|
|
955
|
+
}
|
|
956
|
+
);
|
|
957
|
+
});
|
|
958
|
+
CarouselContent.displayName = "CarouselContent";
|
|
959
|
+
var CarouselItem = React18__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
960
|
+
const { orientation } = useCarousel();
|
|
961
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
962
|
+
"div",
|
|
963
|
+
{
|
|
964
|
+
ref,
|
|
965
|
+
role: "group",
|
|
966
|
+
"aria-roledescription": "slide",
|
|
967
|
+
"data-slot": "carousel-item",
|
|
968
|
+
className: cn(
|
|
969
|
+
"min-w-0 shrink-0 grow-0 basis-full",
|
|
970
|
+
orientation === "horizontal" ? "pl-4" : "pt-4",
|
|
971
|
+
className
|
|
972
|
+
),
|
|
973
|
+
...props
|
|
974
|
+
}
|
|
975
|
+
);
|
|
976
|
+
});
|
|
977
|
+
CarouselItem.displayName = "CarouselItem";
|
|
978
|
+
var CarouselPrevious = React18__namespace.forwardRef(({ className, variant = uikitContracts.ButtonVariant.Outline, size = uikitContracts.ButtonSize.Icon, ...props }, ref) => {
|
|
979
|
+
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
980
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
981
|
+
Button,
|
|
982
|
+
{
|
|
983
|
+
ref,
|
|
984
|
+
"data-slot": "carousel-previous",
|
|
985
|
+
variant,
|
|
986
|
+
size,
|
|
987
|
+
className: cn(
|
|
988
|
+
"absolute h-8 w-8 rounded-full",
|
|
989
|
+
orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
990
|
+
className
|
|
991
|
+
),
|
|
992
|
+
disabled: !canScrollPrev,
|
|
993
|
+
onClick: scrollPrev,
|
|
994
|
+
...props,
|
|
995
|
+
children: [
|
|
996
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, { className: "h-4 w-4" }),
|
|
997
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Previous slide" })
|
|
998
|
+
]
|
|
999
|
+
}
|
|
1000
|
+
);
|
|
1001
|
+
});
|
|
1002
|
+
CarouselPrevious.displayName = "CarouselPrevious";
|
|
1003
|
+
var CarouselNext = React18__namespace.forwardRef(({ className, variant = uikitContracts.ButtonVariant.Outline, size = uikitContracts.ButtonSize.Icon, ...props }, ref) => {
|
|
1004
|
+
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
1005
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1006
|
+
Button,
|
|
1007
|
+
{
|
|
1008
|
+
ref,
|
|
1009
|
+
"data-slot": "carousel-next",
|
|
1010
|
+
variant,
|
|
1011
|
+
size,
|
|
1012
|
+
className: cn(
|
|
1013
|
+
"absolute h-8 w-8 rounded-full",
|
|
1014
|
+
orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
1015
|
+
className
|
|
1016
|
+
),
|
|
1017
|
+
disabled: !canScrollNext,
|
|
1018
|
+
onClick: scrollNext,
|
|
1019
|
+
...props,
|
|
1020
|
+
children: [
|
|
1021
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRight, { className: "h-4 w-4" }),
|
|
1022
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Next slide" })
|
|
1023
|
+
]
|
|
1024
|
+
}
|
|
1025
|
+
);
|
|
1026
|
+
});
|
|
1027
|
+
CarouselNext.displayName = "CarouselNext";
|
|
1028
|
+
var Collapsible = React18__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1029
|
+
CollapsiblePrimitive__namespace.Root,
|
|
1030
|
+
{
|
|
1031
|
+
ref,
|
|
1032
|
+
"data-slot": "collapsible",
|
|
1033
|
+
...props
|
|
1034
|
+
}
|
|
1035
|
+
));
|
|
1036
|
+
Collapsible.displayName = "Collapsible";
|
|
1037
|
+
var CollapsibleTrigger2 = React18__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1038
|
+
CollapsiblePrimitive__namespace.CollapsibleTrigger,
|
|
1039
|
+
{
|
|
1040
|
+
ref,
|
|
1041
|
+
"data-slot": "collapsible-trigger",
|
|
1042
|
+
...props
|
|
1043
|
+
}
|
|
1044
|
+
));
|
|
1045
|
+
CollapsibleTrigger2.displayName = "CollapsibleTrigger";
|
|
1046
|
+
var CollapsibleContent2 = React18__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1047
|
+
CollapsiblePrimitive__namespace.CollapsibleContent,
|
|
1048
|
+
{
|
|
1049
|
+
ref,
|
|
1050
|
+
"data-slot": "collapsible-content",
|
|
1051
|
+
...props
|
|
1052
|
+
}
|
|
1053
|
+
));
|
|
1054
|
+
CollapsibleContent2.displayName = "CollapsibleContent";
|
|
719
1055
|
var Select = SelectPrimitive__namespace.Root;
|
|
720
1056
|
var SelectGroup = SelectPrimitive__namespace.Group;
|
|
721
1057
|
var SelectValue = SelectPrimitive__namespace.Value;
|
|
722
|
-
var SelectTrigger =
|
|
1058
|
+
var SelectTrigger = React18__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
723
1059
|
SelectPrimitive__namespace.Trigger,
|
|
724
1060
|
{
|
|
725
1061
|
ref,
|
|
@@ -736,7 +1072,7 @@ var SelectTrigger = React16__namespace.forwardRef(({ className, children, ...pro
|
|
|
736
1072
|
}
|
|
737
1073
|
));
|
|
738
1074
|
SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
|
|
739
|
-
var SelectScrollUpButton =
|
|
1075
|
+
var SelectScrollUpButton = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
740
1076
|
SelectPrimitive__namespace.ScrollUpButton,
|
|
741
1077
|
{
|
|
742
1078
|
ref,
|
|
@@ -749,7 +1085,7 @@ var SelectScrollUpButton = React16__namespace.forwardRef(({ className, ...props
|
|
|
749
1085
|
}
|
|
750
1086
|
));
|
|
751
1087
|
SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
|
|
752
|
-
var SelectScrollDownButton =
|
|
1088
|
+
var SelectScrollDownButton = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
753
1089
|
SelectPrimitive__namespace.ScrollDownButton,
|
|
754
1090
|
{
|
|
755
1091
|
ref,
|
|
@@ -762,7 +1098,7 @@ var SelectScrollDownButton = React16__namespace.forwardRef(({ className, ...prop
|
|
|
762
1098
|
}
|
|
763
1099
|
));
|
|
764
1100
|
SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
|
|
765
|
-
var SelectContent =
|
|
1101
|
+
var SelectContent = React18__namespace.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
766
1102
|
SelectPrimitive__namespace.Content,
|
|
767
1103
|
{
|
|
768
1104
|
ref,
|
|
@@ -790,7 +1126,7 @@ var SelectContent = React16__namespace.forwardRef(({ className, children, positi
|
|
|
790
1126
|
}
|
|
791
1127
|
) }));
|
|
792
1128
|
SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
|
|
793
|
-
var SelectLabel =
|
|
1129
|
+
var SelectLabel = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
794
1130
|
SelectPrimitive__namespace.Label,
|
|
795
1131
|
{
|
|
796
1132
|
ref,
|
|
@@ -799,7 +1135,7 @@ var SelectLabel = React16__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
799
1135
|
}
|
|
800
1136
|
));
|
|
801
1137
|
SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
|
|
802
|
-
var SelectItem =
|
|
1138
|
+
var SelectItem = React18__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
803
1139
|
SelectPrimitive__namespace.Item,
|
|
804
1140
|
{
|
|
805
1141
|
ref,
|
|
@@ -815,7 +1151,7 @@ var SelectItem = React16__namespace.forwardRef(({ className, children, ...props
|
|
|
815
1151
|
}
|
|
816
1152
|
));
|
|
817
1153
|
SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
|
|
818
|
-
var SelectSeparator =
|
|
1154
|
+
var SelectSeparator = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
819
1155
|
SelectPrimitive__namespace.Separator,
|
|
820
1156
|
{
|
|
821
1157
|
ref,
|
|
@@ -837,7 +1173,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
|
|
|
837
1173
|
var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
|
|
838
1174
|
var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
|
|
839
1175
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
|
|
840
|
-
var DropdownMenuSubTrigger =
|
|
1176
|
+
var DropdownMenuSubTrigger = React18__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
841
1177
|
DropdownMenuPrimitive__namespace.SubTrigger,
|
|
842
1178
|
{
|
|
843
1179
|
ref,
|
|
@@ -854,7 +1190,7 @@ var DropdownMenuSubTrigger = React16__namespace.forwardRef(({ className, inset,
|
|
|
854
1190
|
}
|
|
855
1191
|
));
|
|
856
1192
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
|
|
857
|
-
var DropdownMenuSubContent =
|
|
1193
|
+
var DropdownMenuSubContent = React18__namespace.forwardRef(({ className, container, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { container: container ?? void 0, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
858
1194
|
DropdownMenuPrimitive__namespace.SubContent,
|
|
859
1195
|
{
|
|
860
1196
|
ref,
|
|
@@ -866,7 +1202,7 @@ var DropdownMenuSubContent = React16__namespace.forwardRef(({ className, contain
|
|
|
866
1202
|
}
|
|
867
1203
|
) }));
|
|
868
1204
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
|
|
869
|
-
var DropdownMenuContent =
|
|
1205
|
+
var DropdownMenuContent = React18__namespace.forwardRef(({ className, sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { container: container ?? void 0, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
870
1206
|
DropdownMenuPrimitive__namespace.Content,
|
|
871
1207
|
{
|
|
872
1208
|
ref,
|
|
@@ -880,7 +1216,7 @@ var DropdownMenuContent = React16__namespace.forwardRef(({ className, sideOffset
|
|
|
880
1216
|
}
|
|
881
1217
|
) }));
|
|
882
1218
|
DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
|
|
883
|
-
var DropdownMenuItem =
|
|
1219
|
+
var DropdownMenuItem = React18__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
884
1220
|
DropdownMenuPrimitive__namespace.Item,
|
|
885
1221
|
{
|
|
886
1222
|
ref,
|
|
@@ -893,7 +1229,7 @@ var DropdownMenuItem = React16__namespace.forwardRef(({ className, inset, ...pro
|
|
|
893
1229
|
}
|
|
894
1230
|
));
|
|
895
1231
|
DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
|
|
896
|
-
var DropdownMenuCheckboxItem =
|
|
1232
|
+
var DropdownMenuCheckboxItem = React18__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
897
1233
|
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
898
1234
|
{
|
|
899
1235
|
ref,
|
|
@@ -910,7 +1246,7 @@ var DropdownMenuCheckboxItem = React16__namespace.forwardRef(({ className, child
|
|
|
910
1246
|
}
|
|
911
1247
|
));
|
|
912
1248
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
913
|
-
var DropdownMenuRadioItem =
|
|
1249
|
+
var DropdownMenuRadioItem = React18__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
914
1250
|
DropdownMenuPrimitive__namespace.RadioItem,
|
|
915
1251
|
{
|
|
916
1252
|
ref,
|
|
@@ -926,7 +1262,7 @@ var DropdownMenuRadioItem = React16__namespace.forwardRef(({ className, children
|
|
|
926
1262
|
}
|
|
927
1263
|
));
|
|
928
1264
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
|
|
929
|
-
var DropdownMenuLabel =
|
|
1265
|
+
var DropdownMenuLabel = React18__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
930
1266
|
DropdownMenuPrimitive__namespace.Label,
|
|
931
1267
|
{
|
|
932
1268
|
ref,
|
|
@@ -939,7 +1275,7 @@ var DropdownMenuLabel = React16__namespace.forwardRef(({ className, inset, ...pr
|
|
|
939
1275
|
}
|
|
940
1276
|
));
|
|
941
1277
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
|
|
942
|
-
var DropdownMenuSeparator =
|
|
1278
|
+
var DropdownMenuSeparator = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
943
1279
|
DropdownMenuPrimitive__namespace.Separator,
|
|
944
1280
|
{
|
|
945
1281
|
ref,
|
|
@@ -961,7 +1297,209 @@ var DropdownMenuShortcut = ({
|
|
|
961
1297
|
);
|
|
962
1298
|
};
|
|
963
1299
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
964
|
-
|
|
1300
|
+
function ContextMenu({
|
|
1301
|
+
...props
|
|
1302
|
+
}) {
|
|
1303
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Root, { "data-slot": "context-menu", ...props });
|
|
1304
|
+
}
|
|
1305
|
+
function ContextMenuTrigger({
|
|
1306
|
+
...props
|
|
1307
|
+
}) {
|
|
1308
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Trigger, { "data-slot": "context-menu-trigger", ...props });
|
|
1309
|
+
}
|
|
1310
|
+
function ContextMenuGroup({
|
|
1311
|
+
...props
|
|
1312
|
+
}) {
|
|
1313
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Group, { "data-slot": "context-menu-group", ...props });
|
|
1314
|
+
}
|
|
1315
|
+
function ContextMenuPortal({
|
|
1316
|
+
...props
|
|
1317
|
+
}) {
|
|
1318
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Portal, { "data-slot": "context-menu-portal", ...props });
|
|
1319
|
+
}
|
|
1320
|
+
function ContextMenuSub({
|
|
1321
|
+
...props
|
|
1322
|
+
}) {
|
|
1323
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Sub, { "data-slot": "context-menu-sub", ...props });
|
|
1324
|
+
}
|
|
1325
|
+
function ContextMenuRadioGroup({
|
|
1326
|
+
...props
|
|
1327
|
+
}) {
|
|
1328
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1329
|
+
ContextMenuPrimitive__namespace.RadioGroup,
|
|
1330
|
+
{
|
|
1331
|
+
"data-slot": "context-menu-radio-group",
|
|
1332
|
+
...props
|
|
1333
|
+
}
|
|
1334
|
+
);
|
|
1335
|
+
}
|
|
1336
|
+
function ContextMenuSubTrigger({
|
|
1337
|
+
className,
|
|
1338
|
+
inset,
|
|
1339
|
+
children,
|
|
1340
|
+
...props
|
|
1341
|
+
}) {
|
|
1342
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1343
|
+
ContextMenuPrimitive__namespace.SubTrigger,
|
|
1344
|
+
{
|
|
1345
|
+
"data-slot": "context-menu-sub-trigger",
|
|
1346
|
+
"data-inset": inset,
|
|
1347
|
+
className: cn(
|
|
1348
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1349
|
+
className
|
|
1350
|
+
),
|
|
1351
|
+
...props,
|
|
1352
|
+
children: [
|
|
1353
|
+
children,
|
|
1354
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRightIcon, { className: "ml-auto" })
|
|
1355
|
+
]
|
|
1356
|
+
}
|
|
1357
|
+
);
|
|
1358
|
+
}
|
|
1359
|
+
function ContextMenuSubContent({
|
|
1360
|
+
className,
|
|
1361
|
+
...props
|
|
1362
|
+
}) {
|
|
1363
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1364
|
+
ContextMenuPrimitive__namespace.SubContent,
|
|
1365
|
+
{
|
|
1366
|
+
"data-slot": "context-menu-sub-content",
|
|
1367
|
+
className: cn(
|
|
1368
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[var(--radix-context-menu-content-transform-origin)] overflow-hidden rounded-md border p-1 shadow-lg",
|
|
1369
|
+
className
|
|
1370
|
+
),
|
|
1371
|
+
...props
|
|
1372
|
+
}
|
|
1373
|
+
);
|
|
1374
|
+
}
|
|
1375
|
+
function ContextMenuContent({
|
|
1376
|
+
className,
|
|
1377
|
+
...props
|
|
1378
|
+
}) {
|
|
1379
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1380
|
+
ContextMenuPrimitive__namespace.Content,
|
|
1381
|
+
{
|
|
1382
|
+
"data-slot": "context-menu-content",
|
|
1383
|
+
className: cn(
|
|
1384
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-[var(--radix-context-menu-content-available-height)] min-w-[8rem] origin-[var(--radix-context-menu-content-transform-origin)] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
1385
|
+
className
|
|
1386
|
+
),
|
|
1387
|
+
...props
|
|
1388
|
+
}
|
|
1389
|
+
) });
|
|
1390
|
+
}
|
|
1391
|
+
function ContextMenuItem({
|
|
1392
|
+
className,
|
|
1393
|
+
inset,
|
|
1394
|
+
variant = "default",
|
|
1395
|
+
...props
|
|
1396
|
+
}) {
|
|
1397
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1398
|
+
ContextMenuPrimitive__namespace.Item,
|
|
1399
|
+
{
|
|
1400
|
+
"data-slot": "context-menu-item",
|
|
1401
|
+
"data-inset": inset,
|
|
1402
|
+
"data-variant": variant,
|
|
1403
|
+
className: cn(
|
|
1404
|
+
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1405
|
+
className
|
|
1406
|
+
),
|
|
1407
|
+
...props
|
|
1408
|
+
}
|
|
1409
|
+
);
|
|
1410
|
+
}
|
|
1411
|
+
function ContextMenuCheckboxItem({
|
|
1412
|
+
className,
|
|
1413
|
+
children,
|
|
1414
|
+
checked,
|
|
1415
|
+
...props
|
|
1416
|
+
}) {
|
|
1417
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1418
|
+
ContextMenuPrimitive__namespace.CheckboxItem,
|
|
1419
|
+
{
|
|
1420
|
+
"data-slot": "context-menu-checkbox-item",
|
|
1421
|
+
className: cn(
|
|
1422
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1423
|
+
className
|
|
1424
|
+
),
|
|
1425
|
+
checked,
|
|
1426
|
+
...props,
|
|
1427
|
+
children: [
|
|
1428
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "size-4" }) }) }),
|
|
1429
|
+
children
|
|
1430
|
+
]
|
|
1431
|
+
}
|
|
1432
|
+
);
|
|
1433
|
+
}
|
|
1434
|
+
function ContextMenuRadioItem({
|
|
1435
|
+
className,
|
|
1436
|
+
children,
|
|
1437
|
+
...props
|
|
1438
|
+
}) {
|
|
1439
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1440
|
+
ContextMenuPrimitive__namespace.RadioItem,
|
|
1441
|
+
{
|
|
1442
|
+
"data-slot": "context-menu-radio-item",
|
|
1443
|
+
className: cn(
|
|
1444
|
+
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1445
|
+
className
|
|
1446
|
+
),
|
|
1447
|
+
...props,
|
|
1448
|
+
children: [
|
|
1449
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
1450
|
+
children
|
|
1451
|
+
]
|
|
1452
|
+
}
|
|
1453
|
+
);
|
|
1454
|
+
}
|
|
1455
|
+
function ContextMenuLabel({
|
|
1456
|
+
className,
|
|
1457
|
+
inset,
|
|
1458
|
+
...props
|
|
1459
|
+
}) {
|
|
1460
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1461
|
+
ContextMenuPrimitive__namespace.Label,
|
|
1462
|
+
{
|
|
1463
|
+
"data-slot": "context-menu-label",
|
|
1464
|
+
"data-inset": inset,
|
|
1465
|
+
className: cn(
|
|
1466
|
+
"text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
1467
|
+
className
|
|
1468
|
+
),
|
|
1469
|
+
...props
|
|
1470
|
+
}
|
|
1471
|
+
);
|
|
1472
|
+
}
|
|
1473
|
+
function ContextMenuSeparator({
|
|
1474
|
+
className,
|
|
1475
|
+
...props
|
|
1476
|
+
}) {
|
|
1477
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1478
|
+
ContextMenuPrimitive__namespace.Separator,
|
|
1479
|
+
{
|
|
1480
|
+
"data-slot": "context-menu-separator",
|
|
1481
|
+
className: cn("bg-border -mx-1 my-1 h-px", className),
|
|
1482
|
+
...props
|
|
1483
|
+
}
|
|
1484
|
+
);
|
|
1485
|
+
}
|
|
1486
|
+
function ContextMenuShortcut({
|
|
1487
|
+
className,
|
|
1488
|
+
...props
|
|
1489
|
+
}) {
|
|
1490
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1491
|
+
"span",
|
|
1492
|
+
{
|
|
1493
|
+
"data-slot": "context-menu-shortcut",
|
|
1494
|
+
className: cn(
|
|
1495
|
+
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
1496
|
+
className
|
|
1497
|
+
),
|
|
1498
|
+
...props
|
|
1499
|
+
}
|
|
1500
|
+
);
|
|
1501
|
+
}
|
|
1502
|
+
var IconButton = React18__namespace.default.forwardRef(
|
|
965
1503
|
({ variant = uikitContracts.ButtonVariant.Ghost, size = uikitContracts.IconButtonSize.Default, className, ...props }, ref) => {
|
|
966
1504
|
const sizeStyles = {
|
|
967
1505
|
[uikitContracts.IconButtonSize.Small]: "h-8 w-8",
|
|
@@ -981,7 +1519,7 @@ var IconButton = React16__namespace.default.forwardRef(
|
|
|
981
1519
|
}
|
|
982
1520
|
);
|
|
983
1521
|
IconButton.displayName = "IconButton";
|
|
984
|
-
var DropdownButton =
|
|
1522
|
+
var DropdownButton = React18__namespace.default.forwardRef(({ children, variant = uikitContracts.ButtonVariant.Outline, className, ...props }, ref) => {
|
|
985
1523
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
986
1524
|
Button,
|
|
987
1525
|
{
|
|
@@ -997,7 +1535,7 @@ var DropdownButton = React16__namespace.default.forwardRef(({ children, variant
|
|
|
997
1535
|
);
|
|
998
1536
|
});
|
|
999
1537
|
DropdownButton.displayName = "DropdownButton";
|
|
1000
|
-
var Sidebar =
|
|
1538
|
+
var Sidebar = React18__namespace.forwardRef(({ collapsed = false, className, children, ...props }, ref) => {
|
|
1001
1539
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1002
1540
|
"aside",
|
|
1003
1541
|
{
|
|
@@ -1016,7 +1554,7 @@ var Sidebar = React16__namespace.forwardRef(({ collapsed = false, className, chi
|
|
|
1016
1554
|
);
|
|
1017
1555
|
});
|
|
1018
1556
|
Sidebar.displayName = "Sidebar";
|
|
1019
|
-
var SidebarContent =
|
|
1557
|
+
var SidebarContent = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1020
1558
|
"div",
|
|
1021
1559
|
{
|
|
1022
1560
|
ref,
|
|
@@ -1030,7 +1568,7 @@ var SidebarContent = React16__namespace.forwardRef(({ className, ...props }, ref
|
|
|
1030
1568
|
}
|
|
1031
1569
|
));
|
|
1032
1570
|
SidebarContent.displayName = "SidebarContent";
|
|
1033
|
-
var SidebarMenu =
|
|
1571
|
+
var SidebarMenu = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1034
1572
|
"ul",
|
|
1035
1573
|
{
|
|
1036
1574
|
ref,
|
|
@@ -1040,7 +1578,7 @@ var SidebarMenu = React16__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
1040
1578
|
}
|
|
1041
1579
|
));
|
|
1042
1580
|
SidebarMenu.displayName = "SidebarMenu";
|
|
1043
|
-
var SidebarMenuItem =
|
|
1581
|
+
var SidebarMenuItem = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1044
1582
|
"li",
|
|
1045
1583
|
{
|
|
1046
1584
|
ref,
|
|
@@ -1072,7 +1610,7 @@ var sidebarMenuButtonVariants = classVarianceAuthority.cva(
|
|
|
1072
1610
|
}
|
|
1073
1611
|
}
|
|
1074
1612
|
);
|
|
1075
|
-
var SidebarMenuButton =
|
|
1613
|
+
var SidebarMenuButton = React18__namespace.forwardRef(
|
|
1076
1614
|
({
|
|
1077
1615
|
asChild = false,
|
|
1078
1616
|
isActive = false,
|
|
@@ -1098,7 +1636,7 @@ var SidebarMenuButton = React16__namespace.forwardRef(
|
|
|
1098
1636
|
}
|
|
1099
1637
|
);
|
|
1100
1638
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
1101
|
-
var SidebarMenuIcon =
|
|
1639
|
+
var SidebarMenuIcon = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1102
1640
|
"span",
|
|
1103
1641
|
{
|
|
1104
1642
|
ref,
|
|
@@ -1107,7 +1645,7 @@ var SidebarMenuIcon = React16__namespace.forwardRef(({ className, ...props }, re
|
|
|
1107
1645
|
}
|
|
1108
1646
|
));
|
|
1109
1647
|
SidebarMenuIcon.displayName = "SidebarMenuIcon";
|
|
1110
|
-
var SidebarMenuLabel =
|
|
1648
|
+
var SidebarMenuLabel = React18__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1111
1649
|
"span",
|
|
1112
1650
|
{
|
|
1113
1651
|
ref,
|
|
@@ -1116,7 +1654,7 @@ var SidebarMenuLabel = React16__namespace.forwardRef(({ className, ...props }, r
|
|
|
1116
1654
|
}
|
|
1117
1655
|
));
|
|
1118
1656
|
SidebarMenuLabel.displayName = "SidebarMenuLabel";
|
|
1119
|
-
var SidebarHeader =
|
|
1657
|
+
var SidebarHeader = React18__namespace.forwardRef(
|
|
1120
1658
|
({ logo, logoText, collapsed = false, onClick, className, ...props }, ref) => {
|
|
1121
1659
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1122
1660
|
"div",
|
|
@@ -1139,7 +1677,7 @@ var SidebarHeader = React16__namespace.forwardRef(
|
|
|
1139
1677
|
}
|
|
1140
1678
|
);
|
|
1141
1679
|
SidebarHeader.displayName = "SidebarHeader";
|
|
1142
|
-
var UserInfo =
|
|
1680
|
+
var UserInfo = React18__namespace.default.forwardRef(
|
|
1143
1681
|
({ displayName, email, avatarUrl, className, loading }, ref) => {
|
|
1144
1682
|
const getInitials = () => {
|
|
1145
1683
|
if (!displayName) return lodash.toUpper(email?.[0] || "") || "?";
|
|
@@ -1560,6 +2098,10 @@ Object.defineProperty(exports, "IconButtonSize", {
|
|
|
1560
2098
|
enumerable: true,
|
|
1561
2099
|
get: function () { return uikitContracts.IconButtonSize; }
|
|
1562
2100
|
});
|
|
2101
|
+
exports.Accordion = Accordion;
|
|
2102
|
+
exports.AccordionContent = AccordionContent;
|
|
2103
|
+
exports.AccordionItem = AccordionItem;
|
|
2104
|
+
exports.AccordionTrigger = AccordionTrigger;
|
|
1563
2105
|
exports.Avatar = Avatar;
|
|
1564
2106
|
exports.AvatarFallback = AvatarFallback;
|
|
1565
2107
|
exports.AvatarImage = AvatarImage;
|
|
@@ -1572,8 +2114,31 @@ exports.CardDescription = CardDescription;
|
|
|
1572
2114
|
exports.CardFooter = CardFooter;
|
|
1573
2115
|
exports.CardHeader = CardHeader;
|
|
1574
2116
|
exports.CardTitle = CardTitle;
|
|
2117
|
+
exports.Carousel = Carousel;
|
|
2118
|
+
exports.CarouselContent = CarouselContent;
|
|
2119
|
+
exports.CarouselItem = CarouselItem;
|
|
2120
|
+
exports.CarouselNext = CarouselNext;
|
|
2121
|
+
exports.CarouselPrevious = CarouselPrevious;
|
|
1575
2122
|
exports.ChatInput = ChatInput;
|
|
1576
2123
|
exports.CloseIcon = CloseIcon;
|
|
2124
|
+
exports.Collapsible = Collapsible;
|
|
2125
|
+
exports.CollapsibleContent = CollapsibleContent2;
|
|
2126
|
+
exports.CollapsibleTrigger = CollapsibleTrigger2;
|
|
2127
|
+
exports.ContextMenu = ContextMenu;
|
|
2128
|
+
exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem;
|
|
2129
|
+
exports.ContextMenuContent = ContextMenuContent;
|
|
2130
|
+
exports.ContextMenuGroup = ContextMenuGroup;
|
|
2131
|
+
exports.ContextMenuItem = ContextMenuItem;
|
|
2132
|
+
exports.ContextMenuLabel = ContextMenuLabel;
|
|
2133
|
+
exports.ContextMenuPortal = ContextMenuPortal;
|
|
2134
|
+
exports.ContextMenuRadioGroup = ContextMenuRadioGroup;
|
|
2135
|
+
exports.ContextMenuRadioItem = ContextMenuRadioItem;
|
|
2136
|
+
exports.ContextMenuSeparator = ContextMenuSeparator;
|
|
2137
|
+
exports.ContextMenuShortcut = ContextMenuShortcut;
|
|
2138
|
+
exports.ContextMenuSub = ContextMenuSub;
|
|
2139
|
+
exports.ContextMenuSubContent = ContextMenuSubContent;
|
|
2140
|
+
exports.ContextMenuSubTrigger = ContextMenuSubTrigger;
|
|
2141
|
+
exports.ContextMenuTrigger = ContextMenuTrigger;
|
|
1577
2142
|
exports.Dialog = Dialog;
|
|
1578
2143
|
exports.DialogClose = DialogClose;
|
|
1579
2144
|
exports.DialogContent = DialogContent;
|
|
@@ -1601,6 +2166,9 @@ exports.DropdownMenuSubContent = DropdownMenuSubContent;
|
|
|
1601
2166
|
exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger;
|
|
1602
2167
|
exports.DropdownMenuTrigger = DropdownMenuTrigger;
|
|
1603
2168
|
exports.Header = Header;
|
|
2169
|
+
exports.HoverCard = HoverCard;
|
|
2170
|
+
exports.HoverCardContent = HoverCardContent;
|
|
2171
|
+
exports.HoverCardTrigger = HoverCardTrigger;
|
|
1604
2172
|
exports.IconButton = IconButton;
|
|
1605
2173
|
exports.Input = Input;
|
|
1606
2174
|
exports.MENU_ICON_ID = MENU_ICON_ID;
|
|
@@ -1615,6 +2183,10 @@ exports.NavigationMenuLink = NavigationMenuLink;
|
|
|
1615
2183
|
exports.NavigationMenuList = NavigationMenuList;
|
|
1616
2184
|
exports.NavigationMenuTrigger = NavigationMenuTrigger;
|
|
1617
2185
|
exports.NavigationMenuViewport = NavigationMenuViewport;
|
|
2186
|
+
exports.Popover = Popover;
|
|
2187
|
+
exports.PopoverAnchor = PopoverAnchor;
|
|
2188
|
+
exports.PopoverContent = PopoverContent;
|
|
2189
|
+
exports.PopoverTrigger = PopoverTrigger;
|
|
1618
2190
|
exports.Progress = Progress;
|
|
1619
2191
|
exports.Select = Select;
|
|
1620
2192
|
exports.SelectContent = SelectContent;
|