@telus-uds/components-web 2.32.2 → 2.33.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.
package/CHANGELOG.md CHANGED
@@ -1,12 +1,25 @@
1
1
  # Change Log - @telus-uds/components-web
2
2
 
3
- This log was last generated on Wed, 27 Mar 2024 21:09:55 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 05 Apr 2024 17:10:34 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 2.33.0
8
+
9
+ Fri, 05 Apr 2024 17:10:34 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - Bump @telus-uds/components-base to v1.82.0
14
+ - Bump @telus-uds/system-theme-tokens to v2.54.0
15
+
16
+ ### Patches
17
+
18
+ - `Breadcrumbs`: fix text wrapping error (guillermo.peitzner@telus.com)
19
+
7
20
  ## 2.32.2
8
21
 
9
- Wed, 27 Mar 2024 21:09:55 GMT
22
+ Wed, 27 Mar 2024 21:13:10 GMT
10
23
 
11
24
  ### Patches
12
25
 
@@ -27,15 +27,9 @@ const StyledList = /*#__PURE__*/_styledComponents.default.ol.withConfig({
27
27
  listStylePosition: 'inside',
28
28
  margin: 0,
29
29
  padding: 0,
30
- alignItems: 'baseline',
31
- height: _ref => {
32
- let {
33
- iconContainerSize
34
- } = _ref;
35
- return `${iconContainerSize}px`;
36
- }
30
+ alignItems: 'baseline'
37
31
  });
