fluent-styles 1.53.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 -92
  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 -83
  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 -97
  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,89 +0,0 @@
1
- import { expect, jest } from '@jest/globals';
2
- import { render } from '@testing-library/react-native';
3
- import { Stack, XStack, YStack } from '..';
4
- import { palettes, theme } from '../../theme';
5
- import { Platform } from 'react-native';
6
- describe("Stack", () => {
7
- it("Should render correctly with base style", () => {
8
- const {
9
- getByTestId
10
- } = render( /*#__PURE__*/React.createElement(Stack, {
11
- testID: "test-stack-id"
12
- }));
13
- const stack = getByTestId('test-stack-id');
14
- expect(stack).toHaveStyle({
15
- position: 'relative'
16
- });
17
- });
18
- it("Should render correctly when transparent variant is set to true", () => {
19
- const {
20
- getByTestId
21
- } = render( /*#__PURE__*/React.createElement(Stack, {
22
- transparent: true,
23
- testID: "test-stack-id"
24
- }));
25
- const stack = getByTestId('test-stack-id');
26
- expect(stack).toHaveStyle({
27
- position: 'relative',
28
- backgroundColor: palettes.transparent
29
- });
30
- });
31
- it("XStack should render flexDirection to row correctly", () => {
32
- const {
33
- getByTestId
34
- } = render( /*#__PURE__*/React.createElement(XStack, {
35
- testID: "test-stack-id"
36
- }));
37
- const stack = getByTestId('test-stack-id');
38
- expect(stack).toHaveStyle({
39
- flexDirection: 'row'
40
- });
41
- });
42
- it("XStack should render correctly when transparent variant is set to true", () => {
43
- const {
44
- getByTestId
45
- } = render( /*#__PURE__*/React.createElement(XStack, {
46
- transparent: true,
47
- testID: "test-stack-id"
48
- }));
49
- const stack = getByTestId('test-stack-id');
50
- expect(stack).toHaveStyle({
51
- position: 'relative',
52
- backgroundColor: palettes.transparent
53
- });
54
- });
55
- it("YStack should render flexDirection to column correctly", () => {
56
- const {
57
- getByTestId
58
- } = render( /*#__PURE__*/React.createElement(YStack, {
59
- testID: "test-stack-id"
60
- }));
61
- const stack = getByTestId('test-stack-id');
62
- expect(stack).toHaveStyle({
63
- flexDirection: 'column'
64
- });
65
- });
66
- it("Should render shadow on stack correctly when shadow variant is set to light on ios", () => {
67
- jest.spyOn(Platform, 'select').mockImplementation(obj => obj.ios);
68
- const {
69
- getByTestId
70
- } = render( /*#__PURE__*/React.createElement(Stack, {
71
- shadow: "light",
72
- transparent: true,
73
- testID: "test-stack-id"
74
- }));
75
- const stack = getByTestId('test-stack-id');
76
- expect(stack).toHaveStyle({
77
- position: 'relative',
78
- backgroundColor: palettes.transparent,
79
- shadowColor: theme.colors.gray[900],
80
- shadowOffset: {
81
- width: 0,
82
- height: 1
83
- },
84
- shadowOpacity: 0.22,
85
- shadowRadius: 2.22
86
- });
87
- });
88
- });
89
- //# sourceMappingURL=index.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["expect","jest","render","Stack","XStack","YStack","palettes","theme","Platform","describe","it","getByTestId","React","createElement","testID","stack","toHaveStyle","position","transparent","backgroundColor","flexDirection","spyOn","mockImplementation","obj","ios","shadow","shadowColor","colors","gray","shadowOffset","width","height","shadowOpacity","shadowRadius"],"sources":["index.test.js"],"sourcesContent":["import { expect, jest } from '@jest/globals';\r\nimport { render } from '@testing-library/react-native'\r\nimport { Stack, XStack, YStack } from '..'\r\nimport { palettes, theme } from '../../theme';\r\nimport { Platform } from 'react-native';\r\n\r\ndescribe(\"Stack\", () => {\r\n it(\"Should render correctly with base style\", () => {\r\n const { getByTestId } = render(<Stack testID='test-stack-id' />)\r\n\r\n const stack = getByTestId('test-stack-id')\r\n expect(stack).toHaveStyle({\r\n position: 'relative'\r\n })\r\n })\r\n\r\n it(\"Should render correctly when transparent variant is set to true\", () => {\r\n const { getByTestId } = render(<Stack transparent testID='test-stack-id' />)\r\n\r\n const stack = getByTestId('test-stack-id')\r\n expect(stack).toHaveStyle({\r\n position: 'relative',\r\n backgroundColor: palettes.transparent\r\n })\r\n })\r\n\r\n it(\"XStack should render flexDirection to row correctly\", () => {\r\n const { getByTestId } = render(<XStack testID='test-stack-id' />)\r\n\r\n const stack = getByTestId('test-stack-id')\r\n expect(stack).toHaveStyle({\r\n flexDirection: 'row' \r\n })\r\n })\r\n it(\"XStack should render correctly when transparent variant is set to true\", () => {\r\n const { getByTestId } = render(<XStack transparent testID='test-stack-id' />)\r\n\r\n const stack = getByTestId('test-stack-id')\r\n expect(stack).toHaveStyle({\r\n position: 'relative',\r\n backgroundColor: palettes.transparent\r\n })\r\n })\r\n\r\n it(\"YStack should render flexDirection to column correctly\", () => {\r\n const { getByTestId } = render(<YStack testID='test-stack-id' />)\r\n\r\n const stack = getByTestId('test-stack-id')\r\n expect(stack).toHaveStyle({\r\n flexDirection: 'column'\r\n })\r\n })\r\n\r\n it(\"Should render shadow on stack correctly when shadow variant is set to light on ios\", () => {\r\n jest.spyOn(Platform, 'select').mockImplementation((obj)=>obj.ios)\r\n const { getByTestId } = render(<Stack shadow='light' transparent testID='test-stack-id' />)\r\n\r\n const stack = getByTestId('test-stack-id')\r\n expect(stack).toHaveStyle({\r\n position: 'relative',\r\n backgroundColor: palettes.transparent,\r\n shadowColor: theme.colors.gray[900],\r\n shadowOffset: { width: 0, height: 1 },\r\n shadowOpacity: 0.22,\r\n shadowRadius: 2.22,\r\n })\r\n })\r\n})"],"mappings":"AAAA,SAASA,MAAM,EAAEC,IAAI,QAAQ,eAAe;AAC5C,SAASC,MAAM,QAAQ,+BAA+B;AACtD,SAASC,KAAK,EAAEC,MAAM,EAAEC,MAAM,QAAQ,IAAI;AAC1C,SAASC,QAAQ,EAAEC,KAAK,QAAQ,aAAa;AAC7C,SAASC,QAAQ,QAAQ,cAAc;AAEvCC,QAAQ,CAAC,OAAO,EAAE,MAAM;EACpBC,EAAE,CAAC,yCAAyC,EAAE,MAAM;IAChD,MAAM;MAAEC;IAAY,CAAC,GAAGT,MAAM,eAACU,KAAA,CAAAC,aAAA,CAACV,KAAK;MAACW,MAAM,EAAC;IAAe,CAAE,CAAC,CAAC;IAEhE,MAAMC,KAAK,GAAGJ,WAAW,CAAC,eA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C/D,MAAM;MAAEC;IAAY,CAAC,GAAGT,MAAM,eAACU,KAAA,CAAAC,aAAA,CAACR,MAAM;MAACS,MAAM,EAAC;IAAe,CAAE,CAAC,CAAC;IAEjE,MAAMC,KAAK,GAAGJ,WAAW,CAAC,eAAe,CAAC;IAC1CX,MAAM,CAACe,KAAK,CAAC,CAACC,WAAW,CAAC;MACtBI,aAAa,EAAE;IACnB,CAAC,CAAC;EACN,CAAC,CAAC;EAEFV,EAAE,CAAC,oFAAoF,EAAE,MAAM;IAC3FT,IAAI,CAACoB,KAAK,CAACb,QAAQ,EAAE,QAAQ,CAAC,CAACc,kBAAkB,CAAEC,GAAG,IAAGA,GAAG,CAACC,GAAG,CAAC;IACjE,MAAM;MAAEb;IAAY,CAAC,GAAGT,MAAM,eAACU,KAAA,CAAAC,aAAA,CAACV,KAAK;MAACsB,MAAM,EAAC,OAAO;MAACP,WAAW;MAACJ,MAAM,EAAC;IAAe,CAAE,CAAC,CAAC;IAE3F,MAAMC,KAAK,GAAGJ,WAAW,CAAC,eAAe,CAAC;IAC1CX,MAAM,CAACe,KAAK,CAAC,CAACC,WAAW,CAAC;MACtBC,QAAQ,EAAE,UAAU;MACpBE,eAAe,EAAEb,QAAQ,CAACY,WAAW;MACrCQ,WAAW,EAAEnB,KAAK,CAACoB,MAAM,CAACC,IAAI,CAAC,GAAG,CAAC;MACnCC,YAAY,EAAE;QAAEC,KAAK,EAAE,CAAC;QAAEC,MAAM,EAAE;MAAE,CAAC;MACrCC,aAAa,EAAE,IAAI;MACnBC,YAAY,EAAE;IAClB,CAAC,CAAC;EACN,CAAC,CAAC;AACN,CAAC,CAAC","ignoreList":[]}
@@ -1,49 +0,0 @@
1
- import { View } from 'react-native';
2
- import { styled } from '../styled';
3
- import { theme } from '../theme';
4
- const YStack = styled(View, {
5
- base: {
6
- flexDirection: 'column'
7
- },
8
- variants: {
9
- transparent: {
10
- true: {
11
- backgroundColor: theme.colors.transparent
12
- }
13
- },
14
- relative: {
15
- true: {
16
- position: 'relative'
17
- }
18
- },
19
- absolute: {
20
- true: {
21
- position: 'absolute'
22
- }
23
- }
24
- }
25
- });
26
- const XStack = styled(View, {
27
- base: {
28
- flexDirection: 'row'
29
- },
30
- variants: {
31
- transparent: {
32
- true: {
33
- backgroundColor: theme.colors.transparent
34
- }
35
- }
36
- },
37
- relative: {
38
- true: {
39
- position: 'relative'
40
- }
41
- },
42
- absolute: {
43
- true: {
44
- position: 'absolute'
45
- }
46
- }
47
- });
48
- export { XStack, YStack };
49
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["View","styled","theme","YStack","base","flexDirection","variants","transparent","true","backgroundColor","colors","relative","position","absolute","XStack"],"sources":["index.jsx"],"sourcesContent":["import { View } from 'react-native'\r\nimport { styled } from '../styled'\r\nimport { theme } from '../theme'\r\n\r\nconst YStack = styled(View, {\r\n base: {\r\n flexDirection: 'column'\r\n },\r\n variants: {\r\n transparent: {\r\n true: {\r\n backgroundColor: theme.colors.transparent\r\n }\r\n },\r\n relative: {\r\n true :{\r\n position: 'relative'\r\n } \r\n },\r\n absolute: {\r\n true: {\r\n position: 'absolute'\r\n }\r\n }\r\n }\r\n})\r\nconst XStack = styled(View, {\r\n base: {\r\n flexDirection: 'row'\r\n },\r\n variants: {\r\n transparent: {\r\n true: {\r\n backgroundColor: theme.colors.transparent\r\n }\r\n }\r\n },\r\n relative: {\r\n true: {\r\n position: 'relative'\r\n }\r\n },\r\n absolute: {\r\n true: {\r\n position: 'absolute'\r\n }\r\n }\r\n})\r\n\r\nexport { XStack, YStack }\r\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,cAAc;AACnC,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,KAAK,QAAQ,UAAU;AAEhC,MAAMC,MAAM,GAAGF,MAAM,CAACD,IAAI,EAAE;EAC1BI,IAAI,EAAE;IACJC,aAAa,EAAE;EACjB,CAAC;EACDC,QAAQ,EAAE;IACRC,WAAW,EAAE;MACXC,IAAI,EAAE;QACJC,eAAe,EAAEP,KAAK,CAACQ,MAAM,CAACH;MAChC;IACF,CAAC;IACDI,QAAQ,EAAE;MACRH,IAAI,EAAE;QACJI,QAAQ,EAAE;MACZ;IACF,CAAC;IACDC,QAAQ,EAAE;MACRL,IAAI,EAAE;QACJI,QAAQ,EAAE;MACZ;IACF;EACF;AACF,CAAC,CAAC;AACF,MAAME,MAAM,GAAGb,MAAM,CAACD,IAAI,EAAE;EAC1BI,IAAI,EAAE;IACJC,aAAa,EAAE;EACjB,CAAC;EACDC,QAAQ,EAAE;IACRC,WAAW,EAAE;MACXC,IAAI,EAAE;QACJC,eAAe,EAAEP,KAAK,CAACQ,MAAM,CAACH;MAChC;IACF;EACF,CAAC;EACDI,QAAQ,EAAE;IACRH,IAAI,EAAE;MACJI,QAAQ,EAAE;IACZ;EACF,CAAC;EACDC,QAAQ,EAAE;IACRL,IAAI,EAAE;MACJI,QAAQ,EAAE;IACZ;EACF;AACF,CAAC,CAAC;AAEF,SAASE,MAAM,EAAEX,MAAM","ignoreList":[]}
@@ -1,158 +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 { render } from "@testing-library/react-native";
4
- import { expect } from '@jest/globals';
5
- import { styled } from "..";
6
- import { Text } from "react-native";
7
- import { theme } from "../../theme";
8
- const StyledText = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(Text, _extends({}, props, {
9
- ref: ref
10
- })));
11
- describe("Fluent Styles", () => {
12
- it("Base style should render correctly", () => {
13
- const base = {
14
- backgroundColor: theme.colors.gray[50],
15
- paddingHorizontal: 20,
16
- paddingVertical: 10
17
- };
18
- const Text = styled(StyledText, {
19
- base,
20
- variants: {}
21
- });
22
- const {
23
- getByText
24
- } = render( /*#__PURE__*/React.createElement(Text, null, "Hello"));
25
- expect(getByText("Hello")).toHaveStyle({
26
- backgroundColor: theme.colors.gray[50],
27
- paddingHorizontal: 20,
28
- paddingVertical: 10
29
- });
30
- });
31
- it("Variants style should render correctly", () => {
32
- const variants = {
33
- border: {
34
- true: {
35
- borderColor: theme.colors.gray[50],
36
- borderWidth: 1,
37
- borderRadius: 8
38
- }
39
- }
40
- };
41
- const Text = styled(StyledText, {
42
- base: {},
43
- variants
44
- });
45
- const {
46
- getByText
47
- } = render( /*#__PURE__*/React.createElement(Text, {
48
- border: true
49
- }, "Hello"));
50
- expect(getByText("Hello")).toHaveStyle({
51
- borderColor: theme.colors.gray[50],
52
- borderWidth: 1,
53
- borderRadius: 8
54
- });
55
- });
56
- it("Variants style should not render correctly when variant is not enable", () => {
57
- const variants = {
58
- border: {
59
- true: {
60
- borderColor: theme.colors.gray[50],
61
- borderWidth: 1,
62
- borderRadius: 8
63
- }
64
- }
65
- };
66
- const Text = styled(StyledText, {
67
- base: {},
68
- variants
69
- });
70
- const {
71
- getByText
72
- } = render( /*#__PURE__*/React.createElement(Text, null, "Hello"));
73
- expect(getByText("Hello")).not.toHaveStyle({
74
- borderColor: theme.colors.gray[50],
75
- borderWidth: 1,
76
- borderRadius: 8
77
- });
78
- });
79
- it("Variants styles should render correctly with function variant", () => {
80
- const variants = {
81
- fontSize: size => ({
82
- fontSize: size
83
- })
84
- };
85
- const Text = styled(StyledText, {
86
- base: {},
87
- variants
88
- });
89
- const {
90
- getByText
91
- } = render( /*#__PURE__*/React.createElement(Text, {
92
- fontSize: 24
93
- }, "Hello"));
94
- expect(getByText("Hello")).toHaveStyle({
95
- fontSize: 24
96
- });
97
- });
98
- it("Variants styles should render correctly with nested variant", () => {
99
- const base = {
100
- backgroundColor: theme.colors.blueGray[100]
101
- };
102
- const variants = {
103
- fontsize: size => ({
104
- fontSize: size
105
- }),
106
- color: theme.colors
107
- };
108
- const Text = styled(StyledText, {
109
- base,
110
- variants
111
- });
112
- const {
113
- getByText
114
- } = render( /*#__PURE__*/React.createElement(Text, {
115
- fontsize: 24,
116
- color: "gray.100"
117
- }, "Hello"));
118
- expect(getByText('Hello')).toHaveStyle({
119
- fontSize: 24,
120
- color: theme.colors.gray[100],
121
- backgroundColor: theme.colors.blueGray[100]
122
- });
123
- });
124
- it("Should render prop style correctly", () => {
125
- const Text = styled(StyledText, {
126
- base: {},
127
- variants: {}
128
- });
129
- const {
130
- getByText
131
- } = render( /*#__PURE__*/React.createElement(Text, {
132
- style: {
133
- color: theme.colors.gray[100]
134
- }
135
- }, "Hello"));
136
- expect(getByText('Hello')).toHaveStyle({
137
- color: theme.colors.gray[100]
138
- });
139
- });
140
- it("Should render forwardRef as expected", () => {
141
- const Text = styled(StyledText, {
142
- base: {
143
- color: theme.colors.gray[200]
144
- },
145
- variants: {}
146
- });
147
- const ref = /*#__PURE__*/React.createRef();
148
- const {
149
- getByText
150
- } = render( /*#__PURE__*/React.createElement(Text, {
151
- ref: ref
152
- }, "Hello"));
153
- const helloText = getByText('Hello');
154
- expect(helloText).toBeTruthy();
155
- expect(ref.current).toBeTruthy();
156
- });
157
- });
158
- //# sourceMappingURL=index.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","render","expect","styled","Text","theme","StyledText","forwardRef","props","ref","createElement","_extends","describe","it","base","backgroundColor","colors","gray","paddingHorizontal","paddingVertical","variants","getByText","toHaveStyle","border","true","borderColor","borderWidth","borderRadius","not","fontSize","size","blueGray","fontsize","color","style","createRef","helloText","toBeTruthy","current"],"sources":["index.test.js"],"sourcesContent":["\r\nimport React from \"react\";\r\nimport { render } from \"@testing-library/react-native\";\r\nimport { expect } from '@jest/globals';\r\nimport {styled} from \"..\";\r\nimport { Text } from \"react-native\";\r\nimport { theme } from \"../../theme\";\r\n\r\nconst StyledText = React.forwardRef((props, ref) => <Text {...props} ref={ref} />)\r\ndescribe(\"Fluent Styles\", () => {\r\n\tit(\"Base style should render correctly\", () => {\r\n\t\tconst base = {\r\n\t\t\tbackgroundColor: theme.colors.gray[50],\r\n\t\t\tpaddingHorizontal: 20,\r\n\t\t\tpaddingVertical: 10\r\n\t\t}\r\n\t\tconst Text = styled(StyledText, { base, variants: {} });\r\n\t\tconst { getByText } = render(<Text>Hello</Text>)\r\n\r\n\t\texpect(getByText(\"Hello\")).toHaveStyle({\r\n\t\t\tbackgroundColor: theme.colors.gray[50],\r\n\t\t\tpaddingHorizontal: 20,\r\n\t\t\tpaddingVertical: 10\r\n\t\t})\r\n\t});\r\n\r\n\tit(\"Variants style should render correctly\", () => {\r\n\t\tconst variants = {\r\n\t\t\tborder: {\r\n\t\t\t\ttrue: {\r\n\t\t\t\t\tborderColor: theme.colors.gray[50],\r\n\t\t\t\t\tborderWidth: 1,\r\n\t\t\t\t\tborderRadius: 8\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tconst Text = styled(StyledText, { base: {}, variants });\r\n\t\tconst { getByText } = render(<Text border>Hello</Text>)\r\n\r\n\t\texpect(getByText(\"Hello\")).toHaveStyle({\r\n\t\t\tborderColor: theme.colors.gray[50],\r\n\t\t\tborderWidth: 1,\r\n\t\t\tborderRadius: 8\r\n\t\t})\r\n\t});\r\n\r\n\tit(\"Variants style should not render correctly when variant is not enable\", () => {\r\n\t\tconst variants = {\r\n\t\t\tborder: {\r\n\t\t\t\ttrue: {\r\n\t\t\t\t\tborderColor: theme.colors.gray[50],\r\n\t\t\t\t\tborderWidth: 1,\r\n\t\t\t\t\tborderRadius: 8\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tconst Text = styled(StyledText, { base: {}, variants });\r\n\t\tconst { getByText } = render(<Text>Hello</Text>)\r\n\r\n\t\texpect(getByText(\"Hello\")).not.toHaveStyle({\r\n\t\t\tborderColor: theme.colors.gray[50],\r\n\t\t\tborderWidth: 1,\r\n\t\t\tborderRadius: 8\r\n\t\t})\r\n\t});\r\n\r\n\tit(\"Variants styles should render correctly with function variant\", () => {\r\n\t\tconst variants = {\r\n\t\t\tfontSize: (size) => ({\r\n\t\t\t\tfontSize: size\r\n\t\t\t})\r\n\t\t}\r\n\t\tconst Text = styled(StyledText, { base: {}, variants });\r\n\t\tconst { getByText } = render(<Text fontSize={24}>Hello</Text>)\r\n\r\n\t\texpect(getByText(\"Hello\")).toHaveStyle({\r\n\t\t\tfontSize: 24\r\n\t\t})\r\n\t});\r\n\r\n\tit(\"Variants styles should render correctly with nested variant\", () => {\r\n\t\tconst base = {\r\n\t\t\tbackgroundColor: theme.colors.blueGray[100]\r\n\t\t};\r\n\t\tconst variants = {\r\n\t\t\tfontsize: (size) => ({\r\n\t\t\t\tfontSize: size\r\n\t\t\t}),\r\n\t\t\tcolor: theme.colors\r\n\t\t};\r\n\t\tconst Text = styled(StyledText, { base, variants });\r\n\t\tconst { getByText } = render(\r\n\t\t\t<Text fontsize={24} color=\"gray.100\">\r\n\t\t\t\tHello\r\n\t\t\t</Text>\r\n\t\t);\r\n\r\n\t\texpect(getByText('Hello')).toHaveStyle({\r\n\t\t\tfontSize: 24,\r\n\t\t\tcolor: theme.colors.gray[100],\r\n\t\t\tbackgroundColor: theme.colors.blueGray[100]\r\n\t\t});\r\n\t});\r\n\r\n\tit(\"Should render prop style correctly\", () => {\t\t\r\n\t\tconst Text = styled(StyledText, { base :{}, variants :{} });\r\n\t\tconst { getByText } = render(\r\n\t\t\t<Text style={{ color: theme.colors.gray[100] }}>\r\n\t\t\t\tHello\r\n\t\t\t</Text>\r\n\t\t);\r\n\r\n\t\texpect(getByText('Hello')).toHaveStyle({\t\t\t\r\n\t\t\tcolor: theme.colors.gray[100]\t\t\t\r\n\t\t});\r\n\t});\r\n\r\n\tit(\"Should render forwardRef as expected\", () => {\r\n\t\tconst Text = styled(StyledText, { base: { color: theme.colors.gray[200]}, variants: {} });\r\n\t\tconst ref = React.createRef()\r\n\t\tconst { getByText } = render(\r\n\t\t\t<Text ref={ref}>\r\n\t\t\t\tHello\r\n\t\t\t</Text>\r\n\t\t);\r\n\r\n\t\tcon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,CAACO,GAAG,CAAC6B,OAAO,CAAC,CAACD,UAAU,CAAC,CAAC;EACjC,CAAC,CAAC;AAEH,CAAC,CAAC","ignoreList":[]}
@@ -1,35 +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
-
4
- // @ts-ignore
5
- const styled = (Component, {
6
- base,
7
- variants
8
- } = {}) => {
9
- return /*#__PURE__*/forwardRef((props, ref) => {
10
- const styles = {
11
- ...(base || {})
12
- };
13
- const options = props;
14
- Object.keys(variants || {}).forEach(category => {
15
- // @ts-ignore
16
- const variantSelected = options[category];
17
- const variantValue = variants[category];
18
- if (typeof variantValue === "function") {
19
- const style = variantValue(variantSelected, options);
20
- if (style) {
21
- Object.assign(styles, style);
22
- }
23
- } else if (variantValue && variantValue[variantSelected]) {
24
- const value = variantValue[variantSelected];
25
- Object.assign(styles, typeof value === "function" ? value(options) : value);
26
- }
27
- });
28
- return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
29
- style: styles,
30
- ref: ref
31
- }));
32
- });
33
- };
34
- export { styled };
35
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","forwardRef","styled","Component","base","variants","props","ref","styles","options","Object","keys","forEach","category","variantSelected","variantValue","style","assign","value","createElement","_extends"],"sources":["index.js"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\n// @ts-ignore\nconst styled = (Component, { base, variants } = {}) => {\n return forwardRef((props, ref) => {\n const styles = { ...(base || {}) };\n const options = props;\n\n Object.keys(variants || {}).forEach((category) => {\n // @ts-ignore\n const variantSelected = options[category];\n const variantValue = variants[category];\n\n if (typeof variantValue === \"function\") {\n const style = variantValue(variantSelected, options);\n if (style) {\n Object.assign(styles, style);\n }\n } else if (variantValue && variantValue[variantSelected]) {\n const value = variantValue[variantSelected];\n Object.assign(\n styles,\n typeof value === \"function\" ? value(options) : value\n );\n }\n }); \n\n return <Component {...props} style={styles} ref={ref} />;\n });\n};\n\nexport { styled }\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;;AAEzC;AACA,MAAMC,MAAM,GAAGA,CAACC,SAAS,EAAE;EAAEC,IAAI;EAAEC;AAAS,CAAC,GAAG,CAAC,CAAC,KAAK;EACrD,oBAAOJ,UAAU,CAAC,CAACK,KAAK,EAAEC,GAAG,KAAK;IAChC,MAAMC,MAAM,GAAG;MAAE,IAAIJ,IAAI,IAAI,CAAC,CAAC;IAAE,CAAC;IAClC,MAAMK,OAAO,GAAGH,KAAK;IAErBI,MAAM,CAACC,IAAI,CAACN,QAAQ,IAAI,CAAC,CAAC,CAAC,CAACO,OAAO,CAAEC,QAAQ,IAAK;MAChD;MACA,MAAMC,eAAe,GAAGL,OAAO,CAACI,QAAQ,CAAC;MACzC,MAAME,YAAY,GAAGV,QAAQ,CAACQ,QAAQ,CAAC;MAEvC,IAAI,OAAOE,YAAY,KAAK,UAAU,EAAE;QACtC,MAAMC,KAAK,GAAGD,YAAY,CAACD,eAAe,EAAEL,OAAO,CAAC;QACpD,IAAIO,KAAK,EAAE;UACTN,MAAM,CAACO,MAAM,CAACT,MAAM,EAAEQ,KAAK,CAAC;QAC9B;MACF,CAAC,MAAM,IAAID,YAAY,IAAIA,YAAY,CAACD,eAAe,CAAC,EAAE;QACxD,MAAMI,KAAK,GAAGH,YAAY,CAACD,eAAe,CAAC;QAC3CJ,MAAM,CAACO,MAAM,CACXT,MAAM,EACN,OAAOU,KAAK,KAAK,UAAU,GAAGA,KAAK,CAACT,OAAO,CAAC,GAAGS,KACjD,CAAC;MACH;IACF,CAAC,CAAC;IAEF,oBAAOlB,KAAA,CAAAmB,aAAA,CAAChB,SAAS,EAAAiB,QAAA,KAAKd,KAAK;MAAEU,KAAK,EAAER,MAAO;MAACD,GAAG,EAAEA;IAAI,EAAG,CAAC;EAC3D,CAAC,CAAC;AACJ,CAAC;AAED,SAASL,MAAM","ignoreList":[]}
@@ -1,36 +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 { Switch as SwitchSource } from 'react-native';
4
- import { styled } from '../styled';
5
- import { theme } from '../theme';
6
- const Switch = styled(SwitchSource, {
7
- base: {
8
- transform: [{
9
- scaleX: 2
10
- }, {
11
- scaleY: 2
12
- }]
13
- }
14
- });
15
- const StyledSwitch = ({
16
- trackColorOff = theme.colors.gray[400],
17
- trackColorOn = theme.colors.green[500],
18
- thumbColorOff = theme.colors.gray[400],
19
- thumbColorOn = theme.colors.pink[500],
20
- isEnabled,
21
- onChange,
22
- ...rest
23
- }) => {
24
- return /*#__PURE__*/React.createElement(Switch, _extends({
25
- trackColor: {
26
- false: trackColorOff,
27
- true: trackColorOn
28
- },
29
- thumbColor: isEnabled ? thumbColorOn : thumbColorOff,
30
- ios_backgroundColor: theme.colors.gray[800],
31
- onValueChange: onChange,
32
- value: isEnabled
33
- }, rest));
34
- };
35
- export { StyledSwitch };
36
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","Switch","SwitchSource","styled","theme","base","transform","scaleX","scaleY","StyledSwitch","trackColorOff","colors","gray","trackColorOn","green","thumbColorOff","thumbColorOn","pink","isEnabled","onChange","rest","createElement","_extends","trackColor","false","true","thumbColor","ios_backgroundColor","onValueChange","value"],"sources":["index.jsx"],"sourcesContent":["import React from 'react'\r\nimport { Switch as SwitchSource } from 'react-native'\r\nimport { styled } from '../styled'\r\nimport { theme } from '../theme'\r\n\r\nconst Switch = styled(SwitchSource, {\r\n base: {\r\n transform: [{ scaleX: 2 }, { scaleY: 2 }]\r\n }\r\n})\r\n\r\nconst StyledSwitch = ({\r\n\ttrackColorOff = theme.colors.gray[400],\r\n\ttrackColorOn = theme.colors.green[500],\r\n\tthumbColorOff = theme.colors.gray[400],\r\n\tthumbColorOn = theme.colors.pink[500],\r\n\tisEnabled,\r\n\tonChange,\r\n\t...rest\r\n}) => {\r\n return (\r\n <Switch\r\n trackColor={{ false: trackColorOff, true: trackColorOn }}\r\n thumbColor={isEnabled ? thumbColorOn : thumbColorOff}\r\n ios_backgroundColor={theme.colors.gray[800]}\r\n onValueChange={onChange}\r\n value={isEnabled}\r\n {...rest}\r\n\t\t/>\r\n )\r\n}\r\n\r\nexport { StyledSwitch }\r\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,IAAIC,YAAY,QAAQ,cAAc;AACrD,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,KAAK,QAAQ,UAAU;AAEhC,MAAMH,MAAM,GAAGE,MAAM,CAACD,YAAY,EAAE;EAClCG,IAAI,EAAE;IACJC,SAAS,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC,EAAE;MAAEC,MAAM,EAAE;IAAE,CAAC;EAC1C;AACF,CAAC,CAAC;AAEF,MAAMC,YAAY,GAAGA,CAAC;EACrBC,aAAa,GAAGN,KAAK,CAACO,MAAM,CAACC,IAAI,CAAC,GAAG,CAAC;EACtCC,YAAY,GAAGT,KAAK,CAACO,MAAM,CAACG,KAAK,CAAC,GAAG,CAAC;EACtCC,aAAa,GAAGX,KAAK,CAACO,MAAM,CAACC,IAAI,CAAC,GAAG,CAAC;EACtCI,YAAY,GAAGZ,KAAK,CAACO,MAAM,CAACM,IAAI,CAAC,GAAG,CAAC;EACrCC,SAAS;EACTC,QAAQ;EACR,GAAGC;AACJ,CAAC,KAAK;EACJ,oBACEpB,KAAA,CAAAqB,aAAA,CAACpB,MAAM,EAAAqB,QAAA;IACLC,UAAU,EAAE;MAAEC,KAAK,EAAEd,aAAa;MAAEe,IAAI,EAAEZ;IAAa,CAAE;IACzDa,UAAU,EAAER,SAAS,GAAGF,YAAY,GAAGD,aAAc;IACrDY,mBAAmB,EAAEvB,KAAK,CAACO,MAAM,CAACC,IAAI,CAAC,GAAG,CAAE;IAC5CgB,aAAa,EAAET,QAAS;IACxBU,KAAK,EAAEX;EAAU,GACbE,IAAI,CACX,CAAC;AAEJ,CAAC;AAED,SAASX,YAAY","ignoreList":[]}
@@ -1,76 +0,0 @@
1
- import { Text } from 'react-native';
2
- import { styled } from '../styled';
3
- import { theme } from '../theme';
4
- import { isValidColor, isValidNumber, isValidString } from '../utils';
5
- const StyledText = styled(Text, {
6
- base: {
7
- fontSize: theme.fontSize.normal,
8
- color: theme.colors.gray[800],
9
- fontWeight: theme.fontWeight.normal
10
- },
11
- variants: {
12
- fontWeight: (size = theme.fontWeight.normal) => {
13
- if (!isValidString(size)) {
14
- throw new Error('Invalid fontWeight value');
15
- }
16
- return {
17
- fontWeight: size
18
- };
19
- },
20
- color: (color = theme.colors.gray[800]) => {
21
- if (!isValidColor(color)) {
22
- throw new Error('Invalid color value');
23
- }
24
- return {
25
- color: color
26
- };
27
- },
28
- fontSize: (size = theme.fontSize.normal) => {
29
- if (!isValidNumber(size)) {
30
- throw new Error('Invalid fontSize value');
31
- }
32
- return {
33
- fontSize: size
34
- };
35
- },
36
- numberOfLines: (lines = 0) => {
37
- if (!isValidNumber(lines)) {
38
- throw new Error('Invalid lines value');
39
- }
40
- return {
41
- numberOfLines: lines
42
- };
43
- },
44
- textDecorationLine: {
45
- true: {
46
- textDecorationLine: 'underline'
47
- }
48
- },
49
- flexWrap: 'wrap',
50
- selected: {
51
- true: {
52
- color: theme.colors.gray[1]
53
- },
54
- false: {
55
- color: theme.colors.gray[800]
56
- }
57
- },
58
- fontFamily: font => {
59
- if (!font) return;
60
- return {
61
- fontFamily: font
62
- };
63
- },
64
- textAlign: (align = 'left') => {
65
- const validAlignments = ['auto', 'left', 'right', 'center', 'justify'];
66
- if (!validAlignments.includes(align)) {
67
- throw new Error('Invalid textAlign value');
68
- }
69
- return {
70
- textAlign: align
71
- };
72
- }
73
- }
74
- });
75
- export { StyledText };
76
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["Text","styled","theme","isValidColor","isValidNumber","isValidString","StyledText","base","fontSize","normal","color","colors","gray","fontWeight","variants","size","Error","numberOfLines","lines","textDecorationLine","true","flexWrap","selected","false","fontFamily","font","textAlign","align","validAlignments","includes"],"sources":["index.jsx"],"sourcesContent":["import { Text } from 'react-native'\r\nimport { styled } from '../styled'\r\nimport { theme } from '../theme'\r\nimport { isValidColor, isValidNumber, isValidString } from '../utils'\r\n\r\nconst StyledText = styled(Text, {\r\n base: {\r\n fontSize: theme.fontSize.normal,\r\n color: theme.colors.gray[800],\r\n fontWeight: theme.fontWeight.normal\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 numberOfLines: (lines = 0) => {\r\n if (!isValidNumber(lines)) {\r\n throw new Error('Invalid lines value')\r\n }\r\n return { numberOfLines: lines }\r\n },\r\n textDecorationLine: {\r\n true: {\r\n textDecorationLine: 'underline'\r\n }\r\n },\r\n flexWrap: 'wrap',\r\n selected: {\r\n true: {\r\n color: theme.colors.gray[1]\r\n },\r\n false: {\r\n color: theme.colors.gray[800]\r\n }\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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DE,aAAa,EAAEA,CAACC,KAAK,GAAG,CAAC,KAAK;MAC5B,IAAI,CAACd,aAAa,CAACc,KAAK,CAAC,EAAE;QACzB,MAAM,IAAIF,KAAK,CAAC,qBAAqB,CAAC;MACxC;MACA,OAAO;QAAEC,aAAa,EAAEC;MAAM,CAAC;IACjC,CAAC;IACDC,kBAAkB,EAAE;MAClBC,IAAI,EAAE;QACJD,kBAAkB,EAAE;MACtB;IACF,CAAC;IACDE,QAAQ,EAAE,MAAM;IAChBC,QAAQ,EAAE;MACRF,IAAI,EAAE;QACJV,KAAK,EAAER,KAAK,CAACS,MAAM,CAACC,IAAI,CAAC,CAAC;MAC5B,CAAC;MACDW,KAAK,EAAE;QACLb,KAAK,EAAER,KAAK,CAACS,MAAM,CAACC,IAAI,CAAC,GAAG;MAC9B;IACF,CAAC;IACDY,UAAU,EAAEC,IAAI,IAAI;MAClB,IAAI,CAACA,IAAI,EAAE;MACX,OAAO;QACLD,UAAU,EAAEC;MACd,CAAC;IACH,CAAC;IACDC,SAAS,EAAEA,CAACC,KAAK,GAAG,MAAM,KAAK;MAC7B,MAAMC,eAAe,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC;MACtE,IAAI,CAACA,eAAe,CAACC,QAAQ,CAACF,KAAK,CAAC,EAAE;QACpC,MAAM,IAAIX,KAAK,CAAC,yBAAyB,CAAC;MAC5C;MACA,OAAO;QAAEU,SAAS,EAAEC;MAAM,CAAC;IAC7B;EACF;AACF,CAAC,CAAC;AAEF,SAASrB,UAAU","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["palettes","white","black","lightText","darkText","transparent","pureTransparent","rose","pink","fuchsia","purple","violet","indigo","blue","lightBlue","darkBlue","cyan","teal","emerald","green","lime","yellow","amber","orange","red","warmGray","trueGray","gray","coolGray","blueGray","dark","darkColors","button_hover","button_primary","cardBg","textColor","borderColor","shadowColor","hover","pressed","pressed_secondary","primary","lightColors","theme","colors","space","fontWeight","thin","extraLight","light","normal","medium","semiBold","bold","extraBold","fontSize","base","nano","micro","small","large","xlarge","xxlarge","xxxlarge","splash","textAlign","left","right","center","justify"],"sources":["theme.js"],"sourcesContent":["/* eslint-disable prettier/prettier */\r\n\r\nconst palettes = {\r\n white: '#FFFFFF',\r\n black: '#000000',\r\n lightText: '#FFFFFF',\r\n darkText: '#000000',\r\n transparent: 'rgba(0, 0, 0, 0.5)',\r\n pureTransparent: 'rgba(0, 0, 0, 0)',\r\n rose: {\r\n 50: '#fff1f2',\r\n 100: '#ffe4e6',\r\n 200: '#fecdd3',\r\n 300: '#fda4af',\r\n 400: '#fb7185',\r\n 500: '#f43f5e',\r\n 600: '#e11d48',\r\n 700: '#be123c',\r\n 800: '#9f1239',\r\n 900: '#881337'\r\n },\r\n pink: {\r\n 50: '#fdf2f8',\r\n 100: '#fce7f3',\r\n 200: '#fbcfe8',\r\n 300: '#f9a8d4',\r\n 400: '#f472b6',\r\n 500: '#ec4899',\r\n 600: '#db2777',\r\n 700: '#be185d',\r\n 800: '#9d174d',\r\n 900: '#831843'\r\n },\r\n fuchsia: {\r\n 50: '#fdf4ff',\r\n 100: '#fae8ff',\r\n 200: '#f5d0fe',\r\n 300: '#f0abfc',\r\n 400: '#e879f9',\r\n 500: '#d946ef',\r\n 600: '#c026d3',\r\n 700: '#a21caf',\r\n 800: '#86198f',\r\n 900: '#701a75'\r\n },\r\n purple: {\r\n 50: '#faf5ff',\r\n 100: '#f3e8ff',\r\n 200: '#e9d5ff',\r\n 300: '#d8b4fe',\r\n 400: '#c084fc',\r\n 500: '#a855f7',\r\n 600: '#9333ea',\r\n 700: '#7e22ce',\r\n 800: '#6b21a8',\r\n 900: '#581c87'\r\n },\r\n violet: {\r\n 50: '#f5f3ff',\r\n 100: '#ede9fe',\r\n 200: '#ddd6fe',\r\n 300: '#c4b5fd',\r\n 400: '#a78bfa',\r\n 500: '#8b5cf6',\r\n 600: '#7c3aed',\r\n 700: '#6d28d9',\r\n 800: '#5b21b6',\r\n 900: '#4c1d95'\r\n },\r\n indigo: {\r\n 50: '#eef2ff',\r\n 100: '#e0e7ff',\r\n 200: '#c7d2fe',\r\n 300: '#a5b4fc',\r\n 400: '#818cf8',\r\n 500: '#6366f1',\r\n 600: '#4f46e5',\r\n 700: '#4338ca',\r\n 800: '#3730a3',\r\n 900: '#312e81'\r\n },\r\n blue: {\r\n 50: '#eff6ff',\r\n 100: '#dbeafe',\r\n 200: '#bfdbfe',\r\n 300: '#93c5fd',\r\n 400: '#60a5fa',\r\n 500: '#3b82f6',\r\n 600: '#2563eb',\r\n 700: '#1d4ed8',\r\n 800: '#1e40af',\r\n 900: '#1e3a8a'\r\n },\r\n lightBlue: {\r\n 50: '#f0f9ff',\r\n 100: '#e0f2fe',\r\n 200: '#bae6fd',\r\n 300: '#7dd3fc',\r\n 400: '#38bdf8',\r\n 500: '#0ea5e9',\r\n 600: '#0284c7',\r\n 700: '#0369a1',\r\n 800: '#075985',\r\n 900: '#0c4a6e'\r\n },\r\n darkBlue: {\r\n 50: '#dbf4ff',\r\n 100: '#addbff',\r\n 200: '#7cc2ff',\r\n 300: '#4aa9ff',\r\n 400: '#1a91ff',\r\n 500: '#0077e6',\r\n 600: '#005db4',\r\n 700: '#004282',\r\n 800: '#002851',\r\n 900: '#000e21'\r\n },\r\n cyan: {\r\n 50: '#ecfeff',\r\n 100: '#cffafe',\r\n 200: '#a5f3fc',\r\n 300: '#67e8f9',\r\n 400: '#22d3ee',\r\n 500: '#06b6d4',\r\n 600: '#0891b2',\r\n 700: '#0e7490',\r\n 800: '#155e75',\r\n 900: '#164e63'\r\n },\r\n teal: {\r\n 50: '#f0fdfa',\r\n 100: '#ccfbf1',\r\n 200: '#99f6e4',\r\n 300: '#5eead4',\r\n 400: '#2dd4bf',\r\n 500: '#14b8a6',\r\n 600: '#0d9488',\r\n 700: '#0f766e',\r\n 800: '#115e59',\r\n 900: '#134e4a'\r\n },\r\n emerald: {\r\n 50: '#ecfdf5',\r\n 100: '#d1fae5',\r\n 200: '#a7f3d0',\r\n 300: '#6ee7b7',\r\n 400: '#34d399',\r\n 500: '#10b981',\r\n 600: '#059669',\r\n 700: '#047857',\r\n 800: '#065f46',\r\n 900: '#064e3b'\r\n },\r\n green: {\r\n 50: '#f0fdf4',\r\n 100: '#dcfce7',\r\n 200: '#bbf7d0',\r\n 300: '#86efac',\r\n 400: '#4ade80',\r\n 500: '#22c55e',\r\n 600: '#16a34a',\r\n 700: '#15803d',\r\n 800: '#166534',\r\n 900: '#14532d'\r\n },\r\n lime: {\r\n 50: '#f7fee7',\r\n 100: '#ecfccb',\r\n 200: '#d9f99d',\r\n 300: '#bef264',\r\n 400: '#a3e635',\r\n 500: '#84cc16',\r\n 600: '#65a30d',\r\n 700: '#4d7c0f',\r\n 800: '#3f6212',\r\n 900: '#365314'\r\n },\r\n yellow: {\r\n 50: '#fefce8',\r\n 100: '#fef9c3',\r\n 200: '#fef08a',\r\n 300: '#fde047',\r\n 400: '#facc15',\r\n 500: '#eab308',\r\n 600: '#ca8a04',\r\n 700: '#a16207',\r\n 800: '#854d0e',\r\n 900: '#713f12'\r\n },\r\n amber: {\r\n 50: '#fffbeb',\r\n 100: '#fef3c7',\r\n 200: '#fde68a',\r\n 300: '#fcd34d',\r\n 400: '#fbbf24',\r\n 500: '#f59e0b',\r\n 600: '#d97706',\r\n 700: '#b45309',\r\n 800: '#92400e',\r\n 900: '#78350f'\r\n },\r\n orange: {\r\n 50: '#fff7ed',\r\n 100: '#ffedd5',\r\n 200: '#fed7aa',\r\n 300: '#fdba74',\r\n 400: '#fb923c',\r\n 500: '#f97316',\r\n 600: '#ea580c',\r\n 700: '#c2410c',\r\n 800: '#9a3412',\r\n 900: '#7c2d12'\r\n },\r\n red: {\r\n 50: '#fef2f2',\r\n 100: '#fee2e2',\r\n 200: '#fecaca',\r\n 300: '#fca5a5',\r\n 400: '#f87171',\r\n 500: '#ef4444',\r\n 600: '#dc2626',\r\n 700: '#b91c1c',\r\n 800: '#991b1b',\r\n 900: '#7f1d1d'\r\n },\r\n warmGray: {\r\n 50: '#fafaf9',\r\n 100: '#f5f5f4',\r\n 200: '#e7e5e4',\r\n 300: '#d6d3d1',\r\n 400: '#a8a29e',\r\n 500: '#78716c',\r\n 600: '#57534e',\r\n 700: '#44403c',\r\n 800: '#292524',\r\n 900: '#1c1917'\r\n },\r\n trueGray: {\r\n 50: '#fafafa',\r\n 100: '#f5f5f5',\r\n 200: '#e5e5e5',\r\n 300: '#d4d4d4',\r\n 400: '#a3a3a3',\r\n 500: '#737373',\r\n 600: '#525252',\r\n 700: '#404040',\r\n 800: '#262626',\r\n 900: '#171717'\r\n },\r\n gray: {\r\n 1: '#FFFFFF',\r\n 50: '#fafafa',\r\n 100: '#f4f4f5',\r\n 200: '#e4e4e7',\r\n 300: '#d4d4d8',\r\n 400: '#a1a1aa',\r\n 500: '#71717a',\r\n 600: '#52525b',\r\n 700: '#3f3f46',\r\n 800: '#27272a',\r\n 900: '#18181b'\r\n },\r\n coolGray: {\r\n 50: '#f9fafb',\r\n 100: '#f3f4f6',\r\n 200: '#e5e7eb',\r\n 300: '#d1d5db',\r\n 400: '#9ca3af',\r\n 500: '#6b7280',\r\n 600: '#4b5563',\r\n 700: '#374151',\r\n 800: '#1f2937',\r\n 900: '#111827'\r\n },\r\n blueGray: {\r\n 50: '#f8fafc',\r\n 100: '#f1f5f9',\r\n 200: '#e2e8f0',\r\n 300: '#cbd5e1',\r\n 400: '#94a3b8',\r\n 500: '#64748b',\r\n 600: '#475569',\r\n 700: '#334155',\r\n 800: '#1e293b',\r\n 900: '#0f172a'\r\n },\r\n dark: {\r\n 50: '#18181b',\r\n 100: '#27272a',\r\n 200: '#3f3f46',\r\n 300: '#52525b',\r\n 400: '#71717a',\r\n 500: '#a1a1aa',\r\n 600: '#d4d4d8',\r\n 700: '#e4e4e7',\r\n 800: '#f4f4f5',\r\n 900: '#fafafa'\r\n }\r\n}\r\n\r\nconst darkColors = {\r\n button_hover: palettes.indigo[600],\r\n button_primary: palettes.indigo[500],\r\n cardBg: palettes.coolGray[800],\r\n textColor: palettes.coolGray[50],\r\n borderColor: palettes.coolGray[50],\r\n shadowColor: palettes.coolGray[50],\r\n hover: palettes.blue[800],\r\n pressed: palettes.blue[900],\r\n pressed_secondary: palettes.blue[400],\r\n\r\n primary: palettes.blue[400]\r\n}\r\n\r\nconst lightColors = {\r\n primary: palettes.amber[500],\r\n\r\n button_hover: palettes.indigo[700],\r\n button_primary: palettes.indigo[600],\r\n cardBg: palettes.coolGray[50],\r\n textColor: palettes.coolGray[900],\r\n borderColor: palettes.coolGray[900],\r\n shadowColor: palettes.coolGray[900],\r\n hover: palettes.blue[100],\r\n pressed: palettes.blue[200],\r\n pressed_secondary: palettes.blue[400]\r\n}\r\n\r\nconst theme = {\r\n colors: {\r\n ...palettes,\r\n ...lightColors\r\n },\r\n space: {\r\n '0': 0,\r\n '1': 1,\r\n '2': 2,\r\n '4': 4,\r\n '8': 8,\r\n '16': 16,\r\n '32': 32,\r\n '64': 64,\r\n '128': 128\r\n },\r\n fontWeight: {\r\n thin: '100',\r\n extraLight: '200',\r\n light: '300',\r\n normal: '400',\r\n medium: '500',\r\n semiBold: '600',\r\n bold: '700',\r\n extraBold: '800',\r\n black: '900'\r\n },\r\n fontSize: {\r\n base: 8,\r\n nano: 10,\r\n micro: 12,\r\n small: 14,\r\n medium: 16,\r\n normal: 18,\r\n large: 20,\r\n xlarge: 22,\r\n xxlarge: 26,\r\n xxxlarge: 30,\r\n splash: 40\r\n },\r\n textAlign: {\r\n left: { textAlign: 'left' },\r\n right: { textAlign: 'right' },\r\n center: { textAlign: 'center' },\r\n justify: { textAlign: 'justify' }\r\n }\r\n}\r\n\r\nexport { theme, lightColors, darkColors, palettes }\r\n"],"mappings":"AAAA;;AAEA,MAAMA,QAAQ,GAAG;EACfC,KAAK,EAAE,SAAS;EAChBC,KAAK,EAAE,SAAS;EAChBC,SAAS,EAAE,SAAS;EACpBC,QAAQ,EAAE,SA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