@exponential_app/eui-react 0.3.0 → 0.4.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/README.md +1 -1
- package/dist/chunks/index-eny7hh6w.js +596 -0
- package/dist/chunks/index-eny7hh6w.js.map +15 -0
- package/dist/exponential-ui-react.css +1 -1
- package/dist/index.js +901 -596
- package/dist/index.js.map +13 -11
- package/dist/primitives/index.js +320 -521
- package/dist/primitives/index.js.map +3 -6
- package/dist/types/icons.d.ts +1 -0
- package/dist/types/natives/media.d.ts +7 -0
- package/dist/types/natives/motion.d.ts +2 -0
- package/dist/types/natives/overlays.d.ts +33 -0
- package/dist/types/natives/zoomable-image.d.ts +2 -0
- package/dist/types/primitives/index.d.ts +1 -0
- package/dist/types/primitives/zoomable-image.d.ts +69 -0
- package/package.json +2 -2
- package/dist/chunks/index-5yzzfez5.js +0 -126
- package/dist/chunks/index-5yzzfez5.js.map +0 -11
package/dist/primitives/index.js
CHANGED
|
@@ -5,8 +5,30 @@ import {
|
|
|
5
5
|
ChoiceTiles2,
|
|
6
6
|
choiceColumns2,
|
|
7
7
|
choiceToggle2,
|
|
8
|
-
choiceValues2
|
|
9
|
-
|
|
8
|
+
choiceValues2,
|
|
9
|
+
buttonVariants2,
|
|
10
|
+
Button2,
|
|
11
|
+
DropdownMenu2,
|
|
12
|
+
DropdownMenuPortal2,
|
|
13
|
+
DropdownMenuTrigger2,
|
|
14
|
+
DropdownMenuContent2,
|
|
15
|
+
DropdownMenuGroup2,
|
|
16
|
+
DropdownMenuItem2,
|
|
17
|
+
DropdownMenuCheckboxItem2,
|
|
18
|
+
DropdownMenuRadioGroup2,
|
|
19
|
+
DropdownMenuRadioItem2,
|
|
20
|
+
DropdownMenuLabel2,
|
|
21
|
+
DropdownMenuSeparator2,
|
|
22
|
+
DropdownMenuShortcut2,
|
|
23
|
+
DropdownMenuSub2,
|
|
24
|
+
DropdownMenuSubTrigger2,
|
|
25
|
+
DropdownMenuSubContent2,
|
|
26
|
+
useMediaQuery2,
|
|
27
|
+
ZOOM_MATH2,
|
|
28
|
+
useZoomableImage2,
|
|
29
|
+
ZOOMABLE_IMAGE_STRINGS2,
|
|
30
|
+
ZoomableImage2
|
|
31
|
+
} from "../chunks/index-eny7hh6w.js";
|
|
10
32
|
|
|
11
33
|
// packages/exponential-ui-react/src/primitives/alert.tsx
|
|
12
34
|
import { ALERT_CLASSES, alertVariants } from "@exponential_app/eui/web/primitives";
|
|
@@ -253,26 +275,6 @@ function BreadcrumbEllipsis({ className, ...props }) {
|
|
|
253
275
|
]
|
|
254
276
|
});
|
|
255
277
|
}
|
|
256
|
-
// packages/exponential-ui-react/src/primitives/button.tsx
|
|
257
|
-
import { Slot as Slot2 } from "radix-ui";
|
|
258
|
-
import { buttonVariants } from "@exponential_app/eui/web/primitives";
|
|
259
|
-
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
260
|
-
function Button({
|
|
261
|
-
className,
|
|
262
|
-
variant = `default`,
|
|
263
|
-
size = `default`,
|
|
264
|
-
asChild = false,
|
|
265
|
-
...props
|
|
266
|
-
}) {
|
|
267
|
-
const Comp = asChild ? Slot2.Root : `button`;
|
|
268
|
-
return /* @__PURE__ */ jsx6(Comp, {
|
|
269
|
-
"data-slot": "button",
|
|
270
|
-
"data-variant": variant,
|
|
271
|
-
"data-size": size,
|
|
272
|
-
className: cn2(buttonVariants({ variant, size, className })),
|
|
273
|
-
...props
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
278
|
// packages/exponential-ui-react/src/primitives/calendar.tsx
|
|
277
279
|
import * as React from "react";
|
|
278
280
|
import {
|
|
@@ -284,8 +286,8 @@ import {
|
|
|
284
286
|
DayPicker,
|
|
285
287
|
getDefaultClassNames
|
|
286
288
|
} from "react-day-picker";
|
|
287
|
-
import { CALENDAR_CLASSES, buttonVariants
|
|
288
|
-
import { jsx as
|
|
289
|
+
import { CALENDAR_CLASSES, buttonVariants } from "@exponential_app/eui/web/primitives";
|
|
290
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
289
291
|
function Calendar({
|
|
290
292
|
className,
|
|
291
293
|
classNames,
|
|
@@ -298,7 +300,7 @@ function Calendar({
|
|
|
298
300
|
}) {
|
|
299
301
|
const defaultClassNames = getDefaultClassNames();
|
|
300
302
|
const parts = CALENDAR_CLASSES.classNames;
|
|
301
|
-
return /* @__PURE__ */
|
|
303
|
+
return /* @__PURE__ */ jsx6(DayPicker, {
|
|
302
304
|
showOutsideDays,
|
|
303
305
|
className: cn2(CALENDAR_CLASSES.root, className),
|
|
304
306
|
captionLayout,
|
|
@@ -311,8 +313,8 @@ function Calendar({
|
|
|
311
313
|
months: cn2(parts.months, defaultClassNames.months),
|
|
312
314
|
month: cn2(parts.month, defaultClassNames.month),
|
|
313
315
|
nav: cn2(parts.nav, defaultClassNames.nav),
|
|
314
|
-
button_previous: cn2(
|
|
315
|
-
button_next: cn2(
|
|
316
|
+
button_previous: cn2(buttonVariants({ variant: buttonVariant }), parts.button_previous, defaultClassNames.button_previous),
|
|
317
|
+
button_next: cn2(buttonVariants({ variant: buttonVariant }), parts.button_next, defaultClassNames.button_next),
|
|
316
318
|
month_caption: cn2(parts.month_caption, defaultClassNames.month_caption),
|
|
317
319
|
dropdowns: cn2(parts.dropdowns, defaultClassNames.dropdowns),
|
|
318
320
|
dropdown_root: cn2(parts.dropdown_root, defaultClassNames.dropdown_root),
|
|
@@ -336,7 +338,7 @@ function Calendar({
|
|
|
336
338
|
},
|
|
337
339
|
components: {
|
|
338
340
|
Root: ({ className, rootRef, ...props }) => {
|
|
339
|
-
return /* @__PURE__ */
|
|
341
|
+
return /* @__PURE__ */ jsx6("div", {
|
|
340
342
|
"data-slot": "calendar",
|
|
341
343
|
ref: rootRef,
|
|
342
344
|
className: cn2(className),
|
|
@@ -345,27 +347,27 @@ function Calendar({
|
|
|
345
347
|
},
|
|
346
348
|
Chevron: ({ className, orientation, ...props }) => {
|
|
347
349
|
if (orientation === `left`) {
|
|
348
|
-
return /* @__PURE__ */
|
|
350
|
+
return /* @__PURE__ */ jsx6(ChevronLeftIcon, {
|
|
349
351
|
className: cn2(CALENDAR_CLASSES.chevron, className),
|
|
350
352
|
...props
|
|
351
353
|
});
|
|
352
354
|
}
|
|
353
355
|
if (orientation === `right`) {
|
|
354
|
-
return /* @__PURE__ */
|
|
356
|
+
return /* @__PURE__ */ jsx6(ChevronRightIcon, {
|
|
355
357
|
className: cn2(CALENDAR_CLASSES.chevron, className),
|
|
356
358
|
...props
|
|
357
359
|
});
|
|
358
360
|
}
|
|
359
|
-
return /* @__PURE__ */
|
|
361
|
+
return /* @__PURE__ */ jsx6(ChevronDownIcon, {
|
|
360
362
|
className: cn2(CALENDAR_CLASSES.chevron, className),
|
|
361
363
|
...props
|
|
362
364
|
});
|
|
363
365
|
},
|
|
364
366
|
DayButton: CalendarDayButton,
|
|
365
367
|
WeekNumber: ({ children, ...props }) => {
|
|
366
|
-
return /* @__PURE__ */
|
|
368
|
+
return /* @__PURE__ */ jsx6("td", {
|
|
367
369
|
...props,
|
|
368
|
-
children: /* @__PURE__ */
|
|
370
|
+
children: /* @__PURE__ */ jsx6("div", {
|
|
369
371
|
className: CALENDAR_CLASSES.weekNumber,
|
|
370
372
|
children
|
|
371
373
|
})
|
|
@@ -388,7 +390,7 @@ function CalendarDayButton({
|
|
|
388
390
|
if (modifiers.focused)
|
|
389
391
|
ref.current?.focus();
|
|
390
392
|
}, [modifiers.focused]);
|
|
391
|
-
return /* @__PURE__ */
|
|
393
|
+
return /* @__PURE__ */ jsx6(Button2, {
|
|
392
394
|
ref,
|
|
393
395
|
variant: "ghost",
|
|
394
396
|
size: "icon",
|
|
@@ -403,51 +405,51 @@ function CalendarDayButton({
|
|
|
403
405
|
}
|
|
404
406
|
// packages/exponential-ui-react/src/primitives/card.tsx
|
|
405
407
|
import { CARD_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
406
|
-
import { jsx as
|
|
408
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
407
409
|
function Card({ className, ...props }) {
|
|
408
|
-
return /* @__PURE__ */
|
|
410
|
+
return /* @__PURE__ */ jsx7("div", {
|
|
409
411
|
"data-slot": "card",
|
|
410
412
|
className: cn2(CARD_CLASSES.root, className),
|
|
411
413
|
...props
|
|
412
414
|
});
|
|
413
415
|
}
|
|
414
416
|
function CardHeader({ className, ...props }) {
|
|
415
|
-
return /* @__PURE__ */
|
|
417
|
+
return /* @__PURE__ */ jsx7("div", {
|
|
416
418
|
"data-slot": "card-header",
|
|
417
419
|
className: cn2(CARD_CLASSES.header, className),
|
|
418
420
|
...props
|
|
419
421
|
});
|
|
420
422
|
}
|
|
421
423
|
function CardTitle({ className, ...props }) {
|
|
422
|
-
return /* @__PURE__ */
|
|
424
|
+
return /* @__PURE__ */ jsx7("div", {
|
|
423
425
|
"data-slot": "card-title",
|
|
424
426
|
className: cn2(CARD_CLASSES.title, className),
|
|
425
427
|
...props
|
|
426
428
|
});
|
|
427
429
|
}
|
|
428
430
|
function CardDescription({ className, ...props }) {
|
|
429
|
-
return /* @__PURE__ */
|
|
431
|
+
return /* @__PURE__ */ jsx7("div", {
|
|
430
432
|
"data-slot": "card-description",
|
|
431
433
|
className: cn2(CARD_CLASSES.description, className),
|
|
432
434
|
...props
|
|
433
435
|
});
|
|
434
436
|
}
|
|
435
437
|
function CardAction({ className, ...props }) {
|
|
436
|
-
return /* @__PURE__ */
|
|
438
|
+
return /* @__PURE__ */ jsx7("div", {
|
|
437
439
|
"data-slot": "card-action",
|
|
438
440
|
className: cn2(CARD_CLASSES.action, className),
|
|
439
441
|
...props
|
|
440
442
|
});
|
|
441
443
|
}
|
|
442
444
|
function CardContent({ className, ...props }) {
|
|
443
|
-
return /* @__PURE__ */
|
|
445
|
+
return /* @__PURE__ */ jsx7("div", {
|
|
444
446
|
"data-slot": "card-content",
|
|
445
447
|
className: cn2(CARD_CLASSES.content, className),
|
|
446
448
|
...props
|
|
447
449
|
});
|
|
448
450
|
}
|
|
449
451
|
function CardFooter({ className, ...props }) {
|
|
450
|
-
return /* @__PURE__ */
|
|
452
|
+
return /* @__PURE__ */ jsx7("div", {
|
|
451
453
|
"data-slot": "card-footer",
|
|
452
454
|
className: cn2(CARD_CLASSES.footer, className),
|
|
453
455
|
...props
|
|
@@ -457,9 +459,9 @@ function CardFooter({ className, ...props }) {
|
|
|
457
459
|
import { useLayoutEffect, useRef as useRef2 } from "react";
|
|
458
460
|
import { CAROUSEL_CLASSES, carouselCounterText } from "@exponential_app/eui/web/primitives";
|
|
459
461
|
import { CAROUSEL_GEOMETRY, carouselCounterText as carouselCounterText2 } from "@exponential_app/eui/web/primitives";
|
|
460
|
-
import { jsx as
|
|
462
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
461
463
|
function CarouselCounter({ page, total, className, ...props }) {
|
|
462
|
-
return /* @__PURE__ */
|
|
464
|
+
return /* @__PURE__ */ jsx8("span", {
|
|
463
465
|
"data-slot": "carousel-counter",
|
|
464
466
|
"aria-hidden": "true",
|
|
465
467
|
className: cn2(CAROUSEL_CLASSES.counter, className),
|
|
@@ -482,7 +484,7 @@ function CarouselThumbnails({ count, urls, page, onPageChange, pageLabel = defau
|
|
|
482
484
|
el.scrollLeft += delta;
|
|
483
485
|
}, [page, count]);
|
|
484
486
|
const n = Math.max(0, Math.floor(count));
|
|
485
|
-
return /* @__PURE__ */
|
|
487
|
+
return /* @__PURE__ */ jsx8("div", {
|
|
486
488
|
ref: strip,
|
|
487
489
|
"data-slot": "carousel-thumbnails",
|
|
488
490
|
className: cn2(CAROUSEL_CLASSES.thumbnails, className),
|
|
@@ -490,7 +492,7 @@ function CarouselThumbnails({ count, urls, page, onPageChange, pageLabel = defau
|
|
|
490
492
|
children: Array.from({ length: n }, (_, i) => {
|
|
491
493
|
const current = i === page;
|
|
492
494
|
const src = urls[i];
|
|
493
|
-
return /* @__PURE__ */
|
|
495
|
+
return /* @__PURE__ */ jsx8("button", {
|
|
494
496
|
type: "button",
|
|
495
497
|
"data-slot": "carousel-thumbnail",
|
|
496
498
|
"data-current": current ? `true` : undefined,
|
|
@@ -498,7 +500,7 @@ function CarouselThumbnails({ count, urls, page, onPageChange, pageLabel = defau
|
|
|
498
500
|
"aria-label": pageLabel(i, n),
|
|
499
501
|
className: CAROUSEL_CLASSES.thumbnail,
|
|
500
502
|
onClick: () => onPageChange?.(i),
|
|
501
|
-
children: src ? /* @__PURE__ */
|
|
503
|
+
children: src ? /* @__PURE__ */ jsx8("img", {
|
|
502
504
|
src,
|
|
503
505
|
alt: "",
|
|
504
506
|
"aria-hidden": "true",
|
|
@@ -515,19 +517,19 @@ function CarouselThumbnails({ count, urls, page, onPageChange, pageLabel = defau
|
|
|
515
517
|
import { CheckIcon } from "lucide-react";
|
|
516
518
|
import { Checkbox as CheckboxPrimitive } from "radix-ui";
|
|
517
519
|
import { CHECKBOX_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
518
|
-
import { jsx as
|
|
520
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
519
521
|
function Checkbox({
|
|
520
522
|
className,
|
|
521
523
|
...props
|
|
522
524
|
}) {
|
|
523
|
-
return /* @__PURE__ */
|
|
525
|
+
return /* @__PURE__ */ jsx9(CheckboxPrimitive.Root, {
|
|
524
526
|
"data-slot": "checkbox",
|
|
525
527
|
className: cn2(CHECKBOX_CLASSES.root, className),
|
|
526
528
|
...props,
|
|
527
|
-
children: /* @__PURE__ */
|
|
529
|
+
children: /* @__PURE__ */ jsx9(CheckboxPrimitive.Indicator, {
|
|
528
530
|
"data-slot": "checkbox-indicator",
|
|
529
531
|
className: CHECKBOX_CLASSES.indicator,
|
|
530
|
-
children: /* @__PURE__ */
|
|
532
|
+
children: /* @__PURE__ */ jsx9(CheckIcon, {
|
|
531
533
|
className: CHECKBOX_CLASSES.icon
|
|
532
534
|
})
|
|
533
535
|
})
|
|
@@ -538,14 +540,14 @@ import * as React2 from "react";
|
|
|
538
540
|
import { Check, Copy } from "lucide-react";
|
|
539
541
|
import { tokenizeCode } from "@exponential_app/eui";
|
|
540
542
|
import { CODE_BLOCK_CLASSES, CODE_TOKEN_CLASS, codeBlockLineVariants, codeBlockVariants } from "@exponential_app/eui/web/primitives";
|
|
541
|
-
import { jsx as
|
|
543
|
+
import { jsx as jsx10, jsxs as jsxs3, Fragment } from "react/jsx-runtime";
|
|
542
544
|
function CodeBlock({
|
|
543
545
|
className,
|
|
544
546
|
variant = `default`,
|
|
545
547
|
size = `default`,
|
|
546
548
|
...props
|
|
547
549
|
}) {
|
|
548
|
-
return /* @__PURE__ */
|
|
550
|
+
return /* @__PURE__ */ jsx10("div", {
|
|
549
551
|
"data-slot": "code-block",
|
|
550
552
|
"data-variant": variant,
|
|
551
553
|
"data-size": size,
|
|
@@ -554,14 +556,14 @@ function CodeBlock({
|
|
|
554
556
|
});
|
|
555
557
|
}
|
|
556
558
|
function CodeBlockHeader({ className, ...props }) {
|
|
557
|
-
return /* @__PURE__ */
|
|
559
|
+
return /* @__PURE__ */ jsx10("div", {
|
|
558
560
|
"data-slot": "code-block-header",
|
|
559
561
|
className: cn2(CODE_BLOCK_CLASSES.header, className),
|
|
560
562
|
...props
|
|
561
563
|
});
|
|
562
564
|
}
|
|
563
565
|
function CodeBlockTitle({ className, ...props }) {
|
|
564
|
-
return /* @__PURE__ */
|
|
566
|
+
return /* @__PURE__ */ jsx10("div", {
|
|
565
567
|
"data-slot": "code-block-title",
|
|
566
568
|
className: cn2(CODE_BLOCK_CLASSES.title, className),
|
|
567
569
|
...props
|
|
@@ -571,7 +573,7 @@ function CodeBlockActions({
|
|
|
571
573
|
className,
|
|
572
574
|
...props
|
|
573
575
|
}) {
|
|
574
|
-
return /* @__PURE__ */
|
|
576
|
+
return /* @__PURE__ */ jsx10("div", {
|
|
575
577
|
"data-slot": "code-block-actions",
|
|
576
578
|
className: cn2(CODE_BLOCK_CLASSES.actions, className),
|
|
577
579
|
...props
|
|
@@ -595,7 +597,7 @@ function CodeBlockCopyButton({
|
|
|
595
597
|
}, [copied]);
|
|
596
598
|
return /* @__PURE__ */ jsxs3(Fragment, {
|
|
597
599
|
children: [
|
|
598
|
-
/* @__PURE__ */
|
|
600
|
+
/* @__PURE__ */ jsx10(Button2, {
|
|
599
601
|
"data-slot": "code-block-copy-button",
|
|
600
602
|
"data-copied": copied || undefined,
|
|
601
603
|
variant,
|
|
@@ -610,9 +612,9 @@ function CodeBlockCopyButton({
|
|
|
610
612
|
clipboard.writeText(value).then(() => setCopied(true)).catch(() => {});
|
|
611
613
|
},
|
|
612
614
|
...props,
|
|
613
|
-
children: copied ? /* @__PURE__ */
|
|
615
|
+
children: copied ? /* @__PURE__ */ jsx10(Check, {}) : /* @__PURE__ */ jsx10(Copy, {})
|
|
614
616
|
}),
|
|
615
|
-
/* @__PURE__ */
|
|
617
|
+
/* @__PURE__ */ jsx10("span", {
|
|
616
618
|
"aria-live": "polite",
|
|
617
619
|
className: CODE_BLOCK_CLASSES.srOnly,
|
|
618
620
|
children: copied ? labels.copied : ``
|
|
@@ -633,7 +635,7 @@ function CodeBlockContent({
|
|
|
633
635
|
}) {
|
|
634
636
|
const source = typeof children === `string` ? children : null;
|
|
635
637
|
const lines = React2.useMemo(() => source !== null && language ? tokenizeCode(source.replace(/\n$/, ``), language) : null, [source, language]);
|
|
636
|
-
return /* @__PURE__ */
|
|
638
|
+
return /* @__PURE__ */ jsx10("pre", {
|
|
637
639
|
"data-slot": "code-block-content",
|
|
638
640
|
"data-wrap": wrap || undefined,
|
|
639
641
|
"data-numbered": lineNumbers || undefined,
|
|
@@ -647,17 +649,17 @@ function CodeBlockContent({
|
|
|
647
649
|
},
|
|
648
650
|
className: cn2(CODE_BLOCK_CLASSES.content, className),
|
|
649
651
|
...props,
|
|
650
|
-
children: /* @__PURE__ */
|
|
652
|
+
children: /* @__PURE__ */ jsx10("code", {
|
|
651
653
|
"data-slot": "code-block-code",
|
|
652
654
|
className: CODE_BLOCK_CLASSES.code,
|
|
653
|
-
children: lines !== null ? lines.map((tokens, index) => /* @__PURE__ */
|
|
654
|
-
children: tokens.length === 0 ? null : tokens.map((token, j) => /* @__PURE__ */
|
|
655
|
+
children: lines !== null ? lines.map((tokens, index) => /* @__PURE__ */ jsx10(CodeBlockLine, {
|
|
656
|
+
children: tokens.length === 0 ? null : tokens.map((token, j) => /* @__PURE__ */ jsx10("span", {
|
|
655
657
|
"data-token": token.kind,
|
|
656
658
|
className: cn2(CODE_TOKEN_CLASS[token.kind], CODE_BLOCK_CLASSES.token),
|
|
657
659
|
children: token.text
|
|
658
660
|
}, j))
|
|
659
661
|
}, index)) : lineNumbers && source !== null ? source.replace(/\n$/, ``).split(`
|
|
660
|
-
`).map((line, index) => /* @__PURE__ */
|
|
662
|
+
`).map((line, index) => /* @__PURE__ */ jsx10(CodeBlockLine, {
|
|
661
663
|
children: line
|
|
662
664
|
}, index)) : children
|
|
663
665
|
})
|
|
@@ -670,12 +672,12 @@ function CodeBlockLine({
|
|
|
670
672
|
...props
|
|
671
673
|
}) {
|
|
672
674
|
const empty = children === undefined || children === null || children === `` || Array.isArray(children) && children.length === 0;
|
|
673
|
-
return /* @__PURE__ */
|
|
675
|
+
return /* @__PURE__ */ jsx10("span", {
|
|
674
676
|
"data-slot": "code-block-line",
|
|
675
677
|
"data-variant": variant,
|
|
676
678
|
className: cn2(codeBlockLineVariants({ variant }), className),
|
|
677
679
|
...props,
|
|
678
|
-
children: /* @__PURE__ */
|
|
680
|
+
children: /* @__PURE__ */ jsx10("span", {
|
|
679
681
|
"data-slot": "code-block-line-content",
|
|
680
682
|
className: CODE_BLOCK_CLASSES.lineContent,
|
|
681
683
|
children: empty ? `
|
|
@@ -684,7 +686,7 @@ function CodeBlockLine({
|
|
|
684
686
|
});
|
|
685
687
|
}
|
|
686
688
|
function CodeBlockFooter({ className, ...props }) {
|
|
687
|
-
return /* @__PURE__ */
|
|
689
|
+
return /* @__PURE__ */ jsx10("div", {
|
|
688
690
|
"data-slot": "code-block-footer",
|
|
689
691
|
className: cn2(CODE_BLOCK_CLASSES.footer, className),
|
|
690
692
|
...props
|
|
@@ -692,11 +694,11 @@ function CodeBlockFooter({ className, ...props }) {
|
|
|
692
694
|
}
|
|
693
695
|
// packages/exponential-ui-react/src/primitives/collapsible.tsx
|
|
694
696
|
import { Collapsible as CollapsiblePrimitive } from "radix-ui";
|
|
695
|
-
import { jsx as
|
|
697
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
696
698
|
function Collapsible({
|
|
697
699
|
...props
|
|
698
700
|
}) {
|
|
699
|
-
return /* @__PURE__ */
|
|
701
|
+
return /* @__PURE__ */ jsx11(CollapsiblePrimitive.Root, {
|
|
700
702
|
"data-slot": "collapsible",
|
|
701
703
|
...props
|
|
702
704
|
});
|
|
@@ -704,7 +706,7 @@ function Collapsible({
|
|
|
704
706
|
function CollapsibleTrigger({
|
|
705
707
|
...props
|
|
706
708
|
}) {
|
|
707
|
-
return /* @__PURE__ */
|
|
709
|
+
return /* @__PURE__ */ jsx11(CollapsiblePrimitive.Trigger, {
|
|
708
710
|
"data-slot": "collapsible-trigger",
|
|
709
711
|
...props
|
|
710
712
|
});
|
|
@@ -712,7 +714,7 @@ function CollapsibleTrigger({
|
|
|
712
714
|
function CollapsibleContent({
|
|
713
715
|
...props
|
|
714
716
|
}) {
|
|
715
|
-
return /* @__PURE__ */
|
|
717
|
+
return /* @__PURE__ */ jsx11(CollapsiblePrimitive.Content, {
|
|
716
718
|
"data-slot": "collapsible-content",
|
|
717
719
|
...props
|
|
718
720
|
});
|
|
@@ -721,7 +723,7 @@ function CollapsibleContent({
|
|
|
721
723
|
import * as React3 from "react";
|
|
722
724
|
import { CircleXIcon, SearchIcon } from "lucide-react";
|
|
723
725
|
import { COMMAND_CLASSES, COMMAND_LABEL_STYLE, COMMAND_SELECT_EVENT, commandItemValue, createCommandStore, observeCommandListHeight } from "@exponential_app/eui/web/primitives";
|
|
724
|
-
import { jsx as
|
|
726
|
+
import { jsx as jsx12, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
725
727
|
"use client";
|
|
726
728
|
var CommandContext = React3.createContext(null);
|
|
727
729
|
var GroupContext = React3.createContext(null);
|
|
@@ -763,14 +765,14 @@ function Command({ className, value, defaultValue, onValueChange, filter, should
|
|
|
763
765
|
store.onKeyDown(e.nativeEvent);
|
|
764
766
|
},
|
|
765
767
|
children: [
|
|
766
|
-
/* @__PURE__ */
|
|
768
|
+
/* @__PURE__ */ jsx12("label", {
|
|
767
769
|
"data-slot": "command-label",
|
|
768
770
|
htmlFor: inputId,
|
|
769
771
|
id: labelId,
|
|
770
772
|
style: COMMAND_LABEL_STYLE,
|
|
771
773
|
children: label
|
|
772
774
|
}),
|
|
773
|
-
/* @__PURE__ */
|
|
775
|
+
/* @__PURE__ */ jsx12(CommandContext.Provider, {
|
|
774
776
|
value: ctx,
|
|
775
777
|
children
|
|
776
778
|
})
|
|
@@ -797,10 +799,10 @@ function CommandInput({ className, value, defaultValue, onValueChange, clearLabe
|
|
|
797
799
|
"data-slot": "command-input-wrapper",
|
|
798
800
|
className: COMMAND_CLASSES.inputWrapper,
|
|
799
801
|
children: [
|
|
800
|
-
/* @__PURE__ */
|
|
802
|
+
/* @__PURE__ */ jsx12(SearchIcon, {
|
|
801
803
|
className: COMMAND_CLASSES.inputGlyph
|
|
802
804
|
}),
|
|
803
|
-
/* @__PURE__ */
|
|
805
|
+
/* @__PURE__ */ jsx12("input", {
|
|
804
806
|
ref: (node) => {
|
|
805
807
|
input.current = node;
|
|
806
808
|
if (typeof ref === `function`)
|
|
@@ -825,7 +827,7 @@ function CommandInput({ className, value, defaultValue, onValueChange, clearLabe
|
|
|
825
827
|
value: shown,
|
|
826
828
|
onChange: (e) => change(e.target.value)
|
|
827
829
|
}),
|
|
828
|
-
shown !== `` ? /* @__PURE__ */
|
|
830
|
+
shown !== `` ? /* @__PURE__ */ jsx12("button", {
|
|
829
831
|
type: "button",
|
|
830
832
|
"data-slot": "command-input-clear",
|
|
831
833
|
"aria-label": clearLabel ?? `Clear search`,
|
|
@@ -834,7 +836,7 @@ function CommandInput({ className, value, defaultValue, onValueChange, clearLabe
|
|
|
834
836
|
change(``);
|
|
835
837
|
input.current?.focus();
|
|
836
838
|
},
|
|
837
|
-
children: /* @__PURE__ */
|
|
839
|
+
children: /* @__PURE__ */ jsx12(CircleXIcon, {})
|
|
838
840
|
}) : null
|
|
839
841
|
]
|
|
840
842
|
});
|
|
@@ -848,7 +850,7 @@ function CommandList({ className, children, "aria-label": ariaLabel, ...props })
|
|
|
848
850
|
if (list.current && sizer.current)
|
|
849
851
|
return observeCommandListHeight(list.current, sizer.current);
|
|
850
852
|
}, []);
|
|
851
|
-
return /* @__PURE__ */
|
|
853
|
+
return /* @__PURE__ */ jsx12("div", {
|
|
852
854
|
ref: list,
|
|
853
855
|
"data-slot": "command-list",
|
|
854
856
|
className: cn2(COMMAND_CLASSES.list, className),
|
|
@@ -858,7 +860,7 @@ function CommandList({ className, children, "aria-label": ariaLabel, ...props })
|
|
|
858
860
|
"aria-activedescendant": store.selectedId,
|
|
859
861
|
"aria-label": ariaLabel ?? `Suggestions`,
|
|
860
862
|
id: listId,
|
|
861
|
-
children: /* @__PURE__ */
|
|
863
|
+
children: /* @__PURE__ */ jsx12("div", {
|
|
862
864
|
ref: (node) => {
|
|
863
865
|
sizer.current = node;
|
|
864
866
|
store.setSizer(node);
|
|
@@ -871,7 +873,7 @@ function CommandList({ className, children, "aria-label": ariaLabel, ...props })
|
|
|
871
873
|
function CommandEmpty({ className, ...props }) {
|
|
872
874
|
const { store } = useRoot();
|
|
873
875
|
useStore(store);
|
|
874
|
-
return store.empty() ? /* @__PURE__ */
|
|
876
|
+
return store.empty() ? /* @__PURE__ */ jsx12("div", {
|
|
875
877
|
"data-slot": "command-empty",
|
|
876
878
|
className: cn2(COMMAND_CLASSES.empty, className),
|
|
877
879
|
...props,
|
|
@@ -899,18 +901,18 @@ function CommandGroup({ className, heading, value, forceMount, children, ...prop
|
|
|
899
901
|
"data-value": groupValue,
|
|
900
902
|
hidden: visible ? undefined : true,
|
|
901
903
|
children: [
|
|
902
|
-
heading ? /* @__PURE__ */
|
|
904
|
+
heading ? /* @__PURE__ */ jsx12("div", {
|
|
903
905
|
"data-slot": "command-group-heading",
|
|
904
906
|
className: COMMAND_CLASSES.groupHeading,
|
|
905
907
|
"aria-hidden": true,
|
|
906
908
|
id: headingId,
|
|
907
909
|
children: heading
|
|
908
910
|
}) : null,
|
|
909
|
-
/* @__PURE__ */
|
|
911
|
+
/* @__PURE__ */ jsx12("div", {
|
|
910
912
|
"data-slot": "command-group-items",
|
|
911
913
|
role: "group",
|
|
912
914
|
"aria-labelledby": heading ? headingId : undefined,
|
|
913
|
-
children: /* @__PURE__ */
|
|
915
|
+
children: /* @__PURE__ */ jsx12(GroupContext.Provider, {
|
|
914
916
|
value: ctx,
|
|
915
917
|
children
|
|
916
918
|
})
|
|
@@ -952,7 +954,7 @@ function CommandItem({ className, value, keywords, onSelect, disabled, forceMoun
|
|
|
952
954
|
if (!visible)
|
|
953
955
|
return null;
|
|
954
956
|
const selected = own !== `` && store.value === own;
|
|
955
|
-
return /* @__PURE__ */
|
|
957
|
+
return /* @__PURE__ */ jsx12("div", {
|
|
956
958
|
ref: el,
|
|
957
959
|
"data-slot": "command-item",
|
|
958
960
|
className: cn2(COMMAND_CLASSES.item, className),
|
|
@@ -979,7 +981,7 @@ function CommandSeparator({ className, alwaysRender, ...props }) {
|
|
|
979
981
|
React3.useLayoutEffect(() => store.update(id, { el: el.current }));
|
|
980
982
|
if (!alwaysRender && store.search !== ``)
|
|
981
983
|
return null;
|
|
982
|
-
return /* @__PURE__ */
|
|
984
|
+
return /* @__PURE__ */ jsx12("div", {
|
|
983
985
|
ref: el,
|
|
984
986
|
"data-slot": "command-separator",
|
|
985
987
|
className: cn2(COMMAND_CLASSES.separator, className),
|
|
@@ -988,7 +990,7 @@ function CommandSeparator({ className, alwaysRender, ...props }) {
|
|
|
988
990
|
});
|
|
989
991
|
}
|
|
990
992
|
function CommandShortcut({ className, ...props }) {
|
|
991
|
-
return /* @__PURE__ */
|
|
993
|
+
return /* @__PURE__ */ jsx12("span", {
|
|
992
994
|
"data-slot": "command-shortcut",
|
|
993
995
|
className: cn2(COMMAND_CLASSES.shortcut, className),
|
|
994
996
|
...props
|
|
@@ -998,13 +1000,13 @@ function CommandShortcut({ className, ...props }) {
|
|
|
998
1000
|
import { forwardRef } from "react";
|
|
999
1001
|
import { CONTEXT_RING_CLASSES, RING_RADIUS, RING_SIZE, RING_STROKE, RING_TONE_CLASS, ringGeometry } from "@exponential_app/eui/web/primitives";
|
|
1000
1002
|
import { RING_RADIUS as RING_RADIUS2, RING_SIZE as RING_SIZE2, RING_STROKE as RING_STROKE2, RING_TONE_CLASS as RING_TONE_CLASS2, ringGeometry as ringGeometry2 } from "@exponential_app/eui/web/primitives";
|
|
1001
|
-
import { jsx as
|
|
1003
|
+
import { jsx as jsx13, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1002
1004
|
var ContextRing = forwardRef(function ContextRing({ percent, tone, showEmpty = false, className, ...props }, ref) {
|
|
1003
1005
|
const value = percent ?? null;
|
|
1004
1006
|
if (value === null && !showEmpty)
|
|
1005
1007
|
return null;
|
|
1006
1008
|
const { circumference, dashOffset } = ringGeometry(value ?? 0);
|
|
1007
|
-
return /* @__PURE__ */
|
|
1009
|
+
return /* @__PURE__ */ jsx13(Button2, {
|
|
1008
1010
|
ref,
|
|
1009
1011
|
type: "button",
|
|
1010
1012
|
variant: "ghost",
|
|
@@ -1021,7 +1023,7 @@ var ContextRing = forwardRef(function ContextRing({ percent, tone, showEmpty = f
|
|
|
1021
1023
|
"aria-hidden": true,
|
|
1022
1024
|
className: CONTEXT_RING_CLASSES.svg,
|
|
1023
1025
|
children: [
|
|
1024
|
-
/* @__PURE__ */
|
|
1026
|
+
/* @__PURE__ */ jsx13("circle", {
|
|
1025
1027
|
cx: RING_SIZE / 2,
|
|
1026
1028
|
cy: RING_SIZE / 2,
|
|
1027
1029
|
r: RING_RADIUS,
|
|
@@ -1030,7 +1032,7 @@ var ContextRing = forwardRef(function ContextRing({ percent, tone, showEmpty = f
|
|
|
1030
1032
|
strokeWidth: RING_STROKE,
|
|
1031
1033
|
opacity: 0.2
|
|
1032
1034
|
}),
|
|
1033
|
-
value !== null && /* @__PURE__ */
|
|
1035
|
+
value !== null && /* @__PURE__ */ jsx13("circle", {
|
|
1034
1036
|
cx: RING_SIZE / 2,
|
|
1035
1037
|
cy: RING_SIZE / 2,
|
|
1036
1038
|
r: RING_RADIUS,
|
|
@@ -1057,13 +1059,13 @@ import { MOBILE_ALERT, MOBILE_ARMS, MOBILE_PAGE, MOBILE_SHEET, MOBILE_SHEET_FULL
|
|
|
1057
1059
|
// packages/exponential-ui-react/src/primitives/sheet-chrome.tsx
|
|
1058
1060
|
import * as React4 from "react";
|
|
1059
1061
|
import { SHEET_CHROME_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
1060
|
-
import { jsx as
|
|
1062
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1061
1063
|
var SheetDragContext = React4.createContext(null);
|
|
1062
1064
|
function SheetDragProvider({
|
|
1063
1065
|
value,
|
|
1064
1066
|
children
|
|
1065
1067
|
}) {
|
|
1066
|
-
return /* @__PURE__ */
|
|
1068
|
+
return /* @__PURE__ */ jsx14(SheetDragContext.Provider, {
|
|
1067
1069
|
value,
|
|
1068
1070
|
children
|
|
1069
1071
|
});
|
|
@@ -1076,7 +1078,7 @@ function SheetGrabber({
|
|
|
1076
1078
|
...props
|
|
1077
1079
|
}) {
|
|
1078
1080
|
const drag = useSheetDragHandleProps();
|
|
1079
|
-
return /* @__PURE__ */
|
|
1081
|
+
return /* @__PURE__ */ jsx14("div", {
|
|
1080
1082
|
"data-slot": "sheet-grabber",
|
|
1081
1083
|
"aria-hidden": true,
|
|
1082
1084
|
...drag,
|
|
@@ -1189,9 +1191,9 @@ function useSheetDrag({
|
|
|
1189
1191
|
}
|
|
1190
1192
|
|
|
1191
1193
|
// packages/exponential-ui-react/src/primitives/sheet.tsx
|
|
1192
|
-
import { jsx as
|
|
1194
|
+
import { jsx as jsx15, jsxs as jsxs6, Fragment as Fragment2 } from "react/jsx-runtime";
|
|
1193
1195
|
function Sheet({ ...props }) {
|
|
1194
|
-
return /* @__PURE__ */
|
|
1196
|
+
return /* @__PURE__ */ jsx15(SheetPrimitive.Root, {
|
|
1195
1197
|
"data-slot": "sheet",
|
|
1196
1198
|
...props
|
|
1197
1199
|
});
|
|
@@ -1199,7 +1201,7 @@ function Sheet({ ...props }) {
|
|
|
1199
1201
|
function SheetTrigger({
|
|
1200
1202
|
...props
|
|
1201
1203
|
}) {
|
|
1202
|
-
return /* @__PURE__ */
|
|
1204
|
+
return /* @__PURE__ */ jsx15(SheetPrimitive.Trigger, {
|
|
1203
1205
|
"data-slot": "sheet-trigger",
|
|
1204
1206
|
...props
|
|
1205
1207
|
});
|
|
@@ -1207,7 +1209,7 @@ function SheetTrigger({
|
|
|
1207
1209
|
function SheetClose({
|
|
1208
1210
|
...props
|
|
1209
1211
|
}) {
|
|
1210
|
-
return /* @__PURE__ */
|
|
1212
|
+
return /* @__PURE__ */ jsx15(SheetPrimitive.Close, {
|
|
1211
1213
|
"data-slot": "sheet-close",
|
|
1212
1214
|
...props
|
|
1213
1215
|
});
|
|
@@ -1215,7 +1217,7 @@ function SheetClose({
|
|
|
1215
1217
|
function SheetPortal({
|
|
1216
1218
|
...props
|
|
1217
1219
|
}) {
|
|
1218
|
-
return /* @__PURE__ */
|
|
1220
|
+
return /* @__PURE__ */ jsx15(SheetPrimitive.Portal, {
|
|
1219
1221
|
"data-slot": "sheet-portal",
|
|
1220
1222
|
...props
|
|
1221
1223
|
});
|
|
@@ -1224,7 +1226,7 @@ function SheetOverlay({
|
|
|
1224
1226
|
className,
|
|
1225
1227
|
...props
|
|
1226
1228
|
}) {
|
|
1227
|
-
return /* @__PURE__ */
|
|
1229
|
+
return /* @__PURE__ */ jsx15(SheetPrimitive.Overlay, {
|
|
1228
1230
|
"data-slot": "sheet-overlay",
|
|
1229
1231
|
className: cn2(SHEET_CLASSES.overlay, className),
|
|
1230
1232
|
...props
|
|
@@ -1256,11 +1258,11 @@ function SheetContent({
|
|
|
1256
1258
|
}, [ref]);
|
|
1257
1259
|
return /* @__PURE__ */ jsxs6(SheetPortal, {
|
|
1258
1260
|
children: [
|
|
1259
|
-
/* @__PURE__ */
|
|
1261
|
+
/* @__PURE__ */ jsx15(SheetPrimitive.Close, {
|
|
1260
1262
|
asChild: true,
|
|
1261
|
-
children: /* @__PURE__ */
|
|
1263
|
+
children: /* @__PURE__ */ jsx15(SheetOverlay, {})
|
|
1262
1264
|
}),
|
|
1263
|
-
/* @__PURE__ */
|
|
1265
|
+
/* @__PURE__ */ jsx15(SheetPrimitive.Content, {
|
|
1264
1266
|
"data-slot": "sheet-content",
|
|
1265
1267
|
"data-side": side,
|
|
1266
1268
|
ref: setPanel,
|
|
@@ -1277,8 +1279,8 @@ function SheetContent({
|
|
|
1277
1279
|
children: [
|
|
1278
1280
|
showGrabber && /* @__PURE__ */ jsxs6(Fragment2, {
|
|
1279
1281
|
children: [
|
|
1280
|
-
/* @__PURE__ */
|
|
1281
|
-
/* @__PURE__ */
|
|
1282
|
+
/* @__PURE__ */ jsx15(SheetGrabber, {}),
|
|
1283
|
+
/* @__PURE__ */ jsx15(SheetPrimitive.Close, {
|
|
1282
1284
|
ref: dragCloseRef,
|
|
1283
1285
|
"aria-hidden": true,
|
|
1284
1286
|
tabIndex: -1,
|
|
@@ -1290,10 +1292,10 @@ function SheetContent({
|
|
|
1290
1292
|
showCloseButton && /* @__PURE__ */ jsxs6(SheetPrimitive.Close, {
|
|
1291
1293
|
className: SHEET_CLASSES.close,
|
|
1292
1294
|
children: [
|
|
1293
|
-
/* @__PURE__ */
|
|
1295
|
+
/* @__PURE__ */ jsx15(XIcon, {
|
|
1294
1296
|
className: SHEET_CLASSES.closeIcon
|
|
1295
1297
|
}),
|
|
1296
|
-
/* @__PURE__ */
|
|
1298
|
+
/* @__PURE__ */ jsx15("span", {
|
|
1297
1299
|
className: SHEET_CLASSES.srOnly,
|
|
1298
1300
|
children: "Close"
|
|
1299
1301
|
})
|
|
@@ -1307,7 +1309,7 @@ function SheetContent({
|
|
|
1307
1309
|
}
|
|
1308
1310
|
function SheetHeader({ className, ...props }) {
|
|
1309
1311
|
const drag = useSheetDragHandleProps();
|
|
1310
|
-
return /* @__PURE__ */
|
|
1312
|
+
return /* @__PURE__ */ jsx15("div", {
|
|
1311
1313
|
"data-slot": "sheet-header",
|
|
1312
1314
|
...drag,
|
|
1313
1315
|
className: cn2(SHEET_CLASSES.header, className),
|
|
@@ -1315,7 +1317,7 @@ function SheetHeader({ className, ...props }) {
|
|
|
1315
1317
|
});
|
|
1316
1318
|
}
|
|
1317
1319
|
function SheetFooter({ className, ...props }) {
|
|
1318
|
-
return /* @__PURE__ */
|
|
1320
|
+
return /* @__PURE__ */ jsx15("div", {
|
|
1319
1321
|
"data-slot": "sheet-footer",
|
|
1320
1322
|
className: cn2(SHEET_CLASSES.footer, className),
|
|
1321
1323
|
...props
|
|
@@ -1325,7 +1327,7 @@ function SheetTitle({
|
|
|
1325
1327
|
className,
|
|
1326
1328
|
...props
|
|
1327
1329
|
}) {
|
|
1328
|
-
return /* @__PURE__ */
|
|
1330
|
+
return /* @__PURE__ */ jsx15(SheetPrimitive.Title, {
|
|
1329
1331
|
"data-slot": "sheet-title",
|
|
1330
1332
|
className: cn2(SHEET_CLASSES.title, className),
|
|
1331
1333
|
...props
|
|
@@ -1335,33 +1337,19 @@ function SheetDescription({
|
|
|
1335
1337
|
className,
|
|
1336
1338
|
...props
|
|
1337
1339
|
}) {
|
|
1338
|
-
return /* @__PURE__ */
|
|
1340
|
+
return /* @__PURE__ */ jsx15(SheetPrimitive.Description, {
|
|
1339
1341
|
"data-slot": "sheet-description",
|
|
1340
1342
|
className: cn2(SHEET_CLASSES.description, className),
|
|
1341
1343
|
...props
|
|
1342
1344
|
});
|
|
1343
1345
|
}
|
|
1344
1346
|
|
|
1345
|
-
// packages/exponential-ui-react/src/primitives/use-media-query.ts
|
|
1346
|
-
import { useCallback as useCallback3, useSyncExternalStore as useSyncExternalStore2 } from "react";
|
|
1347
|
-
function useMediaQuery(query) {
|
|
1348
|
-
const subscribe = useCallback3((onChange) => {
|
|
1349
|
-
if (typeof window === `undefined` || typeof window.matchMedia !== `function`)
|
|
1350
|
-
return () => {};
|
|
1351
|
-
const mql = window.matchMedia(query);
|
|
1352
|
-
mql.addEventListener(`change`, onChange);
|
|
1353
|
-
return () => mql.removeEventListener(`change`, onChange);
|
|
1354
|
-
}, [query]);
|
|
1355
|
-
const read = () => typeof window !== `undefined` && typeof window.matchMedia === `function` && window.matchMedia(query).matches;
|
|
1356
|
-
return useSyncExternalStore2(subscribe, read, () => false);
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
1347
|
// packages/exponential-ui-react/src/primitives/dialog.tsx
|
|
1360
|
-
import { jsx as
|
|
1348
|
+
import { jsx as jsx16, jsxs as jsxs7, Fragment as Fragment3 } from "react/jsx-runtime";
|
|
1361
1349
|
function Dialog({
|
|
1362
1350
|
...props
|
|
1363
1351
|
}) {
|
|
1364
|
-
return /* @__PURE__ */
|
|
1352
|
+
return /* @__PURE__ */ jsx16(DialogPrimitive.Root, {
|
|
1365
1353
|
"data-slot": "dialog",
|
|
1366
1354
|
...props
|
|
1367
1355
|
});
|
|
@@ -1369,7 +1357,7 @@ function Dialog({
|
|
|
1369
1357
|
function DialogTrigger({
|
|
1370
1358
|
...props
|
|
1371
1359
|
}) {
|
|
1372
|
-
return /* @__PURE__ */
|
|
1360
|
+
return /* @__PURE__ */ jsx16(DialogPrimitive.Trigger, {
|
|
1373
1361
|
"data-slot": "dialog-trigger",
|
|
1374
1362
|
...props
|
|
1375
1363
|
});
|
|
@@ -1377,7 +1365,7 @@ function DialogTrigger({
|
|
|
1377
1365
|
function DialogPortal({
|
|
1378
1366
|
...props
|
|
1379
1367
|
}) {
|
|
1380
|
-
return /* @__PURE__ */
|
|
1368
|
+
return /* @__PURE__ */ jsx16(DialogPrimitive.Portal, {
|
|
1381
1369
|
"data-slot": "dialog-portal",
|
|
1382
1370
|
...props
|
|
1383
1371
|
});
|
|
@@ -1385,7 +1373,7 @@ function DialogPortal({
|
|
|
1385
1373
|
function DialogClose({
|
|
1386
1374
|
...props
|
|
1387
1375
|
}) {
|
|
1388
|
-
return /* @__PURE__ */
|
|
1376
|
+
return /* @__PURE__ */ jsx16(DialogPrimitive.Close, {
|
|
1389
1377
|
"data-slot": "dialog-close",
|
|
1390
1378
|
...props
|
|
1391
1379
|
});
|
|
@@ -1394,7 +1382,7 @@ function DialogOverlay({
|
|
|
1394
1382
|
className,
|
|
1395
1383
|
...props
|
|
1396
1384
|
}) {
|
|
1397
|
-
return /* @__PURE__ */
|
|
1385
|
+
return /* @__PURE__ */ jsx16(DialogPrimitive.Overlay, {
|
|
1398
1386
|
"data-slot": "dialog-overlay",
|
|
1399
1387
|
className: cn2(DIALOG_CLASSES.overlay, className),
|
|
1400
1388
|
...props
|
|
@@ -1425,9 +1413,9 @@ function DialogContent({
|
|
|
1425
1413
|
ref.current = node;
|
|
1426
1414
|
}
|
|
1427
1415
|
}, [ref]);
|
|
1428
|
-
const isPhone =
|
|
1416
|
+
const isPhone = useMediaQuery2(DIALOG_PHONE_QUERY);
|
|
1429
1417
|
if (isSheet && isPhone) {
|
|
1430
|
-
return /* @__PURE__ */
|
|
1418
|
+
return /* @__PURE__ */ jsx16(SheetContent, {
|
|
1431
1419
|
side: "bottom",
|
|
1432
1420
|
"data-slot": "dialog-content",
|
|
1433
1421
|
"data-mobile": mobile,
|
|
@@ -1435,7 +1423,7 @@ function DialogContent({
|
|
|
1435
1423
|
className: cn2(DIALOG_CLASSES.phoneSheet, mobile === `sheet-full` && DIALOG_CLASSES.phoneSheetFull, className),
|
|
1436
1424
|
onInteractOutside,
|
|
1437
1425
|
...props,
|
|
1438
|
-
children: /* @__PURE__ */
|
|
1426
|
+
children: /* @__PURE__ */ jsx16(DialogPresentationContext.Provider, {
|
|
1439
1427
|
value: mobile,
|
|
1440
1428
|
children
|
|
1441
1429
|
})
|
|
@@ -1444,8 +1432,8 @@ function DialogContent({
|
|
|
1444
1432
|
return /* @__PURE__ */ jsxs7(DialogPortal, {
|
|
1445
1433
|
"data-slot": "dialog-portal",
|
|
1446
1434
|
children: [
|
|
1447
|
-
/* @__PURE__ */
|
|
1448
|
-
/* @__PURE__ */
|
|
1435
|
+
/* @__PURE__ */ jsx16(DialogOverlay, {}),
|
|
1436
|
+
/* @__PURE__ */ jsx16(DialogPrimitive.Content, {
|
|
1449
1437
|
"data-slot": "dialog-content",
|
|
1450
1438
|
"data-mobile": mobile,
|
|
1451
1439
|
ref: setPanel,
|
|
@@ -1457,17 +1445,17 @@ function DialogContent({
|
|
|
1457
1445
|
}
|
|
1458
1446
|
},
|
|
1459
1447
|
...props,
|
|
1460
|
-
children: /* @__PURE__ */
|
|
1448
|
+
children: /* @__PURE__ */ jsx16(DialogPresentationContext.Provider, {
|
|
1461
1449
|
value: mobile,
|
|
1462
1450
|
children: /* @__PURE__ */ jsxs7(SheetDragProvider, {
|
|
1463
1451
|
value: isSheet ? handleProps : null,
|
|
1464
1452
|
children: [
|
|
1465
1453
|
isSheet && /* @__PURE__ */ jsxs7(Fragment3, {
|
|
1466
1454
|
children: [
|
|
1467
|
-
/* @__PURE__ */
|
|
1455
|
+
/* @__PURE__ */ jsx16(SheetGrabber, {
|
|
1468
1456
|
className: DIALOG_CLASSES.grabber
|
|
1469
1457
|
}),
|
|
1470
|
-
/* @__PURE__ */
|
|
1458
|
+
/* @__PURE__ */ jsx16(DialogPrimitive.Close, {
|
|
1471
1459
|
ref: dragCloseRef,
|
|
1472
1460
|
"aria-hidden": true,
|
|
1473
1461
|
tabIndex: -1,
|
|
@@ -1480,8 +1468,8 @@ function DialogContent({
|
|
|
1480
1468
|
"data-slot": "dialog-close",
|
|
1481
1469
|
className: cn2(DIALOG_CLASSES.close, mobile !== `page` && DIALOG_CLASSES.closePhoneHidden),
|
|
1482
1470
|
children: [
|
|
1483
|
-
/* @__PURE__ */
|
|
1484
|
-
/* @__PURE__ */
|
|
1471
|
+
/* @__PURE__ */ jsx16(XIcon2, {}),
|
|
1472
|
+
/* @__PURE__ */ jsx16("span", {
|
|
1485
1473
|
className: DIALOG_CLASSES.srOnly,
|
|
1486
1474
|
children: "Close"
|
|
1487
1475
|
})
|
|
@@ -1496,7 +1484,7 @@ function DialogContent({
|
|
|
1496
1484
|
}
|
|
1497
1485
|
function DialogHeader({ className, ...props }) {
|
|
1498
1486
|
const drag = useSheetDragHandleProps();
|
|
1499
|
-
return /* @__PURE__ */
|
|
1487
|
+
return /* @__PURE__ */ jsx16("div", {
|
|
1500
1488
|
"data-slot": "dialog-header",
|
|
1501
1489
|
...drag,
|
|
1502
1490
|
className: cn2(DIALOG_CLASSES.header, className),
|
|
@@ -1504,14 +1492,14 @@ function DialogHeader({ className, ...props }) {
|
|
|
1504
1492
|
});
|
|
1505
1493
|
}
|
|
1506
1494
|
function DialogBody({ className, ...props }) {
|
|
1507
|
-
return /* @__PURE__ */
|
|
1495
|
+
return /* @__PURE__ */ jsx16("div", {
|
|
1508
1496
|
"data-slot": "dialog-body",
|
|
1509
1497
|
className: cn2(DIALOG_CLASSES.body, className),
|
|
1510
1498
|
...props
|
|
1511
1499
|
});
|
|
1512
1500
|
}
|
|
1513
1501
|
function DialogFooter({ className, ...props }) {
|
|
1514
|
-
return /* @__PURE__ */
|
|
1502
|
+
return /* @__PURE__ */ jsx16("div", {
|
|
1515
1503
|
"data-slot": "dialog-footer",
|
|
1516
1504
|
className: cn2(DIALOG_CLASSES.footer, className),
|
|
1517
1505
|
...props
|
|
@@ -1524,9 +1512,9 @@ function DialogCancel({
|
|
|
1524
1512
|
}) {
|
|
1525
1513
|
const mobile = React7.useContext(DialogPresentationContext);
|
|
1526
1514
|
const keepOnMobile = mobile === `alert` || mobile === `page`;
|
|
1527
|
-
return /* @__PURE__ */
|
|
1515
|
+
return /* @__PURE__ */ jsx16(DialogPrimitive.Close, {
|
|
1528
1516
|
asChild: true,
|
|
1529
|
-
children: /* @__PURE__ */
|
|
1517
|
+
children: /* @__PURE__ */ jsx16(Button2, {
|
|
1530
1518
|
type: "button",
|
|
1531
1519
|
variant: "ghost",
|
|
1532
1520
|
"data-dialog-cancel": "",
|
|
@@ -1540,7 +1528,7 @@ function DialogTitle({
|
|
|
1540
1528
|
className,
|
|
1541
1529
|
...props
|
|
1542
1530
|
}) {
|
|
1543
|
-
return /* @__PURE__ */
|
|
1531
|
+
return /* @__PURE__ */ jsx16(DialogPrimitive.Title, {
|
|
1544
1532
|
"data-slot": "dialog-title",
|
|
1545
1533
|
className: cn2(DIALOG_CLASSES.title, className),
|
|
1546
1534
|
...props
|
|
@@ -1550,7 +1538,7 @@ function DialogDescription({
|
|
|
1550
1538
|
className,
|
|
1551
1539
|
...props
|
|
1552
1540
|
}) {
|
|
1553
|
-
return /* @__PURE__ */
|
|
1541
|
+
return /* @__PURE__ */ jsx16(DialogPrimitive.Description, {
|
|
1554
1542
|
"data-slot": "dialog-description",
|
|
1555
1543
|
className: cn2(DIALOG_CLASSES.description, className),
|
|
1556
1544
|
...props
|
|
@@ -1559,7 +1547,7 @@ function DialogDescription({
|
|
|
1559
1547
|
// packages/exponential-ui-react/src/primitives/disclosure-header.tsx
|
|
1560
1548
|
import { ChevronDown, ChevronRight as ChevronRight2 } from "lucide-react";
|
|
1561
1549
|
import { DISCLOSURE_HEADER_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
1562
|
-
import { jsx as
|
|
1550
|
+
import { jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1563
1551
|
var ChevronRightGlyph = ChevronRight2;
|
|
1564
1552
|
var ChevronDownGlyph = ChevronDown;
|
|
1565
1553
|
function DisclosureHeader({
|
|
@@ -1571,7 +1559,7 @@ function DisclosureHeader({
|
|
|
1571
1559
|
...props
|
|
1572
1560
|
}) {
|
|
1573
1561
|
const Glyph = open ? ChevronDownGlyph : ChevronRightGlyph;
|
|
1574
|
-
const glyph = /* @__PURE__ */
|
|
1562
|
+
const glyph = /* @__PURE__ */ jsx17(Glyph, {
|
|
1575
1563
|
"data-slot": "disclosure-chevron",
|
|
1576
1564
|
className: cn2(DISCLOSURE_HEADER_CLASSES.chevron, chevron === `trailing` && DISCLOSURE_HEADER_CLASSES.chevronTrailing)
|
|
1577
1565
|
});
|
|
@@ -1595,7 +1583,7 @@ import * as React8 from "react";
|
|
|
1595
1583
|
import { ChevronRight as ChevronRight3 } from "lucide-react";
|
|
1596
1584
|
import { DOCK_CARD_CLASSES, DOCK_PILE_CLASSES, dockPileGeometry } from "@exponential_app/eui/web/primitives";
|
|
1597
1585
|
import { DOCK_CARD_CLASSES as DOCK_CARD_CLASSES2, DOCK_PILE_CLASSES as DOCK_PILE_CLASSES2, DOCK_PILE_CONSTANTS, dockPileGeometry as dockPileGeometry2 } from "@exponential_app/eui/web/primitives";
|
|
1598
|
-
import { jsx as
|
|
1586
|
+
import { jsx as jsx18, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1599
1587
|
function DockCard({
|
|
1600
1588
|
tint = `muted`,
|
|
1601
1589
|
icon: Icon,
|
|
@@ -1612,7 +1600,7 @@ function DockCard({
|
|
|
1612
1600
|
...props
|
|
1613
1601
|
}) {
|
|
1614
1602
|
const pressable = onOpen !== undefined;
|
|
1615
|
-
return /* @__PURE__ */
|
|
1603
|
+
return /* @__PURE__ */ jsx18("div", {
|
|
1616
1604
|
"data-slot": "dock-card",
|
|
1617
1605
|
role: pressable ? `button` : undefined,
|
|
1618
1606
|
tabIndex: pressable && !hidden ? 0 : undefined,
|
|
@@ -1635,7 +1623,7 @@ function DockCard({
|
|
|
1635
1623
|
"data-hidden": hidden ? `true` : `false`,
|
|
1636
1624
|
className: DOCK_CARD_CLASSES.body,
|
|
1637
1625
|
children: [
|
|
1638
|
-
Icon && /* @__PURE__ */
|
|
1626
|
+
Icon && /* @__PURE__ */ jsx18(Icon, {
|
|
1639
1627
|
"aria-hidden": true,
|
|
1640
1628
|
"data-slot": "dock-card-icon",
|
|
1641
1629
|
className: cn2(DOCK_CARD_CLASSES.icon, DOCK_CARD_CLASSES.tint[tint])
|
|
@@ -1646,17 +1634,17 @@ function DockCard({
|
|
|
1646
1634
|
/* @__PURE__ */ jsxs9("div", {
|
|
1647
1635
|
className: DOCK_CARD_CLASSES.header,
|
|
1648
1636
|
children: [
|
|
1649
|
-
/* @__PURE__ */
|
|
1637
|
+
/* @__PURE__ */ jsx18("span", {
|
|
1650
1638
|
"data-slot": "dock-card-label",
|
|
1651
1639
|
className: cn2(DOCK_CARD_CLASSES.label, DOCK_CARD_CLASSES.tint[tint]),
|
|
1652
1640
|
children: label
|
|
1653
1641
|
}),
|
|
1654
|
-
caption !== undefined && caption !== null && /* @__PURE__ */
|
|
1642
|
+
caption !== undefined && caption !== null && /* @__PURE__ */ jsx18("span", {
|
|
1655
1643
|
"data-slot": "dock-card-caption",
|
|
1656
1644
|
className: DOCK_CARD_CLASSES.caption,
|
|
1657
1645
|
children: caption
|
|
1658
1646
|
}),
|
|
1659
|
-
meta !== undefined && meta !== null && /* @__PURE__ */
|
|
1647
|
+
meta !== undefined && meta !== null && /* @__PURE__ */ jsx18("span", {
|
|
1660
1648
|
"data-slot": "dock-card-meta",
|
|
1661
1649
|
className: DOCK_CARD_CLASSES.meta,
|
|
1662
1650
|
children: meta
|
|
@@ -1666,16 +1654,16 @@ function DockCard({
|
|
|
1666
1654
|
/* @__PURE__ */ jsxs9("div", {
|
|
1667
1655
|
className: DOCK_CARD_CLASSES.row,
|
|
1668
1656
|
children: [
|
|
1669
|
-
/* @__PURE__ */
|
|
1657
|
+
/* @__PURE__ */ jsx18("span", {
|
|
1670
1658
|
"data-slot": "dock-card-title",
|
|
1671
1659
|
className: DOCK_CARD_CLASSES.title,
|
|
1672
1660
|
children: title
|
|
1673
1661
|
}),
|
|
1674
|
-
pressable ? /* @__PURE__ */
|
|
1662
|
+
pressable ? /* @__PURE__ */ jsx18(ChevronRight3, {
|
|
1675
1663
|
"aria-hidden": true,
|
|
1676
1664
|
"data-slot": "dock-card-chevron",
|
|
1677
1665
|
className: DOCK_CARD_CLASSES.chevron
|
|
1678
|
-
}) : trailing !== undefined && trailing !== null ? /* @__PURE__ */
|
|
1666
|
+
}) : trailing !== undefined && trailing !== null ? /* @__PURE__ */ jsx18("span", {
|
|
1679
1667
|
"data-slot": "dock-card-trailing",
|
|
1680
1668
|
className: DOCK_CARD_CLASSES.trailing,
|
|
1681
1669
|
children: trailing
|
|
@@ -1710,7 +1698,7 @@ function DockPile({ items, expanded, onExpandedChange, className, style, ...prop
|
|
|
1710
1698
|
return () => observer.disconnect();
|
|
1711
1699
|
}, [items]);
|
|
1712
1700
|
const geometry = dockPileGeometry(items.map((item) => item.height ?? measured[item.id] ?? 0), expanded);
|
|
1713
|
-
return /* @__PURE__ */
|
|
1701
|
+
return /* @__PURE__ */ jsx18("div", {
|
|
1714
1702
|
"data-slot": "dock-pile",
|
|
1715
1703
|
"data-expanded": expanded ? `true` : `false`,
|
|
1716
1704
|
className: cn2(DOCK_PILE_CLASSES.root, className),
|
|
@@ -1732,7 +1720,7 @@ function DockPile({ items, expanded, onExpandedChange, className, style, ...prop
|
|
|
1732
1720
|
...props,
|
|
1733
1721
|
children: items.map((item, i) => {
|
|
1734
1722
|
const placed = geometry.items[i] ?? { offset: 0, scale: 1, visible: true };
|
|
1735
|
-
return /* @__PURE__ */
|
|
1723
|
+
return /* @__PURE__ */ jsx18("div", {
|
|
1736
1724
|
ref: (el) => {
|
|
1737
1725
|
if (el)
|
|
1738
1726
|
nodes.current.set(item.id, el);
|
|
@@ -1749,216 +1737,23 @@ function DockPile({ items, expanded, onExpandedChange, className, style, ...prop
|
|
|
1749
1737
|
})
|
|
1750
1738
|
});
|
|
1751
1739
|
}
|
|
1752
|
-
// packages/exponential-ui-react/src/primitives/dropdown-menu.tsx
|
|
1753
|
-
import { CheckIcon as CheckIcon2, ChevronRightIcon as ChevronRightIcon2, CircleIcon } from "lucide-react";
|
|
1754
|
-
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
1755
|
-
import { DROPDOWN_MENU_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
1756
|
-
import { jsx as jsx20, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1757
|
-
"use client";
|
|
1758
|
-
function DropdownMenu({
|
|
1759
|
-
...props
|
|
1760
|
-
}) {
|
|
1761
|
-
return /* @__PURE__ */ jsx20(DropdownMenuPrimitive.Root, {
|
|
1762
|
-
"data-slot": "dropdown-menu",
|
|
1763
|
-
...props
|
|
1764
|
-
});
|
|
1765
|
-
}
|
|
1766
|
-
function DropdownMenuPortal({
|
|
1767
|
-
...props
|
|
1768
|
-
}) {
|
|
1769
|
-
return /* @__PURE__ */ jsx20(DropdownMenuPrimitive.Portal, {
|
|
1770
|
-
"data-slot": "dropdown-menu-portal",
|
|
1771
|
-
...props
|
|
1772
|
-
});
|
|
1773
|
-
}
|
|
1774
|
-
function DropdownMenuTrigger({
|
|
1775
|
-
...props
|
|
1776
|
-
}) {
|
|
1777
|
-
return /* @__PURE__ */ jsx20(DropdownMenuPrimitive.Trigger, {
|
|
1778
|
-
"data-slot": "dropdown-menu-trigger",
|
|
1779
|
-
...props
|
|
1780
|
-
});
|
|
1781
|
-
}
|
|
1782
|
-
function DropdownMenuContent({
|
|
1783
|
-
className,
|
|
1784
|
-
sideOffset = 4,
|
|
1785
|
-
...props
|
|
1786
|
-
}) {
|
|
1787
|
-
return /* @__PURE__ */ jsx20(DropdownMenuPrimitive.Portal, {
|
|
1788
|
-
children: /* @__PURE__ */ jsx20(DropdownMenuPrimitive.Content, {
|
|
1789
|
-
"data-slot": "dropdown-menu-content",
|
|
1790
|
-
sideOffset,
|
|
1791
|
-
className: cn2(DROPDOWN_MENU_CLASSES.content, className),
|
|
1792
|
-
...props
|
|
1793
|
-
})
|
|
1794
|
-
});
|
|
1795
|
-
}
|
|
1796
|
-
function DropdownMenuGroup({
|
|
1797
|
-
...props
|
|
1798
|
-
}) {
|
|
1799
|
-
return /* @__PURE__ */ jsx20(DropdownMenuPrimitive.Group, {
|
|
1800
|
-
"data-slot": "dropdown-menu-group",
|
|
1801
|
-
...props
|
|
1802
|
-
});
|
|
1803
|
-
}
|
|
1804
|
-
function DropdownMenuItem({
|
|
1805
|
-
className,
|
|
1806
|
-
inset,
|
|
1807
|
-
variant = `default`,
|
|
1808
|
-
...props
|
|
1809
|
-
}) {
|
|
1810
|
-
return /* @__PURE__ */ jsx20(DropdownMenuPrimitive.Item, {
|
|
1811
|
-
"data-slot": "dropdown-menu-item",
|
|
1812
|
-
"data-inset": inset,
|
|
1813
|
-
"data-variant": variant,
|
|
1814
|
-
className: cn2(DROPDOWN_MENU_CLASSES.item, className),
|
|
1815
|
-
...props
|
|
1816
|
-
});
|
|
1817
|
-
}
|
|
1818
|
-
function DropdownMenuCheckboxItem({
|
|
1819
|
-
className,
|
|
1820
|
-
children,
|
|
1821
|
-
checked,
|
|
1822
|
-
...props
|
|
1823
|
-
}) {
|
|
1824
|
-
return /* @__PURE__ */ jsxs10(DropdownMenuPrimitive.CheckboxItem, {
|
|
1825
|
-
"data-slot": "dropdown-menu-checkbox-item",
|
|
1826
|
-
className: cn2(DROPDOWN_MENU_CLASSES.checkItem, className),
|
|
1827
|
-
checked,
|
|
1828
|
-
...props,
|
|
1829
|
-
children: [
|
|
1830
|
-
/* @__PURE__ */ jsx20("span", {
|
|
1831
|
-
className: DROPDOWN_MENU_CLASSES.itemIndicator,
|
|
1832
|
-
children: /* @__PURE__ */ jsx20(DropdownMenuPrimitive.ItemIndicator, {
|
|
1833
|
-
children: /* @__PURE__ */ jsx20(CheckIcon2, {
|
|
1834
|
-
className: DROPDOWN_MENU_CLASSES.checkIcon
|
|
1835
|
-
})
|
|
1836
|
-
})
|
|
1837
|
-
}),
|
|
1838
|
-
children
|
|
1839
|
-
]
|
|
1840
|
-
});
|
|
1841
|
-
}
|
|
1842
|
-
function DropdownMenuRadioGroup({
|
|
1843
|
-
...props
|
|
1844
|
-
}) {
|
|
1845
|
-
return /* @__PURE__ */ jsx20(DropdownMenuPrimitive.RadioGroup, {
|
|
1846
|
-
"data-slot": "dropdown-menu-radio-group",
|
|
1847
|
-
...props
|
|
1848
|
-
});
|
|
1849
|
-
}
|
|
1850
|
-
function DropdownMenuRadioItem({
|
|
1851
|
-
className,
|
|
1852
|
-
children,
|
|
1853
|
-
...props
|
|
1854
|
-
}) {
|
|
1855
|
-
return /* @__PURE__ */ jsxs10(DropdownMenuPrimitive.RadioItem, {
|
|
1856
|
-
"data-slot": "dropdown-menu-radio-item",
|
|
1857
|
-
className: cn2(DROPDOWN_MENU_CLASSES.checkItem, className),
|
|
1858
|
-
...props,
|
|
1859
|
-
children: [
|
|
1860
|
-
/* @__PURE__ */ jsx20("span", {
|
|
1861
|
-
className: DROPDOWN_MENU_CLASSES.itemIndicator,
|
|
1862
|
-
children: /* @__PURE__ */ jsx20(DropdownMenuPrimitive.ItemIndicator, {
|
|
1863
|
-
children: /* @__PURE__ */ jsx20(CircleIcon, {
|
|
1864
|
-
className: DROPDOWN_MENU_CLASSES.radioIcon
|
|
1865
|
-
})
|
|
1866
|
-
})
|
|
1867
|
-
}),
|
|
1868
|
-
children
|
|
1869
|
-
]
|
|
1870
|
-
});
|
|
1871
|
-
}
|
|
1872
|
-
function DropdownMenuLabel({
|
|
1873
|
-
className,
|
|
1874
|
-
inset,
|
|
1875
|
-
...props
|
|
1876
|
-
}) {
|
|
1877
|
-
return /* @__PURE__ */ jsx20(DropdownMenuPrimitive.Label, {
|
|
1878
|
-
"data-slot": "dropdown-menu-label",
|
|
1879
|
-
"data-inset": inset,
|
|
1880
|
-
className: cn2(DROPDOWN_MENU_CLASSES.label, className),
|
|
1881
|
-
...props
|
|
1882
|
-
});
|
|
1883
|
-
}
|
|
1884
|
-
function DropdownMenuSeparator({
|
|
1885
|
-
className,
|
|
1886
|
-
...props
|
|
1887
|
-
}) {
|
|
1888
|
-
return /* @__PURE__ */ jsx20(DropdownMenuPrimitive.Separator, {
|
|
1889
|
-
"data-slot": "dropdown-menu-separator",
|
|
1890
|
-
className: cn2(DROPDOWN_MENU_CLASSES.separator, className),
|
|
1891
|
-
...props
|
|
1892
|
-
});
|
|
1893
|
-
}
|
|
1894
|
-
function DropdownMenuShortcut({
|
|
1895
|
-
className,
|
|
1896
|
-
...props
|
|
1897
|
-
}) {
|
|
1898
|
-
return /* @__PURE__ */ jsx20("span", {
|
|
1899
|
-
"data-slot": "dropdown-menu-shortcut",
|
|
1900
|
-
className: cn2(DROPDOWN_MENU_CLASSES.shortcut, className),
|
|
1901
|
-
...props
|
|
1902
|
-
});
|
|
1903
|
-
}
|
|
1904
|
-
function DropdownMenuSub({
|
|
1905
|
-
...props
|
|
1906
|
-
}) {
|
|
1907
|
-
return /* @__PURE__ */ jsx20(DropdownMenuPrimitive.Sub, {
|
|
1908
|
-
"data-slot": "dropdown-menu-sub",
|
|
1909
|
-
...props
|
|
1910
|
-
});
|
|
1911
|
-
}
|
|
1912
|
-
function DropdownMenuSubTrigger({
|
|
1913
|
-
className,
|
|
1914
|
-
inset,
|
|
1915
|
-
children,
|
|
1916
|
-
variant = `default`,
|
|
1917
|
-
...props
|
|
1918
|
-
}) {
|
|
1919
|
-
return /* @__PURE__ */ jsxs10(DropdownMenuPrimitive.SubTrigger, {
|
|
1920
|
-
"data-slot": "dropdown-menu-sub-trigger",
|
|
1921
|
-
"data-inset": inset,
|
|
1922
|
-
"data-variant": variant,
|
|
1923
|
-
className: cn2(DROPDOWN_MENU_CLASSES.subTrigger, className),
|
|
1924
|
-
...props,
|
|
1925
|
-
children: [
|
|
1926
|
-
children,
|
|
1927
|
-
/* @__PURE__ */ jsx20(ChevronRightIcon2, {
|
|
1928
|
-
className: DROPDOWN_MENU_CLASSES.subChevron
|
|
1929
|
-
})
|
|
1930
|
-
]
|
|
1931
|
-
});
|
|
1932
|
-
}
|
|
1933
|
-
function DropdownMenuSubContent({
|
|
1934
|
-
className,
|
|
1935
|
-
...props
|
|
1936
|
-
}) {
|
|
1937
|
-
return /* @__PURE__ */ jsx20(DropdownMenuPrimitive.Portal, {
|
|
1938
|
-
children: /* @__PURE__ */ jsx20(DropdownMenuPrimitive.SubContent, {
|
|
1939
|
-
"data-slot": "dropdown-menu-sub-content",
|
|
1940
|
-
className: cn2(DROPDOWN_MENU_CLASSES.subContent, className),
|
|
1941
|
-
...props
|
|
1942
|
-
})
|
|
1943
|
-
});
|
|
1944
|
-
}
|
|
1945
1740
|
// packages/exponential-ui-react/src/primitives/empty-state.tsx
|
|
1946
1741
|
import { EMPTY_STATE_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
1947
1742
|
|
|
1948
1743
|
// packages/exponential-ui-react/src/primitives/icon-disc.tsx
|
|
1949
1744
|
import { ICON_DISC_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
1950
1745
|
import { ICON_DISC_TONES } from "@exponential_app/eui/web/primitives";
|
|
1951
|
-
import { jsx as
|
|
1746
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1952
1747
|
function IconDisc({
|
|
1953
1748
|
icon: Icon,
|
|
1954
1749
|
tone = `primary`,
|
|
1955
1750
|
strokeWidth,
|
|
1956
1751
|
className
|
|
1957
1752
|
}) {
|
|
1958
|
-
return /* @__PURE__ */
|
|
1753
|
+
return /* @__PURE__ */ jsx19("div", {
|
|
1959
1754
|
"data-slot": "icon-disc",
|
|
1960
1755
|
className: cn2(ICON_DISC_CLASSES.root, ICON_DISC_CLASSES.tones[tone], className),
|
|
1961
|
-
children: /* @__PURE__ */
|
|
1756
|
+
children: /* @__PURE__ */ jsx19(Icon, {
|
|
1962
1757
|
className: ICON_DISC_CLASSES.icon,
|
|
1963
1758
|
strokeWidth,
|
|
1964
1759
|
"aria-hidden": "true",
|
|
@@ -1969,7 +1764,7 @@ function IconDisc({
|
|
|
1969
1764
|
|
|
1970
1765
|
// packages/exponential-ui-react/src/primitives/empty-state.tsx
|
|
1971
1766
|
import { EMPTY_STATE_SIZES } from "@exponential_app/eui/web/primitives";
|
|
1972
|
-
import { jsx as
|
|
1767
|
+
import { jsx as jsx20, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1973
1768
|
function EmptyState({
|
|
1974
1769
|
icon: Icon,
|
|
1975
1770
|
title,
|
|
@@ -1979,41 +1774,41 @@ function EmptyState({
|
|
|
1979
1774
|
children
|
|
1980
1775
|
}) {
|
|
1981
1776
|
if (size === `list`) {
|
|
1982
|
-
return /* @__PURE__ */
|
|
1777
|
+
return /* @__PURE__ */ jsxs10("div", {
|
|
1983
1778
|
"data-slot": "empty-state",
|
|
1984
1779
|
"data-size": "list",
|
|
1985
1780
|
role: "status",
|
|
1986
1781
|
className: cn2(EMPTY_STATE_CLASSES.list, className),
|
|
1987
1782
|
children: [
|
|
1988
|
-
Icon && /* @__PURE__ */
|
|
1783
|
+
Icon && /* @__PURE__ */ jsx20(Icon, {
|
|
1989
1784
|
"aria-hidden": "true",
|
|
1990
1785
|
focusable: "false",
|
|
1991
1786
|
className: EMPTY_STATE_CLASSES.listIcon
|
|
1992
1787
|
}),
|
|
1993
|
-
/* @__PURE__ */
|
|
1788
|
+
/* @__PURE__ */ jsx20("span", {
|
|
1994
1789
|
children: title
|
|
1995
1790
|
})
|
|
1996
1791
|
]
|
|
1997
1792
|
});
|
|
1998
1793
|
}
|
|
1999
|
-
return /* @__PURE__ */
|
|
1794
|
+
return /* @__PURE__ */ jsxs10("div", {
|
|
2000
1795
|
"data-slot": "empty-state",
|
|
2001
1796
|
"data-size": "page",
|
|
2002
1797
|
role: "status",
|
|
2003
1798
|
className: cn2(EMPTY_STATE_CLASSES.page, className),
|
|
2004
1799
|
children: [
|
|
2005
|
-
Icon && /* @__PURE__ */
|
|
1800
|
+
Icon && /* @__PURE__ */ jsx20(IconDisc, {
|
|
2006
1801
|
icon: Icon
|
|
2007
1802
|
}),
|
|
2008
|
-
/* @__PURE__ */
|
|
1803
|
+
/* @__PURE__ */ jsx20("h2", {
|
|
2009
1804
|
className: EMPTY_STATE_CLASSES.pageTitle,
|
|
2010
1805
|
children: title
|
|
2011
1806
|
}),
|
|
2012
|
-
description && /* @__PURE__ */
|
|
1807
|
+
description && /* @__PURE__ */ jsx20("p", {
|
|
2013
1808
|
className: EMPTY_STATE_CLASSES.pageDescription,
|
|
2014
1809
|
children: description
|
|
2015
1810
|
}),
|
|
2016
|
-
children && /* @__PURE__ */
|
|
1811
|
+
children && /* @__PURE__ */ jsx20("div", {
|
|
2017
1812
|
className: EMPTY_STATE_CLASSES.pageActions,
|
|
2018
1813
|
children
|
|
2019
1814
|
})
|
|
@@ -2025,7 +1820,7 @@ function ListEmpty({
|
|
|
2025
1820
|
children,
|
|
2026
1821
|
...props
|
|
2027
1822
|
}) {
|
|
2028
|
-
return /* @__PURE__ */
|
|
1823
|
+
return /* @__PURE__ */ jsx20("p", {
|
|
2029
1824
|
"data-slot": "list-empty",
|
|
2030
1825
|
role: "status",
|
|
2031
1826
|
className: cn2(EMPTY_STATE_CLASSES.listEmpty, className),
|
|
@@ -2041,22 +1836,22 @@ function EmptyCta({
|
|
|
2041
1836
|
type,
|
|
2042
1837
|
...props
|
|
2043
1838
|
}) {
|
|
2044
|
-
return /* @__PURE__ */
|
|
1839
|
+
return /* @__PURE__ */ jsxs10("button", {
|
|
2045
1840
|
type: type ?? `button`,
|
|
2046
1841
|
"data-slot": "empty-cta",
|
|
2047
1842
|
className: cn2(EMPTY_STATE_CLASSES.cta, className),
|
|
2048
1843
|
...props,
|
|
2049
1844
|
children: [
|
|
2050
|
-
/* @__PURE__ */
|
|
1845
|
+
/* @__PURE__ */ jsxs10("span", {
|
|
2051
1846
|
className: EMPTY_STATE_CLASSES.ctaTitle,
|
|
2052
1847
|
children: [
|
|
2053
|
-
/* @__PURE__ */
|
|
1848
|
+
/* @__PURE__ */ jsx20(Icon, {
|
|
2054
1849
|
className: EMPTY_STATE_CLASSES.ctaIcon
|
|
2055
1850
|
}),
|
|
2056
1851
|
title
|
|
2057
1852
|
]
|
|
2058
1853
|
}),
|
|
2059
|
-
/* @__PURE__ */
|
|
1854
|
+
/* @__PURE__ */ jsx20("span", {
|
|
2060
1855
|
className: EMPTY_STATE_CLASSES.ctaDescription,
|
|
2061
1856
|
children: description
|
|
2062
1857
|
})
|
|
@@ -2066,9 +1861,9 @@ function EmptyCta({
|
|
|
2066
1861
|
// packages/exponential-ui-react/src/primitives/glass-card.tsx
|
|
2067
1862
|
import { GLASS_CARD_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
2068
1863
|
import { GLASS_CARD_CLASS, GLASS_CARD_CLASSES as GLASS_CARD_CLASSES2 } from "@exponential_app/eui/web/primitives";
|
|
2069
|
-
import { jsx as
|
|
1864
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
2070
1865
|
function GlassCard({ className, ...props }) {
|
|
2071
|
-
return /* @__PURE__ */
|
|
1866
|
+
return /* @__PURE__ */ jsx21("div", {
|
|
2072
1867
|
"data-slot": "glass-card",
|
|
2073
1868
|
className: cn2(GLASS_CARD_CLASSES.root, className),
|
|
2074
1869
|
...props
|
|
@@ -2077,13 +1872,13 @@ function GlassCard({ className, ...props }) {
|
|
|
2077
1872
|
// packages/exponential-ui-react/src/primitives/hover-card.tsx
|
|
2078
1873
|
import { HoverCard as HoverCardPrimitive } from "radix-ui";
|
|
2079
1874
|
import { HOVER_CARD_CLASSES, HOVER_CARD_DELAYS } from "@exponential_app/eui/web/primitives";
|
|
2080
|
-
import { jsx as
|
|
1875
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
2081
1876
|
function HoverCard({
|
|
2082
1877
|
openDelay = HOVER_CARD_DELAYS.openDelay,
|
|
2083
1878
|
closeDelay = HOVER_CARD_DELAYS.closeDelay,
|
|
2084
1879
|
...props
|
|
2085
1880
|
}) {
|
|
2086
|
-
return /* @__PURE__ */
|
|
1881
|
+
return /* @__PURE__ */ jsx22(HoverCardPrimitive.Root, {
|
|
2087
1882
|
"data-slot": "hover-card",
|
|
2088
1883
|
openDelay,
|
|
2089
1884
|
closeDelay,
|
|
@@ -2093,7 +1888,7 @@ function HoverCard({
|
|
|
2093
1888
|
function HoverCardTrigger({
|
|
2094
1889
|
...props
|
|
2095
1890
|
}) {
|
|
2096
|
-
return /* @__PURE__ */
|
|
1891
|
+
return /* @__PURE__ */ jsx22(HoverCardPrimitive.Trigger, {
|
|
2097
1892
|
"data-slot": "hover-card-trigger",
|
|
2098
1893
|
...props
|
|
2099
1894
|
});
|
|
@@ -2104,8 +1899,8 @@ function HoverCardContent({
|
|
|
2104
1899
|
sideOffset = 6,
|
|
2105
1900
|
...props
|
|
2106
1901
|
}) {
|
|
2107
|
-
return /* @__PURE__ */
|
|
2108
|
-
children: /* @__PURE__ */
|
|
1902
|
+
return /* @__PURE__ */ jsx22(HoverCardPrimitive.Portal, {
|
|
1903
|
+
children: /* @__PURE__ */ jsx22(HoverCardPrimitive.Content, {
|
|
2109
1904
|
"data-slot": "hover-card-content",
|
|
2110
1905
|
align,
|
|
2111
1906
|
sideOffset,
|
|
@@ -2118,9 +1913,9 @@ function HoverCardContent({
|
|
|
2118
1913
|
import * as React9 from "react";
|
|
2119
1914
|
import { INPUT_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
2120
1915
|
import { BARE_FIELD_CLASS, FIELD_CHROME_CLASS } from "@exponential_app/eui/web/primitives";
|
|
2121
|
-
import { jsx as
|
|
1916
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
2122
1917
|
var Input = React9.forwardRef(({ className, type, ...props }, ref) => {
|
|
2123
|
-
return /* @__PURE__ */
|
|
1918
|
+
return /* @__PURE__ */ jsx23("input", {
|
|
2124
1919
|
ref,
|
|
2125
1920
|
type,
|
|
2126
1921
|
"data-slot": "input",
|
|
@@ -2131,16 +1926,16 @@ var Input = React9.forwardRef(({ className, type, ...props }, ref) => {
|
|
|
2131
1926
|
Input.displayName = `Input`;
|
|
2132
1927
|
// packages/exponential-ui-react/src/primitives/kbd.tsx
|
|
2133
1928
|
import { KBD_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
2134
|
-
import { jsx as
|
|
1929
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
2135
1930
|
function Kbd({ className, ...props }) {
|
|
2136
|
-
return /* @__PURE__ */
|
|
1931
|
+
return /* @__PURE__ */ jsx24("kbd", {
|
|
2137
1932
|
"data-slot": "kbd",
|
|
2138
1933
|
className: cn2(KBD_CLASSES.root, className),
|
|
2139
1934
|
...props
|
|
2140
1935
|
});
|
|
2141
1936
|
}
|
|
2142
1937
|
function KbdGroup({ className, ...props }) {
|
|
2143
|
-
return /* @__PURE__ */
|
|
1938
|
+
return /* @__PURE__ */ jsx24("span", {
|
|
2144
1939
|
"data-slot": "kbd-group",
|
|
2145
1940
|
className: cn2(KBD_CLASSES.group, className),
|
|
2146
1941
|
...props
|
|
@@ -2149,12 +1944,12 @@ function KbdGroup({ className, ...props }) {
|
|
|
2149
1944
|
// packages/exponential-ui-react/src/primitives/label.tsx
|
|
2150
1945
|
import { Label as LabelPrimitive } from "radix-ui";
|
|
2151
1946
|
import { LABEL_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
2152
|
-
import { jsx as
|
|
1947
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
2153
1948
|
function Label({
|
|
2154
1949
|
className,
|
|
2155
1950
|
...props
|
|
2156
1951
|
}) {
|
|
2157
|
-
return /* @__PURE__ */
|
|
1952
|
+
return /* @__PURE__ */ jsx25(LabelPrimitive.Root, {
|
|
2158
1953
|
"data-slot": "label",
|
|
2159
1954
|
className: cn2(LABEL_CLASSES.root, className),
|
|
2160
1955
|
...props
|
|
@@ -2168,19 +1963,19 @@ import { METER_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
|
2168
1963
|
// packages/exponential-ui-react/src/primitives/progress.tsx
|
|
2169
1964
|
import { Progress as ProgressPrimitive } from "radix-ui";
|
|
2170
1965
|
import { PROGRESS_CLASSES, progressIndicatorTransform } from "@exponential_app/eui/web/primitives";
|
|
2171
|
-
import { jsx as
|
|
1966
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
2172
1967
|
function Progress({
|
|
2173
1968
|
className,
|
|
2174
1969
|
value,
|
|
2175
1970
|
...props
|
|
2176
1971
|
}) {
|
|
2177
1972
|
const indeterminate = value === null || value === undefined;
|
|
2178
|
-
return /* @__PURE__ */
|
|
1973
|
+
return /* @__PURE__ */ jsx26(ProgressPrimitive.Root, {
|
|
2179
1974
|
"data-slot": "progress",
|
|
2180
1975
|
value,
|
|
2181
1976
|
className: cn2(PROGRESS_CLASSES.root, className),
|
|
2182
1977
|
...props,
|
|
2183
|
-
children: /* @__PURE__ */
|
|
1978
|
+
children: /* @__PURE__ */ jsx26(ProgressPrimitive.Indicator, {
|
|
2184
1979
|
"data-slot": "progress-indicator",
|
|
2185
1980
|
className: cn2(PROGRESS_CLASSES.indicator, indeterminate ? PROGRESS_CLASSES.indicatorIndeterminate : PROGRESS_CLASSES.indicatorDeterminate),
|
|
2186
1981
|
style: indeterminate ? undefined : { transform: progressIndicatorTransform(value) }
|
|
@@ -2189,14 +1984,14 @@ function Progress({
|
|
|
2189
1984
|
}
|
|
2190
1985
|
|
|
2191
1986
|
// packages/exponential-ui-react/src/primitives/meter.tsx
|
|
2192
|
-
import { jsx as
|
|
1987
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
2193
1988
|
function Meter({
|
|
2194
1989
|
value,
|
|
2195
1990
|
tone = `normal`,
|
|
2196
1991
|
className,
|
|
2197
1992
|
...props
|
|
2198
1993
|
}) {
|
|
2199
|
-
return /* @__PURE__ */
|
|
1994
|
+
return /* @__PURE__ */ jsx27(Progress, {
|
|
2200
1995
|
"data-slot": "meter",
|
|
2201
1996
|
"data-tone": tone,
|
|
2202
1997
|
value,
|
|
@@ -2207,13 +2002,13 @@ function Meter({
|
|
|
2207
2002
|
// packages/exponential-ui-react/src/primitives/mosaic.tsx
|
|
2208
2003
|
import { MOSAIC_CLASSES, mosaicTiles } from "@exponential_app/eui/web/primitives";
|
|
2209
2004
|
import { MOSAIC_GEOMETRY, mosaicTiles as mosaicTiles2 } from "@exponential_app/eui/web/primitives";
|
|
2210
|
-
import { jsx as
|
|
2005
|
+
import { jsx as jsx28, jsxs as jsxs11, Fragment as Fragment4 } from "react/jsx-runtime";
|
|
2211
2006
|
function Mosaic({ pictures, label, onSelect, className, ...props }) {
|
|
2212
2007
|
const tiles = mosaicTiles(pictures.length);
|
|
2213
2008
|
const tile = (t, lead) => {
|
|
2214
2009
|
const picture = pictures[t.index];
|
|
2215
2010
|
const alt = picture.alt ?? ``;
|
|
2216
|
-
return /* @__PURE__ */
|
|
2011
|
+
return /* @__PURE__ */ jsxs11("button", {
|
|
2217
2012
|
type: "button",
|
|
2218
2013
|
"data-slot": "mosaic-tile",
|
|
2219
2014
|
"data-size": t.size,
|
|
@@ -2221,7 +2016,7 @@ function Mosaic({ pictures, label, onSelect, className, ...props }) {
|
|
|
2221
2016
|
className: cn2(MOSAIC_CLASSES.tile, lead ? MOSAIC_CLASSES.lead : MOSAIC_CLASSES.fill),
|
|
2222
2017
|
onClick: () => onSelect?.(t.index),
|
|
2223
2018
|
children: [
|
|
2224
|
-
/* @__PURE__ */
|
|
2019
|
+
/* @__PURE__ */ jsx28("img", {
|
|
2225
2020
|
src: picture.src,
|
|
2226
2021
|
alt: "",
|
|
2227
2022
|
"aria-hidden": "true",
|
|
@@ -2230,7 +2025,7 @@ function Mosaic({ pictures, label, onSelect, className, ...props }) {
|
|
|
2230
2025
|
draggable: false,
|
|
2231
2026
|
className: MOSAIC_CLASSES.image
|
|
2232
2027
|
}),
|
|
2233
|
-
t.more > 0 ? /* @__PURE__ */
|
|
2028
|
+
t.more > 0 ? /* @__PURE__ */ jsx28("span", {
|
|
2234
2029
|
"aria-hidden": "true",
|
|
2235
2030
|
className: MOSAIC_CLASSES.more,
|
|
2236
2031
|
children: `+${t.more}`
|
|
@@ -2238,16 +2033,16 @@ function Mosaic({ pictures, label, onSelect, className, ...props }) {
|
|
|
2238
2033
|
]
|
|
2239
2034
|
}, t.index);
|
|
2240
2035
|
};
|
|
2241
|
-
return /* @__PURE__ */
|
|
2036
|
+
return /* @__PURE__ */ jsx28("div", {
|
|
2242
2037
|
"data-slot": "mosaic",
|
|
2243
2038
|
role: "group",
|
|
2244
2039
|
"aria-label": label || undefined,
|
|
2245
2040
|
className: cn2(MOSAIC_CLASSES.root, className),
|
|
2246
2041
|
...props,
|
|
2247
|
-
children: tiles.length >= 3 ? /* @__PURE__ */
|
|
2042
|
+
children: tiles.length >= 3 ? /* @__PURE__ */ jsxs11(Fragment4, {
|
|
2248
2043
|
children: [
|
|
2249
2044
|
tile(tiles[0], true),
|
|
2250
|
-
/* @__PURE__ */
|
|
2045
|
+
/* @__PURE__ */ jsx28("div", {
|
|
2251
2046
|
"data-slot": "mosaic-side",
|
|
2252
2047
|
className: MOSAIC_CLASSES.side,
|
|
2253
2048
|
children: tiles.slice(1).map((t) => tile(t, false))
|
|
@@ -2259,15 +2054,15 @@ function Mosaic({ pictures, label, onSelect, className, ...props }) {
|
|
|
2259
2054
|
// packages/exponential-ui-react/src/primitives/outline.tsx
|
|
2260
2055
|
import { OUTLINE_CLASSES, outlineCountText } from "@exponential_app/eui/web/primitives";
|
|
2261
2056
|
import { OUTLINE_GEOMETRY, outlineCountText as outlineCountText2 } from "@exponential_app/eui/web/primitives";
|
|
2262
|
-
import { jsx as
|
|
2057
|
+
import { jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2263
2058
|
function Outline({ items, value, caption, onSelect, className, ...props }) {
|
|
2264
|
-
return /* @__PURE__ */
|
|
2059
|
+
return /* @__PURE__ */ jsxs12("nav", {
|
|
2265
2060
|
"data-slot": "outline",
|
|
2266
2061
|
"aria-label": caption || `Outline`,
|
|
2267
2062
|
className: cn2(OUTLINE_CLASSES.root, className),
|
|
2268
2063
|
...props,
|
|
2269
2064
|
children: [
|
|
2270
|
-
caption ? /* @__PURE__ */
|
|
2065
|
+
caption ? /* @__PURE__ */ jsx29("div", {
|
|
2271
2066
|
"data-slot": "outline-caption",
|
|
2272
2067
|
"aria-hidden": "true",
|
|
2273
2068
|
className: OUTLINE_CLASSES.caption,
|
|
@@ -2276,7 +2071,7 @@ function Outline({ items, value, caption, onSelect, className, ...props }) {
|
|
|
2276
2071
|
items.map((item) => {
|
|
2277
2072
|
const active = value != null && item.id === value;
|
|
2278
2073
|
const count = outlineCountText(item.count);
|
|
2279
|
-
return /* @__PURE__ */
|
|
2074
|
+
return /* @__PURE__ */ jsxs12("button", {
|
|
2280
2075
|
type: "button",
|
|
2281
2076
|
"data-slot": "outline-row",
|
|
2282
2077
|
"data-active": active ? `true` : undefined,
|
|
@@ -2285,16 +2080,16 @@ function Outline({ items, value, caption, onSelect, className, ...props }) {
|
|
|
2285
2080
|
className: OUTLINE_CLASSES.row,
|
|
2286
2081
|
onClick: () => onSelect?.(item.id),
|
|
2287
2082
|
children: [
|
|
2288
|
-
active ? /* @__PURE__ */
|
|
2083
|
+
active ? /* @__PURE__ */ jsx29("span", {
|
|
2289
2084
|
"data-slot": "outline-bar",
|
|
2290
2085
|
"aria-hidden": "true",
|
|
2291
2086
|
className: OUTLINE_CLASSES.bar
|
|
2292
2087
|
}) : null,
|
|
2293
|
-
/* @__PURE__ */
|
|
2088
|
+
/* @__PURE__ */ jsx29("span", {
|
|
2294
2089
|
className: OUTLINE_CLASSES.title,
|
|
2295
2090
|
children: item.title
|
|
2296
2091
|
}),
|
|
2297
|
-
count ? /* @__PURE__ */
|
|
2092
|
+
count ? /* @__PURE__ */ jsx29("span", {
|
|
2298
2093
|
"aria-hidden": "true",
|
|
2299
2094
|
className: OUTLINE_CLASSES.count,
|
|
2300
2095
|
children: count
|
|
@@ -2308,11 +2103,11 @@ function Outline({ items, value, caption, onSelect, className, ...props }) {
|
|
|
2308
2103
|
// packages/exponential-ui-react/src/primitives/popover.tsx
|
|
2309
2104
|
import { Popover as PopoverPrimitive } from "radix-ui";
|
|
2310
2105
|
import { POPOVER_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
2311
|
-
import { jsx as
|
|
2106
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
2312
2107
|
function Popover({
|
|
2313
2108
|
...props
|
|
2314
2109
|
}) {
|
|
2315
|
-
return /* @__PURE__ */
|
|
2110
|
+
return /* @__PURE__ */ jsx30(PopoverPrimitive.Root, {
|
|
2316
2111
|
"data-slot": "popover",
|
|
2317
2112
|
...props
|
|
2318
2113
|
});
|
|
@@ -2320,7 +2115,7 @@ function Popover({
|
|
|
2320
2115
|
function PopoverTrigger({
|
|
2321
2116
|
...props
|
|
2322
2117
|
}) {
|
|
2323
|
-
return /* @__PURE__ */
|
|
2118
|
+
return /* @__PURE__ */ jsx30(PopoverPrimitive.Trigger, {
|
|
2324
2119
|
"data-slot": "popover-trigger",
|
|
2325
2120
|
...props
|
|
2326
2121
|
});
|
|
@@ -2331,8 +2126,8 @@ function PopoverContent({
|
|
|
2331
2126
|
sideOffset = 4,
|
|
2332
2127
|
...props
|
|
2333
2128
|
}) {
|
|
2334
|
-
return /* @__PURE__ */
|
|
2335
|
-
children: /* @__PURE__ */
|
|
2129
|
+
return /* @__PURE__ */ jsx30(PopoverPrimitive.Portal, {
|
|
2130
|
+
children: /* @__PURE__ */ jsx30(PopoverPrimitive.Content, {
|
|
2336
2131
|
"data-slot": "popover-content",
|
|
2337
2132
|
align,
|
|
2338
2133
|
sideOffset,
|
|
@@ -2344,7 +2139,7 @@ function PopoverContent({
|
|
|
2344
2139
|
function PopoverAnchor({
|
|
2345
2140
|
...props
|
|
2346
2141
|
}) {
|
|
2347
|
-
return /* @__PURE__ */
|
|
2142
|
+
return /* @__PURE__ */ jsx30(PopoverPrimitive.Anchor, {
|
|
2348
2143
|
"data-slot": "popover-anchor",
|
|
2349
2144
|
...props
|
|
2350
2145
|
});
|
|
@@ -2352,7 +2147,7 @@ function PopoverAnchor({
|
|
|
2352
2147
|
// packages/exponential-ui-react/src/primitives/progress-ring.tsx
|
|
2353
2148
|
import { PROGRESS_RING_CLASSES, RING_RADIUS as RING_RADIUS3, RING_SIZE as RING_SIZE3, RING_STROKE as RING_STROKE3, progressRingPercent, ringGeometry as ringGeometry3 } from "@exponential_app/eui/web/primitives";
|
|
2354
2149
|
import { progressRingPercent as progressRingPercent2 } from "@exponential_app/eui/web/primitives";
|
|
2355
|
-
import { jsx as
|
|
2150
|
+
import { jsx as jsx31, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2356
2151
|
function ProgressRing({
|
|
2357
2152
|
done,
|
|
2358
2153
|
total,
|
|
@@ -2363,7 +2158,7 @@ function ProgressRing({
|
|
|
2363
2158
|
}) {
|
|
2364
2159
|
const { circumference, dashOffset } = ringGeometry3(progressRingPercent(done, total));
|
|
2365
2160
|
const centre = RING_SIZE3 / 2;
|
|
2366
|
-
return /* @__PURE__ */
|
|
2161
|
+
return /* @__PURE__ */ jsxs13("svg", {
|
|
2367
2162
|
viewBox: `0 0 ${RING_SIZE3} ${RING_SIZE3}`,
|
|
2368
2163
|
width: size,
|
|
2369
2164
|
height: size,
|
|
@@ -2374,7 +2169,7 @@ function ProgressRing({
|
|
|
2374
2169
|
className: cn2(PROGRESS_RING_CLASSES.root, colorClass, className),
|
|
2375
2170
|
style: colorHex ? { color: colorHex } : undefined,
|
|
2376
2171
|
children: [
|
|
2377
|
-
/* @__PURE__ */
|
|
2172
|
+
/* @__PURE__ */ jsx31("circle", {
|
|
2378
2173
|
cx: centre,
|
|
2379
2174
|
cy: centre,
|
|
2380
2175
|
r: RING_RADIUS3,
|
|
@@ -2383,7 +2178,7 @@ function ProgressRing({
|
|
|
2383
2178
|
strokeWidth: RING_STROKE3,
|
|
2384
2179
|
opacity: 0.2
|
|
2385
2180
|
}),
|
|
2386
|
-
done > 0 && /* @__PURE__ */
|
|
2181
|
+
done > 0 && /* @__PURE__ */ jsx31("circle", {
|
|
2387
2182
|
"data-slot": "progress-ring-arc",
|
|
2388
2183
|
cx: centre,
|
|
2389
2184
|
cy: centre,
|
|
@@ -2401,30 +2196,30 @@ function ProgressRing({
|
|
|
2401
2196
|
// packages/exponential-ui-react/src/primitives/scroll-area.tsx
|
|
2402
2197
|
import { ScrollArea as ScrollAreaPrimitive } from "radix-ui";
|
|
2403
2198
|
import { SCROLL_AREA_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
2404
|
-
import { jsx as
|
|
2199
|
+
import { jsx as jsx32, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2405
2200
|
function ScrollArea({ className, children, ...props }) {
|
|
2406
|
-
return /* @__PURE__ */
|
|
2201
|
+
return /* @__PURE__ */ jsxs14(ScrollAreaPrimitive.Root, {
|
|
2407
2202
|
"data-slot": "scroll-area",
|
|
2408
2203
|
className: cn2(SCROLL_AREA_CLASSES.root, className),
|
|
2409
2204
|
...props,
|
|
2410
2205
|
children: [
|
|
2411
|
-
/* @__PURE__ */
|
|
2206
|
+
/* @__PURE__ */ jsx32(ScrollAreaPrimitive.Viewport, {
|
|
2412
2207
|
"data-slot": "scroll-area-viewport",
|
|
2413
2208
|
className: SCROLL_AREA_CLASSES.viewport,
|
|
2414
2209
|
children
|
|
2415
2210
|
}),
|
|
2416
|
-
/* @__PURE__ */
|
|
2417
|
-
/* @__PURE__ */
|
|
2211
|
+
/* @__PURE__ */ jsx32(ScrollBar, {}),
|
|
2212
|
+
/* @__PURE__ */ jsx32(ScrollAreaPrimitive.Corner, {})
|
|
2418
2213
|
]
|
|
2419
2214
|
});
|
|
2420
2215
|
}
|
|
2421
2216
|
function ScrollBar({ className, orientation = `vertical`, ...props }) {
|
|
2422
|
-
return /* @__PURE__ */
|
|
2217
|
+
return /* @__PURE__ */ jsx32(ScrollAreaPrimitive.ScrollAreaScrollbar, {
|
|
2423
2218
|
"data-slot": "scroll-area-scrollbar",
|
|
2424
2219
|
orientation,
|
|
2425
2220
|
className: cn2(SCROLL_AREA_CLASSES.scrollbar, SCROLL_AREA_CLASSES.orientations[orientation], className),
|
|
2426
2221
|
...props,
|
|
2427
|
-
children: /* @__PURE__ */
|
|
2222
|
+
children: /* @__PURE__ */ jsx32(ScrollAreaPrimitive.ScrollAreaThumb, {
|
|
2428
2223
|
"data-slot": "scroll-area-thumb",
|
|
2429
2224
|
className: SCROLL_AREA_CLASSES.thumb
|
|
2430
2225
|
})
|
|
@@ -2437,12 +2232,12 @@ import { SEGMENTED_CONTROL_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
|
2437
2232
|
import { Tabs as TabsPrimitive } from "radix-ui";
|
|
2438
2233
|
import { TABS_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
2439
2234
|
import { SEGMENTED_ITEM, SEGMENTED_LIST, SEGMENTED_ROW, SEGMENTED_ROW_COMPACT, SEGMENTED_TAB } from "@exponential_app/eui/web/primitives";
|
|
2440
|
-
import { jsx as
|
|
2235
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
2441
2236
|
function Tabs({
|
|
2442
2237
|
className,
|
|
2443
2238
|
...props
|
|
2444
2239
|
}) {
|
|
2445
|
-
return /* @__PURE__ */
|
|
2240
|
+
return /* @__PURE__ */ jsx33(TabsPrimitive.Root, {
|
|
2446
2241
|
"data-slot": "tabs",
|
|
2447
2242
|
className: cn2(TABS_CLASSES.root, className),
|
|
2448
2243
|
...props
|
|
@@ -2452,7 +2247,7 @@ function TabsList({
|
|
|
2452
2247
|
className,
|
|
2453
2248
|
...props
|
|
2454
2249
|
}) {
|
|
2455
|
-
return /* @__PURE__ */
|
|
2250
|
+
return /* @__PURE__ */ jsx33(TabsPrimitive.List, {
|
|
2456
2251
|
"data-slot": "tabs-list",
|
|
2457
2252
|
className: cn2(TABS_CLASSES.list, className),
|
|
2458
2253
|
...props
|
|
@@ -2462,7 +2257,7 @@ function TabsTrigger({
|
|
|
2462
2257
|
className,
|
|
2463
2258
|
...props
|
|
2464
2259
|
}) {
|
|
2465
|
-
return /* @__PURE__ */
|
|
2260
|
+
return /* @__PURE__ */ jsx33(TabsPrimitive.Trigger, {
|
|
2466
2261
|
"data-slot": "tabs-trigger",
|
|
2467
2262
|
className: cn2(TABS_CLASSES.trigger, className),
|
|
2468
2263
|
...props
|
|
@@ -2472,7 +2267,7 @@ function TabsContent({
|
|
|
2472
2267
|
className,
|
|
2473
2268
|
...props
|
|
2474
2269
|
}) {
|
|
2475
|
-
return /* @__PURE__ */
|
|
2270
|
+
return /* @__PURE__ */ jsx33(TabsPrimitive.Content, {
|
|
2476
2271
|
"data-slot": "tabs-content",
|
|
2477
2272
|
className: cn2(TABS_CLASSES.content, className),
|
|
2478
2273
|
...props
|
|
@@ -2480,7 +2275,7 @@ function TabsContent({
|
|
|
2480
2275
|
}
|
|
2481
2276
|
|
|
2482
2277
|
// packages/exponential-ui-react/src/primitives/segmented-control.tsx
|
|
2483
|
-
import { jsx as
|
|
2278
|
+
import { jsx as jsx34, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2484
2279
|
function SegmentedControl({
|
|
2485
2280
|
value,
|
|
2486
2281
|
onValueChange,
|
|
@@ -2491,38 +2286,38 @@ function SegmentedControl({
|
|
|
2491
2286
|
}) {
|
|
2492
2287
|
const triggers = options.map((option) => {
|
|
2493
2288
|
const Glyph = option.icon;
|
|
2494
|
-
return /* @__PURE__ */
|
|
2289
|
+
return /* @__PURE__ */ jsxs15(TabsTrigger, {
|
|
2495
2290
|
value: option.value,
|
|
2496
2291
|
disabled: disabled || option.disabled,
|
|
2497
2292
|
className: SEGMENTED_CONTROL_CLASSES.trigger,
|
|
2498
2293
|
children: [
|
|
2499
|
-
Glyph ? /* @__PURE__ */
|
|
2294
|
+
Glyph ? /* @__PURE__ */ jsx34(Glyph, {
|
|
2500
2295
|
"aria-hidden": true
|
|
2501
2296
|
}) : null,
|
|
2502
2297
|
option.label
|
|
2503
2298
|
]
|
|
2504
2299
|
}, option.value);
|
|
2505
2300
|
});
|
|
2506
|
-
return /* @__PURE__ */
|
|
2301
|
+
return /* @__PURE__ */ jsx34(Tabs, {
|
|
2507
2302
|
"data-slot": "segmented-control",
|
|
2508
2303
|
value,
|
|
2509
2304
|
onValueChange: (next) => onValueChange(next),
|
|
2510
|
-
children: /* @__PURE__ */
|
|
2305
|
+
children: /* @__PURE__ */ jsx34(TabsList, {
|
|
2511
2306
|
className: cn2(fill && SEGMENTED_CONTROL_CLASSES.fill, className),
|
|
2512
2307
|
children: triggers
|
|
2513
2308
|
})
|
|
2514
2309
|
});
|
|
2515
2310
|
}
|
|
2516
2311
|
// packages/exponential-ui-react/src/primitives/select.tsx
|
|
2517
|
-
import { CheckIcon as
|
|
2312
|
+
import { CheckIcon as CheckIcon2, ChevronDownIcon as ChevronDownIcon2, ChevronUpIcon } from "lucide-react";
|
|
2518
2313
|
import { Select as SelectPrimitive } from "radix-ui";
|
|
2519
2314
|
import { SELECT_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
2520
|
-
import { jsx as
|
|
2315
|
+
import { jsx as jsx35, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2521
2316
|
"use client";
|
|
2522
2317
|
function Select({
|
|
2523
2318
|
...props
|
|
2524
2319
|
}) {
|
|
2525
|
-
return /* @__PURE__ */
|
|
2320
|
+
return /* @__PURE__ */ jsx35(SelectPrimitive.Root, {
|
|
2526
2321
|
"data-slot": "select",
|
|
2527
2322
|
...props
|
|
2528
2323
|
});
|
|
@@ -2530,7 +2325,7 @@ function Select({
|
|
|
2530
2325
|
function SelectGroup({
|
|
2531
2326
|
...props
|
|
2532
2327
|
}) {
|
|
2533
|
-
return /* @__PURE__ */
|
|
2328
|
+
return /* @__PURE__ */ jsx35(SelectPrimitive.Group, {
|
|
2534
2329
|
"data-slot": "select-group",
|
|
2535
2330
|
...props
|
|
2536
2331
|
});
|
|
@@ -2538,7 +2333,7 @@ function SelectGroup({
|
|
|
2538
2333
|
function SelectValue({
|
|
2539
2334
|
...props
|
|
2540
2335
|
}) {
|
|
2541
|
-
return /* @__PURE__ */
|
|
2336
|
+
return /* @__PURE__ */ jsx35(SelectPrimitive.Value, {
|
|
2542
2337
|
"data-slot": "select-value",
|
|
2543
2338
|
...props
|
|
2544
2339
|
});
|
|
@@ -2549,16 +2344,16 @@ function SelectTrigger({
|
|
|
2549
2344
|
children,
|
|
2550
2345
|
...props
|
|
2551
2346
|
}) {
|
|
2552
|
-
return /* @__PURE__ */
|
|
2347
|
+
return /* @__PURE__ */ jsxs16(SelectPrimitive.Trigger, {
|
|
2553
2348
|
"data-slot": "select-trigger",
|
|
2554
2349
|
"data-size": size,
|
|
2555
2350
|
className: cn2(SELECT_CLASSES.trigger, className),
|
|
2556
2351
|
...props,
|
|
2557
2352
|
children: [
|
|
2558
2353
|
children,
|
|
2559
|
-
/* @__PURE__ */
|
|
2354
|
+
/* @__PURE__ */ jsx35(SelectPrimitive.Icon, {
|
|
2560
2355
|
asChild: true,
|
|
2561
|
-
children: /* @__PURE__ */
|
|
2356
|
+
children: /* @__PURE__ */ jsx35(ChevronDownIcon2, {
|
|
2562
2357
|
className: SELECT_CLASSES.triggerIcon
|
|
2563
2358
|
})
|
|
2564
2359
|
})
|
|
@@ -2572,20 +2367,20 @@ function SelectContent({
|
|
|
2572
2367
|
align = `center`,
|
|
2573
2368
|
...props
|
|
2574
2369
|
}) {
|
|
2575
|
-
return /* @__PURE__ */
|
|
2576
|
-
children: /* @__PURE__ */
|
|
2370
|
+
return /* @__PURE__ */ jsx35(SelectPrimitive.Portal, {
|
|
2371
|
+
children: /* @__PURE__ */ jsxs16(SelectPrimitive.Content, {
|
|
2577
2372
|
"data-slot": "select-content",
|
|
2578
2373
|
className: cn2(SELECT_CLASSES.content, position === `popper` && SELECT_CLASSES.contentPopper, className),
|
|
2579
2374
|
position,
|
|
2580
2375
|
align,
|
|
2581
2376
|
...props,
|
|
2582
2377
|
children: [
|
|
2583
|
-
/* @__PURE__ */
|
|
2584
|
-
/* @__PURE__ */
|
|
2378
|
+
/* @__PURE__ */ jsx35(SelectScrollUpButton, {}),
|
|
2379
|
+
/* @__PURE__ */ jsx35(SelectPrimitive.Viewport, {
|
|
2585
2380
|
className: cn2(SELECT_CLASSES.viewport, position === `popper` && SELECT_CLASSES.viewportPopper),
|
|
2586
2381
|
children
|
|
2587
2382
|
}),
|
|
2588
|
-
/* @__PURE__ */
|
|
2383
|
+
/* @__PURE__ */ jsx35(SelectScrollDownButton, {})
|
|
2589
2384
|
]
|
|
2590
2385
|
})
|
|
2591
2386
|
});
|
|
@@ -2594,7 +2389,7 @@ function SelectLabel({
|
|
|
2594
2389
|
className,
|
|
2595
2390
|
...props
|
|
2596
2391
|
}) {
|
|
2597
|
-
return /* @__PURE__ */
|
|
2392
|
+
return /* @__PURE__ */ jsx35(SelectPrimitive.Label, {
|
|
2598
2393
|
"data-slot": "select-label",
|
|
2599
2394
|
className: cn2(SELECT_CLASSES.label, className),
|
|
2600
2395
|
...props
|
|
@@ -2605,21 +2400,21 @@ function SelectItem({
|
|
|
2605
2400
|
children,
|
|
2606
2401
|
...props
|
|
2607
2402
|
}) {
|
|
2608
|
-
return /* @__PURE__ */
|
|
2403
|
+
return /* @__PURE__ */ jsxs16(SelectPrimitive.Item, {
|
|
2609
2404
|
"data-slot": "select-item",
|
|
2610
2405
|
className: cn2(SELECT_CLASSES.item, className),
|
|
2611
2406
|
...props,
|
|
2612
2407
|
children: [
|
|
2613
|
-
/* @__PURE__ */
|
|
2408
|
+
/* @__PURE__ */ jsx35("span", {
|
|
2614
2409
|
"data-slot": "select-item-indicator",
|
|
2615
2410
|
className: SELECT_CLASSES.itemIndicator,
|
|
2616
|
-
children: /* @__PURE__ */
|
|
2617
|
-
children: /* @__PURE__ */
|
|
2411
|
+
children: /* @__PURE__ */ jsx35(SelectPrimitive.ItemIndicator, {
|
|
2412
|
+
children: /* @__PURE__ */ jsx35(CheckIcon2, {
|
|
2618
2413
|
className: SELECT_CLASSES.itemCheck
|
|
2619
2414
|
})
|
|
2620
2415
|
})
|
|
2621
2416
|
}),
|
|
2622
|
-
/* @__PURE__ */
|
|
2417
|
+
/* @__PURE__ */ jsx35(SelectPrimitive.ItemText, {
|
|
2623
2418
|
children
|
|
2624
2419
|
})
|
|
2625
2420
|
]
|
|
@@ -2629,7 +2424,7 @@ function SelectSeparator({
|
|
|
2629
2424
|
className,
|
|
2630
2425
|
...props
|
|
2631
2426
|
}) {
|
|
2632
|
-
return /* @__PURE__ */
|
|
2427
|
+
return /* @__PURE__ */ jsx35(SelectPrimitive.Separator, {
|
|
2633
2428
|
"data-slot": "select-separator",
|
|
2634
2429
|
className: cn2(SELECT_CLASSES.separator, className),
|
|
2635
2430
|
...props
|
|
@@ -2639,11 +2434,11 @@ function SelectScrollUpButton({
|
|
|
2639
2434
|
className,
|
|
2640
2435
|
...props
|
|
2641
2436
|
}) {
|
|
2642
|
-
return /* @__PURE__ */
|
|
2437
|
+
return /* @__PURE__ */ jsx35(SelectPrimitive.ScrollUpButton, {
|
|
2643
2438
|
"data-slot": "select-scroll-up-button",
|
|
2644
2439
|
className: cn2(SELECT_CLASSES.scrollButton, className),
|
|
2645
2440
|
...props,
|
|
2646
|
-
children: /* @__PURE__ */
|
|
2441
|
+
children: /* @__PURE__ */ jsx35(ChevronUpIcon, {
|
|
2647
2442
|
className: SELECT_CLASSES.scrollIcon
|
|
2648
2443
|
})
|
|
2649
2444
|
});
|
|
@@ -2652,11 +2447,11 @@ function SelectScrollDownButton({
|
|
|
2652
2447
|
className,
|
|
2653
2448
|
...props
|
|
2654
2449
|
}) {
|
|
2655
|
-
return /* @__PURE__ */
|
|
2450
|
+
return /* @__PURE__ */ jsx35(SelectPrimitive.ScrollDownButton, {
|
|
2656
2451
|
"data-slot": "select-scroll-down-button",
|
|
2657
2452
|
className: cn2(SELECT_CLASSES.scrollButton, className),
|
|
2658
2453
|
...props,
|
|
2659
|
-
children: /* @__PURE__ */
|
|
2454
|
+
children: /* @__PURE__ */ jsx35(ChevronDownIcon2, {
|
|
2660
2455
|
className: SELECT_CLASSES.scrollIcon
|
|
2661
2456
|
})
|
|
2662
2457
|
});
|
|
@@ -2664,7 +2459,7 @@ function SelectScrollDownButton({
|
|
|
2664
2459
|
// packages/exponential-ui-react/src/primitives/separator.tsx
|
|
2665
2460
|
import { Separator as SeparatorPrimitive } from "radix-ui";
|
|
2666
2461
|
import { SEPARATOR_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
2667
|
-
import { jsx as
|
|
2462
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
2668
2463
|
"use client";
|
|
2669
2464
|
function Separator({
|
|
2670
2465
|
className,
|
|
@@ -2672,7 +2467,7 @@ function Separator({
|
|
|
2672
2467
|
decorative = true,
|
|
2673
2468
|
...props
|
|
2674
2469
|
}) {
|
|
2675
|
-
return /* @__PURE__ */
|
|
2470
|
+
return /* @__PURE__ */ jsx36(SeparatorPrimitive.Root, {
|
|
2676
2471
|
"data-slot": "separator",
|
|
2677
2472
|
decorative,
|
|
2678
2473
|
orientation,
|
|
@@ -2682,9 +2477,9 @@ function Separator({
|
|
|
2682
2477
|
}
|
|
2683
2478
|
// packages/exponential-ui-react/src/primitives/skeleton.tsx
|
|
2684
2479
|
import { SKELETON_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
2685
|
-
import { jsx as
|
|
2480
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2686
2481
|
function Skeleton({ className, ...props }) {
|
|
2687
|
-
return /* @__PURE__ */
|
|
2482
|
+
return /* @__PURE__ */ jsx37("div", {
|
|
2688
2483
|
"data-slot": "skeleton",
|
|
2689
2484
|
className: cn2(SKELETON_CLASSES.root, className),
|
|
2690
2485
|
...props
|
|
@@ -2693,14 +2488,14 @@ function Skeleton({ className, ...props }) {
|
|
|
2693
2488
|
// packages/exponential-ui-react/src/primitives/spinner.tsx
|
|
2694
2489
|
import { LoaderCircle } from "lucide-react";
|
|
2695
2490
|
import { SPINNER_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
2696
|
-
import { jsx as
|
|
2491
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2697
2492
|
function Spinner({
|
|
2698
2493
|
size = 10,
|
|
2699
2494
|
label = `Loading`,
|
|
2700
2495
|
className,
|
|
2701
2496
|
...props
|
|
2702
2497
|
}) {
|
|
2703
|
-
return /* @__PURE__ */
|
|
2498
|
+
return /* @__PURE__ */ jsx38(LoaderCircle, {
|
|
2704
2499
|
"data-slot": "spinner",
|
|
2705
2500
|
"data-testid": "feedback-spinner",
|
|
2706
2501
|
"aria-label": label,
|
|
@@ -2714,18 +2509,18 @@ function Spinner({
|
|
|
2714
2509
|
// packages/exponential-ui-react/src/primitives/switch.tsx
|
|
2715
2510
|
import { Switch as SwitchPrimitive } from "radix-ui";
|
|
2716
2511
|
import { SWITCH_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
2717
|
-
import { jsx as
|
|
2512
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
2718
2513
|
function Switch({
|
|
2719
2514
|
className,
|
|
2720
2515
|
size = `default`,
|
|
2721
2516
|
...props
|
|
2722
2517
|
}) {
|
|
2723
|
-
return /* @__PURE__ */
|
|
2518
|
+
return /* @__PURE__ */ jsx39(SwitchPrimitive.Root, {
|
|
2724
2519
|
"data-slot": "switch",
|
|
2725
2520
|
"data-size": size,
|
|
2726
2521
|
className: cn2(SWITCH_CLASSES.root, className),
|
|
2727
2522
|
...props,
|
|
2728
|
-
children: /* @__PURE__ */
|
|
2523
|
+
children: /* @__PURE__ */ jsx39(SwitchPrimitive.Thumb, {
|
|
2729
2524
|
"data-slot": "switch-thumb",
|
|
2730
2525
|
className: cn2(SWITCH_CLASSES.thumb)
|
|
2731
2526
|
})
|
|
@@ -2733,12 +2528,12 @@ function Switch({
|
|
|
2733
2528
|
}
|
|
2734
2529
|
// packages/exponential-ui-react/src/primitives/table.tsx
|
|
2735
2530
|
import { TABLE_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
2736
|
-
import { jsx as
|
|
2531
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
2737
2532
|
function Table({ className, ...props }) {
|
|
2738
|
-
return /* @__PURE__ */
|
|
2533
|
+
return /* @__PURE__ */ jsx40("div", {
|
|
2739
2534
|
"data-slot": "table-container",
|
|
2740
2535
|
className: TABLE_CLASSES.container,
|
|
2741
|
-
children: /* @__PURE__ */
|
|
2536
|
+
children: /* @__PURE__ */ jsx40("table", {
|
|
2742
2537
|
"data-slot": "table",
|
|
2743
2538
|
className: cn2(TABLE_CLASSES.root, className),
|
|
2744
2539
|
...props
|
|
@@ -2746,49 +2541,49 @@ function Table({ className, ...props }) {
|
|
|
2746
2541
|
});
|
|
2747
2542
|
}
|
|
2748
2543
|
function TableHeader({ className, ...props }) {
|
|
2749
|
-
return /* @__PURE__ */
|
|
2544
|
+
return /* @__PURE__ */ jsx40("thead", {
|
|
2750
2545
|
"data-slot": "table-header",
|
|
2751
2546
|
className: cn2(TABLE_CLASSES.header, className),
|
|
2752
2547
|
...props
|
|
2753
2548
|
});
|
|
2754
2549
|
}
|
|
2755
2550
|
function TableBody({ className, ...props }) {
|
|
2756
|
-
return /* @__PURE__ */
|
|
2551
|
+
return /* @__PURE__ */ jsx40("tbody", {
|
|
2757
2552
|
"data-slot": "table-body",
|
|
2758
2553
|
className: cn2(TABLE_CLASSES.body, className),
|
|
2759
2554
|
...props
|
|
2760
2555
|
});
|
|
2761
2556
|
}
|
|
2762
2557
|
function TableFooter({ className, ...props }) {
|
|
2763
|
-
return /* @__PURE__ */
|
|
2558
|
+
return /* @__PURE__ */ jsx40("tfoot", {
|
|
2764
2559
|
"data-slot": "table-footer",
|
|
2765
2560
|
className: cn2(TABLE_CLASSES.footer, className),
|
|
2766
2561
|
...props
|
|
2767
2562
|
});
|
|
2768
2563
|
}
|
|
2769
2564
|
function TableRow({ className, ...props }) {
|
|
2770
|
-
return /* @__PURE__ */
|
|
2565
|
+
return /* @__PURE__ */ jsx40("tr", {
|
|
2771
2566
|
"data-slot": "table-row",
|
|
2772
2567
|
className: cn2(TABLE_CLASSES.row, className),
|
|
2773
2568
|
...props
|
|
2774
2569
|
});
|
|
2775
2570
|
}
|
|
2776
2571
|
function TableHead({ className, ...props }) {
|
|
2777
|
-
return /* @__PURE__ */
|
|
2572
|
+
return /* @__PURE__ */ jsx40("th", {
|
|
2778
2573
|
"data-slot": "table-head",
|
|
2779
2574
|
className: cn2(TABLE_CLASSES.head, className),
|
|
2780
2575
|
...props
|
|
2781
2576
|
});
|
|
2782
2577
|
}
|
|
2783
2578
|
function TableCell({ className, ...props }) {
|
|
2784
|
-
return /* @__PURE__ */
|
|
2579
|
+
return /* @__PURE__ */ jsx40("td", {
|
|
2785
2580
|
"data-slot": "table-cell",
|
|
2786
2581
|
className: cn2(TABLE_CLASSES.cell, className),
|
|
2787
2582
|
...props
|
|
2788
2583
|
});
|
|
2789
2584
|
}
|
|
2790
2585
|
function TableCaption({ className, ...props }) {
|
|
2791
|
-
return /* @__PURE__ */
|
|
2586
|
+
return /* @__PURE__ */ jsx40("caption", {
|
|
2792
2587
|
"data-slot": "table-caption",
|
|
2793
2588
|
className: cn2(TABLE_CLASSES.caption, className),
|
|
2794
2589
|
...props
|
|
@@ -2796,9 +2591,9 @@ function TableCaption({ className, ...props }) {
|
|
|
2796
2591
|
}
|
|
2797
2592
|
// packages/exponential-ui-react/src/primitives/textarea.tsx
|
|
2798
2593
|
import { TEXTAREA_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
2799
|
-
import { jsx as
|
|
2594
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
2800
2595
|
function Textarea({ className, ...props }) {
|
|
2801
|
-
return /* @__PURE__ */
|
|
2596
|
+
return /* @__PURE__ */ jsx41("textarea", {
|
|
2802
2597
|
"data-slot": "textarea",
|
|
2803
2598
|
className: cn2(TEXTAREA_CLASSES.root, className),
|
|
2804
2599
|
...props
|
|
@@ -2816,7 +2611,7 @@ import {
|
|
|
2816
2611
|
toastStackGeometry
|
|
2817
2612
|
} from "@exponential_app/eui/web/primitives";
|
|
2818
2613
|
import { createToastStore as createToastStore2, toastStackGeometry as toastStackGeometry2, toastPlacement as toastPlacement2, TOAST_CONSTANTS, TOAST_KINDS, TOAST_TOUCH_QUERY as TOAST_TOUCH_QUERY2 } from "@exponential_app/eui/web/primitives";
|
|
2819
|
-
import { jsx as
|
|
2614
|
+
import { jsx as jsx42, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2820
2615
|
var KIND_ICONS = {
|
|
2821
2616
|
success: CircleCheck,
|
|
2822
2617
|
error: CircleX,
|
|
@@ -2830,7 +2625,7 @@ function useToasts(store) {
|
|
|
2830
2625
|
}
|
|
2831
2626
|
function Toaster({ store = toastStore, touch, closeLabel = `Close`, className, ...props }) {
|
|
2832
2627
|
const toasts = useToasts(store);
|
|
2833
|
-
const touchQuery =
|
|
2628
|
+
const touchQuery = useMediaQuery2(TOAST_TOUCH_QUERY);
|
|
2834
2629
|
const { placement, anchoredBottom } = toastPlacement(touch ?? touchQuery);
|
|
2835
2630
|
const [expanded, setExpanded] = React10.useState(false);
|
|
2836
2631
|
const [measured, setMeasured] = React10.useState({});
|
|
@@ -2852,13 +2647,13 @@ function Toaster({ store = toastStore, touch, closeLabel = `Close`, className, .
|
|
|
2852
2647
|
setMeasured((prev) => Object.keys(next).length === Object.keys(prev).length && Object.entries(next).every(([k, v]) => prev[k] === v) ? prev : next);
|
|
2853
2648
|
}, [toasts]);
|
|
2854
2649
|
const geometry = toastStackGeometry(toasts.map((t) => t.height ?? measured[t.id] ?? 0), open, anchoredBottom);
|
|
2855
|
-
return /* @__PURE__ */
|
|
2650
|
+
return /* @__PURE__ */ jsx42("section", {
|
|
2856
2651
|
"aria-label": "Notifications",
|
|
2857
2652
|
"data-slot": "toaster",
|
|
2858
2653
|
"data-placement": placement,
|
|
2859
2654
|
className: cn2(TOAST_CLASSES.region, TOAST_CLASSES.regionPlacement[placement], className),
|
|
2860
2655
|
...props,
|
|
2861
|
-
children: /* @__PURE__ */
|
|
2656
|
+
children: /* @__PURE__ */ jsx42("ol", {
|
|
2862
2657
|
"data-slot": "toast-list",
|
|
2863
2658
|
"data-expanded": open ? `true` : `false`,
|
|
2864
2659
|
className: cn2(TOAST_CLASSES.list, TOAST_CLASSES.listPlacement[placement]),
|
|
@@ -2879,7 +2674,7 @@ function Toaster({ store = toastStore, touch, closeLabel = `Close`, className, .
|
|
|
2879
2674
|
const item = geometry.items[i];
|
|
2880
2675
|
const rank = toasts.length - 1 - i;
|
|
2881
2676
|
const Icon = t.kind ? KIND_ICONS[t.kind] : null;
|
|
2882
|
-
return /* @__PURE__ */
|
|
2677
|
+
return /* @__PURE__ */ jsxs17("li", {
|
|
2883
2678
|
ref: (el) => {
|
|
2884
2679
|
if (el)
|
|
2885
2680
|
items.current.set(t.id, el);
|
|
@@ -2898,29 +2693,29 @@ function Toaster({ store = toastStore, touch, closeLabel = `Close`, className, .
|
|
|
2898
2693
|
className: cn2(TOAST_CLASSES.toast, TOAST_CLASSES.toastOrigin[anchoredBottom ? `bottom` : `top`]),
|
|
2899
2694
|
style: { "--offset": `${item.offset}px`, "--scale": `${item.scale}`, zIndex: i + 1 },
|
|
2900
2695
|
children: [
|
|
2901
|
-
Icon && /* @__PURE__ */
|
|
2696
|
+
Icon && /* @__PURE__ */ jsx42("div", {
|
|
2902
2697
|
className: TOAST_CLASSES.iconSlot,
|
|
2903
|
-
children: /* @__PURE__ */
|
|
2698
|
+
children: /* @__PURE__ */ jsx42(Icon, {
|
|
2904
2699
|
"data-toast-kind": t.kind,
|
|
2905
2700
|
className: cn2(TOAST_CLASSES.icon, TOAST_CLASSES.kindIcon[t.kind])
|
|
2906
2701
|
})
|
|
2907
2702
|
}),
|
|
2908
|
-
/* @__PURE__ */
|
|
2703
|
+
/* @__PURE__ */ jsxs17("div", {
|
|
2909
2704
|
className: TOAST_CLASSES.content,
|
|
2910
2705
|
children: [
|
|
2911
|
-
/* @__PURE__ */
|
|
2706
|
+
/* @__PURE__ */ jsx42("div", {
|
|
2912
2707
|
"data-slot": "toast-title",
|
|
2913
2708
|
className: TOAST_CLASSES.title,
|
|
2914
2709
|
children: t.title
|
|
2915
2710
|
}),
|
|
2916
|
-
t.description !== undefined && /* @__PURE__ */
|
|
2711
|
+
t.description !== undefined && /* @__PURE__ */ jsx42("div", {
|
|
2917
2712
|
"data-slot": "toast-description",
|
|
2918
2713
|
className: TOAST_CLASSES.description,
|
|
2919
2714
|
children: t.description
|
|
2920
2715
|
})
|
|
2921
2716
|
]
|
|
2922
2717
|
}),
|
|
2923
|
-
t.action && /* @__PURE__ */
|
|
2718
|
+
t.action && /* @__PURE__ */ jsx42("button", {
|
|
2924
2719
|
type: "button",
|
|
2925
2720
|
"data-slot": "toast-action",
|
|
2926
2721
|
className: TOAST_CLASSES.action,
|
|
@@ -2930,13 +2725,13 @@ function Toaster({ store = toastStore, touch, closeLabel = `Close`, className, .
|
|
|
2930
2725
|
},
|
|
2931
2726
|
children: t.action.label
|
|
2932
2727
|
}),
|
|
2933
|
-
/* @__PURE__ */
|
|
2728
|
+
/* @__PURE__ */ jsx42("button", {
|
|
2934
2729
|
type: "button",
|
|
2935
2730
|
"data-slot": "toast-close",
|
|
2936
2731
|
"aria-label": closeLabel,
|
|
2937
2732
|
className: TOAST_CLASSES.close,
|
|
2938
2733
|
onClick: () => store.dismiss(t.id),
|
|
2939
|
-
children: /* @__PURE__ */
|
|
2734
|
+
children: /* @__PURE__ */ jsx42(XIcon3, {})
|
|
2940
2735
|
})
|
|
2941
2736
|
]
|
|
2942
2737
|
}, t.id);
|
|
@@ -2947,12 +2742,12 @@ function Toaster({ store = toastStore, touch, closeLabel = `Close`, className, .
|
|
|
2947
2742
|
// packages/exponential-ui-react/src/primitives/tooltip.tsx
|
|
2948
2743
|
import { Tooltip as TooltipPrimitive } from "radix-ui";
|
|
2949
2744
|
import { TOOLTIP_CLASSES } from "@exponential_app/eui/web/primitives";
|
|
2950
|
-
import { jsx as
|
|
2745
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
2951
2746
|
function TooltipProvider({
|
|
2952
2747
|
delayDuration = 0,
|
|
2953
2748
|
...props
|
|
2954
2749
|
}) {
|
|
2955
|
-
return /* @__PURE__ */
|
|
2750
|
+
return /* @__PURE__ */ jsx43(TooltipPrimitive.Provider, {
|
|
2956
2751
|
"data-slot": "tooltip-provider",
|
|
2957
2752
|
delayDuration,
|
|
2958
2753
|
...props
|
|
@@ -2961,7 +2756,7 @@ function TooltipProvider({
|
|
|
2961
2756
|
function Tooltip({
|
|
2962
2757
|
...props
|
|
2963
2758
|
}) {
|
|
2964
|
-
return /* @__PURE__ */
|
|
2759
|
+
return /* @__PURE__ */ jsx43(TooltipPrimitive.Root, {
|
|
2965
2760
|
"data-slot": "tooltip",
|
|
2966
2761
|
...props
|
|
2967
2762
|
});
|
|
@@ -2969,7 +2764,7 @@ function Tooltip({
|
|
|
2969
2764
|
function TooltipTrigger({
|
|
2970
2765
|
...props
|
|
2971
2766
|
}) {
|
|
2972
|
-
return /* @__PURE__ */
|
|
2767
|
+
return /* @__PURE__ */ jsx43(TooltipPrimitive.Trigger, {
|
|
2973
2768
|
"data-slot": "tooltip-trigger",
|
|
2974
2769
|
...props
|
|
2975
2770
|
});
|
|
@@ -2980,8 +2775,8 @@ function TooltipContent({
|
|
|
2980
2775
|
children,
|
|
2981
2776
|
...props
|
|
2982
2777
|
}) {
|
|
2983
|
-
return /* @__PURE__ */
|
|
2984
|
-
children: /* @__PURE__ */
|
|
2778
|
+
return /* @__PURE__ */ jsx43(TooltipPrimitive.Portal, {
|
|
2779
|
+
children: /* @__PURE__ */ jsx43(TooltipPrimitive.Content, {
|
|
2985
2780
|
"data-slot": "tooltip-content",
|
|
2986
2781
|
sideOffset,
|
|
2987
2782
|
className: cn2(TOOLTIP_CLASSES.content, className),
|
|
@@ -3024,11 +2819,11 @@ import {
|
|
|
3024
2819
|
voiceWaveName,
|
|
3025
2820
|
voiceWaveQuiet
|
|
3026
2821
|
} from "@exponential_app/eui/web/primitives";
|
|
3027
|
-
import { jsx as
|
|
2822
|
+
import { jsx as jsx44, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3028
2823
|
var hasChild = (c) => c !== undefined && c !== null && c !== false && !(Array.isArray(c) && c.length === 0);
|
|
3029
2824
|
function VoiceWave({ activity = `idle`, level = 0, bands, size = `md`, label, className, children }) {
|
|
3030
2825
|
const px = VOICE_WAVE_SIZE_PX[size] ?? VOICE_WAVE_SIZE_PX.md;
|
|
3031
|
-
const reducedMotion =
|
|
2826
|
+
const reducedMotion = useMediaQuery2(`(prefers-reduced-motion: reduce)`);
|
|
3032
2827
|
const input = { size: px, activity, level, bands, reducedMotion };
|
|
3033
2828
|
const latest = useRef9(input);
|
|
3034
2829
|
latest.current = input;
|
|
@@ -3051,7 +2846,7 @@ function VoiceWave({ activity = `idle`, level = 0, bands, size = `md`, label, cl
|
|
|
3051
2846
|
const wave = voiceWave({ ...input, elapsed: elapsed.current });
|
|
3052
2847
|
const quiet = voiceWaveQuiet(activity);
|
|
3053
2848
|
const name = voiceWaveName(label, activity);
|
|
3054
|
-
return /* @__PURE__ */
|
|
2849
|
+
return /* @__PURE__ */ jsxs18("span", {
|
|
3055
2850
|
"data-slot": "voice-wave",
|
|
3056
2851
|
"data-activity": activity,
|
|
3057
2852
|
"data-size": size,
|
|
@@ -3060,13 +2855,13 @@ function VoiceWave({ activity = `idle`, level = 0, bands, size = `md`, label, cl
|
|
|
3060
2855
|
"aria-hidden": name ? undefined : true,
|
|
3061
2856
|
className: cn2(VOICE_WAVE_CLASSES.root, VOICE_WAVE_CLASSES.size[size], quiet && VOICE_WAVE_CLASSES.quiet, className),
|
|
3062
2857
|
children: [
|
|
3063
|
-
/* @__PURE__ */
|
|
2858
|
+
/* @__PURE__ */ jsx44("svg", {
|
|
3064
2859
|
viewBox: `0 0 ${px} ${px}`,
|
|
3065
2860
|
width: px,
|
|
3066
2861
|
height: px,
|
|
3067
2862
|
"aria-hidden": true,
|
|
3068
2863
|
className: VOICE_WAVE_CLASSES.svg,
|
|
3069
|
-
children: wave.rings.map((ring, k) => /* @__PURE__ */
|
|
2864
|
+
children: wave.rings.map((ring, k) => /* @__PURE__ */ jsx44("path", {
|
|
3070
2865
|
ref: (el) => {
|
|
3071
2866
|
paths.current[k] = el;
|
|
3072
2867
|
},
|
|
@@ -3082,7 +2877,7 @@ function VoiceWave({ activity = `idle`, level = 0, bands, size = `md`, label, cl
|
|
|
3082
2877
|
strokeLinejoin: "round"
|
|
3083
2878
|
}, ring.part))
|
|
3084
2879
|
}),
|
|
3085
|
-
present ? /* @__PURE__ */
|
|
2880
|
+
present ? /* @__PURE__ */ jsx44("span", {
|
|
3086
2881
|
ref: childEl,
|
|
3087
2882
|
"data-slot": "voice-wave-child",
|
|
3088
2883
|
"aria-hidden": wave.childSize > 0 ? undefined : true,
|
|
@@ -3120,7 +2915,7 @@ export {
|
|
|
3120
2915
|
BreadcrumbList,
|
|
3121
2916
|
BreadcrumbPage,
|
|
3122
2917
|
BreadcrumbSeparator,
|
|
3123
|
-
Button,
|
|
2918
|
+
Button2 as Button,
|
|
3124
2919
|
CAROUSEL_GEOMETRY,
|
|
3125
2920
|
CODE_TOKEN_CLASS,
|
|
3126
2921
|
Calendar,
|
|
@@ -3176,21 +2971,21 @@ export {
|
|
|
3176
2971
|
DisclosureHeader,
|
|
3177
2972
|
DockCard,
|
|
3178
2973
|
DockPile,
|
|
3179
|
-
DropdownMenu,
|
|
3180
|
-
DropdownMenuCheckboxItem,
|
|
3181
|
-
DropdownMenuContent,
|
|
3182
|
-
DropdownMenuGroup,
|
|
3183
|
-
DropdownMenuItem,
|
|
3184
|
-
DropdownMenuLabel,
|
|
3185
|
-
DropdownMenuPortal,
|
|
3186
|
-
DropdownMenuRadioGroup,
|
|
3187
|
-
DropdownMenuRadioItem,
|
|
3188
|
-
DropdownMenuSeparator,
|
|
3189
|
-
DropdownMenuShortcut,
|
|
3190
|
-
DropdownMenuSub,
|
|
3191
|
-
DropdownMenuSubContent,
|
|
3192
|
-
DropdownMenuSubTrigger,
|
|
3193
|
-
DropdownMenuTrigger,
|
|
2974
|
+
DropdownMenu2 as DropdownMenu,
|
|
2975
|
+
DropdownMenuCheckboxItem2 as DropdownMenuCheckboxItem,
|
|
2976
|
+
DropdownMenuContent2 as DropdownMenuContent,
|
|
2977
|
+
DropdownMenuGroup2 as DropdownMenuGroup,
|
|
2978
|
+
DropdownMenuItem2 as DropdownMenuItem,
|
|
2979
|
+
DropdownMenuLabel2 as DropdownMenuLabel,
|
|
2980
|
+
DropdownMenuPortal2 as DropdownMenuPortal,
|
|
2981
|
+
DropdownMenuRadioGroup2 as DropdownMenuRadioGroup,
|
|
2982
|
+
DropdownMenuRadioItem2 as DropdownMenuRadioItem,
|
|
2983
|
+
DropdownMenuSeparator2 as DropdownMenuSeparator,
|
|
2984
|
+
DropdownMenuShortcut2 as DropdownMenuShortcut,
|
|
2985
|
+
DropdownMenuSub2 as DropdownMenuSub,
|
|
2986
|
+
DropdownMenuSubContent2 as DropdownMenuSubContent,
|
|
2987
|
+
DropdownMenuSubTrigger2 as DropdownMenuSubTrigger,
|
|
2988
|
+
DropdownMenuTrigger2 as DropdownMenuTrigger,
|
|
3194
2989
|
EMPTY_STATE_SIZES,
|
|
3195
2990
|
EmptyCta,
|
|
3196
2991
|
EmptyState,
|
|
@@ -3292,9 +3087,12 @@ export {
|
|
|
3292
3087
|
TooltipProvider,
|
|
3293
3088
|
TooltipTrigger,
|
|
3294
3089
|
VoiceWave,
|
|
3090
|
+
ZOOMABLE_IMAGE_STRINGS2 as ZOOMABLE_IMAGE_STRINGS,
|
|
3091
|
+
ZOOM_MATH2 as ZOOM_MATH,
|
|
3092
|
+
ZoomableImage2 as ZoomableImage,
|
|
3295
3093
|
alertVariants,
|
|
3296
3094
|
avatarHueIndex,
|
|
3297
|
-
buttonVariants,
|
|
3095
|
+
buttonVariants2 as buttonVariants,
|
|
3298
3096
|
carouselCounterText2 as carouselCounterText,
|
|
3299
3097
|
choiceColumns2 as choiceColumns,
|
|
3300
3098
|
choiceToggle2 as choiceToggle,
|
|
@@ -3314,10 +3112,11 @@ export {
|
|
|
3314
3112
|
toastStackGeometry2 as toastStackGeometry,
|
|
3315
3113
|
toastStore,
|
|
3316
3114
|
useIsMobile,
|
|
3317
|
-
useMediaQuery,
|
|
3115
|
+
useMediaQuery2 as useMediaQuery,
|
|
3318
3116
|
useSheetDrag,
|
|
3319
|
-
useSheetDragHandleProps
|
|
3117
|
+
useSheetDragHandleProps,
|
|
3118
|
+
useZoomableImage2 as useZoomableImage
|
|
3320
3119
|
};
|
|
3321
3120
|
|
|
3322
|
-
//# debugId=
|
|
3121
|
+
//# debugId=A2DF99790241EFFB64756E2164756E21
|
|
3323
3122
|
//# sourceMappingURL=index.js.map
|