@hipay/hipay-material-ui 4.0.1-beta3 → 4.0.1-beta5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HiAccordion/HiAccordion.js +26 -8
 - package/HiAccordion/index.js +5 -1
 - package/HiAccordionActions/HiAccordionActions.js +14 -1
 - package/HiAccordionActions/index.js +5 -1
 - package/HiAccordionSummary/HiAccordionSummary.js +15 -1
 - package/HiAccordionSummary/index.js +5 -1
 - package/HiAlertModal/HiAlertModal.js +22 -7
 - package/HiAlertModal/index.js +5 -1
 - package/HiAppBar/HiAppBar.js +47 -15
 - package/HiAppBar/index.js +2 -0
 - package/HiAvatar/HiAvatar.js +12 -3
 - package/HiAvatar/index.js +2 -0
 - package/HiBadge/HiBadge.js +24 -8
 - package/HiBadge/index.js +2 -0
 - package/HiBreadcrumb/HiBreadcrumb.js +35 -10
 - package/HiBreadcrumb/HiStep.js +50 -17
 - package/HiBreadcrumb/HiStepConnector.js +55 -18
 - package/HiBreadcrumb/HiStepContent.js +35 -10
 - package/HiBreadcrumb/HiStepIcon.js +40 -14
 - package/HiBreadcrumb/HiStepLabel.js +49 -18
 - package/HiBreadcrumb/HiStepper.js +35 -10
 - package/HiBreadcrumb/index.js +2 -0
 - package/HiButton/HiButton.js +33 -8
 - package/HiButton/index.js +5 -1
 - package/HiCell/CellAddress.js +38 -16
 - package/HiCell/CellDate.js +41 -14
 - package/HiCell/CellHiddenContent.js +30 -8
 - package/HiCell/CellIcon.js +41 -16
 - package/HiCell/CellImage.js +39 -16
 - package/HiCell/CellNumeric.js +45 -17
 - package/HiCell/CellPinToAction.js +38 -13
 - package/HiCell/CellRate.js +52 -17
 - package/HiCell/CellSentinel.js +38 -16
 - package/HiCell/CellSentinelScore.js +36 -13
 - package/HiCell/CellText.js +58 -21
 - package/HiCell/CellTextStyled.js +24 -13
 - package/HiCell/index.js +10 -0
 - package/HiCheckbox/HiCheckbox.js +57 -19
 - package/HiCheckbox/index.js +2 -0
 - package/HiChip/HiChip.js +47 -24
 - package/HiChip/HiChipSwitch.js +65 -21
 - package/HiChip/index.js +3 -0
 - package/HiColoredLabel/HiColoredLabel.js +49 -15
 - package/HiColoredLabel/index.js +2 -0
 - package/HiDatePicker/Caption.js +21 -9
 - package/HiDatePicker/HiDatePicker.js +93 -20
 - package/HiDatePicker/HiDatePickerMobile.js +48 -22
 - package/HiDatePicker/HiDateRangePicker.js +139 -42
 - package/HiDatePicker/HiDateRangeSelector.js +135 -53
 - package/HiDatePicker/ListPicker.js +43 -12
 - package/HiDatePicker/NavBar.js +31 -12
 - package/HiDatePicker/Overlays/CustomOverlayLayout.js +28 -11
 - package/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +28 -11
 - package/HiDatePicker/Overlays/MonthPickerOverlay.js +32 -9
 - package/HiDatePicker/Overlays/Overlay.js +25 -8
 - package/HiDatePicker/Overlays/TimePickerOverlay.js +45 -13
 - package/HiDatePicker/Overlays/YearPickerOverlay.js +38 -13
 - package/HiDatePicker/Overlays/index.js +6 -0
 - package/HiDatePicker/Weekday.js +9 -4
 - package/HiDatePicker/hiLocaleUtils.js +20 -8
 - package/HiDatePicker/index.js +2 -0
 - package/HiDatePicker/stylesheet.js +13 -6
 - package/HiDialog/HiDialog.js +19 -7
 - package/HiDialog/index.js +2 -0
 - package/HiDotsStepper/HiDot.js +42 -12
 - package/HiDotsStepper/HiDotsStepper.js +43 -15
 - package/HiDotsStepper/index.js +3 -0
 - package/HiExpansionPanel/HiExpansionPanel.js +38 -16
 - package/HiExpansionPanel/index.js +5 -1
 - package/HiForm/HiAddressField.js +41 -14
 - package/HiForm/HiEmailField.js +34 -9
 - package/HiForm/HiFormControl.js +79 -32
 - package/HiForm/HiFormLabel.js +45 -18
 - package/HiForm/HiInput.js +97 -37
 - package/HiForm/HiPasswordField.js +43 -13
 - package/HiForm/HiSearchField.js +40 -8
 - package/HiForm/HiSlider.js +62 -26
 - package/HiForm/HiTextField.js +52 -26
 - package/HiForm/HiUpload.js +94 -33
 - package/HiForm/HiUploadField.js +37 -14
 - package/HiForm/HiUploadInput.js +81 -25
 - package/HiForm/index.js +12 -0
 - package/HiIcon/HiIcon.js +34 -9
 - package/HiIcon/index.js +2 -0
 - package/HiIconButton/HiIconButton.js +21 -6
 - package/HiIconButton/index.js +2 -0
 - package/HiListItemLink/HiListItemLink.js +19 -6
 - package/HiListItemLink/index.js +2 -0
 - package/HiLoader/HiLoader.js +16 -6
 - package/HiLoader/index.js +2 -0
 - package/HiNotice/HiKPI.js +53 -21
 - package/HiNotice/HiKPINotice.js +16 -6
 - package/HiNotice/index.js +3 -0
 - package/HiPagination/HiPagination.js +11 -1
 - package/HiPagination/index.js +2 -0
 - package/HiPaymentMeans/HiPaymentMeans.js +72 -31
 - package/HiPaymentMeans/index.js +2 -0
 - package/HiPdfReader/HiPdfReader.js +61 -27
 - package/HiPdfReader/index.js +2 -0
 - package/HiPin/HiPin.js +19 -7
 - package/HiPin/index.js +2 -0
 - package/HiRadio/HiRadio.js +22 -11
 - package/HiRadio/index.js +2 -0
 - package/HiScrollStepper/HiScrollStepper.js +67 -29
 - package/HiScrollStepper/index.js +2 -0
 - package/HiSelect/HiDynamicSelect.js +47 -36
 - package/HiSelect/HiDynamicSelectField.js +52 -27
 - package/HiSelect/HiNestedSelect.js +116 -69
 - package/HiSelect/HiNestedSelectContent.js +90 -63
 - package/HiSelect/HiNestedSelectField.js +52 -27
 - package/HiSelect/HiSelect.js +192 -93
 - package/HiSelect/HiSelectContent.js +103 -67
 - package/HiSelect/HiSelectField.js +53 -28
 - package/HiSelect/HiSelectInput.js +81 -25
 - package/HiSelect/HiSelectMobile.js +49 -11
 - package/HiSelect/HiSuggestSelect.js +85 -28
 - package/HiSelect/HiSuggestSelectField.js +43 -18
 - package/HiSelect/index.js +14 -2
 - package/HiSelectableList/HiSelectableList.js +95 -38
 - package/HiSelectableList/HiSelectableListHierarchic.js +65 -38
 - package/HiSelectableList/HiSelectableListItem.js +88 -45
 - package/HiSelectableList/index.js +4 -0
 - package/HiStepper/DefaultIndicator.js +10 -1
 - package/HiStepper/HiStep.js +48 -18
 - package/HiStepper/HiStepper.js +15 -2
 - package/HiStepper/index.js +3 -0
 - package/HiSwitch/HiSwitch.js +33 -9
 - package/HiSwitch/HiSwitchState.js +32 -15
 - package/HiSwitch/index.js +3 -0
 - package/HiTable/HiCellBuilder.js +69 -13
 - package/HiTable/HiTable.js +48 -20
 - package/HiTable/HiTableBody.js +28 -10
 - package/HiTable/HiTableHeader.js +55 -21
 - package/HiTable/HiTableRow.js +51 -16
 - package/HiTable/constants.js +98 -48
 - package/HiTable/index.js +2 -0
 - package/es/HiAccordion/HiAccordion.js +26 -8
 - package/es/HiAccordion/index.js +5 -1
 - package/es/HiAccordionActions/HiAccordionActions.js +14 -1
 - package/es/HiAccordionActions/index.js +5 -1
 - package/es/HiAccordionSummary/HiAccordionSummary.js +15 -1
 - package/es/HiAccordionSummary/index.js +5 -1
 - package/es/HiAlertModal/HiAlertModal.js +22 -7
 - package/es/HiAlertModal/index.js +5 -1
 - package/es/HiAppBar/HiAppBar.js +47 -15
 - package/es/HiAppBar/index.js +2 -0
 - package/es/HiAvatar/HiAvatar.js +12 -3
 - package/es/HiAvatar/index.js +2 -0
 - package/es/HiBadge/HiBadge.js +24 -8
 - package/es/HiBadge/index.js +2 -0
 - package/es/HiBreadcrumb/HiBreadcrumb.js +35 -10
 - package/es/HiBreadcrumb/HiStep.js +50 -17
 - package/es/HiBreadcrumb/HiStepConnector.js +55 -18
 - package/es/HiBreadcrumb/HiStepContent.js +35 -10
 - package/es/HiBreadcrumb/HiStepIcon.js +40 -14
 - package/es/HiBreadcrumb/HiStepLabel.js +49 -18
 - package/es/HiBreadcrumb/HiStepper.js +35 -10
 - package/es/HiBreadcrumb/index.js +2 -0
 - package/es/HiButton/HiButton.js +33 -8
 - package/es/HiButton/index.js +5 -1
 - package/es/HiCell/CellAddress.js +38 -16
 - package/es/HiCell/CellDate.js +41 -14
 - package/es/HiCell/CellHiddenContent.js +30 -8
 - package/es/HiCell/CellIcon.js +41 -16
 - package/es/HiCell/CellImage.js +39 -16
 - package/es/HiCell/CellNumeric.js +45 -17
 - package/es/HiCell/CellPinToAction.js +38 -13
 - package/es/HiCell/CellRate.js +52 -17
 - package/es/HiCell/CellSentinel.js +38 -16
 - package/es/HiCell/CellSentinelScore.js +36 -13
 - package/es/HiCell/CellText.js +58 -21
 - package/es/HiCell/CellTextStyled.js +24 -13
 - package/es/HiCell/index.js +10 -0
 - package/es/HiCheckbox/HiCheckbox.js +57 -19
 - package/es/HiCheckbox/index.js +2 -0
 - package/es/HiChip/HiChip.js +47 -24
 - package/es/HiChip/HiChipSwitch.js +65 -21
 - package/es/HiChip/index.js +3 -0
 - package/es/HiColoredLabel/HiColoredLabel.js +49 -15
 - package/es/HiColoredLabel/index.js +2 -0
 - package/es/HiDatePicker/Caption.js +21 -9
 - package/es/HiDatePicker/HiDatePicker.js +93 -20
 - package/es/HiDatePicker/HiDatePickerMobile.js +48 -22
 - package/es/HiDatePicker/HiDateRangePicker.js +139 -42
 - package/es/HiDatePicker/HiDateRangeSelector.js +135 -53
 - package/es/HiDatePicker/ListPicker.js +43 -12
 - package/es/HiDatePicker/NavBar.js +31 -12
 - package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +28 -11
 - package/es/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +28 -11
 - package/es/HiDatePicker/Overlays/MonthPickerOverlay.js +32 -9
 - package/es/HiDatePicker/Overlays/Overlay.js +25 -8
 - package/es/HiDatePicker/Overlays/TimePickerOverlay.js +45 -13
 - package/es/HiDatePicker/Overlays/YearPickerOverlay.js +38 -13
 - package/es/HiDatePicker/Overlays/index.js +6 -0
 - package/es/HiDatePicker/Weekday.js +9 -4
 - package/es/HiDatePicker/hiLocaleUtils.js +20 -8
 - package/es/HiDatePicker/index.js +2 -0
 - package/es/HiDatePicker/stylesheet.js +13 -6
 - package/es/HiDialog/HiDialog.js +19 -7
 - package/es/HiDialog/index.js +2 -0
 - package/es/HiDotsStepper/HiDot.js +42 -12
 - package/es/HiDotsStepper/HiDotsStepper.js +43 -15
 - package/es/HiDotsStepper/index.js +3 -0
 - package/es/HiExpansionPanel/HiExpansionPanel.js +38 -16
 - package/es/HiExpansionPanel/index.js +5 -1
 - package/es/HiForm/HiAddressField.js +41 -14
 - package/es/HiForm/HiEmailField.js +34 -9
 - package/es/HiForm/HiFormControl.js +79 -32
 - package/es/HiForm/HiFormLabel.js +45 -18
 - package/es/HiForm/HiInput.js +97 -37
 - package/es/HiForm/HiPasswordField.js +43 -13
 - package/es/HiForm/HiSearchField.js +40 -8
 - package/es/HiForm/HiSlider.js +62 -26
 - package/es/HiForm/HiTextField.js +52 -26
 - package/es/HiForm/HiUpload.js +94 -33
 - package/es/HiForm/HiUploadField.js +37 -14
 - package/es/HiForm/HiUploadInput.js +81 -25
 - package/es/HiForm/index.js +12 -0
 - package/es/HiIcon/HiIcon.js +34 -9
 - package/es/HiIcon/index.js +2 -0
 - package/es/HiIconButton/HiIconButton.js +21 -6
 - package/es/HiIconButton/index.js +2 -0
 - package/es/HiListItemLink/HiListItemLink.js +19 -6
 - package/es/HiListItemLink/index.js +2 -0
 - package/es/HiLoader/HiLoader.js +16 -6
 - package/es/HiLoader/index.js +2 -0
 - package/es/HiNotice/HiKPI.js +53 -21
 - package/es/HiNotice/HiKPINotice.js +16 -6
 - package/es/HiNotice/index.js +3 -0
 - package/es/HiPagination/HiPagination.js +11 -1
 - package/es/HiPagination/index.js +2 -0
 - package/es/HiPaymentMeans/HiPaymentMeans.js +72 -31
 - package/es/HiPaymentMeans/index.js +2 -0
 - package/es/HiPdfReader/HiPdfReader.js +61 -27
 - package/es/HiPdfReader/index.js +2 -0
 - package/es/HiPin/HiPin.js +19 -7
 - package/es/HiPin/index.js +2 -0
 - package/es/HiRadio/HiRadio.js +22 -11
 - package/es/HiRadio/index.js +2 -0
 - package/es/HiScrollStepper/HiScrollStepper.js +67 -29
 - package/es/HiScrollStepper/index.js +2 -0
 - package/es/HiSelect/HiDynamicSelect.js +47 -36
 - package/es/HiSelect/HiDynamicSelectField.js +52 -27
 - package/es/HiSelect/HiNestedSelect.js +116 -69
 - package/es/HiSelect/HiNestedSelectContent.js +90 -63
 - package/es/HiSelect/HiNestedSelectField.js +52 -27
 - package/es/HiSelect/HiSelect.js +192 -93
 - package/es/HiSelect/HiSelectContent.js +103 -67
 - package/es/HiSelect/HiSelectField.js +53 -28
 - package/es/HiSelect/HiSelectInput.js +81 -25
 - package/es/HiSelect/HiSelectMobile.js +49 -11
 - package/es/HiSelect/HiSuggestSelect.js +85 -28
 - package/es/HiSelect/HiSuggestSelectField.js +43 -18
 - package/es/HiSelect/index.js +14 -2
 - package/es/HiSelectableList/HiSelectableList.js +95 -38
 - package/es/HiSelectableList/HiSelectableListHierarchic.js +65 -38
 - package/es/HiSelectableList/HiSelectableListItem.js +88 -45
 - package/es/HiSelectableList/index.js +4 -0
 - package/es/HiStepper/DefaultIndicator.js +10 -1
 - package/es/HiStepper/HiStep.js +48 -18
 - package/es/HiStepper/HiStepper.js +15 -2
 - package/es/HiStepper/index.js +3 -0
 - package/es/HiSwitch/HiSwitch.js +33 -9
 - package/es/HiSwitch/HiSwitchState.js +32 -15
 - package/es/HiSwitch/index.js +3 -0
 - package/es/HiTable/HiCellBuilder.js +69 -13
 - package/es/HiTable/HiTable.js +48 -20
 - package/es/HiTable/HiTableBody.js +28 -10
 - package/es/HiTable/HiTableHeader.js +55 -21
 - package/es/HiTable/HiTableRow.js +51 -16
 - package/es/HiTable/constants.js +98 -48
 - package/es/HiTable/index.js +2 -0
 - package/es/hi-svg-icons/HiAccount.js +14 -4
 - package/es/hi-svg-icons/HiActivity.js +14 -4
 - package/es/hi-svg-icons/HiAll.js +18 -7
 - package/es/hi-svg-icons/HiBilling.js +14 -4
 - package/es/hi-svg-icons/HiBriefcaseRescue.js +14 -4
 - package/es/hi-svg-icons/HiBusiness.js +14 -4
 - package/es/hi-svg-icons/HiCatalog.js +14 -4
 - package/es/hi-svg-icons/HiCustomer.js +14 -4
 - package/es/hi-svg-icons/HiDownload.js +14 -4
 - package/es/hi-svg-icons/HiFinance.js +14 -4
 - package/es/hi-svg-icons/HiFinanceMenu.js +14 -4
 - package/es/hi-svg-icons/HiHostedPaymentPage.js +14 -4
 - package/es/hi-svg-icons/HiHostedPaymentPageMenu.js +14 -4
 - package/es/hi-svg-icons/HiIntegration.js +14 -4
 - package/es/hi-svg-icons/HiIntegrationMenu.js +14 -4
 - package/es/hi-svg-icons/HiIntelligence.js +14 -4
 - package/es/hi-svg-icons/HiIntelligenceMenu.js +14 -4
 - package/es/hi-svg-icons/HiInvoice.js +14 -4
 - package/es/hi-svg-icons/HiInvoiceMenu.js +14 -4
 - package/es/hi-svg-icons/HiLogoRounded.js +17 -6
 - package/es/hi-svg-icons/HiOrder.js +14 -4
 - package/es/hi-svg-icons/HiPaymentOrder.js +14 -4
 - package/es/hi-svg-icons/HiPermission.js +14 -4
 - package/es/hi-svg-icons/HiPriceGrid.js +14 -4
 - package/es/hi-svg-icons/HiPrivate.js +14 -4
 - package/es/hi-svg-icons/HiRoute.js +14 -4
 - package/es/hi-svg-icons/HiRouteMenu.js +14 -4
 - package/es/hi-svg-icons/HiRouteSwitch.js +19 -7
 - package/es/hi-svg-icons/HiRouteSwitchMenu.js +19 -7
 - package/es/hi-svg-icons/HiSettlement.js +14 -4
 - package/es/hi-svg-icons/HiSizeLarge.js +14 -4
 - package/es/hi-svg-icons/HiSizeMedium.js +14 -4
 - package/es/hi-svg-icons/HiSizeSmall.js +14 -4
 - package/es/hi-svg-icons/HiStore.js +14 -4
 - package/es/hi-svg-icons/HiStoreMenu.js +14 -4
 - package/es/hi-svg-icons/HiTransaction.js +14 -4
 - package/es/hi-svg-icons/HiTransactionMenu.js +14 -4
 - package/es/hi-svg-icons/HiUser.js +14 -4
 - package/es/hi-svg-icons/HiVendor.js +14 -4
 - package/es/hi-svg-icons/HiWidget.js +14 -4
 - package/es/hi-svg-icons/index.js +41 -0
 - package/es/hi-svg-images/HiLogo.js +12 -4
 - package/es/hi-svg-images/HiLogoWhite.js +12 -4
 - package/es/hi-svg-images/index.js +3 -0
 - package/es/setupTest.js +13 -2
 - package/es/styleguide/Wrapper.js +6 -0
 - package/es/styles/MuiThemeProvider.js +53 -18
 - package/es/styles/colorManipulator.js +50 -15
 - package/es/styles/createBreakpoints.js +29 -14
 - package/es/styles/createGenerateClassName.js +24 -14
 - package/es/styles/createMixins.js +10 -4
 - package/es/styles/createMuiTheme.js +28 -11
 - package/es/styles/createPalette.js +89 -66
 - package/es/styles/createStyles.js +1 -0
 - package/es/styles/createTypography.js +24 -15
 - package/es/styles/getStylesCreator.js +14 -2
 - package/es/styles/getThemeProps.js +7 -2
 - package/es/styles/index.js +6 -0
 - package/es/styles/jssPreset.js +11 -1
 - package/es/styles/makeStyles.js +9 -2
 - package/es/styles/mergeClasses.js +16 -5
 - package/es/styles/shadows.js +4 -1
 - package/es/styles/shape.js +2 -1
 - package/es/styles/spacing.js +4 -1
 - package/es/styles/themeListener.js +10 -2
 - package/es/styles/transitions.js +35 -20
 - package/es/styles/withStyles.js +9 -2
 - package/es/styles/zIndex.js +2 -1
 - package/es/test-utils/createMount.js +12 -2
 - package/es/test-utils/createRender.js +9 -2
 - package/es/test-utils/createShallow.js +17 -6
 - package/es/test-utils/getClasses.js +4 -1
 - package/es/test-utils/index.js +6 -0
 - package/es/test-utils/until.js +14 -3
 - package/es/test-utils/unwrap.js +1 -0
 - package/es/theme/palette.js +7 -2
 - package/es/theme/typography.js +15 -7
 - package/es/theme.js +8 -2
 - package/es/transitions/utils.js +7 -3
 - package/es/utils/exactProp.js +13 -3
 - package/es/utils/helpers.js +58 -19
 - package/es/withMobileDialog/index.js +2 -0
 - package/es/withMobileDialog/withMobileDialog.js +12 -3
 - package/hi-svg-icons/HiAccount.js +14 -4
 - package/hi-svg-icons/HiActivity.js +14 -4
 - package/hi-svg-icons/HiAll.js +18 -7
 - package/hi-svg-icons/HiBilling.js +14 -4
 - package/hi-svg-icons/HiBriefcaseRescue.js +14 -4
 - package/hi-svg-icons/HiBusiness.js +14 -4
 - package/hi-svg-icons/HiCatalog.js +14 -4
 - package/hi-svg-icons/HiCustomer.js +14 -4
 - package/hi-svg-icons/HiDownload.js +14 -4
 - package/hi-svg-icons/HiFinance.js +14 -4
 - package/hi-svg-icons/HiFinanceMenu.js +14 -4
 - package/hi-svg-icons/HiHostedPaymentPage.js +14 -4
 - package/hi-svg-icons/HiHostedPaymentPageMenu.js +14 -4
 - package/hi-svg-icons/HiIntegration.js +14 -4
 - package/hi-svg-icons/HiIntegrationMenu.js +14 -4
 - package/hi-svg-icons/HiIntelligence.js +14 -4
 - package/hi-svg-icons/HiIntelligenceMenu.js +14 -4
 - package/hi-svg-icons/HiInvoice.js +14 -4
 - package/hi-svg-icons/HiInvoiceMenu.js +14 -4
 - package/hi-svg-icons/HiLogoRounded.js +17 -6
 - package/hi-svg-icons/HiOrder.js +14 -4
 - package/hi-svg-icons/HiPaymentOrder.js +14 -4
 - package/hi-svg-icons/HiPermission.js +14 -4
 - package/hi-svg-icons/HiPriceGrid.js +14 -4
 - package/hi-svg-icons/HiPrivate.js +14 -4
 - package/hi-svg-icons/HiRoute.js +14 -4
 - package/hi-svg-icons/HiRouteMenu.js +14 -4
 - package/hi-svg-icons/HiRouteSwitch.js +19 -7
 - package/hi-svg-icons/HiRouteSwitchMenu.js +19 -7
 - package/hi-svg-icons/HiSettlement.js +14 -4
 - package/hi-svg-icons/HiSizeLarge.js +14 -4
 - package/hi-svg-icons/HiSizeMedium.js +14 -4
 - package/hi-svg-icons/HiSizeSmall.js +14 -4
 - package/hi-svg-icons/HiStore.js +14 -4
 - package/hi-svg-icons/HiStoreMenu.js +14 -4
 - package/hi-svg-icons/HiTransaction.js +14 -4
 - package/hi-svg-icons/HiTransactionMenu.js +14 -4
 - package/hi-svg-icons/HiUser.js +14 -4
 - package/hi-svg-icons/HiVendor.js +14 -4
 - package/hi-svg-icons/HiWidget.js +14 -4
 - package/hi-svg-icons/index.js +41 -0
 - package/hi-svg-images/HiLogo.js +12 -4
 - package/hi-svg-images/HiLogoWhite.js +12 -4
 - package/hi-svg-images/index.js +3 -0
 - package/package.json +1 -1
 - package/setupTest.js +13 -2
 - package/styleguide/Wrapper.js +6 -0
 - package/styles/MuiThemeProvider.js +53 -18
 - package/styles/colorManipulator.js +50 -15
 - package/styles/createBreakpoints.js +29 -14
 - package/styles/createGenerateClassName.js +24 -14
 - package/styles/createMixins.js +10 -4
 - package/styles/createMuiTheme.js +28 -11
 - package/styles/createPalette.js +89 -66
 - package/styles/createStyles.js +1 -0
 - package/styles/createTypography.js +24 -15
 - package/styles/getStylesCreator.js +14 -2
 - package/styles/getThemeProps.js +7 -2
 - package/styles/index.js +6 -0
 - package/styles/jssPreset.js +11 -1
 - package/styles/makeStyles.js +9 -2
 - package/styles/mergeClasses.js +16 -5
 - package/styles/shadows.js +4 -1
 - package/styles/shape.js +2 -1
 - package/styles/spacing.js +4 -1
 - package/styles/themeListener.js +10 -2
 - package/styles/transitions.js +35 -20
 - package/styles/withStyles.js +9 -2
 - package/styles/zIndex.js +2 -1
 - package/test-utils/createMount.js +12 -2
 - package/test-utils/createRender.js +9 -2
 - package/test-utils/createShallow.js +17 -6
 - package/test-utils/getClasses.js +4 -1
 - package/test-utils/index.js +6 -0
 - package/test-utils/until.js +14 -3
 - package/test-utils/unwrap.js +1 -0
 - package/theme/palette.js +7 -2
 - package/theme/typography.js +15 -7
 - package/theme.js +8 -2
 - package/transitions/utils.js +7 -3
 - package/utils/exactProp.js +13 -3
 - package/utils/helpers.js +58 -19
 - package/withMobileDialog/index.js +2 -0
 - package/withMobileDialog/withMobileDialog.js +12 -3
 
    
        package/HiForm/HiInput.js
    CHANGED
    
    | 
         @@ -1,30 +1,51 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            "use strict";
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
       4 
