@hipay/hipay-material-ui 2.3.1-rc2 → 2.3.1-rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (503) hide show
  1. package/App.test.js +8 -0
  2. package/HiAlertModal/HiAlertModal.js +48 -77
  3. package/HiAlertModal/HiAlertModal.test.js +189 -0
  4. package/HiAlertModal/index.js +1 -15
  5. package/HiAppBar/HiAppBar.js +34 -63
  6. package/HiAppBar/index.js +1 -15
  7. package/HiBadge/HiBadge.js +10 -29
  8. package/HiBadge/HiBadge.test.js +49 -0
  9. package/HiBadge/index.js +1 -15
  10. package/HiBreadcrumb/HiBreadcrumb.js +27 -43
  11. package/HiBreadcrumb/HiBreadcrumb.test.js +44 -0
  12. package/HiBreadcrumb/HiStep.js +35 -57
  13. package/HiBreadcrumb/HiStep.test.js +47 -0
  14. package/HiBreadcrumb/HiStepConnector.js +32 -57
  15. package/HiBreadcrumb/HiStepConnector.test.js +113 -0
  16. package/HiBreadcrumb/HiStepContent.js +25 -46
  17. package/HiBreadcrumb/HiStepContent.test.js +32 -0
  18. package/HiBreadcrumb/HiStepIcon.js +26 -46
  19. package/HiBreadcrumb/HiStepIcon.test.js +65 -0
  20. package/HiBreadcrumb/HiStepLabel.js +36 -61
  21. package/HiBreadcrumb/HiStepLabel.test.js +30 -0
  22. package/HiBreadcrumb/HiStepper.js +23 -45
  23. package/HiBreadcrumb/HiStepper.test.js +33 -0
  24. package/HiBreadcrumb/index.js +1 -15
  25. package/HiButton/HiButton.js +9 -27
  26. package/HiButton/index.js +2 -13
  27. package/HiCell/CellAddress.js +20 -40
  28. package/HiCell/CellAddress.test.js +75 -0
  29. package/HiCell/CellDate.js +26 -47
  30. package/HiCell/CellDate.test.js +173 -0
  31. package/HiCell/CellIcon.js +28 -49
  32. package/HiCell/CellIcon.test.js +57 -0
  33. package/HiCell/CellImage.js +23 -42
  34. package/HiCell/CellImage.test.js +49 -0
  35. package/HiCell/CellNumeric.js +25 -46
  36. package/HiCell/CellNumeric.test.js +46 -0
  37. package/HiCell/CellPinToAction.js +20 -41
  38. package/HiCell/CellRate.js +32 -55
  39. package/HiCell/CellRate.test.js +73 -0
  40. package/HiCell/CellSentinel.js +22 -42
  41. package/HiCell/CellSentinel.test.js +48 -0
  42. package/HiCell/CellSentinelScore.js +23 -44
  43. package/HiCell/CellText.js +37 -56
  44. package/HiCell/CellText.test.js +76 -0
  45. package/HiCell/CellTextStyled.js +8 -21
  46. package/HiCell/index.js +9 -79
  47. package/HiCheckbox/HiCheckbox.js +35 -60
  48. package/HiCheckbox/HiCheckbox.test.js +55 -0
  49. package/HiCheckbox/index.js +1 -15
  50. package/HiChip/HiChip.js +24 -44
  51. package/HiChip/HiChip.test.js +136 -0
  52. package/HiChip/HiChipSwitch.js +47 -70
  53. package/HiChip/HiChipSwitch.test.js +99 -0
  54. package/HiChip/index.js +2 -23
  55. package/HiColoredLabel/HiColoredLabel.js +28 -52
  56. package/HiColoredLabel/HiColoredLabel.test.js +96 -0
  57. package/HiColoredLabel/index.js +1 -15
  58. package/HiDatePicker/Caption.js +11 -28
  59. package/HiDatePicker/Caption.test.js +65 -0
  60. package/HiDatePicker/HiDatePicker.js +100 -115
  61. package/HiDatePicker/HiDatePicker.test.js +370 -0
  62. package/HiDatePicker/HiDatePickerMobile.js +32 -54
  63. package/HiDatePicker/HiDateRangePicker.js +138 -149
  64. package/HiDatePicker/HiDateRangePicker.test.js +703 -0
  65. package/HiDatePicker/HiDateRangeSelector.js +71 -103
  66. package/HiDatePicker/HiDateRangeSelector.test.js +193 -0
  67. package/HiDatePicker/ListPicker.js +33 -55
  68. package/HiDatePicker/ListPicker.test.js +53 -0
  69. package/HiDatePicker/NavBar.js +18 -45
  70. package/HiDatePicker/NavBar.test.js +39 -0
  71. package/HiDatePicker/Overlays/CustomOverlayLayout.js +23 -40
  72. package/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +22 -39
  73. package/HiDatePicker/Overlays/MonthPickerOverlay.js +29 -45
  74. package/HiDatePicker/Overlays/MonthPickerOverlay.test.js +50 -0
  75. package/HiDatePicker/Overlays/Overlay.js +18 -35
  76. package/HiDatePicker/Overlays/Overlay.test.js +20 -0
  77. package/HiDatePicker/Overlays/TimePickerOverlay.js +47 -73
  78. package/HiDatePicker/Overlays/TimePickerOverlay.test.js +48 -0
  79. package/HiDatePicker/Overlays/YearPickerOverlay.js +29 -45
  80. package/HiDatePicker/Overlays/YearPickerOverlay.test.js +79 -0
  81. package/HiDatePicker/Overlays/index.js +5 -47
  82. package/HiDatePicker/Weekday.js +3 -13
  83. package/HiDatePicker/hiLocaleUtils.js +1 -8
  84. package/HiDatePicker/hiLocaleUtils.test.js +51 -0
  85. package/HiDatePicker/index.js +1 -15
  86. package/HiDatePicker/stylesheet.js +9 -22
  87. package/HiDotsStepper/HiDot.js +30 -57
  88. package/HiDotsStepper/HiDot.test.js +55 -0
  89. package/HiDotsStepper/HiDotsStepper.js +29 -47
  90. package/HiDotsStepper/HiDotsStepper.test.js +90 -0
  91. package/HiDotsStepper/index.js +2 -23
  92. package/HiExpansionPanel/HiExpansionPanel.js +42 -72
  93. package/HiExpansionPanel/index.js +2 -13
  94. package/HiForm/HiAddressField.js +30 -47
  95. package/HiForm/HiAddressField.test.js +79 -0
  96. package/HiForm/HiEmailField.js +28 -46
  97. package/HiForm/HiEmailField.test.js +19 -0
  98. package/HiForm/HiFormControl.js +72 -100
  99. package/HiForm/HiFormControl.test.js +195 -0
  100. package/HiForm/HiFormLabel.js +29 -54
  101. package/HiForm/HiFormLabel.test.js +66 -0
  102. package/HiForm/HiInput.js +62 -86
  103. package/HiForm/HiInput.test.js +202 -0
  104. package/HiForm/HiPasswordField.js +29 -55
  105. package/HiForm/HiPasswordField.test.js +60 -0
  106. package/HiForm/HiSearchField.js +27 -44
  107. package/HiForm/HiSearchField.test.js +193 -0
  108. package/HiForm/HiSlider.js +42 -64
  109. package/HiForm/HiSlider.test.js +99 -0
  110. package/HiForm/HiTextField.js +29 -46
  111. package/HiForm/HiTextField.test.js +254 -0
  112. package/HiForm/HiUpload.js +54 -70
  113. package/HiForm/HiUpload.test.js +241 -0
  114. package/HiForm/HiUploadField.js +24 -41
  115. package/HiForm/HiUploadField.test.js +55 -0
  116. package/HiForm/HiUploadInput.js +56 -77
  117. package/HiForm/HiUploadInput.test.js +148 -0
  118. package/HiForm/index.js +11 -95
  119. package/HiIcon/HiIcon.js +22 -44
  120. package/HiIcon/index.js +1 -15
  121. package/HiIconButton/HiIconButton.js +18 -40
  122. package/HiIconButton/HiIconButton.test.js +69 -0
  123. package/HiIconButton/index.js +1 -15
  124. package/HiLoader/HiLoader.js +9 -24
  125. package/HiLoader/HiLoader.test.js +18 -0
  126. package/HiLoader/index.js +1 -15
  127. package/HiMap/HiMap.js +50 -77
  128. package/HiMap/HiMap.test.js +29 -0
  129. package/HiMap/HiMapExpand.js +39 -64
  130. package/HiMap/HiMapExpand.test.js +48 -0
  131. package/HiMap/index.js +2 -23
  132. package/HiNotice/HiKPI.js +33 -54
  133. package/HiNotice/HiKPI.test.js +171 -0
  134. package/HiNotice/HiKPINotice.js +7 -21
  135. package/HiNotice/HiKPINotice.test.js +88 -0
  136. package/HiNotice/index.js +2 -23
  137. package/HiPaymentMeans/HiPaymentMeans.js +112 -131
  138. package/HiPaymentMeans/HiPaymentMeans.test.js +162 -0
  139. package/HiPaymentMeans/index.js +1 -15
  140. package/HiPdfReader/HiPdfReader.js +51 -76
  141. package/HiPdfReader/index.js +1 -15
  142. package/HiPin/HiPin.js +9 -30
  143. package/HiPin/HiPin.test.js +61 -0
  144. package/HiPin/index.js +1 -15
  145. package/HiRadio/HiRadio.js +7 -24
  146. package/HiRadio/HiRadio.test.js +57 -0
  147. package/HiRadio/index.js +1 -15
  148. package/HiSelect/HiDynamicSelect.js +40 -56
  149. package/HiSelect/HiDynamicSelectField.js +22 -40
  150. package/HiSelect/HiNestedSelect.js +55 -84
  151. package/HiSelect/HiNestedSelectContent.js +46 -73
  152. package/HiSelect/HiNestedSelectField.js +22 -40
  153. package/HiSelect/HiSelect.js +123 -139
  154. package/HiSelect/HiSelect.test.js +1092 -0
  155. package/HiSelect/HiSelectContent.js +73 -95
  156. package/HiSelect/HiSelectField.js +22 -40
  157. package/HiSelect/HiSelectInput.js +63 -87
  158. package/HiSelect/HiSelectInput.test.js +21 -0
  159. package/HiSelect/HiSelectMobile.js +35 -54
  160. package/HiSelect/HiSuggestSelect.js +56 -78
  161. package/HiSelect/HiSuggestSelectField.js +22 -40
  162. package/HiSelect/index.js +8 -85
  163. package/HiSelectableList/HiSelectableList.js +49 -77
  164. package/HiSelectableList/HiSelectableList.test.js +173 -0
  165. package/HiSelectableList/HiSelectableListHierarchic.js +35 -56
  166. package/HiSelectableList/HiSelectableListItem.js +66 -98
  167. package/HiSelectableList/HiSelectableListItem.test.js +97 -0
  168. package/HiSelectableList/index.js +3 -31
  169. package/HiSwitch/HiSwitch.js +20 -45
  170. package/HiSwitch/HiSwitch.test.js +41 -0
  171. package/HiSwitch/HiSwitchState.js +15 -36
  172. package/HiSwitch/HiSwitchState.test.js +76 -0
  173. package/HiSwitch/index.js +2 -23
  174. package/HiTable/HiCellBuilder.js +44 -72
  175. package/HiTable/HiTable.js +29 -47
  176. package/HiTable/HiTable.test.js +29 -0
  177. package/HiTable/HiTableBody.js +19 -34
  178. package/HiTable/HiTableHeader.js +30 -53
  179. package/HiTable/HiTableRow.js +29 -56
  180. package/HiTable/constants.js +43 -94
  181. package/HiTable/index.js +1 -15
  182. package/es/App.test.js +8 -0
  183. package/es/HiAlertModal/HiAlertModal.js +48 -77
  184. package/es/HiAlertModal/HiAlertModal.test.js +189 -0
  185. package/es/HiAlertModal/index.js +1 -15
  186. package/es/HiAppBar/HiAppBar.js +34 -63
  187. package/es/HiAppBar/index.js +1 -15
  188. package/es/HiBadge/HiBadge.js +10 -29
  189. package/es/HiBadge/HiBadge.test.js +49 -0
  190. package/es/HiBadge/index.js +1 -15
  191. package/es/HiBreadcrumb/HiBreadcrumb.js +27 -43
  192. package/es/HiBreadcrumb/HiBreadcrumb.test.js +44 -0
  193. package/es/HiBreadcrumb/HiStep.js +35 -57
  194. package/es/HiBreadcrumb/HiStep.test.js +47 -0
  195. package/es/HiBreadcrumb/HiStepConnector.js +32 -57
  196. package/es/HiBreadcrumb/HiStepConnector.test.js +113 -0
  197. package/es/HiBreadcrumb/HiStepContent.js +25 -46
  198. package/es/HiBreadcrumb/HiStepContent.test.js +32 -0
  199. package/es/HiBreadcrumb/HiStepIcon.js +26 -46
  200. package/es/HiBreadcrumb/HiStepIcon.test.js +65 -0
  201. package/es/HiBreadcrumb/HiStepLabel.js +36 -61
  202. package/es/HiBreadcrumb/HiStepLabel.test.js +30 -0
  203. package/es/HiBreadcrumb/HiStepper.js +23 -45
  204. package/es/HiBreadcrumb/HiStepper.test.js +33 -0
  205. package/es/HiBreadcrumb/index.js +1 -15
  206. package/es/HiButton/HiButton.js +9 -27
  207. package/es/HiButton/index.js +2 -13
  208. package/es/HiCell/CellAddress.js +20 -40
  209. package/es/HiCell/CellAddress.test.js +75 -0
  210. package/es/HiCell/CellDate.js +26 -47
  211. package/es/HiCell/CellDate.test.js +173 -0
  212. package/es/HiCell/CellIcon.js +28 -49
  213. package/es/HiCell/CellIcon.test.js +57 -0
  214. package/es/HiCell/CellImage.js +23 -42
  215. package/es/HiCell/CellImage.test.js +49 -0
  216. package/es/HiCell/CellNumeric.js +25 -46
  217. package/es/HiCell/CellNumeric.test.js +46 -0
  218. package/es/HiCell/CellPinToAction.js +20 -41
  219. package/es/HiCell/CellRate.js +32 -55
  220. package/es/HiCell/CellRate.test.js +73 -0
  221. package/es/HiCell/CellSentinel.js +22 -42
  222. package/es/HiCell/CellSentinel.test.js +48 -0
  223. package/es/HiCell/CellSentinelScore.js +23 -44
  224. package/es/HiCell/CellText.js +37 -56
  225. package/es/HiCell/CellText.test.js +76 -0
  226. package/es/HiCell/CellTextStyled.js +8 -21
  227. package/es/HiCell/index.js +9 -79
  228. package/es/HiCheckbox/HiCheckbox.js +35 -60
  229. package/es/HiCheckbox/HiCheckbox.test.js +55 -0
  230. package/es/HiCheckbox/index.js +1 -15
  231. package/es/HiChip/HiChip.js +24 -44
  232. package/es/HiChip/HiChip.test.js +136 -0
  233. package/es/HiChip/HiChipSwitch.js +47 -70
  234. package/es/HiChip/HiChipSwitch.test.js +99 -0
  235. package/es/HiChip/index.js +2 -23
  236. package/es/HiColoredLabel/HiColoredLabel.js +28 -52
  237. package/es/HiColoredLabel/HiColoredLabel.test.js +96 -0
  238. package/es/HiColoredLabel/index.js +1 -15
  239. package/es/HiDatePicker/Caption.js +11 -28
  240. package/es/HiDatePicker/Caption.test.js +65 -0
  241. package/es/HiDatePicker/HiDatePicker.js +100 -115
  242. package/es/HiDatePicker/HiDatePicker.test.js +370 -0
  243. package/es/HiDatePicker/HiDatePickerMobile.js +32 -54
  244. package/es/HiDatePicker/HiDateRangePicker.js +138 -149
  245. package/es/HiDatePicker/HiDateRangePicker.test.js +703 -0
  246. package/es/HiDatePicker/HiDateRangeSelector.js +71 -103
  247. package/es/HiDatePicker/HiDateRangeSelector.test.js +193 -0
  248. package/es/HiDatePicker/ListPicker.js +33 -55
  249. package/es/HiDatePicker/ListPicker.test.js +53 -0
  250. package/es/HiDatePicker/NavBar.js +18 -45
  251. package/es/HiDatePicker/NavBar.test.js +39 -0
  252. package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +23 -40
  253. package/es/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +22 -39
  254. package/es/HiDatePicker/Overlays/MonthPickerOverlay.js +29 -45
  255. package/es/HiDatePicker/Overlays/MonthPickerOverlay.test.js +50 -0
  256. package/es/HiDatePicker/Overlays/Overlay.js +18 -35
  257. package/es/HiDatePicker/Overlays/Overlay.test.js +20 -0
  258. package/es/HiDatePicker/Overlays/TimePickerOverlay.js +47 -73
  259. package/es/HiDatePicker/Overlays/TimePickerOverlay.test.js +48 -0
  260. package/es/HiDatePicker/Overlays/YearPickerOverlay.js +29 -45
  261. package/es/HiDatePicker/Overlays/YearPickerOverlay.test.js +79 -0
  262. package/es/HiDatePicker/Overlays/index.js +5 -47
  263. package/es/HiDatePicker/Weekday.js +3 -13
  264. package/es/HiDatePicker/hiLocaleUtils.js +1 -8
  265. package/es/HiDatePicker/hiLocaleUtils.test.js +51 -0
  266. package/es/HiDatePicker/index.js +1 -15
  267. package/es/HiDatePicker/stylesheet.js +9 -22
  268. package/es/HiDotsStepper/HiDot.js +30 -57
  269. package/es/HiDotsStepper/HiDot.test.js +55 -0
  270. package/es/HiDotsStepper/HiDotsStepper.js +29 -47
  271. package/es/HiDotsStepper/HiDotsStepper.test.js +90 -0
  272. package/es/HiDotsStepper/index.js +2 -23
  273. package/es/HiExpansionPanel/HiExpansionPanel.js +42 -72
  274. package/es/HiExpansionPanel/index.js +2 -13
  275. package/es/HiForm/HiAddressField.js +30 -47
  276. package/es/HiForm/HiAddressField.test.js +79 -0
  277. package/es/HiForm/HiEmailField.js +28 -46
  278. package/es/HiForm/HiEmailField.test.js +19 -0
  279. package/es/HiForm/HiFormControl.js +72 -100
  280. package/es/HiForm/HiFormControl.test.js +195 -0
  281. package/es/HiForm/HiFormLabel.js +29 -54
  282. package/es/HiForm/HiFormLabel.test.js +66 -0
  283. package/es/HiForm/HiInput.js +62 -86
  284. package/es/HiForm/HiInput.test.js +202 -0
  285. package/es/HiForm/HiPasswordField.js +29 -55
  286. package/es/HiForm/HiPasswordField.test.js +60 -0
  287. package/es/HiForm/HiSearchField.js +27 -44
  288. package/es/HiForm/HiSearchField.test.js +193 -0
  289. package/es/HiForm/HiSlider.js +42 -64
  290. package/es/HiForm/HiSlider.test.js +99 -0
  291. package/es/HiForm/HiTextField.js +29 -46
  292. package/es/HiForm/HiTextField.test.js +254 -0
  293. package/es/HiForm/HiUpload.js +54 -70
  294. package/es/HiForm/HiUpload.test.js +241 -0
  295. package/es/HiForm/HiUploadField.js +24 -41
  296. package/es/HiForm/HiUploadField.test.js +55 -0
  297. package/es/HiForm/HiUploadInput.js +56 -77
  298. package/es/HiForm/HiUploadInput.test.js +148 -0
  299. package/es/HiForm/index.js +11 -95
  300. package/es/HiIcon/HiIcon.js +22 -44
  301. package/es/HiIcon/index.js +1 -15
  302. package/es/HiIconButton/HiIconButton.js +18 -40
  303. package/es/HiIconButton/HiIconButton.test.js +69 -0
  304. package/es/HiIconButton/index.js +1 -15
  305. package/es/HiLoader/HiLoader.js +9 -24
  306. package/es/HiLoader/HiLoader.test.js +18 -0
  307. package/es/HiLoader/index.js +1 -15
  308. package/es/HiMap/HiMap.js +50 -77
  309. package/es/HiMap/HiMap.test.js +29 -0
  310. package/es/HiMap/HiMapExpand.js +39 -64
  311. package/es/HiMap/HiMapExpand.test.js +48 -0
  312. package/es/HiMap/index.js +2 -23
  313. package/es/HiNotice/HiKPI.js +33 -54
  314. package/es/HiNotice/HiKPI.test.js +171 -0
  315. package/es/HiNotice/HiKPINotice.js +7 -21
  316. package/es/HiNotice/HiKPINotice.test.js +88 -0
  317. package/es/HiNotice/index.js +2 -23
  318. package/es/HiPaymentMeans/HiPaymentMeans.js +112 -131
  319. package/es/HiPaymentMeans/HiPaymentMeans.test.js +162 -0
  320. package/es/HiPaymentMeans/index.js +1 -15
  321. package/es/HiPdfReader/HiPdfReader.js +51 -76
  322. package/es/HiPdfReader/index.js +1 -15
  323. package/es/HiPin/HiPin.js +9 -30
  324. package/es/HiPin/HiPin.test.js +61 -0
  325. package/es/HiPin/index.js +1 -15
  326. package/es/HiRadio/HiRadio.js +7 -24
  327. package/es/HiRadio/HiRadio.test.js +57 -0
  328. package/es/HiRadio/index.js +1 -15
  329. package/es/HiSelect/HiDynamicSelect.js +40 -56
  330. package/es/HiSelect/HiDynamicSelectField.js +22 -40
  331. package/es/HiSelect/HiNestedSelect.js +55 -84
  332. package/es/HiSelect/HiNestedSelectContent.js +46 -73
  333. package/es/HiSelect/HiNestedSelectField.js +22 -40
  334. package/es/HiSelect/HiSelect.js +123 -139
  335. package/es/HiSelect/HiSelect.test.js +1092 -0
  336. package/es/HiSelect/HiSelectContent.js +73 -95
  337. package/es/HiSelect/HiSelectField.js +22 -40
  338. package/es/HiSelect/HiSelectInput.js +63 -87
  339. package/es/HiSelect/HiSelectInput.test.js +21 -0
  340. package/es/HiSelect/HiSelectMobile.js +35 -54
  341. package/es/HiSelect/HiSuggestSelect.js +56 -78
  342. package/es/HiSelect/HiSuggestSelectField.js +22 -40
  343. package/es/HiSelect/index.js +8 -85
  344. package/es/HiSelectableList/HiSelectableList.js +49 -77
  345. package/es/HiSelectableList/HiSelectableList.test.js +173 -0
  346. package/es/HiSelectableList/HiSelectableListHierarchic.js +35 -56
  347. package/es/HiSelectableList/HiSelectableListItem.js +66 -98
  348. package/es/HiSelectableList/HiSelectableListItem.test.js +97 -0
  349. package/es/HiSelectableList/index.js +3 -31
  350. package/es/HiSwitch/HiSwitch.js +20 -45
  351. package/es/HiSwitch/HiSwitch.test.js +41 -0
  352. package/es/HiSwitch/HiSwitchState.js +15 -36
  353. package/es/HiSwitch/HiSwitchState.test.js +76 -0
  354. package/es/HiSwitch/index.js +2 -23
  355. package/es/HiTable/HiCellBuilder.js +44 -72
  356. package/es/HiTable/HiTable.js +29 -47
  357. package/es/HiTable/HiTable.test.js +29 -0
  358. package/es/HiTable/HiTableBody.js +19 -34
  359. package/es/HiTable/HiTableHeader.js +30 -53
  360. package/es/HiTable/HiTableRow.js +29 -56
  361. package/es/HiTable/constants.js +43 -94
  362. package/es/HiTable/index.js +1 -15
  363. package/es/hi-svg-icons/HiAccount.js +18 -36
  364. package/es/hi-svg-icons/HiActivity.js +17 -35
  365. package/es/hi-svg-icons/HiAll.js +22 -42
  366. package/es/hi-svg-icons/HiBilling.js +18 -36
  367. package/es/hi-svg-icons/HiBriefcaseRescue.js +10 -26
  368. package/es/hi-svg-icons/HiCatalog.js +18 -36
  369. package/es/hi-svg-icons/HiCustomer.js +18 -36
  370. package/es/hi-svg-icons/HiDownload.js +11 -25
  371. package/es/hi-svg-icons/HiFinance.js +18 -36
  372. package/es/hi-svg-icons/HiPermission.js +17 -35
  373. package/es/hi-svg-icons/HiRoute.js +18 -36
  374. package/es/hi-svg-icons/HiSettlement.js +18 -36
  375. package/es/hi-svg-icons/HiSizeLarge.js +12 -27
  376. package/es/hi-svg-icons/HiSizeMedium.js +11 -25
  377. package/es/hi-svg-icons/HiSizeSmall.js +11 -25
  378. package/es/hi-svg-icons/HiTransaction.js +18 -36
  379. package/es/hi-svg-icons/HiUser.js +18 -36
  380. package/es/hi-svg-icons/HiWidget.js +22 -42
  381. package/es/hi-svg-icons/index.js +18 -151
  382. package/es/hi-svg-icons/index.text.js +11 -21
  383. package/es/styleguide/Wrapper.js +19 -36
  384. package/es/styles/MuiThemeProvider.js +39 -59
  385. package/es/styles/colorManipulator.js +16 -44
  386. package/es/styles/colorManipulator.test.js +242 -0
  387. package/es/styles/createBreakpoints.js +6 -20
  388. package/es/styles/createBreakpoints.test.js +48 -0
  389. package/es/styles/createGenerateClassName.js +5 -15
  390. package/es/styles/createGenerateClassName.test.js +141 -0
  391. package/es/styles/createMixins.js +8 -19
  392. package/es/styles/createMixins.test.js +24 -0
  393. package/es/styles/createMuiTheme.js +34 -53
  394. package/es/styles/createMuiTheme.test.js +67 -0
  395. package/es/styles/createPalette.js +30 -50
  396. package/es/styles/createPalette.test.js +159 -0
  397. package/es/styles/createStyles.js +1 -8
  398. package/es/styles/createStyles.test.js +8 -0
  399. package/es/styles/createTypography.js +18 -30
  400. package/es/styles/createTypography.test.js +60 -0
  401. package/es/styles/getStylesCreator.js +11 -24
  402. package/es/styles/getStylesCreator.test.js +92 -0
  403. package/es/styles/getThemeProps.js +1 -9
  404. package/es/styles/getThemeProps.test.js +39 -0
  405. package/es/styles/index.js +5 -47
  406. package/es/styles/jssPreset.js +9 -25
  407. package/es/styles/mergeClasses.js +7 -19
  408. package/es/styles/shadows.js +1 -8
  409. package/es/styles/shape.js +1 -8
  410. package/es/styles/spacing.js +1 -9
  411. package/es/styles/themeListener.js +5 -18
  412. package/es/styles/themeListener.test.js +26 -0
  413. package/es/styles/transitions.js +18 -38
  414. package/es/styles/transitions.test.js +208 -0
  415. package/es/styles/zIndex.js +1 -8
  416. package/es/test-utils/createMount.js +11 -22
  417. package/es/test-utils/createRender.js +8 -19
  418. package/es/test-utils/createShallow.js +13 -23
  419. package/es/test-utils/getClasses.js +2 -11
  420. package/es/test-utils/index.js +5 -47
  421. package/es/test-utils/until.js +6 -16
  422. package/es/test-utils/until.test.js +157 -0
  423. package/es/test-utils/unwrap.js +1 -8
  424. package/es/theme/palette.js +2 -10
  425. package/es/theme/typography.js +2 -10
  426. package/es/theme.js +2 -11
  427. package/es/transitions/utils.js +2 -13
  428. package/es/utils/exactProp.js +5 -18
  429. package/es/utils/helpers.js +18 -55
  430. package/es/withMobileDialog/index.js +1 -15
  431. package/es/withMobileDialog/withMobileDialog.js +7 -22
  432. package/es/withMobileDialog/withMobileDialog.test.js +67 -0
  433. package/hi-svg-icons/HiAccount.js +18 -36
  434. package/hi-svg-icons/HiActivity.js +17 -35
  435. package/hi-svg-icons/HiAll.js +22 -42
  436. package/hi-svg-icons/HiBilling.js +18 -36
  437. package/hi-svg-icons/HiBriefcaseRescue.js +10 -26
  438. package/hi-svg-icons/HiCatalog.js +18 -36
  439. package/hi-svg-icons/HiCustomer.js +18 -36
  440. package/hi-svg-icons/HiDownload.js +11 -25
  441. package/hi-svg-icons/HiFinance.js +18 -36
  442. package/hi-svg-icons/HiPermission.js +17 -35
  443. package/hi-svg-icons/HiRoute.js +18 -36
  444. package/hi-svg-icons/HiSettlement.js +18 -36
  445. package/hi-svg-icons/HiSizeLarge.js +12 -27
  446. package/hi-svg-icons/HiSizeMedium.js +11 -25
  447. package/hi-svg-icons/HiSizeSmall.js +11 -25
  448. package/hi-svg-icons/HiTransaction.js +18 -36
  449. package/hi-svg-icons/HiUser.js +18 -36
  450. package/hi-svg-icons/HiWidget.js +22 -42
  451. package/hi-svg-icons/index.js +18 -151
  452. package/hi-svg-icons/index.text.js +11 -21
  453. package/package.json +1 -1
  454. package/styleguide/Wrapper.js +19 -36
  455. package/styles/MuiThemeProvider.js +39 -59
  456. package/styles/colorManipulator.js +16 -44
  457. package/styles/colorManipulator.test.js +242 -0
  458. package/styles/createBreakpoints.js +6 -20
  459. package/styles/createBreakpoints.test.js +48 -0
  460. package/styles/createGenerateClassName.js +5 -15
  461. package/styles/createGenerateClassName.test.js +141 -0
  462. package/styles/createMixins.js +8 -19
  463. package/styles/createMixins.test.js +24 -0
  464. package/styles/createMuiTheme.js +34 -53
  465. package/styles/createMuiTheme.test.js +67 -0
  466. package/styles/createPalette.js +30 -50
  467. package/styles/createPalette.test.js +159 -0
  468. package/styles/createStyles.js +1 -8
  469. package/styles/createStyles.test.js +8 -0
  470. package/styles/createTypography.js +18 -30
  471. package/styles/createTypography.test.js +60 -0
  472. package/styles/getStylesCreator.js +11 -24
  473. package/styles/getStylesCreator.test.js +92 -0
  474. package/styles/getThemeProps.js +1 -9
  475. package/styles/getThemeProps.test.js +39 -0
  476. package/styles/index.js +5 -47
  477. package/styles/jssPreset.js +9 -25
  478. package/styles/mergeClasses.js +7 -19
  479. package/styles/shadows.js +1 -8
  480. package/styles/shape.js +1 -8
  481. package/styles/spacing.js +1 -9
  482. package/styles/themeListener.js +5 -18
  483. package/styles/themeListener.test.js +26 -0
  484. package/styles/transitions.js +18 -38
  485. package/styles/transitions.test.js +208 -0
  486. package/styles/zIndex.js +1 -8
  487. package/test-utils/createMount.js +11 -22
  488. package/test-utils/createRender.js +8 -19
  489. package/test-utils/createShallow.js +13 -23
  490. package/test-utils/getClasses.js +2 -11
  491. package/test-utils/index.js +5 -47
  492. package/test-utils/until.js +6 -16
  493. package/test-utils/until.test.js +157 -0
  494. package/test-utils/unwrap.js +1 -8
  495. package/theme/palette.js +2 -10
  496. package/theme/typography.js +2 -10
  497. package/theme.js +2 -11
  498. package/transitions/utils.js +2 -13
  499. package/utils/exactProp.js +5 -18
  500. package/utils/helpers.js +18 -55
  501. package/withMobileDialog/index.js +1 -15
  502. package/withMobileDialog/withMobileDialog.js +7 -22
  503. package/withMobileDialog/withMobileDialog.test.js +67 -0
