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