@hipay/hipay-material-ui 1.0.0-beta.5 → 1.0.0-beta.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (288) hide show
  1. package/HI-CHANGELOG.md +42 -0
  2. package/HiAlertModal/HiAlertModal.js +247 -0
  3. package/HiAlertModal/index.js +16 -0
  4. package/HiColoredLabel/HiColoredLabel.js +2 -1
  5. package/HiDatePicker/HiDateRangeSelector.js +8 -0
  6. package/HiExpansionPanel/HiExpansionPanel.js +231 -0
  7. package/HiExpansionPanel/index.js +16 -0
  8. package/HiForm/HiFormControl.js +3 -0
  9. package/HiSelect/HiSelect.js +50 -34
  10. package/HiSelectableList/HiSelectableListItem.js +35 -9
  11. package/HiTable/BodyCells/CellCountry.js +1 -1
  12. package/HiTopBar/HiTopBar.js +0 -4
  13. package/es/HiAlertModal/HiAlertModal.js +189 -0
  14. package/es/HiAlertModal/index.js +1 -0
  15. package/es/HiColoredLabel/HiColoredLabel.js +2 -1
  16. package/es/HiDatePicker/HiDateRangeSelector.js +8 -0
  17. package/es/HiExpansionPanel/HiExpansionPanel.js +170 -0
  18. package/es/HiExpansionPanel/index.js +1 -0
  19. package/es/HiForm/HiFormControl.js +3 -0
  20. package/es/HiSelect/HiSelect.js +49 -34
  21. package/es/HiSelectableList/HiSelectableListItem.js +31 -9
  22. package/es/HiTable/BodyCells/CellCountry.js +1 -1
  23. package/es/HiTopBar/HiTopBar.js +0 -4
  24. package/es/styles/createHiMuiTheme.js +4 -0
  25. package/hmu/images/countries/ad.svg +151 -0
  26. package/hmu/images/countries/ae.svg +6 -0
  27. package/hmu/images/countries/af.svg +83 -0
  28. package/hmu/images/countries/ag.svg +15 -0
  29. package/hmu/images/countries/ai.svg +767 -0
  30. package/hmu/images/countries/al.svg +5 -0
  31. package/hmu/images/countries/am.svg +5 -0
  32. package/hmu/images/countries/ao.svg +13 -0
  33. package/hmu/images/countries/aq.svg +6 -0
  34. package/hmu/images/countries/ar.svg +32 -0
  35. package/hmu/images/countries/as.svg +33 -0
  36. package/hmu/images/countries/at.svg +6 -0
  37. package/hmu/images/countries/au.svg +9 -0
  38. package/hmu/images/countries/aw.svg +186 -0
  39. package/hmu/images/countries/ax.svg +18 -0
  40. package/hmu/images/countries/az.svg +8 -0
  41. package/hmu/images/countries/ba.svg +12 -0
  42. package/hmu/images/countries/bb.svg +6 -0
  43. package/hmu/images/countries/bd.svg +4 -0
  44. package/hmu/images/countries/be.svg +7 -0
  45. package/hmu/images/countries/bf.svg +7 -0
  46. package/hmu/images/countries/bg.svg +7 -0
  47. package/hmu/images/countries/bh.svg +11 -0
  48. package/hmu/images/countries/bi.svg +15 -0
  49. package/hmu/images/countries/bj.svg +14 -0
  50. package/hmu/images/countries/bl.svg +7 -0
  51. package/hmu/images/countries/bm.svg +99 -0
  52. package/hmu/images/countries/bn.svg +36 -0
  53. package/hmu/images/countries/bo.svg +686 -0
  54. package/hmu/images/countries/bq.svg +5 -0
  55. package/hmu/images/countries/br.svg +45 -0
  56. package/hmu/images/countries/bs.svg +13 -0
  57. package/hmu/images/countries/bt.svg +89 -0
  58. package/hmu/images/countries/bv.svg +13 -0
  59. package/hmu/images/countries/bw.svg +7 -0
  60. package/hmu/images/countries/by.svg +61 -0
  61. package/hmu/images/countries/bz.svg +146 -0
  62. package/hmu/images/countries/ca.svg +4 -0
  63. package/hmu/images/countries/cc.svg +19 -0
  64. package/hmu/images/countries/cd.svg +5 -0
  65. package/hmu/images/countries/cf.svg +15 -0
  66. package/hmu/images/countries/cg.svg +12 -0
  67. package/hmu/images/countries/ch.svg +9 -0
  68. package/hmu/images/countries/ci.svg +7 -0
  69. package/hmu/images/countries/ck.svg +9 -0
  70. package/hmu/images/countries/cl.svg +13 -0
  71. package/hmu/images/countries/cm.svg +15 -0
  72. package/hmu/images/countries/cn.svg +11 -0
  73. package/hmu/images/countries/co.svg +7 -0
  74. package/hmu/images/countries/cr.svg +7 -0
  75. package/hmu/images/countries/cu.svg +13 -0
  76. package/hmu/images/countries/cv.svg +13 -0
  77. package/hmu/images/countries/cw.svg +14 -0
  78. package/hmu/images/countries/cx.svg +15 -0
  79. package/hmu/images/countries/cy.svg +6 -0
  80. package/hmu/images/countries/cz.svg +12 -0
  81. package/hmu/images/countries/de.svg +5 -0
  82. package/hmu/images/countries/dj.svg +13 -0
  83. package/hmu/images/countries/dk.svg +5 -0
  84. package/hmu/images/countries/dm.svg +152 -0
  85. package/hmu/images/countries/do.svg +6745 -0
  86. package/hmu/images/countries/dz.svg +5 -0
  87. package/hmu/images/countries/ec.svg +141 -0
  88. package/hmu/images/countries/ee.svg +7 -0
  89. package/hmu/images/countries/eg.svg +38 -0
  90. package/hmu/images/countries/eh.svg +15 -0
  91. package/hmu/images/countries/er.svg +8 -0
  92. package/hmu/images/countries/es-ct.svg +4 -0
  93. package/hmu/images/countries/es.svg +581 -0
  94. package/hmu/images/countries/et.svg +14 -0
  95. package/hmu/images/countries/eu.svg +28 -0
  96. package/hmu/images/countries/fi.svg +5 -0
  97. package/hmu/images/countries/fj.svg +124 -0
  98. package/hmu/images/countries/fk.svg +90 -0
  99. package/hmu/images/countries/fm.svg +11 -0
  100. package/hmu/images/countries/fo.svg +12 -0
  101. package/hmu/images/countries/fr.svg +7 -0
  102. package/hmu/images/countries/ga.svg +7 -0
  103. package/hmu/images/countries/gb-eng.svg +5 -0
  104. package/hmu/images/countries/gb-nir.svg +137 -0
  105. package/hmu/images/countries/gb-sct.svg +4 -0
  106. package/hmu/images/countries/gb-wls.svg +9 -0
  107. package/hmu/images/countries/gb.svg +15 -0
  108. package/hmu/images/countries/gd.svg +27 -0
  109. package/hmu/images/countries/ge.svg +6 -0
  110. package/hmu/images/countries/gf.svg +5 -0
  111. package/hmu/images/countries/gg.svg +9 -0
  112. package/hmu/images/countries/gh.svg +6 -0
  113. package/hmu/images/countries/gi.svg +33 -0
  114. package/hmu/images/countries/gl.svg +4 -0
  115. package/hmu/images/countries/gm.svg +14 -0
  116. package/hmu/images/countries/gn.svg +7 -0
  117. package/hmu/images/countries/gp.svg +7 -0
  118. package/hmu/images/countries/gq.svg +23 -0
  119. package/hmu/images/countries/gr.svg +22 -0
  120. package/hmu/images/countries/gs.svg +205 -0
  121. package/hmu/images/countries/gt.svg +204 -0
  122. package/hmu/images/countries/gu.svg +39 -0
  123. package/hmu/images/countries/gw.svg +13 -0
  124. package/hmu/images/countries/gy.svg +9 -0
  125. package/hmu/images/countries/hk.svg +32 -0
  126. package/hmu/images/countries/hm.svg +9 -0
  127. package/hmu/images/countries/hn.svg +18 -0
  128. package/hmu/images/countries/hr.svg +59 -0
  129. package/hmu/images/countries/ht.svg +122 -0
  130. package/hmu/images/countries/hu.svg +7 -0
  131. package/hmu/images/countries/id.svg +6 -0
  132. package/hmu/images/countries/ie.svg +7 -0
  133. package/hmu/images/countries/il.svg +14 -0
  134. package/hmu/images/countries/im.svg +36 -0
  135. package/hmu/images/countries/in.svg +25 -0
  136. package/hmu/images/countries/io.svg +148 -0
  137. package/hmu/images/countries/iq.svg +10 -0
  138. package/hmu/images/countries/ir.svg +219 -0
  139. package/hmu/images/countries/is.svg +12 -0
  140. package/hmu/images/countries/it.svg +7 -0
  141. package/hmu/images/countries/je.svg +32 -0
  142. package/hmu/images/countries/jm.svg +8 -0
  143. package/hmu/images/countries/jo.svg +16 -0
  144. package/hmu/images/countries/jp.svg +11 -0
  145. package/hmu/images/countries/ke.svg +23 -0
  146. package/hmu/images/countries/kg.svg +15 -0
  147. package/hmu/images/countries/kh.svg +69 -0
  148. package/hmu/images/countries/ki.svg +36 -0
  149. package/hmu/images/countries/km.svg +16 -0
  150. package/hmu/images/countries/kn.svg +14 -0
  151. package/hmu/images/countries/kp.svg +15 -0
  152. package/hmu/images/countries/kr.svg +24 -0
  153. package/hmu/images/countries/kw.svg +13 -0
  154. package/hmu/images/countries/ky.svg +63 -0
  155. package/hmu/images/countries/kz.svg +23 -0
  156. package/hmu/images/countries/la.svg +12 -0
  157. package/hmu/images/countries/lb.svg +15 -0
  158. package/hmu/images/countries/lc.svg +8 -0
  159. package/hmu/images/countries/li.svg +43 -0
  160. package/hmu/images/countries/lk.svg +22 -0
  161. package/hmu/images/countries/lr.svg +14 -0
  162. package/hmu/images/countries/ls.svg +8 -0
  163. package/hmu/images/countries/lt.svg +7 -0
  164. package/hmu/images/countries/lu.svg +5 -0
  165. package/hmu/images/countries/lv.svg +6 -0
  166. package/hmu/images/countries/ly.svg +13 -0
  167. package/hmu/images/countries/ma.svg +4 -0
  168. package/hmu/images/countries/mc.svg +6 -0
  169. package/hmu/images/countries/md.svg +72 -0
  170. package/hmu/images/countries/me.svg +118 -0
  171. package/hmu/images/countries/mf.svg +7 -0
  172. package/hmu/images/countries/mg.svg +7 -0
  173. package/hmu/images/countries/mh.svg +7 -0
  174. package/hmu/images/countries/mk.svg +5 -0
  175. package/hmu/images/countries/ml.svg +7 -0
  176. package/hmu/images/countries/mm.svg +16 -0
  177. package/hmu/images/countries/mn.svg +13 -0
  178. package/hmu/images/countries/mo.svg +9 -0
  179. package/hmu/images/countries/mp.svg +86 -0
  180. package/hmu/images/countries/mq.svg +7 -0
  181. package/hmu/images/countries/mr.svg +6 -0
  182. package/hmu/images/countries/ms.svg +39 -0
  183. package/hmu/images/countries/mt.svg +49 -0
  184. package/hmu/images/countries/mu.svg +8 -0
  185. package/hmu/images/countries/mv.svg +6 -0
  186. package/hmu/images/countries/mw.svg +10 -0
  187. package/hmu/images/countries/mx.svg +385 -0
  188. package/hmu/images/countries/my.svg +15 -0
  189. package/hmu/images/countries/mz.svg +21 -0
  190. package/hmu/images/countries/na.svg +16 -0
  191. package/hmu/images/countries/nc.svg +7 -0
  192. package/hmu/images/countries/ne.svg +6 -0
  193. package/hmu/images/countries/nf.svg +9 -0
  194. package/hmu/images/countries/ng.svg +6 -0
  195. package/hmu/images/countries/ni.svg +131 -0
  196. package/hmu/images/countries/nl.svg +7 -0
  197. package/hmu/images/countries/no.svg +7 -0
  198. package/hmu/images/countries/np.svg +14 -0
  199. package/hmu/images/countries/nr.svg +12 -0
  200. package/hmu/images/countries/nu.svg +26 -0
  201. package/hmu/images/countries/nz.svg +41 -0
  202. package/hmu/images/countries/om.svg +116 -0
  203. package/hmu/images/countries/pa.svg +14 -0
  204. package/hmu/images/countries/pe.svg +279 -0
  205. package/hmu/images/countries/pf.svg +19 -0
  206. package/hmu/images/countries/pg.svg +9 -0
  207. package/hmu/images/countries/ph.svg +28 -0
  208. package/hmu/images/countries/pk.svg +15 -0
  209. package/hmu/images/countries/pl.svg +6 -0
  210. package/hmu/images/countries/pm.svg +7 -0
  211. package/hmu/images/countries/pn.svg +62 -0
  212. package/hmu/images/countries/pr.svg +13 -0
  213. package/hmu/images/countries/ps.svg +15 -0
  214. package/hmu/images/countries/pt.svg +57 -0
  215. package/hmu/images/countries/pw.svg +11 -0
  216. package/hmu/images/countries/py.svg +157 -0
  217. package/hmu/images/countries/qa.svg +4 -0
  218. package/hmu/images/countries/re.svg +7 -0
  219. package/hmu/images/countries/ro.svg +7 -0
  220. package/hmu/images/countries/rs.svg +292 -0
  221. package/hmu/images/countries/ru.svg +7 -0
  222. package/hmu/images/countries/rw.svg +13 -0
  223. package/hmu/images/countries/sa.svg +26 -0
  224. package/hmu/images/countries/sb.svg +13 -0
  225. package/hmu/images/countries/sc.svg +14 -0
  226. package/hmu/images/countries/sd.svg +13 -0
  227. package/hmu/images/countries/se.svg +16 -0
  228. package/hmu/images/countries/sg.svg +13 -0
  229. package/hmu/images/countries/sh.svg +74 -0
  230. package/hmu/images/countries/si.svg +18 -0
  231. package/hmu/images/countries/sj.svg +7 -0
  232. package/hmu/images/countries/sk.svg +9 -0
  233. package/hmu/images/countries/sl.svg +7 -0
  234. package/hmu/images/countries/sm.svg +91 -0
  235. package/hmu/images/countries/sn.svg +8 -0
  236. package/hmu/images/countries/so.svg +11 -0
  237. package/hmu/images/countries/sr.svg +6 -0
  238. package/hmu/images/countries/ss.svg +8 -0
  239. package/hmu/images/countries/st.svg +16 -0
  240. package/hmu/images/countries/sv.svg +618 -0
  241. package/hmu/images/countries/sx.svg +56 -0
  242. package/hmu/images/countries/sy.svg +6 -0
  243. package/hmu/images/countries/sz.svg +45 -0
  244. package/hmu/images/countries/tc.svg +67 -0
  245. package/hmu/images/countries/td.svg +7 -0
  246. package/hmu/images/countries/tf.svg +15 -0
  247. package/hmu/images/countries/tg.svg +14 -0
  248. package/hmu/images/countries/th.svg +7 -0
  249. package/hmu/images/countries/tj.svg +22 -0
  250. package/hmu/images/countries/tk.svg +5 -0
  251. package/hmu/images/countries/tl.svg +13 -0
  252. package/hmu/images/countries/tm.svg +213 -0
  253. package/hmu/images/countries/tn.svg +13 -0
  254. package/hmu/images/countries/to.svg +10 -0
  255. package/hmu/images/countries/tr.svg +8 -0
  256. package/hmu/images/countries/tt.svg +5 -0
  257. package/hmu/images/countries/tv.svg +27 -0
  258. package/hmu/images/countries/tw.svg +14 -0
  259. package/hmu/images/countries/tz.svg +13 -0
  260. package/hmu/images/countries/ua.svg +6 -0
  261. package/hmu/images/countries/ug.svg +30 -0
  262. package/hmu/images/countries/um.svg +23 -0
  263. package/hmu/images/countries/un.svg +16 -0
  264. package/hmu/images/countries/us.svg +12 -0
  265. package/hmu/images/countries/uy.svg +28 -0
  266. package/hmu/images/countries/uz.svg +30 -0
  267. package/hmu/images/countries/va.svg +483 -0
  268. package/hmu/images/countries/vc.svg +8 -0
  269. package/hmu/images/countries/ve.svg +26 -0
  270. package/hmu/images/countries/vg.svg +133 -0
  271. package/hmu/images/countries/vi.svg +31 -0
  272. package/hmu/images/countries/vn.svg +11 -0
  273. package/hmu/images/countries/vu.svg +18 -0
  274. package/hmu/images/countries/wf.svg +7 -0
  275. package/hmu/images/countries/ws.svg +7 -0
  276. package/hmu/images/countries/ye.svg +7 -0
  277. package/hmu/images/countries/yt.svg +7 -0
  278. package/hmu/images/countries/za.svg +17 -0
  279. package/hmu/images/countries/zm.svg +27 -0
  280. package/hmu/images/countries/zw.svg +21 -0
  281. package/hmu/images/hipay-white-logo.svg +42 -0
  282. package/hmu/images/logo_visa_75wx45h.gif +0 -0
  283. package/index.es.js +1 -1
  284. package/index.js +1 -1
  285. package/package.json +1 -1
  286. package/styles/createHiMuiTheme.js +4 -0
  287. package/umd/hipay-material-ui.development.js +828 -782
  288. package/umd/hipay-material-ui.production.min.js +4 -4
