@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
@@ -31,10 +31,9 @@ class HiSelectField extends React.PureComponent {
31
31
  iconAll,
32
32
  checkbox,
33
33
  searchable,
34
- translations,
35
- className
34
+ translations
36
35
  } = _props,
37
- others = _objectWithoutProperties(_props, ['label', 'required', 'disabled', 'error', 'errorText', 'helperText', 'helperIcon', 'id', 'name', 'value', 'options', 'type', 'multiple', 'iconAll', 'checkbox', 'searchable', 'translations', 'className']);
36
+ others = _objectWithoutProperties(_props, ['label', 'required', 'disabled', 'error', 'errorText', 'helperText', 'helperIcon', 'id', 'name', 'value', 'options', 'type', 'multiple', 'iconAll', 'checkbox', 'searchable', 'translations']);
38
37
 
39
38
  return React.createElement(
40
39
  HiFormControl,
@@ -46,8 +45,7 @@ class HiSelectField extends React.PureComponent {
46
45
  error: error,
47
46
  errorText: errorText,
48
47
  helperText: helperText,
49
- helperIcon: helperIcon,
50
- className: className
48
+ helperIcon: helperIcon
51
49
  },
52
50
  React.createElement(HiSelect, _extends({
53
51
  id: id,
@@ -60,6 +58,10 @@ class HiSelectField extends React.PureComponent {
60
58
  checkbox: checkbox,
61
59
  searchable: searchable,
62
60
  translations: translations,
61
+ onClick: this.handleClick,
62
+ onMouseEnter: this.handleMouseEnter,
63
+ onMouseLeave: this.handleMouseLeave,
64
+ onClose: this.handleClose,
63
65
  disabled: disabled,
64
66
  error: error
65
67
  }, others))
@@ -68,10 +70,6 @@ class HiSelectField extends React.PureComponent {
68
70
  }
69
71
 
70
72
  HiSelectField.propTypes = process.env.NODE_ENV !== "production" ? {
71
- /**
72
- * Surcharge des styles
73
- */
74
- className: PropTypes.string,
75
73
  /**
76
74
  * Si `true`, l'input sera inactif.
77
75
  */
@@ -4,12 +4,17 @@ import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutPropert
4
4
 
5
5
  import React from 'react';
6
6
  import PropTypes from 'prop-types';
7
+
8
+ import classNames from 'classnames';
7
9
  import { findDOMNode } from 'react-dom';
8
10
  import Grow from 'material-ui/transitions/Grow';
9
11
  import Paper from 'material-ui/Paper';
12
+ import ClickAwayListener from 'material-ui/utils/ClickAwayListener';
10
13
  import { Manager, Target, Popper } from 'react-popper';
14
+
11
15
  import HiSelectableList from '../HiSelectableList';
12
16
  import HiInput from '../HiForm/HiInput';
17
+
13
18
  import { withStyles } from '../styles';
14
19
  import { getNextItemSelectable } from '../utils/hiHelpers';
15
20
 
@@ -17,7 +22,7 @@ export const styles = theme => ({
17
22
  root: {
18
23
  backgroundColor: theme.palette.background2,
19
24
  maxWidth: 500,
20
- minWidth: 200,
25
+ minWidth: 250,
21
26
  width: '100%'
22
27
  },
23
28
  popper: {
@@ -26,6 +31,9 @@ export const styles = theme => ({
26
31
  zIndex: 9,
27
32
  top: '100%'
28
33
  },
34
+ popperClose: {
35
+ pointerEvents: 'none'
36
+ },
29
37
  paper: {
30
38
  borderRadius: '0px 2px',
31
39
  maxHeight: 440,
@@ -77,8 +85,6 @@ class HiSuggestSelect extends React.PureComponent {
77
85
  items[0].focus();
78
86
  }
79
87
  }, 1);
80
- } else if (event.key === 'Escape') {
81
- this.setState({ options: [] });
82
88
  }
83
89
  };
84
90
 
@@ -88,29 +94,34 @@ class HiSuggestSelect extends React.PureComponent {
88
94
  };
89
95
 
90
96
  this.handleSelect = this.handleSelect.bind(this);
97
+ this.handleClose = this.handleClose.bind(this);
91
98
  this.handleBlur = this.handleBlur.bind(this);
92
- this.handleFocus = this.handleFocus.bind(this);
93
99
  }
94
100
 
95
101
  componentWillReceiveProps(nextProps) {
96
102
  this.setState({ options: nextProps.options });
97
103
  }
98
104
 
105
+ handleClose() {
106
+ document.body.style.overflow = 'auto';
107
+ this.setState({
108
+ focused: false, // TODO - Make difference between open and focus
109
+ options: []
110
+ });
111
+ }
112
+
99
113
  // Key down on list items
100
114
 
101
115
 
102
116
  // Key down on search input
103
117
 
104
118
 
105
- handleFocus() {
106
- this.setState({ focused: true });
107
- }
108
-
109
119
  handleBlur(event) {
110
120
  // Si on click sur un élément de HiInput, on garde le focus
111
121
  // Par exemple sur l'icone reset
122
+ const overlay = this.overlay;
112
123
  if (!event.relatedTarget || !this.overlay || !this.overlay.contains(event.relatedTarget)) {
113
- this.setState({ options: [], focused: false });
124
+ this.setState({ options: [] });
114
125
  }
115
126
  }
116
127
 
@@ -120,8 +131,7 @@ class HiSuggestSelect extends React.PureComponent {
120
131
  otherProps = _objectWithoutProperties(_props, ['classes', 'translations', 'id', 'onSearch']);
121
132
 
122
133
  const { focused, options } = this.state;
123
- const open = !!options.length && focused;
124
-
134
+ const open = !!options.length;
125
135
  return React.createElement(
126
136
  'div',
127
137
  {
@@ -144,8 +154,7 @@ class HiSuggestSelect extends React.PureComponent {
144
154
  },
145
155
  onChange: onSearch,
146
156
  onKeyDown: this.handleKeyDownSearch,
147
- onBlur: this.handleBlur,
148
- onFocus: this.handleFocus
157
+ onBlur: this.handleBlur
149
158
  }))
150
159
  ),
151
160
  open && React.createElement(
@@ -153,22 +162,26 @@ class HiSuggestSelect extends React.PureComponent {
153
162
  {
154
163
  placement: 'bottom-start',
155
164
  eventsEnabled: open,
156
- className: classes.popper
165
+ className: classNames(classes.popper, { [classes.popperClose]: !open })
157
166
  },
158
167
  React.createElement(
159
- Grow,
160
- { 'in': open, id: 'menu-list', style: { transformOrigin: '0 0 0' } },
168
+ ClickAwayListener,
169
+ { onClickAway: this.handleClose },
161
170
  React.createElement(
162
- Paper,
163
- { className: classes.paper },
164
- React.createElement(HiSelectableList, {
165
- itemList: options,
166
- selectedIdList: [],
167
- checkbox: false,
168
- onSelect: this.handleSelect,
169
- translations: translations,
170
- onKeyDown: this.handleKeyDown
171
- })
171
+ Grow,
172
+ { 'in': open, id: 'menu-list', style: { transformOrigin: '0 0 0' } },
173
+ React.createElement(
174
+ Paper,
175
+ { className: classes.paper },
176
+ React.createElement(HiSelectableList, {
177
+ itemList: options,
178
+ selectedIdList: [],
179
+ checkbox: false,
180
+ onSelect: this.handleSelect,
181
+ translations: translations,
182
+ onKeyDown: this.handleKeyDown
183
+ })
184
+ )
172
185
  )
173
186
  )
174
187
  )
@@ -12,86 +12,78 @@ import HiSuggestSelect from './HiSuggestSelect';
12
12
  */
13
13
  class HiSuggestSelectField extends React.PureComponent {
14
14
 
15
- render() {
16
- const _props = this.props,
17
- {
18
- label,
19
- required,
20
- disabled,
21
- error,
22
- errorText,
23
- helperText,
24
- helperIcon,
25
- id,
26
- className
27
- } = _props,
28
- others = _objectWithoutProperties(_props, ['label', 'required', 'disabled', 'error', 'errorText', 'helperText', 'helperIcon', 'id', 'className']);
15
+ render() {
16
+ const _props = this.props,
17
+ {
18
+ label,
19
+ required,
20
+ disabled,
21
+ error,
22
+ errorText,
23
+ helperText,
24
+ helperIcon,
25
+ id
26
+ } = _props,
27
+ others = _objectWithoutProperties(_props, ['label', 'required', 'disabled', 'error', 'errorText', 'helperText', 'helperIcon', 'id']);
29
28
 
30
- return React.createElement(
31
- HiFormControl,
32
- {
33
- id: id,
34
- label: label,
35
- required: required,
36
- disabled: disabled,
37
- error: error,
38
- errorText: errorText,
39
- helperText: helperText,
40
- helperIcon: helperIcon,
41
- className: className
42
- },
43
- React.createElement(HiSuggestSelect, _extends({
44
- id: id,
45
- translations: {
46
- all: 'Tous les pays',
47
- no_result_match: 'Aucun résultat correspondant',
48
- search: 'Recherche',
49
- n_items_selected: '%s pays sélectionnés',
50
- one_item_selected: '%s pays sélectionné'
51
- },
52
- disabled: disabled,
53
- error: error
54
- }, others))
55
- );
56
- }
29
+ return React.createElement(
30
+ HiFormControl,
31
+ {
32
+ id: id,
33
+ label: label,
34
+ required: required,
35
+ disabled: disabled,
36
+ error: error,
37
+ errorText: errorText,
38
+ helperText: helperText,
39
+ helperIcon: helperIcon
40
+ },
41
+ React.createElement(HiSuggestSelect, _extends({
42
+ id: id,
43
+ translations: {
44
+ all: 'Tous les pays',
45
+ no_result_match: 'Aucun résultat correspondant',
46
+ search: 'Recherche',
47
+ n_items_selected: '%s pays sélectionnés',
48
+ one_item_selected: '%s pays sélectionné'
49
+ }
50
+ }, others))
51
+ );
52
+ }
57
53
  }
58
54
 
59
55
  HiSuggestSelectField.propTypes = process.env.NODE_ENV !== "production" ? {
60
- /**
61
- * Surcharge des styles
62
- */
63
- className: PropTypes.string,
64
- /**
65
- * Si `true`, l'input sera inactif.
66
- */
67
- disabled: PropTypes.bool,
68
- /**
69
- * Si `true`, le champs sera en erreur.
70
- */
71
- error: PropTypes.bool,
72
- /**
73
- * Texte de l'erreur
74
- */
75
- errorText: PropTypes.string,
76
- /**
77
- * Si "true", le texte d'aide s'affichera seulement au clic sur l'icône "Information"
78
- */
79
- helperIcon: PropTypes.bool,
80
- /**
81
- * Texte de l'aide
82
- */
83
- helperText: PropTypes.string,
84
- /**
85
- * id de l'élément input
86
- */
87
- id: PropTypes.string,
88
- /**
89
- * Label du champs
90
- */
91
- label: PropTypes.string,
92
- /**
93
- * true si champs obligatoire
94
- */
95
- required: PropTypes.bool
56
+ /**
57
+ * Si `true`, l'input sera inactif.
58
+ */
59
+ disabled: PropTypes.bool,
60
+ /**
61
+ * Si `true`, le champs sera en erreur.
62
+ */
63
+ error: PropTypes.bool,
64
+ /**
65
+ * Texte de l'erreur
66
+ */
67
+ errorText: PropTypes.string,
68
+ /**
69
+ * Si "true", le texte d'aide s'affichera seulement au clic sur l'icône "Information"
70
+ */
71
+ helperIcon: PropTypes.bool,
72
+ /**
73
+ * Texte de l'aide
74
+ */
75
+ helperText: PropTypes.string,
76
+ /**
77
+ * id de l'élément input
78
+ */
79
+ id: PropTypes.string,
80
+ /**
81
+ * Label du champs
82
+ */
83
+ label: PropTypes.string,
84
+ /**
85
+ * true si champs obligatoire
86
+ */
87
+ required: PropTypes.bool
96
88
  } : {};
97
89
  export default HiSuggestSelectField;
@@ -15,8 +15,7 @@ export const styles = theme => ({
15
15
  height: 40,
16
16
  maxWidth: 500,
17
17
  justifyContent: 'flex-start',
18
- padding: 8,
19
- cursor: 'pointer'
18
+ padding: 8
20
19
  },
21
20
  underline: {
22
21
  '&:before': {
@@ -48,7 +47,7 @@ export const styles = theme => ({
48
47
  },
49
48
  inkbar: {
50
49
  '&:not($disabled)': {
51
- '&:not($error):after': {
50
+ '&:after': {
52
51
  backgroundColor: theme.palette.business.primary.normal,
53
52
  left: 0,
54
53
  bottom: 0,
@@ -78,6 +77,7 @@ export const styles = theme => ({
78
77
  },
79
78
  disabled: {
80
79
  color: `${theme.palette.action.disabled}`,
80
+ backgroundColor: `${theme.palette.input.disabled}`,
81
81
  '&:before': {
82
82
  display: 'none'
83
83
  }
@@ -136,18 +136,7 @@ class SelectInput extends React.PureComponent {
136
136
  }
137
137
 
138
138
  render() {
139
- const {
140
- classes,
141
- noButton,
142
- disabled,
143
- onClick,
144
- value,
145
- open,
146
- focused,
147
- error,
148
- id,
149
- refElement
150
- } = this.props;
139
+ const { classes, noButton, disabled, onClick, value, open, focused, error, id } = this.props;
151
140
 
152
141
  // On utilise classNames pour variabiliser les styles et merge les classes appliquées
153
142
  const rootClass = classNames(classes.root, classes.inkbar, classes.underline, {
@@ -174,10 +163,7 @@ class SelectInput extends React.PureComponent {
174
163
  onFocus: this.props.onFocus,
175
164
  onBlur: this.props.onBlur,
176
165
  role: 'button',
177
- tabIndex: '0',
178
- ref: el => {
179
- refElement && refElement(el);
180
- }
166
+ tabIndex: '0'
181
167
  },
182
168
  React.createElement(
183
169
  'span',
@@ -196,10 +182,7 @@ class SelectInput extends React.PureComponent {
196
182
  onMouseLeave: this.props.onMouseLeave,
197
183
  onKeyDown: this.handleKeyDown,
198
184
  onFocus: this.props.onFocus,
199
- onBlur: this.props.onBlur,
200
- buttonRef: el => {
201
- refElement && refElement(el);
202
- }
185
+ onBlur: this.props.onBlur
203
186
  },
204
187
  React.createElement(
205
188
  'span',
@@ -234,23 +217,6 @@ SelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
234
217
  * If `true`, the select will be disabled.
235
218
  */
236
219
  disabled: PropTypes.bool,
237
- /**
238
- * Applique le style error
239
- */
240
- error: PropTypes.bool,
241
- /**
242
- * Applique le style focused
243
- */
244
- focused: PropTypes.bool,
245
- /**
246
- * id du select
247
- */
248
- id: PropTypes.string,
249
- /**
250
- * Affiche sous forme de div à la place d'un bouton.
251
- * Si des éléments cliquables sont à l'intérieur.
252
- */
253
- noButton: PropTypes.bool,
254
220
  /**
255
221
  * Fonction de callback au blur du bouton
256
222
  */
@@ -267,17 +233,30 @@ SelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
267
233
  * Fonction de callback à la pression de touche
268
234
  */
269
235
  onKeyDown: PropTypes.func,
236
+ /**
237
+ * Valeur à afficher (déjà formattée)
238
+ */
239
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.node]),
270
240
  /**
271
241
  * Applique le style open et effectue une rotation de l'icône
272
242
  */
273
243
  open: PropTypes.bool,
274
244
  /**
275
- * Use that property to pass a ref callback to the native component.
245
+ * Affiche sous forme de div à la place d'un bouton.
246
+ * Si des éléments cliquables sont à l'intérieur.
276
247
  */
277
- refElement: PropTypes.func,
248
+ noButton: PropTypes.bool,
278
249
  /**
279
- * Valeur à afficher (déjà formattée)
250
+ * Applique le style focused
251
+ */
252
+ focused: PropTypes.bool,
253
+ /**
254
+ * Applique le style error
255
+ */
256
+ error: PropTypes.bool,
257
+ /**
258
+ * id du select
280
259
  */
281
- value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.node])
260
+ id: PropTypes.string
282
261
  } : {};
283
262
  export default withStyles(styles, { name: 'HmuiSelectInput' })(SelectInput);
@@ -37,10 +37,9 @@ class HiSelectableList extends React.PureComponent {
37
37
  checkedIcon,
38
38
  allSelected,
39
39
  checkbox,
40
- hierarchic,
41
- disabledIds
40
+ hierarchic
42
41
  } = _props,
43
- others = _objectWithoutProperties(_props, ['classes', 'itemList', 'selectedIdList', 'onSelect', 'maxHeight', 'hierarchySelected', 'parentItemSelectable', 'hierarchy', 'translations', 'icon', 'parentIcon', 'hoverIcon', 'checkedIcon', 'allSelected', 'checkbox', 'hierarchic', 'disabledIds']);
42
+ others = _objectWithoutProperties(_props, ['classes', 'itemList', 'selectedIdList', 'onSelect', 'maxHeight', 'hierarchySelected', 'parentItemSelectable', 'hierarchy', 'translations', 'icon', 'parentIcon', 'hoverIcon', 'checkedIcon', 'allSelected', 'checkbox', 'hierarchic']);
44
43
 
45
44
  let parents = [];
46
45
 
@@ -101,8 +100,7 @@ class HiSelectableList extends React.PureComponent {
101
100
  hoverIcon: hoverIcon,
102
101
  checkedIcon: checkedIcon,
103
102
  checkbox: checkbox,
104
- level: parents.length,
105
- disabled: disabledIds ? disabledIds.includes(item.id) : false
103
+ level: parents.length
106
104
  }, others));
107
105
  })
108
106
  )
@@ -113,7 +111,7 @@ class HiSelectableList extends React.PureComponent {
113
111
  HiSelectableList.defaultProps = {
114
112
  checkbox: true,
115
113
  allSelected: false,
116
- maxHeight: 400,
114
+ maxHeight: 360,
117
115
  hierarchySelected: {},
118
116
  parentItemSelectable: false,
119
117
  icon: React.createElement(CheckboxBlankOutline, { style: { width: 20, height: 20 } }),
@@ -142,10 +140,6 @@ HiSelectableList.propTypes = process.env.NODE_ENV !== "production" ? {
142
140
  * Useful to extend the style applied to components.
143
141
  */
144
142
  classes: PropTypes.object,
145
- /**
146
- * Liste des ids des items disabled
147
- */
148
- disabledIds: PropTypes.array,
149
143
  /**
150
144
  * Tableau associatif : parentId => [children objects]
151
145
  */