@hipay/hipay-material-ui 4.0.1-beta5 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (439) hide show
  1. package/HiAccordion/HiAccordion.js +8 -26
  2. package/HiAccordion/index.js +1 -5
  3. package/HiAccordionActions/HiAccordionActions.js +1 -14
  4. package/HiAccordionActions/index.js +1 -5
  5. package/HiAccordionSummary/HiAccordionSummary.js +1 -15
  6. package/HiAccordionSummary/index.js +1 -5
  7. package/HiAlertModal/HiAlertModal.js +7 -22
  8. package/HiAlertModal/index.js +1 -5
  9. package/HiAppBar/HiAppBar.js +17 -51
  10. package/HiAppBar/index.js +0 -2
  11. package/HiAvatar/HiAvatar.js +3 -12
  12. package/HiAvatar/index.js +0 -2
  13. package/HiBadge/HiBadge.js +8 -24
  14. package/HiBadge/index.js +0 -2
  15. package/HiBreadcrumb/HiBreadcrumb.js +12 -38
  16. package/HiBreadcrumb/HiStep.js +19 -53
  17. package/HiBreadcrumb/HiStepConnector.js +20 -59
  18. package/HiBreadcrumb/HiStepContent.js +12 -38
  19. package/HiBreadcrumb/HiStepIcon.js +16 -43
  20. package/HiBreadcrumb/HiStepLabel.js +20 -52
  21. package/HiBreadcrumb/HiStepper.js +12 -38
  22. package/HiBreadcrumb/index.js +0 -2
  23. package/HiButton/HiButton.js +8 -33
  24. package/HiButton/index.js +1 -5
  25. package/HiCell/CellAddress.js +18 -41
  26. package/HiCell/CellDate.js +16 -44
  27. package/HiCell/CellHiddenContent.js +8 -30
  28. package/HiCell/CellIcon.js +18 -44
  29. package/HiCell/CellImage.js +18 -42
  30. package/HiCell/CellNumeric.js +19 -48
  31. package/HiCell/CellPinToAction.js +15 -41
  32. package/HiCell/CellRate.js +19 -55
  33. package/HiCell/CellSentinel.js +18 -41
  34. package/HiCell/CellSentinelScore.js +15 -39
  35. package/HiCell/CellText.js +23 -62
  36. package/HiCell/CellTextStyled.js +13 -24
  37. package/HiCell/index.js +0 -10
  38. package/HiCheckbox/HiCheckbox.js +21 -61
  39. package/HiCheckbox/index.js +0 -2
  40. package/HiChip/HiChip.js +24 -47
  41. package/HiChip/HiChipSwitch.js +25 -71
  42. package/HiChip/index.js +0 -3
  43. package/HiColoredLabel/HiColoredLabel.js +15 -49
  44. package/HiColoredLabel/index.js +0 -2
  45. package/HiDatePicker/Caption.js +9 -21
  46. package/HiDatePicker/HiDatePicker.js +22 -96
  47. package/HiDatePicker/HiDatePickerMobile.js +24 -51
  48. package/HiDatePicker/HiDateRangePicker.js +44 -142
  49. package/HiDatePicker/HiDateRangeSelector.js +55 -138
  50. package/HiDatePicker/ListPicker.js +14 -46
  51. package/HiDatePicker/NavBar.js +12 -31
  52. package/HiDatePicker/Overlays/CustomOverlayLayout.js +11 -28
  53. package/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +11 -28
  54. package/HiDatePicker/Overlays/MonthPickerOverlay.js +11 -36
  55. package/HiDatePicker/Overlays/Overlay.js +8 -25
  56. package/HiDatePicker/Overlays/TimePickerOverlay.js +16 -50
  57. package/HiDatePicker/Overlays/YearPickerOverlay.js +15 -42
  58. package/HiDatePicker/Overlays/index.js +0 -6
  59. package/HiDatePicker/Weekday.js +4 -9
  60. package/HiDatePicker/hiLocaleUtils.js +8 -20
  61. package/HiDatePicker/index.js +0 -2
  62. package/HiDatePicker/stylesheet.js +6 -13
  63. package/HiDialog/HiDialog.js +7 -19
  64. package/HiDialog/index.js +0 -2
  65. package/HiDotsStepper/HiDot.js +14 -45
  66. package/HiDotsStepper/HiDotsStepper.js +18 -48
  67. package/HiDotsStepper/index.js +0 -3
  68. package/HiExpansionPanel/HiExpansionPanel.js +16 -38
  69. package/HiExpansionPanel/index.js +1 -5
  70. package/HiForm/HiAddressField.js +20 -49
  71. package/HiForm/HiEmailField.js +11 -38
  72. package/HiForm/HiFormControl.js +37 -86
  73. package/HiForm/HiFormLabel.js +20 -48
  74. package/HiForm/HiInput.js +47 -109
  75. package/HiForm/HiPasswordField.js +18 -57
  76. package/HiForm/HiSearchField.js +12 -46
  77. package/HiForm/HiSlider.js +28 -65
  78. package/HiForm/HiTextField.js +30 -58
  79. package/HiForm/HiUpload.js +35 -97
  80. package/HiForm/HiUploadField.js +16 -40
  81. package/HiForm/HiUploadInput.js +27 -84
  82. package/HiForm/index.js +0 -12
  83. package/HiIcon/HiIcon.js +9 -34
  84. package/HiIcon/index.js +0 -2
  85. package/HiIconButton/HiIconButton.js +6 -21
  86. package/HiIconButton/index.js +0 -2
  87. package/HiListItemLink/HiListItemLink.js +6 -19
  88. package/HiListItemLink/index.js +0 -2
  89. package/HiLoader/HiLoader.js +6 -16
  90. package/HiLoader/index.js +0 -2
  91. package/HiNotice/HiKPI.js +23 -57
  92. package/HiNotice/HiKPINotice.js +6 -16
  93. package/HiNotice/index.js +0 -3
  94. package/HiPagination/HiPagination.js +1 -11
  95. package/HiPagination/index.js +0 -2
  96. package/HiPaymentMeans/HiPaymentMeans.js +31 -72
  97. package/HiPaymentMeans/index.js +0 -2
  98. package/HiPdfReader/HiPdfReader.js +29 -64
  99. package/HiPdfReader/index.js +0 -2
  100. package/HiPin/HiPin.js +7 -19
  101. package/HiPin/index.js +0 -2
  102. package/HiRadio/HiRadio.js +11 -22
  103. package/HiRadio/index.js +0 -2
  104. package/HiScrollStepper/HiScrollStepper.js +29 -67
  105. package/HiScrollStepper/index.js +0 -2
  106. package/HiSelect/HiDynamicSelect.js +39 -52
  107. package/HiSelect/HiDynamicSelectField.js +29 -55
  108. package/HiSelect/HiNestedSelect.js +71 -120
  109. package/HiSelect/HiNestedSelectContent.js +65 -93
  110. package/HiSelect/HiNestedSelectField.js +29 -55
  111. package/HiSelect/HiSelect.js +95 -195
  112. package/HiSelect/HiSelectContent.js +72 -110
  113. package/HiSelect/HiSelectField.js +30 -56
  114. package/HiSelect/HiSelectInput.js +27 -84
  115. package/HiSelect/HiSelectMobile.js +13 -52
  116. package/HiSelect/HiSuggestSelect.js +30 -88
  117. package/HiSelect/HiSuggestSelectField.js +20 -46
  118. package/HiSelect/index.js +2 -14
  119. package/HiSelectableList/HiSelectableList.js +40 -98
  120. package/HiSelectableList/HiSelectableListHierarchic.js +40 -68
  121. package/HiSelectableList/HiSelectableListItem.js +45 -88
  122. package/HiSelectableList/index.js +0 -4
  123. package/HiStepper/DefaultIndicator.js +1 -10
  124. package/HiStepper/HiStep.js +18 -48
  125. package/HiStepper/HiStepper.js +2 -15
  126. package/HiStepper/index.js +0 -3
  127. package/HiSwitch/HiSwitch.js +9 -33
  128. package/HiSwitch/HiSwitchState.js +15 -32
  129. package/HiSwitch/index.js +0 -3
  130. package/HiTable/HiCellBuilder.js +15 -72
  131. package/HiTable/HiTable.js +20 -48
  132. package/HiTable/HiTableBody.js +12 -31
  133. package/HiTable/HiTableHeader.js +23 -58
  134. package/HiTable/HiTableRow.js +18 -55
  135. package/HiTable/constants.js +48 -98
  136. package/HiTable/index.js +0 -2
  137. package/es/HiAccordion/HiAccordion.js +8 -26
  138. package/es/HiAccordion/index.js +1 -5
  139. package/es/HiAccordionActions/HiAccordionActions.js +1 -14
  140. package/es/HiAccordionActions/index.js +1 -5
  141. package/es/HiAccordionSummary/HiAccordionSummary.js +1 -15
  142. package/es/HiAccordionSummary/index.js +1 -5
  143. package/es/HiAlertModal/HiAlertModal.js +7 -22
  144. package/es/HiAlertModal/index.js +1 -5
  145. package/es/HiAppBar/HiAppBar.js +17 -51
  146. package/es/HiAppBar/index.js +0 -2
  147. package/es/HiAvatar/HiAvatar.js +3 -12
  148. package/es/HiAvatar/index.js +0 -2
  149. package/es/HiBadge/HiBadge.js +8 -24
  150. package/es/HiBadge/index.js +0 -2
  151. package/es/HiBreadcrumb/HiBreadcrumb.js +12 -38
  152. package/es/HiBreadcrumb/HiStep.js +19 -53
  153. package/es/HiBreadcrumb/HiStepConnector.js +20 -59
  154. package/es/HiBreadcrumb/HiStepContent.js +12 -38
  155. package/es/HiBreadcrumb/HiStepIcon.js +16 -43
  156. package/es/HiBreadcrumb/HiStepLabel.js +20 -52
  157. package/es/HiBreadcrumb/HiStepper.js +12 -38
  158. package/es/HiBreadcrumb/index.js +0 -2
  159. package/es/HiButton/HiButton.js +8 -33
  160. package/es/HiButton/index.js +1 -5
  161. package/es/HiCell/CellAddress.js +18 -41
  162. package/es/HiCell/CellDate.js +16 -44
  163. package/es/HiCell/CellHiddenContent.js +8 -30
  164. package/es/HiCell/CellIcon.js +18 -44
  165. package/es/HiCell/CellImage.js +18 -42
  166. package/es/HiCell/CellNumeric.js +19 -48
  167. package/es/HiCell/CellPinToAction.js +15 -41
  168. package/es/HiCell/CellRate.js +19 -55
  169. package/es/HiCell/CellSentinel.js +18 -41
  170. package/es/HiCell/CellSentinelScore.js +15 -39
  171. package/es/HiCell/CellText.js +23 -62
  172. package/es/HiCell/CellTextStyled.js +13 -24
  173. package/es/HiCell/index.js +0 -10
  174. package/es/HiCheckbox/HiCheckbox.js +21 -61
  175. package/es/HiCheckbox/index.js +0 -2
  176. package/es/HiChip/HiChip.js +24 -47
  177. package/es/HiChip/HiChipSwitch.js +25 -71
  178. package/es/HiChip/index.js +0 -3
  179. package/es/HiColoredLabel/HiColoredLabel.js +15 -49
  180. package/es/HiColoredLabel/index.js +0 -2
  181. package/es/HiDatePicker/Caption.js +9 -21
  182. package/es/HiDatePicker/HiDatePicker.js +22 -96
  183. package/es/HiDatePicker/HiDatePickerMobile.js +24 -51
  184. package/es/HiDatePicker/HiDateRangePicker.js +44 -142
  185. package/es/HiDatePicker/HiDateRangeSelector.js +55 -138
  186. package/es/HiDatePicker/ListPicker.js +14 -46
  187. package/es/HiDatePicker/NavBar.js +12 -31
  188. package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +11 -28
  189. package/es/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +11 -28
  190. package/es/HiDatePicker/Overlays/MonthPickerOverlay.js +11 -36
  191. package/es/HiDatePicker/Overlays/Overlay.js +8 -25
  192. package/es/HiDatePicker/Overlays/TimePickerOverlay.js +16 -50
  193. package/es/HiDatePicker/Overlays/YearPickerOverlay.js +15 -42
  194. package/es/HiDatePicker/Overlays/index.js +0 -6
  195. package/es/HiDatePicker/Weekday.js +4 -9
  196. package/es/HiDatePicker/hiLocaleUtils.js +8 -20
  197. package/es/HiDatePicker/index.js +0 -2
  198. package/es/HiDatePicker/stylesheet.js +6 -13
  199. package/es/HiDialog/HiDialog.js +7 -19
  200. package/es/HiDialog/index.js +0 -2
  201. package/es/HiDotsStepper/HiDot.js +14 -45
  202. package/es/HiDotsStepper/HiDotsStepper.js +18 -48
  203. package/es/HiDotsStepper/index.js +0 -3
  204. package/es/HiExpansionPanel/HiExpansionPanel.js +16 -38
  205. package/es/HiExpansionPanel/index.js +1 -5
  206. package/es/HiForm/HiAddressField.js +20 -49
  207. package/es/HiForm/HiEmailField.js +11 -38
  208. package/es/HiForm/HiFormControl.js +37 -86
  209. package/es/HiForm/HiFormLabel.js +20 -48
  210. package/es/HiForm/HiInput.js +47 -109
  211. package/es/HiForm/HiPasswordField.js +18 -57
  212. package/es/HiForm/HiSearchField.js +12 -46
  213. package/es/HiForm/HiSlider.js +28 -65
  214. package/es/HiForm/HiTextField.js +30 -58
  215. package/es/HiForm/HiUpload.js +35 -97
  216. package/es/HiForm/HiUploadField.js +16 -40
  217. package/es/HiForm/HiUploadInput.js +27 -84
  218. package/es/HiForm/index.js +0 -12
  219. package/es/HiIcon/HiIcon.js +9 -34
  220. package/es/HiIcon/index.js +0 -2
  221. package/es/HiIconButton/HiIconButton.js +6 -21
  222. package/es/HiIconButton/index.js +0 -2
  223. package/es/HiListItemLink/HiListItemLink.js +6 -19
  224. package/es/HiListItemLink/index.js +0 -2
  225. package/es/HiLoader/HiLoader.js +6 -16
  226. package/es/HiLoader/index.js +0 -2
  227. package/es/HiNotice/HiKPI.js +23 -57
  228. package/es/HiNotice/HiKPINotice.js +6 -16
  229. package/es/HiNotice/index.js +0 -3
  230. package/es/HiPagination/HiPagination.js +1 -11
  231. package/es/HiPagination/index.js +0 -2
  232. package/es/HiPaymentMeans/HiPaymentMeans.js +31 -72
  233. package/es/HiPaymentMeans/index.js +0 -2
  234. package/es/HiPdfReader/HiPdfReader.js +29 -64
  235. package/es/HiPdfReader/index.js +0 -2
  236. package/es/HiPin/HiPin.js +7 -19
  237. package/es/HiPin/index.js +0 -2
  238. package/es/HiRadio/HiRadio.js +11 -22
  239. package/es/HiRadio/index.js +0 -2
  240. package/es/HiScrollStepper/HiScrollStepper.js +29 -67
  241. package/es/HiScrollStepper/index.js +0 -2
  242. package/es/HiSelect/HiDynamicSelect.js +39 -52
  243. package/es/HiSelect/HiDynamicSelectField.js +29 -55
  244. package/es/HiSelect/HiNestedSelect.js +71 -120
  245. package/es/HiSelect/HiNestedSelectContent.js +65 -93
  246. package/es/HiSelect/HiNestedSelectField.js +29 -55
  247. package/es/HiSelect/HiSelect.js +95 -195
  248. package/es/HiSelect/HiSelectContent.js +72 -110
  249. package/es/HiSelect/HiSelectField.js +30 -56
  250. package/es/HiSelect/HiSelectInput.js +27 -84
  251. package/es/HiSelect/HiSelectMobile.js +13 -52
  252. package/es/HiSelect/HiSuggestSelect.js +30 -88
  253. package/es/HiSelect/HiSuggestSelectField.js +20 -46
  254. package/es/HiSelect/index.js +2 -14
  255. package/es/HiSelectableList/HiSelectableList.js +40 -98
  256. package/es/HiSelectableList/HiSelectableListHierarchic.js +40 -68
  257. package/es/HiSelectableList/HiSelectableListItem.js +45 -88
  258. package/es/HiSelectableList/index.js +0 -4
  259. package/es/HiStepper/DefaultIndicator.js +1 -10
  260. package/es/HiStepper/HiStep.js +18 -48
  261. package/es/HiStepper/HiStepper.js +2 -15
  262. package/es/HiStepper/index.js +0 -3
  263. package/es/HiSwitch/HiSwitch.js +9 -33
  264. package/es/HiSwitch/HiSwitchState.js +15 -32
  265. package/es/HiSwitch/index.js +0 -3
  266. package/es/HiTable/HiCellBuilder.js +15 -72
  267. package/es/HiTable/HiTable.js +20 -48
  268. package/es/HiTable/HiTableBody.js +12 -31
  269. package/es/HiTable/HiTableHeader.js +23 -58
  270. package/es/HiTable/HiTableRow.js +18 -55
  271. package/es/HiTable/constants.js +48 -98
  272. package/es/HiTable/index.js +0 -2
  273. package/es/hi-svg-icons/HiAccount.js +4 -14
  274. package/es/hi-svg-icons/HiActivity.js +4 -14
  275. package/es/hi-svg-icons/HiAll.js +7 -18
  276. package/es/hi-svg-icons/HiBilling.js +4 -14
  277. package/es/hi-svg-icons/HiBriefcaseRescue.js +4 -14
  278. package/es/hi-svg-icons/HiBusiness.js +4 -14
  279. package/es/hi-svg-icons/HiCatalog.js +4 -14
  280. package/es/hi-svg-icons/HiCustomer.js +4 -14
  281. package/es/hi-svg-icons/HiDownload.js +4 -14
  282. package/es/hi-svg-icons/HiFinance.js +4 -14
  283. package/es/hi-svg-icons/HiFinanceMenu.js +4 -14
  284. package/es/hi-svg-icons/HiHostedPaymentPage.js +4 -14
  285. package/es/hi-svg-icons/HiHostedPaymentPageMenu.js +4 -14
  286. package/es/hi-svg-icons/HiIntegration.js +4 -14
  287. package/es/hi-svg-icons/HiIntegrationMenu.js +4 -14
  288. package/es/hi-svg-icons/HiIntelligence.js +4 -14
  289. package/es/hi-svg-icons/HiIntelligenceMenu.js +4 -14
  290. package/es/hi-svg-icons/HiInvoice.js +4 -14
  291. package/es/hi-svg-icons/HiInvoiceMenu.js +4 -14
  292. package/es/hi-svg-icons/HiLogoRounded.js +6 -17
  293. package/es/hi-svg-icons/HiOrder.js +4 -14
  294. package/es/hi-svg-icons/HiPaymentOrder.js +4 -14
  295. package/es/hi-svg-icons/HiPermission.js +4 -14
  296. package/es/hi-svg-icons/HiPriceGrid.js +4 -14
  297. package/es/hi-svg-icons/HiPrivate.js +4 -14
  298. package/es/hi-svg-icons/HiRoute.js +4 -14
  299. package/es/hi-svg-icons/HiRouteMenu.js +4 -14
  300. package/es/hi-svg-icons/HiRouteSwitch.js +7 -19
  301. package/es/hi-svg-icons/HiRouteSwitchMenu.js +7 -19
  302. package/es/hi-svg-icons/HiSettlement.js +4 -14
  303. package/es/hi-svg-icons/HiSizeLarge.js +4 -14
  304. package/es/hi-svg-icons/HiSizeMedium.js +4 -14
  305. package/es/hi-svg-icons/HiSizeSmall.js +4 -14
  306. package/es/hi-svg-icons/HiStore.js +4 -14
  307. package/es/hi-svg-icons/HiStoreMenu.js +4 -14
  308. package/es/hi-svg-icons/HiTransaction.js +4 -14
  309. package/es/hi-svg-icons/HiTransactionMenu.js +4 -14
  310. package/es/hi-svg-icons/HiUser.js +4 -14
  311. package/es/hi-svg-icons/HiVendor.js +4 -14
  312. package/es/hi-svg-icons/HiWidget.js +4 -14
  313. package/es/hi-svg-icons/index.js +0 -41
  314. package/es/hi-svg-images/HiLogo.js +4 -12
  315. package/es/hi-svg-images/HiLogoWhite.js +4 -12
  316. package/es/hi-svg-images/index.js +0 -3
  317. package/es/setupTest.js +2 -13
  318. package/es/styleguide/Wrapper.js +0 -6
  319. package/es/styles/MuiThemeProvider.js +20 -56
  320. package/es/styles/colorManipulator.js +15 -50
  321. package/es/styles/createBreakpoints.js +14 -29
  322. package/es/styles/createGenerateClassName.js +14 -24
  323. package/es/styles/createMixins.js +4 -10
  324. package/es/styles/createMuiTheme.js +11 -28
  325. package/es/styles/createPalette.js +66 -89
  326. package/es/styles/createStyles.js +0 -1
  327. package/es/styles/createTypography.js +15 -24
  328. package/es/styles/getStylesCreator.js +2 -14
  329. package/es/styles/getThemeProps.js +2 -7
  330. package/es/styles/index.js +0 -6
  331. package/es/styles/jssPreset.js +1 -11
  332. package/es/styles/makeStyles.js +2 -9
  333. package/es/styles/mergeClasses.js +5 -16
  334. package/es/styles/shadows.js +1 -4
  335. package/es/styles/shape.js +1 -2
  336. package/es/styles/spacing.js +1 -4
  337. package/es/styles/themeListener.js +2 -10
  338. package/es/styles/transitions.js +20 -35
  339. package/es/styles/withStyles.js +2 -9
  340. package/es/styles/zIndex.js +1 -2
  341. package/es/test-utils/createMount.js +2 -12
  342. package/es/test-utils/createRender.js +2 -9
  343. package/es/test-utils/createShallow.js +6 -17
  344. package/es/test-utils/getClasses.js +1 -4
  345. package/es/test-utils/index.js +0 -6
  346. package/es/test-utils/until.js +3 -14
  347. package/es/test-utils/unwrap.js +0 -1
  348. package/es/theme/palette.js +2 -7
  349. package/es/theme/typography.js +7 -15
  350. package/es/theme.js +2 -8
  351. package/es/transitions/utils.js +3 -7
  352. package/es/utils/exactProp.js +3 -13
  353. package/es/utils/helpers.js +19 -58
  354. package/es/withMobileDialog/index.js +0 -2
  355. package/es/withMobileDialog/withMobileDialog.js +3 -12
  356. package/hi-svg-icons/HiAccount.js +4 -14
  357. package/hi-svg-icons/HiActivity.js +4 -14
  358. package/hi-svg-icons/HiAll.js +7 -18
  359. package/hi-svg-icons/HiBilling.js +4 -14
  360. package/hi-svg-icons/HiBriefcaseRescue.js +4 -14
  361. package/hi-svg-icons/HiBusiness.js +4 -14
  362. package/hi-svg-icons/HiCatalog.js +4 -14
  363. package/hi-svg-icons/HiCustomer.js +4 -14
  364. package/hi-svg-icons/HiDownload.js +4 -14
  365. package/hi-svg-icons/HiFinance.js +4 -14
  366. package/hi-svg-icons/HiFinanceMenu.js +4 -14
  367. package/hi-svg-icons/HiHostedPaymentPage.js +4 -14
  368. package/hi-svg-icons/HiHostedPaymentPageMenu.js +4 -14
  369. package/hi-svg-icons/HiIntegration.js +4 -14
  370. package/hi-svg-icons/HiIntegrationMenu.js +4 -14
  371. package/hi-svg-icons/HiIntelligence.js +4 -14
  372. package/hi-svg-icons/HiIntelligenceMenu.js +4 -14
  373. package/hi-svg-icons/HiInvoice.js +4 -14
  374. package/hi-svg-icons/HiInvoiceMenu.js +4 -14
  375. package/hi-svg-icons/HiLogoRounded.js +6 -17
  376. package/hi-svg-icons/HiOrder.js +4 -14
  377. package/hi-svg-icons/HiPaymentOrder.js +4 -14
  378. package/hi-svg-icons/HiPermission.js +4 -14
  379. package/hi-svg-icons/HiPriceGrid.js +4 -14
  380. package/hi-svg-icons/HiPrivate.js +4 -14
  381. package/hi-svg-icons/HiRoute.js +4 -14
  382. package/hi-svg-icons/HiRouteMenu.js +4 -14
  383. package/hi-svg-icons/HiRouteSwitch.js +7 -19
  384. package/hi-svg-icons/HiRouteSwitchMenu.js +7 -19
  385. package/hi-svg-icons/HiSettlement.js +4 -14
  386. package/hi-svg-icons/HiSizeLarge.js +4 -14
  387. package/hi-svg-icons/HiSizeMedium.js +4 -14
  388. package/hi-svg-icons/HiSizeSmall.js +4 -14
  389. package/hi-svg-icons/HiStore.js +4 -14
  390. package/hi-svg-icons/HiStoreMenu.js +4 -14
  391. package/hi-svg-icons/HiTransaction.js +4 -14
  392. package/hi-svg-icons/HiTransactionMenu.js +4 -14
  393. package/hi-svg-icons/HiUser.js +4 -14
  394. package/hi-svg-icons/HiVendor.js +4 -14
  395. package/hi-svg-icons/HiWidget.js +4 -14
  396. package/hi-svg-icons/index.js +0 -41
  397. package/hi-svg-images/HiLogo.js +4 -12
  398. package/hi-svg-images/HiLogoWhite.js +4 -12
  399. package/hi-svg-images/index.js +0 -3
  400. package/package.json +184 -80
  401. package/setupTest.js +2 -13
  402. package/styleguide/Wrapper.js +0 -6
  403. package/styles/MuiThemeProvider.js +20 -56
  404. package/styles/colorManipulator.js +15 -50
  405. package/styles/createBreakpoints.js +14 -29
  406. package/styles/createGenerateClassName.js +14 -24
  407. package/styles/createMixins.js +4 -10
  408. package/styles/createMuiTheme.js +11 -28
  409. package/styles/createPalette.js +66 -89
  410. package/styles/createStyles.js +0 -1
  411. package/styles/createTypography.js +15 -24
  412. package/styles/getStylesCreator.js +2 -14
  413. package/styles/getThemeProps.js +2 -7
  414. package/styles/index.js +0 -6
  415. package/styles/jssPreset.js +1 -11
  416. package/styles/makeStyles.js +2 -9
  417. package/styles/mergeClasses.js +5 -16
  418. package/styles/shadows.js +1 -4
  419. package/styles/shape.js +1 -2
  420. package/styles/spacing.js +1 -4
  421. package/styles/themeListener.js +2 -10
  422. package/styles/transitions.js +20 -35
  423. package/styles/withStyles.js +2 -9
  424. package/styles/zIndex.js +1 -2
  425. package/test-utils/createMount.js +2 -12
  426. package/test-utils/createRender.js +2 -9
  427. package/test-utils/createShallow.js +6 -17
  428. package/test-utils/getClasses.js +1 -4
  429. package/test-utils/index.js +0 -6
  430. package/test-utils/until.js +3 -14
  431. package/test-utils/unwrap.js +0 -1
  432. package/theme/palette.js +2 -7
  433. package/theme/typography.js +7 -15
  434. package/theme.js +2 -8
  435. package/transitions/utils.js +3 -7
  436. package/utils/exactProp.js +3 -13
  437. package/utils/helpers.js +19 -58
  438. package/withMobileDialog/index.js +0 -2
  439. package/withMobileDialog/withMobileDialog.js +3 -12
