@vodafone_de/brix-components 3.1.3 → 3.1.6

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 (1104) hide show
  1. package/package.json +2 -14
  2. package/Accordion/Accordion.d.ts +0 -122
  3. package/Accordion/Accordion.js +0 -334
  4. package/Accordion/AccordionContext.js +0 -18
  5. package/Accordion/accordionClasses.d.ts +0 -20
  6. package/Accordion/accordionClasses.js +0 -15
  7. package/Accordion/index.d.ts +0 -4
  8. package/Accordion/index.js +0 -35
  9. package/AccordionActions/AccordionActions.d.ts +0 -35
  10. package/AccordionActions/AccordionActions.js +0 -100
  11. package/AccordionActions/accordionActionsClasses.d.ts +0 -10
  12. package/AccordionActions/accordionActionsClasses.js +0 -15
  13. package/AccordionActions/index.d.ts +0 -4
  14. package/AccordionActions/index.js +0 -35
  15. package/AccordionDetails/AccordionDetails.d.ts +0 -30
  16. package/AccordionDetails/AccordionDetails.js +0 -76
  17. package/AccordionDetails/accordionDetailsClasses.d.ts +0 -8
  18. package/AccordionDetails/accordionDetailsClasses.js +0 -15
  19. package/AccordionDetails/index.d.ts +0 -4
  20. package/AccordionDetails/index.js +0 -35
  21. package/AccordionSummary/AccordionSummary.d.ts +0 -80
  22. package/AccordionSummary/AccordionSummary.js +0 -254
  23. package/AccordionSummary/accordionSummaryClasses.d.ts +0 -25
  24. package/AccordionSummary/accordionSummaryClasses.js +0 -15
  25. package/AccordionSummary/index.d.ts +0 -4
  26. package/AccordionSummary/index.js +0 -35
  27. package/Alert/Alert.d.ts +0 -178
  28. package/Alert/Alert.js +0 -390
  29. package/Alert/alertClasses.d.ts +0 -100
  30. package/Alert/alertClasses.js +0 -15
  31. package/Alert/index.d.ts +0 -4
  32. package/Alert/index.js +0 -35
  33. package/AlertTitle/AlertTitle.d.ts +0 -31
  34. package/AlertTitle/AlertTitle.js +0 -82
  35. package/AlertTitle/alertTitleClasses.d.ts +0 -8
  36. package/AlertTitle/alertTitleClasses.js +0 -15
  37. package/AlertTitle/index.d.ts +0 -4
  38. package/AlertTitle/index.js +0 -35
  39. package/AppBar/AppBar.d.ts +0 -59
  40. package/AppBar/AppBar.js +0 -234
  41. package/AppBar/appBarClasses.d.ts +0 -36
  42. package/AppBar/appBarClasses.js +0 -15
  43. package/AppBar/index.d.ts +0 -4
  44. package/AppBar/index.js +0 -35
  45. package/Autocomplete/Autocomplete.d.ts +0 -320
  46. package/Autocomplete/Autocomplete.js +0 -1202
  47. package/Autocomplete/autocompleteClasses.d.ts +0 -58
  48. package/Autocomplete/autocompleteClasses.js +0 -15
  49. package/Autocomplete/index.d.ts +0 -4
  50. package/Autocomplete/index.js +0 -41
  51. package/Avatar/Avatar.d.ts +0 -112
  52. package/Avatar/Avatar.js +0 -325
  53. package/Avatar/avatarClasses.d.ts +0 -20
  54. package/Avatar/avatarClasses.js +0 -15
  55. package/Avatar/index.d.ts +0 -4
  56. package/Avatar/index.js +0 -35
  57. package/AvatarGroup/AvatarGroup.d.ts +0 -96
  58. package/AvatarGroup/AvatarGroup.js +0 -238
  59. package/AvatarGroup/avatarGroupClasses.d.ts +0 -10
  60. package/AvatarGroup/avatarGroupClasses.js +0 -15
  61. package/AvatarGroup/index.d.ts +0 -4
  62. package/AvatarGroup/index.js +0 -35
  63. package/Backdrop/Backdrop.d.ts +0 -118
  64. package/Backdrop/Backdrop.js +0 -212
  65. package/Backdrop/backdropClasses.d.ts +0 -10
  66. package/Backdrop/backdropClasses.js +0 -15
  67. package/Backdrop/index.d.ts +0 -4
  68. package/Backdrop/index.js +0 -35
  69. package/Badge/Badge.d.ts +0 -157
  70. package/Badge/Badge.js +0 -441
  71. package/Badge/badgeClasses.d.ts +0 -56
  72. package/Badge/badgeClasses.js +0 -17
  73. package/Badge/index.d.ts +0 -4
  74. package/Badge/index.js +0 -35
  75. package/Badge/useBadge.d.ts +0 -3
  76. package/Badge/useBadge.js +0 -37
  77. package/Badge/useBadge.types.d.ts +0 -39
  78. package/Badge/useBadge.types.js +0 -5
  79. package/BottomNavigation/BottomNavigation.d.ts +0 -55
  80. package/BottomNavigation/BottomNavigation.js +0 -129
  81. package/BottomNavigation/bottomNavigationClasses.d.ts +0 -8
  82. package/BottomNavigation/bottomNavigationClasses.js +0 -15
  83. package/BottomNavigation/index.d.ts +0 -4
  84. package/BottomNavigation/index.js +0 -35
  85. package/BottomNavigationAction/BottomNavigationAction.d.ts +0 -87
  86. package/BottomNavigationAction/BottomNavigationAction.js +0 -237
  87. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +0 -14
  88. package/BottomNavigationAction/bottomNavigationActionClasses.js +0 -15
  89. package/BottomNavigationAction/index.d.ts +0 -4
  90. package/BottomNavigationAction/index.js +0 -35
  91. package/Box/Box.d.ts +0 -20
  92. package/Box/Box.js +0 -41
  93. package/Box/boxClasses.d.ts +0 -7
  94. package/Box/boxClasses.js +0 -10
  95. package/Box/index.d.ts +0 -4
  96. package/Box/index.js +0 -35
  97. package/Breadcrumbs/BreadcrumbCollapsed.js +0 -97
  98. package/Breadcrumbs/Breadcrumbs.d.ts +0 -94
  99. package/Breadcrumbs/Breadcrumbs.js +0 -245
  100. package/Breadcrumbs/breadcrumbsClasses.d.ts +0 -14
  101. package/Breadcrumbs/breadcrumbsClasses.js +0 -15
  102. package/Breadcrumbs/index.d.ts +0 -4
  103. package/Breadcrumbs/index.js +0 -35
  104. package/Button/Button.d.ts +0 -130
  105. package/Button/Button.js +0 -693
  106. package/Button/buttonClasses.d.ts +0 -194
  107. package/Button/buttonClasses.js +0 -15
  108. package/Button/index.d.ts +0 -4
  109. package/Button/index.js +0 -35
  110. package/ButtonBase/ButtonBase.d.ts +0 -125
  111. package/ButtonBase/ButtonBase.js +0 -453
  112. package/ButtonBase/Ripple.js +0 -93
  113. package/ButtonBase/TouchRipple.d.ts +0 -22
  114. package/ButtonBase/TouchRipple.js +0 -331
  115. package/ButtonBase/buttonBaseClasses.d.ts +0 -12
  116. package/ButtonBase/buttonBaseClasses.js +0 -15
  117. package/ButtonBase/index.d.ts +0 -6
  118. package/ButtonBase/index.js +0 -54
  119. package/ButtonBase/touchRippleClasses.d.ts +0 -20
  120. package/ButtonBase/touchRippleClasses.js +0 -15
  121. package/ButtonGroup/ButtonGroup.d.ts +0 -91
  122. package/ButtonGroup/ButtonGroup.js +0 -397
  123. package/ButtonGroup/ButtonGroupButtonContext.d.ts +0 -6
  124. package/ButtonGroup/ButtonGroupButtonContext.js +0 -17
  125. package/ButtonGroup/ButtonGroupContext.d.ts +0 -18
  126. package/ButtonGroup/ButtonGroupContext.js +0 -17
  127. package/ButtonGroup/buttonGroupClasses.d.ts +0 -104
  128. package/ButtonGroup/buttonGroupClasses.js +0 -15
  129. package/ButtonGroup/index.d.ts +0 -6
  130. package/ButtonGroup/index.js +0 -51
  131. package/Card/Card.d.ts +0 -47
  132. package/Card/Card.js +0 -90
  133. package/Card/cardClasses.d.ts +0 -8
  134. package/Card/cardClasses.js +0 -15
  135. package/Card/index.d.ts +0 -4
  136. package/Card/index.js +0 -35
  137. package/CardActionArea/CardActionArea.d.ts +0 -63
  138. package/CardActionArea/CardActionArea.js +0 -161
  139. package/CardActionArea/cardActionAreaClasses.d.ts +0 -12
  140. package/CardActionArea/cardActionAreaClasses.js +0 -15
  141. package/CardActionArea/index.d.ts +0 -4
  142. package/CardActionArea/index.js +0 -35
  143. package/CardActions/CardActions.d.ts +0 -35
  144. package/CardActions/CardActions.js +0 -101
  145. package/CardActions/cardActionsClasses.d.ts +0 -10
  146. package/CardActions/cardActionsClasses.js +0 -15
  147. package/CardActions/index.d.ts +0 -4
  148. package/CardActions/index.js +0 -35
  149. package/CardContent/CardContent.d.ts +0 -38
  150. package/CardContent/CardContent.js +0 -86
  151. package/CardContent/cardContentClasses.d.ts +0 -8
  152. package/CardContent/cardContentClasses.js +0 -15
  153. package/CardContent/index.d.ts +0 -4
  154. package/CardContent/index.js +0 -35
  155. package/CardHeader/CardHeader.d.ts +0 -157
  156. package/CardHeader/CardHeader.js +0 -271
  157. package/CardHeader/cardHeaderClasses.d.ts +0 -18
  158. package/CardHeader/cardHeaderClasses.js +0 -15
  159. package/CardHeader/index.d.ts +0 -4
  160. package/CardHeader/index.js +0 -35
  161. package/CardMedia/CardMedia.d.ts +0 -51
  162. package/CardMedia/CardMedia.js +0 -152
  163. package/CardMedia/cardMediaClasses.d.ts +0 -12
  164. package/CardMedia/cardMediaClasses.js +0 -15
  165. package/CardMedia/index.d.ts +0 -4
  166. package/CardMedia/index.js +0 -35
  167. package/Checkbox/Checkbox.d.ts +0 -131
  168. package/Checkbox/Checkbox.js +0 -287
  169. package/Checkbox/checkboxClasses.d.ts +0 -22
  170. package/Checkbox/checkboxClasses.js +0 -15
  171. package/Checkbox/index.d.ts +0 -4
  172. package/Checkbox/index.js +0 -35
  173. package/Chip/Chip.d.ts +0 -107
  174. package/Chip/Chip.js +0 -583
  175. package/Chip/chipClasses.d.ts +0 -150
  176. package/Chip/chipClasses.js +0 -15
  177. package/Chip/index.d.ts +0 -4
  178. package/Chip/index.js +0 -35
  179. package/CircularProgress/CircularProgress.d.ts +0 -71
  180. package/CircularProgress/CircularProgress.js +0 -291
  181. package/CircularProgress/circularProgressClasses.d.ts +0 -30
  182. package/CircularProgress/circularProgressClasses.js +0 -15
  183. package/CircularProgress/index.d.ts +0 -4
  184. package/CircularProgress/index.js +0 -35
  185. package/ClickAwayListener/ClickAwayListener.d.ts +0 -47
  186. package/ClickAwayListener/ClickAwayListener.js +0 -183
  187. package/ClickAwayListener/index.d.ts +0 -2
  188. package/ClickAwayListener/index.js +0 -12
  189. package/Collapse/Collapse.d.ts +0 -71
  190. package/Collapse/Collapse.js +0 -416
  191. package/Collapse/collapseClasses.d.ts +0 -18
  192. package/Collapse/collapseClasses.js +0 -15
  193. package/Collapse/index.d.ts +0 -4
  194. package/Collapse/index.js +0 -35
  195. package/Container/Container.d.ts +0 -55
  196. package/Container/Container.js +0 -73
  197. package/Container/containerClasses.d.ts +0 -6
  198. package/Container/containerClasses.js +0 -15
  199. package/Container/index.d.ts +0 -4
  200. package/Container/index.js +0 -35
  201. package/CssBaseline/CssBaseline.d.ts +0 -28
  202. package/CssBaseline/CssBaseline.js +0 -170
  203. package/CssBaseline/index.d.ts +0 -2
  204. package/CssBaseline/index.js +0 -13
  205. package/DefaultPropsProvider/DefaultPropsProvider.d.ts +0 -13
  206. package/DefaultPropsProvider/DefaultPropsProvider.js +0 -37
  207. package/DefaultPropsProvider/index.d.ts +0 -1
  208. package/DefaultPropsProvider/index.js +0 -19
  209. package/Dialog/Dialog.d.ts +0 -184
  210. package/Dialog/Dialog.js +0 -516
  211. package/Dialog/DialogContext.d.ts +0 -6
  212. package/Dialog/DialogContext.js +0 -14
  213. package/Dialog/dialogClasses.d.ts +0 -40
  214. package/Dialog/dialogClasses.js +0 -15
  215. package/Dialog/index.d.ts +0 -4
  216. package/Dialog/index.js +0 -35
  217. package/DialogActions/DialogActions.d.ts +0 -35
  218. package/DialogActions/DialogActions.js +0 -103
  219. package/DialogActions/dialogActionsClasses.d.ts +0 -10
  220. package/DialogActions/dialogActionsClasses.js +0 -15
  221. package/DialogActions/index.d.ts +0 -4
  222. package/DialogActions/index.js +0 -35
  223. package/DialogContent/DialogContent.d.ts +0 -35
  224. package/DialogContent/DialogContent.js +0 -116
  225. package/DialogContent/dialogContentClasses.d.ts +0 -10
  226. package/DialogContent/dialogContentClasses.js +0 -15
  227. package/DialogContent/index.d.ts +0 -4
  228. package/DialogContent/index.js +0 -35
  229. package/DialogContentText/DialogContentText.d.ts +0 -37
  230. package/DialogContentText/DialogContentText.js +0 -83
  231. package/DialogContentText/dialogContentTextClasses.d.ts +0 -8
  232. package/DialogContentText/dialogContentTextClasses.js +0 -15
  233. package/DialogContentText/index.d.ts +0 -4
  234. package/DialogContentText/index.js +0 -35
  235. package/DialogTitle/DialogTitle.d.ts +0 -43
  236. package/DialogTitle/DialogTitle.js +0 -87
  237. package/DialogTitle/dialogTitleClasses.d.ts +0 -8
  238. package/DialogTitle/dialogTitleClasses.js +0 -15
  239. package/DialogTitle/index.d.ts +0 -4
  240. package/DialogTitle/index.js +0 -35
  241. package/Divider/Divider.d.ts +0 -74
  242. package/Divider/Divider.js +0 -321
  243. package/Divider/dividerClasses.d.ts +0 -38
  244. package/Divider/dividerClasses.js +0 -15
  245. package/Divider/index.d.ts +0 -4
  246. package/Divider/index.js +0 -35
  247. package/Drawer/Drawer.d.ts +0 -154
  248. package/Drawer/Drawer.js +0 -443
  249. package/Drawer/drawerClasses.d.ts +0 -54
  250. package/Drawer/drawerClasses.js +0 -15
  251. package/Drawer/index.d.ts +0 -4
  252. package/Drawer/index.js +0 -35
  253. package/Fab/Fab.d.ts +0 -82
  254. package/Fab/Fab.js +0 -278
  255. package/Fab/fabClasses.d.ts +0 -26
  256. package/Fab/fabClasses.js +0 -15
  257. package/Fab/index.d.ts +0 -4
  258. package/Fab/index.js +0 -35
  259. package/Fade/Fade.d.ts +0 -48
  260. package/Fade/Fade.js +0 -217
  261. package/Fade/index.d.ts +0 -2
  262. package/Fade/index.js +0 -13
  263. package/FilledInput/FilledInput.d.ts +0 -42
  264. package/FilledInput/FilledInput.js +0 -523
  265. package/FilledInput/filledInputClasses.d.ts +0 -30
  266. package/FilledInput/filledInputClasses.js +0 -19
  267. package/FilledInput/index.d.ts +0 -4
  268. package/FilledInput/index.js +0 -35
  269. package/FormControl/FormControl.d.ts +0 -120
  270. package/FormControl/FormControl.js +0 -312
  271. package/FormControl/FormControlContext.d.ts +0 -17
  272. package/FormControl/FormControlContext.js +0 -17
  273. package/FormControl/formControlClasses.d.ts +0 -14
  274. package/FormControl/formControlClasses.js +0 -15
  275. package/FormControl/formControlState.js +0 -21
  276. package/FormControl/index.d.ts +0 -6
  277. package/FormControl/index.js +0 -43
  278. package/FormControl/useFormControl.d.ts +0 -2
  279. package/FormControl/useFormControl.js +0 -14
  280. package/FormControlLabel/FormControlLabel.d.ts +0 -101
  281. package/FormControlLabel/FormControlLabel.js +0 -289
  282. package/FormControlLabel/formControlLabelClasses.d.ts +0 -24
  283. package/FormControlLabel/formControlLabelClasses.js +0 -15
  284. package/FormControlLabel/index.d.ts +0 -4
  285. package/FormControlLabel/index.js +0 -35
  286. package/FormGroup/FormGroup.d.ts +0 -39
  287. package/FormGroup/FormGroup.js +0 -115
  288. package/FormGroup/formGroupClasses.d.ts +0 -12
  289. package/FormGroup/formGroupClasses.js +0 -15
  290. package/FormGroup/index.d.ts +0 -4
  291. package/FormGroup/index.js +0 -35
  292. package/FormHelperText/FormHelperText.d.ts +0 -71
  293. package/FormHelperText/FormHelperText.js +0 -193
  294. package/FormHelperText/formHelperTextClasses.d.ts +0 -22
  295. package/FormHelperText/formHelperTextClasses.js +0 -15
  296. package/FormHelperText/index.d.ts +0 -4
  297. package/FormHelperText/index.js +0 -35
  298. package/FormLabel/FormLabel.d.ts +0 -78
  299. package/FormLabel/FormLabel.js +0 -188
  300. package/FormLabel/formLabelClasses.d.ts +0 -22
  301. package/FormLabel/formLabelClasses.js +0 -15
  302. package/FormLabel/index.d.ts +0 -4
  303. package/FormLabel/index.js +0 -45
  304. package/GlobalStyles/GlobalStyles.d.ts +0 -20
  305. package/GlobalStyles/GlobalStyles.js +0 -33
  306. package/GlobalStyles/index.d.ts +0 -2
  307. package/GlobalStyles/index.js +0 -13
  308. package/Grid/Grid.d.ts +0 -111
  309. package/Grid/Grid.js +0 -144
  310. package/Grid/gridClasses.d.ts +0 -10
  311. package/Grid/gridClasses.js +0 -27
  312. package/Grid/index.d.ts +0 -4
  313. package/Grid/index.js +0 -45
  314. package/GridLegacy/GridLegacy.d.ts +0 -160
  315. package/GridLegacy/GridLegacy.js +0 -601
  316. package/GridLegacy/GridLegacyContext.js +0 -17
  317. package/GridLegacy/gridLegacyClasses.d.ts +0 -48
  318. package/GridLegacy/gridLegacyClasses.js +0 -27
  319. package/GridLegacy/index.d.ts +0 -4
  320. package/GridLegacy/index.js +0 -35
  321. package/Grow/Grow.d.ts +0 -49
  322. package/Grow/Grow.js +0 -269
  323. package/Grow/index.d.ts +0 -2
  324. package/Grow/index.js +0 -13
  325. package/Icon/Icon.d.ts +0 -62
  326. package/Icon/Icon.js +0 -192
  327. package/Icon/iconClasses.d.ts +0 -24
  328. package/Icon/iconClasses.js +0 -15
  329. package/Icon/index.d.ts +0 -4
  330. package/Icon/index.js +0 -35
  331. package/IconButton/IconButton.d.ts +0 -90
  332. package/IconButton/IconButton.js +0 -328
  333. package/IconButton/iconButtonClasses.d.ts +0 -40
  334. package/IconButton/iconButtonClasses.js +0 -15
  335. package/IconButton/index.d.ts +0 -4
  336. package/IconButton/index.js +0 -35
  337. package/ImageList/ImageList.d.ts +0 -60
  338. package/ImageList/ImageList.js +0 -157
  339. package/ImageList/ImageListContext.js +0 -18
  340. package/ImageList/imageListClasses.d.ts +0 -16
  341. package/ImageList/imageListClasses.js +0 -15
  342. package/ImageList/index.d.ts +0 -4
  343. package/ImageList/index.js +0 -35
  344. package/ImageListItem/ImageListItem.d.ts +0 -48
  345. package/ImageListItem/ImageListItem.js +0 -195
  346. package/ImageListItem/imageListItemClasses.d.ts +0 -18
  347. package/ImageListItem/imageListItemClasses.js +0 -15
  348. package/ImageListItem/index.d.ts +0 -4
  349. package/ImageListItem/index.js +0 -35
  350. package/ImageListItemBar/ImageListItemBar.d.ts +0 -49
  351. package/ImageListItemBar/ImageListItemBar.js +0 -258
  352. package/ImageListItemBar/imageListItemBarClasses.d.ts +0 -42
  353. package/ImageListItemBar/imageListItemBarClasses.js +0 -15
  354. package/ImageListItemBar/index.d.ts +0 -4
  355. package/ImageListItemBar/index.js +0 -35
  356. package/InitColorSchemeScript/InitColorSchemeScript.d.ts +0 -66
  357. package/InitColorSchemeScript/InitColorSchemeScript.js +0 -99
  358. package/InitColorSchemeScript/index.d.ts +0 -1
  359. package/InitColorSchemeScript/index.js +0 -13
  360. package/Input/Input.d.ts +0 -35
  361. package/Input/Input.js +0 -368
  362. package/Input/index.d.ts +0 -4
  363. package/Input/index.js +0 -35
  364. package/Input/inputClasses.d.ts +0 -38
  365. package/Input/inputClasses.js +0 -19
  366. package/InputAdornment/InputAdornment.d.ts +0 -59
  367. package/InputAdornment/InputAdornment.js +0 -193
  368. package/InputAdornment/index.d.ts +0 -4
  369. package/InputAdornment/index.js +0 -35
  370. package/InputAdornment/inputAdornmentClasses.d.ts +0 -24
  371. package/InputAdornment/inputAdornmentClasses.js +0 -15
  372. package/InputBase/InputBase.d.ts +0 -247
  373. package/InputBase/InputBase.js +0 -758
  374. package/InputBase/index.d.ts +0 -4
  375. package/InputBase/index.js +0 -35
  376. package/InputBase/inputBaseClasses.d.ts +0 -55
  377. package/InputBase/inputBaseClasses.js +0 -15
  378. package/InputBase/utils.js +0 -38
  379. package/InputLabel/InputLabel.d.ts +0 -79
  380. package/InputLabel/InputLabel.js +0 -290
  381. package/InputLabel/index.d.ts +0 -4
  382. package/InputLabel/index.js +0 -35
  383. package/InputLabel/inputLabelClasses.d.ts +0 -32
  384. package/InputLabel/inputLabelClasses.js +0 -15
  385. package/LinearProgress/LinearProgress.d.ts +0 -57
  386. package/LinearProgress/LinearProgress.js +0 -462
  387. package/LinearProgress/index.d.ts +0 -4
  388. package/LinearProgress/index.js +0 -35
  389. package/LinearProgress/linearProgressClasses.d.ts +0 -64
  390. package/LinearProgress/linearProgressClasses.js +0 -15
  391. package/Link/Link.d.ts +0 -63
  392. package/Link/Link.js +0 -290
  393. package/Link/getTextDecoration.d.ts +0 -11
  394. package/Link/getTextDecoration.js +0 -22
  395. package/Link/index.d.ts +0 -4
  396. package/Link/index.js +0 -35
  397. package/Link/linkClasses.d.ts +0 -18
  398. package/Link/linkClasses.js +0 -15
  399. package/List/List.d.ts +0 -65
  400. package/List/List.js +0 -141
  401. package/List/ListContext.d.ts +0 -5
  402. package/List/ListContext.js +0 -17
  403. package/List/index.d.ts +0 -4
  404. package/List/index.js +0 -35
  405. package/List/listClasses.d.ts +0 -14
  406. package/List/listClasses.js +0 -15
  407. package/ListItem/ListItem.d.ts +0 -127
  408. package/ListItem/ListItem.js +0 -395
  409. package/ListItem/index.d.ts +0 -4
  410. package/ListItem/index.js +0 -35
  411. package/ListItem/listItemClasses.d.ts +0 -22
  412. package/ListItem/listItemClasses.js +0 -15
  413. package/ListItemAvatar/ListItemAvatar.d.ts +0 -30
  414. package/ListItemAvatar/ListItemAvatar.js +0 -98
  415. package/ListItemAvatar/index.d.ts +0 -4
  416. package/ListItemAvatar/index.js +0 -35
  417. package/ListItemAvatar/listItemAvatarClasses.d.ts +0 -10
  418. package/ListItemAvatar/listItemAvatarClasses.js +0 -15
  419. package/ListItemButton/ListItemButton.d.ts +0 -85
  420. package/ListItemButton/ListItemButton.js +0 -272
  421. package/ListItemButton/index.d.ts +0 -4
  422. package/ListItemButton/index.js +0 -35
  423. package/ListItemButton/listItemButtonClasses.d.ts +0 -22
  424. package/ListItemButton/listItemButtonClasses.js +0 -15
  425. package/ListItemIcon/ListItemIcon.d.ts +0 -32
  426. package/ListItemIcon/ListItemIcon.js +0 -104
  427. package/ListItemIcon/index.d.ts +0 -4
  428. package/ListItemIcon/index.js +0 -35
  429. package/ListItemIcon/listItemIconClasses.d.ts +0 -10
  430. package/ListItemIcon/listItemIconClasses.js +0 -15
  431. package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +0 -36
  432. package/ListItemSecondaryAction/ListItemSecondaryAction.js +0 -103
  433. package/ListItemSecondaryAction/index.d.ts +0 -4
  434. package/ListItemSecondaryAction/index.js +0 -35
  435. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +0 -10
  436. package/ListItemSecondaryAction/listItemSecondaryActionClasses.js +0 -15
  437. package/ListItemText/ListItemText.d.ts +0 -105
  438. package/ListItemText/ListItemText.js +0 -234
  439. package/ListItemText/index.d.ts +0 -4
  440. package/ListItemText/index.js +0 -35
  441. package/ListItemText/listItemTextClasses.d.ts +0 -18
  442. package/ListItemText/listItemTextClasses.js +0 -15
  443. package/ListSubheader/ListSubheader.d.ts +0 -59
  444. package/ListSubheader/ListSubheader.js +0 -174
  445. package/ListSubheader/index.d.ts +0 -4
  446. package/ListSubheader/index.js +0 -35
  447. package/ListSubheader/listSubheaderClasses.d.ts +0 -18
  448. package/ListSubheader/listSubheaderClasses.js +0 -15
  449. package/Menu/Menu.d.ts +0 -162
  450. package/Menu/Menu.js +0 -345
  451. package/Menu/index.d.ts +0 -4
  452. package/Menu/index.js +0 -35
  453. package/Menu/menuClasses.d.ts +0 -12
  454. package/Menu/menuClasses.js +0 -15
  455. package/MenuItem/MenuItem.d.ts +0 -69
  456. package/MenuItem/MenuItem.js +0 -291
  457. package/MenuItem/index.d.ts +0 -4
  458. package/MenuItem/index.js +0 -35
  459. package/MenuItem/menuItemClasses.d.ts +0 -20
  460. package/MenuItem/menuItemClasses.js +0 -15
  461. package/MenuList/MenuList.d.ts +0 -62
  462. package/MenuList/MenuList.js +0 -297
  463. package/MenuList/index.d.ts +0 -2
  464. package/MenuList/index.js +0 -13
  465. package/MobileStepper/MobileStepper.d.ts +0 -112
  466. package/MobileStepper/MobileStepper.js +0 -311
  467. package/MobileStepper/index.d.ts +0 -4
  468. package/MobileStepper/index.js +0 -35
  469. package/MobileStepper/mobileStepperClasses.d.ts +0 -22
  470. package/MobileStepper/mobileStepperClasses.js +0 -15
  471. package/Modal/Modal.d.ts +0 -218
  472. package/Modal/Modal.js +0 -397
  473. package/Modal/ModalManager.d.ts +0 -25
  474. package/Modal/ModalManager.js +0 -222
  475. package/Modal/index.d.ts +0 -5
  476. package/Modal/index.js +0 -43
  477. package/Modal/modalClasses.d.ts +0 -12
  478. package/Modal/modalClasses.js +0 -15
  479. package/Modal/useModal.d.ts +0 -3
  480. package/Modal/useModal.js +0 -200
  481. package/Modal/useModal.types.d.ts +0 -118
  482. package/Modal/useModal.types.js +0 -5
  483. package/NativeSelect/NativeSelect.d.ts +0 -68
  484. package/NativeSelect/NativeSelect.js +0 -140
  485. package/NativeSelect/NativeSelectInput.d.ts +0 -13
  486. package/NativeSelect/NativeSelectInput.js +0 -247
  487. package/NativeSelect/index.d.ts +0 -4
  488. package/NativeSelect/index.js +0 -35
  489. package/NativeSelect/nativeSelectClasses.d.ts +0 -34
  490. package/NativeSelect/nativeSelectClasses.js +0 -15
  491. package/NoSsr/NoSsr.d.ts +0 -25
  492. package/NoSsr/NoSsr.js +0 -78
  493. package/NoSsr/NoSsr.types.d.ts +0 -18
  494. package/NoSsr/NoSsr.types.js +0 -5
  495. package/NoSsr/index.d.ts +0 -3
  496. package/NoSsr/index.js +0 -13
  497. package/OutlinedInput/NotchedOutline.d.ts +0 -12
  498. package/OutlinedInput/NotchedOutline.js +0 -161
  499. package/OutlinedInput/OutlinedInput.d.ts +0 -54
  500. package/OutlinedInput/OutlinedInput.js +0 -436
  501. package/OutlinedInput/index.d.ts +0 -4
  502. package/OutlinedInput/index.js +0 -35
  503. package/OutlinedInput/outlinedInputClasses.d.ts +0 -38
  504. package/OutlinedInput/outlinedInputClasses.js +0 -19
  505. package/OverridableComponent/index.d.ts +0 -41
  506. package/OverridableComponent/index.js +0 -5
  507. package/Pagination/Pagination.d.ts +0 -79
  508. package/Pagination/Pagination.js +0 -251
  509. package/Pagination/index.d.ts +0 -4
  510. package/Pagination/index.js +0 -35
  511. package/Pagination/paginationClasses.d.ts +0 -14
  512. package/Pagination/paginationClasses.js +0 -15
  513. package/PaginationItem/PaginationItem.d.ts +0 -110
  514. package/PaginationItem/PaginationItem.js +0 -478
  515. package/PaginationItem/index.d.ts +0 -4
  516. package/PaginationItem/index.js +0 -35
  517. package/PaginationItem/paginationItemClasses.d.ts +0 -54
  518. package/PaginationItem/paginationItemClasses.js +0 -15
  519. package/Paper/Paper.d.ts +0 -62
  520. package/Paper/Paper.js +0 -177
  521. package/Paper/index.d.ts +0 -4
  522. package/Paper/index.js +0 -35
  523. package/Paper/paperClasses.d.ts +0 -64
  524. package/Paper/paperClasses.js +0 -15
  525. package/PigmentContainer/PigmentContainer.d.ts +0 -55
  526. package/PigmentContainer/PigmentContainer.js +0 -107
  527. package/PigmentContainer/index.d.ts +0 -3
  528. package/PigmentContainer/index.js +0 -35
  529. package/PigmentGrid/PigmentGrid.d.ts +0 -83
  530. package/PigmentGrid/PigmentGrid.js +0 -135
  531. package/PigmentGrid/index.d.ts +0 -3
  532. package/PigmentGrid/index.js +0 -35
  533. package/PigmentStack/PigmentStack.d.ts +0 -49
  534. package/PigmentStack/PigmentStack.js +0 -90
  535. package/PigmentStack/index.d.ts +0 -3
  536. package/PigmentStack/index.js +0 -35
  537. package/Popover/Popover.d.ts +0 -233
  538. package/Popover/Popover.js +0 -590
  539. package/Popover/index.d.ts +0 -4
  540. package/Popover/index.js +0 -45
  541. package/Popover/popoverClasses.d.ts +0 -10
  542. package/Popover/popoverClasses.js +0 -15
  543. package/Popper/BasePopper.d.ts +0 -7
  544. package/Popper/BasePopper.js +0 -382
  545. package/Popper/BasePopper.types.d.ts +0 -129
  546. package/Popper/BasePopper.types.js +0 -5
  547. package/Popper/Popper.d.ts +0 -46
  548. package/Popper/Popper.js +0 -216
  549. package/Popper/index.d.ts +0 -4
  550. package/Popper/index.js +0 -26
  551. package/Popper/popperClasses.d.ts +0 -8
  552. package/Popper/popperClasses.js +0 -15
  553. package/Portal/Portal.d.ts +0 -16
  554. package/Portal/Portal.js +0 -98
  555. package/Portal/Portal.types.d.ts +0 -23
  556. package/Portal/Portal.types.js +0 -5
  557. package/Portal/index.d.ts +0 -3
  558. package/Portal/index.js +0 -13
  559. package/Radio/Radio.d.ts +0 -86
  560. package/Radio/Radio.js +0 -316
  561. package/Radio/RadioButtonIcon.js +0 -94
  562. package/Radio/index.d.ts +0 -4
  563. package/Radio/index.js +0 -35
  564. package/Radio/radioClasses.d.ts +0 -18
  565. package/Radio/radioClasses.js +0 -15
  566. package/RadioGroup/RadioGroup.d.ts +0 -38
  567. package/RadioGroup/RadioGroup.js +0 -121
  568. package/RadioGroup/RadioGroupContext.d.ts +0 -11
  569. package/RadioGroup/RadioGroupContext.js +0 -17
  570. package/RadioGroup/index.d.ts +0 -5
  571. package/RadioGroup/index.js +0 -43
  572. package/RadioGroup/radioGroupClasses.d.ts +0 -6
  573. package/RadioGroup/radioGroupClasses.js +0 -15
  574. package/RadioGroup/useRadioGroup.d.ts +0 -3
  575. package/RadioGroup/useRadioGroup.js +0 -14
  576. package/Rating/Rating.d.ts +0 -183
  577. package/Rating/Rating.js +0 -784
  578. package/Rating/index.d.ts +0 -4
  579. package/Rating/index.js +0 -35
  580. package/Rating/ratingClasses.d.ts +0 -40
  581. package/Rating/ratingClasses.js +0 -15
  582. package/ScopedCssBaseline/ScopedCssBaseline.d.ts +0 -55
  583. package/ScopedCssBaseline/ScopedCssBaseline.js +0 -126
  584. package/ScopedCssBaseline/index.d.ts +0 -4
  585. package/ScopedCssBaseline/index.js +0 -35
  586. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +0 -8
  587. package/ScopedCssBaseline/scopedCssBaselineClasses.js +0 -15
  588. package/Select/Select.d.ts +0 -188
  589. package/Select/Select.js +0 -306
  590. package/Select/SelectInput.d.ts +0 -55
  591. package/Select/SelectInput.js +0 -679
  592. package/Select/index.d.ts +0 -4
  593. package/Select/index.js +0 -35
  594. package/Select/selectClasses.d.ts +0 -42
  595. package/Select/selectClasses.js +0 -15
  596. package/Skeleton/Skeleton.d.ts +0 -62
  597. package/Skeleton/Skeleton.js +0 -276
  598. package/Skeleton/index.d.ts +0 -4
  599. package/Skeleton/index.js +0 -35
  600. package/Skeleton/skeletonClasses.d.ts +0 -26
  601. package/Skeleton/skeletonClasses.js +0 -15
  602. package/Slide/Slide.d.ts +0 -63
  603. package/Slide/Slide.js +0 -345
  604. package/Slide/index.d.ts +0 -2
  605. package/Slide/index.js +0 -13
  606. package/Slider/Slider.d.ts +0 -298
  607. package/Slider/Slider.js +0 -1097
  608. package/Slider/SliderValueLabel.d.ts +0 -13
  609. package/Slider/SliderValueLabel.js +0 -60
  610. package/Slider/SliderValueLabel.types.d.ts +0 -25
  611. package/Slider/SliderValueLabel.types.js +0 -5
  612. package/Slider/index.d.ts +0 -4
  613. package/Slider/index.js +0 -45
  614. package/Slider/sliderClasses.d.ts +0 -88
  615. package/Slider/sliderClasses.js +0 -15
  616. package/Slider/useSlider.d.ts +0 -4
  617. package/Slider/useSlider.js +0 -711
  618. package/Slider/useSlider.types.d.ts +0 -226
  619. package/Slider/useSlider.types.js +0 -5
  620. package/Snackbar/Snackbar.d.ts +0 -182
  621. package/Snackbar/Snackbar.js +0 -437
  622. package/Snackbar/index.d.ts +0 -4
  623. package/Snackbar/index.js +0 -35
  624. package/Snackbar/snackbarClasses.d.ts +0 -20
  625. package/Snackbar/snackbarClasses.js +0 -15
  626. package/Snackbar/useSnackbar.d.ts +0 -3
  627. package/Snackbar/useSnackbar.js +0 -130
  628. package/Snackbar/useSnackbar.types.d.ts +0 -59
  629. package/Snackbar/useSnackbar.types.js +0 -5
  630. package/SnackbarContent/SnackbarContent.d.ts +0 -42
  631. package/SnackbarContent/SnackbarContent.js +0 -136
  632. package/SnackbarContent/index.d.ts +0 -4
  633. package/SnackbarContent/index.js +0 -35
  634. package/SnackbarContent/snackbarContentClasses.d.ts +0 -12
  635. package/SnackbarContent/snackbarContentClasses.js +0 -15
  636. package/SpeedDial/SpeedDial.d.ts +0 -131
  637. package/SpeedDial/SpeedDial.js +0 -585
  638. package/SpeedDial/index.d.ts +0 -4
  639. package/SpeedDial/index.js +0 -35
  640. package/SpeedDial/speedDialClasses.d.ts +0 -22
  641. package/SpeedDial/speedDialClasses.js +0 -15
  642. package/SpeedDialAction/SpeedDialAction.d.ts +0 -117
  643. package/SpeedDialAction/SpeedDialAction.js +0 -357
  644. package/SpeedDialAction/index.d.ts +0 -4
  645. package/SpeedDialAction/index.js +0 -35
  646. package/SpeedDialAction/speedDialActionClasses.d.ts +0 -20
  647. package/SpeedDialAction/speedDialActionClasses.js +0 -15
  648. package/SpeedDialIcon/SpeedDialIcon.d.ts +0 -43
  649. package/SpeedDialIcon/SpeedDialIcon.js +0 -163
  650. package/SpeedDialIcon/index.d.ts +0 -4
  651. package/SpeedDialIcon/index.js +0 -35
  652. package/SpeedDialIcon/speedDialIconClasses.d.ts +0 -18
  653. package/SpeedDialIcon/speedDialIconClasses.js +0 -15
  654. package/Stack/Stack.d.ts +0 -58
  655. package/Stack/Stack.js +0 -67
  656. package/Stack/index.d.ts +0 -4
  657. package/Stack/index.js +0 -20
  658. package/Stack/stackClasses.d.ts +0 -6
  659. package/Stack/stackClasses.js +0 -15
  660. package/Step/Step.d.ts +0 -70
  661. package/Step/Step.js +0 -183
  662. package/Step/StepContext.d.ts +0 -20
  663. package/Step/StepContext.js +0 -26
  664. package/Step/index.d.ts +0 -6
  665. package/Step/index.js +0 -54
  666. package/Step/stepClasses.d.ts +0 -16
  667. package/Step/stepClasses.js +0 -15
  668. package/StepButton/StepButton.d.ts +0 -51
  669. package/StepButton/StepButton.js +0 -140
  670. package/StepButton/index.d.ts +0 -4
  671. package/StepButton/index.js +0 -35
  672. package/StepButton/stepButtonClasses.d.ts +0 -14
  673. package/StepButton/stepButtonClasses.js +0 -15
  674. package/StepConnector/StepConnector.d.ts +0 -29
  675. package/StepConnector/StepConnector.js +0 -159
  676. package/StepConnector/index.d.ts +0 -4
  677. package/StepConnector/index.js +0 -35
  678. package/StepConnector/stepConnectorClasses.d.ts +0 -30
  679. package/StepConnector/stepConnectorClasses.js +0 -15
  680. package/StepContent/StepContent.d.ts +0 -75
  681. package/StepContent/StepContent.js +0 -193
  682. package/StepContent/index.d.ts +0 -4
  683. package/StepContent/index.js +0 -35
  684. package/StepContent/stepContentClasses.d.ts +0 -12
  685. package/StepContent/stepContentClasses.js +0 -15
  686. package/StepIcon/StepIcon.d.ts +0 -50
  687. package/StepIcon/StepIcon.js +0 -166
  688. package/StepIcon/index.d.ts +0 -4
  689. package/StepIcon/index.js +0 -35
  690. package/StepIcon/stepIconClasses.d.ts +0 -16
  691. package/StepIcon/stepIconClasses.js +0 -15
  692. package/StepLabel/StepLabel.d.ts +0 -106
  693. package/StepLabel/StepLabel.js +0 -284
  694. package/StepLabel/index.d.ts +0 -4
  695. package/StepLabel/index.js +0 -35
  696. package/StepLabel/stepLabelClasses.d.ts +0 -28
  697. package/StepLabel/stepLabelClasses.js +0 -15
  698. package/Stepper/Stepper.d.ts +0 -71
  699. package/Stepper/Stepper.js +0 -174
  700. package/Stepper/StepperContext.d.ts +0 -18
  701. package/Stepper/StepperContext.js +0 -26
  702. package/Stepper/index.d.ts +0 -6
  703. package/Stepper/index.js +0 -54
  704. package/Stepper/stepperClasses.d.ts +0 -16
  705. package/Stepper/stepperClasses.js +0 -15
  706. package/SvgIcon/SvgIcon.d.ts +0 -89
  707. package/SvgIcon/SvgIcon.js +0 -241
  708. package/SvgIcon/index.d.ts +0 -4
  709. package/SvgIcon/index.js +0 -35
  710. package/SvgIcon/svgIconClasses.d.ts +0 -26
  711. package/SvgIcon/svgIconClasses.js +0 -15
  712. package/SwipeableDrawer/SwipeArea.js +0 -111
  713. package/SwipeableDrawer/SwipeableDrawer.d.ts +0 -106
  714. package/SwipeableDrawer/SwipeableDrawer.js +0 -668
  715. package/SwipeableDrawer/index.d.ts +0 -2
  716. package/SwipeableDrawer/index.js +0 -13
  717. package/Switch/Switch.d.ts +0 -123
  718. package/Switch/Switch.js +0 -412
  719. package/Switch/index.d.ts +0 -4
  720. package/Switch/index.js +0 -35
  721. package/Switch/switchClasses.d.ts +0 -32
  722. package/Switch/switchClasses.js +0 -15
  723. package/Tab/Tab.d.ts +0 -75
  724. package/Tab/Tab.js +0 -345
  725. package/Tab/index.d.ts +0 -4
  726. package/Tab/index.js +0 -35
  727. package/Tab/tabClasses.d.ts +0 -30
  728. package/Tab/tabClasses.js +0 -15
  729. package/TabScrollButton/TabScrollButton.d.ts +0 -67
  730. package/TabScrollButton/TabScrollButton.js +0 -179
  731. package/TabScrollButton/index.d.ts +0 -4
  732. package/TabScrollButton/index.js +0 -35
  733. package/TabScrollButton/tabScrollButtonClasses.d.ts +0 -12
  734. package/TabScrollButton/tabScrollButtonClasses.js +0 -15
  735. package/Table/Table.d.ts +0 -55
  736. package/Table/Table.js +0 -143
  737. package/Table/TableContext.d.ts +0 -7
  738. package/Table/TableContext.js +0 -17
  739. package/Table/Tablelvl2Context.d.ts +0 -6
  740. package/Table/Tablelvl2Context.js +0 -17
  741. package/Table/index.d.ts +0 -4
  742. package/Table/index.js +0 -35
  743. package/Table/tableClasses.d.ts +0 -10
  744. package/Table/tableClasses.js +0 -15
  745. package/TableBody/TableBody.d.ts +0 -38
  746. package/TableBody/TableBody.js +0 -92
  747. package/TableBody/index.d.ts +0 -4
  748. package/TableBody/index.js +0 -35
  749. package/TableBody/tableBodyClasses.d.ts +0 -8
  750. package/TableBody/tableBodyClasses.js +0 -15
  751. package/TableCell/TableCell.d.ts +0 -82
  752. package/TableCell/TableCell.js +0 -277
  753. package/TableCell/index.d.ts +0 -4
  754. package/TableCell/index.js +0 -35
  755. package/TableCell/tableCellClasses.d.ts +0 -32
  756. package/TableCell/tableCellClasses.js +0 -15
  757. package/TableContainer/TableContainer.d.ts +0 -38
  758. package/TableContainer/TableContainer.js +0 -84
  759. package/TableContainer/index.d.ts +0 -4
  760. package/TableContainer/index.js +0 -35
  761. package/TableContainer/tableContainerClasses.d.ts +0 -8
  762. package/TableContainer/tableContainerClasses.js +0 -15
  763. package/TableFooter/TableFooter.d.ts +0 -38
  764. package/TableFooter/TableFooter.js +0 -92
  765. package/TableFooter/index.d.ts +0 -4
  766. package/TableFooter/index.js +0 -35
  767. package/TableFooter/tableFooterClasses.d.ts +0 -8
  768. package/TableFooter/tableFooterClasses.js +0 -15
  769. package/TableHead/TableHead.d.ts +0 -38
  770. package/TableHead/TableHead.js +0 -92
  771. package/TableHead/index.d.ts +0 -4
  772. package/TableHead/index.js +0 -35
  773. package/TableHead/tableHeadClasses.d.ts +0 -8
  774. package/TableHead/tableHeadClasses.js +0 -15
  775. package/TablePagination/TablePagination.d.ts +0 -263
  776. package/TablePagination/TablePagination.js +0 -507
  777. package/TablePagination/TablePaginationActions.d.ts +0 -94
  778. package/TablePagination/TablePaginationActions.js +0 -199
  779. package/TablePagination/index.d.ts +0 -4
  780. package/TablePagination/index.js +0 -35
  781. package/TablePagination/tablePaginationClasses.d.ts +0 -28
  782. package/TablePagination/tablePaginationClasses.js +0 -15
  783. package/TableRow/TableRow.d.ts +0 -50
  784. package/TableRow/TableRow.js +0 -134
  785. package/TableRow/index.d.ts +0 -4
  786. package/TableRow/index.js +0 -35
  787. package/TableRow/tableRowClasses.d.ts +0 -16
  788. package/TableRow/tableRowClasses.js +0 -15
  789. package/TableSortLabel/TableSortLabel.d.ts +0 -90
  790. package/TableSortLabel/TableSortLabel.js +0 -219
  791. package/TableSortLabel/index.d.ts +0 -4
  792. package/TableSortLabel/index.js +0 -35
  793. package/TableSortLabel/tableSortLabelClasses.d.ts +0 -24
  794. package/TableSortLabel/tableSortLabelClasses.js +0 -15
  795. package/Tabs/ScrollbarSize.js +0 -65
  796. package/Tabs/Tabs.d.ts +0 -272
  797. package/Tabs/Tabs.js +0 -962
  798. package/Tabs/index.d.ts +0 -4
  799. package/Tabs/index.js +0 -35
  800. package/Tabs/tabsClasses.d.ts +0 -36
  801. package/Tabs/tabsClasses.js +0 -15
  802. package/TextField/TextField.d.ts +0 -342
  803. package/TextField/TextField.js +0 -463
  804. package/TextField/index.d.ts +0 -4
  805. package/TextField/index.js +0 -35
  806. package/TextField/textFieldClasses.d.ts +0 -8
  807. package/TextField/textFieldClasses.js +0 -15
  808. package/TextareaAutosize/TextareaAutosize.d.ts +0 -14
  809. package/TextareaAutosize/TextareaAutosize.js +0 -263
  810. package/TextareaAutosize/TextareaAutosize.types.d.ts +0 -13
  811. package/TextareaAutosize/TextareaAutosize.types.js +0 -5
  812. package/TextareaAutosize/index.d.ts +0 -3
  813. package/TextareaAutosize/index.js +0 -13
  814. package/ToggleButton/ToggleButton.d.ts +0 -95
  815. package/ToggleButton/ToggleButton.js +0 -275
  816. package/ToggleButton/index.d.ts +0 -4
  817. package/ToggleButton/index.js +0 -35
  818. package/ToggleButton/toggleButtonClasses.d.ts +0 -26
  819. package/ToggleButton/toggleButtonClasses.js +0 -15
  820. package/ToggleButtonGroup/ToggleButtonGroup.d.ts +0 -82
  821. package/ToggleButtonGroup/ToggleButtonGroup.js +0 -288
  822. package/ToggleButtonGroup/ToggleButtonGroupButtonContext.d.ts +0 -6
  823. package/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +0 -17
  824. package/ToggleButtonGroup/ToggleButtonGroupContext.d.ts +0 -16
  825. package/ToggleButtonGroup/ToggleButtonGroupContext.js +0 -17
  826. package/ToggleButtonGroup/index.d.ts +0 -4
  827. package/ToggleButtonGroup/index.js +0 -35
  828. package/ToggleButtonGroup/isValueSelected.js +0 -17
  829. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +0 -34
  830. package/ToggleButtonGroup/toggleButtonGroupClasses.js +0 -15
  831. package/Toolbar/Toolbar.d.ts +0 -51
  832. package/Toolbar/Toolbar.js +0 -136
  833. package/Toolbar/index.d.ts +0 -4
  834. package/Toolbar/index.js +0 -35
  835. package/Toolbar/toolbarClasses.d.ts +0 -14
  836. package/Toolbar/toolbarClasses.js +0 -15
  837. package/Tooltip/Tooltip.d.ts +0 -229
  838. package/Tooltip/Tooltip.js +0 -905
  839. package/Tooltip/index.d.ts +0 -4
  840. package/Tooltip/index.js +0 -35
  841. package/Tooltip/tooltipClasses.d.ts +0 -30
  842. package/Tooltip/tooltipClasses.js +0 -15
  843. package/Typography/Typography.d.ts +0 -99
  844. package/Typography/Typography.js +0 -275
  845. package/Typography/index.d.ts +0 -4
  846. package/Typography/index.js +0 -35
  847. package/Typography/typographyClasses.d.ts +0 -53
  848. package/Typography/typographyClasses.js +0 -15
  849. package/Unstable_TrapFocus/FocusTrap.d.ts +0 -10
  850. package/Unstable_TrapFocus/FocusTrap.js +0 -340
  851. package/Unstable_TrapFocus/FocusTrap.types.d.ts +0 -54
  852. package/Unstable_TrapFocus/FocusTrap.types.js +0 -5
  853. package/Unstable_TrapFocus/index.d.ts +0 -2
  854. package/Unstable_TrapFocus/index.js +0 -13
  855. package/Zoom/Zoom.d.ts +0 -49
  856. package/Zoom/Zoom.js +0 -217
  857. package/Zoom/index.d.ts +0 -2
  858. package/Zoom/index.js +0 -13
  859. package/className/index.d.ts +0 -1
  860. package/className/index.js +0 -13
  861. package/colors/amber.d.ts +0 -62
  862. package/colors/amber.js +0 -23
  863. package/colors/blue.d.ts +0 -62
  864. package/colors/blue.js +0 -23
  865. package/colors/blueGrey.d.ts +0 -62
  866. package/colors/blueGrey.js +0 -23
  867. package/colors/brown.d.ts +0 -62
  868. package/colors/brown.js +0 -23
  869. package/colors/common.d.ts +0 -14
  870. package/colors/common.js +0 -11
  871. package/colors/cyan.d.ts +0 -62
  872. package/colors/cyan.js +0 -23
  873. package/colors/deepOrange.d.ts +0 -62
  874. package/colors/deepOrange.js +0 -23
  875. package/colors/deepPurple.d.ts +0 -62
  876. package/colors/deepPurple.js +0 -23
  877. package/colors/green.d.ts +0 -62
  878. package/colors/green.js +0 -23
  879. package/colors/grey.d.ts +0 -62
  880. package/colors/grey.js +0 -23
  881. package/colors/index.d.ts +0 -20
  882. package/colors/index.js +0 -146
  883. package/colors/indigo.d.ts +0 -62
  884. package/colors/indigo.js +0 -23
  885. package/colors/lightBlue.d.ts +0 -62
  886. package/colors/lightBlue.js +0 -23
  887. package/colors/lightGreen.d.ts +0 -62
  888. package/colors/lightGreen.js +0 -23
  889. package/colors/lime.d.ts +0 -62
  890. package/colors/lime.js +0 -23
  891. package/colors/orange.d.ts +0 -62
  892. package/colors/orange.js +0 -23
  893. package/colors/pink.d.ts +0 -62
  894. package/colors/pink.js +0 -23
  895. package/colors/purple.d.ts +0 -62
  896. package/colors/purple.js +0 -23
  897. package/colors/red.d.ts +0 -62
  898. package/colors/red.js +0 -23
  899. package/colors/teal.d.ts +0 -62
  900. package/colors/teal.js +0 -23
  901. package/colors/yellow.d.ts +0 -62
  902. package/colors/yellow.js +0 -23
  903. package/darkScrollbar/index.d.ts +0 -28
  904. package/darkScrollbar/index.js +0 -38
  905. package/generateUtilityClass/index.d.ts +0 -2
  906. package/generateUtilityClass/index.js +0 -13
  907. package/generateUtilityClasses/index.d.ts +0 -1
  908. package/generateUtilityClasses/index.js +0 -13
  909. package/index.d.ts +0 -324
  910. package/index.js +0 -2612
  911. package/internal/SwitchBase.d.ts +0 -108
  912. package/internal/SwitchBase.js +0 -362
  913. package/internal/animate.js +0 -45
  914. package/internal/svg-icons/Add.js +0 -17
  915. package/internal/svg-icons/ArrowDownward.js +0 -18
  916. package/internal/svg-icons/ArrowDropDown.js +0 -18
  917. package/internal/svg-icons/Cancel.js +0 -18
  918. package/internal/svg-icons/CheckBox.js +0 -18
  919. package/internal/svg-icons/CheckBoxOutlineBlank.js +0 -18
  920. package/internal/svg-icons/CheckCircle.js +0 -18
  921. package/internal/svg-icons/Close.js +0 -20
  922. package/internal/svg-icons/ErrorOutline.js +0 -18
  923. package/internal/svg-icons/FirstPage.js +0 -18
  924. package/internal/svg-icons/IndeterminateCheckBox.js +0 -18
  925. package/internal/svg-icons/InfoOutlined.js +0 -18
  926. package/internal/svg-icons/KeyboardArrowLeft.js +0 -18
  927. package/internal/svg-icons/KeyboardArrowRight.js +0 -18
  928. package/internal/svg-icons/LastPage.js +0 -18
  929. package/internal/svg-icons/MoreHoriz.js +0 -18
  930. package/internal/svg-icons/NavigateBefore.js +0 -18
  931. package/internal/svg-icons/NavigateNext.js +0 -18
  932. package/internal/svg-icons/Person.js +0 -18
  933. package/internal/svg-icons/RadioButtonChecked.js +0 -18
  934. package/internal/svg-icons/RadioButtonUnchecked.js +0 -18
  935. package/internal/svg-icons/ReportProblemOutlined.js +0 -18
  936. package/internal/svg-icons/Star.js +0 -18
  937. package/internal/svg-icons/StarBorder.js +0 -18
  938. package/internal/svg-icons/SuccessOutlined.js +0 -18
  939. package/internal/svg-icons/Warning.js +0 -18
  940. package/internal/switchBaseClasses.d.ts +0 -12
  941. package/internal/switchBaseClasses.js +0 -15
  942. package/locale/index.d.ts +0 -82
  943. package/locale/index.js +0 -4330
  944. package/styles/ThemeProvider.d.ts +0 -76
  945. package/styles/ThemeProvider.js +0 -47
  946. package/styles/ThemeProviderNoVars.d.ts +0 -10
  947. package/styles/ThemeProviderNoVars.js +0 -24
  948. package/styles/ThemeProviderWithVars.d.ts +0 -51
  949. package/styles/ThemeProviderWithVars.js +0 -101
  950. package/styles/adaptV4Theme.d.ts +0 -36
  951. package/styles/adaptV4Theme.js +0 -88
  952. package/styles/components.d.ts +0 -595
  953. package/styles/components.js +0 -5
  954. package/styles/createColorScheme.d.ts +0 -9
  955. package/styles/createColorScheme.js +0 -50
  956. package/styles/createGetSelector.d.ts +0 -16
  957. package/styles/createGetSelector.js +0 -68
  958. package/styles/createMixins.d.ts +0 -32
  959. package/styles/createMixins.js +0 -22
  960. package/styles/createMuiStrictModeTheme.js +0 -14
  961. package/styles/createPalette.d.ts +0 -125
  962. package/styles/createPalette.js +0 -311
  963. package/styles/createStyles.d.ts +0 -1
  964. package/styles/createStyles.js +0 -16
  965. package/styles/createTheme.d.ts +0 -14
  966. package/styles/createTheme.js +0 -105
  967. package/styles/createThemeNoVars.d.ts +0 -70
  968. package/styles/createThemeNoVars.js +0 -99
  969. package/styles/createThemeWithVars.d.ts +0 -350
  970. package/styles/createThemeWithVars.js +0 -396
  971. package/styles/createTransitions.d.ts +0 -51
  972. package/styles/createTransitions.js +0 -96
  973. package/styles/createTypography.d.ts +0 -28
  974. package/styles/createTypography.js +0 -99
  975. package/styles/cssUtils.d.ts +0 -25
  976. package/styles/cssUtils.js +0 -137
  977. package/styles/defaultTheme.js +0 -11
  978. package/styles/excludeVariablesFromRoot.d.ts +0 -5
  979. package/styles/excludeVariablesFromRoot.js +0 -11
  980. package/styles/experimental_extendTheme.js +0 -16
  981. package/styles/getOverlayAlpha.d.ts +0 -1
  982. package/styles/getOverlayAlpha.js +0 -16
  983. package/styles/identifier.d.ts +0 -2
  984. package/styles/identifier.js +0 -7
  985. package/styles/index.d.ts +0 -49
  986. package/styles/index.js +0 -348
  987. package/styles/makeStyles.d.ts +0 -1
  988. package/styles/makeStyles.js +0 -11
  989. package/styles/overrides.d.ts +0 -244
  990. package/styles/overrides.js +0 -5
  991. package/styles/props.d.ts +0 -241
  992. package/styles/props.js +0 -5
  993. package/styles/responsiveFontSizes.d.ts +0 -11
  994. package/styles/responsiveFontSizes.js +0 -74
  995. package/styles/rootShouldForwardProp.d.ts +0 -2
  996. package/styles/rootShouldForwardProp.js +0 -10
  997. package/styles/shadows.d.ts +0 -3
  998. package/styles/shadows.js +0 -16
  999. package/styles/shouldSkipGeneratingVar.d.ts +0 -1
  1000. package/styles/shouldSkipGeneratingVar.js +0 -11
  1001. package/styles/slotShouldForwardProp.d.ts +0 -2
  1002. package/styles/slotShouldForwardProp.js +0 -11
  1003. package/styles/stringifyTheme.d.ts +0 -20
  1004. package/styles/stringifyTheme.js +0 -61
  1005. package/styles/styled.d.ts +0 -13
  1006. package/styles/styled.js +0 -31
  1007. package/styles/useTheme.d.ts +0 -2
  1008. package/styles/useTheme.js +0 -22
  1009. package/styles/useThemeProps.d.ts +0 -42
  1010. package/styles/useThemeProps.js +0 -22
  1011. package/styles/variants.d.ts +0 -10
  1012. package/styles/variants.js +0 -5
  1013. package/styles/withStyles.d.ts +0 -1
  1014. package/styles/withStyles.js +0 -11
  1015. package/styles/withTheme.d.ts +0 -1
  1016. package/styles/withTheme.js +0 -11
  1017. package/styles/zIndex.d.ts +0 -13
  1018. package/styles/zIndex.js +0 -19
  1019. package/themeCssVarsAugmentation/index.d.ts +0 -10
  1020. package/transitions/index.d.ts +0 -1
  1021. package/transitions/index.js +0 -16
  1022. package/transitions/transition.d.ts +0 -12
  1023. package/transitions/transition.js +0 -5
  1024. package/transitions/utils.d.ts +0 -23
  1025. package/transitions/utils.js +0 -21
  1026. package/types/OverridableComponentAugmentation.d.ts +0 -31
  1027. package/types/OverridableComponentAugmentation.js +0 -5
  1028. package/useAutocomplete/index.d.ts +0 -2
  1029. package/useAutocomplete/index.js +0 -19
  1030. package/useAutocomplete/useAutocomplete.d.ts +0 -420
  1031. package/useAutocomplete/useAutocomplete.js +0 -1030
  1032. package/useLazyRipple/index.d.ts +0 -1
  1033. package/useLazyRipple/index.js +0 -14
  1034. package/useLazyRipple/useLazyRipple.d.ts +0 -32
  1035. package/useLazyRipple/useLazyRipple.js +0 -94
  1036. package/useMediaQuery/index.d.ts +0 -7
  1037. package/useMediaQuery/index.js +0 -13
  1038. package/usePagination/index.d.ts +0 -2
  1039. package/usePagination/index.js +0 -13
  1040. package/usePagination/usePagination.d.ts +0 -74
  1041. package/usePagination/usePagination.js +0 -119
  1042. package/useScrollTrigger/index.d.ts +0 -1
  1043. package/useScrollTrigger/index.js +0 -13
  1044. package/useScrollTrigger/useScrollTrigger.d.ts +0 -6
  1045. package/useScrollTrigger/useScrollTrigger.js +0 -61
  1046. package/utils/PolymorphicComponent.d.ts +0 -17
  1047. package/utils/PolymorphicComponent.js +0 -5
  1048. package/utils/areArraysEqual.d.ts +0 -3
  1049. package/utils/areArraysEqual.js +0 -10
  1050. package/utils/capitalize.d.ts +0 -2
  1051. package/utils/capitalize.js +0 -9
  1052. package/utils/createChainedFunction.d.ts +0 -2
  1053. package/utils/createChainedFunction.js +0 -9
  1054. package/utils/createSimplePaletteValueFilter.d.ts +0 -12
  1055. package/utils/createSimplePaletteValueFilter.js +0 -47
  1056. package/utils/createSvgIcon.d.ts +0 -2
  1057. package/utils/createSvgIcon.js +0 -31
  1058. package/utils/debounce.d.ts +0 -2
  1059. package/utils/debounce.js +0 -9
  1060. package/utils/deprecatedPropType.d.ts +0 -2
  1061. package/utils/deprecatedPropType.js +0 -9
  1062. package/utils/getScrollbarSize.d.ts +0 -2
  1063. package/utils/getScrollbarSize.js +0 -9
  1064. package/utils/index.d.ts +0 -20
  1065. package/utils/index.js +0 -145
  1066. package/utils/isHostComponent.d.ts +0 -6
  1067. package/utils/isHostComponent.js +0 -13
  1068. package/utils/isMuiElement.d.ts +0 -2
  1069. package/utils/isMuiElement.js +0 -9
  1070. package/utils/memoTheme.d.ts +0 -7
  1071. package/utils/memoTheme.js +0 -9
  1072. package/utils/mergeSlotProps.d.ts +0 -2
  1073. package/utils/mergeSlotProps.js +0 -81
  1074. package/utils/omitEventHandlers.d.ts +0 -9
  1075. package/utils/omitEventHandlers.js +0 -24
  1076. package/utils/ownerDocument.d.ts +0 -2
  1077. package/utils/ownerDocument.js +0 -9
  1078. package/utils/ownerWindow.d.ts +0 -2
  1079. package/utils/ownerWindow.js +0 -9
  1080. package/utils/requirePropFactory.d.ts +0 -2
  1081. package/utils/requirePropFactory.js +0 -9
  1082. package/utils/setRef.d.ts +0 -2
  1083. package/utils/setRef.js +0 -9
  1084. package/utils/shouldSpreadAdditionalProps.js +0 -12
  1085. package/utils/types.d.ts +0 -26
  1086. package/utils/types.js +0 -5
  1087. package/utils/unsupportedProp.d.ts +0 -2
  1088. package/utils/unsupportedProp.js +0 -9
  1089. package/utils/useControlled.d.ts +0 -2
  1090. package/utils/useControlled.js +0 -10
  1091. package/utils/useEnhancedEffect.d.ts +0 -2
  1092. package/utils/useEnhancedEffect.js +0 -10
  1093. package/utils/useEventCallback.d.ts +0 -2
  1094. package/utils/useEventCallback.js +0 -10
  1095. package/utils/useForkRef.d.ts +0 -2
  1096. package/utils/useForkRef.js +0 -10
  1097. package/utils/useId.d.ts +0 -2
  1098. package/utils/useId.js +0 -10
  1099. package/utils/useSlot.d.ts +0 -81
  1100. package/utils/useSlot.js +0 -86
  1101. package/version/index.d.ts +0 -6
  1102. package/version/index.js +0 -12
  1103. package/zero-styled/index.d.ts +0 -12
  1104. package/zero-styled/index.js +0 -59
