@iobroker/gui-components 10.0.6 → 10.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/build/ThemeModern.js +17 -3
- package/build/ThemeModern.js.map +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ npm create vite@latest src -- --template react-ts
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@emotion/react": "^11.14.0",
|
|
38
38
|
"@emotion/styled": "^11.14.1",
|
|
39
|
-
"@iobroker/gui-components": "^10.0.
|
|
39
|
+
"@iobroker/gui-components": "^10.0.7",
|
|
40
40
|
"@mui/icons-material": "^9.0.1",
|
|
41
41
|
"@mui/material": "^9.0.1",
|
|
42
42
|
"react": "^19.2.5",
|
|
@@ -856,6 +856,10 @@ You can find the migration instructions:
|
|
|
856
856
|
-->
|
|
857
857
|
|
|
858
858
|
## Changelog
|
|
859
|
+
### 10.0.7 (2026-07-31)
|
|
860
|
+
|
|
861
|
+
- (@GermanBluefox) Updated packages
|
|
862
|
+
|
|
859
863
|
### 10.0.6 (2026-07-30)
|
|
860
864
|
|
|
861
865
|
- (@GermanBluefox) Added modern themes
|
package/build/ThemeModern.js
CHANGED
|
@@ -50,6 +50,8 @@ export const MODERN_LIGHT = {
|
|
|
50
50
|
selected: 'rgba(19, 123, 248, 0.10)',
|
|
51
51
|
};
|
|
52
52
|
const FONT_FAMILY = '"Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif';
|
|
53
|
+
/** Height of the app bar. Used for `MuiToolbar` and for `mixins.toolbar` - the two must not drift apart */
|
|
54
|
+
const TOOLBAR_HEIGHT = 52;
|
|
53
55
|
/**
|
|
54
56
|
* Build the 25 MUI shadows. The default MUI shadows are too heavy for this design,
|
|
55
57
|
* so they are replaced by a soft two-layer shadow.
|
|
@@ -75,6 +77,16 @@ export function getModernTheme(name, type) {
|
|
|
75
77
|
const options = {
|
|
76
78
|
name,
|
|
77
79
|
shape: { borderRadius: 10 },
|
|
80
|
+
// The app bar is lower than in the MUI default. `mixins.toolbar` has to say so too: consumers
|
|
81
|
+
// (e.g. the admin) take the top margin of their content from it, and with MUI's 64px they
|
|
82
|
+
// would leave a gap below the bar.
|
|
83
|
+
mixins: {
|
|
84
|
+
toolbar: {
|
|
85
|
+
minHeight: TOOLBAR_HEIGHT,
|
|
86
|
+
'@media (min-width:0px) and (orientation: landscape)': { minHeight: TOOLBAR_HEIGHT },
|
|
87
|
+
'@media (min-width:600px)': { minHeight: TOOLBAR_HEIGHT },
|
|
88
|
+
},
|
|
89
|
+
},
|
|
78
90
|
shadows: buildShadows(type),
|
|
79
91
|
typography: {
|
|
80
92
|
fontFamily: FONT_FAMILY,
|
|
@@ -226,7 +238,9 @@ export function getModernTheme(name, type) {
|
|
|
226
238
|
backgroundColor: t.paper,
|
|
227
239
|
backgroundImage: 'none',
|
|
228
240
|
color: t.textPrimary,
|
|
229
|
-
|
|
241
|
+
// Drawn inside instead of as a border: a real border would add a pixel to the bar
|
|
242
|
+
// height, and the content below positions itself by `mixins.toolbar`.
|
|
243
|
+
boxShadow: `inset 0 -1px 0 ${t.border}`,
|
|
230
244
|
},
|
|
231
245
|
colorDefault: {
|
|
232
246
|
backgroundColor: t.paper,
|
|
@@ -240,8 +254,8 @@ export function getModernTheme(name, type) {
|
|
|
240
254
|
MuiToolbar: {
|
|
241
255
|
styleOverrides: {
|
|
242
256
|
root: {
|
|
243
|
-
minHeight:
|
|
244
|
-
'@media (min-width: 600px)': { minHeight:
|
|
257
|
+
minHeight: TOOLBAR_HEIGHT,
|
|
258
|
+
'@media (min-width: 600px)': { minHeight: TOOLBAR_HEIGHT },
|
|
245
259
|
},
|
|
246
260
|
},
|
|
247
261
|
},
|
package/build/ThemeModern.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeModern.js","sourceRoot":"./src/","sources":["ThemeModern.ts"],"names":[],"mappings":"AAAA,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AAC,CAAC,YAAY;oBACrB,mBAAmB,EAAE,KAAK,CAAC,CAAC,CAAC,YAAY,EAAE,GAAG,CAAC;oBAC/C,UAAU,EAAE,gBAAgB;oBAC5B,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE;iBAClC;aACJ;SACJ;KACJ,CAAC;IAEF,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACnC,CAAC","sourcesContent":["import { alpha, type Shadows } from '@mui/material/styles';\n\nimport type { ThemeName, ThemeType } from './types';\nimport type { ThemeOptions } from './Theme';\n\n/**\n * Flat design tokens of the \"modern\" themes.\n * Everything that is used more than once in the theme definition below is listed here,\n * so a new variation can be created by copying this object only.\n */\nexport interface ModernTokens {\n /** Background of the page (behind the cards) */\n background: string;\n /** Background of cards, tables and dialogs */\n paper: string;\n /** Background of the left navigation */\n sidebar: string;\n /** Background of menus, popovers and dialogs (one step above `paper`) */\n elevated: string;\n /** Color of the dividers inside of the cards (table rows, lists) */\n border: string;\n /** Border of the cards. In the dark theme the cards are separated by the background, not by a border */\n cardBorder: string;\n textPrimary: string;\n textSecondary: string;\n textDisabled: string;\n primary: string;\n primaryDark: string;\n primaryLight: string;\n secondary: string;\n /** Background of the selected navigation item */\n gradient: string;\n /** Background of the selected navigation item if hovered */\n gradientHover: string;\n success: string;\n warning: string;\n error: string;\n info: string;\n /** Color of the expert-mode elements */\n expert: string;\n /** Color of the not acknowledged values in the object browser */\n nonAck: string;\n /** Background of the hovered rows and list items */\n hover: string;\n /** Background of the selected rows and list items */\n selected: string;\n}\n\nexport const MODERN_DARK: ModernTokens = {\n background: '#0A121D',\n paper: '#121A26',\n sidebar: '#141C29',\n elevated: '#1A2434',\n border: '#1E2837',\n cardBorder: '#1B2533',\n textPrimary: '#E8EDF5',\n textSecondary: '#8B97A8',\n textDisabled: '#586576',\n primary: '#137BF8',\n primaryDark: '#0B62D6',\n primaryLight: '#4B9BFA',\n secondary: '#436A93',\n gradient: 'linear-gradient(90deg, #2E93F9 0%, #0B76F5 100%)',\n gradientHover: 'linear-gradient(90deg, #48A1FA 0%, #1B84F8 100%)',\n success: '#2EA043',\n warning: '#E8A33D',\n error: '#E5534B',\n info: '#3FA9F5',\n expert: '#2EA043',\n nonAck: '#E5534B',\n hover: 'rgba(255, 255, 255, 0.05)',\n selected: 'rgba(19, 123, 248, 0.16)',\n};\n\nexport const MODERN_LIGHT: ModernTokens = {\n background: '#F4F7FB',\n paper: '#FFFFFF',\n sidebar: '#FFFFFF',\n elevated: '#FFFFFF',\n border: '#E2E8F0',\n cardBorder: '#E2E8F0',\n textPrimary: '#101827',\n textSecondary: '#5B6878',\n textDisabled: '#98A4B3',\n primary: '#137BF8',\n primaryDark: '#0B62D6',\n primaryLight: '#4B9BFA',\n secondary: '#164477',\n gradient: 'linear-gradient(90deg, #2E93F9 0%, #0B76F5 100%)',\n gradientHover: 'linear-gradient(90deg, #48A1FA 0%, #1B84F8 100%)',\n success: '#1E8E3E',\n warning: '#C77700',\n error: '#D93025',\n info: '#0B72D9',\n expert: '#1E8E3E',\n nonAck: '#D93025',\n hover: 'rgba(16, 24, 39, 0.04)',\n selected: 'rgba(19, 123, 248, 0.10)',\n};\n\nconst FONT_FAMILY = '\"Inter\", \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif';\n\n/**\n * Build the 25 MUI shadows. The default MUI shadows are too heavy for this design,\n * so they are replaced by a soft two-layer shadow.\n */\nfunction buildShadows(type: ThemeType): Shadows {\n const rgb = type === 'dark' ? '0, 0, 0' : '15, 23, 42';\n const nearOpacity = type === 'dark' ? 0.24 : 0.04;\n const farOpacity = type === 'dark' ? 0.36 : 0.08;\n\n const shadows: string[] = ['none'];\n for (let i = 1; i <= 24; i++) {\n const y = Math.round(1 + i * 0.7);\n const blur = Math.round(2 + i * 1.6);\n shadows.push(\n `0px ${Math.max(1, Math.round(y / 2))}px ${Math.max(2, Math.round(blur / 2))}px rgba(${rgb}, ${nearOpacity}), ` +\n `0px ${y}px ${blur}px rgba(${rgb}, ${farOpacity})`,\n );\n }\n\n return shadows as unknown as Shadows;\n}\n\n/**\n * Options and component overrides of the \"modern\" themes (`modernDark` and `modernLight`).\n */\nexport function getModernTheme(\n name: ThemeName,\n type: ThemeType,\n): { options: ThemeOptions; components: Record<string, any> } {\n const t: ModernTokens = type === 'dark' ? MODERN_DARK : MODERN_LIGHT;\n\n const options: ThemeOptions = {\n name,\n shape: { borderRadius: 10 },\n shadows: buildShadows(type),\n typography: {\n fontFamily: FONT_FAMILY,\n h1: { fontWeight: 700, letterSpacing: '-0.02em' },\n h2: { fontWeight: 700, letterSpacing: '-0.02em' },\n h3: { fontWeight: 600, letterSpacing: '-0.02em' },\n h4: { fontWeight: 600, letterSpacing: '-0.01em' },\n h5: { fontWeight: 600 },\n h6: { fontWeight: 600, fontSize: '1.05rem' },\n subtitle1: { fontWeight: 500 },\n subtitle2: { fontWeight: 500 },\n body2: { fontSize: '0.875rem' },\n button: { fontWeight: 500, textTransform: 'none', letterSpacing: 0 },\n caption: { fontSize: '0.75rem' },\n },\n palette: {\n mode: type,\n background: {\n default: t.background,\n paper: t.paper,\n },\n primary: {\n main: t.primary,\n dark: t.primaryDark,\n light: t.primaryLight,\n contrastText: '#FFFFFF',\n },\n secondary: {\n main: t.secondary,\n contrastText: '#FFFFFF',\n },\n success: { main: t.success },\n warning: { main: t.warning },\n error: { main: t.error },\n info: { main: t.info },\n divider: t.border,\n text: {\n primary: t.textPrimary,\n secondary: t.textSecondary,\n disabled: t.textDisabled,\n },\n action: {\n hover: t.hover,\n hoverOpacity: type === 'dark' ? 0.06 : 0.04,\n selected: t.selected,\n selectedOpacity: type === 'dark' ? 0.16 : 0.1,\n },\n expert: t.expert,\n nonAck: t.nonAck,\n },\n toolbar: {\n height: 52,\n },\n saveToolbar: {\n background: t.primary,\n button: {\n borderRadius: 8,\n height: 34,\n },\n },\n };\n\n const components: Record<string, any> = {\n MuiCssBaseline: {\n styleOverrides: {\n body: {\n backgroundColor: t.background,\n color: t.textPrimary,\n scrollbarColor: `${t.border} transparent`,\n },\n '*::-webkit-scrollbar': {\n width: 10,\n height: 10,\n },\n '*::-webkit-scrollbar-track': {\n backgroundColor: 'transparent',\n },\n '*::-webkit-scrollbar-thumb': {\n backgroundColor: t.border,\n borderRadius: 8,\n border: `2px solid ${t.background}`,\n },\n '*::-webkit-scrollbar-thumb:hover': {\n backgroundColor: t.textDisabled,\n },\n },\n },\n MuiPaper: {\n defaultProps: {\n elevation: 0,\n },\n styleOverrides: {\n root: {\n // remove the MUI overlay gradient of the dark mode - the colors are defined explicitly\n backgroundImage: 'none',\n backgroundColor: t.paper,\n },\n outlined: {\n border: `1px solid ${t.border}`,\n },\n rounded: {\n borderRadius: 12,\n },\n },\n },\n MuiCard: {\n defaultProps: {\n elevation: 0,\n },\n styleOverrides: {\n root: {\n backgroundColor: t.paper,\n border: `1px solid ${t.cardBorder}`,\n borderRadius: 12,\n backgroundImage: 'none',\n boxShadow: type === 'dark' ? '0 1px 3px rgba(0, 0, 0, 0.4)' : '0 1px 2px rgba(15, 23, 42, 0.05)',\n },\n },\n },\n MuiCardHeader: {\n styleOverrides: {\n root: {\n padding: '16px 20px 8px 20px',\n },\n title: {\n fontSize: '1rem',\n fontWeight: 600,\n },\n subheader: {\n fontSize: '0.8125rem',\n color: t.textSecondary,\n },\n },\n },\n MuiCardContent: {\n styleOverrides: {\n root: {\n padding: 20,\n '&:last-child': { paddingBottom: 20 },\n },\n },\n },\n MuiAppBar: {\n defaultProps: {\n elevation: 0,\n color: 'default',\n },\n styleOverrides: {\n root: {\n backgroundColor: t.paper,\n backgroundImage: 'none',\n color: t.textPrimary,\n borderBottom: `1px solid ${t.border}`,\n },\n colorDefault: {\n backgroundColor: t.paper,\n },\n colorPrimary: {\n backgroundColor: t.paper,\n color: t.textPrimary,\n },\n },\n },\n MuiToolbar: {\n styleOverrides: {\n root: {\n minHeight: 52,\n '@media (min-width: 600px)': { minHeight: 52 },\n },\n },\n },\n MuiDrawer: {\n styleOverrides: {\n paper: {\n backgroundColor: t.sidebar,\n backgroundImage: 'none',\n borderRight: `1px solid ${t.border}`,\n },\n },\n },\n MuiDivider: {\n styleOverrides: {\n root: {\n borderColor: t.border,\n },\n },\n },\n MuiListItemButton: {\n styleOverrides: {\n root: {\n borderRadius: 8,\n paddingTop: 7,\n paddingBottom: 7,\n '&:hover': {\n backgroundColor: t.hover,\n },\n '&.Mui-selected': {\n // the active navigation item is filled with a gradient\n background: t.gradient,\n color: '#FFFFFF',\n boxShadow: `0 2px 8px ${alpha(t.primary, type === 'dark' ? 0.35 : 0.25)}`,\n '& .MuiListItemIcon-root': { color: '#FFFFFF' },\n '&:hover': { background: t.gradientHover },\n },\n },\n },\n },\n MuiListItemIcon: {\n styleOverrides: {\n root: {\n color: t.textSecondary,\n minWidth: 36,\n },\n },\n },\n MuiListItemText: {\n styleOverrides: {\n primary: {\n fontSize: '0.9rem',\n },\n },\n },\n MuiMenu: {\n styleOverrides: {\n paper: {\n backgroundColor: t.elevated,\n backgroundImage: 'none',\n border: `1px solid ${t.border}`,\n borderRadius: 10,\n },\n list: {\n padding: 6,\n },\n },\n },\n MuiMenuItem: {\n styleOverrides: {\n root: {\n borderRadius: 6,\n fontSize: '0.875rem',\n '&.Mui-selected': {\n backgroundColor: t.selected,\n },\n },\n },\n },\n MuiPopover: {\n styleOverrides: {\n paper: {\n backgroundColor: t.elevated,\n backgroundImage: 'none',\n border: `1px solid ${t.border}`,\n borderRadius: 10,\n },\n },\n },\n MuiDialog: {\n styleOverrides: {\n paper: {\n backgroundColor: t.elevated,\n backgroundImage: 'none',\n border: `1px solid ${t.border}`,\n borderRadius: 14,\n },\n },\n },\n MuiDialogTitle: {\n styleOverrides: {\n root: {\n fontSize: '1.05rem',\n fontWeight: 600,\n },\n },\n },\n MuiButton: {\n defaultProps: {\n disableElevation: true,\n },\n styleOverrides: {\n root: {\n borderRadius: 8,\n textTransform: 'none',\n fontWeight: 500,\n boxShadow: 'none',\n '&:hover': { boxShadow: 'none' },\n },\n sizeSmall: {\n borderRadius: 6,\n },\n outlined: {\n borderColor: t.border,\n },\n },\n },\n MuiIconButton: {\n styleOverrides: {\n root: {\n borderRadius: 8,\n color: t.textSecondary,\n '&:hover': { backgroundColor: t.hover, color: t.textPrimary },\n },\n },\n },\n MuiToggleButton: {\n styleOverrides: {\n root: {\n borderRadius: 8,\n borderColor: t.border,\n textTransform: 'none',\n '&.Mui-selected': {\n backgroundColor: t.selected,\n color: t.primaryLight,\n },\n },\n },\n },\n MuiChip: {\n styleOverrides: {\n root: {\n borderRadius: 6,\n fontWeight: 500,\n fontSize: '0.75rem',\n },\n sizeSmall: {\n height: 22,\n },\n outlined: {\n borderColor: t.border,\n },\n },\n },\n MuiTooltip: {\n styleOverrides: {\n tooltip: {\n backgroundColor: type === 'dark' ? '#242C37' : '#1F2937',\n border: type === 'dark' ? `1px solid ${t.border}` : undefined,\n borderRadius: 8,\n fontSize: '0.75rem',\n padding: '6px 10px',\n },\n arrow: {\n color: type === 'dark' ? '#242C37' : '#1F2937',\n },\n },\n },\n MuiOutlinedInput: {\n styleOverrides: {\n root: {\n borderRadius: 8,\n backgroundColor: type === 'dark' ? alpha('#FFFFFF', 0.03) : alpha('#0F172A', 0.02),\n '& .MuiOutlinedInput-notchedOutline': { borderColor: t.border },\n '&:hover .MuiOutlinedInput-notchedOutline': { borderColor: t.textDisabled },\n },\n input: {\n padding: '10px 12px',\n },\n },\n },\n MuiInputBase: {\n styleOverrides: {\n root: {\n fontSize: '0.875rem',\n },\n },\n },\n MuiInputLabel: {\n styleOverrides: {\n root: {\n color: t.textSecondary,\n },\n },\n },\n MuiSelect: {\n styleOverrides: {\n select: {\n fontSize: '0.875rem',\n },\n },\n },\n MuiTabs: {\n styleOverrides: {\n root: {\n minHeight: 42,\n borderBottom: `1px solid ${t.border}`,\n },\n indicator: {\n height: 2,\n borderRadius: 2,\n },\n },\n },\n MuiTab: {\n styleOverrides: {\n root: {\n minHeight: 42,\n textTransform: 'none',\n fontWeight: 500,\n fontSize: '0.8125rem',\n letterSpacing: '0.02em',\n color: t.textSecondary,\n '&.Mui-selected': { color: t.primaryLight },\n },\n },\n },\n MuiTable: {\n styleOverrides: {\n root: {\n borderCollapse: 'separate',\n },\n },\n },\n MuiTableCell: {\n styleOverrides: {\n root: {\n borderBottom: `1px solid ${t.border}`,\n fontSize: '0.8125rem',\n padding: '10px 14px',\n },\n head: {\n color: t.textSecondary,\n fontWeight: 600,\n fontSize: '0.75rem',\n backgroundColor: t.paper,\n },\n },\n },\n MuiTableRow: {\n styleOverrides: {\n root: {\n '&:hover': { backgroundColor: t.hover },\n '&.Mui-selected': {\n backgroundColor: t.selected,\n '&:hover': { backgroundColor: t.selected },\n },\n },\n },\n },\n MuiLinearProgress: {\n styleOverrides: {\n root: {\n height: 6,\n borderRadius: 4,\n backgroundColor: type === 'dark' ? alpha('#FFFFFF', 0.08) : alpha('#0F172A', 0.08),\n },\n bar: {\n borderRadius: 4,\n },\n },\n },\n MuiSwitch: {\n styleOverrides: {\n track: {\n borderRadius: 12,\n },\n },\n },\n MuiCheckbox: {\n styleOverrides: {\n root: {\n color: t.textDisabled,\n },\n },\n },\n MuiAlert: {\n styleOverrides: {\n root: {\n borderRadius: 10,\n border: `1px solid ${t.border}`,\n },\n },\n },\n MuiAccordion: {\n styleOverrides: {\n root: {\n backgroundColor: t.paper,\n backgroundImage: 'none',\n border: `1px solid ${t.border}`,\n borderRadius: 10,\n '&::before': { display: 'none' },\n },\n },\n },\n MuiLink: {\n styleOverrides: {\n root: {\n color: t.primaryLight,\n textDecorationColor: alpha(t.primaryLight, 0.4),\n transition: 'color .2s ease',\n '&:hover': { color: t.primary },\n },\n },\n },\n };\n\n return { options, components };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ThemeModern.js","sourceRoot":"./src/","sources":["ThemeModern.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAgB,MAAM,sBAAsB,CAAC;AAgD3D,MAAM,CAAC,MAAM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ACxB,eAAe,EAAE,MAAM;oBACvB,MAAM,EAAE,aAAa,CAAC,CAAC,MAAM,EAAE;oBAC/B,YAAY,EAAE,EAAE;oBAChB,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;iBACnC;aACJ;SACJ;QACD,OAAO,EAAE;YACL,cAAc,EAAE;gBACZ,IAAI,EAAE;oBACF,KAAK,EAAE,CAAC,CAAC,YAAY;oBACrB,mBAAmB,EAAE,KAAK,CAAC,CAAC,CAAC,YAAY,EAAE,GAAG,CAAC;oBAC/C,UAAU,EAAE,gBAAgB;oBAC5B,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE;iBAClC;aACJ;SACJ;KACJ,CAAC;IAEF,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACnC,CAAC","sourcesContent":["import { alpha, type Shadows } from '@mui/material/styles';\n\nimport type { ThemeName, ThemeType } from './types';\nimport type { ThemeOptions } from './Theme';\n\n/**\n * Flat design tokens of the \"modern\" themes.\n * Everything that is used more than once in the theme definition below is listed here,\n * so a new variation can be created by copying this object only.\n */\nexport interface ModernTokens {\n /** Background of the page (behind the cards) */\n background: string;\n /** Background of cards, tables and dialogs */\n paper: string;\n /** Background of the left navigation */\n sidebar: string;\n /** Background of menus, popovers and dialogs (one step above `paper`) */\n elevated: string;\n /** Color of the dividers inside of the cards (table rows, lists) */\n border: string;\n /** Border of the cards. In the dark theme the cards are separated by the background, not by a border */\n cardBorder: string;\n textPrimary: string;\n textSecondary: string;\n textDisabled: string;\n primary: string;\n primaryDark: string;\n primaryLight: string;\n secondary: string;\n /** Background of the selected navigation item */\n gradient: string;\n /** Background of the selected navigation item if hovered */\n gradientHover: string;\n success: string;\n warning: string;\n error: string;\n info: string;\n /** Color of the expert-mode elements */\n expert: string;\n /** Color of the not acknowledged values in the object browser */\n nonAck: string;\n /** Background of the hovered rows and list items */\n hover: string;\n /** Background of the selected rows and list items */\n selected: string;\n}\n\nexport const MODERN_DARK: ModernTokens = {\n background: '#0A121D',\n paper: '#121A26',\n sidebar: '#141C29',\n elevated: '#1A2434',\n border: '#1E2837',\n cardBorder: '#1B2533',\n textPrimary: '#E8EDF5',\n textSecondary: '#8B97A8',\n textDisabled: '#586576',\n primary: '#137BF8',\n primaryDark: '#0B62D6',\n primaryLight: '#4B9BFA',\n secondary: '#436A93',\n gradient: 'linear-gradient(90deg, #2E93F9 0%, #0B76F5 100%)',\n gradientHover: 'linear-gradient(90deg, #48A1FA 0%, #1B84F8 100%)',\n success: '#2EA043',\n warning: '#E8A33D',\n error: '#E5534B',\n info: '#3FA9F5',\n expert: '#2EA043',\n nonAck: '#E5534B',\n hover: 'rgba(255, 255, 255, 0.05)',\n selected: 'rgba(19, 123, 248, 0.16)',\n};\n\nexport const MODERN_LIGHT: ModernTokens = {\n background: '#F4F7FB',\n paper: '#FFFFFF',\n sidebar: '#FFFFFF',\n elevated: '#FFFFFF',\n border: '#E2E8F0',\n cardBorder: '#E2E8F0',\n textPrimary: '#101827',\n textSecondary: '#5B6878',\n textDisabled: '#98A4B3',\n primary: '#137BF8',\n primaryDark: '#0B62D6',\n primaryLight: '#4B9BFA',\n secondary: '#164477',\n gradient: 'linear-gradient(90deg, #2E93F9 0%, #0B76F5 100%)',\n gradientHover: 'linear-gradient(90deg, #48A1FA 0%, #1B84F8 100%)',\n success: '#1E8E3E',\n warning: '#C77700',\n error: '#D93025',\n info: '#0B72D9',\n expert: '#1E8E3E',\n nonAck: '#D93025',\n hover: 'rgba(16, 24, 39, 0.04)',\n selected: 'rgba(19, 123, 248, 0.10)',\n};\n\nconst FONT_FAMILY = '\"Inter\", \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif';\n/** Height of the app bar. Used for `MuiToolbar` and for `mixins.toolbar` - the two must not drift apart */\nconst TOOLBAR_HEIGHT = 52;\n\n/**\n * Build the 25 MUI shadows. The default MUI shadows are too heavy for this design,\n * so they are replaced by a soft two-layer shadow.\n */\nfunction buildShadows(type: ThemeType): Shadows {\n const rgb = type === 'dark' ? '0, 0, 0' : '15, 23, 42';\n const nearOpacity = type === 'dark' ? 0.24 : 0.04;\n const farOpacity = type === 'dark' ? 0.36 : 0.08;\n\n const shadows: string[] = ['none'];\n for (let i = 1; i <= 24; i++) {\n const y = Math.round(1 + i * 0.7);\n const blur = Math.round(2 + i * 1.6);\n shadows.push(\n `0px ${Math.max(1, Math.round(y / 2))}px ${Math.max(2, Math.round(blur / 2))}px rgba(${rgb}, ${nearOpacity}), ` +\n `0px ${y}px ${blur}px rgba(${rgb}, ${farOpacity})`,\n );\n }\n\n return shadows as unknown as Shadows;\n}\n\n/**\n * Options and component overrides of the \"modern\" themes (`modernDark` and `modernLight`).\n */\nexport function getModernTheme(\n name: ThemeName,\n type: ThemeType,\n): { options: ThemeOptions; components: Record<string, any> } {\n const t: ModernTokens = type === 'dark' ? MODERN_DARK : MODERN_LIGHT;\n\n const options: ThemeOptions = {\n name,\n shape: { borderRadius: 10 },\n // The app bar is lower than in the MUI default. `mixins.toolbar` has to say so too: consumers\n // (e.g. the admin) take the top margin of their content from it, and with MUI's 64px they\n // would leave a gap below the bar.\n mixins: {\n toolbar: {\n minHeight: TOOLBAR_HEIGHT,\n '@media (min-width:0px) and (orientation: landscape)': { minHeight: TOOLBAR_HEIGHT },\n '@media (min-width:600px)': { minHeight: TOOLBAR_HEIGHT },\n },\n },\n shadows: buildShadows(type),\n typography: {\n fontFamily: FONT_FAMILY,\n h1: { fontWeight: 700, letterSpacing: '-0.02em' },\n h2: { fontWeight: 700, letterSpacing: '-0.02em' },\n h3: { fontWeight: 600, letterSpacing: '-0.02em' },\n h4: { fontWeight: 600, letterSpacing: '-0.01em' },\n h5: { fontWeight: 600 },\n h6: { fontWeight: 600, fontSize: '1.05rem' },\n subtitle1: { fontWeight: 500 },\n subtitle2: { fontWeight: 500 },\n body2: { fontSize: '0.875rem' },\n button: { fontWeight: 500, textTransform: 'none', letterSpacing: 0 },\n caption: { fontSize: '0.75rem' },\n },\n palette: {\n mode: type,\n background: {\n default: t.background,\n paper: t.paper,\n },\n primary: {\n main: t.primary,\n dark: t.primaryDark,\n light: t.primaryLight,\n contrastText: '#FFFFFF',\n },\n secondary: {\n main: t.secondary,\n contrastText: '#FFFFFF',\n },\n success: { main: t.success },\n warning: { main: t.warning },\n error: { main: t.error },\n info: { main: t.info },\n divider: t.border,\n text: {\n primary: t.textPrimary,\n secondary: t.textSecondary,\n disabled: t.textDisabled,\n },\n action: {\n hover: t.hover,\n hoverOpacity: type === 'dark' ? 0.06 : 0.04,\n selected: t.selected,\n selectedOpacity: type === 'dark' ? 0.16 : 0.1,\n },\n expert: t.expert,\n nonAck: t.nonAck,\n },\n toolbar: {\n height: 52,\n },\n saveToolbar: {\n background: t.primary,\n button: {\n borderRadius: 8,\n height: 34,\n },\n },\n };\n\n const components: Record<string, any> = {\n MuiCssBaseline: {\n styleOverrides: {\n body: {\n backgroundColor: t.background,\n color: t.textPrimary,\n scrollbarColor: `${t.border} transparent`,\n },\n '*::-webkit-scrollbar': {\n width: 10,\n height: 10,\n },\n '*::-webkit-scrollbar-track': {\n backgroundColor: 'transparent',\n },\n '*::-webkit-scrollbar-thumb': {\n backgroundColor: t.border,\n borderRadius: 8,\n border: `2px solid ${t.background}`,\n },\n '*::-webkit-scrollbar-thumb:hover': {\n backgroundColor: t.textDisabled,\n },\n },\n },\n MuiPaper: {\n defaultProps: {\n elevation: 0,\n },\n styleOverrides: {\n root: {\n // remove the MUI overlay gradient of the dark mode - the colors are defined explicitly\n backgroundImage: 'none',\n backgroundColor: t.paper,\n },\n outlined: {\n border: `1px solid ${t.border}`,\n },\n rounded: {\n borderRadius: 12,\n },\n },\n },\n MuiCard: {\n defaultProps: {\n elevation: 0,\n },\n styleOverrides: {\n root: {\n backgroundColor: t.paper,\n border: `1px solid ${t.cardBorder}`,\n borderRadius: 12,\n backgroundImage: 'none',\n boxShadow: type === 'dark' ? '0 1px 3px rgba(0, 0, 0, 0.4)' : '0 1px 2px rgba(15, 23, 42, 0.05)',\n },\n },\n },\n MuiCardHeader: {\n styleOverrides: {\n root: {\n padding: '16px 20px 8px 20px',\n },\n title: {\n fontSize: '1rem',\n fontWeight: 600,\n },\n subheader: {\n fontSize: '0.8125rem',\n color: t.textSecondary,\n },\n },\n },\n MuiCardContent: {\n styleOverrides: {\n root: {\n padding: 20,\n '&:last-child': { paddingBottom: 20 },\n },\n },\n },\n MuiAppBar: {\n defaultProps: {\n elevation: 0,\n color: 'default',\n },\n styleOverrides: {\n root: {\n backgroundColor: t.paper,\n backgroundImage: 'none',\n color: t.textPrimary,\n // Drawn inside instead of as a border: a real border would add a pixel to the bar\n // height, and the content below positions itself by `mixins.toolbar`.\n boxShadow: `inset 0 -1px 0 ${t.border}`,\n },\n colorDefault: {\n backgroundColor: t.paper,\n },\n colorPrimary: {\n backgroundColor: t.paper,\n color: t.textPrimary,\n },\n },\n },\n MuiToolbar: {\n styleOverrides: {\n root: {\n minHeight: TOOLBAR_HEIGHT,\n '@media (min-width: 600px)': { minHeight: TOOLBAR_HEIGHT },\n },\n },\n },\n MuiDrawer: {\n styleOverrides: {\n paper: {\n backgroundColor: t.sidebar,\n backgroundImage: 'none',\n borderRight: `1px solid ${t.border}`,\n },\n },\n },\n MuiDivider: {\n styleOverrides: {\n root: {\n borderColor: t.border,\n },\n },\n },\n MuiListItemButton: {\n styleOverrides: {\n root: {\n borderRadius: 8,\n paddingTop: 7,\n paddingBottom: 7,\n '&:hover': {\n backgroundColor: t.hover,\n },\n '&.Mui-selected': {\n // the active navigation item is filled with a gradient\n background: t.gradient,\n color: '#FFFFFF',\n boxShadow: `0 2px 8px ${alpha(t.primary, type === 'dark' ? 0.35 : 0.25)}`,\n '& .MuiListItemIcon-root': { color: '#FFFFFF' },\n '&:hover': { background: t.gradientHover },\n },\n },\n },\n },\n MuiListItemIcon: {\n styleOverrides: {\n root: {\n color: t.textSecondary,\n minWidth: 36,\n },\n },\n },\n MuiListItemText: {\n styleOverrides: {\n primary: {\n fontSize: '0.9rem',\n },\n },\n },\n MuiMenu: {\n styleOverrides: {\n paper: {\n backgroundColor: t.elevated,\n backgroundImage: 'none',\n border: `1px solid ${t.border}`,\n borderRadius: 10,\n },\n list: {\n padding: 6,\n },\n },\n },\n MuiMenuItem: {\n styleOverrides: {\n root: {\n borderRadius: 6,\n fontSize: '0.875rem',\n '&.Mui-selected': {\n backgroundColor: t.selected,\n },\n },\n },\n },\n MuiPopover: {\n styleOverrides: {\n paper: {\n backgroundColor: t.elevated,\n backgroundImage: 'none',\n border: `1px solid ${t.border}`,\n borderRadius: 10,\n },\n },\n },\n MuiDialog: {\n styleOverrides: {\n paper: {\n backgroundColor: t.elevated,\n backgroundImage: 'none',\n border: `1px solid ${t.border}`,\n borderRadius: 14,\n },\n },\n },\n MuiDialogTitle: {\n styleOverrides: {\n root: {\n fontSize: '1.05rem',\n fontWeight: 600,\n },\n },\n },\n MuiButton: {\n defaultProps: {\n disableElevation: true,\n },\n styleOverrides: {\n root: {\n borderRadius: 8,\n textTransform: 'none',\n fontWeight: 500,\n boxShadow: 'none',\n '&:hover': { boxShadow: 'none' },\n },\n sizeSmall: {\n borderRadius: 6,\n },\n outlined: {\n borderColor: t.border,\n },\n },\n },\n MuiIconButton: {\n styleOverrides: {\n root: {\n borderRadius: 8,\n color: t.textSecondary,\n '&:hover': { backgroundColor: t.hover, color: t.textPrimary },\n },\n },\n },\n MuiToggleButton: {\n styleOverrides: {\n root: {\n borderRadius: 8,\n borderColor: t.border,\n textTransform: 'none',\n '&.Mui-selected': {\n backgroundColor: t.selected,\n color: t.primaryLight,\n },\n },\n },\n },\n MuiChip: {\n styleOverrides: {\n root: {\n borderRadius: 6,\n fontWeight: 500,\n fontSize: '0.75rem',\n },\n sizeSmall: {\n height: 22,\n },\n outlined: {\n borderColor: t.border,\n },\n },\n },\n MuiTooltip: {\n styleOverrides: {\n tooltip: {\n backgroundColor: type === 'dark' ? '#242C37' : '#1F2937',\n border: type === 'dark' ? `1px solid ${t.border}` : undefined,\n borderRadius: 8,\n fontSize: '0.75rem',\n padding: '6px 10px',\n },\n arrow: {\n color: type === 'dark' ? '#242C37' : '#1F2937',\n },\n },\n },\n MuiOutlinedInput: {\n styleOverrides: {\n root: {\n borderRadius: 8,\n backgroundColor: type === 'dark' ? alpha('#FFFFFF', 0.03) : alpha('#0F172A', 0.02),\n '& .MuiOutlinedInput-notchedOutline': { borderColor: t.border },\n '&:hover .MuiOutlinedInput-notchedOutline': { borderColor: t.textDisabled },\n },\n input: {\n padding: '10px 12px',\n },\n },\n },\n MuiInputBase: {\n styleOverrides: {\n root: {\n fontSize: '0.875rem',\n },\n },\n },\n MuiInputLabel: {\n styleOverrides: {\n root: {\n color: t.textSecondary,\n },\n },\n },\n MuiSelect: {\n styleOverrides: {\n select: {\n fontSize: '0.875rem',\n },\n },\n },\n MuiTabs: {\n styleOverrides: {\n root: {\n minHeight: 42,\n borderBottom: `1px solid ${t.border}`,\n },\n indicator: {\n height: 2,\n borderRadius: 2,\n },\n },\n },\n MuiTab: {\n styleOverrides: {\n root: {\n minHeight: 42,\n textTransform: 'none',\n fontWeight: 500,\n fontSize: '0.8125rem',\n letterSpacing: '0.02em',\n color: t.textSecondary,\n '&.Mui-selected': { color: t.primaryLight },\n },\n },\n },\n MuiTable: {\n styleOverrides: {\n root: {\n borderCollapse: 'separate',\n },\n },\n },\n MuiTableCell: {\n styleOverrides: {\n root: {\n borderBottom: `1px solid ${t.border}`,\n fontSize: '0.8125rem',\n padding: '10px 14px',\n },\n head: {\n color: t.textSecondary,\n fontWeight: 600,\n fontSize: '0.75rem',\n backgroundColor: t.paper,\n },\n },\n },\n MuiTableRow: {\n styleOverrides: {\n root: {\n '&:hover': { backgroundColor: t.hover },\n '&.Mui-selected': {\n backgroundColor: t.selected,\n '&:hover': { backgroundColor: t.selected },\n },\n },\n },\n },\n MuiLinearProgress: {\n styleOverrides: {\n root: {\n height: 6,\n borderRadius: 4,\n backgroundColor: type === 'dark' ? alpha('#FFFFFF', 0.08) : alpha('#0F172A', 0.08),\n },\n bar: {\n borderRadius: 4,\n },\n },\n },\n MuiSwitch: {\n styleOverrides: {\n track: {\n borderRadius: 12,\n },\n },\n },\n MuiCheckbox: {\n styleOverrides: {\n root: {\n color: t.textDisabled,\n },\n },\n },\n MuiAlert: {\n styleOverrides: {\n root: {\n borderRadius: 10,\n border: `1px solid ${t.border}`,\n },\n },\n },\n MuiAccordion: {\n styleOverrides: {\n root: {\n backgroundColor: t.paper,\n backgroundImage: 'none',\n border: `1px solid ${t.border}`,\n borderRadius: 10,\n '&::before': { display: 'none' },\n },\n },\n },\n MuiLink: {\n styleOverrides: {\n root: {\n color: t.primaryLight,\n textDecorationColor: alpha(t.primaryLight, 0.4),\n transition: 'color .2s ease',\n '&:hover': { color: t.primary },\n },\n },\n },\n };\n\n return { options, components };\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/gui-components",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.7",
|
|
4
4
|
"description": "Shared React components (React 19 / MUI 9) to develop ioBroker interfaces. Successor of @iobroker/adapter-react-v5.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "bluefox",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@iobroker/socket-client": "^5.2.1",
|
|
58
58
|
"@iobroker/type-detector": "^5.0.15",
|
|
59
59
|
"@iobroker/types": "^7.2.2",
|
|
60
|
-
"@sentry/browser": "^10.
|
|
60
|
+
"@sentry/browser": "^10.69.0",
|
|
61
61
|
"cronstrue": "^3.24.0",
|
|
62
62
|
"file-selector": "^4.0.2",
|
|
63
63
|
"react-color": "^2.19.3",
|
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
"@iobroker/eslint-config": "^2.3.4",
|
|
83
83
|
"@mui/icons-material": "^9.2.0",
|
|
84
84
|
"@mui/material": "^9.2.0",
|
|
85
|
-
"@types/node": "^26.1.
|
|
86
|
-
"@types/react": "^19.2.
|
|
85
|
+
"@types/node": "^26.1.2",
|
|
86
|
+
"@types/react": "^19.2.18",
|
|
87
87
|
"@types/react-color": "^3.0.13",
|
|
88
|
-
"@types/react-dom": "^19.2.
|
|
88
|
+
"@types/react-dom": "^19.2.4",
|
|
89
89
|
"ajv": "^8.20.0",
|
|
90
90
|
"react": "^19.2.8",
|
|
91
91
|
"react-dom": "^19.2.8",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"overrides": {
|
|
96
96
|
"react": "^19.2.8",
|
|
97
97
|
"react-dom": "^19.2.8",
|
|
98
|
-
"@types/react": "^19.2.
|
|
99
|
-
"@types/react-dom": "^19.2.
|
|
98
|
+
"@types/react": "^19.2.18",
|
|
99
|
+
"@types/react-dom": "^19.2.4"
|
|
100
100
|
}
|
|
101
101
|
}
|