@hipay/hipay-material-ui 3.15.2 → 3.15.3-beta.1

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 +11 -42
  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 +17 -33
  14. package/HiBadge/index.js +0 -2
  15. package/HiBreadcrumb/HiBreadcrumb.js +6 -30
  16. package/HiBreadcrumb/HiStep.js +13 -45
  17. package/HiBreadcrumb/HiStepConnector.js +15 -50
  18. package/HiBreadcrumb/HiStepContent.js +6 -30
  19. package/HiBreadcrumb/HiStepIcon.js +17 -42
  20. package/HiBreadcrumb/HiStepLabel.js +17 -47
  21. package/HiBreadcrumb/HiStepper.js +6 -30
  22. package/HiBreadcrumb/index.js +0 -2
  23. package/HiButton/HiButton.js +12 -37
  24. package/HiButton/index.js +1 -5
  25. package/HiCell/CellAddress.js +12 -33
  26. package/HiCell/CellDate.js +10 -36
  27. package/HiCell/CellHiddenContent.js +8 -30
  28. package/HiCell/CellIcon.js +12 -36
  29. package/HiCell/CellImage.js +12 -34
  30. package/HiCell/CellNumeric.js +13 -40
  31. package/HiCell/CellPinToAction.js +9 -33
  32. package/HiCell/CellRate.js +17 -51
  33. package/HiCell/CellSentinel.js +12 -33
  34. package/HiCell/CellSentinelScore.js +9 -31
  35. package/HiCell/CellText.js +16 -52
  36. package/HiCell/CellTextStyled.js +13 -24
  37. package/HiCell/index.js +0 -10
  38. package/HiCheckbox/HiCheckbox.js +19 -56
  39. package/HiCheckbox/index.js +0 -2
  40. package/HiChip/HiChip.js +24 -47
  41. package/HiChip/HiChipSwitch.js +16 -59
  42. package/HiChip/index.js +0 -3
  43. package/HiColoredLabel/HiColoredLabel.js +47 -69
  44. package/HiColoredLabel/index.js +0 -2
  45. package/HiDatePicker/Caption.js +9 -21
  46. package/HiDatePicker/HiDatePicker.js +16 -88
  47. package/HiDatePicker/HiDatePickerMobile.js +18 -43
  48. package/HiDatePicker/HiDateRangePicker.js +38 -134
  49. package/HiDatePicker/HiDateRangeSelector.js +49 -130
  50. package/HiDatePicker/ListPicker.js +8 -38
  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 +4 -26
  55. package/HiDatePicker/Overlays/Overlay.js +8 -25
  56. package/HiDatePicker/Overlays/TimePickerOverlay.js +8 -39
  57. package/HiDatePicker/Overlays/YearPickerOverlay.js +8 -31
  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 +7 -13
  63. package/HiDialog/HiDialog.js +7 -19
  64. package/HiDialog/index.js +0 -2
  65. package/HiDotsStepper/HiDot.js +9 -38
  66. package/HiDotsStepper/HiDotsStepper.js +10 -37
  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 +10 -36
  71. package/HiForm/HiEmailField.js +5 -29
  72. package/HiForm/HiFormControl.js +31 -77
  73. package/HiForm/HiFormLabel.js +16 -42
  74. package/HiForm/HiInput.js +34 -92
  75. package/HiForm/HiPasswordField.js +8 -36
  76. package/HiForm/HiSearchField.js +3 -34
  77. package/HiForm/HiSlider.js +22 -57
  78. package/HiForm/HiTextField.js +22 -47
  79. package/HiForm/HiUpload.js +35 -95
  80. package/HiForm/HiUploadField.js +10 -32
  81. package/HiForm/HiUploadInput.js +24 -77
  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 +7 -22
  86. package/HiIconButton/index.js +0 -2
  87. package/HiListItemLink/HiListItemLink.js +7 -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 +17 -48
  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 +24 -57
  99. package/HiPdfReader/index.js +0 -2
  100. package/HiPin/HiPin.js +16 -28
  101. package/HiPin/index.js +0 -2
  102. package/HiRadio/HiRadio.js +12 -23
  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 +32 -42
  107. package/HiSelect/HiDynamicSelectField.js +24 -48
  108. package/HiSelect/HiNestedSelect.js +65 -111
  109. package/HiSelect/HiNestedSelectContent.js +60 -86
  110. package/HiSelect/HiNestedSelectField.js +24 -48
  111. package/HiSelect/HiSelect.js +89 -187
  112. package/HiSelect/HiSelectContent.js +62 -97
  113. package/HiSelect/HiSelectField.js +25 -49
  114. package/HiSelect/HiSelectInput.js +24 -77
  115. package/HiSelect/HiSelectMobile.js +7 -44
  116. package/HiSelect/HiSuggestSelect.js +25 -81
  117. package/HiSelect/HiSuggestSelectField.js +15 -39
  118. package/HiSelect/index.js +2 -14
  119. package/HiSelectableList/HiSelectableList.js +34 -90
  120. package/HiSelectableList/HiSelectableListHierarchic.js +34 -60
  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 +21 -51
  125. package/HiStepper/HiStepper.js +2 -15
  126. package/HiStepper/index.js +0 -3
  127. package/HiSwitch/HiSwitch.js +19 -43
  128. package/HiSwitch/HiSwitchState.js +22 -39
  129. package/HiSwitch/index.js +0 -3
  130. package/HiTable/HiCellBuilder.js +10 -65
  131. package/HiTable/HiTable.js +20 -48
  132. package/HiTable/HiTableBody.js +7 -24
  133. package/HiTable/HiTableHeader.js +18 -51
  134. package/HiTable/HiTableRow.js +12 -46
  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 +11 -42
  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 +17 -33
  150. package/es/HiBadge/index.js +0 -2
  151. package/es/HiBreadcrumb/HiBreadcrumb.js +6 -30
  152. package/es/HiBreadcrumb/HiStep.js +13 -45
  153. package/es/HiBreadcrumb/HiStepConnector.js +15 -50
  154. package/es/HiBreadcrumb/HiStepContent.js +6 -30
  155. package/es/HiBreadcrumb/HiStepIcon.js +17 -42
  156. package/es/HiBreadcrumb/HiStepLabel.js +17 -47
  157. package/es/HiBreadcrumb/HiStepper.js +6 -30
  158. package/es/HiBreadcrumb/index.js +0 -2
  159. package/es/HiButton/HiButton.js +12 -37
  160. package/es/HiButton/index.js +1 -5
  161. package/es/HiCell/CellAddress.js +12 -33
  162. package/es/HiCell/CellDate.js +10 -36
  163. package/es/HiCell/CellHiddenContent.js +8 -30
  164. package/es/HiCell/CellIcon.js +12 -36
  165. package/es/HiCell/CellImage.js +12 -34
  166. package/es/HiCell/CellNumeric.js +13 -40
  167. package/es/HiCell/CellPinToAction.js +9 -33
  168. package/es/HiCell/CellRate.js +17 -51
  169. package/es/HiCell/CellSentinel.js +12 -33
  170. package/es/HiCell/CellSentinelScore.js +9 -31
  171. package/es/HiCell/CellText.js +16 -52
  172. package/es/HiCell/CellTextStyled.js +13 -24
  173. package/es/HiCell/index.js +0 -10
  174. package/es/HiCheckbox/HiCheckbox.js +19 -56
  175. package/es/HiCheckbox/index.js +0 -2
  176. package/es/HiChip/HiChip.js +24 -47
  177. package/es/HiChip/HiChipSwitch.js +16 -59
  178. package/es/HiChip/index.js +0 -3
  179. package/es/HiColoredLabel/HiColoredLabel.js +47 -69
  180. package/es/HiColoredLabel/index.js +0 -2
  181. package/es/HiDatePicker/Caption.js +9 -21
  182. package/es/HiDatePicker/HiDatePicker.js +16 -88
  183. package/es/HiDatePicker/HiDatePickerMobile.js +18 -43
  184. package/es/HiDatePicker/HiDateRangePicker.js +38 -134
  185. package/es/HiDatePicker/HiDateRangeSelector.js +49 -130
  186. package/es/HiDatePicker/ListPicker.js +8 -38
  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 +4 -26
  191. package/es/HiDatePicker/Overlays/Overlay.js +8 -25
  192. package/es/HiDatePicker/Overlays/TimePickerOverlay.js +8 -39
  193. package/es/HiDatePicker/Overlays/YearPickerOverlay.js +8 -31
  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 +7 -13
  199. package/es/HiDialog/HiDialog.js +7 -19
  200. package/es/HiDialog/index.js +0 -2
  201. package/es/HiDotsStepper/HiDot.js +9 -38
  202. package/es/HiDotsStepper/HiDotsStepper.js +10 -37
  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 +10 -36
  207. package/es/HiForm/HiEmailField.js +5 -29
  208. package/es/HiForm/HiFormControl.js +31 -77
  209. package/es/HiForm/HiFormLabel.js +16 -42
  210. package/es/HiForm/HiInput.js +34 -92
  211. package/es/HiForm/HiPasswordField.js +8 -36
  212. package/es/HiForm/HiSearchField.js +3 -34
  213. package/es/HiForm/HiSlider.js +22 -57
  214. package/es/HiForm/HiTextField.js +22 -47
  215. package/es/HiForm/HiUpload.js +35 -95
  216. package/es/HiForm/HiUploadField.js +10 -32
  217. package/es/HiForm/HiUploadInput.js +24 -77
  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 +7 -22
  222. package/es/HiIconButton/index.js +0 -2
  223. package/es/HiListItemLink/HiListItemLink.js +7 -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 +17 -48
  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 +24 -57
  235. package/es/HiPdfReader/index.js +0 -2
  236. package/es/HiPin/HiPin.js +16 -28
  237. package/es/HiPin/index.js +0 -2
  238. package/es/HiRadio/HiRadio.js +12 -23
  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 +32 -42
  243. package/es/HiSelect/HiDynamicSelectField.js +24 -48
  244. package/es/HiSelect/HiNestedSelect.js +65 -111
  245. package/es/HiSelect/HiNestedSelectContent.js +60 -86
  246. package/es/HiSelect/HiNestedSelectField.js +24 -48
  247. package/es/HiSelect/HiSelect.js +89 -187
  248. package/es/HiSelect/HiSelectContent.js +62 -97
  249. package/es/HiSelect/HiSelectField.js +25 -49
  250. package/es/HiSelect/HiSelectInput.js +24 -77
  251. package/es/HiSelect/HiSelectMobile.js +7 -44
  252. package/es/HiSelect/HiSuggestSelect.js +25 -81
  253. package/es/HiSelect/HiSuggestSelectField.js +15 -39
  254. package/es/HiSelect/index.js +2 -14
  255. package/es/HiSelectableList/HiSelectableList.js +34 -90
  256. package/es/HiSelectableList/HiSelectableListHierarchic.js +34 -60
  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 +21 -51
  261. package/es/HiStepper/HiStepper.js +2 -15
  262. package/es/HiStepper/index.js +0 -3
  263. package/es/HiSwitch/HiSwitch.js +19 -43
  264. package/es/HiSwitch/HiSwitchState.js +22 -39
  265. package/es/HiSwitch/index.js +0 -3
  266. package/es/HiTable/HiCellBuilder.js +10 -65
  267. package/es/HiTable/HiTable.js +20 -48
  268. package/es/HiTable/HiTableBody.js +7 -24
  269. package/es/HiTable/HiTableHeader.js +18 -51
  270. package/es/HiTable/HiTableRow.js +12 -46
  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 +15 -49
  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 +67 -89
  326. package/es/styles/createStyles.js +0 -1
  327. package/es/styles/createTypography.js +15 -24
  328. package/es/styles/getStylesCreator.js +1 -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 +2 -2
  401. package/setupTest.js +2 -13
  402. package/styleguide/Wrapper.js +0 -6
  403. package/styles/MuiThemeProvider.js +15 -49
  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 +67 -89
  410. package/styles/createStyles.js +0 -1
  411. package/styles/createTypography.js +15 -24
  412. package/styles/getStylesCreator.js +1 -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,86 +1,76 @@
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.default = createGenerateClassName;
9
-
10
8
  var _warning = _interopRequireDefault(require("warning"));
