@hipay/hipay-material-ui 1.0.0-beta.18 → 1.0.0-beta.2

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 (402) hide show
  1. package/HiCheckbox/HiCheckbox.js +1 -4
  2. package/HiChip/HiChip.js +4 -4
  3. package/HiChip/HiChipSwitch.js +4 -11
  4. package/HiColoredLabel/HiColoredLabel.js +3 -9
  5. package/HiDatePicker/HiDatePicker.js +30 -34
  6. package/HiDatePicker/HiDateRangePicker.js +33 -76
  7. package/HiDatePicker/HiDateRangeSelector.js +13 -33
  8. package/HiDatePicker/ListPicker.js +7 -32
  9. package/HiDatePicker/Overlays/CustomOverlayLayout.js +1 -3
  10. package/HiDatePicker/Overlays/MonthPickerOverlay.js +1 -5
  11. package/HiDatePicker/Overlays/Overlay.js +4 -22
  12. package/HiDatePicker/Overlays/YearPickerOverlay.js +1 -2
  13. package/HiDatePicker/stylesheet.js +0 -7
  14. package/HiForm/HiFormControl.js +31 -39
  15. package/HiForm/HiInput.js +18 -39
  16. package/HiForm/HiSearchField.js +2 -2
  17. package/HiForm/index.js +0 -18
  18. package/HiPins/HiPins.js +1 -0
  19. package/HiSelect/HiSelect.js +353 -400
  20. package/HiSelect/HiSelectField.js +6 -8
  21. package/HiSelect/HiSuggestSelect.js +47 -27
  22. package/HiSelect/HiSuggestSelectField.js +80 -88
  23. package/HiSelect/SelectInput.js +23 -34
  24. package/HiSelectableList/HiSelectableList.js +3 -9
  25. package/HiSelectableList/HiSelectableListItem.js +55 -96
  26. package/HiSwitch/HiSwitchState.js +1 -1
  27. package/HiSwitch/index.js +0 -6
  28. package/HiTable/BodyCellBuilder.js +97 -97
  29. package/HiTable/BodyCells/CellCountry.js +36 -11
  30. package/HiTable/BodyCells/CellIcon.js +20 -29
  31. package/HiTable/BodyCells/CellImage.js +22 -43
  32. package/HiTable/BodyCells/CellLayout.js +19 -25
  33. package/HiTable/BodyCells/CellNumeric.js +2 -7
  34. package/HiTable/BodyCells/CellSentinel.js +17 -26
  35. package/HiTable/BodyCells/CellStatus.js +2 -6
  36. package/HiTable/BodyCells/CellText.js +1 -2
  37. package/HiTable/BodyCells/CellThirdPartySecurity.js +22 -45
  38. package/HiTable/BodyRow.js +57 -78
  39. package/HiTable/ColumnFilter.js +15 -28
  40. package/HiTable/HeaderCell.js +16 -20
  41. package/HiTable/HiTable.js +11 -61
  42. package/HiTable/HiTableBody.js +14 -46
  43. package/HiTable/HiTableContextMenu.js +3 -7
  44. package/HiTable/HiTableFooterScroll.js +1 -1
  45. package/HiTable/HiTableHead.js +7 -24
  46. package/HiTable/OrderColumns.js +2 -6
  47. package/HiTopBar/HiTopBar.js +117 -37
  48. package/es/HiCheckbox/HiCheckbox.js +1 -4
  49. package/es/HiChip/HiChip.js +4 -4
  50. package/es/HiChip/HiChipSwitch.js +4 -11
  51. package/es/HiColoredLabel/HiColoredLabel.js +4 -9
  52. package/es/HiDatePicker/HiDatePicker.js +25 -30
  53. package/es/HiDatePicker/HiDateRangePicker.js +32 -72
  54. package/es/HiDatePicker/HiDateRangeSelector.js +14 -34
  55. package/es/HiDatePicker/ListPicker.js +20 -39
  56. package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +1 -3
  57. package/es/HiDatePicker/Overlays/MonthPickerOverlay.js +1 -5
  58. package/es/HiDatePicker/Overlays/Overlay.js +4 -18
  59. package/es/HiDatePicker/Overlays/YearPickerOverlay.js +1 -2
  60. package/es/HiDatePicker/stylesheet.js +0 -7
  61. package/es/HiForm/HiFormControl.js +18 -32
  62. package/es/HiForm/HiInput.js +17 -34
  63. package/es/HiForm/HiSearchField.js +2 -2
  64. package/es/HiForm/index.js +1 -3
  65. package/es/HiPins/HiPins.js +1 -0
  66. package/es/HiSelect/HiSelect.js +324 -375
  67. package/es/HiSelect/HiSelectField.js +7 -9
  68. package/es/HiSelect/HiSuggestSelect.js +39 -26
  69. package/es/HiSelect/HiSuggestSelectField.js +69 -77
  70. package/es/HiSelect/SelectInput.js +23 -44
  71. package/es/HiSelectableList/HiSelectableList.js +4 -10
  72. package/es/HiSelectableList/HiSelectableListItem.js +55 -91
  73. package/es/HiSwitch/HiSwitchState.js +1 -1
  74. package/es/HiSwitch/index.js +0 -1
  75. package/es/HiTable/BodyCellBuilder.js +98 -96
  76. package/es/HiTable/BodyCells/CellCountry.js +35 -10
  77. package/es/HiTable/BodyCells/CellIcon.js +9 -18
  78. package/es/HiTable/BodyCells/CellImage.js +23 -42
  79. package/es/HiTable/BodyCells/CellLayout.js +21 -27
  80. package/es/HiTable/BodyCells/CellNumeric.js +2 -6
  81. package/es/HiTable/BodyCells/CellSentinel.js +9 -20
  82. package/es/HiTable/BodyCells/CellStatus.js +2 -6
  83. package/es/HiTable/BodyCells/CellText.js +1 -2
  84. package/es/HiTable/BodyCells/CellThirdPartySecurity.js +18 -42
  85. package/es/HiTable/BodyRow.js +56 -79
  86. package/es/HiTable/ColumnFilter.js +9 -15
  87. package/es/HiTable/HeaderCell.js +16 -20
  88. package/es/HiTable/HiTable.js +12 -59
  89. package/es/HiTable/HiTableBody.js +11 -42
  90. package/es/HiTable/HiTableContextMenu.js +3 -7
  91. package/es/HiTable/HiTableFooterScroll.js +1 -1
  92. package/es/HiTable/HiTableHead.js +7 -19
  93. package/es/HiTable/OrderColumns.js +2 -6
  94. package/es/HiTopBar/HiTopBar.js +108 -40
  95. package/es/styles/createHiMuiTheme.js +0 -11
  96. package/es/utils/hiHelpers.js +5 -6
  97. package/index.es.js +1 -1
  98. package/index.js +1 -1
  99. package/package.json +44 -45
  100. package/styles/createHiMuiTheme.js +0 -11
  101. package/umd/hipay-material-ui.development.js +43603 -87235
  102. package/umd/hipay-material-ui.production.min.js +5 -5
  103. package/utils/hiHelpers.js +4 -6
  104. package/HI-CHANGELOG.md +0 -58
  105. package/HiAlertModal/HiAlertModal.js +0 -247
  106. package/HiAlertModal/index.js +0 -16
  107. package/HiBreadcrumb/HiBreadcrumb.js +0 -149
  108. package/HiBreadcrumb/HiStep.js +0 -159
  109. package/HiBreadcrumb/HiStepConnector.js +0 -207
  110. package/HiBreadcrumb/HiStepContent.js +0 -122
  111. package/HiBreadcrumb/HiStepIcon.js +0 -191
  112. package/HiBreadcrumb/HiStepLabel.js +0 -248
  113. package/HiBreadcrumb/HiStepper.js +0 -106
  114. package/HiBreadcrumb/index.js +0 -16
  115. package/HiDotsStepper/HiDot.js +0 -151
  116. package/HiDotsStepper/HiDotsStepper.js +0 -146
  117. package/HiDotsStepper/index.js +0 -16
  118. package/HiExpansionPanel/HiExpansionPanel.js +0 -231
  119. package/HiExpansionPanel/index.js +0 -16
  120. package/HiForm/HiAddressField.js +0 -204
  121. package/HiForm/HiSlider.js +0 -399
  122. package/HiPdfReader/HiPdfReader.js +0 -282
  123. package/HiPdfReader/index.js +0 -16
  124. package/HiTable/HiTableFooter.js +0 -131
  125. package/es/HiAlertModal/HiAlertModal.js +0 -189
  126. package/es/HiAlertModal/index.js +0 -1
  127. package/es/HiBreadcrumb/HiBreadcrumb.js +0 -81
  128. package/es/HiBreadcrumb/HiStep.js +0 -94
  129. package/es/HiBreadcrumb/HiStepConnector.js +0 -143
  130. package/es/HiBreadcrumb/HiStepContent.js +0 -63
  131. package/es/HiBreadcrumb/HiStepIcon.js +0 -149
  132. package/es/HiBreadcrumb/HiStepLabel.js +0 -197
  133. package/es/HiBreadcrumb/HiStepper.js +0 -46
  134. package/es/HiBreadcrumb/index.js +0 -1
  135. package/es/HiDotsStepper/HiDot.js +0 -92
  136. package/es/HiDotsStepper/HiDotsStepper.js +0 -83
  137. package/es/HiDotsStepper/index.js +0 -1
  138. package/es/HiExpansionPanel/HiExpansionPanel.js +0 -170
  139. package/es/HiExpansionPanel/index.js +0 -1
  140. package/es/HiForm/HiAddressField.js +0 -142
  141. package/es/HiForm/HiSlider.js +0 -309
  142. package/es/HiPdfReader/HiPdfReader.js +0 -198
  143. package/es/HiPdfReader/index.js +0 -1
  144. package/es/HiTable/HiTableFooter.js +0 -74
  145. package/hmu/images/countries/ad.svg +0 -151
  146. package/hmu/images/countries/ae.svg +0 -6
  147. package/hmu/images/countries/af.svg +0 -83
  148. package/hmu/images/countries/ag.svg +0 -15
  149. package/hmu/images/countries/ai.svg +0 -767
  150. package/hmu/images/countries/al.svg +0 -5
  151. package/hmu/images/countries/am.svg +0 -5
  152. package/hmu/images/countries/ao.svg +0 -13
  153. package/hmu/images/countries/aq.svg +0 -6
  154. package/hmu/images/countries/ar.svg +0 -32
  155. package/hmu/images/countries/as.svg +0 -33
  156. package/hmu/images/countries/at.svg +0 -6
  157. package/hmu/images/countries/au.svg +0 -9
  158. package/hmu/images/countries/aw.svg +0 -186
  159. package/hmu/images/countries/ax.svg +0 -18
  160. package/hmu/images/countries/az.svg +0 -8
  161. package/hmu/images/countries/ba.svg +0 -12
  162. package/hmu/images/countries/bb.svg +0 -6
  163. package/hmu/images/countries/bd.svg +0 -4
  164. package/hmu/images/countries/be.svg +0 -7
  165. package/hmu/images/countries/bf.svg +0 -7
  166. package/hmu/images/countries/bg.svg +0 -7
  167. package/hmu/images/countries/bh.svg +0 -11
  168. package/hmu/images/countries/bi.svg +0 -15
  169. package/hmu/images/countries/bj.svg +0 -14
  170. package/hmu/images/countries/bl.svg +0 -7
  171. package/hmu/images/countries/bm.svg +0 -99
  172. package/hmu/images/countries/bn.svg +0 -36
  173. package/hmu/images/countries/bo.svg +0 -686
  174. package/hmu/images/countries/bq.svg +0 -5
  175. package/hmu/images/countries/br.svg +0 -45
  176. package/hmu/images/countries/bs.svg +0 -13
  177. package/hmu/images/countries/bt.svg +0 -89
  178. package/hmu/images/countries/bv.svg +0 -13
  179. package/hmu/images/countries/bw.svg +0 -7
  180. package/hmu/images/countries/by.svg +0 -61
  181. package/hmu/images/countries/bz.svg +0 -146
  182. package/hmu/images/countries/ca.svg +0 -4
  183. package/hmu/images/countries/cc.svg +0 -19
  184. package/hmu/images/countries/cd.svg +0 -5
  185. package/hmu/images/countries/cf.svg +0 -15
  186. package/hmu/images/countries/cg.svg +0 -12
  187. package/hmu/images/countries/ch.svg +0 -9
  188. package/hmu/images/countries/ci.svg +0 -7
  189. package/hmu/images/countries/ck.svg +0 -9
  190. package/hmu/images/countries/cl.svg +0 -13
  191. package/hmu/images/countries/cm.svg +0 -15
  192. package/hmu/images/countries/cn.svg +0 -11
  193. package/hmu/images/countries/co.svg +0 -7
  194. package/hmu/images/countries/cr.svg +0 -7
  195. package/hmu/images/countries/cu.svg +0 -13
  196. package/hmu/images/countries/cv.svg +0 -13
  197. package/hmu/images/countries/cw.svg +0 -14
  198. package/hmu/images/countries/cx.svg +0 -15
  199. package/hmu/images/countries/cy.svg +0 -6
  200. package/hmu/images/countries/cz.svg +0 -12
  201. package/hmu/images/countries/de.svg +0 -5
  202. package/hmu/images/countries/dj.svg +0 -13
  203. package/hmu/images/countries/dk.svg +0 -5
  204. package/hmu/images/countries/dm.svg +0 -152
  205. package/hmu/images/countries/do.svg +0 -6745
  206. package/hmu/images/countries/dz.svg +0 -5
  207. package/hmu/images/countries/ec.svg +0 -141
  208. package/hmu/images/countries/ee.svg +0 -7
  209. package/hmu/images/countries/eg.svg +0 -38
  210. package/hmu/images/countries/eh.svg +0 -15
  211. package/hmu/images/countries/er.svg +0 -8
  212. package/hmu/images/countries/es-ct.svg +0 -4
  213. package/hmu/images/countries/es.svg +0 -581
  214. package/hmu/images/countries/et.svg +0 -14
  215. package/hmu/images/countries/eu.svg +0 -28
  216. package/hmu/images/countries/fi.svg +0 -5
  217. package/hmu/images/countries/fj.svg +0 -124
  218. package/hmu/images/countries/fk.svg +0 -90
  219. package/hmu/images/countries/fm.svg +0 -11
  220. package/hmu/images/countries/fo.svg +0 -12
  221. package/hmu/images/countries/fr.svg +0 -7
  222. package/hmu/images/countries/ga.svg +0 -7
  223. package/hmu/images/countries/gb-eng.svg +0 -5
  224. package/hmu/images/countries/gb-nir.svg +0 -137
  225. package/hmu/images/countries/gb-sct.svg +0 -4
  226. package/hmu/images/countries/gb-wls.svg +0 -9
  227. package/hmu/images/countries/gb.svg +0 -15
  228. package/hmu/images/countries/gd.svg +0 -27
  229. package/hmu/images/countries/ge.svg +0 -6
  230. package/hmu/images/countries/gf.svg +0 -5
  231. package/hmu/images/countries/gg.svg +0 -9
  232. package/hmu/images/countries/gh.svg +0 -6
  233. package/hmu/images/countries/gi.svg +0 -33
  234. package/hmu/images/countries/gl.svg +0 -4
  235. package/hmu/images/countries/gm.svg +0 -14
  236. package/hmu/images/countries/gn.svg +0 -7
  237. package/hmu/images/countries/gp.svg +0 -7
  238. package/hmu/images/countries/gq.svg +0 -23
  239. package/hmu/images/countries/gr.svg +0 -22
  240. package/hmu/images/countries/gs.svg +0 -205
  241. package/hmu/images/countries/gt.svg +0 -204
  242. package/hmu/images/countries/gu.svg +0 -39
  243. package/hmu/images/countries/gw.svg +0 -13
  244. package/hmu/images/countries/gy.svg +0 -9
  245. package/hmu/images/countries/hk.svg +0 -32
  246. package/hmu/images/countries/hm.svg +0 -9
  247. package/hmu/images/countries/hn.svg +0 -18
  248. package/hmu/images/countries/hr.svg +0 -59
  249. package/hmu/images/countries/ht.svg +0 -122
  250. package/hmu/images/countries/hu.svg +0 -7
  251. package/hmu/images/countries/id.svg +0 -6
  252. package/hmu/images/countries/ie.svg +0 -7
  253. package/hmu/images/countries/il.svg +0 -14
  254. package/hmu/images/countries/im.svg +0 -36
  255. package/hmu/images/countries/in.svg +0 -25
  256. package/hmu/images/countries/io.svg +0 -148
  257. package/hmu/images/countries/iq.svg +0 -10
  258. package/hmu/images/countries/ir.svg +0 -219
  259. package/hmu/images/countries/is.svg +0 -12
  260. package/hmu/images/countries/it.svg +0 -7
  261. package/hmu/images/countries/je.svg +0 -32
  262. package/hmu/images/countries/jm.svg +0 -8
  263. package/hmu/images/countries/jo.svg +0 -16
  264. package/hmu/images/countries/jp.svg +0 -11
  265. package/hmu/images/countries/ke.svg +0 -23
  266. package/hmu/images/countries/kg.svg +0 -15
  267. package/hmu/images/countries/kh.svg +0 -69
  268. package/hmu/images/countries/ki.svg +0 -36
  269. package/hmu/images/countries/km.svg +0 -16
  270. package/hmu/images/countries/kn.svg +0 -14
  271. package/hmu/images/countries/kp.svg +0 -15
  272. package/hmu/images/countries/kr.svg +0 -24
  273. package/hmu/images/countries/kw.svg +0 -13
  274. package/hmu/images/countries/ky.svg +0 -63
  275. package/hmu/images/countries/kz.svg +0 -23
  276. package/hmu/images/countries/la.svg +0 -12
  277. package/hmu/images/countries/lb.svg +0 -15
  278. package/hmu/images/countries/lc.svg +0 -8
  279. package/hmu/images/countries/li.svg +0 -43
  280. package/hmu/images/countries/lk.svg +0 -22
  281. package/hmu/images/countries/lr.svg +0 -14
  282. package/hmu/images/countries/ls.svg +0 -8
  283. package/hmu/images/countries/lt.svg +0 -7
  284. package/hmu/images/countries/lu.svg +0 -5
  285. package/hmu/images/countries/lv.svg +0 -6
  286. package/hmu/images/countries/ly.svg +0 -13
  287. package/hmu/images/countries/ma.svg +0 -4
  288. package/hmu/images/countries/mc.svg +0 -6
  289. package/hmu/images/countries/md.svg +0 -72
  290. package/hmu/images/countries/me.svg +0 -118
  291. package/hmu/images/countries/mf.svg +0 -7
  292. package/hmu/images/countries/mg.svg +0 -7
  293. package/hmu/images/countries/mh.svg +0 -7
  294. package/hmu/images/countries/mk.svg +0 -5
  295. package/hmu/images/countries/ml.svg +0 -7
  296. package/hmu/images/countries/mm.svg +0 -16
  297. package/hmu/images/countries/mn.svg +0 -13
  298. package/hmu/images/countries/mo.svg +0 -9
  299. package/hmu/images/countries/mp.svg +0 -86
  300. package/hmu/images/countries/mq.svg +0 -7
  301. package/hmu/images/countries/mr.svg +0 -6
  302. package/hmu/images/countries/ms.svg +0 -39
  303. package/hmu/images/countries/mt.svg +0 -49
  304. package/hmu/images/countries/mu.svg +0 -8
  305. package/hmu/images/countries/mv.svg +0 -6
  306. package/hmu/images/countries/mw.svg +0 -10
  307. package/hmu/images/countries/mx.svg +0 -385
  308. package/hmu/images/countries/my.svg +0 -15
  309. package/hmu/images/countries/mz.svg +0 -21
  310. package/hmu/images/countries/na.svg +0 -16
  311. package/hmu/images/countries/nc.svg +0 -7
  312. package/hmu/images/countries/ne.svg +0 -6
  313. package/hmu/images/countries/nf.svg +0 -9
  314. package/hmu/images/countries/ng.svg +0 -6
  315. package/hmu/images/countries/ni.svg +0 -131
  316. package/hmu/images/countries/nl.svg +0 -7
  317. package/hmu/images/countries/no.svg +0 -7
  318. package/hmu/images/countries/np.svg +0 -14
  319. package/hmu/images/countries/nr.svg +0 -12
  320. package/hmu/images/countries/nu.svg +0 -26
  321. package/hmu/images/countries/nz.svg +0 -41
  322. package/hmu/images/countries/om.svg +0 -116
  323. package/hmu/images/countries/pa.svg +0 -14
  324. package/hmu/images/countries/pe.svg +0 -279
  325. package/hmu/images/countries/pf.svg +0 -19
  326. package/hmu/images/countries/pg.svg +0 -9
  327. package/hmu/images/countries/ph.svg +0 -28
  328. package/hmu/images/countries/pk.svg +0 -15
  329. package/hmu/images/countries/pl.svg +0 -6
  330. package/hmu/images/countries/pm.svg +0 -7
  331. package/hmu/images/countries/pn.svg +0 -62
  332. package/hmu/images/countries/pr.svg +0 -13
  333. package/hmu/images/countries/ps.svg +0 -15
  334. package/hmu/images/countries/pt.svg +0 -57
  335. package/hmu/images/countries/pw.svg +0 -11
  336. package/hmu/images/countries/py.svg +0 -157
  337. package/hmu/images/countries/qa.svg +0 -4
  338. package/hmu/images/countries/re.svg +0 -7
  339. package/hmu/images/countries/ro.svg +0 -7
  340. package/hmu/images/countries/rs.svg +0 -292
  341. package/hmu/images/countries/ru.svg +0 -7
  342. package/hmu/images/countries/rw.svg +0 -13
  343. package/hmu/images/countries/sa.svg +0 -26
  344. package/hmu/images/countries/sb.svg +0 -13
  345. package/hmu/images/countries/sc.svg +0 -14
  346. package/hmu/images/countries/sd.svg +0 -13
  347. package/hmu/images/countries/se.svg +0 -16
  348. package/hmu/images/countries/sg.svg +0 -13
  349. package/hmu/images/countries/sh.svg +0 -74
  350. package/hmu/images/countries/si.svg +0 -18
  351. package/hmu/images/countries/sj.svg +0 -7
  352. package/hmu/images/countries/sk.svg +0 -9
  353. package/hmu/images/countries/sl.svg +0 -7
  354. package/hmu/images/countries/sm.svg +0 -91
  355. package/hmu/images/countries/sn.svg +0 -8
  356. package/hmu/images/countries/so.svg +0 -11
  357. package/hmu/images/countries/sr.svg +0 -6
  358. package/hmu/images/countries/ss.svg +0 -8
  359. package/hmu/images/countries/st.svg +0 -16
  360. package/hmu/images/countries/sv.svg +0 -618
  361. package/hmu/images/countries/sx.svg +0 -56
  362. package/hmu/images/countries/sy.svg +0 -6
  363. package/hmu/images/countries/sz.svg +0 -45
  364. package/hmu/images/countries/tc.svg +0 -67
  365. package/hmu/images/countries/td.svg +0 -7
  366. package/hmu/images/countries/tf.svg +0 -15
  367. package/hmu/images/countries/tg.svg +0 -14
  368. package/hmu/images/countries/th.svg +0 -7
  369. package/hmu/images/countries/tj.svg +0 -22
  370. package/hmu/images/countries/tk.svg +0 -5
  371. package/hmu/images/countries/tl.svg +0 -13
  372. package/hmu/images/countries/tm.svg +0 -213
  373. package/hmu/images/countries/tn.svg +0 -13
  374. package/hmu/images/countries/to.svg +0 -10
  375. package/hmu/images/countries/tr.svg +0 -8
  376. package/hmu/images/countries/tt.svg +0 -5
  377. package/hmu/images/countries/tv.svg +0 -27
  378. package/hmu/images/countries/tw.svg +0 -14
  379. package/hmu/images/countries/tz.svg +0 -13
  380. package/hmu/images/countries/ua.svg +0 -6
  381. package/hmu/images/countries/ug.svg +0 -30
  382. package/hmu/images/countries/um.svg +0 -23
  383. package/hmu/images/countries/un.svg +0 -16
  384. package/hmu/images/countries/us.svg +0 -12
  385. package/hmu/images/countries/uy.svg +0 -28
  386. package/hmu/images/countries/uz.svg +0 -30
  387. package/hmu/images/countries/va.svg +0 -483
  388. package/hmu/images/countries/vc.svg +0 -8
  389. package/hmu/images/countries/ve.svg +0 -26
  390. package/hmu/images/countries/vg.svg +0 -133
  391. package/hmu/images/countries/vi.svg +0 -31
  392. package/hmu/images/countries/vn.svg +0 -11
  393. package/hmu/images/countries/vu.svg +0 -18
  394. package/hmu/images/countries/wf.svg +0 -7
  395. package/hmu/images/countries/ws.svg +0 -7
  396. package/hmu/images/countries/ye.svg +0 -7
  397. package/hmu/images/countries/yt.svg +0 -7
  398. package/hmu/images/countries/za.svg +0 -17
  399. package/hmu/images/countries/zm.svg +0 -27
  400. package/hmu/images/countries/zw.svg +0 -21
  401. package/hmu/images/hipay-white-logo.svg +0 -42
  402. package/hmu/images/logo_visa_75wx45h.gif +0 -0
