@hipay/hipay-material-ui 3.15.2 → 3.15.3-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/HiAccordion/HiAccordion.js +8 -26
- package/HiAccordion/index.js +1 -5
- package/HiAccordionActions/HiAccordionActions.js +1 -14
- package/HiAccordionActions/index.js +1 -5
- package/HiAccordionSummary/HiAccordionSummary.js +1 -15
- package/HiAccordionSummary/index.js +1 -5
- package/HiAlertModal/HiAlertModal.js +7 -22
- package/HiAlertModal/index.js +1 -5
- package/HiAppBar/HiAppBar.js +11 -42
- package/HiAppBar/index.js +0 -2
- package/HiAvatar/HiAvatar.js +3 -12
- package/HiAvatar/index.js +0 -2
- package/HiBadge/HiBadge.js +17 -33
- package/HiBadge/index.js +0 -2
- package/HiBreadcrumb/HiBreadcrumb.js +6 -30
- package/HiBreadcrumb/HiStep.js +13 -45
- package/HiBreadcrumb/HiStepConnector.js +15 -50
- package/HiBreadcrumb/HiStepContent.js +6 -30
- package/HiBreadcrumb/HiStepIcon.js +17 -42
- package/HiBreadcrumb/HiStepLabel.js +17 -47
- package/HiBreadcrumb/HiStepper.js +6 -30
- package/HiBreadcrumb/index.js +0 -2
- package/HiButton/HiButton.js +12 -37
- package/HiButton/index.js +1 -5
- package/HiCell/CellAddress.js +12 -33
- package/HiCell/CellDate.js +10 -36
- package/HiCell/CellHiddenContent.js +8 -30
- package/HiCell/CellIcon.js +12 -36
- package/HiCell/CellImage.js +12 -34
- package/HiCell/CellNumeric.js +13 -40
- package/HiCell/CellPinToAction.js +9 -33
- package/HiCell/CellRate.js +17 -51
- package/HiCell/CellSentinel.js +12 -33
- package/HiCell/CellSentinelScore.js +9 -31
- package/HiCell/CellText.js +16 -52
- package/HiCell/CellTextStyled.js +13 -24
- package/HiCell/index.js +0 -10
- package/HiCheckbox/HiCheckbox.js +19 -56
- package/HiCheckbox/index.js +0 -2
- package/HiChip/HiChip.js +24 -47
- package/HiChip/HiChipSwitch.js +16 -59
- package/HiChip/index.js +0 -3
- package/HiColoredLabel/HiColoredLabel.js +47 -69
- package/HiColoredLabel/index.js +0 -2
- package/HiDatePicker/Caption.js +9 -21
- package/HiDatePicker/HiDatePicker.js +16 -88
- package/HiDatePicker/HiDatePickerMobile.js +18 -43
- package/HiDatePicker/HiDateRangePicker.js +38 -134
- package/HiDatePicker/HiDateRangeSelector.js +49 -130
- package/HiDatePicker/ListPicker.js +8 -38
- package/HiDatePicker/NavBar.js +12 -31
- package/HiDatePicker/Overlays/CustomOverlayLayout.js +11 -28
- package/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +11 -28
- package/HiDatePicker/Overlays/MonthPickerOverlay.js +4 -26
- package/HiDatePicker/Overlays/Overlay.js +8 -25
- package/HiDatePicker/Overlays/TimePickerOverlay.js +8 -39
- package/HiDatePicker/Overlays/YearPickerOverlay.js +8 -31
- package/HiDatePicker/Overlays/index.js +0 -6
- package/HiDatePicker/Weekday.js +4 -9
- package/HiDatePicker/hiLocaleUtils.js +8 -20
- package/HiDatePicker/index.js +0 -2
- package/HiDatePicker/stylesheet.js +7 -13
- package/HiDialog/HiDialog.js +7 -19
- package/HiDialog/index.js +0 -2
- package/HiDotsStepper/HiDot.js +9 -38
- package/HiDotsStepper/HiDotsStepper.js +10 -37
- package/HiDotsStepper/index.js +0 -3
- package/HiExpansionPanel/HiExpansionPanel.js +16 -38
- package/HiExpansionPanel/index.js +1 -5
- package/HiForm/HiAddressField.js +10 -36
- package/HiForm/HiEmailField.js +5 -29
- package/HiForm/HiFormControl.js +31 -77
- package/HiForm/HiFormLabel.js +16 -42
- package/HiForm/HiInput.js +34 -92
- package/HiForm/HiPasswordField.js +8 -36
- package/HiForm/HiSearchField.js +3 -34
- package/HiForm/HiSlider.js +22 -57
- package/HiForm/HiTextField.js +22 -47
- package/HiForm/HiUpload.js +35 -95
- package/HiForm/HiUploadField.js +10 -32
- package/HiForm/HiUploadInput.js +24 -77
- package/HiForm/index.js +0 -12
- package/HiIcon/HiIcon.js +9 -34
- package/HiIcon/index.js +0 -2
- package/HiIconButton/HiIconButton.js +7 -22
- package/HiIconButton/index.js +0 -2
- package/HiListItemLink/HiListItemLink.js +7 -19
- package/HiListItemLink/index.js +0 -2
- package/HiLoader/HiLoader.js +6 -16
- package/HiLoader/index.js +0 -2
- package/HiNotice/HiKPI.js +17 -48
- package/HiNotice/HiKPINotice.js +6 -16
- package/HiNotice/index.js +0 -3
- package/HiPagination/HiPagination.js +1 -11
- package/HiPagination/index.js +0 -2
- package/HiPaymentMeans/HiPaymentMeans.js +31 -72
- package/HiPaymentMeans/index.js +0 -2
- package/HiPdfReader/HiPdfReader.js +24 -57
- package/HiPdfReader/index.js +0 -2
- package/HiPin/HiPin.js +16 -28
- package/HiPin/index.js +0 -2
- package/HiRadio/HiRadio.js +12 -23
- package/HiRadio/index.js +0 -2
- package/HiScrollStepper/HiScrollStepper.js +29 -67
- package/HiScrollStepper/index.js +0 -2
- package/HiSelect/HiDynamicSelect.js +32 -42
- package/HiSelect/HiDynamicSelectField.js +24 -48
- package/HiSelect/HiNestedSelect.js +65 -111
- package/HiSelect/HiNestedSelectContent.js +60 -86
- package/HiSelect/HiNestedSelectField.js +24 -48
- package/HiSelect/HiSelect.js +89 -187
- package/HiSelect/HiSelectContent.js +62 -97
- package/HiSelect/HiSelectField.js +25 -49
- package/HiSelect/HiSelectInput.js +24 -77
- package/HiSelect/HiSelectMobile.js +7 -44
- package/HiSelect/HiSuggestSelect.js +25 -81
- package/HiSelect/HiSuggestSelectField.js +15 -39
- package/HiSelect/index.js +2 -14
- package/HiSelectableList/HiSelectableList.js +34 -90
- package/HiSelectableList/HiSelectableListHierarchic.js +34 -60
- package/HiSelectableList/HiSelectableListItem.js +45 -88
- package/HiSelectableList/index.js +0 -4
- package/HiStepper/DefaultIndicator.js +1 -10
- package/HiStepper/HiStep.js +21 -51
- package/HiStepper/HiStepper.js +2 -15
- package/HiStepper/index.js +0 -3
- package/HiSwitch/HiSwitch.js +19 -43
- package/HiSwitch/HiSwitchState.js +22 -39
- package/HiSwitch/index.js +0 -3
- package/HiTable/HiCellBuilder.js +10 -65
- package/HiTable/HiTable.js +20 -48
- package/HiTable/HiTableBody.js +7 -24
- package/HiTable/HiTableHeader.js +18 -51
- package/HiTable/HiTableRow.js +12 -46
- package/HiTable/constants.js +48 -98
- package/HiTable/index.js +0 -2
- package/es/HiAccordion/HiAccordion.js +8 -26
- package/es/HiAccordion/index.js +1 -5
- package/es/HiAccordionActions/HiAccordionActions.js +1 -14
- package/es/HiAccordionActions/index.js +1 -5
- package/es/HiAccordionSummary/HiAccordionSummary.js +1 -15
- package/es/HiAccordionSummary/index.js +1 -5
- package/es/HiAlertModal/HiAlertModal.js +7 -22
- package/es/HiAlertModal/index.js +1 -5
- package/es/HiAppBar/HiAppBar.js +11 -42
- package/es/HiAppBar/index.js +0 -2
- package/es/HiAvatar/HiAvatar.js +3 -12
- package/es/HiAvatar/index.js +0 -2
- package/es/HiBadge/HiBadge.js +17 -33
- package/es/HiBadge/index.js +0 -2
- package/es/HiBreadcrumb/HiBreadcrumb.js +6 -30
- package/es/HiBreadcrumb/HiStep.js +13 -45
- package/es/HiBreadcrumb/HiStepConnector.js +15 -50
- package/es/HiBreadcrumb/HiStepContent.js +6 -30
- package/es/HiBreadcrumb/HiStepIcon.js +17 -42
- package/es/HiBreadcrumb/HiStepLabel.js +17 -47
- package/es/HiBreadcrumb/HiStepper.js +6 -30
- package/es/HiBreadcrumb/index.js +0 -2
- package/es/HiButton/HiButton.js +12 -37
- package/es/HiButton/index.js +1 -5
- package/es/HiCell/CellAddress.js +12 -33
- package/es/HiCell/CellDate.js +10 -36
- package/es/HiCell/CellHiddenContent.js +8 -30
- package/es/HiCell/CellIcon.js +12 -36
- package/es/HiCell/CellImage.js +12 -34
- package/es/HiCell/CellNumeric.js +13 -40
- package/es/HiCell/CellPinToAction.js +9 -33
- package/es/HiCell/CellRate.js +17 -51
- package/es/HiCell/CellSentinel.js +12 -33
- package/es/HiCell/CellSentinelScore.js +9 -31
- package/es/HiCell/CellText.js +16 -52
- package/es/HiCell/CellTextStyled.js +13 -24
- package/es/HiCell/index.js +0 -10
- package/es/HiCheckbox/HiCheckbox.js +19 -56
- package/es/HiCheckbox/index.js +0 -2
- package/es/HiChip/HiChip.js +24 -47
- package/es/HiChip/HiChipSwitch.js +16 -59
- package/es/HiChip/index.js +0 -3
- package/es/HiColoredLabel/HiColoredLabel.js +47 -69
- package/es/HiColoredLabel/index.js +0 -2
- package/es/HiDatePicker/Caption.js +9 -21
- package/es/HiDatePicker/HiDatePicker.js +16 -88
- package/es/HiDatePicker/HiDatePickerMobile.js +18 -43
- package/es/HiDatePicker/HiDateRangePicker.js +38 -134
- package/es/HiDatePicker/HiDateRangeSelector.js +49 -130
- package/es/HiDatePicker/ListPicker.js +8 -38
- package/es/HiDatePicker/NavBar.js +12 -31
- package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +11 -28
- package/es/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +11 -28
- package/es/HiDatePicker/Overlays/MonthPickerOverlay.js +4 -26
- package/es/HiDatePicker/Overlays/Overlay.js +8 -25
- package/es/HiDatePicker/Overlays/TimePickerOverlay.js +8 -39
- package/es/HiDatePicker/Overlays/YearPickerOverlay.js +8 -31
- package/es/HiDatePicker/Overlays/index.js +0 -6
- package/es/HiDatePicker/Weekday.js +4 -9
- package/es/HiDatePicker/hiLocaleUtils.js +8 -20
- package/es/HiDatePicker/index.js +0 -2
- package/es/HiDatePicker/stylesheet.js +7 -13
- package/es/HiDialog/HiDialog.js +7 -19
- package/es/HiDialog/index.js +0 -2
- package/es/HiDotsStepper/HiDot.js +9 -38
- package/es/HiDotsStepper/HiDotsStepper.js +10 -37
- package/es/HiDotsStepper/index.js +0 -3
- package/es/HiExpansionPanel/HiExpansionPanel.js +16 -38
- package/es/HiExpansionPanel/index.js +1 -5
- package/es/HiForm/HiAddressField.js +10 -36
- package/es/HiForm/HiEmailField.js +5 -29
- package/es/HiForm/HiFormControl.js +31 -77
- package/es/HiForm/HiFormLabel.js +16 -42
- package/es/HiForm/HiInput.js +34 -92
- package/es/HiForm/HiPasswordField.js +8 -36
- package/es/HiForm/HiSearchField.js +3 -34
- package/es/HiForm/HiSlider.js +22 -57
- package/es/HiForm/HiTextField.js +22 -47
- package/es/HiForm/HiUpload.js +35 -95
- package/es/HiForm/HiUploadField.js +10 -32
- package/es/HiForm/HiUploadInput.js +24 -77
- package/es/HiForm/index.js +0 -12
- package/es/HiIcon/HiIcon.js +9 -34
- package/es/HiIcon/index.js +0 -2
- package/es/HiIconButton/HiIconButton.js +7 -22
- package/es/HiIconButton/index.js +0 -2
- package/es/HiListItemLink/HiListItemLink.js +7 -19
- package/es/HiListItemLink/index.js +0 -2
- package/es/HiLoader/HiLoader.js +6 -16
- package/es/HiLoader/index.js +0 -2
- package/es/HiNotice/HiKPI.js +17 -48
- package/es/HiNotice/HiKPINotice.js +6 -16
- package/es/HiNotice/index.js +0 -3
- package/es/HiPagination/HiPagination.js +1 -11
- package/es/HiPagination/index.js +0 -2
- package/es/HiPaymentMeans/HiPaymentMeans.js +31 -72
- package/es/HiPaymentMeans/index.js +0 -2
- package/es/HiPdfReader/HiPdfReader.js +24 -57
- package/es/HiPdfReader/index.js +0 -2
- package/es/HiPin/HiPin.js +16 -28
- package/es/HiPin/index.js +0 -2
- package/es/HiRadio/HiRadio.js +12 -23
- package/es/HiRadio/index.js +0 -2
- package/es/HiScrollStepper/HiScrollStepper.js +29 -67
- package/es/HiScrollStepper/index.js +0 -2
- package/es/HiSelect/HiDynamicSelect.js +32 -42
- package/es/HiSelect/HiDynamicSelectField.js +24 -48
- package/es/HiSelect/HiNestedSelect.js +65 -111
- package/es/HiSelect/HiNestedSelectContent.js +60 -86
- package/es/HiSelect/HiNestedSelectField.js +24 -48
- package/es/HiSelect/HiSelect.js +89 -187
- package/es/HiSelect/HiSelectContent.js +62 -97
- package/es/HiSelect/HiSelectField.js +25 -49
- package/es/HiSelect/HiSelectInput.js +24 -77
- package/es/HiSelect/HiSelectMobile.js +7 -44
- package/es/HiSelect/HiSuggestSelect.js +25 -81
- package/es/HiSelect/HiSuggestSelectField.js +15 -39
- package/es/HiSelect/index.js +2 -14
- package/es/HiSelectableList/HiSelectableList.js +34 -90
- package/es/HiSelectableList/HiSelectableListHierarchic.js +34 -60
- package/es/HiSelectableList/HiSelectableListItem.js +45 -88
- package/es/HiSelectableList/index.js +0 -4
- package/es/HiStepper/DefaultIndicator.js +1 -10
- package/es/HiStepper/HiStep.js +21 -51
- package/es/HiStepper/HiStepper.js +2 -15
- package/es/HiStepper/index.js +0 -3
- package/es/HiSwitch/HiSwitch.js +19 -43
- package/es/HiSwitch/HiSwitchState.js +22 -39
- package/es/HiSwitch/index.js +0 -3
- package/es/HiTable/HiCellBuilder.js +10 -65
- package/es/HiTable/HiTable.js +20 -48
- package/es/HiTable/HiTableBody.js +7 -24
- package/es/HiTable/HiTableHeader.js +18 -51
- package/es/HiTable/HiTableRow.js +12 -46
- package/es/HiTable/constants.js +48 -98
- package/es/HiTable/index.js +0 -2
- package/es/hi-svg-icons/HiAccount.js +4 -14
- package/es/hi-svg-icons/HiActivity.js +4 -14
- package/es/hi-svg-icons/HiAll.js +7 -18
- package/es/hi-svg-icons/HiBilling.js +4 -14
- package/es/hi-svg-icons/HiBriefcaseRescue.js +4 -14
- package/es/hi-svg-icons/HiBusiness.js +4 -14
- package/es/hi-svg-icons/HiCatalog.js +4 -14
- package/es/hi-svg-icons/HiCustomer.js +4 -14
- package/es/hi-svg-icons/HiDownload.js +4 -14
- package/es/hi-svg-icons/HiFinance.js +4 -14
- package/es/hi-svg-icons/HiFinanceMenu.js +4 -14
- package/es/hi-svg-icons/HiHostedPaymentPage.js +4 -14
- package/es/hi-svg-icons/HiHostedPaymentPageMenu.js +4 -14
- package/es/hi-svg-icons/HiIntegration.js +4 -14
- package/es/hi-svg-icons/HiIntegrationMenu.js +4 -14
- package/es/hi-svg-icons/HiIntelligence.js +4 -14
- package/es/hi-svg-icons/HiIntelligenceMenu.js +4 -14
- package/es/hi-svg-icons/HiInvoice.js +4 -14
- package/es/hi-svg-icons/HiInvoiceMenu.js +4 -14
- package/es/hi-svg-icons/HiLogoRounded.js +6 -17
- package/es/hi-svg-icons/HiOrder.js +4 -14
- package/es/hi-svg-icons/HiPaymentOrder.js +4 -14
- package/es/hi-svg-icons/HiPermission.js +4 -14
- package/es/hi-svg-icons/HiPriceGrid.js +4 -14
- package/es/hi-svg-icons/HiPrivate.js +4 -14
- package/es/hi-svg-icons/HiRoute.js +4 -14
- package/es/hi-svg-icons/HiRouteMenu.js +4 -14
- package/es/hi-svg-icons/HiRouteSwitch.js +7 -19
- package/es/hi-svg-icons/HiRouteSwitchMenu.js +7 -19
- package/es/hi-svg-icons/HiSettlement.js +4 -14
- package/es/hi-svg-icons/HiSizeLarge.js +4 -14
- package/es/hi-svg-icons/HiSizeMedium.js +4 -14
- package/es/hi-svg-icons/HiSizeSmall.js +4 -14
- package/es/hi-svg-icons/HiStore.js +4 -14
- package/es/hi-svg-icons/HiStoreMenu.js +4 -14
- package/es/hi-svg-icons/HiTransaction.js +4 -14
- package/es/hi-svg-icons/HiTransactionMenu.js +4 -14
- package/es/hi-svg-icons/HiUser.js +4 -14
- package/es/hi-svg-icons/HiVendor.js +4 -14
- package/es/hi-svg-icons/HiWidget.js +4 -14
- package/es/hi-svg-icons/index.js +0 -41
- package/es/hi-svg-images/HiLogo.js +4 -12
- package/es/hi-svg-images/HiLogoWhite.js +4 -12
- package/es/hi-svg-images/index.js +0 -3
- package/es/setupTest.js +2 -13
- package/es/styleguide/Wrapper.js +0 -6
- package/es/styles/MuiThemeProvider.js +15 -49
- package/es/styles/colorManipulator.js +15 -50
- package/es/styles/createBreakpoints.js +14 -29
- package/es/styles/createGenerateClassName.js +14 -24
- package/es/styles/createMixins.js +4 -10
- package/es/styles/createMuiTheme.js +11 -28
- package/es/styles/createPalette.js +67 -89
- package/es/styles/createStyles.js +0 -1
- package/es/styles/createTypography.js +15 -24
- package/es/styles/getStylesCreator.js +1 -14
- package/es/styles/getThemeProps.js +2 -7
- package/es/styles/index.js +0 -6
- package/es/styles/jssPreset.js +1 -11
- package/es/styles/makeStyles.js +2 -9
- package/es/styles/mergeClasses.js +5 -16
- package/es/styles/shadows.js +1 -4
- package/es/styles/shape.js +1 -2
- package/es/styles/spacing.js +1 -4
- package/es/styles/themeListener.js +2 -10
- package/es/styles/transitions.js +20 -35
- package/es/styles/withStyles.js +2 -9
- package/es/styles/zIndex.js +1 -2
- package/es/test-utils/createMount.js +2 -12
- package/es/test-utils/createRender.js +2 -9
- package/es/test-utils/createShallow.js +6 -17
- package/es/test-utils/getClasses.js +1 -4
- package/es/test-utils/index.js +0 -6
- package/es/test-utils/until.js +3 -14
- package/es/test-utils/unwrap.js +0 -1
- package/es/theme/palette.js +2 -7
- package/es/theme/typography.js +7 -15
- package/es/theme.js +2 -8
- package/es/transitions/utils.js +3 -7
- package/es/utils/exactProp.js +3 -13
- package/es/utils/helpers.js +19 -58
- package/es/withMobileDialog/index.js +0 -2
- package/es/withMobileDialog/withMobileDialog.js +3 -12
- package/hi-svg-icons/HiAccount.js +4 -14
- package/hi-svg-icons/HiActivity.js +4 -14
- package/hi-svg-icons/HiAll.js +7 -18
- package/hi-svg-icons/HiBilling.js +4 -14
- package/hi-svg-icons/HiBriefcaseRescue.js +4 -14
- package/hi-svg-icons/HiBusiness.js +4 -14
- package/hi-svg-icons/HiCatalog.js +4 -14
- package/hi-svg-icons/HiCustomer.js +4 -14
- package/hi-svg-icons/HiDownload.js +4 -14
- package/hi-svg-icons/HiFinance.js +4 -14
- package/hi-svg-icons/HiFinanceMenu.js +4 -14
- package/hi-svg-icons/HiHostedPaymentPage.js +4 -14
- package/hi-svg-icons/HiHostedPaymentPageMenu.js +4 -14
- package/hi-svg-icons/HiIntegration.js +4 -14
- package/hi-svg-icons/HiIntegrationMenu.js +4 -14
- package/hi-svg-icons/HiIntelligence.js +4 -14
- package/hi-svg-icons/HiIntelligenceMenu.js +4 -14
- package/hi-svg-icons/HiInvoice.js +4 -14
- package/hi-svg-icons/HiInvoiceMenu.js +4 -14
- package/hi-svg-icons/HiLogoRounded.js +6 -17
- package/hi-svg-icons/HiOrder.js +4 -14
- package/hi-svg-icons/HiPaymentOrder.js +4 -14
- package/hi-svg-icons/HiPermission.js +4 -14
- package/hi-svg-icons/HiPriceGrid.js +4 -14
- package/hi-svg-icons/HiPrivate.js +4 -14
- package/hi-svg-icons/HiRoute.js +4 -14
- package/hi-svg-icons/HiRouteMenu.js +4 -14
- package/hi-svg-icons/HiRouteSwitch.js +7 -19
- package/hi-svg-icons/HiRouteSwitchMenu.js +7 -19
- package/hi-svg-icons/HiSettlement.js +4 -14
- package/hi-svg-icons/HiSizeLarge.js +4 -14
- package/hi-svg-icons/HiSizeMedium.js +4 -14
- package/hi-svg-icons/HiSizeSmall.js +4 -14
- package/hi-svg-icons/HiStore.js +4 -14
- package/hi-svg-icons/HiStoreMenu.js +4 -14
- package/hi-svg-icons/HiTransaction.js +4 -14
- package/hi-svg-icons/HiTransactionMenu.js +4 -14
- package/hi-svg-icons/HiUser.js +4 -14
- package/hi-svg-icons/HiVendor.js +4 -14
- package/hi-svg-icons/HiWidget.js +4 -14
- package/hi-svg-icons/index.js +0 -41
- package/hi-svg-images/HiLogo.js +4 -12
- package/hi-svg-images/HiLogoWhite.js +4 -12
- package/hi-svg-images/index.js +0 -3
- package/package.json +2 -2
- package/setupTest.js +2 -13
- package/styleguide/Wrapper.js +0 -6
- package/styles/MuiThemeProvider.js +15 -49
- package/styles/colorManipulator.js +15 -50
- package/styles/createBreakpoints.js +14 -29
- package/styles/createGenerateClassName.js +14 -24
- package/styles/createMixins.js +4 -10
- package/styles/createMuiTheme.js +11 -28
- package/styles/createPalette.js +67 -89
- package/styles/createStyles.js +0 -1
- package/styles/createTypography.js +15 -24
- package/styles/getStylesCreator.js +1 -14
- package/styles/getThemeProps.js +2 -7
- package/styles/index.js +0 -6
- package/styles/jssPreset.js +1 -11
- package/styles/makeStyles.js +2 -9
- package/styles/mergeClasses.js +5 -16
- package/styles/shadows.js +1 -4
- package/styles/shape.js +1 -2
- package/styles/spacing.js +1 -4
- package/styles/themeListener.js +2 -10
- package/styles/transitions.js +20 -35
- package/styles/withStyles.js +2 -9
- package/styles/zIndex.js +1 -2
- package/test-utils/createMount.js +2 -12
- package/test-utils/createRender.js +2 -9
- package/test-utils/createShallow.js +6 -17
- package/test-utils/getClasses.js +1 -4
- package/test-utils/index.js +0 -6
- package/test-utils/until.js +3 -14
- package/test-utils/unwrap.js +0 -1
- package/theme/palette.js +2 -7
- package/theme/typography.js +7 -15
- package/theme.js +2 -8
- package/transitions/utils.js +3 -7
- package/utils/exactProp.js +3 -13
- package/utils/helpers.js +19 -58
- package/withMobileDialog/index.js +0 -2
- package/withMobileDialog/withMobileDialog.js +3 -12
package/HiForm/HiAddressField.js
CHANGED
@@ -1,53 +1,35 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
8
7
|
exports.default = void 0;
|
9
|
-
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
11
|
-
|
12
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
13
|
-
|
14
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
|
15
|
-
|
16
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
|
17
|
-
|
18
12
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/assertThisInitialized"));
|
19
|
-
|
20
13
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
|
21
|
-
|
22
14
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
|
23
|
-
|
24
15
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
|
25
|
-
|
26
16
|
var _react = _interopRequireDefault(require("react"));
|
27
|
-
|
28
17
|
var _HiSuggestSelectField = _interopRequireDefault(require("../HiSelect/HiSuggestSelectField"));
|
29
|
-
|
30
18
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
31
|
-
|
32
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
33
|
-
|
19
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } // @inheritedComponent HiSuggestSelectField
|
34
20
|
// OpenStreeMap API url
|
35
21
|
var API_URL = 'https://nominatim.openstreetmap.org/search?q=';
|
22
|
+
|
36
23
|
/**
|
37
24
|
* Champs input adresse pour formulaire
|
38
25
|
*/
|
39
|
-
|
40
26
|
var HiAddressField = /*#__PURE__*/function (_React$Component) {
|
41
27
|
(0, _inherits2.default)(HiAddressField, _React$Component);
|
42
|
-
|
43
28
|
var _super = _createSuper(HiAddressField);
|
44
|
-
|
45
29
|
function HiAddressField(props) {
|
46
30
|
var _this;
|
47
|
-
|
48
31
|
(0, _classCallCheck2.default)(this, HiAddressField);
|
49
32
|
_this = _super.call(this, props);
|
50
|
-
|
51
33
|
_this.displaySuggestions = function (predictions) {
|
52
34
|
var options = [];
|
53
35
|
var isExact = false;
|
@@ -64,13 +46,11 @@ var HiAddressField = /*#__PURE__*/function (_React$Component) {
|
|
64
46
|
key: prediction.id
|
65
47
|
});
|
66
48
|
}, (0, _assertThisInitialized2.default)(_this));
|
67
|
-
|
68
49
|
_this.setState({
|
69
50
|
options: options,
|
70
51
|
isExact: isExact
|
71
52
|
});
|
72
53
|
};
|
73
|
-
|
74
54
|
_this.state = {
|
75
55
|
inputValue: null,
|
76
56
|
options: [],
|
@@ -82,12 +62,10 @@ var HiAddressField = /*#__PURE__*/function (_React$Component) {
|
|
82
62
|
_this.displaySuggestions = _this.displaySuggestions.bind((0, _assertThisInitialized2.default)(_this));
|
83
63
|
return _this;
|
84
64
|
}
|
85
|
-
|
86
65
|
(0, _createClass2.default)(HiAddressField, [{
|
87
66
|
key: "handleSearch",
|
88
67
|
value: function handleSearch(event) {
|
89
68
|
var _this2 = this;
|
90
|
-
|
91
69
|
if (event.target.value) {
|
92
70
|
this.setState({
|
93
71
|
inputValue: event.target.value
|
@@ -102,7 +80,6 @@ var HiAddressField = /*#__PURE__*/function (_React$Component) {
|
|
102
80
|
options: []
|
103
81
|
});
|
104
82
|
}
|
105
|
-
|
106
83
|
this.props.onSearch(event);
|
107
84
|
}
|
108
85
|
}, {
|
@@ -128,16 +105,15 @@ var HiAddressField = /*#__PURE__*/function (_React$Component) {
|
|
128
105
|
key: "render",
|
129
106
|
value: function render() {
|
130
107
|
var _this$props = this.props,
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
108
|
+
exactOnly = _this$props.exactOnly,
|
109
|
+
onSearch = _this$props.onSearch,
|
110
|
+
onReset = _this$props.onReset,
|
111
|
+
onSelect = _this$props.onSelect,
|
112
|
+
otherProps = (0, _objectWithoutProperties2.default)(_this$props, ["exactOnly", "onSearch", "onReset", "onSelect"]);
|
136
113
|
var _this$state = this.state,
|
137
|
-
|
138
|
-
|
114
|
+
options = _this$state.options,
|
115
|
+
isExact = _this$state.isExact; // On met le champ en erreur si une adresse exacte est éxigée
|
139
116
|
// et si l'adresse courante n'est pas complète
|
140
|
-
|
141
117
|
var showError = exactOnly && !isExact;
|
142
118
|
return /*#__PURE__*/_react.default.createElement(_HiSuggestSelectField.default, (0, _extends2.default)({
|
143
119
|
error: showError,
|
@@ -151,6 +127,4 @@ var HiAddressField = /*#__PURE__*/function (_React$Component) {
|
|
151
127
|
}]);
|
152
128
|
return HiAddressField;
|
153
129
|
}(_react.default.Component);
|
154
|
-
|
155
|
-
var _default = HiAddressField;
|
156
|
-
exports.default = _default;
|
130
|
+
var _default = exports.default = HiAddressField;
|
package/HiForm/HiEmailField.js
CHANGED
@@ -1,73 +1,51 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
8
7
|
exports.default = void 0;
|
9
|
-
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
11
|
-
|
12
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
13
|
-
|
14
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
|
15
|
-
|
16
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
|
17
|
-
|
18
12
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/assertThisInitialized"));
|
19
|
-
|
20
13
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
|
21
|
-
|
22
14
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
|
23
|
-
|
24
15
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
|
25
|
-
|
26
16
|
var _react = _interopRequireDefault(require("react"));
|
27
|
-
|
28
17
|
var _validator = _interopRequireDefault(require("validator"));
|
29
|
-
|
30
18
|
var _HiTextField = _interopRequireDefault(require("./HiTextField"));
|
31
|
-
|
32
19
|
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); }; }
|
33
|
-
|
34
|
-
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; } }
|
35
|
-
|
20
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } // @inheritedComponent HiTextField
|
36
21
|
/**
|
37
22
|
* Champs input email pour formulaire
|
38
23
|
*/
|
39
24
|
var HiEmailField = /*#__PURE__*/function (_React$Component) {
|
40
25
|
(0, _inherits2.default)(HiEmailField, _React$Component);
|
41
|
-
|
42
26
|
var _super = _createSuper(HiEmailField);
|
43
|
-
|
44
27
|
function HiEmailField(props) {
|
45
28
|
var _this;
|
46
|
-
|
47
29
|
(0, _classCallCheck2.default)(this, HiEmailField);
|
48
30
|
_this = _super.call(this, props);
|
49
|
-
|
50
31
|
_this.handleBlur = function () {
|
51
32
|
if (_this.props.onError && _this.props.value !== '' && !_validator.default.isEmail(_this.props.value)) {
|
52
33
|
_this.props.onError();
|
53
34
|
}
|
54
|
-
|
55
35
|
if (_this.props.onBlur) {
|
56
36
|
_this.props.onBlur();
|
57
37
|
}
|
58
38
|
};
|
59
|
-
|
60
39
|
_this.handleBlur = _this.handleBlur.bind((0, _assertThisInitialized2.default)(_this));
|
61
40
|
return _this;
|
62
41
|
}
|
63
|
-
|
64
42
|
(0, _createClass2.default)(HiEmailField, [{
|
65
43
|
key: "render",
|
66
44
|
value: function render() {
|
67
45
|
var _this$props = this.props,
|
68
|
-
|
69
|
-
|
70
|
-
|
46
|
+
error = _this$props.error,
|
47
|
+
errorText = _this$props.errorText,
|
48
|
+
otherProps = (0, _objectWithoutProperties2.default)(_this$props, ["error", "errorText"]);
|
71
49
|
return /*#__PURE__*/_react.default.createElement(_HiTextField.default, (0, _extends2.default)({}, otherProps, {
|
72
50
|
type: "email",
|
73
51
|
error: error,
|
@@ -78,6 +56,4 @@ var HiEmailField = /*#__PURE__*/function (_React$Component) {
|
|
78
56
|
}]);
|
79
57
|
return HiEmailField;
|
80
58
|
}(_react.default.Component);
|
81
|
-
|
82
|
-
var _default = HiEmailField;
|
83
|
-
exports.default = _default;
|
59
|
+
var _default = exports.default = HiEmailField;
|
package/HiForm/HiFormControl.js
CHANGED
@@ -1,59 +1,34 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
8
7
|
exports.styles = exports.default = void 0;
|
9
|
-
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
11
|
-
|
12
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
13
|
-
|
14
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
15
|
-
|
16
11
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
|
17
|
-
|
18
12
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
|
19
|
-
|
20
13
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/assertThisInitialized"));
|
21
|
-
|
22
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
|
23
|
-
|
24
15
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
|
25
|
-
|
26
16
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
|
27
|
-
|
28
17
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
29
|
-
|
30
18
|
var _react = _interopRequireDefault(require("react"));
|
31
|
-
|
32
19
|
var _classnames = _interopRequireDefault(require("classnames"));
|
33
|
-
|
34
20
|
var _Warning = _interopRequireDefault(require("@mui/icons-material/Warning"));
|
35
|
-
|
36
21
|
var _Info = _interopRequireDefault(require("@mui/icons-material/Info"));
|
37
|
-
|
38
22
|
var _FormControl = _interopRequireDefault(require("@mui/material/FormControl"));
|
39
|
-
|
40
23
|
var _FormHelperText = _interopRequireDefault(require("@mui/material/FormHelperText"));
|
41
|
-
|
42
24
|
var _withStyles = _interopRequireDefault(require("@mui/styles/withStyles"));
|
43
|
-
|
44
25
|
var _HiFormLabel = _interopRequireDefault(require("./HiFormLabel"));
|
45
|
-
|
46
26
|
var _HiIconButton = _interopRequireDefault(require("../HiIconButton"));
|
47
|
-
|
48
27
|
var _helpers = require("../utils/helpers");
|
49
|
-
|
50
28
|
var _index = _interopRequireDefault(require("keycode/index"));
|
51
|
-
|
52
29
|
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); }; }
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
var styles = function styles(theme) {
|
30
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } // @inheritedComponent FormControl
|
31
|
+
var styles = exports.styles = function styles(theme) {
|
57
32
|
return {
|
58
33
|
helperTextClassName: {
|
59
34
|
color: theme.palette.neutral.main,
|
@@ -68,7 +43,7 @@ var styles = function styles(theme) {
|
|
68
43
|
width: 20,
|
69
44
|
marginLeft: 3,
|
70
45
|
'&$iconButtonError': {
|
71
|
-
color: theme.palette.
|
46
|
+
color: theme.palette.error.main
|
72
47
|
},
|
73
48
|
'&$iconButtonInfo': {
|
74
49
|
color: theme.palette.neutral.main
|
@@ -88,7 +63,7 @@ var styles = function styles(theme) {
|
|
88
63
|
iconButtonInfoActive: {},
|
89
64
|
iconFullWidth: {},
|
90
65
|
errorDiv: (0, _objectSpread2.default)({}, theme.typography.body3, {
|
91
|
-
backgroundColor: theme.palette.
|
66
|
+
backgroundColor: theme.palette.error.main,
|
92
67
|
color: '#FFFFFF',
|
93
68
|
padding: theme.spacing(4, 2),
|
94
69
|
verticalAlign: 'middle',
|
@@ -114,7 +89,7 @@ var styles = function styles(theme) {
|
|
114
89
|
arrowNotFullWidth: {},
|
115
90
|
arrowFullWidth: {},
|
116
91
|
errorDivArrowDown: {
|
117
|
-
borderTopColor: theme.palette.
|
92
|
+
borderTopColor: theme.palette.error.main
|
118
93
|
},
|
119
94
|
helperDiv: (0, _objectSpread2.default)({}, theme.typography.body2, {
|
120
95
|
width: '100%',
|
@@ -136,44 +111,33 @@ var styles = function styles(theme) {
|
|
136
111
|
}
|
137
112
|
};
|
138
113
|
};
|
114
|
+
|
139
115
|
/**
|
140
116
|
* Champs input pour formulaire
|
141
117
|
*/
|
142
|
-
|
143
|
-
|
144
|
-
exports.styles = styles;
|
145
|
-
|
146
118
|
var HiFormControl = /*#__PURE__*/function (_React$PureComponent) {
|
147
119
|
(0, _inherits2.default)(HiFormControl, _React$PureComponent);
|
148
|
-
|
149
120
|
var _super = _createSuper(HiFormControl);
|
150
|
-
|
151
121
|
function HiFormControl(props) {
|
152
122
|
var _this;
|
153
|
-
|
154
123
|
(0, _classCallCheck2.default)(this, HiFormControl);
|
155
124
|
_this = _super.call(this, props);
|
156
|
-
|
157
125
|
_this.handleHelperClick = function (event) {
|
158
126
|
_this.setState(function (prevState) {
|
159
127
|
return {
|
160
128
|
helperOpen: !prevState.helperOpen
|
161
129
|
};
|
162
130
|
});
|
163
|
-
|
164
131
|
if (event) {
|
165
132
|
event.preventDefault();
|
166
133
|
}
|
167
134
|
};
|
168
|
-
|
169
135
|
_this.handleKeyDown = function (event) {
|
170
136
|
var key = (0, _index.default)(event);
|
171
|
-
|
172
137
|
if (['space', 'enter'].includes(key)) {
|
173
138
|
_this.handleHelperClick(event);
|
174
139
|
}
|
175
140
|
};
|
176
|
-
|
177
141
|
_this.handleHover = function (value) {
|
178
142
|
return function () {
|
179
143
|
_this.setState({
|
@@ -181,13 +145,11 @@ var HiFormControl = /*#__PURE__*/function (_React$PureComponent) {
|
|
181
145
|
});
|
182
146
|
};
|
183
147
|
};
|
184
|
-
|
185
148
|
_this.handleFocus = function (value) {
|
186
149
|
return function () {
|
187
150
|
_this.setState({
|
188
151
|
focused: value
|
189
152
|
});
|
190
|
-
|
191
153
|
if (value === false && _this.state.hovered) {
|
192
154
|
_this.setState({
|
193
155
|
hovered: false
|
@@ -195,7 +157,6 @@ var HiFormControl = /*#__PURE__*/function (_React$PureComponent) {
|
|
195
157
|
}
|
196
158
|
};
|
197
159
|
};
|
198
|
-
|
199
160
|
_this.state = {
|
200
161
|
helperOpen: false,
|
201
162
|
focused: false,
|
@@ -207,36 +168,33 @@ var HiFormControl = /*#__PURE__*/function (_React$PureComponent) {
|
|
207
168
|
_this.handleHover = _this.handleHover.bind((0, _assertThisInitialized2.default)(_this));
|
208
169
|
return _this;
|
209
170
|
}
|
210
|
-
|
211
171
|
(0, _createClass2.default)(HiFormControl, [{
|
212
172
|
key: "render",
|
213
173
|
value: function render() {
|
214
|
-
var _classNames2;
|
215
|
-
|
216
174
|
var _this$props = this.props,
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
175
|
+
children = _this$props.children,
|
176
|
+
classes = _this$props.classes,
|
177
|
+
className = _this$props.className,
|
178
|
+
disabled = _this$props.disabled,
|
179
|
+
error = _this$props.error,
|
180
|
+
errorText = _this$props.errorText,
|
181
|
+
id = _this$props.id,
|
182
|
+
label = _this$props.label,
|
183
|
+
InputLabelProps = _this$props.InputLabelProps,
|
184
|
+
helperText = _this$props.helperText,
|
185
|
+
helperIcon = _this$props.helperIcon,
|
186
|
+
FormHelperTextProps = _this$props.FormHelperTextProps,
|
187
|
+
fullWidth = _this$props.fullWidth,
|
188
|
+
required = _this$props.required,
|
189
|
+
multiline = _this$props.multiline,
|
190
|
+
rootRef = _this$props.rootRef,
|
191
|
+
maxLength = _this$props.maxLength,
|
192
|
+
nbChars = _this$props.nbChars,
|
193
|
+
others = (0, _objectWithoutProperties2.default)(_this$props, ["children", "classes", "className", "disabled", "error", "errorText", "id", "label", "InputLabelProps", "helperText", "helperIcon", "FormHelperTextProps", "fullWidth", "required", "multiline", "rootRef", "maxLength", "nbChars"]);
|
236
194
|
var _this$state = this.state,
|
237
|
-
|
238
|
-
|
239
|
-
|
195
|
+
helperOpen = _this$state.helperOpen,
|
196
|
+
focused = _this$state.focused,
|
197
|
+
hovered = _this$state.hovered;
|
240
198
|
return /*#__PURE__*/_react.default.createElement(_FormControl.default, (0, _extends2.default)({
|
241
199
|
fullWidth: fullWidth,
|
242
200
|
className: className,
|
@@ -274,7 +232,7 @@ var HiFormControl = /*#__PURE__*/function (_React$PureComponent) {
|
|
274
232
|
fontSize: "small",
|
275
233
|
className: (0, _classnames.default)(classes.icon)
|
276
234
|
})), helperIcon && helperText && !error && /*#__PURE__*/_react.default.createElement(_HiIconButton.default, {
|
277
|
-
className: (0, _classnames.default)(classes.iconButton, classes.iconButtonInfo, (
|
235
|
+
className: (0, _classnames.default)(classes.iconButton, classes.iconButtonInfo, (0, _defineProperty2.default)((0, _defineProperty2.default)({}, classes.iconButtonInfoActive, helperOpen), classes.iconFullWidth, fullWidth)),
|
278
236
|
onClick: this.handleHelperClick
|
279
237
|
}, /*#__PURE__*/_react.default.createElement(_Info.default, {
|
280
238
|
fontSize: "small",
|
@@ -293,7 +251,6 @@ var HiFormControl = /*#__PURE__*/function (_React$PureComponent) {
|
|
293
251
|
}]);
|
294
252
|
return HiFormControl;
|
295
253
|
}(_react.default.PureComponent);
|
296
|
-
|
297
254
|
HiFormControl.defaultProps = {
|
298
255
|
id: (0, _helpers.uniqueId)(),
|
299
256
|
fullWidth: true,
|
@@ -307,10 +264,7 @@ HiFormControl.defaultProps = {
|
|
307
264
|
nbChars: 0,
|
308
265
|
maxLength: 280
|
309
266
|
};
|
310
|
-
|
311
|
-
var _default = (0, _withStyles.default)(styles, {
|
267
|
+
var _default = exports.default = (0, _withStyles.default)(styles, {
|
312
268
|
hiComponent: true,
|
313
269
|
name: 'HmuiHiFormControl'
|
314
|
-
})(HiFormControl);
|
315
|
-
|
316
|
-
exports.default = _default;
|
270
|
+
})(HiFormControl);
|
package/HiForm/HiFormLabel.js
CHANGED
@@ -1,41 +1,25 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
|
-
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
6
5
|
value: true
|
7
6
|
});
|
8
7
|
exports.styles = exports.default = void 0;
|
9
|
-
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/extends"));
|
11
|
-
|
12
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
13
|
-
|
14
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
|
15
|
-
|
16
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
|
17
|
-
|
18
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
|
19
|
-
|
20
13
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/possibleConstructorReturn"));
|
21
|
-
|
22
14
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/getPrototypeOf"));
|
23
|
-
|
24
15
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
25
|
-
|
26
16
|
var _react = _interopRequireDefault(require("react"));
|
27
|
-
|
28
17
|
var _InputLabel = _interopRequireDefault(require("@mui/material/InputLabel"));
|
29
|
-
|
30
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
31
|
-
|
32
19
|
var _withStyles = _interopRequireDefault(require("@mui/styles/withStyles"));
|
33
|
-
|
34
20
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
var styles = function styles(theme) {
|
21
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } // @inheritedComponent InputLabel
|
22
|
+
var styles = exports.styles = function styles(theme) {
|
39
23
|
return {
|
40
24
|
root: (0, _objectSpread2.default)({}, theme.typography.body2, {
|
41
25
|
lineHeight: '18px',
|
@@ -47,7 +31,7 @@ var styles = function styles(theme) {
|
|
47
31
|
color: theme.palette.primary.main
|
48
32
|
},
|
49
33
|
'&$error': {
|
50
|
-
color: theme.palette.
|
34
|
+
color: theme.palette.error.main
|
51
35
|
},
|
52
36
|
display: 'flex',
|
53
37
|
alignItems: 'baseline'
|
@@ -60,37 +44,31 @@ var styles = function styles(theme) {
|
|
60
44
|
error: {}
|
61
45
|
};
|
62
46
|
};
|
47
|
+
|
63
48
|
/**
|
64
49
|
* Label pour champs de formulaire
|
65
50
|
*/
|
66
|
-
|
67
|
-
|
68
|
-
exports.styles = styles;
|
69
|
-
|
70
51
|
var HiFormLabel = /*#__PURE__*/function (_React$PureComponent) {
|
71
52
|
(0, _inherits2.default)(HiFormLabel, _React$PureComponent);
|
72
|
-
|
73
53
|
var _super = _createSuper(HiFormLabel);
|
74
|
-
|
75
54
|
function HiFormLabel() {
|
76
55
|
(0, _classCallCheck2.default)(this, HiFormLabel);
|
77
56
|
return _super.apply(this, arguments);
|
78
57
|
}
|
79
|
-
|
80
58
|
(0, _createClass2.default)(HiFormLabel, [{
|
81
59
|
key: "render",
|
82
60
|
value: function render() {
|
83
61
|
var _this$props = this.props,
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
62
|
+
classes = _this$props.classes,
|
63
|
+
classNameProp = _this$props.className,
|
64
|
+
children = _this$props.children,
|
65
|
+
htmlFor = _this$props.htmlFor,
|
66
|
+
label = _this$props.label,
|
67
|
+
InputLabelProps = _this$props.InputLabelProps,
|
68
|
+
required = _this$props.required,
|
69
|
+
translations = _this$props.translations,
|
70
|
+
focused = _this$props.focused,
|
71
|
+
other = (0, _objectWithoutProperties2.default)(_this$props, ["classes", "className", "children", "htmlFor", "label", "InputLabelProps", "required", "translations", "focused"]);
|
94
72
|
var className = (0, _classnames.default)(classes.root, classNameProp);
|
95
73
|
return /*#__PURE__*/_react.default.createElement(_InputLabel.default, (0, _extends2.default)({
|
96
74
|
htmlFor: htmlFor,
|
@@ -109,17 +87,13 @@ var HiFormLabel = /*#__PURE__*/function (_React$PureComponent) {
|
|
109
87
|
}]);
|
110
88
|
return HiFormLabel;
|
111
89
|
}(_react.default.PureComponent);
|
112
|
-
|
113
90
|
HiFormLabel.defaultProps = {
|
114
91
|
required: true,
|
115
92
|
translations: {
|
116
93
|
optional: 'optional'
|
117
94
|
}
|
118
95
|
};
|
119
|
-
|
120
|
-
var _default = (0, _withStyles.default)(styles, {
|
96
|
+
var _default = exports.default = (0, _withStyles.default)(styles, {
|
121
97
|
hiComponent: true,
|
122
98
|
name: 'HmuiHiFormLabel'
|
123
|
-
})(HiFormLabel);
|
124
|
-
|
125
|
-
exports.default = _default;
|
99
|
+
})(HiFormLabel);
|