@utilitywarehouse/hearth-react-native 0.31.0 → 0.32.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.
Files changed (123) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/.turbo/turbo-lint.log +13 -13
  3. package/CHANGELOG.md +71 -0
  4. package/build/components/Rating/Rating.d.ts +6 -0
  5. package/build/components/Rating/Rating.js +76 -0
  6. package/build/components/Rating/Rating.props.d.ts +18 -0
  7. package/build/components/Rating/Rating.props.js +1 -0
  8. package/build/components/Rating/RatingStarEmpty.d.ts +6 -0
  9. package/build/components/Rating/RatingStarEmpty.js +9 -0
  10. package/build/components/Rating/RatingStarFilled.d.ts +6 -0
  11. package/build/components/Rating/RatingStarFilled.js +9 -0
  12. package/build/components/Rating/index.d.ts +2 -0
  13. package/build/components/Rating/index.js +1 -0
  14. package/build/components/Roundel/Roundel.d.ts +6 -0
  15. package/build/components/Roundel/Roundel.js +40 -0
  16. package/build/components/Roundel/Roundel.props.d.ts +6 -0
  17. package/build/components/Roundel/Roundel.props.js +1 -0
  18. package/build/components/Roundel/index.d.ts +2 -0
  19. package/build/components/Roundel/index.js +1 -0
  20. package/build/components/StepperInput/StepperButton.d.ts +22 -0
  21. package/build/components/StepperInput/StepperButton.js +55 -0
  22. package/build/components/StepperInput/StepperInput.d.ts +6 -0
  23. package/build/components/StepperInput/StepperInput.js +196 -0
  24. package/build/components/StepperInput/StepperInput.props.d.ts +31 -0
  25. package/build/components/StepperInput/StepperInput.props.js +1 -0
  26. package/build/components/StepperInput/index.d.ts +2 -0
  27. package/build/components/StepperInput/index.js +1 -0
  28. package/build/components/Table/TableHeaderCell.js +10 -1
  29. package/build/components/Textarea/Textarea.d.ts +1 -1
  30. package/build/components/Textarea/Textarea.js +10 -3
  31. package/build/components/Textarea/Textarea.props.d.ts +11 -0
  32. package/build/components/index.d.ts +3 -0
  33. package/build/components/index.js +3 -0
  34. package/build/core/themes.d.ts +92 -88
  35. package/build/tokens/color.d.ts +82 -80
  36. package/build/tokens/color.js +41 -40
  37. package/build/tokens/components/dark/alert.d.ts +6 -6
  38. package/build/tokens/components/dark/alert.js +6 -6
  39. package/build/tokens/components/dark/bottom-navigation.d.ts +2 -2
  40. package/build/tokens/components/dark/bottom-navigation.js +2 -2
  41. package/build/tokens/components/dark/checkbox.d.ts +1 -1
  42. package/build/tokens/components/dark/checkbox.js +1 -1
  43. package/build/tokens/components/dark/icon-button.d.ts +3 -3
  44. package/build/tokens/components/dark/icon-button.js +3 -3
  45. package/build/tokens/components/dark/inline-link.d.ts +1 -1
  46. package/build/tokens/components/dark/inline-link.js +1 -1
  47. package/build/tokens/components/dark/link.d.ts +3 -3
  48. package/build/tokens/components/dark/link.js +3 -3
  49. package/build/tokens/components/dark/navigation.d.ts +2 -2
  50. package/build/tokens/components/dark/navigation.js +2 -2
  51. package/build/tokens/components/dark/parts.d.ts +2 -2
  52. package/build/tokens/components/dark/parts.js +2 -2
  53. package/build/tokens/components/dark/progress-bar.d.ts +3 -3
  54. package/build/tokens/components/dark/progress-bar.js +3 -3
  55. package/build/tokens/components/dark/progress-stepper.d.ts +1 -1
  56. package/build/tokens/components/dark/progress-stepper.js +1 -1
  57. package/build/tokens/components/dark/spinner.d.ts +1 -1
  58. package/build/tokens/components/dark/spinner.js +1 -1
  59. package/build/tokens/components/dark/table.d.ts +2 -0
  60. package/build/tokens/components/dark/table.js +2 -0
  61. package/build/tokens/components/dark/time-picker.d.ts +1 -0
  62. package/build/tokens/components/dark/time-picker.js +1 -0
  63. package/build/tokens/components/light/parts.d.ts +3 -3
  64. package/build/tokens/components/light/parts.js +3 -3
  65. package/build/tokens/components/light/table.d.ts +2 -0
  66. package/build/tokens/components/light/table.js +2 -0
  67. package/build/tokens/components/light/time-picker.d.ts +1 -0
  68. package/build/tokens/components/light/time-picker.js +1 -0
  69. package/build/tokens/semantic-dark.d.ts +40 -40
  70. package/build/tokens/semantic-dark.js +40 -40
  71. package/docs/adding-shadows.mdx +2 -2
  72. package/docs/changelog.mdx +165 -0
  73. package/docs/components/AllComponents.web.tsx +30 -1
  74. package/docs/dark-mode-best-practice.mdx +328 -0
  75. package/package.json +1 -1
  76. package/src/components/Modal/Modal.docs.mdx +58 -4
  77. package/src/components/NavModal/NavModal.docs.mdx +2 -2
  78. package/src/components/Rating/Rating.docs.mdx +178 -0
  79. package/src/components/Rating/Rating.figma.tsx +20 -0
  80. package/src/components/Rating/Rating.props.ts +22 -0
  81. package/src/components/Rating/Rating.stories.tsx +95 -0
  82. package/src/components/Rating/Rating.tsx +140 -0
  83. package/src/components/Rating/RatingStarEmpty.tsx +22 -0
  84. package/src/components/Rating/RatingStarFilled.tsx +27 -0
  85. package/src/components/Rating/index.ts +2 -0
  86. package/src/components/Roundel/Roundel.docs.mdx +48 -0
  87. package/src/components/Roundel/Roundel.figma.tsx +17 -0
  88. package/src/components/Roundel/Roundel.props.ts +8 -0
  89. package/src/components/Roundel/Roundel.stories.tsx +49 -0
  90. package/src/components/Roundel/Roundel.tsx +51 -0
  91. package/src/components/Roundel/index.ts +2 -0
  92. package/src/components/StepperInput/StepperButton.tsx +83 -0
  93. package/src/components/StepperInput/StepperInput.docs.mdx +121 -0
  94. package/src/components/StepperInput/StepperInput.figma.tsx +45 -0
  95. package/src/components/StepperInput/StepperInput.props.ts +39 -0
  96. package/src/components/StepperInput/StepperInput.stories.tsx +270 -0
  97. package/src/components/StepperInput/StepperInput.tsx +349 -0
  98. package/src/components/StepperInput/index.ts +2 -0
  99. package/src/components/Table/TableHeaderCell.tsx +10 -1
  100. package/src/components/Textarea/Textarea.docs.mdx +2 -0
  101. package/src/components/Textarea/Textarea.props.ts +11 -0
  102. package/src/components/Textarea/Textarea.stories.tsx +14 -0
  103. package/src/components/Textarea/Textarea.tsx +11 -2
  104. package/src/components/index.ts +3 -0
  105. package/src/tokens/color.ts +41 -40
  106. package/src/tokens/components/dark/alert.ts +6 -6
  107. package/src/tokens/components/dark/bottom-navigation.ts +2 -2
  108. package/src/tokens/components/dark/checkbox.ts +1 -1
  109. package/src/tokens/components/dark/icon-button.ts +3 -3
  110. package/src/tokens/components/dark/inline-link.ts +1 -1
  111. package/src/tokens/components/dark/link.ts +3 -3
  112. package/src/tokens/components/dark/navigation.ts +2 -2
  113. package/src/tokens/components/dark/parts.ts +2 -2
  114. package/src/tokens/components/dark/progress-bar.ts +3 -3
  115. package/src/tokens/components/dark/progress-stepper.ts +1 -1
  116. package/src/tokens/components/dark/spinner.ts +1 -1
  117. package/src/tokens/components/dark/table.ts +2 -0
  118. package/src/tokens/components/dark/time-picker.ts +1 -0
  119. package/src/tokens/components/light/parts.ts +3 -3
  120. package/src/tokens/components/light/table.ts +2 -0
  121. package/src/tokens/components/light/time-picker.ts +1 -0
  122. package/src/tokens/semantic-dark.ts +40 -40
  123. package/vercel.json +0 -21
