@red-hat-developer-hub/backstage-plugin-theme 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/app-config.dynamic.yaml +19 -0
- package/dist/darkTheme.esm.js +69 -63
- package/dist/darkTheme.esm.js.map +1 -1
- package/dist/index.d.ts +13 -6
- package/dist/index.esm.js +3 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/lightTheme.esm.js +69 -67
- package/dist/lightTheme.esm.js.map +1 -1
- package/dist/rhdh.esm.js +1 -1
- package/dist/rhdh.esm.js.map +1 -1
- package/dist/themes.esm.js +3 -1
- package/dist/themes.esm.js.map +1 -1
- package/dist/utils/createComponents.esm.js +188 -48
- package/dist/utils/createComponents.esm.js.map +1 -1
- package/package.json +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @red-hat-developer-hub/backstage-plugin-theme
|
|
2
2
|
|
|
3
|
+
## 0.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8f9be66: Add support to load the theme as dynamic plugin
|
|
8
|
+
|
|
9
|
+
## 0.7.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 7db4caa: Align BackstageHeader, Backstage/MUI Breadcrumbs, BackstageSidebar, and BackstagePage with PF6
|
|
14
|
+
- 7db4caa: **Breaking change**: remove deprecated general.sideBarBackgroundColor
|
|
15
|
+
- 33b6dd1: Align primary color, buttons and tabs styling with PatternFly 6. Add styling for :focus-visible on the tabs.
|
|
16
|
+
|
|
3
17
|
## 0.6.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
dynamicPlugins:
|
|
2
|
+
frontend:
|
|
3
|
+
red-hat-developer-hub.backstage-plugin-theme:
|
|
4
|
+
appIcons:
|
|
5
|
+
- importName: LightIcon
|
|
6
|
+
name: lightIcon
|
|
7
|
+
- importName: DarkIcon
|
|
8
|
+
name: darkIcon
|
|
9
|
+
themes:
|
|
10
|
+
- id: light-dynamic
|
|
11
|
+
icon: lightIcon
|
|
12
|
+
importName: lightThemeProvider
|
|
13
|
+
title: Light Dynamic
|
|
14
|
+
variant: light
|
|
15
|
+
- icon: darkIcon
|
|
16
|
+
id: dark-dynamic
|
|
17
|
+
importName: darkThemeProvider
|
|
18
|
+
title: Dark Dynamic
|
|
19
|
+
variant: dark
|
package/dist/darkTheme.esm.js
CHANGED
|
@@ -1,74 +1,80 @@
|
|
|
1
1
|
import { palettes } from '@backstage/theme';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
const darkThemeOverrides = {
|
|
4
|
+
primary: {
|
|
5
|
+
main: "#92c5f9"
|
|
6
|
+
},
|
|
7
|
+
secondary: {
|
|
8
|
+
main: "#92c5f9"
|
|
9
|
+
},
|
|
10
|
+
navigation: {
|
|
11
|
+
background: "#292929",
|
|
12
|
+
indicator: "transparent",
|
|
13
|
+
color: "#ffffff",
|
|
14
|
+
selectedColor: "#ffffff",
|
|
15
|
+
navItem: {
|
|
16
|
+
hoverBackground: "#292929"
|
|
9
17
|
},
|
|
10
|
-
|
|
11
|
-
|
|
18
|
+
submenu: {
|
|
19
|
+
background: "#292929"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
text: {
|
|
23
|
+
primary: "#ffffff",
|
|
24
|
+
secondary: "#c7c7c7"
|
|
25
|
+
},
|
|
26
|
+
background: {
|
|
27
|
+
default: "#292929",
|
|
28
|
+
paper: "#292929"
|
|
29
|
+
},
|
|
30
|
+
rhdh: {
|
|
31
|
+
general: {
|
|
32
|
+
disabled: "#AAABAC",
|
|
33
|
+
disabledBackground: "#444548",
|
|
34
|
+
paperBackgroundImage: "none",
|
|
35
|
+
paperBorderColor: "#A3A3A3",
|
|
36
|
+
// Box shadow from PatternFly 5 (--pf-v5-global--BoxShadow--sm)
|
|
37
|
+
popoverBoxShadow: "0 0.25rem 0.5rem 0rem rgba(3, 3, 3, 0.48), 0 0 0.25rem 0 rgba(3, 3, 3, 0.24)",
|
|
38
|
+
cardBackgroundColor: "#292929",
|
|
39
|
+
cardBorderColor: "#A3A3A3",
|
|
40
|
+
mainSectionBackgroundColor: "#292929",
|
|
41
|
+
formControlBackgroundColor: "#36373A",
|
|
42
|
+
sidebarBackgroundColor: "#151515",
|
|
43
|
+
sidebarDividerColor: "#383838",
|
|
44
|
+
sidebarItemSelectedBackgroundColor: "#292929",
|
|
45
|
+
tableTitleColor: "#E0E0E0",
|
|
46
|
+
tableSubtitleColor: "#E0E0E0",
|
|
47
|
+
tableColumnTitleColor: "#E0E0E0",
|
|
48
|
+
tableRowHover: "#292929",
|
|
49
|
+
tableBorderColor: "#515151",
|
|
50
|
+
tableBackgroundColor: "#292929",
|
|
51
|
+
tabsLinkHoverBackgroundColor: "rgba(199, 199, 199, 0.1500)",
|
|
52
|
+
contrastText: "#FFF",
|
|
53
|
+
appBarBackgroundColor: "#151515",
|
|
54
|
+
appBarBackgroundImage: "none"
|
|
12
55
|
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
color: "#ffffff",
|
|
17
|
-
selectedColor: "#ffffff",
|
|
18
|
-
navItem: {
|
|
19
|
-
hoverBackground: "#3c3f42"
|
|
20
|
-
},
|
|
21
|
-
submenu: {
|
|
22
|
-
background: "#0f1214"
|
|
23
|
-
}
|
|
56
|
+
primary: {
|
|
57
|
+
main: "#92c5f9",
|
|
58
|
+
focusVisibleBorder: "#ADD6FF"
|
|
24
59
|
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
60
|
+
secondary: {
|
|
61
|
+
main: "#92c5f9",
|
|
62
|
+
focusVisibleBorder: "#ADD6FF"
|
|
28
63
|
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
paperBackgroundImage: "none",
|
|
34
|
-
paperBorderColor: "#A3A3A3",
|
|
35
|
-
// Box shadow from PatternFly 5 (--pf-v5-global--BoxShadow--sm)
|
|
36
|
-
popoverBoxShadow: "0 0.25rem 0.5rem 0rem rgba(3, 3, 3, 0.48), 0 0 0.25rem 0 rgba(3, 3, 3, 0.24)",
|
|
37
|
-
cardBackgroundColor: "#1b1d21",
|
|
38
|
-
cardBorderColor: "#A3A3A3",
|
|
39
|
-
headerBottomBorderColor: "#A3A3A3",
|
|
40
|
-
mainSectionBackgroundColor: "#0f1214",
|
|
41
|
-
formControlBackgroundColor: "#36373A",
|
|
42
|
-
sidebarBackgroundColor: "#1b1d21",
|
|
43
|
-
sidebarItemSelectedBackgroundColor: "#4F5255",
|
|
44
|
-
tableTitleColor: "#E0E0E0",
|
|
45
|
-
tableSubtitleColor: "#E0E0E0",
|
|
46
|
-
tableColumnTitleColor: "#E0E0E0",
|
|
47
|
-
tableRowHover: "#0f1214",
|
|
48
|
-
tableBorderColor: "#515151",
|
|
49
|
-
tableBackgroundColor: "#1b1d21",
|
|
50
|
-
tabsDisabledBackgroundColor: "#444548",
|
|
51
|
-
tabsBottomBorderColor: "#444548",
|
|
52
|
-
contrastText: "#FFF",
|
|
53
|
-
appBarBackgroundColor: "#1b1d21",
|
|
54
|
-
appBarBackgroundImage: "none"
|
|
55
|
-
},
|
|
56
|
-
primary: {
|
|
57
|
-
main: "#1FA7F8",
|
|
58
|
-
focusVisibleBorder: "#ADD6FF"
|
|
59
|
-
},
|
|
60
|
-
secondary: {
|
|
61
|
-
main: "#1FA7F8",
|
|
62
|
-
focusVisibleBorder: "#ADD6FF"
|
|
63
|
-
},
|
|
64
|
-
cards: {
|
|
65
|
-
headerTextColor: "#FFF",
|
|
66
|
-
headerBackgroundColor: "#0f1214",
|
|
67
|
-
headerBackgroundImage: "none"
|
|
68
|
-
}
|
|
64
|
+
cards: {
|
|
65
|
+
headerTextColor: "#FFF",
|
|
66
|
+
headerBackgroundColor: "#292929",
|
|
67
|
+
headerBackgroundImage: "none"
|
|
69
68
|
}
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
const customDarkTheme = () => {
|
|
72
|
+
const palette = palettes.dark;
|
|
73
|
+
return {
|
|
74
|
+
...palette,
|
|
75
|
+
...darkThemeOverrides
|
|
70
76
|
};
|
|
71
77
|
};
|
|
72
78
|
|
|
73
|
-
export { customDarkTheme };
|
|
79
|
+
export { customDarkTheme, darkThemeOverrides };
|
|
74
80
|
//# sourceMappingURL=darkTheme.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"darkTheme.esm.js","sources":["../src/darkTheme.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { palettes } from '@backstage/theme';\nimport { type PaletteOptions } from '@mui/material/styles';\n\nimport { type ThemeConfigPalette } from './types';\n\nexport const
|
|
1
|
+
{"version":3,"file":"darkTheme.esm.js","sources":["../src/darkTheme.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { palettes } from '@backstage/theme';\nimport { type PaletteOptions } from '@mui/material/styles';\n\nimport { type ThemeConfigPalette } from './types';\n\nexport const darkThemeOverrides: Partial<ThemeConfigPalette> = {\n primary: {\n main: '#92c5f9',\n },\n secondary: {\n main: '#92c5f9',\n },\n navigation: {\n background: '#292929',\n indicator: 'transparent',\n color: '#ffffff',\n selectedColor: '#ffffff',\n navItem: {\n hoverBackground: '#292929',\n },\n submenu: {\n background: '#292929',\n },\n },\n text: {\n primary: '#ffffff',\n secondary: '#c7c7c7',\n },\n background: {\n default: '#292929',\n paper: '#292929',\n },\n rhdh: {\n general: {\n disabled: '#AAABAC',\n disabledBackground: '#444548',\n\n paperBackgroundImage: 'none',\n paperBorderColor: '#A3A3A3',\n\n // Box shadow from PatternFly 5 (--pf-v5-global--BoxShadow--sm)\n popoverBoxShadow:\n '0 0.25rem 0.5rem 0rem rgba(3, 3, 3, 0.48), 0 0 0.25rem 0 rgba(3, 3, 3, 0.24)',\n\n cardBackgroundColor: '#292929',\n cardBorderColor: '#A3A3A3',\n\n mainSectionBackgroundColor: '#292929',\n formControlBackgroundColor: '#36373A',\n\n sidebarBackgroundColor: '#151515',\n sidebarDividerColor: '#383838',\n sidebarItemSelectedBackgroundColor: '#292929',\n\n tableTitleColor: '#E0E0E0',\n tableSubtitleColor: '#E0E0E0',\n tableColumnTitleColor: '#E0E0E0',\n tableRowHover: '#292929',\n tableBorderColor: '#515151',\n tableBackgroundColor: '#292929',\n tabsLinkHoverBackgroundColor: 'rgba(199, 199, 199, 0.1500)',\n\n contrastText: '#FFF',\n\n appBarBackgroundColor: '#151515',\n appBarBackgroundImage: 'none',\n },\n primary: {\n main: '#92c5f9',\n focusVisibleBorder: '#ADD6FF',\n },\n secondary: {\n main: '#92c5f9',\n focusVisibleBorder: '#ADD6FF',\n },\n cards: {\n headerTextColor: '#FFF',\n headerBackgroundColor: '#292929',\n headerBackgroundImage: 'none',\n },\n },\n};\n\nexport const customDarkTheme = (): ThemeConfigPalette => {\n const palette: (typeof palettes)['dark'] & PaletteOptions = palettes.dark;\n return {\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MAClB,oBAAsB,EAAA,SAAA;AAAA,MACtB,4BAA8B,EAAA,6BAAA;AAAA,MAE9B,YAAc,EAAA,MAAA;AAAA,MAEd,qBAAuB,EAAA,SAAA;AAAA,MACvB,qBAAuB,EAAA;AAAA,KACzB;AAAA,IACA,OAAS,EAAA;AAAA,MACP,IAAM,EAAA,SAAA;AAAA,MACN,kBAAoB,EAAA;AAAA,KACtB;AAAA,IACA,SAAW,EAAA;AAAA,MACT,IAAM,EAAA,SAAA;AAAA,MACN,kBAAoB,EAAA;AAAA,KACtB;AAAA,IACA,KAAO,EAAA;AAAA,MACL,eAAiB,EAAA,MAAA;AAAA,MACjB,qBAAuB,EAAA,SAAA;AAAA,MACvB,qBAAuB,EAAA;AAAA;AACzB;AAEJ;AAEO,MAAM,kBAAkB,MAA0B;AACvD,EAAA,MAAM,UAAsD,QAAS,CAAA,IAAA;AACrE,EAAO,OAAA;AAAA,IACL,GAAG,OAAA;AAAA,IACH,GAAG;AAAA,GACL;AACF;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
export { default as LightIcon } from '@mui/icons-material/WbSunnyRounded';
|
|
2
|
+
export { default as DarkIcon } from '@mui/icons-material/Brightness2Rounded';
|
|
1
3
|
import { UnifiedThemeOptions } from '@backstage/theme';
|
|
2
4
|
import * as _mui_material_styles from '@mui/material/styles';
|
|
5
|
+
import React from 'react';
|
|
3
6
|
import { AppTheme } from '@backstage/core-plugin-api';
|
|
4
7
|
|
|
5
8
|
type BackstageThemePalette = UnifiedThemeOptions['palette'];
|
|
@@ -12,12 +15,10 @@ interface RHDHThemePalette {
|
|
|
12
15
|
popoverBoxShadow: string;
|
|
13
16
|
cardBackgroundColor: string;
|
|
14
17
|
cardBorderColor: string;
|
|
15
|
-
headerBottomBorderColor: string;
|
|
16
18
|
mainSectionBackgroundColor: string;
|
|
17
19
|
formControlBackgroundColor: string;
|
|
18
|
-
/** @deprecated please use `sidebarBackgroundColor` instead */
|
|
19
|
-
sideBarBackgroundColor?: string;
|
|
20
20
|
sidebarBackgroundColor: string;
|
|
21
|
+
sidebarDividerColor: string;
|
|
21
22
|
sidebarItemSelectedBackgroundColor: string;
|
|
22
23
|
tableTitleColor: string;
|
|
23
24
|
tableSubtitleColor: string;
|
|
@@ -25,8 +26,7 @@ interface RHDHThemePalette {
|
|
|
25
26
|
tableRowHover: string;
|
|
26
27
|
tableBorderColor: string;
|
|
27
28
|
tableBackgroundColor: string;
|
|
28
|
-
|
|
29
|
-
tabsBottomBorderColor: string;
|
|
29
|
+
tabsLinkHoverBackgroundColor: string;
|
|
30
30
|
contrastText: string;
|
|
31
31
|
appBarBackgroundColor: string;
|
|
32
32
|
appBarBackgroundImage: string;
|
|
@@ -72,6 +72,7 @@ interface ThemeConfigOptions {
|
|
|
72
72
|
tables?: 'patternfly' | 'mui';
|
|
73
73
|
tabs?: 'patternfly' | 'mui';
|
|
74
74
|
appBar?: 'patternfly' | 'mui';
|
|
75
|
+
breadcrumbs?: 'patternfly' | 'mui';
|
|
75
76
|
}
|
|
76
77
|
interface ThemeConfig {
|
|
77
78
|
/** Optional key to load different defaults. Fallbacks to the latest `rhdh` theme if not defined. */
|
|
@@ -104,10 +105,16 @@ declare const useThemeConfig: (themeName: string) => ThemeConfig;
|
|
|
104
105
|
/** Creates a memorized Backstage UnifiedThemeOptions based on the given ThemeConfig. */
|
|
105
106
|
declare const useThemeOptions: (themeConfig: ThemeConfig) => UnifiedThemeOptions;
|
|
106
107
|
|
|
108
|
+
declare const lightThemeProvider: (props: {
|
|
109
|
+
children: React.ReactNode;
|
|
110
|
+
}) => JSX.Element | null;
|
|
111
|
+
declare const darkThemeProvider: (props: {
|
|
112
|
+
children: React.ReactNode;
|
|
113
|
+
}) => JSX.Element | null;
|
|
107
114
|
declare const getAllThemes: () => AppTheme[];
|
|
108
115
|
declare const useAllThemes: () => AppTheme[];
|
|
109
116
|
declare const getThemes: () => AppTheme[];
|
|
110
117
|
declare const useThemes: () => AppTheme[];
|
|
111
118
|
declare const useLoaderTheme: () => _mui_material_styles.Theme;
|
|
112
119
|
|
|
113
|
-
export { type BackstageThemePalette, type Branding, type Config, type RHDHThemePalette, type ThemeConfig, type ThemeConfigOptions, type ThemeConfigPageTheme, type ThemeConfigPalette, getAllThemes, getThemes, useAllThemes, useBranding, useLoaderTheme, useThemeConfig, useThemeOptions, useThemes };
|
|
120
|
+
export { type BackstageThemePalette, type Branding, type Config, type RHDHThemePalette, type ThemeConfig, type ThemeConfigOptions, type ThemeConfigPageTheme, type ThemeConfigPalette, darkThemeProvider, getAllThemes, getThemes, lightThemeProvider, useAllThemes, useBranding, useLoaderTheme, useThemeConfig, useThemeOptions, useThemes };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
export { default as LightIcon } from '@mui/icons-material/WbSunnyRounded';
|
|
2
|
+
export { default as DarkIcon } from '@mui/icons-material/Brightness2Rounded';
|
|
1
3
|
export { useBranding } from './hooks/useBranding.esm.js';
|
|
2
4
|
export { useThemeConfig } from './hooks/useThemeConfig.esm.js';
|
|
3
5
|
export { useThemeOptions } from './hooks/useThemeOptions.esm.js';
|
|
4
|
-
export { getAllThemes, getThemes, useAllThemes, useLoaderTheme, useThemes } from './themes.esm.js';
|
|
6
|
+
export { darkThemeProvider, getAllThemes, getThemes, lightThemeProvider, useAllThemes, useLoaderTheme, useThemes } from './themes.esm.js';
|
|
5
7
|
//# sourceMappingURL=index.esm.js.map
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
package/dist/lightTheme.esm.js
CHANGED
|
@@ -1,78 +1,80 @@
|
|
|
1
1
|
import { palettes } from '@backstage/theme';
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
const lightThemeOverrides = {
|
|
4
|
+
primary: {
|
|
5
|
+
main: "#0066CC"
|
|
6
|
+
},
|
|
7
|
+
secondary: {
|
|
8
|
+
main: "#0066CC"
|
|
9
|
+
},
|
|
10
|
+
navigation: {
|
|
11
|
+
background: "#222427",
|
|
12
|
+
indicator: "transparent",
|
|
13
|
+
color: "#151515",
|
|
14
|
+
selectedColor: "#151515",
|
|
15
|
+
navItem: {
|
|
16
|
+
hoverBackground: "#ffffff"
|
|
12
17
|
},
|
|
13
|
-
|
|
14
|
-
background: "#222427"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
submenu: {
|
|
19
|
+
background: "#222427"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
text: {
|
|
23
|
+
primary: "#151515",
|
|
24
|
+
secondary: "#757575"
|
|
25
|
+
},
|
|
26
|
+
background: {
|
|
27
|
+
default: "#FFFFFF",
|
|
28
|
+
paper: "#FFFFFF"
|
|
29
|
+
},
|
|
30
|
+
rhdh: {
|
|
31
|
+
general: {
|
|
32
|
+
disabled: "#6A6E73",
|
|
33
|
+
disabledBackground: "#D2D2D2",
|
|
34
|
+
paperBackgroundImage: "none",
|
|
35
|
+
paperBorderColor: "#C7C7C7",
|
|
36
|
+
// Box shadow from PatternFly 5 (--pf-v5-global--BoxShadow--sm)
|
|
37
|
+
popoverBoxShadow: "0 0.25rem 0.5rem 0rem rgba(3, 3, 3, 0.12), 0 0 0.25rem 0 rgba(3, 3, 3, 0.06)",
|
|
38
|
+
cardBackgroundColor: "#FFF",
|
|
39
|
+
cardBorderColor: "#C7C7C7",
|
|
40
|
+
mainSectionBackgroundColor: "#FFF",
|
|
41
|
+
formControlBackgroundColor: "#FFF",
|
|
42
|
+
sidebarBackgroundColor: "#f2f2f2",
|
|
43
|
+
sidebarDividerColor: "#c7c7c7",
|
|
44
|
+
sidebarItemSelectedBackgroundColor: "#FFF",
|
|
45
|
+
tableTitleColor: "#181818",
|
|
46
|
+
tableSubtitleColor: "#616161",
|
|
47
|
+
tableColumnTitleColor: "#151515",
|
|
48
|
+
tableRowHover: "#F5F5F5",
|
|
49
|
+
tableBorderColor: "#E0E0E0",
|
|
50
|
+
tableBackgroundColor: "#FFF",
|
|
51
|
+
tabsLinkHoverBackgroundColor: "rgba(199, 199, 199, 0.2500)",
|
|
52
|
+
contrastText: "#FFF",
|
|
53
|
+
appBarBackgroundColor: "#212427",
|
|
54
|
+
appBarBackgroundImage: "none"
|
|
24
55
|
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
56
|
+
primary: {
|
|
57
|
+
main: "#0066CC",
|
|
58
|
+
focusVisibleBorder: "#0066CC"
|
|
28
59
|
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
60
|
+
secondary: {
|
|
61
|
+
main: "#0066CC",
|
|
62
|
+
focusVisibleBorder: "#0066CC"
|
|
32
63
|
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
paperBackgroundImage: "none",
|
|
38
|
-
paperBorderColor: "#C7C7C7",
|
|
39
|
-
// Box shadow from PatternFly 5 (--pf-v5-global--BoxShadow--sm)
|
|
40
|
-
popoverBoxShadow: "0 0.25rem 0.5rem 0rem rgba(3, 3, 3, 0.12), 0 0 0.25rem 0 rgba(3, 3, 3, 0.06)",
|
|
41
|
-
cardBackgroundColor: "#FFF",
|
|
42
|
-
cardBorderColor: "#C7C7C7",
|
|
43
|
-
headerBottomBorderColor: "#C7C7C7",
|
|
44
|
-
mainSectionBackgroundColor: "#FFF",
|
|
45
|
-
formControlBackgroundColor: "#FFF",
|
|
46
|
-
sidebarBackgroundColor: "#212427",
|
|
47
|
-
sidebarItemSelectedBackgroundColor: "#4F5255",
|
|
48
|
-
tableTitleColor: "#181818",
|
|
49
|
-
tableSubtitleColor: "#616161",
|
|
50
|
-
tableColumnTitleColor: "#151515",
|
|
51
|
-
tableRowHover: "#F5F5F5",
|
|
52
|
-
tableBorderColor: "#E0E0E0",
|
|
53
|
-
tableBackgroundColor: "#FFF",
|
|
54
|
-
tabsDisabledBackgroundColor: "#f5f5f5",
|
|
55
|
-
tabsBottomBorderColor: "#D2D2D2",
|
|
56
|
-
contrastText: "#FFF",
|
|
57
|
-
appBarBackgroundColor: "#212427",
|
|
58
|
-
appBarBackgroundImage: "none"
|
|
59
|
-
},
|
|
60
|
-
primary: {
|
|
61
|
-
main: "#0066CC",
|
|
62
|
-
focusVisibleBorder: "#0066CC"
|
|
63
|
-
},
|
|
64
|
-
secondary: {
|
|
65
|
-
main: "#0066CC",
|
|
66
|
-
focusVisibleBorder: "#0066CC"
|
|
67
|
-
},
|
|
68
|
-
cards: {
|
|
69
|
-
headerTextColor: "#151515",
|
|
70
|
-
headerBackgroundColor: "#FFF",
|
|
71
|
-
headerBackgroundImage: "none"
|
|
72
|
-
}
|
|
64
|
+
cards: {
|
|
65
|
+
headerTextColor: "#151515",
|
|
66
|
+
headerBackgroundColor: "#FFF",
|
|
67
|
+
headerBackgroundImage: "none"
|
|
73
68
|
}
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
const customLightTheme = () => {
|
|
72
|
+
const palette = palettes.light;
|
|
73
|
+
return {
|
|
74
|
+
...palette,
|
|
75
|
+
...lightThemeOverrides
|
|
74
76
|
};
|
|
75
77
|
};
|
|
76
78
|
|
|
77
|
-
export { customLightTheme };
|
|
79
|
+
export { customLightTheme, lightThemeOverrides };
|
|
78
80
|
//# sourceMappingURL=lightTheme.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lightTheme.esm.js","sources":["../src/lightTheme.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { palettes } from '@backstage/theme';\nimport { type PaletteOptions } from '@mui/material/styles';\n\nimport { type ThemeConfigPalette } from './types';\n\nexport const
|
|
1
|
+
{"version":3,"file":"lightTheme.esm.js","sources":["../src/lightTheme.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { palettes } from '@backstage/theme';\nimport { type PaletteOptions } from '@mui/material/styles';\n\nimport { type ThemeConfigPalette } from './types';\n\nexport const lightThemeOverrides: Partial<ThemeConfigPalette> = {\n primary: {\n main: '#0066CC',\n },\n secondary: {\n main: '#0066CC',\n },\n navigation: {\n background: '#222427',\n indicator: 'transparent',\n color: '#151515',\n selectedColor: '#151515',\n navItem: {\n hoverBackground: '#ffffff',\n },\n submenu: {\n background: '#222427',\n },\n },\n text: {\n primary: '#151515',\n secondary: '#757575',\n },\n background: {\n default: '#FFFFFF',\n paper: '#FFFFFF',\n },\n rhdh: {\n general: {\n disabled: '#6A6E73',\n disabledBackground: '#D2D2D2',\n\n paperBackgroundImage: 'none',\n paperBorderColor: '#C7C7C7',\n\n // Box shadow from PatternFly 5 (--pf-v5-global--BoxShadow--sm)\n popoverBoxShadow:\n '0 0.25rem 0.5rem 0rem rgba(3, 3, 3, 0.12), 0 0 0.25rem 0 rgba(3, 3, 3, 0.06)',\n\n cardBackgroundColor: '#FFF',\n cardBorderColor: '#C7C7C7',\n\n mainSectionBackgroundColor: '#FFF',\n formControlBackgroundColor: '#FFF',\n\n sidebarBackgroundColor: '#f2f2f2',\n sidebarDividerColor: '#c7c7c7',\n sidebarItemSelectedBackgroundColor: '#FFF',\n\n tableTitleColor: '#181818',\n tableSubtitleColor: '#616161',\n tableColumnTitleColor: '#151515',\n tableRowHover: '#F5F5F5',\n tableBorderColor: '#E0E0E0',\n tableBackgroundColor: '#FFF',\n tabsLinkHoverBackgroundColor: 'rgba(199, 199, 199, 0.2500)',\n\n contrastText: '#FFF',\n\n appBarBackgroundColor: '#212427',\n appBarBackgroundImage: 'none',\n },\n primary: {\n main: '#0066CC',\n focusVisibleBorder: '#0066CC',\n },\n secondary: {\n main: '#0066CC',\n focusVisibleBorder: '#0066CC',\n },\n cards: {\n headerTextColor: '#151515',\n headerBackgroundColor: '#FFF',\n headerBackgroundImage: 'none',\n },\n },\n};\n\nexport const customLightTheme = (): ThemeConfigPalette => {\n const palette: (typeof palettes)['light'] & PaletteOptions = palettes.light;\n return {\n ...palette,\n ...lightThemeOverrides,\n };\n};\n"],"names":[],"mappings":";;AAqBO,MAAM,mBAAmD,GAAA;AAAA,EAC9D,OAAS,EAAA;AAAA,IACP,IAAM,EAAA;AAAA,GACR;AAAA,EACA,SAAW,EAAA;AAAA,IACT,IAAM,EAAA;AAAA,GACR;AAAA,EACA,UAAY,EAAA;AAAA,IACV,UAAY,EAAA,SAAA;AAAA,IACZ,SAAW,EAAA,aAAA;AAAA,IACX,KAAO,EAAA,SAAA;AAAA,IACP,aAAe,EAAA,SAAA;AAAA,IACf,OAAS,EAAA;AAAA,MACP,eAAiB,EAAA;AAAA,KACnB;AAAA,IACA,OAAS,EAAA;AAAA,MACP,UAAY,EAAA;AAAA;AACd,GACF;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,OAAS,EAAA,SAAA;A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AA,MAAM,UAAuD,QAAS,CAAA,KAAA;AACtE,EAAO,OAAA;AAAA,IACL,GAAG,OAAA;AAAA,IACH,GAAG;AAAA,GACL;AACF;;;;"}
|
package/dist/rhdh.esm.js
CHANGED
|
@@ -14,7 +14,7 @@ const getDefaultThemeConfig = (mode) => {
|
|
|
14
14
|
defaultPageTheme: "default",
|
|
15
15
|
pageTheme: {
|
|
16
16
|
default: {
|
|
17
|
-
backgroundColor: mode === "dark" ? "#
|
|
17
|
+
backgroundColor: mode === "dark" ? "#292929" : "#ffffff",
|
|
18
18
|
fontColor: mode === "dark" ? "#ffffff" : "#000000"
|
|
19
19
|
}
|
|
20
20
|
},
|
package/dist/rhdh.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rhdh.esm.js","sources":["../src/rhdh.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ThemeConfig } from './types';\nimport { customDarkTheme } from './darkTheme';\nimport { customLightTheme } from './lightTheme';\nimport { redHatFonts } from './fonts';\nimport { typography } from './typography';\n\nexport const getDefaultThemeConfig = (mode: 'light' | 'dark'): ThemeConfig => {\n const palette = mode === 'dark' ? customDarkTheme() : customLightTheme();\n\n return {\n variant: 'rhdh',\n mode: mode === 'dark' ? 'dark' : 'light',\n palette,\n fontFamily: redHatFonts.text,\n typography,\n defaultPageTheme: 'default',\n pageTheme: {\n default: {\n backgroundColor: mode === 'dark' ? '#
|
|
1
|
+
{"version":3,"file":"rhdh.esm.js","sources":["../src/rhdh.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ThemeConfig } from './types';\nimport { customDarkTheme } from './darkTheme';\nimport { customLightTheme } from './lightTheme';\nimport { redHatFonts } from './fonts';\nimport { typography } from './typography';\n\nexport const getDefaultThemeConfig = (mode: 'light' | 'dark'): ThemeConfig => {\n const palette = mode === 'dark' ? customDarkTheme() : customLightTheme();\n\n return {\n variant: 'rhdh',\n mode: mode === 'dark' ? 'dark' : 'light',\n palette,\n fontFamily: redHatFonts.text,\n typography,\n defaultPageTheme: 'default',\n pageTheme: {\n default: {\n backgroundColor: mode === 'dark' ? '#292929' : '#ffffff',\n fontColor: mode === 'dark' ? '#ffffff' : '#000000',\n },\n },\n options: {},\n };\n};\n"],"names":[],"mappings":";;;;;AAsBa,MAAA,qBAAA,GAAwB,CAAC,IAAwC,KAAA;AAC5E,EAAA,MAAM,OAAU,GAAA,IAAA,KAAS,MAAS,GAAA,eAAA,KAAoB,gBAAiB,EAAA;AAEvE,EAAO,OAAA;AAAA,IACL,OAAS,EAAA,MAAA;AAAA,IACT,IAAA,EAAM,IAAS,KAAA,MAAA,GAAS,MAAS,GAAA,OAAA;AAAA,IACjC,OAAA;AAAA,IACA,YAAY,WAAY,CAAA,IAAA;AAAA,IACxB,UAAA;AAAA,IACA,gBAAkB,EAAA,SAAA;AAAA,IAClB,SAAW,EAAA;AAAA,MACT,OAAS,EAAA;AAAA,QACP,eAAA,EAAiB,IAAS,KAAA,MAAA,GAAS,SAAY,GAAA,SAAA;AAAA,QAC/C,SAAA,EAAW,IAAS,KAAA,MAAA,GAAS,SAAY,GAAA;AAAA;AAC3C,KACF;AAAA,IACA,SAAS;AAAC,GACZ;AACF;;;;"}
|
package/dist/themes.esm.js
CHANGED
|
@@ -7,6 +7,8 @@ import { createThemeProviderForThemeName, createThemeProviderForThemeConfig, cre
|
|
|
7
7
|
import { getDefaultThemeConfig } from './backstage.esm.js';
|
|
8
8
|
import { getDefaultThemeConfig as getDefaultThemeConfig$1 } from './rhdh.esm.js';
|
|
9
9
|
|
|
10
|
+
const lightThemeProvider = createThemeProviderForThemeName("light");
|
|
11
|
+
const darkThemeProvider = createThemeProviderForThemeName("dark");
|
|
10
12
|
const getAllThemes = () => {
|
|
11
13
|
return [
|
|
12
14
|
{
|
|
@@ -101,5 +103,5 @@ const useLoaderTheme = () => {
|
|
|
101
103
|
}, []);
|
|
102
104
|
};
|
|
103
105
|
|
|
104
|
-
export { getAllThemes, getThemes, useAllThemes, useLoaderTheme, useThemes };
|
|
106
|
+
export { darkThemeProvider, getAllThemes, getThemes, lightThemeProvider, useAllThemes, useLoaderTheme, useThemes };
|
|
105
107
|
//# sourceMappingURL=themes.esm.js.map
|
package/dist/themes.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themes.esm.js","sources":["../src/themes.tsx"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from 'react';\nimport { AppTheme } from '@backstage/core-plugin-api';\nimport { themes } from '@backstage/theme';\n\nimport LightIcon from '@mui/icons-material/WbSunnyRounded';\nimport DarkIcon from '@mui/icons-material/Brightness2Rounded';\nimport { createTheme } from '@mui/material/styles';\n\nimport {\n createThemeProvider,\n createThemeProviderForThemeName,\n createThemeProviderForThemeConfig,\n} from './components/ThemeProvider';\nimport * as backstage from './backstage';\nimport * as rhdh from './rhdh';\n\nexport const getAllThemes = (): AppTheme[] => {\n return [\n {\n id: 'light',\n title: 'RHDH Light (latest)',\n variant: 'light',\n icon: <LightIcon />,\n Provider: createThemeProviderForThemeName('light'),\n },\n {\n id: 'dark',\n title: 'RHDH Dark (latest)',\n variant: 'dark',\n icon: <DarkIcon />,\n Provider: createThemeProviderForThemeName('dark'),\n },\n {\n id: 'light-customized',\n title: 'RHDH Light (customized)',\n variant: 'light',\n icon: <LightIcon />,\n Provider: createThemeProviderForThemeConfig({\n mode: 'light',\n variant: 'rhdh',\n palette: {\n primary: { main: '#ff0000' },\n secondary: { main: '#00ff00' },\n },\n }),\n },\n {\n id: 'dark-customized',\n title: 'RHDH Dark (customized)',\n variant: 'dark',\n icon: <DarkIcon />,\n Provider: createThemeProviderForThemeConfig({\n mode: 'dark',\n variant: 'rhdh',\n palette: {\n primary: { main: '#ff0000' },\n secondary: { main: '#00ff00' },\n },\n }),\n },\n {\n id: 'backstage-light',\n title: 'Backstage Light',\n variant: 'light',\n icon: <LightIcon />,\n Provider: createThemeProvider(themes.light),\n },\n {\n id: 'backstage-dark',\n title: 'Backstage Dark',\n variant: 'dark',\n icon: <DarkIcon />,\n Provider: createThemeProvider(themes.dark),\n },\n ];\n};\n\nexport const useAllThemes = (): AppTheme[] => {\n return React.useMemo(() => getAllThemes(), []);\n};\n\nexport const getThemes = (): AppTheme[] => {\n return [\n {\n id: 'light',\n title: 'Light',\n variant: 'light',\n icon: <LightIcon />,\n Provider: createThemeProviderForThemeName('light'),\n },\n {\n id: 'dark',\n title: 'Dark',\n variant: 'dark',\n icon: <DarkIcon />,\n Provider: createThemeProviderForThemeName('dark'),\n },\n ];\n};\n\nexport const useThemes = (): AppTheme[] => {\n return React.useMemo(() => getThemes(), []);\n};\n\nexport const useLoaderTheme = () => {\n return React.useMemo(() => {\n const latestTheme = localStorage.getItem('theme');\n const mode = latestTheme?.includes('dark') ? 'dark' : 'light';\n const variant = latestTheme?.includes('backstage') ? 'backstage' : 'rhdh';\n const themeOptions =\n variant === 'backstage'\n ? backstage.getDefaultThemeConfig(mode)\n : rhdh.getDefaultThemeConfig(mode);\n return createTheme(themeOptions);\n }, []);\n};\n"],"names":["backstage.getDefaultThemeConfig","rhdh.getDefaultThemeConfig"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"themes.esm.js","sources":["../src/themes.tsx"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from 'react';\nimport { AppTheme } from '@backstage/core-plugin-api';\nimport { themes } from '@backstage/theme';\n\nimport LightIcon from '@mui/icons-material/WbSunnyRounded';\nimport DarkIcon from '@mui/icons-material/Brightness2Rounded';\nimport { createTheme } from '@mui/material/styles';\n\nimport {\n createThemeProvider,\n createThemeProviderForThemeName,\n createThemeProviderForThemeConfig,\n} from './components/ThemeProvider';\nimport * as backstage from './backstage';\nimport * as rhdh from './rhdh';\n\nexport const lightThemeProvider = createThemeProviderForThemeName('light');\n\nexport const darkThemeProvider = createThemeProviderForThemeName('dark');\n\nexport const getAllThemes = (): AppTheme[] => {\n return [\n {\n id: 'light',\n title: 'RHDH Light (latest)',\n variant: 'light',\n icon: <LightIcon />,\n Provider: createThemeProviderForThemeName('light'),\n },\n {\n id: 'dark',\n title: 'RHDH Dark (latest)',\n variant: 'dark',\n icon: <DarkIcon />,\n Provider: createThemeProviderForThemeName('dark'),\n },\n {\n id: 'light-customized',\n title: 'RHDH Light (customized)',\n variant: 'light',\n icon: <LightIcon />,\n Provider: createThemeProviderForThemeConfig({\n mode: 'light',\n variant: 'rhdh',\n palette: {\n primary: { main: '#ff0000' },\n secondary: { main: '#00ff00' },\n },\n }),\n },\n {\n id: 'dark-customized',\n title: 'RHDH Dark (customized)',\n variant: 'dark',\n icon: <DarkIcon />,\n Provider: createThemeProviderForThemeConfig({\n mode: 'dark',\n variant: 'rhdh',\n palette: {\n primary: { main: '#ff0000' },\n secondary: { main: '#00ff00' },\n },\n }),\n },\n {\n id: 'backstage-light',\n title: 'Backstage Light',\n variant: 'light',\n icon: <LightIcon />,\n Provider: createThemeProvider(themes.light),\n },\n {\n id: 'backstage-dark',\n title: 'Backstage Dark',\n variant: 'dark',\n icon: <DarkIcon />,\n Provider: createThemeProvider(themes.dark),\n },\n ];\n};\n\nexport const useAllThemes = (): AppTheme[] => {\n return React.useMemo(() => getAllThemes(), []);\n};\n\nexport const getThemes = (): AppTheme[] => {\n return [\n {\n id: 'light',\n title: 'Light',\n variant: 'light',\n icon: <LightIcon />,\n Provider: createThemeProviderForThemeName('light'),\n },\n {\n id: 'dark',\n title: 'Dark',\n variant: 'dark',\n icon: <DarkIcon />,\n Provider: createThemeProviderForThemeName('dark'),\n },\n ];\n};\n\nexport const useThemes = (): AppTheme[] => {\n return React.useMemo(() => getThemes(), []);\n};\n\nexport const useLoaderTheme = () => {\n return React.useMemo(() => {\n const latestTheme = localStorage.getItem('theme');\n const mode = latestTheme?.includes('dark') ? 'dark' : 'light';\n const variant = latestTheme?.includes('backstage') ? 'backstage' : 'rhdh';\n const themeOptions =\n variant === 'backstage'\n ? backstage.getDefaultThemeConfig(mode)\n : rhdh.getDefaultThemeConfig(mode);\n return createTheme(themeOptions);\n }, []);\n};\n"],"names":["backstage.getDefaultThemeConfig","rhdh.getDefaultThemeConfig"],"mappings":";;;;;;;;;AAgCa,MAAA,kBAAA,GAAqB,gCAAgC,OAAO;AAE5D,MAAA,iBAAA,GAAoB,gCA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,OAAA,CAAQ,OAAO,CAAA;AAChD,IAAA,MAAM,IAAO,GAAA,WAAA,EAAa,QAAS,CAAA,MAAM,IAAI,MAAS,GAAA,OAAA;AACtD,IAAA,MAAM,OAAU,GAAA,WAAA,EAAa,QAAS,CAAA,WAAW,IAAI,WAAc,GAAA,MAAA;AACnE,IAAM,MAAA,YAAA,GACJ,YAAY,WACR,GAAAA,sBAAgC,IAAI,CAAA,GACpCC,uBAAK,CAAsB,IAAI,CAAA;AACrC,IAAA,OAAO,YAAY,YAAY,CAAA;AAAA,GACjC,EAAG,EAAE,CAAA;AACP;;;;"}
|
|
@@ -37,7 +37,7 @@ const createComponents = (themeConfig) => {
|
|
|
37
37
|
styleOverrides: {
|
|
38
38
|
button: {
|
|
39
39
|
textTransform: "none",
|
|
40
|
-
fontWeight: "
|
|
40
|
+
fontWeight: "normal"
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
};
|
|
@@ -115,12 +115,14 @@ const createComponents = (themeConfig) => {
|
|
|
115
115
|
styleOverrides: {
|
|
116
116
|
root: {
|
|
117
117
|
textTransform: "none",
|
|
118
|
-
borderRadius: "3px"
|
|
118
|
+
borderRadius: "3px",
|
|
119
|
+
fontWeight: "normal"
|
|
119
120
|
},
|
|
120
121
|
contained: {
|
|
121
122
|
border: "0",
|
|
123
|
+
borderRadius: "99em",
|
|
122
124
|
boxShadow: "none",
|
|
123
|
-
"&:hover": {
|
|
125
|
+
"&:hover, &:focus-visible": {
|
|
124
126
|
border: "0",
|
|
125
127
|
boxShadow: "none"
|
|
126
128
|
},
|
|
@@ -129,6 +131,7 @@ const createComponents = (themeConfig) => {
|
|
|
129
131
|
}
|
|
130
132
|
},
|
|
131
133
|
containedPrimary: {
|
|
134
|
+
borderRadius: "99em",
|
|
132
135
|
"&:focus-visible": {
|
|
133
136
|
boxShadow: `inset 0 0 0 1px ${rhdhPrimary.focusVisibleBorder}`,
|
|
134
137
|
outline: `${rhdhPrimary.focusVisibleBorder} solid 1px`
|
|
@@ -149,8 +152,9 @@ const createComponents = (themeConfig) => {
|
|
|
149
152
|
}
|
|
150
153
|
},
|
|
151
154
|
outlined: {
|
|
155
|
+
borderRadius: "99em",
|
|
152
156
|
border: `1px solid color-mix(in srgb, currentColor 50%, transparent)`,
|
|
153
|
-
"&:hover": {
|
|
157
|
+
"&:hover, &:focus-visible": {
|
|
154
158
|
backgroundColor: "transparent",
|
|
155
159
|
border: `1px solid`
|
|
156
160
|
},
|
|
@@ -161,12 +165,12 @@ const createComponents = (themeConfig) => {
|
|
|
161
165
|
}
|
|
162
166
|
},
|
|
163
167
|
outlinedPrimary: {
|
|
164
|
-
"&:hover": {
|
|
168
|
+
"&:hover, &:focus-visible": {
|
|
165
169
|
backgroundColor: "transparent"
|
|
166
170
|
}
|
|
167
171
|
},
|
|
168
172
|
outlinedSecondary: {
|
|
169
|
-
"&:hover": {
|
|
173
|
+
"&:hover, &:focus-visible": {
|
|
170
174
|
backgroundColor: "transparent"
|
|
171
175
|
}
|
|
172
176
|
},
|
|
@@ -197,7 +201,7 @@ const createComponents = (themeConfig) => {
|
|
|
197
201
|
components.MuiLink = {
|
|
198
202
|
styleOverrides: {
|
|
199
203
|
underlineHover: {
|
|
200
|
-
"&:hover": {
|
|
204
|
+
"&:hover, &:focus-visible": {
|
|
201
205
|
textDecoration: "none"
|
|
202
206
|
}
|
|
203
207
|
}
|
|
@@ -226,7 +230,7 @@ const createComponents = (themeConfig) => {
|
|
|
226
230
|
}
|
|
227
231
|
};
|
|
228
232
|
}
|
|
229
|
-
if (options.
|
|
233
|
+
if (options.checkbox !== "mui") {
|
|
230
234
|
components.MuiCheckbox = {
|
|
231
235
|
defaultProps: {
|
|
232
236
|
color: "primary"
|
|
@@ -258,7 +262,8 @@ const createComponents = (themeConfig) => {
|
|
|
258
262
|
root: {
|
|
259
263
|
display: "flex",
|
|
260
264
|
flexDirection: "column",
|
|
261
|
-
backgroundColor: general.cardBackgroundColor
|
|
265
|
+
backgroundColor: general.cardBackgroundColor,
|
|
266
|
+
borderRadius: "16px"
|
|
262
267
|
}
|
|
263
268
|
}
|
|
264
269
|
};
|
|
@@ -401,7 +406,7 @@ const createComponents = (themeConfig) => {
|
|
|
401
406
|
},
|
|
402
407
|
styleOverrides: {
|
|
403
408
|
root: {
|
|
404
|
-
borderBottom: `1px solid ${general.
|
|
409
|
+
borderBottom: `1px solid ${general.paperBorderColor}`,
|
|
405
410
|
padding: "0 1.5rem"
|
|
406
411
|
},
|
|
407
412
|
vertical: {
|
|
@@ -414,16 +419,15 @@ const createComponents = (themeConfig) => {
|
|
|
414
419
|
textAlign: "left"
|
|
415
420
|
},
|
|
416
421
|
borderBottom: `none`,
|
|
417
|
-
borderLeft: `1px solid ${general.
|
|
418
|
-
padding: 0
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
"& > button:hover": {
|
|
422
|
-
boxShadow: `2px 0 ${general.tabsBottomBorderColor} inset`
|
|
422
|
+
borderLeft: `1px solid ${general.paperBorderColor}`,
|
|
423
|
+
padding: 0,
|
|
424
|
+
"& span[class*='MuiTabs-indicator']": {
|
|
425
|
+
width: "3px"
|
|
423
426
|
}
|
|
424
427
|
},
|
|
425
428
|
indicator: {
|
|
426
|
-
left: 0
|
|
429
|
+
left: 0,
|
|
430
|
+
height: "3px"
|
|
427
431
|
}
|
|
428
432
|
}
|
|
429
433
|
};
|
|
@@ -433,17 +437,63 @@ const createComponents = (themeConfig) => {
|
|
|
433
437
|
},
|
|
434
438
|
styleOverrides: {
|
|
435
439
|
root: {
|
|
436
|
-
|
|
440
|
+
fontWeight: "400",
|
|
437
441
|
minWidth: "initial !important",
|
|
438
|
-
"
|
|
439
|
-
|
|
442
|
+
padding: "0.25em 1em",
|
|
443
|
+
position: "relative",
|
|
444
|
+
textTransform: "none",
|
|
445
|
+
zIndex: 1,
|
|
446
|
+
"&:before": {
|
|
447
|
+
content: '""',
|
|
448
|
+
display: "block",
|
|
449
|
+
position: "absolute",
|
|
450
|
+
top: "0.75em",
|
|
451
|
+
left: "0.5em",
|
|
452
|
+
right: "0.5em",
|
|
453
|
+
bottom: "0.75em",
|
|
454
|
+
borderRadius: "4px",
|
|
455
|
+
zIndex: -1
|
|
440
456
|
},
|
|
441
|
-
"
|
|
442
|
-
|
|
457
|
+
"&.Mui-selected": {
|
|
458
|
+
color: `${palette.text?.primary} !important`
|
|
459
|
+
},
|
|
460
|
+
'&[class*="v5"]': {
|
|
461
|
+
lineHeight: 1.75
|
|
462
|
+
},
|
|
463
|
+
"&:hover, &:focus-visible": {
|
|
464
|
+
backgroundColor: "transparent !important",
|
|
465
|
+
"&:before": {
|
|
466
|
+
backgroundColor: general.tabsLinkHoverBackgroundColor
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"&:disabled": {
|
|
470
|
+
color: general.disabled,
|
|
471
|
+
"&:before": {
|
|
472
|
+
backgroundColor: general.disabledBackground
|
|
473
|
+
}
|
|
443
474
|
}
|
|
444
475
|
}
|
|
445
476
|
}
|
|
446
477
|
};
|
|
478
|
+
if (options.breadcrumbs !== "mui") {
|
|
479
|
+
components.MuiBreadcrumbs = {
|
|
480
|
+
defaultProps: {
|
|
481
|
+
separator: ">"
|
|
482
|
+
},
|
|
483
|
+
styleOverrides: {
|
|
484
|
+
separator: {
|
|
485
|
+
fontWeight: "bold"
|
|
486
|
+
},
|
|
487
|
+
root: {
|
|
488
|
+
fontWeight: "400"
|
|
489
|
+
},
|
|
490
|
+
li: {
|
|
491
|
+
fontSize: "0.875rem !important",
|
|
492
|
+
fontStyle: "normal !important"
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
};
|
|
496
|
+
}
|
|
447
497
|
}
|
|
448
498
|
if (options.tabs !== "mui") {
|
|
449
499
|
components.BackstageHeaderTabs = {
|
|
@@ -454,21 +504,10 @@ const createComponents = (themeConfig) => {
|
|
|
454
504
|
},
|
|
455
505
|
defaultTab: {
|
|
456
506
|
textTransform: "none",
|
|
457
|
-
fontSize: "
|
|
458
|
-
fontWeight: "
|
|
459
|
-
color:
|
|
460
|
-
padding: "0.
|
|
461
|
-
"&:hover": {
|
|
462
|
-
boxShadow: `0 -3px ${general.tabsBottomBorderColor} inset`
|
|
463
|
-
}
|
|
464
|
-
},
|
|
465
|
-
tabRoot: {
|
|
466
|
-
"&:hover": {
|
|
467
|
-
backgroundColor: "unset"
|
|
468
|
-
},
|
|
469
|
-
"&:not(.Mui-selected):hover": {
|
|
470
|
-
color: general.disabled
|
|
471
|
-
}
|
|
507
|
+
fontSize: "0.875rem",
|
|
508
|
+
fontWeight: "400",
|
|
509
|
+
color: "unset",
|
|
510
|
+
padding: "0.25em 1em"
|
|
472
511
|
}
|
|
473
512
|
}
|
|
474
513
|
};
|
|
@@ -477,28 +516,100 @@ const createComponents = (themeConfig) => {
|
|
|
477
516
|
components.BackstageSidebar = {
|
|
478
517
|
styleOverrides: {
|
|
479
518
|
drawer: {
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
519
|
+
gap: "0.25rem",
|
|
520
|
+
borderRight: `0.5rem solid ${general.sidebarBackgroundColor}`,
|
|
521
|
+
paddingBottom: "1.5rem",
|
|
522
|
+
backgroundColor: general.sidebarBackgroundColor,
|
|
523
|
+
"& hr": {
|
|
524
|
+
backgroundColor: general.sidebarDividerColor
|
|
483
525
|
}
|
|
484
526
|
}
|
|
485
527
|
}
|
|
486
528
|
};
|
|
487
529
|
components.BackstageSidebarItem = {
|
|
488
530
|
styleOverrides: {
|
|
531
|
+
root: {
|
|
532
|
+
borderRadius: "6px",
|
|
533
|
+
width: "calc(100% - 0.5rem) !important",
|
|
534
|
+
marginLeft: "0.5rem !important"
|
|
535
|
+
},
|
|
489
536
|
label: {
|
|
490
537
|
'&[class*="MuiTypography-subtitle2"]': {
|
|
491
|
-
fontWeight: "
|
|
538
|
+
fontWeight: "normal"
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
selected: {
|
|
542
|
+
backgroundColor: general.sidebarItemSelectedBackgroundColor
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
};
|
|
546
|
+
components.MuiBottomNavigation = {
|
|
547
|
+
styleOverrides: {
|
|
548
|
+
root: {
|
|
549
|
+
backgroundColor: `${general.sidebarBackgroundColor} !important`,
|
|
550
|
+
borderColor: `${general.sidebarBackgroundColor} !important`
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
};
|
|
554
|
+
components.MuiBottomNavigationAction = {
|
|
555
|
+
defaultProps: {
|
|
556
|
+
disableRipple
|
|
557
|
+
},
|
|
558
|
+
styleOverrides: {
|
|
559
|
+
root: {
|
|
560
|
+
color: `${palette.text?.primary} !important`,
|
|
561
|
+
backgroundColor: `${general.sidebarBackgroundColor} !important`,
|
|
562
|
+
borderRadius: "6px",
|
|
563
|
+
borderTop: "3px solid transparent !important",
|
|
564
|
+
// default mui selected styling
|
|
565
|
+
paddingTop: "6px !important",
|
|
566
|
+
// default mui selected styling
|
|
567
|
+
marginTop: "-1px !important",
|
|
568
|
+
// default mui selected styling
|
|
569
|
+
"&:hover, &:focus-visible": {
|
|
570
|
+
backgroundColor: `${general.sidebarItemSelectedBackgroundColor} !important`
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
selected: {
|
|
574
|
+
backgroundColor: `${general.sidebarItemSelectedBackgroundColor} !important`,
|
|
575
|
+
color: `${palette.text?.primary} !important`
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
};
|
|
579
|
+
components.MuiDrawer = {
|
|
580
|
+
styleOverrides: {
|
|
581
|
+
root: {
|
|
582
|
+
// undocumented Backstage makeStyles
|
|
583
|
+
"& [class*='makeStyles-overlay-']": {
|
|
584
|
+
backgroundColor: `${general.sidebarBackgroundColor} !important`
|
|
585
|
+
},
|
|
586
|
+
"& hr": {
|
|
587
|
+
backgroundColor: general.sidebarDividerColor
|
|
492
588
|
}
|
|
493
589
|
}
|
|
494
590
|
}
|
|
495
591
|
};
|
|
496
592
|
}
|
|
497
593
|
if (options.pages !== "mui") {
|
|
498
|
-
components.
|
|
594
|
+
components.BackstageSidebarPage = {
|
|
499
595
|
styleOverrides: {
|
|
500
596
|
root: {
|
|
501
|
-
|
|
597
|
+
// Controls the page inset as in PF6 -- only in desktop view
|
|
598
|
+
"@media (min-width: 600px)": {
|
|
599
|
+
backgroundColor: general.sidebarBackgroundColor,
|
|
600
|
+
"& > [class*='MuiLinearProgress-root'], & > main": {
|
|
601
|
+
borderRadius: "2.5rem",
|
|
602
|
+
border: `1.5rem solid ${general.sidebarBackgroundColor}`,
|
|
603
|
+
marginLeft: "-1.5rem"
|
|
604
|
+
},
|
|
605
|
+
"& > [class*='MuiLinearProgress-root']": {
|
|
606
|
+
backgroundColor: general.mainSectionBackgroundColor,
|
|
607
|
+
height: "100vh",
|
|
608
|
+
"& > [class*='MuiLinearProgress-']": {
|
|
609
|
+
height: "0.5rem !important"
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
}
|
|
502
613
|
}
|
|
503
614
|
}
|
|
504
615
|
};
|
|
@@ -524,14 +635,43 @@ const createComponents = (themeConfig) => {
|
|
|
524
635
|
components.BackstageHeader = {
|
|
525
636
|
styleOverrides: {
|
|
526
637
|
header: {
|
|
527
|
-
boxShadow: "none"
|
|
528
|
-
borderBottom: `1px solid ${general.headerBottomBorderColor}`
|
|
638
|
+
boxShadow: "none"
|
|
529
639
|
},
|
|
530
640
|
title: {
|
|
531
|
-
fontWeight: "bold",
|
|
532
641
|
'&[class*="MuiTypography-h1-"]': {
|
|
533
|
-
fontWeight: "
|
|
534
|
-
fontSize: "
|
|
642
|
+
fontWeight: "500",
|
|
643
|
+
fontSize: "1.5rem"
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
subtitle: {
|
|
647
|
+
'&[class*="BackstageHeader-subtitle-"]': {
|
|
648
|
+
fontWeight: "normal",
|
|
649
|
+
fontSize: "0.875rem",
|
|
650
|
+
opacity: 1
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
breadcrumb: {
|
|
654
|
+
marginBottom: "0.5rem"
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
};
|
|
658
|
+
components.BreadcrumbsCurrentPage = {
|
|
659
|
+
styleOverrides: {
|
|
660
|
+
root: {
|
|
661
|
+
"& p": {
|
|
662
|
+
fontStyle: "normal",
|
|
663
|
+
fontSize: "inherit"
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
};
|
|
668
|
+
components.BackstageBreadcrumbsStyledBox = {
|
|
669
|
+
styleOverrides: {
|
|
670
|
+
root: {
|
|
671
|
+
textDecoration: "underline !important",
|
|
672
|
+
color: palette.rhdh?.primary.main,
|
|
673
|
+
"&:hover": {
|
|
674
|
+
color: `color-mix(in srgb, ${palette.rhdh?.primary.main} 50%, ${palette.text?.primary})`
|
|
535
675
|
}
|
|
536
676
|
}
|
|
537
677
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createComponents.esm.js","sources":["../../src/utils/createComponents.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n type UnifiedThemeOptions,\n defaultComponentThemes as backstageComponents,\n} from '@backstage/theme';\nimport { type CSSObject } from '@mui/material/styles';\n\nimport { ThemeConfig, ThemeConfigOptions, RHDHThemePalette } from '../types';\nimport { redHatFontFaces, redHatFonts } from '../fonts';\n\nexport type Component = {\n defaultProps?: unknown;\n styleOverrides?: unknown;\n variants?: unknown;\n};\n\nexport type Components = UnifiedThemeOptions['components'] & {\n BackstageHeaderTabs?: Component;\n BackstageSidebar?: Component;\n BackstageSidebarItem?: Component;\n BackstagePage?: Component;\n BackstageContent?: Component;\n BackstageContentHeader?: Component;\n BackstageHeader?: Component;\n BackstageItemCardHeader?: Component;\n BackstageTableToolbar?: Component;\n CatalogReactUserListPicker?: Component;\n PrivateTabIndicator?: Component;\n};\n\nexport const createComponents = (themeConfig: ThemeConfig): Components => {\n // Short hands to ensure that the code doesn't break if one of the properties is not defined.\n\n const options = themeConfig.options ?? ({} as ThemeConfigOptions);\n const disableRipple = options?.rippleEffect !== 'on'; // by default ripple effect is disabled\n\n const palette = themeConfig.palette ?? {};\n\n const general = palette.rhdh?.general || ({} as RHDHThemePalette['general']);\n const rhdhPrimary =\n palette.rhdh?.primary || ({} as RHDHThemePalette['primary']);\n const rhdhSecondary =\n palette.rhdh?.secondary || ({} as RHDHThemePalette['secondary']);\n\n const components: Components = {};\n if (options.components === 'backstage' || options.components === 'mui') {\n return components;\n }\n\n //\n // MUI components\n //\n components.MuiCssBaseline = {\n styleOverrides: theme => {\n const backstageOverrides =\n backstageComponents!.MuiCssBaseline!.styleOverrides!;\n const backstageStyles =\n typeof backstageOverrides === 'function'\n ? (backstageOverrides(theme) as CSSObject)\n : (backstageOverrides as CSSObject);\n\n return {\n ...backstageStyles,\n '@font-face': redHatFontFaces,\n body: {\n ...(backstageStyles.body as CSSObject),\n fontFamily: redHatFonts.text,\n },\n 'h1, h2, h3, h4, h5, h6': {\n fontFamily: redHatFonts.heading,\n },\n 'pre, code': {\n fontFamily: redHatFonts.monospace,\n },\n };\n },\n };\n\n // MUI base\n if (options.buttons !== 'mui') {\n components.MuiTypography = {\n styleOverrides: {\n button: {\n textTransform: 'none',\n fontWeight: 'bold',\n },\n },\n };\n }\n\n // MUI container\n if (options.paper !== 'mui') {\n const elevationStyle = {\n boxShadow: 'none',\n outline: `1px solid ${general.paperBorderColor}`,\n '& > hr[class|=\"MuiDivider-root\"]': {\n backgroundColor: general.paperBorderColor,\n },\n };\n const noElevationStyle = {\n boxShadow: 'none',\n outline: 'none',\n };\n\n components.MuiPaper = {\n styleOverrides: {\n root: {\n // This works for all MUI v5 components, but in MUI v4\n boxShadow: 'none',\n outline: `1px solid ${general.paperBorderColor}`,\n // Required only for MUI v5 components because a gradient `backgroundImage`\n // overrides the default background.paper color otherwise.\n backgroundImage: general.paperBackgroundImage,\n // hide the first child element which is a divider with MuiDivider-root classname in MuiPaper\n '& > hr:first-child[class|=\"MuiDivider-root\"]': {\n height: 0,\n },\n },\n rounded: {\n '& > :last-child': {\n borderBottomLeftRadius: 4,\n borderBottomRightRadius: 4,\n },\n },\n elevation0: noElevationStyle,\n },\n };\n components.MuiPopover = {\n styleOverrides: {\n paper: {\n // Box shadow from PatternFly 5 (--pf-v5-global--BoxShadow--sm)\n boxShadow: general.popoverBoxShadow,\n // `Popover` has no outline by default, but since we're adding it to the `Paper`\n // components, this ensures that the `Popover` doesn't has a shadow and an outline.\n outline: 0,\n },\n },\n };\n\n // Required for MUI v4, not MUI v5\n const elevations = Array.from(\n { length: 24 },\n (_, i) => `elevation${i + 1}`,\n ) as 'elevation1'[];\n elevations.forEach(elevation => {\n components.MuiPaper!.styleOverrides![elevation] = elevationStyle;\n });\n }\n\n // MUI AppBar\n if (options.appBar !== 'mui') {\n components.MuiAppBar = {\n styleOverrides: {\n root: {\n backgroundColor: general.appBarBackgroundColor,\n backgroundImage: general.appBarBackgroundImage,\n outline: 'none',\n },\n },\n };\n }\n\n // MUI buttons\n // Don't disableRipple for MuiButtonBase as it will affect all the buttons\n // and we need to ensure that the buttons have a right touch and focus styling.\n if (options.buttons !== 'mui') {\n components.MuiButton = {\n defaultProps: {\n disableRipple,\n },\n styleOverrides: {\n root: {\n textTransform: 'none',\n borderRadius: '3px',\n },\n contained: {\n border: '0',\n boxShadow: 'none',\n '&:hover': {\n border: '0',\n boxShadow: 'none',\n },\n '&:-webkit-any-link:focus-visible': {\n outlineOffset: '0',\n },\n },\n containedPrimary: {\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 1px ${rhdhPrimary.focusVisibleBorder}`,\n outline: `${rhdhPrimary.focusVisibleBorder} solid 1px`,\n },\n '&:disabled': {\n color: general.disabled,\n backgroundColor: general.disabledBackground,\n },\n },\n containedSecondary: {\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 1px ${rhdhSecondary.focusVisibleBorder}`,\n outline: `${rhdhSecondary.focusVisibleBorder} solid 1px`,\n },\n '&:disabled': {\n color: general.disabled,\n backgroundColor: general.disabledBackground,\n },\n },\n outlined: {\n border: `1px solid color-mix(in srgb, currentColor 50%, transparent)`,\n '&:hover': {\n backgroundColor: 'transparent',\n border: `1px solid`,\n },\n '&:disabled': {\n color: general.disabled,\n backgroudColor: general.disabledBackground,\n border: `1px solid ${general.disabledBackground}`,\n },\n },\n outlinedPrimary: {\n '&:hover': {\n backgroundColor: 'transparent',\n },\n },\n outlinedSecondary: {\n '&:hover': {\n backgroundColor: 'transparent',\n },\n },\n text: {\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${rhdhPrimary.main}`,\n outline: `${rhdhPrimary.focusVisibleBorder} solid 1px`,\n },\n },\n },\n };\n components.MuiToggleButton = {\n styleOverrides: {\n root: {\n textTransform: 'none',\n },\n },\n };\n components.MuiIconButton = {\n styleOverrides: {\n root: {\n '&:disabled': {\n color: general.disabled,\n },\n },\n },\n };\n components.MuiLink = {\n styleOverrides: {\n underlineHover: {\n '&:hover': {\n textDecoration: 'none',\n },\n },\n },\n };\n }\n\n // MUI input fields\n if (options.inputs !== 'mui') {\n components.MuiInputBase = {\n styleOverrides: {\n input: {\n '&::placeholder': {\n color: general.disabled,\n opacity: 1,\n },\n },\n },\n };\n components.MuiOutlinedInput = {\n styleOverrides: {\n input: {\n '&:autofill': {\n boxShadow: `0 0 0 100px ${general.formControlBackgroundColor} inset`,\n borderRadius: 'unset',\n },\n },\n },\n };\n }\n\n if (options.inputs !== 'mui') {\n components.MuiCheckbox = {\n defaultProps: {\n color: 'primary',\n },\n };\n }\n\n // MUI accordion\n if (options.accordions !== 'mui') {\n components.MuiAccordion = {\n styleOverrides: {\n root: {\n boxShadow: 'none',\n },\n rounded: {\n '&:first-child': {\n borderTopLeftRadius: '0',\n borderTopRightRadius: '0',\n },\n '&:last-child': {\n borderBottomLeftRadius: '0',\n borderBottomRightRadius: '0',\n },\n },\n },\n };\n }\n\n // MUI cards\n if (options.cards !== 'mui') {\n components.MuiCard = {\n styleOverrides: {\n root: {\n display: 'flex',\n flexDirection: 'column',\n backgroundColor: general.cardBackgroundColor,\n },\n },\n };\n components.MuiCardHeader = {\n styleOverrides: {\n content: {\n '& > span > nav span': {\n textTransform: 'unset',\n letterSpacing: 'normal',\n fountweight: 'normal',\n },\n },\n title: {\n fontSize: '1.125rem',\n },\n action: {\n '& > a > span > svg': {\n fontSize: '1.125rem',\n },\n '& > a[class*=\"MuiIconButton-root\"]:hover': {\n backgroundColor: 'transparent',\n },\n },\n },\n };\n components.MuiCardContent = {\n styleOverrides: {\n root: {\n flexGrow: '1',\n backgroundColor: general.cardBackgroundColor,\n '& > div > div > h2[class*=\"MuiTypography-h2-\"]': {\n textTransform: 'unset',\n opacity: '40%',\n },\n '& > div > div > div[class*=\"MuiChip-sizeSmall\"]': {\n backgroundColor: 'transparent',\n borderRadius: '8px',\n outline: `1px solid ${general.disabled}`,\n },\n '& > div[class*=\"Mui-expanded\"]': {\n margin: 'auto',\n },\n '& > div[class*=\"MuiAccordion-root\"]:before': {\n height: 0,\n },\n // Override the default line-clamp from 10 to 2 for the Software template catalog\n '& > div[class*=\"MuiGrid-root-\"][class*=\"MuiGrid-container-\"][class*=\"MuiGrid-spacing-xs-2-\"] > div[class*=\"MuiGrid-root-\"][class*=\"MuiGrid-item-\"][class*=\"MuiGrid-grid-xs-12-\"] > div[class*=\"MuiBox-root-\"]':\n {\n '-webkit-line-clamp': '2',\n },\n },\n },\n };\n }\n\n // MUI table\n if (options.tables !== 'mui') {\n components.MuiTable = {\n styleOverrides: {\n root: {\n backgroundColor: general.tableBackgroundColor,\n },\n },\n };\n components.MuiTableRow = {\n styleOverrides: {\n root: {\n backgroundColor: general.tableBackgroundColor,\n '&:not([class*=\"MuiTableRow-footer\"]):hover': {\n backgroundColor: `${general.tableRowHover} !important`,\n },\n '& > th[class*=\"MuiTableCell-head\"]': {\n backgroundColor: general.tableBackgroundColor,\n },\n },\n },\n };\n components.MuiTableCell = {\n styleOverrides: {\n root: {\n textTransform: 'none',\n '&[class*=\"BackstageTableHeader-header\"]': {\n borderTop: 'unset',\n borderBottom: `1px solid ${general.tableBorderColor}`,\n },\n },\n // @ts-expect-error: MUI types are not up to date\n head: {\n textTransform: 'unset !important',\n color: `${general.tableColumnTitleColor} !important`,\n '& > span[class*=\"MuiTableSortLabel-active\"]': {\n color: `${rhdhPrimary.main} !important`,\n },\n '& > span > svg[class*=\"MuiTableSortLabel-icon\"]': {\n color: 'inherit !important',\n },\n },\n body: {\n color: general.tableTitleColor,\n '& > div[class*=\"MuiChip-sizeSmall\"]': {\n margin: '2px',\n },\n },\n },\n };\n components.MuiTableFooter = {\n styleOverrides: {\n root: {\n '& > tr > td': {\n borderBottom: 'none',\n },\n },\n },\n };\n }\n\n // MUI toolbar\n if (options.toolbars !== 'mui') {\n components.MuiToolbar = {\n styleOverrides: {\n regular: {\n '& > div > h2[class*=\"MuiTypography-h5\"]': {\n fontSize: '1.25rem',\n color: general.tableTitleColor,\n },\n },\n },\n };\n }\n\n // MUI dialogs\n if (options.dialogs !== 'mui') {\n components.MuiDialogContent = {\n styleOverrides: {\n root: {\n '& > div': {\n backgroundColor: general.cardBackgroundColor,\n },\n },\n },\n };\n }\n\n // MUI tabs\n if (options.tabs !== 'mui') {\n components.MuiTabs = {\n defaultProps: {\n indicatorColor: 'primary',\n },\n styleOverrides: {\n root: {\n borderBottom: `1px solid ${general.tabsBottomBorderColor}`,\n padding: '0 1.5rem',\n },\n vertical: {\n '& > div > div > button[class*=\"v5\"]': {\n alignItems: 'baseline',\n textAlign: 'left',\n },\n '& > div > div > button > span': {\n alignItems: 'baseline',\n textAlign: 'left',\n },\n borderBottom: `none`,\n borderLeft: `1px solid ${general.tabsBottomBorderColor}`,\n padding: 0,\n },\n flexContainerVertical: {\n '& > button:hover': {\n boxShadow: `2px 0 ${general.tabsBottomBorderColor} inset`,\n },\n },\n indicator: {\n left: 0,\n },\n },\n };\n components.MuiTab = {\n defaultProps: {\n disableRipple,\n },\n styleOverrides: {\n root: {\n textTransform: 'none',\n minWidth: 'initial !important',\n '&:disabled': {\n backgroundColor: general.tabsDisabledBackgroundColor,\n },\n '&:hover': {\n boxShadow: `0 -2px ${general.tabsBottomBorderColor} inset`,\n },\n },\n },\n };\n }\n\n //\n // Backstage\n //\n if (options.tabs !== 'mui') {\n components.BackstageHeaderTabs = {\n styleOverrides: {\n tabsWrapper: {\n paddingLeft: '0',\n backgroundColor: general.mainSectionBackgroundColor,\n },\n defaultTab: {\n textTransform: 'none',\n fontSize: '1rem',\n fontWeight: '500',\n color: general.disabled,\n padding: '0.5rem 1rem',\n '&:hover': {\n boxShadow: `0 -3px ${general.tabsBottomBorderColor} inset`,\n },\n },\n tabRoot: {\n '&:hover': {\n backgroundColor: 'unset',\n },\n '&:not(.Mui-selected):hover': {\n color: general.disabled,\n },\n },\n },\n };\n }\n\n if (options.sidebars !== 'mui') {\n components.BackstageSidebar = {\n styleOverrides: {\n drawer: {\n backgroundColor:\n general.sidebarBackgroundColor ?? general.sideBarBackgroundColor,\n '& a[class*=\"BackstageSidebarItem-selected-\"]': {\n backgroundColor: general.sidebarItemSelectedBackgroundColor,\n },\n },\n },\n };\n components.BackstageSidebarItem = {\n styleOverrides: {\n label: {\n '&[class*=\"MuiTypography-subtitle2\"]': {\n fontWeight: '500',\n },\n },\n },\n };\n }\n\n if (options.pages !== 'mui') {\n components.BackstagePage = {\n styleOverrides: {\n root: {\n backgroundColor: general.mainSectionBackgroundColor,\n },\n },\n };\n components.BackstageContent = {\n styleOverrides: {\n root: {\n backgroundColor: general.mainSectionBackgroundColor,\n },\n },\n };\n components.BackstageContentHeader = {\n styleOverrides: {\n leftItemsBox: {\n '& > h2[class*=\"BackstageContentHeader-title-\"][class*=\"MuiTypography-h4-\"]':\n {\n fontWeight: 'bold',\n fontSize: '1.75rem',\n },\n },\n },\n };\n }\n\n if (options.headers !== 'mui') {\n components.BackstageHeader = {\n styleOverrides: {\n header: {\n boxShadow: 'none',\n borderBottom: `1px solid ${general.headerBottomBorderColor}`,\n },\n title: {\n fontWeight: 'bold',\n '&[class*=\"MuiTypography-h1-\"]': {\n fontWeight: 'bold',\n fontSize: '2rem',\n },\n },\n },\n };\n components.BackstageItemCardHeader = {\n styleOverrides: {\n root: {\n // This is required to increase the css specificity, to OVERRIDE the styles from\n // BackstageItemCardHeader (https://github.com/backstage/backstage/blob/master/packages/core-components/src/layout/ItemCard/ItemCardHeader.tsx)\n // These are applied with a CSS class as well.\n\n // This variant is used when running the Storybook locally (dev mode) and in Backstage/RHDH!\n '&[class*=\"MuiBox-root-\"]': {\n color: palette.rhdh?.cards?.headerTextColor,\n backgroundColor: palette.rhdh?.cards?.headerBackgroundColor,\n backgroundImage: palette.rhdh?.cards?.headerBackgroundImage,\n borderBottom: `1px solid ${general.cardBorderColor}`,\n },\n // This variant is used when building a static Storybook (`storybook:build`)\n '&[class~=\"MuiBox-root\"]': {\n color: palette.rhdh?.cards?.headerTextColor,\n backgroundColor: palette.rhdh?.cards?.headerBackgroundColor,\n backgroundImage: palette.rhdh?.cards?.headerBackgroundImage,\n borderBottom: `1px solid ${general.cardBorderColor}`,\n },\n '& > h3[class*=\"MuiTypography-subtitle2-\"] > div > div:first-child': {\n textTransform: 'capitalize',\n },\n },\n },\n };\n }\n\n if (options.toolbars !== 'mui') {\n components.BackstageTableToolbar = {\n styleOverrides: {\n root: {\n '& h2': {\n fontWeight: 'bold',\n },\n },\n title: {\n '& > h2': {\n fontWeight: 'bold',\n },\n },\n },\n };\n }\n\n //\n // Others\n //\n components.CatalogReactUserListPicker = {\n styleOverrides: {\n root: {\n borderRadius: '4px',\n },\n title: {\n textTransform: 'none',\n },\n },\n };\n\n if (options.tabs !== 'mui') {\n components.PrivateTabIndicator = {\n styleOverrides: {\n root: {\n height: '3px',\n },\n vertical: {\n width: '3px',\n },\n },\n };\n }\n\n return components;\n};\n"],"names":["backstageComponents"],"mappings":";;;AA6Ca,MAAA,gBAAA,GAAmB,CAAC,WAAyC,KAAA;AAGxE,EAAM,MAAA,OAAA,GAAU,WAAY,CAAA,OAAA,IAAY,EAAC;AACzC,EAAM,MAAA,aAAA,GAAgB,SAAS,YAAiB,KAAA,IAAA;AAEhD,EAAM,MAAA,OAAA,GAAU,WAAY,CAAA,OAAA,IAAW,EAAC;AAExC,EAAA,MAAM,OAAU,GAAA,OAAA,CAAQ,IAAM,EAAA,OAAA,IAAY,EAAC;AAC3C,EAAA,MAAM,WACJ,GAAA,OAAA,CAAQ,IAAM,EAAA,OAAA,IAAY,EAAC;AAC7B,EAAA,MAAM,aACJ,GAAA,OAAA,CAAQ,IAAM,EAAA,SAAA,IAAc,EAAC;AAE/B,EAAA,MAAM,aAAyB,EAAC;AAChC,EAAA,IAAI,OAAQ,CAAA,UAAA,KAAe,WAAe,IAAA,OAAA,CAAQ,eAAe,KAAO,EAAA;AACtE,IAAO,OAAA,UAAA;AAAA;AAMT,EAAA,UAAA,CAAW,cAAiB,GAAA;AAAA,IAC1B,gBAAgB,CAAS,KAAA,KAAA;AACvB,MAAM,MAAA,kBAAA,GACJA,uBAAqB,cAAgB,CAAA,cAAA;AACvC,MAAA,MAAM,kBACJ,OAAO,kBAAA,KAAuB,UACzB,GAAA,kBAAA,CAAmB,KAAK,CACxB,GAAA,kBAAA;AAEP,MAAO,OAAA;AAAA,QACL,GAAG,eAAA;AAAA,QACH,YAAc,EAAA,eAAA;AAAA,QACd,IAAM,EAAA;AAAA,UACJ,GAAI,eAAgB,CAAA,IAAA;AAAA,UACpB,YAAY,WAAY,CAAA;AAAA,SAC1B;AAAA,QACA,wBAA0B,EAAA;AAAA,UACxB,YAAY,WAAY,CAAA;AAAA,SAC1B;AAAA,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AA,eAAA;AAAA,YAC5B,eAAA,EAAiB,OAAQ,CAAA,IAAA,EAAM,KAAO,EAAA,qBAAA;AAAA,YACtC,eAAA,EAAiB,OAAQ,CAAA,IAAA,EAAM,KAAO,EAAA,qBAAA;AAAA,YACtC,YAAA,EAAc,CAAa,UAAA,EAAA,OAAA,CAAQ,eAAe,CAAA;AAAA,WACpD;AAAA,UACA,mEAAqE,EAAA;AAAA,YACnE,aAAe,EAAA;AAAA;AACjB;AACF;AACF,KACF;AAAA;AAGF,EAAI,IAAA,OAAA,CAAQ,aAAa,KAAO,EAAA;AAC9B,IAAA,UAAA,CAAW,qBAAwB,GAAA;AAAA,MACjC,cAAgB,EAAA;AAAA,QACd,IAAM,EAAA;AAAA,UACJ,MAAQ,EAAA;AAAA,YACN,UAAY,EAAA;AAAA;AACd,SACF;AAAA,QACA,KAAO,EAAA;AAAA,UACL,QAAU,EAAA;AAAA,YACR,UAAY,EAAA;AAAA;AACd;AACF;AACF,KACF;AAAA;AAMF,EAAA,UAAA,CAAW,0BAA6B,GAAA;AAAA,IACtC,cAAgB,EAAA;AAAA,MACd,IAAM,EAAA;AAAA,QACJ,YAAc,EAAA;AAAA,OAChB;AAAA,MACA,KAAO,EAAA;AAAA,QACL,aAAe,EAAA;AAAA;AACjB;AACF,GACF;AAEA,EAAI,IAAA,OAAA,CAAQ,SAAS,KAAO,EAAA;AAC1B,IAAA,UAAA,CAAW,mBAAsB,GAAA;AAAA,MAC/B,cAAgB,EAAA;AAAA,QACd,IAAM,EAAA;AAAA,UACJ,MAAQ,EAAA;AAAA,SACV;AAAA,QACA,QAAU,EAAA;AAAA,UACR,KAAO,EAAA;AAAA;AACT;AACF,KACF;AAAA;AAGF,EAAO,OAAA,UAAA;AACT;;;;"}
|
|
1
|
+
{"version":3,"file":"createComponents.esm.js","sources":["../../src/utils/createComponents.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n type UnifiedThemeOptions,\n defaultComponentThemes as backstageComponents,\n} from '@backstage/theme';\nimport { type CSSObject } from '@mui/material/styles';\n\nimport { ThemeConfig, ThemeConfigOptions, RHDHThemePalette } from '../types';\nimport { redHatFontFaces, redHatFonts } from '../fonts';\n\nexport type Component = {\n defaultProps?: unknown;\n styleOverrides?: unknown;\n variants?: unknown;\n};\n\nexport type Components = UnifiedThemeOptions['components'] & {\n BackstageHeaderTabs?: Component;\n BackstageSidebar?: Component;\n BackstageSidebarItem?: Component;\n BackstagePage?: Component;\n BackstageContent?: Component;\n BackstageContentHeader?: Component;\n BackstageHeader?: Component;\n BackstageItemCardHeader?: Component;\n BackstageTableToolbar?: Component;\n CatalogReactUserListPicker?: Component;\n PrivateTabIndicator?: Component;\n};\n\nexport const createComponents = (themeConfig: ThemeConfig): Components => {\n // Short hands to ensure that the code doesn't break if one of the properties is not defined.\n\n const options = themeConfig.options ?? ({} as ThemeConfigOptions);\n const disableRipple = options?.rippleEffect !== 'on'; // by default ripple effect is disabled\n\n const palette = themeConfig.palette ?? {};\n\n const general = palette.rhdh?.general || ({} as RHDHThemePalette['general']);\n const rhdhPrimary =\n palette.rhdh?.primary || ({} as RHDHThemePalette['primary']);\n const rhdhSecondary =\n palette.rhdh?.secondary || ({} as RHDHThemePalette['secondary']);\n\n const components: Components = {};\n if (options.components === 'backstage' || options.components === 'mui') {\n return components;\n }\n\n //\n // MUI components\n //\n components.MuiCssBaseline = {\n styleOverrides: theme => {\n const backstageOverrides =\n backstageComponents!.MuiCssBaseline!.styleOverrides!;\n const backstageStyles =\n typeof backstageOverrides === 'function'\n ? (backstageOverrides(theme) as CSSObject)\n : (backstageOverrides as CSSObject);\n\n return {\n ...backstageStyles,\n '@font-face': redHatFontFaces,\n body: {\n ...(backstageStyles.body as CSSObject),\n fontFamily: redHatFonts.text,\n },\n 'h1, h2, h3, h4, h5, h6': {\n fontFamily: redHatFonts.heading,\n },\n 'pre, code': {\n fontFamily: redHatFonts.monospace,\n },\n };\n },\n };\n\n // MUI base\n if (options.buttons !== 'mui') {\n components.MuiTypography = {\n styleOverrides: {\n button: {\n textTransform: 'none',\n fontWeight: 'normal',\n },\n },\n };\n }\n\n // MUI container\n if (options.paper !== 'mui') {\n const elevationStyle = {\n boxShadow: 'none',\n outline: `1px solid ${general.paperBorderColor}`,\n '& > hr[class|=\"MuiDivider-root\"]': {\n backgroundColor: general.paperBorderColor,\n },\n };\n const noElevationStyle = {\n boxShadow: 'none',\n outline: 'none',\n };\n\n components.MuiPaper = {\n styleOverrides: {\n root: {\n // This works for all MUI v5 components, but in MUI v4\n boxShadow: 'none',\n outline: `1px solid ${general.paperBorderColor}`,\n // Required only for MUI v5 components because a gradient `backgroundImage`\n // overrides the default background.paper color otherwise.\n backgroundImage: general.paperBackgroundImage,\n // hide the first child element which is a divider with MuiDivider-root classname in MuiPaper\n '& > hr:first-child[class|=\"MuiDivider-root\"]': {\n height: 0,\n },\n },\n rounded: {\n '& > :last-child': {\n borderBottomLeftRadius: 4,\n borderBottomRightRadius: 4,\n },\n },\n elevation0: noElevationStyle,\n },\n };\n components.MuiPopover = {\n styleOverrides: {\n paper: {\n // Box shadow from PatternFly 5 (--pf-v5-global--BoxShadow--sm)\n boxShadow: general.popoverBoxShadow,\n // `Popover` has no outline by default, but since we're adding it to the `Paper`\n // components, this ensures that the `Popover` doesn't has a shadow and an outline.\n outline: 0,\n },\n },\n };\n\n // Required for MUI v4, not MUI v5\n const elevations = Array.from(\n { length: 24 },\n (_, i) => `elevation${i + 1}`,\n ) as 'elevation1'[];\n elevations.forEach(elevation => {\n components.MuiPaper!.styleOverrides![elevation] = elevationStyle;\n });\n }\n\n // MUI AppBar\n if (options.appBar !== 'mui') {\n components.MuiAppBar = {\n styleOverrides: {\n root: {\n backgroundColor: general.appBarBackgroundColor,\n backgroundImage: general.appBarBackgroundImage,\n outline: 'none',\n },\n },\n };\n }\n\n // MUI buttons\n // Don't disableRipple for MuiButtonBase as it will affect all the buttons\n // and we need to ensure that the buttons have a right touch and focus styling.\n if (options.buttons !== 'mui') {\n components.MuiButton = {\n defaultProps: {\n disableRipple,\n },\n styleOverrides: {\n root: {\n textTransform: 'none',\n borderRadius: '3px',\n fontWeight: 'normal',\n },\n contained: {\n border: '0',\n borderRadius: '99em',\n boxShadow: 'none',\n '&:hover, &:focus-visible': {\n border: '0',\n boxShadow: 'none',\n },\n '&:-webkit-any-link:focus-visible': {\n outlineOffset: '0',\n },\n },\n containedPrimary: {\n borderRadius: '99em',\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 1px ${rhdhPrimary.focusVisibleBorder}`,\n outline: `${rhdhPrimary.focusVisibleBorder} solid 1px`,\n },\n '&:disabled': {\n color: general.disabled,\n backgroundColor: general.disabledBackground,\n },\n },\n containedSecondary: {\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 1px ${rhdhSecondary.focusVisibleBorder}`,\n outline: `${rhdhSecondary.focusVisibleBorder} solid 1px`,\n },\n '&:disabled': {\n color: general.disabled,\n backgroundColor: general.disabledBackground,\n },\n },\n outlined: {\n borderRadius: '99em',\n border: `1px solid color-mix(in srgb, currentColor 50%, transparent)`,\n '&:hover, &:focus-visible': {\n backgroundColor: 'transparent',\n border: `1px solid`,\n },\n '&:disabled': {\n color: general.disabled,\n backgroudColor: general.disabledBackground,\n border: `1px solid ${general.disabledBackground}`,\n },\n },\n outlinedPrimary: {\n '&:hover, &:focus-visible': {\n backgroundColor: 'transparent',\n },\n },\n outlinedSecondary: {\n '&:hover, &:focus-visible': {\n backgroundColor: 'transparent',\n },\n },\n text: {\n '&:focus-visible': {\n boxShadow: `inset 0 0 0 2px ${rhdhPrimary.main}`,\n outline: `${rhdhPrimary.focusVisibleBorder} solid 1px`,\n },\n },\n },\n };\n components.MuiToggleButton = {\n styleOverrides: {\n root: {\n textTransform: 'none',\n },\n },\n };\n components.MuiIconButton = {\n styleOverrides: {\n root: {\n '&:disabled': {\n color: general.disabled,\n },\n },\n },\n };\n components.MuiLink = {\n styleOverrides: {\n underlineHover: {\n '&:hover, &:focus-visible': {\n textDecoration: 'none',\n },\n },\n },\n };\n }\n\n // MUI input fields\n if (options.inputs !== 'mui') {\n components.MuiInputBase = {\n styleOverrides: {\n input: {\n '&::placeholder': {\n color: general.disabled,\n opacity: 1,\n },\n },\n },\n };\n components.MuiOutlinedInput = {\n styleOverrides: {\n input: {\n '&:autofill': {\n boxShadow: `0 0 0 100px ${general.formControlBackgroundColor} inset`,\n borderRadius: 'unset',\n },\n },\n },\n };\n }\n\n if (options.checkbox !== 'mui') {\n components.MuiCheckbox = {\n defaultProps: {\n color: 'primary',\n },\n };\n }\n\n // MUI accordion\n if (options.accordions !== 'mui') {\n components.MuiAccordion = {\n styleOverrides: {\n root: {\n boxShadow: 'none',\n },\n rounded: {\n '&:first-child': {\n borderTopLeftRadius: '0',\n borderTopRightRadius: '0',\n },\n '&:last-child': {\n borderBottomLeftRadius: '0',\n borderBottomRightRadius: '0',\n },\n },\n },\n };\n }\n\n // MUI cards\n if (options.cards !== 'mui') {\n components.MuiCard = {\n styleOverrides: {\n root: {\n display: 'flex',\n flexDirection: 'column',\n backgroundColor: general.cardBackgroundColor,\n borderRadius: '16px',\n },\n },\n };\n components.MuiCardHeader = {\n styleOverrides: {\n content: {\n '& > span > nav span': {\n textTransform: 'unset',\n letterSpacing: 'normal',\n fountweight: 'normal',\n },\n },\n title: {\n fontSize: '1.125rem',\n },\n action: {\n '& > a > span > svg': {\n fontSize: '1.125rem',\n },\n '& > a[class*=\"MuiIconButton-root\"]:hover': {\n backgroundColor: 'transparent',\n },\n },\n },\n };\n components.MuiCardContent = {\n styleOverrides: {\n root: {\n flexGrow: '1',\n backgroundColor: general.cardBackgroundColor,\n '& > div > div > h2[class*=\"MuiTypography-h2-\"]': {\n textTransform: 'unset',\n opacity: '40%',\n },\n '& > div > div > div[class*=\"MuiChip-sizeSmall\"]': {\n backgroundColor: 'transparent',\n borderRadius: '8px',\n outline: `1px solid ${general.disabled}`,\n },\n '& > div[class*=\"Mui-expanded\"]': {\n margin: 'auto',\n },\n '& > div[class*=\"MuiAccordion-root\"]:before': {\n height: 0,\n },\n // Override the default line-clamp from 10 to 2 for the Software template catalog\n '& > div[class*=\"MuiGrid-root-\"][class*=\"MuiGrid-container-\"][class*=\"MuiGrid-spacing-xs-2-\"] > div[class*=\"MuiGrid-root-\"][class*=\"MuiGrid-item-\"][class*=\"MuiGrid-grid-xs-12-\"] > div[class*=\"MuiBox-root-\"]':\n {\n '-webkit-line-clamp': '2',\n },\n },\n },\n };\n }\n\n // MUI table\n if (options.tables !== 'mui') {\n components.MuiTable = {\n styleOverrides: {\n root: {\n backgroundColor: general.tableBackgroundColor,\n },\n },\n };\n components.MuiTableRow = {\n styleOverrides: {\n root: {\n backgroundColor: general.tableBackgroundColor,\n '&:not([class*=\"MuiTableRow-footer\"]):hover': {\n backgroundColor: `${general.tableRowHover} !important`,\n },\n '& > th[class*=\"MuiTableCell-head\"]': {\n backgroundColor: general.tableBackgroundColor,\n },\n },\n },\n };\n components.MuiTableCell = {\n styleOverrides: {\n root: {\n textTransform: 'none',\n '&[class*=\"BackstageTableHeader-header\"]': {\n borderTop: 'unset',\n borderBottom: `1px solid ${general.tableBorderColor}`,\n },\n },\n // @ts-expect-error: MUI types are not up to date\n head: {\n textTransform: 'unset !important',\n color: `${general.tableColumnTitleColor} !important`,\n '& > span[class*=\"MuiTableSortLabel-active\"]': {\n color: `${rhdhPrimary.main} !important`,\n },\n '& > span > svg[class*=\"MuiTableSortLabel-icon\"]': {\n color: 'inherit !important',\n },\n },\n body: {\n color: general.tableTitleColor,\n '& > div[class*=\"MuiChip-sizeSmall\"]': {\n margin: '2px',\n },\n },\n },\n };\n components.MuiTableFooter = {\n styleOverrides: {\n root: {\n '& > tr > td': {\n borderBottom: 'none',\n },\n },\n },\n };\n }\n\n // MUI toolbar\n if (options.toolbars !== 'mui') {\n components.MuiToolbar = {\n styleOverrides: {\n regular: {\n '& > div > h2[class*=\"MuiTypography-h5\"]': {\n fontSize: '1.25rem',\n color: general.tableTitleColor,\n },\n },\n },\n };\n }\n\n // MUI dialogs\n if (options.dialogs !== 'mui') {\n components.MuiDialogContent = {\n styleOverrides: {\n root: {\n '& > div': {\n backgroundColor: general.cardBackgroundColor,\n },\n },\n },\n };\n }\n\n // MUI tabs\n if (options.tabs !== 'mui') {\n components.MuiTabs = {\n defaultProps: {\n indicatorColor: 'primary',\n },\n styleOverrides: {\n root: {\n borderBottom: `1px solid ${general.paperBorderColor}`,\n padding: '0 1.5rem',\n },\n vertical: {\n '& > div > div > button[class*=\"v5\"]': {\n alignItems: 'baseline',\n textAlign: 'left',\n },\n '& > div > div > button > span': {\n alignItems: 'baseline',\n textAlign: 'left',\n },\n borderBottom: `none`,\n borderLeft: `1px solid ${general.paperBorderColor}`,\n padding: 0,\n \"& span[class*='MuiTabs-indicator']\": {\n width: '3px',\n },\n },\n indicator: {\n left: 0,\n height: '3px',\n },\n },\n };\n components.MuiTab = {\n defaultProps: {\n disableRipple,\n },\n styleOverrides: {\n root: {\n fontWeight: '400',\n minWidth: 'initial !important',\n padding: '0.25em 1em',\n position: 'relative',\n textTransform: 'none',\n zIndex: 1,\n '&:before': {\n content: '\"\"',\n display: 'block',\n position: 'absolute',\n top: '0.75em',\n left: '0.5em',\n right: '0.5em',\n bottom: '0.75em',\n borderRadius: '4px',\n zIndex: -1,\n },\n '&.Mui-selected': {\n color: `${palette.text?.primary} !important`,\n },\n '&[class*=\"v5\"]': {\n lineHeight: 1.75,\n },\n '&:hover, &:focus-visible': {\n backgroundColor: 'transparent !important',\n '&:before': {\n backgroundColor: general.tabsLinkHoverBackgroundColor,\n },\n },\n '&:disabled': {\n color: general.disabled,\n '&:before': {\n backgroundColor: general.disabledBackground,\n },\n },\n },\n },\n };\n\n // MUI Breadcrumbs\n if (options.breadcrumbs !== 'mui') {\n components.MuiBreadcrumbs = {\n defaultProps: {\n separator: '>',\n },\n styleOverrides: {\n separator: {\n fontWeight: 'bold',\n },\n root: {\n fontWeight: '400',\n },\n li: {\n fontSize: '0.875rem !important',\n fontStyle: 'normal !important',\n },\n },\n };\n }\n }\n\n //\n // Backstage\n //\n if (options.tabs !== 'mui') {\n components.BackstageHeaderTabs = {\n styleOverrides: {\n tabsWrapper: {\n paddingLeft: '0',\n backgroundColor: general.mainSectionBackgroundColor,\n },\n defaultTab: {\n textTransform: 'none',\n fontSize: '0.875rem',\n fontWeight: '400',\n color: 'unset',\n padding: '0.25em 1em',\n },\n },\n };\n }\n\n if (options.sidebars !== 'mui') {\n components.BackstageSidebar = {\n styleOverrides: {\n drawer: {\n gap: '0.25rem',\n borderRight: `0.5rem solid ${general.sidebarBackgroundColor}`,\n paddingBottom: '1.5rem',\n backgroundColor: general.sidebarBackgroundColor,\n '& hr': {\n backgroundColor: general.sidebarDividerColor,\n },\n },\n },\n };\n components.BackstageSidebarItem = {\n styleOverrides: {\n root: {\n borderRadius: '6px',\n width: 'calc(100% - 0.5rem) !important',\n marginLeft: '0.5rem !important',\n },\n label: {\n '&[class*=\"MuiTypography-subtitle2\"]': {\n fontWeight: 'normal',\n },\n },\n selected: {\n backgroundColor: general.sidebarItemSelectedBackgroundColor,\n },\n },\n };\n components.MuiBottomNavigation = {\n styleOverrides: {\n root: {\n backgroundColor: `${general.sidebarBackgroundColor} !important`,\n borderColor: `${general.sidebarBackgroundColor} !important`,\n },\n },\n };\n components.MuiBottomNavigationAction = {\n defaultProps: {\n disableRipple,\n },\n styleOverrides: {\n root: {\n color: `${palette.text?.primary} !important`,\n backgroundColor: `${general.sidebarBackgroundColor} !important`,\n borderRadius: '6px',\n borderTop: '3px solid transparent !important', // default mui selected styling\n paddingTop: '6px !important', // default mui selected styling\n marginTop: '-1px !important', // default mui selected styling\n '&:hover, &:focus-visible': {\n backgroundColor: `${general.sidebarItemSelectedBackgroundColor} !important`,\n },\n },\n selected: {\n backgroundColor: `${general.sidebarItemSelectedBackgroundColor} !important`,\n color: `${palette.text?.primary} !important`,\n },\n },\n };\n components.MuiDrawer = {\n styleOverrides: {\n root: {\n // undocumented Backstage makeStyles\n \"& [class*='makeStyles-overlay-']\": {\n backgroundColor: `${general.sidebarBackgroundColor} !important`,\n },\n '& hr': {\n backgroundColor: general.sidebarDividerColor,\n },\n },\n },\n };\n }\n\n if (options.pages !== 'mui') {\n components.BackstageSidebarPage = {\n styleOverrides: {\n root: {\n // Controls the page inset as in PF6 -- only in desktop view\n '@media (min-width: 600px)': {\n backgroundColor: general.sidebarBackgroundColor,\n \"& > [class*='MuiLinearProgress-root'], & > main\": {\n borderRadius: '2.5rem',\n border: `1.5rem solid ${general.sidebarBackgroundColor}`,\n marginLeft: '-1.5rem',\n },\n \"& > [class*='MuiLinearProgress-root']\": {\n backgroundColor: general.mainSectionBackgroundColor,\n height: '100vh',\n \"& > [class*='MuiLinearProgress-']\": {\n height: '0.5rem !important',\n },\n },\n },\n },\n },\n };\n components.BackstageContent = {\n styleOverrides: {\n root: {\n backgroundColor: general.mainSectionBackgroundColor,\n },\n },\n };\n components.BackstageContentHeader = {\n styleOverrides: {\n leftItemsBox: {\n '& > h2[class*=\"BackstageContentHeader-title-\"][class*=\"MuiTypography-h4-\"]':\n {\n fontWeight: 'bold',\n fontSize: '1.75rem',\n },\n },\n },\n };\n }\n\n if (options.headers !== 'mui') {\n components.BackstageHeader = {\n styleOverrides: {\n header: {\n boxShadow: 'none',\n },\n title: {\n '&[class*=\"MuiTypography-h1-\"]': {\n fontWeight: '500',\n fontSize: '1.5rem',\n },\n },\n subtitle: {\n '&[class*=\"BackstageHeader-subtitle-\"]': {\n fontWeight: 'normal',\n fontSize: '0.875rem',\n opacity: 1,\n },\n },\n breadcrumb: {\n marginBottom: '0.5rem',\n },\n },\n };\n components.BreadcrumbsCurrentPage = {\n styleOverrides: {\n root: {\n '& p': {\n fontStyle: 'normal',\n fontSize: 'inherit',\n },\n },\n },\n };\n components.BackstageBreadcrumbsStyledBox = {\n styleOverrides: {\n root: {\n textDecoration: 'underline !important',\n color: palette.rhdh?.primary.main,\n '&:hover': {\n color: `color-mix(in srgb, ${palette.rhdh?.primary.main} 50%, ${palette.text?.primary})`,\n },\n },\n },\n };\n components.BackstageItemCardHeader = {\n styleOverrides: {\n root: {\n // This is required to increase the css specificity, to OVERRIDE the styles from\n // BackstageItemCardHeader (https://github.com/backstage/backstage/blob/master/packages/core-components/src/layout/ItemCard/ItemCardHeader.tsx)\n // These are applied with a CSS class as well.\n\n // This variant is used when running the Storybook locally (dev mode) and in Backstage/RHDH!\n '&[class*=\"MuiBox-root-\"]': {\n color: palette.rhdh?.cards?.headerTextColor,\n backgroundColor: palette.rhdh?.cards?.headerBackgroundColor,\n backgroundImage: palette.rhdh?.cards?.headerBackgroundImage,\n borderBottom: `1px solid ${general.cardBorderColor}`,\n },\n // This variant is used when building a static Storybook (`storybook:build`)\n '&[class~=\"MuiBox-root\"]': {\n color: palette.rhdh?.cards?.headerTextColor,\n backgroundColor: palette.rhdh?.cards?.headerBackgroundColor,\n backgroundImage: palette.rhdh?.cards?.headerBackgroundImage,\n borderBottom: `1px solid ${general.cardBorderColor}`,\n },\n '& > h3[class*=\"MuiTypography-subtitle2-\"] > div > div:first-child': {\n textTransform: 'capitalize',\n },\n },\n },\n };\n }\n\n if (options.toolbars !== 'mui') {\n components.BackstageTableToolbar = {\n styleOverrides: {\n root: {\n '& h2': {\n fontWeight: 'bold',\n },\n },\n title: {\n '& > h2': {\n fontWeight: 'bold',\n },\n },\n },\n };\n }\n\n //\n // Others\n //\n components.CatalogReactUserListPicker = {\n styleOverrides: {\n root: {\n borderRadius: '4px',\n },\n title: {\n textTransform: 'none',\n },\n },\n };\n\n if (options.tabs !== 'mui') {\n components.PrivateTabIndicator = {\n styleOverrides: {\n root: {\n height: '3px',\n },\n vertical: {\n width: '3px',\n },\n },\n };\n }\n\n return components;\n};\n"],"names":["backstageComponents"],"mappings":";;;AA6Ca,MAAA,gBAAA,GAAmB,CAAC,WAAyC,KAAA;AAGxE,EAAM,MAAA,OAAA,GAAU,WAAY,CAAA,OAAA,IAAY,EAAC;AACzC,EAAM,MAAA,aAAA,GAAgB,SAAS,YAAiB,KAAA,IAAA;AAEhD,EAAM,MAAA,OAAA,GAAU,WAAY,CAAA,OAAA,IAAW,EAAC;AAExC,EAAA,MAAM,OAAU,GAAA,OAAA,CAAQ,IAAM,EAAA,OAAA,IAAY,EAAC;AAC3C,EAAA,MAAM,WACJ,GAAA,OAAA,CAAQ,IAAM,EAAA,OAAA,IAAY,EAAC;AAC7B,EAAA,MAAM,aACJ,GAAA,OAAA,CAAQ,IAAM,EAAA,SAAA,IAAc,EAAC;AAE/B,EAAA,MAAM,aAAyB,EAAC;AAChC,EAAA,IAAI,OAAQ,CAAA,UAAA,KAAe,WAAe,IAAA,OAAA,CAAQ,eAAe,KAAO,EAAA;AACtE,IAAO,OAAA,UAAA;AAAA;AAMT,EAAA,UAAA,CAAW,cAAiB,GAAA;AAAA,IAC1B,gBAAgB,CAAS,KAAA,KAAA;AACvB,MAAM,MAAA,kBAAA,GACJA,uBAAqB,cAAgB,CAAA,cAAA;AACvC,MAAA,MAAM,kBACJ,OAAO,kBAAA,KAAuB,UACzB,GAAA,kBAAA,CAAmB,KAAK,CACxB,GAAA,kBAAA;AAEP,MAAO,OAAA;AAAA,QACL,GAAG,eAAA;AAAA,QACH,YAAc,EAAA,eAAA;AAAA,QACd,IAAM,EAAA;AAAA,UACJ,GAAI,eAAgB,CAAA,IAAA;AAAA,UACpB,YAAY,WAAY,CAAA;AAAA,SAC1B;AAAA,QACA,wBAA0B,EAAA;AAAA,UACxB,YAAY,WAAY,CAAA;AAAA,SAC1B;AAAA,QACA,WAAa,EAAA;AAAA,UACX,YAAY,WAAY,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AAA,UACA,mEAAqE,EAAA;AAAA,YACnE,aAAe,EAAA;AAAA;AACjB;AACF;AACF,KACF;AAAA;AAGF,EAAI,IAAA,OAAA,CAAQ,aAAa,KAAO,EAAA;AAC9B,IAAA,UAAA,CAAW,qBAAwB,GAAA;AAAA,MACjC,cAAgB,EAAA;AAAA,QACd,IAAM,EAAA;AAAA,UACJ,MAAQ,EAAA;AAAA,YACN,UAAY,EAAA;AAAA;AACd,SACF;AAAA,QACA,KAAO,EAAA;AAAA,UACL,QAAU,EAAA;AAAA,YACR,UAAY,EAAA;AAAA;AACd;AACF;AACF,KACF;AAAA;AAMF,EAAA,UAAA,CAAW,0BAA6B,GAAA;AAAA,IACtC,cAAgB,EAAA;AAAA,MACd,IAAM,EAAA;AAAA,QACJ,YAAc,EAAA;AAAA,OAChB;AAAA,MACA,KAAO,EAAA;AAAA,QACL,aAAe,EAAA;AAAA;AACjB;AACF,GACF;AAEA,EAAI,IAAA,OAAA,CAAQ,SAAS,KAAO,EAAA;AAC1B,IAAA,UAAA,CAAW,mBAAsB,GAAA;AAAA,MAC/B,cAAgB,EAAA;AAAA,QACd,IAAM,EAAA;AAAA,UACJ,MAAQ,EAAA;AAAA,SACV;AAAA,QACA,QAAU,EAAA;AAAA,UACR,KAAO,EAAA;AAAA;AACT;AACF,KACF;AAAA;AAGF,EAAO,OAAA,UAAA;AACT;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@red-hat-developer-hub/backstage-plugin-theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Red Hat Developer Hub Theme",
|
|
5
5
|
"main": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -16,7 +16,11 @@
|
|
|
16
16
|
"directory": "workspaces/theme/plugins/theme"
|
|
17
17
|
},
|
|
18
18
|
"backstage": {
|
|
19
|
-
"role": "
|
|
19
|
+
"role": "frontend-plugin",
|
|
20
|
+
"pluginId": "rhdh-theme",
|
|
21
|
+
"pluginPackages": [
|
|
22
|
+
"@red-hat-developer-hub/backstage-plugin-theme"
|
|
23
|
+
]
|
|
20
24
|
},
|
|
21
25
|
"sideEffects": false,
|
|
22
26
|
"scripts": {
|
|
@@ -56,6 +60,7 @@
|
|
|
56
60
|
},
|
|
57
61
|
"configSchema": "config.d.ts",
|
|
58
62
|
"files": [
|
|
63
|
+
"app-config.dynamic.yaml",
|
|
59
64
|
"config.d.ts",
|
|
60
65
|
"dist"
|
|
61
66
|
],
|