@telus-uds/components-web 4.2.0 → 4.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.
- package/CHANGELOG.md +27 -2
- package/lib/cjs/Breadcrumbs/Breadcrumbs.js +1 -1
- package/lib/cjs/Table/Row.js +3 -3
- package/lib/cjs/Table/Table.js +1 -1
- package/lib/esm/Breadcrumbs/Breadcrumbs.js +1 -1
- package/lib/esm/Table/Row.js +3 -3
- package/lib/esm/Table/Table.js +1 -1
- package/package.json +2 -2
- package/src/Breadcrumbs/Breadcrumbs.jsx +5 -1
- package/src/Table/Row.jsx +2 -2
- package/src/Table/Table.jsx +1 -0
- package/types/Tooltip.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,37 @@
|
|
|
1
1
|
# Change Log - @telus-uds/components-web
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Tue, 11 Mar 2025 21:13:58 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 4.3.0
|
|
8
|
+
|
|
9
|
+
Tue, 11 Mar 2025 21:13:58 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- `Tooltip`: Customized/optional type props (shivam.gupta3@telus.com)
|
|
14
|
+
- Bump @telus-uds/components-base to v3.4.0
|
|
15
|
+
|
|
16
|
+
### Patches
|
|
17
|
+
|
|
18
|
+
- `Table`: fix row border tokens (guillermo.peitzner@telus.com)
|
|
19
|
+
- `Card`: fix interactiveCard background color (guillermo.peitzner@telus.com)
|
|
20
|
+
|
|
21
|
+
## 4.2.1
|
|
22
|
+
|
|
23
|
+
Wed, 05 Mar 2025 00:06:37 GMT
|
|
24
|
+
|
|
25
|
+
### Patches
|
|
26
|
+
|
|
27
|
+
- `Alignment`: fix Typography align issue when using `align` (sergio.ramirez@telus.com)
|
|
28
|
+
- `List`: remove textAlign parent value (sergio.ramirez@telus.com)
|
|
29
|
+
- `Breadcrumbs`: fix layout shifts (guillermo.peitzner@telus.com)
|
|
30
|
+
- Bump @telus-uds/components-base to v3.3.0
|
|
31
|
+
|
|
7
32
|
## 4.2.0
|
|
8
33
|
|
|
9
|
-
Fri, 14 Feb 2025
|
|
34
|
+
Fri, 14 Feb 2025 19:03:35 GMT
|
|
10
35
|
|
|
11
36
|
### Minor changes
|
|
12
37
|
|
|
@@ -174,7 +174,7 @@ const Breadcrumbs = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
|
174
174
|
setItemsToBeRendered(activeRoutes);
|
|
175
175
|
}
|
|
176
176
|
}, [viewport, activeRoutes, optionsHidden, itemsToBeRendered, newItems]);
|
|
177
|
-
const items = getItems(itemsToBeRendered, params, !children);
|
|
177
|
+
const items = getItems(itemsToBeRendered.length > 0 ? itemsToBeRendered : activeRoutes, params, !children);
|
|
178
178
|
const themeTokens = (0, _componentsBase.useThemeTokens)('Breadcrumbs', tokens, variant);
|
|
179
179
|
const metadata = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactHelmetAsync.HelmetProvider, {
|
|
180
180
|
context: helmetContext,
|
package/lib/cjs/Table/Row.js
CHANGED
|
@@ -13,7 +13,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
13
13
|
const StyledTR = /*#__PURE__*/_styledComponents.default.tr.withConfig({
|
|
14
14
|
displayName: "Row__StyledTR",
|
|
15
15
|
componentId: "components-web__sc-6pbb9a-0"
|
|
16
|
-
})(["&:hover{background-color:", " !important;}border-style:", ";border-color:", ";border-width:", ";border-top-width:", ";"], _ref => {
|
|
16
|
+
})(["&:hover{background-color:", " !important;}border-style:", ";border-color:", ";border-width:", "px;border-top-width:", "px;"], _ref => {
|
|
17
17
|
let {
|
|
18
18
|
tokens
|
|
19
19
|
} = _ref;
|
|
@@ -32,12 +32,12 @@ const StyledTR = /*#__PURE__*/_styledComponents.default.tr.withConfig({
|
|
|
32
32
|
let {
|
|
33
33
|
tokens
|
|
34
34
|
} = _ref4;
|
|
35
|
-
return tokens?.rowBorderWidth ||
|
|
35
|
+
return `${tokens?.rowBorderWidth}` || 0;
|
|
36
36
|
}, _ref5 => {
|
|
37
37
|
let {
|
|
38
38
|
tokens
|
|
39
39
|
} = _ref5;
|
|
40
|
-
return tokens?.rowBorderTopWidth || tokens?.rowBorderWidth;
|
|
40
|
+
return `${tokens?.rowBorderTopWidth}` || tokens?.rowBorderWidth;
|
|
41
41
|
});
|
|
42
42
|
const Row = /*#__PURE__*/_react.default.forwardRef((_ref6, ref) => {
|
|
43
43
|
let {
|
package/lib/cjs/Table/Table.js
CHANGED
|
@@ -20,7 +20,7 @@ const StyledContainer = /*#__PURE__*/_styledComponents.default.div.withConfig({
|
|
|
20
20
|
const StyledTable = /*#__PURE__*/_styledComponents.default.table.withConfig({
|
|
21
21
|
displayName: "Table__StyledTable",
|
|
22
22
|
componentId: "components-web__sc-10d9q3m-1"
|
|
23
|
-
})(["margin:0;padding:0;width:", ";border:", ";"], _ref => {
|
|
23
|
+
})(["margin:0;padding:0;width:", ";border:", ";border-collapse:collapse;"], _ref => {
|
|
24
24
|
let {
|
|
25
25
|
fullWidth,
|
|
26
26
|
tableWidth
|
|
@@ -165,7 +165,7 @@ const Breadcrumbs = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
165
165
|
setItemsToBeRendered(activeRoutes);
|
|
166
166
|
}
|
|
167
167
|
}, [viewport, activeRoutes, optionsHidden, itemsToBeRendered, newItems]);
|
|
168
|
-
const items = getItems(itemsToBeRendered, params, !children);
|
|
168
|
+
const items = getItems(itemsToBeRendered.length > 0 ? itemsToBeRendered : activeRoutes, params, !children);
|
|
169
169
|
const themeTokens = useThemeTokens('Breadcrumbs', tokens, variant);
|
|
170
170
|
const metadata = /*#__PURE__*/_jsx(HelmetProvider, {
|
|
171
171
|
context: helmetContext,
|
package/lib/esm/Table/Row.js
CHANGED
|
@@ -6,7 +6,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
6
6
|
const StyledTR = /*#__PURE__*/styled.tr.withConfig({
|
|
7
7
|
displayName: "Row__StyledTR",
|
|
8
8
|
componentId: "components-web__sc-6pbb9a-0"
|
|
9
|
-
})(["&:hover{background-color:", " !important;}border-style:", ";border-color:", ";border-width:", ";border-top-width:", ";"], _ref => {
|
|
9
|
+
})(["&:hover{background-color:", " !important;}border-style:", ";border-color:", ";border-width:", "px;border-top-width:", "px;"], _ref => {
|
|
10
10
|
let {
|
|
11
11
|
tokens
|
|
12
12
|
} = _ref;
|
|
@@ -25,12 +25,12 @@ const StyledTR = /*#__PURE__*/styled.tr.withConfig({
|
|
|
25
25
|
let {
|
|
26
26
|
tokens
|
|
27
27
|
} = _ref4;
|
|
28
|
-
return tokens?.rowBorderWidth ||
|
|
28
|
+
return `${tokens?.rowBorderWidth}` || 0;
|
|
29
29
|
}, _ref5 => {
|
|
30
30
|
let {
|
|
31
31
|
tokens
|
|
32
32
|
} = _ref5;
|
|
33
|
-
return tokens?.rowBorderTopWidth || tokens?.rowBorderWidth;
|
|
33
|
+
return `${tokens?.rowBorderTopWidth}` || tokens?.rowBorderWidth;
|
|
34
34
|
});
|
|
35
35
|
const Row = /*#__PURE__*/React.forwardRef((_ref6, ref) => {
|
|
36
36
|
let {
|
package/lib/esm/Table/Table.js
CHANGED
|
@@ -13,7 +13,7 @@ const StyledContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
13
13
|
const StyledTable = /*#__PURE__*/styled.table.withConfig({
|
|
14
14
|
displayName: "Table__StyledTable",
|
|
15
15
|
componentId: "components-web__sc-10d9q3m-1"
|
|
16
|
-
})(["margin:0;padding:0;width:", ";border:", ";"], _ref => {
|
|
16
|
+
})(["margin:0;padding:0;width:", ";border:", ";border-collapse:collapse;"], _ref => {
|
|
17
17
|
let {
|
|
18
18
|
fullWidth,
|
|
19
19
|
tableWidth
|
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": "^3.
|
|
8
|
+
"@telus-uds/components-base": "^3.4.0",
|
|
9
9
|
"@telus-uds/system-constants": "^3.0.0",
|
|
10
10
|
"fscreen": "^1.2.0",
|
|
11
11
|
"lodash.omit": "^4.5.0",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"skip": true
|
|
83
83
|
},
|
|
84
84
|
"types": "types/index.d.ts",
|
|
85
|
-
"version": "4.
|
|
85
|
+
"version": "4.3.0"
|
|
86
86
|
}
|
|
@@ -186,7 +186,11 @@ const Breadcrumbs = React.forwardRef(
|
|
|
186
186
|
}
|
|
187
187
|
}, [viewport, activeRoutes, optionsHidden, itemsToBeRendered, newItems])
|
|
188
188
|
|
|
189
|
-
const items = getItems(
|
|
189
|
+
const items = getItems(
|
|
190
|
+
itemsToBeRendered.length > 0 ? itemsToBeRendered : activeRoutes,
|
|
191
|
+
params,
|
|
192
|
+
!children
|
|
193
|
+
)
|
|
190
194
|
const themeTokens = useThemeTokens('Breadcrumbs', tokens, variant)
|
|
191
195
|
|
|
192
196
|
const metadata = (
|
package/src/Table/Row.jsx
CHANGED
|
@@ -10,8 +10,8 @@ const StyledTR = styled.tr`
|
|
|
10
10
|
border-style: ${({ tokens }) =>
|
|
11
11
|
tokens?.rowBorderWidth || tokens?.rowBorderTopWidth ? 'solid' : 'none'};
|
|
12
12
|
border-color: ${({ tokens }) => tokens?.rowBorderColor};
|
|
13
|
-
border-width: ${({ tokens }) => tokens?.rowBorderWidth ||
|
|
14
|
-
border-top-width: ${({ tokens }) => tokens?.rowBorderTopWidth || tokens?.rowBorderWidth};
|
|
13
|
+
border-width: ${({ tokens }) => `${tokens?.rowBorderWidth}` || 0}px;
|
|
14
|
+
border-top-width: ${({ tokens }) => `${tokens?.rowBorderTopWidth}` || tokens?.rowBorderWidth}px;
|
|
15
15
|
`
|
|
16
16
|
|
|
17
17
|
const Row = React.forwardRef(({ children, tokens: rowTokens }, ref) => {
|
package/src/Table/Table.jsx
CHANGED
|
@@ -22,6 +22,7 @@ const StyledTable = styled.table`
|
|
|
22
22
|
padding: 0;
|
|
23
23
|
width: ${({ fullWidth, tableWidth }) => (fullWidth ? '100%' : `${tableWidth}px`)};
|
|
24
24
|
border: ${(props) => `${props.borderWidth}px solid ${props.borderColor}`};
|
|
25
|
+
border-collapse: collapse;
|
|
25
26
|
`
|
|
26
27
|
|
|
27
28
|
const TableContext = React.createContext({})
|
package/types/Tooltip.d.ts
CHANGED