atlas-design-system 2.1.0 → 3.0.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 (309) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/LICENSE +15 -0
  3. package/README.md +13 -5
  4. package/dist/components/BottomSheet/BottomSheet.d.ts +2 -3
  5. package/dist/components/BottomSheet/BottomSheet.js +8 -12
  6. package/dist/components/BottomSheet/index.d.ts +1 -1
  7. package/dist/components/BottomSheet/index.js +1 -1
  8. package/dist/components/Button/Button.d.ts +0 -1
  9. package/dist/components/Button/Button.js +2 -7
  10. package/dist/components/Button/index.d.ts +0 -1
  11. package/dist/components/Button/index.js +0 -1
  12. package/dist/components/Button/styles/ButtonStyle.d.ts +0 -1
  13. package/dist/components/Button/styles/ButtonStyle.js +0 -1
  14. package/dist/components/Button/types.d.ts +0 -1
  15. package/dist/components/Button/types.js +0 -1
  16. package/dist/components/CheckboxOptionInput/CheckboxOptionInput.d.ts +1 -2
  17. package/dist/components/CheckboxOptionInput/CheckboxOptionInput.js +7 -21
  18. package/dist/components/CheckboxOptionInput/index.d.ts +1 -1
  19. package/dist/components/CheckboxOptionInput/index.js +1 -1
  20. package/dist/components/CheckboxOptionItem/CheckboxOptionItem.d.ts +0 -1
  21. package/dist/components/CheckboxOptionItem/CheckboxOptionItem.js +2 -10
  22. package/dist/components/CheckboxOptionItem/index.d.ts +1 -1
  23. package/dist/components/CheckboxOptionItem/index.js +1 -1
  24. package/dist/components/Chevron/Chevron.d.ts +1 -3
  25. package/dist/components/Chevron/Chevron.js +4 -6
  26. package/dist/components/Chevron/index.d.ts +1 -1
  27. package/dist/components/Chevron/index.js +1 -1
  28. package/dist/components/DateTimeInput/DateTimeInput.d.ts +0 -1
  29. package/dist/components/DateTimeInput/DateTimeInput.js +16 -40
  30. package/dist/components/DateTimeInput/index.d.ts +0 -1
  31. package/dist/components/DateTimeInput/index.js +0 -1
  32. package/dist/components/DragHandle/DragHandle.d.ts +2 -3
  33. package/dist/components/DragHandle/DragHandle.js +3 -5
  34. package/dist/components/DragHandle/index.d.ts +1 -1
  35. package/dist/components/DragHandle/index.js +1 -1
  36. package/dist/components/FieldError/FieldError.d.ts +2 -4
  37. package/dist/components/FieldError/FieldError.js +2 -6
  38. package/dist/components/Forms/Form/Form.d.ts +0 -1
  39. package/dist/components/Forms/Form/Form.js +2 -3
  40. package/dist/components/Forms/Form/index.d.ts +0 -1
  41. package/dist/components/Forms/Form/index.js +0 -1
  42. package/dist/components/Forms/FormDateTimeInput/FormDateTimeInput.d.ts +0 -1
  43. package/dist/components/Forms/FormDateTimeInput/FormDateTimeInput.js +3 -4
  44. package/dist/components/Forms/FormDateTimeInput/index.d.ts +0 -1
  45. package/dist/components/Forms/FormDateTimeInput/index.js +0 -1
  46. package/dist/components/Forms/FormSegmentedControl/FormSegmentedControl.d.ts +0 -1
  47. package/dist/components/Forms/FormSegmentedControl/FormSegmentedControl.js +4 -5
  48. package/dist/components/Forms/FormSegmentedControl/index.d.ts +0 -1
  49. package/dist/components/Forms/FormSegmentedControl/index.js +0 -1
  50. package/dist/components/Forms/FormSelectInput/FormSelectInput.d.ts +0 -1
  51. package/dist/components/Forms/FormSelectInput/FormSelectInput.js +4 -6
  52. package/dist/components/Forms/FormSelectInput/index.d.ts +0 -1
  53. package/dist/components/Forms/FormSelectInput/index.js +0 -1
  54. package/dist/components/Forms/FormSwitchToggle/FormSwitchToggle.d.ts +0 -1
  55. package/dist/components/Forms/FormSwitchToggle/FormSwitchToggle.js +2 -2
  56. package/dist/components/Forms/FormSwitchToggle/index.d.ts +0 -1
  57. package/dist/components/Forms/FormSwitchToggle/index.js +0 -1
  58. package/dist/components/Forms/FormTextInput/FormTextInput.d.ts +0 -1
  59. package/dist/components/Forms/FormTextInput/FormTextInput.js +3 -6
  60. package/dist/components/Forms/FormTextInput/index.d.ts +0 -1
  61. package/dist/components/Forms/FormTextInput/index.js +0 -1
  62. package/dist/components/Forms/index.d.ts +0 -1
  63. package/dist/components/Forms/index.js +0 -1
  64. package/dist/components/MenuItemDescription/MenuItemDescription.d.ts +0 -1
  65. package/dist/components/MenuItemDescription/MenuItemDescription.js +3 -7
  66. package/dist/components/MenuItemDescription/index.d.ts +1 -1
  67. package/dist/components/MenuItemDescription/index.js +1 -1
  68. package/dist/components/NavigationListRow/NavigationListRow.d.ts +3 -2
  69. package/dist/components/NavigationListRow/NavigationListRow.js +4 -10
  70. package/dist/components/NavigationListRow/index.d.ts +1 -1
  71. package/dist/components/NavigationListRow/index.js +1 -1
  72. package/dist/components/RadioOptionInput/RadioOptionInput.d.ts +1 -2
  73. package/dist/components/RadioOptionInput/RadioOptionInput.js +4 -17
  74. package/dist/components/RadioOptionInput/index.d.ts +1 -1
  75. package/dist/components/RadioOptionInput/index.js +1 -1
  76. package/dist/components/RadioOptionItem/RadioOptionItem.d.ts +0 -1
  77. package/dist/components/RadioOptionItem/RadioOptionItem.js +5 -13
  78. package/dist/components/RadioOptionItem/index.d.ts +1 -1
  79. package/dist/components/RadioOptionItem/index.js +1 -1
  80. package/dist/components/Search/Search.d.ts +2 -2
  81. package/dist/components/Search/Search.js +4 -14
  82. package/dist/components/Search/index.d.ts +1 -1
  83. package/dist/components/Search/index.js +1 -1
  84. package/dist/components/SegmentedControl/SegmentedControl.d.ts +0 -1
  85. package/dist/components/SegmentedControl/SegmentedControl.js +16 -28
  86. package/dist/components/SegmentedControl/index.d.ts +0 -1
  87. package/dist/components/SegmentedControl/index.js +0 -1
  88. package/dist/components/SelectInput/SelectInput.d.ts +0 -1
  89. package/dist/components/SelectInput/SelectInput.js +4 -25
  90. package/dist/components/SelectInput/components/SelectionItem.d.ts +0 -1
  91. package/dist/components/SelectInput/components/SelectionItem.js +3 -5
  92. package/dist/components/SelectInput/index.d.ts +0 -1
  93. package/dist/components/SelectInput/index.js +0 -1
  94. package/dist/components/SelectInput/types.d.ts +0 -1
  95. package/dist/components/SelectInput/types.js +0 -1
  96. package/dist/components/Sheet/Sheet.d.ts +2 -3
  97. package/dist/components/Sheet/Sheet.js +19 -36
  98. package/dist/components/Sheet/components/SheetHeader.d.ts +1 -2
  99. package/dist/components/Sheet/components/SheetHeader.js +3 -3
  100. package/dist/components/Sheet/index.d.ts +2 -1
  101. package/dist/components/Sheet/index.js +2 -1
  102. package/dist/components/SwitchToggle/SwitchToggle.d.ts +0 -1
  103. package/dist/components/SwitchToggle/SwitchToggle.js +14 -13
  104. package/dist/components/SwitchToggle/index.d.ts +0 -1
  105. package/dist/components/SwitchToggle/index.js +0 -1
  106. package/dist/components/Text/Text.d.ts +2 -3
  107. package/dist/components/Text/Text.js +3 -3
  108. package/dist/components/Text/index.d.ts +1 -1
  109. package/dist/components/Text/index.js +1 -1
  110. package/dist/components/TextInput/TextInput.d.ts +4 -1
  111. package/dist/components/TextInput/TextInput.js +10 -22
  112. package/dist/components/TextInput/index.d.ts +0 -1
  113. package/dist/components/TextInput/index.js +0 -1
  114. package/dist/components/TitleBar/TitleBar.d.ts +0 -1
  115. package/dist/components/TitleBar/TitleBar.js +7 -20
  116. package/dist/components/TitleBar/index.d.ts +0 -1
  117. package/dist/components/TitleBar/index.js +0 -1
  118. package/dist/components/index.d.ts +0 -1
  119. package/dist/components/index.js +0 -1
  120. package/dist/constants/animations.d.ts +0 -1
  121. package/dist/constants/animations.js +0 -1
  122. package/dist/constants/index.d.ts +0 -1
  123. package/dist/constants/index.js +0 -1
  124. package/dist/context/index.d.ts +0 -1
  125. package/dist/context/index.js +0 -1
  126. package/dist/hooks/index.d.ts +0 -1
  127. package/dist/hooks/index.js +0 -1
  128. package/dist/hooks/useInputFieldAnimatedBorder.d.ts +2 -3
  129. package/dist/hooks/useInputFieldAnimatedBorder.js +0 -1
  130. package/dist/hooks/useInputFieldFontSizeInterpolationOutputRange.d.ts +0 -1
  131. package/dist/hooks/useInputFieldFontSizeInterpolationOutputRange.js +0 -1
  132. package/dist/hooks/usePrevious.d.ts +0 -1
  133. package/dist/hooks/usePrevious.js +0 -1
  134. package/dist/hooks/useTheme.d.ts +0 -1
  135. package/dist/hooks/useTheme.js +0 -1
  136. package/dist/hooks/useThemedStyle.d.ts +0 -1
  137. package/dist/hooks/useThemedStyle.js +0 -1
  138. package/dist/index.d.ts +0 -1
  139. package/dist/index.js +0 -1
  140. package/dist/shared/styles/index.d.ts +1 -1
  141. package/dist/shared/styles/index.js +1 -1
  142. package/dist/themes/AtlasLightTheme.d.ts +0 -1
  143. package/dist/themes/AtlasLightTheme.js +0 -1
  144. package/dist/themes/index.d.ts +0 -1
  145. package/dist/themes/index.js +0 -1
  146. package/dist/types/index.d.ts +0 -1
  147. package/dist/types/index.js +0 -1
  148. package/dist/types/theme.d.ts +0 -1
  149. package/dist/types/theme.js +0 -1
  150. package/dist/types/typography.d.ts +0 -1
  151. package/dist/types/typography.js +0 -1
  152. package/dist/utils/animation.d.ts +0 -1
  153. package/dist/utils/animation.js +0 -1
  154. package/dist/utils/index.d.ts +0 -1
  155. package/dist/utils/index.js +0 -1
  156. package/package.json +53 -21
  157. package/dist/components/BottomSheet/BottomSheet.d.ts.map +0 -1
  158. package/dist/components/BottomSheet/BottomSheet.js.map +0 -1
  159. package/dist/components/BottomSheet/index.d.ts.map +0 -1
  160. package/dist/components/BottomSheet/index.js.map +0 -1
  161. package/dist/components/Button/Button.d.ts.map +0 -1
  162. package/dist/components/Button/Button.js.map +0 -1
  163. package/dist/components/Button/index.d.ts.map +0 -1
  164. package/dist/components/Button/index.js.map +0 -1
  165. package/dist/components/Button/styles/ButtonStyle.d.ts.map +0 -1
  166. package/dist/components/Button/styles/ButtonStyle.js.map +0 -1
  167. package/dist/components/Button/types.d.ts.map +0 -1
  168. package/dist/components/Button/types.js.map +0 -1
  169. package/dist/components/CheckboxOptionInput/CheckboxOptionInput.d.ts.map +0 -1
  170. package/dist/components/CheckboxOptionInput/CheckboxOptionInput.js.map +0 -1
  171. package/dist/components/CheckboxOptionInput/index.d.ts.map +0 -1
  172. package/dist/components/CheckboxOptionInput/index.js.map +0 -1
  173. package/dist/components/CheckboxOptionItem/CheckboxOptionItem.d.ts.map +0 -1
  174. package/dist/components/CheckboxOptionItem/CheckboxOptionItem.js.map +0 -1
  175. package/dist/components/CheckboxOptionItem/index.d.ts.map +0 -1
  176. package/dist/components/CheckboxOptionItem/index.js.map +0 -1
  177. package/dist/components/Chevron/Chevron.d.ts.map +0 -1
  178. package/dist/components/Chevron/Chevron.js.map +0 -1
  179. package/dist/components/Chevron/index.d.ts.map +0 -1
  180. package/dist/components/Chevron/index.js.map +0 -1
  181. package/dist/components/DateTimeInput/DateTimeInput.d.ts.map +0 -1
  182. package/dist/components/DateTimeInput/DateTimeInput.js.map +0 -1
  183. package/dist/components/DateTimeInput/index.d.ts.map +0 -1
  184. package/dist/components/DateTimeInput/index.js.map +0 -1
  185. package/dist/components/DragHandle/DragHandle.d.ts.map +0 -1
  186. package/dist/components/DragHandle/DragHandle.js.map +0 -1
  187. package/dist/components/DragHandle/index.d.ts.map +0 -1
  188. package/dist/components/DragHandle/index.js.map +0 -1
  189. package/dist/components/FieldError/FieldError.d.ts.map +0 -1
  190. package/dist/components/FieldError/FieldError.js.map +0 -1
  191. package/dist/components/Forms/Form/Form.d.ts.map +0 -1
  192. package/dist/components/Forms/Form/Form.js.map +0 -1
  193. package/dist/components/Forms/Form/index.d.ts.map +0 -1
  194. package/dist/components/Forms/Form/index.js.map +0 -1
  195. package/dist/components/Forms/FormDateTimeInput/FormDateTimeInput.d.ts.map +0 -1
  196. package/dist/components/Forms/FormDateTimeInput/FormDateTimeInput.js.map +0 -1
  197. package/dist/components/Forms/FormDateTimeInput/index.d.ts.map +0 -1
  198. package/dist/components/Forms/FormDateTimeInput/index.js.map +0 -1
  199. package/dist/components/Forms/FormSegmentedControl/FormSegmentedControl.d.ts.map +0 -1
  200. package/dist/components/Forms/FormSegmentedControl/FormSegmentedControl.js.map +0 -1
  201. package/dist/components/Forms/FormSegmentedControl/index.d.ts.map +0 -1
  202. package/dist/components/Forms/FormSegmentedControl/index.js.map +0 -1
  203. package/dist/components/Forms/FormSelectInput/FormSelectInput.d.ts.map +0 -1
  204. package/dist/components/Forms/FormSelectInput/FormSelectInput.js.map +0 -1
  205. package/dist/components/Forms/FormSelectInput/index.d.ts.map +0 -1
  206. package/dist/components/Forms/FormSelectInput/index.js.map +0 -1
  207. package/dist/components/Forms/FormSwitchToggle/FormSwitchToggle.d.ts.map +0 -1
  208. package/dist/components/Forms/FormSwitchToggle/FormSwitchToggle.js.map +0 -1
  209. package/dist/components/Forms/FormSwitchToggle/index.d.ts.map +0 -1
  210. package/dist/components/Forms/FormSwitchToggle/index.js.map +0 -1
  211. package/dist/components/Forms/FormTextInput/FormTextInput.d.ts.map +0 -1
  212. package/dist/components/Forms/FormTextInput/FormTextInput.js.map +0 -1
  213. package/dist/components/Forms/FormTextInput/index.d.ts.map +0 -1
  214. package/dist/components/Forms/FormTextInput/index.js.map +0 -1
  215. package/dist/components/Forms/index.d.ts.map +0 -1
  216. package/dist/components/Forms/index.js.map +0 -1
  217. package/dist/components/MenuItemDescription/MenuItemDescription.d.ts.map +0 -1
  218. package/dist/components/MenuItemDescription/MenuItemDescription.js.map +0 -1
  219. package/dist/components/MenuItemDescription/index.d.ts.map +0 -1
  220. package/dist/components/MenuItemDescription/index.js.map +0 -1
  221. package/dist/components/NavigationListRow/NavigationListRow.d.ts.map +0 -1
  222. package/dist/components/NavigationListRow/NavigationListRow.js.map +0 -1
  223. package/dist/components/NavigationListRow/index.d.ts.map +0 -1
  224. package/dist/components/NavigationListRow/index.js.map +0 -1
  225. package/dist/components/RadioOptionInput/RadioOptionInput.d.ts.map +0 -1
  226. package/dist/components/RadioOptionInput/RadioOptionInput.js.map +0 -1
  227. package/dist/components/RadioOptionInput/index.d.ts.map +0 -1
  228. package/dist/components/RadioOptionInput/index.js.map +0 -1
  229. package/dist/components/RadioOptionItem/RadioOptionItem.d.ts.map +0 -1
  230. package/dist/components/RadioOptionItem/RadioOptionItem.js.map +0 -1
  231. package/dist/components/RadioOptionItem/index.d.ts.map +0 -1
  232. package/dist/components/RadioOptionItem/index.js.map +0 -1
  233. package/dist/components/Search/Search.d.ts.map +0 -1
  234. package/dist/components/Search/Search.js.map +0 -1
  235. package/dist/components/Search/index.d.ts.map +0 -1
  236. package/dist/components/Search/index.js.map +0 -1
  237. package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +0 -1
  238. package/dist/components/SegmentedControl/SegmentedControl.js.map +0 -1
  239. package/dist/components/SegmentedControl/index.d.ts.map +0 -1
  240. package/dist/components/SegmentedControl/index.js.map +0 -1
  241. package/dist/components/SelectInput/SelectInput.d.ts.map +0 -1
  242. package/dist/components/SelectInput/SelectInput.js.map +0 -1
  243. package/dist/components/SelectInput/components/SelectionItem.d.ts.map +0 -1
  244. package/dist/components/SelectInput/components/SelectionItem.js.map +0 -1
  245. package/dist/components/SelectInput/index.d.ts.map +0 -1
  246. package/dist/components/SelectInput/index.js.map +0 -1
  247. package/dist/components/SelectInput/types.d.ts.map +0 -1
  248. package/dist/components/SelectInput/types.js.map +0 -1
  249. package/dist/components/Sheet/Sheet.d.ts.map +0 -1
  250. package/dist/components/Sheet/Sheet.js.map +0 -1
  251. package/dist/components/Sheet/components/SheetHeader.d.ts.map +0 -1
  252. package/dist/components/Sheet/components/SheetHeader.js.map +0 -1
  253. package/dist/components/Sheet/index.d.ts.map +0 -1
  254. package/dist/components/Sheet/index.js.map +0 -1
  255. package/dist/components/SwitchToggle/SwitchToggle.d.ts.map +0 -1
  256. package/dist/components/SwitchToggle/SwitchToggle.js.map +0 -1
  257. package/dist/components/SwitchToggle/index.d.ts.map +0 -1
  258. package/dist/components/SwitchToggle/index.js.map +0 -1
  259. package/dist/components/Text/Text.d.ts.map +0 -1
  260. package/dist/components/Text/Text.js.map +0 -1
  261. package/dist/components/Text/index.d.ts.map +0 -1
  262. package/dist/components/Text/index.js.map +0 -1
  263. package/dist/components/TextInput/TextInput.d.ts.map +0 -1
  264. package/dist/components/TextInput/TextInput.js.map +0 -1
  265. package/dist/components/TextInput/index.d.ts.map +0 -1
  266. package/dist/components/TextInput/index.js.map +0 -1
  267. package/dist/components/TitleBar/TitleBar.d.ts.map +0 -1
  268. package/dist/components/TitleBar/TitleBar.js.map +0 -1
  269. package/dist/components/TitleBar/index.d.ts.map +0 -1
  270. package/dist/components/TitleBar/index.js.map +0 -1
  271. package/dist/components/index.d.ts.map +0 -1
  272. package/dist/components/index.js.map +0 -1
  273. package/dist/constants/animations.d.ts.map +0 -1
  274. package/dist/constants/animations.js.map +0 -1
  275. package/dist/constants/index.d.ts.map +0 -1
  276. package/dist/constants/index.js.map +0 -1
  277. package/dist/context/index.d.ts.map +0 -1
  278. package/dist/context/index.js.map +0 -1
  279. package/dist/hooks/index.d.ts.map +0 -1
  280. package/dist/hooks/index.js.map +0 -1
  281. package/dist/hooks/useInputFieldAnimatedBorder.d.ts.map +0 -1
  282. package/dist/hooks/useInputFieldAnimatedBorder.js.map +0 -1
  283. package/dist/hooks/useInputFieldFontSizeInterpolationOutputRange.d.ts.map +0 -1
  284. package/dist/hooks/useInputFieldFontSizeInterpolationOutputRange.js.map +0 -1
  285. package/dist/hooks/usePrevious.d.ts.map +0 -1
  286. package/dist/hooks/usePrevious.js.map +0 -1
  287. package/dist/hooks/useTheme.d.ts.map +0 -1
  288. package/dist/hooks/useTheme.js.map +0 -1
  289. package/dist/hooks/useThemedStyle.d.ts.map +0 -1
  290. package/dist/hooks/useThemedStyle.js.map +0 -1
  291. package/dist/index.d.ts.map +0 -1
  292. package/dist/index.js.map +0 -1
  293. package/dist/shared/styles/index.d.ts.map +0 -1
  294. package/dist/shared/styles/index.js.map +0 -1
  295. package/dist/themes/AtlasLightTheme.d.ts.map +0 -1
  296. package/dist/themes/AtlasLightTheme.js.map +0 -1
  297. package/dist/themes/index.d.ts.map +0 -1
  298. package/dist/themes/index.js.map +0 -1
  299. package/dist/types/index.d.ts.map +0 -1
  300. package/dist/types/index.js.map +0 -1
  301. package/dist/types/theme.d.ts.map +0 -1
  302. package/dist/types/theme.js.map +0 -1
  303. package/dist/types/typography.d.ts.map +0 -1
  304. package/dist/types/typography.js.map +0 -1
  305. package/dist/utils/animation.d.ts.map +0 -1
  306. package/dist/utils/animation.js.map +0 -1
  307. package/dist/utils/index.d.ts.map +0 -1
  308. package/dist/utils/index.js.map +0 -1
  309. package/example/android/app/debug.keystore +0 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,55 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [3.0.0] - 2026-09-02
