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,94 @@
1
+ "use strict";
2
+
3
+ const DEFAULT_OFFSET = {
4
+ x: 0,
5
+ y: 0
6
+ };
7
+
8
+ /**
9
+ * Returns absolute-position styles that anchor a portal element at the
10
+ * requested screen position, with an optional pixel offset applied on top.
11
+ *
12
+ * ⚠️ The `'center'` variant uses a negative-50 translate trick that works
13
+ * well for modals/toasts but assumes the content has a known or bounded
14
+ * size. For content of variable width/height, prefer wrapping in a
15
+ * container that measures itself and passes explicit offsets instead.
16
+ */
17
+ export function getPositionStyles(position = 'center', offset = DEFAULT_OFFSET) {
18
+ const base = {
19
+ position: 'absolute'
20
+ };
21
+ switch (position) {
22
+ case 'center':
23
+ {
24
+ const style = {
25
+ ...base,
26
+ top: 0,
27
+ left: 0,
28
+ right: 0,
29
+ bottom: 0,
30
+ alignItems: 'center',
31
+ justifyContent: 'center'
32
+ };
33
+ // Only add a transform when the caller explicitly wants an offset —
34
+ // avoids an unnecessary layout pass in the common no-offset case.
35
+ if (offset.x !== 0 || offset.y !== 0) {
36
+ style.transform = [{
37
+ translateX: offset.x
38
+ }, {
39
+ translateY: offset.y
40
+ }];
41
+ }
42
+ return style;
43
+ }
44
+ case 'top':
45
+ return {
46
+ ...base,
47
+ top: offset.y,
48
+ left: 0,
49
+ right: 0,
50
+ alignItems: 'center'
51
+ };
52
+ case 'bottom':
53
+ return {
54
+ ...base,
55
+ bottom: offset.y,
56
+ left: 0,
57
+ right: 0,
58
+ alignItems: 'center'
59
+ };
60
+ case 'top-left':
61
+ return {
62
+ ...base,
63
+ top: offset.y,
64
+ left: offset.x
65
+ };
66
+ case 'top-right':
67
+ return {
68
+ ...base,
69
+ top: offset.y,
70
+ right: offset.x
71
+ };
72
+ case 'bottom-left':
73
+ return {
74
+ ...base,
75
+ bottom: offset.y,
76
+ left: offset.x
77
+ };
78
+ case 'bottom-right':
79
+ return {
80
+ ...base,
81
+ bottom: offset.y,
82
+ right: offset.x
83
+ };
84
+ default:
85
+ {
86
+ // Exhaustive check — TypeScript will error if a new Position variant is
87
+ // added to the union without a corresponding case above.
88
+ const _exhaustive = position;
89
+ console.warn(`[Portal] Unknown position "${_exhaustive}" – falling back to absolute origin.`);
90
+ return base;
91
+ }
92
+ }
93
+ }
94
+ //# sourceMappingURL=position.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["DEFAULT_OFFSET","x","y","getPositionStyles","position","offset","base","style","top","left","right","bottom","alignItems","justifyContent","transform","translateX","translateY","_exhaustive","console","warn"],"sourceRoot":"../../../src","sources":["utiles/position.ts"],"mappings":";;AAGA,MAAMA,cAAsB,GAAG;EAAEC,CAAC,EAAE,CAAC;EAAEC,CAAC,EAAE;AAAE,CAAC;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAC/BC,QAAkB,GAAG,QAAQ,EAC7BC,MAAc,GAAGL,cAAc,EACpB;EACX,MAAMM,IAAe,GAAG;IACtBF,QAAQ,EAAE;EACZ,CAAC;EAED,QAAQA,QAAQ;IAEd,KAAK,QAAQ;MAAE;QACb,MAAMG,KAAgB,GAAG;UACvB,GAAGD,IAAI;UACPE,GAAG,EAAa,CAAC;UACjBC,IAAI,EAAY,CAAC;UACjBC,KAAK,EAAW,CAAC;UACjBC,MAAM,EAAU,CAAC;UACjBC,UAAU,EAAM,QAAQ;UACxBC,cAAc,EAAE;QAClB,CAAC;QACD;QACA;QACA,IAAIR,MAAM,CAACJ,CAAC,KAAK,CAAC,IAAII,MAAM,CAACH,CAAC,KAAK,CAAC,EAAE;UACpCK,KAAK,CAACO,SAAS,GAAG,CAChB;YAAEC,UAAU,EAAEV,MAAM,CAACJ;UAAE,CAAC,EACxB;YAAEe,UAAU,EAAEX,MAAM,CAACH;UAAE,CAAC,CACzB;QACH;QACA,OAAOK,KAAK;MACd;IAEA,KAAK,KAAK;MACR,OAAO;QACL,GAAGD,IAAI;QACPE,GAAG,EAASH,MAAM,CAACH,CAAC;QACpBO,IAAI,EAAQ,CAAC;QACbC,KAAK,EAAO,CAAC;QACbE,UAAU,EAAE;MACd,CAAC;IAEH,KAAK,QAAQ;MACX,OAAO;QACL,GAAGN,IAAI;QACPK,MAAM,EAAMN,MAAM,CAACH,CAAC;QACpBO,IAAI,EAAQ,CAAC;QACbC,KAAK,EAAO,CAAC;QACbE,UAAU,EAAE;MACd,CAAC;IAEH,KAAK,UAAU;MACb,OAAO;QACL,GAAGN,IAAI;QACPE,GAAG,EAAGH,MAAM,CAACH,CAAC;QACdO,IAAI,EAAEJ,MAAM,CAACJ;MACf,CAAC;IAEH,KAAK,WAAW;MACd,OAAO;QACL,GAAGK,IAAI;QACPE,GAAG,EAAIH,MAAM,CAACH,CAAC;QACfQ,KAAK,EAAEL,MAAM,CAACJ;MAChB,CAAC;IAEH,KAAK,aAAa;MAChB,OAAO;QACL,GAAGK,IAAI;QACPK,MAAM,EAAEN,MAAM,CAACH,CAAC;QAChBO,IAAI,EAAIJ,MAAM,CAACJ;MACjB,CAAC;IAEH,KAAK,cAAc;MACjB,OAAO;QACL,GAAGK,IAAI;QACPK,MAAM,EAAEN,MAAM,CAACH,CAAC;QAChBQ,KAAK,EAAGL,MAAM,CAACJ;MACjB,CAAC;IAEH;MAAS;QACP;QACA;QACA,MAAMgB,WAAkB,GAAGb,QAAQ;QACnCc,OAAO,CAACC,IAAI,CAAC,8BAA8BF,WAAW,sCAAgD,CAAC;QACvG,OAAOX,IAAI;MACb;EACF;AACF","ignoreList":[]}
@@ -0,0 +1,401 @@
1
+ "use strict";
2
+
3
+ import { Dimensions, Platform, StatusBar } from 'react-native';
4
+
5
+ // ============================================================================
6
+ // TYPES
7
+ // ============================================================================
8
+
9
+ // ============================================================================
10
+ // STATUS BAR HEIGHT CONSTANTS
11
+ // ============================================================================
12
+
13
+ const STATUSBAR_DEFAULT_HEIGHT = 20;
14
+ const STATUSBAR_ANDROID_FALLBACK_HEIGHT = 24;
15
+ const STATUSBAR_NOTCH_HEIGHT = 44;
16
+ const STATUSBAR_DYNAMIC_ISLAND_HEIGHT = 47;
17
+
18
+ // ============================================================================
19
+ // APPLE DEVICE DIMENSIONS
20
+ // Normalized sizes: width is always the smaller side, height is the larger side
21
+ // ============================================================================
22
+
23
+ // iPhone X / XS / 11 Pro
24
+ const IPHONE_X = {
25
+ width: 375,
26
+ height: 812
27
+ };
28
+
29
+ // iPhone XR / XS Max / 11 / 11 Pro Max
30
+ const IPHONE_XR_XS_MAX = {
31
+ width: 414,
32
+ height: 896
33
+ };
34
+
35
+ // iPhone 12 / 12 Pro / 13 / 13 Pro / 14
36
+ const IPHONE_12_13_14 = {
37
+ width: 390,
38
+ height: 844
39
+ };
40
+
41
+ // iPhone 12 Pro Max / 13 Pro Max / 14 Plus
42
+ const IPHONE_12_PRO_MAX_13_PRO_MAX_14_PLUS = {
43
+ width: 428,
44
+ height: 926
45
+ };
46
+
47
+ // iPhone 14 Pro
48
+ const IPHONE_14_PRO = {
49
+ width: 393,
50
+ height: 852
51
+ };
52
+
53
+ // iPhone 14 Pro Max
54
+ const IPHONE_14_PRO_MAX = {
55
+ width: 430,
56
+ height: 932
57
+ };
58
+
59
+ // iPhone 15 / 15 Pro
60
+ const IPHONE_15_15_PRO = {
61
+ width: 393,
62
+ height: 852
63
+ };
64
+
65
+ // iPhone 15 Plus
66
+ const IPHONE_15_PLUS = {
67
+ width: 430,
68
+ height: 932
69
+ };
70
+
71
+ // iPhone 15 Pro Max
72
+ const IPHONE_15_PRO_MAX = {
73
+ width: 430,
74
+ height: 932
75
+ };
76
+
77
+ // iPhone 16 / possible same logical size as 15/14 Pro family in RN layouts
78
+ const IPHONE_16_FAMILY_SMALL = {
79
+ width: 393,
80
+ height: 852
81
+ };
82
+ const IPHONE_16_FAMILY_LARGE = {
83
+ width: 430,
84
+ height: 932
85
+ };
86
+
87
+ // ============================================================================
88
+ // DEVICE GROUPS
89
+ // ============================================================================
90
+
91
+ const NOTCH_DEVICES = [IPHONE_X, IPHONE_XR_XS_MAX, IPHONE_12_13_14, IPHONE_12_PRO_MAX_13_PRO_MAX_14_PLUS, IPHONE_14_PRO, IPHONE_14_PRO_MAX, IPHONE_15_15_PRO, IPHONE_15_PLUS, IPHONE_15_PRO_MAX, IPHONE_16_FAMILY_SMALL, IPHONE_16_FAMILY_LARGE];
92
+ const DYNAMIC_ISLAND_DEVICES = [IPHONE_14_PRO, IPHONE_14_PRO_MAX, IPHONE_15_15_PRO, IPHONE_15_PLUS, IPHONE_15_PRO_MAX, IPHONE_16_FAMILY_SMALL, IPHONE_16_FAMILY_LARGE];
93
+ const IPHONE_X_FAMILY_DEVICES = [IPHONE_X, IPHONE_XR_XS_MAX];
94
+ const IPHONE_12_FAMILY_DEVICES = [IPHONE_12_13_14, IPHONE_12_PRO_MAX_13_PRO_MAX_14_PLUS];
95
+
96
+ // ============================================================================
97
+ // SCREEN HELPERS
98
+ // ============================================================================
99
+
100
+ /**
101
+ * Returns raw screen info from the window dimensions.
102
+ */
103
+ export function getScreenInfo() {
104
+ const {
105
+ width,
106
+ height
107
+ } = Dimensions.get('window');
108
+ return {
109
+ width,
110
+ height,
111
+ shortSide: Math.min(width, height),
112
+ longSide: Math.max(width, height),
113
+ isLandscape: width > height,
114
+ isPortrait: height >= width
115
+ };
116
+ }
117
+
118
+ /**
119
+ * Returns normalized device size so comparisons work in both portrait and landscape.
120
+ */
121
+ function getNormalizedDeviceSize() {
122
+ const {
123
+ shortSide,
124
+ longSide
125
+ } = getScreenInfo();
126
+ return {
127
+ width: shortSide,
128
+ height: longSide
129
+ };
130
+ }
131
+
132
+ /**
133
+ * Checks whether current device matches the provided size.
134
+ */
135
+ function matchesDeviceSize(target) {
136
+ const current = getNormalizedDeviceSize();
137
+ return current.width === target.width && current.height === target.height;
138
+ }
139
+
140
+ /**
141
+ * Checks whether current device matches one of the sizes in a group.
142
+ */
143
+ function matchesAnyDeviceSize(group) {
144
+ return group.some(matchesDeviceSize);
145
+ }
146
+
147
+ // ============================================================================
148
+ // PLATFORM HELPERS
149
+ // ============================================================================
150
+
151
+ /**
152
+ * Returns true when running on iOS.
153
+ */
154
+ export function isIos() {
155
+ return Platform.OS === 'ios';
156
+ }
157
+
158
+ /**
159
+ * Returns true when running on Android.
160
+ */
161
+ export function isAndroid() {
162
+ return Platform.OS === 'android';
163
+ }
164
+
165
+ /**
166
+ * Returns true when running on tvOS / Apple TV.
167
+ */
168
+ export function isTv() {
169
+ return !!Platform.isTV;
170
+ }
171
+
172
+ /**
173
+ * Returns true when running on an iPad.
174
+ */
175
+ export function isPad() {
176
+ return Platform.OS === 'ios' && !!Platform.isPad;
177
+ }
178
+
179
+ /**
180
+ * Returns true when running on a tablet.
181
+ * For iOS it checks iPad.
182
+ * For Android it uses shortest side heuristic.
183
+ */
184
+ export function isTablet() {
185
+ if (Platform.OS === 'ios') {
186
+ return !!Platform.isPad;
187
+ }
188
+ if (Platform.OS === 'android') {
189
+ const {
190
+ shortSide
191
+ } = getScreenInfo();
192
+ return shortSide >= 600;
193
+ }
194
+ return false;
195
+ }
196
+
197
+ /**
198
+ * Returns true when running on a phone-sized device.
199
+ */
200
+ export function isPhone() {
201
+ return !isTablet() && !isTv();
202
+ }
203
+
204
+ /**
205
+ * Returns true when running on a supported iPhone.
206
+ */
207
+ function isSupportedIPhone() {
208
+ return Platform.OS === 'ios' && !Platform.isPad && !Platform.isTV;
209
+ }
210
+
211
+ // ============================================================================
212
+ // SPECIFIC IPHONE MODEL HELPERS
213
+ // ============================================================================
214
+
215
+ /**
216
+ * Check if running on iPhone X / XS / 11 Pro size.
217
+ */
218
+ export function isIPhoneX() {
219
+ return isSupportedIPhone() && matchesDeviceSize(IPHONE_X);
220
+ }
221
+
222
+ /**
223
+ * Check if running on iPhone XR / XS Max / 11 / 11 Pro Max size.
224
+ */
225
+ export function isIPhoneXMax() {
226
+ return isSupportedIPhone() && matchesDeviceSize(IPHONE_XR_XS_MAX);
227
+ }
228
+
229
+ /**
230
+ * Check if running on iPhone 12 / 12 Pro / 13 / 13 Pro / 14 size.
231
+ */
232
+ export function isIPhone12() {
233
+ return isSupportedIPhone() && matchesDeviceSize(IPHONE_12_13_14);
234
+ }
235
+
236
+ /**
237
+ * Check if running on iPhone 12 Pro Max / 13 Pro Max / 14 Plus size.
238
+ */
239
+ export function isIPhone12Max() {
240
+ return isSupportedIPhone() && matchesDeviceSize(IPHONE_12_PRO_MAX_13_PRO_MAX_14_PLUS);
241
+ }
242
+
243
+ /**
244
+ * Check if running on iPhone 14 Pro / 15 / 15 Pro / 16 small family size.
245
+ */
246
+ export function isIPhone14ProLike() {
247
+ return isSupportedIPhone() && matchesDeviceSize(IPHONE_14_PRO);
248
+ }
249
+
250
+ /**
251
+ * Check if running on iPhone 14 Pro Max / 15 Plus / 15 Pro Max / 16 large family size.
252
+ */
253
+ export function isIPhone14ProMaxLike() {
254
+ return isSupportedIPhone() && matchesDeviceSize(IPHONE_14_PRO_MAX);
255
+ }
256
+
257
+ // ============================================================================
258
+ // NOTCH / DYNAMIC ISLAND HELPERS
259
+ // ============================================================================
260
+
261
+ /**
262
+ * Returns true if device is a known iPhone with notch or Dynamic Island.
263
+ */
264
+ export function isIPhoneWithMonobrow() {
265
+ return isSupportedIPhone() && matchesAnyDeviceSize(NOTCH_DEVICES);
266
+ }
267
+
268
+ /**
269
+ * Returns true if device is part of iPhone X notch family.
270
+ */
271
+ export function isIPhoneXFamily() {
272
+ return isSupportedIPhone() && matchesAnyDeviceSize(IPHONE_X_FAMILY_DEVICES);
273
+ }
274
+
275
+ /**
276
+ * Returns true if device is part of iPhone 12/13/14 notch family.
277
+ */
278
+ export function isIPhone12Family() {
279
+ return isSupportedIPhone() && matchesAnyDeviceSize(IPHONE_12_FAMILY_DEVICES);
280
+ }
281
+
282
+ /**
283
+ * Returns true if device is a known Dynamic Island iPhone.
284
+ */
285
+ export function hasDynamicIsland() {
286
+ return isSupportedIPhone() && matchesAnyDeviceSize(DYNAMIC_ISLAND_DEVICES);
287
+ }
288
+
289
+ /**
290
+ * Alias for notch-style iPhones including Dynamic Island.
291
+ */
292
+ export function hasNotch() {
293
+ return isIPhoneWithMonobrow();
294
+ }
295
+
296
+ // ============================================================================
297
+ // EXPO DETECTION
298
+ // ============================================================================
299
+
300
+ /**
301
+ * Get Expo root object if running inside Expo.
302
+ */
303
+ function getExpoRoot() {
304
+ return global.Expo || global.__expo || global.__exponent;
305
+ }
306
+
307
+ /**
308
+ * Returns true if running inside Expo.
309
+ */
310
+ export function isExpo() {
311
+ return getExpoRoot() !== undefined;
312
+ }
313
+
314
+ // ============================================================================
315
+ // STATUS BAR HELPERS
316
+ // ============================================================================
317
+
318
+ /**
319
+ * Returns the iOS status bar height based on known device families.
320
+ */
321
+ function getIosStatusBarHeight() {
322
+ if (!isSupportedIPhone()) return 0;
323
+ if (hasDynamicIsland()) {
324
+ return STATUSBAR_DYNAMIC_ISLAND_HEIGHT;
325
+ }
326
+ if (hasNotch()) {
327
+ return STATUSBAR_NOTCH_HEIGHT;
328
+ }
329
+ return STATUSBAR_DEFAULT_HEIGHT;
330
+ }
331
+
332
+ /**
333
+ * Returns the Android status bar height.
334
+ */
335
+ function getAndroidStatusBarHeight() {
336
+ return StatusBar.currentHeight ?? STATUSBAR_ANDROID_FALLBACK_HEIGHT;
337
+ }
338
+
339
+ /**
340
+ * Get the status bar height for the current platform.
341
+ *
342
+ * @param options control whether iOS or Android should return 0
343
+ *
344
+ * @example
345
+ * getStatusBarHeight()
346
+ * getStatusBarHeight({ skipIos: false })
347
+ * getStatusBarHeight({ skipAndroid: true, skipIos: false })
348
+ */
349
+ export function getStatusBarHeight(options = {}) {
350
+ const {
351
+ skipAndroid = false,
352
+ skipIos = true
353
+ } = options;
354
+ if (Platform.OS === 'ios') {
355
+ return skipIos ? 0 : getIosStatusBarHeight();
356
+ }
357
+ if (Platform.OS === 'android') {
358
+ return skipAndroid ? 0 : getAndroidStatusBarHeight();
359
+ }
360
+ return 0;
361
+ }
362
+
363
+ /**
364
+ * Returns a top inset-like value useful for layouts that need extra spacing.
365
+ */
366
+ export function getTopInset(options = {}) {
367
+ return getStatusBarHeight(options);
368
+ }
369
+
370
+ // ============================================================================
371
+ // DEBUG / INFO HELPERS
372
+ // ============================================================================
373
+
374
+ /**
375
+ * Returns a readable summary of the current device environment.
376
+ */
377
+ export function getDeviceDebugInfo() {
378
+ const screen = getScreenInfo();
379
+ return {
380
+ platform: Platform.OS,
381
+ version: Platform.Version,
382
+ isPad: isPad(),
383
+ isTablet: isTablet(),
384
+ isPhone: isPhone(),
385
+ isTV: isTv(),
386
+ isExpo: isExpo(),
387
+ width: screen.width,
388
+ height: screen.height,
389
+ shortSide: screen.shortSide,
390
+ longSide: screen.longSide,
391
+ isLandscape: screen.isLandscape,
392
+ isPortrait: screen.isPortrait,
393
+ hasNotch: hasNotch(),
394
+ hasDynamicIsland: hasDynamicIsland(),
395
+ statusBarHeight: getStatusBarHeight({
396
+ skipIos: false,
397
+ skipAndroid: false
398
+ })
399
+ };
400
+ }
401
+ //# sourceMappingURL=statusBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Dimensions","Platform","StatusBar","STATUSBAR_DEFAULT_HEIGHT","STATUSBAR_ANDROID_FALLBACK_HEIGHT","STATUSBAR_NOTCH_HEIGHT","STATUSBAR_DYNAMIC_ISLAND_HEIGHT","IPHONE_X","width","height","IPHONE_XR_XS_MAX","IPHONE_12_13_14","IPHONE_12_PRO_MAX_13_PRO_MAX_14_PLUS","IPHONE_14_PRO","IPHONE_14_PRO_MAX","IPHONE_15_15_PRO","IPHONE_15_PLUS","IPHONE_15_PRO_MAX","IPHONE_16_FAMILY_SMALL","IPHONE_16_FAMILY_LARGE","NOTCH_DEVICES","DYNAMIC_ISLAND_DEVICES","IPHONE_X_FAMILY_DEVICES","IPHONE_12_FAMILY_DEVICES","getScreenInfo","get","shortSide","Math","min","longSide","max","isLandscape","isPortrait","getNormalizedDeviceSize","matchesDeviceSize","target","current","matchesAnyDeviceSize","group","some","isIos","OS","isAndroid","isTv","isTV","isPad","isTablet","isPhone","isSupportedIPhone","isIPhoneX","isIPhoneXMax","isIPhone12","isIPhone12Max","isIPhone14ProLike","isIPhone14ProMaxLike","isIPhoneWithMonobrow","isIPhoneXFamily","isIPhone12Family","hasDynamicIsland","hasNotch","getExpoRoot","global","Expo","__expo","__exponent","isExpo","undefined","getIosStatusBarHeight","getAndroidStatusBarHeight","currentHeight","getStatusBarHeight","options","skipAndroid","skipIos","getTopInset","getDeviceDebugInfo","screen","platform","version","Version","statusBarHeight"],"sourceRoot":"../../../src","sources":["utiles/statusBar.ts"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,QAAQ,EAAEC,SAAS,QAAQ,cAAc;;AAE9D;AACA;AACA;;AAqBA;AACA;AACA;;AAEA,MAAMC,wBAAwB,GAAG,EAAE;AACnC,MAAMC,iCAAiC,GAAG,EAAE;AAC5C,MAAMC,sBAAsB,GAAG,EAAE;AACjC,MAAMC,+BAA+B,GAAG,EAAE;;AAE1C;AACA;AACA;AACA;;AAEA;AACA,MAAMC,QAAoB,GAAG;EAAEC,KAAK,EAAE,GAAG;EAAEC,MAAM,EAAE;AAAI,CAAC;;AAExD;AACA,MAAMC,gBAA4B,GAAG;EAAEF,KAAK,EAAE,GAAG;EAAEC,MAAM,EAAE;AAAI,CAAC;;AAEhE;AACA,MAAME,eAA2B,GAAG;EAAEH,KAAK,EAAE,GAAG;EAAEC,MAAM,EAAE;AAAI,CAAC;;AAE/D;AACA,MAAMG,oCAAgD,GAAG;EAAEJ,KAAK,EAAE,GAAG;EAAEC,MAAM,EAAE;AAAI,CAAC;;AAEpF;AACA,MAAMI,aAAyB,GAAG;EAAEL,KAAK,EAAE,GAAG;EAAEC,MAAM,EAAE;AAAI,CAAC;;AAE7D;AACA,MAAMK,iBAA6B,GAAG;EAAEN,KAAK,EAAE,GAAG;EAA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;IAChBzD,KAAK,EAAEoE,MAAM,CAACpE,KAAK;IACnBC,MAAM,EAAEmE,MAAM,CAACnE,MAAM;IACrBiB,SAAS,EAAEkD,MAAM,CAAClD,SAAS;IAC3BG,QAAQ,EAAE+C,MAAM,CAAC/C,QAAQ;IACzBE,WAAW,EAAE6C,MAAM,CAAC7C,WAAW;IAC/BC,UAAU,EAAE4C,MAAM,CAAC5C,UAAU;IAC7B2B,QAAQ,EAAEA,QAAQ,CAAC,CAAC;IACpBD,gBAAgB,EAAEA,gBAAgB,CAAC,CAAC;IACpCsB,eAAe,EAAEV,kBAAkB,CAAC;MAAEG,OAAO,EAAE,KAAK;MAAED,WAAW,EAAE;IAAM,CAAC;EAC5E,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef } from "react";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
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
+ if (variants) {
15
+ Object.keys(variants).forEach(category => {
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(variantSelected, options) : value);
26
+ }
27
+ });
28
+ }
29
+ return /*#__PURE__*/_jsx(Component, {
30
+ ...props,
31
+ style: styles,
32
+ ref: ref
33
+ });
34
+ });
35
+ };
36
+ export { styled };
37
+ //# sourceMappingURL=styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","jsx","_jsx","styled","Component","base","variants","props","ref","styles","options","Object","keys","forEach","category","variantSelected","variantValue","style","assign","value"],"sourceRoot":"../../../src","s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 -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet } from 'react-native';
4
+
5
+ /**
6
+ * Styles shared across portal rendering components.
7
+ * Kept in a single module so both `PortalManager` and `GlobalPortalProvider`
8
+ * reference the same cached `StyleSheet` object.
9
+ */
10
+ export const portalStyles = StyleSheet.create({
11
+ /** Full-screen semi-transparent overlay rendered behind portal content. */
12
+ backdrop: {
13
+ ...StyleSheet.absoluteFillObject,
14
+ backgroundColor: 'rgba(0, 0, 0, 0.5)'
15
+ },
16
+ /**
17
+ * Touch-capture layer that sits on top of the backdrop colour layer.
18
+ * Using a separate view (rather than making the backdrop itself touchable)
19
+ * lets us keep `pointerEvents="box-none"` on the backdrop so that touches
20
+ * outside the inner layer still fall through when no `onBackdropPress` is
21
+ * needed.
22
+ */
23
+ backdropTouchable: {
24
+ ...StyleSheet.absoluteFillObject
25
+ }
26
+ });
27
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","portalStyles","create","backdrop","absoluteFillObject","backgroundColor","backdropTouchable"],"sourceRoot":"../../../src","sources":["utiles/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;;AAEzC;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,YAAY,GAAGD,UAAU,CAACE,MAAM,CAAC;EAC5C;EACAC,QAAQ,EAAE;IACR,GAAGH,UAAU,CAACI,kBAAkB;IAChCC,eAAe,EAAE;EACnB,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;EACEC,iBAAiB,EAAE;IACjB,GAAGN,UAAU,CAACI;EAChB;AACF,CAAC,CAAC","ignoreList":[]}