@utilitywarehouse/hearth-react-native 0.32.4 → 0.33.0
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/main.ts +0 -10
- package/.storybook/vitest.setup.ts +0 -8
- package/CHANGELOG.md +16 -0
- package/build/components/Accordion/Accordion.d.ts +1 -1
- package/build/components/Tabs/TabsList.js +1 -1
- package/build/core/themes.d.ts +4 -4
- package/build/tokens/color.d.ts +2 -2
- package/build/tokens/color.js +1 -1
- package/build/tokens/components/dark/alert.d.ts +0 -1
- package/build/tokens/components/dark/alert.js +0 -1
- package/build/tokens/components/dark/bottom-navigation.d.ts +1 -1
- package/build/tokens/components/dark/bottom-navigation.js +1 -1
- package/build/tokens/components/dark/card-accordion.d.ts +13 -0
- package/build/tokens/components/dark/card-accordion.js +12 -0
- package/build/tokens/components/dark/card.d.ts +3 -0
- package/build/tokens/components/dark/card.js +3 -0
- package/build/tokens/components/dark/checkbox.d.ts +1 -1
- package/build/tokens/components/dark/checkbox.js +1 -1
- package/build/tokens/components/dark/divider.d.ts +0 -1
- package/build/tokens/components/dark/divider.js +0 -1
- package/build/tokens/components/dark/index.d.ts +1 -0
- package/build/tokens/components/dark/index.js +1 -0
- package/build/tokens/components/dark/list.d.ts +3 -0
- package/build/tokens/components/dark/list.js +3 -0
- package/build/tokens/components/dark/navigation.d.ts +42 -1
- package/build/tokens/components/dark/navigation.js +42 -1
- package/build/tokens/components/dark/pagination.d.ts +1 -0
- package/build/tokens/components/dark/pagination.js +1 -0
- package/build/tokens/components/dark/segmented-control.d.ts +1 -1
- package/build/tokens/components/dark/segmented-control.js +1 -1
- package/build/tokens/components/dark/tabs.d.ts +0 -1
- package/build/tokens/components/dark/tabs.js +0 -1
- package/build/tokens/components/dark/tooltip.d.ts +1 -0
- package/build/tokens/components/dark/tooltip.js +1 -0
- package/build/tokens/components/light/alert.d.ts +0 -1
- package/build/tokens/components/light/alert.js +0 -1
- package/build/tokens/components/light/bottom-navigation.d.ts +1 -1
- package/build/tokens/components/light/bottom-navigation.js +1 -1
- package/build/tokens/components/light/card-accordion.d.ts +13 -0
- package/build/tokens/components/light/card-accordion.js +12 -0
- package/build/tokens/components/light/card.d.ts +3 -0
- package/build/tokens/components/light/card.js +3 -0
- package/build/tokens/components/light/checkbox.d.ts +1 -1
- package/build/tokens/components/light/checkbox.js +1 -1
- package/build/tokens/components/light/divider.d.ts +0 -1
- package/build/tokens/components/light/divider.js +0 -1
- package/build/tokens/components/light/index.d.ts +1 -0
- package/build/tokens/components/light/index.js +1 -0
- package/build/tokens/components/light/list.d.ts +3 -0
- package/build/tokens/components/light/list.js +3 -0
- package/build/tokens/components/light/navigation.d.ts +42 -1
- package/build/tokens/components/light/navigation.js +42 -1
- package/build/tokens/components/light/pagination.d.ts +1 -0
- package/build/tokens/components/light/pagination.js +1 -0
- package/build/tokens/components/light/segmented-control.d.ts +1 -1
- package/build/tokens/components/light/segmented-control.js +1 -1
- package/build/tokens/components/light/tabs.d.ts +0 -1
- package/build/tokens/components/light/tabs.js +0 -1
- package/build/tokens/components/light/tooltip.d.ts +1 -0
- package/build/tokens/components/light/tooltip.js +1 -0
- package/docs/changelog.mdx +16 -0
- package/package.json +7 -11
- package/src/components/Rating/Rating.figma.tsx +1 -1
- package/src/components/Tabs/TabsList.tsx +1 -1
- package/src/tokens/color.ts +1 -1
- package/src/tokens/components/dark/alert.ts +0 -1
- package/src/tokens/components/dark/bottom-navigation.ts +1 -1
- package/src/tokens/components/dark/card-accordion.ts +13 -0
- package/src/tokens/components/dark/card.ts +3 -0
- package/src/tokens/components/dark/checkbox.ts +1 -1
- package/src/tokens/components/dark/divider.ts +0 -1
- package/src/tokens/components/dark/index.ts +1 -0
- package/src/tokens/components/dark/list.ts +3 -0
- package/src/tokens/components/dark/navigation.ts +42 -1
- package/src/tokens/components/dark/pagination.ts +1 -0
- package/src/tokens/components/dark/segmented-control.ts +1 -1
- package/src/tokens/components/dark/tabs.ts +0 -1
- package/src/tokens/components/dark/tooltip.ts +1 -0
- package/src/tokens/components/light/alert.ts +0 -1
- package/src/tokens/components/light/bottom-navigation.ts +1 -1
- package/src/tokens/components/light/card-accordion.ts +13 -0
- package/src/tokens/components/light/card.ts +3 -0
- package/src/tokens/components/light/checkbox.ts +1 -1
- package/src/tokens/components/light/divider.ts +0 -1
- package/src/tokens/components/light/index.ts +1 -0
- package/src/tokens/components/light/list.ts +3 -0
- package/src/tokens/components/light/navigation.ts +42 -1
- package/src/tokens/components/light/pagination.ts +1 -0
- package/src/tokens/components/light/segmented-control.ts +1 -1
- package/src/tokens/components/light/tabs.ts +0 -1
- package/src/tokens/components/light/tooltip.ts +1 -0
- package/vitest.config.js +5 -1
- package/.turbo/turbo-lint$colon$fix.log +0 -56
|
@@ -9,12 +9,53 @@ declare const _default: {
|
|
|
9
9
|
readonly borderBottom: "#5c2ca9";
|
|
10
10
|
readonly borderRadius: 6;
|
|
11
11
|
readonly desktop: {
|
|
12
|
+
readonly customer: {
|
|
13
|
+
readonly gap: 12;
|
|
14
|
+
};
|
|
12
15
|
readonly height: 88;
|
|
16
|
+
readonly partner: {
|
|
17
|
+
readonly gap: 4;
|
|
18
|
+
readonly header: {
|
|
19
|
+
readonly gap: 24;
|
|
20
|
+
};
|
|
21
|
+
readonly padding: 24;
|
|
22
|
+
};
|
|
13
23
|
};
|
|
14
24
|
readonly dividerBorderColor: "#5c2ca9";
|
|
15
|
-
readonly
|
|
25
|
+
readonly item: {
|
|
26
|
+
readonly customer: {
|
|
27
|
+
readonly container: {
|
|
28
|
+
readonly gap: 4;
|
|
29
|
+
readonly paddingHorizontal: 4;
|
|
30
|
+
readonly paddingVertical: 8;
|
|
31
|
+
};
|
|
32
|
+
readonly mobile: {
|
|
33
|
+
readonly container: {
|
|
34
|
+
readonly paddingHorizontal: 8;
|
|
35
|
+
readonly paddingVertical: 8;
|
|
36
|
+
};
|
|
37
|
+
readonly paddingHorizontal: 4;
|
|
38
|
+
readonly paddingVertical: 24;
|
|
39
|
+
};
|
|
40
|
+
readonly paddingHorizontal: 4;
|
|
41
|
+
readonly paddingVertical: 24;
|
|
42
|
+
};
|
|
43
|
+
readonly partner: {
|
|
44
|
+
readonly container: {
|
|
45
|
+
readonly gap: 4;
|
|
46
|
+
readonly padding: 8;
|
|
47
|
+
};
|
|
48
|
+
readonly paddingHorizontal: 16;
|
|
49
|
+
readonly sub: {
|
|
50
|
+
readonly paddingLeft: 32;
|
|
51
|
+
readonly paddingRight: 16;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
16
55
|
readonly mobile: {
|
|
56
|
+
readonly gap: 12;
|
|
17
57
|
readonly height: 64;
|
|
58
|
+
readonly padding: 16;
|
|
18
59
|
};
|
|
19
60
|
};
|
|
20
61
|
export default _default;
|
|
@@ -9,11 +9,52 @@ export default {
|
|
|
9
9
|
borderBottom: '#5c2ca9',
|
|
10
10
|
borderRadius: 6,
|
|
11
11
|
desktop: {
|
|
12
|
+
customer: {
|
|
13
|
+
gap: 12,
|
|
14
|
+
},
|
|
12
15
|
height: 88,
|
|
16
|
+
partner: {
|
|
17
|
+
gap: 4,
|
|
18
|
+
header: {
|
|
19
|
+
gap: 24,
|
|
20
|
+
},
|
|
21
|
+
padding: 24,
|
|
22
|
+
},
|
|
13
23
|
},
|
|
14
24
|
dividerBorderColor: '#5c2ca9',
|
|
15
|
-
|
|
25
|
+
item: {
|
|
26
|
+
customer: {
|
|
27
|
+
container: {
|
|
28
|
+
gap: 4,
|
|
29
|
+
paddingHorizontal: 4,
|
|
30
|
+
paddingVertical: 8,
|
|
31
|
+
},
|
|
32
|
+
mobile: {
|
|
33
|
+
container: {
|
|
34
|
+
paddingHorizontal: 8,
|
|
35
|
+
paddingVertical: 8,
|
|
36
|
+
},
|
|
37
|
+
paddingHorizontal: 4,
|
|
38
|
+
paddingVertical: 24,
|
|
39
|
+
},
|
|
40
|
+
paddingHorizontal: 4,
|
|
41
|
+
paddingVertical: 24,
|
|
42
|
+
},
|
|
43
|
+
partner: {
|
|
44
|
+
container: {
|
|
45
|
+
gap: 4,
|
|
46
|
+
padding: 8,
|
|
47
|
+
},
|
|
48
|
+
paddingHorizontal: 16,
|
|
49
|
+
sub: {
|
|
50
|
+
paddingLeft: 32,
|
|
51
|
+
paddingRight: 16,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
16
55
|
mobile: {
|
|
56
|
+
gap: 12,
|
|
17
57
|
height: 64,
|
|
58
|
+
padding: 16,
|
|
18
59
|
},
|
|
19
60
|
};
|
package/docs/changelog.mdx
CHANGED
|
@@ -9,6 +9,22 @@ 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.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#1298](https://github.com/utilitywarehouse/hearth/pull/1298) [`43bf936`](https://github.com/utilitywarehouse/hearth/commit/43bf936fa03db109c669369cac6d0483877ae49a) Thanks [@robphoenix](https://github.com/robphoenix)! - 🧹 [HOUSEKEEPING]: Remove component color tokens in favour of semantic tokens
|
|
17
|
+
|
|
18
|
+
Updated `TabsList` to use `theme.color.border.strong` and removed the
|
|
19
|
+
`tabs.divider.color` component token (and other unused component color tokens)
|
|
20
|
+
in favour of semantic tokens.
|
|
21
|
+
|
|
22
|
+
## 0.32.5
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- [#1261](https://github.com/utilitywarehouse/hearth/pull/1261) [`745df73`](https://github.com/utilitywarehouse/hearth/commit/745df73a245dfe89d07aae5bac14256a4ff89e0a) Thanks [@robphoenix](https://github.com/robphoenix)! - 🧹 [HOUSEKEEPING]: Update dependencies
|
|
27
|
+
|
|
12
28
|
## 0.32.4
|
|
13
29
|
|
|
14
30
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utilitywarehouse/hearth-react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"description": "Utility Warehouse React Native UI library",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"sideEffects": false,
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@gluestack-ui/accordion": "1.0.
|
|
11
|
+
"@gluestack-ui/accordion": "1.0.14",
|
|
12
12
|
"@gluestack-ui/alert": "0.1.15",
|
|
13
13
|
"@gluestack-ui/button": "1.0.7",
|
|
14
14
|
"@gluestack-ui/checkbox": "0.1.32",
|
|
@@ -22,15 +22,13 @@
|
|
|
22
22
|
"@gluestack-ui/switch": "0.1.22",
|
|
23
23
|
"@gluestack-ui/textarea": "0.1.23",
|
|
24
24
|
"@quidone/react-native-wheel-picker": "^1.6.1",
|
|
25
|
+
"@react-stately/utils": "^3.12.1",
|
|
25
26
|
"dayjs": "^1.11.13",
|
|
26
27
|
"nanoid": "3.3.11"
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
30
|
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
|
|
30
|
-
"@chromatic-com/storybook": "^4.1.3",
|
|
31
|
-
"@figma/code-connect": "^1.3.12",
|
|
32
31
|
"@gorhom/bottom-sheet": "5.2.6",
|
|
33
|
-
"@react-stately/utils": "^3.12.0",
|
|
34
32
|
"@storybook/addon-a11y": "^10.2.1",
|
|
35
33
|
"@storybook/addon-docs": "^10.2.1",
|
|
36
34
|
"@storybook/addon-vitest": "^10.2.1",
|
|
@@ -41,7 +39,6 @@
|
|
|
41
39
|
"@types/react-native": "^0.72.8",
|
|
42
40
|
"@vitest/browser": "^3.2.4",
|
|
43
41
|
"@vitest/coverage-v8": "^3.2.4",
|
|
44
|
-
"chromatic": "^13.3.0",
|
|
45
42
|
"globals": "^15.15.0",
|
|
46
43
|
"playwright": "^1.59.1",
|
|
47
44
|
"prismjs": "^1.30.0",
|
|
@@ -58,16 +55,15 @@
|
|
|
58
55
|
"react-native-web": "^0.20.0",
|
|
59
56
|
"react-native-worklets": "^0.5.1",
|
|
60
57
|
"remark-gfm": "^4.0.1",
|
|
61
|
-
"storybook": "^10.
|
|
62
|
-
"typescript": "^5.7.3",
|
|
58
|
+
"storybook": "^10.4.1",
|
|
63
59
|
"vite": "^7.1.3",
|
|
64
60
|
"vite-plugin-svgr": "^4.5.0",
|
|
65
|
-
"vitest": "^
|
|
61
|
+
"vitest": "^4.1.7",
|
|
66
62
|
"@utilitywarehouse/hearth-fonts": "^0.0.4",
|
|
67
63
|
"@utilitywarehouse/hearth-react-icons": "^0.8.2",
|
|
68
64
|
"@utilitywarehouse/hearth-react-native-icons": "^0.8.1",
|
|
69
65
|
"@utilitywarehouse/hearth-svg-assets": "^0.6.2",
|
|
70
|
-
"@utilitywarehouse/hearth-tokens": "^0.
|
|
66
|
+
"@utilitywarehouse/hearth-tokens": "^0.3.1"
|
|
71
67
|
},
|
|
72
68
|
"peerDependencies": {
|
|
73
69
|
"@gorhom/bottom-sheet": ">=5.0.0",
|
|
@@ -82,7 +78,7 @@
|
|
|
82
78
|
"react-native-web": ">=0.19"
|
|
83
79
|
},
|
|
84
80
|
"scripts": {
|
|
85
|
-
"clean": "rm -rf node_modules
|
|
81
|
+
"clean": "rm -rf node_modules build .turbo",
|
|
86
82
|
"generateColours": "node ./scripts/generateColours.js",
|
|
87
83
|
"copyTokens": "node ./scripts/copyTokens.js",
|
|
88
84
|
"copy:changelog": "node ./scripts/copyChangelog.js",
|
|
@@ -23,7 +23,7 @@ figma.connect(
|
|
|
23
23
|
Rating,
|
|
24
24
|
'https://www.figma.com/design/6NKZXZhFSExXrcbBgc6zTR/Hearth-Components---Tokens?node-id=10620-4185',
|
|
25
25
|
{
|
|
26
|
-
variant: { Variant: 'Emojis' },
|
|
26
|
+
// variant: { Variant: 'Emojis' },
|
|
27
27
|
props: {
|
|
28
28
|
value: figma.enum('Rating', {
|
|
29
29
|
'0 Star': 0,
|
|
@@ -148,7 +148,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
148
148
|
position: 'relative',
|
|
149
149
|
width: '100%',
|
|
150
150
|
borderBottomWidth: theme.components.tabs.divider.borderWidth,
|
|
151
|
-
borderColor: theme.
|
|
151
|
+
borderColor: theme.color.border.strong,
|
|
152
152
|
},
|
|
153
153
|
scrollContent: {
|
|
154
154
|
paddingBottom: 0,
|
package/src/tokens/color.ts
CHANGED
|
@@ -12,6 +12,7 @@ export { default as bottomSheet } from './bottom-sheet';
|
|
|
12
12
|
export { default as breadcrumb } from './breadcrumb';
|
|
13
13
|
export { default as button } from './button';
|
|
14
14
|
export { default as card } from './card';
|
|
15
|
+
export { default as cardAccordion } from './card-accordion';
|
|
15
16
|
export { default as cardAction } from './card-action';
|
|
16
17
|
export { default as cardContent } from './card-content';
|
|
17
18
|
export { default as carouselControl } from './carousel-control';
|
|
@@ -10,11 +10,52 @@ export default {
|
|
|
10
10
|
borderBottom: '#996cda',
|
|
11
11
|
borderRadius: 6,
|
|
12
12
|
desktop: {
|
|
13
|
+
customer: {
|
|
14
|
+
gap: 12,
|
|
15
|
+
},
|
|
13
16
|
height: 88,
|
|
17
|
+
partner: {
|
|
18
|
+
gap: 4,
|
|
19
|
+
header: {
|
|
20
|
+
gap: 24,
|
|
21
|
+
},
|
|
22
|
+
padding: 24,
|
|
23
|
+
},
|
|
14
24
|
},
|
|
15
25
|
dividerBorderColor: '#996cda',
|
|
16
|
-
|
|
26
|
+
item: {
|
|
27
|
+
customer: {
|
|
28
|
+
container: {
|
|
29
|
+
gap: 4,
|
|
30
|
+
paddingHorizontal: 4,
|
|
31
|
+
paddingVertical: 8,
|
|
32
|
+
},
|
|
33
|
+
mobile: {
|
|
34
|
+
container: {
|
|
35
|
+
paddingHorizontal: 8,
|
|
36
|
+
paddingVertical: 8,
|
|
37
|
+
},
|
|
38
|
+
paddingHorizontal: 4,
|
|
39
|
+
paddingVertical: 24,
|
|
40
|
+
},
|
|
41
|
+
paddingHorizontal: 4,
|
|
42
|
+
paddingVertical: 24,
|
|
43
|
+
},
|
|
44
|
+
partner: {
|
|
45
|
+
container: {
|
|
46
|
+
gap: 4,
|
|
47
|
+
padding: 8,
|
|
48
|
+
},
|
|
49
|
+
paddingHorizontal: 16,
|
|
50
|
+
sub: {
|
|
51
|
+
paddingLeft: 32,
|
|
52
|
+
paddingRight: 16,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
},
|
|
17
56
|
mobile: {
|
|
57
|
+
gap: 12,
|
|
18
58
|
height: 64,
|
|
59
|
+
padding: 16,
|
|
19
60
|
},
|
|
20
61
|
} as const;
|
|
@@ -12,6 +12,7 @@ export { default as bottomSheet } from './bottom-sheet';
|
|
|
12
12
|
export { default as breadcrumb } from './breadcrumb';
|
|
13
13
|
export { default as button } from './button';
|
|
14
14
|
export { default as card } from './card';
|
|
15
|
+
export { default as cardAccordion } from './card-accordion';
|
|
15
16
|
export { default as cardAction } from './card-action';
|
|
16
17
|
export { default as cardContent } from './card-content';
|
|
17
18
|
export { default as carouselControl } from './carousel-control';
|
|
@@ -10,11 +10,52 @@ export default {
|
|
|
10
10
|
borderBottom: '#5c2ca9',
|
|
11
11
|
borderRadius: 6,
|
|
12
12
|
desktop: {
|
|
13
|
+
customer: {
|
|
14
|
+
gap: 12,
|
|
15
|
+
},
|
|
13
16
|
height: 88,
|
|
17
|
+
partner: {
|
|
18
|
+
gap: 4,
|
|
19
|
+
header: {
|
|
20
|
+
gap: 24,
|
|
21
|
+
},
|
|
22
|
+
padding: 24,
|
|
23
|
+
},
|
|
14
24
|
},
|
|
15
25
|
dividerBorderColor: '#5c2ca9',
|
|
16
|
-
|
|
26
|
+
item: {
|
|
27
|
+
customer: {
|
|
28
|
+
container: {
|
|
29
|
+
gap: 4,
|
|
30
|
+
paddingHorizontal: 4,
|
|
31
|
+
paddingVertical: 8,
|
|
32
|
+
},
|
|
33
|
+
mobile: {
|
|
34
|
+
container: {
|
|
35
|
+
paddingHorizontal: 8,
|
|
36
|
+
paddingVertical: 8,
|
|
37
|
+
},
|
|
38
|
+
paddingHorizontal: 4,
|
|
39
|
+
paddingVertical: 24,
|
|
40
|
+
},
|
|
41
|
+
paddingHorizontal: 4,
|
|
42
|
+
paddingVertical: 24,
|
|
43
|
+
},
|
|
44
|
+
partner: {
|
|
45
|
+
container: {
|
|
46
|
+
gap: 4,
|
|
47
|
+
padding: 8,
|
|
48
|
+
},
|
|
49
|
+
paddingHorizontal: 16,
|
|
50
|
+
sub: {
|
|
51
|
+
paddingLeft: 32,
|
|
52
|
+
paddingRight: 16,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
},
|
|
17
56
|
mobile: {
|
|
57
|
+
gap: 12,
|
|
18
58
|
height: 64,
|
|
59
|
+
padding: 16,
|
|
19
60
|
},
|
|
20
61
|
} as const;
|