@overmap-ai/blocks 1.0.25-component-forms.0 → 1.0.25-export-error-fixes.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/Badge/Badge.d.ts +1 -1
- package/dist/Badge/index.d.ts +1 -1
- package/dist/Badge/typings.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseItemGroup/BaseItemGroup.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseItemGroup/index.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseItemGroup/typings.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseMultiSelectGroup/BaseMultiSelectGroup.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseMultiSelectGroup/index.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseMultiSelectGroup/typings.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseSelectGroup/BaseSelectGroup.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseSelectGroup/index.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseSelectGroup/typings.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseSubMenuGroup/BaseSubMenuGroup.d.ts +2 -2
- package/dist/BaseMenuGroups/BaseSubMenuGroup/index.d.ts +1 -1
- package/dist/BaseMenuGroups/BaseSubMenuGroup/typings.d.ts +1 -1
- package/dist/BaseMenuGroups/index.d.ts +1 -1
- package/dist/BaseMenuGroups/typings.d.ts +2 -7
- package/dist/BaseMenuGroups/utils.d.ts +1 -1
- package/dist/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/ButtonGroup/typings.d.ts +1 -1
- package/dist/Buttons/Button.d.ts +1 -1
- package/dist/Buttons/IconButton.d.ts +1 -1
- package/dist/Buttons/constants.d.ts +1 -1
- package/dist/Buttons/index.d.ts +4 -4
- package/dist/Buttons/typings.d.ts +1 -1
- package/dist/Checkbox/typings.d.ts +0 -2
- package/dist/ContextActionMenu/ContextActionMenu.d.ts +8 -0
- package/dist/ContextActionMenu/index.d.ts +1 -0
- package/dist/ContextMenu/ContextMenuGroups.d.ts +6 -0
- package/dist/ContextMenu/Root.d.ts +24 -0
- package/dist/ContextMenu/index.d.ts +9 -0
- package/dist/ContextMultiSelectMenu/ContextMultiSelectMenu.d.ts +9 -0
- package/dist/ContextMultiSelectMenu/index.d.ts +1 -0
- package/dist/ContextSelectMenu/ContextSelectMenu.d.ts +9 -0
- package/dist/ContextSelectMenu/index.d.ts +1 -0
- package/dist/DropdownItemMenu/DropdownItemMenu.d.ts +3 -2
- package/dist/DropdownItemMenu/index.d.ts +0 -1
- package/dist/DropdownMenu/DropdownMenu.d.ts +3 -2
- package/dist/DropdownMenu/index.d.ts +1 -3
- package/dist/DropdownMultiSelect/DropdownMultiSelect.d.ts +2 -1
- package/dist/DropdownMultiSelect/index.d.ts +0 -1
- package/dist/DropdownSelect/DropdownSelect.d.ts +3 -2
- package/dist/DropdownSelect/index.d.ts +1 -2
- package/dist/IconColorUtility/IconColorUtility.d.ts +1 -1
- package/dist/Input/Input.d.ts +1 -1
- package/dist/Input/typings.d.ts +1 -1
- package/dist/Layout/SlideOutOverlay.d.ts +1 -1
- package/dist/Layout/SlideOutTrigger.d.ts +1 -0
- package/dist/Popover/Popover.d.ts +1 -1
- package/dist/Popover/index.d.ts +1 -0
- package/dist/Select/index.d.ts +1 -1
- package/dist/Separator/Separator.d.ts +1 -1
- package/dist/Separator/index.d.ts +1 -1
- package/dist/Separator/typings.d.ts +1 -1
- package/dist/SlideOut/SlideOutV2.d.ts +1 -1
- package/dist/SlideOutV3/SlideOutV3.d.ts +7 -2
- package/dist/Switch/Switch.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/typings.d.ts +1 -1
- package/dist/TextArea/TextArea.d.ts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/typings.d.ts +1 -1
- package/dist/Toast/typings.d.ts +1 -1
- package/dist/ToggleGroup/ToggleGroup.d.ts +1 -1
- package/dist/ToggleGroup/index.d.ts +1 -1
- package/dist/blocks.js +203 -49
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +200 -46
- package/dist/blocks.umd.cjs.map +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/style.css +27 -22
- package/dist/typings.d.ts +2 -2
- package/package.json +104 -104
package/dist/blocks.umd.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(global, factory) {
|
|
2
|
-
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react/jsx-runtime"), require("@radix-ui/themes"), require("react"), require("react-responsive"), require("@radix-ui/react-icons"), require("@radix-ui/react-dropdown-menu"), require("react-device-detect"), require("@radix-ui/react-dialog"), require("re-resizable"), require("react-transition-group"), require("react-dom"), require("@radix-ui/react-slot"), require("@radix-ui/react-dismissable-layer"), require("@radix-ui/react-toggle-group"), require("@radix-ui/react-toolbar"), require("@radix-ui/react-toast"), require("react-error-boundary"), require("feather-icons-react"), require("@table-library/react-table-library/table.js"), require("@table-library/react-table-library/theme.js"), require("@table-library/react-table-library/sort.js"), require("@table-library/react-table-library/select.js"), require("@table-library/react-table-library/pagination.js")) : typeof define === "function" && define.amd ? define(["exports", "react/jsx-runtime", "@radix-ui/themes", "react", "react-responsive", "@radix-ui/react-icons", "@radix-ui/react-dropdown-menu", "react-device-detect", "@radix-ui/react-dialog", "re-resizable", "react-transition-group", "react-dom", "@radix-ui/react-slot", "@radix-ui/react-dismissable-layer", "@radix-ui/react-toggle-group", "@radix-ui/react-toolbar", "@radix-ui/react-toast", "react-error-boundary", "feather-icons-react", "@table-library/react-table-library/table.js", "@table-library/react-table-library/theme.js", "@table-library/react-table-library/sort.js", "@table-library/react-table-library/select.js", "@table-library/react-table-library/pagination.js"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.blocks = {}, global.jsxRuntime, global.themes, global.React, global.reactResponsive, global.reactIcons, global.RadixDropdownMenu, global.reactDeviceDetect, global.RadixDialogPrimitive, global.reResizable, global.reactTransitionGroup, global.ReactDOM, global.reactSlot, global.reactDismissableLayer, global.reactToggleGroup, global.reactToolbar, global.RadixToast, global.reactErrorBoundary, global.FeatherIcon, global.table_js, global.theme_js, global.sort_js, global.select_js, global.pagination_js));
|
|
3
|
-
})(this, function(exports2, jsxRuntime, themes, React, reactResponsive, reactIcons, RadixDropdownMenu, reactDeviceDetect, RadixDialogPrimitive, reResizable, reactTransitionGroup, ReactDOM, reactSlot, reactDismissableLayer, reactToggleGroup, reactToolbar, RadixToast, reactErrorBoundary, FeatherIcon, table_js, theme_js, sort_js, select_js, pagination_js) {
|
|
2
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react/jsx-runtime"), require("@radix-ui/themes"), require("react"), require("react-responsive"), require("@radix-ui/react-icons"), require("@radix-ui/react-context-menu"), require("@radix-ui/react-dropdown-menu"), require("react-device-detect"), require("@radix-ui/react-dialog"), require("re-resizable"), require("react-transition-group"), require("react-dom"), require("@radix-ui/react-slot"), require("@radix-ui/react-dismissable-layer"), require("@radix-ui/react-toggle-group"), require("@radix-ui/react-toolbar"), require("@radix-ui/react-toast"), require("react-error-boundary"), require("feather-icons-react"), require("@table-library/react-table-library/table.js"), require("@table-library/react-table-library/theme.js"), require("@table-library/react-table-library/sort.js"), require("@table-library/react-table-library/select.js"), require("@table-library/react-table-library/pagination.js")) : typeof define === "function" && define.amd ? define(["exports", "react/jsx-runtime", "@radix-ui/themes", "react", "react-responsive", "@radix-ui/react-icons", "@radix-ui/react-context-menu", "@radix-ui/react-dropdown-menu", "react-device-detect", "@radix-ui/react-dialog", "re-resizable", "react-transition-group", "react-dom", "@radix-ui/react-slot", "@radix-ui/react-dismissable-layer", "@radix-ui/react-toggle-group", "@radix-ui/react-toolbar", "@radix-ui/react-toast", "react-error-boundary", "feather-icons-react", "@table-library/react-table-library/table.js", "@table-library/react-table-library/theme.js", "@table-library/react-table-library/sort.js", "@table-library/react-table-library/select.js", "@table-library/react-table-library/pagination.js"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.blocks = {}, global.jsxRuntime, global.themes, global.React, global.reactResponsive, global.reactIcons, global.RadixContextMenu, global.RadixDropdownMenu, global.reactDeviceDetect, global.RadixDialogPrimitive, global.reResizable, global.reactTransitionGroup, global.ReactDOM, global.reactSlot, global.reactDismissableLayer, global.reactToggleGroup, global.reactToolbar, global.RadixToast, global.reactErrorBoundary, global.FeatherIcon, global.table_js, global.theme_js, global.sort_js, global.select_js, global.pagination_js));
|
|
3
|
+
})(this, function(exports2, jsxRuntime, themes, React, reactResponsive, reactIcons, RadixContextMenu, RadixDropdownMenu, reactDeviceDetect, RadixDialogPrimitive, reResizable, reactTransitionGroup, ReactDOM, reactSlot, reactDismissableLayer, reactToggleGroup, reactToolbar, RadixToast, reactErrorBoundary, FeatherIcon, table_js, theme_js, sort_js, select_js, pagination_js) {
|
|
4
4
|
"use strict";
|
|
5
5
|
function _interopNamespaceDefault(e) {
|
|
6
6
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
n.default = e;
|
|
19
19
|
return Object.freeze(n);
|
|
20
20
|
}
|
|
21
|
+
const RadixContextMenu__namespace = /* @__PURE__ */ _interopNamespaceDefault(RadixContextMenu);
|
|
21
22
|
const RadixDropdownMenu__namespace = /* @__PURE__ */ _interopNamespaceDefault(RadixDropdownMenu);
|
|
22
23
|
const RadixDialogPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(RadixDialogPrimitive);
|
|
23
24
|
const RadixToast__namespace = /* @__PURE__ */ _interopNamespaceDefault(RadixToast);
|
|
@@ -659,15 +660,6 @@
|
|
|
659
660
|
[openAlertDialog]
|
|
660
661
|
);
|
|
661
662
|
};
|
|
662
|
-
const DropdownMenu = React.memo(
|
|
663
|
-
React.forwardRef(({ trigger, disabled: disabled2, children, ...rest }) => {
|
|
664
|
-
const infoColor = useSeverityColor("info");
|
|
665
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(themes.DropdownMenu.Root, { children: [
|
|
666
|
-
/* @__PURE__ */ jsxRuntime.jsx(themes.DropdownMenu.Trigger, { disabled: disabled2, children: trigger }),
|
|
667
|
-
/* @__PURE__ */ jsxRuntime.jsx(themes.DropdownMenu.Content, { variant: "soft", color: infoColor, ...rest, children })
|
|
668
|
-
] });
|
|
669
|
-
})
|
|
670
|
-
);
|
|
671
663
|
const BaseMenuItem$1 = "_BaseMenuItem_5r3et_1";
|
|
672
664
|
const RemoveOutline = "_RemoveOutline_5r3et_15";
|
|
673
665
|
const BaseMenuSeparator$1 = "_BaseMenuSeparator_5r3et_19";
|
|
@@ -689,9 +681,9 @@
|
|
|
689
681
|
px: "2",
|
|
690
682
|
height: "6",
|
|
691
683
|
...rest,
|
|
692
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(Flex, { gap: "6", height: "100%", align: "center", children: [
|
|
684
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(Flex, { gap: "6", height: "100%", align: "center", justify: "between", children: [
|
|
693
685
|
/* @__PURE__ */ jsxRuntime.jsx(Flex, { grow: "1", height: "100%", align: "center", gap: "1", children }),
|
|
694
|
-
/* @__PURE__ */ jsxRuntime.jsx(Flex, { height: "100%", width: "4", align: "center", justify: "end", children: rightSlot })
|
|
686
|
+
!!rightSlot && /* @__PURE__ */ jsxRuntime.jsx(Flex, { height: "100%", width: "4", align: "center", justify: "end", children: rightSlot })
|
|
695
687
|
] })
|
|
696
688
|
}
|
|
697
689
|
);
|
|
@@ -946,6 +938,150 @@
|
|
|
946
938
|
separator && /* @__PURE__ */ jsxRuntime.jsx(BaseMenuSeparator, {})
|
|
947
939
|
] });
|
|
948
940
|
});
|
|
941
|
+
const ActionItemGroup = React.memo((props) => {
|
|
942
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BaseItemGroup, { ...props, groupElement: RadixContextMenu__namespace.Group, itemElement: RadixContextMenu__namespace.Item });
|
|
943
|
+
});
|
|
944
|
+
ActionItemGroup.displayName = "ActionItemGroup";
|
|
945
|
+
const SelectItemGroup = React.memo((props) => {
|
|
946
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
947
|
+
BaseSelectGroup,
|
|
948
|
+
{
|
|
949
|
+
...props,
|
|
950
|
+
groupElement: RadixContextMenu__namespace.Group,
|
|
951
|
+
itemElement: RadixContextMenu__namespace.CheckboxItem,
|
|
952
|
+
itemIndicatorElement: RadixContextMenu__namespace.ItemIndicator
|
|
953
|
+
}
|
|
954
|
+
);
|
|
955
|
+
});
|
|
956
|
+
SelectItemGroup.displayName = "SelectItemGroup";
|
|
957
|
+
const MultiSelectItemGroup = React.memo((props) => {
|
|
958
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
959
|
+
BaseMultiSelectGroup,
|
|
960
|
+
{
|
|
961
|
+
...props,
|
|
962
|
+
groupElement: RadixContextMenu__namespace.Group,
|
|
963
|
+
itemElement: RadixContextMenu__namespace.CheckboxItem,
|
|
964
|
+
itemIndicatorElement: RadixContextMenu__namespace.ItemIndicator
|
|
965
|
+
}
|
|
966
|
+
);
|
|
967
|
+
});
|
|
968
|
+
MultiSelectItemGroup.displayName = "MultiSelectItemGroup";
|
|
969
|
+
const SubItemGroup = React.memo((props) => {
|
|
970
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
971
|
+
BaseSubMenuGroup,
|
|
972
|
+
{
|
|
973
|
+
...props,
|
|
974
|
+
groupElement: RadixContextMenu__namespace.Group,
|
|
975
|
+
subElement: themes.ContextMenu.Sub,
|
|
976
|
+
subTriggerElement: RadixContextMenu__namespace.SubTrigger,
|
|
977
|
+
subContentElement: themes.ContextMenu.Content
|
|
978
|
+
}
|
|
979
|
+
);
|
|
980
|
+
});
|
|
981
|
+
SubItemGroup.displayName = "SubItemGroup";
|
|
982
|
+
const Root$2 = React.memo((props) => {
|
|
983
|
+
const { disabled: disabled2 = false, children, modal = false, content, ...rest } = props;
|
|
984
|
+
const infoColor = useSeverityColor("info");
|
|
985
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(themes.ContextMenu.Root, { modal, children: [
|
|
986
|
+
/* @__PURE__ */ jsxRuntime.jsx(themes.ContextMenu.Trigger, { disabled: disabled2, children }),
|
|
987
|
+
/* @__PURE__ */ jsxRuntime.jsx(themes.ContextMenu.Content, { variant: "soft", color: infoColor, ...rest, children: content })
|
|
988
|
+
] });
|
|
989
|
+
});
|
|
990
|
+
Root$2.displayName = "ContextMenuRoot";
|
|
991
|
+
const ContextMenu = {
|
|
992
|
+
Root: Root$2,
|
|
993
|
+
ActionItemGroup,
|
|
994
|
+
SelectItemGroup,
|
|
995
|
+
MultiSelectItemGroup,
|
|
996
|
+
SubItemGroup
|
|
997
|
+
};
|
|
998
|
+
const ContextActionMenu = React.memo((props) => {
|
|
999
|
+
const { items, placeholder, filterValue, onFilterValueChange, closeOnSelect = false, icons, ...rest } = props;
|
|
1000
|
+
const content = React.useMemo(() => {
|
|
1001
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1002
|
+
ContextMenu.ActionItemGroup,
|
|
1003
|
+
{
|
|
1004
|
+
items,
|
|
1005
|
+
icons,
|
|
1006
|
+
placeholder,
|
|
1007
|
+
filterValue,
|
|
1008
|
+
closeOnSelect,
|
|
1009
|
+
onFilterValueChange
|
|
1010
|
+
}
|
|
1011
|
+
);
|
|
1012
|
+
}, [closeOnSelect, filterValue, icons, items, onFilterValueChange, placeholder]);
|
|
1013
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ContextMenu.Root, { content, ...rest });
|
|
1014
|
+
});
|
|
1015
|
+
ContextActionMenu.displayName = "ContextActionMenu";
|
|
1016
|
+
const ContextMultiSelectMenu = React.memo((props) => {
|
|
1017
|
+
const {
|
|
1018
|
+
items,
|
|
1019
|
+
values,
|
|
1020
|
+
onValueChange,
|
|
1021
|
+
placeholder,
|
|
1022
|
+
filterValue,
|
|
1023
|
+
onFilterValueChange,
|
|
1024
|
+
closeOnSelect = false,
|
|
1025
|
+
icons,
|
|
1026
|
+
...rest
|
|
1027
|
+
} = props;
|
|
1028
|
+
const content = React.useMemo(() => {
|
|
1029
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1030
|
+
ContextMenu.MultiSelectItemGroup,
|
|
1031
|
+
{
|
|
1032
|
+
items,
|
|
1033
|
+
icons,
|
|
1034
|
+
values,
|
|
1035
|
+
placeholder,
|
|
1036
|
+
filterValue,
|
|
1037
|
+
closeOnSelect,
|
|
1038
|
+
onValueChange,
|
|
1039
|
+
onFilterValueChange
|
|
1040
|
+
}
|
|
1041
|
+
);
|
|
1042
|
+
}, [closeOnSelect, filterValue, icons, items, onFilterValueChange, onValueChange, placeholder, values]);
|
|
1043
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ContextMenu.Root, { content, ...rest });
|
|
1044
|
+
});
|
|
1045
|
+
ContextMultiSelectMenu.displayName = "ContextMultiSelectMenu";
|
|
1046
|
+
const ContextSelectMenu = React.memo((props) => {
|
|
1047
|
+
const {
|
|
1048
|
+
items,
|
|
1049
|
+
value,
|
|
1050
|
+
onValueChange,
|
|
1051
|
+
placeholder,
|
|
1052
|
+
filterValue,
|
|
1053
|
+
onFilterValueChange,
|
|
1054
|
+
closeOnSelect = false,
|
|
1055
|
+
icons,
|
|
1056
|
+
...rest
|
|
1057
|
+
} = props;
|
|
1058
|
+
const content = React.useMemo(() => {
|
|
1059
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1060
|
+
ContextMenu.SelectItemGroup,
|
|
1061
|
+
{
|
|
1062
|
+
items,
|
|
1063
|
+
icons,
|
|
1064
|
+
value,
|
|
1065
|
+
placeholder,
|
|
1066
|
+
filterValue,
|
|
1067
|
+
closeOnSelect,
|
|
1068
|
+
onValueChange,
|
|
1069
|
+
onFilterValueChange
|
|
1070
|
+
}
|
|
1071
|
+
);
|
|
1072
|
+
}, [closeOnSelect, filterValue, icons, items, onFilterValueChange, onValueChange, placeholder, value]);
|
|
1073
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ContextMenu.Root, { content, ...rest });
|
|
1074
|
+
});
|
|
1075
|
+
ContextSelectMenu.displayName = "ContextSelectMenu";
|
|
1076
|
+
const DropdownMenu = React.memo(
|
|
1077
|
+
React.forwardRef(({ trigger, disabled: disabled2, children, ...rest }) => {
|
|
1078
|
+
const infoColor = useSeverityColor("info");
|
|
1079
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(themes.DropdownMenu.Root, { children: [
|
|
1080
|
+
/* @__PURE__ */ jsxRuntime.jsx(themes.DropdownMenu.Trigger, { disabled: disabled2, children: trigger }),
|
|
1081
|
+
/* @__PURE__ */ jsxRuntime.jsx(themes.DropdownMenu.Content, { variant: "soft", ...rest, color: infoColor, children })
|
|
1082
|
+
] });
|
|
1083
|
+
})
|
|
1084
|
+
);
|
|
949
1085
|
const DropdownMenuItemGroup = React.memo(function DropdownMenuItemGroup2(props) {
|
|
950
1086
|
return /* @__PURE__ */ jsxRuntime.jsx(BaseItemGroup, { ...props, itemElement: RadixDropdownMenu__namespace.Item, groupElement: RadixDropdownMenu__namespace.Group });
|
|
951
1087
|
});
|
|
@@ -1025,12 +1161,12 @@
|
|
|
1025
1161
|
onFilterValueChange,
|
|
1026
1162
|
closeOnSelect = true,
|
|
1027
1163
|
icons,
|
|
1028
|
-
|
|
1164
|
+
...rest
|
|
1029
1165
|
}, ref) => {
|
|
1030
1166
|
const infoColor = useSeverityColor("info");
|
|
1031
1167
|
return /* @__PURE__ */ jsxRuntime.jsxs(themes.DropdownMenu.Root, { children: [
|
|
1032
1168
|
/* @__PURE__ */ jsxRuntime.jsx(themes.DropdownMenu.Trigger, { disabled: disabled2, children: trigger }),
|
|
1033
|
-
/* @__PURE__ */ jsxRuntime.jsx(themes.DropdownMenu.Content, { ref, variant: "soft", color: infoColor,
|
|
1169
|
+
/* @__PURE__ */ jsxRuntime.jsx(themes.DropdownMenu.Content, { ref, variant: "soft", ...rest, color: infoColor, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1034
1170
|
DropdownMenuSelectGroup,
|
|
1035
1171
|
{
|
|
1036
1172
|
value,
|
|
@@ -1060,12 +1196,12 @@
|
|
|
1060
1196
|
onFilterValueChange,
|
|
1061
1197
|
closeOnSelect = false,
|
|
1062
1198
|
icons,
|
|
1063
|
-
|
|
1199
|
+
...rest
|
|
1064
1200
|
}, ref) => {
|
|
1065
1201
|
const infoColor = useSeverityColor("info");
|
|
1066
1202
|
return /* @__PURE__ */ jsxRuntime.jsxs(themes.DropdownMenu.Root, { children: [
|
|
1067
1203
|
/* @__PURE__ */ jsxRuntime.jsx(themes.DropdownMenu.Trigger, { disabled: disabled2, children: trigger }),
|
|
1068
|
-
/* @__PURE__ */ jsxRuntime.jsx(themes.DropdownMenu.Content, { ref, variant: "soft", color: infoColor,
|
|
1204
|
+
/* @__PURE__ */ jsxRuntime.jsx(themes.DropdownMenu.Content, { ref, variant: "soft", ...rest, color: infoColor, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1069
1205
|
DropdownMenuMultiSelectGroup,
|
|
1070
1206
|
{
|
|
1071
1207
|
values,
|
|
@@ -1509,6 +1645,7 @@
|
|
|
1509
1645
|
style,
|
|
1510
1646
|
children,
|
|
1511
1647
|
open,
|
|
1648
|
+
hide = false,
|
|
1512
1649
|
modal = false,
|
|
1513
1650
|
overlayComponent,
|
|
1514
1651
|
resizeable = true,
|
|
@@ -1657,18 +1794,27 @@
|
|
|
1657
1794
|
height: "100%",
|
|
1658
1795
|
direction: "row",
|
|
1659
1796
|
position: "relative",
|
|
1660
|
-
style: { overflow: "hidden" },
|
|
1797
|
+
style: { overflow: "hidden", maxWidth: "100%", maxHeight: "100%" },
|
|
1661
1798
|
children: [
|
|
1662
|
-
side === "left" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1799
|
+
side === "left" && !hide && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1663
1800
|
open && overlayComponent,
|
|
1664
1801
|
" ",
|
|
1665
|
-
SlideOut2
|
|
1802
|
+
content && SlideOut2
|
|
1666
1803
|
] }),
|
|
1667
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1668
|
-
|
|
1804
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1805
|
+
themes.Flex,
|
|
1806
|
+
{
|
|
1807
|
+
ref: childrenContainerRef,
|
|
1808
|
+
grow: "1",
|
|
1809
|
+
height: "100%",
|
|
1810
|
+
style: { maxWidth: "100%", maxHeight: "100%", overflow: "hidden" },
|
|
1811
|
+
children
|
|
1812
|
+
}
|
|
1813
|
+
),
|
|
1814
|
+
side === "right" && !hide && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1669
1815
|
open && overlayComponent,
|
|
1670
1816
|
" ",
|
|
1671
|
-
SlideOut2
|
|
1817
|
+
content && SlideOut2
|
|
1672
1818
|
] })
|
|
1673
1819
|
]
|
|
1674
1820
|
}
|
|
@@ -1746,17 +1892,24 @@
|
|
|
1746
1892
|
);
|
|
1747
1893
|
})
|
|
1748
1894
|
);
|
|
1895
|
+
function nextStateBasedOnType(prevState, type) {
|
|
1896
|
+
switch (type) {
|
|
1897
|
+
case "toggle":
|
|
1898
|
+
return !prevState;
|
|
1899
|
+
case "open":
|
|
1900
|
+
return true;
|
|
1901
|
+
case "close":
|
|
1902
|
+
return false;
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1749
1905
|
const SlideOutTrigger = React.memo(
|
|
1750
1906
|
React.forwardRef((props, ref) => {
|
|
1751
|
-
const { side, children } = props;
|
|
1907
|
+
const { side, type = "toggle", children } = props;
|
|
1752
1908
|
const { setShowLeftSlideOut, setShowRightSlideOut } = useLayoutContext();
|
|
1753
1909
|
const handleClick = React.useCallback(() => {
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
setShowRightSlideOut((prevState) => !prevState);
|
|
1758
|
-
}
|
|
1759
|
-
}, [setShowLeftSlideOut, setShowRightSlideOut, side]);
|
|
1910
|
+
const setShowSlideOut = side === "left" ? setShowLeftSlideOut : setShowRightSlideOut;
|
|
1911
|
+
setShowSlideOut((prevState) => nextStateBasedOnType(prevState, type));
|
|
1912
|
+
}, [setShowLeftSlideOut, setShowRightSlideOut, side, type]);
|
|
1760
1913
|
return /* @__PURE__ */ jsxRuntime.jsx(reactSlot.Slot, { ref, onClick: handleClick, children });
|
|
1761
1914
|
})
|
|
1762
1915
|
);
|
|
@@ -3278,29 +3431,22 @@
|
|
|
3278
3431
|
}
|
|
3279
3432
|
const $e698a72e93240346$export$be92b6f5f03c0fe9 = $e698a72e93240346$export$48513f6b9f8ce62d;
|
|
3280
3433
|
const $e698a72e93240346$export$adb584737d712b70 = $e698a72e93240346$export$59aad738f51d1c05;
|
|
3281
|
-
const
|
|
3282
|
-
const
|
|
3283
|
-
const
|
|
3284
|
-
const
|
|
3285
|
-
const
|
|
3434
|
+
const checkboxContainer = "_checkboxContainer_pb9za_5";
|
|
3435
|
+
const checkbox = "_checkbox_pb9za_5";
|
|
3436
|
+
const checkboxIndicator = "_checkboxIndicator_pb9za_27";
|
|
3437
|
+
const checkboxLabel = "_checkboxLabel_pb9za_38";
|
|
3438
|
+
const noTextHighlight = "_noTextHighlight_pb9za_42";
|
|
3439
|
+
const checkboxHidden = "_checkboxHidden_pb9za_51";
|
|
3286
3440
|
const styles$2 = {
|
|
3441
|
+
checkboxContainer,
|
|
3287
3442
|
checkbox,
|
|
3288
3443
|
checkboxIndicator,
|
|
3289
3444
|
checkboxLabel,
|
|
3290
3445
|
noTextHighlight,
|
|
3291
3446
|
checkboxHidden
|
|
3292
3447
|
};
|
|
3293
|
-
const _Checkbox = React.forwardRef(function Checkbox2({
|
|
3294
|
-
className,
|
|
3295
|
-
labelClassName,
|
|
3296
|
-
label,
|
|
3297
|
-
checked,
|
|
3298
|
-
onCheckedChange,
|
|
3299
|
-
checkboxPosition = "center",
|
|
3300
|
-
alwaysShow = true,
|
|
3301
|
-
...rest
|
|
3302
|
-
}, ref) {
|
|
3303
|
-
return /* @__PURE__ */ jsxRuntime.jsx(HoverUtility, { children: ({ isHovered, ...props }) => /* @__PURE__ */ jsxRuntime.jsxs(themes.Flex, { align: checkboxPosition, ...props, children: [
|
|
3448
|
+
const _Checkbox = React.forwardRef(function Checkbox2({ className, labelClassName, label, checked, onCheckedChange, alwaysShow = true, ...rest }, ref) {
|
|
3449
|
+
return /* @__PURE__ */ jsxRuntime.jsx(HoverUtility, { children: ({ isHovered, ...props }) => /* @__PURE__ */ jsxRuntime.jsxs(themes.Flex, { className: styles$2.checkboxContainer, ...props, children: [
|
|
3304
3450
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3305
3451
|
$e698a72e93240346$export$be92b6f5f03c0fe9,
|
|
3306
3452
|
{
|
|
@@ -4103,12 +4249,20 @@
|
|
|
4103
4249
|
exports2.AlertDialogContent = AlertDialogContent;
|
|
4104
4250
|
exports2.AlertDialogProvider = AlertDialogProvider;
|
|
4105
4251
|
exports2.Badge = Badge;
|
|
4252
|
+
exports2.BaseItemGroup = BaseItemGroup;
|
|
4253
|
+
exports2.BaseMultiSelectGroup = BaseMultiSelectGroup;
|
|
4254
|
+
exports2.BaseSelectGroup = BaseSelectGroup;
|
|
4255
|
+
exports2.BaseSubMenuGroup = BaseSubMenuGroup;
|
|
4106
4256
|
exports2.Breadcrumb = Breadcrumb;
|
|
4107
4257
|
exports2.Button = Button2;
|
|
4108
4258
|
exports2.ButtonGroup = ButtonGroup;
|
|
4109
4259
|
exports2.ButtonList = ButtonList;
|
|
4110
4260
|
exports2.Checkbox = Checkbox;
|
|
4111
4261
|
exports2.ConfirmEditInput = ConfirmEditInput;
|
|
4262
|
+
exports2.ContextActionMenu = ContextActionMenu;
|
|
4263
|
+
exports2.ContextMenu = ContextMenu;
|
|
4264
|
+
exports2.ContextMultiSelectMenu = ContextMultiSelectMenu;
|
|
4265
|
+
exports2.ContextSelectMenu = ContextSelectMenu;
|
|
4112
4266
|
exports2.DefaultTheme = DefaultTheme;
|
|
4113
4267
|
exports2.Dialog = Dialog;
|
|
4114
4268
|
exports2.DropdownItemMenu = DropdownItemMenu;
|