@wavemaker/app-rn-runtime 11.4.0-next.28152 → 11.4.0-next.28701

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 (423) 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.map +1 -1
  6. app-rn-runtime/actions/timer-action.js.map +1 -1
  7. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.component.js.map +1 -1
  8. app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.props.js.map +1 -1
  9. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.component.js.map +1 -1
  10. app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.props.js.map +1 -1
  11. app-rn-runtime/components/advanced/carousel/carousel.component.js +1 -1
  12. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  13. app-rn-runtime/components/advanced/carousel/carousel.props.js.map +1 -1
  14. app-rn-runtime/components/advanced/carousel/carousel.styles.js +16 -0
  15. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  16. app-rn-runtime/components/advanced/login/login.component.js.map +1 -1
  17. app-rn-runtime/components/advanced/login/login.props.js.map +1 -1
  18. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -1
  19. app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.props.js.map +1 -1
  20. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  21. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  22. app-rn-runtime/components/basic/anchor/anchor.component.js +1 -0
  23. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  24. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  25. app-rn-runtime/components/basic/anchor/anchor.styles.js +5 -0
  26. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  27. app-rn-runtime/components/basic/animatedview.component.js +1 -3
  28. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  29. app-rn-runtime/components/basic/audio/audio.component.js +232 -0
  30. app-rn-runtime/components/basic/audio/audio.component.js.map +1 -0
  31. app-rn-runtime/components/basic/audio/audio.props.js +15 -0
  32. app-rn-runtime/components/basic/audio/audio.props.js.map +1 -0
  33. app-rn-runtime/components/basic/audio/audio.styles.js +61 -0
  34. app-rn-runtime/components/basic/audio/audio.styles.js.map +1 -0
  35. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  36. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  37. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  38. app-rn-runtime/components/basic/buttongroup/buttongroup.component.js.map +1 -1
  39. app-rn-runtime/components/basic/buttongroup/buttongroup.props.js.map +1 -1
  40. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  41. app-rn-runtime/components/basic/custom/custom.component.js.map +1 -1
  42. app-rn-runtime/components/basic/custom/custom.props.js.map +1 -1
  43. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  44. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  45. app-rn-runtime/components/basic/icon/icon.styles.js +5 -0
  46. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  47. app-rn-runtime/components/basic/label/label.component.js +2 -1
  48. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  49. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  50. app-rn-runtime/components/basic/label/label.styles.js +8 -0
  51. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  52. app-rn-runtime/components/basic/lottie/lottie.component.js.map +1 -1
  53. app-rn-runtime/components/basic/lottie/lottie.props.js.map +1 -1
  54. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  55. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  56. app-rn-runtime/components/basic/message/message.styles.js +22 -0
  57. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  58. app-rn-runtime/components/basic/modal/modal.component.js.map +1 -1
  59. app-rn-runtime/components/basic/modal/modal.props.js.map +1 -1
  60. app-rn-runtime/components/basic/modal/modal.styles.js.map +1 -1
  61. app-rn-runtime/components/basic/picture/picture.component.js +3 -3
  62. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  63. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  64. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  65. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  66. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  67. app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +1 -1
  68. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  69. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  70. app-rn-runtime/components/basic/progress-circle/progress-circle.styles.js.map +1 -1
  71. app-rn-runtime/components/basic/search/local-data-provider.js.map +1 -1
  72. app-rn-runtime/components/basic/search/search.component.js +1 -1
  73. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  74. app-rn-runtime/components/basic/search/search.props.js +1 -0
  75. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  76. app-rn-runtime/components/basic/search/search.styles.js +47 -0
  77. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  78. app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +1 -1
  79. app-rn-runtime/components/basic/spinner/spinner.component.js +3 -1
  80. app-rn-runtime/components/basic/spinner/spinner.component.js.map +1 -1
  81. app-rn-runtime/components/basic/spinner/spinner.props.js.map +1 -1
  82. app-rn-runtime/components/basic/spinner/spinner.styles.js +8 -0
  83. app-rn-runtime/components/basic/spinner/spinner.styles.js.map +1 -1
  84. app-rn-runtime/components/basic/video/video.component.js +2 -2
  85. app-rn-runtime/components/basic/video/video.component.js.map +1 -1
  86. app-rn-runtime/components/basic/video/video.props.js.map +1 -1
  87. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  88. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  89. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  90. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  91. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  92. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  93. app-rn-runtime/components/chart/column-chart/column-chart.component.js.map +1 -1
  94. app-rn-runtime/components/chart/donut-chart/donut-chart.component.js.map +1 -1
  95. app-rn-runtime/components/chart/donut-chart/donut-chart.props.js.map +1 -1
  96. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  97. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  98. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +1 -1
  99. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  100. app-rn-runtime/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  101. app-rn-runtime/components/chart/theme/chart.theme.js.map +1 -1
  102. app-rn-runtime/components/container/accordion/accordion.component.js +63 -119
  103. app-rn-runtime/components/container/accordion/accordion.component.js.map +1 -1
  104. app-rn-runtime/components/container/accordion/accordion.props.js +1 -0
  105. app-rn-runtime/components/container/accordion/accordion.props.js.map +1 -1
  106. app-rn-runtime/components/container/accordion/accordion.styles.js +14 -4
  107. app-rn-runtime/components/container/accordion/accordion.styles.js.map +1 -1
  108. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +42 -7
  109. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  110. app-rn-runtime/components/container/accordion/accordionpane/accordionpane.props.js.map +1 -1
  111. app-rn-runtime/components/container/container.component.js.map +1 -1
  112. app-rn-runtime/components/container/container.props.js.map +1 -1
  113. app-rn-runtime/components/container/container.styles.js.map +1 -1
  114. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js.map +1 -1
  115. app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.props.js.map +1 -1
  116. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js.map +1 -1
  117. app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.props.js.map +1 -1
  118. app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js.map +1 -1
  119. app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js.map +1 -1
  120. app-rn-runtime/components/container/layoutgrid/layoutgrid.styles.js.map +1 -1
  121. app-rn-runtime/components/container/linearlayout/linearlayout.component.js.map +1 -1
  122. app-rn-runtime/components/container/linearlayout/linearlayout.props.js.map +1 -1
  123. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +1 -1
  124. app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +1 -1
  125. app-rn-runtime/components/container/panel/panel-content/panel-content.component.js.map +1 -1
  126. app-rn-runtime/components/container/panel/panel-content/panel-content.props.js.map +1 -1
  127. app-rn-runtime/components/container/panel/panel-footer/panel-footer.component.js.map +1 -1
  128. app-rn-runtime/components/container/panel/panel-footer/panel-footer.props.js.map +1 -1
  129. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  130. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  131. app-rn-runtime/components/container/panel/panel.styles.js +9 -0
  132. app-rn-runtime/components/container/panel/panel.styles.js.map +1 -1
  133. app-rn-runtime/components/container/partial-host.component.js.map +1 -1
  134. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +30 -5
  135. app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  136. app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js.map +1 -1
  137. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +10 -1
  138. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  139. app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js.map +1 -1
  140. app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js.map +1 -1
  141. app-rn-runtime/components/container/tabs/tabs.component.js +5 -2
  142. app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
  143. app-rn-runtime/components/container/tabs/tabs.props.js.map +1 -1
  144. app-rn-runtime/components/container/tabs/tabs.styles.js +39 -0
  145. app-rn-runtime/components/container/tabs/tabs.styles.js.map +1 -1
  146. app-rn-runtime/components/container/tile/tile.component.js.map +1 -1
  147. app-rn-runtime/components/container/tile/tile.props.js.map +1 -1
  148. app-rn-runtime/components/container/tile/tile.styles.js.map +1 -1
  149. app-rn-runtime/components/container/wizard/wizard.component.js +15 -6
  150. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  151. app-rn-runtime/components/container/wizard/wizard.props.js.map +1 -1
  152. app-rn-runtime/components/container/wizard/wizard.styles.js +53 -1
  153. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  154. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  155. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  156. app-rn-runtime/components/data/card/card-content/card-content.component.js.map +1 -1
  157. app-rn-runtime/components/data/card/card-content/card-content.props.js.map +1 -1
  158. app-rn-runtime/components/data/card/card-footer/card-footer.component.js.map +1 -1
  159. app-rn-runtime/components/data/card/card-footer/card-footer.props.js.map +1 -1
  160. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  161. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  162. app-rn-runtime/components/data/form/form-action/form-action.component.js.map +1 -1
  163. app-rn-runtime/components/data/form/form-action/form-action.props.js.map +1 -1
  164. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  165. app-rn-runtime/components/data/form/form-body/form-body.component.js.map +1 -1
  166. app-rn-runtime/components/data/form/form-body/form-body.props.js.map +1 -1
  167. app-rn-runtime/components/data/form/form-field/form-field.component.js +2 -2
  168. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  169. app-rn-runtime/components/data/form/form-field/form-field.props.js.map +1 -1
  170. app-rn-runtime/components/data/form/form-field/form-field.styles.js.map +1 -1
  171. app-rn-runtime/components/data/form/form-footer/form-footer.component.js.map +1 -1
  172. app-rn-runtime/components/data/form/form-footer/form-footer.props.js.map +1 -1
  173. app-rn-runtime/components/data/form/form.component.js +1 -2
  174. app-rn-runtime/components/data/form/form.component.js.map +1 -1
  175. app-rn-runtime/components/data/form/form.props.js.map +1 -1
  176. app-rn-runtime/components/data/form/form.styles.js.map +1 -1
  177. app-rn-runtime/components/data/list/list-template/list-template.component.js.map +1 -1
  178. app-rn-runtime/components/data/list/list-template/list-template.props.js.map +1 -1
  179. app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +1 -1
  180. app-rn-runtime/components/data/list/list.component.js +77 -16
  181. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  182. app-rn-runtime/components/data/list/list.props.js +2 -0
  183. app-rn-runtime/components/data/list/list.props.js.map +1 -1
  184. app-rn-runtime/components/data/list/list.styles.js.map +1 -1
  185. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  186. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  187. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  188. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  189. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  190. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  191. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  192. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  193. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js +9 -0
  194. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -1
  195. app-rn-runtime/components/dialogs/dialog/dialog.component.js +5 -2
  196. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  197. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  198. app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js.map +1 -1
  199. app-rn-runtime/components/dialogs/dialogactions/dialogactions.props.js.map +1 -1
  200. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -1
  201. app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.props.js.map +1 -1
  202. app-rn-runtime/components/input/basedataset/basedataset.component.js.map +1 -1
  203. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  204. app-rn-runtime/components/input/baseinput/baseinput.component.js +2 -2
  205. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  206. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  207. app-rn-runtime/components/input/basenumber/basenumber.component.js +1 -1
  208. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  209. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  210. app-rn-runtime/components/input/calendar/calendar.component.js.map +1 -1
  211. app-rn-runtime/components/input/calendar/calendar.props.js.map +1 -1
  212. app-rn-runtime/components/input/calendar/calendar.styles.js +22 -0
  213. app-rn-runtime/components/input/calendar/calendar.styles.js.map +1 -1
  214. app-rn-runtime/components/input/calendar/views/month-view.js +1 -0
  215. app-rn-runtime/components/input/calendar/views/month-view.js.map +1 -1
  216. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  217. app-rn-runtime/components/input/checkbox/checkbox.props.js.map +1 -1
  218. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  219. app-rn-runtime/components/input/checkboxset/checkboxset.props.js.map +1 -1
  220. app-rn-runtime/components/input/chips/chips.component.js +1 -0
  221. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  222. app-rn-runtime/components/input/chips/chips.props.js.map +1 -1
  223. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  224. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  225. app-rn-runtime/components/input/currency/currency.component.js +6 -4
  226. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  227. app-rn-runtime/components/input/currency/currency.props.js +1 -1
  228. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  229. app-rn-runtime/components/input/currency/currency.styles.js +9 -0
  230. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  231. app-rn-runtime/components/input/epoch/base-datetime.component.js +5 -2
  232. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  233. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  234. app-rn-runtime/components/input/epoch/date/date.props.js.map +1 -1
  235. app-rn-runtime/components/input/epoch/date/date.styles.js +9 -0
  236. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  237. app-rn-runtime/components/input/epoch/date-picker.component.js.map +1 -1
  238. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  239. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  240. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +9 -0
  241. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  242. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  243. app-rn-runtime/components/input/epoch/time/time.props.js.map +1 -1
  244. app-rn-runtime/components/input/epoch/time/time.styles.js +9 -0
  245. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  246. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  247. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  248. app-rn-runtime/components/input/number/number.component.js +6 -4
  249. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  250. app-rn-runtime/components/input/number/number.props.js +1 -1
  251. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  252. app-rn-runtime/components/input/number/number.styles.js +5 -0
  253. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  254. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  255. app-rn-runtime/components/input/radioset/radioset.props.js.map +1 -1
  256. app-rn-runtime/components/input/rating/rating.component.js +1 -1
  257. app-rn-runtime/components/input/rating/rating.component.js.map +1 -1
  258. app-rn-runtime/components/input/rating/rating.props.js.map +1 -1
  259. app-rn-runtime/components/input/select/select.component.js +1 -1
  260. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  261. app-rn-runtime/components/input/select/select.props.js.map +1 -1
  262. app-rn-runtime/components/input/select/select.styles.js +10 -0
  263. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  264. app-rn-runtime/components/input/slider/slider.component.js +2 -1
  265. app-rn-runtime/components/input/slider/slider.component.js.map +1 -1
  266. app-rn-runtime/components/input/slider/slider.props.js.map +1 -1
  267. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  268. app-rn-runtime/components/input/switch/switch.props.js.map +1 -1
  269. app-rn-runtime/components/input/switch/switch.styles.js +36 -0
  270. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  271. app-rn-runtime/components/input/text/text.component.js +5 -3
  272. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  273. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  274. app-rn-runtime/components/input/text/text.styles.js +5 -0
  275. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  276. app-rn-runtime/components/input/textarea/textarea.component.js +5 -3
  277. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  278. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  279. app-rn-runtime/components/input/textarea/textarea.styles.js +5 -0
  280. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  281. app-rn-runtime/components/input/toggle/toggle.component.js +17 -11
  282. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  283. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  284. app-rn-runtime/components/input/toggle/toggle.styles.js +28 -3
  285. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  286. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  287. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  288. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  289. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  290. app-rn-runtime/components/navigation/basenav/basenav.props.js.map +1 -1
  291. app-rn-runtime/components/navigation/menu/menu.component.js.map +1 -1
  292. app-rn-runtime/components/navigation/menu/menu.props.js.map +1 -1
  293. app-rn-runtime/components/navigation/menu/menu.styles.js +6 -0
  294. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  295. app-rn-runtime/components/navigation/navbar/navbar.component.js.map +1 -1
  296. app-rn-runtime/components/navigation/navbar/navbar.props.js.map +1 -1
  297. app-rn-runtime/components/navigation/navbar/navbar.styles.js.map +1 -1
  298. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  299. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  300. app-rn-runtime/components/navigation/navitem/navitem.styles.js.map +1 -1
  301. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  302. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  303. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  304. app-rn-runtime/components/page/content/content.component.js.map +1 -1
  305. app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
  306. app-rn-runtime/components/page/left-panel/left-panel.props.js.map +1 -1
  307. app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
  308. app-rn-runtime/components/page/page-content/page-content.props.js.map +1 -1
  309. app-rn-runtime/components/page/page.component.js.map +1 -1
  310. app-rn-runtime/components/page/partial/partial.component.js.map +1 -1
  311. app-rn-runtime/components/page/partial-container/partial-container.component.js.map +1 -1
  312. app-rn-runtime/components/page/partial-container/partial-container.props.js.map +1 -1
  313. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  314. app-rn-runtime/components/page/tabbar/tabbar.props.js.map +1 -1
  315. app-rn-runtime/components/prefab/prefab-container.component.js.map +1 -1
  316. app-rn-runtime/core/asset.provider.js.map +1 -1
  317. app-rn-runtime/core/base.component.js +19 -14
  318. app-rn-runtime/core/base.component.js.map +1 -1
  319. app-rn-runtime/core/components/textinput.component.js +37 -0
  320. app-rn-runtime/core/components/textinput.component.js.map +1 -0
  321. app-rn-runtime/core/device/camera-service.js.map +1 -1
  322. app-rn-runtime/core/device/scan-service.js.map +1 -1
  323. app-rn-runtime/core/display.manager.js.map +1 -1
  324. app-rn-runtime/core/event-notifier.js.map +1 -1
  325. app-rn-runtime/core/fixed-view.component.js.map +1 -1
  326. app-rn-runtime/core/formatters.js.map +1 -1
  327. app-rn-runtime/core/i18n.service.js +2 -0
  328. app-rn-runtime/core/i18n.service.js.map +1 -0
  329. app-rn-runtime/core/if.component.js +3 -3
  330. app-rn-runtime/core/if.component.js.map +1 -1
  331. app-rn-runtime/core/imageSizeEstimator.js.map +1 -1
  332. app-rn-runtime/core/injector.js +2 -1
  333. app-rn-runtime/core/injector.js.map +1 -1
  334. app-rn-runtime/core/logger.js +4 -1
  335. app-rn-runtime/core/logger.js.map +1 -1
  336. app-rn-runtime/core/modal.service.js.map +1 -1
  337. app-rn-runtime/core/navigation.service.js.map +1 -1
  338. app-rn-runtime/core/network.service.js +17 -15
  339. app-rn-runtime/core/network.service.js.map +1 -1
  340. app-rn-runtime/core/partial.service.js.map +1 -1
  341. app-rn-runtime/core/props.provider.js.map +1 -1
  342. app-rn-runtime/core/scroll-view.component.js.map +1 -1
  343. app-rn-runtime/core/security.service.js.map +1 -1
  344. app-rn-runtime/core/spinner.service.js.map +1 -1
  345. app-rn-runtime/core/storage.service.js.map +1 -1
  346. app-rn-runtime/core/tappable.component.js +11 -2
  347. app-rn-runtime/core/tappable.component.js.map +1 -1
  348. app-rn-runtime/core/toast.service.js.map +1 -1
  349. app-rn-runtime/core/utils.js +3 -0
  350. app-rn-runtime/core/utils.js.map +1 -1
  351. app-rn-runtime/core/viewport.js.map +1 -1
  352. app-rn-runtime/gestures/swipe.animation.js +9 -4
  353. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  354. app-rn-runtime/package.json +30 -30
  355. app-rn-runtime/runtime/App.js +14 -6
  356. app-rn-runtime/runtime/App.js.map +1 -1
  357. app-rn-runtime/runtime/App.navigator.js +11 -2
  358. app-rn-runtime/runtime/App.navigator.js.map +1 -1
  359. app-rn-runtime/runtime/base-fragment.component.js +4 -4
  360. app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
  361. app-rn-runtime/runtime/base-page.component.js +2 -0
  362. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  363. app-rn-runtime/runtime/base-partial.component.js.map +1 -1
  364. app-rn-runtime/runtime/base-prefab.component.js +1 -5
  365. app-rn-runtime/runtime/base-prefab.component.js.map +1 -1
  366. app-rn-runtime/runtime/lib-patch.js.map +1 -1
  367. app-rn-runtime/runtime/memo.component.js.map +1 -1
  368. app-rn-runtime/runtime/navigator/drawer.navigator.js.map +1 -1
  369. app-rn-runtime/runtime/navigator/stack.navigator.js.map +1 -1
  370. app-rn-runtime/runtime/services/app-display-manager.service.js.map +1 -1
  371. app-rn-runtime/runtime/services/app-i18n.service.js +20 -0
  372. app-rn-runtime/runtime/services/app-i18n.service.js.map +1 -1
  373. app-rn-runtime/runtime/services/app-modal.service.js.map +1 -1
  374. app-rn-runtime/runtime/services/app-security.service.js +7 -7
  375. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  376. app-rn-runtime/runtime/services/app-spinner.service.js +3 -2
  377. app-rn-runtime/runtime/services/app-spinner.service.js.map +1 -1
  378. app-rn-runtime/runtime/services/app-toast.service.js.map +1 -1
  379. app-rn-runtime/runtime/services/device/calendar-service.js.map +1 -1
  380. app-rn-runtime/runtime/services/device/camera-service.js +2 -3
  381. app-rn-runtime/runtime/services/device/camera-service.js.map +1 -1
  382. app-rn-runtime/runtime/services/device/contacts-service.js.map +1 -1
  383. app-rn-runtime/runtime/services/device/location-service.js.map +1 -1
  384. app-rn-runtime/runtime/services/device/permissions.js.map +1 -1
  385. app-rn-runtime/runtime/services/device/scan-service.js.map +1 -1
  386. app-rn-runtime/runtime/services/partial.service.js.map +1 -1
  387. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  388. app-rn-runtime/runtime/watcher.js.map +1 -1
  389. app-rn-runtime/styles/MediaQueryList.js.map +1 -1
  390. app-rn-runtime/styles/background.component.js +51 -12
  391. app-rn-runtime/styles/background.component.js.map +1 -1
  392. app-rn-runtime/styles/style-prop.validator.js +4 -0
  393. app-rn-runtime/styles/style-prop.validator.js.map +1 -1
  394. app-rn-runtime/styles/style-props.js.map +1 -1
  395. app-rn-runtime/styles/theme.js +8 -3
  396. app-rn-runtime/styles/theme.js.map +1 -1
  397. app-rn-runtime/styles/theme.variables.js +53 -1
  398. app-rn-runtime/styles/theme.variables.js.map +1 -1
  399. app-rn-runtime/variables/base-variable.js +3 -3
  400. app-rn-runtime/variables/base-variable.js.map +1 -1
  401. app-rn-runtime/variables/device/calendar/create-event.operation.js.map +1 -1
  402. app-rn-runtime/variables/device/calendar/delete-event.operation.js.map +1 -1
  403. app-rn-runtime/variables/device/calendar/get-events.operation.js.map +1 -1
  404. app-rn-runtime/variables/device/camera/capture-image.operation.js.map +1 -1
  405. app-rn-runtime/variables/device/camera/capture-video.operation.js.map +1 -1
  406. app-rn-runtime/variables/device/contacts/get-contacts.operation.js.map +1 -1
  407. app-rn-runtime/variables/device/device/app-info.operation.js.map +1 -1
  408. app-rn-runtime/variables/device/device/current-geo-position.operation.js.map +1 -1
  409. app-rn-runtime/variables/device/device/device-info.operation.js.map +1 -1
  410. app-rn-runtime/variables/device/device/network-info.operation.js.map +1 -1
  411. app-rn-runtime/variables/device/device/vibrate.operation.js.map +1 -1
  412. app-rn-runtime/variables/device/file/upload-file.operation.js.map +1 -1
  413. app-rn-runtime/variables/device/operation.provider.js.map +1 -1
  414. app-rn-runtime/variables/device/scan/scan.operation.js.map +1 -1
  415. app-rn-runtime/variables/device-variable.js.map +1 -1
  416. app-rn-runtime/variables/http.service.js +1 -1
  417. app-rn-runtime/variables/http.service.js.map +1 -1
  418. app-rn-runtime/variables/model-variable.js.map +1 -1
  419. app-rn-runtime/variables/service-variable.js +8 -3
  420. app-rn-runtime/variables/service-variable.js.map +1 -1
  421. app-rn-runtime/variables/utils/dataset-util.js.map +1 -1
  422. app-rn-runtime/variables/utils/inflight-queue.js.map +1 -1
  423. app-rn-runtime/variables/utils/variable.utils.js.map +1 -1
