ferns-ui 0.2.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 (521) hide show
  1. package/LICENSE +203 -0
  2. package/README.md +22 -0
  3. package/dist/ActionSheet.d.ts +490 -0
  4. package/dist/ActionSheet.js +647 -0
  5. package/dist/ActionSheet.js.map +1 -0
  6. package/dist/Banner.d.ts +27 -0
  7. package/dist/Banner.js +56 -0
  8. package/dist/Banner.js.map +1 -0
  9. package/dist/Banner.stories.d.ts +1 -0
  10. package/dist/Banner.stories.js +13 -0
  11. package/dist/Banner.stories.js.map +1 -0
  12. package/dist/BlurBox.d.ts +5 -0
  13. package/dist/BlurBox.js +28 -0
  14. package/dist/BlurBox.js.map +1 -0
  15. package/dist/BlurBox.native.d.ts +6 -0
  16. package/dist/BlurBox.native.js +30 -0
  17. package/dist/BlurBox.native.js.map +1 -0
  18. package/dist/Body.d.ts +6 -0
  19. package/dist/Body.js +21 -0
  20. package/dist/Body.js.map +1 -0
  21. package/dist/Box.d.ts +18 -0
  22. package/dist/Box.js +228 -0
  23. package/dist/Box.js.map +1 -0
  24. package/dist/Box.stories.d.ts +1 -0
  25. package/dist/Box.stories.js +45 -0
  26. package/dist/Box.stories.js.map +1 -0
  27. package/dist/Button.d.ts +20 -0
  28. package/dist/Button.js +103 -0
  29. package/dist/Button.js.map +1 -0
  30. package/dist/Button.stories.d.ts +1 -0
  31. package/dist/Button.stories.js +41 -0
  32. package/dist/Button.stories.js.map +1 -0
  33. package/dist/Card.d.ts +5 -0
  34. package/dist/Card.js +8 -0
  35. package/dist/Card.js.map +1 -0
  36. package/dist/Card.stories.d.ts +6 -0
  37. package/dist/Card.stories.js +18 -0
  38. package/dist/Card.stories.js.map +1 -0
  39. package/dist/CheckBox.d.ts +6 -0
  40. package/dist/CheckBox.js +27 -0
  41. package/dist/CheckBox.js.map +1 -0
  42. package/dist/CheckBox.stories.d.ts +1 -0
  43. package/dist/CheckBox.stories.js +28 -0
  44. package/dist/CheckBox.stories.js.map +1 -0
  45. package/dist/Common.d.ts +868 -0
  46. package/dist/Common.js +46 -0
  47. package/dist/Common.js.map +1 -0
  48. package/dist/DateTimeActionSheet.d.ts +15 -0
  49. package/dist/DateTimeActionSheet.js +28 -0
  50. package/dist/DateTimeActionSheet.js.map +1 -0
  51. package/dist/DecimalRangeActionSheet.d.ts +18 -0
  52. package/dist/DecimalRangeActionSheet.js +65 -0
  53. package/dist/DecimalRangeActionSheet.js.map +1 -0
  54. package/dist/ErrorBoundary.d.ts +19 -0
  55. package/dist/ErrorBoundary.js +31 -0
  56. package/dist/ErrorBoundary.js.map +1 -0
  57. package/dist/ErrorPage.d.ts +10 -0
  58. package/dist/ErrorPage.js +20 -0
  59. package/dist/ErrorPage.js.map +1 -0
  60. package/dist/Field.d.ts +15 -0
  61. package/dist/Field.js +136 -0
  62. package/dist/Field.js.map +1 -0
  63. package/dist/Field.stories.d.ts +6 -0
  64. package/dist/Field.stories.js +38 -0
  65. package/dist/Field.stories.js.map +1 -0
  66. package/dist/FieldWithLabels.d.ts +3 -0
  67. package/dist/FieldWithLabels.js +8 -0
  68. package/dist/FieldWithLabels.js.map +1 -0
  69. package/dist/FlatList.d.ts +2 -0
  70. package/dist/FlatList.js +3 -0
  71. package/dist/FlatList.js.map +1 -0
  72. package/dist/Form.d.ts +22 -0
  73. package/dist/Form.js +89 -0
  74. package/dist/Form.js.map +1 -0
  75. package/dist/Form.stories.d.ts +6 -0
  76. package/dist/Form.stories.js +36 -0
  77. package/dist/Form.stories.js.map +1 -0
  78. package/dist/HeaderButtons.d.ts +31 -0
  79. package/dist/HeaderButtons.js +53 -0
  80. package/dist/HeaderButtons.js.map +1 -0
  81. package/dist/HeaderButtons.stories.d.ts +6 -0
  82. package/dist/HeaderButtons.stories.js +6 -0
  83. package/dist/HeaderButtons.stories.js.map +1 -0
  84. package/dist/Heading.d.ts +11 -0
  85. package/dist/Heading.js +46 -0
  86. package/dist/Heading.js.map +1 -0
  87. package/dist/Heading.stories.d.ts +1 -0
  88. package/dist/Heading.stories.js +22 -0
  89. package/dist/Heading.stories.js.map +1 -0
  90. package/dist/HeightActionSheet.d.ts +16 -0
  91. package/dist/HeightActionSheet.js +58 -0
  92. package/dist/HeightActionSheet.js.map +1 -0
  93. package/dist/Icon.d.ts +9 -0
  94. package/dist/Icon.js +125 -0
  95. package/dist/Icon.js.map +1 -0
  96. package/dist/Icon.stories.d.ts +1 -0
  97. package/dist/Icon.stories.js +30 -0
  98. package/dist/Icon.stories.js.map +1 -0
  99. package/dist/IconButton.d.ts +5 -0
  100. package/dist/IconButton.js +41 -0
  101. package/dist/IconButton.js.map +1 -0
  102. package/dist/IconButton.stories.d.ts +1 -0
  103. package/dist/IconButton.stories.js +16 -0
  104. package/dist/IconButton.stories.js.map +1 -0
  105. package/dist/Image.d.ts +8 -0
  106. package/dist/Image.js +37 -0
  107. package/dist/Image.js.map +1 -0
  108. package/dist/ImageBackground.d.ts +9 -0
  109. package/dist/ImageBackground.js +8 -0
  110. package/dist/ImageBackground.js.map +1 -0
  111. package/dist/Layer.d.ts +9 -0
  112. package/dist/Layer.js +12 -0
  113. package/dist/Layer.js.map +1 -0
  114. package/dist/Link.d.ts +9 -0
  115. package/dist/Link.js +12 -0
  116. package/dist/Link.js.map +1 -0
  117. package/dist/Link.stories.d.ts +1 -0
  118. package/dist/Link.stories.js +18 -0
  119. package/dist/Link.stories.js.map +1 -0
  120. package/dist/Mask.d.ts +5 -0
  121. package/dist/Mask.js +22 -0
  122. package/dist/Mask.js.map +1 -0
  123. package/dist/Mask.stories.d.ts +1 -0
  124. package/dist/Mask.stories.js +28 -0
  125. package/dist/Mask.stories.js.map +1 -0
  126. package/dist/MediaQuery.d.ts +2 -0
  127. package/dist/MediaQuery.js +33 -0
  128. package/dist/MediaQuery.js.map +1 -0
  129. package/dist/Meta.d.ts +5 -0
  130. package/dist/Meta.js +7 -0
  131. package/dist/Meta.js.map +1 -0
  132. package/dist/ModalSheet.d.ts +7 -0
  133. package/dist/ModalSheet.js +42 -0
  134. package/dist/ModalSheet.js.map +1 -0
  135. package/dist/NumberPickerActionSheet.d.ts +16 -0
  136. package/dist/NumberPickerActionSheet.js +29 -0
  137. package/dist/NumberPickerActionSheet.js.map +1 -0
  138. package/dist/Page.d.ts +26 -0
  139. package/dist/Page.js +38 -0
  140. package/dist/Page.js.map +1 -0
  141. package/dist/Permissions.d.ts +2 -0
  142. package/dist/Permissions.js +35 -0
  143. package/dist/Permissions.js.map +1 -0
  144. package/dist/PickerSelect.d.ts +174 -0
  145. package/dist/PickerSelect.js +426 -0
  146. package/dist/PickerSelect.js.map +1 -0
  147. package/dist/Pill.d.ts +5 -0
  148. package/dist/Pill.js +10 -0
  149. package/dist/Pill.js.map +1 -0
  150. package/dist/Pill.stories.d.ts +1 -0
  151. package/dist/Pill.stories.js +38 -0
  152. package/dist/Pill.stories.js.map +1 -0
  153. package/dist/Pog.d.ts +15 -0
  154. package/dist/Pog.js +144 -0
  155. package/dist/Pog.js.map +1 -0
  156. package/dist/ProgressBar.d.ts +9 -0
  157. package/dist/ProgressBar.js +41 -0
  158. package/dist/ProgressBar.js.map +1 -0
  159. package/dist/ScrollView.d.ts +2 -0
  160. package/dist/ScrollView.js +3 -0
  161. package/dist/ScrollView.js.map +1 -0
  162. package/dist/SegmentedControl.d.ts +6 -0
  163. package/dist/SegmentedControl.js +18 -0
  164. package/dist/SegmentedControl.js.map +1 -0
  165. package/dist/SegmentedControl.stories.d.ts +1 -0
  166. package/dist/SegmentedControl.stories.js +31 -0
  167. package/dist/SegmentedControl.stories.js.map +1 -0
  168. package/dist/SelectList.d.ts +22 -0
  169. package/dist/SelectList.js +28 -0
  170. package/dist/SelectList.js.map +1 -0
  171. package/dist/SelectList.stories.d.ts +1 -0
  172. package/dist/SelectList.stories.js +26 -0
  173. package/dist/SelectList.stories.js.map +1 -0
  174. package/dist/Spinner.d.ts +21 -0
  175. package/dist/Spinner.js +58 -0
  176. package/dist/Spinner.js.map +1 -0
  177. package/dist/Spinner.stories.d.ts +1 -0
  178. package/dist/Spinner.stories.js +12 -0
  179. package/dist/Spinner.stories.js.map +1 -0
  180. package/dist/SplitPage.d.ts +31 -0
  181. package/dist/SplitPage.js +51 -0
  182. package/dist/SplitPage.js.map +1 -0
  183. package/dist/SplitPage.stories.d.ts +1 -0
  184. package/dist/SplitPage.stories.js +15 -0
  185. package/dist/SplitPage.stories.js.map +1 -0
  186. package/dist/StorybookContainer.d.ts +4 -0
  187. package/dist/StorybookContainer.js +8 -0
  188. package/dist/StorybookContainer.js.map +1 -0
  189. package/dist/Switch.d.ts +5 -0
  190. package/dist/Switch.js +10 -0
  191. package/dist/Switch.js.map +1 -0
  192. package/dist/Switch.stories.d.ts +1 -0
  193. package/dist/Switch.stories.js +34 -0
  194. package/dist/Switch.stories.js.map +1 -0
  195. package/dist/TapToEdit.d.ts +12 -0
  196. package/dist/TapToEdit.js +32 -0
  197. package/dist/TapToEdit.js.map +1 -0
  198. package/dist/Text.d.ts +11 -0
  199. package/dist/Text.js +85 -0
  200. package/dist/Text.js.map +1 -0
  201. package/dist/Text.stories.d.ts +1 -0
  202. package/dist/Text.stories.js +37 -0
  203. package/dist/Text.stories.js.map +1 -0
  204. package/dist/TextArea.d.ts +6 -0
  205. package/dist/TextArea.js +12 -0
  206. package/dist/TextArea.js.map +1 -0
  207. package/dist/TextArea.stories.d.ts +10 -0
  208. package/dist/TextArea.stories.js +24 -0
  209. package/dist/TextArea.stories.js.map +1 -0
  210. package/dist/TextField.d.ts +48 -0
  211. package/dist/TextField.js +207 -0
  212. package/dist/TextField.js.map +1 -0
  213. package/dist/TextField.stories.d.ts +6 -0
  214. package/dist/TextField.stories.js +18 -0
  215. package/dist/TextField.stories.js.map +1 -0
  216. package/dist/TextFieldNumberActionSheet.d.ts +15 -0
  217. package/dist/TextFieldNumberActionSheet.js +28 -0
  218. package/dist/TextFieldNumberActionSheet.js.map +1 -0
  219. package/dist/UnifiedScreens.d.ts +9 -0
  220. package/dist/UnifiedScreens.js +25 -0
  221. package/dist/UnifiedScreens.js.map +1 -0
  222. package/dist/Unifier.d.ts +40 -0
  223. package/dist/Unifier.js +203 -0
  224. package/dist/Unifier.js.map +1 -0
  225. package/dist/Utilities.d.ts +31 -0
  226. package/dist/Utilities.js +74 -0
  227. package/dist/Utilities.js.map +1 -0
  228. package/dist/WithLabel.d.ts +5 -0
  229. package/dist/WithLabel.js +27 -0
  230. package/dist/WithLabel.js.map +1 -0
  231. package/dist/dist/ActionSheet.d.ts +139 -0
  232. package/dist/dist/ActionSheet.js +637 -0
  233. package/dist/dist/ActionSheet.js.map +1 -0
  234. package/dist/dist/Banner.d.ts +12 -0
  235. package/dist/dist/Banner.js +49 -0
  236. package/dist/dist/Banner.js.map +1 -0
  237. package/dist/dist/Banner.stories.d.ts +1 -0
  238. package/dist/dist/Banner.stories.js +9 -0
  239. package/dist/dist/Banner.stories.js.map +1 -0
  240. package/dist/dist/BlurBox.d.ts +7 -0
  241. package/dist/dist/BlurBox.js +29 -0
  242. package/dist/dist/BlurBox.js.map +1 -0
  243. package/dist/dist/BlurBox.native.d.ts +9 -0
  244. package/dist/dist/BlurBox.native.js +32 -0
  245. package/dist/dist/BlurBox.native.js.map +1 -0
  246. package/dist/dist/Body.d.ts +12 -0
  247. package/dist/dist/Body.js +19 -0
  248. package/dist/dist/Body.js.map +1 -0
  249. package/dist/dist/Box.d.ts +205 -0
  250. package/dist/dist/Box.js +229 -0
  251. package/dist/dist/Box.js.map +1 -0
  252. package/dist/dist/Box.stories.d.ts +1 -0
  253. package/dist/dist/Box.stories.js +37 -0
  254. package/dist/dist/Box.stories.js.map +1 -0
  255. package/dist/dist/Button.d.ts +16 -0
  256. package/dist/dist/Button.js +98 -0
  257. package/dist/dist/Button.js.map +1 -0
  258. package/dist/dist/Button.stories.d.ts +13 -0
  259. package/dist/dist/Button.stories.js +26 -0
  260. package/dist/dist/Button.stories.js.map +1 -0
  261. package/dist/dist/Card.d.ts +6 -0
  262. package/dist/dist/Card.js +9 -0
  263. package/dist/dist/Card.js.map +1 -0
  264. package/dist/dist/Card.stories.d.ts +6 -0
  265. package/dist/dist/Card.stories.js +11 -0
  266. package/dist/dist/Card.stories.js.map +1 -0
  267. package/dist/dist/CheckBox.d.ts +8 -0
  268. package/dist/dist/CheckBox.js +23 -0
  269. package/dist/dist/CheckBox.js.map +1 -0
  270. package/dist/dist/CheckBox.stories.d.ts +1 -0
  271. package/dist/dist/CheckBox.stories.js +22 -0
  272. package/dist/dist/CheckBox.stories.js.map +1 -0
  273. package/dist/dist/Common.d.ts +5 -0
  274. package/dist/dist/Common.js +47 -0
  275. package/dist/dist/Common.js.map +1 -0
  276. package/dist/dist/DateTimeActionSheet.d.ts +5 -0
  277. package/dist/dist/DateTimeActionSheet.js +24 -0
  278. package/dist/dist/DateTimeActionSheet.js.map +1 -0
  279. package/dist/dist/DecimalRangeActionSheet.d.ts +9 -0
  280. package/dist/dist/DecimalRangeActionSheet.js +57 -0
  281. package/dist/dist/DecimalRangeActionSheet.js.map +1 -0
  282. package/dist/dist/ErrorBoundary.d.ts +12 -0
  283. package/dist/dist/ErrorBoundary.js +32 -0
  284. package/dist/dist/ErrorBoundary.js.map +1 -0
  285. package/dist/dist/ErrorPage.d.ts +7 -0
  286. package/dist/dist/ErrorPage.js +15 -0
  287. package/dist/dist/ErrorPage.js.map +1 -0
  288. package/dist/dist/Field.d.ts +17 -0
  289. package/dist/dist/Field.js +136 -0
  290. package/dist/dist/Field.js.map +1 -0
  291. package/dist/dist/Field.stories.d.ts +6 -0
  292. package/dist/dist/Field.stories.js +25 -0
  293. package/dist/dist/Field.stories.js.map +1 -0
  294. package/dist/dist/FieldWithLabels.d.ts +10 -0
  295. package/dist/dist/FieldWithLabels.js +7 -0
  296. package/dist/dist/FieldWithLabels.js.map +1 -0
  297. package/dist/dist/FlatList.d.ts +1 -0
  298. package/dist/dist/FlatList.js +4 -0
  299. package/dist/dist/FlatList.js.map +1 -0
  300. package/dist/dist/Form.d.ts +15 -0
  301. package/dist/dist/Form.js +56 -0
  302. package/dist/dist/Form.js.map +1 -0
  303. package/dist/dist/Form.stories.d.ts +6 -0
  304. package/dist/dist/Form.stories.js +27 -0
  305. package/dist/dist/Form.stories.js.map +1 -0
  306. package/dist/dist/HeaderButtons.d.ts +39 -0
  307. package/dist/dist/HeaderButtons.js +50 -0
  308. package/dist/dist/HeaderButtons.js.map +1 -0
  309. package/dist/dist/HeaderButtons.stories.d.ts +6 -0
  310. package/dist/dist/HeaderButtons.stories.js +7 -0
  311. package/dist/dist/HeaderButtons.stories.js.map +1 -0
  312. package/dist/dist/Heading.d.ts +32 -0
  313. package/dist/dist/Heading.js +47 -0
  314. package/dist/dist/Heading.js.map +1 -0
  315. package/dist/dist/Heading.stories.d.ts +1 -0
  316. package/dist/dist/Heading.stories.js +11 -0
  317. package/dist/dist/Heading.stories.js.map +1 -0
  318. package/dist/dist/HeightActionSheet.d.ts +9 -0
  319. package/dist/dist/HeightActionSheet.js +50 -0
  320. package/dist/dist/HeightActionSheet.js.map +1 -0
  321. package/dist/dist/Icon.d.ts +12 -0
  322. package/dist/dist/Icon.js +126 -0
  323. package/dist/dist/Icon.js.map +1 -0
  324. package/dist/dist/Icon.stories.d.ts +1 -0
  325. package/dist/dist/Icon.stories.js +11 -0
  326. package/dist/dist/Icon.stories.js.map +1 -0
  327. package/dist/dist/IconButton.d.ts +42 -0
  328. package/dist/dist/IconButton.js +41 -0
  329. package/dist/dist/IconButton.js.map +1 -0
  330. package/dist/dist/IconButton.stories.d.ts +1 -0
  331. package/dist/dist/IconButton.stories.js +8 -0
  332. package/dist/dist/IconButton.stories.js.map +1 -0
  333. package/dist/dist/Image.d.ts +9 -0
  334. package/dist/dist/Image.js +37 -0
  335. package/dist/dist/Image.js.map +1 -0
  336. package/dist/dist/ImageBackground.d.ts +6 -0
  337. package/dist/dist/ImageBackground.js +9 -0
  338. package/dist/dist/ImageBackground.js.map +1 -0
  339. package/dist/dist/Layer.d.ts +5 -0
  340. package/dist/dist/Layer.js +13 -0
  341. package/dist/dist/Layer.js.map +1 -0
  342. package/dist/dist/Link.d.ts +7 -0
  343. package/dist/dist/Link.js +13 -0
  344. package/dist/dist/Link.js.map +1 -0
  345. package/dist/dist/Link.stories.d.ts +1 -0
  346. package/dist/dist/Link.stories.js +8 -0
  347. package/dist/dist/Link.stories.js.map +1 -0
  348. package/dist/dist/Mask.d.ts +5 -0
  349. package/dist/dist/Mask.js +23 -0
  350. package/dist/dist/Mask.js.map +1 -0
  351. package/dist/dist/Mask.stories.d.ts +1 -0
  352. package/dist/dist/Mask.stories.js +13 -0
  353. package/dist/dist/Mask.stories.js.map +1 -0
  354. package/dist/dist/MediaQuery.d.ts +2 -0
  355. package/dist/dist/MediaQuery.js +34 -0
  356. package/dist/dist/MediaQuery.js.map +1 -0
  357. package/dist/dist/Meta.d.ts +6 -0
  358. package/dist/dist/Meta.js +8 -0
  359. package/dist/dist/Meta.js.map +1 -0
  360. package/dist/dist/ModalSheet.d.ts +3 -0
  361. package/dist/dist/ModalSheet.js +43 -0
  362. package/dist/dist/ModalSheet.js.map +1 -0
  363. package/dist/dist/NumberPickerActionSheet.d.ts +5 -0
  364. package/dist/dist/NumberPickerActionSheet.js +25 -0
  365. package/dist/dist/NumberPickerActionSheet.js.map +1 -0
  366. package/dist/dist/Page.d.ts +9 -0
  367. package/dist/dist/Page.js +26 -0
  368. package/dist/dist/Page.js.map +1 -0
  369. package/dist/dist/Permissions.d.ts +1 -0
  370. package/dist/dist/Permissions.js +36 -0
  371. package/dist/dist/Permissions.js.map +1 -0
  372. package/dist/dist/PickerSelect.d.ts +172 -0
  373. package/dist/dist/PickerSelect.js +403 -0
  374. package/dist/dist/PickerSelect.js.map +1 -0
  375. package/dist/dist/Pill.d.ts +7 -0
  376. package/dist/dist/Pill.js +10 -0
  377. package/dist/dist/Pill.js.map +1 -0
  378. package/dist/dist/Pill.stories.d.ts +1 -0
  379. package/dist/dist/Pill.stories.js +36 -0
  380. package/dist/dist/Pill.stories.js.map +1 -0
  381. package/dist/dist/Pog.d.ts +7 -0
  382. package/dist/dist/Pog.js +144 -0
  383. package/dist/dist/Pog.js.map +1 -0
  384. package/dist/dist/ProgressBar.d.ts +16 -0
  385. package/dist/dist/ProgressBar.js +40 -0
  386. package/dist/dist/ProgressBar.js.map +1 -0
  387. package/dist/dist/ScrollView.d.ts +1 -0
  388. package/dist/dist/ScrollView.js +4 -0
  389. package/dist/dist/ScrollView.js.map +1 -0
  390. package/dist/dist/SegmentedControl.d.ts +9 -0
  391. package/dist/dist/SegmentedControl.js +18 -0
  392. package/dist/dist/SegmentedControl.js.map +1 -0
  393. package/dist/dist/SegmentedControl.stories.d.ts +1 -0
  394. package/dist/dist/SegmentedControl.stories.js +32 -0
  395. package/dist/dist/SegmentedControl.stories.js.map +1 -0
  396. package/dist/dist/SelectList.d.ts +9 -0
  397. package/dist/dist/SelectList.js +29 -0
  398. package/dist/dist/SelectList.js.map +1 -0
  399. package/dist/dist/SelectList.stories.d.ts +1 -0
  400. package/dist/dist/SelectList.stories.js +24 -0
  401. package/dist/dist/SelectList.stories.js.map +1 -0
  402. package/dist/dist/Spinner.d.ts +44 -0
  403. package/dist/dist/Spinner.js +58 -0
  404. package/dist/dist/Spinner.js.map +1 -0
  405. package/dist/dist/Spinner.stories.d.ts +1 -0
  406. package/dist/dist/Spinner.stories.js +10 -0
  407. package/dist/dist/Spinner.stories.js.map +1 -0
  408. package/dist/dist/SplitPage.d.ts +7 -0
  409. package/dist/dist/SplitPage.js +20 -0
  410. package/dist/dist/SplitPage.js.map +1 -0
  411. package/dist/dist/SplitPage.stories.d.ts +1 -0
  412. package/dist/dist/SplitPage.stories.js +7 -0
  413. package/dist/dist/SplitPage.stories.js.map +1 -0
  414. package/dist/dist/StorybookContainer.d.ts +7 -0
  415. package/dist/dist/StorybookContainer.js +9 -0
  416. package/dist/dist/StorybookContainer.js.map +1 -0
  417. package/dist/dist/Switch.d.ts +6 -0
  418. package/dist/dist/Switch.js +10 -0
  419. package/dist/dist/Switch.js.map +1 -0
  420. package/dist/dist/Switch.stories.d.ts +1 -0
  421. package/dist/dist/Switch.stories.js +27 -0
  422. package/dist/dist/Switch.stories.js.map +1 -0
  423. package/dist/dist/TapToEdit.d.ts +9 -0
  424. package/dist/dist/TapToEdit.js +27 -0
  425. package/dist/dist/TapToEdit.js.map +1 -0
  426. package/dist/dist/Text.d.ts +36 -0
  427. package/dist/dist/Text.js +86 -0
  428. package/dist/dist/Text.js.map +1 -0
  429. package/dist/dist/Text.stories.d.ts +1 -0
  430. package/dist/dist/Text.stories.js +13 -0
  431. package/dist/dist/Text.stories.js.map +1 -0
  432. package/dist/dist/TextArea.d.ts +6 -0
  433. package/dist/dist/TextArea.js +13 -0
  434. package/dist/dist/TextArea.js.map +1 -0
  435. package/dist/dist/TextArea.stories.d.ts +12 -0
  436. package/dist/dist/TextArea.stories.js +21 -0
  437. package/dist/dist/TextArea.stories.js.map +1 -0
  438. package/dist/dist/TextField.d.ts +47 -0
  439. package/dist/dist/TextField.js +199 -0
  440. package/dist/dist/TextField.js.map +1 -0
  441. package/dist/dist/TextField.stories.d.ts +6 -0
  442. package/dist/dist/TextField.stories.js +15 -0
  443. package/dist/dist/TextField.stories.js.map +1 -0
  444. package/dist/dist/TextFieldNumberActionSheet.d.ts +5 -0
  445. package/dist/dist/TextFieldNumberActionSheet.js +24 -0
  446. package/dist/dist/TextFieldNumberActionSheet.js.map +1 -0
  447. package/dist/dist/UnifiedScreens.d.ts +2 -0
  448. package/dist/dist/UnifiedScreens.js +26 -0
  449. package/dist/dist/UnifiedScreens.js.map +1 -0
  450. package/dist/dist/Unifier.d.ts +131 -0
  451. package/dist/dist/Unifier.js +198 -0
  452. package/dist/dist/Unifier.js.map +1 -0
  453. package/dist/dist/Utilities.d.ts +51 -0
  454. package/dist/dist/Utilities.js +77 -0
  455. package/dist/dist/Utilities.js.map +1 -0
  456. package/dist/dist/WithLabel.d.ts +6 -0
  457. package/dist/dist/WithLabel.js +23 -0
  458. package/dist/dist/WithLabel.js.map +1 -0
  459. package/dist/dist/index.d.ts +43 -0
  460. package/dist/dist/index.js +49 -0
  461. package/dist/dist/index.js.map +1 -0
  462. package/dist/index.d.ts +1284 -0
  463. package/dist/index.js +49 -0
  464. package/dist/index.js.map +1 -0
  465. package/package.json +197 -0
  466. package/src/ActionSheet.tsx +1234 -0
  467. package/src/Banner.tsx +124 -0
  468. package/src/BlurBox.native.tsx +40 -0
  469. package/src/BlurBox.tsx +31 -0
  470. package/src/Body.tsx +32 -0
  471. package/src/Box.tsx +277 -0
  472. package/src/Button.tsx +139 -0
  473. package/src/Card.tsx +23 -0
  474. package/src/CheckBox.tsx +93 -0
  475. package/src/Common.ts +1376 -0
  476. package/src/DateTimeActionSheet.tsx +61 -0
  477. package/src/DecimalRangeActionSheet.tsx +113 -0
  478. package/src/ErrorBoundary.tsx +39 -0
  479. package/src/ErrorPage.tsx +44 -0
  480. package/src/Field.tsx +194 -0
  481. package/src/FieldWithLabels.tsx +36 -0
  482. package/src/FlatList.tsx +2 -0
  483. package/src/Form.tsx +182 -0
  484. package/src/HeaderButtons.tsx +107 -0
  485. package/src/Heading.tsx +53 -0
  486. package/src/HeightActionSheet.tsx +104 -0
  487. package/src/Icon.tsx +139 -0
  488. package/src/IconButton.tsx +52 -0
  489. package/src/Image.tsx +50 -0
  490. package/src/ImageBackground.tsx +13 -0
  491. package/src/Layer.tsx +17 -0
  492. package/src/Link.tsx +17 -0
  493. package/src/Mask.tsx +24 -0
  494. package/src/MediaQuery.ts +28 -0
  495. package/src/Meta.tsx +9 -0
  496. package/src/ModalSheet.tsx +58 -0
  497. package/src/NumberPickerActionSheet.tsx +66 -0
  498. package/src/Page.tsx +134 -0
  499. package/src/Permissions.ts +44 -0
  500. package/src/PickerSelect.tsx +673 -0
  501. package/src/Pill.tsx +24 -0
  502. package/src/Pog.tsx +211 -0
  503. package/src/ProgressBar.tsx +55 -0
  504. package/src/ScrollView.tsx +2 -0
  505. package/src/SegmentedControl.tsx +51 -0
  506. package/src/SelectList.tsx +48 -0
  507. package/src/Spinner.tsx +69 -0
  508. package/src/SplitPage.tsx +115 -0
  509. package/src/Switch.tsx +19 -0
  510. package/src/TapToEdit.tsx +48 -0
  511. package/src/Text.tsx +92 -0
  512. package/src/TextArea.tsx +15 -0
  513. package/src/TextField.tsx +291 -0
  514. package/src/TextFieldNumberActionSheet.tsx +61 -0
  515. package/src/UnifiedScreens.ts +24 -0
  516. package/src/Unifier.ts +268 -0
  517. package/src/Utilities.tsx +161 -0
  518. package/src/WithLabel.tsx +46 -0
  519. package/src/index.tsx +1332 -0
  520. package/src/polyfill.d.ts +11 -0
  521. package/tsconfig.json +29 -0
