@utilitywarehouse/hearth-react-native 0.3.0 → 0.3.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.
Files changed (133) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/.turbo/turbo-lint.log +3 -1
  3. package/CHANGELOG.md +12 -0
  4. package/build/components/Alert/AlertCloseButton.js +25 -3
  5. package/build/components/Alert/AlertIcon.js +17 -1
  6. package/build/components/Alert/AlertIconButton.js +27 -1
  7. package/build/components/Alert/AlertLink.js +47 -1
  8. package/build/components/Alert/AlertText.d.ts +1 -1
  9. package/build/components/Alert/AlertText.js +26 -2
  10. package/build/components/Alert/AlertTitle.d.ts +1 -1
  11. package/build/components/Alert/AlertTitle.js +26 -2
  12. package/build/components/Badge/BadgeIcon.js +72 -0
  13. package/build/components/Badge/BadgeText.js +72 -0
  14. package/build/components/Button/ButtonRoot.js +1 -0
  15. package/build/components/Checkbox/Checkbox.d.ts +2 -2
  16. package/build/components/Checkbox/Checkbox.js +11 -10
  17. package/build/components/Checkbox/Checkbox.props.d.ts +3 -1
  18. package/build/components/Checkbox/CheckboxIcon.js +1 -1
  19. package/build/components/Checkbox/CheckboxImage.d.ts +6 -0
  20. package/build/components/Checkbox/CheckboxImage.js +5 -0
  21. package/build/components/Checkbox/CheckboxTileRoot.js +1 -1
  22. package/build/components/Checkbox/index.d.ts +3 -2
  23. package/build/components/Checkbox/index.js +2 -1
  24. package/build/components/Link/Link.d.ts +1 -1
  25. package/build/components/Link/Link.js +4 -4
  26. package/build/components/Link/Link.props.d.ts +3 -0
  27. package/build/components/Radio/Radio.d.ts +2 -2
  28. package/build/components/Radio/Radio.js +9 -8
  29. package/build/components/Radio/Radio.props.d.ts +3 -1
  30. package/build/components/Radio/RadioImage.d.ts +6 -0
  31. package/build/components/Radio/RadioImage.js +5 -0
  32. package/build/components/Radio/RadioTileRoot.js +1 -1
  33. package/build/components/Radio/index.d.ts +3 -2
  34. package/build/components/Radio/index.js +2 -1
  35. package/build/components/Select/SelectOption.js +1 -7
  36. package/build/components/UnstyledIconButton/UnstyledIconButton.d.ts +1 -1
  37. package/build/components/UnstyledIconButton/UnstyledIconButton.js +4 -4
  38. package/build/components/UnstyledIconButton/UnstyledIconButton.props.d.ts +2 -1
  39. package/build/core/themes.d.ts +12 -12
  40. package/build/tokens/color.d.ts +12 -12
  41. package/build/tokens/color.js +6 -6
  42. package/build/tokens/components/dark/alert.d.ts +13 -0
  43. package/build/tokens/components/dark/alert.js +13 -0
  44. package/build/tokens/components/dark/checkbox.d.ts +3 -0
  45. package/build/tokens/components/dark/checkbox.js +3 -0
  46. package/build/tokens/components/dark/icon-button.d.ts +7 -0
  47. package/build/tokens/components/dark/icon-button.js +7 -0
  48. package/build/tokens/components/dark/index.d.ts +1 -0
  49. package/build/tokens/components/dark/index.js +1 -0
  50. package/build/tokens/components/dark/link.d.ts +5 -0
  51. package/build/tokens/components/dark/link.js +5 -0
  52. package/build/tokens/components/dark/progress-bar.d.ts +41 -0
  53. package/build/tokens/components/dark/progress-bar.js +40 -0
  54. package/build/tokens/components/light/alert.d.ts +13 -0
  55. package/build/tokens/components/light/alert.js +13 -0
  56. package/build/tokens/components/light/checkbox.d.ts +3 -0
  57. package/build/tokens/components/light/checkbox.js +3 -0
  58. package/build/tokens/components/light/icon-button.d.ts +7 -0
  59. package/build/tokens/components/light/icon-button.js +7 -0
  60. package/build/tokens/components/light/index.d.ts +1 -0
  61. package/build/tokens/components/light/index.js +1 -0
  62. package/build/tokens/components/light/link.d.ts +5 -0
  63. package/build/tokens/components/light/link.js +5 -0
  64. package/build/tokens/components/light/progress-bar.d.ts +41 -0
  65. package/build/tokens/components/light/progress-bar.js +40 -0
  66. package/build/tokens/index.d.ts +1 -0
  67. package/build/tokens/index.js +1 -0
  68. package/build/tokens/motion.d.ts +23 -0
  69. package/build/tokens/motion.js +22 -0
  70. package/build/tokens/primitive.d.ts +19 -0
  71. package/build/tokens/primitive.js +19 -0
  72. package/build/tokens/semantic-dark.d.ts +5 -5
  73. package/build/tokens/semantic-dark.js +5 -5
  74. package/build/tokens/semantic-light.d.ts +1 -1
  75. package/build/tokens/semantic-light.js +1 -1
  76. package/docs/assets/bank-logo.png +0 -0
  77. package/docs/assets/bank-logo1.png +0 -0
  78. package/docs/components/index.ts +6 -7
  79. package/docs/introduction.mdx +3 -3
  80. package/package.json +12 -11
  81. package/src/components/Alert/AlertCloseButton.tsx +33 -5
  82. package/src/components/Alert/AlertIcon.tsx +17 -1
  83. package/src/components/Alert/AlertIconButton.tsx +37 -4
  84. package/src/components/Alert/AlertLink.tsx +52 -1
  85. package/src/components/Alert/AlertText.tsx +28 -3
  86. package/src/components/Alert/AlertTitle.tsx +28 -3
  87. package/src/components/Badge/BadgeIcon.tsx +72 -0
  88. package/src/components/Badge/BadgeText.tsx +72 -0
  89. package/src/components/Button/ButtonRoot.tsx +1 -0
  90. package/src/components/Checkbox/Checkbox.docs.mdx +45 -7
  91. package/src/components/Checkbox/Checkbox.props.ts +3 -1
  92. package/src/components/Checkbox/Checkbox.stories.tsx +37 -1
  93. package/src/components/Checkbox/Checkbox.tsx +12 -9
  94. package/src/components/Checkbox/CheckboxIcon.tsx +1 -1
  95. package/src/components/Checkbox/CheckboxImage.tsx +9 -0
  96. package/src/components/Checkbox/CheckboxTileRoot.tsx +1 -1
  97. package/src/components/Checkbox/index.ts +3 -2
  98. package/src/components/IconContainer/IconContainer.docs.mdx +4 -4
  99. package/src/components/Link/Link.props.ts +3 -0
  100. package/src/components/Link/Link.tsx +12 -6
  101. package/src/components/List/List.docs.mdx +24 -23
  102. package/src/components/Radio/Radio.docs.mdx +96 -124
  103. package/src/components/Radio/Radio.props.ts +3 -1
  104. package/src/components/Radio/Radio.stories.tsx +47 -0
  105. package/src/components/Radio/Radio.tsx +10 -7
  106. package/src/components/Radio/RadioImage.tsx +9 -0
  107. package/src/components/Radio/RadioTileRoot.tsx +1 -1
  108. package/src/components/Radio/index.ts +3 -2
  109. package/src/components/Select/Select.docs.mdx +6 -6
  110. package/src/components/Select/Select.stories.tsx +7 -7
  111. package/src/components/Select/SelectOption.tsx +4 -10
  112. package/src/components/UnstyledIconButton/UnstyledIconButton.props.ts +2 -1
  113. package/src/components/UnstyledIconButton/UnstyledIconButton.tsx +9 -3
  114. package/src/tokens/color.ts +6 -6
  115. package/src/tokens/components/dark/alert.ts +13 -0
  116. package/src/tokens/components/dark/checkbox.ts +3 -0
  117. package/src/tokens/components/dark/icon-button.ts +7 -0
  118. package/src/tokens/components/dark/index.ts +1 -0
  119. package/src/tokens/components/dark/link.ts +5 -0
  120. package/src/tokens/components/dark/progress-bar.ts +41 -0
  121. package/src/tokens/components/light/alert.ts +13 -0
  122. package/src/tokens/components/light/checkbox.ts +3 -0
  123. package/src/tokens/components/light/icon-button.ts +7 -0
  124. package/src/tokens/components/light/index.ts +1 -0
  125. package/src/tokens/components/light/link.ts +5 -0
  126. package/src/tokens/components/light/progress-bar.ts +41 -0
  127. package/src/tokens/index.ts +1 -0
  128. package/src/tokens/motion.ts +23 -0
  129. package/src/tokens/primitive.ts +19 -0
  130. package/src/tokens/semantic-dark.ts +5 -5
  131. package/src/tokens/semantic-light.ts +1 -1
  132. package/docs/assets/react-native-pig.png +0 -0
  133. package/docs/components/AdvancedRadioExample.tsx +0 -126
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+ export default {
5
+ barColor: '#4c473d',
6
+ circular: {
7
+ md: {
8
+ bar: {
9
+ width: 12,
10
+ },
11
+ gap: 0,
12
+ height: 140,
13
+ label: {
14
+ fontFamily: 'DM Sans',
15
+ fontSize: 24,
16
+ fontWeight: 400,
17
+ lineHeight: 24,
18
+ },
19
+ },
20
+ sm: {
21
+ barWidth: 8,
22
+ height: 80,
23
+ },
24
+ },
25
+ linear: {
26
+ bar: {
27
+ borderRadius: 9999,
28
+ height: 12,
29
+ },
30
+ gap: 8,
31
+ label: {
32
+ gap: 8,
33
+ },
34
+ },
35
+ progress: {
36
+ dangerColor: '#ff634a',
37
+ defaultColor: '#c6b5e2',
38
+ successColor: '#36bf7d',
39
+ },
40
+ };
@@ -5,7 +5,20 @@ declare const _default: {
5
5
  readonly borderRadius: 8;
6
6
  readonly borderWidth: 2;
7
7
  readonly contentGap: 4;
8
+ readonly focus: "#101010";
8
9
  readonly gap: 8;
10
+ readonly iconButton: {
11
+ readonly unstyled: {
12
+ readonly foregroundColor: "#101010";
13
+ readonly foregroundColorActive: "#3f3f3f";
14
+ readonly foregroundColorHover: "#3a3837";
15
+ };
16
+ };
17
+ readonly link: {
18
+ readonly color: "#101010";
19
+ readonly colorActive: "#3f3f3f";
20
+ readonly colorHover: "#3a3837";
21
+ };
9
22
  readonly padding: 14;
10
23
  };