5 
     | 
    
         
             
            Object.defineProperty(exports, "__esModule", {
         
     | 
| 
       5 
6 
     | 
    
         
             
              value: true
         
     | 
| 
       6 
7 
     | 
    
         
             
            });
         
     | 
| 
       7 
8 
     | 
    
         
             
            exports.styles = exports.default = void 0;
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
       8 
10 
     | 
    
         
             
            var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/typeof"));
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
       9 
12 
     | 
    
         
             
            var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
       10 
14 
     | 
    
         
             
            var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
       11 
16 
     | 
    
         
             
            var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
       12 
18 
     | 
    
         
             
            var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
         
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
            var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
       15 
20 
     | 
    
         
             
            var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/assertThisInitialized"));
         
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
       16 
22 
     | 
    
         
             
            var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
            var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
      
 26 
     | 
    
         
            +
            var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
       17 
28 
     | 
    
         
             
            var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
         
     | 
| 
      
 29 
     | 
    
         
            +
             
     | 
| 
       18 
30 
     | 
    
         
             
            var _react = _interopRequireDefault(require("react"));
         
     | 
| 
      
 31 
     | 
    
         
            +
             
     | 
| 
       19 
32 
     | 
    
         
             
            var _classnames = _interopRequireDefault(require("classnames"));
         
     | 
