@utilitywarehouse/hearth-react-native 0.3.0 → 0.4.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 (313) hide show
  1. package/.storybook/preview.tsx +3 -0
  2. package/.turbo/turbo-build.log +1 -1
  3. package/.turbo/turbo-lint.log +3 -1
  4. package/CHANGELOG.md +22 -0
  5. package/build/components/Alert/AlertCloseButton.js +25 -3
  6. package/build/components/Alert/AlertIcon.js +17 -1
  7. package/build/components/Alert/AlertIconButton.js +27 -1
  8. package/build/components/Alert/AlertLink.js +47 -1
  9. package/build/components/Alert/AlertText.d.ts +1 -1
  10. package/build/components/Alert/AlertText.js +26 -2
  11. package/build/components/Alert/AlertTitle.d.ts +1 -1
  12. package/build/components/Alert/AlertTitle.js +26 -2
  13. package/build/components/Badge/BadgeIcon.js +72 -0
  14. package/build/components/Badge/BadgeText.js +72 -0
  15. package/build/components/Button/ButtonRoot.js +1 -0
  16. package/build/components/Checkbox/Checkbox.d.ts +2 -2
  17. package/build/components/Checkbox/Checkbox.js +11 -10
  18. package/build/components/Checkbox/Checkbox.props.d.ts +3 -1
  19. package/build/components/Checkbox/CheckboxIcon.js +1 -1
  20. package/build/components/Checkbox/CheckboxImage.d.ts +6 -0
  21. package/build/components/Checkbox/CheckboxImage.js +5 -0
  22. package/build/components/Checkbox/CheckboxTileRoot.js +1 -1
  23. package/build/components/Checkbox/index.d.ts +3 -2
  24. package/build/components/Checkbox/index.js +2 -1
  25. package/build/components/CurrencyInput/CurrencyInput.js +1 -1
  26. package/build/components/DatePicker/DatePicker.context.d.ts +19 -0
  27. package/build/components/DatePicker/DatePicker.context.js +3 -0
  28. package/build/components/DatePicker/DatePicker.d.ts +19 -0
  29. package/build/components/DatePicker/DatePicker.js +479 -0
  30. package/build/components/DatePicker/DatePicker.props.d.ts +125 -0
  31. package/build/components/DatePicker/DatePicker.props.js +1 -0
  32. package/build/components/DatePicker/DatePickerCalendar.d.ts +2 -0
  33. package/build/components/DatePicker/DatePickerCalendar.js +28 -0
  34. package/build/components/DatePicker/DatePickerDay.d.ts +11 -0
  35. package/build/components/DatePicker/DatePickerDay.js +242 -0
  36. package/build/components/DatePicker/DatePickerDays.d.ts +2 -0
  37. package/build/components/DatePicker/DatePickerDays.js +157 -0
  38. package/build/components/DatePicker/DatePickerFooter.d.ts +2 -0
  39. package/build/components/DatePicker/DatePickerFooter.js +23 -0
  40. package/build/components/DatePicker/DatePickerHeader/DatePickerHeader.props.d.ts +8 -0
  41. package/build/components/DatePicker/DatePickerHeader/DatePickerHeader.props.js +1 -0
  42. package/build/components/DatePicker/DatePickerHeader/DatePickerMonthButton.d.ts +2 -0
  43. package/build/components/DatePicker/DatePickerHeader/DatePickerMonthButton.js +14 -0
  44. package/build/components/DatePicker/DatePickerHeader/DatePickerNextButton.d.ts +2 -0
  45. package/build/components/DatePicker/DatePickerHeader/DatePickerNextButton.js +32 -0
  46. package/build/components/DatePicker/DatePickerHeader/DatePickerPrevButton.d.ts +2 -0
  47. package/build/components/DatePicker/DatePickerHeader/DatePickerPrevButton.js +32 -0
  48. package/build/components/DatePicker/DatePickerHeader/DatePickerSelectors.d.ts +6 -0
  49. package/build/components/DatePicker/DatePickerHeader/DatePickerSelectors.js +64 -0
  50. package/build/components/DatePicker/DatePickerHeader/DatePickerTimeButton.d.ts +1 -0
  51. package/build/components/DatePicker/DatePickerHeader/DatePickerTimeButton.js +22 -0
  52. package/build/components/DatePicker/DatePickerHeader/DatePickerYearButton.d.ts +2 -0
  53. package/build/components/DatePicker/DatePickerHeader/DatePickerYearButton.js +25 -0
  54. package/build/components/DatePicker/DatePickerHeader/index.d.ts +3 -0
  55. package/build/components/DatePicker/DatePickerHeader/index.js +30 -0
  56. package/build/components/DatePicker/DatePickerMonths.d.ts +2 -0
  57. package/build/components/DatePicker/DatePickerMonths.js +69 -0
  58. package/build/components/DatePicker/DatePickerWeekdays.d.ts +8 -0
  59. package/build/components/DatePicker/DatePickerWeekdays.js +26 -0
  60. package/build/components/DatePicker/DatePickerYears.d.ts +2 -0
  61. package/build/components/DatePicker/DatePickerYears.js +83 -0
  62. package/build/components/DatePicker/TimePicker.d.ts +3 -0
  63. package/build/components/DatePicker/TimePicker.js +84 -0
  64. package/build/components/DatePicker/enums.d.ts +12 -0
  65. package/build/components/DatePicker/enums.js +12 -0
  66. package/build/components/DatePicker/index.d.ts +4 -0
  67. package/build/components/DatePicker/index.js +3 -0
  68. package/build/components/DatePicker/polyfill.d.ts +0 -0
  69. package/build/components/DatePicker/polyfill.js +22 -0
  70. package/build/components/DatePicker/time-picker/animated-math.d.ts +4 -0
  71. package/build/components/DatePicker/time-picker/animated-math.js +19 -0
  72. package/build/components/DatePicker/time-picker/period-native.d.ts +6 -0
  73. package/build/components/DatePicker/time-picker/period-native.js +17 -0
  74. package/build/components/DatePicker/time-picker/period-picker.d.ts +6 -0
  75. package/build/components/DatePicker/time-picker/period-picker.js +10 -0
  76. package/build/components/DatePicker/time-picker/period-web.d.ts +6 -0
  77. package/build/components/DatePicker/time-picker/period-web.js +21 -0
  78. package/build/components/DatePicker/time-picker/wheel-native.d.ts +8 -0
  79. package/build/components/DatePicker/time-picker/wheel-native.js +19 -0
  80. package/build/components/DatePicker/time-picker/wheel-picker/index.d.ts +2 -0
  81. package/build/components/DatePicker/time-picker/wheel-picker/index.js +2 -0
  82. package/build/components/DatePicker/time-picker/wheel-picker/wheel-picker-item.d.ts +16 -0
  83. package/build/components/DatePicker/time-picker/wheel-picker/wheel-picker-item.js +97 -0
  84. package/build/components/DatePicker/time-picker/wheel-picker/wheel-picker.d.ts +21 -0
  85. package/build/components/DatePicker/time-picker/wheel-picker/wheel-picker.js +88 -0
  86. package/build/components/DatePicker/time-picker/wheel-picker/wheel-picker.style.d.ts +23 -0
  87. package/build/components/DatePicker/time-picker/wheel-picker/wheel-picker.style.js +21 -0
  88. package/build/components/DatePicker/time-picker/wheel-web.d.ts +8 -0
  89. package/build/components/DatePicker/time-picker/wheel-web.js +148 -0
  90. package/build/components/DatePicker/time-picker/wheel.d.ts +8 -0
  91. package/build/components/DatePicker/time-picker/wheel.js +10 -0
  92. package/build/components/DatePicker/utils.d.ts +212 -0
  93. package/build/components/DatePicker/utils.js +391 -0
  94. package/build/components/DatePickerInput/DatePickerInput.d.ts +6 -0
  95. package/build/components/DatePickerInput/DatePickerInput.js +126 -0
  96. package/build/components/DatePickerInput/DatePickerInput.props.d.ts +47 -0
  97. package/build/components/DatePickerInput/DatePickerInput.props.js +1 -0
  98. package/build/components/DatePickerInput/DatePickerInputDoneButton.d.ts +8 -0
  99. package/build/components/DatePickerInput/DatePickerInputDoneButton.js +19 -0
  100. package/build/components/DatePickerInput/DatePickerInputDoneButton.web.d.ts +5 -0
  101. package/build/components/DatePickerInput/DatePickerInputDoneButton.web.js +5 -0
  102. package/build/components/DatePickerInput/index.d.ts +2 -0
  103. package/build/components/DatePickerInput/index.js +1 -0
  104. package/build/components/Input/InputField.d.ts +1 -1
  105. package/build/components/Input/InputField.js +1 -1
  106. package/build/components/Input/InputSlot.d.ts +1 -1
  107. package/build/components/Input/InputSlot.js +3 -3
  108. package/build/components/Link/Link.d.ts +1 -1
  109. package/build/components/Link/Link.js +4 -4
  110. package/build/components/Link/Link.props.d.ts +3 -0
  111. package/build/components/Radio/Radio.d.ts +2 -2
  112. package/build/components/Radio/Radio.js +9 -8
  113. package/build/components/Radio/Radio.props.d.ts +3 -1
  114. package/build/components/Radio/RadioImage.d.ts +6 -0
  115. package/build/components/Radio/RadioImage.js +5 -0
  116. package/build/components/Radio/RadioTileRoot.js +1 -1
  117. package/build/components/Radio/index.d.ts +3 -2
  118. package/build/components/Radio/index.js +2 -1
  119. package/build/components/Select/SelectOption.js +1 -7
  120. package/build/components/UnstyledIconButton/UnstyledIconButton.d.ts +1 -1
  121. package/build/components/UnstyledIconButton/UnstyledIconButton.js +5 -5
  122. package/build/components/UnstyledIconButton/UnstyledIconButton.props.d.ts +2 -1
  123. package/build/components/UnstyledIconButton/UnstyledIconButtonRoot.js +1 -1
  124. package/build/components/index.d.ts +2 -0
  125. package/build/components/index.js +2 -0
  126. package/build/core/themes.d.ts +12 -12
  127. package/build/hooks/index.d.ts +4 -3
  128. package/build/hooks/index.js +4 -3
  129. package/build/hooks/usePrevious.d.ts +1 -0
  130. package/build/hooks/usePrevious.js +8 -0
  131. package/build/hooks/useTheme.d.ts +2 -1
  132. package/build/hooks/useTheme.js +2 -2
  133. package/build/tokens/color.d.ts +12 -12
  134. package/build/tokens/color.js +6 -6
  135. package/build/tokens/components/dark/alert.d.ts +13 -0
  136. package/build/tokens/components/dark/alert.js +13 -0
  137. package/build/tokens/components/dark/checkbox.d.ts +3 -0
  138. package/build/tokens/components/dark/checkbox.js +3 -0
  139. package/build/tokens/components/dark/date-picker.d.ts +1 -0
  140. package/build/tokens/components/dark/date-picker.js +1 -0
  141. package/build/tokens/components/dark/icon-button.d.ts +7 -0
  142. package/build/tokens/components/dark/icon-button.js +7 -0
  143. package/build/tokens/components/dark/illustrations.d.ts +7 -0
  144. package/build/tokens/components/dark/illustrations.js +6 -0
  145. package/build/tokens/components/dark/index.d.ts +2 -0
  146. package/build/tokens/components/dark/index.js +2 -0
  147. package/build/tokens/components/dark/link.d.ts +5 -0
  148. package/build/tokens/components/dark/link.js +5 -0
  149. package/build/tokens/components/dark/progress-bar.d.ts +41 -0
  150. package/build/tokens/components/dark/progress-bar.js +40 -0
  151. package/build/tokens/components/dark/segmented-control.d.ts +2 -2
  152. package/build/tokens/components/dark/segmented-control.js +2 -2
  153. package/build/tokens/components/dark/table.d.ts +3 -0
  154. package/build/tokens/components/dark/table.js +3 -0
  155. package/build/tokens/components/light/alert.d.ts +13 -0
  156. package/build/tokens/components/light/alert.js +13 -0
  157. package/build/tokens/components/light/checkbox.d.ts +3 -0
  158. package/build/tokens/components/light/checkbox.js +3 -0
  159. package/build/tokens/components/light/date-picker.d.ts +1 -0
  160. package/build/tokens/components/light/date-picker.js +1 -0
  161. package/build/tokens/components/light/icon-button.d.ts +7 -0
  162. package/build/tokens/components/light/icon-button.js +7 -0
  163. package/build/tokens/components/light/illustrations.d.ts +7 -0
  164. package/build/tokens/components/light/illustrations.js +6 -0
  165. package/build/tokens/components/light/index.d.ts +2 -0
  166. package/build/tokens/components/light/index.js +2 -0
  167. package/build/tokens/components/light/link.d.ts +5 -0
  168. package/build/tokens/components/light/link.js +5 -0
  169. package/build/tokens/components/light/progress-bar.d.ts +41 -0
  170. package/build/tokens/components/light/progress-bar.js +40 -0
  171. package/build/tokens/components/light/segmented-control.d.ts +2 -2
  172. package/build/tokens/components/light/segmented-control.js +2 -2
  173. package/build/tokens/components/light/table.d.ts +3 -0
  174. package/build/tokens/components/light/table.js +3 -0
  175. package/build/tokens/index.d.ts +1 -0
  176. package/build/tokens/index.js +1 -0
  177. package/build/tokens/motion.d.ts +23 -0
  178. package/build/tokens/motion.js +22 -0
  179. package/build/tokens/primitive.d.ts +19 -0
  180. package/build/tokens/primitive.js +19 -0
  181. package/build/tokens/semantic-dark.d.ts +5 -5
  182. package/build/tokens/semantic-dark.js +5 -5
  183. package/build/tokens/semantic-light.d.ts +1 -1
  184. package/build/tokens/semantic-light.js +1 -1
  185. package/build/utils/index.d.ts +1 -0
  186. package/build/utils/index.js +1 -0
  187. package/build/utils/isEqual.d.ts +2 -0
  188. package/build/utils/isEqual.js +29 -0
  189. package/chromatic.config.json +6 -0
  190. package/docs/assets/bank-logo.png +0 -0
  191. package/docs/assets/bank-logo1.png +0 -0
  192. package/docs/components/AllComponents.web.tsx +43 -1
  193. package/docs/components/ViewWrap.tsx +32 -0
  194. package/docs/components/index.ts +7 -7
  195. package/docs/getting-started.mdx +6 -6
  196. package/docs/introduction.mdx +3 -3
  197. package/package.json +16 -12
  198. package/src/components/Alert/AlertCloseButton.tsx +33 -5
  199. package/src/components/Alert/AlertIcon.tsx +17 -1
  200. package/src/components/Alert/AlertIconButton.tsx +37 -4
  201. package/src/components/Alert/AlertLink.tsx +52 -1
  202. package/src/components/Alert/AlertText.tsx +28 -3
  203. package/src/components/Alert/AlertTitle.tsx +28 -3
  204. package/src/components/Badge/BadgeIcon.tsx +72 -0
  205. package/src/components/Badge/BadgeText.tsx +72 -0
  206. package/src/components/Button/ButtonRoot.tsx +1 -0
  207. package/src/components/Checkbox/Checkbox.docs.mdx +45 -7
  208. package/src/components/Checkbox/Checkbox.props.ts +3 -1
  209. package/src/components/Checkbox/Checkbox.stories.tsx +37 -1
  210. package/src/components/Checkbox/Checkbox.tsx +12 -9
  211. package/src/components/Checkbox/CheckboxIcon.tsx +1 -1
  212. package/src/components/Checkbox/CheckboxImage.tsx +9 -0
  213. package/src/components/Checkbox/CheckboxTileRoot.tsx +1 -1
  214. package/src/components/Checkbox/index.ts +3 -2
  215. package/src/components/CurrencyInput/CurrencyInput.tsx +2 -1
  216. package/src/components/DatePicker/DatePicker.context.ts +23 -0
  217. package/src/components/DatePicker/DatePicker.docs.mdx +239 -0
  218. package/src/components/DatePicker/DatePicker.props.ts +139 -0
  219. package/src/components/DatePicker/DatePicker.stories.tsx +98 -0
  220. package/src/components/DatePicker/DatePicker.tsx +669 -0
  221. package/src/components/DatePicker/DatePickerCalendar.tsx +41 -0
  222. package/src/components/DatePicker/DatePickerDay.tsx +302 -0
  223. package/src/components/DatePicker/DatePickerDays.tsx +241 -0
  224. package/src/components/DatePicker/DatePickerFooter.tsx +35 -0
  225. package/src/components/DatePicker/DatePickerHeader/DatePickerHeader.props.ts +10 -0
  226. package/src/components/DatePicker/DatePickerHeader/DatePickerMonthButton.tsx +29 -0
  227. package/src/components/DatePicker/DatePickerHeader/DatePickerNextButton.tsx +46 -0
  228. package/src/components/DatePicker/DatePickerHeader/DatePickerPrevButton.tsx +46 -0
  229. package/src/components/DatePicker/DatePickerHeader/DatePickerSelectors.tsx +96 -0
  230. package/src/components/DatePicker/DatePickerHeader/DatePickerTimeButton.tsx +48 -0
  231. package/src/components/DatePicker/DatePickerHeader/DatePickerYearButton.tsx +50 -0
  232. package/src/components/DatePicker/DatePickerHeader/index.tsx +64 -0
  233. package/src/components/DatePicker/DatePickerMonths.tsx +101 -0
  234. package/src/components/DatePicker/DatePickerWeekdays.tsx +49 -0
  235. package/src/components/DatePicker/DatePickerYears.tsx +119 -0
  236. package/src/components/DatePicker/TimePicker.tsx +141 -0
  237. package/src/components/DatePicker/enums.ts +14 -0
  238. package/src/components/DatePicker/index.ts +13 -0
  239. package/src/components/DatePicker/polyfill.ts +21 -0
  240. package/src/components/DatePicker/time-picker/animated-math.ts +33 -0
  241. package/src/components/DatePicker/time-picker/period-native.tsx +34 -0
  242. package/src/components/DatePicker/time-picker/period-picker.tsx +16 -0
  243. package/src/components/DatePicker/time-picker/period-web.tsx +36 -0
  244. package/src/components/DatePicker/time-picker/wheel-native.tsx +37 -0
  245. package/src/components/DatePicker/time-picker/wheel-picker/index.ts +3 -0
  246. package/src/components/DatePicker/time-picker/wheel-picker/wheel-picker-item.tsx +132 -0
  247. package/src/components/DatePicker/time-picker/wheel-picker/wheel-picker.style.ts +22 -0
  248. package/src/components/DatePicker/time-picker/wheel-picker/wheel-picker.tsx +200 -0
  249. package/src/components/DatePicker/time-picker/wheel-web.tsx +181 -0
  250. package/src/components/DatePicker/time-picker/wheel.tsx +18 -0
  251. package/src/components/DatePicker/utils.ts +549 -0
  252. package/src/components/DatePickerInput/DatePickerInput.docs.mdx +237 -0
  253. package/src/components/DatePickerInput/DatePickerInput.props.ts +50 -0
  254. package/src/components/DatePickerInput/DatePickerInput.stories.tsx +178 -0
  255. package/src/components/DatePickerInput/DatePickerInput.tsx +265 -0
  256. package/src/components/DatePickerInput/DatePickerInputDoneButton.tsx +42 -0
  257. package/src/components/DatePickerInput/DatePickerInputDoneButton.web.tsx +7 -0
  258. package/src/components/DatePickerInput/index.ts +2 -0
  259. package/src/components/Icon/Icon.stories.tsx +4 -3
  260. package/src/components/IconContainer/IconContainer.docs.mdx +4 -4
  261. package/src/components/Input/InputField.tsx +0 -2
  262. package/src/components/Input/InputSlot.tsx +14 -3
  263. package/src/components/Link/Link.props.ts +3 -0
  264. package/src/components/Link/Link.tsx +12 -6
  265. package/src/components/List/List.docs.mdx +24 -23
  266. package/src/components/Modal/Modal.stories.tsx +2 -30
  267. package/src/components/Radio/Radio.docs.mdx +96 -124
  268. package/src/components/Radio/Radio.props.ts +3 -1
  269. package/src/components/Radio/Radio.stories.tsx +47 -0
  270. package/src/components/Radio/Radio.tsx +10 -7
  271. package/src/components/Radio/RadioImage.tsx +9 -0
  272. package/src/components/Radio/RadioTileRoot.tsx +1 -1
  273. package/src/components/Radio/index.ts +3 -2
  274. package/src/components/Select/Select.docs.mdx +6 -6
  275. package/src/components/Select/Select.stories.tsx +7 -7
  276. package/src/components/Select/SelectOption.tsx +4 -10
  277. package/src/components/UnstyledIconButton/UnstyledIconButton.props.ts +2 -1
  278. package/src/components/UnstyledIconButton/UnstyledIconButton.tsx +23 -5
  279. package/src/components/UnstyledIconButton/UnstyledIconButtonRoot.tsx +7 -3
  280. package/src/components/index.ts +2 -0
  281. package/src/hooks/index.ts +4 -3
  282. package/src/hooks/usePrevious.ts +9 -0
  283. package/src/hooks/useTheme.ts +4 -3
  284. package/src/tokens/color.ts +6 -6
  285. package/src/tokens/components/dark/alert.ts +13 -0
  286. package/src/tokens/components/dark/checkbox.ts +3 -0
  287. package/src/tokens/components/dark/date-picker.ts +1 -0
  288. package/src/tokens/components/dark/icon-button.ts +7 -0
  289. package/src/tokens/components/dark/illustrations.ts +7 -0
  290. package/src/tokens/components/dark/index.ts +2 -0
  291. package/src/tokens/components/dark/link.ts +5 -0
  292. package/src/tokens/components/dark/progress-bar.ts +41 -0
  293. package/src/tokens/components/dark/segmented-control.ts +2 -2
  294. package/src/tokens/components/dark/table.ts +3 -0
  295. package/src/tokens/components/light/alert.ts +13 -0
  296. package/src/tokens/components/light/checkbox.ts +3 -0
  297. package/src/tokens/components/light/date-picker.ts +1 -0
  298. package/src/tokens/components/light/icon-button.ts +7 -0
  299. package/src/tokens/components/light/illustrations.ts +7 -0
  300. package/src/tokens/components/light/index.ts +2 -0
  301. package/src/tokens/components/light/link.ts +5 -0
  302. package/src/tokens/components/light/progress-bar.ts +41 -0
  303. package/src/tokens/components/light/segmented-control.ts +2 -2
  304. package/src/tokens/components/light/table.ts +3 -0
  305. package/src/tokens/index.ts +1 -0
  306. package/src/tokens/motion.ts +23 -0
  307. package/src/tokens/primitive.ts +19 -0
  308. package/src/tokens/semantic-dark.ts +5 -5
  309. package/src/tokens/semantic-light.ts +1 -1
  310. package/src/utils/index.ts +1 -0
  311. package/src/utils/isEqual.ts +30 -0
  312. package/docs/assets/react-native-pig.png +0 -0
  313. package/docs/components/AdvancedRadioExample.tsx +0 -126
