@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,44 +1,26 @@
|
|
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 _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
11
|
-
|
12
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
13
|
-
|
14
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
15
|
-
|
16
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
17
|
-
|
18
12
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
|
19
|
-
|
20
13
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
|
21
|
-
|
22
14
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/assertThisInitialized"));
|
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 _classnames = _interopRequireDefault(require("classnames"));
|
33
|
-
|
34
20
|
var _withStyles = _interopRequireDefault(require("@mui/styles/withStyles"));
|
35
|
-
|
36
21
|
var _HiTextField = _interopRequireDefault(require("./HiTextField"));
|
37
|
-
|
38
22
|
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); }; }
|
39
|
-
|
40
|
-
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; } }
|
41
|
-
|
23
|
+
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; } } // @inheritedComponent HiTextField
|
42
24
|
var styles = function styles() {
|
43
25
|
return {
|
44
26
|
inputPassword: {
|
@@ -49,21 +31,16 @@ var styles = function styles() {
|
|
49
31
|
}
|
50
32
|
};
|
51
33
|
};
|
34
|
+
|
52
35
|
/**
|
53
36
|
* Champs input email pour formulaire
|
54
37
|
*/
|
55
|
-
|
56
|
-
|
57
38
|
exports.styles = styles;
|
58
|
-
|
59
39
|
var HiPasswordField = /*#__PURE__*/function (_React$Component) {
|
60
40
|
(0, _inherits2.default)(HiPasswordField, _React$Component);
|
61
|
-
|
62
41
|
var _super = _createSuper(HiPasswordField);
|
63
|
-
|
64
42
|
function HiPasswordField(props) {
|
65
43
|
var _this;
|
66
|
-
|
67
44
|
(0, _classCallCheck2.default)(this, HiPasswordField);
|
68
45
|
_this = _super.call(this, props);
|
69
46
|
_this.state = {
|
@@ -72,7 +49,6 @@ var HiPasswordField = /*#__PURE__*/function (_React$Component) {
|
|
72
49
|
_this.handlePasswordToggle = _this.handlePasswordToggle.bind((0, _assertThisInitialized2.default)(_this));
|
73
50
|
return _this;
|
74
51
|
}
|
75
|
-
|
76
52
|
(0, _createClass2.default)(HiPasswordField, [{
|
77
53
|
key: "handlePasswordToggle",
|
78
54
|
value: function handlePasswordToggle() {
|
@@ -86,9 +62,9 @@ var HiPasswordField = /*#__PURE__*/function (_React$Component) {
|
|
86
62
|
key: "render",
|
87
63
|
value: function render() {
|
88
64
|
var _this$props = this.props,
|
89
|
-
|
90
|
-
|
91
|
-
|
65
|
+
classes = _this$props.classes,
|
66
|
+
HiInputProps = _this$props.HiInputProps,
|
67
|
+
otherProps = (0, _objectWithoutProperties2.default)(_this$props, ["classes", "HiInputProps"]);
|
92
68
|
var endAdornment = this.state.showText ? 'visibility_off' : 'visibility';
|
93
69
|
var type = this.state.showText ? 'text' : 'password';
|
94
70
|
var inputClassName = (0, _classnames.default)((0, _defineProperty2.default)({}, classes.inputPassword, !this.state.showText && otherProps.value !== ""));
|
@@ -107,10 +83,8 @@ var HiPasswordField = /*#__PURE__*/function (_React$Component) {
|
|
107
83
|
}]);
|
108
84
|
return HiPasswordField;
|
109
85
|
}(_react.default.Component);
|
110
|
-
|
111
86
|
var _default = (0, _withStyles.default)(styles, {
|
112
87
|
hiComponent: true,
|
113
88
|
name: 'HmuiHiPasswordField'
|
114
89
|
})(HiPasswordField);
|
115
|
-
|
116
90
|
exports.default = _default;
|
@@ -1,36 +1,22 @@
|
|
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 _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
13
|
-
|
14
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
|
15
|
-
|
16
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
|
17
|
-
|
18
12
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/assertThisInitialized"));
|
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 _HiInput = _interopRequireDefault(require("./HiInput"));
|
29
|
-
|
30
18
|
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); }; }
|
31
|
-
|
32
19
|
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; } }
|
33
|
-
|
34
20
|
/**
|
35
21
|
* Construit une barre de recherche avec icône Search (Magnify),
|
36
22
|
* permet de filtrer une liste d'éléments en spécifiant le nom de la/les propriétés sur lesquelles filtrer,
|
@@ -39,12 +25,9 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
39
25
|
*/
|
40
26
|
var HiSearchField = /*#__PURE__*/function (_React$Component) {
|
41
27
|
(0, _inherits2.default)(HiSearchField, _React$Component);
|
42
|
-
|
43
28
|
var _super = _createSuper(HiSearchField);
|
44
|
-
|
45
29
|
function HiSearchField(props) {
|
46
30
|
var _this;
|
47
|
-
|
48
31
|
(0, _classCallCheck2.default)(this, HiSearchField);
|
49
32
|
_this = _super.call(this, props);
|
50
33
|
_this.state = {
|
@@ -55,7 +38,6 @@ var HiSearchField = /*#__PURE__*/function (_React$Component) {
|
|
55
38
|
_this.handleReset = _this.handleReset.bind((0, _assertThisInitialized2.default)(_this));
|
56
39
|
return _this;
|
57
40
|
}
|
58
|
-
|
59
41
|
(0, _createClass2.default)(HiSearchField, [{
|
60
42
|
key: "filterOnProperties",
|
61
43
|
value: function filterOnProperties(item, search) {
|
@@ -63,17 +45,14 @@ var HiSearchField = /*#__PURE__*/function (_React$Component) {
|
|
63
45
|
// If no properties specify, search on item
|
64
46
|
return item.toString().toLowerCase().search(search.toLowerCase()) !== -1;
|
65
47
|
}
|
66
|
-
|
67
48
|
var searchSucceed = false;
|
68
49
|
this.props.filterPropertyList.forEach(function (filter) {
|
69
50
|
var itemProperty = null;
|
70
|
-
|
71
51
|
if (filter.indexOf('.') > 0) {
|
72
52
|
itemProperty = item[filter.split('.')[0]][filter.split('.')[1]];
|
73
53
|
} else {
|
74
54
|
itemProperty = item[filter];
|
75
55
|
}
|
76
|
-
|
77
56
|
if (itemProperty.toString().toLowerCase().search(search.toLowerCase()) !== -1) {
|
78
57
|
searchSucceed = true;
|
79
58
|
}
|
@@ -84,35 +63,28 @@ var HiSearchField = /*#__PURE__*/function (_React$Component) {
|
|
84
63
|
key: "handleChange",
|
85
64
|
value: function handleChange(event, inputValue) {
|
86
65
|
var _this2 = this;
|
87
|
-
|
88
66
|
var searchedValue;
|
89
|
-
|
90
67
|
if (typeof inputValue !== 'undefined' && typeof event.target.value === 'undefined') {
|
91
68
|
searchedValue = inputValue;
|
92
69
|
} else {
|
93
70
|
searchedValue = event.target.value;
|
94
71
|
}
|
95
|
-
|
96
72
|
this.setState({
|
97
73
|
inputValue: searchedValue
|
98
74
|
});
|
99
|
-
|
100
75
|
if (this.props.onSearch === undefined) {
|
101
76
|
var currentParent = null;
|
102
77
|
var filteredList = [];
|
103
78
|
this.props.itemList.forEach(function (item) {
|
104
79
|
var add = _this2.filterOnProperties(item, searchedValue);
|
105
|
-
|
106
80
|
if (item.hasChildren === true && add === false) {
|
107
81
|
currentParent = item;
|
108
82
|
}
|
109
|
-
|
110
83
|
if (add === true) {
|
111
84
|
if (currentParent !== null && item.parentId === currentParent.id) {
|
112
85
|
filteredList.push(currentParent);
|
113
86
|
currentParent = null;
|
114
87
|
}
|
115
|
-
|
116
88
|
filteredList.push(item);
|
117
89
|
}
|
118
90
|
});
|
@@ -127,7 +99,6 @@ var HiSearchField = /*#__PURE__*/function (_React$Component) {
|
|
127
99
|
this.setState({
|
128
100
|
inputValue: ''
|
129
101
|
});
|
130
|
-
|
131
102
|
if (typeof this.props.onSearch === 'undefined') {
|
132
103
|
this.props.onFilteredList(this.props.itemList);
|
133
104
|
} else {
|
@@ -138,8 +109,8 @@ var HiSearchField = /*#__PURE__*/function (_React$Component) {
|
|
138
109
|
key: "render",
|
139
110
|
value: function render() {
|
140
111
|
var _this$props = this.props,
|
141
|
-
|
142
|
-
|
112
|
+
placeholder = _this$props.placeholder,
|
113
|
+
others = (0, _objectWithoutProperties2.default)(_this$props, ["placeholder"]);
|
143
114
|
return /*#__PURE__*/_react.default.createElement(_HiInput.default, (0, _extends2.default)({
|
144
115
|
placeholder: placeholder,
|
145
116
|
onReset: this.handleReset,
|
@@ -151,7 +122,6 @@ var HiSearchField = /*#__PURE__*/function (_React$Component) {
|
|
151
122
|
}]);
|
152
123
|
return HiSearchField;
|
153
124
|
}(_react.default.Component);
|
154
|
-
|
155
125
|
HiSearchField.defaultProps = {
|
156
126
|
placeholder: 'Search'
|
157
127
|
};
|
package/es/HiForm/HiSlider.js
CHANGED
@@ -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 _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
23
|
-
|
24
15
|
var _react = _interopRequireDefault(require("react"));
|
25
|
-
|
26
16
|
var _withStyles = _interopRequireDefault(require("@mui/styles/withStyles"));
|
27
|
-
|
28
17
|
var _HiFormControl = _interopRequireDefault(require("./HiFormControl"));
|
29
|
-
|
30
18
|
var _HiIcon = _interopRequireDefault(require("../HiIcon/HiIcon"));
|
31
|
-
|
32
19
|
var _classnames = _interopRequireDefault(require("classnames"));
|
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
|
barContainer: {
|
@@ -111,30 +95,22 @@ var styles = function styles(theme) {
|
|
111
95
|
}
|
112
96
|
};
|
113
97
|
};
|
98
|
+
|
114
99
|
/**
|
115
100
|
* HiSlider component
|
116
101
|
*/
|
117
|
-
|
118
|
-
|
119
102
|
exports.styles = styles;
|
120
|
-
|
121
103
|
var HiSlider = /*#__PURE__*/function (_React$Component) {
|
122
104
|
(0, _inherits2.default)(HiSlider, _React$Component);
|
123
|
-
|
124
105
|
var _super = _createSuper(HiSlider);
|
125
|
-
|
126
106
|
function HiSlider(props) {
|
127
107
|
var _this;
|
128
|
-
|
129
108
|
(0, _classCallCheck2.default)(this, HiSlider);
|
130
109
|
_this = _super.call(this, props);
|
131
|
-
|
132
110
|
_this.handleChange = function (event) {
|
133
111
|
_this.props.onChange(parseFloat(event.target.value));
|
134
|
-
|
135
112
|
_this.textValueWidth = _this.textValue.offsetWidth;
|
136
113
|
};
|
137
|
-
|
138
114
|
_this.handleFocus = function (isFocused) {
|
139
115
|
return function () {
|
140
116
|
_this.setState({
|
@@ -142,19 +118,17 @@ var HiSlider = /*#__PURE__*/function (_React$Component) {
|
|
142
118
|
});
|
143
119
|
};
|
144
120
|
};
|
145
|
-
|
146
121
|
_this.state = {
|
147
122
|
focused: false
|
148
123
|
};
|
149
124
|
return _this;
|
150
125
|
}
|
126
|
+
|
151
127
|
/**
|
152
128
|
* Measures several components once they are mounted.
|
153
129
|
* If the value and a label (left or right) are hovered,
|
154
130
|
* we hide this label.
|
155
131
|
*/
|
156
|
-
|
157
|
-
|
158
132
|
(0, _createClass2.default)(HiSlider, [{
|
159
133
|
key: "componentDidMount",
|
160
134
|
value: function componentDidMount() {
|
@@ -162,19 +136,17 @@ var HiSlider = /*#__PURE__*/function (_React$Component) {
|
|
162
136
|
this.rightLabelWidth = this.rightLabel.offsetWidth;
|
163
137
|
this.textValueWidth = this.textValue.offsetWidth;
|
164
138
|
this.barContainerWidth = this.barContainer.offsetWidth;
|
165
|
-
|
166
139
|
var _this$getHovering = this.getHovering(),
|
167
|
-
|
168
|
-
|
169
|
-
|
140
|
+
hoveringLeft = _this$getHovering.hoveringLeft,
|
141
|
+
hoveringRight = _this$getHovering.hoveringRight;
|
170
142
|
if (hoveringLeft || hoveringRight) {
|
171
143
|
this.forceUpdate();
|
172
144
|
}
|
173
145
|
}
|
146
|
+
|
174
147
|
/**
|
175
148
|
* Calculates if the labels are hovered.
|
176
149
|
*/
|
177
|
-
|
178
150
|
}, {
|
179
151
|
key: "getHovering",
|
180
152
|
value: function getHovering() {
|
@@ -190,28 +162,25 @@ var HiSlider = /*#__PURE__*/function (_React$Component) {
|
|
190
162
|
key: "render",
|
191
163
|
value: function render() {
|
192
164
|
var _this2 = this;
|
193
|
-
|
194
165
|
var _this$props = this.props,
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
166
|
+
classes = _this$props.classes,
|
167
|
+
className = _this$props.className,
|
168
|
+
min = _this$props.min,
|
169
|
+
max = _this$props.max,
|
170
|
+
leftLabel = _this$props.leftLabel,
|
171
|
+
rightLabel = _this$props.rightLabel,
|
172
|
+
step = _this$props.step,
|
173
|
+
suffix = _this$props.suffix,
|
174
|
+
id = _this$props.id,
|
175
|
+
label = _this$props.label,
|
176
|
+
value = _this$props.value,
|
177
|
+
theme = _this$props.theme;
|
207
178
|
var focused = this.state.focused;
|
208
179
|
var ratio = (value - min) / (max - min);
|
209
180
|
var percentage = ratio * 100;
|
210
|
-
|
211
181
|
var _this$getHovering2 = this.getHovering(),
|
212
|
-
|
213
|
-
|
214
|
-
|
182
|
+
hoveringLeft = _this$getHovering2.hoveringLeft,
|
183
|
+
hoveringRight = _this$getHovering2.hoveringRight;
|
215
184
|
var barColor = focused ? theme.palette.primary.dark : theme.palette.primary.main;
|
216
185
|
return (
|
217
186
|
/*#__PURE__*/
|
@@ -278,11 +247,9 @@ var HiSlider = /*#__PURE__*/function (_React$Component) {
|
|
278
247
|
}]);
|
279
248
|
return HiSlider;
|
280
249
|
}(_react.default.Component);
|
281
|
-
|
282
250
|
var _default = (0, _withStyles.default)(styles, {
|
283
251
|
hiComponent: true,
|
284
252
|
name: 'HiSlider',
|
285
253
|
withTheme: true
|
286
254
|
})(HiSlider);
|
287
|
-
|
288
255
|
exports.default = _default;
|
package/es/HiForm/HiTextField.js
CHANGED
@@ -1,54 +1,35 @@
|
|
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 _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
|
13
|
-
|
14
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
|
15
|
-
|
16
11
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/assertThisInitialized"));
|
17
|
-
|
18
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
|
19
|
-
|
20
13
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
|
21
|
-
|
22
14
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
|
23
|
-
|
24
15
|
var _react = _interopRequireDefault(require("react"));
|
25
|
-
|
26
16
|
var _HiFormControl = _interopRequireDefault(require("./HiFormControl"));
|
27
|
-
|
28
17
|
var _HiInput = _interopRequireDefault(require("./HiInput"));
|
29
|
-
|
30
18
|
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); }; }
|
31
|
-
|
32
|
-
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; } }
|
33
|
-
|
19
|
+
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; } } // @inheritedComponent TextField
|
34
20
|
/**
|
35
21
|
* Champs input pour formulaire
|
36
22
|
*/
|
37
23
|
var HiTextField = /*#__PURE__*/function (_React$PureComponent) {
|
38
24
|
(0, _inherits2.default)(HiTextField, _React$PureComponent);
|
39
|
-
|
40
25
|
var _super = _createSuper(HiTextField);
|
41
|
-
|
42
26
|
function HiTextField(props) {
|
43
27
|
var _this;
|
44
|
-
|
45
28
|
(0, _classCallCheck2.default)(this, HiTextField);
|
46
29
|
_this = _super.call(this, props);
|
47
|
-
|
48
30
|
_this.focus = function () {
|
49
31
|
_this.input.focus();
|
50
32
|
};
|
51
|
-
|
52
33
|
_this.state = {
|
53
34
|
nbChars: props.value ? props.value.length : 0
|
54
35
|
};
|
@@ -57,7 +38,6 @@ var HiTextField = /*#__PURE__*/function (_React$PureComponent) {
|
|
57
38
|
_this.handleFocus = _this.handleFocus.bind((0, _assertThisInitialized2.default)(_this));
|
58
39
|
return _this;
|
59
40
|
}
|
60
|
-
|
61
41
|
(0, _createClass2.default)(HiTextField, [{
|
62
42
|
key: "handleBlur",
|
63
43
|
value: function handleBlur(event) {
|
@@ -69,12 +49,10 @@ var HiTextField = /*#__PURE__*/function (_React$PureComponent) {
|
|
69
49
|
key: "handleChange",
|
70
50
|
value: function handleChange(event) {
|
71
51
|
var value = event.target.value;
|
72
|
-
|
73
52
|
if (value.length <= this.props.maxLength) {
|
74
53
|
if (this.props.onChange) {
|
75
54
|
this.props.onChange(event);
|
76
55
|
}
|
77
|
-
|
78
56
|
if (this.props.multiline === true) {
|
79
57
|
this.setState({
|
80
58
|
nbChars: value.length
|
@@ -93,28 +71,27 @@ var HiTextField = /*#__PURE__*/function (_React$PureComponent) {
|
|
93
71
|
key: "render",
|
94
72
|
value: function render() {
|
95
73
|
var _this2 = this;
|
96
|
-
|
97
74
|
var _this$props = this.props,
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
75
|
+
className = _this$props.className,
|
76
|
+
disabled = _this$props.disabled,
|
77
|
+
error = _this$props.error,
|
78
|
+
errorText = _this$props.errorText,
|
79
|
+
id = _this$props.id,
|
80
|
+
label = _this$props.label,
|
81
|
+
helperText = _this$props.helperText,
|
82
|
+
helperIcon = _this$props.helperIcon,
|
83
|
+
fullWidth = _this$props.fullWidth,
|
84
|
+
required = _this$props.required,
|
85
|
+
type = _this$props.type,
|
86
|
+
multiline = _this$props.multiline,
|
87
|
+
placeholder = _this$props.placeholder,
|
88
|
+
value = _this$props.value,
|
89
|
+
HiInputProps = _this$props.HiInputProps,
|
90
|
+
HiInputLabelProps = _this$props.HiInputLabelProps,
|
91
|
+
name = _this$props.name,
|
92
|
+
rows = _this$props.rows,
|
93
|
+
maxLength = _this$props.maxLength,
|
94
|
+
customRef = _this$props.customRef;
|
118
95
|
var nbChars = this.state.nbChars;
|
119
96
|
return /*#__PURE__*/_react.default.createElement(_HiFormControl.default, {
|
120
97
|
label: label,
|
@@ -156,7 +133,6 @@ var HiTextField = /*#__PURE__*/function (_React$PureComponent) {
|
|
156
133
|
}]);
|
157
134
|
return HiTextField;
|
158
135
|
}(_react.default.PureComponent);
|
159
|
-
|
160
136
|
HiTextField.defaultProps = {
|
161
137
|
name: '',
|
162
138
|
type: 'text',
|