fluent-styles 1.54.0 → 1.55.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 (872) hide show
  1. package/README.md +4065 -77
  2. package/lib/commonjs/actionSheet/actionSheet.js +372 -0
  3. package/lib/commonjs/actionSheet/actionSheet.js.map +1 -0
  4. package/lib/commonjs/actionSheet/index.js +20 -0
  5. package/lib/commonjs/actionSheet/index.js.map +1 -0
  6. package/lib/commonjs/actionSheet/useActionSheet.js +89 -0
  7. package/lib/commonjs/actionSheet/useActionSheet.js.map +1 -0
  8. package/lib/commonjs/badge/index.js +148 -0
  9. package/lib/commonjs/badge/index.js.map +1 -0
  10. package/lib/commonjs/barChart/index.js +298 -0
  11. package/lib/commonjs/barChart/index.js.map +1 -0
  12. package/lib/commonjs/button/index.js +228 -0
  13. package/lib/commonjs/button/index.js.map +1 -0
  14. package/lib/commonjs/card/index.js +202 -0
  15. package/lib/commonjs/card/index.js.map +1 -0
  16. package/lib/commonjs/checkBox/index.js +90 -0
  17. package/lib/commonjs/checkBox/index.js.map +1 -0
  18. package/lib/commonjs/chips/index.js +239 -0
  19. package/lib/commonjs/chips/index.js.map +1 -0
  20. package/lib/commonjs/circularProgress/index.js +265 -0
  21. package/lib/commonjs/circularProgress/index.js.map +1 -0
  22. package/lib/commonjs/collapsible/Collapse.js +293 -0
  23. package/lib/commonjs/collapsible/Collapse.js.map +1 -0
  24. package/lib/commonjs/collapsible/CollapseGroup.js +137 -0
  25. package/lib/commonjs/collapsible/CollapseGroup.js.map +1 -0
  26. package/lib/commonjs/collapsible/index.js +64 -0
  27. package/lib/commonjs/collapsible/index.js.map +1 -0
  28. package/lib/commonjs/collapsible/interface.js +39 -0
  29. package/lib/commonjs/collapsible/interface.js.map +1 -0
  30. package/lib/commonjs/collapsible/style.js +161 -0
  31. package/lib/commonjs/collapsible/style.js.map +1 -0
  32. package/lib/commonjs/datePicker/index.js +915 -0
  33. package/lib/commonjs/datePicker/index.js.map +1 -0
  34. package/lib/commonjs/dialog/dialogue.js +205 -0
  35. package/lib/commonjs/dialog/dialogue.js.map +1 -0
  36. package/lib/commonjs/dialog/index.js +393 -0
  37. package/lib/commonjs/dialog/index.js.map +1 -0
  38. package/lib/commonjs/dialog/useDialogue.js +117 -0
  39. package/lib/commonjs/dialog/useDialogue.js.map +1 -0
  40. package/lib/commonjs/divider/index.js +37 -0
  41. package/lib/commonjs/divider/index.js.map +1 -0
  42. package/lib/commonjs/drawer/Drawer.js +587 -0
  43. package/lib/commonjs/drawer/Drawer.js.map +1 -0
  44. package/lib/commonjs/drawer/index.js +51 -0
  45. package/lib/commonjs/drawer/index.js.map +1 -0
  46. package/lib/commonjs/drawer/interface.js +84 -0
  47. package/lib/commonjs/drawer/interface.js.map +1 -0
  48. package/lib/commonjs/dropdown/index.js +859 -0
  49. package/lib/commonjs/dropdown/index.js.map +1 -0
  50. package/lib/commonjs/emptyState/index.js +231 -0
  51. package/lib/commonjs/emptyState/index.js.map +1 -0
  52. package/lib/commonjs/form/index.js +2 -0
  53. package/lib/commonjs/form/index.js.map +1 -0
  54. package/lib/commonjs/header/index.js +147 -0
  55. package/lib/commonjs/header/index.js.map +1 -0
  56. package/lib/commonjs/header/statusBar/index.js +20 -0
  57. package/lib/commonjs/header/statusBar/index.js.map +1 -0
  58. package/lib/commonjs/icons/backArrow.js +42 -0
  59. package/lib/commonjs/icons/backArrow.js.map +1 -0
  60. package/lib/commonjs/icons/bellFill.js +43 -0
  61. package/lib/commonjs/icons/bellFill.js.map +1 -0
  62. package/lib/commonjs/icons/bellOutline.js +43 -0
  63. package/lib/commonjs/icons/bellOutline.js.map +1 -0
  64. package/lib/commonjs/icons/checkmark.js +36 -0
  65. package/lib/commonjs/icons/checkmark.js.map +1 -0
  66. package/lib/commonjs/icons/delete.js +53 -0
  67. package/lib/commonjs/icons/delete.js.map +1 -0
  68. package/lib/commonjs/icons/downChevron.js +36 -0
  69. package/lib/commonjs/icons/downChevron.js.map +1 -0
  70. package/lib/commonjs/icons/error.js +41 -0
  71. package/lib/commonjs/icons/error.js.map +1 -0
  72. package/lib/commonjs/icons/forwardArrow.js +42 -0
  73. package/lib/commonjs/icons/forwardArrow.js.map +1 -0
  74. package/lib/commonjs/icons/index.js +111 -0
  75. package/lib/commonjs/icons/index.js.map +1 -0
  76. package/lib/commonjs/icons/info.js +48 -0
  77. package/lib/commonjs/icons/info.js.map +1 -0
  78. package/lib/commonjs/icons/leftChevron.js +36 -0
  79. package/lib/commonjs/icons/leftChevron.js.map +1 -0
  80. package/lib/commonjs/icons/rightChevron.js +36 -0
  81. package/lib/commonjs/icons/rightChevron.js.map +1 -0
  82. package/lib/commonjs/icons/save.js +50 -0
  83. package/lib/commonjs/icons/save.js.map +1 -0
  84. package/lib/commonjs/icons/success.js +43 -0
  85. package/lib/commonjs/icons/success.js.map +1 -0
  86. package/lib/commonjs/icons/upChevron.js +36 -0
  87. package/lib/commonjs/icons/upChevron.js.map +1 -0
  88. package/lib/commonjs/icons/warning.js +48 -0
  89. package/lib/commonjs/icons/warning.js.map +1 -0
  90. package/lib/commonjs/image/index.js +47 -0
  91. package/lib/commonjs/image/index.js.map +1 -0
  92. package/lib/commonjs/index.js +519 -138
  93. package/lib/commonjs/index.js.map +1 -1
  94. package/lib/commonjs/input/index.js +488 -0
  95. package/lib/commonjs/input/index.js.map +1 -0
  96. package/lib/commonjs/loading/circular.js +116 -0
  97. package/lib/commonjs/loading/circular.js.map +1 -0
  98. package/lib/commonjs/loading/index.js +34 -0
  99. package/lib/commonjs/loading/index.js.map +1 -0
  100. package/lib/commonjs/loading/loader.js +247 -0
  101. package/lib/commonjs/loading/loader.js.map +1 -0
  102. package/lib/commonjs/loading/spinner.js +90 -0
  103. package/lib/commonjs/loading/spinner.js.map +1 -0
  104. package/lib/commonjs/loading/useLoader.js +62 -0
  105. package/lib/commonjs/loading/useLoader.js.map +1 -0
  106. package/lib/commonjs/loading/useLoaderBinding.js +34 -0
  107. package/lib/commonjs/loading/useLoaderBinding.js.map +1 -0
  108. package/lib/commonjs/notification/index.js +269 -0
  109. package/lib/commonjs/notification/index.js.map +1 -0
  110. package/lib/commonjs/notification/useNotification.js +62 -0
  111. package/lib/commonjs/notification/useNotification.js.map +1 -0
  112. package/lib/commonjs/page/index.js +22 -0
  113. package/lib/commonjs/page/index.js.map +1 -0
  114. package/lib/commonjs/popup/Popup.js +332 -0
  115. package/lib/commonjs/popup/Popup.js.map +1 -0
  116. package/lib/commonjs/popup/helpers.js +168 -0
  117. package/lib/commonjs/popup/helpers.js.map +1 -0
  118. package/lib/commonjs/popup/index.js +51 -0
  119. package/lib/commonjs/popup/index.js.map +1 -0
  120. package/lib/commonjs/popup/interface.js +45 -0
  121. package/lib/commonjs/popup/interface.js.map +1 -0
  122. package/lib/commonjs/portal/GlobalPortalProvider.js +68 -0
  123. package/lib/commonjs/portal/GlobalPortalProvider.js.map +1 -0
  124. package/lib/commonjs/portal/PortalContext.js +38 -0
  125. package/lib/commonjs/portal/PortalContext.js.map +1 -0
  126. package/lib/commonjs/portal/PortalInstance.js +123 -0
  127. package/lib/commonjs/portal/PortalInstance.js.map +1 -0
  128. package/lib/commonjs/portal/PortalManager.js +87 -0
  129. package/lib/commonjs/portal/PortalManager.js.map +1 -0
  130. package/lib/commonjs/portal/PortalRenderer.js +57 -0
  131. package/lib/commonjs/portal/PortalRenderer.js.map +1 -0
  132. package/lib/commonjs/portal/index.js +54 -0
  133. package/lib/commonjs/portal/index.js.map +1 -0
  134. package/lib/commonjs/portal/portal.test.js +154 -0
  135. package/lib/commonjs/portal/portal.test.js.map +1 -0
  136. package/lib/commonjs/portal/types.js +6 -0
  137. package/lib/commonjs/portal/types.js.map +1 -0
  138. package/lib/commonjs/pressable/index.js +18 -0
  139. package/lib/commonjs/pressable/index.js.map +1 -0
  140. package/lib/commonjs/progressBar/index.js +512 -0
  141. package/lib/commonjs/progressBar/index.js.map +1 -0
  142. package/lib/commonjs/radio/index.js +368 -0
  143. package/lib/commonjs/radio/index.js.map +1 -0
  144. package/lib/commonjs/safeAreaProvider/index.js +12 -0
  145. package/lib/commonjs/safeAreaProvider/index.js.map +1 -0
  146. package/lib/commonjs/safeAreaView/index.js +14 -0
  147. package/lib/commonjs/safeAreaView/index.js.map +1 -0
  148. package/lib/commonjs/scrollView/index.js +14 -0
  149. package/lib/commonjs/scrollView/index.js.map +1 -0
  150. package/lib/commonjs/searchBar/index.js +356 -0
  151. package/lib/commonjs/searchBar/index.js.map +1 -0
  152. package/lib/commonjs/seperator/index.js +44 -0
  153. package/lib/commonjs/seperator/index.js.map +1 -0
  154. package/lib/commonjs/services/index.js +185 -0
  155. package/lib/commonjs/services/index.js.map +1 -0
  156. package/lib/commonjs/shape/index.js +36 -0
  157. package/lib/commonjs/shape/index.js.map +1 -0
  158. package/lib/commonjs/skeleton/index.js +430 -0
  159. package/lib/commonjs/skeleton/index.js.map +1 -0
  160. package/lib/commonjs/slider/index.js +499 -0
  161. package/lib/commonjs/slider/index.js.map +1 -0
  162. package/lib/commonjs/spacer/index.js +14 -0
  163. package/lib/commonjs/spacer/index.js.map +1 -0
  164. package/lib/commonjs/stack/index.js +52 -0
  165. package/lib/commonjs/stack/index.js.map +1 -0
  166. package/lib/commonjs/switch/Switch.js +289 -0
  167. package/lib/commonjs/switch/Switch.js.map +1 -0
  168. package/lib/commonjs/switch/_index.js +118 -0
  169. package/lib/commonjs/switch/_index.js.map +1 -0
  170. package/lib/commonjs/switch/index.js +26 -0
  171. package/lib/commonjs/switch/index.js.map +1 -0
  172. package/lib/commonjs/switch/interface.js +47 -0
  173. package/lib/commonjs/switch/interface.js.map +1 -0
  174. package/lib/commonjs/tabBar/TabBar.js +409 -0
  175. package/lib/commonjs/tabBar/TabBar.js.map +1 -0
  176. package/lib/commonjs/tabBar/TabBarUsage.js +441 -0
  177. package/lib/commonjs/tabBar/TabBarUsage.js.map +1 -0
  178. package/lib/commonjs/tabBar/index.js +26 -0
  179. package/lib/commonjs/tabBar/index.js.map +1 -0
  180. package/lib/commonjs/tabBar/interface.js +43 -0
  181. package/lib/commonjs/tabBar/interface.js.map +1 -0
  182. package/lib/commonjs/text/index.js +65 -0
  183. package/lib/commonjs/text/index.js.map +1 -0
  184. package/lib/commonjs/timeline/index.js +264 -0
  185. package/lib/commonjs/timeline/index.js.map +1 -0
  186. package/lib/commonjs/toast/index.js +203 -0
  187. package/lib/commonjs/toast/index.js.map +1 -0
  188. package/lib/commonjs/toast/useToast.js +82 -0
  189. package/lib/commonjs/toast/useToast.js.map +1 -0
  190. package/lib/commonjs/utiles/createIcon.js +49 -0
  191. package/lib/commonjs/utiles/createIcon.js.map +1 -0
  192. package/lib/commonjs/utiles/fontStyles.js +36 -0
  193. package/lib/commonjs/utiles/fontStyles.js.map +1 -0
  194. package/lib/commonjs/utiles/position.js +98 -0
  195. package/lib/commonjs/utiles/position.js.map +1 -0
  196. package/lib/commonjs/utiles/statusBar.js +425 -0
  197. package/lib/commonjs/utiles/statusBar.js.map +1 -0
  198. package/lib/commonjs/utiles/styled.js +42 -0
  199. package/lib/commonjs/utiles/styled.js.map +1 -0
  200. package/lib/commonjs/utiles/styles.js +30 -0
  201. package/lib/commonjs/utiles/styles.js.map +1 -0
  202. package/lib/commonjs/utiles/theme.js +680 -0
  203. package/lib/commonjs/utiles/theme.js.map +1 -0
  204. package/lib/commonjs/utiles/validators.js +31 -0
  205. package/lib/commonjs/utiles/validators.js.map +1 -0
  206. package/lib/commonjs/utiles/viewStyleProps.js +6 -0
  207. package/lib/commonjs/utiles/viewStyleProps.js.map +1 -0
  208. package/lib/commonjs/utiles/viewStyleVariants.js +546 -0
  209. package/lib/commonjs/utiles/viewStyleVariants.js.map +1 -0
  210. package/lib/module/actionSheet/actionSheet.js +368 -0
  211. package/lib/module/actionSheet/actionSheet.js.map +1 -0
  212. package/lib/module/actionSheet/index.js +5 -0
  213. package/lib/module/actionSheet/index.js.map +1 -0
  214. package/lib/module/actionSheet/useActionSheet.js +85 -0
  215. package/lib/module/actionSheet/useActionSheet.js.map +1 -0
  216. package/lib/module/badge/index.js +147 -0
  217. package/lib/module/badge/index.js.map +1 -0
  218. package/lib/module/barChart/index.js +292 -0
  219. package/lib/module/barChart/index.js.map +1 -0
  220. package/lib/module/button/index.js +224 -0
  221. package/lib/module/button/index.js.map +1 -0
  222. package/lib/module/card/index.js +198 -0
  223. package/lib/module/card/index.js.map +1 -0
  224. package/lib/module/checkBox/index.js +86 -0
  225. package/lib/module/checkBox/index.js.map +1 -0
  226. package/lib/module/chips/index.js +232 -0
  227. package/lib/module/chips/index.js.map +1 -0
  228. package/lib/module/circularProgress/index.js +259 -0
  229. package/lib/module/circularProgress/index.js.map +1 -0
  230. package/lib/module/collapsible/Collapse.js +288 -0
  231. package/lib/module/collapsible/Collapse.js.map +1 -0
  232. package/lib/module/collapsible/CollapseGroup.js +133 -0
  233. package/lib/module/collapsible/CollapseGroup.js.map +1 -0
  234. package/lib/module/collapsible/index.js +40 -0
  235. package/lib/module/collapsible/index.js.map +1 -0
  236. package/lib/module/collapsible/interface.js +35 -0
  237. package/lib/module/collapsible/interface.js.map +1 -0
  238. package/lib/module/collapsible/style.js +153 -0
  239. package/lib/module/collapsible/style.js.map +1 -0
  240. package/lib/module/datePicker/index.js +908 -0
  241. package/lib/module/datePicker/index.js.map +1 -0
  242. package/lib/module/dialog/dialogue.js +189 -0
  243. package/lib/module/dialog/dialogue.js.map +1 -0
  244. package/lib/module/dialog/index.js +386 -0
  245. package/lib/module/dialog/index.js.map +1 -0
  246. package/lib/module/dialog/useDialogue.js +113 -0
  247. package/lib/module/dialog/useDialogue.js.map +1 -0
  248. package/lib/module/divider/index.js +34 -0
  249. package/lib/module/divider/index.js.map +1 -0
  250. package/lib/module/drawer/Drawer.js +583 -0
  251. package/lib/module/drawer/Drawer.js.map +1 -0
  252. package/lib/module/drawer/index.js +60 -0
  253. package/lib/module/drawer/index.js.map +1 -0
  254. package/lib/module/drawer/interface.js +80 -0
  255. package/lib/module/drawer/interface.js.map +1 -0
  256. package/lib/module/dropdown/index.js +854 -0
  257. package/lib/module/dropdown/index.js.map +1 -0
  258. package/lib/module/emptyState/index.js +225 -0
  259. package/lib/module/emptyState/index.js.map +1 -0
  260. package/lib/module/form/index.js +2 -0
  261. package/lib/module/form/index.js.map +1 -0
  262. package/lib/module/header/index.js +143 -0
  263. package/lib/module/header/index.js.map +1 -0
  264. package/lib/module/header/statusBar/index.js +15 -0
  265. package/lib/module/header/statusBar/index.js.map +1 -0
  266. package/lib/module/icons/backArrow.js +37 -0
  267. package/lib/module/icons/backArrow.js.map +1 -0
  268. package/lib/module/icons/bellFill.js +38 -0
  269. package/lib/module/icons/bellFill.js.map +1 -0
  270. package/lib/module/icons/bellOutline.js +38 -0
  271. package/lib/module/icons/bellOutline.js.map +1 -0
  272. package/lib/module/icons/checkmark.js +31 -0
  273. package/lib/module/icons/checkmark.js.map +1 -0
  274. package/lib/module/icons/delete.js +48 -0
  275. package/lib/module/icons/delete.js.map +1 -0
  276. package/lib/module/icons/downChevron.js +31 -0
  277. package/lib/module/icons/downChevron.js.map +1 -0
  278. package/lib/module/icons/error.js +36 -0
  279. package/lib/module/icons/error.js.map +1 -0
  280. package/lib/module/icons/forwardArrow.js +37 -0
  281. package/lib/module/icons/forwardArrow.js.map +1 -0
  282. package/lib/module/icons/index.js +18 -0
  283. package/lib/module/icons/index.js.map +1 -0
  284. package/lib/module/icons/info.js +43 -0
  285. package/lib/module/icons/info.js.map +1 -0
  286. package/lib/module/icons/leftChevron.js +31 -0
  287. package/lib/module/icons/leftChevron.js.map +1 -0
  288. package/lib/module/icons/rightChevron.js +31 -0
  289. package/lib/module/icons/rightChevron.js.map +1 -0
  290. package/lib/module/icons/save.js +45 -0
  291. package/lib/module/icons/save.js.map +1 -0
  292. package/lib/module/icons/success.js +38 -0
  293. package/lib/module/icons/success.js.map +1 -0
  294. package/lib/module/icons/upChevron.js +31 -0
  295. package/lib/module/icons/upChevron.js.map +1 -0
  296. package/lib/module/icons/warning.js +43 -0
  297. package/lib/module/icons/warning.js.map +1 -0
  298. package/lib/module/image/index.js +43 -0
  299. package/lib/module/image/index.js.map +1 -0
  300. package/lib/module/index.js +56 -24
  301. package/lib/module/index.js.map +1 -1
  302. package/lib/module/input/index.js +483 -0
  303. package/lib/module/input/index.js.map +1 -0
  304. package/lib/module/loading/circular.js +111 -0
  305. package/lib/module/loading/circular.js.map +1 -0
  306. package/lib/module/loading/index.js +7 -0
  307. package/lib/module/loading/index.js.map +1 -0
  308. package/lib/module/loading/loader.js +242 -0
  309. package/lib/module/loading/loader.js.map +1 -0
  310. package/lib/module/loading/spinner.js +85 -0
  311. package/lib/module/loading/spinner.js.map +1 -0
  312. package/lib/module/loading/useLoader.js +58 -0
  313. package/lib/module/loading/useLoader.js.map +1 -0
  314. package/lib/module/loading/useLoaderBinding.js +28 -0
  315. package/lib/module/loading/useLoaderBinding.js.map +1 -0
  316. package/lib/module/notification/index.js +253 -0
  317. package/lib/module/notification/index.js.map +1 -0
  318. package/lib/module/notification/useNotification.js +58 -0
  319. package/lib/module/notification/useNotification.js.map +1 -0
  320. package/lib/module/page/index.js +17 -0
  321. package/lib/module/page/index.js.map +1 -0
  322. package/lib/module/popup/Popup.js +328 -0
  323. package/lib/module/popup/Popup.js.map +1 -0
  324. package/lib/module/popup/helpers.js +159 -0
  325. package/lib/module/popup/helpers.js.map +1 -0
  326. package/lib/module/popup/index.js +45 -0
  327. package/lib/module/popup/index.js.map +1 -0
  328. package/lib/module/popup/interface.js +41 -0
  329. package/lib/module/popup/interface.js.map +1 -0
  330. package/lib/module/portal/GlobalPortalProvider.js +62 -0
  331. package/lib/module/portal/GlobalPortalProvider.js.map +1 -0
  332. package/lib/module/portal/PortalContext.js +33 -0
  333. package/lib/module/portal/PortalContext.js.map +1 -0
  334. package/lib/module/portal/PortalInstance.js +118 -0
  335. package/lib/module/portal/PortalInstance.js.map +1 -0
  336. package/lib/module/portal/PortalManager.js +81 -0
  337. package/lib/module/portal/PortalManager.js.map +1 -0
  338. package/lib/module/portal/PortalRenderer.js +51 -0
  339. package/lib/module/portal/PortalRenderer.js.map +1 -0
  340. package/lib/module/portal/index.js +56 -0
  341. package/lib/module/portal/index.js.map +1 -0
  342. package/lib/module/portal/portal.test.js +155 -0
  343. package/lib/module/portal/portal.test.js.map +1 -0
  344. package/lib/module/portal/types.js +4 -0
  345. package/lib/module/portal/types.js.map +1 -0
  346. package/lib/module/pressable/index.js +15 -0
  347. package/lib/module/pressable/index.js.map +1 -0
  348. package/lib/module/progressBar/index.js +506 -0
  349. package/lib/module/progressBar/index.js.map +1 -0
  350. package/lib/module/radio/index.js +361 -0
  351. package/lib/module/radio/index.js.map +1 -0
  352. package/lib/module/safeAreaProvider/index.js +9 -0
  353. package/lib/module/safeAreaProvider/index.js.map +1 -0
  354. package/lib/module/safeAreaView/index.js +11 -0
  355. package/lib/module/safeAreaView/index.js.map +1 -0
  356. package/lib/module/scrollView/index.js +11 -0
  357. package/lib/module/scrollView/index.js.map +1 -0
  358. package/lib/module/searchBar/index.js +350 -0
  359. package/lib/module/searchBar/index.js.map +1 -0
  360. package/lib/module/seperator/index.js +40 -0
  361. package/lib/module/seperator/index.js.map +1 -0
  362. package/lib/module/services/index.js +181 -0
  363. package/lib/module/services/index.js.map +1 -0
  364. package/lib/module/shape/index.js +33 -0
  365. package/lib/module/shape/index.js.map +1 -0
  366. package/lib/module/skeleton/index.js +425 -0
  367. package/lib/module/skeleton/index.js.map +1 -0
  368. package/lib/module/slider/index.js +493 -0
  369. package/lib/module/slider/index.js.map +1 -0
  370. package/lib/module/spacer/index.js +11 -0
  371. package/lib/module/spacer/index.js.map +1 -0
  372. package/lib/module/stack/index.js +50 -0
  373. package/lib/module/stack/index.js.map +1 -0
  374. package/lib/module/switch/Switch.js +285 -0
  375. package/lib/module/switch/Switch.js.map +1 -0
  376. package/lib/module/switch/_index.js +114 -0
  377. package/lib/module/switch/_index.js.map +1 -0
  378. package/lib/module/switch/index.js +64 -0
  379. package/lib/module/switch/index.js.map +1 -0
  380. package/lib/module/switch/interface.js +43 -0
  381. package/lib/module/switch/interface.js.map +1 -0
  382. package/lib/module/tabBar/TabBar.js +405 -0
  383. package/lib/module/tabBar/TabBar.js.map +1 -0
  384. package/lib/module/tabBar/TabBarUsage.js +437 -0
  385. package/lib/module/tabBar/TabBarUsage.js.map +1 -0
  386. package/lib/module/tabBar/index.js +54 -0
  387. package/lib/module/tabBar/index.js.map +1 -0
  388. package/lib/module/tabBar/interface.js +39 -0
  389. package/lib/module/tabBar/interface.js.map +1 -0
  390. package/lib/module/text/index.js +62 -0
  391. package/lib/module/text/index.js.map +1 -0
  392. package/lib/module/timeline/index.js +258 -0
  393. package/lib/module/timeline/index.js.map +1 -0
  394. package/lib/module/toast/index.js +187 -0
  395. package/lib/module/toast/index.js.map +1 -0
  396. package/lib/module/toast/useToast.js +78 -0
  397. package/lib/module/toast/useToast.js.map +1 -0
  398. package/lib/module/utiles/createIcon.js +45 -0
  399. package/lib/module/utiles/createIcon.js.map +1 -0
  400. package/lib/module/utiles/fontStyles.js +31 -0
  401. package/lib/module/utiles/fontStyles.js.map +1 -0
  402. package/lib/module/utiles/position.js +94 -0
  403. package/lib/module/utiles/position.js.map +1 -0
  404. package/lib/module/utiles/statusBar.js +401 -0
  405. package/lib/module/utiles/statusBar.js.map +1 -0
  406. package/lib/module/utiles/styled.js +37 -0
  407. package/lib/module/utiles/styled.js.map +1 -0
  408. package/lib/module/utiles/styles.js +27 -0
  409. package/lib/module/utiles/styles.js.map +1 -0
  410. package/lib/module/{package → utiles}/theme.js +305 -17
  411. package/lib/module/utiles/theme.js.map +1 -0
  412. package/lib/module/utiles/validators.js +24 -0
  413. package/lib/module/utiles/validators.js.map +1 -0
  414. package/lib/module/utiles/viewStyleProps.js +4 -0
  415. package/lib/module/utiles/viewStyleProps.js.map +1 -0
  416. package/lib/module/utiles/viewStyleVariants.js +542 -0
  417. package/lib/module/utiles/viewStyleVariants.js.map +1 -0
  418. package/lib/typescript/actionSheet/actionSheet.d.ts +82 -0
  419. package/lib/typescript/actionSheet/actionSheet.d.ts.map +1 -0
  420. package/lib/typescript/actionSheet/index.d.ts +4 -0
  421. package/lib/typescript/actionSheet/index.d.ts.map +1 -0
  422. package/lib/typescript/actionSheet/useActionSheet.d.ts +82 -0
  423. package/lib/typescript/actionSheet/useActionSheet.d.ts.map +1 -0
  424. package/lib/typescript/badge/index.d.ts +37 -0
  425. package/lib/typescript/badge/index.d.ts.map +1 -0
  426. package/lib/typescript/barChart/index.d.ts +125 -0
  427. package/lib/typescript/barChart/index.d.ts.map +1 -0
  428. package/lib/typescript/button/index.d.ts +86 -0
  429. package/lib/typescript/button/index.d.ts.map +1 -0
  430. package/lib/typescript/card/index.d.ts +53 -0
  431. package/lib/typescript/card/index.d.ts.map +1 -0
  432. package/lib/typescript/checkBox/index.d.ts +28 -0
  433. package/lib/typescript/checkBox/index.d.ts.map +1 -0
  434. package/lib/typescript/chips/index.d.ts +104 -0
  435. package/lib/typescript/chips/index.d.ts.map +1 -0
  436. package/lib/typescript/circularProgress/index.d.ts +36 -0
  437. package/lib/typescript/circularProgress/index.d.ts.map +1 -0
  438. package/lib/typescript/collapsible/Collapse.d.ts +5 -0
  439. package/lib/typescript/collapsible/Collapse.d.ts.map +1 -0
  440. package/lib/typescript/collapsible/CollapseGroup.d.ts +49 -0
  441. package/lib/typescript/collapsible/CollapseGroup.d.ts.map +1 -0
  442. package/lib/typescript/collapsible/index.d.ts +38 -0
  443. package/lib/typescript/collapsible/index.d.ts.map +1 -0
  444. package/lib/typescript/collapsible/interface.d.ts +116 -0
  445. package/lib/typescript/collapsible/interface.d.ts.map +1 -0
  446. package/lib/typescript/collapsible/style.d.ts +92 -0
  447. package/lib/typescript/collapsible/style.d.ts.map +1 -0
  448. package/lib/typescript/datePicker/index.d.ts +91 -0
  449. package/lib/typescript/datePicker/index.d.ts.map +1 -0
  450. package/lib/typescript/dialog/dialogue.d.ts +20 -0
  451. package/lib/typescript/dialog/dialogue.d.ts.map +1 -0
  452. package/lib/typescript/dialog/index.d.ts +175 -0
  453. package/lib/typescript/dialog/index.d.ts.map +1 -0
  454. package/lib/typescript/dialog/useDialogue.d.ts +21 -0
  455. package/lib/typescript/dialog/useDialogue.d.ts.map +1 -0
  456. package/lib/typescript/divider/index.d.ts +12 -0
  457. package/lib/typescript/divider/index.d.ts.map +1 -0
  458. package/lib/typescript/drawer/Drawer.d.ts +4 -0
  459. package/lib/typescript/drawer/Drawer.d.ts.map +1 -0
  460. package/lib/typescript/drawer/index.d.ts +48 -0
  461. package/lib/typescript/drawer/index.d.ts.map +1 -0
  462. package/lib/typescript/drawer/interface.d.ts +232 -0
  463. package/lib/typescript/drawer/interface.d.ts.map +1 -0
  464. package/lib/typescript/dropdown/index.d.ts +54 -0
  465. package/lib/typescript/dropdown/index.d.ts.map +1 -0
  466. package/lib/typescript/emptyState/index.d.ts +57 -0
  467. package/lib/typescript/emptyState/index.d.ts.map +1 -0
  468. package/lib/typescript/form/index.d.ts +1 -0
  469. package/lib/typescript/form/index.d.ts.map +1 -0
  470. package/lib/typescript/header/index.d.ts +44 -0
  471. package/lib/typescript/header/index.d.ts.map +1 -0
  472. package/lib/typescript/header/statusBar/index.d.ts +6 -0
  473. package/lib/typescript/header/statusBar/index.d.ts.map +1 -0
  474. package/lib/typescript/icons/backArrow.d.ts +12 -0
  475. package/lib/typescript/icons/backArrow.d.ts.map +1 -0
  476. package/lib/typescript/icons/bellFill.d.ts +12 -0
  477. package/lib/typescript/icons/bellFill.d.ts.map +1 -0
  478. package/lib/typescript/icons/bellOutline.d.ts +12 -0
  479. package/lib/typescript/icons/bellOutline.d.ts.map +1 -0
  480. package/lib/typescript/icons/checkmark.d.ts +12 -0
  481. package/lib/typescript/icons/checkmark.d.ts.map +1 -0
  482. package/lib/typescript/icons/delete.d.ts +12 -0
  483. package/lib/typescript/icons/delete.d.ts.map +1 -0
  484. package/lib/typescript/icons/downChevron.d.ts +12 -0
  485. package/lib/typescript/icons/downChevron.d.ts.map +1 -0
  486. package/lib/typescript/icons/error.d.ts +12 -0
  487. package/lib/typescript/icons/error.d.ts.map +1 -0
  488. package/lib/typescript/icons/forwardArrow.d.ts +12 -0
  489. package/lib/typescript/icons/forwardArrow.d.ts.map +1 -0
  490. package/lib/typescript/icons/index.d.ts +16 -0
  491. package/lib/typescript/icons/index.d.ts.map +1 -0
  492. package/lib/typescript/icons/info.d.ts +12 -0
  493. package/lib/typescript/icons/info.d.ts.map +1 -0
  494. package/lib/typescript/icons/leftChevron.d.ts +12 -0
  495. package/lib/typescript/icons/leftChevron.d.ts.map +1 -0
  496. package/lib/typescript/icons/rightChevron.d.ts +12 -0
  497. package/lib/typescript/icons/rightChevron.d.ts.map +1 -0
  498. package/lib/typescript/icons/save.d.ts +12 -0
  499. package/lib/typescript/icons/save.d.ts.map +1 -0
  500. package/lib/typescript/icons/success.d.ts +12 -0
  501. package/lib/typescript/icons/success.d.ts.map +1 -0
  502. package/lib/typescript/icons/upChevron.d.ts +12 -0
  503. package/lib/typescript/icons/upChevron.d.ts.map +1 -0
  504. package/lib/typescript/icons/warning.d.ts +12 -0
  505. package/lib/typescript/icons/warning.d.ts.map +1 -0
  506. package/lib/typescript/image/index.d.ts +15 -0
  507. package/lib/typescript/image/index.d.ts.map +1 -0
  508. package/lib/typescript/index.d.ts +56 -0
  509. package/lib/typescript/index.d.ts.map +1 -0
  510. package/lib/typescript/input/index.d.ts +89 -0
  511. package/lib/typescript/input/index.d.ts.map +1 -0
  512. package/lib/typescript/loading/circular.d.ts +10 -0
  513. package/lib/typescript/loading/circular.d.ts.map +1 -0
  514. package/lib/typescript/loading/index.d.ts +7 -0
  515. package/lib/typescript/loading/index.d.ts.map +1 -0
  516. package/lib/typescript/loading/loader.d.ts +23 -0
  517. package/lib/typescript/loading/loader.d.ts.map +1 -0
  518. package/lib/typescript/loading/spinner.d.ts +22 -0
  519. package/lib/typescript/loading/spinner.d.ts.map +1 -0
  520. package/lib/typescript/loading/useLoader.d.ts +27 -0
  521. package/lib/typescript/loading/useLoader.d.ts.map +1 -0
  522. package/lib/typescript/loading/useLoaderBinding.d.ts +9 -0
  523. package/lib/typescript/loading/useLoaderBinding.d.ts.map +1 -0
  524. package/lib/typescript/notification/index.d.ts +21 -0
  525. package/lib/typescript/notification/index.d.ts.map +1 -0
  526. package/lib/typescript/notification/useNotification.d.ts +30 -0
  527. package/lib/typescript/notification/useNotification.d.ts.map +1 -0
  528. package/lib/typescript/page/index.d.ts +12 -0
  529. package/lib/typescript/page/index.d.ts.map +1 -0
  530. package/lib/typescript/popup/Popup.d.ts +4 -0
  531. package/lib/typescript/popup/Popup.d.ts.map +1 -0
  532. package/lib/typescript/popup/helpers.d.ts +9 -0
  533. package/lib/typescript/popup/helpers.d.ts.map +1 -0
  534. package/lib/typescript/popup/index.d.ts +43 -0
  535. package/lib/typescript/popup/index.d.ts.map +1 -0
  536. package/lib/typescript/popup/interface.d.ts +103 -0
  537. package/lib/typescript/popup/interface.d.ts.map +1 -0
  538. package/lib/typescript/portal/GlobalPortalProvider.d.ts +44 -0
  539. package/lib/typescript/portal/GlobalPortalProvider.d.ts.map +1 -0
  540. package/lib/typescript/portal/PortalContext.d.ts +25 -0
  541. package/lib/typescript/portal/PortalContext.d.ts.map +1 -0
  542. package/lib/typescript/portal/PortalInstance.d.ts +72 -0
  543. package/lib/typescript/portal/PortalInstance.d.ts.map +1 -0
  544. package/lib/typescript/portal/PortalManager.d.ts +7 -0
  545. package/lib/typescript/portal/PortalManager.d.ts.map +1 -0
  546. package/lib/typescript/portal/PortalRenderer.d.ts +27 -0
  547. package/lib/typescript/portal/PortalRenderer.d.ts.map +1 -0
  548. package/lib/typescript/portal/index.d.ts +43 -0
  549. package/lib/typescript/portal/index.d.ts.map +1 -0
  550. package/lib/typescript/portal/portal.test.d.ts +11 -0
  551. package/lib/typescript/portal/portal.test.d.ts.map +1 -0
  552. package/lib/typescript/portal/types.d.ts +30 -0
  553. package/lib/typescript/portal/types.d.ts.map +1 -0
  554. package/lib/typescript/pressable/index.d.ts +8 -0
  555. package/lib/typescript/pressable/index.d.ts.map +1 -0
  556. package/lib/typescript/progressBar/index.d.ts +155 -0
  557. package/lib/typescript/progressBar/index.d.ts.map +1 -0
  558. package/lib/typescript/radio/index.d.ts +144 -0
  559. package/lib/typescript/radio/index.d.ts.map +1 -0
  560. package/lib/typescript/safeAreaProvider/index.d.ts +7 -0
  561. package/lib/typescript/safeAreaProvider/index.d.ts.map +1 -0
  562. package/lib/typescript/safeAreaView/index.d.ts +8 -0
  563. package/lib/typescript/safeAreaView/index.d.ts.map +1 -0
  564. package/lib/typescript/scrollView/index.d.ts +8 -0
  565. package/lib/typescript/scrollView/index.d.ts.map +1 -0
  566. package/lib/typescript/searchBar/index.d.ts +70 -0
  567. package/lib/typescript/searchBar/index.d.ts.map +1 -0
  568. package/lib/typescript/seperator/index.d.ts +13 -0
  569. package/lib/typescript/seperator/index.d.ts.map +1 -0
  570. package/lib/typescript/services/index.d.ts +56 -0
  571. package/lib/typescript/services/index.d.ts.map +1 -0
  572. package/lib/typescript/shape/index.d.ts +11 -0
  573. package/lib/typescript/shape/index.d.ts.map +1 -0
  574. package/lib/typescript/skeleton/index.d.ts +63 -0
  575. package/lib/typescript/skeleton/index.d.ts.map +1 -0
  576. package/lib/typescript/slider/index.d.ts +60 -0
  577. package/lib/typescript/slider/index.d.ts.map +1 -0
  578. package/lib/typescript/spacer/index.d.ts +8 -0
  579. package/lib/typescript/spacer/index.d.ts.map +1 -0
  580. package/lib/typescript/stack/index.d.ts +24 -0
  581. package/lib/typescript/stack/index.d.ts.map +1 -0
  582. package/lib/typescript/switch/Switch.d.ts +6 -0
  583. package/lib/typescript/switch/Switch.d.ts.map +1 -0
  584. package/lib/typescript/switch/_index.d.ts +11 -0
  585. package/lib/typescript/switch/_index.d.ts.map +1 -0
  586. package/lib/typescript/switch/index.d.ts +62 -0
  587. package/lib/typescript/switch/index.d.ts.map +1 -0
  588. package/lib/typescript/switch/interface.d.ts +74 -0
  589. package/lib/typescript/switch/interface.d.ts.map +1 -0
  590. package/lib/typescript/tabBar/TabBar.d.ts +5 -0
  591. package/lib/typescript/tabBar/TabBar.d.ts.map +1 -0
  592. package/lib/typescript/tabBar/TabBarUsage.d.ts +6 -0
  593. package/lib/typescript/tabBar/TabBarUsage.d.ts.map +1 -0
  594. package/lib/typescript/tabBar/index.d.ts +52 -0
  595. package/lib/typescript/tabBar/index.d.ts.map +1 -0
  596. package/lib/typescript/tabBar/interface.d.ts +119 -0
  597. package/lib/typescript/tabBar/interface.d.ts.map +1 -0
  598. package/lib/typescript/text/index.d.ts +16 -0
  599. package/lib/typescript/text/index.d.ts.map +1 -0
  600. package/lib/typescript/timeline/index.d.ts +125 -0
  601. package/lib/typescript/timeline/index.d.ts.map +1 -0
  602. package/lib/typescript/toast/index.d.ts +28 -0
  603. package/lib/typescript/toast/index.d.ts.map +1 -0
  604. package/lib/typescript/toast/useToast.d.ts +31 -0
  605. package/lib/typescript/toast/useToast.d.ts.map +1 -0
  606. package/lib/typescript/utiles/createIcon.d.ts +39 -0
  607. package/lib/typescript/utiles/createIcon.d.ts.map +1 -0
  608. package/lib/typescript/utiles/fontStyles.d.ts +9 -0
  609. package/lib/typescript/utiles/fontStyles.d.ts.map +1 -0
  610. package/lib/typescript/utiles/position.d.ts +13 -0
  611. package/lib/typescript/utiles/position.d.ts.map +1 -0
  612. package/lib/typescript/utiles/statusBar.d.ts +128 -0
  613. package/lib/typescript/utiles/statusBar.d.ts.map +1 -0
  614. package/lib/typescript/utiles/styled.d.ts +14 -0
  615. package/lib/typescript/utiles/styled.d.ts.map +1 -0
  616. package/lib/typescript/utiles/styles.d.ts +31 -0
  617. package/lib/typescript/utiles/styles.d.ts.map +1 -0
  618. package/lib/typescript/utiles/theme.d.ts +918 -0
  619. package/lib/typescript/utiles/theme.d.ts.map +1 -0
  620. package/lib/typescript/utiles/validators.d.ts +14 -0
  621. package/lib/typescript/utiles/validators.d.ts.map +1 -0
  622. package/lib/typescript/utiles/viewStyleProps.d.ts +4 -0
  623. package/lib/typescript/utiles/viewStyleProps.d.ts.map +1 -0
  624. package/lib/typescript/utiles/viewStyleVariants.d.ts +121 -0
  625. package/lib/typescript/utiles/viewStyleVariants.d.ts.map +1 -0
  626. package/package.json +146 -52
  627. package/src/actionSheet/actionSheet.tsx +471 -0
  628. package/src/actionSheet/index.tsx +3 -0
  629. package/src/actionSheet/useActionSheet.tsx +140 -0
  630. package/src/badge/index.tsx +185 -0
  631. package/src/barChart/index.tsx +386 -0
  632. package/src/button/index.tsx +335 -0
  633. package/src/card/index.tsx +220 -0
  634. package/src/checkBox/index.tsx +137 -0
  635. package/src/chips/index.tsx +293 -0
  636. package/src/circularProgress/index.tsx +349 -0
  637. package/src/collapsible/Collapse.tsx +366 -0
  638. package/src/collapsible/CollapseGroup.tsx +161 -0
  639. package/src/collapsible/index.ts +48 -0
  640. package/src/collapsible/interface.ts +187 -0
  641. package/src/collapsible/style.ts +130 -0
  642. package/src/datePicker/index.tsx +961 -0
  643. package/src/dialog/dialogue.tsx +155 -0
  644. package/src/dialog/index.tsx +604 -0
  645. package/src/dialog/useDialogue.tsx +158 -0
  646. package/src/divider/index.tsx +45 -0
  647. package/src/drawer/Drawer.tsx +655 -0
  648. package/src/drawer/index.ts +60 -0
  649. package/src/drawer/interface.ts +391 -0
  650. package/src/dropdown/index.tsx +1081 -0
  651. package/src/emptyState/index.tsx +287 -0
  652. package/src/form/index.tsx +0 -0
  653. package/src/header/index.tsx +217 -0
  654. package/src/header/statusBar/index.tsx +11 -0
  655. package/src/icons/backArrow.tsx +17 -0
  656. package/src/icons/bellFill.tsx +19 -0
  657. package/src/icons/bellOutline.tsx +18 -0
  658. package/src/icons/checkmark.tsx +18 -0
  659. package/src/icons/delete.tsx +19 -0
  660. package/src/icons/downChevron.tsx +18 -0
  661. package/src/icons/error.tsx +17 -0
  662. package/src/icons/forwardArrow.tsx +19 -0
  663. package/src/icons/index.ts +15 -0
  664. package/src/icons/info.tsx +19 -0
  665. package/src/icons/leftChevron.tsx +18 -0
  666. package/src/icons/rightChevron.tsx +18 -0
  667. package/src/icons/save.tsx +18 -0
  668. package/src/icons/success.tsx +17 -0
  669. package/src/icons/upChevron.tsx +18 -0
  670. package/src/icons/warning.tsx +19 -0
  671. package/src/image/index.tsx +45 -0
  672. package/src/index.ts +72 -0
  673. package/src/input/index.tsx +668 -0
  674. package/src/loading/circular.tsx +141 -0
  675. package/src/loading/index.tsx +6 -0
  676. package/src/loading/loader.tsx +191 -0
  677. package/src/loading/spinner.tsx +126 -0
  678. package/src/loading/useLoader.tsx +78 -0
  679. package/src/loading/useLoaderBinding.tsx +38 -0
  680. package/src/notification/index.tsx +189 -0
  681. package/src/notification/useNotification.tsx +64 -0
  682. package/src/page/index.tsx +19 -0
  683. package/src/popup/Popup.tsx +398 -0
  684. package/src/popup/helpers.ts +123 -0
  685. package/src/popup/index.ts +45 -0
  686. package/src/popup/interface.ts +178 -0
  687. package/src/portal/GlobalPortalProvider.tsx +63 -0
  688. package/src/portal/PortalContext.ts +37 -0
  689. package/src/portal/PortalInstance.ts +118 -0
  690. package/src/portal/PortalManager.tsx +84 -0
  691. package/src/portal/PortalRenderer.tsx +72 -0
  692. package/src/portal/index.ts +60 -0
  693. package/src/portal/portal.test.ts +157 -0
  694. package/src/portal/types.ts +49 -0
  695. package/src/pressable/index.tsx +19 -0
  696. package/src/progressBar/index.tsx +564 -0
  697. package/src/radio/index.tsx +469 -0
  698. package/src/safeAreaProvider/index.ts +16 -0
  699. package/src/safeAreaView/index.tsx +17 -0
  700. package/src/scrollView/index.ts +15 -0
  701. package/src/searchBar/index.tsx +383 -0
  702. package/src/seperator/index.tsx +59 -0
  703. package/src/services/index.ts +149 -0
  704. package/src/shape/index.tsx +38 -0
  705. package/src/skeleton/index.tsx +350 -0
  706. package/src/slider/index.tsx +637 -0
  707. package/src/spacer/index.ts +29 -0
  708. package/src/stack/index.ts +58 -0
  709. package/src/switch/Switch.tsx +343 -0
  710. package/src/switch/_index.tsx +135 -0
  711. package/src/switch/index.ts +62 -0
  712. package/src/switch/interface.ts +120 -0
  713. package/src/tabBar/TabBar.tsx +503 -0
  714. package/src/tabBar/TabBarUsage.tsx +366 -0
  715. package/src/tabBar/index.ts +59 -0
  716. package/src/tabBar/interface.ts +196 -0
  717. package/src/text/index.ts +73 -0
  718. package/src/timeline/index.tsx +374 -0
  719. package/src/toast/index.tsx +172 -0
  720. package/src/toast/useToast.tsx +93 -0
  721. package/src/utiles/createIcon.ts +44 -0
  722. package/src/utiles/fontStyles.js +31 -0
  723. package/src/utiles/position.ts +100 -0
  724. package/src/utiles/statusBar.ts +410 -0
  725. package/src/utiles/styled.tsx +48 -0
  726. package/src/utiles/styles.ts +25 -0
  727. package/src/utiles/theme.ts +727 -0
  728. package/src/utiles/validators.ts +21 -0
  729. package/src/utiles/viewStyleProps.ts +41 -0
  730. package/src/utiles/viewStyleVariants.ts +411 -0
  731. package/lib/commonjs/assets/img/blank_1.png +0 -0
  732. package/lib/commonjs/assets/img/blank_2.png +0 -0
  733. package/lib/commonjs/assets/img/doctor.png +0 -0
  734. package/lib/commonjs/package/badge/index.js +0 -161
  735. package/lib/commonjs/package/badge/index.js.map +0 -1
  736. package/lib/commonjs/package/button/index.js +0 -99
  737. package/lib/commonjs/package/button/index.js.map +0 -1
  738. package/lib/commonjs/package/card/index.js +0 -46
  739. package/lib/commonjs/package/card/index.js.map +0 -1
  740. package/lib/commonjs/package/checkBox/index.js +0 -97
  741. package/lib/commonjs/package/checkBox/index.js.map +0 -1
  742. package/lib/commonjs/package/cycle/index.js +0 -43
  743. package/lib/commonjs/package/cycle/index.js.map +0 -1
  744. package/lib/commonjs/package/dialog/index.js +0 -216
  745. package/lib/commonjs/package/dialog/index.js.map +0 -1
  746. package/lib/commonjs/package/dropdown/index.js +0 -112
  747. package/lib/commonjs/package/dropdown/index.js.map +0 -1
  748. package/lib/commonjs/package/form/index.js +0 -190
  749. package/lib/commonjs/package/form/index.js.map +0 -1
  750. package/lib/commonjs/package/header/index.js +0 -99
  751. package/lib/commonjs/package/header/index.js.map +0 -1
  752. package/lib/commonjs/package/image/index.js +0 -326
  753. package/lib/commonjs/package/image/index.js.map +0 -1
  754. package/lib/commonjs/package/radioButton/index.js +0 -75
  755. package/lib/commonjs/package/radioButton/index.js.map +0 -1
  756. package/lib/commonjs/package/safeAreaView/index.js +0 -26
  757. package/lib/commonjs/package/safeAreaView/index.js.map +0 -1
  758. package/lib/commonjs/package/scrollView/index.js +0 -23
  759. package/lib/commonjs/package/scrollView/index.js.map +0 -1
  760. package/lib/commonjs/package/separator/index.js +0 -33
  761. package/lib/commonjs/package/separator/index.js.map +0 -1
  762. package/lib/commonjs/package/spacer/index.js +0 -18
  763. package/lib/commonjs/package/spacer/index.js.map +0 -1
  764. package/lib/commonjs/package/spinner/index.js +0 -43
  765. package/lib/commonjs/package/spinner/index.js.map +0 -1
  766. package/lib/commonjs/package/stack/__test__/index.test.js +0 -91
  767. package/lib/commonjs/package/stack/__test__/index.test.js.map +0 -1
  768. package/lib/commonjs/package/stack/index.js +0 -54
  769. package/lib/commonjs/package/stack/index.js.map +0 -1
  770. package/lib/commonjs/package/styled/__test__/index.test.js +0 -161
  771. package/lib/commonjs/package/styled/__test__/index.test.js.map +0 -1
  772. package/lib/commonjs/package/styled/index.js +0 -42
  773. package/lib/commonjs/package/styled/index.js.map +0 -1
  774. package/lib/commonjs/package/switch/index.js +0 -43
  775. package/lib/commonjs/package/switch/index.js.map +0 -1
  776. package/lib/commonjs/package/text/index.js +0 -81
  777. package/lib/commonjs/package/text/index.js.map +0 -1
  778. package/lib/commonjs/package/theme.js +0 -385
  779. package/lib/commonjs/package/theme.js.map +0 -1
  780. package/lib/commonjs/package/utils/index.js +0 -130
  781. package/lib/commonjs/package/utils/index.js.map +0 -1
  782. package/lib/commonjs/package/utils/statusBar.js +0 -70
  783. package/lib/commonjs/package/utils/statusBar.js.map +0 -1
  784. package/lib/commonjs/package/utils/validator.js +0 -40
  785. package/lib/commonjs/package/utils/validator.js.map +0 -1
  786. package/lib/commonjs/styled.code-workspace +0 -9
  787. package/lib/module/assets/img/blank_1.png +0 -0
  788. package/lib/module/assets/img/blank_2.png +0 -0
  789. package/lib/module/assets/img/doctor.png +0 -0
  790. package/lib/module/package/badge/index.js +0 -153
  791. package/lib/module/package/badge/index.js.map +0 -1
  792. package/lib/module/package/button/index.js +0 -92
  793. package/lib/module/package/button/index.js.map +0 -1
  794. package/lib/module/package/card/index.js +0 -39
  795. package/lib/module/package/card/index.js.map +0 -1
  796. package/lib/module/package/checkBox/index.js +0 -88
  797. package/lib/module/package/checkBox/index.js.map +0 -1
  798. package/lib/module/package/cycle/index.js +0 -36
  799. package/lib/module/package/cycle/index.js.map +0 -1
  800. package/lib/module/package/dialog/index.js +0 -206
  801. package/lib/module/package/dialog/index.js.map +0 -1
  802. package/lib/module/package/dropdown/index.js +0 -102
  803. package/lib/module/package/dropdown/index.js.map +0 -1
  804. package/lib/module/package/form/index.js +0 -182
  805. package/lib/module/package/form/index.js.map +0 -1
  806. package/lib/module/package/header/index.js +0 -93
  807. package/lib/module/package/header/index.js.map +0 -1
  808. package/lib/module/package/image/index.js +0 -315
  809. package/lib/module/package/image/index.js.map +0 -1
  810. package/lib/module/package/radioButton/index.js +0 -66
  811. package/lib/module/package/radioButton/index.js.map +0 -1
  812. package/lib/module/package/safeAreaView/index.js +0 -21
  813. package/lib/module/package/safeAreaView/index.js.map +0 -1
  814. package/lib/module/package/scrollView/index.js +0 -18
  815. package/lib/module/package/scrollView/index.js.map +0 -1
  816. package/lib/module/package/separator/index.js +0 -26
  817. package/lib/module/package/separator/index.js.map +0 -1
  818. package/lib/module/package/spacer/index.js +0 -11
  819. package/lib/module/package/spacer/index.js.map +0 -1
  820. package/lib/module/package/spinner/index.js +0 -36
  821. package/lib/module/package/spinner/index.js.map +0 -1
  822. package/lib/module/package/stack/__test__/index.test.js +0 -89
  823. package/lib/module/package/stack/__test__/index.test.js.map +0 -1
  824. package/lib/module/package/stack/index.js +0 -49
  825. package/lib/module/package/stack/index.js.map +0 -1
  826. package/lib/module/package/styled/__test__/index.test.js +0 -158
  827. package/lib/module/package/styled/__test__/index.test.js.map +0 -1
  828. package/lib/module/package/styled/index.js +0 -35
  829. package/lib/module/package/styled/index.js.map +0 -1
  830. package/lib/module/package/switch/index.js +0 -36
  831. package/lib/module/package/switch/index.js.map +0 -1
  832. package/lib/module/package/text/index.js +0 -76
  833. package/lib/module/package/text/index.js.map +0 -1
  834. package/lib/module/package/theme.js.map +0 -1
  835. package/lib/module/package/utils/index.js +0 -120
  836. package/lib/module/package/utils/index.js.map +0 -1
  837. package/lib/module/package/utils/statusBar.js +0 -57
  838. package/lib/module/package/utils/statusBar.js.map +0 -1
  839. package/lib/module/package/utils/validator.js +0 -34
  840. package/lib/module/package/utils/validator.js.map +0 -1
  841. package/lib/module/styled.code-workspace +0 -9
  842. package/src/assets/img/blank_1.png +0 -0
  843. package/src/assets/img/blank_2.png +0 -0
  844. package/src/assets/img/doctor.png +0 -0
  845. package/src/index.js +0 -24
  846. package/src/package/badge/index.jsx +0 -135
  847. package/src/package/button/index.jsx +0 -83
  848. package/src/package/card/index.jsx +0 -52
  849. package/src/package/checkBox/index.jsx +0 -102
  850. package/src/package/cycle/index.jsx +0 -49
  851. package/src/package/dialog/index.jsx +0 -263
  852. package/src/package/dropdown/index.jsx +0 -101
  853. package/src/package/form/index.jsx +0 -144
  854. package/src/package/header/index.jsx +0 -96
  855. package/src/package/image/index.jsx +0 -300
  856. package/src/package/radioButton/index.jsx +0 -74
  857. package/src/package/safeAreaView/index.jsx +0 -20
  858. package/src/package/scrollView/index.jsx +0 -17
  859. package/src/package/separator/index.jsx +0 -27
  860. package/src/package/spacer/index.jsx +0 -13
  861. package/src/package/spinner/index.jsx +0 -33
  862. package/src/package/stack/__test__/index.test.js +0 -68
  863. package/src/package/stack/index.jsx +0 -50
  864. package/src/package/styled/__test__/index.test.js +0 -132
  865. package/src/package/styled/index.js +0 -32
  866. package/src/package/switch/index.jsx +0 -33
  867. package/src/package/text/index.jsx +0 -67
  868. package/src/package/theme.js +0 -377
  869. package/src/package/utils/index.js +0 -109
  870. package/src/package/utils/statusBar.js +0 -65
  871. package/src/package/utils/validator.js +0 -38
  872. package/src/styled.code-workspace +0 -9
