@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,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
@@ -12,52 +11,29 @@ exports.findSeparator = findSeparator;
|
|
12
11
|
exports.styles = void 0;
|
13
12
|
exports.yearAndMonth = yearAndMonth;
|
14
13
|
exports.yearAndQuarter = yearAndQuarter;
|
15
|
-
|
16
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
17
|
-
|
18
15
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
19
|
-
|
20
16
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
21
|
-
|
22
17
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
|
23
|
-
|
24
18
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
|
25
|
-
|
26
19
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
|
27
|
-
|
28
20
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
|
29
|
-
|
30
21
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
|
31
|
-
|
32
22
|
var _react = _interopRequireDefault(require("react"));
|
33
|
-
|
34
23
|
var _momentTimezone = _interopRequireDefault(require("moment-timezone"));
|
35
|
-
|
36
24
|
var _reactDom = require("react-dom");
|
37
|
-
|
38
25
|
var _withStyles = _interopRequireDefault(require("@mui/styles/withStyles"));
|
39
|
-
|
40
26
|
var _HiSelectField = _interopRequireDefault(require("../HiSelect/HiSelectField"));
|
41
|
-
|
42
27
|
var _HiDateRangePicker = _interopRequireDefault(require("./HiDateRangePicker"));
|
43
|
-
|
44
28
|
var _HiFormControl = _interopRequireDefault(require("../HiForm/HiFormControl"));
|
45
|
-
|
46
29
|
var _reactDeviceDetect = require("react-device-detect");
|
47
|
-
|
48
30
|
var _Calendar = _interopRequireDefault(require("mdi-material-ui/Calendar"));
|
49
|
-
|
50
31
|
var _CalendarBlank = _interopRequireDefault(require("mdi-material-ui/CalendarBlank"));
|
51
|
-
|
52
32
|
var _CalendarArrowRight = _interopRequireDefault(require("mdi-material-ui/CalendarArrowRight"));
|
53
|
-
|
54
33
|
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); }; }
|
55
|
-
|
56
34
|
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; } }
|
57
|
-
|
58
35
|
function findSeparator(format) {
|
59
36
|
var str = '';
|
60
|
-
|
61
37
|
if (format.search('[/]') >= 0) {
|
62
38
|
str = '/';
|
63
39
|
} else if (format.search('[-]') >= 0) {
|
@@ -65,100 +41,87 @@ function findSeparator(format) {
|
|
65
41
|
} else if (format.search('[.]') >= 0) {
|
66
42
|
str = '.';
|
67
43
|
}
|
68
|
-
|
69
44
|
return str;
|
70
45
|
}
|
71
|
-
|
72
46
|
function yearAndMonth(format, date) {
|
73
47
|
var findY = function findY(el) {
|
74
48
|
return el.toUpperCase().search('Y') >= 0;
|
75
49
|
};
|
76
|
-
|
77
50
|
var findM = function findM(el) {
|
78
51
|
return el.toUpperCase().search('M') >= 0;
|
79
52
|
};
|
80
|
-
|
81
53
|
var s = findSeparator(format);
|
82
54
|
var split = format.split(s);
|
83
55
|
var indexY = split.findIndex(findY);
|
84
56
|
var indexM = split.findIndex(findM);
|
85
57
|
return indexY < indexM ? date.format(split[indexY] + s + split[indexM]) : date.format(split[indexM] + s + split[indexY]);
|
86
58
|
}
|
87
|
-
|
88
59
|
function yearAndQuarter(format, date, t) {
|
89
60
|
var findY = function findY(el) {
|
90
61
|
return el.toUpperCase().search('Y') >= 0;
|
91
62
|
};
|
92
|
-
|
93
63
|
var findM = function findM(el) {
|
94
64
|
return el.toUpperCase().search('M') >= 0;
|
95
65
|
};
|
96
|
-
|
97
66
|
var s = findSeparator(format);
|
98
67
|
var split = format.split(s);
|
99
68
|
var indexY = split.findIndex(findY);
|
100
69
|
var indexM = split.findIndex(findM);
|
101
70
|
return indexY < indexM ? date.format("".concat(split[indexY]).concat(s, "[").concat(t.short_quarter, "]Q")) : date.format("[".concat(t.short_quarter, "]Q").concat(s).concat(split[indexY]));
|
102
71
|
}
|
103
|
-
|
104
72
|
function buildDateRangeInfo(t, from, to, format) {
|
105
73
|
var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
106
74
|
var _options$prefix = options.prefix,
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
75
|
+
prefix = _options$prefix === void 0 ? null : _options$prefix,
|
76
|
+
_options$toNow = options.toNow,
|
77
|
+
toNow = _options$toNow === void 0 ? false : _options$toNow,
|
78
|
+
_options$toToday = options.toToday,
|
79
|
+
toToday = _options$toToday === void 0 ? false : _options$toToday,
|
80
|
+
_options$displayDays = options.displayDays,
|
81
|
+
displayDays = _options$displayDays === void 0 ? true : _options$displayDays,
|
82
|
+
_options$displayDayNa = options.displayDayName,
|
83
|
+
displayDayName = _options$displayDayNa === void 0 ? false : _options$displayDayNa; // From
|
84
|
+
var info = "".concat(t.from, " ").concat(from.format(format), " ");
|
85
|
+
|
86
|
+
// Display day name
|
119
87
|
if (displayDayName) {
|
120
88
|
info = "".concat(t.from, " ").concat(from.format('dddd'), " ").concat(from.format(format), " ");
|
121
|
-
}
|
122
|
-
|
89
|
+
}
|
123
90
|
|
91
|
+
// To
|
124
92
|
if (toToday) {
|
125
93
|
info += "".concat(t.to_today);
|
126
94
|
} else if (toNow) {
|
127
95
|
info += "".concat(t.to_now);
|
128
96
|
} else {
|
129
97
|
info += "".concat(t.to, " ").concat(to.format(format));
|
130
|
-
}
|
131
|
-
|
98
|
+
}
|
132
99
|
|
100
|
+
// Prefix
|
133
101
|
switch (prefix) {
|
134
102
|
case 'week':
|
135
103
|
info = "".concat(t.short_week).concat(from.format('w'), ", ").concat(info);
|
136
104
|
break;
|
137
|
-
|
138
105
|
case 'quarter':
|
139
106
|
info = "".concat(t.short_quarter).concat(from.format('Q'), ", ").concat(info);
|
140
107
|
break;
|
141
|
-
|
142
108
|
default:
|
143
109
|
break;
|
144
|
-
}
|
145
|
-
|
110
|
+
}
|
146
111
|
|
112
|
+
// Display number of days
|
147
113
|
if (displayDays) {
|
148
114
|
var days = Math.ceil(to.diff(from, 'days', true));
|
149
115
|
info = "".concat(days, " ").concat(days === 1 ? t.day : t.days, ", ").concat(info);
|
150
116
|
}
|
151
|
-
|
152
117
|
return info;
|
153
118
|
}
|
154
|
-
|
155
119
|
function buildDateRangeOptionByKey(key, t, format) {
|
156
120
|
var from;
|
157
121
|
var label;
|
158
122
|
var info;
|
159
123
|
var to;
|
160
124
|
var days;
|
161
|
-
|
162
125
|
switch (key) {
|
163
126
|
case 'custom':
|
164
127
|
label = t.custom_period;
|
@@ -166,21 +129,18 @@ function buildDateRangeOptionByKey(key, t, format) {
|
|
166
129
|
to = (0, _momentTimezone.default)().endOf('day');
|
167
130
|
info = t.custom_period_info;
|
168
131
|
break;
|
169
|
-
|
170
132
|
case 'cd':
|
171
133
|
label = t.today;
|
172
134
|
from = (0, _momentTimezone.default)().startOf('day');
|
173
135
|
to = (0, _momentTimezone.default)();
|
174
136
|
info = "".concat(from.format(format));
|
175
137
|
break;
|
176
|
-
|
177
138
|
case 'pd':
|
178
139
|
label = t.yesterday;
|
179
140
|
from = (0, _momentTimezone.default)().subtract(1, 'day').startOf('day');
|
180
141
|
to = (0, _momentTimezone.default)().subtract(1, 'day').endOf('day');
|
181
142
|
info = "".concat(from.format(format));
|
182
143
|
break;
|
183
|
-
|
184
144
|
case 'cw':
|
185
145
|
label = t.current_week;
|
186
146
|
from = (0, _momentTimezone.default)().startOf('week');
|
@@ -191,7 +151,6 @@ function buildDateRangeOptionByKey(key, t, format) {
|
|
191
151
|
displayDays: true
|
192
152
|
});
|
193
153
|
break;
|
194
|
-
|
195
154
|
case 'pw':
|
196
155
|
label = t.previous_week;
|
197
156
|
from = (0, _momentTimezone.default)().subtract(1, 'week').startOf('week');
|
@@ -202,7 +161,6 @@ function buildDateRangeOptionByKey(key, t, format) {
|
|
202
161
|
displayDays: true
|
203
162
|
});
|
204
163
|
break;
|
205
|
-
|
206
164
|
case 'cm':
|
207
165
|
label = t.current_month;
|
208
166
|
from = (0, _momentTimezone.default)().startOf('month');
|
@@ -213,7 +171,6 @@ function buildDateRangeOptionByKey(key, t, format) {
|
|
213
171
|
displayDays: true
|
214
172
|
});
|
215
173
|
break;
|
216
|
-
|
217
174
|
case 'pm':
|
218
175
|
label = t.previous_month;
|
219
176
|
from = (0, _momentTimezone.default)().subtract(1, 'month').startOf('month');
|
@@ -221,7 +178,6 @@ function buildDateRangeOptionByKey(key, t, format) {
|
|
221
178
|
days = from.daysInMonth();
|
222
179
|
info = "".concat(days, " ").concat(days === 1 ? t.day : t.days, ", ").concat(yearAndMonth(format, from));
|
223
180
|
break;
|
224
|
-
|
225
181
|
case 'cq':
|
226
182
|
label = t.current_quarter;
|
227
183
|
from = (0, _momentTimezone.default)().startOf('quarter');
|
@@ -232,7 +188,6 @@ function buildDateRangeOptionByKey(key, t, format) {
|
|
232
188
|
displayDays: true
|
233
189
|
});
|
234
190
|
break;
|
235
|
-
|
236
191
|
case 'pq':
|
237
192
|
label = t.previous_quarter;
|
238
193
|
from = (0, _momentTimezone.default)().subtract(1, 'quarter').startOf('quarter');
|
@@ -243,7 +198,6 @@ function buildDateRangeOptionByKey(key, t, format) {
|
|
243
198
|
displayDays: true
|
244
199
|
});
|
245
200
|
break;
|
246
|
-
|
247
201
|
case 'cy':
|
248
202
|
label = t.current_year;
|
249
203
|
from = (0, _momentTimezone.default)().startOf('year');
|
@@ -254,14 +208,12 @@ function buildDateRangeOptionByKey(key, t, format) {
|
|
254
208
|
displayDays: true
|
255
209
|
});
|
256
210
|
break;
|
257
|
-
|
258
211
|
case '1':
|
259
212
|
label = '24h';
|
260
213
|
from = (0, _momentTimezone.default)().subtract(1, 'day');
|
261
214
|
to = (0, _momentTimezone.default)();
|
262
215
|
info = "".concat(t.from, " ").concat(from.format('HH:mm'), " ").concat(t.yesterday.toLowerCase(), " ").concat(t.to_now);
|
263
216
|
break;
|
264
|
-
|
265
217
|
default:
|
266
218
|
if (parseInt(key) > 0) {
|
267
219
|
label = "".concat(key, " ").concat(key === 1 ? t.day : t.days);
|
@@ -275,10 +227,8 @@ function buildDateRangeOptionByKey(key, t, format) {
|
|
275
227
|
displayDayName: true
|
276
228
|
});
|
277
229
|
}
|
278
|
-
|
279
230
|
break;
|
280
231
|
}
|
281
|
-
|
282
232
|
return {
|
283
233
|
id: key,
|
284
234
|
from: from,
|
@@ -287,7 +237,6 @@ function buildDateRangeOptionByKey(key, t, format) {
|
|
287
237
|
to: to
|
288
238
|
};
|
289
239
|
}
|
290
|
-
|
291
240
|
var styles = function styles(theme) {
|
292
241
|
return {
|
293
242
|
root: {
|
@@ -331,54 +280,39 @@ var styles = function styles(theme) {
|
|
331
280
|
}
|
332
281
|
};
|
333
282
|
};
|
334
|
-
|
335
283
|
exports.styles = styles;
|
336
284
|
var PRESET_PERIOD_LIST = ['cd', 'pd', 'cw', 'pw', 'cm', 'pm', 'cq', 'pq', 'cy'];
|
337
285
|
var SLIDING_PERIOD_LIST = ['1', '7', '30', '365'];
|
338
286
|
var CUSTOM_PERIOD_LIST = ['custom'];
|
339
|
-
|
340
287
|
var _ref2 = /*#__PURE__*/_react.default.createElement(_CalendarBlank.default, null);
|
341
|
-
|
342
288
|
var _ref3 = /*#__PURE__*/_react.default.createElement(_Calendar.default, null);
|
343
|
-
|
344
289
|
var _ref4 = /*#__PURE__*/_react.default.createElement(_CalendarArrowRight.default, null);
|
345
|
-
|
346
290
|
var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
|
347
291
|
(0, _inherits2.default)(HiDateRangeSelector, _React$Component);
|
348
|
-
|
349
292
|
var _super = _createSuper(HiDateRangeSelector);
|
350
|
-
|
351
293
|
function HiDateRangeSelector(props) {
|
352
294
|
var _this;
|
353
|
-
|
354
295
|
(0, _classCallCheck2.default)(this, HiDateRangeSelector);
|
355
296
|
_this = _super.call(this, props);
|
356
297
|
_this.options = [];
|
357
|
-
|
358
298
|
_this.handleBlur = function (event) {
|
359
299
|
if (event instanceof Object && _this.props.onblur) {
|
360
300
|
_this.props.onBlur(event);
|
361
301
|
}
|
362
302
|
};
|
363
|
-
|
364
303
|
_this.handleReset = function (name) {
|
365
304
|
_this.props.onChange(name, undefined);
|
366
|
-
|
367
305
|
_this.props.onChange("".concat(name, "Error"), undefined);
|
368
306
|
};
|
369
|
-
|
370
307
|
_this.handleSelectChange = function (name) {
|
371
308
|
return function (event, value) {
|
372
309
|
_this.setState(function (prevState) {
|
373
310
|
var _ref;
|
374
|
-
|
375
311
|
return _ref = {}, (0, _defineProperty2.default)(_ref, name, value), (0, _defineProperty2.default)(_ref, "key", prevState.key === 1 ? 2 : 1), _ref;
|
376
312
|
});
|
377
|
-
|
378
313
|
_this.updateDates(value);
|
379
314
|
};
|
380
315
|
};
|
381
|
-
|
382
316
|
_this.options = props.availableOptionKeys.map(function (key) {
|
383
317
|
return buildDateRangeOptionByKey(key, props.translations, props.format);
|
384
318
|
});
|
@@ -388,7 +322,6 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
|
|
388
322
|
};
|
389
323
|
return _this;
|
390
324
|
}
|
391
|
-
|
392
325
|
(0, _createClass2.default)(HiDateRangeSelector, [{
|
393
326
|
key: "componentDidMount",
|
394
327
|
value: function componentDidMount() {
|
@@ -409,14 +342,12 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
|
|
409
342
|
var selectedOption = this.options.find(function (option) {
|
410
343
|
return option.id === value;
|
411
344
|
});
|
412
|
-
|
413
345
|
if (selectedOption) {
|
414
346
|
this.props.onChange('from', selectedOption.from.toDate());
|
415
347
|
this.props.onChange('to', selectedOption.to.toDate());
|
416
348
|
this.props.onChange('fromError', false);
|
417
349
|
this.props.onChange('toError', false);
|
418
350
|
}
|
419
|
-
|
420
351
|
if (this.props.returnSelectValue === true) {
|
421
352
|
this.props.onChange('period', value);
|
422
353
|
}
|
@@ -425,8 +356,8 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
|
|
425
356
|
key: "buildOptions",
|
426
357
|
value: function buildOptions() {
|
427
358
|
var _this$props = this.props,
|
428
|
-
|
429
|
-
|
359
|
+
availableOptionKeys = _this$props.availableOptionKeys,
|
360
|
+
translations = _this$props.translations;
|
430
361
|
var selectedPreset = this.state.selectedPreset;
|
431
362
|
var options = [];
|
432
363
|
var presetOptionsAvailable = availableOptionKeys.filter(function (option) {
|
@@ -438,7 +369,6 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
|
|
438
369
|
var customOptionsAvailable = availableOptionKeys.filter(function (option) {
|
439
370
|
return CUSTOM_PERIOD_LIST.includes(option);
|
440
371
|
});
|
441
|
-
|
442
372
|
if (customOptionsAvailable.length) {
|
443
373
|
options.push({
|
444
374
|
id: 'custom_periods_subheader',
|
@@ -451,7 +381,6 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
|
|
451
381
|
collapseParent: true
|
452
382
|
});
|
453
383
|
}
|
454
|
-
|
455
384
|
if (presetOptionsAvailable.length) {
|
456
385
|
options.push({
|
457
386
|
id: 'preset_periods_subheader',
|
@@ -464,7 +393,6 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
|
|
464
393
|
collapseParent: true
|
465
394
|
});
|
466
395
|
}
|
467
|
-
|
468
396
|
if (slidingOptionsAvailable.length) {
|
469
397
|
options.push({
|
470
398
|
id: 'sliding_periods_subheader',
|
@@ -477,41 +405,39 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
|
|
477
405
|
collapseParent: true
|
478
406
|
});
|
479
407
|
}
|
480
|
-
|
481
408
|
return options;
|
482
409
|
}
|
483
410
|
}, {
|
484
411
|
key: "render",
|
485
412
|
value: function render() {
|
486
413
|
var _this2 = this;
|
487
|
-
|
488
414
|
var _this$props2 = this.props,
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
415
|
+
availableOptionKeys = _this$props2.availableOptionKeys,
|
416
|
+
disabled = _this$props2.disabled,
|
417
|
+
enableTime = _this$props2.enableTime,
|
418
|
+
errorText = _this$props2.errorText,
|
419
|
+
fromError = _this$props2.fromError,
|
420
|
+
toError = _this$props2.toError,
|
421
|
+
helperIcon = _this$props2.helperIcon,
|
422
|
+
helperText = _this$props2.helperText,
|
423
|
+
idRange = _this$props2.idRange,
|
424
|
+
idSelect = _this$props2.idSelect,
|
425
|
+
minimumDate = _this$props2.minimumDate,
|
426
|
+
disableFutureDays = _this$props2.disableFutureDays,
|
427
|
+
label = _this$props2.label,
|
428
|
+
from = _this$props2.from,
|
429
|
+
onChange = _this$props2.onChange,
|
430
|
+
required = _this$props2.required,
|
431
|
+
to = _this$props2.to,
|
432
|
+
translations = _this$props2.translations,
|
433
|
+
classes = _this$props2.classes,
|
434
|
+
selectProps = _this$props2.selectProps,
|
435
|
+
staticPosition = _this$props2.staticPosition,
|
436
|
+
className = _this$props2.className,
|
437
|
+
props = (0, _objectWithoutProperties2.default)(_this$props2, ["availableOptionKeys", "disabled", "enableTime", "errorText", "fromError", "toError", "helperIcon", "helperText", "idRange", "idSelect", "minimumDate", "disableFutureDays", "label", "from", "onChange", "required", "to", "translations", "classes", "selectProps", "staticPosition", "className"]);
|
512
438
|
var _this$state = this.state,
|
513
|
-
|
514
|
-
|
439
|
+
selectedPreset = _this$state.selectedPreset,
|
440
|
+
containerWidth = _this$state.containerWidth;
|
515
441
|
var hiSelectableListProps = {
|
516
442
|
secondaryInline: false,
|
517
443
|
hideCheckbox: true,
|
@@ -597,13 +523,11 @@ var HiDateRangeSelector = /*#__PURE__*/function (_React$Component) {
|
|
597
523
|
selectedPreset: props.defaultPreset
|
598
524
|
};
|
599
525
|
}
|
600
|
-
|
601
526
|
return null;
|
602
527
|
}
|
603
528
|
}]);
|
604
529
|
return HiDateRangeSelector;
|
605
530
|
}(_react.default.Component);
|
606
|
-
|
607
531
|
HiDateRangeSelector.defaultProps = {
|
608
532
|
availableOptionKeys: [].concat(PRESET_PERIOD_LIST, CUSTOM_PERIOD_LIST),
|
609
533
|
disableFutureDays: true,
|
@@ -654,9 +578,7 @@ HiDateRangeSelector.defaultProps = {
|
|
654
578
|
sliding_periods: 'Sliding periods'
|
655
579
|
}
|
656
580
|
};
|
657
|
-
|
658
581
|
var _default = (0, _withStyles.default)(styles, {
|
659
582
|
name: 'HmuiHiDateRangeSelector'
|
660
583
|
})(HiDateRangeSelector);
|
661
|
-
|
662
584
|
exports.default = _default;
|
@@ -1,40 +1,24 @@
|
|
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.styles = exports.default = void 0;
|
9
|
-
|
10
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
11
|
-
|
12
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
|
13
|
-
|
14
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
|
15
|
-
|
16
11
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
|
17
|
-
|
18
12
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
|
19
|
-
|
20
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
|
21
|
-
|
22
14
|
var _react = _interopRequireDefault(require("react"));
|
23
|
-
|
24
15
|
var _classnames = _interopRequireDefault(require("classnames"));
|
25
|
-
|
26
16
|
var _reactCustomScrollbars = require("react-custom-scrollbars");
|
27
|
-
|
28
17
|
var _MenuList = _interopRequireDefault(require("@mui/material/MenuList"));
|
29
|
-
|
30
18
|
var _MenuItem = _interopRequireDefault(require("@mui/material/MenuItem"));
|
31
|
-
|
32
19
|
var _withStyles = _interopRequireDefault(require("@mui/styles/withStyles"));
|
33
|
-
|
34
20
|
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); }; }
|
35
|
-
|
36
21
|
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; } }
|
37
|
-
|
38
22
|
var styles = function styles(theme) {
|
39
23
|
return {
|
40
24
|
itemRoot: {
|
@@ -54,29 +38,21 @@ var styles = function styles(theme) {
|
|
54
38
|
}
|
55
39
|
};
|
56
40
|
};
|
57
|
-
|
58
41
|
exports.styles = styles;
|
59
|
-
|
60
42
|
var ListPicker = /*#__PURE__*/function (_React$PureComponent) {
|
61
43
|
(0, _inherits2.default)(ListPicker, _React$PureComponent);
|
62
|
-
|
63
44
|
var _super = _createSuper(ListPicker);
|
64
|
-
|
65
45
|
function ListPicker() {
|
66
46
|
var _this;
|
67
|
-
|
68
47
|
(0, _classCallCheck2.default)(this, ListPicker);
|
69
|
-
|
70
48
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
71
49
|
args[_key] = arguments[_key];
|
72
50
|
}
|
73
|
-
|
74
51
|
_this = _super.call.apply(_super, [this].concat(args));
|
75
52
|
_this.scrollbars = void 0;
|
76
53
|
_this.position = void 0;
|
77
54
|
return _this;
|
78
55
|
}
|
79
|
-
|
80
56
|
(0, _createClass2.default)(ListPicker, [{
|
81
57
|
key: "componentDidMount",
|
82
58
|
value: function componentDidMount() {
|
@@ -90,13 +66,12 @@ var ListPicker = /*#__PURE__*/function (_React$PureComponent) {
|
|
90
66
|
key: "render",
|
91
67
|
value: function render() {
|
92
68
|
var _this2 = this;
|
93
|
-
|
94
69
|
var _this$props = this.props,
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
70
|
+
classes = _this$props.classes,
|
71
|
+
itemList = _this$props.itemList,
|
72
|
+
onItemClick = _this$props.onItemClick,
|
73
|
+
selectedItem = _this$props.selectedItem,
|
74
|
+
type = _this$props.type;
|
100
75
|
this.position = itemList.indexOf(selectedItem);
|
101
76
|
var now = new Date();
|
102
77
|
return /*#__PURE__*/_react.default.createElement(_reactCustomScrollbars.Scrollbars, {
|
@@ -124,13 +99,10 @@ var ListPicker = /*#__PURE__*/function (_React$PureComponent) {
|
|
124
99
|
}]);
|
125
100
|
return ListPicker;
|
126
101
|
}(_react.default.PureComponent);
|
127
|
-
|
128
102
|
ListPicker.defaultProps = {
|
129
103
|
initAtMiddleScroll: true
|
130
104
|
};
|
131
|
-
|
132
105
|
var _default = (0, _withStyles.default)(styles, {
|
133
106
|
name: 'HmuiListPicker'
|
134
107
|
})(ListPicker);
|
135
|
-
|
136
108
|
exports.default = _default;
|
package/HiDatePicker/NavBar.js
CHANGED
@@ -1,26 +1,17 @@
|
|
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.styles = exports.default = void 0;
|
9
|
-
|
10
8
|
var _react = _interopRequireDefault(require("react"));
|
11
|
-
|
12
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
13
|
-
|
14
10
|
var _IconButton = _interopRequireDefault(require("@mui/material/IconButton"));
|
15
|
-
|
16
11
|
var _ChevronLeft = _interopRequireDefault(require("@mui/icons-material/ChevronLeft"));
|
17
|
-
|
18
12
|
var _ChevronRight = _interopRequireDefault(require("@mui/icons-material/ChevronRight"));
|
19
|
-
|
20
13
|
var _AccessTime = _interopRequireDefault(require("@mui/icons-material/AccessTime"));
|
21
|
-
|
22
14
|
var _withStyles = _interopRequireDefault(require("@mui/styles/withStyles"));
|
23
|
-
|
24
15
|
var styles = function styles(theme) {
|
25
16
|
return {
|
26
17
|
root: {
|
@@ -49,26 +40,21 @@ var styles = function styles(theme) {
|
|
49
40
|
}
|
50
41
|
};
|
51
42
|
};
|
52
|
-
|
53
43
|
exports.styles = styles;
|
54
|
-
|
55
44
|
var _ref2 = /*#__PURE__*/_react.default.createElement(_ChevronLeft.default, null);
|
56
|
-
|
57
45
|
var _ref3 = /*#__PURE__*/_react.default.createElement(_ChevronRight.default, null);
|
58
|
-
|
59
46
|
var _ref4 = /*#__PURE__*/_react.default.createElement(_AccessTime.default, null);
|
60
|
-
|
61
47
|
var NavBar = function NavBar(_ref) {
|
62
48
|
var classes = _ref.classes,
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
49
|
+
_ref$locale = _ref.locale,
|
50
|
+
locale = _ref$locale === void 0 ? 'en_US' : _ref$locale,
|
51
|
+
localeUtils = _ref.localeUtils,
|
52
|
+
nextMonth = _ref.nextMonth,
|
53
|
+
onClockClick = _ref.onClockClick,
|
54
|
+
onPreviousClick = _ref.onPreviousClick,
|
55
|
+
onNextClick = _ref.onNextClick,
|
56
|
+
previousMonth = _ref.previousMonth,
|
57
|
+
showClockButton = _ref.showClockButton;
|
72
58
|
var months = localeUtils.getMonths(locale);
|
73
59
|
var prev = "".concat(months[previousMonth.getMonth()], " ").concat(previousMonth.getFullYear());
|
74
60
|
var next = "".concat(months[nextMonth.getMonth()], " ").concat(nextMonth.getFullYear());
|
@@ -96,14 +82,11 @@ var NavBar = function NavBar(_ref) {
|
|
96
82
|
size: "large"
|
97
83
|
}, _ref4));
|
98
84
|
};
|
99
|
-
|
100
85
|
NavBar.defaultProps = {
|
101
86
|
showClockButton: false
|
102
87
|
};
|
103
|
-
|
104
88
|
var _default = (0, _withStyles.default)(styles, {
|
105
89
|
hiComponent: true,
|
106
90
|
name: 'HmuiNavBar'
|
107
91
|
})(NavBar);
|
108
|
-
|
109
92
|
exports.default = _default;
|