@mui/utils 5.13.6 → 5.13.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/CHANGELOG.md +90 -4
  2. package/ClassNameGenerator/ClassNameGenerator.d.ts +6 -6
  3. package/ClassNameGenerator/index.d.ts +1 -1
  4. package/HTMLElementType/HTMLElementType.d.ts +3 -3
  5. package/HTMLElementType/index.d.ts +1 -1
  6. package/capitalize/capitalize.d.ts +1 -1
  7. package/capitalize/index.d.ts +1 -1
  8. package/chainPropTypes/chainPropTypes.d.ts +2 -2
  9. package/chainPropTypes/index.d.ts +1 -1
  10. package/composeClasses/composeClasses.d.ts +1 -1
  11. package/composeClasses/index.d.ts +1 -1
  12. package/createChainedFunction.d.ts +7 -7
  13. package/debounce/debounce.d.ts +4 -4
  14. package/debounce/index.d.ts +2 -2
  15. package/deepmerge.d.ts +5 -5
  16. package/elementAcceptingRef.d.ts +3 -3
  17. package/elementTypeAcceptingRef.d.ts +3 -3
  18. package/exactProp/exactProp.d.ts +2 -2
  19. package/exactProp/index.d.ts +1 -1
  20. package/formatMuiErrorMessage.d.ts +6 -6
  21. package/generateUtilityClass/generateUtilityClass.d.ts +2 -2
  22. package/generateUtilityClass/index.d.ts +2 -2
  23. package/generateUtilityClasses/generateUtilityClasses.d.ts +1 -1
  24. package/generateUtilityClasses/index.d.ts +1 -1
  25. package/getDisplayName.d.ts +8 -8
  26. package/getScrollbarSize.d.ts +1 -1
  27. package/index.d.ts +38 -38
  28. package/index.js +1 -1
  29. package/integerPropType.d.ts +7 -7
  30. package/isMuiElement.d.ts +1 -1
  31. package/legacy/index.js +1 -1
  32. package/modern/index.js +1 -1
  33. package/ownerDocument/index.d.ts +1 -1
  34. package/ownerDocument/ownerDocument.d.ts +1 -1
  35. package/ownerWindow/index.d.ts +1 -1
  36. package/ownerWindow/ownerWindow.d.ts +1 -1
  37. package/package.json +2 -2
  38. package/ponyfillGlobal/index.d.ts +1 -1
  39. package/ponyfillGlobal/ponyfillGlobal.d.ts +2 -2
  40. package/refType.d.ts +3 -3
  41. package/resolveProps.d.ts +12 -12
  42. package/setRef.d.ts +15 -15
  43. package/useEnhancedEffect/index.d.ts +1 -1
  44. package/useEnhancedEffect/useEnhancedEffect.d.ts +3 -3
  45. package/useEventCallback/index.d.ts +1 -1
  46. package/useEventCallback/useEventCallback.d.ts +4 -4
  47. package/useEventCallback/useEventCallback.spec.d.ts +1 -1
  48. package/useForkRef/index.d.ts +1 -1
  49. package/useForkRef/useForkRef.d.ts +2 -2
  50. package/useId/index.d.ts +1 -1
  51. package/useId/useId.d.ts +7 -7
  52. package/useIsFocusVisible.d.ts +9 -9
  53. package/usePreviousProps.d.ts +2 -2
  54. package/visuallyHidden.d.ts +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,91 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## 5.13.7
