@m4l/components 9.2.57 → 9.2.58-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 (403) hide show
  1. package/.storybook/utils/flattenDeep.d.ts +8 -0
  2. package/.storybook/utils/getStylesColorsByMode.d.ts +52 -4
  3. package/@types/augmentations.d.ts +1 -1
  4. package/@types/types.d.ts +10 -9
  5. package/components/AccountPopover/AccountPopover.js +3 -4
  6. package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +32 -32
  7. package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.js +13 -14
  8. package/components/AccountPopover/types.d.ts +2 -2
  9. package/components/AppBar/AppBar.js +6 -9
  10. package/components/AppBar/slots/AppBarSlots.d.ts +16 -16
  11. package/components/AppBar/styles.js +2 -1
  12. package/components/AppBar/types.d.ts +2 -2
  13. package/components/Chip/Chip.js +1 -1
  14. package/components/Chip/ChipStyles.js +12 -12
  15. package/components/Chip/slots/ChipSlots.d.ts +6 -6
  16. package/components/Color/Color.styles.js +11 -11
  17. package/components/Color/slots/ColorSlots.d.ts +5 -5
  18. package/components/CommonActions/components/ActionCancel/ActionCancel.js +1 -1
  19. package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
  20. package/components/CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.d.ts +1 -1
  21. package/components/CommonActions/components/ActionFormIntro/ActionFormIntro.js +0 -1
  22. package/components/CommonActions/components/ActionFormIntro/slots/ActionFormIntroSlots.d.ts +2 -2
  23. package/components/CommonActions/components/ActionFormIntro/types.d.ts +2 -2
  24. package/components/CommonActions/components/ActionIntro/ActionIntro.js +1 -1
  25. package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
  26. package/components/CommonActions/components/ActionsContainer/ActionsContainerStyles.js +1 -1
  27. package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +1 -1
  28. package/components/DataGrid/DataGrid.js +36 -8
  29. package/components/DataGrid/Datagrid.styles.js +630 -0
  30. package/components/DataGrid/constants.d.ts +9 -0
  31. package/components/DataGrid/constants.js +9 -3
  32. package/components/DataGrid/contexts/DataGridContext/index.js +23 -5
  33. package/components/DataGrid/contexts/DataGridContext/types.d.ts +4 -0
  34. package/components/DataGrid/formatters/ColumnIconFormatter/formatter.js +0 -2
  35. package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/formatter.js +2 -2
  36. package/components/DataGrid/icons.d.ts +1 -0
  37. package/components/DataGrid/icons.js +4 -3
  38. package/components/DataGrid/index.d.ts +1 -1
  39. package/components/DataGrid/slots/DataGridEnum.d.ts +6 -0
  40. package/components/DataGrid/slots/DataGridEnum.js +10 -2
  41. package/components/DataGrid/slots/DataGridSlot.d.ts +9 -0
  42. package/components/DataGrid/slots/DataGridSlot.js +35 -14
  43. package/components/DataGrid/subcomponents/ControlNavigate/ControlNavigate.d.ts +5 -0
  44. package/components/DataGrid/subcomponents/ControlNavigate/ControlNavigate.js +30 -0
  45. package/components/DataGrid/subcomponents/ControlNavigate/index.d.ts +2 -0
  46. package/components/DataGrid/subcomponents/ControlNavigate/types.d.ts +7 -0
  47. package/components/DataGrid/subcomponents/HeaderActions/index.d.ts +5 -0
  48. package/components/DataGrid/subcomponents/HeaderActions/index.js +40 -0
  49. package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Density/index.js +4 -3
  50. package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/MobileMenuActions/index.js +3 -2
  51. package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/RowsCount/index.js +4 -4
  52. package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/index.js +5 -2
  53. package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/subcomponents/ColumnsConfig/index.js +34 -24
  54. package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/subcomponents/ColumnsConfig/types.d.ts +4 -1
  55. package/components/DataGrid/subcomponents/HeaderActions/subcomponents/hooks/useModalSettings/index.d.ts +8 -0
  56. package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/hooks/useModalSettings/index.js +11 -6
  57. package/components/DataGrid/subcomponents/HeaderActions/types.d.ts +5 -0
  58. package/components/DataGrid/subcomponents/Table/hooks/useSortColumnsRows.js +6 -6
  59. package/components/DataGrid/subcomponents/Table/index.js +4 -4
  60. package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.js +1 -1
  61. package/components/DataGrid/subcomponents/Table/subcomponents/CustomIcons.js +12 -3
  62. package/components/DataGrid/subcomponents/Table/subcomponents/DraggableHeaderRenderer.js +28 -13
  63. package/components/DataGrid/subcomponents/Table/subcomponents/SelectColumn.js +3 -3
  64. package/components/DataGrid/subcomponents/Table/subcomponents/SkeletonFormatter/index.js +4 -2
  65. package/components/DataGrid/subcomponents/editors/TextEditor/index.js +1 -1
  66. package/components/DataGrid/types.d.ts +20 -3
  67. package/components/DragResizeWindowRND/DragResizeWindowRND.styles.js +1 -1
  68. package/components/DragResizeWindowRND/slots/DragResizeWindowRNDSlots.d.ts +3 -5
  69. package/components/DynamicFilter/DynamicFilter.styles.js +13 -13
  70. package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +19 -19
  71. package/components/DynamicFilter/store/DynamicFilterStore.js +2 -2
  72. package/components/DynamicFilter/subcomponents/AppliedFilters/AppliedFilters.js +2 -2
  73. package/components/DynamicFilter/subcomponents/AppliedFilters/useAppliedFilters.js +1 -1
  74. package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.js +2 -3
  75. package/components/DynamicFilter/subcomponents/FilterActions/useFilterActions.js +2 -2
  76. package/components/DynamicFilter/subcomponents/PopoverFilter/PopoverFilter.js +3 -4
  77. package/components/DynamicFilter/subcomponents/PopoverFilter/usePopoverFilter.d.ts +3 -3
  78. package/components/DynamicFilter/subcomponents/PopoverMenuFields/PopoverMenuFields.js +0 -1
  79. package/components/DynamicSort/DynamicSort.styles.js +13 -13
  80. package/components/DynamicSort/slots/DynamicSortSlots.d.ts +19 -19
  81. package/components/DynamicSort/store/DynamicSortStore.js +2 -2
  82. package/components/DynamicSort/subcomponents/AppliedSorts/AppliedSorts.js +2 -2
  83. package/components/DynamicSort/subcomponents/PopoverMenuFields/PopoverMenuFields.js +0 -1
  84. package/components/DynamicSort/subcomponents/PopoverSort/PopoverSort.js +4 -5
  85. package/components/DynamicSort/subcomponents/PopoverSort/usePopoverSort.d.ts +3 -3
  86. package/components/DynamicSort/subcomponents/SortActions/SortActions.js +2 -3
  87. package/components/DynamicSort/subcomponents/SortActions/useSortActions.js +2 -2
  88. package/components/GridLayout/styles.js +4 -82
  89. package/components/HelperError/HelperError.styles.js +4 -4
  90. package/components/Icon/Icon.js +1 -1
  91. package/components/Icon/Icon.styles.js +10 -10
  92. package/components/Image/Image.js +1 -1
  93. package/components/Image/image.styles.js +1 -1
  94. package/components/Image/slots/ImageSlots.d.ts +12 -12
  95. package/components/Image/subcomponents/IntersectComponent/index.js +0 -1
  96. package/components/Image/types.d.ts +2 -2
  97. package/components/Label/Label.js +1 -1
  98. package/components/Label/Label.styles.js +22 -13
  99. package/components/Label/slots/LabelSlots.d.ts +1 -1
  100. package/components/LanguagePopover/slots/LanguagePopoverSlots.d.ts +1 -1
  101. package/components/LinearProgressIndeterminate/LinearProgressIndeterminate.styles.js +3 -3
  102. package/components/LoadingError/LoadingError.js +1 -2
  103. package/components/LoadingError/LoadingError.styles.js +6 -3
  104. package/components/MenuActions/MenuActions.js +3 -3
  105. package/components/MenuActions/MenuActions.styles.js +4 -4
  106. package/components/MenuActions/slots/MenuActionsSlots.d.ts +12 -12
  107. package/components/MenuActions/types.d.ts +3 -3
  108. package/components/ModalDialog/slots/ModalDialogSlots.d.ts +2 -2
  109. package/components/NoItemSelected/NoItemSelected.js +23 -7
  110. package/components/NoItemSelected/NoItemSelected.styles.js +24 -17
  111. package/components/NoItemSelected/slots/NoItemSelectedSlots.d.ts +7 -7
  112. package/components/NumberInput/NumberInput.styles.js +20 -20
  113. package/components/NumberInput/hooks/useNumberInput/useNumberInput.js +0 -2
  114. package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
  115. package/components/ObjectLogs/hooks/useDetailFormatter.js +3 -2
  116. package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +20 -20
  117. package/components/ObjectLogs/subcomponents/ObjectLogsByM4L/ObjectLogsByM4L.js +1 -4
  118. package/components/ObjectLogs/subcomponents/ObjectLogsByOthers/ObjectLogsByOthers.js +1 -4
  119. package/components/ObjectLogs/types.d.ts +2 -2
  120. package/components/Pager/Pager.js +2 -3
  121. package/components/Pager/Pager.styles.js +13 -12
  122. package/components/Pager/index.d.ts +2 -0
  123. package/components/Pager/slots/PagerEnum.d.ts +2 -1
  124. package/components/Pager/slots/PagerEnum.js +1 -0
  125. package/components/Pager/slots/PagerSlots.d.ts +1 -0
  126. package/components/Pager/slots/PagerSlots.js +7 -2
  127. package/components/Pager/subcomponents/CustomTablePagination/CustomTablePagination.js +16 -18
  128. package/components/Pager/subcomponents/PagerActions/PagerActions.js +4 -2
  129. package/components/Pager/subcomponents/PagerActions/types.d.ts +1 -0
  130. package/components/PaperForm/components/Header.js +2 -2
  131. package/components/PaperForm/slots/PaperFormSlots.d.ts +10 -10
  132. package/components/PaperForm/styles.js +7 -7
  133. package/components/PaperForm/types.d.ts +2 -2
  134. package/components/PrintingSystem/slots/PrintingSystemSlots.d.ts +42 -42
  135. package/components/PrintingSystem/subcomponents/BodyNode/index.js +0 -1
  136. package/components/PrintingSystem/subcomponents/ChartNode/index.js +0 -1
  137. package/components/PrintingSystem/subcomponents/DividerNode/index.js +0 -1
  138. package/components/PrintingSystem/subcomponents/FooterNode/index.js +0 -1
  139. package/components/PrintingSystem/subcomponents/GridNode/index.js +0 -5
  140. package/components/PrintingSystem/subcomponents/HeaderNode/index.js +0 -1
  141. package/components/PrintingSystem/subcomponents/PageNode/index.js +0 -1
  142. package/components/PrintingSystem/subcomponents/PaperNode/index.js +0 -5
  143. package/components/PrintingSystem/subcomponents/PropertyValueNode/index.js +0 -2
  144. package/components/PrintingSystem/subcomponents/SectionNode/index.js +0 -1
  145. package/components/PrintingSystem/types.d.ts +2 -2
  146. package/components/PropertyValue/PropertyValue.js +3 -4
  147. package/components/PropertyValue/PropertyValue.styles.js +36 -31
  148. package/components/PropertyValue/slots/PropertyValueSlots.d.ts +3 -3
  149. package/components/ScrollBar/ScrollBar.d.ts +3 -3
  150. package/components/ScrollBar/ScrollBar.js +6 -45
  151. package/components/ScrollBar/ScrollBar.styles.js +7 -52
  152. package/components/ScrollBar/constants.d.ts +5 -2
  153. package/components/ScrollBar/constants.js +4 -4
  154. package/components/ScrollBar/index.d.ts +2 -0
  155. package/components/ScrollBar/index.js +1 -0
  156. package/components/ScrollBar/slots/ScrollBarSlots.d.ts +2 -5
  157. package/components/ScrollBar/slots/ScrollBarSlots.js +7 -13
  158. package/components/ScrollBar/slots/ScrollbarEnum.d.ts +3 -0
  159. package/components/ScrollBar/slots/ScrollbarEnum.js +7 -0
  160. package/components/ScrollBar/types.d.ts +19 -38
  161. package/components/SideBar/slots/SideBarSlots.d.ts +34 -34
  162. package/components/SideBar/subcomponents/ContentComponent/style.d.ts +2 -2
  163. package/components/SideBar/subcomponents/ContentComponent/style.js +10 -7
  164. package/components/SideBar/subcomponents/ContentGroups/index.js +3 -3
  165. package/components/SideBar/subcomponents/ContentGroups/styles.d.ts +2 -2
  166. package/components/SideBar/subcomponents/ContentGroups/styles.js +15 -3
  167. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.d.ts +2 -2
  168. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +1 -10
  169. package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/subcomponents/ArrowIcon/index.js +0 -1
  170. package/components/SideBar/subcomponents/FooterSidebar/styles.d.ts +2 -2
  171. package/components/SideBar/subcomponents/HeaderSidebar/index.js +2 -2
  172. package/components/SideBar/subcomponents/HeaderSidebar/styles.d.ts +2 -2
  173. package/components/SideBar/subcomponents/SideBarDesktop/styles.d.ts +2 -2
  174. package/components/SideBar/subcomponents/SideBarDesktop/styles.js +2 -2
  175. package/components/SideBar/subcomponents/SideBarMobile/index.js +0 -1
  176. package/components/SideBar/subcomponents/SideBarMobile/styles.d.ts +2 -2
  177. package/components/SideBar/types.d.ts +9 -2
  178. package/components/ToastContainer/slots/toastContainerSlots.d.ts +2 -2
  179. package/components/WindowBase/WindowBase.js +13 -7
  180. package/components/WindowBase/WindowBase.styles.js +233 -116
  181. package/components/WindowBase/icons.js +2 -2
  182. package/components/WindowBase/slots/WindowBaseEnum.d.ts +3 -3
  183. package/components/WindowBase/slots/WindowBaseEnum.js +2 -2
  184. package/components/WindowBase/slots/WindowBaseSlots.d.ts +18 -23
  185. package/components/WindowBase/slots/WindowBaseSlots.js +13 -12
  186. package/components/WindowBase/subcomponents/Header/HeaderWindowBase.js +24 -12
  187. package/components/WindowBase/subcomponents/Header/types.d.ts +1 -1
  188. package/components/WindowBase/subcomponents/Header/useButtonActions.js +5 -2
  189. package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.d.ts +1 -1
  190. package/components/WindowBase/subcomponents/MemoizedIconButton/MemoizedIconButton.js +1 -1
  191. package/components/WindowBase/subcomponents/MemoizedIconButton/types.d.ts +9 -0
  192. package/components/WindowBase/types.d.ts +16 -0
  193. package/components/WindowConfirm/WindowConfirm.js +2 -3
  194. package/components/WindowConfirm/WindowConfirm.styles.js +5 -7
  195. package/components/areas/components/AreasAdmin/AreasAdmin.js +14 -20
  196. package/components/areas/components/AreasAdmin/AreasAdmin.styles.js +24 -23
  197. package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +23 -23
  198. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/AreaChip.js +2 -5
  199. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.js +3 -4
  200. package/components/areas/components/AreasAdmin/types.d.ts +1 -1
  201. package/components/areas/components/AreasViewer/AreasViewer.js +12 -4
  202. package/components/areas/components/AreasViewer/AreasViewer.styles.js +7 -4
  203. package/components/areas/components/AreasViewer/slots/AreasViewerSlots.d.ts +5 -5
  204. package/components/areas/components/AreasViewer/subcomponents/Area/Area.js +2 -2
  205. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.js +20 -4
  206. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/types.d.ts +2 -0
  207. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/BaseArea.js +7 -2
  208. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/BaseArea/types.d.ts +2 -0
  209. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/Window.js +8 -1
  210. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +7 -3
  211. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/WindowModal.js +0 -1
  212. package/components/areas/components/AreasViewer/subcomponents/Area/types.d.ts +2 -0
  213. package/components/areas/components/AreasViewer/types.d.ts +6 -0
  214. package/components/areas/contexts/AreasContext/helpers/helper.d.ts +2 -9
  215. package/components/areas/contexts/AreasContext/helpers/helper.js +14 -16
  216. package/components/areas/contexts/AreasContext/index.js +1 -1
  217. package/components/areas/contexts/AreasContext/store.js +4 -4
  218. package/components/areas/contexts/AreasContext/types.d.ts +1 -1
  219. package/components/areas/icons.d.ts +2 -2
  220. package/components/areas/icons.js +4 -4
  221. package/components/commercial/SectionCommercial/classes/index.d.ts +2 -2
  222. package/components/commercial/SectionCommercial/classes/index.js +3 -3
  223. package/components/commercial/SectionCommercial/types.d.ts +1 -1
  224. package/components/extended/React-Resizable/helpers.d.ts +2 -9
  225. package/components/extended/React-Resizable/helpers.js +15 -13
  226. package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.js +0 -1
  227. package/components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.styles.js +1 -1
  228. package/components/extended/React-Spinners/PropagateLoaderSpinner/slots/PropagateLoaderSpinnerSlots.d.ts +4 -4
  229. package/components/extended/React-Spinners/PropagateLoaderSpinner/types.d.ts +2 -2
  230. package/components/extended/React-Splitter-Layout/slots/SplitLayoutSlots.d.ts +3 -3
  231. package/components/extended/React-resizable-panels/SplitLayout.styles.js +6 -6
  232. package/components/extended/React-resizable-panels/slots/SplitLayoutSlots.d.ts +8 -8
  233. package/components/formatters/BooleanFormatter/BooleanFormatter.js +3 -1
  234. package/components/formatters/BooleanFormatter/BooleanFormatter.styles.js +1 -1
  235. package/components/formatters/ChipStatusFormatter/slots/ChipStatusFormatterSlots.d.ts +2 -2
  236. package/components/formatters/PeriodFormatter/PeriodFormatter.styles.js +1 -1
  237. package/components/hook-form/RHFAutocomplete/RFHAutocompleteStyles.js +1 -1
  238. package/components/hook-form/RHFAutocomplete/RHFAutocomplete.js +1 -1
  239. package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +0 -5
  240. package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
  241. package/components/hook-form/RHFColorPicker/RFHColorPicker.js +1 -1
  242. package/components/hook-form/RHFDateTime/types.d.ts +1 -1
  243. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +2 -2
  244. package/components/hook-form/RHFSelect/RHFSelect.js +1 -1
  245. package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
  246. package/components/hook-form/RHFSelect/slots/RHFSlots.js +1 -1
  247. package/components/hook-form/RHFTextField/RHFTextField.js +13 -17
  248. package/components/hook-form/RHFTextField/RHFTextField.styles.js +2 -1
  249. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
  250. package/components/hook-form/RHFTextField/types.d.ts +1 -1
  251. package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js +1 -1
  252. package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.styles.js +2 -2
  253. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +8 -8
  254. package/components/hook-form/RHFTextFieldPassword/types.d.ts +2 -2
  255. package/components/hook-form/RHFTimePicker/types.d.ts +1 -1
  256. package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.js +1 -1
  257. package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.styles.js +3 -3
  258. package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +22 -22
  259. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.js +9 -10
  260. package/components/hook-form/RHFUpload/RHFUploadImage/types.d.ts +2 -2
  261. package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.styles.js +2 -2
  262. package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +22 -22
  263. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/BlockContent/BlockContent.js +2 -7
  264. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/Preview/Preview.js +5 -6
  265. package/components/hook-form/RHFormContext/index.d.ts +1 -1
  266. package/components/hook-form/RHFormContext/styles.js +2 -1
  267. package/components/index.d.ts +2 -0
  268. package/components/mui_extended/Accordion/Accordion.js +32 -22
  269. package/components/mui_extended/Accordion/slots/AccordionSlots.d.ts +12 -12
  270. package/components/mui_extended/Accordion/styles.js +60 -33
  271. package/components/mui_extended/Accordion/types.d.ts +39 -6
  272. package/components/mui_extended/Autocomplete/Autocomplete.styles.js +3 -3
  273. package/components/mui_extended/Autocomplete/hooks/useEndAdornments.js +1 -1
  274. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +17 -17
  275. package/components/mui_extended/Avatar/Avatar.js +1 -1
  276. package/components/mui_extended/Avatar/slots/AvatarSlots.d.ts +1 -1
  277. package/components/mui_extended/Avatar/styles.js +3 -3
  278. package/components/mui_extended/Badge/Badge.js +1 -2
  279. package/components/mui_extended/Badge/Badge.styles.js +9 -9
  280. package/components/mui_extended/Badge/slots/BadgeSlots.d.ts +2 -2
  281. package/components/mui_extended/Badge/types.d.ts +2 -2
  282. package/components/mui_extended/Button/Button.js +4 -5
  283. package/components/mui_extended/Button/ButtonStyles.js +37 -26
  284. package/components/mui_extended/Button/slots/ButtonSlots.d.ts +1 -1
  285. package/components/mui_extended/CheckBox/CheckBox.js +2 -2
  286. package/components/mui_extended/CheckBox/CheckBox.styles.js +12 -12
  287. package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +12 -12
  288. package/components/mui_extended/CheckBox/types.d.ts +2 -2
  289. package/components/mui_extended/CircularProgress/CircularProgress.styles.js +5 -5
  290. package/components/mui_extended/DateTimePicker/DateTimePicker.styles.js +49 -49
  291. package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +12 -12
  292. package/components/mui_extended/Divider/Divider.js +1 -2
  293. package/components/mui_extended/Divider/Divider.styles.js +9 -9
  294. package/components/mui_extended/Divider/slots/DividerSlots.d.ts +1 -1
  295. package/components/mui_extended/IconButton/IconButton.js +3 -2
  296. package/components/mui_extended/IconButton/IconButton.styles.js +21 -21
  297. package/components/mui_extended/IconButton/helpers/getIconButtonColors.d.ts +1 -1
  298. package/components/mui_extended/IconButton/helpers/getIconButtonColors.js +4 -4
  299. package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +5 -5
  300. package/components/mui_extended/IconButton/types.d.ts +1 -1
  301. package/components/mui_extended/LoadingButton/LoadingButton.js +1 -1
  302. package/components/mui_extended/LoadingButton/LoadingButton.styles.js +5 -5
  303. package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
  304. package/components/mui_extended/MenuDivider/MenuDivider.js +1 -2
  305. package/components/mui_extended/MenuDivider/MenuDivider.styles.js +9 -9
  306. package/components/mui_extended/MenuDivider/slots/MenuDividerSlots.d.ts +1 -1
  307. package/components/mui_extended/MenuItem/MenuItem.styles.js +10 -10
  308. package/components/mui_extended/MenuItem/slots/MenuItemSlots.d.ts +7 -7
  309. package/components/mui_extended/MenuItem/types.d.ts +8 -3
  310. package/components/mui_extended/NavLink/NavLink.js +1 -2
  311. package/components/mui_extended/NavLink/NavLink.styles.js +9 -9
  312. package/components/mui_extended/NavLink/slots/NavLinkSlots.d.ts +4 -4
  313. package/components/mui_extended/Popover/Popover.js +0 -1
  314. package/components/mui_extended/Popover/slots/PopoverSlots.d.ts +2 -2
  315. package/components/mui_extended/Popover/types.d.ts +3 -3
  316. package/components/mui_extended/Popper/PopperStyles.js +1 -1
  317. package/components/mui_extended/Popper/slots/PopperStlots.d.ts +1 -1
  318. package/components/mui_extended/Select/Select.js +2 -3
  319. package/components/mui_extended/Select/Select.styles.js +10 -10
  320. package/components/mui_extended/Select/slots/SelectSlots.d.ts +12 -12
  321. package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
  322. package/components/mui_extended/Skeleton/Skeleton.js +2 -2
  323. package/components/mui_extended/Skeleton/Slots/skeletonSlots.d.ts +1 -1
  324. package/components/mui_extended/Skeleton/skeleton.styles.js +6 -5
  325. package/components/mui_extended/Skeleton/types.d.ts +1 -1
  326. package/components/mui_extended/Stack/Stack.styles.js +3 -3
  327. package/components/mui_extended/Stack/slots/StackSlot.d.ts +2 -2
  328. package/components/mui_extended/Tab/Slots/TabSlots.d.ts +1 -1
  329. package/components/mui_extended/Tab/Tab.js +2 -0
  330. package/components/mui_extended/Tab/Tab.styles.js +27 -49
  331. package/components/mui_extended/Tab/types.d.ts +4 -0
  332. package/components/mui_extended/TabContent/TabContent.js +2 -2
  333. package/components/mui_extended/TabContent/TabContent.styles.js +13 -7
  334. package/components/mui_extended/TabContent/index.d.ts +1 -0
  335. package/components/mui_extended/TabContent/slots/TabContentSlots.d.ts +2 -2
  336. package/components/mui_extended/TabContent/types.d.ts +3 -2
  337. package/components/mui_extended/Tabs/Tabs.styles.js +2 -1
  338. package/components/mui_extended/Tabs/slots/TabsSlots.d.ts +1 -1
  339. package/components/mui_extended/TextField/TextField.js +11 -6
  340. package/components/mui_extended/TextField/TextField.styles.js +71 -68
  341. package/components/mui_extended/TextField/constants.d.ts +1 -0
  342. package/components/mui_extended/TextField/slots/TextFieldEnum.d.ts +2 -1
  343. package/components/mui_extended/TextField/slots/TextFieldEnum.js +1 -0
  344. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +3 -3
  345. package/components/mui_extended/TextField/types.d.ts +7 -0
  346. package/components/mui_extended/TimePicker/slots/TimePickerSlots.d.ts +9 -9
  347. package/components/mui_extended/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
  348. package/components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
  349. package/components/mui_extended/Tooltip/Tooltip.styles.js +1 -1
  350. package/components/mui_extended/Tooltip/slots/TooltipSlots.d.ts +3 -3
  351. package/components/mui_extended/Typography/Typography.js +2 -1
  352. package/components/mui_extended/Typography/slots/typographySlots.d.ts +4 -4
  353. package/components/mui_extended/Typography/types.d.ts +3 -2
  354. package/components/mui_extended/Typography/typography.styles.js +12 -9
  355. package/components/mui_extended/index.d.ts +0 -2
  356. package/components/popups/components/PopupsViewer/PopupsViewer.styles.js +4 -4
  357. package/components/popups/components/PopupsViewer/slots/popupsViewerSlots.d.ts +7 -9
  358. package/components/popups/components/PopupsViewer/subcomponents/Popup/Popup.js +2 -0
  359. package/hooks/useComponentSize/useComponentSize.d.ts +3 -3
  360. package/hooks/useComponentSize/useComponentSize.js +5 -2
  361. package/hooks/useDynamicFilterAndSort/icons.d.ts +2 -2
  362. package/hooks/useDynamicFilterAndSort/icons.js +2 -2
  363. package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +6 -6
  364. package/hooks/useDynamicFilterAndSort/styles.js +8 -7
  365. package/hooks/useDynamicFilterAndSort/types.d.ts +2 -2
  366. package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +3 -3
  367. package/index.js +57 -55
  368. package/package.json +1 -1
  369. package/storybook/components/Chip/Chip.stories.d.ts +4 -0
  370. package/storybook/components/DataGrid/DataGrid.stories.d.ts +16 -0
  371. package/storybook/components/Icon/Icon.stories.d.ts +4 -0
  372. package/storybook/components/NoItemSelect/NoItemSelect.stories.d.ts +4 -0
  373. package/storybook/components/PropertyValue/PropertyValue.stories.d.ts +5 -1
  374. package/storybook/components/{extended/scrollBar → ScrollBar}/ScrollBar.stories.d.ts +2 -2
  375. package/storybook/components/WindowBase/windowBase.stories.d.ts +64 -7
  376. package/storybook/components/extended/mui/Accordion/Accordion.stories.d.ts +72 -20
  377. package/storybook/components/extended/mui/Tab/Tab.stories.d.ts +24 -24
  378. package/storybook/components/extended/mui/TextField/TextFieldText.stories.d.ts +11 -0
  379. package/storybook/hook-form/RHFTextField/RHFTextField.stories.d.ts +13 -0
  380. package/storybook/wrappers/LineGuide/LineGuide.d.ts +9 -0
  381. package/storybook/wrappers/LineGuide/styles.d.ts +1 -0
  382. package/storybook/wrappers/LineGuide/types.d.ts +5 -0
  383. package/components/DataGrid/styles.js +0 -484
  384. package/components/DataGrid/subcomponents/Actions/index.d.ts +0 -5
  385. package/components/DataGrid/subcomponents/Actions/index.js +0 -49
  386. package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.d.ts +0 -7
  387. package/components/DataGrid/subcomponents/Actions/types.d.ts +0 -16
  388. package/components/ScrollBar/slots/ScrollBarEnum.d.ts +0 -4
  389. package/components/ScrollBar/slots/ScrollBarEnum.js +0 -8
  390. package/components/ScrollBar/slots/index.d.ts +0 -2
  391. package/storybook/components/extended/scrollBar/ScrollBarDecorator.d.ts +0 -11
  392. /package/components/DataGrid/{styles.d.ts → Datagrid.styles.d.ts} +0 -0
  393. /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Density/index.d.ts +0 -0
  394. /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Density/types.d.ts +0 -0
  395. /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Filter/index.d.ts +0 -0
  396. /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Filter/index.js +0 -0
  397. /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/MobileMenuActions/index.d.ts +0 -0
  398. /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/RowsCount/index.d.ts +0 -0
  399. /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/index.d.ts +0 -0
  400. /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/subcomponents/ColumnsConfig/index.d.ts +0 -0
  401. /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/Settings/types.d.ts +0 -0
  402. /package/components/DataGrid/subcomponents/{Actions → HeaderActions}/subcomponents/hooks/useModalSettings/types.d.ts +0 -0
  403. /package/components/{ScrollBar/slots → Pager}/index.js +0 -0
