@mui/utils 5.11.2 → 5.11.7
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 +303 -0
- 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/exactProp.d.ts +2 -2
- package/formatMuiErrorMessage.d.ts +6 -6
- package/generateUtilityClass/generateUtilityClass.d.ts +2 -2
- 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 +3 -1
- package/integerPropType.d.ts +7 -7
- package/isMuiElement.d.ts +1 -1
- package/legacy/index.js +3 -1
- package/modern/index.js +3 -1
- package/ownerDocument.d.ts +1 -1
- package/ownerWindow.d.ts +1 -1
- package/package.json +1 -1
- 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,308 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.11.7
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.11.6..master -->
|
|
6
|
+
|
|
7
|
+
_Jan 31, 2023_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- @siriwatknp added `Table` component to Joy UI (#35872)
|
|
12
|
+
- many other 🐛 bug fixes and 📚 documentation improvements
|
|
13
|
+
|
|
14
|
+
### `@mui/material@5.11.7`
|
|
15
|
+
|
|
16
|
+
- ​<!-- 30 -->[Autocomplete] Prevent reset scroll position when new options are added (#35735) @sai6855
|
|
17
|
+
- ​<!-- 24 -->[CssVarsProvider] Skip `unstable_sxConfig` variables (#35932) @siriwatknp
|
|
18
|
+
- ​<!-- 10 -->[InputLabel] Add missing `component` type (#35852) @sai6855
|
|
19
|
+
- ​<!-- 05 -->[Tooltip] Fix tooltip position (#35909) @marktoman
|
|
20
|
+
|
|
21
|
+
### `@mui/base@5.0.0-alpha.116`
|
|
22
|
+
|
|
23
|
+
- ​<!-- 29 -->[ListboxUnstyled] Fix option state highlighted to prevent unnecessary focus (#35838) @SaidMarar
|
|
24
|
+
|
|
25
|
+
### `@mui/joy@5.0.0-alpha.65`
|
|
26
|
+
|
|
27
|
+
#### Breaking changes
|
|
28
|
+
|
|
29
|
+
- ​<!-- 05 -->[Joy] Replace `Joy[Component]` classname with `Mui[Component]` classname for all slots of components (#35718) @hbjORbj
|
|
30
|
+
|
|
31
|
+
- Renames the classname prefix of all Joy UI components from `'Joy'` to `'Mui'`.
|
|
32
|
+
|
|
33
|
+
```diff
|
|
34
|
+
<Button
|
|
35
|
+
-sx={{ '& .JoyButton-root': { '& .JoyButton-button': {} } }}
|
|
36
|
+
+sx={{ '& .MuiButton-root': { '& .MuiButton-button': {} } }}
|
|
37
|
+
/>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
You can use this [codemod](https://github.com/mui/material-ui/blob/master/packages/mui-codemod/README.md#joy-rename-classname-prefix) to help with the migration.
|
|
41
|
+
|
|
42
|
+
- ​<!-- 04 -->[Joy] Replace `row` prop with `orientation` prop in all Joy UI components (#35721) @hbjORbj
|
|
43
|
+
|
|
44
|
+
- Transforms `row` prop to `orientation` prop across `Card`, `List` and `RadioGroup` components in Joy UI.
|
|
45
|
+
|
|
46
|
+
```diff
|
|
47
|
+
<Card
|
|
48
|
+
-row
|
|
49
|
+
+orientation={"horizontal"}
|
|
50
|
+
/>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
You can use this [codemod](https://github.com/mui/material-ui/blob/master/packages/mui-codemod/README.md#joy-rename-row-prop) to help with the migration.
|
|
54
|
+
|
|
55
|
+
#### Changes
|
|
56
|
+
|
|
57
|
+
- ​<!-- 26 -->[Joy][Checkbox] Display correct icon in checkbox (#35943) @sai6855
|
|
58
|
+
- ​<!-- 09 -->[Joy] Add `Table` component (#35872) @siriwatknp
|
|
59
|
+
- ​<!-- 08 -->[Joy] Miscellaneous fixes (#35953) @siriwatknp
|
|
60
|
+
|
|
61
|
+
### Docs
|
|
62
|
+
|
|
63
|
+
- ​<!-- 28 -->[blog] Add RSS feed (#35777) @gorjiali
|
|
64
|
+
- ​<!-- 27 -->[blog] Prevent horizontal scroll on blog posts (#35948) @oliviertassinari
|
|
65
|
+
- ​<!-- 23 -->[docs] Add to codemod README about an added script (#35999) @hbjORbj
|
|
66
|
+
- ​<!-- 22 -->[docs] Add a warning about to clear the local storage when `defaultMode` changes (#35937) @ArthurPedroti
|
|
67
|
+
- ​<!-- 21 -->[docs] Fix Joy UI variables playground (#35950) @siriwatknp
|
|
68
|
+
- ​<!-- 20 -->[docs] Fix typos in base components docs (#35985) @HeVictor
|
|
69
|
+
- ​<!-- 19 -->[docs] Fix event's label reported to GA (#35930) @oliviertassinari
|
|
70
|
+
- ​<!-- 18 -->[docs] Standardize "no longer" / "not documented" callouts in Material UI docs (#35957) @samuelsycamore
|
|
71
|
+
- ​<!-- 17 -->[docs] Revise and expand Joy UI Checkbox doc (#35817) @samuelsycamore
|
|
72
|
+
- ​<!-- 16 -->[docs] Add docs notification to Date and Time Pickers revamped (#35935) @joserodolfofreitas
|
|
73
|
+
- ​<!-- 15 -->[docs] Update community theme builder to forked updated one (#35928) @idebeijer
|
|
74
|
+
- ​<!-- 14 -->[docs] Add Joy default theme viewer (#35554) @siriwatknp
|
|
75
|
+
- ​<!-- 13 -->[docs][joy] Fixed a typo in `Using icon libraries` page (#35989) @badalsaibo
|
|
76
|
+
- ​<!-- 12 -->[docs][joy] Removed Badge info from Chip docs (#35955) @Vivek-Prajapatii
|
|
77
|
+
- ​<!-- 11 -->[docs][system] Fix border color of Boxes in demos of `Configure the sx prop` page in dark mode (#35961) @ZeeshanTamboli
|
|
78
|
+
|
|
79
|
+
### Core
|
|
80
|
+
|
|
81
|
+
- ​<!-- 25 -->[core] Boolean props always have a default value of `false` in API docs (#35913) @hbjORbj
|
|
82
|
+
- ​<!-- 04 -->[core] Improve types for usePreviousProps (#35833) @sai6855
|
|
83
|
+
- ​<!-- 03 -->[website] Fix 404 link to store (#35973) @oliviertassinari
|
|
84
|
+
- ​<!-- 02 -->[website] Fix 302 of diamond sponsor link @oliviertassinari
|
|
85
|
+
- ​<!-- 01 -->[website] Fix outdated YouTube link @oliviertassinari
|
|
86
|
+
|
|
87
|
+
All contributors of this release in alphabetical order: @ArthurPedroti, @badalsaibo, @gorjiali, @hbjORbj, @HeVictor, @idebeijer, @joserodolfofreitas, @marktoman, @oliviertassinari, @sai6855, @SaidMarar, @samuelsycamore, @siriwatknp, @Vivek-Prajapatii, @ZeeshanTamboli
|
|
88
|
+
|
|
89
|
+
## 5.11.6
|
|
90
|
+
|
|
91
|
+
<!-- generated comparing v5.11.5..master -->
|
|
92
|
+
|
|
93
|
+
_Jan 23, 2023_
|
|
94
|
+
|
|
95
|
+
A big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
96
|
+
|
|
97
|
+
- @ZeeshanTamboli improved the logic for handling the value label in the `SliderUnstyled` (#35805)
|
|
98
|
+
- many other 🐛 bug fixes and 📚 documentation improvements
|
|
99
|
+
|
|
100
|
+
### `@mui/material@5.11.6`
|
|
101
|
+
|
|
102
|
+
- ​<!-- 15 -->[Box] Fix usage of not supported features in TypeScript 3.5 (#35877) @mnajdova
|
|
103
|
+
- ​<!-- 14 -->[Button] Fix border color for secondary disabled button (#35866) @SaidMarar
|
|
104
|
+
- ​<!-- 03 -->[SwipeableDrawer] Add callback to customise touchstart ignore for swipeable drawer (#30759) @tech-meppem
|
|
105
|
+
|
|
106
|
+
### `@mui/base@5.0.0-alpha.115`
|
|
107
|
+
|
|
108
|
+
#### Breaking changes
|
|
109
|
+
|
|
110
|
+
- ​<!-- 04 -->[SliderUnstyled] Improved logic for displaying the value label (#35805) @ZeeshanTamboli
|
|
111
|
+
|
|
112
|
+
- The `valueLabelDisplay` prop is removed from `SliderUnstyled`. The prop was not working as intended in `SliderUnstyled` (See #35398). You can instead provide a `valueLabel` slot with the `slots` prop API to show the value label:
|
|
113
|
+
|
|
114
|
+
```diff
|
|
115
|
+
- <SliderUnstyled valueLabelDisplay="on" />
|
|
116
|
+
+ <SliderUnstyled slots={{ valueLabel: SliderValueLabel }} />
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
The following demo shows how to show a value label when it is hovered over with the thumb: https://mui.com/base/react-slider/#value-label
|
|
120
|
+
|
|
121
|
+
- The following classes are removed from `sliderUnstyledClasses` since they are not needed for the value label:
|
|
122
|
+
|
|
123
|
+
```diff
|
|
124
|
+
- valueLabel
|
|
125
|
+
- valueLabelOpen
|
|
126
|
+
- valueLabelCircle
|
|
127
|
+
- valueLabelLabel
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
In the custom value label component, you can define your own classNames and target them with CSS.
|
|
131
|
+
|
|
132
|
+
- The `SliderValueLabelUnstyled` component is removed from SliderUnstyled. You should provide your own custom component for the value label.
|
|
133
|
+
|
|
134
|
+
- To avoid using `React.cloneElement` API in value label, the component hierarchy structure of the value label is changed. The value label is now inside the Thumb slot - `Thumb` -> `Input`, `ValueLabel`.
|
|
135
|
+
|
|
136
|
+
#### Changes
|
|
137
|
+
|
|
138
|
+
- ​<!-- 05 -->[InputUnstyled] Fix externally provided `inputRef` is ignored (#35807) @sai6855
|
|
139
|
+
|
|
140
|
+
### `@mui/joy@5.0.0-alpha.64`
|
|
141
|
+
|
|
142
|
+
- ​<!-- 17 -->[Avatar][joy] Remove `imgProps` prop and add Codemod script for migration (#35859) @hbjORbj
|
|
143
|
+
|
|
144
|
+
### Docs
|
|
145
|
+
|
|
146
|
+
- ​<!-- 16 -->[blog] Date and time pickers revamped (#35486) @joserodolfofreitas
|
|
147
|
+
- ​<!-- 10 -->[docs] Fix incorrect breakpoint use (#34948) @rosita-dmello
|
|
148
|
+
- ​<!-- 09 -->[docs] Replace react-virtualized with react-virtuoso in Table (#35700) @petyosi
|
|
149
|
+
- ​<!-- 08 -->[docs] Fix account menu demo not closing with keyboard. (#35870) @mj12albert
|
|
150
|
+
- ​<!-- 07 -->[docs] Fix typos in the docs of Joy UI (#35876) @HeVictor
|
|
151
|
+
- ​<!-- 06 -->[docs] Fix wording in `Color` page (#35873) @oliv37
|
|
152
|
+
|
|
153
|
+
### Core
|
|
154
|
+
|
|
155
|
+
- ​<!-- 13 -->[core] Fix release changelog to handle commits with empty author field (#35921) @mnajdova
|
|
156
|
+
- ​<!-- 12 -->[core] Revert `docs-utilities` migration to TypeScript and fix type (#35881) @ZeeshanTamboli
|
|
157
|
+
- ​<!-- 11 -->[core] Migrate internal `docs-utilities` package to TypeScript (#35846) @ZeeshanTamboli
|
|
158
|
+
- ​<!-- 02 -->[website] Designer don't spend their time writing code @oliviertassinari
|
|
159
|
+
- ​<!-- 01 -->[website] Emphasis the technical background need for this role @oliviertassinari
|
|
160
|
+
|
|
161
|
+
All contributors of this release in alphabetical order: @HeVictor, @hbjORbj, @joserodolfofreitas, @mj12albert, @mnajdova, @oliv37, @oliviertassinari, @petyosi, @rosita-dmello, @sai6855, @SaidMarar, @tech-meppem, @ZeeshanTamboli
|
|
162
|
+
|
|
163
|
+
## 5.11.5
|
|
164
|
+
|
|
165
|
+
<!-- generated comparing v5.11.4..master -->
|
|
166
|
+
|
|
167
|
+
_Jan 17, 2023_
|
|
168
|
+
|
|
169
|
+
A big thanks to the 17 contributors who made this release possible.
|
|
170
|
+
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
171
|
+
|
|
172
|
+
### `@mui/material@5.11.5`
|
|
173
|
+
|
|
174
|
+
- [Material UI] Custom channel token should suppress the warning (#35804) @siriwatknp
|
|
175
|
+
- [Autocomplete] Fix value type when `strictNullChecks` is `false` (#35367) @fenghan34
|
|
176
|
+
- [Slider] Replace `SliderUnstyled` with `useSlider` hook (#35770) @ZeeshanTamboli
|
|
177
|
+
- [l10n] Add Belarusian translation (#35742) @volhalink
|
|
178
|
+
|
|
179
|
+
### `@mui/system@5.11.5`
|
|
180
|
+
|
|
181
|
+
- [system] Improve the `createBox` types (#35532) @mnajdova
|
|
182
|
+
|
|
183
|
+
### `@mui/codemod@5.11.5`
|
|
184
|
+
|
|
185
|
+
- Add `joy-text-field-to-input` codemod (#35462) @hbjORbj
|
|
186
|
+
|
|
187
|
+
### `@mui/base@5.0.0-alpha.114`
|
|
188
|
+
|
|
189
|
+
- [base] Fix typos (#35802) @nnmax
|
|
190
|
+
- [Slider] Convert code to TypeScript (#35445) @sai6855
|
|
191
|
+
|
|
192
|
+
### `@mui/joy@5.0.0-alpha.63`
|
|
193
|
+
|
|
194
|
+
- [Tabs][joy] Don't apply `:hover, :active` styles when `selected` (#35750) @sai6855
|
|
195
|
+
- Remove `TextField` component and replace its usage in docs with `FormControl`/`FormLabel`/`Input` (#35462) @hbjORbj
|
|
196
|
+
- [TextField] Throw error with migration message (#35845) @siriwatknp
|
|
197
|
+
- Miscellaneous fixes (#35847) @siriwatknp
|
|
198
|
+
|
|
199
|
+
### Docs
|
|
200
|
+
|
|
201
|
+
- [docs] Improve pickers lab migration stressing `mui-x` usage (#35740) @LukasTy
|
|
202
|
+
- [docs] Fix incorrectly named AccessibleTable demo component (#35832) @HeVictor
|
|
203
|
+
- [docs] Clarify where to find docs for MUI Base components in Material UI (#35799) @samuelsycamore
|
|
204
|
+
- [docs] Fix typos (#35814) @alexfauquette
|
|
205
|
+
- [docs] Revise and expand the Joy UI Card page (#35745) @samuelsycamore
|
|
206
|
+
- [docs] Fix navigation layout shift (#35679) @oliviertassinari
|
|
207
|
+
- [docs] Fix typo in the Composition page (#35774) @msoyka
|
|
208
|
+
- [docs][joy] Update Customization section code example to use the correct API (#35765) @pupudu
|
|
209
|
+
- [docs][joy] Fix grammar in `Typography` docs (#35796) @atrefonas
|
|
210
|
+
- [examples] Remove `next-env.d.ts` from Next.js examples (#35772) @Juneezee
|
|
211
|
+
|
|
212
|
+
### Core
|
|
213
|
+
|
|
214
|
+
- [website] Improve pricing page (#35767) @oliviertassinari
|
|
215
|
+
- [website] Add Greg in about page (#35816) @oliviertassinari
|
|
216
|
+
- [website] Update the Accessibility Engineer role (#35751) @oliviertassinari
|
|
217
|
+
- [website] Add docs for MUI for Figma @oliviertassinari
|
|
218
|
+
|
|
219
|
+
All contributors of this release in alphabetical order: @alexfauquette, @atrefonas, @fenghan34, @hbjORbj, @HeVictor, @Juneezee, @LukasTy, @mnajdova, @msoyka, @nnmax, @oliviertassinari, @pupudu, @sai6855, @samuelsycamore, @siriwatknp, @volhalink, @ZeeshanTamboli
|
|
220
|
+
|
|
221
|
+
## 5.11.4
|
|
222
|
+
|
|
223
|
+
<!-- generated comparing v5.11.3..master -->
|
|
224
|
+
|
|
225
|
+
_Jan 9, 2023_
|
|
226
|
+
|
|
227
|
+
A big thanks to the 14 contributors who made this release possible.
|
|
228
|
+
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
229
|
+
|
|
230
|
+
### `@mui/material@5.11.4`
|
|
231
|
+
|
|
232
|
+
- [Autocomplete] Add index to renderOption's AutocompleteRenderOptionState (#35578) @CowDotDev
|
|
233
|
+
- [Autocomplete] Fix grammar in console.error in `useAutocomplete` (#35723) @hamirmahal
|
|
234
|
+
- [Modal] Fix can't override Backdrop Props using new Slots API (#35140) @ZeeshanTamboli
|
|
235
|
+
- [Select] Revert "Update `renderValue` prop's TypeScript type (#34177)" (#35733) @michaldudak
|
|
236
|
+
- [Tabs] Throw error only if individual `Tab` is hidden, not the whole `Tabs` (#34026) @Ryczko
|
|
237
|
+
- [TextField] Improve WCAG 2.4.7 with error={true} (#35687) @oliviertassinari
|
|
238
|
+
- [Tooltip] Remove `data-foo` attribute (#35736) @koolskateguy89
|
|
239
|
+
|
|
240
|
+
### `@mui/joy@5.0.0-alpha.62`
|
|
241
|
+
|
|
242
|
+
- [Autocomplete][joy] Specify `type` attribute for popup indicator (#35648) @hbjORbj
|
|
243
|
+
- [Joy] Miscellaneous improvements (#35769) @siriwatknp
|
|
244
|
+
- [Joy] Improve `onKeyDown` event handler for demo (#35642) @hbjORbj
|
|
245
|
+
|
|
246
|
+
### `@mui/base@5.0.0-alpha.113`
|
|
247
|
+
|
|
248
|
+
- [Portal][base] Convert code to TypeScript (#35657) @sai6855
|
|
249
|
+
|
|
250
|
+
### Docs
|
|
251
|
+
|
|
252
|
+
- [docs] Revise and expand Joy UI Button doc (#35737) @samuelsycamore
|
|
253
|
+
- [docs] Document the workaround for crashing a translated page (#35720) @michaldudak
|
|
254
|
+
- [docs] Fix API page for `MenuItem` to list all valid props (#35561) @mnajdova
|
|
255
|
+
- [docs] Fix ad exception in Joy UI (#35685) @oliviertassinari
|
|
256
|
+
- [docs] Fix content wider than screen regression @oliviertassinari
|
|
257
|
+
- [examples] Add `Vite.js with TypeScript` example (#35683) @miha53cevic
|
|
258
|
+
|
|
259
|
+
### Core
|
|
260
|
+
|
|
261
|
+
- [core] Close 2022 developer survey @oliviertassinari
|
|
262
|
+
- [core] Fix the product license reference name (#35703) @oliviertassinari
|
|
263
|
+
- [core] Use TypeScript AST instead of TTP for component doc building (#35379) @flaviendelangle
|
|
264
|
+
- [test] Always use & for nesting styles (#35702) @oliviertassinari
|
|
265
|
+
- [website] Improve Lead Designer role description (#35684) @oliviertassinari
|
|
266
|
+
|
|
267
|
+
All contributors of this release in alphabetical order: @CowDotDev, @flaviendelangle, @hamirmahal, @hbjORbj, @koolskateguy89, @michaldudak, @miha53cevic, @mnajdova, @oliviertassinari, @Ryczko, @sai6855, @samuelsycamore, @siriwatknp, @ZeeshanTamboli
|
|
268
|
+
|
|
269
|
+
## 5.11.3
|
|
270
|
+
|
|
271
|
+
<!-- generated comparing v5.11.2..master -->
|
|
272
|
+
|
|
273
|
+
_Jan 2, 2023_
|
|
274
|
+
|
|
275
|
+
A big thanks to the 6 contributors who made this release possible.
|
|
276
|
+
This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
|
|
277
|
+
|
|
278
|
+
### `@mui/material@5.11.3`
|
|
279
|
+
|
|
280
|
+
- ​<!-- 02 -->[Select] Update `renderValue` prop's TypeScript type (#34177) @ZeeshanTamboli
|
|
281
|
+
|
|
282
|
+
### `@mui/joy@5.0.0-alpha.61`
|
|
283
|
+
|
|
284
|
+
- ​<!-- 14 -->[Autocomplete][joy] Export component (#35647) @mbranch
|
|
285
|
+
|
|
286
|
+
### Docs
|
|
287
|
+
|
|
288
|
+
- ​<!-- 13 -->[blog] Fix handling of markdown links (#35628) @oliviertassinari
|
|
289
|
+
- ​<!-- 09 -->[docs] Fix demo code selection through copy shortcut key on Firefox browser (#35670) @ZeeshanTamboli
|
|
290
|
+
- ​<!-- 08 -->[docs] Fix layout shift when streaming the page (#35627) @oliviertassinari
|
|
291
|
+
- ​<!-- 07 -->[docs] Fix switch name to reflect the color (#35052) @rjhcnf
|
|
292
|
+
- ​<!-- 06 -->[docs] Fix anchor link in the card's docs and fix a typo (#35634) @ZeeshanTamboli
|
|
293
|
+
- ​<!-- 05 -->[docs] Fix layout shift with modal (#35591) @oliviertassinari
|
|
294
|
+
- ​<!-- 04 -->[Joy][docs] Add documentation for `Input` component (#35482) @hbjORbj
|
|
295
|
+
- ​<!-- 03 -->[docs][joy] Improved readability on theme tokens page (#35639) @badalsaibo
|
|
296
|
+
|
|
297
|
+
### Core
|
|
298
|
+
|
|
299
|
+
- ​<!-- 12 -->[core] Disable prefetch of footer links @oliviertassinari
|
|
300
|
+
- ​<!-- 11 -->[core] A few SEO fixes (#35672) @oliviertassinari
|
|
301
|
+
- ​<!-- 10 -->[core] Remove need for scopePathnames (#35584) @oliviertassinari
|
|
302
|
+
- ​<!-- 01 -->[test] Fix Algolia noisy lvl1 anchor (#35686) @oliviertassinari
|
|
303
|
+
|
|
304
|
+
All contributors of this release in alphabetical order: @badalsaibo, @hbjORbj, @mbranch, @oliviertassinari, @rjhcnf, @ZeeshanTamboli
|
|
305
|
+
|
|
3
306
|
## 5.11.2
|
|
4
307
|
|
|
5
308
|
<!-- generated comparing v5.11.1..master -->
|
|
@@ -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' | '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
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: (value:
|
|
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;
|