@m4l/components 9.3.2-B04082025-beta.3 → 9.3.2-B11082025-beta.2

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 (232) hide show
  1. package/@types/types.d.ts +33 -3
  2. package/components/Card/Card.d.ts +7 -0
  3. package/components/Card/Card.styles.d.ts +2 -0
  4. package/components/Card/constants.d.ts +7 -0
  5. package/components/Card/helpers/getSizeSpacing.d.ts +7 -0
  6. package/components/Card/index.d.ts +1 -0
  7. package/components/Card/slots/CardEnum.d.ts +3 -0
  8. package/components/Card/slots/CardSlots.d.ts +3 -0
  9. package/components/Card/types.d.ts +59 -0
  10. package/components/DynamicFilter/DynamicFilter.styles.js +6 -2
  11. package/components/DynamicSort/DynamicSort.styles.js +6 -2
  12. package/components/ImageText/ImageText.d.ts +7 -0
  13. package/components/ImageText/ImageText.js +62 -0
  14. package/components/ImageText/ImageText.styles.d.ts +2 -0
  15. package/components/ImageText/{components/NoItemPrivileges/NoItemPrivilegesStyles.js → ImageText.styles.js} +21 -4
  16. package/components/ImageText/constants.d.ts +16 -0
  17. package/components/ImageText/constants.js +10 -0
  18. package/components/ImageText/index.d.ts +1 -3
  19. package/components/ImageText/slots/ImageTextEnum.d.ts +8 -0
  20. package/components/ImageText/slots/ImageTextEnum.js +12 -0
  21. package/components/ImageText/slots/ImageTextSlots.d.ts +18 -0
  22. package/components/ImageText/slots/ImageTextSlots.js +38 -0
  23. package/components/ImageText/types.d.ts +40 -0
  24. package/components/NoItemPrivileges/NoItemPrivileges.js +33 -0
  25. package/components/NoItemPrivileges/NoItemPrivilegesStyles.js +6 -0
  26. package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/constants.d.ts +0 -1
  27. package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/constants.js +3 -4
  28. package/components/NoItemPrivileges/slots/NoItemPrivilegesEnum.d.ts +3 -0
  29. package/components/NoItemPrivileges/slots/NoItemPrivilegesEnum.js +7 -0
  30. package/components/NoItemPrivileges/slots/NoItemPrivilegesSlots.d.ts +3 -0
  31. package/components/NoItemPrivileges/slots/NoItemPrivilegesSlots.js +12 -0
  32. package/components/NoItemPrivileges/test/NoItemPrivileges.test.d.ts +1 -0
  33. package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/types.d.ts +1 -1
  34. package/components/NoItemSelected/NoItemSelected.js +34 -0
  35. package/components/NoItemSelected/NoItemSelected.styles.js +6 -0
  36. package/components/NoItemSelected/constant.d.ts +2 -0
  37. package/components/NoItemSelected/constant.js +8 -0
  38. package/components/{ImageText/components/NoItemSelected → NoItemSelected}/dictionary.d.ts +0 -2
  39. package/components/NoItemSelected/dictionary.js +12 -0
  40. package/components/NoItemSelected/slots/NoItemSelectedEnum.d.ts +3 -0
  41. package/components/NoItemSelected/slots/NoItemSelectedEnum.js +7 -0
  42. package/components/NoItemSelected/slots/NoItemSelectedSlots.d.ts +3 -0
  43. package/components/NoItemSelected/slots/NoItemSelectedSlots.js +12 -0
  44. package/components/NoItemSelected/test/NoItemSelected.test.d.ts +1 -0
  45. package/components/{ImageText/components/NoItemSelected → NoItemSelected}/types.d.ts +6 -7
  46. package/components/NumberInput/NumberInput.styles.js +1 -0
  47. package/components/ObjectLogs/helpers/Fields/filterFields.d.ts +1 -1
  48. package/components/ObjectLogs/hooks/useDetailFormatter.js +1 -1
  49. package/components/ObjectLogs/hooks/useFilterAndSort.js +2 -1
  50. package/components/ObjectLogs/subcomponents/DetailDialog/index.js +3 -8
  51. package/components/ObjectLogs/types.d.ts +0 -2
  52. package/components/PaperForm/PaperForm.js +1 -2
  53. package/components/PaperForm/components/Header.js +1 -10
  54. package/components/PaperForm/styles.js +1 -4
  55. package/components/PropertyValue/PropertyValue.js +1 -1
  56. package/components/SettingsLayout/SettingsLayout.d.ts +5 -0
  57. package/components/SettingsLayout/SettingsLayout.js +34 -0
  58. package/components/SettingsLayout/SettingsLayout.styles.d.ts +2 -0
  59. package/components/SettingsLayout/SettingsLayout.styles.js +270 -0
  60. package/components/SettingsLayout/constants.d.ts +7 -0
  61. package/components/SettingsLayout/constants.js +10 -0
  62. package/components/SettingsLayout/dictionary.d.ts +8 -0
  63. package/components/SettingsLayout/dictionary.js +11 -0
  64. package/components/SettingsLayout/icons.d.ts +14 -0
  65. package/components/SettingsLayout/icons.js +17 -0
  66. package/components/SettingsLayout/index.d.ts +2 -0
  67. package/components/SettingsLayout/slots/SettingsLayoutEnum.d.ts +17 -0
  68. package/components/SettingsLayout/slots/SettingsLayoutEnum.js +21 -0
  69. package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +47 -0
  70. package/components/SettingsLayout/slots/SettingsLayoutSlots.js +83 -0
  71. package/components/SettingsLayout/subcomponents/SettingColorPresets/SettingColorPresets.d.ts +5 -0
  72. package/components/SettingsLayout/subcomponents/SettingColorPresets/SettingColorPresets.js +37 -0
  73. package/components/SettingsLayout/subcomponents/SettingColorPresets/index.d.ts +1 -0
  74. package/components/SettingsLayout/subcomponents/SettingColorPresets/types.d.ts +3 -0
  75. package/components/SettingsLayout/subcomponents/SettingDirection/SettingDirection.d.ts +5 -0
  76. package/components/SettingsLayout/subcomponents/SettingDirection/SettingDirection.js +37 -0
  77. package/components/SettingsLayout/subcomponents/SettingDirection/index.d.ts +1 -0
  78. package/components/SettingsLayout/subcomponents/SettingDirection/types.d.ts +3 -0
  79. package/components/SettingsLayout/subcomponents/SettingFullscreen/SettingFullscreen.d.ts +5 -0
  80. package/components/SettingsLayout/subcomponents/SettingFullscreen/SettingFullscreen.js +40 -0
  81. package/components/SettingsLayout/subcomponents/SettingFullscreen/index.d.ts +1 -0
  82. package/components/SettingsLayout/subcomponents/SettingFullscreen/index.js +1 -0
  83. package/components/SettingsLayout/subcomponents/SettingFullscreen/types.d.ts +3 -0
  84. package/components/SettingsLayout/subcomponents/SettingItem/SettingItem.d.ts +8 -0
  85. package/components/SettingsLayout/subcomponents/SettingItem/SettingItem.js +23 -0
  86. package/components/SettingsLayout/subcomponents/SettingItem/index.d.ts +1 -0
  87. package/components/SettingsLayout/subcomponents/SettingItem/index.js +1 -0
  88. package/components/SettingsLayout/subcomponents/SettingItem/types.d.ts +5 -0
  89. package/components/SettingsLayout/subcomponents/SettingItemColor/SettingItemColor.d.ts +8 -0
  90. package/components/SettingsLayout/subcomponents/SettingItemColor/SettingItemColor.js +24 -0
  91. package/components/SettingsLayout/subcomponents/SettingItemColor/index.d.ts +1 -0
  92. package/components/SettingsLayout/subcomponents/SettingItemColor/index.js +1 -0
  93. package/components/SettingsLayout/subcomponents/SettingItemColor/types.d.ts +6 -0
  94. package/components/SettingsLayout/subcomponents/SettingMode/SettingMode.d.ts +5 -0
  95. package/components/SettingsLayout/subcomponents/SettingMode/SettingMode.js +36 -0
  96. package/components/SettingsLayout/subcomponents/SettingMode/index.d.ts +1 -0
  97. package/components/SettingsLayout/subcomponents/SettingMode/index.js +1 -0
  98. package/components/SettingsLayout/subcomponents/SettingMode/types.d.ts +3 -0
  99. package/components/SettingsLayout/subcomponents/SettingsLayoutBase/SettingsLayoutBase.d.ts +5 -0
  100. package/components/SettingsLayout/subcomponents/SettingsLayoutBase/SettingsLayoutBase.js +76 -0
  101. package/components/SettingsLayout/subcomponents/SettingsLayoutBase/index.d.ts +1 -0
  102. package/components/SettingsLayout/subcomponents/SettingsLayoutBase/index.js +1 -0
  103. package/components/SettingsLayout/subcomponents/SettingsLayoutBase/types.d.ts +5 -0
  104. package/components/SettingsLayout/test/SettingsLayout.test.d.ts +18 -0
  105. package/components/SettingsLayout/types.d.ts +47 -0
  106. package/components/SideBar/subcomponents/ContentComponent/style.js +3 -0
  107. package/components/ToastContainer/ToastContainer.js +0 -1
  108. package/components/ToastContainer/ToastContainer.styles.js +126 -122
  109. package/components/ToastContainer/constants.d.ts +670 -0
  110. package/components/ToastContainer/constants.js +672 -1
  111. package/components/extended/React-Json-Viewer/ReactJsonViewer.d.ts +7 -0
  112. package/components/extended/React-Json-Viewer/ReactJsonViewer.js +31 -0
  113. package/components/extended/React-Json-Viewer/ReactJsonViewer.styles.d.ts +2 -0
  114. package/components/extended/React-Json-Viewer/ReactJsonViewer.styles.js +12 -0
  115. package/components/extended/React-Json-Viewer/constants.d.ts +2 -0
  116. package/components/extended/React-Json-Viewer/constants.js +8 -0
  117. package/components/extended/React-Json-Viewer/helpers/getReactJsonViewerTheme/getReactJsonViewerTheme.d.ts +8 -0
  118. package/components/extended/React-Json-Viewer/helpers/getReactJsonViewerTheme/getReactJsonViewerTheme.js +23 -0
  119. package/components/extended/React-Json-Viewer/helpers/getReactJsonViewerTheme/index.d.ts +1 -0
  120. package/components/extended/React-Json-Viewer/index.d.ts +1 -0
  121. package/components/extended/React-Json-Viewer/index.js +1 -0
  122. package/components/extended/React-Json-Viewer/slots/ReactJsonViewerEnum.d.ts +3 -0
  123. package/components/extended/React-Json-Viewer/slots/ReactJsonViewerEnum.js +7 -0
  124. package/components/extended/React-Json-Viewer/slots/ReactJsonViewerSlots.d.ts +1 -0
  125. package/components/extended/React-Json-Viewer/slots/ReactJsonViewerSlots.js +11 -0
  126. package/components/extended/React-Json-Viewer/test/ReactJsonViewer.test.d.ts +1 -0
  127. package/components/extended/React-Json-Viewer/types.d.ts +12 -0
  128. package/components/extended/index.d.ts +1 -0
  129. package/components/hook-form/RHFColorPicker/RHFColorPicker.styles.js +2 -1
  130. package/components/hook-form/RHFDateTime/RHFDateTime.styles.js +2 -1
  131. package/components/hook-form/RHFNumberInput/RHFNumberInput.styles.js +2 -1
  132. package/components/hook-form/RHFPeriod/RHFPeriod.styles.js +2 -5
  133. package/components/hook-form/RHFPeriod/slots/RHFPeriodEnum.d.ts +1 -1
  134. package/components/hook-form/RHFPeriod/slots/RHFPeriodEnum.js +1 -1
  135. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
  136. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.js +6 -6
  137. package/components/hook-form/RHFPeriod/subcomponents/Period/Period.js +13 -11
  138. package/components/hook-form/RHFPeriod/subcomponents/Period/dictionary.js +1 -1
  139. package/components/hook-form/RHFPeriod/subcomponents/Period/types.d.ts +2 -2
  140. package/components/hook-form/RHFSelect/RHFSelect.styles.js +2 -1
  141. package/components/hook-form/RHFTextField/RHFTextField.js +5 -3
  142. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
  143. package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js +63 -55
  144. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +1 -1
  145. package/components/index.d.ts +3 -0
  146. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +1 -1
  147. package/components/mui_extended/Button/ButtonStyles.js +2 -1
  148. package/components/mui_extended/IconButton/IconButton.styles.js +1 -1
  149. package/components/mui_extended/MenuItem/MenuItem.styles.js +2 -1
  150. package/components/mui_extended/Tab/Tab.styles.js +3 -3
  151. package/components/mui_extended/TabContent/TabContent.styles.js +1 -0
  152. package/components/mui_extended/TextField/TextField.js +9 -11
  153. package/components/mui_extended/TextField/TextField.styles.js +23 -2
  154. package/components/mui_extended/TextField/constants.d.ts +6 -5
  155. package/components/mui_extended/TextField/constants.js +2 -2
  156. package/components/mui_extended/TextField/index.d.ts +1 -0
  157. package/components/mui_extended/TextField/slots/TextFieldEnum.d.ts +2 -1
  158. package/components/mui_extended/TextField/slots/TextFieldEnum.js +9 -8
  159. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +5 -0
  160. package/components/mui_extended/TextField/slots/TextFieldSlots.js +6 -1
  161. package/components/mui_extended/TextField/types.d.ts +1 -1
  162. package/hooks/index.d.ts +1 -0
  163. package/hooks/useIsVisible/constants.d.ts +1 -0
  164. package/hooks/useIsVisible/constants.js +4 -0
  165. package/hooks/useIsVisible/index.d.ts +1 -0
  166. package/hooks/useIsVisible/index.js +1 -0
  167. package/hooks/useIsVisible/useIsVisible.d.ts +28 -0
  168. package/{components/ImageText/hooks/useIsVisible/index.js → hooks/useIsVisible/useIsVisible.js} +4 -3
  169. package/index.js +62 -56
  170. package/package.json +3 -3
  171. package/storybook/components/Card/Card.stories.d.ts +45 -0
  172. package/storybook/components/Card/subcomponents/ContentCard.d.ts +8 -0
  173. package/storybook/components/Card/subcomponents/constants.d.ts +9 -0
  174. package/storybook/components/NoItemPrivileges/NoItemPrivileges.stories.d.ts +1 -1
  175. package/storybook/components/NoItemSelect/NoItemSelect.stories.d.ts +1 -1
  176. package/storybook/components/SettingsLayout/SettingsLayout.stories.d.ts +6 -0
  177. package/storybook/components/SettingsLayout/subcomponents/SettingsLayoutRender/SettingsLayoutsRender.d.ts +5 -0
  178. package/storybook/components/SettingsLayout/subcomponents/SettingsLayoutRender/index.d.ts +1 -0
  179. package/storybook/components/extended/React-Json-Viewer/ReactJsonViewer.stories.d.ts +9 -0
  180. package/storybook/components/extended/mui/TextField/TextFieldText.stories.d.ts +1 -1
  181. package/storybook/components/paperForm/PaperForm.stories.d.ts +4 -0
  182. package/storybook/hook-form/RHFTextField/RHFTextField.stories.d.ts +4 -0
  183. package/storybook/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.stories.d.ts +19 -0
  184. package/{components/mui_extended/TextField/helpers → utils}/getLimitCharacters/getLimitCharacters.d.ts +2 -2
  185. package/utils/getLimitCharacters/index.js +1 -0
  186. package/utils/getLimitCharacters/test/getLimitCharacters.test.d.ts +1 -0
  187. package/utils/getLimitCharacters/types.d.ts +11 -0
  188. package/components/ImageText/components/ImageTextContainer/ImageTextContainer.d.ts +0 -7
  189. package/components/ImageText/components/ImageTextContainer/ImageTextContainer.js +0 -25
  190. package/components/ImageText/components/ImageTextContainer/ImageTextContainerStyle.d.ts +0 -2
  191. package/components/ImageText/components/ImageTextContainer/ImageTextContainerStyle.js +0 -22
  192. package/components/ImageText/components/ImageTextContainer/constants.d.ts +0 -8
  193. package/components/ImageText/components/ImageTextContainer/constants.js +0 -8
  194. package/components/ImageText/components/ImageTextContainer/index.d.ts +0 -1
  195. package/components/ImageText/components/ImageTextContainer/slots/ImageTextContainerEnum.d.ts +0 -3
  196. package/components/ImageText/components/ImageTextContainer/slots/ImageTextContainerEnum.js +0 -7
  197. package/components/ImageText/components/ImageTextContainer/slots/ImageTextContainerSlots.d.ts +0 -3
  198. package/components/ImageText/components/ImageTextContainer/slots/ImageTextContainerSlots.js +0 -12
  199. package/components/ImageText/components/ImageTextContainer/types.d.ts +0 -22
  200. package/components/ImageText/components/NoItemPrivileges/NoItemPrivileges.js +0 -65
  201. package/components/ImageText/components/NoItemPrivileges/slots/NoItemPrivilegesEnum.d.ts +0 -7
  202. package/components/ImageText/components/NoItemPrivileges/slots/NoItemPrivilegesEnum.js +0 -11
  203. package/components/ImageText/components/NoItemPrivileges/slots/NoItemPrivilegesSlots.d.ts +0 -15
  204. package/components/ImageText/components/NoItemPrivileges/slots/NoItemPrivilegesSlots.js +0 -33
  205. package/components/ImageText/components/NoItemSelected/NoItemSelected.js +0 -62
  206. package/components/ImageText/components/NoItemSelected/NoItemSelected.styles.js +0 -89
  207. package/components/ImageText/components/NoItemSelected/constant.d.ts +0 -2
  208. package/components/ImageText/components/NoItemSelected/constant.js +0 -8
  209. package/components/ImageText/components/NoItemSelected/dictionary.js +0 -11
  210. package/components/ImageText/components/NoItemSelected/slots/NoItemSelectedEnum.d.ts +0 -8
  211. package/components/ImageText/components/NoItemSelected/slots/NoItemSelectedEnum.js +0 -12
  212. package/components/ImageText/components/NoItemSelected/slots/NoItemSelectedSlots.d.ts +0 -18
  213. package/components/ImageText/components/NoItemSelected/slots/NoItemSelectedSlots.js +0 -39
  214. package/components/ImageText/hooks/useIsVisible/index.d.ts +0 -6
  215. package/components/hook-form/RHFDateTime/styles.d.ts +0 -1
  216. package/components/mui_extended/TextField/helpers/getLimitCharacters/types.d.ts +0 -5
  217. /package/components/{ImageText/components/NoItemPrivileges/test/NoItemPrivileges.test.d.ts → Card/helpers/getSizeSpacing.test.d.ts} +0 -0
  218. /package/components/{mui_extended/TextField/helpers/getLimitCharacters/test/getLimitCharacters.test.d.ts → Card/test/Card.test.d.ts} +0 -0
  219. /package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/NoItemPrivileges.d.ts +0 -0
  220. /package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/NoItemPrivilegesStyles.d.ts +0 -0
  221. /package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/dictionary.d.ts +0 -0
  222. /package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/dictionary.js +0 -0
  223. /package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/index.d.ts +0 -0
  224. /package/components/{ImageText/components/ImageTextContainer → NoItemPrivileges}/index.js +0 -0
  225. /package/components/{ImageText/components/NoItemSelected → NoItemSelected}/NoItemSelected.d.ts +0 -0
  226. /package/components/{ImageText/components/NoItemSelected → NoItemSelected}/NoItemSelected.styles.d.ts +0 -0
  227. /package/components/{ImageText/components/NoItemSelected → NoItemSelected}/index.d.ts +0 -0
  228. /package/components/{ImageText/components/NoItemPrivileges → NoItemSelected}/index.js +0 -0
  229. /package/components/{ImageText/components/NoItemSelected → SettingsLayout}/index.js +0 -0
  230. /package/components/{mui_extended/TextField/helpers/getLimitCharacters → SettingsLayout/subcomponents/SettingColorPresets}/index.js +0 -0
  231. /package/{components/mui_extended/TextField/helpers → utils}/getLimitCharacters/getLimitCharacters.js +0 -0
  232. /package/{components/mui_extended/TextField/helpers → utils}/getLimitCharacters/index.d.ts +0 -0
