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