| 
      
 33 
     | 
    
         
            +
             
     | 
| 
       20 
34 
     | 
    
         
             
            var _index = _interopRequireDefault(require("keycode/index"));
         
     | 
| 
      
 35 
     | 
    
         
            +
             
     | 
| 
       21 
36 
     | 
    
         
             
            var _Input = _interopRequireDefault(require("@mui/material/Input"));
         
     | 
| 
      
 37 
     | 
    
         
            +
             
     | 
| 
       22 
38 
     | 
    
         
             
            var _HiIcon = _interopRequireDefault(require("../HiIcon"));
         
     | 
| 
      
 39 
     | 
    
         
            +
             
     | 
| 
       23 
40 
     | 
    
         
             
            var _HiIconButton = _interopRequireDefault(require("../HiIconButton"));
         
     | 
| 
      
 41 
     | 
    
         
            +
             
     | 
| 
       24 
42 
     | 
    
         
             
            var _withStyles = _interopRequireDefault(require("@mui/styles/withStyles"));
         
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
            function  
     | 
| 
       27 
     | 
    
         
            -
             
     | 
| 
      
 43 
     | 
    
         
            +
             
     | 
| 
      
 44 
     | 
    
         
            +
            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); }; }
         
     | 
| 
      
 45 
     | 
    
         
            +
             
     | 
