@telus-uds/components-base 1.18.0 → 1.18.1

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,20 @@
1
1
  # Change Log - @telus-uds/components-base
2
2
 
3
- This log was last generated on Tue, 27 Sep 2022 19:31:35 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 05 Oct 2022 21:29:58 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.18.1
8
+
9
+ Wed, 05 Oct 2022 21:29:58 GMT
10
+
11
+ ### Patches
12
+
13
+ - feat: add passing native / test ID from the search to the input (ruslan.bredikhin@nearform.com)
14
+
7
15
  ## 1.18.0
8
16
 
9
- Tue, 27 Sep 2022 19:31:35 GMT
17
+ Tue, 27 Sep 2022 19:33:40 GMT
10
18
 
11
19
  ### Minor changes
12
20
 
@@ -159,10 +159,18 @@ const Search = /*#__PURE__*/(0, _react.forwardRef)((_ref4, ref) => {
159
159
  const a11yLabelText = accessibilityLabel || getCopy('accessibilityLabel'); // Placeholder is optional and may be unset by passing an empty string
160
160
 
161
161
  const placeholderText = placeholder !== null && placeholder !== void 0 ? placeholder : a11yLabelText;
162
+ const {
163
+ nativeID,
164
+ testID,
165
+ ...containerProps
166
+ } = selectContainerProps(rest);
162
167
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_View.default, {
163
168
  style: staticStyles.container,
164
- ...selectContainerProps(rest),
165
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TextInputBase.default, { ...selectInputProps(rest),
169
+ ...containerProps,
170
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TextInputBase.default, {
171
+ nativeID: nativeID,
172
+ testID: testID,
173
+ ...selectInputProps(rest),
166
174
  ref: ref,
167
175
  tokens: appearances => selectInputTokens({
168
176
  searchTokens: getThemeTokens(appearances),
@@ -135,10 +135,18 @@ const Search = /*#__PURE__*/forwardRef((_ref4, ref) => {
135
135
  const a11yLabelText = accessibilityLabel || getCopy('accessibilityLabel'); // Placeholder is optional and may be unset by passing an empty string
136
136
 
137
137
  const placeholderText = placeholder !== null && placeholder !== void 0 ? placeholder : a11yLabelText;
138
+ const {
139
+ nativeID,
140
+ testID,
141
+ ...containerProps
142
+ } = selectContainerProps(rest);
138
143
  return /*#__PURE__*/_jsxs(View, {
139
144
  style: staticStyles.container,
140
- ...selectContainerProps(rest),
141
- children: [/*#__PURE__*/_jsx(TextInputBase, { ...selectInputProps(rest),
145
+ ...containerProps,
146
+ children: [/*#__PURE__*/_jsx(TextInputBase, {
147
+ nativeID: nativeID,
148
+ testID: testID,
149
+ ...selectInputProps(rest),
142
150
  ref: ref,
143
151
  tokens: appearances => selectInputTokens({
144
152
  searchTokens: getThemeTokens(appearances),
package/package.json CHANGED
@@ -67,5 +67,5 @@
67
67
  "standard-engine": {
68
68
  "skip": true
69
69
  },
70
- "version": "1.18.0"
70
+ "version": "1.18.1"
71
71
  }
@@ -123,10 +123,13 @@ const Search = forwardRef(
123
123
  const a11yLabelText = accessibilityLabel || getCopy('accessibilityLabel')
124
124
  // Placeholder is optional and may be unset by passing an empty string
125
125
  const placeholderText = placeholder ?? a11yLabelText
126
+ const { nativeID, testID, ...containerProps } = selectContainerProps(rest)
126
127
 
127
128
  return (
128
- <View style={staticStyles.container} {...selectContainerProps(rest)}>
129
+ <View style={staticStyles.container} {...containerProps}>
129
130
  <TextInputBase
131
+ nativeID={nativeID}
132
+ testID={testID}
130
133
  {...selectInputProps(rest)}
131
134
  ref={ref}
132
135
  tokens={(appearances) =>