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