package/src/index.tsx ADDED
@@ -0,0 +1,1332 @@
1
+ export * from "./Common";
2
+ export * from "./Banner";
3
+ export * from "./BlurBox";
4
+ export * from "./Body";
5
+ export * from "./Box";
6
+ export * from "./Button";
7
+ export * from "./Card";
8
+ export * from "./CheckBox";
9
+ export * from "./DateTimeActionSheet";
10
+ export * from "./ErrorBoundary";
11
+ export * from "./ErrorPage";
12
+ export * from "./FlatList";
13
+ export * from "./Field";
14
+ export * from "./Form";
15
+ export * from "./HeaderButtons";
16
+ export * from "./Heading";
17
+ export * from "./Icon";
18
+ export * from "./ActionSheet";
19
+ export * from "./IconButton";
20
+ export * from "./Image";
21
+ export * from "./ImageBackground";
22
+ // export * from "./Layout";
23
+ // export * from "./Drawer";
24
+ export * from "./Link";
25
+ export * from "./Mask";
26
+ export * from "./Meta";
27
+ // export * from "./Modal";
28
+
29
+ export * from "./Page";
30
+ export * from "./Pill";
31
+ export * from "./ScrollView";
32
+ export * from "./SegmentedControl";
33
+ export * from "./SelectList";
34
+ export * from "./SplitPage";
35
+ export * from "./Spinner";
36
+ export * from "./Switch";
37
+ export * from "./TapToEdit";
38
+ export * from "./Text";
39
+ export * from "./TextArea";
40
+ export * from "./TextField";
41
+ export * from "./UnifiedScreens";
42
+ export * from "./Unifier";
43
+ export * from "./WithLabel";
44
+ export * from "./DecimalRangeActionSheet";
45
+ export * from "./HeightActionSheet";
46
+ export * from "./NumberPickerActionSheet";
47
+ // export * from "./Chart";
48
+ export * from "./ModalSheet";
49
+ export * from "./ProgressBar";
50
+
51
+ // Lifted from react-native
52
+ type ImageRequireSource = number;
53
+ interface Insets {
54
+ top?: number;
55
+ left?: number;
56
+ bottom?: number;
57
+ right?: number;
58
+ }
59
+
60
+ // Lifted from react-native-navigatino
61
+ // import {Options} from "./Options";
62
+ export interface LayoutComponent<P = {}> {
63
+ /**
64
+ * Component reference id, Auto generated if empty
65
+ */
66
+ id?: string;
67
+ /**
68
+ * Name of your component
69
+ */
70
+ name: string | number;
71
+ /**
72
+ * Styling options
73
+ */
74
+ options?: Options;
75
+ /**
76
+ * Properties to pass down to the component
77
+ */
78
+ passProps?: P;
79
+ }
80
+ export interface LayoutStackChildren {
81
+ /**
82
+ * Set component
83
+ */
84
+ component?: LayoutComponent;
85
+ /**
86
+ * Set the external component
87
+ */
88
+ externalComponent?: ExternalComponent;
89
+ }
90
+ export interface LayoutStack {
91
+ /**
92
+ * Set ID of the stack so you can use Navigation.mergeOptions to
93
+ * update options
94
+ */
95
+ id?: string;
96
+ /**
97
+ * Set children screens
98
+ */
99
+ children?: LayoutStackChildren[];
100
+ /**
101
+ * Set options
102
+ */
103
+ options?: Options;
104
+ }
105
+ export interface LayoutTabsChildren {
106
+ /**
107
+ * Set stack
108
+ */
109
+ stack?: LayoutStack;
110
+ /**
111
+ * Set component
112
+ */
113
+ component?: LayoutComponent;
114
+ /**
115
+ * Set the external component
116
+ */
117
+ externalComponent?: ExternalComponent;
118
+ }
119
+ export interface LayoutBottomTabs {
120
+ /**
121
+ * Set ID of the stack so you can use Navigation.mergeOptions to
122
+ * update options
123
+ */
124
+ id?: string;
125
+ /**
126
+ * Set the children screens
127
+ */
128
+ children?: LayoutTabsChildren[];
129
+ /**
130
+ * Set the bottom tabs options
131
+ */
132
+ options?: Options;
133
+ }
134
+ export interface LayoutSideMenu {
135
+ /**
136
+ * Set ID of the stack so you can use Navigation.mergeOptions to
137
+ * update options
138
+ */
139
+ id?: string;
140
+ /**
141
+ * Set the left side bar
142
+ */
143
+ left?: LayoutStackChildren;
144
+ /**
145
+ * Set the center view
146
+ */
147
+ center: Layout;
148
+ /**
149
+ * Set the right side bar
150
+ */
151
+ right?: LayoutStackChildren;
152
+ /**
153
+ * Set the bottom tabs options
154
+ */
155
+ options?: Options;
156
+ }
157
+ export interface LayoutSplitView {
158
+ /**
159
+ * Set ID of the stack so you can use Navigation.mergeOptions to
160
+ * update options
161
+ */
162
+ id?: string;
163
+ /**
164
+ * Set master layout (the smaller screen, sidebar)
165
+ */
166
+ master?: Layout;
167
+ /**
168
+ * Set detail layout (the larger screen, flexes)
169
+ */
170
+ detail?: Layout;
171
+ /**
172
+ * Configure split view
173
+ */
174
+ options?: Options;
175
+ }
176
+ export interface LayoutTopTabs {
177
+ /**
178
+ * Set the layout's id so Navigation.mergeOptions can be used to update options
179
+ */
180
+ id?: string;
181
+ /**
182
+ * Set the children screens
183
+ */
184
+ children?: LayoutTabsChildren[];
185
+ /**
186
+ * Configure top tabs
187
+ */
188
+ options?: Options;
189
+ }
190
+ export interface LayoutRoot {
191
+ /**
192
+ * Set the root
193
+ */
194
+ root: Layout;
195
+ modals?: any;
196
+ overlays?: any;
197
+ }
198
+ export interface ExternalComponent {
199
+ /**
200
+ * Set the screen's id so Navigation.mergeOptions can be used to update options
201
+ */
202
+ id?: string;
203
+ /**
204
+ * Name of your component
205
+ */
206
+ name: string | number;
207
+ /**
208
+ * Configure component options
209
+ */
210
+ options?: Options;
211
+ /**
212
+ * Properties to pass down to the component
213
+ */
214
+ passProps?: object;
215
+ }
216
+ export interface Layout<P = {}> {
217
+ /**
218
+ * Set the component
219
+ */
220
+ component?: LayoutComponent<P>;
221
+ /**
222
+ * Set the stack
223
+ */
224
+ stack?: LayoutStack;
225
+ /**
226
+ * Set the bottom tabs
227
+ */
228
+ bottomTabs?: LayoutBottomTabs;
229
+ /**
230
+ * Set the side menu
231
+ */
232
+ sideMenu?: LayoutSideMenu;
233
+ /**
234
+ * Set the split view
235
+ */
236
+ splitView?: LayoutSplitView;
237
+ /**
238
+ * Set the top tabs
239
+ */
240
+ topTabs?: LayoutTopTabs;
241
+ /**
242
+ * Set the external component
243
+ */
244
+ externalComponent?: ExternalComponent;
245
+ }
246
+
247
+ declare type Color = string;
248
+ declare type FontFamily = string;
249
+ declare type FontWeight =
250
+ | "regular"
251
+ | "bold"
252
+ | "thin"
253
+ | "ultraLight"
254
+ | "light"
255
+ | "medium"
256
+ | "semibold"
257
+ | "heavy"
258
+ | "black";
259
+ declare type LayoutOrientation = "portrait" | "landscape";
260
+ declare type AndroidDensityNumber = number;
261
+ declare type SystemItemIcon =
262
+ | "done"
263
+ | "cancel"
264
+ | "edit"
265
+ | "save"
266
+ | "add"
267
+ | "flexibleSpace"
268
+ | "fixedSpace"
269
+ | "compose"
270
+ | "reply"
271
+ | "action"
272
+ | "organize"
273
+ | "bookmarks"
274
+ | "search"
275
+ | "refresh"
276
+ | "stop"
277
+ | "camera"
278
+ | "trash"
279
+ | "play"
280
+ | "pause"
281
+ | "rewind"
282
+ | "fastForward"
283
+ | "undo"
284
+ | "redo";
285
+ declare type Interpolation =
286
+ | "linear"
287
+ | "accelerateDecelerate"
288
+ | "decelerate"
289
+ | "accelerate"
290
+ | "decelerateAccelerate";
291
+ export interface OptionsSplitView {
292
+ /**
293
+ * Master view display mode
294
+ * @default 'auto'
295
+ */
296
+ displayMode?: "auto" | "visible" | "hidden" | "overlay";
297
+ /**
298
+ * Master view side. Leading is left. Trailing is right.
299
+ * @default 'leading'
300
+ */
301
+ primaryEdge?: "leading" | "trailing";
302
+ /**
303
+ * Set the minimum width of master view
304
+ */
305
+ minWidth?: number;
306
+ /**
307
+ * Set the maximum width of master view
308
+ */
309
+ maxWidth?: number;
310
+ }
311
+ export interface OptionsStatusBar {
312
+ /**
313
+ * Set the status bar visibility
314
+ * @default true
315
+ */
316
+ visible?: boolean;
317
+ /**
318
+ * Set the text color of the status bar
319
+ * @default 'light'
320
+ */
321
+ style?: "light" | "dark";
322
+ /**
323
+ * Set the background color of the status bar
324
+ * #### (Android specific)
325
+ */
326
+ backgroundColor?: Color;
327
+ /**
328
+ * Draw screen behind the status bar
329
+ * #### (Android specific)
330
+ */
331
+ drawBehind?: boolean;
332
+ }
333
+ export interface OptionsLayout {
334
+ fitSystemWindows?: boolean;
335
+ /**
336
+ * Set the screen background color
337
+ */
338
+ backgroundColor?: Color;
339
+ /**
340
+ * Set background color only for components, helps reduce overdraw if background color is set in default options.
341
+ * #### (Android specific)
342
+ */
343
+ componentBackgroundColor?: Color;
344
+ /**
345
+ * Set the allowed orientations
346
+ */
347
+ orientation?: LayoutOrientation[];
348
+ /**
349
+ * Layout top margin
350
+ * #### (Android specific)
351
+ */
352
+ topMargin?: number;
353
+ /**
354
+ * Set language direction.
355
+ * only works with DefaultOptions
356
+ */
357
+ direction?: "rtl" | "ltr";
358
+ }
359
+ export declare enum OptionsModalPresentationStyle {
360
+ formSheet = "formSheet",
361
+ pageSheet = "pageSheet",
362
+ overFullScreen = "overFullScreen",
363
+ overCurrentContext = "overCurrentContext",
364
+ currentContext = "currentContext",
365
+ popover = "popover",
366
+ fullScreen = "fullScreen",
367
+ none = "none",
368
+ }
369
+ export declare enum OptionsModalTransitionStyle {
370
+ coverVertical = "coverVertical",
371
+ crossDissolve = "crossDissolve",
372
+ flipHorizontal = "flipHorizontal",
373
+ partialCurl = "partialCurl",
374
+ }
375
+ export interface OptionsTopBarLargeTitle {
376
+ /**
377
+ * Enable large titles
378
+ */
379
+ visible?: boolean;
380
+ /**
381
+ * Set the font size of large title's text
382
+ */
383
+ fontSize?: number;
384
+ /**
385
+ * Set the color of large title's text
386
+ */
387
+ color?: Color;
388
+ /**
389
+ * Set the font family of large title's text
390
+ */
391
+ fontFamily?: FontFamily;
392
+ /**
393
+ * Set the font weight, ignore fontFamily and use the iOS system fonts instead
394
+ * #### (iOS specific)
395
+ */
396
+ fontWeight?: FontWeight;
397
+ }
398
+ export interface OptionsTopBarTitle {
399
+ /**
400
+ * Text to display in the title area
401
+ */
402
+ text?: string;
403
+ /**
404
+ * Font size
405
+ */
406
+ fontSize?: number;
407
+ /**
408
+ * Text color
409
+ */
410
+ color?: Color;
411
+ /**
412
+ * Title font family
413
+ *
414
+ * Make sure that the font is available
415
+ */
416
+ fontFamily?: FontFamily;
417
+ /**
418
+ * Set the font weight, ignore fontFamily and use the iOS system fonts instead
419
+ * #### (iOS specific)
420
+ */
421
+ fontWeight?: FontWeight;
422
+ /**
423
+ * Custom component as the title view
424
+ */
425
+ component?: {
426
+ /**
427
+ * Component reference id, Auto generated if empty
428
+ */
429
+ id?: string;
430
+ /**
431
+ * Name of your component
432
+ */
433
+ name: string;
434
+ /**
435
+ * Set component alignment
436
+ */
437
+ alignment?: "center" | "fill";
438
+ /**
439
+ * Properties to pass down to the component
440
+ */
441
+ passProps?: object;
442
+ };
443
+ /**
444
+ * Top Bar title height in densitiy pixels
445
+ * #### (Android specific)
446
+ */
447
+ height?: number;
448
+ /**
449
+ * Title alignment
450
+ * #### (Android specific)
451
+ */
452
+ alignment?: "center" | "fill";
453
+ }
454
+ export interface OptionsTopBarSubtitle {
455
+ /**
456
+ * Set subtitle text
457
+ */
458
+ text?: string;
459
+ /**
460
+ * Set subtitle font size
461
+ */
462
+ fontSize?: number;
463
+ /**
464
+ * Set subtitle color
465
+ */
466
+ color?: Color;
467
+ /**
468
+ * Set subtitle font family
469
+ */
470
+ fontFamily?: FontFamily;
471
+ /**
472
+ * Set the font weight, ignore fontFamily and use the iOS system fonts instead
473
+ * #### (iOS specific)
474
+ */
475
+ fontWeight?: FontWeight;
476
+ /**
477
+ * Set subtitle alignment
478
+ */
479
+ alignment?: "center";
480
+ }
481
+ export interface OptionsTopBarBackButton {
482
+ /**
483
+ * Image to show as the back button
484
+ */
485
+ icon?: ImageRequireSource;
486
+ /**
487
+ * Weither the back button is visible or not
488
+ * @default true
489
+ */
490
+ visible?: boolean;
491
+ /**
492
+ * Set the back button title
493
+ * #### (iOS specific)
494
+ */
495
+ title?: string;
496
+ /**
497
+ * Show title or just the icon
498
+ * #### (iOS specific)
499
+ */
500
+ showTitle?: boolean;
501
+ /**
502
+ * Back button icon and text color
503
+ */
504
+ color?: Color;
505
+ /**
506
+ * Set subtitle font size
507
+ */
508
+ fontSize?: number;
509
+ /**
510
+ * Set subtitle font family
511
+ */
512
+ fontFamily?: FontFamily;
513
+ /**
514
+ * Set testID for reference in E2E tests
515
+ */
516
+ testID?: string;
517
+ }
518
+ export interface OptionsTopBarBackground {
519
+ /**
520
+ * Background color of the top bar
521
+ */
522
+ color?: Color;
523
+ /**
524
+ * Clip the top bar background to bounds if set to true.
525
+ * #### (iOS specific)
526
+ */
527
+ clipToBounds?: boolean;
528
+ /**
529
+ * Set a custom component for the Top Bar background
530
+ */
531
+ component?: {
532
+ name?: string;
533
+ /**
534
+ * Properties to pass down to the component
535
+ */
536
+ passProps?: object;
537
+ };
538
+ /**
539
+ * Allows the NavBar to be translucent (blurred)
540
+ * #### (iOS specific)
541
+ */
542
+ translucent?: boolean;
543
+ /**
544
+ * Enable background blur
545
+ * #### (iOS specific)
546
+ */
547
+ blur?: boolean;
548
+ }
549
+ export interface OptionsTopBarButton {
550
+ /**
551
+ * Button id for reference press event
552
+ */
553
+ id: string;
554
+ /**
555
+ * Set the button icon
556
+ */
557
+ icon?: ImageRequireSource;
558
+ /**
559
+ * Set the button icon insets
560
+ */
561
+ iconInsets?: IconInsets;
562
+ /**
563
+ * Set the button as a custom component
564
+ */
565
+ component?: {
566
+ /**
567
+ * Component reference id, Auto generated if empty
568
+ */
569
+ id?: string;
570
+ /**
571
+ * Name of your component
572
+ */
573
+ name: string;
574
+ /**
575
+ * Properties to pass down to the component
576
+ */
577
+ passProps?: object;
578
+ /**
579
+ * (Android only) component width
580
+ */
581
+ width?: number;
582
+ /**
583
+ * (Android only) component height
584
+ */
585
+ height?: number;
586
+ };
587
+ /**
588
+ * (iOS only) Set the button as an iOS system icon
589
+ */
590
+ systemItem?: SystemItemIcon;
591
+ /**
592
+ * Set the button text
593
+ */
594
+ text?: string;
595
+ /**
596
+ * Overrides the text that's read by the screen reader when the user interacts with the element
597
+ */
598
+ accessibilityLabel?: string;
599
+ /**
600
+ * Set the button font family
601
+ */
602
+ fontFamily?: string;
603
+ /**
604
+ * Set the font weight, ignore fontFamily and use the iOS system fonts instead
605
+ * #### (iOS specific)
606
+ */
607
+ fontWeight?: FontWeight;
608
+ /**
609
+ * Set the button enabled or disabled
610
+ * @default true
611
+ */
612
+ enabled?: boolean;
613
+ /**
614
+ * Disable icon tinting
615
+ */
616
+ disableIconTint?: boolean;
617
+ /**
618
+ * Set text color
619
+ */
620
+ color?: Color;
621
+ /**
622
+ * Set text color in disabled state
623
+ */
624
+ disabledColor?: Color;
625
+ /**
626
+ * Set testID for reference in E2E tests
627
+ */
628
+ testID?: string;
629
+ /**
630
+ * (Android only) Set showAsAction value
631
+ * @see {@link https://developer.android.com/guide/topics/resources/menu-resource|Android developer guide: Menu resource}
632
+ */
633
+ showAsAction?: "ifRoom" | "withText" | "always" | "never";
634
+ }
635
+ export interface OptionsTopBar {
636
+ /**
637
+ * Show or hide the top bar
638
+ */
639
+ visible?: boolean;
640
+ /**
641
+ * Controls whether TopBar visibility changes should be animated
642
+ */
643
+ animate?: boolean;
644
+ /**
645
+ * Top bar will hide and show based on users scroll direction
646
+ */
647
+ hideOnScroll?: boolean;
648
+ /**
649
+ * Change button colors in the top bar
650
+ */
651
+ leftButtonColor?: Color;
652
+ rightButtonColor?: Color;
653
+ leftButtonDisabledColor?: Color;
654
+ rightButtonDisabledColor?: Color;
655
+ /**
656
+ * Draw behind the navbar
657
+ */
658
+ drawBehind?: boolean;
659
+ /**
660
+ * Can be used to reference the top bar in E2E tests
661
+ */
662
+ testID?: string;
663
+ /**
664
+ * Title configuration
665
+ */
666
+ title?: OptionsTopBarTitle;
667
+ /**
668
+ * Subtitle configuration
669
+ */
670
+ subtitle?: OptionsTopBarSubtitle;
671
+ /**
672
+ * Back button configuration
673
+ */
674
+ backButton?: OptionsTopBarBackButton;
675
+ /**
676
+ * List of buttons to the left
677
+ */
678
+ leftButtons?: OptionsTopBarButton[];
679
+ /**
680
+ * List of buttons to the right
681
+ */
682
+ rightButtons?: OptionsTopBarButton[];
683
+ /**
684
+ * Background configuration
685
+ */
686
+ background?: OptionsTopBarBackground;
687
+ /**
688
+ * Control the NavBar blur style
689
+ * #### (iOS specific)
690
+ * @requires translucent: true
691
+ * @default 'default'
692
+ */
693
+ barStyle?: "default" | "black";
694
+ /**
695
+ * Disable the border on bottom of the navbar
696
+ * #### (iOS specific)
697
+ * @default false
698
+ */
699
+ noBorder?: boolean;
700
+ /**
701
+ * Show a UISearchBar in the Top Bar
702
+ * #### (iOS 11+ specific)
703
+ */
704
+ searchBar?: boolean;
705
+ /**
706
+ * Hides the UISearchBar when scrolling
707
+ * #### (iOS 11+ specific)
708
+ */
709
+ searchBarHiddenWhenScrolling?: boolean;
710
+ /**
711
+ * The placeholder value in the UISearchBar
712
+ * #### (iOS 11+ specific)
713
+ */
714
+ searchBarPlaceholder?: string;
715
+ /**
716
+ * Controls Hiding NavBar on focus UISearchBar
717
+ * #### (iOS 11+ specific)
718
+ */
719
+ hideNavBarOnFocusSearchBar?: boolean;
720
+ /**
721
+ * Control the Large Title configuration
722
+ * #### (iOS 11+ specific)
723
+ */
724
+ largeTitle?: OptionsTopBarLargeTitle;
725
+ /**
726
+ * Set the height of the navbar in dp
727
+ * #### (Android specific)
728
+ */
729
+ height?: AndroidDensityNumber;
730
+ /**
731
+ * Change the navbar border color
732
+ * #### (Android specific)
733
+ */
734
+ borderColor?: Color;
735
+ /**
736
+ * Set the border height of the navbar in dp
737
+ * #### (Android specific)
738
+ */
739
+ borderHeight?: AndroidDensityNumber;
740
+ /**
741
+ * Set the elevation of the navbar in dp
742
+ * #### (Android specific)
743
+ */
744
+ elevation?: AndroidDensityNumber;
745
+ /**
746
+ * Layout top margin
747
+ * #### (Android specific)
748
+ */
749
+ topMargin?: number;
750
+ }
751
+ export interface SharedElementTransition {
752
+ fromId: string;
753
+ toId: string;
754
+ duration?: number;
755
+ interpolation: Interpolation;
756
+ }
757
+ export interface ElementTransition {
758
+ id: string;
759
+ alpha?: AppearingElementAnimation | DisappearingElementAnimation;
760
+ translationX?: AppearingElementAnimation | DisappearingElementAnimation;
761
+ translationY?: AppearingElementAnimation | DisappearingElementAnimation;
762
+ scaleX?: AppearingElementAnimation | DisappearingElementAnimation;
763
+ scaleY?: AppearingElementAnimation | DisappearingElementAnimation;
764
+ rotationX?: AppearingElementAnimation | DisappearingElementAnimation;
765
+ rotationY?: AppearingElementAnimation | DisappearingElementAnimation;
766
+ x?: AppearingElementAnimation | DisappearingElementAnimation;
767
+ y?: AppearingElementAnimation | DisappearingElementAnimation;
768
+ }
769
+ export interface AppearingElementAnimation extends ElementAnimation {
770
+ from: number;
771
+ }
772
+ export interface DisappearingElementAnimation extends ElementAnimation {
773
+ to: number;
774
+ }
775
+ export interface ElementAnimation {
776
+ duration: number;
777
+ startDelay?: number;
778
+ interpolation: Interpolation;
779
+ }
780
+ export interface OptionsFab {
781
+ id: string;
782
+ backgroundColor?: Color;
783
+ clickColor?: Color;
784
+ rippleColor?: Color;
785
+ visible?: boolean;
786
+ icon?: ImageRequireSource;
787
+ iconColor?: Color;
788
+ alignHorizontally?: "left" | "right";
789
+ alignVertically?: "top" | "bottom";
790
+ hideOnScroll?: boolean;
791
+ size?: number;
792
+ actions?: OptionsFab[];
793
+ }
794
+ export interface OptionsBottomTabs {
795
+ /**
796
+ * Show or hide the bottom tabs
797
+ */
798
+ visible?: boolean;
799
+ /**
800
+ * Enable animations when toggling visibility
801
+ */
802
+ animate?: boolean;
803
+ /**
804
+ * Use large icons when possible, even when three tabs without titles are displayed
805
+ * #### (android specific)
806
+ * @default false
807
+ */
808
+ preferLargeIcons?: boolean;
809
+ /**
810
+ * Switch to another screen within the bottom tabs via index (starting from 0)
811
+ */
812
+ currentTabIndex?: number;
813
+ /**
814
+ * Switch to another screen within the bottom tabs via screen name
815
+ */
816
+ currentTabId?: string;
817
+ /**
818
+ * Set a testID to reference the bottom tabs
819
+ */
820
+ testID?: string;
821
+ /**
822
+ * Draw screen component under the tab bar
823
+ */
824
+ drawBehind?: boolean;
825
+ /**
826
+ * Set a background color for the bottom tabs
827
+ */
828
+ backgroundColor?: Color;
829
+ /**
830
+ * Set when tabs are attached to hierarchy consequently when the
831
+ * RootView's constructor is called.
832
+ */
833
+ tabsAttachMode?: "together" | "afterInitialTab" | "onSwitchToTab";
834
+ /**
835
+ * Control the Bottom Tabs blur style
836
+ * #### (iOS specific)
837
+ * @requires translucent: true
838
+ * @default 'default'
839
+ */
840
+ barStyle?: "default" | "black";
841
+ /**
842
+ * Allows the Bottom Tabs to be translucent (blurred)
843
+ * #### (iOS specific)
844
+ */
845
+ translucent?: boolean;
846
+ /**
847
+ * Hide the top line of the Tab Bar
848
+ * #### (iOS specific)
849
+ */
850
+ hideShadow?: boolean;
851
+ /**
852
+ * Control the text display mode below the tab icon
853
+ * #### (Android specific)
854
+ */
855
+ titleDisplayMode?: "alwaysShow" | "showWhenActive" | "alwaysHide" | "showWhenActiveForce";
856
+ /**
857
+ * Set the elevation of the Bottom Tabs in dp
858
+ * #### (Android specific)
859
+ */
860
+ elevation?: AndroidDensityNumber;
861
+ }
862
+ export interface DotIndicatorOptions {
863
+ color?: Color;
864
+ size?: number;
865
+ visible?: boolean;
866
+ }
867
+ export declare type ImageResource = string;
868
+ export interface OptionsBottomTab {
869
+ dotIndicator?: DotIndicatorOptions;
870
+ /**
871
+ * Set the text to display below the icon
872
+ */
873
+ text?: string;
874
+ /**
875
+ * Set the text in a badge that is overlayed over the component
876
+ */
877
+ badge?: string;
878
+ /**
879
+ * Set the background color of the badge that is overlayed over the component
880
+ */
881
+ badgeColor?: string;
882
+ /**
883
+ * Set a testID to reference the tab in E2E tests
884
+ */
885
+ testID?: string;
886
+ /**
887
+ * Set the tab icon
888
+ */
889
+ icon?: ImageRequireSource | ImageResource;
890
+ /**
891
+ * Set the icon tint
892
+ */
893
+ iconColor?: Color;
894
+ /**
895
+ * Set the text color
896
+ */
897
+ textColor?: Color;
898
+ /**
899
+ * Set the selected icon tint
900
+ */
901
+ selectedIconColor?: Color;
902
+ /**
903
+ * Set the selected text color
904
+ */
905
+ selectedTextColor?: Color;
906
+ /**
907
+ * Set the text font family
908
+ */
909
+ fontFamily?: FontFamily;
910
+ /**
911
+ * Set the font weight, ignore fontFamily and use the iOS system fonts instead
912
+ * #### (iOS specific)
913
+ */
914
+ fontWeight?: FontWeight;
915
+ /**
916
+ * Set the text font size
917
+ */
918
+ fontSize?: number;
919
+ /**
920
+ * Set the insets of the icon
921
+ * #### (iOS specific)
922
+ */
923
+ iconInsets?: Insets;
924
+ /**
925
+ * Set selected icon image
926
+ * #### (iOS specific)
927
+ */
928
+ selectedIcon?: ImageRequireSource;
929
+ /**
930
+ * Set true if you want to disable the icon tinting
931
+ * #### (iOS specific)
932
+ */
933
+ disableIconTint?: boolean;
934
+ /**
935
+ * Set true if you want to disable the text tinting
936
+ * #### (iOS specific)
937
+ */
938
+ disableSelectedIconTint?: boolean;
939
+ /**
940
+ * Set the font size for selected tabs
941
+ * #### (Android specific)
942
+ */
943
+ selectedFontSize?: number;
944
+ /**
945
+ * If it's set to false, pressing a tab won't select the tab
946
+ * instead it will emit a bottomTabPressedEvent
947
+ */
948
+ selectTabOnPress?: boolean;
949
+ }
950
+ export interface SideMenuSide {
951
+ /**
952
+ * Show or hide the side menu
953
+ */
954
+ visible?: boolean;
955
+ /**
956
+ * Enable or disable the side menu
957
+ */
958
+ enabled?: boolean;
959
+ /**
960
+ * Set the width of the side menu
961
+ */
962
+ width?: number;
963
+ /**
964
+ * Set the height of the side menu
965
+ */
966
+ height?: number;
967
+ /**
968
+ * Stretch sideMenu contents when opened past the width
969
+ * #### (iOS specific)
970
+ * @default true
971
+ */
972
+ shouldStretchDrawer?: boolean;
973
+ }
974
+ export interface OptionsSideMenu {
975
+ /**
976
+ * Configure the left side menu
977
+ */
978
+ left?: SideMenuSide;
979
+ /**
980
+ * Configure the right side menu
981
+ */
982
+ right?: SideMenuSide;
983
+ /**
984
+ * Configure how a user is allowed to open a drawer using gestures
985
+ * #### (iOS specific)
986
+ * @default 'entireScreen'
987
+ */
988
+ openGestureMode?: "entireScreen" | "bezel";
989
+ }
990
+ export interface OverlayOptions {
991
+ /**
992
+ * Capture touches outside of the Component View
993
+ */
994
+ interceptTouchOutside?: boolean;
995
+ /**
996
+ * Control wether this Overlay should handle Keyboard events.
997
+ * Set this to true if your Overlay contains a TextInput.
998
+ */
999
+ handleKeyboardEvents?: boolean;
1000
+ }
1001
+ export interface ModalOptions {
1002
+ /**
1003
+ * Control wether this modal should be dismiss using swipe gesture when the modalPresentationStyle = 'pageSheet'
1004
+ * #### (iOS specific)
1005
+ */
1006
+ swipeToDismiss?: boolean;
1007
+ }
1008
+ export interface OptionsPreviewAction {
1009
+ /**
1010
+ * Reference ID to get callbacks from
1011
+ */
1012
+ id: string;
1013
+ /**
1014
+ * Action text
1015
+ */
1016
+ title: string;
1017
+ /**
1018
+ * Action style
1019
+ */
1020
+ style?: "default" | "selected" | "destructive";
1021
+ /**
1022
+ * Subactions that will be shown when this action is pressed.
1023
+ */
1024
+ actions?: OptionsPreviewAction[];
1025
+ }
1026
+ export interface OptionsPreview {
1027
+ /**
1028
+ * Pass a react node tag to mark a SourceRect for a specific
1029
+ * peek and pop preview element.
1030
+ */
1031
+ reactTag?: number;
1032
+ /**
1033
+ * You can set this property specify the width of the preview.
1034
+ * If the width is greater than the device width, it will be zoomed in.
1035
+ */
1036
+ width?: number;
1037
+ /**
1038
+ * Height of the preview
1039
+ */
1040
+ height?: 100;
1041
+ /**
1042
+ * You can control if the users gesture will result in pushing
1043
+ * the preview screen into the stack.
1044
+ */
1045
+ commit?: boolean;
1046
+ /**
1047
+ * List of actions that will appear underneath the preview window.
1048
+ * They can be nested for sub actions.
1049
+ */
1050
+ actions?: OptionsPreviewAction[];
1051
+ }
1052
+ export interface OptionsAnimationPropertyConfig {
1053
+ /**
1054
+ * Animate from this value, ex. 0
1055
+ */
1056
+ from?: number;
1057
+ /**
1058
+ * Animate to this value, ex. 1
1059
+ */
1060
+ to?: number;
1061
+ /**
1062
+ * Animation duration
1063
+ * @default 300
1064
+ */
1065
+ duration?: number;
1066
+ /**
1067
+ * Animation delay
1068
+ * @default 0
1069
+ */
1070
+ startDelay?: number;
1071
+ /**
1072
+ * Animation interplation
1073
+ */
1074
+ interpolation?: "accelerate" | "decelerate";
1075
+ }
1076
+ /**
1077
+ * Used to animate the actual content added to the hierarchy.
1078
+ * Content can be a React component (component) or any other layout (Stack, BottomTabs etc)
1079
+ */
1080
+ export interface ScreenAnimationOptions {
1081
+ /**
1082
+ * Animate the element over x value
1083
+ */
1084
+ x?: OptionsAnimationPropertyConfig;
1085
+ /**
1086
+ * Animate the element over y value
1087
+ */
1088
+ y?: OptionsAnimationPropertyConfig;
1089
+ /**
1090
+ * Animate the element over translateX
1091
+ */
1092
+ translationX?: OptionsAnimationPropertyConfig;
1093
+ /**
1094
+ * Animate the element over translateY
1095
+ */
1096
+ translationY?: OptionsAnimationPropertyConfig;
1097
+ /**
1098
+ * Animate the element over opacity
1099
+ */
1100
+ alpha?: OptionsAnimationPropertyConfig;
1101
+ /**
1102
+ * Animate the element over scaleX
1103
+ */
1104
+ scaleX?: OptionsAnimationPropertyConfig;
1105
+ /**
1106
+ * Animate the element over scaleY
1107
+ */
1108
+ scaleY?: OptionsAnimationPropertyConfig;
1109
+ /**
1110
+ * Animate the element over rotationX
1111
+ */
1112
+ rotationX?: OptionsAnimationPropertyConfig;
1113
+ /**
1114
+ * Animate the element over rotationY
1115
+ */
1116
+ rotationY?: OptionsAnimationPropertyConfig;
1117
+ /**
1118
+ * Animate the element over rotation
1119
+ */
1120
+ rotation?: OptionsAnimationPropertyConfig;
1121
+ /**
1122
+ * Wait for the root view to render before start animation
1123
+ */
1124
+ waitForRender?: boolean;
1125
+ /**
1126
+ * Enable or disable the animation
1127
+ * @default true
1128
+ */
1129
+ enabled?: boolean;
1130
+ }
1131
+ export interface IconInsets {
1132
+ /**
1133
+ * Configure top inset
1134
+ */
1135
+ top?: number;
1136
+ /**
1137
+ * Configure left inset
1138
+ */
1139
+ left?: number;
1140
+ /**
1141
+ * Configure bottom inset
1142
+ */
1143
+ bottom?: number;
1144
+ /**
1145
+ * Configure right inset
1146
+ */
1147
+ right?: number;
1148
+ }
1149
+ export interface ViewAnimationOptions extends ScreenAnimationOptions {
1150
+ /**
1151
+ * ID of the Top Bar we want to animate
1152
+ */
1153
+ id?: string;
1154
+ }
1155
+ /**
1156
+ * Used for describing stack commands animations.
1157
+ */
1158
+ export interface StackAnimationOptions {
1159
+ /**
1160
+ * Wait for the View to render before start animation
1161
+ */
1162
+ waitForRender?: boolean;
1163
+ /**
1164
+ * Enable or disable the animation
1165
+ * @default true
1166
+ */
1167
+ enabled?: boolean;
1168
+ /**
1169
+ * Configure animations for the top bar
1170
+ */
1171
+ topBar?: ViewAnimationOptions;
1172
+ /**
1173
+ * Configure animations for the bottom tabs
1174
+ */
1175
+ bottomTabs?: ViewAnimationOptions;
1176
+ /**
1177
+ * Configure animations for the content (Screen)
1178
+ */
1179
+ content?: ViewAnimationOptions;
1180
+ /**
1181
+ * Animations to be applied on elements which are shared between the appearing and disappearing screens
1182
+ */
1183
+ sharedElementTransitions?: SharedElementTransition[];
1184
+ /**
1185
+ * Animations to be applied on views in the appearing or disappearing screens
1186
+ */
1187
+ elementTransitions?: ElementTransition[];
1188
+ }
1189
+ /**
1190
+ * Used for configuring command animations
1191
+ */
1192
+ export interface AnimationOptions {
1193
+ /**
1194
+ * Configure the setStackRoot animation
1195
+ */
1196
+ setStackRoot?: ViewAnimationOptions;
1197
+ /**
1198
+ * Configure the setRoot animation
1199
+ */
1200
+ setRoot?: ViewAnimationOptions;
1201
+ /**
1202
+ * Configure what animates when a screen is pushed
1203
+ */
1204
+ push?: StackAnimationOptions;
1205
+ /**
1206
+ * Configure what animates when a screen is popped
1207
+ */
1208
+ pop?: StackAnimationOptions;
1209
+ /**
1210
+ * Configure what animates when modal is shown
1211
+ */
1212
+ showModal?: ViewAnimationOptions;
1213
+ /**
1214
+ * Configure what animates when modal is dismissed
1215
+ */
1216
+ dismissModal?: ViewAnimationOptions;
1217
+ }
1218
+ /**
1219
+ * Configure Android's NavigationBar
1220
+ */
1221
+ export interface NavigationBarOptions {
1222
+ backgroundColor?: Color;
1223
+ visible?: boolean;
1224
+ }
1225
+ export interface Options {
1226
+ /**
1227
+ * Configure the status bar
1228
+ */
1229
+ statusBar?: OptionsStatusBar;
1230
+ /**
1231
+ * Configure the layout
1232
+ */
1233
+ layout?: OptionsLayout;
1234
+ /**
1235
+ * Configure the presentation style of the modal
1236
+ */
1237
+ modalPresentationStyle?: OptionsModalPresentationStyle;
1238
+ /**
1239
+ * Configure the transition style of the modal
1240
+ *
1241
+ * #### (Android specific)
1242
+ */
1243
+ modalTransitionStyle?: OptionsModalTransitionStyle;
1244
+ /**
1245
+ * Configure the top bar
1246
+ */
1247
+ topBar?: OptionsTopBar;
1248
+ fab?: OptionsFab;
1249
+ /**
1250
+ * Configure the bottom tabs
1251
+ */
1252
+ bottomTabs?: OptionsBottomTabs;
1253
+ /**
1254
+ * Configure the bottom tab associated to the screen
1255
+ */
1256
+ bottomTab?: OptionsBottomTab;
1257
+ /**
1258
+ * Configure the side menu
1259
+ */
1260
+ sideMenu?: OptionsSideMenu;
1261
+ /**
1262
+ * Configure the splitView controller
1263
+ */
1264
+ splitView?: OptionsSplitView;
1265
+ /**
1266
+ * Configure the overlay
1267
+ */
1268
+ overlay?: OverlayOptions;
1269
+ /**
1270
+ * Configure the modal
1271
+ */
1272
+ modal?: ModalOptions;
1273
+ /**
1274
+ * Animation used for navigation commands that modify the layout
1275
+ * hierarchy can be controlled in options.
1276
+ *
1277
+ * Animations can be modified per command and it's also possible
1278
+ * to change the default animation for each command.
1279
+ *
1280
+ * Example:
1281
+ ```js
1282
+ setRoot: {
1283
+ y: {
1284
+ from: 1000,
1285
+ to: 0,
1286
+ duration: 500,
1287
+ interpolation: 'accelerate',
1288
+ },
1289
+ alpha: {
1290
+ from: 0,
1291
+ to: 1,
1292
+ duration: 400,
1293
+ startDelay: 100,
1294
+ interpolation: 'accelerate'
1295
+ }
1296
+ }
1297
+ ```
1298
+ */
1299
+ animations?: AnimationOptions;
1300
+ /**
1301
+ * Configure Android's NavigationBar
1302
+ */
1303
+ navigationBar?: NavigationBarOptions;
1304
+ /**
1305
+ * Preview configuration for Peek and Pop
1306
+ * #### (iOS specific)
1307
+ */
1308
+ preview?: OptionsPreview;
1309
+ /**
1310
+ * Enable or disable swipe back to pop gesture
1311
+ * #### (iOS specific)
1312
+ * @default true
1313
+ */
1314
+ popGesture?: boolean;
1315
+ /**
1316
+ * Background image for the screen
1317
+ * #### (iOS specific)
1318
+ */
1319
+ backgroundImage?: ImageRequireSource;
1320
+ /**
1321
+ * Background image for the Navigation View
1322
+ * #### (iOS specific)
1323
+ */
1324
+ rootBackgroundImage?: ImageRequireSource;
1325
+ /**
1326
+ * Enable or disable automatically blurring focused input, dismissing keyboard on unmount
1327
+ * #### (Android specific)
1328
+ * @default false
1329
+ */
1330
+ blurOnUnmount?: boolean;
1331
+ }
1332
+ export {};