@dxos/react-ui 0.7.3-staging.cc8dd3e → 0.7.3-staging.d887a4b

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.
@@ -688,29 +688,182 @@ var ToggleGroupItem = /* @__PURE__ */ forwardRef11(({ variant, elevation, densit
688
688
  }));
689
689
  });
690
690
 
691
- // packages/ui/react-ui/src/components/Dialogs/Dialog.tsx
692
- import { createContext as createContext5 } from "@radix-ui/react-context";
693
- 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";
694
- import React14, { forwardRef as forwardRef12 } from "react";
691
+ // packages/ui/react-ui/src/components/Clipboard/ClipboardProvider.tsx
692
+ import React13, { createContext as createContext4, useCallback, useContext as useContext6, useState as useState3 } from "react";
693
+ var ClipboardContext = /* @__PURE__ */ createContext4({
694
+ textValue: "",
695
+ setTextValue: async (_) => {
696
+ }
697
+ });
698
+ var useClipboard = () => useContext6(ClipboardContext);
699
+ var ClipboardProvider = ({ children }) => {
700
+ const [textValue, setInternalTextValue] = useState3("");
701
+ const setTextValue = useCallback(async (nextValue) => {
702
+ await navigator.clipboard.writeText(nextValue);
703
+ return setInternalTextValue(nextValue);
704
+ }, []);
705
+ return /* @__PURE__ */ React13.createElement(ClipboardContext.Provider, {
706
+ value: {
707
+ textValue,
708
+ setTextValue
709
+ }
710
+ }, children);
711
+ };
712
+
713
+ // packages/ui/react-ui/src/components/Clipboard/CopyButton.tsx
714
+ import React17, { useState as useState4 } from "react";
715
+ import { mx } from "@dxos/react-ui-theme";
716
+
717
+ // packages/ui/react-ui/src/components/ThemeProvider/ThemeProvider.tsx
718
+ import { createKeyborg } from "keyborg";
719
+ import React16, { createContext as createContext7, useEffect as useEffect3 } from "react";
720
+
721
+ // packages/ui/react-ui/src/util/hasIosKeyboard.ts
722
+ var hasIosKeyboard = () => {
723
+ return !!navigator.userAgent.match(/iP(ad|od|hone).+Safari/);
724
+ };
725
+
726
+ // packages/ui/react-ui/src/components/DensityProvider/DensityProvider.tsx
727
+ import React14, { createContext as createContext5 } from "react";
728
+ var DensityContext = /* @__PURE__ */ createContext5({
729
+ density: "fine"
730
+ });
731
+ var DensityProvider = ({ density, children }) => /* @__PURE__ */ React14.createElement(DensityContext.Provider, {
732
+ value: {
733
+ density
734
+ }
735
+ }, children);
695
736
 
696
737
  // packages/ui/react-ui/src/components/ElevationProvider/ElevationProvider.tsx
