@mui/types 7.2.22 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +291 -0
- package/OverridableComponentAugmentation.d.ts +31 -0
- package/OverridableComponentAugmentation.js +5 -0
- package/esm/OverridableComponentAugmentation.d.ts +31 -0
- package/esm/OverridableComponentAugmentation.js +1 -0
- package/esm/index.d.ts +93 -0
- package/esm/index.js +89 -0
- package/esm/package.json +1 -0
- package/index.d.ts +16 -77
- package/index.js +12 -0
- package/modern/OverridableComponentAugmentation.d.ts +31 -0
- package/modern/OverridableComponentAugmentation.js +1 -0
- package/modern/index.d.ts +93 -0
- package/modern/index.js +89 -0
- package/modern/package.json +1 -0
- package/package.json +37 -5
- package/tsconfig.build.tsbuildinfo +1 -0
- package/OverridableComponentAugmentation.ts +0 -44
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
# [Versions](https://mui.com/versions/)
|
|
2
|
+
|
|
3
|
+
## 7.0.0-beta.4
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v7.0.0-beta.3..master -->
|
|
6
|
+
|
|
7
|
+
_Mar 13, 2025_
|
|
8
|
+
|
|
9
|
+
A big thanks to the 10 contributors who made this release possible.
|
|
10
|
+
This release contains bug fixes 🐛 and improvements to the new package layout 🏗️.
|
|
11
|
+
|
|
12
|
+
### `@mui/material@7.0.0-beta.4`
|
|
13
|
+
|
|
14
|
+
- [Accordion] Add missing `root` slot (#45532) @sai6855
|
|
15
|
+
- [AccordionSummary] Add slots and slotProps (#45559) @sai6855
|
|
16
|
+
- [ListItemText] Add missing `root` slot (#45540) @sai6855
|
|
17
|
+
- [SpeedDial] Add missing `root` slot (#45541) @sai6855
|
|
18
|
+
- [Tooltip] Allow auto placement on tooltip (#45399) @Jtaks
|
|
19
|
+
- [useScrollTrigger] Do nothing if target is null (#45441) @vipierozan99
|
|
20
|
+
- [TextareaAutosize] Fix ResizeObserver causing infinite `selectionchange` loop (#45351) @mj12albert
|
|
21
|
+
- Fix negative input for CSS variables spacing array (#45550) @siriwatknp
|
|
22
|
+
- Add missing deprecations in deprecations-all file (#45505) @sai6855
|
|
23
|
+
- Rename some `@mui/material/styles/createTypography` exports (#45558) @Janpot
|
|
24
|
+
|
|
25
|
+
### `@mui/icons-material@7.0.0-beta.4`
|
|
26
|
+
|
|
27
|
+
- Remove unused icon names from the download script (#45453) @yermartee
|
|
28
|
+
|
|
29
|
+
### `@mui/system@7.0.0-beta.4`
|
|
30
|
+
|
|
31
|
+
- Prevent nested non-vars theme inheritance (#45545) @siriwatknp
|
|
32
|
+
- Disable theme recalculation as default behavior (#45405) @siriwatknp
|
|
33
|
+
- Fix package layout inconsistencies (#45491) @DiegoAndai
|
|
34
|
+
|
|
35
|
+
### `@mui/styled-engine@7.0.0-beta.4`
|
|
36
|
+
|
|
37
|
+
- Add `enableCssLayer` prop to StyledEngineProvider (#45428) @siriwatknp
|
|
38
|
+
|
|
39
|
+
### `@mui/types@7.3.0`
|
|
40
|
+
|
|
41
|
+
- [code-infra] Fix type resolution for @mui/types (#45513) @Janpot
|
|
42
|
+
|
|
43
|
+
### `@mui/utils@7.0.0-beta.4`
|
|
44
|
+
|
|
45
|
+
- Fix package layout inconsistencies (#45491) @DiegoAndai
|
|
46
|
+
- Use correct iri-reference homepage format (#45472) @dahiro
|
|
47
|
+
|
|
48
|
+
### Docs
|
|
49
|
+
|
|
50
|
+
- [Backdrop] Fix component name in migration guide (#45506) @sai6855
|
|
51
|
+
- [TextField] Add HTML input section to TextField page (#45439) @siriwatknp
|
|
52
|
+
|
|
53
|
+
### Core
|
|
54
|
+
|
|
55
|
+
- [code-infra] Convert a few docs modules to ts (#45548) @Janpot
|
|
56
|
+
- [code-infra] Remove more CJS modules from the docs (#45557) @Janpot
|
|
57
|
+
- [code-infra] Remove nested imports from theme augmentation (#45514) @Janpot
|
|
58
|
+
- [docs-infra] Add @ts-ignore to avoid type checking for MUI X (#45555) @siriwatknp
|
|
59
|
+
- [blog] Fix author end-of-year updates (#45533) @oliviertassinari
|
|
60
|
+
|
|
61
|
+
All contributors of this release in alphabetical order: @dahiro, @DiegoAndai, @Janpot, @Jtaks, @mj12albert, @oliviertassinari, @sai6855, @siriwatknp, @vipierozan99, @yermartee
|
|
62
|
+
|
|
63
|
+
## 7.0.0-beta.3
|
|
64
|
+
|
|
65
|
+
<!-- generated comparing v7.0.0-beta.2..master -->
|
|
66
|
+
|
|
67
|
+
_Mar 5, 2025_
|
|
68
|
+
|
|
69
|
+
A big thanks to the 3 contributors who made this release possible.
|
|
70
|
+
|
|
71
|
+
### `@mui/material@7.0.0-beta.3`
|
|
72
|
+
|
|
73
|
+
- Fix moduleResolution:node for icons (#45444) @Janpot
|
|
74
|
+
- [ThemeProvider] Add `storageManager` prop to `ThemeProvider` (#45136) @siriwatknp
|
|
75
|
+
- [Radio] Fix `inputProps` not forwarded (#45471) @siriwatknp
|
|
76
|
+
|
|
77
|
+
### `@mui/codemod@7.0.0-beta.3`
|
|
78
|
+
|
|
79
|
+
- [codemod] Fix codemods not found (#45473) @DiegoAndai
|
|
80
|
+
|
|
81
|
+
All contributors of this release in alphabetical order: @DiegoAndai, @Janpot, @siriwatknp
|
|
82
|
+
|
|
83
|
+
## 7.0.0-beta.2
|
|
84
|
+
|
|
85
|
+
<!-- generated comparing v7.0.0-beta.1..master -->
|
|
86
|
+
|
|
87
|
+
_Feb 27, 2025_
|
|
88
|
+
|
|
89
|
+
A big thanks to the 2 contributors who made this release possible.
|
|
90
|
+
|
|
91
|
+
### Core
|
|
92
|
+
|
|
93
|
+
- [code-infra] Add package.json export (#45433) @Janpot
|
|
94
|
+
- [blog] React 19 migration for MUI X (#45348) @arminmeh
|
|
95
|
+
|
|
96
|
+
All contributors of this release in alphabetical order: @arminmeh, @Janpot
|
|
97
|
+
|
|
98
|
+
## 7.0.0-beta.1
|
|
99
|
+
|
|
100
|
+
<!-- generated comparing v7.0.0-beta.0..master -->
|
|
101
|
+
|
|
102
|
+
_Feb 27, 2025_
|
|
103
|
+
|
|
104
|
+
This release fixes incorrect build output from the previous release (`beta.0`).
|
|
105
|
+
|
|
106
|
+
### Core
|
|
107
|
+
|
|
108
|
+
- [code-infra] Fix build:types script omitting folders with a dot in their name (#45422) @Janpot
|
|
109
|
+
- [release] Fix versions (#45420) @mj12albert
|
|
110
|
+
|
|
111
|
+
All contributors of this release in alphabetical order: @Janpot, @mj12albert
|
|
112
|
+
|
|
113
|
+
## 7.0.0-beta.0
|
|
114
|
+
|
|
115
|
+
<!-- generated comparing v7.0.0-alpha.2..master -->
|
|
116
|
+
|
|
117
|
+
_Feb 26, 2025_
|
|
118
|
+
|
|
119
|
+
A big thanks to the 8 contributors who made this release possible.
|
|
120
|
+
|
|
121
|
+
### `@mui/material@7.0.0-beta.0`
|
|
122
|
+
|
|
123
|
+
- [Modal][Dialog] Remove deprecated `onBackdropClick` (#45395) @DiegoAndai
|
|
124
|
+
- [Grid] Improve Grid2 upgrade experience (#45304) @DiegoAndai
|
|
125
|
+
- [Grid] Rename to GridLegacy (#45363) @DiegoAndai
|
|
126
|
+
- [Grid2] Rename to Grid (#45381) @DiegoAndai
|
|
127
|
+
- Remove SvgIcon data-testid in production (#45333) @Janpot
|
|
128
|
+
- Allow nested theme creation with `vars` (#45335) @siriwatknp
|
|
129
|
+
- [Rating] Deprecate \*Props and complete `slots`, `slotProps` (#45295) @harry-whorlow
|
|
130
|
+
- [Slider] Fix css class selector in migration guide (#45402) @sai6855
|
|
131
|
+
- [Slider] Fix spacings in .md files (#45388) @sai6855
|
|
132
|
+
- [styles] Remove deprecated exports (#45397) @DiegoAndai
|
|
133
|
+
- [Menu] Deprecate \*Props and complete `slots`, `slotProps` (#44913) @siriwatknp
|
|
134
|
+
- [StepButton] Remove StepIconButton type (#45396) @DiegoAndai
|
|
135
|
+
|
|
136
|
+
### Docs
|
|
137
|
+
|
|
138
|
+
- [Autocomplete] Remove unnecessary renderTags prop from Sizes demo (#45401) @ZeeshanTamboli
|
|
139
|
+
- Add `overriding-component-structure` doc to Material UI (#45186) @siriwatknp
|
|
140
|
+
- Fix typo in slider docs (#45390) @sai6855
|
|
141
|
+
- Fix Context Menu selection lost on Safari (#44903) @NooBat
|
|
142
|
+
|
|
143
|
+
### Core
|
|
144
|
+
|
|
145
|
+
- [code-infra] Fix types for @mui/styled-engine (#45413) @Janpot
|
|
146
|
+
- [docs-infra] Fix theme toggle call (#45400) @siriwatknp
|
|
147
|
+
- [docs-infra] Add `color-scheme` to document in iframe demos (#45406) @KenanYusuf
|
|
148
|
+
- [docs-infra] Revert to use deprecated `CssVarsProvider` for MUI X (#45371) @siriwatknp
|
|
149
|
+
- [docs-infra] Fix dark mode flicker for API pages (#45354) @siriwatknp
|
|
150
|
+
- [examples] Remove unnecessary comma in Material UI Vite JS example (#45370) @ZeeshanTamboli
|
|
151
|
+
- [test] Remove unused renderTags prop and fix key warning in Autocomplete regression test (#45410) @ZeeshanTamboli
|
|
152
|
+
|
|
153
|
+
All contributors of this release in alphabetical order: @DiegoAndai, @harry-whorlow, @Janpot, @KenanYusuf, @NooBat, @sai6855, @siriwatknp, @ZeeshanTamboli
|
|
154
|
+
|
|
155
|
+
## 7.0.0-alpha.2
|
|
156
|
+
|
|
157
|
+
<!-- generated comparing v7.0.0-alpha.1..master -->
|
|
158
|
+
|
|
159
|
+
_Feb 18, 2025_
|
|
160
|
+
|
|
161
|
+
A big thanks to the 9 contributors who made this release possible.
|
|
162
|
+
|
|
163
|
+
### `@mui/material@7.0.0-alpha.2`
|
|
164
|
+
|
|
165
|
+
- [Autocomplete] Remove legacy `aria-owns` attribute for combobox (#45302) @ZeeshanTamboli
|
|
166
|
+
- [Button] Apply id only if loading indicator is present (#45296) @aarongarciah
|
|
167
|
+
- [Hidden] Remove deprecated Hidden component (#45283) @DiegoAndai
|
|
168
|
+
- [InputBase] Deprecate composed classes (#45234) @sai6855
|
|
169
|
+
- [InputLabel] Changed size prop value from `normal` to `medium` (#45235) @perkrlsn
|
|
170
|
+
- Fix `slotProps.transition` types (#45214) @siriwatknp
|
|
171
|
+
|
|
172
|
+
### Docs
|
|
173
|
+
|
|
174
|
+
- Fix broken links to MUI X docs (#45145) @mapache-salvaje
|
|
175
|
+
- Add migration guide for package layout changes (#45222) @Janpot
|
|
176
|
+
- [icons] Fix typo in material-icons.md (#45334) @a-s-russo
|
|
177
|
+
|
|
178
|
+
### Core
|
|
179
|
+
|
|
180
|
+
- Disallow access to esm/modern barrel files (#45332) @Janpot
|
|
181
|
+
- [code-infra] Update `elliptic` (#45311) @Janpot
|
|
182
|
+
- Update release guide to specify package bumping rules (#45294) @DiegoAndai
|
|
183
|
+
|
|
184
|
+
All contributors of this release in alphabetical order: @a-s-russo, @aarongarciah, @DiegoAndai, @Janpot, @mapache-salvaje, @perkrlsn, @sai6855, @siriwatknp, @ZeeshanTamboli
|
|
185
|
+
|
|
186
|
+
## 7.0.0-alpha.1
|
|
187
|
+
|
|
188
|
+
<!-- generated comparing v7.0.0-alpha.0..master -->
|
|
189
|
+
|
|
190
|
+
_Feb 11, 2025_
|
|
191
|
+
|
|
192
|
+
A big thanks to the 11 contributors who made this release possible.
|
|
193
|
+
|
|
194
|
+
### `@mui/material@7.0.0-alpha.1`
|
|
195
|
+
|
|
196
|
+
- [Checkbox] Add slots and slotProps (#44974) @sai6855
|
|
197
|
+
- [LinearProgress][CircularProgress] Add variant overrides for module augumentation (#45163) @kingflamez
|
|
198
|
+
- [Drawer] Deprecate \*Props and complete `slots`, `slotProps` (#44960) @siriwatknp
|
|
199
|
+
- Fix wrong `slotProps` of `DetailsHTMLAttributes` types (#45215) @siriwatknp
|
|
200
|
+
- [MobileStepper] deprecate `LinearProgressProps` and complete `slots`, `slotProps` (#45033) @siriwatknp
|
|
201
|
+
- [Radio] Add slots and slotProps (#44972) @sai6855
|
|
202
|
+
- [Radio] Remove empty line (#45184) @sai6855
|
|
203
|
+
- [Slider] Deprecate composed classes (#45201) @sai6855
|
|
204
|
+
- [Snackbar] Fix generated proptypes (#45156) @siriwatknp
|
|
205
|
+
- [SpeedDialAction] Add slots and slotProps (#45065) @sai6855
|
|
206
|
+
- [SwitchBase] Fix spreading of `handlers` in getSlotProps (#45197) @sai6855
|
|
207
|
+
- [Tabs] Deprecate \*Props and complete `slots`, `slotProps` (#45012) @siriwatknp
|
|
208
|
+
- [TextField] Remove deprecated props from documentation (#45199) @sai6855
|
|
209
|
+
|
|
210
|
+
### `@mui/icons-material@7.0.0-alpha.1`
|
|
211
|
+
|
|
212
|
+
- Change icon source URL and add overrides (#45020) @siriwatknp
|
|
213
|
+
|
|
214
|
+
### `@mui/lab@7.0.0-beta.1`
|
|
215
|
+
|
|
216
|
+
- Remove components which were moved from lab to material (#45232) @DiegoAndai
|
|
217
|
+
|
|
218
|
+
### Docs
|
|
219
|
+
|
|
220
|
+
- [Autocomplete] Improve Google Maps search example (#44708) @oliviertassinari
|
|
221
|
+
- [Dialog] Removes deprecated PaperProps from docs (#45195) @sai6855
|
|
222
|
+
- [Menu] Add Grouped Menu demo (#45241) @noobDev31
|
|
223
|
+
- [material] Add disableInteractive on colorTool grid Tooltips (#37800) @Janpot
|
|
224
|
+
- [blog] Consistent Base UI terminology (#45264) @oliviertassinari
|
|
225
|
+
- A quick first step to update docs for Tailwind v4 (#45147) @oliviertassinari
|
|
226
|
+
- Fix `element.ref` accessing warning on docs (#45155) @DiegoAndai
|
|
227
|
+
- Mention Toolpad as experimental (#45273) @prakhargupta1
|
|
228
|
+
- [joy-ui] Update "Set up providers" section of integration with Material UI (#45183) @mateuseap
|
|
229
|
+
|
|
230
|
+
### Core
|
|
231
|
+
|
|
232
|
+
- Update branch switch tags (#45198) @DiegoAndai
|
|
233
|
+
- Fix double redirection to Base UI (#45146) @oliviertassinari
|
|
234
|
+
- Fix corepack and pnpm installation in CircleCI (#45185) @mj12albert
|
|
235
|
+
- Fix typo on Netlify script (#45278) @maximevtush
|
|
236
|
+
- [code-infra] Fix testing library resolution with custom react (#44061) @Janpot
|
|
237
|
+
- [code-infra] Update package layout for better ESM support (#43264) @Janpot
|
|
238
|
+
- Update `@typescript-eslint/*` packages and remove deprecated `eslint-config-airbnb-typescript` package (#45245) @ZeeshanTamboli
|
|
239
|
+
- [docs] Restore utility component docs from MUI Base to Material UI (#45213) @mapache-salvaje
|
|
240
|
+
- [docs] Sync active sponsors (#45204) @oliviertassinari
|
|
241
|
+
- [docs] Fix links in CONTRIBUTING.md (#45202) @bernardobelchior
|
|
242
|
+
- [docs-infra] Point to MUI X next docs (#45207) @cherniavskii
|
|
243
|
+
- [test] Fix React 18 tests (#45161) @DiegoAndai
|
|
244
|
+
|
|
245
|
+
All contributors of this release in alphabetical order: @bernardobelchior, @cherniavskii, @DiegoAndai, @Janpot, @kingflamez, @mapache-salvaje, @mateuseap, @maximevtush, @mj12albert, @noobDev31, @oliviertassinari, @prakhargupta1, @sai6855, @siriwatknp, @ZeeshanTamboli
|
|
246
|
+
|
|
247
|
+
## 7.0.0-alpha.0
|
|
248
|
+
|
|
249
|
+
<!-- generated comparing v6.4.1..master -->
|
|
250
|
+
|
|
251
|
+
_Jan 31, 2025_
|
|
252
|
+
|
|
253
|
+
A big thanks to the 9 contributors who made this release possible.
|
|
254
|
+
This is the first alpha release of Material UI v7 🎉.
|
|
255
|
+
|
|
256
|
+
### `@mui/material@7.0.0-alpha.0`
|
|
257
|
+
|
|
258
|
+
- [Autocomplete] Prevent shrink animation in uncontrolled Autocomplete when default value is set (#44873) @ZeeshanTamboli
|
|
259
|
+
- [Popover] Deprecate \*Props and complete `slots`, `slotProps` (#45035) @siriwatknp
|
|
260
|
+
- [Slider] Fix arrow keys past the end for Slider with custom marks (#45050) @joshkel
|
|
261
|
+
- [SwitchBase] Deprecate `inputProps` and complete slots, slotProps (#45076) @siriwatknp
|
|
262
|
+
- [TextareaAutosize] Temporarily disconnect ResizeObserver to avoid loop error (#44540) @mj12albert
|
|
263
|
+
- [Slider] Narrow onChange value type (#44777) @good-jinu
|
|
264
|
+
- [Snackbar] Add Slots and SlotProps (#45103) @harry-whorlow
|
|
265
|
+
|
|
266
|
+
### `@mui/utils@7.0.0-alpha.0`
|
|
267
|
+
|
|
268
|
+
- Merge `sx` instead of override when using `mergeSlotProps` (#45062) @siriwatknp
|
|
269
|
+
|
|
270
|
+
### Core
|
|
271
|
+
|
|
272
|
+
- [code-infra] a few fixes uncovered during ESM updates (#45031) @Janpot
|
|
273
|
+
- [code-infra] Remove rsc-builder (#45079) @Janpot
|
|
274
|
+
- [code-infra] Remove commonjs imports in docs (#44976) @Janpot
|
|
275
|
+
- [docs-infra] Move Ukraine banner to the bottom (#45135) @oliviertassinari
|
|
276
|
+
- Fix MUI Base vale rule (#45140) @oliviertassinari
|
|
277
|
+
- Fix missing store contributor renaming (b3d1be0) @oliviertassinari
|
|
278
|
+
- Fix 404 errors (#45137) @oliviertassinari
|
|
279
|
+
- Prepare libraries for first v7 alpha release (#45132) @DiegoAndai
|
|
280
|
+
- Fix CHANGELOG vale failure (#45151) @DiegoAndai
|
|
281
|
+
|
|
282
|
+
### Docs
|
|
283
|
+
|
|
284
|
+
- Fix `/base-ui` redirect and prune links (#45083) @mj12albert
|
|
285
|
+
- Add v6 to v7 migration guide (#45143) @DiegoAndai
|
|
286
|
+
|
|
287
|
+
All contributors of this release in alphabetical order: @DiegoAndai, @good-jinu, @harry-whorlow, @Janpot, @joshkel, @mj12albert, @oliviertassinari, @siriwatknp, @ZeeshanTamboli
|
|
288
|
+
|
|
289
|
+
## Older versions
|
|
290
|
+
|
|
291
|
+
Changes before 7.x are listed in our [changelog for older versions](https://github.com/mui/material-ui/blob/HEAD/CHANGELOG.old.md).
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare module '@mui/types' {
|
|
3
|
+
/**
|
|
4
|
+
* A component whose root component can be controlled via a `component` prop.
|
|
5
|
+
*
|
|
6
|
+
* Adjusts valid props based on the type of `component`.
|
|
7
|
+
*/
|
|
8
|
+
interface OverridableComponent<M extends OverridableTypeMap> {
|
|
9
|
+
<C extends React.ElementType>(props: {
|
|
10
|
+
/**
|
|
11
|
+
* The component used for the root node.
|
|
12
|
+
* Either a string to use a HTML element or a component.
|
|
13
|
+
*/
|
|
14
|
+
component: C;
|
|
15
|
+
} & OverridePropsVer2<M, C>): React.JSX.Element;
|
|
16
|
+
(props: DefaultComponentPropsVer2<M>): React.JSX.Element;
|
|
17
|
+
propTypes?: any;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Props of the component if `component={Component}` is used.
|
|
21
|
+
*/
|
|
22
|
+
type OverridePropsVer2<M extends OverridableTypeMap, C extends React.ElementType> = (BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<C>, keyof BaseProps<M>> & {
|
|
23
|
+
ref?: React.Ref<Element>;
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* Props if `component={Component}` is NOT used.
|
|
27
|
+
*/
|
|
28
|
+
type DefaultComponentPropsVer2<M extends OverridableTypeMap> = BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<M['defaultComponent']>, keyof BaseProps<M>> & {
|
|
29
|
+
ref?: React.Ref<Element>;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare module '@mui/types' {
|
|
3
|
+
/**
|
|
4
|
+
* A component whose root component can be controlled via a `component` prop.
|
|
5
|
+
*
|
|
6
|
+
* Adjusts valid props based on the type of `component`.
|
|
7
|
+
*/
|
|
8
|
+
interface OverridableComponent<M extends OverridableTypeMap> {
|
|
9
|
+
<C extends React.ElementType>(props: {
|
|
10
|
+
/**
|
|
11
|
+
* The component used for the root node.
|
|
12
|
+
* Either a string to use a HTML element or a component.
|
|
13
|
+
*/
|
|
14
|
+
component: C;
|
|
15
|
+
} & OverridePropsVer2<M, C>): React.JSX.Element;
|
|
16
|
+
(props: DefaultComponentPropsVer2<M>): React.JSX.Element;
|
|
17
|
+
propTypes?: any;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Props of the component if `component={Component}` is used.
|
|
21
|
+
*/
|
|
22
|
+
type OverridePropsVer2<M extends OverridableTypeMap, C extends React.ElementType> = (BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<C>, keyof BaseProps<M>> & {
|
|
23
|
+
ref?: React.Ref<Element>;
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* Props if `component={Component}` is NOT used.
|
|
27
|
+
*/
|
|
28
|
+
type DefaultComponentPropsVer2<M extends OverridableTypeMap> = BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<M['defaultComponent']>, keyof BaseProps<M>> & {
|
|
29
|
+
ref?: React.Ref<Element>;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/esm/index.d.ts
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export {};
|
|
3
|
+
/**
|
|
4
|
+
* `T extends ConsistentWith<T, U>` means that where `T` has overlapping properties with
|
|
5
|
+
* `U`, their value types do not conflict.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export type ConsistentWith<DecorationTargetProps, InjectedProps> = { [P in keyof DecorationTargetProps]: P extends keyof InjectedProps ? InjectedProps[P] extends DecorationTargetProps[P] ? DecorationTargetProps[P] : InjectedProps[P] : DecorationTargetProps[P] };
|
|
10
|
+
/**
|
|
11
|
+
* a function that takes {component} and returns a component that passes along
|
|
12
|
+
* all the props to {component} except the {InjectedProps} and will accept
|
|
13
|
+
* additional {AdditionalProps}
|
|
14
|
+
*/
|
|
15
|
+
export type PropInjector<InjectedProps, AdditionalProps = {}> = <C extends React.JSXElementConstructor<ConsistentWith<React.ComponentProps<C>, InjectedProps>>>(component: C) => React.JSXElementConstructor<DistributiveOmit<React.JSX.LibraryManagedAttributes<C, React.ComponentProps<C>>, keyof InjectedProps> & AdditionalProps>;
|
|
16
|
+
/**
|
|
17
|
+
* Remove properties `K` from `T`.
|
|
18
|
+
* Distributive for union types.
|
|
19
|
+
*
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export type DistributiveOmit<T, K extends keyof any> = T extends any ? Omit<T, K> : never;
|
|
23
|
+
/**
|
|
24
|
+
* Generate a set of string literal types with the given default record `T` and
|
|
25
|
+
* override record `U`.
|
|
26
|
+
*
|
|
27
|
+
* If the property value was `true`, the property key will be added to the
|
|
28
|
+
* string union.
|
|
29
|
+
*
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
export type OverridableStringUnion<T extends string | number, U = {}> = GenerateStringUnion<Overwrite<Record<T, true>, U>>;
|
|
33
|
+
/**
|
|
34
|
+
* Like `T & U`, but using the value types from `U` where their properties overlap.
|
|
35
|
+
*
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
export type Overwrite<T, U> = DistributiveOmit<T, keyof U> & U;
|
|
39
|
+
type GenerateStringUnion<T> = Extract<{ [Key in keyof T]: true extends T[Key] ? Key : never }[keyof T], string>;
|
|
40
|
+
export type IfEquals<T, U, Y = unknown, N = never> = (<G>() => G extends T ? 1 : 2) extends (<G>() => G extends U ? 1 : 2) ? Y : N;
|
|
41
|
+
/**
|
|
42
|
+
* Issues a type error if `Expected` is not identical to `Actual`.
|
|
43
|
+
*
|
|
44
|
+
* `Expected` should be declared when invoking `expectType`.
|
|
45
|
+
* `Actual` should almost always we be a `typeof value` statement.
|
|
46
|
+
*
|
|
47
|
+
* @example `expectType<number | string, typeof value>(value)`
|
|
48
|
+
* TypeScript issues a type error since `value is not assignable to never`.
|
|
49
|
+
* This means `typeof value` is not identical to `number | string`
|
|
50
|
+
* @param actual
|
|
51
|
+
*/
|
|
52
|
+
export declare function expectType<Expected, Actual>(actual: IfEquals<Actual, Expected, Actual>): void;
|
|
53
|
+
/**
|
|
54
|
+
* A component whose root component can be controlled via a `component` prop.
|
|
55
|
+
*
|
|
56
|
+
* Adjusts valid props based on the type of `component`.
|
|
57
|
+
*/
|
|
58
|
+
export interface OverridableComponent<M extends OverridableTypeMap> {
|
|
59
|
+
<C extends React.ElementType>(props: {
|
|
60
|
+
/**
|
|
61
|
+
* The component used for the root node.
|
|
62
|
+
* Either a string to use a HTML element or a component.
|
|
63
|
+
*/
|
|
64
|
+
component: C;
|
|
65
|
+
} & OverrideProps<M, C>): React.JSX.Element | null;
|
|
66
|
+
(props: DefaultComponentProps<M>): React.JSX.Element | null;
|
|
67
|
+
propTypes?: any;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Props of the component if `component={Component}` is used.
|
|
71
|
+
*/
|
|
72
|
+
export type OverrideProps<M extends OverridableTypeMap, C extends React.ElementType> = (BaseProps<M> & DistributiveOmit<React.ComponentPropsWithRef<C>, keyof BaseProps<M>>);
|
|
73
|
+
/**
|
|
74
|
+
* Props if `component={Component}` is NOT used.
|
|
75
|
+
*/
|
|
76
|
+
export type DefaultComponentProps<M extends OverridableTypeMap> = BaseProps<M> & DistributiveOmit<React.ComponentPropsWithRef<M['defaultComponent']>, keyof BaseProps<M>>;
|
|
77
|
+
/**
|
|
78
|
+
* Props defined on the component.
|
|
79
|
+
*/
|
|
80
|
+
export type BaseProps<M extends OverridableTypeMap> = M['props'];
|
|
81
|
+
export interface OverridableTypeMap {
|
|
82
|
+
props: {};
|
|
83
|
+
defaultComponent: React.ElementType;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Simplifies the display of a type (without modifying it).
|
|
87
|
+
* Taken from https://effectivetypescript.com/2022/02/25/gentips-4-display/
|
|
88
|
+
*/
|
|
89
|
+
export type Simplify<T> = T extends Function ? T : { [K in keyof T]: T[K] };
|
|
90
|
+
/**
|
|
91
|
+
* Changes the properties K from T to required
|
|
92
|
+
*/
|
|
93
|
+
export type PartiallyRequired<T, K extends keyof T> = DistributiveOmit<T, K> & { [P in K]-?: T[P] };
|
package/esm/index.js
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @mui/types v7.3.0
|
|
3
|
+
*
|
|
4
|
+
* @license MIT
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
// disable automatic export
|
|
9
|
+
export {};
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* `T extends ConsistentWith<T, U>` means that where `T` has overlapping properties with
|
|
13
|
+
* `U`, their value types do not conflict.
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* a function that takes {component} and returns a component that passes along
|
|
20
|
+
* all the props to {component} except the {InjectedProps} and will accept
|
|
21
|
+
* additional {AdditionalProps}
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Remove properties `K` from `T`.
|
|
26
|
+
* Distributive for union types.
|
|
27
|
+
*
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Generate a set of string literal types with the given default record `T` and
|
|
33
|
+
* override record `U`.
|
|
34
|
+
*
|
|
35
|
+
* If the property value was `true`, the property key will be added to the
|
|
36
|
+
* string union.
|
|
37
|
+
*
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Like `T & U`, but using the value types from `U` where their properties overlap.
|
|
43
|
+
*
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
// https://stackoverflow.com/questions/53807517/how-to-test-if-two-types-are-exactly-the-same
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Issues a type error if `Expected` is not identical to `Actual`.
|
|
51
|
+
*
|
|
52
|
+
* `Expected` should be declared when invoking `expectType`.
|
|
53
|
+
* `Actual` should almost always we be a `typeof value` statement.
|
|
54
|
+
*
|
|
55
|
+
* @example `expectType<number | string, typeof value>(value)`
|
|
56
|
+
* TypeScript issues a type error since `value is not assignable to never`.
|
|
57
|
+
* This means `typeof value` is not identical to `number | string`
|
|
58
|
+
* @param actual
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* A component whose root component can be controlled via a `component` prop.
|
|
63
|
+
*
|
|
64
|
+
* Adjusts valid props based on the type of `component`.
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Props of the component if `component={Component}` is used.
|
|
69
|
+
*/
|
|
70
|
+
// prettier-ignore
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Props if `component={Component}` is NOT used.
|
|
74
|
+
*/
|
|
75
|
+
// prettier-ignore
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Props defined on the component.
|
|
79
|
+
*/
|
|
80
|
+
// prettier-ignore
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Simplifies the display of a type (without modifying it).
|
|
84
|
+
* Taken from https://effectivetypescript.com/2022/02/25/gentips-4-display/
|
|
85
|
+
*/
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Changes the properties K from T to required
|
|
89
|
+
*/
|
package/esm/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module","sideEffects":false}
|
package/index.d.ts
CHANGED
|
@@ -1,39 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
// disable automatic export
|
|
4
2
|
export {};
|
|
5
|
-
|
|
6
3
|
/**
|
|
7
4
|
* `T extends ConsistentWith<T, U>` means that where `T` has overlapping properties with
|
|
8
5
|
* `U`, their value types do not conflict.
|
|
9
6
|
*
|
|
10
7
|
* @internal
|
|
11
8
|
*/
|
|
12
|
-
export type ConsistentWith<DecorationTargetProps, InjectedProps> = {
|
|
13
|
-
[P in keyof DecorationTargetProps]: P extends keyof InjectedProps
|
|
14
|
-
? InjectedProps[P] extends DecorationTargetProps[P]
|
|
15
|
-
? DecorationTargetProps[P]
|
|
16
|
-
: InjectedProps[P]
|
|
17
|
-
: DecorationTargetProps[P];
|
|
18
|
-
};
|
|
19
|
-
|
|
9
|
+
export type ConsistentWith<DecorationTargetProps, InjectedProps> = { [P in keyof DecorationTargetProps]: P extends keyof InjectedProps ? InjectedProps[P] extends DecorationTargetProps[P] ? DecorationTargetProps[P] : InjectedProps[P] : DecorationTargetProps[P] };
|
|
20
10
|
/**
|
|
21
11
|
* a function that takes {component} and returns a component that passes along
|
|
22
12
|
* all the props to {component} except the {InjectedProps} and will accept
|
|
23
13
|
* additional {AdditionalProps}
|
|
24
14
|
*/
|
|
25
|
-
export type PropInjector<InjectedProps, AdditionalProps = {}> = <
|
|
26
|
-
C extends React.JSXElementConstructor<ConsistentWith<React.ComponentProps<C>, InjectedProps>>,
|
|
27
|
-
>(
|
|
28
|
-
component: C,
|
|
29
|
-
) => React.JSXElementConstructor<
|
|
30
|
-
DistributiveOmit<
|
|
31
|
-
React.JSX.LibraryManagedAttributes<C, React.ComponentProps<C>>,
|
|
32
|
-
keyof InjectedProps
|
|
33
|
-
> &
|
|
34
|
-
AdditionalProps
|
|
35
|
-
>;
|
|
36
|
-
|
|
15
|
+
export type PropInjector<InjectedProps, AdditionalProps = {}> = <C extends React.JSXElementConstructor<ConsistentWith<React.ComponentProps<C>, InjectedProps>>>(component: C) => React.JSXElementConstructor<DistributiveOmit<React.JSX.LibraryManagedAttributes<C, React.ComponentProps<C>>, keyof InjectedProps> & AdditionalProps>;
|
|
37
16
|
/**
|
|
38
17
|
* Remove properties `K` from `T`.
|
|
39
18
|
* Distributive for union types.
|
|
@@ -41,7 +20,6 @@ export type PropInjector<InjectedProps, AdditionalProps = {}> = <
|
|
|
41
20
|
* @internal
|
|
42
21
|
*/
|
|
43
22
|
export type DistributiveOmit<T, K extends keyof any> = T extends any ? Omit<T, K> : never;
|
|
44
|
-
|
|
45
23
|
/**
|
|
46
24
|
* Generate a set of string literal types with the given default record `T` and
|
|
47
25
|
* override record `U`.
|
|
@@ -51,28 +29,15 @@ export type DistributiveOmit<T, K extends keyof any> = T extends any ? Omit<T, K
|
|
|
51
29
|
*
|
|
52
30
|
* @internal
|
|
53
31
|
*/
|
|
54
|
-
export type OverridableStringUnion<T extends string | number, U = {}> = GenerateStringUnion<
|
|
55
|
-
Overwrite<Record<T, true>, U>
|
|
56
|
-
>;
|
|
57
|
-
|
|
32
|
+
export type OverridableStringUnion<T extends string | number, U = {}> = GenerateStringUnion<Overwrite<Record<T, true>, U>>;
|
|
58
33
|
/**
|
|
59
34
|
* Like `T & U`, but using the value types from `U` where their properties overlap.
|
|
60
35
|
*
|
|
61
36
|
* @internal
|
|
62
37
|
*/
|
|
63
38
|
export type Overwrite<T, U> = DistributiveOmit<T, keyof U> & U;
|
|
64
|
-
|
|
65
|
-
type
|
|
66
|
-
{
|
|
67
|
-
[Key in keyof T]: true extends T[Key] ? Key : never;
|
|
68
|
-
}[keyof T],
|
|
69
|
-
string
|
|
70
|
-
>;
|
|
71
|
-
|
|
72
|
-
// https://stackoverflow.com/questions/53807517/how-to-test-if-two-types-are-exactly-the-same
|
|
73
|
-
export type IfEquals<T, U, Y = unknown, N = never> =
|
|
74
|
-
(<G>() => G extends T ? 1 : 2) extends <G>() => G extends U ? 1 : 2 ? Y : N;
|
|
75
|
-
|
|
39
|
+
type GenerateStringUnion<T> = Extract<{ [Key in keyof T]: true extends T[Key] ? Key : never }[keyof T], string>;
|
|
40
|
+
export type IfEquals<T, U, Y = unknown, N = never> = (<G>() => G extends T ? 1 : 2) extends (<G>() => G extends U ? 1 : 2) ? Y : N;
|
|
76
41
|
/**
|
|
77
42
|
* Issues a type error if `Expected` is not identical to `Actual`.
|
|
78
43
|
*
|
|
@@ -84,71 +49,45 @@ export type IfEquals<T, U, Y = unknown, N = never> =
|
|
|
84
49
|
* This means `typeof value` is not identical to `number | string`
|
|
85
50
|
* @param actual
|
|
86
51
|
*/
|
|
87
|
-
export function expectType<Expected, Actual>(actual: IfEquals<Actual, Expected, Actual>): void;
|
|
88
|
-
|
|
52
|
+
export declare function expectType<Expected, Actual>(actual: IfEquals<Actual, Expected, Actual>): void;
|
|
89
53
|
/**
|
|
90
54
|
* A component whose root component can be controlled via a `component` prop.
|
|
91
55
|
*
|
|
92
56
|
* Adjusts valid props based on the type of `component`.
|
|
93
57
|
*/
|
|
94
58
|
export interface OverridableComponent<M extends OverridableTypeMap> {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
* The component used for the root node.
|
|
103
|
-
* Either a string to use a HTML element or a component.
|
|
104
|
-
*/
|
|
105
|
-
component: C;
|
|
106
|
-
} & OverrideProps<M, C>,
|
|
107
|
-
): React.JSX.Element | null;
|
|
59
|
+
<C extends React.ElementType>(props: {
|
|
60
|
+
/**
|
|
61
|
+
* The component used for the root node.
|
|
62
|
+
* Either a string to use a HTML element or a component.
|
|
63
|
+
*/
|
|
64
|
+
component: C;
|
|
65
|
+
} & OverrideProps<M, C>): React.JSX.Element | null;
|
|
108
66
|
(props: DefaultComponentProps<M>): React.JSX.Element | null;
|
|
109
67
|
propTypes?: any;
|
|
110
68
|
}
|
|
111
|
-
|
|
112
69
|
/**
|
|
113
70
|
* Props of the component if `component={Component}` is used.
|
|
114
71
|
*/
|
|
115
|
-
|
|
116
|
-
export type OverrideProps<
|
|
117
|
-
M extends OverridableTypeMap,
|
|
118
|
-
C extends React.ElementType
|
|
119
|
-
> = (
|
|
120
|
-
& BaseProps<M>
|
|
121
|
-
& DistributiveOmit<React.ComponentPropsWithRef<C>, keyof BaseProps<M>>
|
|
122
|
-
);
|
|
123
|
-
|
|
72
|
+
export type OverrideProps<M extends OverridableTypeMap, C extends React.ElementType> = (BaseProps<M> & DistributiveOmit<React.ComponentPropsWithRef<C>, keyof BaseProps<M>>);
|
|
124
73
|
/**
|
|
125
74
|
* Props if `component={Component}` is NOT used.
|
|
126
75
|
*/
|
|
127
|
-
|
|
128
|
-
export type DefaultComponentProps<M extends OverridableTypeMap> =
|
|
129
|
-
& BaseProps<M>
|
|
130
|
-
& DistributiveOmit<React.ComponentPropsWithRef<M['defaultComponent']>, keyof BaseProps<M>>;
|
|
131
|
-
|
|
76
|
+
export type DefaultComponentProps<M extends OverridableTypeMap> = BaseProps<M> & DistributiveOmit<React.ComponentPropsWithRef<M['defaultComponent']>, keyof BaseProps<M>>;
|
|
132
77
|
/**
|
|
133
78
|
* Props defined on the component.
|
|
134
79
|
*/
|
|
135
|
-
// prettier-ignore
|
|
136
80
|
export type BaseProps<M extends OverridableTypeMap> = M['props'];
|
|
137
|
-
|
|
138
81
|
export interface OverridableTypeMap {
|
|
139
82
|
props: {};
|
|
140
83
|
defaultComponent: React.ElementType;
|
|
141
84
|
}
|
|
142
|
-
|
|
143
85
|
/**
|
|
144
86
|
* Simplifies the display of a type (without modifying it).
|
|
145
87
|
* Taken from https://effectivetypescript.com/2022/02/25/gentips-4-display/
|
|
146
88
|
*/
|
|
147
89
|
export type Simplify<T> = T extends Function ? T : { [K in keyof T]: T[K] };
|
|
148
|
-
|
|
149
90
|
/**
|
|
150
91
|
* Changes the properties K from T to required
|
|
151
92
|
*/
|
|
152
|
-
export type PartiallyRequired<T, K extends keyof T> = DistributiveOmit<T, K> & {
|
|
153
|
-
[P in K]-?: T[P];
|
|
154
|
-
};
|
|
93
|
+
export type PartiallyRequired<T, K extends keyof T> = DistributiveOmit<T, K> & { [P in K]-?: T[P] };
|
package/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @mui/types v7.3.0
|
|
3
|
+
*
|
|
4
|
+
* @license MIT
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
"use strict";
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "__esModule", {
|
|
11
|
+
value: true
|
|
12
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare module '@mui/types' {
|
|
3
|
+
/**
|
|
4
|
+
* A component whose root component can be controlled via a `component` prop.
|
|
5
|
+
*
|
|
6
|
+
* Adjusts valid props based on the type of `component`.
|
|
7
|
+
*/
|
|
8
|
+
interface OverridableComponent<M extends OverridableTypeMap> {
|
|
9
|
+
<C extends React.ElementType>(props: {
|
|
10
|
+
/**
|
|
11
|
+
* The component used for the root node.
|
|
12
|
+
* Either a string to use a HTML element or a component.
|
|
13
|
+
*/
|
|
14
|
+
component: C;
|
|
15
|
+
} & OverridePropsVer2<M, C>): React.JSX.Element;
|
|
16
|
+
(props: DefaultComponentPropsVer2<M>): React.JSX.Element;
|
|
17
|
+
propTypes?: any;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Props of the component if `component={Component}` is used.
|
|
21
|
+
*/
|
|
22
|
+
type OverridePropsVer2<M extends OverridableTypeMap, C extends React.ElementType> = (BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<C>, keyof BaseProps<M>> & {
|
|
23
|
+
ref?: React.Ref<Element>;
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* Props if `component={Component}` is NOT used.
|
|
27
|
+
*/
|
|
28
|
+
type DefaultComponentPropsVer2<M extends OverridableTypeMap> = BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<M['defaultComponent']>, keyof BaseProps<M>> & {
|
|
29
|
+
ref?: React.Ref<Element>;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export {};
|
|
3
|
+
/**
|
|
4
|
+
* `T extends ConsistentWith<T, U>` means that where `T` has overlapping properties with
|
|
5
|
+
* `U`, their value types do not conflict.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export type ConsistentWith<DecorationTargetProps, InjectedProps> = { [P in keyof DecorationTargetProps]: P extends keyof InjectedProps ? InjectedProps[P] extends DecorationTargetProps[P] ? DecorationTargetProps[P] : InjectedProps[P] : DecorationTargetProps[P] };
|
|
10
|
+
/**
|
|
11
|
+
* a function that takes {component} and returns a component that passes along
|
|
12
|
+
* all the props to {component} except the {InjectedProps} and will accept
|
|
13
|
+
* additional {AdditionalProps}
|
|
14
|
+
*/
|
|
15
|
+
export type PropInjector<InjectedProps, AdditionalProps = {}> = <C extends React.JSXElementConstructor<ConsistentWith<React.ComponentProps<C>, InjectedProps>>>(component: C) => React.JSXElementConstructor<DistributiveOmit<React.JSX.LibraryManagedAttributes<C, React.ComponentProps<C>>, keyof InjectedProps> & AdditionalProps>;
|
|
16
|
+
/**
|
|
17
|
+
* Remove properties `K` from `T`.
|
|
18
|
+
* Distributive for union types.
|
|
19
|
+
*
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export type DistributiveOmit<T, K extends keyof any> = T extends any ? Omit<T, K> : never;
|
|
23
|
+
/**
|
|
24
|
+
* Generate a set of string literal types with the given default record `T` and
|
|
25
|
+
* override record `U`.
|
|
26
|
+
*
|
|
27
|
+
* If the property value was `true`, the property key will be added to the
|
|
28
|
+
* string union.
|
|
29
|
+
*
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
export type OverridableStringUnion<T extends string | number, U = {}> = GenerateStringUnion<Overwrite<Record<T, true>, U>>;
|
|
33
|
+
/**
|
|
34
|
+
* Like `T & U`, but using the value types from `U` where their properties overlap.
|
|
35
|
+
*
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
export type Overwrite<T, U> = DistributiveOmit<T, keyof U> & U;
|
|
39
|
+
type GenerateStringUnion<T> = Extract<{ [Key in keyof T]: true extends T[Key] ? Key : never }[keyof T], string>;
|
|
40
|
+
export type IfEquals<T, U, Y = unknown, N = never> = (<G>() => G extends T ? 1 : 2) extends (<G>() => G extends U ? 1 : 2) ? Y : N;
|
|
41
|
+
/**
|
|
42
|
+
* Issues a type error if `Expected` is not identical to `Actual`.
|
|
43
|
+
*
|
|
44
|
+
* `Expected` should be declared when invoking `expectType`.
|
|
45
|
+
* `Actual` should almost always we be a `typeof value` statement.
|
|
46
|
+
*
|
|
47
|
+
* @example `expectType<number | string, typeof value>(value)`
|
|
48
|
+
* TypeScript issues a type error since `value is not assignable to never`.
|
|
49
|
+
* This means `typeof value` is not identical to `number | string`
|
|
50
|
+
* @param actual
|
|
51
|
+
*/
|
|
52
|
+
export declare function expectType<Expected, Actual>(actual: IfEquals<Actual, Expected, Actual>): void;
|
|
53
|
+
/**
|
|
54
|
+
* A component whose root component can be controlled via a `component` prop.
|
|
55
|
+
*
|
|
56
|
+
* Adjusts valid props based on the type of `component`.
|
|
57
|
+
*/
|
|
58
|
+
export interface OverridableComponent<M extends OverridableTypeMap> {
|
|
59
|
+
<C extends React.ElementType>(props: {
|
|
60
|
+
/**
|
|
61
|
+
* The component used for the root node.
|
|
62
|
+
* Either a string to use a HTML element or a component.
|
|
63
|
+
*/
|
|
64
|
+
component: C;
|
|
65
|
+
} & OverrideProps<M, C>): React.JSX.Element | null;
|
|
66
|
+
(props: DefaultComponentProps<M>): React.JSX.Element | null;
|
|
67
|
+
propTypes?: any;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Props of the component if `component={Component}` is used.
|
|
71
|
+
*/
|
|
72
|
+
export type OverrideProps<M extends OverridableTypeMap, C extends React.ElementType> = (BaseProps<M> & DistributiveOmit<React.ComponentPropsWithRef<C>, keyof BaseProps<M>>);
|
|
73
|
+
/**
|
|
74
|
+
* Props if `component={Component}` is NOT used.
|
|
75
|
+
*/
|
|
76
|
+
export type DefaultComponentProps<M extends OverridableTypeMap> = BaseProps<M> & DistributiveOmit<React.ComponentPropsWithRef<M['defaultComponent']>, keyof BaseProps<M>>;
|
|
77
|
+
/**
|
|
78
|
+
* Props defined on the component.
|
|
79
|
+
*/
|
|
80
|
+
export type BaseProps<M extends OverridableTypeMap> = M['props'];
|
|
81
|
+
export interface OverridableTypeMap {
|
|
82
|
+
props: {};
|
|
83
|
+
defaultComponent: React.ElementType;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Simplifies the display of a type (without modifying it).
|
|
87
|
+
* Taken from https://effectivetypescript.com/2022/02/25/gentips-4-display/
|
|
88
|
+
*/
|
|
89
|
+
export type Simplify<T> = T extends Function ? T : { [K in keyof T]: T[K] };
|
|
90
|
+
/**
|
|
91
|
+
* Changes the properties K from T to required
|
|
92
|
+
*/
|
|
93
|
+
export type PartiallyRequired<T, K extends keyof T> = DistributiveOmit<T, K> & { [P in K]-?: T[P] };
|
package/modern/index.js
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @mui/types v7.3.0
|
|
3
|
+
*
|
|
4
|
+
* @license MIT
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
// disable automatic export
|
|
9
|
+
export {};
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* `T extends ConsistentWith<T, U>` means that where `T` has overlapping properties with
|
|
13
|
+
* `U`, their value types do not conflict.
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* a function that takes {component} and returns a component that passes along
|
|
20
|
+
* all the props to {component} except the {InjectedProps} and will accept
|
|
21
|
+
* additional {AdditionalProps}
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Remove properties `K` from `T`.
|
|
26
|
+
* Distributive for union types.
|
|
27
|
+
*
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Generate a set of string literal types with the given default record `T` and
|
|
33
|
+
* override record `U`.
|
|
34
|
+
*
|
|
35
|
+
* If the property value was `true`, the property key will be added to the
|
|
36
|
+
* string union.
|
|
37
|
+
*
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Like `T & U`, but using the value types from `U` where their properties overlap.
|
|
43
|
+
*
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
// https://stackoverflow.com/questions/53807517/how-to-test-if-two-types-are-exactly-the-same
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Issues a type error if `Expected` is not identical to `Actual`.
|
|
51
|
+
*
|
|
52
|
+
* `Expected` should be declared when invoking `expectType`.
|
|
53
|
+
* `Actual` should almost always we be a `typeof value` statement.
|
|
54
|
+
*
|
|
55
|
+
* @example `expectType<number | string, typeof value>(value)`
|
|
56
|
+
* TypeScript issues a type error since `value is not assignable to never`.
|
|
57
|
+
* This means `typeof value` is not identical to `number | string`
|
|
58
|
+
* @param actual
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* A component whose root component can be controlled via a `component` prop.
|
|
63
|
+
*
|
|
64
|
+
* Adjusts valid props based on the type of `component`.
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Props of the component if `component={Component}` is used.
|
|
69
|
+
*/
|
|
70
|
+
// prettier-ignore
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Props if `component={Component}` is NOT used.
|
|
74
|
+
*/
|
|
75
|
+
// prettier-ignore
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Props defined on the component.
|
|
79
|
+
*/
|
|
80
|
+
// prettier-ignore
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Simplifies the display of a type (without modifying it).
|
|
84
|
+
* Taken from https://effectivetypescript.com/2022/02/25/gentips-4-display/
|
|
85
|
+
*/
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Changes the properties K from T to required
|
|
89
|
+
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module","sideEffects":false}
|
package/package.json
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/types",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "Utility types for MUI.",
|
|
7
7
|
"types": "./index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"index.d.ts",
|
|
10
|
-
"OverridableComponentAugmentation.ts"
|
|
11
|
-
],
|
|
12
8
|
"keywords": [
|
|
13
9
|
"react",
|
|
14
10
|
"react-component",
|
|
@@ -30,6 +26,9 @@
|
|
|
30
26
|
"access": "public",
|
|
31
27
|
"directory": "build"
|
|
32
28
|
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@babel/runtime": "^7.26.9"
|
|
31
|
+
},
|
|
33
32
|
"peerDependencies": {
|
|
34
33
|
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
35
34
|
},
|
|
@@ -37,5 +36,38 @@
|
|
|
37
36
|
"@types/react": {
|
|
38
37
|
"optional": true
|
|
39
38
|
}
|
|
39
|
+
},
|
|
40
|
+
"exports": {
|
|
41
|
+
"./package.json": "./package.json",
|
|
42
|
+
".": {
|
|
43
|
+
"require": {
|
|
44
|
+
"types": "./index.d.ts",
|
|
45
|
+
"default": "./index.js"
|
|
46
|
+
},
|
|
47
|
+
"import": {
|
|
48
|
+
"types": "./esm/index.d.ts",
|
|
49
|
+
"default": "./esm/index.js"
|
|
50
|
+
},
|
|
51
|
+
"mui-modern": {
|
|
52
|
+
"types": "./modern/index.d.ts",
|
|
53
|
+
"default": "./modern/index.js"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"./*": {
|
|
57
|
+
"require": {
|
|
58
|
+
"types": "./*/index.d.ts",
|
|
59
|
+
"default": "./*/index.js"
|
|
60
|
+
},
|
|
61
|
+
"import": {
|
|
62
|
+
"types": "./esm/*/index.d.ts",
|
|
63
|
+
"default": "./esm/*/index.js"
|
|
64
|
+
},
|
|
65
|
+
"mui-modern": {
|
|
66
|
+
"types": "./modern/*/index.d.ts",
|
|
67
|
+
"default": "./modern/*/index.js"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"./esm": null,
|
|
71
|
+
"./modern": null
|
|
40
72
|
}
|
|
41
73
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/@types+react@19.0.10/node_modules/@types/react/global.d.ts","../../../node_modules/.pnpm/csstype@3.1.3/node_modules/csstype/index.d.ts","../../../node_modules/.pnpm/@types+react@19.0.10/node_modules/@types/react/index.d.ts","../src/overridablecomponentaugmentation.ts","../src/index.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@20.17.24/node_modules/@types/node/index.d.ts","../../../node_modules/.pnpm/@types+mocha@10.0.10/node_modules/@types/mocha/index.d.ts"],"fileIdsList":[[58,100],[58,97,100],[58,99,100],[100],[58,100,105,134],[58,100,101,106,112,113,120,131,142],[58,100,101,102,112,120],[53,54,55,58,100],[58,100,103,143],[58,100,104,105,113,121],[58,100,105,131,139],[58,100,106,108,112,120],[58,99,100,107],[58,100,108,109],[58,100,112],[58,100,110,112],[58,99,100,112],[58,100,112,113,114,131,142],[58,100,112,113,114,127,131,134],[58,95,100,147],[58,100,108,112,115,120,131,142],[58,100,112,113,115,116,120,131,139,142],[58,100,115,117,131,139,142],[56,57,58,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148],[58,100,112,118],[58,100,119,142,147],[58,100,108,112,120,131],[58,100,121],[58,100,122],[58,99,100,123],[58,97,98,99,100,101,102,103,104,105,106,107,108,109,110,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148],[58,100,125],[58,100,126],[58,100,112,127,128],[58,100,127,129,143,145],[58,100,112,131,132,134],[58,100,131,133],[58,100,131,132],[58,100,134],[58,100,135],[58,97,100,131],[58,100,112,137,138],[58,100,137,138],[58,100,105,120,131,139],[58,100,140],[58,100,120,141],[58,100,115,126,142],[58,100,105,143],[58,100,131,144],[58,100,119,145],[58,100,146],[58,100,105,112,114,123,131,142,145,147],[58,100,131,148],[48,49,58,100],[58,67,71,100,142],[58,67,100,131,142],[58,62,100],[58,64,67,100,139,142],[58,100,120,139],[58,100,149],[58,62,100,149],[58,64,67,100,120,142],[58,59,60,63,66,100,112,131,142],[58,67,74,100],[58,59,65,100],[58,67,88,89,100],[58,63,67,100,134,142,149],[58,88,100,149],[58,61,62,100,149],[58,67,100],[58,61,62,63,64,65,66,67,68,69,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,89,90,91,92,93,94,100],[58,67,82,100],[58,67,74,75,100],[58,65,67,75,76,100],[58,66,100],[58,59,62,67,100],[58,67,71,75,76,100],[58,71,100],[58,65,67,70,100,142],[58,59,64,67,74,100],[58,100,131],[58,62,67,88,100,147,149],[50,58,100],[50,52,58,100]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"69e65d976bf166ce4a9e6f6c18f94d2424bf116e90837ace179610dbccad9b42","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"36a2e4c9a67439aca5f91bb304611d5ae6e20d420503e96c230cf8fcdc948d94","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"51409be337d5cdf32915ace99a4c49bf62dbc124a49135120dfdff73236b0bad","impliedFormat":1},{"version":"bf2877a7aed1b24ca886a53f5251ac1489cf6c3170f702d6db82e06b83f6dc8b","signature":"e3a01dd2e6f4153727fd9a1afc96fb1d4bf310cced90b6e26792cb8e6d6b947f"},{"version":"2dfbac2f78e4a77654f5d4a5cdc699c50f1d02ceb4d08c6dda062984704423fe","signature":"72ec5bba035c4df28698f5de2062d2aff8ff21515b63c9749e04356e635f8741"},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"6b80c6175da9de59bace50a72c2d68490d4ab5b07016ff5367bc7ba33cf2f219","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"4d2b0eb911816f66abe4970898f97a2cfc902bcd743cbfa5017fad79f7ef90d8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","impliedFormat":1},{"version":"24b8685c62562f5d98615c5a0c1d05f297cf5065f15246edfe99e81ec4c0e011","impliedFormat":1},{"version":"93507c745e8f29090efb99399c3f77bec07db17acd75634249dc92f961573387","impliedFormat":1},{"version":"339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"08faa97886e71757779428dd4c69a545c32c85fd629d1116d42710b32c6378bc","affectsGlobalScope":true,"impliedFormat":1},{"version":"6b042aa5d277ad6963e2837179fd2f8fbb01968ac67115b0833c0244e93d1d50","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"3d77c73be94570813f8cadd1f05ebc3dc5e2e4fdefe4d340ca20cd018724ee36","impliedFormat":1},{"version":"23cfd70b42094e54cc3c5dab996d81b97e2b6f38ccb24ead85454b8ddfe2fc4f","affectsGlobalScope":true,"impliedFormat":1},{"version":"f3e58c4c18a031cbb17abec7a4ad0bd5ae9fc70c1f4ba1e7fb921ad87c504aca","impliedFormat":1},{"version":"a3e8bafb2af8e850c644f4be7f5156cf7d23b7bfdc3b786bd4d10ed40329649c","impliedFormat":1},{"version":"35ec8b6760fd7138bbf5809b84551e31028fb2ba7b6dc91d95d098bf212ca8b4","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4b87f767c7bc841511113c876a6b8bf1fd0cb0b718c888ad84478b372ec486b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d04e3640dd9eb67f7f1e5bd3d0bf96c784666f7aefc8ac1537af6f2d38d4c29","impliedFormat":1},{"version":"3c884d9d9ec454bdf0d5a0b8465bf8297d2caa4d853851d92cc417ac6f30b969","impliedFormat":1},{"version":"5a369483ac4cfbdf0331c248deeb36140e6907db5e1daed241546b4a2055f82c","impliedFormat":1},{"version":"e8f5b5cc36615c17d330eaf8eebbc0d6bdd942c25991f96ef122f246f4ff722f","impliedFormat":1},{"version":"f0bd7e6d931657b59605c44112eaf8b980ba7f957a5051ed21cb93d978cf2f45","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"0ada07543808f3b967624645a8e1ccd446f8b01ade47842acf1328aec899fed0","affectsGlobalScope":true,"impliedFormat":1},{"version":"c4a806152acbef81593f96cae6f2b04784d776457d97adbe2694478b243fcf03","impliedFormat":1},{"version":"71adf5dbc59568663d252a46179e71e4d544c053978bfc526d11543a3f716f42","impliedFormat":1},{"version":"c60db41f7bee80fb80c0b12819f5e465c8c8b465578da43e36d04f4a4646f57d","impliedFormat":1},{"version":"93bd413918fa921c8729cef45302b24d8b6c7855d72d5bf82d3972595ae8dcbf","impliedFormat":1},{"version":"4ff41188773cbf465807dd2f7059c7494cbee5115608efc297383832a1150c43","impliedFormat":1},{"version":"dccdf1677e531e33f8ac961a68bc537418c9a414797c1ea7e91307501cdc3f5e","impliedFormat":1},{"version":"e184c4b8918ef56c8c9e68bd79f3f3780e2d0d75bf2b8a41da1509a40c2deb46","affectsGlobalScope":true,"impliedFormat":1},{"version":"d206b4baf4ddcc15d9d69a9a2f4999a72a2c6adeaa8af20fa7a9960816287555","impliedFormat":1},{"version":"93f437e1398a4f06a984f441f7fa7a9f0535c04399619b5c22e0b87bdee182cb","impliedFormat":1},{"version":"afbe24ab0d74694372baa632ecb28bb375be53f3be53f9b07ecd7fc994907de5","impliedFormat":1},{"version":"70731d10d5311bd4cf710ef7f6539b62660f4b0bfdbb3f9fbe1d25fe6366a7fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"6b19db3600a17af69d4f33d08cc7076a7d19fb65bb36e442cac58929ec7c9482","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e043a1bc8fbf2a255bccf9bf27e0f1caf916c3b0518ea34aa72357c0afd42ec","impliedFormat":1},{"version":"137c2894e8f3e9672d401cc0a305dc7b1db7c69511cf6d3970fb53302f9eae09","impliedFormat":1},{"version":"3bc2f1e2c95c04048212c569ed38e338873f6a8593930cf5a7ef24ffb38fc3b6","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"f9d9d753d430ed050dc1bf2667a1bab711ccbb1c1507183d794cc195a5b085cc","impliedFormat":1},{"version":"9eece5e586312581ccd106d4853e861aaaa1a39f8e3ea672b8c3847eedd12f6e","impliedFormat":1},{"version":"ba1f814c22fd970255ddd60d61fb7e00c28271c933ab5d5cc19cd3ca66b8f57c","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"295f068af94245ee9d780555351bef98adfd58f8baf0b9dadbc31a489b881f8b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1851a3b4db78664f83901bb9cac9e45e03a37bb5933cc5bf37e10bb7e91ab4eb","impliedFormat":1},{"version":"09d479208911ac3ac6a7c2fe86217fc1abe6c4f04e2d52e4890e500699eeab32","affectsGlobalScope":true,"impliedFormat":1},{"version":"27d8987fd22d92efe6560cf0ce11767bf089903ffe26047727debfd1f3bf438b","affectsGlobalScope":true,"impliedFormat":1},{"version":"578d8bb6dcb2a1c03c4c3f8eb71abc9677e1a5c788b7f24848e3138ce17f3400","impliedFormat":1},{"version":"4f029899f9bae07e225c43aef893590541b2b43267383bf5e32e3a884d219ed5","impliedFormat":1},{"version":"ae56f65caf3be91108707bd8dfbccc2a57a91feb5daabf7165a06a945545ed26","impliedFormat":1},{"version":"a136d5de521da20f31631a0a96bf712370779d1c05b7015d7019a9b2a0446ca9","impliedFormat":1},{"version":"5b566927cad2ed2139655d55d690ffa87df378b956e7fe1c96024c4d9f75c4cf","affectsGlobalScope":true,"impliedFormat":1},{"version":"bce947017cb7a2deebcc4f5ba04cead891ce6ad1602a4438ae45ed9aa1f39104","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3dffd70e6375b872f0b4e152de4ae682d762c61a24881ecc5eb9f04c5caf76f","impliedFormat":1},{"version":"e2c72c065a36bc9ab2a00ac6a6f51e71501619a72c0609defd304d46610487a4","impliedFormat":1},{"version":"d91a7d8b5655c42986f1bdfe2105c4408f472831c8f20cf11a8c3345b6b56c8c","impliedFormat":1},{"version":"616075a6ac578cf5a013ee12964188b4412823796ce0b202c6f1d2e4ca8480d7","affectsGlobalScope":true,"impliedFormat":1},{"version":"e8a979b8af001c9fc2e774e7809d233c8ca955a28756f52ee5dee88ccb0611d2","impliedFormat":1},{"version":"cac793cc47c29e26e4ac3601dcb00b4435ebed26203485790e44f2ad8b6ad847","impliedFormat":1},{"version":"29f72ec1289ae3aeda78bf14b38086d3d803262ac13904b400422941a26a3636","affectsGlobalScope":true,"impliedFormat":1}],"root":[51,52],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"emitDeclarationOnly":true,"experimentalDecorators":true,"jsx":1,"module":99,"noErrorTruncation":false,"outDir":"./esm","rootDir":"../src","strict":true,"target":9},"referencedMap":[[150,1],[97,2],[98,2],[99,3],[58,4],[100,5],[101,6],[102,7],[53,1],[56,8],[54,1],[55,1],[103,9],[104,10],[105,11],[106,12],[107,13],[108,14],[109,14],[111,15],[110,16],[112,17],[113,18],[114,19],[96,20],[57,1],[115,21],[116,22],[117,23],[149,24],[118,25],[119,26],[120,27],[121,28],[122,29],[123,30],[124,31],[125,32],[126,33],[127,34],[128,34],[129,35],[130,1],[131,36],[133,37],[132,38],[134,39],[135,40],[136,41],[137,42],[138,43],[139,44],[140,45],[141,46],[142,47],[143,48],[144,49],[145,50],[146,51],[147,52],[148,53],[48,1],[50,54],[49,1],[46,1],[47,1],[8,1],[9,1],[11,1],[10,1],[2,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[3,1],[20,1],[21,1],[4,1],[22,1],[26,1],[23,1],[24,1],[25,1],[27,1],[28,1],[29,1],[5,1],[30,1],[31,1],[32,1],[33,1],[6,1],[37,1],[34,1],[35,1],[36,1],[38,1],[7,1],[39,1],[44,1],[45,1],[40,1],[41,1],[42,1],[43,1],[1,1],[74,55],[84,56],[73,55],[94,57],[65,58],[64,59],[93,60],[87,61],[92,62],[67,63],[81,64],[66,65],[90,66],[62,67],[61,60],[91,68],[63,69],[68,70],[69,1],[72,70],[59,1],[95,71],[85,72],[76,73],[77,74],[79,75],[75,76],[78,77],[88,60],[70,78],[71,79],[80,80],[60,81],[83,72],[82,70],[86,1],[89,82],[52,83],[51,84]],"latestChangedDtsFile":"./esm/index.d.ts","version":"5.7.3"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
declare module '@mui/types' {
|
|
4
|
-
/**
|
|
5
|
-
* A component whose root component can be controlled via a `component` prop.
|
|
6
|
-
*
|
|
7
|
-
* Adjusts valid props based on the type of `component`.
|
|
8
|
-
*/
|
|
9
|
-
interface OverridableComponent<M extends OverridableTypeMap> {
|
|
10
|
-
<C extends React.ElementType>(
|
|
11
|
-
props: {
|
|
12
|
-
/**
|
|
13
|
-
* The component used for the root node.
|
|
14
|
-
* Either a string to use a HTML element or a component.
|
|
15
|
-
*/
|
|
16
|
-
component: C;
|
|
17
|
-
} & OverridePropsVer2<M, C>,
|
|
18
|
-
): React.JSX.Element;
|
|
19
|
-
(props: DefaultComponentPropsVer2<M>): React.JSX.Element;
|
|
20
|
-
propTypes?: any;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Props of the component if `component={Component}` is used.
|
|
25
|
-
*/
|
|
26
|
-
// prettier-ignore
|
|
27
|
-
type OverridePropsVer2<
|
|
28
|
-
M extends OverridableTypeMap,
|
|
29
|
-
C extends React.ElementType
|
|
30
|
-
> = (
|
|
31
|
-
& BaseProps<M>
|
|
32
|
-
& DistributiveOmit<React.ComponentPropsWithoutRef<C>, keyof BaseProps<M>>
|
|
33
|
-
& { ref?: React.Ref<Element> }
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Props if `component={Component}` is NOT used.
|
|
38
|
-
*/
|
|
39
|
-
// prettier-ignore
|
|
40
|
-
type DefaultComponentPropsVer2<M extends OverridableTypeMap> =
|
|
41
|
-
& BaseProps<M>
|
|
42
|
-
& DistributiveOmit<React.ComponentPropsWithoutRef<M['defaultComponent']>, keyof BaseProps<M>>
|
|
43
|
-
& { ref?: React.Ref<Element> };
|
|
44
|
-
}
|