@telus-uds/components-base 1.43.0 → 1.44.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 +11 -2
- package/component-docs.json +1 -0
- package/lib/Link/LinkBase.js +3 -1
- package/lib-module/Link/LinkBase.js +3 -1
- package/package.json +2 -2
- package/src/Link/LinkBase.jsx +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
# Change Log - @telus-uds/components-base
|
|
2
2
|
|
|
3
|
-
This log was last generated on Wed, 24 May 2023
|
|
3
|
+
This log was last generated on Wed, 24 May 2023 23:40:09 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.44.0
|
|
8
|
+
|
|
9
|
+
Wed, 24 May 2023 23:40:09 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- alignSelf works for stackview links bug fix (akshay.pandey1@telus.com)
|
|
14
|
+
- Bump @telus-uds/system-theme-tokens to v2.27.0
|
|
15
|
+
|
|
7
16
|
## 1.43.0
|
|
8
17
|
|
|
9
|
-
Wed, 24 May 2023 01:
|
|
18
|
+
Wed, 24 May 2023 01:43:02 GMT
|
|
10
19
|
|
|
11
20
|
### Minor changes
|
|
12
21
|
|
package/component-docs.json
CHANGED
package/lib/Link/LinkBase.js
CHANGED
|
@@ -101,12 +101,14 @@ const selectDecorationStyles = _ref4 => {
|
|
|
101
101
|
let {
|
|
102
102
|
color,
|
|
103
103
|
textLine,
|
|
104
|
-
textLineStyle
|
|
104
|
+
textLineStyle,
|
|
105
|
+
alignSelf
|
|
105
106
|
} = _ref4;
|
|
106
107
|
return {
|
|
107
108
|
color,
|
|
108
109
|
textDecorationLine: textLine,
|
|
109
110
|
textDecorationStyle: textLineStyle,
|
|
111
|
+
alignSelf,
|
|
110
112
|
..._Platform.default.select({
|
|
111
113
|
web: {
|
|
112
114
|
// TODO: https://github.com/telus/universal-design-system/issues/487
|
|
@@ -76,12 +76,14 @@ const selectDecorationStyles = _ref4 => {
|
|
|
76
76
|
let {
|
|
77
77
|
color,
|
|
78
78
|
textLine,
|
|
79
|
-
textLineStyle
|
|
79
|
+
textLineStyle,
|
|
80
|
+
alignSelf
|
|
80
81
|
} = _ref4;
|
|
81
82
|
return {
|
|
82
83
|
color,
|
|
83
84
|
textDecorationLine: textLine,
|
|
84
85
|
textDecorationStyle: textLineStyle,
|
|
86
|
+
alignSelf,
|
|
85
87
|
...Platform.select({
|
|
86
88
|
web: {
|
|
87
89
|
// TODO: https://github.com/telus/universal-design-system/issues/487
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@floating-ui/react-native": "^0.8.1",
|
|
12
12
|
"@gorhom/portal": "^1.0.14",
|
|
13
13
|
"@telus-uds/system-constants": "^1.2.1",
|
|
14
|
-
"@telus-uds/system-theme-tokens": "^2.
|
|
14
|
+
"@telus-uds/system-theme-tokens": "^2.27.0",
|
|
15
15
|
"airbnb-prop-types": "^2.16.0",
|
|
16
16
|
"lodash.debounce": "^4.0.8",
|
|
17
17
|
"lodash.merge": "^4.6.2",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"standard-engine": {
|
|
73
73
|
"skip": true
|
|
74
74
|
},
|
|
75
|
-
"version": "1.
|
|
75
|
+
"version": "1.44.0"
|
|
76
76
|
}
|
package/src/Link/LinkBase.jsx
CHANGED
|
@@ -67,10 +67,11 @@ const selectBlockStyles = (
|
|
|
67
67
|
themeOptions
|
|
68
68
|
})
|
|
69
69
|
|
|
70
|
-
const selectDecorationStyles = ({ color, textLine, textLineStyle }) => ({
|
|
70
|
+
const selectDecorationStyles = ({ color, textLine, textLineStyle, alignSelf }) => ({
|
|
71
71
|
color,
|
|
72
72
|
textDecorationLine: textLine,
|
|
73
73
|
textDecorationStyle: textLineStyle,
|
|
74
|
+
alignSelf,
|
|
74
75
|
...Platform.select({
|
|
75
76
|
web: {
|
|
76
77
|
// TODO: https://github.com/telus/universal-design-system/issues/487
|
|
@@ -147,7 +148,8 @@ const LinkBase = forwardRef(
|
|
|
147
148
|
return (
|
|
148
149
|
<InlinePressable
|
|
149
150
|
{...selectedProps}
|
|
150
|
-
inlineFlex={hasIcon}
|
|
151
|
+
inlineFlex={hasIcon}
|
|
152
|
+
// assuming links without icons should be inline (even if they are long)
|
|
151
153
|
ref={ref}
|
|
152
154
|
style={(linkState) => {
|
|
153
155
|
const themeTokens = resolveLinkTokens(linkState)
|