@cgi-learning-hub/ui 1.9.0 → 1.10.0

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 (508) hide show
  1. package/dist/index.cjs.js +63417 -1
  2. package/dist/index.d.ts +773 -1
  3. package/dist/index.es.js +63394 -417
  4. package/dist/ui.css +151 -0
  5. package/package.json +26 -24
  6. package/dist/Alert-BH_3hKCB.cjs +0 -1
  7. package/dist/Alert-BeVYzSS-.js +0 -94
  8. package/dist/Alert-BoYBWOXe.cjs +0 -1
  9. package/dist/Alert-CEu3llDi.js +0 -369
  10. package/dist/Autocomplete-BKpavKFW.cjs +0 -6
  11. package/dist/Autocomplete-DBZYn4YL.js +0 -1881
  12. package/dist/Backdrop-BvL371G3.js +0 -360
  13. package/dist/Backdrop-qOBrabpf.cjs +0 -1
  14. package/dist/Badge-2Kgbx-Cs.js +0 -466
  15. package/dist/Badge-DXl0Da36.cjs +0 -1
  16. package/dist/Box-BaZ7KlAc.js +0 -59
  17. package/dist/Box-CYQlQqRB.cjs +0 -1
  18. package/dist/Button-BP-QmmUu.cjs +0 -1
  19. package/dist/Button-C1mKNW-c.js +0 -698
  20. package/dist/ButtonBase-C2jRC_V7.js +0 -883
  21. package/dist/ButtonBase-DSJojbNE.cjs +0 -74
  22. package/dist/CardContent-DVcUynuH.cjs +0 -1
  23. package/dist/CardContent-kIapWv4T.js +0 -225
  24. package/dist/Checkbox-DhhuvKO5.cjs +0 -1
  25. package/dist/Checkbox-RxHWtafR.js +0 -271
  26. package/dist/Chip-DgGmi9yn.js +0 -574
  27. package/dist/Chip-n1kY-Dsh.cjs +0 -1
  28. package/dist/CircularProgress-BOm4zz7e.cjs +0 -28
  29. package/dist/CircularProgress-CLq0Rl-1.js +0 -253
  30. package/dist/Close-DR9m6hv3.cjs +0 -1
  31. package/dist/Close-vu-MZYNA.js +0 -9
  32. package/dist/CloseRounded-Cpp6nWQi.cjs +0 -1
  33. package/dist/CloseRounded-DF05lCUu.js +0 -8
  34. package/dist/CustomTreeItem-AecanDDg.js +0 -2046
  35. package/dist/CustomTreeItem-BBMp0k4i.cjs +0 -41
  36. package/dist/DatePicker-Cd-Aj-F8.js +0 -10758
  37. package/dist/DatePicker-Dj7U52Mk.cjs +0 -16
  38. package/dist/DefaultPropsProvider-BrmlvPWg.js +0 -312
  39. package/dist/DefaultPropsProvider-C1g4BXET.cjs +0 -1
  40. package/dist/Delete-C36W48MB.cjs +0 -1
  41. package/dist/Delete-DXUljXzP.js +0 -8
  42. package/dist/Dialog-C2HYr67H.cjs +0 -1
  43. package/dist/Dialog-D__8rwpw.js +0 -469
  44. package/dist/DialogContent-MPwmUJQp.js +0 -195
  45. package/dist/DialogContent-lup2v_ab.cjs +0 -1
  46. package/dist/DialogTitle-B8jOk7ZE.cjs +0 -1
  47. package/dist/DialogTitle-Dly5D3Ud.js +0 -134
  48. package/dist/Divider-BN12gMv9.js +0 -297
  49. package/dist/Divider-wisA5Qp_.cjs +0 -1
  50. package/dist/Folder-BSZMyA2L.js +0 -8
  51. package/dist/Folder-aAI_w_uF.cjs +0 -1
  52. package/dist/FormLabel-ByYWZh7M.cjs +0 -2
  53. package/dist/FormLabel-DtxJI2CU.js +0 -408
  54. package/dist/Grid-C0LY-MbT.js +0 -419
  55. package/dist/Grid-CPXE25PR.cjs +0 -2
  56. package/dist/Grow-6zwoqUfO.cjs +0 -1
  57. package/dist/Grow-CeGwnQpw.js +0 -197
  58. package/dist/IconButton-BTN16gZi.cjs +0 -2
  59. package/dist/IconButton-DBjiNqOa.js +0 -299
  60. package/dist/InputAdornment-C1r1YutO.cjs +0 -1
  61. package/dist/InputAdornment-DuR35FtU.js +0 -173
  62. package/dist/InputBase-CxknnWV4.cjs +0 -4
  63. package/dist/InputBase-D5UJOJBu.js +0 -797
  64. package/dist/Link-T11NCxGd.cjs +0 -1
  65. package/dist/Link-hWCqsQiI.js +0 -281
  66. package/dist/List-CmJ1jCss.js +0 -131
  67. package/dist/List-eQ4D0MvJ.cjs +0 -1
  68. package/dist/ListItem-CgWgbZ_g.cjs +0 -1
  69. package/dist/ListItem-onoPfwb4.js +0 -423
  70. package/dist/ListItemText-B-dySXgz.cjs +0 -1
  71. package/dist/ListItemText-BjhXxIIV.js +0 -441
  72. package/dist/Menu-D7B383z4.cjs +0 -7
  73. package/dist/Menu-DGvAkF5F.js +0 -911
  74. package/dist/MenuItem-Cusmy5t2.js +0 -268
  75. package/dist/MenuItem-D-4xzo-S.cjs +0 -1
  76. package/dist/Modal-DB9K8sJI.cjs +0 -2
  77. package/dist/Modal-DtjScKxh.js +0 -744
  78. package/dist/MoreVert-BwfUF9pO.cjs +0 -1
  79. package/dist/MoreVert-woCQ0dNf.js +0 -8
  80. package/dist/Paper-CZXfHfN_.js +0 -158
  81. package/dist/Paper-DcVuAxq3.cjs +0 -2
  82. package/dist/Popper-BwuGO_Si.js +0 -1407
  83. package/dist/Popper-D5Cs38W_.cjs +0 -4
  84. package/dist/Portal-Cmv45gpL.cjs +0 -1
  85. package/dist/Portal-PkRJuFYN.js +0 -85
  86. package/dist/Radio-DiyDpiVL.js +0 -617
  87. package/dist/Radio-DzKwkI68.cjs +0 -1
  88. package/dist/RadioGroup-BlkHQVRF.cjs +0 -1
  89. package/dist/RadioGroup-CjUaFqjJ.js +0 -191
  90. package/dist/Select-BxH16ruJ.js +0 -2648
  91. package/dist/Select-CSQfbogA.cjs +0 -3
  92. package/dist/Stack-ChvZzNqc.cjs +0 -1
  93. package/dist/Stack-pMJEpL7k.js +0 -173
  94. package/dist/Stepper-BsfN7O-W.cjs +0 -1
  95. package/dist/Stepper-DyH4sgY5.js +0 -966
  96. package/dist/Switch-BgZUmsKc.js +0 -392
  97. package/dist/Switch-Dr2jgPGV.cjs +0 -1
  98. package/dist/SwitchBase-BP_I-APE.cjs +0 -1
  99. package/dist/SwitchBase-BWz31Ed6.js +0 -319
  100. package/dist/Tab-Bksf_S4K.js +0 -1454
  101. package/dist/Tab-D2mI5G0L.cjs +0 -4
  102. package/dist/TextField-C9AnzUpZ.cjs +0 -1
  103. package/dist/TextField-Ctx4aW6-.js +0 -560
  104. package/dist/ToggleButtonGroup-CBw2I124.cjs +0 -138
  105. package/dist/ToggleButtonGroup-DtjRqNbI.js +0 -9091
  106. package/dist/Tooltip-C5AffX17.js +0 -722
  107. package/dist/Tooltip-CUm8vKGq.cjs +0 -4
  108. package/dist/TransitionGroupContext-DbLioz_6.js +0 -24
  109. package/dist/TransitionGroupContext-Zt4NoR0u.cjs +0 -1
  110. package/dist/Typography-Cr-aIusw.js +0 -261
  111. package/dist/Typography-DHjq4GzQ.cjs +0 -1
  112. package/dist/assets/Loader.css +0 -1
  113. package/dist/assets/LoaderBackdrop.css +0 -1
  114. package/dist/capitalize-3OjkeP9i.cjs +0 -1
  115. package/dist/capitalize-BHEX83JQ.js +0 -9
  116. package/dist/chainPropTypes-CEUi6Jb4.cjs +0 -1
  117. package/dist/chainPropTypes-D9lkm76m.js +0 -8
  118. package/dist/client-error-CHkavqXs.cjs +0 -1
  119. package/dist/client-error-D0Ng5oOn.js +0 -393
  120. package/dist/components/ActionBar/ActionBar.cjs.js +0 -1
  121. package/dist/components/ActionBar/ActionBar.d.ts +0 -3
  122. package/dist/components/ActionBar/ActionBar.es.js +0 -63
  123. package/dist/components/ActionBar/index.cjs.js +0 -1
  124. package/dist/components/ActionBar/index.d.ts +0 -2
  125. package/dist/components/ActionBar/index.es.js +0 -4
  126. package/dist/components/ActionBar/style.cjs.js +0 -1
  127. package/dist/components/ActionBar/style.es.js +0 -61
  128. package/dist/components/ActionBar/types.cjs.js +0 -1
  129. package/dist/components/ActionBar/types.d.ts +0 -17
  130. package/dist/components/ActionBar/types.es.js +0 -1
  131. package/dist/components/Alert/Alert.cjs.js +0 -1
  132. package/dist/components/Alert/Alert.d.ts +0 -6
  133. package/dist/components/Alert/Alert.es.js +0 -8
  134. package/dist/components/Alert/index.cjs.js +0 -1
  135. package/dist/components/Alert/index.d.ts +0 -2
  136. package/dist/components/Alert/index.es.js +0 -4
  137. package/dist/components/Button/Button.cjs.js +0 -1
  138. package/dist/components/Button/Button.d.ts +0 -3
  139. package/dist/components/Button/Button.es.js +0 -44
  140. package/dist/components/Button/index.cjs.js +0 -1
  141. package/dist/components/Button/index.d.ts +0 -2
  142. package/dist/components/Button/index.es.js +0 -4
  143. package/dist/components/ButtonGroup/ButtonGroup.cjs.js +0 -1
  144. package/dist/components/ButtonGroup/ButtonGroup.d.ts +0 -3
  145. package/dist/components/ButtonGroup/ButtonGroup.es.js +0 -38
  146. package/dist/components/ButtonGroup/index.cjs.js +0 -1
  147. package/dist/components/ButtonGroup/index.d.ts +0 -2
  148. package/dist/components/ButtonGroup/index.es.js +0 -4
  149. package/dist/components/ButtonGroup/style.cjs.js +0 -1
  150. package/dist/components/ButtonGroup/style.es.js +0 -29
  151. package/dist/components/ButtonGroup/types.cjs.js +0 -1
  152. package/dist/components/ButtonGroup/types.d.ts +0 -22
  153. package/dist/components/ButtonGroup/types.es.js +0 -1
  154. package/dist/components/ColorPicker/ColorPicker.cjs.js +0 -27
  155. package/dist/components/ColorPicker/ColorPicker.d.ts +0 -4
  156. package/dist/components/ColorPicker/ColorPicker.es.js +0 -7960
  157. package/dist/components/ColorPicker/ColorPickerIcon.cjs.js +0 -1
  158. package/dist/components/ColorPicker/ColorPickerIcon.d.ts +0 -5
  159. package/dist/components/ColorPicker/ColorPickerIcon.es.js +0 -58
  160. package/dist/components/ColorPicker/index.cjs.js +0 -1
  161. package/dist/components/ColorPicker/index.d.ts +0 -3
  162. package/dist/components/ColorPicker/index.es.js +0 -4
  163. package/dist/components/ColorPicker/styles.cjs.js +0 -1
  164. package/dist/components/ColorPicker/styles.es.js +0 -28
  165. package/dist/components/ColorPicker/types.cjs.js +0 -1
  166. package/dist/components/ColorPicker/types.d.ts +0 -19
  167. package/dist/components/ColorPicker/types.es.js +0 -1
  168. package/dist/components/DatePicker/DatePicker.cjs.js +0 -1
  169. package/dist/components/DatePicker/DatePicker.d.ts +0 -6
  170. package/dist/components/DatePicker/DatePicker.es.js +0 -5
  171. package/dist/components/DatePicker/index.cjs.js +0 -1
  172. package/dist/components/DatePicker/index.d.ts +0 -2
  173. package/dist/components/DatePicker/index.es.js +0 -4
  174. package/dist/components/Dialog/Dialog.cjs.js +0 -1
  175. package/dist/components/Dialog/Dialog.d.ts +0 -6
  176. package/dist/components/Dialog/Dialog.es.js +0 -31
  177. package/dist/components/Dialog/index.cjs.js +0 -1
  178. package/dist/components/Dialog/index.d.ts +0 -2
  179. package/dist/components/Dialog/index.es.js +0 -4
  180. package/dist/components/Dropzone/Dropzone.cjs.js +0 -1
  181. package/dist/components/Dropzone/Dropzone.d.ts +0 -12
  182. package/dist/components/Dropzone/Dropzone.es.js +0 -55
  183. package/dist/components/Dropzone/index.cjs.js +0 -1
  184. package/dist/components/Dropzone/index.d.ts +0 -2
  185. package/dist/components/Dropzone/index.es.js +0 -4
  186. package/dist/components/Dropzone/types.cjs.js +0 -1
  187. package/dist/components/Dropzone/types.d.ts +0 -8
  188. package/dist/components/Dropzone/types.es.js +0 -1
  189. package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +0 -1
  190. package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts +0 -9
  191. package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +0 -45
  192. package/dist/components/EllipsisWithTooltip/index.cjs.js +0 -1
  193. package/dist/components/EllipsisWithTooltip/index.d.ts +0 -2
  194. package/dist/components/EllipsisWithTooltip/index.es.js +0 -4
  195. package/dist/components/EmptyState/EmptyState.cjs.js +0 -1
  196. package/dist/components/EmptyState/EmptyState.d.ts +0 -22
  197. package/dist/components/EmptyState/EmptyState.es.js +0 -34
  198. package/dist/components/EmptyState/index.cjs.js +0 -1
  199. package/dist/components/EmptyState/index.d.ts +0 -2
  200. package/dist/components/EmptyState/index.es.js +0 -4
  201. package/dist/components/FileList/FileIcon.cjs.js +0 -1
  202. package/dist/components/FileList/FileIcon.d.ts +0 -3
  203. package/dist/components/FileList/FileIcon.es.js +0 -56
  204. package/dist/components/FileList/FileInfosSeparator.cjs.js +0 -1
  205. package/dist/components/FileList/FileInfosSeparator.d.ts +0 -1
  206. package/dist/components/FileList/FileInfosSeparator.es.js +0 -14
  207. package/dist/components/FileList/FileList.cjs.js +0 -1
  208. package/dist/components/FileList/FileList.d.ts +0 -9
  209. package/dist/components/FileList/FileList.es.js +0 -24
  210. package/dist/components/FileList/FileListItem.cjs.js +0 -1
  211. package/dist/components/FileList/FileListItem.d.ts +0 -16
  212. package/dist/components/FileList/FileListItem.es.js +0 -122
  213. package/dist/components/FileList/index.cjs.js +0 -1
  214. package/dist/components/FileList/index.d.ts +0 -4
  215. package/dist/components/FileList/index.es.js +0 -6
  216. package/dist/components/FileList/utils.cjs.js +0 -1
  217. package/dist/components/FileList/utils.d.ts +0 -2
  218. package/dist/components/FileList/utils.es.js +0 -13
  219. package/dist/components/FolderCard/FolderCard.cjs.js +0 -1
  220. package/dist/components/FolderCard/FolderCard.d.ts +0 -12
  221. package/dist/components/FolderCard/FolderCard.es.js +0 -88
  222. package/dist/components/FolderCard/index.cjs.js +0 -1
  223. package/dist/components/FolderCard/index.d.ts +0 -2
  224. package/dist/components/FolderCard/index.es.js +0 -4
  225. package/dist/components/FolderCard/styles.cjs.js +0 -1
  226. package/dist/components/FolderCard/styles.d.ts +0 -24
  227. package/dist/components/FolderCard/styles.es.js +0 -27
  228. package/dist/components/FolderCard/types.cjs.js +0 -1
  229. package/dist/components/FolderCard/types.d.ts +0 -3
  230. package/dist/components/FolderCard/types.es.js +0 -14
  231. package/dist/components/Heading/Heading.cjs.js +0 -1
  232. package/dist/components/Heading/Heading.d.ts +0 -14
  233. package/dist/components/Heading/Heading.es.js +0 -39
  234. package/dist/components/Heading/index.cjs.js +0 -1
  235. package/dist/components/Heading/index.d.ts +0 -2
  236. package/dist/components/Heading/index.es.js +0 -4
  237. package/dist/components/ImagePicker/ImagePicker.cjs.js +0 -1
  238. package/dist/components/ImagePicker/ImagePicker.d.ts +0 -13
  239. package/dist/components/ImagePicker/ImagePicker.es.js +0 -203
  240. package/dist/components/ImagePicker/index.cjs.js +0 -1
  241. package/dist/components/ImagePicker/index.d.ts +0 -2
  242. package/dist/components/ImagePicker/index.es.js +0 -4
  243. package/dist/components/Loader/Loader.cjs.js +0 -1
  244. package/dist/components/Loader/Loader.d.ts +0 -3
  245. package/dist/components/Loader/Loader.es.js +0 -11
  246. package/dist/components/Loader/index.cjs.js +0 -1
  247. package/dist/components/Loader/index.d.ts +0 -2
  248. package/dist/components/Loader/index.es.js +0 -4
  249. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +0 -1
  250. package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +0 -3
  251. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +0 -12
  252. package/dist/components/LoaderBackdrop/index.cjs.js +0 -1
  253. package/dist/components/LoaderBackdrop/index.d.ts +0 -2
  254. package/dist/components/LoaderBackdrop/index.es.js +0 -4
  255. package/dist/components/PasswordInput/PasswordInput.cjs.js +0 -1
  256. package/dist/components/PasswordInput/PasswordInput.d.ts +0 -5
  257. package/dist/components/PasswordInput/PasswordInput.es.js +0 -39
  258. package/dist/components/PasswordInput/index.cjs.js +0 -1
  259. package/dist/components/PasswordInput/index.d.ts +0 -2
  260. package/dist/components/PasswordInput/index.es.js +0 -4
  261. package/dist/components/QueryError/QueryError.cjs.js +0 -1
  262. package/dist/components/QueryError/QueryError.d.ts +0 -8
  263. package/dist/components/QueryError/QueryError.es.js +0 -46
  264. package/dist/components/QueryError/helpers.cjs.js +0 -1
  265. package/dist/components/QueryError/helpers.d.ts +0 -11
  266. package/dist/components/QueryError/helpers.es.js +0 -10
  267. package/dist/components/QueryError/index.cjs.js +0 -1
  268. package/dist/components/QueryError/index.d.ts +0 -2
  269. package/dist/components/QueryError/index.es.js +0 -4
  270. package/dist/components/ResourceCard/ResourceCard.cjs.js +0 -1
  271. package/dist/components/ResourceCard/ResourceCard.d.ts +0 -25
  272. package/dist/components/ResourceCard/ResourceCard.es.js +0 -128
  273. package/dist/components/ResourceCard/index.cjs.js +0 -1
  274. package/dist/components/ResourceCard/index.d.ts +0 -2
  275. package/dist/components/ResourceCard/index.es.js +0 -4
  276. package/dist/components/ResourceCard/style.cjs.js +0 -1
  277. package/dist/components/ResourceCard/style.es.js +0 -130
  278. package/dist/components/SearchInput/SearchInput.cjs.js +0 -1
  279. package/dist/components/SearchInput/SearchInput.d.ts +0 -4
  280. package/dist/components/SearchInput/SearchInput.es.js +0 -38
  281. package/dist/components/SearchInput/index.cjs.js +0 -1
  282. package/dist/components/SearchInput/index.d.ts +0 -2
  283. package/dist/components/SearchInput/index.es.js +0 -4
  284. package/dist/components/TreeView/TreeView.cjs.js +0 -5
  285. package/dist/components/TreeView/TreeView.d.ts +0 -4
  286. package/dist/components/TreeView/TreeView.es.js +0 -1663
  287. package/dist/components/TreeView/components/CustomTreeItem.cjs.js +0 -1
  288. package/dist/components/TreeView/components/CustomTreeItem.d.ts +0 -6
  289. package/dist/components/TreeView/components/CustomTreeItem.es.js +0 -9
  290. package/dist/components/TreeView/index.cjs.js +0 -1
  291. package/dist/components/TreeView/index.d.ts +0 -2
  292. package/dist/components/TreeView/index.es.js +0 -6
  293. package/dist/components/TreeView/style.cjs.js +0 -1
  294. package/dist/components/TreeView/style.es.js +0 -35
  295. package/dist/components/TreeView/types.cjs.js +0 -1
  296. package/dist/components/TreeView/types.d.ts +0 -45
  297. package/dist/components/TreeView/types.es.js +0 -4
  298. package/dist/components/TreeView/utils.cjs.js +0 -1
  299. package/dist/components/TreeView/utils.d.ts +0 -6
  300. package/dist/components/TreeView/utils.es.js +0 -50
  301. package/dist/components/index.cjs.js +0 -1
  302. package/dist/components/index.d.ts +0 -197
  303. package/dist/components/index.es.js +0 -419
  304. package/dist/components/stories/ActionBar.stories.cjs.js +0 -1
  305. package/dist/components/stories/ActionBar.stories.d.ts +0 -11
  306. package/dist/components/stories/ActionBar.stories.es.js +0 -206
  307. package/dist/components/stories/Alert.stories.cjs.js +0 -1
  308. package/dist/components/stories/Alert.stories.d.ts +0 -9
  309. package/dist/components/stories/Alert.stories.es.js +0 -32
  310. package/dist/components/stories/Autocomplete.stories.cjs.js +0 -3
  311. package/dist/components/stories/Autocomplete.stories.d.ts +0 -6
  312. package/dist/components/stories/Autocomplete.stories.es.js +0 -62
  313. package/dist/components/stories/Badge.stories.cjs.js +0 -1
  314. package/dist/components/stories/Badge.stories.d.ts +0 -17
  315. package/dist/components/stories/Badge.stories.es.js +0 -188
  316. package/dist/components/stories/Button.stories.cjs.js +0 -1
  317. package/dist/components/stories/Button.stories.d.ts +0 -8
  318. package/dist/components/stories/Button.stories.es.js +0 -61
  319. package/dist/components/stories/ButtonGroup.stories.cjs.js +0 -153
  320. package/dist/components/stories/ButtonGroup.stories.d.ts +0 -17
  321. package/dist/components/stories/ButtonGroup.stories.es.js +0 -1296
  322. package/dist/components/stories/Card.stories.cjs.js +0 -1
  323. package/dist/components/stories/Card.stories.d.ts +0 -7
  324. package/dist/components/stories/Card.stories.es.js +0 -42
  325. package/dist/components/stories/Checkbox.stories.cjs.js +0 -1
  326. package/dist/components/stories/Checkbox.stories.d.ts +0 -10
  327. package/dist/components/stories/Checkbox.stories.es.js +0 -57
  328. package/dist/components/stories/Chip.stories.cjs.js +0 -1
  329. package/dist/components/stories/Chip.stories.d.ts +0 -10
  330. package/dist/components/stories/Chip.stories.es.js +0 -77
  331. package/dist/components/stories/ColoPicker.stories.cjs.js +0 -1
  332. package/dist/components/stories/ColoPicker.stories.d.ts +0 -6
  333. package/dist/components/stories/ColoPicker.stories.es.js +0 -23
  334. package/dist/components/stories/DatePicker.stories.cjs.js +0 -1
  335. package/dist/components/stories/DatePicker.stories.d.ts +0 -6
  336. package/dist/components/stories/DatePicker.stories.es.js +0 -13
  337. package/dist/components/stories/Dialog.stories.cjs.js +0 -1
  338. package/dist/components/stories/Dialog.stories.d.ts +0 -7
  339. package/dist/components/stories/Dialog.stories.es.js +0 -65
  340. package/dist/components/stories/Divider.stories.cjs.js +0 -1
  341. package/dist/components/stories/Divider.stories.d.ts +0 -6
  342. package/dist/components/stories/Divider.stories.es.js +0 -41
  343. package/dist/components/stories/Dropzone.stories.cjs.js +0 -1
  344. package/dist/components/stories/Dropzone.stories.d.ts +0 -6
  345. package/dist/components/stories/Dropzone.stories.es.js +0 -14
  346. package/dist/components/stories/EllipsisWithTooltip.stories.cjs.js +0 -1
  347. package/dist/components/stories/EllipsisWithTooltip.stories.d.ts +0 -6
  348. package/dist/components/stories/EllipsisWithTooltip.stories.es.js +0 -36
  349. package/dist/components/stories/EmptyState.stories.cjs.js +0 -1
  350. package/dist/components/stories/EmptyState.stories.d.ts +0 -6
  351. package/dist/components/stories/EmptyState.stories.es.js +0 -30
  352. package/dist/components/stories/FileList.stories.cjs.js +0 -8
  353. package/dist/components/stories/FileList.stories.d.ts +0 -6
  354. package/dist/components/stories/FileList.stories.es.js +0 -150
  355. package/dist/components/stories/FolderCard.stories.cjs.js +0 -1
  356. package/dist/components/stories/FolderCard.stories.d.ts +0 -7
  357. package/dist/components/stories/FolderCard.stories.es.js +0 -71
  358. package/dist/components/stories/FormControlLabel.stories.cjs.js +0 -1
  359. package/dist/components/stories/FormControlLabel.stories.d.ts +0 -9
  360. package/dist/components/stories/FormControlLabel.stories.es.js +0 -55
  361. package/dist/components/stories/Heading.stories.cjs.js +0 -1
  362. package/dist/components/stories/Heading.stories.d.ts +0 -6
  363. package/dist/components/stories/Heading.stories.es.js +0 -20
  364. package/dist/components/stories/IconButton.stories.cjs.js +0 -1
  365. package/dist/components/stories/IconButton.stories.d.ts +0 -6
  366. package/dist/components/stories/IconButton.stories.es.js +0 -55
  367. package/dist/components/stories/ImagePicker.stories.cjs.js +0 -1
  368. package/dist/components/stories/ImagePicker.stories.d.ts +0 -6
  369. package/dist/components/stories/ImagePicker.stories.es.js +0 -57
  370. package/dist/components/stories/Link.stories.cjs.js +0 -1
  371. package/dist/components/stories/Link.stories.d.ts +0 -7
  372. package/dist/components/stories/Link.stories.es.js +0 -43
  373. package/dist/components/stories/Loader.stories.cjs.js +0 -1
  374. package/dist/components/stories/Loader.stories.d.ts +0 -6
  375. package/dist/components/stories/Loader.stories.es.js +0 -11
  376. package/dist/components/stories/LoaderBackdrop.stories.cjs.js +0 -1
  377. package/dist/components/stories/LoaderBackdrop.stories.d.ts +0 -6
  378. package/dist/components/stories/LoaderBackdrop.stories.es.js +0 -11
  379. package/dist/components/stories/Menu.stories.cjs.js +0 -1
  380. package/dist/components/stories/Menu.stories.d.ts +0 -7
  381. package/dist/components/stories/Menu.stories.es.js +0 -51
  382. package/dist/components/stories/Paper.stories.cjs.js +0 -1
  383. package/dist/components/stories/Paper.stories.d.ts +0 -7
  384. package/dist/components/stories/Paper.stories.es.js +0 -28
  385. package/dist/components/stories/PasswordInput.stories.cjs.js +0 -1
  386. package/dist/components/stories/PasswordInput.stories.d.ts +0 -6
  387. package/dist/components/stories/PasswordInput.stories.es.js +0 -13
  388. package/dist/components/stories/RadioGroup.stories.cjs.js +0 -1
  389. package/dist/components/stories/RadioGroup.stories.d.ts +0 -8
  390. package/dist/components/stories/RadioGroup.stories.es.js +0 -37
  391. package/dist/components/stories/ResourceCard.stories.cjs.js +0 -1
  392. package/dist/components/stories/ResourceCard.stories.d.ts +0 -9
  393. package/dist/components/stories/ResourceCard.stories.es.js +0 -141
  394. package/dist/components/stories/SearchInput.stories.cjs.js +0 -1
  395. package/dist/components/stories/SearchInput.stories.d.ts +0 -6
  396. package/dist/components/stories/SearchInput.stories.es.js +0 -13
  397. package/dist/components/stories/Select.stories.cjs.js +0 -1
  398. package/dist/components/stories/Select.stories.d.ts +0 -10
  399. package/dist/components/stories/Select.stories.es.js +0 -52
  400. package/dist/components/stories/Stepper.stories.cjs.js +0 -1
  401. package/dist/components/stories/Stepper.stories.d.ts +0 -7
  402. package/dist/components/stories/Stepper.stories.es.js +0 -161
  403. package/dist/components/stories/TabList.stories.cjs.js +0 -1
  404. package/dist/components/stories/TabList.stories.d.ts +0 -7
  405. package/dist/components/stories/TabList.stories.es.js +0 -73
  406. package/dist/components/stories/TextField.stories.cjs.js +0 -1
  407. package/dist/components/stories/TextField.stories.d.ts +0 -10
  408. package/dist/components/stories/TextField.stories.es.js +0 -69
  409. package/dist/components/stories/Tooltip.stories.cjs.js +0 -1
  410. package/dist/components/stories/Tooltip.stories.d.ts +0 -7
  411. package/dist/components/stories/Tooltip.stories.es.js +0 -46
  412. package/dist/components/stories/TreeView.stories.cjs.js +0 -69
  413. package/dist/components/stories/TreeView.stories.d.ts +0 -15
  414. package/dist/components/stories/TreeView.stories.es.js +0 -1036
  415. package/dist/components/stories/Typography.stories.cjs.js +0 -1
  416. package/dist/components/stories/Typography.stories.d.ts +0 -6
  417. package/dist/components/stories/Typography.stories.es.js +0 -65
  418. package/dist/composeClasses-BskurlZX.js +0 -51
  419. package/dist/composeClasses-vN5Almps.cjs +0 -1
  420. package/dist/createChainedFunction-C0nujS3O.js +0 -9
  421. package/dist/createChainedFunction-CJmlQuW8.cjs +0 -1
  422. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
  423. package/dist/createSimplePaletteValueFilter-PTK3TAhW.cjs +0 -1
  424. package/dist/createSvgIcon-CcWpa9Le.cjs +0 -1
  425. package/dist/createSvgIcon-DFIM5PqN.js +0 -254
  426. package/dist/debounce-46wSf_lW.js +0 -15
  427. package/dist/debounce-DpCj7ugL.cjs +0 -1
  428. package/dist/dividerClasses-BEzQ_reA.js +0 -9
  429. package/dist/dividerClasses-BpVbhp8e.cjs +0 -1
  430. package/dist/elementAcceptingRef-CZLfau9O.js +0 -31
  431. package/dist/elementAcceptingRef-CuMilXz3.cjs +0 -1
  432. package/dist/elementTypeAcceptingRef-vRb2iI4O.js +0 -23
  433. package/dist/elementTypeAcceptingRef-vjR5jGLx.cjs +0 -1
  434. package/dist/error-CRNeivL7.js +0 -5
  435. package/dist/error-Dk3o6ber.cjs +0 -1
  436. package/dist/extendSxProp-DGsHTtAe.js +0 -37
  437. package/dist/extendSxProp-Dwd9vpYv.cjs +0 -1
  438. package/dist/formControlState-CuX6WjAX.cjs +0 -1
  439. package/dist/formControlState-vgaj2ksH.js +0 -10
  440. package/dist/generateUtilityClasses-B_xKAflz.js +0 -2703
  441. package/dist/generateUtilityClasses-CENS22bI.cjs +0 -55
  442. package/dist/hooks/lazySvgImport.cjs.js +0 -1
  443. package/dist/hooks/lazySvgImport.d.ts +0 -6
  444. package/dist/hooks/lazySvgImport.es.js +0 -34
  445. package/dist/index-B9vkf41S.js +0 -672
  446. package/dist/index-BPpGXp0s.cjs +0 -1
  447. package/dist/index-BS46Ff4t.cjs +0 -5
  448. package/dist/index-Ba4TEBpP.js +0 -22
  449. package/dist/index-CJMnfcQs.js +0 -2152
  450. package/dist/index-CwHv-blH.js +0 -97
  451. package/dist/index-D_kvDIOz.cjs +0 -1
  452. package/dist/index-kjfz41UI.cjs +0 -20
  453. package/dist/integerPropType-BihGt2aU.js +0 -31
  454. package/dist/integerPropType-CR7ytEJG.cjs +0 -1
  455. package/dist/isFocusVisible-CPZqtjv2.js +0 -12
  456. package/dist/isFocusVisible-DlSijby6.cjs +0 -2
  457. package/dist/isHostComponent-PydJW4A4.cjs +0 -1
  458. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  459. package/dist/isMuiElement-BzDAj3yJ.cjs +0 -1
  460. package/dist/isMuiElement-DnSE4qG4.js +0 -13
  461. package/dist/listItemTextClasses-CEbo8A-K.js +0 -9
  462. package/dist/listItemTextClasses-wcJANWC3.cjs +0 -1
  463. package/dist/memoTheme-Bi1UNdyO.cjs +0 -1
  464. package/dist/memoTheme-C-PaH-Cy.js +0 -15
  465. package/dist/mergeSlotProps-CL6s5QgQ.cjs +0 -1
  466. package/dist/mergeSlotProps-DVtjofCS.js +0 -62
  467. package/dist/ownerDocument-4MViGo3k.cjs +0 -1
  468. package/dist/ownerDocument-CUrv0DIK.js +0 -6
  469. package/dist/ownerWindow-DDHucZi0.cjs +0 -1
  470. package/dist/ownerWindow-niciwP7I.js +0 -7
  471. package/dist/refType-8hihVLUh.js +0 -5
  472. package/dist/refType-DJyA--UV.cjs +0 -1
  473. package/dist/server-error-CqyYyPLN.cjs +0 -1
  474. package/dist/server-error-CvgIy7ap.js +0 -398
  475. package/dist/unsupportedProp-Bn6XWqwH.cjs +0 -1
  476. package/dist/unsupportedProp-BuVD30Gh.js +0 -9
  477. package/dist/useControlled-QrrYcKxm.cjs +0 -3
  478. package/dist/useControlled-nm4pBabJ.js +0 -31
  479. package/dist/useEventCallback-BxpcFap0.cjs +0 -1
  480. package/dist/useEventCallback-Y2KwRxBw.js +0 -15
  481. package/dist/useForkRef-CFhhTu-Q.cjs +0 -1
  482. package/dist/useForkRef-u29GSuCu.js +0 -27
  483. package/dist/useFormControl-CatNKXAi.js +0 -10
  484. package/dist/useFormControl-haP0iPhl.cjs +0 -1
  485. package/dist/useId-CK6Kn3Tn.js +0 -21
  486. package/dist/useId-DNXtOFeX.cjs +0 -1
  487. package/dist/usePreviousProps-ByGlbpJ6.js +0 -10
  488. package/dist/usePreviousProps-jC3PWcIp.cjs +0 -1
  489. package/dist/useSlot-BSkdRaZr.js +0 -125
  490. package/dist/useSlot-C-aMxEm0.cjs +0 -1
  491. package/dist/useSlotProps-BVVfeURp.cjs +0 -1
  492. package/dist/useSlotProps-CWTjRiRv.js +0 -25
  493. package/dist/useTheme-0AkY41zn.js +0 -11
  494. package/dist/useTheme-BT6SDKkk.cjs +0 -1
  495. package/dist/useTheme-BrGF2Vm0.cjs +0 -1
  496. package/dist/useTheme-DSA6Ir8k.js +0 -18
  497. package/dist/useThemeProps-BWsN0TEk.cjs +0 -1
  498. package/dist/useThemeProps-CAonvyKa.js +0 -27
  499. package/dist/useThemeProps-JozrkyA_.cjs +0 -1
  500. package/dist/useThemeProps-hSh1qhnc.js +0 -17
  501. package/dist/useTimeout-COCrDKz-.cjs +0 -1
  502. package/dist/useTimeout-CrCYVizI.js +0 -42
  503. package/dist/utils-BWx1W_q1.cjs +0 -1
  504. package/dist/utils-B_pVp6UZ.js +0 -363
  505. package/dist/utils-DWqc1kRF.js +0 -13
  506. package/dist/utils-XujN9ndp.cjs +0 -1
  507. package/dist/warning-C8W811fV.js +0 -11
  508. package/dist/warning-DMUNDgRg.cjs +0 -2
