cloudmr-ux 2.0.3 → 2.0.5

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.d.ts CHANGED
@@ -45,7 +45,6 @@ interface Option {
45
45
  }
46
46
  interface CmrSelectProps {
47
47
  options: Option[];
48
- label: string;
49
48
  disabled?: boolean;
50
49
  /** Controlled usage (optional) */
51
50
  value?: string;
@@ -54,10 +53,9 @@ interface CmrSelectProps {
54
53
  defaultValue?: string;
55
54
  /** Layout/Styling */
56
55
  fullWidth?: boolean;
57
- /** kept for compatibility; applied to outer wrapper */
58
56
  sx?: any;
59
57
  className?: string;
60
- /** Pass-through bag kept for API compatibility (ignored by react-select) */
58
+ /** Pass-through kept for compatibility */
61
59
  SelectProps?: Record<string, any>;
62
60
  }
63
61
  declare const CmrSelect: React__default.FC<CmrSelectProps>;
@@ -84,6 +82,7 @@ interface CmrPanelProps extends React__default.HTMLAttributes<HTMLDivElement> {
84
82
  onToggle?: (key: number | undefined) => void;
85
83
  expanded?: boolean;
86
84
  cardProps?: React__default.HTMLAttributes<HTMLDivElement>;
85
+ collapsible?: boolean;
87
86
  }
88
87
  declare const CmrPanel: (props: CmrPanelProps) => react_jsx_runtime.JSX.Element;
89
88
 
package/dist/index.js CHANGED
@@ -166,16 +166,13 @@ var baseStyles = {
166
166
  };
167
167
  var CmrSelect = ({
168
168
  options,
169
- label,
170
169
  disabled,
171
170
  value,
172
171
  onChange,
173
172
  defaultValue = "",
174
173
  fullWidth,
175
174
  sx,
176
- className,
177
- SelectProps
178
- // kept for compatibility with old callers
175
+ className
179
176
  }) => {
180
177
  const isControlled = value !== void 0;
181
178
  const [internal, setInternal] = (0, import_react2.useState)(defaultValue);
@@ -201,23 +198,20 @@ var CmrSelect = ({
201
198
  width: fullWidth ? "100%" : "auto",
202
199
  ...sx
203
200
  };
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
- ] });
201
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: className ?? "dropdown-select", style: wrapperStyle, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
202
+ import_react_select.default,
203
+ {
204
+ inputId: id,
205
+ isDisabled: !!disabled,
206
+ options: options.map((o) => ({ ...o, isDisabled: o.disabled })),
207
+ value: rsValue,
208
+ onChange: handleChange,
209
+ placeholder: "Select",
210
+ isClearable: true,
211
+ styles: baseStyles,
212
+ menuPortalTarget: document.body
213
+ }
214
+ ) });
221
215
  };
222
216
  var CmrSelect_default = CmrSelect;
223
217
 
package/dist/index.mjs CHANGED
@@ -85,7 +85,7 @@ var CmrRadioGroup_default = CmrRadioGroup;
85
85
  // src/CmrComponents/CmrSelect/CmrSelect.tsx
86
86
  import { useEffect, useId, useMemo, useState as useState2 } from "react";
87
87
  import ReactSelect from "react-select";