@@ -12,10 +12,10 @@ export default {
12
12
  item: {
13
13
  gap: 2,
14
14
  icon: {
15
- colorActive: '#996cda',
15
+ colorActive: '#af90de',
16
16
  },
17
17
  label: {
18
- colorActive: '#996cda',
18
+ colorActive: '#af90de',
19
19
  },
20
20
  paddingBottom: 2,
21
21
  paddingHorizontal: 0,
@@ -6,7 +6,7 @@ export default {
6
6
  borderRadius: 4,
7
7
  borderWidth: 2,
8
8
  checked: {
9
- backgroundColor: '#ebebeb',
9
+ backgroundColor: '#888888',
10
10
  icon: {
11
11
  color: '#101010',
12
12
  },
@@ -5,9 +5,9 @@
5
5
  export default {
6
6
  iconButton: {
7
7
  unstyled: {
8
- foregroundColor: '#101010',
9
- foregroundColorActive: '#3f3f3f',
10
- foregroundColorHover: '#3a3837',
8
+ foregroundColor: '#ebebeb',
9
+ foregroundColorActive: '#b2afae',
10
+ foregroundColorHover: '#d3d3d3',
11
11
  },
12
12
  },
13
13
  borderRadius: 8,
@@ -4,7 +4,7 @@
4
4
 
5
5
  export default {
6
6
  color: '#6bb0ff',
7
- colorVisited: '#996cda',
7
+ colorVisited: '#af90de',
8
8
  inverted: {
9
9
  color: '#fcfbf2',
10
10
  colorActive: '#f1efe4',
@@ -4,9 +4,9 @@
4
4
 
5
5
  export default {
6
6
  link: {
7
- color: '#101010',
8
- colorActive: '#3f3f3f',
9
- colorHover: '#3a3837',
7
+ color: '#ebebeb',
8
+ colorActive: '#b2afae',
9
+ colorHover: '#d3d3d3',
10
10
  },
11
11
  color: '#ebebeb',
12
12
  colorActive: '#b2afae',
@@ -7,12 +7,12 @@ export default {
7
7
  borderRadiusNone: 0,
8
8
  borderRadiusRounded: 4,
9
9
  },
10
- borderBottom: '#5c2ca9',
10
+ borderBottom: '#996cda',
11
11
  borderRadius: 6,
12
12
  desktop: {
13
13
  height: 88,
14
14
  },
15
- dividerBorderColor: '#5c2ca9',
15
+ dividerBorderColor: '#996cda',
16
16
  gap: 4,
17
17
  mobile: {
18
18
  height: 64,
@@ -27,7 +27,7 @@ export default {
27
27
  },
28
28
  statusBar: {
29
29
  foregroundColor: '#ffffff',
30
- foregroundColorInverted: '#000000',
31
- notch: '#000000',
30
+ foregroundColorInverted: '#ffffff',
31
+ notch: '#101010',
32
32
  },
33
33
  } as const;
@@ -34,8 +34,8 @@ export default {
34
34
  },
35
35
  },
36
36
  progress: {
37
- dangerColor: '#ff634a',
38
- defaultColor: '#c6b5e2',
39
- successColor: '#36bf7d',
37
+ dangerColor: '#f4412a',
38
+ defaultColor: '#996cda',
39
+ successColor: '#19a660',
40
40
  },
41
41
  } as const;
@@ -5,7 +5,7 @@
5
5
  export default {
6
6
  bar: {
7
7
  complete: {
8
- backgroundColor: '#7a42c8',
8
+ backgroundColor: '#996cda',
9
9
  },
10
10
  height: 2,
11
11
  },
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  export default {
6
- defaultFill: '#af90de',
6
+ defaultFill: '#996cda',
7
7
  lg: {
8
8
  size: 40,
9
9
  strokeWidth: 3,
@@ -14,6 +14,8 @@ export default {
14
14
  },
15
15
  headerCell: {
16
16
  borderWidth: 2,
17
+ foregoundColor: '#ebebeb',
18
+ foregoundColorInverted: '#101010',
17
19
  gap: 8,
18
20
  height: 56,
19
21
  paddingHorizontal: 12,
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  export default {
6
+ fade: '#2f2d2d00',
6
7
  gap: 6,
7
8
  gapContainer: 4,
8
9
  minWidth: 288,
@@ -4,7 +4,7 @@
4
4
 
5
5
  export default {
6
6
  homeIndicator: {
7
- foregroundColor: '#000000',
7
+ foregroundColor: '#101010',
8
8
  foregroundColorInverted: '#ffffff',
9
9
  },
10
10
  modalStack: {
@@ -26,8 +26,8 @@ export default {
26
26
  borderRadius: 9999,
27
27
  },
28
28
  statusBar: {
29
- foregroundColor: '#000000',
29
+ foregroundColor: '#101010',
30
30
  foregroundColorInverted: '#ffffff',
31
- notch: '#000000',
31
+ notch: '#101010',
32
32
  },
33
33
  } as const;
@@ -14,6 +14,8 @@ export default {
14
14
  },
15
15
  headerCell: {
16
16
  borderWidth: 2,
17
+ foregoundColor: '#101010',
18
+ foregoundColorInverted: '#ffffff',
17
19
  gap: 8,
18
20
  height: 56,
19
21
  paddingHorizontal: 12,
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  export default {
6
+ fade: '#ffffff00',
6
7
  gap: 6,
7
8
  gapContainer: 4,
8
9
  minWidth: 288,
@@ -4,25 +4,25 @@
4
4
 
5
5
  export default {
6
6
  background: {
7
- brand: '#7a42c8',
7
+ brand: '#442484',
8
8
  loading: '#30302c',
9
9
  primary: '#191917',
10
- secondary: '#232323',
10
+ secondary: '#2f2d2d',
11
11
  },
12
12
  border: {
13
- strong: '#ebebeb',
14
- subtle: '#4c473d',
13
+ strong: '#888888',
14
+ subtle: '#5b5b5b',
15
15
  },
16
16
  feedback: {
17
17
  danger: {
18
- border: '#ff7964',
18
+ border: '#f4412a',
19
19
  foreground: {
20
- default: '#101010',
20
+ default: '#ffffff',
21
21
  subtle: '#ff7964',
22
22
  },
23
23
  surface: {
24
- default: '#ff634a',
25
- subtle: '#ffa89d',
24
+ default: '#de2612',
25
+ subtle: '#6b1f1a',
26
26
  },
27
27
  },
28
28
  functional: {
@@ -37,36 +37,36 @@ export default {
37
37
  },
38
38
  },
39
39
  info: {
40
- border: '#6bb0ff',
40
+ border: '#2786f1',
41
41
  foreground: {
42
- default: '#101010',
42
+ default: '#ffffff',
43
43
  subtle: '#6bb0ff',
44
44
  },
45
45
  surface: {
46
- default: '#6bb0ff',
47
- subtle: '#bcddff',
46
+ default: '#1c6cd4',
47
+ subtle: '#0b3375',
48
48
  },
49
49
  },
50
50
  positive: {
51
- border: '#58ca93',
51
+ border: '#19a660',
52
52
  foreground: {
53
- default: '#101010',
53
+ default: '#ffffff',
54
54
  subtle: '#58ca93',
55
55
  },
56
56
  surface: {
57
- default: '#36bf7d',
58
- subtle: '#a2e2c3',
57
+ default: '#0f834a',
58
+ subtle: '#074b2a',
59
59
  },
60
60
  },
61
61
  warning: {
62
- border: '#ff9639',
62
+ border: '#f56e00',
63
63
  foreground: {
64
- default: '#101010',
64
+ default: '#ffffff',
65
65
  subtle: '#ff9639',
66
66
  },
67
67
  surface: {
68
- default: '#ff8010',
69
- subtle: '#ffcca8',
68
+ default: '#cf5d00',
69
+ subtle: '#893900',
70
70
  },
71
71
  },
72
72
  },
@@ -109,9 +109,9 @@ export default {
109
109
  },
110
110
  surface: {
111
111
  strong: {
112
- active: '#c6b5e2',
113
- default: '#996cda',
114
- hover: '#af90de',
112
+ active: '#ddd5eb',
113
+ default: '#af90de',
114
+ hover: '#c6b5e2',
115
115
  },
116
116
  },
117
117
  },
@@ -197,52 +197,52 @@ export default {
197
197
  disabled: 50,
198
198
  },
199
199
  shadow: {
200
- brand: '#7a42c8',
201
- broadband: '#506c21',
202
- cashback: '#8b2bc9',
203
- default: '#f7f7f7',
204
- energy: '#326e7a',
205
- insurance: '#9b4c0e',
206
- mobile: '#a7266d',
207
- pig: '#8f358f',
200
+ brand: '#442484',
201
+ broadband: '#4f6b20',
202
+ cashback: '#7429b5',
203
+ default: '#3f3f3f',
204
+ energy: '#2c6370',
205
+ insurance: '#7f4518',
206
+ mobile: '#8a3260',
207
+ pig: '#7a1f7e',
208
208
  },
209
209
  surface: {
210
210
  brand: {
211
- default: '#996cda',
211
+ default: '#af90de',
212
212
  strong: '#26164f',
213
213
  subtle: '#442484',
214
214
  },
215
215
  broadband: {
216
216
  default: '#506c21',
217
- subtle: '#35421c',
217
+ subtle: '#4f6b20',
218
218
  },
219
219
  cashback: {
220
220
  default: '#8b2bc9',
221
- subtle: '#522270',
221
+ subtle: '#7429b5',
222
222
  },
223
223
  energy: {
224
224
  default: '#326e7a',
225
- subtle: '#254348',
225
+ subtle: '#2c6370',
226
226
  },
227
227
  highlight: {
228
228
  default: '#ffb921',
229
- subtle: '#756230',
229
+ subtle: '#82692b',
230
230
  },
231
231
  insurance: {
232
232
  default: '#9b4c0e',
233
- subtle: '#5a3213',
233
+ subtle: '#7f4518',
234
234
  },
235
235
  mobile: {
236
236
  default: '#a7266d',
237
- subtle: '#601f42',
237
+ subtle: '#8a3260',
238
238
  },
239
239
  neutral: {
240
- strong: '#232323',
240
+ strong: '#2f2d2d',
241
241
  subtle: '#191917',
242
242
  },
243
243
  pig: {
244
244
  default: '#8f358f',
245
- subtle: '#5d2167',
245
+ subtle: '#7a1f7e',
246
246
  },
247
247
  },
248
248
  text: {
package/vercel.json DELETED
@@ -1,21 +0,0 @@
1
- {
2
- "headers": [
3
- {
4
- "source": "/(stories|metadata).json",
5
- "headers": [
6
- {
7
- "key": "Access-Control-Allow-Origin",
8
- "value": "*"
9
- },
10
- {
11
- "key": "Access-Control-Allow-Methods",
12
- "value": "GET,OPTIONS"
13
- },
14
- {
15
- "key": "Access-Control-Allow-Headers",
16
- "value": "Content-Type"
17
- }
18
- ]
19
- }
20
- ]
21
- }