@octoguide/mui-ui-toolkit 0.1.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/README.md +231 -0
- package/dist/index.d.mts +759 -0
- package/dist/index.d.ts +759 -0
- package/dist/index.js +1762 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1723 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +65 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,759 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Theme } from '@mui/material/styles';
|
|
4
|
+
import * as _mui_material from '@mui/material';
|
|
5
|
+
import { ButtonProps as ButtonProps$1, ChipProps as ChipProps$1, CardProps as CardProps$1, CardActions as CardActions$1, TextFieldProps as TextFieldProps$1, AlertProps as AlertProps$1, AlertTitleProps as AlertTitleProps$1, AccordionProps as AccordionProps$1, AccordionDetailsProps as AccordionDetailsProps$1, AccordionSummaryProps as AccordionSummaryProps$1, ToggleButtonProps as ToggleButtonProps$1, ToggleButtonGroupProps as ToggleButtonGroupProps$1, Grid2Props, TypographyProps } from '@mui/material';
|
|
6
|
+
export { CardActionsProps, CardHeaderProps } from '@mui/material';
|
|
7
|
+
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
8
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
9
|
+
import * as _mui_material_transitions from '@mui/material/transitions';
|
|
10
|
+
import * as _mui_system from '@mui/system';
|
|
11
|
+
import { AvatarProps as AvatarProps$1 } from '@mui/material/Avatar';
|
|
12
|
+
import { DatePickerProps as DatePickerProps$1 } from '@mui/x-date-pickers/DatePicker';
|
|
13
|
+
import { DesktopDatePickerProps as DesktopDatePickerProps$1 } from '@mui/x-date-pickers/DesktopDatePicker';
|
|
14
|
+
import { MobileDatePickerProps as MobileDatePickerProps$1 } from '@mui/x-date-pickers/MobileDatePicker';
|
|
15
|
+
import { DateFieldProps as DateFieldProps$1 } from '@mui/x-date-pickers/DateField';
|
|
16
|
+
import { StaticDatePickerProps as StaticDatePickerProps$1 } from '@mui/x-date-pickers/StaticDatePicker';
|
|
17
|
+
import { TimePickerProps as TimePickerProps$1 } from '@mui/x-date-pickers/TimePicker';
|
|
18
|
+
import { DesktopTimePickerProps as DesktopTimePickerProps$1 } from '@mui/x-date-pickers/DesktopTimePicker';
|
|
19
|
+
import { MobileTimePickerProps as MobileTimePickerProps$1 } from '@mui/x-date-pickers/MobileTimePicker';
|
|
20
|
+
import { TimeFieldProps as TimeFieldProps$1 } from '@mui/x-date-pickers/TimeField';
|
|
21
|
+
import { StaticTimePickerProps as StaticTimePickerProps$1 } from '@mui/x-date-pickers/StaticTimePicker';
|
|
22
|
+
import { DateTimePickerProps as DateTimePickerProps$1 } from '@mui/x-date-pickers/DateTimePicker';
|
|
23
|
+
import { DesktopDateTimePickerProps as DesktopDateTimePickerProps$1 } from '@mui/x-date-pickers/DesktopDateTimePicker';
|
|
24
|
+
import { MobileDateTimePickerProps as MobileDateTimePickerProps$1 } from '@mui/x-date-pickers/MobileDateTimePicker';
|
|
25
|
+
import { DateTimeFieldProps as DateTimeFieldProps$1 } from '@mui/x-date-pickers/DateTimeField';
|
|
26
|
+
import { StaticDateTimePickerProps as StaticDateTimePickerProps$1 } from '@mui/x-date-pickers/StaticDateTimePicker';
|
|
27
|
+
import { DateCalendarProps as DateCalendarProps$1 } from '@mui/x-date-pickers/DateCalendar';
|
|
28
|
+
import { Dayjs } from 'dayjs';
|
|
29
|
+
export { default as AvatarGroup, AvatarGroupProps } from '@mui/material/AvatarGroup';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* ThemeTokens defines every value used across all components.
|
|
33
|
+
* No component may use a hard-coded CSS value — every value must
|
|
34
|
+
* come from one of these tokens.
|
|
35
|
+
*
|
|
36
|
+
* All themes must fully implement this interface so the compiler
|
|
37
|
+
* enforces completeness.
|
|
38
|
+
*/
|
|
39
|
+
interface ColorTokens {
|
|
40
|
+
primary: string;
|
|
41
|
+
primaryDark: string;
|
|
42
|
+
primaryLight: string;
|
|
43
|
+
primaryContrast: string;
|
|
44
|
+
secondary: string;
|
|
45
|
+
secondaryDark: string;
|
|
46
|
+
secondaryLight: string;
|
|
47
|
+
secondaryContrast: string;
|
|
48
|
+
success: string;
|
|
49
|
+
warning: string;
|
|
50
|
+
error: string;
|
|
51
|
+
info: string;
|
|
52
|
+
background: string;
|
|
53
|
+
backgroundPaper: string;
|
|
54
|
+
backgroundSubtle: string;
|
|
55
|
+
textPrimary: string;
|
|
56
|
+
textSecondary: string;
|
|
57
|
+
textDisabled: string;
|
|
58
|
+
divider: string;
|
|
59
|
+
border: string;
|
|
60
|
+
borderFocus: string;
|
|
61
|
+
overlayLight: string;
|
|
62
|
+
overlayDark: string;
|
|
63
|
+
}
|
|
64
|
+
interface TypographyTokens {
|
|
65
|
+
fontFamilyBase: string;
|
|
66
|
+
fontFamilyMono: string;
|
|
67
|
+
fontSizeXs: string;
|
|
68
|
+
fontSizeSm: string;
|
|
69
|
+
fontSizeMd: string;
|
|
70
|
+
fontSizeLg: string;
|
|
71
|
+
fontSizeXl: string;
|
|
72
|
+
fontSize2xl: string;
|
|
73
|
+
fontSize3xl: string;
|
|
74
|
+
fontWeightLight: number;
|
|
75
|
+
fontWeightRegular: number;
|
|
76
|
+
fontWeightMedium: number;
|
|
77
|
+
fontWeightSemiBold: number;
|
|
78
|
+
fontWeightBold: number;
|
|
79
|
+
lineHeightTight: number;
|
|
80
|
+
lineHeightBase: number;
|
|
81
|
+
lineHeightRelaxed: number;
|
|
82
|
+
letterSpacingTight: string;
|
|
83
|
+
letterSpacingBase: string;
|
|
84
|
+
letterSpacingWide: string;
|
|
85
|
+
}
|
|
86
|
+
interface SpacingTokens {
|
|
87
|
+
/** Base unit in px. All spacing values are multiples of this. */
|
|
88
|
+
unit: number;
|
|
89
|
+
xs: string;
|
|
90
|
+
sm: string;
|
|
91
|
+
md: string;
|
|
92
|
+
lg: string;
|
|
93
|
+
xl: string;
|
|
94
|
+
xxl: string;
|
|
95
|
+
}
|
|
96
|
+
interface BorderRadiusTokens {
|
|
97
|
+
none: string;
|
|
98
|
+
xs: string;
|
|
99
|
+
sm: string;
|
|
100
|
+
md: string;
|
|
101
|
+
lg: string;
|
|
102
|
+
xl: string;
|
|
103
|
+
full: string;
|
|
104
|
+
}
|
|
105
|
+
interface ShadowTokens {
|
|
106
|
+
none: string;
|
|
107
|
+
xs: string;
|
|
108
|
+
sm: string;
|
|
109
|
+
md: string;
|
|
110
|
+
lg: string;
|
|
111
|
+
xl: string;
|
|
112
|
+
}
|
|
113
|
+
interface TransitionTokens {
|
|
114
|
+
durationFast: string;
|
|
115
|
+
durationBase: string;
|
|
116
|
+
durationSlow: string;
|
|
117
|
+
easingDefault: string;
|
|
118
|
+
easingIn: string;
|
|
119
|
+
easingOut: string;
|
|
120
|
+
}
|
|
121
|
+
interface ZIndexTokens {
|
|
122
|
+
base: number;
|
|
123
|
+
dropdown: number;
|
|
124
|
+
sticky: number;
|
|
125
|
+
overlay: number;
|
|
126
|
+
modal: number;
|
|
127
|
+
popover: number;
|
|
128
|
+
toast: number;
|
|
129
|
+
tooltip: number;
|
|
130
|
+
}
|
|
131
|
+
interface ComponentTokens {
|
|
132
|
+
button: {
|
|
133
|
+
paddingX: string;
|
|
134
|
+
paddingY: string;
|
|
135
|
+
paddingXSm: string;
|
|
136
|
+
paddingYSm: string;
|
|
137
|
+
paddingXLg: string;
|
|
138
|
+
paddingYLg: string;
|
|
139
|
+
paddingXXl: string;
|
|
140
|
+
paddingYXl: string;
|
|
141
|
+
fontSizeSm: string;
|
|
142
|
+
fontSizeMd: string;
|
|
143
|
+
fontSizeLg: string;
|
|
144
|
+
heightSm: string;
|
|
145
|
+
heightMd: string;
|
|
146
|
+
heightLg: string;
|
|
147
|
+
heightXl: string;
|
|
148
|
+
borderRadius: string;
|
|
149
|
+
borderWidth: string;
|
|
150
|
+
fontWeight: number;
|
|
151
|
+
letterSpacing: string;
|
|
152
|
+
textTransform: string;
|
|
153
|
+
iconGap: string;
|
|
154
|
+
minWidth: string;
|
|
155
|
+
};
|
|
156
|
+
input: {
|
|
157
|
+
paddingX: string;
|
|
158
|
+
paddingY: string;
|
|
159
|
+
borderRadius: string;
|
|
160
|
+
borderWidth: string;
|
|
161
|
+
borderWidthFocus: string;
|
|
162
|
+
background: string;
|
|
163
|
+
backgroundDisabled: string;
|
|
164
|
+
labelFontSize: string;
|
|
165
|
+
helperFontSize: string;
|
|
166
|
+
minHeight: string;
|
|
167
|
+
};
|
|
168
|
+
card: {
|
|
169
|
+
padding: string;
|
|
170
|
+
paddingCompact: string;
|
|
171
|
+
borderRadius: string;
|
|
172
|
+
borderWidth: string;
|
|
173
|
+
background: string;
|
|
174
|
+
};
|
|
175
|
+
chip: {
|
|
176
|
+
height: string;
|
|
177
|
+
heightSm: string;
|
|
178
|
+
paddingX: string;
|
|
179
|
+
borderRadius: string;
|
|
180
|
+
fontSize: string;
|
|
181
|
+
fontWeight: number;
|
|
182
|
+
iconSize: string;
|
|
183
|
+
};
|
|
184
|
+
badge: {
|
|
185
|
+
height: string;
|
|
186
|
+
minWidth: string;
|
|
187
|
+
paddingX: string;
|
|
188
|
+
borderRadius: string;
|
|
189
|
+
fontSize: string;
|
|
190
|
+
fontWeight: number;
|
|
191
|
+
borderWidth: string;
|
|
192
|
+
};
|
|
193
|
+
tooltip: {
|
|
194
|
+
paddingX: string;
|
|
195
|
+
paddingY: string;
|
|
196
|
+
borderRadius: string;
|
|
197
|
+
fontSize: string;
|
|
198
|
+
maxWidth: string;
|
|
199
|
+
background: string;
|
|
200
|
+
color: string;
|
|
201
|
+
};
|
|
202
|
+
dialog: {
|
|
203
|
+
borderRadius: string;
|
|
204
|
+
padding: string;
|
|
205
|
+
maxWidth: string;
|
|
206
|
+
background: string;
|
|
207
|
+
};
|
|
208
|
+
table: {
|
|
209
|
+
cellPaddingX: string;
|
|
210
|
+
cellPaddingY: string;
|
|
211
|
+
headerFontWeight: number;
|
|
212
|
+
headerBackground: string;
|
|
213
|
+
rowHoverBackground: string;
|
|
214
|
+
borderWidth: string;
|
|
215
|
+
borderColor: string;
|
|
216
|
+
};
|
|
217
|
+
avatar: {
|
|
218
|
+
sizeXs: string;
|
|
219
|
+
sizeSm: string;
|
|
220
|
+
sizeMd: string;
|
|
221
|
+
sizeLg: string;
|
|
222
|
+
sizeXl: string;
|
|
223
|
+
sizeXxl: string;
|
|
224
|
+
borderRadius: string;
|
|
225
|
+
borderRadiusRounded: string;
|
|
226
|
+
groupSpacing: string;
|
|
227
|
+
groupBorderWidth: string;
|
|
228
|
+
};
|
|
229
|
+
divider: {
|
|
230
|
+
thickness: string;
|
|
231
|
+
color: string;
|
|
232
|
+
};
|
|
233
|
+
alert: {
|
|
234
|
+
borderRadius: string;
|
|
235
|
+
padding: string;
|
|
236
|
+
};
|
|
237
|
+
accordion: {
|
|
238
|
+
borderRadius: string;
|
|
239
|
+
standaloneRadius: string;
|
|
240
|
+
summaryPaddingX: string;
|
|
241
|
+
summaryPaddingY: string;
|
|
242
|
+
summaryFontWeight: number;
|
|
243
|
+
detailsPaddingX: string;
|
|
244
|
+
detailsPaddingBottom: string;
|
|
245
|
+
standaloneBackground: string;
|
|
246
|
+
standaloneBackgroundExpanded: string;
|
|
247
|
+
};
|
|
248
|
+
toggleButton: {
|
|
249
|
+
borderRadius: string;
|
|
250
|
+
borderWidth: string;
|
|
251
|
+
paddingXSm: string;
|
|
252
|
+
paddingYSm: string;
|
|
253
|
+
paddingXMd: string;
|
|
254
|
+
paddingYMd: string;
|
|
255
|
+
paddingXLg: string;
|
|
256
|
+
paddingYLg: string;
|
|
257
|
+
fontWeight: number;
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* The complete token set every theme must implement.
|
|
262
|
+
* Import this type when creating a new theme.
|
|
263
|
+
*/
|
|
264
|
+
interface ThemeTokens {
|
|
265
|
+
colors: ColorTokens;
|
|
266
|
+
typography: TypographyTokens;
|
|
267
|
+
spacing: SpacingTokens;
|
|
268
|
+
borderRadius: BorderRadiusTokens;
|
|
269
|
+
shadows: ShadowTokens;
|
|
270
|
+
transitions: TransitionTokens;
|
|
271
|
+
zIndex: ZIndexTokens;
|
|
272
|
+
components: ComponentTokens;
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Recursive partial — every field at every depth is optional.
|
|
276
|
+
* Used for theme overrides so themes only need to specify what
|
|
277
|
+
* differs from the default theme.
|
|
278
|
+
*/
|
|
279
|
+
type DeepPartial<T> = {
|
|
280
|
+
[K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* The shape a theme override file exports.
|
|
284
|
+
* Deep-merged with the default theme at resolution time.
|
|
285
|
+
*/
|
|
286
|
+
type ThemeOverrides = DeepPartial<ThemeTokens>;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* All available theme names. Add a new key here whenever you create a
|
|
290
|
+
* new theme in its own sub-directory.
|
|
291
|
+
*/
|
|
292
|
+
type ThemeName = 'theme1' | 'theme2' | 'cpsTheme';
|
|
293
|
+
/**
|
|
294
|
+
* Each entry is a partial override on top of the default theme.
|
|
295
|
+
* Only brand-specific values need to be listed.
|
|
296
|
+
*/
|
|
297
|
+
declare const themeRegistry: Record<ThemeName, ThemeOverrides>;
|
|
298
|
+
/**
|
|
299
|
+
* Returns the fully resolved token set for the given theme name —
|
|
300
|
+
* the default theme deep-merged with the theme's overrides.
|
|
301
|
+
* Throws at runtime if an unknown name is provided.
|
|
302
|
+
*/
|
|
303
|
+
declare function getThemeTokens(name: ThemeName): ThemeTokens;
|
|
304
|
+
|
|
305
|
+
interface ToolkitThemeProviderProps {
|
|
306
|
+
/**
|
|
307
|
+
* Explicitly override which theme to use.
|
|
308
|
+
*
|
|
309
|
+
* If omitted, the theme is read from the environment variable
|
|
310
|
+
* configured in your app's .env file (VITE_THEME, REACT_APP_THEME,
|
|
311
|
+
* or NEXT_PUBLIC_THEME).
|
|
312
|
+
*
|
|
313
|
+
* Passing this prop is useful in tests, Storybook, or when you want
|
|
314
|
+
* to let a user switch themes at runtime.
|
|
315
|
+
*/
|
|
316
|
+
theme?: ThemeName;
|
|
317
|
+
children: React.ReactNode;
|
|
318
|
+
/**
|
|
319
|
+
* Inject MUI's CssBaseline (recommended for normalizing browser styles).
|
|
320
|
+
* Defaults to true.
|
|
321
|
+
*/
|
|
322
|
+
injectCssBaseline?: boolean;
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Drop-in ThemeProvider for any app using the mui-ui-toolkit.
|
|
326
|
+
*
|
|
327
|
+
* Usage in your app root:
|
|
328
|
+
*
|
|
329
|
+
* // .env
|
|
330
|
+
* VITE_THEME=theme2
|
|
331
|
+
*
|
|
332
|
+
* // main.tsx
|
|
333
|
+
* import { ToolkitThemeProvider } from '@mui-ui-toolkit/core';
|
|
334
|
+
*
|
|
335
|
+
* <ToolkitThemeProvider>
|
|
336
|
+
* <App />
|
|
337
|
+
* </ToolkitThemeProvider>
|
|
338
|
+
*
|
|
339
|
+
* Or to override at runtime (e.g. user preference):
|
|
340
|
+
*
|
|
341
|
+
* <ToolkitThemeProvider theme="theme1">
|
|
342
|
+
* <App />
|
|
343
|
+
* </ToolkitThemeProvider>
|
|
344
|
+
*/
|
|
345
|
+
declare function ToolkitThemeProvider({ theme, children, injectCssBaseline, }: ToolkitThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Takes a ThemeTokens object and produces a fully configured MUI Theme.
|
|
349
|
+
*
|
|
350
|
+
* MUI's own theme properties (palette, typography, shape, shadows, etc.)
|
|
351
|
+
* are derived from our tokens — not from hard-coded values — so that
|
|
352
|
+
* swapping the tokens object swaps the entire visual language.
|
|
353
|
+
*
|
|
354
|
+
* The raw tokens are also attached as `theme.tokens` (via module
|
|
355
|
+
* augmentation in types/mui.d.ts) so components can read any token
|
|
356
|
+
* not already exposed by MUI's built-in theme shape.
|
|
357
|
+
*/
|
|
358
|
+
declare function createMuiTheme(tokens: ThemeTokens): Theme;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Resolves the active theme name from the environment.
|
|
362
|
+
*
|
|
363
|
+
* Priority order (first match wins):
|
|
364
|
+
* 1. VITE_THEME — used by Vite-based apps
|
|
365
|
+
* 2. REACT_APP_THEME — used by Create React App
|
|
366
|
+
* 3. NEXT_PUBLIC_THEME — used by Next.js
|
|
367
|
+
* 4. 'cpsTheme' — hardcoded fallback
|
|
368
|
+
*
|
|
369
|
+
* In your app's .env file, add one of:
|
|
370
|
+
*
|
|
371
|
+
* VITE_THEME=theme2
|
|
372
|
+
* REACT_APP_THEME=theme2
|
|
373
|
+
* NEXT_PUBLIC_THEME=theme2
|
|
374
|
+
*
|
|
375
|
+
* The value must match one of the keys in ThemeName ('theme1' | 'theme2' | …).
|
|
376
|
+
* A typo will throw at runtime when getThemeTokens() is called.
|
|
377
|
+
*/
|
|
378
|
+
declare function resolveThemeName(): ThemeName;
|
|
379
|
+
|
|
380
|
+
interface ButtonProps extends ButtonProps$1 {
|
|
381
|
+
/** Show a loading spinner and disable interaction */
|
|
382
|
+
loading?: boolean;
|
|
383
|
+
}
|
|
384
|
+
declare function Button({ loading, disabled, children, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
385
|
+
declare namespace Button {
|
|
386
|
+
var displayName: string;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
type ChipProps = ChipProps$1;
|
|
390
|
+
/**
|
|
391
|
+
* Chip component extending MUI Chip.
|
|
392
|
+
*
|
|
393
|
+
* Adds a `soft` variant (like Button) and `black`/`white` color options.
|
|
394
|
+
* Uses a custom circular-X delete icon by default when `onDelete` is provided.
|
|
395
|
+
*
|
|
396
|
+
* All visual values come from the active theme's token set — no hard-coded CSS.
|
|
397
|
+
*/
|
|
398
|
+
declare function Chip({ deleteIcon, onDelete, ...props }: ChipProps): react_jsx_runtime.JSX.Element;
|
|
399
|
+
declare namespace Chip {
|
|
400
|
+
var displayName: string;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
interface CardProps extends CardProps$1 {
|
|
404
|
+
/** Use the more compact inner padding variant */
|
|
405
|
+
compact?: boolean;
|
|
406
|
+
}
|
|
407
|
+
declare function Card({ compact, children, ...props }: CardProps): react_jsx_runtime.JSX.Element;
|
|
408
|
+
declare namespace Card {
|
|
409
|
+
var displayName: string;
|
|
410
|
+
}
|
|
411
|
+
declare const CardContent: _mui_material_OverridableComponent.OverridableComponent<_mui_material.CardContentTypeMap<{}, "div">>;
|
|
412
|
+
declare const CardHeader: _mui_material.OverridableCardHeader;
|
|
413
|
+
declare const CardActions: typeof CardActions$1;
|
|
414
|
+
|
|
415
|
+
type TextFieldProps = TextFieldProps$1;
|
|
416
|
+
declare function TextField({ error, FormHelperTextProps, inputProps, label, ...props }: TextFieldProps): react_jsx_runtime.JSX.Element;
|
|
417
|
+
declare namespace TextField {
|
|
418
|
+
var displayName: string;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
type AlertProps = AlertProps$1;
|
|
422
|
+
type AlertTitleProps = AlertTitleProps$1;
|
|
423
|
+
/**
|
|
424
|
+
* Extended Alert.
|
|
425
|
+
*
|
|
426
|
+
* Supports all three MUI variants (standard, filled, outlined) across all
|
|
427
|
+
* four severities (info, success, warning, error). Uses custom minimals-style
|
|
428
|
+
* severity icons by default; override via the `iconMapping` prop.
|
|
429
|
+
*
|
|
430
|
+
* Visual values come from the active theme tokens — no hard-coded CSS.
|
|
431
|
+
*/
|
|
432
|
+
declare function Alert({ iconMapping, ...props }: AlertProps): react_jsx_runtime.JSX.Element;
|
|
433
|
+
declare namespace Alert {
|
|
434
|
+
var displayName: string;
|
|
435
|
+
}
|
|
436
|
+
declare function AlertTitle(props: AlertTitleProps): react_jsx_runtime.JSX.Element;
|
|
437
|
+
declare namespace AlertTitle {
|
|
438
|
+
var displayName: string;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
type AccordionProps = AccordionProps$1;
|
|
442
|
+
type AccordionSummaryProps = AccordionSummaryProps$1;
|
|
443
|
+
type AccordionDetailsProps = AccordionDetailsProps$1;
|
|
444
|
+
/**
|
|
445
|
+
* Standalone accordion variant — each item is its own card with a
|
|
446
|
+
* subtle grey background. Expands to a slightly darker tint.
|
|
447
|
+
* Drop-in replacement for Accordion in contexts where you want
|
|
448
|
+
* independent card-per-item styling.
|
|
449
|
+
*/
|
|
450
|
+
declare const StandaloneAccordion: _emotion_styled.StyledComponent<{
|
|
451
|
+
children: NonNullable<React.ReactNode>;
|
|
452
|
+
classes?: Partial<_mui_material.AccordionClasses>;
|
|
453
|
+
defaultExpanded?: boolean;
|
|
454
|
+
disabled?: boolean;
|
|
455
|
+
disableGutters?: boolean;
|
|
456
|
+
expanded?: boolean;
|
|
457
|
+
onChange?: (event: React.SyntheticEvent, expanded: boolean) => void;
|
|
458
|
+
sx?: _mui_system.SxProps<_mui_material.Theme>;
|
|
459
|
+
TransitionComponent?: React.JSXElementConstructor<_mui_material_transitions.TransitionProps & {
|
|
460
|
+
children?: React.ReactElement<unknown, any>;
|
|
461
|
+
}>;
|
|
462
|
+
TransitionProps?: _mui_material_transitions.TransitionProps;
|
|
463
|
+
} & _mui_material.AccordionSlotsAndSlotProps & Omit<_mui_material.PaperOwnProps, "classes" | "onChange"> & _mui_material_OverridableComponent.CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
464
|
+
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
465
|
+
}, "disabled" | keyof _mui_material_OverridableComponent.CommonProps | "children" | "sx" | "variant" | "onChange" | "elevation" | "square" | "expanded" | "defaultExpanded" | "disableGutters" | "TransitionComponent" | "TransitionProps" | keyof _mui_material.AccordionSlotsAndSlotProps> & _mui_system.MUIStyledCommonProps<_mui_material.Theme>, {}, {}>;
|
|
466
|
+
declare function Accordion(props: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
467
|
+
declare namespace Accordion {
|
|
468
|
+
var displayName: string;
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* Renders the clickable header of an accordion panel.
|
|
472
|
+
*
|
|
473
|
+
* A default expand/collapse chevron is injected automatically; pass
|
|
474
|
+
* `expandIcon` to override it.
|
|
475
|
+
*
|
|
476
|
+
* For reliable screen-reader support, pair `id` on this component with
|
|
477
|
+
* a matching `aria-controls` pointing to the AccordionDetails panel id,
|
|
478
|
+
* or let MUI auto-generate them by passing a consistent `id` to the
|
|
479
|
+
* parent Accordion:
|
|
480
|
+
*
|
|
481
|
+
* <Accordion>
|
|
482
|
+
* <AccordionSummary id="panel1-header" aria-controls="panel1-content">
|
|
483
|
+
* Title
|
|
484
|
+
* </AccordionSummary>
|
|
485
|
+
* <AccordionDetails id="panel1-content">…</AccordionDetails>
|
|
486
|
+
* </Accordion>
|
|
487
|
+
*/
|
|
488
|
+
declare function AccordionSummary({ expandIcon, ...props }: AccordionSummaryProps): react_jsx_runtime.JSX.Element;
|
|
489
|
+
declare namespace AccordionSummary {
|
|
490
|
+
var displayName: string;
|
|
491
|
+
}
|
|
492
|
+
declare function AccordionDetails(props: AccordionDetailsProps): react_jsx_runtime.JSX.Element;
|
|
493
|
+
declare namespace AccordionDetails {
|
|
494
|
+
var displayName: string;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
498
|
+
interface AvatarProps extends Omit<AvatarProps$1, 'ref'> {
|
|
499
|
+
size?: AvatarSize;
|
|
500
|
+
}
|
|
501
|
+
declare function Avatar({ size, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
|
|
502
|
+
|
|
503
|
+
type ToggleButtonProps = ToggleButtonProps$1;
|
|
504
|
+
type ToggleButtonGroupProps = ToggleButtonGroupProps$1;
|
|
505
|
+
declare function ToggleButton(props: ToggleButtonProps): react_jsx_runtime.JSX.Element;
|
|
506
|
+
declare namespace ToggleButton {
|
|
507
|
+
var displayName: string;
|
|
508
|
+
}
|
|
509
|
+
declare function ToggleButtonGroup(props: ToggleButtonGroupProps): react_jsx_runtime.JSX.Element;
|
|
510
|
+
declare namespace ToggleButtonGroup {
|
|
511
|
+
var displayName: string;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
type DatePickerProps = DatePickerProps$1;
|
|
515
|
+
type DesktopDatePickerProps = DesktopDatePickerProps$1;
|
|
516
|
+
type MobileDatePickerProps = MobileDatePickerProps$1;
|
|
517
|
+
type DateFieldProps = DateFieldProps$1;
|
|
518
|
+
type StaticDatePickerProps = StaticDatePickerProps$1;
|
|
519
|
+
type TimePickerProps = TimePickerProps$1;
|
|
520
|
+
type DesktopTimePickerProps = DesktopTimePickerProps$1;
|
|
521
|
+
type MobileTimePickerProps = MobileTimePickerProps$1;
|
|
522
|
+
type TimeFieldProps = TimeFieldProps$1;
|
|
523
|
+
type StaticTimePickerProps = StaticTimePickerProps$1;
|
|
524
|
+
type DateTimePickerProps = DateTimePickerProps$1;
|
|
525
|
+
type DesktopDateTimePickerProps = DesktopDateTimePickerProps$1;
|
|
526
|
+
type MobileDateTimePickerProps = MobileDateTimePickerProps$1;
|
|
527
|
+
type DateTimeFieldProps = DateTimeFieldProps$1;
|
|
528
|
+
type StaticDateTimePickerProps = StaticDateTimePickerProps$1;
|
|
529
|
+
type DateCalendarProps = DateCalendarProps$1;
|
|
530
|
+
interface DateLocalizationProviderProps {
|
|
531
|
+
children: React.ReactNode;
|
|
532
|
+
}
|
|
533
|
+
declare function DateLocalizationProvider({ children }: DateLocalizationProviderProps): react_jsx_runtime.JSX.Element;
|
|
534
|
+
declare namespace DateLocalizationProvider {
|
|
535
|
+
var displayName: string;
|
|
536
|
+
}
|
|
537
|
+
declare function DatePicker(props: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
538
|
+
declare namespace DatePicker {
|
|
539
|
+
var displayName: string;
|
|
540
|
+
}
|
|
541
|
+
declare function DesktopDatePicker(props: DesktopDatePickerProps): react_jsx_runtime.JSX.Element;
|
|
542
|
+
declare namespace DesktopDatePicker {
|
|
543
|
+
var displayName: string;
|
|
544
|
+
}
|
|
545
|
+
declare function MobileDatePicker(props: MobileDatePickerProps): react_jsx_runtime.JSX.Element;
|
|
546
|
+
declare namespace MobileDatePicker {
|
|
547
|
+
var displayName: string;
|
|
548
|
+
}
|
|
549
|
+
declare function DateField(props: DateFieldProps): react_jsx_runtime.JSX.Element;
|
|
550
|
+
declare namespace DateField {
|
|
551
|
+
var displayName: string;
|
|
552
|
+
}
|
|
553
|
+
declare function StaticDatePicker(props: StaticDatePickerProps): react_jsx_runtime.JSX.Element;
|
|
554
|
+
declare namespace StaticDatePicker {
|
|
555
|
+
var displayName: string;
|
|
556
|
+
}
|
|
557
|
+
declare function TimePicker(props: TimePickerProps): react_jsx_runtime.JSX.Element;
|
|
558
|
+
declare namespace TimePicker {
|
|
559
|
+
var displayName: string;
|
|
560
|
+
}
|
|
561
|
+
declare function DesktopTimePicker(props: DesktopTimePickerProps): react_jsx_runtime.JSX.Element;
|
|
562
|
+
declare namespace DesktopTimePicker {
|
|
563
|
+
var displayName: string;
|
|
564
|
+
}
|
|
565
|
+
declare function MobileTimePicker(props: MobileTimePickerProps): react_jsx_runtime.JSX.Element;
|
|
566
|
+
declare namespace MobileTimePicker {
|
|
567
|
+
var displayName: string;
|
|
568
|
+
}
|
|
569
|
+
declare function TimeField(props: TimeFieldProps): react_jsx_runtime.JSX.Element;
|
|
570
|
+
declare namespace TimeField {
|
|
571
|
+
var displayName: string;
|
|
572
|
+
}
|
|
573
|
+
declare function StaticTimePicker(props: StaticTimePickerProps): react_jsx_runtime.JSX.Element;
|
|
574
|
+
declare namespace StaticTimePicker {
|
|
575
|
+
var displayName: string;
|
|
576
|
+
}
|
|
577
|
+
declare function DateTimePicker(props: DateTimePickerProps): react_jsx_runtime.JSX.Element;
|
|
578
|
+
declare namespace DateTimePicker {
|
|
579
|
+
var displayName: string;
|
|
580
|
+
}
|
|
581
|
+
declare function DesktopDateTimePicker(props: DesktopDateTimePickerProps): react_jsx_runtime.JSX.Element;
|
|
582
|
+
declare namespace DesktopDateTimePicker {
|
|
583
|
+
var displayName: string;
|
|
584
|
+
}
|
|
585
|
+
declare function MobileDateTimePicker(props: MobileDateTimePickerProps): react_jsx_runtime.JSX.Element;
|
|
586
|
+
declare namespace MobileDateTimePicker {
|
|
587
|
+
var displayName: string;
|
|
588
|
+
}
|
|
589
|
+
declare function DateTimeField(props: DateTimeFieldProps): react_jsx_runtime.JSX.Element;
|
|
590
|
+
declare namespace DateTimeField {
|
|
591
|
+
var displayName: string;
|
|
592
|
+
}
|
|
593
|
+
declare function StaticDateTimePicker(props: StaticDateTimePickerProps): react_jsx_runtime.JSX.Element;
|
|
594
|
+
declare namespace StaticDateTimePicker {
|
|
595
|
+
var displayName: string;
|
|
596
|
+
}
|
|
597
|
+
declare function DateCalendar(props: DateCalendarProps): react_jsx_runtime.JSX.Element;
|
|
598
|
+
declare namespace DateCalendar {
|
|
599
|
+
var displayName: string;
|
|
600
|
+
}
|
|
601
|
+
interface DateRangeValue {
|
|
602
|
+
start: Dayjs | null;
|
|
603
|
+
end: Dayjs | null;
|
|
604
|
+
}
|
|
605
|
+
interface DateRangePickerInputProps {
|
|
606
|
+
value: DateRangeValue;
|
|
607
|
+
onChange: (value: DateRangeValue) => void;
|
|
608
|
+
startLabel?: string;
|
|
609
|
+
endLabel?: string;
|
|
610
|
+
buttonLabel?: string;
|
|
611
|
+
}
|
|
612
|
+
declare function DateRangePickerInput({ value, onChange, startLabel, endLabel, buttonLabel, }: DateRangePickerInputProps): react_jsx_runtime.JSX.Element;
|
|
613
|
+
declare namespace DateRangePickerInput {
|
|
614
|
+
var displayName: string;
|
|
615
|
+
}
|
|
616
|
+
interface DateRangePickerCalendarProps {
|
|
617
|
+
value: DateRangeValue;
|
|
618
|
+
onChange: (value: DateRangeValue) => void;
|
|
619
|
+
buttonLabel?: string;
|
|
620
|
+
}
|
|
621
|
+
declare function DateRangePickerCalendar({ value, onChange, buttonLabel, }: DateRangePickerCalendarProps): react_jsx_runtime.JSX.Element;
|
|
622
|
+
declare namespace DateRangePickerCalendar {
|
|
623
|
+
var displayName: string;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
type GridProps = Grid2Props;
|
|
627
|
+
/**
|
|
628
|
+
* 12-column layout grid, based on MUI Grid2.
|
|
629
|
+
*
|
|
630
|
+
* Use `container` on the wrapper and `size` on children to set column spans.
|
|
631
|
+
* `size` accepts a number (fixed across all breakpoints) or a responsive
|
|
632
|
+
* object mapping breakpoints to spans:
|
|
633
|
+
*
|
|
634
|
+
* size={6} // 6/12 at all sizes
|
|
635
|
+
* size={{ xs: 12, md: 6 }} // full width → half width
|
|
636
|
+
* size="grow" // fills remaining space
|
|
637
|
+
* size="auto" // shrinks to content
|
|
638
|
+
*
|
|
639
|
+
* Spacing multiplies the theme spacing unit (8px):
|
|
640
|
+
* spacing={1} → 8px gap
|
|
641
|
+
* spacing={2} → 16px gap (default on containers)
|
|
642
|
+
* spacing={3} → 24px gap
|
|
643
|
+
* spacing={4} → 32px gap
|
|
644
|
+
* spacing={5} → 40px gap
|
|
645
|
+
*
|
|
646
|
+
* @example
|
|
647
|
+
* // 2-column layout, 16px gap, stacks on mobile
|
|
648
|
+
* <Grid container spacing={2}>
|
|
649
|
+
* <Grid size={{ xs: 12, md: 6 }}>Left</Grid>
|
|
650
|
+
* <Grid size={{ xs: 12, md: 6 }}>Right</Grid>
|
|
651
|
+
* </Grid>
|
|
652
|
+
*
|
|
653
|
+
* @example
|
|
654
|
+
* // 4-column card grid
|
|
655
|
+
* <Grid container spacing={3}>
|
|
656
|
+
* {items.map((item) => (
|
|
657
|
+
* <Grid key={item.id} size={{ xs: 12, sm: 6, md: 3 }}>
|
|
658
|
+
* <Card>…</Card>
|
|
659
|
+
* </Grid>
|
|
660
|
+
* ))}
|
|
661
|
+
* </Grid>
|
|
662
|
+
*/
|
|
663
|
+
declare function Grid({ container, spacing, ...props }: GridProps): react_jsx_runtime.JSX.Element;
|
|
664
|
+
declare namespace Grid {
|
|
665
|
+
var displayName: string;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
interface H1Props extends Omit<TypographyProps, 'variant'> {
|
|
669
|
+
}
|
|
670
|
+
declare function H1({ color, children, ...props }: H1Props): react_jsx_runtime.JSX.Element;
|
|
671
|
+
declare namespace H1 {
|
|
672
|
+
var displayName: string;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
interface H2Props extends Omit<TypographyProps, 'variant'> {
|
|
676
|
+
}
|
|
677
|
+
declare function H2({ color, children, ...props }: H2Props): react_jsx_runtime.JSX.Element;
|
|
678
|
+
declare namespace H2 {
|
|
679
|
+
var displayName: string;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
interface H3Props extends Omit<TypographyProps, 'variant'> {
|
|
683
|
+
}
|
|
684
|
+
declare function H3({ color, children, ...props }: H3Props): react_jsx_runtime.JSX.Element;
|
|
685
|
+
declare namespace H3 {
|
|
686
|
+
var displayName: string;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
interface H4Props extends Omit<TypographyProps, 'variant'> {
|
|
690
|
+
}
|
|
691
|
+
declare function H4({ color, children, ...props }: H4Props): react_jsx_runtime.JSX.Element;
|
|
692
|
+
declare namespace H4 {
|
|
693
|
+
var displayName: string;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
interface H5Props extends Omit<TypographyProps, 'variant'> {
|
|
697
|
+
}
|
|
698
|
+
declare function H5({ color, children, ...props }: H5Props): react_jsx_runtime.JSX.Element;
|
|
699
|
+
declare namespace H5 {
|
|
700
|
+
var displayName: string;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
interface H6Props extends Omit<TypographyProps, 'variant'> {
|
|
704
|
+
}
|
|
705
|
+
declare function H6({ color, children, ...props }: H6Props): react_jsx_runtime.JSX.Element;
|
|
706
|
+
declare namespace H6 {
|
|
707
|
+
var displayName: string;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
interface Subtitle1Props extends Omit<TypographyProps, 'variant'> {
|
|
711
|
+
}
|
|
712
|
+
declare function Subtitle1({ color, children, ...props }: Subtitle1Props): react_jsx_runtime.JSX.Element;
|
|
713
|
+
declare namespace Subtitle1 {
|
|
714
|
+
var displayName: string;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
interface Subtitle2Props extends Omit<TypographyProps, 'variant'> {
|
|
718
|
+
}
|
|
719
|
+
declare function Subtitle2({ color, children, ...props }: Subtitle2Props): react_jsx_runtime.JSX.Element;
|
|
720
|
+
declare namespace Subtitle2 {
|
|
721
|
+
var displayName: string;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
interface Body1Props extends Omit<TypographyProps, 'variant'> {
|
|
725
|
+
}
|
|
726
|
+
declare function Body1({ color, children, ...props }: Body1Props): react_jsx_runtime.JSX.Element;
|
|
727
|
+
declare namespace Body1 {
|
|
728
|
+
var displayName: string;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
interface Body2Props extends Omit<TypographyProps, 'variant'> {
|
|
732
|
+
}
|
|
733
|
+
declare function Body2({ color, children, ...props }: Body2Props): react_jsx_runtime.JSX.Element;
|
|
734
|
+
declare namespace Body2 {
|
|
735
|
+
var displayName: string;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
interface CaptionProps extends Omit<TypographyProps, 'variant'> {
|
|
739
|
+
}
|
|
740
|
+
declare function Caption({ color, children, ...props }: CaptionProps): react_jsx_runtime.JSX.Element;
|
|
741
|
+
declare namespace Caption {
|
|
742
|
+
var displayName: string;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
interface OverlineProps extends Omit<TypographyProps, 'variant'> {
|
|
746
|
+
}
|
|
747
|
+
declare function Overline({ color, children, ...props }: OverlineProps): react_jsx_runtime.JSX.Element;
|
|
748
|
+
declare namespace Overline {
|
|
749
|
+
var displayName: string;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
interface TypographyButtonProps extends Omit<TypographyProps, 'variant'> {
|
|
753
|
+
}
|
|
754
|
+
declare function TypographyButton({ color, children, ...props }: TypographyButtonProps): react_jsx_runtime.JSX.Element;
|
|
755
|
+
declare namespace TypographyButton {
|
|
756
|
+
var displayName: string;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
export { Accordion, AccordionDetails, type AccordionDetailsProps, type AccordionProps, AccordionSummary, type AccordionSummaryProps, Alert, type AlertProps, AlertTitle, type AlertTitleProps, Avatar, type AvatarProps, type AvatarSize, Body1, type Body1Props, Body2, type Body2Props, type BorderRadiusTokens, Button, type ButtonProps, Caption, type CaptionProps, Card, CardActions, CardContent, CardHeader, type CardProps, Chip, type ChipProps, type ColorTokens, type ComponentTokens, DateCalendar, type DateCalendarProps, DateField, type DateFieldProps, DateLocalizationProvider, type DateLocalizationProviderProps, DatePicker, type DatePickerProps, DateRangePickerCalendar, type DateRangePickerCalendarProps, DateRangePickerInput, type DateRangePickerInputProps, type DateRangeValue, DateTimeField, type DateTimeFieldProps, DateTimePicker, type DateTimePickerProps, DesktopDatePicker, type DesktopDatePickerProps, DesktopDateTimePicker, type DesktopDateTimePickerProps, DesktopTimePicker, type DesktopTimePickerProps, Grid, type GridProps, H1, type H1Props, H2, type H2Props, H3, type H3Props, H4, type H4Props, H5, type H5Props, H6, type H6Props, MobileDatePicker, type MobileDatePickerProps, MobileDateTimePicker, type MobileDateTimePickerProps, MobileTimePicker, type MobileTimePickerProps, Overline, type OverlineProps, type ShadowTokens, type SpacingTokens, StandaloneAccordion, StaticDatePicker, type StaticDatePickerProps, StaticDateTimePicker, type StaticDateTimePickerProps, StaticTimePicker, type StaticTimePickerProps, Subtitle1, type Subtitle1Props, Subtitle2, type Subtitle2Props, TextField, type TextFieldProps, type ThemeName, type ThemeTokens, TimeField, type TimeFieldProps, TimePicker, type TimePickerProps, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, ToolkitThemeProvider, type TransitionTokens, TypographyButton, type TypographyButtonProps, type TypographyTokens, type ZIndexTokens, createMuiTheme, getThemeTokens, resolveThemeName, themeRegistry };
|