@overmap-ai/blocks 1.0.29-menu-overhaul.12 → 1.0.29

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.
Files changed (33) hide show
  1. package/dist/OvermapItemGroup/OvermapItemGroup.d.ts +1 -1
  2. package/dist/OvermapItemGroup/typings.d.ts +2 -3
  3. package/dist/blocks.js +244 -666
  4. package/dist/blocks.js.map +1 -1
  5. package/dist/blocks.umd.cjs +237 -660
  6. package/dist/blocks.umd.cjs.map +1 -1
  7. package/dist/index.d.ts +0 -1
  8. package/dist/style.css +31 -75
  9. package/package.json +1 -1
  10. package/dist/DialogMenu/Provider.d.ts +0 -6
  11. package/dist/DialogMenu/components/DialogCommandMenu.d.ts +0 -6
  12. package/dist/DialogMenu/components/DialogMultiSelectMenu.d.ts +0 -6
  13. package/dist/DialogMenu/components/DialogSelectMenu.d.ts +0 -7
  14. package/dist/DialogMenu/components/index.d.ts +0 -3
  15. package/dist/DialogMenu/constants.d.ts +0 -3
  16. package/dist/DialogMenu/content/Content.d.ts +0 -8
  17. package/dist/DialogMenu/content/SubContent.d.ts +0 -5
  18. package/dist/DialogMenu/content/index.d.ts +0 -2
  19. package/dist/DialogMenu/context.d.ts +0 -14
  20. package/dist/DialogMenu/groups/Group.d.ts +0 -3
  21. package/dist/DialogMenu/groups/MultiSelectGroup.d.ts +0 -3
  22. package/dist/DialogMenu/groups/SelectGroup.d.ts +0 -3
  23. package/dist/DialogMenu/groups/index.d.ts +0 -3
  24. package/dist/DialogMenu/index.d.ts +0 -20
  25. package/dist/DialogMenu/items/Item.d.ts +0 -3
  26. package/dist/DialogMenu/items/MultiSelectItem.d.ts +0 -3
  27. package/dist/DialogMenu/items/SelectItem.d.ts +0 -3
  28. package/dist/DialogMenu/items/Separator.d.ts +0 -4
  29. package/dist/DialogMenu/items/SubTrigger.d.ts +0 -3
  30. package/dist/DialogMenu/items/index.d.ts +0 -5
  31. package/dist/DialogMenu/root/Root.d.ts +0 -6
  32. package/dist/DialogMenu/root/index.d.ts +0 -1
  33. package/dist/DialogMenu/typings.d.ts +0 -59
package/dist/blocks.js CHANGED
@@ -1,10 +1,11 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { useThemeContext, Badge as Badge$1, Flex as Flex$1, Box, Link, Text as Text$2, Button, IconButton as IconButton$1, Card, Inset, Dialog as Dialog$2, AlertDialog as AlertDialog$1, Theme, Grid, Separator as Separator$3, ScrollArea, Select as Select$1, Checkbox as Checkbox$1, Switch as Switch$1, Portal, TextField, Popover as Popover$1, TextArea as TextArea$1, Callout, Tooltip as Tooltip$1, TableRow } from "@radix-ui/themes";
2
+ import { useThemeContext, Badge as Badge$1, Flex as Flex$1, Box, Link, Text as Text$2, Button, IconButton as IconButton$1, Card, Inset, Dialog as Dialog$2, AlertDialog as AlertDialog$1, Theme, Select as Select$1, Checkbox as Checkbox$1, Switch as Switch$1, Portal, TextField, Popover as Popover$1, TextArea as TextArea$1, Callout, Tooltip as Tooltip$1, Separator as Separator$2, ScrollArea, TableRow } from "@radix-ui/themes";
3
3
  import { Theme as Theme2, updateThemeAppearanceClass, useThemeContext as useThemeContext2 } from "@radix-ui/themes";
4
4
  import React, { useMemo, useState, useLayoutEffect, useCallback, useEffect, Children, isValidElement, memo, forwardRef, createContext, useContext, cloneElement, useRef, createElement, useReducer } from "react";
5
5
  import { useMediaQuery } from "react-responsive";
6
6
  import useResizeObserver from "@react-hook/resize-observer";
7
7
  import * as RiIcons from "react-icons/ri";
8
+ import { RiQuestionMark } from "react-icons/ri";
8
9
  import * as RadixDialogPrimitive from "@radix-ui/react-dialog";
9
10
  import * as RadixPrimitiveCollapsible from "@radix-ui/react-collapsible";
10
11
  import { Slot } from "@radix-ui/react-slot";
@@ -13,8 +14,8 @@ import { Resizable } from "re-resizable";
13
14
  import { CSSTransition, Transition } from "react-transition-group";
14
15
  import ReactDOM, { flushSync } from "react-dom";
15
16
  import { DismissableLayer } from "@radix-ui/react-dismissable-layer";
16
- import { Root as Root$4, Item as Item$4 } from "@radix-ui/react-toggle-group";
17
- import { Root as Root$5 } from "@radix-ui/react-toolbar";
17
+ import { Root as Root$3, Item as Item$3 } from "@radix-ui/react-toggle-group";
18
+ import { Root as Root$4 } from "@radix-ui/react-toolbar";
18
19
  import * as RadixToast from "@radix-ui/react-toast";
19
20
  import { ToastProvider as ToastProvider$1, ToastViewport as ToastViewport$1 } from "@radix-ui/react-toast";
20
21
  import * as Toggle from "@radix-ui/react-toggle";
@@ -265,7 +266,7 @@ const Badge = memo(_Badge);
265
266
  const zeroMinWidth = "_zeroMinWidth_curjh_1";
266
267
  const zeroMinHeight = "_zeroMinHeight_curjh_5";
267
268
  const radius = "_radius_curjh_9";
