@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
package/.storybook/main.ts
CHANGED
|
@@ -71,16 +71,6 @@ const config = {
|
|
|
71
71
|
...config.optimizeDeps,
|
|
72
72
|
exclude: [...(config.optimizeDeps?.exclude || []), '@utilitywarehouse/hearth-svg-assets'],
|
|
73
73
|
},
|
|
74
|
-
build: {
|
|
75
|
-
...config.build,
|
|
76
|
-
rolldownOptions: {
|
|
77
|
-
...config.build?.rolldownOptions,
|
|
78
|
-
external: [
|
|
79
|
-
...(config.build?.rolldownOptions?.external || []),
|
|
80
|
-
'@react-stately/utils',
|
|
81
|
-
],
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
74
|
};
|
|
85
75
|
},
|
|
86
76
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { setProjectAnnotations } from '@storybook/react-native-web-vite';
|
|
2
1
|
import { vi } from 'vitest';
|
|
3
2
|
|
|
4
3
|
// react-native-unistyles/mocks relies on Jest globals.
|
|
@@ -30,10 +29,3 @@ StyleSheet.configure({
|
|
|
30
29
|
adaptiveThemes: false,
|
|
31
30
|
},
|
|
32
31
|
});
|
|
33
|
-
|
|
34
|
-
const a11yAddonAnnotations = await import('@storybook/addon-a11y/preview');
|
|
35
|
-
const projectAnnotations = await import('./preview');
|
|
36
|
-
|
|
37
|
-
// This is an important step to apply the right configuration when testing your stories.
|
|
38
|
-
// More info at: https://storybook.js.org/docs/api/portable-stories/portable-stories-vitest#setprojectannotations
|
|
39
|
-
setProjectAnnotations([a11yAddonAnnotations as any, projectAnnotations as any]);
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @utilitywarehouse/hearth-react-native
|
|
2
2
|
|
|
3
|
+
## 0.33.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#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
|
|
8
|
+
|
|
9
|
+
Updated `TabsList` to use `theme.color.border.strong` and removed the
|
|
10
|
+
`tabs.divider.color` component token (and other unused component color tokens)
|
|
11
|
+
in favour of semantic tokens.
|
|
12
|
+
|
|
13
|
+
## 0.32.5
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#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
|
|
18
|
+
|
|
3
19
|
## 0.32.4
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -5,7 +5,7 @@ export declare const AccordionTrigger: import("react").ForwardRefExoticComponent
|
|
|
5
5
|
states?: {
|
|
6
6
|
active?: boolean;
|
|
7
7
|
};
|
|
8
|
-
}, "children"> & import("@gluestack-ui/accordion/lib/
|
|
8
|
+
}, "children"> & import("@gluestack-ui/accordion/lib/types").IAccordionTriggerProps & import("react").RefAttributes<import("react-native/types").PressableProps & {
|
|
9
9
|
states?: {
|
|
10
10
|
active?: boolean;
|
|
11
11
|
};
|
|
@@ -67,7 +67,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
67
67
|
position: 'relative',
|
|
68
68
|
width: '100%',
|
|
69
69
|
borderBottomWidth: theme.components.tabs.divider.borderWidth,
|
|
70
|
-
borderColor: theme.
|
|
70
|
+
borderColor: theme.color.border.strong,
|
|
71
71
|
},
|
|
72
72
|
scrollContent: {
|
|
73
73
|
paddingBottom: 0,
|
package/build/core/themes.d.ts
CHANGED
|
@@ -1358,7 +1358,7 @@ export declare const lightTheme: {
|
|
|
1358
1358
|
readonly '1000': "#26164f";
|
|
1359
1359
|
};
|
|
1360
1360
|
readonly red: {
|
|
1361
|
-
readonly '0': "#
|
|
1361
|
+
readonly '0': "#fff6f5";
|
|
1362
1362
|
readonly '50': "#fff3f1";
|
|
1363
1363
|
readonly '100': "#ffe3df";
|
|
1364
1364
|
readonly '200': "#ffccc5";
|
|
@@ -2775,7 +2775,7 @@ export declare const darkTheme: {
|
|
|
2775
2775
|
readonly '1000': "#26164f";
|
|
2776
2776
|
};
|
|
2777
2777
|
readonly red: {
|
|
2778
|
-
readonly '0': "#
|
|
2778
|
+
readonly '0': "#fff6f5";
|
|
2779
2779
|
readonly '50': "#fff3f1";
|
|
2780
2780
|
readonly '100': "#ffe3df";
|
|
2781
2781
|
readonly '200': "#ffccc5";
|
|
@@ -4182,7 +4182,7 @@ export declare const themes: {
|
|
|
4182
4182
|
readonly '1000': "#26164f";
|
|
4183
4183
|
};
|
|
4184
4184
|
readonly red: {
|
|
4185
|
-
readonly '0': "#
|
|
4185
|
+
readonly '0': "#fff6f5";
|
|
4186
4186
|
readonly '50': "#fff3f1";
|
|
4187
4187
|
readonly '100': "#ffe3df";
|
|
4188
4188
|
readonly '200': "#ffccc5";
|
|
@@ -5599,7 +5599,7 @@ export declare const themes: {
|
|
|
5599
5599
|
readonly '1000': "#26164f";
|
|
5600
5600
|
};
|
|
5601
5601
|
readonly red: {
|
|
5602
|
-
readonly '0': "#
|
|
5602
|
+
readonly '0': "#fff6f5";
|
|
5603
5603
|
readonly '50': "#fff3f1";
|
|
5604
5604
|
readonly '100': "#ffe3df";
|
|
5605
5605
|
readonly '200': "#ffccc5";
|
package/build/tokens/color.d.ts
CHANGED
|
@@ -170,7 +170,7 @@ export declare const purple: {
|
|
|
170
170
|
readonly '1000': "#26164f";
|
|
171
171
|
};
|
|
172
172
|
export declare const red: {
|
|
173
|
-
readonly '0': "#
|
|
173
|
+
readonly '0': "#fff6f5";
|
|
174
174
|
readonly '50': "#fff3f1";
|
|
175
175
|
readonly '100': "#ffe3df";
|
|
176
176
|
readonly '200': "#ffccc5";
|
|
@@ -881,7 +881,7 @@ declare const color: {
|
|
|
881
881
|
readonly '1000': "#26164f";
|
|
882
882
|
};
|
|
883
883
|
readonly red: {
|
|
884
|
-
readonly '0': "#
|
|
884
|
+
readonly '0': "#fff6f5";
|
|
885
885
|
readonly '50': "#fff3f1";
|
|
886
886
|
readonly '100': "#ffe3df";
|
|
887
887
|
readonly '200': "#ffccc5";
|
package/build/tokens/color.js
CHANGED
|
@@ -11,6 +11,7 @@ export { default as bottomSheet } from './bottom-sheet';
|
|
|
11
11
|
export { default as breadcrumb } from './breadcrumb';
|
|
12
12
|
export { default as button } from './button';
|
|
13
13
|
export { default as card } from './card';
|
|
14
|
+
export { default as cardAccordion } from './card-accordion';
|
|
14
15
|
export { default as cardAction } from './card-action';
|
|
15
16
|
export { default as cardContent } from './card-content';
|
|
16
17
|
export { default as carouselControl } from './carousel-control';
|
|
@@ -11,6 +11,7 @@ export { default as bottomSheet } from './bottom-sheet';
|
|
|
11
11
|
export { default as breadcrumb } from './breadcrumb';
|
|
12
12
|
export { default as button } from './button';
|
|
13
13
|
export { default as card } from './card';
|
|
14
|
+
export { default as cardAccordion } from './card-accordion';
|
|
14
15
|
export { default as cardAction } from './card-action';
|
|
15
16
|
export { default as cardContent } from './card-content';
|
|
16
17
|
export { default as carouselControl } from './carousel-control';
|
|
@@ -9,12 +9,53 @@ declare const _default: {
|
|
|
9
9
|
readonly borderBottom: "#996cda";
|
|
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: "#996cda";
|
|
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: '#996cda',
|
|
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: '#996cda',
|
|
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
|
};
|
|
@@ -11,6 +11,7 @@ export { default as bottomSheet } from './bottom-sheet';
|
|
|
11
11
|
export { default as breadcrumb } from './breadcrumb';
|
|
12
12
|
export { default as button } from './button';
|
|
13
13
|
export { default as card } from './card';
|
|
14
|
+
export { default as cardAccordion } from './card-accordion';
|
|
14
15
|
export { default as cardAction } from './card-action';
|
|
15
16
|
export { default as cardContent } from './card-content';
|
|
16
17
|
export { default as carouselControl } from './carousel-control';
|
|
@@ -11,6 +11,7 @@ export { default as bottomSheet } from './bottom-sheet';
|
|
|
11
11
|
export { default as breadcrumb } from './breadcrumb';
|
|
12
12
|
export { default as button } from './button';
|
|
13
13
|
export { default as card } from './card';
|
|
14
|
+
export { default as cardAccordion } from './card-accordion';
|
|
14
15
|
export { default as cardAction } from './card-action';
|
|
15
16
|
export { default as cardContent } from './card-content';
|
|
16
17
|
export { default as carouselControl } from './carousel-control';
|