@@ -1,392 +0,0 @@
1
- import * as z from "react";
2
- import { P as o } from "./index-B9vkf41S.js";
3
- import { F as P, G as j, H as R } from "./generateUtilityClasses-B_xKAflz.js";
4
- import { c as M } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
5
- import { S as N } from "./SwitchBase-BWz31Ed6.js";
6
- import { m as d } from "./memoTheme-C-PaH-Cy.js";
7
- import { u as y } from "./useSlot-BSkdRaZr.js";
8
- import { jsx as k, jsxs as D } from "react/jsx-runtime";
9
- import { u as I, s as u, c as U } from "./DefaultPropsProvider-BrmlvPWg.js";
10
- import { c as n } from "./capitalize-BHEX83JQ.js";
11
- import { r as E } from "./refType-8hihVLUh.js";
12
- function F(t) {
13
- return j("MuiSwitch", t);
14
- }
15
- const a = P("MuiSwitch", ["root", "edgeStart", "edgeEnd", "switchBase", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium", "checked", "disabled", "input", "thumb", "track"]), A = (t) => {
16
- const {
17
- classes: e,
18
- edge: s,
19
- size: p,
20
- color: h,
21
- checked: f,
22
- disabled: b
23
- } = t, w = {
24
- root: ["root", s && `edge${n(s)}`, `size${n(p)}`],
25
- switchBase: ["switchBase", `color${n(h)}`, f && "checked", b && "disabled"],
26
- thumb: ["thumb"],
27
- track: ["track"],
28
- input: ["input"]
29
- }, g = U(w, F, e);
30
- return {
31
- ...e,
32
- // forward the disabled and checked classes to the SwitchBase
33
- ...g
34
- };
35
- }, V = u("span", {
36
- name: "MuiSwitch",
37
- slot: "Root",
38
- overridesResolver: (t, e) => {
39
- const {
40
- ownerState: s
41
- } = t;
42
- return [e.root, s.edge && e[`edge${n(s.edge)}`], e[`size${n(s.size)}`]];
43
- }
44
- })({
45
- display: "inline-flex",
46
- width: 58,
47
- height: 38,
48
- overflow: "hidden",
49
- padding: 12,
50
- boxSizing: "border-box",
51
- position: "relative",
52
- flexShrink: 0,
53
- zIndex: 0,
54
- // Reset the stacking context.
55
- verticalAlign: "middle",
56
- // For correct alignment with the text.
57
- "@media print": {
58
- colorAdjust: "exact"
59
- },
60
- variants: [{
61
- props: {
62
- edge: "start"
63
- },
64
- style: {
65
- marginLeft: -8
66
- }
67
- }, {
68
- props: {
69
- edge: "end"
70
- },
71
- style: {
72
- marginRight: -8
73
- }
74
- }, {
75
- props: {
76
- size: "small"
77
- },
78
- style: {
79
- width: 40,
80
- height: 24,
81
- padding: 7,
82
- [`& .${a.thumb}`]: {
83
- width: 16,
84
- height: 16
85
- },
86
- [`& .${a.switchBase}`]: {
87
- padding: 4,
88
- [`&.${a.checked}`]: {
89
- transform: "translateX(16px)"
90
- }
91
- }
92
- }
93
- }]
94
- }), X = u(N, {
95
- name: "MuiSwitch",
96
- slot: "SwitchBase",
97
- overridesResolver: (t, e) => {
98
- const {
99
- ownerState: s
100
- } = t;
101
- return [e.switchBase, {
102
- [`& .${a.input}`]: e.input
103
- }, s.color !== "default" && e[`color${n(s.color)}`]];
104
- }
105
- })(d(({
106
- theme: t
107
- }) => ({
108
- position: "absolute",
109
- top: 0,
110
- left: 0,
111
- zIndex: 1,
112
- // Render above the focus ripple.
113
- color: t.vars ? t.vars.palette.Switch.defaultColor : `${t.palette.mode === "light" ? t.palette.common.white : t.palette.grey[300]}`,
114
- transition: t.transitions.create(["left", "transform"], {
115
- duration: t.transitions.duration.shortest
116
- }),
117
- [`&.${a.checked}`]: {
118
- transform: "translateX(20px)"
119
- },
120
- [`&.${a.disabled}`]: {
121
- color: t.vars ? t.vars.palette.Switch.defaultDisabledColor : `${t.palette.mode === "light" ? t.palette.grey[100] : t.palette.grey[600]}`
122
- },
123
- [`&.${a.checked} + .${a.track}`]: {
124
- opacity: 0.5
125
- },
126
- [`&.${a.disabled} + .${a.track}`]: {
127
- opacity: t.vars ? t.vars.opacity.switchTrackDisabled : `${t.palette.mode === "light" ? 0.12 : 0.2}`
128
- },
129
- [`& .${a.input}`]: {
130
- left: "-100%",
131
- width: "300%"
132
- }
133
- })), d(({
134
- theme: t
135
- }) => ({
136
- "&:hover": {
137
- backgroundColor: t.alpha((t.vars || t).palette.action.active, (t.vars || t).palette.action.hoverOpacity),
138
- // Reset on touch devices, it doesn't add specificity
139
- "@media (hover: none)": {
140
- backgroundColor: "transparent"
141
- }
142
- },
143
- variants: [...Object.entries(t.palette).filter(M(["light"])).map(([e]) => ({
144
- props: {
145
- color: e
146
- },
147
- style: {
148
- [`&.${a.checked}`]: {
149
- color: (t.vars || t).palette[e].main,
150
- "&:hover": {
151
- backgroundColor: t.alpha((t.vars || t).palette[e].main, (t.vars || t).palette.action.hoverOpacity),
152
- "@media (hover: none)": {
153
- backgroundColor: "transparent"
154
- }
155
- },
156
- [`&.${a.disabled}`]: {
157
- color: t.vars ? t.vars.palette.Switch[`${e}DisabledColor`] : `${t.palette.mode === "light" ? t.lighten(t.palette[e].main, 0.62) : t.darken(t.palette[e].main, 0.55)}`
158
- }
159
- },
160
- [`&.${a.checked} + .${a.track}`]: {
161
- backgroundColor: (t.vars || t).palette[e].main
162
- }
163
- }
164
- }))]
165
- }))), q = u("span", {
166
- name: "MuiSwitch",
167
- slot: "Track"
168
- })(d(({
169
- theme: t
170
- }) => ({
171
- height: "100%",
172
- width: "100%",
173
- borderRadius: 14 / 2,
174
- zIndex: -1,
175
- transition: t.transitions.create(["opacity", "background-color"], {
176
- duration: t.transitions.duration.shortest
177
- }),
178
- backgroundColor: t.vars ? t.vars.palette.common.onBackground : `${t.palette.mode === "light" ? t.palette.common.black : t.palette.common.white}`,
179
- opacity: t.vars ? t.vars.opacity.switchTrack : `${t.palette.mode === "light" ? 0.38 : 0.3}`
180
- }))), G = u("span", {
181
- name: "MuiSwitch",
182
- slot: "Thumb"
183
- })(d(({
184
- theme: t
185
- }) => ({
186
- boxShadow: (t.vars || t).shadows[1],
187
- backgroundColor: "currentColor",
188
- width: 20,
189
- height: 20,
190
- borderRadius: "50%"
191
- }))), H = /* @__PURE__ */ z.forwardRef(function(e, s) {
192
- const p = I({
193
- props: e,
194
- name: "MuiSwitch"
195
- }), {
196
- className: h,
197
- color: f = "primary",
198
- edge: b = !1,
199
- size: w = "medium",
200
- sx: g,
201
- slots: c = {},
202
- slotProps: r = {},
203
- ...v
204
- } = p, i = {
205
- ...p,
206
- color: f,
207
- edge: b,
208
- size: w
209
- }, l = A(i), m = {
210
- slots: c,
211
- slotProps: r
212
- }, [T, $] = y("root", {
213
- className: R(l.root, h),
214
- elementType: V,
215
- externalForwardedProps: m,
216
- ownerState: i,
217
- additionalProps: {
218
- sx: g
219
- }
220
- }), [C, x] = y("thumb", {
221
- className: l.thumb,
222
- elementType: G,
223
- externalForwardedProps: m,
224
- ownerState: i
225
- }), S = /* @__PURE__ */ k(C, {
226
- ...x
227
- }), [B, O] = y("track", {
228
- className: l.track,
229
- elementType: q,
230
- externalForwardedProps: m,
231
- ownerState: i
232
- });
233
- return /* @__PURE__ */ D(T, {
234
- ...$,
235
- children: [/* @__PURE__ */ k(X, {
236
- type: "checkbox",
237
- icon: S,
238
- checkedIcon: S,
239
- ref: s,
240
- ownerState: i,
241
- ...v,
242
- classes: {
243
- ...l,
244
- root: l.switchBase
245
- },
246
- slots: {
247
- ...c.switchBase && {
248
- root: c.switchBase
249
- },
250
- ...c.input && {
251
- input: c.input
252
- }
253
- },
254
- slotProps: {
255
- ...r.switchBase && {
256
- root: typeof r.switchBase == "function" ? r.switchBase(i) : r.switchBase
257
- },
258
- input: {
259
- role: "switch"
260
- },
261
- ...r.input && {
262
- input: typeof r.input == "function" ? r.input(i) : r.input
263
- }
264
- }
265
- }), /* @__PURE__ */ k(B, {
266
- ...O
267
- })]
268
- });
269
- });
270
- process.env.NODE_ENV !== "production" && (H.propTypes = {
271
- // ┌────────────────────────────── Warning ──────────────────────────────┐
272
- // │ These PropTypes are generated from the TypeScript type definitions. │
273
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
274
- // └─────────────────────────────────────────────────────────────────────┘
275
- /**
276
- * If `true`, the component is checked.
277
- */
278
- checked: o.bool,
279
- /**
280
- * The icon to display when the component is checked.
281
- */
282
- checkedIcon: o.node,
283
- /**
284
- * Override or extend the styles applied to the component.
285
- */
286
- classes: o.object,
287
- /**
288
- * @ignore
289
- */
290
- className: o.string,
291
- /**
292
- * The color of the component.
293
- * It supports both default and custom theme colors, which can be added as shown in the
294
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
295
- * @default 'primary'
296
- */
297
- color: o.oneOfType([o.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), o.string]),
298
- /**
299
- * The default checked state. Use when the component is not controlled.
300
- */
301
- defaultChecked: o.bool,
302
- /**
303
- * If `true`, the component is disabled.
304
- */
305
- disabled: o.bool,
306
- /**
307
- * If `true`, the ripple effect is disabled.
308
- * @default false
309
- */
310
- disableRipple: o.bool,
311
- /**
312
- * If given, uses a negative margin to counteract the padding on one
313
- * side (this is often helpful for aligning the left or right
314
- * side of the icon with content above or below, without ruining the border
315
- * size and shape).
316
- * @default false
317
- */
318
- edge: o.oneOf(["end", "start", !1]),
319
- /**
320
- * The icon to display when the component is unchecked.
321
- */
322
- icon: o.node,
323
- /**
324
- * The id of the `input` element.
325
- */
326
- id: o.string,
327
- /**
328
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
329
- * @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
330
- */
331
- inputProps: o.object,
332
- /**
333
- * Pass a ref to the `input` element.
334
- * @deprecated Use `slotProps.input.ref` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
335
- */
336
- inputRef: E,
337
- /**
338
- * Callback fired when the state is changed.
339
- *
340
- * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
341
- * You can pull out the new value by accessing `event.target.value` (string).
342
- * You can pull out the new checked state by accessing `event.target.checked` (boolean).
343
- */
344
- onChange: o.func,
345
- /**
346
- * If `true`, the `input` element is required.
347
- * @default false
348
- */
349
- required: o.bool,
350
- /**
351
- * The size of the component.
352
- * `small` is equivalent to the dense switch styling.
353
- * @default 'medium'
354
- */
355
- size: o.oneOfType([o.oneOf(["medium", "small"]), o.string]),
356
- /**
357
- * The props used for each slot inside.
358
- * @default {}
359
- */
360
- slotProps: o.shape({
361
- input: o.oneOfType([o.func, o.object]),
362
- root: o.oneOfType([o.func, o.object]),
363
- switchBase: o.oneOfType([o.func, o.object]),
364
- thumb: o.oneOfType([o.func, o.object]),
365
- track: o.oneOfType([o.func, o.object])
366
- }),
367
- /**
368
- * The components used for each slot inside.
369
- * @default {}
370
- */
371
- slots: o.shape({
372
- input: o.elementType,
373
- root: o.elementType,
374
- switchBase: o.elementType,
375
- thumb: o.elementType,
376
- track: o.elementType
377
- }),
378
- /**
379
- * The system prop that allows defining system overrides as well as additional CSS styles.
380
- */
381
- sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
382
- /**
383
- * The value of the component. The DOM API casts this to a string.
384
- * The browser uses "on" as the default value.
385
- */
386
- value: o.any
387
- });
388
- export {
389
- H as S,
390
- F as g,
391
- a as s
392
- };
@@ -1 +0,0 @@
1
- "use strict";const R=require("react"),t=require("./index-kjfz41UI.cjs"),m=require("./generateUtilityClasses-CENS22bI.cjs"),q=require("./createSimplePaletteValueFilter-PTK3TAhW.cjs"),M=require("./SwitchBase-BP_I-APE.cjs"),y=require("./memoTheme-Bi1UNdyO.cjs"),g=require("./useSlot-C-aMxEm0.cjs"),u=require("react/jsx-runtime"),n=require("./DefaultPropsProvider-C1g4BXET.cjs"),c=require("./capitalize-3OjkeP9i.cjs"),D=require("./refType-DJyA--UV.cjs");function N(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(o,s,i.get?i:{enumerable:!0,get:()=>e[s]})}}return o.default=e,Object.freeze(o)}const U=N(R);function k(e){return m.generateUtilityClass("MuiSwitch",e)}const r=m.generateUtilityClasses("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),I=e=>{const{classes:o,edge:s,size:i,color:T,checked:h,disabled:P}=e,f={root:["root",s&&`edge${c.capitalize(s)}`,`size${c.capitalize(i)}`],switchBase:["switchBase",`color${c.capitalize(T)}`,h&&"checked",P&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},b=n.composeClasses(f,k,o);return{...o,...b}},_=n.styled("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:s}=e;return[o.root,s.edge&&o[`edge${c.capitalize(s.edge)}`],o[`size${c.capitalize(s.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${r.thumb}`]:{width:16,height:16},[`& .${r.switchBase}`]:{padding:4,[`&.${r.checked}`]:{transform:"translateX(16px)"}}}}]}),E=n.styled(M.SwitchBase,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,o)=>{const{ownerState:s}=e;return[o.switchBase,{[`& .${r.input}`]:o.input},s.color!=="default"&&o[`color${c.capitalize(s.color)}`]]}})(y.memoTheme(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${r.checked}`]:{transform:"translateX(20px)"},[`&.${r.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${r.checked} + .${r.track}`]:{opacity:.5},[`&.${r.disabled} + .${r.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${r.input}`]:{left:"-100%",width:"300%"}})),y.memoTheme(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(q.createSimplePaletteValueFilter(["light"])).map(([o])=>({props:{color:o},style:{[`&.${r.checked}`]:{color:(e.vars||e).palette[o].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${r.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${o}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[o].main,.62):e.darken(e.palette[o].main,.55)}`}},[`&.${r.checked} + .${r.track}`]:{backgroundColor:(e.vars||e).palette[o].main}}}))]}))),F=n.styled("span",{name:"MuiSwitch",slot:"Track"})(y.memoTheme(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),V=n.styled("span",{name:"MuiSwitch",slot:"Thumb"})(y.memoTheme(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),v=U.forwardRef(function(o,s){const i=n.useDefaultProps({props:o,name:"MuiSwitch"}),{className:T,color:h="primary",edge:P=!1,size:f="medium",sx:b,slots:l={},slotProps:a={},...$}=i,p={...i,color:h,edge:P,size:f},d=I(p),w={slots:l,slotProps:a},[C,x]=g.useSlot("root",{className:m.clsx(d.root,T),elementType:_,externalForwardedProps:w,ownerState:p,additionalProps:{sx:b}}),[O,z]=g.useSlot("thumb",{className:d.thumb,elementType:V,externalForwardedProps:w,ownerState:p}),S=u.jsx(O,{...z}),[j,B]=g.useSlot("track",{className:d.track,elementType:F,externalForwardedProps:w,ownerState:p});return u.jsxs(C,{...x,children:[u.jsx(E,{type:"checkbox",icon:S,checkedIcon:S,ref:s,ownerState:p,...$,classes:{...d,root:d.switchBase},slots:{...l.switchBase&&{root:l.switchBase},...l.input&&{input:l.input}},slotProps:{...a.switchBase&&{root:typeof a.switchBase=="function"?a.switchBase(p):a.switchBase},input:{role:"switch"},...a.input&&{input:typeof a.input=="function"?a.input(p):a.input}}}),u.jsx(j,{...B})]})});process.env.NODE_ENV!=="production"&&(v.propTypes={checked:t.PropTypes.bool,checkedIcon:t.PropTypes.node,classes:t.PropTypes.object,className:t.PropTypes.string,color:t.PropTypes.oneOfType([t.PropTypes.oneOf(["default","primary","secondary","error","info","success","warning"]),t.PropTypes.string]),defaultChecked:t.PropTypes.bool,disabled:t.PropTypes.bool,disableRipple:t.PropTypes.bool,edge:t.PropTypes.oneOf(["end","start",!1]),icon:t.PropTypes.node,id:t.PropTypes.string,inputProps:t.PropTypes.object,inputRef:D.refType,onChange:t.PropTypes.func,required:t.PropTypes.bool,size:t.PropTypes.oneOfType([t.PropTypes.oneOf(["medium","small"]),t.PropTypes.string]),slotProps:t.PropTypes.shape({input:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object]),root:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object]),switchBase:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object]),thumb:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object]),track:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object])}),slots:t.PropTypes.shape({input:t.PropTypes.elementType,root:t.PropTypes.elementType,switchBase:t.PropTypes.elementType,thumb:t.PropTypes.elementType,track:t.PropTypes.elementType}),sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object]),value:t.PropTypes.any});exports.Switch=v;exports.getSwitchUtilityClass=k;exports.switchClasses=r;
@@ -1 +0,0 @@
1
- "use strict";const W=require("react"),e=require("./index-kjfz41UI.cjs"),d=require("./DefaultPropsProvider-C1g4BXET.cjs"),X=require("./useFormControl-haP0iPhl.cjs"),k=require("./generateUtilityClasses-CENS22bI.cjs"),C=require("./useSlot-C-aMxEm0.cjs"),F=require("react/jsx-runtime"),Y=require("./useControlled-QrrYcKxm.cjs"),Z=require("./capitalize-3OjkeP9i.cjs"),ee=require("./ButtonBase-DSJojbNE.cjs"),oe=require("./refType-DJyA--UV.cjs");function te(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(s,n,c.get?c:{enumerable:!0,get:()=>t[n]})}}return s.default=t,Object.freeze(s)}const se=te(W);function re(t){return k.generateUtilityClass("PrivateSwitchBase",t)}k.generateUtilityClasses("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const ne=t=>{const{classes:s,checked:n,disabled:c,edge:a}=t,y={root:["root",n&&"checked",c&&"disabled",a&&`edge${Z.capitalize(a)}`],input:["input"]};return d.composeClasses(y,re,s)},pe=d.styled(ee.ButtonBase,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:s})=>t==="start"&&s.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:s})=>t==="end"&&s.size!=="small",style:{marginRight:-12}}]}),ie=d.styled("input",{name:"MuiSwitchBase",shouldForwardProp:d.rootShouldForwardProp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),R=se.forwardRef(function(s,n){const{autoFocus:c,checked:a,checkedIcon:y,defaultChecked:f,disabled:q,disableFocusRipple:T=!1,edge:x=!1,icon:j,id:O,inputProps:I,inputRef:z,name:N,onBlur:g,onChange:b,onFocus:h,readOnly:v,required:U=!1,tabIndex:D,type:u,value:m,slots:E={},slotProps:_={},...L}=s,[S,M]=Y.useControlled({controlled:a,default:!!f,name:"SwitchBase",state:"checked"}),p=X.useFormControl(),V=o=>{h&&h(o),p&&p.onFocus&&p.onFocus(o)},$=o=>{g&&g(o),p&&p.onBlur&&p.onBlur(o)},A=o=>{if(o.nativeEvent.defaultPrevented)return;const r=o.target.checked;M(r),b&&b(o,r)};let l=q;p&&typeof l>"u"&&(l=p.disabled);const G=u==="checkbox"||u==="radio",P={...s,checked:S,disabled:l,disableFocusRipple:T,edge:x},B=ne(P),w={slots:E,slotProps:{input:I,..._}},[H,J]=C.useSlot("root",{ref:n,elementType:pe,className:B.root,shouldForwardComponentProp:!0,externalForwardedProps:{...w,component:"span",...L},getSlotProps:o=>({...o,onFocus:r=>{var i;(i=o.onFocus)==null||i.call(o,r),V(r)},onBlur:r=>{var i;(i=o.onBlur)==null||i.call(o,r),$(r)}}),ownerState:P,additionalProps:{centerRipple:!0,focusRipple:!T,disabled:l,role:void 0,tabIndex:null}}),[K,Q]=C.useSlot("input",{ref:z,elementType:ie,className:B.input,externalForwardedProps:w,getSlotProps:o=>({...o,onChange:r=>{var i;(i=o.onChange)==null||i.call(o,r),A(r)}}),ownerState:P,additionalProps:{autoFocus:c,checked:a,defaultChecked:f,disabled:l,id:G?O:void 0,name:N,readOnly:v,required:U,tabIndex:D,type:u,...u==="checkbox"&&m===void 0?{}:{value:m}}});return F.jsxs(H,{...J,children:[F.jsx(K,{...Q}),S?y:j]})});process.env.NODE_ENV!=="production"&&(R.propTypes={autoFocus:e.PropTypes.bool,checked:e.PropTypes.bool,checkedIcon:e.PropTypes.node.isRequired,classes:e.PropTypes.object,className:e.PropTypes.string,defaultChecked:e.PropTypes.bool,disabled:e.PropTypes.bool,disableFocusRipple:e.PropTypes.bool,edge:e.PropTypes.oneOf(["end","start",!1]),icon:e.PropTypes.node.isRequired,id:e.PropTypes.string,inputProps:e.PropTypes.object,inputRef:oe.refType,name:e.PropTypes.string,onBlur:e.PropTypes.func,onChange:e.PropTypes.func,onFocus:e.PropTypes.func,readOnly:e.PropTypes.bool,required:e.PropTypes.bool,slotProps:e.PropTypes.shape({input:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object]),root:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object])}),slots:e.PropTypes.shape({input:e.PropTypes.elementType,root:e.PropTypes.elementType}),sx:e.PropTypes.object,tabIndex:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),type:e.PropTypes.string.isRequired,value:e.PropTypes.any});exports.SwitchBase=R;