@backstage/plugin-mui-to-bui 0.2.5-next.0 → 0.2.5-next.2
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
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @backstage/plugin-mui-to-bui
|
|
2
2
|
|
|
3
|
+
## 0.2.5-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ad7c883: Updated the MUI to BUI theme converter page to use the renamed `Header` component from `@backstage/ui`.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/ui@0.13.0-next.2
|
|
10
|
+
- @backstage/frontend-plugin-api@0.15.0-next.1
|
|
11
|
+
- @backstage/core-plugin-api@1.12.4-next.1
|
|
12
|
+
|
|
13
|
+
## 0.2.5-next.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
- @backstage/ui@0.13.0-next.1
|
|
19
|
+
- @backstage/core-plugin-api@1.12.4-next.0
|
|
20
|
+
- @backstage/frontend-plugin-api@0.14.2-next.0
|
|
21
|
+
- @backstage/theme@0.7.2
|
|
22
|
+
|
|
3
23
|
## 0.2.5-next.0
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useApi, appThemeApiRef } from '@backstage/core-plugin-api';
|
|
3
|
-
import { Container,
|
|
3
|
+
import { Container, Header, Box, Text, Card, Flex } from '@backstage/ui';
|
|
4
4
|
import { ThemeContent } from './ThemeContent.esm.js';
|
|
5
5
|
import { MuiThemeExtractor } from './MuiThemeExtractor.esm.js';
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ const BuiThemerPage = () => {
|
|
|
8
8
|
const appThemeApi = useApi(appThemeApiRef);
|
|
9
9
|
const installedThemes = appThemeApi.getInstalledThemes();
|
|
10
10
|
return /* @__PURE__ */ jsxs(Container, { children: [
|
|
11
|
-
/* @__PURE__ */ jsx(
|
|
11
|
+
/* @__PURE__ */ jsx(Header, { title: "BUI Theme Converter" }),
|
|
12
12
|
/* @__PURE__ */ jsx(Box, { m: "4", children: /* @__PURE__ */ jsx(Text, { variant: "body-medium", color: "secondary", children: "Convert your MUI v5 theme into BUI CSS variables. Pick a theme to view and export the generated BUI CSS variable definitions for use in your project." }) }),
|
|
13
13
|
/* @__PURE__ */ jsx(Box, { mt: "4", children: installedThemes.length === 0 ? /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsx(Box, { p: "4", children: /* @__PURE__ */ jsx(Text, { children: "No themes found. Please install some themes in your Backstage app." }) }) }) : /* @__PURE__ */ jsx(Flex, { direction: "column", gap: "4", children: installedThemes.map((theme) => /* @__PURE__ */ jsx(MuiThemeExtractor, { appTheme: theme, children: (muiTheme) => /* @__PURE__ */ jsx(
|
|
14
14
|
ThemeContent,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BuiThemerPage.esm.js","sources":["../../../src/components/BuiThemerPage/BuiThemerPage.tsx"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\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 { useApi } from '@backstage/core-plugin-api';\nimport { appThemeApiRef } from '@backstage/core-plugin-api';\nimport { Box, Card, Container, Flex,
|
|
1
|
+
{"version":3,"file":"BuiThemerPage.esm.js","sources":["../../../src/components/BuiThemerPage/BuiThemerPage.tsx"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\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 { useApi } from '@backstage/core-plugin-api';\nimport { appThemeApiRef } from '@backstage/core-plugin-api';\nimport { Box, Card, Container, Flex, Header, Text } from '@backstage/ui';\nimport { ThemeContent } from './ThemeContent';\nimport { MuiThemeExtractor } from './MuiThemeExtractor';\n\nexport const BuiThemerPage = () => {\n const appThemeApi = useApi(appThemeApiRef);\n const installedThemes = appThemeApi.getInstalledThemes();\n\n return (\n <Container>\n <Header title=\"BUI Theme Converter\" />\n <Box m=\"4\">\n <Text variant=\"body-medium\" color=\"secondary\">\n Convert your MUI v5 theme into BUI CSS variables. Pick a theme to view\n and export the generated BUI CSS variable definitions for use in your\n project.\n </Text>\n </Box>\n\n <Box mt=\"4\">\n {installedThemes.length === 0 ? (\n <Card>\n <Box p=\"4\">\n <Text>\n No themes found. Please install some themes in your Backstage\n app.\n </Text>\n </Box>\n </Card>\n ) : (\n <Flex direction=\"column\" gap=\"4\">\n {installedThemes.map(theme => (\n <MuiThemeExtractor key={theme.id} appTheme={theme}>\n {muiTheme => (\n <ThemeContent\n key={theme.id}\n themeId={theme.id}\n themeTitle={theme.title}\n variant={theme.variant}\n muiTheme={muiTheme}\n />\n )}\n </MuiThemeExtractor>\n ))}\n </Flex>\n )}\n </Box>\n </Container>\n );\n};\n"],"names":[],"mappings":";;;;;;AAsBO,MAAM,gBAAgB,MAAM;AACjC,EAAA,MAAM,WAAA,GAAc,OAAO,cAAc,CAAA;AACzC,EAAA,MAAM,eAAA,GAAkB,YAAY,kBAAA,EAAmB;AAEvD,EAAA,4BACG,SAAA,EAAA,EACC,QAAA,EAAA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|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "frontend-plugin",
|
|
6
6
|
"pluginId": "mui-to-bui",
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
"test": "backstage-cli package test"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@backstage/core-plugin-api": "1.12.4-next.
|
|
42
|
-
"@backstage/frontend-plugin-api": "0.
|
|
41
|
+
"@backstage/core-plugin-api": "1.12.4-next.1",
|
|
42
|
+
"@backstage/frontend-plugin-api": "0.15.0-next.1",
|
|
43
43
|
"@backstage/theme": "0.7.2",
|
|
44
|
-
"@backstage/ui": "0.
|
|
44
|
+
"@backstage/ui": "0.13.0-next.2",
|
|
45
45
|
"@mui/material": "^5.12.2",
|
|
46
46
|
"@mui/system": "^5.16.14"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@backstage/cli": "0.
|
|
50
|
-
"@backstage/dev-utils": "1.1.21-next.
|
|
49
|
+
"@backstage/cli": "0.36.0-next.2",
|
|
50
|
+
"@backstage/dev-utils": "1.1.21-next.1",
|
|
51
51
|
"@backstage/test-utils": "1.7.16-next.0",
|
|
52
52
|
"@testing-library/jest-dom": "^6.0.0",
|
|
53
53
|
"@testing-library/react": "^16.0.0",
|