@@ -0,0 +1,31 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import clsx from "clsx";
3
+ import ReactJson from "@microlink/react-json-view";
4
+ import { R as ReactJsonViewerRootStyled } from "./slots/ReactJsonViewerSlots.js";
5
+ import { R as REACT_JSON_VIEWER_CLASSES } from "./constants.js";
6
+ import { useTheme } from "@mui/material";
7
+ import { g as getReactJsonViewerTheme } from "./helpers/getReactJsonViewerTheme/getReactJsonViewerTheme.js";
8
+ const ReactJsonViewer = (props) => {
9
+ const { className, dataTestId, ...others } = props;
10
+ const muiTheme = useTheme();
11
+ const theme = getReactJsonViewerTheme(muiTheme);
12
+ return /* @__PURE__ */ jsx(
13
+ ReactJsonViewerRootStyled,
14
+ {
15
+ className: clsx(REACT_JSON_VIEWER_CLASSES.root, className),
16
+ dataTestId,
17
+ role: "application",
18
+ "aria-label": "JSON data viewer",
19
+ children: /* @__PURE__ */ jsx(
20
+ ReactJson,
21
+ {
22
+ theme,
23
+ ...others
24
+ }
25
+ )
26
+ }
27
+ );
28
+ };
29
+ export {
30
+ ReactJsonViewer as R
31
+ };
@@ -0,0 +1,2 @@
1
+ import { ReactJsonViewerStyles } from './types';
2
+ export declare const reactJsonViewerStyles: ReactJsonViewerStyles;
@@ -0,0 +1,12 @@
1
+ const reactJsonViewerStyles = {
2
+ /**
3
+ * Estilos del componente ReactJson.
4
+ */
5
+ root: () => ({
6
+ width: "100%",
7
+ height: "100%"
8
+ })
9
+ };
10
+ export {
11
+ reactJsonViewerStyles as r
12
+ };
@@ -0,0 +1,2 @@
1
+ export declare const REACT_JSON_VIEWER_KEY_COMPONENT = "M4LReactJsonViewer";
2
+ export declare const REACT_JSON_VIEWER_CLASSES: Record<string, string>;
@@ -0,0 +1,8 @@
1
+ import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
2
+ import { R as ReactJsonViewerSlots } from "./slots/ReactJsonViewerEnum.js";
3
+ const REACT_JSON_VIEWER_KEY_COMPONENT = "M4LReactJsonViewer";
4
+ const REACT_JSON_VIEWER_CLASSES = getComponentClasses(REACT_JSON_VIEWER_KEY_COMPONENT, ReactJsonViewerSlots);
5
+ export {
6
+ REACT_JSON_VIEWER_CLASSES as R,
7
+ REACT_JSON_VIEWER_KEY_COMPONENT as a
8
+ };
@@ -0,0 +1,8 @@
1
+ import { ThemeObject } from '@microlink/react-json-view';
2
+ import { Theme } from '@mui/material';
3
+ /**
4
+ * Función para obtener los colores del tema de MUI.
5
+ * @param muiTheme - Tema de MUI.
6
+ * @returns Colores del tema.
7
+ */
8
+ export declare const getReactJsonViewerTheme: (muiTheme: Theme) => ThemeObject;
@@ -0,0 +1,23 @@
1
+ const getReactJsonViewerTheme = (muiTheme) => {
2
+ return {
3
+ base00: muiTheme?.vars?.palette?.background?.default,
4
+ base01: muiTheme?.vars?.palette?.background?.base,
5
+ base02: muiTheme?.vars?.palette?.background?.neutral,
6
+ base03: muiTheme?.vars?.palette?.text?.disabled,
7
+ base04: muiTheme?.vars?.palette?.text?.secondary,
8
+ base05: muiTheme?.vars?.palette?.text?.primary,
9
+ base06: muiTheme?.vars?.palette?.text?.primary,
10
+ base07: muiTheme?.vars?.palette?.text?.primary,
11
+ base08: muiTheme?.vars?.palette?.chips?.error?.outlined?.colorTone,
12
+ base09: muiTheme?.vars?.palette?.chips?.orange?.outlined?.color,
13
+ base0A: muiTheme?.vars?.palette?.chips?.warning?.outlined?.colorTone,
14
+ base0B: muiTheme?.vars?.palette?.chips?.forest?.outlined?.color,
15
+ base0C: muiTheme?.vars?.palette?.chips?.aqua?.outlined?.colorTone,
16
+ base0D: muiTheme?.vars?.palette?.chips?.info?.outlined?.colorTone,
17
+ base0E: muiTheme?.vars?.palette?.chips?.pink?.outlined?.colorTone,
18
+ base0F: muiTheme?.vars?.palette?.chips?.persianGreen?.outlined?.colorTone
19
+ };
20
+ };
21
+ export {
22
+ getReactJsonViewerTheme as g
23
+ };
@@ -0,0 +1 @@
1
+ export { getReactJsonViewerTheme } from './getReactJsonViewerTheme';
@@ -0,0 +1 @@
1
+ export { ReactJsonViewer } from './ReactJsonViewer';
@@ -0,0 +1,3 @@
1
+ export declare enum ReactJsonViewerSlots {
2
+ root = "root"
3
+ }
@@ -0,0 +1,7 @@
1
+ var ReactJsonViewerSlots = /* @__PURE__ */ ((ReactJsonViewerSlots2) => {
2
+ ReactJsonViewerSlots2["root"] = "root";
3
+ return ReactJsonViewerSlots2;
4
+ })(ReactJsonViewerSlots || {});
5
+ export {
6
+ ReactJsonViewerSlots as R
7
+ };
@@ -0,0 +1 @@
1
+ export declare const ReactJsonViewerRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
@@ -0,0 +1,11 @@
1
+ import { styled } from "@mui/material/styles";
2
+ import { a as REACT_JSON_VIEWER_KEY_COMPONENT } from "../constants.js";
3
+ import { R as ReactJsonViewerSlots } from "./ReactJsonViewerEnum.js";
4
+ import { r as reactJsonViewerStyles } from "../ReactJsonViewer.styles.js";
5
+ const ReactJsonViewerRootStyled = styled("div", {
6
+ name: REACT_JSON_VIEWER_KEY_COMPONENT,
7
+ slot: ReactJsonViewerSlots.root
8
+ })(reactJsonViewerStyles?.root);
9
+ export {
10
+ ReactJsonViewerRootStyled as R
11
+ };
@@ -0,0 +1,12 @@
1
+ import { ReactJsonViewProps } from '@microlink/react-json-view';
2
+ import { ReactJsonViewerSlots } from './slots/ReactJsonViewerEnum';
3
+ import { M4LOverridesStyleRules } from '../../../@types/augmentations';
4
+ import { REACT_JSON_VIEWER_KEY_COMPONENT } from './constants';
5
+ import { Theme } from '@mui/material';
6
+ export interface ReactJsonViewerProps extends Omit<ReactJsonViewProps, 'theme'> {
7
+ className?: string;
8
+ dataTestId?: string;
9
+ }
10
+ export type ReactJsonViewerOwnerState = {};
11
+ export type ReactJsonViewerSlotsType = keyof typeof ReactJsonViewerSlots;
12
+ export type ReactJsonViewerStyles = M4LOverridesStyleRules<ReactJsonViewerSlotsType, typeof REACT_JSON_VIEWER_KEY_COMPONENT, Theme>;
@@ -2,3 +2,4 @@ export * from './React-Resizable';
2
2
  export * from './React-resizable-panels';
