@zendeskgarden/react-breadcrumbs 9.1.2 → 9.3.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.
@@ -5,6 +5,7 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import React__default, { forwardRef, Children, cloneElement } from 'react';
8
+ import SvgChevronRightStroke from '../node_modules/@zendeskgarden/svg-icons/src/12/chevron-right-stroke.svg.js';
8
9
  import { useBreadcrumb } from '@zendeskgarden/container-breadcrumb';
9
10
  import { useText } from '@zendeskgarden/react-theming';
10
11
  import { StyledBreadcrumb } from '../styled/StyledBreadcrumb.js';
@@ -25,7 +26,7 @@ const Breadcrumb = forwardRef((props, ref) => {
25
26
  $isCurrent: true
26
27
  }, cloneElement(child, getCurrentPageProps()));
27
28
  }
28
- return React__default.createElement(React__default.Fragment, null, React__default.createElement(StyledBreadcrumbItem, null, child), React__default.createElement(StyledCenteredBreadcrumbItem, null, React__default.createElement(StyledChevronIcon, null)));
29
+ return React__default.createElement(React__default.Fragment, null, React__default.createElement(StyledBreadcrumbItem, null, child), React__default.createElement(StyledCenteredBreadcrumbItem, null, React__default.createElement(StyledChevronIcon, null, React__default.createElement(SvgChevronRightStroke, null))));
29
30
  });
30
31
  const ariaLabel = useText(Breadcrumb, props, 'aria-label', 'Breadcrumbs');
