@overmap-ai/blocks 1.0.6-master.1 → 1.0.6

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 (37) hide show
  1. package/README.md +3 -3
  2. package/dist/Dialogs/Dialog/index.d.ts +0 -1
  3. package/dist/DropdownMenu/DropdownMenu.d.ts +17 -5
  4. package/dist/DropdownMenu/index.d.ts +0 -2
  5. package/dist/DropdownSelect/DropdownSelect.d.ts +57 -5
  6. package/dist/DropdownSelect/index.d.ts +1 -1
  7. package/dist/Separator/typings.d.ts +1 -2
  8. package/dist/blocks.js +251 -522
  9. package/dist/blocks.js.map +1 -1
  10. package/dist/blocks.umd.cjs +247 -515
  11. package/dist/blocks.umd.cjs.map +1 -1
  12. package/dist/index.d.ts +2 -4
  13. package/dist/style.css +59 -59
  14. package/dist/utils.d.ts +1 -12
  15. package/package.json +98 -102
  16. package/dist/BaseMenuGroups/BaseItemGroup/BaseItemGroup.d.ts +0 -3
  17. package/dist/BaseMenuGroups/BaseItemGroup/index.d.ts +0 -2
  18. package/dist/BaseMenuGroups/BaseItemGroup/typings.d.ts +0 -11
  19. package/dist/BaseMenuGroups/BaseMenuComponents.d.ts +0 -11
  20. package/dist/BaseMenuGroups/BaseMultiSelectGroup/BaseMultiSelectGroup.d.ts +0 -3
  21. package/dist/BaseMenuGroups/BaseMultiSelectGroup/index.d.ts +0 -2
  22. package/dist/BaseMenuGroups/BaseMultiSelectGroup/typings.d.ts +0 -16
  23. package/dist/BaseMenuGroups/BaseSelectGroup/BaseSelectGroup.d.ts +0 -3
  24. package/dist/BaseMenuGroups/BaseSelectGroup/index.d.ts +0 -2
  25. package/dist/BaseMenuGroups/BaseSelectGroup/typings.d.ts +0 -16
  26. package/dist/BaseMenuGroups/BaseSubMenuGroup/BaseSubMenuGroup.d.ts +0 -3
  27. package/dist/BaseMenuGroups/BaseSubMenuGroup/index.d.ts +0 -2
  28. package/dist/BaseMenuGroups/BaseSubMenuGroup/typings.d.ts +0 -14
  29. package/dist/BaseMenuGroups/index.d.ts +0 -5
  30. package/dist/BaseMenuGroups/typings.d.ts +0 -37
  31. package/dist/BaseMenuGroups/utils.d.ts +0 -5
  32. package/dist/Dialogs/Dialog/utils.d.ts +0 -7
  33. package/dist/DropdownItemMenu/DropdownItemMenu.d.ts +0 -9
  34. package/dist/DropdownItemMenu/index.d.ts +0 -2
  35. package/dist/DropdownMenu/DropdownMenuGroups.d.ts +0 -18
  36. package/dist/DropdownMultiSelect/DropdownMultiSelect.d.ts +0 -6
  37. package/dist/DropdownMultiSelect/index.d.ts +0 -2
package/dist/blocks.js CHANGED
@@ -1,12 +1,11 @@
1
1
  export * from "@radix-ui/colors";
2
- import { Cross1Icon, MagnifyingGlassIcon, CheckIcon, DragHandleDots2Icon, Cross2Icon, DividerHorizontalIcon, CaretSortIcon, ArrowUpIcon, ArrowDownIcon, MixerHorizontalIcon, Pencil1Icon, TrashIcon, DoubleArrowLeftIcon, ChevronLeftIcon, ChevronRightIcon, DoubleArrowRightIcon } from "@radix-ui/react-icons";
2
+ import { Cross1Icon, CheckIcon, DragHandleDots2Icon, Cross2Icon, DividerHorizontalIcon, CaretSortIcon, ArrowUpIcon, ArrowDownIcon, MagnifyingGlassIcon, MixerHorizontalIcon, Pencil1Icon, TrashIcon, DoubleArrowLeftIcon, ChevronLeftIcon, ChevronRightIcon, DoubleArrowRightIcon } from "@radix-ui/react-icons";
3
3
  export * from "@radix-ui/react-icons";
4
- 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$1, AlertDialog as AlertDialog$1, DropdownMenu as DropdownMenu$1, Kbd, 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, Theme, Separator as Separator$1, TableRow } from "@radix-ui/themes";
5
- import { AccessibleIcon, AspectRatio, Avatar, Blockquote, Box as Box2, Callout as Callout2, Card as Card2, Code, Container, Em, Grid, Heading, HoverCard, Inset as Inset2, Kbd as Kbd2, Link as Link2, Portal as Portal2, Quote, RadioGroup, ScrollArea, Section, Slider, Slot, Strong, Tabs, TextField as TextField2, Theme as Theme2, VisuallyHidden, updateThemeAppearanceClass, useThemeContext as useThemeContext2 } from "@radix-ui/themes";
4
+ import { useThemeContext, Badge as Badge$1, Flex as Flex$1, Box, Link, Text as Text$1, Button, IconButton as IconButton$1, Card, Inset, Dialog as Dialog$1, AlertDialog as AlertDialog$1, Separator as Separator$1, DropdownMenu as DropdownMenu$2, TextField, Select as Select$1, Checkbox as Checkbox$1, Switch as Switch$1, Portal, Popover as Popover$1, TextArea as TextArea$1, Callout, Tooltip as Tooltip$1, Theme, TableRow } from "@radix-ui/themes";
5
+ import { AccessibleIcon, AspectRatio, Avatar, Blockquote, Box as Box2, Callout as Callout2, Card as Card2, Code, Container, ContextMenu, Em, Grid, Heading, HoverCard, Inset as Inset2, Kbd, Link as Link2, Portal as Portal2, Quote, RadioGroup, ScrollArea, Section, Slider, Slot, Strong, Tabs, TextField as TextField2, Theme as Theme2, VisuallyHidden, updateThemeAppearanceClass, useThemeContext as useThemeContext2 } from "@radix-ui/themes";
6
6
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
7
7
  import React, { useMemo, useState, useLayoutEffect, useCallback, useEffect, Children, isValidElement, forwardRef, memo, createContext, useContext, cloneElement, createElement, useRef, useReducer, Fragment as Fragment$1 } from "react";
8
8
  import { useMediaQuery } from "react-responsive";
9
- import * as RadixDropdownMenu from "@radix-ui/react-dropdown-menu";
10
9
  import * as RadixDialogPrimitive from "@radix-ui/react-dialog";
11
10
  import { Resizable } from "re-resizable";
12
11
  import { DismissableLayer } from "@radix-ui/react-dismissable-layer";
@@ -176,19 +175,6 @@ const childrenToArray = (children) => {
176
175
  }
177
176
  return tempChildrenToArray;
178
177
  };
179
- const useStopEventPropagation = () => {
180
- return useCallback((event) => {
181
- event.stopPropagation();
182
- }, []);
183
- };
184
- function useTextFilter(values, filterFunction) {
185
- const [filteredOptions, setFilteredOptions] = useState([]);
186
- const [filterValue, setFilterValue] = useState("");
187
- useEffect(() => {
188
- setFilteredOptions(values.filter((value) => filterFunction(value, filterValue)));
189
- }, [filterFunction, filterValue, values]);
190
- return [filteredOptions, filterValue, setFilterValue];
191
- }
192
178
  const _Badge = forwardRef(function Badge2({ className, severity = "primary", color, children, ...rest }, ref) {
193
179
  const severityColor = useSeverityColor(severity);
194
180
  return /* @__PURE__ */ jsx(
@@ -257,7 +243,7 @@ const Group = memo(
257
243
  children: childrenAsArray.map((child, index) => {
258
244
  return /* @__PURE__ */ jsxs(Fragment, { children: [
259
245
  cloneElement(child, { key: index }),
260
- childrenAsArray.length - 1 !== index && /* @__PURE__ */ jsx(Text$2, { color: severityColor, children: /* @__PURE__ */ jsx(Flex, { height: "100%", width: "100%", align: "center", children: separator }) })
246
+ childrenAsArray.length - 1 !== index && /* @__PURE__ */ jsx(Text$1, { color: severityColor, children: /* @__PURE__ */ jsx(Flex, { height: "100%", width: "100%", align: "center", children: separator }) })
261
247
  ] });
262
248
  })
263
249
  }
@@ -575,15 +561,6 @@ const Dialog = memo(
575
561
  ] });
576
562
  })
577
563
  );