11
-
12
9
  /* eslint-disable no-underscore-dangle */
10
+
13
11
  // People might bundle this classname generator twice.
14
12
  // We need to use a global.
15
13
  global.__MUI_GENERATOR_COUNTER__ = 0;
16
14
  var escapeRegex = /([[\].#*$><+~=|^:(),"'`\s])/g;
17
-
18
15
  function safePrefix(classNamePrefix) {
19
16
  var prefix = String(classNamePrefix);
20
- process.env.NODE_ENV !== "production" ? (0, _warning.default)(prefix.length < 256, "Material-UI: the class name prefix is too long: ".concat(prefix, ".")) : void 0; // Sanitize the string as will be used to prefix the generated class name.
21
-
17
+ process.env.NODE_ENV !== "production" ? (0, _warning.default)(prefix.length < 256, "Material-UI: the class name prefix is too long: ".concat(prefix, ".")) : void 0;
18
+ // Sanitize the string as will be used to prefix the generated class name.
22
19
  return prefix.replace(escapeRegex, '-');
23
- } // Returns a function which generates unique class names based on counters.
20
+ }
21
+
22
+ // Returns a function which generates unique class names based on counters.
24
23
  // When new generator function is created, rule counter is reset.
25
24
  // We need to reset the rule counter for SSR for each request.
26
25
  //
27
26
  // It's inspired by
28
27
  // https://github.com/cssinjs/jss/blob/4e6a05dd3f7b6572fdd3ab216861d9e446c20331/src/utils/createGenerateClassName.js
29
-
30
-
31
28
  function createGenerateClassName() {
32
29
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
33
30
  var _options$dangerouslyU = options.dangerouslyUseGlobalCSS,
34
- dangerouslyUseGlobalCSS = _options$dangerouslyU === void 0 ? false : _options$dangerouslyU,
35
- _options$productionPr = options.productionPrefix,
36
- productionPrefix = _options$productionPr === void 0 ? 'jss' : _options$productionPr;
37
- var ruleCounter = 0; // - HMR can lead to many class name generators being instantiated,
31
+ dangerouslyUseGlobalCSS = _options$dangerouslyU === void 0 ? false : _options$dangerouslyU,
32
+ _options$productionPr = options.productionPrefix,
33
+ productionPrefix = _options$productionPr === void 0 ? 'jss' : _options$productionPr;
34
+ var ruleCounter = 0;
35
+
36
+ // - HMR can lead to many class name generators being instantiated,
38
37
  // so the warning is only triggered in production.
39
38
  // - We expect a class name generator to be instantiated per new request on the server,
40
39
  // so the warning is only triggered client side.
41
-
42
40
  if (process.env.NODE_ENV === 'production' && typeof window !== 'undefined') {
43
41
  global.__MUI_GENERATOR_COUNTER__ += 1;
44
-
45
42
  if (global.__MUI_GENERATOR_COUNTER__ > 2) {
46
43
  // eslint-disable-next-line no-console
47
44
  console.error(['Material-UI: we have detected more than needed creation of the class name generator.', 'You should only use one class name generator on the client side.', 'If you do otherwise, you take the risk to have conflicting class names in production.'].join('\n'));
48
45
  }
49
46
  }
50
-
51
47
  return function (rule, styleSheet) {
52
48
  ruleCounter += 1;
53
- process.env.NODE_ENV !== "production" ? (0, _warning.default)(ruleCounter < 1e10, ['Material-UI: you might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join('')) : void 0; // Code branch the whole block at the expense of more code.
49
+ process.env.NODE_ENV !== "production" ? (0, _warning.default)(ruleCounter < 1e10, ['Material-UI: you might have a memory leak.', 'The ruleCounter is not supposed to grow that much.'].join('')) : void 0;
54
50
 
51
+ // Code branch the whole block at the expense of more code.
55
52
  if (dangerouslyUseGlobalCSS) {
56
53
  if (styleSheet) {
57
54
  if (styleSheet.options.name) {
58
55
  return "".concat(styleSheet.options.name, "-").concat(rule.key);
59
56
  }
60
-
61
57
  if (styleSheet.options.classNamePrefix && process.env.NODE_ENV !== 'production') {
62
58
  var prefix = safePrefix(styleSheet.options.classNamePrefix);
63
59
  return "".concat(prefix, "-").concat(rule.key, "-").concat(ruleCounter);
64
60
  }
65
61
  }
66
-
67
62
  if (process.env.NODE_ENV === 'production') {
68
63
  return "".concat(productionPrefix).concat(ruleCounter);
69
64
  }
70
-
71
65
  return "".concat(rule.key, "-").concat(ruleCounter);
72
66
  }
73
-
74
67
  if (process.env.NODE_ENV === 'production') {
75
68
  return "".concat(productionPrefix).concat(ruleCounter);
76
69
  }
77
-
78
70
  if (styleSheet && styleSheet.options.classNamePrefix) {
79
71
  var _prefix = safePrefix(styleSheet.options.classNamePrefix);
80
-
81
72
  return "".concat(_prefix, "-").concat(rule.key, "-").concat(ruleCounter);
82
73
  }
83
-
84
74
  return "".concat(rule.key, "-").concat(ruleCounter);
85
75
  };
86
76
  }
@@ -1,19 +1,13 @@
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.default = createMixins;
9
-
10
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
11
-
12
9
  var _objectSpread3 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
13
-
14
10
  function createMixins(breakpoints, spacing, mixins) {
15
- var _toolbar;
16
-
17
11
  return (0, _objectSpread3.default)({
18
12
  gutters: function gutters() {
19
13
  var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -25,12 +19,12 @@ function createMixins(breakpoints, spacing, mixins) {
25
19
  paddingRight: spacing(6)
26
20
  }, styles[breakpoints.up('sm')])));
27
21
  },
28
- toolbar: (_toolbar = {
22
+ toolbar: (0, _defineProperty2.default)((0, _defineProperty2.default)({
29
23
  minHeight: 56
30
- }, (0, _defineProperty2.default)(_toolbar, "".concat(breakpoints.up('xs'), " and (orientation: landscape)"), {
24
+ }, "".concat(breakpoints.up('xs'), " and (orientation: landscape)"), {
31
25
  minHeight: 48
32
- }), (0, _defineProperty2.default)(_toolbar, breakpoints.up('sm'), {
26
+ }), breakpoints.up('sm'), {
33
27
  minHeight: 64
34
- }), _toolbar)
28
+ })
35
29
  }, mixins);
36
30
  }
