@sitecore/sc-contenthub-blok 0.0.36 → 0.0.38

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 (388) hide show
  1. package/dist/BlokTheme.js +24 -0
  2. package/dist/BlokTheme.js.map +1 -1
  3. package/dist/Components/BlokButton/BlokButton.d.ts +9 -1
  4. package/dist/Components/BlokButton/BlokButton.js +11 -1
  5. package/dist/Components/BlokButton/BlokButton.js.map +1 -1
  6. package/dist/Components/BlokButton/BlokButton.stories.js +1 -0
  7. package/dist/Components/BlokButton/BlokButton.stories.js.map +1 -1
  8. package/dist/Components/BlokIconButton/BlokIconButton.stories.js +1 -0
  9. package/dist/Components/BlokIconButton/BlokIconButton.stories.js.map +1 -1
  10. package/esm/BlokTheme.js +24 -0
  11. package/esm/BlokTheme.js.map +1 -1
  12. package/esm/Components/BlokButton/BlokButton.js +11 -1
  13. package/esm/Components/BlokButton/BlokButton.js.map +1 -1
  14. package/node_modules/@mui/core-downloads-tracker/package.json +1 -1
  15. package/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +4 -3
  16. package/node_modules/@mui/material/Alert/Alert.d.ts +69 -0
  17. package/node_modules/@mui/material/Alert/Alert.js +53 -21
  18. package/node_modules/@mui/material/AppBar/AppBar.d.ts +1 -1
  19. package/node_modules/@mui/material/AppBar/AppBar.js +1 -1
  20. package/node_modules/@mui/material/Autocomplete/Autocomplete.d.ts +1 -1
  21. package/node_modules/@mui/material/Autocomplete/Autocomplete.js +42 -55
  22. package/node_modules/@mui/material/AvatarGroup/AvatarGroup.js +5 -4
  23. package/node_modules/@mui/material/Backdrop/Backdrop.js +1 -9
  24. package/node_modules/@mui/material/Box/Box.d.ts +3 -1
  25. package/node_modules/@mui/material/Button/Button.d.ts +18 -0
  26. package/node_modules/@mui/material/Button/Button.js +233 -15
  27. package/node_modules/@mui/material/Button/buttonClasses.d.ts +14 -0
  28. package/node_modules/@mui/material/Button/buttonClasses.js +1 -1
  29. package/node_modules/@mui/material/ButtonBase/ButtonBase.d.ts +2 -0
  30. package/node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext.js +2 -0
  31. package/node_modules/@mui/material/ButtonGroup/ButtonGroupContext.js +2 -0
  32. package/node_modules/@mui/material/CHANGELOG.md +240 -2
  33. package/node_modules/@mui/material/CardHeader/CardHeader.d.ts +114 -1
  34. package/node_modules/@mui/material/CardHeader/CardHeader.js +106 -37
  35. package/node_modules/@mui/material/CircularProgress/CircularProgress.js +2 -2
  36. package/node_modules/@mui/material/Collapse/Collapse.js +5 -4
  37. package/node_modules/@mui/material/Dialog/Dialog.d.ts +85 -1
  38. package/node_modules/@mui/material/Dialog/Dialog.js +91 -20
  39. package/node_modules/@mui/material/Dialog/DialogContext.js +2 -0
  40. package/node_modules/@mui/material/Drawer/Drawer.js +1 -1
  41. package/node_modules/@mui/material/Drawer/drawerClasses.d.ts +32 -8
  42. package/node_modules/@mui/material/Drawer/drawerClasses.js +1 -1
  43. package/node_modules/@mui/material/Fade/Fade.js +5 -2
  44. package/node_modules/@mui/material/FilledInput/FilledInput.js +1 -3
  45. package/node_modules/@mui/material/FormControl/FormControl.js +14 -15
  46. package/node_modules/@mui/material/FormControl/FormControlContext.js +2 -0
  47. package/node_modules/@mui/material/FormLabel/FormLabel.js +5 -8
  48. package/node_modules/@mui/material/Grid/Grid.js +2 -2
  49. package/node_modules/@mui/material/Grow/Grow.js +5 -2
  50. package/node_modules/@mui/material/Hidden/withWidth.js +2 -0
  51. package/node_modules/@mui/material/Icon/Icon.js +1 -3
  52. package/node_modules/@mui/material/IconButton/IconButton.d.ts +13 -0
  53. package/node_modules/@mui/material/IconButton/IconButton.js +80 -7
  54. package/node_modules/@mui/material/IconButton/iconButtonClasses.d.ts +6 -0
  55. package/node_modules/@mui/material/IconButton/iconButtonClasses.js +1 -1
  56. package/node_modules/@mui/material/Input/Input.js +1 -3
  57. package/node_modules/@mui/material/LinearProgress/LinearProgress.js +4 -4
  58. package/node_modules/@mui/material/LinearProgress/linearProgressClasses.d.ts +31 -9
  59. package/node_modules/@mui/material/LinearProgress/linearProgressClasses.js +1 -1
  60. package/node_modules/@mui/material/Link/getTextDecoration.js +3 -2
  61. package/node_modules/@mui/material/ListItemText/ListItemText.d.ts +36 -1
  62. package/node_modules/@mui/material/ListItemText/ListItemText.js +46 -7
  63. package/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +1 -3
  64. package/node_modules/@mui/material/PigmentGrid/PigmentGrid.js +1 -1
  65. package/node_modules/@mui/material/RadioGroup/RadioGroupContext.js +2 -0
  66. package/node_modules/@mui/material/Select/Select.js +10 -1
  67. package/node_modules/@mui/material/Select/SelectInput.js +9 -1
  68. package/node_modules/@mui/material/Select/selectClasses.d.ts +9 -3
  69. package/node_modules/@mui/material/Slide/Slide.js +5 -2
  70. package/node_modules/@mui/material/Slider/useSlider.js +69 -12
  71. package/node_modules/@mui/material/Step/StepContext.js +2 -0
  72. package/node_modules/@mui/material/StepContent/StepContent.d.ts +31 -2
  73. package/node_modules/@mui/material/StepContent/StepContent.js +39 -7
  74. package/node_modules/@mui/material/StepLabel/StepLabel.d.ts +1 -1
  75. package/node_modules/@mui/material/StepLabel/StepLabel.js +1 -3
  76. package/node_modules/@mui/material/Stepper/StepperContext.js +2 -0
  77. package/node_modules/@mui/material/SvgIcon/SvgIcon.js +1 -3
  78. package/node_modules/@mui/material/Table/Tablelvl2Context.js +2 -0
  79. package/node_modules/@mui/material/TablePagination/TablePagination.d.ts +134 -18
  80. package/node_modules/@mui/material/TablePagination/TablePagination.js +89 -33
  81. package/node_modules/@mui/material/TableSortLabel/TableSortLabel.d.ts +43 -1
  82. package/node_modules/@mui/material/TableSortLabel/TableSortLabel.js +40 -7
  83. package/node_modules/@mui/material/TextField/TextField.d.ts +1 -0
  84. package/node_modules/@mui/material/TextField/TextField.js +1 -0
  85. package/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +2 -0
  86. package/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroupContext.js +2 -0
  87. package/node_modules/@mui/material/Tooltip/Tooltip.d.ts +1 -1
  88. package/node_modules/@mui/material/Tooltip/Tooltip.js +1 -1
  89. package/node_modules/@mui/material/Zoom/Zoom.js +5 -2
  90. package/node_modules/@mui/material/index.js +1 -1
  91. package/node_modules/@mui/material/modern/AccordionSummary/AccordionSummary.js +4 -3
  92. package/node_modules/@mui/material/modern/Alert/Alert.js +53 -21
  93. package/node_modules/@mui/material/modern/AppBar/AppBar.js +1 -1
  94. package/node_modules/@mui/material/modern/Autocomplete/Autocomplete.js +42 -55
  95. package/node_modules/@mui/material/modern/AvatarGroup/AvatarGroup.js +5 -4
  96. package/node_modules/@mui/material/modern/Backdrop/Backdrop.js +1 -9
  97. package/node_modules/@mui/material/modern/Button/Button.js +233 -15
  98. package/node_modules/@mui/material/modern/Button/buttonClasses.js +1 -1
  99. package/node_modules/@mui/material/modern/ButtonGroup/ButtonGroupButtonContext.js +2 -0
  100. package/node_modules/@mui/material/modern/ButtonGroup/ButtonGroupContext.js +2 -0
  101. package/node_modules/@mui/material/modern/CardHeader/CardHeader.js +106 -37
  102. package/node_modules/@mui/material/modern/CircularProgress/CircularProgress.js +2 -2
  103. package/node_modules/@mui/material/modern/Collapse/Collapse.js +5 -4
  104. package/node_modules/@mui/material/modern/Dialog/Dialog.js +91 -20
  105. package/node_modules/@mui/material/modern/Dialog/DialogContext.js +2 -0
  106. package/node_modules/@mui/material/modern/Drawer/Drawer.js +1 -1
  107. package/node_modules/@mui/material/modern/Drawer/drawerClasses.js +1 -1
  108. package/node_modules/@mui/material/modern/Fade/Fade.js +5 -2
  109. package/node_modules/@mui/material/modern/FilledInput/FilledInput.js +1 -3
  110. package/node_modules/@mui/material/modern/FormControl/FormControl.js +14 -15
  111. package/node_modules/@mui/material/modern/FormControl/FormControlContext.js +2 -0
  112. package/node_modules/@mui/material/modern/FormLabel/FormLabel.js +5 -8
  113. package/node_modules/@mui/material/modern/Grid/Grid.js +2 -2
  114. package/node_modules/@mui/material/modern/Grow/Grow.js +5 -2
  115. package/node_modules/@mui/material/modern/Hidden/withWidth.js +2 -0
  116. package/node_modules/@mui/material/modern/Icon/Icon.js +1 -3
  117. package/node_modules/@mui/material/modern/IconButton/IconButton.js +80 -7
  118. package/node_modules/@mui/material/modern/IconButton/iconButtonClasses.js +1 -1
  119. package/node_modules/@mui/material/modern/Input/Input.js +1 -3
  120. package/node_modules/@mui/material/modern/LinearProgress/LinearProgress.js +4 -4
  121. package/node_modules/@mui/material/modern/LinearProgress/linearProgressClasses.js +1 -1
  122. package/node_modules/@mui/material/modern/Link/getTextDecoration.js +3 -2
  123. package/node_modules/@mui/material/modern/ListItemText/ListItemText.js +46 -7
  124. package/node_modules/@mui/material/modern/OutlinedInput/OutlinedInput.js +1 -3
  125. package/node_modules/@mui/material/modern/PigmentGrid/PigmentGrid.js +1 -1
  126. package/node_modules/@mui/material/modern/RadioGroup/RadioGroupContext.js +2 -0
  127. package/node_modules/@mui/material/modern/Select/Select.js +10 -1
  128. package/node_modules/@mui/material/modern/Select/SelectInput.js +9 -1
  129. package/node_modules/@mui/material/modern/Slide/Slide.js +5 -2
  130. package/node_modules/@mui/material/modern/Slider/useSlider.js +69 -12
  131. package/node_modules/@mui/material/modern/Step/StepContext.js +2 -0
  132. package/node_modules/@mui/material/modern/StepContent/StepContent.js +39 -7
  133. package/node_modules/@mui/material/modern/StepLabel/StepLabel.js +1 -3
  134. package/node_modules/@mui/material/modern/Stepper/StepperContext.js +2 -0
  135. package/node_modules/@mui/material/modern/SvgIcon/SvgIcon.js +1 -3
  136. package/node_modules/@mui/material/modern/Table/Tablelvl2Context.js +2 -0
  137. package/node_modules/@mui/material/modern/TablePagination/TablePagination.js +89 -33
  138. package/node_modules/@mui/material/modern/TableSortLabel/TableSortLabel.js +40 -7
  139. package/node_modules/@mui/material/modern/TextField/TextField.js +1 -0
  140. package/node_modules/@mui/material/modern/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +2 -0
  141. package/node_modules/@mui/material/modern/ToggleButtonGroup/ToggleButtonGroupContext.js +2 -0
  142. package/node_modules/@mui/material/modern/Tooltip/Tooltip.js +1 -1
  143. package/node_modules/@mui/material/modern/Zoom/Zoom.js +5 -2
  144. package/node_modules/@mui/material/modern/index.js +1 -1
  145. package/node_modules/@mui/material/modern/usePagination/usePagination.js +1 -1
  146. package/node_modules/@mui/material/modern/utils/index.js +1 -0
  147. package/node_modules/@mui/material/modern/utils/mergeSlotProps.js +43 -0
  148. package/node_modules/@mui/material/modern/utils/useSlot.js +5 -1
  149. package/node_modules/@mui/material/modern/version/index.js +3 -3
  150. package/node_modules/@mui/material/node/AccordionSummary/AccordionSummary.js +4 -3
  151. package/node_modules/@mui/material/node/Alert/Alert.js +53 -21
  152. package/node_modules/@mui/material/node/AppBar/AppBar.js +1 -1
  153. package/node_modules/@mui/material/node/Autocomplete/Autocomplete.js +42 -55
  154. package/node_modules/@mui/material/node/AvatarGroup/AvatarGroup.js +5 -4
  155. package/node_modules/@mui/material/node/Backdrop/Backdrop.js +1 -9
  156. package/node_modules/@mui/material/node/Button/Button.js +233 -15
  157. package/node_modules/@mui/material/node/Button/buttonClasses.js +1 -1
  158. package/node_modules/@mui/material/node/ButtonGroup/ButtonGroupButtonContext.js +1 -0
  159. package/node_modules/@mui/material/node/ButtonGroup/ButtonGroupContext.js +1 -0
  160. package/node_modules/@mui/material/node/CardHeader/CardHeader.js +106 -37
  161. package/node_modules/@mui/material/node/CircularProgress/CircularProgress.js +2 -2
  162. package/node_modules/@mui/material/node/Collapse/Collapse.js +5 -4
  163. package/node_modules/@mui/material/node/Dialog/Dialog.js +91 -20
  164. package/node_modules/@mui/material/node/Dialog/DialogContext.js +1 -0
  165. package/node_modules/@mui/material/node/Drawer/Drawer.js +1 -1
  166. package/node_modules/@mui/material/node/Drawer/drawerClasses.js +1 -1
  167. package/node_modules/@mui/material/node/Fade/Fade.js +5 -2
  168. package/node_modules/@mui/material/node/FilledInput/FilledInput.js +1 -3
  169. package/node_modules/@mui/material/node/FormControl/FormControl.js +14 -15
  170. package/node_modules/@mui/material/node/FormControl/FormControlContext.js +1 -0
  171. package/node_modules/@mui/material/node/FormLabel/FormLabel.js +5 -8
  172. package/node_modules/@mui/material/node/Grid/Grid.js +2 -2
  173. package/node_modules/@mui/material/node/Grow/Grow.js +5 -2
  174. package/node_modules/@mui/material/node/Hidden/withWidth.js +1 -0
  175. package/node_modules/@mui/material/node/Icon/Icon.js +1 -3
  176. package/node_modules/@mui/material/node/IconButton/IconButton.js +79 -6
  177. package/node_modules/@mui/material/node/IconButton/iconButtonClasses.js +1 -1
  178. package/node_modules/@mui/material/node/Input/Input.js +1 -3
  179. package/node_modules/@mui/material/node/LinearProgress/LinearProgress.js +4 -4
  180. package/node_modules/@mui/material/node/LinearProgress/linearProgressClasses.js +1 -1
  181. package/node_modules/@mui/material/node/Link/getTextDecoration.js +3 -2
  182. package/node_modules/@mui/material/node/ListItemText/ListItemText.js +46 -7
  183. package/node_modules/@mui/material/node/OutlinedInput/OutlinedInput.js +1 -3
  184. package/node_modules/@mui/material/node/PigmentGrid/PigmentGrid.js +2 -2
  185. package/node_modules/@mui/material/node/RadioGroup/RadioGroupContext.js +1 -0
  186. package/node_modules/@mui/material/node/Select/Select.js +10 -1
  187. package/node_modules/@mui/material/node/Select/SelectInput.js +9 -1
  188. package/node_modules/@mui/material/node/Slide/Slide.js +5 -2
  189. package/node_modules/@mui/material/node/Slider/useSlider.js +69 -12
  190. package/node_modules/@mui/material/node/Step/StepContext.js +1 -0
  191. package/node_modules/@mui/material/node/StepContent/StepContent.js +39 -7
  192. package/node_modules/@mui/material/node/StepLabel/StepLabel.js +1 -3
  193. package/node_modules/@mui/material/node/Stepper/StepperContext.js +1 -0
  194. package/node_modules/@mui/material/node/SvgIcon/SvgIcon.js +1 -3
  195. package/node_modules/@mui/material/node/Table/Tablelvl2Context.js +1 -0
  196. package/node_modules/@mui/material/node/TablePagination/TablePagination.js +89 -33
  197. package/node_modules/@mui/material/node/TableSortLabel/TableSortLabel.js +40 -7
  198. package/node_modules/@mui/material/node/TextField/TextField.js +1 -0
  199. package/node_modules/@mui/material/node/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +1 -0
  200. package/node_modules/@mui/material/node/ToggleButtonGroup/ToggleButtonGroupContext.js +1 -0
  201. package/node_modules/@mui/material/node/Tooltip/Tooltip.js +1 -1
  202. package/node_modules/@mui/material/node/Zoom/Zoom.js +5 -2
  203. package/node_modules/@mui/material/node/index.js +1 -1
  204. package/node_modules/@mui/material/node/usePagination/usePagination.js +1 -1
  205. package/node_modules/@mui/material/node/utils/index.js +7 -0
  206. package/node_modules/@mui/material/node/utils/mergeSlotProps.js +50 -0
  207. package/node_modules/@mui/material/node/utils/useSlot.js +5 -1
  208. package/node_modules/@mui/material/node/version/index.js +3 -3
  209. package/node_modules/{react-is → @mui/material/node_modules/react-is}/LICENSE +1 -1
  210. package/node_modules/{react-is → @mui/material/node_modules/react-is}/README.md +0 -1
  211. package/node_modules/@mui/material/node_modules/react-is/cjs/react-is.development.js +133 -0
  212. package/node_modules/@mui/material/node_modules/react-is/cjs/react-is.production.js +130 -0
  213. package/node_modules/{react-is → @mui/material/node_modules/react-is}/index.js +1 -1
  214. package/node_modules/{react-is → @mui/material/node_modules/react-is}/package.json +4 -4
  215. package/node_modules/@mui/material/package.json +8 -8
  216. package/node_modules/@mui/material/styles/useThemeProps.d.ts +27 -0
  217. package/node_modules/@mui/material/useAutocomplete/useAutocomplete.d.ts +20 -5
  218. package/node_modules/@mui/material/useLazyRipple/useLazyRipple.d.ts +1 -1
  219. package/node_modules/@mui/material/usePagination/usePagination.js +1 -1
  220. package/node_modules/@mui/material/utils/index.d.ts +1 -0
  221. package/node_modules/@mui/material/utils/index.js +1 -0
  222. package/node_modules/@mui/material/utils/memoTheme.d.ts +1 -1
  223. package/node_modules/@mui/material/utils/mergeSlotProps.d.ts +2 -0
  224. package/node_modules/@mui/material/utils/mergeSlotProps.js +43 -0
  225. package/node_modules/@mui/material/utils/useSlot.d.ts +8 -0
  226. package/node_modules/@mui/material/utils/useSlot.js +5 -1
  227. package/node_modules/@mui/material/version/index.js +3 -3
  228. package/node_modules/@mui/private-theming/CHANGELOG.md +240 -2
  229. package/node_modules/@mui/private-theming/index.js +1 -1
  230. package/node_modules/@mui/private-theming/modern/index.js +1 -1
  231. package/node_modules/@mui/private-theming/modern/useTheme/ThemeContext.js +2 -0
  232. package/node_modules/@mui/private-theming/node/index.js +1 -1
  233. package/node_modules/@mui/private-theming/node/useTheme/ThemeContext.js +1 -0
  234. package/node_modules/@mui/private-theming/package.json +2 -2
  235. package/node_modules/@mui/private-theming/useTheme/ThemeContext.js +2 -0
  236. package/node_modules/@mui/styled-engine/CHANGELOG.md +198 -2
  237. package/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +29 -19
  238. package/node_modules/@mui/styled-engine/index.js +1 -1
  239. package/node_modules/@mui/styled-engine/modern/StyledEngineProvider/StyledEngineProvider.js +29 -19
  240. package/node_modules/@mui/styled-engine/modern/index.js +1 -1
  241. package/node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js +29 -19
  242. package/node_modules/@mui/styled-engine/node/index.js +1 -1
  243. package/node_modules/@mui/styled-engine/package.json +1 -1
  244. package/node_modules/@mui/system/CHANGELOG.md +240 -2
  245. package/node_modules/@mui/system/Grid/index.d.ts +1 -0
  246. package/node_modules/@mui/system/Grid/index.js +24 -2
  247. package/node_modules/@mui/system/RtlProvider/index.js +1 -0
  248. package/node_modules/@mui/system/colorManipulator/colorManipulator.js +5 -0
  249. package/node_modules/@mui/system/createTheme/applyStyles.d.ts +7 -3
  250. package/node_modules/@mui/system/createTheme/applyStyles.js +7 -3
  251. package/node_modules/@mui/system/cssVars/createCssVarsProvider.js +3 -1
  252. package/node_modules/@mui/system/esm/Grid/index.js +2 -1
  253. package/node_modules/@mui/system/esm/RtlProvider/index.js +2 -0
  254. package/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js +5 -0
  255. package/node_modules/@mui/system/esm/createTheme/applyStyles.js +7 -3
  256. package/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +4 -1
  257. package/node_modules/@mui/system/esm/version/index.js +3 -3
  258. package/node_modules/@mui/system/index.js +1 -1
  259. package/node_modules/@mui/system/memoTheme.d.ts +1 -1
  260. package/node_modules/@mui/system/modern/Grid/index.js +2 -1
  261. package/node_modules/@mui/system/modern/RtlProvider/index.js +2 -0
  262. package/node_modules/@mui/system/modern/colorManipulator/colorManipulator.js +5 -0
  263. package/node_modules/@mui/system/modern/createTheme/applyStyles.js +7 -3
  264. package/node_modules/@mui/system/modern/cssVars/createCssVarsProvider.js +4 -1
  265. package/node_modules/@mui/system/modern/index.js +1 -1
  266. package/node_modules/@mui/system/modern/version/index.js +3 -3
  267. package/node_modules/@mui/system/package.json +5 -5
  268. package/node_modules/@mui/system/version/index.js +3 -3
  269. package/node_modules/@mui/types/package.json +1 -1
  270. package/node_modules/@mui/utils/CHANGELOG.md +240 -2
  271. package/node_modules/@mui/utils/composeClasses/composeClasses.d.ts +28 -0
  272. package/node_modules/@mui/utils/composeClasses/composeClasses.js +28 -0
  273. package/node_modules/@mui/utils/deepmerge/deepmerge.d.ts +18 -0
  274. package/node_modules/@mui/utils/deepmerge/deepmerge.js +22 -2
  275. package/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +28 -0
  276. package/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +22 -2
  277. package/node_modules/@mui/utils/index.js +1 -1
  278. package/node_modules/@mui/utils/modern/composeClasses/composeClasses.js +28 -0
  279. package/node_modules/@mui/utils/modern/deepmerge/deepmerge.js +22 -2
  280. package/node_modules/@mui/utils/modern/index.js +1 -1
  281. package/node_modules/@mui/utils/node_modules/react-is/LICENSE +21 -0
  282. package/node_modules/@mui/utils/node_modules/react-is/README.md +103 -0
  283. package/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js +133 -0
  284. package/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.js +130 -0
  285. package/node_modules/@mui/utils/node_modules/react-is/index.js +7 -0
  286. package/node_modules/@mui/utils/node_modules/react-is/package.json +26 -0
  287. package/node_modules/@mui/utils/package.json +4 -4
  288. package/node_modules/@mui/utils/useLazyRef/useLazyRef.d.ts +1 -1
  289. package/node_modules/@mui/x-date-pickers/CHANGELOG.md +487 -0
  290. package/node_modules/@mui/x-date-pickers/DateCalendar/PickersFadeTransitionGroup.d.ts +1 -1
  291. package/node_modules/@mui/x-date-pickers/DateCalendar/PickersSlideTransition.d.ts +1 -1
  292. package/node_modules/@mui/x-date-pickers/DateField/useDateField.d.ts +1 -1
  293. package/node_modules/@mui/x-date-pickers/DateTimeField/useDateTimeField.d.ts +1 -1
  294. package/node_modules/@mui/x-date-pickers/MultiSectionDigitalClock/MultiSectionDigitalClock.js +3 -0
  295. package/node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader.js +2 -0
  296. package/node_modules/@mui/x-date-pickers/README.md +1 -1
  297. package/node_modules/@mui/x-date-pickers/TimeClock/Clock.d.ts +4 -0
  298. package/node_modules/@mui/x-date-pickers/TimeClock/Clock.js +10 -6
  299. package/node_modules/@mui/x-date-pickers/TimeClock/TimeClock.js +21 -4
  300. package/node_modules/@mui/x-date-pickers/TimeField/useTimeField.d.ts +1 -1
  301. package/node_modules/@mui/x-date-pickers/index.js +1 -1
  302. package/node_modules/@mui/x-date-pickers/internals/hooks/useField/useField.js +5 -0
  303. package/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldV6TextField.js +5 -2
  304. package/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldV7TextField.js +3 -0
  305. package/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerViews.d.ts +1 -1
  306. package/node_modules/@mui/x-date-pickers/internals/hooks/useStaticPicker/useStaticPicker.js +0 -1
  307. package/node_modules/@mui/x-date-pickers/internals/hooks/useUtils.js +1 -1
  308. package/node_modules/@mui/x-date-pickers/locales/index.d.ts +1 -0
  309. package/node_modules/@mui/x-date-pickers/locales/index.js +1 -0
  310. package/node_modules/@mui/x-date-pickers/locales/nbNO.js +15 -19
  311. package/node_modules/@mui/x-date-pickers/locales/roRO.js +15 -18
  312. package/node_modules/@mui/x-date-pickers/locales/zhTW.d.ts +80 -0
  313. package/node_modules/@mui/x-date-pickers/locales/zhTW.js +73 -0
  314. package/node_modules/@mui/x-date-pickers/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +3 -0
  315. package/node_modules/@mui/x-date-pickers/modern/PickersCalendarHeader/PickersCalendarHeader.js +2 -0
  316. package/node_modules/@mui/x-date-pickers/modern/TimeClock/Clock.js +10 -6
  317. package/node_modules/@mui/x-date-pickers/modern/TimeClock/TimeClock.js +21 -4
  318. package/node_modules/@mui/x-date-pickers/modern/index.js +1 -1
  319. package/node_modules/@mui/x-date-pickers/modern/internals/hooks/useField/useField.js +5 -0
  320. package/node_modules/@mui/x-date-pickers/modern/internals/hooks/useField/useFieldV6TextField.js +5 -2
  321. package/node_modules/@mui/x-date-pickers/modern/internals/hooks/useField/useFieldV7TextField.js +3 -0
  322. package/node_modules/@mui/x-date-pickers/modern/internals/hooks/useStaticPicker/useStaticPicker.js +0 -1
  323. package/node_modules/@mui/x-date-pickers/modern/internals/hooks/useUtils.js +1 -1
  324. package/node_modules/@mui/x-date-pickers/modern/locales/index.js +1 -0
  325. package/node_modules/@mui/x-date-pickers/modern/locales/nbNO.js +15 -19
  326. package/node_modules/@mui/x-date-pickers/modern/locales/roRO.js +15 -18
  327. package/node_modules/@mui/x-date-pickers/modern/locales/zhTW.js +73 -0
  328. package/node_modules/@mui/x-date-pickers/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +3 -0
  329. package/node_modules/@mui/x-date-pickers/node/PickersCalendarHeader/PickersCalendarHeader.js +2 -0
  330. package/node_modules/@mui/x-date-pickers/node/TimeClock/Clock.js +10 -6
  331. package/node_modules/@mui/x-date-pickers/node/TimeClock/TimeClock.js +21 -4
  332. package/node_modules/@mui/x-date-pickers/node/index.js +1 -1
  333. package/node_modules/@mui/x-date-pickers/node/internals/hooks/useField/useField.js +5 -0
  334. package/node_modules/@mui/x-date-pickers/node/internals/hooks/useField/useFieldV6TextField.js +5 -2
  335. package/node_modules/@mui/x-date-pickers/node/internals/hooks/useField/useFieldV7TextField.js +3 -0
  336. package/node_modules/@mui/x-date-pickers/node/internals/hooks/useStaticPicker/useStaticPicker.js +0 -1
  337. package/node_modules/@mui/x-date-pickers/node/internals/hooks/useUtils.js +1 -1
  338. package/node_modules/@mui/x-date-pickers/node/locales/index.js +11 -0
  339. package/node_modules/@mui/x-date-pickers/node/locales/nbNO.js +15 -19
  340. package/node_modules/@mui/x-date-pickers/node/locales/roRO.js +15 -18
  341. package/node_modules/@mui/x-date-pickers/node/locales/zhTW.js +79 -0
  342. package/node_modules/@mui/x-date-pickers/package.json +3 -3
  343. package/node_modules/@mui/x-internals/CHANGELOG.md +487 -0
  344. package/node_modules/@mui/x-internals/esm/forwardRef/forwardRef.js +15 -0
  345. package/node_modules/@mui/x-internals/esm/forwardRef/index.js +1 -0
  346. package/node_modules/@mui/x-internals/esm/types/RefObject.js +1 -0
  347. package/node_modules/@mui/x-internals/esm/types/index.js +1 -0
  348. package/node_modules/@mui/x-internals/forwardRef/forwardRef.d.ts +4 -0
  349. package/node_modules/@mui/x-internals/forwardRef/forwardRef.js +23 -0
  350. package/node_modules/@mui/x-internals/forwardRef/index.d.ts +1 -0
  351. package/node_modules/@mui/x-internals/forwardRef/index.js +16 -0
  352. package/node_modules/@mui/x-internals/forwardRef/package.json +6 -0
  353. package/node_modules/@mui/x-internals/modern/forwardRef/forwardRef.js +15 -0
  354. package/node_modules/@mui/x-internals/modern/forwardRef/index.js +1 -0
  355. package/node_modules/@mui/x-internals/modern/types/RefObject.js +1 -0
  356. package/node_modules/@mui/x-internals/modern/types/index.js +1 -0
  357. package/node_modules/@mui/x-internals/package.json +1 -1
  358. package/node_modules/@mui/x-internals/types/RefObject.d.ts +8 -0
  359. package/node_modules/@mui/x-internals/types/RefObject.js +5 -0
  360. package/node_modules/@mui/x-internals/types/index.d.ts +1 -0
  361. package/node_modules/@mui/x-internals/types/index.js +16 -0
  362. package/node_modules/@mui/x-internals/types/package.json +6 -0
  363. package/node_modules/@mui/x-internals/useResizeObserver/useResizeObserver.d.ts +1 -1
  364. package/node_modules/@types/prop-types/README.md +1 -1
  365. package/node_modules/@types/prop-types/index.d.ts +21 -4
  366. package/node_modules/@types/prop-types/package.json +4 -3
  367. package/node_modules/@types/react-transition-group/README.md +3 -2
  368. package/node_modules/@types/react-transition-group/package.json +5 -4
  369. package/package.json +4 -4
  370. package/node_modules/@types/react/LICENSE +0 -21
  371. package/node_modules/@types/react/README.md +0 -15
  372. package/node_modules/@types/react/canary.d.ts +0 -166
  373. package/node_modules/@types/react/experimental.d.ts +0 -132
  374. package/node_modules/@types/react/global.d.ts +0 -160
  375. package/node_modules/@types/react/index.d.ts +0 -4543
  376. package/node_modules/@types/react/jsx-dev-runtime.d.ts +0 -45
  377. package/node_modules/@types/react/jsx-runtime.d.ts +0 -36
  378. package/node_modules/@types/react/package.json +0 -206
  379. package/node_modules/@types/react/ts5.0/canary.d.ts +0 -166
  380. package/node_modules/@types/react/ts5.0/experimental.d.ts +0 -132
  381. package/node_modules/@types/react/ts5.0/global.d.ts +0 -160
  382. package/node_modules/@types/react/ts5.0/index.d.ts +0 -4530
  383. package/node_modules/@types/react/ts5.0/jsx-dev-runtime.d.ts +0 -44
  384. package/node_modules/@types/react/ts5.0/jsx-runtime.d.ts +0 -35
  385. package/node_modules/react-is/cjs/react-is.development.js +0 -221
  386. package/node_modules/react-is/cjs/react-is.production.min.js +0 -14
  387. package/node_modules/react-is/umd/react-is.development.js +0 -220
  388. package/node_modules/react-is/umd/react-is.production.min.js +0 -15
