@cloudvoyant/helix-react 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +388 -326
- package/dist/index.d.cts +19 -3
- package/dist/index.d.ts +19 -3
- package/dist/index.js +373 -307
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -96,6 +96,11 @@ __export(index_exports, {
|
|
|
96
96
|
NumberInputDecrement: () => NumberInputDecrement,
|
|
97
97
|
NumberInputIncrement: () => NumberInputIncrement,
|
|
98
98
|
NumberInputInput: () => NumberInputInput,
|
|
99
|
+
Page: () => Page,
|
|
100
|
+
PageContent: () => PageContent,
|
|
101
|
+
PageFooter: () => PageFooter,
|
|
102
|
+
PageGutter: () => PageGutter,
|
|
103
|
+
PageSection: () => PageSection,
|
|
99
104
|
Pagination: () => Pagination,
|
|
100
105
|
PaginationEllipsis: () => PaginationEllipsis,
|
|
101
106
|
PaginationItem: () => PaginationItem,
|
|
@@ -165,7 +170,7 @@ __export(index_exports, {
|
|
|
165
170
|
ToggleButton: () => ToggleButton,
|
|
166
171
|
ToggleButtonIndicator: () => ToggleButtonIndicator,
|
|
167
172
|
VStack: () => VStack,
|
|
168
|
-
navbarMenuTriggerStyle: () =>
|
|
173
|
+
navbarMenuTriggerStyle: () => import_helix45.navbarMenuTriggerStyle,
|
|
169
174
|
useCheckbox: () => useCheckbox,
|
|
170
175
|
useCombobox: () => useCombobox,
|
|
171
176
|
useField: () => useField,
|
|
@@ -341,6 +346,7 @@ var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
|
341
346
|
function Scroll({
|
|
342
347
|
className,
|
|
343
348
|
orientation = "vertical",
|
|
349
|
+
variant = "default",
|
|
344
350
|
contentClassName,
|
|
345
351
|
thumbClassName,
|
|
346
352
|
viewportClassName,
|
|
@@ -349,25 +355,76 @@ function Scroll({
|
|
|
349
355
|
}) {
|
|
350
356
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_scroll_area.ScrollAreaRoot, { className: (0, import_helix17.cn)(import_helix17.scrollRootBase, className), ...props, children: [
|
|
351
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 }) }),
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
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
|
+
] })
|
|
355
363
|
] });
|
|
356
364
|
}
|
|
357
365
|
|
|
358
|
-
// src/
|
|
359
|
-
var
|
|
366
|
+
// src/page.tsx
|
|
367
|
+
var import_factory16 = require("@ark-ui/react/factory");
|
|
360
368
|
var import_helix18 = require("@cloudvoyant/helix");
|
|
361
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");
|
|
362
419
|
function Splitter({ className, ...props }) {
|
|
363
|
-
return /* @__PURE__ */ (0,
|
|
420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_splitter.SplitterRoot, { className: (0, import_helix19.cn)(import_helix19.splitterRootBase, className), ...props });
|
|
364
421
|
}
|
|
365
422
|
function SplitterPanel({ className, ...props }) {
|
|
366
|
-
return /* @__PURE__ */ (0,
|
|
423
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_splitter.SplitterPanel, { className: (0, import_helix19.cn)(import_helix19.splitterPanelBase, className), ...props });
|
|
367
424
|
}
|
|
368
425
|
function SplitterResizeTrigger({ className, children, ...props }) {
|
|
369
|
-
return /* @__PURE__ */ (0,
|
|
370
|
-
/* @__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 }),
|
|
371
428
|
children
|
|
372
429
|
] });
|
|
373
430
|
}
|
|
@@ -375,10 +432,10 @@ function SplitterResizeTriggerIndicator({
|
|
|
375
432
|
className,
|
|
376
433
|
...props
|
|
377
434
|
}) {
|
|
378
|
-
return /* @__PURE__ */ (0,
|
|
435
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
379
436
|
import_splitter.SplitterResizeTriggerIndicator,
|
|
380
437
|
{
|
|
381
|
-
className: (0,
|
|
438
|
+
className: (0, import_helix19.cn)(import_helix19.splitterResizeTriggerIndicatorBase, className),
|
|
382
439
|
...props
|
|
383
440
|
}
|
|
384
441
|
);
|
|
@@ -386,7 +443,7 @@ function SplitterResizeTriggerIndicator({
|
|
|
386
443
|
|
|
387
444
|
// src/sidebar/Provider.tsx
|
|
388
445
|
var React2 = __toESM(require("react"), 1);
|
|
389
|
-
var
|
|
446
|
+
var import_helix20 = require("@cloudvoyant/helix");
|
|
390
447
|
|
|
391
448
|
// src/sidebar/context.ts
|
|
392
449
|
var React = __toESM(require("react"), 1);
|
|
@@ -400,7 +457,7 @@ function useSidebar() {
|
|
|
400
457
|
}
|
|
401
458
|
|
|
402
459
|
// src/sidebar/Provider.tsx
|
|
403
|
-
var
|
|
460
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
404
461
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
405
462
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
406
463
|
function useIsMobile() {
|
|
@@ -458,7 +515,7 @@ function Provider({
|
|
|
458
515
|
}, [openProp]);
|
|
459
516
|
React2.useEffect(() => {
|
|
460
517
|
const handleKeyDown = (event) => {
|
|
461
|
-
if (event.key ===
|
|
518
|
+
if (event.key === import_helix20.SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
462
519
|
event.preventDefault();
|
|
463
520
|
toggleSidebar();
|
|
464
521
|
}
|
|
@@ -479,16 +536,16 @@ function Provider({
|
|
|
479
536
|
}),
|
|
480
537
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
481
538
|
);
|
|
482
|
-
return /* @__PURE__ */ (0,
|
|
539
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
483
540
|
Row,
|
|
484
541
|
{
|
|
485
542
|
"data-slot": "sidebar-wrapper",
|
|
486
543
|
style: {
|
|
487
|
-
"--sidebar-width":
|
|
488
|
-
"--sidebar-width-icon":
|
|
544
|
+
"--sidebar-width": import_helix20.SIDEBAR_WIDTH,
|
|
545
|
+
"--sidebar-width-icon": import_helix20.SIDEBAR_WIDTH_ICON,
|
|
489
546
|
...style
|
|
490
547
|
},
|
|
491
|
-
className: (0,
|
|
548
|
+
className: (0, import_helix20.cn)(import_helix20.sidebarStyles.wrapperClass, className),
|
|
492
549
|
...props,
|
|
493
550
|
children
|
|
494
551
|
}
|
|
@@ -497,8 +554,8 @@ function Provider({
|
|
|
497
554
|
|
|
498
555
|
// src/sidebar/Root.tsx
|
|
499
556
|
var import_drawer = require("@ark-ui/react/drawer");
|
|
500
|
-
var
|
|
501
|
-
var
|
|
557
|
+
var import_helix21 = require("@cloudvoyant/helix");
|
|
558
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
502
559
|
function Root({
|
|
503
560
|
side = "left",
|
|
504
561
|
variant = "sidebar",
|
|
@@ -509,39 +566,39 @@ function Root({
|
|
|
509
566
|
}) {
|
|
510
567
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
511
568
|
if (collapsible === "none") {
|
|
512
|
-
return /* @__PURE__ */ (0,
|
|
569
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
513
570
|
Col,
|
|
514
571
|
{
|
|
515
572
|
"data-slot": "sidebar",
|
|
516
573
|
"data-sidebar": "sidebar",
|
|
517
|
-
className: (0,
|
|
574
|
+
className: (0, import_helix21.cn)("h-full w-(--sidebar-width) bg-sidebar text-sidebar-foreground", className),
|
|
518
575
|
...props,
|
|
519
576
|
children
|
|
520
577
|
}
|
|
521
578
|
);
|
|
522
579
|
}
|
|
523
580
|
if (isMobile) {
|
|
524
|
-
return /* @__PURE__ */ (0,
|
|
581
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
525
582
|
import_drawer.DrawerRoot,
|
|
526
583
|
{
|
|
527
584
|
open: openMobile,
|
|
528
585
|
onOpenChange: (details) => setOpenMobile(details.open),
|
|
529
586
|
...props,
|
|
530
587
|
children: [
|
|
531
|
-
/* @__PURE__ */ (0,
|
|
532
|
-
/* @__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)(
|
|
533
590
|
import_drawer.DrawerContent,
|
|
534
591
|
{
|
|
535
592
|
"data-sidebar": "sidebar",
|
|
536
593
|
"data-slot": "sidebar",
|
|
537
594
|
"data-mobile": "true",
|
|
538
|
-
className: (0,
|
|
539
|
-
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 },
|
|
540
597
|
children: [
|
|
541
|
-
/* @__PURE__ */ (0,
|
|
542
|
-
/* @__PURE__ */ (0,
|
|
543
|
-
/* @__PURE__ */ (0,
|
|
544
|
-
/* @__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 })
|
|
545
602
|
]
|
|
546
603
|
}
|
|
547
604
|
) })
|
|
@@ -549,7 +606,7 @@ function Root({
|
|
|
549
606
|
}
|
|
550
607
|
);
|
|
551
608
|
}
|
|
552
|
-
return /* @__PURE__ */ (0,
|
|
609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
553
610
|
"div",
|
|
554
611
|
{
|
|
555
612
|
className: "group peer hidden text-sidebar-foreground md:block",
|
|
@@ -559,35 +616,35 @@ function Root({
|
|
|
559
616
|
"data-side": side,
|
|
560
617
|
"data-slot": "sidebar",
|
|
561
618
|
children: [
|
|
562
|
-
/* @__PURE__ */ (0,
|
|
619
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
563
620
|
"div",
|
|
564
621
|
{
|
|
565
622
|
"data-slot": "sidebar-gap",
|
|
566
|
-
className: (0,
|
|
567
|
-
|
|
623
|
+
className: (0, import_helix21.cn)(
|
|
624
|
+
import_helix21.sidebarStyles.gapClass,
|
|
568
625
|
side === "right" && "rotate-180",
|
|
569
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)"
|
|
570
627
|
)
|
|
571
628
|
}
|
|
572
629
|
),
|
|
573
|
-
/* @__PURE__ */ (0,
|
|
630
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
574
631
|
"div",
|
|
575
632
|
{
|
|
576
633
|
"data-slot": "sidebar-container",
|
|
577
|
-
className: (0,
|
|
578
|
-
|
|
634
|
+
className: (0, import_helix21.cn)(
|
|
635
|
+
import_helix21.sidebarStyles.containerClass,
|
|
579
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)]",
|
|
580
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",
|
|
581
638
|
className
|
|
582
639
|
),
|
|
583
640
|
...props,
|
|
584
|
-
children: /* @__PURE__ */ (0,
|
|
641
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
585
642
|
"div",
|
|
586
643
|
{
|
|
587
644
|
"data-sidebar": "sidebar",
|
|
588
645
|
"data-slot": "sidebar-inner",
|
|
589
646
|
"data-variant": variant,
|
|
590
|
-
className: (0,
|
|
647
|
+
className: (0, import_helix21.cn)(import_helix21.sidebarStyles.innerClass),
|
|
591
648
|
children
|
|
592
649
|
}
|
|
593
650
|
)
|
|
@@ -599,132 +656,132 @@ function Root({
|
|
|
599
656
|
}
|
|
600
657
|
|
|
601
658
|
// src/sidebar/Header.tsx
|
|
602
|
-
var
|
|
603
|
-
var
|
|
659
|
+
var import_helix22 = require("@cloudvoyant/helix");
|
|
660
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
604
661
|
function Header({ className, ...props }) {
|
|
605
|
-
return /* @__PURE__ */ (0,
|
|
662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
606
663
|
Col,
|
|
607
664
|
{
|
|
608
665
|
"data-slot": "sidebar-header",
|
|
609
666
|
"data-sidebar": "header",
|
|
610
|
-
className: (0,
|
|
667
|
+
className: (0, import_helix22.cn)(import_helix22.sidebarStyles.headerClass, className),
|
|
611
668
|
...props
|
|
612
669
|
}
|
|
613
670
|
);
|
|
614
671
|
}
|
|
615
672
|
|
|
616
673
|
// src/sidebar/Footer.tsx
|
|
617
|
-
var
|
|
618
|
-
var
|
|
674
|
+
var import_helix23 = require("@cloudvoyant/helix");
|
|
675
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
619
676
|
function Footer({ className, ...props }) {
|
|
620
|
-
return /* @__PURE__ */ (0,
|
|
677
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
621
678
|
Col,
|
|
622
679
|
{
|
|
623
680
|
"data-slot": "sidebar-footer",
|
|
624
681
|
"data-sidebar": "footer",
|
|
625
|
-
className: (0,
|
|
682
|
+
className: (0, import_helix23.cn)(import_helix23.sidebarStyles.footerClass, className),
|
|
626
683
|
...props
|
|
627
684
|
}
|
|
628
685
|
);
|
|
629
686
|
}
|
|
630
687
|
|
|
631
688
|
// src/sidebar/Separator.tsx
|
|
632
|
-
var
|
|
633
|
-
var
|
|
634
|
-
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");
|
|
635
692
|
function Separator({ className, ...props }) {
|
|
636
|
-
return /* @__PURE__ */ (0,
|
|
637
|
-
|
|
693
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
694
|
+
import_factory17.ark.div,
|
|
638
695
|
{
|
|
639
696
|
"data-slot": "sidebar-separator",
|
|
640
697
|
"data-sidebar": "separator",
|
|
641
698
|
role: "separator",
|
|
642
|
-
className: (0,
|
|
699
|
+
className: (0, import_helix24.cn)(import_helix24.sidebarStyles.separatorClass, className),
|
|
643
700
|
...props
|
|
644
701
|
}
|
|
645
702
|
);
|
|
646
703
|
}
|
|
647
704
|
|
|
648
705
|
// src/sidebar/Content.tsx
|
|
649
|
-
var
|
|
650
|
-
var
|
|
706
|
+
var import_helix25 = require("@cloudvoyant/helix");
|
|
707
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
651
708
|
function Content({ className, ...props }) {
|
|
652
|
-
return /* @__PURE__ */ (0,
|
|
709
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
653
710
|
Col,
|
|
654
711
|
{
|
|
655
712
|
"data-slot": "sidebar-content",
|
|
656
713
|
"data-sidebar": "content",
|
|
657
|
-
className: (0,
|
|
714
|
+
className: (0, import_helix25.cn)(import_helix25.sidebarStyles.contentClass, className),
|
|
658
715
|
...props
|
|
659
716
|
}
|
|
660
717
|
);
|
|
661
718
|
}
|
|
662
719
|
|
|
663
720
|
// src/sidebar/Group.tsx
|
|
664
|
-
var
|
|
665
|
-
var
|
|
721
|
+
var import_helix26 = require("@cloudvoyant/helix");
|
|
722
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
666
723
|
function Group({ label, className, children, ...props }) {
|
|
667
|
-
return /* @__PURE__ */ (0,
|
|
668
|
-
label && /* @__PURE__ */ (0,
|
|
669
|
-
/* @__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 })
|
|
670
727
|
] });
|
|
671
728
|
}
|
|
672
729
|
|
|
673
730
|
// src/sidebar/GroupAction.tsx
|
|
674
|
-
var
|
|
675
|
-
var
|
|
676
|
-
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");
|
|
677
734
|
function GroupAction({ className, asChild = false, ...props }) {
|
|
678
|
-
return /* @__PURE__ */ (0,
|
|
679
|
-
|
|
735
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
736
|
+
import_factory18.ark.button,
|
|
680
737
|
{
|
|
681
738
|
"data-slot": "sidebar-group-action",
|
|
682
739
|
"data-sidebar": "group-action",
|
|
683
740
|
asChild,
|
|
684
741
|
type: "button",
|
|
685
|
-
className: (0,
|
|
742
|
+
className: (0, import_helix27.cn)(import_helix27.sidebarStyles.groupActionClass, className),
|
|
686
743
|
...props
|
|
687
744
|
}
|
|
688
745
|
);
|
|
689
746
|
}
|
|
690
747
|
|
|
691
748
|
// src/sidebar/Menu.tsx
|
|
692
|
-
var
|
|
693
|
-
var
|
|
694
|
-
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");
|
|
695
752
|
function Menu({ className, ...props }) {
|
|
696
|
-
return /* @__PURE__ */ (0,
|
|
697
|
-
|
|
753
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
754
|
+
import_factory19.ark.ul,
|
|
698
755
|
{
|
|
699
756
|
"data-slot": "sidebar-menu",
|
|
700
757
|
"data-sidebar": "menu",
|
|
701
|
-
className: (0,
|
|
758
|
+
className: (0, import_helix28.cn)(import_helix28.sidebarStyles.menuClass, className),
|
|
702
759
|
...props
|
|
703
760
|
}
|
|
704
761
|
);
|
|
705
762
|
}
|
|
706
763
|
|
|
707
764
|
// src/sidebar/MenuItem.tsx
|
|
708
|
-
var
|
|
709
|
-
var
|
|
710
|
-
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");
|
|
711
768
|
function MenuItem({ className, ...props }) {
|
|
712
|
-
return /* @__PURE__ */ (0,
|
|
713
|
-
|
|
769
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
770
|
+
import_factory20.ark.li,
|
|
714
771
|
{
|
|
715
772
|
"data-slot": "sidebar-menu-item",
|
|
716
773
|
"data-sidebar": "menu-item",
|
|
717
|
-
className: (0,
|
|
774
|
+
className: (0, import_helix29.cn)(import_helix29.sidebarStyles.menuItemClass, className),
|
|
718
775
|
...props
|
|
719
776
|
}
|
|
720
777
|
);
|
|
721
778
|
}
|
|
722
779
|
|
|
723
780
|
// src/sidebar/MenuButton.tsx
|
|
724
|
-
var
|
|
781
|
+
var import_factory21 = require("@ark-ui/react/factory");
|
|
725
782
|
var import_tooltip = require("@ark-ui/react/tooltip");
|
|
726
|
-
var
|
|
727
|
-
var
|
|
783
|
+
var import_helix30 = require("@cloudvoyant/helix");
|
|
784
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
728
785
|
function MenuButton({
|
|
729
786
|
asChild = false,
|
|
730
787
|
isActive = false,
|
|
@@ -736,8 +793,8 @@ function MenuButton({
|
|
|
736
793
|
...props
|
|
737
794
|
}) {
|
|
738
795
|
const { isMobile, state } = useSidebar();
|
|
739
|
-
const button = /* @__PURE__ */ (0,
|
|
740
|
-
|
|
796
|
+
const button = /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
797
|
+
import_factory21.ark.button,
|
|
741
798
|
{
|
|
742
799
|
"data-slot": "sidebar-menu-button",
|
|
743
800
|
"data-sidebar": "menu-button",
|
|
@@ -745,7 +802,7 @@ function MenuButton({
|
|
|
745
802
|
"data-active": isActive,
|
|
746
803
|
asChild,
|
|
747
804
|
type: "button",
|
|
748
|
-
className: (0,
|
|
805
|
+
className: (0, import_helix30.cn)((0, import_helix30.sidebarMenuButtonVariants)({ variant, size }), className),
|
|
749
806
|
...props,
|
|
750
807
|
children
|
|
751
808
|
}
|
|
@@ -754,42 +811,42 @@ function MenuButton({
|
|
|
754
811
|
return button;
|
|
755
812
|
}
|
|
756
813
|
const tooltipContent = typeof tooltip === "string" ? { children: tooltip } : tooltip;
|
|
757
|
-
return /* @__PURE__ */ (0,
|
|
758
|
-
/* @__PURE__ */ (0,
|
|
759
|
-
/* @__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 }) })
|
|
760
817
|
] });
|
|
761
818
|
}
|
|
762
819
|
|
|
763
820
|
// src/sidebar/MenuLink.tsx
|
|
764
|
-
var
|
|
765
|
-
var
|
|
821
|
+
var import_helix31 = require("@cloudvoyant/helix");
|
|
822
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
766
823
|
function MenuLink({ icon, href, onClick, isActive, variant, size, tooltip, className, children }) {
|
|
767
|
-
const content = /* @__PURE__ */ (0,
|
|
824
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
|
|
768
825
|
icon,
|
|
769
|
-
children != null && /* @__PURE__ */ (0,
|
|
826
|
+
children != null && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children })
|
|
770
827
|
] });
|
|
771
|
-
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 }) });
|
|
772
829
|
}
|
|
773
830
|
|
|
774
831
|
// src/sidebar/MenuAction.tsx
|
|
775
|
-
var
|
|
776
|
-
var
|
|
777
|
-
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");
|
|
778
835
|
function MenuAction({
|
|
779
836
|
className,
|
|
780
837
|
asChild = false,
|
|
781
838
|
showOnHover = false,
|
|
782
839
|
...props
|
|
783
840
|
}) {
|
|
784
|
-
return /* @__PURE__ */ (0,
|
|
785
|
-
|
|
841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
842
|
+
import_factory22.ark.button,
|
|
786
843
|
{
|
|
787
844
|
"data-slot": "sidebar-menu-action",
|
|
788
845
|
"data-sidebar": "menu-action",
|
|
789
846
|
asChild,
|
|
790
847
|
type: "button",
|
|
791
|
-
className: (0,
|
|
792
|
-
|
|
848
|
+
className: (0, import_helix32.cn)(
|
|
849
|
+
import_helix32.sidebarStyles.menuActionClass,
|
|
793
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",
|
|
794
851
|
className
|
|
795
852
|
),
|
|
@@ -799,16 +856,16 @@ function MenuAction({
|
|
|
799
856
|
}
|
|
800
857
|
|
|
801
858
|
// src/sidebar/MenuBadge.tsx
|
|
802
|
-
var
|
|
803
|
-
var
|
|
804
|
-
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");
|
|
805
862
|
function MenuBadge({ className, ...props }) {
|
|
806
|
-
return /* @__PURE__ */ (0,
|
|
807
|
-
|
|
863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
864
|
+
import_factory23.ark.div,
|
|
808
865
|
{
|
|
809
866
|
"data-slot": "sidebar-menu-badge",
|
|
810
867
|
"data-sidebar": "menu-badge",
|
|
811
|
-
className: (0,
|
|
868
|
+
className: (0, import_helix33.cn)(import_helix33.sidebarStyles.menuBadgeClass, className),
|
|
812
869
|
...props
|
|
813
870
|
}
|
|
814
871
|
);
|
|
@@ -816,28 +873,28 @@ function MenuBadge({ className, ...props }) {
|
|
|
816
873
|
|
|
817
874
|
// src/sidebar/MenuSkeleton.tsx
|
|
818
875
|
var React3 = __toESM(require("react"), 1);
|
|
819
|
-
var
|
|
820
|
-
var
|
|
821
|
-
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");
|
|
822
879
|
function MenuSkeleton({ className, showIcon = false, ...props }) {
|
|
823
880
|
const width = React3.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
824
|
-
return /* @__PURE__ */ (0,
|
|
825
|
-
|
|
881
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
882
|
+
import_factory24.ark.div,
|
|
826
883
|
{
|
|
827
884
|
"data-slot": "sidebar-menu-skeleton",
|
|
828
885
|
"data-sidebar": "menu-skeleton",
|
|
829
|
-
className: (0,
|
|
886
|
+
className: (0, import_helix34.cn)(import_helix34.sidebarStyles.menuSkeletonClass, className),
|
|
830
887
|
...props,
|
|
831
888
|
children: [
|
|
832
|
-
showIcon && /* @__PURE__ */ (0,
|
|
833
|
-
|
|
889
|
+
showIcon && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
890
|
+
import_factory24.ark.div,
|
|
834
891
|
{
|
|
835
892
|
className: "size-4 shrink-0 animate-pulse rounded-md bg-sidebar-accent",
|
|
836
893
|
"data-sidebar": "menu-skeleton-icon"
|
|
837
894
|
}
|
|
838
895
|
),
|
|
839
|
-
/* @__PURE__ */ (0,
|
|
840
|
-
|
|
896
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
897
|
+
import_factory24.ark.div,
|
|
841
898
|
{
|
|
842
899
|
className: "h-4 max-w-(--skeleton-width) flex-1 animate-pulse rounded-md bg-sidebar-accent",
|
|
843
900
|
"data-sidebar": "menu-skeleton-text",
|
|
@@ -850,41 +907,41 @@ function MenuSkeleton({ className, showIcon = false, ...props }) {
|
|
|
850
907
|
}
|
|
851
908
|
|
|
852
909
|
// src/sidebar/MenuSub.tsx
|
|
853
|
-
var
|
|
854
|
-
var
|
|
855
|
-
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");
|
|
856
913
|
function MenuSub({ className, ...props }) {
|
|
857
|
-
return /* @__PURE__ */ (0,
|
|
858
|
-
|
|
914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
915
|
+
import_factory25.ark.ul,
|
|
859
916
|
{
|
|
860
917
|
"data-slot": "sidebar-menu-sub",
|
|
861
918
|
"data-sidebar": "menu-sub",
|
|
862
|
-
className: (0,
|
|
919
|
+
className: (0, import_helix35.cn)(import_helix35.sidebarStyles.menuSubClass, className),
|
|
863
920
|
...props
|
|
864
921
|
}
|
|
865
922
|
);
|
|
866
923
|
}
|
|
867
924
|
|
|
868
925
|
// src/sidebar/MenuSubItem.tsx
|
|
869
|
-
var
|
|
870
|
-
var
|
|
871
|
-
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");
|
|
872
929
|
function MenuSubItem({ className, ...props }) {
|
|
873
|
-
return /* @__PURE__ */ (0,
|
|
874
|
-
|
|
930
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
931
|
+
import_factory26.ark.li,
|
|
875
932
|
{
|
|
876
933
|
"data-slot": "sidebar-menu-sub-item",
|
|
877
934
|
"data-sidebar": "menu-sub-item",
|
|
878
|
-
className: (0,
|
|
935
|
+
className: (0, import_helix36.cn)(import_helix36.sidebarStyles.menuSubItemClass, className),
|
|
879
936
|
...props
|
|
880
937
|
}
|
|
881
938
|
);
|
|
882
939
|
}
|
|
883
940
|
|
|
884
941
|
// src/sidebar/MenuSubButton.tsx
|
|
885
|
-
var
|
|
886
|
-
var
|
|
887
|
-
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");
|
|
888
945
|
function MenuSubButton({
|
|
889
946
|
asChild = false,
|
|
890
947
|
size = "md",
|
|
@@ -892,34 +949,34 @@ function MenuSubButton({
|
|
|
892
949
|
className,
|
|
893
950
|
...props
|
|
894
951
|
}) {
|
|
895
|
-
return /* @__PURE__ */ (0,
|
|
896
|
-
|
|
952
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
953
|
+
import_factory27.ark.a,
|
|
897
954
|
{
|
|
898
955
|
"data-slot": "sidebar-menu-sub-button",
|
|
899
956
|
"data-sidebar": "menu-sub-button",
|
|
900
957
|
"data-size": size,
|
|
901
958
|
"data-active": isActive,
|
|
902
959
|
asChild,
|
|
903
|
-
className: (0,
|
|
960
|
+
className: (0, import_helix37.cn)(import_helix37.sidebarStyles.menuSubButtonClass, className),
|
|
904
961
|
...props
|
|
905
962
|
}
|
|
906
963
|
);
|
|
907
964
|
}
|
|
908
965
|
|
|
909
966
|
// src/sidebar/Trigger.tsx
|
|
910
|
-
var
|
|
911
|
-
var
|
|
912
|
-
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");
|
|
913
970
|
function Trigger({ className, onClick, children, ...props }) {
|
|
914
971
|
const { toggleSidebar } = useSidebar();
|
|
915
|
-
return /* @__PURE__ */ (0,
|
|
916
|
-
|
|
972
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
973
|
+
import_factory28.ark.button,
|
|
917
974
|
{
|
|
918
975
|
"data-sidebar": "trigger",
|
|
919
976
|
"data-slot": "sidebar-trigger",
|
|
920
977
|
type: "button",
|
|
921
978
|
"aria-label": "Toggle Sidebar",
|
|
922
|
-
className: (0,
|
|
979
|
+
className: (0, import_helix38.cn)(import_helix38.sidebarStyles.triggerClass, className),
|
|
923
980
|
onClick: (event) => {
|
|
924
981
|
onClick?.(event);
|
|
925
982
|
toggleSidebar();
|
|
@@ -931,13 +988,13 @@ function Trigger({ className, onClick, children, ...props }) {
|
|
|
931
988
|
}
|
|
932
989
|
|
|
933
990
|
// src/sidebar/Rail.tsx
|
|
934
|
-
var
|
|
935
|
-
var
|
|
936
|
-
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");
|
|
937
994
|
function Rail({ className, ...props }) {
|
|
938
995
|
const { toggleSidebar } = useSidebar();
|
|
939
|
-
return /* @__PURE__ */ (0,
|
|
940
|
-
|
|
996
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
997
|
+
import_factory29.ark.button,
|
|
941
998
|
{
|
|
942
999
|
"data-sidebar": "rail",
|
|
943
1000
|
"data-slot": "sidebar-rail",
|
|
@@ -946,31 +1003,31 @@ function Rail({ className, ...props }) {
|
|
|
946
1003
|
tabIndex: -1,
|
|
947
1004
|
onClick: toggleSidebar,
|
|
948
1005
|
title: "Toggle Sidebar",
|
|
949
|
-
className: (0,
|
|
1006
|
+
className: (0, import_helix39.cn)(import_helix39.sidebarStyles.railClass, className),
|
|
950
1007
|
...props
|
|
951
1008
|
}
|
|
952
1009
|
);
|
|
953
1010
|
}
|
|
954
1011
|
|
|
955
1012
|
// src/sidebar/Inset.tsx
|
|
956
|
-
var
|
|
957
|
-
var
|
|
958
|
-
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");
|
|
959
1016
|
function Inset({ className, ...props }) {
|
|
960
|
-
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 });
|
|
961
1018
|
}
|
|
962
1019
|
|
|
963
1020
|
// src/sidebar/Input.tsx
|
|
964
|
-
var
|
|
965
|
-
var
|
|
966
|
-
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");
|
|
967
1024
|
function Input({ className, ...props }) {
|
|
968
|
-
return /* @__PURE__ */ (0,
|
|
969
|
-
|
|
1025
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
1026
|
+
import_factory31.ark.input,
|
|
970
1027
|
{
|
|
971
1028
|
"data-slot": "sidebar-input",
|
|
972
1029
|
"data-sidebar": "input",
|
|
973
|
-
className: (0,
|
|
1030
|
+
className: (0, import_helix41.cn)(import_helix41.sidebarStyles.inputClass, className),
|
|
974
1031
|
...props
|
|
975
1032
|
}
|
|
976
1033
|
);
|
|
@@ -978,44 +1035,44 @@ function Input({ className, ...props }) {
|
|
|
978
1035
|
|
|
979
1036
|
// src/tabs.tsx
|
|
980
1037
|
var import_tabs = require("@ark-ui/react/tabs");
|
|
981
|
-
var
|
|
982
|
-
var
|
|
1038
|
+
var import_helix42 = require("@cloudvoyant/helix");
|
|
1039
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
983
1040
|
function Tabs({ className, lazyMount = true, unmountOnExit = true, ...props }) {
|
|
984
|
-
return /* @__PURE__ */ (0,
|
|
1041
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
985
1042
|
import_tabs.TabsRoot,
|
|
986
1043
|
{
|
|
987
1044
|
lazyMount,
|
|
988
1045
|
unmountOnExit,
|
|
989
|
-
className: (0,
|
|
1046
|
+
className: (0, import_helix42.cn)(import_helix42.tabsRootBase, className),
|
|
990
1047
|
...props
|
|
991
1048
|
}
|
|
992
1049
|
);
|
|
993
1050
|
}
|
|
994
1051
|
function TabsList({ variant = "default", className, children, ...props }) {
|
|
995
|
-
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: [
|
|
996
1053
|
children,
|
|
997
|
-
/* @__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 })) })
|
|
998
1055
|
] });
|
|
999
1056
|
}
|
|
1000
1057
|
function TabsTrigger({ className, ...props }) {
|
|
1001
|
-
return /* @__PURE__ */ (0,
|
|
1058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_tabs.TabTrigger, { className: (0, import_helix42.cn)(import_helix42.tabsTriggerBase, className), ...props });
|
|
1002
1059
|
}
|
|
1003
1060
|
function TabsContent({ className, ...props }) {
|
|
1004
|
-
return /* @__PURE__ */ (0,
|
|
1061
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_tabs.TabContent, { className: (0, import_helix42.cn)(import_helix42.tabsContentBase, className), ...props });
|
|
1005
1062
|
}
|
|
1006
1063
|
var useTabs = import_tabs.useTabsContext;
|
|
1007
1064
|
|
|
1008
1065
|
// src/pagination.tsx
|
|
1009
1066
|
var import_pagination = require("@ark-ui/react/pagination");
|
|
1010
|
-
var
|
|
1011
|
-
var
|
|
1012
|
-
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");
|
|
1013
1070
|
function Pagination({ className, ...props }) {
|
|
1014
|
-
return /* @__PURE__ */ (0,
|
|
1071
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_pagination.PaginationRoot, { className: (0, import_helix43.cn)(import_helix43.paginationRootBase, className), ...props });
|
|
1015
1072
|
}
|
|
1016
1073
|
function PaginationPrevious(props) {
|
|
1017
|
-
return /* @__PURE__ */ (0,
|
|
1018
|
-
/* @__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)(
|
|
1019
1076
|
"svg",
|
|
1020
1077
|
{
|
|
1021
1078
|
viewBox: "0 0 24 24",
|
|
@@ -1025,16 +1082,16 @@ function PaginationPrevious(props) {
|
|
|
1025
1082
|
strokeLinecap: "round",
|
|
1026
1083
|
strokeLinejoin: "round",
|
|
1027
1084
|
"aria-hidden": "true",
|
|
1028
|
-
children: /* @__PURE__ */ (0,
|
|
1085
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("path", { d: "m15 18-6-6 6-6" })
|
|
1029
1086
|
}
|
|
1030
1087
|
),
|
|
1031
1088
|
"Previous"
|
|
1032
1089
|
] }) });
|
|
1033
1090
|
}
|
|
1034
1091
|
function PaginationNext(props) {
|
|
1035
|
-
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: [
|
|
1036
1093
|
"Next",
|
|
1037
|
-
/* @__PURE__ */ (0,
|
|
1094
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
1038
1095
|
"svg",
|
|
1039
1096
|
{
|
|
1040
1097
|
viewBox: "0 0 24 24",
|
|
@@ -1044,21 +1101,21 @@ function PaginationNext(props) {
|
|
|
1044
1101
|
strokeLinecap: "round",
|
|
1045
1102
|
strokeLinejoin: "round",
|
|
1046
1103
|
"aria-hidden": "true",
|
|
1047
|
-
children: /* @__PURE__ */ (0,
|
|
1104
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("path", { d: "m9 18 6-6-6-6" })
|
|
1048
1105
|
}
|
|
1049
1106
|
)
|
|
1050
1107
|
] }) });
|
|
1051
1108
|
}
|
|
1052
1109
|
function PaginationItem({ className, children, ...rest }) {
|
|
1053
|
-
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 }) });
|
|
1054
1111
|
}
|
|
1055
1112
|
function PaginationItems() {
|
|
1056
|
-
return /* @__PURE__ */ (0,
|
|
1057
|
-
(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}`)
|
|
1058
1115
|
) });
|
|
1059
1116
|
}
|
|
1060
1117
|
function PaginationEllipsis({ className, ...rest }) {
|
|
1061
|
-
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)(
|
|
1062
1119
|
"svg",
|
|
1063
1120
|
{
|
|
1064
1121
|
viewBox: "0 0 24 24",
|
|
@@ -1069,9 +1126,9 @@ function PaginationEllipsis({ className, ...rest }) {
|
|
|
1069
1126
|
strokeLinejoin: "round",
|
|
1070
1127
|
"aria-hidden": "true",
|
|
1071
1128
|
children: [
|
|
1072
|
-
/* @__PURE__ */ (0,
|
|
1073
|
-
/* @__PURE__ */ (0,
|
|
1074
|
-
/* @__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" })
|
|
1075
1132
|
]
|
|
1076
1133
|
}
|
|
1077
1134
|
) });
|
|
@@ -1079,14 +1136,14 @@ function PaginationEllipsis({ className, ...rest }) {
|
|
|
1079
1136
|
|
|
1080
1137
|
// src/navbar.tsx
|
|
1081
1138
|
var React4 = __toESM(require("react"), 1);
|
|
1082
|
-
var
|
|
1139
|
+
var import_factory33 = require("@ark-ui/react/factory");
|
|
1083
1140
|
var import_portal = require("@ark-ui/react/portal");
|
|
1084
1141
|
var import_collapsible = require("@ark-ui/react/collapsible");
|
|
1085
1142
|
var import_dialog = require("@ark-ui/react/dialog");
|
|
1086
1143
|
var import_navigation_menu = require("@ark-ui/react/navigation-menu");
|
|
1087
|
-
var import_helix43 = require("@cloudvoyant/helix");
|
|
1088
1144
|
var import_helix44 = require("@cloudvoyant/helix");
|
|
1089
|
-
var
|
|
1145
|
+
var import_helix45 = require("@cloudvoyant/helix");
|
|
1146
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
1090
1147
|
var SCROLL_THRESHOLD = 24;
|
|
1091
1148
|
function resolveScrollContainer(el) {
|
|
1092
1149
|
for (let n = el; n; n = n.parentElement) {
|
|
@@ -1149,7 +1206,7 @@ function NavbarProvider({
|
|
|
1149
1206
|
}),
|
|
1150
1207
|
[id, open, scrolled, hovered, slots, setSlot]
|
|
1151
1208
|
);
|
|
1152
|
-
return /* @__PURE__ */ (0,
|
|
1209
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(NavbarContext.Provider, { value: contextValue, children });
|
|
1153
1210
|
}
|
|
1154
1211
|
function Navbar({
|
|
1155
1212
|
variant = "sticky",
|
|
@@ -1188,7 +1245,7 @@ function Navbar({
|
|
|
1188
1245
|
el.style.overflow = prev;
|
|
1189
1246
|
};
|
|
1190
1247
|
}, [base.open]);
|
|
1191
|
-
return /* @__PURE__ */ (0,
|
|
1248
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(NavbarContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1192
1249
|
"header",
|
|
1193
1250
|
{
|
|
1194
1251
|
ref: headerRef,
|
|
@@ -1196,11 +1253,11 @@ function Navbar({
|
|
|
1196
1253
|
"data-scrolled": base.scrolled || void 0,
|
|
1197
1254
|
"data-hidden": hidden || void 0,
|
|
1198
1255
|
"data-shrunk": shrunk || void 0,
|
|
1199
|
-
className: (0,
|
|
1200
|
-
(0,
|
|
1201
|
-
|
|
1202
|
-
(0,
|
|
1203
|
-
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,
|
|
1204
1261
|
className
|
|
1205
1262
|
),
|
|
1206
1263
|
onMouseEnter: () => setHovered(true),
|
|
@@ -1212,11 +1269,11 @@ function Navbar({
|
|
|
1212
1269
|
}
|
|
1213
1270
|
function NavbarActivationArea({ className, children, ...props }) {
|
|
1214
1271
|
const { setHovered } = useNavbar();
|
|
1215
|
-
return /* @__PURE__ */ (0,
|
|
1216
|
-
|
|
1272
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1273
|
+
import_factory33.ark.div,
|
|
1217
1274
|
{
|
|
1218
1275
|
"data-slot": "navbar-activation-area",
|
|
1219
|
-
className: (0,
|
|
1276
|
+
className: (0, import_helix44.cn)(import_helix44.navbarActivationAreaBase, className),
|
|
1220
1277
|
onMouseEnter: () => setHovered(true),
|
|
1221
1278
|
onMouseLeave: () => setHovered(false),
|
|
1222
1279
|
...props,
|
|
@@ -1226,7 +1283,7 @@ function NavbarActivationArea({ className, children, ...props }) {
|
|
|
1226
1283
|
}
|
|
1227
1284
|
function NavbarBrand({ className, children, ...props }) {
|
|
1228
1285
|
useNavbarSlot("brand", children);
|
|
1229
|
-
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 });
|
|
1230
1287
|
}
|
|
1231
1288
|
function NavbarMenu({
|
|
1232
1289
|
placement = "center",
|
|
@@ -1236,21 +1293,21 @@ function NavbarMenu({
|
|
|
1236
1293
|
}) {
|
|
1237
1294
|
const { scrolled, density, variant } = useNavbar();
|
|
1238
1295
|
const menuDensity = density === "compact" || variant === "shrink" && scrolled ? "compact" : "relaxed";
|
|
1239
|
-
return /* @__PURE__ */ (0,
|
|
1240
|
-
|
|
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,
|
|
1241
1298
|
{
|
|
1242
1299
|
"data-slot": "navbar-menu",
|
|
1243
1300
|
"data-placement": placement,
|
|
1244
|
-
className: (0,
|
|
1245
|
-
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: [
|
|
1246
1303
|
children,
|
|
1247
|
-
/* @__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) }) })
|
|
1248
1305
|
] })
|
|
1249
1306
|
}
|
|
1250
1307
|
) });
|
|
1251
1308
|
}
|
|
1252
1309
|
function NavbarMenuList({ className, children, ...props }) {
|
|
1253
|
-
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 });
|
|
1254
1311
|
}
|
|
1255
1312
|
function NavbarMenuItem({
|
|
1256
1313
|
variant = "default",
|
|
@@ -1258,11 +1315,11 @@ function NavbarMenuItem({
|
|
|
1258
1315
|
...props
|
|
1259
1316
|
}) {
|
|
1260
1317
|
const { density } = React4.useContext(NavbarMenuStyleContext);
|
|
1261
|
-
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 }) });
|
|
1262
1319
|
}
|
|
1263
1320
|
function NavbarMenuTrigger({ asChild, className, children, ...props }) {
|
|
1264
1321
|
const { density, variant } = React4.useContext(NavbarMenuStyleContext);
|
|
1265
|
-
const chevron = /* @__PURE__ */ (0,
|
|
1322
|
+
const chevron = /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1266
1323
|
"svg",
|
|
1267
1324
|
{
|
|
1268
1325
|
className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
@@ -1273,36 +1330,36 @@ function NavbarMenuTrigger({ asChild, className, children, ...props }) {
|
|
|
1273
1330
|
strokeWidth: "2",
|
|
1274
1331
|
strokeLinecap: "round",
|
|
1275
1332
|
strokeLinejoin: "round",
|
|
1276
|
-
children: /* @__PURE__ */ (0,
|
|
1333
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("path", { d: "m6 9 6 6 6-6" })
|
|
1277
1334
|
}
|
|
1278
1335
|
);
|
|
1279
|
-
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: [
|
|
1280
1337
|
children,
|
|
1281
1338
|
chevron
|
|
1282
1339
|
] }) });
|
|
1283
1340
|
}
|
|
1284
1341
|
function NavbarMenuContent({ className, children, ...props }) {
|
|
1285
|
-
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 }) });
|
|
1286
1343
|
}
|
|
1287
1344
|
function NavbarMenuLink({ className, children, ...props }) {
|
|
1288
1345
|
const { density, variant, inContent } = React4.useContext(NavbarMenuStyleContext);
|
|
1289
|
-
const classes = inContent ? (0,
|
|
1290
|
-
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 });
|
|
1291
1348
|
}
|
|
1292
1349
|
function NavbarMobileMenu({ className, children, ...props }) {
|
|
1293
|
-
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 });
|
|
1294
1351
|
}
|
|
1295
1352
|
function NavbarMobileMenuTrigger({ className, children, ...props }) {
|
|
1296
|
-
return /* @__PURE__ */ (0,
|
|
1353
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_collapsible.CollapsibleTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
1297
1354
|
"button",
|
|
1298
1355
|
{
|
|
1299
1356
|
type: "button",
|
|
1300
1357
|
"data-slot": "navbar-mobile-menu-trigger",
|
|
1301
|
-
className: (0,
|
|
1358
|
+
className: (0, import_helix44.cn)(import_helix44.navbarMobileMenuTriggerBase, className),
|
|
1302
1359
|
...props,
|
|
1303
1360
|
children: [
|
|
1304
1361
|
children,
|
|
1305
|
-
/* @__PURE__ */ (0,
|
|
1362
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1306
1363
|
"svg",
|
|
1307
1364
|
{
|
|
1308
1365
|
className: "size-4 transition-transform duration-200 group-data-[state=open]:rotate-180",
|
|
@@ -1313,7 +1370,7 @@ function NavbarMobileMenuTrigger({ className, children, ...props }) {
|
|
|
1313
1370
|
strokeWidth: "2",
|
|
1314
1371
|
strokeLinecap: "round",
|
|
1315
1372
|
strokeLinejoin: "round",
|
|
1316
|
-
children: /* @__PURE__ */ (0,
|
|
1373
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("path", { d: "m6 9 6 6 6-6" })
|
|
1317
1374
|
}
|
|
1318
1375
|
)
|
|
1319
1376
|
]
|
|
@@ -1321,17 +1378,17 @@ function NavbarMobileMenuTrigger({ className, children, ...props }) {
|
|
|
1321
1378
|
) });
|
|
1322
1379
|
}
|
|
1323
1380
|
function NavbarMobileMenuContent({ className, children, ...props }) {
|
|
1324
|
-
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 }) });
|
|
1325
1382
|
}
|
|
1326
1383
|
function NavbarMenuViewport({ className, ...props }) {
|
|
1327
|
-
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 });
|
|
1328
1385
|
}
|
|
1329
1386
|
function NavbarMenuIndicator({ className, ...props }) {
|
|
1330
|
-
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 });
|
|
1331
1388
|
}
|
|
1332
1389
|
function NavbarActions({ className, children, ...props }) {
|
|
1333
1390
|
useNavbarSlot("actions", children);
|
|
1334
|
-
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 });
|
|
1335
1392
|
}
|
|
1336
1393
|
function NavbarTrigger({
|
|
1337
1394
|
className,
|
|
@@ -1340,7 +1397,7 @@ function NavbarTrigger({
|
|
|
1340
1397
|
...props
|
|
1341
1398
|
}) {
|
|
1342
1399
|
const { id, open, setOpen, floating } = useNavbar();
|
|
1343
|
-
return /* @__PURE__ */ (0,
|
|
1400
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1344
1401
|
"button",
|
|
1345
1402
|
{
|
|
1346
1403
|
type: "button",
|
|
@@ -1348,10 +1405,10 @@ function NavbarTrigger({
|
|
|
1348
1405
|
"aria-expanded": open,
|
|
1349
1406
|
"aria-controls": id,
|
|
1350
1407
|
"aria-label": ariaLabel ?? "Toggle navigation menu",
|
|
1351
|
-
className: (0,
|
|
1408
|
+
className: (0, import_helix44.cn)((0, import_helix44.navbarTriggerVariants)({ floating }), "md:hidden", className),
|
|
1352
1409
|
onClick: () => setOpen(!open),
|
|
1353
1410
|
...props,
|
|
1354
|
-
children: children ?? /* @__PURE__ */ (0,
|
|
1411
|
+
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
1355
1412
|
"svg",
|
|
1356
1413
|
{
|
|
1357
1414
|
className: "size-4",
|
|
@@ -1363,9 +1420,9 @@ function NavbarTrigger({
|
|
|
1363
1420
|
strokeLinejoin: "round",
|
|
1364
1421
|
"aria-hidden": "true",
|
|
1365
1422
|
children: [
|
|
1366
|
-
/* @__PURE__ */ (0,
|
|
1367
|
-
/* @__PURE__ */ (0,
|
|
1368
|
-
/* @__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" })
|
|
1369
1426
|
]
|
|
1370
1427
|
}
|
|
1371
1428
|
)
|
|
@@ -1382,14 +1439,14 @@ function NavbarMobileOverlay({ className, children, ...props }) {
|
|
|
1382
1439
|
document.addEventListener("keydown", onKeydown);
|
|
1383
1440
|
return () => document.removeEventListener("keydown", onKeydown);
|
|
1384
1441
|
}, [open, setOpen]);
|
|
1385
|
-
return /* @__PURE__ */ (0,
|
|
1386
|
-
/* @__PURE__ */ (0,
|
|
1387
|
-
/* @__PURE__ */ (0,
|
|
1388
|
-
/* @__PURE__ */ (0,
|
|
1389
|
-
/* @__PURE__ */ (0,
|
|
1390
|
-
/* @__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: [
|
|
1391
1448
|
slots.brand,
|
|
1392
|
-
/* @__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)(
|
|
1393
1450
|
"svg",
|
|
1394
1451
|
{
|
|
1395
1452
|
className: "size-4",
|
|
@@ -1400,12 +1457,12 @@ function NavbarMobileOverlay({ className, children, ...props }) {
|
|
|
1400
1457
|
strokeLinecap: "round",
|
|
1401
1458
|
strokeLinejoin: "round",
|
|
1402
1459
|
"aria-hidden": "true",
|
|
1403
|
-
children: /* @__PURE__ */ (0,
|
|
1460
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("path", { d: "M18 6 6 18M6 6l12 12" })
|
|
1404
1461
|
}
|
|
1405
1462
|
) }) })
|
|
1406
1463
|
] }),
|
|
1407
|
-
/* @__PURE__ */ (0,
|
|
1408
|
-
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
|
|
1409
1466
|
] }) })
|
|
1410
1467
|
] }) });
|
|
1411
1468
|
}
|
|
@@ -1413,131 +1470,131 @@ function NavbarMobileOverlay({ className, children, ...props }) {
|
|
|
1413
1470
|
// src/field.tsx
|
|
1414
1471
|
var import_field = require("@ark-ui/react/field");
|
|
1415
1472
|
var import_fieldset = require("@ark-ui/react/fieldset");
|
|
1416
|
-
var
|
|
1417
|
-
var
|
|
1473
|
+
var import_helix46 = require("@cloudvoyant/helix");
|
|
1474
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
1418
1475
|
function Field({ className, ...props }) {
|
|
1419
|
-
return /* @__PURE__ */ (0,
|
|
1476
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_field.FieldRoot, { className: (0, import_helix46.cn)(import_helix46.fieldRootBase, className), ...props });
|
|
1420
1477
|
}
|
|
1421
1478
|
function FieldLabel({ className, ...props }) {
|
|
1422
|
-
return /* @__PURE__ */ (0,
|
|
1479
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_field.FieldLabel, { className: (0, import_helix46.cn)(import_helix46.fieldLabelBase, className), ...props });
|
|
1423
1480
|
}
|
|
1424
1481
|
function FieldHelper({ className, ...props }) {
|
|
1425
|
-
return /* @__PURE__ */ (0,
|
|
1482
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_field.FieldHelperText, { className: (0, import_helix46.cn)(import_helix46.fieldHelperBase, className), ...props });
|
|
1426
1483
|
}
|
|
1427
1484
|
function FieldError({ className, ...props }) {
|
|
1428
|
-
return /* @__PURE__ */ (0,
|
|
1485
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_field.FieldErrorText, { className: (0, import_helix46.cn)(import_helix46.fieldErrorBase, className), ...props });
|
|
1429
1486
|
}
|
|
1430
1487
|
function FieldRequiredIndicator({ className, ...props }) {
|
|
1431
|
-
return /* @__PURE__ */ (0,
|
|
1488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_field.FieldRequiredIndicator, { className: (0, import_helix46.cn)(import_helix46.fieldRequiredIndicatorBase, className), ...props });
|
|
1432
1489
|
}
|
|
1433
1490
|
function FieldSet({ className, ...props }) {
|
|
1434
|
-
return /* @__PURE__ */ (0,
|
|
1491
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_fieldset.FieldsetRoot, { className: (0, import_helix46.cn)(import_helix46.fieldsetRootBase, className), ...props });
|
|
1435
1492
|
}
|
|
1436
1493
|
function FieldSetLegend({ className, ...props }) {
|
|
1437
|
-
return /* @__PURE__ */ (0,
|
|
1494
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_fieldset.FieldsetLegend, { className: (0, import_helix46.cn)(import_helix46.fieldsetLegendBase, className), ...props });
|
|
1438
1495
|
}
|
|
1439
1496
|
function FieldSetHelper({ className, ...props }) {
|
|
1440
|
-
return /* @__PURE__ */ (0,
|
|
1497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_fieldset.FieldsetHelperText, { className: (0, import_helix46.cn)(import_helix46.fieldsetHelperBase, className), ...props });
|
|
1441
1498
|
}
|
|
1442
1499
|
function FieldSetError({ className, ...props }) {
|
|
1443
|
-
return /* @__PURE__ */ (0,
|
|
1500
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_fieldset.FieldsetErrorText, { className: (0, import_helix46.cn)(import_helix46.fieldsetErrorBase, className), ...props });
|
|
1444
1501
|
}
|
|
1445
1502
|
var useField = import_field.useFieldContext;
|
|
1446
1503
|
|
|
1447
1504
|
// src/input.tsx
|
|
1448
1505
|
var import_field2 = require("@ark-ui/react/field");
|
|
1449
|
-
var
|
|
1450
|
-
var
|
|
1506
|
+
var import_helix47 = require("@cloudvoyant/helix");
|
|
1507
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
1451
1508
|
function Input2({ className, size, ...props }) {
|
|
1452
|
-
return /* @__PURE__ */ (0,
|
|
1509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_field2.FieldInput, { className: (0, import_helix47.cn)((0, import_helix47.inputVariants)({ size }), className), ...props });
|
|
1453
1510
|
}
|
|
1454
1511
|
|
|
1455
1512
|
// src/textarea.tsx
|
|
1456
1513
|
var import_field3 = require("@ark-ui/react/field");
|
|
1457
|
-
var
|
|
1458
|
-
var
|
|
1514
|
+
var import_helix48 = require("@cloudvoyant/helix");
|
|
1515
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
1459
1516
|
function Textarea({ className, ...props }) {
|
|
1460
|
-
return /* @__PURE__ */ (0,
|
|
1517
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_field3.FieldTextarea, { className: (0, import_helix48.cn)(import_helix48.textareaBase, className), ...props });
|
|
1461
1518
|
}
|
|
1462
1519
|
|
|
1463
1520
|
// src/number-input.tsx
|
|
1464
1521
|
var import_number_input = require("@ark-ui/react/number-input");
|
|
1465
|
-
var
|
|
1466
|
-
var
|
|
1522
|
+
var import_helix49 = require("@cloudvoyant/helix");
|
|
1523
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
1467
1524
|
function NumberInput({ className, ...props }) {
|
|
1468
|
-
return /* @__PURE__ */ (0,
|
|
1525
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_number_input.NumberInputRoot, { className: (0, import_helix49.cn)(import_helix49.numberInputRootBase, className), ...props });
|
|
1469
1526
|
}
|
|
1470
1527
|
function NumberInputControl({ className, ...props }) {
|
|
1471
|
-
return /* @__PURE__ */ (0,
|
|
1528
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_number_input.NumberInputControl, { className: (0, import_helix49.cn)(import_helix49.numberInputControlBase, className), ...props });
|
|
1472
1529
|
}
|
|
1473
1530
|
function NumberInputInput({ className, ...props }) {
|
|
1474
|
-
return /* @__PURE__ */ (0,
|
|
1531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_number_input.NumberInputInput, { className: (0, import_helix49.cn)(import_helix49.numberInputInputBase, className), ...props });
|
|
1475
1532
|
}
|
|
1476
1533
|
function NumberInputDecrement({ className, ...props }) {
|
|
1477
|
-
return /* @__PURE__ */ (0,
|
|
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 });
|
|
1478
1535
|
}
|
|
1479
1536
|
function NumberInputIncrement({ className, ...props }) {
|
|
1480
|
-
return /* @__PURE__ */ (0,
|
|
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 });
|
|
1481
1538
|
}
|
|
1482
1539
|
var useNumberInput = import_number_input.useNumberInputContext;
|
|
1483
1540
|
|
|
1484
1541
|
// src/checkbox.tsx
|
|
1485
1542
|
var import_react2 = require("react");
|
|
1486
1543
|
var import_checkbox = require("@ark-ui/react/checkbox");
|
|
1487
|
-
var
|
|
1488
|
-
var
|
|
1544
|
+
var import_helix50 = require("@cloudvoyant/helix");
|
|
1545
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
1489
1546
|
var CheckboxSizeContext = (0, import_react2.createContext)("md");
|
|
1490
1547
|
function Checkbox({ className, size = "md", children, ...props }) {
|
|
1491
|
-
return /* @__PURE__ */ (0,
|
|
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: [
|
|
1492
1549
|
children,
|
|
1493
|
-
/* @__PURE__ */ (0,
|
|
1550
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_checkbox.CheckboxHiddenInput, {})
|
|
1494
1551
|
] }) });
|
|
1495
1552
|
}
|
|
1496
1553
|
function CheckboxControl({ className, ...props }) {
|
|
1497
1554
|
const size = (0, import_react2.useContext)(CheckboxSizeContext);
|
|
1498
|
-
return /* @__PURE__ */ (0,
|
|
1555
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_checkbox.CheckboxControl, { className: (0, import_helix50.cn)((0, import_helix50.checkboxVariants)({ size }), className), ...props });
|
|
1499
1556
|
}
|
|
1500
1557
|
function CheckboxIndicator({ className, ...props }) {
|
|
1501
|
-
return /* @__PURE__ */ (0,
|
|
1558
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_checkbox.CheckboxIndicator, { className: (0, import_helix50.cn)(import_helix50.checkboxIndicatorBase, className), ...props });
|
|
1502
1559
|
}
|
|
1503
1560
|
function CheckboxLabel({ className, ...props }) {
|
|
1504
|
-
return /* @__PURE__ */ (0,
|
|
1561
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_checkbox.CheckboxLabel, { className: (0, import_helix50.cn)(import_helix50.checkboxLabelBase, className), ...props });
|
|
1505
1562
|
}
|
|
1506
1563
|
function CheckboxGroup({ className, ...props }) {
|
|
1507
|
-
return /* @__PURE__ */ (0,
|
|
1564
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_checkbox.CheckboxGroup, { className: (0, import_helix50.cn)(import_helix50.checkboxGroupBase, className), ...props });
|
|
1508
1565
|
}
|
|
1509
1566
|
var useCheckbox = import_checkbox.useCheckboxContext;
|
|
1510
1567
|
|
|
1511
1568
|
// src/switch.tsx
|
|
1512
1569
|
var import_react3 = require("react");
|
|
1513
1570
|
var import_switch = require("@ark-ui/react/switch");
|
|
1514
|
-
var
|
|
1515
|
-
var
|
|
1571
|
+
var import_helix51 = require("@cloudvoyant/helix");
|
|
1572
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
1516
1573
|
var SwitchSizeContext = (0, import_react3.createContext)("md");
|
|
1517
1574
|
function Switch({ className, size = "md", children, ...props }) {
|
|
1518
|
-
return /* @__PURE__ */ (0,
|
|
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: [
|
|
1519
1576
|
children,
|
|
1520
|
-
/* @__PURE__ */ (0,
|
|
1577
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_switch.SwitchHiddenInput, {})
|
|
1521
1578
|
] }) });
|
|
1522
1579
|
}
|
|
1523
1580
|
function SwitchControl({ className, ...props }) {
|
|
1524
1581
|
const size = (0, import_react3.useContext)(SwitchSizeContext);
|
|
1525
|
-
return /* @__PURE__ */ (0,
|
|
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 });
|
|
1526
1583
|
}
|
|
1527
1584
|
function SwitchThumb({ className, ...props }) {
|
|
1528
|
-
return /* @__PURE__ */ (0,
|
|
1585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_switch.SwitchThumb, { className: (0, import_helix51.cn)(import_helix51.switchThumbBase, className), ...props });
|
|
1529
1586
|
}
|
|
1530
1587
|
function SwitchLabel({ className, ...props }) {
|
|
1531
|
-
return /* @__PURE__ */ (0,
|
|
1588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_switch.SwitchLabel, { className: (0, import_helix51.cn)(import_helix51.switchLabelBase, className), ...props });
|
|
1532
1589
|
}
|
|
1533
1590
|
var useSwitch = import_switch.useSwitchContext;
|
|
1534
1591
|
|
|
1535
1592
|
// src/select.tsx
|
|
1536
|
-
var
|
|
1593
|
+
var import_factory34 = require("@ark-ui/react/factory");
|
|
1537
1594
|
var import_portal2 = require("@ark-ui/react/portal");
|
|
1538
1595
|
var import_react5 = require("react");
|
|
1539
1596
|
var import_select = require("@ark-ui/react/select");
|
|
1540
|
-
var
|
|
1597
|
+
var import_helix52 = require("@cloudvoyant/helix");
|
|
1541
1598
|
|
|
1542
1599
|
// src/use-media-query.ts
|
|
1543
1600
|
var import_react4 = require("react");
|
|
@@ -1554,7 +1611,7 @@ function useMediaQuery(query) {
|
|
|
1554
1611
|
}
|
|
1555
1612
|
|
|
1556
1613
|
// src/select.tsx
|
|
1557
|
-
var
|
|
1614
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
1558
1615
|
function Select({ items, collection, size, children, ...props }) {
|
|
1559
1616
|
const isCoarse = useMediaQuery("(pointer: coarse)");
|
|
1560
1617
|
const resolvedCollection = (0, import_react5.useMemo)(
|
|
@@ -1562,7 +1619,7 @@ function Select({ items, collection, size, children, ...props }) {
|
|
|
1562
1619
|
[collection, items]
|
|
1563
1620
|
);
|
|
1564
1621
|
if (isCoarse && items) {
|
|
1565
|
-
return /* @__PURE__ */ (0,
|
|
1622
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
1566
1623
|
SelectNative,
|
|
1567
1624
|
{
|
|
1568
1625
|
items,
|
|
@@ -1578,44 +1635,44 @@ function Select({ items, collection, size, children, ...props }) {
|
|
|
1578
1635
|
}
|
|
1579
1636
|
);
|
|
1580
1637
|
}
|
|
1581
|
-
return /* @__PURE__ */ (0,
|
|
1638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_select.SelectRoot, { collection: resolvedCollection, ...props, children: [
|
|
1582
1639
|
children,
|
|
1583
|
-
/* @__PURE__ */ (0,
|
|
1640
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_select.SelectHiddenSelect, {})
|
|
1584
1641
|
] });
|
|
1585
1642
|
}
|
|
1586
1643
|
function SelectTrigger({ size = "md", className, ...props }) {
|
|
1587
|
-
return /* @__PURE__ */ (0,
|
|
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 });
|
|
1588
1645
|
}
|
|
1589
1646
|
function SelectValue({ className, ...props }) {
|
|
1590
|
-
return /* @__PURE__ */ (0,
|
|
1647
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_select.SelectValueText, { className: (0, import_helix52.cn)(import_helix52.selectValueBase, className), ...props });
|
|
1591
1648
|
}
|
|
1592
1649
|
function SelectIndicator({ className, ...props }) {
|
|
1593
|
-
return /* @__PURE__ */ (0,
|
|
1650
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_select.SelectIndicator, { className: (0, import_helix52.cn)(import_helix52.selectIndicatorBase, className), ...props });
|
|
1594
1651
|
}
|
|
1595
1652
|
function SelectClearTrigger({ className, ...props }) {
|
|
1596
|
-
return /* @__PURE__ */ (0,
|
|
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 });
|
|
1597
1654
|
}
|
|
1598
1655
|
function SelectContent({ className, ...props }) {
|
|
1599
|
-
return /* @__PURE__ */ (0,
|
|
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 }) }) });
|
|
1600
1657
|
}
|
|
1601
1658
|
function SelectItemGroup({ className, ...props }) {
|
|
1602
|
-
return /* @__PURE__ */ (0,
|
|
1659
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_select.SelectItemGroup, { className, ...props });
|
|
1603
1660
|
}
|
|
1604
1661
|
function SelectItemGroupLabel({ className, ...props }) {
|
|
1605
|
-
return /* @__PURE__ */ (0,
|
|
1662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_select.SelectItemGroupLabel, { className: (0, import_helix52.cn)(import_helix52.selectItemGroupLabelBase, className), ...props });
|
|
1606
1663
|
}
|
|
1607
1664
|
function SelectItem({ item, className, ...props }) {
|
|
1608
|
-
return /* @__PURE__ */ (0,
|
|
1665
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_select.SelectItem, { item, className: (0, import_helix52.cn)(import_helix52.selectItemBase, className), ...props });
|
|
1609
1666
|
}
|
|
1610
1667
|
function SelectItemText({ className, ...props }) {
|
|
1611
|
-
return /* @__PURE__ */ (0,
|
|
1668
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_select.SelectItemText, { className: (0, import_helix52.cn)(import_helix52.selectItemTextBase, className), ...props });
|
|
1612
1669
|
}
|
|
1613
1670
|
function SelectItemIndicator({ className, ...props }) {
|
|
1614
|
-
return /* @__PURE__ */ (0,
|
|
1671
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_select.SelectItemIndicator, { className: (0, import_helix52.cn)(import_helix52.selectItemIndicatorBase, className), ...props });
|
|
1615
1672
|
}
|
|
1616
1673
|
var useSelect = import_select.useSelectContext;
|
|
1617
1674
|
function ChevronDownIcon() {
|
|
1618
|
-
return /* @__PURE__ */ (0,
|
|
1675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
1619
1676
|
"svg",
|
|
1620
1677
|
{
|
|
1621
1678
|
viewBox: "0 0 24 24",
|
|
@@ -1625,7 +1682,7 @@ function ChevronDownIcon() {
|
|
|
1625
1682
|
strokeLinecap: "round",
|
|
1626
1683
|
strokeLinejoin: "round",
|
|
1627
1684
|
"aria-hidden": true,
|
|
1628
|
-
children: /* @__PURE__ */ (0,
|
|
1685
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("path", { d: "m6 9 6 6 6-6" })
|
|
1629
1686
|
}
|
|
1630
1687
|
);
|
|
1631
1688
|
}
|
|
@@ -1640,20 +1697,20 @@ function SelectNative({
|
|
|
1640
1697
|
className,
|
|
1641
1698
|
...props
|
|
1642
1699
|
}) {
|
|
1643
|
-
return /* @__PURE__ */ (0,
|
|
1644
|
-
/* @__PURE__ */ (0,
|
|
1645
|
-
|
|
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,
|
|
1646
1703
|
{
|
|
1647
|
-
className: (0,
|
|
1704
|
+
className: (0, import_helix52.nativeSelectVariants)({ size }),
|
|
1648
1705
|
value,
|
|
1649
1706
|
defaultValue,
|
|
1650
1707
|
onChange: (event) => onValueChange?.(event.currentTarget.value),
|
|
1651
1708
|
"aria-invalid": invalid,
|
|
1652
1709
|
...props,
|
|
1653
|
-
children: items.map((item) => /* @__PURE__ */ (0,
|
|
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))
|
|
1654
1711
|
}
|
|
1655
1712
|
),
|
|
1656
|
-
/* @__PURE__ */ (0,
|
|
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, {}) })
|
|
1657
1714
|
] });
|
|
1658
1715
|
}
|
|
1659
1716
|
|
|
@@ -1661,8 +1718,8 @@ function SelectNative({
|
|
|
1661
1718
|
var import_portal3 = require("@ark-ui/react/portal");
|
|
1662
1719
|
var import_react6 = require("react");
|
|
1663
1720
|
var import_combobox = require("@ark-ui/react/combobox");
|
|
1664
|
-
var
|
|
1665
|
-
var
|
|
1721
|
+
var import_helix53 = require("@cloudvoyant/helix");
|
|
1722
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
1666
1723
|
function Combobox({
|
|
1667
1724
|
items,
|
|
1668
1725
|
collection,
|
|
@@ -1675,7 +1732,7 @@ function Combobox({
|
|
|
1675
1732
|
() => collection ?? (0, import_combobox.createListCollection)({ items: items ?? [] }),
|
|
1676
1733
|
[collection, items]
|
|
1677
1734
|
);
|
|
1678
|
-
return /* @__PURE__ */ (0,
|
|
1735
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
1679
1736
|
import_combobox.ComboboxRoot,
|
|
1680
1737
|
{
|
|
1681
1738
|
collection: resolvedCollection,
|
|
@@ -1687,76 +1744,76 @@ function Combobox({
|
|
|
1687
1744
|
);
|
|
1688
1745
|
}
|
|
1689
1746
|
function ComboboxControl({ className, ...props }) {
|
|
1690
|
-
return /* @__PURE__ */ (0,
|
|
1747
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_combobox.ComboboxControl, { className: (0, import_helix53.cn)(import_helix53.comboboxControlBase, className), ...props });
|
|
1691
1748
|
}
|
|
1692
1749
|
function ComboboxInput({ size = "md", className, ...props }) {
|
|
1693
|
-
return /* @__PURE__ */ (0,
|
|
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 });
|
|
1694
1751
|
}
|
|
1695
1752
|
function ComboboxTrigger({ className, ...props }) {
|
|
1696
|
-
return /* @__PURE__ */ (0,
|
|
1753
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_combobox.ComboboxTrigger, { className: (0, import_helix53.cn)(import_helix53.comboboxTriggerBase, className), ...props });
|
|
1697
1754
|
}
|
|
1698
1755
|
function ComboboxClear({ className, ...props }) {
|
|
1699
|
-
return /* @__PURE__ */ (0,
|
|
1756
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_combobox.ComboboxClearTrigger, { "aria-label": "Clear", className: (0, import_helix53.cn)(import_helix53.comboboxClearTriggerBase, className), ...props });
|
|
1700
1757
|
}
|
|
1701
1758
|
function ComboboxContent({ className, ...props }) {
|
|
1702
|
-
return /* @__PURE__ */ (0,
|
|
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 }) }) });
|
|
1703
1760
|
}
|
|
1704
1761
|
function ComboboxItemGroup({ className, ...props }) {
|
|
1705
|
-
return /* @__PURE__ */ (0,
|
|
1762
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_combobox.ComboboxItemGroup, { className, ...props });
|
|
1706
1763
|
}
|
|
1707
1764
|
function ComboboxItemGroupLabel({ className, ...props }) {
|
|
1708
|
-
return /* @__PURE__ */ (0,
|
|
1765
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_combobox.ComboboxItemGroupLabel, { className: (0, import_helix53.cn)(import_helix53.comboboxItemGroupLabelBase, className), ...props });
|
|
1709
1766
|
}
|
|
1710
1767
|
function ComboboxItem({ item, showIndicator = true, className, ...props }) {
|
|
1711
|
-
return /* @__PURE__ */ (0,
|
|
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 });
|
|
1712
1769
|
}
|
|
1713
1770
|
function ComboboxItemText({ className, ...props }) {
|
|
1714
|
-
return /* @__PURE__ */ (0,
|
|
1771
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_combobox.ComboboxItemText, { className, ...props });
|
|
1715
1772
|
}
|
|
1716
1773
|
function ComboboxItemIndicator({ className, ...props }) {
|
|
1717
|
-
return /* @__PURE__ */ (0,
|
|
1774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_combobox.ComboboxItemIndicator, { className: (0, import_helix53.cn)(import_helix53.comboboxItemIndicatorBase, className), ...props });
|
|
1718
1775
|
}
|
|
1719
1776
|
function ComboboxList({ className, ...props }) {
|
|
1720
|
-
return /* @__PURE__ */ (0,
|
|
1777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_combobox.ComboboxList, { className: (0, import_helix53.cn)(import_helix53.comboboxListBase, className), ...props });
|
|
1721
1778
|
}
|
|
1722
1779
|
function ComboboxEmpty({ className, children, ...props }) {
|
|
1723
|
-
return /* @__PURE__ */ (0,
|
|
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." });
|
|
1724
1781
|
}
|
|
1725
1782
|
var useCombobox = import_combobox.useComboboxContext;
|
|
1726
1783
|
|
|
1727
1784
|
// src/tags-input.tsx
|
|
1728
1785
|
var import_tags_input = require("@ark-ui/react/tags-input");
|
|
1729
|
-
var
|
|
1730
|
-
var
|
|
1786
|
+
var import_helix54 = require("@cloudvoyant/helix");
|
|
1787
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
1731
1788
|
function TagInput({ className, editable = false, children, ...props }) {
|
|
1732
|
-
return /* @__PURE__ */ (0,
|
|
1789
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_tags_input.TagsInputRoot, { className: (0, import_helix54.cn)(import_helix54.tagsInputRootBase, className), editable, ...props, children: [
|
|
1733
1790
|
children,
|
|
1734
|
-
/* @__PURE__ */ (0,
|
|
1791
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_tags_input.TagsInputHiddenInput, {})
|
|
1735
1792
|
] });
|
|
1736
1793
|
}
|
|
1737
1794
|
function TagInputControl({ className, ...props }) {
|
|
1738
|
-
return /* @__PURE__ */ (0,
|
|
1795
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_tags_input.TagsInputControl, { className: (0, import_helix54.cn)(import_helix54.tagsInputControlBase, className), ...props });
|
|
1739
1796
|
}
|
|
1740
1797
|
function TagInputInput({ className, ...props }) {
|
|
1741
|
-
return /* @__PURE__ */ (0,
|
|
1798
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_tags_input.TagsInputInput, { className: (0, import_helix54.cn)(import_helix54.tagsInputInputBase, className), ...props });
|
|
1742
1799
|
}
|
|
1743
1800
|
function TagInputItem({ className, ...props }) {
|
|
1744
|
-
return /* @__PURE__ */ (0,
|
|
1801
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_tags_input.TagsInputItem, { className: (0, import_helix54.cn)(import_helix54.tagsInputItemBase, className), ...props });
|
|
1745
1802
|
}
|
|
1746
1803
|
function TagInputItemPreview({ className, ...props }) {
|
|
1747
|
-
return /* @__PURE__ */ (0,
|
|
1804
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_tags_input.TagsInputItemPreview, { className, ...props });
|
|
1748
1805
|
}
|
|
1749
1806
|
function TagInputItemText({ className, ...props }) {
|
|
1750
|
-
return /* @__PURE__ */ (0,
|
|
1807
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_tags_input.TagsInputItemText, { className: (0, import_helix54.cn)(import_helix54.tagsInputItemTextBase, className), ...props });
|
|
1751
1808
|
}
|
|
1752
1809
|
function TagInputItemInput({ className, ...props }) {
|
|
1753
|
-
return /* @__PURE__ */ (0,
|
|
1810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_tags_input.TagsInputItemInput, { className: (0, import_helix54.cn)(import_helix54.tagsInputItemInputBase, className), ...props });
|
|
1754
1811
|
}
|
|
1755
1812
|
function TagInputItemDeleteTrigger({ className, ...props }) {
|
|
1756
|
-
return /* @__PURE__ */ (0,
|
|
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 });
|
|
1757
1814
|
}
|
|
1758
1815
|
function TagInputClearTrigger({ className, ...props }) {
|
|
1759
|
-
return /* @__PURE__ */ (0,
|
|
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 });
|
|
1760
1817
|
}
|
|
1761
1818
|
var TagInputContext = import_tags_input.TagsInputContext;
|
|
1762
1819
|
var useTagInput = import_tags_input.useTagsInputContext;
|
|
@@ -1828,6 +1885,11 @@ var useTagInput = import_tags_input.useTagsInputContext;
|
|
|
1828
1885
|
NumberInputDecrement,
|
|
1829
1886
|
NumberInputIncrement,
|
|
1830
1887
|
NumberInputInput,
|
|
1888
|
+
Page,
|
|
1889
|
+
PageContent,
|
|
1890
|
+
PageFooter,
|
|
1891
|
+
PageGutter,
|
|
1892
|
+
PageSection,
|
|
1831
1893
|
Pagination,
|
|
1832
1894
|
PaginationEllipsis,
|
|
1833
1895
|
PaginationItem,
|