@mui/system 5.0.0 โ 5.0.4
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/Box/Box.spec.d.ts +1 -1
- package/CHANGELOG.md +278 -2
- package/LICENSE +21 -21
- package/borders.js +1 -1
- package/breakpoints.js +4 -3
- package/colorManipulator.js +8 -8
- package/createStyled.d.ts +12 -37
- package/createStyled.js +1 -1
- package/createTheme/createBreakpoints.d.ts +53 -6
- package/createTheme/createBreakpoints.js +1 -1
- package/createTheme/createSpacing.d.ts +10 -10
- package/display.js +1 -1
- package/esm/spacing.js +2 -2
- package/flexbox.js +1 -1
- package/getThemeValue.js +1 -1
- package/grid.js +1 -1
- package/index.js +69 -69
- package/index.spec.d.ts +1 -1
- package/legacy/index.js +1 -1
- package/legacy/spacing.js +2 -2
- package/modern/index.js +1 -1
- package/modern/spacing.js +2 -2
- package/package.json +7 -6
- package/palette.js +1 -1
- package/positions.js +1 -1
- package/sizing.js +1 -1
- package/spacing.d.ts +12 -0
- package/spacing.js +5 -5
- package/style.d.ts +1 -1
- package/style.js +1 -1
- package/styleFunctionSx/styleFunctionSx.d.ts +2 -2
- package/typography.js +1 -1
- package/useTheme.js +1 -1
package/Box/Box.spec.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,281 @@
|
|
|
1
1
|
### [Versions](https://mui.com/versions/)
|
|
2
2
|
|
|
3
|
+
## 5.0.4
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v5.0.3..master -->
|
|
6
|
+
|
|
7
|
+
_Oct 14, 2021_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 17 contributors who made this release possible. Here are some highlights โจ:
|
|
10
|
+
|
|
11
|
+
- ๐งช Added `UnstyledInput` and `useInput` hook in the the first component in @mui/core package @michaldudak (#28053)
|
|
12
|
+
- ๐ Fixed many bugs and improved the documentation ๐.
|
|
13
|
+
|
|
14
|
+
### `@mui/material@5.0.4`
|
|
15
|
+
|
|
16
|
+
- ​<!-- 31 -->[Chip] disable ripple only if onDelete is present. (#29034) @mottox2
|
|
17
|
+
- ​<!-- 06 -->[Pagination] Fix clicking on `...` triggering `onChange` with page value `null` (#28884) @ZeeshanTamboli
|
|
18
|
+
- ​<!-- 04 -->[Tabs] Alternative way to disable ":first-child is unsafe" error (#28982) @hbjORbj
|
|
19
|
+
- ​<!-- 03 -->[Tabs] Fix ":first-child is potentially unsafe" error (#28890) @hbjORbj
|
|
20
|
+
- ​<!-- 01 -->[transitions] Mark `children` as required where nullish `children` would crash at runtime (#29028) @eps1lon
|
|
21
|
+
|
|
22
|
+
### `@mui/system@5.0.4`
|
|
23
|
+
|
|
24
|
+
- ​<!-- 05 -->[system] Update typing for `style` function (#28744) @hbjORbj
|
|
25
|
+
|
|
26
|
+
### `@mui/core@5.0.0-alpha.51`
|
|
27
|
+
|
|
28
|
+
- ​<!-- 07 -->[InputUnstyled] Create unstyled input and useInput hook (#28053) @michaldudak
|
|
29
|
+
|
|
30
|
+
### `@mui/lab@5.0.0-alpha.51`
|
|
31
|
+
|
|
32
|
+
- ​<!-- 25 -->[DesktopDatePicker] add Paper props to pass down to Paper component (#28865) @amen-souissi
|
|
33
|
+
|
|
34
|
+
### Docs
|
|
35
|
+
|
|
36
|
+
- ​<!-- 24 -->[docs] Add JSDoc to `theme.breakpoints` (#29039) @eps1lon
|
|
37
|
+
- ​<!-- 23 -->[docs] Rename broken package names in docs pointing to `@mui/material` (#29006) @visualfanatic
|
|
38
|
+
- ​<!-- 22 -->[docs] Add troubleshooting guide for unexpected styles (#28907) @mnajdova
|
|
39
|
+
- ​<!-- 21 -->[docs] Fix issues reported by ahref (#28986) @mnajdova
|
|
40
|
+
- ​<!-- 20 -->[docs] Remove json translations for dropped locales (#28987) @mnajdova
|
|
41
|
+
- ​<!-- 19 -->[docs] Fix type signature of renderGroup in Autocomplete (#28876) @tanyabouman
|
|
42
|
+
- ​<!-- 18 -->[docs] Minor typo in v4-v5 migration docs (#28995) @kgregory
|
|
43
|
+
- ​<!-- 17 -->[docs] Add `mui-image` related project (#28621) @benmneb
|
|
44
|
+
- ​<!-- 16 -->[docs] Update Getting Started Templates' Source URIs (#28929) @epodol
|
|
45
|
+
- ​<!-- 15 -->[docs] Improve search experience (#28801) @siriwatknp
|
|
46
|
+
- ​<!-- 14 -->[docs] Fix demo of the responsive drawer (#28226) @goncalovf
|
|
47
|
+
- ​<!-- 13 -->[docs] Fix global theme link demo (#28974) @ZeeshanTamboli
|
|
48
|
+
- ​<!-- 12 -->[docs] Update box example to use 'backgroundColor' rather than 'bgColor' (#28958) @Jareechang
|
|
49
|
+
- ​<!-- 11 -->[docs] corrected `Box` import for `sx-prop` example (#28873) @phudekar
|
|
50
|
+
- ​<!-- 10 -->[docs] Fix footnote ID links in CONTRIBUTING.md (#28849) @officialpiyush
|
|
51
|
+
- ​<!-- 09 -->[docs] Fix color & density playground (#28803) @siriwatknp
|
|
52
|
+
- ​<!-- 08 -->[docs] Improve visibility of styled engine configuration section in installation guide (#28903) @Jareechang
|
|
53
|
+
|
|
54
|
+
### Core
|
|
55
|
+
|
|
56
|
+
- ​<!-- 30 -->[core] Prevent yarn cache growing infinitely (#29040) @eps1lon
|
|
57
|
+
- ​<!-- 29 -->[core] Update browserslist (#29025) @eps1lon
|
|
58
|
+
- ​<!-- 28 -->[core] Update `peerDependencies` to require `latest` instead of `next` (#29007) @eps1lon
|
|
59
|
+
- ​<!-- 27 -->[core] Increase memory limit for size:snapshot (#29005) @eps1lon
|
|
60
|
+
- ​<!-- 26 -->[core] Init `private` Joy package (#28957) @siriwatknp
|
|
61
|
+
- ​<!-- 02 -->[test] Remove a11y snapshot tests (#28887) @eps1lon
|
|
62
|
+
|
|
63
|
+
All contributors of this release in alphabetical order: @amen-souissi, @benmneb, @epodol, @eps1lon, @goncalovf, @hbjORbj, @Jareechang, @kgregory, @michaldudak, @mnajdova, @mottox2, @officialpiyush, @phudekar, @siriwatknp, @tanyabouman, @visualfanatic, @ZeeshanTamboli
|
|
64
|
+
|
|
65
|
+
## 5.0.3
|
|
66
|
+
|
|
67
|
+
<!-- generated comparing v5.0.2..master -->
|
|
68
|
+
|
|
69
|
+
_Oct 7, 2021_
|
|
70
|
+
|
|
71
|
+
A big thanks to the 19 contributors who made this release possible. Here are some highlights โจ:
|
|
72
|
+
|
|
73
|
+
- ๐งช Created the first component in @mui/material-next - our v6 prototype package.
|
|
74
|
+
- ๐ Fixed many bugs and improved the documentation ๐.
|
|
75
|
+
|
|
76
|
+
### `@mui/material@5.0.3`
|
|
77
|
+
|
|
78
|
+
- ​<!-- 10 -->[Stack] Add props & variants types in the theme (#28843) @mnajdova
|
|
79
|
+
- ​<!-- 12 -->[InputLabel] Fix condition for applying formControl overrides (#28707) @yevheniiminin
|
|
80
|
+
- ​<!-- 05 -->[Tooltip] Allow overriding internal components and their props (#28692) @michaldudak
|
|
81
|
+
- ​<!-- 04 -->[transitions] Fix `addEndListener` not being called with the DOM node (#28715) @eps1lon
|
|
82
|
+
|
|
83
|
+
### `@mui/codemod@5.0.3`
|
|
84
|
+
|
|
85
|
+
- ​<!-- 37 -->[codemod] Fix `optimal-imports` to support v4 and v5-alpha, beta (#28812) @siriwatknp
|
|
86
|
+
|
|
87
|
+
### `@mui/system@5.0.3`
|
|
88
|
+
|
|
89
|
+
- ​<!-- 09 -->[system] Add padding/margin-block/inline to spacing (#28813) @smmoosavi
|
|
90
|
+
|
|
91
|
+
### `@mui/styled-engine-sc@5.0.3`
|
|
92
|
+
|
|
93
|
+
- ​<!-- 42 -->Don't allow styled-components APIs on mui styled function (#28807) @hbjORbj
|
|
94
|
+
|
|
95
|
+
### `@mui/core@5.0.0-alpha.50`
|
|
96
|
+
|
|
97
|
+
- ​<!-- 38 -->[ButtonUnstyled] Don't set redundant role=button (#28488) @michaldudak
|
|
98
|
+
- ​<!-- 43 -->[SliderUnstyled] Prevent unknown-prop error when using marks prop (#28868) @hbjORbj
|
|
99
|
+
|
|
100
|
+
### `@mui/lab@5.0.0-alpha.50`
|
|
101
|
+
|
|
102
|
+
- ​<!-- 11 -->[pickers] Change view even if `onViewChange` is set (#28765) @eps1lon
|
|
103
|
+
|
|
104
|
+
### `@mui/material-next@6.0.0-alpha.4`
|
|
105
|
+
|
|
106
|
+
- ​<!-- 39 -->[Button-next] Create Button in material-next (#28313) @michaldudak
|
|
107
|
+
|
|
108
|
+
### Docs
|
|
109
|
+
|
|
110
|
+
- ​<!-- 34 -->[docs] Add alike v4 default button color in migration (#28881) @siriwatknp
|
|
111
|
+
- ​<!-- 34 -->[docs] Use PNG instead of SVG for color preview (#28699) @eps1lon
|
|
112
|
+
- ​<!-- 33 -->[docs] Use client-side navigation when activating docsearch results (#28750) @eps1lon
|
|
113
|
+
- ​<!-- 32 -->[docs] Fluid icon size in icons search (#28747) @eps1lon
|
|
114
|
+
- ​<!-- 31 -->[docs] Fix the wrong import in docs grid page (#28863) @taghi-khavari
|
|
115
|
+
- ​<!-- 30 -->[docs] Fix typo in Pagination docs (#28864) @ZeeshanTamboli
|
|
116
|
+
- ​<!-- 29 -->[docs] Fix 404 links (#28710) @mnajdova
|
|
117
|
+
- ​<!-- 28 -->[docs] Fix typo in Mui CSS classname (#28725) @cacpgomes
|
|
118
|
+
- ​<!-- 27 -->[docs] Match example to codesandbox demo and update ID link (#28762) @AnilSeervi
|
|
119
|
+
- ​<!-- 26 -->[docs] Fix typo in system/box documentation (#28822) @iamsergo
|
|
120
|
+
- ​<!-- 25 -->[docs] Use HTML standards for autocomplete attributes (#28827) @epodol
|
|
121
|
+
- ​<!-- 24 -->[docs] Improve styled-components integration (#28713) @mnajdova
|
|
122
|
+
- ​<!-- 23 -->[docs] Correct Select's menu placement description (#28748) @michaldudak
|
|
123
|
+
- ​<!-- 22 -->[docs] AdapterDayJS -> AdapterDayjs (#28770) @veerreshr
|
|
124
|
+
- ​<!-- 21 -->[docs] Theme documentation, typo fix (#28805) @saeedseyfi
|
|
125
|
+
- ​<!-- 20 -->[docs] Add the last diamond sponsor (#28737) @hbjORbj
|
|
126
|
+
- ​<!-- 19 -->[docs] Fix various links in CONTRIBUTING (#28751) @AnilSeervi
|
|
127
|
+
- ​<!-- 18 -->[docs] Only add JSS to demos (#28698) @eps1lon
|
|
128
|
+
- ​<!-- 17 -->[docs] Update v5 status in release schedule (#28700) @owais635
|
|
129
|
+
- ​<!-- 16 -->[docs] Fix typo in /guides/styled-engine (#28720) @Sharry0
|
|
130
|
+
- ​<!-- 15 -->[docs] Fix typo in chip documentation (#28641) @avranju94
|
|
131
|
+
- ​<!-- 14 -->[docs] Fix versions page (#28682) @mnajdova
|
|
132
|
+
- ​<!-- 13 -->[docs] Remove legacy team page (#28646) @mnajdova
|
|
133
|
+
- ​<!-- 41 -->[website] add "React" to the hero description (#28830) @danilo-leal
|
|
134
|
+
- ​<!-- 03 -->[website] Fix constantly reloading when Russian language is set (#28869) @mnajdova
|
|
135
|
+
- ​<!-- 02 -->[website] Compress one avatar image on about us page (#28823) @hbjORbj
|
|
136
|
+
- ​<!-- 01 -->[website] Hide 'become a diamond sponsor' box on landing page (#28814) @hbjORbj
|
|
137
|
+
- ​<!-- 40 -->[website] Update Benny's profile on about us page (#28816) @hbjORbj
|
|
138
|
+
|
|
139
|
+
### Core
|
|
140
|
+
|
|
141
|
+
- ​<!-- 36 -->[core] Remove `--exact` from `release:version` (#28840) @siriwatknp
|
|
142
|
+
- ​<!-- 35 -->[core] Neglect framer from release flow (#28680) @siriwatknp
|
|
143
|
+
- ​<!-- 08 -->[test] Add a test for not allowing styled-components' APIs on mui `styled` function (#28862) @hbjORbj
|
|
144
|
+
- ​<!-- 07 -->[test] Fix instances where type tests were only passing due to object being part of ReactNode (#28804) @eps1lon
|
|
145
|
+
- ​<!-- 06 -->[test] Move ByMuiTest to test/utils (#28509) @eps1lon
|
|
146
|
+
|
|
147
|
+
All contributors of this release in alphabetical order: @AnilSeervi, @avranju94, @cacpgomes, @danilo-leal, @epodol, @eps1lon, @hbjORbj, @iamsergo, @michaldudak, @mnajdova, @owais635, @saeedseyfi, @Sharry0, @siriwatknp, @smmoosavi, @taghi-khavari, @veerreshr, @yevheniiminin, @ZeeshanTamboli
|
|
148
|
+
|
|
149
|
+
## 5.0.2
|
|
150
|
+
|
|
151
|
+
<!-- generated comparing v5.0.1..master -->
|
|
152
|
+
|
|
153
|
+
_Sep 29, 2021_
|
|
154
|
+
|
|
155
|
+
A big thanks to the 15 contributors who made this release possible. Here are some highlights โจ:
|
|
156
|
+
|
|
157
|
+
- ๐ง Improve `jss-to-styled` codemod to use new package names.
|
|
158
|
+
- And many more ๐ bug fixes and ๐ improvements.
|
|
159
|
+
|
|
160
|
+
### `@mui/material@5.0.2`
|
|
161
|
+
|
|
162
|
+
- ​<!-- 28 -->[Checkbox] Fix form submission with empty value (#28423) @garronej
|
|
163
|
+
- ​<!-- 08 -->[Slider] Don't error on minimal changes with readonly value (#28472) @eps1lon
|
|
164
|
+
- ​<!-- 07 -->[Switch] Fix style overrides on input (#28576) @praveenkumar-kalidass
|
|
165
|
+
- ​<!-- 03 -->[useMediaQuery] Add types for `matchMedia` option and deprecate exported interfaces (#28413) @eps1lon
|
|
166
|
+
|
|
167
|
+
### `@mui/codemod@5.0.2`
|
|
168
|
+
|
|
169
|
+
- ​<!-- 27 -->[codemod] Add MenuItem v.1.0.0 transform for primaryText property (#28640) @dmitry-yudakov
|
|
170
|
+
- ​<!-- 26 -->[codemod] Update the imports in `jss-to-styled` to match the new package names (#28667) @mnajdova
|
|
171
|
+
|
|
172
|
+
### `@mui/system@5.0.2`
|
|
173
|
+
|
|
174
|
+
- ​<!-- 06 -->[system] Fix types to support theme callbacks on pseudo and nested selectors (#28570) @mnajdova
|
|
175
|
+
|
|
176
|
+
### Docs
|
|
177
|
+
|
|
178
|
+
- ​<!-- 23 -->[docs] Remove languages: fr, de, ja, es, ru (#28663) @mnajdova
|
|
179
|
+
- ​<!-- 22 -->[docs] Improve old doc versions discoverability (#28651) @danilo-leal
|
|
180
|
+
- ​<!-- 21 -->[docs] Make the Toggle Button size demo use default icon size (#28656) @danilo-leal
|
|
181
|
+
- ​<!-- 20 -->[docs] Uniformize the code's font family (#28582) @oliviertassinari
|
|
182
|
+
- ​<!-- 19 -->[docs] Removed duplicate line in date-ranger-picker.md file (#28635) @naveen-bharathi
|
|
183
|
+
- ​<!-- 18 -->[docs] Fix title MUI x2 (#28634) @oliviertassinari
|
|
184
|
+
- ​<!-- 17 -->[docs] Polish email validation logic (#28255) @kiznick
|
|
185
|
+
- ​<!-- 16 -->[docs] Improve migration-v4.md phrasing (#28253) @adamthewebguy
|
|
186
|
+
- ​<!-- 15 -->[docs] Fix color in example (#28527) @alexeagleson
|
|
187
|
+
- ​<!-- 14 -->[docs] Fix typo in generated class names section (#28549) @fxlemire
|
|
188
|
+
- ​<!-- 13 -->[docs] Mention Premium pricing cap (#28581) @oliviertassinari
|
|
189
|
+
- ​<!-- 12 -->[docs] Update examples to use latest mui #28565 @siriwatknp
|
|
190
|
+
- ​<!-- 11 -->[docs] Push the fixes on Next.js's Link to the examples (#28178) @oliviertassinari
|
|
191
|
+
- ​<!-- 10 -->[docs] Fix wrong name for zIndex's property example in /system/ (#28541) @chetrit
|
|
192
|
+
- ​<!-- 08 -->[examples] Nextjs Link missing passHref #28588 (#28661) @Brlaney
|
|
193
|
+
- ​<!-- 02 -->[website] Iteration on the pricing page (#28406) @danilo-leal
|
|
194
|
+
- ​<!-- 01 -->[website] Batch fixes (#28564) @siriwatknp
|
|
195
|
+
|
|
196
|
+
### Core
|
|
197
|
+
|
|
198
|
+
- ​<!-- 25 -->[core] Improve Renovate groups (#28642) @eps1lon
|
|
199
|
+
- ​<!-- 24 -->[core] Batch small changes (#28553) @oliviertassinari
|
|
200
|
+
- ​<!-- 05 -->[test] Document where the value for SwitchBase#value comes from (#28638) @eps1lon
|
|
201
|
+
- ​<!-- 04 -->[test] Make `seconds` `views` test pass in browsers (#28511) @eps1lon
|
|
202
|
+
|
|
203
|
+
All contributors of this release in alphabetical order: @adamthewebguy, @alexeagleson, @Brlaney, @chetrit, @danilo-leal, @dmitry-yudakov, @eps1lon, @fxlemire, @garronej, @kiznick, @mnajdova, @naveen-bharathi, @oliviertassinari, @praveenkumar-kalidass, @siriwatknp
|
|
204
|
+
|
|
205
|
+
## 5.0.1
|
|
206
|
+
|
|
207
|
+
<!-- generated comparing v5.0.0..master -->
|
|
208
|
+
|
|
209
|
+
_Sep 22, 2021_
|
|
210
|
+
|
|
211
|
+
A big thanks to the 14 contributors who made this release possible. Here are some highlights โจ:
|
|
212
|
+
|
|
213
|
+
- ๐ Improve the search on the documentation.
|
|
214
|
+
- ๐ Improve the v4 to v5 migration guide.
|
|
215
|
+
- And many more ๐ bug fixes and ๐ improvements.
|
|
216
|
+
|
|
217
|
+
### `@mui/material@5.0.1`
|
|
218
|
+
|
|
219
|
+
- ​<!-- 18 -->[Radio] Fix support for number value type (#26772) @sakura90
|
|
220
|
+
- ​<!-- 12 -->[useMediaQuery] Reduce bundle size (#28412) @eps1lon
|
|
221
|
+
|
|
222
|
+
### `@mui/codemod@5.0.1`
|
|
223
|
+
|
|
224
|
+
- ​<!-- 43 -->[codemod] Cover edge case for theme-spacing #28400 @siriwatknp
|
|
225
|
+
|
|
226
|
+
### `@mui/lab@5.0.0-alpha.48`
|
|
227
|
+
|
|
228
|
+
- ​<!-- 36 -->[DateTimePicker] Support `seconds` `view` (#25095) @breitembach
|
|
229
|
+
- ​<!-- 13 -->[TimePicker] Fire change event when meridiem changes (#26600) @coder-freestyle
|
|
230
|
+
|
|
231
|
+
### Docs
|
|
232
|
+
|
|
233
|
+
- ​<!-- 35 -->[docs] Fix missing exit animation for transition Poppers (#28506) @eps1lon
|
|
234
|
+
- ​<!-- 34 -->[docs] Fix migration v5 docs (#28530) @siriwatknp
|
|
235
|
+
- ​<!-- 33 -->[docs] Avoid re-mounting the whole tree when switching theme direction (#28495) @eps1lon
|
|
236
|
+
- ​<!-- 32 -->[docs] Fix html compliance (#28429) @oliviertassinari
|
|
237
|
+
- ​<!-- 31 -->[docs] Use hyphen-case for CSS properties in /system/properties (#28489) @chetrit
|
|
238
|
+
- ​<!-- 30 -->[docs] Update caret position in comments to match npm scope (#28426) @eps1lon
|
|
239
|
+
- ​<!-- 29 -->[docs] Fix CONTRIBUTING to point out to master as targeted branch (#28396) @mnajdova
|
|
240
|
+
- ​<!-- 28 -->[docs] Update examples to remove 'beta' (#28475) @oliviertassinari
|
|
241
|
+
- ​<!-- 27 -->[docs] Fix 404 links to MUI X API (#28176) @oliviertassinari
|
|
242
|
+
- ​<!-- 26 -->[docs] Fix broken/incorrect attributes links in Avatar and NativeSelect API pages (#28417) @xenostar
|
|
243
|
+
- ​<!-- 25 -->[docs] Explain how `<Alert icon={false} />` behaves (#28348) @nguyenkhanhnam
|
|
244
|
+
- ​<!-- 24 -->[docs] Fix typo in /system/the-sx-prop (#28393) @danwoods
|
|
245
|
+
- ​<!-- 23 -->[docs] Correct the migration doc (#28391) @michaldudak
|
|
246
|
+
- ​<!-- 22 -->[docs] Fix the notification display logic (#28389) @oliviertassinari
|
|
247
|
+
- ​<!-- 21 -->[docs] Add notification for v5 @oliviertassinari
|
|
248
|
+
- ​<!-- 20 -->[docs] Fix typo (#28521) @valse
|
|
249
|
+
- ​<!-- 12 -->[website] Implement algolia redesign (#28252) @hbjORbj
|
|
250
|
+
- ​<!-- 11 -->[website] Update data-grid dependencies #28531 @siriwatknp
|
|
251
|
+
- ​<!-- 10 -->[website] Cleanup unused files after rebranding (#28505) @siriwatknp
|
|
252
|
+
- ​<!-- 09 -->[website] Update /company pages to use marketing website Header and Footer (#28498) @danilo-leal
|
|
253
|
+
- ​<!-- 08 -->[website] Optimize images (#28486) @michaldudak
|
|
254
|
+
- ​<!-- 07 -->[website] Add components index page (#28485) @siriwatknp
|
|
255
|
+
- ​<!-- 06 -->[website] Fix typo (#28478) @oliviertassinari
|
|
256
|
+
- ​<!-- 05 -->[website] Fix crash (#28474) @oliviertassinari
|
|
257
|
+
- ​<!-- 04 -->[website] Close the open engineering roles (#28428) @oliviertassinari
|
|
258
|
+
- ​<!-- 03 -->[website] Fix 40x links (#28401) @mnajdova
|
|
259
|
+
- ​<!-- 02 -->[website] Fix SEO issues reported by moz.com (#28402) @mnajdova
|
|
260
|
+
- ​<!-- 01 -->[website] Fix production issues (#28384) @siriwatknp
|
|
261
|
+
|
|
262
|
+
### Core
|
|
263
|
+
|
|
264
|
+
- ​<!-- 44 -->[core] Fix release:changelog base branch (#28533) @mnajdova
|
|
265
|
+
- ​<!-- 42 -->[core] Remove code handling JSS components (#28421) @eps1lon
|
|
266
|
+
- ​<!-- 41 -->[core] Remove unused dependencies (#28468) @eps1lon
|
|
267
|
+
- ​<!-- 40 -->[core] Ensure both docs bundles are analyzeable (#28410) @eps1lon
|
|
268
|
+
- ​<!-- 39 -->[core] Switch to webpack 5 (#28248) @eps1lon
|
|
269
|
+
- ​<!-- 38 -->[core] Batch small changes (#28177) @oliviertassinari
|
|
270
|
+
- ​<!-- 37 -->[core] Update publish tag to latest (#28382) @mnajdova
|
|
271
|
+
- ​<!-- 19 -->[framer] Update @mui/\* dependencies (#28469) @eps1lon
|
|
272
|
+
- ​<!-- 17 -->[test] Add custom queries to `screen` (#28507) @eps1lon
|
|
273
|
+
- ​<!-- 16 -->[test] Run listChangedFiles against master (#28504) @eps1lon
|
|
274
|
+
- ​<!-- 15 -->[test] Increase BrowserStack timeout for Firefox (#28476) @oliviertassinari
|
|
275
|
+
- ​<!-- 14 -->[test] Use testing-library alpha when running React 18 tests (#28267) @eps1lon
|
|
276
|
+
|
|
277
|
+
All contributors of this release in alphabetical order: @breitembach, @chetrit, @coder-freestyle, @danilo-leal, @danwoods, @eps1lon, @hbjORbj, @michaldudak, @mnajdova, @nguyenkhanhnam, @oliviertassinari, @sakura90, @siriwatknp, @valse, @xenostar
|
|
278
|
+
|
|
3
279
|
## 5.0.0
|
|
4
280
|
|
|
5
281
|
<!-- generated comparing v5.0.0-rc.1..next -->
|
|
@@ -256,7 +532,7 @@ A big thanks to the 18 contributors who made this release possible. Here are som
|
|
|
256
532
|
- ​<!-- 31 -->[core] Remove file-wide disables of `no-use-before-define` (#27984) @eps1lon
|
|
257
533
|
- ​<!-- 30 -->[core] Improve `release:changelog` script (#27941) @eps1lon
|
|
258
534
|
- ​<!-- 29 -->[core] Enforce curly braces for block statements (#27946) @eps1lon
|
|
259
|
-
- ​<!-- 07 -->[test] Disable
|
|
535
|
+
- ​<!-- 07 -->[test] Disable BrowserStack for PRs (#28041) @eps1lon
|
|
260
536
|
|
|
261
537
|
All contributors of this release in alphabetical order: @aaronlademann-wf, @bene-we, @chetas411, @eps1lon, @flaviendelangle, @hbjORbj, @iamhosseindhv, @m4theushw, @michaldudak, @mnajdova, @oliviertassinari, @rajzik, @rsxdalv, @siriwatknp, @StefanBRas, @StefanTobler, @tdmiller1, @vedadeepta
|
|
262
538
|
|
|
@@ -1640,7 +1916,7 @@ A big thanks to the 16 contributors who made this release possible. Here are som
|
|
|
1640
1916
|
|
|
1641
1917
|
- ​<!-- 60 -->[core] Skip sx prop in internal components (#26235) @mnajdova
|
|
1642
1918
|
- ​<!-- 59 -->[core] Remove `withStyles` dependencies from `@material-ui/core/styles` (#26277) @mnajdova
|
|
1643
|
-
- ​<!-- 55 -->[core] Include human readable target in the
|
|
1919
|
+
- ​<!-- 55 -->[core] Include human readable target in the BrowserStack build (#26322) @eps1lon
|
|
1644
1920
|
- ​<!-- 53 -->[core] Fix NotchedOutlineProps type (#26305) @gnowland
|
|
1645
1921
|
- ​<!-- 51 -->[core] Add file for git-blame --ignore-revs-file (#26295) @eps1lon
|
|
1646
1922
|
- ​<!-- 49 -->[core] Ensure component class keys aren't missing (#25754) @eps1lon
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2014 Call-Em-All
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014 Call-Em-All
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/borders.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.default = exports.
|
|
8
|
+
exports.default = exports.borderTopColor = exports.borderTop = exports.borderRightColor = exports.borderRight = exports.borderRadius = exports.borderLeftColor = exports.borderLeft = exports.borderColor = exports.borderBottomColor = exports.borderBottom = exports.border = void 0;
|
|
9
9
|
|
|
10
10
|
var _responsivePropType = _interopRequireDefault(require("./responsivePropType"));
|
|
11
11
|
|
package/breakpoints.js
CHANGED
|
@@ -5,12 +5,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.handleBreakpoints = handleBreakpoints;
|
|
9
8
|
exports.createEmptyBreakpointObject = createEmptyBreakpointObject;
|
|
10
|
-
exports.
|
|
9
|
+
exports.default = void 0;
|
|
10
|
+
exports.handleBreakpoints = handleBreakpoints;
|
|
11
11
|
exports.mergeBreakpointsInOrder = mergeBreakpointsInOrder;
|
|
12
|
+
exports.removeUnusedBreakpoints = removeUnusedBreakpoints;
|
|
12
13
|
exports.resolveBreakpointValues = resolveBreakpointValues;
|
|
13
|
-
exports.
|
|
14
|
+
exports.values = void 0;
|
|
14
15
|
|
|
15
16
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
16
17
|
|
package/colorManipulator.js
CHANGED
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.hexToRgb = hexToRgb;
|
|
7
|
-
exports.decomposeColor = decomposeColor;
|
|
8
|
-
exports.recomposeColor = recomposeColor;
|
|
9
|
-
exports.rgbToHex = rgbToHex;
|
|
10
|
-
exports.hslToRgb = hslToRgb;
|
|
11
|
-
exports.getLuminance = getLuminance;
|
|
12
|
-
exports.getContrastRatio = getContrastRatio;
|
|
13
6
|
exports.alpha = alpha;
|
|
14
7
|
exports.darken = darken;
|
|
15
|
-
exports.
|
|
8
|
+
exports.decomposeColor = decomposeColor;
|
|
16
9
|
exports.emphasize = emphasize;
|
|
10
|
+
exports.getContrastRatio = getContrastRatio;
|
|
11
|
+
exports.getLuminance = getLuminance;
|
|
12
|
+
exports.hexToRgb = hexToRgb;
|
|
13
|
+
exports.hslToRgb = hslToRgb;
|
|
14
|
+
exports.lighten = lighten;
|
|
15
|
+
exports.recomposeColor = recomposeColor;
|
|
16
|
+
exports.rgbToHex = rgbToHex;
|
|
17
17
|
|
|
18
18
|
var _utils = require("@mui/utils");
|
|
19
19
|
|
package/createStyled.d.ts
CHANGED
|
@@ -140,6 +140,12 @@ export interface CreateStyledComponent<
|
|
|
140
140
|
): StyledComponent<ComponentProps & AdditionalProps, SpecificComponentProps, JSXProps>;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
export interface MUIStyledCommonProps<Theme extends object = DefaultTheme> {
|
|
144
|
+
theme?: Theme;
|
|
145
|
+
as?: React.ElementType;
|
|
146
|
+
sx?: SxProps<Theme>;
|
|
147
|
+
}
|
|
148
|
+
|
|
143
149
|
export interface CreateMUIStyled<Theme extends object = DefaultTheme> {
|
|
144
150
|
<
|
|
145
151
|
C extends React.ComponentClass<React.ComponentProps<C>>,
|
|
@@ -148,11 +154,7 @@ export interface CreateMUIStyled<Theme extends object = DefaultTheme> {
|
|
|
148
154
|
component: C,
|
|
149
155
|
options: FilteringStyledOptions<React.ComponentProps<C>, ForwardedProps> & MuiStyledOptions,
|
|
150
156
|
): CreateStyledComponent<
|
|
151
|
-
Pick<PropsOf<C>, ForwardedProps> &
|
|
152
|
-
theme?: Theme;
|
|
153
|
-
as?: React.ElementType;
|
|
154
|
-
sx?: SxProps<Theme>;
|
|
155
|
-
},
|
|
157
|
+
Pick<PropsOf<C>, ForwardedProps> & MUIStyledCommonProps<Theme>,
|
|
156
158
|
{},
|
|
157
159
|
{
|
|
158
160
|
ref?: React.Ref<InstanceType<C>>;
|
|
@@ -163,11 +165,7 @@ export interface CreateMUIStyled<Theme extends object = DefaultTheme> {
|
|
|
163
165
|
component: C,
|
|
164
166
|
options?: StyledOptions & MuiStyledOptions,
|
|
165
167
|
): CreateStyledComponent<
|
|
166
|
-
PropsOf<C> &
|
|
167
|
-
theme?: Theme;
|
|
168
|
-
as?: React.ElementType;
|
|
169
|
-
sx?: SxProps<Theme>;
|
|
170
|
-
},
|
|
168
|
+
PropsOf<C> & MUIStyledCommonProps<Theme>,
|
|
171
169
|
{},
|
|
172
170
|
{
|
|
173
171
|
ref?: React.Ref<InstanceType<C>>;
|
|
@@ -180,24 +178,12 @@ export interface CreateMUIStyled<Theme extends object = DefaultTheme> {
|
|
|
180
178
|
>(
|
|
181
179
|
component: C,
|
|
182
180
|
options: FilteringStyledOptions<React.ComponentProps<C>, ForwardedProps> & MuiStyledOptions,
|
|
183
|
-
): CreateStyledComponent<
|
|
184
|
-
Pick<PropsOf<C>, ForwardedProps> & {
|
|
185
|
-
theme?: Theme;
|
|
186
|
-
as?: React.ElementType;
|
|
187
|
-
sx?: SxProps<Theme>;
|
|
188
|
-
}
|
|
189
|
-
>;
|
|
181
|
+
): CreateStyledComponent<Pick<PropsOf<C>, ForwardedProps> & MUIStyledCommonProps<Theme>>;
|
|
190
182
|
|
|
191
183
|
<C extends React.JSXElementConstructor<React.ComponentProps<C>>>(
|
|
192
184
|
component: C,
|
|
193
185
|
options?: StyledOptions & MuiStyledOptions,
|
|
194
|
-
): CreateStyledComponent<
|
|
195
|
-
PropsOf<C> & {
|
|
196
|
-
theme?: Theme;
|
|
197
|
-
as?: React.ElementType;
|
|
198
|
-
sx?: SxProps<Theme>;
|
|
199
|
-
}
|
|
200
|
-
>;
|
|
186
|
+
): CreateStyledComponent<PropsOf<C> & MUIStyledCommonProps<Theme>>;
|
|
201
187
|
|
|
202
188
|
<
|
|
203
189
|
Tag extends keyof JSX.IntrinsicElements,
|
|
@@ -206,25 +192,14 @@ export interface CreateMUIStyled<Theme extends object = DefaultTheme> {
|
|
|
206
192
|
tag: Tag,
|
|
207
193
|
options: FilteringStyledOptions<JSX.IntrinsicElements[Tag], ForwardedProps> & MuiStyledOptions,
|
|
208
194
|
): CreateStyledComponent<
|
|
209
|
-
|
|
210
|
-
theme?: Theme;
|
|
211
|
-
as?: React.ElementType;
|
|
212
|
-
sx?: SxProps<Theme>;
|
|
213
|
-
},
|
|
195
|
+
MUIStyledCommonProps<Theme>,
|
|
214
196
|
Pick<JSX.IntrinsicElements[Tag], ForwardedProps>
|
|
215
197
|
>;
|
|
216
198
|
|
|
217
199
|
<Tag extends keyof JSX.IntrinsicElements>(
|
|
218
200
|
tag: Tag,
|
|
219
201
|
options?: StyledOptions & MuiStyledOptions,
|
|
220
|
-
): CreateStyledComponent<
|
|
221
|
-
{
|
|
222
|
-
theme?: Theme;
|
|
223
|
-
as?: React.ElementType;
|
|
224
|
-
sx?: SxProps<Theme>;
|
|
225
|
-
},
|
|
226
|
-
JSX.IntrinsicElements[Tag]
|
|
227
|
-
>;
|
|
202
|
+
): CreateStyledComponent<MUIStyledCommonProps<Theme>, JSX.IntrinsicElements[Tag]>;
|
|
228
203
|
}
|
|
229
204
|
|
|
230
205
|
export function shouldForwardProp(propName: PropertyKey): boolean;
|
package/createStyled.js
CHANGED
|
@@ -5,8 +5,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.shouldForwardProp = shouldForwardProp;
|
|
9
8
|
exports.default = createStyled;
|
|
9
|
+
exports.shouldForwardProp = shouldForwardProp;
|
|
10
10
|
exports.systemDefaultTheme = void 0;
|
|
11
11
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
@@ -8,20 +8,67 @@ export type Breakpoint = OverridableStringUnion<
|
|
|
8
8
|
>;
|
|
9
9
|
export const keys: Breakpoint[];
|
|
10
10
|
|
|
11
|
+
// Keep in sync with docs/src/pages/customization/breakpoints/breakpoints.md
|
|
12
|
+
// #default-branch-switch
|
|
11
13
|
export interface Breakpoints {
|
|
12
14
|
keys: Breakpoint[];
|
|
15
|
+
/**
|
|
16
|
+
* Each breakpoint (a key) matches with a fixed screen width (a value).
|
|
17
|
+
* @default {
|
|
18
|
+
* // extra-small
|
|
19
|
+
* xs: 0,
|
|
20
|
+
* // small
|
|
21
|
+
* sm: 600,
|
|
22
|
+
* // medium
|
|
23
|
+
* md: 900,
|
|
24
|
+
* // large
|
|
25
|
+
* lg: 1200,
|
|
26
|
+
* // extra-large
|
|
27
|
+
* xl: 1536,
|
|
28
|
+
* }
|
|
29
|
+
*/
|
|
13
30
|
values: { [key in Breakpoint]: number };
|
|
31
|
+
/**
|
|
32
|
+
* @param key - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
|
|
33
|
+
* @returns A media query string ready to be used with most styling solutions, which matches screen widths greater than the screen size given by the breakpoint key (inclusive).
|
|
34
|
+
* @see [API documentation](https://mui.com/customization/breakpoints/#theme-breakpoints-up-key-media-query)
|
|
35
|
+
*/
|
|
14
36
|
up: (key: Breakpoint | number) => string;
|
|
37
|
+
/**
|
|
38
|
+
* @param key - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
|
|
39
|
+
* @returns A media query string ready to be used with most styling solutions, which matches screen widths less than the screen size given by the breakpoint key (exclusive).
|
|
40
|
+
* @see [API documentation](https://mui.com/customization/breakpoints/#theme-breakpoints-down-key-media-query)
|
|
41
|
+
*/
|
|
15
42
|
down: (key: Breakpoint | number) => string;
|
|
43
|
+
/**
|
|
44
|
+
* @param start - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
|
|
45
|
+
* @param end - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
|
|
46
|
+
* @returns A media query string ready to be used with most styling solutions, which matches screen widths greater than
|
|
47
|
+
* the screen size given by the breakpoint key in the first argument (inclusive) and less than the screen size given by the breakpoint key in the second argument (exclusive).
|
|
48
|
+
* @see [API documentation](https://mui.com/customization/breakpoints/#theme-breakpoints-between-start-end-media-query)
|
|
49
|
+
*/
|
|
16
50
|
between: (start: Breakpoint | number, end: Breakpoint | number) => string;
|
|
51
|
+
/**
|
|
52
|
+
* @param key - A breakpoint key (`xs`, `sm`, etc.) or a screen width number in px.
|
|
53
|
+
* @returns A media query string ready to be used with most styling solutions, which matches screen widths starting from
|
|
54
|
+
* the screen size given by the breakpoint key (inclusive) and stopping at the screen size given by the next breakpoint key (exclusive).
|
|
55
|
+
* @see [API documentation](https://mui.com/customization/breakpoints/#theme-breakpoints-only-key-media-query)
|
|
56
|
+
*/
|
|
17
57
|
only: (key: Breakpoint) => string;
|
|
18
58
|
}
|
|
19
59
|
|
|
20
|
-
export
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
60
|
+
export interface BreakpointsOptions extends Partial<Breakpoints> {
|
|
61
|
+
/**
|
|
62
|
+
* The increment divided by 100 used to implement exclusive breakpoints.
|
|
63
|
+
* For example, `step: 5` means that `down(500)` will result in `'(max-width: 499.95px)'`.
|
|
64
|
+
* @default 5
|
|
65
|
+
*/
|
|
66
|
+
step?: number | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* The unit used for the breakpoint's values.
|
|
69
|
+
* @default 'px'
|
|
70
|
+
*/
|
|
71
|
+
unit?: string | undefined;
|
|
72
|
+
}
|
|
26
73
|
|
|
27
74
|
export default function createBreakpoints(options: BreakpointsOptions): Breakpoints;
|
|
@@ -5,8 +5,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.default = createBreakpoints;
|
|
9
8
|
exports.breakpointKeys = void 0;
|
|
9
|
+
exports.default = createBreakpoints;
|
|
10
10
|
|
|
11
11
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
12
12
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare type SpacingOptions = number | Spacing | ((abs: number) => number | string) | ((abs: number | string) => number | string) | ReadonlyArray<string | number>;
|
|
2
|
-
export declare type SpacingArgument = number | string;
|
|
3
|
-
export interface Spacing {
|
|
4
|
-
(): string;
|
|
5
|
-
(value: number): string;
|
|
6
|
-
(topBottom: SpacingArgument, rightLeft: SpacingArgument): string;
|
|
7
|
-
(top: SpacingArgument, rightLeft: SpacingArgument, bottom: SpacingArgument): string;
|
|
8
|
-
(top: SpacingArgument, right: SpacingArgument, bottom: SpacingArgument, left: SpacingArgument): string;
|
|
9
|
-
}
|
|
10
|
-
export default function createSpacing(spacingInput?: SpacingOptions): Spacing;
|
|
1
|
+
export declare type SpacingOptions = number | Spacing | ((abs: number) => number | string) | ((abs: number | string) => number | string) | ReadonlyArray<string | number>;
|
|
2
|
+
export declare type SpacingArgument = number | string;
|
|
3
|
+
export interface Spacing {
|
|
4
|
+
(): string;
|
|
5
|
+
(value: number): string;
|
|
6
|
+
(topBottom: SpacingArgument, rightLeft: SpacingArgument): string;
|
|
7
|
+
(top: SpacingArgument, rightLeft: SpacingArgument, bottom: SpacingArgument): string;
|
|
8
|
+
(top: SpacingArgument, right: SpacingArgument, bottom: SpacingArgument, left: SpacingArgument): string;
|
|
9
|
+
}
|
|
10
|
+
export default function createSpacing(spacingInput?: SpacingOptions): Spacing;
|
package/display.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.whiteSpace = exports.visibility = exports.textOverflow = exports.overflow = exports.displayRaw = exports.displayPrint = exports.default = void 0;
|
|
9
9
|
|
|
10
10
|
var _style = _interopRequireDefault(require("./style"));
|
|
11
11
|
|
package/esm/spacing.js
CHANGED
|
@@ -39,8 +39,8 @@ const getCssProperties = memoize(prop => {
|
|
|
39
39
|
const direction = directions[b] || '';
|
|
40
40
|
return Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];
|
|
41
41
|
});
|
|
42
|
-
const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY'];
|
|
43
|
-
const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY'];
|
|
42
|
+
const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];
|
|
43
|
+
const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];
|
|
44
44
|
const spacingKeys = [...marginKeys, ...paddingKeys];
|
|
45
45
|
export function createUnaryUnit(theme, themeKey, defaultValue, propName) {
|
|
46
46
|
const themeSpacing = getPath(theme, themeKey) || defaultValue;
|
package/flexbox.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.order = exports.justifySelf = exports.justifyItems = exports.justifyContent = exports.flexWrap = exports.flexShrink = exports.flexGrow = exports.flexDirection = exports.flexBasis = exports.flex = exports.default = exports.alignSelf = exports.alignItems = exports.alignContent = void 0;
|
|
9
9
|
|
|
10
10
|
var _style = _interopRequireDefault(require("./style"));
|
|
11
11
|
|
package/getThemeValue.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.propToStyleFunction = exports.default = void 0;
|
|
9
9
|
|
|
10
10
|
var _borders = _interopRequireDefault(require("./borders"));
|
|
11
11
|
|
package/grid.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.rowGap = exports.gridTemplateRows = exports.gridTemplateColumns = exports.gridTemplateAreas = exports.gridRow = exports.gridColumn = exports.gridAutoRows = exports.gridAutoFlow = exports.gridAutoColumns = exports.gridArea = exports.gap = exports.default = exports.columnGap = void 0;
|
|
9
9
|
|
|
10
10
|
var _style = _interopRequireDefault(require("./style"));
|
|
11
11
|
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MUI v5.0.
|
|
1
|
+
/** @license MUI v5.0.4
|
|
2
2
|
*
|
|
3
3
|
* This source code is licensed under the MIT license found in the
|
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -49,16 +49,10 @@ var _exportNames = {
|
|
|
49
49
|
useThemeWithoutDefault: true,
|
|
50
50
|
ThemeProvider: true
|
|
51
51
|
};
|
|
52
|
-
Object.defineProperty(exports, "
|
|
53
|
-
enumerable: true,
|
|
54
|
-
get: function () {
|
|
55
|
-
return _styledEngine.css;
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
Object.defineProperty(exports, "keyframes", {
|
|
52
|
+
Object.defineProperty(exports, "Box", {
|
|
59
53
|
enumerable: true,
|
|
60
54
|
get: function () {
|
|
61
|
-
return
|
|
55
|
+
return _Box.default;
|
|
62
56
|
}
|
|
63
57
|
});
|
|
64
58
|
Object.defineProperty(exports, "GlobalStyles", {
|
|
@@ -73,6 +67,12 @@ Object.defineProperty(exports, "StyledEngineProvider", {
|
|
|
73
67
|
return _styledEngine.StyledEngineProvider;
|
|
74
68
|
}
|
|
75
69
|
});
|
|
70
|
+
Object.defineProperty(exports, "ThemeProvider", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () {
|
|
73
|
+
return _ThemeProvider.default;
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
76
|
Object.defineProperty(exports, "borders", {
|
|
77
77
|
enumerable: true,
|
|
78
78
|
get: function () {
|
|
@@ -85,172 +85,172 @@ Object.defineProperty(exports, "breakpoints", {
|
|
|
85
85
|
return _breakpoints.default;
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
|
-
Object.defineProperty(exports, "
|
|
88
|
+
Object.defineProperty(exports, "compose", {
|
|
89
89
|
enumerable: true,
|
|
90
90
|
get: function () {
|
|
91
|
-
return
|
|
91
|
+
return _compose.default;
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
|
-
Object.defineProperty(exports, "
|
|
94
|
+
Object.defineProperty(exports, "createBox", {
|
|
95
95
|
enumerable: true,
|
|
96
96
|
get: function () {
|
|
97
|
-
return
|
|
97
|
+
return _createBox.default;
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
|
-
Object.defineProperty(exports, "
|
|
100
|
+
Object.defineProperty(exports, "createBreakpoints", {
|
|
101
101
|
enumerable: true,
|
|
102
102
|
get: function () {
|
|
103
|
-
return
|
|
103
|
+
return _createBreakpoints.default;
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
|
-
Object.defineProperty(exports, "
|
|
106
|
+
Object.defineProperty(exports, "createSpacing", {
|
|
107
107
|
enumerable: true,
|
|
108
108
|
get: function () {
|
|
109
|
-
return
|
|
109
|
+
return _createSpacing.default;
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
|
-
Object.defineProperty(exports, "
|
|
112
|
+
Object.defineProperty(exports, "createStyled", {
|
|
113
113
|
enumerable: true,
|
|
114
114
|
get: function () {
|
|
115
|
-
return
|
|
115
|
+
return _createStyled.default;
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
|
-
Object.defineProperty(exports, "
|
|
118
|
+
Object.defineProperty(exports, "createTheme", {
|
|
119
119
|
enumerable: true,
|
|
120
120
|
get: function () {
|
|
121
|
-
return
|
|
121
|
+
return _createTheme.default;
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
|
-
Object.defineProperty(exports, "
|
|
124
|
+
Object.defineProperty(exports, "css", {
|
|
125
125
|
enumerable: true,
|
|
126
126
|
get: function () {
|
|
127
|
-
return
|
|
127
|
+
return _styledEngine.css;
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
|
-
Object.defineProperty(exports, "
|
|
130
|
+
Object.defineProperty(exports, "display", {
|
|
131
131
|
enumerable: true,
|
|
132
132
|
get: function () {
|
|
133
|
-
return
|
|
133
|
+
return _display.default;
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
|
-
Object.defineProperty(exports, "
|
|
136
|
+
Object.defineProperty(exports, "flexbox", {
|
|
137
137
|
enumerable: true,
|
|
138
138
|
get: function () {
|
|
139
|
-
return
|
|
139
|
+
return _flexbox.default;
|
|
140
140
|
}
|
|
141
141
|
});
|
|
142
|
-
Object.defineProperty(exports, "
|
|
142
|
+
Object.defineProperty(exports, "getPath", {
|
|
143
143
|
enumerable: true,
|
|
144
144
|
get: function () {
|
|
145
|
-
return
|
|
145
|
+
return _style.getPath;
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
|
-
Object.defineProperty(exports, "
|
|
148
|
+
Object.defineProperty(exports, "getThemeProps", {
|
|
149
149
|
enumerable: true,
|
|
150
150
|
get: function () {
|
|
151
|
-
return
|
|
151
|
+
return _useThemeProps.getThemeProps;
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
|
-
Object.defineProperty(exports, "
|
|
154
|
+
Object.defineProperty(exports, "grid", {
|
|
155
155
|
enumerable: true,
|
|
156
156
|
get: function () {
|
|
157
|
-
return
|
|
157
|
+
return _grid.default;
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
|
-
Object.defineProperty(exports, "
|
|
160
|
+
Object.defineProperty(exports, "handleBreakpoints", {
|
|
161
161
|
enumerable: true,
|
|
162
162
|
get: function () {
|
|
163
|
-
return
|
|
163
|
+
return _breakpoints.handleBreakpoints;
|
|
164
164
|
}
|
|
165
165
|
});
|
|
166
|
-
Object.defineProperty(exports, "
|
|
166
|
+
Object.defineProperty(exports, "keyframes", {
|
|
167
167
|
enumerable: true,
|
|
168
168
|
get: function () {
|
|
169
|
-
return
|
|
169
|
+
return _styledEngine.keyframes;
|
|
170
170
|
}
|
|
171
171
|
});
|
|
172
|
-
Object.defineProperty(exports, "
|
|
172
|
+
Object.defineProperty(exports, "mergeBreakpointsInOrder", {
|
|
173
173
|
enumerable: true,
|
|
174
174
|
get: function () {
|
|
175
|
-
return
|
|
175
|
+
return _breakpoints.mergeBreakpointsInOrder;
|
|
176
176
|
}
|
|
177
177
|
});
|
|
178
|
-
Object.defineProperty(exports, "
|
|
178
|
+
Object.defineProperty(exports, "palette", {
|
|
179
179
|
enumerable: true,
|
|
180
180
|
get: function () {
|
|
181
|
-
return
|
|
181
|
+
return _palette.default;
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
|
-
Object.defineProperty(exports, "
|
|
184
|
+
Object.defineProperty(exports, "positions", {
|
|
185
185
|
enumerable: true,
|
|
186
186
|
get: function () {
|
|
187
|
-
return
|
|
187
|
+
return _positions.default;
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
|
-
Object.defineProperty(exports, "
|
|
190
|
+
Object.defineProperty(exports, "shadows", {
|
|
191
191
|
enumerable: true,
|
|
192
192
|
get: function () {
|
|
193
|
-
return
|
|
193
|
+
return _shadows.default;
|
|
194
194
|
}
|
|
195
195
|
});
|
|
196
|
-
Object.defineProperty(exports, "
|
|
196
|
+
Object.defineProperty(exports, "shape", {
|
|
197
197
|
enumerable: true,
|
|
198
198
|
get: function () {
|
|
199
|
-
return
|
|
199
|
+
return _shape.default;
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
|
-
Object.defineProperty(exports, "
|
|
202
|
+
Object.defineProperty(exports, "sizing", {
|
|
203
203
|
enumerable: true,
|
|
204
204
|
get: function () {
|
|
205
|
-
return
|
|
205
|
+
return _sizing.default;
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
|
-
Object.defineProperty(exports, "
|
|
208
|
+
Object.defineProperty(exports, "spacing", {
|
|
209
209
|
enumerable: true,
|
|
210
210
|
get: function () {
|
|
211
|
-
return
|
|
211
|
+
return _spacing.default;
|
|
212
212
|
}
|
|
213
213
|
});
|
|
214
|
-
Object.defineProperty(exports, "
|
|
214
|
+
Object.defineProperty(exports, "style", {
|
|
215
215
|
enumerable: true,
|
|
216
216
|
get: function () {
|
|
217
|
-
return
|
|
217
|
+
return _style.default;
|
|
218
218
|
}
|
|
219
219
|
});
|
|
220
|
-
Object.defineProperty(exports, "
|
|
220
|
+
Object.defineProperty(exports, "styled", {
|
|
221
221
|
enumerable: true,
|
|
222
222
|
get: function () {
|
|
223
|
-
return
|
|
223
|
+
return _styled.default;
|
|
224
224
|
}
|
|
225
225
|
});
|
|
226
|
-
Object.defineProperty(exports, "
|
|
226
|
+
Object.defineProperty(exports, "typography", {
|
|
227
227
|
enumerable: true,
|
|
228
228
|
get: function () {
|
|
229
|
-
return
|
|
229
|
+
return _typography.default;
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
|
-
Object.defineProperty(exports, "
|
|
232
|
+
Object.defineProperty(exports, "unstable_extendSxProp", {
|
|
233
233
|
enumerable: true,
|
|
234
234
|
get: function () {
|
|
235
|
-
return
|
|
235
|
+
return _styleFunctionSx.extendSxProp;
|
|
236
236
|
}
|
|
237
237
|
});
|
|
238
|
-
Object.defineProperty(exports, "
|
|
238
|
+
Object.defineProperty(exports, "unstable_getThemeValue", {
|
|
239
239
|
enumerable: true,
|
|
240
240
|
get: function () {
|
|
241
|
-
return
|
|
241
|
+
return _getThemeValue.default;
|
|
242
242
|
}
|
|
243
243
|
});
|
|
244
|
-
Object.defineProperty(exports, "
|
|
244
|
+
Object.defineProperty(exports, "unstable_resolveBreakpointValues", {
|
|
245
245
|
enumerable: true,
|
|
246
246
|
get: function () {
|
|
247
|
-
return
|
|
247
|
+
return _breakpoints.resolveBreakpointValues;
|
|
248
248
|
}
|
|
249
249
|
});
|
|
250
|
-
Object.defineProperty(exports, "
|
|
250
|
+
Object.defineProperty(exports, "unstable_styleFunctionSx", {
|
|
251
251
|
enumerable: true,
|
|
252
252
|
get: function () {
|
|
253
|
-
return
|
|
253
|
+
return _styleFunctionSx.default;
|
|
254
254
|
}
|
|
255
255
|
});
|
|
256
256
|
Object.defineProperty(exports, "useTheme", {
|
|
@@ -259,16 +259,16 @@ Object.defineProperty(exports, "useTheme", {
|
|
|
259
259
|
return _useTheme.default;
|
|
260
260
|
}
|
|
261
261
|
});
|
|
262
|
-
Object.defineProperty(exports, "
|
|
262
|
+
Object.defineProperty(exports, "useThemeProps", {
|
|
263
263
|
enumerable: true,
|
|
264
264
|
get: function () {
|
|
265
|
-
return
|
|
265
|
+
return _useThemeProps.default;
|
|
266
266
|
}
|
|
267
267
|
});
|
|
268
|
-
Object.defineProperty(exports, "
|
|
268
|
+
Object.defineProperty(exports, "useThemeWithoutDefault", {
|
|
269
269
|
enumerable: true,
|
|
270
270
|
get: function () {
|
|
271
|
-
return
|
|
271
|
+
return _useThemeWithoutDefault.default;
|
|
272
272
|
}
|
|
273
273
|
});
|
|
274
274
|
|
package/index.spec.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/legacy/index.js
CHANGED
package/legacy/spacing.js
CHANGED
|
@@ -46,8 +46,8 @@ var getCssProperties = memoize(function (prop) {
|
|
|
46
46
|
return property + dir;
|
|
47
47
|
}) : [property + direction];
|
|
48
48
|
});
|
|
49
|
-
var marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY'];
|
|
50
|
-
var paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY'];
|
|
49
|
+
var marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];
|
|
50
|
+
var paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];
|
|
51
51
|
var spacingKeys = [].concat(marginKeys, paddingKeys);
|
|
52
52
|
export function createUnaryUnit(theme, themeKey, defaultValue, propName) {
|
|
53
53
|
var themeSpacing = getPath(theme, themeKey) || defaultValue;
|
package/modern/index.js
CHANGED
package/modern/spacing.js
CHANGED
|
@@ -39,8 +39,8 @@ const getCssProperties = memoize(prop => {
|
|
|
39
39
|
const direction = directions[b] || '';
|
|
40
40
|
return Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];
|
|
41
41
|
});
|
|
42
|
-
const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY'];
|
|
43
|
-
const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY'];
|
|
42
|
+
const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];
|
|
43
|
+
const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];
|
|
44
44
|
const spacingKeys = [...marginKeys, ...paddingKeys];
|
|
45
45
|
export function createUnaryUnit(theme, themeKey, defaultValue, propName) {
|
|
46
46
|
const themeSpacing = getPath(theme, themeKey) || defaultValue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/system",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "CSS utilities for rapidly laying out custom designs.",
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@babel/runtime": "^7.
|
|
47
|
-
"@mui/private-theming": "^5.0.
|
|
48
|
-
"@mui/styled-engine": "^5.0.
|
|
46
|
+
"@babel/runtime": "^7.15.4",
|
|
47
|
+
"@mui/private-theming": "^5.0.1",
|
|
48
|
+
"@mui/styled-engine": "^5.0.1",
|
|
49
49
|
"@mui/types": "^7.0.0",
|
|
50
|
-
"@mui/utils": "^5.0.
|
|
50
|
+
"@mui/utils": "^5.0.1",
|
|
51
51
|
"clsx": "^1.1.1",
|
|
52
|
-
"csstype": "^3.0.
|
|
52
|
+
"csstype": "^3.0.9",
|
|
53
53
|
"prop-types": "^15.7.2"
|
|
54
54
|
},
|
|
55
55
|
"sideEffects": false,
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=12.0.0"
|
|
61
61
|
},
|
|
62
|
+
"gitHead": "86443310e4344ae1ce6e04f084d58e17e4d62170",
|
|
62
63
|
"module": "./esm/index.js",
|
|
63
64
|
"types": "./index.d.ts"
|
|
64
65
|
}
|
package/palette.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.default = exports.
|
|
8
|
+
exports.default = exports.color = exports.bgcolor = exports.backgroundColor = void 0;
|
|
9
9
|
|
|
10
10
|
var _style = _interopRequireDefault(require("./style"));
|
|
11
11
|
|
package/positions.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.zIndex = exports.top = exports.right = exports.position = exports.left = exports.default = exports.bottom = void 0;
|
|
9
9
|
|
|
10
10
|
var _style = _interopRequireDefault(require("./style"));
|
|
11
11
|
|
package/sizing.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.width = exports.sizeWidth = exports.sizeHeight = exports.minWidth = exports.minHeight = exports.maxWidth = exports.maxHeight = exports.height = exports.default = exports.boxSizing = void 0;
|
|
9
9
|
|
|
10
10
|
var _style = _interopRequireDefault(require("./style"));
|
|
11
11
|
|
package/spacing.d.ts
CHANGED
|
@@ -25,6 +25,12 @@ export const margin: SimpleStyleFunction<
|
|
|
25
25
|
| 'marginLeft'
|
|
26
26
|
| 'marginX'
|
|
27
27
|
| 'marginY'
|
|
28
|
+
| 'marginInline'
|
|
29
|
+
| 'marginInlineStart'
|
|
30
|
+
| 'marginInlineEnd'
|
|
31
|
+
| 'marginBlock'
|
|
32
|
+
| 'marginBlockStart'
|
|
33
|
+
| 'marginBlockEnd'
|
|
28
34
|
>;
|
|
29
35
|
|
|
30
36
|
export type MarginProps = PropsFor<typeof margin>;
|
|
@@ -44,6 +50,12 @@ export const padding: SimpleStyleFunction<
|
|
|
44
50
|
| 'paddingLeft'
|
|
45
51
|
| 'paddingX'
|
|
46
52
|
| 'paddingY'
|
|
53
|
+
| 'paddingInline'
|
|
54
|
+
| 'paddingInlineStart'
|
|
55
|
+
| 'paddingInlineEnd'
|
|
56
|
+
| 'paddingBlock'
|
|
57
|
+
| 'paddingBlockStart'
|
|
58
|
+
| 'paddingBlockEnd'
|
|
47
59
|
>;
|
|
48
60
|
|
|
49
61
|
export type PaddingProps = PropsFor<typeof padding>;
|
package/spacing.js
CHANGED
|
@@ -5,13 +5,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.createUnaryUnit = createUnaryUnit;
|
|
9
8
|
exports.createUnarySpacing = createUnarySpacing;
|
|
10
|
-
exports.
|
|
9
|
+
exports.createUnaryUnit = createUnaryUnit;
|
|
10
|
+
exports.default = void 0;
|
|
11
11
|
exports.getStyleFromPropValue = getStyleFromPropValue;
|
|
12
|
+
exports.getValue = getValue;
|
|
12
13
|
exports.margin = margin;
|
|
13
14
|
exports.padding = padding;
|
|
14
|
-
exports.default = void 0;
|
|
15
15
|
|
|
16
16
|
var _responsivePropType = _interopRequireDefault(require("./responsivePropType"));
|
|
17
17
|
|
|
@@ -59,8 +59,8 @@ const getCssProperties = (0, _memoize.default)(prop => {
|
|
|
59
59
|
const direction = directions[b] || '';
|
|
60
60
|
return Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];
|
|
61
61
|
});
|
|
62
|
-
const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY'];
|
|
63
|
-
const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY'];
|
|
62
|
+
const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];
|
|
63
|
+
const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];
|
|
64
64
|
const spacingKeys = [...marginKeys, ...paddingKeys];
|
|
65
65
|
|
|
66
66
|
function createUnaryUnit(theme, themeKey, defaultValue, propName) {
|
package/style.d.ts
CHANGED
|
@@ -12,4 +12,4 @@ export interface StyleOptions<PropKey> {
|
|
|
12
12
|
}
|
|
13
13
|
export function style<PropKey extends string, Theme extends object>(
|
|
14
14
|
options: StyleOptions<PropKey>,
|
|
15
|
-
): StyleFunction<{ [K in PropKey]?: unknown } & { theme
|
|
15
|
+
): StyleFunction<{ [K in PropKey]?: unknown } & { theme?: Theme }>;
|
package/style.js
CHANGED
|
@@ -5,8 +5,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.getPath = getPath;
|
|
9
8
|
exports.default = void 0;
|
|
9
|
+
exports.getPath = getPath;
|
|
10
10
|
|
|
11
11
|
var _utils = require("@mui/utils");
|
|
12
12
|
|
|
@@ -14,14 +14,14 @@ export type ResponsiveStyleValue<T> = T | Array<T | null> | { [key: string]: T |
|
|
|
14
14
|
* Map of all CSS pseudo selectors (`:hover`, `:focus`, ...).
|
|
15
15
|
*/
|
|
16
16
|
export type CSSPseudoSelectorProps<Theme extends object = {}> = {
|
|
17
|
-
[K in CSS.Pseudos]?: SystemStyleObject<Theme>;
|
|
17
|
+
[K in CSS.Pseudos]?: ((theme: Theme) => SystemStyleObject<Theme>) | SystemStyleObject<Theme>;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Map all nested selectors.
|
|
22
22
|
*/
|
|
23
23
|
export interface CSSSelectorObject<Theme extends object = {}> {
|
|
24
|
-
[cssSelector: string]: SystemStyleObject<Theme>;
|
|
24
|
+
[cssSelector: string]: ((theme: Theme) => SystemStyleObject<Theme>) | SystemStyleObject<Theme>;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/**
|
package/typography.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.typographyVariant = exports.textAlign = exports.lineHeight = exports.letterSpacing = exports.fontWeight = exports.fontStyle = exports.fontSize = exports.fontFamily = exports.default = void 0;
|
|
9
9
|
|
|
10
10
|
var _style = _interopRequireDefault(require("./style"));
|
|
11
11
|
|
package/useTheme.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.systemDefaultTheme = exports.default = void 0;
|
|
9
9
|
|
|
10
10
|
var _createTheme = _interopRequireDefault(require("./createTheme"));
|
|
11
11
|
|