@hipay/hipay-material-ui 2.3.1-rc4 → 2.3.1-rc5
Sign up to get free protection for your applications and to get access to all the features.
- package/HiAlertModal/HiAlertModal.js +77 -48
- package/HiAlertModal/index.js +15 -1
- package/HiAppBar/HiAppBar.js +63 -34
- package/HiAppBar/index.js +15 -1
- package/HiBadge/HiBadge.js +29 -10
- package/HiBadge/index.js +15 -1
- package/HiBreadcrumb/HiBreadcrumb.js +41 -27
- package/HiBreadcrumb/HiStep.js +58 -35
- package/HiBreadcrumb/HiStepConnector.js +58 -33
- package/HiBreadcrumb/HiStepContent.js +47 -26
- package/HiBreadcrumb/HiStepIcon.js +47 -27
- package/HiBreadcrumb/HiStepLabel.js +62 -37
- package/HiBreadcrumb/HiStepper.js +44 -24
- package/HiBreadcrumb/index.js +15 -1
- package/HiButton/HiButton.js +27 -9
- package/HiButton/index.js +13 -2
- package/HiCell/CellAddress.js +39 -21
- package/HiCell/CellDate.js +44 -27
- package/HiCell/CellIcon.js +48 -29
- package/HiCell/CellImage.js +41 -24
- package/HiCell/CellNumeric.js +45 -26
- package/HiCell/CellPinToAction.js +41 -20
- package/HiCell/CellRate.js +56 -33
- package/HiCell/CellSentinel.js +41 -23
- package/HiCell/CellSentinelScore.js +43 -24
- package/HiCell/CellText.js +54 -37
- package/HiCell/CellTextStyled.js +21 -8
- package/HiCell/index.js +79 -9
- package/HiCheckbox/HiCheckbox.js +61 -36
- package/HiCheckbox/index.js +15 -1
- package/HiChip/HiChip.js +44 -24
- package/HiChip/HiChipSwitch.js +73 -47
- package/HiChip/index.js +23 -2
- package/HiColoredLabel/HiColoredLabel.js +52 -28
- package/HiColoredLabel/index.js +15 -1
- package/HiDatePicker/Caption.js +28 -11
- package/HiDatePicker/HiDatePicker.js +131 -101
- package/HiDatePicker/HiDatePickerMobile.js +54 -32
- package/HiDatePicker/HiDateRangePicker.js +168 -139
- package/HiDatePicker/HiDateRangeSelector.js +105 -71
- package/HiDatePicker/ListPicker.js +54 -34
- package/HiDatePicker/NavBar.js +45 -18
- package/HiDatePicker/Overlays/CustomOverlayLayout.js +40 -23
- package/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +39 -22
- package/HiDatePicker/Overlays/MonthPickerOverlay.js +44 -30
- package/HiDatePicker/Overlays/Overlay.js +35 -18
- package/HiDatePicker/Overlays/TimePickerOverlay.js +72 -48
- package/HiDatePicker/Overlays/YearPickerOverlay.js +44 -30
- package/HiDatePicker/Overlays/index.js +47 -5
- package/HiDatePicker/Weekday.js +13 -3
- package/HiDatePicker/hiLocaleUtils.js +8 -1
- package/HiDatePicker/index.js +15 -1
- package/HiDatePicker/stylesheet.js +22 -9
- package/HiDotsStepper/HiDot.js +56 -31
- package/HiDotsStepper/HiDotsStepper.js +47 -28
- package/HiDotsStepper/index.js +23 -2
- package/HiExpansionPanel/HiExpansionPanel.js +73 -43
- package/HiExpansionPanel/index.js +13 -2
- package/HiForm/HiAddressField.js +46 -29
- package/HiForm/HiEmailField.js +45 -27
- package/HiForm/HiFormControl.js +105 -72
- package/HiForm/HiFormLabel.js +53 -30
- package/HiForm/HiInput.js +89 -62
- package/HiForm/HiPasswordField.js +55 -29
- package/HiForm/HiSearchField.js +43 -28
- package/HiForm/HiSlider.js +64 -41
- package/HiForm/HiTextField.js +46 -29
- package/HiForm/HiUpload.js +76 -53
- package/HiForm/HiUploadField.js +40 -25
- package/HiForm/HiUploadInput.js +84 -56
- package/HiForm/index.js +95 -11
- package/HiIcon/HiIcon.js +44 -22
- package/HiIcon/index.js +15 -1
- package/HiIconButton/HiIconButton.js +40 -18
- package/HiIconButton/index.js +15 -1
- package/HiLoader/HiLoader.js +24 -9
- package/HiLoader/index.js +15 -1
- package/HiMap/HiMap.js +76 -51
- package/HiMap/HiMapExpand.js +64 -39
- package/HiMap/index.js +23 -2
- package/HiNotice/HiKPI.js +56 -33
- package/HiNotice/HiKPINotice.js +21 -7
- package/HiNotice/index.js +23 -2
- package/HiPaymentMeans/HiPaymentMeans.js +133 -112
- package/HiPaymentMeans/index.js +15 -1
- package/HiPdfReader/HiPdfReader.js +78 -52
- package/HiPdfReader/index.js +15 -1
- package/HiPin/HiPin.js +30 -9
- package/HiPin/index.js +15 -1
- package/HiRadio/HiRadio.js +24 -7
- package/HiRadio/index.js +15 -1
- package/HiSelect/HiDynamicSelect.js +58 -40
- package/HiSelect/HiDynamicSelectField.js +40 -22
- package/HiSelect/HiNestedSelect.js +85 -55
- package/HiSelect/HiNestedSelectContent.js +72 -46
- package/HiSelect/HiNestedSelectField.js +40 -22
- package/HiSelect/HiSelect.js +161 -123
- package/HiSelect/HiSelectContent.js +104 -73
- package/HiSelect/HiSelectField.js +40 -22
- package/HiSelect/HiSelectInput.js +94 -63
- package/HiSelect/HiSelectMobile.js +54 -35
- package/HiSelect/HiSuggestSelect.js +83 -56
- package/HiSelect/HiSuggestSelectField.js +40 -22
- package/HiSelect/index.js +85 -8
- package/HiSelectableList/HiSelectableList.js +80 -49
- package/HiSelectableList/HiSelectableListHierarchic.js +55 -35
- package/HiSelectableList/HiSelectableListItem.js +101 -66
- package/HiSelectableList/index.js +31 -3
- package/HiSwitch/HiSwitch.js +45 -20
- package/HiSwitch/HiSwitchState.js +36 -15
- package/HiSwitch/index.js +23 -2
- package/HiTable/HiCellBuilder.js +69 -43
- package/HiTable/HiTable.js +46 -28
- package/HiTable/HiTableBody.js +34 -19
- package/HiTable/HiTableHeader.js +50 -29
- package/HiTable/HiTableRow.js +56 -29
- package/HiTable/constants.js +94 -43
- package/HiTable/index.js +15 -1
- package/es/HiAlertModal/HiAlertModal.js +77 -48
- package/es/HiAlertModal/index.js +15 -1
- package/es/HiAppBar/HiAppBar.js +63 -34
- package/es/HiAppBar/index.js +15 -1
- package/es/HiBadge/HiBadge.js +29 -10
- package/es/HiBadge/index.js +15 -1
- package/es/HiBreadcrumb/HiBreadcrumb.js +41 -27
- package/es/HiBreadcrumb/HiStep.js +58 -35
- package/es/HiBreadcrumb/HiStepConnector.js +58 -33
- package/es/HiBreadcrumb/HiStepContent.js +47 -26
- package/es/HiBreadcrumb/HiStepIcon.js +47 -27
- package/es/HiBreadcrumb/HiStepLabel.js +62 -37
- package/es/HiBreadcrumb/HiStepper.js +44 -24
- package/es/HiBreadcrumb/index.js +15 -1
- package/es/HiButton/HiButton.js +27 -9
- package/es/HiButton/index.js +13 -2
- package/es/HiCell/CellAddress.js +39 -21
- package/es/HiCell/CellDate.js +44 -27
- package/es/HiCell/CellIcon.js +48 -29
- package/es/HiCell/CellImage.js +41 -24
- package/es/HiCell/CellNumeric.js +45 -26
- package/es/HiCell/CellPinToAction.js +41 -20
- package/es/HiCell/CellRate.js +56 -33
- package/es/HiCell/CellSentinel.js +41 -23
- package/es/HiCell/CellSentinelScore.js +43 -24
- package/es/HiCell/CellText.js +54 -37
- package/es/HiCell/CellTextStyled.js +21 -8
- package/es/HiCell/index.js +79 -9
- package/es/HiCheckbox/HiCheckbox.js +61 -36
- package/es/HiCheckbox/index.js +15 -1
- package/es/HiChip/HiChip.js +44 -24
- package/es/HiChip/HiChipSwitch.js +73 -47
- package/es/HiChip/index.js +23 -2
- package/es/HiColoredLabel/HiColoredLabel.js +52 -28
- package/es/HiColoredLabel/index.js +15 -1
- package/es/HiDatePicker/Caption.js +28 -11
- package/es/HiDatePicker/HiDatePicker.js +131 -101
- package/es/HiDatePicker/HiDatePickerMobile.js +54 -32
- package/es/HiDatePicker/HiDateRangePicker.js +168 -139
- package/es/HiDatePicker/HiDateRangeSelector.js +105 -71
- package/es/HiDatePicker/ListPicker.js +54 -34
- package/es/HiDatePicker/NavBar.js +45 -18
- package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +40 -23
- package/es/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +39 -22
- package/es/HiDatePicker/Overlays/MonthPickerOverlay.js +44 -30
- package/es/HiDatePicker/Overlays/Overlay.js +35 -18
- package/es/HiDatePicker/Overlays/TimePickerOverlay.js +72 -48
- package/es/HiDatePicker/Overlays/YearPickerOverlay.js +44 -30
- package/es/HiDatePicker/Overlays/index.js +47 -5
- package/es/HiDatePicker/Weekday.js +13 -3
- package/es/HiDatePicker/hiLocaleUtils.js +8 -1
- package/es/HiDatePicker/index.js +15 -1
- package/es/HiDatePicker/stylesheet.js +22 -9
- package/es/HiDotsStepper/HiDot.js +56 -31
- package/es/HiDotsStepper/HiDotsStepper.js +47 -28
- package/es/HiDotsStepper/index.js +23 -2
- package/es/HiExpansionPanel/HiExpansionPanel.js +73 -43
- package/es/HiExpansionPanel/index.js +13 -2
- package/es/HiForm/HiAddressField.js +46 -29
- package/es/HiForm/HiEmailField.js +45 -27
- package/es/HiForm/HiFormControl.js +105 -72
- package/es/HiForm/HiFormLabel.js +53 -30
- package/es/HiForm/HiInput.js +89 -62
- package/es/HiForm/HiPasswordField.js +55 -29
- package/es/HiForm/HiSearchField.js +43 -28
- package/es/HiForm/HiSlider.js +64 -41
- package/es/HiForm/HiTextField.js +46 -29
- package/es/HiForm/HiUpload.js +76 -53
- package/es/HiForm/HiUploadField.js +40 -25
- package/es/HiForm/HiUploadInput.js +84 -56
- package/es/HiForm/index.js +95 -11
- package/es/HiIcon/HiIcon.js +44 -22
- package/es/HiIcon/index.js +15 -1
- package/es/HiIconButton/HiIconButton.js +40 -18
- package/es/HiIconButton/index.js +15 -1
- package/es/HiLoader/HiLoader.js +24 -9
- package/es/HiLoader/index.js +15 -1
- package/es/HiMap/HiMap.js +76 -51
- package/es/HiMap/HiMapExpand.js +64 -39
- package/es/HiMap/index.js +23 -2
- package/es/HiNotice/HiKPI.js +56 -33
- package/es/HiNotice/HiKPINotice.js +21 -7
- package/es/HiNotice/index.js +23 -2
- package/es/HiPaymentMeans/HiPaymentMeans.js +133 -112
- package/es/HiPaymentMeans/index.js +15 -1
- package/es/HiPdfReader/HiPdfReader.js +78 -52
- package/es/HiPdfReader/index.js +15 -1
- package/es/HiPin/HiPin.js +30 -9
- package/es/HiPin/index.js +15 -1
- package/es/HiRadio/HiRadio.js +24 -7
- package/es/HiRadio/index.js +15 -1
- package/es/HiSelect/HiDynamicSelect.js +58 -40
- package/es/HiSelect/HiDynamicSelectField.js +40 -22
- package/es/HiSelect/HiNestedSelect.js +85 -55
- package/es/HiSelect/HiNestedSelectContent.js +72 -46
- package/es/HiSelect/HiNestedSelectField.js +40 -22
- package/es/HiSelect/HiSelect.js +161 -123
- package/es/HiSelect/HiSelectContent.js +104 -73
- package/es/HiSelect/HiSelectField.js +40 -22
- package/es/HiSelect/HiSelectInput.js +94 -63
- package/es/HiSelect/HiSelectMobile.js +54 -35
- package/es/HiSelect/HiSuggestSelect.js +83 -56
- package/es/HiSelect/HiSuggestSelectField.js +40 -22
- package/es/HiSelect/index.js +85 -8
- package/es/HiSelectableList/HiSelectableList.js +80 -49
- package/es/HiSelectableList/HiSelectableListHierarchic.js +55 -35
- package/es/HiSelectableList/HiSelectableListItem.js +101 -66
- package/es/HiSelectableList/index.js +31 -3
- package/es/HiSwitch/HiSwitch.js +45 -20
- package/es/HiSwitch/HiSwitchState.js +36 -15
- package/es/HiSwitch/index.js +23 -2
- package/es/HiTable/HiCellBuilder.js +69 -43
- package/es/HiTable/HiTable.js +46 -28
- package/es/HiTable/HiTableBody.js +34 -19
- package/es/HiTable/HiTableHeader.js +50 -29
- package/es/HiTable/HiTableRow.js +56 -29
- package/es/HiTable/constants.js +94 -43
- package/es/HiTable/index.js +15 -1
- package/es/hi-svg-icons/HiAccount.js +36 -18
- package/es/hi-svg-icons/HiActivity.js +35 -17
- package/es/hi-svg-icons/HiAll.js +42 -22
- package/es/hi-svg-icons/HiBilling.js +36 -18
- package/es/hi-svg-icons/HiBriefcaseRescue.js +26 -10
- package/es/hi-svg-icons/HiCatalog.js +36 -18
- package/es/hi-svg-icons/HiCustomer.js +36 -18
- package/es/hi-svg-icons/HiDownload.js +25 -11
- package/es/hi-svg-icons/HiFinance.js +36 -18
- package/es/hi-svg-icons/HiPermission.js +35 -17
- package/es/hi-svg-icons/HiRoute.js +36 -18
- package/es/hi-svg-icons/HiSettlement.js +36 -18
- package/es/hi-svg-icons/HiSizeLarge.js +27 -12
- package/es/hi-svg-icons/HiSizeMedium.js +25 -11
- package/es/hi-svg-icons/HiSizeSmall.js +25 -11
- package/es/hi-svg-icons/HiTransaction.js +36 -18
- package/es/hi-svg-icons/HiUser.js +36 -18
- package/es/hi-svg-icons/HiWidget.js +42 -22
- package/es/hi-svg-icons/index.js +151 -18
- package/es/hi-svg-icons/index.text.js +21 -11
- package/es/styleguide/Wrapper.js +36 -19
- package/es/styles/MuiThemeProvider.js +57 -39
- package/es/styles/colorManipulator.js +44 -16
- package/es/styles/createBreakpoints.js +20 -6
- package/es/styles/createGenerateClassName.js +15 -5
- package/es/styles/createMixins.js +19 -8
- package/es/styles/createMuiTheme.js +53 -34
- package/es/styles/createPalette.js +50 -30
- package/es/styles/createStyles.js +8 -1
- package/es/styles/createTypography.js +30 -18
- package/es/styles/getStylesCreator.js +24 -11
- package/es/styles/getThemeProps.js +9 -1
- package/es/styles/index.js +47 -5
- package/es/styles/jssPreset.js +25 -9
- package/es/styles/mergeClasses.js +19 -7
- package/es/styles/shadows.js +8 -1
- package/es/styles/shape.js +8 -1
- package/es/styles/spacing.js +9 -1
- package/es/styles/themeListener.js +18 -5
- package/es/styles/transitions.js +38 -18
- package/es/styles/zIndex.js +8 -1
- package/es/test-utils/createMount.js +22 -11
- package/es/test-utils/createRender.js +19 -8
- package/es/test-utils/createShallow.js +23 -13
- package/es/test-utils/getClasses.js +11 -2
- package/es/test-utils/index.js +47 -5
- package/es/test-utils/until.js +16 -6
- package/es/test-utils/unwrap.js +8 -1
- package/es/theme/palette.js +10 -2
- package/es/theme/typography.js +11 -3
- package/es/theme.js +13 -4
- package/es/transitions/utils.js +13 -2
- package/es/utils/exactProp.js +18 -5
- package/es/utils/helpers.js +55 -18
- package/es/withMobileDialog/index.js +15 -1
- package/es/withMobileDialog/withMobileDialog.js +22 -7
- package/hi-svg-icons/HiAccount.js +36 -18
- package/hi-svg-icons/HiActivity.js +35 -17
- package/hi-svg-icons/HiAll.js +42 -22
- package/hi-svg-icons/HiBilling.js +36 -18
- package/hi-svg-icons/HiBriefcaseRescue.js +26 -10
- package/hi-svg-icons/HiCatalog.js +36 -18
- package/hi-svg-icons/HiCustomer.js +36 -18
- package/hi-svg-icons/HiDownload.js +25 -11
- package/hi-svg-icons/HiFinance.js +36 -18
- package/hi-svg-icons/HiPermission.js +35 -17
- package/hi-svg-icons/HiRoute.js +36 -18
- package/hi-svg-icons/HiSettlement.js +36 -18
- package/hi-svg-icons/HiSizeLarge.js +27 -12
- package/hi-svg-icons/HiSizeMedium.js +25 -11
- package/hi-svg-icons/HiSizeSmall.js +25 -11
- package/hi-svg-icons/HiTransaction.js +36 -18
- package/hi-svg-icons/HiUser.js +36 -18
- package/hi-svg-icons/HiWidget.js +42 -22
- package/hi-svg-icons/index.js +151 -18
- package/hi-svg-icons/index.text.js +21 -11
- package/package.json +2 -1
- package/styleguide/Wrapper.js +36 -19
- package/styles/MuiThemeProvider.js +57 -39
- package/styles/colorManipulator.js +44 -16
- package/styles/createBreakpoints.js +20 -6
- package/styles/createGenerateClassName.js +15 -5
- package/styles/createMixins.js +19 -8
- package/styles/createMuiTheme.js +53 -34
- package/styles/createPalette.js +50 -30
- package/styles/createStyles.js +8 -1
- package/styles/createTypography.js +30 -18
- package/styles/getStylesCreator.js +24 -11
- package/styles/getThemeProps.js +9 -1
- package/styles/index.js +47 -5
- package/styles/jssPreset.js +25 -9
- package/styles/mergeClasses.js +19 -7
- package/styles/shadows.js +8 -1
- package/styles/shape.js +8 -1
- package/styles/spacing.js +9 -1
- package/styles/themeListener.js +18 -5
- package/styles/transitions.js +38 -18
- package/styles/zIndex.js +8 -1
- package/test-utils/createMount.js +22 -11
- package/test-utils/createRender.js +19 -8
- package/test-utils/createShallow.js +23 -13
- package/test-utils/getClasses.js +11 -2
- package/test-utils/index.js +47 -5
- package/test-utils/until.js +16 -6
- package/test-utils/unwrap.js +8 -1
- package/theme/palette.js +10 -2
- package/theme/typography.js +11 -3
- package/theme.js +13 -4
- package/transitions/utils.js +13 -2
- package/utils/exactProp.js +18 -5
- package/utils/helpers.js +55 -18
- package/withMobileDialog/index.js +15 -1
- package/withMobileDialog/withMobileDialog.js +22 -7
- package/App.test.js +0 -8
- package/HiAlertModal/HiAlertModal.test.js +0 -189
- package/HiBadge/HiBadge.test.js +0 -49
- package/HiBreadcrumb/HiBreadcrumb.test.js +0 -44
- package/HiBreadcrumb/HiStep.test.js +0 -47
- package/HiBreadcrumb/HiStepConnector.test.js +0 -113
- package/HiBreadcrumb/HiStepContent.test.js +0 -32
- package/HiBreadcrumb/HiStepIcon.test.js +0 -65
- package/HiBreadcrumb/HiStepLabel.test.js +0 -30
- package/HiBreadcrumb/HiStepper.test.js +0 -33
- package/HiCell/CellAddress.test.js +0 -75
- package/HiCell/CellDate.test.js +0 -173
- package/HiCell/CellIcon.test.js +0 -57
- package/HiCell/CellImage.test.js +0 -49
- package/HiCell/CellNumeric.test.js +0 -46
- package/HiCell/CellRate.test.js +0 -73
- package/HiCell/CellSentinel.test.js +0 -48
- package/HiCell/CellText.test.js +0 -76
- package/HiCheckbox/HiCheckbox.test.js +0 -55
- package/HiChip/HiChip.test.js +0 -136
- package/HiChip/HiChipSwitch.test.js +0 -99
- package/HiColoredLabel/HiColoredLabel.test.js +0 -96
- package/HiDatePicker/Caption.test.js +0 -65
- package/HiDatePicker/HiDatePicker.test.js +0 -370
- package/HiDatePicker/HiDateRangePicker.test.js +0 -703
- package/HiDatePicker/HiDateRangeSelector.test.js +0 -193
- package/HiDatePicker/ListPicker.test.js +0 -53
- package/HiDatePicker/NavBar.test.js +0 -39
- package/HiDatePicker/Overlays/MonthPickerOverlay.test.js +0 -50
- package/HiDatePicker/Overlays/Overlay.test.js +0 -20
- package/HiDatePicker/Overlays/TimePickerOverlay.test.js +0 -48
- package/HiDatePicker/Overlays/YearPickerOverlay.test.js +0 -79
- package/HiDatePicker/hiLocaleUtils.test.js +0 -51
- package/HiDotsStepper/HiDot.test.js +0 -55
- package/HiDotsStepper/HiDotsStepper.test.js +0 -90
- package/HiForm/HiAddressField.test.js +0 -79
- package/HiForm/HiEmailField.test.js +0 -19
- package/HiForm/HiFormControl.test.js +0 -195
- package/HiForm/HiFormLabel.test.js +0 -66
- package/HiForm/HiInput.test.js +0 -202
- package/HiForm/HiPasswordField.test.js +0 -60
- package/HiForm/HiSearchField.test.js +0 -193
- package/HiForm/HiSlider.test.js +0 -99
- package/HiForm/HiTextField.test.js +0 -254
- package/HiForm/HiUpload.test.js +0 -241
- package/HiForm/HiUploadField.test.js +0 -55
- package/HiForm/HiUploadInput.test.js +0 -148
- package/HiIconButton/HiIconButton.test.js +0 -69
- package/HiLoader/HiLoader.test.js +0 -18
- package/HiMap/HiMap.test.js +0 -29
- package/HiMap/HiMapExpand.test.js +0 -48
- package/HiNotice/HiKPI.test.js +0 -171
- package/HiNotice/HiKPINotice.test.js +0 -88
- package/HiPaymentMeans/HiPaymentMeans.test.js +0 -162
- package/HiPin/HiPin.test.js +0 -61
- package/HiRadio/HiRadio.test.js +0 -57
- package/HiSelect/HiSelect.test.js +0 -1092
- package/HiSelect/HiSelectInput.test.js +0 -21
- package/HiSelectableList/HiSelectableList.test.js +0 -173
- package/HiSelectableList/HiSelectableListItem.test.js +0 -97
- package/HiSwitch/HiSwitch.test.js +0 -41
- package/HiSwitch/HiSwitchState.test.js +0 -76
- package/HiTable/HiTable.test.js +0 -29
- package/es/App.test.js +0 -8
- package/es/HiAlertModal/HiAlertModal.test.js +0 -189
- package/es/HiBadge/HiBadge.test.js +0 -49
- package/es/HiBreadcrumb/HiBreadcrumb.test.js +0 -44
- package/es/HiBreadcrumb/HiStep.test.js +0 -47
- package/es/HiBreadcrumb/HiStepConnector.test.js +0 -113
- package/es/HiBreadcrumb/HiStepContent.test.js +0 -32
- package/es/HiBreadcrumb/HiStepIcon.test.js +0 -65
- package/es/HiBreadcrumb/HiStepLabel.test.js +0 -30
- package/es/HiBreadcrumb/HiStepper.test.js +0 -33
- package/es/HiCell/CellAddress.test.js +0 -75
- package/es/HiCell/CellDate.test.js +0 -173
- package/es/HiCell/CellIcon.test.js +0 -57
- package/es/HiCell/CellImage.test.js +0 -49
- package/es/HiCell/CellNumeric.test.js +0 -46
- package/es/HiCell/CellRate.test.js +0 -73
- package/es/HiCell/CellSentinel.test.js +0 -48
- package/es/HiCell/CellText.test.js +0 -76
- package/es/HiCheckbox/HiCheckbox.test.js +0 -55
- package/es/HiChip/HiChip.test.js +0 -136
- package/es/HiChip/HiChipSwitch.test.js +0 -99
- package/es/HiColoredLabel/HiColoredLabel.test.js +0 -96
- package/es/HiDatePicker/Caption.test.js +0 -65
- package/es/HiDatePicker/HiDatePicker.test.js +0 -370
- package/es/HiDatePicker/HiDateRangePicker.test.js +0 -703
- package/es/HiDatePicker/HiDateRangeSelector.test.js +0 -193
- package/es/HiDatePicker/ListPicker.test.js +0 -53
- package/es/HiDatePicker/NavBar.test.js +0 -39
- package/es/HiDatePicker/Overlays/MonthPickerOverlay.test.js +0 -50
- package/es/HiDatePicker/Overlays/Overlay.test.js +0 -20
- package/es/HiDatePicker/Overlays/TimePickerOverlay.test.js +0 -48
- package/es/HiDatePicker/Overlays/YearPickerOverlay.test.js +0 -79
- package/es/HiDatePicker/hiLocaleUtils.test.js +0 -51
- package/es/HiDotsStepper/HiDot.test.js +0 -55
- package/es/HiDotsStepper/HiDotsStepper.test.js +0 -90
- package/es/HiForm/HiAddressField.test.js +0 -79
- package/es/HiForm/HiEmailField.test.js +0 -19
- package/es/HiForm/HiFormControl.test.js +0 -195
- package/es/HiForm/HiFormLabel.test.js +0 -66
- package/es/HiForm/HiInput.test.js +0 -202
- package/es/HiForm/HiPasswordField.test.js +0 -60
- package/es/HiForm/HiSearchField.test.js +0 -193
- package/es/HiForm/HiSlider.test.js +0 -99
- package/es/HiForm/HiTextField.test.js +0 -254
- package/es/HiForm/HiUpload.test.js +0 -241
- package/es/HiForm/HiUploadField.test.js +0 -55
- package/es/HiForm/HiUploadInput.test.js +0 -148
- package/es/HiIconButton/HiIconButton.test.js +0 -69
- package/es/HiLoader/HiLoader.test.js +0 -18
- package/es/HiMap/HiMap.test.js +0 -29
- package/es/HiMap/HiMapExpand.test.js +0 -48
- package/es/HiNotice/HiKPI.test.js +0 -171
- package/es/HiNotice/HiKPINotice.test.js +0 -88
- package/es/HiPaymentMeans/HiPaymentMeans.test.js +0 -162
- package/es/HiPin/HiPin.test.js +0 -61
- package/es/HiRadio/HiRadio.test.js +0 -57
- package/es/HiSelect/HiSelect.test.js +0 -1092
- package/es/HiSelect/HiSelectInput.test.js +0 -21
- package/es/HiSelectableList/HiSelectableList.test.js +0 -173
- package/es/HiSelectableList/HiSelectableListItem.test.js +0 -97
- package/es/HiSwitch/HiSwitch.test.js +0 -41
- package/es/HiSwitch/HiSwitchState.test.js +0 -76
- package/es/HiTable/HiTable.test.js +0 -29
- package/es/styles/colorManipulator.test.js +0 -242
- package/es/styles/createBreakpoints.test.js +0 -48
- package/es/styles/createGenerateClassName.test.js +0 -141
- package/es/styles/createMixins.test.js +0 -24
- package/es/styles/createMuiTheme.test.js +0 -67
- package/es/styles/createPalette.test.js +0 -159
- package/es/styles/createStyles.test.js +0 -8
- package/es/styles/createTypography.test.js +0 -60
- package/es/styles/getStylesCreator.test.js +0 -92
- package/es/styles/getThemeProps.test.js +0 -39
- package/es/styles/themeListener.test.js +0 -26
- package/es/styles/transitions.test.js +0 -208
- package/es/test-utils/until.test.js +0 -157
- package/es/withMobileDialog/withMobileDialog.test.js +0 -67
- package/styles/colorManipulator.test.js +0 -242
- package/styles/createBreakpoints.test.js +0 -48
- package/styles/createGenerateClassName.test.js +0 -141
- package/styles/createMixins.test.js +0 -24
- package/styles/createMuiTheme.test.js +0 -67
- package/styles/createPalette.test.js +0 -159
- package/styles/createStyles.test.js +0 -8
- package/styles/createTypography.test.js +0 -60
- package/styles/getStylesCreator.test.js +0 -92
- package/styles/getThemeProps.test.js +0 -39
- package/styles/themeListener.test.js +0 -26
- package/styles/transitions.test.js +0 -208
- package/test-utils/until.test.js +0 -157
- package/withMobileDialog/withMobileDialog.test.js +0 -67
package/es/HiForm/HiInput.js
CHANGED
@@ -1,21 +1,45 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.default = exports.styles = void 0;
|
9
|
+
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
11
|
+
|
12
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
|
13
|
+
|
14
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
|
15
|
+
|
16
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
|
17
|
+
|
18
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
|
19
|
+
|
20
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/assertThisInitialized"));
|
21
|
+
|
22
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
|
23
|
+
|
24
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
25
|
+
|
26
|
+
var _react = _interopRequireDefault(require("react"));
|
27
|
+
|
28
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
29
|
+
|
30
|
+
var _index = _interopRequireDefault(require("keycode/index"));
|
31
|
+
|
32
|
+
var _Input = _interopRequireDefault(require("@material-ui/core/Input"));
|
33
|
+
|
34
|
+
var _HiIcon = _interopRequireDefault(require("../HiIcon"));
|
35
|
+
|
36
|
+
var _HiIconButton = _interopRequireDefault(require("../HiIconButton"));
|
37
|
+
|
38
|
+
var _styles = require("@material-ui/core/styles");
|
39
|
+
|
40
|
+
var styles = function styles(theme) {
|
17
41
|
return {
|
18
|
-
root:
|
42
|
+
root: (0, _objectSpread2.default)({
|
19
43
|
position: 'relative'
|
20
44
|
}, theme.typography.b1, {
|
21
45
|
borderBottom: "1px solid ".concat(theme.palette.input.bottomLine),
|
@@ -87,13 +111,13 @@ export var styles = function styles(theme) {
|
|
87
111
|
// Ajout d'1px pour ne pas avoir de décalage en mode error avec le border right
|
88
112
|
marginRight: '-1px'
|
89
113
|
},
|
90
|
-
input:
|
114
|
+
input: (0, _objectSpread2.default)({}, theme.typography.b1, {
|
91
115
|
fontWeight: theme.typography.fontWeightRegular,
|
92
116
|
caretColor: theme.palette.primary.main,
|
93
117
|
display: 'flex',
|
94
118
|
alignItems: 'center'
|
95
119
|
}),
|
96
|
-
inputPropsClassName:
|
120
|
+
inputPropsClassName: (0, _objectSpread2.default)({}, theme.typography.b1, {
|
97
121
|
padding: 0
|
98
122
|
}),
|
99
123
|
inputText: {
|
@@ -127,20 +151,27 @@ export var styles = function styles(theme) {
|
|
127
151
|
};
|
128
152
|
};
|
129
153
|
|
154
|
+
exports.styles = styles;
|
155
|
+
|
156
|
+
var _ref = _react.default.createElement(_HiIcon.default, {
|
157
|
+
icon: "close",
|
158
|
+
size: 20,
|
159
|
+
color: "neutral"
|
160
|
+
});
|
161
|
+
|
130
162
|
var HiInput =
|
131
163
|
/*#__PURE__*/
|
132
164
|
function (_React$PureComponent) {
|
133
|
-
|
165
|
+
(0, _inherits2.default)(HiInput, _React$PureComponent);
|
134
166
|
|
135
167
|
function HiInput() {
|
136
168
|
var _this;
|
137
169
|
|
138
|
-
|
139
|
-
|
140
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(HiInput).call(this));
|
170
|
+
(0, _classCallCheck2.default)(this, HiInput);
|
171
|
+
_this = (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(HiInput).call(this));
|
141
172
|
|
142
|
-
|
143
|
-
var key =
|
173
|
+
_this.handleKeyDown = function (event) {
|
174
|
+
var key = (0, _index.default)(event);
|
144
175
|
|
145
176
|
if (_this.props.onKeyDown) {
|
146
177
|
_this.props.onKeyDown(event);
|
@@ -149,30 +180,30 @@ function (_React$PureComponent) {
|
|
149
180
|
if (key === 'enter' && _this.props.onSubmit) {
|
150
181
|
_this.props.onSubmit(event);
|
151
182
|
}
|
152
|
-
}
|
183
|
+
};
|
153
184
|
|
154
|
-
|
185
|
+
_this.handleClick = function (event) {
|
155
186
|
if (_this.props.onClick) {
|
156
187
|
_this.props.onClick(event);
|
157
188
|
}
|
158
|
-
}
|
189
|
+
};
|
159
190
|
|
160
191
|
_this.state = {
|
161
192
|
focused: false
|
162
193
|
};
|
163
|
-
_this.handleChange = _this.handleChange.bind(
|
164
|
-
_this.handleFocus = _this.handleFocus.bind(
|
165
|
-
_this.handleDivClick = _this.handleDivClick.bind(
|
166
|
-
_this.handleBlur = _this.handleBlur.bind(
|
167
|
-
_this.handleReset = _this.handleReset.bind(
|
168
|
-
_this.handleMouseEnter = _this.handleMouseEnter.bind(
|
169
|
-
_this.handleMouseLeave = _this.handleMouseLeave.bind(
|
170
|
-
_this.getInputElement = _this.getInputElement.bind(
|
171
|
-
_this.handleOverlayRef = _this.handleOverlayRef.bind(
|
194
|
+
_this.handleChange = _this.handleChange.bind((0, _assertThisInitialized2.default)(_this));
|
195
|
+
_this.handleFocus = _this.handleFocus.bind((0, _assertThisInitialized2.default)(_this));
|
196
|
+
_this.handleDivClick = _this.handleDivClick.bind((0, _assertThisInitialized2.default)(_this));
|
197
|
+
_this.handleBlur = _this.handleBlur.bind((0, _assertThisInitialized2.default)(_this));
|
198
|
+
_this.handleReset = _this.handleReset.bind((0, _assertThisInitialized2.default)(_this));
|
199
|
+
_this.handleMouseEnter = _this.handleMouseEnter.bind((0, _assertThisInitialized2.default)(_this));
|
200
|
+
_this.handleMouseLeave = _this.handleMouseLeave.bind((0, _assertThisInitialized2.default)(_this));
|
201
|
+
_this.getInputElement = _this.getInputElement.bind((0, _assertThisInitialized2.default)(_this));
|
202
|
+
_this.handleOverlayRef = _this.handleOverlayRef.bind((0, _assertThisInitialized2.default)(_this));
|
172
203
|
return _this;
|
173
204
|
}
|
174
205
|
|
175
|
-
|
206
|
+
(0, _createClass2.default)(HiInput, [{
|
176
207
|
key: "getInputElement",
|
177
208
|
value: function getInputElement(el) {
|
178
209
|
this.inputElement = el;
|
@@ -311,9 +342,8 @@ function (_React$PureComponent) {
|
|
311
342
|
startAdornmentColor = _this$props.startAdornmentColor,
|
312
343
|
inputProps = _this$props.inputProps;
|
313
344
|
var focused = this.state.focused;
|
314
|
-
|
315
|
-
|
316
|
-
className: classNames(classes.root, (_classNames = {}, _defineProperty(_classNames, classes.disabled, disabled && !error), _defineProperty(_classNames, classes.inkbar, !disabled), _defineProperty(_classNames, classes.focused, focused), _defineProperty(_classNames, classes.error, error), _classNames), className)
|
345
|
+
var overlayProps = (0, _objectSpread2.default)({
|
346
|
+
className: (0, _classnames.default)(classes.root, (_classNames = {}, (0, _defineProperty2.default)(_classNames, classes.disabled, disabled && !error), (0, _defineProperty2.default)(_classNames, classes.inkbar, !disabled), (0, _defineProperty2.default)(_classNames, classes.focused, focused), (0, _defineProperty2.default)(_classNames, classes.error, error), _classNames), className)
|
317
347
|
}, !disabled && {
|
318
348
|
onClick: this.handleDivClick,
|
319
349
|
onMouseEnter: this.handleMouseEnter,
|
@@ -321,23 +351,22 @@ function (_React$PureComponent) {
|
|
321
351
|
}, {
|
322
352
|
ref: this.handleOverlayRef
|
323
353
|
});
|
324
|
-
|
325
354
|
var leftIcon;
|
326
355
|
|
327
356
|
if (startAdornment) {
|
328
357
|
var _classNames2;
|
329
358
|
|
330
|
-
leftIcon =
|
359
|
+
leftIcon = _react.default.createElement(_HiIcon.default, {
|
331
360
|
icon: startAdornment,
|
332
361
|
size: 20,
|
333
362
|
color: startAdornmentColor,
|
334
363
|
onClick: this.props.onLeftIconClick,
|
335
|
-
className:
|
364
|
+
className: (0, _classnames.default)(classes.startAdornment, (_classNames2 = {}, (0, _defineProperty2.default)(_classNames2, classes.startAdornmentFocus, focused), (0, _defineProperty2.default)(_classNames2, classes.startAdornmentDisabled, disabled), (0, _defineProperty2.default)(_classNames2, classes.iconPointer, this.props.onLeftIconClick), _classNames2))
|
336
365
|
});
|
337
366
|
} // Build endAdornment with eraseIcon + endAdornmentProps
|
338
367
|
|
339
368
|
|
340
|
-
var eraseIcon = !multiline && onReset && focused && !disabled && value.length > 0 &&
|
369
|
+
var eraseIcon = !multiline && onReset && focused && !disabled && value.length > 0 && _react.default.createElement(_HiIconButton.default, {
|
341
370
|
className: classes.eraseButton,
|
342
371
|
classes: {
|
343
372
|
label: classes.eraseButtonLabel
|
@@ -347,26 +376,23 @@ function (_React$PureComponent) {
|
|
347
376
|
buttonRef: function buttonRef(el) {
|
348
377
|
_this2.eraseIconNode = el;
|
349
378
|
}
|
350
|
-
},
|
351
|
-
|
352
|
-
size: 20,
|
353
|
-
color: "neutral"
|
354
|
-
}));
|
379
|
+
}, _ref);
|
380
|
+
|
355
381
|
var endAdornment = endAdornmentProps;
|
356
382
|
|
357
383
|
if (typeof endAdornmentProps === 'string' && endAdornmentProps !== '') {
|
358
384
|
var _classNames3;
|
359
385
|
|
360
|
-
endAdornment =
|
386
|
+
endAdornment = _react.default.createElement(_HiIcon.default, {
|
361
387
|
icon: endAdornmentProps,
|
362
388
|
size: 20,
|
363
389
|
color: "neutral",
|
364
390
|
onClick: this.props.onRightIconClick,
|
365
|
-
className:
|
391
|
+
className: (0, _classnames.default)(classes.rightIcon, (_classNames3 = {}, (0, _defineProperty2.default)(_classNames3, classes.rightIconFocus, focused), (0, _defineProperty2.default)(_classNames3, classes.rightIconDisabled, disabled), (0, _defineProperty2.default)(_classNames3, classes.rightIconError, error), (0, _defineProperty2.default)(_classNames3, classes.iconPointer, this.props.onRightIconClick), _classNames3))
|
366
392
|
});
|
367
393
|
}
|
368
394
|
|
369
|
-
return
|
395
|
+
return _react.default.createElement("div", overlayProps, _react.default.createElement(_Input.default, {
|
370
396
|
id: inputId,
|
371
397
|
type: type,
|
372
398
|
className: classes.input,
|
@@ -387,15 +413,15 @@ function (_React$PureComponent) {
|
|
387
413
|
autoFocus: autoFocus,
|
388
414
|
name: name,
|
389
415
|
startAdornment: leftIcon,
|
390
|
-
endAdornment:
|
416
|
+
endAdornment: _react.default.createElement("div", {
|
391
417
|
className: classes.endAdornment,
|
392
418
|
ref: function ref(el) {
|
393
419
|
_this2.endAdornmentNode = el;
|
394
420
|
}
|
395
421
|
}, eraseIcon, endAdornment),
|
396
|
-
inputProps:
|
422
|
+
inputProps: (0, _objectSpread2.default)({
|
397
423
|
spellCheck: spellcheck ? "true" : "false",
|
398
|
-
className:
|
424
|
+
className: (0, _classnames.default)(inputClassName, classes.inputPropsClassName, (_classNames4 = {}, (0, _defineProperty2.default)(_classNames4, classes.inputText, !multiline), (0, _defineProperty2.default)(_classNames4, classes.inputTextArea, multiline), _classNames4))
|
399
425
|
}, inputProps)
|
400
426
|
}));
|
401
427
|
}
|
@@ -411,11 +437,10 @@ function (_React$PureComponent) {
|
|
411
437
|
return null;
|
412
438
|
}
|
413
439
|
}]);
|
414
|
-
|
415
440
|
return HiInput;
|
416
|
-
}(
|
441
|
+
}(_react.default.PureComponent);
|
417
442
|
|
418
|
-
|
443
|
+
HiInput.defaultProps = {
|
419
444
|
value: '',
|
420
445
|
placeholder: '',
|
421
446
|
inputId: '',
|
@@ -427,9 +452,11 @@ _defineProperty(HiInput, "defaultProps", {
|
|
427
452
|
error: false,
|
428
453
|
onlyNumbers: false,
|
429
454
|
spellcheck: false
|
430
|
-
}
|
455
|
+
};
|
431
456
|
|
432
|
-
|
457
|
+
var _default = (0, _styles.withStyles)(styles, {
|
433
458
|
hiComponent: true,
|
434
459
|
name: 'HiMuiHiInput'
|
435
|
-
})(HiInput);
|
460
|
+
})(HiInput);
|
461
|
+
|
462
|
+
exports.default = _default;
|
@@ -1,18 +1,42 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.default = exports.styles = void 0;
|
9
|
+
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
11
|
+
|
12
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
13
|
+
|
14
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
15
|
+
|
16
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
17
|
+
|
18
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
|
19
|
+
|
20
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
|
21
|
+
|
22
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
|
23
|
+
|
24
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
|
25
|
+
|
26
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/assertThisInitialized"));
|
27
|
+
|
28
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
|
29
|
+
|
30
|
+
var _react = _interopRequireDefault(require("react"));
|
31
|
+
|
32
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
33
|
+
|
34
|
+
var _styles = require("@material-ui/core/styles");
|
35
|
+
|
36
|
+
var _HiTextField = _interopRequireDefault(require("./HiTextField"));
|
37
|
+
|
10
38
|
// @inheritedComponent HiTextField
|
11
|
-
|
12
|
-
import classNames from 'classnames';
|
13
|
-
import { withStyles } from '@material-ui/core/styles';
|
14
|
-
import HiTextField from './HiTextField';
|
15
|
-
export var styles = function styles() {
|
39
|
+
var styles = function styles() {
|
16
40
|
return {
|
17
41
|
inputPassword: {
|
18
42
|
fontWeight: 'bolder',
|
@@ -26,25 +50,27 @@ export var styles = function styles() {
|
|
26
50
|
* Champs input email pour formulaire
|
27
51
|
*/
|
28
52
|
|
53
|
+
|
54
|
+
exports.styles = styles;
|
55
|
+
|
29
56
|
var HiPasswordField =
|
30
57
|
/*#__PURE__*/
|
31
58
|
function (_React$Component) {
|
32
|
-
|
59
|
+
(0, _inherits2.default)(HiPasswordField, _React$Component);
|
33
60
|
|
34
61
|
function HiPasswordField(props) {
|
35
62
|
var _this;
|
36
63
|
|
37
|
-
|
38
|
-
|
39
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(HiPasswordField).call(this, props));
|
64
|
+
(0, _classCallCheck2.default)(this, HiPasswordField);
|
65
|
+
_this = (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(HiPasswordField).call(this, props));
|
40
66
|
_this.state = {
|
41
67
|
showText: false
|
42
68
|
};
|
43
|
-
_this.handlePasswordToggle = _this.handlePasswordToggle.bind(
|
69
|
+
_this.handlePasswordToggle = _this.handlePasswordToggle.bind((0, _assertThisInitialized2.default)(_this));
|
44
70
|
return _this;
|
45
71
|
}
|
46
72
|
|
47
|
-
|
73
|
+
(0, _createClass2.default)(HiPasswordField, [{
|
48
74
|
key: "handlePasswordToggle",
|
49
75
|
value: function handlePasswordToggle() {
|
50
76
|
this.setState(function (prevState) {
|
@@ -59,15 +85,14 @@ function (_React$Component) {
|
|
59
85
|
var _this$props = this.props,
|
60
86
|
classes = _this$props.classes,
|
61
87
|
HiInputProps = _this$props.HiInputProps,
|
62
|
-
otherProps =
|
63
|
-
|
88
|
+
otherProps = (0, _objectWithoutProperties2.default)(_this$props, ["classes", "HiInputProps"]);
|
64
89
|
var endAdornment = this.state.showText ? 'visibility_off' : 'visibility';
|
65
90
|
var type = this.state.showText ? 'text' : 'password';
|
66
|
-
var inputClassName =
|
67
|
-
return
|
91
|
+
var inputClassName = (0, _classnames.default)((0, _defineProperty2.default)({}, classes.inputPassword, !this.state.showText && otherProps.value !== ""));
|
92
|
+
return _react.default.createElement(_HiTextField.default, (0, _extends2.default)({}, otherProps, {
|
68
93
|
type: type,
|
69
94
|
onRightIconClick: this.handlePasswordToggle,
|
70
|
-
HiInputProps:
|
95
|
+
HiInputProps: (0, _objectSpread2.default)({
|
71
96
|
placeholder: ''
|
72
97
|
}, HiInputProps, {
|
73
98
|
endAdornment: endAdornment,
|
@@ -77,11 +102,12 @@ function (_React$Component) {
|
|
77
102
|
}));
|
78
103
|
}
|
79
104
|
}]);
|
80
|
-
|
81
105
|
return HiPasswordField;
|
82
|
-
}(
|
106
|
+
}(_react.default.Component);
|
83
107
|
|
84
|
-
|
108
|
+
var _default = (0, _styles.withStyles)(styles, {
|
85
109
|
hiComponent: true,
|
86
110
|
name: 'HmuiHiPasswordField'
|
87
|
-
})(HiPasswordField);
|
111
|
+
})(HiPasswordField);
|
112
|
+
|
113
|
+
exports.default = _default;
|
@@ -1,41 +1,58 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
+
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
6
|
+
value: true
|
7
|
+
});
|
8
|
+
exports.default = void 0;
|
9
|
+
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
11
|
+
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
13
|
+
|
14
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
|
15
|
+
|
16
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
|
17
|
+
|
18
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
|
19
|
+
|
20
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
|
21
|
+
|
22
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/assertThisInitialized"));
|
23
|
+
|
24
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
|
25
|
+
|
26
|
+
var _react = _interopRequireDefault(require("react"));
|
27
|
+
|
28
|
+
var _HiInput = _interopRequireDefault(require("./HiInput"));
|
29
|
+
|
11
30
|
/**
|
12
31
|
* Construit une barre de recherche avec icône Search (Magnify),
|
13
32
|
* permet de filtrer une liste d'éléments en spécifiant le nom de la/les propriétés sur lesquelles filtrer,
|
14
33
|
* retour la liste d'élément filtré.
|
15
34
|
* Un bouton reset s'affiche à la saisie permettant de réinitialiser l'input.
|
16
35
|
*/
|
17
|
-
|
18
36
|
var HiSearchField =
|
19
37
|
/*#__PURE__*/
|
20
38
|
function (_React$Component) {
|
21
|
-
|
39
|
+
(0, _inherits2.default)(HiSearchField, _React$Component);
|
22
40
|
|
23
41
|
function HiSearchField(props) {
|
24
42
|
var _this;
|
25
43
|
|
26
|
-
|
27
|
-
|
28
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(HiSearchField).call(this, props));
|
44
|
+
(0, _classCallCheck2.default)(this, HiSearchField);
|
45
|
+
_this = (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(HiSearchField).call(this, props));
|
29
46
|
_this.state = {
|
30
47
|
inputValue: ''
|
31
48
|
};
|
32
|
-
_this.filterOnProperties = _this.filterOnProperties.bind(
|
33
|
-
_this.handleChange = _this.handleChange.bind(
|
34
|
-
_this.handleReset = _this.handleReset.bind(
|
49
|
+
_this.filterOnProperties = _this.filterOnProperties.bind((0, _assertThisInitialized2.default)(_this));
|
50
|
+
_this.handleChange = _this.handleChange.bind((0, _assertThisInitialized2.default)(_this));
|
51
|
+
_this.handleReset = _this.handleReset.bind((0, _assertThisInitialized2.default)(_this));
|
35
52
|
return _this;
|
36
53
|
}
|
37
54
|
|
38
|
-
|
55
|
+
(0, _createClass2.default)(HiSearchField, [{
|
39
56
|
key: "filterOnProperties",
|
40
57
|
value: function filterOnProperties(item, search) {
|
41
58
|
if (!this.props.filterPropertyList || this.props.filterPropertyList.length < 1) {
|
@@ -118,9 +135,8 @@ function (_React$Component) {
|
|
118
135
|
value: function render() {
|
119
136
|
var _this$props = this.props,
|
120
137
|
placeholder = _this$props.placeholder,
|
121
|
-
others =
|
122
|
-
|
123
|
-
return React.createElement(HiInput, Object.assign({
|
138
|
+
others = (0, _objectWithoutProperties2.default)(_this$props, ["placeholder"]);
|
139
|
+
return _react.default.createElement(_HiInput.default, (0, _extends2.default)({
|
124
140
|
placeholder: placeholder,
|
125
141
|
onReset: this.handleReset,
|
126
142
|
onChange: this.handleChange,
|
@@ -129,12 +145,11 @@ function (_React$Component) {
|
|
129
145
|
}, others));
|
130
146
|
}
|
131
147
|
}]);
|
132
|
-
|
133
148
|
return HiSearchField;
|
134
|
-
}(
|
149
|
+
}(_react.default.Component);
|
135
150
|
|
136
|
-
|
151
|
+
HiSearchField.defaultProps = {
|
137
152
|
placeholder: 'Search'
|
138
|
-
}
|
139
|
-
|
140
|
-
|
153
|
+
};
|
154
|
+
var _default = HiSearchField;
|
155
|
+
exports.default = _default;
|