@utilitywarehouse/hearth-react-native 0.30.2 → 0.30.3

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.30.2 build /home/runner/work/hearth/hearth/packages/react-native
2
+ > @utilitywarehouse/hearth-react-native@0.30.3 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.30.2 lint /home/runner/work/hearth/hearth/packages/react-native
2
+ > @utilitywarehouse/hearth-react-native@0.30.3 lint /home/runner/work/hearth/hearth/packages/react-native
3
3
  > TIMING=1 eslint .
4
4
 
5
5
 
@@ -53,13 +53,13 @@
53
53
 
54
54
  Rule | Time (ms) | Relative
55
55
  :-------------------------------------------------|----------:|--------:
56
- @typescript-eslint/no-unused-vars | 1495.988 | 61.0%
57
- react-hooks/exhaustive-deps | 86.813 | 3.5%
58
- no-global-assign | 85.050 | 3.5%
59
- react-hooks/rules-of-hooks | 60.522 | 2.5%
60
- @typescript-eslint/ban-ts-comment | 49.138 | 2.0%
61
- no-unexpected-multiline | 46.592 | 1.9%
62
- no-useless-escape | 39.187 | 1.6%
63
- no-misleading-character-class | 35.552 | 1.5%
64
- @typescript-eslint/no-unused-expressions | 33.343 | 1.4%
65
- @typescript-eslint/no-unnecessary-type-constraint | 31.189 | 1.3%
56
+ @typescript-eslint/no-unused-vars | 1593.466 | 60.1%
57
+ react-hooks/rules-of-hooks | 130.000 | 4.9%
58
+ react-hooks/exhaustive-deps | 126.596 | 4.8%
59
+ no-global-assign | 112.238 | 4.2%
60
+ no-unexpected-multiline | 53.984 | 2.0%
61
+ @typescript-eslint/ban-ts-comment | 41.634 | 1.6%
62
+ no-useless-escape | 37.152 | 1.4%
63
+ no-loss-of-precision | 36.053 | 1.4%
64
+ no-misleading-character-class | 33.418 | 1.3%
65
+ @typescript-eslint/no-unnecessary-type-constraint | 30.353 | 1.1%
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @utilitywarehouse/hearth-react-native
2
2
 
3
+ ## 0.30.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1094](https://github.com/utilitywarehouse/hearth/pull/1094) [`a9d8e66`](https://github.com/utilitywarehouse/hearth/commit/a9d8e660b7efa23c7a573af2658fc10ab6c043b9) Thanks [@jordmccord](https://github.com/jordmccord)! - 🐛 [FIX]: Make horizontal pressable `Banner` content flex correctly on native and web.
8
+
9
+ This fixes horizontal pressable `Banner` layouts where the content area did not expand consistently, which could misplace the chevron and action content.
10
+
11
+ **Components affected**:
12
+ - `Banner`
13
+
14
+ **Developer changes**:
15
+
16
+ No changes are required.
17
+
3
18
  ## 0.30.2
4
19
 
5
20
  ### Patch Changes
@@ -135,9 +135,7 @@ const styles = StyleSheet.create(theme => ({
135
135
  variants: {
136
136
  direction: {
137
137
  horizontal: {
138
- _web: {
139
- flex: 1,
140
- },
138
+ flex: 1,
141
139
  },
142
140
  vertical: {},
143
141
  },
@@ -9,6 +9,21 @@ 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.30.2
13
+
14
+ ### Patch Changes
15
+
16
+ - [#1090](https://github.com/utilitywarehouse/hearth/pull/1090) [`1420244`](https://github.com/utilitywarehouse/hearth/commit/1420244fbc23c8a755f9249f8b39cb094a865cea) Thanks [@jordmccord](https://github.com/jordmccord)! - 🌟 [FEATURE]: Add `alignChevron` to `Banner` for horizontal pressable layouts.
17
+
18
+ `Banner` now supports an `alignChevron` prop to control the chevron alignment when `onPress` is used in the horizontal layout. Use `'start'`, `'center'`, or `'end'` to match the chevron position to the content layout.
19
+
20
+ **Components affected**:
21
+ - `Banner`
22
+
23
+ **Developer changes**:
24
+
25
+ No changes are required unless you want to override the default centred chevron alignment.
26
+
12
27
  ## 0.30.1
13
28
 
14
29
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utilitywarehouse/hearth-react-native",
3
- "version": "0.30.2",
3
+ "version": "0.30.3",
4
4
  "description": "Utility Warehouse React Native UI library",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -58,10 +58,10 @@
58
58
  "vite-plugin-svgr": "^4.5.0",
59
59
  "vitest": "^3.2.4",
60
60
  "@utilitywarehouse/hearth-fonts": "^0.0.4",
61
- "@utilitywarehouse/hearth-react-icons": "^0.8.0",
62
61
  "@utilitywarehouse/hearth-react-native-icons": "^0.8.0",
62
+ "@utilitywarehouse/hearth-tokens": "^0.2.4",
63
63
  "@utilitywarehouse/hearth-svg-assets": "^0.6.0",
64
- "@utilitywarehouse/hearth-tokens": "^0.2.4"
64
+ "@utilitywarehouse/hearth-react-icons": "^0.8.0"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "@gorhom/bottom-sheet": ">=5.0.0",
@@ -279,6 +279,26 @@ export const Pressable: Story = {
279
279
  return (
280
280
  <View style={{ width: 400 }}>
281
281
  <Flex spacing="lg" direction="column">
282
+ <Banner
283
+ variant="emphasis"
284
+ colorScheme="neutralStrong"
285
+ testID="next-best-action-card"
286
+ onPress={() => console.log('Banner pressed')}
287
+ heading="Add your appointment outcome"
288
+ description="Save the outcome of Don Instantino (Traditional Thai Cuisine)'s appointment"
289
+ alignChevron="start"
290
+ button={
291
+ <Button
292
+ variant="outline"
293
+ colorScheme="functional"
294
+ size="sm"
295
+ onPress={() => console.log('View to-do list pressed')}
296
+ testID="view-to-do-list"
297
+ >
298
+ View to-do list
299
+ </Button>
300
+ }
301
+ />
282
302
  <Banner
283
303
  icon={ElectricityMediumIcon}
284
304
  iconContainerColor="energy"
@@ -244,9 +244,7 @@ const styles = StyleSheet.create(theme => ({
244
244
  variants: {
245
245
  direction: {
246
246
  horizontal: {
247
- _web: {
248
- flex: 1,
249
- },
247
+ flex: 1,
250
248
  },
251
249
  vertical: {},
252
250
  },