@backstage/core-components 0.12.5-next.1 → 0.12.5

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,37 @@
1
1
  # @backstage/core-components
2
2
 
3
+ ## 0.12.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 8bbf95b5507: Button labels in the sidebar (previously displayed in uppercase) will be displayed in the case that is provided without any transformations.
8
+ For example, a sidebar button with the label "Search" will appear as Search, "search" will appear as search, "SEARCH" will appear as SEARCH etc.
9
+ This can potentially affect any overriding styles previously applied to change the appearance of Button labels in the Sidebar.
10
+ - cb8ec97cdeb: Change black & white colors to be theme aware
11
+ - c10384a9235: Switch to using `LinkButton` instead of the deprecated `Button`
12
+ - 52b0022dab7: Updated dependency `msw` to `^1.0.0`.
13
+ - e1aae2f5a0c: Updated the `aria-label` of the `HeaderTabs` component.
14
+ - 6a51a49a810: Fix bug where `<Table />` component would not take into account header styles defined in `columns[*].headerStyle`.
15
+ - fa004f66871: Use media queries to change layout instead of `isMobile` prop in `BackstagePage` component
16
+ - Updated dependencies
17
+ - @backstage/errors@1.1.5
18
+ - @backstage/core-plugin-api@1.5.0
19
+ - @backstage/config@1.0.7
20
+ - @backstage/theme@0.2.18
21
+ - @backstage/version-bridge@1.0.3
22
+
23
+ ## 0.12.5-next.2
24
+
25
+ ### Patch Changes
26
+
27
+ - 8bbf95b5507: Button labels in the sidebar (previously displayed in uppercase) will be displayed in the case that is provided without any transformations.
28
+ For example, a sidebar button with the label "Search" will appear as Search, "search" will appear as search, "SEARCH" will appear as SEARCH etc.
29
+ This can potentially affect any overriding styles previously applied to change the appearance of Button labels in the Sidebar.
30
+ - fa004f66871: Use media queries to change layout instead of `isMobile` prop in `BackstagePage` component
31
+ - Updated dependencies
32
+ - @backstage/core-plugin-api@1.5.0-next.2
33
+ - @backstage/config@1.0.7-next.0
34
+
3
35
  ## 0.12.5-next.1
4
36
 
5
37
  ### Patch Changes
package/dist/index.esm.js CHANGED
@@ -3816,9 +3816,6 @@ const useStyles$k = makeStyles(
3816
3816
  },
3817
3817
  "&::-webkit-scrollbar": {
3818
3818
  display: "none"
3819
- },
3820
- "& .MuiButtonBase-root": {
3821
- textTransform: "none"
3822
3819
  }
3823
3820
  }),
3824
3821
  drawerOpen: (props) => ({
@@ -4252,7 +4249,8 @@ const makeSidebarStyles = (sidebarConfig) => makeStyles(
4252
4249
  margin: 0,
4253
4250
  padding: 0,
4254
4251
  textAlign: "inherit",
4255
- font: "inherit"
4252
+ font: "inherit",
4253
+ textTransform: "none"
4256
4254
  },
4257
4255
  closed: {
4258
4256
  width: sidebarConfig.drawerWidthClosed,
@@ -5143,7 +5141,8 @@ const useTableStyles = makeStyles(
5143
5141
  );
5144
5142
  function convertColumns(columns, theme) {
5145
5143
  return columns.map((column) => {
5146
- const headerStyle = {};
5144
+ var _a;
5145
+ const headerStyle = (_a = column.headerStyle) != null ? _a : {};
5147
5146
  let cellStyle = column.cellStyle || {};
5148
5147
  if (column.highlight) {
5149
5148
  headerStyle.color = theme.palette.textContrast;
@@ -6099,22 +6098,24 @@ function ItemCardGrid(props) {
6099
6098
  }
6100
6099
 
6101
6100
  const useStyles$1 = makeStyles(
6102
- () => ({
6103
- root: ({ isMobile }) => ({
6101
+ (theme) => ({
6102
+ root: {
6104
6103
  display: "grid",
6105
6104
  gridTemplateAreas: "'pageHeader pageHeader pageHeader' 'pageSubheader pageSubheader pageSubheader' 'pageNav pageContent pageSidebar'",
6106
6105
  gridTemplateRows: "max-content auto 1fr",
6107
6106
  gridTemplateColumns: "auto 1fr auto",
6108
- height: isMobile ? "100%" : "100vh",
6109
- overflowY: "auto"
6110
- })
6107
+ overflowY: "auto",
6108
+ height: "100vh",
6109
+ [theme.breakpoints.down("xs")]: {
6110
+ height: "100%"
6111
+ }
6112
+ }
6111
6113
  }),
6112
6114
  { name: "BackstagePage" }
6113
6115
  );
6114
6116
  function Page(props) {
6115
6117
  const { themeId, children } = props;
6116
- const { isMobile } = useSidebarPinState();
6117
- const classes = useStyles$1({ isMobile });
6118
+ const classes = useStyles$1();
6118
6119
  return /* @__PURE__ */ React.createElement(
6119
6120
  ThemeProvider,
6120
6121
  {