@@ -1,53 +1,38 @@
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.default = void 0;
9
-
10
8
  var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
11
-
12
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
13
-
14
10
  var _deepmerge = _interopRequireDefault(require("deepmerge"));
15
-
16
11
  var _isPlainObject = _interopRequireDefault(require("is-plain-object"));
17
-
18
12
  var _warning = _interopRequireDefault(require("warning"));
19
-
20
13
  var _createBreakpoints = _interopRequireDefault(require("./createBreakpoints"));
21
-
22
14
  var _createMixins = _interopRequireDefault(require("./createMixins"));
23
-
24
15
  var _createPalette = _interopRequireDefault(require("./createPalette"));
25
-
26
16
  var _createTypography = _interopRequireDefault(require("./createTypography"));
27
-
28
17
  var _shadows = _interopRequireDefault(require("./shadows"));
29
-
30
18
  var _shape = _interopRequireDefault(require("./shape"));
31
-
32
19
  var _spacing = _interopRequireDefault(require("./spacing"));
33
-
34
20
  var _transitions = _interopRequireDefault(require("./transitions"));
35
-
36
21
  var _zIndex = _interopRequireDefault(require("./zIndex"));
37
-
38
22
  // < 1kb payload overhead when lodash/merge is > 3kb.
23
+
39
24
  function createMuiTheme() {
40
25
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
41
26
  var _options$breakpoints = options.breakpoints,
42
- breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints,
43
- _options$mixins = options.mixins,
44
- mixinsInput = _options$mixins === void 0 ? {} : _options$mixins,
45
- _options$palette = options.palette,
46
- paletteInput = _options$palette === void 0 ? {} : _options$palette,
47
- shadowsInput = options.shadows,
48
- _options$typography = options.typography,
49
- typographyInput = _options$typography === void 0 ? {} : _options$typography,
50
- other = (0, _objectWithoutProperties2.default)(options, ["breakpoints", "mixins", "palette", "shadows", "typography"]);
27
+ breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints,
28
+ _options$mixins = options.mixins,
29
+ mixinsInput = _options$mixins === void 0 ? {} : _options$mixins,
30
+ _options$palette = options.palette,
31
+ paletteInput = _options$palette === void 0 ? {} : _options$palette,
32
+ shadowsInput = options.shadows,
33
+ _options$typography = options.typography,
34
+ typographyInput = _options$typography === void 0 ? {} : _options$typography,
35
+ other = (0, _objectWithoutProperties2.default)(options, ["breakpoints", "mixins", "palette", "shadows", "typography"]);
51
36
  var palette = (0, _createPalette.default)(paletteInput);
52
37
  var breakpoints = (0, _createBreakpoints.default)(breakpointsInput);
53
38
  var muiTheme = (0, _objectSpread2.default)({
@@ -72,6 +57,4 @@ function createMuiTheme() {
72
57
  process.env.NODE_ENV !== "production" ? (0, _warning.default)(muiTheme.shadows.length === 25, 'Material-UI: the shadows array provided to createMuiTheme should support 25 elevations.') : void 0;
73
58
  return muiTheme;
74
59
  }
75
-
76
- var _default = createMuiTheme;
77
- exports.default = _default;
60
+ var _default = exports.default = createMuiTheme;
@@ -1,32 +1,23 @@
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.dark = void 0;
9
8
  exports.default = createPalette;
10
9
  exports.light = void 0;
11
-
12
10
  var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
13
-
14
11
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
15
-
16
12
  var _warning = _interopRequireDefault(require("warning"));
17
-
18
13
  var _deepmerge = _interopRequireDefault(require("deepmerge"));
19
-
20
14
  var _grey = _interopRequireDefault(require("@mui/material/colors/grey"));
21
-
22
15
  var _red = _interopRequireDefault(require("@mui/material/colors/red"));
23
-
24
16
  var _common = _interopRequireDefault(require("@mui/material/colors/common"));
25
-
26
17
  var _colorManipulator = require("./colorManipulator");
27
-
28
18
  // < 1kb payload overhead when lodash/merge is > 3kb.
29
- var light = {
19
+
20
+ var light = exports.light = {
30
21
  global: {
31
22
  background1: '#FFFFFF',
32
23
  background2: '#F8F9FB',
@@ -78,8 +69,7 @@ var light = {
78
69
  disabled: '#FAFAFA'
79
70
  }
80
71
  };
81
- exports.light = light;
82
- var dark = {
72
+ var dark = exports.dark = {
83
73
  global: {
84
74
  background1: '#303030',
85
75
  background2: '#212121',
@@ -118,8 +108,6 @@ var dark = {
118
108
  disabled: 'rgba(255, 255, 255, 0.5)'
119
109
  }
120
110
  };
121
- exports.dark = dark;
122
-
123
111
  function addLightOrDark(intent, direction, shade, tonalOffset) {
124
112
  if (!intent[direction]) {
125
113
  if (intent.hasOwnProperty(shade)) {
@@ -131,108 +119,98 @@ function addLightOrDark(intent, direction, shade, tonalOffset) {
131
119
  }
132
120
  }
133
121
  }
134
-
135
122
  function createPalette(palette) {
136
123
  var _palette$primary = palette.primary,
137
- primary = _palette$primary === void 0 ? {
138
- light: '#5bc8ef',
139
- main: '#00ade9',
140
- dark: '#007ca9',
141
- contrastText: '#FFFFFF'
142
- } : _palette$primary,
143
- _palette$secondary = palette.secondary,
144
- secondary = _palette$secondary === void 0 ? {
145
- light: '#ffd94f',
146
- main: '#ffcf21',
147
- dark: '#E9BE30',
148
- contrastText: '#FFFFFF'
149
- } : _palette$secondary,
150
- _palette$positive = palette.positive,
151
- positive = _palette$positive === void 0 ? {
152
- light: '#66CF66',
153
- main: '#00AF00',
154
- dark: '#008300',
155
- contrastText: '#FFFFFF'
156
- } : _palette$positive,
157
- _palette$negative = palette.negative,
158
- negative = _palette$negative === void 0 ? {
159
- ultraLight: '#EA9494',
160
- light: '#E66666',
161
- main: '#D50000',
162
- dark: '#A00000',
163
- contrastText: '#FFFFFF'
164
- } : _palette$negative,
165
- _palette$middle = palette.middle,
166
- middle = _palette$middle === void 0 ? {
167
- light: '#F4A647',
168
- main: '#F99408',
169
- dark: '#F78700',
170
- contrastText: '#FFFFFF'
171
- } : _palette$middle,
172
- _palette$neutral = palette.neutral,
173
- neutral = _palette$neutral === void 0 ? {
174
- ultraLight: '#8B8B8B',
175
- light: '#838383',
176
- main: '#737373',
177
- dark: '#20272B',
178
- contrastText: '#FFFFFF'
179
- } : _palette$neutral,
180
- _palette$error = palette.error,
181
- error = _palette$error === void 0 ? {
182
- light: _red.default[300],
183
- main: _red.default[500],
184
- dark: _red.default[700]
185
- } : _palette$error,
186
- _palette$lookup = palette.lookup,
187
- lookup = _palette$lookup === void 0 ? {
188
- light: '#FFFF8D',
189
- main: '#EDED14'
190
- } : _palette$lookup,
191
- _palette$type = palette.type,
192
- type = _palette$type === void 0 ? 'light' : _palette$type,
193
- _palette$contrastThre = palette.contrastThreshold,
194
- contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre,
195
- _palette$tonalOffset = palette.tonalOffset,
196
- tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset,
197
- _palette$context = palette.context,
198
- context = _palette$context === void 0 ? 'local' : _palette$context,
199
- other = (0, _objectWithoutProperties2.default)(palette, ["primary", "secondary", "positive", "negative", "middle", "neutral", "error", "lookup", "type", "contrastThreshold", "tonalOffset", "context"]);
200
-
124
+ primary = _palette$primary === void 0 ? {
125
+ light: '#5bc8ef',
126
+ main: '#00ade9',
127
+ dark: '#007ca9',
128
+ contrastText: '#FFFFFF'
129
+ } : _palette$primary,
130
+ _palette$secondary = palette.secondary,
131
+ secondary = _palette$secondary === void 0 ? {
132
+ light: '#ffd94f',
133
+ main: '#ffcf21',
134
+ dark: '#E9BE30',
135
+ contrastText: '#FFFFFF'
136
+ } : _palette$secondary,
137
+ _palette$positive = palette.positive,
138
+ positive = _palette$positive === void 0 ? {
139
+ light: '#66CF66',
140
+ main: '#00AF00',
141
+ dark: '#008300',
142
+ contrastText: '#FFFFFF'
143
+ } : _palette$positive,
144
+ _palette$negative = palette.negative,
145
+ negative = _palette$negative === void 0 ? {
146
+ ultraLight: '#EA9494',
147
+ light: '#E66666',
148
+ main: '#D50000',
149
+ dark: '#A00000',
150
+ contrastText: '#FFFFFF'
151
+ } : _palette$negative,
152
+ _palette$middle = palette.middle,
153
+ middle = _palette$middle === void 0 ? {
154
+ light: '#F4A647',
155
+ main: '#F99408',
156
+ dark: '#F78700',
157
+ contrastText: '#FFFFFF'
158
+ } : _palette$middle,
159
+ _palette$neutral = palette.neutral,
160
+ neutral = _palette$neutral === void 0 ? {
161
+ ultraLight: '#8B8B8B',
162
+ light: '#838383',
163
+ main: '#737373',
164
+ dark: '#20272B',
165
+ contrastText: '#FFFFFF'
166
+ } : _palette$neutral,
167
+ _palette$error = palette.error,
168
+ error = _palette$error === void 0 ? {
169
+ light: _red.default[300],
170
+ main: _red.default[500],
171
+ dark: _red.default[700]
172
+ } : _palette$error,
173
+ _palette$lookup = palette.lookup,
174
+ lookup = _palette$lookup === void 0 ? {
175
+ light: '#FFFF8D',
176
+ main: '#EDED14'
177
+ } : _palette$lookup,
178
+ _palette$type = palette.type,
179
+ type = _palette$type === void 0 ? 'light' : _palette$type,
180
+ _palette$contrastThre = palette.contrastThreshold,
181
+ contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre,
182
+ _palette$tonalOffset = palette.tonalOffset,
183
+ tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset,
184
+ _palette$context = palette.context,
185
+ context = _palette$context === void 0 ? 'local' : _palette$context,
186
+ other = (0, _objectWithoutProperties2.default)(palette, ["primary", "secondary", "positive", "negative", "middle", "neutral", "error", "lookup", "type", "contrastThreshold", "tonalOffset", "context"]);
201
187
  function getContrastText(background) {
202
188
  // Use the same logic as
203
189
  // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59
204
190
  // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54
205
191
  var contrastText = (0, _colorManipulator.getContrastRatio)(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;
206
-
207
192
  if (process.env.NODE_ENV !== 'production') {
208
193
  var contrast = (0, _colorManipulator.getContrastRatio)(background, contrastText);
209
194
  process.env.NODE_ENV !== "production" ? (0, _warning.default)(contrast >= 3, ["Material-UI: the contrast ratio of ".concat(contrast, ":1 for ").concat(contrastText, " on ").concat(background), 'falls below the WACG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\n')) : void 0;
210
195
  }
211
-
212
196
  return contrastText;
213
197
  }
214
-
215
198
  function augmentColor(color) {
216
199
  var mainShade = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
217
200
  var lightShade = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 300;
218
201
  var darkShade = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 700;
219
-
220
202
  if (!color.main && color[mainShade]) {
221
203
  color.main = color[mainShade];
222
204
  }
223
-
224
205
  if (process.env.NODE_ENV !== 'production' && !color.main) {
225
206
  throw new Error(['Material-UI: the color provided to augmentColor(color) is invalid.', "The color object needs to have a `main` property or a `".concat(mainShade, "` property.")].join('\n'));
226
207
  }
227
-
228
208
  addLightOrDark(color, 'light', lightShade, tonalOffset);
229
209
  addLightOrDark(color, 'dark', darkShade, tonalOffset);
230
-
231
210
  if (!color.contrastText) {
232
211
  color.contrastText = getContrastText(color.main);
233
212
  }
234
213
  }
235
-
236
214
  augmentColor(primary);
237
215
  augmentColor(secondary, 'A400', 'A200', 'A700');
238
216
  augmentColor(error);
@@ -282,7 +260,7 @@ function createPalette(palette) {
282
260
  tonalOffset: tonalOffset
283
261
  }, types[type], {}, contexts[context]), other, {
284
262
  clone: false // No need to clone deep
285
-
286
263
  });
264
+
287
265
  return paletteOutput;
288
266
  }
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = createStyles;
7
-
8
7
  function createStyles(styles) {
9
8
  return styles;
10
9
  }
@@ -1,46 +1,38 @@
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.default = createTypography;
9
-
10
8
  var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
11
-
12
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
13
-
14
10
  var _deepmerge = _interopRequireDefault(require("deepmerge"));
15
-
16
11
  // < 1kb payload overhead when lodash/merge is > 3kb.
12
+
17
13
  function round(value) {
18
14
  return Math.round(value * 1e5) / 1e5;
19
15
  }
20
-
21
16
  function createTypography(palette, typography) {
22
17
  var _ref = typeof typography === 'function' ? typography(palette) : typography,
23
- _ref$fontFamily = _ref.fontFamily,
24
- fontFamily = _ref$fontFamily === void 0 ? '"Roboto", "Helvetica", "Arial", sans-serif' : _ref$fontFamily,
25
- _ref$fontSize = _ref.fontSize,
26
- fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize,
27
- _ref$fontWeightLight = _ref.fontWeightLight,
28
- fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight,
29
- _ref$fontWeightRegula = _ref.fontWeightRegular,
30
- fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula,
31
- _ref$fontWeightMedium = _ref.fontWeightMedium,
32
- fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium,
33
- _ref$htmlFontSize = _ref.htmlFontSize,
34
- htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize,
35
- allVariants = _ref.allVariants,
36
- other = (0, _objectWithoutProperties2.default)(_ref, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "htmlFontSize", "allVariants"]);
37
-
18
+ _ref$fontFamily = _ref.fontFamily,
19
+ fontFamily = _ref$fontFamily === void 0 ? '"Roboto", "Helvetica", "Arial", sans-serif' : _ref$fontFamily,
20
+ _ref$fontSize = _ref.fontSize,
21
+ fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize,
22
+ _ref$fontWeightLight = _ref.fontWeightLight,
23
+ fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight,
24
+ _ref$fontWeightRegula = _ref.fontWeightRegular,
25
+ fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula,
26
+ _ref$fontWeightMedium = _ref.fontWeightMedium,
27
+ fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium,
28
+ _ref$htmlFontSize = _ref.htmlFontSize,
29
+ htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize,
30
+ allVariants = _ref.allVariants,
31
+ other = (0, _objectWithoutProperties2.default)(_ref, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "htmlFontSize", "allVariants"]);
38
32
  var coef = fontSize / 14;
39
-
40
33
  function pxToRem(value) {
41
34
  return "".concat(value / htmlFontSize * coef, "rem");
42
35
  }
43
-
44
36
  return (0, _deepmerge.default)({
45
37
  pxToRem: pxToRem,
46
38
  round: round,
@@ -180,6 +172,5 @@ function createTypography(palette, typography) {
180
172
  }, allVariants)
181
173
  }, other, {
182
174
  clone: false // No need to clone deep
183
-
184
175
  });
185
176
  }
@@ -1,37 +1,27 @@
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.default = void 0;
9
-
10
8
  var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
11
-
12
9
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/typeof"));
13
-
14
10
  var _warning = _interopRequireDefault(require("warning"));
15
-
16
11
  var _deepmerge = _interopRequireDefault(require("deepmerge"));
17
-
18
12
  // < 1kb payload overhead when lodash/merge is > 3kb.
19
13
  // Support for the jss-expand plugin.
20
14
  function arrayMerge(destination, source) {
21
15
  return source;
22
16
  }
23
-
24
17
  function getStylesCreator(stylesOrCreator) {
25
18
  var themingEnabled = typeof stylesOrCreator === 'function';
26
19
  process.env.NODE_ENV !== "production" ? (0, _warning.default)((0, _typeof2.default)(stylesOrCreator) === 'object' || themingEnabled, ['Material-UI: the first argument provided to withStyles() is invalid.', 'You need to provide a function generating the styles or a styles object.'].join('\n')) : void 0;
27
-
28
20
  function create(theme, name) {
29
21
  var styles = themingEnabled ? stylesOrCreator(theme) : stylesOrCreator;
30
-
31
22
  if (!name || !theme.overrides || !theme.overrides[name]) {
32
23
  return styles;
33
24
  }
34
-
35
25
  var overrides = theme.overrides[name];
36
26
  var stylesWithOverrides = (0, _objectSpread2.default)({}, styles);
37
27
  Object.keys(overrides).forEach(function (key) {
@@ -42,13 +32,10 @@ function getStylesCreator(stylesOrCreator) {
42
32
  });
43
33
  return stylesWithOverrides;
44
34
  }
45
-
46
35
  return {
47
36
  create: create,
48
37
  options: {},
49
38
  themingEnabled: themingEnabled
50
39
  };
51
40
  }
52
-
53
- var _default = getStylesCreator;
54
- exports.default = _default;
41
+ var _default = exports.default = getStylesCreator;
@@ -4,17 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  function getThemeProps(params) {
9
8
  var theme = params.theme,
10
- name = params.name;
11
-
9
+ name = params.name;
12
10
  if (!name || !theme.props || !theme.props[name]) {
13
11
  return {};
14
12
  }
15
-
16
13
  return theme.props[name];
17
14
  }
18
-
19
- var _default = getThemeProps;
20
- exports.default = _default;
15
+ var _default = exports.default = getThemeProps;
package/styles/index.js CHANGED
@@ -1,7 +1,6 @@
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
  });
@@ -35,13 +34,8 @@ Object.defineProperty(exports, "jssPreset", {
35
34
  return _jssPreset.default;
36
35
  }
37
36
  });
38
-
39
37
  var _createGenerateClassName = _interopRequireDefault(require("./createGenerateClassName"));
40
-
41
38
  var _createMuiTheme = _interopRequireDefault(require("./createMuiTheme"));
42
-
43
39
  var _jssPreset = _interopRequireDefault(require("./jssPreset"));
44
-
45
40
  var _MuiThemeProvider = _interopRequireDefault(require("./MuiThemeProvider"));
46
-
47
41
  var _createStyles = _interopRequireDefault(require("./createStyles"));
@@ -1,24 +1,16 @@
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.default = void 0;
9
-
10
8
  var _jssGlobal = _interopRequireDefault(require("jss-global"));
11
-
12
9
  var _jssNested = _interopRequireDefault(require("jss-nested"));
13
-
14
10
  var _jssCamelCase = _interopRequireDefault(require("jss-camel-case"));
15
-
16
11
  var _jssDefaultUnit = _interopRequireDefault(require("jss-default-unit"));
17
-
18
12
  var _jssVendorPrefixer = _interopRequireDefault(require("jss-vendor-prefixer"));
19
-
20
13
  var _jssPropsSort = _interopRequireDefault(require("jss-props-sort"));
21
-
22
14
  // Subset of jss-preset-default with only the plugins the Material-UI
23
15
  // components are using.
24
16
  function jssPreset() {
@@ -26,6 +18,4 @@ function jssPreset() {
26
18
  plugins: [(0, _jssGlobal.default)(), (0, _jssNested.default)(), (0, _jssCamelCase.default)(), (0, _jssDefaultUnit.default)(), (0, _jssVendorPrefixer.default)(), (0, _jssPropsSort.default)()]
27
19
  };
28
20
  }
29
-
30
- var _default = jssPreset;
31
- exports.default = _default;
21
+ var _default = exports.default = jssPreset;