@@ -1,206 +0,0 @@
1
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
- import React, { useState } from 'react';
3
- import { Modal } from 'react-native';
4
- import { XStack, YStack } from '../stack';
5
- import { StyledText } from '../text';
6
- import { StyledButton } from '../button';
7
- import { StyledSpacer } from '../spacer';
8
- import { styled } from '../styled';
9
- import { theme } from '../theme';
10
- const Dialog = styled(Modal, {
11
- base: {
12
- backgroundColor: theme.colors.gray[100],
13
- padding: 20,
14
- borderRadius: 10
15
- }
16
- });
17
- const StyledDialog = ({
18
- children,
19
- animationType = 'fade',
20
- transparent = true,
21
- visible = false,
22
- ...rest
23
- }) => {
24
- return /*#__PURE__*/React.createElement(Dialog, _extends({
25
- visible: visible,
26
- transparent: transparent,
27
- animationType: animationType
28
- }, rest), children);
29
- };
30
- const StyledConfirmDialog = ({
31
- visible = false,
32
- row,
33
- animationType = 'fade',
34
- onCancel,
35
- onConfirm,
36
- transparent = true,
37
- dialogProps,
38
- ...rest
39
- }) => {
40
- const [show, setShow] = useState(visible);
41
- const {
42
- title,
43
- description,
44
- cancel = 'Cancel',
45
- onNeural,
46
- confirm = 'Confirm',
47
- neutral = 'Neutral',
48
- isNeutral = false
49
- } = rest;
50
- const handleConfirm = () => {
51
- setShow(false);
52
- if (typeof onConfirm === 'function') {
53
- if (typeof row === 'object' && row !== null) {
54
- onConfirm(row);
55
- } else {
56
- onConfirm();
57
- }
58
- }
59
- };
60
- const handleCancel = () => {
61
- setShow(false);
62
- if (typeof onCancel === 'function') {
63
- onCancel();
64
- }
65
- };
66
- const handleNeural = () => {
67
- setShow(false);
68
- if (typeof onNeural === 'function') {
69
- onNeural();
70
- }
71
- };
72
- return /*#__PURE__*/React.createElement(Dialog, _extends({
73
- visible: show,
74
- transparent: transparent,
75
- animationType: animationType
76
- }, rest), /*#__PURE__*/React.createElement(YStack, _extends({
77
- transparent: true,
78
- flex: 1,
79
- justifyContent: "center",
80
- alignItems: "center"
81
- }, dialogProps), /*#__PURE__*/React.createElement(YStack, {
82
- width: '90%',
83
- borderRadius: 8,
84
- paddingVertical: 16,
85
- paddingHorizontal: 16,
86
- backgroundColor: theme.colors.gray[1]
87
- }, /*#__PURE__*/React.createElement(StyledText, {
88
- color: theme.colors.gray[800],
89
- fontSize: theme.fontSize.normal,
90
- fontWeight: theme.fontWeight.bold
91
- }, title), /*#__PURE__*/React.createElement(StyledSpacer, {
92
- marginVertical: 1
93
- }), /*#__PURE__*/React.createElement(StyledText, {
94
- color: theme.colors.gray[800],
95
- fontSize: theme.fontSize.large,
96
- fontWeight: theme.fontWeight.normal
97
- }, description), /*#__PURE__*/React.createElement(StyledSpacer, {
98
- marginVertical: 4
99
- }), /*#__PURE__*/React.createElement(XStack, {
100
- justifyContent: "flex-end",
101
- alignItems: "center"
102
- }, /*#__PURE__*/React.createElement(StyledButton, {
103
- backgroundColor: theme.colors.red[400],
104
- borderColor: theme.colors.red[400],
105
- borderRadius: 30,
106
- onPress: () => handleCancel()
107
- }, /*#__PURE__*/React.createElement(StyledText, {
108
- paddingHorizontal: 20,
109
- paddingVertical: 4,
110
- color: theme.colors.gray[1],
111
- fontSize: theme.fontSize.normal,
112
- fontWeight: theme.fontWeight.normal
113
- }, cancel)), /*#__PURE__*/React.createElement(StyledSpacer, {
114
- marginHorizontal: 2
115
- }), onNeural && isNeutral && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledButton, {
116
- backgroundColor: theme.colors.orange[400],
117
- borderColor: theme.colors.orange[400],
118
- borderRadius: 30,
119
- onPress: () => handleNeural()
120
- }, /*#__PURE__*/React.createElement(StyledText, {
121
- paddingHorizontal: 20,
122
- paddingVertical: 4,
123
- color: theme.colors.gray[1],
124
- fontSize: theme.fontSize.normal,
125
- fontWeight: theme.fontWeight.normal
126
- }, neutral)), /*#__PURE__*/React.createElement(StyledSpacer, {
127
- marginHorizontal: 2
128
- })), /*#__PURE__*/React.createElement(StyledButton, {
129
- backgroundColor: theme.colors.green[500],
130
- borderColor: theme.colors.green[500],
131
- onPress: () => handleConfirm(),
132
- borderRadius: 30
133
- }, /*#__PURE__*/React.createElement(StyledText, {
134
- paddingHorizontal: 20,
135
- paddingVertical: 4,
136
- color: theme.colors.gray[1],
137
- fontSize: theme.fontSize.normal,
138
- fontWeight: theme.fontWeight.normal
139
- }, confirm))))));
140
- };
141
- const StyledOkDialog = ({
142
- visible = false,
143
- animationType = 'fade',
144
- transparent = true,
145
- dialogProps,
146
- ...rest
147
- }) => {
148
- const [show, setShow] = useState(visible);
149
- const {
150
- title = "We're sorry, something went wrong.",
151
- description = 'Please try again later',
152
- ok = 'Ok',
153
- onOk
154
- } = rest;
155
- const handleOk = () => {
156
- setShow(false);
157
- if (typeof onOk === 'function') {
158
- onOk();
159
- }
160
- };
161
- return /*#__PURE__*/React.createElement(Dialog, _extends({
162
- visible: show,
163
- transparent: transparent,
164
- animationType: animationType
165
- }, rest), /*#__PURE__*/React.createElement(YStack, _extends({
166
- transparent: true,
167
- flex: 1,
168
- justifyContent: "center",
169
- alignItems: "center"
170
- }, dialogProps), /*#__PURE__*/React.createElement(YStack, {
171
- width: '90%',
172
- borderRadius: 8,
173
- paddingVertical: 16,
174
- paddingHorizontal: 16,
175
- backgroundColor: theme.colors.gray[1]
176
- }, /*#__PURE__*/React.createElement(StyledText, {
177
- color: theme.colors.gray[800],
178
- fontSize: theme.fontSize.normal,
179
- fontWeight: theme.fontWeight.bold
180
- }, title), /*#__PURE__*/React.createElement(StyledSpacer, {
181
- marginVertical: 2
182
- }), /*#__PURE__*/React.createElement(StyledText, {
183
- color: theme.colors.gray[800],
184
- fontSize: theme.fontSize.normal,
185
- fontWeight: theme.fontWeight.normal
186
- }, description), /*#__PURE__*/React.createElement(StyledSpacer, {
187
- marginVertical: 8
188
- }), /*#__PURE__*/React.createElement(XStack, {
189
- justifyContent: "flex-end",
190
- alignItems: "center"
191
- }, /*#__PURE__*/React.createElement(StyledButton, {
192
- flex: 1,
193
- backgroundColor: theme.colors.cyan[500],
194
- borderColor: theme.colors.cyan[500],
195
- onPress: handleOk,
196
- borderRadius: 30
197
- }, /*#__PURE__*/React.createElement(StyledText, {
198
- paddingHorizontal: 20,
199
- paddingVertical: 8,
200
- color: theme.colors.gray[1],
201
- fontSize: theme.fontSize.large,
202
- fontWeight: theme.fontWeight.bold
203
- }, ok))))));
204
- };
205
- export { StyledDialog, StyledConfirmDialog, StyledOkDialog };
206
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useState","Modal","XStack","YStack","StyledText","StyledButton","StyledSpacer","styled","theme","Dialog","base","backgroundColor","colors","gray","padding","borderRadius","StyledDialog","children","animationType","transparent","visible","rest","createElement","_extends","StyledConfirmDialog","row","onCancel","onConfirm","dialogProps","show","setShow","title","description","cancel","onNeural","confirm","neutral","isNeutral","handleConfirm","handleCancel","handleNeural","flex","justifyContent","alignItems","width","paddingVertical","paddingHorizontal","color","fontSize","normal","fontWeight","bold","marginVertical","large","red","borderColor","onPress","marginHorizontal","Fragment","orange","green","StyledOkDialog","ok","onOk","handleOk","cyan"],"sources":["index.jsx"],"sourcesContent":["import React, { useState } from 'react'\r\nimport { Modal } from 'react-native'\r\nimport { XStack, YStack } from '../stack'\r\nimport { StyledText } from '../text'\r\nimport { StyledButton } from '../button'\r\nimport { StyledSpacer } from '../spacer'\r\nimport { styled } from '../styled'\r\nimport { theme } from '../theme'\r\n\r\nconst Dialog = styled(Modal, {\r\n base: {\r\n backgroundColor: theme.colors.gray[100],\r\n padding: 20,\r\n borderRadius: 10\r\n }\r\n})\r\n\r\nconst StyledDialog = ({\r\n children,\r\n animationType = 'fade',\r\n transparent = true,\r\n visible = false,\r\n ...rest\r\n}) => {\r\n return (\r\n <Dialog\r\n visible={visible}\r\n transparent={transparent}\r\n animationType={animationType}\r\n {...rest}\r\n >\r\n {children}\r\n </Dialog>\r\n )\r\n}\r\n\r\nconst StyledConfirmDialog = ({\r\n visible = false,\r\n row,\r\n animationType = 'fade',\r\n onCancel,\r\n onConfirm,\r\n transparent = true,\r\n dialogProps,\r\n ...rest\r\n}) => {\r\n const [show, setShow] = useState(visible)\r\n const {\r\n title,\r\n description,\r\n cancel = 'Cancel',\r\n onNeural,\r\n confirm = 'Confirm',\r\n neutral = 'Neutral',\r\n isNeutral= false\r\n } = rest\r\n\r\n const handleConfirm = () => {\r\n setShow(false)\r\n if (typeof onConfirm === 'function') {\r\n if (typeof row === 'object' && row !== null) {\r\n onConfirm(row)\r\n } else {\r\n onConfirm()\r\n }\r\n }\r\n }\r\n const handleCancel = () => {\r\n setShow(false)\r\n if (typeof onCancel === 'function') {\r\n onCancel()\r\n }\r\n }\r\n\r\n const handleNeural = () => {\r\n setShow(false)\r\n if (typeof onNeural === 'function') {\r\n onNeural()\r\n }\r\n }\r\n return (\r\n <Dialog\r\n visible={show}\r\n transparent={transparent}\r\n animationType={animationType}\r\n {...rest}\r\n >\r\n <YStack\r\n transparent\r\n flex={1}\r\n justifyContent='center'\r\n alignItems='center'\r\n {...dialogProps}\r\n >\r\n <YStack\r\n width={'90%'}\r\n borderRadius={8}\r\n paddingVertical={16}\r\n paddingHorizontal={16}\r\n backgroundColor={theme.colors.gray[1]}\r\n >\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.bold}\r\n >\r\n {title}\r\n </StyledText>\r\n <StyledSpacer marginVertical={1} />\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.large}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {description}\r\n </StyledText>\r\n <StyledSpacer marginVertical={4} />\r\n <XStack justifyContent='flex-end' alignItems='center'>\r\n <StyledButton\r\n backgroundColor={theme.colors.red[400]}\r\n borderColor={theme.colors.red[400]}\r\n borderRadius={30}\r\n onPress={() => handleCancel()}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={4}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {cancel}\r\n </StyledText>\r\n </StyledButton>\r\n <StyledSpacer marginHorizontal={2} />\r\n {(onNeural && isNeutral) && (\r\n <>\r\n <StyledButton\r\n backgroundColor={theme.colors.orange[400]}\r\n borderColor={theme.colors.orange[400]}\r\n borderRadius={30}\r\n onPress={() => handleNeural()}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={4}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {neutral}\r\n </StyledText>\r\n </StyledButton>\r\n <StyledSpacer marginHorizontal={2} />\r\n </>\r\n )}\r\n <StyledButton\r\n backgroundColor={theme.colors.green[500]}\r\n borderColor={theme.colors.green[500]}\r\n onPress={() => handleConfirm()}\r\n borderRadius={30}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={4}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {confirm}\r\n </StyledText>\r\n </StyledButton>\r\n </XStack>\r\n </YStack>\r\n </YStack>\r\n </Dialog>\r\n )\r\n}\r\n\r\nconst StyledOkDialog = ({\r\n visible = false,\r\n animationType = 'fade',\r\n transparent = true,\r\n dialogProps,\r\n ...rest\r\n}) => {\r\n const [show, setShow] = useState(visible)\r\n const {\r\n title = \"We're sorry, something went wrong.\",\r\n description = 'Please try again later',\r\n ok = 'Ok',\r\n onOk\r\n } = rest\r\n\r\n const handleOk = () => {\r\n setShow(false)\r\n if (typeof onOk === 'function') {\r\n onOk()\r\n }\r\n }\r\n return (\r\n <Dialog\r\n visible={show}\r\n transparent={transparent}\r\n animationType={animationType}\r\n {...rest}\r\n >\r\n <YStack\r\n transparent\r\n flex={1}\r\n justifyContent='center'\r\n alignItems='center'\r\n {...dialogProps}\r\n >\r\n <YStack\r\n width={'90%'}\r\n borderRadius={8}\r\n paddingVertical={16}\r\n paddingHorizontal={16}\r\n backgroundColor={theme.colors.gray[1]}\r\n >\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.bold}\r\n >\r\n {title}\r\n </StyledText>\r\n <StyledSpacer marginVertical={2} />\r\n <StyledText\r\n color={theme.colors.gray[800]}\r\n fontSize={theme.fontSize.normal}\r\n fontWeight={theme.fontWeight.normal}\r\n >\r\n {description}\r\n </StyledText>\r\n <StyledSpacer marginVertical={8} />\r\n <XStack justifyContent='flex-end' alignItems='center'>\r\n <StyledButton\r\n flex={1}\r\n backgroundColor={theme.colors.cyan[500]}\r\n borderColor={theme.colors.cyan[500]}\r\n onPress={handleOk}\r\n borderRadius={30}\r\n >\r\n <StyledText\r\n paddingHorizontal={20}\r\n paddingVertical={8}\r\n color={theme.colors.gray[1]}\r\n fontSize={theme.fontSize.large}\r\n fontWeight={theme.fontWeight.bold}\r\n >\r\n {ok}\r\n </StyledText>\r\n </StyledButton>\r\n </XStack>\r\n </YStack>\r\n </YStack>\r\n </Dialog>\r\n )\r\n}\r\n\r\nexport { StyledDialog, StyledConfirmDialog, StyledOkDialog }\r\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,KAAK,QAAQ,cAAc;AACpC,SAASC,MAAM,EAAEC,MAAM,QAAQ,UAAU;AACzC,SAASC,UAAU,QAAQ,SAAS;AACpC,SAASC,YAAY,QAAQ,WAAW;AACxC,SAASC,YAAY,QAAQ,WAAW;AACxC,SAASC,MAAM,QAAQ,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,CAAChB,YAAY;IAAC8C,cAAc,EAAE;EAAE,CAAE,CAAC,eACnCrD,KAAA,CAAAuB,aAAA,CAAClB,UAAU;IACT2C,KAAK,EAAEvC,KAAK,CAACI,MAAM,CAACC,IAAI,CAAC,GAAG,CAAE;IAC9BmC,QAAQ,EAAExC,KAAK,CAACwC,QAAQ,CAACC,MAAO;IAChCC,UAAU,EAAE1C,KAAK,CAAC0C,UAAU,CAACD;EAAO,GAEnCjB,WACS,CAAC,eACbjC,KAAA,CAAAuB,aAAA,CAAChB,YAAY;IAAC8C,cAAc,EAAE;EAAE,CAAE,CAAC,eACnCrD,KAAA,CAAAuB,aAAA,CAACpB,MAAM;IAACwC,cAAc,EAAC,UAAU;IAACC,UAAU,EAAC;EAAQ,gBACnD5C,KAAA,CAAAuB,aAAA,CAACjB,YAAY;IACXoC,IAAI,EAAE,CAAE;IACR9B,eAAe,EAAEH,KAAK,CAACI,MAAM,CAACqD,IAAI,CAAC,GAAG,CAAE;IACxCV,WAAW,EAAE/C,KAAK,CAACI,MAAM,CAACqD,IAAI,CAAC,GAAG,CAAE;IACpCT,OAAO,EAAEQ,QAAS;IAClBjD,YAAY,EAAE;EAAG,gBAEjBhB,KAAA,CAAAuB,aAAA,CAAClB,UAAU;IACT0C,iBAAiB,EAAE,EAAG;IACtBD,eAAe,EAAE,CAAE;IACnBE,KAAK,EAAEvC,KAAK,CAACI,MAAM,CAACC,IAAI,CAAC,CAAC,CAAE;IAC5BmC,QAAQ,EAAExC,KAAK,CAACwC,QAAQ,CAACK,KAAM;IAC/BH,UAAU,EAAE1C,KAAK,CAAC0C,UAAU,CAACC;EAAK,GAEjCW,EACS,CACA,CACR,CACF,CACF,CACF,CAAC;AAEb,CAAC;AAED,SAAS9C,YAAY,EAAEQ,mBAAmB,EAAEqC,cAAc","ignoreList":[]}
@@ -1,102 +0,0 @@
1
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
- import React, { useState, useEffect } from "react";
3
- import { YStack } from '../stack';
4
- import { StyledText } from '../text';
5
- import { StyledSpacer } from '../spacer';
6
- import DropDownPicker from "react-native-dropdown-picker";
7
- import { theme } from "../theme";
8
- import { styled } from "../styled";
9
- const Dropdown = styled(DropDownPicker, {
10
- base: {
11
- borderColor: theme.colors.gray[800],
12
- borderWidth: 1,
13
- borderRadius: 30,
14
- backgroundColor: theme.colors.gray[1],
15
- width: '100%',
16
- color: theme.colors.gray[800],
17
- paddingHorizontal: 16
18
- },
19
- variants: {
20
- error: {
21
- true: {
22
- borderColor: theme.colors.pink[500],
23
- borderWidth: 1
24
- },
25
- false: {
26
- borderColor: theme.colors.gray[800]
27
- }
28
- }
29
- }
30
- });
31
- const StyledDropdown = ({
32
- items,
33
- label,
34
- errorMessage,
35
- error,
36
- labelStyles,
37
- ...rest
38
- }) => {
39
- const [open, setOpen] = useState(false);
40
- return /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledText, _extends({
41
- paddingHorizontal: 8,
42
- color: theme.colors.gray[600],
43
- fontSize: theme.fontSize.normal,
44
- fontWeight: theme.fontWeight.normal
45
- }, labelStyles), label), /*#__PURE__*/React.createElement(StyledSpacer, {
46
- marginVertical: 4
47
- })), /*#__PURE__*/React.createElement(Dropdown, _extends({
48
- open: open,
49
- setOpen: setOpen,
50
- items: items
51
- }, rest)), error && errorMessage && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledSpacer, {
52
- marginVertical: 1
53
- }), /*#__PURE__*/React.createElement(StyledText, {
54
- marginHorizontal: 16,
55
- fontWeight: theme.fontWeight.bold,
56
- fontSize: theme.fontSize.small,
57
- color: theme.colors.pink[500]
58
- }, errorMessage)));
59
- };
60
- const StyledMultiDropdown = ({
61
- items,
62
- label,
63
- errorMessage,
64
- labelStyles,
65
- onSelected,
66
- ...rest
67
- }) => {
68
- const [selected, setSelected] = useState([]);
69
- const [open, setOpen] = useState(false);
70
- useEffect(() => {
71
- onSelected && onSelected(selected);
72
- }, [selected]);
73
- return /*#__PURE__*/React.createElement(YStack, {
74
- justifyContent: "flex-start",
75
- alignItems: "flex-start"
76
- }, label && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledSpacer, {
77
- marginVertical: 4
78
- }), /*#__PURE__*/React.createElement(StyledText, _extends({
79
- paddingHorizontal: 8,
80
- color: theme.colors.gray[600],
81
- fontSize: theme.fontSize.normal,
82
- fontWeight: theme.fontWeight.normal
83
- }, labelStyles), label), /*#__PURE__*/React.createElement(StyledSpacer, {
84
- marginVertical: 4
85
- })), /*#__PURE__*/React.createElement(Dropdown, _extends({
86
- open: open,
87
- setOpen: setOpen,
88
- items: items,
89
- setValue: setSelected,
90
- value: selected,
91
- multiple: true
92
- }, rest)), errorMessage && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledSpacer, {
93
- marginVertical: 1
94
- }), /*#__PURE__*/React.createElement(StyledText, {
95
- marginHorizontal: 8,
96
- fontWeight: theme.fontWeight.bold,
97
- fontSize: theme.fontSize.small,
98
- color: theme.colors.pink[500]
99
- }, errorMessage)));
100
- };
101
- export { StyledDropdown, StyledMultiDropdown };
102
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useState","useEffect","YStack","StyledText","StyledSpacer","DropDownPicker","theme","styled","Dropdown","base","borderColor","colors","gray","borderWidth","borderRadius","backgroundColor","width","color","paddingHorizontal","variants","error","true","pink","false","StyledDropdown","items","label","errorMessage","labelStyles","rest","open","setOpen","createElement","Fragment","_extends","fontSize","normal","fontWeight","marginVertical","marginHorizontal","bold","small","StyledMultiDropdown","onSelected","selected","setSelected","justifyContent","alignItems","setValue","value","multiple"],"sources":["index.jsx"],"sourcesContent":["import React, { useState, useEffect } from \"react\";\r\nimport { YStack } from '../stack';\r\nimport { StyledText } from '../text';\r\nimport { StyledSpacer } from '../spacer';\r\nimport DropDownPicker from \"react-native-dropdown-picker\";\r\nimport { theme } from \"../theme\";\r\nimport { styled } from \"../styled\";\r\n\r\nconst Dropdown = styled(DropDownPicker, {\r\n base: {\r\n borderColor: theme.colors.gray[800],\r\n borderWidth: 1,\r\n borderRadius: 30,\r\n backgroundColor: theme.colors.gray[1],\r\n width: '100%',\r\n color: theme.colors.gray[800],\r\n paddingHorizontal: 16,\r\n },\r\n variants: {\r\n error: {\r\n true: {\r\n borderColor: theme.colors.pink[500],\r\n borderWidth: 1,\r\n },\r\n false: {\r\n borderColor: theme.colors.gray[800],\r\n }\r\n },\r\n }\r\n})\r\n\r\nconst StyledDropdown = ({ items, label, errorMessage, error, labelStyles, ...rest }) => {\r\n const [open, setOpen] = useState(false)\r\n return (\r\n <>\r\n {\r\n label && (\r\n <> \r\n <StyledText paddingHorizontal={8} color={theme.colors.gray[600]} fontSize={theme.fontSize.normal} fontWeight={theme.fontWeight.normal} {...labelStyles}>\r\n {label}\r\n </StyledText>\r\n <StyledSpacer marginVertical={4} />\r\n </>\r\n\r\n )\r\n }\r\n <Dropdown open={open} setOpen={setOpen} items={items} {...rest} />\r\n {\r\n (error && errorMessage) && (\r\n <>\r\n <StyledSpacer marginVertical={1} />\r\n <StyledText marginHorizontal={16} fontWeight={theme.fontWeight.bold} fontSize={theme.fontSize.small} color={theme.colors.pink[500]}>\r\n {errorMessage}\r\n </StyledText>\r\n </>\r\n )\r\n }\r\n\r\n </>\r\n )\r\n}\r\n\r\nconst StyledMultiDropdown = ({ items, label, errorMessage, labelStyles, onSelected, ...rest }) => {\r\n const [selected, setSelected] = useState([])\r\n const [open, setOpen] = useState(false)\r\n\r\n useEffect(() => {\r\n onSelected && onSelected(selected)\r\n }, [selected])\r\n\r\n return (\r\n <YStack justifyContent='flex-start' alignItems='flex-start'>\r\n {\r\n label && (\r\n <>\r\n <StyledSpacer marginVertical={4} />\r\n <StyledText paddingHorizontal={8} color={theme.colors.gray[600]} fontSize={theme.fontSize.normal} fontWeight={theme.fontWeight.normal} {...labelStyles}>\r\n {label}\r\n </StyledText>\r\n <StyledSpacer marginVertical={4} />\r\n </>\r\n\r\n )\r\n }\r\n <Dropdown open={open} setOpen={setOpen} items={items} setValue={setSelected} value={selected} multiple {...rest} />\r\n {\r\n errorMessage && (\r\n <>\r\n <StyledSpacer marginVertical={1} />\r\n <StyledText marginHorizontal={8} fontWeight={theme.fontWeight.bold} fontSize={theme.fontSize.small} color={theme.colors.pink[500]}>\r\n {errorMessage}\r\n </StyledText>\r\n </>\r\n )\r\n }\r\n\r\n </YStack>\r\n )\r\n}\r\n\r\nexport { StyledDropdown, StyledMultiDropdown }"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAClD,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,UAAU,QAAQ,SAAS;AACpC,SAASC,YAAY,QAAQ,WAAW;AACxC,OAAOC,cAAc,MAAM,8BAA8B;AACzD,SAASC,KAAK,QAAQ,UAAU;AAChC,SAASC,MAAM,QAAQ,WAAW;AAElC,MAAMC,QAAQ,GAAGD,MAAM,CAACF,cAAc,EAAE;EACpCI,IAAI,EAAE;IACFC,WAAW,EAAEJ,KAAK,CAACK,MAAM,CAACC,IAAI,CAAC,GAAG,CAAC;IACnCC,WAAW,EAAE,CAAC;IACdC,YAAY,EAAE,EAAE;IAChBC,eAAe,EAAET,KAAK,CAACK,MAAM,CAACC,IAAI,CAAC,CAAC,CAAC;IACrCI,KAAK,EAAE,MAAM;IACbC,KAAK,EAAEX,KAAK,CAACK,MAAM,CAACC,IAAI,CAAC,GAAG,CAAC;IAC7BM,iBAAiB,EAAE;EACvB,CAAC;EACDC,QAAQ,EAAE;IACNC,KAAK,EAAE;MACHC,IAAI,EAAE;QACFX,WAAW,EAAEJ,KAAK,CAACK,MAAM,CAACW,IAAI,C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B,KAAA,CAAAiC,aAAA,CAAC5B,YAAY;IAACkC,cAAc,EAAE;EAAE,CAAE,CACpC,CAEL,eAELvC,KAAA,CAAAiC,aAAA,CAACxB,QAAQ,EAAA0B,QAAA;IAACJ,IAAI,EAAEA,IAAK;IAACC,OAAO,EAAEA,OAAQ;IAACN,KAAK,EAAEA,KAAM;IAACuB,QAAQ,EAAEH,WAAY;IAACI,KAAK,EAAEL,QAAS;IAACM,QAAQ;EAAA,GAAKrB,IAAI,CAAG,CAAC,EAE/GF,YAAY,iBACR5B,KAAA,CAAAiC,aAAA,CAAAjC,KAAA,CAAAkC,QAAA,qBACIlC,KAAA,CAAAiC,aAAA,CAAC5B,YAAY;IAACkC,cAAc,EAAE;EAAE,CAAE,CAAC,eACnCvC,KAAA,CAAAiC,aAAA,CAAC7B,UAAU;IAACoC,gBAAgB,EAAE,CAAE;IAACF,UAAU,EAAE/B,KAAK,CAAC+B,UAAU,CAACG,IAAK;IAACL,QAAQ,EAAE7B,KAAK,CAAC6B,QAAQ,CAACM,KAAM;IAACxB,KAAK,EAAEX,KAAK,CAACK,MAAM,CAACW,IAAI,CAAC,GAAG;EAAE,GAC7HK,YACO,CACd,CAIN,CAAC;AAEjB,CAAC;AAED,SAASH,cAAc,EAAEkB,mBAAmB","ignoreList":[]}
@@ -1,182 +0,0 @@
1
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
- import React, { forwardRef } from 'react';
3
- import { TextInput } from 'react-native';
4
- import { YStack } from '../stack';
5
- import { StyledText } from '../text';
6
- import { StyledSpacer } from '../spacer';
7
- import { theme } from '../theme';
8
- import { styled } from '../styled';
9
- import { isValidColor, isValidNumber, isValidString } from '../utils';
10
- const StyledInputText = styled(TextInput, {
11
- base: {
12
- borderColor: theme.colors.gray[800],
13
- borderWidth: 1,
14
- borderRadius: 30,
15
- backgroundColor: theme.fontWeight.normal[1],
16
- width: '100%',
17
- color: theme.colors.gray[800],
18
- paddingHorizontal: 16,
19
- paddingVertical: 8,
20
- fontSize: theme.fontSize.normal,
21
- placeholderTextColor: theme.colors.gray[1]
22
- },
23
- variants: {
24
- fontWeight: (size = theme.fontWeight.normal) => {
25
- if (!isValidString(size)) {
26
- throw new Error('Invalid fontWeight value');
27
- }
28
- return {
29
- fontWeight: size
30
- };
31
- },
32
- color: (color = theme.colors.gray[800]) => {
33
- if (!isValidColor(color)) {
34
- throw new Error('Invalid color value');
35
- }
36
- return {
37
- color: color
38
- };
39
- },
40
- fontSize: (size = theme.fontSize.normal) => {
41
- if (!isValidNumber(size)) {
42
- throw new Error('Invalid fontSize value');
43
- }
44
- return {
45
- fontSize: size
46
- };
47
- },
48
- fontFamily: font => {
49
- if (!font) return;
50
- return {
51
- fontFamily: font
52
- };
53
- },
54
- textAlign: (align = 'left') => {
55
- const validAlignments = ['auto', 'left', 'right', 'center', 'justify'];
56
- if (!validAlignments.includes(align)) {
57
- throw new Error('Invalid textAlign value');
58
- }
59
- return {
60
- textAlign: align
61
- };
62
- },
63
- borderRadius: (value = 16) => {
64
- if (!isValidNumber(value)) {
65
- throw new Error('Invalid borderRadius value');
66
- }
67
- return {
68
- borderRadius: value
69
- };
70
- },
71
- borderColor: (value = theme.colors.gray[800]) => {
72
- if (!isValidColor(value)) {
73
- throw new Error('Invalid borderColor value');
74
- }
75
- return {
76
- borderColor: value
77
- };
78
- },
79
- backgroundColor: (value = theme.colors.gray[1]) => {
80
- if (!isValidColor(value)) {
81
- throw new Error('Invalid backgroundColor value');
82
- }
83
- return {
84
- backgroundColor: value
85
- };
86
- },
87
- noBorder: {
88
- true: {
89
- borderWidth: 0
90
- }
91
- },
92
- placeholderTextColor: (value = theme.colors.gray[800]) => {
93
- if (!isValidColor(value)) {
94
- throw new Error('Invalid placeholderTextColor value');
95
- }
96
- return {
97
- placeholderTextColor: value
98
- };
99
- }
100
- }
101
- });
102
- const StyledInput = /*#__PURE__*/forwardRef(({
103
- label,
104
- containerProps,
105
- borderColor,
106
- errorMessage,
107
- error,
108
- errorProps,
109
- labelProps,
110
- ...rest
111
- }, ref) => {
112
- return /*#__PURE__*/React.createElement(React.Fragment, null, label && /*#__PURE__*/React.createElement(YStack, _extends({
113
- width: '100%',
114
- justifyContent: "flex-start",
115
- alignItems: "flex-start"
116
- }, containerProps), /*#__PURE__*/React.createElement(StyledText, _extends({
117
- paddingHorizontal: 8,
118
- color: theme.colors.gray[800],
119
- fontSize: theme.fontSize.normal,
120
- fontWeight: theme.fontWeight.normal
121
- }, labelProps), label), /*#__PURE__*/React.createElement(StyledSpacer, {
122
- marginVertical: 4
123
- })), /*#__PURE__*/React.createElement(StyledInputText, _extends({
124
- placeholderTextColor: theme.colors.gray[400],
125
- ref: ref
126
- }, rest, {
127
- borderColor: error ? theme.colors.pink[500] : borderColor
128
- })), errorMessage && /*#__PURE__*/React.createElement(YStack, _extends({
129
- width: '100%',
130
- justifyContent: "flex-start",
131
- alignItems: "flex-start"
132
- }, containerProps), /*#__PURE__*/React.createElement(StyledSpacer, {
133
- marginVertical: 1
134
- }), /*#__PURE__*/React.createElement(StyledText, _extends({
135
- marginHorizontal: 8,
136
- fontWeight: theme.fontWeight.bold,
137
- fontSize: theme.fontSize.small,
138
- color: theme.colors.pink[500]
139
- }, errorProps), errorMessage)));
140
- });
141
- const StyledMultiInput = ({
142
- label,
143
- errorMessage,
144
- borderColor,
145
- error,
146
- errorProps,
147
- labelProps,
148
- ...rest
149
- }) => {
150
- return /*#__PURE__*/React.createElement(YStack, {
151
- width: '100%',
152
- justifyContent: "flex-start",
153
- alignItems: "flex-start"
154
- }, label && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledSpacer, {
155
- marginVertical: 4
156
- }), /*#__PURE__*/React.createElement(StyledText, _extends({
157
- paddingHorizontal: 8,
158
- color: theme.colors.gray[800],
159
- fontSize: theme.fontSize.normal,
160
- fontWeight: theme.fontWeight.normal
161
- }, labelProps), label), /*#__PURE__*/React.createElement(StyledSpacer, {
162
- marginVertical: 4
163
- })), /*#__PURE__*/React.createElement(StyledInputText, _extends({
164
- borderRadius: 16,
165
- textAlignVertical: "top",
166
- multiline: true,
167
- numberOfLines: 5,
168
- inputMode: "text"
169
- }, rest, {
170
- borderColor: error ? theme.colors.pink[500] : borderColor
171
- })), errorMessage && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledSpacer, {
172
- marginVertical: 1
173
- }), /*#__PURE__*/React.createElement(StyledText, _extends({
174
- marginHorizontal: 8,
175
- fontWeight: theme.fontWeight.bold,
176
- fontSize: theme.fontSize.small,
177
- color: theme.colors.pink[500]
178
- }, errorProps), errorMessage)));
179
- };
180
- export { StyledInput, StyledMultiInput, StyledInputText as InputText };
181
- export default StyledInputText;
182
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","forwardRef","TextInput","YStack","StyledText","StyledSpacer","theme","styled","isValidColor","isValidNumber","isValidString","StyledInputText","base","borderColor","colors","gray","borderWidth","borderRadius","backgroundColor","fontWeight","normal","width","color","paddingHorizontal","paddingVertical","fontSize","placeholderTextColor","variants","size","Error","fontFamily","font","textAlign","align","validAlignments","includes","value","noBorder","true","StyledInput","label","containerProps","errorMessage","error","errorProps","labelProps","rest","ref","createElement","Fragment","_extends","justifyContent","alignItems","marginVertical","pink","marginHorizontal","bold","small","StyledMultiInput","textAlignVertical","multiline","numberOfLines","inputMode","InputText"],"sources":["index.jsx"],"sourcesContent":["import React, { forwardRef } from 'react';\r\nimport { TextInput } from 'react-native';\r\nimport { YStack } from '../stack';\r\nimport { StyledText } from '../text';\r\nimport { StyledSpacer } from '../spacer';\r\nimport { theme } from '../theme';\r\nimport { styled } from '../styled';\r\nimport { isValidColor, isValidNumber, isValidString } from '../utils';\r\n\r\nconst StyledInputText = styled(TextInput, {\r\n base: {\r\n borderColor: theme.colors.gray[800],\r\n borderWidth: 1,\r\n borderRadius: 30,\r\n backgroundColor: theme.fontWeight.normal[1],\r\n width: '100%',\r\n color: theme.colors.gray[800],\r\n paddingHorizontal: 16,\r\n paddingVertical: 8,\r\n fontSize: theme.fontSize.normal,\r\n placeholderTextColor: theme.colors.gray[1],\r\n },\r\n variants: {\r\n fontWeight: (size = theme.fontWeight.normal) => {\r\n if (!isValidString(size)) {\r\n throw new Error('Invalid fontWeight value');\r\n }\r\n return { fontWeight: size };\r\n },\r\n color: (color = theme.colors.gray[800]) => {\r\n if (!isValidColor(color)) {\r\n throw new Error('Invalid color value');\r\n }\r\n return { color: color };\r\n },\r\n fontSize: (size = theme.fontSize.normal) => {\r\n if (!isValidNumber(size)) {\r\n throw new Error('Invalid fontSize value');\r\n }\r\n return { fontSize: size };\r\n },\r\n fontFamily: font => {\r\n if (!font) return\r\n return {\r\n fontFamily: font\r\n }\r\n },\r\n textAlign: (align = 'left') => {\r\n const validAlignments = ['auto', 'left', 'right', 'center', 'justify'];\r\n if (!validAlignments.includes(align)) {\r\n throw new Error('Invalid textAlign value');\r\n }\r\n return { textAlign: align };\r\n },\r\n borderRadius: (value = 16) => {\r\n if (!isValidNumber(value)) {\r\n throw new Error('Invalid borderRadius value');\r\n }\r\n return { borderRadius: value };\r\n },\r\n borderColor: (value = theme.colors.gray[800]) => {\r\n if (!isValidColor(value)) {\r\n throw new Error('Invalid borderColor value');\r\n }\r\n return { borderColor: value };\r\n },\r\n backgroundColor: (value = theme.colors.gray[1]) => {\r\n if (!isValidColor(value)) {\r\n throw new Error('Invalid backgroundColor value');\r\n }\r\n return { backgroundColor: value };\r\n },\r\n noBorder: {\r\n true: { borderWidth: 0 }\r\n },\r\n placeholderTextColor: (value = theme.colors.gray[800]) => {\r\n if (!isValidColor(value)) {\r\n throw new Error('Invalid placeholderTextColor value');\r\n }\r\n return { placeholderTextColor: value };\r\n } \r\n }\r\n});\r\n\r\nconst StyledInput = forwardRef(({ label, containerProps, borderColor, errorMessage, error, errorProps, labelProps, ...rest }, ref) => {\r\n return (\r\n <>\r\n {\r\n label && (\r\n <YStack width={'100%'} justifyContent='flex-start' alignItems='flex-start' {...containerProps} >\r\n <StyledText paddingHorizontal={8} color={theme.colors.gray[800]} fontSize={theme.fontSize.normal} fontWeight={theme.fontWeight.normal} {...labelProps}>\r\n {label}\r\n </StyledText>\r\n <StyledSpacer marginVertical={4} />\r\n </YStack>\r\n )\r\n }\r\n <StyledInputText placeholderTextColor={theme.colors.gray[400]} ref={ref} {...rest} borderColor={error ? theme.colors.pink[500] : borderColor} />\r\n {\r\n errorMessage && (\r\n <YStack width={'100%'} justifyContent='flex-start' alignItems='flex-start' {...containerProps} >\r\n <StyledSpacer marginVertical={1} />\r\n <StyledText marginHorizontal={8} fontWeight={theme.fontWeight.bold} fontSize={theme.fontSize.small} color={theme.colors.pink[500]} {...errorProps}>\r\n {errorMessage}\r\n </StyledText>\r\n </YStack>\r\n )\r\n }\r\n </>\r\n )\r\n})\r\nconst StyledMultiInput = ({ label, errorMessage, borderColor, error, errorProps, labelProps, ...rest }) => {\r\n return (\r\n <YStack width={'100%'} justifyContent='flex-start' alignItems='flex-start'>\r\n {\r\n label && (\r\n <>\r\n <StyledSpacer marginVertical={4} />\r\n <StyledText paddingHorizontal={8} color={theme.colors.gray[800]} fontSize={theme.fontSize.normal} fontWeight={theme.fontWeight.normal} {...labelProps}>\r\n {label}\r\n </StyledText>\r\n <StyledSpacer marginVertical={4} />\r\n </>\r\n\r\n )\r\n }\r\n <StyledInputText borderRadius={16} textAlignVertical='top' multiline numberOfLines={5} inputMode='text' {...rest} borderColor={error ? theme.colors.pink[500] : borderColor} />\r\n {\r\n errorMessage && (\r\n <>\r\n <StyledSpacer marginVertical={1} />\r\n <StyledText marginHorizontal={8} fontWeight={theme.fontWeight.bold} fontSize={theme.fontSize.small} color={theme.colors.pink[500]} {...errorProps}>\r\n {errorMessage}\r\n </StyledText>\r\n </>\r\n )\r\n }\r\n\r\n </YStack>\r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E,CAAE;IAACpC,UAAU,EAAEb,KAAK,CAACa,UAAU,CAACqC,IAAK;IAAC/B,QAAQ,EAAEnB,KAAK,CAACmB,QAAQ,CAACgC,KAAM;IAACnC,KAAK,EAAEhB,KAAK,CAACQ,MAAM,CAACwC,IAAI,CAAC,GAAG;EAAE,GAAKV,UAAU,GAC5IF,YACO,CACd,CAIN,CAAC;AAEjB,CAAC;AAED,SAASH,WAAW,EAAEmB,gBAAgB,EAAE/C,eAAe,IAAIoD,SAAS;AACpE,eAAepD,eAAe","ignoreList":[]}
@@ -1,93 +0,0 @@
1
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
- import React from 'react';
3
- import { View } from 'react-native';
4
- import { StatusBar } from 'react-native';
5
- import Icon from 'react-native-vector-icons/MaterialIcons';
6
- import { theme } from '../theme';
7
- import { YStack, XStack } from '../stack';
8
- import { styled } from '../styled';
9
- import { StyledCycle } from '../cycle';
10
- import { StyledText } from '../text';
11
- import { StyledSpacer } from '../spacer';
12
- import { isValidNumber } from '../utils';
13
- import { getStatusBarHeight } from '../utils/statusBar';
14
- const Headers = styled(View, {
15
- base: {
16
- width: '100%',
17
- flexDirection: 'row',
18
- alignItems: 'center',
19
- justifyContent: 'flex-start'
20
- },
21
- variants: {
22
- marginTop: (size = 0) => {
23
- if (!isValidNumber(size)) {
24
- throw new Error('Invalid marginTop value');
25
- }
26
- return {
27
- marginTop: size
28
- };
29
- },
30
- statusHeight: (height = 0) => {
31
- return {
32
- paddingTop: height
33
- };
34
- }
35
- }
36
- });
37
- const StyledHeader = ({
38
- statusProps,
39
- skipAndroid = false,
40
- skipIos = true,
41
- ...rest
42
- }) => {
43
- return /*#__PURE__*/React.createElement(YStack, null, /*#__PURE__*/React.createElement(StatusBar, _extends({
44
- translucent: true,
45
- backgroundColor: theme.colors.gray[1],
46
- barStyle: 'dark-content'
47
- }, statusProps)), /*#__PURE__*/React.createElement(Headers, _extends({
48
- statusHeight: getStatusBarHeight(skipAndroid, skipIos)
49
- }, rest)));
50
- };
51
- const Header = ({
52
- navigator,
53
- fontWeight = theme.fontWeight.normal,
54
- fontSize = theme.fontSize.normal,
55
- iconProps,
56
- color = theme.colors.gray[800],
57
- textProps,
58
- title,
59
- icon = false,
60
- cycleProps,
61
- rightIcon,
62
- rightIconProps,
63
- onPress,
64
- ...rest
65
- }) => {
66
- return /*#__PURE__*/React.createElement(XStack, _extends({
67
- justifyContent: "flex-start",
68
- alignItems: "center",
69
- flex: 1,
70
- paddingHorizontal: 8,
71
- paddingVertical: 8
72
- }, rest), icon && /*#__PURE__*/React.createElement(StyledCycle, cycleProps, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icon, _extends({
73
- name: 'arrow-back',
74
- size: 30,
75
- color: theme.colors.gray[700],
76
- onPress: () => onPress && onPress()
77
- }, iconProps)), /*#__PURE__*/React.createElement(StyledSpacer, {
78
- marginHorizontal: 4
79
- }))), title && /*#__PURE__*/React.createElement(StyledText, {
80
- color: color,
81
- fontWeight: fontWeight,
82
- fontSize: fontSize
83
- }, title), rightIcon && /*#__PURE__*/React.createElement(React.Fragment, null, rightIcon));
84
- };
85
- const Full = ({
86
- children
87
- }) => {
88
- return /*#__PURE__*/React.createElement(React.Fragment, null, children);
89
- };
90
- StyledHeader.Header = Header;
91
- StyledHeader.Full = Full;
92
- export { StyledHeader };
93
- //# sourceMappingURL=index.js.map