cloudmr-ux 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.css CHANGED
@@ -66,10 +66,6 @@
66
66
  }
67
67
 
68
68
  /* src/CmrComponents/CmrSelect/CmrSelect.css */
69
- .dropdown-select .MuiSelect-select.MuiSelect-placeholder {
70
- text-align: center;
71
- justify-content: center;
72
- }
73
69
 
74
70
  /* src/CmrComponents/collapse/Collapse.css */
75
71
  .collapse-bar {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ButtonProps, FormControlProps, SelectProps, SxProps, Theme } from '@mui/material';
2
+ import { ButtonProps, SxProps, Theme } from '@mui/material';
3
3
  import * as React from 'react';
4
4
  import React__default, { ReactNode, ChangeEvent, CSSProperties, FC } from 'react';
5
5
  import { SizeType } from 'antd/lib/config-provider/SizeContext';
@@ -54,10 +54,11 @@ interface CmrSelectProps {
54
54
  defaultValue?: string;
55
55
  /** Layout/Styling */
56
56
  fullWidth?: boolean;
57
- sx?: FormControlProps['sx'];
57
+ /** kept for compatibility; applied to outer wrapper */
58
+ sx?: any;
58
59
  className?: string;
59
- /** Pass-through to MUI Select */
60
- SelectProps?: Partial<SelectProps<string>>;
60
+ /** Pass-through bag kept for API compatibility (ignored by react-select) */
61
+ SelectProps?: Record<string, any>;
61
62
  }
62
63
  declare const CmrSelect: React__default.FC<CmrSelectProps>;
63
64
 
package/dist/index.js CHANGED
@@ -132,8 +132,38 @@ var CmrRadioGroup_default = CmrRadioGroup;
132
132
 
133
133
  // src/CmrComponents/CmrSelect/CmrSelect.tsx
134
134
  var import_react2 = require("react");
135
- var import_material5 = require("@mui/material");
135
+ var import_react_select = __toESM(require("react-select"));
136
136
  var import_jsx_runtime5 = require("react/jsx-runtime");
