@utilitywarehouse/hearth-react-native 0.8.2 → 0.10.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 (157) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/.turbo/turbo-lint.log +1 -1
  3. package/CHANGELOG.md +16 -0
  4. package/build/components/Banner/Banner.js +25 -6
  5. package/build/components/Banner/Banner.props.d.ts +2 -2
  6. package/build/components/BottomSheet/BottomSheetHandle.js +8 -0
  7. package/build/components/Menu/Menu.context.d.ts +5 -0
  8. package/build/components/Menu/Menu.context.js +9 -0
  9. package/build/components/Menu/Menu.d.ts +4 -0
  10. package/build/components/Menu/Menu.js +25 -0
  11. package/build/components/Menu/Menu.props.d.ts +21 -0
  12. package/build/components/Menu/Menu.props.js +1 -0
  13. package/build/components/Menu/MenuItem.d.ts +18 -0
  14. package/build/components/Menu/MenuItem.js +115 -0
  15. package/build/components/Menu/MenuItem.props.d.ts +27 -0
  16. package/build/components/Menu/MenuItem.props.js +1 -0
  17. package/build/components/Menu/MenuTrigger.d.ts +9 -0
  18. package/build/components/Menu/MenuTrigger.js +11 -0
  19. package/build/components/Menu/MenuTrigger.props.d.ts +12 -0
  20. package/build/components/Menu/MenuTrigger.props.js +1 -0
  21. package/build/components/Menu/index.d.ts +7 -0
  22. package/build/components/Menu/index.js +4 -0
  23. package/build/components/Modal/Modal.d.ts +1 -1
  24. package/build/components/Modal/Modal.js +32 -30
  25. package/build/components/Modal/Modal.props.d.ts +1 -0
  26. package/build/components/Modal/Modal.web.d.ts +1 -1
  27. package/build/components/Modal/Modal.web.js +25 -25
  28. package/build/components/PillGroup/Pill.d.ts +16 -0
  29. package/build/components/PillGroup/Pill.js +94 -0
  30. package/build/components/PillGroup/Pill.props.d.ts +10 -0
  31. package/build/components/PillGroup/Pill.props.js +1 -0
  32. package/build/components/PillGroup/PillGroup.context.d.ts +6 -0
  33. package/build/components/PillGroup/PillGroup.context.js +5 -0
  34. package/build/components/PillGroup/PillGroup.d.ts +5 -0
  35. package/build/components/PillGroup/PillGroup.js +34 -0
  36. package/build/components/PillGroup/PillGroup.props.d.ts +15 -0
  37. package/build/components/PillGroup/PillGroup.props.js +1 -0
  38. package/build/components/PillGroup/index.d.ts +4 -0
  39. package/build/components/PillGroup/index.js +2 -0
  40. package/build/components/Select/Select.js +2 -1
  41. package/build/components/Toast/Toast.context.d.ts +9 -0
  42. package/build/components/Toast/Toast.context.js +90 -0
  43. package/build/components/Toast/Toast.props.d.ts +29 -0
  44. package/build/components/Toast/Toast.props.js +1 -0
  45. package/build/components/Toast/ToastItem.d.ts +10 -0
  46. package/build/components/Toast/ToastItem.js +129 -0
  47. package/build/components/Toast/index.d.ts +3 -0
  48. package/build/components/Toast/index.js +2 -0
  49. package/build/components/index.d.ts +3 -0
  50. package/build/components/index.js +3 -0
  51. package/build/tokens/components/dark/checkbox.d.ts +3 -0
  52. package/build/tokens/components/dark/checkbox.js +3 -0
  53. package/build/tokens/components/dark/index.d.ts +3 -1
  54. package/build/tokens/components/dark/index.js +3 -1
  55. package/build/tokens/components/dark/input.d.ts +9 -0
  56. package/build/tokens/components/dark/input.js +9 -0
  57. package/build/tokens/components/dark/modal.d.ts +7 -4
  58. package/build/tokens/components/dark/modal.js +7 -4
  59. package/build/tokens/components/dark/radio.d.ts +3 -0
  60. package/build/tokens/components/dark/radio.js +3 -0
  61. package/build/tokens/components/dark/rating.d.ts +8 -0
  62. package/build/tokens/components/dark/rating.js +7 -0
  63. package/build/tokens/components/dark/table.d.ts +2 -3
  64. package/build/tokens/components/dark/table.js +2 -3
  65. package/build/tokens/components/dark/time-picker.d.ts +29 -0
  66. package/build/tokens/components/dark/time-picker.js +28 -0
  67. package/build/tokens/components/dark/timeline.d.ts +27 -0
  68. package/build/tokens/components/dark/timeline.js +26 -0
  69. package/build/tokens/components/dark/toast.d.ts +6 -2
  70. package/build/tokens/components/dark/toast.js +6 -2
  71. package/build/tokens/components/light/checkbox.d.ts +3 -0
  72. package/build/tokens/components/light/checkbox.js +3 -0
  73. package/build/tokens/components/light/index.d.ts +3 -1
  74. package/build/tokens/components/light/index.js +3 -1
  75. package/build/tokens/components/light/input.d.ts +9 -0
  76. package/build/tokens/components/light/input.js +9 -0
  77. package/build/tokens/components/light/modal.d.ts +7 -4
  78. package/build/tokens/components/light/modal.js +7 -4
  79. package/build/tokens/components/light/radio.d.ts +3 -0
  80. package/build/tokens/components/light/radio.js +3 -0
  81. package/build/tokens/components/light/rating.d.ts +8 -0
  82. package/build/tokens/components/light/rating.js +7 -0
  83. package/build/tokens/components/light/table.d.ts +2 -3
  84. package/build/tokens/components/light/table.js +2 -3
  85. package/build/tokens/components/light/time-picker.d.ts +29 -0
  86. package/build/tokens/components/light/time-picker.js +28 -0
  87. package/build/tokens/components/light/timeline.d.ts +27 -0
  88. package/build/tokens/components/light/timeline.js +26 -0
  89. package/build/tokens/components/light/toast.d.ts +6 -2
  90. package/build/tokens/components/light/toast.js +6 -2
  91. package/docs/assets/toast-ios.MP4 +0 -0
  92. package/docs/components/AllComponents.web.tsx +59 -0
  93. package/docs/components/BackToTopButton.tsx +1 -1
  94. package/package.json +4 -4
  95. package/src/components/Banner/Banner.docs.mdx +19 -10
  96. package/src/components/Banner/Banner.props.ts +2 -2
  97. package/src/components/Banner/Banner.stories.tsx +1 -4
  98. package/src/components/Banner/Banner.tsx +47 -7
  99. package/src/components/BottomSheet/BottomSheetHandle.tsx +12 -0
  100. package/src/components/DatePickerInput/DatePickerInput.docs.mdx +1 -1
  101. package/src/components/Menu/Menu.context.ts +15 -0
  102. package/src/components/Menu/Menu.docs.mdx +158 -0
  103. package/src/components/Menu/Menu.props.ts +24 -0
  104. package/src/components/Menu/Menu.stories.tsx +292 -0
  105. package/src/components/Menu/Menu.tsx +54 -0
  106. package/src/components/Menu/MenuItem.props.ts +29 -0
  107. package/src/components/Menu/MenuItem.tsx +145 -0
  108. package/src/components/Menu/MenuTrigger.props.ts +14 -0
  109. package/src/components/Menu/MenuTrigger.tsx +20 -0
  110. package/src/components/Menu/index.ts +7 -0
  111. package/src/components/Modal/Modal.docs.mdx +34 -5
  112. package/src/components/Modal/Modal.props.ts +1 -0
  113. package/src/components/Modal/Modal.stories.tsx +46 -0
  114. package/src/components/Modal/Modal.tsx +37 -33
  115. package/src/components/Modal/Modal.web.tsx +27 -27
  116. package/src/components/PillGroup/Pill.props.ts +13 -0
  117. package/src/components/PillGroup/Pill.tsx +120 -0
  118. package/src/components/PillGroup/PillGroup.context.tsx +12 -0
  119. package/src/components/PillGroup/PillGroup.docs.mdx +96 -0
  120. package/src/components/PillGroup/PillGroup.props.ts +22 -0
  121. package/src/components/PillGroup/PillGroup.stories.tsx +159 -0
  122. package/src/components/PillGroup/PillGroup.tsx +66 -0
  123. package/src/components/PillGroup/index.ts +4 -0
  124. package/src/components/Select/Select.tsx +2 -0
  125. package/src/components/Toast/Toast.context.tsx +118 -0
  126. package/src/components/Toast/Toast.docs.mdx +164 -0
  127. package/src/components/Toast/Toast.props.ts +33 -0
  128. package/src/components/Toast/Toast.stories.tsx +356 -0
  129. package/src/components/Toast/ToastItem.tsx +200 -0
  130. package/src/components/Toast/index.ts +3 -0
  131. package/src/components/index.ts +3 -0
  132. package/src/tokens/components/dark/checkbox.ts +3 -0
  133. package/src/tokens/components/dark/index.ts +3 -1
  134. package/src/tokens/components/dark/input.ts +9 -0
  135. package/src/tokens/components/dark/modal.ts +7 -4
  136. package/src/tokens/components/dark/radio.ts +3 -0
  137. package/src/tokens/components/dark/rating.ts +8 -0
  138. package/src/tokens/components/dark/table.ts +2 -3
  139. package/src/tokens/components/dark/time-picker.ts +29 -0
  140. package/src/tokens/components/dark/timeline.ts +27 -0
  141. package/src/tokens/components/dark/toast.ts +6 -2
  142. package/src/tokens/components/light/checkbox.ts +3 -0
  143. package/src/tokens/components/light/index.ts +3 -1
  144. package/src/tokens/components/light/input.ts +9 -0
  145. package/src/tokens/components/light/modal.ts +7 -4
  146. package/src/tokens/components/light/radio.ts +3 -0
  147. package/src/tokens/components/light/rating.ts +8 -0
  148. package/src/tokens/components/light/table.ts +2 -3
  149. package/src/tokens/components/light/time-picker.ts +29 -0
  150. package/src/tokens/components/light/timeline.ts +27 -0
  151. package/src/tokens/components/light/toast.ts +6 -2
  152. package/build/tokens/components/dark/dialog.d.ts +0 -25
  153. package/build/tokens/components/dark/dialog.js +0 -24
  154. package/build/tokens/components/light/dialog.d.ts +0 -25
  155. package/build/tokens/components/light/dialog.js +0 -24
  156. package/src/tokens/components/dark/dialog.ts +0 -25
  157. package/src/tokens/components/light/dialog.ts +0 -25
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ export default {
6
+ gap: 6,
7
+ gapContainer: 4,
8
+ minWidth: 288,
9
+ paddingHorizontal: 16,
10
+ paddingVertical: 12,
11
+ time: {
12
+ columnGap: 4,
13
+ content: {
14
+ gap: 8,
15
+ item: {
16
+ gap: 2,
17
+ },
18
+ },
19
+ footer: {
20
+ gap: 8,
21
+ },
22
+ gap: 16,
23
+ item: {
24
+ height: 40,
25
+ width: 64,
26
+ },
27
+ rowGap: 2,
28
+ },
29
+ } as const;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ export default {
6
+ bar: {
7
+ width: 2,
8
+ },
9
+ content: {
10
+ gap: 8,
11
+ paddingBottom: 24,
12
+ paddingTop: 2,
13
+ },
14
+ gap: 12,
15
+ progress: {
16
+ circle: {
17
+ height: 24,
18
+ width: 24,
19
+ },
20
+ },
21
+ static: {
22
+ circle: {
23
+ height: 12,
24
+ width: 12,
25
+ },
26
+ },
27
+ } as const;
@@ -5,9 +5,13 @@
5
5
  export default {
6
6
  backgroundColor: '#3f3f3f',
7
7
  borderRadius: 8,
8
- gapHorizontal: 16,
8
+ bottomPosition: 32,
9
+ gap: 16,
9
10
  padding: 14,
10
11
  stack: {
11
- gapHorizontal: 8,
12
+ gap: 12,
13
+ },
14
+ text: {
15
+ gap: 8,
12
16
  },
13
17
  } as const;