4
+
5
+ <!-- generated comparing v5.13.6..master -->
6
+
7
+ _Jul 4, 2023_
8
+
9
+ A big thanks to the 21 contributors who made this release possible.
10
+ This release focuses primarily on 🐛 bug fixes, 📚 documentation, and ⚙️ infrastructure improvements.
11
+
12
+ ### `@mui/material@5.13.7`
13
+
14
+ - [OutlinedInput] Fix form control properties in `ownerState` (#37668) @vonagam
15
+
16
+ ### `@mui/system@5.13.7`
17
+
18
+ - [Stack] Fix spacing when there are `<style>` children (#34966) @cmd-johnson
19
+
20
+ ### `@mui/icons-material@5.13.7`
21
+
22
+ - [icons] Add Microsoft logo (#37717) @zephyrus21
23
+
24
+ ### `@mui/joy@5.0.0-alpha.86`
25
+
26
+ - [Autocomplete][joy] Fix Autocomplete and Modal components to work together (#37515) @saikathalderr
27
+ - [Menu][Joy] Improve UX of `Menu` usage demo (#37797) @sai6855
28
+
29
+ ### `@mui/base@5.0.0-beta.6`
30
+
31
+ - [Slider][base][material][joy] Fix not draggable on the edge when `disableSwap={true}` (#35998) @sai6855
32
+ - [Slider][base] Provide slot state to Slider's thumb slot props callback (#37749) @mnajdova
33
+ - [Tabs] Wrap TabsList context creation in useMemo (#37370) @michaldudak
34
+ - [TextareaAutosize] Fix wrong height measurement (#37185) @bigteech
35
+
36
+ ### `@mui/lab@5.0.0-alpha.135`
37
+
38
+ - [Timeline] Fix position `alternate-reverse` generated classname (#37678) @ZeeshanTamboli
39
+
40
+ ### Docs
41
+
42
+ - [docs][base] Add demo for using the Button as a link (#37317) @AdamSundberg
43
+ - [docs][base] Add Tailwind CSS + plain CSS demo on the Select page (#37725) @mnajdova
44
+ - [docs][base] Make Base UI input demos denser (#37750) @zanivan
45
+ - [docs][base] Make Base UI button demos denser (#37689) @zanivan
46
+ - [docs][base] Add Tailwind CSS & plain CSS demos on the Input page (#37685) @mnajdova
47
+ - [docs][base] Fix horizontal scrolling on the mobile input page (#37688) @zanivan
48
+ - [docs] Improve Base UI index page (#37761) @oliviertassinari
49
+ - [docs] Fix incorrect package URL in README of example material-vite (#37755) @Dlouxgit
50
+ - [docs] Explain how to disable Base Select's portal (#37684) @michaldudak
51
+ - [docs] Shorten overview page URLs (#37660) @oliviertassinari
52
+ - [docs][material] Rename custom tab panel in Tabs demo to prevent confusion with @mui/lab (#37638) @MUK-Dev
53
+ - [docs][tabs] Document how to use routing with Tabs in Base UI (#37369) @michaldudak
54
+ - [docs] Rename product to productId (#37801) @siriwatknp
55
+ - [docs][base] Add Tailwind CSS & plain CSS demo on the Slider page (#37736) @mnajdova
56
+
57
+ ### Core
58
+
59
+ - [docs–infra] Prevent displaying multiple ads (#37696) @oliviertassinari
60
+ - [blog] Fix mismatch between plan and link @oliviertassinari
61
+ - [core] Update yarn lockfile (#37802) @michaldudak
62
+ - [core] Add bundle size Toolpad app link to PRs (#36311) @Janpot
63
+ - [core] Fix priority support prompt action flow (#37726) @DanailH
64
+ - [core] Fix typo in priority support @oliviertassinari
65
+ - [core][docs] add Eslint rule to ensure main demo component match file… (#37278) @alexfauquette
66
+ - [docs-infra] Fix truncated TOCs scrollbar (#37770) @oliviertassinari
67
+ - [docs-infra] Adjust demo container to be glued to the toolbar (#37744) @danilo-leal
68
+ - [docs-infra] Fix layout shift ad (#37694) @oliviertassinari
69
+ - [docs-infra] Improve demos toolbar (#37762) @oliviertassinari
70
+ - [docs-infra] Make the GitHub link in the nav bar open in a new tab (#37766) @gateremark
71
+ - [docs-infra] Allow to persist icons in ToC (#37731) @cherniavskii
72
+ - [docs-infra] Improve product mapping (#37729) @oliviertassinari
73
+ - [docs-infra] Add design polish to the comment and anchor buttons (#37734) @danilo-leal
74
+ - [docs-infra] Tweak editable code blocks callout design (#37681) @danilo-leal
75
+ - [docs-infra] Improve the edit page experience (#37695) @oliviertassinari
76
+ - [docs-infra] Support rendering markdown outside of docs (#37691) @oliviertassinari
77
+ - [docs-infra] Polish demo toolbar button designs (#37680) @danilo-leal
78
+ - [docs-infra] Adjust demo component container design (#37659) @danilo-leal
79
+ - [test] Fix test:e2e local run (#37719) @oliviertassinari
80
+ - [test] Remove failing test in dev @oliviertassinari
81
+ - [website] Add no-op service worker to fix stale cache issue (#37607) @cherniavskii
82
+ - [website] Transition the Core page to be Material UI instead (#37583) @danilo-leal
83
+ - [website] Update the pricing page to reflect sales (#37751) @oliviertassinari
84
+ - [website] Match Copyright with the rest of the website @oliviertassinari
85
+ - [website] Support deep linking to pricing FAQ @oliviertassinari
86
+
87
+ All contributors of this release in alphabetical order: @AdamSundberg, @alexfauquette, @bigteech, @cherniavskii, @cmd-johnson, @DanailH, @danilo-leal, @Dlouxgit, @gateremark, @Janpot, @michaldudak, @mnajdova, @MUK-Dev, @oliviertassinari, @sai6855, @saikathalderr, @siriwatknp, @vonagam, @zanivan, @ZeeshanTamboli, @zephyrus21
88
+
3
89
  ## 5.13.6
4
90
 
5
91
  _Jun 21, 2023_
@@ -9858,7 +9944,7 @@ A big thanks to the 34 contributors who made this release possible. Here are som
9858
9944
 
9859
9945
  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.
9860
9946
 
9861
- - 📚 Revamp the documentation for [the system](https://mui.com/system/getting-started/overview/). The System contains CSS utilities. The documentation now promotes the use of the `sx` prop. It's ideal for adding one-off styles, e.g. padding, but when pushed to its limits, it can be used to implement quickly a complete page.
9947
+ - 📚 Revamp the documentation for [the system](https://mui.com/system/getting-started/). The System contains CSS utilities. The documentation now promotes the use of the `sx` prop. It's ideal for adding one-off styles, e.g. padding, but when pushed to its limits, it can be used to implement quickly a complete page.
9862
9948
  - 👩‍🎨 Upgrade emotion to v11 (#23007) @mnajdova.
9863
9949
  - And many more 🐛 bug fixes and 📚 improvements.
9864
9950
 
@@ -10260,7 +10346,7 @@ Here are some highlights ✨:
10260
10346
  If you target IE11, you need to use the new bundle (`legacy`). We are treating IE11 as a second class-citizen, which is a continuation of the direction taken in #22873.
10261
10347
 
10262
10348
  - 🚀 Improve the internal benchmark suite (#22923, #23058) @mnajdova.
10263
- This was a prerequisite step to improve the [system](https://mui.com/system/getting-started/overview/). We needed to be able to measure performance. After #22945, we have measured that the `Box` component is x3 faster in v5-alpha compared to v4.
10349
+ This was a prerequisite step to improve the [system](https://mui.com/system/getting-started/). We needed to be able to measure performance. After #22945, we have measured that the `Box` component is x3 faster in v5-alpha compared to v4.
10264
10350
  - ✏️ A new blog post: [Q3 2020 Update](https://mui.com/blog/2020-q3-update/) (#23055) @oliviertassinari.
10265
10351
  - 🐙 Migrate more tests to react-testing-library @deiga, @Morteza-Jenabzadeh, @nicholas-l.
10266
10352
  - And many more 🐛 bug fixes and 📚 improvements.
@@ -10601,7 +10687,7 @@ Here are some highlights ✨:
10601
10687
 
10602
10688
  The new styling solution saves 2kB gzipped in the bundle compared to JSS, and about 14 kB gzipped if you were already using emotion or styled-components.
10603
10689
 
10604
- Last but not least, the change allows us to take advantage dynamic style props. We will use them for dynamic color props, variant props, and new style props (an improved [system](https://mui.com/system/getting-started/overview/)).
10690
+ Last but not least, the change allows us to take advantage dynamic style props. We will use them for dynamic color props, variant props, and new style props (an improved [system](https://mui.com/system/getting-started/)).
10605
10691
 
10606
10692
  This change has been in our roadmap for more than a year.
10607
10693
  We announced it in the [v4 release blog post](https://mui.com/blog/material-ui-v4-is-out/) as a direction v5 would take.
@@ -11854,7 +11940,7 @@ A big thanks to the 33 contributors who made this release possible. Here are som
11854
11940
  />
11855
11941
  ```
11856
11942
 
11857
- - [Typography] Replace the `srOnly` prop so as to not duplicate the capabilities of [System](https://mui.com/system/getting-started/overview/) (#21413) @mnajdova.
11943
+ - [Typography] Replace the `srOnly` prop so as to not duplicate the capabilities of [System](https://mui.com/system/getting-started/) (#21413) @mnajdova.
11858
11944
 
11859
11945
  ```diff
11860
11946
  -import Typography from '@material-ui/core/Typography';
@@ -1,6 +1,6 @@
1
- declare const ClassNameGenerator: {
2
- configure(generator: (componentName: string) => string): void;
3
- generate(componentName: string): string;
4
- reset(): void;
5
- };
6
- export default ClassNameGenerator;
1
+ declare const ClassNameGenerator: {
2
+ configure(generator: (componentName: string) => string): void;
3
+ generate(componentName: string): string;
4
+ reset(): void;
5
+ };
6
+ export default ClassNameGenerator;
@@ -1 +1 @@
1
- export { default } from './ClassNameGenerator';
1
+ export { default } from './ClassNameGenerator';
@@ -1,3 +1,3 @@
1
- export default function HTMLElementType(props: {
2
- [key: string]: unknown;
3
- }, propName: string, componentName: string, location: string, propFullName: string): Error | null;
1
+ export default function HTMLElementType(props: {
2
+ [key: string]: unknown;
3
+ }, propName: string, componentName: string, location: string, propFullName: string): Error | null;
@@ -1 +1 @@
1
- export { default } from './HTMLElementType';
1
+ export { default } from './HTMLElementType';
@@ -1 +1 @@
1
- export default function capitalize(string: string): string;
1
+ export default function capitalize(string: string): string;
@@ -1 +1 @@
1
- export { default } from './capitalize';
1
+ export { default } from './capitalize';
@@ -1,2 +1,2 @@
1
- import PropTypes from 'prop-types';
2
- export default function chainPropTypes<A, B>(propType1: PropTypes.Validator<A>, propType2: PropTypes.Validator<B>): PropTypes.Validator<A & B>;
1
+ import PropTypes from 'prop-types';
2
+ export default function chainPropTypes<A, B>(propType1: PropTypes.Validator<A>, propType2: PropTypes.Validator<B>): PropTypes.Validator<A & B>;
@@ -1 +1 @@
1
- export { default } from './chainPropTypes';
1
+ export { default } from './chainPropTypes';
@@ -1 +1 @@
1
- export default function composeClasses<ClassKey extends string>(slots: Record<ClassKey, ReadonlyArray<string | false | undefined | null>>, getUtilityClass: (slot: string) => string, classes?: Record<string, string> | undefined): Record<ClassKey, string>;
1
+ export default function composeClasses<ClassKey extends string>(slots: Record<ClassKey, ReadonlyArray<string | false | undefined | null>>, getUtilityClass: (slot: string) => string, classes?: Record<string, string> | undefined): Record<ClassKey, string>;
@@ -1 +1 @@
1
- export { default } from './composeClasses';
1
+ export { default } from './composeClasses';
@@ -1,7 +1,7 @@
1
- /**
2
- * Safe chained function.
3
- *
4
- * Will only create a new function if needed,
5
- * otherwise will pass back existing functions or null.
6
- */
7
- export default function createChainedFunction<Args extends any[], This>(...funcs: Array<(this: This, ...args: Args) => any>): (this: This, ...args: Args) => void;
1
+ /**
2
+ * Safe chained function.
3
+ *
4
+ * Will only create a new function if needed,
5
+ * otherwise will pass back existing functions or null.
6
+ */
7
+ export default function createChainedFunction<Args extends any[], This>(...funcs: Array<(this: This, ...args: Args) => any>): (this: This, ...args: Args) => void;
@@ -1,4 +1,4 @@
1
- export interface Cancelable {
2
- clear(): void;
3
- }
4
- export default function debounce<T extends (...args: any[]) => any>(func: T, wait?: number): T & Cancelable;
1
+ export interface Cancelable {
2
+ clear(): void;
3
+ }
4
+ export default function debounce<T extends (...args: any[]) => any>(func: T, wait?: number): T & Cancelable;
@@ -1,2 +1,2 @@
1
- export { default } from './debounce';
2
- export * from './debounce';
1
+ export { default } from './debounce';
2
+ export * from './debounce';
package/deepmerge.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export declare function isPlainObject(item: unknown): item is Record<keyof any, unknown>;
2
- export interface DeepmergeOptions {
3
- clone?: boolean;
4
- }
5
- export default function deepmerge<T>(target: T, source: unknown, options?: DeepmergeOptions): T;
1
+ export declare function isPlainObject(item: unknown): item is Record<keyof any, unknown>;
2
+ export interface DeepmergeOptions {
3
+ clone?: boolean;
4
+ }
5
+ export default function deepmerge<T>(target: T, source: unknown, options?: DeepmergeOptions): T;
@@ -1,3 +1,3 @@
1
- import PropTypes from 'prop-types';
2
- declare const elementAcceptingRef: PropTypes.Requireable<unknown>;
3
- export default elementAcceptingRef;
1
+ import PropTypes from 'prop-types';
2
+ declare const elementAcceptingRef: PropTypes.Requireable<unknown>;
3
+ export default elementAcceptingRef;
@@ -1,3 +1,3 @@
1
- import PropTypes from 'prop-types';
2
- declare const _default: PropTypes.Validator<PropTypes.ReactComponentLike | null | undefined>;
3
- export default _default;
1
+ import PropTypes from 'prop-types';
2
+ declare const _default: PropTypes.Validator<PropTypes.ReactComponentLike | null | undefined>;
3
+ export default _default;
@@ -1,2 +1,2 @@
1
- import { ValidationMap } from 'prop-types';
2
- export default function exactProp<T>(propTypes: ValidationMap<T>): ValidationMap<T>;
1
+ import { ValidationMap } from 'prop-types';
2
+ export default function exactProp<T>(propTypes: ValidationMap<T>): ValidationMap<T>;
@@ -1 +1 @@
1
- export { default } from './exactProp';
1
+ export { default } from './exactProp';
@@ -1,6 +1,6 @@
1
- /**
2
- * WARNING: Don't import this directly.
3
- * Use `MuiError` from `@mui/utils/macros/MuiError.macro` instead.
4
- * @param {number} code
5
- */
6
- export default function formatMuiErrorMessage(code: number): string;
1
+ /**
2
+ * WARNING: Don't import this directly.
3
+ * Use `MuiError` from `@mui/utils/macros/MuiError.macro` instead.
4
+ * @param {number} code
5
+ */
6
+ export default function formatMuiErrorMessage(code: number): string;
@@ -1,2 +1,2 @@
1
- export type GlobalStateSlot = 'active' | 'checked' | 'completed' | 'disabled' | 'readOnly' | 'error' | 'expanded' | 'focused' | 'focusVisible' | 'required' | 'selected';
2
- export default function generateUtilityClass(componentName: string, slot: string, globalStatePrefix?: string): string;
1
+ export type GlobalStateSlot = 'active' | 'checked' | 'completed' | 'disabled' | 'readOnly' | 'error' | 'expanded' | 'focused' | 'focusVisible' | 'required' | 'selected';
2
+ export default function generateUtilityClass(componentName: string, slot: string, globalStatePrefix?: string): string;
@@ -1,2 +1,2 @@
1
- export { default } from './generateUtilityClass';
2
- export * from './generateUtilityClass';
1
+ export { default } from './generateUtilityClass';
2
+ export * from './generateUtilityClass';
@@ -1 +1 @@
1
- export default function generateUtilityClasses<T extends string>(componentName: string, slots: T[], globalStatePrefix?: string): Record<T, string>;
1
+ export default function generateUtilityClasses<T extends string>(componentName: string, slots: T[], globalStatePrefix?: string): Record<T, string>;
@@ -1 +1 @@
1
- export { default } from './generateUtilityClasses';
1
+ export { default } from './generateUtilityClasses';
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
2
- export declare function getFunctionName(fn: Function): string;
3
- /**
4
- * cherry-pick from
5
- * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js
6
- * originally forked from recompose/getDisplayName with added IE11 support
7
- */
8
- export default function getDisplayName(Component: React.ElementType): string | undefined;
1
+ import * as React from 'react';
2
+ export declare function getFunctionName(fn: Function): string;
3
+ /**
4
+ * cherry-pick from
5
+ * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js
6
+ * originally forked from recompose/getDisplayName with added IE11 support
7
+ */
8
+ export default function getDisplayName(Component: React.ElementType): string | undefined;
@@ -1 +1 @@
1
- export default function getScrollbarSize(doc: Document): number;
1
+ export default function getScrollbarSize(doc: Document): number;
package/index.d.ts CHANGED
@@ -1,38 +1,38 @@
1
- export { default as chainPropTypes } from './chainPropTypes';
2
- export { default as deepmerge } from './deepmerge';
3
- export { isPlainObject } from './deepmerge';
4
- export { default as elementAcceptingRef } from './elementAcceptingRef';
5
- export { default as elementTypeAcceptingRef } from './elementTypeAcceptingRef';
6
- export { default as exactProp } from './exactProp';
7
- export { default as formatMuiErrorMessage } from './formatMuiErrorMessage';
8
- export { default as getDisplayName } from './getDisplayName';
9
- export { default as HTMLElementType } from './HTMLElementType';
10
- export { default as ponyfillGlobal } from './ponyfillGlobal';
11
- export { default as refType } from './refType';
12
- export { default as unstable_capitalize } from './capitalize';
13
- export { default as unstable_createChainedFunction } from './createChainedFunction';
14
- export { default as unstable_debounce } from './debounce';
15
- export { default as unstable_deprecatedPropType } from './deprecatedPropType';
16
- export { default as unstable_isMuiElement } from './isMuiElement';
17
- export { default as unstable_ownerDocument } from './ownerDocument';
18
- export { default as unstable_ownerWindow } from './ownerWindow';
19
- export { default as unstable_requirePropFactory } from './requirePropFactory';
20
- export { default as unstable_setRef } from './setRef';
21
- export { default as unstable_useEnhancedEffect } from './useEnhancedEffect';
22
- export { default as unstable_useId } from './useId';
23
- export { default as unstable_unsupportedProp } from './unsupportedProp';
24
- export { default as unstable_useControlled } from './useControlled';
25
- export { default as unstable_useEventCallback } from './useEventCallback';
26
- export { default as unstable_useForkRef } from './useForkRef';
27
- export { default as unstable_useIsFocusVisible } from './useIsFocusVisible';
28
- export { default as unstable_getScrollbarSize } from './getScrollbarSize';
29
- export { detectScrollType as unstable_detectScrollType, getNormalizedScrollLeft as unstable_getNormalizedScrollLeft, } from './scrollLeft';
30
- export { default as usePreviousProps } from './usePreviousProps';
31
- export { default as visuallyHidden } from './visuallyHidden';
32
- export { default as integerPropType } from './integerPropType';
33
- export { default as internal_resolveProps } from './resolveProps';
34
- export { default as unstable_composeClasses } from './composeClasses';
35
- export { default as unstable_generateUtilityClass } from './generateUtilityClass';
36
- export * from './generateUtilityClass';
37
- export { default as unstable_generateUtilityClasses } from './generateUtilityClasses';
38
- export { default as unstable_ClassNameGenerator } from './ClassNameGenerator';
1
+ export { default as chainPropTypes } from './chainPropTypes';
2
+ export { default as deepmerge } from './deepmerge';
3
+ export { isPlainObject } from './deepmerge';
4
+ export { default as elementAcceptingRef } from './elementAcceptingRef';
5
+ export { default as elementTypeAcceptingRef } from './elementTypeAcceptingRef';
6
+ export { default as exactProp } from './exactProp';
7
+ export { default as formatMuiErrorMessage } from './formatMuiErrorMessage';
8
+ export { default as getDisplayName } from './getDisplayName';
9
+ export { default as HTMLElementType } from './HTMLElementType';
10
+ export { default as ponyfillGlobal } from './ponyfillGlobal';
11
+ export { default as refType } from './refType';
12
+ export { default as unstable_capitalize } from './capitalize';
13
+ export { default as unstable_createChainedFunction } from './createChainedFunction';
14
+ export { default as unstable_debounce } from './debounce';
15
+ export { default as unstable_deprecatedPropType } from './deprecatedPropType';
16
+ export { default as unstable_isMuiElement } from './isMuiElement';
17
+ export { default as unstable_ownerDocument } from './ownerDocument';
18
+ export { default as unstable_ownerWindow } from './ownerWindow';
19
+ export { default as unstable_requirePropFactory } from './requirePropFactory';
20
+ export { default as unstable_setRef } from './setRef';
21
+ export { default as unstable_useEnhancedEffect } from './useEnhancedEffect';
22
+ export { default as unstable_useId } from './useId';
23
+ export { default as unstable_unsupportedProp } from './unsupportedProp';
24
+ export { default as unstable_useControlled } from './useControlled';
25
+ export { default as unstable_useEventCallback } from './useEventCallback';
26
+ export { default as unstable_useForkRef } from './useForkRef';
27
+ export { default as unstable_useIsFocusVisible } from './useIsFocusVisible';
28
+ export { default as unstable_getScrollbarSize } from './getScrollbarSize';
29
+ export { detectScrollType as unstable_detectScrollType, getNormalizedScrollLeft as unstable_getNormalizedScrollLeft, } from './scrollLeft';
30
+ export { default as usePreviousProps } from './usePreviousProps';
31
+ export { default as visuallyHidden } from './visuallyHidden';
32
+ export { default as integerPropType } from './integerPropType';
33
+ export { default as internal_resolveProps } from './resolveProps';
34
+ export { default as unstable_composeClasses } from './composeClasses';
35
+ export { default as unstable_generateUtilityClass } from './generateUtilityClass';
36
+ export * from './generateUtilityClass';
37
+ export { default as unstable_generateUtilityClasses } from './generateUtilityClasses';
38
+ export { default as unstable_ClassNameGenerator } from './ClassNameGenerator';
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/utils v5.13.6
2
+ * @mui/utils v5.13.7
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1,7 +1,7 @@
1
- export function getTypeByValue(value: any): any;
2
- declare function _default(props: any, propName: any, ...other: any[]): RangeError | null;
3
- declare namespace _default {
4
- export { requiredInteger as isRequired };
5
- }
6
- export default _default;
7
- declare function requiredInteger(props: any, propName: any, componentName: any, location: any): RangeError | null;
1
+ export function getTypeByValue(value: any): any;
2
+ declare function _default(props: any, propName: any, ...other: any[]): RangeError | null;
3
+ declare namespace _default {
4
+ export { requiredInteger as isRequired };
5
+ }
6
+ export default _default;
7
+ declare function requiredInteger(props: any, propName: any, componentName: any, location: any): RangeError | null;
package/isMuiElement.d.ts CHANGED
@@ -1 +1 @@
1
- export default function isMuiElement(element: any, muiNames: readonly string[]): boolean;
1
+ export default function isMuiElement(element: any, muiNames: readonly string[]): boolean;
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/utils v5.13.6
2
+ * @mui/utils v5.13.7
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/utils v5.13.6
2
+ * @mui/utils v5.13.7
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1 +1 @@
1
- export { default } from './ownerDocument';
1
+ export { default } from './ownerDocument';
@@ -1 +1 @@
1
- export default function ownerDocument(node: Node | null | undefined): Document;
1
+ export default function ownerDocument(node: Node | null | undefined): Document;
@@ -1 +1 @@
1
- export { default } from './ownerWindow';
1
+ export { default } from './ownerWindow';
@@ -1 +1 @@
1
- export default function ownerWindow(node: Node | undefined): Window;
1
+ export default function ownerWindow(node: Node | undefined): Window;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/utils",
3
- "version": "5.13.6",
3
+ "version": "5.13.7",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "Utility functions for React components.",
@@ -31,7 +31,7 @@
31
31
  "dependencies": {
32
32
  "@babel/runtime": "^7.22.5",
33
33
  "@types/prop-types": "^15.7.5",
34
- "@types/react-is": "^18.2.0",
34
+ "@types/react-is": "^18.2.1",
35
35
  "prop-types": "^15.8.1",
36
36
  "react-is": "^18.2.0"
37
37
  },
@@ -1 +1 @@
1
- export { default } from './ponyfillGlobal';
1
+ export { default } from './ponyfillGlobal';
@@ -1,2 +1,2 @@
1
- declare const _default: any;
2
- export default _default;
1
+ declare const _default: any;
2
+ export default _default;
package/refType.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import PropTypes from 'prop-types';
2
- declare const refType: PropTypes.Requireable<object>;
3
- export default refType;
1
+ import PropTypes from 'prop-types';
2
+ declare const refType: PropTypes.Requireable<object>;
3
+ export default refType;
package/resolveProps.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- /**
2
- * Add keys, values of `defaultProps` that does not exist in `props`
3
- * @param {object} defaultProps
4
- * @param {object} props
5
- * @returns {object} resolved props
6
- */
7
- export default function resolveProps<T extends {
8
- components?: Record<string, unknown>;
9
- componentsProps?: Record<string, unknown>;
10
- slots?: Record<string, unknown>;
11
- slotProps?: Record<string, unknown>;
12
- } & Record<string, unknown>>(defaultProps: T, props: T): T;
1
+ /**
2
+ * Add keys, values of `defaultProps` that does not exist in `props`
3
+ * @param {object} defaultProps
4
+ * @param {object} props
5
+ * @returns {object} resolved props
6
+ */
7
+ export default function resolveProps<T extends {
8
+ components?: Record<string, unknown>;
9
+ componentsProps?: Record<string, unknown>;
10
+ slots?: Record<string, unknown>;
11
+ slotProps?: Record<string, unknown>;
12
+ } & Record<string, unknown>>(defaultProps: T, props: T): T;
package/setRef.d.ts CHANGED
@@ -1,15 +1,15 @@
1
- import * as React from 'react';
2
- /**
3
- * TODO v5: consider making it private
4
- *
5
- * passes {value} to {ref}
6
- *
7
- * WARNING: Be sure to only call this inside a callback that is passed as a ref.
8
- * Otherwise, make sure to cleanup the previous {ref} if it changes. See
9
- * https://github.com/mui/material-ui/issues/13539
10
- *
11
- * Useful if you want to expose the ref of an inner component to the public API
12
- * while still using it inside the component.
13
- * @param ref A ref callback or ref object. If anything falsy, this is a no-op.
14
- */
15
- export default function setRef<T>(ref: React.MutableRefObject<T | null> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
1
+ import * as React from 'react';
2
+ /**
3
+ * TODO v5: consider making it private
4
+ *
5
+ * passes {value} to {ref}
6
+ *
7
+ * WARNING: Be sure to only call this inside a callback that is passed as a ref.
8
+ * Otherwise, make sure to cleanup the previous {ref} if it changes. See
9
+ * https://github.com/mui/material-ui/issues/13539
10
+ *
11
+ * Useful if you want to expose the ref of an inner component to the public API
12
+ * while still using it inside the component.
13
+ * @param ref A ref callback or ref object. If anything falsy, this is a no-op.
14
+ */
15
+ export default function setRef<T>(ref: React.MutableRefObject<T | null> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
@@ -1 +1 @@
1
- export { default } from './useEnhancedEffect';
1
+ export { default } from './useEnhancedEffect';
@@ -1,3 +1,3 @@
1
- import * as React from 'react';
2
- declare const useEnhancedEffect: typeof React.useLayoutEffect;
3
- export default useEnhancedEffect;
1
+ import * as React from 'react';
2
+ declare const useEnhancedEffect: typeof React.useLayoutEffect;
3
+ export default useEnhancedEffect;
@@ -1 +1 @@
1
- export { default } from './useEventCallback';
1
+ export { default } from './useEventCallback';
@@ -1,4 +1,4 @@
1
- /**
2
- * https://github.com/facebook/react/issues/14099#issuecomment-440013892
3
- */
4
- export default function useEventCallback<Args extends unknown[], Return>(fn: (...args: Args) => Return): (...args: Args) => Return;
1
+ /**
2
+ * https://github.com/facebook/react/issues/14099#issuecomment-440013892
3
+ */
4
+ export default function useEventCallback<Args extends unknown[], Return>(fn: (...args: Args) => Return): (...args: Args) => Return;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export { default } from './useForkRef';
1
+ export { default } from './useForkRef';
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export default function useForkRef<Instance>(...refs: Array<React.Ref<Instance> | undefined>): React.RefCallback<Instance> | null;
1
+ import * as React from 'react';
2
+ export default function useForkRef<Instance>(...refs: Array<React.Ref<Instance> | undefined>): React.RefCallback<Instance> | null;
package/useId/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { default } from './useId';
1
+ export { default } from './useId';
package/useId/useId.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- /**
2
- *
3
- * @example <div id={useId()} />
4
- * @param idOverride
5
- * @returns {string}
6
- */
7
- export default function useId(idOverride?: string): string | undefined;
1
+ /**
2
+ *
3
+ * @example <div id={useId()} />
4
+ * @param idOverride
5
+ * @returns {string}
6
+ */
7
+ export default function useId(idOverride?: string): string | undefined;
@@ -1,9 +1,9 @@
1
- import * as React from 'react';
2
- export declare function teardown(doc: Document): void;
3
- export interface UseIsFocusVisibleResult {
4
- isFocusVisibleRef: React.MutableRefObject<boolean>;
5
- onBlur: (event: React.FocusEvent<any>) => void;
6
- onFocus: (event: React.FocusEvent<any>) => void;
7
- ref: React.RefCallback<Element>;
8
- }
9
- export default function useIsFocusVisible(): UseIsFocusVisibleResult;
1
+ import * as React from 'react';
2
+ export declare function teardown(doc: Document): void;
3
+ export interface UseIsFocusVisibleResult {
4
+ isFocusVisibleRef: React.MutableRefObject<boolean>;
5
+ onBlur: (event: React.FocusEvent<any>) => void;
6
+ onFocus: (event: React.FocusEvent<any>) => void;
7
+ ref: React.RefCallback<Element>;
8
+ }
9
+ export default function useIsFocusVisible(): UseIsFocusVisibleResult;
@@ -1,2 +1,2 @@
1
- declare const usePreviousProps: <T>(value: T) => Partial<T>;
2
- export default usePreviousProps;
1
+ declare const usePreviousProps: <T>(value: T) => Partial<T>;
2
+ export default usePreviousProps;
@@ -1,2 +1,2 @@
1
- declare const visuallyHidden: import('react').CSSProperties;
2
- export default visuallyHidden;
1
+ declare const visuallyHidden: import('react').CSSProperties;
2
+ export default visuallyHidden;