31
32
  return React__default.createElement("nav", getContainerProps({
@@ -10,7 +10,7 @@ import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
10
10
  const COMPONENT_ID = 'breadcrumbs.list';
11
11
  const StyledBreadcrumb = styled.ol.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.1.2'
13
+ 'data-garden-version': '9.3.0'
14
14
  }).withConfig({
15
15
  displayName: "StyledBreadcrumb",
16
16
  componentId: "sc-11jrinn-0"
@@ -35,7 +35,7 @@ const colorStyles = _ref2 => {
35
35
  };
36
36
  const StyledBreadcrumbItem = styled.li.attrs({
37
37
  'data-garden-id': COMPONENT_ID,
38
- 'data-garden-version': '9.1.2'
38
+ 'data-garden-version': '9.3.0'
39
39
  }).withConfig({
40
40
  displayName: "StyledBreadcrumbItem",
41
41
  componentId: "sc-r0suq7-0"
@@ -4,23 +4,11 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- import React__default from 'react';
8
7
  import styled from 'styled-components';
9
8
  import { em } from 'polished';
10
- import { getColor } from '@zendeskgarden/react-theming';
11
- import SvgChevronRightStroke from '../node_modules/@zendeskgarden/svg-icons/src/12/chevron-right-stroke.svg.js';
9
+ import { StyledBaseIcon, getColor } from '@zendeskgarden/react-theming';
12
10
 
13
- const StyledChevronIcon = styled(_ref => {
14
- let {
15
- children,
16
- theme,
17
- ...props
18
- } = _ref;
19
- return React__default.createElement(SvgChevronRightStroke, props);
20
- }).attrs({
21
- role: 'presentation',
22
- 'aria-hidden': 'true'
23
- }).withConfig({
11
+ const StyledChevronIcon = styled(StyledBaseIcon).withConfig({
24
12
  displayName: "StyledChevronIcon",
25
13
  componentId: "sc-9r9qrm-0"
26
14
  })(["transform:", ";margin:0 ", ";color:", ";"], p => p.theme.rtl && `rotate(180deg);`, p => em(p.theme.space.base, p.theme.fontSizes.md), p => getColor({
package/dist/index.cjs.js CHANGED
@@ -35,15 +35,6 @@ function _interopNamespace(e) {
35
35
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
36
36
  var styled__default = /*#__PURE__*/_interopDefault(styled);
37
37
 
38
- const COMPONENT_ID$1 = 'breadcrumbs.list';
39
- const StyledBreadcrumb = styled__default.default.ol.attrs({
40
- 'data-garden-id': COMPONENT_ID$1,
41
- 'data-garden-version': '9.1.2'
42
- }).withConfig({
43
- displayName: "StyledBreadcrumb",
44
- componentId: "sc-11jrinn-0"
45
- })(["display:flex;margin:0;padding:0;list-style:none;font-size:", ";direction:", ";", ";"], props => props.theme.fontSizes.md, props => props.theme.rtl && 'rtl', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$1, props));
46
-
47
38
  var _path;
48
39
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
49
40
  var SvgChevronRightStroke = function SvgChevronRightStroke(props) {
@@ -60,17 +51,16 @@ var SvgChevronRightStroke = function SvgChevronRightStroke(props) {
60
51
  })));
61
52
  };
62
53
 
63
- const StyledChevronIcon = styled__default.default(_ref => {
64
- let {
65
- children,
66
- theme,
67
- ...props
68
- } = _ref;
69
- return React__namespace.default.createElement(SvgChevronRightStroke, props);
70
- }).attrs({
71
- role: 'presentation',
72
- 'aria-hidden': 'true'
54
+ const COMPONENT_ID$1 = 'breadcrumbs.list';
55
+ const StyledBreadcrumb = styled__default.default.ol.attrs({
56
+ 'data-garden-id': COMPONENT_ID$1,
57
+ 'data-garden-version': '9.3.0'
73
58
  }).withConfig({
59
+ displayName: "StyledBreadcrumb",
60
+ componentId: "sc-11jrinn-0"
61
+ })(["display:flex;margin:0;padding:0;list-style:none;font-size:", ";direction:", ";", ";"], props => props.theme.fontSizes.md, props => props.theme.rtl && 'rtl', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$1, props));
62
+
63
+ const StyledChevronIcon = styled__default.default(reactTheming.StyledBaseIcon).withConfig({
74
64
  displayName: "StyledChevronIcon",
75
65
  componentId: "sc-9r9qrm-0"
76
66
  })(["transform:", ";margin:0 ", ";color:", ";"], p => p.theme.rtl && `rotate(180deg);`, p => polished.em(p.theme.space.base, p.theme.fontSizes.md), p => reactTheming.getColor({
@@ -106,7 +96,7 @@ const colorStyles = _ref2 => {
106
96
  };
107
97
  const StyledBreadcrumbItem = styled__default.default.li.attrs({
108
98
  'data-garden-id': COMPONENT_ID,
109
- 'data-garden-version': '9.1.2'
99
+ 'data-garden-version': '9.3.0'
110
100
  }).withConfig({
111
101
  displayName: "StyledBreadcrumbItem",
112
102
  componentId: "sc-r0suq7-0"
@@ -132,7 +122,7 @@ const Breadcrumb = React.forwardRef((props, ref) => {
132
122
  $isCurrent: true
133
123
  }, React.cloneElement(child, getCurrentPageProps()));
134
124
  }
135
- return React__namespace.default.createElement(React__namespace.default.Fragment, null, React__namespace.default.createElement(StyledBreadcrumbItem, null, child), React__namespace.default.createElement(StyledCenteredBreadcrumbItem, null, React__namespace.default.createElement(StyledChevronIcon, null)));
125
+ return React__namespace.default.createElement(React__namespace.default.Fragment, null, React__namespace.default.createElement(StyledBreadcrumbItem, null, child), React__namespace.default.createElement(StyledCenteredBreadcrumbItem, null, React__namespace.default.createElement(StyledChevronIcon, null, React__namespace.default.createElement(SvgChevronRightStroke, null))));
136
126
  });
137
127
  const ariaLabel = reactTheming.useText(Breadcrumb, props, 'aria-label', 'Breadcrumbs');
138
128
  return React__namespace.default.createElement("nav", getContainerProps({
@@ -7,7 +7,6 @@
7
7
  /**
8
8
  * 1. <ol> reset.
9
9
  */
10
- export declare const StyledBreadcrumb: import("styled-components").StyledComponent<"ol", import("styled-components").DefaultTheme, {
11
- 'data-garden-id': string;
12
- 'data-garden-version': string;
13
- }, "data-garden-id" | "data-garden-version">;
10
+ export declare const StyledBreadcrumb: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, Omit<import("react").DetailedHTMLProps<import("react").OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & {
11
+ ref?: ((instance: HTMLOListElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLOListElement> | null | undefined;
12
+ }>, never>, never>> & string;
@@ -4,11 +4,9 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- import { DefaultTheme } from 'styled-components';
8
7
  export interface IStyledBreadcrumbItemProps {
9
8
  $isCurrent?: boolean;
10
9
  }
11
- export declare const StyledBreadcrumbItem: import("styled-components").StyledComponent<"li", DefaultTheme, {
12
- 'data-garden-id': string;
13
- 'data-garden-version': string;
14
- } & IStyledBreadcrumbItemProps, "data-garden-id" | "data-garden-version">;
10
+ export declare const StyledBreadcrumbItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
11
+ ref?: ((instance: HTMLLIElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLLIElement> | null | undefined;
12
+ }>, never>, IStyledBreadcrumbItemProps>> & string;
@@ -4,9 +4,8 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- export declare const StyledCenteredBreadcrumbItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {
8
- 'data-garden-id': string;
9
- 'data-garden-version': string;
10
- } & import("./StyledBreadcrumbItem").IStyledBreadcrumbItemProps & {
11
- 'aria-hidden': true;
12
- }, "aria-hidden" | "data-garden-id" | "data-garden-version">;
7
+ export declare const StyledCenteredBreadcrumbItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
8
+ ref?: ((instance: HTMLLIElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLLIElement> | null | undefined;
9
+ }>, never>, "$isCurrent"> & import("./StyledBreadcrumbItem").IStyledBreadcrumbItemProps, import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
10
+ ref?: ((instance: HTMLLIElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLLIElement> | null | undefined;
11
+ }>, never>, "$isCurrent"> & import("./StyledBreadcrumbItem").IStyledBreadcrumbItemProps>, never>, never>> & string;
@@ -4,11 +4,4 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- import React from 'react';
8
- /**
9
- * Accepts all `<svg>` props
10
- */
11
- export declare const StyledChevronIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => React.JSX.Element, import("styled-components").DefaultTheme, {
12
- role: string;
13
- 'aria-hidden': string;
14
- }, "role" | "aria-hidden">;
7
+ export declare const StyledChevronIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("@zendeskgarden/react-theming").IStyledBaseIconProps, never>, never>> & string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-breadcrumbs",
3
- "version": "9.1.2",
3
+ "version": "9.3.0",
4
4
  "description": "Components relating to breadcrumbs in the Garden Design System",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Zendesk Garden <garden@zendesk.com>",
@@ -29,10 +29,10 @@
29
29
  "@zendeskgarden/react-theming": ">=9.0.0",
30
30
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
31
31
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
32
- "styled-components": "^5.3.1"
32
+ "styled-components": "^5.3.1 || ^6.0.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@zendeskgarden/react-theming": "^9.1.2",
35
+ "@zendeskgarden/react-theming": "^9.3.0",
36
36
  "@zendeskgarden/svg-icons": "7.3.0"
37
37
  },
38
38
  "keywords": [
@@ -45,5 +45,5 @@
45
45
  "access": "public"
46
46
  },
47
47
  "zendeskgarden:src": "src/index.ts",
48
- "gitHead": "dd7b2e7fb6747ef39a028b4e7b9924c2098deea0"
48
+ "gitHead": "fa6461e0d9fae27956980056006e8013daedc6b9"
49
49
  }