38
- const omitProps = _ref2 => {
32
+ const omitProps = _ref => {
39
33
  let {
40
34
  current,
41
35
  path,
@@ -44,7 +38,7 @@ const omitProps = _ref2 => {
44
38
  childRoutes,
45
39
  component,
46
40
  ...props
47
- } = _ref2;
41
+ } = _ref;
48
42
  return props;
49
43
  };
50
44
  const getBreadcrumbName = (item, params) => {
@@ -107,7 +101,7 @@ const getStructuredData = (items, baseUrl) => {
107
101
  /**
108
102
  * Display a hierarchy of links, commonly used for navigation.
109
103
  */
110
- const Breadcrumbs = _ref3 => {
104
+ const Breadcrumbs = _ref2 => {
111
105
  let {
112
106
  baseUrl,
113
107
  children,
@@ -118,7 +112,7 @@ const Breadcrumbs = _ref3 => {
118
112
  variant,
119
113
  LinkRouter,
120
114
  ...rest
121
- } = _ref3;
115
+ } = _ref2;
122
116
  // React Helmet can cause a memory leak in SSR if not properly configured.
123
117
  // Only run it in SSR if theme options tells us to.
124
118
  /* const {
@@ -128,7 +122,7 @@ const Breadcrumbs = _ref3 => {
128
122
  // const isSSR = typeof window === 'undefined' || isHydrating
129
123
  // const hasMetadata = isSSR ? enableHelmetSSR : true
130
124
  const helmetContext = {};
131
- const activeRoutes = children ? _react.default.Children.map((0, _componentsBase.unpackFragment)(children), _ref4 => {
125
+ const activeRoutes = children ? _react.default.Children.map((0, _componentsBase.unpackFragment)(children), _ref3 => {
132
126
  let {
133
127
  props: {
134
128
  href,
@@ -136,7 +130,7 @@ const Breadcrumbs = _ref3 => {
136
130
  ...itemRest
137
131
  },
138
132
  ref
139
- } = _ref4;
133
+ } = _ref3;
140
134
  return {
141
135
  path: href,
142
136
  breadcrumbName,
@@ -166,7 +160,7 @@ const Breadcrumbs = _ref3 => {
166
160
  ...selectProps(rest),
167
161
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(StyledList, {
168
162
  iconContainerSize: themeTokens.iconContainerSize,
169
- children: items.map(_ref5 => {
163
+ children: items.map(_ref4 => {
170
164
  let {
171
165
  href,
172
166
  current,
@@ -174,7 +168,7 @@ const Breadcrumbs = _ref3 => {
174
168
  LinkRouter: ItemLinkRouter = LinkRouter,
175
169
  linkRouterProps: itemLinkRouterProps,
176
170
  ...itemRest
177
- } = _ref5;
171
+ } = _ref4;
178
172
  return /*#__PURE__*/(0, _react.createElement)(_Item.default, {
179
173
  ...itemRest,
180
174
  current: current,
@@ -37,7 +37,8 @@ const StyledItemContainer = /*#__PURE__*/_styledComponents.default.li.withConfig
37
37
  iconContainerSize
38
38
  } = _ref3;
39
39
  return `${iconContainerSize}px`;
40
- }
40
+ },
41
+ marginBottom: '8px'
41
42
  });
42
43
  const IconContainer = /*#__PURE__*/_styledComponents.default.span.withConfig({
43
44
  displayName: "Item__IconContainer",
@@ -20,15 +20,9 @@ const StyledList = /*#__PURE__*/styled.ol.withConfig({
20
20
  listStylePosition: 'inside',
21
21
  margin: 0,
22
22
  padding: 0,
23
- alignItems: 'baseline',
24
- height: _ref => {
25
- let {
26
- iconContainerSize
27
- } = _ref;
28
- return `${iconContainerSize}px`;
29
- }
23
+ alignItems: 'baseline'
30
24
  });
31
- const omitProps = _ref2 => {
25
+ const omitProps = _ref => {
32
26
  let {
33
27
  current,
34
28
  path,
@@ -37,7 +31,7 @@ const omitProps = _ref2 => {
37
31
  childRoutes,
38
32
  component,
39
33
  ...props
40
- } = _ref2;
34
+ } = _ref;
41
35
  return props;
42
36
  };
43
37
  const getBreadcrumbName = (item, params) => {
@@ -100,7 +94,7 @@ const getStructuredData = (items, baseUrl) => {
100
94
  /**
101
95
  * Display a hierarchy of links, commonly used for navigation.
102
96
  */
103
- const Breadcrumbs = _ref3 => {
97
+ const Breadcrumbs = _ref2 => {
104
98
  let {
105
99
  baseUrl,
106
100
  children,
@@ -111,7 +105,7 @@ const Breadcrumbs = _ref3 => {
111
105
  variant,
112
106
  LinkRouter,
113
107
  ...rest
114
- } = _ref3;
108
+ } = _ref2;
115
109
  // React Helmet can cause a memory leak in SSR if not properly configured.
116
110
  // Only run it in SSR if theme options tells us to.
117
111
  /* const {
@@ -121,7 +115,7 @@ const Breadcrumbs = _ref3 => {
121
115
  // const isSSR = typeof window === 'undefined' || isHydrating
122
116
  // const hasMetadata = isSSR ? enableHelmetSSR : true
123
117
  const helmetContext = {};
124
- const activeRoutes = children ? React.Children.map(unpackFragment(children), _ref4 => {
118
+ const activeRoutes = children ? React.Children.map(unpackFragment(children), _ref3 => {
125
119
  let {
126
120
  props: {
127
121
  href,
@@ -129,7 +123,7 @@ const Breadcrumbs = _ref3 => {
129
123
  ...itemRest
130
124
  },
131
125
  ref
132
- } = _ref4;
126
+ } = _ref3;
133
127
  return {
134
128
  path: href,
135
129
  breadcrumbName,
@@ -159,7 +153,7 @@ const Breadcrumbs = _ref3 => {
159
153
  ...selectProps(rest),
160
154
  children: [/*#__PURE__*/_jsx(StyledList, {
161
155
  iconContainerSize: themeTokens.iconContainerSize,
162
- children: items.map(_ref5 => {
156
+ children: items.map(_ref4 => {
163
157
  let {
164
158
  href,
165
159
  current,
@@ -167,7 +161,7 @@ const Breadcrumbs = _ref3 => {
167
161
  LinkRouter: ItemLinkRouter = LinkRouter,
168
162
  linkRouterProps: itemLinkRouterProps,
169
163
  ...itemRest
170
- } = _ref5;
164
+ } = _ref4;
171
165
  return /*#__PURE__*/_createElement(Item, {
172
166
  ...itemRest,
173
167
  current: current,
@@ -30,7 +30,8 @@ const StyledItemContainer = /*#__PURE__*/styled.li.withConfig({
30
30
  iconContainerSize
31
31
  } = _ref3;
32
32
  return `${iconContainerSize}px`;
33
- }
33
+ },
34
+ marginBottom: '8px'
34
35
  });
35
36
  const IconContainer = /*#__PURE__*/styled.span.withConfig({
36
37
  displayName: "Item__IconContainer",
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  ],
6
6
  "dependencies": {
7
7
  "@gorhom/portal": "^1.0.14",
8
- "@telus-uds/components-base": "1.81.0",
8
+ "@telus-uds/components-base": "1.82.0",
9
9
  "@telus-uds/system-constants": "^1.3.0",
10
10
  "fscreen": "^1.2.0",
11
11
  "lodash.omit": "^4.5.0",
@@ -13,7 +13,7 @@
13
13
  "react-dates": "^21.8.0",
14
14
  "react-helmet-async": "^1.3.0",
15
15
  "react-moment-proptypes": "^1.8.1",
16
- "@telus-uds/system-theme-tokens": "^2.53.0",
16
+ "@telus-uds/system-theme-tokens": "^2.54.0",
17
17
  "prop-types": "^15.7.2",
18
18
  "lodash.throttle": "^4.1.1",
19
19
  "react-youtube": "^10.1.0",
@@ -83,5 +83,5 @@
83
83
  "skip": true
84
84
  },
85
85
  "types": "types/index.d.ts",
86
- "version": "2.32.2"
86
+ "version": "2.33.0"
87
87
  }
@@ -25,8 +25,7 @@ const StyledList = styled.ol({
25
25
  listStylePosition: 'inside',
26
26
  margin: 0,
27
27
  padding: 0,
28
- alignItems: 'baseline',
29
- height: ({ iconContainerSize }) => `${iconContainerSize}px`
28
+ alignItems: 'baseline'
30
29
  })
31
30
 
32
31
  const omitProps = ({
@@ -17,7 +17,8 @@ const StyledItemContainer = styled.li({
17
17
  display: 'flex',
18
18
  paddingLeft: ({ listItemPadding }) => `${listItemPadding}px`,
19
19
  lineHeight: ({ lineHeight, fontSize }) => `${Math.ceil(lineHeight * fontSize)}px`,
20
- height: ({ iconContainerSize }) => `${iconContainerSize}px`
20
+ height: ({ iconContainerSize }) => `${iconContainerSize}px`,
21
+ marginBottom: '8px'
21
22
  })
22
23
 
23
24
  const IconContainer = styled.span({