@@ -1,1030 +0,0 @@
1
- "use strict";
2
- 'use client';
3
-
4
- /* eslint-disable no-constant-condition */
5
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
6
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
- exports.createFilterOptions = createFilterOptions;
11
- exports.default = void 0;
12
- var React = _interopRequireWildcard(require("react"));
13
- var _setRef = _interopRequireDefault(require("@mui/utils/setRef"));
14
- var _useEventCallback = _interopRequireDefault(require("@mui/utils/useEventCallback"));
15
- var _useControlled = _interopRequireDefault(require("@mui/utils/useControlled"));
16
- var _useId = _interopRequireDefault(require("@mui/utils/useId"));
17
- var _usePreviousProps = _interopRequireDefault(require("@mui/utils/usePreviousProps"));
18
- // https://stackoverflow.com/questions/990904/remove-accents-diacritics-in-a-string-in-javascript
19
- function stripDiacritics(string) {
20
- return string.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
21
- }
22
- function createFilterOptions(config = {}) {
23
- const {
24
- ignoreAccents = true,
25
- ignoreCase = true,
26
- limit,
27
- matchFrom = 'any',
28
- stringify,
29
- trim = false
30
- } = config;
31
- return (options, {
32
- inputValue,
33
- getOptionLabel
34
- }) => {
35
- let input = trim ? inputValue.trim() : inputValue;
36
- if (ignoreCase) {
37
- input = input.toLowerCase();
38
- }
39
- if (ignoreAccents) {
40
- input = stripDiacritics(input);
41
- }
42
- const filteredOptions = !input ? options : options.filter(option => {
43
- let candidate = (stringify || getOptionLabel)(option);
44
- if (ignoreCase) {
45
- candidate = candidate.toLowerCase();
46
- }
47
- if (ignoreAccents) {
48
- candidate = stripDiacritics(candidate);
49
- }
50
- return matchFrom === 'start' ? candidate.startsWith(input) : candidate.includes(input);
51
- });
52
- return typeof limit === 'number' ? filteredOptions.slice(0, limit) : filteredOptions;
53
- };
54
- }
55
- const defaultFilterOptions = createFilterOptions();
56
-
57
- // Number of options to jump in list box when `Page Up` and `Page Down` keys are used.
58
- const pageSize = 5;
59
- const defaultIsActiveElementInListbox = listboxRef => listboxRef.current !== null && listboxRef.current.parentElement?.contains(document.activeElement);
60
- const MULTIPLE_DEFAULT_VALUE = [];
61
- function getInputValue(value, multiple, getOptionLabel, renderValue) {
62
- if (multiple || value == null || renderValue) {
63
- return '';
64
- }
65
- const optionLabel = getOptionLabel(value);
66
- return typeof optionLabel === 'string' ? optionLabel : '';
67
- }
68
- function useAutocomplete(props) {
69
- const {
70
- // eslint-disable-next-line @typescript-eslint/naming-convention
71
- unstable_isActiveElementInListbox = defaultIsActiveElementInListbox,
72
- // eslint-disable-next-line @typescript-eslint/naming-convention
73
- unstable_classNamePrefix = 'Mui',
74
- autoComplete = false,
75
- autoHighlight = false,
76
- autoSelect = false,
77
- blurOnSelect = false,
78
- clearOnBlur = !props.freeSolo,
79
- clearOnEscape = false,
80
- componentName = 'useAutocomplete',
81
- defaultValue = props.multiple ? MULTIPLE_DEFAULT_VALUE : null,
82
- disableClearable = false,
83
- disableCloseOnSelect = false,
84
- disabled: disabledProp,
85
- disabledItemsFocusable = false,
86
- disableListWrap = false,
87
- filterOptions = defaultFilterOptions,
88
- filterSelectedOptions = false,
89
- freeSolo = false,
90
- getOptionDisabled,
91
- getOptionKey,
92
- getOptionLabel: getOptionLabelProp = option => option.label ?? option,
93
- groupBy,
94
- handleHomeEndKeys = !props.freeSolo,
95
- id: idProp,
96
- includeInputInList = false,
97
- inputValue: inputValueProp,
98
- isOptionEqualToValue = (option, value) => option === value,
99
- multiple = false,
100
- onChange,
101
- onClose,
102
- onHighlightChange,
103
- onInputChange,
104
- onOpen,
105
- open: openProp,
106
- openOnFocus = false,
107
- options,
108
- readOnly = false,
109
- renderValue,
110
- selectOnFocus = !props.freeSolo,
111
- value: valueProp
112
- } = props;
113
- const id = (0, _useId.default)(idProp);
114
- let getOptionLabel = getOptionLabelProp;
115
- getOptionLabel = option => {
116
- const optionLabel = getOptionLabelProp(option);
117
- if (typeof optionLabel !== 'string') {
118
- if (process.env.NODE_ENV !== 'production') {
119
- const erroneousReturn = optionLabel === undefined ? 'undefined' : `${typeof optionLabel} (${optionLabel})`;
120
- console.error(`MUI: The \`getOptionLabel\` method of ${componentName} returned ${erroneousReturn} instead of a string for ${JSON.stringify(option)}.`);
121
- }
122
- return String(optionLabel);
123
- }
124
- return optionLabel;
125
- };
126
- const ignoreFocus = React.useRef(false);
127
- const firstFocus = React.useRef(true);
128
- const inputRef = React.useRef(null);
129
- const listboxRef = React.useRef(null);
130
- const [anchorEl, setAnchorEl] = React.useState(null);
131
- const [focusedItem, setFocusedItem] = React.useState(-1);
132
- const defaultHighlighted = autoHighlight ? 0 : -1;
133
- const highlightedIndexRef = React.useRef(defaultHighlighted);
134
-
135
- // Calculate the initial inputValue on mount only.
136
- // useRef ensures it doesn't update dynamically with defaultValue or value props.
137
- const initialInputValue = React.useRef(getInputValue(defaultValue ?? valueProp, multiple, getOptionLabel)).current;
138
- const [value, setValueState] = (0, _useControlled.default)({
139
- controlled: valueProp,
140
- default: defaultValue,
141
- name: componentName
142
- });
143
- const [inputValue, setInputValueState] = (0, _useControlled.default)({
144
- controlled: inputValueProp,
145
- default: initialInputValue,
146
- name: componentName,
147
- state: 'inputValue'
148
- });
149
- const [focused, setFocused] = React.useState(false);
150
- const resetInputValue = React.useCallback((event, newValue, reason) => {
151
- // retain current `inputValue` if new option isn't selected and `clearOnBlur` is false
152
- // When `multiple` is enabled, `newValue` is an array of all selected items including the newly selected item
153
- const isOptionSelected = multiple ? value.length < newValue.length : newValue !== null;
154
- if (!isOptionSelected && !clearOnBlur) {
155
- return;
156
- }
157
- const newInputValue = getInputValue(newValue, multiple, getOptionLabel, renderValue);
158
- if (inputValue === newInputValue) {
159
- return;
160
- }
161
- setInputValueState(newInputValue);
162
- if (onInputChange) {
163
- onInputChange(event, newInputValue, reason);
164
- }
165
- }, [getOptionLabel, inputValue, multiple, onInputChange, setInputValueState, clearOnBlur, value, renderValue]);
166
- const [open, setOpenState] = (0, _useControlled.default)({
167
- controlled: openProp,
168
- default: false,
169
- name: componentName,
170
- state: 'open'
171
- });
172
- const [inputPristine, setInputPristine] = React.useState(true);
173
- const inputValueIsSelectedValue = !multiple && value != null && inputValue === getOptionLabel(value);
174
- const popupOpen = open && !readOnly;
175
- const filteredOptions = popupOpen ? filterOptions(options.filter(option => {
176
- if (filterSelectedOptions && (multiple ? value : [value]).some(value2 => value2 !== null && isOptionEqualToValue(option, value2))) {
177
- return false;
178
- }
179
- return true;
180
- }),
181
- // we use the empty string to manipulate `filterOptions` to not filter any options
182
- // i.e. the filter predicate always returns true
183
- {
184
- inputValue: inputValueIsSelectedValue && inputPristine ? '' : inputValue,
185
- getOptionLabel
186
- }) : [];
187
- const previousProps = (0, _usePreviousProps.default)({
188
- filteredOptions,
189
- value,
190
- inputValue
191
- });
192
- React.useEffect(() => {
193
- const valueChange = value !== previousProps.value;
194
- if (focused && !valueChange) {
195
- return;
196
- }
197
-
198
- // Only reset the input's value when freeSolo if the component's value changes.
199
- if (freeSolo && !valueChange) {
200
- return;
201
- }
202
- resetInputValue(null, value, 'reset');
203
- }, [value, resetInputValue, focused, previousProps.value, freeSolo]);
204
- const listboxAvailable = open && filteredOptions.length > 0 && !readOnly;
205
- const focusItem = (0, _useEventCallback.default)(itemToFocus => {
206
- if (itemToFocus === -1) {
207
- inputRef.current.focus();
208
- } else {
209
- // Using `data-tag-index` for deprecated `renderTags`. Remove when `renderTags` is gone.
210
- const indexType = renderValue ? 'data-item-index' : 'data-tag-index';
211
- anchorEl.querySelector(`[${indexType}="${itemToFocus}"]`).focus();
212
- }
213
- });
214
-
215
- // Ensure the focusedItem is never inconsistent
216
- React.useEffect(() => {
217
- if (multiple && focusedItem > value.length - 1) {
218
- setFocusedItem(-1);
219
- focusItem(-1);
220
- }
221
- }, [value, multiple, focusedItem, focusItem]);
222
- function validOptionIndex(index, direction) {
223
- if (!listboxRef.current || index < 0 || index >= filteredOptions.length) {
224
- return -1;
225
- }
226
- let nextFocus = index;
227
- while (true) {
228
- const option = listboxRef.current.querySelector(`[data-option-index="${nextFocus}"]`);
229
-
230
- // Same logic as MenuList.js
231
- const nextFocusDisabled = disabledItemsFocusable ? false : !option || option.disabled || option.getAttribute('aria-disabled') === 'true';
232
- if (option && option.hasAttribute('tabindex') && !nextFocusDisabled) {
233
- // The next option is available
234
- return nextFocus;
235
- }
236
-
237
- // The next option is disabled, move to the next element.
238
- // with looped index
239
- if (direction === 'next') {
240
- nextFocus = (nextFocus + 1) % filteredOptions.length;
241
- } else {
242
- nextFocus = (nextFocus - 1 + filteredOptions.length) % filteredOptions.length;
243
- }
244
-
245
- // We end up with initial index, that means we don't have available options.
246
- // All of them are disabled
247
- if (nextFocus === index) {
248
- return -1;
249
- }
250
- }
251
- }
252
- const setHighlightedIndex = (0, _useEventCallback.default)(({
253
- event,
254
- index,
255
- reason
256
- }) => {
257
- highlightedIndexRef.current = index;
258
-
259
- // does the index exist?
260
- if (index === -1) {
261
- inputRef.current.removeAttribute('aria-activedescendant');
262
- } else {
263
- inputRef.current.setAttribute('aria-activedescendant', `${id}-option-${index}`);
264
- }
265
- if (onHighlightChange && ['mouse', 'keyboard', 'touch'].includes(reason)) {
266
- onHighlightChange(event, index === -1 ? null : filteredOptions[index], reason);
267
- }
268
- if (!listboxRef.current) {
269
- return;
270
- }
271
- const prev = listboxRef.current.querySelector(`[role="option"].${unstable_classNamePrefix}-focused`);
272
- if (prev) {
273
- prev.classList.remove(`${unstable_classNamePrefix}-focused`);
274
- prev.classList.remove(`${unstable_classNamePrefix}-focusVisible`);
275
- }
276
- let listboxNode = listboxRef.current;
277
- if (listboxRef.current.getAttribute('role') !== 'listbox') {
278
- listboxNode = listboxRef.current.parentElement.querySelector('[role="listbox"]');
279
- }
280
-
281
- // "No results"
282
- if (!listboxNode) {
283
- return;
284
- }
285
- if (index === -1) {
286
- listboxNode.scrollTop = 0;
287
- return;
288
- }
289
- const option = listboxRef.current.querySelector(`[data-option-index="${index}"]`);
290
- if (!option) {
291
- return;
292
- }
293
- option.classList.add(`${unstable_classNamePrefix}-focused`);
294
- if (reason === 'keyboard') {
295
- option.classList.add(`${unstable_classNamePrefix}-focusVisible`);
296
- }
297
-
298
- // Scroll active descendant into view.
299
- // Logic copied from https://www.w3.org/WAI/content-assets/wai-aria-practices/patterns/combobox/examples/js/select-only.js
300
- // In case of mouse clicks and touch (in mobile devices) we avoid scrolling the element and keep both behaviors same.
301
- // Consider this API instead once it has a better browser support:
302
- // .scrollIntoView({ scrollMode: 'if-needed', block: 'nearest' });
303
- if (listboxNode.scrollHeight > listboxNode.clientHeight && reason !== 'mouse' && reason !== 'touch') {
304
- const element = option;
305
- const scrollBottom = listboxNode.clientHeight + listboxNode.scrollTop;
306
- const elementBottom = element.offsetTop + element.offsetHeight;
307
- if (elementBottom > scrollBottom) {
308
- listboxNode.scrollTop = elementBottom - listboxNode.clientHeight;
309
- } else if (element.offsetTop - element.offsetHeight * (groupBy ? 1.3 : 0) < listboxNode.scrollTop) {
310
- listboxNode.scrollTop = element.offsetTop - element.offsetHeight * (groupBy ? 1.3 : 0);
311
- }
312
- }
313
- });
314
- const changeHighlightedIndex = (0, _useEventCallback.default)(({
315
- event,
316
- diff,
317
- direction = 'next',
318
- reason
319
- }) => {
320
- if (!popupOpen) {
321
- return;
322
- }
323
- const getNextIndex = () => {
324
- const maxIndex = filteredOptions.length - 1;
325
- if (diff === 'reset') {
326
- return defaultHighlighted;
327
- }
328
- if (diff === 'start') {
329
- return 0;
330
- }
331
- if (diff === 'end') {
332
- return maxIndex;
333
- }
334
- const newIndex = highlightedIndexRef.current + diff;
335
- if (newIndex < 0) {
336
- if (newIndex === -1 && includeInputInList) {
337
- return -1;
338
- }
339
- if (disableListWrap && highlightedIndexRef.current !== -1 || Math.abs(diff) > 1) {
340
- return 0;
341
- }
342
- return maxIndex;
343
- }
344
- if (newIndex > maxIndex) {
345
- if (newIndex === maxIndex + 1 && includeInputInList) {
346
- return -1;
347
- }
348
- if (disableListWrap || Math.abs(diff) > 1) {
349
- return maxIndex;
350
- }
351
- return 0;
352
- }
353
- return newIndex;
354
- };
355
- const nextIndex = validOptionIndex(getNextIndex(), direction);
356
- setHighlightedIndex({
357
- index: nextIndex,
358
- reason,
359
- event
360
- });
361
-
362
- // Sync the content of the input with the highlighted option.
363
- if (autoComplete && diff !== 'reset') {
364
- if (nextIndex === -1) {
365
- inputRef.current.value = inputValue;
366
- } else {
367
- const option = getOptionLabel(filteredOptions[nextIndex]);
368
- inputRef.current.value = option;
369
-
370
- // The portion of the selected suggestion that has not been typed by the user,
371
- // a completion string, appears inline after the input cursor in the textbox.
372
- const index = option.toLowerCase().indexOf(inputValue.toLowerCase());
373
- if (index === 0 && inputValue.length > 0) {
374
- inputRef.current.setSelectionRange(inputValue.length, option.length);
375
- }
376
- }
377
- }
378
- });
379
- const getPreviousHighlightedOptionIndex = () => {
380
- const isSameValue = (value1, value2) => {
381
- const label1 = value1 ? getOptionLabel(value1) : '';
382
- const label2 = value2 ? getOptionLabel(value2) : '';
383
- return label1 === label2;
384
- };
385
- if (highlightedIndexRef.current !== -1 && previousProps.filteredOptions && previousProps.filteredOptions.length !== filteredOptions.length && previousProps.inputValue === inputValue && (multiple ? value.length === previousProps.value.length && previousProps.value.every((val, i) => getOptionLabel(value[i]) === getOptionLabel(val)) : isSameValue(previousProps.value, value))) {
386
- const previousHighlightedOption = previousProps.filteredOptions[highlightedIndexRef.current];
387
- if (previousHighlightedOption) {
388
- return filteredOptions.findIndex(option => {
389
- return getOptionLabel(option) === getOptionLabel(previousHighlightedOption);
390
- });
391
- }
392
- }
393
- return -1;
394
- };
395
- const syncHighlightedIndex = React.useCallback(() => {
396
- if (!popupOpen) {
397
- return;
398
- }
399
-
400
- // Check if the previously highlighted option still exists in the updated filtered options list and if the value and inputValue haven't changed
401
- // If it exists and the value and the inputValue haven't changed, just update its index, otherwise continue execution
402
- const previousHighlightedOptionIndex = getPreviousHighlightedOptionIndex();
403
- if (previousHighlightedOptionIndex !== -1) {
404
- highlightedIndexRef.current = previousHighlightedOptionIndex;
405
- return;
406
- }
407
- const valueItem = multiple ? value[0] : value;
408
-
409
- // The popup is empty, reset
410
- if (filteredOptions.length === 0 || valueItem == null) {
411
- changeHighlightedIndex({
412
- diff: 'reset'
413
- });
414
- return;
415
- }
416
- if (!listboxRef.current) {
417
- return;
418
- }
419
-
420
- // Synchronize the value with the highlighted index
421
- if (valueItem != null) {
422
- const currentOption = filteredOptions[highlightedIndexRef.current];
423
-
424
- // Keep the current highlighted index if possible
425
- if (multiple && currentOption && value.findIndex(val => isOptionEqualToValue(currentOption, val)) !== -1) {
426
- return;
427
- }
428
- const itemIndex = filteredOptions.findIndex(optionItem => isOptionEqualToValue(optionItem, valueItem));
429
- if (itemIndex === -1) {
430
- changeHighlightedIndex({
431
- diff: 'reset'
432
- });
433
- } else {
434
- setHighlightedIndex({
435
- index: itemIndex
436
- });
437
- }
438
- return;
439
- }
440
-
441
- // Prevent the highlighted index to leak outside the boundaries.
442
- if (highlightedIndexRef.current >= filteredOptions.length - 1) {
443
- setHighlightedIndex({
444
- index: filteredOptions.length - 1
445
- });
446
- return;
447
- }
448
-
449
- // Restore the focus to the previous index.
450
- setHighlightedIndex({
451
- index: highlightedIndexRef.current
452
- });
453
- // Ignore filteredOptions (and options, isOptionEqualToValue, getOptionLabel) not to break the scroll position
454
- // eslint-disable-next-line react-hooks/exhaustive-deps
455
- }, [
456
- // Only sync the highlighted index when the option switch between empty and not
457
- filteredOptions.length,
458
- // Don't sync the highlighted index with the value when multiple
459
- // eslint-disable-next-line react-hooks/exhaustive-deps
460
- multiple ? false : value, filterSelectedOptions, changeHighlightedIndex, setHighlightedIndex, popupOpen, inputValue, multiple]);
461
- const handleListboxRef = (0, _useEventCallback.default)(node => {
462
- (0, _setRef.default)(listboxRef, node);
463
- if (!node) {
464
- return;
465
- }
466
- syncHighlightedIndex();
467
- });
468
- if (process.env.NODE_ENV !== 'production') {
469
- // eslint-disable-next-line react-hooks/rules-of-hooks
470
- React.useEffect(() => {
471
- if (!inputRef.current || inputRef.current.nodeName !== 'INPUT') {
472
- if (inputRef.current && inputRef.current.nodeName === 'TEXTAREA') {
473
- console.warn([`A textarea element was provided to ${componentName} where input was expected.`, `This is not a supported scenario but it may work under certain conditions.`, `A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).`, `Make sure to test keyboard navigation and add custom event handlers if necessary.`].join('\n'));
474
- } else {
475
- console.error([`MUI: Unable to find the input element. It was resolved to ${inputRef.current} while an HTMLInputElement was expected.`, `Instead, ${componentName} expects an input element.`, '', componentName === 'useAutocomplete' ? 'Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.' : 'Make sure you have customized the input component correctly.'].join('\n'));
476
- }
477
- }
478
- }, [componentName]);
479
- }
480
- React.useEffect(() => {
481
- syncHighlightedIndex();
482
- }, [syncHighlightedIndex]);
483
- const handleOpen = event => {
484
- if (open) {
485
- return;
486
- }
487
- setOpenState(true);
488
- setInputPristine(true);
489
- if (onOpen) {
490
- onOpen(event);
491
- }
492
- };
493
- const handleClose = (event, reason) => {
494
- if (!open) {
495
- return;
496
- }
497
- setOpenState(false);
498
- if (onClose) {
499
- onClose(event, reason);
500
- }
501
- };
502
- const handleValue = (event, newValue, reason, details) => {
503
- if (multiple) {
504
- if (value.length === newValue.length && value.every((val, i) => val === newValue[i])) {
505
- return;
506
- }
507
- } else if (value === newValue) {
508
- return;
509
- }
510
- if (onChange) {
511
- onChange(event, newValue, reason, details);
512
- }
513
- setValueState(newValue);
514
- };
515
- const isTouch = React.useRef(false);
516
- const selectNewValue = (event, option, reasonProp = 'selectOption', origin = 'options') => {
517
- let reason = reasonProp;
518
- let newValue = option;
519
- if (multiple) {
520
- newValue = Array.isArray(value) ? value.slice() : [];
521
- if (process.env.NODE_ENV !== 'production') {
522
- const matches = newValue.filter(val => isOptionEqualToValue(option, val));
523
- if (matches.length > 1) {
524
- console.error([`MUI: The \`isOptionEqualToValue\` method of ${componentName} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${matches.length} matches.`].join('\n'));
525
- }
526
- }
527
- const itemIndex = newValue.findIndex(valueItem => isOptionEqualToValue(option, valueItem));
528
- if (itemIndex === -1) {
529
- newValue.push(option);
530
- } else if (origin !== 'freeSolo') {
531
- newValue.splice(itemIndex, 1);
532
- reason = 'removeOption';
533
- }
534
- }
535
- resetInputValue(event, newValue, reason);
536
- handleValue(event, newValue, reason, {
537
- option
538
- });
539
- if (!disableCloseOnSelect && (!event || !event.ctrlKey && !event.metaKey)) {
540
- handleClose(event, reason);
541
- }
542
- if (blurOnSelect === true || blurOnSelect === 'touch' && isTouch.current || blurOnSelect === 'mouse' && !isTouch.current) {
543
- inputRef.current.blur();
544
- }
545
- };
546
- function validItemIndex(index, direction) {
547
- if (index === -1) {
548
- return -1;
549
- }
550
- let nextFocus = index;
551
- while (true) {
552
- // Out of range
553
- if (direction === 'next' && nextFocus === value.length || direction === 'previous' && nextFocus === -1) {
554
- return -1;
555
- }
556
-
557
- // Using `data-tag-index` for deprecated `renderTags`. Remove when `renderTags` is removed.
558
- const indexType = renderValue ? 'data-item-index' : 'data-tag-index';
559
- const option = anchorEl.querySelector(`[${indexType}="${nextFocus}"]`);
560
-
561
- // Same logic as MenuList.js
562
- if (!option || !option.hasAttribute('tabindex') || option.disabled || option.getAttribute('aria-disabled') === 'true') {
563
- nextFocus += direction === 'next' ? 1 : -1;
564
- } else {
565
- return nextFocus;
566
- }
567
- }
568
- }
569
- const handleFocusItem = (event, direction) => {
570
- if (!multiple) {
571
- return;
572
- }
573
- if (inputValue === '') {
574
- handleClose(event, 'toggleInput');
575
- }
576
- let nextItem = focusedItem;
577
- if (focusedItem === -1) {
578
- if (inputValue === '' && direction === 'previous') {
579
- nextItem = value.length - 1;
580
- }
581
- } else {
582
- nextItem += direction === 'next' ? 1 : -1;
583
- if (nextItem < 0) {
584
- nextItem = 0;
585
- }
586
- if (nextItem === value.length) {
587
- nextItem = -1;
588
- }
589
- }
590
- nextItem = validItemIndex(nextItem, direction);
591
- setFocusedItem(nextItem);
592
- focusItem(nextItem);
593
- };
594
- const handleClear = event => {
595
- ignoreFocus.current = true;
596
- setInputValueState('');
597
- if (onInputChange) {
598
- onInputChange(event, '', 'clear');
599
- }
600
- handleValue(event, multiple ? [] : null, 'clear');
601
- };
602
- const handleKeyDown = other => event => {
603
- if (other.onKeyDown) {
604
- other.onKeyDown(event);
605
- }
606
- if (event.defaultMuiPrevented) {
607
- return;
608
- }
609
- if (focusedItem !== -1 && !['ArrowLeft', 'ArrowRight'].includes(event.key)) {
610
- setFocusedItem(-1);
611
- focusItem(-1);
612
- }
613
-
614
- // Wait until IME is settled.
615
- if (event.which !== 229) {
616
- switch (event.key) {
617
- case 'Home':
618
- if (popupOpen && handleHomeEndKeys) {
619
- // Prevent scroll of the page
620
- event.preventDefault();
621
- changeHighlightedIndex({
622
- diff: 'start',
623
- direction: 'next',
624
- reason: 'keyboard',
625
- event
626
- });
627
- }
628
- break;
629
- case 'End':
630
- if (popupOpen && handleHomeEndKeys) {
631
- // Prevent scroll of the page
632
- event.preventDefault();
633
- changeHighlightedIndex({
634
- diff: 'end',
635
- direction: 'previous',
636
- reason: 'keyboard',
637
- event
638
- });
639
- }
640
- break;
641
- case 'PageUp':
642
- // Prevent scroll of the page
643
- event.preventDefault();
644
- changeHighlightedIndex({
645
- diff: -pageSize,
646
- direction: 'previous',
647
- reason: 'keyboard',
648
- event
649
- });
650
- handleOpen(event);
651
- break;
652
- case 'PageDown':
653
- // Prevent scroll of the page
654
- event.preventDefault();
655
- changeHighlightedIndex({
656
- diff: pageSize,
657
- direction: 'next',
658
- reason: 'keyboard',
659
- event
660
- });
661
- handleOpen(event);
662
- break;
663
- case 'ArrowDown':
664
- // Prevent cursor move
665
- event.preventDefault();
666
- changeHighlightedIndex({
667
- diff: 1,
668
- direction: 'next',
669
- reason: 'keyboard',
670
- event
671
- });
672
- handleOpen(event);
673
- break;
674
- case 'ArrowUp':
675
- // Prevent cursor move
676
- event.preventDefault();
677
- changeHighlightedIndex({
678
- diff: -1,
679
- direction: 'previous',
680
- reason: 'keyboard',
681
- event
682
- });
683
- handleOpen(event);
684
- break;
685
- case 'ArrowLeft':
686
- if (!multiple && renderValue) {
687
- focusItem(0);
688
- } else {
689
- handleFocusItem(event, 'previous');
690
- }
691
- break;
692
- case 'ArrowRight':
693
- if (!multiple && renderValue) {
694
- focusItem(-1);
695
- } else {
696
- handleFocusItem(event, 'next');
697
- }
698
- break;
699
- case 'Enter':
700
- if (highlightedIndexRef.current !== -1 && popupOpen) {
701
- const option = filteredOptions[highlightedIndexRef.current];
702
- const disabled = getOptionDisabled ? getOptionDisabled(option) : false;
703
-
704
- // Avoid early form validation, let the end-users continue filling the form.
705
- event.preventDefault();
706
- if (disabled) {
707
- return;
708
- }
709
- selectNewValue(event, option, 'selectOption');
710
-
711
- // Move the selection to the end.
712
- if (autoComplete) {
713
- inputRef.current.setSelectionRange(inputRef.current.value.length, inputRef.current.value.length);
714
- }
715
- } else if (freeSolo && inputValue !== '' && inputValueIsSelectedValue === false) {
716
- if (multiple) {
717
- // Allow people to add new values before they submit the form.
718
- event.preventDefault();
719
- }
720
- selectNewValue(event, inputValue, 'createOption', 'freeSolo');
721
- }
722
- break;
723
- case 'Escape':
724
- if (popupOpen) {
725
- // Avoid Opera to exit fullscreen mode.
726
- event.preventDefault();
727
- // Avoid the Modal to handle the event.
728
- event.stopPropagation();
729
- handleClose(event, 'escape');
730
- } else if (clearOnEscape && (inputValue !== '' || multiple && value.length > 0 || renderValue)) {
731
- // Avoid Opera to exit fullscreen mode.
732
- event.preventDefault();
733
- // Avoid the Modal to handle the event.
734
- event.stopPropagation();
735
- handleClear(event);
736
- }
737
- break;
738
- case 'Backspace':
739
- // Remove the value on the left of the "cursor"
740
- if (multiple && !readOnly && inputValue === '' && value.length > 0) {
741
- const index = focusedItem === -1 ? value.length - 1 : focusedItem;
742
- const newValue = value.slice();
743
- newValue.splice(index, 1);
744
- handleValue(event, newValue, 'removeOption', {
745
- option: value[index]
746
- });
747
- }
748
- if (!multiple && renderValue && !readOnly) {
749
- setValueState(null);
750
- focusItem(-1);
751
- }
752
- break;
753
- case 'Delete':
754
- // Remove the value on the right of the "cursor"
755
- if (multiple && !readOnly && inputValue === '' && value.length > 0 && focusedItem !== -1) {
756
- const index = focusedItem;
757
- const newValue = value.slice();
758
- newValue.splice(index, 1);
759
- handleValue(event, newValue, 'removeOption', {
760
- option: value[index]
761
- });
762
- }
763
- if (!multiple && renderValue && !readOnly) {
764
- setValueState(null);
765
- focusItem(-1);
766
- }
767
- break;
768
- default:
769
- }
770
- }
771
- };
772
- const handleFocus = event => {
773
- setFocused(true);
774
- if (openOnFocus && !ignoreFocus.current) {
775
- handleOpen(event);
776
- }
777
- };
778
- const handleBlur = event => {
779
- // Ignore the event when using the scrollbar with IE11
780
- if (unstable_isActiveElementInListbox(listboxRef)) {
781
- inputRef.current.focus();
782
- return;
783
- }
784
- setFocused(false);
785
- firstFocus.current = true;
786
- ignoreFocus.current = false;
787
- if (autoSelect && highlightedIndexRef.current !== -1 && popupOpen) {
788
- selectNewValue(event, filteredOptions[highlightedIndexRef.current], 'blur');
789
- } else if (autoSelect && freeSolo && inputValue !== '') {
790
- selectNewValue(event, inputValue, 'blur', 'freeSolo');
791
- } else if (clearOnBlur) {
792
- resetInputValue(event, value, 'blur');
793
- }
794
- handleClose(event, 'blur');
795
- };
796
- const handleInputChange = event => {
797
- const newValue = event.target.value;
798
- if (inputValue !== newValue) {
799
- setInputValueState(newValue);
800
- setInputPristine(false);
801
- if (onInputChange) {
802
- onInputChange(event, newValue, 'input');
803
- }
804
- }
805
- if (newValue === '') {
806
- if (!disableClearable && !multiple) {
807
- handleValue(event, null, 'clear');
808
- }
809
- } else {
810
- handleOpen(event);
811
- }
812
- };
813
- const handleOptionMouseMove = event => {
814
- const index = Number(event.currentTarget.getAttribute('data-option-index'));
815
- if (highlightedIndexRef.current !== index) {
816
- setHighlightedIndex({
817
- event,
818
- index,
819
- reason: 'mouse'
820
- });
821
- }
822
- };
823
- const handleOptionTouchStart = event => {
824
- setHighlightedIndex({
825
- event,
826
- index: Number(event.currentTarget.getAttribute('data-option-index')),
827
- reason: 'touch'
828
- });
829
- isTouch.current = true;
830
- };
831
- const handleOptionClick = event => {
832
- const index = Number(event.currentTarget.getAttribute('data-option-index'));
833
- selectNewValue(event, filteredOptions[index], 'selectOption');
834
- isTouch.current = false;
835
- };
836
- const handleItemDelete = index => event => {
837
- const newValue = value.slice();
838
- newValue.splice(index, 1);
839
- handleValue(event, newValue, 'removeOption', {
840
- option: value[index]
841
- });
842
- };
843
- const handleSingleItemDelete = event => {
844
- handleValue(event, null, 'removeOption', {
845
- option: value
846
- });
847
- };
848
- const handlePopupIndicator = event => {
849
- if (open) {
850
- handleClose(event, 'toggleInput');
851
- } else {
852
- handleOpen(event);
853
- }
854
- };
855
-
856
- // Prevent input blur when interacting with the combobox
857
- const handleMouseDown = event => {
858
- // Prevent focusing the input if click is anywhere outside the Autocomplete
859
- if (!event.currentTarget.contains(event.target)) {
860
- return;
861
- }
862
- if (event.target.getAttribute('id') !== id) {
863
- event.preventDefault();
864
- }
865
- };
866
-
867
- // Focus the input when interacting with the combobox
868
- const handleClick = event => {
869
- // Prevent focusing the input if click is anywhere outside the Autocomplete
870
- if (!event.currentTarget.contains(event.target)) {
871
- return;
872
- }
873
- inputRef.current.focus();
874
- if (selectOnFocus && firstFocus.current && inputRef.current.selectionEnd - inputRef.current.selectionStart === 0) {
875
- inputRef.current.select();
876
- }
877
- firstFocus.current = false;
878
- };
879
- const handleInputMouseDown = event => {
880
- if (!disabledProp && (inputValue === '' || !open)) {
881
- handlePopupIndicator(event);
882
- }
883
- };
884
- let dirty = freeSolo && inputValue.length > 0;
885
- dirty = dirty || (multiple ? value.length > 0 : value !== null);
886
- let groupedOptions = filteredOptions;
887
- if (groupBy) {
888
- // used to keep track of key and indexes in the result array
889
- const indexBy = new Map();
890
- let warn = false;
891
- groupedOptions = filteredOptions.reduce((acc, option, index) => {
892
- const group = groupBy(option);
893
- if (acc.length > 0 && acc[acc.length - 1].group === group) {
894
- acc[acc.length - 1].options.push(option);
895
- } else {
896
- if (process.env.NODE_ENV !== 'production') {
897
- if (indexBy.get(group) && !warn) {
898
- console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${componentName} returns duplicated headers.`, 'You can solve the issue by sorting the options with the output of `groupBy`.');
899
- warn = true;
900
- }
901
- indexBy.set(group, true);
902
- }
903
- acc.push({
904
- key: index,
905
- index,
906
- group,
907
- options: [option]
908
- });
909
- }
910
- return acc;
911
- }, []);
912
- }
913
- if (disabledProp && focused) {
914
- handleBlur();
915
- }
916
- return {
917
- getRootProps: (other = {}) => ({
918
- ...other,
919
- onKeyDown: handleKeyDown(other),
920
- onMouseDown: handleMouseDown,
921
- onClick: handleClick
922
- }),
923
- getInputLabelProps: () => ({
924
- id: `${id}-label`,
925
- htmlFor: id
926
- }),
927
- getInputProps: () => ({
928
- id,
929
- value: inputValue,
930
- onBlur: handleBlur,
931
- onFocus: handleFocus,
932
- onChange: handleInputChange,
933
- onMouseDown: handleInputMouseDown,
934
- // if open then this is handled imperatively so don't let react override
935
- // only have an opinion about this when closed
936
- 'aria-activedescendant': popupOpen ? '' : null,
937
- 'aria-autocomplete': autoComplete ? 'both' : 'list',
938
- 'aria-controls': listboxAvailable ? `${id}-listbox` : undefined,
939
- 'aria-expanded': listboxAvailable,
940
- // Disable browser's suggestion that might overlap with the popup.
941
- // Handle autocomplete but not autofill.
942
- autoComplete: 'off',
943
- ref: inputRef,
944
- autoCapitalize: 'none',
945
- spellCheck: 'false',
946
- role: 'combobox',
947
- disabled: disabledProp
948
- }),
949
- getClearProps: () => ({
950
- tabIndex: -1,
951
- type: 'button',
952
- onClick: handleClear
953
- }),
954
- getItemProps: ({
955
- index = 0
956
- } = {}) => ({
957
- ...(multiple && {
958
- key: index
959
- }),
960
- ...(renderValue ? {
961
- 'data-item-index': index
962
- } : {
963
- 'data-tag-index': index
964
- }),
965
- tabIndex: -1,
966
- ...(!readOnly && {
967
- onDelete: multiple ? handleItemDelete(index) : handleSingleItemDelete
968
- })
969
- }),
970
- getPopupIndicatorProps: () => ({
971
- tabIndex: -1,
972
- type: 'button',
973
- onClick: handlePopupIndicator
974
- }),
975
- // deprecated
976
- getTagProps: ({
977
- index
978
- }) => ({
979
- key: index,
980
- 'data-tag-index': index,
981
- tabIndex: -1,
982
- ...(!readOnly && {
983
- onDelete: handleItemDelete(index)
984
- })
985
- }),
986
- getListboxProps: () => ({
987
- role: 'listbox',
988
- id: `${id}-listbox`,
989
- 'aria-labelledby': `${id}-label`,
990
- ref: handleListboxRef,
991
- onMouseDown: event => {
992
- // Prevent blur
993
- event.preventDefault();
994
- }
995
- }),
996
- getOptionProps: ({
997
- index,
998
- option
999
- }) => {
1000
- const selected = (multiple ? value : [value]).some(value2 => value2 != null && isOptionEqualToValue(option, value2));
1001
- const disabled = getOptionDisabled ? getOptionDisabled(option) : false;
1002
- return {
1003
- key: getOptionKey?.(option) ?? getOptionLabel(option),
1004
- tabIndex: -1,
1005
- role: 'option',
1006
- id: `${id}-option-${index}`,
1007
- onMouseMove: handleOptionMouseMove,
1008
- onClick: handleOptionClick,
1009
- onTouchStart: handleOptionTouchStart,
1010
- 'data-option-index': index,
1011
- 'aria-disabled': disabled,
1012
- 'aria-selected': selected
1013
- };
1014
- },
1015
- id,
1016
- inputValue,
1017
- value,
1018
- dirty,
1019
- expanded: popupOpen && anchorEl,
1020
- popupOpen,
1021
- focused: focused || focusedItem !== -1,
1022
- anchorEl,
1023
- setAnchorEl,
1024
- focusedItem,
1025
- // deprecated
1026
- focusedTag: focusedItem,
1027
- groupedOptions
1028
- };
1029
- }
1030
- var _default = exports.default = useAutocomplete;