@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.js
CHANGED
|
@@ -170,10 +170,11 @@ import {
|
|
|
170
170
|
scrollCornerBase,
|
|
171
171
|
cn as cn17
|
|
172
172
|
} from "@cloudvoyant/helix";
|
|
173
|
-
import { jsx as jsx17, jsxs } from "react/jsx-runtime";
|
|
173
|
+
import { Fragment, jsx as jsx17, jsxs } from "react/jsx-runtime";
|
|
174
174
|
function Scroll({
|
|
175
175
|
className,
|
|
176
176
|
orientation = "vertical",
|
|
177
|
+
variant = "default",
|
|
177
178
|
contentClassName,
|
|
178
179
|
thumbClassName,
|
|
179
180
|
viewportClassName,
|
|
@@ -182,12 +183,72 @@ function Scroll({
|
|
|
182
183
|
}) {
|
|
183
184
|
return /* @__PURE__ */ jsxs(ArkRoot, { className: cn17(scrollRootBase, className), ...props, children: [
|
|
184
185
|
/* @__PURE__ */ jsx17(ArkViewport, { className: cn17(scrollViewportBase, viewportClassName), children: /* @__PURE__ */ jsx17(ArkContent, { className: cn17(scrollContentBase, contentClassName), children }) }),
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
variant === "hidden" ? null : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
187
|
+
(orientation === "vertical" || orientation === "both") && /* @__PURE__ */ jsx17(ArkScrollbar, { orientation: "vertical", className: scrollScrollbarBase, children: /* @__PURE__ */ jsx17(ArkThumb, { className: cn17(scrollThumbBase, thumbClassName) }) }),
|
|
188
|
+
(orientation === "horizontal" || orientation === "both") && /* @__PURE__ */ jsx17(ArkScrollbar, { orientation: "horizontal", className: scrollScrollbarBase, children: /* @__PURE__ */ jsx17(ArkThumb, { className: cn17(scrollThumbBase, thumbClassName) }) }),
|
|
189
|
+
orientation === "both" && /* @__PURE__ */ jsx17(ArkCorner, { className: scrollCornerBase })
|
|
190
|
+
] })
|
|
188
191
|
] });
|
|
189
192
|
}
|
|
190
193
|
|
|
194
|
+
// src/page.tsx
|
|
195
|
+
import { ark as ark16 } from "@ark-ui/react/factory";
|
|
196
|
+
import {
|
|
197
|
+
pageVariants,
|
|
198
|
+
pageGutterAreaBase,
|
|
199
|
+
pageGutterVariants,
|
|
200
|
+
pageGutterContentVariants,
|
|
201
|
+
pageContentBase,
|
|
202
|
+
pageFooterBase,
|
|
203
|
+
pageSectionBase,
|
|
204
|
+
cn as cn18
|
|
205
|
+
} from "@cloudvoyant/helix";
|
|
206
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
207
|
+
function Page({ variant = "default", className, children, ...props }) {
|
|
208
|
+
return /* @__PURE__ */ jsx18(ark16.div, { "data-slot": "page", className: cn18(pageVariants({ variant }), className), ...props, children });
|
|
209
|
+
}
|
|
210
|
+
function PageGutter({
|
|
211
|
+
side = "left",
|
|
212
|
+
align = "start",
|
|
213
|
+
contentClassName,
|
|
214
|
+
className,
|
|
215
|
+
children,
|
|
216
|
+
...props
|
|
217
|
+
}) {
|
|
218
|
+
return /* @__PURE__ */ jsx18(
|
|
219
|
+
ark16.div,
|
|
220
|
+
{
|
|
221
|
+
"data-slot": "page-gutter-area",
|
|
222
|
+
className: cn18(pageGutterAreaBase, side === "right" && "[grid-area:right]"),
|
|
223
|
+
children: /* @__PURE__ */ jsx18(
|
|
224
|
+
ark16.div,
|
|
225
|
+
{
|
|
226
|
+
"data-slot": "page-gutter",
|
|
227
|
+
className: cn18(pageGutterVariants({ side }), className),
|
|
228
|
+
...props,
|
|
229
|
+
children: /* @__PURE__ */ jsx18(
|
|
230
|
+
ark16.div,
|
|
231
|
+
{
|
|
232
|
+
"data-slot": "page-gutter-content",
|
|
233
|
+
className: cn18(pageGutterContentVariants({ align }), contentClassName),
|
|
234
|
+
children
|
|
235
|
+
}
|
|
236
|
+
)
|
|
237
|
+
}
|
|
238
|
+
)
|
|
239
|
+
}
|
|
240
|
+
);
|
|
241
|
+
}
|
|
242
|
+
function PageContent({ className, children, ...props }) {
|
|
243
|
+
return /* @__PURE__ */ jsx18(ark16.main, { "data-slot": "page-content", className: cn18(pageContentBase, className), ...props, children });
|
|
244
|
+
}
|
|
245
|
+
function PageFooter({ className, children, ...props }) {
|
|
246
|
+
return /* @__PURE__ */ jsx18(ark16.footer, { "data-slot": "page-footer", className: cn18(pageFooterBase, className), ...props, children });
|
|
247
|
+
}
|
|
248
|
+
function PageSection({ className, children, ...props }) {
|
|
249
|
+
return /* @__PURE__ */ jsx18(ark16.section, { "data-slot": "page-section", className: cn18(pageSectionBase, className), ...props, children });
|
|
250
|
+
}
|
|
251
|
+
|
|
191
252
|
// src/splitter.tsx
|
|
192
253
|
import {
|
|
193
254
|
SplitterRoot as ArkSplitterRoot,
|
|
@@ -201,18 +262,18 @@ import {
|
|
|
201
262
|
splitterResizeTriggerBase,
|
|
202
263
|
splitterResizeTriggerSeparatorBase,
|
|
203
264
|
splitterResizeTriggerIndicatorBase,
|
|
204
|
-
cn as
|
|
265
|
+
cn as cn19
|
|
205
266
|
} from "@cloudvoyant/helix";
|
|
206
|
-
import { jsx as
|
|
267
|
+
import { jsx as jsx19, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
207
268
|
function Splitter({ className, ...props }) {
|
|
208
|
-
return /* @__PURE__ */
|
|
269
|
+
return /* @__PURE__ */ jsx19(ArkSplitterRoot, { className: cn19(splitterRootBase, className), ...props });
|
|
209
270
|
}
|
|
210
271
|
function SplitterPanel({ className, ...props }) {
|
|
211
|
-
return /* @__PURE__ */
|
|
272
|
+
return /* @__PURE__ */ jsx19(ArkSplitterPanel, { className: cn19(splitterPanelBase, className), ...props });
|
|
212
273
|
}
|
|
213
274
|
function SplitterResizeTrigger({ className, children, ...props }) {
|
|
214
|
-
return /* @__PURE__ */ jsxs2(ArkSplitterResizeTrigger, { className:
|
|
215
|
-
/* @__PURE__ */
|
|
275
|
+
return /* @__PURE__ */ jsxs2(ArkSplitterResizeTrigger, { className: cn19(splitterResizeTriggerBase, className), ...props, children: [
|
|
276
|
+
/* @__PURE__ */ jsx19("span", { "aria-hidden": true, "data-part": "separator", className: splitterResizeTriggerSeparatorBase }),
|
|
216
277
|
children
|
|
217
278
|
] });
|
|
218
279
|
}
|
|
@@ -220,10 +281,10 @@ function SplitterResizeTriggerIndicator({
|
|
|
220
281
|
className,
|
|
221
282
|
...props
|
|
222
283
|
}) {
|
|
223
|
-
return /* @__PURE__ */
|
|
284
|
+
return /* @__PURE__ */ jsx19(
|
|
224
285
|
ArkSplitterResizeTriggerIndicator,
|
|
225
286
|
{
|
|
226
|
-
className:
|
|
287
|
+
className: cn19(splitterResizeTriggerIndicatorBase, className),
|
|
227
288
|
...props
|
|
228
289
|
}
|
|
229
290
|
);
|
|
@@ -231,7 +292,7 @@ function SplitterResizeTriggerIndicator({
|
|
|
231
292
|
|
|
232
293
|
// src/sidebar/Provider.tsx
|
|
233
294
|
import * as React2 from "react";
|
|
234
|
-
import { SIDEBAR_WIDTH, SIDEBAR_WIDTH_ICON, SIDEBAR_KEYBOARD_SHORTCUT, sidebarStyles, cn as
|
|
295
|
+
import { SIDEBAR_WIDTH, SIDEBAR_WIDTH_ICON, SIDEBAR_KEYBOARD_SHORTCUT, sidebarStyles, cn as cn20 } from "@cloudvoyant/helix";
|
|
235
296
|
|
|
236
297
|
// src/sidebar/context.ts
|
|
237
298
|
import * as React from "react";
|
|
@@ -245,7 +306,7 @@ function useSidebar() {
|
|
|
245
306
|
}
|
|
246
307
|
|
|
247
308
|
// src/sidebar/Provider.tsx
|
|
248
|
-
import { jsx as
|
|
309
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
249
310
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
250
311
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
251
312
|
function useIsMobile() {
|
|
@@ -324,7 +385,7 @@ function Provider({
|
|
|
324
385
|
}),
|
|
325
386
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
326
387
|
);
|
|
327
|
-
return /* @__PURE__ */
|
|
388
|
+
return /* @__PURE__ */ jsx20(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx20(
|
|
328
389
|
Row,
|
|
329
390
|
{
|
|
330
391
|
"data-slot": "sidebar-wrapper",
|
|
@@ -333,7 +394,7 @@ function Provider({
|
|
|
333
394
|
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
|
|
334
395
|
...style
|
|
335
396
|
},
|
|
336
|
-
className:
|
|
397
|
+
className: cn20(sidebarStyles.wrapperClass, className),
|
|
337
398
|
...props,
|
|
338
399
|
children
|
|
339
400
|
}
|
|
@@ -350,8 +411,8 @@ import {
|
|
|
350
411
|
DrawerDescription,
|
|
351
412
|
DrawerCloseTrigger
|
|
352
413
|
} from "@ark-ui/react/drawer";
|
|
353
|
-
import { SIDEBAR_WIDTH_MOBILE, sidebarStyles as sidebarStyles2, cn as
|
|
354
|
-
import { jsx as
|
|
414
|
+
import { SIDEBAR_WIDTH_MOBILE, sidebarStyles as sidebarStyles2, cn as cn21 } from "@cloudvoyant/helix";
|
|
415
|
+
import { jsx as jsx21, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
355
416
|
function Root({
|
|
356
417
|
side = "left",
|
|
357
418
|
variant = "sidebar",
|
|
@@ -362,12 +423,12 @@ function Root({
|
|
|
362
423
|
}) {
|
|
363
424
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
364
425
|
if (collapsible === "none") {
|
|
365
|
-
return /* @__PURE__ */
|
|
426
|
+
return /* @__PURE__ */ jsx21(
|
|
366
427
|
Col,
|
|
367
428
|
{
|
|
368
429
|
"data-slot": "sidebar",
|
|
369
430
|
"data-sidebar": "sidebar",
|
|
370
|
-
className:
|
|
431
|
+
className: cn21("h-full w-(--sidebar-width) bg-sidebar text-sidebar-foreground", className),
|
|
371
432
|
...props,
|
|
372
433
|
children
|
|
373
434
|
}
|
|
@@ -381,20 +442,20 @@ function Root({
|
|
|
381
442
|
onOpenChange: (details) => setOpenMobile(details.open),
|
|
382
443
|
...props,
|
|
383
444
|
children: [
|
|
384
|
-
/* @__PURE__ */
|
|
385
|
-
/* @__PURE__ */
|
|
445
|
+
/* @__PURE__ */ jsx21(DrawerBackdrop, {}),
|
|
446
|
+
/* @__PURE__ */ jsx21(DrawerPositioner, { className: "w-(--sidebar-width)", children: /* @__PURE__ */ jsxs3(
|
|
386
447
|
DrawerContent,
|
|
387
448
|
{
|
|
388
449
|
"data-sidebar": "sidebar",
|
|
389
450
|
"data-slot": "sidebar",
|
|
390
451
|
"data-mobile": "true",
|
|
391
|
-
className:
|
|
452
|
+
className: cn21("w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground", className),
|
|
392
453
|
style: { "--sidebar-width": SIDEBAR_WIDTH_MOBILE },
|
|
393
454
|
children: [
|
|
394
|
-
/* @__PURE__ */
|
|
395
|
-
/* @__PURE__ */
|
|
396
|
-
/* @__PURE__ */
|
|
397
|
-
/* @__PURE__ */
|
|
455
|
+
/* @__PURE__ */ jsx21(DrawerTitle, { className: "sr-only", children: "Sidebar" }),
|
|
456
|
+
/* @__PURE__ */ jsx21(DrawerDescription, { className: "sr-only", children: "Displays the mobile sidebar." }),
|
|
457
|
+
/* @__PURE__ */ jsx21(DrawerCloseTrigger, { className: "hidden" }),
|
|
458
|
+
/* @__PURE__ */ jsx21(Col, { className: "h-full w-full", children })
|
|
398
459
|
]
|
|
399
460
|
}
|
|
400
461
|
) })
|
|
@@ -412,35 +473,35 @@ function Root({
|
|
|
412
473
|
"data-side": side,
|
|
413
474
|
"data-slot": "sidebar",
|
|
414
475
|
children: [
|
|
415
|
-
/* @__PURE__ */
|
|
476
|
+
/* @__PURE__ */ jsx21(
|
|
416
477
|
"div",
|
|
417
478
|
{
|
|
418
479
|
"data-slot": "sidebar-gap",
|
|
419
|
-
className:
|
|
480
|
+
className: cn21(
|
|
420
481
|
sidebarStyles2.gapClass,
|
|
421
482
|
side === "right" && "rotate-180",
|
|
422
483
|
variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"
|
|
423
484
|
)
|
|
424
485
|
}
|
|
425
486
|
),
|
|
426
|
-
/* @__PURE__ */
|
|
487
|
+
/* @__PURE__ */ jsx21(
|
|
427
488
|
"div",
|
|
428
489
|
{
|
|
429
490
|
"data-slot": "sidebar-container",
|
|
430
|
-
className:
|
|
491
|
+
className: cn21(
|
|
431
492
|
sidebarStyles2.containerClass,
|
|
432
493
|
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)]",
|
|
433
494
|
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",
|
|
434
495
|
className
|
|
435
496
|
),
|
|
436
497
|
...props,
|
|
437
|
-
children: /* @__PURE__ */
|
|
498
|
+
children: /* @__PURE__ */ jsx21(
|
|
438
499
|
"div",
|
|
439
500
|
{
|
|
440
501
|
"data-sidebar": "sidebar",
|
|
441
502
|
"data-slot": "sidebar-inner",
|
|
442
503
|
"data-variant": variant,
|
|
443
|
-
className:
|
|
504
|
+
className: cn21(sidebarStyles2.innerClass),
|
|
444
505
|
children
|
|
445
506
|
}
|
|
446
507
|
)
|
|
@@ -452,137 +513,137 @@ function Root({
|
|
|
452
513
|
}
|
|
453
514
|
|
|
454
515
|
// src/sidebar/Header.tsx
|
|
455
|
-
import { sidebarStyles as sidebarStyles3, cn as
|
|
456
|
-
import { jsx as
|
|
516
|
+
import { sidebarStyles as sidebarStyles3, cn as cn22 } from "@cloudvoyant/helix";
|
|
517
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
457
518
|
function Header({ className, ...props }) {
|
|
458
|
-
return /* @__PURE__ */
|
|
519
|
+
return /* @__PURE__ */ jsx22(
|
|
459
520
|
Col,
|
|
460
521
|
{
|
|
461
522
|
"data-slot": "sidebar-header",
|
|
462
523
|
"data-sidebar": "header",
|
|
463
|
-
className:
|
|
524
|
+
className: cn22(sidebarStyles3.headerClass, className),
|
|
464
525
|
...props
|
|
465
526
|
}
|
|
466
527
|
);
|
|
467
528
|
}
|
|
468
529
|
|
|
469
530
|
// src/sidebar/Footer.tsx
|
|
470
|
-
import { sidebarStyles as sidebarStyles4, cn as
|
|
471
|
-
import { jsx as
|
|
531
|
+
import { sidebarStyles as sidebarStyles4, cn as cn23 } from "@cloudvoyant/helix";
|
|
532
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
472
533
|
function Footer({ className, ...props }) {
|
|
473
|
-
return /* @__PURE__ */
|
|
534
|
+
return /* @__PURE__ */ jsx23(
|
|
474
535
|
Col,
|
|
475
536
|
{
|
|
476
537
|
"data-slot": "sidebar-footer",
|
|
477
538
|
"data-sidebar": "footer",
|
|
478
|
-
className:
|
|
539
|
+
className: cn23(sidebarStyles4.footerClass, className),
|
|
479
540
|
...props
|
|
480
541
|
}
|
|
481
542
|
);
|
|
482
543
|
}
|
|
483
544
|
|
|
484
545
|
// src/sidebar/Separator.tsx
|
|
485
|
-
import { ark as
|
|
486
|
-
import { sidebarStyles as sidebarStyles5, cn as
|
|
487
|
-
import { jsx as
|
|
546
|
+
import { ark as ark17 } from "@ark-ui/react/factory";
|
|
547
|
+
import { sidebarStyles as sidebarStyles5, cn as cn24 } from "@cloudvoyant/helix";
|
|
548
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
488
549
|
function Separator({ className, ...props }) {
|
|
489
|
-
return /* @__PURE__ */
|
|
490
|
-
|
|
550
|
+
return /* @__PURE__ */ jsx24(
|
|
551
|
+
ark17.div,
|
|
491
552
|
{
|
|
492
553
|
"data-slot": "sidebar-separator",
|
|
493
554
|
"data-sidebar": "separator",
|
|
494
555
|
role: "separator",
|
|
495
|
-
className:
|
|
556
|
+
className: cn24(sidebarStyles5.separatorClass, className),
|
|
496
557
|
...props
|
|
497
558
|
}
|
|
498
559
|
);
|
|
499
560
|
}
|
|
500
561
|
|
|
501
562
|
// src/sidebar/Content.tsx
|
|
502
|
-
import { sidebarStyles as sidebarStyles6, cn as
|
|
503
|
-
import { jsx as
|
|
563
|
+
import { sidebarStyles as sidebarStyles6, cn as cn25 } from "@cloudvoyant/helix";
|
|
564
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
504
565
|
function Content({ className, ...props }) {
|
|
505
|
-
return /* @__PURE__ */
|
|
566
|
+
return /* @__PURE__ */ jsx25(
|
|
506
567
|
Col,
|
|
507
568
|
{
|
|
508
569
|
"data-slot": "sidebar-content",
|
|
509
570
|
"data-sidebar": "content",
|
|
510
|
-
className:
|
|
571
|
+
className: cn25(sidebarStyles6.contentClass, className),
|
|
511
572
|
...props
|
|
512
573
|
}
|
|
513
574
|
);
|
|
514
575
|
}
|
|
515
576
|
|
|
516
577
|
// src/sidebar/Group.tsx
|
|
517
|
-
import { sidebarStyles as sidebarStyles7, cn as
|
|
518
|
-
import { jsx as
|
|
578
|
+
import { sidebarStyles as sidebarStyles7, cn as cn26 } from "@cloudvoyant/helix";
|
|
579
|
+
import { jsx as jsx26, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
519
580
|
function Group({ label, className, children, ...props }) {
|
|
520
|
-
return /* @__PURE__ */ jsxs4(Col, { "data-slot": "sidebar-group", "data-sidebar": "group", className:
|
|
521
|
-
label && /* @__PURE__ */
|
|
522
|
-
/* @__PURE__ */
|
|
581
|
+
return /* @__PURE__ */ jsxs4(Col, { "data-slot": "sidebar-group", "data-sidebar": "group", className: cn26(sidebarStyles7.groupClass, className), ...props, children: [
|
|
582
|
+
label && /* @__PURE__ */ jsx26("div", { "data-slot": "sidebar-group-label", "data-sidebar": "group-label", className: cn26(sidebarStyles7.groupLabelClass), children: label }),
|
|
583
|
+
/* @__PURE__ */ jsx26("div", { "data-slot": "sidebar-group-content", "data-sidebar": "group-content", className: cn26(sidebarStyles7.groupContentClass), children })
|
|
523
584
|
] });
|
|
524
585
|
}
|
|
525
586
|
|
|
526
587
|
// src/sidebar/GroupAction.tsx
|
|
527
|
-
import { ark as
|
|
528
|
-
import { sidebarStyles as sidebarStyles8, cn as
|
|
529
|
-
import { jsx as
|
|
588
|
+
import { ark as ark18 } from "@ark-ui/react/factory";
|
|
589
|
+
import { sidebarStyles as sidebarStyles8, cn as cn27 } from "@cloudvoyant/helix";
|
|
590
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
530
591
|
function GroupAction({ className, asChild = false, ...props }) {
|
|
531
|
-
return /* @__PURE__ */
|
|
532
|
-
|
|
592
|
+
return /* @__PURE__ */ jsx27(
|
|
593
|
+
ark18.button,
|
|
533
594
|
{
|
|
534
595
|
"data-slot": "sidebar-group-action",
|
|
535
596
|
"data-sidebar": "group-action",
|
|
536
597
|
asChild,
|
|
537
598
|
type: "button",
|
|
538
|
-
className:
|
|
599
|
+
className: cn27(sidebarStyles8.groupActionClass, className),
|
|
539
600
|
...props
|
|
540
601
|
}
|
|
541
602
|
);
|
|
542
603
|
}
|
|
543
604
|
|
|
544
605
|
// src/sidebar/Menu.tsx
|
|
545
|
-
import { ark as
|
|
546
|
-
import { sidebarStyles as sidebarStyles9, cn as
|
|
547
|
-
import { jsx as
|
|
606
|
+
import { ark as ark19 } from "@ark-ui/react/factory";
|
|
607
|
+
import { sidebarStyles as sidebarStyles9, cn as cn28 } from "@cloudvoyant/helix";
|
|
608
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
548
609
|
function Menu({ className, ...props }) {
|
|
549
|
-
return /* @__PURE__ */
|
|
550
|
-
|
|
610
|
+
return /* @__PURE__ */ jsx28(
|
|
611
|
+
ark19.ul,
|
|
551
612
|
{
|
|
552
613
|
"data-slot": "sidebar-menu",
|
|
553
614
|
"data-sidebar": "menu",
|
|
554
|
-
className:
|
|
615
|
+
className: cn28(sidebarStyles9.menuClass, className),
|
|
555
616
|
...props
|
|
556
617
|
}
|
|
557
618
|
);
|
|
558
619
|
}
|
|
559
620
|
|
|
560
621
|
// src/sidebar/MenuItem.tsx
|
|
561
|
-
import { ark as
|
|
562
|
-
import { sidebarStyles as sidebarStyles10, cn as
|
|
563
|
-
import { jsx as
|
|
622
|
+
import { ark as ark20 } from "@ark-ui/react/factory";
|
|
623
|
+
import { sidebarStyles as sidebarStyles10, cn as cn29 } from "@cloudvoyant/helix";
|
|
624
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
564
625
|
function MenuItem({ className, ...props }) {
|
|
565
|
-
return /* @__PURE__ */
|
|
566
|
-
|
|
626
|
+
return /* @__PURE__ */ jsx29(
|
|
627
|
+
ark20.li,
|
|
567
628
|
{
|
|
568
629
|
"data-slot": "sidebar-menu-item",
|
|
569
630
|
"data-sidebar": "menu-item",
|
|
570
|
-
className:
|
|
631
|
+
className: cn29(sidebarStyles10.menuItemClass, className),
|
|
571
632
|
...props
|
|
572
633
|
}
|
|
573
634
|
);
|
|
574
635
|
}
|
|
575
636
|
|
|
576
637
|
// src/sidebar/MenuButton.tsx
|
|
577
|
-
import { ark as
|
|
638
|
+
import { ark as ark21 } from "@ark-ui/react/factory";
|
|
578
639
|
import {
|
|
579
640
|
TooltipRoot,
|
|
580
641
|
TooltipTrigger,
|
|
581
642
|
TooltipPositioner,
|
|
582
643
|
TooltipContent as ArkTooltipContent
|
|
583
644
|
} from "@ark-ui/react/tooltip";
|
|
584
|
-
import { sidebarMenuButtonVariants, sidebarStyles as sidebarStyles11, cn as
|
|
585
|
-
import { jsx as
|
|
645
|
+
import { sidebarMenuButtonVariants, sidebarStyles as sidebarStyles11, cn as cn30 } from "@cloudvoyant/helix";
|
|
646
|
+
import { jsx as jsx30, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
586
647
|
function MenuButton({
|
|
587
648
|
asChild = false,
|
|
588
649
|
isActive = false,
|
|
@@ -594,8 +655,8 @@ function MenuButton({
|
|
|
594
655
|
...props
|
|
595
656
|
}) {
|
|
596
657
|
const { isMobile, state } = useSidebar();
|
|
597
|
-
const button = /* @__PURE__ */
|
|
598
|
-
|
|
658
|
+
const button = /* @__PURE__ */ jsx30(
|
|
659
|
+
ark21.button,
|
|
599
660
|
{
|
|
600
661
|
"data-slot": "sidebar-menu-button",
|
|
601
662
|
"data-sidebar": "menu-button",
|
|
@@ -603,7 +664,7 @@ function MenuButton({
|
|
|
603
664
|
"data-active": isActive,
|
|
604
665
|
asChild,
|
|
605
666
|
type: "button",
|
|
606
|
-
className:
|
|
667
|
+
className: cn30(sidebarMenuButtonVariants({ variant, size }), className),
|
|
607
668
|
...props,
|
|
608
669
|
children
|
|
609
670
|
}
|
|
@@ -613,40 +674,40 @@ function MenuButton({
|
|
|
613
674
|
}
|
|
614
675
|
const tooltipContent = typeof tooltip === "string" ? { children: tooltip } : tooltip;
|
|
615
676
|
return /* @__PURE__ */ jsxs5(TooltipRoot, { openDelay: 0, positioning: { placement: "right", gutter: 8 }, children: [
|
|
616
|
-
/* @__PURE__ */
|
|
617
|
-
/* @__PURE__ */
|
|
677
|
+
/* @__PURE__ */ jsx30(TooltipTrigger, { asChild: true, children: button }),
|
|
678
|
+
/* @__PURE__ */ jsx30(TooltipPositioner, { children: /* @__PURE__ */ jsx30(ArkTooltipContent, { className: cn30(sidebarStyles11.tooltipContentClass), ...tooltipContent }) })
|
|
618
679
|
] });
|
|
619
680
|
}
|
|
620
681
|
|
|
621
682
|
// src/sidebar/MenuLink.tsx
|
|
622
|
-
import { sidebarStyles as sidebarStyles12, cn as
|
|
623
|
-
import { Fragment, jsx as
|
|
683
|
+
import { sidebarStyles as sidebarStyles12, cn as cn31 } from "@cloudvoyant/helix";
|
|
684
|
+
import { Fragment as Fragment2, jsx as jsx31, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
624
685
|
function MenuLink({ icon, href, onClick, isActive, variant, size, tooltip, className, children }) {
|
|
625
|
-
const content = /* @__PURE__ */ jsxs6(
|
|
686
|
+
const content = /* @__PURE__ */ jsxs6(Fragment2, { children: [
|
|
626
687
|
icon,
|
|
627
|
-
children != null && /* @__PURE__ */
|
|
688
|
+
children != null && /* @__PURE__ */ jsx31("span", { children })
|
|
628
689
|
] });
|
|
629
|
-
return /* @__PURE__ */
|
|
690
|
+
return /* @__PURE__ */ jsx31("li", { "data-slot": "sidebar-menu-item", "data-sidebar": "menu-item", className: cn31(sidebarStyles12.menuItemClass), children: href != null ? /* @__PURE__ */ jsx31(MenuButton, { asChild: true, isActive, variant, size, tooltip, className, children: /* @__PURE__ */ jsx31("a", { href, onClick, children: content }) }) : /* @__PURE__ */ jsx31(MenuButton, { isActive, variant, size, tooltip, className, onClick, children: content }) });
|
|
630
691
|
}
|
|
631
692
|
|
|
632
693
|
// src/sidebar/MenuAction.tsx
|
|
633
|
-
import { ark as
|
|
634
|
-
import { sidebarStyles as sidebarStyles13, cn as
|
|
635
|
-
import { jsx as
|
|
694
|
+
import { ark as ark22 } from "@ark-ui/react/factory";
|
|
695
|
+
import { sidebarStyles as sidebarStyles13, cn as cn32 } from "@cloudvoyant/helix";
|
|
696
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
636
697
|
function MenuAction({
|
|
637
698
|
className,
|
|
638
699
|
asChild = false,
|
|
639
700
|
showOnHover = false,
|
|
640
701
|
...props
|
|
641
702
|
}) {
|
|
642
|
-
return /* @__PURE__ */
|
|
643
|
-
|
|
703
|
+
return /* @__PURE__ */ jsx32(
|
|
704
|
+
ark22.button,
|
|
644
705
|
{
|
|
645
706
|
"data-slot": "sidebar-menu-action",
|
|
646
707
|
"data-sidebar": "menu-action",
|
|
647
708
|
asChild,
|
|
648
709
|
type: "button",
|
|
649
|
-
className:
|
|
710
|
+
className: cn32(
|
|
650
711
|
sidebarStyles13.menuActionClass,
|
|
651
712
|
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",
|
|
652
713
|
className
|
|
@@ -657,16 +718,16 @@ function MenuAction({
|
|
|
657
718
|
}
|
|
658
719
|
|
|
659
720
|
// src/sidebar/MenuBadge.tsx
|
|
660
|
-
import { ark as
|
|
661
|
-
import { sidebarStyles as sidebarStyles14, cn as
|
|
662
|
-
import { jsx as
|
|
721
|
+
import { ark as ark23 } from "@ark-ui/react/factory";
|
|
722
|
+
import { sidebarStyles as sidebarStyles14, cn as cn33 } from "@cloudvoyant/helix";
|
|
723
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
663
724
|
function MenuBadge({ className, ...props }) {
|
|
664
|
-
return /* @__PURE__ */
|
|
665
|
-
|
|
725
|
+
return /* @__PURE__ */ jsx33(
|
|
726
|
+
ark23.div,
|
|
666
727
|
{
|
|
667
728
|
"data-slot": "sidebar-menu-badge",
|
|
668
729
|
"data-sidebar": "menu-badge",
|
|
669
|
-
className:
|
|
730
|
+
className: cn33(sidebarStyles14.menuBadgeClass, className),
|
|
670
731
|
...props
|
|
671
732
|
}
|
|
672
733
|
);
|
|
@@ -674,28 +735,28 @@ function MenuBadge({ className, ...props }) {
|
|
|
674
735
|
|
|
675
736
|
// src/sidebar/MenuSkeleton.tsx
|
|
676
737
|
import * as React3 from "react";
|
|
677
|
-
import { ark as
|
|
678
|
-
import { sidebarStyles as sidebarStyles15, cn as
|
|
679
|
-
import { jsx as
|
|
738
|
+
import { ark as ark24 } from "@ark-ui/react/factory";
|
|
739
|
+
import { sidebarStyles as sidebarStyles15, cn as cn34 } from "@cloudvoyant/helix";
|
|
740
|
+
import { jsx as jsx34, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
680
741
|
function MenuSkeleton({ className, showIcon = false, ...props }) {
|
|
681
742
|
const width = React3.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
682
743
|
return /* @__PURE__ */ jsxs7(
|
|
683
|
-
|
|
744
|
+
ark24.div,
|
|
684
745
|
{
|
|
685
746
|
"data-slot": "sidebar-menu-skeleton",
|
|
686
747
|
"data-sidebar": "menu-skeleton",
|
|
687
|
-
className:
|
|
748
|
+
className: cn34(sidebarStyles15.menuSkeletonClass, className),
|
|
688
749
|
...props,
|
|
689
750
|
children: [
|
|
690
|
-
showIcon && /* @__PURE__ */
|
|
691
|
-
|
|
751
|
+
showIcon && /* @__PURE__ */ jsx34(
|
|
752
|
+
ark24.div,
|
|
692
753
|
{
|
|
693
754
|
className: "size-4 shrink-0 animate-pulse rounded-md bg-sidebar-accent",
|
|
694
755
|
"data-sidebar": "menu-skeleton-icon"
|
|
695
756
|
}
|
|
696
757
|
),
|
|
697
|
-
/* @__PURE__ */
|
|
698
|
-
|
|
758
|
+
/* @__PURE__ */ jsx34(
|
|
759
|
+
ark24.div,
|
|
699
760
|
{
|
|
700
761
|
className: "h-4 max-w-(--skeleton-width) flex-1 animate-pulse rounded-md bg-sidebar-accent",
|
|
701
762
|
"data-sidebar": "menu-skeleton-text",
|
|
@@ -708,41 +769,41 @@ function MenuSkeleton({ className, showIcon = false, ...props }) {
|
|
|
708
769
|
}
|
|
709
770
|
|
|
710
771
|
// src/sidebar/MenuSub.tsx
|
|
711
|
-
import { ark as
|
|
712
|
-
import { sidebarStyles as sidebarStyles16, cn as
|
|
713
|
-
import { jsx as
|
|
772
|
+
import { ark as ark25 } from "@ark-ui/react/factory";
|
|
773
|
+
import { sidebarStyles as sidebarStyles16, cn as cn35 } from "@cloudvoyant/helix";
|
|
774
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
714
775
|
function MenuSub({ className, ...props }) {
|
|
715
|
-
return /* @__PURE__ */
|
|
716
|
-
|
|
776
|
+
return /* @__PURE__ */ jsx35(
|
|
777
|
+
ark25.ul,
|
|
717
778
|
{
|
|
718
779
|
"data-slot": "sidebar-menu-sub",
|
|
719
780
|
"data-sidebar": "menu-sub",
|
|
720
|
-
className:
|
|
781
|
+
className: cn35(sidebarStyles16.menuSubClass, className),
|
|
721
782
|
...props
|
|
722
783
|
}
|
|
723
784
|
);
|
|
724
785
|
}
|
|
725
786
|
|
|
726
787
|
// src/sidebar/MenuSubItem.tsx
|
|
727
|
-
import { ark as
|
|
728
|
-
import { sidebarStyles as sidebarStyles17, cn as
|
|
729
|
-
import { jsx as
|
|
788
|
+
import { ark as ark26 } from "@ark-ui/react/factory";
|
|
789
|
+
import { sidebarStyles as sidebarStyles17, cn as cn36 } from "@cloudvoyant/helix";
|
|
790
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
730
791
|
function MenuSubItem({ className, ...props }) {
|
|
731
|
-
return /* @__PURE__ */
|
|
732
|
-
|
|
792
|
+
return /* @__PURE__ */ jsx36(
|
|
793
|
+
ark26.li,
|
|
733
794
|
{
|
|
734
795
|
"data-slot": "sidebar-menu-sub-item",
|
|
735
796
|
"data-sidebar": "menu-sub-item",
|
|
736
|
-
className:
|
|
797
|
+
className: cn36(sidebarStyles17.menuSubItemClass, className),
|
|
737
798
|
...props
|
|
738
799
|
}
|
|
739
800
|
);
|
|
740
801
|
}
|
|
741
802
|
|
|
742
803
|
// src/sidebar/MenuSubButton.tsx
|
|
743
|
-
import { ark as
|
|
744
|
-
import { sidebarStyles as sidebarStyles18, cn as
|
|
745
|
-
import { jsx as
|
|
804
|
+
import { ark as ark27 } from "@ark-ui/react/factory";
|
|
805
|
+
import { sidebarStyles as sidebarStyles18, cn as cn37 } from "@cloudvoyant/helix";
|
|
806
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
746
807
|
function MenuSubButton({
|
|
747
808
|
asChild = false,
|
|
748
809
|
size = "md",
|
|
@@ -750,34 +811,34 @@ function MenuSubButton({
|
|
|
750
811
|
className,
|
|
751
812
|
...props
|
|
752
813
|
}) {
|
|
753
|
-
return /* @__PURE__ */
|
|
754
|
-
|
|
814
|
+
return /* @__PURE__ */ jsx37(
|
|
815
|
+
ark27.a,
|
|
755
816
|
{
|
|
756
817
|
"data-slot": "sidebar-menu-sub-button",
|
|
757
818
|
"data-sidebar": "menu-sub-button",
|
|
758
819
|
"data-size": size,
|
|
759
820
|
"data-active": isActive,
|
|
760
821
|
asChild,
|
|
761
|
-
className:
|
|
822
|
+
className: cn37(sidebarStyles18.menuSubButtonClass, className),
|
|
762
823
|
...props
|
|
763
824
|
}
|
|
764
825
|
);
|
|
765
826
|
}
|
|
766
827
|
|
|
767
828
|
// src/sidebar/Trigger.tsx
|
|
768
|
-
import { ark as
|
|
769
|
-
import { sidebarStyles as sidebarStyles19, cn as
|
|
770
|
-
import { jsx as
|
|
829
|
+
import { ark as ark28 } from "@ark-ui/react/factory";
|
|
830
|
+
import { sidebarStyles as sidebarStyles19, cn as cn38 } from "@cloudvoyant/helix";
|
|
831
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
771
832
|
function Trigger({ className, onClick, children, ...props }) {
|
|
772
833
|
const { toggleSidebar } = useSidebar();
|
|
773
|
-
return /* @__PURE__ */
|
|
774
|
-
|
|
834
|
+
return /* @__PURE__ */ jsx38(
|
|
835
|
+
ark28.button,
|
|
775
836
|
{
|
|
776
837
|
"data-sidebar": "trigger",
|
|
777
838
|
"data-slot": "sidebar-trigger",
|
|
778
839
|
type: "button",
|
|
779
840
|
"aria-label": "Toggle Sidebar",
|
|
780
|
-
className:
|
|
841
|
+
className: cn38(sidebarStyles19.triggerClass, className),
|
|
781
842
|
onClick: (event) => {
|
|
782
843
|
onClick?.(event);
|
|
783
844
|
toggleSidebar();
|
|
@@ -789,13 +850,13 @@ function Trigger({ className, onClick, children, ...props }) {
|
|
|
789
850
|
}
|
|
790
851
|
|
|
791
852
|
// src/sidebar/Rail.tsx
|
|
792
|
-
import { ark as
|
|
793
|
-
import { sidebarStyles as sidebarStyles20, cn as
|
|
794
|
-
import { jsx as
|
|
853
|
+
import { ark as ark29 } from "@ark-ui/react/factory";
|
|
854
|
+
import { sidebarStyles as sidebarStyles20, cn as cn39 } from "@cloudvoyant/helix";
|
|
855
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
795
856
|
function Rail({ className, ...props }) {
|
|
796
857
|
const { toggleSidebar } = useSidebar();
|
|
797
|
-
return /* @__PURE__ */
|
|
798
|
-
|
|
858
|
+
return /* @__PURE__ */ jsx39(
|
|
859
|
+
ark29.button,
|
|
799
860
|
{
|
|
800
861
|
"data-sidebar": "rail",
|
|
801
862
|
"data-slot": "sidebar-rail",
|
|
@@ -804,31 +865,31 @@ function Rail({ className, ...props }) {
|
|
|
804
865
|
tabIndex: -1,
|
|
805
866
|
onClick: toggleSidebar,
|
|
806
867
|
title: "Toggle Sidebar",
|
|
807
|
-
className:
|
|
868
|
+
className: cn39(sidebarStyles20.railClass, className),
|
|
808
869
|
...props
|
|
809
870
|
}
|
|
810
871
|
);
|
|
811
872
|
}
|
|
812
873
|
|
|
813
874
|
// src/sidebar/Inset.tsx
|
|
814
|
-
import { ark as
|
|
815
|
-
import { sidebarStyles as sidebarStyles21, cn as
|
|
816
|
-
import { jsx as
|
|
875
|
+
import { ark as ark30 } from "@ark-ui/react/factory";
|
|
876
|
+
import { sidebarStyles as sidebarStyles21, cn as cn40 } from "@cloudvoyant/helix";
|
|
877
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
817
878
|
function Inset({ className, ...props }) {
|
|
818
|
-
return /* @__PURE__ */
|
|
879
|
+
return /* @__PURE__ */ jsx40(ark30.main, { "data-slot": "sidebar-inset", className: cn40(sidebarStyles21.insetClass, className), ...props });
|
|
819
880
|
}
|
|
820
881
|
|
|
821
882
|
// src/sidebar/Input.tsx
|
|
822
|
-
import { ark as
|
|
823
|
-
import { sidebarStyles as sidebarStyles22, cn as
|
|
824
|
-
import { jsx as
|
|
883
|
+
import { ark as ark31 } from "@ark-ui/react/factory";
|
|
884
|
+
import { sidebarStyles as sidebarStyles22, cn as cn41 } from "@cloudvoyant/helix";
|
|
885
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
825
886
|
function Input({ className, ...props }) {
|
|
826
|
-
return /* @__PURE__ */
|
|
827
|
-
|
|
887
|
+
return /* @__PURE__ */ jsx41(
|
|
888
|
+
ark31.input,
|
|
828
889
|
{
|
|
829
890
|
"data-slot": "sidebar-input",
|
|
830
891
|
"data-sidebar": "input",
|
|
831
|
-
className:
|
|
892
|
+
className: cn41(sidebarStyles22.inputClass, className),
|
|
832
893
|
...props
|
|
833
894
|
}
|
|
834
895
|
);
|
|
@@ -851,31 +912,31 @@ import {
|
|
|
851
912
|
tabsIndicatorVariants,
|
|
852
913
|
tabsTriggerBase,
|
|
853
914
|
tabsContentBase,
|
|
854
|
-
cn as
|
|
915
|
+
cn as cn42
|
|
855
916
|
} from "@cloudvoyant/helix";
|
|
856
|
-
import { jsx as
|
|
917
|
+
import { jsx as jsx42, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
857
918
|
function Tabs({ className, lazyMount = true, unmountOnExit = true, ...props }) {
|
|
858
|
-
return /* @__PURE__ */
|
|
919
|
+
return /* @__PURE__ */ jsx42(
|
|
859
920
|
TabsRoot,
|
|
860
921
|
{
|
|
861
922
|
lazyMount,
|
|
862
923
|
unmountOnExit,
|
|
863
|
-
className:
|
|
924
|
+
className: cn42(tabsRootBase, className),
|
|
864
925
|
...props
|
|
865
926
|
}
|
|
866
927
|
);
|
|
867
928
|
}
|
|
868
929
|
function TabsList({ variant = "default", className, children, ...props }) {
|
|
869
|
-
return /* @__PURE__ */ jsxs8(TabList, { className:
|
|
930
|
+
return /* @__PURE__ */ jsxs8(TabList, { className: cn42(tabsListBase, tabsListVariants({ variant }), className), ...props, children: [
|
|
870
931
|
children,
|
|
871
|
-
/* @__PURE__ */
|
|
932
|
+
/* @__PURE__ */ jsx42(TabIndicator, { className: cn42(tabsIndicatorBase, tabsIndicatorVariants({ variant })) })
|
|
872
933
|
] });
|
|
873
934
|
}
|
|
874
935
|
function TabsTrigger({ className, ...props }) {
|
|
875
|
-
return /* @__PURE__ */
|
|
936
|
+
return /* @__PURE__ */ jsx42(TabTrigger, { className: cn42(tabsTriggerBase, className), ...props });
|
|
876
937
|
}
|
|
877
938
|
function TabsContent({ className, ...props }) {
|
|
878
|
-
return /* @__PURE__ */
|
|
939
|
+
return /* @__PURE__ */ jsx42(TabContent, { className: cn42(tabsContentBase, className), ...props });
|
|
879
940
|
}
|
|
880
941
|
var useTabs = useTabsContext;
|
|
881
942
|
|
|
@@ -888,15 +949,15 @@ import {
|
|
|
888
949
|
PaginationNextTrigger,
|
|
889
950
|
PaginationEllipsis as ArkPaginationEllipsis
|
|
890
951
|
} from "@ark-ui/react/pagination";
|
|
891
|
-
import { ark as
|
|
892
|
-
import { paginationRootBase, paginationTriggerBase, paginationItemBase, paginationEllipsisBase, cn as
|
|
893
|
-
import { jsx as
|
|
952
|
+
import { ark as ark32 } from "@ark-ui/react/factory";
|
|
953
|
+
import { paginationRootBase, paginationTriggerBase, paginationItemBase, paginationEllipsisBase, cn as cn43 } from "@cloudvoyant/helix";
|
|
954
|
+
import { jsx as jsx43, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
894
955
|
function Pagination({ className, ...props }) {
|
|
895
|
-
return /* @__PURE__ */
|
|
956
|
+
return /* @__PURE__ */ jsx43(ArkPaginationRoot, { className: cn43(paginationRootBase, className), ...props });
|
|
896
957
|
}
|
|
897
958
|
function PaginationPrevious(props) {
|
|
898
|
-
return /* @__PURE__ */
|
|
899
|
-
/* @__PURE__ */
|
|
959
|
+
return /* @__PURE__ */ jsx43(PaginationPrevTrigger, { asChild: true, ...props, children: /* @__PURE__ */ jsxs9(ark32.button, { className: cn43(paginationTriggerBase), children: [
|
|
960
|
+
/* @__PURE__ */ jsx43(
|
|
900
961
|
"svg",
|
|
901
962
|
{
|
|
902
963
|
viewBox: "0 0 24 24",
|
|
@@ -906,16 +967,16 @@ function PaginationPrevious(props) {
|
|
|
906
967
|
strokeLinecap: "round",
|
|
907
968
|
strokeLinejoin: "round",
|
|
908
969
|
"aria-hidden": "true",
|
|
909
|
-
children: /* @__PURE__ */
|
|
970
|
+
children: /* @__PURE__ */ jsx43("path", { d: "m15 18-6-6 6-6" })
|
|
910
971
|
}
|
|
911
972
|
),
|
|
912
973
|
"Previous"
|
|
913
974
|
] }) });
|
|
914
975
|
}
|
|
915
976
|
function PaginationNext(props) {
|
|
916
|
-
return /* @__PURE__ */
|
|
977
|
+
return /* @__PURE__ */ jsx43(PaginationNextTrigger, { asChild: true, ...props, children: /* @__PURE__ */ jsxs9(ark32.button, { className: cn43(paginationTriggerBase), children: [
|
|
917
978
|
"Next",
|
|
918
|
-
/* @__PURE__ */
|
|
979
|
+
/* @__PURE__ */ jsx43(
|
|
919
980
|
"svg",
|
|
920
981
|
{
|
|
921
982
|
viewBox: "0 0 24 24",
|
|
@@ -925,21 +986,21 @@ function PaginationNext(props) {
|
|
|
925
986
|
strokeLinecap: "round",
|
|
926
987
|
strokeLinejoin: "round",
|
|
927
988
|
"aria-hidden": "true",
|
|
928
|
-
children: /* @__PURE__ */
|
|
989
|
+
children: /* @__PURE__ */ jsx43("path", { d: "m9 18 6-6-6-6" })
|
|
929
990
|
}
|
|
930
991
|
)
|
|
931
992
|
] }) });
|
|
932
993
|
}
|
|
933
994
|
function PaginationItem({ className, children, ...rest }) {
|
|
934
|
-
return /* @__PURE__ */
|
|
995
|
+
return /* @__PURE__ */ jsx43(ArkPaginationItem, { asChild: true, ...rest, children: /* @__PURE__ */ jsx43(ark32.button, { className: cn43(paginationItemBase, className), children }) });
|
|
935
996
|
}
|
|
936
997
|
function PaginationItems() {
|
|
937
|
-
return /* @__PURE__ */
|
|
938
|
-
(page, index) => page.type === "page" ? /* @__PURE__ */
|
|
998
|
+
return /* @__PURE__ */ jsx43(ArkPaginationContext, { children: ({ pages }) => pages.map(
|
|
999
|
+
(page, index) => page.type === "page" ? /* @__PURE__ */ jsx43(PaginationItem, { type: "page", value: page.value, children: page.value }, page.value) : /* @__PURE__ */ jsx43(PaginationEllipsis, { index }, `ellipsis-${index}`)
|
|
939
1000
|
) });
|
|
940
1001
|
}
|
|
941
1002
|
function PaginationEllipsis({ className, ...rest }) {
|
|
942
|
-
return /* @__PURE__ */
|
|
1003
|
+
return /* @__PURE__ */ jsx43(ArkPaginationEllipsis, { className: cn43(paginationEllipsisBase, className), ...rest, children: /* @__PURE__ */ jsxs9(
|
|
943
1004
|
"svg",
|
|
944
1005
|
{
|
|
945
1006
|
viewBox: "0 0 24 24",
|
|
@@ -950,9 +1011,9 @@ function PaginationEllipsis({ className, ...rest }) {
|
|
|
950
1011
|
strokeLinejoin: "round",
|
|
951
1012
|
"aria-hidden": "true",
|
|
952
1013
|
children: [
|
|
953
|
-
/* @__PURE__ */
|
|
954
|
-
/* @__PURE__ */
|
|
955
|
-
/* @__PURE__ */
|
|
1014
|
+
/* @__PURE__ */ jsx43("circle", { cx: "12", cy: "12", r: "1" }),
|
|
1015
|
+
/* @__PURE__ */ jsx43("circle", { cx: "19", cy: "12", r: "1" }),
|
|
1016
|
+
/* @__PURE__ */ jsx43("circle", { cx: "5", cy: "12", r: "1" })
|
|
956
1017
|
]
|
|
957
1018
|
}
|
|
958
1019
|
) });
|
|
@@ -960,7 +1021,7 @@ function PaginationEllipsis({ className, ...rest }) {
|
|
|
960
1021
|
|
|
961
1022
|
// src/navbar.tsx
|
|
962
1023
|
import * as React4 from "react";
|
|
963
|
-
import { ark as
|
|
1024
|
+
import { ark as ark33 } from "@ark-ui/react/factory";
|
|
964
1025
|
import { Portal } from "@ark-ui/react/portal";
|
|
965
1026
|
import { CollapsibleRoot, CollapsibleTrigger, CollapsibleContent } from "@ark-ui/react/collapsible";
|
|
966
1027
|
import {
|
|
@@ -1009,10 +1070,10 @@ import {
|
|
|
1009
1070
|
navbarMenuViewportPositionerBase,
|
|
1010
1071
|
navbarMenuViewportBase,
|
|
1011
1072
|
navbarMenuIndicatorBase,
|
|
1012
|
-
cn as
|
|
1073
|
+
cn as cn44
|
|
1013
1074
|
} from "@cloudvoyant/helix";
|
|
1014
1075
|
import { navbarMenuTriggerStyle as navbarMenuTriggerStyle2 } from "@cloudvoyant/helix";
|
|
1015
|
-
import { Fragment as
|
|
1076
|
+
import { Fragment as Fragment3, jsx as jsx44, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1016
1077
|
var SCROLL_THRESHOLD = 24;
|
|
1017
1078
|
function resolveScrollContainer(el) {
|
|
1018
1079
|
for (let n = el; n; n = n.parentElement) {
|
|
@@ -1075,7 +1136,7 @@ function NavbarProvider({
|
|
|
1075
1136
|
}),
|
|
1076
1137
|
[id, open, scrolled, hovered, slots, setSlot]
|
|
1077
1138
|
);
|
|
1078
|
-
return /* @__PURE__ */
|
|
1139
|
+
return /* @__PURE__ */ jsx44(NavbarContext.Provider, { value: contextValue, children });
|
|
1079
1140
|
}
|
|
1080
1141
|
function Navbar({
|
|
1081
1142
|
variant = "sticky",
|
|
@@ -1114,7 +1175,7 @@ function Navbar({
|
|
|
1114
1175
|
el.style.overflow = prev;
|
|
1115
1176
|
};
|
|
1116
1177
|
}, [base.open]);
|
|
1117
|
-
return /* @__PURE__ */
|
|
1178
|
+
return /* @__PURE__ */ jsx44(NavbarContext.Provider, { value, children: /* @__PURE__ */ jsx44(
|
|
1118
1179
|
"header",
|
|
1119
1180
|
{
|
|
1120
1181
|
ref: headerRef,
|
|
@@ -1122,7 +1183,7 @@ function Navbar({
|
|
|
1122
1183
|
"data-scrolled": base.scrolled || void 0,
|
|
1123
1184
|
"data-hidden": hidden || void 0,
|
|
1124
1185
|
"data-shrunk": shrunk || void 0,
|
|
1125
|
-
className:
|
|
1186
|
+
className: cn44(
|
|
1126
1187
|
navbarVariants({ variant, floating }),
|
|
1127
1188
|
navbarContainerBase,
|
|
1128
1189
|
navbarDensityVariants({ density }),
|
|
@@ -1138,11 +1199,11 @@ function Navbar({
|
|
|
1138
1199
|
}
|
|
1139
1200
|
function NavbarActivationArea({ className, children, ...props }) {
|
|
1140
1201
|
const { setHovered } = useNavbar();
|
|
1141
|
-
return /* @__PURE__ */
|
|
1142
|
-
|
|
1202
|
+
return /* @__PURE__ */ jsx44(
|
|
1203
|
+
ark33.div,
|
|
1143
1204
|
{
|
|
1144
1205
|
"data-slot": "navbar-activation-area",
|
|
1145
|
-
className:
|
|
1206
|
+
className: cn44(navbarActivationAreaBase, className),
|
|
1146
1207
|
onMouseEnter: () => setHovered(true),
|
|
1147
1208
|
onMouseLeave: () => setHovered(false),
|
|
1148
1209
|
...props,
|
|
@@ -1152,7 +1213,7 @@ function NavbarActivationArea({ className, children, ...props }) {
|
|
|
1152
1213
|
}
|
|
1153
1214
|
function NavbarBrand({ className, children, ...props }) {
|
|
1154
1215
|
useNavbarSlot("brand", children);
|
|
1155
|
-
return /* @__PURE__ */
|
|
1216
|
+
return /* @__PURE__ */ jsx44(ark33.div, { "data-slot": "navbar-brand", className: cn44(navbarBrandBase, className), ...props, children });
|
|
1156
1217
|
}
|
|
1157
1218
|
function NavbarMenu({
|
|
1158
1219
|
placement = "center",
|
|
@@ -1162,21 +1223,21 @@ function NavbarMenu({
|
|
|
1162
1223
|
}) {
|
|
1163
1224
|
const { scrolled, density, variant } = useNavbar();
|
|
1164
1225
|
const menuDensity = density === "compact" || variant === "shrink" && scrolled ? "compact" : "relaxed";
|
|
1165
|
-
return /* @__PURE__ */
|
|
1166
|
-
|
|
1226
|
+
return /* @__PURE__ */ jsx44(NavbarMenuStyleContext.Provider, { value: { density: menuDensity, variant: "default", inContent: false }, children: /* @__PURE__ */ jsx44(
|
|
1227
|
+
ark33.div,
|
|
1167
1228
|
{
|
|
1168
1229
|
"data-slot": "navbar-menu",
|
|
1169
1230
|
"data-placement": placement,
|
|
1170
|
-
className:
|
|
1171
|
-
children: /* @__PURE__ */ jsxs10(ArkNavMenuRoot, { "data-density": menuDensity, className:
|
|
1231
|
+
className: cn44(navbarMenuBase, navbarMenuPlacementVariants({ placement }), className),
|
|
1232
|
+
children: /* @__PURE__ */ jsxs10(ArkNavMenuRoot, { "data-density": menuDensity, className: cn44(navbarMenuRootBase), ...props, children: [
|
|
1172
1233
|
children,
|
|
1173
|
-
/* @__PURE__ */
|
|
1234
|
+
/* @__PURE__ */ jsx44(ArkNavMenuViewportPositioner, { className: cn44(navbarMenuViewportPositionerBase), children: /* @__PURE__ */ jsx44(ArkNavMenuViewport, { className: cn44(navbarMenuViewportBase) }) })
|
|
1174
1235
|
] })
|
|
1175
1236
|
}
|
|
1176
1237
|
) });
|
|
1177
1238
|
}
|
|
1178
1239
|
function NavbarMenuList({ className, children, ...props }) {
|
|
1179
|
-
return /* @__PURE__ */
|
|
1240
|
+
return /* @__PURE__ */ jsx44(ArkNavMenuList, { className: cn44(navbarMenuListBase, className), ...props, children });
|
|
1180
1241
|
}
|
|
1181
1242
|
function NavbarMenuItem({
|
|
1182
1243
|
variant = "default",
|
|
@@ -1184,11 +1245,11 @@ function NavbarMenuItem({
|
|
|
1184
1245
|
...props
|
|
1185
1246
|
}) {
|
|
1186
1247
|
const { density } = React4.useContext(NavbarMenuStyleContext);
|
|
1187
|
-
return /* @__PURE__ */
|
|
1248
|
+
return /* @__PURE__ */ jsx44(NavbarMenuStyleContext.Provider, { value: { density, variant, inContent: false }, children: /* @__PURE__ */ jsx44(ArkNavMenuItem, { "data-variant": variant, className: cn44(navbarMenuItemBase, className), ...props }) });
|
|
1188
1249
|
}
|
|
1189
1250
|
function NavbarMenuTrigger({ asChild, className, children, ...props }) {
|
|
1190
1251
|
const { density, variant } = React4.useContext(NavbarMenuStyleContext);
|
|
1191
|
-
const chevron = /* @__PURE__ */
|
|
1252
|
+
const chevron = /* @__PURE__ */ jsx44(
|
|
1192
1253
|
"svg",
|
|
1193
1254
|
{
|
|
1194
1255
|
className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
@@ -1199,36 +1260,36 @@ function NavbarMenuTrigger({ asChild, className, children, ...props }) {
|
|
|
1199
1260
|
strokeWidth: "2",
|
|
1200
1261
|
strokeLinecap: "round",
|
|
1201
1262
|
strokeLinejoin: "round",
|
|
1202
|
-
children: /* @__PURE__ */
|
|
1263
|
+
children: /* @__PURE__ */ jsx44("path", { d: "m6 9 6 6 6-6" })
|
|
1203
1264
|
}
|
|
1204
1265
|
);
|
|
1205
|
-
return /* @__PURE__ */
|
|
1266
|
+
return /* @__PURE__ */ jsx44(ArkNavMenuTrigger, { asChild, className: cn44(navbarMenuTriggerStyle({ density, variant }), className), ...props, children: asChild ? children : /* @__PURE__ */ jsxs10(Fragment3, { children: [
|
|
1206
1267
|
children,
|
|
1207
1268
|
chevron
|
|
1208
1269
|
] }) });
|
|
1209
1270
|
}
|
|
1210
1271
|
function NavbarMenuContent({ className, children, ...props }) {
|
|
1211
|
-
return /* @__PURE__ */
|
|
1272
|
+
return /* @__PURE__ */ jsx44(NavbarMenuStyleContext.Provider, { value: { density: "relaxed", variant: "default", inContent: true }, children: /* @__PURE__ */ jsx44(ArkNavMenuContent, { className: cn44(navbarMenuContentBase, className), ...props, children }) });
|
|
1212
1273
|
}
|
|
1213
1274
|
function NavbarMenuLink({ className, children, ...props }) {
|
|
1214
1275
|
const { density, variant, inContent } = React4.useContext(NavbarMenuStyleContext);
|
|
1215
|
-
const classes = inContent ?
|
|
1216
|
-
return /* @__PURE__ */
|
|
1276
|
+
const classes = inContent ? cn44(navbarMenuLinkBase, className) : cn44(navbarMenuTriggerStyle({ density, variant }), className);
|
|
1277
|
+
return /* @__PURE__ */ jsx44(ArkNavMenuLink, { className: classes, ...props, children });
|
|
1217
1278
|
}
|
|
1218
1279
|
function NavbarMobileMenu({ className, children, ...props }) {
|
|
1219
|
-
return /* @__PURE__ */
|
|
1280
|
+
return /* @__PURE__ */ jsx44(CollapsibleRoot, { "data-slot": "navbar-mobile-menu", className: cn44("group", className), ...props, children });
|
|
1220
1281
|
}
|
|
1221
1282
|
function NavbarMobileMenuTrigger({ className, children, ...props }) {
|
|
1222
|
-
return /* @__PURE__ */
|
|
1283
|
+
return /* @__PURE__ */ jsx44(CollapsibleTrigger, { asChild: true, children: /* @__PURE__ */ jsxs10(
|
|
1223
1284
|
"button",
|
|
1224
1285
|
{
|
|
1225
1286
|
type: "button",
|
|
1226
1287
|
"data-slot": "navbar-mobile-menu-trigger",
|
|
1227
|
-
className:
|
|
1288
|
+
className: cn44(navbarMobileMenuTriggerBase, className),
|
|
1228
1289
|
...props,
|
|
1229
1290
|
children: [
|
|
1230
1291
|
children,
|
|
1231
|
-
/* @__PURE__ */
|
|
1292
|
+
/* @__PURE__ */ jsx44(
|
|
1232
1293
|
"svg",
|
|
1233
1294
|
{
|
|
1234
1295
|
className: "size-4 transition-transform duration-200 group-data-[state=open]:rotate-180",
|
|
@@ -1239,7 +1300,7 @@ function NavbarMobileMenuTrigger({ className, children, ...props }) {
|
|
|
1239
1300
|
strokeWidth: "2",
|
|
1240
1301
|
strokeLinecap: "round",
|
|
1241
1302
|
strokeLinejoin: "round",
|
|
1242
|
-
children: /* @__PURE__ */
|
|
1303
|
+
children: /* @__PURE__ */ jsx44("path", { d: "m6 9 6 6 6-6" })
|
|
1243
1304
|
}
|
|
1244
1305
|
)
|
|
1245
1306
|
]
|
|
@@ -1247,17 +1308,17 @@ function NavbarMobileMenuTrigger({ className, children, ...props }) {
|
|
|
1247
1308
|
) });
|
|
1248
1309
|
}
|
|
1249
1310
|
function NavbarMobileMenuContent({ className, children, ...props }) {
|
|
1250
|
-
return /* @__PURE__ */
|
|
1311
|
+
return /* @__PURE__ */ jsx44(CollapsibleContent, { children: /* @__PURE__ */ jsx44("div", { "data-slot": "navbar-mobile-menu-content", className: cn44(navbarMobileMenuContentBase, className), ...props, children }) });
|
|
1251
1312
|
}
|
|
1252
1313
|
function NavbarMenuViewport({ className, ...props }) {
|
|
1253
|
-
return /* @__PURE__ */
|
|
1314
|
+
return /* @__PURE__ */ jsx44(ArkNavMenuViewport, { className: cn44(navbarMenuViewportBase, className), ...props });
|
|
1254
1315
|
}
|
|
1255
1316
|
function NavbarMenuIndicator({ className, ...props }) {
|
|
1256
|
-
return /* @__PURE__ */
|
|
1317
|
+
return /* @__PURE__ */ jsx44(ArkNavMenuIndicator, { className: cn44(navbarMenuIndicatorBase, className), ...props });
|
|
1257
1318
|
}
|
|
1258
1319
|
function NavbarActions({ className, children, ...props }) {
|
|
1259
1320
|
useNavbarSlot("actions", children);
|
|
1260
|
-
return /* @__PURE__ */
|
|
1321
|
+
return /* @__PURE__ */ jsx44(ark33.div, { "data-slot": "navbar-actions", className: cn44(navbarActionsBase, className), ...props, children });
|
|
1261
1322
|
}
|
|
1262
1323
|
function NavbarTrigger({
|
|
1263
1324
|
className,
|
|
@@ -1266,7 +1327,7 @@ function NavbarTrigger({
|
|
|
1266
1327
|
...props
|
|
1267
1328
|
}) {
|
|
1268
1329
|
const { id, open, setOpen, floating } = useNavbar();
|
|
1269
|
-
return /* @__PURE__ */
|
|
1330
|
+
return /* @__PURE__ */ jsx44(
|
|
1270
1331
|
"button",
|
|
1271
1332
|
{
|
|
1272
1333
|
type: "button",
|
|
@@ -1274,7 +1335,7 @@ function NavbarTrigger({
|
|
|
1274
1335
|
"aria-expanded": open,
|
|
1275
1336
|
"aria-controls": id,
|
|
1276
1337
|
"aria-label": ariaLabel ?? "Toggle navigation menu",
|
|
1277
|
-
className:
|
|
1338
|
+
className: cn44(navbarTriggerVariants({ floating }), "md:hidden", className),
|
|
1278
1339
|
onClick: () => setOpen(!open),
|
|
1279
1340
|
...props,
|
|
1280
1341
|
children: children ?? /* @__PURE__ */ jsxs10(
|
|
@@ -1289,9 +1350,9 @@ function NavbarTrigger({
|
|
|
1289
1350
|
strokeLinejoin: "round",
|
|
1290
1351
|
"aria-hidden": "true",
|
|
1291
1352
|
children: [
|
|
1292
|
-
/* @__PURE__ */
|
|
1293
|
-
/* @__PURE__ */
|
|
1294
|
-
/* @__PURE__ */
|
|
1353
|
+
/* @__PURE__ */ jsx44("line", { x1: "4", x2: "20", y1: "6", y2: "6" }),
|
|
1354
|
+
/* @__PURE__ */ jsx44("line", { x1: "4", x2: "20", y1: "12", y2: "12" }),
|
|
1355
|
+
/* @__PURE__ */ jsx44("line", { x1: "4", x2: "20", y1: "18", y2: "18" })
|
|
1295
1356
|
]
|
|
1296
1357
|
}
|
|
1297
1358
|
)
|
|
@@ -1308,14 +1369,14 @@ function NavbarMobileOverlay({ className, children, ...props }) {
|
|
|
1308
1369
|
document.addEventListener("keydown", onKeydown);
|
|
1309
1370
|
return () => document.removeEventListener("keydown", onKeydown);
|
|
1310
1371
|
}, [open, setOpen]);
|
|
1311
|
-
return /* @__PURE__ */
|
|
1312
|
-
/* @__PURE__ */
|
|
1313
|
-
/* @__PURE__ */
|
|
1314
|
-
/* @__PURE__ */
|
|
1315
|
-
/* @__PURE__ */
|
|
1372
|
+
return /* @__PURE__ */ jsx44(Portal, { container: portalRef, children: /* @__PURE__ */ jsxs10(DialogRoot, { open, lazyMount: true, unmountOnExit: true, onOpenChange: ({ open: open2 }) => setOpen(open2), preventScroll: false, children: [
|
|
1373
|
+
/* @__PURE__ */ jsx44(DialogBackdrop, { className: "absolute inset-0 z-[100] bg-background/60 backdrop-blur-sm" }),
|
|
1374
|
+
/* @__PURE__ */ jsx44(DialogPositioner, { className: "absolute inset-0 z-[100]", children: /* @__PURE__ */ jsxs10(DialogContent, { id, "data-slot": "navbar-mobile-overlay", className: cn44(navbarMobileContentBase, className), ...props, children: [
|
|
1375
|
+
/* @__PURE__ */ jsx44(DialogTitle, { className: "sr-only", children: "Navigation menu" }),
|
|
1376
|
+
/* @__PURE__ */ jsx44(DialogDescription, { className: "sr-only", children: "Mobile navigation menu" }),
|
|
1316
1377
|
/* @__PURE__ */ jsxs10("div", { className: navbarMobileHeaderBase, children: [
|
|
1317
1378
|
slots.brand,
|
|
1318
|
-
/* @__PURE__ */
|
|
1379
|
+
/* @__PURE__ */ jsx44(DialogCloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx44("button", { type: "button", "aria-label": "Close navigation menu", className: cn44(navbarTriggerVariants({ floating })), children: /* @__PURE__ */ jsx44(
|
|
1319
1380
|
"svg",
|
|
1320
1381
|
{
|
|
1321
1382
|
className: "size-4",
|
|
@@ -1326,12 +1387,12 @@ function NavbarMobileOverlay({ className, children, ...props }) {
|
|
|
1326
1387
|
strokeLinecap: "round",
|
|
1327
1388
|
strokeLinejoin: "round",
|
|
1328
1389
|
"aria-hidden": "true",
|
|
1329
|
-
children: /* @__PURE__ */
|
|
1390
|
+
children: /* @__PURE__ */ jsx44("path", { d: "M18 6 6 18M6 6l12 12" })
|
|
1330
1391
|
}
|
|
1331
1392
|
) }) })
|
|
1332
1393
|
] }),
|
|
1333
|
-
/* @__PURE__ */
|
|
1334
|
-
slots.actions ? /* @__PURE__ */
|
|
1394
|
+
/* @__PURE__ */ jsx44("div", { className: navbarMobileMenuBase, children }),
|
|
1395
|
+
slots.actions ? /* @__PURE__ */ jsx44("div", { className: navbarMobileActionsBase, children: slots.actions }) : null
|
|
1335
1396
|
] }) })
|
|
1336
1397
|
] }) });
|
|
1337
1398
|
}
|
|
@@ -1361,52 +1422,52 @@ import {
|
|
|
1361
1422
|
fieldsetLegendBase,
|
|
1362
1423
|
fieldsetHelperBase,
|
|
1363
1424
|
fieldsetErrorBase,
|
|
1364
|
-
cn as
|
|
1425
|
+
cn as cn45
|
|
1365
1426
|
} from "@cloudvoyant/helix";
|
|
1366
|
-
import { jsx as
|
|
1427
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
1367
1428
|
function Field({ className, ...props }) {
|
|
1368
|
-
return /* @__PURE__ */
|
|
1429
|
+
return /* @__PURE__ */ jsx45(ArkFieldRoot, { className: cn45(fieldRootBase, className), ...props });
|
|
1369
1430
|
}
|
|
1370
1431
|
function FieldLabel({ className, ...props }) {
|
|
1371
|
-
return /* @__PURE__ */
|
|
1432
|
+
return /* @__PURE__ */ jsx45(ArkFieldLabel, { className: cn45(fieldLabelBase, className), ...props });
|
|
1372
1433
|
}
|
|
1373
1434
|
function FieldHelper({ className, ...props }) {
|
|
1374
|
-
return /* @__PURE__ */
|
|
1435
|
+
return /* @__PURE__ */ jsx45(ArkFieldHelperText, { className: cn45(fieldHelperBase, className), ...props });
|
|
1375
1436
|
}
|
|
1376
1437
|
function FieldError({ className, ...props }) {
|
|
1377
|
-
return /* @__PURE__ */
|
|
1438
|
+
return /* @__PURE__ */ jsx45(ArkFieldErrorText, { className: cn45(fieldErrorBase, className), ...props });
|
|
1378
1439
|
}
|
|
1379
1440
|
function FieldRequiredIndicator({ className, ...props }) {
|
|
1380
|
-
return /* @__PURE__ */
|
|
1441
|
+
return /* @__PURE__ */ jsx45(ArkFieldRequiredIndicator, { className: cn45(fieldRequiredIndicatorBase, className), ...props });
|
|
1381
1442
|
}
|
|
1382
1443
|
function FieldSet({ className, ...props }) {
|
|
1383
|
-
return /* @__PURE__ */
|
|
1444
|
+
return /* @__PURE__ */ jsx45(ArkFieldsetRoot, { className: cn45(fieldsetRootBase, className), ...props });
|
|
1384
1445
|
}
|
|
1385
1446
|
function FieldSetLegend({ className, ...props }) {
|
|
1386
|
-
return /* @__PURE__ */
|
|
1447
|
+
return /* @__PURE__ */ jsx45(ArkFieldsetLegend, { className: cn45(fieldsetLegendBase, className), ...props });
|
|
1387
1448
|
}
|
|
1388
1449
|
function FieldSetHelper({ className, ...props }) {
|
|
1389
|
-
return /* @__PURE__ */
|
|
1450
|
+
return /* @__PURE__ */ jsx45(ArkFieldsetHelperText, { className: cn45(fieldsetHelperBase, className), ...props });
|
|
1390
1451
|
}
|
|
1391
1452
|
function FieldSetError({ className, ...props }) {
|
|
1392
|
-
return /* @__PURE__ */
|
|
1453
|
+
return /* @__PURE__ */ jsx45(ArkFieldsetErrorText, { className: cn45(fieldsetErrorBase, className), ...props });
|
|
1393
1454
|
}
|
|
1394
1455
|
var useField = useFieldContext;
|
|
1395
1456
|
|
|
1396
1457
|
// src/input.tsx
|
|
1397
1458
|
import { FieldInput } from "@ark-ui/react/field";
|
|
1398
|
-
import { inputVariants, cn as
|
|
1399
|
-
import { jsx as
|
|
1459
|
+
import { inputVariants, cn as cn46 } from "@cloudvoyant/helix";
|
|
1460
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
1400
1461
|
function Input2({ className, size, ...props }) {
|
|
1401
|
-
return /* @__PURE__ */
|
|
1462
|
+
return /* @__PURE__ */ jsx46(FieldInput, { className: cn46(inputVariants({ size }), className), ...props });
|
|
1402
1463
|
}
|
|
1403
1464
|
|
|
1404
1465
|
// src/textarea.tsx
|
|
1405
1466
|
import { FieldTextarea } from "@ark-ui/react/field";
|
|
1406
|
-
import { textareaBase, cn as
|
|
1407
|
-
import { jsx as
|
|
1467
|
+
import { textareaBase, cn as cn47 } from "@cloudvoyant/helix";
|
|
1468
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
1408
1469
|
function Textarea({ className, ...props }) {
|
|
1409
|
-
return /* @__PURE__ */
|
|
1470
|
+
return /* @__PURE__ */ jsx47(FieldTextarea, { className: cn47(textareaBase, className), ...props });
|
|
1410
1471
|
}
|
|
1411
1472
|
|
|
1412
1473
|
// src/number-input.tsx
|
|
@@ -1423,23 +1484,23 @@ import {
|
|
|
1423
1484
|
numberInputControlBase,
|
|
1424
1485
|
numberInputInputBase,
|
|
1425
1486
|
numberInputTriggerBase,
|
|
1426
|
-
cn as
|
|
1487
|
+
cn as cn48
|
|
1427
1488
|
} from "@cloudvoyant/helix";
|
|
1428
|
-
import { jsx as
|
|
1489
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
1429
1490
|
function NumberInput({ className, ...props }) {
|
|
1430
|
-
return /* @__PURE__ */
|
|
1491
|
+
return /* @__PURE__ */ jsx48(ArkNumberInputRoot, { className: cn48(numberInputRootBase, className), ...props });
|
|
1431
1492
|
}
|
|
1432
1493
|
function NumberInputControl({ className, ...props }) {
|
|
1433
|
-
return /* @__PURE__ */
|
|
1494
|
+
return /* @__PURE__ */ jsx48(ArkNumberInputControl, { className: cn48(numberInputControlBase, className), ...props });
|
|
1434
1495
|
}
|
|
1435
1496
|
function NumberInputInput({ className, ...props }) {
|
|
1436
|
-
return /* @__PURE__ */
|
|
1497
|
+
return /* @__PURE__ */ jsx48(ArkNumberInputInput, { className: cn48(numberInputInputBase, className), ...props });
|
|
1437
1498
|
}
|
|
1438
1499
|
function NumberInputDecrement({ className, ...props }) {
|
|
1439
|
-
return /* @__PURE__ */
|
|
1500
|
+
return /* @__PURE__ */ jsx48(ArkNumberInputDecrementTrigger, { "aria-label": "Decrement", className: cn48(numberInputTriggerBase, className), ...props });
|
|
1440
1501
|
}
|
|
1441
1502
|
function NumberInputIncrement({ className, ...props }) {
|
|
1442
|
-
return /* @__PURE__ */
|
|
1503
|
+
return /* @__PURE__ */ jsx48(ArkNumberInputIncrementTrigger, { "aria-label": "Increment", className: cn48(numberInputTriggerBase, className), ...props });
|
|
1443
1504
|
}
|
|
1444
1505
|
var useNumberInput = useNumberInputContext;
|
|
1445
1506
|
|
|
@@ -1454,27 +1515,27 @@ import {
|
|
|
1454
1515
|
CheckboxHiddenInput as ArkCheckboxHiddenInput,
|
|
1455
1516
|
useCheckboxContext
|
|
1456
1517
|
} from "@ark-ui/react/checkbox";
|
|
1457
|
-
import { checkboxVariants, checkboxIndicatorBase, checkboxLabelBase, checkboxGroupBase, cn as
|
|
1458
|
-
import { jsx as
|
|
1518
|
+
import { checkboxVariants, checkboxIndicatorBase, checkboxLabelBase, checkboxGroupBase, cn as cn49 } from "@cloudvoyant/helix";
|
|
1519
|
+
import { jsx as jsx49, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1459
1520
|
var CheckboxSizeContext = createContext4("md");
|
|
1460
1521
|
function Checkbox({ className, size = "md", children, ...props }) {
|
|
1461
|
-
return /* @__PURE__ */
|
|
1522
|
+
return /* @__PURE__ */ jsx49(CheckboxSizeContext.Provider, { value: size, children: /* @__PURE__ */ jsxs11(ArkCheckboxRoot, { className: cn49("flex items-center gap-2", className), ...props, children: [
|
|
1462
1523
|
children,
|
|
1463
|
-
/* @__PURE__ */
|
|
1524
|
+
/* @__PURE__ */ jsx49(ArkCheckboxHiddenInput, {})
|
|
1464
1525
|
] }) });
|
|
1465
1526
|
}
|
|
1466
1527
|
function CheckboxControl({ className, ...props }) {
|
|
1467
1528
|
const size = useContext4(CheckboxSizeContext);
|
|
1468
|
-
return /* @__PURE__ */
|
|
1529
|
+
return /* @__PURE__ */ jsx49(ArkCheckboxControl, { className: cn49(checkboxVariants({ size }), className), ...props });
|
|
1469
1530
|
}
|
|
1470
1531
|
function CheckboxIndicator({ className, ...props }) {
|
|
1471
|
-
return /* @__PURE__ */
|
|
1532
|
+
return /* @__PURE__ */ jsx49(ArkCheckboxIndicator, { className: cn49(checkboxIndicatorBase, className), ...props });
|
|
1472
1533
|
}
|
|
1473
1534
|
function CheckboxLabel({ className, ...props }) {
|
|
1474
|
-
return /* @__PURE__ */
|
|
1535
|
+
return /* @__PURE__ */ jsx49(ArkCheckboxLabel, { className: cn49(checkboxLabelBase, className), ...props });
|
|
1475
1536
|
}
|
|
1476
1537
|
function CheckboxGroup({ className, ...props }) {
|
|
1477
|
-
return /* @__PURE__ */
|
|
1538
|
+
return /* @__PURE__ */ jsx49(ArkCheckboxGroup, { className: cn49(checkboxGroupBase, className), ...props });
|
|
1478
1539
|
}
|
|
1479
1540
|
var useCheckbox = useCheckboxContext;
|
|
1480
1541
|
|
|
@@ -1488,29 +1549,29 @@ import {
|
|
|
1488
1549
|
SwitchHiddenInput as ArkSwitchHiddenInput,
|
|
1489
1550
|
useSwitchContext
|
|
1490
1551
|
} from "@ark-ui/react/switch";
|
|
1491
|
-
import { switchVariants, switchControlBase, switchThumbBase, switchLabelBase, cn as
|
|
1492
|
-
import { jsx as
|
|
1552
|
+
import { switchVariants, switchControlBase, switchThumbBase, switchLabelBase, cn as cn50 } from "@cloudvoyant/helix";
|
|
1553
|
+
import { jsx as jsx50, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1493
1554
|
var SwitchSizeContext = createContext5("md");
|
|
1494
1555
|
function Switch({ className, size = "md", children, ...props }) {
|
|
1495
|
-
return /* @__PURE__ */
|
|
1556
|
+
return /* @__PURE__ */ jsx50(SwitchSizeContext.Provider, { value: size, children: /* @__PURE__ */ jsxs12(ArkSwitchRoot, { className: cn50("flex items-center gap-2", className), ...props, children: [
|
|
1496
1557
|
children,
|
|
1497
|
-
/* @__PURE__ */
|
|
1558
|
+
/* @__PURE__ */ jsx50(ArkSwitchHiddenInput, {})
|
|
1498
1559
|
] }) });
|
|
1499
1560
|
}
|
|
1500
1561
|
function SwitchControl({ className, ...props }) {
|
|
1501
1562
|
const size = useContext5(SwitchSizeContext);
|
|
1502
|
-
return /* @__PURE__ */
|
|
1563
|
+
return /* @__PURE__ */ jsx50(ArkSwitchControl, { className: cn50(switchVariants({ size }), switchControlBase, className), ...props });
|
|
1503
1564
|
}
|
|
1504
1565
|
function SwitchThumb({ className, ...props }) {
|
|
1505
|
-
return /* @__PURE__ */
|
|
1566
|
+
return /* @__PURE__ */ jsx50(ArkSwitchThumb, { className: cn50(switchThumbBase, className), ...props });
|
|
1506
1567
|
}
|
|
1507
1568
|
function SwitchLabel({ className, ...props }) {
|
|
1508
|
-
return /* @__PURE__ */
|
|
1569
|
+
return /* @__PURE__ */ jsx50(ArkSwitchLabel, { className: cn50(switchLabelBase, className), ...props });
|
|
1509
1570
|
}
|
|
1510
1571
|
var useSwitch = useSwitchContext;
|
|
1511
1572
|
|
|
1512
1573
|
// src/select.tsx
|
|
1513
|
-
import { ark as
|
|
1574
|
+
import { ark as ark34 } from "@ark-ui/react/factory";
|
|
1514
1575
|
import { Portal as Portal2 } from "@ark-ui/react/portal";
|
|
1515
1576
|
import { useMemo as useMemo4 } from "react";
|
|
1516
1577
|
import {
|
|
@@ -1545,7 +1606,7 @@ import {
|
|
|
1545
1606
|
nativeSelectVariants,
|
|
1546
1607
|
nativeSelectWrapperBase,
|
|
1547
1608
|
nativeSelectIconBase,
|
|
1548
|
-
cn as
|
|
1609
|
+
cn as cn51
|
|
1549
1610
|
} from "@cloudvoyant/helix";
|
|
1550
1611
|
|
|
1551
1612
|
// src/use-media-query.ts
|
|
@@ -1563,7 +1624,7 @@ function useMediaQuery(query) {
|
|
|
1563
1624
|
}
|
|
1564
1625
|
|
|
1565
1626
|
// src/select.tsx
|
|
1566
|
-
import { jsx as
|
|
1627
|
+
import { jsx as jsx51, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1567
1628
|
function Select({ items, collection, size, children, ...props }) {
|
|
1568
1629
|
const isCoarse = useMediaQuery("(pointer: coarse)");
|
|
1569
1630
|
const resolvedCollection = useMemo4(
|
|
@@ -1571,7 +1632,7 @@ function Select({ items, collection, size, children, ...props }) {
|
|
|
1571
1632
|
[collection, items]
|
|
1572
1633
|
);
|
|
1573
1634
|
if (isCoarse && items) {
|
|
1574
|
-
return /* @__PURE__ */
|
|
1635
|
+
return /* @__PURE__ */ jsx51(
|
|
1575
1636
|
SelectNative,
|
|
1576
1637
|
{
|
|
1577
1638
|
items,
|
|
@@ -1589,42 +1650,42 @@ function Select({ items, collection, size, children, ...props }) {
|
|
|
1589
1650
|
}
|
|
1590
1651
|
return /* @__PURE__ */ jsxs13(ArkSelectRoot, { collection: resolvedCollection, ...props, children: [
|
|
1591
1652
|
children,
|
|
1592
|
-
/* @__PURE__ */
|
|
1653
|
+
/* @__PURE__ */ jsx51(ArkSelectHiddenSelect, {})
|
|
1593
1654
|
] });
|
|
1594
1655
|
}
|
|
1595
1656
|
function SelectTrigger({ size = "md", className, ...props }) {
|
|
1596
|
-
return /* @__PURE__ */
|
|
1657
|
+
return /* @__PURE__ */ jsx51(ArkSelectTrigger, { className: cn51(inputVariants2({ size }), selectTriggerBase, className), ...props });
|
|
1597
1658
|
}
|
|
1598
1659
|
function SelectValue({ className, ...props }) {
|
|
1599
|
-
return /* @__PURE__ */
|
|
1660
|
+
return /* @__PURE__ */ jsx51(ArkSelectValueText, { className: cn51(selectValueBase, className), ...props });
|
|
1600
1661
|
}
|
|
1601
1662
|
function SelectIndicator({ className, ...props }) {
|
|
1602
|
-
return /* @__PURE__ */
|
|
1663
|
+
return /* @__PURE__ */ jsx51(ArkSelectIndicator, { className: cn51(selectIndicatorBase, className), ...props });
|
|
1603
1664
|
}
|
|
1604
1665
|
function SelectClearTrigger({ className, ...props }) {
|
|
1605
|
-
return /* @__PURE__ */
|
|
1666
|
+
return /* @__PURE__ */ jsx51(ArkSelectClearTrigger, { "aria-label": "Clear selection", className: cn51(selectClearTriggerBase, className), ...props });
|
|
1606
1667
|
}
|
|
1607
1668
|
function SelectContent({ className, ...props }) {
|
|
1608
|
-
return /* @__PURE__ */
|
|
1669
|
+
return /* @__PURE__ */ jsx51(Portal2, { children: /* @__PURE__ */ jsx51(ArkSelectPositioner, { className: selectPositionerBase, children: /* @__PURE__ */ jsx51(ArkSelectContent, { className: cn51(selectContentBase, className), ...props }) }) });
|
|
1609
1670
|
}
|
|
1610
1671
|
function SelectItemGroup({ className, ...props }) {
|
|
1611
|
-
return /* @__PURE__ */
|
|
1672
|
+
return /* @__PURE__ */ jsx51(ArkSelectItemGroup, { className, ...props });
|
|
1612
1673
|
}
|
|
1613
1674
|
function SelectItemGroupLabel({ className, ...props }) {
|
|
1614
|
-
return /* @__PURE__ */
|
|
1675
|
+
return /* @__PURE__ */ jsx51(ArkSelectItemGroupLabel, { className: cn51(selectItemGroupLabelBase, className), ...props });
|
|
1615
1676
|
}
|
|
1616
1677
|
function SelectItem({ item, className, ...props }) {
|
|
1617
|
-
return /* @__PURE__ */
|
|
1678
|
+
return /* @__PURE__ */ jsx51(ArkSelectItem, { item, className: cn51(selectItemBase, className), ...props });
|
|
1618
1679
|
}
|
|
1619
1680
|
function SelectItemText({ className, ...props }) {
|
|
1620
|
-
return /* @__PURE__ */
|
|
1681
|
+
return /* @__PURE__ */ jsx51(ArkSelectItemText, { className: cn51(selectItemTextBase, className), ...props });
|
|
1621
1682
|
}
|
|
1622
1683
|
function SelectItemIndicator({ className, ...props }) {
|
|
1623
|
-
return /* @__PURE__ */
|
|
1684
|
+
return /* @__PURE__ */ jsx51(ArkSelectItemIndicator, { className: cn51(selectItemIndicatorBase, className), ...props });
|
|
1624
1685
|
}
|
|
1625
1686
|
var useSelect = useSelectContext;
|
|
1626
1687
|
function ChevronDownIcon() {
|
|
1627
|
-
return /* @__PURE__ */
|
|
1688
|
+
return /* @__PURE__ */ jsx51(
|
|
1628
1689
|
"svg",
|
|
1629
1690
|
{
|
|
1630
1691
|
viewBox: "0 0 24 24",
|
|
@@ -1634,7 +1695,7 @@ function ChevronDownIcon() {
|
|
|
1634
1695
|
strokeLinecap: "round",
|
|
1635
1696
|
strokeLinejoin: "round",
|
|
1636
1697
|
"aria-hidden": true,
|
|
1637
|
-
children: /* @__PURE__ */
|
|
1698
|
+
children: /* @__PURE__ */ jsx51("path", { d: "m6 9 6 6 6-6" })
|
|
1638
1699
|
}
|
|
1639
1700
|
);
|
|
1640
1701
|
}
|
|
@@ -1649,9 +1710,9 @@ function SelectNative({
|
|
|
1649
1710
|
className,
|
|
1650
1711
|
...props
|
|
1651
1712
|
}) {
|
|
1652
|
-
return /* @__PURE__ */ jsxs13(
|
|
1653
|
-
/* @__PURE__ */
|
|
1654
|
-
|
|
1713
|
+
return /* @__PURE__ */ jsxs13(ark34.div, { className: cn51(nativeSelectWrapperBase, className), children: [
|
|
1714
|
+
/* @__PURE__ */ jsx51(
|
|
1715
|
+
ark34.select,
|
|
1655
1716
|
{
|
|
1656
1717
|
className: nativeSelectVariants({ size }),
|
|
1657
1718
|
value,
|
|
@@ -1659,10 +1720,10 @@ function SelectNative({
|
|
|
1659
1720
|
onChange: (event) => onValueChange?.(event.currentTarget.value),
|
|
1660
1721
|
"aria-invalid": invalid,
|
|
1661
1722
|
...props,
|
|
1662
|
-
children: items.map((item) => /* @__PURE__ */
|
|
1723
|
+
children: items.map((item) => /* @__PURE__ */ jsx51(ark34.option, { value: item.value, disabled: item.disabled, children: item.label }, item.value))
|
|
1663
1724
|
}
|
|
1664
1725
|
),
|
|
1665
|
-
/* @__PURE__ */
|
|
1726
|
+
/* @__PURE__ */ jsx51(ark34.span, { className: nativeSelectIconBase, "aria-hidden": true, children: icon ?? /* @__PURE__ */ jsx51(ChevronDownIcon, {}) })
|
|
1666
1727
|
] });
|
|
1667
1728
|
}
|
|
1668
1729
|
|
|
@@ -1700,9 +1761,9 @@ import {
|
|
|
1700
1761
|
comboboxItemIndicatorBase,
|
|
1701
1762
|
comboboxListBase,
|
|
1702
1763
|
comboboxEmptyBase,
|
|
1703
|
-
cn as
|
|
1764
|
+
cn as cn52
|
|
1704
1765
|
} from "@cloudvoyant/helix";
|
|
1705
|
-
import { jsx as
|
|
1766
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
1706
1767
|
function Combobox({
|
|
1707
1768
|
items,
|
|
1708
1769
|
collection,
|
|
@@ -1715,7 +1776,7 @@ function Combobox({
|
|
|
1715
1776
|
() => collection ?? createListCollection2({ items: items ?? [] }),
|
|
1716
1777
|
[collection, items]
|
|
1717
1778
|
);
|
|
1718
|
-
return /* @__PURE__ */
|
|
1779
|
+
return /* @__PURE__ */ jsx52(
|
|
1719
1780
|
ArkComboboxRoot,
|
|
1720
1781
|
{
|
|
1721
1782
|
collection: resolvedCollection,
|
|
@@ -1727,40 +1788,40 @@ function Combobox({
|
|
|
1727
1788
|
);
|
|
1728
1789
|
}
|
|
1729
1790
|
function ComboboxControl({ className, ...props }) {
|
|
1730
|
-
return /* @__PURE__ */
|
|
1791
|
+
return /* @__PURE__ */ jsx52(ArkComboboxControl, { className: cn52(comboboxControlBase, className), ...props });
|
|
1731
1792
|
}
|
|
1732
1793
|
function ComboboxInput({ size = "md", className, ...props }) {
|
|
1733
|
-
return /* @__PURE__ */
|
|
1794
|
+
return /* @__PURE__ */ jsx52(ArkComboboxInput, { className: cn52(inputVariants3({ size }), comboboxInputBase, className), ...props });
|
|
1734
1795
|
}
|
|
1735
1796
|
function ComboboxTrigger({ className, ...props }) {
|
|
1736
|
-
return /* @__PURE__ */
|
|
1797
|
+
return /* @__PURE__ */ jsx52(ArkComboboxTrigger, { className: cn52(comboboxTriggerBase, className), ...props });
|
|
1737
1798
|
}
|
|
1738
1799
|
function ComboboxClear({ className, ...props }) {
|
|
1739
|
-
return /* @__PURE__ */
|
|
1800
|
+
return /* @__PURE__ */ jsx52(ArkComboboxClearTrigger, { "aria-label": "Clear", className: cn52(comboboxClearTriggerBase, className), ...props });
|
|
1740
1801
|
}
|
|
1741
1802
|
function ComboboxContent({ className, ...props }) {
|
|
1742
|
-
return /* @__PURE__ */
|
|
1803
|
+
return /* @__PURE__ */ jsx52(Portal3, { children: /* @__PURE__ */ jsx52(ArkComboboxPositioner, { className: comboboxPositionerBase, children: /* @__PURE__ */ jsx52(ArkComboboxContent, { className: cn52(comboboxContentBase, className), ...props }) }) });
|
|
1743
1804
|
}
|
|
1744
1805
|
function ComboboxItemGroup({ className, ...props }) {
|
|
1745
|
-
return /* @__PURE__ */
|
|
1806
|
+
return /* @__PURE__ */ jsx52(ArkComboboxItemGroup, { className, ...props });
|
|
1746
1807
|
}
|
|
1747
1808
|
function ComboboxItemGroupLabel({ className, ...props }) {
|
|
1748
|
-
return /* @__PURE__ */
|
|
1809
|
+
return /* @__PURE__ */ jsx52(ArkComboboxItemGroupLabel, { className: cn52(comboboxItemGroupLabelBase, className), ...props });
|
|
1749
1810
|
}
|
|
1750
1811
|
function ComboboxItem({ item, showIndicator = true, className, ...props }) {
|
|
1751
|
-
return /* @__PURE__ */
|
|
1812
|
+
return /* @__PURE__ */ jsx52(ArkComboboxItem, { item, persistFocus: true, className: cn52(comboboxItemVariants({ showIndicator }), className), ...props });
|
|
1752
1813
|
}
|
|
1753
1814
|
function ComboboxItemText({ className, ...props }) {
|
|
1754
|
-
return /* @__PURE__ */
|
|
1815
|
+
return /* @__PURE__ */ jsx52(ArkComboboxItemText, { className, ...props });
|
|
1755
1816
|
}
|
|
1756
1817
|
function ComboboxItemIndicator({ className, ...props }) {
|
|
1757
|
-
return /* @__PURE__ */
|
|
1818
|
+
return /* @__PURE__ */ jsx52(ArkComboboxItemIndicator, { className: cn52(comboboxItemIndicatorBase, className), ...props });
|
|
1758
1819
|
}
|
|
1759
1820
|
function ComboboxList({ className, ...props }) {
|
|
1760
|
-
return /* @__PURE__ */
|
|
1821
|
+
return /* @__PURE__ */ jsx52(ArkComboboxList, { className: cn52(comboboxListBase, className), ...props });
|
|
1761
1822
|
}
|
|
1762
1823
|
function ComboboxEmpty({ className, children, ...props }) {
|
|
1763
|
-
return /* @__PURE__ */
|
|
1824
|
+
return /* @__PURE__ */ jsx52(ArkComboboxEmpty, { className: cn52(comboboxEmptyBase, className), ...props, children: children ?? "No results found." });
|
|
1764
1825
|
}
|
|
1765
1826
|
var useCombobox = useComboboxContext;
|
|
1766
1827
|
|
|
@@ -1788,38 +1849,38 @@ import {
|
|
|
1788
1849
|
tagsInputItemInputBase,
|
|
1789
1850
|
tagsInputItemDeleteTriggerBase,
|
|
1790
1851
|
tagsInputClearTriggerBase,
|
|
1791
|
-
cn as
|
|
1852
|
+
cn as cn53
|
|
1792
1853
|
} from "@cloudvoyant/helix";
|
|
1793
|
-
import { jsx as
|
|
1854
|
+
import { jsx as jsx53, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1794
1855
|
function TagInput({ className, editable = false, children, ...props }) {
|
|
1795
|
-
return /* @__PURE__ */ jsxs14(ArkTagsInputRoot, { className:
|
|
1856
|
+
return /* @__PURE__ */ jsxs14(ArkTagsInputRoot, { className: cn53(tagsInputRootBase, className), editable, ...props, children: [
|
|
1796
1857
|
children,
|
|
1797
|
-
/* @__PURE__ */
|
|
1858
|
+
/* @__PURE__ */ jsx53(ArkTagsInputHiddenInput, {})
|
|
1798
1859
|
] });
|
|
1799
1860
|
}
|
|
1800
1861
|
function TagInputControl({ className, ...props }) {
|
|
1801
|
-
return /* @__PURE__ */
|
|
1862
|
+
return /* @__PURE__ */ jsx53(ArkTagsInputControl, { className: cn53(tagsInputControlBase, className), ...props });
|
|
1802
1863
|
}
|
|
1803
1864
|
function TagInputInput({ className, ...props }) {
|
|
1804
|
-
return /* @__PURE__ */
|
|
1865
|
+
return /* @__PURE__ */ jsx53(ArkTagsInputInput, { className: cn53(tagsInputInputBase, className), ...props });
|
|
1805
1866
|
}
|
|
1806
1867
|
function TagInputItem({ className, ...props }) {
|
|
1807
|
-
return /* @__PURE__ */
|
|
1868
|
+
return /* @__PURE__ */ jsx53(ArkTagsInputItem, { className: cn53(tagsInputItemBase, className), ...props });
|
|
1808
1869
|
}
|
|
1809
1870
|
function TagInputItemPreview({ className, ...props }) {
|
|
1810
|
-
return /* @__PURE__ */
|
|
1871
|
+
return /* @__PURE__ */ jsx53(ArkTagsInputItemPreview, { className, ...props });
|
|
1811
1872
|
}
|
|
1812
1873
|
function TagInputItemText({ className, ...props }) {
|
|
1813
|
-
return /* @__PURE__ */
|
|
1874
|
+
return /* @__PURE__ */ jsx53(ArkTagsInputItemText, { className: cn53(tagsInputItemTextBase, className), ...props });
|
|
1814
1875
|
}
|
|
1815
1876
|
function TagInputItemInput({ className, ...props }) {
|
|
1816
|
-
return /* @__PURE__ */
|
|
1877
|
+
return /* @__PURE__ */ jsx53(ArkTagsInputItemInput, { className: cn53(tagsInputItemInputBase, className), ...props });
|
|
1817
1878
|
}
|
|
1818
1879
|
function TagInputItemDeleteTrigger({ className, ...props }) {
|
|
1819
|
-
return /* @__PURE__ */
|
|
1880
|
+
return /* @__PURE__ */ jsx53(ArkTagsInputItemDeleteTrigger, { "aria-label": "Remove tag", className: cn53(tagsInputItemDeleteTriggerBase, className), ...props });
|
|
1820
1881
|
}
|
|
1821
1882
|
function TagInputClearTrigger({ className, ...props }) {
|
|
1822
|
-
return /* @__PURE__ */
|
|
1883
|
+
return /* @__PURE__ */ jsx53(ArkTagsInputClearTrigger, { "aria-label": "Clear all tags", className: cn53(tagsInputClearTriggerBase, className), ...props });
|
|
1823
1884
|
}
|
|
1824
1885
|
var TagInputContext = ArkTagsInputContext;
|
|
1825
1886
|
var useTagInput = useTagsInputContext;
|
|
@@ -1890,6 +1951,11 @@ export {
|
|
|
1890
1951
|
NumberInputDecrement,
|
|
1891
1952
|
NumberInputIncrement,
|
|
1892
1953
|
NumberInputInput,
|
|
1954
|
+
Page,
|
|
1955
|
+
PageContent,
|
|
1956
|
+
PageFooter,
|
|
1957
|
+
PageGutter,
|
|
1958
|
+
PageSection,
|
|
1893
1959
|
Pagination,
|
|
1894
1960
|
PaginationEllipsis,
|
|
1895
1961
|
PaginationItem,
|