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
@@ -0,0 +1,332 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Popup = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
10
+ var _interface = require("./interface.js");
11
+ var _helpers = require("./helpers.js");
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
14
+ // ─── Close button (pure RN, no icon library) ──────────────────────────────────
15
+ const CloseButton = ({
16
+ onPress,
17
+ color,
18
+ bg
19
+ }) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
20
+ onPress: onPress,
21
+ hitSlop: {
22
+ top: 8,
23
+ bottom: 8,
24
+ left: 8,
25
+ right: 8
26
+ },
27
+ style: [close.btn, {
28
+ backgroundColor: bg
29
+ }],
30
+ accessibilityLabel: "Close",
31
+ accessibilityRole: "button",
32
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
33
+ style: [close.icon, {
34
+ color
35
+ }],
36
+ children: "\u2715"
37
+ })
38
+ });
39
+ const close = _reactNative.StyleSheet.create({
40
+ btn: {
41
+ width: 28,
42
+ height: 28,
43
+ borderRadius: 14,
44
+ alignItems: 'center',
45
+ justifyContent: 'center'
46
+ },
47
+ icon: {
48
+ fontSize: 13,
49
+ fontWeight: '700',
50
+ lineHeight: 14
51
+ }
52
+ });
53
+
54
+ // ─── Popup ────────────────────────────────────────────────────────────────────
55
+
56
+ const PopupInner = ({
57
+ children,
58
+ visible,
59
+ overlay = true,
60
+ overlayColor,
61
+ closeOnPressOverlay = true,
62
+ onPressOverlay,
63
+ position = 'bottom',
64
+ animation: animProp,
65
+ duration = 280,
66
+ spring,
67
+ round = true,
68
+ roundRadius = 20,
69
+ safeAreaBottom = false,
70
+ safeAreaTop = false,
71
+ lazyRender = true,
72
+ destroyOnClose = false,
73
+ title,
74
+ subtitle,
75
+ showHandle: showHandleProp,
76
+ showClose = false,
77
+ onClose,
78
+ style,
79
+ overlayStyle,
80
+ headerStyle,
81
+ titleStyle,
82
+ subtitleStyle,
83
+ colors: colorOverrides,
84
+ onOpen,
85
+ onOpened,
86
+ onClosed,
87
+ onRequestClose,
88
+ testID
89
+ }) => {
90
+ // ── Colours ────────────────────────────────────────────────────────────────
91
+ const scheme = (0, _reactNative.useColorScheme)();
92
+ const baseColors = scheme === 'dark' ? _interface.POPUP_COLORS_DARK : _interface.POPUP_COLORS_LIGHT;
93
+ const colors = (0, _react.useMemo)(() => colorOverrides ? {
94
+ ...baseColors,
95
+ ...colorOverrides
96
+ } : baseColors, [baseColors, colorOverrides]);
97
+
98
+ // ── Safe area ──────────────────────────────────────────────────────────────
99
+ const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
100
+
101
+ // ── Animation resolution ───────────────────────────────────────────────────
102
+ const animation = (0, _helpers.resolveAnimation)(animProp, position);
103
+ const HIDDEN = (0, _helpers.hiddenValue)(animation, position);
104
+ const VISIBLE = (0, _helpers.visibleValue)(animation);
105
+
106
+ // ── Render gate ────────────────────────────────────────────────────────────
107
+ const hasEverOpened = (0, _react.useRef)(false);
108
+ const [mounted, setMounted] = (0, _react.useState)(!lazyRender || visible);
109
+ const [modalVisible, setModalVisible] = (0, _react.useState)(visible);
110
+
111
+ // ── Animated values ────────────────────────────────────────────────────────
112
+ const anim = (0, _react.useRef)(new _reactNative.Animated.Value(visible ? VISIBLE : HIDDEN)).current;
113
+ const overlayAnim = (0, _react.useRef)(new _reactNative.Animated.Value(visible ? 1 : 0)).current;
114
+ const isAnimating = (0, _react.useRef)(false);
115
+
116
+ // ── Lifecycle refs ────────────────────────────────────────────────────────
117
+ const onOpenedRef = (0, _react.useRef)(onOpened);
118
+ const onClosedRef = (0, _react.useRef)(onClosed);
119
+ (0, _react.useEffect)(() => {
120
+ onOpenedRef.current = onOpened;
121
+ }, [onOpened]);
122
+ (0, _react.useEffect)(() => {
123
+ onClosedRef.current = onClosed;
124
+ }, [onClosed]);
125
+
126
+ // ── Run animation ──────────────────────────────────────────────────────────
127
+ const runAnimation = (0, _react.useCallback)((toVisible, onDone) => {
128
+ isAnimating.current = true;
129
+ const toValue = toVisible ? VISIBLE : HIDDEN;
130
+ const makeAnim = (val, target) => {
131
+ if (animation === 'none') {
132
+ return _reactNative.Animated.timing(val, {
133
+ toValue: target,
134
+ duration: 0,
135
+ useNativeDriver: val !== overlayAnim
136
+ });
137
+ }
138
+ if (toVisible && spring) {
139
+ return _reactNative.Animated.spring(val, {
140
+ toValue: target,
141
+ damping: spring.damping,
142
+ stiffness: spring.stiffness,
143
+ mass: spring.mass ?? 1,
144
+ useNativeDriver: val !== overlayAnim
145
+ });
146
+ }
147
+ return _reactNative.Animated.timing(val, {
148
+ toValue: target,
149
+ duration,
150
+ easing: toVisible ? _reactNative.Easing.out(_reactNative.Easing.cubic) : _reactNative.Easing.in(_reactNative.Easing.cubic),
151
+ useNativeDriver: val !== overlayAnim
152
+ });
153
+ };
154
+ _reactNative.Animated.parallel([makeAnim(anim, toValue), makeAnim(overlayAnim, toVisible ? 1 : 0)]).start(({
155
+ finished
156
+ }) => {
157
+ isAnimating.current = false;
158
+ if (finished) onDone?.();
159
+ });
160
+ }, [anim, overlayAnim, animation, duration, spring, HIDDEN, VISIBLE]);
161
+
162
+ // ── Sync visible prop ──────────────────────────────────────────────────────
163
+ (0, _react.useEffect)(() => {
164
+ if (visible) {
165
+ if (!mounted) setMounted(true);
166
+ hasEverOpened.current = true;
167
+ setModalVisible(true);
168
+ onOpen?.();
169
+ // Give the Modal a frame to mount before animating
170
+ requestAnimationFrame(() => {
171
+ runAnimation(true, () => onOpenedRef.current?.());
172
+ });
173
+ } else {
174
+ runAnimation(false, () => {
175
+ setModalVisible(false);
176
+ if (destroyOnClose) {
177
+ setMounted(false);
178
+ hasEverOpened.current = false;
179
+ }
180
+ onClosedRef.current?.();
181
+ });
182
+ }
183
+ }, [visible]); // eslint-disable-line react-hooks/exhaustive-deps
184
+
185
+ // ── Android back button ────────────────────────────────────────────────────
186
+ (0, _react.useEffect)(() => {
187
+ if (!visible || _reactNative.Platform.OS !== 'android') return;
188
+ const handler = _reactNative.BackHandler.addEventListener('hardwareBackPress', () => {
189
+ return onRequestClose?.() ?? false;
190
+ });
191
+ return () => handler.remove();
192
+ }, [visible, onRequestClose]);
193
+
194
+ // ── Overlay press ──────────────────────────────────────────────────────────
195
+ const handleOverlayPress = (0, _react.useCallback)(() => {
196
+ onPressOverlay?.();
197
+ if (closeOnPressOverlay) onClose?.();
198
+ }, [onPressOverlay, closeOnPressOverlay, onClose]);
199
+
200
+ // ── Handle visibility ──────────────────────────────────────────────────────
201
+ const showHandle = _showHandle(position, showHandleProp);
202
+
203
+ // ── Animated style for the popup surface ──────────────────────────────────
204
+ const popupAnimatedStyle = (0, _react.useMemo)(() => (0, _helpers.animatedStyle)(animation, position, anim),
205
+ // eslint-disable-next-line react-hooks/exhaustive-deps
206
+ [animation, position] // anim ref is stable
207
+ );
208
+
209
+ // ── Border radius ──────────────────────────────────────────────────────────
210
+ const radiusStyle = (0, _helpers.getBorderRadius)(position, round, roundRadius);
211
+
212
+ // ── Safe area padding ──────────────────────────────────────────────────────
213
+ const safeStyle = {
214
+ paddingBottom: safeAreaBottom ? insets.bottom : 0,
215
+ paddingTop: safeAreaTop ? insets.top : 0
216
+ };
217
+
218
+ // ── Center wrapper (for center position, centers the content) ─────────────
219
+ const positionStyle = (0, _helpers.getPositionStyle)(position);
220
+ if (!mounted && !modalVisible) return null;
221
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Modal, {
222
+ visible: modalVisible,
223
+ transparent: true,
224
+ statusBarTranslucent: true,
225
+ animationType: "none",
226
+ onRequestClose: () => onRequestClose?.(),
227
+ testID: testID,
228
+ children: [overlay && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
229
+ style: [_reactNative.StyleSheet.absoluteFill, {
230
+ backgroundColor: overlayColor ?? colors.overlay,
231
+ opacity: overlayAnim
232
+ }, overlayStyle],
233
+ pointerEvents: "box-none",
234
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
235
+ style: _reactNative.StyleSheet.absoluteFill,
236
+ onPress: handleOverlayPress
237
+ })
238
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
239
+ style: [positionStyle, popupAnimatedStyle],
240
+ pointerEvents: "box-none",
241
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
242
+ style: [S.surface, radiusStyle, safeStyle, {
243
+ backgroundColor: colors.background
244
+ }, style],
245
+ children: [showHandle && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
246
+ style: [S.handle_wrap],
247
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
248
+ style: [S.handle, {
249
+ backgroundColor: colors.handle
250
+ }]
251
+ })
252
+ }), title || subtitle || showClose ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
253
+ style: [S.header, {
254
+ borderBottomColor: colors.headerBorder
255
+ }, showHandle && S.header_no_top_pad, headerStyle],
256
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
257
+ style: S.header_text,
258
+ children: [title ? typeof title === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
259
+ style: [S.header_title, {
260
+ color: colors.headerTitle
261
+ }, titleStyle],
262
+ numberOfLines: 1,
263
+ children: title
264
+ }) : title : null, subtitle ? typeof subtitle === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
265
+ style: [S.header_subtitle, {
266
+ color: colors.headerSubtitle
267
+ }, subtitleStyle],
268
+ numberOfLines: 1,
269
+ children: subtitle
270
+ }) : subtitle : null]
271
+ }), showClose && onClose ? /*#__PURE__*/(0, _jsxRuntime.jsx)(CloseButton, {
272
+ onPress: onClose,
273
+ color: colors.closeIcon,
274
+ bg: colors.closeIconBg
275
+ }) : null]
276
+ }) : null, mounted ? children : null]
277
+ })
278
+ })]
279
+ });
280
+ };
281
+
282
+ // ─── Helpers ──────────────────────────────────────────────────────────────────
283
+
284
+ function _showHandle(position, explicit) {
285
+ if (explicit !== undefined) return explicit;
286
+ return position === 'bottom';
287
+ }
288
+
289
+ // ─── Styles ───────────────────────────────────────────────────────────────────
290
+
291
+ const S = _reactNative.StyleSheet.create({
292
+ surface: {
293
+ overflow: 'hidden'
294
+ },
295
+ handle_wrap: {
296
+ alignItems: 'center',
297
+ paddingTop: 10,
298
+ paddingBottom: 4
299
+ },
300
+ handle: {
301
+ width: 36,
302
+ height: 4,
303
+ borderRadius: 2
304
+ },
305
+ header: {
306
+ flexDirection: 'row',
307
+ alignItems: 'center',
308
+ paddingHorizontal: 20,
309
+ paddingTop: 16,
310
+ paddingBottom: 14,
311
+ borderBottomWidth: _reactNative.StyleSheet.hairlineWidth,
312
+ gap: 12
313
+ },
314
+ header_no_top_pad: {
315
+ paddingTop: 6
316
+ },
317
+ header_text: {
318
+ flex: 1,
319
+ gap: 3
320
+ },
321
+ header_title: {
322
+ fontSize: 17,
323
+ fontWeight: '600',
324
+ letterSpacing: -0.2
325
+ },
326
+ header_subtitle: {
327
+ fontSize: 13,
328
+ fontWeight: '400'
329
+ }
330
+ });
331
+ const Popup = exports.Popup = /*#__PURE__*/(0, _react.memo)(PopupInner);
332
+ //# sourceMappingURL=Popup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_reactNativeSafeAreaContext","_interface","_helpers","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","CloseButton","onPress","color","bg","jsx","TouchableOpacity","hitSlop","top","bottom","left","right","style","close","btn","backgroundColor","accessibilityLabel","accessibilityRole","children","Text","icon","StyleSheet","create","width","height","borderRadius","alignItems","justifyContent","fontSize","fontWeight","lineHeight","PopupInner","visible","overlay","overlayColor","closeOnPressOverlay","onPressOverlay","position","animation","animProp","duration","spring","round","roundRadius","safeAreaBottom","safeAreaTop","lazyRender","destroyOnClose","title","subtitle","showHandle","showHandleProp","showClose","onClose","overlayStyle","headerStyle","titleStyle","subtitleStyle","colors","colorOverrides","onOpen","onOpened","onClosed","onRequestClose","testID","scheme","useColorScheme","baseColors","POPUP_COLORS_DARK","POPUP_COLORS_LIGHT","useMemo","insets","useSafeAreaInsets","resolveAnimation","HIDDEN","hiddenValue","VISIBLE","visibleValue","hasEverOpened","useRef","mounted","setMounted","useState","modalVisible","setModalVisible","anim","Animated","Value","current","overlayAnim","isAnimating","onOpenedRef","onClosedRef","useEffect","runAnimation","useCallback","toVisible","onDone","toValue","makeAnim","val","target","timing","useNativeDriver","damping","stiffness","mass","easing","Easing","out","cubic","in","parallel","start","finished","requestAnimationFrame","Platform","OS","handler","BackHandler","addEventListener","remove","handleOverlayPress","_showHandle","popupAnimatedStyle","animatedStyle","radiusStyle","getBorderRadius","safeStyle","paddingBottom","paddingTop","positionStyle","getPositionStyle","jsxs","Modal","transparent","statusBarTranslucent","animationType","View","absoluteFill","opacity","pointerEvents","Pressable","S","surface","background","handle_wrap","handle","header","borderBottomColor","headerBorder","header_no_top_pad","header_text","header_title","headerTitle","numberOfLines","header_subtitle","headerSubtitle","closeIcon","closeIconBg","explicit","undefined","overflow","flexDirection","paddingHorizontal","borderBottomWidth","hairlineWidth","gap","flex","letterSpacing","Popup","exports","memo"],"sourceRoot":"../../../src","sources":["popup/Popup.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAQA,IAAAC,YAAA,GAAAD,OAAA;AAaA,IAAAE,2BAAA,GAAAF,OAAA;AAEA,IAAAG,UAAA,GAAAH,OAAA;AAOA,IAAAI,QAAA,GAAAJ,OAAA;AAOkB,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,wBAAAO,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAT,uBAAA,YAAAA,CAAAO,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CA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AQ,EAAE;EACZ,CAAC;EACDhB,WAAW,EAAE;IACXxH,UAAU,EAAE,QAAQ;IACpBwG,UAAU,EAAE,EAAE;IACdD,aAAa,EAAE;EACjB,CAAC;EACDkB,MAAM,EAAE;IACN5H,KAAK,EAAS,EAAE;IAChBC,MAAM,EAAQ,CAAC;IACfC,YAAY,EAAE;EAChB,CAAC;EACD2H,MAAM,EAAE;IACNe,aAAa,EAAM,KAAK;IACxBzI,UAAU,EAAS,QAAQ;IAC3B0I,iBAAiB,EAAE,EAAE;IACrBlC,UAAU,EAAS,EAAE;IACrBD,aAAa,EAAM,EAAE;IACrBoC,iBAAiB,EAAEhJ,uBAAU,CAACiJ,aAAa;IAC3CC,GAAG,EAAgB;EACrB,CAAC;EACDhB,iBAAiB,EAAE;IACjBrB,UAAU,EAAE;EACd,CAAC;EACDsB,WAAW,EAAE;IACXgB,IAAI,EAAE,CAAC;IACPD,GAAG,EAAG;EACR,CAAC;EACDd,YAAY,EAAE;IACZ7H,QAAQ,EAAI,EAAE;IACdC,UAAU,EAAE,KAAK;IACjB4I,aAAa,EAAE,CAAC;EAClB,CAAC;EACDb,eAAe,EAAE;IACfhI,QAAQ,EAAI,EAAE;IACdC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEK,MAAM6I,KAAK,GAAAC,OAAA,CAAAD,KAAA,gBAAG,IAAAE,WAAI,EAAC7I,UAAU,CAAC","ignoreList":[]}
@@ -0,0 +1,168 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.animatedStyle = animatedStyle;
7
+ exports.getBorderRadius = getBorderRadius;
8
+ exports.getPositionStyle = getPositionStyle;
9
+ exports.hiddenValue = hiddenValue;
10
+ exports.resolveAnimation = resolveAnimation;
11
+ exports.visibleValue = visibleValue;
12
+ var _reactNative = require("react-native");
13
+ // ─── Resolve default animation per position ───────────────────────────────────
14
+
15
+ function resolveAnimation(animation, position) {
16
+ if (animation) return animation;
17
+ return position === 'center' ? 'scale' : 'slide';
18
+ }
19
+
20
+ // ─── Animated value: "hidden" end-state ───────────────────────────────────────
21
+ // For slide: off-screen offset (px). For fade/scale: target opacity/scale.
22
+
23
+ function hiddenValue(animation, position) {
24
+ if (animation === 'fade') return 0; // opacity 0
25
+ if (animation === 'scale') return 0.88; // scale 0.88
26
+ if (animation === 'none') return 0;
27
+
28
+ // slide — return the off-screen offset in the axis of motion
29
+ const {
30
+ width,
31
+ height
32
+ } = _reactNative.Dimensions.get('window');
33
+ switch (position) {
34
+ case 'top':
35
+ return -height;
36
+ case 'bottom':
37
+ return height;
38
+ case 'left':
39
+ return -width;
40
+ case 'right':
41
+ return width;
42
+ default:
43
+ return 0;
44
+ }
45
+ }
46
+ function visibleValue(animation) {
47
+ if (animation === 'fade') return 1;
48
+ if (animation === 'scale') return 1;
49
+ return 0; // slide: 0 offset = on-screen
50
+ }
51
+
52
+ // ─── Build animated style from current value ──────────────────────────────────
53
+
54
+ function animatedStyle(animation, position, value // Animated.Value
55
+ ) {
56
+ switch (animation) {
57
+ case 'fade':
58
+ return {
59
+ opacity: value
60
+ };
61
+ case 'scale':
62
+ return {
63
+ opacity: value,
64
+ // cross-fade opacity in parallel
65
+ transform: [{
66
+ scale: value
67
+ }]
68
+ };
69
+ case 'slide':
70
+ {
71
+ const isY = position === 'top' || position === 'bottom';
72
+ return {
73
+ transform: [isY ? {
74
+ translateY: value
75
+ } : {
76
+ translateX: value
77
+ }]
78
+ };
79
+ }
80
+ case 'none':
81
+ default:
82
+ return {};
83
+ }
84
+ }
85
+
86
+ // ─── Border radius: round the corners facing the screen interior ──────────────
87
+
88
+ function getBorderRadius(position, round, radius) {
89
+ if (!round || position === 'center') return {};
90
+ const r = radius;
91
+ switch (position) {
92
+ case 'bottom':
93
+ return {
94
+ borderTopLeftRadius: r,
95
+ borderTopRightRadius: r
96
+ };
97
+ case 'top':
98
+ return {
99
+ borderBottomLeftRadius: r,
100
+ borderBottomRightRadius: r
101
+ };
102
+ case 'left':
103
+ return {
104
+ borderTopRightRadius: r,
105
+ borderBottomRightRadius: r
106
+ };
107
+ case 'right':
108
+ return {
109
+ borderTopLeftRadius: r,
110
+ borderBottomLeftRadius: r
111
+ };
112
+ default:
113
+ return {
114
+ borderRadius: r
115
+ };
116
+ }
117
+ }
118
+
119
+ // ─── Absolute position style for the popup surface ────────────────────────────
120
+
121
+ function getPositionStyle(position) {
122
+ const fill = {
123
+ position: 'absolute',
124
+ top: 0,
125
+ left: 0,
126
+ right: 0,
127
+ bottom: 0
128
+ };
129
+ switch (position) {
130
+ case 'bottom':
131
+ return {
132
+ position: 'absolute',
133
+ left: 0,
134
+ right: 0,
135
+ bottom: 0
136
+ };
137
+ case 'top':
138
+ return {
139
+ position: 'absolute',
140
+ left: 0,
141
+ right: 0,
142
+ top: 0
143
+ };
144
+ case 'left':
145
+ return {
146
+ position: 'absolute',
147
+ top: 0,
148
+ left: 0,
149
+ bottom: 0
150
+ };
151
+ case 'right':
152
+ return {
153
+ position: 'absolute',
154
+ top: 0,
155
+ right: 0,
156
+ bottom: 0
157
+ };
158
+ case 'center':
159
+ return {
160
+ ...fill,
161
+ alignItems: 'center',
162
+ justifyContent: 'center'
163
+ };
164
+ default:
165
+ return fill;
166
+ }
167
+ }
168
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","resolveAnimation","animation","position","hiddenValue","width","height","Dimensions","get","visibleValue","animatedStyle","value","opacity","transform","scale","isY","translateY","translateX","getBorderRadius","round","radius","r","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderRadius","getPositionStyle","fill","top","left","right","bottom","alignItems","justifyContent"],"sourceRoot":"../../../src","sources":["popup/helpers.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAKA;;AAEO,SAASC,gBAAgBA,CAC9BC,SAAqC,EACrCC,QAAwB,EACR;EAChB,IAAID,SAAS,EAAE,OAAOA,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EAAE,CAAC;QAAEC,KAAK,EAAE,CAAC;QAAEF,GAAG,EAAE;MAAE,CAAC;IAC5D,KAAK,MAAM;MACT,OAAO;QAAE1B,QAAQ,EAAE,UAAU;QAAE0B,GAAG,EAAE,CAAC;QAAEC,IAAI,EAAE,CAAC;QAAEE,MAAM,EAAE;MAAE,CAAC;IAC7D,KAAK,OAAO;MACV,OAAO;QAAE7B,QAAQ,EAAE,UAAU;QAAE0B,GAAG,EAAE,CAAC;QAAEE,KAAK,EAAE,CAAC;QAAEC,MAAM,EAAE;MAAE,CAAC;IAC9D,KAAK,QAAQ;MACX,OAAO;QACL,GAAGJ,IAAI;QACPK,UAAU,EAAM,QAAQ;QACxBC,cAAc,EAAE;MAClB,CAAC;IACH;MACE,OAAON,IAAI;EACf;AACF","ignoreList":[]}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "POPUP_COLORS_DARK", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _interface.POPUP_COLORS_DARK;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "POPUP_COLORS_LIGHT", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _interface.POPUP_COLORS_LIGHT;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "Popup", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _Popup.Popup;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "animatedStyle", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _helpers.animatedStyle;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "getBorderRadius", {
31
+ enumerable: true,
32
+ get: function () {
33
+ return _helpers.getBorderRadius;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "getPositionStyle", {
37
+ enumerable: true,
38
+ get: function () {
39
+ return _helpers.getPositionStyle;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "resolveAnimation", {
43
+ enumerable: true,
44
+ get: function () {
45
+ return _helpers.resolveAnimation;
46
+ }
47
+ });
48
+ var _Popup = require("./Popup.js");
49
+ var _interface = require("./interface.js");
50
+ var _helpers = require("./helpers.js");
51
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_Popup","require","_interface","_helpers"],"sourceRoot":"../../../src","sources":["popup/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA","ignoreList":[]}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.POPUP_COLORS_LIGHT = exports.POPUP_COLORS_DARK = void 0;
7
+ // ─── Position ─────────────────────────────────────────────────────────────────
8
+
9
+ // ─── Animation style ──────────────────────────────────────────────────────────
10
+
11
+ /**
12
+ * Controls how the popup enters/exits.
13
+ * - `'slide'` — slides in from the edge (default for side positions)
14
+ * - `'fade'` — opacity only
15
+ * - `'scale'` — scale from center (good for center position)
16
+ * - `'none'` — instant, no animation
17
+ */
18
+
19
+ // ─── Color tokens ─────────────────────────────────────────────────────────────
20
+
21
+ const POPUP_COLORS_LIGHT = exports.POPUP_COLORS_LIGHT = {
22
+ background: '#ffffff',
23
+ overlay: 'rgba(0,0,0,0.5)',
24
+ handle: '#d4d4d8',
25
+ headerTitle: '#18181b',
26
+ headerSubtitle: '#71717a',
27
+ headerBorder: '#f4f4f5',
28
+ closeIcon: '#71717a',
29
+ closeIconBg: '#f4f4f5'
30
+ };
31
+ const POPUP_COLORS_DARK = exports.POPUP_COLORS_DARK = {
32
+ background: '#1c1c1e',
33
+ overlay: 'rgba(0,0,0,0.7)',
34
+ handle: '#3f3f46',
35
+ headerTitle: '#f4f4f5',
36
+ headerSubtitle: '#a1a1aa',
37
+ headerBorder: '#27272a',
38
+ closeIcon: '#a1a1aa',
39
+ closeIconBg: '#27272a'
40
+ };
41
+
42
+ // ─── Common lifecycle callbacks ────────────────────────────────────────────────
43
+
44
+ // ─── Popup props ──────────────────────────────────────────────────────────────
45
+ //# sourceMappingURL=interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["POPUP_COLORS_LIGHT","exports","background","overlay","handle","headerTitle","headerSubtitle","headerBorder","closeIcon","closeIconBg","POPUP_COLORS_DARK"],"sourceRoot":"../../../src","sources":["popup/interface.ts"],"mappings":";;;;;;AASA;;AAIA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;;AAqBO,MAAMA,kBAA+B,GAAAC,OAAA,CAAAD,kBAAA,GAAG;EAC7CE,UAAU,EAAM,SAAS;EACzBC,OAAO,EAAS,iBAAiB;EACjCC,MAAM,EAAU,SAAS;EACzBC,WAAW,EAAK,SAAS;EACzBC,cAAc,EAAE,SAAS;EACzBC,YAAY,EAAI,SAAS;EACzBC,SAAS,EAAO,SAAS;EACzBC,WAAW,EAAK;AAClB,CAAC;AAEM,MAAMC,iBAA8B,GAAAT,OAAA,CAAAS,iBAAA,GAAG;EAC5CR,UAAU,EAAM,SAAS;EACzBC,OAAO,EAAS,iBAAiB;EACjCC,MAAM,EAAU,SAAS;EACzBC,WAAW,EAAK,SAAS;EACzBC,cAAc,EAAE,SAAS;EACzBC,YAAY,EAAI,SAAS;EACzBC,SAAS,EAAO,SAAS;EACzBC,WAAW,EAAK;AAClB,CAAC;;AAED;;AAaA","ignoreList":[]}