@utilitywarehouse/hearth-react-native 0.28.0-testid-fix-1 → 0.28.1-testid-fix-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,5 +1,5 @@
1
1
 
2
2
  
3
- > @utilitywarehouse/hearth-react-native@0.28.0-testid-fix-1 build /Users/filmondaniels/Projects/Work/hearth/packages/react-native
3
+ > @utilitywarehouse/hearth-react-native@0.28.1-testid-fix-1 build /Users/filmondaniels/Projects/Work/hearth/packages/react-native
4
4
  > tsc
5
5
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @utilitywarehouse/hearth-react-native
2
2
 
3
+ ## 0.28.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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
8
+
3
9
  ## 0.28.0
4
10
 
5
11
  ### Minor 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: {
@@ -12,8 +12,8 @@ This page showcases all the components available in the Hearth React Native libr
12
12
  <AllComponents />
13
13
 
14
14
  <NextPrevPage
15
- prevLink="/?path=/docs/layout-components--docs"
15
+ prevLink="layout-components"
16
16
  prevTitle="Layout Components"
17
- nextLink="/?path=/docs/components-accordion--docs"
17
+ nextLink="components-accordion"
18
18
  nextTitle="Accordion"
19
19
  />
@@ -1,5 +1,5 @@
1
1
  import { Meta } from '@storybook/addon-docs/blocks';
2
- import { BackToTopButton } from './components';
2
+ import { BackToTopButton, NextPrevPage } from './components';
3
3
 
4
4
  <Meta title="Changelog" />
5
5
  <BackToTopButton />
