@cloudvoyant/helix-react 0.12.0 → 0.13.0-rc.202608281337.3d83294
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +787 -238
- package/dist/index.d.cts +242 -93
- package/dist/index.d.ts +242 -93
- package/dist/index.js +842 -220
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -40,9 +40,37 @@ __export(index_exports, {
|
|
|
40
40
|
CardHeader: () => CardHeader,
|
|
41
41
|
CardTitle: () => CardTitle,
|
|
42
42
|
Center: () => Center,
|
|
43
|
+
Checkbox: () => Checkbox,
|
|
44
|
+
CheckboxControl: () => CheckboxControl,
|
|
45
|
+
CheckboxGroup: () => CheckboxGroup,
|
|
46
|
+
CheckboxIndicator: () => CheckboxIndicator,
|
|
47
|
+
CheckboxLabel: () => CheckboxLabel,
|
|
43
48
|
Col: () => Col,
|
|
49
|
+
Combobox: () => Combobox,
|
|
50
|
+
ComboboxClear: () => ComboboxClear,
|
|
51
|
+
ComboboxContent: () => ComboboxContent,
|
|
52
|
+
ComboboxControl: () => ComboboxControl,
|
|
53
|
+
ComboboxEmpty: () => ComboboxEmpty,
|
|
54
|
+
ComboboxInput: () => ComboboxInput,
|
|
55
|
+
ComboboxItem: () => ComboboxItem,
|
|
56
|
+
ComboboxItemGroup: () => ComboboxItemGroup,
|
|
57
|
+
ComboboxItemGroupLabel: () => ComboboxItemGroupLabel,
|
|
58
|
+
ComboboxItemIndicator: () => ComboboxItemIndicator,
|
|
59
|
+
ComboboxItemText: () => ComboboxItemText,
|
|
60
|
+
ComboboxList: () => ComboboxList,
|
|
61
|
+
ComboboxTrigger: () => ComboboxTrigger,
|
|
44
62
|
Container: () => Container,
|
|
63
|
+
Field: () => Field,
|
|
64
|
+
FieldError: () => FieldError,
|
|
65
|
+
FieldHelper: () => FieldHelper,
|
|
66
|
+
FieldLabel: () => FieldLabel,
|
|
67
|
+
FieldRequiredIndicator: () => FieldRequiredIndicator,
|
|
68
|
+
FieldSet: () => FieldSet,
|
|
69
|
+
FieldSetError: () => FieldSetError,
|
|
70
|
+
FieldSetHelper: () => FieldSetHelper,
|
|
71
|
+
FieldSetLegend: () => FieldSetLegend,
|
|
45
72
|
HStack: () => HStack,
|
|
73
|
+
Input: () => Input2,
|
|
46
74
|
Item: () => Item,
|
|
47
75
|
Navbar: () => Navbar,
|
|
48
76
|
NavbarActions: () => NavbarActions,
|
|
@@ -63,6 +91,16 @@ __export(index_exports, {
|
|
|
63
91
|
NavbarMobileOverlay: () => NavbarMobileOverlay,
|
|
64
92
|
NavbarProvider: () => NavbarProvider,
|
|
65
93
|
NavbarTrigger: () => NavbarTrigger,
|
|
94
|
+
NumberInput: () => NumberInput,
|
|
95
|
+
NumberInputControl: () => NumberInputControl,
|
|
96
|
+
NumberInputDecrement: () => NumberInputDecrement,
|
|
97
|
+
NumberInputIncrement: () => NumberInputIncrement,
|
|
98
|
+
NumberInputInput: () => NumberInputInput,
|
|
99
|
+
Page: () => Page,
|
|
100
|
+
PageContent: () => PageContent,
|
|
101
|
+
PageFooter: () => PageFooter,
|
|
102
|
+
PageGutter: () => PageGutter,
|
|
103
|
+
PageSection: () => PageSection,
|
|
66
104
|
Pagination: () => Pagination,
|
|
67
105
|
PaginationEllipsis: () => PaginationEllipsis,
|
|
68
106
|
PaginationItem: () => PaginationItem,
|
|
@@ -71,6 +109,18 @@ __export(index_exports, {
|
|
|
71
109
|
PaginationPrevious: () => PaginationPrevious,
|
|
72
110
|
Row: () => Row,
|
|
73
111
|
Scroll: () => Scroll,
|
|
112
|
+
Select: () => Select,
|
|
113
|
+
SelectClearTrigger: () => SelectClearTrigger,
|
|
114
|
+
SelectContent: () => SelectContent,
|
|
115
|
+
SelectIndicator: () => SelectIndicator,
|
|
116
|
+
SelectItem: () => SelectItem,
|
|
117
|
+
SelectItemGroup: () => SelectItemGroup,
|
|
118
|
+
SelectItemGroupLabel: () => SelectItemGroupLabel,
|
|
119
|
+
SelectItemIndicator: () => SelectItemIndicator,
|
|
120
|
+
SelectItemText: () => SelectItemText,
|
|
121
|
+
SelectNative: () => SelectNative,
|
|
122
|
+
SelectTrigger: () => SelectTrigger,
|
|
123
|
+
SelectValue: () => SelectValue,
|
|
74
124
|
Sidebar: () => Root,
|
|
75
125
|
SidebarContent: () => Content,
|
|
76
126
|
SidebarFooter: () => Footer,
|
|
@@ -98,17 +148,40 @@ __export(index_exports, {
|
|
|
98
148
|
SplitterResizeTrigger: () => SplitterResizeTrigger,
|
|
99
149
|
SplitterResizeTriggerIndicator: () => SplitterResizeTriggerIndicator,
|
|
100
150
|
Stack: () => Stack,
|
|
151
|
+
Switch: () => Switch,
|
|
152
|
+
SwitchControl: () => SwitchControl,
|
|
153
|
+
SwitchLabel: () => SwitchLabel,
|
|
154
|
+
SwitchThumb: () => SwitchThumb,
|
|
101
155
|
Tabs: () => Tabs,
|
|
102
156
|
TabsContent: () => TabsContent,
|
|
103
157
|
TabsList: () => TabsList,
|
|
104
158
|
TabsTrigger: () => TabsTrigger,
|
|
159
|
+
TagInput: () => TagInput,
|
|
160
|
+
TagInputClearTrigger: () => TagInputClearTrigger,
|
|
161
|
+
TagInputContext: () => TagInputContext,
|
|
162
|
+
TagInputControl: () => TagInputControl,
|
|
163
|
+
TagInputInput: () => TagInputInput,
|
|
164
|
+
TagInputItem: () => TagInputItem,
|
|
165
|
+
TagInputItemDeleteTrigger: () => TagInputItemDeleteTrigger,
|
|
166
|
+
TagInputItemInput: () => TagInputItemInput,
|
|
167
|
+
TagInputItemPreview: () => TagInputItemPreview,
|
|
168
|
+
TagInputItemText: () => TagInputItemText,
|
|
169
|
+
Textarea: () => Textarea,
|
|
105
170
|
ToggleButton: () => ToggleButton,
|
|
106
171
|
ToggleButtonIndicator: () => ToggleButtonIndicator,
|
|
107
172
|
VStack: () => VStack,
|
|
108
|
-
navbarMenuTriggerStyle: () =>
|
|
173
|
+
navbarMenuTriggerStyle: () => import_helix45.navbarMenuTriggerStyle,
|
|
174
|
+
useCheckbox: () => useCheckbox,
|
|
175
|
+
useCombobox: () => useCombobox,
|
|
176
|
+
useField: () => useField,
|
|
177
|
+
useMediaQuery: () => useMediaQuery,
|
|
109
178
|
useNavbar: () => useNavbar,
|
|
179
|
+
useNumberInput: () => useNumberInput,
|
|
180
|
+
useSelect: () => useSelect,
|
|
110
181
|
useSidebar: () => useSidebar,
|
|
111
|
-
|
|
182
|
+
useSwitch: () => useSwitch,
|
|
183
|
+
useTabs: () => useTabs,
|
|
184
|
+
useTagInput: () => useTagInput
|
|
112
185
|
});
|
|
113
186
|
module.exports = __toCommonJS(index_exports);
|
|
114
187
|
|
|
@@ -273,6 +346,7 @@ var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
|
273
346
|
function Scroll({
|
|
274
347
|
className,
|
|
275
348
|
orientation = "vertical",
|
|
349
|
+
variant = "default",
|
|
276
350
|
contentClassName,
|
|
277
351
|
thumbClassName,
|
|
278
352
|
viewportClassName,
|
|
@@ -281,25 +355,76 @@ function Scroll({
|
|
|
281
355
|
}) {
|
|
282
356
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_scroll_area.ScrollAreaRoot, { className: (0, import_helix17.cn)(import_helix17.scrollRootBase, className), ...props, children: [
|
|
283
357
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_scroll_area.ScrollAreaViewport, { className: (0, import_helix17.cn)(import_helix17.scrollViewportBase, viewportClassName), children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_scroll_area.ScrollAreaContent, { className: (0, import_helix17.cn)(import_helix17.scrollContentBase, contentClassName), children }) }),
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
358
|
+
variant === "hidden" ? null : /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
|
|
359
|
+
(orientation === "vertical" || orientation === "both") && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_scroll_area.ScrollAreaScrollbar, { orientation: "vertical", className: import_helix17.scrollScrollbarBase, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_scroll_area.ScrollAreaThumb, { className: (0, import_helix17.cn)(import_helix17.scrollThumbBase, thumbClassName) }) }),
|
|
360
|
+
(orientation === "horizontal" || orientation === "both") && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_scroll_area.ScrollAreaScrollbar, { orientation: "horizontal", className: import_helix17.scrollScrollbarBase, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_scroll_area.ScrollAreaThumb, { className: (0, import_helix17.cn)(import_helix17.scrollThumbBase, thumbClassName) }) }),
|
|
361
|
+
orientation === "both" && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_scroll_area.ScrollAreaCorner, { className: import_helix17.scrollCornerBase })
|
|
362
|
+
] })
|
|
287
363
|
] });
|
|
288
364
|
}
|
|
289
365
|
|
|
290
|
-
// src/
|
|
291
|
-
var
|
|
366
|
+
// src/page.tsx
|
|
367
|
+
var import_factory16 = require("@ark-ui/react/factory");
|
|
292
368
|
var import_helix18 = require("@cloudvoyant/helix");
|
|
293
369
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
370
|
+
function Page({ variant = "default", className, children, ...props }) {
|
|
371
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_factory16.ark.div, { "data-slot": "page", className: (0, import_helix18.cn)((0, import_helix18.pageVariants)({ variant }), className), ...props, children });
|
|
372
|
+
}
|
|
373
|
+
function PageGutter({
|
|
374
|
+
side = "left",
|
|
375
|
+
align = "start",
|
|
376
|
+
contentClassName,
|
|
377
|
+
className,
|
|
378
|
+
children,
|
|
379
|
+
...props
|
|
380
|
+
}) {
|
|
381
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
382
|
+
import_factory16.ark.div,
|
|
383
|
+
{
|
|
384
|
+
"data-slot": "page-gutter-area",
|
|
385
|
+
className: (0, import_helix18.cn)(import_helix18.pageGutterAreaBase, side === "right" && "[grid-area:right]"),
|
|
386
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
387
|
+
import_factory16.ark.div,
|
|
388
|
+
{
|
|
389
|
+
"data-slot": "page-gutter",
|
|
390
|
+
className: (0, import_helix18.cn)((0, import_helix18.pageGutterVariants)({ side }), className),
|
|
391
|
+
...props,
|
|
392
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
393
|
+
import_factory16.ark.div,
|
|
394
|
+
{
|
|
395
|
+
"data-slot": "page-gutter-content",
|
|
396
|
+
className: (0, import_helix18.cn)((0, import_helix18.pageGutterContentVariants)({ align }), contentClassName),
|
|
397
|
+
children
|
|
398
|
+
}
|
|
399
|
+
)
|
|
400
|
+
}
|
|
401
|
+
)
|
|
402
|
+
}
|
|
403
|
+
);
|
|
404
|
+
}
|
|
405
|
+
function PageContent({ className, children, ...props }) {
|
|
406
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_factory16.ark.main, { "data-slot": "page-content", className: (0, import_helix18.cn)(import_helix18.pageContentBase, className), ...props, children });
|
|
407
|
+
}
|
|
408
|
+
function PageFooter({ className, children, ...props }) {
|
|
409
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_factory16.ark.footer, { "data-slot": "page-footer", className: (0, import_helix18.cn)(import_helix18.pageFooterBase, className), ...props, children });
|
|
410
|
+
}
|
|
411
|
+
function PageSection({ className, children, ...props }) {
|
|
412
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_factory16.ark.section, { "data-slot": "page-section", className: (0, import_helix18.cn)(import_helix18.pageSectionBase, className), ...props, children });
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
// src/splitter.tsx
|
|
416
|
+
var import_splitter = require("@ark-ui/react/splitter");
|
|
417
|
+
var import_helix19 = require("@cloudvoyant/helix");
|
|
418
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
294
419
|
function Splitter({ className, ...props }) {
|
|
295
|
-
return /* @__PURE__ */ (0,
|
|
420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_splitter.SplitterRoot, { className: (0, import_helix19.cn)(import_helix19.splitterRootBase, className), ...props });
|
|
296
421
|
}
|
|
297
422
|
function SplitterPanel({ className, ...props }) {
|
|
298
|
-
return /* @__PURE__ */ (0,
|
|
423
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_splitter.SplitterPanel, { className: (0, import_helix19.cn)(import_helix19.splitterPanelBase, className), ...props });
|
|
299
424
|
}
|
|
300
425
|
function SplitterResizeTrigger({ className, children, ...props }) {
|
|
301
|
-
return /* @__PURE__ */ (0,
|
|
302
|
-
/* @__PURE__ */ (0,
|
|
426
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_splitter.SplitterResizeTrigger, { className: (0, import_helix19.cn)(import_helix19.splitterResizeTriggerBase, className), ...props, children: [
|
|
427
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { "aria-hidden": true, "data-part": "separator", className: import_helix19.splitterResizeTriggerSeparatorBase }),
|
|
303
428
|
children
|
|
304
429
|
] });
|
|
305
430
|
}
|
|
@@ -307,10 +432,10 @@ function SplitterResizeTriggerIndicator({
|
|
|
307
432
|
className,
|
|
308
433
|
...props
|
|
309
434
|
}) {
|
|
310
|
-
return /* @__PURE__ */ (0,
|
|
435
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
311
436
|
import_splitter.SplitterResizeTriggerIndicator,
|
|
312
437
|
{
|
|
313
|
-
className: (0,
|
|
438
|
+
className: (0, import_helix19.cn)(import_helix19.splitterResizeTriggerIndicatorBase, className),
|
|
314
439
|
...props
|
|
315
440
|
}
|
|
316
441
|
);
|
|
@@ -318,7 +443,7 @@ function SplitterResizeTriggerIndicator({
|
|
|
318
443
|
|
|
319
444
|
// src/sidebar/Provider.tsx
|
|
320
445
|
var React2 = __toESM(require("react"), 1);
|
|
321
|
-
var
|
|
446
|
+
var import_helix20 = require("@cloudvoyant/helix");
|
|
322
447
|
|
|
323
448
|
// src/sidebar/context.ts
|
|
324
449
|
var React = __toESM(require("react"), 1);
|
|
@@ -332,7 +457,7 @@ function useSidebar() {
|
|
|
332
457
|
}
|
|
333
458
|
|
|
334
459
|
// src/sidebar/Provider.tsx
|
|
335
|
-
var
|
|
460
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
336
461
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
337
462
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
338
463
|
function useIsMobile() {
|
|
@@ -390,7 +515,7 @@ function Provider({
|
|
|
390
515
|
}, [openProp]);
|
|
391
516
|
React2.useEffect(() => {
|
|
392
517
|
const handleKeyDown = (event) => {
|
|
393
|
-
if (event.key ===
|
|
518
|
+
if (event.key === import_helix20.SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
394
519
|
event.preventDefault();
|
|
395
520
|
toggleSidebar();
|
|
396
521
|
}
|
|
@@ -411,16 +536,16 @@ function Provider({
|
|
|
411
536
|
}),
|
|
412
537
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
413
538
|
);
|
|
414
|
-
return /* @__PURE__ */ (0,
|
|
539
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
415
540
|
Row,
|
|
416
541
|
{
|
|
417
542
|
"data-slot": "sidebar-wrapper",
|
|
418
543
|
style: {
|
|
419
|
-
"--sidebar-width":
|
|
420
|
-
"--sidebar-width-icon":
|
|
544
|
+
"--sidebar-width": import_helix20.SIDEBAR_WIDTH,
|
|
545
|
+
"--sidebar-width-icon": import_helix20.SIDEBAR_WIDTH_ICON,
|
|
421
546
|
...style
|
|
422
547
|
},
|
|
423
|
-
className: (0,
|
|
548
|
+
className: (0, import_helix20.cn)(import_helix20.sidebarStyles.wrapperClass, className),
|
|
424
549
|
...props,
|
|
425
550
|
children
|
|
426
551
|
}
|
|
@@ -429,8 +554,8 @@ function Provider({
|
|
|
429
554
|
|
|
430
555
|
// src/sidebar/Root.tsx
|
|
431
556
|
var import_drawer = require("@ark-ui/react/drawer");
|
|
432
|
-
var
|
|
433
|
-
var
|
|
557
|
+
var import_helix21 = require("@cloudvoyant/helix");
|
|
558
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
434
559
|
function Root({
|
|
435
560
|
side = "left",
|
|
436
561
|
variant = "sidebar",
|
|
@@ -441,39 +566,39 @@ function Root({
|
|
|
441
566
|
}) {
|
|
442
567
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
443
568
|
if (collapsible === "none") {
|
|
444
|
-
return /* @__PURE__ */ (0,
|
|
569
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
445
570
|
Col,
|
|
446
571
|
{
|
|
447
572
|
"data-slot": "sidebar",
|
|
448
573
|
"data-sidebar": "sidebar",
|
|
449
|
-
className: (0,
|
|
574
|
+
className: (0, import_helix21.cn)("h-full w-(--sidebar-width) bg-sidebar text-sidebar-foreground", className),
|
|
450
575
|
...props,
|
|
451
576
|
children
|
|
452
577
|
}
|
|
453
578
|
);
|
|
454
579
|
}
|
|
455
580
|
if (isMobile) {
|
|
456
|
-
return /* @__PURE__ */ (0,
|
|
581
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
457
582
|
import_drawer.DrawerRoot,
|
|
458
583
|
{
|
|
459
584
|
open: openMobile,
|
|
460
585
|
onOpenChange: (details) => setOpenMobile(details.open),
|
|
461
586
|
...props,
|
|
462
587
|
children: [
|
|
463
|
-
/* @__PURE__ */ (0,
|
|
464
|
-
/* @__PURE__ */ (0,
|
|
588
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_drawer.DrawerBackdrop, {}),
|
|
589
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_drawer.DrawerPositioner, { className: "w-(--sidebar-width)", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
465
590
|
import_drawer.DrawerContent,
|
|
466
591
|
{
|
|
467
592
|
"data-sidebar": "sidebar",
|
|
468
593
|
"data-slot": "sidebar",
|
|
469
594
|
"data-mobile": "true",
|
|
470
|
-
className: (0,
|
|
471
|
-
style: { "--sidebar-width":
|
|
595
|
+
className: (0, import_helix21.cn)("w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground", className),
|
|
596
|
+
style: { "--sidebar-width": import_helix21.SIDEBAR_WIDTH_MOBILE },
|
|
472
597
|
children: [
|
|
473
|
-
/* @__PURE__ */ (0,
|
|
474
|
-
/* @__PURE__ */ (0,
|
|
475
|
-
/* @__PURE__ */ (0,
|
|
476
|
-
/* @__PURE__ */ (0,
|
|
598
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_drawer.DrawerTitle, { className: "sr-only", children: "Sidebar" }),
|
|
599
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_drawer.DrawerDescription, { className: "sr-only", children: "Displays the mobile sidebar." }),
|
|
600
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_drawer.DrawerCloseTrigger, { className: "hidden" }),
|
|
601
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Col, { className: "h-full w-full", children })
|
|
477
602
|
]
|
|
478
603
|
}
|
|
479
604
|
) })
|
|
@@ -481,7 +606,7 @@ function Root({
|
|
|
481
606
|
}
|
|
482
607
|
);
|
|
483
608
|
}
|
|
484
|
-
return /* @__PURE__ */ (0,
|
|
609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
485
610
|
"div",
|
|
486
611
|
{
|
|
487
612
|
className: "group peer hidden text-sidebar-foreground md:block",
|
|
@@ -491,35 +616,35 @@ function Root({
|
|
|
491
616
|
"data-side": side,
|
|
492
617
|
"data-slot": "sidebar",
|
|
493
618
|
children: [
|
|
494
|
-
/* @__PURE__ */ (0,
|
|
619
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
495
620
|
"div",
|
|
496
621
|
{
|
|
497
622
|
"data-slot": "sidebar-gap",
|
|
498
|
-
className: (0,
|
|
499
|
-
|
|
623
|
+
className: (0, import_helix21.cn)(
|
|
624
|
+
import_helix21.sidebarStyles.gapClass,
|
|
500
625
|
side === "right" && "rotate-180",
|
|
501
626
|
variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"
|
|
502
627
|
)
|
|
503
628
|
}
|
|
504
629
|
),
|
|
505
|
-
/* @__PURE__ */ (0,
|
|
630
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
506
631
|
"div",
|
|
507
632
|
{
|
|
508
633
|
"data-slot": "sidebar-container",
|
|
509
|
-
className: (0,
|
|
510
|
-
|
|
634
|
+
className: (0, import_helix21.cn)(
|
|
635
|
+
import_helix21.sidebarStyles.containerClass,
|
|
511
636
|
side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
512
637
|
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
|
513
638
|
className
|
|
514
639
|
),
|
|
515
640
|
...props,
|
|
516
|
-
children: /* @__PURE__ */ (0,
|
|
641
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
517
642
|
"div",
|
|
518
643
|
{
|
|
519
644
|
"data-sidebar": "sidebar",
|
|
520
645
|
"data-slot": "sidebar-inner",
|
|
521
646
|
"data-variant": variant,
|
|
522
|
-
className: (0,
|
|
647
|
+
className: (0, import_helix21.cn)(import_helix21.sidebarStyles.innerClass),
|
|
523
648
|
children
|
|
524
649
|
}
|
|
525
650
|
)
|
|
@@ -531,132 +656,132 @@ function Root({
|
|
|
531
656
|
}
|
|
532
657
|
|
|
533
658
|
// src/sidebar/Header.tsx
|
|
534
|
-
var
|
|
535
|
-
var
|
|
659
|
+
var import_helix22 = require("@cloudvoyant/helix");
|
|
660
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
536
661
|
function Header({ className, ...props }) {
|
|
537
|
-
return /* @__PURE__ */ (0,
|
|
662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
538
663
|
Col,
|
|
539
664
|
{
|
|
540
665
|
"data-slot": "sidebar-header",
|
|
541
666
|
"data-sidebar": "header",
|
|
542
|
-
className: (0,
|
|
667
|
+
className: (0, import_helix22.cn)(import_helix22.sidebarStyles.headerClass, className),
|
|
543
668
|
...props
|
|
544
669
|
}
|
|
545
670
|
);
|
|
546
671
|
}
|
|
547
672
|
|
|
548
673
|
// src/sidebar/Footer.tsx
|
|
549
|
-
var
|
|
550
|
-
var
|
|
674
|
+
var import_helix23 = require("@cloudvoyant/helix");
|
|
675
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
551
676
|
function Footer({ className, ...props }) {
|
|
552
|
-
return /* @__PURE__ */ (0,
|
|
677
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
553
678
|
Col,
|
|
554
679
|
{
|
|
555
680
|
"data-slot": "sidebar-footer",
|
|
556
681
|
"data-sidebar": "footer",
|
|
557
|
-
className: (0,
|
|
682
|
+
className: (0, import_helix23.cn)(import_helix23.sidebarStyles.footerClass, className),
|
|
558
683
|
...props
|
|
559
684
|
}
|
|
560
685
|
);
|
|
561
686
|
}
|
|
562
687
|
|
|
563
688
|
// src/sidebar/Separator.tsx
|
|
564
|
-
var
|
|
565
|
-
var
|
|
566
|
-
var
|
|
689
|
+
var import_factory17 = require("@ark-ui/react/factory");
|
|
690
|
+
var import_helix24 = require("@cloudvoyant/helix");
|
|
691
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
567
692
|
function Separator({ className, ...props }) {
|
|
568
|
-
return /* @__PURE__ */ (0,
|
|
569
|
-
|
|
693
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
694
|
+
import_factory17.ark.div,
|
|
570
695
|
{
|
|
571
696
|
"data-slot": "sidebar-separator",
|
|
572
697
|
"data-sidebar": "separator",
|
|
573
698
|
role: "separator",
|
|
574
|
-
className: (0,
|
|
699
|
+
className: (0, import_helix24.cn)(import_helix24.sidebarStyles.separatorClass, className),
|
|
575
700
|
...props
|
|
576
701
|
}
|
|
577
702
|
);
|
|
578
703
|
}
|
|
579
704
|
|
|
580
705
|
// src/sidebar/Content.tsx
|
|
581
|
-
var
|
|
582
|
-
var
|
|
706
|
+
var import_helix25 = require("@cloudvoyant/helix");
|
|
707
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
583
708
|
function Content({ className, ...props }) {
|
|
584
|
-
return /* @__PURE__ */ (0,
|
|
709
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
585
710
|
Col,
|
|
586
711
|
{
|
|
587
712
|
"data-slot": "sidebar-content",
|
|
588
713
|
"data-sidebar": "content",
|
|
589
|
-
className: (0,
|
|
714
|
+
className: (0, import_helix25.cn)(import_helix25.sidebarStyles.contentClass, className),
|
|
590
715
|
...props
|
|
591
716
|
}
|
|
592
717
|
);
|
|
593
718
|
}
|
|
594
719
|
|
|
595
720
|
// src/sidebar/Group.tsx
|
|
596
|
-
var
|
|
597
|
-
var
|
|
721
|
+
var import_helix26 = require("@cloudvoyant/helix");
|
|
722
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
598
723
|
function Group({ label, className, children, ...props }) {
|
|
599
|
-
return /* @__PURE__ */ (0,
|
|
600
|
-
label && /* @__PURE__ */ (0,
|
|
601
|
-
/* @__PURE__ */ (0,
|
|
724
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(Col, { "data-slot": "sidebar-group", "data-sidebar": "group", className: (0, import_helix26.cn)(import_helix26.sidebarStyles.groupClass, className), ...props, children: [
|
|
725
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { "data-slot": "sidebar-group-label", "data-sidebar": "group-label", className: (0, import_helix26.cn)(import_helix26.sidebarStyles.groupLabelClass), children: label }),
|
|
726
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { "data-slot": "sidebar-group-content", "data-sidebar": "group-content", className: (0, import_helix26.cn)(import_helix26.sidebarStyles.groupContentClass), children })
|
|
602
727
|
] });
|
|
603
728
|
}
|
|
604
729
|
|
|
605
730
|
// src/sidebar/GroupAction.tsx
|
|
606
|
-
var
|
|
607
|
-
var
|
|
608
|
-
var
|
|
731
|
+
var import_factory18 = require("@ark-ui/react/factory");
|
|
732
|
+
var import_helix27 = require("@cloudvoyant/helix");
|
|
733
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
609
734
|
function GroupAction({ className, asChild = false, ...props }) {
|
|
610
|
-
return /* @__PURE__ */ (0,
|
|
611
|
-
|
|
735
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
736
|
+
import_factory18.ark.button,
|
|
612
737
|
{
|
|
613
738
|
"data-slot": "sidebar-group-action",
|
|
614
739
|
"data-sidebar": "group-action",
|
|
615
740
|
asChild,
|
|
616
741
|
type: "button",
|
|
617
|
-
className: (0,
|
|
742
|
+
className: (0, import_helix27.cn)(import_helix27.sidebarStyles.groupActionClass, className),
|
|
618
743
|
...props
|
|
619
744
|
}
|
|
620
745
|
);
|
|
621
746
|
}
|
|
622
747
|
|
|
623
748
|
// src/sidebar/Menu.tsx
|
|
624
|
-
var
|
|
625
|
-
var
|
|
626
|
-
var
|
|
749
|
+
var import_factory19 = require("@ark-ui/react/factory");
|
|
750
|
+
var import_helix28 = require("@cloudvoyant/helix");
|
|
751
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
627
752
|
function Menu({ className, ...props }) {
|
|
628
|
-
return /* @__PURE__ */ (0,
|
|
629
|
-
|
|
753
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
754
|
+
import_factory19.ark.ul,
|
|
630
755
|
{
|
|
631
756
|
"data-slot": "sidebar-menu",
|
|
632
757
|
"data-sidebar": "menu",
|
|
633
|
-
className: (0,
|
|
758
|
+
className: (0, import_helix28.cn)(import_helix28.sidebarStyles.menuClass, className),
|
|
634
759
|
...props
|
|
635
760
|
}
|
|
636
761
|
);
|
|
637
762
|
}
|
|
638
763
|
|
|
639
764
|
// src/sidebar/MenuItem.tsx
|
|
640
|
-
var
|
|
641
|
-
var
|
|
642
|
-
var
|
|
765
|
+
var import_factory20 = require("@ark-ui/react/factory");
|
|
766
|
+
var import_helix29 = require("@cloudvoyant/helix");
|
|
767
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
643
768
|
function MenuItem({ className, ...props }) {
|
|
644
|
-
return /* @__PURE__ */ (0,
|
|
645
|
-
|
|
769
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
770
|
+
import_factory20.ark.li,
|
|
646
771
|
{
|
|
647
772
|
"data-slot": "sidebar-menu-item",
|
|
648
773
|
"data-sidebar": "menu-item",
|
|
649
|
-
className: (0,
|
|
774
|
+
className: (0, import_helix29.cn)(import_helix29.sidebarStyles.menuItemClass, className),
|
|
650
775
|
...props
|
|
651
776
|
}
|
|
652
777
|
);
|
|
653
778
|
}
|
|
654
779
|
|
|
655
780
|
// src/sidebar/MenuButton.tsx
|
|
656
|
-
var
|
|
781
|
+
var import_factory21 = require("@ark-ui/react/factory");
|
|
657
782
|
var import_tooltip = require("@ark-ui/react/tooltip");
|
|
658
|
-
var
|
|
659
|
-
var
|
|
783
|
+
var import_helix30 = require("@cloudvoyant/helix");
|
|
784
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
660
785
|
function MenuButton({
|
|
661
786
|
asChild = false,
|
|
662
787
|
isActive = false,
|
|
@@ -668,8 +793,8 @@ function MenuButton({
|
|
|
668
793
|
...props
|
|
669
794
|
}) {
|
|
670
795
|
const { isMobile, state } = useSidebar();
|
|
671
|
-
const button = /* @__PURE__ */ (0,
|
|
672
|
-
|
|
796
|
+
const button = /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
797
|
+
import_factory21.ark.button,
|
|
673
798
|
{
|
|
674
799
|
"data-slot": "sidebar-menu-button",
|
|
675
800
|
"data-sidebar": "menu-button",
|
|
@@ -677,7 +802,7 @@ function MenuButton({
|
|
|
677
802
|
"data-active": isActive,
|
|
678
803
|
asChild,
|
|
679
804
|
type: "button",
|
|
680
|
-
className: (0,
|
|
805
|
+
className: (0, import_helix30.cn)((0, import_helix30.sidebarMenuButtonVariants)({ variant, size }), className),
|
|
681
806
|
...props,
|
|
682
807
|
children
|
|
683
808
|
}
|
|
@@ -686,42 +811,42 @@ function MenuButton({
|
|
|
686
811
|
return button;
|
|
687
812
|
}
|
|
688
813
|
const tooltipContent = typeof tooltip === "string" ? { children: tooltip } : tooltip;
|
|
689
|
-
return /* @__PURE__ */ (0,
|
|
690
|
-
/* @__PURE__ */ (0,
|
|
691
|
-
/* @__PURE__ */ (0,
|
|
814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_tooltip.TooltipRoot, { openDelay: 0, positioning: { placement: "right", gutter: 8 }, children: [
|
|
815
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_tooltip.TooltipTrigger, { asChild: true, children: button }),
|
|
816
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_tooltip.TooltipPositioner, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_tooltip.TooltipContent, { className: (0, import_helix30.cn)(import_helix30.sidebarStyles.tooltipContentClass), ...tooltipContent }) })
|
|
692
817
|
] });
|
|
693
818
|
}
|
|
694
819
|
|
|
695
820
|
// src/sidebar/MenuLink.tsx
|
|
696
|
-
var
|
|
697
|
-
var
|
|
821
|
+
var import_helix31 = require("@cloudvoyant/helix");
|
|
822
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
698
823
|
function MenuLink({ icon, href, onClick, isActive, variant, size, tooltip, className, children }) {
|
|
699
|
-
const content = /* @__PURE__ */ (0,
|
|
824
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
|
|
700
825
|
icon,
|
|
701
|
-
children != null && /* @__PURE__ */ (0,
|
|
826
|
+
children != null && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children })
|
|
702
827
|
] });
|
|
703
|
-
return /* @__PURE__ */ (0,
|
|
828
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("li", { "data-slot": "sidebar-menu-item", "data-sidebar": "menu-item", className: (0, import_helix31.cn)(import_helix31.sidebarStyles.menuItemClass), children: href != null ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(MenuButton, { asChild: true, isActive, variant, size, tooltip, className, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("a", { href, onClick, children: content }) }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(MenuButton, { isActive, variant, size, tooltip, className, onClick, children: content }) });
|
|
704
829
|
}
|
|
705
830
|
|
|
706
831
|
// src/sidebar/MenuAction.tsx
|
|
707
|
-
var
|
|
708
|
-
var
|
|
709
|
-
var
|
|
832
|
+
var import_factory22 = require("@ark-ui/react/factory");
|
|
833
|
+
var import_helix32 = require("@cloudvoyant/helix");
|
|
834
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
710
835
|
function MenuAction({
|
|
711
836
|
className,
|
|
712
837
|
asChild = false,
|
|
713
838
|
showOnHover = false,
|
|
714
839
|
...props
|
|
715
840
|
}) {
|
|
716
|
-
return /* @__PURE__ */ (0,
|
|
717
|
-
|
|
841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
842
|
+
import_factory22.ark.button,
|
|
718
843
|
{
|
|
719
844
|
"data-slot": "sidebar-menu-action",
|
|
720
845
|
"data-sidebar": "menu-action",
|
|
721
846
|
asChild,
|
|
722
847
|
type: "button",
|
|
723
|
-
className: (0,
|
|
724
|
-
|
|
848
|
+
className: (0, import_helix32.cn)(
|
|
849
|
+
import_helix32.sidebarStyles.menuActionClass,
|
|
725
850
|
showOnHover && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground data-[state=open]:opacity-100 md:opacity-0",
|
|
726
851
|
className
|
|
727
852
|
),
|
|
@@ -731,16 +856,16 @@ function MenuAction({
|
|
|
731
856
|
}
|
|
732
857
|
|
|
733
858
|
// src/sidebar/MenuBadge.tsx
|
|
734
|
-
var
|
|
735
|
-
var
|
|
736
|
-
var
|
|
859
|
+
var import_factory23 = require("@ark-ui/react/factory");
|
|
860
|
+
var import_helix33 = require("@cloudvoyant/helix");
|
|
861
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
737
862
|
function MenuBadge({ className, ...props }) {
|
|
738
|
-
return /* @__PURE__ */ (0,
|
|
739
|
-
|
|
863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
864
|
+
import_factory23.ark.div,
|
|
740
865
|
{
|
|
741
866
|
"data-slot": "sidebar-menu-badge",
|
|
742
867
|
"data-sidebar": "menu-badge",
|
|
743
|
-
className: (0,
|
|
868
|
+
className: (0, import_helix33.cn)(import_helix33.sidebarStyles.menuBadgeClass, className),
|
|
744
869
|
...props
|
|
745
870
|
}
|
|
746
871
|
);
|
|
@@ -748,28 +873,28 @@ function MenuBadge({ className, ...props }) {
|
|
|
748
873
|
|
|
749
874
|
// src/sidebar/MenuSkeleton.tsx
|
|
750
875
|
var React3 = __toESM(require("react"), 1);
|
|
751
|
-
var
|
|
752
|
-
var
|
|
753
|
-
var
|
|
876
|
+
var import_factory24 = require("@ark-ui/react/factory");
|
|
877
|
+
var import_helix34 = require("@cloudvoyant/helix");
|
|
878
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
754
879
|
function MenuSkeleton({ className, showIcon = false, ...props }) {
|
|
755
880
|
const width = React3.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
756
|
-
return /* @__PURE__ */ (0,
|
|
757
|
-
|
|
881
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
882
|
+
import_factory24.ark.div,
|
|
758
883
|
{
|
|
759
884
|
"data-slot": "sidebar-menu-skeleton",
|
|
760
885
|
"data-sidebar": "menu-skeleton",
|
|
761
|
-
className: (0,
|
|
886
|
+
className: (0, import_helix34.cn)(import_helix34.sidebarStyles.menuSkeletonClass, className),
|
|
762
887
|
...props,
|
|
763
888
|
children: [
|
|
764
|
-
showIcon && /* @__PURE__ */ (0,
|
|
765
|
-
|
|
889
|
+
showIcon && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
890
|
+
import_factory24.ark.div,
|
|
766
891
|
{
|
|
767
892
|
className: "size-4 shrink-0 animate-pulse rounded-md bg-sidebar-accent",
|
|
768
893
|
"data-sidebar": "menu-skeleton-icon"
|
|
769
894
|
}
|
|
770
895
|
),
|
|
771
|
-
/* @__PURE__ */ (0,
|
|
772
|
-
|
|
896
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
897
|
+
import_factory24.ark.div,
|
|
773
898
|
{
|
|
774
899
|
className: "h-4 max-w-(--skeleton-width) flex-1 animate-pulse rounded-md bg-sidebar-accent",
|
|
775
900
|
"data-sidebar": "menu-skeleton-text",
|
|
@@ -782,41 +907,41 @@ function MenuSkeleton({ className, showIcon = false, ...props }) {
|
|
|
782
907
|
}
|
|
783
908
|
|
|
784
909
|
// src/sidebar/MenuSub.tsx
|
|
785
|
-
var
|
|
786
|
-
var
|
|
787
|
-
var
|
|
910
|
+
var import_factory25 = require("@ark-ui/react/factory");
|
|
911
|
+
var import_helix35 = require("@cloudvoyant/helix");
|
|
912
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
788
913
|
function MenuSub({ className, ...props }) {
|
|
789
|
-
return /* @__PURE__ */ (0,
|
|
790
|
-
|
|
914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
915
|
+
import_factory25.ark.ul,
|
|
791
916
|
{
|
|
792
917
|
"data-slot": "sidebar-menu-sub",
|
|
793
918
|
"data-sidebar": "menu-sub",
|
|
794
|
-
className: (0,
|
|
919
|
+
className: (0, import_helix35.cn)(import_helix35.sidebarStyles.menuSubClass, className),
|
|
795
920
|
...props
|
|
796
921
|
}
|
|
797
922
|
);
|
|
798
923
|
}
|
|
799
924
|
|
|
800
925
|
// src/sidebar/MenuSubItem.tsx
|
|
801
|
-
var
|
|
802
|
-
var
|
|
803
|
-
var
|
|
926
|
+
var import_factory26 = require("@ark-ui/react/factory");
|
|
927
|
+
var import_helix36 = require("@cloudvoyant/helix");
|
|
928
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
804
929
|
function MenuSubItem({ className, ...props }) {
|
|
805
|
-
return /* @__PURE__ */ (0,
|
|
806
|
-
|
|
930
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
931
|
+
import_factory26.ark.li,
|
|
807
932
|
{
|
|
808
933
|
"data-slot": "sidebar-menu-sub-item",
|
|
809
934
|
"data-sidebar": "menu-sub-item",
|
|
810
|
-
className: (0,
|
|
935
|
+
className: (0, import_helix36.cn)(import_helix36.sidebarStyles.menuSubItemClass, className),
|
|
811
936
|
...props
|
|
812
937
|
}
|
|
813
938
|
);
|
|
814
939
|
}
|
|
815
940
|
|
|
816
941
|
// src/sidebar/MenuSubButton.tsx
|
|
817
|
-
var
|
|
818
|
-
var
|
|
819
|
-
var
|
|
942
|
+
var import_factory27 = require("@ark-ui/react/factory");
|
|
943
|
+
var import_helix37 = require("@cloudvoyant/helix");
|
|
944
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
820
945
|
function MenuSubButton({
|
|
821
946
|
asChild = false,
|
|
822
947
|
size = "md",
|
|
@@ -824,34 +949,34 @@ function MenuSubButton({
|
|
|
824
949
|
className,
|
|
825
950
|
...props
|
|
826
951
|
}) {
|
|
827
|
-
return /* @__PURE__ */ (0,
|
|
828
|
-
|
|
952
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
953
|
+
import_factory27.ark.a,
|
|
829
954
|
{
|
|
830
955
|
"data-slot": "sidebar-menu-sub-button",
|
|
831
956
|
"data-sidebar": "menu-sub-button",
|
|
832
957
|
"data-size": size,
|
|
833
958
|
"data-active": isActive,
|
|
834
959
|
asChild,
|
|
835
|
-
className: (0,
|
|
960
|
+
className: (0, import_helix37.cn)(import_helix37.sidebarStyles.menuSubButtonClass, className),
|
|
836
961
|
...props
|
|
837
962
|
}
|
|
838
963
|
);
|
|
839
964
|
}
|
|
840
965
|
|
|
841
966
|
// src/sidebar/Trigger.tsx
|
|
842
|
-
var
|
|
843
|
-
var
|
|
844
|
-
var
|
|
967
|
+
var import_factory28 = require("@ark-ui/react/factory");
|
|
968
|
+
var import_helix38 = require("@cloudvoyant/helix");
|
|
969
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
845
970
|
function Trigger({ className, onClick, children, ...props }) {
|
|
846
971
|
const { toggleSidebar } = useSidebar();
|
|
847
|
-
return /* @__PURE__ */ (0,
|
|
848
|
-
|
|
972
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
973
|
+
import_factory28.ark.button,
|
|
849
974
|
{
|
|
850
975
|
"data-sidebar": "trigger",
|
|
851
976
|
"data-slot": "sidebar-trigger",
|
|
852
977
|
type: "button",
|
|
853
978
|
"aria-label": "Toggle Sidebar",
|
|
854
|
-
className: (0,
|
|
979
|
+
className: (0, import_helix38.cn)(import_helix38.sidebarStyles.triggerClass, className),
|
|
855
980
|
onClick: (event) => {
|
|
856
981
|
onClick?.(event);
|
|
857
982
|
toggleSidebar();
|
|
@@ -863,13 +988,13 @@ function Trigger({ className, onClick, children, ...props }) {
|
|
|
863
988
|
}
|
|
864
989
|
|
|
865
990
|
// src/sidebar/Rail.tsx
|
|
866
|
-
var
|
|
867
|
-
var
|
|
868
|
-
var
|
|
991
|
+
var import_factory29 = require("@ark-ui/react/factory");
|
|
992
|
+
var import_helix39 = require("@cloudvoyant/helix");
|
|
993
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
869
994
|
function Rail({ className, ...props }) {
|
|
870
995
|
const { toggleSidebar } = useSidebar();
|
|
871
|
-
return /* @__PURE__ */ (0,
|
|
872
|
-
|
|
996
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
997
|
+
import_factory29.ark.button,
|
|
873
998
|
{
|
|
874
999
|
"data-sidebar": "rail",
|
|
875
1000
|
"data-slot": "sidebar-rail",
|
|
@@ -878,31 +1003,31 @@ function Rail({ className, ...props }) {
|
|
|
878
1003
|
tabIndex: -1,
|
|
879
1004
|
onClick: toggleSidebar,
|
|
880
1005
|
title: "Toggle Sidebar",
|
|
881
|
-
className: (0,
|
|
1006
|
+
className: (0, import_helix39.cn)(import_helix39.sidebarStyles.railClass, className),
|
|
882
1007
|
...props
|
|
883
1008
|
}
|
|
884
1009
|
);
|
|
885
1010
|
}
|
|
886
1011
|
|
|
887
1012
|
// src/sidebar/Inset.tsx
|
|
888
|
-
var
|
|
889
|
-
var
|
|
890
|
-
var
|
|
1013
|
+
var import_factory30 = require("@ark-ui/react/factory");
|
|
1014
|
+
var import_helix40 = require("@cloudvoyant/helix");
|
|
1015
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
891
1016
|
function Inset({ className, ...props }) {
|
|
892
|
-
return /* @__PURE__ */ (0,
|
|
1017
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_factory30.ark.main, { "data-slot": "sidebar-inset", className: (0, import_helix40.cn)(import_helix40.sidebarStyles.insetClass, className), ...props });
|
|
893
1018
|
}
|
|
894
1019
|
|
|
895
1020
|
// src/sidebar/Input.tsx
|
|
896
|
-
var
|
|
897
|
-
var
|
|
898
|
-
var
|
|
1021
|
+
var import_factory31 = require("@ark-ui/react/factory");
|
|
1022
|
+
var import_helix41 = require("@cloudvoyant/helix");
|
|
1023
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
899
1024
|
function Input({ className, ...props }) {
|
|
900
|
-
return /* @__PURE__ */ (0,
|
|
901
|
-
|
|
1025
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
1026
|
+
import_factory31.ark.input,
|
|
902
1027
|
{
|
|
903
1028
|
"data-slot": "sidebar-input",
|
|
904
1029
|
"data-sidebar": "input",
|
|
905
|
-
className: (0,
|
|
1030
|
+
className: (0, import_helix41.cn)(import_helix41.sidebarStyles.inputClass, className),
|
|
906
1031
|
...props
|
|
907
1032
|
}
|
|
908
1033
|
);
|
|
@@ -910,44 +1035,44 @@ function Input({ className, ...props }) {
|
|
|
910
1035
|
|
|
911
1036
|
// src/tabs.tsx
|
|
912
1037
|
var import_tabs = require("@ark-ui/react/tabs");
|
|
913
|
-
var
|
|
914
|
-
var
|
|
1038
|
+
var import_helix42 = require("@cloudvoyant/helix");
|
|
1039
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
915
1040
|
function Tabs({ className, lazyMount = true, unmountOnExit = true, ...props }) {
|
|
916
|
-
return /* @__PURE__ */ (0,
|
|
1041
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
917
1042
|
import_tabs.TabsRoot,
|
|
918
1043
|
{
|
|
919
1044
|
lazyMount,
|
|
920
1045
|
unmountOnExit,
|
|
921
|
-
className: (0,
|
|
1046
|
+
className: (0, import_helix42.cn)(import_helix42.tabsRootBase, className),
|
|
922
1047
|
...props
|
|
923
1048
|
}
|
|
924
1049
|
);
|
|
925
1050
|
}
|
|
926
1051
|
function TabsList({ variant = "default", className, children, ...props }) {
|
|
927
|
-
return /* @__PURE__ */ (0,
|
|
1052
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_tabs.TabList, { className: (0, import_helix42.cn)(import_helix42.tabsListBase, (0, import_helix42.tabsListVariants)({ variant }), className), ...props, children: [
|
|
928
1053
|
children,
|
|
929
|
-
/* @__PURE__ */ (0,
|
|
1054
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_tabs.TabIndicator, { className: (0, import_helix42.cn)(import_helix42.tabsIndicatorBase, (0, import_helix42.tabsIndicatorVariants)({ variant })) })
|
|
930
1055
|
] });
|
|
931
1056
|
}
|
|
932
1057
|
function TabsTrigger({ className, ...props }) {
|
|
933
|
-
return /* @__PURE__ */ (0,
|
|
1058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_tabs.TabTrigger, { className: (0, import_helix42.cn)(import_helix42.tabsTriggerBase, className), ...props });
|
|
934
1059
|
}
|
|
935
1060
|
function TabsContent({ className, ...props }) {
|
|
936
|
-
return /* @__PURE__ */ (0,
|
|
1061
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_tabs.TabContent, { className: (0, import_helix42.cn)(import_helix42.tabsContentBase, className), ...props });
|
|
937
1062
|
}
|
|
938
1063
|
var useTabs = import_tabs.useTabsContext;
|
|
939
1064
|
|
|
940
1065
|
// src/pagination.tsx
|
|
941
1066
|
var import_pagination = require("@ark-ui/react/pagination");
|
|
942
|
-
var
|
|
943
|
-
var
|
|
944
|
-
var
|
|
1067
|
+
var import_factory32 = require("@ark-ui/react/factory");
|
|
1068
|
+
var import_helix43 = require("@cloudvoyant/helix");
|
|
1069
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
945
1070
|
function Pagination({ className, ...props }) {
|
|
946
|
-
return /* @__PURE__ */ (0,
|
|
1071
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_pagination.PaginationRoot, { className: (0, import_helix43.cn)(import_helix43.paginationRootBase, className), ...props });
|
|
947
1072
|
}
|
|
948
1073
|
function PaginationPrevious(props) {
|
|
949
|
-
return /* @__PURE__ */ (0,
|
|
950
|
-
/* @__PURE__ */ (0,
|
|
1074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_pagination.PaginationPrevTrigger, { asChild: true, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_factory32.ark.button, { className: (0, import_helix43.cn)(import_helix43.paginationTriggerBase), children: [
|
|
1075
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
951
1076
|
"svg",
|
|
952
1077
|
{
|
|
953
1078
|
viewBox: "0 0 24 24",
|
|
@@ -957,16 +1082,16 @@ function PaginationPrevious(props) {
|
|
|
957
1082
|
strokeLinecap: "round",
|
|
958
1083
|
strokeLinejoin: "round",
|
|
959
1084
|
"aria-hidden": "true",
|
|
960
|
-
children: /* @__PURE__ */ (0,
|
|
1085
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("path", { d: "m15 18-6-6 6-6" })
|
|
961
1086
|
}
|
|
962
1087
|
),
|
|
963
1088
|
"Previous"
|
|
964
1089
|
] }) });
|
|
965
1090
|
}
|
|
966
1091
|
function PaginationNext(props) {
|
|
967
|
-
return /* @__PURE__ */ (0,
|
|
1092
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_pagination.PaginationNextTrigger, { asChild: true, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_factory32.ark.button, { className: (0, import_helix43.cn)(import_helix43.paginationTriggerBase), children: [
|
|
968
1093
|
"Next",
|
|
969
|
-
/* @__PURE__ */ (0,
|
|
1094
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
970
1095
|
"svg",
|
|
971
1096
|
{
|
|
972
1097
|
viewBox: "0 0 24 24",
|
|
@@ -976,21 +1101,21 @@ function PaginationNext(props) {
|
|
|
976
1101
|
strokeLinecap: "round",
|
|
977
1102
|
strokeLinejoin: "round",
|
|
978
1103
|
"aria-hidden": "true",
|
|
979
|
-
children: /* @__PURE__ */ (0,
|
|
1104
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("path", { d: "m9 18 6-6-6-6" })
|
|
980
1105
|
}
|
|
981
1106
|
)
|
|
982
1107
|
] }) });
|
|
983
1108
|
}
|
|
984
1109
|
function PaginationItem({ className, children, ...rest }) {
|
|
985
|
-
return /* @__PURE__ */ (0,
|
|
1110
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_pagination.PaginationItem, { asChild: true, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_factory32.ark.button, { className: (0, import_helix43.cn)(import_helix43.paginationItemBase, className), children }) });
|
|
986
1111
|
}
|
|
987
1112
|
function PaginationItems() {
|
|
988
|
-
return /* @__PURE__ */ (0,
|
|
989
|
-
(page, index) => page.type === "page" ? /* @__PURE__ */ (0,
|
|
1113
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_pagination.PaginationContext, { children: ({ pages }) => pages.map(
|
|
1114
|
+
(page, index) => page.type === "page" ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(PaginationItem, { type: "page", value: page.value, children: page.value }, page.value) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(PaginationEllipsis, { index }, `ellipsis-${index}`)
|
|
990
1115
|
) });
|
|
991
1116
|
}
|
|
992
1117
|
function PaginationEllipsis({ className, ...rest }) {
|
|
993
|
-
return /* @__PURE__ */ (0,
|
|
1118
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_pagination.PaginationEllipsis, { className: (0, import_helix43.cn)(import_helix43.paginationEllipsisBase, className), ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
994
1119
|
"svg",
|
|
995
1120
|
{
|
|
996
1121
|
viewBox: "0 0 24 24",
|
|
@@ -1001,9 +1126,9 @@ function PaginationEllipsis({ className, ...rest }) {
|
|
|
1001
1126
|
strokeLinejoin: "round",
|
|
1002
1127
|
"aria-hidden": "true",
|
|
1003
1128
|
children: [
|
|
1004
|
-
/* @__PURE__ */ (0,
|
|
1005
|
-
/* @__PURE__ */ (0,
|
|
1006
|
-
/* @__PURE__ */ (0,
|
|
1129
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("circle", { cx: "12", cy: "12", r: "1" }),
|
|
1130
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("circle", { cx: "19", cy: "12", r: "1" }),
|
|
1131
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("circle", { cx: "5", cy: "12", r: "1" })
|
|
1007
1132
|
]
|
|
1008
1133
|
}
|
|
1009
1134
|
) });
|
|
@@ -1011,14 +1136,14 @@ function PaginationEllipsis({ className, ...rest }) {
|
|
|
1011
1136
|
|
|
1012
1137
|
// src/navbar.tsx
|
|
1013
1138
|
var React4 = __toESM(require("react"), 1);
|
|
1014
|
-
var
|
|
1139
|
+
var import_factory33 = require("@ark-ui/react/factory");
|
|
1015
1140
|
var import_portal = require("@ark-ui/react/portal");
|
|
1016
1141
|
var import_collapsible = require("@ark-ui/react/collapsible");
|
|
1017
1142
|
var import_dialog = require("@ark-ui/react/dialog");
|
|
1018
1143
|
var import_navigation_menu = require("@ark-ui/react/navigation-menu");
|
|
1019
|
-
var import_helix43 = require("@cloudvoyant/helix");
|
|
1020
1144
|
var import_helix44 = require("@cloudvoyant/helix");
|
|
1021
|
-
var
|
|
1145
|
+
var import_helix45 = require("@cloudvoyant/helix");
|
|
1146
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
1022
1147
|
var SCROLL_THRESHOLD = 24;
|
|
1023
1148
|
function resolveScrollContainer(el) {
|
|
1024
1149
|
for (let n = el; n; n = n.parentElement) {
|
|
@@ -1081,7 +1206,7 @@ function NavbarProvider({
|
|
|
1081
1206
|
}),
|
|
1082
1207
|
[id, open, scrolled, hovered, slots, setSlot]
|
|
1083
1208
|
);
|
|
1084
|
-
return /* @__PURE__ */ (0,
|
|
1209
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(NavbarContext.Provider, { value: contextValue, children });
|
|
1085
1210
|
}
|
|
1086
1211
|
function Navbar({
|
|
1087
1212
|
variant = "sticky",
|
|
@@ -1120,7 +1245,7 @@ function Navbar({
|
|
|
1120
1245
|
el.style.overflow = prev;
|
|
1121
1246
|
};
|
|
1122
1247
|
}, [base.open]);
|
|
1123
|
-
return /* @__PURE__ */ (0,
|
|
1248
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(NavbarContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1124
1249
|
"header",
|
|
1125
1250
|
{
|
|
1126
1251
|
ref: headerRef,
|
|
@@ -1128,11 +1253,11 @@ function Navbar({
|
|
|
1128
1253
|
"data-scrolled": base.scrolled || void 0,
|
|
1129
1254
|
"data-hidden": hidden || void 0,
|
|
1130
1255
|
"data-shrunk": shrunk || void 0,
|
|
1131
|
-
className: (0,
|
|
1132
|
-
(0,
|
|
1133
|
-
|
|
1134
|
-
(0,
|
|
1135
|
-
shrunk &&
|
|
1256
|
+
className: (0, import_helix44.cn)(
|
|
1257
|
+
(0, import_helix44.navbarVariants)({ variant, floating }),
|
|
1258
|
+
import_helix44.navbarContainerBase,
|
|
1259
|
+
(0, import_helix44.navbarDensityVariants)({ density }),
|
|
1260
|
+
shrunk && import_helix44.navbarShrunkBase,
|
|
1136
1261
|
className
|
|
1137
1262
|
),
|
|
1138
1263
|
onMouseEnter: () => setHovered(true),
|
|
@@ -1144,11 +1269,11 @@ function Navbar({
|
|
|
1144
1269
|
}
|
|
1145
1270
|
function NavbarActivationArea({ className, children, ...props }) {
|
|
1146
1271
|
const { setHovered } = useNavbar();
|
|
1147
|
-
return /* @__PURE__ */ (0,
|
|
1148
|
-
|
|
1272
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1273
|
+
import_factory33.ark.div,
|
|
1149
1274
|
{
|
|
1150
1275
|
"data-slot": "navbar-activation-area",
|
|
1151
|
-
className: (0,
|
|
1276
|
+
className: (0, import_helix44.cn)(import_helix44.navbarActivationAreaBase, className),
|
|
1152
1277
|
onMouseEnter: () => setHovered(true),
|
|
1153
1278
|
onMouseLeave: () => setHovered(false),
|
|
1154
1279
|
...props,
|
|
@@ -1158,7 +1283,7 @@ function NavbarActivationArea({ className, children, ...props }) {
|
|
|
1158
1283
|
}
|
|
1159
1284
|
function NavbarBrand({ className, children, ...props }) {
|
|
1160
1285
|
useNavbarSlot("brand", children);
|
|
1161
|
-
return /* @__PURE__ */ (0,
|
|
1286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_factory33.ark.div, { "data-slot": "navbar-brand", className: (0, import_helix44.cn)(import_helix44.navbarBrandBase, className), ...props, children });
|
|
1162
1287
|
}
|
|
1163
1288
|
function NavbarMenu({
|
|
1164
1289
|
placement = "center",
|
|
@@ -1168,21 +1293,21 @@ function NavbarMenu({
|
|
|
1168
1293
|
}) {
|
|
1169
1294
|
const { scrolled, density, variant } = useNavbar();
|
|
1170
1295
|
const menuDensity = density === "compact" || variant === "shrink" && scrolled ? "compact" : "relaxed";
|
|
1171
|
-
return /* @__PURE__ */ (0,
|
|
1172
|
-
|
|
1296
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(NavbarMenuStyleContext.Provider, { value: { density: menuDensity, variant: "default", inContent: false }, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1297
|
+
import_factory33.ark.div,
|
|
1173
1298
|
{
|
|
1174
1299
|
"data-slot": "navbar-menu",
|
|
1175
1300
|
"data-placement": placement,
|
|
1176
|
-
className: (0,
|
|
1177
|
-
children: /* @__PURE__ */ (0,
|
|
1301
|
+
className: (0, import_helix44.cn)(import_helix44.navbarMenuBase, (0, import_helix44.navbarMenuPlacementVariants)({ placement }), className),
|
|
1302
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_navigation_menu.NavigationMenuRoot, { "data-density": menuDensity, className: (0, import_helix44.cn)(import_helix44.navbarMenuRootBase), ...props, children: [
|
|
1178
1303
|
children,
|
|
1179
|
-
/* @__PURE__ */ (0,
|
|
1304
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_navigation_menu.NavigationMenuViewportPositioner, { className: (0, import_helix44.cn)(import_helix44.navbarMenuViewportPositionerBase), children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_navigation_menu.NavigationMenuViewport, { className: (0, import_helix44.cn)(import_helix44.navbarMenuViewportBase) }) })
|
|
1180
1305
|
] })
|
|
1181
1306
|
}
|
|
1182
1307
|
) });
|
|
1183
1308
|
}
|
|
1184
1309
|
function NavbarMenuList({ className, children, ...props }) {
|
|
1185
|
-
return /* @__PURE__ */ (0,
|
|
1310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_navigation_menu.NavigationMenuList, { className: (0, import_helix44.cn)(import_helix44.navbarMenuListBase, className), ...props, children });
|
|
1186
1311
|
}
|
|
1187
1312
|
function NavbarMenuItem({
|
|
1188
1313
|
variant = "default",
|
|
@@ -1190,11 +1315,11 @@ function NavbarMenuItem({
|
|
|
1190
1315
|
...props
|
|
1191
1316
|
}) {
|
|
1192
1317
|
const { density } = React4.useContext(NavbarMenuStyleContext);
|
|
1193
|
-
return /* @__PURE__ */ (0,
|
|
1318
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(NavbarMenuStyleContext.Provider, { value: { density, variant, inContent: false }, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_navigation_menu.NavigationMenuItem, { "data-variant": variant, className: (0, import_helix44.cn)(import_helix44.navbarMenuItemBase, className), ...props }) });
|
|
1194
1319
|
}
|
|
1195
1320
|
function NavbarMenuTrigger({ asChild, className, children, ...props }) {
|
|
1196
1321
|
const { density, variant } = React4.useContext(NavbarMenuStyleContext);
|
|
1197
|
-
const chevron = /* @__PURE__ */ (0,
|
|
1322
|
+
const chevron = /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1198
1323
|
"svg",
|
|
1199
1324
|
{
|
|
1200
1325
|
className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
@@ -1205,36 +1330,36 @@ function NavbarMenuTrigger({ asChild, className, children, ...props }) {
|
|
|
1205
1330
|
strokeWidth: "2",
|
|
1206
1331
|
strokeLinecap: "round",
|
|
1207
1332
|
strokeLinejoin: "round",
|
|
1208
|
-
children: /* @__PURE__ */ (0,
|
|
1333
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("path", { d: "m6 9 6 6 6-6" })
|
|
1209
1334
|
}
|
|
1210
1335
|
);
|
|
1211
|
-
return /* @__PURE__ */ (0,
|
|
1336
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_navigation_menu.NavigationMenuTrigger, { asChild, className: (0, import_helix44.cn)((0, import_helix44.navbarMenuTriggerStyle)({ density, variant }), className), ...props, children: asChild ? children : /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
|
|
1212
1337
|
children,
|
|
1213
1338
|
chevron
|
|
1214
1339
|
] }) });
|
|
1215
1340
|
}
|
|
1216
1341
|
function NavbarMenuContent({ className, children, ...props }) {
|
|
1217
|
-
return /* @__PURE__ */ (0,
|
|
1342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(NavbarMenuStyleContext.Provider, { value: { density: "relaxed", variant: "default", inContent: true }, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_navigation_menu.NavigationMenuContent, { className: (0, import_helix44.cn)(import_helix44.navbarMenuContentBase, className), ...props, children }) });
|
|
1218
1343
|
}
|
|
1219
1344
|
function NavbarMenuLink({ className, children, ...props }) {
|
|
1220
1345
|
const { density, variant, inContent } = React4.useContext(NavbarMenuStyleContext);
|
|
1221
|
-
const classes = inContent ? (0,
|
|
1222
|
-
return /* @__PURE__ */ (0,
|
|
1346
|
+
const classes = inContent ? (0, import_helix44.cn)(import_helix44.navbarMenuLinkBase, className) : (0, import_helix44.cn)((0, import_helix44.navbarMenuTriggerStyle)({ density, variant }), className);
|
|
1347
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_navigation_menu.NavigationMenuLink, { className: classes, ...props, children });
|
|
1223
1348
|
}
|
|
1224
1349
|
function NavbarMobileMenu({ className, children, ...props }) {
|
|
1225
|
-
return /* @__PURE__ */ (0,
|
|
1350
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_collapsible.CollapsibleRoot, { "data-slot": "navbar-mobile-menu", className: (0, import_helix44.cn)("group", className), ...props, children });
|
|
1226
1351
|
}
|
|
1227
1352
|
function NavbarMobileMenuTrigger({ className, children, ...props }) {
|
|
1228
|
-
return /* @__PURE__ */ (0,
|
|
1353
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_collapsible.CollapsibleTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
1229
1354
|
"button",
|
|
1230
1355
|
{
|
|
1231
1356
|
type: "button",
|
|
1232
1357
|
"data-slot": "navbar-mobile-menu-trigger",
|
|
1233
|
-
className: (0,
|
|
1358
|
+
className: (0, import_helix44.cn)(import_helix44.navbarMobileMenuTriggerBase, className),
|
|
1234
1359
|
...props,
|
|
1235
1360
|
children: [
|
|
1236
1361
|
children,
|
|
1237
|
-
/* @__PURE__ */ (0,
|
|
1362
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1238
1363
|
"svg",
|
|
1239
1364
|
{
|
|
1240
1365
|
className: "size-4 transition-transform duration-200 group-data-[state=open]:rotate-180",
|
|
@@ -1245,7 +1370,7 @@ function NavbarMobileMenuTrigger({ className, children, ...props }) {
|
|
|
1245
1370
|
strokeWidth: "2",
|
|
1246
1371
|
strokeLinecap: "round",
|
|
1247
1372
|
strokeLinejoin: "round",
|
|
1248
|
-
children: /* @__PURE__ */ (0,
|
|
1373
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("path", { d: "m6 9 6 6 6-6" })
|
|
1249
1374
|
}
|
|
1250
1375
|
)
|
|
1251
1376
|
]
|
|
@@ -1253,17 +1378,17 @@ function NavbarMobileMenuTrigger({ className, children, ...props }) {
|
|
|
1253
1378
|
) });
|
|
1254
1379
|
}
|
|
1255
1380
|
function NavbarMobileMenuContent({ className, children, ...props }) {
|
|
1256
|
-
return /* @__PURE__ */ (0,
|
|
1381
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_collapsible.CollapsibleContent, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { "data-slot": "navbar-mobile-menu-content", className: (0, import_helix44.cn)(import_helix44.navbarMobileMenuContentBase, className), ...props, children }) });
|
|
1257
1382
|
}
|
|
1258
1383
|
function NavbarMenuViewport({ className, ...props }) {
|
|
1259
|
-
return /* @__PURE__ */ (0,
|
|
1384
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_navigation_menu.NavigationMenuViewport, { className: (0, import_helix44.cn)(import_helix44.navbarMenuViewportBase, className), ...props });
|
|
1260
1385
|
}
|
|
1261
1386
|
function NavbarMenuIndicator({ className, ...props }) {
|
|
1262
|
-
return /* @__PURE__ */ (0,
|
|
1387
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_navigation_menu.NavigationMenuIndicator, { className: (0, import_helix44.cn)(import_helix44.navbarMenuIndicatorBase, className), ...props });
|
|
1263
1388
|
}
|
|
1264
1389
|
function NavbarActions({ className, children, ...props }) {
|
|
1265
1390
|
useNavbarSlot("actions", children);
|
|
1266
|
-
return /* @__PURE__ */ (0,
|
|
1391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_factory33.ark.div, { "data-slot": "navbar-actions", className: (0, import_helix44.cn)(import_helix44.navbarActionsBase, className), ...props, children });
|
|
1267
1392
|
}
|
|
1268
1393
|
function NavbarTrigger({
|
|
1269
1394
|
className,
|
|
@@ -1272,7 +1397,7 @@ function NavbarTrigger({
|
|
|
1272
1397
|
...props
|
|
1273
1398
|
}) {
|
|
1274
1399
|
const { id, open, setOpen, floating } = useNavbar();
|
|
1275
|
-
return /* @__PURE__ */ (0,
|
|
1400
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1276
1401
|
"button",
|
|
1277
1402
|
{
|
|
1278
1403
|
type: "button",
|
|
@@ -1280,10 +1405,10 @@ function NavbarTrigger({
|
|
|
1280
1405
|
"aria-expanded": open,
|
|
1281
1406
|
"aria-controls": id,
|
|
1282
1407
|
"aria-label": ariaLabel ?? "Toggle navigation menu",
|
|
1283
|
-
className: (0,
|
|
1408
|
+
className: (0, import_helix44.cn)((0, import_helix44.navbarTriggerVariants)({ floating }), "md:hidden", className),
|
|
1284
1409
|
onClick: () => setOpen(!open),
|
|
1285
1410
|
...props,
|
|
1286
|
-
children: children ?? /* @__PURE__ */ (0,
|
|
1411
|
+
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
1287
1412
|
"svg",
|
|
1288
1413
|
{
|
|
1289
1414
|
className: "size-4",
|
|
@@ -1295,9 +1420,9 @@ function NavbarTrigger({
|
|
|
1295
1420
|
strokeLinejoin: "round",
|
|
1296
1421
|
"aria-hidden": "true",
|
|
1297
1422
|
children: [
|
|
1298
|
-
/* @__PURE__ */ (0,
|
|
1299
|
-
/* @__PURE__ */ (0,
|
|
1300
|
-
/* @__PURE__ */ (0,
|
|
1423
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("line", { x1: "4", x2: "20", y1: "6", y2: "6" }),
|
|
1424
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("line", { x1: "4", x2: "20", y1: "12", y2: "12" }),
|
|
1425
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("line", { x1: "4", x2: "20", y1: "18", y2: "18" })
|
|
1301
1426
|
]
|
|
1302
1427
|
}
|
|
1303
1428
|
)
|
|
@@ -1314,14 +1439,14 @@ function NavbarMobileOverlay({ className, children, ...props }) {
|
|
|
1314
1439
|
document.addEventListener("keydown", onKeydown);
|
|
1315
1440
|
return () => document.removeEventListener("keydown", onKeydown);
|
|
1316
1441
|
}, [open, setOpen]);
|
|
1317
|
-
return /* @__PURE__ */ (0,
|
|
1318
|
-
/* @__PURE__ */ (0,
|
|
1319
|
-
/* @__PURE__ */ (0,
|
|
1320
|
-
/* @__PURE__ */ (0,
|
|
1321
|
-
/* @__PURE__ */ (0,
|
|
1322
|
-
/* @__PURE__ */ (0,
|
|
1442
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_portal.Portal, { container: portalRef, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_dialog.DialogRoot, { open, lazyMount: true, unmountOnExit: true, onOpenChange: ({ open: open2 }) => setOpen(open2), preventScroll: false, children: [
|
|
1443
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_dialog.DialogBackdrop, { className: "absolute inset-0 z-[100] bg-background/60 backdrop-blur-sm" }),
|
|
1444
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_dialog.DialogPositioner, { className: "absolute inset-0 z-[100]", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_dialog.DialogContent, { id, "data-slot": "navbar-mobile-overlay", className: (0, import_helix44.cn)(import_helix44.navbarMobileContentBase, className), ...props, children: [
|
|
1445
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_dialog.DialogTitle, { className: "sr-only", children: "Navigation menu" }),
|
|
1446
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_dialog.DialogDescription, { className: "sr-only", children: "Mobile navigation menu" }),
|
|
1447
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: import_helix44.navbarMobileHeaderBase, children: [
|
|
1323
1448
|
slots.brand,
|
|
1324
|
-
/* @__PURE__ */ (0,
|
|
1449
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_dialog.DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("button", { type: "button", "aria-label": "Close navigation menu", className: (0, import_helix44.cn)((0, import_helix44.navbarTriggerVariants)({ floating })), children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1325
1450
|
"svg",
|
|
1326
1451
|
{
|
|
1327
1452
|
className: "size-4",
|
|
@@ -1332,15 +1457,366 @@ function NavbarMobileOverlay({ className, children, ...props }) {
|
|
|
1332
1457
|
strokeLinecap: "round",
|
|
1333
1458
|
strokeLinejoin: "round",
|
|
1334
1459
|
"aria-hidden": "true",
|
|
1335
|
-
children: /* @__PURE__ */ (0,
|
|
1460
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("path", { d: "M18 6 6 18M6 6l12 12" })
|
|
1336
1461
|
}
|
|
1337
1462
|
) }) })
|
|
1338
1463
|
] }),
|
|
1339
|
-
/* @__PURE__ */ (0,
|
|
1340
|
-
slots.actions ? /* @__PURE__ */ (0,
|
|
1464
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: import_helix44.navbarMobileMenuBase, children }),
|
|
1465
|
+
slots.actions ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: import_helix44.navbarMobileActionsBase, children: slots.actions }) : null
|
|
1341
1466
|
] }) })
|
|
1342
1467
|
] }) });
|
|
1343
1468
|
}
|
|
1469
|
+
|
|
1470
|
+
// src/field.tsx
|
|
1471
|
+
var import_field = require("@ark-ui/react/field");
|
|
1472
|
+
var import_fieldset = require("@ark-ui/react/fieldset");
|
|
1473
|
+
var import_helix46 = require("@cloudvoyant/helix");
|
|
1474
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
1475
|
+
function Field({ className, ...props }) {
|
|
1476
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_field.FieldRoot, { className: (0, import_helix46.cn)(import_helix46.fieldRootBase, className), ...props });
|
|
1477
|
+
}
|
|
1478
|
+
function FieldLabel({ className, ...props }) {
|
|
1479
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_field.FieldLabel, { className: (0, import_helix46.cn)(import_helix46.fieldLabelBase, className), ...props });
|
|
1480
|
+
}
|
|
1481
|
+
function FieldHelper({ className, ...props }) {
|
|
1482
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_field.FieldHelperText, { className: (0, import_helix46.cn)(import_helix46.fieldHelperBase, className), ...props });
|
|
1483
|
+
}
|
|
1484
|
+
function FieldError({ className, ...props }) {
|
|
1485
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_field.FieldErrorText, { className: (0, import_helix46.cn)(import_helix46.fieldErrorBase, className), ...props });
|
|
1486
|
+
}
|
|
1487
|
+
function FieldRequiredIndicator({ className, ...props }) {
|
|
1488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_field.FieldRequiredIndicator, { className: (0, import_helix46.cn)(import_helix46.fieldRequiredIndicatorBase, className), ...props });
|
|
1489
|
+
}
|
|
1490
|
+
function FieldSet({ className, ...props }) {
|
|
1491
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_fieldset.FieldsetRoot, { className: (0, import_helix46.cn)(import_helix46.fieldsetRootBase, className), ...props });
|
|
1492
|
+
}
|
|
1493
|
+
function FieldSetLegend({ className, ...props }) {
|
|
1494
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_fieldset.FieldsetLegend, { className: (0, import_helix46.cn)(import_helix46.fieldsetLegendBase, className), ...props });
|
|
1495
|
+
}
|
|
1496
|
+
function FieldSetHelper({ className, ...props }) {
|
|
1497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_fieldset.FieldsetHelperText, { className: (0, import_helix46.cn)(import_helix46.fieldsetHelperBase, className), ...props });
|
|
1498
|
+
}
|
|
1499
|
+
function FieldSetError({ className, ...props }) {
|
|
1500
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_fieldset.FieldsetErrorText, { className: (0, import_helix46.cn)(import_helix46.fieldsetErrorBase, className), ...props });
|
|
1501
|
+
}
|
|
1502
|
+
var useField = import_field.useFieldContext;
|
|
1503
|
+
|
|
1504
|
+
// src/input.tsx
|
|
1505
|
+
var import_field2 = require("@ark-ui/react/field");
|
|
1506
|
+
var import_helix47 = require("@cloudvoyant/helix");
|
|
1507
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
1508
|
+
function Input2({ className, size, ...props }) {
|
|
1509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_field2.FieldInput, { className: (0, import_helix47.cn)((0, import_helix47.inputVariants)({ size }), className), ...props });
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
// src/textarea.tsx
|
|
1513
|
+
var import_field3 = require("@ark-ui/react/field");
|
|
1514
|
+
var import_helix48 = require("@cloudvoyant/helix");
|
|
1515
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
1516
|
+
function Textarea({ className, ...props }) {
|
|
1517
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_field3.FieldTextarea, { className: (0, import_helix48.cn)(import_helix48.textareaBase, className), ...props });
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
// src/number-input.tsx
|
|
1521
|
+
var import_number_input = require("@ark-ui/react/number-input");
|
|
1522
|
+
var import_helix49 = require("@cloudvoyant/helix");
|
|
1523
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
1524
|
+
function NumberInput({ className, ...props }) {
|
|
1525
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_number_input.NumberInputRoot, { className: (0, import_helix49.cn)(import_helix49.numberInputRootBase, className), ...props });
|
|
1526
|
+
}
|
|
1527
|
+
function NumberInputControl({ className, ...props }) {
|
|
1528
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_number_input.NumberInputControl, { className: (0, import_helix49.cn)(import_helix49.numberInputControlBase, className), ...props });
|
|
1529
|
+
}
|
|
1530
|
+
function NumberInputInput({ className, ...props }) {
|
|
1531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_number_input.NumberInputInput, { className: (0, import_helix49.cn)(import_helix49.numberInputInputBase, className), ...props });
|
|
1532
|
+
}
|
|
1533
|
+
function NumberInputDecrement({ className, ...props }) {
|
|
1534
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_number_input.NumberInputDecrementTrigger, { "aria-label": "Decrement", className: (0, import_helix49.cn)(import_helix49.numberInputTriggerBase, className), ...props });
|
|
1535
|
+
}
|
|
1536
|
+
function NumberInputIncrement({ className, ...props }) {
|
|
1537
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_number_input.NumberInputIncrementTrigger, { "aria-label": "Increment", className: (0, import_helix49.cn)(import_helix49.numberInputTriggerBase, className), ...props });
|
|
1538
|
+
}
|
|
1539
|
+
var useNumberInput = import_number_input.useNumberInputContext;
|
|
1540
|
+
|
|
1541
|
+
// src/checkbox.tsx
|
|
1542
|
+
var import_react2 = require("react");
|
|
1543
|
+
var import_checkbox = require("@ark-ui/react/checkbox");
|
|
1544
|
+
var import_helix50 = require("@cloudvoyant/helix");
|
|
1545
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
1546
|
+
var CheckboxSizeContext = (0, import_react2.createContext)("md");
|
|
1547
|
+
function Checkbox({ className, size = "md", children, ...props }) {
|
|
1548
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(CheckboxSizeContext.Provider, { value: size, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_checkbox.CheckboxRoot, { className: (0, import_helix50.cn)("flex items-center gap-2", className), ...props, children: [
|
|
1549
|
+
children,
|
|
1550
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_checkbox.CheckboxHiddenInput, {})
|
|
1551
|
+
] }) });
|
|
1552
|
+
}
|
|
1553
|
+
function CheckboxControl({ className, ...props }) {
|
|
1554
|
+
const size = (0, import_react2.useContext)(CheckboxSizeContext);
|
|
1555
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_checkbox.CheckboxControl, { className: (0, import_helix50.cn)((0, import_helix50.checkboxVariants)({ size }), className), ...props });
|
|
1556
|
+
}
|
|
1557
|
+
function CheckboxIndicator({ className, ...props }) {
|
|
1558
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_checkbox.CheckboxIndicator, { className: (0, import_helix50.cn)(import_helix50.checkboxIndicatorBase, className), ...props });
|
|
1559
|
+
}
|
|
1560
|
+
function CheckboxLabel({ className, ...props }) {
|
|
1561
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_checkbox.CheckboxLabel, { className: (0, import_helix50.cn)(import_helix50.checkboxLabelBase, className), ...props });
|
|
1562
|
+
}
|
|
1563
|
+
function CheckboxGroup({ className, ...props }) {
|
|
1564
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_checkbox.CheckboxGroup, { className: (0, import_helix50.cn)(import_helix50.checkboxGroupBase, className), ...props });
|
|
1565
|
+
}
|
|
1566
|
+
var useCheckbox = import_checkbox.useCheckboxContext;
|
|
1567
|
+
|
|
1568
|
+
// src/switch.tsx
|
|
1569
|
+
var import_react3 = require("react");
|
|
1570
|
+
var import_switch = require("@ark-ui/react/switch");
|
|
1571
|
+
var import_helix51 = require("@cloudvoyant/helix");
|
|
1572
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
1573
|
+
var SwitchSizeContext = (0, import_react3.createContext)("md");
|
|
1574
|
+
function Switch({ className, size = "md", children, ...props }) {
|
|
1575
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(SwitchSizeContext.Provider, { value: size, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_switch.SwitchRoot, { className: (0, import_helix51.cn)("flex items-center gap-2", className), ...props, children: [
|
|
1576
|
+
children,
|
|
1577
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_switch.SwitchHiddenInput, {})
|
|
1578
|
+
] }) });
|
|
1579
|
+
}
|
|
1580
|
+
function SwitchControl({ className, ...props }) {
|
|
1581
|
+
const size = (0, import_react3.useContext)(SwitchSizeContext);
|
|
1582
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_switch.SwitchControl, { className: (0, import_helix51.cn)((0, import_helix51.switchVariants)({ size }), import_helix51.switchControlBase, className), ...props });
|
|
1583
|
+
}
|
|
1584
|
+
function SwitchThumb({ className, ...props }) {
|
|
1585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_switch.SwitchThumb, { className: (0, import_helix51.cn)(import_helix51.switchThumbBase, className), ...props });
|
|
1586
|
+
}
|
|
1587
|
+
function SwitchLabel({ className, ...props }) {
|
|
1588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_switch.SwitchLabel, { className: (0, import_helix51.cn)(import_helix51.switchLabelBase, className), ...props });
|
|
1589
|
+
}
|
|
1590
|
+
var useSwitch = import_switch.useSwitchContext;
|
|
1591
|
+
|
|
1592
|
+
// src/select.tsx
|
|
1593
|
+
var import_factory34 = require("@ark-ui/react/factory");
|
|
1594
|
+
var import_portal2 = require("@ark-ui/react/portal");
|
|
1595
|
+
var import_react5 = require("react");
|
|
1596
|
+
var import_select = require("@ark-ui/react/select");
|
|
1597
|
+
var import_helix52 = require("@cloudvoyant/helix");
|
|
1598
|
+
|
|
1599
|
+
// src/use-media-query.ts
|
|
1600
|
+
var import_react4 = require("react");
|
|
1601
|
+
function useMediaQuery(query) {
|
|
1602
|
+
return (0, import_react4.useSyncExternalStore)(
|
|
1603
|
+
(onStoreChange) => {
|
|
1604
|
+
const mql = window.matchMedia(query);
|
|
1605
|
+
mql.addEventListener("change", onStoreChange);
|
|
1606
|
+
return () => mql.removeEventListener("change", onStoreChange);
|
|
1607
|
+
},
|
|
1608
|
+
() => window.matchMedia(query).matches,
|
|
1609
|
+
() => false
|
|
1610
|
+
);
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
// src/select.tsx
|
|
1614
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
1615
|
+
function Select({ items, collection, size, children, ...props }) {
|
|
1616
|
+
const isCoarse = useMediaQuery("(pointer: coarse)");
|
|
1617
|
+
const resolvedCollection = (0, import_react5.useMemo)(
|
|
1618
|
+
() => collection ?? (0, import_select.createListCollection)({ items: items ?? [] }),
|
|
1619
|
+
[collection, items]
|
|
1620
|
+
);
|
|
1621
|
+
if (isCoarse && items) {
|
|
1622
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
1623
|
+
SelectNative,
|
|
1624
|
+
{
|
|
1625
|
+
items,
|
|
1626
|
+
size,
|
|
1627
|
+
value: props.value?.[0],
|
|
1628
|
+
defaultValue: props.defaultValue?.[0],
|
|
1629
|
+
onValueChange: (value) => props.onValueChange?.({ value: [value], items: items.filter((i) => i.value === value) }),
|
|
1630
|
+
invalid: props.invalid,
|
|
1631
|
+
disabled: props.disabled,
|
|
1632
|
+
name: props.name,
|
|
1633
|
+
form: props.form,
|
|
1634
|
+
required: props.required
|
|
1635
|
+
}
|
|
1636
|
+
);
|
|
1637
|
+
}
|
|
1638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_select.SelectRoot, { collection: resolvedCollection, ...props, children: [
|
|
1639
|
+
children,
|
|
1640
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_select.SelectHiddenSelect, {})
|
|
1641
|
+
] });
|
|
1642
|
+
}
|
|
1643
|
+
function SelectTrigger({ size = "md", className, ...props }) {
|
|
1644
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_select.SelectTrigger, { className: (0, import_helix52.cn)((0, import_helix52.inputVariants)({ size }), import_helix52.selectTriggerBase, className), ...props });
|
|
1645
|
+
}
|
|
1646
|
+
function SelectValue({ className, ...props }) {
|
|
1647
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_select.SelectValueText, { className: (0, import_helix52.cn)(import_helix52.selectValueBase, className), ...props });
|
|
1648
|
+
}
|
|
1649
|
+
function SelectIndicator({ className, ...props }) {
|
|
1650
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_select.SelectIndicator, { className: (0, import_helix52.cn)(import_helix52.selectIndicatorBase, className), ...props });
|
|
1651
|
+
}
|
|
1652
|
+
function SelectClearTrigger({ className, ...props }) {
|
|
1653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_select.SelectClearTrigger, { "aria-label": "Clear selection", className: (0, import_helix52.cn)(import_helix52.selectClearTriggerBase, className), ...props });
|
|
1654
|
+
}
|
|
1655
|
+
function SelectContent({ className, ...props }) {
|
|
1656
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_portal2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_select.SelectPositioner, { className: import_helix52.selectPositionerBase, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_select.SelectContent, { className: (0, import_helix52.cn)(import_helix52.selectContentBase, className), ...props }) }) });
|
|
1657
|
+
}
|
|
1658
|
+
function SelectItemGroup({ className, ...props }) {
|
|
1659
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_select.SelectItemGroup, { className, ...props });
|
|
1660
|
+
}
|
|
1661
|
+
function SelectItemGroupLabel({ className, ...props }) {
|
|
1662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_select.SelectItemGroupLabel, { className: (0, import_helix52.cn)(import_helix52.selectItemGroupLabelBase, className), ...props });
|
|
1663
|
+
}
|
|
1664
|
+
function SelectItem({ item, className, ...props }) {
|
|
1665
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_select.SelectItem, { item, className: (0, import_helix52.cn)(import_helix52.selectItemBase, className), ...props });
|
|
1666
|
+
}
|
|
1667
|
+
function SelectItemText({ className, ...props }) {
|
|
1668
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_select.SelectItemText, { className: (0, import_helix52.cn)(import_helix52.selectItemTextBase, className), ...props });
|
|
1669
|
+
}
|
|
1670
|
+
function SelectItemIndicator({ className, ...props }) {
|
|
1671
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_select.SelectItemIndicator, { className: (0, import_helix52.cn)(import_helix52.selectItemIndicatorBase, className), ...props });
|
|
1672
|
+
}
|
|
1673
|
+
var useSelect = import_select.useSelectContext;
|
|
1674
|
+
function ChevronDownIcon() {
|
|
1675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
1676
|
+
"svg",
|
|
1677
|
+
{
|
|
1678
|
+
viewBox: "0 0 24 24",
|
|
1679
|
+
fill: "none",
|
|
1680
|
+
stroke: "currentColor",
|
|
1681
|
+
strokeWidth: "2",
|
|
1682
|
+
strokeLinecap: "round",
|
|
1683
|
+
strokeLinejoin: "round",
|
|
1684
|
+
"aria-hidden": true,
|
|
1685
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("path", { d: "m6 9 6 6 6-6" })
|
|
1686
|
+
}
|
|
1687
|
+
);
|
|
1688
|
+
}
|
|
1689
|
+
function SelectNative({
|
|
1690
|
+
items = [],
|
|
1691
|
+
value,
|
|
1692
|
+
defaultValue,
|
|
1693
|
+
onValueChange,
|
|
1694
|
+
size = "md",
|
|
1695
|
+
invalid,
|
|
1696
|
+
icon,
|
|
1697
|
+
className,
|
|
1698
|
+
...props
|
|
1699
|
+
}) {
|
|
1700
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_factory34.ark.div, { className: (0, import_helix52.cn)(import_helix52.nativeSelectWrapperBase, className), children: [
|
|
1701
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
1702
|
+
import_factory34.ark.select,
|
|
1703
|
+
{
|
|
1704
|
+
className: (0, import_helix52.nativeSelectVariants)({ size }),
|
|
1705
|
+
value,
|
|
1706
|
+
defaultValue,
|
|
1707
|
+
onChange: (event) => onValueChange?.(event.currentTarget.value),
|
|
1708
|
+
"aria-invalid": invalid,
|
|
1709
|
+
...props,
|
|
1710
|
+
children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_factory34.ark.option, { value: item.value, disabled: item.disabled, children: item.label }, item.value))
|
|
1711
|
+
}
|
|
1712
|
+
),
|
|
1713
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_factory34.ark.span, { className: import_helix52.nativeSelectIconBase, "aria-hidden": true, children: icon ?? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ChevronDownIcon, {}) })
|
|
1714
|
+
] });
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
// src/combobox.tsx
|
|
1718
|
+
var import_portal3 = require("@ark-ui/react/portal");
|
|
1719
|
+
var import_react6 = require("react");
|
|
1720
|
+
var import_combobox = require("@ark-ui/react/combobox");
|
|
1721
|
+
var import_helix53 = require("@cloudvoyant/helix");
|
|
1722
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
1723
|
+
function Combobox({
|
|
1724
|
+
items,
|
|
1725
|
+
collection,
|
|
1726
|
+
openOnClick = true,
|
|
1727
|
+
lazyMount = true,
|
|
1728
|
+
unmountOnExit = true,
|
|
1729
|
+
...props
|
|
1730
|
+
}) {
|
|
1731
|
+
const resolvedCollection = (0, import_react6.useMemo)(
|
|
1732
|
+
() => collection ?? (0, import_combobox.createListCollection)({ items: items ?? [] }),
|
|
1733
|
+
[collection, items]
|
|
1734
|
+
);
|
|
1735
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
1736
|
+
import_combobox.ComboboxRoot,
|
|
1737
|
+
{
|
|
1738
|
+
collection: resolvedCollection,
|
|
1739
|
+
openOnClick,
|
|
1740
|
+
lazyMount,
|
|
1741
|
+
unmountOnExit,
|
|
1742
|
+
...props
|
|
1743
|
+
}
|
|
1744
|
+
);
|
|
1745
|
+
}
|
|
1746
|
+
function ComboboxControl({ className, ...props }) {
|
|
1747
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_combobox.ComboboxControl, { className: (0, import_helix53.cn)(import_helix53.comboboxControlBase, className), ...props });
|
|
1748
|
+
}
|
|
1749
|
+
function ComboboxInput({ size = "md", className, ...props }) {
|
|
1750
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_combobox.ComboboxInput, { className: (0, import_helix53.cn)((0, import_helix53.inputVariants)({ size }), import_helix53.comboboxInputBase, className), ...props });
|
|
1751
|
+
}
|
|
1752
|
+
function ComboboxTrigger({ className, ...props }) {
|
|
1753
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_combobox.ComboboxTrigger, { className: (0, import_helix53.cn)(import_helix53.comboboxTriggerBase, className), ...props });
|
|
1754
|
+
}
|
|
1755
|
+
function ComboboxClear({ className, ...props }) {
|
|
1756
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_combobox.ComboboxClearTrigger, { "aria-label": "Clear", className: (0, import_helix53.cn)(import_helix53.comboboxClearTriggerBase, className), ...props });
|
|
1757
|
+
}
|
|
1758
|
+
function ComboboxContent({ className, ...props }) {
|
|
1759
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_portal3.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_combobox.ComboboxPositioner, { className: import_helix53.comboboxPositionerBase, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_combobox.ComboboxContent, { className: (0, import_helix53.cn)(import_helix53.comboboxContentBase, className), ...props }) }) });
|
|
1760
|
+
}
|
|
1761
|
+
function ComboboxItemGroup({ className, ...props }) {
|
|
1762
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_combobox.ComboboxItemGroup, { className, ...props });
|
|
1763
|
+
}
|
|
1764
|
+
function ComboboxItemGroupLabel({ className, ...props }) {
|
|
1765
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_combobox.ComboboxItemGroupLabel, { className: (0, import_helix53.cn)(import_helix53.comboboxItemGroupLabelBase, className), ...props });
|
|
1766
|
+
}
|
|
1767
|
+
function ComboboxItem({ item, showIndicator = true, className, ...props }) {
|
|
1768
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_combobox.ComboboxItem, { item, persistFocus: true, className: (0, import_helix53.cn)((0, import_helix53.comboboxItemVariants)({ showIndicator }), className), ...props });
|
|
1769
|
+
}
|
|
1770
|
+
function ComboboxItemText({ className, ...props }) {
|
|
1771
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_combobox.ComboboxItemText, { className, ...props });
|
|
1772
|
+
}
|
|
1773
|
+
function ComboboxItemIndicator({ className, ...props }) {
|
|
1774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_combobox.ComboboxItemIndicator, { className: (0, import_helix53.cn)(import_helix53.comboboxItemIndicatorBase, className), ...props });
|
|
1775
|
+
}
|
|
1776
|
+
function ComboboxList({ className, ...props }) {
|
|
1777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_combobox.ComboboxList, { className: (0, import_helix53.cn)(import_helix53.comboboxListBase, className), ...props });
|
|
1778
|
+
}
|
|
1779
|
+
function ComboboxEmpty({ className, children, ...props }) {
|
|
1780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_combobox.ComboboxEmpty, { className: (0, import_helix53.cn)(import_helix53.comboboxEmptyBase, className), ...props, children: children ?? "No results found." });
|
|
1781
|
+
}
|
|
1782
|
+
var useCombobox = import_combobox.useComboboxContext;
|
|
1783
|
+
|
|
1784
|
+
// src/tags-input.tsx
|
|
1785
|
+
var import_tags_input = require("@ark-ui/react/tags-input");
|
|
1786
|
+
var import_helix54 = require("@cloudvoyant/helix");
|
|
1787
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
1788
|
+
function TagInput({ className, editable = false, children, ...props }) {
|
|
1789
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_tags_input.TagsInputRoot, { className: (0, import_helix54.cn)(import_helix54.tagsInputRootBase, className), editable, ...props, children: [
|
|
1790
|
+
children,
|
|
1791
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_tags_input.TagsInputHiddenInput, {})
|
|
1792
|
+
] });
|
|
1793
|
+
}
|
|
1794
|
+
function TagInputControl({ className, ...props }) {
|
|
1795
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_tags_input.TagsInputControl, { className: (0, import_helix54.cn)(import_helix54.tagsInputControlBase, className), ...props });
|
|
1796
|
+
}
|
|
1797
|
+
function TagInputInput({ className, ...props }) {
|
|
1798
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_tags_input.TagsInputInput, { className: (0, import_helix54.cn)(import_helix54.tagsInputInputBase, className), ...props });
|
|
1799
|
+
}
|
|
1800
|
+
function TagInputItem({ className, ...props }) {
|
|
1801
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_tags_input.TagsInputItem, { className: (0, import_helix54.cn)(import_helix54.tagsInputItemBase, className), ...props });
|
|
1802
|
+
}
|
|
1803
|
+
function TagInputItemPreview({ className, ...props }) {
|
|
1804
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_tags_input.TagsInputItemPreview, { className, ...props });
|
|
1805
|
+
}
|
|
1806
|
+
function TagInputItemText({ className, ...props }) {
|
|
1807
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_tags_input.TagsInputItemText, { className: (0, import_helix54.cn)(import_helix54.tagsInputItemTextBase, className), ...props });
|
|
1808
|
+
}
|
|
1809
|
+
function TagInputItemInput({ className, ...props }) {
|
|
1810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_tags_input.TagsInputItemInput, { className: (0, import_helix54.cn)(import_helix54.tagsInputItemInputBase, className), ...props });
|
|
1811
|
+
}
|
|
1812
|
+
function TagInputItemDeleteTrigger({ className, ...props }) {
|
|
1813
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_tags_input.TagsInputItemDeleteTrigger, { "aria-label": "Remove tag", className: (0, import_helix54.cn)(import_helix54.tagsInputItemDeleteTriggerBase, className), ...props });
|
|
1814
|
+
}
|
|
1815
|
+
function TagInputClearTrigger({ className, ...props }) {
|
|
1816
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_tags_input.TagsInputClearTrigger, { "aria-label": "Clear all tags", className: (0, import_helix54.cn)(import_helix54.tagsInputClearTriggerBase, className), ...props });
|
|
1817
|
+
}
|
|
1818
|
+
var TagInputContext = import_tags_input.TagsInputContext;
|
|
1819
|
+
var useTagInput = import_tags_input.useTagsInputContext;
|
|
1344
1820
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1345
1821
|
0 && (module.exports = {
|
|
1346
1822
|
Badge,
|
|
@@ -1353,9 +1829,37 @@ function NavbarMobileOverlay({ className, children, ...props }) {
|
|
|
1353
1829
|
CardHeader,
|
|
1354
1830
|
CardTitle,
|
|
1355
1831
|
Center,
|
|
1832
|
+
Checkbox,
|
|
1833
|
+
CheckboxControl,
|
|
1834
|
+
CheckboxGroup,
|
|
1835
|
+
CheckboxIndicator,
|
|
1836
|
+
CheckboxLabel,
|
|
1356
1837
|
Col,
|
|
1838
|
+
Combobox,
|
|
1839
|
+
ComboboxClear,
|
|
1840
|
+
ComboboxContent,
|
|
1841
|
+
ComboboxControl,
|
|
1842
|
+
ComboboxEmpty,
|
|
1843
|
+
ComboboxInput,
|
|
1844
|
+
ComboboxItem,
|
|
1845
|
+
ComboboxItemGroup,
|
|
1846
|
+
ComboboxItemGroupLabel,
|
|
1847
|
+
ComboboxItemIndicator,
|
|
1848
|
+
ComboboxItemText,
|
|
1849
|
+
ComboboxList,
|
|
1850
|
+
ComboboxTrigger,
|
|
1357
1851
|
Container,
|
|
1852
|
+
Field,
|
|
1853
|
+
FieldError,
|
|
1854
|
+
FieldHelper,
|
|
1855
|
+
FieldLabel,
|
|
1856
|
+
FieldRequiredIndicator,
|
|
1857
|
+
FieldSet,
|
|
1858
|
+
FieldSetError,
|
|
1859
|
+
FieldSetHelper,
|
|
1860
|
+
FieldSetLegend,
|
|
1358
1861
|
HStack,
|
|
1862
|
+
Input,
|
|
1359
1863
|
Item,
|
|
1360
1864
|
Navbar,
|
|
1361
1865
|
NavbarActions,
|
|
@@ -1376,6 +1880,16 @@ function NavbarMobileOverlay({ className, children, ...props }) {
|
|
|
1376
1880
|
NavbarMobileOverlay,
|
|
1377
1881
|
NavbarProvider,
|
|
1378
1882
|
NavbarTrigger,
|
|
1883
|
+
NumberInput,
|
|
1884
|
+
NumberInputControl,
|
|
1885
|
+
NumberInputDecrement,
|
|
1886
|
+
NumberInputIncrement,
|
|
1887
|
+
NumberInputInput,
|
|
1888
|
+
Page,
|
|
1889
|
+
PageContent,
|
|
1890
|
+
PageFooter,
|
|
1891
|
+
PageGutter,
|
|
1892
|
+
PageSection,
|
|
1379
1893
|
Pagination,
|
|
1380
1894
|
PaginationEllipsis,
|
|
1381
1895
|
PaginationItem,
|
|
@@ -1384,6 +1898,18 @@ function NavbarMobileOverlay({ className, children, ...props }) {
|
|
|
1384
1898
|
PaginationPrevious,
|
|
1385
1899
|
Row,
|
|
1386
1900
|
Scroll,
|
|
1901
|
+
Select,
|
|
1902
|
+
SelectClearTrigger,
|
|
1903
|
+
SelectContent,
|
|
1904
|
+
SelectIndicator,
|
|
1905
|
+
SelectItem,
|
|
1906
|
+
SelectItemGroup,
|
|
1907
|
+
SelectItemGroupLabel,
|
|
1908
|
+
SelectItemIndicator,
|
|
1909
|
+
SelectItemText,
|
|
1910
|
+
SelectNative,
|
|
1911
|
+
SelectTrigger,
|
|
1912
|
+
SelectValue,
|
|
1387
1913
|
Sidebar,
|
|
1388
1914
|
SidebarContent,
|
|
1389
1915
|
SidebarFooter,
|
|
@@ -1411,15 +1937,38 @@ function NavbarMobileOverlay({ className, children, ...props }) {
|
|
|
1411
1937
|
SplitterResizeTrigger,
|
|
1412
1938
|
SplitterResizeTriggerIndicator,
|
|
1413
1939
|
Stack,
|
|
1940
|
+
Switch,
|
|
1941
|
+
SwitchControl,
|
|
1942
|
+
SwitchLabel,
|
|
1943
|
+
SwitchThumb,
|
|
1414
1944
|
Tabs,
|
|
1415
1945
|
TabsContent,
|
|
1416
1946
|
TabsList,
|
|
1417
1947
|
TabsTrigger,
|
|
1948
|
+
TagInput,
|
|
1949
|
+
TagInputClearTrigger,
|
|
1950
|
+
TagInputContext,
|
|
1951
|
+
TagInputControl,
|
|
1952
|
+
TagInputInput,
|
|
1953
|
+
TagInputItem,
|
|
1954
|
+
TagInputItemDeleteTrigger,
|
|
1955
|
+
TagInputItemInput,
|
|
1956
|
+
TagInputItemPreview,
|
|
1957
|
+
TagInputItemText,
|
|
1958
|
+
Textarea,
|
|
1418
1959
|
ToggleButton,
|
|
1419
1960
|
ToggleButtonIndicator,
|
|
1420
1961
|
VStack,
|
|
1421
1962
|
navbarMenuTriggerStyle,
|
|
1963
|
+
useCheckbox,
|
|
1964
|
+
useCombobox,
|
|
1965
|
+
useField,
|
|
1966
|
+
useMediaQuery,
|
|
1422
1967
|
useNavbar,
|
|
1968
|
+
useNumberInput,
|
|
1969
|
+
useSelect,
|
|
1423
1970
|
useSidebar,
|
|
1424
|
-
|
|
1971
|
+
useSwitch,
|
|
1972
|
+
useTabs,
|
|
1973
|
+
useTagInput
|
|
1425
1974
|
});
|