@@ -4,7 +4,8 @@ import { a as getNameDataTestId } from "../../../test/getNameDataTestId.js";
4
4
  import { P as PATH_EXPANDED_ICON, A as ACCORDION_KEY } from "./constants.js";
5
5
  import { a as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
6
6
  import { A as AccordionRootStyled, a as AccordionSummaryStyled, I as IconLabelStyled, L as LabelStyled, b as IconExpandedStyled, c as AccordionDetailsStyled } from "./slots/AccordionSlots.js";
7
- import { forwardRef } from "react";
7
+ import { forwardRef, useState, useEffect } from "react";
8
+ import clsx from "clsx";
8
9
  import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
9
10
  const Accordion = forwardRef((props, ref) => {
10
11
  const {
@@ -15,28 +16,37 @@ const Accordion = forwardRef((props, ref) => {
15
16
  icon: labelIcon,
16
17
  className,
17
18
  dataTestId = "",
18
- skeletonLabelWidth,
19
- size
19
+ skeletonLabelWidth = "100px",
20
+ size,
21
+ expanded,
22
+ variant = "outlined"
20
23
  } = props;
21
- const currentSize = useComponentSize(size);
22
- const ownerState = { size: currentSize.currentSize === "large" ? "medium" : currentSize.currentSize };
23
- const classRoot = getComponentSlotRoot(className ?? ACCORDION_KEY);
24
+ const { currentSize } = useComponentSize(size);
25
+ const classRoot = getComponentSlotRoot(ACCORDION_KEY);
26
+ const [expandedState, setExpandedState] = useState(expanded ?? true);
27
+ const handleToggle = () => {
28
+ setExpandedState((prev) => !prev);
29
+ };
30
+ useEffect(() => {
31
+ let mounted = true;
32
+ if (mounted && expanded !== void 0) {
33
+ setExpandedState(expanded);
34
+ }
35
+ return () => {
36
+ mounted = false;
37
+ };
38
+ }, [expanded]);
39
+ const ownerState = { size: currentSize, variant, expanded: expandedState };
24
40
  return /* @__PURE__ */ jsxs(
25
41
  AccordionRootStyled,
26
42
  {
27
- ownerState: {},
43
+ ownerState,
28
44
  ref,
29
45
  role: "contentinfo",
30
- className: classRoot,
31
- defaultExpanded: true,
46
+ className: clsx(classRoot, className),
47
+ expanded: expandedState,
32
48
  ...accordionProps,
33
- ...process.env.NODE_ENV !== "production" ? {
34
- [TEST_PROP_ID]: getNameDataTestId(
35
- ACCORDION_KEY,
36
- "root",
37
- dataTestId
38
- )
39
- } : {},
49
+ ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId(ACCORDION_KEY, "root", dataTestId) } : {},
40
50
  children: [
41
51
  /* @__PURE__ */ jsxs(
42
52
  AccordionSummaryStyled,
@@ -44,11 +54,11 @@ const Accordion = forwardRef((props, ref) => {
44
54
  ownerState,
45
55
  role: "heading",
46
56
  "aria-controls": "expanded-content",
47
- disableTouchRipple: false,
57
+ onClick: handleToggle,
48
58
  expandIcon: /* @__PURE__ */ jsx(
49
59
  IconExpandedStyled,
50
60
  {
51
- ownerState: {},
61
+ ownerState,
52
62
  size,
53
63
  "aria-label": "settings",
54
64
  src: PATH_EXPANDED_ICON
@@ -56,13 +66,13 @@ const Accordion = forwardRef((props, ref) => {
56
66
  ),
57
67
  ...summaryProps,
58
68
  children: [
59
- labelIcon && /* @__PURE__ */ jsx(IconLabelStyled, { ownerState: {}, src: labelIcon, size }),
69
+ labelIcon && /* @__PURE__ */ jsx(IconLabelStyled, { ownerState, src: labelIcon, size }),
60
70
  /* @__PURE__ */ jsx(
61
71
  LabelStyled,
62
72
  {
63
- ownerState: {},
73
+ ownerState,
64
74
  size,
65
- variant: "body",
75
+ variant: "caption",
66
76
  skeletonWidth: skeletonLabelWidth,
67
77
  children: label
68
78
  }
@@ -70,7 +80,7 @@ const Accordion = forwardRef((props, ref) => {
70
80
  ]
71
81
  }
72
82
  ),
73
- /* @__PURE__ */ jsx(AccordionDetailsStyled, { ownerState: {}, children })
83
+ /* @__PURE__ */ jsx(AccordionDetailsStyled, { ownerState, children })
74
84
  ]
75
85
  }
76
86
  );
@@ -13,23 +13,23 @@ export declare const AccordionRootStyled: import('@emotion/styled').StyledCompon
13
13
  TransitionProps?: import('@mui/material/transitions').TransitionProps;
14
14
  } & import('@mui/material').AccordionSlotsAndSlotProps & Omit<import('@mui/material').PaperOwnProps, "classes" | "onChange"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
15
15
  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;
16
- }, "children" | "disabled" | "expanded" | "square" | "variant" | keyof import('@mui/material/OverridableComponent').CommonProps | "sx" | "onChange" | "TransitionComponent" | "TransitionProps" | "elevation" | "disableGutters" | "defaultExpanded" | keyof import('@mui/material').AccordionSlotsAndSlotProps>, "children" | "ref" | "title" | "id" | "disabled" | "hidden" | "color" | "content" | "expanded" | "square" | "variant" | "translate" | keyof import('@mui/material/OverridableComponent').CommonProps | "sx" | "slot" | "key" | "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" | "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" | "onResize" | "onResizeCapture" | "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" | "TransitionComponent" | "TransitionProps" | "elevation" | "disableGutters" | "defaultExpanded" | keyof import('@mui/material').AccordionSlotsAndSlotProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').AccordionOwnerState> & Record<string, unknown> & {
17
- ownerState: Partial<import('../types').AccordionOwnerState> & Record<string, unknown>;
16
+ }, "children" | "disabled" | "expanded" | "square" | "variant" | keyof import('@mui/material/OverridableComponent').CommonProps | "sx" | "onChange" | "TransitionComponent" | "TransitionProps" | "elevation" | "disableGutters" | "defaultExpanded" | keyof import('@mui/material').AccordionSlotsAndSlotProps>, "children" | "ref" | "title" | "id" | "disabled" | "hidden" | "color" | "content" | "expanded" | "square" | "variant" | "translate" | keyof import('@mui/material/OverridableComponent').CommonProps | "sx" | "slot" | "key" | "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" | "TransitionComponent" | "TransitionProps" | "elevation" | "disableGutters" | "defaultExpanded" | keyof import('@mui/material').AccordionSlotsAndSlotProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
17
+ ownerState?: (Partial<import('../types').AccordionOwnerState> & Record<string, unknown>) | undefined;
18
18
  }, {}, {}>;
19
19
  export declare const AccordionSummaryStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').AccordionSummaryOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
20
20
  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;
21
- }, "children" | "disabled" | "action" | "style" | "className" | "classes" | "sx" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "expandIcon">, "children" | "ref" | "title" | "id" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "translate" | "className" | "classes" | "sx" | "slot" | "key" | "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" | "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" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "expandIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').AccordionOwnerState> & Record<string, unknown> & {
22
- ownerState: Partial<import('../types').AccordionOwnerState> & Record<string, unknown>;
21
+ }, "children" | "disabled" | "action" | "style" | "className" | "classes" | "sx" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "expandIcon">, "children" | "ref" | "title" | "id" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "translate" | "className" | "classes" | "sx" | "slot" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "expandIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
22
+ ownerState?: (Partial<import('../types').AccordionOwnerState> & Record<string, unknown>) | undefined;
23
23
  }, {}, {}>;
24
- export declare const IconLabelStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').AccordionOwnerState> & Record<string, unknown> & {
25
- ownerState: Partial<import('../types').AccordionOwnerState> & Record<string, unknown>;
24
+ export declare const IconLabelStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
25
+ ownerState?: (Partial<import('../types').AccordionOwnerState> & Record<string, unknown>) | undefined;
26
26
  }, {}, {}>;
27
- export declare const LabelStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Typography/types').TypographyProps, keyof import('../../Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').AccordionOwnerState> & Record<string, unknown> & {
28
- ownerState: Partial<import('../types').AccordionOwnerState> & Record<string, unknown>;
27
+ export declare const LabelStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Typography/types').TypographyProps, keyof import('../../Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
28
+ ownerState?: (Partial<import('../types').AccordionOwnerState> & Record<string, unknown>) | undefined;
29
29
  }, {}, {}>;
30
- export declare const IconExpandedStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').AccordionOwnerState> & Record<string, unknown> & {
31
- ownerState: Partial<import('../types').AccordionOwnerState> & Record<string, unknown>;
30
+ export declare const IconExpandedStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
31
+ ownerState?: (Partial<import('../types').AccordionOwnerState> & Record<string, unknown>) | undefined;
32
32
  }, {}, {}>;
33
- export declare const AccordionDetailsStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').AccordionDetailsProps, keyof import('@mui/material').AccordionDetailsProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').AccordionOwnerState> & Record<string, unknown> & {
34
- ownerState: Partial<import('../types').AccordionOwnerState> & Record<string, unknown>;
33
+ export declare const AccordionDetailsStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').AccordionDetailsProps, keyof import('@mui/material').AccordionDetailsProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
34
+ ownerState?: (Partial<import('../types').AccordionOwnerState> & Record<string, unknown>) | undefined;
35
35
  }, {}, {}>;
