@utilitywarehouse/hearth-react-native 0.34.0 โ 0.34.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.
- package/CHANGELOG.md +18 -0
- package/build/components/BodyText/BodyText.js +4 -0
- package/build/components/BodyText/BodyText.props.d.ts +1 -1
- package/docs/changelog.mdx +18 -0
- package/package.json +6 -6
- package/src/components/BodyText/BodyText.docs.mdx +1 -1
- package/src/components/BodyText/BodyText.props.ts +1 -1
- package/src/components/BodyText/BodyText.stories.tsx +6 -1
- package/src/components/BodyText/BodyText.tsx +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @utilitywarehouse/hearth-react-native
|
|
2
2
|
|
|
3
|
+
## 0.34.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1349](https://github.com/utilitywarehouse/hearth/pull/1349) [`bed03da`](https://github.com/utilitywarehouse/hearth/commit/bed03da1252280145ca55bb50f4a9d3eb53440b2) Thanks [@robphoenix](https://github.com/robphoenix)! - ๐ [FEATURE]: `BodyText` `xl` size (20px / 28px line-height)
|
|
8
|
+
|
|
9
|
+
A new `xl` size is now available for the `BodyText` component, matching the
|
|
10
|
+
existing `xl` body text token (20px font size, 28px line height).
|
|
11
|
+
|
|
12
|
+
## 0.34.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#1341](https://github.com/utilitywarehouse/hearth/pull/1341) [`2165fd8`](https://github.com/utilitywarehouse/hearth/commit/2165fd820cc879fe169df878944b41e337a06c89) Thanks [@robphoenix](https://github.com/robphoenix)! - ๐งน [HOUSEKEEPING]: Make all packages public
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [[`2165fd8`](https://github.com/utilitywarehouse/hearth/commit/2165fd820cc879fe169df878944b41e337a06c89)]:
|
|
19
|
+
- @utilitywarehouse/hearth-react-native-icons@0.8.3
|
|
20
|
+
|
|
3
21
|
## 0.34.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -42,6 +42,10 @@ const styles = StyleSheet.create(theme => ({
|
|
|
42
42
|
fontStyle: 'normal',
|
|
43
43
|
variants: {
|
|
44
44
|
size: {
|
|
45
|
+
xl: {
|
|
46
|
+
fontSize: theme.typography.mobile.bodyText.xl.fontSize,
|
|
47
|
+
lineHeight: theme.typography.mobile.bodyText.xl.lineHeight,
|
|
48
|
+
},
|
|
45
49
|
lg: {
|
|
46
50
|
fontSize: theme.typography.mobile.bodyText.lg.fontSize,
|
|
47
51
|
lineHeight: theme.typography.mobile.bodyText.lg.lineHeight,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CommonTextProps } from '../../types';
|
|
2
2
|
interface BodyTextProps extends CommonTextProps {
|
|
3
3
|
/** Text size variant. */
|
|
4
|
-
size?: 'sm' | 'md' | 'lg';
|
|
4
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
5
5
|
/** Font weight variant. */
|
|
6
6
|
weight?: 'regular' | 'semibold' | 'bold';
|
|
7
7
|
}
|
package/docs/changelog.mdx
CHANGED
|
@@ -9,6 +9,24 @@ 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.34.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#1349](https://github.com/utilitywarehouse/hearth/pull/1349) [`bed03da`](https://github.com/utilitywarehouse/hearth/commit/bed03da1252280145ca55bb50f4a9d3eb53440b2) Thanks [@robphoenix](https://github.com/robphoenix)! - ๐ [FEATURE]: `BodyText` `xl` size (20px / 28px line-height)
|
|
17
|
+
|
|
18
|
+
A new `xl` size is now available for the `BodyText` component, matching the
|
|
19
|
+
existing `xl` body text token (20px font size, 28px line height).
|
|
20
|
+
|
|
21
|
+
## 0.34.1
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- [#1341](https://github.com/utilitywarehouse/hearth/pull/1341) [`2165fd8`](https://github.com/utilitywarehouse/hearth/commit/2165fd820cc879fe169df878944b41e337a06c89) Thanks [@robphoenix](https://github.com/robphoenix)! - ๐งน [HOUSEKEEPING]: Make all packages public
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [[`2165fd8`](https://github.com/utilitywarehouse/hearth/commit/2165fd820cc879fe169df878944b41e337a06c89)]:
|
|
28
|
+
- @utilitywarehouse/hearth-react-native-icons@0.8.3
|
|
29
|
+
|
|
12
30
|
## 0.34.0
|
|
13
31
|
|
|
14
32
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utilitywarehouse/hearth-react-native",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.2",
|
|
4
4
|
"description": "Utility Warehouse React Native UI library",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -60,11 +60,11 @@
|
|
|
60
60
|
"vite-plugin-svgr": "^4.5.0",
|
|
61
61
|
"vitest": "^4.1.7",
|
|
62
62
|
"@utilitywarehouse/hearth-storybook-utils": "0.0.0",
|
|
63
|
-
"@utilitywarehouse/hearth-
|
|
64
|
-
"@utilitywarehouse/hearth-
|
|
65
|
-
"@utilitywarehouse/hearth-
|
|
66
|
-
"@utilitywarehouse/hearth-
|
|
67
|
-
"@utilitywarehouse/hearth-tokens": "^0.4.
|
|
63
|
+
"@utilitywarehouse/hearth-react-native-icons": "^0.8.3",
|
|
64
|
+
"@utilitywarehouse/hearth-fonts": "^0.1.1",
|
|
65
|
+
"@utilitywarehouse/hearth-svg-assets": "^0.6.3",
|
|
66
|
+
"@utilitywarehouse/hearth-react-icons": "^0.8.4",
|
|
67
|
+
"@utilitywarehouse/hearth-tokens": "^0.4.1"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"@gorhom/bottom-sheet": ">=5.0.0",
|
|
@@ -52,7 +52,7 @@ const MyComponent = () => (
|
|
|
52
52
|
|
|
53
53
|
| Property | Type | Description | Default |
|
|
54
54
|
| --------------------- | --------------------------------------------------------------------- | ----------------------------------- | ------------ |
|
|
55
|
-
| `size` | `'sm' \| 'md' \| 'lg'`
|
|
55
|
+
| `size` | `'sm' \| 'md' \| 'lg' \| 'xl'` | The size of the text. | `'md'` |
|
|
56
56
|
| `strikeThrough` | `boolean` | Strike through the text. | `false` |
|
|
57
57
|
| `truncated` | `boolean` | Truncate the text with an ellipsis. | `false` |
|
|
58
58
|
| `underline` | `boolean` | Underline the text. | `false` |
|
|
@@ -2,7 +2,7 @@ import type { CommonTextProps } from '../../types';
|
|
|
2
2
|
|
|
3
3
|
interface BodyTextProps extends CommonTextProps {
|
|
4
4
|
/** Text size variant. */
|
|
5
|
-
size?: 'sm' | 'md' | 'lg';
|
|
5
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
6
6
|
/** Font weight variant. */
|
|
7
7
|
weight?: 'regular' | 'semibold' | 'bold';
|
|
8
8
|
}
|
|
@@ -16,7 +16,7 @@ const meta = {
|
|
|
16
16
|
// More on argTypes: https://storybook.js.org/docs/api/argtypes
|
|
17
17
|
argTypes: {
|
|
18
18
|
size: {
|
|
19
|
-
options: ['sm', 'md', 'lg'],
|
|
19
|
+
options: ['sm', 'md', 'lg', 'xl'],
|
|
20
20
|
control: 'select',
|
|
21
21
|
description: 'The size of the text.',
|
|
22
22
|
},
|
|
@@ -123,6 +123,11 @@ export const KitchenSink: Story = {
|
|
|
123
123
|
Hello there, I'm some body text!
|
|
124
124
|
</BodyText>
|
|
125
125
|
</VariantTitle>
|
|
126
|
+
<VariantTitle title="XL">
|
|
127
|
+
<BodyText {...args} size="xl">
|
|
128
|
+
Hello there, I'm some body text!
|
|
129
|
+
</BodyText>
|
|
130
|
+
</VariantTitle>
|
|
126
131
|
</Box>
|
|
127
132
|
),
|
|
128
133
|
};
|
|
@@ -75,6 +75,10 @@ const styles = StyleSheet.create(theme => ({
|
|
|
75
75
|
fontStyle: 'normal',
|
|
76
76
|
variants: {
|
|
77
77
|
size: {
|
|
78
|
+
xl: {
|
|
79
|
+
fontSize: theme.typography.mobile.bodyText.xl.fontSize,
|
|
80
|
+
lineHeight: theme.typography.mobile.bodyText.xl.lineHeight,
|
|
81
|
+
},
|
|
78
82
|
lg: {
|
|
79
83
|
fontSize: theme.typography.mobile.bodyText.lg.fontSize,
|
|
80
84
|
lineHeight: theme.typography.mobile.bodyText.lg.lineHeight,
|