578
- const useWrapCallbackInDialogClose = (callback, closeOptions) => {
579
- return useCallback(
580
- (...arg) => (closeDialog) => {
581
- callback(...arg);
582
- closeDialog(closeOptions);
583
- },
584
- [callback, closeOptions]
585
- );
586
- };
587
564
  const Title = (props) => /* @__PURE__ */ jsx(AlertDialog$1.Title, { mb: "0", ...props });
588
565
  const AlertDialogContent$1 = (props) => {
589
566
  const { title, description, actionText = "Confirm", cancelText = "Cancel", onAction, onCancel, severity } = props;
@@ -649,341 +626,128 @@ const useDiscardAlertDialog = () => {
649
626
  [openAlertDialog]
650
627
  );
651
628
  };
652
- const DropdownMenu = memo(
653
- forwardRef(({ trigger, disabled, children, ...rest }) => {
654
- const infoColor = useSeverityColor("info");
655
- return /* @__PURE__ */ jsxs(DropdownMenu$1.Root, { children: [
656
- /* @__PURE__ */ jsx(DropdownMenu$1.Trigger, { disabled, children: trigger }),
657
- /* @__PURE__ */ jsx(DropdownMenu$1.Content, { variant: "soft", color: infoColor, ...rest, children })
658
- ] });
659
- })
660
- );
661
- const BaseMenuItem$1 = "_BaseMenuItem_1s610_1";
662
- const RemoveOutline = "_RemoveOutline_1s610_15";
663
- const BaseMenuSeparator$1 = "_BaseMenuSeparator_1s610_19";
664
- const BaseMenuInput$1 = "_BaseMenuInput_1s610_27";
629
+ const DropdownMenu$1 = "_DropdownMenu_hj4sz_1";
630
+ const DropdownMenuItemWrapper = "_DropdownMenuItemWrapper_hj4sz_8";
631
+ const DropdownMenuSeparatorWrapper = "_DropdownMenuSeparatorWrapper_hj4sz_13";
632
+ const DropdownMenuItem$1 = "_DropdownMenuItem_hj4sz_8";
665
633
  const styles$h = {
666
- BaseMenuItem: BaseMenuItem$1,
667
- RemoveOutline,
668
- BaseMenuSeparator: BaseMenuSeparator$1,
669
- BaseMenuInput: BaseMenuInput$1
634
+ DropdownMenu: DropdownMenu$1,
635
+ DropdownMenuItemWrapper,
636
+ DropdownMenuSeparatorWrapper,
637
+ DropdownMenuItem: DropdownMenuItem$1
670
638
  };
