@mui/material 5.14.18 → 5.14.20
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.
- package/Autocomplete/Autocomplete.js +9 -1
- package/Box/Box.js +2 -1
- package/Box/boxClasses.d.ts +7 -0
- package/Box/boxClasses.js +3 -0
- package/Box/index.d.ts +3 -0
- package/Box/index.js +3 -1
- package/CHANGELOG.md +126 -1
- package/Chip/Chip.js +2 -2
- package/FilledInput/FilledInput.js +1 -1
- package/InputAdornment/InputAdornment.js +2 -2
- package/InputLabel/InputLabel.js +5 -1
- package/Modal/Modal.d.ts +3 -0
- package/Modal/Modal.js +3 -0
- package/Popper/Popper.js +3 -0
- package/Select/Select.d.ts +1 -2
- package/Select/SelectInput.js +2 -1
- package/StepButton/StepButton.js +1 -1
- package/index.js +1 -1
- package/legacy/Accordion/Accordion.js +4 -5
- package/legacy/AccordionSummary/AccordionSummary.js +5 -6
- package/legacy/Autocomplete/Autocomplete.js +47 -39
- package/legacy/AvatarGroup/AvatarGroup.js +2 -3
- package/legacy/Box/Box.js +2 -1
- package/legacy/Box/boxClasses.js +3 -0
- package/legacy/Box/index.js +3 -1
- package/legacy/Button/Button.js +10 -11
- package/legacy/ButtonBase/ButtonBase.js +4 -5
- package/legacy/ButtonGroup/ButtonGroup.js +4 -5
- package/legacy/CardActionArea/CardActionArea.js +4 -5
- package/legacy/CardHeader/CardHeader.js +1 -2
- package/legacy/Checkbox/Checkbox.js +3 -4
- package/legacy/Chip/Chip.js +29 -32
- package/legacy/FilledInput/FilledInput.js +12 -12
- package/legacy/FormHelperText/FormHelperText.js +4 -5
- package/legacy/FormLabel/FormLabel.js +5 -6
- package/legacy/Input/Input.js +7 -8
- package/legacy/InputAdornment/InputAdornment.js +2 -2
- package/legacy/InputBase/InputBase.js +5 -6
- package/legacy/InputLabel/InputLabel.js +5 -1
- package/legacy/ListItem/ListItem.js +4 -5
- package/legacy/ListItemButton/ListItemButton.js +6 -7
- package/legacy/MenuItem/MenuItem.js +11 -12
- package/legacy/Modal/Modal.js +3 -0
- package/legacy/NativeSelect/NativeSelectInput.js +6 -7
- package/legacy/OutlinedInput/OutlinedInput.js +7 -8
- package/legacy/PaginationItem/PaginationItem.js +9 -10
- package/legacy/Popper/Popper.js +3 -0
- package/legacy/Rating/Rating.js +4 -5
- package/legacy/Select/SelectInput.js +2 -1
- package/legacy/Slider/Slider.js +11 -14
- package/legacy/SpeedDialIcon/SpeedDialIcon.js +4 -5
- package/legacy/StepButton/StepButton.js +1 -1
- package/legacy/StepIcon/StepIcon.js +5 -6
- package/legacy/StepLabel/StepLabel.js +10 -12
- package/legacy/Switch/Switch.js +14 -17
- package/legacy/Tab/Tab.js +10 -11
- package/legacy/TablePagination/TablePagination.js +6 -8
- package/legacy/TableRow/TableRow.js +4 -5
- package/legacy/Tabs/Tabs.js +1 -2
- package/legacy/ToggleButton/ToggleButton.js +4 -5
- package/legacy/Tooltip/Tooltip.js +10 -12
- package/legacy/index.js +1 -1
- package/legacy/styles/createMixins.js +4 -5
- package/modern/Autocomplete/Autocomplete.js +9 -1
- package/modern/Box/Box.js +2 -1
- package/modern/Box/boxClasses.js +3 -0
- package/modern/Box/index.js +3 -1
- package/modern/Chip/Chip.js +2 -2
- package/modern/FilledInput/FilledInput.js +1 -1
- package/modern/InputAdornment/InputAdornment.js +2 -2
- package/modern/InputLabel/InputLabel.js +5 -1
- package/modern/Modal/Modal.js +3 -0
- package/modern/Popper/Popper.js +3 -0
- package/modern/Select/SelectInput.js +2 -1
- package/modern/StepButton/StepButton.js +1 -1
- package/modern/index.js +1 -1
- package/node/Autocomplete/Autocomplete.js +9 -1
- package/node/Box/Box.js +2 -1
- package/node/Box/boxClasses.js +9 -0
- package/node/Box/index.js +24 -1
- package/node/Chip/Chip.js +2 -2
- package/node/FilledInput/FilledInput.js +1 -1
- package/node/InputAdornment/InputAdornment.js +2 -2
- package/node/InputLabel/InputLabel.js +5 -1
- package/node/Modal/Modal.js +3 -0
- package/node/Popper/Popper.js +3 -0
- package/node/Select/SelectInput.js +2 -1
- package/node/StepButton/StepButton.js +1 -1
- package/node/index.js +1 -1
- package/package.json +9 -9
- package/umd/material-ui.development.js +70 -58
- package/umd/material-ui.production.min.js +20 -20
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
4
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
5
|
var _ClearIcon, _ArrowDropDownIcon;
|
|
6
|
-
const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"],
|
|
6
|
+
const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionKey", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"],
|
|
7
7
|
_excluded2 = ["ref"],
|
|
8
8
|
_excluded3 = ["key"];
|
|
9
9
|
import * as React from 'react';
|
|
@@ -830,6 +830,14 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
830
830
|
* @returns {boolean}
|
|
831
831
|
*/
|
|
832
832
|
getOptionDisabled: PropTypes.func,
|
|
833
|
+
/**
|
|
834
|
+
* Used to determine the key for a given option.
|
|
835
|
+
* This can be useful when the labels of options are not unique (since labels are used as keys by default).
|
|
836
|
+
*
|
|
837
|
+
* @param {Value} option The option to get the key for.
|
|
838
|
+
* @returns {string | number}
|
|
839
|
+
*/
|
|
840
|
+
getOptionKey: PropTypes.func,
|
|
833
841
|
/**
|
|
834
842
|
* Used to determine the string value for a given option.
|
|
835
843
|
* It's used to fill the input (and the list box options if `renderOption` is not provided).
|
package/Box/Box.js
CHANGED
|
@@ -5,11 +5,12 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import { unstable_ClassNameGenerator as ClassNameGenerator } from '../className';
|
|
6
6
|
import { createTheme } from '../styles';
|
|
7
7
|
import THEME_ID from '../styles/identifier';
|
|
8
|
+
import boxClasses from './boxClasses';
|
|
8
9
|
const defaultTheme = createTheme();
|
|
9
10
|
const Box = createBox({
|
|
10
11
|
themeId: THEME_ID,
|
|
11
12
|
defaultTheme,
|
|
12
|
-
defaultClassName:
|
|
13
|
+
defaultClassName: boxClasses.root,
|
|
13
14
|
generateClassName: ClassNameGenerator.generate
|
|
14
15
|
});
|
|
15
16
|
process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
|
package/Box/index.d.ts
CHANGED
package/Box/index.js
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,130 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.14.20
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.14.19..master -->
|
|
6
|
+
|
|
7
|
+
_Dec 5, 2023_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 14 contributors who made this release possible.
|
|
10
|
+
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
11
|
+
|
|
12
|
+
### `@mui/material-next@6.0.0-alpha.112`
|
|
13
|
+
|
|
14
|
+
- ​<!-- 07 -->[Menu] Enable again the usage of the autoFocus prop (#39960) @mnajdova
|
|
15
|
+
- ​<!-- 06 -->[ProgressIndicator] Apply MD3 style to `CircularProgress` (#39825) @lhilgert9
|
|
16
|
+
|
|
17
|
+
### Docs
|
|
18
|
+
|
|
19
|
+
- ​<!-- 15 -->Remove outdated showcase (#40063) @oliviertassinari
|
|
20
|
+
- ​<!-- 14 -->Support yaml as prism language (#40044) @Janpot
|
|
21
|
+
- ​<!-- 12 -->[material-ui] Fix SearchAppBar width on `sm` screens (#40049) @DiegoAndai
|
|
22
|
+
- ​<!-- 11 -->[material-ui] Update the basic Grid section copy (#40035) @REX500
|
|
23
|
+
- ​<!-- 10 -->[material-ui] Add a react-admin example project (#39972) @fzaninotto
|
|
24
|
+
- ​<!-- 09 -->[material-ui][TextField] Add a performance section (#39692) @anle9650
|
|
25
|
+
- ​<!-- 05 -->[material-ui][tabs] Refine scrollable tabs description (#40037) @zanivan
|
|
26
|
+
- ​<!-- 08 -->[system] Fix typo on the CSS theme variables page (#40040) @caweidmann
|
|
27
|
+
|
|
28
|
+
### Core
|
|
29
|
+
|
|
30
|
+
- ​<!-- 17 -->[blog] Fix scrollbar on mobile (#40057) @oliviertassinari
|
|
31
|
+
- ​<!-- 16 -->[blog] Fix link to charts getting started page (#40043) @alexfauquette
|
|
32
|
+
- ​<!-- 13 -->[docs-infra] Simplify CSS classes extraction in API docs generator (#39808) @michaldudak
|
|
33
|
+
- ​<!-- 04 -->[website] Polish dark mode colors (#40052) @danilo-leal
|
|
34
|
+
- ​<!-- 03 -->[website] Add why Design Engineer for data grid (#40016) @oliviertassinari
|
|
35
|
+
- ​<!-- 02 -->[website] Add stray fixes to the Base UI page (#40051) @danilo-leal
|
|
36
|
+
- ​<!-- 01 -->[website] Revise the Developer Advocate job posting (#39210) @samuelsycamore
|
|
37
|
+
|
|
38
|
+
All contributors of this release in alphabetical order: @alexfauquette, @anle9650, @caweidmann, @danilo-leal, @DiegoAndai, @fzaninotto, @Janpot, @lhilgert9, @michaldudak, @mnajdova, @oliviertassinari, @REX500, @samuelsycamore, @zanivan
|
|
39
|
+
|
|
40
|
+
## 5.14.19
|
|
41
|
+
|
|
42
|
+
<!-- generated comparing v5.14.18..master -->
|
|
43
|
+
|
|
44
|
+
_Nov 29, 2023_
|
|
45
|
+
|
|
46
|
+
A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
|
|
47
|
+
|
|
48
|
+
- 🐛 Fix Material UI Autocomplete behavior when there are duplicate labels (#36426) @islandryu
|
|
49
|
+
- 🚀 Added Material You Linear Progress to `material-next` package (#39807) @lhilgert9
|
|
50
|
+
|
|
51
|
+
### `@mui/material@5.14.19`
|
|
52
|
+
|
|
53
|
+
- ​<!-- 44 -->[Autocomplete] Fix behavior when there are duplicate labels (#36426) @islandryu
|
|
54
|
+
- ​<!-- 37 -->[Box] Added boxClasses (#39889) @sadik-malik
|
|
55
|
+
- ​<!-- 18 -->[FilledInput] Fix slot props deepmerge order (#38922) @dhaub-exelixis
|
|
56
|
+
- ​<!-- 12 -->[Select] Add id to hidden input element (#39414) @DarhkVoyd
|
|
57
|
+
- ​<!-- 11 -->[Select] Remove unnecessary picking of `onChange` type from SelectInputProps (#39891) @ZeeshanTamboli
|
|
58
|
+
|
|
59
|
+
### `@mui/base@5.0.0-beta.25`
|
|
60
|
+
|
|
61
|
+
- ​<!-- 46 -->[Menu] Fix navigation of items when 1st item is disabled (#39828) @sai6855
|
|
62
|
+
- ​<!-- 42 -->[Modal] Refine demos (#39824) @zanivan
|
|
63
|
+
- ​<!-- 41 -->[NumberInput] Implement `numberInputReducer` (#38723) @mj12albert
|
|
64
|
+
- ​<!-- 40 -->[useNumberInput] Fix change handlers passed through slotProps (#39407) @mj12albert
|
|
65
|
+
|
|
66
|
+
### `@mui/joy@5.0.0-beta.16`
|
|
67
|
+
|
|
68
|
+
- ​<!-- 38 -->[Box] Added boxClasses (#39895) @sadik-malik
|
|
69
|
+
|
|
70
|
+
### `@mui/system@5.14.19`
|
|
71
|
+
|
|
72
|
+
- ​<!-- 36 -->[Box] Added boxClasses (#39896) @sadik-malik
|
|
73
|
+
- ​<!-- 09 -->Add outlineColor to defaultSxConfig (#39962) @brijeshb42
|
|
74
|
+
|
|
75
|
+
### `@mui/types@7.2.10`
|
|
76
|
+
|
|
77
|
+
- ​<!-- 08 -->Add `PartiallyRequired` type (#39939) @lhilgert9
|
|
78
|
+
|
|
79
|
+
### `@mui/material-next@6.0.0-alpha.111`
|
|
80
|
+
|
|
81
|
+
- ​<!-- 47 -->[ProgressIndicator] Apply MD3 style to `LinearProgress` (#39807) @lhilgert9
|
|
82
|
+
- ​<!-- 17 -->[FormHelperText] Add FormHelperText component (#39503) @mj12albert
|
|
83
|
+
- ​<!-- 16 -->[IconButton] Copy IconButton to material-next (#39945) @mj12albert
|
|
84
|
+
- ​<!-- 13 -->[Switch] Copy `Switch` to material next (#39887) @lhilgert9
|
|
85
|
+
|
|
86
|
+
### Docs
|
|
87
|
+
|
|
88
|
+
- ​<!-- 19 -->[material-ui] Fix theme prop in v5 migration guide (#39976) @sai6855
|
|
89
|
+
- ​<!-- 43 -->[base-ui] Improve Next.js Link docs (#39838) @oliviertassinari
|
|
90
|
+
- ​<!-- 39 -->[base-ui] Export Base UI theme in stylesheet (#39694) @mnajdova
|
|
91
|
+
- ​<!-- 52 -->[joy-ui] Fix the date min & max slot props values on the Input demo (#40018) @avikalpg
|
|
92
|
+
- ​<!-- 35 -->[joy-ui][ButtonGroup] Fix orientation prop description (#39876) @sai6855
|
|
93
|
+
- ​<!-- 25 -->[joy-ui] Update gif from the Dark Mode Optimization page (#39726) @danilo-leal
|
|
94
|
+
- ​<!-- 24 -->[joy-ui] Fix h1 template (#40017) @oliviertassinari
|
|
95
|
+
- ​<!-- 23 -->[joy-ui] Fix wrong product id @oliviertassinari
|
|
96
|
+
- ​<!-- 22 -->[joy-ui] Fixes in theme scoping documentation (#39899) @ZeeshanTamboli
|
|
97
|
+
- ​<!-- 21 -->[joy-ui] Refine the Email, Teams and Files templates (#39579) @zanivan
|
|
98
|
+
- ​<!-- 15 -->[joy-ui][templates] Fix layout shift on Profile template (#40022) @zanivan
|
|
99
|
+
- ​<!-- 14 -->[joy-ui][Templates] Update thumbnails (#39938) @zanivan
|
|
100
|
+
- ​<!-- 20 -->[material-next] Add contributing guide (#39944) @mj12albert
|
|
101
|
+
- ​<!-- 51 -->End v6 blogpost notification (#39879) @joserodolfofreitas
|
|
102
|
+
- ​<!-- 31 -->Fix nested CSS warning (#39932) @mnajdova
|
|
103
|
+
- ​<!-- 30 -->Make integration searchable (#39967) @oliviertassinari
|
|
104
|
+
- ​<!-- 29 -->Fix use of quote in markdown (#39953) @oliviertassinari
|
|
105
|
+
- ​<!-- 28 -->Show design links on Joy UI (#39955) @oliviertassinari
|
|
106
|
+
- ​<!-- 27 -->Restore Algolia results when searching for "Figma" (#39956) @oliviertassinari
|
|
107
|
+
- ​<!-- 26 -->Fix two tone icon dark mode color (#39868) @mnajdova
|
|
108
|
+
|
|
109
|
+
### Core
|
|
110
|
+
|
|
111
|
+
- ​<!-- 45 -->Improve lerna's renovate package rules (#40029) @DiegoAndai
|
|
112
|
+
- ​<!-- 34 -->Downgrade lerna to 7.2.0 (#40026) @DiegoAndai
|
|
113
|
+
- ​<!-- 32 -->Rename OpenCollective @oliviertassinari
|
|
114
|
+
- ​<!-- 48 -->[docs-infra] Env variables should be string (#39991) @oliviertassinari
|
|
115
|
+
- ​<!-- 10 -->[Portal] Improve docs for container prop (#39180) @oliviertassinari
|
|
116
|
+
- ​<!-- 50 -->[website] Update pricing table (#40023) @cherniavskii
|
|
117
|
+
- ​<!-- 49 -->[website][docs] Update the product identifier menu and X page (#39832) @danilo-leal
|
|
118
|
+
- ​<!-- 07 -->[website] Mark TreeView and Charts as stable (#39975) @flaviendelangle
|
|
119
|
+
- ​<!-- 06 -->[website] Update career page (#40015) @oliviertassinari
|
|
120
|
+
- ​<!-- 05 -->[website] Sync about dataset @oliviertassinari
|
|
121
|
+
- ​<!-- 04 -->[website] Fix 301 redirection to X tree-view @oliviertassinari
|
|
122
|
+
- ​<!-- 03 -->[website] Change redirection prefixes @oliviertassinari
|
|
123
|
+
- ​<!-- 02 -->[website] Fix 301 link @oliviertassinari
|
|
124
|
+
- ​<!-- 01 -->[website] Fix modal not being closed with the escape key on the Base UI page (#39880) @ZeeshanTamboli
|
|
125
|
+
|
|
126
|
+
All contributors of this release in alphabetical order: @avikalpg, @brijeshb42, @cherniavskii, @danilo-leal, @DarhkVoyd, @dhaub-exelixis, @DiegoAndai, @flaviendelangle, @islandryu, @joserodolfofreitas, @lhilgert9, @mj12albert, @mnajdova, @oliviertassinari, @sadik-malik, @sai6855, @zanivan, @ZeeshanTamboli
|
|
127
|
+
|
|
3
128
|
## 5.14.18
|
|
4
129
|
|
|
5
130
|
<!-- generated comparing v5.14.17..master -->
|
|
@@ -10204,7 +10329,7 @@ A big thanks to the 26 contributors who made this release possible. Here are som
|
|
|
10204
10329
|
This is a follow-up effort after we have merged `material-ui-pickers`. The components are written in TypeScript which required us to upgrade our infra.
|
|
10205
10330
|
- 👌 Improve the Slider thumb and track animation (#24968) @remyoudemans.
|
|
10206
10331
|
The thumb is now moving with a light transition between different values unless it's dragged.
|
|
10207
|
-
<img src="https://user-images.githubusercontent.com/3165635/109394906-b7405a00-7929-11eb-829a-3b5246c30c08.gif" width="412" height="110" />
|
|
10332
|
+
<img src="https://user-images.githubusercontent.com/3165635/109394906-b7405a00-7929-11eb-829a-3b5246c30c08.gif" width="412" height="110" alt="thumb-animation" />
|
|
10208
10333
|
- 💅 Convert 5 components with custom colors support (#25099, #25088) @mngu.
|
|
10209
10334
|
This change makes it easier to leverage custom palettes
|
|
10210
10335
|
- And many more 🐛 bug fixes and 📚 improvements.
|
package/Chip/Chip.js
CHANGED
|
@@ -358,10 +358,10 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
|
|
358
358
|
}) : {};
|
|
359
359
|
let deleteIcon = null;
|
|
360
360
|
if (onDelete) {
|
|
361
|
-
deleteIcon = deleteIconProp && /*#__PURE__*/React.isValidElement(deleteIconProp) ? /*#__PURE__*/React.cloneElement(deleteIconProp, {
|
|
361
|
+
deleteIcon = deleteIconProp && /*#__PURE__*/React.isValidElement(deleteIconProp) ? ( /*#__PURE__*/React.cloneElement(deleteIconProp, {
|
|
362
362
|
className: clsx(deleteIconProp.props.className, classes.deleteIcon),
|
|
363
363
|
onClick: handleDeleteIconClick
|
|
364
|
-
}) : /*#__PURE__*/_jsx(CancelIcon, {
|
|
364
|
+
})) : /*#__PURE__*/_jsx(CancelIcon, {
|
|
365
365
|
className: clsx(classes.deleteIcon),
|
|
366
366
|
onClick: handleDeleteIconClick
|
|
367
367
|
});
|
|
@@ -215,7 +215,7 @@ const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps,
|
|
|
215
215
|
ownerState
|
|
216
216
|
}
|
|
217
217
|
};
|
|
218
|
-
const componentsProps = (slotProps != null ? slotProps : componentsPropsProp) ? deepmerge(slotProps != null ? slotProps : componentsPropsProp
|
|
218
|
+
const componentsProps = (slotProps != null ? slotProps : componentsPropsProp) ? deepmerge(filledInputComponentsProps, slotProps != null ? slotProps : componentsPropsProp) : filledInputComponentsProps;
|
|
219
219
|
const RootSlot = (_ref = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref : FilledInputRoot;
|
|
220
220
|
const InputSlot = (_ref2 = (_slots$input = slots.input) != null ? _slots$input : components.Input) != null ? _ref2 : FilledInputInput;
|
|
221
221
|
return /*#__PURE__*/_jsx(InputBase, _extends({
|
|
@@ -114,10 +114,10 @@ const InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inP
|
|
|
114
114
|
color: "text.secondary",
|
|
115
115
|
children: children
|
|
116
116
|
}) : /*#__PURE__*/_jsxs(React.Fragment, {
|
|
117
|
-
children: [position === 'start' ? /* notranslate needed while Google Translate will not fix zero-width space issue */_span || (_span = /*#__PURE__*/_jsx("span", {
|
|
117
|
+
children: [position === 'start' ? ( /* notranslate needed while Google Translate will not fix zero-width space issue */_span || (_span = /*#__PURE__*/_jsx("span", {
|
|
118
118
|
className: "notranslate",
|
|
119
119
|
children: "\u200B"
|
|
120
|
-
})) : null, children]
|
|
120
|
+
}))) : null, children]
|
|
121
121
|
})
|
|
122
122
|
}))
|
|
123
123
|
});
|
package/InputLabel/InputLabel.js
CHANGED
|
@@ -105,7 +105,11 @@ const InputLabelRoot = styled(FormLabel, {
|
|
|
105
105
|
// but it feels a better when it bleeds a bit on the left, so 32px.
|
|
106
106
|
maxWidth: 'calc(133% - 32px)',
|
|
107
107
|
transform: 'translate(14px, -9px) scale(0.75)'
|
|
108
|
-
})
|
|
108
|
+
}), ownerState.variant === 'standard' && {
|
|
109
|
+
'&:not(label) + div': {
|
|
110
|
+
marginTop: 16
|
|
111
|
+
}
|
|
112
|
+
}));
|
|
109
113
|
const InputLabel = /*#__PURE__*/React.forwardRef(function InputLabel(inProps, ref) {
|
|
110
114
|
const props = useThemeProps({
|
|
111
115
|
name: 'MuiInputLabel',
|
package/Modal/Modal.d.ts
CHANGED
|
@@ -93,6 +93,9 @@ export interface ModalOwnProps {
|
|
|
93
93
|
* An HTML element or function that returns one.
|
|
94
94
|
* The `container` will have the portal children appended to it.
|
|
95
95
|
*
|
|
96
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
97
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
98
|
+
*
|
|
96
99
|
* By default, it uses the body of the top-level document object,
|
|
97
100
|
* so it's simply `document.body` most of the time.
|
|
98
101
|
*/
|
package/Modal/Modal.js
CHANGED
|
@@ -276,6 +276,9 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes /* remove-proptypes */ =
|
|
|
276
276
|
* An HTML element or function that returns one.
|
|
277
277
|
* The `container` will have the portal children appended to it.
|
|
278
278
|
*
|
|
279
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
280
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
281
|
+
*
|
|
279
282
|
* By default, it uses the body of the top-level document object,
|
|
280
283
|
* so it's simply `document.body` most of the time.
|
|
281
284
|
*/
|
package/Popper/Popper.js
CHANGED
|
@@ -117,6 +117,9 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
|
|
|
117
117
|
* An HTML element or function that returns one.
|
|
118
118
|
* The `container` will have the portal children appended to it.
|
|
119
119
|
*
|
|
120
|
+
* You can also provide a callback, which is called in a React layout effect.
|
|
121
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
122
|
+
*
|
|
120
123
|
* By default, it uses the body of the top-level document object,
|
|
121
124
|
* so it's simply `document.body` most of the time.
|
|
122
125
|
*/
|
package/Select/Select.d.ts
CHANGED
|
@@ -11,8 +11,7 @@ export { SelectChangeEvent };
|
|
|
11
11
|
|
|
12
12
|
export interface SelectProps<Value = unknown>
|
|
13
13
|
extends StandardProps<InputProps, 'value' | 'onChange'>,
|
|
14
|
-
Omit<OutlinedInputProps, 'value' | 'onChange'
|
|
15
|
-
Pick<SelectInputProps<Value>, 'onChange'> {
|
|
14
|
+
Omit<OutlinedInputProps, 'value' | 'onChange'> {
|
|
16
15
|
/**
|
|
17
16
|
* If `true`, the width of the popover will automatically be set according to the items inside the
|
|
18
17
|
* menu, otherwise it will be at least the width of the select input.
|
package/Select/SelectInput.js
CHANGED
|
@@ -435,6 +435,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
435
435
|
const classes = useUtilityClasses(ownerState);
|
|
436
436
|
const paperProps = _extends({}, MenuProps.PaperProps, (_MenuProps$slotProps = MenuProps.slotProps) == null ? void 0 : _MenuProps$slotProps.paper);
|
|
437
437
|
const listboxId = useId();
|
|
438
|
+
const hiddenInputId = useId();
|
|
438
439
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
439
440
|
children: [/*#__PURE__*/_jsx(SelectSelect, _extends({
|
|
440
441
|
ref: handleDisplayRef,
|
|
@@ -465,7 +466,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
465
466
|
})), /*#__PURE__*/_jsx(SelectNativeInput, _extends({
|
|
466
467
|
"aria-invalid": error,
|
|
467
468
|
value: Array.isArray(value) ? value.join(',') : value,
|
|
468
|
-
name: name,
|
|
469
|
+
name: name != null ? name : hiddenInputId,
|
|
469
470
|
ref: inputRef,
|
|
470
471
|
"aria-hidden": true,
|
|
471
472
|
onChange: handleChange,
|
package/StepButton/StepButton.js
CHANGED
|
@@ -81,7 +81,7 @@ const StepButton = /*#__PURE__*/React.forwardRef(function StepButton(inProps, re
|
|
|
81
81
|
icon,
|
|
82
82
|
optional
|
|
83
83
|
};
|
|
84
|
-
const child = isMuiElement(children, ['StepLabel']) ? /*#__PURE__*/React.cloneElement(children, childProps) : /*#__PURE__*/_jsx(StepLabel, _extends({}, childProps, {
|
|
84
|
+
const child = isMuiElement(children, ['StepLabel']) ? ( /*#__PURE__*/React.cloneElement(children, childProps)) : /*#__PURE__*/_jsx(StepLabel, _extends({}, childProps, {
|
|
85
85
|
children: children
|
|
86
86
|
}));
|
|
87
87
|
return /*#__PURE__*/_jsx(StepButtonRoot, _extends({
|
package/index.js
CHANGED
|
@@ -40,12 +40,11 @@ var AccordionRoot = styled(Paper, {
|
|
|
40
40
|
return [_defineProperty({}, "& .".concat(accordionClasses.region), styles.region), styles.root, !ownerState.square && styles.rounded, !ownerState.disableGutters && styles.gutters];
|
|
41
41
|
}
|
|
42
42
|
})(function (_ref2) {
|
|
43
|
-
var _ref3;
|
|
44
43
|
var theme = _ref2.theme;
|
|
45
44
|
var transition = {
|
|
46
45
|
duration: theme.transitions.duration.shortest
|
|
47
46
|
};
|
|
48
|
-
return
|
|
47
|
+
return _defineProperty(_defineProperty({
|
|
49
48
|
position: 'relative',
|
|
50
49
|
transition: theme.transitions.create(['margin'], transition),
|
|
51
50
|
overflowAnchor: 'none',
|
|
@@ -66,7 +65,7 @@ var AccordionRoot = styled(Paper, {
|
|
|
66
65
|
display: 'none'
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
|
-
},
|
|
68
|
+
}, "&.".concat(accordionClasses.expanded), {
|
|
70
69
|
'&:before': {
|
|
71
70
|
opacity: 0
|
|
72
71
|
},
|
|
@@ -81,9 +80,9 @@ var AccordionRoot = styled(Paper, {
|
|
|
81
80
|
display: 'none'
|
|
82
81
|
}
|
|
83
82
|
}
|
|
84
|
-
}),
|
|
83
|
+
}), "&.".concat(accordionClasses.disabled), {
|
|
85
84
|
backgroundColor: (theme.vars || theme).palette.action.disabledBackground
|
|
86
|
-
})
|
|
85
|
+
});
|
|
87
86
|
}, function (_ref4) {
|
|
88
87
|
var theme = _ref4.theme,
|
|
89
88
|
ownerState = _ref4.ownerState;
|
|
@@ -34,24 +34,23 @@ var AccordionSummaryRoot = styled(ButtonBase, {
|
|
|
34
34
|
return styles.root;
|
|
35
35
|
}
|
|
36
36
|
})(function (_ref) {
|
|
37
|
-
var _extends2;
|
|
38
37
|
var theme = _ref.theme,
|
|
39
38
|
ownerState = _ref.ownerState;
|
|
40
39
|
var transition = {
|
|
41
40
|
duration: theme.transitions.duration.shortest
|
|
42
41
|
};
|
|
43
|
-
return _extends((
|
|
42
|
+
return _extends(_defineProperty(_defineProperty(_defineProperty({
|
|
44
43
|
display: 'flex',
|
|
45
44
|
minHeight: 48,
|
|
46
45
|
padding: theme.spacing(0, 2),
|
|
47
46
|
transition: theme.transitions.create(['min-height', 'background-color'], transition)
|
|
48
|
-
},
|
|
47
|
+
}, "&.".concat(accordionSummaryClasses.focusVisible), {
|
|
49
48
|
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
50
|
-
}),
|
|
49
|
+
}), "&.".concat(accordionSummaryClasses.disabled), {
|
|
51
50
|
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
52
|
-
}),
|
|
51
|
+
}), "&:hover:not(.".concat(accordionSummaryClasses.disabled, ")"), {
|
|
53
52
|
cursor: 'pointer'
|
|
54
|
-
}),
|
|
53
|
+
}), !ownerState.disableGutters && _defineProperty({}, "&.".concat(accordionSummaryClasses.expanded), {
|
|
55
54
|
minHeight: 64
|
|
56
55
|
}));
|
|
57
56
|
});
|
|
@@ -71,47 +71,47 @@ var AutocompleteRoot = styled('div', {
|
|
|
71
71
|
return [_defineProperty({}, "& .".concat(autocompleteClasses.tag), styles.tag), _defineProperty({}, "& .".concat(autocompleteClasses.tag), styles["tagSize".concat(capitalize(size))]), _defineProperty({}, "& .".concat(autocompleteClasses.inputRoot), styles.inputRoot), _defineProperty({}, "& .".concat(autocompleteClasses.input), styles.input), _defineProperty({}, "& .".concat(autocompleteClasses.input), inputFocused && styles.inputFocused), styles.root, fullWidth && styles.fullWidth, hasPopupIcon && styles.hasPopupIcon, hasClearIcon && styles.hasClearIcon];
|
|
72
72
|
}
|
|
73
73
|
})(function (_ref6) {
|
|
74
|
-
var
|
|
74
|
+
var _extends3;
|
|
75
75
|
var ownerState = _ref6.ownerState;
|
|
76
|
-
return _extends((
|
|
76
|
+
return _extends(_defineProperty(_defineProperty({}, "&.".concat(autocompleteClasses.focused, " .").concat(autocompleteClasses.clearIndicator), {
|
|
77
77
|
visibility: 'visible'
|
|
78
|
-
}),
|
|
78
|
+
}), '@media (pointer: fine)', _defineProperty({}, "&:hover .".concat(autocompleteClasses.clearIndicator), {
|
|
79
79
|
visibility: 'visible'
|
|
80
|
-
})),
|
|
80
|
+
})), ownerState.fullWidth && {
|
|
81
81
|
width: '100%'
|
|
82
|
-
}, (_extends3 = {}, _defineProperty(_extends3, "& .".concat(autocompleteClasses.tag), _extends({
|
|
82
|
+
}, (_extends3 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_extends3, "& .".concat(autocompleteClasses.tag), _extends({
|
|
83
83
|
margin: 3,
|
|
84
84
|
maxWidth: 'calc(100% - 6px)'
|
|
85
85
|
}, ownerState.size === 'small' && {
|
|
86
86
|
margin: 2,
|
|
87
87
|
maxWidth: 'calc(100% - 4px)'
|
|
88
|
-
})),
|
|
88
|
+
})), "& .".concat(autocompleteClasses.inputRoot), _defineProperty(_defineProperty(_defineProperty({
|
|
89
89
|
flexWrap: 'wrap'
|
|
90
|
-
},
|
|
90
|
+
}, ".".concat(autocompleteClasses.hasPopupIcon, "&, .").concat(autocompleteClasses.hasClearIcon, "&"), {
|
|
91
91
|
paddingRight: 26 + 4
|
|
92
|
-
}),
|
|
92
|
+
}), ".".concat(autocompleteClasses.hasPopupIcon, ".").concat(autocompleteClasses.hasClearIcon, "&"), {
|
|
93
93
|
paddingRight: 52 + 4
|
|
94
|
-
}),
|
|
94
|
+
}), "& .".concat(autocompleteClasses.input), {
|
|
95
95
|
width: 0,
|
|
96
96
|
minWidth: 30
|
|
97
|
-
})
|
|
97
|
+
})), "& .".concat(inputClasses.root), {
|
|
98
98
|
paddingBottom: 1,
|
|
99
99
|
'& .MuiInput-input': {
|
|
100
100
|
padding: '4px 4px 4px 0px'
|
|
101
101
|
}
|
|
102
|
-
}),
|
|
102
|
+
}), "& .".concat(inputClasses.root, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({}, "& .".concat(inputClasses.input), {
|
|
103
103
|
padding: '2px 4px 3px 0'
|
|
104
|
-
})),
|
|
104
|
+
})), "& .".concat(outlinedInputClasses.root), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
105
105
|
padding: 9
|
|
106
|
-
},
|
|
106
|
+
}, ".".concat(autocompleteClasses.hasPopupIcon, "&, .").concat(autocompleteClasses.hasClearIcon, "&"), {
|
|
107
107
|
paddingRight: 26 + 4 + 9
|
|
108
|
-
}),
|
|
108
|
+
}), ".".concat(autocompleteClasses.hasPopupIcon, ".").concat(autocompleteClasses.hasClearIcon, "&"), {
|
|
109
109
|
paddingRight: 52 + 4 + 9
|
|
110
|
-
}),
|
|
110
|
+
}), "& .".concat(autocompleteClasses.input), {
|
|
111
111
|
padding: '7.5px 4px 7.5px 5px'
|
|
112
|
-
}),
|
|
112
|
+
}), "& .".concat(autocompleteClasses.endAdornment), {
|
|
113
113
|
right: 9
|
|
114
|
-
})
|
|
114
|
+
})), "& .".concat(outlinedInputClasses.root, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({
|
|
115
115
|
// Don't specify paddingRight, as it overrides the default value set when there is only
|
|
116
116
|
// one of the popup or clear icon as the specificity is equal so the latter one wins
|
|
117
117
|
paddingTop: 6,
|
|
@@ -119,39 +119,39 @@ var AutocompleteRoot = styled('div', {
|
|
|
119
119
|
paddingLeft: 6
|
|
120
120
|
}, "& .".concat(autocompleteClasses.input), {
|
|
121
121
|
padding: '2.5px 4px 2.5px 8px'
|
|
122
|
-
})),
|
|
122
|
+
})), "& .".concat(filledInputClasses.root), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
123
123
|
paddingTop: 19,
|
|
124
124
|
paddingLeft: 8
|
|
125
|
-
},
|
|
125
|
+
}, ".".concat(autocompleteClasses.hasPopupIcon, "&, .").concat(autocompleteClasses.hasClearIcon, "&"), {
|
|
126
126
|
paddingRight: 26 + 4 + 9
|
|
127
|
-
}),
|
|
127
|
+
}), ".".concat(autocompleteClasses.hasPopupIcon, ".").concat(autocompleteClasses.hasClearIcon, "&"), {
|
|
128
128
|
paddingRight: 52 + 4 + 9
|
|
129
|
-
}),
|
|
129
|
+
}), "& .".concat(filledInputClasses.input), {
|
|
130
130
|
padding: '7px 4px'
|
|
131
|
-
}),
|
|
131
|
+
}), "& .".concat(autocompleteClasses.endAdornment), {
|
|
132
132
|
right: 9
|
|
133
|
-
})
|
|
133
|
+
})), "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({
|
|
134
134
|
paddingBottom: 1
|
|
135
135
|
}, "& .".concat(filledInputClasses.input), {
|
|
136
136
|
padding: '2.5px 4px'
|
|
137
|
-
})),
|
|
137
|
+
})), "& .".concat(inputBaseClasses.hiddenLabel), {
|
|
138
138
|
paddingTop: 8
|
|
139
|
-
}),
|
|
139
|
+
}), "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.hiddenLabel), _defineProperty({
|
|
140
140
|
paddingTop: 0,
|
|
141
141
|
paddingBottom: 0
|
|
142
142
|
}, "& .".concat(autocompleteClasses.input), {
|
|
143
143
|
paddingTop: 16,
|
|
144
144
|
paddingBottom: 17
|
|
145
|
-
})), _defineProperty(_extends3, "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.hiddenLabel, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({}, "& .".concat(autocompleteClasses.input), {
|
|
145
|
+
})), _defineProperty(_defineProperty(_extends3, "& .".concat(filledInputClasses.root, ".").concat(inputBaseClasses.hiddenLabel, ".").concat(inputBaseClasses.sizeSmall), _defineProperty({}, "& .".concat(autocompleteClasses.input), {
|
|
146
146
|
paddingTop: 8,
|
|
147
147
|
paddingBottom: 9
|
|
148
|
-
})),
|
|
148
|
+
})), "& .".concat(autocompleteClasses.input), _extends({
|
|
149
149
|
flexGrow: 1,
|
|
150
150
|
textOverflow: 'ellipsis',
|
|
151
151
|
opacity: 0
|
|
152
152
|
}, ownerState.inputFocused && {
|
|
153
153
|
opacity: 1
|
|
154
|
-
}))
|
|
154
|
+
}))));
|
|
155
155
|
});
|
|
156
156
|
var AutocompleteEndAdornment = styled('div', {
|
|
157
157
|
name: 'MuiAutocomplete',
|
|
@@ -254,7 +254,6 @@ var AutocompleteListbox = styled('div', {
|
|
|
254
254
|
return styles.listbox;
|
|
255
255
|
}
|
|
256
256
|
})(function (_ref14) {
|
|
257
|
-
var _ariaSelectedTru, _$concat4;
|
|
258
257
|
var theme = _ref14.theme;
|
|
259
258
|
return _defineProperty({
|
|
260
259
|
listStyle: 'none',
|
|
@@ -263,7 +262,7 @@ var AutocompleteListbox = styled('div', {
|
|
|
263
262
|
maxHeight: '40vh',
|
|
264
263
|
overflow: 'auto',
|
|
265
264
|
position: 'relative'
|
|
266
|
-
}, "& .".concat(autocompleteClasses.option), (
|
|
265
|
+
}, "& .".concat(autocompleteClasses.option), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
267
266
|
minHeight: 48,
|
|
268
267
|
display: 'flex',
|
|
269
268
|
overflow: 'hidden',
|
|
@@ -277,30 +276,30 @@ var AutocompleteListbox = styled('div', {
|
|
|
277
276
|
paddingBottom: 6,
|
|
278
277
|
paddingLeft: 16,
|
|
279
278
|
paddingRight: 16
|
|
280
|
-
},
|
|
279
|
+
}, theme.breakpoints.up('sm'), {
|
|
281
280
|
minHeight: 'auto'
|
|
282
|
-
}),
|
|
281
|
+
}), "&.".concat(autocompleteClasses.focused), {
|
|
283
282
|
backgroundColor: (theme.vars || theme).palette.action.hover,
|
|
284
283
|
// Reset on touch devices, it doesn't add specificity
|
|
285
284
|
'@media (hover: none)': {
|
|
286
285
|
backgroundColor: 'transparent'
|
|
287
286
|
}
|
|
288
|
-
}),
|
|
287
|
+
}), '&[aria-disabled="true"]', {
|
|
289
288
|
opacity: (theme.vars || theme).palette.action.disabledOpacity,
|
|
290
289
|
pointerEvents: 'none'
|
|
291
|
-
}),
|
|
290
|
+
}), "&.".concat(autocompleteClasses.focusVisible), {
|
|
292
291
|
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
293
|
-
}),
|
|
292
|
+
}), '&[aria-selected="true"]', _defineProperty(_defineProperty({
|
|
294
293
|
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
|
|
295
|
-
},
|
|
294
|
+
}, "&.".concat(autocompleteClasses.focused), {
|
|
296
295
|
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
297
296
|
// Reset on touch devices, it doesn't add specificity
|
|
298
297
|
'@media (hover: none)': {
|
|
299
298
|
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
300
299
|
}
|
|
301
|
-
}),
|
|
300
|
+
}), "&.".concat(autocompleteClasses.focusVisible), {
|
|
302
301
|
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
303
|
-
})
|
|
302
|
+
})));
|
|
304
303
|
});
|
|
305
304
|
var AutocompleteGroupLabel = styled(ListSubheader, {
|
|
306
305
|
name: 'MuiAutocomplete',
|
|
@@ -387,6 +386,7 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
|
|
|
387
386
|
return "+".concat(more);
|
|
388
387
|
} : _props$getLimitTagsTe,
|
|
389
388
|
getOptionDisabled = props.getOptionDisabled,
|
|
389
|
+
getOptionKey = props.getOptionKey,
|
|
390
390
|
getOptionLabelProp = props.getOptionLabel,
|
|
391
391
|
isOptionEqualToValue = props.isOptionEqualToValue,
|
|
392
392
|
groupBy = props.groupBy,
|
|
@@ -439,7 +439,7 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
|
|
|
439
439
|
_props$slotProps = props.slotProps,
|
|
440
440
|
slotProps = _props$slotProps === void 0 ? {} : _props$slotProps,
|
|
441
441
|
valueProp = props.value,
|
|
442
|
-
other = _objectWithoutProperties(props, ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"]);
|
|
442
|
+
other = _objectWithoutProperties(props, ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionKey", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"]);
|
|
443
443
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
444
444
|
var _useAutocomplete = useAutocomplete(_extends({}, props, {
|
|
445
445
|
componentName: 'Autocomplete'
|
|
@@ -841,6 +841,14 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptyp
|
|
|
841
841
|
* @returns {boolean}
|
|
842
842
|
*/
|
|
843
843
|
getOptionDisabled: PropTypes.func,
|
|
844
|
+
/**
|
|
845
|
+
* Used to determine the key for a given option.
|
|
846
|
+
* This can be useful when the labels of options are not unique (since labels are used as keys by default).
|
|
847
|
+
*
|
|
848
|
+
* @param {Value} option The option to get the key for.
|
|
849
|
+
* @returns {string | number}
|
|
850
|
+
*/
|
|
851
|
+
getOptionKey: PropTypes.func,
|
|
844
852
|
/**
|
|
845
853
|
* Used to determine the string value for a given option.
|
|
846
854
|
* It's used to fill the input (and the list box options if `renderOption` is not provided).
|