@dxos/react-ui 0.3.9-main.e6215fc → 0.3.9-main.ef334cd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/index.mjs +268 -384
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/components/AnchoredOverflow/AnchoredOverflow.d.ts.map +1 -1
- package/dist/types/src/components/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/types/src/components/Input/Input.d.ts +2 -2
- package/dist/types/src/components/Input/Input.stories.d.ts +1 -1
- package/dist/types/src/components/Input/Input.stories.d.ts.map +1 -1
- package/dist/types/src/components/Lists/List.d.ts.map +1 -0
- package/dist/types/src/components/Lists/List.stories.d.ts.map +1 -0
- package/dist/types/src/components/Lists/Tree.d.ts.map +1 -0
- package/dist/types/src/components/Lists/Tree.stories.d.ts.map +1 -0
- package/dist/types/src/components/Lists/index.d.ts.map +1 -0
- package/dist/types/src/components/Main/Main.d.ts +2 -2
- package/dist/types/src/components/Status/Status.d.ts +10 -0
- package/dist/types/src/components/Status/Status.d.ts.map +1 -0
- package/dist/types/src/components/Status/Status.stories.d.ts +12 -0
- package/dist/types/src/components/Status/Status.stories.d.ts.map +1 -0
- package/dist/types/src/components/Status/index.d.ts +2 -0
- package/dist/types/src/components/Status/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +2 -4
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/components/AnchoredOverflow/AnchoredOverflow.tsx +12 -2
- package/src/components/Breadcrumb/Breadcrumb.tsx +9 -1
- package/src/components/Input/Input.stories.tsx +19 -2
- package/src/components/Status/Status.stories.tsx +33 -0
- package/src/components/Status/Status.tsx +38 -0
- package/src/components/{Card → Status}/index.ts +1 -1
- package/src/components/index.ts +2 -4
- package/dist/types/src/components/Card/Card.d.ts +0 -52
- package/dist/types/src/components/Card/Card.d.ts.map +0 -1
- package/dist/types/src/components/Card/Card.stories.d.ts +0 -56
- package/dist/types/src/components/Card/Card.stories.d.ts.map +0 -1
- package/dist/types/src/components/Card/index.d.ts +0 -2
- package/dist/types/src/components/Card/index.d.ts.map +0 -1
- package/dist/types/src/components/Center/Center.d.ts +0 -4
- package/dist/types/src/components/Center/Center.d.ts.map +0 -1
- package/dist/types/src/components/Center/Center.stories.d.ts +0 -11
- package/dist/types/src/components/Center/Center.stories.d.ts.map +0 -1
- package/dist/types/src/components/Center/index.d.ts +0 -2
- package/dist/types/src/components/Center/index.d.ts.map +0 -1
- package/dist/types/src/components/List/List.d.ts.map +0 -1
- package/dist/types/src/components/List/List.stories.d.ts.map +0 -1
- package/dist/types/src/components/List/Tree.d.ts.map +0 -1
- package/dist/types/src/components/List/Tree.stories.d.ts.map +0 -1
- package/dist/types/src/components/List/index.d.ts.map +0 -1
- package/dist/types/src/components/ProgressBar/ProgressBar.d.ts +0 -7
- package/dist/types/src/components/ProgressBar/ProgressBar.d.ts.map +0 -1
- package/dist/types/src/components/ProgressBar/ProgressBar.stories.d.ts +0 -12
- package/dist/types/src/components/ProgressBar/ProgressBar.stories.d.ts.map +0 -1
- package/dist/types/src/components/ProgressBar/index.d.ts +0 -2
- package/dist/types/src/components/ProgressBar/index.d.ts.map +0 -1
- package/src/components/Card/Card.stories.tsx +0 -220
- package/src/components/Card/Card.tsx +0 -147
- package/src/components/Center/Center.stories.tsx +0 -18
- package/src/components/Center/Center.tsx +0 -16
- package/src/components/Center/index.ts +0 -5
- package/src/components/ProgressBar/ProgressBar.stories.tsx +0 -33
- package/src/components/ProgressBar/ProgressBar.tsx +0 -29
- package/src/components/ProgressBar/index.ts +0 -5
- /package/dist/types/src/components/{List → Lists}/List.d.ts +0 -0
- /package/dist/types/src/components/{List → Lists}/List.stories.d.ts +0 -0
- /package/dist/types/src/components/{List → Lists}/Tree.d.ts +0 -0
- /package/dist/types/src/components/{List → Lists}/Tree.stories.d.ts +0 -0
- /package/dist/types/src/components/{List → Lists}/index.d.ts +0 -0
- /package/src/components/{List → Lists}/List.stories.tsx +0 -0
- /package/src/components/{List → Lists}/List.tsx +0 -0
- /package/src/components/{List → Lists}/Tree.stories.tsx +0 -0
- /package/src/components/{List → Lists}/Tree.tsx +0 -0
- /package/src/components/{List → Lists}/index.ts +0 -0
|
@@ -109,6 +109,7 @@ var AnchoredOverflowRoot = /* @__PURE__ */ forwardRef(({ asChild, classNames, ch
|
|
|
109
109
|
const { tx } = useThemeContext();
|
|
110
110
|
const Root3 = asChild ? Slot : Primitive.div;
|
|
111
111
|
return /* @__PURE__ */ React2.createElement(Root3, {
|
|
112
|
+
role: "none",
|
|
112
113
|
...props,
|
|
113
114
|
className: tx("anchoredOverflow.root", "overflow-anchored", {}, classNames),
|
|
114
115
|
ref: forwardedRef
|
|
@@ -118,6 +119,7 @@ var AnchoredOverflowAnchor = /* @__PURE__ */ forwardRef(({ asChild, classNames,
|
|
|
118
119
|
const { tx } = useThemeContext();
|
|
119
120
|
const Root3 = asChild ? Slot : Primitive.div;
|
|
120
121
|
return /* @__PURE__ */ React2.createElement(Root3, {
|
|
122
|
+
role: "none",
|
|
121
123
|
...props,
|
|
122
124
|
className: tx("anchoredOverflow.anchor", "overflow-anchor", {}, classNames),
|
|
123
125
|
ref: forwardedRef
|
|
@@ -422,6 +424,7 @@ var BreadcrumbList = /* @__PURE__ */ forwardRef5(({ asChild, classNames, ...prop
|
|
|
422
424
|
const { tx } = useThemeContext();
|
|
423
425
|
const Root3 = asChild ? Slot4 : Primitive4.ol;
|
|
424
426
|
return /* @__PURE__ */ React6.createElement(Root3, {
|
|
427
|
+
role: "list",
|
|
425
428
|
...props,
|
|
426
429
|
className: tx("breadcrumb.list", "breadcrumb__list", {}, classNames),
|
|
427
430
|
ref: forwardedRef
|
|
@@ -431,6 +434,7 @@ var BreadcrumbListItem = /* @__PURE__ */ forwardRef5(({ asChild, classNames, ...
|
|
|
431
434
|
const { tx } = useThemeContext();
|
|
432
435
|
const Root3 = asChild ? Slot4 : Primitive4.li;
|
|
433
436
|
return /* @__PURE__ */ React6.createElement(Root3, {
|
|
437
|
+
role: "listitem",
|
|
434
438
|
...props,
|
|
435
439
|
className: tx("breadcrumb.listItem", "breadcrumb__list__item", {}, classNames),
|
|
436
440
|
ref: forwardedRef
|
|
@@ -564,14 +568,9 @@ var ToggleGroupItem = /* @__PURE__ */ forwardRef8(({ variant, elevation, density
|
|
|
564
568
|
}));
|
|
565
569
|
});
|
|
566
570
|
|
|
567
|
-
// packages/ui/react-ui/src/components/
|
|
568
|
-
import {
|
|
569
|
-
import
|
|
570
|
-
|
|
571
|
-
// packages/ui/react-ui/src/components/DropdownMenu/DropdownMenu.tsx
|
|
572
|
-
import { Root as DropdownMenuRootPrimitive, DropdownMenuTrigger as DropdownMenuTriggerPrimitive, DropdownMenuPortal as DropdownMenuPortalPrimitive, DropdownMenuContent as DropdownMenuContentPrimitive, DropdownMenuArrow as DropdownMenuArrowPrimitive, DropdownMenuGroup as DropdownMenuGroupPrimitive, DropdownMenuItem as DropdownMenuItemPrimitive, DropdownMenuCheckboxItem as DropdownMenuCheckboxItemPrimitive, DropdownMenuItemIndicator as DropdownMenuItemIndicatorPrimitive, DropdownMenuSeparator as DropdownMenuSeparatorPrimitive, DropdownMenuLabel as DropdownMenuLabelPrimitive } from "@radix-ui/react-dropdown-menu";
|
|
573
|
-
import { Primitive as Primitive6 } from "@radix-ui/react-primitive";
|
|
574
|
-
import { Slot as Slot6 } from "@radix-ui/react-slot";
|
|
571
|
+
// packages/ui/react-ui/src/components/Dialogs/Dialog.tsx
|
|
572
|
+
import { createContext as createContext5 } from "@radix-ui/react-context";
|
|
573
|
+
import { Root as DialogRootPrimitive, DialogTrigger as DialogTriggerPrimitive, DialogPortal as DialogPortalPrimitive, DialogOverlay as DialogOverlayPrimitive, DialogTitle as DialogTitlePrimitive, DialogDescription as DialogDescriptionPrimitive, DialogClose as DialogClosePrimitive, DialogContent as DialogContentPrimitive } from "@radix-ui/react-dialog";
|
|
575
574
|
import React11, { forwardRef as forwardRef9 } from "react";
|
|
576
575
|
|
|
577
576
|
// packages/ui/react-ui/src/components/ElevationProvider/ElevationProvider.tsx
|
|
@@ -585,215 +584,13 @@ var ElevationProvider = ({ elevation, children }) => /* @__PURE__ */ React10.cre
|
|
|
585
584
|
}
|
|
586
585
|
}, children);
|
|
587
586
|
|
|
588
|
-
// packages/ui/react-ui/src/components/DropdownMenu/DropdownMenu.tsx
|
|
589
|
-
var DropdownMenuRoot = DropdownMenuRootPrimitive;
|
|
590
|
-
var DropdownMenuTrigger = DropdownMenuTriggerPrimitive;
|
|
591
|
-
var DropdownMenuPortal = DropdownMenuPortalPrimitive;
|
|
592
|
-
var DropdownMenuContent = /* @__PURE__ */ forwardRef9(({ classNames, children, ...props }, forwardedRef) => {
|
|
593
|
-
const { tx } = useThemeContext();
|
|
594
|
-
return /* @__PURE__ */ React11.createElement(DropdownMenuContentPrimitive, {
|
|
595
|
-
sideOffset: 4,
|
|
596
|
-
collisionPadding: 8,
|
|
597
|
-
...props,
|
|
598
|
-
className: tx("dropdownMenu.content", "dropdown-menu", {}, classNames),
|
|
599
|
-
ref: forwardedRef
|
|
600
|
-
}, /* @__PURE__ */ React11.createElement(ElevationProvider, {
|
|
601
|
-
elevation: "chrome"
|
|
602
|
-
}, children));
|
|
603
|
-
});
|
|
604
|
-
var DropdownMenuViewport = /* @__PURE__ */ forwardRef9(({ classNames, asChild, children, ...props }, forwardedRef) => {
|
|
605
|
-
const { tx } = useThemeContext();
|
|
606
|
-
const Root3 = asChild ? Slot6 : Primitive6.div;
|
|
607
|
-
return /* @__PURE__ */ React11.createElement(Root3, {
|
|
608
|
-
...props,
|
|
609
|
-
className: tx("dropdownMenu.viewport", "dropdown-menu__viewport", {}, classNames),
|
|
610
|
-
ref: forwardedRef
|
|
611
|
-
}, children);
|
|
612
|
-
});
|
|
613
|
-
var DropdownMenuArrow = /* @__PURE__ */ forwardRef9(({ classNames, ...props }, forwardedRef) => {
|
|
614
|
-
const { tx } = useThemeContext();
|
|
615
|
-
return /* @__PURE__ */ React11.createElement(DropdownMenuArrowPrimitive, {
|
|
616
|
-
...props,
|
|
617
|
-
className: tx("dropdownMenu.arrow", "dropdown-menu__arrow", {}, classNames),
|
|
618
|
-
ref: forwardedRef
|
|
619
|
-
});
|
|
620
|
-
});
|
|
621
|
-
var DropdownMenuGroup = DropdownMenuGroupPrimitive;
|
|
622
|
-
var DropdownMenuItemIndicator = DropdownMenuItemIndicatorPrimitive;
|
|
623
|
-
var DropdownMenuItem = /* @__PURE__ */ forwardRef9(({ classNames, ...props }, forwardedRef) => {
|
|
624
|
-
const { tx } = useThemeContext();
|
|
625
|
-
return /* @__PURE__ */ React11.createElement(DropdownMenuItemPrimitive, {
|
|
626
|
-
...props,
|
|
627
|
-
className: tx("dropdownMenu.item", "dropdown-menu__item", {}, classNames),
|
|
628
|
-
ref: forwardedRef
|
|
629
|
-
});
|
|
630
|
-
});
|
|
631
|
-
var DropdownMenuCheckboxItem = /* @__PURE__ */ forwardRef9(({ classNames, ...props }, forwardedRef) => {
|
|
632
|
-
const { tx } = useThemeContext();
|
|
633
|
-
return /* @__PURE__ */ React11.createElement(DropdownMenuCheckboxItemPrimitive, {
|
|
634
|
-
...props,
|
|
635
|
-
className: tx("dropdownMenu.item", "dropdown-menu__item--checkbox", {}, classNames),
|
|
636
|
-
ref: forwardedRef
|
|
637
|
-
});
|
|
638
|
-
});
|
|
639
|
-
var DropdownMenuSeparator = /* @__PURE__ */ forwardRef9(({ classNames, ...props }, forwardedRef) => {
|
|
640
|
-
const { tx } = useThemeContext();
|
|
641
|
-
return /* @__PURE__ */ React11.createElement(DropdownMenuSeparatorPrimitive, {
|
|
642
|
-
...props,
|
|
643
|
-
className: tx("dropdownMenu.separator", "dropdown-menu__item", {}, classNames),
|
|
644
|
-
ref: forwardedRef
|
|
645
|
-
});
|
|
646
|
-
});
|
|
647
|
-
var DropdownMenuGroupLabel = /* @__PURE__ */ forwardRef9(({ classNames, ...props }, forwardedRef) => {
|
|
648
|
-
const { tx } = useThemeContext();
|
|
649
|
-
return /* @__PURE__ */ React11.createElement(DropdownMenuLabelPrimitive, {
|
|
650
|
-
...props,
|
|
651
|
-
className: tx("dropdownMenu.groupLabel", "dropdown-menu__group__label", {}, classNames),
|
|
652
|
-
ref: forwardedRef
|
|
653
|
-
});
|
|
654
|
-
});
|
|
655
|
-
var DropdownMenu = {
|
|
656
|
-
Root: DropdownMenuRoot,
|
|
657
|
-
Trigger: DropdownMenuTrigger,
|
|
658
|
-
Portal: DropdownMenuPortal,
|
|
659
|
-
Content: DropdownMenuContent,
|
|
660
|
-
Viewport: DropdownMenuViewport,
|
|
661
|
-
Arrow: DropdownMenuArrow,
|
|
662
|
-
Group: DropdownMenuGroup,
|
|
663
|
-
Item: DropdownMenuItem,
|
|
664
|
-
CheckboxItem: DropdownMenuCheckboxItem,
|
|
665
|
-
ItemIndicator: DropdownMenuItemIndicator,
|
|
666
|
-
Separator: DropdownMenuSeparator,
|
|
667
|
-
GroupLabel: DropdownMenuGroupLabel
|
|
668
|
-
};
|
|
669
|
-
|
|
670
|
-
// packages/ui/react-ui/src/components/Card/Card.tsx
|
|
671
|
-
var CardRoot = /* @__PURE__ */ forwardRef10(({ grow, square, noPadding, classNames, children, ...props }, forwardedRef) => {
|
|
672
|
-
const { tx } = useThemeContext();
|
|
673
|
-
return /* @__PURE__ */ React12.createElement("div", {
|
|
674
|
-
...props,
|
|
675
|
-
ref: forwardedRef,
|
|
676
|
-
className: tx("card.root", "card", {
|
|
677
|
-
grow,
|
|
678
|
-
square,
|
|
679
|
-
noPadding
|
|
680
|
-
}, classNames)
|
|
681
|
-
}, children);
|
|
682
|
-
});
|
|
683
|
-
var CardHeader = ({ floating, classNames, children, ...props }) => {
|
|
684
|
-
const { tx } = useThemeContext();
|
|
685
|
-
return /* @__PURE__ */ React12.createElement("div", {
|
|
686
|
-
...props,
|
|
687
|
-
className: tx("card.header", "card", {
|
|
688
|
-
floating
|
|
689
|
-
}, classNames)
|
|
690
|
-
}, children);
|
|
691
|
-
};
|
|
692
|
-
var CardTitle = ({ center, title, classNames, ...props }) => {
|
|
693
|
-
const { tx } = useThemeContext();
|
|
694
|
-
return /* @__PURE__ */ React12.createElement("div", {
|
|
695
|
-
...props,
|
|
696
|
-
className: tx("card.title", "card", {
|
|
697
|
-
center
|
|
698
|
-
}, classNames)
|
|
699
|
-
}, title);
|
|
700
|
-
};
|
|
701
|
-
var CardDragHandle = ({ position, classNames, ...props }) => {
|
|
702
|
-
const { tx } = useThemeContext();
|
|
703
|
-
const density = useDensityContext();
|
|
704
|
-
return /* @__PURE__ */ React12.createElement("div", {
|
|
705
|
-
...props,
|
|
706
|
-
className: tx("card.dragHandle", "card", {
|
|
707
|
-
density,
|
|
708
|
-
position
|
|
709
|
-
}, classNames)
|
|
710
|
-
}, /* @__PURE__ */ React12.createElement(DotsSixVertical, {
|
|
711
|
-
className: tx("card.dragHandleIcon", "card")
|
|
712
|
-
}));
|
|
713
|
-
};
|
|
714
|
-
var CardEndcap = ({ Icon: Icon2, position, classNames, ...props }) => {
|
|
715
|
-
const { tx } = useThemeContext();
|
|
716
|
-
const density = useDensityContext();
|
|
717
|
-
return /* @__PURE__ */ React12.createElement("div", {
|
|
718
|
-
...props,
|
|
719
|
-
className: tx("card.menu", "card", {
|
|
720
|
-
density,
|
|
721
|
-
position
|
|
722
|
-
}, classNames)
|
|
723
|
-
}, /* @__PURE__ */ React12.createElement(Icon2, {
|
|
724
|
-
className: tx("card.menuIcon", "card")
|
|
725
|
-
}));
|
|
726
|
-
};
|
|
727
|
-
var CardMenu = /* @__PURE__ */ forwardRef10(({ children, position, classNames, ...props }, forwardRef1) => {
|
|
728
|
-
const { tx } = useThemeContext();
|
|
729
|
-
const density = useDensityContext();
|
|
730
|
-
return /* @__PURE__ */ React12.createElement("div", {
|
|
731
|
-
...props,
|
|
732
|
-
className: tx("card.menu", "card", {
|
|
733
|
-
density,
|
|
734
|
-
position
|
|
735
|
-
}, classNames),
|
|
736
|
-
ref: forwardRef1
|
|
737
|
-
}, /* @__PURE__ */ React12.createElement(DropdownMenu.Root, null, /* @__PURE__ */ React12.createElement(DropdownMenu.Trigger, {
|
|
738
|
-
asChild: true
|
|
739
|
-
}, /* @__PURE__ */ React12.createElement(DotsThreeVertical, {
|
|
740
|
-
className: tx("card.menuIcon", "card", {})
|
|
741
|
-
})), /* @__PURE__ */ React12.createElement(DropdownMenu.Content, null, /* @__PURE__ */ React12.createElement(DropdownMenu.Viewport, null, children))));
|
|
742
|
-
});
|
|
743
|
-
var CardBody = ({ gutter, classNames, children, ...props }) => {
|
|
744
|
-
const { tx } = useThemeContext();
|
|
745
|
-
const density = useDensityContext();
|
|
746
|
-
return /* @__PURE__ */ React12.createElement("div", {
|
|
747
|
-
...props,
|
|
748
|
-
className: tx("card.body", "card", {
|
|
749
|
-
density,
|
|
750
|
-
gutter
|
|
751
|
-
}, classNames)
|
|
752
|
-
}, children);
|
|
753
|
-
};
|
|
754
|
-
var CardMedia = ({ src, contain, classNames, ...props }) => {
|
|
755
|
-
const { tx } = useThemeContext();
|
|
756
|
-
return /* @__PURE__ */ React12.createElement("div", {
|
|
757
|
-
className: "flex grow overflow-hidden"
|
|
758
|
-
}, /* @__PURE__ */ React12.createElement("img", {
|
|
759
|
-
...props,
|
|
760
|
-
className: tx("card.media", "card", {
|
|
761
|
-
contain
|
|
762
|
-
}, classNames),
|
|
763
|
-
src
|
|
764
|
-
}));
|
|
765
|
-
};
|
|
766
|
-
var Card = {
|
|
767
|
-
Root: CardRoot,
|
|
768
|
-
Header: CardHeader,
|
|
769
|
-
DragHandle: CardDragHandle,
|
|
770
|
-
Endcap: CardEndcap,
|
|
771
|
-
Menu: CardMenu,
|
|
772
|
-
Title: CardTitle,
|
|
773
|
-
Body: CardBody,
|
|
774
|
-
Media: CardMedia
|
|
775
|
-
};
|
|
776
|
-
|
|
777
|
-
// packages/ui/react-ui/src/components/Center/Center.tsx
|
|
778
|
-
import React13 from "react";
|
|
779
|
-
var Center = (props) => {
|
|
780
|
-
const { children, className, ...rest } = props;
|
|
781
|
-
return /* @__PURE__ */ React13.createElement("div", {
|
|
782
|
-
className: "h-full flex items-center justify-center " + className,
|
|
783
|
-
...rest
|
|
784
|
-
}, children);
|
|
785
|
-
};
|
|
786
|
-
|
|
787
587
|
// packages/ui/react-ui/src/components/Dialogs/Dialog.tsx
|
|
788
|
-
import { createContext as createContext5 } from "@radix-ui/react-context";
|
|
789
|
-
import { Root as DialogRootPrimitive, DialogTrigger as DialogTriggerPrimitive, DialogPortal as DialogPortalPrimitive, DialogOverlay as DialogOverlayPrimitive, DialogTitle as DialogTitlePrimitive, DialogDescription as DialogDescriptionPrimitive, DialogClose as DialogClosePrimitive, DialogContent as DialogContentPrimitive } from "@radix-ui/react-dialog";
|
|
790
|
-
import React14, { forwardRef as forwardRef11 } from "react";
|
|
791
588
|
var DialogRoot = DialogRootPrimitive;
|
|
792
589
|
var DialogTrigger = DialogTriggerPrimitive;
|
|
793
590
|
var DialogPortal = DialogPortalPrimitive;
|
|
794
|
-
var DialogTitle = /* @__PURE__ */
|
|
591
|
+
var DialogTitle = /* @__PURE__ */ forwardRef9(({ classNames, srOnly, ...props }, forwardedRef) => {
|
|
795
592
|
const { tx } = useThemeContext();
|
|
796
|
-
return /* @__PURE__ */
|
|
593
|
+
return /* @__PURE__ */ React11.createElement(DialogTitlePrimitive, {
|
|
797
594
|
...props,
|
|
798
595
|
className: tx("dialog.title", "dialog__title", {
|
|
799
596
|
srOnly
|
|
@@ -801,9 +598,9 @@ var DialogTitle = /* @__PURE__ */ forwardRef11(({ classNames, srOnly, ...props }
|
|
|
801
598
|
ref: forwardedRef
|
|
802
599
|
});
|
|
803
600
|
});
|
|
804
|
-
var DialogDescription = /* @__PURE__ */
|
|
601
|
+
var DialogDescription = /* @__PURE__ */ forwardRef9(({ classNames, srOnly, ...props }, forwardedRef) => {
|
|
805
602
|
const { tx } = useThemeContext();
|
|
806
|
-
return /* @__PURE__ */
|
|
603
|
+
return /* @__PURE__ */ React11.createElement(DialogDescriptionPrimitive, {
|
|
807
604
|
...props,
|
|
808
605
|
className: tx("dialog.description", "dialog__description", {
|
|
809
606
|
srOnly
|
|
@@ -817,27 +614,27 @@ var DIALOG_CONTENT_NAME = "DialogContent";
|
|
|
817
614
|
var [OverlayLayoutProvider, useOverlayLayoutContext] = createContext5(DIALOG_OVERLAY_NAME, {
|
|
818
615
|
inOverlayLayout: false
|
|
819
616
|
});
|
|
820
|
-
var DialogOverlay = /* @__PURE__ */
|
|
617
|
+
var DialogOverlay = /* @__PURE__ */ forwardRef9(({ classNames, children, ...props }, forwardedRef) => {
|
|
821
618
|
const { tx } = useThemeContext();
|
|
822
|
-
return /* @__PURE__ */
|
|
619
|
+
return /* @__PURE__ */ React11.createElement(DialogOverlayPrimitive, {
|
|
823
620
|
...props,
|
|
824
621
|
className: tx("dialog.overlay", "dialog__overlay", {}, classNames),
|
|
825
622
|
ref: forwardedRef
|
|
826
|
-
}, /* @__PURE__ */
|
|
623
|
+
}, /* @__PURE__ */ React11.createElement(OverlayLayoutProvider, {
|
|
827
624
|
inOverlayLayout: true
|
|
828
625
|
}, children));
|
|
829
626
|
});
|
|
830
627
|
DialogOverlay.displayName = DIALOG_OVERLAY_NAME;
|
|
831
|
-
var DialogContent = /* @__PURE__ */
|
|
628
|
+
var DialogContent = /* @__PURE__ */ forwardRef9(({ classNames, children, ...props }, forwardedRef) => {
|
|
832
629
|
const { tx } = useThemeContext();
|
|
833
630
|
const { inOverlayLayout } = useOverlayLayoutContext(DIALOG_CONTENT_NAME);
|
|
834
|
-
return /* @__PURE__ */
|
|
631
|
+
return /* @__PURE__ */ React11.createElement(DialogContentPrimitive, {
|
|
835
632
|
...props,
|
|
836
633
|
className: tx("dialog.content", "dialog", {
|
|
837
634
|
inOverlayLayout
|
|
838
635
|
}, classNames),
|
|
839
636
|
ref: forwardedRef
|
|
840
|
-
}, /* @__PURE__ */
|
|
637
|
+
}, /* @__PURE__ */ React11.createElement(ElevationProvider, {
|
|
841
638
|
elevation: "chrome"
|
|
842
639
|
}, children));
|
|
843
640
|
});
|
|
@@ -856,15 +653,15 @@ var Dialog = {
|
|
|
856
653
|
// packages/ui/react-ui/src/components/Dialogs/AlertDialog.tsx
|
|
857
654
|
import { Root as AlertDialogRootPrimitive, AlertDialogTrigger as AlertDialogTriggerPrimitive, AlertDialogPortal as AlertDialogPortalPrimitive, AlertDialogOverlay as AlertDialogOverlayPrimitive, AlertDialogTitle as AlertDialogTitlePrimitive, AlertDialogDescription as AlertDialogDescriptionPrimitive, AlertDialogAction as AlertDialogActionPrimitive, AlertDialogCancel as AlertDialogCancelPrimitive, AlertDialogContent as AlertDialogContentPrimitive } from "@radix-ui/react-alert-dialog";
|
|
858
655
|
import { createContext as createContext6 } from "@radix-ui/react-context";
|
|
859
|
-
import
|
|
656
|
+
import React12, { forwardRef as forwardRef10 } from "react";
|
|
860
657
|
var AlertDialogRoot = AlertDialogRootPrimitive;
|
|
861
658
|
var AlertDialogTrigger = AlertDialogTriggerPrimitive;
|
|
862
659
|
var AlertDialogPortal = AlertDialogPortalPrimitive;
|
|
863
660
|
var AlertDialogCancel = AlertDialogCancelPrimitive;
|
|
864
661
|
var AlertDialogAction = AlertDialogActionPrimitive;
|
|
865
|
-
var AlertDialogTitle = /* @__PURE__ */
|
|
662
|
+
var AlertDialogTitle = /* @__PURE__ */ forwardRef10(({ classNames, srOnly, ...props }, forwardedRef) => {
|
|
866
663
|
const { tx } = useThemeContext();
|
|
867
|
-
return /* @__PURE__ */
|
|
664
|
+
return /* @__PURE__ */ React12.createElement(AlertDialogTitlePrimitive, {
|
|
868
665
|
...props,
|
|
869
666
|
className: tx("dialog.title", "dialog--alert__title", {
|
|
870
667
|
srOnly
|
|
@@ -872,9 +669,9 @@ var AlertDialogTitle = /* @__PURE__ */ forwardRef12(({ classNames, srOnly, ...pr
|
|
|
872
669
|
ref: forwardedRef
|
|
873
670
|
});
|
|
874
671
|
});
|
|
875
|
-
var AlertDialogDescription = /* @__PURE__ */
|
|
672
|
+
var AlertDialogDescription = /* @__PURE__ */ forwardRef10(({ classNames, srOnly, ...props }, forwardedRef) => {
|
|
876
673
|
const { tx } = useThemeContext();
|
|
877
|
-
return /* @__PURE__ */
|
|
674
|
+
return /* @__PURE__ */ React12.createElement(AlertDialogDescriptionPrimitive, {
|
|
878
675
|
...props,
|
|
879
676
|
className: tx("dialog.description", "dialog--alert__description", {
|
|
880
677
|
srOnly
|
|
@@ -887,27 +684,27 @@ var ALERT_DIALOG_CONTENT_NAME = "AlertDialogContent";
|
|
|
887
684
|
var [OverlayLayoutProvider2, useOverlayLayoutContext2] = createContext6(ALERT_DIALOG_OVERLAY_NAME, {
|
|
888
685
|
inOverlayLayout: false
|
|
889
686
|
});
|
|
890
|
-
var AlertDialogOverlay = /* @__PURE__ */
|
|
687
|
+
var AlertDialogOverlay = /* @__PURE__ */ forwardRef10(({ classNames, children, ...props }, forwardedRef) => {
|
|
891
688
|
const { tx } = useThemeContext();
|
|
892
|
-
return /* @__PURE__ */
|
|
689
|
+
return /* @__PURE__ */ React12.createElement(AlertDialogOverlayPrimitive, {
|
|
893
690
|
...props,
|
|
894
691
|
className: tx("dialog.overlay", "dialog--alert__overlay", {}, classNames),
|
|
895
692
|
ref: forwardedRef
|
|
896
|
-
}, /* @__PURE__ */
|
|
693
|
+
}, /* @__PURE__ */ React12.createElement(OverlayLayoutProvider2, {
|
|
897
694
|
inOverlayLayout: true
|
|
898
695
|
}, children));
|
|
899
696
|
});
|
|
900
697
|
AlertDialogOverlay.displayName = ALERT_DIALOG_OVERLAY_NAME;
|
|
901
|
-
var AlertDialogContent = /* @__PURE__ */
|
|
698
|
+
var AlertDialogContent = /* @__PURE__ */ forwardRef10(({ classNames, children, ...props }, forwardedRef) => {
|
|
902
699
|
const { tx } = useThemeContext();
|
|
903
700
|
const { inOverlayLayout } = useOverlayLayoutContext2(ALERT_DIALOG_CONTENT_NAME);
|
|
904
|
-
return /* @__PURE__ */
|
|
701
|
+
return /* @__PURE__ */ React12.createElement(AlertDialogContentPrimitive, {
|
|
905
702
|
...props,
|
|
906
703
|
className: tx("dialog.content", "dialog--alert", {
|
|
907
704
|
inOverlayLayout
|
|
908
705
|
}, classNames),
|
|
909
706
|
ref: forwardedRef
|
|
910
|
-
}, /* @__PURE__ */
|
|
707
|
+
}, /* @__PURE__ */ React12.createElement(ElevationProvider, {
|
|
911
708
|
elevation: "chrome"
|
|
912
709
|
}, children));
|
|
913
710
|
});
|
|
@@ -924,16 +721,102 @@ var AlertDialog = {
|
|
|
924
721
|
Action: AlertDialogAction
|
|
925
722
|
};
|
|
926
723
|
|
|
724
|
+
// packages/ui/react-ui/src/components/DropdownMenu/DropdownMenu.tsx
|
|
725
|
+
import { Root as DropdownMenuRootPrimitive, DropdownMenuTrigger as DropdownMenuTriggerPrimitive, DropdownMenuPortal as DropdownMenuPortalPrimitive, DropdownMenuContent as DropdownMenuContentPrimitive, DropdownMenuArrow as DropdownMenuArrowPrimitive, DropdownMenuGroup as DropdownMenuGroupPrimitive, DropdownMenuItem as DropdownMenuItemPrimitive, DropdownMenuCheckboxItem as DropdownMenuCheckboxItemPrimitive, DropdownMenuItemIndicator as DropdownMenuItemIndicatorPrimitive, DropdownMenuSeparator as DropdownMenuSeparatorPrimitive, DropdownMenuLabel as DropdownMenuLabelPrimitive } from "@radix-ui/react-dropdown-menu";
|
|
726
|
+
import { Primitive as Primitive6 } from "@radix-ui/react-primitive";
|
|
727
|
+
import { Slot as Slot6 } from "@radix-ui/react-slot";
|
|
728
|
+
import React13, { forwardRef as forwardRef11 } from "react";
|
|
729
|
+
var DropdownMenuRoot = DropdownMenuRootPrimitive;
|
|
730
|
+
var DropdownMenuTrigger = DropdownMenuTriggerPrimitive;
|
|
731
|
+
var DropdownMenuPortal = DropdownMenuPortalPrimitive;
|
|
732
|
+
var DropdownMenuContent = /* @__PURE__ */ forwardRef11(({ classNames, children, ...props }, forwardedRef) => {
|
|
733
|
+
const { tx } = useThemeContext();
|
|
734
|
+
return /* @__PURE__ */ React13.createElement(DropdownMenuContentPrimitive, {
|
|
735
|
+
sideOffset: 4,
|
|
736
|
+
collisionPadding: 8,
|
|
737
|
+
...props,
|
|
738
|
+
className: tx("dropdownMenu.content", "dropdown-menu", {}, classNames),
|
|
739
|
+
ref: forwardedRef
|
|
740
|
+
}, /* @__PURE__ */ React13.createElement(ElevationProvider, {
|
|
741
|
+
elevation: "chrome"
|
|
742
|
+
}, children));
|
|
743
|
+
});
|
|
744
|
+
var DropdownMenuViewport = /* @__PURE__ */ forwardRef11(({ classNames, asChild, children, ...props }, forwardedRef) => {
|
|
745
|
+
const { tx } = useThemeContext();
|
|
746
|
+
const Root3 = asChild ? Slot6 : Primitive6.div;
|
|
747
|
+
return /* @__PURE__ */ React13.createElement(Root3, {
|
|
748
|
+
...props,
|
|
749
|
+
className: tx("dropdownMenu.viewport", "dropdown-menu__viewport", {}, classNames),
|
|
750
|
+
ref: forwardedRef
|
|
751
|
+
}, children);
|
|
752
|
+
});
|
|
753
|
+
var DropdownMenuArrow = /* @__PURE__ */ forwardRef11(({ classNames, ...props }, forwardedRef) => {
|
|
754
|
+
const { tx } = useThemeContext();
|
|
755
|
+
return /* @__PURE__ */ React13.createElement(DropdownMenuArrowPrimitive, {
|
|
756
|
+
...props,
|
|
757
|
+
className: tx("dropdownMenu.arrow", "dropdown-menu__arrow", {}, classNames),
|
|
758
|
+
ref: forwardedRef
|
|
759
|
+
});
|
|
760
|
+
});
|
|
761
|
+
var DropdownMenuGroup = DropdownMenuGroupPrimitive;
|
|
762
|
+
var DropdownMenuItemIndicator = DropdownMenuItemIndicatorPrimitive;
|
|
763
|
+
var DropdownMenuItem = /* @__PURE__ */ forwardRef11(({ classNames, ...props }, forwardedRef) => {
|
|
764
|
+
const { tx } = useThemeContext();
|
|
765
|
+
return /* @__PURE__ */ React13.createElement(DropdownMenuItemPrimitive, {
|
|
766
|
+
...props,
|
|
767
|
+
className: tx("dropdownMenu.item", "dropdown-menu__item", {}, classNames),
|
|
768
|
+
ref: forwardedRef
|
|
769
|
+
});
|
|
770
|
+
});
|
|
771
|
+
var DropdownMenuCheckboxItem = /* @__PURE__ */ forwardRef11(({ classNames, ...props }, forwardedRef) => {
|
|
772
|
+
const { tx } = useThemeContext();
|
|
773
|
+
return /* @__PURE__ */ React13.createElement(DropdownMenuCheckboxItemPrimitive, {
|
|
774
|
+
...props,
|
|
775
|
+
className: tx("dropdownMenu.item", "dropdown-menu__item--checkbox", {}, classNames),
|
|
776
|
+
ref: forwardedRef
|
|
777
|
+
});
|
|
778
|
+
});
|
|
779
|
+
var DropdownMenuSeparator = /* @__PURE__ */ forwardRef11(({ classNames, ...props }, forwardedRef) => {
|
|
780
|
+
const { tx } = useThemeContext();
|
|
781
|
+
return /* @__PURE__ */ React13.createElement(DropdownMenuSeparatorPrimitive, {
|
|
782
|
+
...props,
|
|
783
|
+
className: tx("dropdownMenu.separator", "dropdown-menu__item", {}, classNames),
|
|
784
|
+
ref: forwardedRef
|
|
785
|
+
});
|
|
786
|
+
});
|
|
787
|
+
var DropdownMenuGroupLabel = /* @__PURE__ */ forwardRef11(({ classNames, ...props }, forwardedRef) => {
|
|
788
|
+
const { tx } = useThemeContext();
|
|
789
|
+
return /* @__PURE__ */ React13.createElement(DropdownMenuLabelPrimitive, {
|
|
790
|
+
...props,
|
|
791
|
+
className: tx("dropdownMenu.groupLabel", "dropdown-menu__group__label", {}, classNames),
|
|
792
|
+
ref: forwardedRef
|
|
793
|
+
});
|
|
794
|
+
});
|
|
795
|
+
var DropdownMenu = {
|
|
796
|
+
Root: DropdownMenuRoot,
|
|
797
|
+
Trigger: DropdownMenuTrigger,
|
|
798
|
+
Portal: DropdownMenuPortal,
|
|
799
|
+
Content: DropdownMenuContent,
|
|
800
|
+
Viewport: DropdownMenuViewport,
|
|
801
|
+
Arrow: DropdownMenuArrow,
|
|
802
|
+
Group: DropdownMenuGroup,
|
|
803
|
+
Item: DropdownMenuItem,
|
|
804
|
+
CheckboxItem: DropdownMenuCheckboxItem,
|
|
805
|
+
ItemIndicator: DropdownMenuItemIndicator,
|
|
806
|
+
Separator: DropdownMenuSeparator,
|
|
807
|
+
GroupLabel: DropdownMenuGroupLabel
|
|
808
|
+
};
|
|
809
|
+
|
|
927
810
|
// packages/ui/react-ui/src/components/Input/Input.tsx
|
|
928
811
|
import { Check, Minus } from "@phosphor-icons/react";
|
|
929
812
|
import { Root as CheckboxPrimitive, Indicator as CheckboxIndicatorPrimitive } from "@radix-ui/react-checkbox";
|
|
930
813
|
import { Root as SwitchPrimitive, Thumb as SwitchThumbPrimitive } from "@radix-ui/react-switch";
|
|
931
814
|
import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
|
932
|
-
import
|
|
815
|
+
import React14, { forwardRef as forwardRef12, Fragment, useCallback } from "react";
|
|
933
816
|
import { InputRoot, PinInput as PinInputPrimitive, TextInput as TextInputPrimitive, TextArea as TextAreaPrimitive, useInputContext, INPUT_NAME, Description as DescriptionPrimitive, DescriptionAndValidation as DescriptionAndValidationPrimitive, Label as LabelPrimitive, Validation as ValidationPrimitive } from "@dxos/react-input";
|
|
934
|
-
var Label = /* @__PURE__ */
|
|
817
|
+
var Label = /* @__PURE__ */ forwardRef12(({ srOnly, classNames, children, ...props }, forwardedRef) => {
|
|
935
818
|
const { tx } = useThemeContext();
|
|
936
|
-
return /* @__PURE__ */
|
|
819
|
+
return /* @__PURE__ */ React14.createElement(LabelPrimitive, {
|
|
937
820
|
...props,
|
|
938
821
|
className: tx("input.label", "input__label", {
|
|
939
822
|
srOnly
|
|
@@ -941,9 +824,9 @@ var Label = /* @__PURE__ */ forwardRef13(({ srOnly, classNames, children, ...pro
|
|
|
941
824
|
ref: forwardedRef
|
|
942
825
|
}, children);
|
|
943
826
|
});
|
|
944
|
-
var Description = /* @__PURE__ */
|
|
827
|
+
var Description = /* @__PURE__ */ forwardRef12(({ srOnly, classNames, children, ...props }, forwardedRef) => {
|
|
945
828
|
const { tx } = useThemeContext();
|
|
946
|
-
return /* @__PURE__ */
|
|
829
|
+
return /* @__PURE__ */ React14.createElement(DescriptionPrimitive, {
|
|
947
830
|
...props,
|
|
948
831
|
className: tx("input.description", "input__description", {
|
|
949
832
|
srOnly
|
|
@@ -951,10 +834,10 @@ var Description = /* @__PURE__ */ forwardRef13(({ srOnly, classNames, children,
|
|
|
951
834
|
ref: forwardedRef
|
|
952
835
|
}, children);
|
|
953
836
|
});
|
|
954
|
-
var Validation = /* @__PURE__ */
|
|
837
|
+
var Validation = /* @__PURE__ */ forwardRef12(({ __inputScope, srOnly, classNames, children, ...props }, forwardedRef) => {
|
|
955
838
|
const { tx } = useThemeContext();
|
|
956
839
|
const { validationValence } = useInputContext(INPUT_NAME, __inputScope);
|
|
957
|
-
return /* @__PURE__ */
|
|
840
|
+
return /* @__PURE__ */ React14.createElement(ValidationPrimitive, {
|
|
958
841
|
...props,
|
|
959
842
|
className: tx("input.validation", `input__validation-message input__validation-message--${validationValence}`, {
|
|
960
843
|
srOnly,
|
|
@@ -963,9 +846,9 @@ var Validation = /* @__PURE__ */ forwardRef13(({ __inputScope, srOnly, className
|
|
|
963
846
|
ref: forwardedRef
|
|
964
847
|
}, children);
|
|
965
848
|
});
|
|
966
|
-
var DescriptionAndValidation = /* @__PURE__ */
|
|
849
|
+
var DescriptionAndValidation = /* @__PURE__ */ forwardRef12(({ srOnly, classNames, children, ...props }, forwardedRef) => {
|
|
967
850
|
const { tx } = useThemeContext();
|
|
968
|
-
return /* @__PURE__ */
|
|
851
|
+
return /* @__PURE__ */ React14.createElement(DescriptionAndValidationPrimitive, {
|
|
969
852
|
...props,
|
|
970
853
|
className: tx("input.descriptionAndValidation", "input__description-and-validation", {
|
|
971
854
|
srOnly
|
|
@@ -973,7 +856,7 @@ var DescriptionAndValidation = /* @__PURE__ */ forwardRef13(({ srOnly, className
|
|
|
973
856
|
ref: forwardedRef
|
|
974
857
|
}, children);
|
|
975
858
|
});
|
|
976
|
-
var PinInput = /* @__PURE__ */
|
|
859
|
+
var PinInput = /* @__PURE__ */ forwardRef12(({ density: propsDensity, elevation: propsElevation, segmentClassName: propsSegmentClassName, inputClassName, variant, ...props }, forwardedRef) => {
|
|
977
860
|
const { hasIosKeyboard: hasIosKeyboard2 } = useThemeContext();
|
|
978
861
|
const { tx } = useThemeContext();
|
|
979
862
|
const density = useDensityContext(propsDensity);
|
|
@@ -992,7 +875,7 @@ var PinInput = /* @__PURE__ */ forwardRef13(({ density: propsDensity, elevation:
|
|
|
992
875
|
propsElevation,
|
|
993
876
|
density
|
|
994
877
|
]);
|
|
995
|
-
return /* @__PURE__ */
|
|
878
|
+
return /* @__PURE__ */ React14.createElement(PinInputPrimitive, {
|
|
996
879
|
...props,
|
|
997
880
|
segmentClassName,
|
|
998
881
|
...props.autoFocus && !hasIosKeyboard2 && {
|
|
@@ -1004,13 +887,13 @@ var PinInput = /* @__PURE__ */ forwardRef13(({ density: propsDensity, elevation:
|
|
|
1004
887
|
ref: forwardedRef
|
|
1005
888
|
});
|
|
1006
889
|
});
|
|
1007
|
-
var TextInput = /* @__PURE__ */
|
|
890
|
+
var TextInput = /* @__PURE__ */ forwardRef12(({ __inputScope, classNames, density: propsDensity, elevation: propsElevation, variant, ...props }, forwardedRef) => {
|
|
1008
891
|
const { hasIosKeyboard: hasIosKeyboard2 } = useThemeContext();
|
|
1009
892
|
const { tx } = useThemeContext();
|
|
1010
893
|
const density = useDensityContext(propsDensity);
|
|
1011
894
|
const elevation = useElevationContext(propsElevation);
|
|
1012
895
|
const { validationValence } = useInputContext(INPUT_NAME, __inputScope);
|
|
1013
|
-
return /* @__PURE__ */
|
|
896
|
+
return /* @__PURE__ */ React14.createElement(TextInputPrimitive, {
|
|
1014
897
|
...props,
|
|
1015
898
|
className: tx("input.input", "input", {
|
|
1016
899
|
variant,
|
|
@@ -1025,13 +908,13 @@ var TextInput = /* @__PURE__ */ forwardRef13(({ __inputScope, classNames, densit
|
|
|
1025
908
|
ref: forwardedRef
|
|
1026
909
|
});
|
|
1027
910
|
});
|
|
1028
|
-
var TextArea = /* @__PURE__ */
|
|
911
|
+
var TextArea = /* @__PURE__ */ forwardRef12(({ __inputScope, classNames, density: propsDensity, elevation: propsElevation, variant, ...props }, forwardedRef) => {
|
|
1029
912
|
const { hasIosKeyboard: hasIosKeyboard2 } = useThemeContext();
|
|
1030
913
|
const { tx } = useThemeContext();
|
|
1031
914
|
const density = useDensityContext(propsDensity);
|
|
1032
915
|
const elevation = useElevationContext(propsElevation);
|
|
1033
916
|
const { validationValence } = useInputContext(INPUT_NAME, __inputScope);
|
|
1034
|
-
return /* @__PURE__ */
|
|
917
|
+
return /* @__PURE__ */ React14.createElement(TextAreaPrimitive, {
|
|
1035
918
|
...props,
|
|
1036
919
|
className: tx("input.input", "input--text-area", {
|
|
1037
920
|
variant,
|
|
@@ -1046,7 +929,7 @@ var TextArea = /* @__PURE__ */ forwardRef13(({ __inputScope, classNames, density
|
|
|
1046
929
|
ref: forwardedRef
|
|
1047
930
|
});
|
|
1048
931
|
});
|
|
1049
|
-
var Checkbox = /* @__PURE__ */
|
|
932
|
+
var Checkbox = /* @__PURE__ */ forwardRef12(({ __inputScope, checked: propsChecked, defaultChecked: propsDefaultChecked, onCheckedChange: propsOnCheckedChange, size, weight = "bold", classNames, ...props }, forwardedRef) => {
|
|
1050
933
|
const [checked, onCheckedChange] = useControllableState({
|
|
1051
934
|
prop: propsChecked,
|
|
1052
935
|
defaultProp: propsDefaultChecked,
|
|
@@ -1055,7 +938,7 @@ var Checkbox = /* @__PURE__ */ forwardRef13(({ __inputScope, checked: propsCheck
|
|
|
1055
938
|
const { id, validationValence, descriptionId, errorMessageId } = useInputContext(INPUT_NAME, __inputScope);
|
|
1056
939
|
const { tx } = useThemeContext();
|
|
1057
940
|
const Icon2 = checked === "indeterminate" ? Minus : checked ? Check : Fragment;
|
|
1058
|
-
return /* @__PURE__ */
|
|
941
|
+
return /* @__PURE__ */ React14.createElement(CheckboxPrimitive, {
|
|
1059
942
|
...props,
|
|
1060
943
|
checked,
|
|
1061
944
|
onCheckedChange,
|
|
@@ -1069,16 +952,16 @@ var Checkbox = /* @__PURE__ */ forwardRef13(({ __inputScope, checked: propsCheck
|
|
|
1069
952
|
size
|
|
1070
953
|
}, "shrink-0", classNames),
|
|
1071
954
|
ref: forwardedRef
|
|
1072
|
-
}, /* @__PURE__ */
|
|
955
|
+
}, /* @__PURE__ */ React14.createElement(CheckboxIndicatorPrimitive, {
|
|
1073
956
|
asChild: true
|
|
1074
|
-
}, /* @__PURE__ */
|
|
957
|
+
}, /* @__PURE__ */ React14.createElement(Icon2, checked && {
|
|
1075
958
|
weight,
|
|
1076
959
|
className: tx("input.checkboxIndicator", "input--checkbox__indicator", {
|
|
1077
960
|
size
|
|
1078
961
|
})
|
|
1079
962
|
})));
|
|
1080
963
|
});
|
|
1081
|
-
var Switch = /* @__PURE__ */
|
|
964
|
+
var Switch = /* @__PURE__ */ forwardRef12(({ __inputScope, checked: propsChecked, defaultChecked: propsDefaultChecked, onCheckedChange: propsOnCheckedChange, size = 5, classNames, ...props }, forwardedRef) => {
|
|
1082
965
|
const { tx } = useThemeContext();
|
|
1083
966
|
const [checked, onCheckedChange] = useControllableState({
|
|
1084
967
|
prop: propsChecked,
|
|
@@ -1086,7 +969,7 @@ var Switch = /* @__PURE__ */ forwardRef13(({ __inputScope, checked: propsChecked
|
|
|
1086
969
|
onChange: propsOnCheckedChange
|
|
1087
970
|
});
|
|
1088
971
|
const { id, validationValence, descriptionId, errorMessageId } = useInputContext(INPUT_NAME, __inputScope);
|
|
1089
|
-
return /* @__PURE__ */
|
|
972
|
+
return /* @__PURE__ */ React14.createElement(SwitchPrimitive, {
|
|
1090
973
|
...props,
|
|
1091
974
|
checked,
|
|
1092
975
|
onCheckedChange,
|
|
@@ -1100,7 +983,7 @@ var Switch = /* @__PURE__ */ forwardRef13(({ __inputScope, checked: propsChecked
|
|
|
1100
983
|
size
|
|
1101
984
|
}, classNames),
|
|
1102
985
|
ref: forwardedRef
|
|
1103
|
-
}, /* @__PURE__ */
|
|
986
|
+
}, /* @__PURE__ */ React14.createElement(SwitchThumbPrimitive, {
|
|
1104
987
|
className: tx("input.switchThumb", "input--switch__thumb", {
|
|
1105
988
|
size
|
|
1106
989
|
})
|
|
@@ -1119,40 +1002,40 @@ var Input = {
|
|
|
1119
1002
|
DescriptionAndValidation
|
|
1120
1003
|
};
|
|
1121
1004
|
|
|
1122
|
-
// packages/ui/react-ui/src/components/
|
|
1005
|
+
// packages/ui/react-ui/src/components/Lists/List.tsx
|
|
1123
1006
|
import { CaretDown, CaretRight } from "@phosphor-icons/react";
|
|
1124
1007
|
import { Slot as Slot7 } from "@radix-ui/react-slot";
|
|
1125
|
-
import
|
|
1008
|
+
import React16, { forwardRef as forwardRef13 } from "react";
|
|
1126
1009
|
import { List as ListPrimitive, ListItemHeading as ListPrimitiveItemHeading, ListItemOpenTrigger as ListPrimitiveItemOpenTrigger, ListItemCollapsibleContent, ListItem as ListPrimitiveItem, LIST_NAME, LIST_ITEM_NAME, useListContext, useListItemContext } from "@dxos/react-list";
|
|
1127
1010
|
|
|
1128
1011
|
// packages/ui/react-ui/src/components/DensityProvider/DensityProvider.tsx
|
|
1129
|
-
import
|
|
1012
|
+
import React15, { createContext as createContext7 } from "react";
|
|
1130
1013
|
var DensityContext = /* @__PURE__ */ createContext7({
|
|
1131
1014
|
density: "coarse"
|
|
1132
1015
|
});
|
|
1133
|
-
var DensityProvider = ({ density, children }) => /* @__PURE__ */
|
|
1016
|
+
var DensityProvider = ({ density, children }) => /* @__PURE__ */ React15.createElement(DensityContext.Provider, {
|
|
1134
1017
|
value: {
|
|
1135
1018
|
density
|
|
1136
1019
|
}
|
|
1137
1020
|
}, children);
|
|
1138
1021
|
|
|
1139
|
-
// packages/ui/react-ui/src/components/
|
|
1140
|
-
var List = /* @__PURE__ */
|
|
1022
|
+
// packages/ui/react-ui/src/components/Lists/List.tsx
|
|
1023
|
+
var List = /* @__PURE__ */ forwardRef13(({ classNames, children, ...props }, forwardedRef) => {
|
|
1141
1024
|
const { tx } = useThemeContext();
|
|
1142
1025
|
const density = useDensityContext(props.density);
|
|
1143
|
-
return /* @__PURE__ */
|
|
1026
|
+
return /* @__PURE__ */ React16.createElement(DensityProvider, {
|
|
1144
1027
|
density
|
|
1145
|
-
}, /* @__PURE__ */
|
|
1028
|
+
}, /* @__PURE__ */ React16.createElement(ListPrimitive, {
|
|
1146
1029
|
...props,
|
|
1147
1030
|
className: tx("list.root", "list", {}, classNames),
|
|
1148
1031
|
ref: forwardedRef
|
|
1149
1032
|
}, children));
|
|
1150
1033
|
});
|
|
1151
|
-
var ListItemEndcap = /* @__PURE__ */
|
|
1034
|
+
var ListItemEndcap = /* @__PURE__ */ forwardRef13(({ children, classNames, asChild, ...props }, forwardedRef) => {
|
|
1152
1035
|
const Root3 = asChild ? Slot7 : "div";
|
|
1153
1036
|
const density = useDensityContext();
|
|
1154
1037
|
const { tx } = useThemeContext();
|
|
1155
|
-
return /* @__PURE__ */
|
|
1038
|
+
return /* @__PURE__ */ React16.createElement(Root3, {
|
|
1156
1039
|
...!asChild && {
|
|
1157
1040
|
role: "none"
|
|
1158
1041
|
},
|
|
@@ -1166,7 +1049,7 @@ var ListItemEndcap = /* @__PURE__ */ forwardRef14(({ children, classNames, asChi
|
|
|
1166
1049
|
var MockListItemOpenTrigger = ({ classNames, ...props }) => {
|
|
1167
1050
|
const density = useDensityContext();
|
|
1168
1051
|
const { tx } = useThemeContext();
|
|
1169
|
-
return /* @__PURE__ */
|
|
1052
|
+
return /* @__PURE__ */ React16.createElement("div", {
|
|
1170
1053
|
role: "none",
|
|
1171
1054
|
...props,
|
|
1172
1055
|
className: tx("list.item.openTrigger", "list__listItem__openTrigger--mock", {
|
|
@@ -1174,10 +1057,10 @@ var MockListItemOpenTrigger = ({ classNames, ...props }) => {
|
|
|
1174
1057
|
}, classNames)
|
|
1175
1058
|
});
|
|
1176
1059
|
};
|
|
1177
|
-
var ListItemHeading = /* @__PURE__ */
|
|
1060
|
+
var ListItemHeading = /* @__PURE__ */ forwardRef13(({ children, classNames, ...props }, forwardedRef) => {
|
|
1178
1061
|
const { tx } = useThemeContext();
|
|
1179
1062
|
const density = useDensityContext();
|
|
1180
|
-
return /* @__PURE__ */
|
|
1063
|
+
return /* @__PURE__ */ React16.createElement(ListPrimitiveItemHeading, {
|
|
1181
1064
|
...props,
|
|
1182
1065
|
className: tx("list.item.heading", "list__listItem__heading", {
|
|
1183
1066
|
density
|
|
@@ -1185,26 +1068,26 @@ var ListItemHeading = /* @__PURE__ */ forwardRef14(({ children, classNames, ...p
|
|
|
1185
1068
|
ref: forwardedRef
|
|
1186
1069
|
}, children);
|
|
1187
1070
|
});
|
|
1188
|
-
var ListItemOpenTrigger = /* @__PURE__ */
|
|
1071
|
+
var ListItemOpenTrigger = /* @__PURE__ */ forwardRef13(({ __listItemScope, classNames, children, ...props }, forwardedRef) => {
|
|
1189
1072
|
const { tx } = useThemeContext();
|
|
1190
1073
|
const density = useDensityContext();
|
|
1191
1074
|
const { open } = useListItemContext(LIST_ITEM_NAME, __listItemScope);
|
|
1192
1075
|
const Icon2 = open ? CaretDown : CaretRight;
|
|
1193
|
-
return /* @__PURE__ */
|
|
1076
|
+
return /* @__PURE__ */ React16.createElement(ListPrimitiveItemOpenTrigger, {
|
|
1194
1077
|
...props,
|
|
1195
1078
|
className: tx("list.item.openTrigger", "list__listItem__openTrigger", {
|
|
1196
1079
|
density
|
|
1197
1080
|
}, classNames),
|
|
1198
1081
|
ref: forwardedRef
|
|
1199
|
-
}, children || /* @__PURE__ */
|
|
1082
|
+
}, children || /* @__PURE__ */ React16.createElement(Icon2, {
|
|
1200
1083
|
weight: "bold",
|
|
1201
1084
|
className: tx("list.item.openTriggerIcon", "list__listItem__openTrigger__icon", {})
|
|
1202
1085
|
}));
|
|
1203
1086
|
});
|
|
1204
|
-
var ListItemRoot = /* @__PURE__ */
|
|
1087
|
+
var ListItemRoot = /* @__PURE__ */ forwardRef13(({ classNames, children, ...props }, forwardedRef) => {
|
|
1205
1088
|
const { tx } = useThemeContext();
|
|
1206
1089
|
const density = useDensityContext();
|
|
1207
|
-
return /* @__PURE__ */
|
|
1090
|
+
return /* @__PURE__ */ React16.createElement(ListPrimitiveItem, {
|
|
1208
1091
|
...props,
|
|
1209
1092
|
className: tx("list.item.root", "list__listItem", {
|
|
1210
1093
|
density,
|
|
@@ -1222,24 +1105,24 @@ var ListItem = {
|
|
|
1222
1105
|
MockOpenTrigger: MockListItemOpenTrigger
|
|
1223
1106
|
};
|
|
1224
1107
|
|
|
1225
|
-
// packages/ui/react-ui/src/components/
|
|
1226
|
-
import
|
|
1227
|
-
var TreeRoot = /* @__PURE__ */
|
|
1228
|
-
return /* @__PURE__ */
|
|
1108
|
+
// packages/ui/react-ui/src/components/Lists/Tree.tsx
|
|
1109
|
+
import React17, { forwardRef as forwardRef14 } from "react";
|
|
1110
|
+
var TreeRoot = /* @__PURE__ */ forwardRef14((props, forwardedRef) => {
|
|
1111
|
+
return /* @__PURE__ */ React17.createElement(List, {
|
|
1229
1112
|
...props,
|
|
1230
1113
|
ref: forwardedRef
|
|
1231
1114
|
});
|
|
1232
1115
|
});
|
|
1233
|
-
var TreeBranch = /* @__PURE__ */
|
|
1116
|
+
var TreeBranch = /* @__PURE__ */ forwardRef14(({ __listScope, ...props }, forwardedRef) => {
|
|
1234
1117
|
const { headingId } = useListItemContext(LIST_ITEM_NAME, __listScope);
|
|
1235
|
-
return /* @__PURE__ */
|
|
1118
|
+
return /* @__PURE__ */ React17.createElement(List, {
|
|
1236
1119
|
...props,
|
|
1237
1120
|
"aria-labelledby": headingId,
|
|
1238
1121
|
ref: forwardedRef
|
|
1239
1122
|
});
|
|
1240
1123
|
});
|
|
1241
|
-
var TreeItemRoot = /* @__PURE__ */
|
|
1242
|
-
return /* @__PURE__ */
|
|
1124
|
+
var TreeItemRoot = /* @__PURE__ */ forwardRef14((props, forwardedRef) => {
|
|
1125
|
+
return /* @__PURE__ */ React17.createElement(ListItem.Root, {
|
|
1243
1126
|
role: "treeitem",
|
|
1244
1127
|
...props,
|
|
1245
1128
|
ref: forwardedRef
|
|
@@ -1267,7 +1150,7 @@ import { Root as DialogRoot2, DialogContent as DialogContent2 } from "@radix-ui/
|
|
|
1267
1150
|
import { Primitive as Primitive7 } from "@radix-ui/react-primitive";
|
|
1268
1151
|
import { Slot as Slot8 } from "@radix-ui/react-slot";
|
|
1269
1152
|
import { useControllableState as useControllableState2 } from "@radix-ui/react-use-controllable-state";
|
|
1270
|
-
import
|
|
1153
|
+
import React18, { forwardRef as forwardRef15, useCallback as useCallback3, useRef } from "react";
|
|
1271
1154
|
import { useMediaQuery, useForwardedRef } from "@dxos/react-hooks";
|
|
1272
1155
|
|
|
1273
1156
|
// packages/ui/react-ui/src/components/Main/useSwipeToDismiss.ts
|
|
@@ -1426,7 +1309,7 @@ var MainRoot = ({ navigationSidebarOpen: propsNavigationSidebarOpen, defaultNavi
|
|
|
1426
1309
|
defaultProp: defaultComplementarySidebarOpen,
|
|
1427
1310
|
onChange: onComplementarySidebarOpenChange
|
|
1428
1311
|
});
|
|
1429
|
-
return /* @__PURE__ */
|
|
1312
|
+
return /* @__PURE__ */ React18.createElement(MainProvider, {
|
|
1430
1313
|
...props,
|
|
1431
1314
|
navigationSidebarOpen,
|
|
1432
1315
|
setNavigationSidebarOpen,
|
|
@@ -1438,7 +1321,7 @@ MainRoot.displayName = MAIN_ROOT_NAME;
|
|
|
1438
1321
|
var handleOpenAutoFocus = (event) => {
|
|
1439
1322
|
!document.body.hasAttribute("data-is-keyboard") && event.preventDefault();
|
|
1440
1323
|
};
|
|
1441
|
-
var MainSidebar = /* @__PURE__ */
|
|
1324
|
+
var MainSidebar = /* @__PURE__ */ forwardRef15(({ classNames, children, swipeToDismiss, onOpenAutoFocus, open, setOpen, side, ...props }, forwardedRef) => {
|
|
1442
1325
|
const [isLg] = useMediaQuery("lg", {
|
|
1443
1326
|
ssr: false
|
|
1444
1327
|
});
|
|
@@ -1449,10 +1332,10 @@ var MainSidebar = /* @__PURE__ */ forwardRef16(({ classNames, children, swipeToD
|
|
|
1449
1332
|
onDismiss: () => setOpen(false)
|
|
1450
1333
|
});
|
|
1451
1334
|
const Root3 = isLg ? Primitive7.div : DialogContent2;
|
|
1452
|
-
return /* @__PURE__ */
|
|
1335
|
+
return /* @__PURE__ */ React18.createElement(DialogRoot2, {
|
|
1453
1336
|
open,
|
|
1454
1337
|
modal: false
|
|
1455
|
-
}, /* @__PURE__ */
|
|
1338
|
+
}, /* @__PURE__ */ React18.createElement(Root3, {
|
|
1456
1339
|
...!isLg && {
|
|
1457
1340
|
forceMount: true,
|
|
1458
1341
|
tabIndex: -1,
|
|
@@ -1468,13 +1351,13 @@ var MainSidebar = /* @__PURE__ */ forwardRef16(({ classNames, children, swipeToD
|
|
|
1468
1351
|
inert: "true"
|
|
1469
1352
|
},
|
|
1470
1353
|
ref
|
|
1471
|
-
}, /* @__PURE__ */
|
|
1354
|
+
}, /* @__PURE__ */ React18.createElement(ElevationProvider, {
|
|
1472
1355
|
elevation: "group"
|
|
1473
1356
|
}, children)));
|
|
1474
1357
|
});
|
|
1475
|
-
var MainNavigationSidebar = /* @__PURE__ */
|
|
1358
|
+
var MainNavigationSidebar = /* @__PURE__ */ forwardRef15((props, forwardedRef) => {
|
|
1476
1359
|
const { navigationSidebarOpen, setNavigationSidebarOpen } = useMainContext(NAVIGATION_SIDEBAR_NAME);
|
|
1477
|
-
return /* @__PURE__ */
|
|
1360
|
+
return /* @__PURE__ */ React18.createElement(MainSidebar, {
|
|
1478
1361
|
...props,
|
|
1479
1362
|
open: navigationSidebarOpen,
|
|
1480
1363
|
setOpen: setNavigationSidebarOpen,
|
|
@@ -1483,9 +1366,9 @@ var MainNavigationSidebar = /* @__PURE__ */ forwardRef16((props, forwardedRef) =
|
|
|
1483
1366
|
});
|
|
1484
1367
|
});
|
|
1485
1368
|
MainNavigationSidebar.displayName = NAVIGATION_SIDEBAR_NAME;
|
|
1486
|
-
var MainComplementarySidebar = /* @__PURE__ */
|
|
1369
|
+
var MainComplementarySidebar = /* @__PURE__ */ forwardRef15((props, forwardedRef) => {
|
|
1487
1370
|
const { complementarySidebarOpen, setComplementarySidebarOpen } = useMainContext(COMPLEMENTARY_SIDEBAR_NAME);
|
|
1488
|
-
return /* @__PURE__ */
|
|
1371
|
+
return /* @__PURE__ */ React18.createElement(MainSidebar, {
|
|
1489
1372
|
...props,
|
|
1490
1373
|
open: complementarySidebarOpen,
|
|
1491
1374
|
setOpen: setComplementarySidebarOpen,
|
|
@@ -1494,14 +1377,14 @@ var MainComplementarySidebar = /* @__PURE__ */ forwardRef16((props, forwardedRef
|
|
|
1494
1377
|
});
|
|
1495
1378
|
});
|
|
1496
1379
|
MainNavigationSidebar.displayName = NAVIGATION_SIDEBAR_NAME;
|
|
1497
|
-
var MainContent = /* @__PURE__ */
|
|
1380
|
+
var MainContent = /* @__PURE__ */ forwardRef15(({ asChild, classNames, bounce, children, ...props }, forwardedRef) => {
|
|
1498
1381
|
const [isLg] = useMediaQuery("lg", {
|
|
1499
1382
|
ssr: false
|
|
1500
1383
|
});
|
|
1501
1384
|
const { navigationSidebarOpen, complementarySidebarOpen } = useMainContext(MAIN_NAME);
|
|
1502
1385
|
const { tx } = useThemeContext();
|
|
1503
1386
|
const Root3 = asChild ? Slot8 : "main";
|
|
1504
|
-
return /* @__PURE__ */
|
|
1387
|
+
return /* @__PURE__ */ React18.createElement(Root3, {
|
|
1505
1388
|
...props,
|
|
1506
1389
|
className: tx("main.content", "main", {
|
|
1507
1390
|
isLg,
|
|
@@ -1513,13 +1396,13 @@ var MainContent = /* @__PURE__ */ forwardRef16(({ asChild, classNames, bounce, c
|
|
|
1513
1396
|
}, children);
|
|
1514
1397
|
});
|
|
1515
1398
|
MainContent.displayName = MAIN_NAME;
|
|
1516
|
-
var MainOverlay = /* @__PURE__ */
|
|
1399
|
+
var MainOverlay = /* @__PURE__ */ forwardRef15(({ classNames, ...props }, forwardedRef) => {
|
|
1517
1400
|
const [isLg] = useMediaQuery("lg", {
|
|
1518
1401
|
ssr: false
|
|
1519
1402
|
});
|
|
1520
1403
|
const { navigationSidebarOpen, setNavigationSidebarOpen, complementarySidebarOpen, setComplementarySidebarOpen } = useMainContext(MAIN_NAME);
|
|
1521
1404
|
const { tx } = useThemeContext();
|
|
1522
|
-
return /* @__PURE__ */
|
|
1405
|
+
return /* @__PURE__ */ React18.createElement("div", {
|
|
1523
1406
|
onClick: () => {
|
|
1524
1407
|
setNavigationSidebarOpen(false);
|
|
1525
1408
|
setComplementarySidebarOpen(false);
|
|
@@ -1548,20 +1431,20 @@ var Main = {
|
|
|
1548
1431
|
import { createContext as createContext9 } from "@radix-ui/react-context";
|
|
1549
1432
|
import { Primitive as Primitive8 } from "@radix-ui/react-primitive";
|
|
1550
1433
|
import { Slot as Slot9 } from "@radix-ui/react-slot";
|
|
1551
|
-
import
|
|
1434
|
+
import React19, { forwardRef as forwardRef16 } from "react";
|
|
1552
1435
|
import { useId as useId3 } from "@dxos/react-hooks";
|
|
1553
1436
|
var MESSAGE_NAME = "Message";
|
|
1554
1437
|
var [MessageProvider, useMessageContext] = createContext9(MESSAGE_NAME);
|
|
1555
|
-
var MessageRoot = /* @__PURE__ */
|
|
1438
|
+
var MessageRoot = /* @__PURE__ */ forwardRef16(({ asChild, valence, elevation: propsElevation, className, titleId: propsTitleId, descriptionId: propsDescriptionId, children, ...props }, forwardedRef) => {
|
|
1556
1439
|
const { tx } = useThemeContext();
|
|
1557
1440
|
const titleId = useId3("message__title", propsTitleId);
|
|
1558
1441
|
const descriptionId = useId3("message__description", propsDescriptionId);
|
|
1559
1442
|
const elevation = useElevationContext(propsElevation);
|
|
1560
1443
|
const Root3 = asChild ? Slot9 : Primitive8.div;
|
|
1561
|
-
return /* @__PURE__ */
|
|
1444
|
+
return /* @__PURE__ */ React19.createElement(MessageProvider, {
|
|
1562
1445
|
titleId,
|
|
1563
1446
|
descriptionId
|
|
1564
|
-
}, /* @__PURE__ */
|
|
1447
|
+
}, /* @__PURE__ */ React19.createElement(Root3, {
|
|
1565
1448
|
...props,
|
|
1566
1449
|
className: tx("message.root", "message", {
|
|
1567
1450
|
valence,
|
|
@@ -1574,11 +1457,11 @@ var MessageRoot = /* @__PURE__ */ forwardRef17(({ asChild, valence, elevation: p
|
|
|
1574
1457
|
});
|
|
1575
1458
|
MessageRoot.displayName = MESSAGE_NAME;
|
|
1576
1459
|
var MESSAGE_TITLE_NAME = "MessageTitle";
|
|
1577
|
-
var MessageTitle = /* @__PURE__ */
|
|
1460
|
+
var MessageTitle = /* @__PURE__ */ forwardRef16(({ asChild, className, children, ...props }, forwardedRef) => {
|
|
1578
1461
|
const { tx } = useThemeContext();
|
|
1579
1462
|
const { titleId } = useMessageContext(MESSAGE_TITLE_NAME);
|
|
1580
1463
|
const Root3 = asChild ? Slot9 : Primitive8.h2;
|
|
1581
|
-
return /* @__PURE__ */
|
|
1464
|
+
return /* @__PURE__ */ React19.createElement(Root3, {
|
|
1582
1465
|
...props,
|
|
1583
1466
|
className: tx("message.title", "message__title", {}, className),
|
|
1584
1467
|
id: titleId,
|
|
@@ -1587,11 +1470,11 @@ var MessageTitle = /* @__PURE__ */ forwardRef17(({ asChild, className, children,
|
|
|
1587
1470
|
});
|
|
1588
1471
|
MessageTitle.displayName = MESSAGE_TITLE_NAME;
|
|
1589
1472
|
var MESSAGE_BODY_NAME = "MessageBody";
|
|
1590
|
-
var MessageBody = /* @__PURE__ */
|
|
1473
|
+
var MessageBody = /* @__PURE__ */ forwardRef16(({ asChild, className, children, ...props }, forwardedRef) => {
|
|
1591
1474
|
const { tx } = useThemeContext();
|
|
1592
1475
|
const { descriptionId } = useMessageContext(MESSAGE_BODY_NAME);
|
|
1593
1476
|
const Root3 = asChild ? Slot9 : Primitive8.p;
|
|
1594
|
-
return /* @__PURE__ */
|
|
1477
|
+
return /* @__PURE__ */ React19.createElement(Root3, {
|
|
1595
1478
|
...props,
|
|
1596
1479
|
className: tx("message.body", "message__body", {}, className),
|
|
1597
1480
|
id: descriptionId,
|
|
@@ -1609,36 +1492,36 @@ var Message = {
|
|
|
1609
1492
|
import { Root as PopoverRootPrimitive, PopoverContent as PopoverContentPrimitive, PopoverTrigger as PopoverTriggerPrimitive, PopoverAnchor as PopoverAnchorPrimitive, PopoverPortal as PopoverPortalPrimitive, PopoverArrow as PopoverArrowPrimitive, PopoverClose as PopoverClosePrimitive } from "@radix-ui/react-popover";
|
|
1610
1493
|
import { Primitive as Primitive9 } from "@radix-ui/react-primitive";
|
|
1611
1494
|
import { Slot as Slot10 } from "@radix-ui/react-slot";
|
|
1612
|
-
import
|
|
1495
|
+
import React20, { forwardRef as forwardRef17 } from "react";
|
|
1613
1496
|
var PopoverRoot = PopoverRootPrimitive;
|
|
1614
1497
|
var PopoverPortal = PopoverPortalPrimitive;
|
|
1615
1498
|
var PopoverTrigger = PopoverTriggerPrimitive;
|
|
1616
1499
|
var PopoverAnchor = PopoverAnchorPrimitive;
|
|
1617
1500
|
var PopoverClose = PopoverClosePrimitive;
|
|
1618
|
-
var PopoverArrow = /* @__PURE__ */
|
|
1501
|
+
var PopoverArrow = /* @__PURE__ */ forwardRef17(({ classNames, ...props }, forwardedRef) => {
|
|
1619
1502
|
const { tx } = useThemeContext();
|
|
1620
|
-
return /* @__PURE__ */
|
|
1503
|
+
return /* @__PURE__ */ React20.createElement(PopoverArrowPrimitive, {
|
|
1621
1504
|
...props,
|
|
1622
1505
|
className: tx("popover.arrow", "popover__arrow", {}, classNames),
|
|
1623
1506
|
ref: forwardedRef
|
|
1624
1507
|
});
|
|
1625
1508
|
});
|
|
1626
|
-
var PopoverContent = /* @__PURE__ */
|
|
1509
|
+
var PopoverContent = /* @__PURE__ */ forwardRef17(({ classNames, children, ...props }, forwardedRef) => {
|
|
1627
1510
|
const { tx } = useThemeContext();
|
|
1628
|
-
return /* @__PURE__ */
|
|
1511
|
+
return /* @__PURE__ */ React20.createElement(PopoverContentPrimitive, {
|
|
1629
1512
|
sideOffset: 4,
|
|
1630
1513
|
collisionPadding: 8,
|
|
1631
1514
|
...props,
|
|
1632
1515
|
className: tx("popover.content", "popover", {}, classNames),
|
|
1633
1516
|
ref: forwardedRef
|
|
1634
|
-
}, /* @__PURE__ */
|
|
1517
|
+
}, /* @__PURE__ */ React20.createElement(ElevationProvider, {
|
|
1635
1518
|
elevation: "chrome"
|
|
1636
1519
|
}, children));
|
|
1637
1520
|
});
|
|
1638
|
-
var PopoverViewport = /* @__PURE__ */
|
|
1521
|
+
var PopoverViewport = /* @__PURE__ */ forwardRef17(({ classNames, asChild, constrainInline = true, constrainBlock = true, children, ...props }, forwardedRef) => {
|
|
1639
1522
|
const { tx } = useThemeContext();
|
|
1640
1523
|
const Root3 = asChild ? Slot10 : Primitive9.div;
|
|
1641
|
-
return /* @__PURE__ */
|
|
1524
|
+
return /* @__PURE__ */ React20.createElement(Root3, {
|
|
1642
1525
|
...props,
|
|
1643
1526
|
className: tx("popover.viewport", "popover__viewport", {
|
|
1644
1527
|
constrainInline,
|
|
@@ -1658,29 +1541,36 @@ var Popover = {
|
|
|
1658
1541
|
Viewport: PopoverViewport
|
|
1659
1542
|
};
|
|
1660
1543
|
|
|
1661
|
-
// packages/ui/react-ui/src/components/
|
|
1662
|
-
import
|
|
1663
|
-
var
|
|
1664
|
-
const {
|
|
1665
|
-
return /* @__PURE__ */
|
|
1544
|
+
// packages/ui/react-ui/src/components/Status/Status.tsx
|
|
1545
|
+
import React21, { forwardRef as forwardRef18 } from "react";
|
|
1546
|
+
var Status = /* @__PURE__ */ forwardRef18(({ classNames, children, progress = 0, indeterminate, ...props }, forwardedRef) => {
|
|
1547
|
+
const { tx } = useThemeContext();
|
|
1548
|
+
return /* @__PURE__ */ React21.createElement("span", {
|
|
1549
|
+
role: "status",
|
|
1550
|
+
...props,
|
|
1551
|
+
className: tx("status.root", "status", {
|
|
1552
|
+
indeterminate
|
|
1553
|
+
}, classNames),
|
|
1554
|
+
ref: forwardedRef
|
|
1555
|
+
}, /* @__PURE__ */ React21.createElement("span", {
|
|
1666
1556
|
role: "none",
|
|
1667
|
-
className: "
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1557
|
+
className: tx("status.bar", "status__bar", {
|
|
1558
|
+
indeterminate
|
|
1559
|
+
}, classNames),
|
|
1560
|
+
...!indeterminate && {
|
|
1671
1561
|
style: {
|
|
1672
|
-
width: `${(progress * 100)
|
|
1562
|
+
width: `${Math.round(progress * 100)}%`
|
|
1673
1563
|
}
|
|
1674
1564
|
}
|
|
1675
|
-
}));
|
|
1676
|
-
};
|
|
1565
|
+
}), children);
|
|
1566
|
+
});
|
|
1677
1567
|
|
|
1678
1568
|
// packages/ui/react-ui/src/components/ScrollArea/ScrollArea.tsx
|
|
1679
1569
|
import { Root as ScrollAreaPrimitiveRoot, Viewport as ScrollAreaPrimitiveViewport, Scrollbar as ScrollAreaPrimitiveScrollbar, Thumb as ScrollAreaPrimitiveThumb, Corner as ScrollAreaPrimitiveCorner } from "@radix-ui/react-scroll-area";
|
|
1680
|
-
import
|
|
1570
|
+
import React22, { forwardRef as forwardRef19 } from "react";
|
|
1681
1571
|
var ScrollAreaRoot = /* @__PURE__ */ forwardRef19(({ classNames, ...props }, forwardedRef) => {
|
|
1682
1572
|
const { tx } = useThemeContext();
|
|
1683
|
-
return /* @__PURE__ */
|
|
1573
|
+
return /* @__PURE__ */ React22.createElement(ScrollAreaPrimitiveRoot, {
|
|
1684
1574
|
...props,
|
|
1685
1575
|
className: tx("scrollArea.root", "scroll-area", {}, classNames),
|
|
1686
1576
|
ref: forwardedRef
|
|
@@ -1688,7 +1578,7 @@ var ScrollAreaRoot = /* @__PURE__ */ forwardRef19(({ classNames, ...props }, for
|
|
|
1688
1578
|
});
|
|
1689
1579
|
var ScrollAreaViewport = /* @__PURE__ */ forwardRef19(({ classNames, ...props }, forwardedRef) => {
|
|
1690
1580
|
const { tx } = useThemeContext();
|
|
1691
|
-
return /* @__PURE__ */
|
|
1581
|
+
return /* @__PURE__ */ React22.createElement(ScrollAreaPrimitiveViewport, {
|
|
1692
1582
|
...props,
|
|
1693
1583
|
className: tx("scrollArea.viewport", "scroll-area", {}, classNames),
|
|
1694
1584
|
ref: forwardedRef
|
|
@@ -1696,7 +1586,7 @@ var ScrollAreaViewport = /* @__PURE__ */ forwardRef19(({ classNames, ...props },
|
|
|
1696
1586
|
});
|
|
1697
1587
|
var ScrollAreaScrollbar = /* @__PURE__ */ forwardRef19(({ classNames, ...props }, forwardedRef) => {
|
|
1698
1588
|
const { tx } = useThemeContext();
|
|
1699
|
-
return /* @__PURE__ */
|
|
1589
|
+
return /* @__PURE__ */ React22.createElement(ScrollAreaPrimitiveScrollbar, {
|
|
1700
1590
|
...props,
|
|
1701
1591
|
className: tx("scrollArea.scrollbar", "scroll-area__scrollbar", {}, classNames),
|
|
1702
1592
|
ref: forwardedRef
|
|
@@ -1704,7 +1594,7 @@ var ScrollAreaScrollbar = /* @__PURE__ */ forwardRef19(({ classNames, ...props }
|
|
|
1704
1594
|
});
|
|
1705
1595
|
var ScrollAreaThumb = /* @__PURE__ */ forwardRef19(({ classNames, ...props }, forwardedRef) => {
|
|
1706
1596
|
const { tx } = useThemeContext();
|
|
1707
|
-
return /* @__PURE__ */
|
|
1597
|
+
return /* @__PURE__ */ React22.createElement(ScrollAreaPrimitiveThumb, {
|
|
1708
1598
|
...props,
|
|
1709
1599
|
className: tx("scrollArea.thumb", "scroll-area__thumb", {}, classNames),
|
|
1710
1600
|
ref: forwardedRef
|
|
@@ -1712,7 +1602,7 @@ var ScrollAreaThumb = /* @__PURE__ */ forwardRef19(({ classNames, ...props }, fo
|
|
|
1712
1602
|
});
|
|
1713
1603
|
var ScrollAreaCorner = /* @__PURE__ */ forwardRef19(({ classNames, ...props }, forwardedRef) => {
|
|
1714
1604
|
const { tx } = useThemeContext();
|
|
1715
|
-
return /* @__PURE__ */
|
|
1605
|
+
return /* @__PURE__ */ React22.createElement(ScrollAreaPrimitiveCorner, {
|
|
1716
1606
|
...props,
|
|
1717
1607
|
className: tx("scrollArea.corner", "scroll-area__corner", {}, classNames),
|
|
1718
1608
|
ref: forwardedRef
|
|
@@ -1729,27 +1619,27 @@ var ScrollArea = {
|
|
|
1729
1619
|
// packages/ui/react-ui/src/components/Select/Select.tsx
|
|
1730
1620
|
import { CaretDown as CaretDown2, CaretUp, Check as Check2 } from "@phosphor-icons/react";
|
|
1731
1621
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
1732
|
-
import
|
|
1622
|
+
import React23, { forwardRef as forwardRef20 } from "react";
|
|
1733
1623
|
var SelectRoot = SelectPrimitive.Root;
|
|
1734
1624
|
var SelectTrigger = SelectPrimitive.Trigger;
|
|
1735
1625
|
var SelectValue = SelectPrimitive.Value;
|
|
1736
1626
|
var SelectIcon = SelectPrimitive.Icon;
|
|
1737
1627
|
var SelectPortal = SelectPrimitive.Portal;
|
|
1738
1628
|
var SelectTriggerButton = /* @__PURE__ */ forwardRef20(({ placeholder, ...props }, forwardedRef) => {
|
|
1739
|
-
return /* @__PURE__ */
|
|
1629
|
+
return /* @__PURE__ */ React23.createElement(SelectPrimitive.Trigger, {
|
|
1740
1630
|
asChild: true,
|
|
1741
1631
|
ref: forwardedRef
|
|
1742
|
-
}, /* @__PURE__ */
|
|
1632
|
+
}, /* @__PURE__ */ React23.createElement(Button, props, /* @__PURE__ */ React23.createElement(SelectPrimitive.Value, {
|
|
1743
1633
|
placeholder
|
|
1744
|
-
}), /* @__PURE__ */
|
|
1634
|
+
}), /* @__PURE__ */ React23.createElement(SelectPrimitive.Icon, {
|
|
1745
1635
|
className: "pis-2"
|
|
1746
|
-
}, /* @__PURE__ */
|
|
1636
|
+
}, /* @__PURE__ */ React23.createElement(CaretDown2, {
|
|
1747
1637
|
weight: "bold"
|
|
1748
1638
|
}))));
|
|
1749
1639
|
});
|
|
1750
1640
|
var SelectContent = /* @__PURE__ */ forwardRef20(({ classNames, children, ...props }, forwardedRef) => {
|
|
1751
1641
|
const { tx } = useThemeContext();
|
|
1752
|
-
return /* @__PURE__ */
|
|
1642
|
+
return /* @__PURE__ */ React23.createElement(SelectPrimitive.Content, {
|
|
1753
1643
|
...props,
|
|
1754
1644
|
className: tx("select.content", "select__content", {}, classNames),
|
|
1755
1645
|
ref: forwardedRef
|
|
@@ -1757,28 +1647,28 @@ var SelectContent = /* @__PURE__ */ forwardRef20(({ classNames, children, ...pro
|
|
|
1757
1647
|
});
|
|
1758
1648
|
var SelectScrollUpButton2 = /* @__PURE__ */ forwardRef20(({ classNames, children, ...props }, forwardedRef) => {
|
|
1759
1649
|
const { tx } = useThemeContext();
|
|
1760
|
-
return /* @__PURE__ */
|
|
1650
|
+
return /* @__PURE__ */ React23.createElement(SelectPrimitive.SelectScrollUpButton, {
|
|
1761
1651
|
...props,
|
|
1762
1652
|
className: tx("select.scrollButton", "select__scroll-button--up", {}, classNames),
|
|
1763
1653
|
ref: forwardedRef
|
|
1764
|
-
}, children ?? /* @__PURE__ */
|
|
1654
|
+
}, children ?? /* @__PURE__ */ React23.createElement(CaretUp, {
|
|
1765
1655
|
weight: "bold"
|
|
1766
1656
|
}));
|
|
1767
1657
|
});
|
|
1768
1658
|
var SelectScrollDownButton2 = /* @__PURE__ */ forwardRef20(({ classNames, children, ...props }, forwardedRef) => {
|
|
1769
1659
|
const { tx } = useThemeContext();
|
|
1770
|
-
return /* @__PURE__ */
|
|
1660
|
+
return /* @__PURE__ */ React23.createElement(SelectPrimitive.SelectScrollDownButton, {
|
|
1771
1661
|
...props,
|
|
1772
1662
|
className: tx("select.scrollButton", "select__scroll-button--down", {}, classNames),
|
|
1773
1663
|
ref: forwardedRef
|
|
1774
|
-
}, children ?? /* @__PURE__ */
|
|
1664
|
+
}, children ?? /* @__PURE__ */ React23.createElement(CaretDown2, {
|
|
1775
1665
|
weight: "bold"
|
|
1776
1666
|
}));
|
|
1777
1667
|
});
|
|
1778
1668
|
var SelectViewport = SelectPrimitive.Viewport;
|
|
1779
1669
|
var SelectItem = /* @__PURE__ */ forwardRef20(({ classNames, ...props }, forwardedRef) => {
|
|
1780
1670
|
const { tx } = useThemeContext();
|
|
1781
|
-
return /* @__PURE__ */
|
|
1671
|
+
return /* @__PURE__ */ React23.createElement(SelectPrimitive.Item, {
|
|
1782
1672
|
...props,
|
|
1783
1673
|
className: tx("select.item", "option", {}, classNames),
|
|
1784
1674
|
ref: forwardedRef
|
|
@@ -1787,7 +1677,7 @@ var SelectItem = /* @__PURE__ */ forwardRef20(({ classNames, ...props }, forward
|
|
|
1787
1677
|
var SelectItemText = SelectPrimitive.ItemText;
|
|
1788
1678
|
var SelectItemIndicator = /* @__PURE__ */ forwardRef20(({ classNames, children, ...props }, forwardedRef) => {
|
|
1789
1679
|
const { tx } = useThemeContext();
|
|
1790
|
-
return /* @__PURE__ */
|
|
1680
|
+
return /* @__PURE__ */ React23.createElement(SelectPrimitive.ItemIndicator, {
|
|
1791
1681
|
...props,
|
|
1792
1682
|
className: tx("select.itemIndicator", "option__indicator", {}, classNames),
|
|
1793
1683
|
ref: forwardedRef
|
|
@@ -1795,13 +1685,13 @@ var SelectItemIndicator = /* @__PURE__ */ forwardRef20(({ classNames, children,
|
|
|
1795
1685
|
});
|
|
1796
1686
|
var SelectOption = /* @__PURE__ */ forwardRef20(({ children, classNames, ...props }, forwardedRef) => {
|
|
1797
1687
|
const { tx } = useThemeContext();
|
|
1798
|
-
return /* @__PURE__ */
|
|
1688
|
+
return /* @__PURE__ */ React23.createElement(SelectPrimitive.Item, {
|
|
1799
1689
|
...props,
|
|
1800
1690
|
className: tx("select.item", "option", {}, classNames),
|
|
1801
1691
|
ref: forwardedRef
|
|
1802
|
-
}, /* @__PURE__ */
|
|
1692
|
+
}, /* @__PURE__ */ React23.createElement(SelectPrimitive.ItemText, null, children), /* @__PURE__ */ React23.createElement(SelectPrimitive.ItemIndicator, {
|
|
1803
1693
|
className: tx("select.itemIndicator", "option__indicator", {})
|
|
1804
|
-
}, /* @__PURE__ */
|
|
1694
|
+
}, /* @__PURE__ */ React23.createElement(Check2, {
|
|
1805
1695
|
weight: "bold"
|
|
1806
1696
|
})));
|
|
1807
1697
|
});
|
|
@@ -1809,7 +1699,7 @@ var SelectGroup = SelectPrimitive.Group;
|
|
|
1809
1699
|
var SelectLabel = SelectPrimitive.Label;
|
|
1810
1700
|
var SelectSeparator = /* @__PURE__ */ forwardRef20(({ classNames, ...props }, forwardedRef) => {
|
|
1811
1701
|
const { tx } = useThemeContext();
|
|
1812
|
-
return /* @__PURE__ */
|
|
1702
|
+
return /* @__PURE__ */ React23.createElement(SelectPrimitive.Separator, {
|
|
1813
1703
|
...props,
|
|
1814
1704
|
className: tx("select.separator", "select__separator", {}, classNames),
|
|
1815
1705
|
ref: forwardedRef
|
|
@@ -1817,7 +1707,7 @@ var SelectSeparator = /* @__PURE__ */ forwardRef20(({ classNames, ...props }, fo
|
|
|
1817
1707
|
});
|
|
1818
1708
|
var SelectArrow = /* @__PURE__ */ forwardRef20(({ classNames, ...props }, forwardedRef) => {
|
|
1819
1709
|
const { tx } = useThemeContext();
|
|
1820
|
-
return /* @__PURE__ */
|
|
1710
|
+
return /* @__PURE__ */ React23.createElement(SelectPrimitive.Arrow, {
|
|
1821
1711
|
...props,
|
|
1822
1712
|
className: tx("select.arrow", "select__arrow", {}, classNames),
|
|
1823
1713
|
ref: forwardedRef
|
|
@@ -1846,10 +1736,10 @@ var Select = {
|
|
|
1846
1736
|
|
|
1847
1737
|
// packages/ui/react-ui/src/components/Separator/Separator.tsx
|
|
1848
1738
|
import { Separator as SeparatorPrimitive } from "@radix-ui/react-separator";
|
|
1849
|
-
import
|
|
1739
|
+
import React24 from "react";
|
|
1850
1740
|
var Separator2 = ({ classNames, orientation = "horizontal", ...props }) => {
|
|
1851
1741
|
const { tx } = useThemeContext();
|
|
1852
|
-
return /* @__PURE__ */
|
|
1742
|
+
return /* @__PURE__ */ React24.createElement(SeparatorPrimitive, {
|
|
1853
1743
|
orientation,
|
|
1854
1744
|
...props,
|
|
1855
1745
|
className: tx("separator.root", "separator", {
|
|
@@ -1861,11 +1751,11 @@ var Separator2 = ({ classNames, orientation = "horizontal", ...props }) => {
|
|
|
1861
1751
|
// packages/ui/react-ui/src/components/Tag/Tag.tsx
|
|
1862
1752
|
import { Primitive as Primitive10 } from "@radix-ui/react-primitive";
|
|
1863
1753
|
import { Slot as Slot11 } from "@radix-ui/react-slot";
|
|
1864
|
-
import
|
|
1754
|
+
import React25, { forwardRef as forwardRef21 } from "react";
|
|
1865
1755
|
var Tag = /* @__PURE__ */ forwardRef21(({ asChild, palette, classNames, ...props }, forwardedRef) => {
|
|
1866
1756
|
const { tx } = useThemeContext();
|
|
1867
1757
|
const Root3 = asChild ? Slot11 : Primitive10.span;
|
|
1868
|
-
return /* @__PURE__ */
|
|
1758
|
+
return /* @__PURE__ */ React25.createElement(Root3, {
|
|
1869
1759
|
...props,
|
|
1870
1760
|
className: tx("tag.root", "tag", {
|
|
1871
1761
|
palette
|
|
@@ -1878,31 +1768,31 @@ var Tag = /* @__PURE__ */ forwardRef21(({ asChild, palette, classNames, ...props
|
|
|
1878
1768
|
import { Primitive as Primitive11 } from "@radix-ui/react-primitive";
|
|
1879
1769
|
import { Slot as Slot12 } from "@radix-ui/react-slot";
|
|
1880
1770
|
import { ToastProvider as ToastProviderPrimitive, ToastViewport as ToastViewportPrimitive, Root as ToastRootPrimitive, ToastTitle as ToastTitlePrimitive, ToastDescription as ToastDescriptionPrimitive, ToastAction as ToastActionPrimitive, ToastClose as ToastClosePrimitive } from "@radix-ui/react-toast";
|
|
1881
|
-
import
|
|
1771
|
+
import React26, { forwardRef as forwardRef22 } from "react";
|
|
1882
1772
|
var ToastProvider = ToastProviderPrimitive;
|
|
1883
1773
|
var ToastViewport = /* @__PURE__ */ forwardRef22(({ classNames, ...props }, forwardedRef) => {
|
|
1884
1774
|
const { tx } = useThemeContext();
|
|
1885
|
-
return /* @__PURE__ */
|
|
1775
|
+
return /* @__PURE__ */ React26.createElement(ToastViewportPrimitive, {
|
|
1886
1776
|
className: tx("toast.viewport", "toast-viewport", {}, classNames),
|
|
1887
1777
|
ref: forwardedRef
|
|
1888
1778
|
});
|
|
1889
1779
|
});
|
|
1890
1780
|
var ToastRoot = /* @__PURE__ */ forwardRef22(({ classNames, children, ...props }, forwardedRef) => {
|
|
1891
1781
|
const { tx } = useThemeContext();
|
|
1892
|
-
return /* @__PURE__ */
|
|
1782
|
+
return /* @__PURE__ */ React26.createElement(ToastRootPrimitive, {
|
|
1893
1783
|
...props,
|
|
1894
1784
|
className: tx("toast.root", "toast", {}, classNames),
|
|
1895
1785
|
ref: forwardedRef
|
|
1896
|
-
}, /* @__PURE__ */
|
|
1786
|
+
}, /* @__PURE__ */ React26.createElement(ElevationProvider, {
|
|
1897
1787
|
elevation: "chrome"
|
|
1898
|
-
}, /* @__PURE__ */
|
|
1788
|
+
}, /* @__PURE__ */ React26.createElement(DensityProvider, {
|
|
1899
1789
|
density: "fine"
|
|
1900
1790
|
}, children)));
|
|
1901
1791
|
});
|
|
1902
1792
|
var ToastBody = /* @__PURE__ */ forwardRef22(({ asChild, classNames, ...props }, forwardedRef) => {
|
|
1903
1793
|
const { tx } = useThemeContext();
|
|
1904
1794
|
const Root3 = asChild ? Slot12 : Primitive11.div;
|
|
1905
|
-
return /* @__PURE__ */
|
|
1795
|
+
return /* @__PURE__ */ React26.createElement(Root3, {
|
|
1906
1796
|
...props,
|
|
1907
1797
|
className: tx("toast.body", "toast__body", {}, classNames),
|
|
1908
1798
|
ref: forwardedRef
|
|
@@ -1911,7 +1801,7 @@ var ToastBody = /* @__PURE__ */ forwardRef22(({ asChild, classNames, ...props },
|
|
|
1911
1801
|
var ToastTitle = /* @__PURE__ */ forwardRef22(({ asChild, classNames, ...props }, forwardedRef) => {
|
|
1912
1802
|
const { tx } = useThemeContext();
|
|
1913
1803
|
const Root3 = asChild ? Slot12 : ToastTitlePrimitive;
|
|
1914
|
-
return /* @__PURE__ */
|
|
1804
|
+
return /* @__PURE__ */ React26.createElement(Root3, {
|
|
1915
1805
|
...props,
|
|
1916
1806
|
className: tx("toast.title", "toast__title", {}, classNames),
|
|
1917
1807
|
ref: forwardedRef
|
|
@@ -1920,7 +1810,7 @@ var ToastTitle = /* @__PURE__ */ forwardRef22(({ asChild, classNames, ...props }
|
|
|
1920
1810
|
var ToastDescription = /* @__PURE__ */ forwardRef22(({ asChild, classNames, ...props }, forwardedRef) => {
|
|
1921
1811
|
const { tx } = useThemeContext();
|
|
1922
1812
|
const Root3 = asChild ? Slot12 : ToastDescriptionPrimitive;
|
|
1923
|
-
return /* @__PURE__ */
|
|
1813
|
+
return /* @__PURE__ */ React26.createElement(Root3, {
|
|
1924
1814
|
...props,
|
|
1925
1815
|
className: tx("toast.description", "toast__description", {}, classNames),
|
|
1926
1816
|
ref: forwardedRef
|
|
@@ -1929,7 +1819,7 @@ var ToastDescription = /* @__PURE__ */ forwardRef22(({ asChild, classNames, ...p
|
|
|
1929
1819
|
var ToastActions = /* @__PURE__ */ forwardRef22(({ asChild, classNames, ...props }, forwardedRef) => {
|
|
1930
1820
|
const { tx } = useThemeContext();
|
|
1931
1821
|
const Root3 = asChild ? Slot12 : Primitive11.div;
|
|
1932
|
-
return /* @__PURE__ */
|
|
1822
|
+
return /* @__PURE__ */ React26.createElement(Root3, {
|
|
1933
1823
|
...props,
|
|
1934
1824
|
className: tx("toast.actions", "toast__actions", {}, classNames),
|
|
1935
1825
|
ref: forwardedRef
|
|
@@ -1951,46 +1841,46 @@ var Toast = {
|
|
|
1951
1841
|
|
|
1952
1842
|
// packages/ui/react-ui/src/components/Toolbar/Toolbar.tsx
|
|
1953
1843
|
import * as ToolbarPrimitive from "@radix-ui/react-toolbar";
|
|
1954
|
-
import
|
|
1844
|
+
import React27, { forwardRef as forwardRef23 } from "react";
|
|
1955
1845
|
var ToolbarRoot = /* @__PURE__ */ forwardRef23(({ classNames, children, ...props }, forwardedRef) => {
|
|
1956
1846
|
const { tx } = useThemeContext();
|
|
1957
|
-
return /* @__PURE__ */
|
|
1847
|
+
return /* @__PURE__ */ React27.createElement(ToolbarPrimitive.Root, {
|
|
1958
1848
|
...props,
|
|
1959
1849
|
className: tx("toolbar.root", "toolbar", {}, classNames),
|
|
1960
1850
|
ref: forwardedRef
|
|
1961
1851
|
}, children);
|
|
1962
1852
|
});
|
|
1963
1853
|
var ToolbarButton = /* @__PURE__ */ forwardRef23((props, forwardedRef) => {
|
|
1964
|
-
return /* @__PURE__ */
|
|
1854
|
+
return /* @__PURE__ */ React27.createElement(ToolbarPrimitive.Button, {
|
|
1965
1855
|
asChild: true
|
|
1966
|
-
}, /* @__PURE__ */
|
|
1856
|
+
}, /* @__PURE__ */ React27.createElement(Button, {
|
|
1967
1857
|
...props,
|
|
1968
1858
|
ref: forwardedRef
|
|
1969
1859
|
}));
|
|
1970
1860
|
});
|
|
1971
1861
|
var ToolbarLink = /* @__PURE__ */ forwardRef23((props, forwardedRef) => {
|
|
1972
|
-
return /* @__PURE__ */
|
|
1862
|
+
return /* @__PURE__ */ React27.createElement(ToolbarPrimitive.Link, {
|
|
1973
1863
|
asChild: true
|
|
1974
|
-
}, /* @__PURE__ */
|
|
1864
|
+
}, /* @__PURE__ */ React27.createElement(Link, {
|
|
1975
1865
|
...props,
|
|
1976
1866
|
ref: forwardedRef
|
|
1977
1867
|
}));
|
|
1978
1868
|
});
|
|
1979
1869
|
var ToolbarToggleGroup2 = /* @__PURE__ */ forwardRef23(({ classNames, children, ...props }, forwardedRef) => {
|
|
1980
|
-
return /* @__PURE__ */
|
|
1870
|
+
return /* @__PURE__ */ React27.createElement(ToolbarPrimitive.ToolbarToggleGroup, {
|
|
1981
1871
|
...props,
|
|
1982
1872
|
asChild: true
|
|
1983
|
-
}, /* @__PURE__ */
|
|
1873
|
+
}, /* @__PURE__ */ React27.createElement(ButtonGroup, {
|
|
1984
1874
|
classNames,
|
|
1985
1875
|
children,
|
|
1986
1876
|
ref: forwardedRef
|
|
1987
1877
|
}));
|
|
1988
1878
|
});
|
|
1989
1879
|
var ToolbarToggleGroupItem = /* @__PURE__ */ forwardRef23(({ variant, density, elevation, classNames, children, ...props }, forwardedRef) => {
|
|
1990
|
-
return /* @__PURE__ */
|
|
1880
|
+
return /* @__PURE__ */ React27.createElement(ToolbarPrimitive.ToolbarToggleItem, {
|
|
1991
1881
|
...props,
|
|
1992
1882
|
asChild: true
|
|
1993
|
-
}, /* @__PURE__ */
|
|
1883
|
+
}, /* @__PURE__ */ React27.createElement(Button, {
|
|
1994
1884
|
variant,
|
|
1995
1885
|
density,
|
|
1996
1886
|
elevation,
|
|
@@ -2000,9 +1890,9 @@ var ToolbarToggleGroupItem = /* @__PURE__ */ forwardRef23(({ variant, density, e
|
|
|
2000
1890
|
}));
|
|
2001
1891
|
});
|
|
2002
1892
|
var ToolbarSeparator = (props) => {
|
|
2003
|
-
return /* @__PURE__ */
|
|
1893
|
+
return /* @__PURE__ */ React27.createElement(ToolbarPrimitive.Separator, {
|
|
2004
1894
|
asChild: true
|
|
2005
|
-
}, /* @__PURE__ */
|
|
1895
|
+
}, /* @__PURE__ */ React27.createElement(Separator2, {
|
|
2006
1896
|
orientation: "vertical",
|
|
2007
1897
|
...props
|
|
2008
1898
|
}));
|
|
@@ -2018,14 +1908,14 @@ var Toolbar = {
|
|
|
2018
1908
|
|
|
2019
1909
|
// packages/ui/react-ui/src/components/Tooltip/Tooltip.tsx
|
|
2020
1910
|
import { Provider as TooltipProviderPrimitive, Root as TooltipRootPrimitive, TooltipContent as TooltipContentPrimitive, TooltipTrigger as TooltipTriggerPrimitive, TooltipPortal as TooltipPortalPrimitive, TooltipArrow as TooltipArrowPrimitive } from "@radix-ui/react-tooltip";
|
|
2021
|
-
import
|
|
1911
|
+
import React28, { forwardRef as forwardRef24 } from "react";
|
|
2022
1912
|
var TooltipProvider = TooltipProviderPrimitive;
|
|
2023
1913
|
var TooltipRoot = TooltipRootPrimitive;
|
|
2024
1914
|
var TooltipPortal = TooltipPortalPrimitive;
|
|
2025
1915
|
var TooltipTrigger = TooltipTriggerPrimitive;
|
|
2026
1916
|
var TooltipArrow = /* @__PURE__ */ forwardRef24(({ classNames, ...props }, forwardedRef) => {
|
|
2027
1917
|
const { tx } = useThemeContext();
|
|
2028
|
-
return /* @__PURE__ */
|
|
1918
|
+
return /* @__PURE__ */ React28.createElement(TooltipArrowPrimitive, {
|
|
2029
1919
|
...props,
|
|
2030
1920
|
className: tx("tooltip.arrow", "tooltip__arrow", {}, classNames),
|
|
2031
1921
|
ref: forwardedRef
|
|
@@ -2033,7 +1923,7 @@ var TooltipArrow = /* @__PURE__ */ forwardRef24(({ classNames, ...props }, forwa
|
|
|
2033
1923
|
});
|
|
2034
1924
|
var TooltipContent = /* @__PURE__ */ forwardRef24(({ classNames, ...props }, forwardedRef) => {
|
|
2035
1925
|
const { tx } = useThemeContext();
|
|
2036
|
-
return /* @__PURE__ */
|
|
1926
|
+
return /* @__PURE__ */ React28.createElement(TooltipContentPrimitive, {
|
|
2037
1927
|
sideOffset: 4,
|
|
2038
1928
|
collisionPadding: 8,
|
|
2039
1929
|
...props,
|
|
@@ -2052,7 +1942,7 @@ var Tooltip = {
|
|
|
2052
1942
|
|
|
2053
1943
|
// packages/ui/react-ui/src/components/ThemeProvider/ThemeProvider.tsx
|
|
2054
1944
|
import { createKeyborg } from "keyborg";
|
|
2055
|
-
import
|
|
1945
|
+
import React29, { createContext as createContext10, useEffect as useEffect4 } from "react";
|
|
2056
1946
|
|
|
2057
1947
|
// packages/ui/react-ui/src/util/hasIosKeyboard.ts
|
|
2058
1948
|
var hasIosKeyboard = () => {
|
|
@@ -2080,19 +1970,19 @@ var ThemeProvider = ({ children, fallback = null, resourceExtensions, appNs, tx
|
|
|
2080
1970
|
return () => kb.unsubscribe(handleInputModalityChange);
|
|
2081
1971
|
}
|
|
2082
1972
|
}, []);
|
|
2083
|
-
return /* @__PURE__ */
|
|
1973
|
+
return /* @__PURE__ */ React29.createElement(ThemeContext.Provider, {
|
|
2084
1974
|
value: {
|
|
2085
1975
|
tx,
|
|
2086
1976
|
themeMode,
|
|
2087
1977
|
hasIosKeyboard: hasIosKeyboard()
|
|
2088
1978
|
}
|
|
2089
|
-
}, /* @__PURE__ */
|
|
1979
|
+
}, /* @__PURE__ */ React29.createElement(TranslationsProvider, {
|
|
2090
1980
|
fallback,
|
|
2091
1981
|
resourceExtensions,
|
|
2092
1982
|
appNs
|
|
2093
|
-
}, /* @__PURE__ */
|
|
1983
|
+
}, /* @__PURE__ */ React29.createElement(ElevationProvider, {
|
|
2094
1984
|
elevation: rootElevation
|
|
2095
|
-
}, /* @__PURE__ */
|
|
1985
|
+
}, /* @__PURE__ */ React29.createElement(DensityProvider, {
|
|
2096
1986
|
density: rootDensity
|
|
2097
1987
|
}, children))));
|
|
2098
1988
|
};
|
|
@@ -2106,12 +1996,6 @@ export {
|
|
|
2106
1996
|
Breadcrumb,
|
|
2107
1997
|
Button,
|
|
2108
1998
|
ButtonGroup,
|
|
2109
|
-
Card,
|
|
2110
|
-
CardBody,
|
|
2111
|
-
CardHeader,
|
|
2112
|
-
CardMedia,
|
|
2113
|
-
CardTitle,
|
|
2114
|
-
Center,
|
|
2115
1999
|
DensityContext,
|
|
2116
2000
|
DensityProvider,
|
|
2117
2001
|
Dialog,
|
|
@@ -2127,10 +2011,10 @@ export {
|
|
|
2127
2011
|
Main,
|
|
2128
2012
|
Message,
|
|
2129
2013
|
Popover,
|
|
2130
|
-
ProgressBar,
|
|
2131
2014
|
ScrollArea,
|
|
2132
2015
|
Select,
|
|
2133
2016
|
Separator2 as Separator,
|
|
2017
|
+
Status,
|
|
2134
2018
|
Tag,
|
|
2135
2019
|
ThemeContext,
|
|
2136
2020
|
ThemeProvider,
|