3
3
  export * from './React-Spinners';
4
4
  export * from './React-Window';
5
+ export * from './React-Json-Viewer';
@@ -6,7 +6,8 @@ const rhfcolorPickerStyles = {
6
6
  root: ({ theme }) => ({
7
7
  display: "flex",
8
8
  flexDirection: "column",
9
- gap: theme.vars.size.baseSpacings["sp0-5"]
9
+ gap: theme.vars.size.baseSpacings["sp0-5"],
10
+ width: "100%"
10
11
  })
11
12
  };
12
13
  export {
@@ -5,7 +5,8 @@ const rhfDateTimeStyles = {
5
5
  root: ({ theme }) => ({
6
6
  display: "flex",
7
7
  flexDirection: "column",
8
- gap: theme.vars.size.baseSpacings["sp0-5"]
8
+ gap: theme.vars.size.baseSpacings["sp0-5"],
9
+ width: "100%"
9
10
  })
10
11
  };
11
12
  export {
@@ -8,7 +8,8 @@ const rhfNumberInputStyles = {
8
8
  root: ({ theme }) => ({
9
9
  display: "flex",
10
10
  flexDirection: "column",
11
- gap: theme.vars.size.baseSpacings.sp1
11
+ gap: theme.vars.size.baseSpacings.sp1,
12
+ width: "100%"
12
13
  })
13
14
  };
14
15
  export {
@@ -23,11 +23,8 @@ const rhfPeriodStyles = {
23
23
  /**
24
24
  * textField class
25
25
  */
26
- textField: ({ theme }) => ({
27
- borderRadius: "50px",
28
- width: "43px !important",
29
- border: theme.vars.palette.border.default,
30
- color: theme.vars.palette.text.disabled
26
+ numberInput: () => ({
27
+ maxWidth: "43px !important"
31
28
  }),
32
29
  /**
33
30
  * select class
@@ -1,6 +1,6 @@
1
1
  export declare enum RHFPeriodSlots {
2
2
  root = "root",
3
3
  periodRoot = "periodRoot",
4
- textField = "textField",
4
+ numberInput = "numberInput",
5
5
  select = "select"
6
6
  }
@@ -1,7 +1,7 @@
1
1
  var RHFPeriodSlots = /* @__PURE__ */ ((RHFPeriodSlots2) => {
2
2
  RHFPeriodSlots2["root"] = "root";
3
3
  RHFPeriodSlots2["periodRoot"] = "periodRoot";
4
- RHFPeriodSlots2["textField"] = "textField";
4
+ RHFPeriodSlots2["numberInput"] = "numberInput";
5
5
  RHFPeriodSlots2["select"] = "select";
6
6
  return RHFPeriodSlots2;
7
7
  })(RHFPeriodSlots || {});
@@ -1,4 +1,4 @@
1
1
  export declare const RHFPeriodRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
2
2
  export declare const PeriodRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
3
- export declare const TextFieldStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../mui_extended/TextField/types').TextFieldProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "value" | "size" | "children" | "title" | "component" | "name" | "error" | "select" | "rows" | "id" | "type" | "disabled" | "hidden" | "content" | "style" | "variant" | "margin" | "translate" | "className" | "classes" | "sx" | "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" | "dataTestId" | "autoComplete" | "placeholder" | "required" | keyof import('react').RefAttributes<HTMLDivElement> | "maxRows" | "fullWidth" | "inputProps" | "inputRef" | "multiline" | "minRows" | "hiddenLabel" | "focused" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "SelectProps" | "limitCharacters"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
3
+ export declare const NumberInputStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../NumberInput/types').NumberInputProps & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('../../../NumberInput/types').NumberInputProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
4
4
  export declare const SelectStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../mui_extended/Select').SelectProps<string | number, boolean | undefined>, "ref"> & import('react').RefAttributes<HTMLDivElement>, "value" | "size" | "children" | "onClose" | "title" | "name" | "error" | "input" | "options" | "rows" | "id" | "type" | "disabled" | "components" | "hidden" | "content" | "style" | "open" | "multiple" | "variant" | "margin" | "translate" | "className" | "classes" | "sx" | "slots" | "slotProps" | "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" | "componentsProps" | "onOpen" | "dataTestId" | "autoComplete" | "placeholder" | "readOnly" | "required" | keyof import('react').RefAttributes<HTMLDivElement> | "maxRows" | "fullWidth" | "inputProps" | "inputRef" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "multiline" | "renderSuffix" | "minRows" | "startAdornment" | "disableUnderline" | "autoWidth" | "defaultOpen" | "displayEmpty" | "IconComponent" | "labelId" | "MenuProps" | "native" | "renderValue" | "SelectDisplayProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
@@ -2,7 +2,7 @@ import { styled } from "@mui/material/styles";
2
2
  import { R as RHF_PERIOD_KEY_COMPONENT } from "../constants.js";
3
3
  import { r as rhfPeriodStyles } from "../RHFPeriod.styles.js";
4
4
  import { R as RHFPeriodSlots } from "./RHFPeriodEnum.js";
5
- import { T as TextField } from "../../../mui_extended/TextField/TextField.js";
5
+ import { N as NumberInput } from "../../../NumberInput/NumberInput.js";
6
6
  import { S as Select } from "../../../mui_extended/Select/Select.js";
7
7
  const RHFPeriodRootStyled = styled("div", {
8
8
  name: RHF_PERIOD_KEY_COMPONENT,
@@ -12,17 +12,17 @@ const PeriodRootStyled = styled("div", {
12
12
  name: RHF_PERIOD_KEY_COMPONENT,
13
13
  slot: RHFPeriodSlots.periodRoot
14
14
  })(rhfPeriodStyles?.periodRoot);
15
- const TextFieldStyled = styled(TextField, {
15
+ const NumberInputStyled = styled(NumberInput, {
16
16
  name: RHF_PERIOD_KEY_COMPONENT,
17
- slot: RHFPeriodSlots.textField
18
- })(rhfPeriodStyles?.textField);
17
+ slot: RHFPeriodSlots.numberInput
18
+ })(rhfPeriodStyles?.numberInput);
19
19
  const SelectStyled = styled(Select, {
20
20
  name: RHF_PERIOD_KEY_COMPONENT,
21
21
  slot: RHFPeriodSlots.select
22
22
  })(rhfPeriodStyles?.select);
23
23
  export {
24
+ NumberInputStyled as N,
24
25
  PeriodRootStyled as P,
25
26
  RHFPeriodRootStyled as R,
26
- SelectStyled as S,
27
- TextFieldStyled as T
27
+ SelectStyled as S
28
28
  };
@@ -4,7 +4,7 @@ import { E as ETimePeriods } from "./types.js";
4
4
  import { D as DICTIONARY } from "./dictionary.js";
5
5
  import { useMemo } from "react";
6
6
  import { u as useComponentSize } from "../../../../../hooks/useComponentSize/useComponentSize.js";
7
- import { P as PeriodRootStyled, S as SelectStyled, T as TextFieldStyled } from "../../slots/RHFPeriodSlots.js";
7
+ import { P as PeriodRootStyled, S as SelectStyled, N as NumberInputStyled } from "../../slots/RHFPeriodSlots.js";
8
8
  import { I as Icon } from "../../../../Icon/Icon.js";
9
9
  const Period = (props) => {
10
10
  const {
@@ -27,7 +27,7 @@ const Period = (props) => {
27
27
  );
28
28
  const getSingleValue = (period) => {
29
29
  if (!period) {
30
- return "";
30
+ return null;
31
31
  }
32
32
  if (period.singleValue !== void 0) {
33
33
  return period.singleValue;
@@ -41,7 +41,7 @@ const Period = (props) => {
41
41
  if (period.days && period.days > 0) {
42
42
  return period.days;
43
43
  }
44
- return "";
44
+ return null;
45
45
  };
46
46
  const getSelPeriodTime = (period) => {
47
47
  if (!period) {
@@ -64,21 +64,22 @@ const Period = (props) => {
64
64
  const singleValue = getSingleValue(value);
65
65
  const selPeriodTime = getSelPeriodTime(value);
66
66
  const onTotalChange = (newPeriodTime, newValue) => {
67
+ const newPeriodTimeInt = typeof newPeriodTime === "string" ? parseInt(newPeriodTime) : newPeriodTime;
67
68
  const newPeriod = {
68
- selPeriodTime: newPeriodTime,
69
+ selPeriodTime: newPeriodTimeInt,
69
70
  singleValue: newValue
70
71
  };
71
- if (newValue !== "" && newValue > 0) {
72
+ if (newValue && newValue > 0) {
72
73
  newPeriod.years = 0;
73
74
  newPeriod.months = 0;
74
75
  newPeriod.days = 0;
75
- if (newPeriodTime === ETimePeriods.YEARS) {
76
+ if (newPeriodTimeInt === ETimePeriods.YEARS) {
76
77
  newPeriod.years = newValue;
77
78
  }
78
- if (newPeriodTime === ETimePeriods.MONTHS) {
79
+ if (newPeriodTimeInt === ETimePeriods.MONTHS) {
79
80
  newPeriod.months = newValue;
80
81
  }
81
- if (newPeriodTime === ETimePeriods.DAYS) {
82
+ if (newPeriodTimeInt === ETimePeriods.DAYS) {
82
83
  newPeriod.days = newValue;
83
84
  }
84
85
  }
@@ -117,13 +118,14 @@ const Period = (props) => {
117
118
  }
118
119
  ),
119
120
  /* @__PURE__ */ jsx(
120
- TextFieldStyled,
121
+ NumberInputStyled,
121
122
  {
122
123
  type: "number",
123
124
  variant: "outlined",
124
125
  value: singleValue,
125
- onChange: (e) => {
126
- onTotalChange(selPeriodTime, e.target.value === "" ? "" : parseInt(e.target.value));
126
+ withDecimal: true,
127
+ onChange: (_event, newValue) => {
128
+ onTotalChange(selPeriodTime, newValue);
127
129
  }
128
130
  }
129
131
  )
@@ -1,5 +1,5 @@
1
1
  import { g as getCommonActionsDictionary } from "../../../../CommonActions/dictionary.js";
2
- const DICTIONARY_KEY = "rhf_period";
2
+ const DICTIONARY_KEY = "period";
3
3
  const DICTIONARY = {
4
4
  LABEL_YEARS: `${DICTIONARY_KEY}.label_years`,
5
5
  LABEL_MONTHS: `${DICTIONARY_KEY}.label_months`,
@@ -9,8 +9,8 @@ export type PeriodTime = {
9
9
  label: string;
10
10
  };
11
11
  export type PeriodType = {
12
- selPeriodTime: '' | ETimePeriods | undefined;
13
- singleValue: number | '';
12
+ selPeriodTime: null | ETimePeriods | undefined;
13
+ singleValue: number | null;
14
14
  years?: number;
15
15
  months?: number;
16
16
  days?: number;
@@ -5,7 +5,8 @@ const rhfSelectStyles = {
5
5
  root: ({ theme }) => ({
6
6
  display: "flex",
7
7
  flexDirection: "column",
8
- gap: theme.vars.size.baseSpacings.sp1
8
+ gap: theme.vars.size.baseSpacings.sp1,
9
+ width: "100%"
9
10
  }),
10
11
  /**
11
12
  * Estilos del Label.
@@ -9,6 +9,7 @@ import clsx from "clsx";
9
9
  import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
10
10
  import { R as RHFTextFieldRootStyled, L as LabelStyled, T as TextFieldStyled, H as HelperErrorStyled } from "./slots/RHFTextFieldSlots.js";
11
11
  import { R as RHFTextFieldSlots } from "./slots/RHFTextFieldEnum.js";
12
+ import { g as getLimitCharacters } from "../../../utils/getLimitCharacters/getLimitCharacters.js";
12
13
  const RHFTextField = forwardRef((props, ref) => {
13
14
  const {
14
15
  name,
@@ -61,8 +62,9 @@ const RHFTextField = forwardRef((props, ref) => {
61
62
  control,
62
63
  render: ({ field: { onChange, value, ref: inputRef }, fieldState: { error } }) => {
63
64
  const onInternalChange = (event) => {
64
- const newValue = event.target.value;
65
- onChange(newValue);
65
+ const finalValue = other.maxLength ? getLimitCharacters({ limitCharacters: other.maxLength, value: event.target.value }) : event.target.value;
66
+ const stringValue = String(finalValue || "");
67
+ onChange(stringValue);
66
68
  };
67
69
  return /* @__PURE__ */ jsxs(Fragment, { children: [
68
70
  label && /* @__PURE__ */ jsx(
@@ -88,7 +90,7 @@ const RHFTextField = forwardRef((props, ref) => {
88
90
  autoComplete,
89
91
  onChange: onInternalChange,
90
92
  variant,
91
- value: type === "number" ? isNaN(parseFloat(value)) ? "" : value : value || "",
93
+ value: String(value || ""),
92
94
  fullWidth: true,
93
95
  error: !!error,
94
96
  type,
@@ -4,7 +4,7 @@ export declare const RHFTextFieldRootStyled: import('@emotion/styled').StyledCom
4
4
  export declare const LabelStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Label').LabelProps, keyof import('../../../Label').LabelProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown> & {
5
5
  ownerState: Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown>;
6
6
  }, {}, {}>;
7
- export declare const TextFieldStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../mui_extended/TextField/types').TextFieldProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "value" | "size" | "children" | "title" | "component" | "name" | "error" | "select" | "rows" | "id" | "type" | "disabled" | "hidden" | "content" | "style" | "variant" | "margin" | "translate" | "className" | "classes" | "sx" | "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" | "dataTestId" | "autoComplete" | "placeholder" | "required" | keyof import('react').RefAttributes<HTMLDivElement> | "maxRows" | "fullWidth" | "inputProps" | "inputRef" | "multiline" | "minRows" | "hiddenLabel" | "focused" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "SelectProps" | "limitCharacters"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown> & {
7
+ export declare const TextFieldStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../mui_extended/TextField/types').TextFieldProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "value" | "size" | "children" | "title" | "component" | "name" | "error" | "select" | "rows" | "id" | "type" | "disabled" | "hidden" | "content" | "style" | "variant" | "margin" | "translate" | "className" | "classes" | "sx" | "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" | "dataTestId" | "autoComplete" | "maxLength" | "placeholder" | "required" | keyof import('react').RefAttributes<HTMLDivElement> | "maxRows" | "fullWidth" | "inputProps" | "inputRef" | "multiline" | "minRows" | "hiddenLabel" | "focused" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "SelectProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown> & {
8
8
  ownerState: Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown>;
9
9
  }, {}, {}>;
10
10
  export declare const HelperErrorStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../HelperError').HelperErrorProps & import('react').RefAttributes<HTMLLabelElement>, keyof import('../../../HelperError').HelperErrorProps | keyof import('react').RefAttributes<HTMLLabelElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown> & {
@@ -6,6 +6,7 @@ import { useFormContext, Controller } from "react-hook-form";
6
6
  import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
7
7
  import { R as RHFTextFieldPasswordRoot, L as LabelStyled, T as TextFieldStyled, I as IconButtonStyled } from "./slots/RHFTextFieldPasswordSlots.js";
8
8
  import { H as HelperError } from "../../HelperError/HelperError.js";
9
+ import { g as getLimitCharacters } from "../../../utils/getLimitCharacters/getLimitCharacters.js";
9
10
  const RHFTextFieldPassword = (props) => {
10
11
  const {
11
12
  name,
@@ -27,62 +28,69 @@ const RHFTextFieldPassword = (props) => {
27
28
  {
28
29
  name,
29
30
  control,
30
- render: ({ field: { onChange, value, ref }, fieldState: { error } }) => /* @__PURE__ */ jsxs(Fragment, { children: [
31
- label && /* @__PURE__ */ jsx(
32
- LabelStyled,
33
- {
34
- ownerState: { error: !!error },
35
- size: adjustedSize,
36
- label,
37
- htmlFor: name,
38
- mandatory,
39
- mandatoryMessage,
40
- helperMessage
41
- }
42
- ),
43
- /* @__PURE__ */ jsx(
44
- TextFieldStyled,
45
- {
46
- ownerState: { error: !!error },
47
- name,
48
- id: name,
49
- type: showPassword ? "text" : "password",
50
- size,
51
- error: !!error,
52
- disabled,
53
- inputProps: {
54
- role: "textbox",
55
- "aria-label": name,
56
- disabled,
31
+ render: ({ field: { onChange, value, ref }, fieldState: { error } }) => {
32
+ const onInternalChange = (event) => {
33
+ const finalValue = other.maxLength ? getLimitCharacters({ limitCharacters: other.maxLength, value: event.target.value }) : event.target.value;
34
+ const stringValue = String(finalValue || "");
35
+ onChange(stringValue);
36
+ };
37
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
38
+ label && /* @__PURE__ */ jsx(
39
+ LabelStyled,
40
+ {
41
+ ownerState: { error: !!error },
42
+ size: adjustedSize,
43
+ label,
44
+ htmlFor: name,
45
+ mandatory,
46
+ mandatoryMessage,
47
+ helperMessage
48
+ }
49
+ ),
50
+ /* @__PURE__ */ jsx(
51
+ TextFieldStyled,
52
+ {
53
+ ownerState: { error: !!error },
57
54
  name,
58
- type: showPassword ? "text" : "password"
59
- },
60
- InputProps: {
61
- /* InputAdornment: Componente de la librería externa material ui, permite agregar un elemento gráfico
62
- personalizado dentro del campo de texto*/
63
- endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(
64
- IconButtonStyled,
65
- {
66
- ownerState: { error: !!error },
67
- onClick: () => setShowPassword(!showPassword),
68
- icon: showPassword ? `${host_static_assets}/${environment_assets}/frontend/components/rhftextfieldpassword/assests/icons/view.svg` : `${host_static_assets}/${environment_assets}/frontend/components/rhftextfieldpassword/assests/icons/view_off.svg`
69
- }
70
- ) })
71
- },
72
- onChange,
73
- value: value || "",
74
- inputRef: ref,
75
- ...other
76
- }
77
- ),
78
- error?.message && /* @__PURE__ */ jsx(
79
- HelperError,
80
- {
81
- message: error.message,
82
- size
83
- }
84
- )
85
- ] })
55
+ id: name,
56
+ type: showPassword ? "text" : "password",
57
+ size,
58
+ error: !!error,
59
+ disabled,
60
+ inputProps: {
61
+ role: "textbox",
62
+ "aria-label": name,
63
+ disabled,
64
+ name,
65
+ type: showPassword ? "text" : "password"
66
+ },
67
+ InputProps: {
68
+ /* InputAdornment: Componente de la librería externa material ui, permite agregar un elemento gráfico
69
+ personalizado dentro del campo de texto*/
70
+ endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(
71
+ IconButtonStyled,
72
+ {
73
+ ownerState: { error: !!error },
74
+ onClick: () => setShowPassword(!showPassword),
75
+ icon: showPassword ? `${host_static_assets}/${environment_assets}/frontend/components/rhftextfieldpassword/assests/icons/view.svg` : `${host_static_assets}/${environment_assets}/frontend/components/rhftextfieldpassword/assests/icons/view_off.svg`
76
+ }
77
+ ) })
78
+ },
79
+ onChange: onInternalChange,
80
+ value: String(value || ""),
81
+ inputRef: ref,
82
+ ...other
83
+ }
84
+ ),
85
+ error?.message && /* @__PURE__ */ jsx(
86
+ HelperError,
87
+ {
88
+ message: error.message,
89
+ size
90
+ }
91
+ )
92
+ ] });
93
+ }
86
94
  }
87
95
  ) });
88
96
  };