@@ -0,0 +1,42 @@
1
+ ## HEAD
2
+
3
+ Changes. Changes everywhere!
4
+
5
+ ## 1.0.0-beta.4
6
+ ###### *?? ?? 2018*
7
+
8
+ - Corrections de styles sur quelques composants
9
+ - Fix sur le composant HiSelect avec une value vide
10
+
11
+ ### Breaking change
12
+
13
+ - N/A
14
+
15
+ #### Component Fixes / Enhancements
16
+
17
+ - [HiTopBar] Ajout d'une props refButtons poutr récupérer la div contenant les boutons "menu" et "back"
18
+ - [HiSelect] Gestion d'une value vide
19
+ - [HiSelect] Ajout du focus sur l'élement SelectInput à la fermeture du select
20
+ - [HiSelectField] Ajout de la props className
21
+ - [HiSuggestSelectField] Ajout de la props className
22
+ - [HiSuggestSelect] Gestion du focus et du open des suggestions
23
+ - [SelectInput] Suppression du soulignage bleu au hover quand champs en erreur
24
+ - [HiFormControl] Stop de l'event click sur error pour ne pas ouvrir le select
25
+
26
+ ## 1.0.0-beta.3
27
+ ###### *28 mars 2018*
28
+
29
+ - Ajout d'un CHANGELOG HiPay ! (HI-CHANGELOG.md)
30
+ - Corrections de styles sur quelques composants
31
+
32
+ ### Breaking change
33
+
34
+ - [HiTopBar] Ajout d'une props "searchInput" obligatoire
35
+
36
+ #### Component Fixes / Enhancements
37
+
38
+ - [HiTopBar] Ajout du style "overflow: 'inherit'" sur le Collapse si pas "hideable", afin de ne pas cacher les suggestions
39
+ - [HiTopBar] Gestion du focus en props plutôt qu'en state
40
+ - [HiTopBar] Ajout d'une props "searchInput" obligatoire
41
+ - [HiChipSwitch] Ajout d'un title sur la sélection
42
+ - [HiDateRangePicker] Correction du focus
@@ -0,0 +1,247 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.styles = undefined;
7
+
8
+ var _extends2 = require('babel-runtime/helpers/extends');
9
+
10
+ var _extends3 = _interopRequireDefault(_extends2);
11
+
12
+ var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
13
+
14
+ var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
15
+
16
+ var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
17
+
18
+ var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
19
+
20
+ var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
21
+
22
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
23
+
24
+ var _createClass2 = require('babel-runtime/helpers/createClass');
25
+
26
+ var _createClass3 = _interopRequireDefault(_createClass2);
27
+
28
+ var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
29
+
30
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
31
+
32
+ var _inherits2 = require('babel-runtime/helpers/inherits');
33
+
34
+ var _inherits3 = _interopRequireDefault(_inherits2);
35
+
36
+ var _react = require('react');
37
+
38
+ var _react2 = _interopRequireDefault(_react);
39
+
40
+ var _propTypes = require('prop-types');
41
+
42
+ var _propTypes2 = _interopRequireDefault(_propTypes);
43
+
44
+ var _Dialog = require('material-ui/Dialog');
45
+
46
+ var _Dialog2 = _interopRequireDefault(_Dialog);
47
+
48
+ var _styles = require('../styles');
49
+
50
+ var _HiButton = require('../HiButton');
51
+
52
+ var _HiButton2 = _interopRequireDefault(_HiButton);
53
+
54
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
55
+
56
+ var styles = exports.styles = function styles(theme) {
57
+ return {
58
+ classContent: {
59
+ fontSize: 14,
60
+ lineHeight: '24px',
61
+ color: '#484848'
62
+ },
63
+ classPaper: {
64
+ maxWidth: 300
65
+ },
66
+ classCancelButton: {
67
+ float: 'right'
68
+ },
69
+ classTitle: {
70
+ fontSize: 20,
71
+ fontFamily: theme.typography.fontFamily,
72
+ fontWeight: theme.typography.fontWeightLight,
73
+ lineHeight: '24px'
74
+ },
75
+ classAction: {
76
+ display: 'inline-block'
77
+ },
78
+ classDialogRoot: {
79
+ backgroundColor: 'rgba(0, 0, 0, 0.28)'
80
+ }
81
+ };
82
+ };
83
+
84
+ /**
85
+ * Pop up d'alert
86
+ */
87
+ // @inheritedComponent Dialog
88
+
89
+ var HiAlertModal = function (_React$PureComponent) {
90
+ (0, _inherits3.default)(HiAlertModal, _React$PureComponent);
91
+
92
+ function HiAlertModal(props) {
93
+ (0, _classCallCheck3.default)(this, HiAlertModal);
94
+
95
+ var _this = (0, _possibleConstructorReturn3.default)(this, (HiAlertModal.__proto__ || (0, _getPrototypeOf2.default)(HiAlertModal)).call(this, props));
96
+
97
+ _this.handleClickCancel = function () {
98
+ if (_this.props.onCancelClick) {
99
+ _this.props.onCancelClick();
100
+ }
101
+ };
102
+
103
+ _this.handleClickSubmit = function () {
104
+ if (_this.props.onSubmitClick) {
105
+ _this.props.onSubmitClick();
106
+ }
107
+ };
108
+
109
+ _this.handleOnClose = function () {
110
+ if (_this.props.onClose) {
111
+ _this.props.onClose();
112
+ }
113
+ };
114
+
115
+ _this.handleOnClose = _this.handleOnClose.bind(_this);
116
+ _this.handleClickCancel = _this.handleClickCancel.bind(_this);
117
+ _this.handleClickSubmit = _this.handleClickSubmit.bind(_this);
118
+ return _this;
119
+ }
120
+
121
+ // Appelé au clic du bouton d'annulation
122
+
123
+
124
+ // Appelé au clic du bouton de soumission
125
+
126
+
127
+ // Appelé si clic en dehors de la pop up
128
+
129
+
130
+ (0, _createClass3.default)(HiAlertModal, [{
131
+ key: 'render',
132
+
133
+
134
+ // Render
135
+ value: function render() {
136
+ var _props = this.props,
137
+ labelSubmitButton = _props.labelSubmitButton,
138
+ labelCancelButton = _props.labelCancelButton,
139
+ content = _props.content,
140
+ title = _props.title,
141
+ positive = _props.positive,
142
+ negative = _props.negative,
143
+ open = _props.open,
144
+ onCancelClick = _props.onCancelClick,
145
+ onSubmitClick = _props.onSubmitClick,
146
+ classes = _props.classes,
147
+ props = (0, _objectWithoutProperties3.default)(_props, ['labelSubmitButton', 'labelCancelButton', 'content', 'title', 'positive', 'negative', 'open', 'onCancelClick', 'onSubmitClick', 'classes']);
148
+
149
+ return _react2.default.createElement(
150
+ _Dialog2.default,
151
+ (0, _extends3.default)({
152
+ open: open,
153
+ onClose: this.handleOnClose,
154
+ classes: { paper: classes.classPaper, root: classes.classDialogRoot }
155
+ }, props),
156
+ _react2.default.createElement(
157
+ _Dialog.DialogTitle,
158
+ { disableTypography: true, classes: { root: classes.classTitle } },
159
+ title
160
+ ),
161
+ _react2.default.createElement(
162
+ _Dialog.DialogContent,
163
+ null,
164
+ _react2.default.createElement(
165
+ _Dialog.DialogContentText,
166
+ { classes: { root: classes.classContent } },
167
+ content
168
+ )
169
+ ),
170
+ _react2.default.createElement(
171
+ _Dialog.DialogActions,
172
+ { classes: { root: classes.classAction } },
173
+ _react2.default.createElement(
174
+ _HiButton2.default,
175
+ {
176
+ onClick: this.handleClickSubmit,
177
+ positive: positive,
178
+ negative: negative
179
+ },
180
+ labelSubmitButton
181
+ ),
182
+ _react2.default.createElement(
183
+ _HiButton2.default,
184
+ {
185
+ classes: { root: classes.classCancelButton },
186
+ onClick: this.handleClickCancel
187
+ },
188
+ labelCancelButton
189
+ )
190
+ )
191
+ );
192
+ }
193
+ }]);
194
+ return HiAlertModal;
195
+ }(_react2.default.PureComponent);
196
+
197
+ HiAlertModal.defaultProps = {
198
+ negative: false,
199
+ positive: false
200
+ };
201
+ HiAlertModal.propTypes = process.env.NODE_ENV !== "production" ? {
202
+ /**
203
+ * Surcharge les classes du composant
204
+ */
205
+ classes: _propTypes2.default.object,
206
+ /**
207
+ * Texte contenu dans la modal
208
+ */
209
+ content: _propTypes2.default.string,
210
+ /**
211
+ * Texte sur le bouton d'annulation
212
+ */
213
+ labelCancelButton: _propTypes2.default.string,
214
+ /**
215
+ * Texte sur le bouton de soumission
216
+ */
217
+ labelSubmitButton: _propTypes2.default.string,
218
+ /**
219
+ * Colore le bouton de soumission en rouge
220
+ */
221
+ negative: _propTypes2.default.bool,
222
+ /**
223
+ * Fonction de callback appelée au clic sur le bouton d'annulation
224
+ */
225
+ onCancelClick: _propTypes2.default.func,
226
+ /**
227
+ * Fonction de callback appelée au clic en dehors de la pop up
228
+ */
229
+ onClose: _propTypes2.default.func,
230
+ /**
231
+ * Fonction de callback appelée au clic sur le bouton de soumission
232
+ */
233
+ onSubmitClick: _propTypes2.default.func,
234
+ /**
235
+ * pop up ouverte ou pas
236
+ */
237
+ open: _propTypes2.default.bool.isRequired,
238
+ /**
239
+ * Colore le bouton de soumission en vert
240
+ */
241
+ positive: _propTypes2.default.bool,
242
+ /**
243
+ * Titre de la modal
244
+ */
245
+ title: _propTypes2.default.string
246
+ } : {};
247
+ exports.default = (0, _styles.withStyles)(styles, { name: 'HmuiHiAlertModal' })(HiAlertModal);
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _HiAlertModal = require('./HiAlertModal');
8
+
9
+ Object.defineProperty(exports, 'default', {
10
+ enumerable: true,
11
+ get: function get() {
12
+ return _interopRequireDefault(_HiAlertModal).default;
13
+ }
14
+ });
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -110,7 +110,8 @@ HiColoredLabel.propTypes = process.env.NODE_ENV !== "production" ? {
110
110
  } : {};
