@box/blueprint-web 14.24.1 → 14.24.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.
|
@@ -20,7 +20,7 @@ const Breadcrumb = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
20
20
|
isInteractive = true,
|
|
21
21
|
isResponsiveEnabled,
|
|
22
22
|
onPageLinkClick = noop,
|
|
23
|
-
rootIconAriaLabel,
|
|
23
|
+
rootIconAriaLabel: _rootIconAriaLabel,
|
|
24
24
|
rootIconVariant,
|
|
25
25
|
size = 'medium',
|
|
26
26
|
truncatedLinksIconAriaLabel,
|
|
@@ -92,13 +92,12 @@ const Breadcrumb = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
92
92
|
ref: breadcrumbListRef,
|
|
93
93
|
className: styles.breadcrumb,
|
|
94
94
|
children: [!isMobile && rootIconVariant && jsxs("li", {
|
|
95
|
+
"aria-hidden": "true",
|
|
95
96
|
className: styles.pageLink,
|
|
96
97
|
children: [rootIconVariant === 'home' ? jsx(Home, {
|
|
97
|
-
"aria-label": rootIconAriaLabel,
|
|
98
98
|
height: rootIconSize,
|
|
99
99
|
width: rootIconSize
|
|
100
100
|
}) : jsx(FolderTree, {
|
|
101
|
-
"aria-label": rootIconAriaLabel,
|
|
102
101
|
height: rootIconSize,
|
|
103
102
|
width: rootIconSize
|
|
104
103
|
}), jsx(PointerRight, {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type RequireAllOrNone } from 'type-fest';
|
|
2
1
|
export type Crumb = {
|
|
3
2
|
/** Folder ID associated with the crumb. Passed to onBreadcrumbClick when the crumb is clicked. */
|
|
4
3
|
id: string;
|
|
@@ -34,14 +33,19 @@ export type BreadcrumbProps = {
|
|
|
34
33
|
* Folder-tree dynamically detects container overflow and shows up to 3 visible crumbs with a folder tree icon dropdown.
|
|
35
34
|
*/
|
|
36
35
|
truncationMethod?: 'ellipsis' | 'folder-tree';
|
|
37
|
-
} &
|
|
38
|
-
/** Props for the root icon. These can be
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
} & RootIconProps;
|
|
37
|
+
/** Props for the root icon. These can be omitted entirely to show no root icon. */
|
|
38
|
+
type RootIconProps = {
|
|
39
|
+
rootIconAriaLabel?: never;
|
|
40
|
+
rootIconVariant?: never;
|
|
41
|
+
} | {
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated Root icons are decorative and hidden from assistive technology. This prop is ignored at runtime.
|
|
44
|
+
*/
|
|
45
|
+
rootIconAriaLabel?: string;
|
|
42
46
|
/** Determines which icon is displayed at the root. */
|
|
43
47
|
rootIconVariant: 'home' | 'folder-tree';
|
|
44
|
-
}
|
|
48
|
+
};
|
|
45
49
|
export interface BreadcrumbViewProps {
|
|
46
50
|
crumbs: Crumb[];
|
|
47
51
|
ellipsizeLastCrumb?: boolean;
|
|
@@ -92,3 +96,4 @@ export interface PerformTruncationParams {
|
|
|
92
96
|
setState: React.Dispatch<React.SetStateAction<TruncationState>>;
|
|
93
97
|
storedCrumbWidths: React.MutableRefObject<number[]>;
|
|
94
98
|
}
|
|
99
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "14.24.
|
|
3
|
+
"version": "14.24.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@ariakit/react": "0.4.21",
|
|
49
49
|
"@ariakit/react-core": "0.4.21",
|
|
50
|
-
"@box/blueprint-web-assets": "^4.115.
|
|
50
|
+
"@box/blueprint-web-assets": "^4.115.13",
|
|
51
51
|
"@internationalized/date": "^3.12.0",
|
|
52
52
|
"@radix-ui/react-accordion": "1.1.2",
|
|
53
53
|
"@radix-ui/react-checkbox": "1.0.4",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"type-fest": "^3.2.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@box/storybook-utils": "^0.18.
|
|
80
|
+
"@box/storybook-utils": "^0.18.13",
|
|
81
81
|
"@figma/code-connect": "1.4.4",
|
|
82
82
|
"@types/react": "^18.0.0",
|
|
83
83
|
"@types/react-dom": "^18.0.0",
|