@@ -1,16 +1,22 @@
1
+ import { g as getSizeStyles } from "../../../utils/getSizeStyles/getSizeStyles.js";
1
2
  const accordionStyles = {
2
3
  /**
3
4
  * *********************************************************
4
5
  *Estilos del contenedor principal del componente Accordion
5
6
  **********************************************************
6
7
  */
7
- accordionRoot: ({ theme }) => ({
8
- border: `${theme.size.borderStroke.container} ${theme.vars.palette.border.default}`,
9
- borderRadius: `${theme.size.borderRadius.r1} !important`,
10
- "& .Mui-disabled": {
11
- '& [class*="M4LIcon-icon"]': {
12
- background: theme.vars.palette.text.disabled
13
- }
8
+ accordionRoot: ({ theme, ownerState }) => ({
9
+ "&&&": {
10
+ ...ownerState?.variant === "outlined" && {
11
+ border: `${theme.size.borderStroke.container} ${theme.vars.palette.border.secondary}`,
12
+ borderRadius: ownerState?.variant === "outlined" ? theme.size.borderRadius.r2 : "unset"
13
+ },
14
+ ...ownerState?.variant === "text" && {
15
+ borderBottom: ownerState?.expanded ? `${theme.size.borderStroke.container} ${theme.vars.palette.border.default}` : `${theme.size.borderStroke.container} ${theme.vars.palette.border.default}`,
16
+ borderRadius: "unset"
17
+ },
18
+ margin: "unset",
19
+ overflow: "visible"
14
20
  }
15
21
  }),
16
22
  /**
@@ -19,29 +25,48 @@ const accordionStyles = {
19
25
  * **************************************************************
20
26
  */
21
27
  accordionSummary: ({ theme, ownerState }) => ({
22
- padding: `0px ${theme.vars.size.baseSpacings.sp1} 0px ${theme.vars.size.baseSpacings.sp2}`,
23
- display: "flex",
24
- flexDirection: "row",
25
- justifyContent: "flex-start",
26
- alignItems: "center",
27
- height: `${theme.vars.size[theme.generalSettings.isMobile ? "mobile" : "desktop"][ownerState.size ?? "medium"].container} !important`,
28
- minHeight: `${theme.vars.size[theme.generalSettings.isMobile ? "mobile" : "desktop"][ownerState.size ?? "medium"].container} !important`,
29
- background: theme.vars.palette.background.neutral,
30
- overflow: "hidden",
31
- "&:hover": {
32
- background: theme.vars.palette.primary.hoverOpacity
33
- },
34
- "&:focus-visible": {
35
- background: theme.vars.palette.primary.activeOpacity,
36
- borderRadius: `${theme.size.borderRadius.r1} !important`,
37
- outline: `${theme.size.borderStroke.container} ${theme.vars.palette.border.main}`,
38
- outlineOffset: `${theme.size.baseSpacings["sp0-5"]}`
39
- },
40
- "&:active": {
41
- background: theme.vars.palette.primary.activeOpacity
42
- },
43
- "& .MuiAccordionSummary-content": {
44
- gap: `${theme.vars.size.baseSpacings.sp1}`
28
+ "&&&": {
29
+ paddingLeft: theme.vars.size.baseSpacings.sp2,
30
+ paddingRight: theme.vars.size.baseSpacings.sp2,
31
+ gap: theme.vars.size.baseSpacings.sp2,
32
+ display: "flex",
33
+ flexDirection: "row",
34
+ justifyContent: "flex-start",
35
+ alignItems: "center",
36
+ ...getSizeStyles(theme, ownerState?.size ?? "medium", "container", (size) => ({
37
+ minHeight: size,
38
+ height: size
39
+ })),
40
+ background: theme.vars.palette.background.default,
41
+ overflow: "hidden",
42
+ borderBottom: ownerState?.expanded && ownerState?.variant === "outlined" ? `${theme.size.borderStroke.container} ${theme.vars.palette.border.disabled}` : "unset",
43
+ borderRadius: "unset",
44
+ ...ownerState?.variant === "outlined" && {
45
+ borderTopLeftRadius: theme.size.borderRadius.r2,
46
+ borderTopRightRadius: theme.size.borderRadius.r2,
47
+ borderBottomLeftRadius: !ownerState?.expanded ? theme.size.borderRadius.r2 : "unset",
48
+ borderBottomRightRadius: !ownerState?.expanded ? theme.size.borderRadius.r2 : "unset"
49
+ },
50
+ "&:hover": {
51
+ background: theme.vars.palette.default.hoverOpacity
52
+ },
53
+ "&:focus-visible": {
54
+ borderRadius: theme.size.borderRadius["r1-5"],
55
+ boxShadow: `0px 0px 0px 1.3px ${theme.vars.palette.border.main}`
56
+ },
57
+ "&:active": {
58
+ background: theme.vars.palette.default.activeOpacity
59
+ },
60
+ "& .MuiAccordionSummary-content": {
61
+ gap: `${theme.vars.size.baseSpacings.sp1}`,
62
+ overflow: "hidden",
63
+ paddingLeft: theme.vars.size.baseSpacings.sp1,
64
+ "& .MuiTypography-root": {
65
+ overflow: "hidden",
66
+ textOverflow: "ellipsis",
67
+ whiteSpace: "nowrap"
68
+ }
69
+ }
45
70
  }
46
71
  }),
47
72
  /**
@@ -75,15 +100,17 @@ const accordionStyles = {
75
100
  * Estilos del contenedor que muestra el contenido del accordion
76
101
  * **************************************************************
77
102
  */
78
- accordionDetails: ({ theme }) => ({
103
+ accordionDetails: ({ theme, ownerState }) => ({
79
104
  padding: theme.vars.size.baseSpacings.sp3,
80
105
  background: theme.vars.palette.background.default,
81
106
  display: "flex",
82
107
  flexDirection: "column",
83
108
  alignItems: "flex-start",
84
109
  alignSelf: "stretch",
85
- borderBottomLeftRadius: `${theme.size.borderRadius.r1}`,
86
- borderBottomRightRadius: `${theme.size.borderRadius.r1}`
110
+ ...ownerState?.variant === "outlined" && {
111
+ borderBottomLeftRadius: theme.size.borderRadius["r1-5"],
112
+ borderBottomRightRadius: theme.size.borderRadius["r1-5"]
113
+ }
87
114
  })
88
115
  };
89
116
  export {
@@ -1,22 +1,55 @@
1
1
  import { AccordionProps as MUIAccordionProps, AccordionSummaryProps, Theme } from '@mui/material';
2
2
  import { ReactNode } from 'react';
3
3
  import { AccordionSlots } from './slots/AccordionEnum';
4
- import { OverridesStyleRules } from '@mui/material/styles/overrides';
5
4
  import { ACCORDION_KEY } from './constants';
6
- import { ComponentPalletColor, Sizes } from '@m4l/styles';
5
+ import { Sizes } from '@m4l/styles';
6
+ import { M4LOverridesStyleRules } from '../../../@types/augmentations';
7
7
  export interface AccordionProps {
8
+ /**
9
+ * The label for the Accordion component
10
+ */
8
11
  label: string;
12
+ /**
13
+ * Optional class name for the Accordion component
14
+ */
9
15
  className?: string;
16
+ /**
17
+ * The children nodes of the Accordion component
18
+ */
10
19
  children: ReactNode;
20
+ /**
21
+ * Optional props for the MUI Accordion component
22
+ */
11
23
  accordionProps?: Omit<MUIAccordionProps, 'sx' | 'children'>;
24
+ /**
25
+ * Optional props for the Accordion Summary component
26
+ */
12
27
  summaryProps?: AccordionSummaryProps;
28
+ /**
29
+ * Optional icon for the Accordion component
30
+ */
13
31
  icon?: string;
32
+ /**
33
+ * Optional width for the skeleton label
34
+ */
14
35
  skeletonLabelWidth?: number | string;
15
- variant?: 'standard';
16
- color?: Extract<ComponentPalletColor, 'primary'>;
36
+ /**
37
+ * Optional variant for the Accordion component
38
+ */
39
+ variant?: 'outlined' | 'text';
40
+ /**
41
+ * Optional size for the Accordion component
42
+ */
17
43
  size?: Extract<Sizes, 'small' | 'medium'>;
44
+ /**
45
+ * Optional data test id for the Accordion component
46
+ */
18
47
  dataTestId?: string;
48
+ /**
49
+ * Optional expanded state for the Accordion component
50
+ */
51
+ expanded?: boolean;
19
52
  }
20
53
  export type AccordionSlotsType = keyof typeof AccordionSlots;
21
- export type AccordionStyles = OverridesStyleRules<AccordionSlotsType, typeof ACCORDION_KEY, Theme>;
22
- export type AccordionOwnerState = Pick<AccordionProps, 'size'>;
54
+ export type AccordionStyles = M4LOverridesStyleRules<AccordionSlotsType, typeof ACCORDION_KEY, Theme>;
55
+ export type AccordionOwnerState = Pick<AccordionProps, 'size' | 'variant'>;
@@ -46,7 +46,7 @@ const autocompleteSyles = {
46
46
  * Styles for the chip component.
47
47
  */
48
48
  chip: ({ theme, ownerState }) => ({
49
- ...ownerState.disabled && {
49
+ ...ownerState?.disabled && {
50
50
  background: theme.vars.palette.chips.disabled.contained.backgroundColor,
51
51
  color: theme.vars.palette.text.disabled,
52
52
  "&& .M4LIcon-icon": {
@@ -66,7 +66,7 @@ const autocompleteSyles = {
66
66
  gap: theme.vars.size.baseSpacings.sp1,
67
67
  flexWrap: "wrap",
68
68
  paddingLeft: `${theme.vars.size.baseSpacings.sp1} !important`,
69
- // borderColor: `${ ownerState.error ? theme.vars.palette.border.error : theme.vars.palette.border.secondary} !important`,
69
+ // borderColor: `${ ownerState?.error ? theme.vars.palette.border.error : theme.vars.palette.border.secondary} !important`,
70
70
  "& > input": {
71
71
  width: "100%",
72
72
  textOverflow: "ellipsis",
@@ -95,7 +95,7 @@ const autocompleteSyles = {
95
95
  skeletonAutocomplete: ({ theme, ownerState }) => {
96
96
  return {
97
97
  width: "100%",
98
- background: theme.vars.palette.skeleton.transition,
98
+ background: theme.vars.palette.skeleton.default,
99
99
  display: "flex",
100
100
  borderRadius: theme.vars.size.borderRadius.r1,
101
101
  ...getSizeStyles(
@@ -13,7 +13,7 @@ function useEndAdornments(props) {
13
13
  onOpenLocal
14
14
  } = props;
15
15
  const { host_static_assets, environment_assets } = useEnvironment();
16
- return /* @__PURE__ */ jsxs(AdormentsStyled, { ownerState: {}, children: [
16
+ return /* @__PURE__ */ jsxs(AdormentsStyled, { children: [
17
17
  loading ? /* @__PURE__ */ jsx(
18
18
  CircularProgressStyled,
19
19
  {