@m4l/components 9.3.38-BE20251203-beta.2 → 9.3.38-JT03122025.beta.1

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.
Files changed (71) hide show
  1. package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +3 -3
  2. package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts +1 -1
  3. package/components/Chip/slots/ChipSlots.d.ts +1 -1
  4. package/components/EditLabel/slots/EditLabelSlots.d.ts +1 -1
  5. package/components/HelperError/slots/HelperErrorSlots.d.ts +1 -1
  6. package/components/ImageText/slots/ImageTextSlots.d.ts +2 -2
  7. package/components/Label/slots/LabelSlots.d.ts +2 -2
  8. package/components/LoadingError/slots/LoadingErrorSlots.d.ts +1 -1
  9. package/components/Pager/slots/PagerSlots.d.ts +3 -3
  10. package/components/PaperForm/slots/PaperFormSlots.d.ts +1 -1
  11. package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +1 -1
  12. package/{helpers → components/Stepper/helpers}/getStepsAndValidationSchema/getStepsAndValidationSchema.d.ts +4 -4
  13. package/{helpers → components/Stepper/helpers}/getStepsAndValidationSchema/getStepsAndValidationSchema.js +6 -12
  14. package/{helpers → components/Stepper/helpers}/getStepsAndValidationSchema/types.d.ts +6 -3
  15. package/components/Stepper/hooks/useDynamicValidation/index.d.ts +2 -1
  16. package/components/Stepper/hooks/useDynamicValidation/index.js +31 -6
  17. package/components/Stepper/index.d.ts +1 -0
  18. package/components/Stepper/slots/StepperSlot.d.ts +4 -4
  19. package/components/TabsNavigator/slots/TabsNavigatorSlots.d.ts +2 -2
  20. package/components/ToastContainer/slots/toastContainerSlots.d.ts +2 -2
  21. package/components/WindowBase/slots/WindowBaseSlots.d.ts +2 -2
  22. package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +1 -1
  23. package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.d.ts +1 -1
  24. package/components/formatters/ConcatenatedFormatter/slots/ConcatenatedFormatterSlots.d.ts +1 -1
  25. package/components/formatters/DateFormatter/slots/DateFormatterSlots.d.ts +1 -1
  26. package/components/formatters/DistanceToNowFormatter/slots/DistanceToNowFormatterSlots.d.ts +1 -1
  27. package/components/formatters/ImageFormatter/slots/ImageFormatterSlots.d.ts +1 -1
  28. package/components/formatters/PeriodFormatter/slots/PeriodFormatterSlots.d.ts +1 -1
  29. package/components/formatters/PointsFormatter/slots/ointsFormatterSlots.d.ts +1 -1
  30. package/components/formatters/PriceFormatter/slots/PriceFormatterSlots.d.ts +1 -1
  31. package/components/formatters/UncertaintyFormatter/slots/UncertaintyFormatterSlots.d.ts +1 -1
  32. package/components/hook-form/RHFActionsGroup/RHFActionsGroup.js +2 -2
  33. package/components/hook-form/RHFAutocomplete/RHFAutocomplete.js +2 -2
  34. package/components/hook-form/RHFCheckbox/RHFCheckbox.js +2 -2
  35. package/components/hook-form/RHFColorPicker/RFHColorPicker.js +2 -2
  36. package/components/hook-form/RHFDatePicker/RHFDatePicker.js +2 -2
  37. package/components/hook-form/RHFDateTime/RHFDateTime.js +2 -2
  38. package/components/hook-form/RHFNumberInput/RHFNumberInput.js +2 -2
  39. package/components/hook-form/RHFPeriod/RHFPeriod.js +2 -2
  40. package/components/hook-form/RHFPeriod/subcomponents/Period/Period.js +0 -1
  41. package/components/hook-form/RHFSelect/RHFSelect.js +2 -2
  42. package/components/hook-form/RHFTextField/RHFTextField.js +2 -2
  43. package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js +2 -2
  44. package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.js +1 -3
  45. package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +1 -1
  46. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.js +3 -4
  47. package/components/hook-form/RHFUpload/RHFUploadImage/types.d.ts +0 -4
  48. package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.js +4 -6
  49. package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +5 -5
  50. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/Preview/Preview.js +2 -3
  51. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/Preview/types.d.ts +1 -1
  52. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/UploadSingleFile/index.js +4 -13
  53. package/components/hook-form/RHFUpload/RHFUploadSingleFile/types.d.ts +0 -4
  54. package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +1 -1
  55. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +2 -2
  56. package/components/mui_extended/Button/slots/ButtonSlots.d.ts +1 -1
  57. package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +1 -1
  58. package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +1 -1
  59. package/components/mui_extended/NavLink/slots/NavLinkSlots.d.ts +1 -1
  60. package/components/mui_extended/RadioButton/slots/RadioButtonSlots.d.ts +1 -1
  61. package/components/mui_extended/Select/slots/SelectSlots.d.ts +3 -3
  62. package/components/mui_extended/Tab/Slots/TabSlots.d.ts +1 -1
  63. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +3 -3
  64. package/index.d.ts +0 -1
  65. package/index.js +24 -24
  66. package/package.json +1 -1
  67. package/helpers/index.d.ts +0 -1
  68. package/helpers/index.js +0 -1
  69. /package/{helpers → components/Stepper/helpers}/getStepsAndValidationSchema/index.d.ts +0 -0
  70. /package/{helpers → components/Stepper/helpers}/getStepsAndValidationSchema/index.js +0 -0
  71. /package/{helpers → components/Stepper/helpers}/getStepsAndValidationSchema/types.js +0 -0
