@hipay/hipay-material-ui 1.0.0-beta.28 → 1.0.0-beta.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (434) hide show
  1. package/HiCheckbox/HiCheckbox.js +3 -6
  2. package/HiChip/HiChip.js +9 -84
  3. package/HiChip/HiChipSwitch.js +0 -6
  4. package/HiColoredLabel/HiColoredLabel.js +5 -11
  5. package/HiDatePicker/HiDatePicker.js +12 -24
  6. package/HiDatePicker/HiDateRangePicker.js +69 -152
  7. package/HiDatePicker/HiDateRangeSelector.js +30 -85
  8. package/HiDatePicker/Overlays/CustomOverlayLayout.js +1 -3
  9. package/HiDatePicker/Overlays/Overlay.js +5 -23
  10. package/HiDatePicker/stylesheet.js +0 -14
  11. package/HiForm/HiFormControl.js +30 -28
  12. package/HiForm/HiInput.js +21 -49
  13. package/HiForm/HiPasswordField.js +3 -8
  14. package/HiForm/HiSearchField.js +3 -9
  15. package/HiForm/index.js +0 -36
  16. package/HiLoader/HiLoader.js +9 -16
  17. package/HiPins/HiPins.js +5 -6
  18. package/HiSelect/HiSelect.js +344 -591
  19. package/HiSelect/HiSelectField.js +6 -8
  20. package/HiSelect/HiSuggestSelect.js +50 -77
  21. package/HiSelect/HiSuggestSelectField.js +80 -88
  22. package/HiSelect/SelectInput.js +37 -97
  23. package/HiSelectableList/HiSelectableList.js +49 -57
  24. package/HiSelectableList/HiSelectableListItem.js +94 -145
  25. package/HiTable/BodyCellBuilder.js +112 -144
  26. package/HiTable/BodyCells/CellAccount.js +21 -15
  27. package/HiTable/BodyCells/CellAccountNumber.js +220 -0
  28. package/HiTable/BodyCells/CellAddress.js +53 -15
  29. package/HiTable/BodyCells/CellCountry.js +43 -23
  30. package/HiTable/BodyCells/CellDate.js +64 -59
  31. package/HiTable/BodyCells/CellIcon.js +45 -46
  32. package/HiTable/BodyCells/CellImage.js +44 -54
  33. package/HiTable/BodyCells/CellLayout.js +24 -60
  34. package/HiTable/BodyCells/CellNumeric.js +28 -22
  35. package/HiTable/BodyCells/CellRate.js +6 -15
  36. package/HiTable/BodyCells/CellSentinel.js +68 -58
  37. package/HiTable/BodyCells/CellStatus.js +25 -30
  38. package/HiTable/BodyCells/CellText.js +46 -78
  39. package/HiTable/BodyCells/CellThirdPartySecurity.js +35 -53
  40. package/HiTable/BodyCells/index.js +9 -0
  41. package/HiTable/BodyRow.js +82 -133
  42. package/HiTable/ChildRow.js +9 -3
  43. package/HiTable/ColumnFilter.js +20 -30
  44. package/HiTable/HeaderCell.js +76 -97
  45. package/HiTable/HiStickyRow.js +16 -27
  46. package/HiTable/HiTable.js +111 -141
  47. package/HiTable/HiTableBody.js +62 -177
  48. package/HiTable/HiTableContextMenu.js +19 -39
  49. package/HiTable/HiTableFooterScroll.js +1 -1
  50. package/HiTable/HiTableHead.js +19 -42
  51. package/HiTable/OrderColumns.js +2 -6
  52. package/HiTable/constants.js +2 -2
  53. package/HiTopBar/HiTopBar.js +25 -39
  54. package/README.md +6 -72
  55. package/es/HiCheckbox/HiCheckbox.js +3 -6
  56. package/es/HiChip/HiChip.js +10 -96
  57. package/es/HiChip/HiChipSwitch.js +0 -6
  58. package/es/HiColoredLabel/HiColoredLabel.js +6 -11
  59. package/es/HiDatePicker/HiDatePicker.js +12 -19
  60. package/es/HiDatePicker/HiDateRangePicker.js +68 -140
  61. package/es/HiDatePicker/HiDateRangeSelector.js +31 -80
  62. package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +1 -3
  63. package/es/HiDatePicker/Overlays/Overlay.js +5 -19
  64. package/es/HiDatePicker/stylesheet.js +0 -14
  65. package/es/HiForm/HiFormControl.js +18 -24
  66. package/es/HiForm/HiInput.js +20 -44
  67. package/es/HiForm/HiPasswordField.js +3 -8
  68. package/es/HiForm/HiSearchField.js +3 -4
  69. package/es/HiForm/index.js +1 -5
  70. package/es/HiLoader/HiLoader.js +6 -10
  71. package/es/HiPins/HiPins.js +5 -4
  72. package/es/HiSelect/HiSelect.js +313 -547
  73. package/es/HiSelect/HiSelectField.js +7 -9
  74. package/es/HiSelect/HiSuggestSelect.js +42 -73
  75. package/es/HiSelect/HiSuggestSelectField.js +69 -77
  76. package/es/HiSelect/SelectInput.js +37 -94
  77. package/es/HiSelectableList/HiSelectableList.js +50 -58
  78. package/es/HiSelectableList/HiSelectableListItem.js +94 -137
  79. package/es/HiTable/BodyCellBuilder.js +113 -132
  80. package/es/HiTable/BodyCells/CellAccount.js +11 -9
  81. package/es/HiTable/BodyCells/CellAccountNumber.js +166 -0
  82. package/es/HiTable/BodyCells/CellAddress.js +45 -9
  83. package/es/HiTable/BodyCells/CellCountry.js +38 -16
  84. package/es/HiTable/BodyCells/CellDate.js +49 -38
  85. package/es/HiTable/BodyCells/CellIcon.js +32 -32
  86. package/es/HiTable/BodyCells/CellImage.js +43 -47
  87. package/es/HiTable/BodyCells/CellLayout.js +27 -60
  88. package/es/HiTable/BodyCells/CellNumeric.js +19 -15
  89. package/es/HiTable/BodyCells/CellRate.js +4 -9
  90. package/es/HiTable/BodyCells/CellSentinel.js +51 -41
  91. package/es/HiTable/BodyCells/CellStatus.js +20 -24
  92. package/es/HiTable/BodyCells/CellText.js +25 -52
  93. package/es/HiTable/BodyCells/CellThirdPartySecurity.js +26 -43
  94. package/es/HiTable/BodyCells/index.js +2 -0
  95. package/es/HiTable/BodyRow.js +77 -125
  96. package/es/HiTable/ChildRow.js +10 -3
  97. package/es/HiTable/ColumnFilter.js +14 -17
  98. package/es/HiTable/HeaderCell.js +82 -100
  99. package/es/HiTable/HiStickyRow.js +14 -21
  100. package/es/HiTable/HiTable.js +84 -114
  101. package/es/HiTable/HiTableBody.js +57 -149
  102. package/es/HiTable/HiTableContextMenu.js +19 -36
  103. package/es/HiTable/HiTableFooterScroll.js +1 -1
  104. package/es/HiTable/HiTableHead.js +18 -33
  105. package/es/HiTable/OrderColumns.js +2 -6
  106. package/es/HiTable/constants.js +7 -7
  107. package/es/HiTopBar/HiTopBar.js +22 -41
  108. package/es/styles/createHiMuiTheme.js +0 -13
  109. package/es/svg-icons/Cancel.js +0 -2
  110. package/es/svg-icons/index.js +1 -2
  111. package/es/utils/HiIconBuilder.js +6 -18
  112. package/es/utils/hiHelpers.js +8 -9
  113. package/index.es.js +1 -1
  114. package/index.js +1 -1
  115. package/package.json +4 -13
  116. package/styles/createHiMuiTheme.js +0 -13
  117. package/svg-icons/Cancel.js +0 -2
  118. package/svg-icons/index.js +0 -9
  119. package/umd/hipay-material-ui.development.js +72568 -108171
  120. package/umd/hipay-material-ui.production.min.js +5 -5
  121. package/utils/HiIconBuilder.js +5 -19
  122. package/utils/hiHelpers.js +7 -9
  123. package/HI-CHANGELOG.md +0 -114
  124. package/HiAlertModal/HiAlertModal.js +0 -247
  125. package/HiAlertModal/index.js +0 -16
  126. package/HiBreadcrumb/HiBreadcrumb.js +0 -149
  127. package/HiBreadcrumb/HiStep.js +0 -159
  128. package/HiBreadcrumb/HiStepConnector.js +0 -207
  129. package/HiBreadcrumb/HiStepContent.js +0 -122
  130. package/HiBreadcrumb/HiStepIcon.js +0 -191
  131. package/HiBreadcrumb/HiStepLabel.js +0 -248
  132. package/HiBreadcrumb/HiStepper.js +0 -106
  133. package/HiBreadcrumb/index.js +0 -16
  134. package/HiDotsStepper/HiDot.js +0 -151
  135. package/HiDotsStepper/HiDotsStepper.js +0 -146
  136. package/HiDotsStepper/index.js +0 -16
  137. package/HiExpansionPanel/HiExpansionPanel.js +0 -231
  138. package/HiExpansionPanel/index.js +0 -16
  139. package/HiForm/HiAddressField.js +0 -187
  140. package/HiForm/HiSlider.js +0 -399
  141. package/HiForm/HiUpload.js +0 -280
  142. package/HiForm/HiUploadField.js +0 -456
  143. package/HiMap/HiMap.js +0 -367
  144. package/HiMap/HiMapExpand.js +0 -217
  145. package/HiMap/index.js +0 -25
  146. package/HiPdfReader/HiPdfReader.js +0 -282
  147. package/HiPdfReader/index.js +0 -16
  148. package/HiTable/HiTableFooter.js +0 -140
  149. package/es/HiAlertModal/HiAlertModal.js +0 -189
  150. package/es/HiAlertModal/index.js +0 -1
  151. package/es/HiBreadcrumb/HiBreadcrumb.js +0 -81
  152. package/es/HiBreadcrumb/HiStep.js +0 -94
  153. package/es/HiBreadcrumb/HiStepConnector.js +0 -143
  154. package/es/HiBreadcrumb/HiStepContent.js +0 -63
  155. package/es/HiBreadcrumb/HiStepIcon.js +0 -149
  156. package/es/HiBreadcrumb/HiStepLabel.js +0 -197
  157. package/es/HiBreadcrumb/HiStepper.js +0 -46
  158. package/es/HiBreadcrumb/index.js +0 -1
  159. package/es/HiDotsStepper/HiDot.js +0 -92
  160. package/es/HiDotsStepper/HiDotsStepper.js +0 -83
  161. package/es/HiDotsStepper/index.js +0 -1
  162. package/es/HiExpansionPanel/HiExpansionPanel.js +0 -170
  163. package/es/HiExpansionPanel/index.js +0 -1
  164. package/es/HiForm/HiAddressField.js +0 -127
  165. package/es/HiForm/HiSlider.js +0 -309
  166. package/es/HiForm/HiUpload.js +0 -194
  167. package/es/HiForm/HiUploadField.js +0 -368
  168. package/es/HiMap/HiMap.js +0 -285
  169. package/es/HiMap/HiMapExpand.js +0 -145
  170. package/es/HiMap/index.js +0 -2
  171. package/es/HiPdfReader/HiPdfReader.js +0 -198
  172. package/es/HiPdfReader/index.js +0 -1
  173. package/es/HiTable/HiTableFooter.js +0 -80
  174. package/es/svg-icons/HiBriefcaseRescue.js +0 -15
  175. package/hmu/images/countries/ad.svg +0 -151
  176. package/hmu/images/countries/ae.svg +0 -6
  177. package/hmu/images/countries/af.svg +0 -83
  178. package/hmu/images/countries/ag.svg +0 -15
  179. package/hmu/images/countries/ai.svg +0 -767
  180. package/hmu/images/countries/al.svg +0 -5
  181. package/hmu/images/countries/am.svg +0 -5
  182. package/hmu/images/countries/ao.svg +0 -13
  183. package/hmu/images/countries/aq.svg +0 -6
  184. package/hmu/images/countries/ar.svg +0 -32
  185. package/hmu/images/countries/as.svg +0 -33
  186. package/hmu/images/countries/at.svg +0 -6
  187. package/hmu/images/countries/au.svg +0 -9
  188. package/hmu/images/countries/aw.svg +0 -186
  189. package/hmu/images/countries/ax.svg +0 -18
  190. package/hmu/images/countries/az.svg +0 -8
  191. package/hmu/images/countries/ba.svg +0 -12
  192. package/hmu/images/countries/bb.svg +0 -6
  193. package/hmu/images/countries/bd.svg +0 -4
  194. package/hmu/images/countries/be.svg +0 -7
  195. package/hmu/images/countries/bf.svg +0 -7
  196. package/hmu/images/countries/bg.svg +0 -7
  197. package/hmu/images/countries/bh.svg +0 -11
  198. package/hmu/images/countries/bi.svg +0 -15
  199. package/hmu/images/countries/bj.svg +0 -14
  200. package/hmu/images/countries/bl.svg +0 -7
  201. package/hmu/images/countries/bm.svg +0 -99
  202. package/hmu/images/countries/bn.svg +0 -36
  203. package/hmu/images/countries/bo.svg +0 -686
  204. package/hmu/images/countries/bq.svg +0 -5
  205. package/hmu/images/countries/br.svg +0 -45
  206. package/hmu/images/countries/bs.svg +0 -13
  207. package/hmu/images/countries/bt.svg +0 -89
  208. package/hmu/images/countries/bv.svg +0 -13
  209. package/hmu/images/countries/bw.svg +0 -7
  210. package/hmu/images/countries/by.svg +0 -61
  211. package/hmu/images/countries/bz.svg +0 -146
  212. package/hmu/images/countries/ca.svg +0 -4
  213. package/hmu/images/countries/cc.svg +0 -19
  214. package/hmu/images/countries/cd.svg +0 -5
  215. package/hmu/images/countries/cf.svg +0 -15
  216. package/hmu/images/countries/cg.svg +0 -12
  217. package/hmu/images/countries/ch.svg +0 -9
  218. package/hmu/images/countries/ci.svg +0 -7
  219. package/hmu/images/countries/ck.svg +0 -9
  220. package/hmu/images/countries/cl.svg +0 -13
  221. package/hmu/images/countries/cm.svg +0 -15
  222. package/hmu/images/countries/cn.svg +0 -11
  223. package/hmu/images/countries/co.svg +0 -7
  224. package/hmu/images/countries/cr.svg +0 -7
  225. package/hmu/images/countries/cu.svg +0 -13
  226. package/hmu/images/countries/cv.svg +0 -13
  227. package/hmu/images/countries/cw.svg +0 -14
  228. package/hmu/images/countries/cx.svg +0 -15
  229. package/hmu/images/countries/cy.svg +0 -6
  230. package/hmu/images/countries/cz.svg +0 -12
  231. package/hmu/images/countries/de.svg +0 -5
  232. package/hmu/images/countries/dj.svg +0 -13
  233. package/hmu/images/countries/dk.svg +0 -5
  234. package/hmu/images/countries/dm.svg +0 -152
  235. package/hmu/images/countries/do.svg +0 -6745
  236. package/hmu/images/countries/dz.svg +0 -5
  237. package/hmu/images/countries/ec.svg +0 -141
  238. package/hmu/images/countries/ee.svg +0 -7
  239. package/hmu/images/countries/eg.svg +0 -38
  240. package/hmu/images/countries/eh.svg +0 -15
  241. package/hmu/images/countries/er.svg +0 -8
  242. package/hmu/images/countries/es-ct.svg +0 -4
  243. package/hmu/images/countries/es.svg +0 -581
  244. package/hmu/images/countries/et.svg +0 -14
  245. package/hmu/images/countries/eu.svg +0 -28
  246. package/hmu/images/countries/fi.svg +0 -5
  247. package/hmu/images/countries/fj.svg +0 -124
  248. package/hmu/images/countries/fk.svg +0 -90
  249. package/hmu/images/countries/fm.svg +0 -11
  250. package/hmu/images/countries/fo.svg +0 -12
  251. package/hmu/images/countries/fr.svg +0 -7
  252. package/hmu/images/countries/ga.svg +0 -7
  253. package/hmu/images/countries/gb-eng.svg +0 -5
  254. package/hmu/images/countries/gb-nir.svg +0 -137
  255. package/hmu/images/countries/gb-sct.svg +0 -4
  256. package/hmu/images/countries/gb-wls.svg +0 -9
  257. package/hmu/images/countries/gb.svg +0 -15
  258. package/hmu/images/countries/gd.svg +0 -27
  259. package/hmu/images/countries/ge.svg +0 -6
  260. package/hmu/images/countries/gf.svg +0 -5
  261. package/hmu/images/countries/gg.svg +0 -9
  262. package/hmu/images/countries/gh.svg +0 -6
  263. package/hmu/images/countries/gi.svg +0 -33
  264. package/hmu/images/countries/gl.svg +0 -4
  265. package/hmu/images/countries/gm.svg +0 -14
  266. package/hmu/images/countries/gn.svg +0 -7
  267. package/hmu/images/countries/gp.svg +0 -7
  268. package/hmu/images/countries/gq.svg +0 -23
  269. package/hmu/images/countries/gr.svg +0 -22
  270. package/hmu/images/countries/gs.svg +0 -205
  271. package/hmu/images/countries/gt.svg +0 -204
  272. package/hmu/images/countries/gu.svg +0 -39
  273. package/hmu/images/countries/gw.svg +0 -13
  274. package/hmu/images/countries/gy.svg +0 -9
  275. package/hmu/images/countries/hk.svg +0 -32
  276. package/hmu/images/countries/hm.svg +0 -9
  277. package/hmu/images/countries/hn.svg +0 -18
  278. package/hmu/images/countries/hr.svg +0 -59
  279. package/hmu/images/countries/ht.svg +0 -122
  280. package/hmu/images/countries/hu.svg +0 -7
  281. package/hmu/images/countries/id.svg +0 -6
  282. package/hmu/images/countries/ie.svg +0 -7
  283. package/hmu/images/countries/il.svg +0 -14
  284. package/hmu/images/countries/im.svg +0 -36
  285. package/hmu/images/countries/in.svg +0 -25
  286. package/hmu/images/countries/io.svg +0 -148
  287. package/hmu/images/countries/iq.svg +0 -10
  288. package/hmu/images/countries/ir.svg +0 -219
  289. package/hmu/images/countries/is.svg +0 -12
  290. package/hmu/images/countries/it.svg +0 -7
  291. package/hmu/images/countries/je.svg +0 -32
  292. package/hmu/images/countries/jm.svg +0 -8
  293. package/hmu/images/countries/jo.svg +0 -16
  294. package/hmu/images/countries/jp.svg +0 -11
  295. package/hmu/images/countries/ke.svg +0 -23
  296. package/hmu/images/countries/kg.svg +0 -15
  297. package/hmu/images/countries/kh.svg +0 -69
  298. package/hmu/images/countries/ki.svg +0 -36
  299. package/hmu/images/countries/km.svg +0 -16
  300. package/hmu/images/countries/kn.svg +0 -14
  301. package/hmu/images/countries/kp.svg +0 -15
  302. package/hmu/images/countries/kr.svg +0 -24
  303. package/hmu/images/countries/kw.svg +0 -13
  304. package/hmu/images/countries/ky.svg +0 -63
  305. package/hmu/images/countries/kz.svg +0 -23
  306. package/hmu/images/countries/la.svg +0 -12
  307. package/hmu/images/countries/lb.svg +0 -15
  308. package/hmu/images/countries/lc.svg +0 -8
  309. package/hmu/images/countries/li.svg +0 -43
  310. package/hmu/images/countries/lk.svg +0 -22
  311. package/hmu/images/countries/lr.svg +0 -14
  312. package/hmu/images/countries/ls.svg +0 -8
  313. package/hmu/images/countries/lt.svg +0 -7
  314. package/hmu/images/countries/lu.svg +0 -5
  315. package/hmu/images/countries/lv.svg +0 -6
  316. package/hmu/images/countries/ly.svg +0 -13
  317. package/hmu/images/countries/ma.svg +0 -4
  318. package/hmu/images/countries/mc.svg +0 -6
  319. package/hmu/images/countries/md.svg +0 -72
  320. package/hmu/images/countries/me.svg +0 -118
  321. package/hmu/images/countries/mf.svg +0 -7
  322. package/hmu/images/countries/mg.svg +0 -7
  323. package/hmu/images/countries/mh.svg +0 -7
  324. package/hmu/images/countries/mk.svg +0 -5
  325. package/hmu/images/countries/ml.svg +0 -7
  326. package/hmu/images/countries/mm.svg +0 -16
  327. package/hmu/images/countries/mn.svg +0 -13
  328. package/hmu/images/countries/mo.svg +0 -9
  329. package/hmu/images/countries/mp.svg +0 -86
  330. package/hmu/images/countries/mq.svg +0 -7
  331. package/hmu/images/countries/mr.svg +0 -6
  332. package/hmu/images/countries/ms.svg +0 -39
  333. package/hmu/images/countries/mt.svg +0 -49
  334. package/hmu/images/countries/mu.svg +0 -8
  335. package/hmu/images/countries/mv.svg +0 -6
  336. package/hmu/images/countries/mw.svg +0 -10
  337. package/hmu/images/countries/mx.svg +0 -385
  338. package/hmu/images/countries/my.svg +0 -15
  339. package/hmu/images/countries/mz.svg +0 -21
  340. package/hmu/images/countries/na.svg +0 -16
  341. package/hmu/images/countries/nc.svg +0 -7
  342. package/hmu/images/countries/ne.svg +0 -6
  343. package/hmu/images/countries/nf.svg +0 -9
  344. package/hmu/images/countries/ng.svg +0 -6
  345. package/hmu/images/countries/ni.svg +0 -131
  346. package/hmu/images/countries/nl.svg +0 -7
  347. package/hmu/images/countries/no.svg +0 -7
  348. package/hmu/images/countries/np.svg +0 -14
  349. package/hmu/images/countries/nr.svg +0 -12
  350. package/hmu/images/countries/nu.svg +0 -26
  351. package/hmu/images/countries/nz.svg +0 -41
  352. package/hmu/images/countries/om.svg +0 -116
  353. package/hmu/images/countries/pa.svg +0 -14
  354. package/hmu/images/countries/pe.svg +0 -279
  355. package/hmu/images/countries/pf.svg +0 -19
  356. package/hmu/images/countries/pg.svg +0 -9
  357. package/hmu/images/countries/ph.svg +0 -28
  358. package/hmu/images/countries/pk.svg +0 -15
  359. package/hmu/images/countries/pl.svg +0 -6
  360. package/hmu/images/countries/pm.svg +0 -7
  361. package/hmu/images/countries/pn.svg +0 -62
  362. package/hmu/images/countries/pr.svg +0 -13
  363. package/hmu/images/countries/ps.svg +0 -15
  364. package/hmu/images/countries/pt.svg +0 -57
  365. package/hmu/images/countries/pw.svg +0 -11
  366. package/hmu/images/countries/py.svg +0 -157
  367. package/hmu/images/countries/qa.svg +0 -4
  368. package/hmu/images/countries/re.svg +0 -7
  369. package/hmu/images/countries/ro.svg +0 -7
  370. package/hmu/images/countries/rs.svg +0 -292
  371. package/hmu/images/countries/ru.svg +0 -7
  372. package/hmu/images/countries/rw.svg +0 -13
  373. package/hmu/images/countries/sa.svg +0 -26
  374. package/hmu/images/countries/sb.svg +0 -13
  375. package/hmu/images/countries/sc.svg +0 -14
  376. package/hmu/images/countries/sd.svg +0 -13
  377. package/hmu/images/countries/se.svg +0 -16
  378. package/hmu/images/countries/sg.svg +0 -13
  379. package/hmu/images/countries/sh.svg +0 -74
  380. package/hmu/images/countries/si.svg +0 -18
  381. package/hmu/images/countries/sj.svg +0 -7
  382. package/hmu/images/countries/sk.svg +0 -9
  383. package/hmu/images/countries/sl.svg +0 -7
  384. package/hmu/images/countries/sm.svg +0 -91
  385. package/hmu/images/countries/sn.svg +0 -8
  386. package/hmu/images/countries/so.svg +0 -11
  387. package/hmu/images/countries/sr.svg +0 -6
  388. package/hmu/images/countries/ss.svg +0 -8
  389. package/hmu/images/countries/st.svg +0 -16
  390. package/hmu/images/countries/sv.svg +0 -618
  391. package/hmu/images/countries/sx.svg +0 -56
  392. package/hmu/images/countries/sy.svg +0 -6
  393. package/hmu/images/countries/sz.svg +0 -45
  394. package/hmu/images/countries/tc.svg +0 -67
  395. package/hmu/images/countries/td.svg +0 -7
  396. package/hmu/images/countries/tf.svg +0 -15
  397. package/hmu/images/countries/tg.svg +0 -14
  398. package/hmu/images/countries/th.svg +0 -7
  399. package/hmu/images/countries/tj.svg +0 -22
  400. package/hmu/images/countries/tk.svg +0 -5
  401. package/hmu/images/countries/tl.svg +0 -13
  402. package/hmu/images/countries/tm.svg +0 -213
  403. package/hmu/images/countries/tn.svg +0 -13
  404. package/hmu/images/countries/to.svg +0 -10
  405. package/hmu/images/countries/tr.svg +0 -8
  406. package/hmu/images/countries/tt.svg +0 -5
  407. package/hmu/images/countries/tv.svg +0 -27
  408. package/hmu/images/countries/tw.svg +0 -14
  409. package/hmu/images/countries/tz.svg +0 -13
  410. package/hmu/images/countries/ua.svg +0 -6
  411. package/hmu/images/countries/ug.svg +0 -30
  412. package/hmu/images/countries/um.svg +0 -23
  413. package/hmu/images/countries/un.svg +0 -16
  414. package/hmu/images/countries/us.svg +0 -12
  415. package/hmu/images/countries/uy.svg +0 -28
  416. package/hmu/images/countries/uz.svg +0 -30
  417. package/hmu/images/countries/va.svg +0 -483
  418. package/hmu/images/countries/vc.svg +0 -8
  419. package/hmu/images/countries/ve.svg +0 -26
  420. package/hmu/images/countries/vg.svg +0 -133
  421. package/hmu/images/countries/vi.svg +0 -31
  422. package/hmu/images/countries/vn.svg +0 -11
  423. package/hmu/images/countries/vu.svg +0 -18
  424. package/hmu/images/countries/wf.svg +0 -7
  425. package/hmu/images/countries/ws.svg +0 -7
  426. package/hmu/images/countries/ye.svg +0 -7
  427. package/hmu/images/countries/yt.svg +0 -7
  428. package/hmu/images/countries/za.svg +0 -17
  429. package/hmu/images/countries/zm.svg +0 -27
  430. package/hmu/images/countries/zw.svg +0 -21
  431. package/hmu/images/hipay-white-logo.svg +0 -42
  432. package/hmu/images/logo_visa_75wx45h.gif +0 -0
  433. package/hmu/images/map_marker.svg +0 -8
  434. package/svg-icons/HiBriefcaseRescue.js +0 -30
