@hipay/hipay-material-ui 3.15.2 → 3.15.3-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- 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 +11 -42
- package/HiAppBar/index.js +0 -2
- package/HiAvatar/HiAvatar.js +3 -12
- package/HiAvatar/index.js +0 -2
- package/HiBadge/HiBadge.js +17 -33
- package/HiBadge/index.js +0 -2
- package/HiBreadcrumb/HiBreadcrumb.js +6 -30
- package/HiBreadcrumb/HiStep.js +13 -45
- package/HiBreadcrumb/HiStepConnector.js +15 -50
- package/HiBreadcrumb/HiStepContent.js +6 -30
- package/HiBreadcrumb/HiStepIcon.js +17 -42
- package/HiBreadcrumb/HiStepLabel.js +17 -47
- package/HiBreadcrumb/HiStepper.js +6 -30
- package/HiBreadcrumb/index.js +0 -2
- package/HiButton/HiButton.js +12 -37
- package/HiButton/index.js +1 -5
- package/HiCell/CellAddress.js +12 -33
- package/HiCell/CellDate.js +10 -36
- package/HiCell/CellHiddenContent.js +8 -30
- package/HiCell/CellIcon.js +12 -36
- package/HiCell/CellImage.js +12 -34
- package/HiCell/CellNumeric.js +13 -40
- package/HiCell/CellPinToAction.js +9 -33
- package/HiCell/CellRate.js +17 -51
- package/HiCell/CellSentinel.js +12 -33
- package/HiCell/CellSentinelScore.js +9 -31
- package/HiCell/CellText.js +16 -52
- package/HiCell/CellTextStyled.js +13 -24
- package/HiCell/index.js +0 -10
- package/HiCheckbox/HiCheckbox.js +19 -56
- package/HiCheckbox/index.js +0 -2
- package/HiChip/HiChip.js +24 -47
- package/HiChip/HiChipSwitch.js +16 -59
- package/HiChip/index.js +0 -3
- package/HiColoredLabel/HiColoredLabel.js +47 -69
- package/HiColoredLabel/index.js +0 -2
- package/HiDatePicker/Caption.js +9 -21
- package/HiDatePicker/HiDatePicker.js +16 -88
- package/HiDatePicker/HiDatePickerMobile.js +18 -43
- package/HiDatePicker/HiDateRangePicker.js +38 -134
- package/HiDatePicker/HiDateRangeSelector.js +49 -130
- package/HiDatePicker/ListPicker.js +8 -38
- 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 +4 -26
- package/HiDatePicker/Overlays/Overlay.js +8 -25
- package/HiDatePicker/Overlays/TimePickerOverlay.js +8 -39
- package/HiDatePicker/Overlays/YearPickerOverlay.js +8 -31
- 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 +7 -13
- package/HiDialog/HiDialog.js +7 -19
- package/HiDialog/index.js +0 -2
- package/HiDotsStepper/HiDot.js +9 -38
- package/HiDotsStepper/HiDotsStepper.js +10 -37
- package/HiDotsStepper/index.js +0 -3
- package/HiExpansionPanel/HiExpansionPanel.js +16 -38
- package/HiExpansionPanel/index.js +1 -5
- package/HiForm/HiAddressField.js +10 -36
- package/HiForm/HiEmailField.js +5 -29
- package/HiForm/HiFormControl.js +31 -77
- package/HiForm/HiFormLabel.js +16 -42
- package/HiForm/HiInput.js +34 -92
- package/HiForm/HiPasswordField.js +8 -36
- package/HiForm/HiSearchField.js +3 -34
- package/HiForm/HiSlider.js +22 -57
- package/HiForm/HiTextField.js +22 -47
- package/HiForm/HiUpload.js +35 -95
- package/HiForm/HiUploadField.js +10 -32
- package/HiForm/HiUploadInput.js +24 -77
- package/HiForm/index.js +0 -12
- package/HiIcon/HiIcon.js +9 -34
- package/HiIcon/index.js +0 -2
- package/HiIconButton/HiIconButton.js +7 -22
- package/HiIconButton/index.js +0 -2
- package/HiListItemLink/HiListItemLink.js +7 -19
- package/HiListItemLink/index.js +0 -2
- package/HiLoader/HiLoader.js +6 -16
- package/HiLoader/index.js +0 -2
- package/HiNotice/HiKPI.js +17 -48
- 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 +24 -57
- package/HiPdfReader/index.js +0 -2
- package/HiPin/HiPin.js +16 -28
- package/HiPin/index.js +0 -2
- package/HiRadio/HiRadio.js +12 -23
- package/HiRadio/index.js +0 -2
- package/HiScrollStepper/HiScrollStepper.js +29 -67
- package/HiScrollStepper/index.js +0 -2
- package/HiSelect/HiDynamicSelect.js +32 -42
- package/HiSelect/HiDynamicSelectField.js +24 -48
- package/HiSelect/HiNestedSelect.js +65 -111
- package/HiSelect/HiNestedSelectContent.js +60 -86
- package/HiSelect/HiNestedSelectField.js +24 -48
- package/HiSelect/HiSelect.js +89 -187
- package/HiSelect/HiSelectContent.js +62 -97
- package/HiSelect/HiSelectField.js +25 -49
- package/HiSelect/HiSelectInput.js +24 -77
- package/HiSelect/HiSelectMobile.js +7 -44
- package/HiSelect/HiSuggestSelect.js +25 -81
- package/HiSelect/HiSuggestSelectField.js +15 -39
- package/HiSelect/index.js +2 -14
- package/HiSelectableList/HiSelectableList.js +34 -90
- package/HiSelectableList/HiSelectableListHierarchic.js +34 -60
- package/HiSelectableList/HiSelectableListItem.js +45 -88
- package/HiSelectableList/index.js +0 -4
- package/HiStepper/DefaultIndicator.js +1 -10
- package/HiStepper/HiStep.js +21 -51
- package/HiStepper/HiStepper.js +2 -15
- package/HiStepper/index.js +0 -3
- package/HiSwitch/HiSwitch.js +19 -43
- package/HiSwitch/HiSwitchState.js +22 -39
- package/HiSwitch/index.js +0 -3
- package/HiTable/HiCellBuilder.js +10 -65
- package/HiTable/HiTable.js +20 -48
- package/HiTable/HiTableBody.js +7 -24
- package/HiTable/HiTableHeader.js +18 -51
- package/HiTable/HiTableRow.js +12 -46
- 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 +11 -42
- 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 +17 -33
- package/es/HiBadge/index.js +0 -2
- package/es/HiBreadcrumb/HiBreadcrumb.js +6 -30
- package/es/HiBreadcrumb/HiStep.js +13 -45
- package/es/HiBreadcrumb/HiStepConnector.js +15 -50
- package/es/HiBreadcrumb/HiStepContent.js +6 -30
- package/es/HiBreadcrumb/HiStepIcon.js +17 -42
- package/es/HiBreadcrumb/HiStepLabel.js +17 -47
- package/es/HiBreadcrumb/HiStepper.js +6 -30
- package/es/HiBreadcrumb/index.js +0 -2
- package/es/HiButton/HiButton.js +12 -37
- package/es/HiButton/index.js +1 -5
- package/es/HiCell/CellAddress.js +12 -33
- package/es/HiCell/CellDate.js +10 -36
- package/es/HiCell/CellHiddenContent.js +8 -30
- package/es/HiCell/CellIcon.js +12 -36
- package/es/HiCell/CellImage.js +12 -34
- package/es/HiCell/CellNumeric.js +13 -40
- package/es/HiCell/CellPinToAction.js +9 -33
- package/es/HiCell/CellRate.js +17 -51
- package/es/HiCell/CellSentinel.js +12 -33
- package/es/HiCell/CellSentinelScore.js +9 -31
- package/es/HiCell/CellText.js +16 -52
- package/es/HiCell/CellTextStyled.js +13 -24
- package/es/HiCell/index.js +0 -10
- package/es/HiCheckbox/HiCheckbox.js +19 -56
- package/es/HiCheckbox/index.js +0 -2
- package/es/HiChip/HiChip.js +24 -47
- package/es/HiChip/HiChipSwitch.js +16 -59
- package/es/HiChip/index.js +0 -3
- package/es/HiColoredLabel/HiColoredLabel.js +47 -69
- package/es/HiColoredLabel/index.js +0 -2
- package/es/HiDatePicker/Caption.js +9 -21
- package/es/HiDatePicker/HiDatePicker.js +16 -88
- package/es/HiDatePicker/HiDatePickerMobile.js +18 -43
- package/es/HiDatePicker/HiDateRangePicker.js +38 -134
- package/es/HiDatePicker/HiDateRangeSelector.js +49 -130
- package/es/HiDatePicker/ListPicker.js +8 -38
- 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 +4 -26
- package/es/HiDatePicker/Overlays/Overlay.js +8 -25
- package/es/HiDatePicker/Overlays/TimePickerOverlay.js +8 -39
- package/es/HiDatePicker/Overlays/YearPickerOverlay.js +8 -31
- 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 +7 -13
- package/es/HiDialog/HiDialog.js +7 -19
- package/es/HiDialog/index.js +0 -2
- package/es/HiDotsStepper/HiDot.js +9 -38
- package/es/HiDotsStepper/HiDotsStepper.js +10 -37
- 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 +10 -36
- package/es/HiForm/HiEmailField.js +5 -29
- package/es/HiForm/HiFormControl.js +31 -77
- package/es/HiForm/HiFormLabel.js +16 -42
- package/es/HiForm/HiInput.js +34 -92
- package/es/HiForm/HiPasswordField.js +8 -36
- package/es/HiForm/HiSearchField.js +3 -34
- package/es/HiForm/HiSlider.js +22 -57
- package/es/HiForm/HiTextField.js +22 -47
- package/es/HiForm/HiUpload.js +35 -95
- package/es/HiForm/HiUploadField.js +10 -32
- package/es/HiForm/HiUploadInput.js +24 -77
- 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 +7 -22
- package/es/HiIconButton/index.js +0 -2
- package/es/HiListItemLink/HiListItemLink.js +7 -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 +17 -48
- 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 +24 -57
- package/es/HiPdfReader/index.js +0 -2
- package/es/HiPin/HiPin.js +16 -28
- package/es/HiPin/index.js +0 -2
- package/es/HiRadio/HiRadio.js +12 -23
- 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 +32 -42
- package/es/HiSelect/HiDynamicSelectField.js +24 -48
- package/es/HiSelect/HiNestedSelect.js +65 -111
- package/es/HiSelect/HiNestedSelectContent.js +60 -86
- package/es/HiSelect/HiNestedSelectField.js +24 -48
- package/es/HiSelect/HiSelect.js +89 -187
- package/es/HiSelect/HiSelectContent.js +62 -97
- package/es/HiSelect/HiSelectField.js +25 -49
- package/es/HiSelect/HiSelectInput.js +24 -77
- package/es/HiSelect/HiSelectMobile.js +7 -44
- package/es/HiSelect/HiSuggestSelect.js +25 -81
- package/es/HiSelect/HiSuggestSelectField.js +15 -39
- package/es/HiSelect/index.js +2 -14
- package/es/HiSelectableList/HiSelectableList.js +34 -90
- package/es/HiSelectableList/HiSelectableListHierarchic.js +34 -60
- package/es/HiSelectableList/HiSelectableListItem.js +45 -88
- package/es/HiSelectableList/index.js +0 -4
- package/es/HiStepper/DefaultIndicator.js +1 -10
- package/es/HiStepper/HiStep.js +21 -51
- package/es/HiStepper/HiStepper.js +2 -15
- package/es/HiStepper/index.js +0 -3
- package/es/HiSwitch/HiSwitch.js +19 -43
- package/es/HiSwitch/HiSwitchState.js +22 -39
- package/es/HiSwitch/index.js +0 -3
- package/es/HiTable/HiCellBuilder.js +10 -65
- package/es/HiTable/HiTable.js +20 -48
- package/es/HiTable/HiTableBody.js +7 -24
- package/es/HiTable/HiTableHeader.js +18 -51
- package/es/HiTable/HiTableRow.js +12 -46
- 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 +15 -49
- 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 +67 -89
- package/es/styles/createStyles.js +0 -1
- package/es/styles/createTypography.js +15 -24
- package/es/styles/getStylesCreator.js +1 -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 +15 -49
- 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 +67 -89
- package/styles/createStyles.js +0 -1
- package/styles/createTypography.js +15 -24
- package/styles/getStylesCreator.js +1 -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/es/test-utils/unwrap.js
CHANGED
package/es/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/es/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/es/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/es/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/es/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;
|
package/es/utils/helpers.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
|
});
|
@@ -19,37 +18,30 @@ exports.formatNumber = formatNumber;
|
|
19
18
|
exports.formatRate = formatRate;
|
20
19
|
exports.getNextItemSelectable = getNextItemSelectable;
|
21
20
|
exports.uniqueId = uniqueId;
|
22
|
-
|
23
21
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
|
24
|
-
|
25
22
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/typeof"));
|
26
|
-
|
27
23
|
var _warning = _interopRequireDefault(require("warning"));
|
28
|
-
|
29
24
|
function camelize(string) {
|
30
25
|
string = string.replace(/(_\w)/g, function (m) {
|
31
26
|
return m[1].toUpperCase();
|
32
27
|
});
|
33
28
|
return string.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g, function (match, index) {
|
34
29
|
if (+match === 0) return ''; // or if (/\s+/.test(match)) for white spaces
|
35
|
-
|
36
30
|
return index === 0 ? match.toLowerCase() : match.toUpperCase();
|
37
31
|
});
|
38
32
|
}
|
39
|
-
|
40
33
|
function capitalize(string) {
|
41
34
|
if (process.env.NODE_ENV !== 'production' && typeof string !== 'string') {
|
42
35
|
throw new Error('Material-UI: capitalize(string) expects a string argument.');
|
43
36
|
}
|
44
|
-
|
45
37
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
46
38
|
}
|
47
|
-
|
48
39
|
function contains(obj, pred) {
|
49
40
|
return Object.keys(pred).every(function (key) {
|
50
41
|
return obj.hasOwnProperty(key) && obj[key] === pred[key];
|
51
42
|
});
|
52
43
|
}
|
44
|
+
|
53
45
|
/**
|
54
46
|
* Echappe les caractères HTML d'une chaîne de catactères
|
55
47
|
* Sauf la balise <strong>, <br>, and <a>
|
@@ -57,36 +49,29 @@ function contains(obj, pred) {
|
|
57
49
|
* @param unsafeStr
|
58
50
|
* @returns {*}
|
59
51
|
*/
|
60
|
-
|
61
|
-
|
62
52
|
function escapeHTML(unsafeStr) {
|
63
53
|
return unsafeStr.replace(/<br\/?>/g, '[br]').replace(/<strong>/g, '[[').replace(/<\/?strong>/g, ']]').replace(/<a(?: (.*?)=[\"\'](.*?)[\"\'])(?: (.*?)=[\"\'](.*?)[\"\'])?>(.*?)<\/a>/g, '[a::$1::$2::$3::$4]$5[a]').replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, ''').replace(/\[a::(.*?)::(.*?)::(.*?)::(.*?)\](.*?)\[a\]/g, '<a $1=$2 $3=$4>$5</a>').replace(/\[\[/g, '<strong>').replace(/\]\]/g, '</strong>').replace(/\[br\]/g, '<br>');
|
64
54
|
}
|
65
|
-
|
66
55
|
function findIndex(arr, pred) {
|
67
56
|
var predType = (0, _typeof2.default)(pred);
|
68
|
-
|
69
57
|
for (var i = 0; i < arr.length; i += 1) {
|
70
58
|
if (predType === 'function' && !!pred(arr[i], i, arr) === true) {
|
71
59
|
return i;
|
72
60
|
}
|
73
|
-
|
74
61
|
if (predType === 'object' && contains(arr[i], pred)) {
|
75
62
|
return i;
|
76
63
|
}
|
77
|
-
|
78
64
|
if (['string', 'number', 'boolean'].indexOf(predType) !== -1) {
|
79
65
|
return arr.indexOf(pred);
|
80
66
|
}
|
81
67
|
}
|
82
|
-
|
83
68
|
return -1;
|
84
69
|
}
|
85
|
-
|
86
70
|
function find(arr, pred) {
|
87
71
|
var index = findIndex(arr, pred);
|
88
72
|
return index > -1 ? arr[index] : undefined;
|
89
73
|
}
|
74
|
+
|
90
75
|
/**
|
91
76
|
* Safe chained function
|
92
77
|
*
|
@@ -96,29 +81,25 @@ function find(arr, pred) {
|
|
96
81
|
* @param {function} functions to chain
|
97
82
|
* @returns {function|null}
|
98
83
|
*/
|
99
|
-
|
100
|
-
|
101
84
|
function createChainedFunction() {
|
102
85
|
for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
|
103
86
|
funcs[_key] = arguments[_key];
|
104
87
|
}
|
105
|
-
|
106
88
|
return funcs.reduce(function (acc, func) {
|
107
89
|
if (func == null) {
|
108
90
|
return acc;
|
109
91
|
}
|
110
|
-
|
111
92
|
process.env.NODE_ENV !== "production" ? (0, _warning.default)(typeof func === 'function', 'Material-UI: invalid Argument Type, must only provide functions, undefined, or null.') : void 0;
|
112
93
|
return function chainedFunction() {
|
113
94
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
114
95
|
args[_key2] = arguments[_key2];
|
115
96
|
}
|
116
|
-
|
117
97
|
acc.apply(this, args);
|
118
98
|
func.apply(this, args);
|
119
99
|
};
|
120
100
|
}, function () {});
|
121
101
|
}
|
102
|
+
|
122
103
|
/**
|
123
104
|
* Remove duplicate items from array useful after concat arrays
|
124
105
|
*
|
@@ -126,19 +107,16 @@ function createChainedFunction() {
|
|
126
107
|
*
|
127
108
|
* @param array
|
128
109
|
*/
|
129
|
-
|
130
|
-
|
131
110
|
function arrayUnique(array) {
|
132
111
|
var a = (0, _toConsumableArray2.default)(array);
|
133
|
-
|
134
112
|
for (var i = 0; i < a.length; i + 1) {
|
135
113
|
for (var j = i + 1; j < a.length; j + 1) {
|
136
114
|
if (a[i] === a[j]) a.splice(j - 1, 1);
|
137
115
|
}
|
138
116
|
}
|
139
|
-
|
140
117
|
return a;
|
141
118
|
}
|
119
|
+
|
142
120
|
/**
|
143
121
|
* Format number relative to required size and locale
|
144
122
|
*
|
@@ -147,31 +125,26 @@ function arrayUnique(array) {
|
|
147
125
|
* @param locale
|
148
126
|
* @param precision
|
149
127
|
*/
|
150
|
-
|
151
|
-
|
152
128
|
function formatNumber(number) {
|
153
129
|
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'l';
|
154
130
|
var locale = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'en-EN';
|
155
131
|
var precision = arguments.length > 3 ? arguments[3] : undefined;
|
156
|
-
|
157
132
|
// Round number
|
158
133
|
switch (size) {
|
159
134
|
case 'm':
|
160
135
|
number = Math.round(number);
|
161
136
|
break;
|
162
|
-
|
163
137
|
case 's':
|
164
138
|
number = Math.round(number);
|
165
139
|
break;
|
166
|
-
|
167
140
|
case 'l':
|
168
141
|
default:
|
169
142
|
number = Math.round(number * 100) / 100;
|
170
143
|
break;
|
171
144
|
}
|
145
|
+
var effectivePrecision = Number.isInteger(precision) ? precision : size === 'l' ? 2 : 0;
|
172
146
|
|
173
|
-
|
174
|
-
|
147
|
+
// To locale
|
175
148
|
var options = {
|
176
149
|
minimumFractionDigits: effectivePrecision,
|
177
150
|
maximumFractionDigits: effectivePrecision,
|
@@ -179,6 +152,7 @@ function formatNumber(number) {
|
|
179
152
|
};
|
180
153
|
return number.toLocaleString(locale.replace(/_/g, '-'), options);
|
181
154
|
}
|
155
|
+
|
182
156
|
/**
|
183
157
|
* Format currency amount relative to required size, locale and currency
|
184
158
|
*
|
@@ -195,21 +169,18 @@ function formatNumber(number) {
|
|
195
169
|
* @param locale
|
196
170
|
* @param currency - ISO 4217
|
197
171
|
*/
|
198
|
-
|
199
|
-
|
200
172
|
function formatCurrencyAmount(amount) {
|
201
173
|
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'l';
|
202
174
|
var locale = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'en-EN';
|
203
175
|
var currency = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'EUR';
|
204
176
|
var precision = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
205
177
|
var value = amount;
|
206
|
-
var unit = '';
|
207
|
-
|
178
|
+
var unit = '';
|
179
|
+
// Round number
|
208
180
|
switch (size) {
|
209
181
|
case 'm':
|
210
182
|
value = Math.round(amount);
|
211
183
|
break;
|
212
|
-
|
213
184
|
case 's':
|
214
185
|
if (amount > 99999999) {
|
215
186
|
amount /= 1000000;
|
@@ -218,18 +189,16 @@ function formatCurrencyAmount(amount) {
|
|
218
189
|
amount /= 1000;
|
219
190
|
unit = 'k';
|
220
191
|
}
|
221
|
-
|
222
192
|
value = Math.round(amount);
|
223
193
|
break;
|
224
|
-
|
225
194
|
case 'l':
|
226
195
|
default:
|
227
196
|
value = Math.round(amount * 100) / 100;
|
228
197
|
break;
|
229
198
|
}
|
199
|
+
var effectivePrecision = Number.isInteger(precision) ? precision : size === 'l' ? 2 : 0;
|
230
200
|
|
231
|
-
|
232
|
-
|
201
|
+
// To locale
|
233
202
|
var options = {
|
234
203
|
minimumFractionDigits: effectivePrecision,
|
235
204
|
maximumFractionDigits: effectivePrecision,
|
@@ -238,16 +207,17 @@ function formatCurrencyAmount(amount) {
|
|
238
207
|
currency: currency,
|
239
208
|
currencyDisplay: 'symbol'
|
240
209
|
};
|
241
|
-
var returnValue = value.toLocaleString(locale.replace(/_/g, '-'), options);
|
210
|
+
var returnValue = value.toLocaleString(locale.replace(/_/g, '-'), options);
|
242
211
|
|
212
|
+
// Place unit (k, M) after number (don't move currency symbol !)
|
243
213
|
if (unit !== '') {
|
244
214
|
returnValue = returnValue.replace(/([\D]*)([\d,.\s]+)([\D]*)/, function (match, p1, p2, p3) {
|
245
215
|
return [p1, p2, unit, p3].join('');
|
246
216
|
});
|
247
217
|
}
|
248
|
-
|
249
218
|
return returnValue;
|
250
219
|
}
|
220
|
+
|
251
221
|
/**
|
252
222
|
* Format rate relative to required size and locale
|
253
223
|
* large/en-EN : 12.34
|
@@ -256,15 +226,14 @@ function formatCurrencyAmount(amount) {
|
|
256
226
|
* @param size
|
257
227
|
* @param locale
|
258
228
|
*/
|
259
|
-
|
260
|
-
|
261
229
|
function formatRate(rate) {
|
262
230
|
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'l';
|
263
231
|
var locale = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'en-EN';
|
264
232
|
var effectiveSize = 0;
|
265
233
|
if (size === 'l') effectiveSize = 2;
|
266
|
-
if (size === 'm') effectiveSize = 1;
|
234
|
+
if (size === 'm') effectiveSize = 1;
|
267
235
|
|
236
|
+
// To locale
|
268
237
|
var options = {
|
269
238
|
minimumFractionDigits: effectiveSize,
|
270
239
|
maximumFractionDigits: effectiveSize,
|
@@ -272,44 +241,37 @@ function formatRate(rate) {
|
|
272
241
|
};
|
273
242
|
return rate.toLocaleString(locale.replace(/_/g, '-'), options);
|
274
243
|
}
|
244
|
+
|
275
245
|
/**
|
276
246
|
* Retourne l'item selectionnable suivant.
|
277
247
|
* @param node
|
278
248
|
* @param direction
|
279
249
|
* @returns {*}
|
280
250
|
*/
|
281
|
-
|
282
|
-
|
283
251
|
function getNextItemSelectable(node, direction) {
|
284
252
|
if (direction === 'down') {
|
285
253
|
if (node.nextSibling === null) {
|
286
254
|
return null;
|
287
255
|
}
|
288
|
-
|
289
256
|
if (node.nextSibling.tabIndex === -1) {
|
290
257
|
return getNextItemSelectable(node.nextSibling, direction);
|
291
258
|
}
|
292
|
-
|
293
259
|
return node.nextSibling;
|
294
260
|
}
|
295
|
-
|
296
261
|
if (node.previousSibling === null) {
|
297
262
|
return null;
|
298
263
|
}
|
299
|
-
|
300
264
|
if (node.previousSibling.tabIndex === -1) {
|
301
265
|
return getNextItemSelectable(node.previousSibling, direction);
|
302
266
|
}
|
303
|
-
|
304
267
|
return node.previousSibling;
|
305
268
|
}
|
269
|
+
|
306
270
|
/**
|
307
271
|
* Retourne la chaîne de caractères passée en entrée sans les accents
|
308
272
|
* @param toFold
|
309
273
|
* @returns {*}
|
310
274
|
*/
|
311
|
-
|
312
|
-
|
313
275
|
function foldAccents(toFold) {
|
314
276
|
return toFold.replace(/([àáâãäå])|([ç])|([èéêë])|([ìíîï])|([ñ])|([òóôõöø])|([ß])|([ùúûü])|([ÿ])|([æ])|([œ])|([+])|([\\])|([[])|([\]])|([(])|([)])|([?])|([*])/g, function (str, a, c, e, i, n, o, s, u, y, ae, oe, plus, backSlash, lc, rc, lp, rp, interogation, star) {
|
315
277
|
if (a) return 'a';
|
@@ -334,12 +296,11 @@ function foldAccents(toFold) {
|
|
334
296
|
return str;
|
335
297
|
});
|
336
298
|
}
|
299
|
+
|
337
300
|
/**
|
338
301
|
* Generate a unique ID
|
339
302
|
* @returns {string}
|
340
303
|
*/
|
341
|
-
|
342
|
-
|
343
304
|
function uniqueId() {
|
344
305
|
return '_' + Math.random().toString(36).substr(2, 9);
|
345
306
|
}
|
@@ -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
|
});
|
@@ -11,5 +10,4 @@ Object.defineProperty(exports, "default", {
|
|
11
10
|
return _withMobileDialog.default;
|
12
11
|
}
|
13
12
|
});
|
14
|
-
|
15
13
|
var _withMobileDialog = _interopRequireDefault(require("./withMobileDialog"));
|
@@ -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 = void 0;
|
9
|
-
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
11
|
-
|
12
9
|
var _react = _interopRequireDefault(require("react"));
|
13
|
-
|
14
10
|
// FIXME checkout https://mui.com/components/use-media-query/#migrating-from-withwidth
|
15
11
|
var withWidth = function withWidth() {
|
16
12
|
return function (WrappedComponent) {
|
@@ -21,28 +17,23 @@ var withWidth = function withWidth() {
|
|
21
17
|
};
|
22
18
|
};
|
23
19
|
};
|
20
|
+
|
24
21
|
/**
|
25
22
|
* Dialog will responsively be full screen *at or below* the given breakpoint
|
26
23
|
* (defaults to 'sm' for mobile devices).
|
27
24
|
* Notice that this Higher-order Component is incompatible with server side rendering.
|
28
25
|
*/
|
29
|
-
|
30
|
-
|
31
26
|
var withMobileDialog = function withMobileDialog() {
|
32
27
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
33
28
|
return function (Component) {
|
34
29
|
var _options$breakpoint = options.breakpoint,
|
35
|
-
|
36
|
-
|
30
|
+
breakpoint = _options$breakpoint === void 0 ? 'sm' : _options$breakpoint;
|
37
31
|
function WithMobileDialog(props) {
|
38
32
|
return /*#__PURE__*/_react.default.createElement(Component, (0, _extends2.default)({
|
39
33
|
fullScreen: isWidthDown(breakpoint, props.width)
|
40
34
|
}, props));
|
41
35
|
}
|
42
|
-
|
43
36
|
return withWidth()(WithMobileDialog);
|
44
37
|
};
|
45
38
|
};
|
46
|
-
|
47
|
-
var _default = withMobileDialog;
|
48
|
-
exports.default = _default;
|
39
|
+
var _default = exports.default = withMobileDialog;
|
@@ -1,35 +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 = void 0;
|
9
|
-
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
11
|
-
|
12
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
13
|
-
|
14
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
15
|
-
|
16
11
|
var _react = _interopRequireDefault(require("react"));
|
17
|
-
|
18
12
|
var _pure = _interopRequireDefault(require("recompose/pure"));
|
19
|
-
|
20
13
|
var _Icon = _interopRequireDefault(require("@mui/material/Icon"));
|
21
|
-
|
22
14
|
var _styles = require("@mui/material/styles");
|
23
|
-
|
24
15
|
/**
|
25
16
|
* @ignore - internal component.
|
26
17
|
*/
|
27
18
|
var HiAccount = (0, _pure.default)(function (props) {
|
28
19
|
var theme = (0, _styles.useTheme)();
|
29
20
|
var _props$color = props.color,
|
30
|
-
|
31
|
-
|
32
|
-
|
21
|
+
color = _props$color === void 0 ? props.color || theme.palette.neutral.main : _props$color,
|
22
|
+
style = props.style,
|
23
|
+
other = (0, _objectWithoutProperties2.default)(props, ["color", "style"]);
|
33
24
|
return /*#__PURE__*/_react.default.createElement(_Icon.default, (0, _extends2.default)({
|
34
25
|
style: (0, _objectSpread2.default)({}, style, {
|
35
26
|
fontSize: props.size || 24
|
@@ -42,5 +33,4 @@ var HiAccount = (0, _pure.default)(function (props) {
|
|
42
33
|
})));
|
43
34
|
});
|
44
35
|
HiAccount.muiName = 'SvgIcon';
|
45
|
-
var _default = HiAccount;
|
46
|
-
exports.default = _default;
|
36
|
+
var _default = exports.default = HiAccount;
|
@@ -1,35 +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 = void 0;
|
9
|
-
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
11
|
-
|
12
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
13
|
-
|
14
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
15
|
-
|
16
11
|
var _react = _interopRequireDefault(require("react"));
|
17
|
-
|
18
12
|
var _pure = _interopRequireDefault(require("recompose/pure"));
|
19
|
-
|
20
13
|
var _Icon = _interopRequireDefault(require("@mui/material/Icon"));
|
21
|
-
|
22
14
|
var _styles = require("@mui/material/styles");
|
23
|
-
|
24
15
|
/**
|
25
16
|
* @ignore - internal component.
|
26
17
|
*/
|
27
18
|
var HiActivity = (0, _pure.default)(function (props) {
|
28
19
|
var theme = (0, _styles.useTheme)();
|
29
20
|
var _props$color = props.color,
|
30
|
-
|
31
|
-
|
32
|
-
|
21
|
+
color = _props$color === void 0 ? props.color || theme.palette.neutral.main : _props$color,
|
22
|
+
style = props.style,
|
23
|
+
other = (0, _objectWithoutProperties2.default)(props, ["color", "style"]);
|
33
24
|
return /*#__PURE__*/_react.default.createElement(_Icon.default, (0, _extends2.default)({
|
34
25
|
style: (0, _objectSpread2.default)({}, style, {
|
35
26
|
fontSize: props.size || 24
|
@@ -49,5 +40,4 @@ var HiActivity = (0, _pure.default)(function (props) {
|
|
49
40
|
}))));
|
50
41
|
});
|
51
42
|
HiActivity.muiName = 'SvgIcon';
|
52
|
-
var _default = HiActivity;
|
53
|
-
exports.default = _default;
|
43
|
+
var _default = exports.default = HiActivity;
|