111
111
 
112
112
  HiColoredLabel.defaultProps = {
113
- active: false
113
+ active: false,
114
+ color: '#737373'
114
115
  };
115
116
 
116
117
  exports.default = (0, _withStyles2.default)(styles, { name: 'HmuiHiColoredLabel' })(HiColoredLabel);
@@ -191,6 +191,9 @@ var HiDateRangeSelector = function (_React$Component) {
191
191
  if (selectedOption) {
192
192
  _this.props.onChange('from', selectedOption.from.toDate());
193
193
  _this.props.onChange('to', selectedOption.to.toDate());
194
+ if (_this.props.returnSelectValue === true) {
195
+ _this.props.onChange('period', value);
196
+ }
194
197
  }
195
198
  }
196
199
  };
@@ -308,6 +311,7 @@ HiDateRangeSelector.defaultProps = {
308
311
  availableOptionKeys: ['cd', 'pd', 'cw', 'pw', 'cm', 'pm', 'cq', 'pq', 'cy', 'custom'],
309
312
  defaultPreset: 'cd',
310
313
  enableTime: false,
314
+ returnSelectValue: false,
311
315
  locale: 'fr-FR',
312
316
  format: 'YYYY-DD-MM',
313
317
  translations: {
@@ -402,6 +406,10 @@ HiDateRangeSelector.propTypes = process.env.NODE_ENV !== "production" ? {
402
406
  * true si champs obligatoire
403
407
  */
404
408
  required: _propTypes2.default.bool,
409
+ /**
410
+ * Retourne la valeur du select de la période au change du select
411
+ */
412
+ returnSelectValue: _propTypes2.default.bool.isRequired,
405
413
  /**
406
414
  * Date de fin sélectionnée
407
415
  */
@@ -0,0 +1,231 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.styles = undefined;
7
+
8
+ var _extends2 = require('babel-runtime/helpers/extends');
9
+
10
+ var _extends3 = _interopRequireDefault(_extends2);
11
+
12
+ var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
13
+
14
+ var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
15
+
16
+ var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
17
+
18
+ var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
19
+
20
+ var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
21
+
22
+ var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
23
+
24
+ var _createClass2 = require('babel-runtime/helpers/createClass');
25
+
26
+ var _createClass3 = _interopRequireDefault(_createClass2);
27
+
28
+ var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
29
+
30
+ var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
31
+
32
+ var _inherits2 = require('babel-runtime/helpers/inherits');
33
+
34
+ var _inherits3 = _interopRequireDefault(_inherits2);
35
+
36
+ var _react = require('react');
37
+
38
+ var _react2 = _interopRequireDefault(_react);
39
+
40
+ var _propTypes = require('prop-types');
41
+
42
+ var _propTypes2 = _interopRequireDefault(_propTypes);
43
+
44
+ var _ExpansionPanel = require('material-ui/ExpansionPanel');
45
+
46
+ var _ExpansionPanel2 = _interopRequireDefault(_ExpansionPanel);
47
+
48
+ var _Typography = require('material-ui/Typography');
49
+
50
+ var _Typography2 = _interopRequireDefault(_Typography);
51
+
52
+ var _MenuDown = require('mdi-material-ui/MenuDown');
53
+
54
+ var _MenuDown2 = _interopRequireDefault(_MenuDown);
55
+
56
+ var _styles = require('../styles');
57
+
58
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
59
+
60
+ // @inheritedComponent ExpansionPanel
61
+
62
+ var styles = exports.styles = function styles(theme) {
63
+ return {
64
+ heading: {
65
+ fontSize: 20,
66
+ lineHeight: '24px',
67
+ fontWeight: theme.typography.fontWeightLight
68
+ },
69
+ secondaryHeading: {
70
+ fontSize: 11,
71
+ color: '#737373',
72
+ textAlign: 'right',
73
+ lineHeight: '24px',
74
+ fontWeight: theme.typography.fontWeightRegular,
75
+ verticalAlign: 'middle',
76
+ '&>svg': {
77
+ fontSize: 18,
78
+ marginLeft: 3,
79
+ marginBottom: -5
80
+ }
81
+ },
82
+ column: {
83
+ flexBasis: '100%'
84
+ },
85
+ panelSummary: {
86
+ '&>div:first-child': {
87
+ margin: '12px 0',
88
+ '&>div:last-child': {
89
+ paddingRight: 8
90
+ }
91
+ },
92
+ '&>div:last-child': {
93
+ width: 16,
94
+ height: 16
95
+ }
96
+ },
97
+ panelSummaryExpanded: {
98
+ borderBottom: '1px solid #E3E6E7',
99
+ minHeight: 0
100
+ },
101
+ expandMoreIcon: {
102
+ margin: 0,
103
+ fontSize: 18,
104
+ width: 20
105
+ },
106
+ panel: {
107
+ boxShadow: 'none',
108
+ border: 'none'
109
+ },
110
+ panelDetails: {
111
+ padding: '8px 24px 8px'
112
+ },
113
+ disabledPanel: {
114
+ backgroundColor: '#ffffff',
115
+ opacity: 1
116
+ },
117
+ expandIconExpanded: {
118
+ transform: 'translateY(-50%) rotate(-90deg)'
119
+ }
120
+ };
121
+ };
122
+
123
+ var HiExpansionPanel = function (_React$PureComponent) {
124
+ (0, _inherits3.default)(HiExpansionPanel, _React$PureComponent);
125
+
126
+ function HiExpansionPanel() {
127
+ (0, _classCallCheck3.default)(this, HiExpansionPanel);
128
+ return (0, _possibleConstructorReturn3.default)(this, (HiExpansionPanel.__proto__ || (0, _getPrototypeOf2.default)(HiExpansionPanel)).apply(this, arguments));
129
+ }
130
+
131
+ (0, _createClass3.default)(HiExpansionPanel, [{
132
+ key: 'render',
133
+ value: function render() {
134
+ var _props = this.props,
135
+ disabled = _props.disabled,
136
+ heading = _props.heading,
137
+ secondaryHeading = _props.secondaryHeading,
138
+ secondaryHeadingDisabled = _props.secondaryHeadingDisabled,
139
+ secondaryHeadingIcon = _props.secondaryHeadingIcon,
140
+ children = _props.children,
141
+ classes = _props.classes,
142
+ props = (0, _objectWithoutProperties3.default)(_props, ['disabled', 'heading', 'secondaryHeading', 'secondaryHeadingDisabled', 'secondaryHeadingIcon', 'children', 'classes']);
143
+
144
+
145
+ var effectiveDisabled = disabled || !children;
146
+
147
+ return _react2.default.createElement(
148
+ _ExpansionPanel2.default,
149
+ (0, _extends3.default)({
150
+ disabled: effectiveDisabled,
151
+ classes: { root: classes.panel, disabled: classes.disabledPanel }
152
+ }, props),
153
+ _react2.default.createElement(
154
+ _ExpansionPanel.ExpansionPanelSummary,
155
+ {
156
+ classes: {
157
+ root: classes.panelSummary,
158
+ disabled: classes.disabledPanel,
159
+ expanded: classes.panelSummaryExpanded,
160
+ expandIconExpanded: classes.expandIconExpanded
161
+ },
162
+ expandIcon: _react2.default.createElement(_MenuDown2.default, { classes: { root: classes.expandMoreIcon } })
163
+ },
164
+ _react2.default.createElement(
165
+ 'div',
166
+ { className: classes.column },
167
+ _react2.default.createElement(
168
+ _Typography2.default,
169
+ { classes: { root: classes.heading } },
170
+ heading
171
+ )
172
+ ),
173
+ _react2.default.createElement(
174
+ 'div',
175
+ { className: classes.column },
176
+ _react2.default.createElement(
177
+ _Typography2.default,
178
+ { classes: { root: classes.secondaryHeading } },
179
+ !effectiveDisabled ? secondaryHeading : secondaryHeadingDisabled,
180
+ secondaryHeadingIcon
181
+ )
182
+ )
183
+ ),
184
+ !!children && _react2.default.createElement(
185
+ _ExpansionPanel.ExpansionPanelDetails,
186
+ { classes: { root: classes.panelDetails } },
187
+ children
188
+ )
189
+ );
190
+ }
191
+ }]);
192
+ return HiExpansionPanel;
193
+ }(_react2.default.PureComponent);
194
+
195
+ HiExpansionPanel.defaultProps = {
196
+ disabled: false,
197
+ secondaryHeading: '',
198
+ secondaryHeadingIcon: '',
199
+ secondaryHeadingDisabled: 'PAS ENCORE COMPLETE'
200
+ };
201
+ HiExpansionPanel.propTypes = process.env.NODE_ENV !== "production" ? {
202
+ /**
203
+ * Contenu du panel
204
+ */
205
+ children: _propTypes2.default.any,
206
+ /**
207
+ * Surcharge les classes du composant
208
+ */
209
+ classes: _propTypes2.default.object,
210
+ /**
211
+ * Désactivé
212
+ */
213
+ disabled: _propTypes2.default.bool,
214
+ /**
215
+ * Titre principal du panel
216
+ */
217
+ heading: _propTypes2.default.string.isRequired,
218
+ /**
219
+ * Titre secondaire du panel
220
+ */
221
+ secondaryHeading: _propTypes2.default.string,
222
+ /**
223
+ * Titre secondaire si désactivé
224
+ */
225
+ secondaryHeadingDisabled: _propTypes2.default.string,
226
+ /**
227
+ * Icone dans le titre secondaire du panel
228
+ */
229
+ secondaryHeadingIcon: _propTypes2.default.any
230
+ } : {};
231
+ exports.default = (0, _styles.withStyles)(styles, { name: 'HmuiHiExpansionPanel' })(HiExpansionPanel);
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _HiExpansionPanel = require('./HiExpansionPanel');
8
+
9
+ Object.defineProperty(exports, 'default', {
10
+ enumerable: true,
11
+ get: function get() {
12
+ return _interopRequireDefault(_HiExpansionPanel).default;
13
+ }
14
+ });
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -175,6 +175,9 @@ var HiFormControl = function (_React$PureComponent) {
175
175
  key: 'handleFocus',
176
176
  value: function handleFocus(value) {
177
177
  this.setState({ focused: value });
178
+ if (value === false && this.state.hovered) {
179
+ this.setState({ hovered: false });
180
+ }
178
181
  }
179
182
  }, {
180
183
  key: 'handleHover',