11
24
  export default _default;
@@ -5,6 +5,19 @@ export default {
5
5
  borderRadius: 8,
6
6
  borderWidth: 2,
7
7
  contentGap: 4,
8
+ focus: '#101010',
8
9
  gap: 8,
10
+ iconButton: {
11
+ unstyled: {
12
+ foregroundColor: '#101010',
13
+ foregroundColorActive: '#3f3f3f',
14
+ foregroundColorHover: '#3a3837',
15
+ },
16
+ },
17
+ link: {
18
+ color: '#101010',
19
+ colorActive: '#3f3f3f',
20
+ colorHover: '#3a3837',
21
+ },
9
22
  padding: 14,
10
23
  };
@@ -6,6 +6,9 @@ declare const _default: {
6
6
  readonly borderWidth: 2;
7
7
  readonly checked: {
8
8
  readonly backgroundColor: "#101010";
9
+ readonly icon: {
10
+ readonly color: "#fcfbf2";
11
+ };
9
12
  };
10
13
  readonly gap: 12;
11
14
  readonly group: {
@@ -6,6 +6,9 @@ export default {
6
6
  borderWidth: 2,
7
7
  checked: {
8
8
  backgroundColor: '#101010',
9
+ icon: {
10
+ color: '#fcfbf2',
11
+ },
9
12
  },
10
13
  gap: 12,
11
14
  group: {
@@ -2,6 +2,13 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
  declare const _default: {
5
+ readonly iconButton: {
6
+ readonly unstyled: {
7
+ readonly foregroundColor: "#101010";
8
+ readonly foregroundColorActive: "#3f3f3f";
9
+ readonly foregroundColorHover: "#3a3837";
10
+ };
11
+ };
5
12
  readonly borderRadius: 8;
6
13
  readonly md: {
7
14
  readonly height: 48;
@@ -2,6 +2,13 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
  export default {
5
+ iconButton: {
6
+ unstyled: {
7
+ foregroundColor: '#101010',
8
+ foregroundColorActive: '#3f3f3f',
9
+ foregroundColorHover: '#3a3837',
10
+ },
11
+ },
5
12
  borderRadius: 8,
6
13
  md: {
7
14
  height: 48,
@@ -33,6 +33,7 @@ export { default as overlay } from './overlay';
33
33
  export { default as pagination } from './pagination';
34
34
  export { default as parts } from './parts';
35
35
  export { default as pill } from './pill';
36
+ export { default as progressBar } from './progress-bar';
36
37
  export { default as progressStepper } from './progress-stepper';
37
38
  export { default as radio } from './radio';
38
39
  export { default as sectionHeader } from './section-header';
@@ -33,6 +33,7 @@ export { default as overlay } from './overlay';
33
33
  export { default as pagination } from './pagination';
34
34
  export { default as parts } from './parts';
35
35
  export { default as pill } from './pill';
36
+ export { default as progressBar } from './progress-bar';
36
37
  export { default as progressStepper } from './progress-stepper';
37
38
  export { default as radio } from './radio';
38
39
  export { default as sectionHeader } from './section-header';
@@ -2,6 +2,11 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
  declare const _default: {
5
+ readonly link: {
6
+ readonly color: "#101010";
7
+ readonly colorActive: "#3f3f3f";
8
+ readonly colorHover: "#3a3837";
9
+ };
5
10
  readonly color: "#101010";
6
11
  readonly colorActive: "#3f3f3f";
7
12
  readonly colorHover: "#3a3837";
@@ -2,6 +2,11 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
  export default {
5
+ link: {
6
+ color: '#101010',
7
+ colorActive: '#3f3f3f',
8
+ colorHover: '#3a3837',
9
+ },
5
10
  color: '#101010',
6
11
  colorActive: '#3f3f3f',
7
12
  colorHover: '#3a3837',
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+ declare const _default: {
5
+ readonly barColor: "#f1efe4";
6
+ readonly circular: {
7
+ readonly md: {
8
+ readonly bar: {
9
+ readonly width: 12;
10
+ };
11
+ readonly gap: 0;
12
+ readonly height: 140;
13
+ readonly label: {
14
+ readonly fontFamily: "DM Sans";
15
+ readonly fontSize: 24;
16
+ readonly fontWeight: 400;
17
+ readonly lineHeight: 24;
18
+ };
19
+ };
20
+ readonly sm: {
21
+ readonly barWidth: 8;
22
+ readonly height: 80;
23
+ };
24
+ };
25
+ readonly linear: {
26
+ readonly bar: {
27
+ readonly borderRadius: 9999;
28
+ readonly height: 12;
29
+ };
30
+ readonly gap: 8;
31
+ readonly label: {
32
+ readonly gap: 8;
33
+ };
34
+ };
35
+ readonly progress: {
36
+ readonly dangerColor: "#f4412a";
37
+ readonly defaultColor: "#26164f";
38
+ readonly successColor: "#19a660";
39
+ };
40
+ };
41
+ export default _default;
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+ export default {
5
+ barColor: '#f1efe4',
6
+ circular: {
7
+ md: {
8
+ bar: {
9
+ width: 12,
10
+ },
11
+ gap: 0,
12
+ height: 140,
13
+ label: {
14
+ fontFamily: 'DM Sans',
15
+ fontSize: 24,
16
+ fontWeight: 400,
17
+ lineHeight: 24,
18
+ },
19
+ },
20
+ sm: {
21
+ barWidth: 8,
22
+ height: 80,
23
+ },
24
+ },
25
+ linear: {
26
+ bar: {
27
+ borderRadius: 9999,
28
+ height: 12,
29
+ },
30
+ gap: 8,
31
+ label: {
32
+ gap: 8,
33
+ },
34
+ },
35
+ progress: {
36
+ dangerColor: '#f4412a',
37
+ defaultColor: '#26164f',
38
+ successColor: '#19a660',
39
+ },
40
+ };
@@ -13,6 +13,7 @@ export { default as borderWidth } from './border-width';
13
13
  export { default as font } from './font';
14
14
  export { default as letterSpacing } from './letter-spacing';
15
15
  export { default as lineHeight } from './line-height';
16
+ export { default as motion } from './motion';
16
17
  export { default as space } from './space';
17
18
  export { default as typography } from './typography';
18
19
  export * as components from './components';
@@ -13,6 +13,7 @@ export { default as borderWidth } from './border-width';
13
13
  export { default as font } from './font';
14
14
  export { default as letterSpacing } from './letter-spacing';
15
15
  export { default as lineHeight } from './line-height';
16
+ export { default as motion } from './motion';
16
17
  export { default as space } from './space';
17
18
  export { default as typography } from './typography';
18
19
  export * as components from './components';
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+ declare const _default: {
5
+ readonly duration: {
6
+ readonly '100': 130;
7
+ readonly '200': 160;
8
+ readonly '300': 190;
9
+ readonly '400': 220;
10
+ readonly '500': 250;
11
+ readonly '600': 300;
12
+ readonly '700': 350;
13
+ readonly '800': 400;
14
+ readonly '900': 450;
15
+ readonly '1000': 500;
16
+ };
17
+ readonly ease: {
18
+ readonly in: "cubic-bezier(0.42, 0, 1, 1)";
19
+ readonly inOut: "cubic-bezier(0, 0, 1, 1)";
20
+ readonly out: "cubic-bezier(0.19, 0.91, 0.38, 1)";
21
+ };
22
+ };
23
+ export default _default;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+ export default {
5
+ duration: {
6
+ '100': 130,
7
+ '200': 160,
8
+ '300': 190,
9
+ '400': 220,
10
+ '500': 250,
11
+ '600': 300,
12
+ '700': 350,
13
+ '800': 400,
14
+ '900': 450,
15
+ '1000': 500,
16
+ },
17
+ ease: {
18
+ in: 'cubic-bezier(0.42, 0, 1, 1)',
19
+ inOut: 'cubic-bezier(0, 0, 1, 1)',
20
+ out: 'cubic-bezier(0.19, 0.91, 0.38, 1)',
21
+ },
22
+ };
@@ -81,6 +81,25 @@ declare const _default: {
81
81
  readonly '1100': 72;
82
82
  readonly '1200': 90;
83
83
  };
84
+ readonly motion: {
85
+ readonly duration: {
86
+ readonly '100': 130;
87
+ readonly '200': 160;
88
+ readonly '300': 190;
89
+ readonly '400': 220;
90
+ readonly '500': 250;
91
+ readonly '600': 300;
92
+ readonly '700': 350;
93
+ readonly '800': 400;
94
+ readonly '900': 450;
95
+ readonly '1000': 500;
96
+ };
97
+ readonly ease: {
98
+ readonly in: "cubic-bezier(0.42, 0, 1, 1)";
99
+ readonly inOut: "cubic-bezier(0, 0, 1, 1)";
100
+ readonly out: "cubic-bezier(0.19, 0.91, 0.38, 1)";
101
+ };
102
+ };
84
103
  readonly space: {
85
104
  readonly '0': 0;
86
105
  readonly '25': 2;
@@ -81,6 +81,25 @@ export default {
81
81
  '1100': 72,
82
82
  '1200': 90,
83
83
  },
84
+ motion: {
85
+ duration: {
86
+ '100': 130,
87
+ '200': 160,
88
+ '300': 190,
89
+ '400': 220,
90
+ '500': 250,
91
+ '600': 300,
92
+ '700': 350,
93
+ '800': 400,
94
+ '900': 450,
95
+ '1000': 500,
96
+ },
97
+ ease: {
98
+ in: 'cubic-bezier(0.42, 0, 1, 1)',
99
+ inOut: 'cubic-bezier(0, 0, 1, 1)',
100
+ out: 'cubic-bezier(0.19, 0.91, 0.38, 1)',
101
+ },
102
+ },
84
103
  space: {
85
104
  '0': 0,
86
105
  '25': 2,
@@ -3,7 +3,7 @@
3
3
  */
4
4
  declare const _default: {
5
5
  readonly background: {
6
- readonly brand: "#996cda";
6
+ readonly brand: "#7a42c8";
7
7
  readonly primary: "#191917";
8
8
  readonly secondary: "#232323";
9
9
  };
@@ -79,7 +79,7 @@ declare const _default: {
79
79
  readonly interactive: {
80
80
  readonly affirmative: {
81
81
  readonly border: {
82
- readonly strong: "#ebebeb";
82
+ readonly strong: "#101010";
83
83
  readonly subtle: "#58ca93";
84
84
  };
85
85
  readonly foreground: {
@@ -115,7 +115,7 @@ declare const _default: {
115
115
  };
116
116
  readonly destructive: {
117
117
  readonly border: {
118
- readonly strong: "#ebebeb";
118
+ readonly strong: "#101010";
119
119
  readonly subtle: "#ff7964";
120
120
  };
121
121
  readonly foreground: {
@@ -163,7 +163,7 @@ declare const _default: {
163
163
  };
164
164
  readonly highlight: {
165
165
  readonly border: {
166
- readonly strong: "#f7f7f7";
166
+ readonly strong: "#101010";
167
167
  };
168
168
  readonly foreground: {
169
169
  readonly strong: "#101010";
@@ -246,7 +246,7 @@ declare const _default: {
246
246
  readonly text: {
247
247
  readonly affirmative: "#58ca93";
248
248
  readonly brand: "#af90de";
249
- readonly inverted: "#191917";
249
+ readonly inverted: "#fcfbf2";
250
250
  readonly primary: "#ebebeb";
251
251
  readonly secondary: "#b2afae";
252
252
  };
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export default {
5
5
  background: {
6
- brand: '#996cda',
6
+ brand: '#7a42c8',
7
7
  primary: '#191917',
8
8
  secondary: '#232323',
9
9
  },
@@ -79,7 +79,7 @@ export default {
79
79
  interactive: {
80
80
  affirmative: {
81
81
  border: {
82
- strong: '#ebebeb',
82
+ strong: '#101010',
83
83
  subtle: '#58ca93',
84
84
  },
85
85
  foreground: {
@@ -115,7 +115,7 @@ export default {
115
115
  },
116
116
  destructive: {
117
117
  border: {
118
- strong: '#ebebeb',
118
+ strong: '#101010',
119
119
  subtle: '#ff7964',
120
120
  },
121
121
  foreground: {
@@ -163,7 +163,7 @@ export default {
163
163
  },
164
164
  highlight: {
165
165
  border: {
166
- strong: '#f7f7f7',
166
+ strong: '#101010',
167
167
  },
168
168
  foreground: {
169
169
  strong: '#101010',
@@ -246,7 +246,7 @@ export default {
246
246
  text: {
247
247
  affirmative: '#58ca93',
248
248
  brand: '#af90de',
249
- inverted: '#191917',
249
+ inverted: '#fcfbf2',
250
250
  primary: '#ebebeb',
251
251
  secondary: '#b2afae',
252
252
  },
@@ -248,7 +248,7 @@ declare const _default: {
248
248
  readonly brand: "#7a42c8";
249
249
  readonly inverted: "#fcfbf2";
250
250
  readonly primary: "#101010";
251
- readonly secondary: "#888888";
251
+ readonly secondary: "#5b5b5b";
252
252
  };
253
253
  };
254
254
  export default _default;
@@ -248,6 +248,6 @@ export default {
248
248
  brand: '#7a42c8',
249
249
  inverted: '#fcfbf2',
250
250
  primary: '#101010',
251
- secondary: '#888888',
251
+ secondary: '#5b5b5b',
252
252
  },
253
253
  };
Binary file
Binary file
@@ -1,11 +1,10 @@
1
- export { default as VariantTitle } from './VariantTitle';
2
- export { default as UsageWrap } from './UsageWrap';
1
+ export { default as AdvancedInputExample } from './AdvancedInputExample';
3
2
  export { default as BackToTopButton } from './BackToTopButton';
4
- export { default as ViewFigmaButton } from './ViewFigmaButton';
5
- export { default as DocComponentWrap } from './DocComponentWrap';
6
3
  export { default as BadgeList } from './BadgeList';
7
- export { default as AdvancedInputExample } from './AdvancedInputExample';
4
+ export { default as DocComponentWrap } from './DocComponentWrap';
5
+ export { default as NextPrevPage } from './NextPrevPage';
8
6
  export { default as SwitchExample } from './SwitchExample';
9
7
  export { default as SwitchList } from './SwitchList';
10
- export { default as AdvancedRadioExample } from './AdvancedRadioExample';
11
- export { default as NextPrevPage } from './NextPrevPage';
8
+ export { default as UsageWrap } from './UsageWrap';
9
+ export { default as VariantTitle } from './VariantTitle';
10
+ export { default as ViewFigmaButton } from './ViewFigmaButton';
@@ -1,7 +1,7 @@
1
1
  import { Meta } from '@storybook/addon-docs/blocks';
2
+ import pig from '../../../shared/storybook/assets/images/react-native-pig.png';
2
3
  import { version } from '../package.json';
3
4
  import { Box } from '../src';
4
- import pig from './assets/react-native-pig.png';
5
5
  import { BackToTopButton, NextPrevPage } from './components';
6
6
 
7
7
  <Meta title="Introduction" />
@@ -39,7 +39,7 @@ npm install @utilitywarehouse/hearth-react-native
39
39
  To install the peer dependencies, you can run the following command:
40
40
 
41
41
  ```console
42
- npm install react-native-unistyles react-native-edge-to-edge react-native-nitro-modules@0.28.1 @gorhom/bottom-sheet react-native-svg react-native-reanimated react-native-worklets react-native-gesture-handler
42
+ npm install react-native-unistyles react-native-edge-to-edge react-native-nitro-modules@0.28.1 @gorhom/bottom-sheet react-native-svg react-native-reanimated react-native-worklets react-native-gesture-handler @utilitywarehouse/hearth-react-native-icons
43
43
  ```
44
44
 
45
45
  For more information on how to install and configure `react-native-svg`, `react-native-gesture-handler` and `react-native-reanimated`,
@@ -63,7 +63,7 @@ The `@utilitywarehouse/hearth-react-native` library uses a few packages under th
63
63
  as well as fonts and icons. Feel free to additionally install these packages if you need to use them in your project.
64
64
 
65
65
  ```console
66
- npm install @utilitywarehouse/hearth-tokens @utilitywarehouse/hearth-react-native-icons
66
+ npm install @utilitywarehouse/hearth-tokens
67
67
  ```
68
68
 
69
69
  You will need to include the **Comic Hams**, **DM Mono** and **DM Sans** fonts.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utilitywarehouse/hearth-react-native",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Utility Warehouse React Native UI library",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -20,23 +20,22 @@
20
20
  "@gluestack-ui/radio": "0.1.33",
21
21
  "@gluestack-ui/spinner": "0.1.14",
22
22
  "@gluestack-ui/switch": "0.1.22",
23
- "@gluestack-ui/textarea": "0.1.23",
24
- "@utilitywarehouse/hearth-react-native-icons": "^0.1.0"
23
+ "@gluestack-ui/textarea": "0.1.23"
25
24
  },
26
25
  "devDependencies": {
27
26
  "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
28
27
  "@chromatic-com/storybook": "^4.1.1",
29
28
  "@figma/code-connect": "^1.3.3",
30
29
  "@gorhom/bottom-sheet": "5.1.6",
31
- "@storybook/addon-a11y": "^9.1.3",
32
- "@storybook/addon-docs": "^9.1.3",
33
- "@storybook/addon-vitest": "^9.1.3",
34
- "@storybook/react-native-web-vite": "^9.1.3",
30
+ "@storybook/addon-a11y": "^9.1.6",
31
+ "@storybook/addon-docs": "^9.1.6",
32
+ "@storybook/addon-vitest": "^9.1.6",
33
+ "@storybook/react-native-web-vite": "^9.1.6",
35
34
  "@types/prismjs": "^1.26.5",
36
35
  "@types/react": "^19.1.10",
37
36
  "@vitest/browser": "^3.2.4",
38
37
  "@vitest/coverage-v8": "^3.2.4",
39
- "eslint-plugin-storybook": "9.1.3",
38
+ "eslint-plugin-storybook": "9.1.6",
40
39
  "playwright": "^1.53.1",
41
40
  "prismjs": "^1.30.0",
42
41
  "react": "^19.1.0",
@@ -49,16 +48,18 @@
49
48
  "react-native-unistyles": "3.0.10",
50
49
  "react-native-web": "^0.20.0",
51
50
  "remark-gfm": "^4.0.1",
52
- "storybook": "^9.1.3",
51
+ "storybook": "^9.1.6",
53
52
  "typescript": "^5.7.3",
54
53
  "vite": "^7.1.3",
55
54
  "vitest": "^3.2.4",
56
55
  "@utilitywarehouse/hearth-fonts": "^0.0.3",
57
- "@utilitywarehouse/hearth-react-icons": "^0.1.1",
58
- "@utilitywarehouse/hearth-tokens": "^0.0.8"
56
+ "@utilitywarehouse/hearth-react-native-icons": "^0.4.0",
57
+ "@utilitywarehouse/hearth-react-icons": "^0.4.0",
58
+ "@utilitywarehouse/hearth-tokens": "^0.1.0"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@gorhom/bottom-sheet": "^5.0.0",
62
+ "@utilitywarehouse/hearth-react-native-icons": "~0.4.0",
62
63
  "react": ">=17 || ^18.0.0 || ^19.0.0",
63
64
  "react-native": ">=0.77",
64
65
  "react-native-gesture-handler": "^2.22.0",
@@ -3,22 +3,50 @@ import { ComponentType } from 'react';
3
3
  import { ViewStyle } from 'react-native';
4
4
  import { StyleSheet } from 'react-native-unistyles';
5
5
  import { UnstyledIconButton, UnstyledIconButtonProps } from '../UnstyledIconButton';
6
+ import { useAlertContext } from './Alert.context';
6
7
 
7
8
  const AlertCloseButton = ({
8
9
  style,
9
10
  icon = CloseSmallIcon,
10
11
  ...props
11
- }: Omit<UnstyledIconButtonProps, 'icon'> & { icon?: ComponentType }) => (
12
- <UnstyledIconButton {...props} size="sm" style={[styles.icon, style as ViewStyle]} icon={icon} />
13
- );
12
+ }: Omit<UnstyledIconButtonProps, 'icon'> & { icon?: ComponentType }) => {
13
+ const { colorScheme } = useAlertContext();
14
+ styles.useVariants({ colorScheme });
15
+ return (
16
+ <UnstyledIconButton
17
+ {...props}
18
+ size="sm"
19
+ style={[styles.button, style as ViewStyle]}
20
+ icon={icon}
21
+ iconStyle={styles.icon as ViewStyle}
22
+ />
23
+ );
24
+ };
14
25
 
15
26
  const styles = StyleSheet.create(theme => ({
16
- icon: {
27
+ button: {
17
28
  alignSelf: 'flex-start',
18
- color: theme.color.icon.primary,
19
29
  minWidth: 20,
20
30
  minHeight: 20,
21
31
  },
32
+ icon: {
33
+ variants: {
34
+ colorScheme: {
35
+ info: {
36
+ color: theme.color.feedback.info.foreground.default,
37
+ },
38
+ positive: {
39
+ color: theme.color.feedback.positive.foreground.default,
40
+ },
41
+ danger: {
42
+ color: theme.color.feedback.danger.foreground.default,
43
+ },
44
+ warning: {
45
+ color: theme.color.feedback.warning.foreground.default,
46
+ },
47
+ },
48
+ },
49
+ },
22
50
  }));
23
51
 
24
52
  AlertCloseButton.displayName = 'AlertCloseButton';