@hipay/hipay-material-ui 3.15.1 → 3.15.3-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/HiAccordion/HiAccordion.js +5 -22
- package/HiAccordion/index.js +0 -3
- package/HiAccordionActions/HiAccordionActions.js +0 -12
- package/HiAccordionActions/index.js +0 -3
- package/HiAccordionSummary/HiAccordionSummary.js +0 -13
- package/HiAccordionSummary/index.js +0 -3
- package/HiAlertModal/HiAlertModal.js +4 -18
- package/HiAlertModal/index.js +0 -3
- package/HiAppBar/HiAppBar.js +8 -37
- package/HiAppBar/index.js +0 -2
- package/HiAvatar/HiAvatar.js +2 -10
- package/HiAvatar/index.js +0 -2
- package/HiBadge/HiBadge.js +14 -27
- package/HiBadge/index.js +0 -2
- package/HiBreadcrumb/HiBreadcrumb.js +5 -28
- package/HiBreadcrumb/HiStep.js +10 -40
- package/HiBreadcrumb/HiStepConnector.js +11 -43
- package/HiBreadcrumb/HiStepContent.js +3 -25
- package/HiBreadcrumb/HiStepIcon.js +11 -33
- package/HiBreadcrumb/HiStepLabel.js +12 -39
- package/HiBreadcrumb/HiStepper.js +3 -25
- package/HiBreadcrumb/index.js +0 -2
- package/HiButton/HiButton.js +8 -31
- package/HiButton/index.js +0 -3
- package/HiCell/CellAddress.js +9 -28
- package/HiCell/CellDate.js +7 -31
- package/HiCell/CellHiddenContent.js +4 -24
- package/HiCell/CellIcon.js +9 -31
- package/HiCell/CellImage.js +9 -29
- package/HiCell/CellNumeric.js +10 -35
- package/HiCell/CellPinToAction.js +6 -28
- package/HiCell/CellRate.js +14 -45
- package/HiCell/CellSentinel.js +9 -28
- package/HiCell/CellSentinelScore.js +5 -24
- package/HiCell/CellText.js +13 -47
- package/HiCell/CellTextStyled.js +12 -22
- package/HiCell/index.js +0 -10
- package/HiCheckbox/HiCheckbox.js +16 -50
- package/HiCheckbox/index.js +0 -2
- package/HiChip/HiChip.js +22 -43
- package/HiChip/HiChipSwitch.js +12 -52
- package/HiChip/index.js +0 -3
- package/HiColoredLabel/HiColoredLabel.js +37 -56
- package/HiColoredLabel/index.js +0 -2
- package/HiDatePicker/Caption.js +6 -16
- package/HiDatePicker/HiDatePicker.js +14 -85
- package/HiDatePicker/HiDatePickerMobile.js +17 -41
- package/HiDatePicker/HiDateRangePicker.js +35 -129
- package/HiDatePicker/HiDateRangeSelector.js +45 -123
- package/HiDatePicker/ListPicker.js +5 -33
- package/HiDatePicker/NavBar.js +9 -26
- package/HiDatePicker/Overlays/CustomOverlayLayout.js +7 -21
- package/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +7 -21
- package/HiDatePicker/Overlays/MonthPickerOverlay.js +3 -24
- package/HiDatePicker/Overlays/Overlay.js +4 -18
- package/HiDatePicker/Overlays/TimePickerOverlay.js +5 -34
- package/HiDatePicker/Overlays/YearPickerOverlay.js +7 -29
- package/HiDatePicker/Overlays/index.js +0 -6
- package/HiDatePicker/Weekday.js +3 -7
- package/HiDatePicker/hiLocaleUtils.js +7 -18
- package/HiDatePicker/index.js +0 -2
- package/HiDatePicker/stylesheet.js +5 -10
- package/HiDialog/HiDialog.js +4 -15
- package/HiDialog/index.js +0 -2
- package/HiDotsStepper/HiDot.js +6 -33
- package/HiDotsStepper/HiDotsStepper.js +7 -32
- package/HiDotsStepper/index.js +0 -3
- package/HiExpansionPanel/HiExpansionPanel.js +13 -34
- package/HiExpansionPanel/index.js +0 -3
- package/HiForm/HiAddressField.js +9 -34
- package/HiForm/HiEmailField.js +4 -27
- package/HiForm/HiFormControl.js +27 -70
- package/HiForm/HiFormLabel.js +13 -37
- package/HiForm/HiInput.js +28 -80
- package/HiForm/HiPasswordField.js +5 -31
- package/HiForm/HiSearchField.js +2 -32
- package/HiForm/HiSlider.js +19 -52
- package/HiForm/HiTextField.js +21 -45
- package/HiForm/HiUpload.js +31 -87
- package/HiForm/HiUploadField.js +9 -30
- package/HiForm/HiUploadInput.js +20 -70
- package/HiForm/index.js +0 -12
- package/HiIcon/HiIcon.js +5 -28
- package/HiIcon/index.js +0 -2
- package/HiIconButton/HiIconButton.js +5 -18
- package/HiIconButton/index.js +0 -2
- package/HiListItemLink/HiListItemLink.js +6 -17
- package/HiListItemLink/index.js +0 -2
- package/HiLoader/HiLoader.js +4 -13
- package/HiLoader/index.js +0 -2
- package/HiNotice/HiKPI.js +14 -42
- package/HiNotice/HiKPINotice.js +4 -13
- package/HiNotice/index.js +0 -3
- package/HiPagination/HiPagination.js +0 -9
- package/HiPagination/index.js +0 -2
- package/HiPaymentMeans/HiPaymentMeans.js +24 -60
- package/HiPaymentMeans/index.js +0 -2
- package/HiPdfReader/HiPdfReader.js +21 -52
- package/HiPdfReader/index.js +0 -2
- package/HiPin/HiPin.js +14 -23
- package/HiPin/index.js +0 -2
- package/HiRadio/HiRadio.js +9 -18
- package/HiRadio/index.js +0 -2
- package/HiScrollStepper/HiScrollStepper.js +26 -63
- package/HiScrollStepper/index.js +0 -2
- package/HiSelect/HiDynamicSelect.js +31 -40
- package/HiSelect/HiDynamicSelectField.js +22 -44
- package/HiSelect/HiNestedSelect.js +61 -104
- package/HiSelect/HiNestedSelectContent.js +58 -82
- package/HiSelect/HiNestedSelectField.js +22 -44
- package/HiSelect/HiSelect.js +85 -180
- package/HiSelect/HiSelectContent.js +58 -90
- package/HiSelect/HiSelectField.js +23 -45
- package/HiSelect/HiSelectInput.js +20 -69
- package/HiSelect/HiSelectMobile.js +5 -40
- package/HiSelect/HiSuggestSelect.js +22 -76
- package/HiSelect/HiSuggestSelectField.js +13 -35
- package/HiSelect/index.js +0 -12
- package/HiSelectableList/HiSelectableList.js +29 -83
- package/HiSelectableList/HiSelectableListHierarchic.js +31 -55
- package/HiSelectableList/HiSelectableListItem.js +37 -76
- package/HiSelectableList/index.js +0 -4
- package/HiStepper/DefaultIndicator.js +0 -8
- package/HiStepper/HiStep.js +18 -47
- package/HiStepper/HiStepper.js +1 -13
- package/HiStepper/index.js +0 -3
- package/HiSwitch/HiSwitch.js +15 -36
- package/HiSwitch/HiSwitchState.js +17 -31
- package/HiSwitch/index.js +0 -3
- package/HiTable/HiCellBuilder.js +7 -61
- package/HiTable/HiTable.js +17 -44
- package/HiTable/HiTableBody.js +6 -22
- package/HiTable/HiTableHeader.js +14 -46
- package/HiTable/HiTableRow.js +7 -39
- package/HiTable/constants.js +9 -14
- package/HiTable/index.js +0 -2
- package/es/HiAccordion/HiAccordion.js +5 -22
- package/es/HiAccordion/index.js +0 -3
- package/es/HiAccordionActions/HiAccordionActions.js +0 -12
- package/es/HiAccordionActions/index.js +0 -3
- package/es/HiAccordionSummary/HiAccordionSummary.js +0 -13
- package/es/HiAccordionSummary/index.js +0 -3
- package/es/HiAlertModal/HiAlertModal.js +4 -18
- package/es/HiAlertModal/index.js +0 -3
- package/es/HiAppBar/HiAppBar.js +8 -37
- package/es/HiAppBar/index.js +0 -2
- package/es/HiAvatar/HiAvatar.js +2 -10
- package/es/HiAvatar/index.js +0 -2
- package/es/HiBadge/HiBadge.js +14 -27
- package/es/HiBadge/index.js +0 -2
- package/es/HiBreadcrumb/HiBreadcrumb.js +5 -28
- package/es/HiBreadcrumb/HiStep.js +10 -40
- package/es/HiBreadcrumb/HiStepConnector.js +11 -43
- package/es/HiBreadcrumb/HiStepContent.js +3 -25
- package/es/HiBreadcrumb/HiStepIcon.js +11 -33
- package/es/HiBreadcrumb/HiStepLabel.js +12 -39
- package/es/HiBreadcrumb/HiStepper.js +3 -25
- package/es/HiBreadcrumb/index.js +0 -2
- package/es/HiButton/HiButton.js +8 -31
- package/es/HiButton/index.js +0 -3
- package/es/HiCell/CellAddress.js +9 -28
- package/es/HiCell/CellDate.js +7 -31
- package/es/HiCell/CellHiddenContent.js +4 -24
- package/es/HiCell/CellIcon.js +9 -31
- package/es/HiCell/CellImage.js +9 -29
- package/es/HiCell/CellNumeric.js +10 -35
- package/es/HiCell/CellPinToAction.js +6 -28
- package/es/HiCell/CellRate.js +14 -45
- package/es/HiCell/CellSentinel.js +9 -28
- package/es/HiCell/CellSentinelScore.js +5 -24
- package/es/HiCell/CellText.js +13 -47
- package/es/HiCell/CellTextStyled.js +12 -22
- package/es/HiCell/index.js +0 -10
- package/es/HiCheckbox/HiCheckbox.js +16 -50
- package/es/HiCheckbox/index.js +0 -2
- package/es/HiChip/HiChip.js +22 -43
- package/es/HiChip/HiChipSwitch.js +12 -52
- package/es/HiChip/index.js +0 -3
- package/es/HiColoredLabel/HiColoredLabel.js +37 -56
- package/es/HiColoredLabel/index.js +0 -2
- package/es/HiDatePicker/Caption.js +6 -16
- package/es/HiDatePicker/HiDatePicker.js +14 -85
- package/es/HiDatePicker/HiDatePickerMobile.js +17 -41
- package/es/HiDatePicker/HiDateRangePicker.js +35 -129
- package/es/HiDatePicker/HiDateRangeSelector.js +45 -123
- package/es/HiDatePicker/ListPicker.js +5 -33
- package/es/HiDatePicker/NavBar.js +9 -26
- package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +7 -21
- package/es/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +7 -21
- package/es/HiDatePicker/Overlays/MonthPickerOverlay.js +3 -24
- package/es/HiDatePicker/Overlays/Overlay.js +4 -18
- package/es/HiDatePicker/Overlays/TimePickerOverlay.js +5 -34
- package/es/HiDatePicker/Overlays/YearPickerOverlay.js +7 -29
- package/es/HiDatePicker/Overlays/index.js +0 -6
- package/es/HiDatePicker/Weekday.js +3 -7
- package/es/HiDatePicker/hiLocaleUtils.js +7 -18
- package/es/HiDatePicker/index.js +0 -2
- package/es/HiDatePicker/stylesheet.js +5 -10
- package/es/HiDialog/HiDialog.js +4 -15
- package/es/HiDialog/index.js +0 -2
- package/es/HiDotsStepper/HiDot.js +6 -33
- package/es/HiDotsStepper/HiDotsStepper.js +7 -32
- package/es/HiDotsStepper/index.js +0 -3
- package/es/HiExpansionPanel/HiExpansionPanel.js +13 -34
- package/es/HiExpansionPanel/index.js +0 -3
- package/es/HiForm/HiAddressField.js +9 -34
- package/es/HiForm/HiEmailField.js +4 -27
- package/es/HiForm/HiFormControl.js +27 -70
- package/es/HiForm/HiFormLabel.js +13 -37
- package/es/HiForm/HiInput.js +28 -80
- package/es/HiForm/HiPasswordField.js +5 -31
- package/es/HiForm/HiSearchField.js +2 -32
- package/es/HiForm/HiSlider.js +19 -52
- package/es/HiForm/HiTextField.js +21 -45
- package/es/HiForm/HiUpload.js +31 -87
- package/es/HiForm/HiUploadField.js +9 -30
- package/es/HiForm/HiUploadInput.js +20 -70
- package/es/HiForm/index.js +0 -12
- package/es/HiIcon/HiIcon.js +5 -28
- package/es/HiIcon/index.js +0 -2
- package/es/HiIconButton/HiIconButton.js +5 -18
- package/es/HiIconButton/index.js +0 -2
- package/es/HiListItemLink/HiListItemLink.js +6 -17
- package/es/HiListItemLink/index.js +0 -2
- package/es/HiLoader/HiLoader.js +4 -13
- package/es/HiLoader/index.js +0 -2
- package/es/HiNotice/HiKPI.js +14 -42
- package/es/HiNotice/HiKPINotice.js +4 -13
- package/es/HiNotice/index.js +0 -3
- package/es/HiPagination/HiPagination.js +0 -9
- package/es/HiPagination/index.js +0 -2
- package/es/HiPaymentMeans/HiPaymentMeans.js +24 -60
- package/es/HiPaymentMeans/index.js +0 -2
- package/es/HiPdfReader/HiPdfReader.js +21 -52
- package/es/HiPdfReader/index.js +0 -2
- package/es/HiPin/HiPin.js +14 -23
- package/es/HiPin/index.js +0 -2
- package/es/HiRadio/HiRadio.js +9 -18
- package/es/HiRadio/index.js +0 -2
- package/es/HiScrollStepper/HiScrollStepper.js +26 -63
- package/es/HiScrollStepper/index.js +0 -2
- package/es/HiSelect/HiDynamicSelect.js +31 -40
- package/es/HiSelect/HiDynamicSelectField.js +22 -44
- package/es/HiSelect/HiNestedSelect.js +61 -104
- package/es/HiSelect/HiNestedSelectContent.js +58 -82
- package/es/HiSelect/HiNestedSelectField.js +22 -44
- package/es/HiSelect/HiSelect.js +85 -180
- package/es/HiSelect/HiSelectContent.js +58 -90
- package/es/HiSelect/HiSelectField.js +23 -45
- package/es/HiSelect/HiSelectInput.js +20 -69
- package/es/HiSelect/HiSelectMobile.js +5 -40
- package/es/HiSelect/HiSuggestSelect.js +22 -76
- package/es/HiSelect/HiSuggestSelectField.js +13 -35
- package/es/HiSelect/index.js +0 -12
- package/es/HiSelectableList/HiSelectableList.js +29 -83
- package/es/HiSelectableList/HiSelectableListHierarchic.js +31 -55
- package/es/HiSelectableList/HiSelectableListItem.js +37 -76
- package/es/HiSelectableList/index.js +0 -4
- package/es/HiStepper/DefaultIndicator.js +0 -8
- package/es/HiStepper/HiStep.js +18 -47
- package/es/HiStepper/HiStepper.js +1 -13
- package/es/HiStepper/index.js +0 -3
- package/es/HiSwitch/HiSwitch.js +15 -36
- package/es/HiSwitch/HiSwitchState.js +17 -31
- package/es/HiSwitch/index.js +0 -3
- package/es/HiTable/HiCellBuilder.js +7 -61
- package/es/HiTable/HiTable.js +17 -44
- package/es/HiTable/HiTableBody.js +6 -22
- package/es/HiTable/HiTableHeader.js +14 -46
- package/es/HiTable/HiTableRow.js +7 -39
- package/es/HiTable/constants.js +9 -14
- package/es/HiTable/index.js +0 -2
- package/es/hi-svg-icons/HiAccount.js +3 -12
- package/es/hi-svg-icons/HiActivity.js +3 -12
- package/es/hi-svg-icons/HiAll.js +6 -16
- package/es/hi-svg-icons/HiBilling.js +3 -12
- package/es/hi-svg-icons/HiBriefcaseRescue.js +3 -12
- package/es/hi-svg-icons/HiBusiness.js +3 -12
- package/es/hi-svg-icons/HiCatalog.js +3 -12
- package/es/hi-svg-icons/HiCustomer.js +3 -12
- package/es/hi-svg-icons/HiDownload.js +3 -12
- package/es/hi-svg-icons/HiFinance.js +3 -12
- package/es/hi-svg-icons/HiFinanceMenu.js +3 -12
- package/es/hi-svg-icons/HiHostedPaymentPage.js +3 -12
- package/es/hi-svg-icons/HiHostedPaymentPageMenu.js +3 -12
- package/es/hi-svg-icons/HiIntegration.js +3 -12
- package/es/hi-svg-icons/HiIntegrationMenu.js +3 -12
- package/es/hi-svg-icons/HiIntelligence.js +3 -12
- package/es/hi-svg-icons/HiIntelligenceMenu.js +3 -12
- package/es/hi-svg-icons/HiInvoice.js +3 -12
- package/es/hi-svg-icons/HiInvoiceMenu.js +3 -12
- package/es/hi-svg-icons/HiLogoRounded.js +5 -15
- package/es/hi-svg-icons/HiOrder.js +3 -12
- package/es/hi-svg-icons/HiPaymentOrder.js +3 -12
- package/es/hi-svg-icons/HiPermission.js +3 -12
- package/es/hi-svg-icons/HiPriceGrid.js +3 -12
- package/es/hi-svg-icons/HiPrivate.js +3 -12
- package/es/hi-svg-icons/HiRoute.js +3 -12
- package/es/hi-svg-icons/HiRouteMenu.js +3 -12
- package/es/hi-svg-icons/HiRouteSwitch.js +6 -17
- package/es/hi-svg-icons/HiRouteSwitchMenu.js +6 -17
- package/es/hi-svg-icons/HiSettlement.js +3 -12
- package/es/hi-svg-icons/HiSizeLarge.js +3 -12
- package/es/hi-svg-icons/HiSizeMedium.js +3 -12
- package/es/hi-svg-icons/HiSizeSmall.js +3 -12
- package/es/hi-svg-icons/HiStore.js +3 -12
- package/es/hi-svg-icons/HiStoreMenu.js +3 -12
- package/es/hi-svg-icons/HiTransaction.js +3 -12
- package/es/hi-svg-icons/HiTransactionMenu.js +3 -12
- package/es/hi-svg-icons/HiUser.js +3 -12
- package/es/hi-svg-icons/HiVendor.js +3 -12
- package/es/hi-svg-icons/HiWidget.js +3 -12
- package/es/hi-svg-icons/index.js +0 -41
- package/es/hi-svg-images/HiLogo.js +3 -10
- package/es/hi-svg-images/HiLogoWhite.js +3 -10
- package/es/hi-svg-images/index.js +0 -3
- package/es/setupTest.js +2 -13
- package/es/styleguide/Wrapper.js +0 -6
- package/es/styles/MuiThemeProvider.js +11 -43
- package/es/styles/colorManipulator.js +15 -50
- package/es/styles/createBreakpoints.js +14 -28
- package/es/styles/createGenerateClassName.js +14 -24
- package/es/styles/createMixins.js +0 -5
- package/es/styles/createMuiTheme.js +10 -26
- package/es/styles/createPalette.js +65 -85
- package/es/styles/createStyles.js +0 -1
- package/es/styles/createTypography.js +15 -24
- package/es/styles/getStylesCreator.js +0 -12
- package/es/styles/getThemeProps.js +1 -5
- package/es/styles/index.js +0 -6
- package/es/styles/jssPreset.js +0 -9
- package/es/styles/makeStyles.js +0 -6
- package/es/styles/mergeClasses.js +4 -14
- package/es/styles/shadows.js +0 -2
- package/es/styles/spacing.js +0 -2
- package/es/styles/themeListener.js +0 -6
- package/es/styles/transitions.js +13 -22
- package/es/styles/withStyles.js +0 -6
- package/es/test-utils/createMount.js +2 -12
- package/es/test-utils/createRender.js +2 -9
- package/es/test-utils/createShallow.js +6 -17
- package/es/test-utils/getClasses.js +0 -2
- package/es/test-utils/index.js +0 -6
- package/es/test-utils/until.js +3 -14
- package/es/test-utils/unwrap.js +0 -1
- package/es/theme/palette.js +0 -4
- package/es/theme/typography.js +5 -12
- package/es/theme.js +0 -5
- package/es/transitions/utils.js +2 -5
- package/es/utils/exactProp.js +1 -9
- package/es/utils/helpers.js +19 -58
- package/es/withMobileDialog/index.js +0 -2
- package/es/withMobileDialog/withMobileDialog.js +2 -10
- package/hi-svg-icons/HiAccount.js +3 -12
- package/hi-svg-icons/HiActivity.js +3 -12
- package/hi-svg-icons/HiAll.js +6 -16
- package/hi-svg-icons/HiBilling.js +3 -12
- package/hi-svg-icons/HiBriefcaseRescue.js +3 -12
- package/hi-svg-icons/HiBusiness.js +3 -12
- package/hi-svg-icons/HiCatalog.js +3 -12
- package/hi-svg-icons/HiCustomer.js +3 -12
- package/hi-svg-icons/HiDownload.js +3 -12
- package/hi-svg-icons/HiFinance.js +3 -12
- package/hi-svg-icons/HiFinanceMenu.js +3 -12
- package/hi-svg-icons/HiHostedPaymentPage.js +3 -12
- package/hi-svg-icons/HiHostedPaymentPageMenu.js +3 -12
- package/hi-svg-icons/HiIntegration.js +3 -12
- package/hi-svg-icons/HiIntegrationMenu.js +3 -12
- package/hi-svg-icons/HiIntelligence.js +3 -12
- package/hi-svg-icons/HiIntelligenceMenu.js +3 -12
- package/hi-svg-icons/HiInvoice.js +3 -12
- package/hi-svg-icons/HiInvoiceMenu.js +3 -12
- package/hi-svg-icons/HiLogoRounded.js +5 -15
- package/hi-svg-icons/HiOrder.js +3 -12
- package/hi-svg-icons/HiPaymentOrder.js +3 -12
- package/hi-svg-icons/HiPermission.js +3 -12
- package/hi-svg-icons/HiPriceGrid.js +3 -12
- package/hi-svg-icons/HiPrivate.js +3 -12
- package/hi-svg-icons/HiRoute.js +3 -12
- package/hi-svg-icons/HiRouteMenu.js +3 -12
- package/hi-svg-icons/HiRouteSwitch.js +6 -17
- package/hi-svg-icons/HiRouteSwitchMenu.js +6 -17
- package/hi-svg-icons/HiSettlement.js +3 -12
- package/hi-svg-icons/HiSizeLarge.js +3 -12
- package/hi-svg-icons/HiSizeMedium.js +3 -12
- package/hi-svg-icons/HiSizeSmall.js +3 -12
- package/hi-svg-icons/HiStore.js +3 -12
- package/hi-svg-icons/HiStoreMenu.js +3 -12
- package/hi-svg-icons/HiTransaction.js +3 -12
- package/hi-svg-icons/HiTransactionMenu.js +3 -12
- package/hi-svg-icons/HiUser.js +3 -12
- package/hi-svg-icons/HiVendor.js +3 -12
- package/hi-svg-icons/HiWidget.js +3 -12
- package/hi-svg-icons/index.js +0 -41
- package/hi-svg-images/HiLogo.js +3 -10
- package/hi-svg-images/HiLogoWhite.js +3 -10
- package/hi-svg-images/index.js +0 -3
- package/package.json +4 -4
- package/setupTest.js +2 -13
- package/styleguide/Wrapper.js +0 -6
- package/styles/MuiThemeProvider.js +11 -43
- package/styles/colorManipulator.js +15 -50
- package/styles/createBreakpoints.js +14 -28
- package/styles/createGenerateClassName.js +14 -24
- package/styles/createMixins.js +0 -5
- package/styles/createMuiTheme.js +10 -26
- package/styles/createPalette.js +65 -85
- package/styles/createStyles.js +0 -1
- package/styles/createTypography.js +15 -24
- package/styles/getStylesCreator.js +0 -12
- package/styles/getThemeProps.js +1 -5
- package/styles/index.js +0 -6
- package/styles/jssPreset.js +0 -9
- package/styles/makeStyles.js +0 -6
- package/styles/mergeClasses.js +4 -14
- package/styles/shadows.js +0 -2
- package/styles/spacing.js +0 -2
- package/styles/themeListener.js +0 -6
- package/styles/transitions.js +13 -22
- package/styles/withStyles.js +0 -6
- package/test-utils/createMount.js +2 -12
- package/test-utils/createRender.js +2 -9
- package/test-utils/createShallow.js +6 -17
- package/test-utils/getClasses.js +0 -2
- package/test-utils/index.js +0 -6
- package/test-utils/until.js +3 -14
- package/test-utils/unwrap.js +0 -1
- package/theme/palette.js +0 -4
- package/theme/typography.js +5 -12
- package/theme.js +0 -5
- package/transitions/utils.js +2 -5
- package/utils/exactProp.js +1 -9
- package/utils/helpers.js +19 -58
- package/withMobileDialog/index.js +0 -2
- package/withMobileDialog/withMobileDialog.js +2 -10
@@ -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
|
});
|
@@ -15,9 +14,7 @@ exports.getLuminance = getLuminance;
|
|
15
14
|
exports.lighten = lighten;
|
16
15
|
exports.recomposeColor = recomposeColor;
|
17
16
|
exports.rgbToHex = rgbToHex;
|
18
|
-
|
19
17
|
var _warning = _interopRequireDefault(require("warning"));
|
20
|
-
|
21
18
|
/* eslint-disable no-use-before-define */
|
22
19
|
|
23
20
|
/**
|
@@ -32,67 +29,58 @@ function clamp(value) {
|
|
32
29
|
var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
33
30
|
var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
34
31
|
process.env.NODE_ENV !== "production" ? (0, _warning.default)(value >= min && value <= max, "Material-UI: the value provided ".concat(value, " is out of range [").concat(min, ", ").concat(max, "].")) : void 0;
|
35
|
-
|
36
32
|
if (value < min) {
|
37
33
|
return min;
|
38
34
|
}
|
39
|
-
|
40
35
|
if (value > max) {
|
41
36
|
return max;
|
42
37
|
}
|
43
|
-
|
44
38
|
return value;
|
45
39
|
}
|
40
|
+
|
46
41
|
/**
|
47
42
|
* Converts a color from CSS hex format to CSS rgb format.
|
48
43
|
*
|
49
44
|
* @param {string} color - Hex color, i.e. #nnn or #nnnnnn
|
50
45
|
* @returns {string} A CSS rgb color string
|
51
46
|
*/
|
52
|
-
|
53
|
-
|
54
47
|
function convertHexToRGB(color) {
|
55
48
|
color = color.substr(1);
|
56
49
|
var re = new RegExp(".{1,".concat(color.length / 3, "}"), 'g');
|
57
50
|
var colors = color.match(re);
|
58
|
-
|
59
51
|
if (colors && colors[0].length === 1) {
|
60
52
|
colors = colors.map(function (n) {
|
61
53
|
return n + n;
|
62
54
|
});
|
63
55
|
}
|
64
|
-
|
65
56
|
return colors ? "rgb(".concat(colors.map(function (n) {
|
66
57
|
return parseInt(n, 16);
|
67
58
|
}).join(', '), ")") : '';
|
68
59
|
}
|
60
|
+
|
69
61
|
/**
|
70
62
|
* Converts a color from CSS rgb format to CSS hex format.
|
71
63
|
*
|
72
64
|
* @param {string} color - RGB color, i.e. rgb(n, n, n)
|
73
65
|
* @returns {string} A CSS rgb color string, i.e. #nnnnnn
|
74
66
|
*/
|
75
|
-
|
76
|
-
|
77
67
|
function rgbToHex(color) {
|
78
68
|
// Pass hex straight through
|
79
69
|
if (color.indexOf('#') === 0) {
|
80
70
|
return color;
|
81
71
|
}
|
82
|
-
|
83
72
|
function intToHex(c) {
|
84
73
|
var hex = c.toString(16);
|
85
74
|
return hex.length === 1 ? "0".concat(hex) : hex;
|
86
75
|
}
|
87
|
-
|
88
76
|
var _decomposeColor = decomposeColor(color),
|
89
|
-
|
90
|
-
|
77
|
+
values = _decomposeColor.values;
|
91
78
|
values = values.map(function (n) {
|
92
79
|
return intToHex(n);
|
93
80
|
});
|
94
81
|
return "#".concat(values.join(''));
|
95
82
|
}
|
83
|
+
|
96
84
|
/**
|
97
85
|
* Returns an object with the type and values of a color.
|
98
86
|
*
|
@@ -101,31 +89,27 @@ function rgbToHex(color) {
|
|
101
89
|
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
102
90
|
* @returns {object} - A MUI color object: {type: string, values: number[]}
|
103
91
|
*/
|
104
|
-
|
105
|
-
|
106
92
|
function decomposeColor(color) {
|
107
93
|
if (color.charAt(0) === '#') {
|
108
94
|
return decomposeColor(convertHexToRGB(color));
|
109
95
|
}
|
110
|
-
|
111
96
|
var marker = color.indexOf('(');
|
112
97
|
var type = color.substring(0, marker);
|
113
98
|
var values = color.substring(marker + 1, color.length - 1).split(',');
|
114
99
|
values = values.map(function (value) {
|
115
100
|
return parseFloat(value);
|
116
101
|
});
|
117
|
-
|
118
102
|
if (process.env.NODE_ENV !== 'production') {
|
119
103
|
if (['rgb', 'rgba', 'hsl', 'hsla'].indexOf(type) === -1) {
|
120
104
|
throw new Error(["Material-UI: unsupported `".concat(color, "` color."), 'We support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla().'].join('\n'));
|
121
105
|
}
|
122
106
|
}
|
123
|
-
|
124
107
|
return {
|
125
108
|
type: type,
|
126
109
|
values: values
|
127
110
|
};
|
128
111
|
}
|
112
|
+
|
129
113
|
/**
|
130
114
|
* Converts a color object with type and values to a string.
|
131
115
|
*
|
@@ -134,26 +118,22 @@ function decomposeColor(color) {
|
|
134
118
|
* @param {array} color.values - [n,n,n] or [n,n,n,n]
|
135
119
|
* @returns {string} A CSS color string
|
136
120
|
*/
|
137
|
-
|
138
|
-
|
139
121
|
function recomposeColor(color) {
|
140
122
|
var type = color.type;
|
141
123
|
var values = color.values;
|
142
|
-
|
143
124
|
if (type.indexOf('rgb') !== -1) {
|
144
125
|
// Only convert the first 3 values to int (i.e. not alpha)
|
145
126
|
values = values.map(function (n, i) {
|
146
127
|
return i < 3 ? parseInt(n, 10) : n;
|
147
128
|
});
|
148
129
|
}
|
149
|
-
|
150
130
|
if (type.indexOf('hsl') !== -1) {
|
151
131
|
values[1] = "".concat(values[1], "%");
|
152
132
|
values[2] = "".concat(values[2], "%");
|
153
133
|
}
|
154
|
-
|
155
134
|
return "".concat(color.type, "(").concat(values.join(', '), ")");
|
156
135
|
}
|
136
|
+
|
157
137
|
/**
|
158
138
|
* Calculates the contrast ratio between two colors.
|
159
139
|
*
|
@@ -163,13 +143,12 @@ function recomposeColor(color) {
|
|
163
143
|
* @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
164
144
|
* @returns {number} A contrast ratio value in the range 0 - 21.
|
165
145
|
*/
|
166
|
-
|
167
|
-
|
168
146
|
function getContrastRatio(foreground, background) {
|
169
147
|
var lumA = getLuminance(foreground);
|
170
148
|
var lumB = getLuminance(background);
|
171
149
|
return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
|
172
150
|
}
|
151
|
+
|
173
152
|
/**
|
174
153
|
* The relative brightness of any point in a color space,
|
175
154
|
* normalized to 0 for darkest black and 1 for lightest white.
|
@@ -179,24 +158,21 @@ function getContrastRatio(foreground, background) {
|
|
179
158
|
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
|
180
159
|
* @returns {number} The relative brightness of the color in the range 0 - 1
|
181
160
|
*/
|
182
|
-
|
183
|
-
|
184
161
|
function getLuminance(color) {
|
185
162
|
var decomposedColor = decomposeColor(color);
|
186
|
-
|
187
163
|
if (decomposedColor.type.indexOf('rgb') !== -1) {
|
188
164
|
var rgb = decomposedColor.values.map(function (val) {
|
189
165
|
val /= 255; // normalized
|
190
|
-
|
191
166
|
return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4);
|
192
|
-
});
|
193
|
-
|
167
|
+
});
|
168
|
+
// Truncate at 3 digits
|
194
169
|
return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));
|
195
|
-
}
|
196
|
-
|
170
|
+
}
|
197
171
|
|
172
|
+
// else if (decomposedColor.type.indexOf('hsl') !== -1)
|
198
173
|
return decomposedColor.values[2] / 100;
|
199
174
|
}
|
175
|
+
|
200
176
|
/**
|
201
177
|
* Darken or lighten a colour, depending on its luminance.
|
202
178
|
* Light colors are darkened, dark colors are lightened.
|
@@ -205,12 +181,11 @@ function getLuminance(color) {
|
|
205
181
|
* @param {number} coefficient=0.15 - multiplier in the range 0 - 1
|
206
182
|
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
207
183
|
*/
|
208
|
-
|
209
|
-
|
210
184
|
function emphasize(color) {
|
211
185
|
var coefficient = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.15;
|
212
186
|
return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);
|
213
187
|
}
|
188
|
+
|
214
189
|
/**
|
215
190
|
* Set the absolute transparency of a color.
|
216
191
|
* Any existing alpha values are overwritten.
|
@@ -219,21 +194,18 @@ function emphasize(color) {
|
|
219
194
|
* @param {number} value - value to set the alpha channel to in the range 0 -1
|
220
195
|
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
221
196
|
*/
|
222
|
-
|
223
|
-
|
224
197
|
function fade(color, value) {
|
225
198
|
process.env.NODE_ENV !== "production" ? (0, _warning.default)(color, "Material-UI: missing color argument in fade(".concat(color, ", ").concat(value, ").")) : void 0;
|
226
199
|
if (!color) return color;
|
227
200
|
color = decomposeColor(color);
|
228
201
|
value = clamp(value);
|
229
|
-
|
230
202
|
if (color.type === 'rgb' || color.type === 'hsl') {
|
231
203
|
color.type += 'a';
|
232
204
|
}
|
233
|
-
|
234
205
|
color.values[3] = value;
|
235
206
|
return recomposeColor(color);
|
236
207
|
}
|
208
|
+
|
237
209
|
/**
|
238
210
|
* Darkens a color.
|
239
211
|
*
|
@@ -241,14 +213,11 @@ function fade(color, value) {
|
|
241
213
|
* @param {number} coefficient - multiplier in the range 0 - 1
|
242
214
|
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
243
215
|
*/
|
244
|
-
|
245
|
-
|
246
216
|
function darken(color, coefficient) {
|
247
217
|
process.env.NODE_ENV !== "production" ? (0, _warning.default)(color, "Material-UI: missing color argument in darken(".concat(color, ", ").concat(coefficient, ").")) : void 0;
|
248
218
|
if (!color) return color;
|
249
219
|
color = decomposeColor(color);
|
250
220
|
coefficient = clamp(coefficient);
|
251
|
-
|
252
221
|
if (color.type.indexOf('hsl') !== -1) {
|
253
222
|
color.values[2] *= 1 - coefficient;
|
254
223
|
} else if (color.type.indexOf('rgb') !== -1) {
|
@@ -256,9 +225,9 @@ function darken(color, coefficient) {
|
|
256
225
|
color.values[i] *= 1 - coefficient;
|
257
226
|
}
|
258
227
|
}
|
259
|
-
|
260
228
|
return recomposeColor(color);
|
261
229
|
}
|
230
|
+
|
262
231
|
/**
|
263
232
|
* Lightens a color.
|
264
233
|
*
|
@@ -266,14 +235,11 @@ function darken(color, coefficient) {
|
|
266
235
|
* @param {number} coefficient - multiplier in the range 0 - 1
|
267
236
|
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
268
237
|
*/
|
269
|
-
|
270
|
-
|
271
238
|
function lighten(color, coefficient) {
|
272
239
|
process.env.NODE_ENV !== "production" ? (0, _warning.default)(color, "Material-UI: missing color argument in lighten(".concat(color, ", ").concat(coefficient, ").")) : void 0;
|
273
240
|
if (!color) return color;
|
274
241
|
color = decomposeColor(color);
|
275
242
|
coefficient = clamp(coefficient);
|
276
|
-
|
277
243
|
if (color.type.indexOf('hsl') !== -1) {
|
278
244
|
color.values[2] += (100 - color.values[2]) * coefficient;
|
279
245
|
} else if (color.type.indexOf('rgb') !== -1) {
|
@@ -281,6 +247,5 @@ function lighten(color, coefficient) {
|
|
281
247
|
color.values[i] += (255 - color.values[i]) * coefficient;
|
282
248
|
}
|
283
249
|
}
|
284
|
-
|
285
250
|
return recomposeColor(color);
|
286
251
|
}
|
@@ -1,74 +1,60 @@
|
|
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 = createBreakpoints;
|
9
8
|
exports.keys = void 0;
|
10
|
-
|
11
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
12
|
-
|
13
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
14
|
-
|
15
11
|
// Sorted ASC by size. That's important.
|
16
12
|
// It can't be configured as it's used statically for propTypes.
|
17
|
-
var keys = ['xs', 'sm', 'md', 'lg', 'xl'];
|
13
|
+
var keys = ['xs', 'sm', 'md', 'lg', 'xl'];
|
18
14
|
|
15
|
+
// Keep in mind that @media is inclusive by the CSS specification.
|
19
16
|
exports.keys = keys;
|
20
|
-
|
21
17
|
function createBreakpoints(breakpoints) {
|
22
18
|
var _breakpoints$values = breakpoints.values,
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
19
|
+
values = _breakpoints$values === void 0 ? {
|
20
|
+
xs: 0,
|
21
|
+
sm: 600,
|
22
|
+
md: 960,
|
23
|
+
lg: 1280,
|
24
|
+
xl: 1920
|
25
|
+
} : _breakpoints$values,
|
26
|
+
_breakpoints$unit = breakpoints.unit,
|
27
|
+
unit = _breakpoints$unit === void 0 ? 'px' : _breakpoints$unit,
|
28
|
+
_breakpoints$step = breakpoints.step,
|
29
|
+
step = _breakpoints$step === void 0 ? 5 : _breakpoints$step,
|
30
|
+
other = (0, _objectWithoutProperties2.default)(breakpoints, ["values", "unit", "step"]);
|
36
31
|
function up(key) {
|
37
32
|
var value = typeof values[key] === 'number' ? values[key] : key;
|
38
33
|
return "@media (min-width:".concat(value).concat(unit, ")");
|
39
34
|
}
|
40
|
-
|
41
35
|
function down(key) {
|
42
36
|
var endIndex = keys.indexOf(key) + 1;
|
43
37
|
var upperbound = values[keys[endIndex]];
|
44
|
-
|
45
38
|
if (endIndex === keys.length) {
|
46
39
|
// xl down applies to all sizes
|
47
40
|
return up('xs');
|
48
41
|
}
|
49
|
-
|
50
42
|
var value = typeof upperbound === 'number' && endIndex > 0 ? upperbound : key;
|
51
43
|
return "@media (max-width:".concat(value - step / 100).concat(unit, ")");
|
52
44
|
}
|
53
|
-
|
54
45
|
function between(start, end) {
|
55
46
|
var endIndex = keys.indexOf(end) + 1;
|
56
|
-
|
57
47
|
if (endIndex === keys.length) {
|
58
48
|
return up(start);
|
59
49
|
}
|
60
|
-
|
61
50
|
return "@media (min-width:".concat(values[start]).concat(unit, ") and ") + "(max-width:".concat(values[keys[endIndex]] - step / 100).concat(unit, ")");
|
62
51
|
}
|
63
|
-
|
64
52
|
function only(key) {
|
65
53
|
return between(key, key);
|
66
54
|
}
|
67
|
-
|
68
55
|
function width(key) {
|
69
56
|
return values[key];
|
70
57
|
}
|
71
|
-
|
72
58
|
return (0, _objectSpread2.default)({
|
73
59
|
keys: keys,
|
74
60
|
values: values,
|
@@ -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;
|
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
|
-
}
|
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
|
-
|
35
|
-
|
36
|
-
|
37
|
-
var ruleCounter = 0;
|
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;
|
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
|
}
|
package/styles/createMixins.js
CHANGED
@@ -1,19 +1,14 @@
|
|
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
11
|
var _toolbar;
|
16
|
-
|
17
12
|
return (0, _objectSpread3.default)({
|
18
13
|
gutters: function gutters() {
|
19
14
|
var styles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
package/styles/createMuiTheme.js
CHANGED
@@ -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
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
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,5 @@ 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
60
|
var _default = createMuiTheme;
|
77
61
|
exports.default = _default;
|