@wavemaker/app-rn-runtime 11.5.2-next.141021 → 11.5.2-next.141025

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 (292) hide show
  1. app-rn-runtime/components/advanced/carousel/carousel.component.js +9 -14
  2. app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
  3. app-rn-runtime/components/advanced/carousel/carousel.styles.js +3 -6
  4. app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
  5. app-rn-runtime/components/advanced/webview/webview.component.js +14 -33
  6. app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
  7. app-rn-runtime/components/advanced/webview/webview.props.js +1 -3
  8. app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
  9. app-rn-runtime/components/basic/anchor/anchor.component.js +8 -22
  10. app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
  11. app-rn-runtime/components/basic/anchor/anchor.props.js +0 -7
  12. app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
  13. app-rn-runtime/components/basic/anchor/anchor.styles.js +0 -1
  14. app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
  15. app-rn-runtime/components/basic/animatedview.component.js +3 -5
  16. app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
  17. app-rn-runtime/components/basic/button/button.component.js +7 -40
  18. app-rn-runtime/components/basic/button/button.component.js.map +1 -1
  19. app-rn-runtime/components/basic/button/button.props.js +0 -7
  20. app-rn-runtime/components/basic/button/button.props.js.map +1 -1
  21. app-rn-runtime/components/basic/button/button.styles.js +6 -6
  22. app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
  23. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js +5 -13
  24. app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
  25. app-rn-runtime/components/basic/icon/icon.component.js +12 -64
  26. app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
  27. app-rn-runtime/components/basic/icon/icon.props.js +0 -7
  28. app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
  29. app-rn-runtime/components/basic/icon/icon.styles.js +1 -2
  30. app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
  31. app-rn-runtime/components/basic/label/label.component.js +25 -34
  32. app-rn-runtime/components/basic/label/label.component.js.map +1 -1
  33. app-rn-runtime/components/basic/label/label.props.js +0 -3
  34. app-rn-runtime/components/basic/label/label.props.js.map +1 -1
  35. app-rn-runtime/components/basic/label/label.styles.js +5 -4
  36. app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
  37. app-rn-runtime/components/basic/message/message.component.js +2 -3
  38. app-rn-runtime/components/basic/message/message.component.js.map +1 -1
  39. app-rn-runtime/components/basic/message/message.props.js +0 -3
  40. app-rn-runtime/components/basic/message/message.props.js.map +1 -1
  41. app-rn-runtime/components/basic/message/message.styles.js +1 -3
  42. app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
  43. app-rn-runtime/components/basic/picture/picture.component.js +2 -4
  44. app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
  45. app-rn-runtime/components/basic/picture/picture.props.js +0 -3
  46. app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
  47. app-rn-runtime/components/basic/picture/picture.styles.js +1 -2
  48. app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
  49. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js +3 -3
  50. app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  51. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js +0 -2
  52. app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
  53. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js +2 -3
  54. app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  55. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js +0 -2
  56. app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
  57. app-rn-runtime/components/basic/search/search.component.js +1 -2
  58. app-rn-runtime/components/basic/search/search.component.js.map +1 -1
  59. app-rn-runtime/components/basic/search/search.props.js +0 -3
  60. app-rn-runtime/components/basic/search/search.props.js.map +1 -1
  61. app-rn-runtime/components/basic/search/search.styles.js +5 -6
  62. app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
  63. app-rn-runtime/components/basic/video/video.component.js +2 -4
  64. app-rn-runtime/components/basic/video/video.component.js.map +1 -1
  65. app-rn-runtime/components/basic/video/video.props.js +0 -3
  66. app-rn-runtime/components/basic/video/video.props.js.map +1 -1
  67. app-rn-runtime/components/chart/area-chart/area-chart.component.js +16 -23
  68. app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
  69. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js +16 -29
  70. app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  71. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js +2 -0
  72. app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
  73. app-rn-runtime/components/chart/basechart.component.js +7 -33
  74. app-rn-runtime/components/chart/basechart.component.js.map +1 -1
  75. app-rn-runtime/components/chart/basechart.props.js +2 -7
  76. app-rn-runtime/components/chart/basechart.props.js.map +1 -1
  77. app-rn-runtime/components/chart/basechart.styles.js +2 -9
  78. app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
  79. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js +2 -4
  80. app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  81. app-rn-runtime/components/chart/line-chart/line-chart.component.js +18 -23
  82. app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
  83. app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
  84. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +4 -7
  85. app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  86. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js +10 -33
  87. app-rn-runtime/components/chart/stack-chart/stack-chart.component.js.map +1 -1
  88. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js +0 -1
  89. app-rn-runtime/components/chart/stack-chart/stack-chart.props.js.map +1 -1
  90. app-rn-runtime/components/container/container.component.js +2 -11
  91. app-rn-runtime/components/container/container.component.js.map +1 -1
  92. app-rn-runtime/components/container/container.props.js +0 -1
  93. app-rn-runtime/components/container/container.props.js.map +1 -1
  94. app-rn-runtime/components/container/panel/panel.component.js +2 -6
  95. app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
  96. app-rn-runtime/components/container/panel/panel.props.js +0 -4
  97. app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
  98. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +1 -1
  99. app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  100. app-rn-runtime/components/container/wizard/wizard.component.js +14 -17
  101. app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
  102. app-rn-runtime/components/container/wizard/wizard.styles.js +3 -19
  103. app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
  104. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js +2 -27
  105. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  106. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js +0 -6
  107. app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  108. app-rn-runtime/components/data/card/card.component.js +3 -7
  109. app-rn-runtime/components/data/card/card.component.js.map +1 -1
  110. app-rn-runtime/components/data/card/card.props.js +0 -4
  111. app-rn-runtime/components/data/card/card.props.js.map +1 -1
  112. app-rn-runtime/components/data/form/form-action/form-action.styles.js +1 -2
  113. app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
  114. app-rn-runtime/components/data/form/form-field/form-field.component.js +1 -5
  115. app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
  116. app-rn-runtime/components/data/list/list.component.js +6 -58
  117. app-rn-runtime/components/data/list/list.component.js.map +1 -1
  118. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js +1 -4
  119. app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
  120. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js +0 -3
  121. app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
  122. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js +6 -13
  123. app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js.map +1 -1
  124. app-rn-runtime/components/device/camera/camera.component.js +1 -4
  125. app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
  126. app-rn-runtime/components/device/camera/camera.props.js +0 -3
  127. app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
  128. app-rn-runtime/components/device/camera/camera.styles.js +4 -12
  129. app-rn-runtime/components/device/camera/camera.styles.js.map +1 -1
  130. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js +0 -4
  131. app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
  132. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js +0 -4
  133. app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
  134. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js +1 -2
  135. app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js.map +1 -1
  136. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js +0 -4
  137. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
  138. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js +0 -4
  139. app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
  140. app-rn-runtime/components/dialogs/dialog/dialog.component.js +3 -7
  141. app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
  142. app-rn-runtime/components/dialogs/dialog/dialog.props.js +0 -4
  143. app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
  144. app-rn-runtime/components/dialogs/dialog/dialog.styles.js +2 -11
  145. app-rn-runtime/components/dialogs/dialog/dialog.styles.js.map +1 -1
  146. app-rn-runtime/components/input/basedataset/basedataset.props.js +0 -4
  147. app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
  148. app-rn-runtime/components/input/baseinput/baseinput.component.js +2 -2
  149. app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
  150. app-rn-runtime/components/input/baseinput/baseinput.props.js +0 -4
  151. app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
  152. app-rn-runtime/components/input/basenumber/basenumber.component.js +10 -16
  153. app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
  154. app-rn-runtime/components/input/basenumber/basenumber.props.js +0 -4
  155. app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
  156. app-rn-runtime/components/input/checkbox/checkbox.component.js +5 -12
  157. app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
  158. app-rn-runtime/components/input/checkbox/checkbox.styles.js +5 -35
  159. app-rn-runtime/components/input/checkbox/checkbox.styles.js.map +1 -1
  160. app-rn-runtime/components/input/checkboxset/checkboxset.component.js +6 -13
  161. app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
  162. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js +10 -39
  163. app-rn-runtime/components/input/checkboxset/checkboxset.styles.js.map +1 -1
  164. app-rn-runtime/components/input/chips/chips.component.js +1 -5
  165. app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
  166. app-rn-runtime/components/input/composite/composite.component.js +1 -1
  167. app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
  168. app-rn-runtime/components/input/composite/composite.props.js +1 -1
  169. app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
  170. app-rn-runtime/components/input/currency/currency.component.js +2 -18
  171. app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
  172. app-rn-runtime/components/input/currency/currency.props.js +0 -1
  173. app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
  174. app-rn-runtime/components/input/currency/currency.styles.js +1 -19
  175. app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
  176. app-rn-runtime/components/input/epoch/base-datetime.component.js +10 -76
  177. app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
  178. app-rn-runtime/components/input/epoch/date/date.component.js +0 -8
  179. app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
  180. app-rn-runtime/components/input/epoch/date/date.styles.js +0 -16
  181. app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
  182. app-rn-runtime/components/input/epoch/datetime/datetime.component.js +0 -8
  183. app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
  184. app-rn-runtime/components/input/epoch/datetime/datetime.props.js +0 -5
  185. app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
  186. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +1 -49
  187. app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
  188. app-rn-runtime/components/input/epoch/time/time.component.js +0 -8
  189. app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
  190. app-rn-runtime/components/input/epoch/time/time.styles.js +0 -16
  191. app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
  192. app-rn-runtime/components/input/fileupload/fileupload.component.js +0 -2
  193. app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
  194. app-rn-runtime/components/input/fileupload/fileupload.props.js +0 -2
  195. app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
  196. app-rn-runtime/components/input/fileupload/fileupload.styles.js +1 -1
  197. app-rn-runtime/components/input/fileupload/fileupload.styles.js.map +1 -1
  198. app-rn-runtime/components/input/number/number.component.js +1 -13
  199. app-rn-runtime/components/input/number/number.component.js.map +1 -1
  200. app-rn-runtime/components/input/number/number.props.js +0 -1
  201. app-rn-runtime/components/input/number/number.props.js.map +1 -1
  202. app-rn-runtime/components/input/number/number.styles.js +0 -17
  203. app-rn-runtime/components/input/number/number.styles.js.map +1 -1
  204. app-rn-runtime/components/input/radioset/radioset.component.js +2 -7
  205. app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
  206. app-rn-runtime/components/input/select/select.component.js +3 -7
  207. app-rn-runtime/components/input/select/select.component.js.map +1 -1
  208. app-rn-runtime/components/input/select/select.styles.js +1 -5
  209. app-rn-runtime/components/input/select/select.styles.js.map +1 -1
  210. app-rn-runtime/components/input/slider/slider.styles.js +3 -3
  211. app-rn-runtime/components/input/slider/slider.styles.js.map +1 -1
  212. app-rn-runtime/components/input/switch/switch.component.js +1 -8
  213. app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
  214. app-rn-runtime/components/input/switch/switch.styles.js +5 -10
  215. app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
  216. app-rn-runtime/components/input/text/text.component.js +1 -13
  217. app-rn-runtime/components/input/text/text.component.js.map +1 -1
  218. app-rn-runtime/components/input/text/text.props.js +0 -1
  219. app-rn-runtime/components/input/text/text.props.js.map +1 -1
  220. app-rn-runtime/components/input/text/text.styles.js +0 -17
  221. app-rn-runtime/components/input/text/text.styles.js.map +1 -1
  222. app-rn-runtime/components/input/textarea/textarea.component.js +1 -13
  223. app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
  224. app-rn-runtime/components/input/textarea/textarea.props.js +0 -1
  225. app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
  226. app-rn-runtime/components/input/textarea/textarea.styles.js +0 -17
  227. app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
  228. app-rn-runtime/components/input/toggle/toggle.component.js +5 -48
  229. app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
  230. app-rn-runtime/components/input/toggle/toggle.props.js +0 -4
  231. app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
  232. app-rn-runtime/components/input/toggle/toggle.styles.js +12 -5
  233. app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
  234. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js +1 -6
  235. app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
  236. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js +0 -1
  237. app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  238. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js +1 -9
  239. app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
  240. app-rn-runtime/components/navigation/basenav/basenav.component.js +2 -1
  241. app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
  242. app-rn-runtime/components/navigation/menu/menu.styles.js +5 -8
  243. app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
  244. app-rn-runtime/components/navigation/navitem/navitem.component.js +5 -8
  245. app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
  246. app-rn-runtime/components/navigation/navitem/navitem.props.js +0 -3
  247. app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
  248. app-rn-runtime/components/navigation/popover/popover.component.js +3 -10
  249. app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
  250. app-rn-runtime/components/navigation/popover/popover.props.js +0 -7
  251. app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
  252. app-rn-runtime/components/navigation/popover/popover.styles.js +2 -8
  253. app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
  254. app-rn-runtime/components/page/tabbar/tabbar.component.js +8 -42
  255. app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
  256. app-rn-runtime/components/page/tabbar/tabbar.styles.js +16 -82
  257. app-rn-runtime/components/page/tabbar/tabbar.styles.js.map +1 -1
  258. app-rn-runtime/core/base.component.js +2 -15
  259. app-rn-runtime/core/base.component.js.map +1 -1
  260. app-rn-runtime/core/components/textinput.component.js +2 -25
  261. app-rn-runtime/core/components/textinput.component.js.map +1 -1
  262. app-rn-runtime/core/tappable.component.js +10 -37
  263. app-rn-runtime/core/tappable.component.js.map +1 -1
  264. app-rn-runtime/core/utils.js +0 -11
  265. app-rn-runtime/core/utils.js.map +1 -1
  266. app-rn-runtime/gestures/swipe.animation.js +1 -34
  267. app-rn-runtime/gestures/swipe.animation.js.map +1 -1
  268. app-rn-runtime/package.json +3 -5
  269. app-rn-runtime/runtime/App.js +0 -4
  270. app-rn-runtime/runtime/App.js.map +1 -1
  271. app-rn-runtime/runtime/base-page.component.js +1 -1
  272. app-rn-runtime/runtime/base-page.component.js.map +1 -1
  273. app-rn-runtime/runtime/services/app-security.service.js +1 -2
  274. app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
  275. app-rn-runtime/runtime/services/webprocess.service.js +1 -0
  276. app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
  277. app-rn-runtime/styles/theme.js +0 -36
  278. app-rn-runtime/styles/theme.js.map +1 -1
  279. app-rn-runtime/styles/theme.variables.js +3 -26
  280. app-rn-runtime/styles/theme.variables.js.map +1 -1
  281. app-rn-runtime/variables/model-variable.js +1 -2
  282. app-rn-runtime/variables/model-variable.js.map +1 -1
  283. app-rn-runtime/variables/service-variable.js +0 -1
  284. app-rn-runtime/variables/service-variable.js.map +1 -1
  285. app-rn-runtime/components/chart/staticdata.js +0 -215
  286. app-rn-runtime/components/chart/staticdata.js.map +0 -1
  287. app-rn-runtime/components/page/tabbar/curve.js +0 -84
  288. app-rn-runtime/components/page/tabbar/curve.js.map +0 -1
  289. app-rn-runtime/core/accessibility.js +0 -149
  290. app-rn-runtime/core/accessibility.js.map +0 -1
  291. app-rn-runtime/core/components/floatinglabel.component.js +0 -45
  292. app-rn-runtime/core/components/floatinglabel.component.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"names":["Color","defineStyles","BASE_THEME","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","color","linkDefaultColor","flexDirection","alignItems","text","paddingLeft","paddingRight","fontSize","textDecorationLine","badge","backgroundColor","fade","rgb","toString","alignSelf","marginTop","marginLeft","fontWeight","icon","anchorTextPadding","skeleton","width","height","borderRadius","getLinkStyles","linkPrimaryColor","linkSecondaryColor","linkSuccessColor","linkDangerColor","linkWarningColor","linkInfoColor","linkLightColor","linkDarkColor"],"sources":["anchor.styles.ts"],"sourcesContent":["import Color from 'color';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\nimport BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmAnchorStyles = BaseStyles & {\n badge: AllStyle,\n icon: WmIconStyles\n skeleton: WmSkeletonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-anchor';\n\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmAnchorStyles = defineStyles({\n root: {\n color: themeVariables.linkDefaultColor,\n flexDirection: 'row',\n alignItems: 'center'\n },\n text: {\n paddingLeft: 8,\n paddingRight: 8,\n color: themeVariables.linkDefaultColor,\n fontSize: 18, \n textDecorationLine: 'underline',\n },\n badge: {\n backgroundColor: Color(themeVariables.linkDefaultColor).fade(0.8).rgb().toString(),\n color: themeVariables.linkDefaultColor,\n alignSelf: 'flex-start',\n marginTop: -12,\n marginLeft: 0,\n fontWeight: 'bold'\n },\n icon: {\n root : {\n alignSelf: 'center'\n },\n text: {\n fontSize: 16,\n paddingRight: themeVariables.anchorTextPadding,\n color: themeVariables.linkDefaultColor\n }\n } as WmIconStyles,\n skeleton: {\n root: {\n width: '100%',\n height: 20,\n borderRadius: 4\n }\n } as any as WmSkeletonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-rtl', '', {\n text: {\n paddingRight: 8\n }\n });\n\n const getLinkStyles = (color: string) => {\n return {\n root: {\n color: color\n },\n text: {\n color: color\n },\n icon: {\n text: {\n color: color\n }\n },\n badge: {\n backgroundColor: Color(color).fade(0.8).rgb().toString(),\n color: color,\n }\n } as WmAnchorStyles;\n };\n\n addStyle('link-primary', '', getLinkStyles(themeVariables.linkPrimaryColor));\n addStyle('link-secondary', '', getLinkStyles(themeVariables.linkSecondaryColor));\n addStyle('link-success', '', getLinkStyles(themeVariables.linkSuccessColor));\n addStyle('link-danger', '', getLinkStyles(themeVariables.linkDangerColor));\n addStyle('link-warning', '', getLinkStyles(themeVariables.linkWarningColor));\n addStyle('link-info', '', getLinkStyles(themeVariables.linkInfoColor));\n addStyle('link-light', '', getLinkStyles(themeVariables.linkLightColor));\n addStyle('link-dark', '', getLinkStyles(themeVariables.linkDarkColor));\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAqBC,YAAY,QAAQ,+CAA+C;AAExF,OAAOC,UAAU,MAAoB,wCAAwC;AAS7E,OAAO,MAAMC,aAAa,GAAG,YAAY;AAEzCD,UAAU,CAACE,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAA6B,GAAGN,YAAY,CAAC;IAC/CO,IAAI,EAAE;MACFC,KAAK,EAAEJ,cAAc,CAACK,gBAAgB;MACtCC,aAAa,EAAE,KAAK;MACpBC,UAAU,EAAE;IAChB,CAAC;IACDC,IAAI,EAAE;MACFC,WAAW,EAAE,CAAC;MACdC,YAAY,EAAE,CAAC;MACfN,KAAK,EAAEJ,cAAc,CAACK,gBAAgB;MACtCM,QAAQ,EAAE,EAAE;MACZC,kBAAkB,EAAE;IACxB,CAAC;IACDC,KAAK,EAAE;MACHC,eAAe,EAAEnB,KAAK,CAACK,cAAc,CAACK,gBAAgB,CAAC,CAACU,IAAI,CAAC,GAAG,CAAC,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;MAClFb,KAAK,EAAEJ,cAAc,CAACK,gBAAgB;MACtCa,SAAS,EAAE,YAAY;M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Q,CAAC,cAAc,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAAC+B,gBAAgB,CAAC,CAAC;EAC5E9B,QAAQ,CAAC,aAAa,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAACgC,eAAe,CAAC,CAAC;EAC1E/B,QAAQ,CAAC,cAAc,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAACiC,gBAAgB,CAAC,CAAC;EAC5EhC,QAAQ,CAAC,WAAW,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAACkC,aAAa,CAAC,CAAC;EACtEjC,QAAQ,CAAC,YAAY,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAACmC,cAAc,CAAC,CAAC;EACxElC,QAAQ,CAAC,WAAW,EAAE,EAAE,EAAE2B,aAAa,CAAC5B,cAAc,CAACoC,aAAa,CAAC,CAAC;AAC1E,CAAC,CAAC"}
