@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
@@ -1,20 +1,45 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
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.filterValue = exports.styles = void 0;
|
9
|
+
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
11
|
+
|
12
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/toConsumableArray"));
|
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 _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
27
|
+
|
28
|
+
var _react = _interopRequireDefault(require("react"));
|
29
|
+
|
30
|
+
var _reactCustomScrollbars = _interopRequireDefault(require("react-custom-scrollbars"));
|
31
|
+
|
32
|
+
var _HiSelectableList = _interopRequireDefault(require("../HiSelectableList"));
|
33
|
+
|
34
|
+
var _HiInput = _interopRequireDefault(require("../HiForm/HiInput"));
|
35
|
+
|
36
|
+
var _styles = require("@material-ui/core/styles");
|
37
|
+
|
38
|
+
var _helpers = require("../utils/helpers");
|
39
|
+
|
40
|
+
var _keycode = _interopRequireDefault(require("keycode"));
|
41
|
+
|
42
|
+
var styles = function styles(theme) {
|
18
43
|
return {
|
19
44
|
labelIcon: {
|
20
45
|
marginRight: 10
|
@@ -25,7 +50,7 @@ export var styles = function styles(theme) {
|
|
25
50
|
margin: '0 4px',
|
26
51
|
verticalAlign: 'middle'
|
27
52
|
},
|
28
|
-
selectIconLabel:
|
53
|
+
selectIconLabel: (0, _objectSpread2.default)({
|
29
54
|
whiteSpace: 'nowrap',
|
30
55
|
overflow: 'hidden',
|
31
56
|
textOverflow: 'ellipsis',
|
@@ -34,7 +59,7 @@ export var styles = function styles(theme) {
|
|
34
59
|
display: 'inline-flex',
|
35
60
|
width: '100%'
|
36
61
|
}),
|
37
|
-
selectImgLabel:
|
62
|
+
selectImgLabel: (0, _objectSpread2.default)({
|
38
63
|
whiteSpace: 'nowrap',
|
39
64
|
overflow: 'hidden',
|
40
65
|
textOverflow: 'ellipsis',
|
@@ -45,8 +70,11 @@ export var styles = function styles(theme) {
|
|
45
70
|
})
|
46
71
|
};
|
47
72
|
};
|
48
|
-
|
49
|
-
|
73
|
+
|
74
|
+
exports.styles = styles;
|
75
|
+
|
76
|
+
var filterValue = function filterValue(item, searchValue) {
|
77
|
+
return searchValue === '' || (0, _helpers.foldAccents)(item.label.toString().toLowerCase()).search((0, _helpers.foldAccents)(searchValue.toLowerCase())) !== -1;
|
50
78
|
};
|
51
79
|
/**
|
52
80
|
*
|
@@ -63,28 +91,30 @@ export var filterValue = function filterValue(item, searchValue) {
|
|
63
91
|
* - HiSelectableList : affiche la liste des suggestions selon le type des éléments
|
64
92
|
*/
|
65
93
|
|
94
|
+
|
95
|
+
exports.filterValue = filterValue;
|
96
|
+
|
66
97
|
var HiSelectContent =
|
67
98
|
/*#__PURE__*/
|
68
99
|
function (_React$PureComponent) {
|
69
|
-
|
100
|
+
(0, _inherits2.default)(HiSelectContent, _React$PureComponent);
|
70
101
|
|
71
102
|
function HiSelectContent(props) {
|
72
103
|
var _this;
|
73
104
|
|
74
|
-
|
75
|
-
|
76
|
-
_this = _possibleConstructorReturn(this, _getPrototypeOf(HiSelectContent).call(this, props));
|
105
|
+
(0, _classCallCheck2.default)(this, HiSelectContent);
|
106
|
+
_this = (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(HiSelectContent).call(this, props));
|
77
107
|
|
78
|
-
|
108
|
+
_this.handleKeyDown = function (event) {
|
79
109
|
var nextItem;
|
80
|
-
var key =
|
110
|
+
var key = (0, _keycode.default)(event);
|
81
111
|
|
82
112
|
if (key === 'down') {
|
83
113
|
event.preventDefault();
|
84
|
-
nextItem = getNextItemSelectable(document.activeElement, 'down');
|
114
|
+
nextItem = (0, _helpers.getNextItemSelectable)(document.activeElement, 'down');
|
85
115
|
} else if (key === 'up') {
|
86
116
|
event.preventDefault();
|
87
|
-
nextItem = getNextItemSelectable(document.activeElement, 'up');
|
117
|
+
nextItem = (0, _helpers.getNextItemSelectable)(document.activeElement, 'up');
|
88
118
|
} else if (key === 'tab' || key === 'esc') {
|
89
119
|
_this.setState({
|
90
120
|
open: false
|
@@ -106,10 +136,10 @@ function (_React$PureComponent) {
|
|
106
136
|
if (nextItem) {
|
107
137
|
nextItem.focus();
|
108
138
|
}
|
109
|
-
}
|
139
|
+
};
|
110
140
|
|
111
|
-
|
112
|
-
var key =
|
141
|
+
_this.handleKeyDownSearch = function (event) {
|
142
|
+
var key = (0, _keycode.default)(event);
|
113
143
|
|
114
144
|
if (_this.overlay && (key === 'down' || key === 'up')) {
|
115
145
|
_this.focusOnFirstItem();
|
@@ -118,9 +148,9 @@ function (_React$PureComponent) {
|
|
118
148
|
|
119
149
|
_this.handleClose();
|
120
150
|
}
|
121
|
-
}
|
151
|
+
};
|
122
152
|
|
123
|
-
|
153
|
+
_this.handleSelect = function (event, item) {
|
124
154
|
var _this$props = _this.props,
|
125
155
|
hasAll = _this$props.hasAll,
|
126
156
|
multiple = _this$props.multiple,
|
@@ -149,15 +179,15 @@ function (_React$PureComponent) {
|
|
149
179
|
return id !== item.id;
|
150
180
|
}), item);
|
151
181
|
} else {
|
152
|
-
onChange(event, [].concat(
|
182
|
+
onChange(event, [].concat((0, _toConsumableArray2.default)(value), [item.id]), item);
|
153
183
|
}
|
154
|
-
}
|
184
|
+
};
|
155
185
|
|
156
|
-
|
186
|
+
_this.handleClose = function () {
|
157
187
|
if (_this.props.onClose) _this.props.onClose();
|
158
|
-
}
|
188
|
+
};
|
159
189
|
|
160
|
-
|
190
|
+
_this.handleSuggestions = function (suggestions) {
|
161
191
|
var _this$props2 = _this.props,
|
162
192
|
hasAll = _this$props2.hasAll,
|
163
193
|
iconAll = _this$props2.iconAll,
|
@@ -166,7 +196,7 @@ function (_React$PureComponent) {
|
|
166
196
|
if (suggestions.length === 0) {
|
167
197
|
// Add '_no_result' suggestion
|
168
198
|
_this.setState(function (prevState) {
|
169
|
-
return
|
199
|
+
return (0, _objectSpread2.default)({}, prevState, {
|
170
200
|
suggestions: [{
|
171
201
|
id: '_no_result',
|
172
202
|
type: 'text',
|
@@ -179,24 +209,24 @@ function (_React$PureComponent) {
|
|
179
209
|
});
|
180
210
|
} else {
|
181
211
|
_this.setState({
|
182
|
-
suggestions: [].concat(
|
212
|
+
suggestions: [].concat((0, _toConsumableArray2.default)(hasAll ? [(0, _objectSpread2.default)({
|
183
213
|
id: '_all',
|
184
214
|
label: translations.all
|
185
215
|
}, iconAll && {
|
186
216
|
type: 'icon',
|
187
217
|
icon: iconAll
|
188
|
-
})] : []),
|
218
|
+
})] : []), (0, _toConsumableArray2.default)(suggestions))
|
189
219
|
});
|
190
220
|
}
|
191
|
-
}
|
221
|
+
};
|
192
222
|
|
193
|
-
|
223
|
+
_this.handleScroll = function (e) {
|
194
224
|
if (e.target.scrollHeight - e.target.clientHeight - e.target.scrollTop < 15) {
|
195
225
|
_this.props.onScrollReachBottom();
|
196
226
|
}
|
197
|
-
}
|
227
|
+
};
|
198
228
|
|
199
|
-
|
229
|
+
_this.handleSearch = function (e, inputValue) {
|
200
230
|
var searchValue = inputValue && e.target.value ? inputValue : e.target.value;
|
201
231
|
|
202
232
|
if (_this.props.onSearch) {
|
@@ -206,49 +236,49 @@ function (_React$PureComponent) {
|
|
206
236
|
searchValue: searchValue
|
207
237
|
});
|
208
238
|
}
|
209
|
-
}
|
239
|
+
};
|
210
240
|
|
211
|
-
|
241
|
+
_this.handleSearchReset = function () {
|
212
242
|
_this.handleSearch({
|
213
243
|
target: {
|
214
244
|
value: ''
|
215
245
|
}
|
216
246
|
}, '');
|
217
|
-
}
|
247
|
+
};
|
218
248
|
|
219
|
-
|
249
|
+
_this.buildSelectProps = function (options) {
|
220
250
|
var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
221
251
|
var search = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
222
252
|
var loading = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
223
253
|
// build item list
|
224
|
-
var itemList = [].concat(
|
254
|
+
var itemList = [].concat((0, _toConsumableArray2.default)(loading ? [{
|
225
255
|
id: '_loading',
|
226
256
|
type: 'loader',
|
227
257
|
disabled: true,
|
228
258
|
centered: true,
|
229
259
|
hideCheckbox: true,
|
230
260
|
label: 'loading'
|
231
|
-
}] : []),
|
261
|
+
}] : []), (0, _toConsumableArray2.default)(search !== '' ? (0, _toConsumableArray2.default)(options.filter(function (item) {
|
232
262
|
return item.label && _this.props.filterFunc(item, search);
|
233
|
-
})) : [].concat(
|
263
|
+
})) : [].concat((0, _toConsumableArray2.default)(_this.props.hasAll ? [(0, _objectSpread2.default)({
|
234
264
|
id: '_all',
|
235
265
|
label: _this.props.translations.all
|
236
266
|
}, _this.props.iconAll && {
|
237
267
|
type: 'icon',
|
238
268
|
icon: _this.props.iconAll
|
239
|
-
})] : []),
|
269
|
+
})] : []), (0, _toConsumableArray2.default)(options))));
|
240
270
|
return {
|
241
271
|
itemList: itemList
|
242
272
|
};
|
243
|
-
}
|
273
|
+
};
|
244
274
|
|
245
|
-
|
275
|
+
_this.getInputElement = function (el) {
|
246
276
|
_this.searchField = el;
|
247
277
|
|
248
278
|
if (_this.props.inputRef) {
|
249
279
|
_this.props.inputRef(_this.searchField);
|
250
280
|
}
|
251
|
-
}
|
281
|
+
};
|
252
282
|
|
253
283
|
_this.state = {
|
254
284
|
open: false,
|
@@ -256,14 +286,14 @@ function (_React$PureComponent) {
|
|
256
286
|
searchValue: props.searchValue ? undefined : '',
|
257
287
|
suggestions: props.options
|
258
288
|
};
|
259
|
-
_this.handleSearch = _this.handleSearch.bind(
|
260
|
-
_this.handleSearchReset = _this.handleSearchReset.bind(
|
261
|
-
_this.handleSelect = _this.handleSelect.bind(
|
262
|
-
_this.handleSuggestions = _this.handleSuggestions.bind(
|
289
|
+
_this.handleSearch = _this.handleSearch.bind((0, _assertThisInitialized2.default)(_this));
|
290
|
+
_this.handleSearchReset = _this.handleSearchReset.bind((0, _assertThisInitialized2.default)(_this));
|
291
|
+
_this.handleSelect = _this.handleSelect.bind((0, _assertThisInitialized2.default)(_this));
|
292
|
+
_this.handleSuggestions = _this.handleSuggestions.bind((0, _assertThisInitialized2.default)(_this));
|
263
293
|
return _this;
|
264
294
|
}
|
265
295
|
|
266
|
-
|
296
|
+
(0, _createClass2.default)(HiSelectContent, [{
|
267
297
|
key: "render",
|
268
298
|
value: function render() {
|
269
299
|
var _this2 = this;
|
@@ -295,13 +325,13 @@ function (_React$PureComponent) {
|
|
295
325
|
var selectedItemIdList = [];
|
296
326
|
|
297
327
|
if (value) {
|
298
|
-
selectedItemIdList = multiple ?
|
328
|
+
selectedItemIdList = multiple ? (0, _toConsumableArray2.default)(value) : [value];
|
299
329
|
}
|
300
330
|
|
301
331
|
var _buildSelectProps = buildSelectProps(options, selectedItemIdList, searchValue, loading),
|
302
332
|
itemList = _buildSelectProps.itemList;
|
303
333
|
|
304
|
-
return
|
334
|
+
return _react.default.createElement(_react.default.Fragment, null, !!searchable && _react.default.createElement(_HiInput.default, {
|
305
335
|
value: searchValue,
|
306
336
|
autoFocus: true,
|
307
337
|
inputRef: this.getInputElement,
|
@@ -311,7 +341,7 @@ function (_React$PureComponent) {
|
|
311
341
|
placeholder: translations.search,
|
312
342
|
startAdornment: 'search',
|
313
343
|
tabIndex: 0
|
314
|
-
}), startAdornment,
|
344
|
+
}), startAdornment, _react.default.createElement(_reactCustomScrollbars.default, (0, _extends2.default)({
|
315
345
|
ref: function ref(contentEl) {
|
316
346
|
_this2.optionsContent = contentEl;
|
317
347
|
}
|
@@ -327,7 +357,7 @@ function (_React$PureComponent) {
|
|
327
357
|
|
328
358
|
}, onScrollReachBottom && {
|
329
359
|
onScroll: this.handleScroll
|
330
|
-
}),
|
360
|
+
}), _react.default.createElement(_HiSelectableList.default, (0, _extends2.default)({
|
331
361
|
type: type,
|
332
362
|
itemList: itemList,
|
333
363
|
onKeyDown: this.handleKeyDown,
|
@@ -340,7 +370,7 @@ function (_React$PureComponent) {
|
|
340
370
|
key: "getDerivedStateFromProps",
|
341
371
|
value: function getDerivedStateFromProps(nextProps, prevState) {
|
342
372
|
if (nextProps.options !== prevState.suggestions) {
|
343
|
-
return
|
373
|
+
return (0, _objectSpread2.default)({}, prevState, {
|
344
374
|
suggestions: nextProps.options
|
345
375
|
});
|
346
376
|
}
|
@@ -349,11 +379,10 @@ function (_React$PureComponent) {
|
|
349
379
|
} // Key down on list items
|
350
380
|
|
351
381
|
}]);
|
352
|
-
|
353
382
|
return HiSelectContent;
|
354
|
-
}(
|
383
|
+
}(_react.default.PureComponent);
|
355
384
|
|
356
|
-
|
385
|
+
HiSelectContent.defaultProps = {
|
357
386
|
autoHeight: true,
|
358
387
|
height: 400,
|
359
388
|
disabled: false,
|
@@ -374,9 +403,11 @@ _defineProperty(HiSelectContent, "defaultProps", {
|
|
374
403
|
},
|
375
404
|
type: 'text',
|
376
405
|
filterFunc: filterValue
|
377
|
-
}
|
406
|
+
};
|
378
407
|
|
379
|
-
|
408
|
+
var _default = (0, _styles.withStyles)(styles, {
|
380
409
|
hiComponent: true,
|
381
410
|
name: 'HmuiHiSelectContent'
|
382
|
-
})(HiSelectContent);
|
411
|
+
})(HiSelectContent);
|
412
|
+
|
413
|
+
exports.default = _default;
|
@@ -1,29 +1,48 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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 _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
|
23
|
+
|
24
|
+
var _react = _interopRequireDefault(require("react"));
|
25
|
+
|
26
|
+
var _HiFormControl = _interopRequireDefault(require("../HiForm/HiFormControl"));
|
27
|
+
|
28
|
+
var _HiSelect = _interopRequireDefault(require("./HiSelect"));
|
29
|
+
|
7
30
|
// @inheritedComponent HiSelect
|
8
|
-
|
9
|
-
import HiFormControl from '../HiForm/HiFormControl';
|
10
|
-
import HiSelect from './HiSelect';
|
31
|
+
|
11
32
|
/**
|
12
33
|
* Champs input pour formulaire
|
13
34
|
*/
|
14
|
-
|
15
35
|
var HiSelectField =
|
16
36
|
/*#__PURE__*/
|
17
37
|
function (_React$PureComponent) {
|
18
|
-
|
38
|
+
(0, _inherits2.default)(HiSelectField, _React$PureComponent);
|
19
39
|
|
20
40
|
function HiSelectField() {
|
21
|
-
|
22
|
-
|
23
|
-
return _possibleConstructorReturn(this, _getPrototypeOf(HiSelectField).apply(this, arguments));
|
41
|
+
(0, _classCallCheck2.default)(this, HiSelectField);
|
42
|
+
return (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(HiSelectField).apply(this, arguments));
|
24
43
|
}
|
25
44
|
|
26
|
-
|
45
|
+
(0, _createClass2.default)(HiSelectField, [{
|
27
46
|
key: "render",
|
28
47
|
value: function render() {
|
29
48
|
var _this$props = this.props,
|
@@ -46,9 +65,8 @@ function (_React$PureComponent) {
|
|
46
65
|
translations = _this$props.translations,
|
47
66
|
className = _this$props.className,
|
48
67
|
HiInputLabelProps = _this$props.HiInputLabelProps,
|
49
|
-
others =
|
50
|
-
|
51
|
-
return React.createElement(HiFormControl, {
|
68
|
+
others = (0, _objectWithoutProperties2.default)(_this$props, ["label", "required", "disabled", "error", "errorText", "helperText", "helperIcon", "id", "name", "value", "options", "type", "multiple", "iconAll", "checkbox", "searchable", "translations", "className", "HiInputLabelProps"]);
|
69
|
+
return _react.default.createElement(_HiFormControl.default, {
|
52
70
|
id: id,
|
53
71
|
label: label,
|
54
72
|
required: required,
|
@@ -59,7 +77,7 @@ function (_React$PureComponent) {
|
|
59
77
|
helperIcon: helperIcon,
|
60
78
|
className: className,
|
61
79
|
InputLabelProps: HiInputLabelProps
|
62
|
-
},
|
80
|
+
}, _react.default.createElement(_HiSelect.default, (0, _extends2.default)({
|
63
81
|
id: id,
|
64
82
|
name: name,
|
65
83
|
value: value,
|
@@ -75,8 +93,8 @@ function (_React$PureComponent) {
|
|
75
93
|
}, others)));
|
76
94
|
}
|
77
95
|
}]);
|
78
|
-
|
79
96
|
return HiSelectField;
|
80
|
-
}(
|
97
|
+
}(_react.default.PureComponent);
|
81
98
|
|
82
|
-
|
99
|
+
var _default = HiSelectField;
|
100
|
+
exports.default = _default;
|