Skip to content

Commit a1e627a

Browse files
committed
Upgrade MUI & Regenerate declarations
* Material `5.15.5` * Icons `5.15.5` * Base `5.0.0-beta.32` * System `5.15.5` * Lab `5.0.0-alpha.161`
1 parent d65b9ef commit a1e627a

File tree

10 files changed

+107
-58
lines changed

10 files changed

+107
-58
lines changed

buildSrc/src/main/kotlin/karakum/mui/Adapter.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ fun String.adaptRawContent(): String =
99
.adaptSelect()
1010
.adaptFormControl()
1111
.adaptModal()
12+
.adaptAccordion()
1213
.adaptAutocomplete()
1314
.adaptUseAutocomplete()
1415
.adaptBreadcrumbs()
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package karakum.mui.adapters
2+
3+
fun String.adaptAccordion(): String =
4+
replace(
5+
oldValue = "export interface AccordionOwnerState extends AccordionProps {}",
6+
newValue = "",
7+
)

gradle.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ kfc.version=7.34.0
55
# TEMP
66
kfc.es.mode=false
77
seskar.version=2.23.0
8-
mui-material.version=5.15.4
9-
mui-icons-material.version=5.15.4
10-
mui-base.version=5.0.0-beta.31
11-
mui-system.version=5.15.4
12-
mui-lab.version=5.0.0-alpha.160
8+
mui-material.version=5.15.5
9+
mui-icons-material.version=5.15.5
10+
mui-base.version=5.0.0-beta.32
11+
mui-system.version=5.15.5
12+
mui-lab.version=5.0.0-alpha.161
1313
mui-x-tree-view.version=6.17.0
1414
mui-x-date-pickers.version=5.0.4
1515
kotlin-wrappers.version=1.0.0-pre.684

mui-kotlin/src/jsMain/kotlin/mui/base/Input.types.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ external interface InputOwnProps :
7070
var endAdornment: react.ReactNode?
7171

7272
/**
73-
* If `true`, the `input` will indicate an error by setting the `aria-invalid` attribute on the input and the `Mui-error` class on the root element.
73+
* If `true`, the `input` will indicate an error by setting the `aria-invalid` attribute on the input and the `baseui--error` class on the root element.
7474
* The prop defaults to the value (`false`) inherited from the parent FormControl component.
7575
*/
7676
var error: Boolean?

mui-kotlin/src/jsMain/kotlin/mui/material/Accordion.kt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,27 @@ external interface AccordionProps :
6767
/**
6868
* The component used for the transition.
6969
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
70-
* @default Collapse
70+
* @deprecated Use `slots.transition` instead. This prop will be removed in v7.
7171
*/
7272
var TransitionComponent: react.ComponentType<*>?
7373

7474
/**
7575
* Props applied to the transition element.
7676
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
77+
* @deprecated Use `slotProps.transition` instead. This prop will be removed in v7.
7778
*/
7879
var TransitionProps: mui.material.transitions.TransitionProps?
7980
}
8081

82+
external interface AccordionSlots {
83+
/**
84+
* The component that renders the transition.
85+
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
86+
* @default Collapse
87+
*/
88+
var transition: react.ComponentType<*>?
89+
}
90+
8191
/**
8292
*
8393
* Demos:

mui-kotlin/src/jsMain/kotlin/mui/material/AccordionSummary.classes.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ external interface AccordionSummaryClasses {
2020
/** Styles applied to the root element unless `disableGutters={true}`. */
2121
var gutters: ClassName
2222

23-
/** Styles applied to the children wrapper element unless `disableGutters={true}`. */
23+
/**
24+
* Styles applied to the children wrapper element unless `disableGutters={true}`.
25+
* @deprecated Combine the [.MuiAccordionSummary-gutters](/material-ui/api/accordion-summary/#AccordionSummary-classes-gutters) and [.MuiAccordionSummary-content](/material-ui/api/accordion-summary/#AccordionSummary-classes-content) classes instead.
26+
*/
2427
var contentGutters: ClassName
2528