@@ -15,6 +15,7 @@ import Backdrop from "../Backdrop/index.js";
15
15
  import { styled, useTheme } from "../zero-styled/index.js";
16
16
  import memoTheme from "../utils/memoTheme.js";
17
17
  import { useDefaultProps } from "../DefaultPropsProvider/index.js";
18
+ import useSlot from "../utils/useSlot.js";
18
19
  import { jsx as _jsx } from "react/jsx-runtime";
19
20
  const DialogBackdrop = styled(Backdrop, {
20
21
  name: 'MuiDialog',
@@ -218,6 +219,8 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
218
219
  PaperComponent = Paper,
219
220
  PaperProps = {},
220
221
  scroll = 'paper',
222
+ slots = {},
223
+ slotProps = {},
221
224
  TransitionComponent = Fade,
222
225
  transitionDuration = defaultTransitionDuration,
223
226
  TransitionProps,
@@ -261,46 +264,89 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
261
264
  titleId: ariaLabelledby
262
265
  };
263
266
  }, [ariaLabelledby]);
264
- return /*#__PURE__*/_jsx(DialogRoot, {
267
+ const backwardCompatibleSlots = {
268
+ transition: TransitionComponent,
269
+ ...slots
270
+ };
271
+ const backwardCompatibleSlotProps = {
272
+ transition: TransitionProps,
273
+ paper: PaperProps,
274
+ backdrop: BackdropProps,
275
+ ...slotProps
276
+ };
277
+ const externalForwardedProps = {
278
+ slots: backwardCompatibleSlots,
279
+ slotProps: backwardCompatibleSlotProps
280
+ };
281
+ const [RootSlot, rootSlotProps] = useSlot('root', {
282
+ elementType: DialogRoot,
283
+ shouldForwardComponentProp: true,
284
+ externalForwardedProps,
285
+ ownerState,
265
286
  className: clsx(classes.root, className),
287
+ ref
288
+ });
289
+ const [BackdropSlot, backdropSlotProps] = useSlot('backdrop', {
290
+ elementType: DialogBackdrop,
291
+ shouldForwardComponentProp: true,
292
+ externalForwardedProps,
293
+ ownerState
294
+ });
295
+ const [PaperSlot, paperSlotProps] = useSlot('paper', {
296
+ elementType: DialogPaper,
297
+ shouldForwardComponentProp: true,
298
+ externalForwardedProps,
299
+ ownerState,
300
+ className: clsx(classes.paper, PaperProps.className)
301
+ });
302
+ const [ContainerSlot, containerSlotProps] = useSlot('container', {
303
+ elementType: DialogContainer,
304
+ externalForwardedProps,
305
+ ownerState,
306
+ className: clsx(classes.container)
307
+ });
308
+ const [TransitionSlot, transitionSlotProps] = useSlot('transition', {
309
+ elementType: Fade,
310
+ externalForwardedProps,
311
+ ownerState,
312
+ additionalProps: {
313
+ appear: true,
314
+ in: open,
315
+ timeout: transitionDuration,
316
+ role: 'presentation'
317
+ }
318
+ });
319
+ return /*#__PURE__*/_jsx(RootSlot, {
266
320
  closeAfterTransition: true,
267
- components: {
268
- Backdrop: DialogBackdrop
321
+ slots: {
322
+ backdrop: BackdropSlot
269
323
  },
270
- componentsProps: {
324
+ slotProps: {
271
325
  backdrop: {
272
326
  transitionDuration,
273
327
  as: BackdropComponent,
274
- ...BackdropProps
328
+ ...backdropSlotProps
275
329
  }
276
330
  },
277
331
  disableEscapeKeyDown: disableEscapeKeyDown,
278
332
  onClose: onClose,
279
333
  open: open,
280
- ref: ref,
281
334
  onClick: handleBackdropClick,
282
- ownerState: ownerState,
335
+ ...rootSlotProps,
283
336
  ...other,
284
- children: /*#__PURE__*/_jsx(TransitionComponent, {
285
- appear: true,
286
- in: open,
287
- timeout: transitionDuration,
288
- role: "presentation",
289
- ...TransitionProps,
290
- children: /*#__PURE__*/_jsx(DialogContainer, {
291
- className: clsx(classes.container),
337
+ children: /*#__PURE__*/_jsx(TransitionSlot, {
338
+ ...transitionSlotProps,
339
+ children: /*#__PURE__*/_jsx(ContainerSlot, {
292
340
  onMouseDown: handleMouseDown,
293
- ownerState: ownerState,
294
- children: /*#__PURE__*/_jsx(DialogPaper, {
341
+ ...containerSlotProps,
342
+ children: /*#__PURE__*/_jsx(PaperSlot, {
295
343
  as: PaperComponent,
296
344
  elevation: 24,
297
345
  role: "dialog",
298
346
  "aria-describedby": ariaDescribedby,
299
347
  "aria-labelledby": ariaLabelledby,
300
348
  "aria-modal": ariaModal,
301
- ...PaperProps,
302
- className: clsx(classes.paper, PaperProps.className),
303
- ownerState: ownerState,
349
+ ...paperSlotProps,
304
350
  children: /*#__PURE__*/_jsx(DialogContext.Provider, {
305
351
  value: dialogContextValue,
306
352
  children: children
@@ -412,6 +458,7 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
412
458
  /**
413
459
  * Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
414
460
  * @default {}
461
+ * @deprecated Use `slotProps.paper` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
415
462
  */
416
463
  PaperProps: PropTypes.object,
417
464
  /**
@@ -419,6 +466,28 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
419
466
  * @default 'paper'
420
467
  */
421
468
  scroll: PropTypes.oneOf(['body', 'paper']),
469
+ /**
470
+ * The props used for each slot inside.
471
+ * @default {}
472
+ */
473
+ slotProps: PropTypes.shape({
474
+ backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
475
+ container: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
476
+ paper: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
477
+ root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
478
+ transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
479
+ }),
480
+ /**
481
+ * The components used for each slot inside.
482
+ * @default {}
483
+ */
484
+ slots: PropTypes.shape({
485
+ backdrop: PropTypes.elementType,
486
+ container: PropTypes.elementType,
487
+ paper: PropTypes.elementType,
488
+ root: PropTypes.elementType,
489
+ transition: PropTypes.elementType
490
+ }),
422
491
  /**
423
492
  * The system prop that allows defining system overrides as well as additional CSS styles.
424
493
  */
@@ -427,6 +496,7 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
427
496
  * The component used for the transition.
428
497
  * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
429
498
  * @default Fade
499
+ * @deprecated Use `slots.transition` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
430
500
  */
431
501
  TransitionComponent: PropTypes.elementType,
432
502
  /**
@@ -445,6 +515,7 @@ process.env.NODE_ENV !== "production" ? Dialog.propTypes /* remove-proptypes */
445
515
  /**
446
516
  * Props applied to the transition element.
447
517
  * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
518
+ * @deprecated Use `slotProps.transition` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
448
519
  */
449
520
  TransitionProps: PropTypes.object
450
521
  } : void 0;
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import * as React from 'react';
2
4
  const DialogContext = /*#__PURE__*/React.createContext({});
3
5
  if (process.env.NODE_ENV !== 'production') {
@@ -29,7 +29,7 @@ const useUtilityClasses = ownerState => {
29
29
  variant
30
30
  } = ownerState;
31
31
  const slots = {
32
- root: ['root'],
32
+ root: ['root', `anchor${capitalize(anchor)}`],
33
33
  docked: [(variant === 'permanent' || variant === 'persistent') && 'docked'],
34
34
  modal: ['modal'],
35
35
  paper: ['paper', `paperAnchor${capitalize(anchor)}`, variant !== 'temporary' && `paperAnchorDocked${capitalize(anchor)}`]
@@ -5,21 +5,45 @@ export interface DrawerClasses {
5
5
  docked: string;
6
6
  /** Styles applied to the Paper component. */
7
7
  paper: string;
8
- /** Styles applied to the Paper component if `anchor="left"`. */
8
+ /** Styles applied to the root element if `anchor="left"`. */
9
+ anchorLeft: string;
10
+ /** Styles applied to the root element if `anchor="right"`. */
11
+ anchorRight: string;
12
+ /** Styles applied to the root element if `anchor="top"`. */
13
+ anchorTop: string;
14
+ /** Styles applied to the root element if `anchor="bottom"`. */
15
+ anchorBottom: string;
16
+ /** Styles applied to the Paper component if `anchor="left"`.
17
+ * @deprecated Combine the [.MuiDrawer-anchorLeft](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorLeft) and [.MuiDrawer-paper](/material-ui/api/drawer/#drawer-classes-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
18
+ */
9
19
  paperAnchorLeft: string;
10
- /** Styles applied to the Paper component if `anchor="right"`. */
20
+ /** Styles applied to the Paper component if `anchor="right"`.
21
+ * @deprecated Combine the [.MuiDrawer-anchorRight](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorRight) and [.MuiDrawer-paper](/material-ui/api/drawer/#drawer-classes-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
22
+ */
11
23
  paperAnchorRight: string;
12
- /** Styles applied to the Paper component if `anchor="top"`. */
24
+ /** Styles applied to the Paper component if `anchor="top"`.
25
+ * @deprecated Combine the [.MuiDrawer-anchorTop](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorTop) and [.MuiDrawer-paper](/material-ui/api/drawer/#drawer-classes-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
26
+ */
13
27
  paperAnchorTop: string;
14
- /** Styles applied to the Paper component if `anchor="bottom"`. */
28
+ /** Styles applied to the Paper component if `anchor="bottom"`.
29
+ * @deprecated Combine the [.MuiDrawer-anchorBottom](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorBottom) and [.MuiDrawer-paper](/material-ui/api/drawer/#drawer-classes-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
30
+ */
15
31
  paperAnchorBottom: string;
16
- /** Styles applied to the Paper component if `anchor="left"` and `variant` is not "temporary". */
32
+ /** Styles applied to the Paper component if `anchor="left"` and `variant` is not "temporary".
33
+ * @deprecated Combine the [.MuiDrawer-anchorLeft](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorLeft), [.MuiDrawer-docked](/material-ui/api/drawer/#drawer-classes-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#drawer-classes-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
34
+ */
17
35
  paperAnchorDockedLeft: string;
18
- /** Styles applied to the Paper component if `anchor="top"` and `variant` is not "temporary". */
36
+ /** Styles applied to the Paper component if `anchor="top"` and `variant` is not "temporary".
37
+ * @deprecated Combine the [.MuiDrawer-anchorTop](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorTop), [.MuiDrawer-docked](/material-ui/api/drawer/#drawer-classes-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#drawer-classes-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
38
+ */
19
39
  paperAnchorDockedTop: string;
20
- /** Styles applied to the Paper component if `anchor="right"` and `variant` is not "temporary". */
40
+ /** Styles applied to the Paper component if `anchor="right"` and `variant` is not "temporary".
41
+ * @deprecated Combine the [.MuiDrawer-anchorRight](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorRight), [.MuiDrawer-docked](/material-ui/api/drawer/#drawer-classes-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#drawer-classes-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
42
+ */
21
43
  paperAnchorDockedRight: string;
22
- /** Styles applied to the Paper component if `anchor="bottom"` and `variant` is not "temporary". */
44
+ /** Styles applied to the Paper component if `anchor="bottom"` and `variant` is not "temporary".
45
+ * @deprecated Combine the [.MuiDrawer-anchorBottom](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorBottom), [.MuiDrawer-docked](/material-ui/api/drawer/#drawer-classes-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#drawer-classes-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
46
+ */
23
47
  paperAnchorDockedBottom: string;
24
48
  /** Styles applied to the Modal component. */
25
49
  modal: string;
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
3
3
  export function getDrawerUtilityClass(slot) {
4
4
  return generateUtilityClass('MuiDrawer', slot);
5
5
  }
6
- const drawerClasses = generateUtilityClasses('MuiDrawer', ['root', 'docked', 'paper', 'paperAnchorLeft', 'paperAnchorRight', 'paperAnchorTop', 'paperAnchorBottom', 'paperAnchorDockedLeft', 'paperAnchorDockedRight', 'paperAnchorDockedTop', 'paperAnchorDockedBottom', 'modal']);
6
+ const drawerClasses = generateUtilityClasses('MuiDrawer', ['root', 'docked', 'paper', 'anchorLeft', 'anchorRight', 'anchorTop', 'anchorBottom', 'paperAnchorLeft', 'paperAnchorRight', 'paperAnchorTop', 'paperAnchorBottom', 'paperAnchorDockedLeft', 'paperAnchorDockedRight', 'paperAnchorDockedTop', 'paperAnchorDockedBottom', 'modal']);
7
7
  export default drawerClasses;
@@ -114,7 +114,10 @@ const Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
114
114
  addEndListener: handleAddEndListener,
115
115
  timeout: timeout,
116
116
  ...other,
117
- children: (state, childProps) => {
117
+ children: (state, {
118
+ ownerState,
119
+ ...restChildProps
120
+ }) => {
118
121
  return /*#__PURE__*/React.cloneElement(children, {
119
122
  style: {
120
123
  opacity: 0,
@@ -124,7 +127,7 @@ const Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
124
127
  ...children.props.style
125
128
  },
126
129
  ref: handleRef,
127
- ...childProps
130
+ ...restChildProps
128
131
  });
129
132
  }
130
133
  });
@@ -512,7 +512,5 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
512
512
  */
513
513
  value: PropTypes.any
514
514
  } : void 0;
515
- if (FilledInput) {
516
- FilledInput.muiName = 'Input';
517
- }
515
+ FilledInput.muiName = 'Input';
518
516
  export default FilledInput;
@@ -26,14 +26,11 @@ const useUtilityClasses = ownerState => {
26
26
  const FormControlRoot = styled('div', {
27
27
  name: 'MuiFormControl',
28
28
  slot: 'Root',
29
- overridesResolver: ({
30
- ownerState
31
- }, styles) => {
32
- return {
33
- ...styles.root,
34
- ...styles[`margin${capitalize(ownerState.margin)}`],
35
- ...(ownerState.fullWidth && styles.fullWidth)
36
- };
29
+ overridesResolver: (props, styles) => {
30
+ const {
31
+ ownerState
32
+ } = props;
33
+ return [styles.root, styles[`margin${capitalize(ownerState.margin)}`], ownerState.fullWidth && styles.fullWidth];
37
34
  }
38
35
  })({
39
36
  display: 'inline-flex',
@@ -182,6 +179,12 @@ const FormControl = /*#__PURE__*/React.forwardRef(function FormControl(inProps,
182
179
  };
183
180
  };
184
181
  }
182
+ const onFilled = React.useCallback(() => {
183
+ setFilled(true);
184
+ }, []);
185
+ const onEmpty = React.useCallback(() => {
186
+ setFilled(false);
187
+ }, []);
185
188
  const childContext = React.useMemo(() => {
186
189
  return {
187
190
  adornedStart,
@@ -197,20 +200,16 @@ const FormControl = /*#__PURE__*/React.forwardRef(function FormControl(inProps,
197
200
  onBlur: () => {
198
201
  setFocused(false);
199
202
  },
200
- onEmpty: () => {
201
- setFilled(false);
202
- },
203
- onFilled: () => {
204
- setFilled(true);
205
- },
206
203
  onFocus: () => {
207
204
  setFocused(true);
208
205
  },
206
+ onEmpty,
207
+ onFilled,
209
208
  registerEffect,
210
209
  required,
211
210
  variant
212
211
  };
213
- }, [adornedStart, color, disabled, error, filled, focused, fullWidth, hiddenLabel, registerEffect, required, size, variant]);
212
+ }, [adornedStart, color, disabled, error, filled, focused, fullWidth, hiddenLabel, registerEffect, onEmpty, onFilled, required, size, variant]);
214
213
  return /*#__PURE__*/_jsx(FormControlContext.Provider, {
215
214
  value: childContext,
216
215
  children: /*#__PURE__*/_jsx(FormControlRoot, {
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import * as React from 'react';
2
4
  /**
3
5
  * @ignore - internal component.
@@ -32,14 +32,11 @@ const useUtilityClasses = ownerState => {
32
32
  export const FormLabelRoot = styled('label', {
33
33
  name: 'MuiFormLabel',
34
34
  slot: 'Root',
35
- overridesResolver: ({
36
- ownerState
37
- }, styles) => {
38
- return {
39
- ...styles.root,
40
- ...(ownerState.color === 'secondary' && styles.colorSecondary),
41
- ...(ownerState.filled && styles.filled)
42
- };
35
+ overridesResolver: (props, styles) => {
36
+ const {
37
+ ownerState
38
+ } = props;
39
+ return [styles.root, ownerState.color === 'secondary' && styles.colorSecondary, ownerState.filled && styles.filled];
43
40
  }
44
41
  })(memoTheme(({
45
42
  theme
@@ -167,7 +167,7 @@ export function generateRowGap({
167
167
  const themeSpacing = theme.spacing(propValue);
168
168
  if (themeSpacing !== '0px') {
169
169
  return {
170
- marginTop: `-${themeSpacing}`,
170
+ marginTop: `calc(-1 * ${themeSpacing})`,
171
171
  [`& > .${gridClasses.item}`]: {
172
172
  paddingTop: themeSpacing
173
173
  }
@@ -212,7 +212,7 @@ export function generateColumnGap({
212
212
  }, columnSpacingValues, (propValue, breakpoint) => {
213
213
  const themeSpacing = theme.spacing(propValue);
214
214
  if (themeSpacing !== '0px') {
215
- const negativeValue = `-${themeSpacing}`;
215
+ const negativeValue = `calc(-1 * ${themeSpacing})`;
216
216
  return {
217
217
  width: `calc(100% + ${themeSpacing})`,
218
218
  marginLeft: negativeValue,
@@ -163,7 +163,10 @@ const Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {
163
163
  addEndListener: handleAddEndListener,
164
164
  timeout: timeout === 'auto' ? null : timeout,
165
165
  ...other,
166
- children: (state, childProps) => {
166
+ children: (state, {
167
+ ownerState,
168
+ ...restChildProps
169
+ }) => {
167
170
  return /*#__PURE__*/React.cloneElement(children, {
168
171
  style: {
169
172
  opacity: 0,
@@ -174,7 +177,7 @@ const Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {
174
177
  ...children.props.style
175
178
  },
176
179
  ref: handleRef,
177
- ...childProps
180
+ ...restChildProps
178
181
  });
179
182
  }
180
183
  });
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import * as React from 'react';
2
4
  import PropTypes from 'prop-types';
3
5
  import getDisplayName from '@mui/utils/getDisplayName';
@@ -181,7 +181,5 @@ process.env.NODE_ENV !== "production" ? Icon.propTypes /* remove-proptypes */ =
181
181
  */
182
182
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
183
183
  } : void 0;
184
- if (Icon) {
185
- Icon.muiName = 'Icon';
186
- }
184
+ Icon.muiName = 'Icon';
187
185
  export default Icon;
@@ -47,6 +47,19 @@ export interface IconButtonOwnProps {
47
47
  * @default false
48
48
  */
49
49
  edge?: 'start' | 'end' | false;
50
+ /**
51
+ * If `true`, the loading indicator is visible and the button is disabled.
52
+ * If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
53
+ * @default null
54
+ */
55
+ loading?: boolean | null;
56
+ /**
57
+ * Element placed before the children if the button is in loading state.
58
+ * The node should contain an element with `role="progressbar"` with an accessible name.
59
+ * By default, it renders a `CircularProgress` that is labeled by the button itself.
60
+ * @default <CircularProgress color="inherit" size={16} />
61
+ */
62
+ loadingIndicator?: React.ReactNode;
50
63
  /**
51
64
  * The size of the component.
52
65
  * `small` is equivalent to the dense button styling.
@@ -5,25 +5,30 @@ import PropTypes from 'prop-types';
5
5
  import clsx from 'clsx';
6
6
  import chainPropTypes from '@mui/utils/chainPropTypes';
7
7
  import composeClasses from '@mui/utils/composeClasses';
8
+ import { unstable_useId as useId } from '@mui/material/utils';
8
9
  import { alpha } from '@mui/system/colorManipulator';
9
10
  import { styled } from "../zero-styled/index.js";
10
11
  import memoTheme from "../utils/memoTheme.js";
11
12
  import createSimplePaletteValueFilter from "../utils/createSimplePaletteValueFilter.js";
12
13
  import { useDefaultProps } from "../DefaultPropsProvider/index.js";
13
14
  import ButtonBase from "../ButtonBase/index.js";
15
+ import CircularProgress from "../CircularProgress/index.js";
14
16
  import capitalize from "../utils/capitalize.js";
15
17
  import iconButtonClasses, { getIconButtonUtilityClass } from "./iconButtonClasses.js";
16
- import { jsx as _jsx } from "react/jsx-runtime";
18
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
19
  const useUtilityClasses = ownerState => {
18
20
  const {
19
21
  classes,
20
22
  disabled,
21
23
  color,
22
24
  edge,
23
- size
25
+ size,
26
+ loading
24
27
  } = ownerState;
25
28
  const slots = {
26
- root: ['root', disabled && 'disabled', color !== 'default' && `color${capitalize(color)}`, edge && `edge${capitalize(edge)}`, `size${capitalize(size)}`]
29
+ root: ['root', loading && 'loading', disabled && 'disabled', color !== 'default' && `color${capitalize(color)}`, edge && `edge${capitalize(edge)}`, `size${capitalize(size)}`],
30
+ loadingIndicator: ['loadingIndicator'],
31
+ loadingWrapper: ['loadingWrapper']
27
32
  };
28
33
  return composeClasses(slots, getIconButtonUtilityClass, classes);
29
34
  };
@@ -34,7 +39,7 @@ const IconButtonRoot = styled(ButtonBase, {
34
39
  const {
35
40
  ownerState
36
41
  } = props;
37
- return [styles.root, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`], ownerState.edge && styles[`edge${capitalize(ownerState.edge)}`], styles[`size${capitalize(ownerState.size)}`]];
42
+ return [styles.root, ownerState.loading && styles.loading, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`], ownerState.edge && styles[`edge${capitalize(ownerState.edge)}`], styles[`size${capitalize(ownerState.size)}`]];
38
43
  }
39
44
  })(memoTheme(({
40
45
  theme
@@ -137,8 +142,34 @@ const IconButtonRoot = styled(ButtonBase, {
137
142
  [`&.${iconButtonClasses.disabled}`]: {
138
143
  backgroundColor: 'transparent',
139
144
  color: (theme.vars || theme).palette.action.disabled
145
+ },
146
+ [`&.${iconButtonClasses.loading}`]: {
147
+ color: 'transparent'
140
148
  }
141
149
  })));
150
+ const IconButtonLoadingIndicator = styled('span', {
151
+ name: 'MuiIconButton',
152
+ slot: 'LoadingIndicator',
153
+ overridesResolver: (props, styles) => styles.loadingIndicator
154
+ })(({
155
+ theme
156
+ }) => ({
157
+ display: 'none',
158
+ position: 'absolute',
159
+ visibility: 'visible',
160
+ top: '50%',
161
+ left: '50%',
162
+ transform: 'translate(-50%, -50%)',
163
+ color: (theme.vars || theme).palette.action.disabled,
164
+ variants: [{
165
+ props: {
166
+ loading: true
167
+ },
168
+ style: {
169
+ display: 'flex'
170
+ }
171
+ }]
172
+ }));
142
173
 
143
174
  /**
144
175
  * Refer to the [Icons](/material-ui/icons/) section of the documentation
@@ -157,26 +188,51 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
157
188
  disabled = false,
158
189
  disableFocusRipple = false,
159
190
  size = 'medium',
191
+ id: idProp,
192
+ loading = null,
193
+ loadingIndicator: loadingIndicatorProp,
160
194
  ...other
161
195
  } = props;
196
+ const id = useId(idProp);
197
+ const loadingIndicator = loadingIndicatorProp ?? /*#__PURE__*/_jsx(CircularProgress, {
198
+ "aria-labelledby": id,
199
+ color: "inherit",
200
+ size: 16
201
+ });
162
202
  const ownerState = {
163
203
  ...props,
164
204
  edge,
165
205
  color,
166
206
  disabled,
167
207
  disableFocusRipple,
208
+ loading,
209
+ loadingIndicator,
168
210
  size
169
211
  };
170
212
  const classes = useUtilityClasses(ownerState);
171
- return /*#__PURE__*/_jsx(IconButtonRoot, {
213
+ return /*#__PURE__*/_jsxs(IconButtonRoot, {
214
+ id: id,
172
215
  className: clsx(classes.root, className),
173
216
  centerRipple: true,
174
217
  focusRipple: !disableFocusRipple,
175
- disabled: disabled,
218
+ disabled: disabled || loading,
176
219
  ref: ref,
177
220
  ...other,
178
221
  ownerState: ownerState,
179
- children: children
222
+ children: [typeof loading === 'boolean' &&
223
+ /*#__PURE__*/
224
+ // use plain HTML span to minimize the runtime overhead
225
+ _jsx("span", {
226
+ className: classes.loadingWrapper,
227
+ style: {
228
+ display: 'contents'
229
+ },
230
+ children: /*#__PURE__*/_jsx(IconButtonLoadingIndicator, {
231
+ className: classes.loadingIndicator,
232
+ ownerState: ownerState,
233
+ children: loading && loadingIndicator
234
+ })
235
+ }), children]
180
236
  });
181
237
  });
182
238
  process.env.NODE_ENV !== "production" ? IconButton.propTypes /* remove-proptypes */ = {
@@ -235,6 +291,23 @@ process.env.NODE_ENV !== "production" ? IconButton.propTypes /* remove-proptypes
235
291
  * @default false
236
292
  */
237
293
  edge: PropTypes.oneOf(['end', 'start', false]),
294
+ /**
295
+ * @ignore
296
+ */
297
+ id: PropTypes.string,
298
+ /**
299
+ * If `true`, the loading indicator is visible and the button is disabled.
300
+ * If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
301
+ * @default null
302
+ */
303
+ loading: PropTypes.bool,
304
+ /**
305
+ * Element placed before the children if the button is in loading state.
306
+ * The node should contain an element with `role="progressbar"` with an accessible name.
307
+ * By default, it renders a `CircularProgress` that is labeled by the button itself.
308
+ * @default <CircularProgress color="inherit" size={16} />
309
+ */
310
+ loadingIndicator: PropTypes.node,
238
311
  /**
239
312
  * The size of the component.
240
313
  * `small` is equivalent to the dense button styling.
@@ -27,6 +27,12 @@ export interface IconButtonClasses {
27
27
  sizeMedium: string;
28
28
  /** Styles applied to the root element if `size="large"`. */
29
29
  sizeLarge: string;
30
+ /** Styles applied to the root element if `loading={true}`. */
31
+ loading: string;
32
+ /** Styles applied to the loadingIndicator element. */
33
+ loadingIndicator: string;
34
+ /** Styles applied to the loadingWrapper element. */
35
+ loadingWrapper: string;
30
36
  }
31
37
  export type IconButtonClassKey = keyof IconButtonClasses;
32
38
  export declare function getIconButtonUtilityClass(slot: string): string;
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
3
3
  export function getIconButtonUtilityClass(slot) {
4
4
  return generateUtilityClass('MuiIconButton', slot);
5
5
  }
6
- const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
6
+ const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge', 'loading', 'loadingIndicator', 'loadingWrapper']);
7
7
  export default iconButtonClasses;
@@ -357,7 +357,5 @@ process.env.NODE_ENV !== "production" ? Input.propTypes /* remove-proptypes */ =
357
357
  */
358
358
  value: PropTypes.any
359
359
  } : void 0;
360
- if (Input) {
361
- Input.muiName = 'Input';
362
- }
360
+ Input.muiName = 'Input';
363
361
  export default Input;