137
+ var baseStyles = {
138
+ control: (base, state) => ({
139
+ ...base,
140
+ minHeight: 40,
141
+ borderColor: state.isFocused ? "#580F8B" : base.borderColor,
142
+ boxShadow: state.isFocused ? "0 0 0 1px #580F8B" : "none",
143
+ "&:hover": { borderColor: "#580F8B" },
144
+ fontFamily: "Inter, Roboto, Helvetica, Arial, sans-serif",
145
+ borderRadius: 4
146
+ }),
147
+ placeholder: (base) => ({
148
+ ...base,
149
+ color: "rgba(0,0,0,0.6)"
150
+ }),
151
+ singleValue: (base) => ({
152
+ ...base,
153
+ color: "#580F8B",
154
+ fontWeight: 400,
155
+ fontFamily: "Inter, Roboto, Helvetica, Arial, sans-serif"
156
+ }),
157
+ option: (base, state) => ({
158
+ ...base,
159
+ backgroundColor: state.isFocused || state.isSelected ? "#F3E5F5" : "white",
160
+ color: "#000",
161
+ fontFamily: "Inter, Roboto, Helvetica, Arial, sans-serif",
162
+ cursor: state.isDisabled ? "not-allowed" : "pointer"
163
+ }),
164
+ menuPortal: (base) => ({ ...base, zIndex: 2e3 }),
165
+ menu: (base) => ({ ...base, zIndex: 1300 })
166
+ };
137
167
  var CmrSelect = ({
138
168
  options,
139
169
  label,
@@ -144,49 +174,50 @@ var CmrSelect = ({
144
174
  fullWidth,
145
175
  sx,
146
176
  className,
147
- SelectProps: SelectProps2
177
+ SelectProps
178
+ // kept for compatibility with old callers
148
179
  }) => {
149
180
  const isControlled = value !== void 0;
150
181
  const [internal, setInternal] = (0, import_react2.useState)(defaultValue);
151
- const current = isControlled ? value : internal;
182
+ const currentValue = isControlled ? value : internal;
152
183
  (0, import_react2.useEffect)(() => {
153
184
  if (isControlled)
154
185
  setInternal(value);
155
186
  }, [isControlled, value]);
156
187
  const id = (0, import_react2.useId)();
157
- const labelId = `${id}-label`;
158
- const selectId = `${id}-select`;
159
- const handleChange = (e) => {
160
- const next = e.target.value;
188
+ const rsValue = (0, import_react2.useMemo)(
189
+ () => options.find((o) => o.value === currentValue) ?? null,
190
+ [options, currentValue]
191
+ );
192
+ const handleChange = (opt) => {
193
+ const next = (opt == null ? void 0 : opt.value) ?? "";
161
194
  if (!isControlled)
162
195
  setInternal(next);
163
196
  onChange == null ? void 0 : onChange(next);
164
197
  };
165
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
166
- import_material5.FormControl,
167
- {
168
- className: className ?? "dropdown-select",
169
- sx: { minWidth: 200, maxWidth: 400, width: fullWidth ? "100%" : "auto", ...sx },
170
- disabled,
171
- fullWidth,
172
- children: [
173
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material5.InputLabel, { id: labelId, className: "dropdown-label", children: label }),
174
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
175
- import_material5.Select,
176
- {
177
- labelId,
178
- id: selectId,
179
- value: current,
180
- label,
181
- onChange: handleChange,
182
- MenuProps: { classes: { paper: "custom-dropdown" }, ...SelectProps2 == null ? void 0 : SelectProps2.MenuProps },
183
- ...SelectProps2,
184
- children: options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material5.MenuItem, { value: opt.value, disabled: !!opt.disabled, children: opt.label }, `${opt.value}-${opt.label}`))
185
- }
186
- )
187
- ]
188
- }
189
- );
198
+ const wrapperStyle = {
199
+ minWidth: 200,
200
+ maxWidth: 400,
201
+ width: fullWidth ? "100%" : "auto",
202
+ ...sx
203
+ };
204
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: className ?? "dropdown-select", style: wrapperStyle, children: [
205
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("label", { htmlFor: id, style: { display: "block", marginBottom: 4, color: "rgba(0,0,0,0.6)" }, children: label }),
206
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
207
+ import_react_select.default,
208
+ {
209
+ inputId: id,
210
+ isDisabled: !!disabled,
211
+ options: options.map((o) => ({ ...o, isDisabled: o.disabled })),
212
+ value: rsValue,
213
+ onChange: handleChange,
214
+ placeholder: "Select",
215
+ isClearable: true,
216
+ styles: baseStyles,
217
+ menuPortalTarget: document.body
218
+ }
219
+ )
220
+ ] });
190
221
  };
191
222
  var CmrSelect_default = CmrSelect;
192
223
 
@@ -296,7 +327,7 @@ var Panel_default = CmrPanel;
296
327
 
297
328
  // src/CmrComponents/upload/Upload.tsx
298
329
  var import_react4 = __toESM(require("react"));
299
- var import_material7 = require("@mui/material");
330
+ var import_material6 = require("@mui/material");
300
331
  var import_Upload3 = __toESM(require("@mui/icons-material/Upload"));
301
332
 
302
333
  // src/CmrComponents/upload/UploadWindow.tsx
@@ -310,7 +341,7 @@ var import_DialogContentText = __toESM(require("@mui/material/DialogContentText"
310
341
  var import_DialogTitle = __toESM(require("@mui/material/DialogTitle"));
311
342
  var import_Typography = __toESM(require("@mui/material/Typography"));
312
343
  var import_Box = __toESM(require("@mui/material/Box"));
313
- var import_material6 = require("@mui/material");
344
+ var import_material5 = require("@mui/material");
314
345
 
315
346
  // src/CmrComponents/label/Label.tsx
316
347
  var import_jsx_runtime8 = require("react/jsx-runtime");
@@ -627,7 +658,7 @@ function CmrUploadWindow({
627
658
  defaultValue: "s3",
628
659
  helperText: "Upstream Storage Location",
629
660
  variant: "standard",
630
- children: [{ value: "s3", label: "S3" }].map((option) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material6.MenuItem, { value: option.value, children: option.label }, option.value))
661
+ children: [{ value: "s3", label: "S3" }].map((option) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material5.MenuItem, { value: option.value, children: option.label }, option.value))
631
662
  }
632
663
  )