@@ -1,151 +1,18 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- Object.defineProperty(exports, "HiAccount", {
9
- enumerable: true,
10
- get: function get() {
11
- return _HiAccount.default;
12
- }
13
- });
14
- Object.defineProperty(exports, "HiAll", {
15
- enumerable: true,
16
- get: function get() {
17
- return _HiAll.default;
18
- }
19
- });
20
- Object.defineProperty(exports, "HiBilling", {
21
- enumerable: true,
22
- get: function get() {
23
- return _HiBilling.default;
24
- }
25
- });
26
- Object.defineProperty(exports, "HiBriefcaseRescue", {
27
- enumerable: true,
28
- get: function get() {
29
- return _HiBriefcaseRescue.default;
30
- }
31
- });
32
- Object.defineProperty(exports, "HiCatalog", {
33
- enumerable: true,
34
- get: function get() {
35
- return _HiCatalog.default;
36
- }
37
- });
38
- Object.defineProperty(exports, "HiCustomer", {
39
- enumerable: true,
40
- get: function get() {
41
- return _HiCustomer.default;
42
- }
43
- });
44
- Object.defineProperty(exports, "HiFinance", {
45
- enumerable: true,
46
- get: function get() {
47
- return _HiFinance.default;
48
- }
49
- });
50
- Object.defineProperty(exports, "HiRoute", {
51
- enumerable: true,
52
- get: function get() {
53
- return _HiRoute.default;
54
- }
55
- });
56
- Object.defineProperty(exports, "HiSettlement", {
57
- enumerable: true,
58
- get: function get() {
59
- return _HiSettlement.default;
60
- }
61
- });
62
- Object.defineProperty(exports, "HiSizeLarge", {
63
- enumerable: true,
64
- get: function get() {
65
- return _HiSizeLarge.default;
66
- }
67
- });
68
- Object.defineProperty(exports, "HiSizeMedium", {
69
- enumerable: true,
70
- get: function get() {
71
- return _HiSizeMedium.default;
72
- }
73
- });
74
- Object.defineProperty(exports, "HiSizeSmall", {
75
- enumerable: true,
76
- get: function get() {
77
- return _HiSizeSmall.default;
78
- }
79
- });
80
- Object.defineProperty(exports, "HiTransaction", {
81
- enumerable: true,
82
- get: function get() {
83
- return _HiTransaction.default;
84
- }
85
- });
86
- Object.defineProperty(exports, "HiUser", {
87
- enumerable: true,
88
- get: function get() {
89
- return _HiUser.default;
90
- }
91
- });
92
- Object.defineProperty(exports, "HiWidget", {
93
- enumerable: true,
94
- get: function get() {
95
- return _HiWidget.default;
96
- }
97
- });
98
- Object.defineProperty(exports, "HiActivity", {
99
- enumerable: true,
100
- get: function get() {
101
- return _HiActivity.default;
102
- }
103
- });
104
- Object.defineProperty(exports, "HiPermission", {
105
- enumerable: true,
106
- get: function get() {
107
- return _HiPermission.default;
108
- }
109
- });
110
- Object.defineProperty(exports, "HiDownload", {
111
- enumerable: true,
112
- get: function get() {
113
- return _HiDownload.default;
114
- }
115
- });
116
-
117
- var _HiAccount = _interopRequireDefault(require("./HiAccount"));
118
-
119
- var _HiAll = _interopRequireDefault(require("./HiAll"));
120
-
121
- var _HiBilling = _interopRequireDefault(require("./HiBilling"));
122
-
123
- var _HiBriefcaseRescue = _interopRequireDefault(require("./HiBriefcaseRescue"));
124
-
125
- var _HiCatalog = _interopRequireDefault(require("./HiCatalog"));
126
-
127
- var _HiCustomer = _interopRequireDefault(require("./HiCustomer"));
128
-
129
- var _HiFinance = _interopRequireDefault(require("./HiFinance"));
130
-
131
- var _HiRoute = _interopRequireDefault(require("./HiRoute"));
132
-
133
- var _HiSettlement = _interopRequireDefault(require("./HiSettlement"));
134
-
135
- var _HiSizeLarge = _interopRequireDefault(require("./HiSizeLarge"));
136
-
137
- var _HiSizeMedium = _interopRequireDefault(require("./HiSizeMedium"));
138
-
139
- var _HiSizeSmall = _interopRequireDefault(require("./HiSizeSmall"));
140
-
141
- var _HiTransaction = _interopRequireDefault(require("./HiTransaction"));
142
-
143
- var _HiUser = _interopRequireDefault(require("./HiUser"));
144
-
145
- var _HiWidget = _interopRequireDefault(require("./HiWidget"));
146
-
147
- var _HiActivity = _interopRequireDefault(require("./HiActivity"));
148
-
149
- var _HiPermission = _interopRequireDefault(require("./HiPermission"));
150
-
151
- var _HiDownload = _interopRequireDefault(require("./HiDownload"));
1
+ export { default as HiAccount } from './HiAccount';
2
+ export { default as HiAll } from './HiAll';
3
+ export { default as HiBilling } from './HiBilling';
4
+ export { default as HiBriefcaseRescue } from './HiBriefcaseRescue';
5
+ export { default as HiCatalog } from './HiCatalog';
6
+ export { default as HiCustomer } from './HiCustomer';
7
+ export { default as HiFinance } from './HiFinance';
8
+ export { default as HiRoute } from './HiRoute';
9
+ export { default as HiSettlement } from './HiSettlement';
10
+ export { default as HiSizeLarge } from './HiSizeLarge';
11
+ export { default as HiSizeMedium } from './HiSizeMedium';
12
+ export { default as HiSizeSmall } from './HiSizeSmall';
13
+ export { default as HiTransaction } from './HiTransaction';
14
+ export { default as HiUser } from './HiUser';
15
+ export { default as HiWidget } from './HiWidget';
16
+ export { default as HiActivity } from './HiActivity';
17
+ export { default as HiPermission } from './HiPermission';
18
+ export { default as HiDownload } from './HiDownload';
@@ -1,30 +1,21 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- var _fs = _interopRequireDefault(require("fs"));
6
-
7
- var _path = _interopRequireDefault(require("path"));
8
-
9
- var _react = _interopRequireDefault(require("react"));
10
-
11
- var _chai = require("chai");
12
-
13
- var _testUtils = require("../test-utils");
14
-
1
+ import fs from 'fs';
2
+ import path from 'path';
3
+ import React from 'react';
4
+ import { assert } from 'chai';
5
+ import { createShallow } from '../test-utils';
15
6
  describe('hi-svg-icons', function () {
16
7
  var shallow;
17
8
  before(function () {
18
- shallow = (0, _testUtils.createShallow)();
9
+ shallow = createShallow();
19
10
  });
20
11
  it('should be able to render all of them', function (done) {
21
12
  // This test can only be run on the node env
22
- if (!_fs.default.readdir) {
13
+ if (!fs.readdir) {
23
14
  done();
24
15
  return;
25
16
  }
26
17
 
27
- _fs.default.readdir(__dirname, function (err, files) {
18
+ fs.readdir(__dirname, function (err, files) {
28
19
  files.forEach(function (file) {
29
20
  // Ignore no js files and tests
30
21
  if (file.indexOf('.js') === -1 || file.indexOf('text.js') > -1) {
@@ -32,18 +23,17 @@ describe('hi-svg-icons', function () {
32
23
  } // eslint-disable-next-line global-require, import/no-dynamic-require
33
24
 
34
25
 
35
- var fileLoaded = require(_path.default.join(__dirname, file));
26
+ var fileLoaded = require(path.join(__dirname, file));
36
27
 
37
28
  if (!fileLoaded.default) {
38
29
  return;
39
30
  }
40
31
 
41
32
  var Icon = fileLoaded.default;
42
- var wrapper = shallow(_react.default.createElement(Icon, {
33
+ var wrapper = shallow(React.createElement(Icon, {
43
34
  className: "foo"
44
35
  }));
45
-
46
- _chai.assert.strictEqual(wrapper.hasClass('foo'), true);
36
+ assert.strictEqual(wrapper.hasClass('foo'), true);
47
37
  });
48
38
  done();
49
39
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hipay/hipay-material-ui",
3
3
  "private": false,
4
- "version": "2.3.1-rc2",
4
+ "version": "2.3.1-rc4",
5
5
  "description": "React components that implement Google's Material Design.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -1,51 +1,34 @@
1
- "use strict";
2
-
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
-
5
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
- exports.default = void 0;
11
-
12
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
13
-
14
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
15
-
16
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
17
-
18
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
19
-
20
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
21
-
22
- var _react = _interopRequireWildcard(require("react"));
23
-
24
- var _styles = require("@material-ui/core/styles");
25
-
26
- var _theme = _interopRequireDefault(require("../theme"));
27
-
28
- require("../index.css");
1
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
3
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
4
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
5
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
6
+ import React, { Component } from 'react';
7
+ import { MuiThemeProvider } from '@material-ui/core/styles';
8
+ import theme from '../theme';
9
+ import '../index.css';
29
10
 
30
11
  var Wrapper =
31
12
  /*#__PURE__*/
32
13
  function (_Component) {
33
- (0, _inherits2.default)(Wrapper, _Component);
14
+ _inherits(Wrapper, _Component);
34
15
 
35
16
  function Wrapper() {
36
- (0, _classCallCheck2.default)(this, Wrapper);
37
- return (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(Wrapper).apply(this, arguments));
17
+ _classCallCheck(this, Wrapper);
18
+
19
+ return _possibleConstructorReturn(this, _getPrototypeOf(Wrapper).apply(this, arguments));
38
20
  }
39
21
 
40
- (0, _createClass2.default)(Wrapper, [{
22
+ _createClass(Wrapper, [{
41
23
  key: "render",
42
24
  value: function render() {
43
- return _react.default.createElement(_styles.MuiThemeProvider, {
44
- theme: _theme.default
25
+ return React.createElement(MuiThemeProvider, {
26
+ theme: theme
45
27
  }, this.props.children);
46
28
  }
47
29
  }]);
30
+
48
31
  return Wrapper;
49
- }(_react.Component);
32
+ }(Component);
50
33
 
51
- exports.default = Wrapper;
34
+ export { Wrapper as default };
@@ -1,70 +1,50 @@
1
- "use strict";
2
-
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
-
5
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
-
7
- Object.defineProperty(exports, "__esModule", {
8
- value: true
9
- });
10
- exports.default = void 0;
11
-
12
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
13
-
14
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
15
-
16
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
17
-
18
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
19
-
20
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
21
-
22
- var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/assertThisInitialized"));
23
-
24
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
25
-
26
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
27
-
28
- var _react = _interopRequireDefault(require("react"));
29
-
30
- var _propTypes = _interopRequireDefault(require("prop-types"));
31
-
32
- var _warning = _interopRequireDefault(require("warning"));
33
-
34
- var _brcast = _interopRequireDefault(require("brcast"));
35
-
36
- var _themeListener = _interopRequireWildcard(require("./themeListener"));
37
-
38
- var _exactProp = _interopRequireDefault(require("../utils/exactProp"));
39
-
1
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/esm/createClass";
4
+ import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
5
+ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
6
+ import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
7
+ import _inherits from "@babel/runtime/helpers/esm/inherits";
8
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
+ import React from 'react';
10
+ import PropTypes from 'prop-types';
11
+ import warning from 'warning';
12
+ import createBroadcast from 'brcast';
13
+ import themeListener, { CHANNEL } from './themeListener';
14
+ import exactProp from '../utils/exactProp';
40
15
  /**
41
16
  * This component takes a `theme` property.
42
17
  * It makes the `theme` available down the React tree thanks to React context.
43
18
  * This component should preferably be used at **the root of your component tree**.
44
19
  */
20
+
45
21
  var MuiThemeProvider =
46
22
  /*#__PURE__*/
47
23
  function (_React$Component) {
48
- (0, _inherits2.default)(MuiThemeProvider, _React$Component);
24
+ _inherits(MuiThemeProvider, _React$Component);
49
25
 
50
26
  // We are not using the React state in order to avoid unnecessary rerender.
51
27
  function MuiThemeProvider(props, context) {
52
28
  var _this;
53
29
 
54
- (0, _classCallCheck2.default)(this, MuiThemeProvider);
55
- _this = (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(MuiThemeProvider).call(this)); // Get the outer theme from the context, can be null
30
+ _classCallCheck(this, MuiThemeProvider);
31
+
32
+ _this = _possibleConstructorReturn(this, _getPrototypeOf(MuiThemeProvider).call(this)); // Get the outer theme from the context, can be null
33
+
34
+ _defineProperty(_assertThisInitialized(_this), "broadcast", createBroadcast());
56
35
 
57
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "broadcast", (0, _brcast.default)());
58
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "unsubscribeId", null);
59
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "outerTheme", null);
60
- _this.outerTheme = _themeListener.default.initial(context); // Propagate the theme so it can be accessed by the children
36
+ _defineProperty(_assertThisInitialized(_this), "unsubscribeId", null);
37
+
38
+ _defineProperty(_assertThisInitialized(_this), "outerTheme", null);
39
+
40
+ _this.outerTheme = themeListener.initial(context); // Propagate the theme so it can be accessed by the children
61
41
 
62
42
  _this.broadcast.setState(_this.mergeOuterLocalTheme(props.theme));
63
43
 
64
44
  return _this;
65
45
  }
66
46
 
67
- (0, _createClass2.default)(MuiThemeProvider, [{
47
+ _createClass(MuiThemeProvider, [{
68
48
  key: "getChildContext",
69
49
  value: function getChildContext() {
70
50
  var _ref;
@@ -82,7 +62,7 @@ function (_React$Component) {
82
62
  muiThemeProviderOptions.disableStylesGeneration = disableStylesGeneration;
83
63
  }
84
64
 
85
- return _ref = {}, (0, _defineProperty2.default)(_ref, _themeListener.CHANNEL, this.broadcast), (0, _defineProperty2.default)(_ref, "muiThemeProviderOptions", muiThemeProviderOptions), _ref;
65
+ return _ref = {}, _defineProperty(_ref, CHANNEL, this.broadcast), _defineProperty(_ref, "muiThemeProviderOptions", muiThemeProviderOptions), _ref;
86
66
  }
87
67
  }, {
88
68
  key: "componentDidMount",
@@ -90,7 +70,7 @@ function (_React$Component) {
90
70
  var _this2 = this;
91
71
 
92
72
  // Subscribe on the outer theme, if present
93
- this.unsubscribeId = _themeListener.default.subscribe(this.context, function (outerTheme) {
73
+ this.unsubscribeId = themeListener.subscribe(this.context, function (outerTheme) {
94
74
  _this2.outerTheme = outerTheme; // Forward the parent theme update to the children
95
75
 
96
76
  _this2.broadcast.setState(_this2.mergeOuterLocalTheme(_this2.props.theme));
@@ -108,7 +88,7 @@ function (_React$Component) {
108
88
  key: "componentWillUnmount",
109
89
  value: function componentWillUnmount() {
110
90
  if (this.unsubscribeId !== null) {
111
- _themeListener.default.unsubscribe(this.context, this.unsubscribeId);
91
+ themeListener.unsubscribe(this.context, this.unsubscribeId);
112
92
  }
113
93
  } // Simple merge between the outer theme and the local theme
114
94
 
@@ -117,7 +97,7 @@ function (_React$Component) {
117
97
  value: function mergeOuterLocalTheme(localTheme) {
118
98
  // To support composition of theme.
119
99
  if (typeof localTheme === 'function') {
120
- process.env.NODE_ENV !== "production" ? (0, _warning.default)(this.outerTheme, ['Material-UI: you are providing a theme function property ' + 'to the MuiThemeProvider component:', '<MuiThemeProvider theme={outerTheme => outerTheme} />', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\n')) : void 0;
100
+ warning(this.outerTheme, ['Material-UI: you are providing a theme function property ' + 'to the MuiThemeProvider component:', '<MuiThemeProvider theme={outerTheme => outerTheme} />', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\n'));
121
101
  return localTheme(this.outerTheme);
122
102
  }
123
103
 
@@ -125,7 +105,7 @@ function (_React$Component) {
125
105
  return localTheme;
126
106
  }
127
107
 
128
- return (0, _objectSpread2.default)({}, this.outerTheme, {}, localTheme);
108
+ return _objectSpread({}, this.outerTheme, {}, localTheme);
129
109
  }
130
110
  }, {
131
111
  key: "render",
@@ -142,14 +122,14 @@ function (_React$Component) {
142
122
  return this.props.children;
143
123
  }
144
124
  }]);
125
+
145
126
  return MuiThemeProvider;
146
- }(_react.default.Component);
127
+ }(React.Component);
147
128
 
148
- MuiThemeProvider.childContextTypes = (0, _objectSpread2.default)({}, _themeListener.default.contextTypes, {
149
- muiThemeProviderOptions: _propTypes.default.object
129
+ MuiThemeProvider.childContextTypes = _objectSpread({}, themeListener.contextTypes, {
130
+ muiThemeProviderOptions: PropTypes.object
150
131
  });
151
- MuiThemeProvider.contextTypes = (0, _objectSpread2.default)({}, _themeListener.default.contextTypes, {
152
- muiThemeProviderOptions: _propTypes.default.object
132
+ MuiThemeProvider.contextTypes = _objectSpread({}, themeListener.contextTypes, {
133
+ muiThemeProviderOptions: PropTypes.object
153
134
  });
154
- var _default = MuiThemeProvider;
155
- exports.default = _default;
135
+ export default MuiThemeProvider;
@@ -1,25 +1,5 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.convertHexToRGB = convertHexToRGB;
9
- exports.rgbToHex = rgbToHex;
10
- exports.decomposeColor = decomposeColor;
11
- exports.recomposeColor = recomposeColor;
12
- exports.getContrastRatio = getContrastRatio;
13
- exports.getLuminance = getLuminance;
14
- exports.emphasize = emphasize;
15
- exports.fade = fade;
16
- exports.darken = darken;
17
- exports.lighten = lighten;
18
-
19
- var _warning = _interopRequireDefault(require("warning"));
20
-
21
1
  /* eslint-disable no-use-before-define */
22
-
2
+ import warning from 'warning';
23
3
  /**
24
4
  * Returns a number whose value is limited to the given range.
25
5
  *
@@ -28,10 +8,11 @@ var _warning = _interopRequireDefault(require("warning"));
28
8
  * @param {number} max The upper boundary of the output range
29
9
  * @returns {number} A number in the range [min, max]
30
10
  */
11
+
31
12
  function clamp(value) {
32
13
  var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
33
14
  var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
34
- process.env.NODE_ENV !== "production" ? (0, _warning.default)(value >= min && value <= max, "Material-UI: the value provided ".concat(value, " is out of range [").concat(min, ", ").concat(max, "].")) : void 0;
15
+ warning(value >= min && value <= max, "Material-UI: the value provided ".concat(value, " is out of range [").concat(min, ", ").concat(max, "]."));
35
16
 
36
17
  if (value < min) {
37
18
  return min;
@@ -51,7 +32,7 @@ function clamp(value) {
51
32
  */
52
33
 
53
34
 
54
- function convertHexToRGB(color) {
35
+ export function convertHexToRGB(color) {
55
36
  color = color.substr(1);
56
37
  var re = new RegExp(".{1,".concat(color.length / 3, "}"), 'g');
57
38
  var colors = color.match(re);
@@ -73,8 +54,7 @@ function convertHexToRGB(color) {
73
54
  * @returns {string} A CSS rgb color string, i.e. #nnnnnn
74
55
  */
75
56
 
76
-
77
- function rgbToHex(color) {
57
+ export function rgbToHex(color) {
78
58
  // Pass hex straight through
79
59
  if (color.indexOf('#') === 0) {
80
60
  return color;
@@ -102,8 +82,7 @@ function rgbToHex(color) {
102
82
  * @returns {object} - A MUI color object: {type: string, values: number[]}
103
83
  */
104
84
 
105
-
106
- function decomposeColor(color) {
85
+ export function decomposeColor(color) {
107
86
  if (color.charAt(0) === '#') {
108
87
  return decomposeColor(convertHexToRGB(color));
109
88
  }
@@ -135,8 +114,7 @@ function decomposeColor(color) {
135
114
  * @returns {string} A CSS color string
136
115
  */
137
116
 
138
-
139
- function recomposeColor(color) {
117
+ export function recomposeColor(color) {
140
118
  var type = color.type;
141
119
  var values = color.values;
142
120
 
@@ -164,8 +142,7 @@ function recomposeColor(color) {
164
142
  * @returns {number} A contrast ratio value in the range 0 - 21.
165
143
  */
166
144
 
167
-
168
- function getContrastRatio(foreground, background) {
145
+ export function getContrastRatio(foreground, background) {
169
146
  var lumA = getLuminance(foreground);
170
147
  var lumB = getLuminance(background);
171
148
  return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
@@ -180,8 +157,7 @@ function getContrastRatio(foreground, background) {
180
157
  * @returns {number} The relative brightness of the color in the range 0 - 1
181
158
  */
182
159
 
183
-
184
- function getLuminance(color) {
160
+ export function getLuminance(color) {
185
161
  var decomposedColor = decomposeColor(color);
186
162
 
187
163
  if (decomposedColor.type.indexOf('rgb') !== -1) {
@@ -206,8 +182,7 @@ function getLuminance(color) {
206
182
  * @returns {string} A CSS color string. Hex input values are returned as rgb
207
183
  */
208
184
 
209
-
210
- function emphasize(color) {
185
+ export function emphasize(color) {
211
186
  var coefficient = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.15;
212
187
  return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);
213
188
  }
@@ -220,9 +195,8 @@ function emphasize(color) {
220
195
  * @returns {string} A CSS color string. Hex input values are returned as rgb
221
196
  */
222
197
 
223
-
224
- function fade(color, value) {
225
- process.env.NODE_ENV !== "production" ? (0, _warning.default)(color, "Material-UI: missing color argument in fade(".concat(color, ", ").concat(value, ").")) : void 0;
198
+ export function fade(color, value) {
199
+ warning(color, "Material-UI: missing color argument in fade(".concat(color, ", ").concat(value, ")."));
226
200
  if (!color) return color;
227
201
  color = decomposeColor(color);
228
202
  value = clamp(value);
@@ -242,9 +216,8 @@ function fade(color, value) {
242
216
  * @returns {string} A CSS color string. Hex input values are returned as rgb
243
217
  */
244
218
 
245
-
246
- function darken(color, coefficient) {
247
- process.env.NODE_ENV !== "production" ? (0, _warning.default)(color, "Material-UI: missing color argument in darken(".concat(color, ", ").concat(coefficient, ").")) : void 0;
219
+ export function darken(color, coefficient) {
220
+ warning(color, "Material-UI: missing color argument in darken(".concat(color, ", ").concat(coefficient, ")."));
248
221
  if (!color) return color;
249
222
  color = decomposeColor(color);
250
223
  coefficient = clamp(coefficient);
@@ -267,9 +240,8 @@ function darken(color, coefficient) {
267
240
  * @returns {string} A CSS color string. Hex input values are returned as rgb
268
241
  */
269
242
 
270
-
271
- function lighten(color, coefficient) {
272
- process.env.NODE_ENV !== "production" ? (0, _warning.default)(color, "Material-UI: missing color argument in lighten(".concat(color, ", ").concat(coefficient, ").")) : void 0;
243
+ export function lighten(color, coefficient) {
244
+ warning(color, "Material-UI: missing color argument in lighten(".concat(color, ", ").concat(coefficient, ")."));
273
245
  if (!color) return color;
274
246
  color = decomposeColor(color);
275
247
  coefficient = clamp(coefficient);