@dxos/react-ui 0.3.9-main.7cfe653 → 0.3.9-main.8ad5ec8
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 +172 -172
- 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/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/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 -3
- 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/Status/Status.stories.tsx +33 -0
- package/src/components/Status/Status.tsx +38 -0
- package/src/components/{Center → Status}/index.ts +1 -1
- package/src/components/index.ts +2 -3
- 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/Center/Center.stories.tsx +0 -18
- package/src/components/Center/Center.tsx +0 -16
- 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
|
|
@@ -774,26 +778,16 @@ var Card = {
|
|
|
774
778
|
Media: CardMedia
|
|
775
779
|
};
|
|
776
780
|
|
|
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
781
|
// packages/ui/react-ui/src/components/Dialogs/Dialog.tsx
|
|
788
782
|
import { createContext as createContext5 } from "@radix-ui/react-context";
|
|
789
783
|
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
|
|
784
|
+
import React13, { forwardRef as forwardRef11 } from "react";
|
|
791
785
|
var DialogRoot = DialogRootPrimitive;
|
|
792
786
|
var DialogTrigger = DialogTriggerPrimitive;
|
|
793
787
|
var DialogPortal = DialogPortalPrimitive;
|
|
794
788
|
var DialogTitle = /* @__PURE__ */ forwardRef11(({ classNames, srOnly, ...props }, forwardedRef) => {
|
|
795
789
|
const { tx } = useThemeContext();
|
|
796
|
-
return /* @__PURE__ */
|
|
790
|
+
return /* @__PURE__ */ React13.createElement(DialogTitlePrimitive, {
|
|
797
791
|
...props,
|
|
798
792
|
className: tx("dialog.title", "dialog__title", {
|
|
799
793
|
srOnly
|
|
@@ -803,7 +797,7 @@ var DialogTitle = /* @__PURE__ */ forwardRef11(({ classNames, srOnly, ...props }
|
|
|
803
797
|
});
|
|
804
798
|
var DialogDescription = /* @__PURE__ */ forwardRef11(({ classNames, srOnly, ...props }, forwardedRef) => {
|
|
805
799
|
const { tx } = useThemeContext();
|
|
806
|
-
return /* @__PURE__ */
|
|
800
|
+
return /* @__PURE__ */ React13.createElement(DialogDescriptionPrimitive, {
|
|
807
801
|
...props,
|
|
808
802
|
className: tx("dialog.description", "dialog__description", {
|
|
809
803
|
srOnly
|
|
@@ -819,11 +813,11 @@ var [OverlayLayoutProvider, useOverlayLayoutContext] = createContext5(DIALOG_OVE
|
|
|
819
813
|
});
|
|
820
814
|
var DialogOverlay = /* @__PURE__ */ forwardRef11(({ classNames, children, ...props }, forwardedRef) => {
|
|
821
815
|
const { tx } = useThemeContext();
|
|
822
|
-
return /* @__PURE__ */
|
|
816
|
+
return /* @__PURE__ */ React13.createElement(DialogOverlayPrimitive, {
|
|
823
817
|
...props,
|
|
824
818
|
className: tx("dialog.overlay", "dialog__overlay", {}, classNames),
|
|
825
819
|
ref: forwardedRef
|
|
826
|
-
}, /* @__PURE__ */
|
|
820
|
+
}, /* @__PURE__ */ React13.createElement(OverlayLayoutProvider, {
|
|
827
821
|
inOverlayLayout: true
|
|
828
822
|
}, children));
|
|
829
823
|
});
|
|
@@ -831,13 +825,13 @@ DialogOverlay.displayName = DIALOG_OVERLAY_NAME;
|
|
|
831
825
|
var DialogContent = /* @__PURE__ */ forwardRef11(({ classNames, children, ...props }, forwardedRef) => {
|
|
832
826
|
const { tx } = useThemeContext();
|
|
833
827
|
const { inOverlayLayout } = useOverlayLayoutContext(DIALOG_CONTENT_NAME);
|
|
834
|
-
return /* @__PURE__ */
|
|
828
|
+
return /* @__PURE__ */ React13.createElement(DialogContentPrimitive, {
|
|
835
829
|
...props,
|
|
836
830
|
className: tx("dialog.content", "dialog", {
|
|
837
831
|
inOverlayLayout
|
|
838
832
|
}, classNames),
|
|
839
833
|
ref: forwardedRef
|
|
840
|
-
}, /* @__PURE__ */
|
|
834
|
+
}, /* @__PURE__ */ React13.createElement(ElevationProvider, {
|
|
841
835
|
elevation: "chrome"
|
|
842
836
|
}, children));
|
|
843
837
|
});
|
|
@@ -856,7 +850,7 @@ var Dialog = {
|
|
|
856
850
|
// packages/ui/react-ui/src/components/Dialogs/AlertDialog.tsx
|
|
857
851
|
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
852
|
import { createContext as createContext6 } from "@radix-ui/react-context";
|
|
859
|
-
import
|
|
853
|
+
import React14, { forwardRef as forwardRef12 } from "react";
|
|
860
854
|
var AlertDialogRoot = AlertDialogRootPrimitive;
|
|
861
855
|
var AlertDialogTrigger = AlertDialogTriggerPrimitive;
|
|
862
856
|
var AlertDialogPortal = AlertDialogPortalPrimitive;
|
|
@@ -864,7 +858,7 @@ var AlertDialogCancel = AlertDialogCancelPrimitive;
|
|
|
864
858
|
var AlertDialogAction = AlertDialogActionPrimitive;
|
|
865
859
|
var AlertDialogTitle = /* @__PURE__ */ forwardRef12(({ classNames, srOnly, ...props }, forwardedRef) => {
|
|
866
860
|
const { tx } = useThemeContext();
|
|
867
|
-
return /* @__PURE__ */
|
|
861
|
+
return /* @__PURE__ */ React14.createElement(AlertDialogTitlePrimitive, {
|
|
868
862
|
...props,
|
|
869
863
|
className: tx("dialog.title", "dialog--alert__title", {
|
|
870
864
|
srOnly
|
|
@@ -874,7 +868,7 @@ var AlertDialogTitle = /* @__PURE__ */ forwardRef12(({ classNames, srOnly, ...pr
|
|
|
874
868
|
});
|
|
875
869
|
var AlertDialogDescription = /* @__PURE__ */ forwardRef12(({ classNames, srOnly, ...props }, forwardedRef) => {
|
|
876
870
|
const { tx } = useThemeContext();
|
|
877
|
-
return /* @__PURE__ */
|
|
871
|
+
return /* @__PURE__ */ React14.createElement(AlertDialogDescriptionPrimitive, {
|
|
878
872
|
...props,
|
|
879
873
|
className: tx("dialog.description", "dialog--alert__description", {
|
|
880
874
|
srOnly
|
|
@@ -889,11 +883,11 @@ var [OverlayLayoutProvider2, useOverlayLayoutContext2] = createContext6(ALERT_DI
|
|
|
889
883
|
});
|
|
890
884
|
var AlertDialogOverlay = /* @__PURE__ */ forwardRef12(({ classNames, children, ...props }, forwardedRef) => {
|
|
891
885
|
const { tx } = useThemeContext();
|
|
892
|
-
return /* @__PURE__ */
|
|
886
|
+
return /* @__PURE__ */ React14.createElement(AlertDialogOverlayPrimitive, {
|
|
893
887
|
...props,
|
|
894
888
|
className: tx("dialog.overlay", "dialog--alert__overlay", {}, classNames),
|
|
895
889
|
ref: forwardedRef
|
|
896
|
-
}, /* @__PURE__ */
|
|
890
|
+
}, /* @__PURE__ */ React14.createElement(OverlayLayoutProvider2, {
|
|
897
891
|
inOverlayLayout: true
|
|
898
892
|
}, children));
|
|
899
893
|
});
|
|
@@ -901,13 +895,13 @@ AlertDialogOverlay.displayName = ALERT_DIALOG_OVERLAY_NAME;
|
|
|
901
895
|
var AlertDialogContent = /* @__PURE__ */ forwardRef12(({ classNames, children, ...props }, forwardedRef) => {
|
|
902
896
|
const { tx } = useThemeContext();
|
|
903
897
|
const { inOverlayLayout } = useOverlayLayoutContext2(ALERT_DIALOG_CONTENT_NAME);
|
|
904
|
-
return /* @__PURE__ */
|
|
898
|
+
return /* @__PURE__ */ React14.createElement(AlertDialogContentPrimitive, {
|
|
905
899
|
...props,
|
|
906
900
|
className: tx("dialog.content", "dialog--alert", {
|
|
907
901
|
inOverlayLayout
|
|
908
902
|
}, classNames),
|
|
909
903
|
ref: forwardedRef
|
|
910
|
-
}, /* @__PURE__ */
|
|
904
|
+
}, /* @__PURE__ */ React14.createElement(ElevationProvider, {
|
|
911
905
|
elevation: "chrome"
|
|
912
906
|
}, children));
|
|
913
907
|
});
|
|
@@ -929,11 +923,11 @@ import { Check, Minus } from "@phosphor-icons/react";
|
|
|
929
923
|
import { Root as CheckboxPrimitive, Indicator as CheckboxIndicatorPrimitive } from "@radix-ui/react-checkbox";
|
|
930
924
|
import { Root as SwitchPrimitive, Thumb as SwitchThumbPrimitive } from "@radix-ui/react-switch";
|
|
931
925
|
import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
|
932
|
-
import
|
|
926
|
+
import React15, { forwardRef as forwardRef13, Fragment, useCallback } from "react";
|
|
933
927
|
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
928
|
var Label = /* @__PURE__ */ forwardRef13(({ srOnly, classNames, children, ...props }, forwardedRef) => {
|
|
935
929
|
const { tx } = useThemeContext();
|
|
936
|
-
return /* @__PURE__ */
|
|
930
|
+
return /* @__PURE__ */ React15.createElement(LabelPrimitive, {
|
|
937
931
|
...props,
|
|
938
932
|
className: tx("input.label", "input__label", {
|
|
939
933
|
srOnly
|
|
@@ -943,7 +937,7 @@ var Label = /* @__PURE__ */ forwardRef13(({ srOnly, classNames, children, ...pro
|
|
|
943
937
|
});
|
|
944
938
|
var Description = /* @__PURE__ */ forwardRef13(({ srOnly, classNames, children, ...props }, forwardedRef) => {
|
|
945
939
|
const { tx } = useThemeContext();
|
|
946
|
-
return /* @__PURE__ */
|
|
940
|
+
return /* @__PURE__ */ React15.createElement(DescriptionPrimitive, {
|
|
947
941
|
...props,
|
|
948
942
|
className: tx("input.description", "input__description", {
|
|
949
943
|
srOnly
|
|
@@ -954,7 +948,7 @@ var Description = /* @__PURE__ */ forwardRef13(({ srOnly, classNames, children,
|
|
|
954
948
|
var Validation = /* @__PURE__ */ forwardRef13(({ __inputScope, srOnly, classNames, children, ...props }, forwardedRef) => {
|
|
955
949
|
const { tx } = useThemeContext();
|
|
956
950
|
const { validationValence } = useInputContext(INPUT_NAME, __inputScope);
|
|
957
|
-
return /* @__PURE__ */
|
|
951
|
+
return /* @__PURE__ */ React15.createElement(ValidationPrimitive, {
|
|
958
952
|
...props,
|
|
959
953
|
className: tx("input.validation", `input__validation-message input__validation-message--${validationValence}`, {
|
|
960
954
|
srOnly,
|
|
@@ -965,7 +959,7 @@ var Validation = /* @__PURE__ */ forwardRef13(({ __inputScope, srOnly, className
|
|
|
965
959
|
});
|
|
966
960
|
var DescriptionAndValidation = /* @__PURE__ */ forwardRef13(({ srOnly, classNames, children, ...props }, forwardedRef) => {
|
|
967
961
|
const { tx } = useThemeContext();
|
|
968
|
-
return /* @__PURE__ */
|
|
962
|
+
return /* @__PURE__ */ React15.createElement(DescriptionAndValidationPrimitive, {
|
|
969
963
|
...props,
|
|
970
964
|
className: tx("input.descriptionAndValidation", "input__description-and-validation", {
|
|
971
965
|
srOnly
|
|
@@ -992,7 +986,7 @@ var PinInput = /* @__PURE__ */ forwardRef13(({ density: propsDensity, elevation:
|
|
|
992
986
|
propsElevation,
|
|
993
987
|
density
|
|
994
988
|
]);
|
|
995
|
-
return /* @__PURE__ */
|
|
989
|
+
return /* @__PURE__ */ React15.createElement(PinInputPrimitive, {
|
|
996
990
|
...props,
|
|
997
991
|
segmentClassName,
|
|
998
992
|
...props.autoFocus && !hasIosKeyboard2 && {
|
|
@@ -1010,7 +1004,7 @@ var TextInput = /* @__PURE__ */ forwardRef13(({ __inputScope, classNames, densit
|
|
|
1010
1004
|
const density = useDensityContext(propsDensity);
|
|
1011
1005
|
const elevation = useElevationContext(propsElevation);
|
|
1012
1006
|
const { validationValence } = useInputContext(INPUT_NAME, __inputScope);
|
|
1013
|
-
return /* @__PURE__ */
|
|
1007
|
+
return /* @__PURE__ */ React15.createElement(TextInputPrimitive, {
|
|
1014
1008
|
...props,
|
|
1015
1009
|
className: tx("input.input", "input", {
|
|
1016
1010
|
variant,
|
|
@@ -1031,7 +1025,7 @@ var TextArea = /* @__PURE__ */ forwardRef13(({ __inputScope, classNames, density
|
|
|
1031
1025
|
const density = useDensityContext(propsDensity);
|
|
1032
1026
|
const elevation = useElevationContext(propsElevation);
|
|
1033
1027
|
const { validationValence } = useInputContext(INPUT_NAME, __inputScope);
|
|
1034
|
-
return /* @__PURE__ */
|
|
1028
|
+
return /* @__PURE__ */ React15.createElement(TextAreaPrimitive, {
|
|
1035
1029
|
...props,
|
|
1036
1030
|
className: tx("input.input", "input--text-area", {
|
|
1037
1031
|
variant,
|
|
@@ -1055,7 +1049,7 @@ var Checkbox = /* @__PURE__ */ forwardRef13(({ __inputScope, checked: propsCheck
|
|
|
1055
1049
|
const { id, validationValence, descriptionId, errorMessageId } = useInputContext(INPUT_NAME, __inputScope);
|
|
1056
1050
|
const { tx } = useThemeContext();
|
|
1057
1051
|
const Icon2 = checked === "indeterminate" ? Minus : checked ? Check : Fragment;
|
|
1058
|
-
return /* @__PURE__ */
|
|
1052
|
+
return /* @__PURE__ */ React15.createElement(CheckboxPrimitive, {
|
|
1059
1053
|
...props,
|
|
1060
1054
|
checked,
|
|
1061
1055
|
onCheckedChange,
|
|
@@ -1069,9 +1063,9 @@ var Checkbox = /* @__PURE__ */ forwardRef13(({ __inputScope, checked: propsCheck
|
|
|
1069
1063
|
size
|
|
1070
1064
|
}, "shrink-0", classNames),
|
|
1071
1065
|
ref: forwardedRef
|
|
1072
|
-
}, /* @__PURE__ */
|
|
1066
|
+
}, /* @__PURE__ */ React15.createElement(CheckboxIndicatorPrimitive, {
|
|
1073
1067
|
asChild: true
|
|
1074
|
-
}, /* @__PURE__ */
|
|
1068
|
+
}, /* @__PURE__ */ React15.createElement(Icon2, checked && {
|
|
1075
1069
|
weight,
|
|
1076
1070
|
className: tx("input.checkboxIndicator", "input--checkbox__indicator", {
|
|
1077
1071
|
size
|
|
@@ -1086,7 +1080,7 @@ var Switch = /* @__PURE__ */ forwardRef13(({ __inputScope, checked: propsChecked
|
|
|
1086
1080
|
onChange: propsOnCheckedChange
|
|
1087
1081
|
});
|
|
1088
1082
|
const { id, validationValence, descriptionId, errorMessageId } = useInputContext(INPUT_NAME, __inputScope);
|
|
1089
|
-
return /* @__PURE__ */
|
|
1083
|
+
return /* @__PURE__ */ React15.createElement(SwitchPrimitive, {
|
|
1090
1084
|
...props,
|
|
1091
1085
|
checked,
|
|
1092
1086
|
onCheckedChange,
|
|
@@ -1100,7 +1094,7 @@ var Switch = /* @__PURE__ */ forwardRef13(({ __inputScope, checked: propsChecked
|
|
|
1100
1094
|
size
|
|
1101
1095
|
}, classNames),
|
|
1102
1096
|
ref: forwardedRef
|
|
1103
|
-
}, /* @__PURE__ */
|
|
1097
|
+
}, /* @__PURE__ */ React15.createElement(SwitchThumbPrimitive, {
|
|
1104
1098
|
className: tx("input.switchThumb", "input--switch__thumb", {
|
|
1105
1099
|
size
|
|
1106
1100
|
})
|
|
@@ -1119,30 +1113,30 @@ var Input = {
|
|
|
1119
1113
|
DescriptionAndValidation
|
|
1120
1114
|
};
|
|
1121
1115
|
|
|
1122
|
-
// packages/ui/react-ui/src/components/
|
|
1116
|
+
// packages/ui/react-ui/src/components/Lists/List.tsx
|
|
1123
1117
|
import { CaretDown, CaretRight } from "@phosphor-icons/react";
|
|
1124
1118
|
import { Slot as Slot7 } from "@radix-ui/react-slot";
|
|
1125
|
-
import
|
|
1119
|
+
import React17, { forwardRef as forwardRef14 } from "react";
|
|
1126
1120
|
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
1121
|
|
|
1128
1122
|
// packages/ui/react-ui/src/components/DensityProvider/DensityProvider.tsx
|
|
1129
|
-
import
|
|
1123
|
+
import React16, { createContext as createContext7 } from "react";
|
|
1130
1124
|
var DensityContext = /* @__PURE__ */ createContext7({
|
|
1131
1125
|
density: "coarse"
|
|
1132
1126
|
});
|
|
1133
|
-
var DensityProvider = ({ density, children }) => /* @__PURE__ */
|
|
1127
|
+
var DensityProvider = ({ density, children }) => /* @__PURE__ */ React16.createElement(DensityContext.Provider, {
|
|
1134
1128
|
value: {
|
|
1135
1129
|
density
|
|
1136
1130
|
}
|
|
1137
1131
|
}, children);
|
|
1138
1132
|
|
|
1139
|
-
// packages/ui/react-ui/src/components/
|
|
1133
|
+
// packages/ui/react-ui/src/components/Lists/List.tsx
|
|
1140
1134
|
var List = /* @__PURE__ */ forwardRef14(({ classNames, children, ...props }, forwardedRef) => {
|
|
1141
1135
|
const { tx } = useThemeContext();
|
|
1142
1136
|
const density = useDensityContext(props.density);
|
|
1143
|
-
return /* @__PURE__ */
|
|
1137
|
+
return /* @__PURE__ */ React17.createElement(DensityProvider, {
|
|
1144
1138
|
density
|
|
1145
|
-
}, /* @__PURE__ */
|
|
1139
|
+
}, /* @__PURE__ */ React17.createElement(ListPrimitive, {
|
|
1146
1140
|
...props,
|
|
1147
1141
|
className: tx("list.root", "list", {}, classNames),
|
|
1148
1142
|
ref: forwardedRef
|
|
@@ -1152,7 +1146,7 @@ var ListItemEndcap = /* @__PURE__ */ forwardRef14(({ children, classNames, asChi
|
|
|
1152
1146
|
const Root3 = asChild ? Slot7 : "div";
|
|
1153
1147
|
const density = useDensityContext();
|
|
1154
1148
|
const { tx } = useThemeContext();
|
|
1155
|
-
return /* @__PURE__ */
|
|
1149
|
+
return /* @__PURE__ */ React17.createElement(Root3, {
|
|
1156
1150
|
...!asChild && {
|
|
1157
1151
|
role: "none"
|
|
1158
1152
|
},
|
|
@@ -1166,7 +1160,7 @@ var ListItemEndcap = /* @__PURE__ */ forwardRef14(({ children, classNames, asChi
|
|
|
1166
1160
|
var MockListItemOpenTrigger = ({ classNames, ...props }) => {
|
|
1167
1161
|
const density = useDensityContext();
|
|
1168
1162
|
const { tx } = useThemeContext();
|
|
1169
|
-
return /* @__PURE__ */
|
|
1163
|
+
return /* @__PURE__ */ React17.createElement("div", {
|
|
1170
1164
|
role: "none",
|
|
1171
1165
|
...props,
|
|
1172
1166
|
className: tx("list.item.openTrigger", "list__listItem__openTrigger--mock", {
|
|
@@ -1177,7 +1171,7 @@ var MockListItemOpenTrigger = ({ classNames, ...props }) => {
|
|
|
1177
1171
|
var ListItemHeading = /* @__PURE__ */ forwardRef14(({ children, classNames, ...props }, forwardedRef) => {
|
|
1178
1172
|
const { tx } = useThemeContext();
|
|
1179
1173
|
const density = useDensityContext();
|
|
1180
|
-
return /* @__PURE__ */
|
|
1174
|
+
return /* @__PURE__ */ React17.createElement(ListPrimitiveItemHeading, {
|
|
1181
1175
|
...props,
|
|
1182
1176
|
className: tx("list.item.heading", "list__listItem__heading", {
|
|
1183
1177
|
density
|
|
@@ -1190,13 +1184,13 @@ var ListItemOpenTrigger = /* @__PURE__ */ forwardRef14(({ __listItemScope, class
|
|
|
1190
1184
|
const density = useDensityContext();
|
|
1191
1185
|
const { open } = useListItemContext(LIST_ITEM_NAME, __listItemScope);
|
|
1192
1186
|
const Icon2 = open ? CaretDown : CaretRight;
|
|
1193
|
-
return /* @__PURE__ */
|
|
1187
|
+
return /* @__PURE__ */ React17.createElement(ListPrimitiveItemOpenTrigger, {
|
|
1194
1188
|
...props,
|
|
1195
1189
|
className: tx("list.item.openTrigger", "list__listItem__openTrigger", {
|
|
1196
1190
|
density
|
|
1197
1191
|
}, classNames),
|
|
1198
1192
|
ref: forwardedRef
|
|
1199
|
-
}, children || /* @__PURE__ */
|
|
1193
|
+
}, children || /* @__PURE__ */ React17.createElement(Icon2, {
|
|
1200
1194
|
weight: "bold",
|
|
1201
1195
|
className: tx("list.item.openTriggerIcon", "list__listItem__openTrigger__icon", {})
|
|
1202
1196
|
}));
|
|
@@ -1204,7 +1198,7 @@ var ListItemOpenTrigger = /* @__PURE__ */ forwardRef14(({ __listItemScope, class
|
|
|
1204
1198
|
var ListItemRoot = /* @__PURE__ */ forwardRef14(({ classNames, children, ...props }, forwardedRef) => {
|
|
1205
1199
|
const { tx } = useThemeContext();
|
|
1206
1200
|
const density = useDensityContext();
|
|
1207
|
-
return /* @__PURE__ */
|
|
1201
|
+
return /* @__PURE__ */ React17.createElement(ListPrimitiveItem, {
|
|
1208
1202
|
...props,
|
|
1209
1203
|
className: tx("list.item.root", "list__listItem", {
|
|
1210
1204
|
density,
|
|
@@ -1222,24 +1216,24 @@ var ListItem = {
|
|
|
1222
1216
|
MockOpenTrigger: MockListItemOpenTrigger
|
|
1223
1217
|
};
|
|
1224
1218
|
|
|
1225
|
-
// packages/ui/react-ui/src/components/
|
|
1226
|
-
import
|
|
1219
|
+
// packages/ui/react-ui/src/components/Lists/Tree.tsx
|
|
1220
|
+
import React18, { forwardRef as forwardRef15 } from "react";
|
|
1227
1221
|
var TreeRoot = /* @__PURE__ */ forwardRef15((props, forwardedRef) => {
|
|
1228
|
-
return /* @__PURE__ */
|
|
1222
|
+
return /* @__PURE__ */ React18.createElement(List, {
|
|
1229
1223
|
...props,
|
|
1230
1224
|
ref: forwardedRef
|
|
1231
1225
|
});
|
|
1232
1226
|
});
|
|
1233
1227
|
var TreeBranch = /* @__PURE__ */ forwardRef15(({ __listScope, ...props }, forwardedRef) => {
|
|
1234
1228
|
const { headingId } = useListItemContext(LIST_ITEM_NAME, __listScope);
|
|
1235
|
-
return /* @__PURE__ */
|
|
1229
|
+
return /* @__PURE__ */ React18.createElement(List, {
|
|
1236
1230
|
...props,
|
|
1237
1231
|
"aria-labelledby": headingId,
|
|
1238
1232
|
ref: forwardedRef
|
|
1239
1233
|
});
|
|
1240
1234
|
});
|
|
1241
1235
|
var TreeItemRoot = /* @__PURE__ */ forwardRef15((props, forwardedRef) => {
|
|
1242
|
-
return /* @__PURE__ */
|
|
1236
|
+
return /* @__PURE__ */ React18.createElement(ListItem.Root, {
|
|
1243
1237
|
role: "treeitem",
|
|
1244
1238
|
...props,
|
|
1245
1239
|
ref: forwardedRef
|
|
@@ -1267,7 +1261,7 @@ import { Root as DialogRoot2, DialogContent as DialogContent2 } from "@radix-ui/
|
|
|
1267
1261
|
import { Primitive as Primitive7 } from "@radix-ui/react-primitive";
|
|
1268
1262
|
import { Slot as Slot8 } from "@radix-ui/react-slot";
|
|
1269
1263
|
import { useControllableState as useControllableState2 } from "@radix-ui/react-use-controllable-state";
|
|
1270
|
-
import
|
|
1264
|
+
import React19, { forwardRef as forwardRef16, useCallback as useCallback3, useRef } from "react";
|
|
1271
1265
|
import { useMediaQuery, useForwardedRef } from "@dxos/react-hooks";
|
|
1272
1266
|
|
|
1273
1267
|
// packages/ui/react-ui/src/components/Main/useSwipeToDismiss.ts
|
|
@@ -1426,7 +1420,7 @@ var MainRoot = ({ navigationSidebarOpen: propsNavigationSidebarOpen, defaultNavi
|
|
|
1426
1420
|
defaultProp: defaultComplementarySidebarOpen,
|
|
1427
1421
|
onChange: onComplementarySidebarOpenChange
|
|
1428
1422
|
});
|
|
1429
|
-
return /* @__PURE__ */
|
|
1423
|
+
return /* @__PURE__ */ React19.createElement(MainProvider, {
|
|
1430
1424
|
...props,
|
|
1431
1425
|
navigationSidebarOpen,
|
|
1432
1426
|
setNavigationSidebarOpen,
|
|
@@ -1449,10 +1443,10 @@ var MainSidebar = /* @__PURE__ */ forwardRef16(({ classNames, children, swipeToD
|
|
|
1449
1443
|
onDismiss: () => setOpen(false)
|
|
1450
1444
|
});
|
|
1451
1445
|
const Root3 = isLg ? Primitive7.div : DialogContent2;
|
|
1452
|
-
return /* @__PURE__ */
|
|
1446
|
+
return /* @__PURE__ */ React19.createElement(DialogRoot2, {
|
|
1453
1447
|
open,
|
|
1454
1448
|
modal: false
|
|
1455
|
-
}, /* @__PURE__ */
|
|
1449
|
+
}, /* @__PURE__ */ React19.createElement(Root3, {
|
|
1456
1450
|
...!isLg && {
|
|
1457
1451
|
forceMount: true,
|
|
1458
1452
|
tabIndex: -1,
|
|
@@ -1468,13 +1462,13 @@ var MainSidebar = /* @__PURE__ */ forwardRef16(({ classNames, children, swipeToD
|
|
|
1468
1462
|
inert: "true"
|
|
1469
1463
|
},
|
|
1470
1464
|
ref
|
|
1471
|
-
}, /* @__PURE__ */
|
|
1465
|
+
}, /* @__PURE__ */ React19.createElement(ElevationProvider, {
|
|
1472
1466
|
elevation: "group"
|
|
1473
1467
|
}, children)));
|
|
1474
1468
|
});
|
|
1475
1469
|
var MainNavigationSidebar = /* @__PURE__ */ forwardRef16((props, forwardedRef) => {
|
|
1476
1470
|
const { navigationSidebarOpen, setNavigationSidebarOpen } = useMainContext(NAVIGATION_SIDEBAR_NAME);
|
|
1477
|
-
return /* @__PURE__ */
|
|
1471
|
+
return /* @__PURE__ */ React19.createElement(MainSidebar, {
|
|
1478
1472
|
...props,
|
|
1479
1473
|
open: navigationSidebarOpen,
|
|
1480
1474
|
setOpen: setNavigationSidebarOpen,
|
|
@@ -1485,7 +1479,7 @@ var MainNavigationSidebar = /* @__PURE__ */ forwardRef16((props, forwardedRef) =
|
|
|
1485
1479
|
MainNavigationSidebar.displayName = NAVIGATION_SIDEBAR_NAME;
|
|
1486
1480
|
var MainComplementarySidebar = /* @__PURE__ */ forwardRef16((props, forwardedRef) => {
|
|
1487
1481
|
const { complementarySidebarOpen, setComplementarySidebarOpen } = useMainContext(COMPLEMENTARY_SIDEBAR_NAME);
|
|
1488
|
-
return /* @__PURE__ */
|
|
1482
|
+
return /* @__PURE__ */ React19.createElement(MainSidebar, {
|
|
1489
1483
|
...props,
|
|
1490
1484
|
open: complementarySidebarOpen,
|
|
1491
1485
|
setOpen: setComplementarySidebarOpen,
|
|
@@ -1501,7 +1495,7 @@ var MainContent = /* @__PURE__ */ forwardRef16(({ asChild, classNames, bounce, c
|
|
|
1501
1495
|
const { navigationSidebarOpen, complementarySidebarOpen } = useMainContext(MAIN_NAME);
|
|
1502
1496
|
const { tx } = useThemeContext();
|
|
1503
1497
|
const Root3 = asChild ? Slot8 : "main";
|
|
1504
|
-
return /* @__PURE__ */
|
|
1498
|
+
return /* @__PURE__ */ React19.createElement(Root3, {
|
|
1505
1499
|
...props,
|
|
1506
1500
|
className: tx("main.content", "main", {
|
|
1507
1501
|
isLg,
|
|
@@ -1519,7 +1513,7 @@ var MainOverlay = /* @__PURE__ */ forwardRef16(({ classNames, ...props }, forwar
|
|
|
1519
1513
|
});
|
|
1520
1514
|
const { navigationSidebarOpen, setNavigationSidebarOpen, complementarySidebarOpen, setComplementarySidebarOpen } = useMainContext(MAIN_NAME);
|
|
1521
1515
|
const { tx } = useThemeContext();
|
|
1522
|
-
return /* @__PURE__ */
|
|
1516
|
+
return /* @__PURE__ */ React19.createElement("div", {
|
|
1523
1517
|
onClick: () => {
|
|
1524
1518
|
setNavigationSidebarOpen(false);
|
|
1525
1519
|
setComplementarySidebarOpen(false);
|
|
@@ -1548,7 +1542,7 @@ var Main = {
|
|
|
1548
1542
|
import { createContext as createContext9 } from "@radix-ui/react-context";
|
|
1549
1543
|
import { Primitive as Primitive8 } from "@radix-ui/react-primitive";
|
|
1550
1544
|
import { Slot as Slot9 } from "@radix-ui/react-slot";
|
|
1551
|
-
import
|
|
1545
|
+
import React20, { forwardRef as forwardRef17 } from "react";
|
|
1552
1546
|
import { useId as useId3 } from "@dxos/react-hooks";
|
|
1553
1547
|
var MESSAGE_NAME = "Message";
|
|
1554
1548
|
var [MessageProvider, useMessageContext] = createContext9(MESSAGE_NAME);
|
|
@@ -1558,10 +1552,10 @@ var MessageRoot = /* @__PURE__ */ forwardRef17(({ asChild, valence, elevation: p
|
|
|
1558
1552
|
const descriptionId = useId3("message__description", propsDescriptionId);
|
|
1559
1553
|
const elevation = useElevationContext(propsElevation);
|
|
1560
1554
|
const Root3 = asChild ? Slot9 : Primitive8.div;
|
|
1561
|
-
return /* @__PURE__ */
|
|
1555
|
+
return /* @__PURE__ */ React20.createElement(MessageProvider, {
|
|
1562
1556
|
titleId,
|
|
1563
1557
|
descriptionId
|
|
1564
|
-
}, /* @__PURE__ */
|
|
1558
|
+
}, /* @__PURE__ */ React20.createElement(Root3, {
|
|
1565
1559
|
...props,
|
|
1566
1560
|
className: tx("message.root", "message", {
|
|
1567
1561
|
valence,
|
|
@@ -1578,7 +1572,7 @@ var MessageTitle = /* @__PURE__ */ forwardRef17(({ asChild, className, children,
|
|
|
1578
1572
|
const { tx } = useThemeContext();
|
|
1579
1573
|
const { titleId } = useMessageContext(MESSAGE_TITLE_NAME);
|
|
1580
1574
|
const Root3 = asChild ? Slot9 : Primitive8.h2;
|
|
1581
|
-
return /* @__PURE__ */
|
|
1575
|
+
return /* @__PURE__ */ React20.createElement(Root3, {
|
|
1582
1576
|
...props,
|
|
1583
1577
|
className: tx("message.title", "message__title", {}, className),
|
|
1584
1578
|
id: titleId,
|
|
@@ -1591,7 +1585,7 @@ var MessageBody = /* @__PURE__ */ forwardRef17(({ asChild, className, children,
|
|
|
1591
1585
|
const { tx } = useThemeContext();
|
|
1592
1586
|
const { descriptionId } = useMessageContext(MESSAGE_BODY_NAME);
|
|
1593
1587
|
const Root3 = asChild ? Slot9 : Primitive8.p;
|
|
1594
|
-
return /* @__PURE__ */
|
|
1588
|
+
return /* @__PURE__ */ React20.createElement(Root3, {
|
|
1595
1589
|
...props,
|
|
1596
1590
|
className: tx("message.body", "message__body", {}, className),
|
|
1597
1591
|
id: descriptionId,
|
|
@@ -1609,7 +1603,7 @@ var Message = {
|
|
|
1609
1603
|
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
1604
|
import { Primitive as Primitive9 } from "@radix-ui/react-primitive";
|
|
1611
1605
|
import { Slot as Slot10 } from "@radix-ui/react-slot";
|
|
1612
|
-
import
|
|
1606
|
+
import React21, { forwardRef as forwardRef18 } from "react";
|
|
1613
1607
|
var PopoverRoot = PopoverRootPrimitive;
|
|
1614
1608
|
var PopoverPortal = PopoverPortalPrimitive;
|
|
1615
1609
|
var PopoverTrigger = PopoverTriggerPrimitive;
|
|
@@ -1617,7 +1611,7 @@ var PopoverAnchor = PopoverAnchorPrimitive;
|
|
|
1617
1611
|
var PopoverClose = PopoverClosePrimitive;
|
|
1618
1612
|
var PopoverArrow = /* @__PURE__ */ forwardRef18(({ classNames, ...props }, forwardedRef) => {
|
|
1619
1613
|
const { tx } = useThemeContext();
|
|
1620
|
-
return /* @__PURE__ */
|
|
1614
|
+
return /* @__PURE__ */ React21.createElement(PopoverArrowPrimitive, {
|
|
1621
1615
|
...props,
|
|
1622
1616
|
className: tx("popover.arrow", "popover__arrow", {}, classNames),
|
|
1623
1617
|
ref: forwardedRef
|
|
@@ -1625,20 +1619,20 @@ var PopoverArrow = /* @__PURE__ */ forwardRef18(({ classNames, ...props }, forwa
|
|
|
1625
1619
|
});
|
|
1626
1620
|
var PopoverContent = /* @__PURE__ */ forwardRef18(({ classNames, children, ...props }, forwardedRef) => {
|
|
1627
1621
|
const { tx } = useThemeContext();
|
|
1628
|
-
return /* @__PURE__ */
|
|
1622
|
+
return /* @__PURE__ */ React21.createElement(PopoverContentPrimitive, {
|
|
1629
1623
|
sideOffset: 4,
|
|
1630
1624
|
collisionPadding: 8,
|
|
1631
1625
|
...props,
|
|
1632
1626
|
className: tx("popover.content", "popover", {}, classNames),
|
|
1633
1627
|
ref: forwardedRef
|
|
1634
|
-
}, /* @__PURE__ */
|
|
1628
|
+
}, /* @__PURE__ */ React21.createElement(ElevationProvider, {
|
|
1635
1629
|
elevation: "chrome"
|
|
1636
1630
|
}, children));
|
|
1637
1631
|
});
|
|
1638
1632
|
var PopoverViewport = /* @__PURE__ */ forwardRef18(({ classNames, asChild, constrainInline = true, constrainBlock = true, children, ...props }, forwardedRef) => {
|
|
1639
1633
|
const { tx } = useThemeContext();
|
|
1640
1634
|
const Root3 = asChild ? Slot10 : Primitive9.div;
|
|
1641
|
-
return /* @__PURE__ */
|
|
1635
|
+
return /* @__PURE__ */ React21.createElement(Root3, {
|
|
1642
1636
|
...props,
|
|
1643
1637
|
className: tx("popover.viewport", "popover__viewport", {
|
|
1644
1638
|
constrainInline,
|
|
@@ -1658,61 +1652,68 @@ var Popover = {
|
|
|
1658
1652
|
Viewport: PopoverViewport
|
|
1659
1653
|
};
|
|
1660
1654
|
|
|
1661
|
-
// packages/ui/react-ui/src/components/
|
|
1662
|
-
import
|
|
1663
|
-
var
|
|
1664
|
-
const {
|
|
1665
|
-
return /* @__PURE__ */
|
|
1655
|
+
// packages/ui/react-ui/src/components/Status/Status.tsx
|
|
1656
|
+
import React22, { forwardRef as forwardRef19 } from "react";
|
|
1657
|
+
var Status = /* @__PURE__ */ forwardRef19(({ classNames, children, progress = 0, indeterminate, ...props }, forwardedRef) => {
|
|
1658
|
+
const { tx } = useThemeContext();
|
|
1659
|
+
return /* @__PURE__ */ React22.createElement("span", {
|
|
1660
|
+
role: "status",
|
|
1661
|
+
...props,
|
|
1662
|
+
className: tx("status.root", "status", {
|
|
1663
|
+
indeterminate
|
|
1664
|
+
}, classNames),
|
|
1665
|
+
ref: forwardedRef
|
|
1666
|
+
}, /* @__PURE__ */ React22.createElement("span", {
|
|
1666
1667
|
role: "none",
|
|
1667
|
-
className: "
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1668
|
+
className: tx("status.bar", "status__bar", {
|
|
1669
|
+
indeterminate
|
|
1670
|
+
}, classNames),
|
|
1671
|
+
...!indeterminate && {
|
|
1671
1672
|
style: {
|
|
1672
|
-
width: `${(progress * 100)
|
|
1673
|
+
width: `${Math.round(progress * 100)}%`
|
|
1673
1674
|
}
|
|
1674
1675
|
}
|
|
1675
|
-
}));
|
|
1676
|
-
};
|
|
1676
|
+
}), children);
|
|
1677
|
+
});
|
|
1677
1678
|
|
|
1678
1679
|
// packages/ui/react-ui/src/components/ScrollArea/ScrollArea.tsx
|
|
1679
1680
|
import { Root as ScrollAreaPrimitiveRoot, Viewport as ScrollAreaPrimitiveViewport, Scrollbar as ScrollAreaPrimitiveScrollbar, Thumb as ScrollAreaPrimitiveThumb, Corner as ScrollAreaPrimitiveCorner } from "@radix-ui/react-scroll-area";
|
|
1680
|
-
import
|
|
1681
|
-
var ScrollAreaRoot = /* @__PURE__ */
|
|
1681
|
+
import React23, { forwardRef as forwardRef20 } from "react";
|
|
1682
|
+
var ScrollAreaRoot = /* @__PURE__ */ forwardRef20(({ classNames, ...props }, forwardedRef) => {
|
|
1682
1683
|
const { tx } = useThemeContext();
|
|
1683
|
-
return /* @__PURE__ */
|
|
1684
|
+
return /* @__PURE__ */ React23.createElement(ScrollAreaPrimitiveRoot, {
|
|
1684
1685
|
...props,
|
|
1685
1686
|
className: tx("scrollArea.root", "scroll-area", {}, classNames),
|
|
1686
1687
|
ref: forwardedRef
|
|
1687
1688
|
});
|
|
1688
1689
|
});
|
|
1689
|
-
var ScrollAreaViewport = /* @__PURE__ */
|
|
1690
|
+
var ScrollAreaViewport = /* @__PURE__ */ forwardRef20(({ classNames, ...props }, forwardedRef) => {
|
|
1690
1691
|
const { tx } = useThemeContext();
|
|
1691
|
-
return /* @__PURE__ */
|
|
1692
|
+
return /* @__PURE__ */ React23.createElement(ScrollAreaPrimitiveViewport, {
|
|
1692
1693
|
...props,
|
|
1693
1694
|
className: tx("scrollArea.viewport", "scroll-area", {}, classNames),
|
|
1694
1695
|
ref: forwardedRef
|
|
1695
1696
|
});
|
|
1696
1697
|
});
|
|
1697
|
-
var ScrollAreaScrollbar = /* @__PURE__ */
|
|
1698
|
+
var ScrollAreaScrollbar = /* @__PURE__ */ forwardRef20(({ classNames, ...props }, forwardedRef) => {
|
|
1698
1699
|
const { tx } = useThemeContext();
|
|
1699
|
-
return /* @__PURE__ */
|
|
1700
|
+
return /* @__PURE__ */ React23.createElement(ScrollAreaPrimitiveScrollbar, {
|
|
1700
1701
|
...props,
|
|
1701
1702
|
className: tx("scrollArea.scrollbar", "scroll-area__scrollbar", {}, classNames),
|
|
1702
1703
|
ref: forwardedRef
|
|
1703
1704
|
});
|
|
1704
1705
|
});
|
|
1705
|
-
var ScrollAreaThumb = /* @__PURE__ */
|
|
1706
|
+
var ScrollAreaThumb = /* @__PURE__ */ forwardRef20(({ classNames, ...props }, forwardedRef) => {
|
|
1706
1707
|
const { tx } = useThemeContext();
|
|
1707
|
-
return /* @__PURE__ */
|
|
1708
|
+
return /* @__PURE__ */ React23.createElement(ScrollAreaPrimitiveThumb, {
|
|
1708
1709
|
...props,
|
|
1709
1710
|
className: tx("scrollArea.thumb", "scroll-area__thumb", {}, classNames),
|
|
1710
1711
|
ref: forwardedRef
|
|
1711
1712
|
});
|
|
1712
1713
|
});
|
|
1713
|
-
var ScrollAreaCorner = /* @__PURE__ */
|
|
1714
|
+
var ScrollAreaCorner = /* @__PURE__ */ forwardRef20(({ classNames, ...props }, forwardedRef) => {
|
|
1714
1715
|
const { tx } = useThemeContext();
|
|
1715
|
-
return /* @__PURE__ */
|
|
1716
|
+
return /* @__PURE__ */ React23.createElement(ScrollAreaPrimitiveCorner, {
|
|
1716
1717
|
...props,
|
|
1717
1718
|
className: tx("scrollArea.corner", "scroll-area__corner", {}, classNames),
|
|
1718
1719
|
ref: forwardedRef
|
|
@@ -1729,95 +1730,95 @@ var ScrollArea = {
|
|
|
1729
1730
|
// packages/ui/react-ui/src/components/Select/Select.tsx
|
|
1730
1731
|
import { CaretDown as CaretDown2, CaretUp, Check as Check2 } from "@phosphor-icons/react";
|
|
1731
1732
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
1732
|
-
import
|
|
1733
|
+
import React24, { forwardRef as forwardRef21 } from "react";
|
|
1733
1734
|
var SelectRoot = SelectPrimitive.Root;
|
|
1734
1735
|
var SelectTrigger = SelectPrimitive.Trigger;
|
|
1735
1736
|
var SelectValue = SelectPrimitive.Value;
|
|
1736
1737
|
var SelectIcon = SelectPrimitive.Icon;
|
|
1737
1738
|
var SelectPortal = SelectPrimitive.Portal;
|
|
1738
|
-
var SelectTriggerButton = /* @__PURE__ */
|
|
1739
|
-
return /* @__PURE__ */
|
|
1739
|
+
var SelectTriggerButton = /* @__PURE__ */ forwardRef21(({ placeholder, ...props }, forwardedRef) => {
|
|
1740
|
+
return /* @__PURE__ */ React24.createElement(SelectPrimitive.Trigger, {
|
|
1740
1741
|
asChild: true,
|
|
1741
1742
|
ref: forwardedRef
|
|
1742
|
-
}, /* @__PURE__ */
|
|
1743
|
+
}, /* @__PURE__ */ React24.createElement(Button, props, /* @__PURE__ */ React24.createElement(SelectPrimitive.Value, {
|
|
1743
1744
|
placeholder
|
|
1744
|
-
}), /* @__PURE__ */
|
|
1745
|
+
}), /* @__PURE__ */ React24.createElement(SelectPrimitive.Icon, {
|
|
1745
1746
|
className: "pis-2"
|
|
1746
|
-
}, /* @__PURE__ */
|
|
1747
|
+
}, /* @__PURE__ */ React24.createElement(CaretDown2, {
|
|
1747
1748
|
weight: "bold"
|
|
1748
1749
|
}))));
|
|
1749
1750
|
});
|
|
1750
|
-
var SelectContent = /* @__PURE__ */
|
|
1751
|
+
var SelectContent = /* @__PURE__ */ forwardRef21(({ classNames, children, ...props }, forwardedRef) => {
|
|
1751
1752
|
const { tx } = useThemeContext();
|
|
1752
|
-
return /* @__PURE__ */
|
|
1753
|
+
return /* @__PURE__ */ React24.createElement(SelectPrimitive.Content, {
|
|
1753
1754
|
...props,
|
|
1754
1755
|
className: tx("select.content", "select__content", {}, classNames),
|
|
1755
1756
|
ref: forwardedRef
|
|
1756
1757
|
}, children);
|
|
1757
1758
|
});
|
|
1758
|
-
var SelectScrollUpButton2 = /* @__PURE__ */
|
|
1759
|
+
var SelectScrollUpButton2 = /* @__PURE__ */ forwardRef21(({ classNames, children, ...props }, forwardedRef) => {
|
|
1759
1760
|
const { tx } = useThemeContext();
|
|
1760
|
-
return /* @__PURE__ */
|
|
1761
|
+
return /* @__PURE__ */ React24.createElement(SelectPrimitive.SelectScrollUpButton, {
|
|
1761
1762
|
...props,
|
|
1762
1763
|
className: tx("select.scrollButton", "select__scroll-button--up", {}, classNames),
|
|
1763
1764
|
ref: forwardedRef
|
|
1764
|
-
}, children ?? /* @__PURE__ */
|
|
1765
|
+
}, children ?? /* @__PURE__ */ React24.createElement(CaretUp, {
|
|
1765
1766
|
weight: "bold"
|
|
1766
1767
|
}));
|
|
1767
1768
|
});
|
|
1768
|
-
var SelectScrollDownButton2 = /* @__PURE__ */
|
|
1769
|
+
var SelectScrollDownButton2 = /* @__PURE__ */ forwardRef21(({ classNames, children, ...props }, forwardedRef) => {
|
|
1769
1770
|
const { tx } = useThemeContext();
|
|
1770
|
-
return /* @__PURE__ */
|
|
1771
|
+
return /* @__PURE__ */ React24.createElement(SelectPrimitive.SelectScrollDownButton, {
|
|
1771
1772
|
...props,
|
|
1772
1773
|
className: tx("select.scrollButton", "select__scroll-button--down", {}, classNames),
|
|
1773
1774
|
ref: forwardedRef
|
|
1774
|
-
}, children ?? /* @__PURE__ */
|
|
1775
|
+
}, children ?? /* @__PURE__ */ React24.createElement(CaretDown2, {
|
|
1775
1776
|
weight: "bold"
|
|
1776
1777
|
}));
|
|
1777
1778
|
});
|
|
1778
1779
|
var SelectViewport = SelectPrimitive.Viewport;
|
|
1779
|
-
var SelectItem = /* @__PURE__ */
|
|
1780
|
+
var SelectItem = /* @__PURE__ */ forwardRef21(({ classNames, ...props }, forwardedRef) => {
|
|
1780
1781
|
const { tx } = useThemeContext();
|
|
1781
|
-
return /* @__PURE__ */
|
|
1782
|
+
return /* @__PURE__ */ React24.createElement(SelectPrimitive.Item, {
|
|
1782
1783
|
...props,
|
|
1783
1784
|
className: tx("select.item", "option", {}, classNames),
|
|
1784
1785
|
ref: forwardedRef
|
|
1785
1786
|
});
|
|
1786
1787
|
});
|
|
1787
1788
|
var SelectItemText = SelectPrimitive.ItemText;
|
|
1788
|
-
var SelectItemIndicator = /* @__PURE__ */
|
|
1789
|
+
var SelectItemIndicator = /* @__PURE__ */ forwardRef21(({ classNames, children, ...props }, forwardedRef) => {
|
|
1789
1790
|
const { tx } = useThemeContext();
|
|
1790
|
-
return /* @__PURE__ */
|
|
1791
|
+
return /* @__PURE__ */ React24.createElement(SelectPrimitive.ItemIndicator, {
|
|
1791
1792
|
...props,
|
|
1792
1793
|
className: tx("select.itemIndicator", "option__indicator", {}, classNames),
|
|
1793
1794
|
ref: forwardedRef
|
|
1794
1795
|
}, children);
|
|
1795
1796
|
});
|
|
1796
|
-
var SelectOption = /* @__PURE__ */
|
|
1797
|
+
var SelectOption = /* @__PURE__ */ forwardRef21(({ children, classNames, ...props }, forwardedRef) => {
|
|
1797
1798
|
const { tx } = useThemeContext();
|
|
1798
|
-
return /* @__PURE__ */
|
|
1799
|
+
return /* @__PURE__ */ React24.createElement(SelectPrimitive.Item, {
|
|
1799
1800
|
...props,
|
|
1800
1801
|
className: tx("select.item", "option", {}, classNames),
|
|
1801
1802
|
ref: forwardedRef
|
|
1802
|
-
}, /* @__PURE__ */
|
|
1803
|
+
}, /* @__PURE__ */ React24.createElement(SelectPrimitive.ItemText, null, children), /* @__PURE__ */ React24.createElement(SelectPrimitive.ItemIndicator, {
|
|
1803
1804
|
className: tx("select.itemIndicator", "option__indicator", {})
|
|
1804
|
-
}, /* @__PURE__ */
|
|
1805
|
+
}, /* @__PURE__ */ React24.createElement(Check2, {
|
|
1805
1806
|
weight: "bold"
|
|
1806
1807
|
})));
|
|
1807
1808
|
});
|
|
1808
1809
|
var SelectGroup = SelectPrimitive.Group;
|
|
1809
1810
|
var SelectLabel = SelectPrimitive.Label;
|
|
1810
|
-
var SelectSeparator = /* @__PURE__ */
|
|
1811
|
+
var SelectSeparator = /* @__PURE__ */ forwardRef21(({ classNames, ...props }, forwardedRef) => {
|
|
1811
1812
|
const { tx } = useThemeContext();
|
|
1812
|
-
return /* @__PURE__ */
|
|
1813
|
+
return /* @__PURE__ */ React24.createElement(SelectPrimitive.Separator, {
|
|
1813
1814
|
...props,
|
|
1814
1815
|
className: tx("select.separator", "select__separator", {}, classNames),
|
|
1815
1816
|
ref: forwardedRef
|
|
1816
1817
|
});
|
|
1817
1818
|
});
|
|
1818
|
-
var SelectArrow = /* @__PURE__ */
|
|
1819
|
+
var SelectArrow = /* @__PURE__ */ forwardRef21(({ classNames, ...props }, forwardedRef) => {
|
|
1819
1820
|
const { tx } = useThemeContext();
|
|
1820
|
-
return /* @__PURE__ */
|
|
1821
|
+
return /* @__PURE__ */ React24.createElement(SelectPrimitive.Arrow, {
|
|
1821
1822
|
...props,
|
|
1822
1823
|
className: tx("select.arrow", "select__arrow", {}, classNames),
|
|
1823
1824
|
ref: forwardedRef
|
|
@@ -1846,10 +1847,10 @@ var Select = {
|
|
|
1846
1847
|
|
|
1847
1848
|
// packages/ui/react-ui/src/components/Separator/Separator.tsx
|
|
1848
1849
|
import { Separator as SeparatorPrimitive } from "@radix-ui/react-separator";
|
|
1849
|
-
import
|
|
1850
|
+
import React25 from "react";
|
|
1850
1851
|
var Separator2 = ({ classNames, orientation = "horizontal", ...props }) => {
|
|
1851
1852
|
const { tx } = useThemeContext();
|
|
1852
|
-
return /* @__PURE__ */
|
|
1853
|
+
return /* @__PURE__ */ React25.createElement(SeparatorPrimitive, {
|
|
1853
1854
|
orientation,
|
|
1854
1855
|
...props,
|
|
1855
1856
|
className: tx("separator.root", "separator", {
|
|
@@ -1861,11 +1862,11 @@ var Separator2 = ({ classNames, orientation = "horizontal", ...props }) => {
|
|
|
1861
1862
|
// packages/ui/react-ui/src/components/Tag/Tag.tsx
|
|
1862
1863
|
import { Primitive as Primitive10 } from "@radix-ui/react-primitive";
|
|
1863
1864
|
import { Slot as Slot11 } from "@radix-ui/react-slot";
|
|
1864
|
-
import
|
|
1865
|
-
var Tag = /* @__PURE__ */
|
|
1865
|
+
import React26, { forwardRef as forwardRef22 } from "react";
|
|
1866
|
+
var Tag = /* @__PURE__ */ forwardRef22(({ asChild, palette, classNames, ...props }, forwardedRef) => {
|
|
1866
1867
|
const { tx } = useThemeContext();
|
|
1867
1868
|
const Root3 = asChild ? Slot11 : Primitive10.span;
|
|
1868
|
-
return /* @__PURE__ */
|
|
1869
|
+
return /* @__PURE__ */ React26.createElement(Root3, {
|
|
1869
1870
|
...props,
|
|
1870
1871
|
className: tx("tag.root", "tag", {
|
|
1871
1872
|
palette
|
|
@@ -1878,58 +1879,58 @@ var Tag = /* @__PURE__ */ forwardRef21(({ asChild, palette, classNames, ...props
|
|
|
1878
1879
|
import { Primitive as Primitive11 } from "@radix-ui/react-primitive";
|
|
1879
1880
|
import { Slot as Slot12 } from "@radix-ui/react-slot";
|
|
1880
1881
|
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
|
|
1882
|
+
import React27, { forwardRef as forwardRef23 } from "react";
|
|
1882
1883
|
var ToastProvider = ToastProviderPrimitive;
|
|
1883
|
-
var ToastViewport = /* @__PURE__ */
|
|
1884
|
+
var ToastViewport = /* @__PURE__ */ forwardRef23(({ classNames, ...props }, forwardedRef) => {
|
|
1884
1885
|
const { tx } = useThemeContext();
|
|
1885
|
-
return /* @__PURE__ */
|
|
1886
|
+
return /* @__PURE__ */ React27.createElement(ToastViewportPrimitive, {
|
|
1886
1887
|
className: tx("toast.viewport", "toast-viewport", {}, classNames),
|
|
1887
1888
|
ref: forwardedRef
|
|
1888
1889
|
});
|
|
1889
1890
|
});
|
|
1890
|
-
var ToastRoot = /* @__PURE__ */
|
|
1891
|
+
var ToastRoot = /* @__PURE__ */ forwardRef23(({ classNames, children, ...props }, forwardedRef) => {
|
|
1891
1892
|
const { tx } = useThemeContext();
|
|
1892
|
-
return /* @__PURE__ */
|
|
1893
|
+
return /* @__PURE__ */ React27.createElement(ToastRootPrimitive, {
|
|
1893
1894
|
...props,
|
|
1894
1895
|
className: tx("toast.root", "toast", {}, classNames),
|
|
1895
1896
|
ref: forwardedRef
|
|
1896
|
-
}, /* @__PURE__ */
|
|
1897
|
+
}, /* @__PURE__ */ React27.createElement(ElevationProvider, {
|
|
1897
1898
|
elevation: "chrome"
|
|
1898
|
-
}, /* @__PURE__ */
|
|
1899
|
+
}, /* @__PURE__ */ React27.createElement(DensityProvider, {
|
|
1899
1900
|
density: "fine"
|
|
1900
1901
|
}, children)));
|
|
1901
1902
|
});
|
|
1902
|
-
var ToastBody = /* @__PURE__ */
|
|
1903
|
+
var ToastBody = /* @__PURE__ */ forwardRef23(({ asChild, classNames, ...props }, forwardedRef) => {
|
|
1903
1904
|
const { tx } = useThemeContext();
|
|
1904
1905
|
const Root3 = asChild ? Slot12 : Primitive11.div;
|
|
1905
|
-
return /* @__PURE__ */
|
|
1906
|
+
return /* @__PURE__ */ React27.createElement(Root3, {
|
|
1906
1907
|
...props,
|
|
1907
1908
|
className: tx("toast.body", "toast__body", {}, classNames),
|
|
1908
1909
|
ref: forwardedRef
|
|
1909
1910
|
});
|
|
1910
1911
|
});
|
|
1911
|
-
var ToastTitle = /* @__PURE__ */
|
|
1912
|
+
var ToastTitle = /* @__PURE__ */ forwardRef23(({ asChild, classNames, ...props }, forwardedRef) => {
|
|
1912
1913
|
const { tx } = useThemeContext();
|
|
1913
1914
|
const Root3 = asChild ? Slot12 : ToastTitlePrimitive;
|
|
1914
|
-
return /* @__PURE__ */
|
|
1915
|
+
return /* @__PURE__ */ React27.createElement(Root3, {
|
|
1915
1916
|
...props,
|
|
1916
1917
|
className: tx("toast.title", "toast__title", {}, classNames),
|
|
1917
1918
|
ref: forwardedRef
|
|
1918
1919
|
});
|
|
1919
1920
|
});
|
|
1920
|
-
var ToastDescription = /* @__PURE__ */
|
|
1921
|
+
var ToastDescription = /* @__PURE__ */ forwardRef23(({ asChild, classNames, ...props }, forwardedRef) => {
|
|
1921
1922
|
const { tx } = useThemeContext();
|
|
1922
1923
|
const Root3 = asChild ? Slot12 : ToastDescriptionPrimitive;
|
|
1923
|
-
return /* @__PURE__ */
|
|
1924
|
+
return /* @__PURE__ */ React27.createElement(Root3, {
|
|
1924
1925
|
...props,
|
|
1925
1926
|
className: tx("toast.description", "toast__description", {}, classNames),
|
|
1926
1927
|
ref: forwardedRef
|
|
1927
1928
|
});
|
|
1928
1929
|
});
|
|
1929
|
-
var ToastActions = /* @__PURE__ */
|
|
1930
|
+
var ToastActions = /* @__PURE__ */ forwardRef23(({ asChild, classNames, ...props }, forwardedRef) => {
|
|
1930
1931
|
const { tx } = useThemeContext();
|
|
1931
1932
|
const Root3 = asChild ? Slot12 : Primitive11.div;
|
|
1932
|
-
return /* @__PURE__ */
|
|
1933
|
+
return /* @__PURE__ */ React27.createElement(Root3, {
|
|
1933
1934
|
...props,
|
|
1934
1935
|
className: tx("toast.actions", "toast__actions", {}, classNames),
|
|
1935
1936
|
ref: forwardedRef
|
|
@@ -1951,46 +1952,46 @@ var Toast = {
|
|
|
1951
1952
|
|
|
1952
1953
|
// packages/ui/react-ui/src/components/Toolbar/Toolbar.tsx
|
|
1953
1954
|
import * as ToolbarPrimitive from "@radix-ui/react-toolbar";
|
|
1954
|
-
import
|
|
1955
|
-
var ToolbarRoot = /* @__PURE__ */
|
|
1955
|
+
import React28, { forwardRef as forwardRef24 } from "react";
|
|
1956
|
+
var ToolbarRoot = /* @__PURE__ */ forwardRef24(({ classNames, children, ...props }, forwardedRef) => {
|
|
1956
1957
|
const { tx } = useThemeContext();
|
|
1957
|
-
return /* @__PURE__ */
|
|
1958
|
+
return /* @__PURE__ */ React28.createElement(ToolbarPrimitive.Root, {
|
|
1958
1959
|
...props,
|
|
1959
1960
|
className: tx("toolbar.root", "toolbar", {}, classNames),
|
|
1960
1961
|
ref: forwardedRef
|
|
1961
1962
|
}, children);
|
|
1962
1963
|
});
|
|
1963
|
-
var ToolbarButton = /* @__PURE__ */
|
|
1964
|
-
return /* @__PURE__ */
|
|
1964
|
+
var ToolbarButton = /* @__PURE__ */ forwardRef24((props, forwardedRef) => {
|
|
1965
|
+
return /* @__PURE__ */ React28.createElement(ToolbarPrimitive.Button, {
|
|
1965
1966
|
asChild: true
|
|
1966
|
-
}, /* @__PURE__ */
|
|
1967
|
+
}, /* @__PURE__ */ React28.createElement(Button, {
|
|
1967
1968
|
...props,
|
|
1968
1969
|
ref: forwardedRef
|
|
1969
1970
|
}));
|
|
1970
1971
|
});
|
|
1971
|
-
var ToolbarLink = /* @__PURE__ */
|
|
1972
|
-
return /* @__PURE__ */
|
|
1972
|
+
var ToolbarLink = /* @__PURE__ */ forwardRef24((props, forwardedRef) => {
|
|
1973
|
+
return /* @__PURE__ */ React28.createElement(ToolbarPrimitive.Link, {
|
|
1973
1974
|
asChild: true
|
|
1974
|
-
}, /* @__PURE__ */
|
|
1975
|
+
}, /* @__PURE__ */ React28.createElement(Link, {
|
|
1975
1976
|
...props,
|
|
1976
1977
|
ref: forwardedRef
|
|
1977
1978
|
}));
|
|
1978
1979
|
});
|
|
1979
|
-
var ToolbarToggleGroup2 = /* @__PURE__ */
|
|
1980
|
-
return /* @__PURE__ */
|
|
1980
|
+
var ToolbarToggleGroup2 = /* @__PURE__ */ forwardRef24(({ classNames, children, ...props }, forwardedRef) => {
|
|
1981
|
+
return /* @__PURE__ */ React28.createElement(ToolbarPrimitive.ToolbarToggleGroup, {
|
|
1981
1982
|
...props,
|
|
1982
1983
|
asChild: true
|
|
1983
|
-
}, /* @__PURE__ */
|
|
1984
|
+
}, /* @__PURE__ */ React28.createElement(ButtonGroup, {
|
|
1984
1985
|
classNames,
|
|
1985
1986
|
children,
|
|
1986
1987
|
ref: forwardedRef
|
|
1987
1988
|
}));
|
|
1988
1989
|
});
|
|
1989
|
-
var ToolbarToggleGroupItem = /* @__PURE__ */
|
|
1990
|
-
return /* @__PURE__ */
|
|
1990
|
+
var ToolbarToggleGroupItem = /* @__PURE__ */ forwardRef24(({ variant, density, elevation, classNames, children, ...props }, forwardedRef) => {
|
|
1991
|
+
return /* @__PURE__ */ React28.createElement(ToolbarPrimitive.ToolbarToggleItem, {
|
|
1991
1992
|
...props,
|
|
1992
1993
|
asChild: true
|
|
1993
|
-
}, /* @__PURE__ */
|
|
1994
|
+
}, /* @__PURE__ */ React28.createElement(Button, {
|
|
1994
1995
|
variant,
|
|
1995
1996
|
density,
|
|
1996
1997
|
elevation,
|
|
@@ -2000,9 +2001,9 @@ var ToolbarToggleGroupItem = /* @__PURE__ */ forwardRef23(({ variant, density, e
|
|
|
2000
2001
|
}));
|
|
2001
2002
|
});
|
|
2002
2003
|
var ToolbarSeparator = (props) => {
|
|
2003
|
-
return /* @__PURE__ */
|
|
2004
|
+
return /* @__PURE__ */ React28.createElement(ToolbarPrimitive.Separator, {
|
|
2004
2005
|
asChild: true
|
|
2005
|
-
}, /* @__PURE__ */
|
|
2006
|
+
}, /* @__PURE__ */ React28.createElement(Separator2, {
|
|
2006
2007
|
orientation: "vertical",
|
|
2007
2008
|
...props
|
|
2008
2009
|
}));
|
|
@@ -2018,22 +2019,22 @@ var Toolbar = {
|
|
|
2018
2019
|
|
|
2019
2020
|
// packages/ui/react-ui/src/components/Tooltip/Tooltip.tsx
|
|
2020
2021
|
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
|
|
2022
|
+
import React29, { forwardRef as forwardRef25 } from "react";
|
|
2022
2023
|
var TooltipProvider = TooltipProviderPrimitive;
|
|
2023
2024
|
var TooltipRoot = TooltipRootPrimitive;
|
|
2024
2025
|
var TooltipPortal = TooltipPortalPrimitive;
|
|
2025
2026
|
var TooltipTrigger = TooltipTriggerPrimitive;
|
|
2026
|
-
var TooltipArrow = /* @__PURE__ */
|
|
2027
|
+
var TooltipArrow = /* @__PURE__ */ forwardRef25(({ classNames, ...props }, forwardedRef) => {
|
|
2027
2028
|
const { tx } = useThemeContext();
|
|
2028
|
-
return /* @__PURE__ */
|
|
2029
|
+
return /* @__PURE__ */ React29.createElement(TooltipArrowPrimitive, {
|
|
2029
2030
|
...props,
|
|
2030
2031
|
className: tx("tooltip.arrow", "tooltip__arrow", {}, classNames),
|
|
2031
2032
|
ref: forwardedRef
|
|
2032
2033
|
});
|
|
2033
2034
|
});
|
|
2034
|
-
var TooltipContent = /* @__PURE__ */
|
|
2035
|
+
var TooltipContent = /* @__PURE__ */ forwardRef25(({ classNames, ...props }, forwardedRef) => {
|
|
2035
2036
|
const { tx } = useThemeContext();
|
|
2036
|
-
return /* @__PURE__ */
|
|
2037
|
+
return /* @__PURE__ */ React29.createElement(TooltipContentPrimitive, {
|
|
2037
2038
|
sideOffset: 4,
|
|
2038
2039
|
collisionPadding: 8,
|
|
2039
2040
|
...props,
|
|
@@ -2052,7 +2053,7 @@ var Tooltip = {
|
|
|
2052
2053
|
|
|
2053
2054
|
// packages/ui/react-ui/src/components/ThemeProvider/ThemeProvider.tsx
|
|
2054
2055
|
import { createKeyborg } from "keyborg";
|
|
2055
|
-
import
|
|
2056
|
+
import React30, { createContext as createContext10, useEffect as useEffect4 } from "react";
|
|
2056
2057
|
|
|
2057
2058
|
// packages/ui/react-ui/src/util/hasIosKeyboard.ts
|
|
2058
2059
|
var hasIosKeyboard = () => {
|
|
@@ -2080,19 +2081,19 @@ var ThemeProvider = ({ children, fallback = null, resourceExtensions, appNs, tx
|
|
|
2080
2081
|
return () => kb.unsubscribe(handleInputModalityChange);
|
|
2081
2082
|
}
|
|
2082
2083
|
}, []);
|
|
2083
|
-
return /* @__PURE__ */
|
|
2084
|
+
return /* @__PURE__ */ React30.createElement(ThemeContext.Provider, {
|
|
2084
2085
|
value: {
|
|
2085
2086
|
tx,
|
|
2086
2087
|
themeMode,
|
|
2087
2088
|
hasIosKeyboard: hasIosKeyboard()
|
|
2088
2089
|
}
|
|
2089
|
-
}, /* @__PURE__ */
|
|
2090
|
+
}, /* @__PURE__ */ React30.createElement(TranslationsProvider, {
|
|
2090
2091
|
fallback,
|
|
2091
2092
|
resourceExtensions,
|
|
2092
2093
|
appNs
|
|
2093
|
-
}, /* @__PURE__ */
|
|
2094
|
+
}, /* @__PURE__ */ React30.createElement(ElevationProvider, {
|
|
2094
2095
|
elevation: rootElevation
|
|
2095
|
-
}, /* @__PURE__ */
|
|
2096
|
+
}, /* @__PURE__ */ React30.createElement(DensityProvider, {
|
|
2096
2097
|
density: rootDensity
|
|
2097
2098
|
}, children))));
|
|
2098
2099
|
};
|
|
@@ -2111,7 +2112,6 @@ export {
|
|
|
2111
2112
|
CardHeader,
|
|
2112
2113
|
CardMedia,
|
|
2113
2114
|
CardTitle,
|
|
2114
|
-
Center,
|
|
2115
2115
|
DensityContext,
|
|
2116
2116
|
DensityProvider,
|
|
2117
2117
|
Dialog,
|
|
@@ -2127,10 +2127,10 @@ export {
|
|
|
2127
2127
|
Main,
|
|
2128
2128
|
Message,
|
|
2129
2129
|
Popover,
|
|
2130
|
-
ProgressBar,
|
|
2131
2130
|
ScrollArea,
|
|
2132
2131
|
Select,
|
|
2133
2132
|
Separator2 as Separator,
|
|
2133
|
+
Status,
|
|
2134
2134
|
Tag,
|
|
2135
2135
|
ThemeContext,
|
|
2136
2136
|
ThemeProvider,
|