@mui/utils 5.11.7 → 5.11.11
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/CHANGELOG.md +263 -2
- package/ClassNameGenerator/ClassNameGenerator.d.ts +6 -6
- package/ClassNameGenerator/index.d.ts +1 -1
- package/HTMLElementType.d.ts +3 -3
- package/chainPropTypes.d.ts +2 -2
- package/composeClasses/composeClasses.d.ts +1 -1
- package/composeClasses/index.d.ts +1 -1
- package/createChainedFunction.d.ts +7 -7
- package/deepmerge.d.ts +5 -5
- package/elementAcceptingRef.d.ts +3 -3
- package/elementTypeAcceptingRef.d.ts +3 -3
- package/esm/generateUtilityClass/generateUtilityClass.js +1 -0
- package/exactProp.d.ts +2 -2
- package/formatMuiErrorMessage.d.ts +6 -6
- package/generateUtilityClass/generateUtilityClass.d.ts +2 -2
- package/generateUtilityClass/generateUtilityClass.js +1 -0
- package/generateUtilityClass/index.d.ts +2 -2
- package/generateUtilityClasses/generateUtilityClasses.d.ts +1 -1
- package/generateUtilityClasses/index.d.ts +1 -1
- package/getDisplayName.d.ts +8 -8
- package/getScrollbarSize.d.ts +1 -1
- package/index.d.ts +38 -38
- package/index.js +1 -1
- package/integerPropType.d.ts +7 -7
- package/isMuiElement.d.ts +1 -1
- package/legacy/generateUtilityClass/generateUtilityClass.js +1 -0
- package/legacy/index.js +1 -1
- package/modern/generateUtilityClass/generateUtilityClass.js +1 -0
- package/modern/index.js +1 -1
- package/ownerDocument.d.ts +1 -1
- package/ownerWindow.d.ts +1 -1
- package/package.json +2 -2
- package/ponyfillGlobal.d.ts +2 -2
- package/refType.d.ts +3 -3
- package/resolveProps.d.ts +12 -12
- package/setRef.d.ts +15 -15
- package/useEventCallback.d.ts +4 -4
- package/useEventCallback.spec.d.ts +1 -1
- package/useForkRef.d.ts +2 -2
- package/useId.d.ts +7 -7
- package/useIsFocusVisible.d.ts +9 -9
- package/usePreviousProps.d.ts +2 -2
- package/visuallyHidden.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,266 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.11.11
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.11.10..master -->
|
|
6
|
+
|
|
7
|
+
_Feb 27, 2023_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 📚 added API documentation for the slots in MUI Base and Joy UI by @hbjORbj, for e.g. [SliderUnstyled API](https://mui.com/base/api/slider-unstyled/#slots)
|
|
12
|
+
- other 🐛 bug fixes and 📚 documentation improvements.
|
|
13
|
+
|
|
14
|
+
### `@mui/material@5.11.11`
|
|
15
|
+
|
|
16
|
+
- ​<!-- 30 -->[Autocomplete] Adds `sx` prop to `ListboxProps` type (#36243) @sai6855
|
|
17
|
+
- ​<!-- 11 -->[material] Add global CSS class for `readOnly` prop (#32822) @jrparish
|
|
18
|
+
- ​<!-- 10 -->[Stack][material] Use createStack from the system (#33795) @mnajdova
|
|
19
|
+
- ​<!-- 07 -->[Select] Fix incorrect selecting of first element (#36024) @michaldudak
|
|
20
|
+
- ​<!-- 06 -->[Slider] Miscellaneous improvements (#35941) @ZeeshanTamboli
|
|
21
|
+
- ​<!-- 05 -->[Slider] Remove unnecessary `data-focusvisible` attribute (#36091) @ZeeshanTamboli
|
|
22
|
+
- ​<!-- 04 -->[Snackbar] Replace component logic with `useSnackbar` hook (#36272) @ZeeshanTamboli
|
|
23
|
+
- ​<!-- 03 -->[TextField] Fix floating label position (#36246) @oliviertassinari
|
|
24
|
+
- ​<!-- 13 -->[TextField] Fix floating label position (#36288) @oliviertassinari
|
|
25
|
+
|
|
26
|
+
### `@mui/base@5.0.0-alpha.119`
|
|
27
|
+
|
|
28
|
+
#### Breaking changes
|
|
29
|
+
|
|
30
|
+
- ​<!-- 29 -->[base] Remove `classes` prop from the Base components that have it (#36157) @hbjORbj
|
|
31
|
+
These are the components affected by this change: ModalUnstyled, SliderUnstyled, TablePaginationUnstyled and TablePaginationActionsUnstyled.
|
|
32
|
+
You can replace the `classes` prop by providing the class name prop directly to the prop via `slotProps`. Below is an example of how the migration should look like:
|
|
33
|
+
|
|
34
|
+
```diff
|
|
35
|
+
<TablePaginationUnstyled
|
|
36
|
+
- classes={{ toolbar: 'toolbar-classname', menuItem: 'menuItem-classname' }}
|
|
37
|
+
+ slotProps={{ toolbar: { className: 'toolbar-classname' }, menuItem: { className: 'menuItem-classname'}}}
|
|
38
|
+
/>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
- ​<!-- 28 -->[base] Move hooks to their own directories (#36235) @hbjORbj
|
|
42
|
+
Base hooks (e.g., `useSelect`) are no longer exported from `{Component}Unstyled` directories and instead they have their own directories.
|
|
43
|
+
Below is an example of how the migration should look like:
|
|
44
|
+
|
|
45
|
+
```diff
|
|
46
|
+
-import { useBadge } from '@mui/base/BadgeUnstyled';
|
|
47
|
+
+import useBadge from '@mui/base/useBadge';
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
You can use this [codemod](https://github.com/mui/material-ui/blob/master/packages/mui-codemod/README.md#base-hook-imports) to help with the migration.
|
|
51
|
+
|
|
52
|
+
#### Changes
|
|
53
|
+
|
|
54
|
+
- ​<!-- 31 -->[Autocomplete] Add docs interface for the hook (#36242) @HeVictor
|
|
55
|
+
- ​<!-- 09 -->[MenuUnstyled] Remove extra useMemo (#36265) @ivp-dev
|
|
56
|
+
- ​<!-- 31 -->[base] Export all slot prop overrides interfaces (#36323) @michaldudak
|
|
57
|
+
|
|
58
|
+
### `@mui/codemod@5.11.11`
|
|
59
|
+
|
|
60
|
+
- ​<!-- 35 -->[base] Codemod for hook directory migration (#36295) @hbjORbj
|
|
61
|
+
|
|
62
|
+
### `@mui/joy@5.0.0-alpha.69`
|
|
63
|
+
|
|
64
|
+
- ​<!-- 15 -->[Joy] Able to remove default tokens from theme types (#36006) @siriwatknp
|
|
65
|
+
- ​<!-- 14 -->[Joy] Fix modal dialog overflow viewport (#36103) @siriwatknp
|
|
66
|
+
- ​<!-- 13 -->[Joy] Select popup should have max-height (#36156) @Vivek-Prajapatii
|
|
67
|
+
- ​<!-- 12 -->[Joy] Fix `ListDivider` to change semantic based on `List` (#36266) @siriwatknp
|
|
68
|
+
|
|
69
|
+
### Docs
|
|
70
|
+
|
|
71
|
+
- ​<!-- 27 -->[docs][base] List slots in API documentation (#36104) @hbjORbj
|
|
72
|
+
- ​<!-- 26 -->[docs] Add missing sandbox adapter deps resolving (#36291) @LukasTy
|
|
73
|
+
- ​<!-- 25 -->[docs] Allow to pass navigation bar banner from outside (#36299) @MBilalShafi
|
|
74
|
+
- ​<!-- 24 -->[docs] Fix code on the Working with Tailwind CSS guide (#36090) @mnajdova
|
|
75
|
+
- ​<!-- 23 -->[docs] Remove See Slots Section text from Material UI slots description (#36284) @hbjORbj
|
|
76
|
+
- ​<!-- 22 -->[docs] Fix emotion warning `:first-child` (#36263) @siriwatknp
|
|
77
|
+
- ​<!-- 21 -->[docs][joy] Improve the descriptions of props in API docs (#36307) @hbjORbj
|
|
78
|
+
- ​<!-- 20 -->[docs][joy] List slots in API documentation (#36271) @hbjORbj
|
|
79
|
+
- ​<!-- 19 -->[docs][joy] Build API documentations (#36008) @hbjORbj
|
|
80
|
+
- ​<!-- 18 -->[examples] Update Next.js examples to use built-in font (#36315) @Juneezee
|
|
81
|
+
- ​<!-- 17 -->[examples] Update curl link in `material-next-ts-v4-v5-migration` example README (#36321) @ZeeshanTamboli
|
|
82
|
+
- ​<!-- 16 -->[examples] Convert Next.js \_document class components to function components (#36109) @ossan-engineer
|
|
83
|
+
|
|
84
|
+
### Core
|
|
85
|
+
|
|
86
|
+
- ​<!-- 08 -->[Rating] Add a comment in Rating component to use `readOnly` state class (#36357) @ZeeshanTamboli
|
|
87
|
+
- ​<!-- 02 -->[website] Fix broken links to role levels (#36333) @oliviertassinari
|
|
88
|
+
- ​<!-- 01 -->[website] Sync gold sponsors (#36312) @oliviertassinari
|
|
89
|
+
|
|
90
|
+
All contributors of this release in alphabetical order: @hbjORbj, @HeVictor, @ivp-dev, @jrparish, @Juneezee, @LukasTy, @MBilalShafi, @michaldudak, @mnajdova, @oliviertassinari, @ossan-engineer, @sai6855, @siriwatknp, @Vivek-Prajapatii, @ZeeshanTamboli
|
|
91
|
+
|
|
92
|
+
## 5.11.10
|
|
93
|
+
|
|
94
|
+
<!-- generated comparing v5.11.9..master -->
|
|
95
|
+
|
|
96
|
+
_Feb 20, 2023_
|
|
97
|
+
|
|
98
|
+
A big thanks to the 11 contributors who made this release possible.
|
|
99
|
+
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
100
|
+
|
|
101
|
+
### `@mui/material@5.11.10`
|
|
102
|
+
|
|
103
|
+
- ​<!-- 22 -->[Avatar] Fix ownerState usage with styleOverrides when fallback is used (#36228) @sai6855
|
|
104
|
+
- ​<!-- 21 -->[Badge][material] Replace `BadgeUnstyled` with `useBadge` hook (#36158) @hbjORbj
|
|
105
|
+
- ​<!-- 03 -->[Switch] Fix DOM warning when `type` isn't `checkbox` or `radio` (#36170) @dani-mp
|
|
106
|
+
- ​<!-- 02 -->[TextareaAutosize] Convert code to TypeScript (#35862) @sai6855
|
|
107
|
+
- ​<!-- 01 -->[useMediaQuery] Fix behavior of noSsr with React 18 (#36056) @oliviertassinari
|
|
108
|
+
|
|
109
|
+
### `@mui/joy@5.0.0-alpha.68`
|
|
110
|
+
|
|
111
|
+
- ​<!-- 05 -->[Joy] Add `zIndex` to theme (#36236) @siriwatknp
|
|
112
|
+
- ​<!-- 04 -->[Joy] Remove transition from all components (#35952) @hbjORbj
|
|
113
|
+
|
|
114
|
+
### Docs
|
|
115
|
+
|
|
116
|
+
- ​<!-- 20 -->[docs][base] Fix base Input demos for Safari (#36213) @mj12albert
|
|
117
|
+
- ​<!-- 16 -->[docs] Fix 301 links @oliviertassinari
|
|
118
|
+
- ​<!-- 15 -->[docs] Fix modal transition demos (#36137) @oliviertassinari
|
|
119
|
+
- ​<!-- 14 -->[docs] Update links to pt examples (#36237) @Aleff13
|
|
120
|
+
- ​<!-- 13 -->[docs] Update custom Typography variants example (#36185) @mj12albert
|
|
121
|
+
- ​<!-- 12 -->[docs] Change markdown numbering syntax (#36187) @mj12albert
|
|
122
|
+
- ​<!-- 11 -->[docs] Fix switch alignment in `Disabled tree items` section in Tree View docs (#36217) @PunitSoniME
|
|
123
|
+
- ​<!-- 10 -->[docs] Standardize example names (#36112) @samuelsycamore
|
|
124
|
+
- ​<!-- 09 -->[docs] Fix typo @oliviertassinari
|
|
125
|
+
- ​<!-- 08 -->[docs] Fix markdown table alignments (#36136) @oliviertassinari
|
|
126
|
+
- ​<!-- 07 -->[docs] Small color tweaks to the docs search bar (#36160) @danilo-leal
|
|
127
|
+
- ​<!-- 06 -->[docs][joy] Update class name prefixes in the `Anatomy` section (#36210) @ZeeshanTamboli
|
|
128
|
+
|
|
129
|
+
### Core
|
|
130
|
+
|
|
131
|
+
- ​<!-- 19 -->[core] Migrate nprogress to emotion (#36181) @siriwatknp
|
|
132
|
+
- ​<!-- 18 -->[core] Enforce namespace import for ReactDOM (#36208) @mj12albert
|
|
133
|
+
- ​<!-- 17 -->[core] Fix deploy preview links (#36203) @siriwatknp
|
|
134
|
+
|
|
135
|
+
All contributors of this release in alphabetical order: @Aleff13, @dani-mp, @danilo-leal, @hbjORbj, @mj12albert, @oliviertassinari, @PunitSoniME, @sai6855, @samuelsycamore, @siriwatknp, @ZeeshanTamboli
|
|
136
|
+
|
|
137
|
+
## 5.11.9
|
|
138
|
+
|
|
139
|
+
<!-- generated comparing v5.11.8..master -->
|
|
140
|
+
|
|
141
|
+
_Feb 14, 2023_
|
|
142
|
+
|
|
143
|
+
A big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:
|
|
144
|
+
|
|
145
|
+
- 🐛 @rangoo94, @sai6855, and @michaldudak fixed a couple of bugs in the Autocomplete component (#36116, #35640, #36076, #36088)
|
|
146
|
+
- many other 🐛 bug fixes and 📚 documentation improvements
|
|
147
|
+
|
|
148
|
+
### `@mui/material@5.11.9`
|
|
149
|
+
|
|
150
|
+
- [AppBar] Fix joinVars() not handling undefined (#36128) @donaldnevermore
|
|
151
|
+
- [Autocomplete] Fix tag removal regression (#36116) @michaldudak
|
|
152
|
+
- [Autocomplete] Correct padding of filled Autocomplete (#35640) @michaldudak
|
|
153
|
+
- [Grid][Stack] classNames prefixed with Mui (#36167) @sai6855
|
|
154
|
+
|
|
155
|
+
### `@mui/styled-engine@5.11.9`
|
|
156
|
+
|
|
157
|
+
- [StyledEngineProvider] Fix issue with cache not being defined (#36162) @mnajdova
|
|
158
|
+
|
|
159
|
+
### `@mui/joy@5.0.0-alpha.67`
|
|
160
|
+
|
|
161
|
+
- [Joy] Add order dashboard template (#36081) @siriwatknp
|
|
162
|
+
- [Joy] Remove classes prop from the components that have it (#36159) @hbjORbj
|
|
163
|
+
- [Joy] Miscellaneous fixes (#36163) @siriwatknp
|
|
164
|
+
|
|
165
|
+
### `@mui/base@5.0.0-alpha.118`
|
|
166
|
+
|
|
167
|
+
- [base] Override the types of `slotProps` per slot (#35964) @hbjORbj
|
|
168
|
+
- [Select][base] Prevent unnecessary rerendering of Select options (#35946) @michaldudak
|
|
169
|
+
- [Select][base] Update the generated docs (#36183) @michaldudak
|
|
170
|
+
- [useAutocomplete] Pass only valid values for the getOptionLabel prop (#36088) @rangoo94
|
|
171
|
+
- [useAutocomplete] Fix `useAutocomplete` disabled prop not disabling the input (#36076) @sai6855
|
|
172
|
+
- [useInput] Add return value interface (#36036) @Shorifpatwary
|
|
173
|
+
- [UseTabPanel] Add explicit return type (#36053) @Shorifpatwary
|
|
174
|
+
- [useTabsList] Add explicit return type (#36048) @sai6855
|
|
175
|
+
- [Tab] Add explicit return type to useTab (#36046) @sai6855
|
|
176
|
+
|
|
177
|
+
### `@mui/material-next@6.0.0-alpha.75`
|
|
178
|
+
|
|
179
|
+
- [Material You] Use `md` as a CSS var prefix (#36177) @siriwatknp
|
|
180
|
+
|
|
181
|
+
### Docs
|
|
182
|
+
|
|
183
|
+
- [docs] Fix the prop type regression on the API pages (#36168) @mnajdova
|
|
184
|
+
- [docs] Fix virtualized table column resizing (#36066) @petyosi
|
|
185
|
+
- [docs] Fix react-spring demos (#36023) @oliviertassinari
|
|
186
|
+
- [docs] Fix classname mismatch on Joy docs (#36127) @siriwatknp
|
|
187
|
+
- [docs] Fix typo in the released version of @mui/styled-engine (#36121) @m4theushw
|
|
188
|
+
- [docs] Fix demos showing TypeScript instead of JavaScript (#35850) @mj12albert
|
|
189
|
+
- [docs] Update release instructions (#36113) @mj12albert
|
|
190
|
+
- [docs] Rename `v6-alpha` to `v6-next` in navigation (#36102) @LukasTy
|
|
191
|
+
- [docs] Revise Joy UI "Input" page (#35970) @LadyBluenotes
|
|
192
|
+
- [docs] Revise Joy UI "Typography" page (#35868) @LadyBluenotes
|
|
193
|
+
|
|
194
|
+
### Examples
|
|
195
|
+
|
|
196
|
+
- [examples][vitejs] Load Roboto font (#35678) @oliv37
|
|
197
|
+
|
|
198
|
+
### Core
|
|
199
|
+
|
|
200
|
+
- [blog] Fix the look and feel of the media description (#36069) @oliviertassinari
|
|
201
|
+
- [core] Add default preview url (#36118) @siriwatknp
|
|
202
|
+
- [core] Migrate all the internals exported by `tests/utils/index.js` to TypeScript (#35382) @flaviendelangle
|
|
203
|
+
- [core] Convert the waterfall module to an internal package (#35323) @michaldudak
|
|
204
|
+
- [website] Fix homepage MD theme demo (#36027) @oliviertassinari
|
|
205
|
+
- [website] Revise the Lead Designer role job ad (#35912) @danilo-leal
|
|
206
|
+
- [POC] Add deploy preview to PR body (#35995) @siriwatknp
|
|
207
|
+
|
|
208
|
+
All contributors of this release in alphabetical order: @danilo-leal, @donaldnevermore, @flaviendelangle, @hbjORbj, @LadyBluenotes, @LukasTy, @m4theushw, @michaldudak, @mj12albert, @mnajdova, @oliv37, @oliviertassinari, @petyosi, @rangoo94, @sai6855, @Shorifpatwary, @siriwatknp
|
|
209
|
+
|
|
210
|
+
## 5.11.8
|
|
211
|
+
|
|
212
|
+
<!-- generated comparing v5.11.7..master -->
|
|
213
|
+
|
|
214
|
+
_Feb 7, 2023_
|
|
215
|
+
|
|
216
|
+
A big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
217
|
+
|
|
218
|
+
- @siriwatknp added a new [`Sign In` template](https://mui.com/joy-ui/getting-started/templates/sign-in-side/) to Joy UI (#36019)
|
|
219
|
+
- 📚 Documentation improvements and 🐛 bug fixes as usual
|
|
220
|
+
|
|
221
|
+
### `@mui/material@5.11.8`
|
|
222
|
+
|
|
223
|
+
- ​<!-- 10 -->[FormLabel] Export `FormLabelOwnProps` from `FormLabel` to fix type error (#36057) @yoskeoka
|
|
224
|
+
|
|
225
|
+
### `@mui/joy@5.0.0-alpha.66`
|
|
226
|
+
|
|
227
|
+
- ​<!-- 09 -->[Joy] Miscellaneous fixes (#36073) @siriwatknp
|
|
228
|
+
- ​<!-- 08 -->[Joy] Add sign-in side template (#36019) @siriwatknp
|
|
229
|
+
- ​<!-- 07 -->[Joy] Add missing `Table` export from root (#36010) @sai6855
|
|
230
|
+
|
|
231
|
+
### `@mui/system@5.11.8`
|
|
232
|
+
|
|
233
|
+
- ​<!-- 05 -->[System] Fix nested grid v2 (#35994) @siriwatknp
|
|
234
|
+
|
|
235
|
+
### `@mui/styled-engine@5.11.8`
|
|
236
|
+
|
|
237
|
+
- ​<!-- 06 -->[styled-engine] Create cache only if `document` is available (#36001) @m4theushw
|
|
238
|
+
|
|
239
|
+
### Docs
|
|
240
|
+
|
|
241
|
+
- ​<!-- 23 -->[blog] Fix dark mode support (#35969) @oliviertassinari
|
|
242
|
+
- ​<!-- 19 -->[docs] Add banner pointing to "Whats new" in MUI X page (#36074) @joserodolfofreitas
|
|
243
|
+
- ​<!-- 18 -->[docs] Revert unintended change @oliviertassinari
|
|
244
|
+
- ​<!-- 17 -->[docs] [Joy] Fixed a typo in `customizing theme tokens` (#36067) @badalsaibo
|
|
245
|
+
- ​<!-- 16 -->[docs] Improve inline preview's information (#35974) @oliviertassinari
|
|
246
|
+
- ​<!-- 15 -->[docs] Fix wrong v5 migration instructions (#36022) @oliviertassinari
|
|
247
|
+
- ​<!-- 14 -->[docs] Fix autocomplete render group key warning in the demo (#36025) @chuanyu0201
|
|
248
|
+
- ​<!-- 13 -->[docs] Add hooks API pages for MUI Base (#35828) @mnajdova
|
|
249
|
+
- ​<!-- 12 -->[docs] Fix grammar typo (#36016) @alexownejazayeri
|
|
250
|
+
- ​<!-- 11 -->[docs][joy] Add JSDoc for the `AutocompleteProps` type (#36039) @ArthurPedroti
|
|
251
|
+
|
|
252
|
+
### Core
|
|
253
|
+
|
|
254
|
+
- ​<!-- 22 -->[core] Make it easier to find who is importing specific files (#35896) @oliviertassinari
|
|
255
|
+
- ​<!-- 21 -->[core] Fix SEO redirections issues (#36041) @oliviertassinari
|
|
256
|
+
- ​<!-- 20 -->[core] Fix a typo in the comment in setup test files (#36014) @ZeeshanTamboli
|
|
257
|
+
- ​<!-- 04 -->[typescript] Explicitly define the component return types (#36013) @michaldudak
|
|
258
|
+
- ​<!-- 03 -->[website] Fix layout shift (#36070) @oliviertassinari
|
|
259
|
+
- ​<!-- 02 -->[website] Revise the Lead Designer role job ad (v1) (#36068) @oliviertassinari
|
|
260
|
+
- ​<!-- 01 -->[website] Add Albert to the about page (#35954) @mj12albert
|
|
261
|
+
|
|
262
|
+
All contributors of this release in alphabetical order: @alexownejazayeri, @ArthurPedroti, @badalsaibo, @chuanyu0201, @joserodolfofreitas, @m4theushw, @michaldudak, @mj12albert, @mnajdova, @oliviertassinari, @sai6855, @siriwatknp, @yoskeoka, @ZeeshanTamboli
|
|
263
|
+
|
|
3
264
|
## 5.11.7
|
|
4
265
|
|
|
5
266
|
<!-- generated comparing v5.11.6..master -->
|
|
@@ -3387,7 +3648,7 @@ _Feb 1, 2022_
|
|
|
3387
3648
|
|
|
3388
3649
|
A big thanks to the 22 contributors who made this release possible. Here are some highlights ✨:
|
|
3389
3650
|
|
|
3390
|
-
- 🛠 @goncalovf added an example project using [
|
|
3651
|
+
- 🛠 @goncalovf added an example project using [Material UI with Vite.js](https://github.com/mui/material-ui/tree/master/examples/material-vite) (#28241)
|
|
3391
3652
|
- Number of 🐛 bug fixes and 📚 documentation improvements.
|
|
3392
3653
|
|
|
3393
3654
|
### `@mui/material@5.4.0`
|
|
@@ -7363,7 +7624,7 @@ A big thanks to the 26 contributors who made this release possible. Here are som
|
|
|
7363
7624
|
|
|
7364
7625
|
```diff
|
|
7365
7626
|
-<Tabs />
|
|
7366
|
-
+<Tabs indicatorColor="
|
|
7627
|
+
+<Tabs indicatorColor="secondary" textColor="inherit" />
|
|
7367
7628
|
```
|
|
7368
7629
|
|
|
7369
7630
|
#### Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const ClassNameGenerator: {
|
|
2
|
-
configure(generator: (componentName: string) => string): void;
|
|
3
|
-
generate(componentName: string): string;
|
|
4
|
-
reset(): void;
|
|
5
|
-
};
|
|
6
|
-
export default ClassNameGenerator;
|
|
1
|
+
declare const ClassNameGenerator: {
|
|
2
|
+
configure(generator: (componentName: string) => string): void;
|
|
3
|
+
generate(componentName: string): string;
|
|
4
|
+
reset(): void;
|
|
5
|
+
};
|
|
6
|
+
export default ClassNameGenerator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './ClassNameGenerator';
|
|
1
|
+
export { default } from './ClassNameGenerator';
|
package/HTMLElementType.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export default function HTMLElementType(props: {
|
|
2
|
-
[key: string]: unknown;
|
|
3
|
-
}, propName: string, componentName: string, location: string, propFullName: string): Error | null;
|
|
1
|
+
export default function HTMLElementType(props: {
|
|
2
|
+
[key: string]: unknown;
|
|
3
|
+
}, propName: string, componentName: string, location: string, propFullName: string): Error | null;
|
package/chainPropTypes.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
export default function chainPropTypes<A, B>(propType1: PropTypes.Validator<A>, propType2: PropTypes.Validator<B>): PropTypes.Validator<A & B>;
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
export default function chainPropTypes<A, B>(propType1: PropTypes.Validator<A>, propType2: PropTypes.Validator<B>): PropTypes.Validator<A & B>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function composeClasses<ClassKey extends string>(slots: Record<ClassKey, ReadonlyArray<string | false | undefined | null>>, getUtilityClass: (slot: string) => string, classes: Record<string, string> | undefined): Record<ClassKey, string>;
|
|
1
|
+
export default function composeClasses<ClassKey extends string>(slots: Record<ClassKey, ReadonlyArray<string | false | undefined | null>>, getUtilityClass: (slot: string) => string, classes: Record<string, string> | undefined): Record<ClassKey, string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './composeClasses';
|
|
1
|
+
export { default } from './composeClasses';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Safe chained function.
|
|
3
|
-
*
|
|
4
|
-
* Will only create a new function if needed,
|
|
5
|
-
* otherwise will pass back existing functions or null.
|
|
6
|
-
*/
|
|
7
|
-
export default function createChainedFunction<Args extends any[], This>(...funcs: Array<(this: This, ...args: Args) => any>): (this: This, ...args: Args) => void;
|
|
1
|
+
/**
|
|
2
|
+
* Safe chained function.
|
|
3
|
+
*
|
|
4
|
+
* Will only create a new function if needed,
|
|
5
|
+
* otherwise will pass back existing functions or null.
|
|
6
|
+
*/
|
|
7
|
+
export default function createChainedFunction<Args extends any[], This>(...funcs: Array<(this: This, ...args: Args) => any>): (this: This, ...args: Args) => void;
|
package/deepmerge.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare function isPlainObject(item: unknown): item is Record<keyof any, unknown>;
|
|
2
|
-
export interface DeepmergeOptions {
|
|
3
|
-
clone?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export default function deepmerge<T>(target: T, source: unknown, options?: DeepmergeOptions): T;
|
|
1
|
+
export declare function isPlainObject(item: unknown): item is Record<keyof any, unknown>;
|
|
2
|
+
export interface DeepmergeOptions {
|
|
3
|
+
clone?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export default function deepmerge<T>(target: T, source: unknown, options?: DeepmergeOptions): T;
|
package/elementAcceptingRef.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
declare const elementAcceptingRef: PropTypes.Requireable<unknown>;
|
|
3
|
-
export default elementAcceptingRef;
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
declare const elementAcceptingRef: PropTypes.Requireable<unknown>;
|
|
3
|
+
export default elementAcceptingRef;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
declare const _default: PropTypes.Validator<PropTypes.ReactComponentLike | null | undefined>;
|
|
3
|
-
export default _default;
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
declare const _default: PropTypes.Validator<PropTypes.ReactComponentLike | null | undefined>;
|
|
3
|
+
export default _default;
|
package/exactProp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValidationMap } from 'prop-types';
|
|
2
|
-
export default function exactProp<T>(propTypes: ValidationMap<T>): ValidationMap<T>;
|
|
1
|
+
import { ValidationMap } from 'prop-types';
|
|
2
|
+
export default function exactProp<T>(propTypes: ValidationMap<T>): ValidationMap<T>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WARNING: Don't import this directly.
|
|
3
|
-
* Use `MuiError` from `@mui/utils/macros/MuiError.macro` instead.
|
|
4
|
-
* @param {number} code
|
|
5
|
-
*/
|
|
6
|
-
export default function formatMuiErrorMessage(code: number): string;
|
|
1
|
+
/**
|
|
2
|
+
* WARNING: Don't import this directly.
|
|
3
|
+
* Use `MuiError` from `@mui/utils/macros/MuiError.macro` instead.
|
|
4
|
+
* @param {number} code
|
|
5
|
+
*/
|
|
6
|
+
export default function formatMuiErrorMessage(code: number): string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type GlobalStateSlot = 'active' | 'checked' | 'completed' | 'disabled' | 'error' | 'expanded' | 'focused' | 'focusVisible' | 'required' | 'selected';
|
|
2
|
-
export default function generateUtilityClass(componentName: string, slot: string, globalStatePrefix?: string): string;
|
|
1
|
+
export type GlobalStateSlot = 'active' | 'checked' | 'completed' | 'disabled' | 'readOnly' | 'error' | 'expanded' | 'focused' | 'focusVisible' | 'required' | 'selected';
|
|
2
|
+
export default function generateUtilityClass(componentName: string, slot: string, globalStatePrefix?: string): string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from './generateUtilityClass';
|
|
2
|
-
export * from './generateUtilityClass';
|
|
1
|
+
export { default } from './generateUtilityClass';
|
|
2
|
+
export * from './generateUtilityClass';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function generateUtilityClasses<T extends string>(componentName: string, slots: T[], globalStatePrefix?: string): Record<T, string>;
|
|
1
|
+
export default function generateUtilityClasses<T extends string>(componentName: string, slots: T[], globalStatePrefix?: string): Record<T, string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './generateUtilityClasses';
|
|
1
|
+
export { default } from './generateUtilityClasses';
|
package/getDisplayName.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare function getFunctionName(fn: Function): string;
|
|
3
|
-
/**
|
|
4
|
-
* cherry-pick from
|
|
5
|
-
* https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js
|
|
6
|
-
* originally forked from recompose/getDisplayName with added IE11 support
|
|
7
|
-
*/
|
|
8
|
-
export default function getDisplayName(Component: React.ElementType): string | undefined;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare function getFunctionName(fn: Function): string;
|
|
3
|
+
/**
|
|
4
|
+
* cherry-pick from
|
|
5
|
+
* https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js
|
|
6
|
+
* originally forked from recompose/getDisplayName with added IE11 support
|
|
7
|
+
*/
|
|
8
|
+
export default function getDisplayName(Component: React.ElementType): string | undefined;
|
package/getScrollbarSize.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function getScrollbarSize(doc: Document): number;
|
|
1
|
+
export default function getScrollbarSize(doc: Document): number;
|
package/index.d.ts
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
export { default as chainPropTypes } from './chainPropTypes';
|
|
2
|
-
export { default as deepmerge } from './deepmerge';
|
|
3
|
-
export { isPlainObject } from './deepmerge';
|
|
4
|
-
export { default as elementAcceptingRef } from './elementAcceptingRef';
|
|
5
|
-
export { default as elementTypeAcceptingRef } from './elementTypeAcceptingRef';
|
|
6
|
-
export { default as exactProp } from './exactProp';
|
|
7
|
-
export { default as formatMuiErrorMessage } from './formatMuiErrorMessage';
|
|
8
|
-
export { default as getDisplayName } from './getDisplayName';
|
|
9
|
-
export { default as HTMLElementType } from './HTMLElementType';
|
|
10
|
-
export { default as ponyfillGlobal } from './ponyfillGlobal';
|
|
11
|
-
export { default as refType } from './refType';
|
|
12
|
-
export { default as unstable_capitalize } from './capitalize';
|
|
13
|
-
export { default as unstable_createChainedFunction } from './createChainedFunction';
|
|
14
|
-
export { default as unstable_debounce } from './debounce';
|
|
15
|
-
export { default as unstable_deprecatedPropType } from './deprecatedPropType';
|
|
16
|
-
export { default as unstable_isMuiElement } from './isMuiElement';
|
|
17
|
-
export { default as unstable_ownerDocument } from './ownerDocument';
|
|
18
|
-
export { default as unstable_ownerWindow } from './ownerWindow';
|
|
19
|
-
export { default as unstable_requirePropFactory } from './requirePropFactory';
|
|
20
|
-
export { default as unstable_setRef } from './setRef';
|
|
21
|
-
export { default as unstable_useEnhancedEffect } from './useEnhancedEffect';
|
|
22
|
-
export { default as unstable_useId } from './useId';
|
|
23
|
-
export { default as unstable_unsupportedProp } from './unsupportedProp';
|
|
24
|
-
export { default as unstable_useControlled } from './useControlled';
|
|
25
|
-
export { default as unstable_useEventCallback } from './useEventCallback';
|
|
26
|
-
export { default as unstable_useForkRef } from './useForkRef';
|
|
27
|
-
export { default as unstable_useIsFocusVisible } from './useIsFocusVisible';
|
|
28
|
-
export { default as unstable_getScrollbarSize } from './getScrollbarSize';
|
|
29
|
-
export { detectScrollType as unstable_detectScrollType, getNormalizedScrollLeft as unstable_getNormalizedScrollLeft, } from './scrollLeft';
|
|
30
|
-
export { default as usePreviousProps } from './usePreviousProps';
|
|
31
|
-
export { default as visuallyHidden } from './visuallyHidden';
|
|
32
|
-
export { default as integerPropType } from './integerPropType';
|
|
33
|
-
export { default as internal_resolveProps } from './resolveProps';
|
|
34
|
-
export { default as unstable_composeClasses } from './composeClasses';
|
|
35
|
-
export { default as unstable_generateUtilityClass } from './generateUtilityClass';
|
|
36
|
-
export * from './generateUtilityClass';
|
|
37
|
-
export { default as unstable_generateUtilityClasses } from './generateUtilityClasses';
|
|
38
|
-
export { default as unstable_ClassNameGenerator } from './ClassNameGenerator';
|
|
1
|
+
export { default as chainPropTypes } from './chainPropTypes';
|
|
2
|
+
export { default as deepmerge } from './deepmerge';
|
|
3
|
+
export { isPlainObject } from './deepmerge';
|
|
4
|
+
export { default as elementAcceptingRef } from './elementAcceptingRef';
|
|
5
|
+
export { default as elementTypeAcceptingRef } from './elementTypeAcceptingRef';
|
|
6
|
+
export { default as exactProp } from './exactProp';
|
|
7
|
+
export { default as formatMuiErrorMessage } from './formatMuiErrorMessage';
|
|
8
|
+
export { default as getDisplayName } from './getDisplayName';
|
|
9
|
+
export { default as HTMLElementType } from './HTMLElementType';
|
|
10
|
+
export { default as ponyfillGlobal } from './ponyfillGlobal';
|
|
11
|
+
export { default as refType } from './refType';
|
|
12
|
+
export { default as unstable_capitalize } from './capitalize';
|
|
13
|
+
export { default as unstable_createChainedFunction } from './createChainedFunction';
|
|
14
|
+
export { default as unstable_debounce } from './debounce';
|
|
15
|
+
export { default as unstable_deprecatedPropType } from './deprecatedPropType';
|
|
16
|
+
export { default as unstable_isMuiElement } from './isMuiElement';
|
|
17
|
+
export { default as unstable_ownerDocument } from './ownerDocument';
|
|
18
|
+
export { default as unstable_ownerWindow } from './ownerWindow';
|
|
19
|
+
export { default as unstable_requirePropFactory } from './requirePropFactory';
|
|
20
|
+
export { default as unstable_setRef } from './setRef';
|
|
21
|
+
export { default as unstable_useEnhancedEffect } from './useEnhancedEffect';
|
|
22
|
+
export { default as unstable_useId } from './useId';
|
|
23
|
+
export { default as unstable_unsupportedProp } from './unsupportedProp';
|
|
24
|
+
export { default as unstable_useControlled } from './useControlled';
|
|
25
|
+
export { default as unstable_useEventCallback } from './useEventCallback';
|
|
26
|
+
export { default as unstable_useForkRef } from './useForkRef';
|
|
27
|
+
export { default as unstable_useIsFocusVisible } from './useIsFocusVisible';
|
|
28
|
+
export { default as unstable_getScrollbarSize } from './getScrollbarSize';
|
|
29
|
+
export { detectScrollType as unstable_detectScrollType, getNormalizedScrollLeft as unstable_getNormalizedScrollLeft, } from './scrollLeft';
|
|
30
|
+
export { default as usePreviousProps } from './usePreviousProps';
|
|
31
|
+
export { default as visuallyHidden } from './visuallyHidden';
|
|
32
|
+
export { default as integerPropType } from './integerPropType';
|
|
33
|
+
export { default as internal_resolveProps } from './resolveProps';
|
|
34
|
+
export { default as unstable_composeClasses } from './composeClasses';
|
|
35
|
+
export { default as unstable_generateUtilityClass } from './generateUtilityClass';
|
|
36
|
+
export * from './generateUtilityClass';
|
|
37
|
+
export { default as unstable_generateUtilityClasses } from './generateUtilityClasses';
|
|
38
|
+
export { default as unstable_ClassNameGenerator } from './ClassNameGenerator';
|
package/index.js
CHANGED
package/integerPropType.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export function getTypeByValue(value: any): any;
|
|
2
|
-
declare function _default(props: any, propName: any, ...other: any[]): RangeError | null;
|
|
3
|
-
declare namespace _default {
|
|
4
|
-
export { requiredInteger as isRequired };
|
|
5
|
-
}
|
|
6
|
-
export default _default;
|
|
7
|
-
declare function requiredInteger(props: any, propName: any, componentName: any, location: any): RangeError | null;
|
|
1
|
+
export function getTypeByValue(value: any): any;
|
|
2
|
+
declare function _default(props: any, propName: any, ...other: any[]): RangeError | null;
|
|
3
|
+
declare namespace _default {
|
|
4
|
+
export { requiredInteger as isRequired };
|
|
5
|
+
}
|
|
6
|
+
export default _default;
|
|
7
|
+
declare function requiredInteger(props: any, propName: any, componentName: any, location: any): RangeError | null;
|
package/isMuiElement.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function isMuiElement(element: any, muiNames: readonly string[]): boolean;
|
|
1
|
+
export default function isMuiElement(element: any, muiNames: readonly string[]): boolean;
|
package/legacy/index.js
CHANGED
package/modern/index.js
CHANGED
package/ownerDocument.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function ownerDocument(node: Node | null | undefined): Document;
|
|
1
|
+
export default function ownerDocument(node: Node | null | undefined): Document;
|
package/ownerWindow.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function ownerWindow(node: Node | undefined): Window;
|
|
1
|
+
export default function ownerWindow(node: Node | undefined): Window;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/utils",
|
|
3
|
-
"version": "5.11.
|
|
3
|
+
"version": "5.11.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "Utility functions for React components.",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"react": "^17.0.0 || ^18.0.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@babel/runtime": "^7.
|
|
32
|
+
"@babel/runtime": "^7.21.0",
|
|
33
33
|
"@types/prop-types": "^15.7.5",
|
|
34
34
|
"@types/react-is": "^16.7.1 || ^17.0.0",
|
|
35
35
|
"prop-types": "^15.8.1",
|
package/ponyfillGlobal.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: any;
|
|
2
|
-
export default _default;
|
|
1
|
+
declare const _default: any;
|
|
2
|
+
export default _default;
|
package/refType.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
declare const refType: PropTypes.Requireable<object>;
|
|
3
|
-
export default refType;
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
declare const refType: PropTypes.Requireable<object>;
|
|
3
|
+
export default refType;
|
package/resolveProps.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Add keys, values of `defaultProps` that does not exist in `props`
|
|
3
|
-
* @param {object} defaultProps
|
|
4
|
-
* @param {object} props
|
|
5
|
-
* @returns {object} resolved props
|
|
6
|
-
*/
|
|
7
|
-
export default function resolveProps<T extends {
|
|
8
|
-
components?: Record<string, unknown>;
|
|
9
|
-
componentsProps?: Record<string, unknown>;
|
|
10
|
-
slots?: Record<string, unknown>;
|
|
11
|
-
slotProps?: Record<string, unknown>;
|
|
12
|
-
} & Record<string, unknown>>(defaultProps: T, props: T): T;
|
|
1
|
+
/**
|
|
2
|
+
* Add keys, values of `defaultProps` that does not exist in `props`
|
|
3
|
+
* @param {object} defaultProps
|
|
4
|
+
* @param {object} props
|
|
5
|
+
* @returns {object} resolved props
|
|
6
|
+
*/
|
|
7
|
+
export default function resolveProps<T extends {
|
|
8
|
+
components?: Record<string, unknown>;
|
|
9
|
+
componentsProps?: Record<string, unknown>;
|
|
10
|
+
slots?: Record<string, unknown>;
|
|
11
|
+
slotProps?: Record<string, unknown>;
|
|
12
|
+
} & Record<string, unknown>>(defaultProps: T, props: T): T;
|
package/setRef.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* TODO v5: consider making it private
|
|
4
|
-
*
|
|
5
|
-
* passes {value} to {ref}
|
|
6
|
-
*
|
|
7
|
-
* WARNING: Be sure to only call this inside a callback that is passed as a ref.
|
|
8
|
-
* Otherwise, make sure to cleanup the previous {ref} if it changes. See
|
|
9
|
-
* https://github.com/mui/material-ui/issues/13539
|
|
10
|
-
*
|
|
11
|
-
* Useful if you want to expose the ref of an inner component to the public API
|
|
12
|
-
* while still using it inside the component.
|
|
13
|
-
* @param ref A ref callback or ref object. If anything falsy, this is a no-op.
|
|
14
|
-
*/
|
|
15
|
-
export default function setRef<T>(ref: React.MutableRefObject<T | null> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* TODO v5: consider making it private
|
|
4
|
+
*
|
|
5
|
+
* passes {value} to {ref}
|
|
6
|
+
*
|
|
7
|
+
* WARNING: Be sure to only call this inside a callback that is passed as a ref.
|
|
8
|
+
* Otherwise, make sure to cleanup the previous {ref} if it changes. See
|
|
9
|
+
* https://github.com/mui/material-ui/issues/13539
|
|
10
|
+
*
|
|
11
|
+
* Useful if you want to expose the ref of an inner component to the public API
|
|
12
|
+
* while still using it inside the component.
|
|
13
|
+
* @param ref A ref callback or ref object. If anything falsy, this is a no-op.
|
|
14
|
+
*/
|
|
15
|
+
export default function setRef<T>(ref: React.MutableRefObject<T | null> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
|
package/useEventCallback.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* https://github.com/facebook/react/issues/14099#issuecomment-440013892
|
|
3
|
-
*/
|
|
4
|
-
export default function useEventCallback<Args extends unknown[], Return>(fn: (...args: Args) => Return): (...args: Args) => Return;
|
|
1
|
+
/**
|
|
2
|
+
* https://github.com/facebook/react/issues/14099#issuecomment-440013892
|
|
3
|
+
*/
|
|
4
|
+
export default function useEventCallback<Args extends unknown[], Return>(fn: (...args: Args) => Return): (...args: Args) => Return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/useForkRef.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export default function useForkRef<Instance>(...refs: Array<React.Ref<Instance> | undefined>): React.RefCallback<Instance> | null;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export default function useForkRef<Instance>(...refs: Array<React.Ref<Instance> | undefined>): React.RefCallback<Instance> | null;
|
package/useId.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @example <div id={useId()} />
|
|
4
|
-
* @param idOverride
|
|
5
|
-
* @returns {string}
|
|
6
|
-
*/
|
|
7
|
-
export default function useId(idOverride?: string): string | undefined;
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @example <div id={useId()} />
|
|
4
|
+
* @param idOverride
|
|
5
|
+
* @returns {string}
|
|
6
|
+
*/
|
|
7
|
+
export default function useId(idOverride?: string): string | undefined;
|
package/useIsFocusVisible.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare function teardown(doc: Document): void;
|
|
3
|
-
export interface UseIsFocusVisibleResult {
|
|
4
|
-
isFocusVisibleRef: React.MutableRefObject<boolean>;
|
|
5
|
-
onBlur: (event: React.FocusEvent<any>) => void;
|
|
6
|
-
onFocus: (event: React.FocusEvent<any>) => void;
|
|
7
|
-
ref: React.Ref<unknown>;
|
|
8
|
-
}
|
|
9
|
-
export default function useIsFocusVisible(): UseIsFocusVisibleResult;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare function teardown(doc: Document): void;
|
|
3
|
+
export interface UseIsFocusVisibleResult {
|
|
4
|
+
isFocusVisibleRef: React.MutableRefObject<boolean>;
|
|
5
|
+
onBlur: (event: React.FocusEvent<any>) => void;
|
|
6
|
+
onFocus: (event: React.FocusEvent<any>) => void;
|
|
7
|
+
ref: React.Ref<unknown>;
|
|
8
|
+
}
|
|
9
|
+
export default function useIsFocusVisible(): UseIsFocusVisibleResult;
|
package/usePreviousProps.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const usePreviousProps: <T>(value: T) => Partial<T>;
|
|
2
|
-
export default usePreviousProps;
|
|
1
|
+
declare const usePreviousProps: <T>(value: T) => Partial<T>;
|
|
2
|
+
export default usePreviousProps;
|
package/visuallyHidden.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const visuallyHidden: import('react').CSSProperties;
|
|
2
|
-
export default visuallyHidden;
|
|
1
|
+
declare const visuallyHidden: import('react').CSSProperties;
|
|
2
|
+
export default visuallyHidden;
|