@webpros/mui-theme 0.1.6 → 0.2.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/dist/package.json +6 -4
- package/dist/src/components/data-display/Avatar/Avatar.theme.js +11 -8
- package/dist/src/components/data-display/Badge/Badge.theme.d.ts +4 -1
- package/dist/src/components/data-display/Badge/Badge.theme.js +216 -55
- package/dist/src/components/data-display/Chip/Chip.theme.d.ts +17 -3
- package/dist/src/components/data-display/Chip/Chip.theme.js +133 -477
- package/dist/src/components/data-display/Chip/get-chip-colors-map.d.ts +42 -0
- package/dist/src/components/data-display/Chip/get-chip-colors-map.js +253 -0
- package/dist/src/components/data-display/Divider/Divider.theme.d.ts +6 -1
- package/dist/src/components/data-display/Divider/Divider.theme.js +60 -3
- package/dist/src/components/data-display/List/List.theme.d.ts +1 -1
- package/dist/src/components/data-display/List/List.theme.js +1 -1
- package/dist/src/components/data-display/ListItem/ListItem.theme.d.ts +1 -1
- package/dist/src/components/data-display/ListItem/ListItem.theme.js +16 -8
- package/dist/src/components/data-display/ListItemAvatar/ListItemAvatar.theme.js +1 -2
- package/dist/src/components/data-display/ListItemButton/ListItemButton.theme.d.ts +0 -5
- package/dist/src/components/data-display/ListItemButton/ListItemButton.theme.js +14 -48
- package/dist/src/components/data-display/ListItemIcon/ListItemIcon.theme.js +4 -4
- package/dist/src/components/data-display/ListSubheader/ListSubheader.theme.d.ts +1 -1
- package/dist/src/components/data-display/ListSubheader/ListSubheader.theme.js +2 -5
- package/dist/src/components/data-display/Skeleton/Skeleton.d.ts +3 -0
- package/dist/src/components/data-display/Skeleton/Skeleton.js +4 -0
- package/dist/src/components/data-display/Skeleton/Skeleton.theme.d.ts +15 -0
- package/dist/src/components/data-display/Skeleton/Skeleton.theme.js +31 -0
- package/dist/src/components/data-display/Skeleton/index.d.ts +1 -0
- package/dist/src/components/data-display/Skeleton/index.js +2 -0
- package/dist/src/components/data-display/Tooltip/Tooltip.theme.js +7 -9
- package/dist/src/components/data-display/Typography/Typography.theme.d.ts +19 -26
- package/dist/src/components/data-display/Typography/Typography.theme.js +7 -163
- package/dist/src/components/feedback/Alert/Alert.theme.d.ts +12 -0
- package/dist/src/components/feedback/Alert/Alert.theme.js +60 -45
- package/dist/src/components/feedback/CircularProgress/CircularProgress.theme.d.ts +6 -1
- package/dist/src/components/feedback/CircularProgress/CircularProgress.theme.js +49 -8
- package/dist/src/components/feedback/LinearProgress/LinearProgress.theme.d.ts +6 -1
- package/dist/src/components/feedback/LinearProgress/LinearProgress.theme.js +83 -9
- package/dist/src/components/feedback/Snackbar/Snackbar.theme.d.ts +4 -4
- package/dist/src/components/feedback/Snackbar/Snackbar.theme.js +7 -3
- package/dist/src/components/index.d.ts +10 -1
- package/dist/src/components/index.js +10 -1
- package/dist/src/components/inputs/Autocomplete/Autocomplete.theme.d.ts +1 -1
- package/dist/src/components/inputs/Autocomplete/Autocomplete.theme.js +23 -51
- package/dist/src/components/inputs/Autocomplete/components/AutocompleteCaretDownIcon.d.ts +1 -0
- package/dist/src/components/inputs/Autocomplete/components/{AutocompletePopupIcon.js → AutocompleteCaretDownIcon.js} +1 -1
- package/dist/src/components/inputs/Autocomplete/components/AutocompleteXIcon.d.ts +1 -0
- package/dist/src/components/inputs/Autocomplete/components/AutocompleteXIcon.js +4 -0
- package/dist/src/components/inputs/Button/Button.theme.d.ts +4 -0
- package/dist/src/components/inputs/Button/Button.theme.js +93 -226
- package/dist/src/components/inputs/Button/get-button-colors-map.d.ts +24 -0
- package/dist/src/components/inputs/Button/get-button-colors-map.js +211 -0
- package/dist/src/components/inputs/Checkbox/Checkbox.theme.d.ts +7 -2
- package/dist/src/components/inputs/Checkbox/Checkbox.theme.js +57 -7
- package/dist/src/components/inputs/Fab/Fab.theme.d.ts +5 -9
- package/dist/src/components/inputs/Fab/Fab.theme.js +27 -98
- package/dist/src/components/inputs/FormHelperText/FormHelperText.d.ts +2 -0
- package/dist/src/components/inputs/FormHelperText/FormHelperText.js +3 -0
- package/dist/src/components/inputs/FormHelperText/FormHelperText.theme.d.ts +7 -0
- package/dist/src/components/inputs/FormHelperText/FormHelperText.theme.js +8 -0
- package/dist/src/components/inputs/FormHelperText/index.d.ts +1 -0
- package/dist/src/components/inputs/FormHelperText/index.js +2 -0
- package/dist/src/components/inputs/FormLabel/FormLabel.d.ts +2 -0
- package/dist/src/components/inputs/FormLabel/FormLabel.js +3 -0
- package/dist/src/components/inputs/FormLabel/FormLabel.theme.d.ts +7 -0
- package/dist/src/components/inputs/FormLabel/FormLabel.theme.js +8 -0
- package/dist/src/components/inputs/FormLabel/index.d.ts +1 -0
- package/dist/src/components/inputs/FormLabel/index.js +2 -0
- package/dist/src/components/inputs/IconButton/IconButton.theme.d.ts +3 -2
- package/dist/src/components/inputs/IconButton/IconButton.theme.js +90 -95
- package/dist/src/components/inputs/InputBase/InputBase.theme.d.ts +9 -26
- package/dist/src/components/inputs/InputBase/InputBase.theme.js +2 -64
- package/dist/src/components/inputs/InputLabel/InputLabel.theme.d.ts +7 -4
- package/dist/src/components/inputs/InputLabel/InputLabel.theme.js +26 -12
- package/dist/src/components/inputs/OutlinedInput/OutlinedInput.theme.d.ts +8 -0
- package/dist/src/components/inputs/OutlinedInput/OutlinedInput.theme.js +67 -0
- package/dist/src/components/inputs/OutlinedInput/index.d.ts +1 -0
- package/dist/src/components/inputs/OutlinedInput/index.js +2 -0
- package/dist/src/components/inputs/Radio/Radio.d.ts +4 -0
- package/dist/src/components/inputs/Radio/Radio.js +4 -0
- package/dist/src/components/inputs/Radio/Radio.theme.d.ts +11 -0
- package/dist/src/components/inputs/Radio/Radio.theme.js +35 -0
- package/dist/src/components/inputs/Radio/index.d.ts +1 -0
- package/dist/src/components/{navigation/TabList → inputs/Radio}/index.js +1 -1
- package/dist/src/components/inputs/Select/Select.theme.d.ts +2 -3
- package/dist/src/components/inputs/Select/Select.theme.js +6 -33
- package/dist/src/components/inputs/Switch/Switch.theme.js +125 -49
- package/dist/src/components/inputs/TextField/TextField.theme.d.ts +2 -3
- package/dist/src/components/inputs/TextField/TextField.theme.js +2 -26
- package/dist/src/components/navigation/Breadcrumbs/Breadcrumbs.d.ts +4 -0
- package/dist/src/components/navigation/Breadcrumbs/Breadcrumbs.js +5 -0
- package/dist/src/components/navigation/Breadcrumbs/Breadcrumbs.theme.d.ts +11 -0
- package/dist/src/components/navigation/Breadcrumbs/Breadcrumbs.theme.js +23 -0
- package/dist/src/components/navigation/Breadcrumbs/Crumb.d.ts +10 -0
- package/dist/src/components/navigation/Breadcrumbs/Crumb.js +10 -0
- package/dist/src/components/navigation/Breadcrumbs/index.d.ts +1 -0
- package/dist/src/components/navigation/Breadcrumbs/index.js +2 -0
- package/dist/src/components/navigation/Drawer/Drawer.theme.d.ts +1 -1
- package/dist/src/components/navigation/Drawer/Drawer.theme.js +50 -6
- package/dist/src/components/navigation/Link/Link.theme.d.ts +11 -2
- package/dist/src/components/navigation/Link/Link.theme.js +66 -9
- package/dist/src/components/navigation/Menu/Menu.theme.d.ts +2 -3
- package/dist/src/components/navigation/Menu/Menu.theme.js +6 -11
- package/dist/src/components/navigation/MenuItem/MenuItem.theme.d.ts +2 -4
- package/dist/src/components/navigation/MenuItem/MenuItem.theme.js +8 -8
- package/dist/src/components/navigation/Pagination/Pagination.theme.d.ts +1 -1
- package/dist/src/components/navigation/Pagination/Pagination.theme.js +11 -3
- package/dist/src/components/navigation/PaginationItem/PaginationItem.theme.js +65 -10
- package/dist/src/components/navigation/PaginationItem/components/PaginationIcons.d.ts +4 -0
- package/dist/src/components/navigation/PaginationItem/components/PaginationIcons.js +8 -0
- package/dist/src/components/navigation/PaginationItem/components/index.d.ts +1 -0
- package/dist/src/components/navigation/PaginationItem/components/index.js +2 -0
- package/dist/src/components/navigation/Tab/Tab.theme.d.ts +7 -1
- package/dist/src/components/navigation/Tab/Tab.theme.js +52 -13
- package/dist/src/components/navigation/Tabs/Tabs.d.ts +3 -0
- package/dist/src/components/navigation/Tabs/Tabs.js +4 -0
- package/dist/src/components/navigation/Tabs/Tabs.theme.d.ts +16 -0
- package/dist/src/components/navigation/Tabs/Tabs.theme.js +55 -0
- package/dist/src/components/navigation/Tabs/index.d.ts +1 -0
- package/dist/src/components/navigation/Tabs/index.js +2 -0
- package/dist/src/components/surfaces/Accordion/Accordion.theme.js +54 -22
- package/dist/src/components/surfaces/Accordion/AccordionDetails.theme.d.ts +10 -0
- package/dist/src/components/surfaces/Accordion/AccordionDetails.theme.js +19 -0
- package/dist/src/components/surfaces/Accordion/AccordionSummary.theme.d.ts +10 -0
- package/dist/src/components/surfaces/Accordion/AccordionSummary.theme.js +37 -0
- package/dist/src/components/surfaces/Accordion/index.d.ts +2 -0
- package/dist/src/components/surfaces/Accordion/index.js +2 -0
- package/dist/src/components/surfaces/Card/Card.theme.js +1 -1
- package/dist/src/components/surfaces/Paper/Paper.theme.d.ts +16 -1
- package/dist/src/components/surfaces/Paper/Paper.theme.js +21 -7
- package/dist/src/components/surfaces/Paper/Paper.tokens.d.ts +8 -0
- package/dist/src/components/surfaces/Paper/Paper.tokens.js +50 -0
- package/dist/src/components/surfaces/Paper/Paper.variants.d.ts +4 -0
- package/dist/src/components/surfaces/Paper/Paper.variants.js +3 -0
- package/dist/src/components/surfaces/Popover/Popover.d.ts +4 -0
- package/dist/src/components/surfaces/Popover/Popover.js +4 -0
- package/dist/src/components/surfaces/Popover/Popover.theme.d.ts +9 -0
- package/dist/src/components/surfaces/Popover/Popover.theme.js +14 -0
- package/dist/src/components/surfaces/Popover/index.d.ts +1 -0
- package/dist/src/components/surfaces/Popover/index.js +2 -0
- package/dist/src/components/utils/Backdrop/Backdrop.d.ts +3 -0
- package/dist/src/components/utils/Backdrop/Backdrop.js +4 -0
- package/dist/src/components/utils/Backdrop/Backdrop.theme.d.ts +11 -0
- package/dist/src/components/utils/Backdrop/Backdrop.theme.js +17 -0
- package/dist/src/components/utils/Backdrop/index.d.ts +1 -0
- package/dist/src/components/utils/Backdrop/index.js +2 -0
- package/dist/src/providers/ThemeModeProvider.d.ts +1 -2
- package/dist/src/providers/ThemeModeProvider.js +2 -2
- package/dist/src/providers/WebProsMuiThemeProvider.js +1 -1
- package/dist/src/providers/WebProsTheme.d.ts +1 -0
- package/dist/src/providers/WebProsTheme.js +11 -5
- package/dist/src/shared/rippleEnterKeyframe.d.ts +6 -0
- package/dist/src/shared/rippleEnterKeyframe.js +12 -0
- package/dist/src/shared/viewContext/index.d.ts +1 -0
- package/dist/src/shared/viewContext/index.js +2 -0
- package/dist/src/shared/viewContext/viewContext.d.ts +4 -0
- package/dist/src/shared/viewContext/viewContext.js +2 -0
- package/dist/src/style/additional-color-palette.d.ts +1 -3
- package/dist/src/style/additional-color-palette.js +3 -6
- package/dist/src/style/custom-color-palette.js +50 -52
- package/dist/src/tokens/ThemeColorTokens.d.ts +11 -93
- package/dist/src/tokens/ThemeColorTokens.js +4 -168
- package/dist/src/tokens/ThemeScheme.d.ts +0 -3
- package/dist/src/tokens/ThemeScheme.js +0 -2
- package/dist/src/tokens/colors/Dark.d.ts +16 -0
- package/dist/src/tokens/colors/Dark.js +1398 -0
- package/dist/src/tokens/colors/Light.d.ts +16 -0
- package/dist/src/tokens/colors/Light.js +1398 -0
- package/dist/src/tokens/colors/index.d.ts +7 -0
- package/dist/src/tokens/colors/index.js +4 -0
- package/dist/src/tokens/colors/inverseSchemas.d.ts +40 -0
- package/dist/src/tokens/colors/inverseSchemas.js +3 -0
- package/dist/src/tokens/colors/inverseSchemes.d.ts +53 -0
- package/dist/src/tokens/colors/inverseSchemes.js +3 -0
- package/dist/src/tokens/colors/inverseStateLayers.d.ts +174 -0
- package/dist/src/tokens/colors/inverseStateLayers.js +3 -0
- package/dist/src/tokens/colors/schemas.d.ts +111 -0
- package/dist/src/tokens/colors/schemas.js +3 -0
- package/dist/src/tokens/colors/schemes.d.ts +111 -0
- package/dist/src/tokens/colors/schemes.js +3 -0
- package/dist/src/tokens/colors/stateLayers.d.ts +456 -0
- package/dist/src/tokens/colors/stateLayers.js +3 -0
- package/dist/src/tokens/colors/types.d.ts +9 -0
- package/dist/src/tokens/colors/types.js +2 -0
- package/dist/src/tokens/index.d.ts +6 -2
- package/dist/src/tokens/index.js +2 -1
- package/dist/src/tokens/legacyColors/LegacyDark.d.ts +2 -0
- package/dist/src/tokens/legacyColors/LegacyDark.js +88 -0
- package/dist/src/tokens/legacyColors/LegacyLight.d.ts +2 -0
- package/dist/src/tokens/legacyColors/LegacyLight.js +86 -0
- package/dist/src/tokens/legacyColors/ThemeColorTokensLegacy.d.ts +74 -0
- package/dist/src/tokens/legacyColors/ThemeColorTokensLegacy.js +2 -0
- package/dist/src/tokens/legacyColors/additionalColors/additionalColors.d.ts +21 -0
- package/dist/src/tokens/legacyColors/additionalColors/additionalColors.js +2 -0
- package/dist/src/tokens/{additionalColors → legacyColors/additionalColors}/index.d.ts +1 -0
- package/dist/src/tokens/{additionalColors → legacyColors/additionalColors}/index.js +1 -0
- package/dist/src/tokens/legacyColors/index.d.ts +2 -0
- package/dist/src/tokens/legacyColors/index.js +3 -0
- package/dist/src/tokens/shadows/index.d.ts +12 -0
- package/dist/src/tokens/shadows/index.js +112 -0
- package/dist/src/tokens/typography/index.d.ts +2 -0
- package/dist/src/tokens/typography/index.js +4 -0
- package/dist/src/tokens/typography/typescale.d.ts +28 -0
- package/dist/src/tokens/typography/typescale.js +26 -0
- package/dist/src/tokens/typography/typography.d.ts +2 -0
- package/dist/src/tokens/typography/typography.js +156 -0
- package/dist/src/utils/flatten.d.ts +1 -0
- package/dist/src/utils/flatten.js +12 -0
- package/dist/src/utils/getMUIComponents.js +2 -2
- package/dist/src/utils/getMUIPalette.d.ts +4 -9
- package/dist/src/utils/getMUIPalette.js +49 -25
- package/dist/src/utils/getMUIThemeCustoimzationType.d.ts +31 -0
- package/dist/src/utils/getMUIThemeCustoimzationType.js +2 -0
- package/dist/src/utils/getMUITypography.d.ts +2 -0
- package/dist/src/utils/getMUITypography.js +5 -0
- package/dist/src/utils/getStateLayerColor.d.ts +37 -0
- package/dist/src/utils/getStateLayerColor.js +43 -1
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/index.js +1 -1
- package/dist/src/utils/patchMUIShadows.js +4 -3
- package/package.json +6 -4
- package/dist/src/components/inputs/Autocomplete/components/AutocompletePopupIcon.d.ts +0 -1
- package/dist/src/components/navigation/PaginationItem/PaginationItem.d.ts +0 -3
- package/dist/src/components/navigation/PaginationItem/PaginationItem.js +0 -4
- package/dist/src/components/navigation/TabList/TabList.d.ts +0 -3
- package/dist/src/components/navigation/TabList/TabList.js +0 -4
- package/dist/src/components/navigation/TabList/TabList.theme.d.ts +0 -10
- package/dist/src/components/navigation/TabList/TabList.theme.js +0 -17
- package/dist/src/components/navigation/TabList/index.d.ts +0 -1
- package/dist/src/hooks/useTonalPalette.d.ts +0 -3
- package/dist/src/hooks/useTonalPalette.js +0 -32
- package/dist/src/providers/ThemeSchemeProvider.d.ts +0 -12
- package/dist/src/providers/ThemeSchemeProvider.js +0 -29
- package/dist/src/tokens/TonalPalette.d.ts +0 -10
- package/dist/src/tokens/TonalPalette.js +0 -10
- package/dist/src/utils/generateTokens.d.ts +0 -4
- package/dist/src/utils/generateTokens.js +0 -107
- /package/dist/src/tokens/{Tone.d.ts → legacyColors/Tone.d.ts} +0 -0
- /package/dist/src/tokens/{Tone.js → legacyColors/Tone.js} +0 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { AdditionalColors } from '../../tokens/legacyColors/additionalColors/additionalColors';
|
|
2
|
+
export type ThemeColorTokensLegacy = {
|
|
3
|
+
primary: string;
|
|
4
|
+
onPrimary: string;
|
|
5
|
+
primaryContainer: string;
|
|
6
|
+
onPrimaryContainer: string;
|
|
7
|
+
secondary: string;
|
|
8
|
+
onSecondary: string;
|
|
9
|
+
secondaryContainer: string;
|
|
10
|
+
onSecondaryContainer: string;
|
|
11
|
+
tertiary: string;
|
|
12
|
+
onTertiary: string;
|
|
13
|
+
tertiaryContainer: string;
|
|
14
|
+
onTertiaryContainer: string;
|
|
15
|
+
error: string;
|
|
16
|
+
onError: string;
|
|
17
|
+
errorContainer: string;
|
|
18
|
+
onErrorContainer: string;
|
|
19
|
+
errorFixedDim: string;
|
|
20
|
+
primaryFixed: string;
|
|
21
|
+
primaryFixedDim: string;
|
|
22
|
+
onPrimaryFixed: string;
|
|
23
|
+
onPrimaryFixedVariant: string;
|
|
24
|
+
secondaryFixed: string;
|
|
25
|
+
secondaryFixedDim: string;
|
|
26
|
+
onSecondaryFixed: string;
|
|
27
|
+
onSecondaryFixedVariant: string;
|
|
28
|
+
tertiaryFixed: string;
|
|
29
|
+
tertiaryFixedDim: string;
|
|
30
|
+
onTertiaryFixed: string;
|
|
31
|
+
onTertiaryFixedVariant: string;
|
|
32
|
+
surface: string;
|
|
33
|
+
onSurface: string;
|
|
34
|
+
surfaceDim: string;
|
|
35
|
+
surfaceBright: string;
|
|
36
|
+
surfaceContainerLowest: string;
|
|
37
|
+
surfaceContainerLow: string;
|
|
38
|
+
surfaceContainer: string;
|
|
39
|
+
surfaceContainerHigh: string;
|
|
40
|
+
surfaceContainerHighest: string;
|
|
41
|
+
surfaceVariant: string;
|
|
42
|
+
onSurfaceVariant: string;
|
|
43
|
+
outline: string;
|
|
44
|
+
outlineVariant: string;
|
|
45
|
+
inverseSurface: string;
|
|
46
|
+
inverseOnSurface: string;
|
|
47
|
+
inversePrimary: string;
|
|
48
|
+
shadow: string;
|
|
49
|
+
scrim: string;
|
|
50
|
+
surfaceTint: string;
|
|
51
|
+
background: string;
|
|
52
|
+
onBackground: string;
|
|
53
|
+
info: string;
|
|
54
|
+
onInfo: string;
|
|
55
|
+
infoContainer: string;
|
|
56
|
+
onInfoContainer: string;
|
|
57
|
+
infoFixedDim: string;
|
|
58
|
+
success: string;
|
|
59
|
+
onSuccess: string;
|
|
60
|
+
successContainer: string;
|
|
61
|
+
onSuccessContainer: string;
|
|
62
|
+
successFixedDim: string;
|
|
63
|
+
warning: string;
|
|
64
|
+
onWarning: string;
|
|
65
|
+
warningContainer: string;
|
|
66
|
+
onWarningContainer: string;
|
|
67
|
+
warningFixedDim: string;
|
|
68
|
+
undefined: string;
|
|
69
|
+
onUndefined: string;
|
|
70
|
+
undefinedContainer: string;
|
|
71
|
+
onUndefinedContainer: string;
|
|
72
|
+
supportive: string;
|
|
73
|
+
additionalColors: AdditionalColors;
|
|
74
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AdditionalColorTone } from '../../../tokens/legacyColors/Tone';
|
|
2
|
+
export type AdditionalColors = {
|
|
3
|
+
red: AdditionalColorTone;
|
|
4
|
+
pink: AdditionalColorTone;
|
|
5
|
+
purple: AdditionalColorTone;
|
|
6
|
+
deepPurple: AdditionalColorTone;
|
|
7
|
+
indigo: AdditionalColorTone;
|
|
8
|
+
blue: AdditionalColorTone;
|
|
9
|
+
lightBlue: AdditionalColorTone;
|
|
10
|
+
cyan: AdditionalColorTone;
|
|
11
|
+
teal: AdditionalColorTone;
|
|
12
|
+
green: AdditionalColorTone;
|
|
13
|
+
lightGreen: AdditionalColorTone;
|
|
14
|
+
lime: AdditionalColorTone;
|
|
15
|
+
yellow: AdditionalColorTone;
|
|
16
|
+
amber: AdditionalColorTone;
|
|
17
|
+
orange: AdditionalColorTone;
|
|
18
|
+
deepOrange: AdditionalColorTone;
|
|
19
|
+
brown: AdditionalColorTone;
|
|
20
|
+
};
|
|
21
|
+
export type AdditionalColorKey = keyof AdditionalColors;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type M3ShadowLayer = {
|
|
2
|
+
offsetX: string;
|
|
3
|
+
offsetY: string;
|
|
4
|
+
blur: string;
|
|
5
|
+
spread: string;
|
|
6
|
+
color: string;
|
|
7
|
+
};
|
|
8
|
+
export type M3ShadowTokenName = 'Shadows-1' | 'Shadows-2' | 'Shadows-3' | 'Shadows-4';
|
|
9
|
+
export type M3ShadowTokens = Record<M3ShadowTokenName, M3ShadowLayer[]>;
|
|
10
|
+
export declare const shadowTokens: M3ShadowTokens;
|
|
11
|
+
export declare const shadowCssValues: Record<M3ShadowTokenName, string>;
|
|
12
|
+
export declare const muiShadows: string[];
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
2
|
+
// Auto-generated file - do not edit manually
|
|
3
|
+
export const shadowTokens = {
|
|
4
|
+
'Shadows-1': [
|
|
5
|
+
{
|
|
6
|
+
offsetX: '0px',
|
|
7
|
+
offsetY: '4px',
|
|
8
|
+
blur: '3px',
|
|
9
|
+
spread: '0px',
|
|
10
|
+
color: 'rgba(0, 0, 0, 0.03)',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
offsetX: '0px',
|
|
14
|
+
offsetY: '2px',
|
|
15
|
+
blur: '2px',
|
|
16
|
+
spread: '0px',
|
|
17
|
+
color: 'rgba(0, 0, 0, 0.04)',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
offsetX: '0px',
|
|
21
|
+
offsetY: '0px',
|
|
22
|
+
blur: '1px',
|
|
23
|
+
spread: '0px',
|
|
24
|
+
color: 'rgba(0, 0, 0, 0.05)',
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
'Shadows-2': [
|
|
28
|
+
{
|
|
29
|
+
offsetX: '0px',
|
|
30
|
+
offsetY: '5px',
|
|
31
|
+
blur: '3px',
|
|
32
|
+
spread: '0px',
|
|
33
|
+
color: 'rgba(0, 0, 0, 0.05)',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
offsetX: '0px',
|
|
37
|
+
offsetY: '2px',
|
|
38
|
+
blur: '2px',
|
|
39
|
+
spread: '0px',
|
|
40
|
+
color: 'rgba(0, 0, 0, 0.08)',
|
|
41
|
+
},
|
|
42
|
+
{ offsetX: '0px', offsetY: '1px', blur: '1px', spread: '0px', color: 'rgba(0, 0, 0, 0.1)' },
|
|
43
|
+
],
|
|
44
|
+
'Shadows-3': [
|
|
45
|
+
{
|
|
46
|
+
offsetX: '0px',
|
|
47
|
+
offsetY: '10px',
|
|
48
|
+
blur: '6px',
|
|
49
|
+
spread: '0px',
|
|
50
|
+
color: 'rgba(0, 0, 0, 0.05)',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
offsetX: '0px',
|
|
54
|
+
offsetY: '4px',
|
|
55
|
+
blur: '4px',
|
|
56
|
+
spread: '0px',
|
|
57
|
+
color: 'rgba(0, 0, 0, 0.08)',
|
|
58
|
+
},
|
|
59
|
+
{ offsetX: '0px', offsetY: '1px', blur: '2px', spread: '0px', color: 'rgba(0, 0, 0, 0.1)' },
|
|
60
|
+
],
|
|
61
|
+
'Shadows-4': [
|
|
62
|
+
{
|
|
63
|
+
offsetX: '0px',
|
|
64
|
+
offsetY: '17px',
|
|
65
|
+
blur: '14px',
|
|
66
|
+
spread: '0px',
|
|
67
|
+
color: 'rgba(0, 0, 0, 0.05)',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
offsetX: '0px',
|
|
71
|
+
offsetY: '11px',
|
|
72
|
+
blur: '11px',
|
|
73
|
+
spread: '0px',
|
|
74
|
+
color: 'rgba(0, 0, 0, 0.08)',
|
|
75
|
+
},
|
|
76
|
+
{ offsetX: '0px', offsetY: '0px', blur: '6px', spread: '0px', color: 'rgba(0, 0, 0, 0.1)' },
|
|
77
|
+
],
|
|
78
|
+
};
|
|
79
|
+
export const shadowCssValues = {
|
|
80
|
+
'Shadows-1': '0px 4px 3px 0px rgba(0, 0, 0, 0.03), 0px 2px 2px 0px rgba(0, 0, 0, 0.04), 0px 0px 1px 0px rgba(0, 0, 0, 0.05)',
|
|
81
|
+
'Shadows-2': '0px 5px 3px 0px rgba(0, 0, 0, 0.05), 0px 2px 2px 0px rgba(0, 0, 0, 0.08), 0px 1px 1px 0px rgba(0, 0, 0, 0.1)',
|
|
82
|
+
'Shadows-3': '0px 10px 6px 0px rgba(0, 0, 0, 0.05), 0px 4px 4px 0px rgba(0, 0, 0, 0.08), 0px 1px 2px 0px rgba(0, 0, 0, 0.1)',
|
|
83
|
+
'Shadows-4': '0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
84
|
+
};
|
|
85
|
+
// Preserve the array structure so we can extend shadow slots without refactoring downstream overrides.
|
|
86
|
+
export const muiShadows = [
|
|
87
|
+
'0px 4px 3px 0px rgba(0, 0, 0, 0.03), 0px 2px 2px 0px rgba(0, 0, 0, 0.04), 0px 0px 1px 0px rgba(0, 0, 0, 0.05)',
|
|
88
|
+
'0px 4px 3px 0px rgba(0, 0, 0, 0.03), 0px 2px 2px 0px rgba(0, 0, 0, 0.04), 0px 0px 1px 0px rgba(0, 0, 0, 0.05)',
|
|
89
|
+
'0px 5px 3px 0px rgba(0, 0, 0, 0.05), 0px 2px 2px 0px rgba(0, 0, 0, 0.08), 0px 1px 1px 0px rgba(0, 0, 0, 0.1)',
|
|
90
|
+
'0px 10px 6px 0px rgba(0, 0, 0, 0.05), 0px 4px 4px 0px rgba(0, 0, 0, 0.08), 0px 1px 2px 0px rgba(0, 0, 0, 0.1)',
|
|
91
|
+
'0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
92
|
+
'0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
93
|
+
'0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
94
|
+
'0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
95
|
+
'0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
96
|
+
'0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
97
|
+
'0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
98
|
+
'0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
99
|
+
'0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
100
|
+
'0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
101
|
+
'0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
102
|
+
'0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
103
|
+
'0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
104
|
+
'0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
105
|
+
'0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
106
|
+
'0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
107
|
+
'0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
108
|
+
'0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
109
|
+
'0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
110
|
+
'0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
111
|
+
'0px 17px 14px 0px rgba(0, 0, 0, 0.05), 0px 11px 11px 0px rgba(0, 0, 0, 0.08), 0px 0px 6px 0px rgba(0, 0, 0, 0.1)',
|
|
112
|
+
];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface TypescaleTypographyVariants {
|
|
2
|
+
BodyLarge: React.CSSProperties;
|
|
3
|
+
BodyLargeProminent: React.CSSProperties;
|
|
4
|
+
BodyMedium: React.CSSProperties;
|
|
5
|
+
BodyMediumProminent: React.CSSProperties;
|
|
6
|
+
BodySmall: React.CSSProperties;
|
|
7
|
+
BodySmallProminent: React.CSSProperties;
|
|
8
|
+
DisplayLarge: React.CSSProperties;
|
|
9
|
+
DisplayMedium: React.CSSProperties;
|
|
10
|
+
DisplaySmall: React.CSSProperties;
|
|
11
|
+
DisplayXLarge: React.CSSProperties;
|
|
12
|
+
HeadlineLarge: React.CSSProperties;
|
|
13
|
+
HeadlineMedium: React.CSSProperties;
|
|
14
|
+
HeadlineSmall: React.CSSProperties;
|
|
15
|
+
LabelLarge: React.CSSProperties;
|
|
16
|
+
LabelLargeProminent: React.CSSProperties;
|
|
17
|
+
LabelMedium: React.CSSProperties;
|
|
18
|
+
LabelMediumProminent: React.CSSProperties;
|
|
19
|
+
LabelSmall: React.CSSProperties;
|
|
20
|
+
LabelSmallProminent: React.CSSProperties;
|
|
21
|
+
TitleLarge: React.CSSProperties;
|
|
22
|
+
TitleMedium: React.CSSProperties;
|
|
23
|
+
TitleSmall: React.CSSProperties;
|
|
24
|
+
}
|
|
25
|
+
export type TypescaleTypographyVariantsBooleans = {
|
|
26
|
+
[K in keyof TypescaleTypographyVariants]: boolean;
|
|
27
|
+
};
|
|
28
|
+
export declare const TypographyVariantsNames: (keyof TypescaleTypographyVariants)[];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
2
|
+
// Auto-generated file - do not edit manually
|
|
3
|
+
export const TypographyVariantsNames = [
|
|
4
|
+
'BodyLarge',
|
|
5
|
+
'BodyLargeProminent',
|
|
6
|
+
'BodyMedium',
|
|
7
|
+
'BodyMediumProminent',
|
|
8
|
+
'BodySmall',
|
|
9
|
+
'BodySmallProminent',
|
|
10
|
+
'DisplayLarge',
|
|
11
|
+
'DisplayMedium',
|
|
12
|
+
'DisplaySmall',
|
|
13
|
+
'DisplayXLarge',
|
|
14
|
+
'HeadlineLarge',
|
|
15
|
+
'HeadlineMedium',
|
|
16
|
+
'HeadlineSmall',
|
|
17
|
+
'LabelLarge',
|
|
18
|
+
'LabelLargeProminent',
|
|
19
|
+
'LabelMedium',
|
|
20
|
+
'LabelMediumProminent',
|
|
21
|
+
'LabelSmall',
|
|
22
|
+
'LabelSmallProminent',
|
|
23
|
+
'TitleLarge',
|
|
24
|
+
'TitleMedium',
|
|
25
|
+
'TitleSmall',
|
|
26
|
+
];
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
export const typographyVariants = {
|
|
2
|
+
BodyLarge: {
|
|
3
|
+
fontFamily: 'Roboto',
|
|
4
|
+
fontSize: '16px',
|
|
5
|
+
lineHeight: '24px',
|
|
6
|
+
letterSpacing: '0.5px',
|
|
7
|
+
fontWeight: 400,
|
|
8
|
+
},
|
|
9
|
+
BodyLargeProminent: {
|
|
10
|
+
fontFamily: 'Roboto',
|
|
11
|
+
fontSize: '16px',
|
|
12
|
+
lineHeight: '24px',
|
|
13
|
+
letterSpacing: '0.5px',
|
|
14
|
+
fontWeight: 600,
|
|
15
|
+
},
|
|
16
|
+
BodyMedium: {
|
|
17
|
+
fontFamily: 'Roboto',
|
|
18
|
+
fontWeight: 400,
|
|
19
|
+
fontSize: '14px',
|
|
20
|
+
lineHeight: '20px',
|
|
21
|
+
letterSpacing: '0.25px',
|
|
22
|
+
},
|
|
23
|
+
BodyMediumProminent: {
|
|
24
|
+
fontFamily: 'Roboto',
|
|
25
|
+
fontWeight: 600,
|
|
26
|
+
fontSize: '14px',
|
|
27
|
+
lineHeight: '20px',
|
|
28
|
+
letterSpacing: '0.25px',
|
|
29
|
+
},
|
|
30
|
+
BodySmall: {
|
|
31
|
+
fontFamily: 'Roboto',
|
|
32
|
+
fontSize: '12px',
|
|
33
|
+
lineHeight: '16px',
|
|
34
|
+
letterSpacing: '0.4px',
|
|
35
|
+
fontWeight: 400,
|
|
36
|
+
},
|
|
37
|
+
BodySmallProminent: {
|
|
38
|
+
fontFamily: 'Roboto',
|
|
39
|
+
fontSize: '12px',
|
|
40
|
+
lineHeight: '16px',
|
|
41
|
+
letterSpacing: '0.4px',
|
|
42
|
+
fontWeight: 600,
|
|
43
|
+
},
|
|
44
|
+
DisplayLarge: {
|
|
45
|
+
fontFamily: 'Roboto',
|
|
46
|
+
fontSize: '45px',
|
|
47
|
+
lineHeight: '52px',
|
|
48
|
+
letterSpacing: '-0.25px',
|
|
49
|
+
fontWeight: 400,
|
|
50
|
+
},
|
|
51
|
+
DisplayMedium: {
|
|
52
|
+
fontFamily: 'Roboto',
|
|
53
|
+
fontSize: '32px',
|
|
54
|
+
lineHeight: '44px',
|
|
55
|
+
letterSpacing: '0px',
|
|
56
|
+
fontWeight: 400,
|
|
57
|
+
},
|
|
58
|
+
DisplaySmall: {
|
|
59
|
+
fontFamily: 'Roboto',
|
|
60
|
+
fontSize: '24px',
|
|
61
|
+
lineHeight: '32px',
|
|
62
|
+
letterSpacing: '0px',
|
|
63
|
+
fontWeight: 400,
|
|
64
|
+
},
|
|
65
|
+
DisplayXLarge: {
|
|
66
|
+
fontFamily: 'Roboto',
|
|
67
|
+
fontSize: '52px',
|
|
68
|
+
lineHeight: '86px',
|
|
69
|
+
letterSpacing: '-0.25px',
|
|
70
|
+
fontWeight: 400,
|
|
71
|
+
},
|
|
72
|
+
HeadlineLarge: {
|
|
73
|
+
fontFamily: 'Roboto',
|
|
74
|
+
fontSize: '20px',
|
|
75
|
+
lineHeight: '28px',
|
|
76
|
+
letterSpacing: '0px',
|
|
77
|
+
fontWeight: 400,
|
|
78
|
+
},
|
|
79
|
+
HeadlineMedium: {
|
|
80
|
+
fontFamily: 'Roboto',
|
|
81
|
+
fontSize: '18px',
|
|
82
|
+
lineHeight: '28px',
|
|
83
|
+
letterSpacing: '0px',
|
|
84
|
+
fontWeight: 400,
|
|
85
|
+
},
|
|
86
|
+
HeadlineSmall: {
|
|
87
|
+
fontFamily: 'Roboto',
|
|
88
|
+
fontSize: '16px',
|
|
89
|
+
lineHeight: '28px',
|
|
90
|
+
letterSpacing: '0px',
|
|
91
|
+
fontWeight: 700,
|
|
92
|
+
},
|
|
93
|
+
LabelLarge: {
|
|
94
|
+
fontFamily: 'Roboto',
|
|
95
|
+
fontSize: '17px',
|
|
96
|
+
lineHeight: '24px',
|
|
97
|
+
letterSpacing: '0.1px',
|
|
98
|
+
fontWeight: 400,
|
|
99
|
+
},
|
|
100
|
+
LabelLargeProminent: {
|
|
101
|
+
fontFamily: 'Roboto',
|
|
102
|
+
fontSize: '17px',
|
|
103
|
+
lineHeight: '24px',
|
|
104
|
+
letterSpacing: '0.1px',
|
|
105
|
+
fontWeight: 500,
|
|
106
|
+
},
|
|
107
|
+
LabelMedium: {
|
|
108
|
+
fontFamily: 'Roboto',
|
|
109
|
+
fontSize: '14px',
|
|
110
|
+
lineHeight: '20px',
|
|
111
|
+
letterSpacing: '0.5px',
|
|
112
|
+
fontWeight: 400,
|
|
113
|
+
},
|
|
114
|
+
LabelMediumProminent: {
|
|
115
|
+
fontFamily: 'Roboto',
|
|
116
|
+
fontSize: '14px',
|
|
117
|
+
lineHeight: '20px',
|
|
118
|
+
letterSpacing: '0.5px',
|
|
119
|
+
fontWeight: 500,
|
|
120
|
+
},
|
|
121
|
+
LabelSmall: {
|
|
122
|
+
fontFamily: 'Roboto',
|
|
123
|
+
fontSize: '13px',
|
|
124
|
+
lineHeight: '16px',
|
|
125
|
+
letterSpacing: '0.5px',
|
|
126
|
+
fontWeight: 400,
|
|
127
|
+
},
|
|
128
|
+
LabelSmallProminent: {
|
|
129
|
+
fontFamily: 'Roboto',
|
|
130
|
+
fontSize: '13px',
|
|
131
|
+
lineHeight: '16px',
|
|
132
|
+
letterSpacing: '0.5px',
|
|
133
|
+
fontWeight: 500,
|
|
134
|
+
},
|
|
135
|
+
TitleLarge: {
|
|
136
|
+
fontFamily: 'Roboto',
|
|
137
|
+
fontSize: '20px',
|
|
138
|
+
lineHeight: '24px',
|
|
139
|
+
letterSpacing: '0px',
|
|
140
|
+
fontWeight: 400,
|
|
141
|
+
},
|
|
142
|
+
TitleMedium: {
|
|
143
|
+
fontFamily: 'Roboto',
|
|
144
|
+
fontSize: '15px',
|
|
145
|
+
lineHeight: '20px',
|
|
146
|
+
letterSpacing: '0.15px',
|
|
147
|
+
fontWeight: 400,
|
|
148
|
+
},
|
|
149
|
+
TitleSmall: {
|
|
150
|
+
fontFamily: 'Roboto',
|
|
151
|
+
fontSize: '14px',
|
|
152
|
+
lineHeight: '20px',
|
|
153
|
+
letterSpacing: '0.1px',
|
|
154
|
+
fontWeight: 500,
|
|
155
|
+
},
|
|
156
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const flatten: <T>(array: (T | T[])[]) => T[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getAccordion, getAlert, getAppBar, getBadge, getButton, getCard, getCheckbox, getChip, getCssBaseline, getDivider, getDrawer, getFab, getIconButton, getLink, getListItem, getListItemButton, getListItemIcon, getListItemAvatar, getListSubheader, getMenu, getMenuItem, getPaginationItem, getPaper, getSwitch, getTab,
|
|
1
|
+
import { getAccordion, getAccordionSummary, getAccordionDetails, getAlert, getAppBar, getBackdrop, getBadge, getBreadcrumbs, getButton, getCard, getCheckbox, getChip, getCssBaseline, getDivider, getDrawer, getFab, getIconButton, getLink, getList, getListItem, getListItemButton, getListItemIcon, getListItemAvatar, getListSubheader, getMenu, getMenuItem, getPaginationItem, getPaper, getPopover, getSwitch, getTab, getTabs, getTextField, getToggleButton, getToggleButtonGroup, getTooltip, getTypography, getAvatar, getSelect, getInputLabel, getTimePicker, getSnackbar, getCircularProgress, getLinearProgress, getDialog, getDataGrid, getTable, getAutocomplete, getInputBase, getSkeleton, getFormLabel, getOutlinedInput, getFormHelperText, getRadio, } from '../components';
|
|
2
2
|
export const getMUIComponents = (theme, _mode) => ({
|
|
3
|
-
components: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, getCssBaseline(theme)), getAccordion(theme)), getAlert(theme)), getAppBar(theme)), getAvatar(theme)), getBadge(theme)),
|
|
3
|
+
components: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, getCssBaseline(theme)), getBackdrop(theme)), getAccordion(theme)), getAccordionSummary(theme)), getAccordionDetails(theme)), getAlert(theme)), getAppBar(theme)), getAvatar(theme)), getBadge(theme)), getBreadcrumbs(theme)), getSelect()), getTimePicker(theme)), getInputLabel()), getButton(theme)), getCard(theme)), getCheckbox(theme)), getChip(theme)), getDivider(theme)), getDrawer(theme)), getFab(theme)), getIconButton(theme)), getLink(theme)), getList(theme)), getListItem(theme)), getListItemButton(theme)), getListItemIcon(theme)), getListItemAvatar(theme)), getListSubheader(theme)), getMenu(theme)), getMenuItem(theme)), getPaginationItem(theme)), getPaper(theme)), getPopover(theme)), getSwitch(theme)), getTab(theme)), getTabs(theme)), getTextField(theme)), getToggleButton(theme)), getToggleButtonGroup(theme)), getTooltip(theme)), getTypography(theme)), getSnackbar(theme)), getCircularProgress(theme)), getLinearProgress(theme)), getDialog(theme)), getDataGrid(theme)), getTable(theme)), getAutocomplete()), getInputBase()), getSkeleton(theme)), getFormLabel()), getOutlinedInput()), getFormHelperText()), getRadio(theme)),
|
|
4
4
|
});
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { ThemeOptions } from '@mui/material';
|
|
2
|
-
import { TonalPalette } from '../tokens/TonalPalette';
|
|
3
2
|
import { ThemeMode } from '../tokens/ThemeMode';
|
|
4
3
|
import { ThemeScheme } from '../tokens/ThemeScheme';
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
interface ThemeOptions {
|
|
8
|
-
tones?: TonalPalette;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
4
|
+
import { Schemes, StateLayers } from '../tokens/colors';
|
|
5
|
+
import { AdditionalColorTone } from '../tokens/legacyColors/Tone';
|
|
11
6
|
declare module '@mui/material/styles/createPalette' {
|
|
12
7
|
interface M3Palette {
|
|
13
8
|
onPrimary: PaletteColor;
|
|
@@ -88,7 +83,7 @@ declare module '@mui/material/styles/createPalette' {
|
|
|
88
83
|
deepOrange: AdditionalColorTone;
|
|
89
84
|
brown: AdditionalColorTone;
|
|
90
85
|
}
|
|
91
|
-
interface M3PaletteOptions extends Record<keyof M3Palette, PaletteColorOptions> {
|
|
86
|
+
interface M3PaletteOptions extends Record<keyof M3Palette, PaletteColorOptions | StateLayers | Schemes> {
|
|
92
87
|
themeMode: string;
|
|
93
88
|
additional: M3AdditionalColors;
|
|
94
89
|
}
|
|
@@ -98,4 +93,4 @@ declare module '@mui/material/styles/createPalette' {
|
|
|
98
93
|
interface PaletteOptions extends M3PaletteOptions {
|
|
99
94
|
}
|
|
100
95
|
}
|
|
101
|
-
export declare const getMUIPalette: (themeMode: ThemeMode,
|
|
96
|
+
export declare const getMUIPalette: (themeMode: ThemeMode, themeScheme: ThemeScheme) => ThemeOptions;
|
|
@@ -1,12 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { getBlendSchemaWithStateLayer, getInverseBlendSchemaWithStateLayer, } from '../index';
|
|
2
|
+
export const getMUIPalette = (themeMode, themeScheme) => {
|
|
3
|
+
const scheme = themeScheme[themeMode];
|
|
3
4
|
return {
|
|
4
5
|
palette: {
|
|
6
|
+
/** Basic MUI overrides */
|
|
5
7
|
themeMode,
|
|
6
8
|
primary: {
|
|
7
9
|
main: scheme.primary,
|
|
8
10
|
contrastText: scheme.onPrimary,
|
|
9
11
|
},
|
|
12
|
+
error: {
|
|
13
|
+
main: scheme.schemes.status.error,
|
|
14
|
+
contrastText: scheme.schemes.status.onError,
|
|
15
|
+
},
|
|
16
|
+
text: {
|
|
17
|
+
primary: scheme.schemes.surfaces.onSurface,
|
|
18
|
+
secondary: scheme.schemes.surfaces.onSurfaceVariant,
|
|
19
|
+
disabled: scheme.stateLayers.surfaces.onSurface.opacity38,
|
|
20
|
+
},
|
|
21
|
+
info: {
|
|
22
|
+
main: scheme.schemes.status.info,
|
|
23
|
+
contrastText: scheme.schemes.status.onInfo,
|
|
24
|
+
},
|
|
25
|
+
success: {
|
|
26
|
+
main: scheme.schemes.status.success,
|
|
27
|
+
contrastText: scheme.schemes.status.onSuccess,
|
|
28
|
+
},
|
|
29
|
+
warning: {
|
|
30
|
+
main: scheme.schemes.status.warning,
|
|
31
|
+
contrastText: scheme.schemes.status.onWarning,
|
|
32
|
+
},
|
|
10
33
|
onPrimary: {
|
|
11
34
|
main: scheme.onPrimary,
|
|
12
35
|
contrastText: scheme.primary,
|
|
@@ -51,10 +74,6 @@ export const getMUIPalette = (themeMode, themescheme) => {
|
|
|
51
74
|
main: scheme.onTertiaryContainer,
|
|
52
75
|
contrastText: scheme.tertiaryContainer,
|
|
53
76
|
},
|
|
54
|
-
error: {
|
|
55
|
-
main: scheme.error,
|
|
56
|
-
contrastText: scheme.onError,
|
|
57
|
-
},
|
|
58
77
|
onError: {
|
|
59
78
|
main: scheme.onError,
|
|
60
79
|
contrastText: scheme.error,
|
|
@@ -162,9 +181,23 @@ export const getMUIPalette = (themeMode, themescheme) => {
|
|
|
162
181
|
main: scheme.inverseOnSurface,
|
|
163
182
|
contrastText: scheme.inverseSurface,
|
|
164
183
|
},
|
|
165
|
-
action: {
|
|
184
|
+
action: {
|
|
185
|
+
// active
|
|
186
|
+
hover: scheme.stateLayers.surfaces.onSurface.opacity08,
|
|
187
|
+
hoverOpacity: scheme.generatedStateLayers['stateLayers.surfaces.onSurface.opacity08'].a,
|
|
188
|
+
selected: scheme.schemes.base.secondaryContainer, // TODO verify
|
|
189
|
+
// TODO verify
|
|
190
|
+
selectedOpacity: scheme.generatedStateLayers['stateLayers.surfaces.onSurface.opacity12'].a,
|
|
191
|
+
disabled: scheme.stateLayers.surfaces.onSurface.opacity38,
|
|
192
|
+
// disabledBackground:
|
|
193
|
+
disabledOpacity: scheme.generatedStateLayers['stateLayers.surfaces.onSurface.opacity38'].a,
|
|
194
|
+
// TODO verify
|
|
195
|
+
// focus
|
|
196
|
+
// focusOpacity
|
|
197
|
+
// activatedOpacity
|
|
198
|
+
},
|
|
166
199
|
shadow: {
|
|
167
|
-
main: scheme.shadow,
|
|
200
|
+
main: scheme.shadow, // TODO: verify if it is needed
|
|
168
201
|
},
|
|
169
202
|
scrim: {
|
|
170
203
|
main: scheme.scrim,
|
|
@@ -184,14 +217,6 @@ export const getMUIPalette = (themeMode, themescheme) => {
|
|
|
184
217
|
white: scheme.background,
|
|
185
218
|
black: scheme.onBackground,
|
|
186
219
|
},
|
|
187
|
-
text: {
|
|
188
|
-
primary: scheme.onSurface,
|
|
189
|
-
secondary: scheme.onSecondaryContainer,
|
|
190
|
-
},
|
|
191
|
-
info: {
|
|
192
|
-
main: scheme.info,
|
|
193
|
-
contrastText: scheme.onInfo,
|
|
194
|
-
},
|
|
195
220
|
onInfo: {
|
|
196
221
|
main: scheme.onInfo,
|
|
197
222
|
contrastText: scheme.info,
|
|
@@ -204,10 +229,6 @@ export const getMUIPalette = (themeMode, themescheme) => {
|
|
|
204
229
|
main: scheme.onInfoContainer,
|
|
205
230
|
contrastText: scheme.infoContainer,
|
|
206
231
|
},
|
|
207
|
-
success: {
|
|
208
|
-
main: scheme.success,
|
|
209
|
-
contrastText: scheme.onSuccess,
|
|
210
|
-
},
|
|
211
232
|
onSuccess: {
|
|
212
233
|
main: scheme.onSuccess,
|
|
213
234
|
contrastText: scheme.success,
|
|
@@ -220,10 +241,6 @@ export const getMUIPalette = (themeMode, themescheme) => {
|
|
|
220
241
|
main: scheme.onSuccessContainer,
|
|
221
242
|
contrastText: scheme.successContainer,
|
|
222
243
|
},
|
|
223
|
-
warning: {
|
|
224
|
-
main: scheme.warning,
|
|
225
|
-
contrastText: scheme.onWarning,
|
|
226
|
-
},
|
|
227
244
|
onWarning: {
|
|
228
245
|
main: scheme.onWarning,
|
|
229
246
|
contrastText: scheme.warning,
|
|
@@ -258,6 +275,13 @@ export const getMUIPalette = (themeMode, themescheme) => {
|
|
|
258
275
|
divider: scheme.outlineVariant,
|
|
259
276
|
additional: scheme.additionalColors,
|
|
260
277
|
},
|
|
261
|
-
|
|
278
|
+
colors: {
|
|
279
|
+
schemes: scheme.schemes,
|
|
280
|
+
stateLayers: scheme.stateLayers,
|
|
281
|
+
inverseSchemes: scheme.inverseSchemes,
|
|
282
|
+
inverseStateLayers: scheme.inverseStateLayers,
|
|
283
|
+
blendSchemaWithStateLayer: getBlendSchemaWithStateLayer(scheme.generatedSchemes, scheme.generatedStateLayers),
|
|
284
|
+
blendInverseSchemaWithStateLayer: getInverseBlendSchemaWithStateLayer(scheme.generatedInverseSchemes, scheme.generatedInverseStateLayers),
|
|
285
|
+
},
|
|
262
286
|
};
|
|
263
287
|
};
|