@@ -28,6 +28,9 @@ export default {
28
28
  gap: 12,
29
29
  group: {
30
30
  gap: 6,
31
+ heading: {
32
+ gap: 2,
33
+ },
31
34
  stack: {
32
35
  gap: 12,
33
36
  },
@@ -18,7 +18,6 @@ export { default as carouselControl } from './carousel-control';
18
18
  export { default as checkbox } from './checkbox';
19
19
  export { default as datePicker } from './date-picker';
20
20
  export { default as descriptionList } from './description-list';
21
- export { default as dialog } from './dialog';
22
21
  export { default as divider } from './divider';
23
22
  export { default as drawer } from './drawer';
24
23
  export { default as expandableCard } from './expandable-card';
@@ -41,6 +40,7 @@ export { default as pill } from './pill';
41
40
  export { default as progressBar } from './progress-bar';
42
41
  export { default as progressStepper } from './progress-stepper';
43
42
  export { default as radio } from './radio';
43
+ export { default as rating } from './rating';
44
44
  export { default as sectionHeader } from './section-header';
45
45
  export { default as segmentedControl } from './segmented-control';
46
46
  export { default as select } from './select';
@@ -49,6 +49,8 @@ export { default as spinner } from './spinner';
49
49
  export { default as switch } from './switch';
50
50
  export { default as table } from './table';
51
51
  export { default as tabs } from './tabs';
52
+ export { default as timePicker } from './time-picker';
53
+ export { default as timeline } from './timeline';
52
54
  export { default as toast } from './toast';
53
55
  export { default as toggleButton } from './toggle-button';
54
56
  export { default as tooltip } from './tooltip';
@@ -14,6 +14,12 @@ export default {
14
14
  gap: 8,
15
15
  },
16
16
  gap: 6,
17
+ heading: {
18
+ gap: 12,
19
+ text: {
20
+ gap: 2,
21
+ },
22
+ },
17
23
  height: 48,
18
24
  label: {
19
25
  gap: 2,
@@ -22,6 +28,9 @@ export default {
22
28
  minWidth: 120,
23
29
  paddingHorizontal: 16,
24
30
  paddingVertical: 12,
31
+ stepper: {
32
+ gap: 4,
33
+ },
25
34
  textArea: {
26
35
  height: 96,
27
36
  },
@@ -11,17 +11,20 @@ export default {
11
11
  gap: 12,
12
12
  },
13
13
  gap: 24,
14
- padding: 16,
14
+ heading: {
15
+ gap: 24,
16
+ },
17
+ illustration: {
18
+ padding: 48,
19
+ },
20
+ padding: 24,
15
21
  mobile: {
16
- padding: 16,
17
22
  width: 360,
18
23
  },
19
24
  tablet: {
20
- padding: 48,
21
25
  width: 504,
22
26
  },
23
27
  desktop: {
24
- padding: 48,
25
28
  width: 680,
26
29
  },
27
30
  } as const;
@@ -25,6 +25,9 @@ export default {
25
25
  gap: 8,
26
26
  group: {
27
27
  gap: 12,
28
+ heading: {
29
+ gap: 2,
30
+ },
28
31
  stack: {
29
32
  gap: 12,
30
33
  },
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ export default {
6
+ borderWidth: 2,
7
+ gap: 4,
8
+ } as const;
@@ -6,6 +6,7 @@ export default {
6
6
  borderRadius: 16,
7
7
  cell: {
8
8
  borderWidth: 1,
9
+ minHeight: 48,
9
10
  padding: 12,
10
11
  },
11
12
  emphasis: {
@@ -14,9 +15,7 @@ export default {
14
15
  headerCell: {
15
16
  borderWidth: 2,
16
17
  gap: 8,
17
- neutral: {
18
- backgroundColor: '#f1efe4',
19
- },
18
+ height: 56,
20
19
  paddingHorizontal: 12,
21
20
  paddingVertical: 16,
22
21
  },
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ export default {
6
+ gap: 6,
7
+ gapContainer: 4,
8
+ minWidth: 288,
9
+ paddingHorizontal: 16,
10
+ paddingVertical: 12,
11
+ time: {
12
+ columnGap: 4,
13
+ content: {
14
+ gap: 8,
15
+ item: {
16
+ gap: 2,
17
+ },
18
+ },
19
+ footer: {
20
+ gap: 8,
21
+ },
22
+ gap: 16,
23
+ item: {
24
+ height: 40,
25
+ width: 64,
26
+ },
27
+ rowGap: 2,
28
+ },
29
+ } as const;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ export default {
6
+ bar: {
7
+ width: 2,
8
+ },
9
+ content: {
10
+ gap: 8,
11
+ paddingBottom: 24,
12
+ paddingTop: 2,
13
+ },
14
+ gap: 12,
15
+ progress: {
16
+ circle: {
17
+ height: 28,
18
+ width: 28,
19
+ },
20
+ },
21
+ static: {
22
+ circle: {
23
+ height: 12,
24
+ width: 12,
25
+ },
26
+ },
27
+ } as const;
@@ -5,9 +5,13 @@
5
5
  export default {
6
6
  backgroundColor: '#101010',
7
7
  borderRadius: 8,
8
- gapHorizontal: 16,
8
+ bottomPosition: 32,
9
+ gap: 16,
9
10
  padding: 14,
10
11
  stack: {
11
- gapHorizontal: 8,
12
+ gap: 12,
13
+ },
14
+ text: {
15
+ gap: 8,
12
16
  },
13
17
  } as const;
@@ -1,25 +0,0 @@
1
- /**
2
- * Do not edit directly, this file was auto-generated.
3
- */
4
- declare const _default: {
5
- readonly action: {
6
- readonly gap: 12;
7
- };
8
- readonly borderRadius: 16;
9
- readonly content: {
10
- readonly gap: 12;
11
- readonly paddingBottom: 12;
12
- };
13
- readonly gap: 24;
14
- readonly padding: 24;
15
- readonly mobile: {
16
- readonly width: 360;
17
- };
18
- readonly tablet: {
19
- readonly width: 504;
20
- };
21
- readonly desktop: {
22
- readonly width: 680;
23
- };
24
- };
25
- export default _default;
@@ -1,24 +0,0 @@
1
- /**
2
- * Do not edit directly, this file was auto-generated.
3
- */
4
- export default {
5
- action: {
6
- gap: 12,
7
- },
8
- borderRadius: 16,
9
- content: {
10
- gap: 12,
11
- paddingBottom: 12,
12
- },
13
- gap: 24,
14
- padding: 24,
15
- mobile: {
16
- width: 360,
17
- },
18
- tablet: {
19
- width: 504,
20
- },
21
- desktop: {
22
- width: 680,
23
- },
24
- };
@@ -1,25 +0,0 @@
1
- /**
2
- * Do not edit directly, this file was auto-generated.
3
- */
4
- declare const _default: {
5
- readonly action: {
6
- readonly gap: 12;
7
- };
8
- readonly borderRadius: 16;
9
- readonly content: {
10
- readonly gap: 12;
11
- readonly paddingBottom: 12;
12
- };
13
- readonly gap: 24;
14
- readonly padding: 24;
15
- readonly mobile: {
16
- readonly width: 360;
17
- };
18
- readonly tablet: {
19
- readonly width: 504;
20
- };
21
- readonly desktop: {
22
- readonly width: 680;
23
- };
24
- };
25
- export default _default;
@@ -1,24 +0,0 @@
1
- /**
2
- * Do not edit directly, this file was auto-generated.
3
- */
4
- export default {
5
- action: {
6
- gap: 12,
7
- },
8
- borderRadius: 16,
9
- content: {
10
- gap: 12,
11
- paddingBottom: 12,
12
- },
13
- gap: 24,
14
- padding: 24,
15
- mobile: {
16
- width: 360,
17
- },
18
- tablet: {
19
- width: 504,
20
- },
21
- desktop: {
22
- width: 680,
23
- },
24
- };
@@ -1,25 +0,0 @@
1
- /**
2
- * Do not edit directly, this file was auto-generated.
3
- */
4
-
5
- export default {
6
- action: {
7
- gap: 12,
8
- },
9
- borderRadius: 16,
10
- content: {
11
- gap: 12,
12
- paddingBottom: 12,
13
- },
14
- gap: 24,
15
- padding: 24,
16
- mobile: {
17
- width: 360,
18
- },
19
- tablet: {
20
- width: 504,
21
- },
22
- desktop: {
23
- width: 680,
24
- },
25
- } as const;
@@ -1,25 +0,0 @@
1
- /**
2
- * Do not edit directly, this file was auto-generated.
3
- */
4
-
5
- export default {
6
- action: {
7
- gap: 12,
8
- },
9
- borderRadius: 16,
10
- content: {
11
- gap: 12,
12
- paddingBottom: 12,
13
- },
14
- gap: 24,
15
- padding: 24,
16
- mobile: {
17
- width: 360,
18
- },
19
- tablet: {
20
- width: 504,
21
- },
22
- desktop: {
23
- width: 680,
24
- },
25
- } as const;