@hipay/hipay-material-ui 4.0.1-beta3 → 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 +47 -15
- 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 +35 -10
- package/HiBreadcrumb/HiStep.js +50 -17
- package/HiBreadcrumb/HiStepConnector.js +55 -18
- package/HiBreadcrumb/HiStepContent.js +35 -10
- package/HiBreadcrumb/HiStepIcon.js +40 -14
- package/HiBreadcrumb/HiStepLabel.js +49 -18
- package/HiBreadcrumb/HiStepper.js +35 -10
- package/HiBreadcrumb/index.js +2 -0
- package/HiButton/HiButton.js +33 -8
- package/HiButton/index.js +5 -1
- package/HiCell/CellAddress.js +38 -16
- package/HiCell/CellDate.js +41 -14
- package/HiCell/CellHiddenContent.js +30 -8
- package/HiCell/CellIcon.js +41 -16
- package/HiCell/CellImage.js +39 -16
- package/HiCell/CellNumeric.js +45 -17
- package/HiCell/CellPinToAction.js +38 -13
- package/HiCell/CellRate.js +52 -17
- package/HiCell/CellSentinel.js +38 -16
- package/HiCell/CellSentinelScore.js +36 -13
- package/HiCell/CellText.js +58 -21
- package/HiCell/CellTextStyled.js +24 -13
- package/HiCell/index.js +10 -0
- package/HiCheckbox/HiCheckbox.js +57 -19
- package/HiCheckbox/index.js +2 -0
- package/HiChip/HiChip.js +47 -24
- package/HiChip/HiChipSwitch.js +65 -21
- 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 +93 -20
- package/HiDatePicker/HiDatePickerMobile.js +48 -22
- package/HiDatePicker/HiDateRangePicker.js +139 -42
- package/HiDatePicker/HiDateRangeSelector.js +135 -53
- package/HiDatePicker/ListPicker.js +43 -12
- 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 +32 -9
- package/HiDatePicker/Overlays/Overlay.js +25 -8
- package/HiDatePicker/Overlays/TimePickerOverlay.js +45 -13
- package/HiDatePicker/Overlays/YearPickerOverlay.js +38 -13
- 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 -6
- package/HiDialog/HiDialog.js +19 -7
- package/HiDialog/index.js +2 -0
- package/HiDotsStepper/HiDot.js +42 -12
- package/HiDotsStepper/HiDotsStepper.js +43 -15
- package/HiDotsStepper/index.js +3 -0
- package/HiExpansionPanel/HiExpansionPanel.js +38 -16
- package/HiExpansionPanel/index.js +5 -1
- package/HiForm/HiAddressField.js +41 -14
- package/HiForm/HiEmailField.js +34 -9
- package/HiForm/HiFormControl.js +79 -32
- package/HiForm/HiFormLabel.js +45 -18
- package/HiForm/HiInput.js +97 -37
- package/HiForm/HiPasswordField.js +43 -13
- package/HiForm/HiSearchField.js +40 -8
- package/HiForm/HiSlider.js +62 -26
- package/HiForm/HiTextField.js +52 -26
- package/HiForm/HiUpload.js +94 -33
- package/HiForm/HiUploadField.js +37 -14
- package/HiForm/HiUploadInput.js +81 -25
- 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 -6
- package/HiListItemLink/index.js +2 -0
- package/HiLoader/HiLoader.js +16 -6
- package/HiLoader/index.js +2 -0
- package/HiNotice/HiKPI.js +53 -21
- 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 +61 -27
- 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 +47 -36
- package/HiSelect/HiDynamicSelectField.js +52 -27
- package/HiSelect/HiNestedSelect.js +116 -69
- package/HiSelect/HiNestedSelectContent.js +90 -63
- package/HiSelect/HiNestedSelectField.js +52 -27
- package/HiSelect/HiSelect.js +192 -93
- package/HiSelect/HiSelectContent.js +103 -67
- package/HiSelect/HiSelectField.js +53 -28
- package/HiSelect/HiSelectInput.js +81 -25
- package/HiSelect/HiSelectMobile.js +49 -11
- package/HiSelect/HiSuggestSelect.js +85 -28
- package/HiSelect/HiSuggestSelectField.js +43 -18
- package/HiSelect/index.js +14 -2
- package/HiSelectableList/HiSelectableList.js +95 -38
- package/HiSelectableList/HiSelectableListHierarchic.js +65 -38
- 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 +69 -13
- package/HiTable/HiTable.js +48 -20
- package/HiTable/HiTableBody.js +28 -10
- package/HiTable/HiTableHeader.js +55 -21
- package/HiTable/HiTableRow.js +51 -16
- 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 +47 -15
- 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 +35 -10
- package/es/HiBreadcrumb/HiStep.js +50 -17
- package/es/HiBreadcrumb/HiStepConnector.js +55 -18
- package/es/HiBreadcrumb/HiStepContent.js +35 -10
- package/es/HiBreadcrumb/HiStepIcon.js +40 -14
- package/es/HiBreadcrumb/HiStepLabel.js +49 -18
- package/es/HiBreadcrumb/HiStepper.js +35 -10
- 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 +38 -16
- package/es/HiCell/CellDate.js +41 -14
- package/es/HiCell/CellHiddenContent.js +30 -8
- package/es/HiCell/CellIcon.js +41 -16
- package/es/HiCell/CellImage.js +39 -16
- package/es/HiCell/CellNumeric.js +45 -17
- package/es/HiCell/CellPinToAction.js +38 -13
- package/es/HiCell/CellRate.js +52 -17
- package/es/HiCell/CellSentinel.js +38 -16
- package/es/HiCell/CellSentinelScore.js +36 -13
- package/es/HiCell/CellText.js +58 -21
- package/es/HiCell/CellTextStyled.js +24 -13
- package/es/HiCell/index.js +10 -0
- package/es/HiCheckbox/HiCheckbox.js +57 -19
- package/es/HiCheckbox/index.js +2 -0
- package/es/HiChip/HiChip.js +47 -24
- package/es/HiChip/HiChipSwitch.js +65 -21
- 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 +93 -20
- package/es/HiDatePicker/HiDatePickerMobile.js +48 -22
- package/es/HiDatePicker/HiDateRangePicker.js +139 -42
- package/es/HiDatePicker/HiDateRangeSelector.js +135 -53
- package/es/HiDatePicker/ListPicker.js +43 -12
- 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 +32 -9
- package/es/HiDatePicker/Overlays/Overlay.js +25 -8
- package/es/HiDatePicker/Overlays/TimePickerOverlay.js +45 -13
- package/es/HiDatePicker/Overlays/YearPickerOverlay.js +38 -13
- 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 -6
- package/es/HiDialog/HiDialog.js +19 -7
- package/es/HiDialog/index.js +2 -0
- package/es/HiDotsStepper/HiDot.js +42 -12
- package/es/HiDotsStepper/HiDotsStepper.js +43 -15
- 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 +41 -14
- package/es/HiForm/HiEmailField.js +34 -9
- package/es/HiForm/HiFormControl.js +79 -32
- package/es/HiForm/HiFormLabel.js +45 -18
- package/es/HiForm/HiInput.js +97 -37
- package/es/HiForm/HiPasswordField.js +43 -13
- package/es/HiForm/HiSearchField.js +40 -8
- package/es/HiForm/HiSlider.js +62 -26
- package/es/HiForm/HiTextField.js +52 -26
- package/es/HiForm/HiUpload.js +94 -33
- package/es/HiForm/HiUploadField.js +37 -14
- package/es/HiForm/HiUploadInput.js +81 -25
- 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 -6
- 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 +53 -21
- 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 +61 -27
- 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 +47 -36
- package/es/HiSelect/HiDynamicSelectField.js +52 -27
- package/es/HiSelect/HiNestedSelect.js +116 -69
- package/es/HiSelect/HiNestedSelectContent.js +90 -63
- package/es/HiSelect/HiNestedSelectField.js +52 -27
- package/es/HiSelect/HiSelect.js +192 -93
- package/es/HiSelect/HiSelectContent.js +103 -67
- package/es/HiSelect/HiSelectField.js +53 -28
- package/es/HiSelect/HiSelectInput.js +81 -25
- package/es/HiSelect/HiSelectMobile.js +49 -11
- package/es/HiSelect/HiSuggestSelect.js +85 -28
- package/es/HiSelect/HiSuggestSelectField.js +43 -18
- package/es/HiSelect/index.js +14 -2
- package/es/HiSelectableList/HiSelectableList.js +95 -38
- package/es/HiSelectableList/HiSelectableListHierarchic.js +65 -38
- 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 +69 -13
- package/es/HiTable/HiTable.js +48 -20
- package/es/HiTable/HiTableBody.js +28 -10
- package/es/HiTable/HiTableHeader.js +55 -21
- package/es/HiTable/HiTableRow.js +51 -16
- 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 +53 -18
- 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 -66
- package/es/styles/createStyles.js +1 -0
- package/es/styles/createTypography.js +24 -15
- package/es/styles/getStylesCreator.js +14 -2
- 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 +1 -1
- package/setupTest.js +13 -2
- package/styleguide/Wrapper.js +6 -0
- package/styles/MuiThemeProvider.js +53 -18
- 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 -66
- package/styles/createStyles.js +1 -0
- package/styles/createTypography.js +24 -15
- package/styles/getStylesCreator.js +14 -2
- 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
@@ -1,46 +1,83 @@
|
|
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 _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
11
|
+
|
9
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
13
|
+
|
10
14
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
15
|
+
|
11
16
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
17
|
+
|
12
18
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
|
19
|
+
|
13
20
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
|
21
|
+
|
22
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
|
23
|
+
|
14
24
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
|
25
|
+
|
15
26
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
|
16
|
-
|
27
|
+
|
17
28
|
var _react = _interopRequireDefault(require("react"));
|
29
|
+
|
18
30
|
var _momentTimezone = _interopRequireDefault(require("moment-timezone"));
|
31
|
+
|
19
32
|
var _moment = _interopRequireDefault(require("react-day-picker/moment"));
|
33
|
+
|
20
34
|
var _hiLocaleUtils = _interopRequireDefault(require("./hiLocaleUtils"));
|
35
|
+
|
21
36
|
var _DayPickerInput = _interopRequireDefault(require("react-day-picker/DayPickerInput"));
|
37
|
+
|
22
38
|
var _classnames = _interopRequireDefault(require("classnames"));
|
39
|
+
|
23
40
|
var _withStyles = _interopRequireDefault(require("@mui/styles/withStyles"));
|
41
|
+
|
24
42
|
var _Caption = _interopRequireDefault(require("./Caption"));
|
43
|
+
|
25
44
|
var _Overlay = _interopRequireDefault(require("./Overlays/Overlay"));
|
45
|
+
|
26
46
|
var _TimePickerOverlay = _interopRequireDefault(require("./Overlays/TimePickerOverlay"));
|
47
|
+
|
27
48
|
var _MonthPickerOverlay = _interopRequireDefault(require("./Overlays/MonthPickerOverlay"));
|
49
|
+
|
28
50
|
var _YearPickerOverlay = _interopRequireDefault(require("./Overlays/YearPickerOverlay"));
|
51
|
+
|
29
52
|
var _NavBar = _interopRequireDefault(require("./NavBar"));
|
53
|
+
|
30
54
|
var _Weekday = _interopRequireDefault(require("./Weekday"));
|
55
|
+
|
31
56
|
var _HiForm = require("../HiForm");
|
57
|
+
|
32
58
|
var _stylesheet = _interopRequireDefault(require("./stylesheet"));
|
59
|
+
|
33
60
|
var _HiFormControl = _interopRequireDefault(require("../HiForm/HiFormControl"));
|
61
|
+
|
34
62
|
var _reactDeviceDetect = require("react-device-detect");
|
63
|
+
|
35
64
|
var _HiDatePickerMobile = _interopRequireDefault(require("./HiDatePickerMobile"));
|
36
|
-
|
37
|
-
function
|
65
|
+
|
66
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
67
|
+
|
68
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
69
|
+
|
38
70
|
var HiDateRangePicker = /*#__PURE__*/function (_React$Component) {
|
39
71
|
(0, _inherits2.default)(HiDateRangePicker, _React$Component);
|
72
|
+
|
73
|
+
var _super = _createSuper(HiDateRangePicker);
|
74
|
+
|
40
75
|
function HiDateRangePicker(props) {
|
41
76
|
var _this;
|
77
|
+
|
42
78
|
(0, _classCallCheck2.default)(this, HiDateRangePicker);
|
43
|
-
_this =
|
79
|
+
_this = _super.call(this, props);
|
80
|
+
|
44
81
|
_this.handleDayChange = function (name, day) {
|
45
82
|
if (day) {
|
46
83
|
// if time disabled, focus TO input
|
@@ -58,43 +95,57 @@ var HiDateRangePicker = /*#__PURE__*/function (_React$Component) {
|
|
58
95
|
}
|
59
96
|
}, 10);
|
60
97
|
}
|
98
|
+
|
61
99
|
if (_this.props.onChange) {
|
62
100
|
_this.handleChange(name, day);
|
63
101
|
}
|
102
|
+
|
64
103
|
if (_this.props.enableTime) {
|
65
104
|
_this.openPanel('time');
|
66
105
|
}
|
67
106
|
}
|
68
107
|
};
|
108
|
+
|
69
109
|
_this.handleInputChange = function (inputName) {
|
70
110
|
return function (event) {
|
71
111
|
_this.handleChange(inputName, event.target.value);
|
72
112
|
};
|
73
113
|
};
|
114
|
+
|
74
115
|
_this.onDayToClick = function (day) {
|
75
116
|
var change = (0, _momentTimezone.default)(day) >= (0, _momentTimezone.default)(_this.props.from);
|
76
117
|
var today = (0, _momentTimezone.default)();
|
77
118
|
var todayDate = new Date(today.year(), today.month(), today.date(), 23, 59, 59);
|
119
|
+
|
78
120
|
if (change && day > todayDate && _this.props.disableFutureDays) {
|
79
121
|
change = false;
|
80
122
|
}
|
123
|
+
|
81
124
|
if (change) {
|
82
125
|
_this.handleDayChange('to', day);
|
126
|
+
|
83
127
|
document.activeElement.blur();
|
84
128
|
}
|
85
129
|
};
|
130
|
+
|
86
131
|
_this.handleTimeChange = function (name, date, precision) {
|
87
132
|
_this.handleChange(name, date);
|
133
|
+
|
88
134
|
if (name === 'from' && precision === 'minute') {
|
89
135
|
_this.fromInput.hideDayPicker();
|
136
|
+
|
90
137
|
_this.toInput.getInput().focus();
|
138
|
+
|
91
139
|
_this.toInput.showDayPicker();
|
140
|
+
|
92
141
|
_this.openPanel('calendar');
|
93
142
|
} else if (name === 'to' && precision === 'minute') {
|
94
143
|
_this.toInput.hideDayPicker();
|
144
|
+
|
95
145
|
document.activeElement.blur();
|
96
146
|
}
|
97
147
|
};
|
148
|
+
|
98
149
|
_this.handleChange = function (name, day) {
|
99
150
|
var translations = _this.props.translations;
|
100
151
|
var date;
|
@@ -102,21 +153,25 @@ var HiDateRangePicker = /*#__PURE__*/function (_React$Component) {
|
|
102
153
|
var today = (0, _momentTimezone.default)();
|
103
154
|
var now = new Date(today.year(), today.month(), today.date(), 23, 59, 59);
|
104
155
|
var _this$props = _this.props,
|
105
|
-
|
106
|
-
|
107
|
-
|
156
|
+
minimumDate = _this$props.minimumDate,
|
157
|
+
disableFutureDays = _this$props.disableFutureDays,
|
158
|
+
format = _this$props.format;
|
159
|
+
|
108
160
|
if (day instanceof Date) {
|
109
161
|
date = day;
|
110
162
|
} else if (day) {
|
111
163
|
var parsedValue = (0, _momentTimezone.default)(day, _this.props.format, true);
|
164
|
+
|
112
165
|
if (parsedValue.isValid()) {
|
113
166
|
date = parsedValue.toDate();
|
114
167
|
} else {
|
115
168
|
error = translations.invalid_format;
|
116
169
|
}
|
117
170
|
}
|
171
|
+
|
118
172
|
if (date) {
|
119
173
|
var comparativeDate = name === 'to' ? (0, _momentTimezone.default)(_this.props.from) : (0, _momentTimezone.default)(_this.props.to);
|
174
|
+
|
120
175
|
if (name === 'to' && comparativeDate > (0, _momentTimezone.default)(date) || name === 'from' && comparativeDate < (0, _momentTimezone.default)(date)) {
|
121
176
|
error = translations.to_superior_from;
|
122
177
|
} else if ((0, _momentTimezone.default)(date).utc() < (0, _momentTimezone.default)(minimumDate).utc().startOf('day')) {
|
@@ -124,6 +179,7 @@ var HiDateRangePicker = /*#__PURE__*/function (_React$Component) {
|
|
124
179
|
} else if (disableFutureDays && date > now) {
|
125
180
|
error = translations.date_superior_max_date.replace('%s', (0, _momentTimezone.default)().format(format));
|
126
181
|
}
|
182
|
+
|
127
183
|
if (!_this.props.enableTime) {
|
128
184
|
if (name === 'from') {
|
129
185
|
date.setHours(0, 0, 0);
|
@@ -132,36 +188,46 @@ var HiDateRangePicker = /*#__PURE__*/function (_React$Component) {
|
|
132
188
|
}
|
133
189
|
}
|
134
190
|
}
|
191
|
+
|
135
192
|
_this.props.onChange(name, date);
|
193
|
+
|
136
194
|
_this.props.onChange("".concat(name, "Error"), error);
|
137
195
|
};
|
196
|
+
|
138
197
|
_this.handleChangeMobile = function (inputName) {
|
139
198
|
return function (event) {
|
140
199
|
var date;
|
200
|
+
|
141
201
|
if (event.target.value) {
|
142
202
|
date = new Date(event.target.value);
|
143
203
|
}
|
204
|
+
|
144
205
|
_this.props.onChange(inputName, date);
|
145
206
|
};
|
146
207
|
};
|
208
|
+
|
147
209
|
_this.handleCurrentMonthChange = function (day) {
|
148
210
|
_this.setState({
|
149
211
|
currentMonth: day,
|
150
212
|
openedPanel: 'calendar'
|
151
213
|
});
|
152
214
|
};
|
215
|
+
|
153
216
|
_this.handleDayPickerFocus = function (name) {
|
154
217
|
_this.setState({
|
155
218
|
focusedInput: name
|
156
219
|
});
|
157
220
|
};
|
221
|
+
|
158
222
|
_this.handleDayPickerBlur = function (name) {
|
159
223
|
_this.setState({
|
160
224
|
focusedInput: ''
|
161
225
|
});
|
226
|
+
|
162
227
|
if (_this.props.onBlur) {
|
163
228
|
_this.props.onBlur(name);
|
164
229
|
}
|
230
|
+
|
165
231
|
_this.timeout = setTimeout(function () {
|
166
232
|
if (!['from', 'to'].includes(_this.state.focusedInput)) {
|
167
233
|
_this.setState({
|
@@ -170,30 +236,33 @@ var HiDateRangePicker = /*#__PURE__*/function (_React$Component) {
|
|
170
236
|
}
|
171
237
|
}, 100);
|
172
238
|
};
|
239
|
+
|
173
240
|
_this.handleReset = function (name) {
|
174
241
|
_this.handleChange(name, undefined);
|
175
242
|
};
|
176
|
-
|
177
|
-
* Navigate to next focusable dom element with `Tab`
|
178
|
-
*
|
179
|
-
* @param name
|
180
|
-
*/
|
243
|
+
|
181
244
|
_this.handleKeyDown = function (name) {
|
182
245
|
return function (event) {
|
183
246
|
if (event.key === 'Tab' && !event.shiftKey) {
|
184
247
|
var nodeName = document.activeElement.nodeName;
|
248
|
+
|
185
249
|
if (_this.props[name] && nodeName === 'INPUT' && document.activeElement.nextSibling.children.length > 0) {
|
186
250
|
document.activeElement.nextSibling.focus();
|
187
251
|
} else if (name === 'from') {
|
188
252
|
_this.handleDayPickerBlur('from');
|
253
|
+
|
189
254
|
_this.handleDayPickerFocus('to');
|
255
|
+
|
190
256
|
_this.toInput.handleInputFocus();
|
257
|
+
|
191
258
|
setTimeout(function () {
|
192
259
|
document.getElementById("".concat(_this.props.id, "-to")).focus();
|
193
260
|
}, 1);
|
194
261
|
} else if (name === 'to') {
|
195
262
|
_this.handleDayPickerBlur('to');
|
263
|
+
|
196
264
|
_this.toInput.handleInputBlur(event);
|
265
|
+
|
197
266
|
setTimeout(function () {
|
198
267
|
document.activeElement.blur();
|
199
268
|
}, 1);
|
@@ -204,15 +273,18 @@ var HiDateRangePicker = /*#__PURE__*/function (_React$Component) {
|
|
204
273
|
} else if (name === 'to') {
|
205
274
|
_this.toInput.hideDayPicker();
|
206
275
|
}
|
276
|
+
|
207
277
|
event.stopPropagation();
|
208
278
|
}
|
209
279
|
};
|
210
280
|
};
|
281
|
+
|
211
282
|
_this.openPanel = function (panel) {
|
212
283
|
_this.setState({
|
213
284
|
openedPanel: panel
|
214
285
|
});
|
215
286
|
};
|
287
|
+
|
216
288
|
_this.renderCaption = function (propsCaption) {
|
217
289
|
return /*#__PURE__*/_react.default.createElement(_Caption.default, (0, _extends2.default)({
|
218
290
|
onMonthClick: function onMonthClick() {
|
@@ -223,6 +295,7 @@ var HiDateRangePicker = /*#__PURE__*/function (_React$Component) {
|
|
223
295
|
}
|
224
296
|
}, propsCaption));
|
225
297
|
};
|
298
|
+
|
226
299
|
_this.renderNavBar = function (propsNavBar) {
|
227
300
|
return /*#__PURE__*/_react.default.createElement(_NavBar.default, (0, _extends2.default)({
|
228
301
|
showClockButton: _this.props.enableTime,
|
@@ -231,29 +304,37 @@ var HiDateRangePicker = /*#__PURE__*/function (_React$Component) {
|
|
231
304
|
}
|
232
305
|
}, propsNavBar));
|
233
306
|
};
|
307
|
+
|
234
308
|
_this.renderOverlay = function (name, propsOverlay, staticPosition) {
|
235
309
|
var rangeOverlayProps = (0, _objectSpread2.default)({}, propsOverlay, {
|
236
310
|
side: name,
|
237
311
|
staticPosition: staticPosition
|
238
312
|
});
|
313
|
+
|
239
314
|
switch (_this.state.openedPanel) {
|
240
315
|
case 'time':
|
241
316
|
return _this.renderTimePickerOverlay(name, rangeOverlayProps);
|
317
|
+
|
242
318
|
case 'months':
|
243
319
|
return _this.renderMonthPickerOverlay(name, rangeOverlayProps);
|
320
|
+
|
244
321
|
case 'years':
|
245
322
|
return _this.renderYearPickerOverlay(name, rangeOverlayProps);
|
323
|
+
|
246
324
|
case 'calendar':
|
247
325
|
default:
|
248
326
|
return /*#__PURE__*/_react.default.createElement(_Overlay.default, rangeOverlayProps);
|
249
327
|
}
|
250
328
|
};
|
329
|
+
|
251
330
|
_this.renderOverlayFrom = function (propsOverlay) {
|
252
331
|
return _this.renderOverlay('from', propsOverlay, _this.props.staticPosition);
|
253
332
|
};
|
333
|
+
|
254
334
|
_this.renderOverlayTo = function (propsOverlay) {
|
255
335
|
return _this.renderOverlay('to', propsOverlay, _this.props.staticPosition);
|
256
336
|
};
|
337
|
+
|
257
338
|
_this.renderMonthPickerOverlay = function (name, propsOverlay) {
|
258
339
|
var monthPickerProps = {
|
259
340
|
value: _this.state.currentMonth,
|
@@ -263,6 +344,7 @@ var HiDateRangePicker = /*#__PURE__*/function (_React$Component) {
|
|
263
344
|
key: "".concat(name, "-month-picker-overlay")
|
264
345
|
}, monthPickerProps, propsOverlay));
|
265
346
|
};
|
347
|
+
|
266
348
|
_this.renderTimePickerOverlay = function (name, propsOverlay) {
|
267
349
|
var timePickerProps = {
|
268
350
|
value: _this.props[name],
|
@@ -277,6 +359,7 @@ var HiDateRangePicker = /*#__PURE__*/function (_React$Component) {
|
|
277
359
|
key: "".concat(name, "-time-picker-overlay")
|
278
360
|
}, timePickerProps, propsOverlay));
|
279
361
|
};
|
362
|
+
|
280
363
|
_this.renderYearPickerOverlay = function (name, propsOverlay) {
|
281
364
|
var yearPickerProps = {
|
282
365
|
value: _this.state.currentMonth,
|
@@ -287,7 +370,9 @@ var HiDateRangePicker = /*#__PURE__*/function (_React$Component) {
|
|
287
370
|
key: "".concat(name, "-year-picker-overlay")
|
288
371
|
}, yearPickerProps, propsOverlay));
|
289
372
|
};
|
373
|
+
|
290
374
|
var _today = (0, _momentTimezone.default)();
|
375
|
+
|
291
376
|
_this.state = {
|
292
377
|
currentMonth: new Date(_today.year(), _today.month(), _today.date()),
|
293
378
|
focusedInput: '',
|
@@ -295,6 +380,7 @@ var HiDateRangePicker = /*#__PURE__*/function (_React$Component) {
|
|
295
380
|
};
|
296
381
|
return _this;
|
297
382
|
}
|
383
|
+
|
298
384
|
(0, _createClass2.default)(HiDateRangePicker, [{
|
299
385
|
key: "componentWillUnmount",
|
300
386
|
value: function componentWillUnmount() {
|
@@ -303,31 +389,33 @@ var HiDateRangePicker = /*#__PURE__*/function (_React$Component) {
|
|
303
389
|
}, {
|
304
390
|
key: "render",
|
305
391
|
value: function render() {
|
306
|
-
var _this2 = this
|
392
|
+
var _this2 = this,
|
393
|
+
_classNames;
|
394
|
+
|
307
395
|
var _this$props2 = this.props,
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
396
|
+
classes = _this$props2.classes,
|
397
|
+
disabled = _this$props2.disabled,
|
398
|
+
disabledDays = _this$props2.disabledDays,
|
399
|
+
disableFutureDays = _this$props2.disableFutureDays,
|
400
|
+
enableTime = _this$props2.enableTime,
|
401
|
+
labelFrom = _this$props2.labelFrom,
|
402
|
+
labelTo = _this$props2.labelTo,
|
403
|
+
locale = _this$props2.locale,
|
404
|
+
format = _this$props2.format,
|
405
|
+
from = _this$props2.from,
|
406
|
+
fromError = _this$props2.fromError,
|
407
|
+
minimumDate = _this$props2.minimumDate,
|
408
|
+
onReset = _this$props2.onReset,
|
409
|
+
to = _this$props2.to,
|
410
|
+
toError = _this$props2.toError,
|
411
|
+
translations = _this$props2.translations,
|
412
|
+
id = _this$props2.id,
|
413
|
+
staticPosition = _this$props2.staticPosition,
|
414
|
+
errorText = _this$props2.errorText,
|
415
|
+
hasSelector = _this$props2.hasSelector,
|
416
|
+
helperIcon = _this$props2.helperIcon,
|
417
|
+
helperText = _this$props2.helperText,
|
418
|
+
props = (0, _objectWithoutProperties2.default)(_this$props2, ["classes", "disabled", "disabledDays", "disableFutureDays", "enableTime", "labelFrom", "labelTo", "locale", "format", "from", "fromError", "minimumDate", "onReset", "to", "toError", "translations", "id", "staticPosition", "errorText", "hasSelector", "helperIcon", "helperText"]);
|
331
419
|
var today = (0, _momentTimezone.default)();
|
332
420
|
var now = new Date(today.year(), today.month(), today.date(), 23, 59, 59, 999);
|
333
421
|
var modifiers = (0, _defineProperty2.default)({
|
@@ -346,17 +434,21 @@ var HiDateRangePicker = /*#__PURE__*/function (_React$Component) {
|
|
346
434
|
};
|
347
435
|
var selectedDays = [];
|
348
436
|
var selected = {};
|
437
|
+
|
349
438
|
if (from instanceof Date) {
|
350
439
|
selectedDays.push(from);
|
351
440
|
selected.from = from;
|
352
441
|
}
|
442
|
+
|
353
443
|
if (to instanceof Date) {
|
354
444
|
selectedDays.push(to);
|
355
445
|
selected.to = to;
|
356
446
|
}
|
447
|
+
|
357
448
|
if (Object.values(selected).length > 0) {
|
358
449
|
selectedDays.push(selected);
|
359
450
|
}
|
451
|
+
|
360
452
|
var dayPickerProps = (0, _objectSpread2.default)({
|
361
453
|
classNames: classes,
|
362
454
|
disabledDays: disabledDays,
|
@@ -402,9 +494,7 @@ var HiDateRangePicker = /*#__PURE__*/function (_React$Component) {
|
|
402
494
|
localeUtils: _hiLocaleUtils.default,
|
403
495
|
month: this.state.currentMonth,
|
404
496
|
modifiers: (0, _objectSpread2.default)({}, modifiers)
|
405
|
-
});
|
406
|
-
|
407
|
-
// From & To InputProps
|
497
|
+
}); // From & To InputProps
|
408
498
|
|
409
499
|
var fromInputProps = (0, _objectSpread2.default)({}, onReset && {
|
410
500
|
onReset: function onReset() {
|
@@ -438,7 +528,8 @@ var HiDateRangePicker = /*#__PURE__*/function (_React$Component) {
|
|
438
528
|
onSubmit: this.props.onSubmit
|
439
529
|
}
|
440
530
|
});
|
441
|
-
var toClass = (0, _classnames.default)(classes.toInput, (
|
531
|
+
var toClass = (0, _classnames.default)(classes.toInput, (_classNames = {}, (0, _defineProperty2.default)(_classNames, classes.absolute, !_reactDeviceDetect.isMobile && staticPosition === true && this.state.focusedInput === 'from'), (0, _defineProperty2.default)(_classNames, classes.right4, !_reactDeviceDetect.isMobile && staticPosition === true && this.state.focusedInput === 'from'), _classNames));
|
532
|
+
|
442
533
|
var content = /*#__PURE__*/_react.default.createElement("div", {
|
443
534
|
className: (0, _classnames.default)(classes.root, classes.rangePickerContainer)
|
444
535
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
@@ -516,6 +607,7 @@ var HiDateRangePicker = /*#__PURE__*/function (_React$Component) {
|
|
516
607
|
minimumDate: minimumDate,
|
517
608
|
format: enableTime ? "".concat(format, " HH:mm") : format
|
518
609
|
})));
|
610
|
+
|
519
611
|
if (!hasSelector) {
|
520
612
|
content = /*#__PURE__*/_react.default.createElement(_HiFormControl.default, {
|
521
613
|
disabled: disabled,
|
@@ -526,11 +618,13 @@ var HiDateRangePicker = /*#__PURE__*/function (_React$Component) {
|
|
526
618
|
label: ' '
|
527
619
|
}, content);
|
528
620
|
}
|
621
|
+
|
529
622
|
return content;
|
530
623
|
}
|
531
624
|
}]);
|
532
625
|
return HiDateRangePicker;
|
533
626
|
}(_react.default.Component);
|
627
|
+
|
534
628
|
HiDateRangePicker.defaultProps = {
|
535
629
|
disabledDays: {},
|
536
630
|
disableFutureDays: true,
|
@@ -557,6 +651,9 @@ HiDateRangePicker.defaultProps = {
|
|
557
651
|
date_inferior_min_date: 'Date from cannot be before than %s'
|
558
652
|
}
|
559
653
|
};
|
560
|
-
|
654
|
+
|
655
|
+
var _default = (0, _withStyles.default)(_stylesheet.default, {
|
561
656
|
name: 'HmuiHiDateRangePicker'
|
562
|
-
})(HiDateRangePicker);
|
657
|
+
})(HiDateRangePicker);
|
658
|
+
|
659
|
+
exports.default = _default;
|