697
- import React13, { createContext as createContext4 } from "react";
698
- var ElevationContext = /* @__PURE__ */ createContext4({
738
+ import React15, { createContext as createContext6 } from "react";
739
+ var ElevationContext = /* @__PURE__ */ createContext6({
699
740
  elevation: "base"
700
741
  });
701
- var ElevationProvider = ({ elevation, children }) => /* @__PURE__ */ React13.createElement(ElevationContext.Provider, {
742
+ var ElevationProvider = ({ elevation, children }) => /* @__PURE__ */ React15.createElement(ElevationContext.Provider, {
702
743
  value: {
703
744
  elevation
704
745
  }
705
746
  }, children);
706
747
 
748
+ // packages/ui/react-ui/src/components/ThemeProvider/ThemeProvider.tsx
749
+ var ThemeContext = /* @__PURE__ */ createContext7(void 0);
750
+ var ThemeProvider = ({ children, fallback = null, resourceExtensions, appNs, tx = (_path, defaultClassName, _styleProps, ..._options) => defaultClassName, themeMode = "dark", rootDensity = "fine", rootElevation = "base", ...rest }) => {
751
+ useEffect3(() => {
752
+ if (document.defaultView) {
753
+ const kb = createKeyborg(document.defaultView);
754
+ kb.subscribe(handleInputModalityChange);
755
+ return () => kb.unsubscribe(handleInputModalityChange);
756
+ }
757
+ }, []);
758
+ return /* @__PURE__ */ React16.createElement(ThemeContext.Provider, {
759
+ value: {
760
+ tx,
761
+ themeMode,
762
+ hasIosKeyboard: hasIosKeyboard(),
763
+ ...rest
764
+ }
765
+ }, /* @__PURE__ */ React16.createElement(TranslationsProvider, {
766
+ fallback,
767
+ resourceExtensions,
768
+ appNs
769
+ }, /* @__PURE__ */ React16.createElement(ElevationProvider, {
770
+ elevation: rootElevation
771
+ }, /* @__PURE__ */ React16.createElement(DensityProvider, {
772
+ density: rootDensity
773
+ }, children))));
774
+ };
775
+ var handleInputModalityChange = (isUsingKeyboard) => {
776
+ if (isUsingKeyboard) {
777
+ document.body.setAttribute("data-is-keyboard", "true");
778
+ } else {
779
+ document.body.removeAttribute("data-is-keyboard");
780
+ }
781
+ };
782
+
783
+ // packages/ui/react-ui/src/components/Clipboard/CopyButton.tsx
784
+ var inactiveLabelStyles = "invisible bs-px -mbe-px overflow-hidden";
785
+ var CopyButton = ({ value, classNames, iconProps, ...props }) => {
786
+ const { t } = useTranslation("os");
787
+ const { textValue, setTextValue } = useClipboard();
788
+ const isCopied = textValue === value;
789
+ return /* @__PURE__ */ React17.createElement(Button, {
790
+ ...props,
791
+ classNames: [
792
+ "inline-flex flex-col justify-center",
793
+ classNames
794
+ ],
795
+ onClick: () => setTextValue(value),
796
+ "data-testid": "copy-invitation"
797
+ }, /* @__PURE__ */ React17.createElement("div", {
798
+ role: "none",
799
+ className: mx("flex gap-1 items-center", isCopied && inactiveLabelStyles)
800
+ }, /* @__PURE__ */ React17.createElement("span", {
801
+ className: "pli-1"
802
+ }, t("copy label")), /* @__PURE__ */ React17.createElement(Icon, {
803
+ icon: "ph--copy--regular",
804
+ size: 5,
805
+ ...iconProps
806
+ })), /* @__PURE__ */ React17.createElement("div", {
807
+ role: "none",
808
+ className: mx("flex gap-1 items-center", !isCopied && inactiveLabelStyles)
809
+ }, /* @__PURE__ */ React17.createElement("span", {
810
+ className: "pli-1"
811
+ }, t("copy success label")), /* @__PURE__ */ React17.createElement(Icon, {
812
+ icon: "ph--check--regular",
813
+ size: 5,
814
+ ...iconProps
815
+ })));
816
+ };
817
+ var CopyButtonIconOnly = ({ value, classNames, iconProps, variant, ...props }) => {
818
+ const { t } = useTranslation("os");
819
+ const { textValue, setTextValue } = useClipboard();
820
+ const isCopied = textValue === value;
821
+ const label = isCopied ? t("copy success label") : t("copy label");
822
+ const [open, setOpen] = useState4(false);
823
+ return /* @__PURE__ */ React17.createElement(Tooltip.Root, {
824
+ delayDuration: 1500,
825
+ open,
826
+ onOpenChange: setOpen
827
+ }, /* @__PURE__ */ React17.createElement(Tooltip.Portal, null, /* @__PURE__ */ React17.createElement(Tooltip.Content, {
828
+ side: "bottom",
829
+ sideOffset: 12,
830
+ classNames: "z-30"
831
+ }, /* @__PURE__ */ React17.createElement("span", null, label), /* @__PURE__ */ React17.createElement(Tooltip.Arrow, null))), /* @__PURE__ */ React17.createElement(Tooltip.Trigger, {
832
+ "aria-label": label,
833
+ ...props,
834
+ onClick: () => setTextValue(value).then(() => setOpen(true)),
835
+ "data-testid": "copy-invitation",
836
+ asChild: true
837
+ }, /* @__PURE__ */ React17.createElement(Button, {
838
+ variant,
839
+ classNames: [
840
+ "inline-flex flex-col justify-center",
841
+ classNames
842
+ ]
843
+ }, /* @__PURE__ */ React17.createElement(Icon, {
844
+ icon: "ph--copy--regular",
845
+ size: 5,
846
+ ...iconProps
847
+ }))));
848
+ };
849
+
850
+ // packages/ui/react-ui/src/components/Clipboard/index.ts
851
+ var Clipboard = {
852
+ Button: CopyButton,
853
+ IconButton: CopyButtonIconOnly,
854
+ Provider: ClipboardProvider
855
+ };
856
+
707
857
  // packages/ui/react-ui/src/components/Dialogs/Dialog.tsx
858
+ import { createContext as createContext8 } from "@radix-ui/react-context";
859
+ 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";
860
+ import React18, { forwardRef as forwardRef12 } from "react";
708
861
  var DialogRoot = DialogRootPrimitive;
709
862
  var DialogTrigger = DialogTriggerPrimitive;
710
863
  var DialogPortal = DialogPortalPrimitive;
711
864
  var DialogTitle = /* @__PURE__ */ forwardRef12(({ classNames, srOnly, ...props }, forwardedRef) => {
712
865
  const { tx } = useThemeContext();
713
- return /* @__PURE__ */ React14.createElement(DialogTitlePrimitive, {
866
+ return /* @__PURE__ */ React18.createElement(DialogTitlePrimitive, {
714
867
  ...props,
715
868
  className: tx("dialog.title", "dialog__title", {
716
869
  srOnly
@@ -720,7 +873,7 @@ var DialogTitle = /* @__PURE__ */ forwardRef12(({ classNames, srOnly, ...props }
720
873
  });
721
874
  var DialogDescription = /* @__PURE__ */ forwardRef12(({ classNames, srOnly, ...props }, forwardedRef) => {
722
875
  const { tx } = useThemeContext();
723
- return /* @__PURE__ */ React14.createElement(DialogDescriptionPrimitive, {
876
+ return /* @__PURE__ */ React18.createElement(DialogDescriptionPrimitive, {
724
877
  ...props,
725
878
  className: tx("dialog.description", "dialog__description", {
726
879
  srOnly
@@ -731,17 +884,17 @@ var DialogDescription = /* @__PURE__ */ forwardRef12(({ classNames, srOnly, ...p
731
884
  var DialogClose = DialogClosePrimitive;
732
885
  var DIALOG_OVERLAY_NAME = "DialogOverlay";
733
886
  var DIALOG_CONTENT_NAME = "DialogContent";
734
- var [OverlayLayoutProvider, useOverlayLayoutContext] = createContext5(DIALOG_OVERLAY_NAME, {
887
+ var [OverlayLayoutProvider, useOverlayLayoutContext] = createContext8(DIALOG_OVERLAY_NAME, {
735
888
  inOverlayLayout: false
736
889
  });
737
890
  var DialogOverlay = /* @__PURE__ */ forwardRef12(({ classNames, children, blockAlign, ...props }, forwardedRef) => {
738
891
  const { tx } = useThemeContext();
739
- return /* @__PURE__ */ React14.createElement(DialogOverlayPrimitive, {
892
+ return /* @__PURE__ */ React18.createElement(DialogOverlayPrimitive, {
740
893
  ...props,
741
894
  className: tx("dialog.overlay", "dialog__overlay", {}, classNames, "data-[block-align=start]:justify-center", "data-[block-align=start]:items-start", "data-[block-align=center]:place-content-center"),
742
895
  ref: forwardedRef,
743
896
  "data-block-align": blockAlign
744
- }, /* @__PURE__ */ React14.createElement(OverlayLayoutProvider, {
897
+ }, /* @__PURE__ */ React18.createElement(OverlayLayoutProvider, {
745
898
  inOverlayLayout: true
746
899
  }, children));
747
900
  });
@@ -749,13 +902,13 @@ DialogOverlay.displayName = DIALOG_OVERLAY_NAME;
749
902
  var DialogContent = /* @__PURE__ */ forwardRef12(({ classNames, children, ...props }, forwardedRef) => {
750
903
  const { tx } = useThemeContext();
751
904
  const { inOverlayLayout } = useOverlayLayoutContext(DIALOG_CONTENT_NAME);
752
- return /* @__PURE__ */ React14.createElement(DialogContentPrimitive, {
905
+ return /* @__PURE__ */ React18.createElement(DialogContentPrimitive, {
753
906
  ...props,
754
907
  className: tx("dialog.content", "dialog", {
755
908
  inOverlayLayout
756
909
  }, classNames),
757
910
  ref: forwardedRef
758
- }, /* @__PURE__ */ React14.createElement(ElevationProvider, {
911
+ }, /* @__PURE__ */ React18.createElement(ElevationProvider, {
759
912
  elevation: "chrome"
760
913
  }, children));
761
914
  });
@@ -773,8 +926,8 @@ var Dialog = {
773
926
 
774
927
  // packages/ui/react-ui/src/components/Dialogs/AlertDialog.tsx
775
928
  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";
776
- import { createContext as createContext6 } from "@radix-ui/react-context";
777
- import React15, { forwardRef as forwardRef13 } from "react";
929
+ import { createContext as createContext9 } from "@radix-ui/react-context";
930
+ import React19, { forwardRef as forwardRef13 } from "react";
778
931
  var AlertDialogRoot = AlertDialogRootPrimitive;
779
932
  var AlertDialogTrigger = AlertDialogTriggerPrimitive;
780
933
  var AlertDialogPortal = AlertDialogPortalPrimitive;
@@ -782,7 +935,7 @@ var AlertDialogCancel = AlertDialogCancelPrimitive;
782
935
  var AlertDialogAction = AlertDialogActionPrimitive;
783
936
  var AlertDialogTitle = /* @__PURE__ */ forwardRef13(({ classNames, srOnly, ...props }, forwardedRef) => {
784
937
  const { tx } = useThemeContext();
785
- return /* @__PURE__ */ React15.createElement(AlertDialogTitlePrimitive, {
938
+ return /* @__PURE__ */ React19.createElement(AlertDialogTitlePrimitive, {
786
939
  ...props,
787
940
  className: tx("dialog.title", "dialog--alert__title", {
788
941
  srOnly
@@ -792,7 +945,7 @@ var AlertDialogTitle = /* @__PURE__ */ forwardRef13(({ classNames, srOnly, ...pr
792
945
  });
793
946
  var AlertDialogDescription = /* @__PURE__ */ forwardRef13(({ classNames, srOnly, ...props }, forwardedRef) => {
794
947
  const { tx } = useThemeContext();
795
- return /* @__PURE__ */ React15.createElement(AlertDialogDescriptionPrimitive, {
948
+ return /* @__PURE__ */ React19.createElement(AlertDialogDescriptionPrimitive, {
796
949
  ...props,
797
950
  className: tx("dialog.description", "dialog--alert__description", {
798
951
  srOnly
@@ -802,16 +955,17 @@ var AlertDialogDescription = /* @__PURE__ */ forwardRef13(({ classNames, srOnly,
802
955
  });
803
956
  var ALERT_DIALOG_OVERLAY_NAME = "AlertDialogOverlay";
804
957
  var ALERT_DIALOG_CONTENT_NAME = "AlertDialogContent";
805
- var [OverlayLayoutProvider2, useOverlayLayoutContext2] = createContext6(ALERT_DIALOG_OVERLAY_NAME, {
958
+ var [OverlayLayoutProvider2, useOverlayLayoutContext2] = createContext9(ALERT_DIALOG_OVERLAY_NAME, {
806
959
  inOverlayLayout: false
807
960
  });
808
- var AlertDialogOverlay = /* @__PURE__ */ forwardRef13(({ classNames, children, ...props }, forwardedRef) => {
961
+ var AlertDialogOverlay = /* @__PURE__ */ forwardRef13(({ classNames, children, blockAlign, ...props }, forwardedRef) => {
809
962
  const { tx } = useThemeContext();
810
- return /* @__PURE__ */ React15.createElement(AlertDialogOverlayPrimitive, {
963
+ return /* @__PURE__ */ React19.createElement(AlertDialogOverlayPrimitive, {
811
964
  ...props,
812
- className: tx("dialog.overlay", "dialog--alert__overlay", {}, classNames),
813
- ref: forwardedRef
814
- }, /* @__PURE__ */ React15.createElement(OverlayLayoutProvider2, {
965
+ className: tx("dialog.overlay", "dialog--alert__overlay", {}, classNames, "data-[block-align=start]:justify-center", "data-[block-align=start]:items-start", "data-[block-align=center]:place-content-center"),
966
+ ref: forwardedRef,
967
+ "data-block-align": blockAlign
968
+ }, /* @__PURE__ */ React19.createElement(OverlayLayoutProvider2, {
815
969
  inOverlayLayout: true
816
970
  }, children));
817
971
  });
@@ -819,13 +973,13 @@ AlertDialogOverlay.displayName = ALERT_DIALOG_OVERLAY_NAME;
819
973
  var AlertDialogContent = /* @__PURE__ */ forwardRef13(({ classNames, children, ...props }, forwardedRef) => {
820
974
  const { tx } = useThemeContext();
821
975
  const { inOverlayLayout } = useOverlayLayoutContext2(ALERT_DIALOG_CONTENT_NAME);
822
- return /* @__PURE__ */ React15.createElement(AlertDialogContentPrimitive, {
976
+ return /* @__PURE__ */ React19.createElement(AlertDialogContentPrimitive, {
823
977
  ...props,
824
978
  className: tx("dialog.content", "dialog--alert", {
825
979
  inOverlayLayout
826
980
  }, classNames),
827
981
  ref: forwardedRef
828
- }, /* @__PURE__ */ React15.createElement(ElevationProvider, {
982
+ }, /* @__PURE__ */ React19.createElement(ElevationProvider, {
829
983
  elevation: "chrome"
830
984
  }, children));
831
985
  });
@@ -846,25 +1000,25 @@ var AlertDialog = {
846
1000
  import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
847
1001
  import { Primitive as Primitive6 } from "@radix-ui/react-primitive";
848
1002
  import { Slot as Slot6 } from "@radix-ui/react-slot";
849
- import React16, { forwardRef as forwardRef14 } from "react";
1003
+ import React20, { forwardRef as forwardRef14 } from "react";
850
1004
  var ContextMenuRoot = ContextMenuPrimitive.ContextMenu;
851
1005
  var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
852
1006
  var ContextMenuPortal = ContextMenuPrimitive.Portal;
853
1007
  var ContextMenuContent = /* @__PURE__ */ forwardRef14(({ classNames, children, ...props }, forwardedRef) => {
854
1008
  const { tx } = useThemeContext();
855
- return /* @__PURE__ */ React16.createElement(ContextMenuPrimitive.Content, {
1009
+ return /* @__PURE__ */ React20.createElement(ContextMenuPrimitive.Content, {
856
1010
  collisionPadding: 8,
857
1011
  ...props,
858
1012
  className: tx("menu.content", "menu", {}, classNames),
859
1013
  ref: forwardedRef
860
- }, /* @__PURE__ */ React16.createElement(ElevationProvider, {
1014
+ }, /* @__PURE__ */ React20.createElement(ElevationProvider, {
861
1015
  elevation: "chrome"
862
1016
  }, children));
863
1017
  });
864
1018
  var ContextMenuViewport = /* @__PURE__ */ forwardRef14(({ classNames, asChild, children, ...props }, forwardedRef) => {
865
1019
  const { tx } = useThemeContext();
866
1020
  const Root5 = asChild ? Slot6 : Primitive6.div;
867
- return /* @__PURE__ */ React16.createElement(Root5, {
1021
+ return /* @__PURE__ */ React20.createElement(Root5, {
868
1022
  ...props,
869
1023
  className: tx("menu.viewport", "menu__viewport", {}, classNames),
870
1024
  ref: forwardedRef
@@ -872,7 +1026,7 @@ var ContextMenuViewport = /* @__PURE__ */ forwardRef14(({ classNames, asChild, c
872
1026
  });
873
1027
  var ContextMenuArrow = /* @__PURE__ */ forwardRef14(({ classNames, ...props }, forwardedRef) => {
874
1028
  const { tx } = useThemeContext();
875
- return /* @__PURE__ */ React16.createElement(ContextMenuPrimitive.Arrow, {
1029
+ return /* @__PURE__ */ React20.createElement(ContextMenuPrimitive.Arrow, {
876
1030
  ...props,
877
1031
  className: tx("menu.arrow", "menu__arrow", {}, classNames),
878
1032
  ref: forwardedRef
@@ -882,7 +1036,7 @@ var ContextMenuGroup = ContextMenuPrimitive.Group;
882
1036
  var ContextMenuItemIndicator = ContextMenuPrimitive.ItemIndicator;
883
1037
  var ContextMenuItem = /* @__PURE__ */ forwardRef14(({ classNames, ...props }, forwardedRef) => {
884
1038
  const { tx } = useThemeContext();
885
- return /* @__PURE__ */ React16.createElement(ContextMenuPrimitive.Item, {
1039
+ return /* @__PURE__ */ React20.createElement(ContextMenuPrimitive.Item, {
886
1040
  ...props,
887
1041
  className: tx("menu.item", "menu__item", {}, classNames),
888
1042
  ref: forwardedRef
@@ -890,7 +1044,7 @@ var ContextMenuItem = /* @__PURE__ */ forwardRef14(({ classNames, ...props }, fo
890
1044
  });
891
1045
  var ContextMenuCheckboxItem = /* @__PURE__ */ forwardRef14(({ classNames, ...props }, forwardedRef) => {
892
1046
  const { tx } = useThemeContext();
893
- return /* @__PURE__ */ React16.createElement(ContextMenuPrimitive.CheckboxItem, {
1047
+ return /* @__PURE__ */ React20.createElement(ContextMenuPrimitive.CheckboxItem, {
894
1048
  ...props,
895
1049
  className: tx("menu.item", "menu__item--checkbox", {}, classNames),
896
1050
  ref: forwardedRef
@@ -898,7 +1052,7 @@ var ContextMenuCheckboxItem = /* @__PURE__ */ forwardRef14(({ classNames, ...pro
898
1052
  });
899
1053
  var ContextMenuSeparator = /* @__PURE__ */ forwardRef14(({ classNames, ...props }, forwardedRef) => {
900
1054
  const { tx } = useThemeContext();
901
- return /* @__PURE__ */ React16.createElement(ContextMenuPrimitive.Separator, {
1055
+ return /* @__PURE__ */ React20.createElement(ContextMenuPrimitive.Separator, {
902
1056
  ...props,
903
1057
  className: tx("menu.separator", "menu__item", {}, classNames),
904
1058
  ref: forwardedRef
@@ -906,7 +1060,7 @@ var ContextMenuSeparator = /* @__PURE__ */ forwardRef14(({ classNames, ...props
906
1060
  });
907
1061
  var ContextMenuGroupLabel = /* @__PURE__ */ forwardRef14(({ classNames, ...props }, forwardedRef) => {
908
1062
  const { tx } = useThemeContext();
909
- return /* @__PURE__ */ React16.createElement(ContextMenuPrimitive.Label, {
1063
+ return /* @__PURE__ */ React20.createElement(ContextMenuPrimitive.Label, {
910
1064
  ...props,
911
1065
  className: tx("menu.groupLabel", "menu__group__label", {}, classNames),
912
1066
  ref: forwardedRef
@@ -937,7 +1091,7 @@ import { createMenuScope } from "@radix-ui/react-menu";
937
1091
  import { Primitive as Primitive7 } from "@radix-ui/react-primitive";
938
1092
  import { Slot as Slot7 } from "@radix-ui/react-slot";
939
1093
  import { useControllableState } from "@radix-ui/react-use-controllable-state";
940
- import React17, { useRef, useCallback, forwardRef as forwardRef15, useEffect as useEffect3 } from "react";
1094
+ import React21, { useRef, useCallback as useCallback2, forwardRef as forwardRef15, useEffect as useEffect4 } from "react";
941
1095
  var DROPDOWN_MENU_NAME = "DropdownMenu";
942
1096
  var [createDropdownMenuContext, createDropdownMenuScope] = createContextScope(DROPDOWN_MENU_NAME, [
943
1097
  createMenuScope
@@ -953,18 +1107,18 @@ var DropdownMenuRoot = (props) => {
953
1107
  defaultProp: defaultOpen,
954
1108
  onChange: onOpenChange
955
1109
  });
956
- return /* @__PURE__ */ React17.createElement(DropdownMenuProvider, {
1110
+ return /* @__PURE__ */ React21.createElement(DropdownMenuProvider, {
957
1111
  scope: __scopeDropdownMenu,
958
1112
  triggerId: useId3(),
959
1113
  triggerRef,
960
1114
  contentId: useId3(),
961
1115
  open,
962
1116
  onOpenChange: setOpen,
963
- onOpenToggle: useCallback(() => setOpen((prevOpen) => !prevOpen), [
1117
+ onOpenToggle: useCallback2(() => setOpen((prevOpen) => !prevOpen), [
964
1118
  setOpen
965
1119
  ]),
966
1120
  modal
967
- }, /* @__PURE__ */ React17.createElement(MenuPrimitive.Root, {
1121
+ }, /* @__PURE__ */ React21.createElement(MenuPrimitive.Root, {
968
1122
  ...menuScope,
969
1123
  open,
970
1124
  onOpenChange: setOpen,
@@ -978,10 +1132,10 @@ var DropdownMenuTrigger = /* @__PURE__ */ forwardRef15((props, forwardedRef) =>
978
1132
  const { __scopeDropdownMenu, disabled = false, ...triggerProps } = props;
979
1133
  const context = useDropdownMenuContext(TRIGGER_NAME, __scopeDropdownMenu);
980
1134
  const menuScope = useMenuScope(__scopeDropdownMenu);
981
- return /* @__PURE__ */ React17.createElement(MenuPrimitive.Anchor, {
1135
+ return /* @__PURE__ */ React21.createElement(MenuPrimitive.Anchor, {
982
1136
  asChild: true,
983
1137
  ...menuScope
984
- }, /* @__PURE__ */ React17.createElement(Primitive7.button, {
1138
+ }, /* @__PURE__ */ React21.createElement(Primitive7.button, {
985
1139
  type: "button",
986
1140
  id: context.triggerId,
987
1141
  "aria-haspopup": "menu",
@@ -1029,12 +1183,12 @@ var DropdownMenuVirtualTrigger = (props) => {
1029
1183
  const { __scopeDropdownMenu, virtualRef } = props;
1030
1184
  const context = useDropdownMenuContext(VIRTUAL_TRIGGER_NAME, __scopeDropdownMenu);
1031
1185
  const menuScope = useMenuScope(__scopeDropdownMenu);
1032
- useEffect3(() => {
1186
+ useEffect4(() => {
1033
1187
  if (virtualRef.current) {
1034
1188
  context.triggerRef.current = virtualRef.current;
1035
1189
  }
1036
1190
  });
1037
- return /* @__PURE__ */ React17.createElement(MenuPrimitive.Anchor, {
1191
+ return /* @__PURE__ */ React21.createElement(MenuPrimitive.Anchor, {
1038
1192
  ...menuScope,
1039
1193
  virtualRef
1040
1194
  });
@@ -1044,7 +1198,7 @@ var PORTAL_NAME = "DropdownMenuPortal";
1044
1198
  var DropdownMenuPortal = (props) => {
1045
1199
  const { __scopeDropdownMenu, ...portalProps } = props;
1046
1200
  const menuScope = useMenuScope(__scopeDropdownMenu);
1047
- return /* @__PURE__ */ React17.createElement(MenuPrimitive.Portal, {
1201
+ return /* @__PURE__ */ React21.createElement(MenuPrimitive.Portal, {
1048
1202
  ...menuScope,
1049
1203
  ...portalProps
1050
1204
  });
@@ -1053,7 +1207,7 @@ DropdownMenuPortal.displayName = PORTAL_NAME;
1053
1207
  var DropdownMenuViewport = /* @__PURE__ */ forwardRef15(({ classNames, asChild, children, ...props }, forwardedRef) => {
1054
1208
  const { tx } = useThemeContext();
1055
1209
  const Root5 = asChild ? Slot7 : Primitive7.div;
1056
- return /* @__PURE__ */ React17.createElement(Root5, {
1210
+ return /* @__PURE__ */ React21.createElement(Root5, {
1057
1211
  ...props,
1058
1212
  className: tx("menu.viewport", "menu__viewport", {}, classNames),
1059
1213
  ref: forwardedRef
@@ -1066,7 +1220,7 @@ var DropdownMenuContent = /* @__PURE__ */ forwardRef15((props, forwardedRef) =>
1066
1220
  const context = useDropdownMenuContext(CONTENT_NAME, __scopeDropdownMenu);
1067
1221
  const menuScope = useMenuScope(__scopeDropdownMenu);
1068
1222
  const hasInteractedOutsideRef = useRef(false);
1069
- return /* @__PURE__ */ React17.createElement(MenuPrimitive.Content, {
1223
+ return /* @__PURE__ */ React21.createElement(MenuPrimitive.Content, {
1070
1224
  id: context.contentId,
1071
1225
  "aria-labelledby": context.triggerId,
1072
1226
  ...menuScope,
@@ -1106,7 +1260,7 @@ var GROUP_NAME = "DropdownMenuGroup";
1106
1260
  var DropdownMenuGroup = /* @__PURE__ */ forwardRef15((props, forwardedRef) => {
1107
1261
  const { __scopeDropdownMenu, ...groupProps } = props;
1108
1262
  const menuScope = useMenuScope(__scopeDropdownMenu);
1109
- return /* @__PURE__ */ React17.createElement(MenuPrimitive.Group, {
1263
+ return /* @__PURE__ */ React21.createElement(MenuPrimitive.Group, {
1110
1264
  ...menuScope,
1111
1265
  ...groupProps,
1112
1266
  ref: forwardedRef
@@ -1118,7 +1272,7 @@ var DropdownMenuGroupLabel = /* @__PURE__ */ forwardRef15((props, forwardedRef)
1118
1272
  const { __scopeDropdownMenu, classNames, ...labelProps } = props;
1119
1273
  const menuScope = useMenuScope(__scopeDropdownMenu);
1120
1274
  const { tx } = useThemeContext();
1121
- return /* @__PURE__ */ React17.createElement(MenuPrimitive.Label, {
1275
+ return /* @__PURE__ */ React21.createElement(MenuPrimitive.Label, {
1122
1276
  ...menuScope,
1123
1277
  ...labelProps,
1124
1278
  className: tx("menu.groupLabel", "menu__group__label", {}, classNames),
@@ -1131,7 +1285,7 @@ var DropdownMenuItem = /* @__PURE__ */ forwardRef15((props, forwardedRef) => {
1131
1285
  const { __scopeDropdownMenu, classNames, ...itemProps } = props;
1132
1286
  const menuScope = useMenuScope(__scopeDropdownMenu);
1133
1287
  const { tx } = useThemeContext();
1134
- return /* @__PURE__ */ React17.createElement(MenuPrimitive.Item, {
1288
+ return /* @__PURE__ */ React21.createElement(MenuPrimitive.Item, {
1135
1289
  ...menuScope,
1136
1290
  ...itemProps,
1137
1291
  className: tx("menu.item", "menu__item", {}, classNames),
@@ -1144,7 +1298,7 @@ var DropdownMenuCheckboxItem = /* @__PURE__ */ forwardRef15((props, forwardedRef
1144
1298
  const { __scopeDropdownMenu, classNames, ...checkboxItemProps } = props;
1145
1299
  const menuScope = useMenuScope(__scopeDropdownMenu);
1146
1300
  const { tx } = useThemeContext();
1147
- return /* @__PURE__ */ React17.createElement(MenuPrimitive.CheckboxItem, {
1301
+ return /* @__PURE__ */ React21.createElement(MenuPrimitive.CheckboxItem, {
1148
1302
  ...menuScope,
1149
1303
  ...checkboxItemProps,
1150
1304
  className: tx("menu.item", "menu__item--checkbox", {}, classNames),
@@ -1156,7 +1310,7 @@ var RADIO_GROUP_NAME = "DropdownMenuRadioGroup";
1156
1310
  var DropdownMenuRadioGroup = /* @__PURE__ */ forwardRef15((props, forwardedRef) => {
1157
1311
  const { __scopeDropdownMenu, ...radioGroupProps } = props;
1158
1312
  const menuScope = useMenuScope(__scopeDropdownMenu);
1159
- return /* @__PURE__ */ React17.createElement(MenuPrimitive.RadioGroup, {
1313
+ return /* @__PURE__ */ React21.createElement(MenuPrimitive.RadioGroup, {
1160
1314
  ...menuScope,
1161
1315
  ...radioGroupProps,
1162
1316
  ref: forwardedRef
@@ -1167,7 +1321,7 @@ var RADIO_ITEM_NAME = "DropdownMenuRadioItem";
1167
1321
  var DropdownMenuRadioItem = /* @__PURE__ */ forwardRef15((props, forwardedRef) => {
1168
1322
  const { __scopeDropdownMenu, ...radioItemProps } = props;
1169
1323
  const menuScope = useMenuScope(__scopeDropdownMenu);
1170
- return /* @__PURE__ */ React17.createElement(MenuPrimitive.RadioItem, {
1324
+ return /* @__PURE__ */ React21.createElement(MenuPrimitive.RadioItem, {
1171
1325
  ...menuScope,
1172
1326
  ...radioItemProps,
1173
1327
  ref: forwardedRef
@@ -1178,7 +1332,7 @@ var INDICATOR_NAME = "DropdownMenuItemIndicator";
1178
1332
  var DropdownMenuItemIndicator = /* @__PURE__ */ forwardRef15((props, forwardedRef) => {
1179
1333
  const { __scopeDropdownMenu, ...itemIndicatorProps } = props;
1180
1334
  const menuScope = useMenuScope(__scopeDropdownMenu);
1181
- return /* @__PURE__ */ React17.createElement(MenuPrimitive.ItemIndicator, {
1335
+ return /* @__PURE__ */ React21.createElement(MenuPrimitive.ItemIndicator, {
1182
1336
  ...menuScope,
1183
1337
  ...itemIndicatorProps,
1184
1338
  ref: forwardedRef
@@ -1190,7 +1344,7 @@ var DropdownMenuSeparator = /* @__PURE__ */ forwardRef15((props, forwardedRef) =
1190
1344
  const { __scopeDropdownMenu, classNames, ...separatorProps } = props;
1191
1345
  const menuScope = useMenuScope(__scopeDropdownMenu);
1192
1346
  const { tx } = useThemeContext();
1193
- return /* @__PURE__ */ React17.createElement(MenuPrimitive.Separator, {
1347
+ return /* @__PURE__ */ React21.createElement(MenuPrimitive.Separator, {
1194
1348
  ...menuScope,
1195
1349
  ...separatorProps,
1196
1350
  className: tx("menu.separator", "menu__item", {}, classNames),
@@ -1203,7 +1357,7 @@ var DropdownMenuArrow = /* @__PURE__ */ forwardRef15((props, forwardedRef) => {
1203
1357
  const { __scopeDropdownMenu, classNames, ...arrowProps } = props;
1204
1358
  const menuScope = useMenuScope(__scopeDropdownMenu);
1205
1359
  const { tx } = useThemeContext();
1206
- return /* @__PURE__ */ React17.createElement(MenuPrimitive.Arrow, {
1360
+ return /* @__PURE__ */ React21.createElement(MenuPrimitive.Arrow, {
1207
1361
  ...menuScope,
1208
1362
  ...arrowProps,
1209
1363
  className: tx("menu.arrow", "menu__arrow", {}, classNames),
@@ -1219,7 +1373,7 @@ var DropdownMenuSub = (props) => {
1219
1373
  defaultProp: defaultOpen,
1220
1374
  onChange: onOpenChange
1221
1375
  });
1222
- return /* @__PURE__ */ React17.createElement(MenuPrimitive.Sub, {
1376
+ return /* @__PURE__ */ React21.createElement(MenuPrimitive.Sub, {
1223
1377
  ...menuScope,
1224
1378
  open,
1225
1379
  onOpenChange: setOpen
@@ -1229,7 +1383,7 @@ var SUB_TRIGGER_NAME = "DropdownMenuSubTrigger";
1229
1383
  var DropdownMenuSubTrigger = /* @__PURE__ */ forwardRef15((props, forwardedRef) => {
1230
1384
  const { __scopeDropdownMenu, ...subTriggerProps } = props;
1231
1385
  const menuScope = useMenuScope(__scopeDropdownMenu);
1232
- return /* @__PURE__ */ React17.createElement(MenuPrimitive.SubTrigger, {
1386
+ return /* @__PURE__ */ React21.createElement(MenuPrimitive.SubTrigger, {
1233
1387
  ...menuScope,
1234
1388
  ...subTriggerProps,
1235
1389
  ref: forwardedRef
@@ -1240,7 +1394,7 @@ var SUB_CONTENT_NAME = "DropdownMenuSubContent";
1240
1394
  var DropdownMenuSubContent = /* @__PURE__ */ forwardRef15((props, forwardedRef) => {
1241
1395
  const { __scopeDropdownMenu, ...subContentProps } = props;
1242
1396
  const menuScope = useMenuScope(__scopeDropdownMenu);
1243
- return /* @__PURE__ */ React17.createElement(MenuPrimitive.SubContent, {
1397
+ return /* @__PURE__ */ React21.createElement(MenuPrimitive.SubContent, {
1244
1398
  ...menuScope,
1245
1399
  ...subContentProps,
1246
1400
  ref: forwardedRef,
@@ -1285,11 +1439,11 @@ import { Check, Minus } from "@phosphor-icons/react";
1285
1439
  import { Root as CheckboxPrimitive, Indicator as CheckboxIndicatorPrimitive } from "@radix-ui/react-checkbox";
1286
1440
  import { Root as SwitchPrimitive, Thumb as SwitchThumbPrimitive } from "@radix-ui/react-switch";
1287
1441
  import { useControllableState as useControllableState2 } from "@radix-ui/react-use-controllable-state";
1288
- import React18, { forwardRef as forwardRef16, Fragment, useCallback as useCallback2 } from "react";
1442
+ import React22, { forwardRef as forwardRef16, Fragment, useCallback as useCallback3 } from "react";
1289
1443
  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";
1290
1444
  var Label3 = /* @__PURE__ */ forwardRef16(({ srOnly, classNames, children, ...props }, forwardedRef) => {
1291
1445
  const { tx } = useThemeContext();
1292
- return /* @__PURE__ */ React18.createElement(LabelPrimitive, {
1446
+ return /* @__PURE__ */ React22.createElement(LabelPrimitive, {
1293
1447
  ...props,
1294
1448
  className: tx("input.label", "input__label", {
1295
1449
  srOnly
@@ -1299,7 +1453,7 @@ var Label3 = /* @__PURE__ */ forwardRef16(({ srOnly, classNames, children, ...pr
1299
1453
  });
1300
1454
  var Description = /* @__PURE__ */ forwardRef16(({ srOnly, classNames, children, ...props }, forwardedRef) => {
1301
1455
  const { tx } = useThemeContext();
1302
- return /* @__PURE__ */ React18.createElement(DescriptionPrimitive, {
1456
+ return /* @__PURE__ */ React22.createElement(DescriptionPrimitive, {
1303
1457
  ...props,
1304
1458
  className: tx("input.description", "input__description", {
1305
1459
  srOnly
@@ -1310,7 +1464,7 @@ var Description = /* @__PURE__ */ forwardRef16(({ srOnly, classNames, children,
1310
1464
  var Validation = /* @__PURE__ */ forwardRef16(({ __inputScope, srOnly, classNames, children, ...props }, forwardedRef) => {
1311
1465
  const { tx } = useThemeContext();
1312
1466
  const { validationValence } = useInputContext(INPUT_NAME, __inputScope);
1313
- return /* @__PURE__ */ React18.createElement(ValidationPrimitive, {
1467
+ return /* @__PURE__ */ React22.createElement(ValidationPrimitive, {
1314
1468
  ...props,
1315
1469
  className: tx("input.validation", `input__validation-message input__validation-message--${validationValence}`, {
1316
1470
  srOnly,
@@ -1321,7 +1475,7 @@ var Validation = /* @__PURE__ */ forwardRef16(({ __inputScope, srOnly, className
1321
1475
  });
1322
1476
  var DescriptionAndValidation = /* @__PURE__ */ forwardRef16(({ srOnly, classNames, children, ...props }, forwardedRef) => {
1323
1477
  const { tx } = useThemeContext();
1324
- return /* @__PURE__ */ React18.createElement(DescriptionAndValidationPrimitive, {
1478
+ return /* @__PURE__ */ React22.createElement(DescriptionAndValidationPrimitive, {
1325
1479
  ...props,
1326
1480
  className: tx("input.descriptionAndValidation", "input__description-and-validation", {
1327
1481
  srOnly
@@ -1334,7 +1488,7 @@ var PinInput = /* @__PURE__ */ forwardRef16(({ density: propsDensity, elevation:
1334
1488
  const { tx } = useThemeContext();
1335
1489
  const density = useDensityContext(propsDensity);
1336
1490
  const elevation = useElevationContext(propsElevation);
1337
- const segmentClassName = useCallback2(({ focused, validationValence }) => tx("input.input", "input--pin-segment", {
1491
+ const segmentClassName = useCallback3(({ focused, validationValence }) => tx("input.input", "input--pin-segment", {
1338
1492
  variant: "static",
1339
1493
  focused,
1340
1494
  disabled: props.disabled,
@@ -1348,7 +1502,7 @@ var PinInput = /* @__PURE__ */ forwardRef16(({ density: propsDensity, elevation:
1348
1502
  propsElevation,
1349
1503
  density
1350
1504
  ]);
1351
- return /* @__PURE__ */ React18.createElement(PinInputPrimitive, {
1505
+ return /* @__PURE__ */ React22.createElement(PinInputPrimitive, {
1352
1506
  ...props,
1353
1507
  segmentClassName,
1354
1508
  ...props.autoFocus && !hasIosKeyboard2 && {
@@ -1367,7 +1521,7 @@ var TextInput = /* @__PURE__ */ forwardRef16(({ __inputScope, classNames, densit
1367
1521
  const elevation = useElevationContext(propsElevation);
1368
1522
  const { validationValence } = useInputContext(INPUT_NAME, __inputScope);
1369
1523
  const { tx } = themeContextValue;
1370
- return /* @__PURE__ */ React18.createElement(TextInputPrimitive, {
1524
+ return /* @__PURE__ */ React22.createElement(TextInputPrimitive, {
1371
1525
  ...props,
1372
1526
  className: tx("input.input", "input", {
1373
1527
  variant,
@@ -1388,7 +1542,7 @@ var TextArea = /* @__PURE__ */ forwardRef16(({ __inputScope, classNames, density
1388
1542
  const density = useDensityContext(propsDensity);
1389
1543
  const elevation = useElevationContext(propsElevation);
1390
1544
  const { validationValence } = useInputContext(INPUT_NAME, __inputScope);
1391
- return /* @__PURE__ */ React18.createElement(TextAreaPrimitive, {
1545
+ return /* @__PURE__ */ React22.createElement(TextAreaPrimitive, {
1392
1546
  ...props,
1393
1547
  className: tx("input.input", "input--text-area", {
1394
1548
  variant,
@@ -1412,7 +1566,7 @@ var Checkbox = /* @__PURE__ */ forwardRef16(({ __inputScope, checked: propsCheck
1412
1566
  const { id, validationValence, descriptionId, errorMessageId } = useInputContext(INPUT_NAME, __inputScope);
1413
1567
  const { tx } = useThemeContext();
1414
1568
  const Icon3 = checked === "indeterminate" ? Minus : checked ? Check : Fragment;
1415
- return /* @__PURE__ */ React18.createElement(CheckboxPrimitive, {
1569
+ return /* @__PURE__ */ React22.createElement(CheckboxPrimitive, {
1416
1570
  ...props,
1417
1571
  checked,
1418
1572
  onCheckedChange,
@@ -1426,9 +1580,9 @@ var Checkbox = /* @__PURE__ */ forwardRef16(({ __inputScope, checked: propsCheck
1426
1580
  size
1427
1581
  }, "shrink-0", classNames),
1428
1582
  ref: forwardedRef
1429
- }, /* @__PURE__ */ React18.createElement(CheckboxIndicatorPrimitive, {
1583
+ }, /* @__PURE__ */ React22.createElement(CheckboxIndicatorPrimitive, {
1430
1584
  asChild: true
1431
- }, /* @__PURE__ */ React18.createElement(Icon3, checked && {
1585
+ }, /* @__PURE__ */ React22.createElement(Icon3, checked && {
1432
1586
  weight,
1433
1587
  className: tx("input.checkboxIndicator", "input--checkbox__indicator", {
1434
1588
  size
@@ -1443,7 +1597,7 @@ var Switch = /* @__PURE__ */ forwardRef16(({ __inputScope, checked: propsChecked
1443
1597
  onChange: propsOnCheckedChange
1444
1598
  });
1445
1599
  const { id, validationValence, descriptionId, errorMessageId } = useInputContext(INPUT_NAME, __inputScope);
1446
- return /* @__PURE__ */ React18.createElement(SwitchPrimitive, {
1600
+ return /* @__PURE__ */ React22.createElement(SwitchPrimitive, {
1447
1601
  ...props,
1448
1602
  checked,
1449
1603
  onCheckedChange,
@@ -1457,7 +1611,7 @@ var Switch = /* @__PURE__ */ forwardRef16(({ __inputScope, checked: propsChecked
1457
1611
  size
1458
1612
  }, classNames),
1459
1613
  ref: forwardedRef
1460
- }, /* @__PURE__ */ React18.createElement(SwitchThumbPrimitive, {
1614
+ }, /* @__PURE__ */ React22.createElement(SwitchThumbPrimitive, {
1461
1615
  className: tx("input.switchThumb", "input--switch__thumb", {
1462
1616
  size
1463
1617
  })
@@ -1479,27 +1633,14 @@ var Input = {
1479
1633
  // packages/ui/react-ui/src/components/Lists/List.tsx
1480
1634
  import { CaretDown, CaretRight } from "@phosphor-icons/react";
1481
1635
  import { Slot as Slot8 } from "@radix-ui/react-slot";
1482
- import React20, { forwardRef as forwardRef17 } from "react";
1636
+ import React23, { forwardRef as forwardRef17 } from "react";
1483
1637
  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";
1484
-
1485
- // packages/ui/react-ui/src/components/DensityProvider/DensityProvider.tsx
1486
- import React19, { createContext as createContext7 } from "react";
1487
- var DensityContext = /* @__PURE__ */ createContext7({
1488
- density: "fine"
1489
- });
1490
- var DensityProvider = ({ density, children }) => /* @__PURE__ */ React19.createElement(DensityContext.Provider, {
1491
- value: {
1492
- density
1493
- }
1494
- }, children);
1495
-
1496
- // packages/ui/react-ui/src/components/Lists/List.tsx
1497
1638
  var List = /* @__PURE__ */ forwardRef17(({ classNames, children, ...props }, forwardedRef) => {
1498
1639
  const { tx } = useThemeContext();
1499
1640
  const density = useDensityContext(props.density);
1500
- return /* @__PURE__ */ React20.createElement(DensityProvider, {
1641
+ return /* @__PURE__ */ React23.createElement(DensityProvider, {
1501
1642
  density
1502
- }, /* @__PURE__ */ React20.createElement(ListPrimitive, {
1643
+ }, /* @__PURE__ */ React23.createElement(ListPrimitive, {
1503
1644
  ...props,
1504
1645
  className: tx("list.root", "list", {}, classNames),
1505
1646
  ref: forwardedRef
@@ -1509,7 +1650,7 @@ var ListItemEndcap = /* @__PURE__ */ forwardRef17(({ children, classNames, asChi
1509
1650
  const Root5 = asChild ? Slot8 : "div";
1510
1651
  const density = useDensityContext();
1511
1652
  const { tx } = useThemeContext();
1512
- return /* @__PURE__ */ React20.createElement(Root5, {
1653
+ return /* @__PURE__ */ React23.createElement(Root5, {
1513
1654
  ...!asChild && {
1514
1655
  role: "none"
1515
1656
  },
@@ -1523,7 +1664,7 @@ var ListItemEndcap = /* @__PURE__ */ forwardRef17(({ children, classNames, asChi
1523
1664
  var MockListItemOpenTrigger = ({ classNames, ...props }) => {
1524
1665
  const density = useDensityContext();
1525
1666
  const { tx } = useThemeContext();
1526
- return /* @__PURE__ */ React20.createElement("div", {
1667
+ return /* @__PURE__ */ React23.createElement("div", {
1527
1668
  role: "none",
1528
1669
  ...props,
1529
1670
  className: tx("list.item.openTrigger", "list__listItem__openTrigger--mock", {
@@ -1534,7 +1675,7 @@ var MockListItemOpenTrigger = ({ classNames, ...props }) => {
1534
1675
  var ListItemHeading = /* @__PURE__ */ forwardRef17(({ children, classNames, ...props }, forwardedRef) => {
1535
1676
  const { tx } = useThemeContext();
1536
1677
  const density = useDensityContext();
1537
- return /* @__PURE__ */ React20.createElement(ListPrimitiveItemHeading, {
1678
+ return /* @__PURE__ */ React23.createElement(ListPrimitiveItemHeading, {
1538
1679
  ...props,
1539
1680
  className: tx("list.item.heading", "list__listItem__heading", {
1540
1681
  density
@@ -1547,13 +1688,13 @@ var ListItemOpenTrigger = /* @__PURE__ */ forwardRef17(({ __listItemScope, class
1547
1688
  const density = useDensityContext();
1548
1689
  const { open } = useListItemContext(LIST_ITEM_NAME, __listItemScope);
1549
1690
  const Icon3 = open ? CaretDown : CaretRight;
1550
- return /* @__PURE__ */ React20.createElement(ListPrimitiveItemOpenTrigger, {
1691
+ return /* @__PURE__ */ React23.createElement(ListPrimitiveItemOpenTrigger, {
1551
1692
  ...props,
1552
1693
  className: tx("list.item.openTrigger", "list__listItem__openTrigger", {
1553
1694
  density
1554
1695
  }, classNames),
1555
1696
  ref: forwardedRef
1556
- }, children || /* @__PURE__ */ React20.createElement(Icon3, {
1697
+ }, children || /* @__PURE__ */ React23.createElement(Icon3, {
1557
1698
  weight: "bold",
1558
1699
  className: tx("list.item.openTriggerIcon", "list__listItem__openTrigger__icon", {})
1559
1700
  }));
@@ -1561,7 +1702,7 @@ var ListItemOpenTrigger = /* @__PURE__ */ forwardRef17(({ __listItemScope, class
1561
1702
  var ListItemRoot = /* @__PURE__ */ forwardRef17(({ classNames, children, ...props }, forwardedRef) => {
1562
1703
  const { tx } = useThemeContext();
1563
1704
  const density = useDensityContext();
1564
- return /* @__PURE__ */ React20.createElement(ListPrimitiveItem, {
1705
+ return /* @__PURE__ */ React23.createElement(ListPrimitiveItem, {
1565
1706
  ...props,
1566
1707
  className: tx("list.item.root", "list__listItem", {
1567
1708
  density,
@@ -1580,23 +1721,23 @@ var ListItem = {
1580
1721
  };
1581
1722
 
1582
1723
  // packages/ui/react-ui/src/components/Lists/Tree.tsx
1583
- import React21, { forwardRef as forwardRef18 } from "react";
1724
+ import React24, { forwardRef as forwardRef18 } from "react";
1584
1725
  var TreeRoot = /* @__PURE__ */ forwardRef18((props, forwardedRef) => {
1585
- return /* @__PURE__ */ React21.createElement(List, {
1726
+ return /* @__PURE__ */ React24.createElement(List, {
1586
1727
  ...props,
1587
1728
  ref: forwardedRef
1588
1729
  });
1589
1730
  });
1590
1731
  var TreeBranch = /* @__PURE__ */ forwardRef18(({ __listScope, ...props }, forwardedRef) => {
1591
1732
  const { headingId } = useListItemContext(LIST_ITEM_NAME, __listScope);
1592
- return /* @__PURE__ */ React21.createElement(List, {
1733
+ return /* @__PURE__ */ React24.createElement(List, {
1593
1734
  ...props,
1594
1735
  "aria-labelledby": headingId,
1595
1736
  ref: forwardedRef
1596
1737
  });
1597
1738
  });
1598
1739
  var TreeItemRoot = /* @__PURE__ */ forwardRef18((props, forwardedRef) => {
1599
- return /* @__PURE__ */ React21.createElement(ListItem.Root, {
1740
+ return /* @__PURE__ */ React24.createElement(ListItem.Root, {
1600
1741
  role: "treeitem",
1601
1742
  ...props,
1602
1743
  ref: forwardedRef
@@ -1624,7 +1765,7 @@ import { createContextScope as createContextScope2 } from "@radix-ui/react-conte
1624
1765
  import { Primitive as Primitive8 } from "@radix-ui/react-primitive";
1625
1766
  import { Slot as Slot9 } from "@radix-ui/react-slot";
1626
1767
  import { useControllableState as useControllableState3 } from "@radix-ui/react-use-controllable-state";
1627
- import React22, { forwardRef as forwardRef19 } from "react";
1768
+ import React25, { forwardRef as forwardRef19 } from "react";
1628
1769
  var TREEGRID_ROW_NAME = "TreegridRow";
1629
1770
  var [createTreegridRowContext, createTreegridRowScope] = createContextScope2(TREEGRID_ROW_NAME, []);
1630
1771
  var [TreegridRowProvider, useTreegridRowContext] = createTreegridRowContext(TREEGRID_ROW_NAME);
@@ -1638,7 +1779,7 @@ var TreegridRoot = /* @__PURE__ */ forwardRef19(({ asChild, classNames, children
1638
1779
  tabbable: false,
1639
1780
  circular: true
1640
1781
  });
1641
- return /* @__PURE__ */ React22.createElement(Root5, {
1782
+ return /* @__PURE__ */ React25.createElement(Root5, {
1642
1783
  role: "treegrid",
1643
1784
  ...arrowNavigationAttrs,
1644
1785
  ...props,
@@ -1669,11 +1810,11 @@ var TreegridRow = /* @__PURE__ */ forwardRef19(({ __treegridRowScope, asChild, c
1669
1810
  circular: false,
1670
1811
  memorizeCurrent: false
1671
1812
  });
1672
- return /* @__PURE__ */ React22.createElement(TreegridRowProvider, {
1813
+ return /* @__PURE__ */ React25.createElement(TreegridRowProvider, {
1673
1814
  open,
1674
1815
  onOpenChange,
1675
1816
  scope: __treegridRowScope
1676
- }, /* @__PURE__ */ React22.createElement(Root5, {
1817
+ }, /* @__PURE__ */ React25.createElement(Root5, {
1677
1818
  role: "row",
1678
1819
  "aria-level": level,
1679
1820
  className: tx("treegrid.row", "treegrid__row", {
@@ -1688,7 +1829,7 @@ var TreegridRow = /* @__PURE__ */ forwardRef19(({ __treegridRowScope, asChild, c
1688
1829
  ...props,
1689
1830
  id,
1690
1831
  ref: forwardedRef
1691
- }, /* @__PURE__ */ React22.createElement("div", {
1832
+ }, /* @__PURE__ */ React25.createElement("div", {
1692
1833
  role: "none",
1693
1834
  className: "contents",
1694
1835
  ...arrowGroupAttrs
@@ -1696,7 +1837,7 @@ var TreegridRow = /* @__PURE__ */ forwardRef19(({ __treegridRowScope, asChild, c
1696
1837
  });
1697
1838
  var TreegridCell = /* @__PURE__ */ forwardRef19(({ classNames, children, indent, ...props }, forwardedRef) => {
1698
1839
  const { tx } = useThemeContext();
1699
- return /* @__PURE__ */ React22.createElement("div", {
1840
+ return /* @__PURE__ */ React25.createElement("div", {
1700
1841
  role: "gridcell",
1701
1842
  className: tx("treegrid.cell", "treegrid__cell", {
1702
1843
  indent
@@ -1718,17 +1859,17 @@ var Treegrid = {
1718
1859
  // packages/ui/react-ui/src/components/Main/Main.tsx
1719
1860
  import { useFocusableGroup as useFocusableGroup2 } from "@fluentui/react-tabster";
1720
1861
  import { useComposedRefs } from "@radix-ui/react-compose-refs";
1721
- import { createContext as createContext8 } from "@radix-ui/react-context";
1862
+ import { createContext as createContext10 } from "@radix-ui/react-context";
1722
1863
  import { Root as DialogRoot2, DialogContent as DialogContent2 } from "@radix-ui/react-dialog";
1723
1864
  import { Primitive as Primitive9 } from "@radix-ui/react-primitive";
1724
1865
  import { Slot as Slot10 } from "@radix-ui/react-slot";
1725
1866
  import { useControllableState as useControllableState4 } from "@radix-ui/react-use-controllable-state";
1726
- import React23, { forwardRef as forwardRef20, useCallback as useCallback4, useEffect as useEffect5, useRef as useRef2, useState as useState4 } from "react";
1867
+ import React26, { forwardRef as forwardRef20, useCallback as useCallback5, useEffect as useEffect6, useRef as useRef2, useState as useState6 } from "react";
1727
1868
  import { log } from "@dxos/log";
1728
1869
  import { useMediaQuery, useForwardedRef } from "@dxos/react-hooks";
1729
1870
 
1730
1871
  // packages/ui/react-ui/src/components/Main/useSwipeToDismiss.ts
1731
- import { useCallback as useCallback3, useEffect as useEffect4, useState as useState3 } from "react";
1872
+ import { useCallback as useCallback4, useEffect as useEffect5, useState as useState5 } from "react";
1732
1873
  var MotionState;
1733
1874
  (function(MotionState2) {
1734
1875
  MotionState2[MotionState2["IDLE"] = 0] = "IDLE";
@@ -1743,22 +1884,22 @@ var useSwipeToDismiss = (ref, {
1743
1884
  /* side = 'inline-start' */
1744
1885
  }) => {
1745
1886
  const $root = ref.current;
1746
- const [motionState, setMotionState] = useState3(0);
1747
- const [gestureStartX, setGestureStartX] = useState3(0);
1748
- const setIdle = useCallback3(() => {
1887
+ const [motionState, setMotionState] = useState5(0);
1888
+ const [gestureStartX, setGestureStartX] = useState5(0);
1889
+ const setIdle = useCallback4(() => {
1749
1890
  setMotionState(0);
1750
1891
  $root?.style.removeProperty("inset-inline-start");
1751
1892
  $root?.style.setProperty("transition-duration", "200ms");
1752
1893
  }, [
1753
1894
  $root
1754
1895
  ]);
1755
- const setFollowing = useCallback3(() => {
1896
+ const setFollowing = useCallback4(() => {
1756
1897
  setMotionState(2);
1757
1898
  $root?.style.setProperty("transition-duration", "0ms");
1758
1899
  }, [
1759
1900
  $root
1760
1901
  ]);
1761
- const handlePointerDown = useCallback3(({ screenX }) => {
1902
+ const handlePointerDown = useCallback4(({ screenX }) => {
1762
1903
  if (motionState === 0) {
1763
1904
  setMotionState(1);
1764
1905
  setGestureStartX(screenX);
@@ -1766,7 +1907,7 @@ var useSwipeToDismiss = (ref, {
1766
1907
  }, [
1767
1908
  motionState
1768
1909
  ]);
1769
- const handlePointerMove = useCallback3(({ screenX }) => {
1910
+ const handlePointerMove = useCallback4(({ screenX }) => {
1770
1911
  if ($root) {
1771
1912
  const delta = Math.min(screenX - gestureStartX, 0);
1772
1913
  switch (motionState) {
@@ -1790,12 +1931,12 @@ var useSwipeToDismiss = (ref, {
1790
1931
  motionState,
1791
1932
  gestureStartX
1792
1933
  ]);
1793
- const handlePointerUp = useCallback3(() => {
1934
+ const handlePointerUp = useCallback4(() => {
1794
1935
  setIdle();
1795
1936
  }, [
1796
1937
  setIdle
1797
1938
  ]);
1798
- useEffect4(() => {
1939
+ useEffect5(() => {
1799
1940
  $root?.addEventListener("pointerdown", handlePointerDown);
1800
1941
  return () => {
1801
1942
  $root?.removeEventListener("pointerdown", handlePointerDown);
@@ -1804,7 +1945,7 @@ var useSwipeToDismiss = (ref, {
1804
1945
  $root,
1805
1946
  handlePointerDown
1806
1947
  ]);
1807
- useEffect4(() => {
1948
+ useEffect5(() => {
1808
1949
  $root && document.documentElement.addEventListener("pointermove", handlePointerMove);
1809
1950
  return () => {
1810
1951
  document.documentElement.removeEventListener("pointermove", handlePointerMove);
@@ -1813,7 +1954,7 @@ var useSwipeToDismiss = (ref, {
1813
1954
  $root,
1814
1955
  handlePointerMove
1815
1956
  ]);
1816
- useEffect4(() => {
1957
+ useEffect5(() => {
1817
1958
  $root && document.documentElement.addEventListener("pointerup", handlePointerUp);
1818
1959
  return () => {
1819
1960
  document.documentElement.removeEventListener("pointerup", handlePointerUp);
@@ -1833,7 +1974,7 @@ var MAIN_NAME = "Main";
1833
1974
  var GENERIC_CONSUMER_NAME = "GenericConsumer";
1834
1975
  var landmarkAttr = "data-main-landmark";
1835
1976
  var useLandmarkMover = (propsOnKeyDown, landmark) => {
1836
- const handleKeyDown = useCallback4((event) => {
1977
+ const handleKeyDown = useCallback5((event) => {
1837
1978
  const target = event.target;
1838
1979
  if (event.target === event.currentTarget && event.key === "Tab" && target.hasAttribute(landmarkAttr)) {
1839
1980
  event.preventDefault();
@@ -1860,7 +2001,7 @@ var useLandmarkMover = (propsOnKeyDown, landmark) => {
1860
2001
  ...focusableAttrs
1861
2002
  };
1862
2003
  };
1863
- var [MainProvider, useMainContext] = createContext8(MAIN_NAME, {
2004
+ var [MainProvider, useMainContext] = createContext10(MAIN_NAME, {
1864
2005
  resizing: false,
1865
2006
  navigationSidebarOpen: false,
1866
2007
  setNavigationSidebarOpen: (nextOpen) => {
@@ -1886,26 +2027,26 @@ var useSidebars = (consumerName = GENERIC_CONSUMER_NAME) => {
1886
2027
  return {
1887
2028
  navigationSidebarOpen,
1888
2029
  setNavigationSidebarOpen,
1889
- toggleNavigationSidebar: useCallback4(() => setNavigationSidebarOpen(!navigationSidebarOpen), [
2030
+ toggleNavigationSidebar: useCallback5(() => setNavigationSidebarOpen(!navigationSidebarOpen), [
1890
2031
  navigationSidebarOpen,
1891
2032
  setNavigationSidebarOpen
1892
2033
  ]),
1893
- openNavigationSidebar: useCallback4(() => setNavigationSidebarOpen(true), [
2034
+ openNavigationSidebar: useCallback5(() => setNavigationSidebarOpen(true), [
1894
2035
  setNavigationSidebarOpen
1895
2036
  ]),
1896
- closeNavigationSidebar: useCallback4(() => setNavigationSidebarOpen(false), [
2037
+ closeNavigationSidebar: useCallback5(() => setNavigationSidebarOpen(false), [
1897
2038
  setNavigationSidebarOpen
1898
2039
  ]),
1899
2040
  complementarySidebarOpen,
1900
2041
  setComplementarySidebarOpen,
1901
- toggleComplementarySidebar: useCallback4(() => setComplementarySidebarOpen(!complementarySidebarOpen), [
2042
+ toggleComplementarySidebar: useCallback5(() => setComplementarySidebarOpen(!complementarySidebarOpen), [
1902
2043
  complementarySidebarOpen,
1903
2044
  setComplementarySidebarOpen
1904
2045
  ]),
1905
- openComplementarySidebar: useCallback4(() => setComplementarySidebarOpen(true), [
2046
+ openComplementarySidebar: useCallback5(() => setComplementarySidebarOpen(true), [
1906
2047
  setComplementarySidebarOpen
1907
2048
  ]),
1908
- closeComplementarySidebar: useCallback4(() => setComplementarySidebarOpen(false), [
2049
+ closeComplementarySidebar: useCallback5(() => setComplementarySidebarOpen(false), [
1909
2050
  setComplementarySidebarOpen
1910
2051
  ])
1911
2052
  };
@@ -1925,9 +2066,9 @@ var MainRoot = ({ navigationSidebarOpen: propsNavigationSidebarOpen, defaultNavi
1925
2066
  defaultProp: defaultComplementarySidebarOpen,
1926
2067
  onChange: onComplementarySidebarOpenChange
1927
2068
  });
1928
- const [resizing, setResizing] = useState4(false);
2069
+ const [resizing, setResizing] = useState6(false);
1929
2070
  const resizeInterval = useRef2(null);
1930
- const handleResize = useCallback4(() => {
2071
+ const handleResize = useCallback5(() => {
1931
2072
  setResizing(true);
1932
2073
  if (resizeInterval.current) {
1933
2074
  clearTimeout(resizeInterval.current);
@@ -1937,13 +2078,13 @@ var MainRoot = ({ navigationSidebarOpen: propsNavigationSidebarOpen, defaultNavi
1937
2078
  resizeInterval.current = null;
1938
2079
  }, resizeDebounce);
1939
2080
  }, []);
1940
- useEffect5(() => {
2081
+ useEffect6(() => {
1941
2082
  window.addEventListener("resize", handleResize);
1942
2083
  return () => window.removeEventListener("resize", handleResize);
1943
2084
  }, [
1944
2085
  handleResize
1945
2086
  ]);
1946
- return /* @__PURE__ */ React23.createElement(MainProvider, {
2087
+ return /* @__PURE__ */ React26.createElement(MainProvider, {
1947
2088
  ...props,
1948
2089
  navigationSidebarOpen,
1949
2090
  setNavigationSidebarOpen,
@@ -1966,7 +2107,7 @@ var MainSidebar = /* @__PURE__ */ forwardRef20(({ classNames, children, swipeToD
1966
2107
  useSwipeToDismiss(swipeToDismiss ? ref : noopRef, {
1967
2108
  onDismiss: () => setOpen(false)
1968
2109
  });
1969
- const handleKeyDown = useCallback4((event) => {
2110
+ const handleKeyDown = useCallback5((event) => {
1970
2111
  if (event.key === "Escape") {
1971
2112
  event.target.closest("[data-tabster]")?.focus();
1972
2113
  }
@@ -1975,10 +2116,10 @@ var MainSidebar = /* @__PURE__ */ forwardRef20(({ classNames, children, swipeToD
1975
2116
  props.onKeyDown
1976
2117
  ]);
1977
2118
  const Root5 = isLg ? Primitive9.div : DialogContent2;
1978
- return /* @__PURE__ */ React23.createElement(DialogRoot2, {
2119
+ return /* @__PURE__ */ React26.createElement(DialogRoot2, {
1979
2120
  open,
1980
2121
  modal: false
1981
- }, /* @__PURE__ */ React23.createElement(Root5, {
2122
+ }, /* @__PURE__ */ React26.createElement(Root5, {
1982
2123
  ...!isLg && {
1983
2124
  forceMount: true,
1984
2125
  tabIndex: -1,
@@ -1994,14 +2135,14 @@ var MainSidebar = /* @__PURE__ */ forwardRef20(({ classNames, children, swipeToD
1994
2135
  inert: "true"
1995
2136
  },
1996
2137
  ref
1997
- }, /* @__PURE__ */ React23.createElement(ElevationProvider, {
2138
+ }, /* @__PURE__ */ React26.createElement(ElevationProvider, {
1998
2139
  elevation: "group"
1999
2140
  }, children)));
2000
2141
  });
2001
2142
  var MainNavigationSidebar = /* @__PURE__ */ forwardRef20((props, forwardedRef) => {
2002
2143
  const { navigationSidebarOpen, setNavigationSidebarOpen, resizing } = useMainContext(NAVIGATION_SIDEBAR_NAME);
2003
2144
  const mover = useLandmarkMover(props.onKeyDown, "0");
2004
- return /* @__PURE__ */ React23.createElement(MainSidebar, {
2145
+ return /* @__PURE__ */ React26.createElement(MainSidebar, {
2005
2146
  ...mover,
2006
2147
  ...props,
2007
2148
  open: navigationSidebarOpen,
@@ -2015,7 +2156,7 @@ MainNavigationSidebar.displayName = NAVIGATION_SIDEBAR_NAME;
2015
2156
  var MainComplementarySidebar = /* @__PURE__ */ forwardRef20((props, forwardedRef) => {
2016
2157
  const { complementarySidebarOpen, setComplementarySidebarOpen, resizing } = useMainContext(COMPLEMENTARY_SIDEBAR_NAME);
2017
2158
  const mover = useLandmarkMover(props.onKeyDown, "2");
2018
- return /* @__PURE__ */ React23.createElement(MainSidebar, {
2159
+ return /* @__PURE__ */ React26.createElement(MainSidebar, {
2019
2160
  ...mover,
2020
2161
  ...props,
2021
2162
  open: complementarySidebarOpen,
@@ -2031,7 +2172,7 @@ var MainContent = /* @__PURE__ */ forwardRef20(({ asChild, classNames, bounce, h
2031
2172
  const { tx } = useThemeContext();
2032
2173
  const Root5 = asChild ? Slot10 : role ? "div" : "main";
2033
2174
  const mover = useLandmarkMover(props.onKeyDown, "1");
2034
- return /* @__PURE__ */ React23.createElement(Root5, {
2175
+ return /* @__PURE__ */ React26.createElement(Root5, {
2035
2176
  role,
2036
2177
  ...handlesFocus && {
2037
2178
  ...mover
@@ -2053,7 +2194,7 @@ var MainOverlay = /* @__PURE__ */ forwardRef20(({ classNames, ...props }, forwar
2053
2194
  });
2054
2195
  const { navigationSidebarOpen, setNavigationSidebarOpen, complementarySidebarOpen, setComplementarySidebarOpen } = useMainContext(MAIN_NAME);
2055
2196
  const { tx } = useThemeContext();
2056
- return /* @__PURE__ */ React23.createElement("div", {
2197
+ return /* @__PURE__ */ React26.createElement("div", {
2057
2198
  onClick: () => {
2058
2199
  setNavigationSidebarOpen(false);
2059
2200
  setComplementarySidebarOpen(false);
@@ -2074,7 +2215,7 @@ var MainNotch = /* @__PURE__ */ forwardRef20(({ classNames, ...props }, forwarde
2074
2215
  const { navigationSidebarOpen } = useMainContext(MAIN_NAME);
2075
2216
  const notchElement = useRef2(null);
2076
2217
  const ref = useComposedRefs(forwardedRef, notchElement);
2077
- const handleKeyDown = useCallback4((event) => {
2218
+ const handleKeyDown = useCallback5((event) => {
2078
2219
  switch (event.key) {
2079
2220
  case "Escape":
2080
2221
  props?.onKeyDown?.(event);
@@ -2084,7 +2225,7 @@ var MainNotch = /* @__PURE__ */ forwardRef20(({ classNames, ...props }, forwarde
2084
2225
  props?.onKeyDown
2085
2226
  ]);
2086
2227
  const mover = useLandmarkMover(handleKeyDown, "3");
2087
- return /* @__PURE__ */ React23.createElement("div", {
2228
+ return /* @__PURE__ */ React26.createElement("div", {
2088
2229
  role: "toolbar",
2089
2230
  ...mover,
2090
2231
  ...props,
@@ -2103,23 +2244,23 @@ var Main = {
2103
2244
  };
2104
2245
 
2105
2246
  // packages/ui/react-ui/src/components/Message/Message.tsx
2106
- import { createContext as createContext9 } from "@radix-ui/react-context";
2247
+ import { createContext as createContext11 } from "@radix-ui/react-context";
2107
2248
  import { Primitive as Primitive10 } from "@radix-ui/react-primitive";
2108
2249
  import { Slot as Slot11 } from "@radix-ui/react-slot";
2109
- import React24, { forwardRef as forwardRef21 } from "react";
2250
+ import React27, { forwardRef as forwardRef21 } from "react";
2110
2251
  import { useId as useId4 } from "@dxos/react-hooks";
2111
2252
  var MESSAGE_NAME = "Message";
2112
- var [MessageProvider, useMessageContext] = createContext9(MESSAGE_NAME);
2253
+ var [MessageProvider, useMessageContext] = createContext11(MESSAGE_NAME);
2113
2254
  var MessageRoot = /* @__PURE__ */ forwardRef21(({ asChild, valence, elevation: propsElevation, className, titleId: propsTitleId, descriptionId: propsDescriptionId, children, ...props }, forwardedRef) => {
2114
2255
  const { tx } = useThemeContext();
2115
2256
  const titleId = useId4("message__title", propsTitleId);
2116
2257
  const descriptionId = useId4("message__description", propsDescriptionId);
2117
2258
  const elevation = useElevationContext(propsElevation);
2118
2259
  const Root5 = asChild ? Slot11 : Primitive10.div;
2119
- return /* @__PURE__ */ React24.createElement(MessageProvider, {
2260
+ return /* @__PURE__ */ React27.createElement(MessageProvider, {
2120
2261
  titleId,
2121
2262
  descriptionId
2122
- }, /* @__PURE__ */ React24.createElement(Root5, {
2263
+ }, /* @__PURE__ */ React27.createElement(Root5, {
2123
2264
  ...props,
2124
2265
  className: tx("message.root", "message", {
2125
2266
  valence,
@@ -2136,7 +2277,7 @@ var MessageTitle = /* @__PURE__ */ forwardRef21(({ asChild, className, children,
2136
2277
  const { tx } = useThemeContext();
2137
2278
  const { titleId } = useMessageContext(MESSAGE_TITLE_NAME);
2138
2279
  const Root5 = asChild ? Slot11 : Primitive10.h2;
2139
- return /* @__PURE__ */ React24.createElement(Root5, {
2280
+ return /* @__PURE__ */ React27.createElement(Root5, {
2140
2281
  ...props,
2141
2282
  className: tx("message.title", "message__title", {}, className),
2142
2283
  id: titleId,
@@ -2149,7 +2290,7 @@ var MessageBody = /* @__PURE__ */ forwardRef21(({ asChild, className, children,
2149
2290
  const { tx } = useThemeContext();
2150
2291
  const { descriptionId } = useMessageContext(MESSAGE_BODY_NAME);
2151
2292
  const Root5 = asChild ? Slot11 : Primitive10.p;
2152
- return /* @__PURE__ */ React24.createElement(Root5, {
2293
+ return /* @__PURE__ */ React27.createElement(Root5, {
2153
2294
  ...props,
2154
2295
  className: tx("message.body", "message__body", {}, className),
2155
2296
  id: descriptionId,
@@ -2179,7 +2320,7 @@ import { Primitive as Primitive11 } from "@radix-ui/react-primitive";
2179
2320
  import { Slot as Slot12 } from "@radix-ui/react-slot";
2180
2321
  import { useControllableState as useControllableState5 } from "@radix-ui/react-use-controllable-state";
2181
2322
  import { hideOthers } from "aria-hidden";
2182
- import React25, { forwardRef as forwardRef22, useRef as useRef3, useCallback as useCallback5, useState as useState5, useEffect as useEffect6 } from "react";
2323
+ import React28, { forwardRef as forwardRef22, useRef as useRef3, useCallback as useCallback6, useState as useState7, useEffect as useEffect7 } from "react";
2183
2324
  import { RemoveScroll } from "react-remove-scroll";
2184
2325
  var POPOVER_NAME = "Popover";
2185
2326
  var [createPopoverContext, createPopoverScope] = createContextScope3(POPOVER_NAME, [
@@ -2191,24 +2332,24 @@ var PopoverRoot = (props) => {
2191
2332
  const { __scopePopover, children, open: openProp, defaultOpen, onOpenChange, modal = false } = props;
2192
2333
  const popperScope = usePopperScope(__scopePopover);
2193
2334
  const triggerRef = useRef3(null);
2194
- const [hasCustomAnchor, setHasCustomAnchor] = useState5(false);
2335
+ const [hasCustomAnchor, setHasCustomAnchor] = useState7(false);
2195
2336
  const [open = false, setOpen] = useControllableState5({
2196
2337
  prop: openProp,
2197
2338
  defaultProp: defaultOpen,
2198
2339
  onChange: onOpenChange
2199
2340
  });
2200
- return /* @__PURE__ */ React25.createElement(PopperPrimitive.Root, popperScope, /* @__PURE__ */ React25.createElement(PopoverProvider, {
2341
+ return /* @__PURE__ */ React28.createElement(PopperPrimitive.Root, popperScope, /* @__PURE__ */ React28.createElement(PopoverProvider, {
2201
2342
  scope: __scopePopover,
2202
2343
  contentId: useId5(),
2203
2344
  triggerRef,
2204
2345
  open,
2205
2346
  onOpenChange: setOpen,
2206
- onOpenToggle: useCallback5(() => setOpen((prevOpen) => !prevOpen), [
2347
+ onOpenToggle: useCallback6(() => setOpen((prevOpen) => !prevOpen), [
2207
2348
  setOpen
2208
2349
  ]),
2209
2350
  hasCustomAnchor,
2210
- onCustomAnchorAdd: useCallback5(() => setHasCustomAnchor(true), []),
2211
- onCustomAnchorRemove: useCallback5(() => setHasCustomAnchor(false), []),
2351
+ onCustomAnchorAdd: useCallback6(() => setHasCustomAnchor(true), []),
2352
+ onCustomAnchorRemove: useCallback6(() => setHasCustomAnchor(false), []),
2212
2353
  modal
2213
2354
  }, children));
2214
2355
  };
@@ -2219,14 +2360,14 @@ var PopoverAnchor = /* @__PURE__ */ forwardRef22((props, forwardedRef) => {
2219
2360
  const context = usePopoverContext(ANCHOR_NAME, __scopePopover);
2220
2361
  const popperScope = usePopperScope(__scopePopover);
2221
2362
  const { onCustomAnchorAdd, onCustomAnchorRemove } = context;
2222
- useEffect6(() => {
2363
+ useEffect7(() => {
2223
2364
  onCustomAnchorAdd();
2224
2365
  return () => onCustomAnchorRemove();
2225
2366
  }, [
2226
2367
  onCustomAnchorAdd,
2227
2368
  onCustomAnchorRemove
2228
2369
  ]);
2229
- return /* @__PURE__ */ React25.createElement(PopperPrimitive.Anchor, {
2370
+ return /* @__PURE__ */ React28.createElement(PopperPrimitive.Anchor, {
2230
2371
  ...popperScope,
2231
2372
  ...anchorProps,
2232
2373
  ref: forwardedRef
@@ -2239,7 +2380,7 @@ var PopoverTrigger = /* @__PURE__ */ forwardRef22((props, forwardedRef) => {
2239
2380
  const context = usePopoverContext(TRIGGER_NAME2, __scopePopover);
2240
2381
  const popperScope = usePopperScope(__scopePopover);
2241
2382
  const composedTriggerRef = useComposedRefs2(forwardedRef, context.triggerRef);
2242
- const trigger = /* @__PURE__ */ React25.createElement(Primitive11.button, {
2383
+ const trigger = /* @__PURE__ */ React28.createElement(Primitive11.button, {
2243
2384
  type: "button",
2244
2385
  "aria-haspopup": "dialog",
2245
2386
  "aria-expanded": context.open,
@@ -2249,7 +2390,7 @@ var PopoverTrigger = /* @__PURE__ */ forwardRef22((props, forwardedRef) => {
2249
2390
  ref: composedTriggerRef,
2250
2391
  onClick: composeEventHandlers2(props.onClick, context.onOpenToggle)
2251
2392
  });
2252
- return context.hasCustomAnchor ? trigger : /* @__PURE__ */ React25.createElement(PopperPrimitive.Anchor, {
2393
+ return context.hasCustomAnchor ? trigger : /* @__PURE__ */ React28.createElement(PopperPrimitive.Anchor, {
2253
2394
  asChild: true,
2254
2395
  ...popperScope
2255
2396
  }, trigger);
@@ -2260,12 +2401,12 @@ var PopoverVirtualTrigger = (props) => {
2260
2401
  const { __scopePopover, virtualRef } = props;
2261
2402
  const context = usePopoverContext(VIRTUAL_TRIGGER_NAME2, __scopePopover);
2262
2403
  const popperScope = usePopperScope(__scopePopover);
2263
- useEffect6(() => {
2404
+ useEffect7(() => {
2264
2405
  if (virtualRef.current) {
2265
2406
  context.triggerRef.current = virtualRef.current;
2266
2407
  }
2267
2408
  });
2268
- return /* @__PURE__ */ React25.createElement(PopperPrimitive.Anchor, {
2409
+ return /* @__PURE__ */ React28.createElement(PopperPrimitive.Anchor, {
2269
2410
  ...popperScope,
2270
2411
  virtualRef
2271
2412
  });
@@ -2278,12 +2419,12 @@ var [PortalProvider, usePortalContext] = createPopoverContext(PORTAL_NAME2, {
2278
2419
  var PopoverPortal = (props) => {
2279
2420
  const { __scopePopover, forceMount, children, container } = props;
2280
2421
  const context = usePopoverContext(PORTAL_NAME2, __scopePopover);
2281
- return /* @__PURE__ */ React25.createElement(PortalProvider, {
2422
+ return /* @__PURE__ */ React28.createElement(PortalProvider, {
2282
2423
  scope: __scopePopover,
2283
2424
  forceMount
2284
- }, /* @__PURE__ */ React25.createElement(Presence, {
2425
+ }, /* @__PURE__ */ React28.createElement(Presence, {
2285
2426
  present: forceMount || context.open
2286
- }, /* @__PURE__ */ React25.createElement(PortalPrimitive, {
2427
+ }, /* @__PURE__ */ React28.createElement(PortalPrimitive, {
2287
2428
  asChild: true,
2288
2429
  container
2289
2430
  }, children)));
@@ -2294,12 +2435,12 @@ var PopoverContent = /* @__PURE__ */ forwardRef22((props, forwardedRef) => {
2294
2435
  const portalContext = usePortalContext(CONTENT_NAME2, props.__scopePopover);
2295
2436
  const { forceMount = portalContext.forceMount, ...contentProps } = props;
2296
2437
  const context = usePopoverContext(CONTENT_NAME2, props.__scopePopover);
2297
- return /* @__PURE__ */ React25.createElement(Presence, {
2438
+ return /* @__PURE__ */ React28.createElement(Presence, {
2298
2439
  present: forceMount || context.open
2299
- }, context.modal ? /* @__PURE__ */ React25.createElement(PopoverContentModal, {
2440
+ }, context.modal ? /* @__PURE__ */ React28.createElement(PopoverContentModal, {
2300
2441
  ...contentProps,
2301
2442
  ref: forwardedRef
2302
- }) : /* @__PURE__ */ React25.createElement(PopoverContentNonModal, {
2443
+ }) : /* @__PURE__ */ React28.createElement(PopoverContentNonModal, {
2303
2444
  ...contentProps,
2304
2445
  ref: forwardedRef
2305
2446
  }));
@@ -2310,16 +2451,16 @@ var PopoverContentModal = /* @__PURE__ */ forwardRef22((props, forwardedRef) =>
2310
2451
  const contentRef = useRef3(null);
2311
2452
  const composedRefs = useComposedRefs2(forwardedRef, contentRef);
2312
2453
  const isRightClickOutsideRef = useRef3(false);
2313
- useEffect6(() => {
2454
+ useEffect7(() => {
2314
2455
  const content = contentRef.current;
2315
2456
  if (content) {
2316
2457
  return hideOthers(content);
2317
2458
  }
2318
2459
  }, []);
2319
- return /* @__PURE__ */ React25.createElement(RemoveScroll, {
2460
+ return /* @__PURE__ */ React28.createElement(RemoveScroll, {
2320
2461
  as: Slot12,
2321
2462
  allowPinchZoom: true
2322
- }, /* @__PURE__ */ React25.createElement(PopoverContentImpl, {
2463
+ }, /* @__PURE__ */ React28.createElement(PopoverContentImpl, {
2323
2464
  ...props,
2324
2465
  ref: composedRefs,
2325
2466
  // we make sure we're not trapping once it's been closed
@@ -2351,7 +2492,7 @@ var PopoverContentNonModal = /* @__PURE__ */ forwardRef22((props, forwardedRef)
2351
2492
  const context = usePopoverContext(CONTENT_NAME2, props.__scopePopover);
2352
2493
  const hasInteractedOutsideRef = useRef3(false);
2353
2494
  const hasPointerDownOutsideRef = useRef3(false);
2354
- return /* @__PURE__ */ React25.createElement(PopoverContentImpl, {
2495
+ return /* @__PURE__ */ React28.createElement(PopoverContentImpl, {
2355
2496
  ...props,
2356
2497
  ref: forwardedRef,
2357
2498
  trapFocus: false,
@@ -2392,13 +2533,13 @@ var PopoverContentImpl = /* @__PURE__ */ forwardRef22((props, forwardedRef) => {
2392
2533
  const popperScope = usePopperScope(__scopePopover);
2393
2534
  const { tx } = useThemeContext();
2394
2535
  useFocusGuards();
2395
- return /* @__PURE__ */ React25.createElement(FocusScope, {
2536
+ return /* @__PURE__ */ React28.createElement(FocusScope, {
2396
2537
  asChild: true,
2397
2538
  loop: true,
2398
2539
  trapped: trapFocus,
2399
2540
  onMountAutoFocus: onOpenAutoFocus,
2400
2541
  onUnmountAutoFocus: onCloseAutoFocus
2401
- }, /* @__PURE__ */ React25.createElement(DismissableLayer, {
2542
+ }, /* @__PURE__ */ React28.createElement(DismissableLayer, {
2402
2543
  asChild: true,
2403
2544
  disableOutsidePointerEvents,
2404
2545
  onInteractOutside,
@@ -2406,7 +2547,7 @@ var PopoverContentImpl = /* @__PURE__ */ forwardRef22((props, forwardedRef) => {
2406
2547
  onPointerDownOutside,
2407
2548
  onFocusOutside,
2408
2549
  onDismiss: () => context.onOpenChange(false)
2409
- }, /* @__PURE__ */ React25.createElement(PopperPrimitive.Content, {
2550
+ }, /* @__PURE__ */ React28.createElement(PopperPrimitive.Content, {
2410
2551
  "data-state": getState(context.open),
2411
2552
  role: "dialog",
2412
2553
  id: context.contentId,
@@ -2431,7 +2572,7 @@ var CLOSE_NAME = "PopoverClose";
2431
2572
  var PopoverClose = /* @__PURE__ */ forwardRef22((props, forwardedRef) => {
2432
2573
  const { __scopePopover, ...closeProps } = props;
2433
2574
  const context = usePopoverContext(CLOSE_NAME, __scopePopover);
2434
- return /* @__PURE__ */ React25.createElement(Primitive11.button, {
2575
+ return /* @__PURE__ */ React28.createElement(Primitive11.button, {
2435
2576
  type: "button",
2436
2577
  ...closeProps,
2437
2578
  ref: forwardedRef,
@@ -2444,7 +2585,7 @@ var PopoverArrow = /* @__PURE__ */ forwardRef22((props, forwardedRef) => {
2444
2585
  const { __scopePopover, classNames, ...arrowProps } = props;
2445
2586
  const popperScope = usePopperScope(__scopePopover);
2446
2587
  const { tx } = useThemeContext();
2447
- return /* @__PURE__ */ React25.createElement(PopperPrimitive.Arrow, {
2588
+ return /* @__PURE__ */ React28.createElement(PopperPrimitive.Arrow, {
2448
2589
  ...popperScope,
2449
2590
  ...arrowProps,
2450
2591
  className: tx("popover.arrow", "popover__arrow", {}, classNames),
@@ -2455,7 +2596,7 @@ PopoverArrow.displayName = ARROW_NAME2;
2455
2596
  var PopoverViewport = /* @__PURE__ */ forwardRef22(({ classNames, asChild, constrainInline = true, constrainBlock = true, children, ...props }, forwardedRef) => {
2456
2597
  const { tx } = useThemeContext();
2457
2598
  const Root5 = asChild ? Slot12 : Primitive11.div;
2458
- return /* @__PURE__ */ React25.createElement(Root5, {
2599
+ return /* @__PURE__ */ React28.createElement(Root5, {
2459
2600
  ...props,
2460
2601
  className: tx("popover.viewport", "popover__viewport", {
2461
2602
  constrainInline,
@@ -2478,10 +2619,10 @@ var Popover = {
2478
2619
  };
2479
2620
 
2480
2621
  // packages/ui/react-ui/src/components/Status/Status.tsx
2481
- import React26, { forwardRef as forwardRef23 } from "react";
2622
+ import React29, { forwardRef as forwardRef23 } from "react";
2482
2623
  var Status = /* @__PURE__ */ forwardRef23(({ classNames, children, progress = 0, indeterminate, variant, ...props }, forwardedRef) => {
2483
2624
  const { tx } = useThemeContext();
2484
- return /* @__PURE__ */ React26.createElement("span", {
2625
+ return /* @__PURE__ */ React29.createElement("span", {
2485
2626
  role: "status",
2486
2627
  ...props,
2487
2628
  className: tx("status.root", "status", {
@@ -2489,7 +2630,7 @@ var Status = /* @__PURE__ */ forwardRef23(({ classNames, children, progress = 0,
2489
2630
  variant
2490
2631
  }, classNames),
2491
2632
  ref: forwardedRef
2492
- }, /* @__PURE__ */ React26.createElement("span", {
2633
+ }, /* @__PURE__ */ React29.createElement("span", {
2493
2634
  role: "none",
2494
2635
  className: tx("status.bar", "status__bar", {
2495
2636
  indeterminate,
@@ -2505,10 +2646,10 @@ var Status = /* @__PURE__ */ forwardRef23(({ classNames, children, progress = 0,
2505
2646
 
2506
2647
  // packages/ui/react-ui/src/components/ScrollArea/ScrollArea.tsx
2507
2648
  import { Root as ScrollAreaPrimitiveRoot, Viewport as ScrollAreaPrimitiveViewport, Scrollbar as ScrollAreaPrimitiveScrollbar, Thumb as ScrollAreaPrimitiveThumb, Corner as ScrollAreaPrimitiveCorner } from "@radix-ui/react-scroll-area";
2508
- import React27, { forwardRef as forwardRef24 } from "react";
2649
+ import React30, { forwardRef as forwardRef24 } from "react";
2509
2650
  var ScrollAreaRoot = /* @__PURE__ */ forwardRef24(({ classNames, ...props }, forwardedRef) => {
2510
2651
  const { tx } = useThemeContext();
2511
- return /* @__PURE__ */ React27.createElement(ScrollAreaPrimitiveRoot, {
2652
+ return /* @__PURE__ */ React30.createElement(ScrollAreaPrimitiveRoot, {
2512
2653
  ...props,
2513
2654
  className: tx("scrollArea.root", "scroll-area", {}, classNames),
2514
2655
  ref: forwardedRef
@@ -2516,7 +2657,7 @@ var ScrollAreaRoot = /* @__PURE__ */ forwardRef24(({ classNames, ...props }, for
2516
2657
  });
2517
2658
  var ScrollAreaViewport = /* @__PURE__ */ forwardRef24(({ classNames, ...props }, forwardedRef) => {
2518
2659
  const { tx } = useThemeContext();
2519
- return /* @__PURE__ */ React27.createElement(ScrollAreaPrimitiveViewport, {
2660
+ return /* @__PURE__ */ React30.createElement(ScrollAreaPrimitiveViewport, {
2520
2661
  ...props,
2521
2662
  className: tx("scrollArea.viewport", "scroll-area", {}, classNames),
2522
2663
  ref: forwardedRef
@@ -2524,7 +2665,7 @@ var ScrollAreaViewport = /* @__PURE__ */ forwardRef24(({ classNames, ...props },
2524
2665
  });
2525
2666
  var ScrollAreaScrollbar = /* @__PURE__ */ forwardRef24(({ classNames, variant = "fine", ...props }, forwardedRef) => {
2526
2667
  const { tx } = useThemeContext();
2527
- return /* @__PURE__ */ React27.createElement(ScrollAreaPrimitiveScrollbar, {
2668
+ return /* @__PURE__ */ React30.createElement(ScrollAreaPrimitiveScrollbar, {
2528
2669
  "data-variant": variant,
2529
2670
  ...props,
2530
2671
  className: tx("scrollArea.scrollbar", "scroll-area__scrollbar", {}, classNames),
@@ -2533,7 +2674,7 @@ var ScrollAreaScrollbar = /* @__PURE__ */ forwardRef24(({ classNames, variant =
2533
2674
  });
2534
2675
  var ScrollAreaThumb = /* @__PURE__ */ forwardRef24(({ classNames, ...props }, forwardedRef) => {
2535
2676
  const { tx } = useThemeContext();
2536
- return /* @__PURE__ */ React27.createElement(ScrollAreaPrimitiveThumb, {
2677
+ return /* @__PURE__ */ React30.createElement(ScrollAreaPrimitiveThumb, {
2537
2678
  ...props,
2538
2679
  className: tx("scrollArea.thumb", "scroll-area__thumb", {}, classNames),
2539
2680
  ref: forwardedRef
@@ -2541,7 +2682,7 @@ var ScrollAreaThumb = /* @__PURE__ */ forwardRef24(({ classNames, ...props }, fo
2541
2682
  });
2542
2683
  var ScrollAreaCorner = /* @__PURE__ */ forwardRef24(({ classNames, ...props }, forwardedRef) => {
2543
2684
  const { tx } = useThemeContext();
2544
- return /* @__PURE__ */ React27.createElement(ScrollAreaPrimitiveCorner, {
2685
+ return /* @__PURE__ */ React30.createElement(ScrollAreaPrimitiveCorner, {
2545
2686
  ...props,
2546
2687
  className: tx("scrollArea.corner", "scroll-area__corner", {}, classNames),
2547
2688
  ref: forwardedRef
@@ -2558,7 +2699,7 @@ var ScrollArea = {
2558
2699
  // packages/ui/react-ui/src/components/Select/Select.tsx
2559
2700
  import { CaretDown as CaretDown2, CaretUp } from "@phosphor-icons/react";
2560
2701
  import * as SelectPrimitive from "@radix-ui/react-select";
2561
- import React28, { forwardRef as forwardRef25 } from "react";
2702
+ import React31, { forwardRef as forwardRef25 } from "react";
2562
2703
  var SelectRoot = SelectPrimitive.Root;
2563
2704
  var SelectTrigger = SelectPrimitive.Trigger;
2564
2705
  var SelectValue = SelectPrimitive.Value;
@@ -2566,23 +2707,23 @@ var SelectIcon = SelectPrimitive.Icon;
2566
2707
  var SelectPortal = SelectPrimitive.Portal;
2567
2708
  var SelectTriggerButton = /* @__PURE__ */ forwardRef25(({ children, placeholder, ...props }, forwardedRef) => {
2568
2709
  const { tx } = useThemeContext();
2569
- return /* @__PURE__ */ React28.createElement(SelectPrimitive.Trigger, {
2710
+ return /* @__PURE__ */ React31.createElement(SelectPrimitive.Trigger, {
2570
2711
  asChild: true,
2571
2712
  ref: forwardedRef
2572
- }, /* @__PURE__ */ React28.createElement(Button, props, /* @__PURE__ */ React28.createElement(SelectPrimitive.Value, {
2713
+ }, /* @__PURE__ */ React31.createElement(Button, props, /* @__PURE__ */ React31.createElement(SelectPrimitive.Value, {
2573
2714
  placeholder
2574
- }, children), /* @__PURE__ */ React28.createElement("span", {
2715
+ }, children), /* @__PURE__ */ React31.createElement("span", {
2575
2716
  className: "w-1 flex-1"
2576
- }), /* @__PURE__ */ React28.createElement(SelectPrimitive.Icon, {
2717
+ }), /* @__PURE__ */ React31.createElement(SelectPrimitive.Icon, {
2577
2718
  asChild: true
2578
- }, /* @__PURE__ */ React28.createElement(CaretDown2, {
2719
+ }, /* @__PURE__ */ React31.createElement(CaretDown2, {
2579
2720
  className: tx("select.triggerIcon", "select__trigger__icon", {}),
2580
2721
  weight: "bold"
2581
2722
  }))));
2582
2723
  });
2583
2724
  var SelectContent = /* @__PURE__ */ forwardRef25(({ classNames, children, ...props }, forwardedRef) => {
2584
2725
  const { tx } = useThemeContext();
2585
- return /* @__PURE__ */ React28.createElement(SelectPrimitive.Content, {
2726
+ return /* @__PURE__ */ React31.createElement(SelectPrimitive.Content, {
2586
2727
  ...props,
2587
2728
  className: tx("select.content", "select__content", {}, classNames),
2588
2729
  position: "popper",
@@ -2591,27 +2732,27 @@ var SelectContent = /* @__PURE__ */ forwardRef25(({ classNames, children, ...pro
2591
2732
  });
2592
2733
  var SelectScrollUpButton2 = /* @__PURE__ */ forwardRef25(({ classNames, children, ...props }, forwardedRef) => {
2593
2734
  const { tx } = useThemeContext();
2594
- return /* @__PURE__ */ React28.createElement(SelectPrimitive.SelectScrollUpButton, {
2735
+ return /* @__PURE__ */ React31.createElement(SelectPrimitive.SelectScrollUpButton, {
2595
2736
  ...props,
2596
2737
  className: tx("select.scrollButton", "select__scroll-button--up", {}, classNames),
2597
2738
  ref: forwardedRef
2598
- }, children ?? /* @__PURE__ */ React28.createElement(CaretUp, {
2739
+ }, children ?? /* @__PURE__ */ React31.createElement(CaretUp, {
2599
2740
  weight: "bold"
2600
2741
  }));
2601
2742
  });
2602
2743
  var SelectScrollDownButton2 = /* @__PURE__ */ forwardRef25(({ classNames, children, ...props }, forwardedRef) => {
2603
2744
  const { tx } = useThemeContext();
2604
- return /* @__PURE__ */ React28.createElement(SelectPrimitive.SelectScrollDownButton, {
2745
+ return /* @__PURE__ */ React31.createElement(SelectPrimitive.SelectScrollDownButton, {
2605
2746
  ...props,
2606
2747
  className: tx("select.scrollButton", "select__scroll-button--down", {}, classNames),
2607
2748
  ref: forwardedRef
2608
- }, children ?? /* @__PURE__ */ React28.createElement(CaretDown2, {
2749
+ }, children ?? /* @__PURE__ */ React31.createElement(CaretDown2, {
2609
2750
  weight: "bold"
2610
2751
  }));
2611
2752
  });
2612
2753
  var SelectViewport2 = /* @__PURE__ */ forwardRef25(({ classNames, asChild, children, ...props }, forwardedRef) => {
2613
2754
  const { tx } = useThemeContext();
2614
- return /* @__PURE__ */ React28.createElement(SelectPrimitive.SelectViewport, {
2755
+ return /* @__PURE__ */ React31.createElement(SelectPrimitive.SelectViewport, {
2615
2756
  ...props,
2616
2757
  className: tx("select.viewport", "select__viewport", {}, classNames),
2617
2758
  ref: forwardedRef
@@ -2619,7 +2760,7 @@ var SelectViewport2 = /* @__PURE__ */ forwardRef25(({ classNames, asChild, child
2619
2760
  });
2620
2761
  var SelectItem = /* @__PURE__ */ forwardRef25(({ classNames, ...props }, forwardedRef) => {
2621
2762
  const { tx } = useThemeContext();
2622
- return /* @__PURE__ */ React28.createElement(SelectPrimitive.Item, {
2763
+ return /* @__PURE__ */ React31.createElement(SelectPrimitive.Item, {
2623
2764
  ...props,
2624
2765
  className: tx("select.item", "option", {}, classNames),
2625
2766
  ref: forwardedRef
@@ -2628,7 +2769,7 @@ var SelectItem = /* @__PURE__ */ forwardRef25(({ classNames, ...props }, forward
2628
2769
  var SelectItemText = SelectPrimitive.ItemText;
2629
2770
  var SelectItemIndicator = /* @__PURE__ */ forwardRef25(({ classNames, children, ...props }, forwardedRef) => {
2630
2771
  const { tx } = useThemeContext();
2631
- return /* @__PURE__ */ React28.createElement(SelectPrimitive.ItemIndicator, {
2772
+ return /* @__PURE__ */ React31.createElement(SelectPrimitive.ItemIndicator, {
2632
2773
  ...props,
2633
2774
  className: tx("select.itemIndicator", "option__indicator", {}, classNames),
2634
2775
  ref: forwardedRef
@@ -2636,13 +2777,13 @@ var SelectItemIndicator = /* @__PURE__ */ forwardRef25(({ classNames, children,
2636
2777
  });
2637
2778
  var SelectOption = /* @__PURE__ */ forwardRef25(({ children, classNames, ...props }, forwardedRef) => {
2638
2779
  const { tx } = useThemeContext();
2639
- return /* @__PURE__ */ React28.createElement(SelectPrimitive.Item, {
2780
+ return /* @__PURE__ */ React31.createElement(SelectPrimitive.Item, {
2640
2781
  ...props,
2641
2782
  className: tx("select.item", "option", {}, classNames),
2642
2783
  ref: forwardedRef
2643
- }, /* @__PURE__ */ React28.createElement(SelectPrimitive.ItemText, null, children), /* @__PURE__ */ React28.createElement("span", {
2784
+ }, /* @__PURE__ */ React31.createElement(SelectPrimitive.ItemText, null, children), /* @__PURE__ */ React31.createElement("span", {
2644
2785
  className: "grow w-1"
2645
- }), /* @__PURE__ */ React28.createElement(Icon, {
2786
+ }), /* @__PURE__ */ React31.createElement(Icon, {
2646
2787
  icon: "ph--check--regular"
2647
2788
  }));
2648
2789
  });
@@ -2650,7 +2791,7 @@ var SelectGroup = SelectPrimitive.Group;
2650
2791
  var SelectLabel = SelectPrimitive.Label;
2651
2792
  var SelectSeparator = /* @__PURE__ */ forwardRef25(({ classNames, ...props }, forwardedRef) => {
2652
2793
  const { tx } = useThemeContext();
2653
- return /* @__PURE__ */ React28.createElement(SelectPrimitive.Separator, {
2794
+ return /* @__PURE__ */ React31.createElement(SelectPrimitive.Separator, {
2654
2795
  ...props,
2655
2796
  className: tx("select.separator", "select__separator", {}, classNames),
2656
2797
  ref: forwardedRef
@@ -2658,7 +2799,7 @@ var SelectSeparator = /* @__PURE__ */ forwardRef25(({ classNames, ...props }, fo
2658
2799
  });
2659
2800
  var SelectArrow = /* @__PURE__ */ forwardRef25(({ classNames, ...props }, forwardedRef) => {
2660
2801
  const { tx } = useThemeContext();
2661
- return /* @__PURE__ */ React28.createElement(SelectPrimitive.Arrow, {
2802
+ return /* @__PURE__ */ React31.createElement(SelectPrimitive.Arrow, {
2662
2803
  ...props,
2663
2804
  className: tx("select.arrow", "select__arrow", {}, classNames),
2664
2805
  ref: forwardedRef
@@ -2687,10 +2828,10 @@ var Select = {
2687
2828
 
2688
2829
  // packages/ui/react-ui/src/components/Separator/Separator.tsx
2689
2830
  import { Separator as SeparatorPrimitive } from "@radix-ui/react-separator";
2690
- import React29 from "react";
2831
+ import React32 from "react";
2691
2832
  var Separator4 = ({ classNames, orientation = "horizontal", ...props }) => {
2692
2833
  const { tx } = useThemeContext();
2693
- return /* @__PURE__ */ React29.createElement(SeparatorPrimitive, {
2834
+ return /* @__PURE__ */ React32.createElement(SeparatorPrimitive, {
2694
2835
  orientation,
2695
2836
  ...props,
2696
2837
  className: tx("separator.root", "separator", {
@@ -2702,11 +2843,11 @@ var Separator4 = ({ classNames, orientation = "horizontal", ...props }) => {
2702
2843
  // packages/ui/react-ui/src/components/Tag/Tag.tsx
2703
2844
  import { Primitive as Primitive12 } from "@radix-ui/react-primitive";
2704
2845
  import { Slot as Slot13 } from "@radix-ui/react-slot";
2705
- import React30, { forwardRef as forwardRef26 } from "react";
2846
+ import React33, { forwardRef as forwardRef26 } from "react";
2706
2847
  var Tag = /* @__PURE__ */ forwardRef26(({ asChild, palette, classNames, ...props }, forwardedRef) => {
2707
2848
  const { tx } = useThemeContext();
2708
2849
  const Root5 = asChild ? Slot13 : Primitive12.span;
2709
- return /* @__PURE__ */ React30.createElement(Root5, {
2850
+ return /* @__PURE__ */ React33.createElement(Root5, {
2710
2851
  ...props,
2711
2852
  className: tx("tag.root", "tag", {
2712
2853
  palette
@@ -2719,29 +2860,29 @@ var Tag = /* @__PURE__ */ forwardRef26(({ asChild, palette, classNames, ...props
2719
2860
  import { Primitive as Primitive13 } from "@radix-ui/react-primitive";
2720
2861
  import { Slot as Slot14 } from "@radix-ui/react-slot";
2721
2862
  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";
2722
- import React31, { forwardRef as forwardRef27 } from "react";
2863
+ import React34, { forwardRef as forwardRef27 } from "react";
2723
2864
  var ToastProvider = ToastProviderPrimitive;
2724
2865
  var ToastViewport = /* @__PURE__ */ forwardRef27(({ classNames, ...props }, forwardedRef) => {
2725
2866
  const { tx } = useThemeContext();
2726
- return /* @__PURE__ */ React31.createElement(ToastViewportPrimitive, {
2867
+ return /* @__PURE__ */ React34.createElement(ToastViewportPrimitive, {
2727
2868
  className: tx("toast.viewport", "toast-viewport", {}, classNames),
2728
2869
  ref: forwardedRef
2729
2870
  });
2730
2871
  });
2731
2872
  var ToastRoot = /* @__PURE__ */ forwardRef27(({ classNames, children, ...props }, forwardedRef) => {
2732
2873
  const { tx } = useThemeContext();
2733
- return /* @__PURE__ */ React31.createElement(ToastRootPrimitive, {
2874
+ return /* @__PURE__ */ React34.createElement(ToastRootPrimitive, {
2734
2875
  ...props,
2735
2876
  className: tx("toast.root", "toast", {}, classNames),
2736
2877
  ref: forwardedRef
2737
- }, /* @__PURE__ */ React31.createElement(ElevationProvider, {
2878
+ }, /* @__PURE__ */ React34.createElement(ElevationProvider, {
2738
2879
  elevation: "chrome"
2739
2880
  }, children));
2740
2881
  });
2741
2882
  var ToastBody = /* @__PURE__ */ forwardRef27(({ asChild, classNames, ...props }, forwardedRef) => {
2742
2883
  const { tx } = useThemeContext();
2743
2884
  const Root5 = asChild ? Slot14 : Primitive13.div;
2744
- return /* @__PURE__ */ React31.createElement(Root5, {
2885
+ return /* @__PURE__ */ React34.createElement(Root5, {
2745
2886
  ...props,
2746
2887
  className: tx("toast.body", "toast__body", {}, classNames),
2747
2888
  ref: forwardedRef
@@ -2750,7 +2891,7 @@ var ToastBody = /* @__PURE__ */ forwardRef27(({ asChild, classNames, ...props },
2750
2891
  var ToastTitle = /* @__PURE__ */ forwardRef27(({ asChild, classNames, ...props }, forwardedRef) => {
2751
2892
  const { tx } = useThemeContext();
2752
2893
  const Root5 = asChild ? Slot14 : ToastTitlePrimitive;
2753
- return /* @__PURE__ */ React31.createElement(Root5, {
2894
+ return /* @__PURE__ */ React34.createElement(Root5, {
2754
2895
  ...props,
2755
2896
  className: tx("toast.title", "toast__title", {}, classNames),
2756
2897
  ref: forwardedRef
@@ -2759,7 +2900,7 @@ var ToastTitle = /* @__PURE__ */ forwardRef27(({ asChild, classNames, ...props }
2759
2900
  var ToastDescription = /* @__PURE__ */ forwardRef27(({ asChild, classNames, ...props }, forwardedRef) => {
2760
2901
  const { tx } = useThemeContext();
2761
2902
  const Root5 = asChild ? Slot14 : ToastDescriptionPrimitive;
2762
- return /* @__PURE__ */ React31.createElement(Root5, {
2903
+ return /* @__PURE__ */ React34.createElement(Root5, {
2763
2904
  ...props,
2764
2905
  className: tx("toast.description", "toast__description", {}, classNames),
2765
2906
  ref: forwardedRef
@@ -2768,7 +2909,7 @@ var ToastDescription = /* @__PURE__ */ forwardRef27(({ asChild, classNames, ...p
2768
2909
  var ToastActions = /* @__PURE__ */ forwardRef27(({ asChild, classNames, ...props }, forwardedRef) => {
2769
2910
  const { tx } = useThemeContext();
2770
2911
  const Root5 = asChild ? Slot14 : Primitive13.div;
2771
- return /* @__PURE__ */ React31.createElement(Root5, {
2912
+ return /* @__PURE__ */ React34.createElement(Root5, {
2772
2913
  ...props,
2773
2914
  className: tx("toast.actions", "toast__actions", {}, classNames),
2774
2915
  ref: forwardedRef
@@ -2790,44 +2931,44 @@ var Toast = {
2790
2931
 
2791
2932
  // packages/ui/react-ui/src/components/Toolbar/Toolbar.tsx
2792
2933
  import * as ToolbarPrimitive from "@radix-ui/react-toolbar";
2793
- import React32, { forwardRef as forwardRef28 } from "react";
2934
+ import React35, { forwardRef as forwardRef28 } from "react";
2794
2935
  var ToolbarRoot = /* @__PURE__ */ forwardRef28(({ classNames, children, ...props }, forwardedRef) => {
2795
2936
  const { tx } = useThemeContext();
2796
- return /* @__PURE__ */ React32.createElement(ToolbarPrimitive.Root, {
2937
+ return /* @__PURE__ */ React35.createElement(ToolbarPrimitive.Root, {
2797
2938
  ...props,
2798
2939
  className: tx("toolbar.root", "toolbar", {}, classNames),
2799
2940
  ref: forwardedRef
2800
2941
  }, children);
2801
2942
  });
2802
2943
  var ToolbarButton = /* @__PURE__ */ forwardRef28((props, forwardedRef) => {
2803
- return /* @__PURE__ */ React32.createElement(ToolbarPrimitive.Button, {
2944
+ return /* @__PURE__ */ React35.createElement(ToolbarPrimitive.Button, {
2804
2945
  asChild: true
2805
- }, /* @__PURE__ */ React32.createElement(Button, {
2946
+ }, /* @__PURE__ */ React35.createElement(Button, {
2806
2947
  ...props,
2807
2948
  ref: forwardedRef
2808
2949
  }));
2809
2950
  });
2810
2951
  var ToolbarToggle = /* @__PURE__ */ forwardRef28((props, forwardedRef) => {
2811
- return /* @__PURE__ */ React32.createElement(ToolbarPrimitive.Button, {
2952
+ return /* @__PURE__ */ React35.createElement(ToolbarPrimitive.Button, {
2812
2953
  asChild: true
2813
- }, /* @__PURE__ */ React32.createElement(Toggle, {
2954
+ }, /* @__PURE__ */ React35.createElement(Toggle, {
2814
2955
  ...props,
2815
2956
  ref: forwardedRef
2816
2957
  }));
2817
2958
  });
2818
2959
  var ToolbarLink = /* @__PURE__ */ forwardRef28((props, forwardedRef) => {
2819
- return /* @__PURE__ */ React32.createElement(ToolbarPrimitive.Link, {
2960
+ return /* @__PURE__ */ React35.createElement(ToolbarPrimitive.Link, {
2820
2961
  asChild: true
2821
- }, /* @__PURE__ */ React32.createElement(Link, {
2962
+ }, /* @__PURE__ */ React35.createElement(Link, {
2822
2963
  ...props,
2823
2964
  ref: forwardedRef
2824
2965
  }));
2825
2966
  });
2826
2967
  var ToolbarToggleGroup2 = /* @__PURE__ */ forwardRef28(({ classNames, children, elevation, ...props }, forwardedRef) => {
2827
- return /* @__PURE__ */ React32.createElement(ToolbarPrimitive.ToolbarToggleGroup, {
2968
+ return /* @__PURE__ */ React35.createElement(ToolbarPrimitive.ToolbarToggleGroup, {
2828
2969
  ...props,
2829
2970
  asChild: true
2830
- }, /* @__PURE__ */ React32.createElement(ButtonGroup, {
2971
+ }, /* @__PURE__ */ React35.createElement(ButtonGroup, {
2831
2972
  classNames,
2832
2973
  children,
2833
2974
  elevation,
@@ -2835,10 +2976,10 @@ var ToolbarToggleGroup2 = /* @__PURE__ */ forwardRef28(({ classNames, children,
2835
2976
  }));
2836
2977
  });
2837
2978
  var ToolbarToggleGroupItem = /* @__PURE__ */ forwardRef28(({ variant, density, elevation, classNames, children, ...props }, forwardedRef) => {
2838
- return /* @__PURE__ */ React32.createElement(ToolbarPrimitive.ToolbarToggleItem, {
2979
+ return /* @__PURE__ */ React35.createElement(ToolbarPrimitive.ToolbarToggleItem, {
2839
2980
  ...props,
2840
2981
  asChild: true
2841
- }, /* @__PURE__ */ React32.createElement(Button, {
2982
+ }, /* @__PURE__ */ React35.createElement(Button, {
2842
2983
  variant,
2843
2984
  density,
2844
2985
  elevation,
@@ -2848,14 +2989,14 @@ var ToolbarToggleGroupItem = /* @__PURE__ */ forwardRef28(({ variant, density, e
2848
2989
  }));
2849
2990
  });
2850
2991
  var ToolbarSeparator = (props) => {
2851
- return /* @__PURE__ */ React32.createElement(ToolbarPrimitive.Separator, {
2992
+ return /* @__PURE__ */ React35.createElement(ToolbarPrimitive.Separator, {
2852
2993
  asChild: true
2853
- }, /* @__PURE__ */ React32.createElement(Separator4, {
2994
+ }, /* @__PURE__ */ React35.createElement(Separator4, {
2854
2995
  orientation: "vertical",
2855
2996
  ...props
2856
2997
  }));
2857
2998
  };
2858
- var ToolbarExpander = () => /* @__PURE__ */ React32.createElement("div", {
2999
+ var ToolbarExpander = () => /* @__PURE__ */ React35.createElement("div", {
2859
3000
  className: "grow"
2860
3001
  });
2861
3002
  var Toolbar = {
@@ -2868,50 +3009,6 @@ var Toolbar = {
2868
3009
  Separator: ToolbarSeparator,
2869
3010
  Expander: ToolbarExpander
2870
3011
  };
2871
-
2872
- // packages/ui/react-ui/src/components/ThemeProvider/ThemeProvider.tsx
2873
- import { createKeyborg } from "keyborg";
2874
- import React33, { createContext as createContext10, useEffect as useEffect7 } from "react";
2875
-
2876
- // packages/ui/react-ui/src/util/hasIosKeyboard.ts
2877
- var hasIosKeyboard = () => {
2878
- return !!navigator.userAgent.match(/iP(ad|od|hone).+Safari/);
2879
- };
2880
-
2881
- // packages/ui/react-ui/src/components/ThemeProvider/ThemeProvider.tsx
2882
- var ThemeContext = /* @__PURE__ */ createContext10(void 0);
2883
- var ThemeProvider = ({ children, fallback = null, resourceExtensions, appNs, tx = (_path, defaultClassName, _styleProps, ..._options) => defaultClassName, themeMode = "dark", rootDensity = "fine", rootElevation = "base", ...rest }) => {
2884
- useEffect7(() => {
2885
- if (document.defaultView) {
2886
- const kb = createKeyborg(document.defaultView);
2887
- kb.subscribe(handleInputModalityChange);
2888
- return () => kb.unsubscribe(handleInputModalityChange);
2889
- }
2890
- }, []);
2891
- return /* @__PURE__ */ React33.createElement(ThemeContext.Provider, {
2892
- value: {
2893
- tx,
2894
- themeMode,
2895
- hasIosKeyboard: hasIosKeyboard(),
2896
- ...rest
2897
- }
2898
- }, /* @__PURE__ */ React33.createElement(TranslationsProvider, {
2899
- fallback,
2900
- resourceExtensions,
2901
- appNs
2902
- }, /* @__PURE__ */ React33.createElement(ElevationProvider, {
2903
- elevation: rootElevation
2904
- }, /* @__PURE__ */ React33.createElement(DensityProvider, {
2905
- density: rootDensity
2906
- }, children))));
2907
- };
2908
- var handleInputModalityChange = (isUsingKeyboard) => {
2909
- if (isUsingKeyboard) {
2910
- document.body.setAttribute("data-is-keyboard", "true");
2911
- } else {
2912
- document.body.removeAttribute("data-is-keyboard");
2913
- }
2914
- };
2915
3012
  export {
2916
3013
  AlertDialog,
2917
3014
  AnchoredOverflow,
@@ -2922,6 +3019,7 @@ export {
2922
3019
  Breadcrumb,
2923
3020
  Button,
2924
3021
  ButtonGroup,
3022
+ Clipboard,
2925
3023
  ContextMenu2 as ContextMenu,
2926
3024
  DensityContext,
2927
3025
  DensityProvider,
@@ -2964,6 +3062,7 @@ export {
2964
3062
  toLocalizedString,
2965
3063
  useAvatarContext,
2966
3064
  useButtonGroupContext,
3065
+ useClipboard,
2967
3066
  useDensityContext,
2968
3067
  useDropdownMenuContext,
2969
3068
  useDropdownMenuMenuScope,