@hipay/hipay-material-ui 4.0.0 → 4.0.1-beta5
Sign up to get free protection for your applications and to get access to all the features.
- package/HiAccordion/HiAccordion.js +26 -8
- package/HiAccordion/index.js +5 -1
- package/HiAccordionActions/HiAccordionActions.js +14 -1
- package/HiAccordionActions/index.js +5 -1
- package/HiAccordionSummary/HiAccordionSummary.js +15 -1
- package/HiAccordionSummary/index.js +5 -1
- package/HiAlertModal/HiAlertModal.js +22 -7
- package/HiAlertModal/index.js +5 -1
- package/HiAppBar/HiAppBar.js +42 -11
- package/HiAppBar/index.js +2 -0
- package/HiAvatar/HiAvatar.js +12 -3
- package/HiAvatar/index.js +2 -0
- package/HiBadge/HiBadge.js +24 -8
- package/HiBadge/index.js +2 -0
- package/HiBreadcrumb/HiBreadcrumb.js +30 -6
- package/HiBreadcrumb/HiStep.js +45 -13
- package/HiBreadcrumb/HiStepConnector.js +49 -14
- package/HiBreadcrumb/HiStepContent.js +30 -6
- package/HiBreadcrumb/HiStepIcon.js +35 -10
- package/HiBreadcrumb/HiStepLabel.js +44 -14
- package/HiBreadcrumb/HiStepper.js +30 -6
- package/HiBreadcrumb/index.js +2 -0
- package/HiButton/HiButton.js +33 -8
- package/HiButton/index.js +5 -1
- package/HiCell/CellAddress.js +33 -12
- package/HiCell/CellDate.js +36 -10
- package/HiCell/CellHiddenContent.js +30 -8
- package/HiCell/CellIcon.js +36 -12
- package/HiCell/CellImage.js +34 -12
- package/HiCell/CellNumeric.js +40 -13
- package/HiCell/CellPinToAction.js +33 -9
- package/HiCell/CellRate.js +47 -13
- package/HiCell/CellSentinel.js +33 -12
- package/HiCell/CellSentinelScore.js +31 -9
- package/HiCell/CellText.js +52 -16
- package/HiCell/CellTextStyled.js +24 -13
- package/HiCell/index.js +10 -0
- package/HiCheckbox/HiCheckbox.js +52 -15
- package/HiCheckbox/index.js +2 -0
- package/HiChip/HiChip.js +47 -24
- package/HiChip/HiChipSwitch.js +59 -16
- package/HiChip/index.js +3 -0
- package/HiColoredLabel/HiColoredLabel.js +49 -15
- package/HiColoredLabel/index.js +2 -0
- package/HiDatePicker/Caption.js +21 -9
- package/HiDatePicker/HiDatePicker.js +88 -16
- package/HiDatePicker/HiDatePickerMobile.js +43 -18
- package/HiDatePicker/HiDateRangePicker.js +134 -38
- package/HiDatePicker/HiDateRangeSelector.js +130 -49
- package/HiDatePicker/ListPicker.js +38 -8
- package/HiDatePicker/NavBar.js +31 -12
- package/HiDatePicker/Overlays/CustomOverlayLayout.js +28 -11
- package/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +28 -11
- package/HiDatePicker/Overlays/MonthPickerOverlay.js +26 -4
- package/HiDatePicker/Overlays/Overlay.js +25 -8
- package/HiDatePicker/Overlays/TimePickerOverlay.js +39 -8
- package/HiDatePicker/Overlays/YearPickerOverlay.js +31 -8
- package/HiDatePicker/Overlays/index.js +6 -0
- package/HiDatePicker/Weekday.js +9 -4
- package/HiDatePicker/hiLocaleUtils.js +20 -8
- package/HiDatePicker/index.js +2 -0
- package/HiDatePicker/stylesheet.js +13 -7
- package/HiDialog/HiDialog.js +19 -7
- package/HiDialog/index.js +2 -0
- package/HiDotsStepper/HiDot.js +37 -8
- package/HiDotsStepper/HiDotsStepper.js +37 -10
- package/HiDotsStepper/index.js +3 -0
- package/HiExpansionPanel/HiExpansionPanel.js +38 -16
- package/HiExpansionPanel/index.js +5 -1
- package/HiForm/HiAddressField.js +36 -10
- package/HiForm/HiEmailField.js +29 -5
- package/HiForm/HiFormControl.js +74 -28
- package/HiForm/HiFormLabel.js +41 -15
- package/HiForm/HiInput.js +91 -33
- package/HiForm/HiPasswordField.js +46 -9
- package/HiForm/HiSearchField.js +34 -3
- package/HiForm/HiSlider.js +57 -22
- package/HiForm/HiTextField.js +47 -22
- package/HiForm/HiUpload.js +89 -29
- package/HiForm/HiUploadField.js +32 -10
- package/HiForm/HiUploadInput.js +76 -23
- package/HiForm/index.js +12 -0
- package/HiIcon/HiIcon.js +34 -9
- package/HiIcon/index.js +2 -0
- package/HiIconButton/HiIconButton.js +21 -6
- package/HiIconButton/index.js +2 -0
- package/HiListItemLink/HiListItemLink.js +19 -7
- package/HiListItemLink/index.js +2 -0
- package/HiLoader/HiLoader.js +16 -6
- package/HiLoader/index.js +2 -0
- package/HiNotice/HiKPI.js +47 -16
- package/HiNotice/HiKPINotice.js +16 -6
- package/HiNotice/index.js +3 -0
- package/HiPagination/HiPagination.js +11 -1
- package/HiPagination/index.js +2 -0
- package/HiPaymentMeans/HiPaymentMeans.js +72 -31
- package/HiPaymentMeans/index.js +2 -0
- package/HiPdfReader/HiPdfReader.js +57 -24
- package/HiPdfReader/index.js +2 -0
- package/HiPin/HiPin.js +19 -7
- package/HiPin/index.js +2 -0
- package/HiRadio/HiRadio.js +22 -11
- package/HiRadio/index.js +2 -0
- package/HiScrollStepper/HiScrollStepper.js +67 -29
- package/HiScrollStepper/index.js +2 -0
- package/HiSelect/HiDynamicSelect.js +42 -32
- package/HiSelect/HiDynamicSelectField.js +48 -24
- package/HiSelect/HiNestedSelect.js +111 -65
- package/HiSelect/HiNestedSelectContent.js +86 -60
- package/HiSelect/HiNestedSelectField.js +48 -24
- package/HiSelect/HiSelect.js +187 -89
- package/HiSelect/HiSelectContent.js +97 -62
- package/HiSelect/HiSelectField.js +49 -25
- package/HiSelect/HiSelectInput.js +76 -23
- package/HiSelect/HiSelectMobile.js +44 -7
- package/HiSelect/HiSuggestSelect.js +81 -25
- package/HiSelect/HiSuggestSelectField.js +39 -15
- package/HiSelect/index.js +14 -2
- package/HiSelectableList/HiSelectableList.js +90 -34
- package/HiSelectableList/HiSelectableListHierarchic.js +60 -34
- package/HiSelectableList/HiSelectableListItem.js +88 -45
- package/HiSelectableList/index.js +4 -0
- package/HiStepper/DefaultIndicator.js +10 -1
- package/HiStepper/HiStep.js +48 -18
- package/HiStepper/HiStepper.js +15 -2
- package/HiStepper/index.js +3 -0
- package/HiSwitch/HiSwitch.js +33 -9
- package/HiSwitch/HiSwitchState.js +32 -15
- package/HiSwitch/index.js +3 -0
- package/HiTable/HiCellBuilder.js +65 -10
- package/HiTable/HiTable.js +48 -20
- package/HiTable/HiTableBody.js +24 -7
- package/HiTable/HiTableHeader.js +51 -18
- package/HiTable/HiTableRow.js +46 -12
- package/HiTable/constants.js +98 -48
- package/HiTable/index.js +2 -0
- package/es/HiAccordion/HiAccordion.js +26 -8
- package/es/HiAccordion/index.js +5 -1
- package/es/HiAccordionActions/HiAccordionActions.js +14 -1
- package/es/HiAccordionActions/index.js +5 -1
- package/es/HiAccordionSummary/HiAccordionSummary.js +15 -1
- package/es/HiAccordionSummary/index.js +5 -1
- package/es/HiAlertModal/HiAlertModal.js +22 -7
- package/es/HiAlertModal/index.js +5 -1
- package/es/HiAppBar/HiAppBar.js +42 -11
- package/es/HiAppBar/index.js +2 -0
- package/es/HiAvatar/HiAvatar.js +12 -3
- package/es/HiAvatar/index.js +2 -0
- package/es/HiBadge/HiBadge.js +24 -8
- package/es/HiBadge/index.js +2 -0
- package/es/HiBreadcrumb/HiBreadcrumb.js +30 -6
- package/es/HiBreadcrumb/HiStep.js +45 -13
- package/es/HiBreadcrumb/HiStepConnector.js +49 -14
- package/es/HiBreadcrumb/HiStepContent.js +30 -6
- package/es/HiBreadcrumb/HiStepIcon.js +35 -10
- package/es/HiBreadcrumb/HiStepLabel.js +44 -14
- package/es/HiBreadcrumb/HiStepper.js +30 -6
- package/es/HiBreadcrumb/index.js +2 -0
- package/es/HiButton/HiButton.js +33 -8
- package/es/HiButton/index.js +5 -1
- package/es/HiCell/CellAddress.js +33 -12
- package/es/HiCell/CellDate.js +36 -10
- package/es/HiCell/CellHiddenContent.js +30 -8
- package/es/HiCell/CellIcon.js +36 -12
- package/es/HiCell/CellImage.js +34 -12
- package/es/HiCell/CellNumeric.js +40 -13
- package/es/HiCell/CellPinToAction.js +33 -9
- package/es/HiCell/CellRate.js +47 -13
- package/es/HiCell/CellSentinel.js +33 -12
- package/es/HiCell/CellSentinelScore.js +31 -9
- package/es/HiCell/CellText.js +52 -16
- package/es/HiCell/CellTextStyled.js +24 -13
- package/es/HiCell/index.js +10 -0
- package/es/HiCheckbox/HiCheckbox.js +52 -15
- package/es/HiCheckbox/index.js +2 -0
- package/es/HiChip/HiChip.js +47 -24
- package/es/HiChip/HiChipSwitch.js +59 -16
- package/es/HiChip/index.js +3 -0
- package/es/HiColoredLabel/HiColoredLabel.js +49 -15
- package/es/HiColoredLabel/index.js +2 -0
- package/es/HiDatePicker/Caption.js +21 -9
- package/es/HiDatePicker/HiDatePicker.js +88 -16
- package/es/HiDatePicker/HiDatePickerMobile.js +43 -18
- package/es/HiDatePicker/HiDateRangePicker.js +134 -38
- package/es/HiDatePicker/HiDateRangeSelector.js +130 -49
- package/es/HiDatePicker/ListPicker.js +38 -8
- package/es/HiDatePicker/NavBar.js +31 -12
- package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +28 -11
- package/es/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +28 -11
- package/es/HiDatePicker/Overlays/MonthPickerOverlay.js +26 -4
- package/es/HiDatePicker/Overlays/Overlay.js +25 -8
- package/es/HiDatePicker/Overlays/TimePickerOverlay.js +39 -8
- package/es/HiDatePicker/Overlays/YearPickerOverlay.js +31 -8
- package/es/HiDatePicker/Overlays/index.js +6 -0
- package/es/HiDatePicker/Weekday.js +9 -4
- package/es/HiDatePicker/hiLocaleUtils.js +20 -8
- package/es/HiDatePicker/index.js +2 -0
- package/es/HiDatePicker/stylesheet.js +13 -7
- package/es/HiDialog/HiDialog.js +19 -7
- package/es/HiDialog/index.js +2 -0
- package/es/HiDotsStepper/HiDot.js +37 -8
- package/es/HiDotsStepper/HiDotsStepper.js +37 -10
- package/es/HiDotsStepper/index.js +3 -0
- package/es/HiExpansionPanel/HiExpansionPanel.js +38 -16
- package/es/HiExpansionPanel/index.js +5 -1
- package/es/HiForm/HiAddressField.js +36 -10
- package/es/HiForm/HiEmailField.js +29 -5
- package/es/HiForm/HiFormControl.js +74 -28
- package/es/HiForm/HiFormLabel.js +41 -15
- package/es/HiForm/HiInput.js +91 -33
- package/es/HiForm/HiPasswordField.js +46 -9
- package/es/HiForm/HiSearchField.js +34 -3
- package/es/HiForm/HiSlider.js +57 -22
- package/es/HiForm/HiTextField.js +47 -22
- package/es/HiForm/HiUpload.js +89 -29
- package/es/HiForm/HiUploadField.js +32 -10
- package/es/HiForm/HiUploadInput.js +76 -23
- package/es/HiForm/index.js +12 -0
- package/es/HiIcon/HiIcon.js +34 -9
- package/es/HiIcon/index.js +2 -0
- package/es/HiIconButton/HiIconButton.js +21 -6
- package/es/HiIconButton/index.js +2 -0
- package/es/HiListItemLink/HiListItemLink.js +19 -7
- package/es/HiListItemLink/index.js +2 -0
- package/es/HiLoader/HiLoader.js +16 -6
- package/es/HiLoader/index.js +2 -0
- package/es/HiNotice/HiKPI.js +47 -16
- package/es/HiNotice/HiKPINotice.js +16 -6
- package/es/HiNotice/index.js +3 -0
- package/es/HiPagination/HiPagination.js +11 -1
- package/es/HiPagination/index.js +2 -0
- package/es/HiPaymentMeans/HiPaymentMeans.js +72 -31
- package/es/HiPaymentMeans/index.js +2 -0
- package/es/HiPdfReader/HiPdfReader.js +57 -24
- package/es/HiPdfReader/index.js +2 -0
- package/es/HiPin/HiPin.js +19 -7
- package/es/HiPin/index.js +2 -0
- package/es/HiRadio/HiRadio.js +22 -11
- package/es/HiRadio/index.js +2 -0
- package/es/HiScrollStepper/HiScrollStepper.js +67 -29
- package/es/HiScrollStepper/index.js +2 -0
- package/es/HiSelect/HiDynamicSelect.js +42 -32
- package/es/HiSelect/HiDynamicSelectField.js +48 -24
- package/es/HiSelect/HiNestedSelect.js +111 -65
- package/es/HiSelect/HiNestedSelectContent.js +86 -60
- package/es/HiSelect/HiNestedSelectField.js +48 -24
- package/es/HiSelect/HiSelect.js +187 -89
- package/es/HiSelect/HiSelectContent.js +97 -62
- package/es/HiSelect/HiSelectField.js +49 -25
- package/es/HiSelect/HiSelectInput.js +76 -23
- package/es/HiSelect/HiSelectMobile.js +44 -7
- package/es/HiSelect/HiSuggestSelect.js +81 -25
- package/es/HiSelect/HiSuggestSelectField.js +39 -15
- package/es/HiSelect/index.js +14 -2
- package/es/HiSelectableList/HiSelectableList.js +90 -34
- package/es/HiSelectableList/HiSelectableListHierarchic.js +60 -34
- package/es/HiSelectableList/HiSelectableListItem.js +88 -45
- package/es/HiSelectableList/index.js +4 -0
- package/es/HiStepper/DefaultIndicator.js +10 -1
- package/es/HiStepper/HiStep.js +48 -18
- package/es/HiStepper/HiStepper.js +15 -2
- package/es/HiStepper/index.js +3 -0
- package/es/HiSwitch/HiSwitch.js +33 -9
- package/es/HiSwitch/HiSwitchState.js +32 -15
- package/es/HiSwitch/index.js +3 -0
- package/es/HiTable/HiCellBuilder.js +65 -10
- package/es/HiTable/HiTable.js +48 -20
- package/es/HiTable/HiTableBody.js +24 -7
- package/es/HiTable/HiTableHeader.js +51 -18
- package/es/HiTable/HiTableRow.js +46 -12
- package/es/HiTable/constants.js +98 -48
- package/es/HiTable/index.js +2 -0
- package/es/hi-svg-icons/HiAccount.js +14 -4
- package/es/hi-svg-icons/HiActivity.js +14 -4
- package/es/hi-svg-icons/HiAll.js +18 -7
- package/es/hi-svg-icons/HiBilling.js +14 -4
- package/es/hi-svg-icons/HiBriefcaseRescue.js +14 -4
- package/es/hi-svg-icons/HiBusiness.js +14 -4
- package/es/hi-svg-icons/HiCatalog.js +14 -4
- package/es/hi-svg-icons/HiCustomer.js +14 -4
- package/es/hi-svg-icons/HiDownload.js +14 -4
- package/es/hi-svg-icons/HiFinance.js +14 -4
- package/es/hi-svg-icons/HiFinanceMenu.js +14 -4
- package/es/hi-svg-icons/HiHostedPaymentPage.js +14 -4
- package/es/hi-svg-icons/HiHostedPaymentPageMenu.js +14 -4
- package/es/hi-svg-icons/HiIntegration.js +14 -4
- package/es/hi-svg-icons/HiIntegrationMenu.js +14 -4
- package/es/hi-svg-icons/HiIntelligence.js +14 -4
- package/es/hi-svg-icons/HiIntelligenceMenu.js +14 -4
- package/es/hi-svg-icons/HiInvoice.js +14 -4
- package/es/hi-svg-icons/HiInvoiceMenu.js +14 -4
- package/es/hi-svg-icons/HiLogoRounded.js +17 -6
- package/es/hi-svg-icons/HiOrder.js +14 -4
- package/es/hi-svg-icons/HiPaymentOrder.js +14 -4
- package/es/hi-svg-icons/HiPermission.js +14 -4
- package/es/hi-svg-icons/HiPriceGrid.js +14 -4
- package/es/hi-svg-icons/HiPrivate.js +14 -4
- package/es/hi-svg-icons/HiRoute.js +14 -4
- package/es/hi-svg-icons/HiRouteMenu.js +14 -4
- package/es/hi-svg-icons/HiRouteSwitch.js +19 -7
- package/es/hi-svg-icons/HiRouteSwitchMenu.js +19 -7
- package/es/hi-svg-icons/HiSettlement.js +14 -4
- package/es/hi-svg-icons/HiSizeLarge.js +14 -4
- package/es/hi-svg-icons/HiSizeMedium.js +14 -4
- package/es/hi-svg-icons/HiSizeSmall.js +14 -4
- package/es/hi-svg-icons/HiStore.js +14 -4
- package/es/hi-svg-icons/HiStoreMenu.js +14 -4
- package/es/hi-svg-icons/HiTransaction.js +14 -4
- package/es/hi-svg-icons/HiTransactionMenu.js +14 -4
- package/es/hi-svg-icons/HiUser.js +14 -4
- package/es/hi-svg-icons/HiVendor.js +14 -4
- package/es/hi-svg-icons/HiWidget.js +14 -4
- package/es/hi-svg-icons/index.js +41 -0
- package/es/hi-svg-images/HiLogo.js +12 -4
- package/es/hi-svg-images/HiLogoWhite.js +12 -4
- package/es/hi-svg-images/index.js +3 -0
- package/es/setupTest.js +13 -2
- package/es/styleguide/Wrapper.js +6 -0
- package/es/styles/MuiThemeProvider.js +49 -15
- package/es/styles/colorManipulator.js +50 -15
- package/es/styles/createBreakpoints.js +29 -14
- package/es/styles/createGenerateClassName.js +24 -14
- package/es/styles/createMixins.js +10 -4
- package/es/styles/createMuiTheme.js +28 -11
- package/es/styles/createPalette.js +89 -67
- package/es/styles/createStyles.js +1 -0
- package/es/styles/createTypography.js +24 -15
- package/es/styles/getStylesCreator.js +14 -1
- package/es/styles/getThemeProps.js +7 -2
- package/es/styles/index.js +6 -0
- package/es/styles/jssPreset.js +11 -1
- package/es/styles/makeStyles.js +9 -2
- package/es/styles/mergeClasses.js +16 -5
- package/es/styles/shadows.js +4 -1
- package/es/styles/shape.js +2 -1
- package/es/styles/spacing.js +4 -1
- package/es/styles/themeListener.js +10 -2
- package/es/styles/transitions.js +35 -20
- package/es/styles/withStyles.js +9 -2
- package/es/styles/zIndex.js +2 -1
- package/es/test-utils/createMount.js +12 -2
- package/es/test-utils/createRender.js +9 -2
- package/es/test-utils/createShallow.js +17 -6
- package/es/test-utils/getClasses.js +4 -1
- package/es/test-utils/index.js +6 -0
- package/es/test-utils/until.js +14 -3
- package/es/test-utils/unwrap.js +1 -0
- package/es/theme/palette.js +7 -2
- package/es/theme/typography.js +15 -7
- package/es/theme.js +8 -2
- package/es/transitions/utils.js +7 -3
- package/es/utils/exactProp.js +13 -3
- package/es/utils/helpers.js +58 -19
- package/es/withMobileDialog/index.js +2 -0
- package/es/withMobileDialog/withMobileDialog.js +12 -3
- package/hi-svg-icons/HiAccount.js +14 -4
- package/hi-svg-icons/HiActivity.js +14 -4
- package/hi-svg-icons/HiAll.js +18 -7
- package/hi-svg-icons/HiBilling.js +14 -4
- package/hi-svg-icons/HiBriefcaseRescue.js +14 -4
- package/hi-svg-icons/HiBusiness.js +14 -4
- package/hi-svg-icons/HiCatalog.js +14 -4
- package/hi-svg-icons/HiCustomer.js +14 -4
- package/hi-svg-icons/HiDownload.js +14 -4
- package/hi-svg-icons/HiFinance.js +14 -4
- package/hi-svg-icons/HiFinanceMenu.js +14 -4
- package/hi-svg-icons/HiHostedPaymentPage.js +14 -4
- package/hi-svg-icons/HiHostedPaymentPageMenu.js +14 -4
- package/hi-svg-icons/HiIntegration.js +14 -4
- package/hi-svg-icons/HiIntegrationMenu.js +14 -4
- package/hi-svg-icons/HiIntelligence.js +14 -4
- package/hi-svg-icons/HiIntelligenceMenu.js +14 -4
- package/hi-svg-icons/HiInvoice.js +14 -4
- package/hi-svg-icons/HiInvoiceMenu.js +14 -4
- package/hi-svg-icons/HiLogoRounded.js +17 -6
- package/hi-svg-icons/HiOrder.js +14 -4
- package/hi-svg-icons/HiPaymentOrder.js +14 -4
- package/hi-svg-icons/HiPermission.js +14 -4
- package/hi-svg-icons/HiPriceGrid.js +14 -4
- package/hi-svg-icons/HiPrivate.js +14 -4
- package/hi-svg-icons/HiRoute.js +14 -4
- package/hi-svg-icons/HiRouteMenu.js +14 -4
- package/hi-svg-icons/HiRouteSwitch.js +19 -7
- package/hi-svg-icons/HiRouteSwitchMenu.js +19 -7
- package/hi-svg-icons/HiSettlement.js +14 -4
- package/hi-svg-icons/HiSizeLarge.js +14 -4
- package/hi-svg-icons/HiSizeMedium.js +14 -4
- package/hi-svg-icons/HiSizeSmall.js +14 -4
- package/hi-svg-icons/HiStore.js +14 -4
- package/hi-svg-icons/HiStoreMenu.js +14 -4
- package/hi-svg-icons/HiTransaction.js +14 -4
- package/hi-svg-icons/HiTransactionMenu.js +14 -4
- package/hi-svg-icons/HiUser.js +14 -4
- package/hi-svg-icons/HiVendor.js +14 -4
- package/hi-svg-icons/HiWidget.js +14 -4
- package/hi-svg-icons/index.js +41 -0
- package/hi-svg-images/HiLogo.js +12 -4
- package/hi-svg-images/HiLogoWhite.js +12 -4
- package/hi-svg-images/index.js +3 -0
- package/package.json +2 -2
- package/setupTest.js +13 -2
- package/styleguide/Wrapper.js +6 -0
- package/styles/MuiThemeProvider.js +49 -15
- package/styles/colorManipulator.js +50 -15
- package/styles/createBreakpoints.js +29 -14
- package/styles/createGenerateClassName.js +24 -14
- package/styles/createMixins.js +10 -4
- package/styles/createMuiTheme.js +28 -11
- package/styles/createPalette.js +89 -67
- package/styles/createStyles.js +1 -0
- package/styles/createTypography.js +24 -15
- package/styles/getStylesCreator.js +14 -1
- package/styles/getThemeProps.js +7 -2
- package/styles/index.js +6 -0
- package/styles/jssPreset.js +11 -1
- package/styles/makeStyles.js +9 -2
- package/styles/mergeClasses.js +16 -5
- package/styles/shadows.js +4 -1
- package/styles/shape.js +2 -1
- package/styles/spacing.js +4 -1
- package/styles/themeListener.js +10 -2
- package/styles/transitions.js +35 -20
- package/styles/withStyles.js +9 -2
- package/styles/zIndex.js +2 -1
- package/test-utils/createMount.js +12 -2
- package/test-utils/createRender.js +9 -2
- package/test-utils/createShallow.js +17 -6
- package/test-utils/getClasses.js +4 -1
- package/test-utils/index.js +6 -0
- package/test-utils/until.js +14 -3
- package/test-utils/unwrap.js +1 -0
- package/theme/palette.js +7 -2
- package/theme/typography.js +15 -7
- package/theme.js +8 -2
- package/transitions/utils.js +7 -3
- package/utils/exactProp.js +13 -3
- package/utils/helpers.js +58 -19
- package/withMobileDialog/index.js +2 -0
- package/withMobileDialog/withMobileDialog.js +12 -3
package/styles/themeListener.js
CHANGED
@@ -1,26 +1,33 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
5
6
|
value: true
|
6
7
|
});
|
7
8
|
exports.default = exports.CHANNEL = void 0;
|
9
|
+
|
8
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
11
|
+
|
9
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
13
|
+
|
10
14
|
// Same value used by react-jss
|
11
|
-
var CHANNEL =
|
15
|
+
var CHANNEL = '__THEMING__';
|
16
|
+
exports.CHANNEL = CHANNEL;
|
12
17
|
var themeListener = {
|
13
18
|
contextTypes: (0, _defineProperty2.default)({}, CHANNEL, _propTypes.default.object),
|
14
19
|
initial: function initial(context) {
|
15
20
|
if (!context[CHANNEL]) {
|
16
21
|
return null;
|
17
22
|
}
|
23
|
+
|
18
24
|
return context[CHANNEL].getState();
|
19
25
|
},
|
20
26
|
subscribe: function subscribe(context, cb) {
|
21
27
|
if (!context[CHANNEL]) {
|
22
28
|
return null;
|
23
29
|
}
|
30
|
+
|
24
31
|
return context[CHANNEL].subscribe(cb);
|
25
32
|
},
|
26
33
|
unsubscribe: function unsubscribe(context, subscriptionId) {
|
@@ -29,4 +36,5 @@ var themeListener = {
|
|
29
36
|
}
|
30
37
|
}
|
31
38
|
};
|
32
|
-
var _default =
|
39
|
+
var _default = themeListener;
|
40
|
+
exports.default = _default;
|
package/styles/transitions.js
CHANGED
@@ -1,18 +1,22 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
5
6
|
value: true
|
6
7
|
});
|
7
8
|
exports.isString = exports.isNumber = exports.formatMs = exports.easing = exports.duration = exports.default = void 0;
|
9
|
+
|
8
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
11
|
+
|
9
12
|
var _warning = _interopRequireDefault(require("warning"));
|
13
|
+
|
10
14
|
/* eslint-disable no-param-reassign */
|
11
|
-
/* eslint-disable no-restricted-globals */
|
12
15
|
|
16
|
+
/* eslint-disable no-restricted-globals */
|
13
17
|
// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
|
14
18
|
// to learn the context in which each easing should be used.
|
15
|
-
var easing =
|
19
|
+
var easing = {
|
16
20
|
// This is the most common easing curve.
|
17
21
|
easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',
|
18
22
|
// Objects enter the screen at full velocity from off-screen and
|
@@ -22,11 +26,11 @@ var easing = exports.easing = {
|
|
22
26
|
easeIn: 'cubic-bezier(0.4, 0, 1, 1)',
|
23
27
|
// The sharp curve is used by objects that may return to the screen at any time.
|
24
28
|
sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'
|
25
|
-
};
|
26
|
-
|
27
|
-
// Follow https://material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations
|
29
|
+
}; // Follow https://material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations
|
28
30
|
// to learn when use what timing
|
29
|
-
|
31
|
+
|
32
|
+
exports.easing = easing;
|
33
|
+
var duration = {
|
30
34
|
shortest: 150,
|
31
35
|
shorter: 200,
|
32
36
|
short: 250,
|
@@ -39,16 +43,23 @@ var duration = exports.duration = {
|
|
39
43
|
// recommended when something is leaving screen
|
40
44
|
leavingScreen: 195
|
41
45
|
};
|
42
|
-
|
46
|
+
exports.duration = duration;
|
47
|
+
|
48
|
+
var formatMs = function formatMs(milliseconds) {
|
43
49
|
return "".concat(Math.round(milliseconds), "ms");
|
44
50
|
};
|
45
|
-
|
51
|
+
|
52
|
+
exports.formatMs = formatMs;
|
53
|
+
|
54
|
+
var isString = function isString(value) {
|
46
55
|
return typeof value === 'string';
|
47
56
|
};
|
48
|
-
|
57
|
+
|
58
|
+
exports.isString = isString;
|
59
|
+
|
60
|
+
var isNumber = function isNumber(value) {
|
49
61
|
return !isNaN(parseFloat(value));
|
50
62
|
};
|
51
|
-
|
52
63
|
/**
|
53
64
|
* @param {string|Array} props
|
54
65
|
* @param {object} param
|
@@ -57,19 +68,22 @@ var isNumber = exports.isNumber = function isNumber(value) {
|
|
57
68
|
* @param {string} param.easing
|
58
69
|
* @param {number} param.delay
|
59
70
|
*/
|
60
|
-
|
71
|
+
|
72
|
+
|
73
|
+
exports.isNumber = isNumber;
|
74
|
+
var _default = {
|
61
75
|
easing: easing,
|
62
76
|
duration: duration,
|
63
77
|
create: function create() {
|
64
78
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['all'];
|
65
79
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
66
80
|
var _options$duration = options.duration,
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
81
|
+
durationOption = _options$duration === void 0 ? duration.standard : _options$duration,
|
82
|
+
_options$easing = options.easing,
|
83
|
+
easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing,
|
84
|
+
_options$delay = options.delay,
|
85
|
+
delay = _options$delay === void 0 ? 0 : _options$delay,
|
86
|
+
other = (0, _objectWithoutProperties2.default)(options, ["duration", "easing", "delay"]);
|
73
87
|
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;
|
74
88
|
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;
|
75
89
|
process.env.NODE_ENV !== "production" ? (0, _warning.default)(isString(easingOption), 'Material-UI: argument "easing" must be a string.') : void 0;
|
@@ -83,9 +97,10 @@ var _default = exports.default = {
|
|
83
97
|
if (!height) {
|
84
98
|
return 0;
|
85
99
|
}
|
86
|
-
var constant = height / 36;
|
87
100
|
|
88
|
-
// https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10
|
101
|
+
var constant = height / 36; // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10
|
102
|
+
|
89
103
|
return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);
|
90
104
|
}
|
91
|
-
};
|
105
|
+
};
|
106
|
+
exports.default = _default;
|
package/styles/withStyles.js
CHANGED
@@ -1,21 +1,28 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
5
6
|
value: true
|
6
7
|
});
|
7
8
|
exports.default = void 0;
|
9
|
+
|
8
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
11
|
+
|
9
12
|
var _withStyles = _interopRequireDefault(require("@mui/styles/withStyles"));
|
13
|
+
|
10
14
|
var _theme = _interopRequireDefault(require("../theme"));
|
15
|
+
|
11
16
|
/**
|
12
17
|
* Override makeStyles hook to use HMUI theme as default
|
13
18
|
* @param createStyles
|
14
19
|
* @param options
|
15
20
|
* @returns {StylesHook<Styles<Theme, {}, string>>}
|
16
21
|
*/
|
17
|
-
var _default =
|
22
|
+
var _default = function _default(styles, options) {
|
18
23
|
return (0, _withStyles.default)(styles, (0, _objectSpread2.default)({
|
19
24
|
defaultTheme: _theme.default
|
20
25
|
}, options));
|
21
|
-
};
|
26
|
+
};
|
27
|
+
|
28
|
+
exports.default = _default;
|
package/styles/zIndex.js
CHANGED
@@ -1,34 +1,44 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
5
6
|
value: true
|
6
7
|
});
|
7
8
|
exports.default = createMount;
|
9
|
+
|
8
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
11
|
+
|
9
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
13
|
+
|
10
14
|
var _reactDom = require("react-dom");
|
15
|
+
|
11
16
|
var _enzyme = require("enzyme");
|
17
|
+
|
12
18
|
// Generate an enhanced mount function.
|
13
19
|
function createMount() {
|
14
20
|
var options1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
15
21
|
var _options1$mount = options1.mount,
|
16
|
-
|
17
|
-
|
22
|
+
mount = _options1$mount === void 0 ? _enzyme.mount : _options1$mount,
|
23
|
+
other1 = (0, _objectWithoutProperties2.default)(options1, ["mount"]);
|
18
24
|
var attachTo = window.document.createElement('div');
|
19
25
|
attachTo.className = 'app';
|
20
26
|
attachTo.setAttribute('id', 'app');
|
21
27
|
window.document.body.insertBefore(attachTo, window.document.body.firstChild);
|
28
|
+
|
22
29
|
var mountWithContext = function mountWithContext(node) {
|
23
30
|
var options2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
24
31
|
return mount(node, (0, _objectSpread2.default)({
|
25
32
|
attachTo: attachTo
|
26
33
|
}, other1, {}, options2));
|
27
34
|
};
|
35
|
+
|
28
36
|
mountWithContext.attachTo = attachTo;
|
37
|
+
|
29
38
|
mountWithContext.cleanUp = function () {
|
30
39
|
(0, _reactDom.unmountComponentAtNode)(attachTo);
|
31
40
|
attachTo.parentNode.removeChild(attachTo);
|
32
41
|
};
|
42
|
+
|
33
43
|
return mountWithContext;
|
34
44
|
}
|
@@ -1,22 +1,29 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
5
6
|
value: true
|
6
7
|
});
|
7
8
|
exports.default = createRender;
|
9
|
+
|
8
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
11
|
+
|
9
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
13
|
+
|
10
14
|
var _enzyme = require("enzyme");
|
15
|
+
|
11
16
|
// Generate a render to string function.
|
12
17
|
function createRender() {
|
13
18
|
var options1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
14
19
|
var _options1$render = options1.render,
|
15
|
-
|
16
|
-
|
20
|
+
render = _options1$render === void 0 ? _enzyme.render : _options1$render,
|
21
|
+
other1 = (0, _objectWithoutProperties2.default)(options1, ["render"]);
|
22
|
+
|
17
23
|
var renderWithContext = function renderWithContext(node) {
|
18
24
|
var options2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
19
25
|
return render(node, (0, _objectSpread2.default)({}, other1, {}, options2));
|
20
26
|
};
|
27
|
+
|
21
28
|
return renderWithContext;
|
22
29
|
}
|
@@ -1,37 +1,48 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
5
6
|
value: true
|
6
7
|
});
|
7
8
|
exports.default = createShallow;
|
9
|
+
|
8
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
11
|
+
|
9
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
13
|
+
|
10
14
|
var _enzyme = require("enzyme");
|
15
|
+
|
11
16
|
var _until = _interopRequireDefault(require("./until"));
|
17
|
+
|
12
18
|
// Generate an enhanced shallow function.
|
13
19
|
function createShallow() {
|
14
20
|
var options1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
15
21
|
var _options1$shallow = options1.shallow,
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
+
shallow = _options1$shallow === void 0 ? _enzyme.shallow : _options1$shallow,
|
23
|
+
_options1$dive = options1.dive,
|
24
|
+
dive = _options1$dive === void 0 ? false : _options1$dive,
|
25
|
+
_options1$untilSelect = options1.untilSelector,
|
26
|
+
untilSelector = _options1$untilSelect === void 0 ? false : _options1$untilSelect,
|
27
|
+
other1 = (0, _objectWithoutProperties2.default)(options1, ["shallow", "dive", "untilSelector"]);
|
28
|
+
|
22
29
|
var shallowWithContext = function shallowWithContext(node) {
|
23
30
|
var options2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
24
31
|
var options = (0, _objectSpread2.default)({}, other1, {}, options2, {
|
25
32
|
context: (0, _objectSpread2.default)({}, other1.context, {}, options2.context)
|
26
33
|
});
|
27
34
|
var wrapper = shallow(node, options);
|
35
|
+
|
28
36
|
if (dive) {
|
29
37
|
return wrapper.dive();
|
30
38
|
}
|
39
|
+
|
31
40
|
if (untilSelector) {
|
32
41
|
return _until.default.call(wrapper, untilSelector, options);
|
33
42
|
}
|
43
|
+
|
34
44
|
return wrapper;
|
35
45
|
};
|
46
|
+
|
36
47
|
return shallowWithContext;
|
37
48
|
}
|
package/test-utils/getClasses.js
CHANGED
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.default = void 0;
|
7
|
+
|
7
8
|
var _testUtils = require("@mui/material/test-utils");
|
9
|
+
|
8
10
|
// Helper function to extract the classes from a styleSheet.
|
9
|
-
var _default =
|
11
|
+
var _default = _testUtils.getClasses;
|
12
|
+
exports.default = _default;
|
package/test-utils/index.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
5
6
|
value: true
|
6
7
|
});
|
@@ -34,8 +35,13 @@ Object.defineProperty(exports, "unwrap", {
|
|
34
35
|
return _unwrap.default;
|
35
36
|
}
|
36
37
|
});
|
38
|
+
|
37
39
|
var _createShallow = _interopRequireDefault(require("./createShallow"));
|
40
|
+
|
38
41
|
var _createMount = _interopRequireDefault(require("./createMount"));
|
42
|
+
|
39
43
|
var _createRender = _interopRequireDefault(require("./createRender"));
|
44
|
+
|
40
45
|
var _getClasses = _interopRequireDefault(require("./getClasses"));
|
46
|
+
|
41
47
|
var _unwrap = _interopRequireDefault(require("./unwrap"));
|
package/test-utils/until.js
CHANGED
@@ -1,36 +1,47 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
5
6
|
value: true
|
6
7
|
});
|
7
8
|
exports.default = until;
|
9
|
+
|
8
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
11
|
+
|
9
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
13
|
+
|
10
14
|
function shallowRecursively(wrapper, selector, _ref) {
|
11
15
|
var context = _ref.context,
|
12
|
-
|
16
|
+
other = (0, _objectWithoutProperties2.default)(_ref, ["context"]);
|
17
|
+
|
13
18
|
if (wrapper.isEmptyRender() || typeof wrapper.getElement().type === 'string') {
|
14
19
|
return wrapper;
|
15
20
|
}
|
21
|
+
|
16
22
|
var newContext = context;
|
17
|
-
var instance = wrapper.root().instance();
|
18
|
-
|
23
|
+
var instance = wrapper.root().instance(); // The instance can be null with a stateless functional component and react >= 16.
|
24
|
+
|
19
25
|
if (instance && instance.getChildContext) {
|
20
26
|
newContext = (0, _objectSpread2.default)({}, context, {}, instance.getChildContext());
|
21
27
|
}
|
28
|
+
|
22
29
|
var nextWrapper = wrapper.shallow((0, _objectSpread2.default)({
|
23
30
|
context: newContext
|
24
31
|
}, other));
|
32
|
+
|
25
33
|
if (selector && wrapper.is(selector)) {
|
26
34
|
return nextWrapper;
|
27
35
|
}
|
36
|
+
|
28
37
|
return shallowRecursively(nextWrapper, selector, {
|
29
38
|
context: newContext
|
30
39
|
});
|
31
40
|
}
|
41
|
+
|
32
42
|
function until(selector) {
|
33
43
|
var _this = this;
|
44
|
+
|
34
45
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
35
46
|
return this.single('until', function () {
|
36
47
|
return shallowRecursively(_this, selector, options);
|
package/test-utils/unwrap.js
CHANGED
package/theme/palette.js
CHANGED
@@ -1,13 +1,17 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
5
6
|
value: true
|
6
7
|
});
|
7
8
|
exports.palette = void 0;
|
9
|
+
|
8
10
|
var _colors = require("@mui/material/colors");
|
11
|
+
|
9
12
|
var _common = _interopRequireDefault(require("@mui/material/colors/common"));
|
10
|
-
|
13
|
+
|
14
|
+
var palette = {
|
11
15
|
primary: {
|
12
16
|
light: '#5bc8ef',
|
13
17
|
main: '#00ade9',
|
@@ -98,4 +102,5 @@ var palette = exports.palette = {
|
|
98
102
|
paper: _common.default.white,
|
99
103
|
default: _colors.grey[50]
|
100
104
|
}
|
101
|
-
};
|
105
|
+
};
|
106
|
+
exports.palette = palette;
|
package/theme/typography.js
CHANGED
@@ -4,25 +4,32 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.typography = void 0;
|
7
|
+
|
7
8
|
var _require = require("./palette"),
|
8
|
-
|
9
|
-
|
10
|
-
// The default font size of the Material Specification.
|
9
|
+
palette = _require.palette;
|
10
|
+
|
11
|
+
var fontFamily = '"Roboto", "Helvetica", "Arial", sans-serif'; // The default font size of the Material Specification.
|
12
|
+
|
11
13
|
var fontSize = 14; // px
|
14
|
+
|
12
15
|
var fontWeightLight = 300;
|
13
16
|
var fontWeightRegular = 400;
|
14
|
-
var fontWeightMedium = 500;
|
15
|
-
// Tell Material-UI what's the font-size on the html element.
|
17
|
+
var fontWeightMedium = 500; // Tell Material-UI what's the font-size on the html element.
|
16
18
|
// 16px is the default font-size used by browsers.
|
19
|
+
|
17
20
|
var htmlFontSize = 16;
|
21
|
+
|
18
22
|
var round = function round(value) {
|
19
23
|
return Math.round(value * 1e5) / 1e5;
|
20
24
|
};
|
25
|
+
|
21
26
|
var coef = fontSize / 14;
|
27
|
+
|
22
28
|
var pxToRem = function pxToRem(value) {
|
23
29
|
return "".concat(value / htmlFontSize * coef, "rem");
|
24
30
|
};
|
25
|
-
|
31
|
+
|
32
|
+
var typography = {
|
26
33
|
pxToRem: pxToRem,
|
27
34
|
round: round,
|
28
35
|
fontFamily: fontFamily,
|
@@ -159,4 +166,5 @@ var typography = exports.typography = {
|
|
159
166
|
fontFamily: fontFamily,
|
160
167
|
color: palette.text.primary
|
161
168
|
}
|
162
|
-
};
|
169
|
+
};
|
170
|
+
exports.typography = typography;
|
package/theme.js
CHANGED
@@ -4,11 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.default = void 0;
|
7
|
+
|
7
8
|
var _styles = require("@mui/material/styles");
|
9
|
+
|
8
10
|
var _palette = require("./theme/palette");
|
11
|
+
|
9
12
|
var _typography = require("./theme/typography");
|
10
|
-
|
13
|
+
|
14
|
+
var _default = (0, _styles.createTheme)((0, _styles.adaptV4Theme)({
|
11
15
|
palette: _palette.palette,
|
12
16
|
typography: _typography.typography,
|
13
17
|
spacing: 4
|
14
|
-
}));
|
18
|
+
}));
|
19
|
+
|
20
|
+
exports.default = _default;
|
package/transitions/utils.js
CHANGED
@@ -5,13 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.getTransitionProps = getTransitionProps;
|
7
7
|
exports.reflow = void 0;
|
8
|
-
|
8
|
+
|
9
|
+
var reflow = function reflow(node) {
|
9
10
|
return node.scrollTop;
|
10
11
|
};
|
12
|
+
|
13
|
+
exports.reflow = reflow;
|
14
|
+
|
11
15
|
function getTransitionProps(props, options) {
|
12
16
|
var timeout = props.timeout,
|
13
|
-
|
14
|
-
|
17
|
+
_props$style = props.style,
|
18
|
+
style = _props$style === void 0 ? {} : _props$style;
|
15
19
|
return {
|
16
20
|
duration: style.transitionDuration || typeof timeout === 'number' ? timeout : timeout[options.mode],
|
17
21
|
delay: style.transitionDelay
|
package/utils/exactProp.js
CHANGED
@@ -1,33 +1,43 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
5
6
|
value: true
|
6
7
|
});
|
7
8
|
exports.specialProperty = exports.default = void 0;
|
9
|
+
|
8
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
11
|
+
|
9
12
|
var _objectSpread3 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
13
|
+
|
10
14
|
// This module is based on https://github.com/airbnb/prop-types-exact repository.
|
11
15
|
// However, in order to reduce the number of dependencies and to remove some extra safe checks
|
12
16
|
// the module was forked.
|
13
|
-
|
14
17
|
// Only exported for test purposes.
|
15
|
-
var specialProperty =
|
18
|
+
var specialProperty = "exact-prop: \u200B";
|
19
|
+
exports.specialProperty = specialProperty;
|
20
|
+
|
16
21
|
function exactProp(propTypes) {
|
17
22
|
/* istanbul ignore if */
|
18
23
|
if (process.env.NODE_ENV === 'production') {
|
19
24
|
return propTypes;
|
20
25
|
}
|
26
|
+
|
21
27
|
return (0, _objectSpread3.default)({}, propTypes, (0, _defineProperty2.default)({}, specialProperty, function (props) {
|
22
28
|
var unsupportedProps = Object.keys(props).filter(function (prop) {
|
23
29
|
return !propTypes.hasOwnProperty(prop);
|
24
30
|
});
|
31
|
+
|
25
32
|
if (unsupportedProps.length > 0) {
|
26
33
|
return new Error("The following properties are not supported: ".concat(unsupportedProps.map(function (prop) {
|
27
34
|
return "`".concat(prop, "`");
|
28
35
|
}).join(', '), ". Please remove them."));
|
29
36
|
}
|
37
|
+
|
30
38
|
return null;
|
31
39
|
}));
|
32
40
|
}
|
33
|
-
|
41
|
+
|
42
|
+
var _default = exactProp;
|
43
|
+
exports.default = _default;
|