| 
      
 46 
     | 
    
         
            +
            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; } }
         
     | 
| 
      
 47 
     | 
    
         
            +
             
     | 
| 
      
 48 
     | 
    
         
            +
            var styles = function styles(theme) {
         
     | 
| 
       28 
49 
     | 
    
         
             
              return {
         
     | 
| 
       29 
50 
     | 
    
         
             
                root: (0, _objectSpread2.default)({
         
     | 
| 
       30 
51 
     | 
    
         
             
                  position: 'relative'
         
     | 
| 
         @@ -57,6 +78,7 @@ var styles = exports.styles = function styles(theme) { 
     | 
|
| 
       57 
78 
     | 
    
         
             
                      easing: theme.transitions.easing.easeOut
         
     | 
| 
       58 
79 
     | 
    
         
             
                    }),
         
     | 
| 
       59 
80 
     | 
    
         
             
                    pointerEvents: 'none' // Transparent to the hover style.
         
     | 
| 
      
 81 
     | 
    
         
            +
             
     | 
| 
       60 
82 
     | 
    
         
             
                  },
         
     | 
| 
       61 
83 
     | 
    
         
             
                  '&:not($error):hover:after': {
         
     | 
| 
       62 
84 
     | 
    
         
             
                    transform: 'scaleX(1)'
         
     | 
| 
         @@ -138,31 +160,44 @@ var styles = exports.styles = function styles(theme) { 
     | 
|
| 
       138 
160 
     | 
    
         
             
                }
         
     | 
| 
       139 
161 
     | 
    
         
             
              };
         
     | 
| 
       140 
162 
     | 
    
         
             
            };
         
     | 
| 
      
 163 
     | 
    
         
            +
             
     | 
| 
      
 164 
     | 
    
         
            +
            exports.styles = styles;
         
     | 
| 
      
 165 
     | 
    
         
            +
             
     | 
| 
       141 
166 
     | 
    
         
             
            var _ref = /*#__PURE__*/_react.default.createElement(_HiIcon.default, {
         
     | 
| 
       142 
167 
     | 
    
         
             
              icon: "close",
         
     | 
| 
       143 
168 
     | 
    
         
             
              size: 20,
         
     | 
| 
       144 
169 
     | 
    
         
             
              color: "neutral"
         
     | 
| 
       145 
170 
     | 
    
         
             
            });
         
     | 
| 
      
 171 
     | 
    
         
            +
             
     | 
| 
       146 
172 
     | 
    
         
             
            var HiInput = /*#__PURE__*/function (_React$PureComponent) {
         
     | 
| 
       147 
173 
     | 
    
         
             
              (0, _inherits2.default)(HiInput, _React$PureComponent);
         
     | 
| 
      
 174 
     | 
    
         
            +
             
     | 
| 
      
 175 
     | 
    
         
            +
              var _super = _createSuper(HiInput);
         
     | 
| 
      
 176 
     | 
    
         
            +
             
     | 
| 
       148 
177 
     | 
    
         
             
              function HiInput() {
         
     | 
| 
       149 
178 
     | 
    
         
             
                var _this;
         
     | 
| 
      
 179 
     | 
    
         
            +
             
     | 
| 
       150 
180 
     | 
    
         
             
                (0, _classCallCheck2.default)(this, HiInput);
         
     | 
| 
       151 
     | 
    
         
            -
                _this =  
     | 
| 
      
 181 
     | 
    
         
            +
                _this = _super.call(this);
         
     | 
| 
      
 182 
     | 
    
         
            +
             
     | 
| 
       152 
183 
     | 
    
         
             
                _this.handleKeyDown = function (event) {
         
     | 
| 
       153 
184 
     | 
    
         
             
                  var key = (0, _index.default)(event);
         
     | 
| 
      
 185 
     | 
    
         
            +
             
     | 
| 
       154 
186 
     | 
    
         
             
                  if (_this.props.onKeyDown) {
         
     | 
| 
       155 
187 
     | 
    
         
             
                    _this.props.onKeyDown(event);
         
     | 
| 
       156 
188 
     | 
    
         
             
                  }
         
     | 
| 
      
 189 
     | 
    
         
            +
             
     | 
| 
       157 
190 
     | 
    
         
             
                  if (key === 'enter' && _this.props.onSubmit) {
         
     | 
| 
       158 
191 
     | 
    
         
             
                    _this.props.onSubmit(event);
         
     | 
| 
       159 
192 
     | 
    
         
             
                  }
         
     | 
| 
       160 
193 
     | 
    
         
             
                };
         
     | 
| 
      
 194 
     | 
    
         
            +
             
     | 
| 
       161 
195 
     | 
    
         
             
                _this.handleClick = function (event) {
         
     | 
| 
       162 
196 
     | 
    
         
             
                  if (_this.props.onClick) {
         
     | 
| 
       163 
197 
     | 
    
         
             
                    _this.props.onClick(event);
         
     | 
| 
       164 
198 
     | 
    
         
             
                  }
         
     | 
| 
       165 
199 
     | 
    
         
             
                };
         
     | 
| 
      
 200 
     | 
    
         
            +
             
     | 
| 
       166 
201 
     | 
    
         
             
                _this.state = {
         
     | 
| 
       167 
202 
     | 
    
         
             
                  focused: false
         
     | 
| 
       168 
203 
     | 
    
         
             
                };
         
     | 
| 
         @@ -177,10 +212,12 @@ var HiInput = /*#__PURE__*/function (_React$PureComponent) { 
     | 
|
| 
       177 
212 
     | 
    
         
             
                _this.handleOverlayRef = _this.handleOverlayRef.bind((0, _assertThisInitialized2.default)(_this));
         
     | 
| 
       178 
213 
     | 
    
         
             
                return _this;
         
     | 
| 
       179 
214 
     | 
    
         
             
              }
         
     | 
| 
      
 215 
     | 
    
         
            +
             
     | 
| 
       180 
216 
     | 
    
         
             
              (0, _createClass2.default)(HiInput, [{
         
     | 
| 
       181 
217 
     | 
    
         
             
                key: "getInputElement",
         
     | 
| 
       182 
218 
     | 
    
         
             
                value: function getInputElement(el) {
         
     | 
| 
       183 
219 
     | 
    
         
             
                  this.inputElement = el;
         
     | 
| 
      
 220 
     | 
    
         
            +
             
     | 
| 
       184 
221 
     | 
    
         
             
                  if (this.props.customRef) {
         
     | 
| 
       185 
222 
     | 
    
         
             
                    this.props.customRef(this.inputElement);
         
     | 
| 
       186 
223 
     | 
    
         
             
                  } else if (this.props.inputRef) {
         
     | 
| 
         @@ -200,6 +237,7 @@ var HiInput = /*#__PURE__*/function (_React$PureComponent) { 
     | 
|
| 
       200 
237 
     | 
    
         
             
                  if (this.props.onReset) {
         
     | 
| 
       201 
238 
     | 
    
         
             
                    this.props.onReset();
         
     | 
| 
       202 
239 
     | 
    
         
             
                  }
         
     | 
| 
      
 240 
     | 
    
         
            +
             
     | 
| 
       203 
241 
     | 
    
         
             
                  this.inputElement.focus();
         
     | 
| 
       204 
242 
     | 
    
         
             
                }
         
     | 
| 
       205 
243 
     | 
    
         
             
              }, {
         
     | 
| 
         @@ -215,12 +253,14 @@ var HiInput = /*#__PURE__*/function (_React$PureComponent) { 
     | 
|
| 
       215 
253 
     | 
    
         
             
                    } else if (this.endAdornmentNode.contains(event.relatedTarget) && this.props.onBlur) {
         
     | 
| 
       216 
254 
     | 
    
         
             
                      this.props.onBlur(event);
         
     | 
| 
       217 
255 
     | 
    
         
             
                    }
         
     | 
| 
      
 256 
     | 
    
         
            +
             
     | 
| 
       218 
257 
     | 
    
         
             
                    event.preventDefault();
         
     | 
| 
       219 
258 
     | 
    
         
             
                    event.stopPropagation();
         
     | 
| 
       220 
259 
     | 
    
         
             
                  } else {
         
     | 
| 
       221 
260 
     | 
    
         
             
                    this.setState({
         
     | 
| 
       222 
261 
     | 
    
         
             
                      focused: false
         
     | 
| 
       223 
262 
     | 
    
         
             
                    });
         
     | 
| 
      
 263 
     | 
    
         
            +
             
     | 
| 
       224 
264 
     | 
    
         
             
                    if (this.props.onBlur) {
         
     | 
| 
       225 
265 
     | 
    
         
             
                      this.props.onBlur(event);
         
     | 
| 
       226 
266 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -236,8 +276,9 @@ var HiInput = /*#__PURE__*/function (_React$PureComponent) { 
     | 
|
| 
       236 
276 
     | 
    
         
             
                      this.setState({
         
     | 
| 
       237 
277 
     | 
    
         
             
                        focused: true
         
     | 
| 
       238 
278 
     | 
    
         
             
                      });
         
     | 
| 
       239 
     | 
    
         
            -
                    }
         
     | 
| 
       240 
     | 
    
         
            -
             
     | 
| 
      
 279 
     | 
    
         
            +
                    } // If focus came from erase icon => stay focused and don't call onFocus props
         
     | 
| 
      
 280 
     | 
    
         
            +
             
     | 
| 
      
 281 
     | 
    
         
            +
             
     | 
| 
       241 
282 
     | 
    
         
             
                    if (this.eraseIconNode && this.eraseIconNode.contains(event.relatedTarget)) {
         
     | 
| 
       242 
283 
     | 
    
         
             
                      event.preventDefault();
         
     | 
| 
       243 
284 
     | 
    
         
             
                      event.stopPropagation();
         
     | 
| 
         @@ -257,6 +298,7 @@ var HiInput = /*#__PURE__*/function (_React$PureComponent) { 
     | 
|
| 
       257 
298 
     | 
    
         
             
                        focused: true
         
     | 
| 
       258 
299 
     | 
    
         
             
                      });
         
     | 
| 
       259 
300 
     | 
    
         
             
                    }
         
     | 
| 
      
 301 
     | 
    
         
            +
             
     | 
| 
       260 
302 
     | 
    
         
             
                    this.inputElement.focus();
         
     | 
| 
       261 
303 
     | 
    
         
             
                  }
         
     | 
| 
       262 
304 
     | 
    
         
             
                }
         
     | 
| 
         @@ -278,6 +320,7 @@ var HiInput = /*#__PURE__*/function (_React$PureComponent) { 
     | 
|
| 
       278 
320 
     | 
    
         
             
                key: "handleOverlayRef",
         
     | 
| 
       279 
321 
     | 
    
         
             
                value: function handleOverlayRef(el) {
         
     | 
| 
       280 
322 
     | 
    
         
             
                  this.overlayNode = el;
         
     | 
| 
      
 323 
     | 
    
         
            +
             
     | 
| 
       281 
324 
     | 
    
         
             
                  if (this.props.overlayRef) {
         
     | 
| 
       282 
325 
     | 
    
         
             
                    this.props.overlayRef(el);
         
     | 
| 
       283 
326 
     | 
    
         
             
                  }
         
     | 
| 
         @@ -285,31 +328,34 @@ var HiInput = /*#__PURE__*/function (_React$PureComponent) { 
     | 
|
| 
       285 
328 
     | 
    
         
             
              }, {
         
     | 
| 
       286 
329 
     | 
    
         
             
                key: "render",
         
     | 
| 
       287 
330 
     | 
    
         
             
                value: function render() {
         
     | 
| 
       288 
     | 
    
         
            -
                  var  
     | 
| 
      
 331 
     | 
    
         
            +
                  var _classNames,
         
     | 
| 
      
 332 
     | 
    
         
            +
                      _this2 = this,
         
     | 
| 
      
 333 
     | 
    
         
            +
                      _classNames4;
         
     | 
| 
      
 334 
     | 
    
         
            +
             
     | 
| 
       289 
335 
     | 
    
         
             
                  var _this$props = this.props,
         
     | 
| 
       290 
     | 
    
         
            -
             
     | 
| 
       291 
     | 
    
         
            -
             
     | 
| 
       292 
     | 
    
         
            -
             
     | 
| 
       293 
     | 
    
         
            -
             
     | 
| 
       294 
     | 
    
         
            -
             
     | 
| 
       295 
     | 
    
         
            -
             
     | 
| 
       296 
     | 
    
         
            -
             
     | 
| 
       297 
     | 
    
         
            -
             
     | 
| 
       298 
     | 
    
         
            -
             
     | 
| 
       299 
     | 
    
         
            -
             
     | 
| 
       300 
     | 
    
         
            -
             
     | 
| 
       301 
     | 
    
         
            -
             
     | 
| 
       302 
     | 
    
         
            -
             
     | 
| 
       303 
     | 
    
         
            -
             
     | 
| 
       304 
     | 
    
         
            -
             
     | 
| 
       305 
     | 
    
         
            -
             
     | 
| 
       306 
     | 
    
         
            -
             
     | 
| 
       307 
     | 
    
         
            -
             
     | 
| 
       308 
     | 
    
         
            -
             
     | 
| 
       309 
     | 
    
         
            -
             
     | 
| 
      
 336 
     | 
    
         
            +
                      value = _this$props.value,
         
     | 
| 
      
 337 
     | 
    
         
            +
                      classes = _this$props.classes,
         
     | 
| 
      
 338 
     | 
    
         
            +
                      placeholder = _this$props.placeholder,
         
     | 
| 
      
 339 
     | 
    
         
            +
                      startAdornment = _this$props.startAdornment,
         
     | 
| 
      
 340 
     | 
    
         
            +
                      endAdornmentProps = _this$props.endAdornment,
         
     | 
| 
      
 341 
     | 
    
         
            +
                      className = _this$props.className,
         
     | 
| 
      
 342 
     | 
    
         
            +
                      error = _this$props.error,
         
     | 
| 
      
 343 
     | 
    
         
            +
                      type = _this$props.type,
         
     | 
| 
      
 344 
     | 
    
         
            +
                      disabled = _this$props.disabled,
         
     | 
| 
      
 345 
     | 
    
         
            +
                      autoComplete = _this$props.autoComplete,
         
     | 
| 
      
 346 
     | 
    
         
            +
                      autoFocus = _this$props.autoFocus,
         
     | 
| 
      
 347 
     | 
    
         
            +
                      inputId = _this$props.inputId,
         
     | 
| 
      
 348 
     | 
    
         
            +
                      name = _this$props.name,
         
     | 
| 
      
 349 
     | 
    
         
            +
                      multiline = _this$props.multiline,
         
     | 
| 
      
 350 
     | 
    
         
            +
                      rows = _this$props.rows,
         
     | 
| 
      
 351 
     | 
    
         
            +
                      inputClassName = _this$props.inputClassName,
         
     | 
| 
      
 352 
     | 
    
         
            +
                      onReset = _this$props.onReset,
         
     | 
| 
      
 353 
     | 
    
         
            +
                      spellcheck = _this$props.spellcheck,
         
     | 
| 
      
 354 
     | 
    
         
            +
                      startAdornmentColor = _this$props.startAdornmentColor,
         
     | 
| 
      
 355 
     | 
    
         
            +
                      inputProps = _this$props.inputProps;
         
     | 
| 
       310 
356 
     | 
    
         
             
                  var focused = this.state.focused;
         
     | 
| 
       311 
357 
     | 
    
         
             
                  var overlayProps = (0, _objectSpread2.default)({
         
     | 
| 
       312 
     | 
    
         
            -
                    className: (0, _classnames.default)(classes.root, ( 
     | 
| 
      
 358 
     | 
    
         
            +
                    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)
         
     | 
| 
       313 
359 
     | 
    
         
             
                  }, !disabled && {
         
     | 
| 
       314 
360 
     | 
    
         
             
                    onClick: this.handleDivClick,
         
     | 
| 
       315 
361 
     | 
    
         
             
                    onMouseEnter: this.handleMouseEnter,
         
     | 
| 
         @@ -318,12 +364,16 @@ var HiInput = /*#__PURE__*/function (_React$PureComponent) { 
     | 
|
| 
       318 
364 
     | 
    
         
             
                    ref: this.handleOverlayRef
         
     | 
| 
       319 
365 
     | 
    
         
             
                  });
         
     | 
| 
       320 
366 
     | 
    
         
             
                  var leftIcon;
         
     | 
| 
      
 367 
     | 
    
         
            +
             
     | 
| 
       321 
368 
     | 
    
         
             
                  if (!!startAdornment) {
         
     | 
| 
      
 369 
     | 
    
         
            +
                    var _classNames2;
         
     | 
| 
      
 370 
     | 
    
         
            +
             
     | 
| 
       322 
371 
     | 
    
         
             
                    var leftIconProps = {
         
     | 
| 
       323 
372 
     | 
    
         
             
                      color: startAdornmentColor,
         
     | 
| 
       324 
373 
     | 
    
         
             
                      onClick: this.props.onLeftIconClick,
         
     | 
| 
       325 
     | 
    
         
            -
                      className: (0, _classnames.default)(classes.startAdornment, ( 
     | 
| 
      
 374 
     | 
    
         
            +
                      className: (0, _classnames.default)(classes.startAdornment, (_classNames2 = {}, (0, _defineProperty2.default)(_classNames2, classes.startAdornmentDefaultColor, !startAdornmentColor), (0, _defineProperty2.default)(_classNames2, classes.startAdornmentFocus, focused && !startAdornmentColor), (0, _defineProperty2.default)(_classNames2, classes.startAdornmentDisabled, disabled && !startAdornmentColor), (0, _defineProperty2.default)(_classNames2, classes.iconPointer, this.props.onLeftIconClick), _classNames2))
         
     | 
| 
       326 
375 
     | 
    
         
             
                    };
         
     | 
| 
      
 376 
     | 
    
         
            +
             
     | 
| 
       327 
377 
     | 
    
         
             
                    if (typeof startAdornment === 'string') {
         
     | 
| 
       328 
378 
     | 
    
         
             
                      leftIcon = /*#__PURE__*/_react.default.createElement(_HiIcon.default, (0, _extends2.default)({
         
     | 
| 
       329 
379 
     | 
    
         
             
                        icon: startAdornment
         
     | 
| 
         @@ -335,9 +385,9 @@ var HiInput = /*#__PURE__*/function (_React$PureComponent) { 
     | 
|
| 
       335 
385 
     | 
    
         
             
                        className: "".concat(leftIconProps.className, " ").concat(leftIcon.props.className)
         
     | 
| 
       336 
386 
     | 
    
         
             
                      });
         
     | 
| 
       337 
387 
     | 
    
         
             
                    }
         
     | 
| 
       338 
     | 
    
         
            -
                  }
         
     | 
| 
      
 388 
     | 
    
         
            +
                  } // Build endAdornment with eraseIcon + endAdornmentProps
         
     | 
| 
      
 389 
     | 
    
         
            +
             
     | 
| 
       339 
390 
     | 
    
         | 
| 
       340 
     | 
    
         
            -
                  // Build endAdornment with eraseIcon + endAdornmentProps
         
     | 
| 
       341 
391 
     | 
    
         
             
                  var eraseIcon = !multiline && onReset && focused && !disabled && value.length > 0 && /*#__PURE__*/_react.default.createElement(_HiIconButton.default, {
         
     | 
| 
       342 
392 
     | 
    
         
             
                    className: classes.eraseButton,
         
     | 
| 
       343 
393 
     | 
    
         
             
                    classes: {
         
     | 
| 
         @@ -349,16 +399,21 @@ var HiInput = /*#__PURE__*/function (_React$PureComponent) { 
     | 
|
| 
       349 
399 
     | 
    
         
             
                      _this2.eraseIconNode = el;
         
     | 
| 
       350 
400 
     | 
    
         
             
                    }
         
     | 
| 
       351 
401 
     | 
    
         
             
                  }, _ref);
         
     | 
| 
      
 402 
     | 
    
         
            +
             
     | 
| 
       352 
403 
     | 
    
         
             
                  var endAdornment = endAdornmentProps;
         
     | 
| 
      
 404 
     | 
    
         
            +
             
     | 
| 
       353 
405 
     | 
    
         
             
                  if (typeof endAdornmentProps === 'string' && endAdornmentProps !== '') {
         
     | 
| 
      
 406 
     | 
    
         
            +
                    var _classNames3;
         
     | 
| 
      
 407 
     | 
    
         
            +
             
     | 
| 
       354 
408 
     | 
    
         
             
                    endAdornment = /*#__PURE__*/_react.default.createElement(_HiIcon.default, {
         
     | 
| 
       355 
409 
     | 
    
         
             
                      icon: endAdornmentProps,
         
     | 
| 
       356 
410 
     | 
    
         
             
                      size: 20,
         
     | 
| 
       357 
411 
     | 
    
         
             
                      color: "neutral",
         
     | 
| 
       358 
412 
     | 
    
         
             
                      onClick: this.props.onRightIconClick,
         
     | 
| 
       359 
     | 
    
         
            -
                      className: (0, _classnames.default)(classes.rightIcon, ( 
     | 
| 
      
 413 
     | 
    
         
            +
                      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))
         
     | 
| 
       360 
414 
     | 
    
         
             
                    });
         
     | 
| 
       361 
415 
     | 
    
         
             
                  }
         
     | 
| 
      
 416 
     | 
    
         
            +
             
     | 
| 
       362 
417 
     | 
    
         
             
                  return /*#__PURE__*/_react.default.createElement("div", overlayProps, /*#__PURE__*/_react.default.createElement(_Input.default, {
         
     | 
| 
       363 
418 
     | 
    
         
             
                    id: inputId,
         
     | 
| 
       364 
419 
     | 
    
         
             
                    type: type,
         
     | 
| 
         @@ -388,7 +443,7 @@ var HiInput = /*#__PURE__*/function (_React$PureComponent) { 
     | 
|
| 
       388 
443 
     | 
    
         
             
                    }, eraseIcon, endAdornment),
         
     | 
| 
       389 
444 
     | 
    
         
             
                    inputProps: (0, _objectSpread2.default)({
         
     | 
| 
       390 
445 
     | 
    
         
             
                      spellCheck: spellcheck ? 'true' : 'false',
         
     | 
| 
       391 
     | 
    
         
            -
                      className: (0, _classnames.default)(inputClassName, classes.inputPropsClassName, ( 
     | 
| 
      
 446 
     | 
    
         
            +
                      className: (0, _classnames.default)(inputClassName, classes.inputPropsClassName, (_classNames4 = {}, (0, _defineProperty2.default)(_classNames4, classes.inputText, !multiline), (0, _defineProperty2.default)(_classNames4, classes.inputTextArea, multiline), _classNames4))
         
     | 
| 
       392 
447 
     | 
    
         
             
                    }, inputProps)
         
     | 
| 
       393 
448 
     | 
    
         
             
                  }));
         
     | 
| 
       394 
449 
     | 
    
         
             
                }
         
     | 
| 
         @@ -400,11 +455,13 @@ var HiInput = /*#__PURE__*/function (_React$PureComponent) { 
     | 
|
| 
       400 
455 
     | 
    
         
             
                      focused: nextProps.focused
         
     | 
| 
       401 
456 
     | 
    
         
             
                    };
         
     | 
| 
       402 
457 
     | 
    
         
             
                  }
         
     | 
| 
      
 458 
     | 
    
         
            +
             
     | 
| 
       403 
459 
     | 
    
         
             
                  return null;
         
     | 
| 
       404 
460 
     | 
    
         
             
                }
         
     | 
| 
       405 
461 
     | 
    
         
             
              }]);
         
     | 
| 
       406 
462 
     | 
    
         
             
              return HiInput;
         
     | 
| 
       407 
463 
     | 
    
         
             
            }(_react.default.PureComponent);
         
     | 
| 
      
 464 
     | 
    
         
            +
             
     | 
| 
       408 
465 
     | 
    
         
             
            HiInput.defaultProps = {
         
     | 
| 
       409 
466 
     | 
    
         
             
              value: '',
         
     | 
| 
       410 
467 
     | 
    
         
             
              placeholder: '',
         
     | 
| 
         @@ -418,7 +475,10 @@ HiInput.defaultProps = { 
     | 
|
| 
       418 
475 
     | 
    
         
             
              onlyNumbers: false,
         
     | 
| 
       419 
476 
     | 
    
         
             
              spellcheck: false
         
     | 
| 
       420 
477 
     | 
    
         
             
            };
         
     | 
| 
       421 
     | 
    
         
            -
             
     | 
| 
      
 478 
     | 
    
         
            +
             
     | 
| 
      
 479 
     | 
    
         
            +
            var _default = (0, _withStyles.default)(styles, {
         
     | 
| 
       422 
480 
     | 
    
         
             
              hiComponent: true,
         
     | 
| 
       423 
481 
     | 
    
         
             
              name: 'HiMuiHiInput'
         
     | 
| 
       424 
     | 
    
         
            -
            })(HiInput);
         
     | 
| 
      
 482 
     | 
    
         
            +
            })(HiInput);
         
     | 
| 
      
 483 
     | 
    
         
            +
             
     | 
| 
      
 484 
     | 
    
         
            +
            exports.default = _default;
         
     | 
| 
         @@ -1,27 +1,45 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            "use strict";
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
       4 
5 
     | 
    
         
             
            Object.defineProperty(exports, "__esModule", {
         
     | 
| 
       5 
6 
     | 
    
         
             
              value: true
         
     | 
| 
       6 
7 
     | 
    
         
             
            });
         
     | 
| 
       7 
8 
     | 
    
         
             
            exports.styles = exports.default = void 0;
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
       8 
10 
     | 
    
         
             
            var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
       9 
12 
     | 
    
         
             
            var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
       10 
14 
     | 
    
         
             
            var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
       11 
16 
     | 
    
         
             
            var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
       12 
18 
     | 
    
         
             
            var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
       13 
20 
     | 
    
         
             
            var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
         
     | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
            var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
         
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
       16 
22 
     | 
    
         
             
            var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/assertThisInitialized"));
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
       17 
24 
     | 
    
         
             
            var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
      
 26 
     | 
    
         
            +
            var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
            var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
         
     | 
| 
      
 29 
     | 
    
         
            +
             
     | 
| 
       18 
30 
     | 
    
         
             
            var _react = _interopRequireDefault(require("react"));
         
     | 
| 
      
 31 
     | 
    
         
            +
             
     | 
| 
       19 
32 
     | 
    
         
             
            var _classnames = _interopRequireDefault(require("classnames"));
         
     | 
| 
      
 33 
     | 
    
         
            +
             
     | 
| 
       20 
34 
     | 
    
         
             
            var _withStyles = _interopRequireDefault(require("@mui/styles/withStyles"));
         
     | 
| 
      
 35 
     | 
    
         
            +
             
     | 
| 
       21 
36 
     | 
    
         
             
            var _HiTextField = _interopRequireDefault(require("./HiTextField"));
         
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
            function  
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
      
 37 
     | 
    
         
            +
             
     | 
| 
      
 38 
     | 
    
         
            +
            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 
     | 
    
         
            +
             
     | 
| 
      
 42 
     | 
    
         
            +
            var styles = function styles() {
         
     | 
| 
       25 
43 
     | 
    
         
             
              return {
         
     | 
| 
       26 
44 
     | 
    
         
             
                inputPassword: {
         
     | 
| 
       27 
45 
     | 
    
         
             
                  fontWeight: 'bolder',
         
     | 
| 
         @@ -31,22 +49,30 @@ var styles = exports.styles = function styles() { 
     | 
|
| 
       31 
49 
     | 
    
         
             
                }
         
     | 
| 
       32 
50 
     | 
    
         
             
              };
         
     | 
| 
       33 
51 
     | 
    
         
             
            };
         
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
52 
     | 
    
         
             
            /**
         
     | 
| 
       36 
53 
     | 
    
         
             
             * Champs input email pour formulaire
         
     | 
| 
       37 
54 
     | 
    
         
             
             */
         
     | 
| 
      
 55 
     | 
    
         
            +
             
     | 
| 
      
 56 
     | 
    
         
            +
             
     | 
| 
      
 57 
     | 
    
         
            +
            exports.styles = styles;
         
     | 
| 
      
 58 
     | 
    
         
            +
             
     | 
| 
       38 
59 
     | 
    
         
             
            var HiPasswordField = /*#__PURE__*/function (_React$Component) {
         
     | 
| 
       39 
60 
     | 
    
         
             
              (0, _inherits2.default)(HiPasswordField, _React$Component);
         
     | 
| 
      
 61 
     | 
    
         
            +
             
     | 
| 
      
 62 
     | 
    
         
            +
              var _super = _createSuper(HiPasswordField);
         
     | 
| 
      
 63 
     | 
    
         
            +
             
     | 
| 
       40 
64 
     | 
    
         
             
              function HiPasswordField(props) {
         
     | 
| 
       41 
65 
     | 
    
         
             
                var _this;
         
     | 
| 
      
 66 
     | 
    
         
            +
             
     | 
| 
       42 
67 
     | 
    
         
             
                (0, _classCallCheck2.default)(this, HiPasswordField);
         
     | 
| 
       43 
     | 
    
         
            -
                _this =  
     | 
| 
      
 68 
     | 
    
         
            +
                _this = _super.call(this, props);
         
     | 
| 
       44 
69 
     | 
    
         
             
                _this.state = {
         
     | 
| 
       45 
70 
     | 
    
         
             
                  showText: false
         
     | 
| 
       46 
71 
     | 
    
         
             
                };
         
     | 
| 
       47 
72 
     | 
    
         
             
                _this.handlePasswordToggle = _this.handlePasswordToggle.bind((0, _assertThisInitialized2.default)(_this));
         
     | 
| 
       48 
73 
     | 
    
         
             
                return _this;
         
     | 
| 
       49 
74 
     | 
    
         
             
              }
         
     | 
| 
      
 75 
     | 
    
         
            +
             
     | 
| 
       50 
76 
     | 
    
         
             
              (0, _createClass2.default)(HiPasswordField, [{
         
     | 
| 
       51 
77 
     | 
    
         
             
                key: "handlePasswordToggle",
         
     | 
| 
       52 
78 
     | 
    
         
             
                value: function handlePasswordToggle() {
         
     | 
| 
         @@ -60,10 +86,10 @@ var HiPasswordField = /*#__PURE__*/function (_React$Component) { 
     | 
|
| 
       60 
86 
     | 
    
         
             
                key: "render",
         
     | 
| 
       61 
87 
     | 
    
         
             
                value: function render() {
         
     | 
| 
       62 
88 
     | 
    
         
             
                  var _this$props = this.props,
         
     | 
| 
       63 
     | 
    
         
            -
             
     | 
| 
       64 
     | 
    
         
            -
             
     | 
| 
       65 
     | 
    
         
            -
             
     | 
| 
       66 
     | 
    
         
            -
             
     | 
| 
      
 89 
     | 
    
         
            +
                      classes = _this$props.classes,
         
     | 
| 
      
 90 
     | 
    
         
            +
                      HiInputProps = _this$props.HiInputProps,
         
     | 
| 
      
 91 
     | 
    
         
            +
                      autoComplete = _this$props.autoComplete,
         
     | 
| 
      
 92 
     | 
    
         
            +
                      otherProps = (0, _objectWithoutProperties2.default)(_this$props, ["classes", "HiInputProps", "autoComplete"]);
         
     | 
| 
       67 
93 
     | 
    
         
             
                  var endAdornment = this.state.showText ? 'visibility_off' : 'visibility';
         
     | 
| 
       68 
94 
     | 
    
         
             
                  var type = this.state.showText ? 'text' : 'password';
         
     | 
| 
       69 
95 
     | 
    
         
             
                  var inputClassName = (0, _classnames.default)((0, _defineProperty2.default)({}, classes.inputPassword, !this.state.showText && otherProps.value !== ""));
         
     | 
| 
         @@ -82,6 +108,7 @@ var HiPasswordField = /*#__PURE__*/function (_React$Component) { 
     | 
|
| 
       82 
108 
     | 
    
         
             
              }]);
         
     | 
| 
       83 
109 
     | 
    
         
             
              return HiPasswordField;
         
     | 
| 
       84 
110 
     | 
    
         
             
            }(_react.default.Component);
         
     | 
| 
      
 111 
     | 
    
         
            +
             
     | 
| 
       85 
112 
     | 
    
         
             
            HiPasswordField.defaultProps = {
         
     | 
| 
       86 
113 
     | 
    
         
             
              /**
         
     | 
| 
       87 
114 
     | 
    
         
             
               * Autocomplete off by default
         
     | 
| 
         @@ -89,7 +116,10 @@ HiPasswordField.defaultProps = { 
     | 
|
| 
       89 
116 
     | 
    
         
             
               */
         
     | 
| 
       90 
117 
     | 
    
         
             
              autoComplete: 'off'
         
     | 
| 
       91 
118 
     | 
    
         
             
            };
         
     | 
| 
       92 
     | 
    
         
            -
             
     | 
| 
      
 119 
     | 
    
         
            +
             
     | 
| 
      
 120 
     | 
    
         
            +
            var _default = (0, _withStyles.default)(styles, {
         
     | 
| 
       93 
121 
     | 
    
         
             
              hiComponent: true,
         
     | 
| 
       94 
122 
     | 
    
         
             
              name: 'HmuiHiPasswordField'
         
     | 
| 
       95 
     | 
    
         
            -
            })(HiPasswordField);
         
     | 
| 
      
 123 
     | 
    
         
            +
            })(HiPasswordField);
         
     | 
| 
      
 124 
     | 
    
         
            +
             
     | 
| 
      
 125 
     | 
    
         
            +
            exports.default = _default;
         
     | 
    
        package/HiForm/HiSearchField.js
    CHANGED
    
    | 
         @@ -1,22 +1,36 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            "use strict";
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
       4 
5 
     | 
    
         
             
            Object.defineProperty(exports, "__esModule", {
         
     | 
| 
       5 
6 
     | 
    
         
             
              value: true
         
     | 
| 
       6 
7 
     | 
    
         
             
            });
         
     | 
| 
       7 
8 
     | 
    
         
             
            exports.default = void 0;
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
       8 
10 
     | 
    
         
             
            var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
       9 
12 
     | 
    
         
             
            var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
       10 
14 
     | 
    
         
             
            var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
       11 
16 
     | 
    
         
             
            var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
         
     | 
| 
       12 
     | 
    
         
            -
             
     | 
| 
       13 
     | 
    
         
            -
            var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
       14 
18 
     | 
    
         
             
            var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/assertThisInitialized"));
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
       15 
20 
     | 
    
         
             
            var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
         
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
      
 22 
     | 
    
         
            +
            var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
            var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
       16 
26 
     | 
    
         
             
            var _react = _interopRequireDefault(require("react"));
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
       17 
28 
     | 
    
         
             
            var _HiInput = _interopRequireDefault(require("./HiInput"));
         
     | 
| 
       18 
     | 
    
         
            -
             
     | 
| 
       19 
     | 
    
         
            -
            function  
     | 
| 
      
 29 
     | 
    
         
            +
             
     | 
| 
      
 30 
     | 
    
         
            +
            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 
     | 
    
         
            +
             
     | 
| 
       20 
34 
     | 
    
         
             
            /**
         
     | 
| 
       21 
35 
     | 
    
         
             
             * Construit une barre de recherche avec icône Search (Magnify),
         
     | 
| 
       22 
36 
     | 
    
         
             
             * permet de filtrer une liste d'éléments en spécifiant le nom de la/les propriétés sur lesquelles filtrer,
         
     | 
| 
         @@ -25,10 +39,14 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf. 
     | 
|
| 
       25 
39 
     | 
    
         
             
             */
         
     | 
| 
       26 
40 
     | 
    
         
             
            var HiSearchField = /*#__PURE__*/function (_React$Component) {
         
     | 
| 
       27 
41 
     | 
    
         
             
              (0, _inherits2.default)(HiSearchField, _React$Component);
         
     | 
| 
      
 42 
     | 
    
         
            +
             
     | 
| 
      
 43 
     | 
    
         
            +
              var _super = _createSuper(HiSearchField);
         
     | 
| 
      
 44 
     | 
    
         
            +
             
     | 
| 
       28 
45 
     | 
    
         
             
              function HiSearchField(props) {
         
     | 
| 
       29 
46 
     | 
    
         
             
                var _this;
         
     | 
| 
      
 47 
     | 
    
         
            +
             
     | 
| 
       30 
48 
     | 
    
         
             
                (0, _classCallCheck2.default)(this, HiSearchField);
         
     | 
| 
       31 
     | 
    
         
            -
                _this =  
     | 
| 
      
 49 
     | 
    
         
            +
                _this = _super.call(this, props);
         
     | 
| 
       32 
50 
     | 
    
         
             
                _this.state = {
         
     | 
| 
       33 
51 
     | 
    
         
             
                  inputValue: ''
         
     | 
| 
       34 
52 
     | 
    
         
             
                };
         
     | 
| 
         @@ -37,6 +55,7 @@ var HiSearchField = /*#__PURE__*/function (_React$Component) { 
     | 
|
| 
       37 
55 
     | 
    
         
             
                _this.handleReset = _this.handleReset.bind((0, _assertThisInitialized2.default)(_this));
         
     | 
| 
       38 
56 
     | 
    
         
             
                return _this;
         
     | 
| 
       39 
57 
     | 
    
         
             
              }
         
     | 
| 
      
 58 
     | 
    
         
            +
             
     | 
| 
       40 
59 
     | 
    
         
             
              (0, _createClass2.default)(HiSearchField, [{
         
     | 
| 
       41 
60 
     | 
    
         
             
                key: "filterOnProperties",
         
     | 
| 
       42 
61 
     | 
    
         
             
                value: function filterOnProperties(item, search) {
         
     | 
| 
         @@ -44,14 +63,17 @@ var HiSearchField = /*#__PURE__*/function (_React$Component) { 
     | 
|
| 
       44 
63 
     | 
    
         
             
                    // If no properties specify, search on item
         
     | 
| 
       45 
64 
     | 
    
         
             
                    return item.toString().toLowerCase().search(search.toLowerCase()) !== -1;
         
     | 
| 
       46 
65 
     | 
    
         
             
                  }
         
     | 
| 
      
 66 
     | 
    
         
            +
             
     | 
| 
       47 
67 
     | 
    
         
             
                  var searchSucceed = false;
         
     | 
| 
       48 
68 
     | 
    
         
             
                  this.props.filterPropertyList.forEach(function (filter) {
         
     | 
| 
       49 
69 
     | 
    
         
             
                    var itemProperty = null;
         
     | 
| 
      
 70 
     | 
    
         
            +
             
     | 
| 
       50 
71 
     | 
    
         
             
                    if (filter.indexOf('.') > 0) {
         
     | 
| 
       51 
72 
     | 
    
         
             
                      itemProperty = item[filter.split('.')[0]][filter.split('.')[1]];
         
     | 
| 
       52 
73 
     | 
    
         
             
                    } else {
         
     | 
| 
       53 
74 
     | 
    
         
             
                      itemProperty = item[filter];
         
     | 
| 
       54 
75 
     | 
    
         
             
                    }
         
     | 
| 
      
 76 
     | 
    
         
            +
             
     | 
| 
       55 
77 
     | 
    
         
             
                    if (itemProperty.toString().toLowerCase().search(search.toLowerCase()) !== -1) {
         
     | 
| 
       56 
78 
     | 
    
         
             
                      searchSucceed = true;
         
     | 
| 
       57 
79 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -62,28 +84,35 @@ var HiSearchField = /*#__PURE__*/function (_React$Component) { 
     | 
|
| 
       62 
84 
     | 
    
         
             
                key: "handleChange",
         
     | 
| 
       63 
85 
     | 
    
         
             
                value: function handleChange(event, inputValue) {
         
     | 
| 
       64 
86 
     | 
    
         
             
                  var _this2 = this;
         
     | 
| 
      
 87 
     | 
    
         
            +
             
     | 
| 
       65 
88 
     | 
    
         
             
                  var searchedValue;
         
     | 
| 
      
 89 
     | 
    
         
            +
             
     | 
| 
       66 
90 
     | 
    
         
             
                  if (typeof inputValue !== 'undefined' && typeof event.target.value === 'undefined') {
         
     | 
| 
       67 
91 
     | 
    
         
             
                    searchedValue = inputValue;
         
     | 
| 
       68 
92 
     | 
    
         
             
                  } else {
         
     | 
| 
       69 
93 
     | 
    
         
             
                    searchedValue = event.target.value;
         
     | 
| 
       70 
94 
     | 
    
         
             
                  }
         
     | 
| 
      
 95 
     | 
    
         
            +
             
     | 
| 
       71 
96 
     | 
    
         
             
                  this.setState({
         
     | 
| 
       72 
97 
     | 
    
         
             
                    inputValue: searchedValue
         
     | 
| 
       73 
98 
     | 
    
         
             
                  });
         
     | 
| 
      
 99 
     | 
    
         
            +
             
     | 
| 
       74 
100 
     | 
    
         
             
                  if (this.props.onSearch === undefined) {
         
     | 
| 
       75 
101 
     | 
    
         
             
                    var currentParent = null;
         
     | 
| 
       76 
102 
     | 
    
         
             
                    var filteredList = [];
         
     | 
| 
       77 
103 
     | 
    
         
             
                    this.props.itemList.forEach(function (item) {
         
     | 
| 
       78 
104 
     | 
    
         
             
                      var add = _this2.filterOnProperties(item, searchedValue);
         
     | 
| 
      
 105 
     | 
    
         
            +
             
     | 
| 
       79 
106 
     | 
    
         
             
                      if (item.hasChildren === true && add === false) {
         
     | 
| 
       80 
107 
     | 
    
         
             
                        currentParent = item;
         
     | 
| 
       81 
108 
     | 
    
         
             
                      }
         
     | 
| 
      
 109 
     | 
    
         
            +
             
     | 
| 
       82 
110 
     | 
    
         
             
                      if (add === true) {
         
     | 
| 
       83 
111 
     | 
    
         
             
                        if (currentParent !== null && item.parentId === currentParent.id) {
         
     | 
| 
       84 
112 
     | 
    
         
             
                          filteredList.push(currentParent);
         
     | 
| 
       85 
113 
     | 
    
         
             
                          currentParent = null;
         
     | 
| 
       86 
114 
     | 
    
         
             
                        }
         
     | 
| 
      
 115 
     | 
    
         
            +
             
     | 
| 
       87 
116 
     | 
    
         
             
                        filteredList.push(item);
         
     | 
| 
       88 
117 
     | 
    
         
             
                      }
         
     | 
| 
       89 
118 
     | 
    
         
             
                    });
         
     | 
| 
         @@ -98,6 +127,7 @@ var HiSearchField = /*#__PURE__*/function (_React$Component) { 
     | 
|
| 
       98 
127 
     | 
    
         
             
                  this.setState({
         
     | 
| 
       99 
128 
     | 
    
         
             
                    inputValue: ''
         
     | 
| 
       100 
129 
     | 
    
         
             
                  });
         
     | 
| 
      
 130 
     | 
    
         
            +
             
     | 
| 
       101 
131 
     | 
    
         
             
                  if (typeof this.props.onSearch === 'undefined') {
         
     | 
| 
       102 
132 
     | 
    
         
             
                    this.props.onFilteredList(this.props.itemList);
         
     | 
| 
       103 
133 
     | 
    
         
             
                  } else {
         
     | 
| 
         @@ -108,8 +138,8 @@ var HiSearchField = /*#__PURE__*/function (_React$Component) { 
     | 
|
| 
       108 
138 
     | 
    
         
             
                key: "render",
         
     | 
| 
       109 
139 
     | 
    
         
             
                value: function render() {
         
     | 
| 
       110 
140 
     | 
    
         
             
                  var _this$props = this.props,
         
     | 
| 
       111 
     | 
    
         
            -
             
     | 
| 
       112 
     | 
    
         
            -
             
     | 
| 
      
 141 
     | 
    
         
            +
                      placeholder = _this$props.placeholder,
         
     | 
| 
      
 142 
     | 
    
         
            +
                      others = (0, _objectWithoutProperties2.default)(_this$props, ["placeholder"]);
         
     | 
| 
       113 
143 
     | 
    
         
             
                  return /*#__PURE__*/_react.default.createElement(_HiInput.default, (0, _extends2.default)({
         
     | 
| 
       114 
144 
     | 
    
         
             
                    placeholder: placeholder,
         
     | 
| 
       115 
145 
     | 
    
         
             
                    onReset: this.handleReset,
         
     | 
| 
         @@ -121,7 +151,9 @@ var HiSearchField = /*#__PURE__*/function (_React$Component) { 
     | 
|
| 
       121 
151 
     | 
    
         
             
              }]);
         
     | 
| 
       122 
152 
     | 
    
         
             
              return HiSearchField;
         
     | 
| 
       123 
153 
     | 
    
         
             
            }(_react.default.Component);
         
     | 
| 
      
 154 
     | 
    
         
            +
             
     | 
| 
       124 
155 
     | 
    
         
             
            HiSearchField.defaultProps = {
         
     | 
| 
       125 
156 
     | 
    
         
             
              placeholder: 'Search'
         
     | 
| 
       126 
157 
     | 
    
         
             
            };
         
     | 
| 
       127 
     | 
    
         
            -
            var _default =  
     | 
| 
      
 158 
     | 
    
         
            +
            var _default = HiSearchField;
         
     | 
| 
      
 159 
     | 
    
         
            +
            exports.default = _default;
         
     |