cloudmr-ux 1.3.7 → 1.3.9

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.js CHANGED
@@ -408,7 +408,13 @@ function CmrUploadWindow({
408
408
  setUpBtnText("Uploading");
409
409
  };
410
410
  const changeFileName = (e) => {
411
- setFileAlias(e.target.value);
411
+ const value = e.target.value;
412
+ setFileAlias(value);
413
+ if (INVALID_ALIAS_REGEX.test(value)) {
414
+ setUploadBoxWarning("Alias cannot contain space, . , : % > <");
415
+ } else {
416
+ setUploadBoxWarning(void 0);
417
+ }
412
418
  };
413
419
  function loadFiles(files) {
414
420
  if (files.length == 0) {
@@ -601,7 +607,6 @@ function CmrUploadWindow({
601
607
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
602
608
  import_Button.default,
603
609
  {
604
- color: "inherit",
605
610
  variant: "outlined",
606
611
  disabled: UpBtnDisabled,
607
612
  onClick: handleClose,
package/dist/index.mjs CHANGED
@@ -360,7 +360,13 @@ function CmrUploadWindow({
360
360
  setUpBtnText("Uploading");
361
361
  };
362
362
  const changeFileName = (e) => {
363
- setFileAlias(e.target.value);
363
+ const value = e.target.value;
364
+ setFileAlias(value);
365
+ if (INVALID_ALIAS_REGEX.test(value)) {
366
+ setUploadBoxWarning("Alias cannot contain space, . , : % > <");
367
+ } else {
368
+ setUploadBoxWarning(void 0);
369
+ }
364
370
  };
365
371
  function loadFiles(files) {
366
372
  if (files.length == 0) {
@@ -553,7 +559,6 @@ function CmrUploadWindow({
553
559
  /* @__PURE__ */ jsx9(
554
560
  Button2,
555
561
  {
556
- color: "inherit",
557
562
  variant: "outlined",
558
563
  disabled: UpBtnDisabled,
559
564
  onClick: handleClose,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudmr-ux",
3
- "version": "1.3.7",
3
+ "version": "1.3.9",
4
4
  "author": "erosmontin@gmail.com",
5
5
  "license": "MIT",
6
6
  "repository": "erosmontin/cloudmr-ux",