9
+
10
+ ### Breaking
11
+
12
+ - **The New Architecture is now required.** Minimum React Native is 0.83 and minimum React is 19.1. The legacy architecture was removed in React Native 0.85 and Reanimated 4 does not support it, so the previous `react-native: ">=0.72.0"` peer range was no longer accurate.
13
+ - **Reanimated 4 is now required** (`react-native-reanimated: ">=4.0.0"`), and **`react-native-worklets` is a new required peer dependency**. Consumers must switch `babel.config.js` from `react-native-reanimated/plugin` to `react-native-worklets/plugin`; `babel-preset-expo` handles this on Expo SDK ≥ 55.
14
+ - **`react-native-vector-icons` is replaced by `@react-native-vector-icons/ionicons`** (the scoped per-family packages introduced in v12). This peer dependency is now **required** rather than optional — `Chevron`, `TitleBar`, `DateTimeInput`, and `NavigationListRow` import it unconditionally.
15
+ - **`NavigationListRowProps["iconRightName"]` narrowed from `string` to `IoniconsIconName`**, the icon package's literal-union type. The type is re-exported from the package root. Names outside the Ionicons set no longer typecheck.
16
+ - `@react-native-community/datetimepicker` peer floor raised to `>=9.0.0` for New Architecture support.
17
+ - `react-native-safe-area-context` peer floor raised to `>=5.6.0`.
18
+ - Package no longer ships `.js.map` / `.d.ts.map` files. They previously pointed at `src/`, which is excluded from the published tarball, so they were always broken.
19
+
20
+ ### Changed
21
+
22
+ - `TitleBar` now uses `SafeAreaView` from `react-native-safe-area-context` (with `edges={["top"]}`) instead of the deprecated `SafeAreaView` from `react-native`. **This changes Android behavior:** React Native's `SafeAreaView` was iOS-only and a no-op on Android, so `TitleBar` now correctly insets below the Android status bar — which is what edge-to-edge (mandatory from Expo SDK 55) requires. It also means `TitleBar` now needs a `SafeAreaProvider` ancestor, as `Sheet` and `BottomSheet` already did.
23
+ - `Sheet` and `BottomSheet` use `scheduleOnRN` from `react-native-worklets` in place of the deprecated `runOnJS`.
24
+ - `pointerEvents` moved from a prop to a style in `TextInput`, `SelectInput`, and `DateTimeInput`, following the React Native deprecation.
25
+ - `TextInput`'s `onBlur` now sources its text from the controlled `value` prop. React Native 0.86 retyped the blur event to `BlurEvent`, which no longer carries `text`. The public `onBlur?: (text: string) => void` signature is unchanged.
26
+ - TypeScript build now uses `moduleResolution: "bundler"` and `jsx: "react-jsx"`, required to read the `exports`-map types shipped by React Native 0.86, Reanimated 4, and the scoped icon packages.
27
+
28
+ ### Fixed
29
+
30
+ - `Sheet` and `BottomSheet` now pass `onRequestClose` to their `Modal`, restoring Android hardware-back dismissal.
31
+
32
+ ## [2.1.0] - 2026-02-26
33
+
34
+ ### Added
35
+
36
+ - Button component with primary, secondary, and destructive variants
37
+ - Text component with typography variants and contrast levels
38
+ - TextInput with animated floating label and error handling
39
+ - SwitchToggle component
40
+ - SelectInput with bottom sheet picker
41
+ - DateTimeInput component
42
+ - SegmentedControl component
43
+ - Search input component
44
+ - Sheet and BottomSheet modal components
45
+ - TitleBar navigation component
46
+ - NavigationListRow component
47
+ - RadioOptionInput and RadioOptionItem components
48
+ - CheckboxOptionInput and CheckboxOptionItem components
49
+ - Chevron and DragHandle utility components
50
+ - MenuItemDescription component
51
+ - FieldError component
52
+ - Form components (Form, FormTextInput, FormSwitchToggle, FormSelectInput, FormSegmentedControl, FormDateTimeInput) with `informed` integration
53
+ - ThemeContext and useTheme/useThemedStyle hooks
54
+ - ATLAS_LIGHT default theme
55
+ - Animated border and font-size interpolation hooks
package/LICENSE ADDED
@@ -0,0 +1,15 @@
1
+ ISC License
2
+
3
+ Copyright (c) 2026, Juan Castillo
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
+ PERFORMANCE OF THIS SOFTWARE.
package/README.md CHANGED
@@ -6,16 +6,20 @@ Designed for Atlas Workout app and EzBudget budget app.
6
6
 