2629
/** Styles applied to the children wrapper element. */

mui-kotlin/src/jsMain/kotlin/mui/material/Alert.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ external interface AlertProps :
7575
* The severity of the alert. This defines the color and icon used.
7676
* @default 'success'
7777
*/
78-
var severity: AlertColor?
78+
var severity: mui.system.Union? /* AlertColor, AlertPropsColorOverrides */
7979

8080
/**
8181
* Override the icon displayed before the children.

mui-kotlin/src/jsMain/kotlin/mui/material/Divider.classes.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ external interface DividerClasses {
1717
/** Styles applied to the root element if `variant="fullWidth"`. */
1818
var fullWidth: ClassName
1919

20-
/** Styles applied to the root element if `light={true}`. */
20+
/** Styles applied to the root element if `light={true}`.
21+
* @deprecated
22+
*/
2123
var light: ClassName
2224

2325
/** Styles applied to the root element if `variant="middle"`. */
@@ -32,7 +34,9 @@ external interface DividerClasses {
3234
/** Styles applied to the root element if divider have text. */
3335
var withChildren: ClassName
3436

35-
/** Styles applied to the root element if divider have text and `orientation="vertical"`. */
37+
/** Styles applied to the root element if divider have text and `orientation="vertical"`.
38+
* @deprecated Combine the [.MuiDivider-withChildren](/material-ui/api/divider/#divider-classes-withChildren) and [.MuiDivider-vertical](/material-ui/api/divider/#divider-classes-vertical) classes instead.
39+
*/
3640
var withChildrenVertical: ClassName
3741

3842
/** Styles applied to the root element if `textAlign="right" orientation="horizontal"`. */

mui-kotlin/src/jsMain/kotlin/mui/material/Divider.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ external interface DividerOwnProps :
4141
/**
4242
* If `true`, the divider will have a lighter color.
4343
* @default false
44+
* @deprecated Use <Divider sx={{ bgcolor: '#eee' }} /> (or any color) instead.
4445
*/
4546
var light: Boolean?
4647

yarn.lock

Lines changed: 70 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
chalk "^2.4.2"
3737
js-tokens "^4.0.0"
3838

39-
"@babel/runtime@^7.12.5", "@babel/runtime@^7.13.10", "@babel/runtime@^7.18.3", "@babel/runtime@^7.18.9", "@babel/runtime@^7.23.2", "@babel/runtime@^7.23.7", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.7":
39+
"@babel/runtime@^7.12.5", "@babel/runtime@^7.13.10", "@babel/runtime@^7.18.3", "@babel/runtime@^7.18.9", "@babel/runtime@^7.23.2", "@babel/runtime@^7.23.7", "@babel/runtime@^7.23.8", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.7":
4040
version "7.23.8"
4141
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.8.tgz#8ee6fe1ac47add7122902f257b8ddf55c898f650"
4242
integrity sha512-Y7KbAP984rn1VGMbGqKmBLio9V7y5Je9GvU4rQPCPinCyNfUcToxIXl06d59URp/F3LwinvODxab5N/G6qggkw==
@@ -267,7 +267,20 @@
267267
resolved "https://registry.yarnpkg.com/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz#b2ac626d6cb9c8718ab459166d4bb405b8ffa78b"
268268
integrity sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==
269269

270-
"@mui/[email protected]", "@mui/base@^5.0.0-beta.20":
270+
271+
version "5.0.0-beta.32"
272+
resolved "https://registry.yarnpkg.com/@mui/base/-/base-5.0.0-beta.32.tgz#cdda6c68389f0b8b39a5bff7ed16e40788aed510"
273+
integrity sha512-4VptvYeLUYMJhZapWBkD50GmKfOc0XT381KJcTK3ncZYIl8MdBhpR6l8jOyeP5cixUPBJhstjrnmQEAHjCLriw==
274+
dependencies:
275+
"@babel/runtime" "^7.23.8"
276+
"@floating-ui/react-dom" "^2.0.5"
277+
"@mui/types" "^7.2.13"
278+
"@mui/utils" "^5.15.5"
279+
"@popperjs/core" "^2.11.8"
280+
clsx "^2.1.0"
281+
prop-types "^15.8.1"
282+
283+
"@mui/base@^5.0.0-beta.20":
271284
version "5.0.0-beta.31"
272285
resolved "https://registry.yarnpkg.com/@mui/base/-/base-5.0.0-beta.31.tgz#80293893e6bf41ffb51e4ce8d6498e3fc70ca415"
273286
integrity sha512-+uNbP3OHJuZVI00WyMg7xfLZotaEY7LgvYXDfONVJbrS+K9wyjCIPNfjy8r9XJn4fbHo/5ibiZqjWnU9LMNv+A==
@@ -280,78 +293,78 @@
280293
clsx "^2.1.0"
281294
prop-types "^15.8.1"
282295

283-
"@mui/core-downloads-tracker@^5.15.4":
284-
version "5.15.4"
285-
resolved "https://registry.yarnpkg.com/@mui/core-downloads-tracker/-/core-downloads-tracker-5.15.4.tgz#c9430f1786ff604c2afaa00508b5bc45c9726c13"
286-
integrity sha512-0OZN9O6hAtBpx70mMNFOPaAIol/ytwZYPY+z7Rf9dK3+1Xlzwvj5/IeShJKvtp76S1qJyhPuvZg0+BGqQaUnUw==
296+
"@mui/core-downloads-tracker@^5.15.5":
297+
version "5.15.5"
298+
resolved "https://registry.yarnpkg.com/@mui/core-downloads-tracker/-/core-downloads-tracker-5.15.5.tgz#e8e060133ea0e92b1c0e30c441522cab37d0be79"
299+
integrity sha512-VhT8klyXy8GrWrARqLMoM6Nzz809Jc3Wn5wd7WOZfre2vFO1rBV1dBANAPBhBqpaQI0HCMRTWEYoSyOFgRnz4A==
287300

288-
289-
version "5.15.4"
290-
resolved "https://registry.yarnpkg.com/@mui/icons-material/-/icons-material-5.15.4.tgz#fb8a5e4be2cd656c5d5b1bbad7618b3fadf8d37b"
291-
integrity sha512-q/Yk7aokN8qGMpR7bwoDpBSeaNe6Bv7vaY9yHYodP37c64TM6ime05ueb/wgksOVszrKkNXC67E/XYbRWOoUFA==
301+
302+
version "5.15.5"
303+
resolved "https://registry.yarnpkg.com/@mui/icons-material/-/icons-material-5.15.5.tgz#2a2abeadcc5cc6acdfc1d002c252b43a22edff18"
304+
integrity sha512-qiql0fd1JY7TZ1wm1RldvU7sL8QUatE9OC12i/qm5rnm/caTFyAfOyTIR7qqxorsJvoZGyrzwoMkal6Ij9kM0A==
292305
dependencies:
293-
"@babel/runtime" "^7.23.7"
306+
"@babel/runtime" "^7.23.8"
294307

295-
"@mui/[email protected].160":
296-
version "5.0.0-alpha.160"
297-
resolved "https://registry.yarnpkg.com/@mui/lab/-/lab-5.0.0-alpha.160.tgz#1e0ecfa28db57811697ca8177c53b67e66777da1"
298-
integrity sha512-hMCOyjfpCHrb/ELs45baCHXICaZf3ygKY0R/phBKxxCxAX6V6Y3O9hxu2fS/Uw3LflZqUuv9TFkwVEWzq3OUkQ==
308+
"@mui/[email protected].161":
309+
version "5.0.0-alpha.161"
310+
resolved "https://registry.yarnpkg.com/@mui/lab/-/lab-5.0.0-alpha.161.tgz#bd4f05a5620016aebc0ac59ca49b067997d4593e"
311+
integrity sha512-dLWWZrJAi44av+iiqEHpZHfPhZ4DM42ItS31yqBwboroawumG2GUyYvHVTyEFXM1Zr8+kufiZ9t28rqHXVf5+w==
299312
dependencies:
300-
"@babel/runtime" "^7.23.7"
301-
"@mui/base" "5.0.0-beta.31"
302-
"@mui/system" "^5.15.4"
313+
"@babel/runtime" "^7.23.8"
314+
"@mui/base" "5.0.0-beta.32"
315+
"@mui/system" "^5.15.5"
303316
"@mui/types" "^7.2.13"
304-
"@mui/utils" "^5.15.4"
317+
"@mui/utils" "^5.15.5"
305318
clsx "^2.1.0"
306319
prop-types "^15.8.1"
307320

308-
309-
version "5.15.4"
310-
resolved "https://registry.yarnpkg.com/@mui/material/-/material-5.15.4.tgz#354e0972fc89207926e9e53cc9cb349049873517"
311-
integrity sha512-T/LGRAC+M0c+D3+y67eHwIN5bSje0TxbcJCWR0esNvU11T0QwrX3jedXItPNBwMupF2F5VWCDHBVLlFnN3+ABA==
321+
322+
version "5.15.5"
323+
resolved "https://registry.yarnpkg.com/@mui/material/-/material-5.15.5.tgz#5c672ddf17fbe1a1d6a8854ddbb8502cc83feec0"
324+
integrity sha512-2KfA39f/UWeQl0O22UJs3x1nG3chYlyu9wnux5vTnxUTLzkgYIzQIHaH+ZOGpv5JiZBMKktAPNfhqyhSaQ49qQ==
312325
dependencies:
313-
"@babel/runtime" "^7.23.7"
314-
"@mui/base" "5.0.0-beta.31"
315-
"@mui/core-downloads-tracker" "^5.15.4"
316-
"@mui/system" "^5.15.4"
326+
"@babel/runtime" "^7.23.8"
327+
"@mui/base" "5.0.0-beta.32"
328+
"@mui/core-downloads-tracker" "^5.15.5"
329+
"@mui/system" "^5.15.5"
317330
"@mui/types" "^7.2.13"
318-
"@mui/utils" "^5.15.4"
331+
"@mui/utils" "^5.15.5"
319332
"@types/react-transition-group" "^4.4.10"
320333
clsx "^2.1.0"
321334
csstype "^3.1.2"
322335
prop-types "^15.8.1"
323336
react-is "^18.2.0"
324337
react-transition-group "^4.4.5"
325338

326-
"@mui/private-theming@^5.15.4":
327-
version "5.15.4"
328-
resolved "https://registry.yarnpkg.com/@mui/private-theming/-/private-theming-5.15.4.tgz#5d7b187e8e31995289b63ec4e0331d1e29859d6c"
329-
integrity sha512-9N5myIMEEQTM5WYWPGvvYADzjFo12LgJ7S+2iTZkBNOcJpUxQYM1tvYjkHCDV+t1ocMOEgjR2EfJ9Dus30dBlg==
339+
"@mui/private-theming@^5.15.5":
340+
version "5.15.5"
341+
resolved "https://registry.yarnpkg.com/@mui/private-theming/-/private-theming-5.15.5.tgz#3f81e77ecff49bc12301922e82b942748b1f6c7c"
342+
integrity sha512-HU1KCyGNcJFsUamTbOM539ZDZJNI/XU7sZFdsN29glktUf+T6hNvDuO2ISinBiLTZy7Ab3R6DSSoYXRrLc4uwQ==
330343
dependencies:
331-
"@babel/runtime" "^7.23.7"
332-
"@mui/utils" "^5.15.4"
344+
"@babel/runtime" "^7.23.8"
345+
"@mui/utils" "^5.15.5"
333346
prop-types "^15.8.1"
334347

335-
"@mui/styled-engine@^5.15.4":
336-
version "5.15.4"
337-
resolved "https://registry.yarnpkg.com/@mui/styled-engine/-/styled-engine-5.15.4.tgz#2e7bbf9154eba4db34f77aa55a6468408b31fb1d"
338-
integrity sha512-vtrZUXG5XI8CNiNLcxjIirW4dEbOloR+ikfm6ePBo7jXpJdpXjVzBWetrfE+5eI0cHkKWlTptnJ2voKV8pBRfw==
348+
"@mui/styled-engine@^5.15.5":
349+
version "5.15.5"
350+
resolved "https://registry.yarnpkg.com/@mui/styled-engine/-/styled-engine-5.15.5.tgz#c5e0113282c28a8d7580371881c36e1baec86217"
351+
integrity sha512-xoMUd8h270thNL7ZsOzmlluIAMsQg/HT7SCdRjPBVle+XHgTKaiWiRy1ekDOsrrF0rhjME3T7xeeUq2G269UUw==
339352
dependencies:
340-
"@babel/runtime" "^7.23.7"
353+
"@babel/runtime" "^7.23.8"
341354
"@emotion/cache" "^11.11.0"
342355
csstype "^3.1.2"
343356
prop-types "^15.8.1"
344357

345-
"@mui/[email protected].4", "@mui/system@^5.15.4":
346-
version "5.15.4"
347-
resolved "https://registry.yarnpkg.com/@mui/system/-/system-5.15.4.tgz#750342dd699881cd81c99ea0ea770387d5ac35aa"
348-
integrity sha512-KCwkHajGBXPs2TK1HJjIyab4NDk0cZoBDYN/TTlXVo1qBAmCjY0vjqrlsjeoG+wrwwcezXMLs/e6OGP66fPCog==
358+
"@mui/[email protected].5", "@mui/system@^5.15.5":
359+
version "5.15.5"
360+
resolved "https://registry.yarnpkg.com/@mui/system/-/system-5.15.5.tgz#dc3fd3e5636a6c238d46e0ba40ada9f213a128a5"
361+
integrity sha512-DMv2vGjUKaDt/m0RlzvLjpKiS5V0LoBhiMUHf5pWdj6uoNlN4FuKUe4pFeYmQMIO5DnVZKybmpPepfkdfEH+Og==
349362
dependencies:
350-
"@babel/runtime" "^7.23.7"
351-
"@mui/private-theming" "^5.15.4"
352-
"@mui/styled-engine" "^5.15.4"
363+
"@babel/runtime" "^7.23.8"
364+
"@mui/private-theming" "^5.15.5"
365+
"@mui/styled-engine" "^5.15.5"
353366
"@mui/types" "^7.2.13"
354-
"@mui/utils" "^5.15.4"
367+
"@mui/utils" "^5.15.5"
355368
clsx "^2.1.0"
356369
csstype "^3.1.2"
357370
prop-types "^15.8.1"
@@ -371,6 +384,16 @@
371384
prop-types "^15.8.1"
372385
react-is "^18.2.0"
373386

387+
"@mui/utils@^5.15.5":
388+
version "5.15.5"
389+
resolved "https://registry.yarnpkg.com/@mui/utils/-/utils-5.15.5.tgz#4033a27e954ae443d0356f625e0c17f4cf32164b"
390+
integrity sha512-jEywgaMGZWPSlVFO7ZZAyXxNeLmq5XBp5At9Ne/sGohRJdesUcdxvyi8TP3odJxwQuL5L6PJV+JQ4DyIDM849A==
391+
dependencies:
392+
"@babel/runtime" "^7.23.8"
393+
"@types/prop-types" "^15.7.11"
394+
prop-types "^15.8.1"
395+
react-is "^18.2.0"
396+
374397
375398
version "5.0.4"
376399
resolved "https://registry.yarnpkg.com/@mui/x-date-pickers/-/x-date-pickers-5.0.4.tgz#79a509354eea4bedaa955ee52f37d80256d7e415"

0 commit comments

Comments
 (0)