@utilitywarehouse/hearth-react-native 0.14.0 → 0.14.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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @utilitywarehouse/hearth-react-native@0.14.0 build /home/runner/work/hearth/hearth/packages/react-native
2
+ > @utilitywarehouse/hearth-react-native@0.14.1 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.14.0 lint /home/runner/work/hearth/hearth/packages/react-native
2
+ > @utilitywarehouse/hearth-react-native@0.14.1 lint /home/runner/work/hearth/hearth/packages/react-native
3
3
  > TIMING=1 eslint --max-warnings 0
4
4
 
5
5
  Rule | Time (ms) | Relative
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @utilitywarehouse/hearth-react-native
2
2
 
3
+ ## 0.14.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#749](https://github.com/utilitywarehouse/hearth/pull/749) [`ded4b2e`](https://github.com/utilitywarehouse/hearth/commit/ded4b2e3dcad9c1cc4860a13120e44a43e5f0dde) Thanks [@jordmccord](https://github.com/jordmccord)! - Fixes `CardAction` padding
8
+
3
9
  ## 0.14.0
4
10
 
5
11
  ### Minor Changes
@@ -120,9 +120,9 @@ const styles = StyleSheet.create(theme => ({
120
120
  withIconContainer: {
121
121
  alignItems: 'center',
122
122
  flexDirection: 'row',
123
- paddingVertical: theme.components.list.item.functional.padding,
124
- paddingHorizontal: theme.components.list.item.functional.padding,
125
- gap: theme.components.list.item.gap,
123
+ paddingVertical: theme.components.cardAction.content.paddingVertical,
124
+ paddingHorizontal: theme.components.cardAction.content.paddingHorizontal,
125
+ gap: theme.components.cardAction.content.gap,
126
126
  flex: 1,
127
127
  variants: {
128
128
  hasIconContainer: {
@@ -212,6 +212,16 @@ StyleSheet.configure({
212
212
  breakpoints,
213
213
  });
214
214
 
215
+ // For some reason react-native-reanimated's default mock doesn't mock useReducedMotion, so we need to override it here
216
+ // as we use that method in our components.
217
+ jest.mock('react-native-reanimated', () => {
218
+ return {
219
+ ...jest.requireActual('react-native-reanimated/mock'),
220
+ useReducedMotion: () => {}, // Add this line
221
+ };
222
+ });
223
+ require('react-native-reanimated').setUpTests();
224
+
215
225
  // rest of your setup...
216
226
  ```
217
227
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utilitywarehouse/hearth-react-native",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "Utility Warehouse React Native UI library",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -58,7 +58,7 @@
58
58
  "@utilitywarehouse/hearth-fonts": "^0.0.4",
59
59
  "@utilitywarehouse/hearth-react-icons": "^0.7.4",
60
60
  "@utilitywarehouse/hearth-react-native-icons": "^0.7.4",
61
- "@utilitywarehouse/hearth-svg-assets": "^0.2.0",
61
+ "@utilitywarehouse/hearth-svg-assets": "^0.3.0",
62
62
  "@utilitywarehouse/hearth-tokens": "^0.2.2"
63
63
  },
64
64
  "peerDependencies": {
@@ -222,9 +222,9 @@ const styles = StyleSheet.create(theme => ({
222
222
  withIconContainer: {
223
223
  alignItems: 'center',
224
224
  flexDirection: 'row',
225
- paddingVertical: theme.components.list.item.functional.padding,
226
- paddingHorizontal: theme.components.list.item.functional.padding,
227
- gap: theme.components.list.item.gap,
225
+ paddingVertical: theme.components.cardAction.content.paddingVertical,
226
+ paddingHorizontal: theme.components.cardAction.content.paddingHorizontal,
227
+ gap: theme.components.cardAction.content.gap,
228
228
  flex: 1,
229
229
  variants: {
230
230
  hasIconContainer: {