@utilitywarehouse/hearth-react-native 0.33.0 → 0.33.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.
- package/.storybook/manager.ts +2 -2
- package/.storybook/preview.tsx +3 -3
- package/CHANGELOG.md +6 -0
- package/build/components/Accordion/AccordionItemRoot.js +2 -2
- package/build/components/Divider/Divider.js +3 -3
- package/build/tokens/components/dark/divider.d.ts +2 -1
- package/build/tokens/components/dark/divider.js +2 -1
- package/build/tokens/components/light/divider.d.ts +2 -1
- package/build/tokens/components/light/divider.js +2 -1
- package/docs/changelog.mdx +6 -0
- package/docs/components/AllComponents.web.tsx +1 -1
- package/docs/components/NextPrevPage.tsx +1 -1
- package/docs/components/index.ts +1 -1
- package/package.json +2 -1
- package/src/components/Accordion/AccordionItemRoot.tsx +2 -2
- package/src/components/Divider/Divider.tsx +3 -3
- package/src/tokens/components/dark/divider.ts +2 -1
- package/src/tokens/components/light/divider.ts +2 -1
package/.storybook/manager.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@utilitywarehouse/hearth-fonts';
|
|
2
2
|
import { addons } from 'storybook/manager-api';
|
|
3
|
-
import '
|
|
4
|
-
import { config } from '
|
|
3
|
+
import '@utilitywarehouse/hearth-storybook-utils/styles/manager.css';
|
|
4
|
+
import { config } from '@utilitywarehouse/hearth-storybook-utils';
|
|
5
5
|
import { create } from 'storybook/theming';
|
|
6
6
|
|
|
7
7
|
const theme = create(config);
|
package/.storybook/preview.tsx
CHANGED
|
@@ -4,11 +4,11 @@ import { color } from '@utilitywarehouse/hearth-tokens';
|
|
|
4
4
|
import '@utilitywarehouse/hearth-tokens/index.css';
|
|
5
5
|
import { useEffect } from 'react';
|
|
6
6
|
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
|
7
|
-
import '
|
|
8
|
-
import '
|
|
7
|
+
import '@utilitywarehouse/hearth-storybook-utils/styles/diff-highlighting.css';
|
|
8
|
+
import '@utilitywarehouse/hearth-storybook-utils/styles/preview.css';
|
|
9
9
|
import { breakpoints, StyleSheet, themes, UnistylesRuntime } from '../src/core';
|
|
10
10
|
import { initializePrism } from './prism-setup';
|
|
11
|
-
import { config } from '
|
|
11
|
+
import { config } from '@utilitywarehouse/hearth-storybook-utils';
|
|
12
12
|
import { create } from 'storybook/theming';
|
|
13
13
|
|
|
14
14
|
const theme = create(config);
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @utilitywarehouse/hearth-react-native
|
|
2
2
|
|
|
3
|
+
## 0.33.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1311](https://github.com/utilitywarehouse/hearth/pull/1311) [`3d286c9`](https://github.com/utilitywarehouse/hearth/commit/3d286c97710a1483a054e4b19c2453920cda4598) Thanks [@robphoenix](https://github.com/robphoenix)! - 🧹 [HOUSEKEEPING]: Update token usage for Divider
|
|
8
|
+
|
|
3
9
|
## 0.33.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -10,8 +10,8 @@ const AccordionItem = ({ children, style, noPadding, disabled, ...props }) => {
|
|
|
10
10
|
AccordionItem.displayName = 'AccordionItemRoot';
|
|
11
11
|
const styles = StyleSheet.create(theme => ({
|
|
12
12
|
item: {
|
|
13
|
-
borderBottomWidth: theme.components.divider.
|
|
14
|
-
borderBottomColor: theme.
|
|
13
|
+
borderBottomWidth: theme.components.divider.size,
|
|
14
|
+
borderBottomColor: theme.components.divider.color,
|
|
15
15
|
},
|
|
16
16
|
}));
|
|
17
17
|
export default AccordionItem;
|
|
@@ -14,16 +14,16 @@ const Divider = ({ orientation = 'horizontal', color, spacing, space, height, wi
|
|
|
14
14
|
Divider.displayName = 'Divider';
|
|
15
15
|
const styles = StyleSheet.create(theme => ({
|
|
16
16
|
divider: {
|
|
17
|
-
backgroundColor: theme.
|
|
17
|
+
backgroundColor: theme.components.divider.color,
|
|
18
18
|
variants: {
|
|
19
19
|
orientation: {
|
|
20
20
|
horizontal: {
|
|
21
21
|
width: '100%',
|
|
22
|
-
height: theme.components.divider.
|
|
22
|
+
height: theme.components.divider.size,
|
|
23
23
|
},
|
|
24
24
|
vertical: {
|
|
25
25
|
height: '100%',
|
|
26
|
-
width: theme.components.divider.
|
|
26
|
+
width: theme.components.divider.size,
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
29
|
spacing: {
|
package/docs/changelog.mdx
CHANGED
|
@@ -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.33.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#1311](https://github.com/utilitywarehouse/hearth/pull/1311) [`3d286c9`](https://github.com/utilitywarehouse/hearth/commit/3d286c97710a1483a054e4b19c2453920cda4598) Thanks [@robphoenix](https://github.com/robphoenix)! - 🧹 [HOUSEKEEPING]: Update token usage for Divider
|
|
17
|
+
|
|
12
18
|
## 0.33.0
|
|
13
19
|
|
|
14
20
|
### Minor Changes
|
|
@@ -22,7 +22,7 @@ import { color } from '@utilitywarehouse/hearth-tokens';
|
|
|
22
22
|
import { Pressable, ScrollView, View, ViewProps } from 'react-native';
|
|
23
23
|
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
|
24
24
|
import { StyleSheet } from 'react-native-unistyles';
|
|
25
|
-
import { navigateToStory } from '
|
|
25
|
+
import { navigateToStory } from '@utilitywarehouse/hearth-storybook-utils';
|
|
26
26
|
import {
|
|
27
27
|
Accordion,
|
|
28
28
|
AccordionItem,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChevronLeftSmallIcon } from '@utilitywarehouse/hearth-react-native-icons';
|
|
2
2
|
import { StyleSheet, View } from 'react-native';
|
|
3
|
-
import StorybookLink from '
|
|
3
|
+
import { StorybookLink } from '@utilitywarehouse/hearth-storybook-utils';
|
|
4
4
|
import { Card, CardPressHandler, Heading, Link } from '../../src';
|
|
5
5
|
|
|
6
6
|
type NextPrevPageProps = {
|
package/docs/components/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { StorybookLink } from '@utilitywarehouse/hearth-storybook-utils';
|
|
2
2
|
export { default as AdvancedInputExample } from './AdvancedInputExample';
|
|
3
3
|
export { default as BackToTopButton } from './BackToTopButton';
|
|
4
4
|
export { default as BadgeList } from './BadgeList';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utilitywarehouse/hearth-react-native",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.1",
|
|
4
4
|
"description": "Utility Warehouse React Native UI library",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"vite": "^7.1.3",
|
|
60
60
|
"vite-plugin-svgr": "^4.5.0",
|
|
61
61
|
"vitest": "^4.1.7",
|
|
62
|
+
"@utilitywarehouse/hearth-storybook-utils": "0.0.0",
|
|
62
63
|
"@utilitywarehouse/hearth-fonts": "^0.0.4",
|
|
63
64
|
"@utilitywarehouse/hearth-react-icons": "^0.8.2",
|
|
64
65
|
"@utilitywarehouse/hearth-react-native-icons": "^0.8.1",
|
|
@@ -19,8 +19,8 @@ AccordionItem.displayName = 'AccordionItemRoot';
|
|
|
19
19
|
|
|
20
20
|
const styles = StyleSheet.create(theme => ({
|
|
21
21
|
item: {
|
|
22
|
-
borderBottomWidth: theme.components.divider.
|
|
23
|
-
borderBottomColor: theme.
|
|
22
|
+
borderBottomWidth: theme.components.divider.size,
|
|
23
|
+
borderBottomColor: theme.components.divider.color,
|
|
24
24
|
},
|
|
25
25
|
}));
|
|
26
26
|
|
|
@@ -31,16 +31,16 @@ Divider.displayName = 'Divider';
|
|
|
31
31
|
|
|
32
32
|
const styles = StyleSheet.create(theme => ({
|
|
33
33
|
divider: {
|
|
34
|
-
backgroundColor: theme.
|
|
34
|
+
backgroundColor: theme.components.divider.color,
|
|
35
35
|
variants: {
|
|
36
36
|
orientation: {
|
|
37
37
|
horizontal: {
|
|
38
38
|
width: '100%',
|
|
39
|
-
height: theme.components.divider.
|
|
39
|
+
height: theme.components.divider.size,
|
|
40
40
|
},
|
|
41
41
|
vertical: {
|
|
42
42
|
height: '100%',
|
|
43
|
-
width: theme.components.divider.
|
|
43
|
+
width: theme.components.divider.size,
|
|
44
44
|
},
|
|
45
45
|
},
|
|
46
46
|
spacing: {
|