@mui/utils 5.13.7 → 5.14.3
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 +316 -8
- package/esm/index.js +2 -0
- package/esm/useControlled/index.js +2 -0
- package/esm/useControlled/useControlled.js +2 -0
- package/esm/useEnhancedEffect/index.js +2 -0
- package/esm/useEnhancedEffect/useEnhancedEffect.js +2 -0
- package/esm/useEventCallback/index.js +2 -0
- package/esm/useEventCallback/useEventCallback.js +6 -2
- package/esm/useForkRef/index.js +2 -0
- package/esm/useForkRef/useForkRef.js +2 -0
- package/esm/useId/index.js +2 -0
- package/esm/useId/useId.js +2 -0
- package/esm/useIsFocusVisible.js +2 -0
- package/esm/usePreviousProps.js +2 -0
- package/index.js +2 -1
- package/legacy/index.js +3 -1
- package/legacy/useControlled/index.js +2 -0
- package/legacy/useControlled/useControlled.js +2 -0
- package/legacy/useEnhancedEffect/index.js +2 -0
- package/legacy/useEnhancedEffect/useEnhancedEffect.js +2 -0
- package/legacy/useEventCallback/index.js +2 -0
- package/legacy/useEventCallback/useEventCallback.js +6 -2
- package/legacy/useForkRef/index.js +2 -0
- package/legacy/useForkRef/useForkRef.js +2 -0
- package/legacy/useId/index.js +2 -0
- package/legacy/useId/useId.js +2 -0
- package/legacy/useIsFocusVisible.js +2 -0
- package/legacy/usePreviousProps.js +2 -0
- package/modern/index.js +3 -1
- package/modern/useControlled/index.js +2 -0
- package/modern/useControlled/useControlled.js +2 -0
- package/modern/useEnhancedEffect/index.js +2 -0
- package/modern/useEnhancedEffect/useEnhancedEffect.js +2 -0
- package/modern/useEventCallback/index.js +2 -0
- package/modern/useEventCallback/useEventCallback.js +6 -2
- package/modern/useForkRef/index.js +2 -0
- package/modern/useForkRef/useForkRef.js +2 -0
- package/modern/useId/index.js +2 -0
- package/modern/useId/useId.js +2 -0
- package/modern/useIsFocusVisible.js +2 -0
- package/modern/usePreviousProps.js +2 -0
- package/package.json +2 -2
- package/useControlled/index.js +1 -0
- package/useControlled/useControlled.js +2 -2
- package/useEnhancedEffect/index.js +1 -0
- package/useEnhancedEffect/useEnhancedEffect.js +1 -0
- package/useEventCallback/index.js +1 -0
- package/useEventCallback/useEventCallback.d.ts +3 -1
- package/useEventCallback/useEventCallback.js +6 -2
- package/useForkRef/index.js +1 -0
- package/useForkRef/useForkRef.js +1 -0
- package/useId/index.js +1 -0
- package/useId/useId.js +1 -0
- package/useIsFocusVisible.js +2 -2
- package/usePreviousProps.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,313 @@
|
|
|
1
1
|
# [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.14.3
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.14.2..master -->
|
|
6
|
+
|
|
7
|
+
_Jul 31, 2023_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:
|
|
10
|
+
|
|
11
|
+
- 🚀 [Joy UI](https://mui.com/joy-ui/getting-started/) is now in Beta
|
|
12
|
+
- ✨ Refine [Joy UI](https://mui.com/joy-ui/getting-started/)'s default theme @siriwatknp @zanivan
|
|
13
|
+
- 🎉 Added Dropdown higher-level menu component [Base UI](https://mui.com/base-ui/getting-started/) @michaldudak
|
|
14
|
+
- 💫 Added Material You [Badge](https://mui.com/material-ui/react-badge/#material-you-version) to `material-next` (#37850) @DiegoAndai
|
|
15
|
+
|
|
16
|
+
### `@mui/material@5.14.3`
|
|
17
|
+
|
|
18
|
+
- ​<!-- 36 -->[Autocomplete][material][joy] Add default `getOptionLabel` prop in ownerState (#38100) @DSK9012
|
|
19
|
+
- ​<!-- 26 -->[Menu][Divider][material] Do not allow focus on Divider when inside Menu list (#38102) @divyammadhok
|
|
20
|
+
- ​<!-- 06 -->[typescript][material] Rename one letter type parameters (#38155) @michaldudak
|
|
21
|
+
- ​<!-- 08 -->[Menu][material] Fixes slots and slotProps overriding defaults completely (#37902) @gitstart
|
|
22
|
+
- ​<!-- 07 -->[Theme][material] Add missing styleOverrides type for theme MuiStack (#38189) @DiegoAndai
|
|
23
|
+
- ​<!-- 04 -->[typescript][material] Add `component` field to `*Props` types (#38084) @michaldudak
|
|
24
|
+
|
|
25
|
+
### `@mui/base@5.0.0-beta.9`
|
|
26
|
+
|
|
27
|
+
#### Breaking changes
|
|
28
|
+
|
|
29
|
+
- ​<!-- 11 -->[Dropdown][base][joy] Introduce higher-level menu component (#37667) @michaldudak
|
|
30
|
+
|
|
31
|
+
#### Other changes
|
|
32
|
+
|
|
33
|
+
- ​<!-- 33 -->[typescript][base] Rename one letter type parameters (#38171) @michaldudak
|
|
34
|
+
|
|
35
|
+
### `@mui/joy@5.0.0-beta.0`
|
|
36
|
+
|
|
37
|
+
- ​<!-- 10 -->[joy] Refine the default theme (#36843) @siriwatknp
|
|
38
|
+
|
|
39
|
+
### `@mui/material-next@6.0.0-alpha.95`
|
|
40
|
+
|
|
41
|
+
- ​<!-- 35 -->[Badge][material-next] Add Badge component (#37850) @DiegoAndai
|
|
42
|
+
- ​<!-- 30 -->[Chip][material-next] Copy chip component from material (#38053) @DiegoAndai
|
|
43
|
+
- ​<!-- 09 -->[typescript][material-next] Rename one letter type parameters (#38172) @michaldudak
|
|
44
|
+
|
|
45
|
+
### `@mui/system@5.14.3`
|
|
46
|
+
|
|
47
|
+
- ​<!-- 32 -->[Box][system] Remove `component` from TypeMap (#38168) @michaldudak
|
|
48
|
+
- ​<!-- 05 -->[Stack][system] Fix CSS selector (#37525) @sai6855
|
|
49
|
+
|
|
50
|
+
### Docs
|
|
51
|
+
|
|
52
|
+
- ​<!-- 49 -->[docs] Update Joy UI's package README (#38262) @ZeeshanTamboli
|
|
53
|
+
- ​<!-- 48 -->[docs][base-ui] Add new batch of coming soon pages (#38025) @danilo-leal
|
|
54
|
+
- ​<!-- 44 -->[docs] fix links to standardized examples (#38193) @emmanuel-ferdman
|
|
55
|
+
- ​<!-- 43 -->[docs-infra] Small design polish to the Diamond Sponsor container (#38257) @danilo-leal
|
|
56
|
+
- ​<!-- 42 -->[docs-infra] Show props in the table of content (#38173) @alexfauquette
|
|
57
|
+
- ​<!-- 41 -->[docs-infra] Polish API page design (#38196) @oliviertassinari
|
|
58
|
+
- ​<!-- 40 -->[docs-infra] Search with productCategory when product is missing (#38239) @oliviertassinari
|
|
59
|
+
- ​<!-- 39 -->[docs][material] Revise and update Examples doc (#38205) @samuelsycamore
|
|
60
|
+
- ​<!-- 38 -->[docs] Fix typo in notifications.json @mbrookes
|
|
61
|
+
- ​<!-- 37 -->[docs-infra] Remove leftover standardNavIcon (#38252) @DiegoAndai
|
|
62
|
+
- ​<!-- 34 -->[docs][base] Add Tailwind CSS & plain CSS demos on the Popper page (#37953) @zanivan
|
|
63
|
+
- ​<!-- 31 -->[docs][Button][joy] Improve `loading` prop documentation (#38156) @sai6855
|
|
64
|
+
- ​<!-- 25 -->[docs] Prepare docs infra for Tree View migration to X (#38202) @flaviendelangle
|
|
65
|
+
- ​<!-- 24 -->[docs] Fix SEO issues reported by ahrefs @oliviertassinari
|
|
66
|
+
- ​<!-- 23 -->[docs] Fix palette pages - live edit not working (#38195) @oliviertassinari
|
|
67
|
+
- ​<!-- 22 -->[docs] Add Google Analytics action for the styling menu (#38085) @mnajdova
|
|
68
|
+
- ​<!-- 21 -->[docs] Fix Discord redirection chain @oliviertassinari
|
|
69
|
+
- ​<!-- 20 -->[docs] Cover pnpm in more places (#38161) @oliviertassinari
|
|
70
|
+
- ​<!-- 19 -->[docs] Avoid broken link (#38154) @oliviertassinari
|
|
71
|
+
- ​<!-- 18 -->[docs] Add notification for beta release of Toolpad (#38152) @prakhargupta1
|
|
72
|
+
- ​<!-- 17 -->[docs-infra] Remove sidenav icons (#38174) @oliviertassinari
|
|
73
|
+
- ​<!-- 16 -->[docs-infra] Fix search ranking when no productId (#38162) @oliviertassinari
|
|
74
|
+
- ​<!-- 15 -->[docs-infra] Adjust the side nav for deeper nested items (#38047) @cherniavskii
|
|
75
|
+
- ​<!-- 14 -->[docs][joy] Update TS file of adding more typography levels demo to match the corresponding JS file's styles (#38232) @ZeeshanTamboli
|
|
76
|
+
- ​<!-- 13 -->[docs][joy] Add TS demo for reusable component section in approaches page (#38210) @sai6855
|
|
77
|
+
- ​<!-- 12 -->[docs][joy] Add TS demo for theme typography new level customization (#38199) @sai6855
|
|
78
|
+
|
|
79
|
+
### Core
|
|
80
|
+
|
|
81
|
+
- ​<!-- 47 -->[blog] Fix blog post slug Base UI (#38254) @oliviertassinari
|
|
82
|
+
- ​<!-- 46 -->[core] Use native Node's fetch instead of node-fetch package (#38263) @michaldudak
|
|
83
|
+
- ​<!-- 45 -->[core] Remove dead code @oliviertassinari
|
|
84
|
+
- ​<!-- 29 -->[core] Polish Stack test to closer CSS injection order @oliviertassinari
|
|
85
|
+
- ​<!-- 28 -->[core] Remove unnecessary `Required` utility type from Typography font style type (#38203) @ZeeshanTamboli
|
|
86
|
+
- ​<!-- 27 -->[core] Fix generate Proptypes script skipping unstable items (#38198) @mj12albert
|
|
87
|
+
- ​<!-- 03 -->[website] Adding Rich Bustos Twitter handle in bio (#38213) @richbustos
|
|
88
|
+
- ​<!-- 02 -->[website] Prepare importing data from HiBob (#38238) @oliviertassinari
|
|
89
|
+
- ​<!-- 01 -->[website] Sync team member with HiBob, add Raffaella (#38201) @rluzists1
|
|
90
|
+
|
|
91
|
+
All contributors of this release in alphabetical order: @cherniavskii, @DiegoAndai, @divyammadhok, @DSK9012, @flaviendelangle, @gitstart, @michaldudak, @mj12albert, @mnajdova, @oliviertassinari, @prakhargupta1, @richbustos, @rluzists1, @sai6855, @siriwatknp, @zanivan, @ZeeshanTamboli
|
|
92
|
+
|
|
93
|
+
## 5.14.2
|
|
94
|
+
|
|
95
|
+
<!-- generated comparing v5.14.1..master -->
|
|
96
|
+
|
|
97
|
+
_Jul 25, 2023_
|
|
98
|
+
|
|
99
|
+
A big thanks to the 23 contributors who made this release possible.
|
|
100
|
+
|
|
101
|
+
### @mui/material@5.14.2
|
|
102
|
+
|
|
103
|
+
- ​<!-- 39 -->Revert "[core] Adds `component` prop to `OverrideProps` type (#35924)" (#38150) @michaldudak
|
|
104
|
+
- ​<!-- 32 -->[Chip][material] Fix base cursor style to be "auto" not "default" (#38076) @DiegoAndai
|
|
105
|
+
- ​<!-- 12 -->[Tabs] Refactor IntersectionObserver logic (#38133) @ZeeshanTamboli
|
|
106
|
+
- ​<!-- 11 -->[Tabs] Fix and improve visibility of tab scroll buttons using the IntersectionObserver API (#36071) @SaidMarar
|
|
107
|
+
|
|
108
|
+
### @mui/joy@5.0.0-alpha.89
|
|
109
|
+
|
|
110
|
+
- ​<!-- 15 -->[Joy] Replace leftover `Joy-` prefix with `Mui-` (#38086) @siriwatknp
|
|
111
|
+
- ​<!-- 14 -->[Skeleton][joy] Fix WebkitMaskImage CSS property (#38077) @Bestwebdesign
|
|
112
|
+
- ​<!-- 13 -->[Link][Joy UI] Fix font inherit (#38124) @oliviertassinari
|
|
113
|
+
|
|
114
|
+
### Docs
|
|
115
|
+
|
|
116
|
+
- ​<!-- 37 -->[docs] Add listbox placement demo for Select (#38130) @sai6855
|
|
117
|
+
- ​<!-- 36 -->[docs][base] Add Tailwind CSS & plain CSS demo on the Tabs page (#37910) @mnajdova
|
|
118
|
+
- ​<!-- 35 -->[docs][base] Add Tailwind CSS & plain CSS demos on the Textarea page (#37943) @zanivan
|
|
119
|
+
- ​<!-- 29 -->[docs] Fix Joy UI menu example (#38140) @harikrishnanp
|
|
120
|
+
- ​<!-- 28 -->[docs] Remove translations section from contributing guide (#38125) @nikohoffren
|
|
121
|
+
- ​<!-- 27 -->[docs] Fix Base UI Button Tailwind CSS padding @oliviertassinari
|
|
122
|
+
- ​<!-- 26 -->[docs] Mention in hompage hero that Core is free (#38075) @mbrookes
|
|
123
|
+
- ​<!-- 25 -->[docs] Fix a typo in notifications.json (#38078) @mbrookes
|
|
124
|
+
- ​<!-- 24 -->[docs] Add Tailwind CSS & plain CSS demo on the table pagination page (#37937) @mnajdova
|
|
125
|
+
- ​<!-- 23 -->[docs] Implement the new API display design (#37405) @alexfauquette
|
|
126
|
+
- ​<!-- 22 -->[docs] Update migration installation code blocks (#38028) @danilo-leal
|
|
127
|
+
- ​<!-- 21 -->[docs][joy] Revise the Joy UI Link page (#37829) @danilo-leal
|
|
128
|
+
- ​<!-- 20 -->[docs][joy] Add playground for Card component (#37820) @Studio384
|
|
129
|
+
- ​<!-- 19 -->[docs][joy] Add adjustments to the color inversion page (#37143) @danilo-leal
|
|
130
|
+
- ​<!-- 18 -->[docs][material] Improve documentation about adding custom colors (#37743) @DiegoAndai
|
|
131
|
+
- ​<!-- 17 -->[examples] Fix Joy UI Next.js App Router font loading (#38095) @IgnacioUtrilla
|
|
132
|
+
- ​<!-- 16 -->[examples] Fix material-next-app-router Font Usage with next/font (#38026) @onderonur
|
|
133
|
+
|
|
134
|
+
### Core
|
|
135
|
+
|
|
136
|
+
- ​<!-- 34 -->[blog] Update Discord invite link in Toolpad beta announcement (#38143) @samuelsycamore
|
|
137
|
+
- ​<!-- 33 -->[blog] Update discord server link (#38131) @prakhargupta1
|
|
138
|
+
- ​<!-- 31 -->[core] Fix rsc-builder removing the first line (#38134) @michaldudak
|
|
139
|
+
- ​<!-- 30 -->[core] Remove the deprecation rule in tslint (#38087) @michaldudak
|
|
140
|
+
- ​<!-- 09 -->[website] Mobile navigation: Toolpad to Beta (#38146) @bharatkashyap
|
|
141
|
+
- ​<!-- 08 -->[website] Fix typo on pricing page @oliviertassinari
|
|
142
|
+
- ​<!-- 07 -->[website] Fix a few regression (#38050) @oliviertassinari
|
|
143
|
+
- ​<!-- 06 -->[website] Update Demo footers on MUI X landing page (#38027) @richbustos
|
|
144
|
+
- ​<!-- 05 -->[website] Fix 301 redirection to base index page @oliviertassinari
|
|
145
|
+
- ​<!-- 04 -->[website] Fix Cell selection feature name (#38029) @oliviertassinari
|
|
146
|
+
- ​<!-- 03 -->[website] Improve button look (#38052) @oliviertassinari
|
|
147
|
+
- ​<!-- 02 -->[website] Link new core page to new Base UI landing page (#38030) @mj12albert
|
|
148
|
+
- ​<!-- 01 -->[website] Polish pricing page (#37975) @oliviertassinari
|
|
149
|
+
- ​<!-- 10 -->[test] Fail the CI when new unexpected files are created (#38039) @oliviertassinari
|
|
150
|
+
- ​<!-- 09 -->[test] Fix linting error by matching main component demo name to filename (#38122) @ZeeshanTamboli
|
|
151
|
+
|
|
152
|
+
All contributors of this release in alphabetical order: @alexfauquette, @Bestwebdesign, @bharatkashyap, @danilo-leal, @DiegoAndai, @harikrishnanp, @IgnacioUtrilla, @mbrookes, @michaldudak, @mj12albert, @mnajdova, @nikohoffren, @oliviertassinari, @onderonur, @prakhargupta1, @richbustos, @sai6855, @SaidMarar, @samuelsycamore, @siriwatknp, @Studio384, @zanivan, @ZeeshanTamboli
|
|
153
|
+
|
|
154
|
+
## 5.14.1
|
|
155
|
+
|
|
156
|
+
<!-- generated comparing v5.14.0..master -->
|
|
157
|
+
|
|
158
|
+
_Jul 19, 2023_
|
|
159
|
+
|
|
160
|
+
A big thanks to the 24 contributors who made this release possible. Here are some highlights ✨:
|
|
161
|
+
|
|
162
|
+
- 💫 Introducing some new components for Joy UI:
|
|
163
|
+
- [Skeleton](https://mui.com/joy-ui/react-skeleton/) component (#37893) @siriwatknp
|
|
164
|
+
- [ToggleButton](https://mui.com/joy-ui/react-toggle-button-group/) (#37716) @siriwatknp
|
|
165
|
+
- 🎉 Base UI has its own [landing page](https://www.mui.com/base-ui)!
|
|
166
|
+
- 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements.
|
|
167
|
+
|
|
168
|
+
### `@mui/material@5.14.1`
|
|
169
|
+
|
|
170
|
+
- ​<!-- 14 -->[FormControlLabel] Fix misplaced asterisk when `labelPlacement` is provided (#37831) @ZeeshanTamboli
|
|
171
|
+
- ​<!-- 11 -->[Slider][material] Fix type dependency on @types/prop-types (#37853) @Methuselah96
|
|
172
|
+
- ​<!-- 10 -->[Menu] Add MuiMenuList to createTheme components key (#37956) @mj12albert
|
|
173
|
+
- ​<!-- 09 -->[Modal] Remove deprecated `BackdropComponent` and `BackdropProps` from tests (#38018) @sai6855
|
|
174
|
+
|
|
175
|
+
### `@mui/material-next@6.0.0-alpha.93`
|
|
176
|
+
|
|
177
|
+
- ​<!-- 54 -->[Slider][material-next] Add use client directive to useSliderElementsOverlap (#37955) @mj12albert
|
|
178
|
+
- ​<!-- 47 -->[Button][material-next] Fix some event handlers being ignored (#37647) @DiegoAndai
|
|
179
|
+
|
|
180
|
+
### `@mui/base@5.0.0-beta.8`
|
|
181
|
+
|
|
182
|
+
- ​<!-- 53 -->[Autocomplete] Make touch and click behavior on an option consistent (#37972) @divyammadhok
|
|
183
|
+
|
|
184
|
+
### `@mui/joy@5.0.0-alpha.88`
|
|
185
|
+
|
|
186
|
+
- ​<!-- 13 -->[Joy][Select] Fix type error caused by custom variant (#37996) @OmPr366
|
|
187
|
+
- ​<!-- 12 -->[ToggleButton][Joy] Add `ToggleButton` component (#37716) @siriwatknp
|
|
188
|
+
- ​<!-- 07 -->[Skeleton] Add Joy UI `Skeleton` component (#37893) @siriwatknp
|
|
189
|
+
|
|
190
|
+
### `@mui/utils@5.14.1`
|
|
191
|
+
|
|
192
|
+
- ​<!-- 06 -->[utils] Add function overload for `useEventCallback` (#37827) @cherniavskii
|
|
193
|
+
|
|
194
|
+
### Docs
|
|
195
|
+
|
|
196
|
+
- ​<!-- 52 -->[docs][base] Add Tailwind CSS & plain CSS demo on the form control page (#37914) @mnajdova
|
|
197
|
+
- ​<!-- 51 -->[docs][base] Make Base UI Select demos denser (#37836) @zanivan
|
|
198
|
+
- ​<!-- 38 -->[docs] Link Material UI from the landing page (#37971) @oliviertassinari
|
|
199
|
+
- ​<!-- 37 -->[docs] Fix the empty /components page (#38010) @brijeshb42
|
|
200
|
+
- ​<!-- 36 -->[docs] Checkout template follows user's color scheme preference (#37928) @OndrejHj04
|
|
201
|
+
- ​<!-- 35 -->[docs] Disable ad for onboarding pages (#37998) @oliviertassinari
|
|
202
|
+
- ​<!-- 34 -->[docs] Fix broken link to Base UI Next.js App Router (#37973) @oliviertassinari
|
|
203
|
+
- ​<!-- 33 -->[docs] Fix typo in next-js-app-router.md (#37974) @ericbrian
|
|
204
|
+
- ​<!-- 32 -->[docs] Add pnpm commands to Material UI Installation page (#36650) @officialrajdeepsingh
|
|
205
|
+
- ​<!-- 31 -->[docs] Link charts in the roadmap (#37944) @oliviertassinari
|
|
206
|
+
- ​<!-- 30 -->[docs] Improve changelog @oliviertassinari
|
|
207
|
+
- ​<!-- 29 -->[docs] Improve the Select docs (#37279) @michaldudak
|
|
208
|
+
- ​<!-- 16 -->[docs][menu] Add Tailwind CSS & plain CSS demo on the Menu page (#37856) @mnajdova
|
|
209
|
+
- ​<!-- 15 -->[example] Update EmotionCacheProvider to work with GlobalStyles (#37962) @siriwatknp
|
|
210
|
+
|
|
211
|
+
### Core
|
|
212
|
+
|
|
213
|
+
- ​<!-- 50 -->[blog] Add blog post about support for Next.js App Router (#37929) @samuelsycamore
|
|
214
|
+
- ​<!-- 49 -->[blog] Blog MUI X pro statement removed (#38015) @prakhargupta1
|
|
215
|
+
- ​<!-- 48 -->[blog] Add Toolpad beta announcement blog (#37799) @prakhargupta1
|
|
216
|
+
- ​<!-- 46 -->[core] Increase space available for sidenav @oliviertassinari
|
|
217
|
+
- ​<!-- 45 -->[core] Adds `component` prop to `OverrideProps` type (#35924) @sai6855
|
|
218
|
+
- ​<!-- 44 -->[core] Fix rsc build step in CI (#38019) @mj12albert
|
|
219
|
+
- ​<!-- 43 -->[core] Remove nx dependency (#37964) @Janpot
|
|
220
|
+
- ​<!-- 42 -->[core] Lock `@types/node` to v18 (#37965) @ZeeshanTamboli
|
|
221
|
+
- ​<!-- 41 -->[core] Update priority support issue template and prompt (#37824) @DanailH
|
|
222
|
+
- ​<!-- 40 -->[core] Remove warnings in docs:api (#37858) @alexfauquette
|
|
223
|
+
- ​<!-- 39 -->[core] Make rimraf work after a major update (#37930) @michaldudak
|
|
224
|
+
- ​<!-- 28 -->[docs-infra] Change the Diamond Sponsor block positioning on the side nav (#37933) @danilo-leal
|
|
225
|
+
- ​<!-- 27 -->[docs-infra] Support backticks in the codeblocks (#37950) @cherniavskii
|
|
226
|
+
- ​<!-- 26 -->[docs-infra] Improve performance hideToolbar: true (#37969) @oliviertassinari
|
|
227
|
+
- ​<!-- 25 -->[docs-infra] Fix button label on mobile (#37997) @oliviertassinari
|
|
228
|
+
- ​<!-- 24 -->[docs-infra] Square drawer corners (#37970) @oliviertassinari
|
|
229
|
+
- ​<!-- 23 -->[docs-infra] Improve tab contrast in codeblock (#38000) @oliviertassinari
|
|
230
|
+
- ​<!-- 22 -->[docs-infra] Fix API generation for Base UI (#37941) @oliviertassinari
|
|
231
|
+
- ​<!-- 21 -->[docs-infra] Fix layout shift on xGrid (#37954) @oliviertassinari
|
|
232
|
+
- ​<!-- 20 -->[docs-infra] Update installation commands to use the new tabs code component (#37927) @danilo-leal
|
|
233
|
+
- ​<!-- 19 -->[docs-infra] Improve disableToc={true} support (#37931) @oliviertassinari
|
|
234
|
+
- ​<!-- 18 -->[docs-infra] Remove icons and tweak the design of the side nav (#37860) @danilo-leal
|
|
235
|
+
- ​<!-- 17 -->[docs-infra] Fix TypeScrit error in demo export (#37830) @oliviertassinari
|
|
236
|
+
- ​<!-- 08 -->[notifications] Add notification for first Charts release (#37679) @joserodolfofreitas
|
|
237
|
+
- ​<!-- 05 -->[website] Add Base UI marketing page (#36622) @siriwatknp
|
|
238
|
+
- ​<!-- 04 -->[website] Update MUI X landing page (#37966) @cherniavskii
|
|
239
|
+
- ​<!-- 03 -->[website] Fix a11y issues (#37999) @oliviertassinari
|
|
240
|
+
- ​<!-- 02 -->[website] Make the Core page refer to group of products (#37608) @danilo-leal
|
|
241
|
+
- ​<!-- 01 -->[website] Add perpetual option to pricing page (#35504) @joserodolfofreitas
|
|
242
|
+
|
|
243
|
+
All contributors of this release in alphabetical order: @alexfauquette, @brijeshb42, @cherniavskii, @DanailH, @danilo-leal, @DiegoAndai, @divyammadhok, @ericbrian, @Janpot, @joserodolfofreitas, @Methuselah96, @michaldudak, @mj12albert, @mnajdova, @officialrajdeepsingh, @oliviertassinari, @OmPr366, @OndrejHj04, @prakhargupta1, @sai6855, @samuelsycamore, @siriwatknp, @zanivan, @ZeeshanTamboli
|
|
244
|
+
|
|
245
|
+
## 5.14.0
|
|
246
|
+
|
|
247
|
+
<!-- generated comparing v5.13.7..master -->
|
|
248
|
+
|
|
249
|
+
_Jul 11, 2023_
|
|
250
|
+
|
|
251
|
+
A big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
252
|
+
|
|
253
|
+
- 💫 Material UI, Joy UI, and Base UI are compatible with [NextJS App Router](https://nextjs.org/docs/app) (#37656) @mj12albert
|
|
254
|
+
- 📚 Added new guides for integrating with Next.js 13 App Router (#37656) @mj12albert
|
|
255
|
+
- Ⓜ️ [Material UI guide](https://mui.com/material-ui/guides/next-js-app-router/)
|
|
256
|
+
- 🅙 [Joy UI guide](https://mui.com/joy-ui/guides/next-js-app-router/)
|
|
257
|
+
- 🅱️ [Base UI guide](https://mui.com/base-ui/guides/next-js-app-router/)
|
|
258
|
+
- 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements.
|
|
259
|
+
|
|
260
|
+
### `@mui/material@5.14.0`
|
|
261
|
+
|
|
262
|
+
- [Autocomplete] Enable global customization of different options (#36971) @nicolas-ot
|
|
263
|
+
|
|
264
|
+
### `@mui/material-next@6.0.0-alpha.92`
|
|
265
|
+
|
|
266
|
+
- [Slider][material-next] Slider restructure and style improvements (#37644) @DiegoAndai
|
|
267
|
+
|
|
268
|
+
### `@mui/joy@5.0.0-alpha.87`
|
|
269
|
+
|
|
270
|
+
- [ButtonGroup] Fix style for single Button (#37692) @MaybePixem
|
|
271
|
+
- Fix theme typography fallback value (#37845) @siriwatknp
|
|
272
|
+
|
|
273
|
+
### `@mui/icons-material@5.14.0`
|
|
274
|
+
|
|
275
|
+
- [icons-material] Rebuild icons with `"use client"` (#37894) @mj12albert
|
|
276
|
+
|
|
277
|
+
### Docs
|
|
278
|
+
|
|
279
|
+
- [docs] Polish Ukraine banner (#37905) @oliviertassinari
|
|
280
|
+
- [docs] Reduce Ukraine banner size (#34795) @oliviertassinari
|
|
281
|
+
- [docs] Add callouts about controlled vs uncontrolled components in Core docs (#37849) @samuelsycamore
|
|
282
|
+
- [docs] Add missing Portal elements to Tailwind CSS interoperability guide (#37807) @enrique-ramirez
|
|
283
|
+
- [docs] Small pickers migration improvement (#37815) @alexfauquette
|
|
284
|
+
- [docs] Fix pickers product name (#37825) @LukasTy
|
|
285
|
+
- [docs][Joy][Link] Set `variant` and `color` defaults for the playground (#37817) @Studio384
|
|
286
|
+
- [docs][Joy][Table] Add `undefined` as an option to `stripe` (#37816) @Studio384
|
|
287
|
+
- [docs][base] Add Tailwind CSS & plain CSS demo on the Snackbar page (#37812) @mnajdova
|
|
288
|
+
- [docs][base] Add Tailwind CSS & plain CSS demo on Badge page (#37768) @mnajdova
|
|
289
|
+
- [docs][base] Fix Nested modal demo positioning (#37506) @gitstart
|
|
290
|
+
- [docs][base] Add Tailwind CSS & plain CSS demo on the Switch page (#37728) @mnajdova
|
|
291
|
+
- [docs-infra] Remove code tags in ToC (#37834) @cherniavskii
|
|
292
|
+
- [docs-infra] Fixes in API pages generation (#37813) @mnajdova
|
|
293
|
+
- [docs-infra] Add test case when using sh (#37818) @oliviertassinari
|
|
294
|
+
- [docs-infra] Use icons instead of words for the code copy button (#37664) @danilo-leal
|
|
295
|
+
- [docs-infra] Fix code parser (#37828) @alexfauquette
|
|
296
|
+
- [docs-infra] Fix `marked` deprecation warning (#37769) @alexfauquette
|
|
297
|
+
- [docs-infra] Allows to use codeblock in the docs (#37643) @alexfauquette
|
|
298
|
+
- [docs-infra][joy] Change Joy UI's playground variant selector (#37821) @danilo-leal
|
|
299
|
+
|
|
300
|
+
### Core
|
|
301
|
+
|
|
302
|
+
- [core] Prepend "use-client" directive + add docs and examples for using MUI libraries with Next.js App Router (#37656) @mj12albert
|
|
303
|
+
- [core] Fix imports to React (#37863) @oliviertassinari
|
|
304
|
+
- [core] Disambiguate eslint plugin name @oliviertassinari
|
|
305
|
+
- [core] Sync the lint script name with the other repositories @oliviertassinari
|
|
306
|
+
- [core] Point to Crowdin directly @oliviertassinari
|
|
307
|
+
- [website] Sync career page (#37847) @oliviertassinari
|
|
308
|
+
|
|
309
|
+
All contributors of this release in alphabetical order: @alexfauquette, @cherniavskii, @danilo-leal, @DiegoAndai, @enrique-ramirez, @gitstart, @LukasTy, @MaybePixem, @mj12albert, @mnajdova, @nicolas-ot, @oliviertassinari, @samuelsycamore, @siriwatknp, @Studio384
|
|
310
|
+
|
|
3
311
|
## 5.13.7
|
|
4
312
|
|
|
5
313
|
<!-- generated comparing v5.13.6..master -->
|
|
@@ -521,7 +829,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
521
829
|
|
|
522
830
|
There is codemod that you can run in your project to do the transformation:
|
|
523
831
|
|
|
524
|
-
```
|
|
832
|
+
```bash
|
|
525
833
|
npx @mui/codemod v5.0.0/base-remove-component-prop <path>
|
|
526
834
|
```
|
|
527
835
|
|
|
@@ -620,7 +928,7 @@ A big thanks to the 12 contributors who made this release possible. Here are som
|
|
|
620
928
|
|
|
621
929
|
You can use this [codemod](https://github.com/mui/material-ui/blob/master/packages/mui-codemod/src/v5.0.0/base-remove-unstyled-suffix.js) to help with the migration:
|
|
622
930
|
|
|
623
|
-
```
|
|
931
|
+
```bash
|
|
624
932
|
npx @mui/codemod v5.0.0/base-remove-unstyled-suffix <path>
|
|
625
933
|
```
|
|
626
934
|
|
|
@@ -2732,7 +3040,7 @@ _Sep 12, 2022_
|
|
|
2732
3040
|
|
|
2733
3041
|
A big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
2734
3042
|
|
|
2735
|
-
- 🚀 [Blog post](https://mui.com/blog/introducing-
|
|
3043
|
+
- 🚀 [Blog post](https://mui.com/blog/introducing-base-ui/) for announcing the release of the Base UI package is out thanks to @michaldudak.
|
|
2736
3044
|
- 🚀 Added [`Alert`](https://mui.com/joy-ui/react-alert/), [`Modal`](https://mui.com/joy-ui/react-modal/), [`ListSubheader`](https://mui.com/joy-ui/react-list-subheader/), [`FormControl`](https://mui.com/joy-ui/react-form-control/), [`CircularProgress`](https://mui.com/joy-ui/react-circular-progress/) components to Joy UI (#33859) @hbjORbj @siriwatknp
|
|
2737
3045
|
- And more 🐛 bug fixes and 📚 documentation improvements.
|
|
2738
3046
|
|
|
@@ -6265,7 +6573,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
6265
6573
|
|
|
6266
6574
|
replace `@material-ui/*` prefix with `@mui/*`:
|
|
6267
6575
|
|
|
6268
|
-
```
|
|
6576
|
+
```bash
|
|
6269
6577
|
@material-ui/system -> @mui/system
|
|
6270
6578
|
@material-ui/styles -> @mui/styles
|
|
6271
6579
|
@material-ui/lab -> @mui/lab
|
|
@@ -6278,7 +6586,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
6278
6586
|
|
|
6279
6587
|
except these 3 packages that are renamed.
|
|
6280
6588
|
|
|
6281
|
-
```
|
|
6589
|
+
```bash
|
|
6282
6590
|
@material-ui/core => @mui/material // represents Material Design components.
|
|
6283
6591
|
@material-ui/icons => @mui/icons-material // represents Material Design icons.
|
|
6284
6592
|
@material-ui/unstyled => @mui/base // fully functional components with minimum styles.
|
|
@@ -9940,7 +10248,7 @@ _Nov 14, 2020_
|
|
|
9940
10248
|
A big thanks to the 34 contributors who made this release possible. Here are some highlights ✨:
|
|
9941
10249
|
|
|
9942
10250
|
- 📅 Migrate the date picker to the lab (#22692) @dmtrKovalenko.
|
|
9943
|
-
We have integrated the components with the code infrastructure. Next we will migrate all the GitHub issues from [material-ui-pickers](https://github.com/mui/material-ui-pickers) and archive the repository. This migration will help provide first-class support for the date picker components. The component will stay in the lab as long as necessary to reach the high
|
|
10251
|
+
We have integrated the components with the code infrastructure. Next we will migrate all the GitHub issues from [material-ui-pickers](https://github.com/mui/material-ui-pickers) and archive the repository. This migration will help provide first-class support for the date picker components. The component will stay in the lab as long as necessary to reach the high-quality bar we have for core components. You can find the [new documentation here](https://mui.com/components/pickers/).
|
|
9944
10252
|
|
|
9945
10253
|
While the source code is currently hosted in the [main repository](https://github.com/mui/material-ui), we might move it to the [x repository](https://github.com/mui/mui-x) in the future, depending on what is easier for the commercial date range picker. The date picker will stay open source no matter what.
|
|
9946
10254
|
|
|
@@ -10973,13 +11281,13 @@ Here are some highlights ✨:
|
|
|
10973
11281
|
|
|
10974
11282
|
Before:
|
|
10975
11283
|
|
|
10976
|
-
```
|
|
11284
|
+
```bash
|
|
10977
11285
|
theme.spacing(2) => 16
|
|
10978
11286
|
```
|
|
10979
11287
|
|
|
10980
11288
|
After:
|
|
10981
11289
|
|
|
10982
|
-
```
|
|
11290
|
+
```bash
|
|
10983
11291
|
theme.spacing(2) => '16px'
|
|
10984
11292
|
```
|
|
10985
11293
|
|
package/esm/index.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import * as React from 'react';
|
|
2
4
|
import useEnhancedEffect from '../useEnhancedEffect';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* https://github.com/facebook/react/issues/14099#issuecomment-440013892
|
|
6
8
|
*/
|
|
7
|
-
|
|
9
|
+
|
|
10
|
+
function useEventCallback(fn) {
|
|
8
11
|
const ref = React.useRef(fn);
|
|
9
12
|
useEnhancedEffect(() => {
|
|
10
13
|
ref.current = fn;
|
|
@@ -13,4 +16,5 @@ export default function useEventCallback(fn) {
|
|
|
13
16
|
// @ts-expect-error hide `this`
|
|
14
17
|
// tslint:disable-next-line:ban-comma-operator
|
|
15
18
|
(0, ref.current)(...args), []);
|
|
16
|
-
}
|
|
19
|
+
}
|
|
20
|
+
export default useEventCallback;
|
package/esm/useForkRef/index.js
CHANGED
package/esm/useId/index.js
CHANGED
package/esm/useId/useId.js
CHANGED
package/esm/useIsFocusVisible.js
CHANGED
package/esm/usePreviousProps.js
CHANGED
package/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/utils v5.
|
|
2
|
+
* @mui/utils v5.14.3
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
"use strict";
|
|
9
|
+
'use client';
|
|
9
10
|
|
|
10
11
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
11
12
|
Object.defineProperty(exports, "__esModule", {
|
package/legacy/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/utils v5.
|
|
2
|
+
* @mui/utils v5.14.3
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
+
'use client';
|
|
9
|
+
|
|
8
10
|
export { default as chainPropTypes } from './chainPropTypes';
|
|
9
11
|
export { default as deepmerge } from './deepmerge';
|
|
10
12
|
export { isPlainObject } from './deepmerge';
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import * as React from 'react';
|
|
2
4
|
import useEnhancedEffect from '../useEnhancedEffect';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* https://github.com/facebook/react/issues/14099#issuecomment-440013892
|
|
6
8
|
*/
|
|
7
|
-
|
|
9
|
+
|
|
10
|
+
function useEventCallback(fn) {
|
|
8
11
|
var ref = React.useRef(fn);
|
|
9
12
|
useEnhancedEffect(function () {
|
|
10
13
|
ref.current = fn;
|
|
@@ -16,4 +19,5 @@ export default function useEventCallback(fn) {
|
|
|
16
19
|
(0, ref.current).apply(void 0, arguments)
|
|
17
20
|
);
|
|
18
21
|
}, []);
|
|
19
|
-
}
|
|
22
|
+
}
|
|
23
|
+
export default useEventCallback;
|
package/legacy/useId/index.js
CHANGED
package/legacy/useId/useId.js
CHANGED
package/modern/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/utils v5.
|
|
2
|
+
* @mui/utils v5.14.3
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
+
'use client';
|
|
9
|
+
|
|
8
10
|
export { default as chainPropTypes } from './chainPropTypes';
|
|
9
11
|
export { default as deepmerge } from './deepmerge';
|
|
10
12
|
export { isPlainObject } from './deepmerge';
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import * as React from 'react';
|
|
2
4
|
import useEnhancedEffect from '../useEnhancedEffect';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* https://github.com/facebook/react/issues/14099#issuecomment-440013892
|
|
6
8
|
*/
|
|
7
|
-
|
|
9
|
+
|
|
10
|
+
function useEventCallback(fn) {
|
|
8
11
|
const ref = React.useRef(fn);
|
|
9
12
|
useEnhancedEffect(() => {
|
|
10
13
|
ref.current = fn;
|
|
@@ -13,4 +16,5 @@ export default function useEventCallback(fn) {
|
|
|
13
16
|
// @ts-expect-error hide `this`
|
|
14
17
|
// tslint:disable-next-line:ban-comma-operator
|
|
15
18
|
(0, ref.current)(...args), []);
|
|
16
|
-
}
|
|
19
|
+
}
|
|
20
|
+
export default useEventCallback;
|
package/modern/useId/index.js
CHANGED
package/modern/useId/useId.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/utils",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.14.3",
|
|
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.22.
|
|
32
|
+
"@babel/runtime": "^7.22.6",
|
|
33
33
|
"@types/prop-types": "^15.7.5",
|
|
34
34
|
"@types/react-is": "^18.2.1",
|
|
35
35
|
"prop-types": "^15.8.1",
|
package/useControlled/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
'use client';
|
|
2
3
|
|
|
4
|
+
/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -7,8 +9,6 @@ exports.default = useControlled;
|
|
|
7
9
|
var React = _interopRequireWildcard(require("react"));
|
|
8
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
9
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
10
|
-
/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */
|
|
11
|
-
|
|
12
12
|
function useControlled({
|
|
13
13
|
controlled,
|
|
14
14
|
default: defaultProp,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* https://github.com/facebook/react/issues/14099#issuecomment-440013892
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
declare function useEventCallback<Fn extends (...args: any[]) => any = (...args: unknown[]) => unknown>(fn: Fn): Fn;
|
|
5
|
+
declare function useEventCallback<Args extends unknown[], Return>(fn: (...args: Args) => Return): (...args: Args) => Return;
|
|
6
|
+
export default useEventCallback;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
'use client';
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
|
-
exports.default =
|
|
8
|
+
exports.default = void 0;
|
|
8
9
|
var React = _interopRequireWildcard(require("react"));
|
|
9
10
|
var _useEnhancedEffect = _interopRequireDefault(require("../useEnhancedEffect"));
|
|
10
11
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -12,6 +13,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
12
13
|
/**
|
|
13
14
|
* https://github.com/facebook/react/issues/14099#issuecomment-440013892
|
|
14
15
|
*/
|
|
16
|
+
|
|
15
17
|
function useEventCallback(fn) {
|
|
16
18
|
const ref = React.useRef(fn);
|
|
17
19
|
(0, _useEnhancedEffect.default)(() => {
|
|
@@ -21,4 +23,6 @@ function useEventCallback(fn) {
|
|
|
21
23
|
// @ts-expect-error hide `this`
|
|
22
24
|
// tslint:disable-next-line:ban-comma-operator
|
|
23
25
|
(0, ref.current)(...args), []);
|
|
24
|
-
}
|
|
26
|
+
}
|
|
27
|
+
var _default = useEventCallback;
|
|
28
|
+
exports.default = _default;
|
package/useForkRef/index.js
CHANGED
package/useForkRef/useForkRef.js
CHANGED
package/useId/index.js
CHANGED
package/useId/useId.js
CHANGED
package/useIsFocusVisible.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
'use client';
|
|
2
3
|
|
|
4
|
+
// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -8,8 +10,6 @@ exports.teardown = teardown;
|
|
|
8
10
|
var React = _interopRequireWildcard(require("react"));
|
|
9
11
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
10
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
11
|
-
// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js
|
|
12
|
-
|
|
13
13
|
let hadKeyboardEvent = true;
|
|
14
14
|
let hadFocusVisibleRecently = false;
|
|
15
15
|
let hadFocusVisibleRecentlyTimeout;
|