7
7
  ## Installation
8
8
 
9
+ > **Atlas Design System 3.x requires the React Native New Architecture.**
10
+ > React Native ≥ 0.83 (Expo SDK ≥ 55) and Reanimated ≥ 4 only. For older
11
+ > projects, stay on `atlas-design-system@2.x`.
12
+
9
13
  Atlas Design System relies on a few peer dependencies that need to be present in your project. Install everything at once with **npm**:
10
14
 
11
15
  ```bash
12
- npm install atlas-design-system @react-native-community/datetimepicker informed moment react-native-reanimated react-native-safe-area-context react-native-vector-icons
16
+ npm install atlas-design-system @react-native-vector-icons/ionicons @react-native-community/datetimepicker informed moment react-native-reanimated react-native-worklets react-native-safe-area-context
13
17
  ```
14
18
 
15
19
  —or with **Yarn**:
16
20
 
17
21
  ```bash
18
- yarn add atlas-design-system @react-native-community/datetimepicker informed moment react-native-reanimated react-native-safe-area-context react-native-vector-icons
22
+ yarn add atlas-design-system @react-native-vector-icons/ionicons @react-native-community/datetimepicker informed moment react-native-reanimated react-native-worklets react-native-safe-area-context
19
23
  ```
20
24
 
21
25
  After the packages are installed, make sure to install the iOS pods:
