@hipay/hipay-material-ui 3.15.2 → 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 +2 -2
- 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
package/styles/createPalette.js
CHANGED
@@ -1,31 +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.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.
|
19
|
+
|
29
20
|
var light = {
|
30
21
|
global: {
|
31
22
|
background1: '#FFFFFF',
|
@@ -119,7 +110,6 @@ var dark = {
|
|
119
110
|
}
|
120
111
|
};
|
121
112
|
exports.dark = dark;
|
122
|
-
|
123
113
|
function addLightOrDark(intent, direction, shade, tonalOffset) {
|
124
114
|
if (!intent[direction]) {
|
125
115
|
if (intent.hasOwnProperty(shade)) {
|
@@ -131,108 +121,98 @@ function addLightOrDark(intent, direction, shade, tonalOffset) {
|
|
131
121
|
}
|
132
122
|
}
|
133
123
|
}
|
134
|
-
|
135
124
|
function createPalette(palette) {
|
136
125
|
var _palette$primary = palette.primary,
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
126
|
+
primary = _palette$primary === void 0 ? {
|
127
|
+
light: '#5bc8ef',
|
128
|
+
main: '#00ade9',
|
129
|
+
dark: '#007ca9',
|
130
|
+
contrastText: '#FFFFFF'
|
131
|
+
} : _palette$primary,
|
132
|
+
_palette$secondary = palette.secondary,
|
133
|
+
secondary = _palette$secondary === void 0 ? {
|
134
|
+
light: '#ffd94f',
|
135
|
+
main: '#ffcf21',
|
136
|
+
dark: '#E9BE30',
|
137
|
+
contrastText: '#FFFFFF'
|
138
|
+
} : _palette$secondary,
|
139
|
+
_palette$positive = palette.positive,
|
140
|
+
positive = _palette$positive === void 0 ? {
|
141
|
+
light: '#66CF66',
|
142
|
+
main: '#00AF00',
|
143
|
+
dark: '#008300',
|
144
|
+
contrastText: '#FFFFFF'
|
145
|
+
} : _palette$positive,
|
146
|
+
_palette$negative = palette.negative,
|
147
|
+
negative = _palette$negative === void 0 ? {
|
148
|
+
ultraLight: '#EA9494',
|
149
|
+
light: '#E66666',
|
150
|
+
main: '#D50000',
|
151
|
+
dark: '#A00000',
|
152
|
+
contrastText: '#FFFFFF'
|
153
|
+
} : _palette$negative,
|
154
|
+
_palette$middle = palette.middle,
|
155
|
+
middle = _palette$middle === void 0 ? {
|
156
|
+
light: '#F4A647',
|
157
|
+
main: '#F99408',
|
158
|
+
dark: '#F78700',
|
159
|
+
contrastText: '#FFFFFF'
|
160
|
+
} : _palette$middle,
|
161
|
+
_palette$neutral = palette.neutral,
|
162
|
+
neutral = _palette$neutral === void 0 ? {
|
163
|
+
ultraLight: '#8B8B8B',
|
164
|
+
light: '#838383',
|
165
|
+
main: '#737373',
|
166
|
+
dark: '#20272B',
|
167
|
+
contrastText: '#FFFFFF'
|
168
|
+
} : _palette$neutral,
|
169
|
+
_palette$error = palette.error,
|
170
|
+
error = _palette$error === void 0 ? {
|
171
|
+
light: _red.default[300],
|
172
|
+
main: _red.default[500],
|
173
|
+
dark: _red.default[700]
|
174
|
+
} : _palette$error,
|
175
|
+
_palette$lookup = palette.lookup,
|
176
|
+
lookup = _palette$lookup === void 0 ? {
|
177
|
+
light: '#FFFF8D',
|
178
|
+
main: '#EDED14'
|
179
|
+
} : _palette$lookup,
|
180
|
+
_palette$type = palette.type,
|
181
|
+
type = _palette$type === void 0 ? 'light' : _palette$type,
|
182
|
+
_palette$contrastThre = palette.contrastThreshold,
|
183
|
+
contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre,
|
184
|
+
_palette$tonalOffset = palette.tonalOffset,
|
185
|
+
tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset,
|
186
|
+
_palette$context = palette.context,
|
187
|
+
context = _palette$context === void 0 ? 'local' : _palette$context,
|
188
|
+
other = (0, _objectWithoutProperties2.default)(palette, ["primary", "secondary", "positive", "negative", "middle", "neutral", "error", "lookup", "type", "contrastThreshold", "tonalOffset", "context"]);
|
201
189
|
function getContrastText(background) {
|
202
190
|
// Use the same logic as
|
203
191
|
// Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59
|
204
192
|
// and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54
|
205
193
|
var contrastText = (0, _colorManipulator.getContrastRatio)(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;
|
206
|
-
|
207
194
|
if (process.env.NODE_ENV !== 'production') {
|
208
195
|
var contrast = (0, _colorManipulator.getContrastRatio)(background, contrastText);
|
209
196
|
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
197
|
}
|
211
|
-
|
212
198
|
return contrastText;
|
213
199
|
}
|
214
|
-
|
215
200
|
function augmentColor(color) {
|
216
201
|
var mainShade = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
217
202
|
var lightShade = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 300;
|
218
203
|
var darkShade = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 700;
|
219
|
-
|
220
204
|
if (!color.main && color[mainShade]) {
|
221
205
|
color.main = color[mainShade];
|
222
206
|
}
|
223
|
-
|
224
207
|
if (process.env.NODE_ENV !== 'production' && !color.main) {
|
225
208
|
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
209
|
}
|
227
|
-
|
228
210
|
addLightOrDark(color, 'light', lightShade, tonalOffset);
|
229
211
|
addLightOrDark(color, 'dark', darkShade, tonalOffset);
|
230
|
-
|
231
212
|
if (!color.contrastText) {
|
232
213
|
color.contrastText = getContrastText(color.main);
|
233
214
|
}
|
234
215
|
}
|
235
|
-
|
236
216
|
augmentColor(primary);
|
237
217
|
augmentColor(secondary, 'A400', 'A200', 'A700');
|
238
218
|
augmentColor(error);
|
@@ -282,7 +262,7 @@ function createPalette(palette) {
|
|
282
262
|
tonalOffset: tonalOffset
|
283
263
|
}, types[type], {}, contexts[context]), other, {
|
284
264
|
clone: false // No need to clone deep
|
285
|
-
|
286
265
|
});
|
266
|
+
|
287
267
|
return paletteOutput;
|
288
268
|
}
|
package/styles/createStyles.js
CHANGED
@@ -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
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
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,11 @@ 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
41
|
var _default = getStylesCreator;
|
54
42
|
exports.default = _default;
|
package/styles/getThemeProps.js
CHANGED
@@ -4,17 +4,13 @@ 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
|
-
|
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
15
|
var _default = getThemeProps;
|
20
16
|
exports.default = _default;
|
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"));
|
package/styles/jssPreset.js
CHANGED
@@ -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,5 @@ 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
21
|
var _default = jssPreset;
|
31
22
|
exports.default = _default;
|
package/styles/makeStyles.js
CHANGED
@@ -1,18 +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 = void 0;
|
9
|
-
|
10
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
11
|
-
|
12
9
|
var _makeStyles = _interopRequireDefault(require("@mui/styles/makeStyles"));
|
13
|
-
|
14
10
|
var _theme = _interopRequireDefault(require("../theme"));
|
15
|
-
|
16
11
|
/**
|
17
12
|
* Override makeStyles hook to use HMUI theme as default
|
18
13
|
* @param createStyles
|
@@ -24,5 +19,4 @@ var _default = function _default(createStyles, options) {
|
|
24
19
|
defaultTheme: _theme.default
|
25
20
|
}, options));
|
26
21
|
};
|
27
|
-
|
28
22
|
exports.default = _default;
|
package/styles/mergeClasses.js
CHANGED
@@ -1,41 +1,31 @@
|
|
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 _warning = _interopRequireDefault(require("warning"));
|
13
|
-
|
14
10
|
var _getDisplayName = _interopRequireDefault(require("recompose/getDisplayName"));
|
15
|
-
|
16
11
|
function mergeClasses() {
|
17
12
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
18
13
|
var baseClasses = options.baseClasses,
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
14
|
+
newClasses = options.newClasses,
|
15
|
+
Component = options.Component,
|
16
|
+
_options$noBase = options.noBase,
|
17
|
+
noBase = _options$noBase === void 0 ? false : _options$noBase;
|
24
18
|
if (!newClasses) {
|
25
19
|
return baseClasses;
|
26
20
|
}
|
27
|
-
|
28
21
|
return (0, _objectSpread2.default)({}, baseClasses, {}, Object.keys(newClasses).reduce(function (accumulator, key) {
|
29
22
|
process.env.NODE_ENV !== "production" ? (0, _warning.default)(baseClasses[key] || noBase, ["Material-UI: the key `".concat(key, "` ") + "provided to the classes property is not implemented in ".concat((0, _getDisplayName.default)(Component), "."), "You can only override one of the following: ".concat(Object.keys(baseClasses).join(','))].join('\n')) : void 0;
|
30
23
|
process.env.NODE_ENV !== "production" ? (0, _warning.default)(!newClasses[key] || typeof newClasses[key] === 'string', ["Material-UI: the key `".concat(key, "` ") + "provided to the classes property is not valid for ".concat((0, _getDisplayName.default)(Component), "."), "You need to provide a non empty string instead of: ".concat(newClasses[key], ".")].join('\n')) : void 0;
|
31
|
-
|
32
24
|
if (newClasses[key]) {
|
33
25
|
accumulator[key] = "".concat(baseClasses[key], " ").concat(newClasses[key]);
|
34
26
|
}
|
35
|
-
|
36
27
|
return accumulator;
|
37
28
|
}, {}));
|
38
29
|
}
|
39
|
-
|
40
30
|
var _default = mergeClasses;
|
41
31
|
exports.default = _default;
|
package/styles/shadows.js
CHANGED
@@ -7,11 +7,9 @@ exports.default = void 0;
|
|
7
7
|
var shadowKeyUmbraOpacity = 0.2;
|
8
8
|
var shadowKeyPenumbraOpacity = 0.14;
|
9
9
|
var shadowAmbientShadowOpacity = 0.12;
|
10
|
-
|
11
10
|
function createShadow() {
|
12
11
|
return ["".concat(arguments.length <= 0 ? undefined : arguments[0], "px ").concat(arguments.length <= 1 ? undefined : arguments[1], "px ").concat(arguments.length <= 2 ? undefined : arguments[2], "px ").concat(arguments.length <= 3 ? undefined : arguments[3], "px rgba(0, 0, 0, ").concat(shadowKeyUmbraOpacity, ")"), "".concat(arguments.length <= 4 ? undefined : arguments[4], "px ").concat(arguments.length <= 5 ? undefined : arguments[5], "px ").concat(arguments.length <= 6 ? undefined : arguments[6], "px ").concat(arguments.length <= 7 ? undefined : arguments[7], "px rgba(0, 0, 0, ").concat(shadowKeyPenumbraOpacity, ")"), "".concat(arguments.length <= 8 ? undefined : arguments[8], "px ").concat(arguments.length <= 9 ? undefined : arguments[9], "px ").concat(arguments.length <= 10 ? undefined : arguments[10], "px ").concat(arguments.length <= 11 ? undefined : arguments[11], "px rgba(0, 0, 0, ").concat(shadowAmbientShadowOpacity, ")")].join(',');
|
13
12
|
}
|
14
|
-
|
15
13
|
var shadows = ['none', createShadow(0, 1, 3, 0, 0, 1, 1, 0, 0, 2, 1, -1), createShadow(0, 1, 5, 0, 0, 2, 2, 0, 0, 3, 1, -2), createShadow(0, 1, 8, 0, 0, 3, 4, 0, 0, 3, 3, -2), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
|
16
14
|
var _default = shadows;
|
17
15
|
exports.default = _default;
|
package/styles/spacing.js
CHANGED
@@ -4,11 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.default = void 0;
|
7
|
-
|
8
7
|
var spacing = function spacing() {
|
9
8
|
var n = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
|
10
9
|
return n * 4;
|
11
10
|
};
|
12
|
-
|
13
11
|
var _default = spacing;
|
14
12
|
exports.default = _default;
|
package/styles/themeListener.js
CHANGED
@@ -1,16 +1,12 @@
|
|
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 = exports.CHANNEL = void 0;
|
9
|
-
|
10
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
11
|
-
|
12
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
13
|
-
|
14
10
|
// Same value used by react-jss
|
15
11
|
var CHANNEL = '__THEMING__';
|
16
12
|
exports.CHANNEL = CHANNEL;
|
@@ -20,14 +16,12 @@ var themeListener = {
|
|
20
16
|
if (!context[CHANNEL]) {
|
21
17
|
return null;
|
22
18
|
}
|
23
|
-
|
24
19
|
return context[CHANNEL].getState();
|
25
20
|
},
|
26
21
|
subscribe: function subscribe(context, cb) {
|
27
22
|
if (!context[CHANNEL]) {
|
28
23
|
return null;
|
29
24
|
}
|
30
|
-
|
31
25
|
return context[CHANNEL].subscribe(cb);
|
32
26
|
},
|
33
27
|
unsubscribe: function unsubscribe(context, subscriptionId) {
|
package/styles/transitions.js
CHANGED
@@ -1,19 +1,15 @@
|
|
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.isString = exports.isNumber = exports.formatMs = exports.easing = exports.duration = exports.default = void 0;
|
9
|
-
|
10
8
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
11
|
-
|
12
9
|
var _warning = _interopRequireDefault(require("warning"));
|
13
|
-
|
14
10
|
/* eslint-disable no-param-reassign */
|
15
|
-
|
16
11
|
/* eslint-disable no-restricted-globals */
|
12
|
+
|
17
13
|
// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
|
18
14
|
// to learn the context in which each easing should be used.
|
19
15
|
var easing = {
|
@@ -26,9 +22,10 @@ var easing = {
|
|
26
22
|
easeIn: 'cubic-bezier(0.4, 0, 1, 1)',
|
27
23
|
// The sharp curve is used by objects that may return to the screen at any time.
|
28
24
|
sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'
|
29
|
-
};
|
30
|
-
// to learn when use what timing
|
25
|
+
};
|
31
26
|
|
27
|
+
// Follow https://material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations
|
28
|
+
// to learn when use what timing
|
32
29
|
exports.easing = easing;
|
33
30
|
var duration = {
|
34
31
|
shortest: 150,
|
@@ -44,22 +41,18 @@ var duration = {
|
|
44
41
|
leavingScreen: 195
|
45
42
|
};
|
46
43
|
exports.duration = duration;
|
47
|
-
|
48
44
|
var formatMs = function formatMs(milliseconds) {
|
49
45
|
return "".concat(Math.round(milliseconds), "ms");
|
50
46
|
};
|
51
|
-
|
52
47
|
exports.formatMs = formatMs;
|
53
|
-
|
54
48
|
var isString = function isString(value) {
|
55
49
|
return typeof value === 'string';
|
56
50
|
};
|
57
|
-
|
58
51
|
exports.isString = isString;
|
59
|
-
|
60
52
|
var isNumber = function isNumber(value) {
|
61
53
|
return !isNaN(parseFloat(value));
|
62
54
|
};
|
55
|
+
|
63
56
|
/**
|
64
57
|
* @param {string|Array} props
|
65
58
|
* @param {object} param
|
@@ -68,8 +61,6 @@ var isNumber = function isNumber(value) {
|
|
68
61
|
* @param {string} param.easing
|
69
62
|
* @param {number} param.delay
|
70
63
|
*/
|
71
|
-
|
72
|
-
|
73
64
|
exports.isNumber = isNumber;
|
74
65
|
var _default = {
|
75
66
|
easing: easing,
|
@@ -78,12 +69,12 @@ var _default = {
|
|
78
69
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['all'];
|
79
70
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
80
71
|
var _options$duration = options.duration,
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
72
|
+
durationOption = _options$duration === void 0 ? duration.standard : _options$duration,
|
73
|
+
_options$easing = options.easing,
|
74
|
+
easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing,
|
75
|
+
_options$delay = options.delay,
|
76
|
+
delay = _options$delay === void 0 ? 0 : _options$delay,
|
77
|
+
other = (0, _objectWithoutProperties2.default)(options, ["duration", "easing", "delay"]);
|
87
78
|
process.env.NODE_ENV !== "production" ? (0, _warning.default)(isString(props) || Array.isArray(props), 'Material-UI: argument "props" must be a string or Array.') : void 0;
|
88
79
|
process.env.NODE_ENV !== "production" ? (0, _warning.default)(isNumber(durationOption) || isString(durationOption), "Material-UI: argument \"duration\" must be a number or a string but found ".concat(durationOption, ".")) : void 0;
|
89
80
|
process.env.NODE_ENV !== "production" ? (0, _warning.default)(isString(easingOption), 'Material-UI: argument "easing" must be a string.') : void 0;
|
@@ -97,9 +88,9 @@ var _default = {
|
|
97
88
|
if (!height) {
|
98
89
|
return 0;
|
99
90
|
}
|
91
|
+
var constant = height / 36;
|
100
92
|
|
101
|
-
|
102
|
-
|
93
|
+
// https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10
|
103
94
|
return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);
|
104
95
|
}
|
105
96
|
};
|