1
+ {"version":3,"names":["Color","defineStyles","BASE_THEME","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","color","linkDefaultColor","flexDirection","alignItems","text","paddingLeft","fontSize","textDecorationLine","badge","backgroundColor","fade","rgb","toString","alignSelf","marginTop","marginLeft","fontWeight","icon","paddingRight","anchorTextPadding","skeleton","width","height","borderRadius","getLinkStyles","linkPrimaryColor","linkSecondaryColor","linkSuccessColor","linkDangerColor","linkWarningColor","linkInfoColor","linkLightColor","linkDarkColor"],"sources":["anchor.styles.ts"],"sourcesContent":["import Color from 'color';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '@wavemaker/app-rn-runtime/components/basic/icon/icon.styles';\nimport BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmAnchorStyles = BaseStyles & {\n badge: AllStyle,\n icon: WmIconStyles\n skeleton: WmSkeletonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-anchor';\n\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmAnchorStyles = defineStyles({\n root: {\n color: themeVariables.linkDefaultColor,\n flexDirection: 'row',\n alignItems: 'center'\n },\n text: {\n paddingLeft: 8,\n color: themeVariables.linkDefaultColor,\n fontSize: 18, \n textDecorationLine: 'underline',\n },\n badge: {\n backgroundColor: Color(themeVariables.linkDefaultColor).fade(0.8).rgb().toString(),\n color: themeVariables.linkDefaultColor,\n alignSelf: 'flex-start',\n marginTop: -12,\n marginLeft: 0,\n fontWeight: 'bold'\n },\n icon: {\n root : {\n alignSelf: 'center'\n },\n text: {\n fontSize: 16,\n paddingRight: themeVariables.anchorTextPadding,\n color: themeVariables.linkDefaultColor\n }\n } as WmIconStyles,\n skeleton: {\n root: {\n width: '100%',\n height: 20,\n borderRadius: 4\n }\n } as any as WmSkeletonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-rtl', '', {\n text: {\n paddingRight: 8\n }\n });\n\n const getLinkStyles = (color: string) => {\n return {\n root: {\n color: color\n },\n text: {\n color: color\n },\n icon: {\n text: {\n color: color\n }\n },\n badge: {\n backgroundColor: Color(color).fade(0.8).rgb().toString(),\n color: color,\n }\n } as WmAnchorStyles;\n };\n\n addStyle('link-primary', '', getLinkStyles(themeVariables.linkPrimaryColor));\n addStyle('link-secondary', '', getLinkStyles(themeVariables.linkSecondaryColor));\n addStyle('link-success', '', getLinkStyles(themeVariables.linkSuccessColor));\n addStyle('link-danger', '', getLinkStyles(themeVariables.linkDangerColor));\n addStyle('link-warning', '', getLinkStyles(themeVariables.linkWarningColor));\n addStyle('link-info', '', getLinkStyles(themeVariables.linkInfoColor));\n addStyle('link-light', '', getLinkStyles(themeVariables.linkLightColor));\n addStyle('link-dark', '', getLinkStyles(themeVariables.linkDarkColor));\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAqBC,YAAY,QA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AAC;AAC1E,CAAC,CAAC"}
@@ -1,4 +1,3 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
1
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3
2
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
4
3
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
@@ -14,7 +13,6 @@ export default class AnimatedviewProps {
14
13
  _defineProperty(this, "iterationCount", void 0);
15
14
  _defineProperty(this, "style", void 0);
16
15
  _defineProperty(this, "exitanimation", null);
17
- _defineProperty(this, "accessibilityProps", void 0);
18
16
  }
19
17
  }
