@telus-uds/components-base 2.1.0 → 2.2.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-base
2
2
 
3
- <!-- This log was last generated on Mon, 02 Dec 2024 20:23:48 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Fri, 06 Dec 2024 02:03:26 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 2.2.0
8
+
9
+ Fri, 06 Dec 2024 02:03:26 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - `PressableItem`: pass event to on-press function (guillermo.peitzner@telus.com)
14
+ - `ChevronLink`, `Search` & `ResponsiveImage`: new `dataSet` prop added to the components to allow the capability to pass data (35577399+JoshHC@users.noreply.github.com)
15
+
16
+ ### Patches
17
+
18
+ - `Typography`: fix gradient when enableMediaQueryStyleSheet is true (Mauricio.BatresMontejo@telus.com)
19
+
7
20
  ## 2.1.0
8
21
 
9
- Mon, 02 Dec 2024 20:23:48 GMT
22
+ Mon, 02 Dec 2024 20:29:26 GMT
10
23
 
11
24
  ### Minor changes
12
25
 
@@ -113,9 +113,9 @@ const PressableItem = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
113
113
  onClick: onPress
114
114
  }),
115
115
  ...selectProps(rest),
116
- onPress: () => {
116
+ onPress: event => {
117
117
  setSelectedId(id);
118
- onPress();
118
+ onPress(event);
119
119
  },
120
120
  children: pressableState => {
121
121
  return /*#__PURE__*/_jsxs(Text, {
@@ -73,6 +73,7 @@ const Search = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
73
73
  tokens,
74
74
  variant,
75
75
  nativeSubmitBtnID,
76
+ dataSet,
76
77
  ...rest
77
78
  } = _ref3;
78
79
  const {
@@ -132,6 +133,7 @@ const Search = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
132
133
  } = selectContainerProps(rest);
133
134
  return /*#__PURE__*/_jsx(View, {
134
135
  ...containerProps,
136
+ dataSet: dataSet,
135
137
  children: /*#__PURE__*/_jsx(TextInputBase, {
136
138
  nativeID: nativeID,
137
139
  testID: testID,
@@ -122,6 +122,18 @@ const Typography = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
122
122
  textDecorationLine,
123
123
  ...viewportTokens
124
124
  }, themeOptions);
125
+ if (themeTokens[vp].gradient) {
126
+ const tokensWithGradient = {
127
+ ...acc[vp],
128
+ color: 'transparent',
129
+ backgroundImage: generateGradientString(themeTokens[vp].gradient),
130
+ backgroundClip: 'text'
131
+ };
132
+ return {
133
+ ...acc,
134
+ [vp]: tokensWithGradient
135
+ };
136
+ }
125
137
  return acc;
126
138
  }, {});
127
139
  const mediaQueryStyles = createMediaQueryStyles(transformedThemeTokens);
package/package.json CHANGED
@@ -81,6 +81,6 @@
81
81
  "standard-engine": {
82
82
  "skip": true
83
83
  },
84
- "version": "2.1.0",
84
+ "version": "2.2.0",
85
85
  "types": "types/index.d.ts"
86
86
  }
@@ -109,9 +109,9 @@ const PressableItem = React.forwardRef(
109
109
  {...(href && { href })}
110
110
  {...(onPress && { onClick: onPress })}
111
111
  {...selectProps(rest)}
112
- onPress={() => {
112
+ onPress={(event) => {
113
113
  setSelectedId(id)
114
- onPress()
114
+ onPress(event)
115
115
  }}
116
116
  >
117
117
  {(pressableState) => {
@@ -77,6 +77,7 @@ const Search = React.forwardRef(
77
77
  tokens,
78
78
  variant,
79
79
  nativeSubmitBtnID,
80
+ dataSet,
80
81
  ...rest
81
82
  },
82
83
  ref
@@ -130,7 +131,7 @@ const Search = React.forwardRef(
130
131
  const { nativeID, testID, ...containerProps } = selectContainerProps(rest)
131
132
 
132
133
  return (
133
- <View {...containerProps}>
134
+ <View {...containerProps} dataSet={dataSet}>
134
135
  <TextInputBase
135
136
  nativeID={nativeID}
136
137
  testID={testID}
@@ -152,6 +152,18 @@ const Typography = React.forwardRef(
152
152
  },
153
153
  themeOptions
154
154
  )
155
+ if (themeTokens[vp].gradient) {
156
+ const tokensWithGradient = {
157
+ ...acc[vp],
158
+ color: 'transparent',
159
+ backgroundImage: generateGradientString(themeTokens[vp].gradient),
160
+ backgroundClip: 'text'
161
+ }
162
+ return {
163
+ ...acc,
164
+ [vp]: tokensWithGradient
165
+ }
166
+ }
155
167
  return acc
156
168
  },
157
169
  {}