@@ -1,31 +1,20 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.styles = exports.default = void 0;
9
-
10
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
11
-
12
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
13
-
14
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
15
-
16
10
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
17
-
18
11
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
19
-
12
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
20
13
  var _react = _interopRequireDefault(require("react"));
21
-
22
14
  var _withStyles = _interopRequireDefault(require("@mui/styles/withStyles"));
23
-
24
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
25
-
26
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
27
-
28
- var styles = function styles() {
15
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
16
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
17
+ var styles = exports.styles = function styles() {
29
18
  return {
30
19
  img: {
31
20
  height: 'auto',
@@ -43,9 +32,6 @@ var styles = function styles() {
43
32
  }
44
33
  };
45
34
  };
46
-
47
- exports.styles = styles;
48
-
49
35
  var handleError = function handleError(fallbackImage) {
50
36
  return function (e) {
51
37
  if (fallbackImage) {
@@ -55,35 +41,30 @@ var handleError = function handleError(fallbackImage) {
55
41
  }
56
42
  };
57
43
  };
44
+
58
45
  /**
59
46
  * Cette cellule permet d'afficher une image/logo (24px largeur) et un label (optionnel).
60
47
  * En vue large, aucun tooltip n'est affiché
61
48
  * En vue small (s) elle affiche uniquement l'image avec une largeur fixe.
62
49
  */
63
-
64
-
65
50
  var CellImage = /*#__PURE__*/function (_React$PureComponent) {
66
- (0, _inherits2.default)(CellImage, _React$PureComponent);
67
-
68
- var _super = _createSuper(CellImage);
69
-
70
51
  function CellImage() {
71
52
  (0, _classCallCheck2.default)(this, CellImage);
72
- return _super.apply(this, arguments);
53
+ return _callSuper(this, CellImage, arguments);
73
54
  }
74
-
75
- (0, _createClass2.default)(CellImage, [{
55
+ (0, _inherits2.default)(CellImage, _React$PureComponent);
56
+ return (0, _createClass2.default)(CellImage, [{
76
57
  key: "render",
77
58
  value: function render() {
78
59
  var _this$props = this.props,
79
- classes = _this$props.classes,
80
- path = _this$props.path,
81
- label = _this$props.label,
82
- shortLabel = _this$props.shortLabel,
83
- view = _this$props.view,
84
- size = _this$props.size,
85
- fallbackImage = _this$props.fallbackImage,
86
- title = _this$props.title;
60
+ classes = _this$props.classes,
61
+ path = _this$props.path,
62
+ label = _this$props.label,
63
+ shortLabel = _this$props.shortLabel,
64
+ view = _this$props.view,
65
+ size = _this$props.size,
66
+ fallbackImage = _this$props.fallbackImage,
67
+ title = _this$props.title;
87
68
  var displayedLabel = shortLabel && view === 'm' ? shortLabel : label;
88
69
  return /*#__PURE__*/_react.default.createElement("div", {
89
70
  className: classes.wrapper,
@@ -100,16 +81,11 @@ var CellImage = /*#__PURE__*/function (_React$PureComponent) {
100
81
  }, displayedLabel));
101
82
  }
102
83
  }]);
103
- return CellImage;
104
84
  }(_react.default.PureComponent);
105
-
106
85
  CellImage.defaultProps = {
107
86
  size: 24,
108
87
  view: 's'
109
88
  };
110
-
111
- var _default = (0, _withStyles.default)(styles, {
89
+ var _default = exports.default = (0, _withStyles.default)(styles, {
112
90
  name: 'HmuiCellImage'
113
- })(CellImage);
114
-
115
- exports.default = _default;
91
+ })(CellImage);
@@ -1,35 +1,22 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.styles = exports.default = void 0;
9
-
10
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
11
-
12
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
13
-
14
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
15
-
16
10
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
17
-
18
11
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
19
-
12
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
20
13
  var _react = _interopRequireDefault(require("react"));
21
-
22
14
  var _withStyles = _interopRequireDefault(require("@mui/styles/withStyles"));
23
-
24
15
  var _helpers = require("../utils/helpers");
25
-
26
16
  var _HiButton = _interopRequireDefault(require("../HiButton"));
27
-
28
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
29
-
30
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
31
-
32
- var styles = function styles() {
17
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
18
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
19
+ var styles = exports.styles = function styles() {
33
20
  return {
34
21
  wrapper: {
35
22
  textAlign: 'right'
@@ -39,39 +26,31 @@ var styles = function styles() {
39
26
  }
40
27
  };
41
28
  };
29
+
42
30
  /**
43
31
  * Cette cellule permet d'afficher un volume ou un montant avec devise
44
32
  */
45
-
46
-
47
- exports.styles = styles;
48
-
49
33
  var CellNumeric = /*#__PURE__*/function (_React$PureComponent) {
50
- (0, _inherits2.default)(CellNumeric, _React$PureComponent);
51
-
52
- var _super = _createSuper(CellNumeric);
53
-
54
34
  function CellNumeric() {
55
35
  (0, _classCallCheck2.default)(this, CellNumeric);
56
- return _super.apply(this, arguments);
36
+ return _callSuper(this, CellNumeric, arguments);
57
37
  }
58
-
59
- (0, _createClass2.default)(CellNumeric, [{
38
+ (0, _inherits2.default)(CellNumeric, _React$PureComponent);
39
+ return (0, _createClass2.default)(CellNumeric, [{
60
40
  key: "render",
61
41
  value: function render() {
62
42
  var _this$props = this.props,
63
- classes = _this$props.classes,
64
- value = _this$props.value,
65
- locale = _this$props.locale,
66
- currency = _this$props.currency,
67
- view = _this$props.view,
68
- precision = _this$props.precision,
69
- isButton = _this$props.isButton,
70
- onClick = _this$props.onClick,
71
- rowId = _this$props.rowId;
43
+ classes = _this$props.classes,
44
+ value = _this$props.value,
45
+ locale = _this$props.locale,
46
+ currency = _this$props.currency,
47
+ view = _this$props.view,
48
+ precision = _this$props.precision,
49
+ isButton = _this$props.isButton,
50
+ onClick = _this$props.onClick,
51
+ rowId = _this$props.rowId;
72
52
  var displayedValue = '';
73
53
  var title = '';
74
-
75
54
  if (currency) {
76
55
  displayedValue = (0, _helpers.formatCurrencyAmount)(value, view, locale, currency, precision);
77
56
  title = (0, _helpers.formatCurrencyAmount)(value, 'l', locale, currency);
@@ -79,9 +58,7 @@ var CellNumeric = /*#__PURE__*/function (_React$PureComponent) {
79
58
  displayedValue = (0, _helpers.formatNumber)(value, view, locale, precision);
80
59
  title = (0, _helpers.formatNumber)(value, 'l', locale, precision);
81
60
  }
82
-
83
61
  var content = displayedValue;
84
-
85
62
  if (isButton) {
86
63
  content = /*#__PURE__*/_react.default.createElement(_HiButton.default, {
87
64
  onClick: onClick(rowId),
@@ -90,23 +67,17 @@ var CellNumeric = /*#__PURE__*/function (_React$PureComponent) {
90
67
  variant: "text"
91
68
  }, displayedValue);
92
69
  }
93
-
94
70
  return /*#__PURE__*/_react.default.createElement("div", {
95
71
  className: classes.wrapper,
96
72
  title: title
97
73
  }, content);
98
74
  }
99
75
  }]);
100
- return CellNumeric;
101
76
  }(_react.default.PureComponent);
102
-
103
77
  CellNumeric.defaultProps = {
104
78
  view: 'm',
105
79
  locale: 'en'
106
80
  };
107
-
108
- var _default = (0, _withStyles.default)(styles, {
81
+ var _default = exports.default = (0, _withStyles.default)(styles, {
109
82
  name: 'HmuiCellNumeric'
110
- })(CellNumeric);
111
-
112
- exports.default = _default;
83
+ })(CellNumeric);
@@ -1,33 +1,21 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.styles = exports.default = void 0;
9
-
10
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
11
-
12
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
13
-
14
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
15
-
16
10
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
17
-
18
11
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
19
-
12
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
20
13
  var _react = _interopRequireDefault(require("react"));
21
-
22
14
  var _withStyles = _interopRequireDefault(require("@mui/styles/withStyles"));
23
-
24
15
  var _HiPin = _interopRequireDefault(require("../HiPin"));
25
-
26
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
27
-
28
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
29
-
30
- var styles = {
16
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
17
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
18
+ var styles = exports.styles = {
31
19
  wrapperLeft: {
32
20
  maxWidth: '100%',
33
21
  display: 'inline-flex'
@@ -39,42 +27,33 @@ var styles = {
39
27
  textAlign: 'center'
40
28
  }
41
29
  };
30
+
42
31
  /**
43
32
  * Cette cellule permet d'afficher un pin avec callback (optionnel).
44
33
  */
45
-
46
- exports.styles = styles;
47
-
48
34
  var _ref = /*#__PURE__*/_react.default.createElement(_HiPin.default, null, "0");
49
-
50
35
  var CellPinToAction = /*#__PURE__*/function (_React$PureComponent) {
51
- (0, _inherits2.default)(CellPinToAction, _React$PureComponent);
52
-
53
- var _super = _createSuper(CellPinToAction);
54
-
55
36
  function CellPinToAction() {
56
37
  (0, _classCallCheck2.default)(this, CellPinToAction);
57
- return _super.apply(this, arguments);
38
+ return _callSuper(this, CellPinToAction, arguments);
58
39
  }
59
-
60
- (0, _createClass2.default)(CellPinToAction, [{
40
+ (0, _inherits2.default)(CellPinToAction, _React$PureComponent);
41
+ return (0, _createClass2.default)(CellPinToAction, [{
61
42
  key: "render",
62
43
  value: function render() {
63
44
  var _this$props = this.props,
64
- classes = _this$props.classes,
65
- onClick = _this$props.onClick,
66
- number = _this$props.number,
67
- color = _this$props.color,
68
- align = _this$props.align;
45
+ classes = _this$props.classes,
46
+ onClick = _this$props.onClick,
47
+ number = _this$props.number,
48
+ color = _this$props.color,
49
+ align = _this$props.align;
69
50
  if (number === undefined) return '';
70
51
  var wrapperClass = classes.wrapperLeft;
71
-
72
52
  if (align === "right") {
73
53
  wrapperClass = classes.wrapperRigth;
74
54
  } else if (align === "center") {
75
55
  wrapperClass = classes.wrapperCenter;
76
56
  }
77
-
78
57
  return /*#__PURE__*/_react.default.createElement("div", {
79
58
  className: wrapperClass
80
59
  }, number === 0 ? _ref : /*#__PURE__*/_react.default.createElement(_HiPin.default, {
@@ -83,16 +62,11 @@ var CellPinToAction = /*#__PURE__*/function (_React$PureComponent) {
83
62
  }, number));
84
63
  }
85
64
  }]);
86
- return CellPinToAction;
87
65
  }(_react.default.PureComponent);
88
-
89
66
  CellPinToAction.defaultProps = {
90
67
  color: "primary",
91
68
  align: "left"
92
69
  };
93
-
94
- var _default = (0, _withStyles.default)(styles, {
70
+ var _default = exports.default = (0, _withStyles.default)(styles, {
95
71
  name: 'HmuiCellPin'
96
- })(CellPinToAction);
97
-
98
- exports.default = _default;
72
+ })(CellPinToAction);
@@ -1,43 +1,26 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.styles = exports.default = void 0;
9
-
10
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
11
-
12
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
13
-
14
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
15
-
16
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
17
-
18
11
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
19
-
20
12
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
21
-
13
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
22
14
  var _react = _interopRequireDefault(require("react"));
23
-
24
15
  var _classnames = _interopRequireDefault(require("classnames"));
25
-
26
16
  var _ArrowBottomRight = _interopRequireDefault(require("mdi-material-ui/ArrowBottomRight"));
27
-
28
17
  var _ArrowTopRight = _interopRequireDefault(require("mdi-material-ui/ArrowTopRight"));
29
-
30
18
  var _Equal = _interopRequireDefault(require("mdi-material-ui/Equal"));
31
-
32
19
  var _helpers = require("../utils/helpers");
33
-
34
20
  var _withStyles = _interopRequireDefault(require("@mui/styles/withStyles"));
35
-
36
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
37
-
38
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
39
-
40
- var styles = function styles(theme) {
21
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
22
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
23
+ var styles = exports.styles = function styles(theme) {
41
24
  return {
42
25
  flexContent: {
43
26
  display: 'flex',
@@ -74,63 +57,49 @@ var styles = function styles(theme) {
74
57
  }
75
58
  };
76
59
  };
60
+
77
61
  /**
78
62
  * Cette cellule permet d'afficher un pourcentage
79
63
  * avec une icône d'évolution (optionnelle) et un indicateur du type de données représentées (optionnel)
80
64
  */
81
-
82
-
83
- exports.styles = styles;
84
-
85
65
  var CellRate = /*#__PURE__*/function (_React$PureComponent) {
86
- (0, _inherits2.default)(CellRate, _React$PureComponent);
87
-
88
- var _super = _createSuper(CellRate);
89
-
90
66
  function CellRate() {
91
67
  (0, _classCallCheck2.default)(this, CellRate);
92
- return _super.apply(this, arguments);
68
+ return _callSuper(this, CellRate, arguments);
93
69
  }
94
-
95
- (0, _createClass2.default)(CellRate, [{
70
+ (0, _inherits2.default)(CellRate, _React$PureComponent);
71
+ return (0, _createClass2.default)(CellRate, [{
96
72
  key: "render",
97
73
  value: function render() {
98
- var _classNames, _classNames2;
99
-
100
74
  var _this$props = this.props,
101
- classes = _this$props.classes,
102
- value = _this$props.value,
103
- trendchip = _this$props.trendchip,
104
- isPositive = _this$props.isPositive,
105
- indicator = _this$props.indicator,
106
- locale = _this$props.locale,
107
- view = _this$props.view;
75
+ classes = _this$props.classes,
76
+ value = _this$props.value,
77
+ trendchip = _this$props.trendchip,
78
+ isPositive = _this$props.isPositive,
79
+ indicator = _this$props.indicator,
80
+ locale = _this$props.locale,
81
+ view = _this$props.view;
108
82
  var trendIcon;
109
83
  var displayedRate = (0, _helpers.formatRate)(value, view, locale);
110
-
111
84
  switch (trendchip) {
112
85
  case 'equal':
113
86
  trendIcon = /*#__PURE__*/_react.default.createElement(_Equal.default, {
114
87
  className: (0, _classnames.default)(classes.trendChipIcon, classes.neutral)
115
88
  });
116
89
  break;
117
-
118
90
  case 'up':
119
91
  trendIcon = /*#__PURE__*/_react.default.createElement(_ArrowTopRight.default, {
120
- className: (0, _classnames.default)(classes.trendChipIcon, (_classNames = {}, (0, _defineProperty2.default)(_classNames, classes.success, isPositive), (0, _defineProperty2.default)(_classNames, classes.error, !isPositive), _classNames))
92
+ className: (0, _classnames.default)(classes.trendChipIcon, (0, _defineProperty2.default)((0, _defineProperty2.default)({}, classes.success, isPositive), classes.error, !isPositive))
121
93
  });
122
94
  break;
123
-
124
95
  case 'down':
125
96
  trendIcon = /*#__PURE__*/_react.default.createElement(_ArrowBottomRight.default, {
126
- className: (0, _classnames.default)(classes.trendChipIcon, (_classNames2 = {}, (0, _defineProperty2.default)(_classNames2, classes.success, !isPositive), (0, _defineProperty2.default)(_classNames2, classes.error, isPositive), _classNames2))
97
+ className: (0, _classnames.default)(classes.trendChipIcon, (0, _defineProperty2.default)((0, _defineProperty2.default)({}, classes.success, !isPositive), classes.error, isPositive))
127
98
  });
128
99
  break;
129
-
130
100
  default:
131
101
  break;
132
102
  }
133
-
134
103
  return /*#__PURE__*/_react.default.createElement("div", {
135
104
  className: classes.flexContent
136
105
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -143,16 +112,11 @@ var CellRate = /*#__PURE__*/function (_React$PureComponent) {
143
112
  }, indicator));
144
113
  }
145
114
  }]);
146
- return CellRate;
147
115
  }(_react.default.PureComponent);
148
-
149
116
  CellRate.defaultProps = {
150
117
  isPositive: true,
151
118
  locale: 'en'
152
119
  };
153
-
154
- var _default = (0, _withStyles.default)(styles, {
120
+ var _default = exports.default = (0, _withStyles.default)(styles, {
155
121
  name: 'HmuiCellRate'
156
- })(CellRate);
157
-
158
- exports.default = _default;
122
+ })(CellRate);
@@ -1,67 +1,49 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.styles = exports.default = void 0;
9
-
10
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
11
-
12
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
13
-
14
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
15
-
16
10
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
17
-
18
11
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
19
-
12
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
20
13
  var _react = _interopRequireDefault(require("react"));
21
-
22
14
  var _HiColoredLabel = _interopRequireDefault(require("../HiColoredLabel"));
23
-
24
15
  var _withStyles = _interopRequireDefault(require("@mui/styles/withStyles"));
25
-
26
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
27
-
28
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
29
-
30
- var styles = {
16
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
17
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
18
+ var styles = exports.styles = {
31
19
  flexContent: {
32
20
  display: 'flex',
33
21
  justifyContent: 'flex-end'
34
22
  },
35
23
  label: {}
36
24
  };
25
+
37
26
  /**
38
27
  * Cette cellule permet d'afficher le résultat de Sentinel (score & fraudResult & smartDecision)
39
28
  */
40
-
41
- exports.styles = styles;
42
-
43
29
  var CellSentinel = /*#__PURE__*/function (_React$PureComponent) {
44
- (0, _inherits2.default)(CellSentinel, _React$PureComponent);
45
-
46
- var _super = _createSuper(CellSentinel);
47
-
48
30
  function CellSentinel() {
49
31
  (0, _classCallCheck2.default)(this, CellSentinel);
50
- return _super.apply(this, arguments);
32
+ return _callSuper(this, CellSentinel, arguments);
51
33
  }
52
-
53
- (0, _createClass2.default)(CellSentinel, [{
34
+ (0, _inherits2.default)(CellSentinel, _React$PureComponent);
35
+ return (0, _createClass2.default)(CellSentinel, [{
54
36
  key: "render",
55
37
  value: function render() {
56
38
  var _this$props = this.props,
57
- active = _this$props.active,
58
- classes = _this$props.classes,
59
- color = _this$props.color,
60
- label = _this$props.label,
61
- letter = _this$props.letter,
62
- outlined = _this$props.outlined,
63
- reviewer = _this$props.reviewer,
64
- value = _this$props.value;
39
+ active = _this$props.active,
40
+ classes = _this$props.classes,
41
+ color = _this$props.color,
42
+ label = _this$props.label,
43
+ letter = _this$props.letter,
44
+ outlined = _this$props.outlined,
45
+ reviewer = _this$props.reviewer,
46
+ value = _this$props.value;
65
47
  var effectiveLabel = label || value;
66
48
  var effectiveLetter = letter || effectiveLabel[0];
67
49
  return /*#__PURE__*/_react.default.createElement("div", {
@@ -78,16 +60,11 @@ var CellSentinel = /*#__PURE__*/function (_React$PureComponent) {
78
60
  }));
79
61
  }
80
62
  }]);
81
- return CellSentinel;
82
63
  }(_react.default.PureComponent);
83
-
84
64
  CellSentinel.defaultProps = {
85
65
  active: false,
86
66
  outlined: false
87
67
  };
88
-
89
- var _default = (0, _withStyles.default)(styles, {
68
+ var _default = exports.default = (0, _withStyles.default)(styles, {
90
69
  name: 'HmuiCellSentinel'
91
- })(CellSentinel);
92
-
93
- exports.default = _default;
70
+ })(CellSentinel);