20
18
  const AnimationMap = {
@@ -198,16 +196,16 @@ export class Animatedview extends React.Component {
198
196
  }
199
197
  }
200
198
  render() {
201
- return this.props.entryanimation ? /*#__PURE__*/React.createElement(Animatable.View, _extends({
199
+ return this.props.entryanimation ? /*#__PURE__*/React.createElement(Animatable.View, {
202
200
  animation: this.props.entryanimation,
203
201
  duration: this.props.duration,
204
202
  useNativeDriver: true,
205
203
  style: this.props.style,
206
204
  iterationCount: this.props.iterationCount,
207
205
  ref: this.handleViewRef
208
- }, this.props.accessibilityProps), this.props.children) : /*#__PURE__*/React.createElement(View, _extends({
206
+ }, this.props.children) : /*#__PURE__*/React.createElement(View, {
209
207
  style: this.props.style
210
- }, this.props.accessibilityProps), this.props.children);
208
+ }, this.props.children);
211
209
  }
212
210
  }
213
211
  _defineProperty(Animatedview, "defaultProps", {
@@ -1 +1 @@
1
- {"version":3,"names":["React","Animatable","initializeRegistryWithDefinitions","View","AnimatedviewProps","constructor","_defineProperty","AnimationMap","bounce","flash","pulse","rotate","rubberBand","shake","swing","tada","wobble","bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp","fadeIn","fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeInUpBig","flipInX","flipInY","lightSpeedIn","slideInDown","slideInLeft","slideInRight","slideInUp","zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp","CustomAnimationMap","transform","rotateY","rotateX","flipOutY","flipOutX","from","translateY","to","slideOutUp","slideOutDown","opacity","fadeOutDown","fadeOutUp","Animatedview","Component","props","ref","view","triggerEntry","animate","entryanimation","duration","then","endState","finished","triggerExit","exitanimation","render","createElement","_extends","animation","useNativeDriver","style","iterationCount","handleViewRef","accessibilityProps","children"],"sources":["animatedview.component.tsx"],"sourcesContent":["import React from 'react';\nimport * as Animatable from 'react-native-animatable';\nimport { initializeRegistryWithDefinitions } from 'react-native-animatable';\nimport { View, ViewProps, ViewStyle } from 'react-native';\n\nexport default class AnimatedviewProps {\n entryanimation?: string = null as any;\n children?: any;\n duration?: number = null as any;\n iterationCount?:any;\n style?: any;\n exitanimation?: string = null as any;\n accessibilityProps?: any;\n}\n\nconst AnimationMap: any = {\n bounce: 'bounce',\n flash: 'flash',\n pulse: 'pulse',\n rotate: 'rotate',\n rubberBand: 'rubberBand',\n shake: 'shake',\n swing: 'swing',\n tada: 'tada',\n wobble: 'wobble',\n bounceIn: 'bounceOut',\n bounceInDown: 'bounceOutUp',\n bounceInLeft: 'bounceOutRight',\n bounceInRight: 'bounceOutLeft',\n bounceInUp: 'bounceOutDown',\n fadeIn: 'fadeOut',\n fadeInDown: 'fadeOutUp',\n fadeInDownBig: 'fadeOutUpBig',\n fadeInLeft: 'fadeOutRight',\n fadeInLeftBig: 'fadeOutRightBig',\n fadeInRight: 'fadeOutLeft',\n fadeInRightBig: 'fadeOutLeftBig',\n fadeInUp: 'fadeOutDown',\n fadeInUpBig: 'fadeOutDownBig',\n flipInX: 'flipOutX',\n flipInY: 'flipOutY',\n lightSpeedIn: 'lightSpeedOut',\n slideInDown: 'slideOutUp',\n slideInLeft: 'slideOutRight',\n slideInRight: 'slideOutLeft',\n slideInUp: 'slideOutDown',\n zoomIn: 'zoomOut',\n zoomInDown: 'zoomOutUp',\n zoomInLeft: 'zoomOutRight',\n zoomInRight: 'zoomOutLeft',\n zoomInUp: 'zoomOutDown'\n};\n\nconst CustomAnimationMap: any = {\n flipInY: {\n 0: {\n transform: [{rotateY: \"0deg\"}]\n },\n 1: {\n transform: [{rotateY: \"360deg\"}]\n }\n },\n flipInX: {\n 0: {\n transform: [{rotateX: \"0deg\"}]\n },\n 1: {\n transform: [{rotateX: \"360deg\"}]\n }\n },\n flipOutY: {\n 0: {\n transform: [{rotateY: \"3600deg\"}]\n },\n 1: {\n transform: [{rotateY: \"0deg\"}]\n }\n },\n flipOutX: {\n 0: {\n transform: [{rotateX: \"360deg\"}]\n },\n 1: {\n transform: [{rotateX: \"0deg\"}]\n }\n },\n slideInDown : {\n from: { translateY: -20 },\n to: { translateY: 0 }\n },\n slideInUp : {\n from: { translateY: 20 },\n to: { translateY: 0 }\n },\n slideOutUp: {\n from: { translateY: 0 },\n to: { translateY: -20 }\n },\n slideOutDown : {\n from: { translateY: 0 },\n to: { translateY: 20 }\n },\n fadeInDown: {\n from: { opacity: 0, translateY: -20 },\n to: { opacity: 1, translateY: 0 }\n },\n fadeInUp: {\n from: { opacity: 0, translateY: 20 },\n to: { opacity: 1, translateY: 0 }\n },\n fadeOutDown: {\n from: { opacity: 1, translateY: 0 },\n to: { opacity: 0, translateY: 20 }\n },\n fadeOutUp: {\n from: { opacity: 1, translateY: 0 },\n to: { opacity: 0, translateY: -20 }\n }\n};\n\nexport class Animatedview extends React.Component<AnimatedviewProps> {\n static defaultProps: AnimatedviewProps = {\n duration: 200\n };\n\n private view: Animatable.View = null as any;\n\n constructor(props: AnimatedviewProps) {\n super(props);\n initializeRegistryWithDefinitions(CustomAnimationMap);\n }\n\n triggerEntry() {\n return (this as any).view.animate(this.props.entryanimation, this.props.duration).then((endState: any) => endState.finished)\n }\n\n triggerExit() {\n if (!this.view) {\n return;\n }\n if (this.props.exitanimation) {\n return (this as any).view.animate(this.props.exitanimation, this.props.duration, 1).then((endState: any) => endState.finished)\n } else {\n return (this as any).view.animate(AnimationMap[this.props.entryanimation || ''], this.props.duration, 1).then((endState: any) => endState.finished)\n }\n }\n\n // @ts-ignore\n handleViewRef = (ref: Animatable.View<ViewProps, ViewStyle>) => this.view = ref;\n\n render() {\n return this.props.entryanimation ? (\n <Animatable.View\n animation={this.props.entryanimation}\n duration={this.props.duration}\n useNativeDriver={true}\n style={this.props.style}\n iterationCount={this.props.iterationCount}\n ref={this.handleViewRef}\n {...this.props.accessibilityProps}>\n {this.props.children}\n </Animatable.View>\n ): (<View style={this.props.style} {...this.props.accessibilityProps}>{this.props.children}</View>);\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAO,KAAKC,UAAU,MAAM,yBAAyB;AACrD,SAASC,iCAAiC,QAAQ,yBAAyB;AAC3E,SAASC,IAAI,QAA8B,cAAc;AAEzD,eAAe,MAAMC,iBAAiB,CAAC;EAAAC,YAAA;IAAAC,eAAA,yBACX,IAAI;IAAAA,eAAA;IAAAA,eAAA,mBAEV,IAAI;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA,wBAGC,IAAI;IAAAA,eAAA;EAAA;AAE/B;AAEA,MAAMC,YAAiB,GAAG;EACxBC,MAAM,EAAE,QAAQ;EAChBC,KAAK,EAAE,OAAO;EACdC,KAAK,EAAE,OAAO;EACdC,MAAM,EAAE,QAAQ;EAChBC,UAAU,EAAE,YAAY;EACxBC,KAAK,EAAE,OAAO;EACdC,KAAK,EAAE,OAAO;EACdC,IAA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AC,EAAE,IAAI,CAACL,KAAK,CAACM,QAAQ,EAAE,CAAC,CAAC,CAACC,IAAI,CAAEC,QAAa,IAAKA,QAAQ,CAACC,QAAQ,CAAC;IACrJ;EACF;EAKAG,MAAMA,CAAA,EAAG;IACP,OAAO,IAAI,CAACZ,KAAK,CAACK,cAAc,gBAC/BhE,KAAA,CAAAwE,aAAA,CAACvE,UAAU,CAACE,IAAI,EAAAsE,QAAA;MACdC,SAAS,EAAE,IAAI,CAACf,KAAK,CAACK,cAAe;MACrCC,QAAQ,EAAE,IAAI,CAACN,KAAK,CAACM,QAAS;MAC9BU,eAAe,EAAE,IAAK;MACtBC,KAAK,EAAE,IAAI,CAACjB,KAAK,CAACiB,KAAM;MACxBC,cAAc,EAAE,IAAI,CAAClB,KAAK,CAACkB,cAAe;MAC1CjB,GAAG,EAAE,IAAI,CAACkB;IAAc,GACpB,IAAI,CAACnB,KAAK,CAACoB,kBAAkB,GAC/B,IAAI,CAACpB,KAAK,CAACqB,QACG,CAAC,gBAChBhF,KAAA,CAAAwE,aAAA,CAACrE,IAAI,EAAAsE,QAAA;MAACG,KAAK,EAAE,IAAI,CAACjB,KAAK,CAACiB;IAAM,GAAK,IAAI,CAACjB,KAAK,CAACoB,kBAAkB,GAAG,IAAI,CAACpB,KAAK,CAACqB,QAAe,CAAE;EACrG;AACF;AAAC1E,eAAA,CA5CYmD,YAAY,kBACkB;EACvCQ,QAAQ,EAAE;AACZ,CAAC"}
1
+ {"version":3,"names":["React","Animatable","initializeRegistryWithDefinitions","View","AnimatedviewProps","constructor","_defineProperty","AnimationMap","bounce","flash","pulse","rotate","rubberBand","shake","swing","tada","wobble","bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp","fadeIn","fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeInUpBig","flipInX","flipInY","lightSpeedIn","slideInDown","slideInLeft","slideInRight","slideInUp","zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp","CustomAnimationMap","transform","rotateY","rotateX","flipOutY","flipOutX","from","translateY","to","slideOutUp","slideOutDown","opacity","fadeOutDown","fadeOutUp","Animatedview","Component","props","ref","view","triggerEntry","animate","entryanimation","duration","then","endState","finished","triggerExit","exitanimation","render","createElement","animation","useNativeDriver","style","iterationCount","handleViewRef","children"],"sources":["animatedview.component.tsx"],"sourcesContent":["import React from 'react';\nimport * as Animatable from 'react-native-animatable';\nimport { initializeRegistryWithDefinitions } from 'react-native-animatable';\nimport { View, ViewProps, ViewStyle } from 'react-native';\n\nexport default class AnimatedviewProps {\n entryanimation?: string = null as any;\n children?: any;\n duration?: number = null as any;\n iterationCount?:any;\n style?: any;\n exitanimation?: string = null as any;\n}\n\nconst AnimationMap: any = {\n bounce: 'bounce',\n flash: 'flash',\n pulse: 'pulse',\n rotate: 'rotate',\n rubberBand: 'rubberBand',\n shake: 'shake',\n swing: 'swing',\n tada: 'tada',\n wobble: 'wobble',\n bounceIn: 'bounceOut',\n bounceInDown: 'bounceOutUp',\n bounceInLeft: 'bounceOutRight',\n bounceInRight: 'bounceOutLeft',\n bounceInUp: 'bounceOutDown',\n fadeIn: 'fadeOut',\n fadeInDown: 'fadeOutUp',\n fadeInDownBig: 'fadeOutUpBig',\n fadeInLeft: 'fadeOutRight',\n fadeInLeftBig: 'fadeOutRightBig',\n fadeInRight: 'fadeOutLeft',\n fadeInRightBig: 'fadeOutLeftBig',\n fadeInUp: 'fadeOutDown',\n fadeInUpBig: 'fadeOutDownBig',\n flipInX: 'flipOutX',\n flipInY: 'flipOutY',\n lightSpeedIn: 'lightSpeedOut',\n slideInDown: 'slideOutUp',\n slideInLeft: 'slideOutRight',\n slideInRight: 'slideOutLeft',\n slideInUp: 'slideOutDown',\n zoomIn: 'zoomOut',\n zoomInDown: 'zoomOutUp',\n zoomInLeft: 'zoomOutRight',\n zoomInRight: 'zoomOutLeft',\n zoomInUp: 'zoomOutDown'\n};\n\nconst CustomAnimationMap: any = {\n flipInY: {\n 0: {\n transform: [{rotateY: \"0deg\"}]\n },\n 1: {\n transform: [{rotateY: \"360deg\"}]\n }\n },\n flipInX: {\n 0: {\n transform: [{rotateX: \"0deg\"}]\n },\n 1: {\n transform: [{rotateX: \"360deg\"}]\n }\n },\n flipOutY: {\n 0: {\n transform: [{rotateY: \"3600deg\"}]\n },\n 1: {\n transform: [{rotateY: \"0deg\"}]\n }\n },\n flipOutX: {\n 0: {\n transform: [{rotateX: \"360deg\"}]\n },\n 1: {\n transform: [{rotateX: \"0deg\"}]\n }\n },\n slideInDown : {\n from: { translateY: -20 },\n to: { translateY: 0 }\n },\n slideInUp : {\n from: { translateY: 20 },\n to: { translateY: 0 }\n },\n slideOutUp: {\n from: { translateY: 0 },\n to: { translateY: -20 }\n },\n slideOutDown : {\n from: { translateY: 0 },\n to: { translateY: 20 }\n },\n fadeInDown: {\n from: { opacity: 0, translateY: -20 },\n to: { opacity: 1, translateY: 0 }\n },\n fadeInUp: {\n from: { opacity: 0, translateY: 20 },\n to: { opacity: 1, translateY: 0 }\n },\n fadeOutDown: {\n from: { opacity: 1, translateY: 0 },\n to: { opacity: 0, translateY: 20 }\n },\n fadeOutUp: {\n from: { opacity: 1, translateY: 0 },\n to: { opacity: 0, translateY: -20 }\n }\n};\n\nexport class Animatedview extends React.Component<AnimatedviewProps> {\n static defaultProps: AnimatedviewProps = {\n duration: 200\n };\n\n private view: Animatable.View = null as any;\n\n constructor(props: AnimatedviewProps) {\n super(props);\n initializeRegistryWithDefinitions(CustomAnimationMap);\n }\n\n triggerEntry() {\n return (this as any).view.animate(this.props.entryanimation, this.props.duration).then((endState: any) => endState.finished)\n }\n\n triggerExit() {\n if (!this.view) {\n return;\n }\n if (this.props.exitanimation) {\n return (this as any).view.animate(this.props.exitanimation, this.props.duration, 1).then((endState: any) => endState.finished)\n } else {\n return (this as any).view.animate(AnimationMap[this.props.entryanimation || ''], this.props.duration, 1).then((endState: any) => endState.finished)\n }\n }\n\n // @ts-ignore\n handleViewRef = (ref: Animatable.View<ViewProps, ViewStyle>) => this.view = ref;\n\n render() {\n return this.props.entryanimation ? (\n <Animatable.View\n animation={this.props.entryanimation}\n duration={this.props.duration}\n useNativeDriver={true}\n style={this.props.style}\n iterationCount={this.props.iterationCount}\n ref={this.handleViewRef}>\n {this.props.children}\n </Animatable.View>\n ): (<View style={this.props.style}>{this.props.children}</View>);\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAO,KAAKC,UAAU,MAAM,yBAAyB;AACrD,SAASC,iCAAiC,QAAQ,yBAAyB;AAC3E,SAASC,IAAI,QAA8B,cAAc;AAEzD,eAAe,MAAMC,iBAAiB,CAAC;EAAAC,YAAA;IAAAC,eAAA,yBACX,IAAI;IAAAA,eAAA;IAAAA,eAAA,mBAEV,IAAI;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA,wBAGC,IAAI;EAAA;AAC/B;AAEA,MAAMC,YAAiB,GAAG;EACxBC,MAAM,EAAE,QAAQ;EAChBC,KAAK,EAAE,OAAO;EACdC,KAAK,EAAE,OAAO;EACdC,MAAM,EAAE,QAAQ;EAChBC,UAAU,EAAE,YAAY;EACxBC,KAAK,EAAE,OAAO;EACdC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE,MAAM;EACZC,MAAM,EAAE,QAAQ;EAChBC,QAAQ,EAAE,WAAW;EACrBC,YAAY,EAAE,aAAa;EAC3BC,YAAY,EAAE,gBAAgB;EAC9BC,aAAa,EAAE,eAAe;EAC9BC,UAAU,EAAE,eAAe;EAC3BC,MAAM,EAAE,SAAS;EACjBC,UAAU,EAAE,WAAW;EACvBC,aAAa,EAAE,cAAc;EAC7BC,UAAU,EAAE,cAAc;EAC1BC,aAAa,EAAE,iBAAiB;EAChCC,WAAW,EAAE,aAAa;EAC1BC,cAAc,EAAE,gBAAgB;EAChCC,QAAQ,EAAE,aAAa;EACvBC,WAAW,EAAE,gBAAgB;EAC7BC,OAAO,EAAE,UAAU;EACnBC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EAAE,IAAI,CAACjB,KAAK,CAACiB,cAAe;MAC1ChB,GAAG,EAAE,IAAI,CAACiB;IAAc,GACtB,IAAI,CAAClB,KAAK,CAACmB,QACG,CAAC,gBAChB9E,KAAA,CAAAwE,aAAA,CAACrE,IAAI;MAACwE,KAAK,EAAE,IAAI,CAAChB,KAAK,CAACgB;IAAM,GAAE,IAAI,CAAChB,KAAK,CAACmB,QAAe,CAAE;EAClE;AACF;AAACxE,eAAA,CA3CYmD,YAAY,kBACkB;EACvCQ,QAAQ,EAAE;AACZ,CAAC"}
@@ -9,31 +9,17 @@ import { DEFAULT_CLASS } from './button.styles';
9
9
  import WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';
10
10
  import { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';
11
11
  import { createSkeleton } from '../skeleton/skeleton.component';
12
- import { AccessibilityWidgetType, getAccessibilityProps } from '@wavemaker/app-rn-runtime/core/accessibility';
13
12
  export class WmButtonState extends BaseComponentState {}
14
13
  export default class WmButton extends BaseComponent {
15
14
  constructor(props) {
16
15
  super(props, DEFAULT_CLASS, new WmButtonProps());
17
16
  }
18
- prepareIcon(_ref) {
19
- let {
20
- iconclass,
21
- iconurl,
22
- name,
23
- iconsize,
24
- iconheight,
25
- iconmargin,
26
- iconwidth
27
- } = _ref;
28
- return iconclass || iconurl ? /*#__PURE__*/React.createElement(WmIcon, _extends({}, this.getTestPropsForLabel('icon'), {
17
+ prepareIcon(props) {
18
+ return props.iconclass ? /*#__PURE__*/React.createElement(WmIcon, _extends({}, this.getTestPropsForLabel('icon'), {
29
19
  styles: this.styles.icon,
30
- name: `${name}_icon`,
31
- iconclass: iconclass,
32
- iconsize: iconsize,
33
- iconurl: iconurl,
34
- iconheight: iconheight,
35
- iconmargin: iconmargin,
36
- iconwidth: iconwidth
20
+ name: props.name + '_icon',
21
+ iconclass: props.iconclass,
22
+ iconsize: props.iconsize
37
23
  })) : null;
38
24
  }
39
25
  prepareBadge(props) {
@@ -52,24 +38,8 @@ export default class WmButton extends BaseComponent {
52
38
  renderWidget(props) {
53
39
  return /*#__PURE__*/React.createElement(Animatedview, {
54
40
  entryanimation: props.animation,
55
- style: [this.styles.root, {
56
- paddingTop: 0,
57
- paddingBottom: 0,
58
- paddingLeft: 0,
59
- paddingRight: 0,
60
- overflow: 'hidden'
61
- }],
62
- accessibilityProps: {
63
- ...getAccessibilityProps(AccessibilityWidgetType.BUTTON, props)
64
- }
41
+ style: this.styles.root
65
42
  }, this._background, /*#__PURE__*/React.createElement(Tappable, _extends({
66
- styles: {
67
- paddingTop: this.styles.root.paddingTop,
68
- paddingBottom: this.styles.root.paddingBottom,
69
- paddingLeft: this.styles.root.paddingLeft,
70
- paddingRight: this.styles.root.paddingRight
71
- },
72
- rippleColor: this.styles.root.rippleColor,
73
43
  target: this
74
44
  }, this.getTestPropsForAction()), /*#__PURE__*/React.createElement(View, {
75
45
  style: [this.styles.content, {
@@ -77,10 +47,7 @@ export default class WmButton extends BaseComponent {
77
47
  }]
78
48
  }, props.iconposition === 'top' && this.prepareIcon(props), props.iconposition === 'left' && this.prepareIcon(props), props.caption ? /*#__PURE__*/React.createElement(Text, _extends({
79
49
  style: this.styles.text
80
- }, this.getTestPropsForLabel('caption'), {
81
- importantForAccessibility: 'no'
82
- // accessibilityLabel={`${props.caption}`}
83
- }), props.caption) : null, props.iconposition === 'right' && this.prepareIcon(props), props.badgevalue && this.prepareBadge(props))));
50
+ }, this.getTestPropsForLabel('caption')), props.caption) : null, props.iconposition === 'right' && this.prepareIcon(props), props.badgevalue && this.prepareBadge(props))));
84
51
  }
85
52
  }
86
53
  //# sourceMappingURL=button.component.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","Text","View","BaseComponent","BaseComponentState","Tappable","Badge","WmButtonProps","DEFAULT_CLASS","WmIcon","Animatedview","createSkeleton","AccessibilityWidgetType","getAccessibilityProps","WmButtonState","WmButton","constructor","props","prepareIcon","_ref","iconclass","iconurl","name","iconsize","iconheight","iconmargin","iconwidth","createElement","_extends","getTestPropsForLabel","styles","icon","prepareBadge","style","badge","badgevalue","renderSkeleton","prop","theme","skeleton","root","width","skeletonwidth","height","skeletonheight","renderWidget","entryanimation","animation","paddingTop","paddingBottom","paddingLeft","paddingRight","overflow","accessibilityProps","BUTTON","_background","rippleColor","target","getTestPropsForAction","content","flexDirection","iconposition","caption","text","importantForAccessibility"],"sources":["button.component.tsx"],"sourcesContent":["import React from 'react';\nimport { DimensionValue, Text, View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport { Badge } from 'react-native-paper';\n\nimport WmButtonProps from './button.props';\nimport { DEFAULT_CLASS, WmButtonStyles } from './button.styles';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';\nimport { createSkeleton } from '../skeleton/skeleton.component';\nimport { AccessibilityWidgetType, getAccessibilityProps } from '@wavemaker/app-rn-runtime/core/accessibility';\n\nexport class WmButtonState extends BaseComponentState<WmButtonProps> {\n\n}\n\nexport default class WmButton extends BaseComponent<WmButtonProps, WmButtonState, WmButtonStyles> {\n\n constructor(props: WmButtonProps) {\n super(props, DEFAULT_CLASS, new WmButtonProps());\n }\n\n private prepareIcon({\n iconclass,\n iconurl,\n name,\n iconsize,\n iconheight,\n iconmargin,\n iconwidth,\n }: any) {\n return iconclass || iconurl\n ? (<WmIcon\n {...this.getTestPropsForLabel('icon')}\n styles={this.styles.icon} \n name={`${name}_icon`} \n iconclass={iconclass}\n iconsize={iconsize}\n iconurl={iconurl} \n iconheight={iconheight}\n iconmargin={iconmargin}\n iconwidth={iconwidth}\n />): null;\n }\n\n private prepareBadge(props: any) {\n //@ts-ignore\n return (<Badge style={this.styles.badge}>{props.badgevalue}</Badge>);\n }\n\n public renderSkeleton(prop: WmButtonProps) {\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...this.styles.root,\n width: (this.props.skeletonwidth || this.styles.root.width)as DimensionValue,\n height: (this.props.skeletonheight || this.styles.root.height) as DimensionValue\n });\n }\n\n renderWidget(props: WmButtonProps) {\n return (\n <Animatedview entryanimation={props.animation}\n style={[\n this.styles.root,\n {\n paddingTop: 0,\n paddingBottom: 0,\n paddingLeft: 0,\n paddingRight: 0,\n overflow: 'hidden'\n }\n ]}\n accessibilityProps={{...getAccessibilityProps(\n AccessibilityWidgetType.BUTTON,\n props\n )}}\n >\n {this._background}\n <Tappable\n styles={{\n paddingTop: this.styles.root.paddingTop,\n paddingBottom: this.styles.root.paddingBottom,\n paddingLeft: this.styles.root.paddingLeft,\n paddingRight: this.styles.root.paddingRight\n }}\n rippleColor = {this.styles.root.rippleColor}\n target={this}\n {...this.getTestPropsForAction()}>\n <View\n style={[\n this.styles.content,\n { flexDirection: props.iconposition === 'top' ? 'column' : 'row' }\n ]}>\n {props.iconposition === 'top' && this.prepareIcon(props)}\n {props.iconposition === 'left' && this.prepareIcon(props)}\n {props.caption ? (\n <Text\n style={this.styles.text}\n {...this.getTestPropsForLabel('caption')}\n importantForAccessibility={'no'}\n // accessibilityLabel={`${props.caption}`}\n >\n {props.caption}\n </Text>\n ) : null}\n {props.iconposition === 'right' && this.prepareIcon(props)}\n {props.badgevalue && this.prepareBadge(props)}\n </View>\n </Tappable>\n </Animatedview>\n );\n }\n}\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAyBC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzD,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,SAASC,QAAQ,QAAQ,mDAAmD;AAC5E,SAASC,KAAK,QAAQ,oBAAoB;AAE1C,OAAOC,aAAa,MAAM,gBAAgB;AAC1C,SAASC,aAAa,QAAwB,iBAAiB;AAC/D,OAAOC,MAAM,MAAM,gEAAgE;AACnF,SAASC,YAAY,QAAQ,mEAAmE;AA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AAK,CAAC4C,YAAY,KAAK,KAAK,GAAG,QAAQ,GAAG;MAAM,CAAC;IAClE,GACD5C,KAAK,CAAC4C,YAAY,KAAK,KAAK,IAAI,IAAI,CAAC3C,WAAW,CAACD,KAAK,CAAC,EACvDA,KAAK,CAAC4C,YAAY,KAAK,MAAM,IAAI,IAAI,CAAC3C,WAAW,CAACD,KAAK,CAAC,EACxDA,KAAK,CAAC6C,OAAO,gBACZ9D,KAAA,CAAA2B,aAAA,CAAC1B,IAAI,EAAA2B,QAAA;MACHK,KAAK,EAAE,IAAI,CAACH,MAAM,CAACiC;IAAK,GACpB,IAAI,CAAClC,oBAAoB,CAAC,SAAS,CAAC;MACxCmC,yBAAyB,EAAE;MAC3B;IAAA,IAEC/C,KAAK,CAAC6C,OACH,CAAC,GACL,IAAI,EACP7C,KAAK,CAAC4C,YAAY,KAAK,OAAO,IAAI,IAAI,CAAC3C,WAAW,CAACD,KAAK,CAAC,EACzDA,KAAK,CAACkB,UAAU,IAAI,IAAI,CAACH,YAAY,CAACf,KAAK,CACxC,CACE,CACE,CAAC;EAEnB;AACF"}
1
+ {"version":3,"names":["React","Text","View","BaseComponent","BaseComponentState","Tappable","Badge","WmButtonProps","DEFAULT_CLASS","WmIcon","Animatedview","createSkeleton","WmButtonState","WmButton","constructor","props","prepareIcon","iconclass","createElement","_extends","getTestPropsForLabel","styles","icon","name","iconsize","prepareBadge","style","badge","badgevalue","renderSkeleton","prop","theme","skeleton","root","width","skeletonwidth","height","skeletonheight","renderWidget","entryanimation","animation","_background","target","getTestPropsForAction","content","flexDirection","iconposition","caption","text"],"sources":["button.component.tsx"],"sourcesContent":["import React from 'react';\nimport { DimensionValue, Text, View } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { Tappable } from '@wavemaker/app-rn-runtime/core/tappable.component';\nimport { Badge } from 'react-native-paper';\n\nimport WmButtonProps from './button.props';\nimport { DEFAULT_CLASS, WmButtonStyles } from './button.styles';\nimport WmIcon from '@wavemaker/app-rn-runtime/components/basic/icon/icon.component';\nimport { Animatedview } from '@wavemaker/app-rn-runtime/components/basic/animatedview.component';\nimport { createSkeleton } from '../skeleton/skeleton.component';\n\nexport class WmButtonState extends BaseComponentState<WmButtonProps> {\n\n}\n\nexport default class WmButton extends BaseComponent<WmButtonProps, WmButtonState, WmButtonStyles> {\n\n constructor(props: WmButtonProps) {\n super(props, DEFAULT_CLASS, new WmButtonProps());\n }\n\n private prepareIcon(props: any) {\n return (props.iconclass? <WmIcon\n {...this.getTestPropsForLabel('icon')}\n styles={this.styles.icon} name={props.name + '_icon'} iconclass={props.iconclass} iconsize={props.iconsize}></WmIcon>: null);\n }\n\n private prepareBadge(props: any) {\n //@ts-ignore\n return (<Badge style={this.styles.badge}>{props.badgevalue}</Badge>);\n }\n\n public renderSkeleton(prop: WmButtonProps) {\n return createSkeleton(this.theme, this.styles.skeleton, {\n ...this.styles.root,\n width: (this.props.skeletonwidth || this.styles.root.width)as DimensionValue,\n height: (this.props.skeletonheight || this.styles.root.height) as DimensionValue\n });\n }\n\n renderWidget(props: WmButtonProps) {\n return (\n <Animatedview entryanimation={props.animation} style={this.styles.root}>\n {this._background}\n <Tappable target={this} {...this.getTestPropsForAction()}>\n <View style={[this.styles.content, {flexDirection: props.iconposition === 'top' ? 'column': 'row'}]}>\n {props.iconposition === 'top' && this.prepareIcon(props)}\n {props.iconposition === 'left' && this.prepareIcon(props)}\n {props.caption ? (<Text style={this.styles.text} \n {...this.getTestPropsForLabel('caption')}>{props.caption}</Text>): null}\n {props.iconposition === 'right' && this.prepareIcon(props)}\n {props.badgevalue && this.prepareBadge(props)}\n </View>\n </Tappable>\n </Animatedview>\n );\n }\n}\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAAyBC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACzD,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,+CAA+C;AACjG,SAASC,QAAQ,QAAQ,mDAA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default class WmButtonProps extends BaseProps {
14
14
  _defineProperty(this, "iconsize", 0);
15
15
  _defineProperty(this, "skeletonheight", null);
16
16
  _defineProperty(this, "skeletonwidth", null);
17
- _defineProperty(this, "iconurl", null);
18
- _defineProperty(this, "iconheight", null);
19
- _defineProperty(this, "iconwidth", null);
20
- _defineProperty(this, "iconmargin", null);
21
- _defineProperty(this, "accessibilitylabel", undefined);
22
- _defineProperty(this, "hint", undefined);
23
- _defineProperty(this, "accessibilityrole", "button");
24
17
  }
25
18
  }
26
19
  //# sourceMappingURL=button.props.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmButtonProps","constructor","arguments","_defineProperty","undefined"],"sources":["button.props.ts"],"sourcesContent":["import {AccessibilityRole} from 'react-native';\nimport { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmButtonProps extends BaseProps {\n animation?: string = null as any;\n caption?: string = null as any;\n badgevalue?: string = null as any;\n iconclass?: string = null as any;\n iconposition? = 'left';\n onTap?: Function = null as any;\n iconsize?:number = 0;\n skeletonheight?: string = null as any;\n skeletonwidth?: string = null as any;\n iconurl?: string = null as any;\n iconheight?: number = null as any;\n iconwidth?: number = null as any;\n iconmargin?: number = null as any;\n accessibilitylabel?: string = undefined;\n hint?: string = undefined;\n accessibilityrole?: AccessibilityRole = \"button\";\n}\n"],"mappings":";;;AACA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBAC5B,IAAI;IAAAA,eAAA,kBACN,IAAI;IAAAA,eAAA,qBACD,IAAI;IAAAA,eAAA,oBACL,IAAI;IAAAA,eAAA,uBACT,MAAM;IAAAA,eAAA,gBACH,IAAI;IAAAA,eAAA,mBACJ,CAAC;IAAAA,eAAA,yBACM,IAAI;IAAAA,eAAA,wBACL,IAAI;IAAAA,eAAA,kBACV,IAAI;IAAAA,eAAA,qBACD,IAAI;IAAAA,eAAA,oBACL,IAAI;IAAAA,eAAA,qBACH,IAAI;IAAAA,eAAA,6BACIC,SAAS;IAAAD,eAAA,eACvBC,SAAS;IAAAD,eAAA,4BACe,QAAQ;EAAA;AACpD"}
1
+ {"version":3,"names":["BaseProps","WmButtonProps","constructor","arguments","_defineProperty"],"sources":["button.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker/app-rn-runtime/core/base.component';\n\nexport default class WmButtonProps extends BaseProps {\n animation?: string = null as any;\n caption?: string = null as any;\n badgevalue?: string = null as any;\n iconclass?: string = null as any;\n iconposition? = 'left';\n onTap?: Function = null as any;\n iconsize?:number = 0;\n skeletonheight?: string = null as any;\n skeletonwidth?: string = null as any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,+CAA+C;AAEzE,eAAe,MAAMC,aAAa,SAASD,SAAS,CAAC;EAAAE,YAAA;IAAA,SAAAC,SAAA;IAAAC,eAAA,oBAC5B,IAAI;IAAAA,eAAA,kBACN,IAAI;IAAAA,eAAA,qBACD,IAAI;IAAAA,eAAA,oBACL,IAAI;IAAAA,eAAA,uBACT,MAAM;IAAAA,eAAA,gBACH,IAAI;IAAAA,eAAA,mBACJ,CAAC;IAAAA,eAAA,yBACM,IAAI;IAAAA,eAAA,wBACL,IAAI;EAAA;AACjC"}
@@ -5,13 +5,12 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
5
5
  const defaultStyles = defineStyles({
6
6
  root: {
7
7
  minHeight: 40,
8
- borderRadius: 32,
9
- paddingTop: 12,
10
- paddingBottom: 12,
8
+ borderRadius: 6,
9
+ paddingTop: 11,
10
+ paddingBottom: 11,
11
11
  paddingLeft: 24,
12
12
  paddingRight: 24,
13
- alignSelf: 'flex-start',
14
- rippleColor: themeVariables.rippleColor
13
+ alignSelf: 'flex-start'
15
14
  },
16
15
  content: {
17
16
  flexDirection: 'row',
@@ -23,7 +22,8 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
23
22
  fontFamily: themeVariables.baseFont,
24
23
  fontWeight: '500',
25
24
  textAlign: 'center',
26
- textTransform: 'capitalize'
25
+ textTransform: 'capitalize',
26
+ marginHorizontal: 4
27
27
  },
28
28
  badge: {
29
29
  backgroundColor: themeVariables.buttonBadgeBackgroundColor,
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","minHeight","borderRadius","paddingTop","paddingBottom","paddingLeft","paddingRight","alignSelf","rippleColor","content","flexDirection","alignItems","justifyContent","text","fontSize","fontFamily","baseFont","fontWeight","textAlign","textTransform","badge","backgroundColor","buttonBadgeBackgroundColor","color","buttonBadgeTextColor","position","top","marginLeft","borderWidth","borderStyle","icon","buttonTextPadding","skeleton","width","height","opacity","getButtonStyles","bgColor","borderColor","arguments","length","undefined","linkBtnStyle","buttonLinkColor","buttonLinkTextColor","buttonWithOnlyLabel","paddingVertical","textDecorationColor","textDecorationLine","textDecorationStyle","buttonDefaultColor","buttonDefaultTextColor","buttonBorderColor","buttonInfoColor","buttonInfoTextColor","buttonPrimaryColor","buttonPrimaryTextColor","buttonSecondaryColor","buttonSecondaryTextColor","buttonDangerColor","buttonDangerTextColor","buttonSuccessColor","buttonSuccessTextColor","buttonWarningColor","buttonWarningTextColor","buttonDarkColor","buttonDarkTextColor","buttonLightColor","buttonLightTextColor","getStyle","bottom","right","marginRight"],"sources":["button.styles.ts"],"sourcesContent":["import BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '../icon/icon.styles';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmButtonStyles = BaseStyles & {\n content: AllStyle,\n badge: AllStyle,\n icon: WmIconStyles,\n skeleton: WmSkeletonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-button';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmButtonStyles = defineStyles<WmButtonStyles>({\n root: {\n minHeight: 40,\n borderRadius: 32,\n paddingTop: 12,\n paddingBottom: 12,\n paddingLeft: 24,\n paddingRight: 24,\n alignSelf: 'flex-start',\n rippleColor: themeVariables.rippleColor\n },\n content: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center'\n },\n text: {\n fontSize: 14,\n fontFamily: themeVariables.baseFont,\n fontWeight: '500',\n textAlign: 'center',\n textTransform: 'capitalize',\n },\n badge: {\n backgroundColor: themeVariables.buttonBadgeBackgroundColor,\n color: themeVariables.buttonBadgeTextColor,\n alignSelf: 'flex-start',\n position: 'relative',\n minHeight: 6,\n top: -20,\n marginLeft: -16,\n borderWidth: 1,\n borderStyle: 'solid'\n },\n icon: {\n root : {\n alignSelf: 'auto',\n paddingLeft: -8,\n paddingRight: -8\n },\n text: {\n paddingRight: themeVariables.buttonTextPadding,\n fontSize: 16\n }\n } as WmIconStyles,\n skeleton: {\n root: {\n width: 96,\n height: 48,\n borderRadius: 4\n }\n } as WmSkeletonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-disabled', '', {\n root : {\n opacity: 0.5\n }\n });\n\n const getButtonStyles = (bgColor: string, color: string, borderColor = bgColor) => {\n return {\n root: {\n borderWidth: 1,\n borderColor: borderColor,\n borderStyle: 'solid',\n backgroundColor: bgColor\n },\n text: {\n color: color\n },\n badge: {\n backgroundColor: color,\n color: bgColor,\n borderColor: bgColor\n },\n icon: {\n text: {\n color: color\n }\n }\n } as WmButtonStyles;\n }\n\n const linkBtnStyle = getButtonStyles(themeVariables.buttonLinkColor, themeVariables.buttonLinkTextColor );\nconst buttonWithOnlyLabel = getButtonStyles(themeVariables.buttonLinkColor, themeVariables.buttonLinkTextColor );\n\n linkBtnStyle.root.paddingVertical = 4;\n linkBtnStyle.text.textDecorationColor = themeVariables.buttonLinkTextColor;\n linkBtnStyle.text.textDecorationLine = 'underline';\n linkBtnStyle.text.textDecorationStyle = 'solid';\n\n addStyle('btn-default', '', getButtonStyles(themeVariables.buttonDefaultColor, themeVariables.buttonDefaultTextColor, themeVariables.buttonBorderColor));\n addStyle('btn-info', '', getButtonStyles(themeVariables.buttonInfoColor, themeVariables.buttonInfoTextColor));\n addStyle('btn-primary', '', getButtonStyles(themeVariables.buttonPrimaryColor, themeVariables.buttonPrimaryTextColor));\n addStyle('btn-secondary', '', getButtonStyles(themeVariables.buttonSecondaryColor, themeVariables.buttonSecondaryTextColor, themeVariables.buttonSecondaryTextColor));\n addStyle('btn-danger', '', getButtonStyles(themeVariables.buttonDangerColor, themeVariables.buttonDangerTextColor));\n addStyle('btn-success', '', getButtonStyles(themeVariables.buttonSuccessColor, themeVariables.buttonSuccessTextColor));\n addStyle('btn-warning', '', getButtonStyles(themeVariables.buttonWarningColor, themeVariables.buttonWarningTextColor));\n addStyle('btn-link', '', linkBtnStyle);\n addStyle('btn-only-label', '', buttonWithOnlyLabel);\n addStyle('btn-dark', '', getButtonStyles(themeVariables.buttonDarkColor, themeVariables.buttonDarkTextColor));\n addStyle('btn-light', '', getButtonStyles(themeVariables.buttonLightColor, themeVariables.buttonLightTextColor));\n addStyle('fab-btn', 'btn-primary', {\n root : {\n ...BASE_THEME.getStyle('elevate2').root,\n position: 'fixed' as any,\n bottom: 160,\n right: 48,\n width: 56,\n height: 56,\n borderRadius: 56,\n justifyContent: 'center',\n alignItems: 'center'\n },\n text: {\n marginLeft: 0,\n marginRight: 0\n },\n icon: {\n icon: {\n fontSize: 24\n }\n } as WmIconStyles\n } as WmButtonStyles);\n addStyle('mini-fab-btn', 'fab-btn', {\n root : {\n width: 40,\n height: 40\n }\n } as WmButtonStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AAWxF,OAAO,MAAMC,aAAa,GAAG,YAAY;AACzCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAA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C;EAChHtE,QAAQ,CAAC,SAAS,EAAE,aAAa,EAAE;IACjCE,IAAI,EAAG;MACL,GAAGP,UAAU,CAAC4E,QAAQ,CAAC,UAAU,CAAC,CAACrE,IAAI;MACvCyB,QAAQ,EAAE,OAAc;MACxB6C,MAAM,EAAE,GAAG;MACXC,KAAK,EAAE,EAAE;MACTtC,KAAK,EAAE,EAAE;MACTC,MAAM,EAAE,EAAE;MACVhC,YAAY,EAAE,EAAE;MAChBU,cAAc,EAAE,QAAQ;MACxBD,UAAU,EAAE;IACd,CAAC;IACDE,IAAI,EAAE;MACJc,UAAU,EAAE,CAAC;MACb6C,WAAW,EAAE;IACf,CAAC;IACD1C,IAAI,EAAE;MACJA,IAAI,EAAE;QACJhB,QAAQ,EAAE;MACZ;IACF;EACF,CAAmB,CAAC;EACpBhB,QAAQ,CAAC,cAAc,EAAE,SAAS,EAAE;IAClCE,IAAI,EAAG;MACLiC,KAAK,EAAE,EAAE;MACTC,MAAM,EAAE;IACV;EACF,CAAmB,CAAC;AACtB,CAAC,CAAC"}
1
+ {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","minHeight","borderRadius","paddingTop","paddingBottom","paddingLeft","paddingRight","alignSelf","content","flexDirection","alignItems","justifyContent","text","fontSize","fontFamily","baseFont","fontWeight","textAlign","textTransform","marginHorizontal","badge","backgroundColor","buttonBadgeBackgroundColor","color","buttonBadgeTextColor","position","top","marginLeft","borderWidth","borderStyle","icon","buttonTextPadding","skeleton","width","height","opacity","getButtonStyles","bgColor","borderColor","arguments","length","undefined","linkBtnStyle","buttonLinkColor","buttonLinkTextColor","buttonWithOnlyLabel","paddingVertical","textDecorationColor","textDecorationLine","textDecorationStyle","buttonDefaultColor","buttonDefaultTextColor","buttonBorderColor","buttonInfoColor","buttonInfoTextColor","buttonPrimaryColor","buttonPrimaryTextColor","buttonSecondaryColor","buttonSecondaryTextColor","buttonDangerColor","buttonDangerTextColor","buttonSuccessColor","buttonSuccessTextColor","buttonWarningColor","buttonWarningTextColor","buttonDarkColor","buttonDarkTextColor","buttonLightColor","buttonLightTextColor","getStyle","bottom","right","marginRight"],"sources":["button.styles.ts"],"sourcesContent":["import BASE_THEME, { AllStyle } from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmIconStyles } from '../icon/icon.styles';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmButtonStyles = BaseStyles & {\n content: AllStyle,\n badge: AllStyle,\n icon: WmIconStyles,\n skeleton: WmSkeletonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-button';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmButtonStyles = defineStyles<WmButtonStyles>({\n root: {\n minHeight: 40,\n borderRadius: 6,\n paddingTop: 11,\n paddingBottom: 11,\n paddingLeft: 24,\n paddingRight: 24,\n alignSelf: 'flex-start'\n },\n content: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center'\n },\n text: {\n fontSize: 14,\n fontFamily: themeVariables.baseFont,\n fontWeight: '500',\n textAlign: 'center',\n textTransform: 'capitalize',\n marginHorizontal: 4\n },\n badge: {\n backgroundColor: themeVariables.buttonBadgeBackgroundColor,\n color: themeVariables.buttonBadgeTextColor,\n alignSelf: 'flex-start',\n position: 'relative',\n minHeight: 6,\n top: -20,\n marginLeft: -16,\n borderWidth: 1,\n borderStyle: 'solid'\n },\n icon: {\n root : {\n alignSelf: 'auto',\n paddingLeft: -8,\n paddingRight: -8\n },\n text: {\n paddingRight: themeVariables.buttonTextPadding,\n fontSize: 16\n }\n } as WmIconStyles,\n skeleton: {\n root: {\n width: 96,\n height: 48,\n borderRadius: 4\n }\n } as WmSkeletonStyles\n });\n\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-disabled', '', {\n root : {\n opacity: 0.5\n }\n });\n\n const getButtonStyles = (bgColor: string, color: string, borderColor = bgColor) => {\n return {\n root: {\n borderWidth: 1,\n borderColor: borderColor,\n borderStyle: 'solid',\n backgroundColor: bgColor\n },\n text: {\n color: color\n },\n badge: {\n backgroundColor: color,\n color: bgColor,\n borderColor: bgColor\n },\n icon: {\n text: {\n color: color\n }\n }\n } as WmButtonStyles;\n }\n\n const linkBtnStyle = getButtonStyles(themeVariables.buttonLinkColor, themeVariables.buttonLinkTextColor );\nconst buttonWithOnlyLabel = getButtonStyles(themeVariables.buttonLinkColor, themeVariables.buttonLinkTextColor );\n\n linkBtnStyle.root.paddingVertical = 4;\n linkBtnStyle.text.textDecorationColor = themeVariables.buttonLinkTextColor;\n linkBtnStyle.text.textDecorationLine = 'underline';\n linkBtnStyle.text.textDecorationStyle = 'solid';\n\n addStyle('btn-default', '', getButtonStyles(themeVariables.buttonDefaultColor, themeVariables.buttonDefaultTextColor, themeVariables.buttonBorderColor));\n addStyle('btn-info', '', getButtonStyles(themeVariables.buttonInfoColor, themeVariables.buttonInfoTextColor));\n addStyle('btn-primary', '', getButtonStyles(themeVariables.buttonPrimaryColor, themeVariables.buttonPrimaryTextColor));\n addStyle('btn-secondary', '', getButtonStyles(themeVariables.buttonSecondaryColor, themeVariables.buttonSecondaryTextColor, themeVariables.buttonSecondaryTextColor));\n addStyle('btn-danger', '', getButtonStyles(themeVariables.buttonDangerColor, themeVariables.buttonDangerTextColor));\n addStyle('btn-success', '', getButtonStyles(themeVariables.buttonSuccessColor, themeVariables.buttonSuccessTextColor));\n addStyle('btn-warning', '', getButtonStyles(themeVariables.buttonWarningColor, themeVariables.buttonWarningTextColor));\n addStyle('btn-link', '', linkBtnStyle);\n addStyle('btn-only-label', '', buttonWithOnlyLabel);\n addStyle('btn-dark', '', getButtonStyles(themeVariables.buttonDarkColor, themeVariables.buttonDarkTextColor));\n addStyle('btn-light', '', getButtonStyles(themeVariables.buttonLightColor, themeVariables.buttonLightTextColor));\n addStyle('fab-btn', 'btn-primary', {\n root : {\n ...BASE_THEME.getStyle('elevate2').root,\n position: 'fixed' as any,\n bottom: 160,\n right: 48,\n width: 56,\n height: 56,\n borderRadius: 56,\n justifyContent: 'center',\n alignItems: 'center'\n },\n text: {\n marginLeft: 0,\n marginRight: 0\n },\n icon: {\n icon: {\n fontSize: 24\n }\n } as WmIconStyles\n } as WmButtonStyles);\n addStyle('mini-fab-btn', 'fab-btn', {\n root : {\n width: 40,\n height: 40\n }\n } as WmButtonStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAoB,wCAAwC;AAC7E,SAAqBC,YAAY,QAAQ,+CAA+C;AAWxF,OAAO,MAAMC,aAAa,GAAG,YAAY;AACzCF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAA6B,GAAGL,YAAY,CAAiB;IAC/DM,IAAI,EAAE;MACFC,SAAS,EAAE,EAAE;MACbC,YAAY,EAAE,CAAC;MACfC,UAAU,EAAE,EAAE;MACdC,aAAa,EAAE,EAAE;MACjBC,WAAW,EAAE,EAAE;MACfC,YAAY,EAAE,EAAE;MAChBC,SAAS,EAAE;IACf,CAAC;IACDC,OAAO,EAAE;MACPC,aAAa,EAAE,KAAK;MACpBC,UAAU,EAAE,QAAQ;MACpBC,cAAc,EAAE;IAClB,CAAC;IACDC,IAAI,EAAE;MACJC,QAAQ,EAAE,EAAE;MACZC,UAAU,EAAEjB,cAAc,CAACkB,QAAQ;MACnCC,UAAU,EAAE,KAAK;MACjBC,SAAS,EAAE,QAAQ;MACnBC,aAAa,EAAE,YAAY;MAC3BC,gBAAgB,EAAE;IACpB,CAAC;IACDC,KAAK,EAAE;MACLC,eAAe,EAAExB,cAAc,CAACyB,0BAA0B;MAC1DC,KAAK,EAAE1B,cAAc,CAAC2B,oBAAoB;MAC1CjB,SAAS,EAAE,YAAY;MACvBkB,QAAQ,EAAE,UAAU;MACpBxB,SAAS,EAAE,CAAC;MACZyB,GAAG,EAAE,CAAC,EAAE;MACRC,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AAEsC,eAAe,CAACvC,cAAc,CAACkE,kBAAkB,EAAElE,cAAc,CAACmE,sBAAsB,CAAC,CAAC;EACtHlE,QAAQ,CAAC,UAAU,EAAE,EAAE,EAAE4C,YAAY,CAAC;EACtC5C,QAAQ,CAAC,gBAAgB,EAAE,EAAE,EAAE+C,mBAAmB,CAAC;EACnD/C,QAAQ,CAAC,UAAU,EAAE,EAAE,EAAEsC,eAAe,CAACvC,cAAc,CAACoE,eAAe,EAAEpE,cAAc,CAACqE,mBAAmB,CAAC,CAAC;EAC7GpE,QAAQ,CAAC,WAAW,EAAE,EAAE,EAAEsC,eAAe,CAACvC,cAAc,CAACsE,gBAAgB,EAAEtE,cAAc,CAACuE,oBAAoB,CAAC,CAAC;EAChHtE,QAAQ,CAAC,SAAS,EAAE,aAAa,EAAE;IACjCE,IAAI,EAAG;MACL,GAAGP,UAAU,CAAC4E,QAAQ,CAAC,UAAU,CAAC,CAACrE,IAAI;MACvCyB,QAAQ,EAAE,OAAc;MACxB6C,MAAM,EAAE,GAAG;MACXC,KAAK,EAAE,EAAE;MACTtC,KAAK,EAAE,EAAE;MACTC,MAAM,EAAE,EAAE;MACVhC,YAAY,EAAE,EAAE;MAChBS,cAAc,EAAE,QAAQ;MACxBD,UAAU,EAAE;IACd,CAAC;IACDE,IAAI,EAAE;MACJe,UAAU,EAAE,CAAC;MACb6C,WAAW,EAAE;IACf,CAAC;IACD1C,IAAI,EAAE;MACJA,IAAI,EAAE;QACJjB,QAAQ,EAAE;MACZ;IACF;EACF,CAAmB,CAAC;EACpBf,QAAQ,CAAC,cAAc,EAAE,SAAS,EAAE;IAClCE,IAAI,EAAG;MACLiC,KAAK,EAAE,EAAE;MACTC,MAAM,EAAE;IACV;EACF,CAAmB,CAAC;AACtB,CAAC,CAAC"}
@@ -11,8 +11,7 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
11
11
  borderWidth: 1,
12
12
  borderStyle: 'solid',
13
13
  borderColor: themeVariables.buttonGrpBorderColor,
14
- backgroundColor: themeVariables.buttonGrpBgColor,
15
- overflow: 'hidden'
14
+ backgroundColor: themeVariables.buttonGrpBgColor
16
15
  },
17
16
  text: {},
18
17
  skeleton: {
@@ -34,22 +33,15 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
34
33
  backgroundColor: 'transparent',
35
34
  flex: 1,
36
35
  borderColor: themeVariables.buttonGrpBorderColor
36
+ },
37
+ text: {
38
+ color: themeVariables.defaultColor9
37
39
  }
38
40
  });
39
41
  addStyle('btn-group-first-child', '', {
40
42
  root: {
41
43
  borderLeftWidth: 0,
42
- borderTopLeftRadius: 28,
43
- borderBottomLeftRadius: 28,
44
- backgroundColor: 'transparent',
45
- borderColor: themeVariables.buttonGrpBorderColor
46
- }
47
- });
48
- addStyle('btn-group-last-child', '', {
49
- root: {
50
- borderRightWidth: 0,
51
- borderTopRightRadius: 28,
52
- borderBottomRightRadius: 28,
44
+ borderRadius: 0,
53
45
  backgroundColor: 'transparent',
54
46
  borderColor: themeVariables.buttonGrpBorderColor
55
47
  }
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","defineStyles","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","flexDirection","alignSelf","alignItems","borderRadius","borderWidth","borderStyle","borderColor","buttonGrpBorderColor","backgroundColor","buttonGrpBgColor","overflow","text","skeleton","width","height","borderTopWidth","borderBottomWidth","borderLeftWidth","borderRightWidth","flex","borderTopLeftRadius","borderBottomLeftRadius","borderTopRightRadius","borderBottomRightRadius"],"sources":["buttongroup.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmButtonStyles } from '../button/button.styles';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmButtongroupStyles = BaseStyles & {\n skeleton: WmSkeletonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-buttongroup';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmButtongroupStyles = defineStyles({\n root: {\n flexDirection: 'row',\n alignSelf: 'flex-start',\n alignItems: 'center',\n borderRadius: 100,\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.buttonGrpBorderColor,\n backgroundColor: themeVariables.buttonGrpBgColor,\n overflow: 'hidden'\n }, \n text: {},\n skeleton: {\n root : {\n width: '100%',\n height: 48,\n borderRadius: 4,\n borderColor: themeVariables.buttonGrpBorderColor\n }\n } as any as WmSkeletonStyles\n });\n\n\n addStyle('btn-group-child', '', {\n root: {\n borderTopWidth: 0,\n borderBottomWidth: 0,\n borderLeftWidth: 1,\n borderRightWidth: 0,\n borderRadius: 0,\n backgroundColor: 'transparent',\n flex: 1,\n borderColor: themeVariables.buttonGrpBorderColor,\n },\n } as WmButtonStyles);\n addStyle('btn-group-first-child', '', {\n root: {\n borderLeftWidth: 0,\n borderTopLeftRadius: 28,\n borderBottomLeftRadius: 28,\n backgroundColor: 'transparent',\n borderColor: themeVariables.buttonGrpBorderColor\n }\n } as WmButtonStyles);\n addStyle('btn-group-last-child', '', {\n root: {\n borderRightWidth: 0,\n borderTopRightRadius: 28,\n borderBottomRightRadius: 28,\n backgroundColor: 'transparent',\n borderColor: themeVariables.buttonGrpBorderColor\n }\n } as WmButtonStyles);\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCAAwC;AAC/D,SAAqBC,YAAY,QAAQ,+CAA+C;AAQxF,OAAO,MAAMC,aAAa,GAAG,iBAAiB;AAC9CF,UAAU,CAACG,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACrD,MAAMC,aAAkC,GAAGL,YAAY,CAAC;IACpDM,IAAI,EAAE;MACJC,aAAa,EAAE,KAAK;MACpBC,SAAS,EAAE,YAAY;MACvBC,UAAU,EAAE,QAAQ;MACpBC,YAAY,EAAE,GAAG;MACjBC,WAAW,EAAE,CAAC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FAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","flexDirection","alignSelf","alignItems","borderRadius","borderWidth","borderStyle","borderColor","buttonGrpBorderColor","backgroundColor","buttonGrpBgColor","text","skeleton","width","height","borderTopWidth","borderBottomWidth","borderLeftWidth","borderRightWidth","flex","color","defaultColor9"],"sources":["buttongroup.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker/app-rn-runtime/styles/theme';\nimport { BaseStyles, defineStyles } from '@wavemaker/app-rn-runtime/core/base.component';\nimport { WmButtonStyles } from '../button/button.styles';\nimport { WmSkeletonStyles } from '../skeleton/skeleton.styles';\n\nexport type WmButtongroupStyles = BaseStyles & {\n skeleton: WmSkeletonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-buttongroup';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles: WmButtongroupStyles = defineStyles({\n root: {\n flexDirection: 'row',\n alignSelf: 'flex-start',\n alignItems: 'center',\n borderRadius: 100,\n borderWidth: 1,\n borderStyle: 'solid',\n borderColor: themeVariables.buttonGrpBorderColor,\n backgroundColor: themeVariables.buttonGrpBgColor\n }, \n text: {},\n skeleton: {\n root : {\n width: '100%',\n height: 48,\n borderRadius: 4,\n borderColor: themeVariables.buttonGrpBorderColor\n }\n } as any as WmSkeletonStyles\n });\n\n\n addStyle('btn-group-child', '', {\n root: {\n borderTopWidth: 0,\n borderBottomWidth: 0,\n borderLeftWidth: 1,\n borderRightWidth: 0,\n borderRadius: 0,\n backgroundColor: 'transparent',\n flex: 1,\n borderColor: themeVariables.buttonGrpBorderColor,\n },\n text: {\n color: themeVariables.defaultColor9,\n }\n } as WmButtonStyles);\n addStyle('btn-group-first-child', '', {\n root: {\n borderLeftWidth: 0,\n borderRadius: 0,\n backgroundColor: 'transparent',\n borderColor: themeVariables.buttonGrpBorderColor\n }\n } as WmButtonStyles);\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,wCA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AACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC5C,CAAC,CAAC"}
@@ -3,11 +3,9 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
3
3
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
4
4
  function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
5
5
  import React from 'react';
6
- import { Animated, Easing, Text, Image, View } from 'react-native';
6
+ import { Animated, Easing, Text } from 'react-native';
7
7
  import { FontAwesome } from '@expo/vector-icons';
8
8
  import { BaseComponent, BaseComponentState } from '@wavemaker/app-rn-runtime/core/base.component';
9
- import { isFullPathUrl } from '@wavemaker/app-rn-runtime/core/utils';
10
- import { AccessibilityWidgetType, getAccessibilityProps } from '@wavemaker/app-rn-runtime/core/accessibility';
11
9
  import WmIconProps from './icon.props';
12
10
  import { DEFAULT_CLASS } from './icon.styles';
13
11
  import WavIcon from './wavicon/wavicon.component';
@@ -30,7 +28,6 @@ export default class WmIcon extends BaseComponent {
30
28
  _defineProperty(this, "spinValue", new Animated.Value(0));
31
29
  _defineProperty(this, "pulseValue", new Animated.Value(0));
32
30
  _defineProperty(this, "stopAnimation", true);
33
- _defineProperty(this, "_iconSource", null);
34
31
  }
35
32
  getIconDef(iconClass) {
36
33
  const iconDef = {
@@ -114,63 +111,15 @@ export default class WmIcon extends BaseComponent {
114
111
  height: this.props.skeletonheight || this.props.iconsize || this.styles.root.height
115
112
  });
116
113
  }
117
- getElementToShow(props, iconSrc) {
118
- const {
119
- iconmargin,
120
- iconheight,
121
- iconwidth
122
- } = props;
123
- let width, height;
124
- let elementToshow, source;
125
- if (iconwidth) width = iconwidth;else if (iconheight) width = iconheight;else width = 12;
126
- if (iconheight) height = iconheight;else if (iconwidth) height = iconwidth;else height = 12;
127
- if (isFullPathUrl(iconSrc)) {
128
- source = {
129
- uri: iconSrc
130
- };
131
- } else {
132
- source = iconSrc;
133
- }
134
- elementToshow = /*#__PURE__*/React.createElement(Image, {
135
- testID: this.getTestId('icon'),
136
- style: {
137
- margin: iconmargin ?? 0,
138
- height: height,
139
- width: width
140
- },
141
- source: source
142
- });
143
- return elementToshow;
144
- }
145
- loadIcon(iconImage) {
146
- if (!iconImage || !this.loadAsset) {
147
- return null;
148
- }
149
- const iconImageSrc = this.loadAsset(iconImage);
150
- if (iconImageSrc && typeof iconImageSrc !== 'function') {
151
- return iconImageSrc;
152
- }
153
- return null;
154
- }
155
114
  renderIcon(props) {
156
- let iconJsx = null;
157
- this._iconSource = this._iconSource || this.loadIcon(props.iconurl);
158
- const iconSrc = this._iconSource;
159
- if (iconSrc) {
160
- return this.getElementToShow(props, iconSrc);
161
- }
162
115
  const iconDef = this.state.iconDef;
163
116
  if (!iconDef) {
164
117
  return null;
165
118
  }
166
- const {
167
- root,
168
- text,
169
- icon
170
- } = this.styles;
119
+ let icon = null;
171
120
  const style = [{
172
- color: root.color || text.color
173
- }, icon, {
121
+ color: this.styles.root.color || this.styles.text.color
122
+ }, this.styles.icon, {
174
123
  transform: [{
175
124
  rotate: iconDef.rotate
176
125
  }]
@@ -179,7 +128,7 @@ export default class WmIcon extends BaseComponent {
179
128
  const iconSize = props.iconsize || this.styles.root.fontSize || this.styles.text.fontSize || iconDef.size;
180
129
  if (props.show && iconDef && iconDef.isFontAwesome) {
181
130
  //@ts-ignore type information is not matching
182
- iconJsx = /*#__PURE__*/React.createElement(FontAwesome, {
131
+ icon = /*#__PURE__*/React.createElement(FontAwesome, {
183
132
  name: customIcon ? '' : iconDef.type,
184
133
  style: style,
185
134
  size: iconSize
@@ -195,13 +144,13 @@ export default class WmIcon extends BaseComponent {
195
144
  return null;
196
145
  }
197
146
  //@ts-ignore type information is not matching
198
- iconJsx = WMCustomIcon ? /*#__PURE__*/React.createElement(WMCustomIcon, {
147
+ icon = WMCustomIcon ? /*#__PURE__*/React.createElement(WMCustomIcon, {
199
148
  name: customIcon ? '' : iconDef.type,
200
149
  style: style,
201
150
  size: iconSize
202
151
  }, customIcon) : null;
203
152
  }
204
- if (iconJsx && iconDef.animation === 'spin') {
153
+ if (icon && iconDef.animation === 'spin') {
205
154
  const rotate = this.spinValue.interpolate({
206
155
  inputRange: [0, 1],
207
156
  outputRange: ['0deg', '360deg']
@@ -214,8 +163,8 @@ export default class WmIcon extends BaseComponent {
214
163
  this.stopAnimation = false;
215
164
  return /*#__PURE__*/React.createElement(Animated.View, {
216
165
  style: animation
217
- }, iconJsx);
218
- } else if (iconJsx && iconDef.animation === 'pulse') {
166
+ }, icon);
167
+ } else if (icon && iconDef.animation === 'pulse') {
219
168
  const opacity = this.spinValue.interpolate({
220
169
  inputRange: [0, 1],
221
170
  outputRange: [0, 1]
@@ -226,18 +175,17 @@ export default class WmIcon extends BaseComponent {
226
175
  this.stopAnimation = false;
227
176
  return /*#__PURE__*/React.createElement(Animated.View, {
228
177
  style: animation
229
- }, iconJsx);
178
+ }, icon);
230
179
  } else {
231
180
  this.stopAnimation = true;
232
181
  }
233
- return /*#__PURE__*/React.createElement(View, getAccessibilityProps(AccessibilityWidgetType.ICON, this.props), iconJsx);
182
+ return icon;
234
183
  }
235
184
  renderWidget(props) {
236
185
  let icon = this.renderIcon(props);
237
186
  let iterationCount = props.iterationcount ? props.iterationcount != 'infinite' ? parseInt(props.iterationcount) : 'infinite' : undefined;
238
187
  return /*#__PURE__*/React.createElement(Tappable, _extends({
239
- target: this,
240
- rippleColor: this.styles.root.rippleColor
188
+ target: this
241
189
  }, this.getTestPropsForAction()), /*#__PURE__*/React.createElement(Animatedview, {
242
190
  entryanimation: props.animation,
243
191
  style: this.styles.root,