@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,103 +1,62 @@
|
|
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 _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/typeof"));
|
13
|
-
|
14
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
15
|
-
|
16
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
17
|
-
|
18
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
19
|
-
|
20
13
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
|
21
|
-
|
22
14
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
|
23
|
-
|
24
15
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
|
25
|
-
|
26
16
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
|
27
|
-
|
28
17
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
|
29
|
-
|
30
18
|
var _react = _interopRequireDefault(require("react"));
|
31
|
-
|
32
19
|
var _momentTimezone = _interopRequireDefault(require("moment-timezone"));
|
33
|
-
|
34
20
|
var _moment = _interopRequireDefault(require("react-day-picker/moment"));
|
35
|
-
|
36
21
|
var _hiLocaleUtils = _interopRequireDefault(require("./hiLocaleUtils"));
|
37
|
-
|
38
22
|
var _DayPickerInput = _interopRequireDefault(require("react-day-picker/DayPickerInput"));
|
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 _HiTextField = _interopRequireDefault(require("../HiForm/HiTextField"));
|
57
|
-
|
58
32
|
var _stylesheet = _interopRequireDefault(require("./stylesheet"));
|
59
|
-
|
60
33
|
var _reactDeviceDetect = require("react-device-detect");
|
61
|
-
|
62
34
|
var _HiDatePickerMobile = _interopRequireDefault(require("./HiDatePickerMobile"));
|
63
|
-
|
64
35
|
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); }; }
|
65
|
-
|
66
36
|
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; } }
|
67
|
-
|
68
37
|
var HiDatePicker = /*#__PURE__*/function (_React$Component) {
|
69
38
|
(0, _inherits2.default)(HiDatePicker, _React$Component);
|
70
|
-
|
71
39
|
var _super = _createSuper(HiDatePicker);
|
72
|
-
|
73
40
|
function HiDatePicker(props) {
|
74
41
|
var _this;
|
75
|
-
|
76
42
|
(0, _classCallCheck2.default)(this, HiDatePicker);
|
77
43
|
_this = _super.call(this);
|
78
|
-
|
79
44
|
_this.handleInputChange = function (event) {
|
80
45
|
_this.props.onChange(event.target.value);
|
81
46
|
};
|
82
|
-
|
83
47
|
_this.handleKeyDown = function (name) {
|
84
48
|
return function (event) {
|
85
49
|
if (event.key === 'Escape' && !event.shiftKey) {
|
86
50
|
_this.datePickerInput.hideDayPicker();
|
87
|
-
|
88
51
|
event.stopPropagation();
|
89
52
|
}
|
90
53
|
};
|
91
54
|
};
|
92
|
-
|
93
55
|
_this.handleReset = function () {
|
94
56
|
var today = (0, _momentTimezone.default)();
|
95
|
-
|
96
57
|
_this.handleCurrentMonthChange(new Date(today.year(), today.month(), today.date(), today.hours(), today.minutes(), today.seconds(), today.milliseconds()));
|
97
|
-
|
98
58
|
_this.props.onReset();
|
99
59
|
};
|
100
|
-
|
101
60
|
_this.handleDayChange = function (day, modifiers) {
|
102
61
|
if (day) {
|
103
62
|
if (modifiers.selected) {
|
@@ -112,10 +71,8 @@ var HiDatePicker = /*#__PURE__*/function (_React$Component) {
|
|
112
71
|
day.setHours(0, 0);
|
113
72
|
}
|
114
73
|
}
|
115
|
-
|
116
74
|
_this.props.onChange(day);
|
117
75
|
}
|
118
|
-
|
119
76
|
if (day instanceof Date && !_this.props.enableTime && modifiers.selected !== true) {
|
120
77
|
// Hide overlay & remove focus on input
|
121
78
|
document.activeElement.blur();
|
@@ -125,33 +82,25 @@ var HiDatePicker = /*#__PURE__*/function (_React$Component) {
|
|
125
82
|
}
|
126
83
|
}
|
127
84
|
};
|
128
|
-
|
129
85
|
_this.handleChangeMobile = function (event) {
|
130
86
|
var date;
|
131
|
-
|
132
87
|
if (event.target.value) {
|
133
88
|
date = new Date(event.target.value);
|
134
89
|
}
|
135
|
-
|
136
90
|
_this.props.onChange(date);
|
137
91
|
};
|
138
|
-
|
139
92
|
_this.handleCalendarClick = function () {
|
140
93
|
_this.openPanel('calendar');
|
141
94
|
};
|
142
|
-
|
143
95
|
_this.handleClockClick = function () {
|
144
96
|
_this.openPanel('time');
|
145
97
|
};
|
146
|
-
|
147
98
|
_this.handleMonthClick = function () {
|
148
99
|
_this.openPanel('months');
|
149
100
|
};
|
150
|
-
|
151
101
|
_this.handleYearClick = function () {
|
152
102
|
_this.openPanel('years');
|
153
103
|
};
|
154
|
-
|
155
104
|
_this.handleCurrentMonthChange = function (day) {
|
156
105
|
_this.setState({
|
157
106
|
// Current Month can't be anterior to minimumDate
|
@@ -159,45 +108,36 @@ var HiDatePicker = /*#__PURE__*/function (_React$Component) {
|
|
159
108
|
openedPanel: 'calendar'
|
160
109
|
});
|
161
110
|
};
|
162
|
-
|
163
111
|
_this.handleTimeChange = function (date, precision) {
|
164
112
|
_this.props.onChange(date);
|
165
|
-
|
166
113
|
if (date instanceof Date && precision === 'minute') {
|
167
114
|
document.activeElement.blur();
|
168
115
|
}
|
169
116
|
};
|
170
|
-
|
171
117
|
_this.openPanel = function (panel) {
|
172
118
|
_this.setState({
|
173
119
|
openedPanel: panel
|
174
120
|
});
|
175
121
|
};
|
176
|
-
|
177
122
|
_this.renderCaption = function (propsCaption) {
|
178
123
|
return /*#__PURE__*/_react.default.createElement(_Caption.default, (0, _extends2.default)({
|
179
124
|
onMonthClick: _this.handleMonthClick,
|
180
125
|
onYearClick: _this.handleYearClick
|
181
126
|
}, propsCaption));
|
182
127
|
};
|
183
|
-
|
184
128
|
_this.renderOverlay = function (propsOverlay) {
|
185
129
|
switch (_this.state.openedPanel) {
|
186
130
|
case 'time':
|
187
131
|
return _this.renderTimePickerOverlay(propsOverlay);
|
188
|
-
|
189
132
|
case 'months':
|
190
133
|
return _this.renderMonthPickerOverlay(propsOverlay);
|
191
|
-
|
192
134
|
case 'years':
|
193
135
|
return _this.renderYearPickerOverlay(propsOverlay);
|
194
|
-
|
195
136
|
case 'calendar':
|
196
137
|
default:
|
197
138
|
return /*#__PURE__*/_react.default.createElement(_Overlay.default, propsOverlay);
|
198
139
|
}
|
199
140
|
};
|
200
|
-
|
201
141
|
_this.renderMonthPickerOverlay = function (propsOverlay) {
|
202
142
|
var monthPickerProps = {
|
203
143
|
value: _this.state.currentMonth,
|
@@ -207,7 +147,6 @@ var HiDatePicker = /*#__PURE__*/function (_React$Component) {
|
|
207
147
|
key: 'month-picker-overlay'
|
208
148
|
}, monthPickerProps, propsOverlay));
|
209
149
|
};
|
210
|
-
|
211
150
|
_this.renderTimePickerOverlay = function (propsOverlay) {
|
212
151
|
var timePickerProps = {
|
213
152
|
value: _this.props.value,
|
@@ -218,7 +157,6 @@ var HiDatePicker = /*#__PURE__*/function (_React$Component) {
|
|
218
157
|
key: 'time-picker-overlay'
|
219
158
|
}, timePickerProps, propsOverlay));
|
220
159
|
};
|
221
|
-
|
222
160
|
_this.renderYearPickerOverlay = function (propsOverlay) {
|
223
161
|
var yearPickerProps = {
|
224
162
|
value: _this.state.currentMonth,
|
@@ -230,16 +168,13 @@ var HiDatePicker = /*#__PURE__*/function (_React$Component) {
|
|
230
168
|
key: 'year-picker-overlay'
|
231
169
|
}, yearPickerProps, propsOverlay));
|
232
170
|
};
|
233
|
-
|
234
171
|
var _today = (0, _momentTimezone.default)();
|
235
|
-
|
236
172
|
_this.state = {
|
237
173
|
openedPanel: 'calendar',
|
238
174
|
currentMonth: props.value ? props.value : new Date(_today.year(), _today.month(), _today.date(), _today.hours(), _today.minutes(), _today.seconds(), _today.milliseconds())
|
239
175
|
};
|
240
176
|
return _this;
|
241
177
|
}
|
242
|
-
|
243
178
|
(0, _createClass2.default)(HiDatePicker, [{
|
244
179
|
key: "componentWillUnmount",
|
245
180
|
value: function componentWillUnmount() {
|
@@ -249,22 +184,21 @@ var HiDatePicker = /*#__PURE__*/function (_React$Component) {
|
|
249
184
|
key: "render",
|
250
185
|
value: function render() {
|
251
186
|
var _this2 = this;
|
252
|
-
|
253
187
|
var _this$props = this.props,
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
188
|
+
classes = _this$props.classes,
|
189
|
+
disabledDays = _this$props.disabledDays,
|
190
|
+
disablePastDays = _this$props.disablePastDays,
|
191
|
+
disableFutureDays = _this$props.disableFutureDays,
|
192
|
+
enableTime = _this$props.enableTime,
|
193
|
+
format = _this$props.format,
|
194
|
+
locale = _this$props.locale,
|
195
|
+
minimumDate = _this$props.minimumDate,
|
196
|
+
onReset = _this$props.onReset,
|
197
|
+
translations = _this$props.translations,
|
198
|
+
value = _this$props.value,
|
199
|
+
hideOnDayClick = _this$props.hideOnDayClick,
|
200
|
+
HiInputProps = _this$props.HiInputProps,
|
201
|
+
props = (0, _objectWithoutProperties2.default)(_this$props, ["classes", "disabledDays", "disablePastDays", "disableFutureDays", "enableTime", "format", "locale", "minimumDate", "onReset", "translations", "value", "hideOnDayClick", "HiInputProps"]);
|
268
202
|
var currentMonth = this.state.currentMonth;
|
269
203
|
var today = (0, _momentTimezone.default)();
|
270
204
|
var effectiveDisabledDays = (0, _objectSpread2.default)({}, disablePastDays && {
|
@@ -313,11 +247,9 @@ var HiDatePicker = /*#__PURE__*/function (_React$Component) {
|
|
313
247
|
onSubmit: this.props.onSubmit
|
314
248
|
}
|
315
249
|
});
|
316
|
-
|
317
250
|
if (typeof HiInputProps !== "undefined") {
|
318
251
|
inputProps.HiInputProps = (0, _objectSpread2.default)({}, inputProps.HiInputProps, {}, HiInputProps);
|
319
252
|
}
|
320
|
-
|
321
253
|
return /*#__PURE__*/_react.default.createElement("div", {
|
322
254
|
className: classes.root,
|
323
255
|
onKeyDown: this.handleKeyDown()
|
@@ -358,7 +290,6 @@ var HiDatePicker = /*#__PURE__*/function (_React$Component) {
|
|
358
290
|
}]);
|
359
291
|
return HiDatePicker;
|
360
292
|
}(_react.default.Component);
|
361
|
-
|
362
293
|
HiDatePicker.defaultProps = {
|
363
294
|
disabledDays: [],
|
364
295
|
disablePastDays: false,
|
@@ -373,9 +304,7 @@ HiDatePicker.defaultProps = {
|
|
373
304
|
today: 'today'
|
374
305
|
}
|
375
306
|
};
|
376
|
-
|
377
307
|
var _default = (0, _withStyles.default)(_stylesheet.default, {
|
378
308
|
name: 'HmuiHiDatePicker'
|
379
309
|
})(HiDatePicker);
|
380
|
-
|
381
310
|
exports.default = _default;
|
@@ -1,77 +1,55 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
8
7
|
exports.default = void 0;
|
9
|
-
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
11
|
-
|
12
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
13
|
-
|
14
10
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
15
|
-
|
16
11
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
|
17
|
-
|
18
12
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
|
19
|
-
|
20
13
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
|
21
|
-
|
22
14
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
|
23
|
-
|
24
15
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
|
25
|
-
|
26
16
|
var _react = _interopRequireDefault(require("react"));
|
27
|
-
|
28
17
|
var _HiFormControl = _interopRequireDefault(require("../HiForm/HiFormControl"));
|
29
|
-
|
30
18
|
var _momentTimezone = _interopRequireDefault(require("moment-timezone"));
|
31
|
-
|
32
19
|
var _stylesheet = _interopRequireDefault(require("./stylesheet"));
|
33
|
-
|
34
20
|
var _classnames = _interopRequireDefault(require("classnames"));
|
35
|
-
|
36
21
|
var _withStyles = _interopRequireDefault(require("@mui/styles/withStyles"));
|
37
|
-
|
38
22
|
var _HiInput = _interopRequireDefault(require("../HiForm/HiInput"));
|
39
|
-
|
40
23
|
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); }; }
|
41
|
-
|
42
24
|
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; } }
|
43
|
-
|
44
25
|
var HiDatePickerMobile = /*#__PURE__*/function (_React$Component) {
|
45
26
|
(0, _inherits2.default)(HiDatePickerMobile, _React$Component);
|
46
|
-
|
47
27
|
var _super = _createSuper(HiDatePickerMobile);
|
48
|
-
|
49
28
|
function HiDatePickerMobile() {
|
50
29
|
(0, _classCallCheck2.default)(this, HiDatePickerMobile);
|
51
30
|
return _super.apply(this, arguments);
|
52
31
|
}
|
53
|
-
|
54
32
|
(0, _createClass2.default)(HiDatePickerMobile, [{
|
55
33
|
key: "render",
|
56
34
|
value: function render() {
|
57
35
|
var _this$props = this.props,
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
36
|
+
classes = _this$props.classes,
|
37
|
+
id = _this$props.id,
|
38
|
+
label = _this$props.label,
|
39
|
+
required = _this$props.required,
|
40
|
+
disabled = _this$props.disabled,
|
41
|
+
error = _this$props.error,
|
42
|
+
errorText = _this$props.errorText,
|
43
|
+
helperIcon = _this$props.helperIcon,
|
44
|
+
helperText = _this$props.helperText,
|
45
|
+
enableTime = _this$props.enableTime,
|
46
|
+
value = _this$props.value,
|
47
|
+
disablePastDays = _this$props.disablePastDays,
|
48
|
+
disableFutureDays = _this$props.disableFutureDays,
|
49
|
+
minimumDate = _this$props.minimumDate,
|
50
|
+
today = _this$props.today,
|
51
|
+
range = _this$props.range,
|
52
|
+
format = _this$props.format;
|
75
53
|
var addtionalProps = (0, _objectSpread2.default)({}, this.props.disabled && {
|
76
54
|
disabled: "disabled"
|
77
55
|
});
|
@@ -104,7 +82,5 @@ var HiDatePickerMobile = /*#__PURE__*/function (_React$Component) {
|
|
104
82
|
}]);
|
105
83
|
return HiDatePickerMobile;
|
106
84
|
}(_react.default.Component);
|
107
|
-
|
108
85
|
var _default = (0, _withStyles.default)(_stylesheet.default)(HiDatePickerMobile);
|
109
|
-
|
110
86
|
exports.default = _default;
|