671
- const BaseMenuItem = memo(
672
- forwardRef(({ children, rightSlot }, ref) => {
673
- return /* @__PURE__ */ jsx(Box, { className: styles$h.BaseMenuItem, ref, position: "relative", px: "2", height: "6", children: /* @__PURE__ */ jsxs(Flex, { gap: "6", height: "100%", align: "center", children: [
674
- /* @__PURE__ */ jsx(Flex, { grow: "1", height: "100%", align: "center", gap: "1", children }),
675
- /* @__PURE__ */ jsx(Flex, { height: "100%", width: "4", align: "center", justify: "end", children: rightSlot })
676
- ] }) });
677
- })
678
- );
679
- const BaseMenuInput = memo(
680
- forwardRef((props) => {
681
- return /* @__PURE__ */ jsx(Box, { className: styles$h.BaseMenuInput, px: "2", height: "6", width: "max-content", children: /* @__PURE__ */ jsx(Input, { ...props, variant: "ghost" }) });
682
- })
683
- );
684
- const BaseMenuSeparator = memo(function BaseMenuSeparator2() {
685
- return /* @__PURE__ */ jsx(Box, { className: styles$h.BaseMenuSeparator, width: "100%", py: "1", children: /* @__PURE__ */ jsx(Box, { height: "0", width: "100%" }) });
686
- });
687
- const useCloseOnSelectHandler = (closeOnSelect) => {
688
- return useCallback(
689
- (onSelect) => (event) => {
690
- if (!closeOnSelect) {
691
- event.preventDefault();
692
- }
693
- if (onSelect)
694
- onSelect(event);
695
- },
696
- [closeOnSelect]
697
- );
698
- };
699
- const useTextFilterChangeHandler = () => {
700
- return useCallback(
701
- (onTextFilterChange) => (event) => {
702
- if (onTextFilterChange)
703
- onTextFilterChange(event.target.value);
704
- },
705
- []
706
- );
639
+ const SeparatorSizeMapping = {
640
+ "1": "max-content",
641
+ "2": "max-content",
642
+ "3": "max-content",
643
+ "4": "100%"
707
644
  };
708
- const BaseItemGroup = memo(function BaseItemGroup2({
709
- items,
710
- closeOnSelect = true,
711
- groupElement: GroupElement,
712
- itemElement: ItemElement,
713
- filterValue,
714
- onFilterValueChange,
715
- placeholder,
716
- icons,
717
- separator,
718
- ...rest
719
- }) {
720
- const closeOnSelectHandler = useCloseOnSelectHandler(closeOnSelect);
721
- const textFilterChangeHandler = useTextFilterChangeHandler();
722
- useEffect(() => {
723
- return () => {
724
- if (onFilterValueChange) {
725
- onFilterValueChange("");
726
- }
727
- };
728
- }, []);
729
- return /* @__PURE__ */ jsxs(Fragment, { children: [
730
- /* @__PURE__ */ jsx(GroupElement, { ...rest, children: /* @__PURE__ */ jsxs(Flex, { direction: "column", children: [
731
- filterValue !== void 0 && !!onFilterValueChange && /* @__PURE__ */ jsxs(Fragment, { children: [
732
- /* @__PURE__ */ jsx(
733
- BaseMenuInput,
734
- {
735
- value: filterValue,
736
- onChange: textFilterChangeHandler(onFilterValueChange),
737
- placeholder,
738
- leftSlot: icons == null ? void 0 : icons.left,
739
- rightSlot: icons == null ? void 0 : icons.right
740
- }
741
- ),
742
- items.length !== 0 && /* @__PURE__ */ jsx(BaseMenuSeparator, {})
743
- ] }),
744
- items.map(({ content, shortcut, className, onSelect, ...rest2 }, index) => /* @__PURE__ */ jsx(
745
- ItemElement,
746
- {
747
- className: classNames(className, styles$h.RemoveOutline),
748
- onSelect: closeOnSelectHandler(onSelect),
749
- ...rest2,
750
- children: /* @__PURE__ */ jsx(BaseMenuItem, { rightSlot: shortcut == null ? void 0 : shortcut.map((key, index2) => /* @__PURE__ */ jsx(Kbd, { children: key }, index2)), children: content })
751
- },
752
- index
753
- ))
754
- ] }) }),
755
- separator && /* @__PURE__ */ jsx(BaseMenuSeparator, {})
756
- ] });
757
- });
758
- const BaseSelectGroup = memo(function BaseSelectGroup2({
759
- items,
760
- value,
761
- closeOnSelect = false,
762
- onValueChange,
763
- groupElement: GroupElement,
764
- selectedIndicator,
765
- itemElement: ItemElement,
766
- itemIndicatorElement: ItemIndicatorElement,
767
- filterValue,
768
- onFilterValueChange,
769
- placeholder,
770
- icons,
771
- separator
772
- }) {
773
- const textFilterChangeHandler = useTextFilterChangeHandler();
774
- const closeOnSelectHandler = useCloseOnSelectHandler(closeOnSelect);
775
- useEffect(() => {
776
- return () => {
777
- if (onFilterValueChange) {
778
- onFilterValueChange("");
779
- }
780
- };
781
- }, []);
782
- const handleCheckedChange = useCallback(
783
- (value2) => (checked) => {
784
- onValueChange(checked ? value2 : null);
785
- },
786
- [onValueChange]
787
- );
788
- return /* @__PURE__ */ jsxs(Fragment, { children: [
789
- /* @__PURE__ */ jsx(GroupElement, { children: /* @__PURE__ */ jsxs(Flex, { direction: "column", children: [
790
- filterValue !== void 0 && !!onFilterValueChange && /* @__PURE__ */ jsxs(Fragment, { children: [
791
- /* @__PURE__ */ jsx(
792
- BaseMenuInput,
793
- {
794
- value: filterValue,
795
- onChange: textFilterChangeHandler(onFilterValueChange),
796
- placeholder,
797
- leftSlot: icons == null ? void 0 : icons.left,
798
- rightSlot: (icons == null ? void 0 : icons.right) || /* @__PURE__ */ jsx(MagnifyingGlassIcon, {})
799
- }
800
- ),
801
- items.length !== 0 && /* @__PURE__ */ jsx(BaseMenuSeparator, {})
802
- ] }),
803
- items.map(({ content, value: itemValue, onSelect, ...rest }, index) => /* @__PURE__ */ jsx(
804
- ItemElement,
805
- {
806
- className: styles$h.RemoveOutline,
807
- checked: itemValue === value,
808
- onCheckedChange: handleCheckedChange(itemValue),
809
- onSelect: closeOnSelectHandler(onSelect),
810
- textValue: "",
811
- ...rest,
812
- children: /* @__PURE__ */ jsx(
813
- BaseMenuItem,
814
- {
815
- rightSlot: /* @__PURE__ */ jsx(ItemIndicatorElement, { asChild: true, children: selectedIndicator || /* @__PURE__ */ jsx(CheckIcon, {}) }),
816
- children: content
817
- }
818
- )
819
- },
820
- index
821
- ))
822
- ] }) }),
823
- separator && /* @__PURE__ */ jsx(BaseMenuSeparator, {})
824
- ] });
825
- });
826
- const BaseMultiSelectGroup = memo(function BaseMultiSelectGroup2({
827
- items,
828
- values,
829
- onValueChange,
830
- closeOnSelect = false,
831
- groupElement: GroupElement,
832
- selectedIndicator,
833
- itemElement: ItemElement,
834
- itemIndicatorElement: ItemIndicatorElement,
835
- filterValue,
836
- onFilterValueChange,
837
- placeholder,
838
- icons,
839
- separator = false
840
- }) {
841
- const closeOnSelectHandler = useCloseOnSelectHandler(closeOnSelect);
842
- const textFilterChangeHandler = useTextFilterChangeHandler();
843
- useEffect(() => {
844
- return () => {
845
- if (onFilterValueChange) {
846
- onFilterValueChange("");
847
- }
848
- };
849
- }, []);
850
- const handleCheckedChange = useCallback(
851
- (value) => (checked) => {
852
- if (checked) {
853
- onValueChange([...values, value]);
854
- } else {
855
- const valueIndex = values.indexOf(value);
856
- if (valueIndex < 0) {
857
- throw new Error("unexpected value not found within values array");
858
- }
859
- const tempValues = [...values];
860
- tempValues.splice(valueIndex, 1);
861
- onValueChange(tempValues);
862
- }
863
- },
864
- [onValueChange, values]
865
- );
866
- return /* @__PURE__ */ jsxs(Fragment, { children: [
867
- /* @__PURE__ */ jsx(GroupElement, { children: /* @__PURE__ */ jsxs(Flex, { direction: "column", children: [
868
- filterValue !== void 0 && !!onFilterValueChange && /* @__PURE__ */ jsxs(Fragment, { children: [
869
- /* @__PURE__ */ jsx(
870
- BaseMenuInput,
871
- {
872
- value: filterValue,
873
- onChange: textFilterChangeHandler(onFilterValueChange),
874
- placeholder,
875
- leftSlot: icons == null ? void 0 : icons.left,
876
- rightSlot: icons == null ? void 0 : icons.right
877
- }
878
- ),
879
- items.length !== 0 && /* @__PURE__ */ jsx(BaseMenuSeparator, {})
880
- ] }),
881
- items.map(({ value, content, className, onSelect, ...rest }, index) => /* @__PURE__ */ jsx(
882
- ItemElement,
883
- {
884
- className: classNames(className, styles$h.RemoveOutline),
885
- onSelect: closeOnSelectHandler(onSelect),
886
- onCheckedChange: handleCheckedChange(value),
887
- checked: values.includes(value),
888
- textValue: "",
889
- ...rest,
890
- children: /* @__PURE__ */ jsx(
891
- BaseMenuItem,
892
- {
893
- rightSlot: /* @__PURE__ */ jsx(ItemIndicatorElement, { asChild: true, children: selectedIndicator || /* @__PURE__ */ jsx(CheckIcon, {}) }),
894
- children: content
895
- }
896
- )
897
- },
898
- index
899
- ))
900
- ] }) }),
901
- separator && /* @__PURE__ */ jsx(BaseMenuSeparator, {})
902
- ] });
903
- });
904
- const BaseSubMenuGroup = memo(function BaseSubMenuGroup2({
905
- subTriggerElement: SubTriggerElement,
906
- groupElement: GroupElement,
907
- subContentElement: SubContentElement,
908
- subElement: SubElement,
909
- items,
910
- separator = false,
911
- ...rest
912
- }) {
913
- return /* @__PURE__ */ jsxs(Fragment, { children: [
914
- /* @__PURE__ */ jsx(GroupElement, { ...rest, children: items.map(({ triggerIndicator, content, subContent, className, ...rest2 }, index) => /* @__PURE__ */ jsxs(SubElement, { children: [
915
- /* @__PURE__ */ jsx(SubTriggerElement, { className: classNames(className, styles$h.RemoveOutline), ...rest2, children: /* @__PURE__ */ jsx(BaseMenuItem, { rightSlot: triggerIndicator, children: content }) }),
916
- /* @__PURE__ */ jsx(SubContentElement, { sideOffset: 10, children: subContent })
917
- ] }, index)) }),
918
- separator && /* @__PURE__ */ jsx(BaseMenuSeparator, {})
919
- ] });
920
- });
921
- const DropdownMenuItemGroup = memo(function DropdownMenuItemGroup2(props) {
922
- return /* @__PURE__ */ jsx(BaseItemGroup, { ...props, itemElement: RadixDropdownMenu.Item, groupElement: RadixDropdownMenu.Group });
923
- });
924
- const DropdownMenuSelectGroup = memo(function DropdownMenuSelectGroup2(props) {
925
- return /* @__PURE__ */ jsx(
926
- BaseSelectGroup,
927
- {
928
- ...props,
929
- itemElement: RadixDropdownMenu.CheckboxItem,
930
- groupElement: RadixDropdownMenu.Group,
931
- itemIndicatorElement: RadixDropdownMenu.ItemIndicator
932
- }
933
- );
934
- });
935
- const DropdownMenuMultiSelectGroup = memo(function DropdownMenuMultiSelectGroup2(props) {
936
- return /* @__PURE__ */ jsx(
937
- BaseMultiSelectGroup,
645
+ const _Separator = forwardRef(function Separator2({ severity = "info", weight = "light", gap = "1", text, orientation = "horizontal", size, ...rest }, ref) {
646
+ const computedSizing = useResponsiveMapping(size, SeparatorSizeMapping);
647
+ const severityColor = useSeverityColor(severity);
648
+ return /* @__PURE__ */ jsxs(
649
+ Flex$1,
938
650
  {
939
- ...props,
940
- itemElement: RadixDropdownMenu.CheckboxItem,
941
- groupElement: RadixDropdownMenu.Group,
942
- itemIndicatorElement: RadixDropdownMenu.ItemIndicator
651
+ ref,
652
+ width: orientation === "horizontal" ? computedSizing : "max-content",
653
+ height: orientation === "vertical" ? computedSizing : "max-content",
654
+ direction: orientation === "vertical" ? "column" : "row",
655
+ align: "center",
656
+ gap,
657
+ children: [
658
+ /* @__PURE__ */ jsx(Separator$1, { size, orientation, color: severityColor, ...rest }),
659
+ text && /* @__PURE__ */ jsxs(Fragment, { children: [
660
+ /* @__PURE__ */ jsx(Text$1, { as: "span", size: "1", weight, color: severityColor, children: text }),
661
+ /* @__PURE__ */ jsx(Separator$1, { size, orientation, color: severityColor, ...rest })
662
+ ] })
663
+ ]
943
664
  }
944
665
  );
945
666
  });
946
- const DropdownMenuSubMenuGroup = memo(function DropdownMenuSubMenuGroup2(props) {
947
- return /* @__PURE__ */ jsx(
948
- BaseSubMenuGroup,
949
- {
950
- ...props,
951
- groupElement: RadixDropdownMenu.Group,
952
- subElement: DropdownMenu$1.Sub,
953
- subTriggerElement: RadixDropdownMenu.SubTrigger,
954
- subContentElement: DropdownMenu$1.SubContent
955
- }
667
+ const Separator = memo(_Separator);
668
+ const DropdownMenuItem = memo(function DropdownMenuItem2({
669
+ content,
670
+ onSelect,
671
+ closeOnSelect,
672
+ ...rest
673
+ }) {
674
+ const handleSelect = useCallback(
675
+ (event) => {
676
+ if (onSelect)
677
+ onSelect(event);
678
+ if (!closeOnSelect)
679
+ event.preventDefault();
680
+ },
681
+ [closeOnSelect, onSelect]
956
682
  );
683
+ return /* @__PURE__ */ jsx(DropdownMenu$2.Item, { className: styles$h.DropdownMenuItem, textValue: "", onSelect: handleSelect, ...rest, children: /* @__PURE__ */ jsx(Flex$1, { align: "center", gap: "1", children: content }) });
957
684
  });
958
- const DropdownItemMenu = memo(
685
+ const DropdownMenu = memo(
959
686
  forwardRef(
960
687
  ({
688
+ className,
961
689
  trigger,
962
690
  items,
691
+ label,
963
692
  disabled,
693
+ severity = "info",
694
+ modal = false,
964
695
  closeOnSelect = true,
965
- filterValue,
966
- onFilterValueChange,
967
- placeholder,
968
696
  ...rest
969
- }) => {
970
- const infoColor = useSeverityColor("info");
971
- return /* @__PURE__ */ jsxs(DropdownMenu$1.Root, { children: [
972
- /* @__PURE__ */ jsx(DropdownMenu$1.Trigger, { disabled, children: trigger }),
973
- /* @__PURE__ */ jsx(DropdownMenu$1.Content, { variant: "soft", ...rest, color: infoColor, children: /* @__PURE__ */ jsx(
974
- DropdownMenuItemGroup,
697
+ }, ref) => {
698
+ const severityColor = useSeverityColor(severity);
699
+ return /* @__PURE__ */ jsxs(DropdownMenu$2.Root, { modal, children: [
700
+ /* @__PURE__ */ jsx(DropdownMenu$2.Trigger, { disabled, children: trigger }),
701
+ /* @__PURE__ */ jsx(
702
+ DropdownMenu$2.Content,
975
703
  {
976
- items,
977
- filterValue,
978
- onFilterValueChange,
979
- placeholder,
980
- closeOnSelect
704
+ className: classNames("overmap-dropdown", className),
705
+ color: severityColor,
706
+ variant: "soft",
707
+ ref,
708
+ ...rest,
709
+ children: /* @__PURE__ */ jsxs(
710
+ Flex$1,
711
+ {
712
+ className: styles$h.DropdownMenu,
713
+ direction: "column",
714
+ height: "max-content",
715
+ width: "max-content",
716
+ children: [
717
+ !!label && /* @__PURE__ */ jsx(DropdownMenu$2.Label, { children: label }),
718
+ items.map(({ closeOnSelect: itemCloseOnSelect, separator, ...rest2 }, index) => /* @__PURE__ */ jsxs(Box, { children: [
719
+ /* @__PURE__ */ jsx(Box, { className: styles$h.DropdownMenuItemWrapper, children: /* @__PURE__ */ jsx(
720
+ DropdownMenuItem,
721
+ {
722
+ closeOnSelect: itemCloseOnSelect ?? closeOnSelect,
723
+ ...rest2
724
+ },
725
+ index
726
+ ) }),
727
+ !!separator && /* @__PURE__ */ jsx(Box, { className: styles$h.DropdownMenuSeparatorWrapper, children: /* @__PURE__ */ jsx(Separator, { size: "4" }) })
728
+ ] }, index))
729
+ ]
730
+ }
731
+ )
981
732
  }
982
- ) })
733
+ )
983
734
  ] });
984
735
  }
985
736
  )
986
737
  );
738
+ const DropdownSelect$1 = "_DropdownSelect_k517z_1";
739
+ const BorderBottom = "_BorderBottom_k517z_8";
740
+ const DropdownSelectInputWrapper = "_DropdownSelectInputWrapper_k517z_12";
741
+ const DropdownSelectInput = "_DropdownSelectInput_k517z_12";
742
+ const DropdownSelectItem = "_DropdownSelectItem_k517z_27";
743
+ const styles$g = {
744
+ DropdownSelect: DropdownSelect$1,
745
+ BorderBottom,
746
+ DropdownSelectInputWrapper,
747
+ DropdownSelectInput,
748
+ DropdownSelectItem
749
+ };
750
+ const TIMEOUT = 150;
987
751
  const DropdownSelect = memo(
988
752
  forwardRef(
989
753
  ({
@@ -997,59 +761,84 @@ const DropdownSelect = memo(
997
761
  onFilterValueChange,
998
762
  closeOnSelect = true,
999
763
  icons,
1000
- side
764
+ severity = "info"
1001
765
  }, ref) => {
1002
- const infoColor = useSeverityColor("info");
1003
- return /* @__PURE__ */ jsxs(DropdownMenu$1.Root, { children: [
1004
- /* @__PURE__ */ jsx(DropdownMenu$1.Trigger, { disabled, children: trigger }),
1005
- /* @__PURE__ */ jsx(DropdownMenu$1.Content, { ref, variant: "soft", color: infoColor, side, children: /* @__PURE__ */ jsx(
1006
- DropdownMenuSelectGroup,
1007
- {
1008
- value,
1009
- onValueChange,
1010
- items,
1011
- closeOnSelect,
1012
- filterValue,
1013
- onFilterValueChange,
1014
- placeholder,
1015
- icons
1016
- }
1017
- ) })
1018
- ] });
1019
- }
1020
- )
1021
- );
1022
- const DropdownMultiSelect = memo(
1023
- forwardRef(
1024
- ({
1025
- trigger,
1026
- items,
1027
- disabled = false,
1028
- values,
1029
- onValueChange,
1030
- placeholder,
1031
- filterValue,
1032
- onFilterValueChange,
1033
- closeOnSelect = false,
1034
- icons,
1035
- side
1036
- }, ref) => {
1037
- const infoColor = useSeverityColor("info");
1038
- return /* @__PURE__ */ jsxs(DropdownMenu$1.Root, { children: [
1039
- /* @__PURE__ */ jsx(DropdownMenu$1.Trigger, { disabled, children: trigger }),
1040
- /* @__PURE__ */ jsx(DropdownMenu$1.Content, { ref, variant: "soft", color: infoColor, side, children: /* @__PURE__ */ jsx(
1041
- DropdownMenuMultiSelectGroup,
1042
- {
1043
- values,
1044
- onValueChange,
1045
- items,
1046
- closeOnSelect,
1047
- filterValue,
1048
- onFilterValueChange,
1049
- placeholder,
1050
- icons
766
+ const infoColor = useSeverityColor(severity);
767
+ const handleOnSelect = useCallback(
768
+ (itemValue) => (event) => {
769
+ onValueChange(value !== itemValue ? itemValue : void 0);
770
+ if (!closeOnSelect)
771
+ event.preventDefault();
772
+ },
773
+ [value, closeOnSelect, onValueChange]
774
+ );
775
+ const handleOnInputValueChange = useCallback(
776
+ (event) => {
777
+ if (onFilterValueChange)
778
+ onFilterValueChange(event.target.value);
779
+ },
780
+ [onFilterValueChange]
781
+ );
782
+ const handleOnOpenChange = useCallback(
783
+ (open) => {
784
+ if (!open && onFilterValueChange) {
785
+ setTimeout(() => {
786
+ onFilterValueChange("");
787
+ }, TIMEOUT);
1051
788
  }
1052
- ) })
789
+ },
790
+ [onFilterValueChange]
791
+ );
792
+ return /* @__PURE__ */ jsxs(DropdownMenu$2.Root, { onOpenChange: handleOnOpenChange, children: [
793
+ /* @__PURE__ */ jsx(DropdownMenu$2.Trigger, { disabled, children: trigger }),
794
+ /* @__PURE__ */ jsx(DropdownMenu$2.Content, { ref, variant: "soft", color: infoColor, className: styles$g.Test, children: /* @__PURE__ */ jsxs(Flex, { className: styles$g.DropdownSelect, direction: "column", children: [
795
+ filterValue !== void 0 && !!onFilterValueChange && /* @__PURE__ */ jsx(Box, { px: "1", className: classNames({ [styles$g.BorderBottom]: items.length !== 0 }), children: /* @__PURE__ */ jsxs(
796
+ TextField.Root,
797
+ {
798
+ className: styles$g.DropdownSelectInputWrapper,
799
+ size: "2",
800
+ variant: "soft",
801
+ children: [
802
+ !!icons && !!icons.leftInputIcon && /* @__PURE__ */ jsx(TextField.Slot, { children: icons.leftInputIcon }),
803
+ /* @__PURE__ */ jsx(
804
+ TextField.Input,
805
+ {
806
+ className: styles$g.DropdownSelectInput,
807
+ value: filterValue,
808
+ placeholder,
809
+ onChange: handleOnInputValueChange
810
+ }
811
+ ),
812
+ !!icons && !!icons.rightInputIcon && /* @__PURE__ */ jsx(TextField.Slot, { children: icons.rightInputIcon })
813
+ ]
814
+ }
815
+ ) }),
816
+ /* @__PURE__ */ jsx(Box, { p: items.length !== 0 ? "1" : "0", children: /* @__PURE__ */ jsx(Flex, { direction: "column", children: items.map(({ content, value: itemValue }, index) => {
817
+ return /* @__PURE__ */ jsx(
818
+ DropdownMenu$2.Item,
819
+ {
820
+ className: styles$g.DropdownSelectItem,
821
+ onSelect: handleOnSelect(itemValue),
822
+ textValue: "",
823
+ asChild: true,
824
+ children: /* @__PURE__ */ jsxs(Flex, { align: "center", height: "max-content", width: "100%", gap: "5", children: [
825
+ /* @__PURE__ */ jsx(Box, { grow: "1", children: content }),
826
+ /* @__PURE__ */ jsx(
827
+ Flex,
828
+ {
829
+ justify: "center",
830
+ align: "center",
831
+ height: "max-content",
832
+ width: "4",
833
+ children: value === itemValue && (icons && (icons == null ? void 0 : icons.selectedItemIcon) ? icons.selectedItemIcon : /* @__PURE__ */ jsx(CheckIcon, {}))
834
+ }
835
+ )
836
+ ] })
837
+ },
838
+ index
839
+ );
840
+ }) }) })
841
+ ] }) })
1053
842
  ] });
1054
843
  }
1055
844
  )
@@ -1069,7 +858,7 @@ const HoverUtility = memo(function Root({ children }) {
1069
858
  });
1070
859
  });
1071
860
  const fluid = "_fluid_7n1wr_1";
1072
- const styles$g = {
861
+ const styles$f = {
1073
862
  fluid
1074
863
  };
1075
864
  const _Select = forwardRef(function Select2({
@@ -1093,7 +882,7 @@ const _Select = forwardRef(function Select2({
1093
882
  Select$1.Trigger,
1094
883
  {
1095
884
  className: classNames(className, {
1096
- [styles$g.fluid]: fluid2
885
+ [styles$f.fluid]: fluid2
1097
886
  }),
1098
887
  id,
1099
888
  ref,
@@ -1105,7 +894,7 @@ const _Select = forwardRef(function Select2({
1105
894
  Select$1.Content,
1106
895
  {
1107
896
  side,
1108
- className: styles$g.contentDefault,
897
+ className: styles$f.contentDefault,
1109
898
  position: "popper",
1110
899
  variant: variant !== "surface" ? "soft" : "solid",
1111
900
  color: itemSeverityColor,
@@ -1218,7 +1007,7 @@ const MultiSelect = memo(
1218
1007
  );
1219
1008
  })
1220
1009
  );
1221
- const styles$f = {
1010
+ const styles$e = {
1222
1011
  "default": "_default_u936h_1"
1223
1012
  };
1224
1013
  const _Switch = forwardRef(function Switch2({ className, severity = "primary", icon, defaultChecked = false, onCheckedChange, ...rest }, ref) {
@@ -1246,7 +1035,7 @@ const _Switch = forwardRef(function Switch2({ className, severity = "primary", i
1246
1035
  /* @__PURE__ */ jsx(
1247
1036
  Switch$1,
1248
1037
  {
1249
- className: classNames("overmap-switch", className, styles$f.default),
1038
+ className: classNames("overmap-switch", className, styles$e.default),
1250
1039
  ref: ref ? ref : fallbackRef,
1251
1040
  color: severityColor,
1252
1041
  radius: "full",
@@ -1264,7 +1053,7 @@ const right$2 = "_right_1onyo_7";
1264
1053
  const resizeHandle$1 = "_resizeHandle_1onyo_10";
1265
1054
  const left$2 = "_left_1onyo_13";
1266
1055
  const overlay = "_overlay_1onyo_33";
1267
- const styles$e = {
1056
+ const styles$d = {
1268
1057
  sidebarContent,
1269
1058
  right: right$2,
1270
1059
  resizeHandle: resizeHandle$1,
@@ -1297,13 +1086,13 @@ const _Sidebar = forwardRef(function Sidebar2({
1297
1086
  setContainer(tempContainer);
1298
1087
  }, [containerSelector]);
1299
1088
  return /* @__PURE__ */ jsx(RadixDialogPrimitive.Root, { open, modal, children: /* @__PURE__ */ jsxs(RadixDialogPrimitive.Portal, { container, children: [
1300
- overlay2 && /* @__PURE__ */ jsx(RadixDialogPrimitive.Overlay, { className: classNames(styles$e.overlay) }),
1089
+ overlay2 && /* @__PURE__ */ jsx(RadixDialogPrimitive.Overlay, { className: classNames(styles$d.overlay) }),
1301
1090
  /* @__PURE__ */ jsx(
1302
1091
  RadixDialogPrimitive.Content,
1303
1092
  {
1304
- className: classNames("overmap-sidebar", "rt-DialogContent", styles$e.sidebarContent, {
1305
- [styles$e.left]: isLeft,
1306
- [styles$e.right]: isRight
1093
+ className: classNames("overmap-sidebar", "rt-DialogContent", styles$d.sidebarContent, {
1094
+ [styles$d.left]: isLeft,
1095
+ [styles$d.right]: isRight
1307
1096
  }),
1308
1097
  ref,
1309
1098
  asChild: true,
@@ -1315,7 +1104,7 @@ const _Sidebar = forwardRef(function Sidebar2({
1315
1104
  maxWidth,
1316
1105
  defaultSize: defaultSidebarSize,
1317
1106
  enable: { right: resizable2 && isLeft, left: resizable2 && isRight },
1318
- handleClasses: { left: styles$e.resizeHandle, right: styles$e.resizeHandle },
1107
+ handleClasses: { left: styles$d.resizeHandle, right: styles$d.resizeHandle },
1319
1108
  handleComponent: {
1320
1109
  right: /* @__PURE__ */ jsx(DragHandleDots2Icon, {}),
1321
1110
  left: /* @__PURE__ */ jsx(DragHandleDots2Icon, {})
@@ -1337,7 +1126,7 @@ const exitActive = "_exitActive_1iy9c_22";
1337
1126
  const exitDone = "_exitDone_1iy9c_32";
1338
1127
  const resizable$1 = "_resizable_1iy9c_41";
1339
1128
  const slideOutOverlay = "_slideOutOverlay_1iy9c_47";
1340
- const styles$d = {
1129
+ const styles$c = {
1341
1130
  outerContent,
1342
1131
  enter,
1343
1132
  right: right$1,
@@ -1381,23 +1170,23 @@ const SlideOut = memo(function SlideOut2({
1381
1170
  {
1382
1171
  in: open,
1383
1172
  classNames: {
1384
- enter: styles$d.enter,
1385
- enterActive: styles$d.enterActive,
1386
- exitActive: styles$d.exitActive,
1387
- exitDone: styles$d.exitDone
1173
+ enter: styles$c.enter,
1174
+ enterActive: styles$c.enterActive,
1175
+ exitActive: styles$c.exitActive,
1176
+ exitDone: styles$c.exitDone
1388
1177
  },
1389
1178
  timeout: TRANSITION_DURATION$1,
1390
1179
  nodeRef: contentRef,
1391
1180
  unmountOnExit: true,
1392
1181
  mountOnEnter: true,
1393
1182
  children: /* @__PURE__ */ jsxs(Fragment, { children: [
1394
- overlay2 && /* @__PURE__ */ jsx("div", { className: classNames("overamp-slide-out-overlay", styles$d.slideOutOverlay) }),
1183
+ overlay2 && /* @__PURE__ */ jsx("div", { className: classNames("overamp-slide-out-overlay", styles$c.slideOutOverlay) }),
1395
1184
  /* @__PURE__ */ jsx(DismissableLayer, { disableOutsidePointerEvents: modal, asChild: true, ...rest, children: /* @__PURE__ */ jsx(
1396
1185
  Flex$1,
1397
1186
  {
1398
- className: classNames("overmap-slide-out", className, styles$d.outerContent, {
1399
- [styles$d.left]: isSideLeft,
1400
- [styles$d.right]: isSideRight
1187
+ className: classNames("overmap-slide-out", className, styles$c.outerContent, {
1188
+ [styles$c.left]: isSideLeft,
1189
+ [styles$c.right]: isSideRight
1401
1190
  }),
1402
1191
  style: { "--slide-out-width": `${slideOutWidth}px` },
1403
1192
  height: "100%",
@@ -1411,7 +1200,7 @@ const SlideOut = memo(function SlideOut2({
1411
1200
  children: /* @__PURE__ */ jsx(
1412
1201
  Resizable,
1413
1202
  {
1414
- className: styles$d.resizable,
1203
+ className: styles$c.resizable,
1415
1204
  defaultSize: { width: slideOutWidth, height: "100%" },
1416
1205
  onResize: handleResize,
1417
1206
  enable: { right: resizable2 && isSideLeft, left: resizable2 && isSideRight },
@@ -1433,7 +1222,7 @@ const noLeftIcon = "_noLeftIcon_1octa_14";
1433
1222
  const noRightIcon = "_noRightIcon_1octa_18";
1434
1223
  const ghost$1 = "_ghost_1octa_22";
1435
1224
  const charCount$1 = "_charCount_1octa_40";
1436
- const styles$c = {
1225
+ const styles$b = {
1437
1226
  accommodateCharCount,
1438
1227
  wrapper: wrapper$2,
1439
1228
  "default": "_default_1octa_10",
@@ -1460,9 +1249,9 @@ const _Input = forwardRef(function Input2({
1460
1249
  return /* @__PURE__ */ jsxs(
1461
1250
  TextField.Root,
1462
1251
  {
1463
- className: classNames(styles$c.wrapper, className, {
1464
- [styles$c.ghost]: variant === "ghost",
1465
- [styles$c.accommodateCharCount]: displayInputLength
1252
+ className: classNames(styles$b.wrapper, className, {
1253
+ [styles$b.ghost]: variant === "ghost",
1254
+ [styles$b.accommodateCharCount]: displayInputLength
1466
1255
  }),
1467
1256
  size: computedSize,
1468
1257
  variant: variant !== "ghost" ? variant : void 0,
@@ -1472,9 +1261,9 @@ const _Input = forwardRef(function Input2({
1472
1261
  /* @__PURE__ */ jsx(
1473
1262
  TextField.Input,
1474
1263
  {
1475
- className: classNames(styles$c.default, {
1476
- [styles$c.noLeftIcon]: !leftSlot,
1477
- [styles$c.noRightIcon]: !rightSlot
1264
+ className: classNames(styles$b.default, {
1265
+ [styles$b.noLeftIcon]: !leftSlot,
1266
+ [styles$b.noRightIcon]: !rightSlot
1478
1267
  }),
1479
1268
  ref,
1480
1269
  value,
@@ -1485,7 +1274,7 @@ const _Input = forwardRef(function Input2({
1485
1274
  }
1486
1275
  ),
1487
1276
  rightSlot && /* @__PURE__ */ jsx(TextField.Slot, { children: rightSlot }),
1488
- displayInputLength && /* @__PURE__ */ jsx(Text$2, { as: "p", className: styles$c.charCount, size: "1", color: "gray", children: rest.maxLength !== void 0 ? `${valueAsString == null ? void 0 : valueAsString.length}/${rest.maxLength}` : `${valueAsString == null ? void 0 : valueAsString.length}` })
1277
+ displayInputLength && /* @__PURE__ */ jsx(Text$1, { as: "p", className: styles$b.charCount, size: "1", color: "gray", children: rest.maxLength !== void 0 ? `${valueAsString == null ? void 0 : valueAsString.length}/${rest.maxLength}` : `${valueAsString == null ? void 0 : valueAsString.length}` })
1489
1278
  ]
1490
1279
  }
1491
1280
  );
@@ -1501,7 +1290,7 @@ const IconColorUtility = memo(function IconColorUtility2({
1501
1290
  () => ({
1502
1291
  "data-accent-color": severity && severityColor ? severityColor : color ? color : "gray",
1503
1292
  style: {
1504
- color: "var(--accent-a9)"
1293
+ color: "var(--accent-a11)"
1505
1294
  }
1506
1295
  }),
1507
1296
  [color, severity, severityColor]
@@ -1509,7 +1298,7 @@ const IconColorUtility = memo(function IconColorUtility2({
1509
1298
  return cloneElement(children, { ...childProps });
1510
1299
  });
1511
1300
  const wrapper$1 = "_wrapper_tmtz0_1";
1512
- const styles$b = {
1301
+ const styles$a = {
1513
1302
  wrapper: wrapper$1
1514
1303
  };
1515
1304
  const _Popover = forwardRef(function Popover2({ className, trigger, open, onOpenChange, defaultOpen = false, modal = false, children, ...rest }, ref) {
@@ -1519,7 +1308,7 @@ const _Popover = forwardRef(function Popover2({ className, trigger, open, onOpen
1519
1308
  Popover$1.Content,
1520
1309
  {
1521
1310
  ref,
1522
- className: classNames("overmap-popover", className, styles$b.wrapper),
1311
+ className: classNames("overmap-popover", className, styles$a.wrapper),
1523
1312
  ...rest,
1524
1313
  children: children(Popover$1.Close)
1525
1314
  }
@@ -1534,7 +1323,7 @@ const right = "_right_1ssf2_18";
1534
1323
  const resizable = "_resizable_1ssf2_23";
1535
1324
  const resizeHandle = "_resizeHandle_1ssf2_28";
1536
1325
  const panelMainContent = "_panelMainContent_1ssf2_48";
1537
- const styles$a = {
1326
+ const styles$9 = {
1538
1327
  wrapper,
1539
1328
  panelContent,
1540
1329
  left,
@@ -1720,7 +1509,7 @@ const LeftAndRightPanels = memo(function Panels({
1720
1509
  return /* @__PURE__ */ jsxs(
1721
1510
  Flex$1,
1722
1511
  {
1723
- className: styles$a.wrapper,
1512
+ className: styles$9.wrapper,
1724
1513
  style: { minWidth: `${leftMinWidth + rightMinWidth}px` },
1725
1514
  ref: wrapperRef,
1726
1515
  width: "100%",
@@ -1742,7 +1531,7 @@ const LeftAndRightPanels = memo(function Panels({
1742
1531
  Box,
1743
1532
  {
1744
1533
  ref: leftPanelRef,
1745
- className: classNames(styles$a.panelContent, styles$a.left),
1534
+ className: classNames(styles$9.panelContent, styles$9.left),
1746
1535
  style: leftPanelTransitionStyles[state],
1747
1536
  width: "auto",
1748
1537
  height: "100%",
@@ -1751,7 +1540,7 @@ const LeftAndRightPanels = memo(function Panels({
1751
1540
  children: /* @__PURE__ */ jsx(
1752
1541
  Resizable,
1753
1542
  {
1754
- className: styles$a.resizable,
1543
+ className: styles$9.resizable,
1755
1544
  size: {
1756
1545
  width: leftPanelWidth,
1757
1546
  height: "100%"
@@ -1760,7 +1549,7 @@ const LeftAndRightPanels = memo(function Panels({
1760
1549
  enable: { right: (resizeable == null ? void 0 : resizeable.left) !== void 0 ? resizeable.left : true },
1761
1550
  minWidth: leftMinWidth,
1762
1551
  maxWidth: leftPanelMaxWidth,
1763
- handleClasses: { right: classNames(styles$a.resizeHandle, styles$a.left) },
1552
+ handleClasses: { right: classNames(styles$9.resizeHandle, styles$9.left) },
1764
1553
  handleComponent: {
1765
1554
  right: /* @__PURE__ */ jsx(DragHandleDots2Icon, { height: "14px", width: "14px" })
1766
1555
  },
@@ -1771,7 +1560,7 @@ const LeftAndRightPanels = memo(function Panels({
1771
1560
  )
1772
1561
  }
1773
1562
  ),
1774
- /* @__PURE__ */ jsx("div", { className: styles$a.panelMainContent, children }),
1563
+ /* @__PURE__ */ jsx("div", { className: styles$9.panelMainContent, children }),
1775
1564
  /* @__PURE__ */ jsx(
1776
1565
  Transition,
1777
1566
  {
@@ -1785,7 +1574,7 @@ const LeftAndRightPanels = memo(function Panels({
1785
1574
  Box,
1786
1575
  {
1787
1576
  ref: rightPanelRef,
1788
- className: classNames(styles$a.panelContent, styles$a.right),
1577
+ className: classNames(styles$9.panelContent, styles$9.right),
1789
1578
  style: rightPanelTransitionStyles[state],
1790
1579
  width: "auto",
1791
1580
  height: "100%",
@@ -1794,13 +1583,13 @@ const LeftAndRightPanels = memo(function Panels({
1794
1583
  children: /* @__PURE__ */ jsx(
1795
1584
  Resizable,
1796
1585
  {
1797
- className: styles$a.resizable,
1586
+ className: styles$9.resizable,
1798
1587
  size: { width: rightPanelWidth, height: "100%" },
1799
1588
  onResizeStop: handleResizeRightPanel,
1800
1589
  enable: { left: (resizeable == null ? void 0 : resizeable.right) !== void 0 ? resizeable.right : true },
1801
1590
  minWidth: rightMinWidth,
1802
1591
  maxWidth: rightPanelMaxWidth,
1803
- handleClasses: { left: classNames(styles$a.resizeHandle, styles$a.right) },
1592
+ handleClasses: { left: classNames(styles$9.resizeHandle, styles$9.right) },
1804
1593
  handleComponent: { left: /* @__PURE__ */ jsx(DragHandleDots2Icon, { height: "14px", width: "14px" }) },
1805
1594
  children: rightPanel
1806
1595
  }
@@ -1818,7 +1607,7 @@ const pageTitle = "_pageTitle_spfw7_12";
1818
1607
  const buttonContainer = "_buttonContainer_spfw7_17";
1819
1608
  const optionsButtonContainer = "_optionsButtonContainer_spfw7_22";
1820
1609
  const optionsButton = "_optionsButton_spfw7_22";
1821
- const styles$9 = {
1610
+ const styles$8 = {
1822
1611
  multiPagePopover,
1823
1612
  pageTitle,
1824
1613
  buttonContainer,
@@ -1832,7 +1621,7 @@ function getMultiPagePopoverContent(popoverOption, setMultiPagePopoverContent, d
1832
1621
  const optionButtons = popoverOption.options.map((option, i) => /* @__PURE__ */ jsx(
1833
1622
  Button2,
1834
1623
  {
1835
- className: classNames(styles$9.optionsButton, option.buttonClassName),
1624
+ className: classNames(styles$8.optionsButton, option.buttonClassName),
1836
1625
  variant: "ghost",
1837
1626
  radius: "large",
1838
1627
  style: {
@@ -1848,12 +1637,12 @@ function getMultiPagePopoverContent(popoverOption, setMultiPagePopoverContent, d
1848
1637
  `${option.value}-page-${page}-button-${i}`
1849
1638
  ));
1850
1639
  return /* @__PURE__ */ jsxs(Fragment, { children: [
1851
- popoverOption.title && /* @__PURE__ */ jsx("div", { className: styles$9.pageTitle, children: popoverOption.title }),
1640
+ popoverOption.title && /* @__PURE__ */ jsx("div", { className: styles$8.pageTitle, children: popoverOption.title }),
1852
1641
  popoverOption.content,
1853
1642
  /* @__PURE__ */ jsx(
1854
1643
  "div",
1855
1644
  {
1856
- className: classNames(styles$9.optionsButtonContainer, popoverOption.buttonsContainerClassName),
1645
+ className: classNames(styles$8.optionsButtonContainer, popoverOption.buttonsContainerClassName),
1857
1646
  style: {
1858
1647
  flexDirection: direction === "vertical" ? "column" : "row"
1859
1648
  },
@@ -1871,7 +1660,7 @@ const _MultiPagePopover = forwardRef(function MultiPagePopover2({ page, classNam
1871
1660
  return /* @__PURE__ */ jsx(
1872
1661
  Popover,
1873
1662
  {
1874
- className: classNames(styles$9.multiPagePopover, className),
1663
+ className: classNames(styles$8.multiPagePopover, className),
1875
1664
  ref,
1876
1665
  onOpenAutoFocus: resetPopoverContent,
1877
1666
  onCloseAutoFocus: resetPopoverContent,
@@ -1883,7 +1672,7 @@ const _MultiPagePopover = forwardRef(function MultiPagePopover2({ page, classNam
1883
1672
  const MultiPagePopover = React.memo(_MultiPagePopover);
1884
1673
  const charCount = "_charCount_1lz28_1";
1885
1674
  const ghost = "_ghost_1lz28_5";
1886
- const styles$8 = {
1675
+ const styles$7 = {
1887
1676
  charCount,
1888
1677
  ghost
1889
1678
  };
@@ -1919,7 +1708,7 @@ const _TextArea = forwardRef(function TextArea2({
1919
1708
  TextArea$1,
1920
1709
  {
1921
1710
  className: classNames("overmap-textarea", className, {
1922
- [styles$8.ghost]: variant === "ghost"
1711
+ [styles$7.ghost]: variant === "ghost"
1923
1712
  }),
1924
1713
  style: { resize },
1925
1714
  variant: variant !== "ghost" ? variant : void 0,
@@ -1929,7 +1718,7 @@ const _TextArea = forwardRef(function TextArea2({
1929
1718
  ...rest
1930
1719
  }
1931
1720
  ),
1932
- displayInputLength && /* @__PURE__ */ jsx(Text$2, { as: "p", className: styles$8.charCount, color: infoColor, align: "right", children: displayInputLengthValue })
1721
+ displayInputLength && /* @__PURE__ */ jsx(Text$1, { as: "p", className: styles$7.charCount, color: infoColor, align: "right", children: displayInputLengthValue })
1933
1722
  ] });
1934
1723
  });
1935
1724
  const TextArea = memo(_TextArea);
@@ -1975,7 +1764,7 @@ const _ToggleGroup = forwardRef(function ToggleGroup2({
1975
1764
  );
1976
1765
  });
1977
1766
  const ToggleGroup = memo(_ToggleGroup);
1978
- const styles$7 = {
1767
+ const styles$6 = {
1979
1768
  "default": "_default_xqvoc_1"
1980
1769
  };
1981
1770
  const Root2 = memo(
@@ -1983,7 +1772,7 @@ const Root2 = memo(
1983
1772
  return /* @__PURE__ */ jsx(
1984
1773
  Root$2,
1985
1774
  {
1986
- className: classNames(className, "overmap-toolbar", styles$7.default),
1775
+ className: classNames(className, "overmap-toolbar", styles$6.default),
1987
1776
  ref,
1988
1777
  asChild: true,
1989
1778
  ...rest,
@@ -2024,7 +1813,7 @@ const actionButton = "_actionButton_1i6bp_20";
2024
1813
  const ToastRoot = "_ToastRoot_1i6bp_24";
2025
1814
  const slideIn = "_slideIn_1i6bp_1";
2026
1815
  const swipeOut = "_swipeOut_1i6bp_1";
2027
- const styles$6 = {
1816
+ const styles$5 = {
2028
1817
  ToastViewport,
2029
1818
  actionButton,
2030
1819
  ToastRoot,
@@ -2042,7 +1831,7 @@ const _Toast = forwardRef(function Toast2({ title, description, icon, severity =
2042
1831
  },
2043
1832
  [onClose]
2044
1833
  );
2045
- return /* @__PURE__ */ jsx(RadixToast.Root, { asChild: true, ref, ...rest, open, type: sensitivity, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsx(Callout.Root, { className: styles$6.ToastRoot, variant: "surface", color, size, children: /* @__PURE__ */ jsxs(Flex$1, { width: "100%", align: "center", gap: "4", justify: "between", children: [
1834
+ return /* @__PURE__ */ jsx(RadixToast.Root, { asChild: true, ref, ...rest, open, type: sensitivity, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsx(Callout.Root, { className: styles$5.ToastRoot, variant: "surface", color, size, children: /* @__PURE__ */ jsxs(Flex$1, { width: "100%", align: "center", gap: "4", justify: "between", children: [
2046
1835
  /* @__PURE__ */ jsxs(Flex$1, { align: "center", gap: "3", children: [
2047
1836
  /* @__PURE__ */ jsx(Callout.Icon, { children: icon }),
2048
1837
  /* @__PURE__ */ jsxs(Flex$1, { direction: "column", gap: "2", children: [
@@ -2050,7 +1839,7 @@ const _Toast = forwardRef(function Toast2({ title, description, icon, severity =
2050
1839
  /* @__PURE__ */ jsx(RadixToast.Title, { asChild: true, children: /* @__PURE__ */ jsx(Callout.Text, { size: "3", weight: "medium", children: title }) }),
2051
1840
  /* @__PURE__ */ jsx(RadixToast.Description, { asChild: true, children: /* @__PURE__ */ jsx(Callout.Text, { children: description }) })
2052
1841
  ] }),
2053
- action && /* @__PURE__ */ jsx(RadixToast.Action, { className: styles$6.actionButton, altText: action.altText, asChild: true, children: action.content })
1842
+ action && /* @__PURE__ */ jsx(RadixToast.Action, { className: styles$5.actionButton, altText: action.altText, asChild: true, children: action.content })
2054
1843
  ] })
2055
1844
  ] }),
2056
1845
  /* @__PURE__ */ jsx(RadixToast.Close, { asChild: true, children: /* @__PURE__ */ jsx(IconButton, { "aria-label": "Close", variant: "ghost", severity, children: /* @__PURE__ */ jsx(Cross2Icon, {}) }) })
@@ -2126,11 +1915,11 @@ const ToastProvider = memo(function ToastContextProvider({
2126
1915
  }, []);
2127
1916
  return /* @__PURE__ */ jsx(ToastContext.Provider, { value: toastContextValue, children: /* @__PURE__ */ jsxs(ToastProvider$1, { ...rest, children: [
2128
1917
  children,
2129
- /* @__PURE__ */ jsx(ToastViewport$1, { className: classNames(className, styles$6.ToastViewport), hotkey }),
1918
+ /* @__PURE__ */ jsx(ToastViewport$1, { className: classNames(className, styles$5.ToastViewport), hotkey }),
2130
1919
  toasts.map(({ id, onClose, ...toastProps }) => /* @__PURE__ */ jsx(Toast, { ...toastProps, onClose: () => handleCloseToast(id, 0, onClose) }, id))
2131
1920
  ] }) });
2132
1921
  });
2133
- const styles$5 = {
1922
+ const styles$4 = {
2134
1923
  "default": "_default_1odpt_1"
2135
1924
  };
2136
1925
  const Tooltip = memo(
@@ -2138,7 +1927,7 @@ const Tooltip = memo(
2138
1927
  return /* @__PURE__ */ jsx(
2139
1928
  Tooltip$1,
2140
1929
  {
2141
- className: classNames("overmap-tooltip", className, styles$5.default),
1930
+ className: classNames("overmap-tooltip", className, styles$4.default),
2142
1931
  ref,
2143
1932
  content: /* @__PURE__ */ jsx(Flex$1, { align: "center", gap: "1", width: "max-content", height: "max-content", justify: "center", children: content }),
2144
1933
  ...rest,
@@ -2148,18 +1937,18 @@ const Tooltip = memo(
2148
1937
  })
2149
1938
  );
2150
1939
  const noWrap = "_noWrap_1wpa5_1";
2151
- const styles$4 = {
1940
+ const styles$3 = {
2152
1941
  noWrap
2153
1942
  };
2154
- const Text$1 = memo(
1943
+ const Text = memo(
2155
1944
  forwardRef(({ className, noWrap: noWrap2, severity, as, ...props }, ref) => {
2156
1945
  const color = useSeverityColor(severity);
2157
1946
  return /* @__PURE__ */ jsx(
2158
- Text$2,
1947
+ Text$1,
2159
1948
  {
2160
1949
  ref,
2161
1950
  as,
2162
- className: classNames(className, { [styles$4.noWrap]: noWrap2 }),
1951
+ className: classNames(className, { [styles$3.noWrap]: noWrap2 }),
2163
1952
  color,
2164
1953
  ...props
2165
1954
  }
@@ -2173,60 +1962,6 @@ const DefaultTheme = memo(
2173
1962
  return /* @__PURE__ */ jsx(Theme, { panelBackground, radius: radius2, ref, ...rest });
2174
1963
  })
2175
1964
  );
2176
- const light = "_light_1u8fs_1";
2177
- const bold = "_bold_1u8fs_8";
2178
- const full = "_full_1u8fs_15";
2179
- const Text = "_Text_1u8fs_22";
2180
- const styles$3 = {
2181
- light,
2182
- bold,
2183
- full,
2184
- Text
2185
- };
2186
- const SeparatorSizeMapping = {
2187
- "1": "max-content",
2188
- "2": "max-content",
2189
- "3": "max-content",
2190
- "4": "100%"
2191
- };
2192
- const _Separator = forwardRef(function Separator2({
2193
- className,
2194
- severity = "info",
2195
- textWeight = "light",
2196
- gap = "1",
2197
- text,
2198
- orientation = "horizontal",
2199
- size,
2200
- weight = "medium",
2201
- ...rest
2202
- }, ref) {
2203
- const computedSizing = useResponsiveMapping(size, SeparatorSizeMapping);
2204
- const severityColor = useSeverityColor(severity);
2205
- return /* @__PURE__ */ jsxs(
2206
- Flex$1,
2207
- {
2208
- className: classNames("overmap-separator", className, {
2209
- [styles$3.light]: weight === "light",
2210
- [styles$3.bold]: weight === "bold",
2211
- [styles$3.full]: weight === "full"
2212
- }),
2213
- ref,
2214
- width: orientation === "horizontal" ? computedSizing : "max-content",
2215
- height: orientation === "vertical" ? computedSizing : "max-content",
2216
- direction: orientation === "vertical" ? "column" : "row",
2217
- align: "center",
2218
- gap,
2219
- children: [
2220
- /* @__PURE__ */ jsx(Separator$1, { size, orientation, color: severityColor, ...rest }),
2221
- text && /* @__PURE__ */ jsxs(Fragment, { children: [
2222
- /* @__PURE__ */ jsx(Text$2, { className: styles$3.Text, as: "span", size: "1", weight: textWeight, color: severityColor, children: text }),
2223
- /* @__PURE__ */ jsx(Separator$1, { size, orientation, color: severityColor, ...rest })
2224
- ] })
2225
- ]
2226
- }
2227
- );
2228
- });
2229
- const Separator = memo(_Separator);
2230
1965
  function _extends() {
2231
1966
  _extends = Object.assign ? Object.assign.bind() : function(target) {
2232
1967
  for (var i = 1; i < arguments.length; i++) {
@@ -3105,6 +2840,9 @@ const _Table = forwardRef(function Table2(props, ref) {
3105
2840
  const tableSelect = useRowSelect(
3106
2841
  tableData,
3107
2842
  {
2843
+ // Don't know what the type is for these parameters. Not specified in the React Table Library docs
2844
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2845
+ // @ts-ignore
3108
2846
  onChange: (_action, state) => {
3109
2847
  setSelected(state.ids);
3110
2848
  }
@@ -3254,8 +2992,8 @@ const _Table = forwardRef(function Table2(props, ref) {
3254
2992
  }, [rowsPerPage, rows.length, numRowsPerPage, pagination, showPageNavigation]);
3255
2993
  return /* @__PURE__ */ jsxs("div", { className: classNames({ [styles$1.tableContainer]: showContainer }), children: [
3256
2994
  (!!title || !!description) && /* @__PURE__ */ jsxs("div", { className: styles$1.headerContainer, children: [
3257
- !!title && /* @__PURE__ */ jsx(Text$1, { weight: "bold", size: "7", children: title }),
3258
- !!description && /* @__PURE__ */ jsx(Text$1, { as: "div", children: description })
2995
+ !!title && /* @__PURE__ */ jsx(Text, { weight: "bold", size: "7", children: title }),
2996
+ !!description && /* @__PURE__ */ jsx(Text, { as: "div", children: description })
3259
2997
  ] }),
3260
2998
  showTopBar && /* @__PURE__ */ jsxs(Flex$1, { justify: "between", className: styles$1.tableTopContainer, children: [
3261
2999
  /* @__PURE__ */ jsxs(Flex$1, { gap: "2", children: [
@@ -3339,7 +3077,7 @@ const _Table = forwardRef(function Table2(props, ref) {
3339
3077
  cellClassName,
3340
3078
  row[column.id].className
3341
3079
  ),
3342
- children: /* @__PURE__ */ jsx(Text$1, { children: row[column.id].label })
3080
+ children: /* @__PURE__ */ jsx(Text, { children: row[column.id].label })
3343
3081
  },
3344
3082
  i
3345
3083
  ))
@@ -3584,15 +3322,10 @@ export {
3584
3322
  Code,
3585
3323
  ConfirmEditInput,
3586
3324
  Container,
3325
+ ContextMenu,
3587
3326
  DefaultTheme,
3588
3327
  Dialog,
3589
- DropdownItemMenu,
3590
3328
  DropdownMenu,
3591
- DropdownMenuItemGroup,
3592
- DropdownMenuMultiSelectGroup,
3593
- DropdownMenuSelectGroup,
3594
- DropdownMenuSubMenuGroup,
3595
- DropdownMultiSelect,
3596
3329
  DropdownSelect,
3597
3330
  Em,
3598
3331
  Flex,
@@ -3604,7 +3337,7 @@ export {
3604
3337
  IconColorUtility,
3605
3338
  Input,
3606
3339
  Inset2 as Inset,
3607
- Kbd2 as Kbd,
3340
+ Kbd,
3608
3341
  LeftAndRightPanels,
3609
3342
  Link2 as Link,
3610
3343
  MultiPagePopover,
@@ -3628,7 +3361,7 @@ export {
3628
3361
  Switch,
3629
3362
  Table,
3630
3363
  Tabs,
3631
- Text$1 as Text,
3364
+ Text,
3632
3365
  TextArea,
3633
3366
  TextField2 as TextField,
3634
3367
  Theme2 as Theme,
@@ -3644,13 +3377,9 @@ export {
3644
3377
  updateThemeAppearanceClass,
3645
3378
  useAlertDialog,
3646
3379
  useDiscardAlertDialog,
3647
- useKeyboardShortcut,
3648
3380
  useSeverityColor,
3649
- useStopEventPropagation,
3650
- useTextFilter,
3651
3381
  useThemeContext2 as useThemeContext,
3652
3382
  useToast,
3653
- useViewportSize,
3654
- useWrapCallbackInDialogClose
3383
+ useViewportSize
3655
3384
  };
3656
3385
  //# sourceMappingURL=blocks.js.map