@@ -9,6 +9,176 @@ import { BackToTopButton } 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
+
18
+ ## 0.28.0
19
+
20
+ ### Minor Changes
21
+
22
+ - [#1014](https://github.com/utilitywarehouse/hearth/pull/1014) [`c10ff82`](https://github.com/utilitywarehouse/hearth/commit/c10ff82243265217acd95f687d48d803b3c7a4bd) Thanks [@jordmccord](https://github.com/jordmccord)! - 🌟 [FEATURE]: Add `Combobox` and `SafeAreaView` to the React Native library
23
+
24
+ The React Native package now includes a `Combobox` component for searchable selection in a bottom sheet, plus a `SafeAreaView` primitive that applies Unistyles runtime insets only when a view actually overlaps a screen edge. `Combobox` supports the built-in options API for fixed lists, controlled search values for dynamic results, and custom bottom sheet content for cases where you need to bring your own `BottomSheetFlatList` or bespoke option layout. `Modal` now uses `SafeAreaView` in its full-screen navigation modal path so content like search inputs no longer sits behind the dynamic island on iOS.
25
+
26
+ **Components affected**:
27
+ - `Combobox`
28
+ - `ComboboxOption`
29
+ - `SafeAreaView`
30
+ - `Modal`
31
+
32
+ **Developer changes**:
33
+
34
+ Import the new components from `@utilitywarehouse/hearth-react-native` and choose the API that fits your layout. Use `options` for straightforward searchable lists, render custom sheet content when you need virtualised or dynamic results, and wrap full-screen content in `SafeAreaView` when it should only pick up edge insets if it actually touches that edge.
35
+
36
+ - [`8e37595`](https://github.com/utilitywarehouse/hearth/commit/8e375958559357ce5c1703505fa7438887d9e18e) Thanks [@jordmccord](https://github.com/jordmccord)! - 🌟 [FEATURE]: Add `Pagination` component
37
+
38
+ The package now includes a `Pagination` component for moving between pages of content. It supports numbered pagination, a condensed layout for smaller spaces, optional skip buttons for jumping to the first and last page, and controlled page state so it can be wired into lists, tables, or other paged views.
39
+
40
+ **Components affected**:
41
+ - `Pagination`
42
+
43
+ **Developer changes**:
44
+
45
+ Import `Pagination` from `@utilitywarehouse/hearth-react-native` and control the current page in your screen or feature state.
46
+
47
+ ```tsx
48
+ import { useState } from 'react';
49
+ import { Pagination } from '@utilitywarehouse/hearth-react-native';
50
+
51
+ const MyComponent = () => {
52
+ const [page, setPage] = useState(1);
53
+
54
+ return <Pagination currentPage={page} onPageChange={setPage} totalPages={10} />;
55
+ };
56
+ ```
57
+
58
+ - [`8e37595`](https://github.com/utilitywarehouse/hearth/commit/8e375958559357ce5c1703505fa7438887d9e18e) Thanks [@jordmccord](https://github.com/jordmccord)! - 🌟 [FEATURE]: Add `Table` component
59
+
60
+ The package now includes a composable `Table` API for presenting structured data with headers, rows, cells, optional card-style containers, horizontal scrolling for narrow viewports, configurable column widths, and pagination support through `TablePagination`. Header cells support trailing actions such as sort controls, and the API is split into smaller building blocks so layouts can be assembled to fit different datasets.
61
+
62
+ **Components affected**:
63
+ - `Table`
64
+ - `TableHeader`
65
+ - `TableHeaderCell`
66
+ - `TableBody`
67
+ - `TableRow`
68
+ - `TableCell`
69
+ - `TablePagination`
70
+
71
+ **Developer changes**:
72
+
73
+ Import the table primitives from `@utilitywarehouse/hearth-react-native` and compose them to match your data shape. Add `columnWidths` when you need fixed or weighted columns, and pass `pagination` when rows should be paged.
74
+
75
+ ```tsx
76
+ import {
77
+ Table,
78
+ TableBody,
79
+ TableCell,
80
+ TableHeader,
81
+ TableHeaderCell,
82
+ TableRow,
83
+ } from '@utilitywarehouse/hearth-react-native';
84
+
85
+ const MyComponent = () => (
86
+ <Table columnWidths={[180, '2fr', '1fr']} container="subtle">
87
+ <TableHeader color="purple">
88
+ <TableHeaderCell>Name</TableHeaderCell>
89
+ <TableHeaderCell>Email</TableHeaderCell>
90
+ <TableHeaderCell>Status</TableHeaderCell>
91
+ </TableHeader>
92
+ <TableBody>
93
+ <TableRow>
94
+ <TableHeaderCell row>Alex Morgan</TableHeaderCell>
95
+ <TableCell>alex@example.com</TableCell>
96
+ <TableCell>Active</TableCell>
97
+ </TableRow>
98
+ </TableBody>
99
+ </Table>
100
+ );
101
+ ```
102
+
103
+ - [#1016](https://github.com/utilitywarehouse/hearth/pull/1016) [`33baa9e`](https://github.com/utilitywarehouse/hearth/commit/33baa9e8edb091bbd1d17c9a3838352a7f1b87ea) Thanks [@jordmccord](https://github.com/jordmccord)! - 🌟 [FEATURE]: Adds `Timeline` and `TimelineItem`
104
+
105
+ The package now includes `Timeline` and `TimelineItem` components for showing a sequence of static stops or progress steps. The new API supports labelled items, optional helper text, progress states for complete or active steps, and custom content within an item when you need to show extra context or actions.
106
+
107
+ **Components affected**:
108
+ - `Timeline`
109
+ - `TimelineItem`
110
+
111
+ **Developer changes**:
112
+
113
+ Import `Timeline` and `TimelineItem` from `@utilitywarehouse/hearth-react-native`. Use `variant="static"` for simple ordered events, or `variant="progress"` with item `state` values to communicate step progress.
114
+
115
+ ```tsx
116
+ import { Timeline, TimelineItem } from '@utilitywarehouse/hearth-react-native';
117
+
118
+ const MyComponent = () => (
119
+ <Timeline variant="progress">
120
+ <TimelineItem label="Ordered" helperText="We have received your order" state="complete" />
121
+ <TimelineItem label="Packed" helperText="Your items are ready" state="complete" />
122
+ <TimelineItem label="Out for delivery" helperText="Arriving today" state="active" />
123
+ <TimelineItem label="Delivered" helperText="Pending" state="incomplete" />
124
+ </Timeline>
125
+ );
126
+ ```
127
+
128
+ ## 0.27.3
129
+
130
+ ### Patch Changes
131
+
132
+ - [#1006](https://github.com/utilitywarehouse/hearth/pull/1006) [`1996112`](https://github.com/utilitywarehouse/hearth/commit/1996112864146e86972ef6b9b07a8be5a72b552f) Thanks [@jordmccord](https://github.com/jordmccord)! - 🐛 [FIX]: Make `paddingNone` remove horizontal padding for ghost buttons in `md` size
133
+
134
+ Fixed an issue where setting `paddingNone` on a ghost button did not remove horizontal padding when using `md` size. The prop now removes horizontal padding for both `sm` and `md` ghost buttons.
135
+
136
+ **Components affected**:
137
+ - `Button`
138
+
139
+ **Developer changes**:
140
+
141
+ No changes required.
142
+
143
+ - [#1012](https://github.com/utilitywarehouse/hearth/pull/1012) [`4fda116`](https://github.com/utilitywarehouse/hearth/commit/4fda116c2a1bec383df7e630180ab57166ab9da4) Thanks [@jordmccord](https://github.com/jordmccord)! - 🐛 [FIX]: Prevent outlines from being clipped for scrollable children in `Modal`
144
+
145
+ Fixed an issue in in-nav modals where child components with outlines could be visually clipped at the horizontal edges when content was scrollable.
146
+
147
+ **Components affected**:
148
+ - `Modal`
149
+
150
+ **Developer changes**:
151
+
152
+ No changes required.
153
+
154
+ - [#1012](https://github.com/utilitywarehouse/hearth/pull/1012) [`4fda116`](https://github.com/utilitywarehouse/hearth/commit/4fda116c2a1bec383df7e630180ab57166ab9da4) Thanks [@jordmccord](https://github.com/jordmccord)! - 💅 [ENHANCEMENT]: Update horizontal padding values for scrollable in-nav `Modal` content
155
+
156
+ Adjusted horizontal padding behaviour in scrollable in-nav modals to preserve child outlines while keeping visual spacing consistent.
157
+
158
+ **Components affected**:
159
+ - `Modal`
160
+
161
+ **Developer changes**:
162
+
163
+ No changes required.
164
+
165
+ - [#1009](https://github.com/utilitywarehouse/hearth/pull/1009) [`3d65ef2`](https://github.com/utilitywarehouse/hearth/commit/3d65ef2f8f7701b128a9c679f1910cd3d0f5c0c3) Thanks [@fillyD](https://github.com/fillyD)! - 🐛 [FIX]: testID for `List` component
166
+
167
+ ## 0.27.2
168
+
169
+ ### Patch Changes
170
+
171
+ - [#1003](https://github.com/utilitywarehouse/hearth/pull/1003) [`cdb95ea`](https://github.com/utilitywarehouse/hearth/commit/cdb95eabb279adaf348487ae3fb4a20e600e039e) Thanks [@jordmccord](https://github.com/jordmccord)! - 🐛 [FIX]: Correct `VerificationInput` focus progression after editing an empty slot
172
+
173
+ Fixed an issue where entering a value after selecting an empty verification slot could move focus to the wrong slot. Focus now moves to the slot immediately after the one that was actually updated.
174
+
175
+ **Components affected**:
176
+ - `VerificationInput`
177
+
178
+ **Developer changes**:
179
+
180
+ No changes required.
181
+
12
182
  ## 0.27.1
13
183
 
14
184
  ### Patch Changes
@@ -1255,3 +1425,10 @@ The changelog for the Hearth React Native library. Here you can find all the cha
1255
1425
 
1256
1426
  - [`f6366c4`](https://github.com/utilitywarehouse/hearth/commit/f6366c4da2676c535dca90be570d6e6bae5a0349) Thanks [@jordmccord](https://github.com/jordmccord)! - Initial Release 🎉
1257
1427
 
1428
+
1429
+ <NextPrevPage
1430
+ prevLink="getting-started"
1431
+ prevTitle="Getting Started"
1432
+ nextLink="styling"
1433
+ nextTitle="Styling"
1434
+ />