@@ -27,12 +31,16 @@ npx pod-install ios
27
31
  Using **Expo**? You can rely on `expo install` to ensure the correct versions:
28
32
 
29
33
  ```bash
30
- expo install atlas-design-system @react-native-community/datetimepicker react-native-reanimated react-native-safe-area-context react-native-vector-icons
34
+ npx expo install atlas-design-system @react-native-vector-icons/ionicons @react-native-community/datetimepicker react-native-reanimated react-native-worklets react-native-safe-area-context
31
35
  ```
32
36
 
33
37
  > **Note**
34
- > • React Native ≥ 0.64 is required.
35
- > • Follow the React-Native-Reanimated [installation guide](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation/) and enable the Babel plugin if you haven't already.
38
+ > • Requires the **New Architecture** — React Native ≥ 0.83 and React ≥ 19.1. The legacy architecture was removed in React Native 0.85, and Reanimated 4 does not support it.
39
+ > • Reanimated 4 moved worklets into a separate package. Your `babel.config.js` must use `react-native-worklets/plugin` (**not** the old `react-native-reanimated/plugin`). On Expo SDK ≥ 55, `babel-preset-expo` wires this up for you.
40
+ > • Wrap your app in `SafeAreaProvider` from `react-native-safe-area-context` — `TitleBar`, `Sheet`, and `BottomSheet` read safe-area insets.
41
+ > • Some peer dependencies (`@react-native-community/datetimepicker`, `informed`, `moment`) are optional — only install them if you use the components that need them. `@react-native-vector-icons/ionicons` is **required**; several components import it directly.
42
+ > • Follow the React-Native-Reanimated [installation guide](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation/).
43
+ > • After installing, run `npx pod-install` to link native iOS dependencies.
36
44
 
