@backstage/core-components 0.9.5-next.2 → 0.9.6-next.1
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 +40 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.esm.js +20 -5
- package/dist/index.esm.js.map +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @backstage/core-components
|
|
2
2
|
|
|
3
|
+
## 0.9.6-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3c440ea77e: Change BackstageIconLinkVertical style to use pallette instead of explicit color
|
|
8
|
+
- 7e115d42f9: Support displaying subtitle text in `SidebarSubmenuItem`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- @backstage/errors@1.1.0-next.0
|
|
11
|
+
- @backstage/theme@0.2.16-next.0
|
|
12
|
+
|
|
13
|
+
## 0.9.6-next.0
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- c3cfc83af2: Updated JSDoc to be MDX compatible.
|
|
18
|
+
|
|
19
|
+
## 0.9.5
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- feb4e8de07: Fix EntityPage tab scrolling overflow bug on Firefox
|
|
24
|
+
- 65840b17be: Fix issue where right arrow icon was incorrectly added to side bar items without a sub-menu
|
|
25
|
+
- de593ec78f: Updated dependency `react-text-truncate` to `^0.19.0`.
|
|
26
|
+
- 8f7b1835df: Updated dependency `msw` to `^0.41.0`.
|
|
27
|
+
- 6968b65ba1: Updated dependency `@react-hookz/web` to `^14.0.0`.
|
|
28
|
+
- ee2cd642c5: Updated dependency `rc-progress` to `3.3.3`.
|
|
29
|
+
- 96d1e01641: Accessibility updates:
|
|
30
|
+
|
|
31
|
+
- Added `aria-label` to the `Select` component
|
|
32
|
+
- Changed heading level used in the header of `Table` component
|
|
33
|
+
|
|
34
|
+
- 7d355c4b3f: Fix the missing filter in the toolbar when passing a custom component in the core-components Table
|
|
35
|
+
- 1cf9caecd6: fix Sidebar Contexts deprecation message
|
|
36
|
+
- bff65e6958: The `SidebarPinStateContext` and `SidebarContext` have been deprecated and will be removed in a future release. Instead, use `<SidebarPinStateProvider>` + `useSidebarPinState()` and/or `<SidebarOpenStateProvider>` + `useSidebarOpenState()`.
|
|
37
|
+
|
|
38
|
+
This was done to ensure that sidebar state can be shared successfully across components exported by different packages, regardless of what version of this package is resolved and installed for each individual package.
|
|
39
|
+
|
|
40
|
+
- Updated dependencies
|
|
41
|
+
- @backstage/core-plugin-api@1.0.3
|
|
42
|
+
|
|
3
43
|
## 0.9.5-next.2
|
|
4
44
|
|
|
5
45
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -375,7 +375,7 @@ declare namespace types_d {
|
|
|
375
375
|
*
|
|
376
376
|
* @public
|
|
377
377
|
* @remarks
|
|
378
|
-
*
|
|
378
|
+
* `<NodeData>` and `<EdgeData>` are useful when rendering custom or edge labels
|
|
379
379
|
*/
|
|
380
380
|
interface DependencyGraphProps<NodeData, EdgeData> extends React__default.SVGProps<SVGSVGElement> {
|
|
381
381
|
/**
|
|
@@ -1344,7 +1344,7 @@ declare type ItemCardHeaderProps = Partial<WithStyles<typeof styles>> & {
|
|
|
1344
1344
|
* A simple card header, rendering a default look for "item cards" - cards that
|
|
1345
1345
|
* are arranged in a grid for users to select among several options.
|
|
1346
1346
|
*
|
|
1347
|
-
* This component expects to be placed within a MUI
|
|
1347
|
+
* This component expects to be placed within a MUI `<CardMedia>`.
|
|
1348
1348
|
*
|
|
1349
1349
|
* Styles for the header can be overridden using the `classes` prop, e.g.:
|
|
1350
1350
|
*
|
|
@@ -1504,6 +1504,7 @@ declare type SidebarSubmenuItemDropdownItem = {
|
|
|
1504
1504
|
* Holds submenu item content.
|
|
1505
1505
|
*
|
|
1506
1506
|
* title: Text content of submenu item
|
|
1507
|
+
* subtitle: A subtitle displayed under the main title
|
|
1507
1508
|
* to: Path to navigate to when item is clicked
|
|
1508
1509
|
* icon: Icon displayed on the left of text content
|
|
1509
1510
|
* dropdownItems: Optional array of dropdown items displayed when submenu item is clicked.
|
|
@@ -1512,6 +1513,7 @@ declare type SidebarSubmenuItemDropdownItem = {
|
|
|
1512
1513
|
*/
|
|
1513
1514
|
declare type SidebarSubmenuItemProps = {
|
|
1514
1515
|
title: string;
|
|
1516
|
+
subtitle?: string;
|
|
1515
1517
|
to?: string;
|
|
1516
1518
|
icon?: IconComponent;
|
|
1517
1519
|
dropdownItems?: SidebarSubmenuItemDropdownItem[];
|
package/dist/index.esm.js
CHANGED
|
@@ -1384,7 +1384,7 @@ const useIconStyles = makeStyles((theme) => ({
|
|
|
1384
1384
|
textAlign: "center"
|
|
1385
1385
|
},
|
|
1386
1386
|
disabled: {
|
|
1387
|
-
color:
|
|
1387
|
+
color: theme.palette.text.secondary,
|
|
1388
1388
|
cursor: "default"
|
|
1389
1389
|
},
|
|
1390
1390
|
primary: {
|
|
@@ -3545,6 +3545,13 @@ const useStyles$j = makeStyles((theme) => ({
|
|
|
3545
3545
|
fontSize: 14,
|
|
3546
3546
|
whiteSpace: "nowrap",
|
|
3547
3547
|
overflow: "hidden",
|
|
3548
|
+
"text-overflow": "ellipsis",
|
|
3549
|
+
lineHeight: 1
|
|
3550
|
+
},
|
|
3551
|
+
subtitle: {
|
|
3552
|
+
fontSize: 10,
|
|
3553
|
+
whiteSpace: "nowrap",
|
|
3554
|
+
overflow: "hidden",
|
|
3548
3555
|
"text-overflow": "ellipsis"
|
|
3549
3556
|
},
|
|
3550
3557
|
dropdownArrow: {
|
|
@@ -3575,7 +3582,7 @@ const useStyles$j = makeStyles((theme) => ({
|
|
|
3575
3582
|
}
|
|
3576
3583
|
}), { name: "BackstageSidebarSubmenuItem" });
|
|
3577
3584
|
const SidebarSubmenuItem = (props) => {
|
|
3578
|
-
const { title, to, icon: Icon, dropdownItems } = props;
|
|
3585
|
+
const { title, subtitle, to, icon: Icon, dropdownItems } = props;
|
|
3579
3586
|
const classes = useStyles$j();
|
|
3580
3587
|
const { setIsHoveredOn } = useContext(SidebarItemWithSubmenuContext);
|
|
3581
3588
|
const closeSubmenu = () => {
|
|
@@ -3609,7 +3616,10 @@ const SidebarSubmenuItem = (props) => {
|
|
|
3609
3616
|
}), /* @__PURE__ */ React.createElement(Typography, {
|
|
3610
3617
|
variant: "subtitle1",
|
|
3611
3618
|
className: classes.label
|
|
3612
|
-
}, title),
|
|
3619
|
+
}, title, /* @__PURE__ */ React.createElement("br", null), subtitle && /* @__PURE__ */ React.createElement(Typography, {
|
|
3620
|
+
variant: "caption",
|
|
3621
|
+
className: classes.subtitle
|
|
3622
|
+
}, subtitle)), showDropDown ? /* @__PURE__ */ React.createElement(ArrowDropUpIcon, {
|
|
3613
3623
|
className: classes.dropdownArrow
|
|
3614
3624
|
}) : /* @__PURE__ */ React.createElement(ArrowDropDownIcon, {
|
|
3615
3625
|
className: classes.dropdownArrow
|
|
@@ -3647,7 +3657,10 @@ const SidebarSubmenuItem = (props) => {
|
|
|
3647
3657
|
}), /* @__PURE__ */ React.createElement(Typography, {
|
|
3648
3658
|
variant: "subtitle1",
|
|
3649
3659
|
className: classes.label
|
|
3650
|
-
}, title)
|
|
3660
|
+
}, title, /* @__PURE__ */ React.createElement("br", null), subtitle && /* @__PURE__ */ React.createElement(Typography, {
|
|
3661
|
+
variant: "caption",
|
|
3662
|
+
className: classes.subtitle
|
|
3663
|
+
}, subtitle)))));
|
|
3651
3664
|
};
|
|
3652
3665
|
|
|
3653
3666
|
const useStyles$i = makeStyles((theme) => ({
|
|
@@ -4741,6 +4754,7 @@ function Table(props) {
|
|
|
4741
4754
|
initialState,
|
|
4742
4755
|
emptyContent,
|
|
4743
4756
|
onStateChange,
|
|
4757
|
+
components,
|
|
4744
4758
|
...restProps
|
|
4745
4759
|
} = props;
|
|
4746
4760
|
const tableClasses = useTableStyles();
|
|
@@ -4867,7 +4881,8 @@ function Table(props) {
|
|
|
4867
4881
|
components: {
|
|
4868
4882
|
Header: StyledMTableHeader,
|
|
4869
4883
|
Toolbar,
|
|
4870
|
-
Body
|
|
4884
|
+
Body,
|
|
4885
|
+
...components
|
|
4871
4886
|
},
|
|
4872
4887
|
options: { ...defaultOptions, ...options },
|
|
4873
4888
|
columns: MTColumns,
|