@wavemaker/app-rn-runtime 11.4.0-next.141707 → 11.4.0-next.1417071

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 (502) hide show
  1. app-rn-runtime/actions/base-action.js.map +1 -1
  2. app-rn-runtime/actions/login-action.js.map +1 -1
  3. app-rn-runtime/actions/logout-action.js.map +1 -1
  4. app-rn-runtime/actions/navigation-action.js.map +1 -1
  5. app-rn-runtime/actions/notification-action.js +5 -4
  6. app-rn-runtime/actions/notification-action.js.map +1 -1
  7. app-rn-runtime/actions/timer-action.js.map +1 -1
  8. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.component.js +1 -1
  9. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.component.js.map +1 -1
  10. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.props.js.map +1 -1
  11. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js +1 -1
  12. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js.map +1 -1
  13. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.props.js.map +1 -1
  14. app-rn-runtime/components/advanced/carousel/carousel.component.js +2 -2
  15. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  16. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  17. app-rn-runtime/components/advanced/carousel/carousel.styles.js +16 -0
  18. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  19. app-rn-runtime/components/advanced/login/login.component.js +1 -1
  20. app-rn-runtime/components/advanced/login/login.component.js.map +1 -1
  21. app-rn-runtime/components/advanced/login/login.props.js.map +1 -1
  22. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js +5 -5
  23. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -1
  24. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.props.js.map +1 -1
  25. app-rn-runtime/components/advanced/webview/webview.component.js +1 -1
  26. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  27. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  28. app-rn-runtime/components/basic/anchor/anchor.component.js +1 -1
  29. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  30. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  31. app-rn-runtime/components/basic/anchor/anchor.styles.js +5 -0
  32. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  33. app-rn-runtime/components/basic/animatedview.component.js +1 -3
  34. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  35. app-rn-runtime/components/basic/audio/audio.component.js +232 -0
  36. app-rn-runtime/components/basic/audio/audio.component.js.map +1 -0
  37. app-rn-runtime/components/basic/audio/audio.props.js +15 -0
  38. app-rn-runtime/components/basic/audio/audio.props.js.map +1 -0
  39. app-rn-runtime/components/basic/audio/audio.styles.js +61 -0
  40. app-rn-runtime/components/basic/audio/audio.styles.js.map +1 -0
  41. app-rn-runtime/components/basic/button/button.component.js +1 -1
  42. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  43. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  44. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  45. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js +1 -1
  46. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js.map +1 -1
  47. app-rn-runtime/components/basic/buttongroup/buttongroup.props.js.map +1 -1
  48. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  49. app-rn-runtime/components/basic/custom/custom.component.js +25 -0
  50. app-rn-runtime/components/basic/custom/custom.component.js.map +1 -0
  51. app-rn-runtime/components/basic/custom/custom.props.js +16 -0
  52. app-rn-runtime/components/basic/custom/custom.props.js.map +1 -0
  53. app-rn-runtime/components/basic/custom/custom.styles.js +18 -0
  54. app-rn-runtime/components/basic/custom/custom.styles.js.map +1 -0
  55. app-rn-runtime/components/basic/icon/icon.component.js +1 -1
  56. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  57. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  58. app-rn-runtime/components/basic/icon/icon.styles.js +5 -0
  59. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  60. app-rn-runtime/components/basic/label/label.component.js +3 -2
  61. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  62. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  63. app-rn-runtime/components/basic/label/label.styles.js +8 -0
  64. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  65. app-rn-runtime/components/basic/lottie/lottie.component.js +137 -0
  66. app-rn-runtime/components/basic/lottie/lottie.component.js.map +1 -0
  67. app-rn-runtime/components/basic/lottie/lottie.props.js +14 -0
  68. app-rn-runtime/components/basic/lottie/lottie.props.js.map +1 -0
  69. app-rn-runtime/components/basic/lottie/lottie.styles.js +11 -0
  70. app-rn-runtime/components/basic/lottie/lottie.styles.js.map +1 -0
  71. app-rn-runtime/components/basic/message/message.component.js +1 -1
  72. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  73. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  74. app-rn-runtime/components/basic/message/message.styles.js +22 -0
  75. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  76. app-rn-runtime/components/basic/modal/modal.component.js.map +1 -1
  77. app-rn-runtime/components/basic/modal/modal.props.js.map +1 -1
  78. app-rn-runtime/components/basic/modal/modal.styles.js.map +1 -1
  79. app-rn-runtime/components/basic/picture/picture.component.js +40 -29
  80. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  81. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  82. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  83. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js +3 -2
  84. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  85. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  86. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +1 -1
  87. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js +1 -1
  88. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  89. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  90. app-rn-runtime/components/basic/progress-circle/progress-circle.styles.js.map +1 -1
  91. app-rn-runtime/components/basic/search/local-data-provider.js.map +1 -1
  92. app-rn-runtime/components/basic/search/search.component.js +5 -2
  93. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  94. app-rn-runtime/components/basic/search/search.props.js +1 -0
  95. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  96. app-rn-runtime/components/basic/search/search.styles.js +47 -0
  97. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  98. app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +1 -1
  99. app-rn-runtime/components/basic/spinner/spinner.component.js +13 -11
  100. app-rn-runtime/components/basic/spinner/spinner.component.js.map +1 -1
  101. app-rn-runtime/components/basic/spinner/spinner.props.js.map +1 -1
  102. app-rn-runtime/components/basic/spinner/spinner.styles.js +8 -0
  103. app-rn-runtime/components/basic/spinner/spinner.styles.js.map +1 -1
  104. app-rn-runtime/components/basic/video/video.component.js +56 -0
  105. app-rn-runtime/components/basic/video/video.component.js.map +1 -0
  106. app-rn-runtime/components/basic/video/video.props.js +22 -0
  107. app-rn-runtime/components/basic/video/video.props.js.map +1 -0
  108. app-rn-runtime/components/basic/video/video.styles.js +11 -0
  109. app-rn-runtime/components/basic/video/video.styles.js.map +1 -0
  110. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  111. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  112. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  113. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  114. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  115. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  116. app-rn-runtime/components/chart/column-chart/column-chart.component.js.map +1 -1
  117. app-rn-runtime/components/chart/donut-chart/donut-chart.component.js.map +1 -1
  118. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js.map +1 -1
  119. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  120. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  121. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +1 -1
  122. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  123. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  124. app-rn-runtime/components/chart/theme/chart.theme.js.map +1 -1
  125. app-rn-runtime/components/container/accordion/accordion.component.js +63 -119
  126. app-rn-runtime/components/container/accordion/accordion.component.js.map +1 -1
  127. app-rn-runtime/components/container/accordion/accordion.props.js +1 -0
  128. app-rn-runtime/components/container/accordion/accordion.props.js.map +1 -1
  129. app-rn-runtime/components/container/accordion/accordion.styles.js +14 -4
  130. app-rn-runtime/components/container/accordion/accordion.styles.js.map +1 -1
  131. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +43 -8
  132. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  133. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.props.js.map +1 -1
  134. app-rn-runtime/components/container/container.component.js +1 -1
  135. app-rn-runtime/components/container/container.component.js.map +1 -1
  136. app-rn-runtime/components/container/container.props.js.map +1 -1
  137. app-rn-runtime/components/container/container.styles.js.map +1 -1
  138. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js +1 -1
  139. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js.map +1 -1
  140. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.props.js.map +1 -1
  141. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js +1 -1
  142. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js.map +1 -1
  143. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.props.js.map +1 -1
  144. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js +1 -1
  145. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js.map +1 -1
  146. app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js.map +1 -1
  147. app-rn-runtime/components/container/layoutgrid/layoutgrid.styles.js.map +1 -1
  148. app-rn-runtime/components/container/linearlayout/linearlayout.component.js +1 -1
  149. app-rn-runtime/components/container/linearlayout/linearlayout.component.js.map +1 -1
  150. app-rn-runtime/components/container/linearlayout/linearlayout.props.js.map +1 -1
  151. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js +1 -1
  152. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +1 -1
  153. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +1 -1
  154. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js +1 -1
  155. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js.map +1 -1
  156. app-rn-runtime/components/container/panel/panel-content/panel-content.props.js.map +1 -1
  157. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js +1 -1
  158. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js.map +1 -1
  159. app-rn-runtime/components/container/panel/panel-footer/panel-footer.props.js.map +1 -1
  160. app-rn-runtime/components/container/panel/panel.component.js +1 -1
  161. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  162. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  163. app-rn-runtime/components/container/panel/panel.styles.js +9 -0
  164. app-rn-runtime/components/container/panel/panel.styles.js.map +1 -1
  165. app-rn-runtime/components/container/partial-host.component.js.map +1 -1
  166. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +42 -9
  167. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  168. app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js.map +1 -1
  169. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +12 -2
  170. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  171. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js +5 -2
  172. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js.map +1 -1
  173. app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js.map +1 -1
  174. app-rn-runtime/components/container/tabs/tabs.component.js +84 -65
  175. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  176. app-rn-runtime/components/container/tabs/tabs.props.js +1 -0
  177. app-rn-runtime/components/container/tabs/tabs.props.js.map +1 -1
  178. app-rn-runtime/components/container/tabs/tabs.styles.js +40 -1
  179. app-rn-runtime/components/container/tabs/tabs.styles.js.map +1 -1
  180. app-rn-runtime/components/container/tile/tile.component.js +1 -1
  181. app-rn-runtime/components/container/tile/tile.component.js.map +1 -1
  182. app-rn-runtime/components/container/tile/tile.props.js.map +1 -1
  183. app-rn-runtime/components/container/tile/tile.styles.js.map +1 -1
  184. app-rn-runtime/components/container/wizard/wizard.component.js +16 -7
  185. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  186. app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
  187. app-rn-runtime/components/container/wizard/wizard.styles.js +53 -1
  188. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  189. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js +1 -1
  190. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  191. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  192. app-rn-runtime/components/data/card/card-content/card-content.component.js +1 -1
  193. app-rn-runtime/components/data/card/card-content/card-content.component.js.map +1 -1
  194. app-rn-runtime/components/data/card/card-content/card-content.props.js.map +1 -1
  195. app-rn-runtime/components/data/card/card-footer/card-footer.component.js +1 -1
  196. app-rn-runtime/components/data/card/card-footer/card-footer.component.js.map +1 -1
  197. app-rn-runtime/components/data/card/card-footer/card-footer.props.js.map +1 -1
  198. app-rn-runtime/components/data/card/card.component.js +1 -1
  199. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  200. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  201. app-rn-runtime/components/data/form/form-action/form-action.component.js +0 -6
  202. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  203. app-rn-runtime/components/data/form/form-action/form-action.props.js.map +1 -1
  204. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  205. app-rn-runtime/components/data/form/form-body/form-body.component.js +1 -1
  206. app-rn-runtime/components/data/form/form-body/form-body.component.js.map +1 -1
  207. app-rn-runtime/components/data/form/form-body/form-body.props.js.map +1 -1
  208. app-rn-runtime/components/data/form/form-field/form-field.component.js +3 -3
  209. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  210. app-rn-runtime/components/data/form/form-field/form-field.props.js.map +1 -1
  211. app-rn-runtime/components/data/form/form-field/form-field.styles.js.map +1 -1
  212. app-rn-runtime/components/data/form/form-footer/form-footer.component.js +1 -1
  213. app-rn-runtime/components/data/form/form-footer/form-footer.component.js.map +1 -1
  214. app-rn-runtime/components/data/form/form-footer/form-footer.props.js.map +1 -1
  215. app-rn-runtime/components/data/form/form.component.js +3 -33
  216. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  217. app-rn-runtime/components/data/form/form.props.js.map +1 -1
  218. app-rn-runtime/components/data/form/form.styles.js.map +1 -1
  219. app-rn-runtime/components/data/list/list-template/list-template.component.js +1 -1
  220. app-rn-runtime/components/data/list/list-template/list-template.component.js.map +1 -1
  221. app-rn-runtime/components/data/list/list-template/list-template.props.js.map +1 -1
  222. app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +1 -1
  223. app-rn-runtime/components/data/list/list.component.js +86 -21
  224. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  225. app-rn-runtime/components/data/list/list.props.js +2 -0
  226. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  227. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  228. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js +3 -2
  229. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  230. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  231. app-rn-runtime/components/device/camera/camera.component.js +9 -4
  232. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  233. app-rn-runtime/components/device/camera/camera.props.js +0 -1
  234. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  235. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  236. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  237. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  238. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  239. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js +9 -0
  240. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -1
  241. app-rn-runtime/components/dialogs/dialog/dialog.component.js +1 -1
  242. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  243. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  244. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js +1 -1
  245. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js.map +1 -1
  246. app-rn-runtime/components/dialogs/dialogactions/dialogactions.props.js.map +1 -1
  247. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js +1 -1
  248. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -1
  249. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.props.js.map +1 -1
  250. app-rn-runtime/components/input/basedataset/basedataset.component.js.map +1 -1
  251. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  252. app-rn-runtime/components/input/baseinput/baseinput.component.js +8 -1
  253. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  254. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  255. app-rn-runtime/components/input/basenumber/basenumber.component.js +1 -1
  256. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  257. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  258. app-rn-runtime/components/input/calendar/calendar.component.js +1 -1
  259. app-rn-runtime/components/input/calendar/calendar.component.js.map +1 -1
  260. app-rn-runtime/components/input/calendar/calendar.props.js.map +1 -1
  261. app-rn-runtime/components/input/calendar/calendar.styles.js +22 -0
  262. app-rn-runtime/components/input/calendar/calendar.styles.js.map +1 -1
  263. app-rn-runtime/components/input/calendar/views/month-view.js +1 -0
  264. app-rn-runtime/components/input/calendar/views/month-view.js.map +1 -1
  265. app-rn-runtime/components/input/checkbox/checkbox.component.js +1 -16
  266. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  267. app-rn-runtime/components/input/checkbox/checkbox.props.js.map +1 -1
  268. app-rn-runtime/components/input/checkboxset/checkboxset.component.js +0 -38
  269. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  270. app-rn-runtime/components/input/checkboxset/checkboxset.props.js.map +1 -1
  271. app-rn-runtime/components/input/chips/chips.component.js +1 -0
  272. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  273. app-rn-runtime/components/input/chips/chips.props.js.map +1 -1
  274. app-rn-runtime/components/input/composite/composite.component.js +1 -1
  275. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  276. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  277. app-rn-runtime/components/input/currency/currency.component.js +6 -4
  278. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  279. app-rn-runtime/components/input/currency/currency.props.js +1 -1
  280. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  281. app-rn-runtime/components/input/currency/currency.styles.js +9 -0
  282. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  283. app-rn-runtime/components/input/epoch/base-datetime.component.js +6 -3
  284. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  285. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  286. app-rn-runtime/components/input/epoch/date/date.props.js.map +1 -1
  287. app-rn-runtime/components/input/epoch/date/date.styles.js +9 -0
  288. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  289. app-rn-runtime/components/input/epoch/date-picker.component.js.map +1 -1
  290. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  291. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  292. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +9 -0
  293. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  294. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  295. app-rn-runtime/components/input/epoch/time/time.props.js.map +1 -1
  296. app-rn-runtime/components/input/epoch/time/time.styles.js +9 -0
  297. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  298. app-rn-runtime/components/input/fileupload/fileupload.component.js +1 -1
  299. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  300. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  301. app-rn-runtime/components/input/number/number.component.js +6 -13
  302. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  303. app-rn-runtime/components/input/number/number.props.js +1 -1
  304. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  305. app-rn-runtime/components/input/number/number.styles.js +5 -0
  306. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  307. app-rn-runtime/components/input/radioset/radioset.component.js +0 -40
  308. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  309. app-rn-runtime/components/input/radioset/radioset.props.js.map +1 -1
  310. app-rn-runtime/components/input/rating/rating.component.js +2 -2
  311. app-rn-runtime/components/input/rating/rating.component.js.map +1 -1
  312. app-rn-runtime/components/input/rating/rating.props.js.map +1 -1
  313. app-rn-runtime/components/input/select/select.component.js +1 -1
  314. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  315. app-rn-runtime/components/input/select/select.props.js.map +1 -1
  316. app-rn-runtime/components/input/select/select.styles.js +10 -0
  317. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  318. app-rn-runtime/components/input/slider/slider.component.js +3 -2
  319. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  320. app-rn-runtime/components/input/slider/slider.props.js.map +1 -1
  321. app-rn-runtime/components/input/switch/switch.component.js +19 -22
  322. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  323. app-rn-runtime/components/input/switch/switch.props.js.map +1 -1
  324. app-rn-runtime/components/input/switch/switch.styles.js +43 -7
  325. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  326. app-rn-runtime/components/input/text/text.component.js +6 -13
  327. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  328. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  329. app-rn-runtime/components/input/text/text.styles.js +5 -0
  330. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  331. app-rn-runtime/components/input/textarea/textarea.component.js +5 -13
  332. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  333. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  334. app-rn-runtime/components/input/textarea/textarea.styles.js +5 -0
  335. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  336. app-rn-runtime/components/input/toggle/toggle.component.js +17 -11
  337. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  338. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  339. app-rn-runtime/components/input/toggle/toggle.styles.js +28 -3
  340. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  341. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js +1 -1
  342. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  343. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  344. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  345. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  346. app-rn-runtime/components/navigation/basenav/basenav.props.js +1 -0
  347. app-rn-runtime/components/navigation/basenav/basenav.props.js.map +1 -1
  348. app-rn-runtime/components/navigation/menu/menu.component.js +2 -1
  349. app-rn-runtime/components/navigation/menu/menu.component.js.map +1 -1
  350. app-rn-runtime/components/navigation/menu/menu.props.js.map +1 -1
  351. app-rn-runtime/components/navigation/menu/menu.styles.js +6 -0
  352. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  353. app-rn-runtime/components/navigation/navbar/navbar.component.js +2 -0
  354. app-rn-runtime/components/navigation/navbar/navbar.component.js.map +1 -1
  355. app-rn-runtime/components/navigation/navbar/navbar.props.js.map +1 -1
  356. app-rn-runtime/components/navigation/navbar/navbar.styles.js.map +1 -1
  357. app-rn-runtime/components/navigation/navitem/navitem.component.js +4 -3
  358. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  359. app-rn-runtime/components/navigation/navitem/navitem.props.js +1 -0
  360. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  361. app-rn-runtime/components/navigation/navitem/navitem.styles.js.map +1 -1
  362. app-rn-runtime/components/navigation/popover/popover.component.js +1 -1
  363. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  364. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  365. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  366. app-rn-runtime/components/page/content/content.component.js +1 -1
  367. app-rn-runtime/components/page/content/content.component.js.map +1 -1
  368. app-rn-runtime/components/page/left-panel/left-panel.component.js +1 -1
  369. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  370. app-rn-runtime/components/page/left-panel/left-panel.props.js.map +1 -1
  371. app-rn-runtime/components/page/page-content/page-content.component.js +2 -2
  372. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  373. app-rn-runtime/components/page/page-content/page-content.props.js.map +1 -1
  374. app-rn-runtime/components/page/page.component.js +1 -1
  375. app-rn-runtime/components/page/page.component.js.map +1 -1
  376. app-rn-runtime/components/page/partial/partial.component.js +1 -1
  377. app-rn-runtime/components/page/partial/partial.component.js.map +1 -1
  378. app-rn-runtime/components/page/partial-container/partial-container.component.js +1 -1
  379. app-rn-runtime/components/page/partial-container/partial-container.component.js.map +1 -1
  380. app-rn-runtime/components/page/partial-container/partial-container.props.js.map +1 -1
  381. app-rn-runtime/components/page/partial-container/partial-container.styles.js +2 -1
  382. app-rn-runtime/components/page/partial-container/partial-container.styles.js.map +1 -1
  383. app-rn-runtime/components/page/tabbar/tabbar.component.js +2 -1
  384. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  385. app-rn-runtime/components/page/tabbar/tabbar.props.js.map +1 -1
  386. app-rn-runtime/components/prefab/prefab-container.component.js +1 -1
  387. app-rn-runtime/components/prefab/prefab-container.component.js.map +1 -1
  388. app-rn-runtime/core/asset.provider.js +5 -0
  389. app-rn-runtime/core/asset.provider.js.map +1 -0
  390. app-rn-runtime/core/base.component.js +131 -54
  391. app-rn-runtime/core/base.component.js.map +1 -1
  392. app-rn-runtime/core/components/textinput.component.js +37 -0
  393. app-rn-runtime/core/components/textinput.component.js.map +1 -0
  394. app-rn-runtime/core/device/camera-service.js.map +1 -1
  395. app-rn-runtime/core/device/scan-service.js.map +1 -1
  396. app-rn-runtime/core/display.manager.js.map +1 -1
  397. app-rn-runtime/core/event-notifier.js.map +1 -1
  398. app-rn-runtime/core/fixed-view.component.js.map +1 -1
  399. app-rn-runtime/core/formatters.js.map +1 -1
  400. app-rn-runtime/core/i18n.service.js +2 -0
  401. app-rn-runtime/core/i18n.service.js.map +1 -0
  402. app-rn-runtime/core/if.component.js +3 -3
  403. app-rn-runtime/core/if.component.js.map +1 -1
  404. app-rn-runtime/core/imageSizeEstimator.js +1 -0
  405. app-rn-runtime/core/imageSizeEstimator.js.map +1 -1
  406. app-rn-runtime/core/injector.js +16 -1
  407. app-rn-runtime/core/injector.js.map +1 -1
  408. app-rn-runtime/core/logger.js +4 -1
  409. app-rn-runtime/core/logger.js.map +1 -1
  410. app-rn-runtime/core/modal.service.js.map +1 -1
  411. app-rn-runtime/core/navigation.service.js.map +1 -1
  412. app-rn-runtime/core/network.service.js +17 -15
  413. app-rn-runtime/core/network.service.js.map +1 -1
  414. app-rn-runtime/core/partial.service.js.map +1 -1
  415. app-rn-runtime/core/props.provider.js.map +1 -1
  416. app-rn-runtime/core/scroll-view.component.js.map +1 -1
  417. app-rn-runtime/core/security.service.js.map +1 -1
  418. app-rn-runtime/core/spinner.service.js.map +1 -1
  419. app-rn-runtime/core/storage.service.js.map +1 -1
  420. app-rn-runtime/core/tappable.component.js +20 -4
  421. app-rn-runtime/core/tappable.component.js.map +1 -1
  422. app-rn-runtime/core/toast.service.js.map +1 -1
  423. app-rn-runtime/core/utils.js +9 -0
  424. app-rn-runtime/core/utils.js.map +1 -1
  425. app-rn-runtime/core/viewport.js.map +1 -1
  426. app-rn-runtime/gestures/swipe.animation.js +110 -0
  427. app-rn-runtime/gestures/swipe.animation.js.map +1 -0
  428. app-rn-runtime/package.json +33 -32
  429. app-rn-runtime/runtime/App.js +38 -22
  430. app-rn-runtime/runtime/App.js.map +1 -1
  431. app-rn-runtime/runtime/App.navigator.js +13 -14
  432. app-rn-runtime/runtime/App.navigator.js.map +1 -1
  433. app-rn-runtime/runtime/base-fragment.component.js +10 -8
  434. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  435. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  436. app-rn-runtime/runtime/base-partial.component.js.map +1 -1
  437. app-rn-runtime/runtime/base-prefab.component.js +1 -5
  438. app-rn-runtime/runtime/base-prefab.component.js.map +1 -1
  439. app-rn-runtime/runtime/lib-patch.js.map +1 -1
  440. app-rn-runtime/runtime/memo.component.js.map +1 -1
  441. app-rn-runtime/runtime/navigator/drawer.navigator.js +4 -0
  442. app-rn-runtime/runtime/navigator/drawer.navigator.js.map +1 -1
  443. app-rn-runtime/runtime/navigator/stack.navigator.js +5 -1
  444. app-rn-runtime/runtime/navigator/stack.navigator.js.map +1 -1
  445. app-rn-runtime/runtime/services/app-display-manager.service.js.map +1 -1
  446. app-rn-runtime/runtime/services/app-i18n.service.js +20 -0
  447. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  448. app-rn-runtime/runtime/services/app-modal.service.js.map +1 -1
  449. app-rn-runtime/runtime/services/app-security.service.js +7 -7
  450. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  451. app-rn-runtime/runtime/services/app-spinner.service.js +8 -3
  452. app-rn-runtime/runtime/services/app-spinner.service.js.map +1 -1
  453. app-rn-runtime/runtime/services/app-toast.service.js +1 -1
  454. app-rn-runtime/runtime/services/app-toast.service.js.map +1 -1
  455. app-rn-runtime/runtime/services/device/calendar-service.js.map +1 -1
  456. app-rn-runtime/runtime/services/device/camera-service.js +30 -9
  457. app-rn-runtime/runtime/services/device/camera-service.js.map +1 -1
  458. app-rn-runtime/runtime/services/device/contacts-service.js.map +1 -1
  459. app-rn-runtime/runtime/services/device/location-service.js.map +1 -1
  460. app-rn-runtime/runtime/services/device/permissions.js.map +1 -1
  461. app-rn-runtime/runtime/services/device/scan-service.js +15 -14
  462. app-rn-runtime/runtime/services/device/scan-service.js.map +1 -1
  463. app-rn-runtime/runtime/services/partial.service.js.map +1 -1
  464. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  465. app-rn-runtime/runtime/watcher.js.map +1 -1
  466. app-rn-runtime/styles/MediaQueryList.js.map +1 -1
  467. app-rn-runtime/styles/background.component.js +298 -0
  468. app-rn-runtime/styles/background.component.js.map +1 -0
  469. app-rn-runtime/styles/style-prop.validator.js +42 -8
  470. app-rn-runtime/styles/style-prop.validator.js.map +1 -1
  471. app-rn-runtime/styles/style-props.js +93 -0
  472. app-rn-runtime/styles/style-props.js.map +1 -0
  473. app-rn-runtime/styles/theme.js +14 -40
  474. app-rn-runtime/styles/theme.js.map +1 -1
  475. app-rn-runtime/styles/theme.variables.js +53 -1
  476. app-rn-runtime/styles/theme.variables.js.map +1 -1
  477. app-rn-runtime/variables/base-variable.js +3 -3
  478. app-rn-runtime/variables/base-variable.js.map +1 -1
  479. app-rn-runtime/variables/device/calendar/create-event.operation.js.map +1 -1
  480. app-rn-runtime/variables/device/calendar/delete-event.operation.js.map +1 -1
  481. app-rn-runtime/variables/device/calendar/get-events.operation.js.map +1 -1
  482. app-rn-runtime/variables/device/camera/capture-image.operation.js.map +1 -1
  483. app-rn-runtime/variables/device/camera/capture-video.operation.js.map +1 -1
  484. app-rn-runtime/variables/device/contacts/get-contacts.operation.js.map +1 -1
  485. app-rn-runtime/variables/device/device/app-info.operation.js.map +1 -1
  486. app-rn-runtime/variables/device/device/current-geo-position.operation.js.map +1 -1
  487. app-rn-runtime/variables/device/device/device-info.operation.js.map +1 -1
  488. app-rn-runtime/variables/device/device/network-info.operation.js.map +1 -1
  489. app-rn-runtime/variables/device/device/vibrate.operation.js.map +1 -1
  490. app-rn-runtime/variables/device/file/upload-file.operation.js +43 -21
  491. app-rn-runtime/variables/device/file/upload-file.operation.js.map +1 -1
  492. app-rn-runtime/variables/device/operation.provider.js.map +1 -1
  493. app-rn-runtime/variables/device/scan/scan.operation.js.map +1 -1
  494. app-rn-runtime/variables/device-variable.js.map +1 -1
  495. app-rn-runtime/variables/http.service.js +4 -13
  496. app-rn-runtime/variables/http.service.js.map +1 -1
  497. app-rn-runtime/variables/model-variable.js.map +1 -1
  498. app-rn-runtime/variables/service-variable.js +22 -11
  499. app-rn-runtime/variables/service-variable.js.map +1 -1
  500. app-rn-runtime/variables/utils/dataset-util.js.map +1 -1
  501. app-rn-runtime/variables/utils/inflight-queue.js.map +1 -1
  502. app-rn-runtime/variables/utils/variable.utils.js.map +1 -1