37
45
  ## Usage
38
46
 
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- type Props = {
2
+ export type BottomSheetProps = {
3
3
  open: boolean;
4
4
  setOpen: (open: boolean) => void;
5
5
  children?: React.ReactNode;
@@ -7,6 +7,5 @@ type Props = {
7
7
  transparent?: boolean;
8
8
  height: number;
9
9
  };
10
- declare const BottomSheet: ({ open, children, height, setOpen }: Props) => React.JSX.Element | null;
10
+ declare const BottomSheet: ({ open, children, height, setOpen }: BottomSheetProps) => React.JSX.Element | null;
11
11
  export default BottomSheet;
12
- //# sourceMappingURL=BottomSheet.d.ts.map
@@ -1,6 +1,8 @@
1
- import React, { useCallback, useEffect, useState } from "react";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useCallback, useEffect, useState } from "react";
2
3
  import { Modal, Pressable, StyleSheet, useWindowDimensions, } from "react-native";
3
- import Animated, { Easing, useAnimatedStyle, useSharedValue, withTiming, runOnJS, } from "react-native-reanimated";
4
+ import Animated, { Easing, useAnimatedStyle, useSharedValue, withTiming, } from "react-native-reanimated";
5
+ import { scheduleOnRN } from "react-native-worklets";
4
6
  import { useSafeAreaInsets } from "react-native-safe-area-context";
5
7
  import { useThemedStyle } from "../../hooks";
6
8
  const DEFAULT_EASING = Easing.bezier(0.5, 0, 0, 0.75);
@@ -15,7 +17,7 @@ const BottomSheet = ({ open, children, height, setOpen }) => {
15
17
  duration: 200,
16
18
  easing: DEFAULT_EASING,
17
19
  }, () => {
18
- runOnJS(setVisible)(false);
20
+ scheduleOnRN(setVisible, false);
19
21
  });
20
22
  return;
21
23
  }
@@ -39,14 +41,9 @@ const BottomSheet = ({ open, children, height, setOpen }) => {
39
41
  if (!visible) {
40
42
  return null;
41
43
  }
42
- return (<Modal transparent visible>
43
- <Pressable onPress={() => {
44
- setOpen(false);
45
- }} style={styles.wrapper}/>
46
- <Animated.View style={[styles.sheet, animatedStyle]}>
47
- {children}
48
- </Animated.View>
49
- </Modal>);
44
+ return (_jsxs(Modal, { transparent: true, visible: true, onRequestClose: () => setOpen(false), children: [_jsx(Pressable, { onPress: () => {
45
+ setOpen(false);
46
+ }, style: styles.wrapper }), _jsx(Animated.View, { style: [styles.sheet, animatedStyle], children: children })] }));
50
47
  };
51
48
  export default BottomSheet;
52
49
  const useStyles = (height) => {
@@ -68,4 +65,3 @@ const useStyles = (height) => {
68
65
  },
69
66
  }), [bottom, height]));
70
67
  };
71
- //# sourceMappingURL=BottomSheet.js.map
@@ -1,2 +1,2 @@
1
1
  export { default as BottomSheet } from "./BottomSheet";
2
- //# sourceMappingURL=index.d.ts.map
2
+ export * from "./BottomSheet";
@@ -1,2 +1,2 @@
1
1
  export { default as BottomSheet } from "./BottomSheet";
2
- //# sourceMappingURL=index.js.map
2
+ export * from "./BottomSheet";
@@ -2,4 +2,3 @@ import React from "react";
2
2
  import { ButtonProps } from "./types";
3
3
  declare const Button: ({ testID, disabled, onPress, text, loading, containerStyle, appearance, }: ButtonProps) => React.JSX.Element;
4
4
  export default Button;
5
- //# sourceMappingURL=Button.d.ts.map
@@ -1,14 +1,9 @@
1
- import React from "react";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { ActivityIndicator, TouchableOpacity, } from "react-native";
3
3
  import { Text } from "../Text";
4
4
  import { useButtonStyles } from "./styles/ButtonStyle";
5
5
  const Button = ({ testID, disabled = false, onPress, text, loading, containerStyle = {}, appearance = "primary", }) => {
6
6
  const { buttonStyle, styles, textStyle } = useButtonStyles(appearance, disabled);
7
- return (<TouchableOpacity testID={testID} style={[buttonStyle, containerStyle]} onPress={onPress} disabled={disabled || loading}>
8
- {loading ? (<ActivityIndicator size="small" color={styles.loadingIndicator.color}/>) : (<Text category="h3" style={textStyle}>
9
- {text}
10
- </Text>)}
11
- </TouchableOpacity>);
7
+ return (_jsx(TouchableOpacity, { testID: testID, style: [buttonStyle, containerStyle], onPress: onPress, disabled: disabled || loading, children: loading ? (_jsx(ActivityIndicator, { size: "small", color: styles.loadingIndicator.color })) : (_jsx(Text, { category: "h3", style: textStyle, children: text })) }));
12
8
  };
13
9
  export default Button;
14
- //# sourceMappingURL=Button.js.map
@@ -1,4 +1,3 @@
1
1
  export { default as Button } from "./Button";
2
2
  export * from "./types";
3
3
  export * from "./styles/ButtonStyle";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export { default as Button } from "./Button";
