@utilitywarehouse/hearth-react-native 0.28.1 → 0.28.2

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @utilitywarehouse/hearth-react-native@0.28.1 build /home/runner/work/hearth/hearth/packages/react-native
2
+ > @utilitywarehouse/hearth-react-native@0.28.2 build /home/runner/work/hearth/hearth/packages/react-native
3
3
  > tsc
4
4
 
@@ -1,5 +1,5 @@
1
1
 
2
- > @utilitywarehouse/hearth-react-native@0.28.1 lint /home/runner/work/hearth/hearth/packages/react-native
2
+ > @utilitywarehouse/hearth-react-native@0.28.2 lint /home/runner/work/hearth/hearth/packages/react-native
3
3
  > TIMING=1 eslint .
4
4
 
5
5
 
@@ -54,15 +54,15 @@
54
54
 
55
55
  ✖ 23 problems (0 errors, 23 warnings)
56
56
 
57
- Rule | Time (ms) | Relative
58
- :---------------------------------|----------:|--------:
59
- @typescript-eslint/no-unused-vars | 1518.708 | 59.0%
60
- react-hooks/exhaustive-deps | 172.321 | 6.7%
61
- react-hooks/rules-of-hooks | 93.331 | 3.6%
62
- no-global-assign | 85.496 | 3.3%
63
- @typescript-eslint/ban-ts-comment | 43.023 | 1.7%
64
- no-misleading-character-class | 42.707 | 1.7%
65
- no-fallthrough | 37.056 | 1.4%
66
- no-unexpected-multiline | 36.705 | 1.4%
67
- no-regex-spaces | 31.518 | 1.2%
68
- no-control-regex | 28.945 | 1.1%
57
+ Rule | Time (ms) | Relative
58
+ :-----------------------------------------|----------:|--------:
59
+ @typescript-eslint/no-unused-vars | 1611.506 | 62.8%
60
+ react-hooks/exhaustive-deps | 121.253 | 4.7%
61
+ react-hooks/rules-of-hooks | 88.872 | 3.5%
62
+ no-global-assign | 73.109 | 2.8%
63
+ no-misleading-character-class | 41.972 | 1.6%
64
+ no-unexpected-multiline | 39.944 | 1.6%
65
+ no-regex-spaces | 37.157 | 1.4%
66
+ @typescript-eslint/ban-ts-comment | 31.755 | 1.2%
67
+ no-useless-escape | 28.823 | 1.1%
68
+ @typescript-eslint/triple-slash-reference | 28.052 | 1.1%
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @utilitywarehouse/hearth-react-native
2
2
 
3
+ ## 0.28.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1024](https://github.com/utilitywarehouse/hearth/pull/1024) [`23b6767`](https://github.com/utilitywarehouse/hearth/commit/23b67672b89198a483ddcef88f9c6207b684c4d9) Thanks [@fillyD](https://github.com/fillyD)! - 🐛 [FIX]: Adds missing `testID` to `Select` component
8
+
3
9
  ## 0.28.1
4
10
 
5
11
  ### Patch Changes
@@ -77,7 +77,7 @@ const Select = ({ options = [], value, onValueChange, label, labelVariant = 'bod
77
77
  selectedValue: value,
78
78
  onValueChange,
79
79
  close: closeBottomSheet,
80
- }, children: _jsxs(SafeAreaView, { edges: ['top'], style: { flex: 1 }, children: [menuHeading && (_jsx(View, { style: styles.headingContainer, children: _jsx(DetailText, { size: "lg", children: menuHeading }) })), searchable && (_jsx(View, { style: styles.searchContainer, children: _jsx(Input, { placeholder: searchPlaceholder, value: search, inBottomSheet: true, onChangeText: setSearch, type: "search", testID: testID ? `${testID}-search` : undefined }) })), children ? (_jsx(BottomSheetScrollView, { children: children })) : (_jsx(BottomSheetFlatList, { data: filteredOptions, keyExtractor: (option) => option.value, renderItem: renderSelectOption, ListEmptyComponent: renderEmptyComponent, ...listProps }))] }) }) })] }));
80
+ }, children: _jsxs(SafeAreaView, { edges: ['top'], style: { flex: 1 }, children: [menuHeading && (_jsx(View, { style: styles.headingContainer, children: _jsx(DetailText, { size: "lg", children: menuHeading }) })), searchable && (_jsx(View, { style: styles.searchContainer, children: _jsx(Input, { placeholder: searchPlaceholder, value: search, inBottomSheet: true, onChangeText: setSearch, type: "search", testID: testID ? `${testID}-search` : undefined }) })), children ? (_jsx(BottomSheetScrollView, { testID: testID ? `${testID}-options` : undefined, children: children })) : (_jsx(BottomSheetFlatList, { data: filteredOptions, keyExtractor: (option) => option.value, renderItem: renderSelectOption, ListEmptyComponent: renderEmptyComponent, testID: testID ? `${testID}-options` : undefined, ...listProps }))] }) }) })] }));
81
81
  };
82
82
  const styles = StyleSheet.create(theme => ({
83
83
  container: {
@@ -9,6 +9,12 @@ import { BackToTopButton, NextPrevPage } from './components';
9
9
  The changelog for the Hearth React Native library. Here you can find all the changes, improvements, and bug fixes for each version.
10
10
 
11
11
 
12
+ ## 0.28.1
13
+
14
+ ### Patch Changes
15
+
16
+ - [#1018](https://github.com/utilitywarehouse/hearth/pull/1018) [`1c5e02e`](https://github.com/utilitywarehouse/hearth/commit/1c5e02ea4b61329e7c55e52f9aa4ae44abc0da23) Thanks [@fillyD](https://github.com/fillyD)! - 🐛 [FIX]: Adds missing `testID` to `Select`, `SelectOption` and `VerificationInput` component
17
+
12
18
  ## 0.28.0
13
19
 
14
20
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utilitywarehouse/hearth-react-native",
3
- "version": "0.28.1",
3
+ "version": "0.28.2",
4
4
  "description": "Utility Warehouse React Native UI library",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -57,8 +57,8 @@
57
57
  "vite-plugin-svgr": "^4.5.0",
58
58
  "vitest": "^3.2.4",
59
59
  "@utilitywarehouse/hearth-fonts": "^0.0.4",
60
- "@utilitywarehouse/hearth-react-native-icons": "^0.8.0",
61
60
  "@utilitywarehouse/hearth-react-icons": "^0.8.0",
61
+ "@utilitywarehouse/hearth-react-native-icons": "^0.8.0",
62
62
  "@utilitywarehouse/hearth-svg-assets": "^0.5.0",
63
63
  "@utilitywarehouse/hearth-tokens": "^0.2.4"
64
64
  },
@@ -203,13 +203,16 @@ const Select = ({
203
203
  )}
204
204
 
205
205
  {children ? (
206
- <BottomSheetScrollView>{children}</BottomSheetScrollView>
206
+ <BottomSheetScrollView testID={testID ? `${testID}-options` : undefined}>
207
+ {children}
208
+ </BottomSheetScrollView>
207
209
  ) : (
208
210
  <BottomSheetFlatList
209
211
  data={filteredOptions}
210
212
  keyExtractor={(option: any) => option.value}
211
213
  renderItem={renderSelectOption}
212
214
  ListEmptyComponent={renderEmptyComponent}
215
+ testID={testID ? `${testID}-options` : undefined}
213
216
  {...listProps}
214
217
  />
215
218
  )}