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
@@ -0,0 +1,868 @@
1
+ import { SyntheticEvent } from "react";
2
+ import { SelectListOptions } from "./SelectList";
3
+ export interface BaseProfile {
4
+ email: string;
5
+ id: string;
6
+ backOffice: {
7
+ testUser?: boolean;
8
+ };
9
+ }
10
+ export interface TrackingConfig {
11
+ MIXPANEL_TOKEN: string;
12
+ SENTRY_WEB_DSN: string;
13
+ SENTRY_MOBILE_DSN: string;
14
+ USER_PROPERTY_KEYS: string[];
15
+ }
16
+ export interface IConfig extends TrackingConfig {
17
+ FEEDBACK_URL: string;
18
+ PRIVACY_POLICY_URL: string;
19
+ PROFILE_COLLECTION: string;
20
+ TERMS_URL: string;
21
+ BASE_URL: string;
22
+ PRODUCTION: boolean;
23
+ primaryLighterColor: string;
24
+ primaryLightColor: string;
25
+ primaryColor: string;
26
+ primaryDarkColor: string;
27
+ primaryDarkerColor: string;
28
+ secondaryLighterColor: string;
29
+ secondaryLightColor: string;
30
+ secondaryColor: string;
31
+ secondaryDarkColor: string;
32
+ secondaryDarkerColor: string;
33
+ accentLighterColor: string;
34
+ accentLightColor: string;
35
+ accentColor: string;
36
+ accentDarkColor: string;
37
+ accentDarkerColor: string;
38
+ tertiaryLighterColor: string;
39
+ tertiaryLightColor: string;
40
+ tertiaryColor: string;
41
+ tertiaryDarkColor: string;
42
+ tertiaryDarkerColor: string;
43
+ neutral900: string;
44
+ neutral800: string;
45
+ neutral700: string;
46
+ neutral600: string;
47
+ neutral500: string;
48
+ neutral400: string;
49
+ neutral300: string;
50
+ neutral200: string;
51
+ neutral100: string;
52
+ neutral90: string;
53
+ neutral80: string;
54
+ neutral70: string;
55
+ neutral60: string;
56
+ neutral50: string;
57
+ neutral40: string;
58
+ neutral30: string;
59
+ neutral20: string;
60
+ neutral10: string;
61
+ }
62
+ export interface UnifiedTheme {
63
+ blue: string;
64
+ darkGray: string;
65
+ eggplant: string;
66
+ gray: string;
67
+ green: string;
68
+ lightGray: string;
69
+ maroon: string;
70
+ midnight: string;
71
+ navy: string;
72
+ olive: string;
73
+ orange: string;
74
+ orchid: string;
75
+ pine: string;
76
+ purple: string;
77
+ red: string;
78
+ watermelon: string;
79
+ white: string;
80
+ black: string;
81
+ primaryLighter: string;
82
+ primaryLight: string;
83
+ primary: string;
84
+ primaryDark: string;
85
+ primaryDarker: string;
86
+ secondaryLighter: string;
87
+ secondaryLight: string;
88
+ secondary: string;
89
+ secondaryDark: string;
90
+ secondaryDarker: string;
91
+ accentLighter: string;
92
+ accentLight: string;
93
+ accent: string;
94
+ accentDark: string;
95
+ accentDarker: string;
96
+ tertiaryLighter: string;
97
+ tertiaryLight: string;
98
+ tertiary: string;
99
+ tertiaryDark: string;
100
+ tertiaryDarker: string;
101
+ neutral900: string;
102
+ neutral800: string;
103
+ neutral700: string;
104
+ neutral600: string;
105
+ neutral500: string;
106
+ neutral400: string;
107
+ neutral300: string;
108
+ neutral200: string;
109
+ neutral100: string;
110
+ neutral90: string;
111
+ neutral80: string;
112
+ neutral70: string;
113
+ neutral60: string;
114
+ neutral50: string;
115
+ neutral40: string;
116
+ neutral30: string;
117
+ neutral20: string;
118
+ neutral10: string;
119
+ primaryFont: string;
120
+ primaryBoldFont: string;
121
+ secondaryFont: string;
122
+ secondaryBoldFont: string;
123
+ buttonFont: string;
124
+ accentFont: string;
125
+ accentBoldFont: string;
126
+ titleFont: string;
127
+ }
128
+ export declare type Font = "primary" | "primaryBold" | "secondary" | "secondaryBold" | "accent" | "accentBold" | "title" | "button";
129
+ export declare type Direction = "up" | "right" | "down" | "left";
130
+ export declare type Color = "blue" | "darkGray" | "eggplant" | "gray" | "green" | "lightGray" | "maroon" | "midnight" | "navy" | "olive" | "orange" | "orchid" | "pine" | "purple" | "red" | "watermelon" | "white" | "black";
131
+ export declare type ThemeColor = "primaryLighter" | "primaryLight" | "primary" | "primaryDark" | "primaryDarker" | "secondaryLighter" | "secondaryLight" | "secondary" | "secondaryDark" | "secondaryDarker" | "tertiaryLighter" | "tertiaryLight" | "tertiary" | "tertiaryDark" | "tertiaryDarker" | "accentLighter" | "accentLight" | "accent" | "accentDark" | "accentDarker";
132
+ export declare type NeutralColor = "neutral900" | "neutral800" | "neutral700" | "neutral600" | "neutral500" | "neutral400" | "neutral300" | "neutral200" | "neutral100" | "neutral90" | "neutral80" | "neutral70" | "neutral60" | "neutral50" | "neutral40" | "neutral30" | "neutral20" | "neutral10";
133
+ export declare type AllColors = Color | ThemeColor | NeutralColor;
134
+ export interface OnChangeResult {
135
+ event?: SyntheticEvent<any>;
136
+ value: string;
137
+ }
138
+ export declare type OnChangeCallback = (result: OnChangeResult) => void;
139
+ export declare type IconName = "heart" | "chevron-left" | "hat-chef" | "book" | "list-alt" | "carrot" | "comment" | "user-circle" | "fire" | "chart-pie" | "knife-kitchen" | "oven" | "clock" | "utensils-alt" | "search" | "chevron-right" | "plus" | "ellipsis-v" | "paper-plane" | "exclamation-circle" | "edit";
140
+ export declare type GestaltIconName = "add" | "add-circle" | "add-pin" | "arrow-back" | "arrow-circle-forward" | "arrow-down" | "arrow-forward" | "arrow-up" | "bell" | "camera" | "cancel" | "check" | "check-circle" | "circle-outline" | "clear" | "clock" | "cog" | "compass" | "dash" | "edit" | "ellipsis" | "ellipsis-circle-outline" | "facebook" | "face-happy" | "face-sad" | "face-smiley" | "filter" | "flag" | "flashlight" | "globe" | "graph-bar" | "handle" | "heart" | "heart-broken" | "knoop" | "lightbulb" | "link" | "location" | "lock" | "menu" | "move" | "pause" | "people" | "person" | "person-add" | "pin" | "pin-hide" | "pinterest" | "play" | "question-mark" | "remove" | "report" | "search" | "shopping-bag" | "smiley" | "smiley-outline" | "send" | "share" | "sound" | "speech" | "speech-ellipsis" | "tag";
141
+ export declare type AlignContent = "start" | "end" | "center" | "between" | "around" | "stretch";
142
+ export declare type AlignSelf = "auto" | "start" | "end" | "center" | "baseline" | "stretch";
143
+ export declare type AlignItems = "start" | "end" | "center" | "baseline" | "stretch";
144
+ export declare type JustifyContent = "start" | "end" | "center" | "between" | "around";
145
+ export declare type UnsignedUpTo12 = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
146
+ export declare type SignedUpTo12 = -12 | -11 | -10 | -9 | -8 | -7 | -6 | -5 | -4 | -3 | -2 | -1 | UnsignedUpTo12;
147
+ export declare type Margin = SignedUpTo12 | "auto";
148
+ export declare const SPACING = 4;
149
+ export declare type TextFieldType = "date" | "email" | "number" | "numberRange" | "decimalRange" | "decimal" | "username" | "password" | "search" | "text" | "url" | "height";
150
+ export declare type IconSize = "xs" | "sm" | "md" | "lg" | "xl";
151
+ export declare const iconSizeToNumber: (size?: IconSize | undefined) => number;
152
+ export declare const iconNumberToSize: (size?: number) => IconSize;
153
+ export declare function getSectionColor(section: "Breakfast" | "Lunch" | "Dinner" | "Snack" | "workouts"): Color;
154
+ export declare type TextSize = "sm" | "md" | "lg";
155
+ export declare type TextColor = "blue" | "darkGray" | "eggplant" | "gray" | "green" | "lightGray" | "maroon" | "midnight" | "navy" | "olive" | "orange" | "orchid" | "pine" | "purple" | "red" | "watermelon" | "white";
156
+ export declare type ButtonColor = "blue" | "gray" | "red" | "white" | "primary" | "secondary" | "accent" | "tertiary";
157
+ export declare type IconPrefix = "far" | "fal" | "fas" | "fab";
158
+ export interface TextProps {
159
+ align?: "left" | "right" | "center" | "justify";
160
+ children?: React.ReactNode;
161
+ color?: AllColors;
162
+ inline?: boolean;
163
+ italic?: boolean;
164
+ overflow?: "normal" | "breakWord";
165
+ size?: TextSize;
166
+ truncate?: boolean;
167
+ font?: Font;
168
+ underline?: boolean;
169
+ numberOfLines?: number;
170
+ skipLinking?: boolean;
171
+ weight?: "bold" | "normal";
172
+ }
173
+ export interface ActionBannerProps {
174
+ /** The text to show in the banner. */
175
+ text: string;
176
+ color?: AllColors;
177
+ textColor?: TextColor;
178
+ negativeXMargin?: number;
179
+ onClick: () => void;
180
+ shape?: Rounding;
181
+ }
182
+ export interface BlurBoxProps extends BoxProps {
183
+ blurType?: "regular" | "dark" | "prominent";
184
+ }
185
+ export interface LayerProps {
186
+ children: React.ReactNode;
187
+ }
188
+ export interface ModalProps {
189
+ header?: React.ReactNode;
190
+ accessibilityModalLabel: string;
191
+ children?: React.ReactNode;
192
+ closeOnOutsideClick?: boolean;
193
+ footer?: React.ReactNode;
194
+ heading?: string | React.ReactNode;
195
+ onDismiss: () => void;
196
+ role?: "alertdialog" | "dialog";
197
+ size?: "sm" | "md" | "lg" | number;
198
+ }
199
+ export interface BoxProps {
200
+ alignContent?: AlignContent;
201
+ alignItems?: AlignItems;
202
+ alignSelf?: AlignSelf;
203
+ bottom?: boolean;
204
+ children?: React.ReactNode;
205
+ color?: BoxColor;
206
+ column?: UnsignedUpTo12;
207
+ smColumn?: UnsignedUpTo12;
208
+ mdColumn?: UnsignedUpTo12;
209
+ lgColumn?: UnsignedUpTo12;
210
+ dangerouslySetInlineStyle?: {
211
+ __style: {
212
+ [key: string]: any;
213
+ };
214
+ };
215
+ direction?: "row" | "column";
216
+ smDirection?: "row" | "column";
217
+ mdDirection?: "row" | "column";
218
+ lgDirection?: "row" | "column";
219
+ display?: "none" | "flex" | "block" | "inlineBlock" | "visuallyHidden";
220
+ smDisplay?: "none" | "flex" | "block" | "inlineBlock" | "visuallyHidden";
221
+ mdDisplay?: "none" | "flex" | "block" | "inlineBlock" | "visuallyHidden";
222
+ lgDisplay?: "none" | "flex" | "block" | "inlineBlock" | "visuallyHidden";
223
+ fit?: boolean;
224
+ flex?: "grow" | "shrink" | "none";
225
+ height?: number | string;
226
+ justifyContent?: "start" | "end" | "center" | "between" | "around";
227
+ left?: boolean;
228
+ margin?: SignedUpTo12;
229
+ smMargin?: SignedUpTo12;
230
+ mdMargin?: SignedUpTo12;
231
+ lgMargin?: SignedUpTo12;
232
+ marginBottom?: SignedUpTo12;
233
+ smMarginBottom?: SignedUpTo12;
234
+ mdMarginBottom?: SignedUpTo12;
235
+ lgMarginBottom?: SignedUpTo12;
236
+ marginEnd?: SignedUpTo12;
237
+ smMarginEnd?: SignedUpTo12;
238
+ mdMarginEnd?: SignedUpTo12;
239
+ lgMarginEnd?: SignedUpTo12;
240
+ marginLeft?: SignedUpTo12;
241
+ smMarginLeft?: SignedUpTo12;
242
+ mdMarginLeft?: SignedUpTo12;
243
+ lgMarginLeft?: SignedUpTo12;
244
+ marginRight?: SignedUpTo12;
245
+ smMarginRight?: SignedUpTo12;
246
+ mdMarginRight?: SignedUpTo12;
247
+ lgMarginRight?: SignedUpTo12;
248
+ marginStart?: SignedUpTo12;
249
+ smMarginStart?: SignedUpTo12;
250
+ mdMarginStart?: SignedUpTo12;
251
+ lgMarginStart?: SignedUpTo12;
252
+ marginTop?: SignedUpTo12;
253
+ smMarginTop?: SignedUpTo12;
254
+ mdMarginTop?: SignedUpTo12;
255
+ lgMarginTop?: SignedUpTo12;
256
+ maxHeight?: number | string;
257
+ maxWidth?: number | string;
258
+ minHeight?: number | string;
259
+ minWidth?: number | string;
260
+ overflow?: "visible" | "hidden" | "scroll" | "scrollX" | "scrollY" | "auto";
261
+ padding?: UnsignedUpTo12;
262
+ smPadding?: UnsignedUpTo12;
263
+ mdPadding?: UnsignedUpTo12;
264
+ lgPadding?: UnsignedUpTo12;
265
+ paddingX?: UnsignedUpTo12;
266
+ smPaddingX?: UnsignedUpTo12;
267
+ mdPaddingX?: UnsignedUpTo12;
268
+ lgPaddingX?: UnsignedUpTo12;
269
+ paddingY?: UnsignedUpTo12;
270
+ smPaddingY?: UnsignedUpTo12;
271
+ mdPaddingY?: UnsignedUpTo12;
272
+ lgPaddingY?: UnsignedUpTo12;
273
+ position?: "static" | "absolute" | "relative" | "fixed";
274
+ right?: boolean;
275
+ rounding?: "pill" | "circle" | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
276
+ top?: boolean;
277
+ width?: number | string;
278
+ wrap?: boolean;
279
+ onClick?: any;
280
+ className?: any;
281
+ style?: any;
282
+ scroll?: boolean;
283
+ shadow?: boolean;
284
+ border?: AllColors;
285
+ avoidKeyboard?: boolean;
286
+ keyboardOffset?: number;
287
+ scrollRef?: any;
288
+ onScroll?: (offsetY: number) => void;
289
+ onLayout?: (event: any) => void;
290
+ }
291
+ export declare type BoxColor = AllColors | "transparent";
292
+ export interface ButtonProps {
293
+ text: string;
294
+ color?: ButtonColor | Color;
295
+ disabled?: boolean;
296
+ inline?: boolean;
297
+ size?: "sm" | "md" | "lg";
298
+ type?: "solid" | "ghost" | "outline";
299
+ loading?: boolean;
300
+ onClick: any;
301
+ icon?: GestaltIconName | string;
302
+ iconPrefix?: IconPrefix;
303
+ iconColor?: ButtonColor | Color;
304
+ }
305
+ export interface DrawerProps {
306
+ animationOpenTime: number;
307
+ animationCloseTime: number;
308
+ direction: Direction;
309
+ dismissWhenTouchOutside?: boolean;
310
+ fadeOpacity?: number;
311
+ drawerScreenWidth: number;
312
+ drawerScreenHeight: number;
313
+ style?: any;
314
+ parent: any;
315
+ dismiss?: any;
316
+ }
317
+ export declare type DrawerDirection = "left" | "right" | "bottom" | "top";
318
+ export interface ErrorBoundaryProps {
319
+ onError?: (error: Error, stack: any) => void;
320
+ }
321
+ export interface FaceBookButtonProps {
322
+ errorMessageColor?: "red" | "white";
323
+ signUp: boolean;
324
+ }
325
+ export interface IconProps {
326
+ prefix: IconPrefix;
327
+ name: string;
328
+ color?: AllColors;
329
+ size?: number;
330
+ iconStyle?: any;
331
+ containerStyle?: any;
332
+ }
333
+ export interface IconButtonProps {
334
+ prefix?: IconPrefix;
335
+ icon: GestaltIconName | string;
336
+ accessibilityLabel: string;
337
+ iconColor: "darkGray" | ButtonColor | ThemeColor | Color;
338
+ onClick: () => void;
339
+ size?: IconSize;
340
+ bgColor?: "transparent" | "transparentDarkGray" | "gray" | "lightGray" | "white";
341
+ disabled?: boolean;
342
+ selected?: boolean;
343
+ }
344
+ export interface NavigatorProps {
345
+ config?: any;
346
+ }
347
+ export interface PillProps {
348
+ text: string;
349
+ color: AllColors;
350
+ enabled?: boolean;
351
+ onClick: (enabled: boolean) => void;
352
+ }
353
+ export interface SegmentedControlProps {
354
+ items: (string | React.ReactNode)[];
355
+ onChange: ({ activeIndex }: {
356
+ activeIndex: number;
357
+ }) => void;
358
+ selectedItemIndex: number;
359
+ responsive?: boolean;
360
+ size?: "md" | "lg";
361
+ }
362
+ export interface FieldWithLabelsProps {
363
+ errorMessage?: string;
364
+ errorMessageColor?: AllColors;
365
+ label?: string;
366
+ labelColor?: AllColors;
367
+ helperText?: string;
368
+ helperTextColor?: AllColors;
369
+ children?: React.ReactNode;
370
+ }
371
+ export interface FieldProps extends FieldWithLabelsProps {
372
+ name: string;
373
+ label?: string;
374
+ subLabel?: string;
375
+ initialValue?: any;
376
+ handleChange: any;
377
+ validate?: (value: any) => boolean;
378
+ validateErrorMessage?: string;
379
+ type?: "boolean" | "email" | "text" | "textarea" | "number" | "currency" | "percent" | "select" | "password" | "url" | "date";
380
+ rows?: number;
381
+ options?: SelectListOptions;
382
+ placeholder?: string;
383
+ disabled?: boolean;
384
+ }
385
+ export interface TextFieldProps extends FieldWithLabelsProps {
386
+ id?: string;
387
+ onChange: OnChangeCallback;
388
+ autoComplete?: "current-password" | "on" | "off" | "username";
389
+ disabled?: boolean;
390
+ idealErrorDirection?: Direction;
391
+ name?: string;
392
+ onBlur?: OnChangeCallback;
393
+ onFocus?: OnChangeCallback;
394
+ placeholder?: string;
395
+ type?: TextFieldType;
396
+ value?: string;
397
+ style?: any;
398
+ searching?: boolean;
399
+ returnKeyType?: "done" | "go" | "next" | "search" | "send";
400
+ autoFocus?: boolean;
401
+ grow?: boolean;
402
+ inputRef?: any;
403
+ onSubmitEditing?: any;
404
+ onEnter?: any;
405
+ multiline?: boolean;
406
+ rows?: number;
407
+ height?: number;
408
+ paddingX?: number;
409
+ paddingY?: number;
410
+ min?: number;
411
+ max?: number;
412
+ }
413
+ export declare type TextAreaProps = TextFieldProps;
414
+ export interface WithLabelProps {
415
+ children: React.ReactNode;
416
+ show?: boolean;
417
+ label?: string;
418
+ labelInline?: boolean;
419
+ labelColor?: AllColors;
420
+ labelJustifyContent?: JustifyContent;
421
+ labelPlacement?: "before" | "after";
422
+ labelSize?: TextSize;
423
+ }
424
+ export interface SubmittingFormProps {
425
+ onSubmitEditting: () => void;
426
+ }
427
+ export interface SwitchProps extends FieldWithLabelsProps {
428
+ id?: string;
429
+ onChange: (value: boolean) => void;
430
+ disabled?: boolean;
431
+ name?: string;
432
+ switched: boolean;
433
+ label?: string;
434
+ }
435
+ export interface SpinnerProps {
436
+ size?: "sm" | "md";
437
+ color?: Color;
438
+ }
439
+ export interface MaskProps {
440
+ children?: React.ReactNode;
441
+ shape?: "circle" | "rounded" | "square";
442
+ height?: number | string;
443
+ width?: number | string;
444
+ maxHeight?: number | string;
445
+ maxWidth?: number | string;
446
+ rounding?: "circle" | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
447
+ willChangeTransform?: boolean;
448
+ wash?: boolean;
449
+ }
450
+ export interface IconRowProps {
451
+ icon: string;
452
+ label: string;
453
+ value: string;
454
+ }
455
+ export interface LinkProps {
456
+ href: string;
457
+ inline?: boolean;
458
+ children?: React.ReactNode;
459
+ onClick?: () => void;
460
+ target?: null | "blank";
461
+ }
462
+ export declare type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | "circle" | "pill";
463
+ export interface HeadingProps {
464
+ align?: "left" | "right" | "center" | "justify";
465
+ children?: React.ReactNode;
466
+ color?: AllColors;
467
+ overflow?: "normal" | "breakWord";
468
+ size?: "sm" | "md" | "lg";
469
+ truncate?: boolean;
470
+ }
471
+ export interface MetaProps {
472
+ itemProp?: string;
473
+ content?: string;
474
+ itemType?: string;
475
+ key?: string;
476
+ property?: string;
477
+ }
478
+ export interface ImageProps {
479
+ alt?: string;
480
+ color: BoxColor;
481
+ naturalHeight?: number;
482
+ naturalWidth?: number;
483
+ maxWidth?: number;
484
+ maxHeight?: number;
485
+ src: string;
486
+ children?: React.ReactNode;
487
+ fit?: "cover" | "contain" | "none";
488
+ onError?: () => void;
489
+ onLoad?: () => void;
490
+ size?: string;
491
+ srcSet?: string;
492
+ fullWidth?: boolean;
493
+ style?: any;
494
+ }
495
+ export interface SearchButtonProps {
496
+ color: ButtonColor;
497
+ onClick: () => void;
498
+ }
499
+ export interface BackButtonInterface {
500
+ onBack: () => void;
501
+ }
502
+ export interface CheckBoxProps {
503
+ id: string;
504
+ onChange: ({ value }: {
505
+ value: boolean;
506
+ }) => void;
507
+ checked?: boolean;
508
+ disabled?: boolean;
509
+ hasError?: boolean;
510
+ indeterminate?: boolean;
511
+ name?: string;
512
+ onClick?: any;
513
+ size?: "sm" | "md";
514
+ color?: AllColors;
515
+ radio?: boolean;
516
+ label?: string;
517
+ subLabel?: string;
518
+ labelColor?: AllColors;
519
+ }
520
+ export interface BodyProps {
521
+ scroll?: boolean;
522
+ loading?: boolean;
523
+ useBox?: boolean;
524
+ style?: any;
525
+ padding?: UnsignedUpTo12;
526
+ height?: number | string;
527
+ avoidKeyboard?: boolean;
528
+ }
529
+ export interface ChatPaneProps {
530
+ messagesView: any;
531
+ textFormView: any;
532
+ ref: any;
533
+ }
534
+ export interface ScrollViewProps {
535
+ scrollTo?: (y?: number | {
536
+ x?: number;
537
+ y?: number;
538
+ animated?: boolean;
539
+ }, x?: number, animated?: boolean) => void;
540
+ /**
541
+ * These styles will be applied to the scroll view content container which
542
+ * wraps all of the child views. Example:
543
+ *
544
+ * return (
545
+ * <ScrollView contentContainerStyle={styles.contentContainer}>
546
+ * </ScrollView>
547
+ * );
548
+ * ...
549
+ * const styles = StyleSheet.create({
550
+ * contentContainer: {
551
+ * paddingVertical: 20
552
+ * }
553
+ * });
554
+ */
555
+ contentContainerStyle?: any;
556
+ /**
557
+ * When true the scroll view's children are arranged horizontally in a row
558
+ * instead of vertically in a column. The default value is false.
559
+ */
560
+ horizontal?: boolean | null;
561
+ /**
562
+ * If sticky headers should stick at the bottom instead of the top of the
563
+ * ScrollView. This is usually used with inverted ScrollViews.
564
+ */
565
+ /**
566
+ * Determines whether the keyboard gets dismissed in response to a drag.
567
+ * - 'none' (the default) drags do not dismiss the keyboard.
568
+ * - 'onDrag' the keyboard is dismissed when a drag begins.
569
+ * - 'interactive' the keyboard is dismissed interactively with the drag
570
+ * and moves in synchrony with the touch; dragging upwards cancels the
571
+ * dismissal.
572
+ */
573
+ /**
574
+ * Determines when the keyboard should stay visible after a tap.
575
+ * - 'never' (the default), tapping outside of the focused text input when the keyboard is up dismisses the keyboard. When this happens, children won't receive the tap.
576
+ * - 'always', the keyboard will not dismiss automatically, and the scroll view will not catch taps, but children of the scroll view can catch taps.
577
+ * - 'handled', the keyboard will not dismiss automatically when the tap was handled by a children, (or captured by an ancestor).
578
+ * - false, deprecated, use 'never' instead
579
+ * - true, deprecated, use 'always' instead
580
+ */
581
+ keyboardShouldPersistTaps?: boolean | "always" | "never" | "handled";
582
+ /**
583
+ * Called when scrollable content view of the ScrollView changes.
584
+ * Handler function is passed the content width and content height as parameters: (contentWidth, contentHeight)
585
+ * It's implemented using onLayout handler attached to the content container which this ScrollView renders.
586
+ *
587
+ */
588
+ /**
589
+ * Fires at most once per frame during scrolling.
590
+ * The frequency of the events can be contolled using the scrollEventThrottle prop.
591
+ */
592
+ onScroll?: (event: any) => void;
593
+ /**
594
+ * Fires if a user initiates a scroll gesture.
595
+ */
596
+ /**
597
+ * Fires when a user has finished scrolling.
598
+ */
599
+ /**
600
+ * Fires when scroll view has finished moving
601
+ */
602
+ /**
603
+ * Fires when scroll view has begun moving
604
+ */
605
+ /**
606
+ * When true the scroll view stops on multiples of the scroll view's size
607
+ * when scrolling. This can be used for horizontal pagination. The default
608
+ * value is false.
609
+ */
610
+ /**
611
+ * When false, the content does not scroll. The default value is true
612
+ */
613
+ /**
614
+ * Experimental: When true offscreen child views (whose `overflow` value is
615
+ * `hidden`) are removed from their native backing superview when offscreen.
616
+ * This canimprove scrolling performance on long lists. The default value is
617
+ * false.
618
+ */
619
+ /**
620
+ * When true, shows a horizontal scroll indicator.
621
+ */
622
+ /**
623
+ * When true, shows a vertical scroll indicator.
624
+ */
625
+ /**
626
+ * Style
627
+ */
628
+ style?: any;
629
+ }
630
+ declare type ItemT = any;
631
+ declare type ViewStyle = any;
632
+ interface StyleProp {
633
+ [key: string]: any;
634
+ }
635
+ interface LayoutRectangle {
636
+ x: number;
637
+ y: number;
638
+ width: number;
639
+ height: number;
640
+ }
641
+ interface LayoutChangeEvent {
642
+ nativeEvent: {
643
+ layout: LayoutRectangle;
644
+ };
645
+ }
646
+ interface RenderItemData {
647
+ item: any;
648
+ index: number;
649
+ }
650
+ export interface FlatListProps extends ScrollViewProps {
651
+ /**
652
+ * Rendered in between each item, but not at the top or bottom
653
+ */
654
+ ItemSeparatorComponent?: React.ComponentType<any> | null;
655
+ /**
656
+ * Rendered when the list is empty.
657
+ */
658
+ ListEmptyComponent?: React.ComponentType<any> | React.ReactElement | null;
659
+ /**
660
+ * Rendered at the very end of the list.
661
+ */
662
+ ListFooterComponent?: React.ComponentType<any> | React.ReactElement | null;
663
+ /**
664
+ * Styling for internal View for ListFooterComponent
665
+ */
666
+ ListFooterComponentStyle?: ViewStyle | null;
667
+ /**
668
+ * Rendered at the very beginning of the list.
669
+ */
670
+ ListHeaderComponent?: React.ComponentType<any> | React.ReactElement | null;
671
+ /**
672
+ * Styling for internal View for ListHeaderComponent
673
+ */
674
+ ListHeaderComponentStyle?: ViewStyle | null;
675
+ /**
676
+ * Optional custom style for multi-item rows generated when numColumns > 1
677
+ */
678
+ columnWrapperStyle?: StyleProp;
679
+ /**
680
+ * Determines when the keyboard should stay visible after a tap.
681
+ * - 'never' (the default), tapping outside of the focused text input when the keyboard is up dismisses the keyboard. When this happens, children won't receive the tap.
682
+ * - 'always', the keyboard will not dismiss automatically, and the scroll view will not catch taps, but children of the scroll view can catch taps.
683
+ * - 'handled', the keyboard will not dismiss automatically when the tap was handled by a children, (or captured by an ancestor).
684
+ * - false, deprecated, use 'never' instead
685
+ * - true, deprecated, use 'always' instead
686
+ */
687
+ keyboardShouldPersistTaps?: boolean | "always" | "never" | "handled";
688
+ /**
689
+ * Multiple columns can only be rendered with `horizontal={false}` and will zig-zag like a `flexWrap` layout.
690
+ * Items should all be the same height - masonry layouts are not supported.
691
+ */
692
+ numColumns?: number;
693
+ /**
694
+ * The default accessor functions assume this is an Array<{key: string}> but you can override
695
+ * getItem, getItemCount, and keyExtractor to handle any type of index-based data.
696
+ */
697
+ data?: any;
698
+ /**
699
+ * `debug` will turn on extra logging and visual overlays to aid with debugging both usage and
700
+ * implementation, but with a significant perf hit.
701
+ */
702
+ debug?: boolean;
703
+ /**
704
+ * DEPRECATED: Virtualization provides significant performance and memory optimizations, but fully
705
+ * unmounts react instances that are outside of the render window. You should only need to disable
706
+ * this for debugging purposes.
707
+ */
708
+ disableVirtualization?: boolean;
709
+ /**
710
+ * A marker property for telling the list to re-render (since it implements `PureComponent`). If
711
+ * any of your `renderItem`, Header, Footer, etc. functions depend on anything outside of the
712
+ * `data` prop, stick it here and treat it immutably.
713
+ */
714
+ extraData?: any;
715
+ /**
716
+ * A generic accessor for extracting an item from any sort of data blob.
717
+ */
718
+ getItem?: (data: any, index: number) => ItemT;
719
+ /**
720
+ * Determines how many items are in the data blob.
721
+ */
722
+ getItemCount?: (data: any) => number;
723
+ getItemLayout?: (data: any, index: number) => {
724
+ length: number;
725
+ offset: number;
726
+ index: number;
727
+ };
728
+ horizontal?: boolean | null;
729
+ /**
730
+ * How many items to render in the initial batch. This should be enough to fill the screen but not
731
+ * much more. Note these items will never be unmounted as part of the windowed rendering in order
732
+ * to improve perceived performance of scroll-to-top actions.
733
+ */
734
+ initialNumToRender?: number;
735
+ /**
736
+ * Instead of starting at the top with the first item, start at `initialScrollIndex`. This
737
+ * disables the "scroll to top" optimization that keeps the first `initialNumToRender` items
738
+ * always rendered and immediately renders the items starting at this initial index. Requires
739
+ * `getItemLayout` to be implemented.
740
+ */
741
+ initialScrollIndex?: number | null;
742
+ /**
743
+ * Reverses the direction of scroll. Uses scale transforms of -1.
744
+ */
745
+ inverted?: boolean | null;
746
+ keyExtractor?: (item: ItemT, index: number) => string;
747
+ listKey?: string;
748
+ /**
749
+ * The maximum number of items to render in each incremental render batch. The more rendered at
750
+ * once, the better the fill rate, but responsiveness my suffer because rendering content may
751
+ * interfere with responding to button taps or other interactions.
752
+ */
753
+ maxToRenderPerBatch?: number;
754
+ onEndReached?: ((info: {
755
+ distanceFromEnd: number;
756
+ }) => void) | null;
757
+ onEndReachedThreshold?: number | null;
758
+ onLayout?: (event: LayoutChangeEvent) => void;
759
+ /**
760
+ * If provided, a standard RefreshControl will be added for "Pull to Refresh" functionality. Make
761
+ * sure to also set the `refreshing` prop correctly.
762
+ */
763
+ onRefresh?: (() => void) | null;
764
+ /**
765
+ * Used to handle failures when scrolling to an index that has not been measured yet.
766
+ * Recommended action is to either compute your own offset and `scrollTo` it, or scroll as far
767
+ * as possible and then try again after more items have been rendered.
768
+ */
769
+ onScrollToIndexFailed?: (info: {
770
+ index: number;
771
+ highestMeasuredFrameIndex: number;
772
+ averageItemLength: number;
773
+ }) => void;
774
+ /**
775
+ * Called when the viewability of rows changes, as defined by the
776
+ * `viewabilityConfig` prop.
777
+ */
778
+ onViewableItemsChanged?: ((info: {
779
+ viewableItems: any[];
780
+ changed: any[];
781
+ }) => void) | null;
782
+ /**
783
+ * Set this when offset is needed for the loading indicator to show correctly.
784
+ * @platform android
785
+ */
786
+ progressViewOffset?: number;
787
+ /**
788
+ * Set this true while waiting for new data from a refresh.
789
+ */
790
+ refreshing?: boolean | null;
791
+ /**
792
+ * Note: may have bugs (missing content) in some circumstances - use at your own risk.
793
+ *
794
+ * This may improve scroll performance for large lists.
795
+ */
796
+ removeClippedSubviews?: boolean;
797
+ /**
798
+ * Render a custom scroll component, e.g. with a differently styled `RefreshControl`.
799
+ */
800
+ renderScrollComponent?: (props: ScrollViewProps) => React.ReactElement<ScrollViewProps>;
801
+ /**
802
+ * Amount of time between low-pri item render batches, e.g. for rendering items quite a ways off
803
+ * screen. Similar fill rate/responsiveness tradeoff as `maxToRenderPerBatch`.
804
+ */
805
+ updateCellsBatchingPeriod?: number;
806
+ viewabilityConfig?: any;
807
+ viewabilityConfigCallbackPairs?: any;
808
+ /**
809
+ * Determines the maximum number of items rendered outside of the visible area, in units of
810
+ * visible lengths. So if your list fills the screen, then `windowSize={21}` (the default) will
811
+ * render the visible screen area plus up to 10 screens above and 10 below the viewport. Reducing
812
+ * this number will reduce memory consumption and may improve performance, but will increase the
813
+ * chance that fast scrolling may reveal momentary blank areas of unrendered content.
814
+ */
815
+ windowSize?: number;
816
+ renderItem: (info: RenderItemData) => React.ReactElement | null;
817
+ }
818
+ export interface PickerProps {
819
+ onValueChange?: (itemValue: any, itemPosition: number) => void;
820
+ selectedValue?: any;
821
+ style?: StyleProp;
822
+ testId?: string;
823
+ itemStyle?: StyleProp;
824
+ enabled?: boolean;
825
+ mode?: "dialog" | "dropdown";
826
+ prompt?: string;
827
+ }
828
+ export declare type LogLevel = "fatal" | "error" | "warning" | "info" | "debug" | "critical";
829
+ export declare type PermissionKind = "location" | "locationAlways" | "camera" | "microphone" | "photo" | "contacts" | "event" | "reminder" | "bluetooth" | "notification" | "backgroundRefresh" | "speechRecognition" | "mediaLibrary" | "motion";
830
+ export declare type PermissionStatus = "authorized" | "denied" | "softDenied" | "restricted" | "undetermined";
831
+ export interface TrackingProperties {
832
+ [name: string]: any;
833
+ }
834
+ export declare function isTestUser(profile?: BaseProfile): boolean | "" | undefined;
835
+ export interface TrackerInterface {
836
+ initFinished: boolean;
837
+ init: (config: TrackingConfig) => void;
838
+ trackPages: () => void;
839
+ setUser: (user: BaseProfile) => void;
840
+ setUserProperty: (property: string, value: string | {
841
+ object: {
842
+ [id: string]: any;
843
+ };
844
+ }) => void;
845
+ track: (eventName: string, properties?: TrackingProperties) => void;
846
+ trackNavigation: (screen: string, properties?: TrackingProperties) => void;
847
+ trackLogin: (method: string, success: boolean, properties?: TrackingProperties) => void;
848
+ trackSignup: (method: string, success: boolean, properties?: TrackingProperties) => void;
849
+ trackSignOut: () => void;
850
+ log: (message: string, properties?: TrackingProperties, level?: LogLevel) => void;
851
+ error: (message: string, properties?: TrackingProperties) => void;
852
+ warn: (message: string, properties?: TrackingProperties) => void;
853
+ debug: (message: string, properties?: TrackingProperties) => void;
854
+ handleErrorAlert: (text: string, exception?: Error, showAlert?: boolean) => void;
855
+ trackPermission: (kind: PermissionKind, status: PermissionStatus, requested: boolean) => void;
856
+ updateAppInfo: () => void;
857
+ }
858
+ export interface NavConfig {
859
+ url?: string;
860
+ wrapper?: (component: any) => any;
861
+ store?: any;
862
+ provider?: any;
863
+ }
864
+ export interface ProgressBarProps {
865
+ color: Color;
866
+ completed: number;
867
+ }
868
+ export {};