@@ -4,10 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
- var _values = require('babel-runtime/core-js/object/values');
8
-
9
- var _values2 = _interopRequireDefault(_values);
10
-
11
7
  var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
12
8
 
13
9
  var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
@@ -54,10 +50,6 @@ var _DayPickerInput = require('react-day-picker/DayPickerInput');
54
50
 
55
51
  var _DayPickerInput2 = _interopRequireDefault(_DayPickerInput);
56
52
 
57
- var _classnames = require('classnames');
58
-
59
- var _classnames2 = _interopRequireDefault(_classnames);
60
-
61
53
  var _withStyles = require('../styles/withStyles');
62
54
 
63
55
  var _withStyles2 = _interopRequireDefault(_withStyles);
@@ -100,8 +92,6 @@ var _stylesheet2 = _interopRequireDefault(_stylesheet);
100
92
 
101
93
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
102
94
 
103
- // weak
104
-
105
95
  var HiDateRangePicker = function (_React$Component) {
106
96
  (0, _inherits3.default)(HiDateRangePicker, _React$Component);
107
97
 
@@ -110,32 +100,11 @@ var HiDateRangePicker = function (_React$Component) {
110
100
 
111
101
  var _this = (0, _possibleConstructorReturn3.default)(this, (HiDateRangePicker.__proto__ || (0, _getPrototypeOf2.default)(HiDateRangePicker)).call(this));
112
102
 
113
- _this.handleInputChange = function (inputName) {
114
- return function (event) {
115
- _this.event = event;
116
- _this.props.onChange(inputName, event.target.value);
117
- };
118
- };
119
-
120
- _this.handleDayPickerFocus = function (name) {
121
- return function () {
122
- _this.setState({ focusedInput: name });
123
- };
124
- };
125
-
126
- _this.handleDayPickerBlur = function (name) {
127
- return function () {
128
- _this.setState({ focusedInput: '' });
129
- if (_this.props.onBlur) {
130
- _this.props.onBlur(name);
131
- }
132
- };
133
- };
134
-
135
103
  _this.state = {
104
+ fromOpenedPanel: 'calendar',
136
105
  fromCurrentMonth: props.from ? props.from : new Date(),
137
- toCurrentMonth: props.to ? props.to : new Date(),
138
- focusedInput: ''
106
+ toOpenedPanel: 'calendar',
107
+ toCurrentMonth: props.to ? props.to : new Date()
139
108
  };
140
109
 
141
110
  _this.handleReset = _this.handleReset.bind(_this);
@@ -159,9 +128,6 @@ var HiDateRangePicker = function (_React$Component) {
159
128
  _this.handleYearClick = _this.handleYearClick.bind(_this);
160
129
  _this.handleYearClickFrom = _this.handleYearClickFrom.bind(_this);
161
130
  _this.handleYearClickTo = _this.handleYearClickTo.bind(_this);
162
- _this.handleDayPickerFocus = _this.handleDayPickerFocus.bind(_this);
163
- _this.handleDayPickerBlur = _this.handleDayPickerBlur.bind(_this);
164
- _this.handleInputChange = _this.handleInputChange.bind(_this);
165
131
 
166
132
  _this.openPanel = _this.openPanel.bind(_this);
167
133
 
@@ -207,7 +173,11 @@ var HiDateRangePicker = function (_React$Component) {
207
173
  value: function handleReset(name) {
208
174
  var _this3 = this;
209
175
 
210
- this.handleCurrentMonthChange(name, new Date());
176
+ if (name === 'from') {
177
+ this.handleCurrentMonthChange(name, new Date());
178
+ } else {
179
+ this.handleCurrentMonthChange(name, this.props.from);
180
+ }
211
181
 
212
182
  this.timeout = setTimeout(function () {
213
183
  if (_this3.props.onReset) {
@@ -220,45 +190,38 @@ var HiDateRangePicker = function (_React$Component) {
220
190
  value: function handleDayChange(name, day, modifiers) {
221
191
  var _this4 = this;
222
192
 
223
- if (day) {
224
- // if time disabled, focus TO input
225
- // else focus current input
226
- if (!this.props.enableTime) {
227
- if (day instanceof Date) {
228
- if (name === 'from' && this.toInput) {
229
- this.toInput.getInput().focus();
230
- } else if (name === 'to') {
231
- if (typeof this.event === 'undefined' || this.event && this.event.type !== 'change') {
232
- // trigger blur only if user clicks on date into calendar
233
- // else keep focus to see day selection into calendar
234
- document.activeElement.blur();
235
- }
236
- delete this.event;
237
- }
193
+ // if time disabled, focus TO input
194
+ // else focus current input
195
+ if (!this.props.enableTime) {
196
+ if (day instanceof Date) {
197
+ if (name === 'from' && this.toInput) {
198
+ this.toInput.getInput().focus();
199
+ } else if (name === 'to') {
200
+ document.activeElement.blur();
238
201
  }
239
- } else {
240
- this.timeout = setTimeout(function () {
241
- if (_this4[name + 'Input'].getInput()) {
242
- _this4[name + 'Input'].getInput().focus();
243
- }
244
- }, 10);
245
202
  }
246
-
247
- if (this.props.onChange) {
248
- // Keep Time if set
249
- if (this.props.enableTime) {
250
- if (this.props[name]) {
251
- day.setHours(this.props[name].getHours(), this.props[name].getMinutes());
252
- } else {
253
- day.setHours(0, 0);
254
- }
203
+ } else {
204
+ this.timeout = setTimeout(function () {
205
+ if (_this4[name + 'Input'].getInput()) {
206
+ _this4[name + 'Input'].getInput().focus();
255
207
  }
256
- this.props.onChange(name, day);
257
- }
208
+ }, 10);
209
+ }
258
210
 
211
+ if (this.props.onChange) {
212
+ // Keep Time if set
259
213
  if (this.props.enableTime) {
260
- this.openPanel(name, 'time');
214
+ if (this.props[name]) {
215
+ day.setHours(this.props[name].getHours(), this.props[name].getMinutes());
216
+ } else {
217
+ day.setHours(0, 0);
218
+ }
261
219
  }
220
+ this.props.onChange(name, day);
221
+ }
222
+
223
+ if (this.props.enableTime) {
224
+ this.openPanel(name, 'time');
262
225
  }
263
226
  }
264
227
  }, {
@@ -404,10 +367,9 @@ var HiDateRangePicker = function (_React$Component) {
404
367
  }
405
368
  }, {
406
369
  key: 'renderOverlay',
407
- value: function renderOverlay(name, propsOverlay, staticPosition) {
370
+ value: function renderOverlay(name, propsOverlay) {
408
371
  var rangeOverlayProps = (0, _extends3.default)({}, propsOverlay, {
409
- side: name,
410
- staticPosition: staticPosition
372
+ side: name
411
373
  });
412
374
 
413
375
  switch (this.state[name + 'OpenedPanel']) {
@@ -425,12 +387,12 @@ var HiDateRangePicker = function (_React$Component) {
425
387
  }, {
426
388
  key: 'renderOverlayFrom',
427
389
  value: function renderOverlayFrom(propsOverlay) {
428
- return this.renderOverlay('from', propsOverlay, this.props.staticPosition);
390
+ return this.renderOverlay('from', propsOverlay);
429
391
  }
430
392
  }, {
431
393
  key: 'renderOverlayTo',
432
394
  value: function renderOverlayTo(propsOverlay) {
433
- return this.renderOverlay('to', propsOverlay, this.props.staticPosition);
395
+ return this.renderOverlay('to', propsOverlay);
434
396
  }
435
397
  }, {
436
398
  key: 'renderMonthPickerOverlay',
@@ -477,8 +439,7 @@ var HiDateRangePicker = function (_React$Component) {
477
439
  }, {
478
440
  key: 'render',
479
441
  value: function render() {
480
- var _this6 = this,
481
- _classNames;
442
+ var _this6 = this;
482
443
 
483
444
  var _props = this.props,
484
445
  classes = _props.classes,
@@ -496,8 +457,7 @@ var HiDateRangePicker = function (_React$Component) {
496
457
  to = _props.to,
497
458
  translations = _props.translations,
498
459
  id = _props.id,
499
- staticPosition = _props.staticPosition,
500
- props = (0, _objectWithoutProperties3.default)(_props, ['classes', 'disabledDays', 'disablePastDays', 'disableFutureDays', 'enableTime', 'labelFrom', 'labelTo', 'locale', 'format', 'from', 'minimumDate', 'onReset', 'to', 'translations', 'id', 'staticPosition']);
460
+ props = (0, _objectWithoutProperties3.default)(_props, ['classes', 'disabledDays', 'disablePastDays', 'disableFutureDays', 'enableTime', 'labelFrom', 'labelTo', 'locale', 'format', 'from', 'minimumDate', 'onReset', 'to', 'translations', 'id']);
501
461
  var _state = this.state,
502
462
  fromCurrentMonth = _state.fromCurrentMonth,
503
463
  toCurrentMonth = _state.toCurrentMonth;
@@ -521,20 +481,6 @@ var HiDateRangePicker = function (_React$Component) {
521
481
  }
522
482
  };
523
483
 
524
- var selectedDays = [];
525
- var selected = {};
526
- if (from instanceof Date) {
527
- selectedDays.push(from);
528
- selected.from = from;
529
- }
530
- if (to instanceof Date) {
531
- selectedDays.push(to);
532
- selected.to = to;
533
- }
534
- if ((0, _values2.default)(selected).length > 0) {
535
- selectedDays.push(selected);
536
- }
537
-
538
484
  var dayPickerProps = (0, _extends3.default)({
539
485
  classNames: classes,
540
486
  disabledDays: disabledDays,
@@ -544,7 +490,7 @@ var HiDateRangePicker = function (_React$Component) {
544
490
  modifiers: modifiers,
545
491
  modifiersStyles: modifiersStyles,
546
492
  // Both are required ?
547
- selectedDays: selectedDays,
493
+ selectedDays: [from, { from: from, to: to }],
548
494
  todayButton: translations.today,
549
495
  weekdayElement: _Weekday2.default
550
496
  }, props);
@@ -553,9 +499,9 @@ var HiDateRangePicker = function (_React$Component) {
553
499
  // Disable days after 'to' date if define
554
500
 
555
501
  var after = void 0;
556
- if (to instanceof Date && disableFutureDays) {
502
+ if (to && disableFutureDays) {
557
503
  after = to < now ? now : to;
558
- } else if (to instanceof Date) {
504
+ } else if (to) {
559
505
  after = to;
560
506
  } else if (disableFutureDays) {
561
507
  after = now;
@@ -582,9 +528,9 @@ var HiDateRangePicker = function (_React$Component) {
582
528
  // Disable days before 'from' date if define
583
529
 
584
530
  var before = void 0;
585
- if (from instanceof Date && disablePastDays) {
531
+ if (from && disablePastDays) {
586
532
  before = from < now ? now : from;
587
- } else if (from instanceof Date) {
533
+ } else if (from) {
588
534
  before = from;
589
535
  } else if (disablePastDays) {
590
536
  before = now;
@@ -616,8 +562,7 @@ var HiDateRangePicker = function (_React$Component) {
616
562
  }, props, labelFrom && {
617
563
  label: labelFrom
618
564
  }, {
619
- id: id + '-from',
620
- onChange: this.handleInputChange('from')
565
+ id: id + '-from'
621
566
  });
622
567
 
623
568
  var toInputProps = (0, _extends3.default)({}, onReset && {
@@ -627,50 +572,35 @@ var HiDateRangePicker = function (_React$Component) {
627
572
  }, props, labelTo && {
628
573
  label: labelTo
629
574
  }, {
630
- id: id + '-to',
631
- onChange: this.handleInputChange('to')
575
+ id: id + '-to'
632
576
  });
633
577
 
634
- var toClass = (0, _classnames2.default)(classes.toInput, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes.absolute, staticPosition === true && this.state.focusedInput === 'from'), (0, _defineProperty3.default)(_classNames, classes.right4, staticPosition === true && this.state.focusedInput === 'from'), _classNames));
635
-
636
578
  return _react2.default.createElement(
637
579
  'div',
638
- { className: (0, _classnames2.default)(classes.root, classes.rangePickerContainer) },
580
+ { className: classes.root },
639
581
  _react2.default.createElement(
640
582
  'div',
641
- {
642
- className: classes.fromInput,
643
- onFocus: this.handleDayPickerFocus('from'),
644
- onBlur: this.handleDayPickerBlur('from')
645
- },
646
- _react2.default.createElement(
647
- 'div',
648
- null,
649
- _react2.default.createElement(_DayPickerInput2.default, {
650
- ref: function ref(el) {
651
- _this6.fromInput = el;
652
- },
653
- value: from,
654
- hideOnDayClick: false,
655
- overlayComponent: this.renderOverlayFrom,
656
- dayPickerProps: fromDayPickerProps,
657
- component: _HiForm.HiTextField,
658
- inputProps: fromInputProps,
659
- format: enableTime ? format + ' HH:mm' : format,
660
- formatDate: _moment.formatDate,
661
- parseDate: _moment.parseDate,
662
- onDayChange: this.handleDayChangeFrom,
663
- placeholder: ''
664
- })
665
- )
583
+ { className: classes.fromInput },
584
+ _react2.default.createElement(_DayPickerInput2.default, {
585
+ ref: function ref(el) {
586
+ _this6.fromInput = el;
587
+ },
588
+ value: from,
589
+ hideOnDayClick: false,
590
+ overlayComponent: this.renderOverlayFrom,
591
+ dayPickerProps: fromDayPickerProps,
592
+ component: _HiForm.HiTextField,
593
+ inputProps: fromInputProps,
594
+ format: enableTime ? format + ' HH:mm' : format,
595
+ formatDate: _moment.formatDate,
596
+ parseDate: _moment.parseDate,
597
+ onDayChange: this.handleDayChangeFrom,
598
+ placeholder: ''
599
+ })
666
600
  ),
667
601
  _react2.default.createElement(
668
602
  'div',
669
- {
670
- className: toClass,
671
- onFocus: this.handleDayPickerFocus('to'),
672
- onBlur: this.handleDayPickerBlur('to')
673
- },
603
+ { className: classes.toInput },
674
604
  _react2.default.createElement(_DayPickerInput2.default, {
675
605
  ref: function ref(el) {
676
606
  _this6.toInput = el;
@@ -692,13 +622,12 @@ var HiDateRangePicker = function (_React$Component) {
692
622
  }
693
623
  }]);
694
624
  return HiDateRangePicker;
695
- }(_react2.default.Component);
625
+ }(_react2.default.Component); // weak
696
626
 
697
627
  HiDateRangePicker.defaultProps = {
698
628
  disabledDays: [],
699
629
  disablePastDays: false,
700
630
  disableFutureDays: false,
701
- staticPosition: false,
702
631
  enableTime: false,
703
632
  format: 'YYYY-DD-MM',
704
633
  labelFrom: 'Start',
@@ -745,7 +674,7 @@ HiDateRangePicker.propTypes = process.env.NODE_ENV !== "production" ? {
745
674
  /**
746
675
  * Date de début sélectionnée
747
676
  */
748
- from: _propTypes2.default.oneOfType([_propTypes2.default.instanceOf(Date), _propTypes2.default.string]),
677
+ from: _propTypes2.default.instanceOf(Date),
749
678
  /**
750
679
  * Utilisé pour construire les ids des champs from et to en les suffixant "-from" et "-to"
751
680
  */
@@ -768,28 +697,16 @@ HiDateRangePicker.propTypes = process.env.NODE_ENV !== "production" ? {
768
697
  minimumDate: _propTypes2.default.instanceOf(Date),
769
698
  /**
770
699
  * Callback à la sélection d'une date
771
- * @param {string} nom de l'input
772
- */
773
- onBlur: _propTypes2.default.func,
774
- /**
775
- * Callback à la sélection d'une date
776
- * @param {string} nom du champs
777
- * @param {string} nouvelle valeur du champs
778
700
  */
779
701
  onChange: _propTypes2.default.func,
780
702
  /**
781
703
  * Callback au reset de l'input
782
- * @param {string} nom du champs réinitialisé
783
704
  */
784
705
  onReset: _propTypes2.default.func,
785
- /**
786
- * Si true, le calendrier sera dans une div static plutot que dans une popper absolute
787
- */
788
- staticPosition: _propTypes2.default.bool,
789
706
  /**
790
707
  * Date de fin sélectionnée
791
708
  */
792
- to: _propTypes2.default.oneOfType([_propTypes2.default.instanceOf(Date), _propTypes2.default.string]),
709
+ to: _propTypes2.default.instanceOf(Date),
793
710
  /**
794
711
  * Traductions
795
712
  */
@@ -85,10 +85,10 @@ function buildDateRangeOptionByKey(key, t, format) {
85
85
  type = 'primary-highlight';
86
86
  break;
87
87
  case 'cd':
88
- label = t.today;
89
- from = (0, _moment2.default)().startOf('day');
90
- to = (0, _moment2.default)().endOf('day');
91
- info = '' + from.format(format);
88
+ label = t.last_24h;
89
+ from = (0, _moment2.default)().subtract(1, 'day');
90
+ to = (0, _moment2.default)();
91
+ info = from.calendar() + ' ' + t.to_now;
92
92
  break;
93
93
  case 'pd':
94
94
  label = t.yesterday;
@@ -100,13 +100,13 @@ function buildDateRangeOptionByKey(key, t, format) {
100
100
  label = t.current_week;
101
101
  from = (0, _moment2.default)().startOf('week');
102
102
  to = (0, _moment2.default)();
103
- info = '' + t.short_week + from.format('w') + ', \n ' + from.format(format) + ' ' + t.to_now;
103
+ info = t.week + ' ' + from.format('w') + ', \n ' + from.format(format) + ' ' + t.to_now;
104
104
  break;
105
105
  case 'pw':
106
106
  label = t.previous_week;
107
107
  from = (0, _moment2.default)().subtract(1, 'week').startOf('week');
108
108
  to = (0, _moment2.default)().subtract(1, 'week').endOf('week');
109
- info = '' + t.short_week + from.format('w') + ', ' + from.format(format) + ' ' + t.to + ' ' + to.format(format);
109
+ info = t.week + ' ' + from.format('w') + ', ' + from.format(format) + ' ' + t.to + ' ' + to.format(format);
110
110
  break;
111
111
  case 'cm':
112
112
  label = t.current_month;
@@ -130,7 +130,7 @@ function buildDateRangeOptionByKey(key, t, format) {
130
130
  label = t.previous_quarter;
131
131
  from = (0, _moment2.default)().subtract(1, 'quarter').startOf('quarter');
132
132
  to = (0, _moment2.default)().subtract(1, 'quarter').endOf('quarter');
133
- info = from.format('YYYY') + '-' + t.short_quarter + from.format('Q') + ', ' + to.diff(from, 'days') + ' ' + t.days;
133
+ info = from.format('YYYY') + '-Q' + from.format('Q') + ', ' + to.diff(from, 'days') + ' ' + t.days;
134
134
  break;
135
135
  case 'cy':
136
136
  label = t.current_year;
@@ -156,8 +156,7 @@ var styles = exports.styles = function styles(theme) {
156
156
  return {
157
157
  root: {
158
158
  maxWidth: 500,
159
- marginLeft: -4,
160
- alignItems: 'flex-start'
159
+ marginLeft: -4
161
160
  },
162
161
  dateSelect: {
163
162
  paddingTop: 1,
@@ -165,9 +164,7 @@ var styles = exports.styles = function styles(theme) {
165
164
  },
166
165
  dateRangePicker: {
167
166
  width: 'calc(100% + 8px)'
168
- },
169
- smSelect: {},
170
- smRangePicker: {}
167
+ }
171
168
  };
172
169
  };
173
170
 
@@ -193,43 +190,21 @@ var HiDateRangeSelector = function (_React$Component) {
193
190
  _this.props.onChange('from', selectedOption.from.toDate());
194
191
  _this.props.onChange('to', selectedOption.to.toDate());
195
192
  }
196
- } else {
197
- _this.setState({
198
- defaultFrom: undefined,
199
- defaultTo: undefined
200
- });
201
- }
202
- if (_this.props.returnSelectValue === true) {
203
- _this.props.onChange('period', value);
204
193
  }
205
194
  };
206
195
  };
207
196
 
197
+ _this.state = {
198
+ selectedPreset: props.defaultPreset,
199
+ containerWidth: 0
200
+ };
201
+
208
202
  _this.handleReset = _this.handleReset.bind(_this);
209
203
  _this.handleSelectChange = _this.handleSelectChange.bind(_this);
210
204
 
211
205
  _this.options = props.availableOptionKeys.map(function (key) {
212
206
  return buildDateRangeOptionByKey(key, props.translations, props.format);
213
207
  });
214
-
215
- var from = void 0;
216
- var to = void 0;
217
- if (props.defaultPreset !== 'custom') {
218
- var selectedOption = _this.options.find(function (option) {
219
- return option.id === props.defaultPreset;
220
- });
221
- if (selectedOption) {
222
- from = selectedOption.from.toDate();
223
- to = selectedOption.to.toDate();
224
- }
225
- }
226
-
227
- _this.state = {
228
- selectedPreset: props.defaultPreset,
229
- containerWidth: 0,
230
- defaultFrom: from,
231
- defaultTo: to
232
- };
233
208
  return _this;
234
209
  }
235
210
 
@@ -271,13 +246,8 @@ var HiDateRangeSelector = function (_React$Component) {
271
246
  to = _props.to,
272
247
  translations = _props.translations,
273
248
  classes = _props.classes,
274
- selectProps = _props.selectProps,
275
- staticPosition = _props.staticPosition,
276
- props = (0, _objectWithoutProperties3.default)(_props, ['disabled', 'enableTime', 'error', 'errorText', 'helperIcon', 'helperText', 'idRange', 'idSelect', 'label', 'from', 'onChange', 'required', 'to', 'translations', 'classes', 'selectProps', 'staticPosition']);
277
- var _state = this.state,
278
- defaultFrom = _state.defaultFrom,
279
- defaultTo = _state.defaultTo,
280
- selectedPreset = _state.selectedPreset;
249
+ props = (0, _objectWithoutProperties3.default)(_props, ['disabled', 'enableTime', 'error', 'errorText', 'helperIcon', 'helperText', 'idRange', 'idSelect', 'label', 'from', 'onChange', 'required', 'to', 'translations', 'classes']);
250
+ var selectedPreset = this.state.selectedPreset;
281
251
 
282
252
 
283
253
  return _react2.default.createElement(
@@ -292,8 +262,8 @@ var HiDateRangeSelector = function (_React$Component) {
292
262
  },
293
263
  _react2.default.createElement(
294
264
  _Grid2.default,
295
- { item: true, xs: 12, sm: 4, classes: { 'grid-sm-4': classes.smSelect } },
296
- _react2.default.createElement(_HiSelect.HiSelectField, (0, _extends3.default)({
265
+ { item: true, xs: 12, sm: 4 },
266
+ _react2.default.createElement(_HiSelect.HiSelectField, {
297
267
  disabled: disabled,
298
268
  error: error,
299
269
  errorText: errorText,
@@ -308,38 +278,26 @@ var HiDateRangeSelector = function (_React$Component) {
308
278
  translations: translations,
309
279
  value: selectedPreset,
310
280
  containerWidth: this.state.containerWidth,
311
- classes: { root: classes.dateSelect },
312
- staticPosition: staticPosition
313
- }, selectProps))
281
+ classes: { root: classes.dateSelect }
282
+ })
314
283
  ),
315
284
  _react2.default.createElement(
316
285
  _Grid2.default,
317
- { item: true, xs: 12, sm: 8, classes: { 'grid-sm-8': classes.smRangePicker } },
286
+ { item: true, xs: 12, sm: 8 },
318
287
  _react2.default.createElement(_HiDateRangePicker2.default, (0, _extends3.default)({
319
288
  classes: { root: classes.dateRangePicker },
320
289
  id: idRange,
321
- from: from || defaultFrom,
322
- to: to || defaultTo,
290
+ from: from,
291
+ to: to,
323
292
  enableTime: enableTime,
324
293
  onChange: onChange,
325
294
  onReset: this.handleReset,
326
295
  disabled: disabled || selectedPreset !== 'custom',
327
- translations: translations,
328
- staticPosition: staticPosition
296
+ translations: translations
329
297
  }, props))
330
298
  )
331
299
  );
332
300
  }
333
- }], [{
334
- key: 'getDerivedStateFromProps',
335
- value: function getDerivedStateFromProps(props, state) {
336
- if (props.defaultPreset && props.returnSelectValue) {
337
- return {
338
- selectedPreset: props.defaultPreset
339
- };
340
- }
341
- return null;
342
- }
343
301
  }]);
344
302
  return HiDateRangeSelector;
345
303
  }(_react2.default.Component);
@@ -348,23 +306,22 @@ HiDateRangeSelector.defaultProps = {
348
306
  availableOptionKeys: ['cd', 'pd', 'cw', 'pw', 'cm', 'pm', 'cq', 'pq', 'cy', 'custom'],
349
307
  defaultPreset: 'cd',
350
308
  enableTime: false,
351
- returnSelectValue: false,
352
- staticPosition: false,
353
309
  locale: 'fr-FR',
354
310
  format: 'YYYY-DD-MM',
355
311
  translations: {
356
- today: 'Today',
312
+ today: 'today',
357
313
  hour: 'Hour',
358
314
  minute: 'Minute',
359
315
  month: 'Month',
360
316
  quarter: 'Quarter',
361
317
  week: 'Week',
362
- short_week: 'W',
363
- short_quarter: 'Q',
364
318
  year: 'Year',
319
+
365
320
  days: 'days',
321
+
366
322
  custom_period: 'Custom Period',
367
323
  yesterday: 'Yesterday',
324
+ last_24h: 'Last 24h',
368
325
  to: 'to',
369
326
  to_now: 'to now',
370
327
  current_week: 'Current Week',
@@ -412,7 +369,7 @@ HiDateRangeSelector.propTypes = process.env.NODE_ENV !== "production" ? {
412
369
  /**
413
370
  * Date de début sélectionnée
414
371
  */
415
- from: _propTypes2.default.oneOfType([_propTypes2.default.instanceOf(Date), _propTypes2.default.string]),
372
+ from: _propTypes2.default.instanceOf(Date),
416
373
  /**
417
374
  * Si "true", le texte d'aide s'affichera seulement au clic sur l'icône "Information"
418
375
  */
@@ -445,22 +402,10 @@ HiDateRangeSelector.propTypes = process.env.NODE_ENV !== "production" ? {
445
402
  * true si champs obligatoire
446
403
  */
447
404
  required: _propTypes2.default.bool,
448
- /**
449
- * Retourne la valeur du select de la période au change du select
450
- */
451
- returnSelectValue: _propTypes2.default.bool.isRequired,
452
- /**
453
- * Props passées au HiSelectField
454
- */
455
- selectProps: _propTypes2.default.object,
456
- /**
457
- * Si true, le calendrier sera dans une div static plutot que dans une popper absolute
458
- */
459
- staticPosition: _propTypes2.default.bool,
460
405
  /**
461
406
  * Date de fin sélectionnée
462
407
  */
463
- to: _propTypes2.default.oneOfType([_propTypes2.default.instanceOf(Date), _propTypes2.default.string]),
408
+ to: _propTypes2.default.instanceOf(Date),
464
409
  /**
465
410
  * Traductions
466
411
  */
@@ -98,11 +98,9 @@ var CustomOverlayLayout = function CustomOverlayLayout(_ref) {
98
98
 
99
99
  var paperClass = (0, _classnames2.default)(classes.paper, (_classNames = {}, (0, _defineProperty3.default)(_classNames, classes.left, side === 'from'), (0, _defineProperty3.default)(_classNames, classes.right, side === 'to'), _classNames));
100
100
 
101
- var paperProps = (0, _extends3.default)({}, props);
102
-
103
101
  return _react2.default.createElement(
104
102
  _Paper2.default,
105
- { className: paperClass, onBlur: paperProps.onBlur, onFocus: paperProps.onFocus },
103
+ { className: paperClass },
106
104
  _react2.default.createElement(
107
105
  'div',
108
106
  { className: classes.overlay },