633
664
  ] }),
@@ -643,7 +674,7 @@ function CmrUploadWindow({
643
674
  variant: "standard"
644
675
  }
645
676
  ),
646
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material6.Collapse, { in: infoOpen, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material6.Alert, { severity: infoStyle, sx: { m: 1 }, children: warningText }) })
677
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material5.Collapse, { in: infoOpen, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material5.Alert, { severity: infoStyle, sx: { m: 1 }, children: warningText }) })
647
678
  ] })
648
679
  ] })
649
680
  ] }),
@@ -748,7 +779,7 @@ var CmrUpload = (props) => {
748
779
  }
749
780
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_react4.default.Fragment, { children: [
750
781
  !uploading ? /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
751
- import_material7.Button,
782
+ import_material6.Button,
752
783
  {
753
784
  fullWidth: props.fullWidth,
754
785
  style: props.style,
@@ -764,7 +795,7 @@ var CmrUpload = (props) => {
764
795
  " "
765
796
  ]
766
797
  }
767
- ) : /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_material7.Button, { fullWidth: props.fullWidth, style: props.style, variant: "contained", sx: { overflowWrap: "inherit" }, color: "primary", disabled: true, children: [
798
+ ) : /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_material6.Button, { fullWidth: props.fullWidth, style: props.style, variant: "contained", sx: { overflowWrap: "inherit" }, color: "primary", disabled: true, children: [
768
799
  "Uploading ",
769
800
  progress,
770
801
  "%"
@@ -788,7 +819,7 @@ var Upload_default = CmrUpload;
788
819
 
789
820
  // src/CmrComponents/rename/edit.tsx
790
821
  var React6 = __toESM(require("react"));
791
- var import_material8 = require("@mui/material");
822
+ var import_material7 = require("@mui/material");
792
823
  var import_TextField2 = __toESM(require("@mui/material/TextField"));
793
824
  var import_Dialog2 = __toESM(require("@mui/material/Dialog"));
794
825
  var import_DialogActions2 = __toESM(require("@mui/material/DialogActions"));
@@ -843,7 +874,7 @@ function CmrNameDialog(props) {
843
874
  fullWidth: true,
844
875
  maxWidth: "xs",
845
876
  children: [
846
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_DialogTitle2.default, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_material8.Typography, { children: [
877
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_DialogTitle2.default, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_material7.Typography, { children: [
847
878
  " Rename the File ",
848
879
  originalName,
849
880
  " as:"
@@ -995,7 +1026,7 @@ var import_DialogActions5 = __toESM(require("@mui/material/DialogActions"));
995
1026
  var import_DialogContent5 = __toESM(require("@mui/material/DialogContent"));
996
1027
  var import_DialogContentText4 = __toESM(require("@mui/material/DialogContentText"));
997
1028
  var import_DialogTitle5 = __toESM(require("@mui/material/DialogTitle"));
998
- var import_material9 = require("@mui/material");
1029
+ var import_material8 = require("@mui/material");
999
1030
  var import_react6 = require("react");
1000
1031
  var import_jsx_runtime14 = require("react/jsx-runtime");
1001
1032
  function CmrEditConfirmation({
@@ -1038,7 +1069,7 @@ function CmrEditConfirmation({
1038
1069
  fullWidth: true,
1039
1070
  variant: "standard",
1040
1071
  InputProps: {
1041
- endAdornment: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material9.InputAdornment, { position: "end", sx: { whiteSpace: "nowrap" }, children: suffix })
1072
+ endAdornment: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material8.InputAdornment, { position: "end", sx: { whiteSpace: "nowrap" }, children: suffix })
1042
1073
  },
1043
1074
  defaultValue: text,
1044
1075
  onChange: (e) => setText(e.target.value)
@@ -1125,18 +1156,18 @@ function CmrTabs(props) {
1125
1156
  }
1126
1157
 
1127
1158
  // src/CmrComponents/checkbox/Checkbox.tsx
1159
+ var import_material9 = require("@mui/material");
1128
1160
  var import_material10 = require("@mui/material");
1129
- var import_material11 = require("@mui/material");
1130
1161
  var import_jsx_runtime16 = require("react/jsx-runtime");
1131
1162
  var CmrCheckbox = (props) => {
1132
1163
  const { defaultChecked, onChange, children, ...rest } = props;
1133
1164
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1134
- import_material11.FormControlLabel,
1165
+ import_material10.FormControlLabel,
1135
1166
  {
1136
1167
  disabled: props.disabled,
1137
1168
  style: props.style,
1138
1169
  className: props.className,
1139
- control: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_material10.Checkbox, { style: props.style, checked: props.checked, defaultChecked, onChange }),
1170
+ control: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_material9.Checkbox, { style: props.style, checked: props.checked, defaultChecked, onChange }),
1140
1171
  label: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Label_default, { children: props.children }),
1141
1172
  sx: props.sx,
1142
1173
  labelPlacement: "end"
@@ -1156,8 +1187,8 @@ var InputNumber_default = CmrInputNumber;
1156
1187
 
1157
1188
  // src/CmrComponents/select-upload/SelectUpload.tsx
1158
1189
  var import_react8 = __toESM(require("react"));
1159
- var import_material12 = require("@mui/material");
1160
- var import_react_select = __toESM(require("react-select"));
1190
+ var import_material11 = require("@mui/material");
1191
+ var import_react_select2 = __toESM(require("react-select"));
1161
1192
  var import_Dialog6 = __toESM(require("@mui/material/Dialog"));
1162
1193
  var import_DialogTitle6 = __toESM(require("@mui/material/DialogTitle"));
1163
1194
  var import_DialogContent6 = __toESM(require("@mui/material/DialogContent"));
@@ -1195,7 +1226,7 @@ var CMRSelectUpload = (props) => {
1195
1226
  /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_DialogContent6.default, { sx: { width: 520 }, children: [
1196
1227
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_DialogContentText5.default, { sx: { pl: 1, pr: 1, pb: 0 }, children: uploading ? "Please wait for the upload to finish." : "" }),
1197
1228
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_Box3.default, { sx: { p: 1 }, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1198
- import_react_select.default,
1229
+ import_react_select2.default,
1199
1230
  {
1200
1231
  classNamePrefix: "cmr-select",
1201
1232
  isDisabled: uploading,
@@ -1218,8 +1249,8 @@ var CMRSelectUpload = (props) => {
1218
1249
  }
1219
1250
  ) }),
1220
1251
  /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_Box3.default, { sx: { pt: 2, justifyContent: "center", display: "flex", padding: "8px" }, children: [
1221
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_material12.Button, { fullWidth: true, sx: { marginRight: "8px" }, variant: "outlined", onClick: handleClose, children: " Cancel" }),
1222
- fileIndex !== -1 && !uploading && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_material12.Button, { fullWidth: true, variant: "contained", onClick: onSet, children: "OK" }),
1252
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_material11.Button, { fullWidth: true, sx: { marginRight: "8px" }, variant: "outlined", onClick: handleClose, children: " Cancel" }),
1253
+ fileIndex !== -1 && !uploading && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_material11.Button, { fullWidth: true, variant: "contained", onClick: onSet, children: "OK" }),
1223
1254
  fileIndex == -1 && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1224
1255
  Upload_default,
1225
1256
  {
@@ -1250,12 +1281,12 @@ var CMRSelectUpload = (props) => {
1250
1281
  ] })
1251
1282
  ] });
1252
1283
  return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_react8.Fragment, { children: [
1253
- uploading ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_material12.Button, { variant: "contained", style: { ...props.style, textTransform: "none" }, sx: { overflowWrap: "inherit" }, color: "primary", disabled: uploading, children: [
1284
+ uploading ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_material11.Button, { variant: "contained", style: { ...props.style, textTransform: "none" }, sx: { overflowWrap: "inherit" }, color: "primary", disabled: uploading, children: [
1254
1285
  "Uploading ",
1255
1286
  progress,
1256
1287
  "%"
1257
1288
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1258
- import_material12.Button,
1289
+ import_material11.Button,
1259
1290
  {
1260
1291
  variant: props.chosenFile == void 0 ? "contained" : "outlined",
1261
1292
  color: "info",
package/dist/index.mjs CHANGED
@@ -83,14 +83,39 @@ var CmrRadioGroup = ({
83
83
  var CmrRadioGroup_default = CmrRadioGroup;
84
84
 
85
85
  // src/CmrComponents/CmrSelect/CmrSelect.tsx
86
- import { useEffect, useId, useState as useState2 } from "react";
87
- import {
88
- Select,
89
- MenuItem,
90
- FormControl as FormControl2,
91
- InputLabel
92
- } from "@mui/material";
86
+ import { useEffect, useId, useMemo, useState as useState2 } from "react";
87
+ import ReactSelect from "react-select";
93
88
  import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
89
+ var baseStyles = {
90
+ control: (base, state) => ({
91
+ ...base,
92
+ minHeight: 40,
93
+ borderColor: state.isFocused ? "#580F8B" : base.borderColor,
94
+ boxShadow: state.isFocused ? "0 0 0 1px #580F8B" : "none",
95
+ "&:hover": { borderColor: "#580F8B" },
96
+ fontFamily: "Inter, Roboto, Helvetica, Arial, sans-serif",
97
+ borderRadius: 4
98
+ }),
99
+ placeholder: (base) => ({
100
+ ...base,
101
+ color: "rgba(0,0,0,0.6)"
102
+ }),
103
+ singleValue: (base) => ({
104
+ ...base,
105
+ color: "#580F8B",
106
+ fontWeight: 400,
107
+ fontFamily: "Inter, Roboto, Helvetica, Arial, sans-serif"
108
+ }),
109
+ option: (base, state) => ({
110
+ ...base,
111
+ backgroundColor: state.isFocused || state.isSelected ? "#F3E5F5" : "white",
112
+ color: "#000",
113
+ fontFamily: "Inter, Roboto, Helvetica, Arial, sans-serif",
114
+ cursor: state.isDisabled ? "not-allowed" : "pointer"
115
+ }),
116
+ menuPortal: (base) => ({ ...base, zIndex: 2e3 }),
117
+ menu: (base) => ({ ...base, zIndex: 1300 })
118
+ };
94
119
  var CmrSelect = ({
95
120
  options,
96
121
  label,
@@ -101,49 +126,50 @@ var CmrSelect = ({
101
126
  fullWidth,
102
127
  sx,
103
128
  className,
104
- SelectProps: SelectProps2
129
+ SelectProps
130
+ // kept for compatibility with old callers
105
131
  }) => {
106
132
  const isControlled = value !== void 0;
107
133
  const [internal, setInternal] = useState2(defaultValue);
108
- const current = isControlled ? value : internal;
134
+ const currentValue = isControlled ? value : internal;
109
135
  useEffect(() => {
110
136
  if (isControlled)
111
137
  setInternal(value);
112
138
  }, [isControlled, value]);
113
139
  const id = useId();
114
- const labelId = `${id}-label`;
115
- const selectId = `${id}-select`;
116
- const handleChange = (e) => {
117
- const next = e.target.value;
140
+ const rsValue = useMemo(
141
+ () => options.find((o) => o.value === currentValue) ?? null,
142
+ [options, currentValue]
143
+ );
144
+ const handleChange = (opt) => {
145
+ const next = (opt == null ? void 0 : opt.value) ?? "";
118
146
  if (!isControlled)
119
147
  setInternal(next);
120
148
  onChange == null ? void 0 : onChange(next);
121
149
  };
122
- return /* @__PURE__ */ jsxs2(
123
- FormControl2,
124
- {
125
- className: className ?? "dropdown-select",
126
- sx: { minWidth: 200, maxWidth: 400, width: fullWidth ? "100%" : "auto", ...sx },
127
- disabled,
128
- fullWidth,
129
- children: [
130
- /* @__PURE__ */ jsx5(InputLabel, { id: labelId, className: "dropdown-label", children: label }),
131
- /* @__PURE__ */ jsx5(
132
- Select,
133
- {
134
- labelId,
135
- id: selectId,
136
- value: current,
137
- label,
138
- onChange: handleChange,
139
- MenuProps: { classes: { paper: "custom-dropdown" }, ...SelectProps2 == null ? void 0 : SelectProps2.MenuProps },
140
- ...SelectProps2,
141
- children: options.map((opt) => /* @__PURE__ */ jsx5(MenuItem, { value: opt.value, disabled: !!opt.disabled, children: opt.label }, `${opt.value}-${opt.label}`))
142
- }
143
- )
144
- ]
145
- }
146
- );
150
+ const wrapperStyle = {
151
+ minWidth: 200,
152
+ maxWidth: 400,
153
+ width: fullWidth ? "100%" : "auto",
154
+ ...sx
155
+ };
156
+ return /* @__PURE__ */ jsxs2("div", { className: className ?? "dropdown-select", style: wrapperStyle, children: [
157
+ /* @__PURE__ */ jsx5("label", { htmlFor: id, style: { display: "block", marginBottom: 4, color: "rgba(0,0,0,0.6)" }, children: label }),
158
+ /* @__PURE__ */ jsx5(
159
+ ReactSelect,
160
+ {
161
+ inputId: id,
162
+ isDisabled: !!disabled,
163
+ options: options.map((o) => ({ ...o, isDisabled: o.disabled })),
164
+ value: rsValue,
165
+ onChange: handleChange,
166
+ placeholder: "Select",
167
+ isClearable: true,
168
+ styles: baseStyles,
169
+ menuPortalTarget: document.body
170
+ }
171
+ )
172
+ ] });
147
173
  };
148
174
  var CmrSelect_default = CmrSelect;
149
175
 
@@ -267,7 +293,7 @@ import DialogContentText from "@mui/material/DialogContentText";
267
293
  import DialogTitle from "@mui/material/DialogTitle";
268
294
  import Typography from "@mui/material/Typography";
269
295
  import Box from "@mui/material/Box";
270
- import { Alert, Collapse, MenuItem as MenuItem2 } from "@mui/material";
296
+ import { Alert, Collapse, MenuItem } from "@mui/material";
271
297
 
272
298
  // src/CmrComponents/label/Label.tsx
273
299
  import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
@@ -584,7 +610,7 @@ function CmrUploadWindow({
584
610
  defaultValue: "s3",
585
611
  helperText: "Upstream Storage Location",
586
612
  variant: "standard",
587
- children: [{ value: "s3", label: "S3" }].map((option) => /* @__PURE__ */ jsx9(MenuItem2, { value: option.value, children: option.label }, option.value))
613
+ children: [{ value: "s3", label: "S3" }].map((option) => /* @__PURE__ */ jsx9(MenuItem, { value: option.value, children: option.label }, option.value))
588
614
  }
589
615
  )
590
616
  ] }),
@@ -1114,7 +1140,7 @@ var InputNumber_default = CmrInputNumber;
1114
1140
  // src/CmrComponents/select-upload/SelectUpload.tsx
1115
1141
  import React10, { Fragment } from "react";
1116
1142
  import { Button as Button4 } from "@mui/material";
1117
- import Select2 from "react-select";
1143
+ import Select from "react-select";
1118
1144
  import Dialog6 from "@mui/material/Dialog";
1119
1145
  import DialogTitle6 from "@mui/material/DialogTitle";
1120
1146
  import DialogContent6 from "@mui/material/DialogContent";
@@ -1152,7 +1178,7 @@ var CMRSelectUpload = (props) => {
1152
1178
  /* @__PURE__ */ jsxs12(DialogContent6, { sx: { width: 520 }, children: [
1153
1179
  /* @__PURE__ */ jsx18(DialogContentText5, { sx: { pl: 1, pr: 1, pb: 0 }, children: uploading ? "Please wait for the upload to finish." : "" }),
1154
1180
  /* @__PURE__ */ jsx18(Box4, { sx: { p: 1 }, children: /* @__PURE__ */ jsx18(
1155
- Select2,
1181
+ Select,
1156
1182
  {
1157
1183
  classNamePrefix: "cmr-select",
1158
1184
  isDisabled: uploading,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudmr-ux",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "author": "erosmontin@gmail.com",
5
5
  "license": "MIT",
6
6
  "repository": "erosmontin/cloudmr-ux",