88
- import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
88
+ import { jsx as jsx5 } from "react/jsx-runtime";
89
89
  var baseStyles = {
90
90
  control: (base, state) => ({
91
91
  ...base,
@@ -118,16 +118,13 @@ var baseStyles = {
118
118
  };
119
119
  var CmrSelect = ({
120
120
  options,
121
- label,
122
121
  disabled,
123
122
  value,
124
123
  onChange,
125
124
  defaultValue = "",
126
125
  fullWidth,
127
126
  sx,
128
- className,
129
- SelectProps
130
- // kept for compatibility with old callers
127
+ className
131
128
  }) => {
132
129
  const isControlled = value !== void 0;
133
130
  const [internal, setInternal] = useState2(defaultValue);
@@ -153,23 +150,20 @@ var CmrSelect = ({
153
150
  width: fullWidth ? "100%" : "auto",
154
151
  ...sx
155
152
  };
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
- ] });
153
+ return /* @__PURE__ */ jsx5("div", { className: className ?? "dropdown-select", style: wrapperStyle, children: /* @__PURE__ */ jsx5(
154
+ ReactSelect,
155
+ {
156
+ inputId: id,
157
+ isDisabled: !!disabled,
158
+ options: options.map((o) => ({ ...o, isDisabled: o.disabled })),
159
+ value: rsValue,
160
+ onChange: handleChange,
161
+ placeholder: "Select",
162
+ isClearable: true,
163
+ styles: baseStyles,
164
+ menuPortalTarget: document.body
165
+ }
166
+ ) });
173
167
  };
174
168
  var CmrSelect_default = CmrSelect;
175
169
 
@@ -237,7 +231,7 @@ var Collapse_default = CmrCollapse;
237
231
  // src/CmrComponents/panel/Panel.tsx
238
232
  import ArrowDropUpIcon from "@mui/icons-material/ArrowDropUp";
239
233
  import ArrowDropDownIcon from "@mui/icons-material/ArrowDropDown";
240
- import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
234
+ import { jsx as jsx7, jsxs as jsxs2 } from "react/jsx-runtime";
241
235
  var CmrPanel = function(props) {
242
236
  var _a, _b;
243
237
  let { expanded, onToggle } = props;
@@ -245,8 +239,8 @@ var CmrPanel = function(props) {
245
239
  if (onToggle)
246
240
  onToggle(props.panelKey);
247
241
  };
248
- return /* @__PURE__ */ jsxs3("div", { className: `card ${props.className}`, children: [
249
- /* @__PURE__ */ jsx7("div", { className: "card-header", style: { background: "white", display: props.header == void 0 ? "none" : void 0 }, children: /* @__PURE__ */ jsxs3("div", { className: "row align-items-center", children: [
242
+ return /* @__PURE__ */ jsxs2("div", { className: `card ${props.className}`, children: [
243
+ /* @__PURE__ */ jsx7("div", { className: "card-header", style: { background: "white", display: props.header == void 0 ? "none" : void 0 }, children: /* @__PURE__ */ jsxs2("div", { className: "row align-items-center", children: [
250
244
  /* @__PURE__ */ jsx7("div", { className: "col", children: props.header }),
251
245
  onToggle && /* @__PURE__ */ jsx7("div", { className: "col text-end", children: /* @__PURE__ */ jsx7(
252
246
  "span",
@@ -296,10 +290,10 @@ import Box from "@mui/material/Box";
296
290
  import { Alert, Collapse, MenuItem } from "@mui/material";
297
291
 
298
292
  // src/CmrComponents/label/Label.tsx
299
- import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
293
+ import { jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
300
294
  var CmrLabel = (props) => {
301
295
  const { children, required = false } = props;
302
- return /* @__PURE__ */ jsxs4("label", { className: "cmr-label", style: { fontSize: "16px", ...props.style }, children: [
296
+ return /* @__PURE__ */ jsxs3("label", { className: "cmr-label", style: { fontSize: "16px", ...props.style }, children: [
303
297
  children,
304
298
  required && /* @__PURE__ */ jsx8("span", { className: "asterik", children: "*" })
305
299
  ] });
@@ -307,7 +301,7 @@ var CmrLabel = (props) => {
307
301
  var Label_default = CmrLabel;
308
302
 
309
303
  // src/CmrComponents/upload/UploadWindow.tsx
310
- import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
304
+ import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
311
305
  function CmrUploadWindow({
312
306
  upload,
313
307
  open,
@@ -539,11 +533,11 @@ function CmrUploadWindow({
539
533
  const fileElem = document.getElementById("file-window");
540
534
  loadFiles(fileElem.files);
541
535
  };
542
- return /* @__PURE__ */ jsx9("div", { children: /* @__PURE__ */ jsxs5(Dialog, { open, onClose: handleClose, children: [
536
+ return /* @__PURE__ */ jsx9("div", { children: /* @__PURE__ */ jsxs4(Dialog, { open, onClose: handleClose, children: [
543
537
  /* @__PURE__ */ jsx9(DialogTitle, { children: "File Upload" }),
544
- /* @__PURE__ */ jsxs5(DialogContent, { children: [
538
+ /* @__PURE__ */ jsxs4(DialogContent, { children: [
545
539
  /* @__PURE__ */ jsx9(DialogContentText, {}),
546
- /* @__PURE__ */ jsxs5(DialogContent, { dividers: true, children: [
540
+ /* @__PURE__ */ jsxs4(DialogContent, { dividers: true, children: [
547
541
  /* @__PURE__ */ jsx9(
548
542
  Box,
549
543
  {
@@ -554,7 +548,7 @@ function CmrUploadWindow({
554
548
  borderRadius: "5pt",
555
549
  borderColor: uploadBoxWarning == void 0 ? "lightGray" : "#BA3C3C"
556
550
  },
557
- children: /* @__PURE__ */ jsx9(Typography, { component: "div", style: { height: "100%" }, children: /* @__PURE__ */ jsxs5(
551
+ children: /* @__PURE__ */ jsx9(Typography, { component: "div", style: { height: "100%" }, children: /* @__PURE__ */ jsxs4(
558
552
  Box,
559
553
  {
560
554
  style: {
@@ -567,7 +561,7 @@ function CmrUploadWindow({
567
561
  onClick: fileInputClick,
568
562
  ref: fileInput,
569
563
  children: [
570
- /* @__PURE__ */ jsxs5(Typography, { variant: "body1", align: "center", style: { marginTop: "auto" }, children: [
564
+ /* @__PURE__ */ jsxs4(Typography, { variant: "body1", align: "center", style: { marginTop: "auto" }, children: [
571
565
  "Drag & Drop or Click to Upload Your File Here ",
572
566
  /* @__PURE__ */ jsx9("sup", { children: "*" })
573
567
  ] }),
@@ -588,8 +582,8 @@ function CmrUploadWindow({
588
582
  onChange: loadSelectedFiles
589
583
  }
590
584
  ),
591
- /* @__PURE__ */ jsxs5(Box, { component: "form", sx: { "& .MuiTextField-root": { m: 2, width: "25ch", mb: 0 } }, children: [
592
- /* @__PURE__ */ jsxs5("div", { children: [
585
+ /* @__PURE__ */ jsxs4(Box, { component: "form", sx: { "& .MuiTextField-root": { m: 2, width: "25ch", mb: 0 } }, children: [
586
+ /* @__PURE__ */ jsxs4("div", { children: [
593
587
  template.showFileName && /* @__PURE__ */ jsx9(
594
588
  TextField,
595
589
  {
@@ -614,7 +608,7 @@ function CmrUploadWindow({
614
608
  }
615
609
  )
616
610
  ] }),
617
- /* @__PURE__ */ jsxs5("div", { children: [
611
+ /* @__PURE__ */ jsxs4("div", { children: [
618
612
  template.showFileSize && /* @__PURE__ */ jsx9(
619
613
  TextField,
620
614
  {
@@ -630,7 +624,7 @@ function CmrUploadWindow({
630
624
  ] })
631
625
  ] })
632
626
  ] }),
633
- /* @__PURE__ */ jsxs5(DialogActions, { children: [
627
+ /* @__PURE__ */ jsxs4(DialogActions, { children: [
634
628
  /* @__PURE__ */ jsx9(
635
629
  Button2,
636
630
  {
@@ -656,7 +650,7 @@ function CmrUploadWindow({
656
650
 
657
651
  // src/CmrComponents/upload/Upload.tsx
658
652
  import axios from "axios";
659
- import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
653
+ import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
660
654
  var CmrUpload = (props) => {
661
655
  let [open, setOpen] = useState4(false);
662
656
  let [uploading, setUploading] = useState4(false);
@@ -729,8 +723,8 @@ var CmrUpload = (props) => {
729
723
  return props.uploadFailed();
730
724
  return 0;
731
725
  }
732
- return /* @__PURE__ */ jsxs6(React5.Fragment, { children: [
733
- !uploading ? /* @__PURE__ */ jsxs6(
726
+ return /* @__PURE__ */ jsxs5(React5.Fragment, { children: [
727
+ !uploading ? /* @__PURE__ */ jsxs5(
734
728
  Button3,
735
729
  {
736
730
  fullWidth: props.fullWidth,
@@ -747,7 +741,7 @@ var CmrUpload = (props) => {
747
741
  " "
748
742
  ]
749
743
  }
750
- ) : /* @__PURE__ */ jsxs6(Button3, { fullWidth: props.fullWidth, style: props.style, variant: "contained", sx: { overflowWrap: "inherit" }, color: "primary", disabled: true, children: [
744
+ ) : /* @__PURE__ */ jsxs5(Button3, { fullWidth: props.fullWidth, style: props.style, variant: "contained", sx: { overflowWrap: "inherit" }, color: "primary", disabled: true, children: [
751
745
  "Uploading ",
752
746
  progress,
753
747
  "%"
@@ -778,7 +772,7 @@ import DialogActions2 from "@mui/material/DialogActions";
778
772
  import DialogContent2 from "@mui/material/DialogContent";
779
773
  import DialogTitle2 from "@mui/material/DialogTitle";
780
774
  import { useEffect as useEffect2 } from "react";
781
- import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
775
+ import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
782
776
  function CmrNameDialog(props) {
783
777
  let { originalName, open, setOpen } = props;
784
778
  const [helperText, setHelperText] = React6.useState("");
@@ -818,7 +812,7 @@ function CmrNameDialog(props) {
818
812
  setHelperText("");
819
813
  }
820
814
  };
821
- return /* @__PURE__ */ jsx11("div", { children: /* @__PURE__ */ jsxs7(
815
+ return /* @__PURE__ */ jsx11("div", { children: /* @__PURE__ */ jsxs6(
822
816
  Dialog2,
823
817
  {
824
818
  open,
@@ -826,7 +820,7 @@ function CmrNameDialog(props) {
826
820
  fullWidth: true,
827
821
  maxWidth: "xs",
828
822
  children: [
829
- /* @__PURE__ */ jsx11(DialogTitle2, { children: /* @__PURE__ */ jsxs7(Typography2, { children: [
823
+ /* @__PURE__ */ jsx11(DialogTitle2, { children: /* @__PURE__ */ jsxs6(Typography2, { children: [
830
824
  " Rename the File ",
831
825
  originalName,
832
826
  " as:"
@@ -849,7 +843,7 @@ function CmrNameDialog(props) {
849
843
  helperText
850
844
  }
851
845
  ) }),
852
- /* @__PURE__ */ jsxs7(DialogActions2, { children: [
846
+ /* @__PURE__ */ jsxs6(DialogActions2, { children: [
853
847
  /* @__PURE__ */ jsx11(CmrButton_default, { variant: "outlined", onClick: handleClose, children: "Cancel" }),
854
848
  /* @__PURE__ */ jsx11(CmrButton_default, { variant: "contained", color: "primary", onClick: handleConfirm, children: "Confirm" })
855
849
  ] })
@@ -864,7 +858,7 @@ import DialogActions3 from "@mui/material/DialogActions";
864
858
  import DialogContent3 from "@mui/material/DialogContent";
865
859
  import DialogContentText2 from "@mui/material/DialogContentText";
866
860
  import DialogTitle3 from "@mui/material/DialogTitle";
867
- import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
861
+ import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
868
862
  function CmrConfirmation({
869
863
  name,
870
864
  message,
@@ -892,11 +886,11 @@ function CmrConfirmation({
892
886
  cancelCallback();
893
887
  handleClose();
894
888
  };
895
- return /* @__PURE__ */ jsxs8(Dialog3, { open, onClose: handleClose, children: [
889
+ return /* @__PURE__ */ jsxs7(Dialog3, { open, onClose: handleClose, children: [
896
890
  /* @__PURE__ */ jsx12(DialogTitle3, { children: name ? name : "Confirmation" }),
897
- /* @__PURE__ */ jsxs8(DialogContent3, { sx: { width }, children: [
891
+ /* @__PURE__ */ jsxs7(DialogContent3, { sx: { width }, children: [
898
892
  /* @__PURE__ */ jsx12(DialogContentText2, { alignContent: "center", children: message }),
899
- /* @__PURE__ */ jsxs8(DialogActions3, { className: "mt-4", children: [
893
+ /* @__PURE__ */ jsxs7(DialogActions3, { className: "mt-4", children: [
900
894
  cancellable && /* @__PURE__ */ jsx12(CmrButton_default, { variant: "outlined", onClick: handleCancel, children: cancelText }),
901
895
  extraButtons.map((btn, idx) => /* @__PURE__ */ jsx12(
902
896
  CmrButton_default,
@@ -925,7 +919,7 @@ import DialogActions4 from "@mui/material/DialogActions";
925
919
  import DialogContent4 from "@mui/material/DialogContent";
926
920
  import DialogContentText3 from "@mui/material/DialogContentText";
927
921
  import DialogTitle4 from "@mui/material/DialogTitle";
928
- import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
922
+ import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
929
923
  function CmrDeletionDialog(props) {
930
924
  const [open, setOpen] = React7.useState(true);
931
925
  const [text, setText] = React7.useState("");
@@ -944,9 +938,9 @@ function CmrDeletionDialog(props) {
944
938
  const handleTextFieldChange = (e) => {
945
939
  setText(e.target.value);
946
940
  };
947
- return /* @__PURE__ */ jsx13("div", { children: /* @__PURE__ */ jsxs9(Dialog4, { open, onClose: handleClose, children: [
941
+ return /* @__PURE__ */ jsx13("div", { children: /* @__PURE__ */ jsxs8(Dialog4, { open, onClose: handleClose, children: [
948
942
  /* @__PURE__ */ jsx13(DialogTitle4, { children: "Confirmation" }),
949
- /* @__PURE__ */ jsxs9(DialogContent4, { children: [
943
+ /* @__PURE__ */ jsxs8(DialogContent4, { children: [
950
944
  /* @__PURE__ */ jsx13(DialogContentText3, { children: "To delete the files, please type your full name below and confirm." }),
951
945
  /* @__PURE__ */ jsx13(
952
946
  TextField3,
@@ -963,7 +957,7 @@ function CmrDeletionDialog(props) {
963
957
  }
964
958
  )
965
959
  ] }),
966
- /* @__PURE__ */ jsxs9(DialogActions4, { children: [
960
+ /* @__PURE__ */ jsxs8(DialogActions4, { children: [
967
961
  /* @__PURE__ */ jsx13("button", { className: "btn btn-secondary", onClick: handleClose, children: "Cancel" }),
968
962
  /* @__PURE__ */ jsx13("button", { className: "btn btn-danger", onClick: handleConfirm, children: "Confirm" })
969
963
  ] })
@@ -980,7 +974,7 @@ import DialogContentText4 from "@mui/material/DialogContentText";
980
974
  import DialogTitle5 from "@mui/material/DialogTitle";
981
975
  import { InputAdornment } from "@mui/material";
982
976
  import { useEffect as useEffect3 } from "react";
983
- import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
977
+ import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
984
978
  function CmrEditConfirmation({
985
979
  name,
986
980
  message,
@@ -1011,9 +1005,9 @@ function CmrEditConfirmation({
1011
1005
  cancelCallback(text + suffix);
1012
1006
  handleClose();
1013
1007
  };
1014
- return /* @__PURE__ */ jsxs10(Dialog5, { maxWidth: "xs", fullWidth: true, open, onClose: handleCancel, children: [
1008
+ return /* @__PURE__ */ jsxs9(Dialog5, { maxWidth: "xs", fullWidth: true, open, onClose: handleCancel, children: [
1015
1009
  /* @__PURE__ */ jsx14(DialogTitle5, { children: name ? name : "Confirmation" }),
1016
- /* @__PURE__ */ jsxs10(DialogContent5, { children: [
1010
+ /* @__PURE__ */ jsxs9(DialogContent5, { children: [
1017
1011
  /* @__PURE__ */ jsx14(DialogContentText4, { alignContent: "center", children: message }),
1018
1012
  /* @__PURE__ */ jsx14(DialogActions5, { children: /* @__PURE__ */ jsx14(
1019
1013
  TextField4,
@@ -1027,7 +1021,7 @@ function CmrEditConfirmation({
1027
1021
  onChange: (e) => setText(e.target.value)
1028
1022
  }
1029
1023
  ) }),
1030
- /* @__PURE__ */ jsxs10(DialogActions5, { children: [
1024
+ /* @__PURE__ */ jsxs9(DialogActions5, { children: [
1031
1025
  cancellable && /* @__PURE__ */ jsx14(CmrButton_default, { variant: "outlined", onClick: handleCancel, children: "Cancel" }),
1032
1026
  /* @__PURE__ */ jsx14(CmrButton_default, { variant: "contained", color, onClick: handleConfirm, children: "Confirm" })
1033
1027
  ] })
@@ -1043,7 +1037,7 @@ import Container from "@mui/material/Container";
1043
1037
  import Typography3 from "@mui/material/Typography";
1044
1038
  import Box3 from "@mui/material/Box";
1045
1039
  import { cloneElement as cloneElement2 } from "react";
1046
- import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
1040
+ import { jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
1047
1041
  function CustomTabPanel(props) {
1048
1042
  const { children, value, index, ...other } = props;
1049
1043
  return /* @__PURE__ */ jsx15(
@@ -1071,7 +1065,7 @@ function CmrTabs(props) {
1071
1065
  if (props.onTabSelected)
1072
1066
  props.onTabSelected(newValue);
1073
1067
  };
1074
- return /* @__PURE__ */ jsxs11(
1068
+ return /* @__PURE__ */ jsxs10(
1075
1069
  Container,
1076
1070
  {
1077
1071
  maxWidth: "lg",
@@ -1146,7 +1140,7 @@ import DialogTitle6 from "@mui/material/DialogTitle";
1146
1140
  import DialogContent6 from "@mui/material/DialogContent";
1147
1141
  import DialogContentText5 from "@mui/material/DialogContentText";
1148
1142
  import Box4 from "@mui/material/Box";
1149
- import { jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
1143
+ import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
1150
1144
  function checkExtension(filename, allowed) {
1151
1145
  if (!filename || !allowed)
1152
1146
  return true;
@@ -1173,9 +1167,9 @@ var CMRSelectUpload = (props) => {
1173
1167
  props.onSelected(props.fileSelection[fileIndex]);
1174
1168
  setOpen(false);
1175
1169
  };
1176
- const selectionDialog = /* @__PURE__ */ jsxs12(Dialog6, { open, onClose: handleClose, children: [
1170
+ const selectionDialog = /* @__PURE__ */ jsxs11(Dialog6, { open, onClose: handleClose, children: [
1177
1171
  /* @__PURE__ */ jsx18(DialogTitle6, { children: "Select or Upload" }),
1178
- /* @__PURE__ */ jsxs12(DialogContent6, { sx: { width: 520 }, children: [
1172
+ /* @__PURE__ */ jsxs11(DialogContent6, { sx: { width: 520 }, children: [
1179
1173
  /* @__PURE__ */ jsx18(DialogContentText5, { sx: { pl: 1, pr: 1, pb: 0 }, children: uploading ? "Please wait for the upload to finish." : "" }),
1180
1174
  /* @__PURE__ */ jsx18(Box4, { sx: { p: 1 }, children: /* @__PURE__ */ jsx18(
1181
1175
  Select,
@@ -1200,7 +1194,7 @@ var CMRSelectUpload = (props) => {
1200
1194
  styles: props.selectStyles
1201
1195
  }
1202
1196
  ) }),
1203
- /* @__PURE__ */ jsxs12(Box4, { sx: { pt: 2, justifyContent: "center", display: "flex", padding: "8px" }, children: [
1197
+ /* @__PURE__ */ jsxs11(Box4, { sx: { pt: 2, justifyContent: "center", display: "flex", padding: "8px" }, children: [
1204
1198
  /* @__PURE__ */ jsx18(Button4, { fullWidth: true, sx: { marginRight: "8px" }, variant: "outlined", onClick: handleClose, children: " Cancel" }),
1205
1199
  fileIndex !== -1 && !uploading && /* @__PURE__ */ jsx18(Button4, { fullWidth: true, variant: "contained", onClick: onSet, children: "OK" }),
1206
1200
  fileIndex == -1 && /* @__PURE__ */ jsx18(
@@ -1232,8 +1226,8 @@ var CMRSelectUpload = (props) => {
1232
1226
  ] })
1233
1227
  ] })
1234
1228
  ] });
1235
- return /* @__PURE__ */ jsxs12(Fragment, { children: [
1236
- uploading ? /* @__PURE__ */ jsxs12(Button4, { variant: "contained", style: { ...props.style, textTransform: "none" }, sx: { overflowWrap: "inherit" }, color: "primary", disabled: uploading, children: [
1229
+ return /* @__PURE__ */ jsxs11(Fragment, { children: [
1230
+ uploading ? /* @__PURE__ */ jsxs11(Button4, { variant: "contained", style: { ...props.style, textTransform: "none" }, sx: { overflowWrap: "inherit" }, color: "primary", disabled: uploading, children: [
1237
1231
  "Uploading ",
1238
1232
  progress,
1239
1233
  "%"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudmr-ux",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "author": "erosmontin@gmail.com",
5
5
  "license": "MIT",
6
6
  "repository": "erosmontin/cloudmr-ux",