@webpros/mui-theme 0.1.2 → 0.1.3
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/src/components/data-display/Avatar/Avatar.d.ts +3 -0
- package/dist/src/components/data-display/Avatar/Avatar.js +4 -0
- package/dist/src/components/data-display/Avatar/Avatar.theme.d.ts +12 -0
- package/dist/src/components/data-display/Avatar/Avatar.theme.js +20 -0
- package/dist/src/components/data-display/Avatar/index.d.ts +1 -0
- package/dist/src/components/data-display/Avatar/index.js +2 -0
- package/dist/src/components/data-display/Badge/Badge.d.ts +3 -0
- package/dist/src/components/data-display/Badge/Badge.js +4 -0
- package/dist/src/components/data-display/Badge/Badge.theme.d.ts +24 -0
- package/dist/src/components/data-display/Badge/Badge.theme.js +131 -0
- package/dist/src/components/data-display/Badge/index.d.ts +1 -0
- package/dist/src/components/data-display/Badge/index.js +2 -0
- package/dist/src/components/data-display/Chip/Chip.d.ts +3 -0
- package/dist/src/components/data-display/Chip/Chip.js +4 -0
- package/dist/src/components/data-display/Chip/Chip.theme.d.ts +19 -0
- package/dist/src/components/data-display/Chip/Chip.theme.js +503 -0
- package/dist/src/components/data-display/Chip/components/ChipDeleteIcon.d.ts +1 -0
- package/dist/src/components/data-display/Chip/components/ChipDeleteIcon.js +4 -0
- package/dist/src/components/data-display/Chip/index.d.ts +1 -0
- package/dist/src/components/data-display/Chip/index.js +2 -0
- package/dist/src/components/data-display/DataGrid/DataGrid.d.ts +4 -0
- package/dist/src/components/data-display/DataGrid/DataGrid.js +7 -0
- package/dist/src/components/data-display/DataGrid/DataGrid.theme.d.ts +11 -0
- package/dist/src/components/data-display/DataGrid/DataGrid.theme.js +21 -0
- package/dist/src/components/data-display/DataGrid/index.d.ts +1 -0
- package/dist/src/components/data-display/DataGrid/index.js +2 -0
- package/dist/src/components/data-display/DataGrid/mock-data.d.ts +18 -0
- package/dist/src/components/data-display/DataGrid/mock-data.js +184 -0
- package/dist/src/components/data-display/Divider/Divider.d.ts +3 -0
- package/dist/src/components/data-display/Divider/Divider.js +4 -0
- package/dist/src/components/data-display/Divider/Divider.theme.d.ts +11 -0
- package/dist/src/components/data-display/Divider/Divider.theme.js +19 -0
- package/dist/src/components/data-display/Divider/index.d.ts +1 -0
- package/dist/src/components/data-display/Divider/index.js +2 -0
- package/dist/src/components/data-display/List/List.d.ts +3 -0
- package/dist/src/components/data-display/List/List.js +4 -0
- package/dist/src/components/data-display/List/List.theme.d.ts +11 -0
- package/dist/src/components/data-display/List/List.theme.js +5 -0
- package/dist/src/components/data-display/List/index.d.ts +1 -0
- package/dist/src/components/data-display/List/index.js +2 -0
- package/dist/src/components/data-display/ListItem/ListItem.d.ts +3 -0
- package/dist/src/components/data-display/ListItem/ListItem.js +4 -0
- package/dist/src/components/data-display/ListItem/ListItem.theme.d.ts +11 -0
- package/dist/src/components/data-display/ListItem/ListItem.theme.js +13 -0
- package/dist/src/components/data-display/ListItem/index.d.ts +1 -0
- package/dist/src/components/data-display/ListItem/index.js +2 -0
- package/dist/src/components/data-display/ListItemAvatar/ListItemAvatar.d.ts +4 -0
- package/dist/src/components/data-display/ListItemAvatar/ListItemAvatar.js +4 -0
- package/dist/src/components/data-display/ListItemAvatar/ListItemAvatar.theme.d.ts +11 -0
- package/dist/src/components/data-display/ListItemAvatar/ListItemAvatar.theme.js +11 -0
- package/dist/src/components/data-display/ListItemAvatar/index.d.ts +1 -0
- package/dist/src/components/data-display/ListItemAvatar/index.js +2 -0
- package/dist/src/components/data-display/ListItemButton/ListItemButton.d.ts +3 -0
- package/dist/src/components/data-display/ListItemButton/ListItemButton.js +4 -0
- package/dist/src/components/data-display/ListItemButton/ListItemButton.theme.d.ts +16 -0
- package/dist/src/components/data-display/ListItemButton/ListItemButton.theme.js +68 -0
- package/dist/src/components/data-display/ListItemButton/index.d.ts +1 -0
- package/dist/src/components/data-display/ListItemButton/index.js +2 -0
- package/dist/src/components/data-display/ListItemIcon/ListItemIcon.d.ts +4 -0
- package/dist/src/components/data-display/ListItemIcon/ListItemIcon.js +4 -0
- package/dist/src/components/data-display/ListItemIcon/ListItemIcon.theme.d.ts +11 -0
- package/dist/src/components/data-display/ListItemIcon/ListItemIcon.theme.js +14 -0
- package/dist/src/components/data-display/ListItemIcon/index.d.ts +1 -0
- package/dist/src/components/data-display/ListItemIcon/index.js +2 -0
- package/dist/src/components/data-display/ListSubheader/ListSubheader.d.ts +3 -0
- package/dist/src/components/data-display/ListSubheader/ListSubheader.js +4 -0
- package/dist/src/components/data-display/ListSubheader/ListSubheader.theme.d.ts +11 -0
- package/dist/src/components/data-display/ListSubheader/ListSubheader.theme.js +15 -0
- package/dist/src/components/data-display/ListSubheader/index.d.ts +1 -0
- package/dist/src/components/data-display/ListSubheader/index.js +2 -0
- package/dist/src/components/data-display/Table/Table.d.ts +4 -0
- package/dist/src/components/data-display/Table/Table.js +4 -0
- package/dist/src/components/data-display/Table/Table.theme.d.ts +25 -0
- package/dist/src/components/data-display/Table/Table.theme.js +41 -0
- package/dist/src/components/data-display/Table/index.d.ts +1 -0
- package/dist/src/components/data-display/Table/index.js +2 -0
- package/dist/src/components/data-display/Table/mock-data.d.ts +17 -0
- package/dist/src/components/data-display/Table/mock-data.js +198 -0
- package/dist/src/components/data-display/Tooltip/Tooltip.d.ts +4 -0
- package/dist/src/components/data-display/Tooltip/Tooltip.js +4 -0
- package/dist/src/components/data-display/Tooltip/Tooltip.theme.d.ts +11 -0
- package/dist/src/components/data-display/Tooltip/Tooltip.theme.js +21 -0
- package/dist/src/components/data-display/Tooltip/index.d.ts +1 -0
- package/dist/src/components/data-display/Tooltip/index.js +2 -0
- package/dist/src/components/data-display/Typography/Typography.d.ts +3 -0
- package/dist/src/components/data-display/Typography/Typography.js +4 -0
- package/dist/src/components/data-display/Typography/Typography.theme.d.ts +36 -0
- package/dist/src/components/data-display/Typography/Typography.theme.js +169 -0
- package/dist/src/components/data-display/Typography/index.d.ts +1 -0
- package/dist/src/components/data-display/Typography/index.js +2 -0
- package/dist/src/components/feedback/Alert/Alert.d.ts +4 -0
- package/dist/src/components/feedback/Alert/Alert.js +4 -0
- package/dist/src/components/feedback/Alert/Alert.theme.d.ts +11 -0
- package/dist/src/components/feedback/Alert/Alert.theme.js +60 -0
- package/dist/src/components/feedback/Alert/index.d.ts +1 -0
- package/dist/src/components/feedback/Alert/index.js +2 -0
- package/dist/src/components/feedback/CircularProgress/CircularProgress.d.ts +4 -0
- package/dist/src/components/feedback/CircularProgress/CircularProgress.js +4 -0
- package/dist/src/components/feedback/CircularProgress/CircularProgress.theme.d.ts +10 -0
- package/dist/src/components/feedback/CircularProgress/CircularProgress.theme.js +11 -0
- package/dist/src/components/feedback/CircularProgress/index.d.ts +1 -0
- package/dist/src/components/feedback/CircularProgress/index.js +2 -0
- package/dist/src/components/feedback/Dialog/Dialog.d.ts +4 -0
- package/dist/src/components/feedback/Dialog/Dialog.js +5 -0
- package/dist/src/components/feedback/Dialog/Dialog.theme.d.ts +30 -0
- package/dist/src/components/feedback/Dialog/Dialog.theme.js +67 -0
- package/dist/src/components/feedback/Dialog/index.d.ts +1 -0
- package/dist/src/components/feedback/Dialog/index.js +2 -0
- package/dist/src/components/feedback/LinearProgress/LinearProgress.d.ts +4 -0
- package/dist/src/components/feedback/LinearProgress/LinearProgress.js +4 -0
- package/dist/src/components/feedback/LinearProgress/LinearProgress.theme.d.ts +10 -0
- package/dist/src/components/feedback/LinearProgress/LinearProgress.theme.js +13 -0
- package/dist/src/components/feedback/LinearProgress/index.d.ts +1 -0
- package/dist/src/components/feedback/LinearProgress/index.js +2 -0
- package/dist/src/components/feedback/Snackbar/Snackbar.d.ts +4 -0
- package/dist/src/components/feedback/Snackbar/Snackbar.js +4 -0
- package/dist/src/components/feedback/Snackbar/Snackbar.theme.d.ts +10 -0
- package/dist/src/components/feedback/Snackbar/Snackbar.theme.js +13 -0
- package/dist/src/components/feedback/Snackbar/index.d.ts +1 -0
- package/dist/src/components/feedback/Snackbar/index.js +2 -0
- package/dist/src/components/index.d.ts +43 -0
- package/dist/src/components/index.js +44 -0
- package/dist/src/components/inputs/Autocomplete/Autocomplete.d.ts +4 -0
- package/dist/src/components/inputs/Autocomplete/Autocomplete.js +4 -0
- package/dist/src/components/inputs/Autocomplete/Autocomplete.theme.d.ts +10 -0
- package/dist/src/components/inputs/Autocomplete/Autocomplete.theme.js +67 -0
- package/dist/src/components/inputs/Autocomplete/components/AutocompletePopupIcon.d.ts +1 -0
- package/dist/src/components/inputs/Autocomplete/components/AutocompletePopupIcon.js +4 -0
- package/dist/src/components/inputs/Autocomplete/index.d.ts +1 -0
- package/dist/src/components/inputs/Autocomplete/index.js +2 -0
- package/dist/src/components/inputs/Button/Button.d.ts +3 -0
- package/dist/src/components/inputs/Button/Button.js +4 -0
- package/dist/src/components/inputs/Button/Button.theme.d.ts +26 -0
- package/dist/src/components/inputs/Button/Button.theme.js +243 -0
- package/dist/src/components/inputs/Button/index.d.ts +1 -0
- package/dist/src/components/inputs/Button/index.js +2 -0
- package/dist/src/components/inputs/Checkbox/Checkbox.d.ts +4 -0
- package/dist/src/components/inputs/Checkbox/Checkbox.js +4 -0
- package/dist/src/components/inputs/Checkbox/Checkbox.theme.d.ts +10 -0
- package/dist/src/components/inputs/Checkbox/Checkbox.theme.js +20 -0
- package/dist/src/components/inputs/Checkbox/index.d.ts +1 -0
- package/dist/src/components/inputs/Checkbox/index.js +2 -0
- package/dist/src/components/inputs/Fab/Fab.d.ts +3 -0
- package/dist/src/components/inputs/Fab/Fab.js +4 -0
- package/dist/src/components/inputs/Fab/Fab.theme.d.ts +25 -0
- package/dist/src/components/inputs/Fab/Fab.theme.js +135 -0
- package/dist/src/components/inputs/Fab/index.d.ts +1 -0
- package/dist/src/components/inputs/Fab/index.js +2 -0
- package/dist/src/components/inputs/IconButton/IconButton.d.ts +3 -0
- package/dist/src/components/inputs/IconButton/IconButton.js +4 -0
- package/dist/src/components/inputs/IconButton/IconButton.theme.d.ts +19 -0
- package/dist/src/components/inputs/IconButton/IconButton.theme.js +116 -0
- package/dist/src/components/inputs/IconButton/index.d.ts +1 -0
- package/dist/src/components/inputs/IconButton/index.js +2 -0
- package/dist/src/components/inputs/InputBase/InputBase.theme.d.ts +30 -0
- package/dist/src/components/inputs/InputBase/InputBase.theme.js +70 -0
- package/dist/src/components/inputs/InputBase/index.d.ts +1 -0
- package/dist/src/components/inputs/InputBase/index.js +2 -0
- package/dist/src/components/inputs/InputLabel/InputLabel.d.ts +2 -0
- package/dist/src/components/inputs/InputLabel/InputLabel.js +3 -0
- package/dist/src/components/inputs/InputLabel/InputLabel.theme.d.ts +9 -0
- package/dist/src/components/inputs/InputLabel/InputLabel.theme.js +20 -0
- package/dist/src/components/inputs/InputLabel/index.d.ts +1 -0
- package/dist/src/components/inputs/InputLabel/index.js +2 -0
- package/dist/src/components/inputs/Select/Select.d.ts +4 -0
- package/dist/src/components/inputs/Select/Select.js +3 -0
- package/dist/src/components/inputs/Select/Select.theme.d.ts +9 -0
- package/dist/src/components/inputs/Select/Select.theme.js +46 -0
- package/dist/src/components/inputs/Select/index.d.ts +1 -0
- package/dist/src/components/inputs/Select/index.js +2 -0
- package/dist/src/components/inputs/Switch/Switch.d.ts +4 -0
- package/dist/src/components/inputs/Switch/Switch.js +4 -0
- package/dist/src/components/inputs/Switch/Switch.theme.d.ts +11 -0
- package/dist/src/components/inputs/Switch/Switch.theme.js +97 -0
- package/dist/src/components/inputs/Switch/index.d.ts +1 -0
- package/dist/src/components/inputs/Switch/index.js +2 -0
- package/dist/src/components/inputs/TextField/TextField.d.ts +4 -0
- package/dist/src/components/inputs/TextField/TextField.js +4 -0
- package/dist/src/components/inputs/TextField/TextField.theme.d.ts +14 -0
- package/dist/src/components/inputs/TextField/TextField.theme.js +32 -0
- package/dist/src/components/inputs/TextField/index.d.ts +1 -0
- package/dist/src/components/inputs/TextField/index.js +2 -0
- package/dist/src/components/inputs/TimePicker/TimePicker.theme.d.ts +8 -0
- package/dist/src/components/inputs/TimePicker/TimePicker.theme.js +23 -0
- package/dist/src/components/inputs/TimePicker/index.d.ts +1 -0
- package/dist/src/components/inputs/TimePicker/index.js +2 -0
- package/dist/src/components/inputs/ToggleButton/ToggleButton.d.ts +3 -0
- package/dist/src/components/inputs/ToggleButton/ToggleButton.js +4 -0
- package/dist/src/components/inputs/ToggleButton/ToggleButton.theme.d.ts +11 -0
- package/dist/src/components/inputs/ToggleButton/ToggleButton.theme.js +26 -0
- package/dist/src/components/inputs/ToggleButton/index.d.ts +1 -0
- package/dist/src/components/inputs/ToggleButton/index.js +2 -0
- package/dist/src/components/inputs/ToggleButtonGroup/ToggleButtonGroup.d.ts +4 -0
- package/dist/src/components/inputs/ToggleButtonGroup/ToggleButtonGroup.js +4 -0
- package/dist/src/components/inputs/ToggleButtonGroup/ToggleButtonGroup.theme.d.ts +11 -0
- package/dist/src/components/inputs/ToggleButtonGroup/ToggleButtonGroup.theme.js +25 -0
- package/dist/src/components/inputs/ToggleButtonGroup/index.d.ts +1 -0
- package/dist/src/components/inputs/ToggleButtonGroup/index.js +2 -0
- package/dist/src/components/navigation/Drawer/Drawer.d.ts +4 -0
- package/dist/src/components/navigation/Drawer/Drawer.js +4 -0
- package/dist/src/components/navigation/Drawer/Drawer.theme.d.ts +10 -0
- package/dist/src/components/navigation/Drawer/Drawer.theme.js +15 -0
- package/dist/src/components/navigation/Drawer/index.d.ts +1 -0
- package/dist/src/components/navigation/Drawer/index.js +2 -0
- package/dist/src/components/navigation/Link/Link.d.ts +3 -0
- package/dist/src/components/navigation/Link/Link.js +4 -0
- package/dist/src/components/navigation/Link/Link.theme.d.ts +11 -0
- package/dist/src/components/navigation/Link/Link.theme.js +42 -0
- package/dist/src/components/navigation/Link/index.d.ts +1 -0
- package/dist/src/components/navigation/Link/index.js +3 -0
- package/dist/src/components/navigation/Menu/Menu.d.ts +4 -0
- package/dist/src/components/navigation/Menu/Menu.js +4 -0
- package/dist/src/components/navigation/Menu/Menu.theme.d.ts +10 -0
- package/dist/src/components/navigation/Menu/Menu.theme.js +19 -0
- package/dist/src/components/navigation/Menu/index.d.ts +1 -0
- package/dist/src/components/navigation/Menu/index.js +2 -0
- package/dist/src/components/navigation/MenuItem/MenuItem.d.ts +3 -0
- package/dist/src/components/navigation/MenuItem/MenuItem.js +4 -0
- package/dist/src/components/navigation/MenuItem/MenuItem.theme.d.ts +10 -0
- package/dist/src/components/navigation/MenuItem/MenuItem.theme.js +22 -0
- package/dist/src/components/navigation/MenuItem/index.d.ts +1 -0
- package/dist/src/components/navigation/MenuItem/index.js +2 -0
- package/dist/src/components/navigation/Pagination/Pagination.d.ts +4 -0
- package/dist/src/components/navigation/Pagination/Pagination.js +4 -0
- package/dist/src/components/navigation/Pagination/Pagination.theme.d.ts +11 -0
- package/dist/src/components/navigation/Pagination/Pagination.theme.js +8 -0
- package/dist/src/components/navigation/Pagination/index.d.ts +1 -0
- package/dist/src/components/navigation/Pagination/index.js +2 -0
- package/dist/src/components/navigation/PaginationItem/PaginationItem.d.ts +3 -0
- package/dist/src/components/navigation/PaginationItem/PaginationItem.js +4 -0
- package/dist/src/components/navigation/PaginationItem/PaginationItem.theme.d.ts +11 -0
- package/dist/src/components/navigation/PaginationItem/PaginationItem.theme.js +27 -0
- package/dist/src/components/navigation/PaginationItem/index.d.ts +1 -0
- package/dist/src/components/navigation/PaginationItem/index.js +2 -0
- package/dist/src/components/navigation/Tab/Tab.d.ts +3 -0
- package/dist/src/components/navigation/Tab/Tab.js +4 -0
- package/dist/src/components/navigation/Tab/Tab.theme.d.ts +10 -0
- package/dist/src/components/navigation/Tab/Tab.theme.js +18 -0
- package/dist/src/components/navigation/Tab/index.d.ts +1 -0
- package/dist/src/components/navigation/Tab/index.js +2 -0
- package/dist/src/components/navigation/TabList/TabList.d.ts +3 -0
- package/dist/src/components/navigation/TabList/TabList.js +4 -0
- package/dist/src/components/navigation/TabList/TabList.theme.d.ts +10 -0
- package/dist/src/components/navigation/TabList/TabList.theme.js +17 -0
- package/dist/src/components/navigation/TabList/index.d.ts +1 -0
- package/dist/src/components/navigation/TabList/index.js +2 -0
- package/dist/src/components/surfaces/Accordion/Accordion.d.ts +3 -0
- package/dist/src/components/surfaces/Accordion/Accordion.js +4 -0
- package/dist/src/components/surfaces/Accordion/Accordion.theme.d.ts +11 -0
- package/dist/src/components/surfaces/Accordion/Accordion.theme.js +43 -0
- package/dist/src/components/surfaces/Accordion/index.d.ts +1 -0
- package/dist/src/components/surfaces/Accordion/index.js +2 -0
- package/dist/src/components/surfaces/AppBar/AppBar.d.ts +3 -0
- package/dist/src/components/surfaces/AppBar/AppBar.js +4 -0
- package/dist/src/components/surfaces/AppBar/AppBar.theme.d.ts +11 -0
- package/dist/src/components/surfaces/AppBar/AppBar.theme.js +22 -0
- package/dist/src/components/surfaces/AppBar/index.d.ts +1 -0
- package/dist/src/components/surfaces/AppBar/index.js +2 -0
- package/dist/src/components/surfaces/Card/Card.d.ts +3 -0
- package/dist/src/components/surfaces/Card/Card.js +4 -0
- package/dist/src/components/surfaces/Card/Card.theme.d.ts +16 -0
- package/dist/src/components/surfaces/Card/Card.theme.js +100 -0
- package/dist/src/components/surfaces/Card/index.d.ts +1 -0
- package/dist/src/components/surfaces/Card/index.js +2 -0
- package/dist/src/components/surfaces/Paper/Paper.d.ts +3 -0
- package/dist/src/components/surfaces/Paper/Paper.js +4 -0
- package/dist/src/components/surfaces/Paper/Paper.theme.d.ts +9 -0
- package/dist/src/components/surfaces/Paper/Paper.theme.js +14 -0
- package/dist/src/components/surfaces/Paper/index.d.ts +1 -0
- package/dist/src/components/surfaces/Paper/index.js +2 -0
- package/dist/src/components/utils/CssBaseline/CssBaseline.d.ts +4 -0
- package/dist/src/components/utils/CssBaseline/CssBaseline.js +4 -0
- package/dist/src/components/utils/CssBaseline/CssBaseline.theme.d.ts +11 -0
- package/dist/src/components/utils/CssBaseline/CssBaseline.theme.js +8 -0
- package/dist/src/components/utils/CssBaseline/index.d.ts +1 -0
- package/dist/src/components/utils/CssBaseline/index.js +2 -0
- package/dist/src/hooks/useThemeMode.d.ts +3 -0
- package/dist/src/hooks/useThemeMode.js +20 -0
- package/dist/src/hooks/useTonalPalette.d.ts +3 -0
- package/dist/src/hooks/useTonalPalette.js +32 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.js +7 -0
- package/dist/src/providers/ThemeModeProvider.d.ts +13 -0
- package/dist/src/providers/ThemeModeProvider.js +16 -0
- package/dist/src/providers/ThemeSchemeProvider.d.ts +12 -0
- package/dist/src/providers/ThemeSchemeProvider.js +29 -0
- package/dist/src/providers/WebProsMuiThemeProvider.d.ts +9 -0
- package/dist/src/providers/WebProsMuiThemeProvider.js +5 -0
- package/dist/src/providers/WebProsTheme.d.ts +9 -0
- package/dist/src/providers/WebProsTheme.js +25 -0
- package/dist/src/style/additional-color-palette.d.ts +3 -0
- package/dist/src/style/additional-color-palette.js +26 -0
- package/dist/src/style/custom-color-palette.d.ts +3 -0
- package/dist/src/style/custom-color-palette.js +75 -0
- package/dist/src/tokens/ThemeColorTokens.d.ts +96 -0
- package/dist/src/tokens/ThemeColorTokens.js +172 -0
- package/dist/src/tokens/ThemeMode.d.ts +1 -0
- package/dist/src/tokens/ThemeMode.js +1 -0
- package/dist/src/tokens/ThemeScheme.d.ts +12 -0
- package/dist/src/tokens/ThemeScheme.js +8 -0
- package/dist/src/tokens/TonalPalette.d.ts +10 -0
- package/dist/src/tokens/TonalPalette.js +10 -0
- package/dist/src/tokens/Tone.d.ts +174 -0
- package/dist/src/tokens/Tone.js +157 -0
- package/dist/src/tokens/additionalColors/index.d.ts +1 -0
- package/dist/src/tokens/additionalColors/index.js +5 -0
- package/dist/src/tokens/index.d.ts +2 -0
- package/dist/src/tokens/index.js +2 -0
- package/dist/src/utils/generateTokens.d.ts +4 -0
- package/dist/src/utils/generateTokens.js +107 -0
- package/dist/src/utils/getMUIComponents.d.ts +7 -0
- package/dist/src/utils/getMUIComponents.js +4 -0
- package/dist/src/utils/getMUIPalette.d.ts +101 -0
- package/dist/src/utils/getMUIPalette.js +263 -0
- package/dist/src/utils/getMuiLocaleByCode.d.ts +11 -0
- package/dist/src/utils/getMuiLocaleByCode.js +13 -0
- package/dist/src/utils/getStateLayerColor.d.ts +25 -0
- package/dist/src/utils/getStateLayerColor.js +36 -0
- package/dist/src/utils/index.d.ts +6 -0
- package/dist/src/utils/index.js +7 -0
- package/dist/src/utils/patchMUIShadows.d.ts +2 -0
- package/dist/src/utils/patchMUIShadows.js +5 -0
- package/package.json +22 -18
|
@@ -0,0 +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, getTabList, getTextField, getToggleButton, getToggleButtonGroup, getTooltip, getTypography, getAvatar, getSelect, getInputLabel, getTimePicker, getSnackbar, getCircularProgress, getLinearProgress, getDialog, getDataGrid, getTable, getAutocomplete, getInputBase, } from '../components';
|
|
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)), getSelect(theme)), getTimePicker(theme)), getInputLabel(theme)), getButton(theme)), getCard(theme)), getCheckbox(theme)), getChip(theme)), getDivider(theme)), getDrawer(theme)), getFab(theme)), getIconButton(theme)), getLink(theme)), getListItem(theme)), getListItemButton(theme)), getListItemIcon(theme)), getListItemAvatar(theme)), getListSubheader(theme)), getMenu(theme)), getMenuItem(theme)), getPaginationItem(theme)), getPaper(theme)), getSwitch(theme)), getTab(theme)), getTabList(theme)), getTextField(theme)), getToggleButton(theme)), getToggleButtonGroup(theme)), getTooltip(theme)), getTypography(theme)), getSnackbar(theme)), getCircularProgress(theme)), getLinearProgress(theme)), getDialog(theme)), getDataGrid(theme)), getTable(theme)), getAutocomplete(theme)), getInputBase(theme)),
|
|
4
|
+
});
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ThemeOptions } from '@mui/material';
|
|
2
|
+
import { TonalPalette } from '../tokens/TonalPalette';
|
|
3
|
+
import { ThemeMode } from '../tokens/ThemeMode';
|
|
4
|
+
import { ThemeScheme } from '../tokens/ThemeScheme';
|
|
5
|
+
import { AdditionalColorTone } from '../tokens/Tone';
|
|
6
|
+
declare module '@mui/material/styles/createTheme' {
|
|
7
|
+
interface ThemeOptions {
|
|
8
|
+
tones?: TonalPalette;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
declare module '@mui/material/styles/createPalette' {
|
|
12
|
+
interface M3Palette {
|
|
13
|
+
onPrimary: PaletteColor;
|
|
14
|
+
primaryContainer: PaletteColor;
|
|
15
|
+
onPrimaryContainer: PaletteColor;
|
|
16
|
+
secondary: PaletteColor;
|
|
17
|
+
onSecondary: PaletteColor;
|
|
18
|
+
secondaryContainer: PaletteColor;
|
|
19
|
+
onSecondaryContainer: PaletteColor;
|
|
20
|
+
tertiary: PaletteColor;
|
|
21
|
+
onTertiary: PaletteColor;
|
|
22
|
+
tertiaryContainer: PaletteColor;
|
|
23
|
+
onTertiaryContainer: PaletteColor;
|
|
24
|
+
onError: PaletteColor;
|
|
25
|
+
errorContainer: PaletteColor;
|
|
26
|
+
onErrorContainer: PaletteColor;
|
|
27
|
+
primaryFixed: PaletteColor;
|
|
28
|
+
primaryFixedDim: PaletteColor;
|
|
29
|
+
onPrimaryFixed: PaletteColor;
|
|
30
|
+
onPrimaryFixedVariant: PaletteColor;
|
|
31
|
+
secondaryFixed: PaletteColor;
|
|
32
|
+
secondaryFixedDim: PaletteColor;
|
|
33
|
+
onSecondaryFixed: PaletteColor;
|
|
34
|
+
onSecondaryFixedVariant: PaletteColor;
|
|
35
|
+
tertiaryFixed: PaletteColor;
|
|
36
|
+
tertiaryFixedDim: PaletteColor;
|
|
37
|
+
onTertiaryFixed: PaletteColor;
|
|
38
|
+
onTertiaryFixedVariant: PaletteColor;
|
|
39
|
+
surface: PaletteColor;
|
|
40
|
+
onSurface: PaletteColor;
|
|
41
|
+
surfaceDim: PaletteColor;
|
|
42
|
+
surfaceBright: PaletteColor;
|
|
43
|
+
surfaceContainerLowest: PaletteColor;
|
|
44
|
+
surfaceContainerLow: PaletteColor;
|
|
45
|
+
surfaceContainer: PaletteColor;
|
|
46
|
+
surfaceContainerHigh: PaletteColor;
|
|
47
|
+
surfaceContainerHighest: PaletteColor;
|
|
48
|
+
onSurfaceVariant: PaletteColor;
|
|
49
|
+
outline: PaletteColor;
|
|
50
|
+
outlineVariant: PaletteColor;
|
|
51
|
+
inversePrimary: PaletteColor;
|
|
52
|
+
inverseSurface: PaletteColor;
|
|
53
|
+
inverseOnSurface: PaletteColor;
|
|
54
|
+
shadow: PaletteColor;
|
|
55
|
+
scrim: PaletteColor;
|
|
56
|
+
onBackground: PaletteColor;
|
|
57
|
+
onInfo: PaletteColor;
|
|
58
|
+
infoContainer: PaletteColor;
|
|
59
|
+
onInfoContainer: PaletteColor;
|
|
60
|
+
onSuccess: PaletteColor;
|
|
61
|
+
successContainer: PaletteColor;
|
|
62
|
+
onSuccessContainer: PaletteColor;
|
|
63
|
+
onWarning: PaletteColor;
|
|
64
|
+
warningContainer: PaletteColor;
|
|
65
|
+
onWarningContainer: PaletteColor;
|
|
66
|
+
undefined: PaletteColor;
|
|
67
|
+
onUndefined: PaletteColor;
|
|
68
|
+
undefinedContainer: PaletteColor;
|
|
69
|
+
onUndefinedContainer: PaletteColor;
|
|
70
|
+
supportive: PaletteColor;
|
|
71
|
+
}
|
|
72
|
+
interface M3AdditionalColors {
|
|
73
|
+
red: AdditionalColorTone;
|
|
74
|
+
pink: AdditionalColorTone;
|
|
75
|
+
purple: AdditionalColorTone;
|
|
76
|
+
deepPurple: AdditionalColorTone;
|
|
77
|
+
indigo: AdditionalColorTone;
|
|
78
|
+
blue: AdditionalColorTone;
|
|
79
|
+
lightBlue: AdditionalColorTone;
|
|
80
|
+
cyan: AdditionalColorTone;
|
|
81
|
+
teal: AdditionalColorTone;
|
|
82
|
+
green: AdditionalColorTone;
|
|
83
|
+
lightGreen: AdditionalColorTone;
|
|
84
|
+
lime: AdditionalColorTone;
|
|
85
|
+
yellow: AdditionalColorTone;
|
|
86
|
+
amber: AdditionalColorTone;
|
|
87
|
+
orange: AdditionalColorTone;
|
|
88
|
+
deepOrange: AdditionalColorTone;
|
|
89
|
+
brown: AdditionalColorTone;
|
|
90
|
+
}
|
|
91
|
+
interface M3PaletteOptions extends Record<keyof M3Palette, PaletteColorOptions> {
|
|
92
|
+
themeMode: string;
|
|
93
|
+
additional: M3AdditionalColors;
|
|
94
|
+
}
|
|
95
|
+
interface Palette extends M3Palette {
|
|
96
|
+
additional: M3AdditionalColors;
|
|
97
|
+
}
|
|
98
|
+
interface PaletteOptions extends M3PaletteOptions {
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
export declare const getMUIPalette: (themeMode: ThemeMode, themescheme: ThemeScheme) => ThemeOptions;
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
export const getMUIPalette = (themeMode, themescheme) => {
|
|
2
|
+
const scheme = themescheme[themeMode];
|
|
3
|
+
return {
|
|
4
|
+
palette: {
|
|
5
|
+
themeMode,
|
|
6
|
+
primary: {
|
|
7
|
+
main: scheme.primary,
|
|
8
|
+
contrastText: scheme.onPrimary,
|
|
9
|
+
},
|
|
10
|
+
onPrimary: {
|
|
11
|
+
main: scheme.onPrimary,
|
|
12
|
+
contrastText: scheme.primary,
|
|
13
|
+
},
|
|
14
|
+
primaryContainer: {
|
|
15
|
+
main: scheme.primaryContainer,
|
|
16
|
+
contrastText: scheme.onPrimaryContainer,
|
|
17
|
+
},
|
|
18
|
+
onPrimaryContainer: {
|
|
19
|
+
main: scheme.onPrimaryContainer,
|
|
20
|
+
contrastText: scheme.primaryContainer,
|
|
21
|
+
},
|
|
22
|
+
secondary: {
|
|
23
|
+
main: scheme.secondary,
|
|
24
|
+
contrastText: scheme.onSecondary,
|
|
25
|
+
},
|
|
26
|
+
onSecondary: {
|
|
27
|
+
main: scheme.onSecondary,
|
|
28
|
+
contrastText: scheme.secondary,
|
|
29
|
+
},
|
|
30
|
+
secondaryContainer: {
|
|
31
|
+
main: scheme.secondaryContainer,
|
|
32
|
+
contrastText: scheme.onSecondaryContainer,
|
|
33
|
+
},
|
|
34
|
+
onSecondaryContainer: {
|
|
35
|
+
main: scheme.onSecondaryContainer,
|
|
36
|
+
contrastText: scheme.secondaryContainer,
|
|
37
|
+
},
|
|
38
|
+
tertiary: {
|
|
39
|
+
main: scheme.tertiary,
|
|
40
|
+
contrastText: scheme.onTertiary,
|
|
41
|
+
},
|
|
42
|
+
onTertiary: {
|
|
43
|
+
main: scheme.onTertiary,
|
|
44
|
+
contrastText: scheme.tertiary,
|
|
45
|
+
},
|
|
46
|
+
tertiaryContainer: {
|
|
47
|
+
main: scheme.tertiaryContainer,
|
|
48
|
+
contrastText: scheme.onTertiaryContainer,
|
|
49
|
+
},
|
|
50
|
+
onTertiaryContainer: {
|
|
51
|
+
main: scheme.onTertiaryContainer,
|
|
52
|
+
contrastText: scheme.tertiaryContainer,
|
|
53
|
+
},
|
|
54
|
+
error: {
|
|
55
|
+
main: scheme.error,
|
|
56
|
+
contrastText: scheme.onError,
|
|
57
|
+
},
|
|
58
|
+
onError: {
|
|
59
|
+
main: scheme.onError,
|
|
60
|
+
contrastText: scheme.error,
|
|
61
|
+
},
|
|
62
|
+
errorContainer: {
|
|
63
|
+
main: scheme.errorContainer,
|
|
64
|
+
contrastText: scheme.onErrorContainer,
|
|
65
|
+
},
|
|
66
|
+
onErrorContainer: {
|
|
67
|
+
main: scheme.onErrorContainer,
|
|
68
|
+
contrastText: scheme.errorContainer,
|
|
69
|
+
},
|
|
70
|
+
primaryFixed: {
|
|
71
|
+
main: scheme.primaryFixed,
|
|
72
|
+
},
|
|
73
|
+
primaryFixedDim: {
|
|
74
|
+
main: scheme.primaryFixedDim,
|
|
75
|
+
},
|
|
76
|
+
onPrimaryFixed: {
|
|
77
|
+
main: scheme.onPrimaryFixed,
|
|
78
|
+
},
|
|
79
|
+
onPrimaryFixedVariant: {
|
|
80
|
+
main: scheme.onPrimaryFixedVariant,
|
|
81
|
+
},
|
|
82
|
+
secondaryFixed: {
|
|
83
|
+
main: scheme.secondaryFixed,
|
|
84
|
+
},
|
|
85
|
+
secondaryFixedDim: {
|
|
86
|
+
main: scheme.secondaryFixedDim,
|
|
87
|
+
},
|
|
88
|
+
onSecondaryFixed: {
|
|
89
|
+
main: scheme.onSecondaryFixed,
|
|
90
|
+
},
|
|
91
|
+
onSecondaryFixedVariant: {
|
|
92
|
+
main: scheme.onSecondaryFixedVariant,
|
|
93
|
+
},
|
|
94
|
+
tertiaryFixed: {
|
|
95
|
+
main: scheme.tertiaryFixed,
|
|
96
|
+
},
|
|
97
|
+
tertiaryFixedDim: {
|
|
98
|
+
main: scheme.tertiaryFixedDim,
|
|
99
|
+
},
|
|
100
|
+
onTertiaryFixed: {
|
|
101
|
+
main: scheme.onTertiaryFixed,
|
|
102
|
+
},
|
|
103
|
+
onTertiaryFixedVariant: {
|
|
104
|
+
main: scheme.onTertiaryFixedVariant,
|
|
105
|
+
},
|
|
106
|
+
surface: {
|
|
107
|
+
main: scheme.surface,
|
|
108
|
+
contrastText: scheme.onSurface,
|
|
109
|
+
},
|
|
110
|
+
onSurface: {
|
|
111
|
+
main: scheme.onSurface,
|
|
112
|
+
contrastText: scheme.surface,
|
|
113
|
+
},
|
|
114
|
+
surfaceDim: {
|
|
115
|
+
main: scheme.surfaceDim,
|
|
116
|
+
},
|
|
117
|
+
surfaceBright: {
|
|
118
|
+
main: scheme.surfaceBright,
|
|
119
|
+
},
|
|
120
|
+
surfaceContainerLowest: {
|
|
121
|
+
main: scheme.surfaceContainerLowest,
|
|
122
|
+
},
|
|
123
|
+
surfaceContainerLow: {
|
|
124
|
+
main: scheme.surfaceContainerLow,
|
|
125
|
+
},
|
|
126
|
+
surfaceContainer: {
|
|
127
|
+
main: scheme.surfaceContainer,
|
|
128
|
+
},
|
|
129
|
+
surfaceContainerHigh: {
|
|
130
|
+
main: scheme.surfaceContainerHigh,
|
|
131
|
+
},
|
|
132
|
+
surfaceContainerHighest: {
|
|
133
|
+
main: scheme.surfaceContainerHighest,
|
|
134
|
+
},
|
|
135
|
+
// surfaceVariant: {
|
|
136
|
+
// main: scheme.surfaceVariant,
|
|
137
|
+
// contrastText: scheme.onSurfaceVariant,
|
|
138
|
+
// },
|
|
139
|
+
onSurfaceVariant: {
|
|
140
|
+
main: scheme.onSurfaceVariant,
|
|
141
|
+
// contrastText: scheme.surfaceVariant,
|
|
142
|
+
},
|
|
143
|
+
outline: {
|
|
144
|
+
main: scheme.outline,
|
|
145
|
+
},
|
|
146
|
+
outlineVariant: {
|
|
147
|
+
main: scheme.outlineVariant,
|
|
148
|
+
},
|
|
149
|
+
inversePrimary: {
|
|
150
|
+
main: scheme.inversePrimary,
|
|
151
|
+
// contrastText: scheme.inverseOnPrimary
|
|
152
|
+
},
|
|
153
|
+
// inverseOnPrimary: {
|
|
154
|
+
// main: scheme.inverseOnPrimary,
|
|
155
|
+
// contrastText: scheme.inversePrimary,
|
|
156
|
+
// },
|
|
157
|
+
inverseSurface: {
|
|
158
|
+
main: scheme.inverseSurface,
|
|
159
|
+
contrastText: scheme.inverseSurface,
|
|
160
|
+
},
|
|
161
|
+
inverseOnSurface: {
|
|
162
|
+
main: scheme.inverseOnSurface,
|
|
163
|
+
contrastText: scheme.inverseSurface,
|
|
164
|
+
},
|
|
165
|
+
action: {},
|
|
166
|
+
shadow: {
|
|
167
|
+
main: scheme.shadow,
|
|
168
|
+
},
|
|
169
|
+
scrim: {
|
|
170
|
+
main: scheme.scrim,
|
|
171
|
+
},
|
|
172
|
+
// surfaceTintColor: {
|
|
173
|
+
// main: scheme.surfaceTintColor,
|
|
174
|
+
// },
|
|
175
|
+
/**/
|
|
176
|
+
background: {
|
|
177
|
+
default: scheme.surface,
|
|
178
|
+
paper: scheme.surfaceContainerLowest,
|
|
179
|
+
},
|
|
180
|
+
onBackground: {
|
|
181
|
+
main: scheme.onSurface,
|
|
182
|
+
},
|
|
183
|
+
common: {
|
|
184
|
+
white: scheme.background,
|
|
185
|
+
black: scheme.onBackground,
|
|
186
|
+
},
|
|
187
|
+
text: {
|
|
188
|
+
primary: scheme.onSurface,
|
|
189
|
+
secondary: scheme.onSecondaryContainer,
|
|
190
|
+
},
|
|
191
|
+
info: {
|
|
192
|
+
main: scheme.info,
|
|
193
|
+
contrastText: scheme.onInfo,
|
|
194
|
+
},
|
|
195
|
+
onInfo: {
|
|
196
|
+
main: scheme.onInfo,
|
|
197
|
+
contrastText: scheme.info,
|
|
198
|
+
},
|
|
199
|
+
infoContainer: {
|
|
200
|
+
main: scheme.infoContainer,
|
|
201
|
+
contrastText: scheme.onInfoContainer,
|
|
202
|
+
},
|
|
203
|
+
onInfoContainer: {
|
|
204
|
+
main: scheme.onInfoContainer,
|
|
205
|
+
contrastText: scheme.infoContainer,
|
|
206
|
+
},
|
|
207
|
+
success: {
|
|
208
|
+
main: scheme.success,
|
|
209
|
+
contrastText: scheme.onSuccess,
|
|
210
|
+
},
|
|
211
|
+
onSuccess: {
|
|
212
|
+
main: scheme.onSuccess,
|
|
213
|
+
contrastText: scheme.success,
|
|
214
|
+
},
|
|
215
|
+
successContainer: {
|
|
216
|
+
main: scheme.successContainer,
|
|
217
|
+
contrastText: scheme.onSuccessContainer,
|
|
218
|
+
},
|
|
219
|
+
onSuccessContainer: {
|
|
220
|
+
main: scheme.onSuccessContainer,
|
|
221
|
+
contrastText: scheme.successContainer,
|
|
222
|
+
},
|
|
223
|
+
warning: {
|
|
224
|
+
main: scheme.warning,
|
|
225
|
+
contrastText: scheme.onWarning,
|
|
226
|
+
},
|
|
227
|
+
onWarning: {
|
|
228
|
+
main: scheme.onWarning,
|
|
229
|
+
contrastText: scheme.warning,
|
|
230
|
+
},
|
|
231
|
+
warningContainer: {
|
|
232
|
+
main: scheme.warningContainer,
|
|
233
|
+
contrastText: scheme.onWarningContainer,
|
|
234
|
+
},
|
|
235
|
+
onWarningContainer: {
|
|
236
|
+
main: scheme.onWarningContainer,
|
|
237
|
+
contrastText: scheme.warningContainer,
|
|
238
|
+
},
|
|
239
|
+
undefined: {
|
|
240
|
+
main: scheme.undefined,
|
|
241
|
+
contrastText: scheme.onUndefined,
|
|
242
|
+
},
|
|
243
|
+
onUndefined: {
|
|
244
|
+
main: scheme.onUndefined,
|
|
245
|
+
contrastText: scheme.undefined,
|
|
246
|
+
},
|
|
247
|
+
undefinedContainer: {
|
|
248
|
+
main: scheme.undefinedContainer,
|
|
249
|
+
contrastText: scheme.onUndefinedContainer,
|
|
250
|
+
},
|
|
251
|
+
onUndefinedContainer: {
|
|
252
|
+
main: scheme.onUndefinedContainer,
|
|
253
|
+
contrastText: scheme.undefinedContainer,
|
|
254
|
+
},
|
|
255
|
+
supportive: {
|
|
256
|
+
main: scheme.supportive,
|
|
257
|
+
},
|
|
258
|
+
divider: scheme.outlineVariant,
|
|
259
|
+
additional: scheme.additionalColors,
|
|
260
|
+
},
|
|
261
|
+
tones: themescheme.tones,
|
|
262
|
+
};
|
|
263
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const MuiLocales: {
|
|
2
|
+
readonly enUS: import("@mui/material/locale").Localization;
|
|
3
|
+
readonly ruRU: import("@mui/material/locale").Localization;
|
|
4
|
+
readonly deDE: import("@mui/material/locale").Localization;
|
|
5
|
+
readonly esES: import("@mui/material/locale").Localization;
|
|
6
|
+
readonly frFR: import("@mui/material/locale").Localization;
|
|
7
|
+
readonly itIT: import("@mui/material/locale").Localization;
|
|
8
|
+
readonly jaJP: import("@mui/material/locale").Localization;
|
|
9
|
+
readonly ptPT: import("@mui/material/locale").Localization;
|
|
10
|
+
};
|
|
11
|
+
export declare const getMuiLocaleByCode: (locale: keyof typeof MuiLocales) => import("@mui/material/locale").Localization;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
2
|
+
import { deDE, enUS, esES, frFR, itIT, jaJP, ptPT, ruRU } from '@mui/material/locale';
|
|
3
|
+
export const MuiLocales = {
|
|
4
|
+
enUS,
|
|
5
|
+
ruRU,
|
|
6
|
+
deDE,
|
|
7
|
+
esES,
|
|
8
|
+
frFR,
|
|
9
|
+
itIT,
|
|
10
|
+
jaJP,
|
|
11
|
+
ptPT,
|
|
12
|
+
};
|
|
13
|
+
export const getMuiLocaleByCode = (locale) => MuiLocales[locale];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const StateLayerOpacity: {
|
|
2
|
+
readonly 0.08: 0.08;
|
|
3
|
+
readonly 0.12: 0.12;
|
|
4
|
+
readonly 0.16: 0.16;
|
|
5
|
+
readonly 0.2: 0.2;
|
|
6
|
+
readonly 0.28: 0.28;
|
|
7
|
+
readonly 0.48: 0.48;
|
|
8
|
+
};
|
|
9
|
+
export type StateLayerOpacityKey = keyof typeof StateLayerOpacity;
|
|
10
|
+
export declare enum StateLayer {
|
|
11
|
+
Hover = 0.08,
|
|
12
|
+
Focus = 0.12,
|
|
13
|
+
Press = 0.12,
|
|
14
|
+
Drag = 0.16,
|
|
15
|
+
Selected = 0.2,
|
|
16
|
+
Disabled = 0.08,
|
|
17
|
+
Active = 0.12
|
|
18
|
+
}
|
|
19
|
+
export declare enum OnStateLayer {
|
|
20
|
+
Disabled = 0.38,
|
|
21
|
+
Active = 1
|
|
22
|
+
}
|
|
23
|
+
export declare const getStateLayerColor: (state: StateLayer, containerColor: string, contentColor?: string) => string;
|
|
24
|
+
export declare const getOnStateLayerColor: (state: OnStateLayer, onContainerColor: string, containerColor?: string) => string;
|
|
25
|
+
export declare const getStateLayerColorByOpacityKey: (opacity: StateLayerOpacityKey, color: string) => string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
2
|
+
import { Blend, argbFromHex, hexFromArgb } from '@material/material-color-utilities';
|
|
3
|
+
import { alpha } from '@mui/material';
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-duplicate-enum-values -- Need same value*/
|
|
5
|
+
// We should have ONLY those values of opacity inside the theme
|
|
6
|
+
export const StateLayerOpacity = {
|
|
7
|
+
0.08: 0.08,
|
|
8
|
+
0.12: 0.12,
|
|
9
|
+
0.16: 0.16,
|
|
10
|
+
0.2: 0.2,
|
|
11
|
+
0.28: 0.28,
|
|
12
|
+
0.48: 0.48,
|
|
13
|
+
};
|
|
14
|
+
export var StateLayer;
|
|
15
|
+
(function (StateLayer) {
|
|
16
|
+
StateLayer[StateLayer["Hover"] = 0.08] = "Hover";
|
|
17
|
+
StateLayer[StateLayer["Focus"] = 0.12] = "Focus";
|
|
18
|
+
StateLayer[StateLayer["Press"] = 0.12] = "Press";
|
|
19
|
+
StateLayer[StateLayer["Drag"] = 0.16] = "Drag";
|
|
20
|
+
StateLayer[StateLayer["Selected"] = 0.2] = "Selected";
|
|
21
|
+
StateLayer[StateLayer["Disabled"] = 0.08] = "Disabled";
|
|
22
|
+
StateLayer[StateLayer["Active"] = 0.12] = "Active";
|
|
23
|
+
})(StateLayer || (StateLayer = {}));
|
|
24
|
+
export var OnStateLayer;
|
|
25
|
+
(function (OnStateLayer) {
|
|
26
|
+
OnStateLayer[OnStateLayer["Disabled"] = 0.38] = "Disabled";
|
|
27
|
+
OnStateLayer[OnStateLayer["Active"] = 1] = "Active";
|
|
28
|
+
})(OnStateLayer || (OnStateLayer = {}));
|
|
29
|
+
export const getStateLayerColor = (state, containerColor, contentColor) => contentColor
|
|
30
|
+
? hexFromArgb(Blend.cam16Ucs(argbFromHex(containerColor), argbFromHex(contentColor), state))
|
|
31
|
+
: alpha(containerColor, state);
|
|
32
|
+
export const getOnStateLayerColor = (state, onContainerColor, containerColor) => containerColor
|
|
33
|
+
? hexFromArgb(Blend.cam16Ucs(argbFromHex(onContainerColor), argbFromHex(containerColor), state))
|
|
34
|
+
: alpha(onContainerColor, state);
|
|
35
|
+
// Was introduced due to fact that StateLayer enums does not correlate with values presented. So State layer is more like "const opacity value" rather then actual state
|
|
36
|
+
export const getStateLayerColorByOpacityKey = (opacity, color) => alpha(color, StateLayerOpacity[opacity]);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
2
|
+
export * from './generateTokens';
|
|
3
|
+
export * from './getMUIComponents';
|
|
4
|
+
export * from './getMUIPalette';
|
|
5
|
+
export * from './getMuiLocaleByCode';
|
|
6
|
+
export * from './getStateLayerColor';
|
|
7
|
+
export * from './patchMUIShadows';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Copyright 2025 WebPros International GmbH. All rights reserved.
|
|
2
|
+
import { alpha } from '@mui/material';
|
|
3
|
+
export const patchMUIShadows = (theme) => {
|
|
4
|
+
theme.shadows[2] = `0px 0px 2px ${alpha(theme.palette.shadow.main, 0.08)}, 0px 8px 24px ${alpha(theme.palette.shadow.main, 0.08)}`;
|
|
5
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webpros/mui-theme",
|
|
3
3
|
"description": "MUI v6 theme for WebPros products",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"react",
|
|
@@ -46,13 +46,24 @@
|
|
|
46
46
|
"@mui/utils": "^6.4.0",
|
|
47
47
|
"@mui/x-data-grid": "^7.29.0",
|
|
48
48
|
"@mui/x-date-pickers": "^7.29.0",
|
|
49
|
-
"@phosphor-icons/react": "^2.1.0"
|
|
49
|
+
"@phosphor-icons/react": "^2.1.0",
|
|
50
|
+
"@fontsource/roboto": "^5.2.6",
|
|
51
|
+
"@emotion/react": "^11.14.0",
|
|
52
|
+
"@emotion/styled": "^11.14.1"
|
|
50
53
|
},
|
|
51
54
|
"publishConfig": {
|
|
52
55
|
"access": "public",
|
|
53
56
|
"registry": "https://registry.npmjs.org/"
|
|
54
57
|
},
|
|
55
58
|
"devDependencies": {
|
|
59
|
+
"@stylistic/eslint-plugin": "^5.5.0",
|
|
60
|
+
"eslint-config-prettier": "^10.1.8",
|
|
61
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
62
|
+
"eslint-plugin-react": "^7.37.5",
|
|
63
|
+
"eslint-plugin-react-hooks": "^7.0.0",
|
|
64
|
+
"@emotion/react": "^11.14.0",
|
|
65
|
+
"@emotion/styled": "^11.14.1",
|
|
66
|
+
"@fontsource/roboto": "^5.2.6",
|
|
56
67
|
"@eslint/js": "^9.38.0",
|
|
57
68
|
"@material/material-color-utilities": "^0.3.0",
|
|
58
69
|
"@mui/material": "^6.4.0",
|
|
@@ -60,23 +71,23 @@
|
|
|
60
71
|
"@mui/x-data-grid": "^7.29.0",
|
|
61
72
|
"@mui/x-date-pickers": "^7.29.0",
|
|
62
73
|
"@phosphor-icons/react": "^2.1.0",
|
|
63
|
-
"@storybook/addon-
|
|
64
|
-
"@storybook/addon-
|
|
65
|
-
"@storybook/addon-
|
|
66
|
-
"@storybook/
|
|
67
|
-
"@storybook/
|
|
68
|
-
"@storybook/react-
|
|
74
|
+
"@storybook/addon-a11y": "^9.1.16",
|
|
75
|
+
"@storybook/addon-docs": "^9.1.16",
|
|
76
|
+
"@storybook/addon-onboarding": "^9.1.16",
|
|
77
|
+
"@storybook/addon-themes": "^9.1.16",
|
|
78
|
+
"@storybook/builder-vite": "^9.1.16",
|
|
79
|
+
"@storybook/react-vite": "^9.1.16",
|
|
69
80
|
"@types/node": "^24.8.1",
|
|
70
81
|
"@types/react": "^19.2.2",
|
|
71
82
|
"@types/react-dom": "^19.2.2",
|
|
72
83
|
"@vitejs/plugin-react": "^5.0.4",
|
|
73
84
|
"eslint": "^9.38.0",
|
|
74
|
-
"eslint-plugin-storybook": "^9.1.
|
|
85
|
+
"eslint-plugin-storybook": "^9.1.16",
|
|
75
86
|
"globals": "^16.4.0",
|
|
76
87
|
"prettier": "^3.6.2",
|
|
77
88
|
"react": "^18.3.1",
|
|
78
89
|
"react-dom": "^18.3.1",
|
|
79
|
-
"storybook": "^9.1.
|
|
90
|
+
"storybook": "^9.1.16",
|
|
80
91
|
"tsc-alias": "^1.8.16",
|
|
81
92
|
"typescript": "~5.9.3",
|
|
82
93
|
"typescript-eslint": "^8.46.1",
|
|
@@ -93,12 +104,5 @@
|
|
|
93
104
|
"extends": [
|
|
94
105
|
"plugin:storybook/recommended"
|
|
95
106
|
]
|
|
96
|
-
},
|
|
97
|
-
"dependencies": {
|
|
98
|
-
"@stylistic/eslint-plugin": "^5.5.0",
|
|
99
|
-
"eslint-config-prettier": "^10.1.8",
|
|
100
|
-
"eslint-plugin-prettier": "^5.5.4",
|
|
101
|
-
"eslint-plugin-react": "^7.37.5",
|
|
102
|
-
"eslint-plugin-react-hooks": "^7.0.0"
|
|
103
107
|
}
|
|
104
|
-
}
|
|
108
|
+
}
|