cloudmr-ux 1.7.8 → 1.8.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/dist/index.d.ts CHANGED
@@ -248,6 +248,7 @@ interface CMRSelectUploadProps extends CMRUploadProps {
248
248
  onSelected: (file?: UploadedFile) => void;
249
249
  chosenFile?: string;
250
250
  buttonText?: string;
251
+ selectStyles?: any;
251
252
  /**
252
253
  * Enforces the extension of selected files
253
254
  */
package/dist/index.js CHANGED
@@ -1137,7 +1137,7 @@ var CMRSelectUpload = (props) => {
1137
1137
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_DialogTitle6.default, { children: "Select or Upload" }),
1138
1138
  /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_DialogContent6.default, { sx: { width: 520 }, children: [
1139
1139
  /* @__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." : "" }),
1140
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_DialogContent6.default, { sx: { p: 1 }, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1140
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_Box3.default, { sx: { p: 1 }, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1141
1141
  import_react_select.default,
1142
1142
  {
1143
1143
  isDisabled: uploading,
@@ -1154,21 +1154,9 @@ var CMRSelectUpload = (props) => {
1154
1154
  selectFileIndex(-1);
1155
1155
  }
1156
1156
  },
1157
- styles: {
1158
- container: (base) => ({ ...base, width: "100%" }),
1159
- menu: (base) => ({
1160
- ...base,
1161
- zIndex: 9999,
1162
- width: "100%"
1163
- // Ensure the dropdown matches container width
1164
- }),
1165
- menuList: (base) => ({
1166
- ...base,
1167
- maxHeight: "300px",
1168
- // Optional: prevent scroll from being too short
1169
- overflowY: "auto"
1170
- })
1171
- }
1157
+ menuPortalTarget: document.body,
1158
+ menuPosition: "fixed",
1159
+ styles: props.selectStyles
1172
1160
  }
1173
1161
  ) }),
1174
1162
  /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_Box3.default, { sx: { pt: 2, justifyContent: "center", display: "flex", padding: "8px" }, children: [
package/dist/index.mjs CHANGED
@@ -1089,7 +1089,7 @@ var CMRSelectUpload = (props) => {
1089
1089
  /* @__PURE__ */ jsx18(DialogTitle6, { children: "Select or Upload" }),
1090
1090
  /* @__PURE__ */ jsxs12(DialogContent6, { sx: { width: 520 }, children: [
1091
1091
  /* @__PURE__ */ jsx18(DialogContentText5, { sx: { pl: 1, pr: 1, pb: 0 }, children: uploading ? "Please wait for the upload to finish." : "" }),
1092
- /* @__PURE__ */ jsx18(DialogContent6, { sx: { p: 1 }, children: /* @__PURE__ */ jsx18(
1092
+ /* @__PURE__ */ jsx18(Box4, { sx: { p: 1 }, children: /* @__PURE__ */ jsx18(
1093
1093
  Select2,
1094
1094
  {
1095
1095
  isDisabled: uploading,
@@ -1106,21 +1106,9 @@ var CMRSelectUpload = (props) => {
1106
1106
  selectFileIndex(-1);
1107
1107
  }
1108
1108
  },
1109
- styles: {
1110
- container: (base) => ({ ...base, width: "100%" }),
1111
- menu: (base) => ({
1112
- ...base,
1113
- zIndex: 9999,
1114
- width: "100%"
1115
- // Ensure the dropdown matches container width
1116
- }),
1117
- menuList: (base) => ({
1118
- ...base,
1119
- maxHeight: "300px",
1120
- // Optional: prevent scroll from being too short
1121
- overflowY: "auto"
1122
- })
1123
- }
1109
+ menuPortalTarget: document.body,
1110
+ menuPosition: "fixed",
1111
+ styles: props.selectStyles
1124
1112
  }
1125
1113
  ) }),
1126
1114
  /* @__PURE__ */ jsxs12(Box4, { sx: { pt: 2, justifyContent: "center", display: "flex", padding: "8px" }, children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudmr-ux",
3
- "version": "1.7.8",
3
+ "version": "1.8.0",
4
4
  "author": "erosmontin@gmail.com",
5
5
  "license": "MIT",
6
6
  "repository": "erosmontin/cloudmr-ux",