@@ -1,4 +1,5 @@
1
1
  import { isNumber, isString } from 'lodash-es';
2
+ import * as Font from 'expo-font';
2
3
  const isColor = c => true;
3
4
  const isStringOrNumber = v => isNumber(v) || isString(v);
4
5
  const isIn = function () {
@@ -36,6 +37,10 @@ const STYLE_PROP_TYPE_INFO = {
36
37
  isValid: isColor,
37
38
  ref: 'https://reactnative.dev/docs/image-style-props#backgroundcolor'
38
39
  },
40
+ backgroundImage: {
41
+ isValid: isString,
42
+ ref: 'http://www.wavemakeronline.com/app-runtime/latest/rn/style-docs/widgets/view'
43
+ },
39
44
  borderBottomColor: {
40
45
  isValid: isColor,
41
46
  ref: 'https://reactnative.dev/docs/view-style-props#borderbottomcolor'
@@ -48,6 +53,18 @@ const STYLE_PROP_TYPE_INFO = {
48
53
  isValid: isNumber,
49
54
  ref: 'https://reactnative.dev/docs/image-style-props#borderbottomleftradius'
50
55
  },
56
+ backgroundPosition: {
57
+ isValid: isStringOrNumber,
58
+ ref: 'http://www.wavemakeronline.com/app-runtime/latest/rn/style-docs/widgets/view'
59
+ },
60
+ backgroundRepeat: {
61
+ isValid: isIn('repeat', 'repeat-x', 'repeat-y', 'no-repeat'),
62
+ ref: 'http://www.wavemakeronline.com/app-runtime/latest/rn/style-docs/widgets/view'
63
+ },
64
+ backgroundSize: {
65
+ isValid: isStringOrNumber,
66
+ ref: 'http://www.wavemakeronline.com/app-runtime/latest/rn/style-docs/widgets/view'
67
+ },
51
68
  borderBottomRightRadius: {
52
69
  isValid: isNumber,
53
70
  ref: 'https://reactnative.dev/docs/image-style-props#borderbottomrightradius'
@@ -89,7 +106,7 @@ const STYLE_PROP_TYPE_INFO = {
89
106
  ref: 'https://reactnative.dev/docs/image-style-props#borderradius'
90
107
  },
91
108
  borderRightColor: {
92
- isValid: isNumber,
109
+ isValid: isColor,
93
110
  ref: 'https://reactnative.dev/docs/view-style-props#borderrightcolor'
94
111
  },
95
112
  borderRightWidth: {
@@ -108,12 +125,8 @@ const STYLE_PROP_TYPE_INFO = {
108
125
  isValid: isIn('solid', 'dotted', 'dashed'),
109
126
  ref: 'https://reactnative.dev/docs/view-style-props#borderstyle'
110
127
  },
111
- borderTopColor: {
112
- isValid: isNumber,
113
- ref: 'https://reactnative.dev/docs/view-style-props#bordertopcolor'
114
- },
115
128
  borderTopEndRadius: {
116
- isValid: isNumber,
129
+ isValid: isColor,
117
130
  ref: 'https://reactnative.dev/docs/view-style-props#bordertopendradius'
118
131
  },
119
132
  borderTopLeftRadius: {
@@ -128,6 +141,10 @@ const STYLE_PROP_TYPE_INFO = {
128
141
  isValid: isNumber,
129
142
  ref: 'https://reactnative.dev/docs/view-style-props#bordertopstartradius'
130
143
  },
144
+ borderTopColor: {
145
+ isValid: isColor,
146
+ ref: 'https://reactnative.dev/docs/layout-props#bordertopwidth'
147
+ },
131
148
  borderTopWidth: {
132
149
  isValid: isNumber,
133
150
  ref: 'https://reactnative.dev/docs/layout-props#bordertopwidth'
@@ -189,7 +206,8 @@ const STYLE_PROP_TYPE_INFO = {
189
206
  ref: 'https://reactnative.dev/docs/layout-props#flexwrap'
190
207
  },
191
208
  fontFamily: {
192
- isValid: isString,
209
+ isValid: v => Font.isLoaded(v),
210
+ errorMsg: v => `Font '${v}' is not loaded. Font family names are case-sensitive. Please add font either in theme or app.`,
193
211
  ref: 'https://reactnative.dev/docs/text-style-props#fontfamily'
194
212
  },
195
213
  fontSize: {
@@ -408,6 +426,10 @@ const STYLE_PROP_TYPE_INFO = {
408
426
  isValid: isStringOrNumber,
409
427
  ref: 'https://reactnative.dev/docs/layout-props#top'
410
428
  },
429
+ userSelect: {
430
+ isValid: isIn('text', 'none'),
431
+ ref: 'valid values to user-select are text, none.'
432
+ },
411
433
  verticalAlign: {
412
434
  isValid: isIn('auto', 'top', 'bottom', 'middle'),
413
435
  ref: 'https://reactnative.dev/docs/text-style-props#verticalalign-android'
@@ -431,6 +453,18 @@ export const getStyleReference = name => {
431
453
  };
432
454
  export const isValidStyleProp = (name, value) => {
433
455
  const info = STYLE_PROP_TYPE_INFO[name];
434
- return !info || info.isValid(value);
456
+ return (name === null || name === void 0 ? void 0 : name.trim().startsWith('__')) || info && info.isValid(value);
457
+ };
458
+ export const getErrorMessage = (name, value) => {
459
+ const info = STYLE_PROP_TYPE_INFO[name];
460
+ name = name.replace(/([A-Z])/g, g => `-${g[0].toLowerCase()}`);
461
+ if (info) {
462
+ if (info.errorMsg) {
463
+ return info.errorMsg(value);
464
+ } else {
465
+ return `'${value}' is not a valid value to '${name}'.`;
466
+ }
467
+ }
468
+ return `'${name}' is not a supported style property in one or all Native Platforms.`;
435
469
  };
436
470
  //# sourceMappingURL=style-prop.validator.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["isNumber","isString","isColor","c","isStringOrNumber","v","isIn","obj","arr","forEach","k","STYLE_PROP_TYPE_INFO","alignContent","isValid","ref","alignItems","alignSelf","aspectRatio","backfaceVisibility","backgroundColor","borderBottomColor","borderBottomEndRadius","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStartRadius","borderBottomWidth","borderColor","borderCurve","borderEndColor","borderEndWidth","borderLeftColor","borderLeftWidth","borderRadius","borderRightColor","borderRightWidth","borderStartColor","borderStartWidth","borderStyle","borderTopColor","borderTopEndRadius","borderTopLeftRadius","borderTopRightRadius","borderTopStartRadius","borderTopWidth","borderWidth","bottom","color","columnGap","direction","display","elevation","end","flex","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","fontFamily","fontSize","fontStyle","fontVariant","fontWeight","gap","height","justifyContent","left","letterSpacing","lineHeight","margin","marginBottom","marginEnd","marginHorizontal","marginLeft","marginRight","marginStart","marginTop","marginVertical","maxHeight","maxWidth","minHeight","minWidth","opacity","overflow","overlayColor","padding","paddingBottom","paddingEnd","paddingHorizontal","paddingLeft","paddingRight","paddingStart","paddingTop","paddingVertical","pointerEvents","position","resizeMode","right","rowGap","shadowColor","shadowOpacity","shadowRadius","start","textAlign","textAlignVertical","textDecorationColor","textDecorationLine","textDecorationStyle","textShadowColor","textShadowRadius","textTransform","tintColor","top","verticalAlign","width","writingDirection","zIndex","getStyleReference","name","info","isValidStyleProp","value"],"sources":["style-prop.validator.ts"],"sourcesContent":["import {isNumber, isNil, isString } from 'lodash-es';\n\nconst isColor = (c: string) => true;\nconst isStringOrNumber = (v: any) => isNumber(v) || isString(v);\nconst isIn = (...arr: any) => {\n const obj = {};\n arr.forEach((v: any) => {\n (obj as any)[v] = true;\n })\n return (k: any) => (obj as any)[k] === true ;\n};\n\nconst STYLE_PROP_TYPE_INFO = {\n alignContent: {\n isValid: isIn('flex-start', 'flex-end', 'center', 'stretch', 'space-between', 'space-around'),\n ref: 'https://reactnative.dev/docs/layout-props#aligncontent'\n },\n alignItems: {\n isValid: isIn('flex-start', 'flex-end', 'center', 'stretch', 'baseline'),\n ref: 'https://reactnative.dev/docs/layout-props#alignitems'\n },\n alignSelf: {\n isValid: isIn('auto', 'flex-start', 'flex-end', 'center', 'stretch', 'baseline'),\n ref: 'https://reactnative.dev/docs/layout-props#alignself'\n },\n aspectRatio: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#aspectratio'\n },\n backfaceVisibility: {\n isValid: isIn('visible', 'hidden'),\n ref: 'https://reactnative.dev/docs/image-style-props#backfacevisibility'\n },\n backgroundColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/image-style-props#backgroundcolor'\n },\n borderBottomColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/view-style-props#borderbottomcolor'\n },\n borderBottomEndRadius: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/view-style-props#borderbottomendradius'\n },\n borderBottomLeftRadius: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/image-style-props#borderbottomleftradius'\n },\n borderBottomRightRadius: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/image-style-props#borderbottomrightradius'\n },\n borderBottomStartRadius: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/view-style-props#borderbottomstartradius'\n },\n borderBottomWidth: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#borderbottomwidth'\n },\n borderColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/image-style-props#bordercolor'\n },\n borderCurve: {\n isValid: isIn('circular', 'continuous'),\n ref: 'https://reactnative.dev/docs/view-style-props#bordercurve-ios'\n },\n borderEndColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/view-style-props#borderendcolor'\n },\n borderEndWidth: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#borderendwidth'\n },\n borderLeftColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/view-style-props#borderleftcolor'\n },\n borderLeftWidth: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#borderleftwidth'\n },\n borderRadius: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/image-style-props#borderradius'\n },\n borderRightColor: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/view-style-props#borderrightcolor'\n },\n borderRightWidth: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#borderrightwidth'\n },\n borderStartColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/view-style-props#borderstartcolor'\n },\n borderStartWidth: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#borderstartwidth'\n },\n borderStyle: {\n isValid: isIn('solid', 'dotted', 'dashed'),\n ref: 'https://reactnative.dev/docs/view-style-props#borderstyle'\n },\n borderTopColor: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/view-style-props#bordertopcolor'\n },\n borderTopEndRadius: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/view-style-props#bordertopendradius'\n },\n borderTopLeftRadius: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/image-style-props#bordertopleftradius'\n },\n borderTopRightRadius: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/image-style-props#bordertoprightradius'\n },\n borderTopStartRadius: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/view-style-props#bordertopstartradius'\n },\n borderTopWidth: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#bordertopwidth'\n },\n borderWidth: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/image-style-props#borderwidth'\n },\n bottom: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#bottom'\n },\n color: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/text-style-props#color'\n },\n columnGap: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#columngap'\n },\n direction: {\n isValid: isIn('inherit', 'LTR', 'RTL'),\n ref: 'https://reactnative.dev/docs/layout-props#direction'\n },\n display: {\n isValid: isIn('none', 'flex'),\n ref: 'https://reactnative.dev/docs/layout-props#display'\n },\n elevation: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/view-style-props#elevation-android'\n },\n end: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#end'\n },\n flex: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#flex'\n },\n flexBasis: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#flexbasis'\n },\n flexDirection: {\n isValid: isIn('column', 'row', 'column-reverse', 'row-reverse'),\n ref: 'https://reactnative.dev/docs/layout-props#flexdirection'\n },\n flexGrow: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#flexgrow'\n },\n flexShrink: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#flexshrink'\n },\n flexWrap: {\n isValid: isIn('wrap', 'nowrap', 'wrap-reverse'),\n ref: 'https://reactnative.dev/docs/layout-props#flexwrap'\n },\n fontFamily: {\n isValid: isString,\n ref: 'https://reactnative.dev/docs/text-style-props#fontfamily'\n },\n fontSize: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/text-style-props#fontsize'\n },\n fontStyle: {\n isValid: isIn('normal', 'italic'),\n ref: 'https://reactnative.dev/docs/text-style-props#fontstyle'\n },\n fontVariant: {\n isValid: (v: any) => isIn('small-caps', 'oldstyle-nums', 'lining-nums', 'tabular-nums', 'proportional-nums') || isString(v),\n ref: 'https://reactnative.dev/docs/text-style-props#fontvariant'\n },\n fontWeight: {\n isValid: (v: any) => isIn('normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900') || isNumber(v),\n ref: 'https://reactnative.dev/docs/text-style-props#fontweight'\n },\n gap: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#gap'\n },\n height: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#height'\n },\n justifyContent: {\n isValid: isIn('flex-start', 'flex-end', 'center', 'space-between', 'space-around', 'space-evenly'),\n ref: 'https://reactnative.dev/docs/layout-props#justifycontent'\n },\n left: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#left'\n },\n letterSpacing: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/text-style-props#letterspacing'\n },\n lineHeight: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/text-style-props#lineheight'\n },\n margin: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#margin'\n },\n marginBottom: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#marginbottom'\n },\n marginEnd: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#marginend'\n },\n marginHorizontal: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#marginhorizontal'\n },\n marginLeft: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#marginleft'\n },\n marginRight: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#marginright'\n },\n marginStart: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#marginstart'\n },\n marginTop: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#margintop'\n },\n marginVertical: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#marginvertical'\n },\n maxHeight: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#maxheight'\n },\n maxWidth: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#maxwidth'\n },\n minHeight: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#minheight'\n },\n minWidth: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#minwidth'\n },\n opacity: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/image-style-props#opacity'\n },\n overflow: {\n isValid: isIn('visible', 'hidden', 'scroll'),\n ref: 'https://reactnative.dev/docs/image-style-props#overflow'\n },\n overlayColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/image-style-props#overlaycolor-android'\n },\n padding: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#padding'\n },\n paddingBottom: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#paddingbottom'\n },\n paddingEnd: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#paddingend'\n },\n paddingHorizontal: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#paddinghorizontal'\n },\n paddingLeft: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#paddingleft'\n },\n paddingRight: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#paddingright'\n },\n paddingStart: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#paddingstart'\n },\n paddingTop: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#paddingtop'\n },\n paddingVertical: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#paddingvertical'\n },\n pointerEvents: {\n isValid: isIn('auto', 'box-none', 'box-only', 'none' ),\n ref: 'https://reactnative.dev/docs/view-style-props#pointerevents'\n },\n position: {\n isValid: isIn('absolute', 'relative', 'fixed'),\n ref: 'https://reactnative.dev/docs/layout-props#position'\n },\n resizeMode: {\n isValid: isIn('cover', 'contain', 'stretch', 'repeat', 'center'),\n ref: 'https://reactnative.dev/docs/image-style-props#resizemode'\n },\n right: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#right'\n },\n rowGap: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#rowgap'\n },\n shadowColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/shadow-props#shadowcolor'\n },\n shadowOpacity: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/shadow-props#shadowopacity-ios'\n },\n shadowRadius: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/shadow-props#shadowradius-ios'\n },\n start: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#start'\n },\n textAlign: {\n isValid: isIn('auto', 'left', 'right', 'center', 'justify'),\n ref: 'https://reactnative.dev/docs/text-style-props#textalign'\n },\n textAlignVertical: {\n isValid: isIn('auto', 'top', 'bottom', 'center'),\n ref: 'https://reactnative.dev/docs/text-style-props#textalignvertical-android'\n },\n textDecorationColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/text-style-props#textdecorationcolor-ios'\n },\n textDecorationLine: {\n isValid: isIn('none', 'underline', 'line-through', 'underline line-through'),\n ref: 'https://reactnative.dev/docs/text-style-props#textdecorationline'\n },\n textDecorationStyle: {\n isValid: isIn('solid', 'double', 'dotted', 'dashed'),\n ref: 'https://reactnative.dev/docs/text-style-props#textdecorationstyle-ios'\n },\n textShadowColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/text-style-props#textshadowcolor'\n },\n textShadowRadius: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/text-style-props#textshadowoffset'\n },\n textTransform: {\n isValid: isIn('none', 'uppercase', 'lowercase', 'capitalize'),\n ref: 'https://reactnative.dev/docs/text-style-props#texttransform'\n },\n tintColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/image-style-props#tintcolor'\n },\n top: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#top'\n },\n verticalAlign: {\n isValid: isIn('auto', 'top', 'bottom', 'middle'),\n ref: 'https://reactnative.dev/docs/text-style-props#verticalalign-android'\n },\n width: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#width'\n },\n writingDirection: {\n isValid: isIn('auto', 'ltr', 'rtl'),\n ref: 'https://reactnative.dev/docs/text-style-props#writingdirection-ios'\n },\n zIndex: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#zindex'\n },\n};\n\nexport const getStyleReference = (name: string) => {\n const info = (STYLE_PROP_TYPE_INFO as any)[name];\n return !info || info.ref;\n};\n\nexport const isValidStyleProp = (name: string, value: any) => {\n const info = (STYLE_PROP_TYPE_INFO as any)[name];\n return !info || info.isValid(value);\n};"],"mappings":"AAAA,SAAQA,QAAQ,EAASC,QAAQ,QAAQ,WAAW;AAEpD,MAAMC,OAAO,GAAIC,CAAS,IAAK,IAAI;AACnC,MAAMC,gBAAgB,GAAIC,CAAM,IAAKL,QAAQ,CAACK,CAAC,CAAC,IAAIJ,QAAQ,CAACI,CAAC,CAAC;AAC/D,MAAMC,IAAI,GAAG,YAAiB;EAC1B,MAAMC,GAAG,GAAG,CAAC,CAAC;EAAC,kCADFC,GAAG;IAAHA,GAAG;EAAA;EAEhBA,GAAG,CAACC,OAAO,CAAEJ,CAAM,IAAK;IACnBE,GAAG,CAASF,CAAC,CAAC,GAAG,IAAI;EAC1B,CAAC,CAAC;EACF,OAAQK,CAAM,IAAMH,GAAG,CAASG,CAAC,CAAC,KAAK,IAAI;AAC/C,CAAC;AAED,MAAMC,oBAAoB,GAAG;EACzBC,Y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,CAAC"}
1
+ {"version":3,"names":["isNumber","isString","Font","isColor","c","isStringOrNumber","v","isIn","obj","_len","arguments","length","arr","Array","_key","forEach","k","STYLE_PROP_TYPE_INFO","alignContent","isValid","ref","alignItems","alignSelf","aspectRatio","backfaceVisibility","backgroundColor","backgroundImage","borderBottomColor","borderBottomEndRadius","borderBottomLeftRadius","backgroundPosition","backgroundRepeat","backgroundSize","borderBottomRightRadius","borderBottomStartRadius","borderBottomWidth","borderColor","borderCurve","borderEndColor","borderEndWidth","borderLeftColor","borderLeftWidth","borderRadius","borderRightColor","borderRightWidth","borderStartColor","borderStartWidth","borderStyle","borderTopEndRadius","borderTopLeftRadius","borderTopRightRadius","borderTopStartRadius","borderTopColor","borderTopWidth","borderWidth","bottom","color","columnGap","direction","display","elevation","end","flex","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","fontFamily","isLoaded","errorMsg","fontSize","fontStyle","fontVariant","fontWeight","gap","height","justifyContent","left","letterSpacing","lineHeight","margin","marginBottom","marginEnd","marginHorizontal","marginLeft","marginRight","marginStart","marginTop","marginVertical","maxHeight","maxWidth","minHeight","minWidth","opacity","overflow","overlayColor","padding","paddingBottom","paddingEnd","paddingHorizontal","paddingLeft","paddingRight","paddingStart","paddingTop","paddingVertical","pointerEvents","position","resizeMode","right","rowGap","shadowColor","shadowOpacity","shadowRadius","start","textAlign","textAlignVertical","textDecorationColor","textDecorationLine","textDecorationStyle","textShadowColor","textShadowRadius","textTransform","tintColor","top","userSelect","verticalAlign","width","writingDirection","zIndex","getStyleReference","name","info","isValidStyleProp","value","trim","startsWith","getErrorMessage","replace","g","toLowerCase"],"sources":["style-prop.validator.ts"],"sourcesContent":["import {isNumber, isNil, isString } from 'lodash-es';\nimport * as Font from 'expo-font';\n\nconst isColor = (c: string) => true;\nconst isStringOrNumber = (v: any) => isNumber(v) || isString(v);\nconst isIn = (...arr: any) => {\n const obj = {};\n arr.forEach((v: any) => {\n (obj as any)[v] = true;\n })\n return (k: any) => (obj as any)[k] === true ;\n};\n\nconst STYLE_PROP_TYPE_INFO = {\n alignContent: {\n isValid: isIn('flex-start', 'flex-end', 'center', 'stretch', 'space-between', 'space-around'),\n ref: 'https://reactnative.dev/docs/layout-props#aligncontent'\n },\n alignItems: {\n isValid: isIn('flex-start', 'flex-end', 'center', 'stretch', 'baseline'),\n ref: 'https://reactnative.dev/docs/layout-props#alignitems'\n },\n alignSelf: {\n isValid: isIn('auto', 'flex-start', 'flex-end', 'center', 'stretch', 'baseline'),\n ref: 'https://reactnative.dev/docs/layout-props#alignself'\n },\n aspectRatio: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#aspectratio'\n },\n backfaceVisibility: {\n isValid: isIn('visible', 'hidden'),\n ref: 'https://reactnative.dev/docs/image-style-props#backfacevisibility'\n },\n backgroundColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/image-style-props#backgroundcolor'\n },\n backgroundImage: {\n isValid: isString,\n ref: 'http://www.wavemakeronline.com/app-runtime/latest/rn/style-docs/widgets/view'\n },\n borderBottomColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/view-style-props#borderbottomcolor'\n },\n borderBottomEndRadius: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/view-style-props#borderbottomendradius'\n },\n borderBottomLeftRadius: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/image-style-props#borderbottomleftradius'\n },\n backgroundPosition: {\n isValid: isStringOrNumber,\n ref: 'http://www.wavemakeronline.com/app-runtime/latest/rn/style-docs/widgets/view'\n },\n backgroundRepeat: {\n isValid: isIn('repeat', 'repeat-x', 'repeat-y', 'no-repeat'),\n ref: 'http://www.wavemakeronline.com/app-runtime/latest/rn/style-docs/widgets/view'\n },\n backgroundSize: {\n isValid: isStringOrNumber,\n ref: 'http://www.wavemakeronline.com/app-runtime/latest/rn/style-docs/widgets/view'\n },\n borderBottomRightRadius: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/image-style-props#borderbottomrightradius'\n },\n borderBottomStartRadius: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/view-style-props#borderbottomstartradius'\n },\n borderBottomWidth: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#borderbottomwidth'\n },\n borderColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/image-style-props#bordercolor'\n },\n borderCurve: {\n isValid: isIn('circular', 'continuous'),\n ref: 'https://reactnative.dev/docs/view-style-props#bordercurve-ios'\n },\n borderEndColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/view-style-props#borderendcolor'\n },\n borderEndWidth: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#borderendwidth'\n },\n borderLeftColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/view-style-props#borderleftcolor'\n },\n borderLeftWidth: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#borderleftwidth'\n },\n borderRadius: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/image-style-props#borderradius'\n },\n borderRightColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/view-style-props#borderrightcolor'\n },\n borderRightWidth: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#borderrightwidth'\n },\n borderStartColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/view-style-props#borderstartcolor'\n },\n borderStartWidth: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#borderstartwidth'\n },\n borderStyle: {\n isValid: isIn('solid', 'dotted', 'dashed'),\n ref: 'https://reactnative.dev/docs/view-style-props#borderstyle'\n },\n borderTopEndRadius: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/view-style-props#bordertopendradius'\n },\n borderTopLeftRadius: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/image-style-props#bordertopleftradius'\n },\n borderTopRightRadius: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/image-style-props#bordertoprightradius'\n },\n borderTopStartRadius: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/view-style-props#bordertopstartradius'\n },\n borderTopColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/layout-props#bordertopwidth'\n },\n borderTopWidth: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#bordertopwidth'\n },\n borderWidth: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/image-style-props#borderwidth'\n },\n bottom: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#bottom'\n },\n color: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/text-style-props#color'\n },\n columnGap: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#columngap'\n },\n direction: {\n isValid: isIn('inherit', 'LTR', 'RTL'),\n ref: 'https://reactnative.dev/docs/layout-props#direction'\n },\n display: {\n isValid: isIn('none', 'flex'),\n ref: 'https://reactnative.dev/docs/layout-props#display'\n },\n elevation: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/view-style-props#elevation-android'\n },\n end: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#end'\n },\n flex: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#flex'\n },\n flexBasis: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#flexbasis'\n },\n flexDirection: {\n isValid: isIn('column', 'row', 'column-reverse', 'row-reverse'),\n ref: 'https://reactnative.dev/docs/layout-props#flexdirection'\n },\n flexGrow: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#flexgrow'\n },\n flexShrink: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#flexshrink'\n },\n flexWrap: {\n isValid: isIn('wrap', 'nowrap', 'wrap-reverse'),\n ref: 'https://reactnative.dev/docs/layout-props#flexwrap'\n },\n fontFamily: {\n isValid: (v: string) => Font.isLoaded(v),\n errorMsg: (v: string) => `Font '${v}' is not loaded. Font family names are case-sensitive. Please add font either in theme or app.`,\n ref: 'https://reactnative.dev/docs/text-style-props#fontfamily'\n },\n fontSize: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/text-style-props#fontsize'\n },\n fontStyle: {\n isValid: isIn('normal', 'italic'),\n ref: 'https://reactnative.dev/docs/text-style-props#fontstyle'\n },\n fontVariant: {\n isValid: (v: any) => isIn('small-caps', 'oldstyle-nums', 'lining-nums', 'tabular-nums', 'proportional-nums') || isString(v),\n ref: 'https://reactnative.dev/docs/text-style-props#fontvariant'\n },\n fontWeight: {\n isValid: (v: any) => isIn('normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900') || isNumber(v),\n ref: 'https://reactnative.dev/docs/text-style-props#fontweight'\n },\n gap: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#gap'\n },\n height: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#height'\n },\n justifyContent: {\n isValid: isIn('flex-start', 'flex-end', 'center', 'space-between', 'space-around', 'space-evenly'),\n ref: 'https://reactnative.dev/docs/layout-props#justifycontent'\n },\n left: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#left'\n },\n letterSpacing: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/text-style-props#letterspacing'\n },\n lineHeight: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/text-style-props#lineheight'\n },\n margin: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#margin'\n },\n marginBottom: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#marginbottom'\n },\n marginEnd: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#marginend'\n },\n marginHorizontal: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#marginhorizontal'\n },\n marginLeft: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#marginleft'\n },\n marginRight: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#marginright'\n },\n marginStart: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#marginstart'\n },\n marginTop: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#margintop'\n },\n marginVertical: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#marginvertical'\n },\n maxHeight: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#maxheight'\n },\n maxWidth: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#maxwidth'\n },\n minHeight: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#minheight'\n },\n minWidth: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#minwidth'\n },\n opacity: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/image-style-props#opacity'\n },\n overflow: {\n isValid: isIn('visible', 'hidden', 'scroll'),\n ref: 'https://reactnative.dev/docs/image-style-props#overflow'\n },\n overlayColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/image-style-props#overlaycolor-android'\n },\n padding: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#padding'\n },\n paddingBottom: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#paddingbottom'\n },\n paddingEnd: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#paddingend'\n },\n paddingHorizontal: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#paddinghorizontal'\n },\n paddingLeft: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#paddingleft'\n },\n paddingRight: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#paddingright'\n },\n paddingStart: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#paddingstart'\n },\n paddingTop: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#paddingtop'\n },\n paddingVertical: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#paddingvertical'\n },\n pointerEvents: {\n isValid: isIn('auto', 'box-none', 'box-only', 'none' ),\n ref: 'https://reactnative.dev/docs/view-style-props#pointerevents'\n },\n position: {\n isValid: isIn('absolute', 'relative', 'fixed'),\n ref: 'https://reactnative.dev/docs/layout-props#position'\n },\n resizeMode: {\n isValid: isIn('cover', 'contain', 'stretch', 'repeat', 'center'),\n ref: 'https://reactnative.dev/docs/image-style-props#resizemode'\n },\n right: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#right'\n },\n rowGap: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#rowgap'\n },\n shadowColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/shadow-props#shadowcolor'\n },\n shadowOpacity: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/shadow-props#shadowopacity-ios'\n },\n shadowRadius: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/shadow-props#shadowradius-ios'\n },\n start: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#start'\n },\n textAlign: {\n isValid: isIn('auto', 'left', 'right', 'center', 'justify'),\n ref: 'https://reactnative.dev/docs/text-style-props#textalign'\n },\n textAlignVertical: {\n isValid: isIn('auto', 'top', 'bottom', 'center'),\n ref: 'https://reactnative.dev/docs/text-style-props#textalignvertical-android'\n },\n textDecorationColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/text-style-props#textdecorationcolor-ios'\n },\n textDecorationLine: {\n isValid: isIn('none', 'underline', 'line-through', 'underline line-through'),\n ref: 'https://reactnative.dev/docs/text-style-props#textdecorationline'\n },\n textDecorationStyle: {\n isValid: isIn('solid', 'double', 'dotted', 'dashed'),\n ref: 'https://reactnative.dev/docs/text-style-props#textdecorationstyle-ios'\n },\n textShadowColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/text-style-props#textshadowcolor'\n },\n textShadowRadius: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/text-style-props#textshadowoffset'\n },\n textTransform: {\n isValid: isIn('none', 'uppercase', 'lowercase', 'capitalize'),\n ref: 'https://reactnative.dev/docs/text-style-props#texttransform'\n },\n tintColor: {\n isValid: isColor,\n ref: 'https://reactnative.dev/docs/image-style-props#tintcolor'\n },\n top: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#top'\n },\n userSelect: {\n isValid: isIn('text', 'none'),\n ref: 'valid values to user-select are text, none.'\n },\n verticalAlign: {\n isValid: isIn('auto', 'top', 'bottom', 'middle'),\n ref: 'https://reactnative.dev/docs/text-style-props#verticalalign-android'\n },\n width: {\n isValid: isStringOrNumber,\n ref: 'https://reactnative.dev/docs/layout-props#width'\n },\n writingDirection: {\n isValid: isIn('auto', 'ltr', 'rtl'),\n ref: 'https://reactnative.dev/docs/text-style-props#writingdirection-ios'\n },\n zIndex: {\n isValid: isNumber,\n ref: 'https://reactnative.dev/docs/layout-props#zindex'\n },\n};\n\nexport const getStyleReference = (name: string) => {\n const info = (STYLE_PROP_TYPE_INFO as any)[name];\n return !info || info.ref;\n};\n\nexport const isValidStyleProp = (name: string, value: any) => {\n const info = (STYLE_PROP_TYPE_INFO as any)[name];\n return name?.trim().startsWith('__') || (info && info.isValid(value));\n};\n\nexport const getErrorMessage = (name: string, value: any) => {\n const info = (STYLE_PROP_TYPE_INFO as any)[name];\n name = name.replace(/([A-Z])/g, (g) => `-${g[0].toLowerCase()}`);\n if (info) {\n if (info.errorMsg) {\n return info.errorMsg(value);\n } else {\n return `'${value}' is not a valid value to '${name}'.`;\n }\n }\n return `'${name}' is not a supported style property in one or all Native Platforms.`\n};"],"mappings":"AAAA,SAAQA,QAAQ,EAASC,QAAQ,QAAQ,WAAW;AACpD,OAAO,KAAKC,IAAI,MAA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A,CAACF,IAAY,EAAEG,KAAU,KAAK;EAC1D,MAAMF,IAAI,GAAInH,oBAAoB,CAASkH,IAAI,CAAC;EAChD,OAAO,CAAAA,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEI,IAAI,CAAC,CAAC,CAACC,UAAU,CAAC,IAAI,CAAC,KAAKJ,IAAI,IAAIA,IAAI,CAACjH,OAAO,CAACmH,KAAK,CAAE;AACzE,CAAC;AAED,OAAO,MAAMG,eAAe,GAAGA,CAACN,IAAY,EAAEG,KAAU,KAAK;EACzD,MAAMF,IAAI,GAAInH,oBAAoB,CAASkH,IAAI,CAAC;EAChDA,IAAI,GAAGA,IAAI,CAACO,OAAO,CAAC,UAAU,EAAGC,CAAC,IAAM,IAAGA,CAAC,CAAC,CAAC,CAAC,CAACC,WAAW,CAAC,CAAE,EAAC,CAAC;EAChE,IAAIR,IAAI,EAAE;IACN,IAAIA,IAAI,CAAC9D,QAAQ,EAAE;MACf,OAAO8D,IAAI,CAAC9D,QAAQ,CAACgE,KAAK,CAAC;IAC/B,CAAC,MAAM;MACH,OAAQ,IAAGA,KAAM,8BAA6BH,IAAK,IAAG;IAC1D;EACJ;EACA,OAAQ,IAAGA,IAAK,qEAAoE;AACxF,CAAC"}
@@ -0,0 +1,93 @@
1
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
+ export class StyleProps {
5
+ constructor() {
6
+ _defineProperty(this, "backgroundimage", void 0);
7
+ _defineProperty(this, "backgroundsize", void 0);
8
+ _defineProperty(this, "backgroundrepeat", void 0);
9
+ _defineProperty(this, "backgroundresizemode", void 0);
10
+ _defineProperty(this, "backgroundposition", void 0);
11
+ _defineProperty(this, "backgroundcolor", void 0);
12
+ _defineProperty(this, "bordercolor", void 0);
13
+ _defineProperty(this, "borderradius", void 0);
14
+ _defineProperty(this, "borderstyle", void 0);
15
+ _defineProperty(this, "borderwidth", void 0);
16
+ _defineProperty(this, "borderbottomwidth", void 0);
17
+ _defineProperty(this, "borderleftwidth", void 0);
18
+ _defineProperty(this, "borderrightwidth", void 0);
19
+ _defineProperty(this, "bordertopwidth", void 0);
20
+ _defineProperty(this, "color", void 0);
21
+ _defineProperty(this, "display", void 0);
22
+ _defineProperty(this, "fontsize", void 0);
23
+ _defineProperty(this, "fontfamily", void 0);
24
+ _defineProperty(this, "fontstyle", void 0);
25
+ _defineProperty(this, "fontvariant", void 0);
26
+ _defineProperty(this, "fontweight", void 0);
27
+ _defineProperty(this, "height", void 0);
28
+ _defineProperty(this, "horizontalalign", void 0);
29
+ _defineProperty(this, "lineheight", void 0);
30
+ _defineProperty(this, "margin", void 0);
31
+ _defineProperty(this, "marginbottom", void 0);
32
+ _defineProperty(this, "marginleft", void 0);
33
+ _defineProperty(this, "marginright", void 0);
34
+ _defineProperty(this, "margintop", void 0);
35
+ _defineProperty(this, "opacity", void 0);
36
+ _defineProperty(this, "overflow", void 0);
37
+ _defineProperty(this, "padding", void 0);
38
+ _defineProperty(this, "paddingbottom", void 0);
39
+ _defineProperty(this, "paddingleft", void 0);
40
+ _defineProperty(this, "paddingright", void 0);
41
+ _defineProperty(this, "paddingtop", void 0);
42
+ _defineProperty(this, "textalign", void 0);
43
+ _defineProperty(this, "textdecoration", void 0);
44
+ _defineProperty(this, "verticalalign", void 0);
45
+ _defineProperty(this, "width", void 0);
46
+ _defineProperty(this, "zindex", void 0);
47
+ }
48
+ }
49
+ const styleMapping = {
50
+ backgroundimage: 'backgroundImage',
51
+ backgroundsize: 'backgroundSize',
52
+ backgroundrepeat: 'backgroundRepeat',
53
+ backgroundresizemode: 'backgroundResizeMode',
54
+ backgroundposition: 'backgroundPosition',
55
+ backgroundcolor: 'backgroundColor',
56
+ bordercolor: 'borderColor',
57
+ borderradius: 'borderRadius',
58
+ borderstyle: 'borderStyle',
59
+ borderwidth: 'borderWidth',
60
+ borderbottomwidth: 'borderBottomWidth',
61
+ borderleftwidth: 'borderLeftWidth',
62
+ borderrightwidth: 'borderRightWidth',
63
+ bordertopwidth: 'borderTopWidth',
64
+ color: 'color',
65
+ display: 'display',
66
+ fontsize: 'fontSize',
67
+ fontfamily: 'fontFamily',
68
+ fontstyle: 'fontStyle',
69
+ fontvariant: 'fontVariant',
70
+ fontweight: 'fontWeight',
71
+ height: 'height',
72
+ //horizontalalign: any;
73
+ lineheight: 'lineHeight',
74
+ margin: 'margin',
75
+ marginbottom: 'marginBottom',
76
+ marginleft: 'marginLeft',
77
+ marginright: 'marginRight',
78
+ margintop: 'marginTop',
79
+ opacity: 'opacity',
80
+ overflow: 'overflow',
81
+ padding: 'padding',
82
+ paddingbottom: 'paddingBottom',
83
+ paddingleft: 'paddingLeft',
84
+ paddingright: 'paddingRight',
85
+ paddingtop: 'paddingTop',
86
+ textalign: 'textAlign',
87
+ textdecoration: 'textDecoration',
88
+ verticalalign: 'verticalAlign',
89
+ width: 'width',
90
+ zindex: 'zindex'
91
+ };
92
+ export const getStyleName = name => styleMapping[name];
93
+ //# sourceMappingURL=style-props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleProps","constructor","_defineProperty","styleMapping","backgroundimage","backgroundsize","backgroundrepeat","backgroundresizemode","backgroundposition","backgroundcolor","bordercolor","borderradius","borderstyle","borderwidth","borderbottomwidth","borderleftwidth","borderrightwidth","bordertopwidth","color","display","fontsize","fontfamily","fontstyle","fontvariant","fontweight","height","lineheight","margin","marginbottom","marginleft","marginright","margintop","opacity","overflow","padding","paddingbottom","paddingleft","paddingright","paddingtop","textalign","textdecoration","verticalalign","width","zindex","getStyleName","name"],"sources":["style-props.ts"],"sourcesContent":["export class StyleProps {\n backgroundimage?: any;\n backgroundsize?: any;\n backgroundrepeat?: any;\n backgroundresizemode?: any;\n backgroundposition?: any;\n backgroundcolor?: any;\n bordercolor?: any;\n borderradius?: any;\n borderstyle?: any;\n borderwidth?: any;\n borderbottomwidth?: any;\n borderleftwidth?: any;\n borderrightwidth?: any;\n bordertopwidth?: any;\n color?: any;\n display?: any;\n fontsize?: any;\n fontfamily?: any;\n fontstyle?: any;\n fontvariant?: any;\n fontweight?: any;\n height?: any;\n horizontalalign?: any;\n lineheight?: any;\n margin?: any;\n marginbottom?: any;\n marginleft?: any;\n marginright?: any;\n margintop?: any;\n opacity?: any;\n overflow?: any;\n padding?: any;\n paddingbottom?: any;\n paddingleft?: any;\n paddingright?: any;\n paddingtop?: any;\n textalign?: any;\n textdecoration?: any;\n verticalalign?: any;\n width?: any;\n zindex?: any;\n}\n\nconst styleMapping = {\n backgroundimage: 'backgroundImage',\n backgroundsize: 'backgroundSize',\n backgroundrepeat: 'backgroundRepeat',\n backgroundresizemode: 'backgroundResizeMode',\n backgroundposition: 'backgroundPosition',\n backgroundcolor: 'backgroundColor',\n bordercolor: 'borderColor',\n borderradius: 'borderRadius',\n borderstyle: 'borderStyle',\n borderwidth: 'borderWidth',\n borderbottomwidth: 'borderBottomWidth',\n borderleftwidth: 'borderLeftWidth',\n borderrightwidth: 'borderRightWidth',\n bordertopwidth: 'borderTopWidth',\n color: 'color',\n display: 'display',\n fontsize: 'fontSize',\n fontfamily: 'fontFamily',\n fontstyle: 'fontStyle',\n fontvariant: 'fontVariant',\n fontweight: 'fontWeight',\n height: 'height',\n //horizontalalign: any;\n lineheight: 'lineHeight',\n margin: 'margin',\n marginbottom: 'marginBottom',\n marginleft: 'marginLeft',\n marginright: 'marginRight',\n margintop: 'marginTop',\n opacity: 'opacity',\n overflow: 'overflow',\n padding: 'padding',\n paddingbottom: 'paddingBottom',\n paddingleft: 'paddingLeft',\n paddingright: 'paddingRight',\n paddingtop: 'paddingTop',\n textalign: 'textAlign',\n textdecoration: 'textDecoration',\n verticalalign: 'verticalAlign',\n width: 'width',\n zindex: 'zindex'\n};\n\nexport const getStyleName = (name: string) => (styleMapping as any)[name];\n"],"mappings":";;;AAAA,OAAO,MAAMA,UAAU,CAAC;EAAAC,YAAA;IAAAC,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;EAAA;AA0CxB;AAEA,MAAMC,YAAY,GAAG;EACjBC,eAAe,EAAE,iBAAiB;EAClCC,cAAc,EAAE,gBAAgB;EAChCC,gBAAgB,EAAE,kBAAkB;EACpCC,oBAAoB,EAAE,sBAAsB;EAC5CC,kBAAkB,EAAE,oBAAoB;EACxCC,eAAe,EAAE,iBAAiB;EAClCC,WAAW,EAAE,aAAa;EAC1BC,YAAY,EAAE,cAAc;EAC5BC,WAAW,EAAE,aAAa;EAC1BC,WAAW,EAAE,aAAa;EAC1BC,iBAAiB,EAAE,mBAAmB;EACtCC,eAAe,EAAE,iBAAiB;EAClCC,gBAAgB,EAAE,kBAAkB;EACpCC,cAAc,EAAE,gBAAgB;EAChCC,KAAK,EAAE,OAAO;EACdC,OAAO,EAAE,SAAS;EAClBC,QAAQ,EAAE,UAAU;EACpBC,UAAU,EAAE,YAAY;EACxBC,SAAS,EAAE,WAAW;EACtBC,WAAW,EAAE,aAAa;EAC1BC,UAAU,EAAE,YAAY;EACxBC,MAAM,EAAE,QAAQ;EAChB;EACAC,UAAU,EAAE,YAAY;EACxBC,MAAM,EAAE,QAAQ;EAChBC,YAAY,EAAE,cAAc;EAC5BC,UAAU,EAAE,YAAY;EACxBC,WAAW,EAAE,aAAa;EAC1BC,SAAS,EAAE,WAAW;EACtBC,OAAO,EAAE,SAAS;EAClBC,QAAQ,EAAE,UAAU;EACpBC,OAAO,EAAE,SAAS;EAClBC,aAAa,EAAE,eAAe;EAC9BC,WAAW,EAAE,aAAa;EAC1BC,YAAY,EAAE,cAAc;EAC5BC,UAAU,EAAE,YAAY;EACxBC,SAAS,EAAE,WAAW;EACtBC,cAAc,EAAE,gBAAgB;EAChCC,aAAa,EAAE,eAAe;EAC9BC,KAAK,EAAE,OAAO;EACdC,MAAM,EAAE;AACZ,CAAC;AAED,OAAO,MAAMC,YAAY,GAAIC,IAAY,IAAM1C,YAAY,CAAS0C,IAAI,CAAC"}
@@ -3,13 +3,12 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typ
3
3
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
4
4
  import { cloneDeep, forEach, flatten, isArray, isEmpty, isObject, isString, get, reverse } from 'lodash';
5
5
  import React from 'react';
6
- import { ImageBackground } from 'react-native';
7
6
  import { deepCopy, isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';
8
7
  import EventNotifier from '@wavemaker/app-rn-runtime/core/event-notifier';
9
8
  import ViewPort, { EVENTS as ViewPortEvents } from '@wavemaker/app-rn-runtime/core/viewport';
10
9
  import MediaQueryList from './MediaQueryList';
11
10
  import ThemeVariables from './theme.variables';
12
- import { getStyleReference, isValidStyleProp } from './style-prop.validator';
11
+ import { getErrorMessage, getStyleReference, isValidStyleProp } from './style-prop.validator';
13
12
  export const DEFAULT_CLASS = 'DEFAULT_CLASS';
14
13
  if (typeof window !== "undefined") {
15
14
  // @ts-ignore: does not properly extend MediaQueryList
@@ -25,10 +24,10 @@ export const DEVICE_BREAK_POINTS = {
25
24
  'MIN_LARGE_DEVICE': '1200px',
26
25
  'MAX_LARGE_DEVICE': '1000000px'
27
26
  };
28
- export let ThemeEvent;
29
- (function (ThemeEvent) {
27
+ export let ThemeEvent = /*#__PURE__*/function (ThemeEvent) {
30
28
  ThemeEvent["CHANGE"] = "change";
31
- })(ThemeEvent || (ThemeEvent = {}));
29
+ return ThemeEvent;
30
+ }({});
32
31
  ;
33
32
  export class Theme {
34
33
  constructor(parent, name) {
@@ -64,15 +63,12 @@ export class Theme {
64
63
  checkStyleProperties(name, value) {
65
64
  if (isObject(value)) {
66
65
  Object.keys(value).map(k => this.checkStyleProperties(k, value[k]));
67
- } else if (!isValidStyleProp(name, value)) {
68
- console.log(`%cInvalid Style property: '${value}' is not a valid value to '${name}' in ${this.name}.`, 'background-color: #FF0000;font-weight: bold; color: #fff');
66
+ } else if (name && !isValidStyleProp(name, value)) {
67
+ console.log(`%cInvalid Style property in ${this.name}: ${getErrorMessage(name, value)}`, 'background-color: #FF0000;font-weight: bold; color: #fff');
69
68
  console.log(`Refer: ${getStyleReference(name)}`);
70
69
  }
71
70
  }
72
71
  addStyle(name, extend, style) {
73
- if (this !== Theme.BASE && isWebPreviewMode()) {
74
- this.checkStyleProperties(name, style);
75
- }
76
72
  this.styles[name] = deepCopy(this.getStyle(extend), this.styles[name], style);
77
73
  }
78
74
  addTrace(styleName, mergedChildstyle, childStyle, parentStyle) {
@@ -147,6 +143,9 @@ export class Theme {
147
143
  if (!mediaQuery || matchMedia(mediaQuery).matches) {
148
144
  clonedStyle = cloneDeep(this.styles[name]);
149
145
  }
146
+ if (this !== Theme.BASE && isWebPreviewMode()) {
147
+ this.checkStyleProperties('', clonedStyle);
148
+ }
150
149
  style = deepCopy(parentStyle, clonedStyle);
151
150
  this.addTrace(`@${this.name}:${name}`, style, clonedStyle, parentStyle);
152
151
  }
@@ -187,36 +186,6 @@ ViewPort.subscribe(ViewPortEvents.SIZE_CHANGE, () => {
187
186
  Theme.BASE.reset();
188
187
  });
189
188
  export default Theme.BASE;
190
- export const attachBackground = (c, style) => {
191
- const background = style._background;
192
- if (background) {
193
- const backgroundStyle = {
194
- width: style.width || '100%',
195
- height: style.height || '100%'
196
- };
197
- Object.keys(background).forEach(k => {
198
- if (k !== 'imageStyle') {
199
- backgroundStyle[k] = background[k];
200
- }
201
- });
202
- const imgSrc = background.uri;
203
- let source;
204
- if (isString(imgSrc) && (imgSrc.startsWith('http') || imgSrc.startsWith('file:'))) {
205
- source = {
206
- uri: imgSrc
207
- };
208
- } else {
209
- source = imgSrc;
210
- }
211
- return /*#__PURE__*/React.createElement(ImageBackground, {
212
- source: source,
213
- resizeMode: background.resizeMode || 'repeat',
214
- imageStyle: background.imageStyle,
215
- style: backgroundStyle
216
- }, c);
217
- }
218
- return c;
219
- };
220
189
  const ThemeContext = /*#__PURE__*/React.createContext(null);
221
190
  export const ThemeProvider = ThemeContext.Provider;
222
191
  export const ThemeConsumer = ThemeContext.Consumer;
@@ -344,5 +313,10 @@ Theme.BASE.registerStyle((themeVariables, addStyle) => {
344
313
  borderColor: themeVariables.warningColor
345
314
  }
346
315
  });
316
+ addStyle('hide-context-menu', '', {
317
+ text: {
318
+ userSelect: 'none'
319
+ }
320
+ });
347
321
  });
348
322
  //# sourceMappingURL=theme.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["cloneDeep","forEach","flatten","isArray","isEmpty","isObject","isString","get","reverse","React","ImageBackground","deepCopy","isWebPreviewMode","EventNotifier","ViewPort","EVENTS","ViewPortEvents","MediaQueryList","ThemeVariables","getStyleReference","isValidStyleProp","DEFAULT_CLASS","window","matchMedia","query","DEVICE_BREAK_POINTS","ThemeEvent","Theme","constructor","parent","name","traceEnabled","subscribe","event","fn","eventNotifer","notify","children","t","clearCache","cache","registerStyle","styleGenerators","push","INSTANCE","addStyle","bind","checkStyleProperties","value","Object","keys","map","k","console","log","extend","style","BASE","styles","getStyle","addTrace","styleName","mergedChildstyle","childStyle","parentStyle","v","__trace","prefix","result","collect","mergeStyle","flattenStyles","s","cs","filter","length","indexOf","split","c","mediaQuery","clonedStyle","matches","$new","newTheme","reset","destroy","i","splice","themeVariables","CHANGE","SIZE_CHANGE","attachBackground","background","_background","backgroundStyle","width","height","imgSrc","uri","source","startsWith","resizeMode","imageStyle","ThemeContext","createContext","ThemeProvider","Provider","ThemeConsumer","Consumer","addColStyles","device","minWidth","root","MIN_EXTRA_SMALL_DEVICE","MIN_SMALL_DEVICE","MIN_MEDIUM_DEVICE","MIN_LARGE_DEVICE","display","addDisplayStyles","maxWidth","MAX_LARGE_DEVICE","MAX_EXTRA_SMALL_DEVICE","MAX_SMALL_DEVICE","MAX_MEDIUM_DEVICE","addElevationClasses","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","zIndex","transform","scale","backgroundColor","dangerColor","infoColor","primaryColor","successColor","warningColor","borderColor"],"sources":["theme.tsx"],"sourcesContent":["import { cloneDeep, forEach, flatten, isArray, isEmpty, isObject, isString, isFunction, get, reverse } from 'lodash';\nimport React, { ReactNode } from 'react';\nimport { TextStyle, ViewStyle, ImageStyle, ImageBackground } from 'react-native';\nimport { deepCopy, isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';\nimport EventNotifier from '@wavemaker/app-rn-runtime/core/event-notifier';\nimport ViewPort, {EVENTS as ViewPortEvents} from '@wavemaker/app-rn-runtime/core/viewport';\nimport MediaQueryList from './MediaQueryList';\nimport ThemeVariables from './theme.variables';\nimport { getStyleReference, isValidStyleProp } from './style-prop.validator';\nexport const DEFAULT_CLASS = 'DEFAULT_CLASS';\n\ndeclare const matchMedia: any, window: any;\n\nif (typeof window !== \"undefined\") {\n // @ts-ignore: does not properly extend MediaQueryList\n window.matchMedia = (query: string) => new MediaQueryList(query);\n}\n\nexport const DEVICE_BREAK_POINTS = {\n 'MIN_EXTRA_SMALL_DEVICE' : '0px',\n 'MAX_EXTRA_SMALL_DEVICE' : '767px',\n 'MIN_SMALL_DEVICE' : '768px',\n 'MAX_SMALL_DEVICE' : '991px',\n 'MIN_MEDIUM_DEVICE' : '992px',\n 'MAX_MEDIUM_DEVICE' : '1199px',\n 'MIN_LARGE_DEVICE' : '1200px',\n 'MAX_LARGE_DEVICE' : '1000000px',\n};\n\nexport type styleGeneratorFn<T extends NamedStyles<any>> = (\n themeVariables: ThemeVariables,\n addStyle: (name: string, extend: string, style: T) => void) => void\n\nexport enum ThemeEvent {\n CHANGE ='change'\n};\n\nexport class Theme {\n public static BASE = new Theme(null as any, 'default');\n\n static {\n ViewPort.subscribe(ViewPortEvents.SIZE_CHANGE, () => {\n Theme.BASE.reset();\n });\n }\n\n\n private eventNotifer = new EventNotifier();\n\n private children: Theme[] = [];\n\n private styles: any = {};\n\n private cache: any = {};\n\n private traceEnabled = false;\n\n private styleGenerators: styleGeneratorFn<any>[] = [];\n\n private constructor(private parent:Theme, public readonly name: string) {\n if (parent) {\n this.traceEnabled = parent.traceEnabled;\n } else {\n this.traceEnabled = isWebPreviewMode();\n }\n }\n\n public subscribe(event: ThemeEvent, fn: Function) {\n return this.eventNotifer.subscribe(event, fn);\n }\n\n public notify(event: ThemeEvent): void {\n this.eventNotifer.notify(event, []);\n this.children.forEach(t => t.notify(event));\n }\n\n clearCache() {\n this.cache = {};\n this.children.forEach((t) => t.clearCache());\n }\n\n registerStyle<T extends NamedStyles<any>>(fn: styleGeneratorFn<T>) {\n this.styleGenerators.push(fn);\n fn(ThemeVariables.INSTANCE, this.addStyle.bind(this));\n }\n\n checkStyleProperties(name: string, value : any) {\n if (isObject(value)) {\n Object.keys(value).map((k) => this.checkStyleProperties(k, (value as any)[k]));\n } else if(!isValidStyleProp(name, value)) {\n console.log(\n `%cInvalid Style property: '${value}' is not a valid value to '${name}' in ${this.name}.`,\n 'background-color: #FF0000;font-weight: bold; color: #fff'\n );\n console.log(`Refer: ${getStyleReference(name)}`);\n }\n }\n\n private addStyle<T extends NamedStyles<any>>(name: string, extend: string, style: T) {\n if (this !== Theme.BASE && isWebPreviewMode()) {\n this.checkStyleProperties(name, style);\n }\n this.styles[name] = deepCopy(this.getStyle(extend), this.styles[name], style);\n }\n\n private addTrace(styleName: string, mergedChildstyle: any, childStyle: any, parentStyle?: any) {\n if (!this.traceEnabled) {\n return;\n }\n let addTrace = !isEmpty(childStyle);\n forEach(mergedChildstyle, (v: any, k: string) => {\n if (v && !isString(v) && !isArray(v) && isObject(v)) {\n addTrace = false;\n this.addTrace(styleName + '.' + k, v, childStyle && childStyle[k], parentStyle && parentStyle[k])\n }\n });\n if (addTrace) {\n mergedChildstyle['__trace'] = [\n {\n name: styleName,\n value: childStyle\n },\n ...(parentStyle?.__trace|| [])\n ];\n } else {\n mergedChildstyle['__trace'] = [...(parentStyle?.__trace|| [])];\n }\n }\n\n private flatten(style: any, prefix = \"\", result = {} as any) {\n let collect = !isEmpty(style);\n forEach(style, (v: any, k: string) => {\n if (v && !isString(v) && !isArray(v) && isObject(v)) {\n collect = false;\n this.flatten(v, (prefix ? prefix + '.' : '') + k, result)\n }\n });\n if (collect) {\n result[prefix] = style;\n }\n return result;\n }\n\n mergeStyle(...styles: any) {\n const style = deepCopy(...styles);\n if (this.traceEnabled) {\n const flattenStyles = this.flatten(style);\n Object.keys(flattenStyles).forEach(k => {\n const s = flattenStyles[k];\n s['__trace'] = flatten(reverse(styles.map((v: any) => {\n const cs = get(v, k);\n if (cs && cs.__trace) {\n return [...cs.__trace];\n }\n return [];\n }).filter((t: any) => t.length > 0)));\n });\n }\n return style;\n }\n\n getStyle(name: string) {\n let style = this.cache[name];\n if (style) {\n return style;\n }\n if (!name) {\n return {};\n }\n if (name.indexOf(' ') > 0) {\n style = this.mergeStyle(...(name.split(' ').map(c => this.getStyle(c))));\n } else {\n const parentStyle = this.parent && this.parent.getStyle(name);\n const mediaQuery = (this.styles[name] || {})['@media'];\n let clonedStyle = {};\n if (!mediaQuery || matchMedia(mediaQuery).matches) {\n clonedStyle = cloneDeep(this.styles[name]);\n }\n style = deepCopy(parentStyle, clonedStyle);\n this.addTrace(`@${this.name}:${name}`, style, clonedStyle, parentStyle);\n }\n this.cache[name] = style;\n return style;\n }\n\n $new(name = \"\", styles = {} as NamedStyles<any>) {\n const newTheme = new Theme(this, name);\n newTheme.reset(styles);\n this.children.push(newTheme);\n return newTheme;\n }\n\n destroy() {\n const i = this.parent.children.indexOf(this);\n if (i >= 0) {\n this.parent.children.splice(i, 1);\n }\n }\n\n reset(styles?: NamedStyles<any>) {\n this.styles = {};\n this.clearCache();\n if (styles) {\n this.registerStyle((themeVariables, addStyle) => {\n Object.keys(styles).forEach(k => {\n addStyle(k, '', styles[k] as any);\n });\n });\n } else {\n this.styleGenerators.forEach(fn => \n fn(ThemeVariables.INSTANCE, this.addStyle.bind(this)));\n }\n this.notify(ThemeEvent.CHANGE);\n }\n}\nexport default Theme.BASE;\nexport type NamedStyles<T> = { [P in keyof T]: ViewStyle | TextStyle | ImageStyle | NamedStyles<T>};\nexport type BackgroundImageStyle = {\n backgroundImage: string,\n backgroundPosition: string,\n backgroundRepeat: string,\n backgroundSize: string | number\n};\nexport const attachBackground = (c: ReactNode, style: ViewStyle) => {\n const background = (style as any)._background;\n if (background) {\n const backgroundStyle = {\n width: style.width || '100%',\n height: style.height || '100%'\n } as any;\n Object.keys(background).forEach(k => {\n if (k !== 'imageStyle') {\n backgroundStyle[k] = background[k];\n }\n });\n const imgSrc = background.uri;\n let source;\n if (isString(imgSrc) && (imgSrc.startsWith('http') || imgSrc.startsWith('file:'))) {\n source = {\n uri: imgSrc\n };\n } else {\n source = imgSrc;\n }\n return (\n <ImageBackground\n source={source}\n resizeMode={background.resizeMode || 'repeat'}\n imageStyle={background.imageStyle}\n style={backgroundStyle}>\n {c}\n </ImageBackground>);\n }\n return c;\n};\nexport type AllStyle = (ViewStyle & TextStyle & ImageStyle);\n\nconst ThemeContext = React.createContext<Theme>(null as any);\n\nexport const ThemeProvider = ThemeContext.Provider;\nexport const ThemeConsumer = ThemeContext.Consumer;\n/**\n * Common styles\n */\n Theme.BASE.registerStyle((themeVariables, addStyle) => {\n const addColStyles = (device: string, minWidth: string) => {\n for(let i = 1; i <= 12; i++) {\n addStyle(`col-${device}-${i}`, '', {\n \"@media\": `(min-width: ${minWidth})`,\n root: {\n width: (100 * i / 12) + '%'\n }\n } as any)\n }\n };\n addColStyles('xs', DEVICE_BREAK_POINTS.MIN_EXTRA_SMALL_DEVICE);\n addColStyles('sm', DEVICE_BREAK_POINTS.MIN_SMALL_DEVICE);\n addColStyles('md', DEVICE_BREAK_POINTS.MIN_MEDIUM_DEVICE);\n addColStyles('lg', DEVICE_BREAK_POINTS.MIN_LARGE_DEVICE);\n\n addStyle('d-none', '', {\n root: {\n display: 'none'\n }\n } as any);\n addStyle('d-flex', '', {\n root: {\n display: 'flex'\n }\n } as any);\n\n const addDisplayStyles = (device: string, minWidth: string, maxWidth: string) => {\n addStyle(`d-${device}-none`, '', {\n \"@media\": `(min-width: ${minWidth}) and (max-width: ${maxWidth})`,\n root: {\n display: 'none'\n }\n } as any);\n addStyle(`d-${device}-flex`, '', {\n \"@media\": `(min-width: ${minWidth}) and (max-width: ${maxWidth})`,\n root: {\n display: 'flex'\n }\n } as any);\n };\n addDisplayStyles('all', \n DEVICE_BREAK_POINTS.MIN_EXTRA_SMALL_DEVICE,\n DEVICE_BREAK_POINTS.MAX_LARGE_DEVICE);\n addDisplayStyles('xs', \n DEVICE_BREAK_POINTS.MIN_EXTRA_SMALL_DEVICE,\n DEVICE_BREAK_POINTS.MAX_EXTRA_SMALL_DEVICE);\n addDisplayStyles('sm', \n DEVICE_BREAK_POINTS.MIN_SMALL_DEVICE,\n DEVICE_BREAK_POINTS.MAX_SMALL_DEVICE);\n addDisplayStyles('md', \n DEVICE_BREAK_POINTS.MIN_MEDIUM_DEVICE,\n DEVICE_BREAK_POINTS.MAX_MEDIUM_DEVICE);\n addDisplayStyles('lg', \n DEVICE_BREAK_POINTS.MIN_LARGE_DEVICE,\n DEVICE_BREAK_POINTS.MAX_LARGE_DEVICE);\n\n const addElevationClasses = () => {\n for(let i = 1; i <= 10; i++) {\n addStyle(`elevate${i}`, '', {\n root : {\n shadowColor: \"#000000\",\n shadowOffset: {\n width: i,\n height: i,\n },\n shadowOpacity: 0.27,\n shadowRadius: i,\n elevation: i,\n zIndex: 1\n }\n });\n }\n };\n addElevationClasses();\n addStyle('hidden', '', {\n root: {\n width: 0,\n height: 0,\n transform: [{ scale: 0 }]\n }\n });\n addStyle('bg-danger', '', { root: { backgroundColor: themeVariables.dangerColor }});\n addStyle('bg-info', '', { root: { backgroundColor: themeVariables.infoColor }});\n addStyle('bg-primary', '', { root: { backgroundColor: themeVariables.primaryColor }});\n addStyle('bg-success', '', { root: { backgroundColor: themeVariables.successColor }});\n addStyle('bg-warning', '', { root: { backgroundColor: themeVariables.warningColor }});\n\n addStyle('border-danger', '', { root: { borderColor: themeVariables.dangerColor }});\n addStyle('border-info', '', { root: { borderColor: themeVariables.infoColor }});\n addStyle('border-primary', '', { root: { borderColor: themeVariables.primaryColor }});\n addStyle('border-success', '', { root: { borderColor: themeVariables.successColor }});\n addStyle('border-warning', '', { root: { borderColor: themeVariables.warningColor }});\n});\n\n"],"mappings":";;;AAAA,SAASA,SAAS,EAAEC,OAAO,EAAEC,OAAO,EAAEC,OAAO,EAAEC,OAAO,EAAEC,QAAQ,EAAEC,QAAQ,EAAcC,GAAG,EAAEC,OAAO,QAAQ,QAAQ;AACpH,OAAOC,KAAK,MAAqB,OAAO;AACxC,SAA2CC,eAAe,QAAQ,cAAc;AAChF,SAASC,QAAQ,EAAEC,gBAAgB,QAAQ,sCAAsC;AACjF,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AAW,EAAEnD,cAAc,CAAC8C;IAAY;EAAC,CAAC,CAAC;EACnFzF,QAAQ,CAAC,aAAa,EAAE,EAAE,EAAE;IAAEmE,IAAI,EAAE;MAAE2B,WAAW,EAAEnD,cAAc,CAAC+C;IAAU;EAAC,CAAC,CAAC;EAC/E1F,QAAQ,CAAC,gBAAgB,EAAE,EAAE,EAAE;IAAEmE,IAAI,EAAE;MAAE2B,WAAW,EAAEnD,cAAc,CAACgD;IAAa;EAAC,CAAC,CAAC;EACrF3F,QAAQ,CAAC,gBAAgB,EAAE,EAAE,EAAE;IAAEmE,IAAI,EAAE;MAAE2B,WAAW,EAAEnD,cAAc,CAACiD;IAAa;EAAC,CAAC,CAAC;EACrF5F,QAAQ,CAAC,gBAAgB,EAAE,EAAE,EAAE;IAAEmE,IAAI,EAAE;MAAE2B,WAAW,EAAEnD,cAAc,CAACkD;IAAa;EAAC,CAAC,CAAC;AACzF,CAAC,CAAC"}
1
+ {"version":3,"names":["cloneDeep","forEach","flatten","isArray","isEmpty","isObject","isString","get","reverse","React","deepCopy","isWebPreviewMode","EventNotifier","ViewPort","EVENTS","ViewPortEvents","MediaQueryList","ThemeVariables","getErrorMessage","getStyleReference","isValidStyleProp","DEFAULT_CLASS","window","matchMedia","query","DEVICE_BREAK_POINTS","ThemeEvent","Theme","constructor","parent","name","_defineProperty","traceEnabled","subscribe","event","fn","eventNotifer","notify","children","t","clearCache","cache","registerStyle","styleGenerators","push","INSTANCE","addStyle","bind","checkStyleProperties","value","Object","keys","map","k","console","log","extend","style","styles","getStyle","addTrace","styleName","mergedChildstyle","childStyle","parentStyle","v","__trace","prefix","arguments","length","undefined","result","collect","mergeStyle","_len","Array","_key","flattenStyles","s","cs","filter","indexOf","split","c","mediaQuery","clonedStyle","matches","BASE","$new","newTheme","reset","destroy","i","splice","themeVariables","CHANGE","SIZE_CHANGE","ThemeContext","createContext","ThemeProvider","Provider","ThemeConsumer","Consumer","addColStyles","device","minWidth","root","width","MIN_EXTRA_SMALL_DEVICE","MIN_SMALL_DEVICE","MIN_MEDIUM_DEVICE","MIN_LARGE_DEVICE","display","addDisplayStyles","maxWidth","MAX_LARGE_DEVICE","MAX_EXTRA_SMALL_DEVICE","MAX_SMALL_DEVICE","MAX_MEDIUM_DEVICE","addElevationClasses","shadowColor","shadowOffset","height","shadowOpacity","shadowRadius","elevation","zIndex","transform","scale","backgroundColor","dangerColor","infoColor","primaryColor","successColor","warningColor","borderColor","text","userSelect"],"sources":["theme.tsx"],"sourcesContent":["import { cloneDeep, forEach, flatten, isArray, isEmpty, isObject, isString, isFunction, get, reverse } from 'lodash';\nimport React, { ReactNode } from 'react';\nimport { TextStyle, ViewStyle, ImageStyle, ImageBackground } from 'react-native';\nimport { deepCopy, isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';\nimport EventNotifier from '@wavemaker/app-rn-runtime/core/event-notifier';\nimport ViewPort, {EVENTS as ViewPortEvents} from '@wavemaker/app-rn-runtime/core/viewport';\nimport MediaQueryList from './MediaQueryList';\nimport ThemeVariables from './theme.variables';\nimport { getErrorMessage, getStyleReference, isValidStyleProp } from './style-prop.validator';\nexport const DEFAULT_CLASS = 'DEFAULT_CLASS';\n\ndeclare const matchMedia: any, window: any;\n\nif (typeof window !== \"undefined\") {\n // @ts-ignore: does not properly extend MediaQueryList\n window.matchMedia = (query: string) => new MediaQueryList(query);\n}\n\nexport const DEVICE_BREAK_POINTS = {\n 'MIN_EXTRA_SMALL_DEVICE' : '0px',\n 'MAX_EXTRA_SMALL_DEVICE' : '767px',\n 'MIN_SMALL_DEVICE' : '768px',\n 'MAX_SMALL_DEVICE' : '991px',\n 'MIN_MEDIUM_DEVICE' : '992px',\n 'MAX_MEDIUM_DEVICE' : '1199px',\n 'MIN_LARGE_DEVICE' : '1200px',\n 'MAX_LARGE_DEVICE' : '1000000px',\n};\n\nexport type styleGeneratorFn<T extends NamedStyles<any>> = (\n themeVariables: ThemeVariables,\n addStyle: (name: string, extend: string, style: T) => void) => void\n\nexport enum ThemeEvent {\n CHANGE ='change'\n};\n\nexport class Theme {\n public static BASE = new Theme(null as any, 'default');\n\n static {\n ViewPort.subscribe(ViewPortEvents.SIZE_CHANGE, () => {\n Theme.BASE.reset();\n });\n }\n\n\n private eventNotifer = new EventNotifier();\n\n private children: Theme[] = [];\n\n private styles: any = {};\n\n private cache: any = {};\n\n private traceEnabled = false;\n\n private styleGenerators: styleGeneratorFn<any>[] = [];\n\n private constructor(private parent:Theme, public readonly name: string) {\n if (parent) {\n this.traceEnabled = parent.traceEnabled;\n } else {\n this.traceEnabled = isWebPreviewMode();\n }\n }\n\n public subscribe(event: ThemeEvent, fn: Function) {\n return this.eventNotifer.subscribe(event, fn);\n }\n\n public notify(event: ThemeEvent): void {\n this.eventNotifer.notify(event, []);\n this.children.forEach(t => t.notify(event));\n }\n\n clearCache() {\n this.cache = {};\n this.children.forEach((t) => t.clearCache());\n }\n\n registerStyle<T extends NamedStyles<any>>(fn: styleGeneratorFn<T>) {\n this.styleGenerators.push(fn);\n fn(ThemeVariables.INSTANCE, this.addStyle.bind(this));\n }\n\n checkStyleProperties(name: string, value : any) {\n if (isObject(value)) {\n Object.keys(value).map((k) => this.checkStyleProperties(k, (value as any)[k]));\n } else if(name && !isValidStyleProp(name, value)) {\n console.log(\n `%cInvalid Style property in ${this.name}: ${getErrorMessage(name, value)}`,\n 'background-color: #FF0000;font-weight: bold; color: #fff'\n );\n console.log(`Refer: ${getStyleReference(name)}`);\n }\n }\n\n private addStyle<T extends NamedStyles<any>>(name: string, extend: string, style: T) {\n this.styles[name] = deepCopy(this.getStyle(extend), this.styles[name], style);\n }\n\n private addTrace(styleName: string, mergedChildstyle: any, childStyle: any, parentStyle?: any) {\n if (!this.traceEnabled) {\n return;\n }\n let addTrace = !isEmpty(childStyle);\n forEach(mergedChildstyle, (v: any, k: string) => {\n if (v && !isString(v) && !isArray(v) && isObject(v)) {\n addTrace = false;\n this.addTrace(styleName + '.' + k, v, childStyle && childStyle[k], parentStyle && parentStyle[k])\n }\n });\n if (addTrace) {\n mergedChildstyle['__trace'] = [\n {\n name: styleName,\n value: childStyle\n },\n ...(parentStyle?.__trace|| [])\n ];\n } else {\n mergedChildstyle['__trace'] = [...(parentStyle?.__trace|| [])];\n }\n }\n\n private flatten(style: any, prefix = \"\", result = {} as any) {\n let collect = !isEmpty(style);\n forEach(style, (v: any, k: string) => {\n if (v && !isString(v) && !isArray(v) && isObject(v)) {\n collect = false;\n this.flatten(v, (prefix ? prefix + '.' : '') + k, result)\n }\n });\n if (collect) {\n result[prefix] = style;\n }\n return result;\n }\n\n mergeStyle(...styles: any) {\n const style = deepCopy(...styles);\n if (this.traceEnabled) {\n const flattenStyles = this.flatten(style);\n Object.keys(flattenStyles).forEach(k => {\n const s = flattenStyles[k];\n s['__trace'] = flatten(reverse(styles.map((v: any) => {\n const cs = get(v, k);\n if (cs && cs.__trace) {\n return [...cs.__trace];\n }\n return [];\n }).filter((t: any) => t.length > 0)));\n });\n }\n return style;\n }\n\n getStyle(name: string) {\n let style = this.cache[name];\n if (style) {\n return style;\n }\n if (!name) {\n return {};\n }\n if (name.indexOf(' ') > 0) {\n style = this.mergeStyle(...(name.split(' ').map(c => this.getStyle(c))));\n } else {\n const parentStyle = this.parent && this.parent.getStyle(name);\n const mediaQuery = (this.styles[name] || {})['@media'];\n let clonedStyle = {};\n if (!mediaQuery || matchMedia(mediaQuery).matches) {\n clonedStyle = cloneDeep(this.styles[name]);\n }\n if (this !== Theme.BASE && isWebPreviewMode()) {\n this.checkStyleProperties('', clonedStyle);\n }\n style = deepCopy(parentStyle, clonedStyle);\n this.addTrace(`@${this.name}:${name}`, style, clonedStyle, parentStyle);\n }\n this.cache[name] = style;\n return style;\n }\n\n $new(name = \"\", styles = {} as NamedStyles<any>) {\n const newTheme = new Theme(this, name);\n newTheme.reset(styles);\n this.children.push(newTheme);\n return newTheme;\n }\n\n destroy() {\n const i = this.parent.children.indexOf(this);\n if (i >= 0) {\n this.parent.children.splice(i, 1);\n }\n }\n\n reset(styles?: NamedStyles<any>) {\n this.styles = {};\n this.clearCache();\n if (styles) {\n this.registerStyle((themeVariables, addStyle) => {\n Object.keys(styles).forEach(k => {\n addStyle(k, '', styles[k] as any);\n });\n });\n } else {\n this.styleGenerators.forEach(fn => \n fn(ThemeVariables.INSTANCE, this.addStyle.bind(this)));\n }\n this.notify(ThemeEvent.CHANGE);\n }\n}\nexport default Theme.BASE;\nexport type NamedStyles<T> = { [P in keyof T]: AllStyle | NamedStyles<T>};\nexport type BackgroundImageStyle = {\n backgroundImage: string,\n backgroundPosition: string,\n backgroundRepeat: string,\n backgroundSize: string | number\n};\n\nexport type AllStyle = (ViewStyle & TextStyle & ImageStyle & {userSelect?: 'none'| 'text'});\n\nconst ThemeContext = React.createContext<Theme>(null as any);\n\nexport const ThemeProvider = ThemeContext.Provider;\nexport const ThemeConsumer = ThemeContext.Consumer;\n/**\n * Common styles\n */\n Theme.BASE.registerStyle((themeVariables, addStyle) => {\n const addColStyles = (device: string, minWidth: string) => {\n for(let i = 1; i <= 12; i++) {\n addStyle(`col-${device}-${i}`, '', {\n \"@media\": `(min-width: ${minWidth})`,\n root: {\n width: (100 * i / 12) + '%'\n }\n } as any)\n }\n };\n addColStyles('xs', DEVICE_BREAK_POINTS.MIN_EXTRA_SMALL_DEVICE);\n addColStyles('sm', DEVICE_BREAK_POINTS.MIN_SMALL_DEVICE);\n addColStyles('md', DEVICE_BREAK_POINTS.MIN_MEDIUM_DEVICE);\n addColStyles('lg', DEVICE_BREAK_POINTS.MIN_LARGE_DEVICE);\n\n addStyle('d-none', '', {\n root: {\n display: 'none'\n }\n } as any);\n addStyle('d-flex', '', {\n root: {\n display: 'flex'\n }\n } as any);\n\n const addDisplayStyles = (device: string, minWidth: string, maxWidth: string) => {\n addStyle(`d-${device}-none`, '', {\n \"@media\": `(min-width: ${minWidth}) and (max-width: ${maxWidth})`,\n root: {\n display: 'none'\n }\n } as any);\n addStyle(`d-${device}-flex`, '', {\n \"@media\": `(min-width: ${minWidth}) and (max-width: ${maxWidth})`,\n root: {\n display: 'flex'\n }\n } as any);\n };\n addDisplayStyles('all', \n DEVICE_BREAK_POINTS.MIN_EXTRA_SMALL_DEVICE,\n DEVICE_BREAK_POINTS.MAX_LARGE_DEVICE);\n addDisplayStyles('xs', \n DEVICE_BREAK_POINTS.MIN_EXTRA_SMALL_DEVICE,\n DEVICE_BREAK_POINTS.MAX_EXTRA_SMALL_DEVICE);\n addDisplayStyles('sm', \n DEVICE_BREAK_POINTS.MIN_SMALL_DEVICE,\n DEVICE_BREAK_POINTS.MAX_SMALL_DEVICE);\n addDisplayStyles('md', \n DEVICE_BREAK_POINTS.MIN_MEDIUM_DEVICE,\n DEVICE_BREAK_POINTS.MAX_MEDIUM_DEVICE);\n addDisplayStyles('lg', \n DEVICE_BREAK_POINTS.MIN_LARGE_DEVICE,\n DEVICE_BREAK_POINTS.MAX_LARGE_DEVICE);\n\n const addElevationClasses = () => {\n for(let i = 1; i <= 10; i++) {\n addStyle(`elevate${i}`, '', {\n root : {\n shadowColor: \"#000000\",\n shadowOffset: {\n width: i,\n height: i,\n },\n shadowOpacity: 0.27,\n shadowRadius: i,\n elevation: i,\n zIndex: 1\n }\n });\n }\n };\n addElevationClasses();\n addStyle('hidden', '', {\n root: {\n width: 0,\n height: 0,\n transform: [{ scale: 0 }]\n }\n });\n addStyle('bg-danger', '', { root: { backgroundColor: themeVariables.dangerColor }});\n addStyle('bg-info', '', { root: { backgroundColor: themeVariables.infoColor }});\n addStyle('bg-primary', '', { root: { backgroundColor: themeVariables.primaryColor }});\n addStyle('bg-success', '', { root: { backgroundColor: themeVariables.successColor }});\n addStyle('bg-warning', '', { root: { backgroundColor: themeVariables.warningColor }});\n\n addStyle('border-danger', '', { root: { borderColor: themeVariables.dangerColor }});\n addStyle('border-info', '', { root: { borderColor: themeVariables.infoColor }});\n addStyle('border-primary', '', { root: { borderColor: themeVariables.primaryColor }});\n addStyle('border-success', '', { root: { borderColor: themeVariables.successColor }});\n addStyle('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