@m4l/components 9.3.34-BE20251126-beta.1 → 9.3.34-JT20251210-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 (499) hide show
  1. package/@types/export.d.ts +6 -0
  2. package/@types/types.d.ts +69 -7
  3. package/components/AccountPopover/AccountPopover.styles.js +5 -2
  4. package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +6 -6
  5. package/components/ActionsGroup/constants.d.ts +1 -1
  6. package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts +2 -2
  7. package/components/AppBar/slots/AppBarSlots.d.ts +1 -1
  8. package/components/CheckableList/CheckableList.d.ts +20 -0
  9. package/components/CheckableList/CheckableList.js +225 -0
  10. package/components/CheckableList/CheckableList.styles.d.ts +2 -0
  11. package/components/CheckableList/CheckableList.styles.js +247 -0
  12. package/components/CheckableList/constants.d.ts +5 -0
  13. package/components/CheckableList/constants.js +17 -0
  14. package/components/CheckableList/dictionary.d.ts +14 -0
  15. package/components/CheckableList/dictionary.js +14 -0
  16. package/components/CheckableList/hooks/index.d.ts +6 -0
  17. package/components/CheckableList/hooks/useCheckableListHandlers.d.ts +21 -0
  18. package/components/CheckableList/hooks/useCheckableListHandlers.js +66 -0
  19. package/components/CheckableList/hooks/useCheckableListItems.d.ts +19 -0
  20. package/components/CheckableList/hooks/useCheckableListItems.js +79 -0
  21. package/components/CheckableList/hooks/useCheckableListRender.d.ts +52 -0
  22. package/components/CheckableList/hooks/useCheckableListRender.js +223 -0
  23. package/components/CheckableList/hooks/useCheckableListSelection.d.ts +19 -0
  24. package/components/CheckableList/hooks/useCheckableListSelection.js +69 -0
  25. package/components/CheckableList/hooks/useCheckableListState.d.ts +17 -0
  26. package/components/CheckableList/hooks/useCheckableListState.js +59 -0
  27. package/components/CheckableList/hooks/useCheckableListVirtualization.d.ts +14 -0
  28. package/components/CheckableList/hooks/useCheckableListVirtualization.js +42 -0
  29. package/components/CheckableList/icons.d.ts +5 -0
  30. package/components/CheckableList/icons.js +8 -0
  31. package/components/CheckableList/index.d.ts +3 -0
  32. package/components/CheckableList/slots/index.d.ts +2 -0
  33. package/components/CheckableList/slots/slots.d.ts +26 -0
  34. package/components/CheckableList/slots/slots.js +30 -0
  35. package/components/CheckableList/slots/styled.d.ts +72 -0
  36. package/components/CheckableList/slots/styled.js +130 -0
  37. package/components/CheckableList/types.d.ts +277 -0
  38. package/components/Chip/slots/ChipSlots.d.ts +2 -2
  39. package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
  40. package/components/CommonActions/components/ActionFormCancel/ActionFormCancel.js +1 -1
  41. package/components/CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.d.ts +1 -1
  42. package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
  43. package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
  44. package/components/ContainerFlow/ContainerFlow.js +1 -1
  45. package/components/DataGrid/DataGrid.js +9 -1
  46. package/components/DataGrid/Datagrid.styles.js +169 -72
  47. package/components/DataGrid/constants.d.ts +13 -0
  48. package/components/DataGrid/constants.js +11 -0
  49. package/components/DataGrid/contexts/DataGridContext/index.js +62 -275
  50. package/components/DataGrid/contexts/DataGridContext/types.d.ts +24 -23
  51. package/components/DataGrid/dictionary.d.ts +1 -0
  52. package/components/DataGrid/dictionary.js +2 -1
  53. package/components/DataGrid/formatters/ColumnColorFormatter/tests/ColumnColorFormatter.test.d.ts +1 -0
  54. package/components/DataGrid/formatters/ColumnColorFormatter/tests/useColumnColor.test.d.ts +1 -0
  55. package/components/DataGrid/formatters/ColumnImageFormatter/ImageFormatterCell.d.ts +13 -0
  56. package/components/DataGrid/formatters/ColumnImageFormatter/ImageFormatterCell.js +33 -0
  57. package/components/DataGrid/formatters/ColumnImageFormatter/constants.d.ts +6 -0
  58. package/components/DataGrid/formatters/ColumnImageFormatter/constants.js +6 -0
  59. package/components/DataGrid/formatters/ColumnImageFormatter/formatter.d.ts +8 -0
  60. package/components/DataGrid/formatters/ColumnImageFormatter/formatter.js +25 -0
  61. package/components/DataGrid/formatters/ColumnImageFormatter/index.d.ts +3 -0
  62. package/components/DataGrid/formatters/ColumnImageFormatter/index.js +1 -0
  63. package/components/DataGrid/formatters/ColumnImageFormatter/tests/ColumnImageFormatter.test.d.ts +1 -0
  64. package/components/DataGrid/formatters/ColumnImageFormatter/types.d.ts +44 -0
  65. package/components/DataGrid/formatters/ColumnImageFormatter/types.js +1 -0
  66. package/components/DataGrid/formatters/ColumnImageFormatter/useColumnImage.d.ts +9 -0
  67. package/components/DataGrid/formatters/ColumnImageFormatter/useColumnImage.js +22 -0
  68. package/components/DataGrid/formatters/ColumnTagsFormatter/tests/ColumnTagsFormatter.test.d.ts +1 -0
  69. package/components/DataGrid/formatters/ColumnTagsFormatter/tests/useColumnTags.test.d.ts +1 -0
  70. package/components/DataGrid/formatters/index.d.ts +1 -0
  71. package/components/DataGrid/helpers/getAllViewModes/getAllViewModes.d.ts +19 -0
  72. package/components/DataGrid/helpers/getAllViewModes/getAllViewModes.js +6 -0
  73. package/components/DataGrid/helpers/getAllViewModes/getAllViewModes.test.d.ts +1 -0
  74. package/components/DataGrid/helpers/getAllViewModes/index.d.ts +1 -0
  75. package/components/DataGrid/helpers/getAllViewModes/index.js +1 -0
  76. package/components/DataGrid/helpers/getColumnsWidth/getColumnsWidth.d.ts +47 -0
  77. package/components/DataGrid/helpers/getColumnsWidth/getColumnsWidth.js +32 -0
  78. package/components/DataGrid/helpers/getColumnsWidth/getColumnsWidth.test.d.ts +1 -0
  79. package/components/DataGrid/helpers/getColumnsWidth/index.d.ts +1 -0
  80. package/components/DataGrid/helpers/getColumnsWidth/index.js +1 -0
  81. package/components/DataGrid/helpers/getIndexRowHeightVariant/getIndexRowHeightVariant.d.ts +24 -0
  82. package/components/DataGrid/helpers/getIndexRowHeightVariant/getIndexRowHeightVariant.js +12 -0
  83. package/components/DataGrid/helpers/getIndexRowHeightVariant/getIndexRowHeightVariant.test.d.ts +1 -0
  84. package/components/DataGrid/helpers/getIndexRowHeightVariant/index.d.ts +1 -0
  85. package/components/DataGrid/helpers/getIndexRowHeightVariant/index.js +1 -0
  86. package/components/DataGrid/helpers/getInitialColumnsConfig/getInitialColumnsConfig.d.ts +48 -0
  87. package/components/DataGrid/helpers/getInitialColumnsConfig/getInitialColumnsConfig.js +35 -0
  88. package/components/DataGrid/helpers/getInitialColumnsConfig/getInitialColumnsConfig.test.d.ts +1 -0
  89. package/components/DataGrid/helpers/getInitialColumnsConfig/index.d.ts +1 -0
  90. package/components/DataGrid/helpers/getInitialColumnsConfig/index.js +1 -0
  91. package/components/DataGrid/helpers/getViewMode/getViewMode.d.ts +41 -0
  92. package/components/DataGrid/helpers/getViewMode/getViewMode.js +19 -0
  93. package/components/DataGrid/helpers/getViewMode/getViewMode.test.d.ts +1 -0
  94. package/components/DataGrid/helpers/getViewMode/index.d.ts +1 -0
  95. package/components/DataGrid/helpers/getViewMode/index.js +1 -0
  96. package/components/DataGrid/helpers/getViewSpecificConfig/getViewSpecificConfig.d.ts +28 -0
  97. package/components/DataGrid/helpers/getViewSpecificConfig/getViewSpecificConfig.js +22 -0
  98. package/components/DataGrid/helpers/getViewSpecificConfig/getViewSpecificConfig.test.d.ts +1 -0
  99. package/components/DataGrid/helpers/getViewSpecificConfig/index.d.ts +1 -0
  100. package/components/DataGrid/helpers/getViewSpecificConfig/index.js +1 -0
  101. package/components/DataGrid/helpers/getViewSuffix/getViewSuffix.d.ts +24 -0
  102. package/components/DataGrid/helpers/getViewSuffix/getViewSuffix.js +9 -0
  103. package/components/DataGrid/helpers/getViewSuffix/getViewSuffix.test.d.ts +1 -0
  104. package/components/DataGrid/helpers/getViewSuffix/index.d.ts +1 -0
  105. package/components/DataGrid/helpers/getViewSuffix/index.js +1 -0
  106. package/components/DataGrid/helpers/index.d.ts +13 -0
  107. package/components/DataGrid/helpers/index.js +1 -0
  108. package/components/DataGrid/helpers/loadViewConfig/index.d.ts +1 -0
  109. package/components/DataGrid/helpers/loadViewConfig/index.js +1 -0
  110. package/components/DataGrid/helpers/loadViewConfig/loadViewConfig.d.ts +23 -0
  111. package/components/DataGrid/helpers/loadViewConfig/loadViewConfig.js +12 -0
  112. package/components/DataGrid/helpers/loadViewConfig/loadViewConfig.test.d.ts +1 -0
  113. package/components/DataGrid/helpers/saveColumnsWidth/index.d.ts +1 -0
  114. package/components/DataGrid/helpers/saveColumnsWidth/index.js +1 -0
  115. package/components/DataGrid/helpers/saveColumnsWidth/saveColumnsWidth.d.ts +52 -0
  116. package/components/DataGrid/helpers/saveColumnsWidth/saveColumnsWidth.js +18 -0
  117. package/components/DataGrid/helpers/saveColumnsWidth/saveColumnsWidth.test.d.ts +1 -0
  118. package/components/DataGrid/helpers/saveViewConfig/index.d.ts +1 -0
  119. package/components/DataGrid/helpers/saveViewConfig/index.js +1 -0
  120. package/components/DataGrid/helpers/saveViewConfig/saveViewConfig.d.ts +35 -0
  121. package/components/DataGrid/helpers/saveViewConfig/saveViewConfig.js +15 -0
  122. package/components/DataGrid/helpers/saveViewConfig/saveViewConfig.test.d.ts +1 -0
  123. package/components/DataGrid/helpers/saveViewMode/index.d.ts +1 -0
  124. package/components/DataGrid/helpers/saveViewMode/index.js +1 -0
  125. package/components/DataGrid/helpers/saveViewMode/saveViewMode.d.ts +33 -0
  126. package/components/DataGrid/helpers/saveViewMode/saveViewMode.js +13 -0
  127. package/components/DataGrid/helpers/saveViewMode/saveViewMode.test.d.ts +1 -0
  128. package/components/DataGrid/hooks/index.d.ts +6 -0
  129. package/components/DataGrid/hooks/index.js +1 -0
  130. package/components/DataGrid/hooks/useChangeColumnsConfig/index.d.ts +1 -0
  131. package/components/DataGrid/hooks/useChangeColumnsConfig/index.js +1 -0
  132. package/components/DataGrid/hooks/useChangeColumnsConfig/useChangeColumnsConfig.d.ts +9 -0
  133. package/components/DataGrid/hooks/useChangeColumnsConfig/useChangeColumnsConfig.js +27 -0
  134. package/components/DataGrid/hooks/useChangeColumnsConfig/useChangeColumnsConfig.test.d.ts +1 -0
  135. package/components/DataGrid/hooks/useChangeColumnsOrder/index.d.ts +1 -0
  136. package/components/DataGrid/hooks/useChangeColumnsOrder/index.js +1 -0
  137. package/components/DataGrid/hooks/useChangeColumnsOrder/useChangeColumnsOrder.d.ts +10 -0
  138. package/components/DataGrid/hooks/useChangeColumnsOrder/useChangeColumnsOrder.js +34 -0
  139. package/components/DataGrid/hooks/useChangeColumnsOrder/useChangeColumnsOrder.test.d.ts +1 -0
  140. package/components/DataGrid/hooks/useColumnsWidth/index.d.ts +1 -0
  141. package/components/DataGrid/hooks/useColumnsWidth/index.js +1 -0
  142. package/components/DataGrid/hooks/useColumnsWidth/useColumnsWidth.d.ts +11 -0
  143. package/components/DataGrid/hooks/useColumnsWidth/useColumnsWidth.js +29 -0
  144. package/components/DataGrid/hooks/useColumnsWidth/useColumnsWidth.test.d.ts +1 -0
  145. package/components/DataGrid/hooks/useModalCardDetail.d.ts +1 -1
  146. package/components/DataGrid/hooks/useModalCardDetail.js +6 -1
  147. package/components/DataGrid/hooks/useRowHeight/index.d.ts +1 -0
  148. package/components/DataGrid/hooks/useRowHeight/index.js +1 -0
  149. package/components/DataGrid/hooks/useRowHeight/useRowHeight.d.ts +28 -0
  150. package/components/DataGrid/hooks/useRowHeight/useRowHeight.js +51 -0
  151. package/components/DataGrid/hooks/useRowHeight/useRowHeight.test.d.ts +1 -0
  152. package/components/DataGrid/hooks/useViewConfig/index.d.ts +1 -0
  153. package/components/DataGrid/hooks/useViewConfig/index.js +1 -0
  154. package/components/DataGrid/hooks/useViewConfig/useViewConfig.d.ts +9 -0
  155. package/components/DataGrid/hooks/useViewConfig/useViewConfig.js +30 -0
  156. package/components/DataGrid/hooks/useViewConfig/useViewConfig.test.d.ts +1 -0
  157. package/components/DataGrid/hooks/useViewMode/index.d.ts +1 -0
  158. package/components/DataGrid/hooks/useViewMode/index.js +1 -0
  159. package/components/DataGrid/hooks/useViewMode/useViewMode.d.ts +31 -0
  160. package/components/DataGrid/hooks/useViewMode/useViewMode.js +44 -0
  161. package/components/DataGrid/hooks/useViewMode/useViewMode.test.d.ts +1 -0
  162. package/components/DataGrid/icons.d.ts +1 -0
  163. package/components/DataGrid/icons.js +2 -1
  164. package/components/DataGrid/index.d.ts +5 -4
  165. package/components/DataGrid/slots/DataGridEnum.d.ts +4 -1
  166. package/components/DataGrid/slots/DataGridEnum.js +3 -0
  167. package/components/DataGrid/slots/DataGridSlot.d.ts +3 -0
  168. package/components/DataGrid/slots/DataGridSlot.js +48 -33
  169. package/components/DataGrid/subcomponents/Cards/helpers/calculateCardHeight.d.ts +5 -4
  170. package/components/DataGrid/subcomponents/Cards/helpers/calculateCardHeight.js +4 -1
  171. package/components/DataGrid/subcomponents/Cards/helpers/scrollToCardElement.js +2 -2
  172. package/components/DataGrid/subcomponents/Cards/hooks/useCardContent.d.ts +1 -1
  173. package/components/DataGrid/subcomponents/Cards/hooks/useCardContent.js +47 -5
  174. package/components/DataGrid/subcomponents/Cards/index.js +22 -6
  175. package/components/DataGrid/subcomponents/Cards/subcomponents/CardDetails/index.d.ts +1 -1
  176. package/components/DataGrid/subcomponents/Cards/subcomponents/CardDetails/index.js +57 -15
  177. package/components/DataGrid/subcomponents/Cards/subcomponents/CardHeader/index.js +16 -8
  178. package/components/DataGrid/subcomponents/Cards/subcomponents/CardRow/index.d.ts +2 -2
  179. package/components/DataGrid/subcomponents/Cards/subcomponents/CardRow/index.js +6 -1
  180. package/components/DataGrid/subcomponents/Cards/types.d.ts +16 -0
  181. package/components/DataGrid/subcomponents/CheckboxCellAdapter/index.js +5 -2
  182. package/components/DataGrid/subcomponents/ControlNavigate/ControlNavigate.js +1 -1
  183. package/components/DataGrid/subcomponents/HeaderActions/index.js +2 -2
  184. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Density/index.js +0 -3
  185. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/RowsCount/index.js +1 -1
  186. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +1 -1
  187. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/Settings/subcomponents/ColumnsConfigCards/index.js +1 -1
  188. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/ViewMode/index.js +1 -1
  189. package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +6 -2
  190. package/components/DataGrid/subcomponents/Table/index.js +11 -2
  191. package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.js +0 -3
  192. package/components/DataGrid/subcomponents/Table/subcomponents/CheckboxFormatter.js +1 -0
  193. package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.js +39 -14
  194. package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.js +1 -1
  195. package/components/DataGrid/subcomponents/Table/subcomponents/HeaderRenderClick/HeaderRenderClick.js +1 -1
  196. package/components/DataGrid/subcomponents/Table/subcomponents/RadioFormatter.d.ts +6 -0
  197. package/components/DataGrid/subcomponents/Table/subcomponents/RadioFormatter.js +12 -0
  198. package/components/DataGrid/subcomponents/Table/subcomponents/RadioSelectColumn.d.ts +64 -0
  199. package/components/DataGrid/subcomponents/Table/subcomponents/RadioSelectColumn.js +46 -0
  200. package/components/DataGrid/subcomponents/editors/TextEditor/index.js +1 -1
  201. package/components/DataGrid/tests/helpers/types.d.ts +10 -0
  202. package/components/DataGrid/tests/table/subcomponents/RadioFormatter.test.d.ts +1 -0
  203. package/components/DataGrid/tests/table/subcomponents/RadioSelectColumn.test.d.ts +1 -0
  204. package/components/DataGrid/types.d.ts +49 -6
  205. package/components/DataGrid/types.helpers.d.ts +55 -0
  206. package/components/DataGrid/types.helpers.js +1 -0
  207. package/components/DataGrid/types.hooks.d.ts +81 -0
  208. package/components/DynamicFilter/DynamicFilter.styles.js +5 -2
  209. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +2 -2
  210. package/components/DynamicFilter/store/DynamicFilterContext.js +11 -0
  211. package/components/DynamicFilter/store/DynamicFilterStore.js +9 -0
  212. package/components/DynamicFilter/subcomponents/DynamicFilterBase/useDynamicFilterBase.d.ts +1 -1
  213. package/components/DynamicFilter/types.d.ts +4 -0
  214. package/components/DynamicSort/DynamicSort.styles.js +5 -2
  215. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -2
  216. package/components/DynamicSort/store/DynamicSortStore.js +6 -0
  217. package/components/DynamicSort/subcomponents/DynamicSortBase/useDynamicSortBase.d.ts +1 -1
  218. package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +3 -0
  219. package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +3 -0
  220. package/components/DynamicSort/types.d.ts +4 -0
  221. package/components/EditLabel/constants.d.ts +1 -1
  222. package/components/EditLabel/slots/EditLabelSlots.d.ts +4 -4
  223. package/components/GridLayout/styles.js +0 -1
  224. package/components/HelperError/slots/HelperErrorSlots.d.ts +1 -1
  225. package/components/ImageText/constants.d.ts +1 -1
  226. package/components/ImageText/slots/ImageTextSlots.d.ts +2 -2
  227. package/components/Label/slots/LabelSlots.d.ts +3 -3
  228. package/components/LanguagePopover/LanguagePopover.styles.js +13 -4
  229. package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +1 -1
  230. package/components/LoadingError/LoadingError.js +1 -1
  231. package/components/LoadingError/slots/LoadingErrorSlots.d.ts +1 -1
  232. package/components/MFIsolationApp/slots/MFIsolationAppSlots.d.ts +2 -2
  233. package/components/MFLoader/styles.js +0 -1
  234. package/components/MenuActions/slots/MenuActionsSlots.d.ts +2 -2
  235. package/components/ModalDialog/ModalDialog.styles.js +8 -1
  236. package/components/ModalDialog/slots/ModalDialogSlots.d.ts +2 -2
  237. package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
  238. package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +2 -2
  239. package/components/Pager/slots/PagerSlots.d.ts +3 -3
  240. package/components/PaperForm/slots/PaperFormSlots.d.ts +1 -1
  241. package/components/PrintingSystem/PrintingSystem.js +3 -1
  242. package/components/PrintingSystem/PrintingSystem.styles.js +179 -2
  243. package/components/PropertyValue/PropertyValue.js +1 -1
  244. package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +3 -3
  245. package/components/SideBar/slots/SideBarSlots.d.ts +1 -1
  246. package/components/SideBar/subcomponents/SideBarMobile/index.js +0 -3
  247. package/components/Stepper/Stepper.styles.js +13 -8
  248. package/{helpers → components/Stepper/helpers}/getStepsAndValidationSchema/getStepsAndValidationSchema.d.ts +4 -4
  249. package/{helpers → components/Stepper/helpers}/getStepsAndValidationSchema/getStepsAndValidationSchema.js +6 -12
  250. package/components/Stepper/helpers/getStepsAndValidationSchema/index.js +1 -0
  251. package/{helpers → components/Stepper/helpers}/getStepsAndValidationSchema/types.d.ts +6 -3
  252. package/components/Stepper/helpers/getStepsAndValidationSchema/types.js +1 -0
  253. package/components/Stepper/hooks/useDynamicValidation/index.d.ts +2 -1
  254. package/components/Stepper/hooks/useDynamicValidation/index.js +31 -6
  255. package/components/Stepper/index.d.ts +1 -0
  256. package/components/Stepper/slots/StepperSlot.d.ts +4 -4
  257. package/components/Stepper/subcomponents/StepperButtons/StepperSubmitButton/index.js +1 -1
  258. package/components/TabsNavigator/slots/TabsNavigatorSlots.d.ts +2 -2
  259. package/components/ToastContainer/slots/toastContainerSlots.d.ts +4 -4
  260. package/components/WindowBase/hooks/useDynamicMFParameters/index.d.ts +4 -4
  261. package/components/WindowBase/slots/WindowBaseSlots.d.ts +2 -2
  262. package/components/animate/variants/background.d.ts +9 -9
  263. package/components/animate/variants/bounce.d.ts +9 -9
  264. package/components/animate/variants/fade.d.ts +20 -20
  265. package/components/animate/variants/flip.d.ts +6 -6
  266. package/components/animate/variants/rotate.d.ts +3 -3
  267. package/components/animate/variants/scale.d.ts +6 -6
  268. package/components/animate/variants/slide.d.ts +16 -16
  269. package/components/animate/variants/transition.d.ts +3 -3
  270. package/components/animate/variants/zoom.d.ts +15 -15
  271. package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +3 -3
  272. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +5 -0
  273. package/components/commercial/AppBarCommercial/styles.js +1 -3
  274. package/components/commercial/HamburgerMenu/styles.js +1 -3
  275. package/components/commercial/SectionCommercial/styles.d.ts +1 -1
  276. package/components/commercial/SectionCommercial/styles.js +1 -3
  277. package/components/commercial/TopBar/component/ConteinItem/subcomponets/NavItem/index.js +1 -3
  278. package/components/commercial/TopBar/style.js +1 -3
  279. package/components/extended/React-Resizable/Resizable/slots/ResizableSlots.d.ts +1 -1
  280. package/components/extended/React-Resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
  281. package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +6 -6
  282. package/components/formatters/BooleanFormatter/slots/BooleanFormatterSlots.d.ts +1 -1
  283. package/components/formatters/ConcatenatedFormatter/slots/ConcatenatedFormatterSlots.d.ts +1 -1
  284. package/components/formatters/DateFormatter/slots/DateFormatterSlots.d.ts +1 -1
  285. package/components/formatters/DistanceToNowFormatter/slots/DistanceToNowFormatterSlots.d.ts +1 -1
  286. package/components/formatters/ImageFormatter/ImageFormatter.d.ts +10 -0
  287. package/components/formatters/ImageFormatter/ImageFormatter.js +72 -0
  288. package/components/formatters/ImageFormatter/ImageFormatter.styles.d.ts +2 -0
  289. package/components/formatters/ImageFormatter/ImageFormatter.styles.js +42 -0
  290. package/components/formatters/ImageFormatter/constants.d.ts +5 -0
  291. package/components/formatters/ImageFormatter/constants.js +10 -0
  292. package/components/formatters/ImageFormatter/index.d.ts +2 -0
  293. package/components/formatters/ImageFormatter/index.js +1 -0
  294. package/components/formatters/ImageFormatter/slots/ImageFormatterEnum.d.ts +5 -0
  295. package/components/formatters/ImageFormatter/slots/ImageFormatterEnum.js +9 -0
  296. package/components/formatters/ImageFormatter/slots/ImageFormatterSlots.d.ts +9 -0
  297. package/components/formatters/ImageFormatter/slots/ImageFormatterSlots.js +23 -0
  298. package/components/formatters/ImageFormatter/tests/ImageFormatter.test.d.ts +1 -0
  299. package/components/formatters/ImageFormatter/types.d.ts +51 -0
  300. package/components/formatters/ImageFormatter/types.js +1 -0
  301. package/components/formatters/PeriodFormatter/slots/PeriodFormatterSlots.d.ts +1 -1
  302. package/components/formatters/PointsFormatter/slots/ointsFormatterSlots.d.ts +1 -1
  303. package/components/formatters/PriceFormatter/slots/PriceFormatterSlots.d.ts +1 -1
  304. package/components/formatters/UncertaintyFormatter/slots/UncertaintyFormatterSlots.d.ts +1 -1
  305. package/components/formatters/index.d.ts +1 -0
  306. package/components/hook-form/RHFActionsGroup/RHFActionsGroup.js +2 -2
  307. package/components/hook-form/RHFAutocomplete/RHFAutocomplete.js +2 -2
  308. package/components/hook-form/RHFCheckableList/RHFCheckableList.d.ts +7 -0
  309. package/components/hook-form/RHFCheckableList/RHFCheckableList.js +91 -0
  310. package/components/hook-form/RHFCheckableList/RHFCheckableList.styles.d.ts +2 -0
  311. package/components/hook-form/RHFCheckableList/RHFCheckableList.styles.js +30 -0
  312. package/components/hook-form/RHFCheckableList/constants.d.ts +8 -0
  313. package/components/hook-form/RHFCheckableList/constants.js +11 -0
  314. package/components/hook-form/RHFCheckableList/index.d.ts +2 -0
  315. package/components/hook-form/RHFCheckableList/index.js +1 -0
  316. package/components/hook-form/RHFCheckableList/slots/RHFCheckableListEnum.d.ts +6 -0
  317. package/components/hook-form/RHFCheckableList/slots/RHFCheckableListEnum.js +10 -0
  318. package/components/hook-form/RHFCheckableList/slots/RHFCheckableListSlots.d.ts +20 -0
  319. package/components/hook-form/RHFCheckableList/slots/RHFCheckableListSlots.js +29 -0
  320. package/components/hook-form/RHFCheckableList/slots/index.d.ts +2 -0
  321. package/components/hook-form/RHFCheckableList/types.d.ts +60 -0
  322. package/components/hook-form/RHFCheckbox/RHFCheckbox.js +2 -2
  323. package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
  324. package/components/hook-form/RHFColorPicker/RFHColorPicker.js +2 -2
  325. package/components/hook-form/RHFColorPicker/hooks/useColorPicker/useColorPicker.d.ts +1 -1
  326. package/components/hook-form/RHFColorPicker/slots/RHFColorPickerSlots.d.ts +1 -1
  327. package/components/hook-form/RHFColorPicker/slots/RHFColorPickerSlots.js +1 -1
  328. package/components/hook-form/RHFDatePicker/RHFDatePicker.d.ts +7 -0
  329. package/components/hook-form/RHFDatePicker/RHFDatePicker.js +85 -0
  330. package/components/hook-form/RHFDatePicker/RHFDatePicker.styles.d.ts +5 -0
  331. package/components/hook-form/RHFDatePicker/RHFDatePicker.styles.js +200 -0
  332. package/components/hook-form/RHFDatePicker/__tests__/RHFDatePicker.test.d.ts +1 -0
  333. package/components/hook-form/RHFDatePicker/constants.d.ts +4 -0
  334. package/components/hook-form/RHFDatePicker/constants.js +4 -0
  335. package/components/hook-form/RHFDatePicker/icons.d.ts +6 -0
  336. package/components/hook-form/RHFDatePicker/index.d.ts +1 -0
  337. package/components/hook-form/RHFDatePicker/index.js +1 -0
  338. package/components/hook-form/RHFDatePicker/slots/RHFDatePickerEnum.d.ts +11 -0
  339. package/components/hook-form/RHFDatePicker/slots/RHFDatePickerEnum.js +15 -0
  340. package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.d.ts +50 -0
  341. package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.js +44 -0
  342. package/components/hook-form/RHFDatePicker/slots/index.d.ts +2 -0
  343. package/components/hook-form/RHFDatePicker/slots/index.js +1 -0
  344. package/components/hook-form/RHFDatePicker/types.d.ts +61 -0
  345. package/components/hook-form/RHFDateTime/RHFDateTime.d.ts +24 -1
  346. package/components/hook-form/RHFDateTime/RHFDateTime.js +2 -2
  347. package/components/hook-form/RHFDateTimePicker/RHFDateTimePicker.d.ts +11 -0
  348. package/components/hook-form/RHFDateTimePicker/RHFDateTimePicker.js +8 -0
  349. package/components/hook-form/RHFDateTimePicker/index.d.ts +1 -0
  350. package/components/hook-form/RHFDateTimePicker/index.js +1 -0
  351. package/components/hook-form/RHFNumberInput/RHFNumberInput.js +2 -2
  352. package/components/hook-form/RHFPeriod/RHFPeriod.js +2 -2
  353. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
  354. package/components/hook-form/RHFPeriod/subcomponents/Period/Period.js +4 -4
  355. package/components/hook-form/RHFRadioGroup/RHFRadioGroup.d.ts +3 -3
  356. package/components/hook-form/RHFRadioGroup/RHFRadioGroup.js +66 -24
  357. package/components/hook-form/RHFRadioGroup/RHFRadioGroup.styles.d.ts +5 -0
  358. package/components/hook-form/RHFRadioGroup/RHFRadioGroup.styles.js +29 -0
  359. package/components/hook-form/RHFRadioGroup/constants.d.ts +5 -0
  360. package/components/hook-form/RHFRadioGroup/constants.js +8 -0
  361. package/components/hook-form/RHFRadioGroup/formatters/OptionIconLabelFormatter/index.d.ts +2 -2
  362. package/components/hook-form/RHFRadioGroup/slots/slots.d.ts +5 -0
  363. package/components/hook-form/RHFRadioGroup/slots/slots.js +9 -0
  364. package/components/hook-form/RHFRadioGroup/slots/styled.d.ts +9 -0
  365. package/components/hook-form/RHFRadioGroup/slots/styled.js +20 -0
  366. package/components/hook-form/RHFRadioGroup/types.d.ts +55 -11
  367. package/components/hook-form/RHFSelect/RHFSelect.js +2 -2
  368. package/components/hook-form/RHFSelect/constants.d.ts +1 -1
  369. package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
  370. package/components/hook-form/RHFTextField/RHFTextField.js +2 -2
  371. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
  372. package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js +2 -2
  373. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +2 -2
  374. package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.js +3 -1
  375. package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +3 -3
  376. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.js +5 -4
  377. package/components/hook-form/RHFUpload/RHFUploadImage/types.d.ts +4 -0
  378. package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.js +6 -4
  379. package/components/hook-form/RHFUpload/RHFUploadSingleFile/constants.d.ts +1 -1
  380. package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +7 -7
  381. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/Preview/Preview.js +3 -2
  382. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/Preview/types.d.ts +1 -1
  383. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/UploadSingleFile/index.js +13 -4
  384. package/components/hook-form/RHFUpload/RHFUploadSingleFile/types.d.ts +4 -0
  385. package/components/hook-form/RHFormProvider/classes/index.d.ts +1 -1
  386. package/components/hook-form/RHFormProvider/styles.js +4 -3
  387. package/components/hook-form/index.d.ts +3 -0
  388. package/components/index.d.ts +1 -0
  389. package/components/mui_extended/Accordion/Accordion.js +3 -3
  390. package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +3 -3
  391. package/components/mui_extended/Accordion/styles.js +8 -5
  392. package/components/mui_extended/Autocomplete/Autocomplete.styles.js +11 -1
  393. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +6 -6
  394. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.js +1 -1
  395. package/components/mui_extended/Avatar/slots/AvatarSlots.d.ts +1 -1
  396. package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +1 -1
  397. package/components/mui_extended/Button/slots/ButtonSlots.d.ts +2 -2
  398. package/components/mui_extended/CheckBox/CheckBox.js +2 -0
  399. package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +2 -2
  400. package/components/mui_extended/DatePicker/DatePicker.d.ts +7 -0
  401. package/components/mui_extended/DatePicker/DatePicker.js +39 -0
  402. package/components/mui_extended/DatePicker/DatePicker.styles.d.ts +5 -0
  403. package/components/mui_extended/DatePicker/DatePicker.styles.js +193 -0
  404. package/components/mui_extended/DatePicker/__tests__/DatePicker.test.d.ts +1 -0
  405. package/components/mui_extended/DatePicker/constants.d.ts +2 -0
  406. package/components/mui_extended/DatePicker/constants.js +8 -0
  407. package/components/mui_extended/DatePicker/hooks/useDatePicker/types.d.ts +11 -0
  408. package/components/mui_extended/DatePicker/hooks/useDatePicker/useDatePicker.d.ts +9 -0
  409. package/components/mui_extended/DatePicker/hooks/useDatePicker/useDatePicker.js +200 -0
  410. package/components/mui_extended/DatePicker/icons.d.ts +4 -0
  411. package/components/mui_extended/DatePicker/icons.js +10 -0
  412. package/components/mui_extended/DatePicker/index.d.ts +2 -0
  413. package/components/mui_extended/DatePicker/index.js +1 -0
  414. package/components/mui_extended/DatePicker/slots/DatePickerEnum.d.ts +10 -0
  415. package/components/mui_extended/DatePicker/slots/DatePickerEnum.js +14 -0
  416. package/components/mui_extended/DatePicker/slots/DatePickerSlots.d.ts +44 -0
  417. package/components/mui_extended/DatePicker/slots/DatePickerSlots.js +46 -0
  418. package/components/mui_extended/DatePicker/types.d.ts +32 -0
  419. package/components/mui_extended/DateTimePicker/DateTimePicker.styles.js +158 -129
  420. package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +4 -4
  421. package/components/mui_extended/Divider/slots/DividerSlots.d.ts +1 -1
  422. package/components/mui_extended/IconButton/constants.d.ts +1 -1
  423. package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +1 -1
  424. package/components/mui_extended/ImageButton/styles.js +1 -3
  425. package/components/mui_extended/LoadingButton/index.js +1 -0
  426. package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
  427. package/components/mui_extended/MenuDivider/slots/MenuDividerSlots.d.ts +1 -1
  428. package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +2 -2
  429. package/components/mui_extended/NavLink/constants.d.ts +1 -1
  430. package/components/mui_extended/NavLink/slots/NavLinkSlots.d.ts +1 -1
  431. package/components/mui_extended/Popover/Popover.styles.js +6 -1
  432. package/components/mui_extended/Popper/slots/PopperStlots.d.ts +1 -1
  433. package/components/mui_extended/Radio/Radio.d.ts +20 -0
  434. package/components/mui_extended/Radio/Radio.js +111 -0
  435. package/components/mui_extended/Radio/Radio.styles.d.ts +2 -0
  436. package/components/mui_extended/Radio/Radio.styles.js +101 -0
  437. package/components/mui_extended/Radio/constants.d.ts +2 -0
  438. package/components/mui_extended/Radio/constants.js +8 -0
  439. package/components/mui_extended/Radio/icons.d.ts +4 -0
  440. package/components/mui_extended/Radio/icons.js +7 -0
  441. package/components/mui_extended/Radio/index.d.ts +1 -0
  442. package/components/mui_extended/Radio/index.js +1 -0
  443. package/components/mui_extended/Radio/slots/slots.d.ts +6 -0
  444. package/components/mui_extended/Radio/slots/slots.js +10 -0
  445. package/components/mui_extended/Radio/slots/styled.d.ts +14 -0
  446. package/components/mui_extended/Radio/slots/styled.js +28 -0
  447. package/components/mui_extended/Radio/tests/Radio.test.d.ts +1 -0
  448. package/components/mui_extended/Radio/types.d.ts +53 -0
  449. package/components/mui_extended/Select/Select.js +2 -18
  450. package/components/mui_extended/Select/Select.styles.js +33 -1
  451. package/components/mui_extended/Select/constants.d.ts +2 -1
  452. package/components/mui_extended/Select/slots/SelectEnum.d.ts +2 -1
  453. package/components/mui_extended/Select/slots/SelectEnum.js +1 -0
  454. package/components/mui_extended/Select/slots/SelectSlots.d.ts +5 -5
  455. package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
  456. package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
  457. package/components/mui_extended/Stack/Stack.d.ts +1 -1
  458. package/components/mui_extended/Stack/Stack.js +5 -2
  459. package/components/mui_extended/Stack/slots/StackSlot.d.ts +1 -1
  460. package/components/mui_extended/Tab/Slots/TabSlots.d.ts +2 -2
  461. package/components/mui_extended/TabContent/TabContent.styles.js +2 -2
  462. package/components/mui_extended/Tabs/Tabs.js +48 -2
  463. package/components/mui_extended/Tabs/Tabs.styles.js +52 -26
  464. package/components/mui_extended/Tabs/icons.d.ts +4 -0
  465. package/components/mui_extended/Tabs/icons.js +7 -0
  466. package/components/mui_extended/Tabs/slots/TabsSlots.d.ts +1 -1
  467. package/components/mui_extended/Tabs/types.d.ts +4 -1
  468. package/components/mui_extended/TextField/TextField.js +2 -2
  469. package/components/mui_extended/TextField/TextField.styles.js +3 -2
  470. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +4 -4
  471. package/components/mui_extended/TimePicker/slots/TimePickerSlots.d.ts +3 -3
  472. package/components/mui_extended/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
  473. package/components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
  474. package/components/mui_extended/Tooltip/constants.d.ts +1 -1
  475. package/components/mui_extended/Typography/slots/typographySlots.d.ts +1 -1
  476. package/components/mui_extended/index.d.ts +2 -0
  477. package/hooks/useDataGridPersistence/constants.d.ts +2 -0
  478. package/hooks/useDataGridPersistence/constants.js +6 -2
  479. package/hooks/useDataGridPersistence/helpers.d.ts +5 -1
  480. package/hooks/useDataGridPersistence/helpers.js +8 -1
  481. package/hooks/useDataGridPersistence/useDataGridPersistence.d.ts +11 -3
  482. package/hooks/useDataGridPersistence/useDataGridPersistence.js +65 -20
  483. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortEnum.d.ts +2 -1
  484. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortEnum.js +1 -0
  485. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +6 -3
  486. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.js +6 -0
  487. package/hooks/useDynamicFilterAndSort/styles.js +23 -0
  488. package/hooks/useDynamicFilterAndSort/types.d.ts +2 -0
  489. package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +27 -21
  490. package/index.d.ts +0 -1
  491. package/index.js +233 -213
  492. package/package.json +1 -1
  493. package/components/DataGrid/formatters/ColumnIconFormatter/constants.d.ts +0 -4
  494. package/components/hook-form/RHFRadioGroup/formatters/OptionIconLabelFormatter/index.js +0 -16
  495. package/helpers/index.d.ts +0 -1
  496. /package/{helpers/getStepsAndValidationSchema → components/CheckableList/hooks}/index.js +0 -0
  497. /package/{helpers → components/CheckableList}/index.js +0 -0
  498. /package/{helpers/getStepsAndValidationSchema/types.js → components/CheckableList/slots/index.js} +0 -0
  499. /package/{helpers → components/Stepper/helpers}/getStepsAndValidationSchema/index.d.ts +0 -0
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Componente que es un envoltorio `div` que representa el contenedor raíz del `RHFDatePicker`.
3
+ */
4
+ export declare const RootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
5
+ ownerState?: (Partial<import('../types').RHFDatePickerOwnerState> & Record<string, unknown>) | undefined;
6
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
7
+ /**
8
+ * Componente estilizado de DatePicker de MUI como slot del componente.
9
+ */
10
+ export declare const DatePickerStyled: import('@emotion/styled').StyledComponent<import('@mui/x-date-pickers').DatePickerProps<unknown> & import('react').RefAttributes<HTMLDivElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
11
+ ownerState?: (Partial<import('../types').RHFDatePickerOwnerState> & Record<string, unknown>) | undefined;
12
+ }, {}, {}>;
13
+ /**
14
+ * Componente estilizado de TextField de MUI como slot del componente.
15
+ */
16
+ 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" | "variant" | "content" | "translate" | "margin" | "className" | "style" | "classes" | "sx" | "label" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "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" | "focused" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "inputProps" | "inputRef" | "multiline" | "minRows" | "SelectProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
17
+ ownerState?: (Partial<import('../types').RHFDatePickerOwnerState> & Record<string, unknown>) | undefined;
18
+ }, {}, {}>;
19
+ /**
20
+ * Componente estilizado de DesktopPaper de MUI como slot del componente.
21
+ */
22
+ export declare const DesktopPaperStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').PaperOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
23
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
24
+ }, "children" | "variant" | "className" | "style" | "classes" | "sx" | "square" | "elevation">, "children" | "ref" | "title" | "id" | "variant" | "color" | "content" | "translate" | "className" | "style" | "classes" | "sx" | "slot" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "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" | "square" | "elevation"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
25
+ ownerState?: (Partial<import('../types').RHFDatePickerOwnerState> & Record<string, unknown>) | undefined;
26
+ }, {}, {}>;
27
+ /**
28
+ * Componente estilizado de HeaderDesktop de MUI como slot del componente.
29
+ */
30
+ export declare const CalendarHeaderStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/x-date-pickers').PickersCalendarHeaderProps<unknown> & import('react').RefAttributes<HTMLButtonElement>, keyof import('react').RefAttributes<HTMLButtonElement> | keyof import('@mui/x-date-pickers').PickersCalendarHeaderProps<unknown>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
31
+ ownerState?: (Partial<import('../types').RHFDatePickerOwnerState> & Record<string, unknown>) | undefined;
32
+ }, {}, {}>;
33
+ /**
34
+ * Componente estilizado de IconButton de M4L como slot del componente.
35
+ */
36
+ export declare const IconButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "variant" | "color" | "content" | "translate" | "className" | "style" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "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" | "tooltip" | "instaceDataTestId" | "placement" | "icon" | "rotationAngle" | "ariaLabel" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
37
+ ownerState?: (Partial<import('../types').RHFDatePickerOwnerState> & Record<string, unknown>) | undefined;
38
+ }, {}, {}>;
39
+ /**
40
+ * Componente estilizado de Layout de MUI como slot del componente.
41
+ */
42
+ export declare const PickersLayoutStyled: import('@emotion/styled').StyledComponent<Pick<Pick<import('@mui/x-date-pickers').PickersLayoutProps<unknown, unknown, import('@mui/x-date-pickers/internals/models').DateOrTimeViewWithMeridiem>, keyof import('@mui/x-date-pickers').PickersLayoutProps<unknown, unknown, import('@mui/x-date-pickers/internals/models').DateOrTimeViewWithMeridiem>> & Pick<import('prop-types').InferProps<any>, string | number | symbol> & Pick<import('@mui/x-date-pickers').PickersLayoutProps<unknown, unknown, import('@mui/x-date-pickers/internals/models').DateOrTimeViewWithMeridiem>, never>, keyof import('@mui/x-date-pickers').PickersLayoutProps<unknown, unknown, import('@mui/x-date-pickers/internals/models').DateOrTimeViewWithMeridiem>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
43
+ ownerState?: (Partial<import('../types').RHFDatePickerOwnerState> & Record<string, unknown>) | undefined;
44
+ }, {}, {}>;
45
+ /**
46
+ * Componente estilizado de ActionsContainer.
47
+ */
48
+ export declare const ActionsContainerStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../CommonActions/components/ActionsContainer').ActionsContainerProps & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('../../../CommonActions/components/ActionsContainer').ActionsContainerProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
49
+ ownerState?: (Partial<import('../types').RHFDatePickerOwnerState> & Record<string, unknown>) | undefined;
50
+ }, {}, {}>;
@@ -0,0 +1,44 @@
1
+ import { styled, Paper } from "@mui/material";
2
+ import { DatePicker, PickersCalendarHeader, PickersLayout } from "@mui/x-date-pickers";
3
+ import { R as RHF_DATE_PICKER_KEY_COMPONENT } from "../constants.js";
4
+ import { r as rhfDatePickerStyles } from "../RHFDatePicker.styles.js";
5
+ import { R as RHFDatePickerSlots } from "./RHFDatePickerEnum.js";
6
+ import { T as TextField } from "../../../mui_extended/TextField/TextField.js";
7
+ import { I as IconButton } from "../../../mui_extended/IconButton/IconButton.js";
8
+ import { A as ActionsContainer } from "../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
9
+ const RootStyled = styled("div", {
10
+ name: RHF_DATE_PICKER_KEY_COMPONENT,
11
+ slot: RHFDatePickerSlots.root
12
+ })(rhfDatePickerStyles?.root);
13
+ styled(DatePicker, {
14
+ name: RHF_DATE_PICKER_KEY_COMPONENT,
15
+ slot: RHFDatePickerSlots.datePicker,
16
+ shouldForwardProp: (prop) => prop !== "ownerState"
17
+ })(rhfDatePickerStyles?.datePicker);
18
+ styled(TextField, {
19
+ name: RHF_DATE_PICKER_KEY_COMPONENT,
20
+ slot: RHFDatePickerSlots.textField
21
+ })(rhfDatePickerStyles?.textField);
22
+ styled(Paper, {
23
+ name: RHF_DATE_PICKER_KEY_COMPONENT,
24
+ slot: RHFDatePickerSlots.desktopPaper
25
+ })(rhfDatePickerStyles?.desktopPaper);
26
+ styled(PickersCalendarHeader, {
27
+ name: RHF_DATE_PICKER_KEY_COMPONENT,
28
+ slot: RHFDatePickerSlots.calendarHeader
29
+ })(rhfDatePickerStyles?.calendarHeader);
30
+ styled(IconButton, {
31
+ name: RHF_DATE_PICKER_KEY_COMPONENT,
32
+ slot: RHFDatePickerSlots.iconButton
33
+ })(rhfDatePickerStyles?.iconButton);
34
+ styled(PickersLayout, {
35
+ name: RHF_DATE_PICKER_KEY_COMPONENT,
36
+ slot: RHFDatePickerSlots.layout
37
+ })(rhfDatePickerStyles?.layout);
38
+ styled(ActionsContainer, {
39
+ name: RHF_DATE_PICKER_KEY_COMPONENT,
40
+ slot: RHFDatePickerSlots.actionsContainer
41
+ })(rhfDatePickerStyles?.actionsContainer);
42
+ export {
43
+ RootStyled as R
44
+ };
@@ -0,0 +1,2 @@
1
+ export * from './RHFDatePickerEnum';
2
+ export * from './RHFDatePickerSlots';
@@ -0,0 +1,61 @@
1
+ import { Theme } from '@mui/material';
2
+ import { Sizes } from '@m4l/styles';
3
+ import { DatePickerProps as MuiDatePickerProps } from '@mui/x-date-pickers';
4
+ import { LabelProps } from '../../Label/types';
5
+ import { RHFDatePickerSlots } from './slots/RHFDatePickerEnum';
6
+ import { RHF_DATE_PICKER_KEY_COMPONENT } from './constants';
7
+ import { M4LOverridesStyleRules } from '../../../@types/augmentations';
8
+ import { TextFieldVariants } from '../../mui_extended/TextField/types';
9
+ /**
10
+ * Interfaz de las propiedades que acepta el componente `RHFDatePicker`.
11
+ * Extiende los props del DatePicker de MUI, excluyendo `size` para usar el propio sistema de tamaños.
12
+ * También extiende `LabelProps` para soportar etiquetas y mensajes.
13
+ */
14
+ export interface RHFDatePickerProps extends Omit<MuiDatePickerProps<Date>, 'size' | 'slots' | 'slotProps'>, Omit<LabelProps, 'label' | 'error'> {
15
+ /**
16
+ * Nombre de etiqueta del campo.
17
+ * Esta propiedad se utiliza para etiquetar el campo del date picker.
18
+ * Puede ser útil para accesibilidad o como descripción del campo.
19
+ */
20
+ label?: string;
21
+ /**
22
+ * Identificador único del campo dentro del formulario de React Hook Form.
23
+ * Este identificador es necesario para vincular el campo con el formulario y manejar su estado.
24
+ */
25
+ name: string;
26
+ /**
27
+ * Variación de tamaño para el componente. Permite seleccionar entre dos tamaños:
28
+ * - `small`: Tamaño pequeño.
29
+ * - `medium`: Tamaño mediano.
30
+ * Esta propiedad sobrescribe el `size` del DatePicker de MUI.
31
+ */
32
+ size?: Extract<Sizes, 'small' | 'medium'>;
33
+ /**
34
+ * Indica si el campo está deshabilitado.
35
+ */
36
+ variant?: TextFieldVariants;
37
+ /**
38
+ * Indica si el campo es de solo lectura.
39
+ */
40
+ readOnly?: boolean;
41
+ }
42
+ /**
43
+ * Tipo que define los posibles valores de los slots disponibles en el componente `RHFDatePicker`.
44
+ * Este tipo se utiliza para determinar qué partes del componente pueden ser estilizadas o modificadas.
45
+ */
46
+ export type RHFDatePickerSlotsType = keyof typeof RHFDatePickerSlots;
47
+ /**
48
+ * Estado propietario del componente `RHFDatePicker`.
49
+ * Define propiedades específicas del estado que son necesarias para la gestión del componente.
50
+ */
51
+ export interface RHFDatePickerOwnerState extends Record<string, unknown> {
52
+ size?: RHFDatePickerProps['size'];
53
+ error?: boolean;
54
+ disabled?: boolean;
55
+ }
56
+ /**
57
+ * Tipo de estilos para el componente `RHFDatePicker`.
58
+ * Permite personalizar los estilos de los slots del componente.
59
+ * `OverridesStyleRules` se usa para sobrescribir los estilos predeterminados de Material-UI.
60
+ */
61
+ export type RHFDatePickerStyles = M4LOverridesStyleRules<RHFDatePickerSlotsType, typeof RHF_DATE_PICKER_KEY_COMPONENT, Theme>;
@@ -1,5 +1,28 @@
1
1
  import { RHFDateTimeProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * RHFDateTime es un componente que permite la selección y visualización de una fecha y hora específica,
4
+ * sin tener que gestionar una fecha completa. Se utiliza en escenarios donde se requiere
5
+ * que el usuario defina una fecha y hora, y se integra con react-hook-form, permitiendo la validación y
6
+ * manejo de estados de los campos de formulario.
7
+ * @deprecated Use RHFDateTimePicker instead.
8
+ *
9
+ * ### Dependencias:
10
+ * - **`useFormContext:`** Hook que provee acceso a los métodos y propiedades de un formulario react-hook-form.
11
+ * - **`useFormatter:`** Hook que permite acceder a los diferentes formatters de la aplicación.
12
+ * @example
13
+ * ```tsx
14
+ * const ExampleComponent = () => {
15
+ * const { control } = useForm();
16
+ * return (
17
+ * <RHFDateTime
18
+ * name="dateTime"
19
+ * size="medium"
20
+ * variant="outlined"
21
+ * label="Fecha y hora"
22
+ * helperMessage="Seleccione una fecha y hora"
23
+ * />
24
+ * );
25
+ * };
26
+ * ```
4
27
  */
5
28
  export declare function RHFDateTime(props: RHFDateTimeProps): import("react/jsx-runtime").JSX.Element;
@@ -43,7 +43,7 @@ function RHFDateTime(props) {
43
43
  {
44
44
  name: nameRHF,
45
45
  control,
46
- render: ({ field: { value, onChange, ref }, fieldState: { error } }) => {
46
+ render: ({ field: { value, onChange, ref }, fieldState: { error }, formState: { isSubmitting } }) => {
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,
65
+ disabled: disabled || isSubmitting,
66
66
  inputRef: ref,
67
67
  slotProps: {
68
68
  field: {
@@ -0,0 +1,11 @@
1
+ import { RHFDateTimeProps } from '../RHFDateTime/types';
2
+ /**
3
+ * RHFDateTimePicker es un componente que permite la selección y visualización de una fecha y hora específica,
4
+ * sin tener que gestionar una fecha completa. Se utiliza en escenarios donde se requiere
5
+ * que el usuario defina una fecha y hora, y se integra con react-hook-form, permitiendo la validación y
6
+ * manejo de estados de los campos de formulario.
7
+ *
8
+ * ### Dependencias:
9
+ * - **`RHFDateTime:`** Componente que permite la selección y visualización de una fecha y hora específica.
10
+ */
11
+ export declare const RHFDateTimePicker: (props: RHFDateTimeProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { R as RHFDateTime } from "../RHFDateTime/RHFDateTime.js";
3
+ const RHFDateTimePicker = (props) => {
4
+ return /* @__PURE__ */ jsx(RHFDateTime, { ...props });
5
+ };
6
+ export {
7
+ RHFDateTimePicker as R
8
+ };
@@ -0,0 +1 @@
1
+ export { RHFDateTimePicker } from './RHFDateTimePicker';
@@ -42,7 +42,7 @@ const RHFNumberInput = (props) => {
42
42
  {
43
43
  name,
44
44
  control,
45
- render: ({ field: { value, onChange }, fieldState: { error } }) => {
45
+ render: ({ field: { value, onChange }, fieldState: { error }, formState: { isSubmitting } }) => {
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,
72
+ disabled: disabled || isSubmitting,
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 } }) => {
50
+ render: ({ field: { onChange, value }, fieldState: { error }, formState: { isSubmitting } }) => {
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,
67
+ disabled: disabled || isSubmitting,
68
68
  value,
69
69
  onChange,
70
70
  size
@@ -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
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
- 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>, {}, {}>;
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" | "variant" | "content" | "translate" | "margin" | "className" | "style" | "classes" | "sx" | "slots" | "slotProps" | "label" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "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" | "open" | "dataTestId" | "autoComplete" | "multiple" | "placeholder" | "readOnly" | "required" | keyof import('react').RefAttributes<HTMLDivElement> | "maxRows" | "fullWidth" | "inputProps" | "inputRef" | "multiline" | "minRows" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "renderSuffix" | "startAdornment" | "disableUnderline" | "autoWidth" | "defaultOpen" | "displayEmpty" | "IconComponent" | "labelId" | "MenuProps" | "native" | "renderValue" | "SelectDisplayProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {}>;
@@ -90,16 +90,15 @@ const Period = (props) => {
90
90
  onTotalChange(newPeriodTime.id, singleValue);
91
91
  }
92
92
  };
93
- const normalizedSize = currentSize === "large" ? "medium" : currentSize;
94
93
  const ownerState = {
95
- size: normalizedSize,
94
+ size: currentSize,
96
95
  disabled
97
96
  };
98
97
  return /* @__PURE__ */ jsxs(PeriodRootStyled, { ownerState, children: [
99
98
  /* @__PURE__ */ jsx(
100
99
  Icon,
101
100
  {
102
- size: normalizedSize,
101
+ size: currentSize,
103
102
  src: `${host_static_assets}/${environment_assets}/frontend/components/period/assets/icons/clock.svg`,
104
103
  disabled
105
104
  }
@@ -107,7 +106,7 @@ const Period = (props) => {
107
106
  /* @__PURE__ */ jsx(
108
107
  SelectStyled,
109
108
  {
110
- size: normalizedSize,
109
+ size: currentSize,
111
110
  value: options[selPeriodTime].id,
112
111
  options,
113
112
  onChange: (autcValue) => {
@@ -124,6 +123,7 @@ const Period = (props) => {
124
123
  variant: "outlined",
125
124
  value: singleValue,
126
125
  withDecimal: true,
126
+ disabled,
127
127
  onChange: (_event, newValue) => {
128
128
  onTotalChange(selPeriodTime, newValue);
129
129
  }
@@ -1,6 +1,6 @@
1
- import { RadioGroupProps, RadioProps } from '@mui/material';
2
1
  import { RHFRadioGroupProps } from './types';
3
2
  /**
4
- * TODO: Documentar
3
+ * RHFRadioGroup: Componente que permite seleccionar una opción de un grupo de opciones.
4
+ * Por defecto usa el componente Radio de M4L basado en MUI, pero se puede pasar un componente personalizado.
5
5
  */
6
- export declare function RHFRadioGroup<TOption extends RadioProps>({ name, options, getOptionLabel, getOptionValue, getOptionIconUrl, renderOptionLabel, ControlLabel, ...other }: RHFRadioGroupProps<TOption> & RadioGroupProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function RHFRadioGroup<TOption>({ id, name, options, getOptionLabel, getOptionValue, label, mandatory, mandatoryMessage, helperMessage, size, dataTestId, labelSkeletonWidth, helperErrorSkeletonWidth, disabled, className, ControlOption, ...other }: RHFRadioGroupProps<TOption>): import("react/jsx-runtime").JSX.Element;
@@ -1,41 +1,83 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useFormContext, Controller } from "react-hook-form";
3
- import { RadioGroup, FormControlLabel, Radio } from "@mui/material";
4
- import { O as OptionIconLabelFormatter } from "./formatters/OptionIconLabelFormatter/index.js";
3
+ import { R as Radio } from "../../mui_extended/Radio/Radio.js";
4
+ import { R as RootStyled, a as RadioGroupStyled } from "./slots/styled.js";
5
+ import { useId } from "react";
6
+ import { R as RHFRADIO_GROUP_KEY_COMPONENT, a as RHFRADIO_GROUP_CLASSES } from "./constants.js";
7
+ import clsx from "clsx";
8
+ import { a as getPropDataTestId } from "../../../test/getNameDataTestId.js";
9
+ import { R as RHFRadioGroupSlots } from "./slots/slots.js";
10
+ import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
11
+ import { L as Label } from "../../Label/Label.js";
5
12
  import { H as HelperError } from "../../HelperError/HelperError.js";
6
13
  function RHFRadioGroup({
14
+ id,
7
15
  name,
8
16
  options,
9
17
  getOptionLabel,
10
18
  getOptionValue,
11
- getOptionIconUrl,
12
- renderOptionLabel = OptionIconLabelFormatter,
13
- ControlLabel = Radio,
19
+ label,
20
+ mandatory,
21
+ mandatoryMessage,
22
+ helperMessage,
23
+ size,
24
+ dataTestId,
25
+ labelSkeletonWidth,
26
+ helperErrorSkeletonWidth,
27
+ disabled,
28
+ className,
29
+ ControlOption = Radio,
14
30
  ...other
15
31
  }) {
16
- const { control } = useFormContext();
17
- return /* @__PURE__ */ jsx(
32
+ const reactId = useId();
33
+ const htmlForId = id || reactId;
34
+ const { currentSize } = useComponentSize(size);
35
+ const { control: formControl } = useFormContext();
36
+ return /* @__PURE__ */ jsx(RootStyled, { className: clsx(RHFRADIO_GROUP_CLASSES.root, className), children: /* @__PURE__ */ jsx(
18
37
  Controller,
19
38
  {
20
39
  name,
21
- control,
22
- render: ({ field, fieldState: { error } }) => /* @__PURE__ */ jsxs("div", { children: [
23
- /* @__PURE__ */ jsx(RadioGroup, { ...field, row: true, ...other, children: options.map((option) => {
24
- return /* @__PURE__ */ jsx(
25
- FormControlLabel,
40
+ control: formControl,
41
+ render: ({ field: { onChange, value }, fieldState: { error } }) => {
42
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
43
+ label && /* @__PURE__ */ jsx(
44
+ Label,
26
45
  {
27
- defaultValue: field.value,
28
- value: getOptionValue(option),
29
- control: /* @__PURE__ */ jsx(ControlLabel, { ...option }),
30
- label: renderOptionLabel(option, getOptionLabel, getOptionIconUrl)
31
- },
32
- getOptionValue(option)
33
- );
34
- }) }),
35
- error && /* @__PURE__ */ jsx(HelperError, { message: error.message || "" })
36
- ] })
46
+ id: `${htmlForId}-label`,
47
+ htmlFor: htmlForId,
48
+ label,
49
+ mandatory,
50
+ mandatoryMessage,
51
+ helperMessage,
52
+ size: currentSize,
53
+ skeletonWidth: labelSkeletonWidth,
54
+ error: Boolean(error),
55
+ disabled
56
+ }
57
+ ),
58
+ /* @__PURE__ */ jsx(
59
+ RadioGroupStyled,
60
+ {
61
+ onChange,
62
+ value,
63
+ ...other,
64
+ ...getPropDataTestId(
65
+ RHFRADIO_GROUP_KEY_COMPONENT,
66
+ RHFRadioGroupSlots.radioGroup,
67
+ dataTestId
68
+ ),
69
+ children: options.map((option) => {
70
+ const optionValue = getOptionValue(option);
71
+ const optionLabel = getOptionLabel(option);
72
+ return /* @__PURE__ */ jsx(ControlOption, { checked: value === optionValue, onChange, value: optionValue, inlineText: optionLabel }, optionValue);
73
+ })
74
+ }
75
+ ),
76
+ error && /* @__PURE__ */ jsx(HelperError, { message: error.message || "" })
77
+ ] });
78
+ }
37
79
  }
38
- );
80
+ ) });
39
81
  }
40
82
  export {
41
83
  RHFRadioGroup as R
@@ -0,0 +1,5 @@
1
+ import { RHFRadioGroupStyles } from './types';
2
+ /**
3
+ * Estilos para el componente `RHFColorPicker`. Define los estilos de cada parte del componente, como el root, label, color, popover, sketch picker, y las acciones.
4
+ */
5
+ export declare const rhfRadioGroupStyles: RHFRadioGroupStyles;
@@ -0,0 +1,29 @@
1
+ const rhfRadioGroupStyles = {
2
+ /**
3
+ * Estilos para el elemento raíz del `RHFColorPicker`.
4
+ * Aplica un layout de columna con un espacio entre los elementos basado en el tamaño de espaciado definido en el tema.
5
+ */
6
+ root: ({ theme }) => ({
7
+ display: "flex",
8
+ flexDirection: "column",
9
+ height: "fit-content",
10
+ overflow: "hidden",
11
+ gap: theme.vars.size.baseSpacings["sp0-5"],
12
+ width: "100%"
13
+ }),
14
+ /**
15
+ * Estilos para el elemento `RadioGroup`.
16
+ */
17
+ radioGroup: () => ({}),
18
+ /**
19
+ * Estilos para el elemento `OptionWrapper`.
20
+ */
21
+ optionWrapper: ({ theme }) => ({
22
+ display: "flex",
23
+ flexDirection: "row",
24
+ gap: theme.vars.size.baseSpacings["sp0-5"]
25
+ })
26
+ };
27
+ export {
28
+ rhfRadioGroupStyles as r
29
+ };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Nombre de clase que se usa para dar identidad a los slots del componente.
3
+ */
4
+ export declare const RHFRADIO_GROUP_KEY_COMPONENT = "M4LRHFRadioGroup";
5
+ export declare const RHFRADIO_GROUP_CLASSES: Record<"radioGroup" | "root" | "optionWrapper", string>;
@@ -0,0 +1,8 @@
1
+ import { R as RHFRadioGroupSlots } from "./slots/slots.js";
2
+ import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
3
+ const RHFRADIO_GROUP_KEY_COMPONENT = "M4LRHFRadioGroup";
4
+ const RHFRADIO_GROUP_CLASSES = getComponentClasses(RHFRADIO_GROUP_KEY_COMPONENT, RHFRadioGroupSlots);
5
+ export {
6
+ RHFRADIO_GROUP_KEY_COMPONENT as R,
7
+ RHFRADIO_GROUP_CLASSES as a
8
+ };
@@ -1,5 +1,5 @@
1
- import { GetOptionStringType } from '../../types';
1
+ import { GetOptionLabelType } from '../../types';
2
2
  /**
3
3
  * TODO: Documentar
4
4
  */
5
- export declare function OptionIconLabelFormatter<T>(option: T, getOptionLabel: GetOptionStringType<T>, getOptionIconUrl: GetOptionStringType<T>): import("react/jsx-runtime").JSX.Element;
5
+ export declare function OptionIconLabelFormatter<T>(option: T, getOptionLabel: GetOptionLabelType<T>, getOptionIconUrl: GetOptionLabelType<T>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export declare enum RHFRadioGroupSlots {
2
+ root = "root",
3
+ radioGroup = "radioGroup",
4
+ optionWrapper = "optionWrapper"
5
+ }
@@ -0,0 +1,9 @@
1
+ var RHFRadioGroupSlots = /* @__PURE__ */ ((RHFRadioGroupSlots2) => {
2
+ RHFRadioGroupSlots2["root"] = "root";
3
+ RHFRadioGroupSlots2["radioGroup"] = "radioGroup";
4
+ RHFRadioGroupSlots2["optionWrapper"] = "optionWrapper";
5
+ return RHFRadioGroupSlots2;
6
+ })(RHFRadioGroupSlots || {});
7
+ export {
8
+ RHFRadioGroupSlots as R
9
+ };