268
- const styles$u = {
269
+ const styles$r = {
269
270
  zeroMinWidth,
270
271
  zeroMinHeight,
271
272
  radius
@@ -277,9 +278,9 @@ const Flex = memo(
277
278
  Flex$1,
278
279
  {
279
280
  className: classNames(className, {
280
- [styles$u.radius]: radius2,
281
- [styles$u.zeroMinWidth]: zeroMinWidth2,
282
- [styles$u.zeroMinHeight]: zeroMinHeight2
281
+ [styles$r.radius]: radius2,
282
+ [styles$r.zeroMinWidth]: zeroMinWidth2,
283
+ [styles$r.zeroMinHeight]: zeroMinHeight2
283
284
  }),
284
285
  ref,
285
286
  ...rest,
@@ -291,14 +292,14 @@ const Flex = memo(
291
292
  );
292
293
  const BreadcrumbContext = createContext({});
293
294
  const useBreadcrumbContext = () => useContext(BreadcrumbContext);
294
- const Item$3 = memo(
295
+ const Item$2 = memo(
295
296
  forwardRef(({ className, children, ...rest }, ref) => {
296
297
  const { size: size2, severity } = useBreadcrumbContext();
297
298
  const severityColor = useSeverityColor(severity);
298
299
  return /* @__PURE__ */ jsx(Box, { className: classNames("overmap-breadcrumb-item", className), height: "max-content", width: "max-content", children: /* @__PURE__ */ jsx(Link, { ref, size: size2, color: severityColor, ...rest, children: /* @__PURE__ */ jsx(Flex, { height: "100%", width: "100%", align: "center", gap: "1", children }) }) });
299
300
  })
300
301
  );
301
- const Group$3 = memo(
302
+ const Group$2 = memo(
302
303
  forwardRef(
303
304
  ({ className, children, separator, severity = "info", size: size2, gap = "2", ...rest }, ref) => {
304
305
  const severityColor = useSeverityColor(severity);
@@ -325,23 +326,23 @@ const Group$3 = memo(
325
326
  )
326
327
  );
327
328
  const Breadcrumb = {
328
- Group: Group$3,
329
- Item: Item$3
329
+ Group: Group$2,
330
+ Item: Item$2
330
331
  };
331
332
  const fluid$1 = "_fluid_r73gr_1";
332
333
  const hoverSpin90Clockwise = "_hoverSpin90Clockwise_r73gr_15";
333
334
  const hoverSpin180Clockwise = "_hoverSpin180Clockwise_r73gr_25";
334
335
  const hoverSpin360Clockwise = "_hoverSpin360Clockwise_r73gr_35";
335
- const styles$t = {
336
+ const styles$q = {
336
337
  fluid: fluid$1,
337
338
  hoverSpin90Clockwise,
338
339
  hoverSpin180Clockwise,
339
340
  hoverSpin360Clockwise
340
341
  };
341
342
  const hoverEffectClassNameMapping = {
342
- spin90Clockwise: styles$t.hoverSpin90Clockwise,
343
- spin180Clockwise: styles$t.hoverSpin180Clockwise,
344
- spin360Clockwise: styles$t.hoverSpin360Clockwise
343
+ spin90Clockwise: styles$q.hoverSpin90Clockwise,
344
+ spin180Clockwise: styles$q.hoverSpin180Clockwise,
345
+ spin360Clockwise: styles$q.hoverSpin360Clockwise
345
346
  };
346
347
  const clickOnEnterOrSpace = (e) => {
347
348
  if (e.key === "Enter" || e.key === " ") {
@@ -363,12 +364,12 @@ const ButtonGroupContext = createContext({});
363
364
  const useButtonGroupContext = () => useContext(ButtonGroupContext);
364
365
  const spinner = "_spinner_1oknc_9";
365
366
  const spin = "_spin_1oknc_9";
366
- const styles$s = {
367
+ const styles$p = {
367
368
  spinner,
368
369
  spin
369
370
  };
370
371
  const Spinner = memo(() => {
371
- return /* @__PURE__ */ jsx("div", { className: styles$s.spinner });
372
+ return /* @__PURE__ */ jsx("div", { className: styles$p.spinner });
372
373
  });
373
374
  Spinner.displayName = "Spinner";
374
375
  const _Button$1 = forwardRef(function Button$1(props, ref) {
@@ -404,7 +405,7 @@ const _Button$1 = forwardRef(function Button$1(props, ref) {
404
405
  ref,
405
406
  type,
406
407
  className: classNames(className, hoverEffectClasses, {
407
- [styles$t.fluid]: fluid2
408
+ [styles$q.fluid]: fluid2
408
409
  }),
409
410
  color,
410
411
  size: useResponsiveMapping(size2, SizeMapping),
@@ -446,7 +447,7 @@ const _Button = forwardRef(function Button3(props, ref) {
446
447
  IconButton$1,
447
448
  {
448
449
  className: classNames(className, hoverEffectClasses, {
449
- [styles$t.fluid]: fluid2
450
+ [styles$q.fluid]: fluid2
450
451
  }),
451
452
  ref,
452
453
  color,
@@ -461,7 +462,7 @@ const _Button = forwardRef(function Button3(props, ref) {
461
462
  });
462
463
  const IconButton = React.memo(_Button);
463
464
  const merged = "_merged_wdgxo_1";
464
- const styles$r = {
465
+ const styles$o = {
465
466
  merged
466
467
  };
467
468
  const GhostVariantSizeToGapMapping = {
@@ -488,7 +489,7 @@ const _ButtonGroup = forwardRef(function ButtonGroup2({
488
489
  Flex$1,
489
490
  {
490
491
  className: classNames("overmap-button-group", className, {
491
- [styles$r.merged]: merged2
492
+ [styles$o.merged]: merged2
492
493
  }),
493
494
  ref,
494
495
  gap: merged2 ? gap ?? mergedAutoGap : gap ?? "2",
@@ -501,7 +502,7 @@ const _ButtonGroup = forwardRef(function ButtonGroup2({
501
502
  });
502
503
  const ButtonGroup = memo(_ButtonGroup);
503
504
  const separators = "_separators_1f7v1_1";
504
- const styles$q = {
505
+ const styles$n = {
505
506
  separators
506
507
  };
507
508
  const ButtonListBorder = memo(
@@ -532,7 +533,7 @@ const ButtonListRoot = memo(
532
533
  size: size2,
533
534
  severity: "info",
534
535
  variant: buttonVariant,
535
- className: classNames(className, styles$q.separators),
536
+ className: classNames(className, styles$n.separators),
536
537
  merged: true,
537
538
  gap: "0",
538
539
  direction: "column",
@@ -559,10 +560,9 @@ const ButtonList = {
559
560
  const RiIcon = memo((props) => {
560
561
  const { icon, size: size2 = DEFAULT_ICON_SIZE, color, ...rest } = props;
561
562
  const Icon = RiIcons[icon];
562
- if (!Icon) {
563
- throw new Error(`no icon with the name ${icon} exists.`);
564
- }
565
- return /* @__PURE__ */ jsx(Icon, { size: size2, color, ...rest });
563
+ if (!Icon)
564
+ console.error(`Icon ${icon} not found`);
565
+ return Icon ? /* @__PURE__ */ jsx(Icon, { size: size2, color, ...rest }) : /* @__PURE__ */ jsx(RiQuestionMark, {});
566
566
  });
567
567
  RiIcon.displayName = "IconComponent";
568
568
  const DialogContent = memo(function DialogContent2(props) {
@@ -786,7 +786,7 @@ const BaseDialog = memo(
786
786
  );
787
787
  const OverlayContent = "_OverlayContent_1nr9w_1";
788
788
  const OverlayOverlay = "_OverlayOverlay_1nr9w_6";
789
- const styles$p = {
789
+ const styles$m = {
790
790
  OverlayContent,
791
791
  OverlayOverlay
792
792
  };
@@ -797,13 +797,19 @@ const Overlay$2 = memo(
797
797
  BaseDialog,
798
798
  {
799
799
  ref,
800
- overlayClass: classNames("overmap-overlay-overlay", styles$p.OverlayOverlay, overlayClass),
801
- className: classNames("overmap-overlay-content", styles$p.OverlayContent, className),
800
+ overlayClass: classNames("overmap-overlay-overlay", styles$m.OverlayOverlay, overlayClass),
801
+ className: classNames("overmap-overlay-content", styles$m.OverlayContent, className),
802
802
  ...rest
803
803
  }
804
804
  );
805
805
  })
806
806
  );
807
+ const CollapsibleTreeContext = createContext(
808
+ {}
809
+ );
810
+ function useCollapsibleTreeContext() {
811
+ return useContext(CollapsibleTreeContext);
812
+ }
807
813
  const OvermapItemSizeDependantProps = {
808
814
  "1": {
809
815
  gap: "1",
@@ -838,12 +844,11 @@ const OvermapItemSizeDependantProps = {
838
844
  };
839
845
  const OvermapItemGroupContext = createContext({});
840
846
  const useOvermapItemGroupContext = () => useContext(OvermapItemGroupContext);
841
- const OvermapItemGroup = memo(
842
- forwardRef(function(props, ref) {
843
- const { size: size2, compact = false, children, ...rest } = props;
844
- return /* @__PURE__ */ jsx(OvermapItemGroupContext.Provider, { value: { size: size2, compact }, children: /* @__PURE__ */ jsx(Grid, { ref, columns: "1", width: "100%", height: "max-content", ...rest, children }) });
845
- })
846
- );
847
+ const OvermapItemGroup = memo((props) => {
848
+ const { size: size2, children, compact = false } = props;
849
+ return /* @__PURE__ */ jsx(OvermapItemGroupContext.Provider, { value: { size: size2, compact }, children });
850
+ });
851
+ OvermapItemGroup.displayName = "OvermapItemGroup";
847
852
  const OvermapItem = memo(
848
853
  forwardRef((props, ref) => {
849
854
  const overmapItemGroupContext = useOvermapItemGroupContext();
@@ -877,548 +882,6 @@ const OvermapItem = memo(
877
882
  );
878
883
  })
879
884
  );
880
- const DialogMenuContext = createContext({});
881
- const useDialogMenuContext = () => useContext(DialogMenuContext);
882
- const DialogMenuItem = "_DialogMenuItem_1ojd2_1";
883
- const styles$o = {
884
- DialogMenuItem
885
- };
886
- const Item$2 = memo(
887
- forwardRef((props, ref) => {
888
- const dialogMenuContext = useDialogMenuContext();
889
- const {
890
- className,
891
- children,
892
- onSelect,
893
- onClick,
894
- closeOnSelect = dialogMenuContext.closeOnSelect,
895
- size: size2 = dialogMenuContext.size,
896
- leftSlot,
897
- rightSlot,
898
- ...rest
899
- } = props;
900
- const handleClick = useCallback(
901
- (e) => {
902
- if (onClick)
903
- onClick(e);
904
- if (onSelect)
905
- onSelect();
906
- if (closeOnSelect)
907
- dialogMenuContext.close();
908
- },
909
- [closeOnSelect, dialogMenuContext, onClick, onSelect]
910
- );
911
- return /* @__PURE__ */ jsx(
912
- OvermapItem,
913
- {
914
- className: classNames(className, styles$o.DialogMenuItem),
915
- onClick: handleClick,
916
- ref,
917
- leftSlot,
918
- rightSlot,
919
- size: size2,
920
- role: "menuitem",
921
- tabIndex: 0,
922
- ...rest,
923
- children
924
- }
925
- );
926
- })
927
- );
928
- const SelectContext = createContext({});
929
- function useSelectContext() {
930
- return useContext(SelectContext);
931
- }
932
- const SelectContextProvider = memo((props) => {
933
- const { type, children } = props;
934
- const [controlledValue, setControlledValue] = useState(
935
- type === "single" ? (props == null ? void 0 : props.defaultValue) ?? null : null
936
- );
937
- const [controlledValues, setControlledValues] = useState(
938
- type === "multi" ? (props == null ? void 0 : props.defaultValues) ?? [] : []
939
- );
940
- const onValuesChange = useCallback(
941
- (values) => {
942
- setControlledValues(values);
943
- if (type === "multi" && (props == null ? void 0 : props.onValuesChange))
944
- props.onValuesChange(values);
945
- },
946
- [props, type]
947
- );
948
- const onValueChange = useCallback(
949
- (value2) => {
950
- setControlledValue(value2);
951
- if (type === "single" && (props == null ? void 0 : props.onValueChange))
952
- props.onValueChange(value2);
953
- },
954
- [props, type]
955
- );
956
- const value = useMemo(
957
- () => type === "multi" ? {
958
- type,
959
- values: (props == null ? void 0 : props.values) ?? controlledValues,
960
- handleValuesChange: onValuesChange
961
- } : {
962
- type,
963
- value: props.value ?? controlledValue,
964
- handleValueChange: onValueChange
965
- },
966
- [controlledValue, controlledValues, onValueChange, onValuesChange, props, type]
967
- );
968
- return /* @__PURE__ */ jsx(SelectContext.Provider, { value, children });
969
- });
970
- SelectContextProvider.displayName = "SelectContextProvider";
971
- const SelectItem$1 = memo(
972
- forwardRef((props, ref) => {
973
- const dialogMenuContext = useDialogMenuContext();
974
- const { value, rightSlot, selectedIndicator = dialogMenuContext.selectedIndicator, onSelect, ...rest } = props;
975
- const { value: currentValue, handleValueChange } = useSelectContext();
976
- const handleSelect = useCallback(() => {
977
- handleValueChange(value !== currentValue ? value : null);
978
- if (onSelect)
979
- onSelect();
980
- }, [currentValue, handleValueChange, onSelect, value]);
981
- return /* @__PURE__ */ jsx(
982
- Item$2,
983
- {
984
- ref,
985
- onSelect: handleSelect,
986
- role: "menuitemradio",
987
- rightSlot: /* @__PURE__ */ jsxs(Fragment, { children: [
988
- currentValue === value && selectedIndicator,
989
- " ",
990
- rightSlot
991
- ] }),
992
- ...rest
993
- }
994
- );
995
- })
996
- );
997
- const MultiSelectItem$2 = memo(
998
- forwardRef((props, ref) => {
999
- const dialogMenuContext = useDialogMenuContext();
1000
- const { value, rightSlot, selectedIndicator = dialogMenuContext.selectedIndicator, onSelect, ...rest } = props;
1001
- const { values: currentValues, handleValuesChange } = useSelectContext();
1002
- const handleSelect = useCallback(() => {
1003
- handleValuesChange(
1004
- currentValues.includes(value) ? [...currentValues, value] : (
1005
- // If value currently in selected values, remove it (filter out)
1006
- currentValues.filter((currentValue) => currentValue !== value)
1007
- )
1008
- );
1009
- if (onSelect)
1010
- onSelect();
1011
- }, [currentValues, handleValuesChange, onSelect, value]);
1012
- return /* @__PURE__ */ jsx(
1013
- Item$2,
1014
- {
1015
- onSelect: handleSelect,
1016
- ref,
1017
- role: "menuitemcheckbox",
1018
- rightSlot: /* @__PURE__ */ jsxs(Fragment, { children: [
1019
- currentValues.includes(value) && selectedIndicator,
1020
- rightSlot
1021
- ] }),
1022
- ...rest
1023
- }
1024
- );
1025
- })
1026
- );
1027
- const SubTrigger$1 = memo(
1028
- forwardRef((props, ref) => {
1029
- const { subContentId, onSelect, ...rest } = props;
1030
- const { setSubContentId } = useDialogMenuContext();
1031
- const handleSelect = useCallback(() => {
1032
- setSubContentId(subContentId);
1033
- if (onSelect)
1034
- onSelect();
1035
- }, [subContentId, onSelect, setSubContentId]);
1036
- return /* @__PURE__ */ jsx(Item$2, { onSelect: handleSelect, ref, ...rest });
1037
- })
1038
- );
1039
- const light = "_light_1u8fs_1";
1040
- const bold = "_bold_1u8fs_8";
1041
- const full = "_full_1u8fs_15";
1042
- const Text$1 = "_Text_1u8fs_22";
1043
- const styles$n = {
1044
- light,
1045
- bold,
1046
- full,
1047
- Text: Text$1
1048
- };
1049
- const SeparatorSizeMapping = {
1050
- "1": "max-content",
1051
- "2": "max-content",
1052
- "3": "max-content",
1053
- "4": "100%"
1054
- };
1055
- const _Separator = forwardRef(function Separator2({
1056
- className,
1057
- severity = "info",
1058
- textWeight = "light",
1059
- gap = "1",
1060
- text,
1061
- orientation = "horizontal",
1062
- size: size2,
1063
- weight = "medium",
1064
- ...rest
1065
- }, ref) {
1066
- const computedSizing = useResponsiveMapping(size2, SeparatorSizeMapping);
1067
- const severityColor = useSeverityColor(severity);
1068
- return /* @__PURE__ */ jsxs(
1069
- Flex$1,
1070
- {
1071
- className: classNames("overmap-separator", className, {
1072
- [styles$n.light]: weight === "light",
1073
- [styles$n.bold]: weight === "bold",
1074
- [styles$n.full]: weight === "full"
1075
- }),
1076
- ref,
1077
- width: orientation === "horizontal" ? computedSizing : "max-content",
1078
- height: orientation === "vertical" ? computedSizing : "max-content",
1079
- direction: orientation === "vertical" ? "column" : "row",
1080
- align: "center",
1081
- gap,
1082
- children: [
1083
- /* @__PURE__ */ jsx(Separator$3, { size: size2, orientation, color: severityColor, ...rest }),
1084
- text && /* @__PURE__ */ jsxs(Fragment, { children: [
1085
- /* @__PURE__ */ jsx(Text$2, { className: styles$n.Text, as: "span", size: "1", weight: textWeight, color: severityColor, children: text }),
1086
- /* @__PURE__ */ jsx(Separator$3, { size: size2, orientation, color: severityColor, ...rest })
1087
- ] })
1088
- ]
1089
- }
1090
- );
1091
- });
1092
- const Separator$2 = memo(_Separator);
1093
- const Separator$1 = memo(
1094
- forwardRef((props, ref) => {
1095
- return /* @__PURE__ */ jsx(Flex$1, { ref, py: "2", children: /* @__PURE__ */ jsx(Separator$2, { size: "4", weight: "light", ...props }) });
1096
- })
1097
- );
1098
- const DEFAULT_DIALOG_MENU_SIZE = "3";
1099
- const DEFAULT_SELECTED_INDICATOR = /* @__PURE__ */ jsx(RiIcon, { icon: "RiCheckLine" });
1100
- const Group$2 = memo(
1101
- forwardRef((props, ref) => {
1102
- const dialogMenuContext = useDialogMenuContext();
1103
- const { size: size2 = dialogMenuContext.size, grid = false, children } = props;
1104
- const computedSize = useOvermapResponsiveValue(size2);
1105
- const computedColumns = useMemo(() => {
1106
- const { height } = OvermapItemSizeDependantProps[computedSize ?? DEFAULT_DIALOG_MENU_SIZE];
1107
- return `repeat(auto-fit,var(--space-${height})`;
1108
- }, [computedSize]);
1109
- return /* @__PURE__ */ jsx(
1110
- OvermapItemGroup,
1111
- {
1112
- role: "group",
1113
- compact: grid,
1114
- size: size2,
1115
- ref,
1116
- columns: grid ? computedColumns : void 0,
1117
- flow: "dense",
1118
- children
1119
- }
1120
- );
1121
- })
1122
- );
1123
- const SelectGroup$1 = memo(
1124
- forwardRef((props, ref) => {
1125
- const { value, onValueChange, ...rest } = props;
1126
- return /* @__PURE__ */ jsx(SelectContextProvider, { type: "single", value, onValueChange, children: /* @__PURE__ */ jsx(Group$2, { ref, ...rest }) });
1127
- })
1128
- );
1129
- const MultiSelectGroup$1 = memo(
1130
- forwardRef((props, ref) => {
1131
- const { values, onValuesChange, ...rest } = props;
1132
- return /* @__PURE__ */ jsx(SelectContextProvider, { type: "multi", values, onValuesChange, children: /* @__PURE__ */ jsx(Group$2, { ref, ...rest }) });
1133
- })
1134
- );
1135
- const OvermapInputItem$1 = "_OvermapInputItem_1jgzv_1";
1136
- const styles$m = {
1137
- OvermapInputItem: OvermapInputItem$1
1138
- };
1139
- const OvermapInputItem = memo(
1140
- forwardRef((props, ref) => {
1141
- const { size: size2, className, style, leftSlot, rightSlot, ...rest } = props;
1142
- return /* @__PURE__ */ jsx(
1143
- OvermapItem,
1144
- {
1145
- className,
1146
- style,
1147
- size: size2,
1148
- leftSlot,
1149
- rightSlot,
1150
- compact: false,
1151
- children: /* @__PURE__ */ jsx("input", { className: styles$m.OvermapInputItem, ref, ...rest })
1152
- }
1153
- );
1154
- })
1155
- );
1156
- OvermapInputItem.displayName = "OvermapInputItem";
1157
- const DialogContentScrollArea = "_DialogContentScrollArea_i3a60_1";
1158
- const styles$l = {
1159
- DialogContentScrollArea
1160
- };
1161
- const ContentImpl = memo(
1162
- forwardRef((props, ref) => {
1163
- const { size: size2 } = useDialogMenuContext();
1164
- const {
1165
- topSlot,
1166
- bottomSlot,
1167
- numberOfItems,
1168
- filterValue,
1169
- onFilterValueChange,
1170
- placeholder,
1171
- leftFilterSlot,
1172
- rightFilterSlot,
1173
- children
1174
- } = props;
1175
- const handleChange = useCallback(
1176
- (e) => {
1177
- if (onFilterValueChange)
1178
- onFilterValueChange(e.target.value);
1179
- },
1180
- [onFilterValueChange]
1181
- );
1182
- return /* @__PURE__ */ jsxs(Flex$1, { direction: "column", width: "100%", ref, py: "2", children: [
1183
- /* @__PURE__ */ jsxs(Flex$1, { direction: "column", width: "100%", px: "2", children: [
1184
- topSlot && /* @__PURE__ */ jsx(OvermapItem, { size: size2, children: topSlot }),
1185
- filterValue !== void 0 && /* @__PURE__ */ jsx(
1186
- OvermapInputItem,
1187
- {
1188
- size: size2,
1189
- leftSlot: leftFilterSlot,
1190
- rightSlot: rightFilterSlot,
1191
- value: filterValue,
1192
- onChange: handleChange,
1193
- placeholder
1194
- }
1195
- )
1196
- ] }),
1197
- (topSlot || filterValue !== void 0) && numberOfItems > 0 && /* @__PURE__ */ jsx(Separator$1, {}),
1198
- /* @__PURE__ */ jsx(ScrollArea, { className: styles$l.DialogContentScrollArea, scrollbars: "vertical", type: "hover", children: /* @__PURE__ */ jsx(Flex$1, { px: "2", children }) }),
1199
- bottomSlot && /* @__PURE__ */ jsx(Separator$1, {}),
1200
- /* @__PURE__ */ jsx(Flex$1, { direction: "column", width: "100%", px: "2", children: bottomSlot && /* @__PURE__ */ jsx(OvermapItem, { size: size2, children: bottomSlot }) })
1201
- ] });
1202
- })
1203
- );
1204
- const Content$1 = memo(
1205
- forwardRef((props, ref) => {
1206
- const { subContentId } = useDialogMenuContext();
1207
- return !subContentId && /* @__PURE__ */ jsx(ContentImpl, { ref, ...props });
1208
- })
1209
- );
1210
- const SubContent$1 = memo(
1211
- forwardRef((props, ref) => {
1212
- const { id, ...rest } = props;
1213
- const { subContentId } = useDialogMenuContext();
1214
- return subContentId === id && /* @__PURE__ */ jsx(ContentImpl, { ref, ...rest });
1215
- })
1216
- );
1217
- const DialogMenuContextProvider = memo((props) => {
1218
- const { size: size2, closeOnSelect, close, selectedIndicator, children } = props;
1219
- const [subContentId, setSubContentId] = useState(null);
1220
- const value = useMemo(
1221
- () => ({ size: size2, close, closeOnSelect, subContentId, setSubContentId, selectedIndicator }),
1222
- [close, closeOnSelect, selectedIndicator, size2, subContentId]
1223
- );
1224
- return /* @__PURE__ */ jsx(DialogMenuContext.Provider, { value, children });
1225
- });
1226
- DialogMenuContextProvider.displayName = "DialogMenuContextProvider";
1227
- const DialogMenuWrapper = "_DialogMenuWrapper_16hy0_1";
1228
- const DialogMenu$1 = "_DialogMenu_16hy0_1";
1229
- const styles$k = {
1230
- DialogMenuWrapper,
1231
- DialogMenu: DialogMenu$1
1232
- };
1233
- const Root$3 = memo(
1234
- forwardRef((props, ref) => {
1235
- const {
1236
- className,
1237
- content: contentFromProps,
1238
- selectedIndicator = DEFAULT_SELECTED_INDICATOR,
1239
- size: size2 = DEFAULT_DIALOG_MENU_SIZE,
1240
- closeOnSelect = false,
1241
- ...rest
1242
- } = props;
1243
- const content = useCallback(
1244
- (close) => {
1245
- return /* @__PURE__ */ jsx(Flex$1, { className: classNames(styles$k.DialogMenu, className), children: /* @__PURE__ */ jsx(
1246
- DialogMenuContextProvider,
1247
- {
1248
- size: size2,
1249
- close,
1250
- closeOnSelect,
1251
- selectedIndicator,
1252
- children: contentFromProps
1253
- }
1254
- ) });
1255
- },
1256
- [className, closeOnSelect, contentFromProps, selectedIndicator, size2]
1257
- );
1258
- return /* @__PURE__ */ jsx(BaseDialog, { className: styles$k.DialogMenuWrapper, ref, content, ...rest });
1259
- })
1260
- );
1261
- const DialogCommandMenu = memo(
1262
- forwardRef((props, ref) => {
1263
- const {
1264
- // Command menu scoped props
1265
- size: size2,
1266
- items,
1267
- closeOnSelect = true,
1268
- // Content scoped props
1269
- filterValue,
1270
- onFilterValueChange,
1271
- placeholder,
1272
- leftFilterSlot,
1273
- rightFilterSlot,
1274
- topSlot,
1275
- bottomSlot,
1276
- ...rest
1277
- } = props;
1278
- return /* @__PURE__ */ jsx(
1279
- Root$3,
1280
- {
1281
- ref,
1282
- size: size2,
1283
- content: /* @__PURE__ */ jsx(
1284
- Content$1,
1285
- {
1286
- filterValue,
1287
- onFilterValueChange,
1288
- placeholder,
1289
- leftFilterSlot,
1290
- rightFilterSlot,
1291
- numberOfItems: items.length,
1292
- topSlot,
1293
- bottomSlot,
1294
- children: /* @__PURE__ */ jsx(Group$2, { size: size2, children: items.map((item, index) => /* @__PURE__ */ jsx(Item$2, { ...item }, index)) })
1295
- }
1296
- ),
1297
- closeOnSelect,
1298
- ...rest
1299
- }
1300
- );
1301
- })
1302
- );
1303
- const DialogSelectMenu = memo(
1304
- forwardRef((props, ref) => {
1305
- const {
1306
- // Select scoped props
1307
- size: size2,
1308
- value,
1309
- onValueChange,
1310
- items,
1311
- selectedIndicator,
1312
- // Content scoped props
1313
- filterValue,
1314
- onFilterValueChange,
1315
- placeholder,
1316
- leftFilterSlot,
1317
- rightFilterSlot,
1318
- topSlot,
1319
- bottomSlot,
1320
- ...rest
1321
- } = props;
1322
- return /* @__PURE__ */ jsx(
1323
- Root$3,
1324
- {
1325
- ref,
1326
- size: size2,
1327
- content: /* @__PURE__ */ jsx(
1328
- Content$1,
1329
- {
1330
- filterValue,
1331
- onFilterValueChange,
1332
- placeholder,
1333
- leftFilterSlot,
1334
- rightFilterSlot,
1335
- numberOfItems: items.length,
1336
- topSlot,
1337
- bottomSlot,
1338
- children: /* @__PURE__ */ jsx(SelectGroup$1, { size: size2, value, onValueChange, children: items.map((item, index) => /* @__PURE__ */ jsx(
1339
- SelectItem$1,
1340
- {
1341
- selectedIndicator,
1342
- ...item
1343
- },
1344
- `${item.value}-${index}`
1345
- )) })
1346
- }
1347
- ),
1348
- ...rest
1349
- }
1350
- );
1351
- })
1352
- );
1353
- const DialogMultiSelectMenu = memo(
1354
- forwardRef((props, ref) => {
1355
- const {
1356
- // Multi select scoped props
1357
- size: size2,
1358
- selectedIndicator,
1359
- values,
1360
- onValuesChange,
1361
- items,
1362
- // Content scoped props
1363
- filterValue,
1364
- onFilterValueChange,
1365
- placeholder,
1366
- leftFilterSlot,
1367
- rightFilterSlot,
1368
- topSlot,
1369
- bottomSlot,
1370
- ...rest
1371
- } = props;
1372
- return /* @__PURE__ */ jsx(
1373
- Root$3,
1374
- {
1375
- ref,
1376
- size: size2,
1377
- content: /* @__PURE__ */ jsx(
1378
- Content$1,
1379
- {
1380
- filterValue,
1381
- onFilterValueChange,
1382
- placeholder,
1383
- leftFilterSlot,
1384
- rightFilterSlot,
1385
- numberOfItems: items.length,
1386
- topSlot,
1387
- bottomSlot,
1388
- children: /* @__PURE__ */ jsx(MultiSelectGroup$1, { size: size2, values, onValuesChange, children: items.map((item, index) => /* @__PURE__ */ jsx(
1389
- MultiSelectItem$2,
1390
- {
1391
- ...item,
1392
- selectedIndicator
1393
- },
1394
- `${item.value}-${index}`
1395
- )) })
1396
- }
1397
- ),
1398
- ...rest
1399
- }
1400
- );
1401
- })
1402
- );
1403
- const DialogMenu = {
1404
- Root: Root$3,
1405
- Item: Item$2,
1406
- SelectItem: SelectItem$1,
1407
- MultiSelectItem: MultiSelectItem$2,
1408
- Separator: Separator$1,
1409
- Content: Content$1,
1410
- Group: Group$2,
1411
- SelectGroup: SelectGroup$1,
1412
- MultiSelectGroup: MultiSelectGroup$1,
1413
- SubTrigger: SubTrigger$1,
1414
- SubContent: SubContent$1
1415
- };
1416
- const CollapsibleTreeContext = createContext(
1417
- {}
1418
- );
1419
- function useCollapsibleTreeContext() {
1420
- return useContext(CollapsibleTreeContext);
1421
- }
1422
885
  const CollapsibleNode = genericMemo(function(props) {
1423
886
  const { meta, nodes, level = 0, disabled: disabled2 } = props;
1424
887
  const [controlledOpenState, setControlledOpenState] = useState(false);
@@ -1526,7 +989,7 @@ const CollapsibleTree = genericMemo(function(props) {
1526
989
  onNodeClose,
1527
990
  onNodeOpen
1528
991
  },
1529
- children: /* @__PURE__ */ jsx(OvermapItemGroup, { width: "100%", height: "max-content", size: size2, ...rest, gapY: nodeGap, children: nodes.map((treeNodeProps, index) => /* @__PURE__ */ jsx(CollapsibleNode, { ...treeNodeProps }, `${0},${index}`)) })
992
+ children: /* @__PURE__ */ jsx(OvermapItemGroup, { size: size2, children: /* @__PURE__ */ jsx(Flex$1, { width: "100%", height: "max-content", direction: "column", gap: nodeGap, ...rest, children: nodes.map((treeNodeProps, index) => /* @__PURE__ */ jsx(CollapsibleNode, { ...treeNodeProps }, `${0},${index}`)) }) })
1530
993
  }
1531
994
  );
1532
995
  });
@@ -1559,7 +1022,7 @@ const HoverUtility = memo(function Root({ children }) {
1559
1022
  });
1560
1023
  });
1561
1024
  const fluid = "_fluid_7n1wr_1";
1562
- const styles$j = {
1025
+ const styles$l = {
1563
1026
  fluid
1564
1027
  };
1565
1028
  const _Select = forwardRef(function Select2({
@@ -1583,7 +1046,7 @@ const _Select = forwardRef(function Select2({
1583
1046
  Select$1.Trigger,
1584
1047
  {
1585
1048
  className: classNames(className, {
1586
- [styles$j.fluid]: fluid2
1049
+ [styles$l.fluid]: fluid2
1587
1050
  }),
1588
1051
  id,
1589
1052
  ref,
@@ -1595,7 +1058,7 @@ const _Select = forwardRef(function Select2({
1595
1058
  Select$1.Content,
1596
1059
  {
1597
1060
  side,
1598
- className: styles$j.contentDefault,
1061
+ className: styles$l.contentDefault,
1599
1062
  position: "popper",
1600
1063
  variant: variant !== "surface" ? "soft" : "solid",
1601
1064
  color: itemSeverityColor,
@@ -1708,7 +1171,7 @@ const MultiSelect = memo(
1708
1171
  );
1709
1172
  })
1710
1173
  );
1711
- const styles$i = {
1174
+ const styles$k = {
1712
1175
  "default": "_default_u936h_1"
1713
1176
  };
1714
1177
  const _Switch = forwardRef(function Switch2({ className, severity = "primary", icon, defaultChecked = false, onCheckedChange, ...rest }, ref) {
@@ -1736,7 +1199,7 @@ const _Switch = forwardRef(function Switch2({ className, severity = "primary", i
1736
1199
  /* @__PURE__ */ jsx(
1737
1200
  Switch$1,
1738
1201
  {
1739
- className: classNames("overmap-switch", className, styles$i.default),
1202
+ className: classNames("overmap-switch", className, styles$k.default),
1740
1203
  ref: ref ? ref : fallbackRef,
1741
1204
  color: severityColor,
1742
1205
  radius: "full",
@@ -1754,7 +1217,7 @@ const right$1 = "_right_1onyo_7";
1754
1217
  const resizeHandle$1 = "_resizeHandle_1onyo_10";
1755
1218
  const left$1 = "_left_1onyo_13";
1756
1219
  const overlay = "_overlay_1onyo_33";
1757
- const styles$h = {
1220
+ const styles$j = {
1758
1221
  sidebarContent,
1759
1222
  right: right$1,
1760
1223
  resizeHandle: resizeHandle$1,
@@ -1787,13 +1250,13 @@ const _Sidebar = forwardRef(function Sidebar2({
1787
1250
  setContainer(tempContainer);
1788
1251
  }, [containerSelector]);
1789
1252
  return /* @__PURE__ */ jsx(RadixDialogPrimitive.Root, { open, modal, children: /* @__PURE__ */ jsxs(RadixDialogPrimitive.Portal, { container, children: [
1790
- overlay2 && /* @__PURE__ */ jsx(RadixDialogPrimitive.Overlay, { className: classNames(styles$h.overlay) }),
1253
+ overlay2 && /* @__PURE__ */ jsx(RadixDialogPrimitive.Overlay, { className: classNames(styles$j.overlay) }),
1791
1254
  /* @__PURE__ */ jsx(
1792
1255
  RadixDialogPrimitive.Content,
1793
1256
  {
1794
- className: classNames("overmap-sidebar", "rt-DialogContent", styles$h.sidebarContent, {
1795
- [styles$h.left]: isLeft,
1796
- [styles$h.right]: isRight
1257
+ className: classNames("overmap-sidebar", "rt-DialogContent", styles$j.sidebarContent, {
1258
+ [styles$j.left]: isLeft,
1259
+ [styles$j.right]: isRight
1797
1260
  }),
1798
1261
  ref,
1799
1262
  asChild: true,
@@ -1805,7 +1268,7 @@ const _Sidebar = forwardRef(function Sidebar2({
1805
1268
  maxWidth,
1806
1269
  defaultSize: defaultSidebarSize,
1807
1270
  enable: { right: resizable2 && isLeft, left: resizable2 && isRight },
1808
- handleClasses: { left: styles$h.resizeHandle, right: styles$h.resizeHandle },
1271
+ handleClasses: { left: styles$j.resizeHandle, right: styles$j.resizeHandle },
1809
1272
  handleComponent: {
1810
1273
  right: /* @__PURE__ */ jsx(RiIcon, { icon: "RiDraggable" }),
1811
1274
  left: /* @__PURE__ */ jsx(RiIcon, { icon: "RiDraggable" })
@@ -1948,7 +1411,7 @@ const ExitLeft$1 = "_ExitLeft_1jwyv_42";
1948
1411
  const ExitActiveLeft$1 = "_ExitActiveLeft_1jwyv_46";
1949
1412
  const ExitDoneLeft$1 = "_ExitDoneLeft_1jwyv_51";
1950
1413
  const Overlay$1 = "_Overlay_1jwyv_56";
1951
- const styles$g = {
1414
+ const styles$i = {
1952
1415
  EnterRight: EnterRight$1,
1953
1416
  EnterActiveRight: EnterActiveRight$1,
1954
1417
  EnterDoneRight: EnterDoneRight$1,
@@ -2024,12 +1487,12 @@ const SlideOutV3 = memo(
2024
1487
  const { onPointerDownCapture: handlePointerDownCapture } = usePointerDownOutside(handleDismiss, parentContainer);
2025
1488
  const CSSTransitionClassNames = useMemo(
2026
1489
  () => ({
2027
- enter: isLeft ? styles$g.EnterLeft : styles$g.EnterRight,
2028
- enterActive: isLeft ? styles$g.EnterActiveLeft : styles$g.EnterActiveRight,
2029
- enterDone: isLeft ? styles$g.EnterDoneLeft : styles$g.EnterDoneRight,
2030
- exit: isLeft ? styles$g.ExitLeft : styles$g.ExitRight,
2031
- exitActive: isLeft ? styles$g.ExitActiveLeft : styles$g.ExitActiveRight,
2032
- exitDone: isLeft ? styles$g.ExitDoneLeft : styles$g.ExitDoneRight
1490
+ enter: isLeft ? styles$i.EnterLeft : styles$i.EnterRight,
1491
+ enterActive: isLeft ? styles$i.EnterActiveLeft : styles$i.EnterActiveRight,
1492
+ enterDone: isLeft ? styles$i.EnterDoneLeft : styles$i.EnterDoneRight,
1493
+ exit: isLeft ? styles$i.ExitLeft : styles$i.ExitRight,
1494
+ exitActive: isLeft ? styles$i.ExitActiveLeft : styles$i.ExitActiveRight,
1495
+ exitDone: isLeft ? styles$i.ExitDoneLeft : styles$i.ExitDoneRight
2033
1496
  }),
2034
1497
  [isLeft]
2035
1498
  );
@@ -2260,7 +1723,7 @@ const ExitLeft = "_ExitLeft_1jwyv_42";
2260
1723
  const ExitActiveLeft = "_ExitActiveLeft_1jwyv_46";
2261
1724
  const ExitDoneLeft = "_ExitDoneLeft_1jwyv_51";
2262
1725
  const Overlay = "_Overlay_1jwyv_56";
2263
- const styles$f = {
1726
+ const styles$h = {
2264
1727
  EnterRight,
2265
1728
  EnterActiveRight,
2266
1729
  EnterDoneRight,
@@ -2315,12 +1778,12 @@ const SlideOutV2 = memo(
2315
1778
  }, [initialWidth]);
2316
1779
  const CSSTransitionClassNames = useMemo(
2317
1780
  () => ({
2318
- enter: isLeft ? styles$f.EnterLeft : styles$f.EnterRight,
2319
- enterActive: isLeft ? styles$f.EnterActiveLeft : styles$f.EnterActiveRight,
2320
- enterDone: isLeft ? styles$f.EnterDoneLeft : styles$f.EnterDoneRight,
2321
- exit: isLeft ? styles$f.ExitLeft : styles$f.ExitRight,
2322
- exitActive: isLeft ? styles$f.ExitActiveLeft : styles$f.ExitActiveRight,
2323
- exitDone: isLeft ? styles$f.ExitDoneLeft : styles$f.ExitDoneRight
1781
+ enter: isLeft ? styles$h.EnterLeft : styles$h.EnterRight,
1782
+ enterActive: isLeft ? styles$h.EnterActiveLeft : styles$h.EnterActiveRight,
1783
+ enterDone: isLeft ? styles$h.EnterDoneLeft : styles$h.EnterDoneRight,
1784
+ exit: isLeft ? styles$h.ExitLeft : styles$h.ExitRight,
1785
+ exitActive: isLeft ? styles$h.ExitActiveLeft : styles$h.ExitActiveRight,
1786
+ exitDone: isLeft ? styles$h.ExitDoneLeft : styles$h.ExitDoneRight
2324
1787
  }),
2325
1788
  [isLeft]
2326
1789
  );
@@ -2403,7 +1866,7 @@ const noLeftIcon = "_noLeftIcon_1octa_14";
2403
1866
  const noRightIcon = "_noRightIcon_1octa_18";
2404
1867
  const ghost$1 = "_ghost_1octa_22";
2405
1868
  const charCount$1 = "_charCount_1octa_40";
2406
- const styles$e = {
1869
+ const styles$g = {
2407
1870
  accommodateCharCount,
2408
1871
  wrapper: wrapper$2,
2409
1872
  "default": "_default_1octa_10",
@@ -2430,9 +1893,9 @@ const _Input = forwardRef(function Input2({
2430
1893
  return /* @__PURE__ */ jsxs(
2431
1894
  TextField.Root,
2432
1895
  {
2433
- className: classNames(styles$e.wrapper, className, {
2434
- [styles$e.ghost]: variant === "ghost",
2435
- [styles$e.accommodateCharCount]: displayInputLength
1896
+ className: classNames(styles$g.wrapper, className, {
1897
+ [styles$g.ghost]: variant === "ghost",
1898
+ [styles$g.accommodateCharCount]: displayInputLength
2436
1899
  }),
2437
1900
  size: computedSize,
2438
1901
  variant: variant !== "ghost" ? variant : void 0,
@@ -2442,9 +1905,9 @@ const _Input = forwardRef(function Input2({
2442
1905
  /* @__PURE__ */ jsx(
2443
1906
  TextField.Input,
2444
1907
  {
2445
- className: classNames(styles$e.default, {
2446
- [styles$e.noLeftIcon]: !leftSlot,
2447
- [styles$e.noRightIcon]: !rightSlot
1908
+ className: classNames(styles$g.default, {
1909
+ [styles$g.noLeftIcon]: !leftSlot,
1910
+ [styles$g.noRightIcon]: !rightSlot
2448
1911
  }),
2449
1912
  ref,
2450
1913
  value,
@@ -2455,7 +1918,7 @@ const _Input = forwardRef(function Input2({
2455
1918
  }
2456
1919
  ),
2457
1920
  rightSlot && /* @__PURE__ */ jsx(TextField.Slot, { children: rightSlot }),
2458
- displayInputLength && /* @__PURE__ */ jsx(Text$2, { as: "p", className: styles$e.charCount, size: "1", color: "gray", children: rest.maxLength !== void 0 ? `${valueAsString == null ? void 0 : valueAsString.length}/${rest.maxLength}` : `${valueAsString == null ? void 0 : valueAsString.length}` })
1921
+ displayInputLength && /* @__PURE__ */ jsx(Text$2, { as: "p", className: styles$g.charCount, size: "1", color: "gray", children: rest.maxLength !== void 0 ? `${valueAsString == null ? void 0 : valueAsString.length}/${rest.maxLength}` : `${valueAsString == null ? void 0 : valueAsString.length}` })
2459
1922
  ]
2460
1923
  }
2461
1924
  );
@@ -2465,7 +1928,7 @@ const ItemStack$1 = "_ItemStack_tj494_1";
2465
1928
  const Row = "_Row_tj494_4";
2466
1929
  const Column = "_Column_tj494_7";
2467
1930
  const ItemStackItem = "_ItemStackItem_tj494_11";
2468
- const styles$d = {
1931
+ const styles$f = {
2469
1932
  ItemStack: ItemStack$1,
2470
1933
  Row,
2471
1934
  Column,
@@ -2474,7 +1937,7 @@ const styles$d = {
2474
1937
  const Item$1 = memo(
2475
1938
  forwardRef((props, ref) => {
2476
1939
  const { children } = props;
2477
- return /* @__PURE__ */ jsx("div", { ref, className: styles$d.ItemStackItem, "data-item-stack": "", children });
1940
+ return /* @__PURE__ */ jsx("div", { ref, className: styles$f.ItemStackItem, "data-item-stack": "", children });
2478
1941
  })
2479
1942
  );
2480
1943
  const Group$1 = memo(
@@ -2484,9 +1947,9 @@ const Group$1 = memo(
2484
1947
  return /* @__PURE__ */ jsx(
2485
1948
  Flex$1,
2486
1949
  {
2487
- className: classNames(styles$d.ItemStack, {
2488
- [styles$d.Row]: direction === "row",
2489
- [styles$d.Column]: direction === "column"
1950
+ className: classNames(styles$f.ItemStack, {
1951
+ [styles$f.Row]: direction === "row",
1952
+ [styles$f.Column]: direction === "column"
2490
1953
  }),
2491
1954
  ref,
2492
1955
  direction,
@@ -2521,7 +1984,7 @@ const IconColorUtility = memo(function IconColorUtility2({
2521
1984
  return cloneElement(children, { ...childProps });
2522
1985
  });
2523
1986
  const wrapper$1 = "_wrapper_tmtz0_1";
2524
- const styles$c = {
1987
+ const styles$e = {
2525
1988
  wrapper: wrapper$1
2526
1989
  };
2527
1990
  const _Popover = forwardRef(function Popover2({ className, trigger, open, onOpenChange, defaultOpen = false, modal = false, children, ...rest }, ref) {
@@ -2531,7 +1994,7 @@ const _Popover = forwardRef(function Popover2({ className, trigger, open, onOpen
2531
1994
  Popover$1.Content,
2532
1995
  {
2533
1996
  ref,
2534
- className: classNames("overmap-popover", className, styles$c.wrapper),
1997
+ className: classNames("overmap-popover", className, styles$e.wrapper),
2535
1998
  ...rest,
2536
1999
  children: children(Popover$1.Close)
2537
2000
  }
@@ -2546,7 +2009,7 @@ const right = "_right_1ssf2_18";
2546
2009
  const resizable = "_resizable_1ssf2_23";
2547
2010
  const resizeHandle = "_resizeHandle_1ssf2_28";
2548
2011
  const panelMainContent = "_panelMainContent_1ssf2_48";
2549
- const styles$b = {
2012
+ const styles$d = {
2550
2013
  wrapper,
2551
2014
  panelContent,
2552
2015
  left,
@@ -2732,7 +2195,7 @@ const LeftAndRightPanels = memo(function Panels({
2732
2195
  return /* @__PURE__ */ jsxs(
2733
2196
  Flex$1,
2734
2197
  {
2735
- className: styles$b.wrapper,
2198
+ className: styles$d.wrapper,
2736
2199
  style: { minWidth: `${leftMinWidth + rightMinWidth}px` },
2737
2200
  ref: wrapperRef,
2738
2201
  width: "100%",
@@ -2754,7 +2217,7 @@ const LeftAndRightPanels = memo(function Panels({
2754
2217
  Box,
2755
2218
  {
2756
2219
  ref: leftPanelRef,
2757
- className: classNames(styles$b.panelContent, styles$b.left),
2220
+ className: classNames(styles$d.panelContent, styles$d.left),
2758
2221
  style: leftPanelTransitionStyles[state],
2759
2222
  width: "auto",
2760
2223
  height: "100%",
@@ -2763,7 +2226,7 @@ const LeftAndRightPanels = memo(function Panels({
2763
2226
  children: /* @__PURE__ */ jsx(
2764
2227
  Resizable,
2765
2228
  {
2766
- className: styles$b.resizable,
2229
+ className: styles$d.resizable,
2767
2230
  size: {
2768
2231
  width: leftPanelWidth,
2769
2232
  height: "100%"
@@ -2772,7 +2235,7 @@ const LeftAndRightPanels = memo(function Panels({
2772
2235
  enable: { right: (resizeable == null ? void 0 : resizeable.left) !== void 0 ? resizeable.left : true },
2773
2236
  minWidth: leftMinWidth,
2774
2237
  maxWidth: leftPanelMaxWidth,
2775
- handleClasses: { right: classNames(styles$b.resizeHandle, styles$b.left) },
2238
+ handleClasses: { right: classNames(styles$d.resizeHandle, styles$d.left) },
2776
2239
  handleComponent: {
2777
2240
  right: /* @__PURE__ */ jsx(RiIcon, { icon: "RiDraggable", height: "14px", width: "14px" })
2778
2241
  },
@@ -2783,7 +2246,7 @@ const LeftAndRightPanels = memo(function Panels({
2783
2246
  )
2784
2247
  }
2785
2248
  ),
2786
- /* @__PURE__ */ jsx("div", { className: styles$b.panelMainContent, children }),
2249
+ /* @__PURE__ */ jsx("div", { className: styles$d.panelMainContent, children }),
2787
2250
  /* @__PURE__ */ jsx(
2788
2251
  Transition,
2789
2252
  {
@@ -2797,7 +2260,7 @@ const LeftAndRightPanels = memo(function Panels({
2797
2260
  Box,
2798
2261
  {
2799
2262
  ref: rightPanelRef,
2800
- className: classNames(styles$b.panelContent, styles$b.right),
2263
+ className: classNames(styles$d.panelContent, styles$d.right),
2801
2264
  style: rightPanelTransitionStyles[state],
2802
2265
  width: "auto",
2803
2266
  height: "100%",
@@ -2806,13 +2269,13 @@ const LeftAndRightPanels = memo(function Panels({
2806
2269
  children: /* @__PURE__ */ jsx(
2807
2270
  Resizable,
2808
2271
  {
2809
- className: styles$b.resizable,
2272
+ className: styles$d.resizable,
2810
2273
  size: { width: rightPanelWidth, height: "100%" },
2811
2274
  onResizeStop: handleResizeRightPanel,
2812
2275
  enable: { left: (resizeable == null ? void 0 : resizeable.right) !== void 0 ? resizeable.right : true },
2813
2276
  minWidth: rightMinWidth,
2814
2277
  maxWidth: rightPanelMaxWidth,
2815
- handleClasses: { left: classNames(styles$b.resizeHandle, styles$b.right) },
2278
+ handleClasses: { left: classNames(styles$d.resizeHandle, styles$d.right) },
2816
2279
  handleComponent: { left: /* @__PURE__ */ jsx(RiIcon, { icon: "RiDraggable", height: "14px", width: "14px" }) },
2817
2280
  children: rightPanel
2818
2281
  }
@@ -2830,7 +2293,7 @@ const pageTitle = "_pageTitle_16xvh_12";
2830
2293
  const buttonContainer = "_buttonContainer_16xvh_16";
2831
2294
  const optionsButtonContainer = "_optionsButtonContainer_16xvh_21";
2832
2295
  const optionsButton = "_optionsButton_16xvh_21";
2833
- const styles$a = {
2296
+ const styles$c = {
2834
2297
  multiPagePopover,
2835
2298
  pageTitle,
2836
2299
  buttonContainer,
@@ -2844,7 +2307,7 @@ function getMultiPagePopoverContent(popoverOption, setMultiPagePopoverContent, d
2844
2307
  const optionButtons = popoverOption.options.map((option, i) => /* @__PURE__ */ jsx(
2845
2308
  Button2,
2846
2309
  {
2847
- className: classNames(styles$a.optionsButton, option.buttonClassName),
2310
+ className: classNames(styles$c.optionsButton, option.buttonClassName),
2848
2311
  variant: "ghost",
2849
2312
  radius: "large",
2850
2313
  style: {
@@ -2860,12 +2323,12 @@ function getMultiPagePopoverContent(popoverOption, setMultiPagePopoverContent, d
2860
2323
  `${option.value}-page-${page}-button-${i}`
2861
2324
  ));
2862
2325
  return /* @__PURE__ */ jsxs(Fragment, { children: [
2863
- popoverOption.title && /* @__PURE__ */ jsx(Text$2, { className: styles$a.pageTitle, size: "3", children: popoverOption.title }),
2326
+ popoverOption.title && /* @__PURE__ */ jsx(Text$2, { className: styles$c.pageTitle, size: "3", children: popoverOption.title }),
2864
2327
  popoverOption.content,
2865
2328
  /* @__PURE__ */ jsx(
2866
2329
  "div",
2867
2330
  {
2868
- className: classNames(styles$a.optionsButtonContainer, popoverOption.buttonsContainerClassName),
2331
+ className: classNames(styles$c.optionsButtonContainer, popoverOption.buttonsContainerClassName),
2869
2332
  style: {
2870
2333
  flexDirection: direction === "vertical" ? "column" : "row"
2871
2334
  },
@@ -2883,7 +2346,7 @@ const _MultiPagePopover = forwardRef(function MultiPagePopover2({ page, classNam
2883
2346
  return /* @__PURE__ */ jsx(
2884
2347
  Popover,
2885
2348
  {
2886
- className: classNames(styles$a.multiPagePopover, className),
2349
+ className: classNames(styles$c.multiPagePopover, className),
2887
2350
  ref,
2888
2351
  onOpenAutoFocus: resetPopoverContent,
2889
2352
  onCloseAutoFocus: resetPopoverContent,
@@ -2895,7 +2358,7 @@ const _MultiPagePopover = forwardRef(function MultiPagePopover2({ page, classNam
2895
2358
  const MultiPagePopover = React.memo(_MultiPagePopover);
2896
2359
  const charCount = "_charCount_1lz28_1";
2897
2360
  const ghost = "_ghost_1lz28_5";
2898
- const styles$9 = {
2361
+ const styles$b = {
2899
2362
  charCount,
2900
2363
  ghost
2901
2364
  };
@@ -2931,7 +2394,7 @@ const _TextArea = forwardRef(function TextArea2({
2931
2394
  TextArea$1,
2932
2395
  {
2933
2396
  className: classNames("overmap-textarea", className, {
2934
- [styles$9.ghost]: variant === "ghost"
2397
+ [styles$b.ghost]: variant === "ghost"
2935
2398
  }),
2936
2399
  style: { resize },
2937
2400
  variant: variant !== "ghost" ? variant : void 0,
@@ -2941,7 +2404,7 @@ const _TextArea = forwardRef(function TextArea2({
2941
2404
  ...rest
2942
2405
  }
2943
2406
  ),
2944
- displayInputLength && /* @__PURE__ */ jsx(Text$2, { as: "p", className: styles$9.charCount, color: infoColor, align: "right", children: displayInputLengthValue })
2407
+ displayInputLength && /* @__PURE__ */ jsx(Text$2, { as: "p", className: styles$b.charCount, color: infoColor, align: "right", children: displayInputLengthValue })
2945
2408
  ] });
2946
2409
  });
2947
2410
  const TextArea = memo(_TextArea);
@@ -2961,7 +2424,7 @@ const _ToggleGroup = forwardRef(function ToggleGroup2({
2961
2424
  ...rest
2962
2425
  }, ref) {
2963
2426
  return /* @__PURE__ */ jsx(
2964
- Root$4,
2427
+ Root$3,
2965
2428
  {
2966
2429
  type,
2967
2430
  className: classNames("overmap-toggle-group", className),
@@ -2974,7 +2437,7 @@ const _ToggleGroup = forwardRef(function ToggleGroup2({
2974
2437
  rovingFocus,
2975
2438
  defaultValue,
2976
2439
  asChild: true,
2977
- children: /* @__PURE__ */ jsx(ButtonGroup, { direction, ...rest, children: items.map(({ children, ...rest2 }) => /* @__PURE__ */ createElement(Item$4, { asChild: true, ...rest2, key: rest2.value }, /* @__PURE__ */ jsx(
2440
+ children: /* @__PURE__ */ jsx(ButtonGroup, { direction, ...rest, children: items.map(({ children, ...rest2 }) => /* @__PURE__ */ createElement(Item$3, { asChild: true, ...rest2, key: rest2.value }, /* @__PURE__ */ jsx(
2978
2441
  IconButton,
2979
2442
  {
2980
2443
  className: classNames("overmap-toggle-group-button"),
@@ -2987,15 +2450,15 @@ const _ToggleGroup = forwardRef(function ToggleGroup2({
2987
2450
  );
2988
2451
  });
2989
2452
  const ToggleGroup = memo(_ToggleGroup);
2990
- const styles$8 = {
2453
+ const styles$a = {
2991
2454
  "default": "_default_xqvoc_1"
2992
2455
  };
2993
2456
  const Root$1 = memo(
2994
2457
  forwardRef(({ className, minContentGap = "2", children, ...rest }, ref) => {
2995
2458
  return /* @__PURE__ */ jsx(
2996
- Root$5,
2459
+ Root$4,
2997
2460
  {
2998
- className: classNames(className, "overmap-toolbar", styles$8.default),
2461
+ className: classNames(className, "overmap-toolbar", styles$a.default),
2999
2462
  ref,
3000
2463
  asChild: true,
3001
2464
  ...rest,
@@ -3036,7 +2499,7 @@ const actionButton = "_actionButton_1i6bp_20";
3036
2499
  const ToastRoot = "_ToastRoot_1i6bp_24";
3037
2500
  const slideIn = "_slideIn_1i6bp_1";
3038
2501
  const swipeOut = "_swipeOut_1i6bp_1";
3039
- const styles$7 = {
2502
+ const styles$9 = {
3040
2503
  ToastViewport,
3041
2504
  actionButton,
3042
2505
  ToastRoot,
@@ -3054,7 +2517,7 @@ const _Toast = forwardRef(function Toast2({ title, description, icon, severity =
3054
2517
  },
3055
2518
  [onClose]
3056
2519
  );
3057
- return /* @__PURE__ */ jsx(RadixToast.Root, { asChild: true, ref, ...rest, open, type: sensitivity, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsx(Callout.Root, { className: styles$7.ToastRoot, variant: "surface", color, size: size2, children: /* @__PURE__ */ jsxs(Flex$1, { width: "100%", align: "center", gap: "4", justify: "between", children: [
2520
+ return /* @__PURE__ */ jsx(RadixToast.Root, { asChild: true, ref, ...rest, open, type: sensitivity, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsx(Callout.Root, { className: styles$9.ToastRoot, variant: "surface", color, size: size2, children: /* @__PURE__ */ jsxs(Flex$1, { width: "100%", align: "center", gap: "4", justify: "between", children: [
3058
2521
  /* @__PURE__ */ jsxs(Flex$1, { align: "center", gap: "3", children: [
3059
2522
  /* @__PURE__ */ jsx(Callout.Icon, { children: icon }),
3060
2523
  /* @__PURE__ */ jsxs(Flex$1, { direction: "column", gap: "2", children: [
@@ -3062,7 +2525,7 @@ const _Toast = forwardRef(function Toast2({ title, description, icon, severity =
3062
2525
  /* @__PURE__ */ jsx(RadixToast.Title, { asChild: true, children: /* @__PURE__ */ jsx(Callout.Text, { size: "3", weight: "medium", children: title }) }),
3063
2526
  /* @__PURE__ */ jsx(RadixToast.Description, { asChild: true, children: /* @__PURE__ */ jsx(Callout.Text, { children: description }) })
3064
2527
  ] }),
3065
- action && /* @__PURE__ */ jsx(RadixToast.Action, { className: styles$7.actionButton, altText: action.altText, asChild: true, children: action.content })
2528
+ action && /* @__PURE__ */ jsx(RadixToast.Action, { className: styles$9.actionButton, altText: action.altText, asChild: true, children: action.content })
3066
2529
  ] })
3067
2530
  ] }),
3068
2531
  /* @__PURE__ */ jsx(RadixToast.Close, { asChild: true, children: /* @__PURE__ */ jsx(IconButton, { "aria-label": "Close", variant: "ghost", severity, children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiCloseLine" }) }) })
@@ -3138,11 +2601,11 @@ const ToastProvider = memo(function ToastContextProvider({
3138
2601
  }, []);
3139
2602
  return /* @__PURE__ */ jsx(ToastContext.Provider, { value: toastContextValue, children: /* @__PURE__ */ jsxs(ToastProvider$1, { ...rest, children: [
3140
2603
  children,
3141
- /* @__PURE__ */ jsx(ToastViewport$1, { className: classNames(className, styles$7.ToastViewport), hotkey }),
2604
+ /* @__PURE__ */ jsx(ToastViewport$1, { className: classNames(className, styles$9.ToastViewport), hotkey }),
3142
2605
  toasts.map(({ id, onClose, ...toastProps }) => /* @__PURE__ */ jsx(Toast, { ...toastProps, onClose: () => handleCloseToast(id, 0, onClose) }, id))
3143
2606
  ] }) });
3144
2607
  });
3145
- const styles$6 = {
2608
+ const styles$8 = {
3146
2609
  "default": "_default_1odpt_1"
3147
2610
  };
3148
2611
  const Tooltip = memo(
@@ -3150,7 +2613,7 @@ const Tooltip = memo(
3150
2613
  return /* @__PURE__ */ jsx(
3151
2614
  Tooltip$1,
3152
2615
  {
3153
- className: classNames("overmap-tooltip", className, styles$6.default),
2616
+ className: classNames("overmap-tooltip", className, styles$8.default),
3154
2617
  ref,
3155
2618
  content: /* @__PURE__ */ jsx(Flex$1, { align: "center", gap: "1", width: "max-content", height: "max-content", justify: "center", children: content }),
3156
2619
  ...rest,
@@ -3160,7 +2623,7 @@ const Tooltip = memo(
3160
2623
  })
3161
2624
  );
3162
2625
  const ToggleButton$1 = "_ToggleButton_13aus_1";
3163
- const styles$5 = {
2626
+ const styles$7 = {
3164
2627
  ToggleButton: ToggleButton$1
3165
2628
  };
3166
2629
  const ToggleButton = memo(
@@ -3169,7 +2632,7 @@ const ToggleButton = memo(
3169
2632
  return /* @__PURE__ */ jsx(Toggle.Root, { ref, asChild: true, ...rest, children: /* @__PURE__ */ jsx(
3170
2633
  IconButton,
3171
2634
  {
3172
- className: classNames(className, styles$5.ToggleButton),
2635
+ className: classNames(className, styles$7.ToggleButton),
3173
2636
  "aria-label": props["aria-label"],
3174
2637
  severity,
3175
2638
  fluid: fluid2,
@@ -3183,10 +2646,10 @@ const ToggleButton = memo(
3183
2646
  })
3184
2647
  );
3185
2648
  const noWrap = "_noWrap_1wpa5_1";
3186
- const styles$4 = {
2649
+ const styles$6 = {
3187
2650
  noWrap
3188
2651
  };
3189
- const Text = memo(
2652
+ const Text$1 = memo(
3190
2653
  forwardRef(({ className, noWrap: noWrap2, severity, as, ...props }, ref) => {
3191
2654
  const color = useSeverityColor(severity);
3192
2655
  return /* @__PURE__ */ jsx(
@@ -3194,7 +2657,7 @@ const Text = memo(
3194
2657
  {
3195
2658
  ref,
3196
2659
  as,
3197
- className: classNames(className, { [styles$4.noWrap]: noWrap2 }),
2660
+ className: classNames(className, { [styles$6.noWrap]: noWrap2 }),
3198
2661
  color,
3199
2662
  ...props
3200
2663
  }
@@ -3208,6 +2671,60 @@ const DefaultTheme = memo(
3208
2671
  return /* @__PURE__ */ jsx(Theme, { panelBackground, radius: radius2, ref, ...rest });
3209
2672
  })
3210
2673
  );
2674
+ const light = "_light_1u8fs_1";
2675
+ const bold = "_bold_1u8fs_8";
2676
+ const full = "_full_1u8fs_15";
2677
+ const Text = "_Text_1u8fs_22";
2678
+ const styles$5 = {
2679
+ light,
2680
+ bold,
2681
+ full,
2682
+ Text
2683
+ };
2684
+ const SeparatorSizeMapping = {
2685
+ "1": "max-content",
2686
+ "2": "max-content",
2687
+ "3": "max-content",
2688
+ "4": "100%"
2689
+ };
2690
+ const _Separator = forwardRef(function Separator2({
2691
+ className,
2692
+ severity = "info",
2693
+ textWeight = "light",
2694
+ gap = "1",
2695
+ text,
2696
+ orientation = "horizontal",
2697
+ size: size2,
2698
+ weight = "medium",
2699
+ ...rest
2700
+ }, ref) {
2701
+ const computedSizing = useResponsiveMapping(size2, SeparatorSizeMapping);
2702
+ const severityColor = useSeverityColor(severity);
2703
+ return /* @__PURE__ */ jsxs(
2704
+ Flex$1,
2705
+ {
2706
+ className: classNames("overmap-separator", className, {
2707
+ [styles$5.light]: weight === "light",
2708
+ [styles$5.bold]: weight === "bold",
2709
+ [styles$5.full]: weight === "full"
2710
+ }),
2711
+ ref,
2712
+ width: orientation === "horizontal" ? computedSizing : "max-content",
2713
+ height: orientation === "vertical" ? computedSizing : "max-content",
2714
+ direction: orientation === "vertical" ? "column" : "row",
2715
+ align: "center",
2716
+ gap,
2717
+ children: [
2718
+ /* @__PURE__ */ jsx(Separator$2, { size: size2, orientation, color: severityColor, ...rest }),
2719
+ text && /* @__PURE__ */ jsxs(Fragment, { children: [
2720
+ /* @__PURE__ */ jsx(Text$2, { className: styles$5.Text, as: "span", size: "1", weight: textWeight, color: severityColor, children: text }),
2721
+ /* @__PURE__ */ jsx(Separator$2, { size: size2, orientation, color: severityColor, ...rest })
2722
+ ] })
2723
+ ]
2724
+ }
2725
+ );
2726
+ });
2727
+ const Separator$1 = memo(_Separator);
3211
2728
  const centerStyles = { placeSelf: "center" };
3212
2729
  const ErrorFallback = memo((props) => {
3213
2730
  const { absoluteCentering } = props;
@@ -3217,7 +2734,7 @@ const ErrorFallback = memo((props) => {
3217
2734
  return /* @__PURE__ */ jsxs(Flex, { gap: "2", direction: "row", width: "100%", style: outerFlexStyles, children: [
3218
2735
  /* @__PURE__ */ jsx("div", { style: { flexGrow: 1 } }),
3219
2736
  /* @__PURE__ */ jsx(RiIcon, { icon: "RiAlertLine", size: height, style: centerStyles }),
3220
- /* @__PURE__ */ jsx(Text, { style: { lineHeight: height, ...centerStyles }, children: "Something went wrong" }),
2737
+ /* @__PURE__ */ jsx(Text$1, { style: { lineHeight: height, ...centerStyles }, children: "Something went wrong" }),
3221
2738
  /* @__PURE__ */ jsx(
3222
2739
  IconButton,
3223
2740
  {
@@ -3241,6 +2758,28 @@ const OvermapErrorBoundary = memo((props) => {
3241
2758
  return /* @__PURE__ */ jsx(ErrorBoundary, { fallback: /* @__PURE__ */ jsx(ErrorFallback, { absoluteCentering }), onError: logError, children: props.children });
3242
2759
  });
3243
2760
  OvermapErrorBoundary.displayName = "OvermapErrorBoundary";
2761
+ const OvermapInputItem$1 = "_OvermapInputItem_1jgzv_1";
2762
+ const styles$4 = {
2763
+ OvermapInputItem: OvermapInputItem$1
2764
+ };
2765
+ const OvermapInputItem = memo(
2766
+ forwardRef((props, ref) => {
2767
+ const { size: size2, className, style, leftSlot, rightSlot, ...rest } = props;
2768
+ return /* @__PURE__ */ jsx(
2769
+ OvermapItem,
2770
+ {
2771
+ className,
2772
+ style,
2773
+ size: size2,
2774
+ leftSlot,
2775
+ rightSlot,
2776
+ compact: false,
2777
+ children: /* @__PURE__ */ jsx("input", { className: styles$4.OvermapInputItem, ref, ...rest })
2778
+ }
2779
+ );
2780
+ })
2781
+ );
2782
+ OvermapInputItem.displayName = "OvermapInputItem";
3244
2783
  const MenuContext = createContext({});
3245
2784
  const useMenuContext = () => useContext(MenuContext);
3246
2785
  const MENU_OVERFLOW_PADDING = 20;
@@ -3338,7 +2877,7 @@ const Root2 = memo((props) => {
3338
2877
  modal,
3339
2878
  setTriggerType
3340
2879
  },
3341
- children
2880
+ children: /* @__PURE__ */ jsx(OvermapItemGroup, { size: size$1, children })
3342
2881
  }
3343
2882
  ) });
3344
2883
  });
@@ -3852,9 +3391,52 @@ const SubTrigger = memo(
3852
3391
  const Group = memo(
3853
3392
  forwardRef((props, ref) => {
3854
3393
  const { children } = props;
3855
- return /* @__PURE__ */ jsx(OvermapItemGroup, { ref, role: "group", children });
3394
+ return /* @__PURE__ */ jsx(Flex$1, { ref, role: "group", width: "100%", height: "max-content", children });
3856
3395
  })
3857
3396
  );
3397
+ const SelectContext = createContext({});
3398
+ function useSelectContext() {
3399
+ return useContext(SelectContext);
3400
+ }
3401
+ const SelectContextProvider = memo((props) => {
3402
+ const { type, children } = props;
3403
+ const [controlledValue, setControlledValue] = useState(
3404
+ type === "single" ? (props == null ? void 0 : props.defaultValue) ?? null : null
3405
+ );
3406
+ const [controlledValues, setControlledValues] = useState(
3407
+ type === "multi" ? (props == null ? void 0 : props.defaultValues) ?? [] : []
3408
+ );
3409
+ const onValuesChange = useCallback(
3410
+ (values) => {
3411
+ setControlledValues(values);
3412
+ if (type === "multi" && (props == null ? void 0 : props.onValuesChange))
3413
+ props.onValuesChange(values);
3414
+ },
3415
+ [props, type]
3416
+ );
3417
+ const onValueChange = useCallback(
3418
+ (value2) => {
3419
+ setControlledValue(value2);
3420
+ if (type === "single" && (props == null ? void 0 : props.onValueChange))
3421
+ props.onValueChange(value2);
3422
+ },
3423
+ [props, type]
3424
+ );
3425
+ const value = useMemo(
3426
+ () => type === "multi" ? {
3427
+ type,
3428
+ values: (props == null ? void 0 : props.values) ?? controlledValues,
3429
+ handleValuesChange: onValuesChange
3430
+ } : {
3431
+ type,
3432
+ value: props.value ?? controlledValue,
3433
+ handleValueChange: onValueChange
3434
+ },
3435
+ [controlledValue, controlledValues, onValueChange, onValuesChange, props, type]
3436
+ );
3437
+ return /* @__PURE__ */ jsx(SelectContext.Provider, { value, children });
3438
+ });
3439
+ SelectContextProvider.displayName = "SelectContextProvider";
3858
3440
  const SelectGroup = memo(
3859
3441
  forwardRef((props, ref) => {
3860
3442
  const { children, value, onValueChange } = props;
@@ -3992,7 +3574,7 @@ const Separator = memo(
3992
3574
  [styles$3.paddingTop]: spacingAbove,
3993
3575
  [styles$3.paddingBottom]: spacingBelow
3994
3576
  }),
3995
- children: /* @__PURE__ */ jsx(Separator$2, { ref, size: "4", weight: "light", ...rest })
3577
+ children: /* @__PURE__ */ jsx(Separator$1, { ref, size: "4", weight: "light", ...rest })
3996
3578
  }
3997
3579
  );
3998
3580
  })
@@ -5092,8 +4674,8 @@ const _Table = forwardRef(function Table2(props, ref) {
5092
4674
  }, [rowsPerPage, rows.length, numRowsPerPage, pagination, showPageNavigation]);
5093
4675
  return /* @__PURE__ */ jsxs(Flex$1, { className: classNames({ [styles$1.outerTableContainer]: showContainer }), direction: "column", height: "100%", children: [
5094
4676
  (!!title || !!description) && /* @__PURE__ */ jsxs("div", { className: styles$1.headerContainer, children: [
5095
- !!title && /* @__PURE__ */ jsx(Text, { weight: "bold", size: "5", children: title }),
5096
- !!description && /* @__PURE__ */ jsx(Text, { as: "div", children: description })
4677
+ !!title && /* @__PURE__ */ jsx(Text$1, { weight: "bold", size: "5", children: title }),
4678
+ !!description && /* @__PURE__ */ jsx(Text$1, { as: "div", children: description })
5097
4679
  ] }),
5098
4680
  showTopBar && /* @__PURE__ */ jsxs(Flex$1, { justify: "between", gap: "2", className: styles$1.tableTopContainer, children: [
5099
4681
  /* @__PURE__ */ jsxs(Flex$1, { gap: "2", children: [
@@ -5208,7 +4790,7 @@ const _Table = forwardRef(function Table2(props, ref) {
5208
4790
  ) }),
5209
4791
  showBottomBar && /* @__PURE__ */ jsxs(Flex$1, { className: styles$1.tableBottomContainer, wrap: "wrap", direction: isMobile ? "column" : "row", children: [
5210
4792
  showRowsPerPage && /* @__PURE__ */ jsxs(Flex$1, { className: styles$1.rowsPerPageContainer, children: [
5211
- /* @__PURE__ */ jsx(Text, { className: styles$1.rowsPerPageText, size: "2", children: "Rows per page:" }),
4793
+ /* @__PURE__ */ jsx(Text$1, { className: styles$1.rowsPerPageText, size: "2", children: "Rows per page:" }),
5212
4794
  /* @__PURE__ */ jsx(
5213
4795
  Select,
5214
4796
  {
@@ -5223,7 +4805,7 @@ const _Table = forwardRef(function Table2(props, ref) {
5223
4805
  }
5224
4806
  )
5225
4807
  ] }),
5226
- showPageNumber && /* @__PURE__ */ jsx(Flex$1, { justify: "center", children: /* @__PURE__ */ jsx(Text, { className: styles$1.pageText, size: "2", children: totalPages > 0 && `Page ${pagination.state.page + 1} of ${totalPages}` }) }),
4808
+ showPageNumber && /* @__PURE__ */ jsx(Flex$1, { justify: "center", children: /* @__PURE__ */ jsx(Text$1, { className: styles$1.pageText, size: "2", children: totalPages > 0 && `Page ${pagination.state.page + 1} of ${totalPages}` }) }),
5227
4809
  showPageNavigation && /* @__PURE__ */ jsxs(Flex$1, { className: styles$1.rowsPerPageContainer, gap: "2", justify: "end", children: [
5228
4810
  /* @__PURE__ */ jsx(
5229
4811
  IconButton,
@@ -5442,10 +5024,6 @@ export {
5442
5024
  ConfirmEditInput,
5443
5025
  DefaultTheme,
5444
5026
  Dialog$1 as Dialog,
5445
- DialogCommandMenu,
5446
- DialogMenu,
5447
- DialogMultiSelectMenu,
5448
- DialogSelectMenu,
5449
5027
  DownloadButtonUtility,
5450
5028
  Flex,
5451
5029
  HoverUtility,
@@ -5471,14 +5049,14 @@ export {
5471
5049
  RiIcon,
5472
5050
  Select,
5473
5051
  SelectAllCheckbox,
5474
- Separator$2 as Separator,
5052
+ Separator$1 as Separator,
5475
5053
  Sidebar,
5476
5054
  SlideOutV2,
5477
5055
  SlideOutV3,
5478
5056
  Spinner,
5479
5057
  Switch,
5480
5058
  Table,
5481
- Text,
5059
+ Text$1 as Text,
5482
5060
  TextArea,
5483
5061
  Theme2 as Theme,
5484
5062
  Toast,