@@ -38,7 +38,7 @@ const RHFCheckbox = forwardRef(function RHFCheckbox2(props, ref) {
38
38
  {
39
39
  name,
40
40
  control,
41
- render: ({ field: { onChange, value }, fieldState: { error }, formState: { isSubmitting } }) => {
41
+ render: ({ field: { onChange, value }, fieldState: { error } }) => {
42
42
  return /* @__PURE__ */ jsxs(Fragment, { children: [
43
43
  label && /* @__PURE__ */ jsx(
44
44
  LabelComponent,
@@ -59,7 +59,7 @@ const RHFCheckbox = forwardRef(function RHFCheckbox2(props, ref) {
59
59
  size: adjustedSize,
60
60
  onChange,
61
61
  checked: value,
62
- disabled: disabled || isSubmitting,
62
+ disabled: disabled ? true : false,
63
63
  disableRipple: true,
64
64
  inlineText,
65
65
  htmlFor: finalId,
@@ -45,7 +45,7 @@ const RHFColorPicker = (props) => {
45
45
  name,
46
46
  control,
47
47
  defaultValue: "",
48
- render: ({ field: { value, onChange }, fieldState: { error }, formState: { isSubmitting } }) => /* @__PURE__ */ jsx(
48
+ render: ({ field: { value, onChange }, fieldState: { error } }) => /* @__PURE__ */ jsx(
49
49
  ColorPickerField,
50
50
  {
51
51
  value,
@@ -56,7 +56,7 @@ const RHFColorPicker = (props) => {
56
56
  mandatory,
57
57
  mandatoryMessage,
58
58
  helperMessage,
59
- disabled: disabled || isSubmitting,
59
+ disabled,
60
60
  isSkeleton,
61
61
  className,
62
62
  instaceDataTestId,
@@ -40,7 +40,7 @@ const RHFDatePicker = (props) => {
40
40
  name,
41
41
  control,
42
42
  defaultValue: null,
43
- render: ({ field: { value, onChange }, fieldState: { error }, formState: { isSubmitting } }) => /* @__PURE__ */ jsxs(Fragment, { children: [
43
+ render: ({ field: { value, onChange }, fieldState: { error } }) => /* @__PURE__ */ jsxs(Fragment, { children: [
44
44
  label && /* @__PURE__ */ jsx(
45
45
  Label,
46
46
  {
@@ -62,7 +62,7 @@ const RHFDatePicker = (props) => {
62
62
  readOnly,
63
63
  error,
64
64
  size: currentSize,
65
- disabled: disabled || isSubmitting,
65
+ disabled,
66
66
  className
67
67
  }
68
68
  ),
@@ -43,7 +43,7 @@ function RHFDateTime(props) {
43
43
  {
44
44
  name: nameRHF,
45
45
  control,
46
- render: ({ field: { value, onChange, ref }, fieldState: { error }, formState: { isSubmitting } }) => {
46
+ render: ({ field: { value, onChange, ref }, fieldState: { error } }) => {
47
47
  return /* @__PURE__ */ jsxs(Fragment, { children: [
48
48
  label && /* @__PURE__ */ jsx(
49
49
  Label,
@@ -62,7 +62,7 @@ function RHFDateTime(props) {
62
62
  {
63
63
  variant,
64
64
  size: adjustedSize,
65
- disabled: disabled || isSubmitting,
65
+ disabled,
66
66
  inputRef: ref,
67
67
  slotProps: {
68
68
  field: {
@@ -42,7 +42,7 @@ const RHFNumberInput = (props) => {
42
42
  {
43
43
  name,
44
44
  control,
45
- render: ({ field: { value, onChange }, fieldState: { error }, formState: { isSubmitting } }) => {
45
+ render: ({ field: { value, onChange }, fieldState: { error } }) => {
46
46
  const onChangeLocal = (_event, newValue) => {
47
47
  onChange(newValue);
48
48
  };
@@ -69,7 +69,7 @@ const RHFNumberInput = (props) => {
69
69
  value,
70
70
  onChange: onChangeLocal,
71
71
  variant,
72
- disabled: disabled || isSubmitting,
72
+ disabled,
73
73
  startAdornment,
74
74
  endAdornment,
75
75
  error: !!error,
@@ -47,7 +47,7 @@ const RHFPeriod = (props) => {
47
47
  name: name || "",
48
48
  control,
49
49
  defaultValue: { selPeriodTime: "", singleValue: "" },
50
- render: ({ field: { onChange, value }, fieldState: { error }, formState: { isSubmitting } }) => {
50
+ render: ({ field: { onChange, value }, fieldState: { error } }) => {
51
51
  return /* @__PURE__ */ jsxs(Fragment, { children: [
52
52
  label && /* @__PURE__ */ jsx(
53
53
  Label,
@@ -64,7 +64,7 @@ const RHFPeriod = (props) => {
64
64
  {
65
65
  name,
66
66
  control,
67
- disabled: disabled || isSubmitting,
67
+ disabled,
68
68
  value,
69
69
  onChange,
70
70
  size
@@ -124,7 +124,6 @@ const Period = (props) => {
124
124
  variant: "outlined",
125
125
  value: singleValue,
126
126
  withDecimal: true,
127
- disabled,
128
127
  onChange: (_event, newValue) => {
129
128
  onTotalChange(selPeriodTime, newValue);
130
129
  }
@@ -36,7 +36,7 @@ const RHFSelect = (props) => {
36
36
  {
37
37
  name,
38
38
  control,
39
- render: ({ field: { value, onChange, ref }, fieldState: { error }, formState: { isSubmitting } }) => {
39
+ render: ({ field: { value, onChange, ref }, fieldState: { error } }) => {
40
40
  const onChangeLocal = (opt) => {
41
41
  if (!opt) {
42
42
  onChange(null);
@@ -75,7 +75,7 @@ const RHFSelect = (props) => {
75
75
  variant,
76
76
  value,
77
77
  onChange: onChangeLocal,
78
- disabled: disabled || isSubmitting,
78
+ disabled,
79
79
  className: RHFSELECT_CLASSES.select,
80
80
  error: Boolean(error),
81
81
  placeholder,
@@ -60,7 +60,7 @@ const RHFTextField = forwardRef((props, ref) => {
60
60
  {
61
61
  name,
62
62
  control,
63
- render: ({ field: { onChange, value, ref: inputRef }, fieldState: { error }, formState: { isSubmitting } }) => {
63
+ render: ({ field: { onChange, value, ref: inputRef }, fieldState: { error } }) => {
64
64
  const onInternalChange = (event) => {
65
65
  const finalValue = other.maxLength ? getLimitCharacters({ limitCharacters: other.maxLength, value: event.target.value }) : event.target.value;
66
66
  const stringValue = String(finalValue || "");
@@ -83,7 +83,7 @@ const RHFTextField = forwardRef((props, ref) => {
83
83
  TextFieldStyled,
84
84
  {
85
85
  ownerState: { ...ownerState, error: !!error },
86
- disabled: disabled || isSubmitting,
86
+ disabled,
87
87
  inputRef,
88
88
  ref,
89
89
  InputLabelProps: { shrink: true },
@@ -28,7 +28,7 @@ const RHFTextFieldPassword = (props) => {
28
28
  {
29
29
  name,
30
30
  control,
31
- render: ({ field: { onChange, value, ref }, fieldState: { error }, formState: { isSubmitting } }) => {
31
+ render: ({ field: { onChange, value, ref }, fieldState: { error } }) => {
32
32
  const onInternalChange = (event) => {
33
33
  const finalValue = other.maxLength ? getLimitCharacters({ limitCharacters: other.maxLength, value: event.target.value }) : event.target.value;
34
34
  const stringValue = String(finalValue || "");
@@ -56,7 +56,7 @@ const RHFTextFieldPassword = (props) => {
56
56
  type: showPassword ? "text" : "password",
57
57
  size,
58
58
  error: !!error,
59
- disabled: disabled || isSubmitting,
59
+ disabled,
60
60
  inputProps: {
61
61
  role: "textbox",
62
62
  "aria-label": name,
@@ -15,7 +15,6 @@ function RHFUploadImage(props) {
15
15
  mandatoryMessage,
16
16
  maxSize,
17
17
  helperMessage,
18
- disabled,
19
18
  ...other
20
19
  } = props;
21
20
  const { currentSize } = useComponentSize(size);
@@ -26,7 +25,7 @@ function RHFUploadImage(props) {
26
25
  {
27
26
  name,
28
27
  control,
29
- render: ({ field: { value, onChange }, fieldState: { error }, formState: { isSubmitting } }) => {
28
+ render: ({ field: { value, onChange }, fieldState: { error } }) => {
30
29
  const checkError = !!error && !value;
31
30
  return /* @__PURE__ */ jsxs(Fragment, { children: [
32
31
  label && /* @__PURE__ */ jsx(
@@ -57,7 +56,6 @@ function RHFUploadImage(props) {
57
56
  onChange(null);
58
57
  },
59
58
  error: checkError,
60
- disabled: disabled || isSubmitting,
61
59
  ...other,
62
60
  file: value,
63
61
  size: adjustedSize,
@@ -16,7 +16,7 @@ export declare const ContentImageTextStyled: import('@emotion/styled').StyledCom
16
16
  export declare const ContentMessageStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
17
17
  ownerState?: (Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown>) | undefined;
18
18
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
19
- export declare const TypographyStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../../mui_extended/Typography/types').TypographyProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "size" | "children" | "title" | "component" | "zIndex" | "id" | "disabled" | "paragraph" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "flex" | "hidden" | "color" | "left" | "right" | "bottom" | "top" | "content" | "style" | "position" | "ellipsis" | "padding" | "variant" | "borderRadius" | "width" | "display" | "borderColor" | "height" | "gap" | "minHeight" | "margin" | "overflow" | "boxShadow" | "minWidth" | "justifyContent" | "alignItems" | "paddingLeft" | "borderLeft" | "borderTop" | "maxWidth" | "flexDirection" | "paddingRight" | "borderRight" | "flexGrow" | "marginLeft" | "textOverflow" | "borderBottom" | "gridTemplateColumns" | "marginBottom" | "dataTestid" | "alignContent" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateRows" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginRight" | "marginTop" | "maxHeight" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingTop" | "rowGap" | "textAlign" | "translate" | "visibility" | "whiteSpace" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "className" | "classes" | "sx" | "p" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "htmlFor" | "gutterBottom" | "noWrap" | "variantMapping" | "skeletonWidth" | "skeletonRows" | keyof import('react').RefAttributes<HTMLSpanElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
19
+ export declare const TypographyStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../../mui_extended/Typography/types').TypographyProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>, "size" | "children" | "title" | "component" | "zIndex" | "id" | "disabled" | "paragraph" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "flex" | "hidden" | "color" | "left" | "right" | "bottom" | "top" | "ellipsis" | "content" | "style" | "position" | "padding" | "variant" | "borderRadius" | "width" | "display" | "borderColor" | "height" | "gap" | "minHeight" | "margin" | "overflow" | "boxShadow" | "minWidth" | "justifyContent" | "alignItems" | "paddingLeft" | "borderLeft" | "borderTop" | "maxWidth" | "flexDirection" | "paddingRight" | "borderRight" | "flexGrow" | "marginLeft" | "textOverflow" | "borderBottom" | "gridTemplateColumns" | "marginBottom" | "dataTestid" | "alignContent" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateRows" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginRight" | "marginTop" | "maxHeight" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingTop" | "rowGap" | "textAlign" | "translate" | "visibility" | "whiteSpace" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "className" | "classes" | "sx" | "p" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "htmlFor" | "gutterBottom" | "noWrap" | "variantMapping" | "skeletonWidth" | "skeletonRows" | keyof import('react').RefAttributes<HTMLSpanElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
20
20
  ownerState?: (Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown>) | undefined;
21
21
  }, {}, {}>;
22
22
  export declare const ButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../../mui_extended/Button').ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "className" | "classes" | "sx" | "form" | "label" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "skeletonWidth" | "startIcon" | "endIcon" | keyof import('react').RefAttributes<HTMLButtonElement> | "fullWidth" | "disableElevation"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown> & {
@@ -12,7 +12,7 @@ import { u as useComponentSize } from "../../../../../../hooks/useComponentSize/
12
12
  import { g as getComponentClasses } from "../../../../../../utils/getComponentSlotRoot.js";
13
13
  import { T as Typography } from "../../../../../mui_extended/Typography/Typography.js";
14
14
  const UploadImage = (props) => {
15
- const { file, size, onDrop, onRemove, maxSize, dataTestId, error = false, multiple, disabled, ...other } = props;
15
+ const { file, size, onDrop, onRemove, maxSize, dataTestId, error = false, multiple, ...other } = props;
16
16
  const { currentSize } = useComponentSize(size);
17
17
  const { toast } = useHostTools();
18
18
  const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
@@ -62,8 +62,7 @@ const UploadImage = (props) => {
62
62
  variant: "contained",
63
63
  icon: `${host_static_assets}/${environment_assets}/frontend/components/chip/assets/icons/closeSmall.svg`,
64
64
  onClick: onRemove,
65
- size: adjustedSize,
66
- disabled
65
+ size: adjustedSize
67
66
  }
68
67
  ),
69
68
  /* @__PURE__ */ jsx(
@@ -101,7 +100,7 @@ const UploadImage = (props) => {
101
100
  ] })
102
101
  ] })
103
102
  ] }),
104
- !file ? /* @__PURE__ */ jsx(ButtonStyled, { variant: "contained", color: "primary", onClick: open, label: getLabel(getUploadImageDictionary(COMPONENTS_DICTIONARY_KEYS.click_button)), size: adjustedSize, disabled }) : null
103
+ !file ? /* @__PURE__ */ jsx(ButtonStyled, { variant: "contained", color: "primary", onClick: open, label: getLabel(getUploadImageDictionary(COMPONENTS_DICTIONARY_KEYS.click_button)), size: adjustedSize }) : null
105
104
  ]
106
105
  }
107
106
  )
@@ -6,10 +6,6 @@ import { UploadImageProps } from './subcomponents/UploadImage/types';
6
6
  import { M4LOverridesStyleRules } from '../../../../@types/augmentations';
7
7
  export interface RHFUploadImageProps extends Omit<UploadImageProps, 'file' | 'onDrop' | 'onRemove'>, Omit<LabelProps, 'size' | 'error' | 'disabled' | 'children'> {
8
8
  name: string;
9
- /**
10
- * Si es true, el componente estará deshabilitado.
11
- */
12
- disabled?: boolean;
13
9
  }
14
10
  export type RHFUploadImageSlotsType = keyof typeof Slots;
15
11
  export type RHFUploadImageOwnerState = {
@@ -9,7 +9,7 @@ import { R as RHFUploadSingleFileSlots } from "./slots/RHFUploadSingleFileEnum.j
9
9
  import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
10
10
  function RHFUploadSingleFile(props) {
11
11
  const { control } = useFormContext();
12
- const { name, label, skeletonWidth, size, className, helperMessage, mandatory, mandatoryMessage, maxFileSize = DEFAULT_MAX_FILE_SIZE, dataTestId, accept = "*/*", disabled } = props;
12
+ const { name, label, skeletonWidth, size, className, helperMessage, mandatory, mandatoryMessage, maxFileSize = DEFAULT_MAX_FILE_SIZE, dataTestId, accept = "*/*" } = props;
13
13
  const { currentSize } = useComponentSize(size);
14
14
  const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
15
15
  const acceptObj = {
@@ -28,7 +28,7 @@ function RHFUploadSingleFile(props) {
28
28
  {
29
29
  name,
30
30
  control,
31
- render: ({ field: { value, onChange }, fieldState: { error }, formState: { isSubmitting } }) => {
31
+ render: ({ field: { value, onChange }, fieldState: { error } }) => {
32
32
  const errorUpload = !!error;
33
33
  return /* @__PURE__ */ jsxs(Fragment, { children: [
34
34
  label && /* @__PURE__ */ jsx(
@@ -41,8 +41,7 @@ function RHFUploadSingleFile(props) {
41
41
  mandatoryMessage,
42
42
  helperMessage,
43
43
  size: adjustedSize,
44
- skeletonWidth,
45
- disabled
44
+ skeletonWidth
46
45
  }
47
46
  ),
48
47
  /* @__PURE__ */ jsx(
@@ -52,8 +51,7 @@ function RHFUploadSingleFile(props) {
52
51
  accept: acceptObj,
53
52
  file: value,
54
53
  onChange,
55
- size: adjustedSize,
56
- disabled: disabled || isSubmitting
54
+ size: adjustedSize
57
55
  }
58
56
  ),
59
57
  errorUpload && /* @__PURE__ */ jsx(