@@ -4,11 +4,13 @@ function _toPrimitive(input, hint) { if (typeof input !== "object" || input ===
4
4
  import * as React from 'react';
5
5
  import { LinearGradient as ExpoLinearGradient } from 'expo-linear-gradient';
6
6
  import { Image, StyleSheet, View } from 'react-native';
7
- import { isEmpty, isNil, isNumber, isString } from 'lodash-es';
7
+ import { isEmpty, isNil, isNumber } from 'lodash-es';
8
8
  import imageSizeEstimator from '@wavemaker/app-rn-runtime/core/imageSizeEstimator';
9
9
  import { AssetConsumer } from '@wavemaker/app-rn-runtime/core/asset.provider';
10
+ import { isFullPathUrl } from '@wavemaker/app-rn-runtime/core/utils';
10
11
  const IMAGE_URL_REGEX = /url\(['|"]?(.+)['|"]?\)$/gi;
11
12
  const LINEAT_GRADIENT_REGEX = /linear-gradient\((.+)\)$/gi;
13
+ const DIMENSION_REGEX = /([0-9%]+)[a-z]*/g;
12
14
  const BACKGROUND_POSITION_REGEX = /([0-9%]+)[a-z]*\s*([0-9%]+)[a-z]*/g;
13
15
  const BACKGROUND_SIZE_REGEX = /([0-9%]+)[a-z]*\s*([0-9%]+)[a-z]*/g;
14
16
  export class LinearGradient extends React.Component {
@@ -128,14 +130,53 @@ export class BackgroundComponent extends React.Component {
128
130
  });
129
131
  }
130
132
  }
133
+ getDimension(dim) {
134
+ if (dim) {
135
+ const value = dim.matchAll(DIMENSION_REGEX).next().value;
136
+ if (value[1]) {
137
+ return value[1].endsWith('%') ? value[1] : parseInt(value[1]);
138
+ }
139
+ }
140
+ return null;
141
+ }
142
+ getPosition() {
143
+ const result = {};
144
+ if (!this.props.position) {
145
+ return result;
146
+ }
147
+ const position = this.props.position.split(' ').map(s => s.trim());
148
+ if (position[0] === 'center') {
149
+ result.alignItems = 'center';
150
+ } else if (position[0] === 'top') {
151
+ result.top = 0;
152
+ } else if (position[0] === 'bottom') {
153
+ result.bottom = 0;
154
+ } else {
155
+ result.top = this.getDimension(position[0]);
156
+ }
157
+ if (position[1] === 'center') {
158
+ result.justifyContent = 'center';
159
+ } else if (position[1] === 'left') {
160
+ result.left = 0;
161
+ } else if (position[1] === 'bottom') {
162
+ result.right = 0;
163
+ } else {
164
+ result.left = this.getDimension(position[1]);
165
+ }
166
+ return result;
167
+ }
131
168
  getPositionAndSize() {
132
- var _this$props$size2, _this$getGradient, _this$getGradient$val;
169
+ var _this$props$size2, _this$getGradient;
133
170
  const result = {};
134
171
  if (this.props.resizeMode) {
135
172
  result.resizeMode = this.props.resizeMode;
136
173
  return result;
137
174
  } else if (this.props.position === 'center') {
138
175
  result.resizeMode = 'center';
176
+ result.position = {
177
+ justifyContent: 'center',
178
+ alignItems: 'center'
179
+ };
139
180
  } else if (this.props.size === 'contain' || this.props.size === 'cover') {
140
181
  result.resizeMode = this.props.size;
141
182
  return result;
@@ -147,12 +188,9 @@ export class BackgroundComponent extends React.Component {
147
188
  result.size.height = size[2].endsWith('%') ? size[2] : parseInt(size[2]);
148
189
  }
149
190
  if (!result.resizeMode && this.props.position) {
150
- result.position = {};
151
- const position = this.props.position.matchAll(BACKGROUND_POSITION_REGEX).next().value;
152
- result.position.top = position[1].endsWith('%') ? position[1] : parseInt(position[1]);
153
- result.position.left = position[2].endsWith('%') ? position[2] : parseInt(position[2]);
191
+ result.position = this.getPosition();
154
192
  }
155
- if (!((_this$getGradient = this.getGradient()) !== null && _this$getGradient !== void 0 && (_this$getGradient$val = _this$getGradient.value) !== null && _this$getGradient$val !== void 0 && _this$getGradient$val.length)) {
193
+ if (!((_this$getGradient = this.getGradient()) !== null && _this$getGradient !== void 0 && (_this$getGradient = _this$getGradient.value) !== null && _this$getGradient !== void 0 && _this$getGradient.length)) {
156
194
  if (this.props.repeat === 'no-repeat') {
157
195
  result.size.width = result.size.width || this.state.naturalImageWidth;
158
196
  result.size.height = result.size.height || this.state.naturalImageHeight;
@@ -198,7 +236,7 @@ export class BackgroundComponent extends React.Component {
198
236
  if (this.loadAsset) {
199
237
  source = this.loadAsset(source);
200
238
  }
201
- if (isString(source) && (source.startsWith('data:') || source.startsWith('http') || source.startsWith('file:'))) {
239
+ if (isFullPathUrl(source)) {
202
240
  source = {
203
241
  uri: source
204
242
  };
@@ -215,6 +253,7 @@ export class BackgroundComponent extends React.Component {
215
253
  renderImage() {
216
254
  const psresult = this.getPositionAndSize();
217
255
  return /*#__PURE__*/React.createElement(AssetConsumer, null, loadAsset => {
256
+ var _psresult$position, _psresult$position2;
218
257
  this.loadAsset = loadAsset;
219
258
  return /*#__PURE__*/React.createElement(View, {
220
259
  style: [{
@@ -222,11 +261,11 @@ export class BackgroundComponent extends React.Component {
222
261
  overflow: 'hidden'
223
262
  }, StyleSheet.absoluteFill, this.props.style]
224
263
  }, /*#__PURE__*/React.createElement(View, {
225
- style: [StyleSheet.absoluteFill, this.props.position === 'center' ? {
264
+ style: [StyleSheet.absoluteFill, {
226
265
  flexDirection: 'row',
227
- justifyContent: 'center',
228
- alignItems: 'center'
229
- } : null]
266
+ justifyContent: (_psresult$position = psresult.position) === null || _psresult$position === void 0 ? void 0 : _psresult$position.justifyContent,
267
+ alignItems: (_psresult$position2 = psresult.position) === null || _psresult$position2 === void 0 ? void 0 : _psresult$position2.alignItems
268
+ }]
230
269
  }, /*#__PURE__*/React.createElement(View, {
231
270
  style: [{
232
271
  position: 'absolute',
@@ -1 +1 @@
1
- {"version":3,"names":["React","LinearGradient","ExpoLinearGradient","Image","StyleSheet","View","isEmpty","isNil","isNumber","isString","imageSizeEstimator","AssetConsumer","IMAGE_URL_REGEX","LINEAT_GRADIENT_REGEX","BACKGROUND_POSITION_REGEX","BACKGROUND_SIZE_REGEX","Component","constructor","props","state","parse","val","value","splits","split","map","v","trim","angle","locations","endsWith","parseInt","shift","delta","Math","round","tan","PI","abs","end","x","y","start","colors","s","p","matchAll","next","push","replace","componentDidUpdate","prevProps","prevState","snapshot","setState","render","borderWidth","overflow","absoluteFill","style","middle","flexDirection","justifyContent","alignItems","size","width","position","borderRadius","children","BackgroundComponent","caluculateSize","imageSrc","height","resolveAssetSource","naturalImageWidth","naturalImageHeight","getSize","uri","getPositionAndSize","result","resizeMode","top","left","getGradient","length","repeat","renderLinearGradient","data","psresult","image","setImage","componentDidMount","setTimeout","source","startsWith","loadAsset","renderImage","minWidth","minHeight","gradientData"],"sources":["background.component.tsx"],"sourcesContent":["import * as React from 'react';\nimport { LinearGradient as ExpoLinearGradient, LinearGradientPoint } from 'expo-linear-gradient';\nimport { Image, StyleSheet, View, ViewStyle } from 'react-native';\nimport { isEmpty, isNil, isNumber, isString } from 'lodash-es';\nimport imageSizeEstimator from '@wavemaker/app-rn-runtime/core/imageSizeEstimator';\nimport { AssetConsumer } from '@wavemaker/app-rn-runtime/core/asset.provider';\n\nexport interface LinearGradientProps {\n value: string;\n children: any;\n style?: ViewStyle;\n size?: ViewStyle;\n position?: ViewStyle;\n middle?: boolean;\n}\n\nexport interface LinearGradientState {\n colors: string[];\n locations: number[];\n start: LinearGradientPoint;\n end: LinearGradientPoint;\n}\n\nconst IMAGE_URL_REGEX = /url\\(['|\"]?(.+)['|\"]?\\)$/gi;\nconst LINEAT_GRADIENT_REGEX = /linear-gradient\\((.+)\\)$/gi;\nconst BACKGROUND_POSITION_REGEX = /([0-9%]+)[a-z]*\\s*([0-9%]+)[a-z]*/g;\nconst BACKGROUND_SIZE_REGEX = /([0-9%]+)[a-z]*\\s*([0-9%]+)[a-z]*/g;\n\nexport class LinearGradient extends React.Component<LinearGradientProps, LinearGradientState> {\n\n constructor(props: LinearGradientProps) {\n super(props);\n this.state = this.parse();\n }\n\n parse(val = this.props.value) {\n let state = {} as LinearGradientState;\n const splits = val.split(',').map(v => v.trim());\n let angle = 0;\n const locations: LinearGradientPoint[] = [];\n if (splits[0].endsWith('deg')) {\n angle = (parseInt(splits[0].split('deg')[0]))%360;\n angle = angle < 0 ? (360 + angle) : angle;\n splits.shift();\n }\n angle += 90;\n const delta = Math.round(Math.tan((angle * Math.PI) / 180) * 100)/100;\n if (Math.abs(delta) > 1) {\n state = {\n end: {\n x: -0.5 / delta + 0.5,\n y: 0\n },\n start: {\n x: 0.5 / delta + 0.5,\n y: 1\n }\n } as LinearGradientState;\n } else {\n state = {\n start: {\n x: 0,\n y: -0.5 * delta + 0.5\n },\n end: {\n x: 1,\n y: 0.5 * delta + 0.5\n }\n } as LinearGradientState;\n }\n if (angle >= 270 && angle <= 450) {\n state = {\n start : state.end,\n end: state.start\n } as LinearGradientState;\n }\n state.colors = [];\n state.locations = [];\n splits.map(s => {\n const p = s.matchAll(/\\s*([0-9]+)%/g).next()?.value;\n if (p) {\n state.locations.push(parseInt(p[1]) / 100);\n state.colors.push(s.replace(p[0], ''));\n } else {\n state.locations.push(null as any);\n state.colors.push(s);\n }\n });\n return state;\n }\n\n componentDidUpdate(prevProps: Readonly<LinearGradientProps>, prevState: Readonly<{}>, snapshot?: any): void {\n if (prevProps.value !== this.props.value) {\n this.setState(this.parse());\n }\n }\n \n\n public render() {\n return (\n <View style={[{borderWidth: 0, overflow: 'hidden'}, StyleSheet.absoluteFill, this.props.style]}>\n <View style={[\n StyleSheet.absoluteFill, this.props.middle ? {\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center'\n } : null]}>\n <ExpoLinearGradient\n colors={this.state.colors}\n locations={this.state.locations}\n start={this.state.start}\n end={this.state.end}\n style={[\n this.props.size?.width ? this.props.size : StyleSheet.absoluteFill,\n this.props.position,\n {position: 'absolute', borderRadius: this.props.style?.borderRadius}\n ]}\n />\n </View>\n {this.props.children}\n </View>\n );\n }\n}\n\nexport interface BackgroundProps {\n image?: string;\n position?: string;\n children?: any;\n resizeMode?: string;\n repeat?: string;\n style?: ViewStyle;\n size: string;\n}\n\nexport interface BackgroundState {\n imageSrc: any;\n naturalImageWidth: number,\n naturalImageHeight: number\n}\n\nexport class BackgroundComponent extends React.Component<BackgroundProps, BackgroundState> {\n\n private loadAsset: (path: string) => number | string = null as any;\n\n constructor(props: BackgroundProps) {\n super(props);\n this.state = {} as BackgroundState;\n }\n\n public caluculateSize(imageSrc: any) {\n if (isNumber(imageSrc)) {\n const {width, height} = Image.resolveAssetSource(imageSrc);\n this.setState({\n naturalImageWidth: width,\n naturalImageHeight: height\n } as BackgroundState);\n } else if (!isNil(imageSrc)) {\n imageSizeEstimator.getSize(imageSrc.uri, (width: number, height: number) => {\n this.setState({\n naturalImageWidth: width,\n naturalImageHeight: height\n } as BackgroundState);\n });\n }\n }\n\n public getPositionAndSize() {\n const result: {\n resizeMode? : string,\n position?: {\n top?: string | number,\n left?: string | number,\n },\n size?: {\n width?: string | number,\n height? : string | number\n }\n } = {} as any;\n if (this.props.resizeMode) {\n result.resizeMode = this.props.resizeMode;\n return result;\n } else if (this.props.position === 'center') {\n result.resizeMode = 'center';\n } else if (this.props.size === 'contain' || this.props.size === 'cover') {\n result.resizeMode = this.props.size;\n return result;\n }\n const size = this.props.size?.matchAll(BACKGROUND_SIZE_REGEX).next().value;\n result.size = {};\n if (size) {\n result.size.width = size[1].endsWith('%') ? size[1] : parseInt(size[1]);\n result.size.height = size[2].endsWith('%') ? size[2] : parseInt(size[2]);\n }\n if (!result.resizeMode && this.props.position) {\n result.position = {};\n const position = this.props.position.matchAll(BACKGROUND_POSITION_REGEX).next().value;\n result.position.top = position[1].endsWith('%') ? position[1] : parseInt(position[1]);\n result.position.left = position[2].endsWith('%') ? position[2] : parseInt(position[2]);\n }\n if (!this.getGradient()?.value?.length) {\n if (this.props.repeat === 'no-repeat') {\n result.size.width = result.size.width || this.state.naturalImageWidth; \n result.size.height = result.size.height || this.state.naturalImageHeight; \n } else if (this.props.repeat === 'repeat-x') {\n result.resizeMode = 'repeat';\n result.size.width = result.size.width || '100%'; \n result.size.height = result.size.height || this.state.naturalImageHeight; \n } else if (this.props.repeat === 'repeat-y') {\n result.resizeMode = 'repeat';\n result.size.width = result.size.width || this.state.naturalImageWidth; \n result.size.height = result.size.height || '100%'; \n } else {\n result.resizeMode = 'repeat';\n }\n }\n return result;\n }\n\n public renderLinearGradient(data: string) {\n const psresult = this.getPositionAndSize();\n return (\n <LinearGradient\n value={data || ''}\n style={this.props.style}\n size={psresult.size}\n position={psresult.position}\n middle={psresult.resizeMode === 'center'}>\n </LinearGradient>\n );\n }\n\n componentDidUpdate(prevProps: Readonly<BackgroundProps>, prevState: Readonly<{}>, snapshot?: any): void {\n if (prevProps.image !== this.props.image) {\n this.setImage();\n }\n }\n\n componentDidMount(): void {\n setTimeout(() => this.setImage(), 100);\n }\n\n setImage() {\n let source = this.props.image?.trim() as any;\n if (source?.startsWith('url')) {\n source = this.props.image?.matchAll(IMAGE_URL_REGEX).next().value[1];\n }\n if (this.loadAsset) {\n source = this.loadAsset(source);\n }\n if (isString(source) && (\n source.startsWith('data:') ||\n source.startsWith('http') || \n source.startsWith('file:'))) {\n source = {\n uri: source\n };\n }\n this.caluculateSize(source);\n this.setState({\n imageSrc: source\n } as BackgroundState);\n }\n\n public getGradient() {\n return this.props.image?.trim().matchAll(LINEAT_GRADIENT_REGEX).next();\n }\n\n public renderImage() {\n const psresult = this.getPositionAndSize();\n return (\n <AssetConsumer>\n {(loadAsset) => {\n this.loadAsset = loadAsset;\n return (<View style={[{borderWidth: 0, overflow: 'hidden'}, StyleSheet.absoluteFill, this.props.style]}>\n <View style={[\n StyleSheet.absoluteFill, this.props.position === 'center' ? {\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center'\n } : null]}>\n <View style={[\n { position: 'absolute', overflow: 'hidden' },\n psresult.position,\n isEmpty(psresult.size) ? StyleSheet.absoluteFill : psresult.size\n ]}>\n <Image\n source={this.state.imageSrc}\n resizeMode={psresult.resizeMode as any || 'cover'}\n style={[\n { \n width: '100%',\n height: '100%'\n }, \n isEmpty(psresult.size) ? {\n minWidth: this.state.naturalImageWidth,\n minHeight: this.state.naturalImageHeight\n } : null\n ]}/>\n </View>\n </View>\n </View>);\n }}\n </AssetConsumer>\n );\n }\n\n public render() {\n const gradientData = this.getGradient();\n if (gradientData?.value?.length) {\n return this.renderLinearGradient(gradientData.value[1]);\n } else if (this.props.image) {\n return this.renderImage();\n }\n return null;\n }\n}\n\n"],"mappings":";;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,IAAIC,kBAAkB,QAA6B,sBAAsB;AAChG,SAASC,KAAK,EAAEC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AACjE,SAASC,OAAO,EAAEC,KAAK,EAAEC,QAAQ,EAAEC,QAAQ,QAAQ,WAAW;AAC9D,OAAOC,kBAAkB,MAAM,mDAAmD;AAClF,SAASC,aAAa,QAAQ,+CAA+C;AAkB7E,MAAMC,eAAe,GAAG,4BAA4B;AACpD,MAAMC,qBAAqB,GAAG,4BAA4B;AAC1D,MAAMC,yBAAyB,GAAG,oCAAoC;AACtE,MAAMC,qBAAqB,GAAG,oCAAoC;AAElE,OAAO,MAAMd,cAAc,SAASD,KAAK,CAACgB,SAAS,CAA2C;EAE1FC,WAAW,CAACC,KAA0B,EAAE;IACpC,KAAK,CAACA,KAAK,CAAC;IACZ,IAAI,CAACC,KAAK,GAAG,IAAI,CAACC,KAAK,EAAE;EAC7B;EAEAA,KAAK,GAAyB;IAAA,IAAxBC,GAAG,uEAAG,IAAI,CAACH,KAAK,CAACI,KAAK;IACxB,IAAIH,KAAK,GAAG,CAAC,CAAwB;IACrC,MAAMI,MAAM,GAAGF,GAAG,CAACG,KAAK,CAAC,GAAG,C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ChB,WAAW,EAAE;IACvC,IAAIgB,YAAY,aAAZA,YAAY,sCAAZA,YAAY,CAAE7E,KAAK,gDAAnB,oBAAqB8D,MAAM,EAAE;MAC7B,OAAO,IAAI,CAACE,oBAAoB,CAACa,YAAY,CAAC7E,KAAK,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC,MAAM,IAAI,IAAI,CAACJ,KAAK,CAACuE,KAAK,EAAE;MACzB,OAAO,IAAI,CAACO,WAAW,EAAE;IAC7B;IACA,OAAO,IAAI;EACf;AACJ"}
1
+ {"version":3,"names":["React","LinearGradient","ExpoLinearGradient","Image","StyleSheet","View","isEmpty","isNil","isNumber","imageSizeEstimator","AssetConsumer","isFullPathUrl","IMAGE_URL_REGEX","LINEAT_GRADIENT_REGEX","DIMENSION_REGEX","BACKGROUND_POSITION_REGEX","BACKGROUND_SIZE_REGEX","Component","constructor","props","state","parse","val","arguments","length","undefined","value","splits","split","map","v","trim","angle","locations","endsWith","parseInt","shift","delta","Math","round","tan","PI","abs","end","x","y","start","colors","s","_s$matchAll$next","p","matchAll","next","push","replace","componentDidUpdate","prevProps","prevState","snapshot","setState","render","_this$props$size","_this$props$style","createElement","style","borderWidth","overflow","absoluteFill","middle","flexDirection","justifyContent","alignItems","size","width","position","borderRadius","children","BackgroundComponent","_defineProperty","caluculateSize","imageSrc","height","resolveAssetSource","naturalImageWidth","naturalImageHeight","getSize","uri","getDimension","dim","getPosition","result","top","bottom","left","right","getPositionAndSize","_this$props$size2","_this$getGradient","resizeMode","getGradient","repeat","renderLinearGradient","data","psresult","image","setImage","componentDidMount","setTimeout","_this$props$image","_source","source","startsWith","_this$props$image2","loadAsset","_this$props$image3","renderImage","_psresult$position","_psresult$position2","minWidth","minHeight","_gradientData$value","gradientData"],"sources":["background.component.tsx"],"sourcesContent":["import * as React from 'react';\nimport { LinearGradient as ExpoLinearGradient, LinearGradientPoint } from 'expo-linear-gradient';\nimport { Image, StyleSheet, View, ViewStyle } from 'react-native';\nimport { isEmpty, isNil, isNumber, isString } from 'lodash-es';\nimport imageSizeEstimator from '@wavemaker/app-rn-runtime/core/imageSizeEstimator';\nimport { AssetConsumer } from '@wavemaker/app-rn-runtime/core/asset.provider';\nimport { isFullPathUrl } from '@wavemaker/app-rn-runtime/core/utils';\n\nexport interface LinearGradientProps {\n value: string;\n children: any;\n style?: ViewStyle;\n size?: ViewStyle;\n position?: ViewStyle;\n middle?: boolean;\n}\n\nexport interface LinearGradientState {\n colors: string[];\n locations: number[];\n start: LinearGradientPoint;\n end: LinearGradientPoint;\n}\n\nconst IMAGE_URL_REGEX = /url\\(['|\"]?(.+)['|\"]?\\)$/gi;\nconst LINEAT_GRADIENT_REGEX = /linear-gradient\\((.+)\\)$/gi;\nconst DIMENSION_REGEX = /([0-9%]+)[a-z]*/g;\nconst BACKGROUND_POSITION_REGEX = /([0-9%]+)[a-z]*\\s*([0-9%]+)[a-z]*/g;\nconst BACKGROUND_SIZE_REGEX = /([0-9%]+)[a-z]*\\s*([0-9%]+)[a-z]*/g;\n\nexport class LinearGradient extends React.Component<LinearGradientProps, LinearGradientState> {\n\n constructor(props: LinearGradientProps) {\n super(props);\n this.state = this.parse();\n }\n\n parse(val = this.props.value) {\n let state = {} as LinearGradientState;\n const splits = val.split(',').map(v => v.trim());\n let angle = 0;\n const locations: LinearGradientPoint[] = [];\n if (splits[0].endsWith('deg')) {\n angle = (parseInt(splits[0].split('deg')[0]))%360;\n angle = angle < 0 ? (360 + angle) : angle;\n splits.shift();\n }\n angle += 90;\n const delta = Math.round(Math.tan((angle * Math.PI) / 180) * 100)/100;\n if (Math.abs(delta) > 1) {\n state = {\n end: {\n x: -0.5 / delta + 0.5,\n y: 0\n },\n start: {\n x: 0.5 / delta + 0.5,\n y: 1\n }\n } as LinearGradientState;\n } else {\n state = {\n start: {\n x: 0,\n y: -0.5 * delta + 0.5\n },\n end: {\n x: 1,\n y: 0.5 * delta + 0.5\n }\n } as LinearGradientState;\n }\n if (angle >= 270 && angle <= 450) {\n state = {\n start : state.end,\n end: state.start\n } as LinearGradientState;\n }\n state.colors = [];\n state.locations = [];\n splits.map(s => {\n const p = s.matchAll(/\\s*([0-9]+)%/g).next()?.value;\n if (p) {\n state.locations.push(parseInt(p[1]) / 100);\n state.colors.push(s.replace(p[0], ''));\n } else {\n state.locations.push(null as any);\n state.colors.push(s);\n }\n });\n return state;\n }\n\n componentDidUpdate(prevProps: Readonly<LinearGradientProps>, prevState: Readonly<{}>, snapshot?: any): void {\n if (prevProps.value !== this.props.value) {\n this.setState(this.parse());\n }\n }\n \n\n public render() {\n return (\n <View style={[{borderWidth: 0, overflow: 'hidden'}, StyleSheet.absoluteFill, this.props.style]}>\n <View style={[\n StyleSheet.absoluteFill, this.props.middle ? {\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center'\n } : null]}>\n <ExpoLinearGradient\n colors={this.state.colors}\n locations={this.state.locations}\n start={this.state.start}\n end={this.state.end}\n style={[\n this.props.size?.width ? this.props.size : StyleSheet.absoluteFill,\n this.props.position,\n {position: 'absolute', borderRadius: this.props.style?.borderRadius}\n ]}\n />\n </View>\n {this.props.children}\n </View>\n );\n }\n}\n\nexport interface BackgroundProps {\n image?: string;\n position?: string;\n children?: any;\n resizeMode?: string;\n repeat?: string;\n style?: ViewStyle;\n size: string;\n}\n\nexport interface BackgroundState {\n imageSrc: any;\n naturalImageWidth: number,\n naturalImageHeight: number\n}\n\nexport class BackgroundComponent extends React.Component<BackgroundProps, BackgroundState> {\n\n private loadAsset: (path: string) => number | string = null as any;\n\n constructor(props: BackgroundProps) {\n super(props);\n this.state = {} as BackgroundState;\n }\n\n public caluculateSize(imageSrc: any) {\n if (isNumber(imageSrc)) {\n const {width, height} = Image.resolveAssetSource(imageSrc);\n this.setState({\n naturalImageWidth: width,\n naturalImageHeight: height\n } as BackgroundState);\n } else if (!isNil(imageSrc)) {\n imageSizeEstimator.getSize(imageSrc.uri, (width: number, height: number) => {\n this.setState({\n naturalImageWidth: width,\n naturalImageHeight: height\n } as BackgroundState);\n });\n }\n }\n\n getDimension(dim: string) {\n if (dim) {\n const value = dim.matchAll(DIMENSION_REGEX).next().value;\n if (value[1]) {\n return value[1].endsWith('%') ? value[1] : parseInt(value[1]);\n }\n }\n return null;\n }\n\n public getPosition() {\n const result = {} as ViewStyle;\n if (!this.props.position) {\n return result;\n }\n const position = this.props.position.split(' ').map(s => s.trim());\n if (position[0] === 'center') {\n result.alignItems = 'center';\n } else if (position[0] === 'top') {\n result.top = 0;\n } else if (position[0] === 'bottom') {\n result.bottom = 0;\n } else {\n result.top = this.getDimension(position[0]);\n }\n if (position[1] === 'center') {\n result.justifyContent = 'center';\n } else if (position[1] === 'left') {\n result.left = 0;\n } else if (position[1] === 'bottom') {\n result.right = 0;\n } else {\n result.left = this.getDimension(position[1]);\n }\n return result;\n }\n\n public getPositionAndSize() {\n const result: {\n resizeMode? : string,\n position?: ViewStyle,\n size?: ViewStyle\n } = {} as any;\n if (this.props.resizeMode) {\n result.resizeMode = this.props.resizeMode;\n return result;\n } else if (this.props.position === 'center') {\n result.resizeMode = 'center';\n result.position = {\n justifyContent: 'center',\n alignItems: 'center'\n };\n } else if (this.props.size === 'contain' || this.props.size === 'cover') {\n result.resizeMode = this.props.size;\n return result;\n }\n const size = this.props.size?.matchAll(BACKGROUND_SIZE_REGEX).next().value;\n result.size = {};\n if (size) {\n result.size.width = size[1].endsWith('%') ? size[1] : parseInt(size[1]);\n result.size.height = size[2].endsWith('%') ? size[2] : parseInt(size[2]);\n }\n if (!result.resizeMode && this.props.position) {\n result.position = this.getPosition();\n }\n if (!this.getGradient()?.value?.length) {\n if (this.props.repeat === 'no-repeat') {\n result.size.width = result.size.width || this.state.naturalImageWidth; \n result.size.height = result.size.height || this.state.naturalImageHeight; \n } else if (this.props.repeat === 'repeat-x') {\n result.resizeMode = 'repeat';\n result.size.width = result.size.width || '100%'; \n result.size.height = result.size.height || this.state.naturalImageHeight; \n } else if (this.props.repeat === 'repeat-y') {\n result.resizeMode = 'repeat';\n result.size.width = result.size.width || this.state.naturalImageWidth; \n result.size.height = result.size.height || '100%'; \n } else {\n result.resizeMode = 'repeat';\n }\n }\n return result;\n }\n\n public renderLinearGradient(data: string) {\n const psresult = this.getPositionAndSize();\n return (\n <LinearGradient\n value={data || ''}\n style={this.props.style}\n size={psresult.size}\n position={psresult.position}\n middle={psresult.resizeMode === 'center'}>\n </LinearGradient>\n );\n }\n\n componentDidUpdate(prevProps: Readonly<BackgroundProps>, prevState: Readonly<{}>, snapshot?: any): void {\n if (prevProps.image !== this.props.image) {\n this.setImage();\n }\n }\n\n componentDidMount(): void {\n setTimeout(() => this.setImage(), 100);\n }\n\n setImage() {\n let source = this.props.image?.trim() as any;\n if (source?.startsWith('url')) {\n source = this.props.image?.matchAll(IMAGE_URL_REGEX).next().value[1];\n }\n if (this.loadAsset) {\n source = this.loadAsset(source);\n }\n if (isFullPathUrl(source)) {\n source = {\n uri: source\n };\n }\n this.caluculateSize(source);\n this.setState({\n imageSrc: source\n } as BackgroundState);\n }\n\n public getGradient() {\n return this.props.image?.trim().matchAll(LINEAT_GRADIENT_REGEX).next();\n }\n\n public renderImage() {\n const psresult = this.getPositionAndSize();\n return (\n <AssetConsumer>\n {(loadAsset) => {\n this.loadAsset = loadAsset;\n return (<View style={[{borderWidth: 0, overflow: 'hidden'}, StyleSheet.absoluteFill, this.props.style]}>\n <View style={[\n StyleSheet.absoluteFill, {\n flexDirection: 'row',\n justifyContent: psresult.position?.justifyContent,\n alignItems: psresult.position?.alignItems\n }]}>\n <View style={[\n { position: 'absolute', overflow: 'hidden' },\n psresult.position,\n isEmpty(psresult.size) ? StyleSheet.absoluteFill : psresult.size\n ]}>\n <Image\n source={this.state.imageSrc}\n resizeMode={psresult.resizeMode as any || 'cover'}\n style={[\n { \n width: '100%',\n height: '100%'\n }, \n isEmpty(psresult.size) ? {\n minWidth: this.state.naturalImageWidth,\n minHeight: this.state.naturalImageHeight\n } : null\n ]}/>\n </View>\n </View>\n </View>);\n }}\n </AssetConsumer>\n );\n }\n\n public render() {\n const gradientData = this.getGradient();\n if (gradientData?.value?.length) {\n return this.renderLinearGradient(gradientData.value[1]);\n } else if (this.props.image) {\n return this.renderImage();\n }\n return null;\n }\n}\n\n"],"mappings":";;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,IAAIC,kBAAkB,QAA6B,sBAAsB;AAChG,SAASC,KAAK,EAAEC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AACjE,SAASC,OAAO,EAAEC,KAAK,EAAEC,QAAQ,QAAkB,WAAW;AAC9D,OAAOC,kBAAkB,MAAM,mDAAmD;AAClF,SAASC,aAAa,QAAQ,+CAA+C;AAC7E,SAASC,aAAa,QAAQ,sCAAsC;AAkBpE,MAAMC,eAAe,GAAG,4BAA4B;AACpD,MAAMC,qBAAqB,GAAG,4BAA4B;AAC1D,MAAMC,eAAe,GAAG,kBAAkB;AAC1C,MAAMC,yBAAyB,GAAG,oCAAoC;AACtE,MAAMC,qBAAqB,GAAG,oCAAoC;AAElE,OAAO,MAAMf,cAAc,SAASD,KAAK,CAACiB,SAAS,CAA2C;EAE1FC,WAAWA,CAACC,KAA0B,EAAE;IACpC,KAAK,CAACA,KAAK,CAAC;IACZ,IAAI,CAACC,KAAK,GAAG,IAAI,CAACC,KAAK,CAAC,CAAC;EAC7B;EAEAA,KAAKA,CAAA,EAAyB;IAAA,IAAxBC,GAAG,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,IAAI,CAACJ,KAAK,CAACO,KAAK;IACxB,IAAIN,KAAK,GAAG,CAAC,CAAwB;IACrC,MAAMO,MAAM,GAAGL,GAAG,CAACM,KAAK,CAAC,GAAG,CAAC,CAACC,GAAG,CAACC,CAAC,IAAIA,CAAC,CAACC,IAAI,CAAC,CAAC,CAAC;IAChD,IAAIC,KAAK,GAAG,CAAC;IACb,MAAMC,SAAgC,GAAG,EAAE;IAC3C,IAAIN,MAAM,CAAC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out-props#top'
428
428
  },
429
+ userSelect: {
430
+ isValid: isIn('text', 'none'),
431
+ ref: 'valid values to user-select are text, none.'
432
+ },
429
433
  verticalAlign: {
430
434
  isValid: isIn('auto', 'top', 'bottom', 'middle'),
431
435
  ref: 'https://reactnative.dev/docs/text-style-props#verticalalign-android'
@@ -1 +1 @@
1
- {"version":3,"names":["isNumber","isString","Font","isColor","c","isStringOrNumber","v","isIn","obj","arr","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","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 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}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EACzD,MAAMF,IAAI,GAAIlH,oBAAoB,CAASiH,IAAI,CAAC;EAChDA,IAAI,GAAGA,IAAI,CAACO,OAAO,CAAC,UAAU,EAAGC,CAAC,IAAM,IAAGA,CAAC,CAAC,CAAC,CAAC,CAACC,WAAW,EAAG,EAAC,CAAC;EAChE,IAAIR,IAAI,EAAE;IACN,IAAIA,IAAI,CAAC7D,QAAQ,EAAE;MACf,OAAO6D,IAAI,CAAC7D,QAAQ,CAAC+D,KAAK,CAAC;IAC/B,CAAC,MAAM;MACH,OAAQ,IAAGA,KAAM,8BAA6BH,IAAK,IAAG;IAC1D;EACJ;EACA,OAAQ,IAAGA,IAAK,qEAAoE;AACxF,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,MAAM,WAAW;AAEjC,MAAMC,OAAO,GAAIC,CAAS,IAAK,IAAI;AACnC,MAAMC,gBAAgB,GAAIC,CAAM,IAAKN,QAAQ,CAACM,CAAC,CAAC,IAAIL,QAAQ,CAACK,CAAC,CAAC;AAC/D,MAAMC,IAAI,GAAG,SAAAA,CAAA,EAAiB;EAC1B,MAAMC,GAAG,GAAG,CAAC,CAAC;EAAC,SAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EADFC,GAAG,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;IAAHF,GAAG,CAAAE,IAAA,IAAAJ,SAAA,CAAAI,IAAA;EAAA;EAEhBF,GAAG,CAACG,OAAO,CAAET,CAAM,IAAK;IACnBE,GAAG,CAASF,CAAC,CAAC,GAAG,IAAI;EAC1B,CAAC,CAAC;EACF,OAAQU,CAAM,IAAMR,GAAG,CAASQ,CAAC,CAAC,KAAK,IAAI;AAC/C,CAAC;AAED,MAAMC,oBAAoB,GAAG;EACzBC,YAAY,EAAE;IACVC,OAAO,EAAEZ,IAAI,CAAC,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,cAAc,CAAC;IAC7Fa,GAAG,EAAE;EACT,CAAC;EAC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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;EAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;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"}
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,eA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5BC,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"}
@@ -24,10 +24,10 @@ export const DEVICE_BREAK_POINTS = {
24
24
  'MIN_LARGE_DEVICE': '1200px',
25
25
  'MAX_LARGE_DEVICE': '1000000px'
26
26
  };
27
- export let ThemeEvent;
28
- (function (ThemeEvent) {
27
+ export let ThemeEvent = /*#__PURE__*/function (ThemeEvent) {
29
28
  ThemeEvent["CHANGE"] = "change";
30
- })(ThemeEvent || (ThemeEvent = {}));
29
+ return ThemeEvent;
30
+ }({});
31
31
  ;
32
32
  export class Theme {
33
33
  constructor(parent, name) {
@@ -313,5 +313,10 @@ Theme.BASE.registerStyle((themeVariables, addStyle) => {
313
313
  borderColor: themeVariables.warningColor
314
314
  }
315
315
  });
316
+ addStyle('hide-context-menu', '', {
317
+ text: {
318
+ userSelect: 'none'
319
+ }
320
+ });
316
321
  });
317
322
  //# sourceMappingURL=theme.js.map
@@ -1 +1 @@
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","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","result","collect","mergeStyle","flattenStyles","s","cs","filter","length","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"],"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]: ViewStyle | TextStyle | ImageStyle | 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);\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;AAExC,SAASC,QAAQ,EAAEC,gBAAgB,QAAQ,sCAAsC;AACjF,OAAOC,aAAa,MAAM,+CAA+C;AACzE,OAAOC,QAAQ,IAAGC,MAAM,IAAIC,cAAc,QAAO,yCAAyC;AAC1F,OAAOC,cAAc,MAAM,kBAAkB;AAC7C,OAAOC,cAAc,MAAM,mBAAmB;AAC9C,SAASC,eAAe,EAAEC,iBAAiB,EAAEC,gBAAgB,QAAQ,wBAAwB;AAC7F,OAAO,MAAMC,aAAa,GAAG,eAAe;AAI5C,IAAI,OAAOC,MAAM,KAAK,WAAW,EAAE;EAC/B;EACAA,MAAM,CAACC,UAAU,GAAIC,KAAa,IAAK,IAAIR,cAAc,CAACQ,KAAK,CAAC;AACpE;AAEA,OAAO,MAAMC,mBAAmB,GAAG;EAC/B,wBAAwB,EAAG,KAAK;EAChC,wBAAwB,EAAG,OAAO;EAClC,kBAAkB,EAAG,OAAO;EAC5B,kBAAkB,EAAG,OAAO;EAC5B,mBAAmB,EAAG,OAAO;EAC7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,EAAE,EAAE,EAAE;IAAEuD,IAAI,EAAE;MAAE6B,WAAW,EAAEzC,cAAc,CAACuC;IAAa;EAAC,CAAC,CAAC;EACrFlF,QAAQ,CAAC,gBAAgB,EAAE,EAAE,EAAE;IAAEuD,IAAI,EAAE;MAAE6B,WAAW,EAAEzC,cAAc,CAACwC;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('border-warning', '', { root: { borderColor: themeVariables.warningColor }});\n\n addStyle('hide-context-menu', '', { text: { userSelect: 'none' }});\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;AAExC,SAASC,QAAQ,EAAEC,gBAAgB,QAAQ,sCAAsC;AACjF,OAAOC,aAAa,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