@@ -6,8 +6,6 @@ import React from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import { formatDate, parseDate } from 'react-day-picker/moment';
8
8
  import DayPickerInput from 'react-day-picker/DayPickerInput';
9
- import classNames from 'classnames';
10
-
11
9
  import withStyles from '../styles/withStyles';
12
10
  import { capitalizeFirstLetter } from '../utils/helpers';
13
11
  import Caption from './Caption';
@@ -25,14 +23,11 @@ class HiDateRangePicker extends React.Component {
25
23
  constructor(props) {
26
24
  super();
27
25
 
28
- this.handleDayPickerFocus = name => () => {
29
- this.setState({ focusedInput: name });
30
- };
31
-
32
26
  this.state = {
27
+ fromOpenedPanel: 'calendar',
33
28
  fromCurrentMonth: props.from ? props.from : new Date(),
34
- toCurrentMonth: props.to ? props.to : new Date(),
35
- focusedInput: ''
29
+ toOpenedPanel: 'calendar',
30
+ toCurrentMonth: props.to ? props.to : new Date()
36
31
  };
37
32
 
38
33
  this.handleReset = this.handleReset.bind(this);
@@ -56,8 +51,6 @@ class HiDateRangePicker extends React.Component {
56
51
  this.handleYearClick = this.handleYearClick.bind(this);
57
52
  this.handleYearClickFrom = this.handleYearClickFrom.bind(this);
58
53
  this.handleYearClickTo = this.handleYearClickTo.bind(this);
59
- this.handleDayPickerFocus = this.handleDayPickerFocus.bind(this);
60
- this.handleDayPickerBlur = this.handleDayPickerBlur.bind(this);
61
54
 
62
55
  this.openPanel = this.openPanel.bind(this);
63
56
 
@@ -112,11 +105,11 @@ class HiDateRangePicker extends React.Component {
112
105
  // else focus current input
113
106
  if (!this.props.enableTime) {
114
107
  if (day instanceof Date) {
115
- if (name === 'from' && this.toInput) {
116
- this.toInput.getInput().focus();
117
- } else if (name === 'to') {
118
- document.activeElement.blur();
119
- }
108
+ this.timeout = setTimeout(() => {
109
+ if (this.toInput && this.toInput.getInput()) {
110
+ this.toInput.getInput().focus();
111
+ }
112
+ }, 0);
120
113
  }
121
114
  } else {
122
115
  this.timeout = setTimeout(() => {
@@ -206,18 +199,12 @@ class HiDateRangePicker extends React.Component {
206
199
  this.props.onChange(name, date);
207
200
  if (name === 'from' && precision === 'minute') {
208
201
  this.fromInput.hideDayPicker();
209
- this.toInput.getInput().focus();
210
202
  this.toInput.showDayPicker();
211
203
  } else if (name === 'to' && precision === 'minute') {
212
204
  this.toInput.hideDayPicker();
213
- document.activeElement.blur();
214
205
  }
215
206
  }
216
207
 
217
- handleDayPickerBlur() {
218
- this.setState({ focusedInput: '' });
219
- }
220
-
221
208
  openPanel(name, panel) {
222
209
  this.setState({
223
210
  [`${name}OpenedPanel`]: panel
@@ -250,10 +237,9 @@ class HiDateRangePicker extends React.Component {
250
237
  return this.renderNavbar('to', propsNavbar);
251
238
  }
252
239
 
253
- renderOverlay(name, propsOverlay, staticPosition) {
240
+ renderOverlay(name, propsOverlay) {
254
241
  const rangeOverlayProps = _extends({}, propsOverlay, {
255
- side: name,
256
- staticPosition
242
+ side: name
257
243
  });
258
244
 
259
245
  switch (this.state[`${name}OpenedPanel`]) {
@@ -269,10 +255,10 @@ class HiDateRangePicker extends React.Component {
269
255
  }
270
256
  }
271
257
  renderOverlayFrom(propsOverlay) {
272
- return this.renderOverlay('from', propsOverlay, this.props.staticPosition);
258
+ return this.renderOverlay('from', propsOverlay);
273
259
  }
274
260
  renderOverlayTo(propsOverlay) {
275
- return this.renderOverlay('to', propsOverlay, this.props.staticPosition);
261
+ return this.renderOverlay('to', propsOverlay);
276
262
  }
277
263
 
278
264
  renderMonthPickerOverlay(name, propsOverlay) {
@@ -327,10 +313,9 @@ class HiDateRangePicker extends React.Component {
327
313
  onReset,
328
314
  to,
329
315
  translations,
330
- id,
331
- staticPosition
316
+ id
332
317
  } = _props,
333
- props = _objectWithoutProperties(_props, ['classes', 'disabledDays', 'disablePastDays', 'disableFutureDays', 'enableTime', 'labelFrom', 'labelTo', 'locale', 'format', 'from', 'minimumDate', 'onReset', 'to', 'translations', 'id', 'staticPosition']);
318
+ props = _objectWithoutProperties(_props, ['classes', 'disabledDays', 'disablePastDays', 'disableFutureDays', 'enableTime', 'labelFrom', 'labelTo', 'locale', 'format', 'from', 'minimumDate', 'onReset', 'to', 'translations', 'id']);
334
319
 
335
320
  const { fromCurrentMonth, toCurrentMonth } = this.state;
336
321
 
@@ -442,52 +427,32 @@ class HiDateRangePicker extends React.Component {
442
427
  id: `${id}-to`
443
428
  });
444
429
 
445
- let fromClass = classNames({
446
- [classes.absolute]: staticPosition === true && this.state.focusedInput === 'to',
447
- [classes.dayPickerMargin]: staticPosition === true && this.state.focusedInput === 'to'
448
- });
449
- let toClass = classNames(classes.toInput, {
450
- [classes.absolute]: staticPosition === true && this.state.focusedInput === 'from'
451
- });
452
-
453
430
  return React.createElement(
454
431
  'div',
455
432
  { className: classes.root },
456
433
  React.createElement(
457
434
  'div',
458
- {
459
- className: classes.fromInput,
460
- onFocus: this.handleDayPickerFocus('from'),
461
- onBlur: this.handleDayPickerBlur
462
- },
463
- React.createElement(
464
- 'div',
465
- { className: fromClass },
466
- React.createElement(DayPickerInput, {
467
- ref: el => {
468
- this.fromInput = el;
469
- },
470
- value: from,
471
- hideOnDayClick: false,
472
- overlayComponent: this.renderOverlayFrom,
473
- dayPickerProps: fromDayPickerProps,
474
- component: HiTextField,
475
- inputProps: fromInputProps,
476
- format: enableTime ? `${format} HH:mm` : format,
477
- formatDate: formatDate,
478
- parseDate: parseDate,
479
- onDayChange: this.handleDayChangeFrom,
480
- placeholder: ''
481
- })
482
- )
435
+ { className: classes.fromInput },
436
+ React.createElement(DayPickerInput, {
437
+ ref: el => {
438
+ this.fromInput = el;
439
+ },
440
+ value: from,
441
+ hideOnDayClick: false,
442
+ overlayComponent: this.renderOverlayFrom,
443
+ dayPickerProps: fromDayPickerProps,
444
+ component: HiTextField,
445
+ inputProps: fromInputProps,
446
+ format: enableTime ? `${format} HH:mm` : format,
447
+ formatDate: formatDate,
448
+ parseDate: parseDate,
449
+ onDayChange: this.handleDayChangeFrom,
450
+ placeholder: ''
451
+ })
483
452
  ),
484
453
  React.createElement(
485
454
  'div',
486
- {
487
- className: toClass,
488
- onFocus: this.handleDayPickerFocus('to'),
489
- onBlur: this.handleDayPickerBlur
490
- },
455
+ { className: classes.toInput },
491
456
  React.createElement(DayPickerInput, {
492
457
  ref: el => {
493
458
  this.toInput = el;
@@ -513,7 +478,6 @@ HiDateRangePicker.defaultProps = {
513
478
  disabledDays: [],
514
479
  disablePastDays: false,
515
480
  disableFutureDays: false,
516
- staticPosition: false,
517
481
  enableTime: false,
518
482
  format: 'YYYY-DD-MM',
519
483
  labelFrom: 'Start',
@@ -589,10 +553,6 @@ HiDateRangePicker.propTypes = process.env.NODE_ENV !== "production" ? {
589
553
  * Callback au reset de l'input
590
554
  */
591
555
  onReset: PropTypes.func,
592
- /**
593
- * Si true, le calendrier sera dans une div static plutot que dans une popper absolute
594
- */
595
- staticPosition: PropTypes.bool,
596
556
  /**
597
557
  * Date de fin sélectionnée
598
558
  */
@@ -27,7 +27,7 @@ export function buildDateRangeOptionByKey(key, t, format) {
27
27
  type = 'primary-highlight';
28
28
  break;
29
29
  case 'cd':
30
- label = t.today;
30
+ label = t.last_24h;
31
31
  from = moment().subtract(1, 'day');
32
32
  to = moment();
33
33
  info = `${from.calendar()} ${t.to_now}`;
@@ -105,9 +105,7 @@ export const styles = theme => ({
105
105
  },
106
106
  dateRangePicker: {
107
107
  width: 'calc(100% + 8px)'
108
- },
109
- smSelect: {},
110
- smRangePicker: {}
108
+ }
111
109
  });
112
110
 
113
111
  class HiDateRangeSelector extends React.Component {
@@ -129,9 +127,6 @@ class HiDateRangeSelector extends React.Component {
129
127
  this.props.onChange('to', selectedOption.to.toDate());
130
128
  }
131
129
  }
132
- if (this.props.returnSelectValue === true) {
133
- this.props.onChange('period', value);
134
- }
135
130
  };
136
131
 
137
132
  this.state = {
@@ -176,11 +171,9 @@ class HiDateRangeSelector extends React.Component {
176
171
  required,
177
172
  to,
178
173
  translations,
179
- classes,
180
- selectProps,
181
- staticPosition
174
+ classes
182
175
  } = _props,
183
- props = _objectWithoutProperties(_props, ['disabled', 'enableTime', 'error', 'errorText', 'helperIcon', 'helperText', 'idRange', 'idSelect', 'label', 'from', 'onChange', 'required', 'to', 'translations', 'classes', 'selectProps', 'staticPosition']);
176
+ props = _objectWithoutProperties(_props, ['disabled', 'enableTime', 'error', 'errorText', 'helperIcon', 'helperText', 'idRange', 'idSelect', 'label', 'from', 'onChange', 'required', 'to', 'translations', 'classes']);
184
177
 
185
178
  const { selectedPreset } = this.state;
186
179
 
@@ -194,8 +187,8 @@ class HiDateRangeSelector extends React.Component {
194
187
  },
195
188
  React.createElement(
196
189
  Grid,
197
- { item: true, xs: 12, sm: 4, classes: { 'grid-sm-4': classes.smSelect } },
198
- React.createElement(HiSelectField, _extends({
190
+ { item: true, xs: 12, sm: 4 },
191
+ React.createElement(HiSelectField, {
199
192
  disabled: disabled,
200
193
  error: error,
201
194
  errorText: errorText,
@@ -210,13 +203,12 @@ class HiDateRangeSelector extends React.Component {
210
203
  translations: translations,
211
204
  value: selectedPreset,
212
205
  containerWidth: this.state.containerWidth,
213
- classes: { root: classes.dateSelect },
214
- staticPosition: staticPosition
215
- }, selectProps))
206
+ classes: { root: classes.dateSelect }
207
+ })
216
208
  ),
217
209
  React.createElement(
218
210
  Grid,
219
- { item: true, xs: 12, sm: 8, classes: { 'grid-sm-8': classes.smRangePicker } },
211
+ { item: true, xs: 12, sm: 8 },
220
212
  React.createElement(HiDateRangePicker, _extends({
221
213
  classes: { root: classes.dateRangePicker },
222
214
  id: idRange,
@@ -226,8 +218,7 @@ class HiDateRangeSelector extends React.Component {
226
218
  onChange: onChange,
227
219
  onReset: this.handleReset,
228
220
  disabled: disabled || selectedPreset !== 'custom',
229
- translations: translations,
230
- staticPosition: staticPosition
221
+ translations: translations
231
222
  }, props))
232
223
  )
233
224
  );
@@ -238,21 +229,22 @@ HiDateRangeSelector.defaultProps = {
238
229
  availableOptionKeys: ['cd', 'pd', 'cw', 'pw', 'cm', 'pm', 'cq', 'pq', 'cy', 'custom'],
239
230
  defaultPreset: 'cd',
240
231
  enableTime: false,
241
- returnSelectValue: false,
242
- staticPosition: false,
243
232
  locale: 'fr-FR',
244
233
  format: 'YYYY-DD-MM',
245
234
  translations: {
246
- today: 'Today',
235
+ today: 'today',
247
236
  hour: 'Hour',
248
237
  minute: 'Minute',
249
238
  month: 'Month',
250
239
  quarter: 'Quarter',
251
240
  week: 'Week',
252
241
  year: 'Year',
242
+
253
243
  days: 'days',
244
+
254
245
  custom_period: 'Custom Period',
255
246
  yesterday: 'Yesterday',
247
+ last_24h: 'Last 24h',
256
248
  to: 'to',
257
249
  to_now: 'to now',
258
250
  current_week: 'Current Week',
@@ -333,18 +325,6 @@ HiDateRangeSelector.propTypes = process.env.NODE_ENV !== "production" ? {
333
325
  * true si champs obligatoire
334
326
  */
335
327
  required: PropTypes.bool,
336
- /**
337
- * Retourne la valeur du select de la période au change du select
338
- */
339
- returnSelectValue: PropTypes.bool.isRequired,
340
- /**
341
- * Props passées au HiSelectField
342
- */
343
- selectProps: PropTypes.object,
344
- /**
345
- * Si true, le calendrier sera dans une div static plutot que dans une popper absolute
346
- */
347
- staticPosition: PropTypes.bool,
348
328
  /**
349
329
  * Date de fin sélectionnée
350
330
  */
@@ -2,7 +2,6 @@
2
2
 
3
3
  import React from 'react';
4
4
  import PropTypes from 'prop-types';
5
- import classNames from 'classnames';
6
5
  import { Scrollbars } from 'react-custom-scrollbars';
7
6
  import { MenuList, MenuItem } from 'material-ui/Menu';
8
7
  import withStyles from '../styles/withStyles';
@@ -19,27 +18,19 @@ export const styles = theme => ({
19
18
  },
20
19
  itemCentered: {
21
20
  margin: 'auto'
22
- },
23
- currentDateItem: {
24
- color: `${theme.palette.business.primary.normal} !important`
25
21
  }
26
22
  });
27
23
 
28
24
  class ListPicker extends React.PureComponent {
29
25
 
30
26
  componentDidMount() {
31
- if (this.position && this.scrollbars) {
32
- this.scrollbars.scrollTop((this.position - 2) * 40);
33
- } else if (this.props.initAtMiddleScroll && this.scrollbars) {
27
+ if (this.props.initAtMiddleScroll && this.scrollbars) {
34
28
  this.scrollbars.scrollTop((this.scrollbars.getScrollHeight() - this.scrollbars.getClientHeight()) / 2 + 20);
35
29
  }
36
30
  }
37
31
 
38
32
  render() {
39
- const { classes, itemList, onItemClick, selectedItem, type } = this.props;
40
-
41
- this.position = itemList.indexOf(selectedItem);
42
- let now = new Date();
33
+ const { classes, itemList, onItemClick, selectedItem } = this.props;
43
34
 
44
35
  return React.createElement(
45
36
  Scrollbars,
@@ -52,36 +43,30 @@ class ListPicker extends React.PureComponent {
52
43
  React.createElement(
53
44
  MenuList,
54
45
  null,
55
- itemList.map((item, index) => {
56
- const labelClass = classNames(classes.itemCentered, {
57
- [classes.currentDateItem]: type === 'year' && now.getFullYear() === item || type === 'month' && now.getMonth() === index
58
- });
59
-
60
- return React.createElement(
61
- MenuItem,
62
- {
63
- key: `item-${item}`,
64
- classes: {
65
- root: classes.itemRoot,
66
- selected: classes.itemSelected
67
- },
68
- onClick: () => onItemClick(item),
69
- selected: item === selectedItem
46
+ itemList.map(item => React.createElement(
47
+ MenuItem,
48
+ {
49
+ key: `item-${item}`,
50
+ classes: {
51
+ root: classes.itemRoot,
52
+ selected: classes.itemSelected
70
53
  },
71
- React.createElement(
72
- 'span',
73
- { className: labelClass },
74
- item
75
- )
76
- );
77
- })
54
+ onClick: () => onItemClick(item),
55
+ selected: item === selectedItem
56
+ },
57
+ React.createElement(
58
+ 'span',
59
+ { className: classes.itemCentered },
60
+ item
61
+ )
62
+ ))
78
63
  )
79
64
  );
80
65
  }
81
66
  }
82
67
 
83
68
  ListPicker.defaultProps = {
84
- initAtMiddleScroll: true
69
+ initAtMiddleScroll: false
85
70
  };
86
71
  ListPicker.propTypes = process.env.NODE_ENV !== "production" ? {
87
72
  /**
@@ -103,10 +88,6 @@ ListPicker.propTypes = process.env.NODE_ENV !== "production" ? {
103
88
  /**
104
89
  * Item sélectionné
105
90
  */
106
- selectedItem: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
107
- /**
108
- * Type des données dans la liste
109
- */
110
- type: PropTypes.oneOf(['year', 'month'])
91
+ selectedItem: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
111
92
  } : {};
112
93
  export default withStyles(styles, { name: 'HmuiListPicker' })(ListPicker);
@@ -70,11 +70,9 @@ const CustomOverlayLayout = (_ref) => {
70
70
  [classes.right]: side === 'to'
71
71
  });
72
72
 
73
- let paperProps = _extends({}, props);
74
-
75
73
  return React.createElement(
76
74
  Paper,
77
- { className: paperClass, onBlur: paperProps.onBlur, onFocus: paperProps.onFocus },
75
+ { className: paperClass },
78
76
  React.createElement(
79
77
  'div',
80
78
  { className: classes.overlay },
@@ -34,17 +34,13 @@ class MonthPickerOverlay extends React.Component {
34
34
  { value, translations } = _props,
35
35
  props = _objectWithoutProperties(_props, ['value', 'translations']);
36
36
 
37
- let now = new Date();
38
- let currentMonth = props.localeUtils ? props.localeUtils.getMonths()[now.getMonth()] : props.children.props.localeUtils.getMonths()[now.getMonth()];
39
-
40
37
  return React.createElement(
41
38
  CustomOverlayLayout,
42
39
  _extends({ headerElement: translations.month }, props),
43
40
  React.createElement(ListPicker, {
44
41
  itemList: this.months,
45
42
  onItemClick: this.handleMonthClick,
46
- selectedItem: currentMonth,
47
- type: 'month'
43
+ selectedItem: value ? value.getMonth() : null
48
44
  })
49
45
  );
50
46
  }
@@ -1,5 +1,3 @@
1
- import _extends from 'babel-runtime/helpers/extends';
2
- import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
3
1
  // weak
4
2
 
5
3
  import React from 'react';
@@ -11,15 +9,10 @@ import withStyles from '../../styles/withStyles';
11
9
 
12
10
  export const styles = () => ({
13
11
  paper: {
12
+ position: 'absolute',
14
13
  width: '100%',
15
14
  zIndex: 10
16
15
  },
17
- absolute: {
18
- position: 'absolute'
19
- },
20
- relative: {
21
- position: 'relative'
22
- },
23
16
  left: {
24
17
  width: '200%',
25
18
  left: 0
@@ -33,22 +26,15 @@ export const styles = () => ({
33
26
  }
34
27
  });
35
28
 
36
- const Overlay = (_ref) => {
37
- let { classes, children, side, staticPosition } = _ref,
38
- props = _objectWithoutProperties(_ref, ['classes', 'children', 'side', 'staticPosition']);
39
-
29
+ const Overlay = ({ classes, children, side }) => {
40
30
  const paperClass = classNames(classes.paper, {
41
31
  [classes.left]: side === 'from',
42
- [classes.right]: side === 'to',
43
- [classes.absolute]: staticPosition !== true,
44
- [classes.relative]: staticPosition === true
32
+ [classes.right]: side === 'to'
45
33
  });
46
34
 
47
- let paperProps = _extends({}, props);
48
-
49
35
  return React.createElement(
50
36
  Paper,
51
- { onBlur: paperProps.onBlur, onFocus: paperProps.onFocus, className: paperClass },
37
+ { className: paperClass },
52
38
  React.createElement(
53
39
  'div',
54
40
  { className: classes.overlay },
@@ -54,8 +54,7 @@ class YearPickerOverlay extends React.Component {
54
54
  React.createElement(ListPicker, {
55
55
  itemList: this.years,
56
56
  onItemClick: this.handleYearClick,
57
- selectedItem: value ? value.getFullYear() : null,
58
- type: 'year'
57
+ selectedItem: value ? value.getFullYear() : null
59
58
  })
60
59
  );
61
60
  }
@@ -19,13 +19,6 @@ export default (theme => ({
19
19
  width: 'calc(50% - 4px)',
20
20
  marginLeft: 4
21
21
  },
22
- absolute: {
23
- position: 'absolute'
24
- },
25
- dayPickerMargin: {
26
- top: -337,
27
- width: 'calc(100% - 4px)'
28
- },
29
22
  // The container element
30
23
  container: {
31
24
  width: '100%',
@@ -9,7 +9,6 @@ import { Alert, Information } from 'mdi-material-ui';
9
9
  import { FormControl, FormHelperText } from 'material-ui/Form';
10
10
  import withStyles from '../styles/withStyles';
11
11
  import HiFormLabel from './HiFormLabel';
12
- import { escapeHTML } from "../utils/hiHelpers";
13
12
 
14
13
  export const styles = theme => ({
15
14
  helperTextClassName: {
@@ -63,7 +62,7 @@ export const styles = theme => ({
63
62
  color: theme.palette.business.primary.normal
64
63
  },
65
64
  helperDiv: _extends({}, theme.typography.h5, {
66
- width: '100%',
65
+ width: 'calc(100% - 16px)',
67
66
  backgroundColor: '#ffffff',
68
67
  color: theme.palette.neutral.dark,
69
68
  padding: '16px 8px',
@@ -71,8 +70,7 @@ export const styles = theme => ({
71
70
  position: 'relative',
72
71
  marginBottom: 5,
73
72
  fontWeight: theme.typography.fontWeightRegular,
74
- boxShadow: '0px 1px 7px rgba(0, 0, 0, 0.16)',
75
- lineHeight: 1.5
73
+ boxShadow: '0px 1px 7px rgba(0, 0, 0, 0.16)'
76
74
  }),
77
75
  helperDivArrowDown: {
78
76
  borderTopColor: '#ffffff'
@@ -87,17 +85,6 @@ class HiFormControl extends React.PureComponent {
87
85
  constructor(props) {
88
86
  super(props);
89
87
 
90
- this.handleFocus = value => () => {
91
- this.setState({ focused: value });
92
- if (value === false && this.state.hovered) {
93
- this.setState({ hovered: false });
94
- }
95
- };
96
-
97
- this.handleHover = value => () => {
98
- this.setState({ hovered: value });
99
- };
100
-
101
88
  this.state = {
102
89
  helperOpen: false,
103
90
  focused: false,
@@ -109,11 +96,16 @@ class HiFormControl extends React.PureComponent {
109
96
  this.handleHover = this.handleHover.bind(this);
110
97
  }
111
98
 
112
- handleHelperClick(event) {
99
+ handleHelperClick() {
113
100
  this.setState(prevState => ({ helperOpen: !prevState.helperOpen }));
114
- if (event) {
115
- event.preventDefault();
116
- }
101
+ }
102
+
103
+ handleFocus(value) {
104
+ this.setState({ focused: value });
105
+ }
106
+
107
+ handleHover(value) {
108
+ this.setState({ hovered: value });
117
109
  }
118
110
 
119
111
  render() {
@@ -160,17 +152,11 @@ class HiFormControl extends React.PureComponent {
160
152
  ),
161
153
  !disabled && helperIcon && helperText && !error && helperOpen && React.createElement(
162
154
  'div',
163
- {
164
- className: classes.helperDiv
165
- },
155
+ { className: classes.helperDiv },
166
156
  React.createElement('div', {
167
157
  className: classNames(classes.arrowDown, classes.helperDivArrowDown)
168
-
169
158
  }),
170
- React.createElement('span', {
171
- dangerouslySetInnerHTML: {
172
- __html: escapeHTML(helperText)
173
- } })
159
+ helperText
174
160
  ),
175
161
  label && React.createElement(
176
162
  HiFormLabel,
@@ -179,7 +165,7 @@ class HiFormControl extends React.PureComponent {
179
165
  label: label,
180
166
  required: required,
181
167
  disabled: disabled,
182
- focused: !disabled && (focused || hovered)
168
+ focused: focused || hovered
183
169
  }, InputLabelProps),
184
170
  !disabled && error && React.createElement(Alert, {
185
171
  className: classes.errorIcon,
@@ -195,10 +181,10 @@ class HiFormControl extends React.PureComponent {
195
181
  React.createElement(
196
182
  'div',
197
183
  {
198
- onMouseEnter: this.handleHover(true),
199
- onMouseLeave: this.handleHover(false),
200
- onFocus: this.handleFocus(true),
201
- onBlur: this.handleFocus(false)
184
+ onMouseEnter: () => this.handleHover(true),
185
+ onMouseLeave: () => this.handleHover(false),
186
+ onFocus: () => this.handleFocus(true),
187
+ onBlur: () => this.handleFocus(false)
202
188
  },
203
189
  children
204
190
  ),