2
2
  export * from "./types";
3
3
  export * from "./styles/ButtonStyle";
4
- //# sourceMappingURL=index.js.map
@@ -43,4 +43,3 @@ export declare const useButtonStyles: (appearance?: ButtonProps["appearance"], d
43
43
  buttonStyle: StyleProp<ViewStyle>[];
44
44
  textStyle: StyleProp<TextStyle>[];
45
45
  };
46
- //# sourceMappingURL=ButtonStyle.d.ts.map
@@ -80,4 +80,3 @@ export const useButtonStyles = (appearance = "primary", disabled = false, themeO
80
80
  }, appearance, disabled), [styles, appearance, disabled]);
81
81
  return { styles, buttonStyle, textStyle };
82
82
  };
83
- //# sourceMappingURL=ButtonStyle.js.map
@@ -8,4 +8,3 @@ export interface ButtonProps {
8
8
  containerStyle?: StyleProp<ViewStyle>;
9
9
  appearance?: "primary" | "secondary" | "destructive";
10
10
  }
11
- //# sourceMappingURL=types.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=types.js.map
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { StyleProp, ViewStyle } from "react-native";
3
3
  import { Option } from "../SelectInput/types";
4
- type CheckboxOptionInputProps<T> = {
4
+ export type CheckboxOptionInputProps<T> = {
5
5
  caption?: string;
6
6
  label: string;
7
7
  options: Option<T>[];
@@ -13,4 +13,3 @@ type CheckboxOptionInputProps<T> = {
13
13
  };
14
14
  declare function CheckboxOptionInput<T>({ caption, label, options, onChange, renderOption, renderValues, containerStyle, placeholder, }: CheckboxOptionInputProps<T>): React.JSX.Element;
15
15
  export default CheckboxOptionInput;
16
- //# sourceMappingURL=CheckboxOptionInput.d.ts.map
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
2
  import React, { useCallback, useEffect, useMemo } from "react";
2
3
  import { StyleSheet, TouchableOpacity, View, } from "react-native";
3
4
  import { useThemedStyle } from "../../hooks";
@@ -31,26 +32,12 @@ function CheckboxOptionInput({ caption, label, options = [], onChange, renderOpt
31
32
  useEffect(() => {
32
33
  setValues(selectedOptions.map((v) => v.value));
33
34
  }, [sheetOpen]);
34
- return (<>
35
- <View style={[styles.container, containerStyle]}>
36
- <Text>{label}</Text>
37
- <TouchableOpacity onPress={() => setSheetOpen(true)} style={styles.valueDisplayContainer}>
38
- {!renderValues && selectedOptions.length === 0 && (<Text contrast="low">{placeholder}</Text>)}
39
- {!renderValues && selectedOptions.length > 0 && (<Text>{selectedOptions.map((v) => v.label).join(", ")}</Text>)}
40
- {renderValues && renderValues(selectedOptions)}
41
- <Chevron direction={sheetOpen ? "up" : "down"}/>
42
- </TouchableOpacity>
43
- {!!caption && <MenuItemDescription description={caption}/>}
44
- </View>
45
- <Sheet header={label} open={sheetOpen} setOpen={setSheetOpen} footer={<Button text="Save" onPress={handleSave}/>}>
46
- {options.map((option) => {
47
- return renderOption ? (renderOption(option, handleOptionPress)) : (<CheckboxOptionItem option={{
48
- ...option,
49
- selected: !!values.find((v) => v === option.value),
50
- }} onPress={() => handleOptionPress(option)} key={option.label}/>);
51
- })}
52
- </Sheet>
53
- </>);
35
+ return (_jsxs(_Fragment, { children: [_jsxs(View, { style: [styles.container, containerStyle], children: [_jsx(Text, { children: label }), _jsxs(TouchableOpacity, { onPress: () => setSheetOpen(true), style: styles.valueDisplayContainer, children: [!renderValues && selectedOptions.length === 0 && (_jsx(Text, { contrast: "low", children: placeholder })), !renderValues && selectedOptions.length > 0 && (_jsx(Text, { children: selectedOptions.map((v) => v.label).join(", ") })), renderValues && renderValues(selectedOptions), _jsx(Chevron, { direction: sheetOpen ? "up" : "down" })] }), !!caption && _jsx(MenuItemDescription, { description: caption })] }), _jsx(Sheet, { header: label, open: sheetOpen, setOpen: setSheetOpen, footer: _jsx(Button, { text: "Save", onPress: handleSave }), children: options.map((option) => {
36
+ return renderOption ? (renderOption(option, handleOptionPress)) : (_jsx(CheckboxOptionItem, { option: {
37
+ ...option,
38
+ selected: !!values.find((v) => v === option.value),
39
+ }, onPress: () => handleOptionPress(option) }, option.label));
40
+ }) })] }));
54
41
  }
55
42
  const useStyles = () => useThemedStyle(useCallback((t) => StyleSheet.create({
56
43
  container: {},
@@ -62,4 +49,3 @@ const useStyles = () => useThemedStyle(useCallback((t) => StyleSheet.create({
62
49
  },
63
50
  }), []));
64
51
  export default CheckboxOptionInput;
65
- //# sourceMappingURL=CheckboxOptionInput.js.map
@@ -1,2 +1,2 @@
1
1
  export { default as CheckboxOptionInput } from "./CheckboxOptionInput";
2
- //# sourceMappingURL=index.d.ts.map
2
+ export * from "./CheckboxOptionInput";
@@ -1,2 +1,2 @@
1
1
  export { default as CheckboxOptionInput } from "./CheckboxOptionInput";
2
- //# sourceMappingURL=index.js.map
2
+ export * from "./CheckboxOptionInput";
@@ -6,4 +6,3 @@ export type CheckboxOptionItemProps<T> = {
6
6
  renderItem?: (option: Option<T>) => React.ReactNode;
7
7
  };
8
8
  export default function CheckboxOptionItem<T>({ option, onPress, renderItem, disabled, }: CheckboxOptionItemProps<T>): import("react").JSX.Element;
9
- //# sourceMappingURL=CheckboxOptionItem.d.ts.map
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import { useCallback } from "react";
2
3
  import { Pressable, View, StyleSheet } from "react-native";
3
4
  import { useThemedStyle } from "../../hooks";
@@ -5,15 +6,7 @@ import { Text } from "../Text";
5
6
  export default function CheckboxOptionItem({ option, onPress, renderItem, disabled, }) {
6
7
  const { label, selected } = option;
7
8
  const styles = useStyles(selected).styles;
8
- return (<Pressable onPress={() => onPress?.(option.value)} style={styles.itemContainer} disabled={disabled}>
9
- <View style={styles.itemContent}>
10
- <View style={styles.checkboxContainer}>
11
- {selected && <View style={styles.checkbox}/>}
12
- </View>
13
- {!renderItem && <Text>{label}</Text>}
14
- {renderItem && renderItem(option)}
15
- </View>
16
- </Pressable>);
9
+ return (_jsx(Pressable, { onPress: () => onPress?.(option.value), style: styles.itemContainer, disabled: disabled, children: _jsxs(View, { style: styles.itemContent, children: [_jsx(View, { style: styles.checkboxContainer, children: selected && _jsx(View, { style: styles.checkbox }) }), !renderItem && _jsx(Text, { children: label }), renderItem && renderItem(option)] }) }));
17
10
  }
18
11
  const useStyles = (selected) => useThemedStyle(useCallback((t) => StyleSheet.create({
19
12
  itemContainer: {
@@ -40,4 +33,3 @@ const useStyles = (selected) => useThemedStyle(useCallback((t) => StyleSheet.cre
40
33
  backgroundColor: selected ? t.colors.primary : undefined,
41
34
  },
42
35
  }), [selected]));
43
- //# sourceMappingURL=CheckboxOptionItem.js.map
@@ -1,2 +1,2 @@
1
1
  export { default as CheckboxOptionItem } from "./CheckboxOptionItem";
2
- //# sourceMappingURL=index.d.ts.map
2
+ export * from "./CheckboxOptionItem";
@@ -1,2 +1,2 @@
1
1
  export { default as CheckboxOptionItem } from "./CheckboxOptionItem";
2
- //# sourceMappingURL=index.js.map
2
+ export * from "./CheckboxOptionItem";
@@ -1,7 +1,5 @@
1
1
  import React from "react";
2
- type ChevronProps = {
2
+ export type ChevronProps = {
3
3
  direction: "up" | "down";
4
4
  };
5
5
  export default function Chevron({ direction }: ChevronProps): React.JSX.Element;
6
- export {};
7
- //# sourceMappingURL=Chevron.d.ts.map
@@ -1,7 +1,8 @@
1
- import React, { useCallback, useEffect } from "react";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useCallback, useEffect } from "react";
2
3
  import Animated, { interpolate, useAnimatedStyle, useSharedValue, withTiming, } from "react-native-reanimated";
3
4
  import { StyleSheet } from "react-native";
4
- import IonIcons from "react-native-vector-icons/Ionicons";
5
+ import IonIcons from "@react-native-vector-icons/ionicons/static";
5
6
  import { useThemedStyle } from "../../hooks";
6
7
  import { DEFAULT_TIMING_CONFIG } from "../../constants/animations";
7
8
  export default function Chevron({ direction = "down" }) {
@@ -17,9 +18,7 @@ export default function Chevron({ direction = "down" }) {
17
18
  ],
18
19
  };
19
20
  }, [rotation]);
20
- return (<Animated.View style={animatedChevronStyle}>
21
- <IonIcons style={styles.chevron} name="chevron-down-outline" size={20}/>
22
- </Animated.View>);
21
+ return (_jsx(Animated.View, { style: animatedChevronStyle, children: _jsx(IonIcons, { style: styles.chevron, name: "chevron-down-outline", size: 20 }) }));
23
22
  }
24
23
  const useStyles = () => useThemedStyle(useCallback((t) => StyleSheet.create({
25
24
  chevron: {
@@ -27,4 +26,3 @@ const useStyles = () => useThemedStyle(useCallback((t) => StyleSheet.create({
27
26
  color: t.colors.foreground,
28
27
  },
29
28
  }), []));
30
- //# sourceMappingURL=Chevron.js.map
@@ -1,2 +1,2 @@
1
1
  export { default as Chevron } from "./Chevron";
2
- //# sourceMappingURL=index.d.ts.map
2
+ export * from "./Chevron";
@@ -1,2 +1,2 @@
1
1
  export { default as Chevron } from "./Chevron";
2
- //# sourceMappingURL=index.js.map
2
+ export * from "./Chevron";
@@ -16,4 +16,3 @@ export type DateTimeInputProps = {
16
16
  };
17
17
  declare const DateTimeInput: ({ value, onChange, testID, containerStyle, label, caption, mode, error, disabled, onSave, }: DateTimeInputProps) => React.JSX.Element;
18
18
  export default DateTimeInput;
19
- //# sourceMappingURL=DateTimeInput.d.ts.map
@@ -1,8 +1,9 @@
1
- import React, { useCallback, useEffect, useState, useRef } from "react";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useCallback, useEffect, useState, useRef } from "react";
2
3
  import DateTimePicker from "@react-native-community/datetimepicker";
3
4
  import { View, TouchableOpacity, StyleSheet, } from "react-native";
4
5
  import Animated, { interpolate, useAnimatedStyle, useSharedValue, withTiming, } from "react-native-reanimated";
5
- import IonIcons from "react-native-vector-icons/Ionicons";
6
+ import IonIcons from "@react-native-vector-icons/ionicons/static";
6
7
  import moment from "moment";
7
8
  import { Sheet } from "../Sheet";
8
9
  import { Text } from "../Text";
@@ -83,43 +84,18 @@ const DateTimeInput = ({ value, onChange, testID, containerStyle, label, caption
83
84
  ],
84
85
  };
85
86
  });
86
- return (<>
87
- <View testID={testID} style={[styles.container, containerStyle]}>
88
- <TouchableOpacity onPress={() => setDateSheetOpen(true)} disabled={disabled}>
89
- <Animated.View style={[styles.itemContainer, animatedBorderStyle]}>
90
- <View pointerEvents="none" style={styles.labelContainer}>
91
- <Animated.Text style={[styles.label, animatedLabelStyles]}>
92
- {label}
93
- </Animated.Text>
94
- </View>
95
- <Animated.View style={animatedValueStyle}>
96
- <Text contrast="low" style={styles.value}>
97
- {moment(value).format(getFormat(mode)).toString()}
98
- </Text>
99
- </Animated.View>
100
- <IonIcons color={!disabled
101
- ? theme.colors.foreground
102
- : theme.colors.foregroundLowContrast} name={mode === "time" ? "time-outline" : "calendar-outline"} size={20}/>
103
- </Animated.View>
104
- </TouchableOpacity>
105
- {!!error && <FieldError error={error}/>}
106
- {!!caption && <MenuItemDescription description={caption}/>}
107
- </View>
108
- <Sheet disableScroll header={label} open={dateSheetOpen} setOpen={setDateSheetOpen} footerPadding={70} footer={<Button text="Save" onPress={() => {
109
- onSave?.(date);
110
- setDateSheetOpen(false);
111
- }}/>}>
112
- <View style={styles.pickerContainer}>
113
- <DateTimePicker value={date} style={styles.datePicker} mode={mode} themeVariant={theme.isDarkTheme ? "dark" : "light"} display="spinner" onChange={(_, newDate) => {
114
- if (!newDate) {
115
- return;
116
- }
117
- setDate(newDate);
118
- onChange?.(newDate);
119
- }}/>
120
- </View>
121
- </Sheet>
122
- </>);
87
+ return (_jsxs(_Fragment, { children: [_jsxs(View, { testID: testID, style: [styles.container, containerStyle], children: [_jsx(TouchableOpacity, { onPress: () => setDateSheetOpen(true), disabled: disabled, children: _jsxs(Animated.View, { style: [styles.itemContainer, animatedBorderStyle], children: [_jsx(View, { style: styles.labelContainer, children: _jsx(Animated.Text, { style: [styles.label, animatedLabelStyles], children: label }) }), _jsx(Animated.View, { style: animatedValueStyle, children: _jsx(Text, { contrast: "low", style: styles.value, children: moment(value).format(getFormat(mode)).toString() }) }), _jsx(IonIcons, { color: !disabled
88
+ ? theme.colors.foreground
89
+ : theme.colors.foregroundLowContrast, name: mode === "time" ? "time-outline" : "calendar-outline", size: 20 })] }) }), !!error && _jsx(FieldError, { error: error }), !!caption && _jsx(MenuItemDescription, { description: caption })] }), _jsx(Sheet, { disableScroll: true, header: label, open: dateSheetOpen, setOpen: setDateSheetOpen, footerPadding: 70, footer: _jsx(Button, { text: "Save", onPress: () => {
90
+ onSave?.(date);
91
+ setDateSheetOpen(false);
92
+ } }), children: _jsx(View, { style: styles.pickerContainer, children: _jsx(DateTimePicker, { value: date, style: styles.datePicker, mode: mode, themeVariant: theme.isDarkTheme ? "dark" : "light", display: "spinner", onChange: (_, newDate) => {
93
+ if (!newDate) {
94
+ return;
95
+ }
96
+ setDate(newDate);
97
+ onChange?.(newDate);
98
+ } }) }) })] }));
123
99
  };
124
100
  export default DateTimeInput;
125
101
  const useStyles = (disabled) => useThemedStyle(useCallback((t) => StyleSheet.create({
@@ -153,6 +129,7 @@ const useStyles = (disabled) => useThemedStyle(useCallback((t) => StyleSheet.cre
153
129
  labelContainer: {
154
130
  left: t.size.baseSize * 2,
155
131
  position: "absolute",
132
+ pointerEvents: "none",
156
133
  },
157
134
  label: {
158
135
  color: !disabled
@@ -164,4 +141,3 @@ const useStyles = (disabled) => useThemedStyle(useCallback((t) => StyleSheet.cre
164
141
  paddingHorizontal: t.size.baseSize * 0,
165
142
  },
166
143
  }), [disabled]));
167
- //# sourceMappingURL=DateTimeInput.js.map
@@ -1,3 +1,2 @@
1
1
  export { default as DateTimeInput } from "./DateTimeInput";
2
2
  export * from "./DateTimeInput";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export { default as DateTimeInput } from "./DateTimeInput";
2
2
  export * from "./DateTimeInput";
3
- //# sourceMappingURL=index.js.map
@@ -1,8 +1,7 @@
1
1
  import React from "react";
2
2
  type DragHandleSize = "small" | "medium" | "large";
3
- type Props = {
3
+ export type DragHandleProps = {
4
4
  size?: DragHandleSize;
5
5
  };
6
- declare const DragHandle: ({ size }: Props) => React.JSX.Element;
6
+ declare const DragHandle: ({ size }: DragHandleProps) => React.JSX.Element;
7
7
  export default DragHandle;
8
- //# sourceMappingURL=DragHandle.d.ts.map
@@ -1,4 +1,5 @@
1
- import React, { useCallback } from "react";
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useCallback } from "react";
2
3
  import { StyleSheet, View } from "react-native";
3
4
  import { useThemedStyle } from "../../hooks";
4
5
  const SIZE_MAP = {
@@ -8,9 +9,7 @@ const SIZE_MAP = {
8
9
  };
9
10
  const DragHandle = ({ size = "medium" }) => {
10
11
  const styles = useStyles(size).styles;
11
- return (<View style={styles.container}>
12
- <View style={styles.handle}/>
13
- </View>);
12
+ return (_jsx(View, { style: styles.container, children: _jsx(View, { style: styles.handle }) }));
14
13
  };
15
14
  export default DragHandle;
16
15
  const useStyles = (size) => useThemedStyle(useCallback((t) => StyleSheet.create({
@@ -26,4 +25,3 @@ const useStyles = (size) => useThemedStyle(useCallback((t) => StyleSheet.create(
26
25
  backgroundColor: t.colors.backgroundOnPrimary,
27
26
  },
28
27
  }), [size]));
29
- //# sourceMappingURL=DragHandle.js.map
@@ -1,2 +1,2 @@
1
1
  export { default as DragHandle } from "./DragHandle";
2
- //# sourceMappingURL=index.d.ts.map
2
+ export * from "./DragHandle";
@@ -1,2 +1,2 @@
1
1
  export { default as DragHandle } from "./DragHandle";
2
- //# sourceMappingURL=index.js.map
2
+ export * from "./DragHandle";
@@ -1,6 +1,4 @@
1
- type Props = {
1
+ export type FieldErrorProps = {
2
2
  error: string;
3
3
  };
4
- export declare const FieldError: ({ error }: Props) => import("react").JSX.Element;
5
- export {};
6
- //# sourceMappingURL=FieldError.d.ts.map
4
+ export declare const FieldError: ({ error }: FieldErrorProps) => import("react").JSX.Element;
@@ -1,14 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
1
2
  import { useCallback } from "react";
2
3
  import { View, StyleSheet } from "react-native";
3
4
  import { useThemedStyle } from "../../hooks";
4
5
  import { Text } from '../Text';
5
6
  export const FieldError = ({ error }) => {
6
7
  const styles = useStyles().styles;
7
- return (<View style={styles.errorContainer}>
8
- <Text category="p2" status="error">
9
- {error}
10
- </Text>
11
- </View>);
8
+ return (_jsx(View, { style: styles.errorContainer, children: _jsx(Text, { category: "p2", status: "error", children: error }) }));
12
9
  };
13
10
  const useStyles = () => useThemedStyle(useCallback(t => StyleSheet.create({
14
11
  errorContainer: {
@@ -16,4 +13,3 @@ const useStyles = () => useThemedStyle(useCallback(t => StyleSheet.create({
16
13
  marginTop: t.size.baseSize * 1,
17
14
  },
18
15
  }), []));
19
- //# sourceMappingURL=FieldError.js.map
@@ -2,4 +2,3 @@ import { InformedProps } from "informed";
2
2
  import { ViewProps } from "react-native";
3
3
  declare const Form: ({ children, ...rest }: InformedProps<ViewProps>) => JSX.Element;
4
4
  export default Form;
5
- //# sourceMappingURL=Form.d.ts.map
@@ -1,9 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
1
2
  import { useForm } from "informed";
2
3
  import { View } from "react-native";
3
4
  const Form = ({ children, ...rest }) => {
4
5
  const { render, userProps } = useForm(rest);
5
- // @ts-expect-error no types yet :/
6
- return render(<View {...userProps}>{children}</View>);
6
+ return render(_jsx(View, { ...userProps, children: children }));
7
7
  };
8
8
  export default Form;
9
- //# sourceMappingURL=Form.js.map
@@ -1,2 +1 @@
1
1
  export { default as Form } from "./Form";
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1 @@
1
1
  export { default as Form } from "./Form";
2
- //# sourceMappingURL=index.js.map
@@ -2,4 +2,3 @@ import { FieldProps } from "informed";
2
2
  import { DateTimeInputProps } from "../../DateTimeInput";
3
3
  declare const FormDateTimeInput: (props: FieldProps<DateTimeInputProps>) => JSX.Element;
4
4
  export default FormDateTimeInput;
5
- //# sourceMappingURL=FormDateTimeInput.d.ts.map