@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.
@@ -1,7 +1,7 @@
1
1
  import '@utilitywarehouse/hearth-fonts';
2
2
  import { addons } from 'storybook/manager-api';
3
- import '../../../shared/storybook/styles/manager.css';
4
- import { config } from '../../../shared/storybook/theme';
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);
@@ -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 '../../../shared/storybook/styles/diff-highlighting.css';
8
- import '../../../shared/storybook/styles/preview.css';
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 '../../../shared/storybook/theme';
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.borderWidth,
14
- borderBottomColor: theme.color.border.subtle,
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.color.border.subtle,
17
+ backgroundColor: theme.components.divider.color,
18
18
  variants: {
19
19
  orientation: {
20
20
  horizontal: {
21
21
  width: '100%',
22
- height: theme.components.divider.borderWidth,
22
+ height: theme.components.divider.size,
23
23
  },
24
24
  vertical: {
25
25
  height: '100%',
26
- width: theme.components.divider.borderWidth,
26
+ width: theme.components.divider.size,
27
27
  },
28
28
  },
29
29
  spacing: {
@@ -2,7 +2,8 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
  declare const _default: {
5
- readonly borderWidth: 1;
5
+ readonly color: "#5b5b5b";
6
+ readonly size: 1;
6
7
  readonly divider: {
7
8
  readonly borderWidth: 2;
8
9
  };
@@ -2,7 +2,8 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
  export default {
5
- borderWidth: 1,
5
+ color: '#5b5b5b',
6
+ size: 1,
6
7
  divider: {
7
8
  borderWidth: 2,
8
9
  },
@@ -2,7 +2,8 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
  declare const _default: {
5
- readonly borderWidth: 1;
5
+ readonly color: "#d4d2c0";
6
+ readonly size: 1;
6
7
  readonly divider: {
7
8
  readonly borderWidth: 2;
8
9
  };
@@ -2,7 +2,8 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
  export default {
5
- borderWidth: 1,
5
+ color: '#d4d2c0',
6
+ size: 1,
6
7
  divider: {
7
8
  borderWidth: 2,
8
9
  },
@@ -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 '../../../../shared/storybook/storybookLinks';
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 '../../../../shared/storybook/StorybookLink';
3
+ import { StorybookLink } from '@utilitywarehouse/hearth-storybook-utils';
4
4
  import { Card, CardPressHandler, Heading, Link } from '../../src';
5
5
 
6
6
  type NextPrevPageProps = {
@@ -1,4 +1,4 @@
1
- export { default as StorybookLink } from '../../../../shared/storybook/StorybookLink';
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.0",
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.borderWidth,
23
- borderBottomColor: theme.color.border.subtle,
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.color.border.subtle,
34
+ backgroundColor: theme.components.divider.color,
35
35
  variants: {
36
36
  orientation: {
37
37
  horizontal: {
38
38
  width: '100%',
39
- height: theme.components.divider.borderWidth,
39
+ height: theme.components.divider.size,
40
40
  },
41
41
  vertical: {
42
42
  height: '100%',
43
- width: theme.components.divider.borderWidth,
43
+ width: theme.components.divider.size,
44
44
  },
45
45
  },
46
46
  spacing: {
@@ -3,7 +3,8 @@
3
3
  */
4
4
 
5
5
  export default {
6
- borderWidth: 1,
6
+ color: '#5b5b5b',
7
+ size: 1,
7
8
  divider: {
8
9
  borderWidth: 2,
9
10
  },
@@ -3,7 +3,8 @@
3
3
  */
4
4
 
5
5
  export default {
6
- borderWidth: 1,
6
+ color: '#d4d2c0',
7
+ size: 1,
7
8
  divider: {
8
9
  borderWidth: 2,
9
10
  },