@@ -73,6 +73,9 @@ const preview = {
73
73
  'Hooks',
74
74
  'Layout Components',
75
75
  'All Components',
76
+ 'Primitives',
77
+ 'Typography',
78
+ 'Forms',
76
79
  ],
77
80
  },
78
81
  },
@@ -1,4 +1,4 @@
1
1
 
2
- > @utilitywarehouse/hearth-react-native@0.3.0 build /home/runner/work/hearth/hearth/packages/react-native
2
+ > @utilitywarehouse/hearth-react-native@0.4.0 build /home/runner/work/hearth/hearth/packages/react-native
3
3
  > tsc
4
4
 
@@ -1,6 +1,8 @@
1
1
 
2
- > @utilitywarehouse/hearth-react-native@0.3.0 lint /home/runner/work/hearth/hearth/packages/react-native
2
+ > @utilitywarehouse/hearth-react-native@0.4.0 lint /home/runner/work/hearth/hearth/packages/react-native
3
3
  > TIMING=1 eslint --max-warnings 0
4
4
 
5
5
  Rule | Time (ms) | Relative
6
6
  :----|----------:|--------:
7
+ Rule | Time (ms) | Relative
8
+ :----|----------:|--------:
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @utilitywarehouse/hearth-react-native
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#511](https://github.com/utilitywarehouse/hearth/pull/511) [`04f804c`](https://github.com/utilitywarehouse/hearth/commit/04f804ca93d6e8881f649a0374a3b878c3217623) Thanks [@jordmccord](https://github.com/jordmccord)! - Adds `DatePicker` and `DatePickerInput` components
8
+
9
+ ### Patch Changes
10
+
11
+ - [#511](https://github.com/utilitywarehouse/hearth/pull/511) [`04f804c`](https://github.com/utilitywarehouse/hearth/commit/04f804ca93d6e8881f649a0374a3b878c3217623) Thanks [@jordmccord](https://github.com/jordmccord)! - Fixes `useTheme` typing
12
+
13
+ ## 0.3.1
14
+
15
+ ### Patch Changes
16
+
17
+ - [#472](https://github.com/utilitywarehouse/hearth/pull/472) [`009fe4b`](https://github.com/utilitywarehouse/hearth/commit/009fe4bff4fc54e424f22629040f715d3d4714ea) Thanks [@jordmccord](https://github.com/jordmccord)! - Add `image` prop to `Checkbox` and `Radio` components
18
+
19
+ - [#500](https://github.com/utilitywarehouse/hearth/pull/500) [`cc49e74`](https://github.com/utilitywarehouse/hearth/commit/cc49e74e3736b9647e8c5576ce45020add258625) Thanks [@jordmccord](https://github.com/jordmccord)! - - Updated dependencies [[`8dac8c1`](https://github.com/utilitywarehouse/hearth/commit/8dac8c1def9083d8e4efa1385e0ee7be23428c46)]:
20
+
21
+ - @utilitywarehouse/hearth-react-native-icons@0.4.0
22
+
23
+ - [#499](https://github.com/utilitywarehouse/hearth/pull/499) [`7b6781c`](https://github.com/utilitywarehouse/hearth/commit/7b6781cc054cf9f1ed4969a2c663abceb526c249) Thanks [@jordmccord](https://github.com/jordmccord)! - Fixes dark mode styles for several components
24
+
3
25
  ## 0.3.0
4
26
 
5
27
  ### Minor Changes
@@ -2,14 +2,36 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { CloseSmallIcon } from '@utilitywarehouse/hearth-react-native-icons';
3
3
  import { StyleSheet } from 'react-native-unistyles';
4
4
  import { UnstyledIconButton } from '../UnstyledIconButton';
5
- const AlertCloseButton = ({ style, icon = CloseSmallIcon, ...props }) => (_jsx(UnstyledIconButton, { ...props, size: "sm", style: [styles.icon, style], icon: icon }));
5
+ import { useAlertContext } from './Alert.context';
6
+ const AlertCloseButton = ({ style, icon = CloseSmallIcon, ...props }) => {
7
+ const { colorScheme } = useAlertContext();
8
+ styles.useVariants({ colorScheme });
9
+ return (_jsx(UnstyledIconButton, { ...props, size: "sm", style: [styles.button, style], icon: icon, iconStyle: styles.icon }));
10
+ };
6
11
  const styles = StyleSheet.create(theme => ({
7
- icon: {
12
+ button: {
8
13
  alignSelf: 'flex-start',
9
- color: theme.color.icon.primary,
10
14
  minWidth: 20,
11
15
  minHeight: 20,
12
16
  },
17
+ icon: {
18
+ variants: {
19
+ colorScheme: {
20
+ info: {
21
+ color: theme.color.feedback.info.foreground.default,
22
+ },
23
+ positive: {
24
+ color: theme.color.feedback.positive.foreground.default,
25
+ },
26
+ danger: {
27
+ color: theme.color.feedback.danger.foreground.default,
28
+ },
29
+ warning: {
30
+ color: theme.color.feedback.warning.foreground.default,
31
+ },
32
+ },
33
+ },
34
+ },
13
35
  }));
14
36
  AlertCloseButton.displayName = 'AlertCloseButton';
15
37
  export default AlertCloseButton;
@@ -14,6 +14,7 @@ const AlertIcon = (props) => {
14
14
  }
15
15
  return InfoMediumIcon;
16
16
  })();
17
+ styles.useVariants({ colorScheme });
17
18
  return _jsx(Icon, { ...props, as: props.as ?? asProp, style: styles.icon });
18
19
  };
19
20
  AlertIcon.displayName = 'AlertIcon';
@@ -24,7 +25,22 @@ const styles = StyleSheet.create(theme => ({
24
25
  minWidth: 24,
25
26
  minHeight: 24,
26
27
  alignSelf: 'flex-start',
27
- color: theme.color.icon.primary,
28
+ variants: {
29
+ colorScheme: {
30
+ info: {
31
+ color: theme.color.feedback.info.foreground.default,
32
+ },
33
+ positive: {
34
+ color: theme.color.feedback.positive.foreground.default,
35
+ },
36
+ danger: {
37
+ color: theme.color.feedback.danger.foreground.default,
38
+ },
39
+ warning: {
40
+ color: theme.color.feedback.warning.foreground.default,
41
+ },
42
+ },
43
+ },
28
44
  },
29
45
  }));
30
46
  export default AlertIcon;
@@ -1,6 +1,32 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { ChevronRightSmallIcon } from '@utilitywarehouse/hearth-react-native-icons';
3
+ import { StyleSheet } from 'react-native-unistyles';
3
4
  import { UnstyledIconButton } from '../UnstyledIconButton';
4
- const AlertIconButton = ({ style, icon = ChevronRightSmallIcon, ...props }) => (_jsx(UnstyledIconButton, { ...props, size: "sm", style: style, icon: icon }));
5
+ import { useAlertContext } from './Alert.context';
6
+ const AlertIconButton = ({ style, icon = ChevronRightSmallIcon, ...props }) => {
7
+ const { colorScheme } = useAlertContext();
8
+ styles.useVariants({ colorScheme });
9
+ return (_jsx(UnstyledIconButton, { ...props, size: "sm", style: style, icon: icon, iconStyle: styles.icon }));
10
+ };
11
+ const styles = StyleSheet.create(theme => ({
12
+ icon: {
13
+ variants: {
14
+ colorScheme: {
15
+ info: {
16
+ color: theme.color.feedback.info.foreground.default,
17
+ },
18
+ positive: {
19
+ color: theme.color.feedback.positive.foreground.default,
20
+ },
21
+ danger: {
22
+ color: theme.color.feedback.danger.foreground.default,
23
+ },
24
+ warning: {
25
+ color: theme.color.feedback.warning.foreground.default,
26
+ },
27
+ },
28
+ },
29
+ },
30
+ }));
5
31
  AlertIconButton.displayName = 'AlertIconButton';
6
32
  export default AlertIconButton;
@@ -1,7 +1,53 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { StyleSheet } from 'react-native-unistyles';
2
3
  import { Link } from '../Link';
4
+ import { useAlertContext } from './Alert.context';
3
5
  const AlertLink = ({ children, ...props }) => {
4
- return _jsx(Link, { ...props, children: children });
6
+ const { colorScheme } = useAlertContext();
7
+ styles.useVariants({ colorScheme });
8
+ return (_jsx(Link, { ...props, textStyle: styles.text, iconStyle: styles.icon, children: children }));
5
9
  };
10
+ const styles = StyleSheet.create(theme => ({
11
+ text: {
12
+ variants: {
13
+ colorScheme: {
14
+ info: {
15
+ color: theme.color.feedback.info.foreground.default,
16
+ textDecorationColor: theme.color.feedback.info.foreground.default,
17
+ },
18
+ positive: {
19
+ color: theme.color.feedback.positive.foreground.default,
20
+ textDecorationColor: theme.color.feedback.positive.foreground.default,
21
+ },
22
+ danger: {
23
+ color: theme.color.feedback.danger.foreground.default,
24
+ textDecorationColor: theme.color.feedback.danger.foreground.default,
25
+ },
26
+ warning: {
27
+ color: theme.color.feedback.warning.foreground.default,
28
+ textDecorationColor: theme.color.feedback.warning.foreground.default,
29
+ },
30
+ },
31
+ },
32
+ },
33
+ icon: {
34
+ variants: {
35
+ colorScheme: {
36
+ info: {
37
+ color: theme.color.feedback.info.foreground.default,
38
+ },
39
+ positive: {
40
+ color: theme.color.feedback.positive.foreground.default,
41
+ },
42
+ danger: {
43
+ color: theme.color.feedback.danger.foreground.default,
44
+ },
45
+ warning: {
46
+ color: theme.color.feedback.warning.foreground.default,
47
+ },
48
+ },
49
+ },
50
+ },
51
+ }));
6
52
  AlertLink.displayName = 'AlertLink';
7
53
  export default AlertLink;
@@ -1,6 +1,6 @@
1
1
  import { TextProps } from 'react-native';
2
2
  declare const AlertText: {
3
- ({ children, ...props }: TextProps & {
3
+ ({ children, style, ...props }: TextProps & {
4
4
  semibold?: boolean;
5
5
  }): import("react/jsx-runtime").JSX.Element;
6
6
  displayName: string;
@@ -1,7 +1,31 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { StyleSheet } from 'react-native-unistyles';
2
3
  import { BodyText } from '../BodyText';
3
- const AlertText = ({ children, ...props }) => {
4
- return (_jsx(BodyText, { size: "md", ...props, children: children }));
4
+ import { useAlertContext } from './Alert.context';
5
+ const AlertText = ({ children, style, ...props }) => {
6
+ const { colorScheme } = useAlertContext();
7
+ styles.useVariants({ colorScheme });
8
+ return (_jsx(BodyText, { size: "md", style: [styles.text, style], ...props, children: children }));
5
9
  };
10
+ const styles = StyleSheet.create(theme => ({
11
+ text: {
12
+ variants: {
13
+ colorScheme: {
14
+ info: {
15
+ color: theme.color.feedback.info.foreground.default,
16
+ },
17
+ positive: {
18
+ color: theme.color.feedback.positive.foreground.default,
19
+ },
20
+ danger: {
21
+ color: theme.color.feedback.danger.foreground.default,
22
+ },
23
+ warning: {
24
+ color: theme.color.feedback.warning.foreground.default,
25
+ },
26
+ },
27
+ },
28
+ },
29
+ }));
6
30
  AlertText.displayName = 'AlertText';
7
31
  export default AlertText;
@@ -1,6 +1,6 @@
1
1
  import type { TextProps } from 'react-native';
2
2
  declare const AlertTitle: {
3
- ({ children, ...props }: TextProps): import("react/jsx-runtime").JSX.Element;
3
+ ({ children, style, ...props }: TextProps): import("react/jsx-runtime").JSX.Element;
4
4
  displayName: string;
5
5
  };
6
6
  export default AlertTitle;
@@ -1,7 +1,31 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { StyleSheet } from 'react-native-unistyles';
2
3
  import { DetailText } from '../DetailText';
3
- const AlertTitle = ({ children, ...props }) => {
4
- return (_jsx(DetailText, { size: "md", ...props, children: children }));
4
+ import { useAlertContext } from './Alert.context';
5
+ const AlertTitle = ({ children, style, ...props }) => {
6
+ const { colorScheme } = useAlertContext();
7
+ styles.useVariants({ colorScheme });
8
+ return (_jsx(DetailText, { size: "md", style: [styles.title, style], ...props, children: children }));
5
9
  };
10
+ const styles = StyleSheet.create(theme => ({
11
+ title: {
12
+ variants: {
13
+ colorScheme: {
14
+ info: {
15
+ color: theme.color.feedback.info.foreground,
16
+ },
17
+ positive: {
18
+ color: theme.color.feedback.positive.foreground,
19
+ },
20
+ danger: {
21
+ color: theme.color.feedback.danger.foreground,
22
+ },
23
+ warning: {
24
+ color: theme.color.feedback.warning.foreground,
25
+ },
26
+ },
27
+ },
28
+ },
29
+ }));
6
30
  AlertTitle.displayName = 'AlertTitle';
7
31
  export default AlertTitle;
@@ -40,6 +40,78 @@ const styles = StyleSheet.create(theme => ({
40
40
  },
41
41
  },
42
42
  compoundVariants: [
43
+ // Emphasis
44
+ {
45
+ colorScheme: 'info',
46
+ variant: 'emphasis',
47
+ styles: {
48
+ color: theme.color.feedback.info.foreground.default,
49
+ },
50
+ },
51
+ {
52
+ colorScheme: 'danger',
53
+ variant: 'emphasis',
54
+ styles: {
55
+ color: theme.color.feedback.danger.foreground.default,
56
+ },
57
+ },
58
+ {
59
+ colorScheme: 'positive',
60
+ variant: 'emphasis',
61
+ styles: {
62
+ color: theme.color.feedback.positive.foreground.default,
63
+ },
64
+ },
65
+ {
66
+ colorScheme: 'warning',
67
+ variant: 'emphasis',
68
+ styles: {
69
+ color: theme.color.feedback.warning.foreground.default,
70
+ },
71
+ },
72
+ {
73
+ colorScheme: 'functional',
74
+ variant: 'emphasis',
75
+ styles: {
76
+ color: theme.color.feedback.functional.foreground.default,
77
+ },
78
+ },
79
+ // Subtle
80
+ {
81
+ colorScheme: 'info',
82
+ variant: 'subtle',
83
+ styles: {
84
+ color: theme.color.feedback.info.foreground.default,
85
+ },
86
+ },
87
+ {
88
+ colorScheme: 'danger',
89
+ variant: 'subtle',
90
+ styles: {
91
+ color: theme.color.feedback.danger.foreground.default,
92
+ },
93
+ },
94
+ {
95
+ colorScheme: 'positive',
96
+ variant: 'subtle',
97
+ styles: {
98
+ color: theme.color.feedback.positive.foreground.default,
99
+ },
100
+ },
101
+ {
102
+ colorScheme: 'warning',
103
+ variant: 'subtle',
104
+ styles: {
105
+ color: theme.color.feedback.warning.foreground.default,
106
+ },
107
+ },
108
+ {
109
+ colorScheme: 'functional',
110
+ variant: 'subtle',
111
+ styles: {
112
+ color: theme.color.feedback.functional.foreground.default,
113
+ },
114
+ },
43
115
  // Outline
44
116
  {
45
117
  colorScheme: 'info',
@@ -36,6 +36,78 @@ const styles = StyleSheet.create(theme => ({
36
36
  },
37
37
  },
38
38
  compoundVariants: [
39
+ // Emphasis
40
+ {
41
+ colorScheme: 'info',
42
+ variant: 'emphasis',
43
+ styles: {
44
+ color: theme.color.feedback.info.foreground.default,
45
+ },
46
+ },
47
+ {
48
+ colorScheme: 'danger',
49
+ variant: 'emphasis',
50
+ styles: {
51
+ color: theme.color.feedback.danger.foreground.default,
52
+ },
53
+ },
54
+ {
55
+ colorScheme: 'positive',
56
+ variant: 'emphasis',
57
+ styles: {
58
+ color: theme.color.feedback.positive.foreground.default,
59
+ },
60
+ },
61
+ {
62
+ colorScheme: 'warning',
63
+ variant: 'emphasis',
64
+ styles: {
65
+ color: theme.color.feedback.warning.foreground.default,
66
+ },
67
+ },
68
+ {
69
+ colorScheme: 'functional',
70
+ variant: 'emphasis',
71
+ styles: {
72
+ color: theme.color.feedback.functional.foreground.default,
73
+ },
74
+ },
75
+ // Subtle
76
+ {
77
+ colorScheme: 'info',
78
+ variant: 'subtle',
79
+ styles: {
80
+ color: theme.color.feedback.info.foreground.default,
81
+ },
82
+ },
83
+ {
84
+ colorScheme: 'danger',
85
+ variant: 'subtle',
86
+ styles: {
87
+ color: theme.color.feedback.danger.foreground.default,
88
+ },
89
+ },
90
+ {
91
+ colorScheme: 'positive',
92
+ variant: 'subtle',
93
+ styles: {
94
+ color: theme.color.feedback.positive.foreground.default,
95
+ },
96
+ },
97
+ {
98
+ colorScheme: 'warning',
99
+ variant: 'subtle',
100
+ styles: {
101
+ color: theme.color.feedback.warning.foreground.default,
102
+ },
103
+ },
104
+ {
105
+ colorScheme: 'functional',
106
+ variant: 'subtle',
107
+ styles: {
108
+ color: theme.color.feedback.functional.foreground.default,
109
+ },
110
+ },
39
111
  // Outline
40
112
  {
41
113
  colorScheme: 'info',
@@ -177,6 +177,7 @@ const styles = StyleSheet.create(theme => ({
177
177
  colorScheme: 'affirmative',
178
178
  styles: {
179
179
  backgroundColor: theme.color.interactive.affirmative.surface.strong.default,
180
+ borderColor: theme.color.interactive.affirmative.border.strong,
180
181
  _web: {
181
182
  _hover: {
182
183
  backgroundColor: theme.color.interactive.affirmative.surface.strong.hover,
@@ -10,12 +10,12 @@ declare const CheckboxIcon: import("react").ForwardRefExoticComponent<import("re
10
10
  }>;
11
11
  declare const CheckboxLabel: import("react").ForwardRefExoticComponent<import("react").RefAttributes<import("../Label/Label.props").default> & Omit<import("../Label/Label.props").default, "ref">>;
12
12
  declare const Checkbox: {
13
- ({ children, label, disabled, checked, helperIcon, helperText, invalidText, validText, validationStatus: validation, showValidationIcon, type, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
13
+ ({ children, label, disabled, checked, helperIcon, helperText, invalidText, validText, validationStatus: validation, showValidationIcon, type, image, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
14
14
  displayName: string;
15
15
  };
16
16
  declare const CheckboxTile: {
17
17
  ({ type, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
18
18
  displayName: string;
19
19
  };
20
- export { Checkbox, CheckboxGroup, CheckboxIndicator, CheckboxIcon, CheckboxLabel, CheckboxTile };
20
+ export { Checkbox, CheckboxGroup, CheckboxIcon, CheckboxIndicator, CheckboxLabel, CheckboxTile };
21
21
  export default Checkbox;
@@ -1,15 +1,16 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { createCheckbox } from '@gluestack-ui/checkbox';
3
- import StyledCheckbox from './CheckboxRoot';
4
- import StyledCheckboxIndicator from './CheckboxIndicator';
5
- import StyledCheckboxIcon from './CheckboxIcon';
6
- import StyledCheckboxLabel from './CheckboxLabel';
7
- import StyledCheckboxGroup from './CheckboxGroupRoot';
3
+ import { useFormFieldContext } from '../FormField';
8
4
  import { Helper } from '../Helper';
9
5
  import { useCheckboxGroupContext } from './CheckboxGroup.context';
10
- import { useFormFieldContext } from '../FormField';
11
- import CheckboxTileRoot from './CheckboxTileRoot';
6
+ import StyledCheckboxGroup from './CheckboxGroupRoot';
7
+ import StyledCheckboxIcon from './CheckboxIcon';
8
+ import CheckboxImage from './CheckboxImage';
9
+ import StyledCheckboxIndicator from './CheckboxIndicator';
10
+ import StyledCheckboxLabel from './CheckboxLabel';
11
+ import StyledCheckbox from './CheckboxRoot';
12
12
  import CheckboxTextContent from './CheckboxTextContent';
13
+ import CheckboxTileRoot from './CheckboxTileRoot';
13
14
  const CheckboxComponent = createCheckbox({
14
15
  Root: StyledCheckbox,
15
16
  Group: StyledCheckboxGroup,
@@ -25,12 +26,12 @@ CheckboxGroup.displayName = 'CheckboxGroup';
25
26
  CheckboxIndicator.displayName = 'CheckboxIndicator';
26
27
  CheckboxIcon.displayName = 'CheckboxIcon';
27
28
  CheckboxLabel.displayName = 'CheckboxLabel';
28
- const Checkbox = ({ children, label, disabled, checked, helperIcon, helperText, invalidText, validText, validationStatus: validation, showValidationIcon, type = 'default', ...props }) => {
29
+ const Checkbox = ({ children, label, disabled, checked, helperIcon, helperText, invalidText, validText, validationStatus: validation, showValidationIcon, type = 'default', image, ...props }) => {
29
30
  const { validationStatus: fieldValidationStatus } = useFormFieldContext();
30
31
  const { validationStatus: groupValidationStatus, type: groupType } = useCheckboxGroupContext();
31
32
  const validationStatus = fieldValidationStatus ?? groupValidationStatus ?? validation ?? 'initial';
32
33
  const checkboxType = groupType ?? type;
33
- const checkboxChildren = children ? (children) : (_jsxs(_Fragment, { children: [_jsx(CheckboxIndicator, { children: _jsx(CheckboxIcon, {}) }), _jsxs(CheckboxTextContent, { children: [!!label && _jsx(CheckboxLabel, { children: label }), !!helperText && _jsx(Helper, { disabled: disabled, icon: helperIcon, text: helperText }), validationStatus === 'invalid' && !!invalidText && (_jsx(Helper, { showIcon: showValidationIcon, disabled: disabled, validationStatus: "invalid", text: invalidText })), validationStatus === 'valid' && !!validText && (_jsx(Helper, { disabled: disabled, showIcon: showValidationIcon, validationStatus: "valid", text: validText }))] })] }));
34
+ const checkboxChildren = children ? (children) : (_jsxs(_Fragment, { children: [_jsx(CheckboxIndicator, { children: _jsx(CheckboxIcon, {}) }), image ? _jsx(CheckboxImage, { ...image }) : null, _jsxs(CheckboxTextContent, { children: [!!label && _jsx(CheckboxLabel, { children: label }), !!helperText && _jsx(Helper, { disabled: disabled, icon: helperIcon, text: helperText }), validationStatus === 'invalid' && !!invalidText && (_jsx(Helper, { showIcon: showValidationIcon, disabled: disabled, validationStatus: "invalid", text: invalidText })), validationStatus === 'valid' && !!validText && (_jsx(Helper, { disabled: disabled, showIcon: showValidationIcon, validationStatus: "valid", text: validText }))] })] }));
34
35
  return (
35
36
  // @ts-expect-error - type
36
37
  _jsx(CheckboxComponent, { ...props, isDisabled: disabled, isChecked: checked, children: checkboxType === 'tile' ? (_jsx(CheckboxTileRoot, { children: checkboxChildren })) : (checkboxChildren) }));
@@ -40,5 +41,5 @@ const CheckboxTile = ({ type = 'tile', ...props }) => {
40
41
  };
41
42
  CheckboxTile.displayName = 'CheckboxTile';
42
43
  Checkbox.displayName = 'Checkbox';
43
- export { Checkbox, CheckboxGroup, CheckboxIndicator, CheckboxIcon, CheckboxLabel, CheckboxTile };
44
+ export { Checkbox, CheckboxGroup, CheckboxIcon, CheckboxIndicator, CheckboxLabel, CheckboxTile };
44
45
  export default Checkbox;
@@ -1,5 +1,5 @@
1
1
  import type { ComponentType } from 'react';
2
- import type { PressableProps, ViewProps } from 'react-native';
2
+ import type { ImageProps, PressableProps, ViewProps } from 'react-native';
3
3
  type CheckboxBaseProps = {
4
4
  onChange?: (isSelected: boolean) => void;
5
5
  disabled?: boolean;
@@ -20,6 +20,7 @@ type CheckboxWithChildrenProps = {
20
20
  invalidText?: never;
21
21
  validText?: never;
22
22
  showValidationIcon?: never;
23
+ image?: never;
23
24
  } & CheckboxBaseProps;
24
25
  type CheckboxWithoutChildrenProps = {
25
26
  children?: never;
@@ -29,6 +30,7 @@ type CheckboxWithoutChildrenProps = {
29
30
  invalidText?: string;
30
31
  validText?: string;
31
32
  showValidationIcon?: boolean;
33
+ image?: ImageProps;
32
34
  } & CheckboxBaseProps;
33
35
  type CheckboxProps = CheckboxWithChildrenProps | CheckboxWithoutChildrenProps;
34
36
  export default CheckboxProps;
@@ -10,7 +10,7 @@ const CheckboxIcon = ({ style, ...props }) => {
10
10
  };
11
11
  const styles = StyleSheet.create(theme => ({
12
12
  icon: {
13
- color: theme.color.icon.inverted,
13
+ color: theme.components.checkbox.checked.icon.color,
14
14
  },
15
15
  }));
16
16
  CheckboxIcon.displayName = 'CheckboxIcon';
@@ -0,0 +1,6 @@
1
+ import { ImageProps } from 'react-native';
2
+ declare const CheckboxImage: {
3
+ ({ source, style, ...props }: ImageProps): import("react/jsx-runtime").JSX.Element;
4
+ displayName: string;
5
+ };
6
+ export default CheckboxImage;
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Image } from 'react-native';
3
+ const CheckboxImage = ({ source, style, ...props }) => (_jsx(Image, { source: source, style: style, ...props }));
4
+ CheckboxImage.displayName = 'CheckboxImage';
5
+ export default CheckboxImage;
@@ -18,7 +18,7 @@ const styles = StyleSheet.create(theme => ({
18
18
  gap: theme.components.checkbox.gap,
19
19
  padding: theme.components.checkbox.tile.padding,
20
20
  borderWidth: theme.components.checkbox.tile.borderWidth,
21
- borderColor: theme.color.border.subtle,
21
+ borderColor: theme.color.border.strong,
22
22
  borderRadius: theme.components.checkbox.tile.borderRadius,
23
23
  backgroundColor: theme.color.surface.neutral.strong,
24
24
  variants: {
@@ -1,5 +1,6 @@
1
- export { default as Checkbox, CheckboxIndicator, CheckboxLabel, CheckboxIcon, CheckboxTile, } from './Checkbox';
1
+ export { default as Checkbox, CheckboxIcon, CheckboxIndicator, CheckboxLabel, CheckboxTile, } from './Checkbox';
2
+ export type { default as CheckboxProps } from './Checkbox.props';
2
3
  export { default as CheckboxGroup } from './CheckboxGroup';
3
4
  export { default as CheckboxGroupTextContent } from './CheckboxGroupTextContent';
5
+ export { default as CheckboxImage } from './CheckboxImage';
4
6
  export { default as CheckboxTextContent } from './CheckboxTextContent';
5
- export type { default as CheckboxProps } from './Checkbox.props';
@@ -1,4 +1,5 @@
1
- export { default as Checkbox, CheckboxIndicator, CheckboxLabel, CheckboxIcon, CheckboxTile, } from './Checkbox';
1
+ export { default as Checkbox, CheckboxIcon, CheckboxIndicator, CheckboxLabel, CheckboxTile, } from './Checkbox';
2
2
  export { default as CheckboxGroup } from './CheckboxGroup';
3
3
  export { default as CheckboxGroupTextContent } from './CheckboxGroupTextContent';
4
+ export { default as CheckboxImage } from './CheckboxImage';
4
5
  export { default as CheckboxTextContent } from './CheckboxTextContent';
@@ -21,7 +21,7 @@ const CurrencyInput = ({ validationStatus = 'initial', disabled, focused, readon
21
21
  }
22
22
  };
23
23
  const displayValue = autoFormatThousands && typeof value === 'string' ? formatThousands(value) : value;
24
- return (_jsxs(Input, { validationStatus: validationStatusFromContext, disabled: formFieldDisabled ?? disabled, readonly: readonly, focused: focused, style: styles.wrap, children: [_jsx(InputSlot, { children: _jsx(DetailText, { size: "4xl", style: styles.text, children: "\u00A3" }) }), _jsx(InputField, { inputMode: "decimal", inBottomSheet: inBottomSheet, ...rest, placeholder: getPlaceholder, keyboardType: "decimal-pad", style: styles.input, value: displayValue, onChangeText: handleChangeText })] }));
24
+ return (_jsxs(Input, { validationStatus: validationStatusFromContext, disabled: formFieldDisabled ?? disabled, readonly: readonly, focused: focused, style: styles.wrap, children: [_jsx(InputSlot, { children: _jsx(DetailText, { size: "4xl", style: styles.text, accessible: false, children: "\u00A3" }) }), _jsx(InputField, { inputMode: "decimal", inBottomSheet: inBottomSheet, accessibilityHint: 'Enter the amount in pounds and pence, for example "10.99"', ...rest, placeholder: getPlaceholder, keyboardType: "decimal-pad", style: styles.input, value: displayValue, onChangeText: handleChangeText })] }));
25
25
  };
26
26
  CurrencyInput.displayName = 'CurrencyInput';
27
27
  const styles = StyleSheet.create(theme => ({
@@ -0,0 +1,19 @@
1
+ import type { DatePickerBaseProps, DateType } from './DatePicker.props';
2
+ import { CalendarViews } from './enums';
3
+ export interface DatePickerContextType extends DatePickerBaseProps {
4
+ showOutsideDays: boolean;
5
+ firstDayOfWeek: number;
6
+ calendarView: CalendarViews;
7
+ currentDate: DateType;
8
+ currentYear: number;
9
+ numerals: 'latn';
10
+ setCalendarView: (value: CalendarViews) => void;
11
+ onSelectDate: (date: DateType) => void;
12
+ onSelectMonth: (month: number) => void;
13
+ onSelectYear: (year: number) => void;
14
+ onChangeMonth: (value: number) => void;
15
+ onChangeYear: (value: number) => void;
16
+ closeDatePicker: () => void;
17
+ }
18
+ export declare const DatePickerContext: import("react").Context<DatePickerContextType>;
19
+ export declare const useDatePickerContext: () => DatePickerContextType;
@@ -0,0 +1,3 @@
1
+ import { createContext, useContext } from 'react';
2
+ export const DatePickerContext = createContext({});
3
+ export const useDatePickerContext = () => useContext(DatePickerContext);