@hipay/hipay-material-ui 3.12.1 → 3.12.2
Sign up to get free protection for your applications and to get access to all the features.
- package/Guideline/index.js +2 -0
- package/HiAccordion/HiAccordion.js +82 -0
- package/HiAccordion/index.js +13 -0
- package/HiAccordionActions/HiAccordionActions.js +68 -0
- package/HiAccordionActions/index.js +13 -0
- package/HiAccordionSummary/HiAccordionSummary.js +73 -0
- package/HiAccordionSummary/index.js +13 -0
- package/HiAlertModal/HiAlertModal.js +116 -0
- package/HiAlertModal/index.js +13 -0
- package/HiAppBar/HiAppBar.js +139 -0
- package/HiAppBar/index.js +15 -0
- package/HiAvatar/HiAvatar.js +51 -0
- package/HiAvatar/index.js +15 -0
- package/HiBadge/HiBadge.js +103 -0
- package/HiBadge/index.js +15 -0
- package/HiBreadcrumb/HiBreadcrumb.js +105 -0
- package/HiBreadcrumb/HiStep.js +131 -0
- package/HiBreadcrumb/HiStepConnector.js +168 -0
- package/HiBreadcrumb/HiStepContent.js +101 -0
- package/HiBreadcrumb/HiStepIcon.js +158 -0
- package/HiBreadcrumb/HiStepLabel.js +177 -0
- package/HiBreadcrumb/HiStepper.js +83 -0
- package/HiBreadcrumb/index.js +15 -0
- package/HiButton/HiButton.js +192 -0
- package/HiButton/index.js +13 -0
- package/HiCell/CellAddress.js +100 -0
- package/HiCell/CellDate.js +109 -0
- package/HiCell/CellHiddenContent.js +103 -0
- package/HiCell/CellIcon.js +131 -0
- package/HiCell/CellImage.js +115 -0
- package/HiCell/CellNumeric.js +112 -0
- package/HiCell/CellPinToAction.js +98 -0
- package/HiCell/CellRate.js +158 -0
- package/HiCell/CellSentinel.js +93 -0
- package/HiCell/CellSentinelScore.js +96 -0
- package/HiCell/CellText.js +235 -0
- package/HiCell/CellTextStyled.js +113 -0
- package/HiCell/index.js +79 -0
- package/HiCheckbox/HiCheckbox.js +193 -0
- package/HiCheckbox/index.js +15 -0
- package/HiChip/HiChip.js +268 -0
- package/HiChip/HiChipSwitch.js +256 -0
- package/HiChip/index.js +23 -0
- package/HiColoredLabel/HiColoredLabel.js +179 -0
- package/HiColoredLabel/index.js +15 -0
- package/HiDatePicker/Caption.js +57 -0
- package/HiDatePicker/HiDatePicker.js +381 -0
- package/HiDatePicker/HiDatePickerMobile.js +110 -0
- package/HiDatePicker/HiDateRangePicker.js +659 -0
- package/HiDatePicker/HiDateRangeSelector.js +659 -0
- package/HiDatePicker/ListPicker.js +136 -0
- package/HiDatePicker/NavBar.js +109 -0
- package/HiDatePicker/Overlays/CustomOverlayLayout.js +113 -0
- package/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +105 -0
- package/HiDatePicker/Overlays/MonthPickerOverlay.js +91 -0
- package/HiDatePicker/Overlays/Overlay.js +79 -0
- package/HiDatePicker/Overlays/TimePickerOverlay.js +220 -0
- package/HiDatePicker/Overlays/YearPickerOverlay.js +112 -0
- package/HiDatePicker/Overlays/index.js +47 -0
- package/HiDatePicker/Weekday.js +25 -0
- package/HiDatePicker/hiLocaleUtils.js +149 -0
- package/HiDatePicker/index.js +15 -0
- package/HiDatePicker/stylesheet.js +265 -0
- package/HiDialog/HiDialog.js +73 -0
- package/HiDialog/index.js +15 -0
- package/HiDotsStepper/HiDot.js +104 -0
- package/HiDotsStepper/HiDotsStepper.js +116 -0
- package/HiDotsStepper/index.js +23 -0
- package/HiExpansionPanel/HiExpansionPanel.js +184 -0
- package/HiExpansionPanel/index.js +13 -0
- package/HiForm/HiAddressField.js +156 -0
- package/HiForm/HiEmailField.js +83 -0
- package/HiForm/HiFormControl.js +319 -0
- package/HiForm/HiFormLabel.js +126 -0
- package/HiForm/HiInput.js +485 -0
- package/HiForm/HiPasswordField.js +116 -0
- package/HiForm/HiSearchField.js +159 -0
- package/HiForm/HiSlider.js +288 -0
- package/HiForm/HiTextField.js +174 -0
- package/HiForm/HiUpload.js +396 -0
- package/HiForm/HiUploadField.js +97 -0
- package/HiForm/HiUploadInput.js +401 -0
- package/HiForm/index.js +95 -0
- package/HiIcon/HiIcon.js +118 -0
- package/HiIcon/index.js +15 -0
- package/HiIconButton/HiIconButton.js +80 -0
- package/HiIconButton/index.js +15 -0
- package/HiListItemLink/HiListItemLink.js +106 -0
- package/HiListItemLink/index.js +15 -0
- package/HiLoader/HiLoader.js +49 -0
- package/HiLoader/index.js +15 -0
- package/HiNotice/HiKPI.js +193 -0
- package/HiNotice/HiKPINotice.js +69 -0
- package/HiNotice/index.js +23 -0
- package/HiPagination/HiPagination.js +55 -0
- package/HiPagination/index.js +15 -0
- package/HiPaymentMeans/HiPaymentMeans.js +626 -0
- package/HiPaymentMeans/index.js +15 -0
- package/HiPdfReader/HiPdfReader.js +246 -0
- package/HiPdfReader/index.js +15 -0
- package/HiPin/HiPin.js +96 -0
- package/HiPin/index.js +15 -0
- package/HiRadio/HiRadio.js +67 -0
- package/HiRadio/index.js +15 -0
- package/HiScrollStepper/HiScrollStepper.js +212 -0
- package/HiScrollStepper/index.js +15 -0
- package/HiSelect/HiDynamicSelect.js +169 -0
- package/HiSelect/HiDynamicSelectField.js +114 -0
- package/HiSelect/HiNestedSelect.js +447 -0
- package/HiSelect/HiNestedSelectContent.js +349 -0
- package/HiSelect/HiNestedSelectField.js +114 -0
- package/HiSelect/HiSelect.js +930 -0
- package/HiSelect/HiSelectContent.js +417 -0
- package/HiSelect/HiSelectField.js +116 -0
- package/HiSelect/HiSelectInput.js +327 -0
- package/HiSelect/HiSelectMobile.js +169 -0
- package/HiSelect/HiSuggestSelect.js +346 -0
- package/HiSelect/HiSuggestSelectField.js +103 -0
- package/HiSelect/index.js +89 -0
- package/HiSelectableList/HiSelectableList.js +365 -0
- package/HiSelectableList/HiSelectableListHierarchic.js +174 -0
- package/HiSelectableList/HiSelectableListItem.js +439 -0
- package/HiSelectableList/index.js +31 -0
- package/HiStepper/DefaultIndicator.js +44 -0
- package/HiStepper/HiStep.js +213 -0
- package/HiStepper/HiStepper.js +61 -0
- package/HiStepper/index.js +23 -0
- package/HiSwitch/HiSwitch.js +213 -0
- package/HiSwitch/HiSwitchState.js +163 -0
- package/HiSwitch/index.js +23 -0
- package/HiTable/HiCellBuilder.js +273 -0
- package/HiTable/HiTable.js +214 -0
- package/HiTable/HiTableBody.js +65 -0
- package/HiTable/HiTableHeader.js +148 -0
- package/HiTable/HiTableRow.js +147 -0
- package/HiTable/constants.js +155 -0
- package/HiTable/index.js +15 -0
- package/es/Guideline/index.js +2 -0
- package/es/HiAccordion/HiAccordion.js +82 -0
- package/es/HiAccordion/index.js +13 -0
- package/es/HiAccordionActions/HiAccordionActions.js +68 -0
- package/es/HiAccordionActions/index.js +13 -0
- package/es/HiAccordionSummary/HiAccordionSummary.js +73 -0
- package/es/HiAccordionSummary/index.js +13 -0
- package/es/HiAlertModal/HiAlertModal.js +116 -0
- package/es/HiAlertModal/index.js +13 -0
- package/es/HiAppBar/HiAppBar.js +139 -0
- package/es/HiAppBar/index.js +15 -0
- package/es/HiAvatar/HiAvatar.js +51 -0
- package/es/HiAvatar/index.js +15 -0
- package/es/HiBadge/HiBadge.js +103 -0
- package/es/HiBadge/index.js +15 -0
- package/es/HiBreadcrumb/HiBreadcrumb.js +105 -0
- package/es/HiBreadcrumb/HiStep.js +131 -0
- package/es/HiBreadcrumb/HiStepConnector.js +168 -0
- package/es/HiBreadcrumb/HiStepContent.js +101 -0
- package/es/HiBreadcrumb/HiStepIcon.js +158 -0
- package/es/HiBreadcrumb/HiStepLabel.js +177 -0
- package/es/HiBreadcrumb/HiStepper.js +83 -0
- package/es/HiBreadcrumb/index.js +15 -0
- package/es/HiButton/HiButton.js +192 -0
- package/es/HiButton/index.js +13 -0
- package/es/HiCell/CellAddress.js +100 -0
- package/es/HiCell/CellDate.js +109 -0
- package/es/HiCell/CellHiddenContent.js +103 -0
- package/es/HiCell/CellIcon.js +131 -0
- package/es/HiCell/CellImage.js +115 -0
- package/es/HiCell/CellNumeric.js +112 -0
- package/es/HiCell/CellPinToAction.js +98 -0
- package/es/HiCell/CellRate.js +158 -0
- package/es/HiCell/CellSentinel.js +93 -0
- package/es/HiCell/CellSentinelScore.js +96 -0
- package/es/HiCell/CellText.js +235 -0
- package/es/HiCell/CellTextStyled.js +113 -0
- package/es/HiCell/index.js +79 -0
- package/es/HiCheckbox/HiCheckbox.js +193 -0
- package/es/HiCheckbox/index.js +15 -0
- package/es/HiChip/HiChip.js +268 -0
- package/es/HiChip/HiChipSwitch.js +256 -0
- package/es/HiChip/index.js +23 -0
- package/es/HiColoredLabel/HiColoredLabel.js +179 -0
- package/es/HiColoredLabel/index.js +15 -0
- package/es/HiDatePicker/Caption.js +57 -0
- package/es/HiDatePicker/HiDatePicker.js +381 -0
- package/es/HiDatePicker/HiDatePickerMobile.js +110 -0
- package/es/HiDatePicker/HiDateRangePicker.js +659 -0
- package/es/HiDatePicker/HiDateRangeSelector.js +659 -0
- package/es/HiDatePicker/ListPicker.js +136 -0
- package/es/HiDatePicker/NavBar.js +109 -0
- package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +113 -0
- package/es/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +105 -0
- package/es/HiDatePicker/Overlays/MonthPickerOverlay.js +91 -0
- package/es/HiDatePicker/Overlays/Overlay.js +79 -0
- package/es/HiDatePicker/Overlays/TimePickerOverlay.js +220 -0
- package/es/HiDatePicker/Overlays/YearPickerOverlay.js +112 -0
- package/es/HiDatePicker/Overlays/index.js +47 -0
- package/es/HiDatePicker/Weekday.js +25 -0
- package/es/HiDatePicker/hiLocaleUtils.js +149 -0
- package/es/HiDatePicker/index.js +15 -0
- package/es/HiDatePicker/stylesheet.js +265 -0
- package/es/HiDialog/HiDialog.js +73 -0
- package/es/HiDialog/index.js +15 -0
- package/es/HiDotsStepper/HiDot.js +104 -0
- package/es/HiDotsStepper/HiDotsStepper.js +116 -0
- package/es/HiDotsStepper/index.js +23 -0
- package/es/HiExpansionPanel/HiExpansionPanel.js +184 -0
- package/es/HiExpansionPanel/index.js +13 -0
- package/es/HiForm/HiAddressField.js +156 -0
- package/es/HiForm/HiEmailField.js +83 -0
- package/es/HiForm/HiFormControl.js +319 -0
- package/es/HiForm/HiFormLabel.js +126 -0
- package/es/HiForm/HiInput.js +485 -0
- package/es/HiForm/HiPasswordField.js +116 -0
- package/es/HiForm/HiSearchField.js +159 -0
- package/es/HiForm/HiSlider.js +288 -0
- package/es/HiForm/HiTextField.js +174 -0
- package/es/HiForm/HiUpload.js +396 -0
- package/es/HiForm/HiUploadField.js +97 -0
- package/es/HiForm/HiUploadInput.js +401 -0
- package/es/HiForm/index.js +95 -0
- package/es/HiIcon/HiIcon.js +118 -0
- package/es/HiIcon/index.js +15 -0
- package/es/HiIconButton/HiIconButton.js +80 -0
- package/es/HiIconButton/index.js +15 -0
- package/es/HiListItemLink/HiListItemLink.js +106 -0
- package/es/HiListItemLink/index.js +15 -0
- package/es/HiLoader/HiLoader.js +49 -0
- package/es/HiLoader/index.js +15 -0
- package/es/HiNotice/HiKPI.js +193 -0
- package/es/HiNotice/HiKPINotice.js +69 -0
- package/es/HiNotice/index.js +23 -0
- package/es/HiPagination/HiPagination.js +55 -0
- package/es/HiPagination/index.js +15 -0
- package/es/HiPaymentMeans/HiPaymentMeans.js +626 -0
- package/es/HiPaymentMeans/index.js +15 -0
- package/es/HiPdfReader/HiPdfReader.js +246 -0
- package/es/HiPdfReader/index.js +15 -0
- package/es/HiPin/HiPin.js +96 -0
- package/es/HiPin/index.js +15 -0
- package/es/HiRadio/HiRadio.js +67 -0
- package/es/HiRadio/index.js +15 -0
- package/es/HiScrollStepper/HiScrollStepper.js +212 -0
- package/es/HiScrollStepper/index.js +15 -0
- package/es/HiSelect/HiDynamicSelect.js +169 -0
- package/es/HiSelect/HiDynamicSelectField.js +114 -0
- package/es/HiSelect/HiNestedSelect.js +447 -0
- package/es/HiSelect/HiNestedSelectContent.js +349 -0
- package/es/HiSelect/HiNestedSelectField.js +114 -0
- package/es/HiSelect/HiSelect.js +930 -0
- package/es/HiSelect/HiSelectContent.js +417 -0
- package/es/HiSelect/HiSelectField.js +116 -0
- package/es/HiSelect/HiSelectInput.js +327 -0
- package/es/HiSelect/HiSelectMobile.js +169 -0
- package/es/HiSelect/HiSuggestSelect.js +346 -0
- package/es/HiSelect/HiSuggestSelectField.js +103 -0
- package/es/HiSelect/index.js +89 -0
- package/es/HiSelectableList/HiSelectableList.js +365 -0
- package/es/HiSelectableList/HiSelectableListHierarchic.js +174 -0
- package/es/HiSelectableList/HiSelectableListItem.js +439 -0
- package/es/HiSelectableList/index.js +31 -0
- package/es/HiStepper/DefaultIndicator.js +44 -0
- package/es/HiStepper/HiStep.js +213 -0
- package/es/HiStepper/HiStepper.js +61 -0
- package/es/HiStepper/index.js +23 -0
- package/es/HiSwitch/HiSwitch.js +213 -0
- package/es/HiSwitch/HiSwitchState.js +163 -0
- package/es/HiSwitch/index.js +23 -0
- package/es/HiTable/HiCellBuilder.js +273 -0
- package/es/HiTable/HiTable.js +214 -0
- package/es/HiTable/HiTableBody.js +65 -0
- package/es/HiTable/HiTableHeader.js +148 -0
- package/es/HiTable/HiTableRow.js +147 -0
- package/es/HiTable/constants.js +155 -0
- package/es/HiTable/index.js +15 -0
- package/es/hi-svg-icons/HiAccount.js +46 -0
- package/es/hi-svg-icons/HiActivity.js +53 -0
- package/es/hi-svg-icons/HiAll.js +60 -0
- package/es/hi-svg-icons/HiBilling.js +52 -0
- package/es/hi-svg-icons/HiBriefcaseRescue.js +47 -0
- package/es/hi-svg-icons/HiBusiness.js +46 -0
- package/es/hi-svg-icons/HiCatalog.js +52 -0
- package/es/hi-svg-icons/HiCustomer.js +52 -0
- package/es/hi-svg-icons/HiDownload.js +43 -0
- package/es/hi-svg-icons/HiFinance.js +46 -0
- package/es/hi-svg-icons/HiFinanceMenu.js +46 -0
- package/es/hi-svg-icons/HiHostedPaymentPage.js +52 -0
- package/es/hi-svg-icons/HiHostedPaymentPageMenu.js +46 -0
- package/es/hi-svg-icons/HiIntegration.js +52 -0
- package/es/hi-svg-icons/HiIntegrationMenu.js +46 -0
- package/es/hi-svg-icons/HiIntelligence.js +55 -0
- package/es/hi-svg-icons/HiIntelligenceMenu.js +49 -0
- package/es/hi-svg-icons/HiInvoice.js +46 -0
- package/es/hi-svg-icons/HiInvoiceMenu.js +46 -0
- package/es/hi-svg-icons/HiLogoRounded.js +59 -0
- package/es/hi-svg-icons/HiOrder.js +70 -0
- package/es/hi-svg-icons/HiPaymentOrder.js +52 -0
- package/es/hi-svg-icons/HiPermission.js +53 -0
- package/es/hi-svg-icons/HiPriceGrid.js +52 -0
- package/es/hi-svg-icons/HiPrivate.js +51 -0
- package/es/hi-svg-icons/HiRoute.js +52 -0
- package/es/hi-svg-icons/HiRouteMenu.js +46 -0
- package/es/hi-svg-icons/HiRouteSwitch.js +68 -0
- package/es/hi-svg-icons/HiRouteSwitchMenu.js +62 -0
- package/es/hi-svg-icons/HiSettlement.js +52 -0
- package/es/hi-svg-icons/HiSizeLarge.js +47 -0
- package/es/hi-svg-icons/HiSizeMedium.js +47 -0
- package/es/hi-svg-icons/HiSizeSmall.js +47 -0
- package/es/hi-svg-icons/HiStore.js +64 -0
- package/es/hi-svg-icons/HiStoreMenu.js +58 -0
- package/es/hi-svg-icons/HiTransaction.js +46 -0
- package/es/hi-svg-icons/HiTransactionMenu.js +46 -0
- package/es/hi-svg-icons/HiUser.js +52 -0
- package/es/hi-svg-icons/HiVendor.js +52 -0
- package/es/hi-svg-icons/HiWidget.js +46 -0
- package/es/hi-svg-icons/index.js +327 -0
- package/es/hi-svg-images/HiLogo.js +41 -0
- package/es/hi-svg-images/HiLogoWhite.js +41 -0
- package/es/hi-svg-images/index.js +23 -0
- package/es/setupTest.js +44 -0
- package/es/styleguide/Wrapper.js +25 -0
- package/es/styles/MuiThemeProvider.js +161 -0
- package/es/styles/colorManipulator.js +286 -0
- package/es/styles/createBreakpoints.js +81 -0
- package/es/styles/createGenerateClassName.js +86 -0
- package/es/styles/createMixins.js +36 -0
- package/es/styles/createMuiTheme.js +77 -0
- package/es/styles/createPalette.js +288 -0
- package/es/styles/createStyles.js +10 -0
- package/es/styles/createTypography.js +185 -0
- package/es/styles/getStylesCreator.js +54 -0
- package/es/styles/getThemeProps.js +20 -0
- package/es/styles/index.js +47 -0
- package/es/styles/jssPreset.js +31 -0
- package/es/styles/makeStyles.js +28 -0
- package/es/styles/mergeClasses.js +41 -0
- package/es/styles/shadows.js +17 -0
- package/es/styles/shape.js +11 -0
- package/es/styles/spacing.js +14 -0
- package/es/styles/themeListener.js +40 -0
- package/es/styles/transitions.js +106 -0
- package/es/styles/withStyles.js +28 -0
- package/es/styles/zIndex.js +18 -0
- package/es/test-utils/createMount.js +44 -0
- package/es/test-utils/createRender.js +29 -0
- package/es/test-utils/createShallow.js +48 -0
- package/es/test-utils/getClasses.js +12 -0
- package/es/test-utils/index.js +47 -0
- package/es/test-utils/until.js +49 -0
- package/es/test-utils/unwrap.js +10 -0
- package/es/theme/palette.js +106 -0
- package/es/theme/typography.js +170 -0
- package/es/theme.js +20 -0
- package/es/transitions/utils.js +23 -0
- package/es/utils/exactProp.js +43 -0
- package/es/utils/helpers.js +345 -0
- package/es/withMobileDialog/index.js +15 -0
- package/es/withMobileDialog/withMobileDialog.js +48 -0
- package/hi-svg-icons/HiAccount.js +46 -0
- package/hi-svg-icons/HiActivity.js +53 -0
- package/hi-svg-icons/HiAll.js +60 -0
- package/hi-svg-icons/HiBilling.js +52 -0
- package/hi-svg-icons/HiBriefcaseRescue.js +47 -0
- package/hi-svg-icons/HiBusiness.js +46 -0
- package/hi-svg-icons/HiCatalog.js +52 -0
- package/hi-svg-icons/HiCustomer.js +52 -0
- package/hi-svg-icons/HiDownload.js +43 -0
- package/hi-svg-icons/HiFinance.js +46 -0
- package/hi-svg-icons/HiFinanceMenu.js +46 -0
- package/hi-svg-icons/HiHostedPaymentPage.js +52 -0
- package/hi-svg-icons/HiHostedPaymentPageMenu.js +46 -0
- package/hi-svg-icons/HiIntegration.js +52 -0
- package/hi-svg-icons/HiIntegrationMenu.js +46 -0
- package/hi-svg-icons/HiIntelligence.js +55 -0
- package/hi-svg-icons/HiIntelligenceMenu.js +49 -0
- package/hi-svg-icons/HiInvoice.js +46 -0
- package/hi-svg-icons/HiInvoiceMenu.js +46 -0
- package/hi-svg-icons/HiLogoRounded.js +59 -0
- package/hi-svg-icons/HiOrder.js +70 -0
- package/hi-svg-icons/HiPaymentOrder.js +52 -0
- package/hi-svg-icons/HiPermission.js +53 -0
- package/hi-svg-icons/HiPriceGrid.js +52 -0
- package/hi-svg-icons/HiPrivate.js +51 -0
- package/hi-svg-icons/HiRoute.js +52 -0
- package/hi-svg-icons/HiRouteMenu.js +46 -0
- package/hi-svg-icons/HiRouteSwitch.js +68 -0
- package/hi-svg-icons/HiRouteSwitchMenu.js +62 -0
- package/hi-svg-icons/HiSettlement.js +52 -0
- package/hi-svg-icons/HiSizeLarge.js +47 -0
- package/hi-svg-icons/HiSizeMedium.js +47 -0
- package/hi-svg-icons/HiSizeSmall.js +47 -0
- package/hi-svg-icons/HiStore.js +64 -0
- package/hi-svg-icons/HiStoreMenu.js +58 -0
- package/hi-svg-icons/HiTransaction.js +46 -0
- package/hi-svg-icons/HiTransactionMenu.js +46 -0
- package/hi-svg-icons/HiUser.js +52 -0
- package/hi-svg-icons/HiVendor.js +52 -0
- package/hi-svg-icons/HiWidget.js +46 -0
- package/hi-svg-icons/index.js +327 -0
- package/hi-svg-images/HiLogo.js +41 -0
- package/hi-svg-images/HiLogoWhite.js +41 -0
- package/hi-svg-images/index.js +23 -0
- package/package.json +79 -183
- package/setupTest.js +44 -0
- package/styleguide/Wrapper.js +25 -0
- package/styles/MuiThemeProvider.js +161 -0
- package/styles/colorManipulator.js +286 -0
- package/styles/createBreakpoints.js +81 -0
- package/styles/createGenerateClassName.js +86 -0
- package/styles/createMixins.js +36 -0
- package/styles/createMuiTheme.js +77 -0
- package/styles/createPalette.js +288 -0
- package/styles/createStyles.js +10 -0
- package/styles/createTypography.js +185 -0
- package/styles/getStylesCreator.js +54 -0
- package/styles/getThemeProps.js +20 -0
- package/styles/index.js +47 -0
- package/styles/jssPreset.js +31 -0
- package/styles/makeStyles.js +28 -0
- package/styles/mergeClasses.js +41 -0
- package/styles/shadows.js +17 -0
- package/styles/shape.js +11 -0
- package/styles/spacing.js +14 -0
- package/styles/themeListener.js +40 -0
- package/styles/transitions.js +106 -0
- package/styles/withStyles.js +28 -0
- package/styles/zIndex.js +18 -0
- package/test-utils/createMount.js +44 -0
- package/test-utils/createRender.js +29 -0
- package/test-utils/createShallow.js +48 -0
- package/test-utils/getClasses.js +12 -0
- package/test-utils/index.js +47 -0
- package/test-utils/until.js +49 -0
- package/test-utils/unwrap.js +10 -0
- package/theme/palette.js +106 -0
- package/theme/typography.js +170 -0
- package/theme.js +20 -0
- package/transitions/utils.js +23 -0
- package/utils/exactProp.js +43 -0
- package/utils/helpers.js +345 -0
- package/withMobileDialog/index.js +15 -0
- package/withMobileDialog/withMobileDialog.js +48 -0
- package/.babelrc +0 -18
- package/.eslintrc.js +0 -103
- package/.gitlab-ci.yml +0 -74
- package/CHANGELOG.md +0 -278
- package/babel.config.js +0 -109
- package/bin/deploy/functions.sh +0 -88
- package/bin/deploy/manual_deploy.sh +0 -83
- package/bin/deploy/remove_oldest_versions.sh +0 -35
- package/bin/link.sh +0 -44
- package/prettier.config.js +0 -9
- package/public/assets/countries/es.svg +0 -581
- package/public/assets/countries/et.svg +0 -14
- package/public/assets/countries/eu.svg +0 -28
- package/public/assets/countries/fi.svg +0 -5
- package/public/assets/countries/fj.svg +0 -124
- package/public/assets/countries/fk.svg +0 -90
- package/public/assets/countries/fm.svg +0 -11
- package/public/assets/countries/fo.svg +0 -12
- package/public/assets/countries/fr.svg +0 -7
- package/public/favicon.ico +0 -0
- package/public/guideline/img/1_E8xw35qc9Iznt_3JB6o1Yg.jpeg +0 -0
- package/public/guideline/img/1_sDxSLgzDI6IqrphNvGeUcg.png +0 -0
- package/public/guideline/img/Boutons_sequentiels.jpg +0 -0
- package/public/guideline/img/Bulle_aide.jpg +0 -0
- package/public/guideline/img/CTA.jpg +0 -0
- package/public/guideline/img/Champ_optionnel.jpg +0 -0
- package/public/guideline/img/Connecteurs_logiques.jpg +0 -0
- package/public/guideline/img/Contenu_listes.jpg +0 -0
- package/public/guideline/img/Couleur.jpg +0 -0
- package/public/guideline/img/Couleur2.jpg +0 -0
- package/public/guideline/img/Couleur2@2x.jpg +0 -0
- package/public/guideline/img/Couleur3.jpg +0 -0
- package/public/guideline/img/Couleur3@2x.jpg +0 -0
- package/public/guideline/img/Couleur4.jpg +0 -0
- package/public/guideline/img/Couleur4@2x.jpg +0 -0
- package/public/guideline/img/Couleur@2x.jpg +0 -0
- package/public/guideline/img/Desactivez_CTA.jpg +0 -0
- package/public/guideline/img/Donnee_sensible.jpg +0 -0
- package/public/guideline/img/Etapes.jpg +0 -0
- package/public/guideline/img/Facebook_gender.png +0 -0
- package/public/guideline/img/Formulaire_creation.jpg +0 -0
- package/public/guideline/img/Formulaire_recherche.jpg +0 -0
- package/public/guideline/img/Keyboard.jpg +0 -0
- package/public/guideline/img/Label.jpg +0 -0
- package/public/guideline/img/Maj_verrouille.jpg +0 -0
- package/public/guideline/img/Masque.jpg +0 -0
- package/public/guideline/img/NAVIGATION.jpg +0 -0
- package/public/guideline/img/Personas.jpg +0 -0
- package/public/guideline/img/Preremplissage.jpg +0 -0
- package/public/guideline/img/Quantit/303/251_estim/303/251e.jpg +0 -0
- package/public/guideline/img/Quantit/303/251_qualit/303/251.jpg +0 -0
- package/public/guideline/img/R17.jpg +0 -0
- package/public/guideline/img/RACCOURCIS.jpg +0 -0
- package/public/guideline/img/RACCOURCISF.jpg +0 -0
- package/public/guideline/img/RACCOURCISFS.jpg +0 -0
- package/public/guideline/img/RACCOURCISW.jpg +0 -0
- package/public/guideline/img/Regrouper_informations.jpg +0 -0
- package/public/guideline/img/Styles_boutons.jpg +0 -0
- package/public/guideline/img/Ucouleur.jpg +0 -0
- package/public/guideline/img/Ucouleur@2x.jpg +0 -0
- package/public/guideline/img/Une_colonne.jpg +0 -0
- package/public/guideline/img/Validation.jpg +0 -0
- package/public/guideline/img/bulletin-board.svg +0 -1
- package/public/guideline/img/calendar-check.svg +0 -1
- package/public/guideline/img/delia_giandeini.jpg +0 -0
- package/public/guideline/img/share-variant.svg +0 -1
- package/public/guideline/img/sigmund-4MoIpDcSlr4-unsplash.jpg +0 -0
- package/public/guideline/img/sigmund.jpg +0 -0
- package/public/guideline/img/tag.svg +0 -1
- package/public/guideline/style.css +0 -112
- package/public/index.html +0 -41
- package/public/manifest.json +0 -15
- package/scripts/copy-files.js +0 -140
- package/scripts/export-coverage.sh +0 -6
- package/scripts/rollup.config.js +0 -60
- package/sonar-project.properties +0 -24
- package/src/App.css +0 -33
- package/src/App.js +0 -26
- package/src/App.test.js +0 -9
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Am/303/251liorez_lisibilit/303/251/Enrichissez_structure.md +0 -3
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Am/303/251liorez_lisibilit/303/251//303/211vitez_/303/251criture_saccad/303/251e.md +0 -5
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Captures_/303/251crans.md +0 -1
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Clarifiez_actions/Mentionnez_/303/251tapes.md +0 -1
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Clarifiez_actions/Regroupez_r/303/251sultats.md +0 -5
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Clarifiez_actions/Utilisez_verbes.md +0 -9
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Expliquez_t/303/242ches/Introduisez_le_sujet.md +0 -1
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Expliquez_t/303/242ches/Num/303/251rotez_les_/303/251tapes.md +0 -6
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Expliquez_t/303/242ches/T/303/242ches_inclusives.md +0 -37
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Expliquez_t/303/242ches//303/211crire_liste.md +0 -20
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Identifier_les_diff/303/251rents_utilisateurs.md +0 -8
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Structurez_/303/251l/303/251ments.md +0 -5
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Utilisez_des_titres/Astuces_pour_concevoir_vos_titres.md +0 -23
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Utilisez_des_titres/Les_hi/303/251rarchie_des_titres.md +0 -10
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Utilisez_des_titres/Les_titres_principaux.md +0 -1
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Utilisez_des_titres/Les_titres_secondaires.md +0 -1
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Voix_active.md +0 -10
- package/src/Guideline/Accessibilit/303/251/NAVIGATION_CLAVIER.md +0 -11
- package/src/Guideline/Accessibilit/303/251/NIVEAU_DE_LECTURE/Blagues_r/303/251f/303/251rences.md +0 -8
- package/src/Guideline/Accessibilit/303/251/NIVEAU_DE_LECTURE/Phrases_courtes.md +0 -6
- package/src/Guideline/Accessibilit/303/251/NIVEAU_DE_LECTURE/Utilisez_mots_simples.md +0 -12
- package/src/Guideline/Accessibilit/303/251/NIVEAU_DE_LECTURE//303/211xag/303/251ration.md +0 -5
- package/src/Guideline/Accessibilit/303/251/TEXTE_ALTERNATIF/Prononciation_traduction.md +0 -5
- package/src/Guideline/Accessibilit/303/251/TEXTE_ALTERNATIF/TEXTE_ALTERNATIF.md +0 -5
- package/src/Guideline/Accessibilit/303/251/TEXTE_ALTERNATIF/Texte_alternatif_image.md +0 -5
- package/src/Guideline/Accessibilit/303/251/TEXTE_ALTERNATIF//303/211crire_texte_alternatif.md +0 -13
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Champs/Attribut.md +0 -7
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Champs/Label.md +0 -7
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Champs/Masque_r/303/250gles.md +0 -3
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Champs/Optionnel.md +0 -3
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Champs/Pr/303/251_remplissage.md +0 -3
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Champs/Qualit/303/251_quantit/303/251.md +0 -6
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Champs/Taille.md +0 -3
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Formulaire/Colonne.md +0 -7
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Formulaire/Ordre_boutons.md +0 -3
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Formulaire/Regroupez_informations.md +0 -3
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Utilisateur/Montrez_progression.md +0 -3
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Emp/303/252chez_erreurs/Champs/Bulle_aide.md +0 -3
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Emp/303/252chez_erreurs/Champs/Contenu_listes.md +0 -3
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Emp/303/252chez_erreurs/Champs/Validation.md +0 -7
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Emp/303/252chez_erreurs/Formulaire/CTA_explicites.md +0 -3
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Emp/303/252chez_erreurs/Formulaire/Diff/303/251renciez_boutons.md +0 -3
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Emp/303/252chez_erreurs/Formulaire/D/303/251sactivez_CTA.md +0 -3
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Emp/303/252chez_erreurs/Utilisateur/Auto_correction.md +0 -6
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Emp/303/252chez_erreurs/Utilisateur/Verrouillage_majuscules.md +0 -2
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/LES_BONNES_PRATIQUES.md +0 -10
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES//303/211prouvez_empathie/Consid/303/251rez_contexte.md +0 -1
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES//303/211prouvez_empathie/Donn/303/251es_sensibles.md +0 -3
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES//303/211prouvez_empathie/Formulaire_accessible.md +0 -6
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES//303/211prouvez_empathie/Langage_clair_simple.md +0 -1
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES//303/211prouvez_empathie/Soyez_inclusif.md +0 -7
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES//303/211prouvez_empathie/Valorisez_temps.md +0 -1
- package/src/Guideline/Formulaires/LE_FORMULAIRE_DE_CR/303/211ATION.md +0 -3
- package/src/Guideline/Formulaires/LE_FORMULAIRE_DE_RECHERCHE.md +0 -3
- package/src/Guideline/Grammaire_et_m/303/251canismes/GLOSSAIRE/GLOSSAIRE.md +0 -1
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Langage_courant.md +0 -11
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Listes/Num/303/251rot/303/251es.md +0 -5
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Listes//303/200_puces.md +0 -5
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Majuscules.md +0 -10
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Menus_d/303/251roulants/Actions.md +0 -5
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Menus_d/303/251roulants/Noms.md +0 -5
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Mettre_gras.md +0 -15
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Ponctuation/Deux_points.md +0 -5
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Ponctuation/Esperluette.md +0 -5
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Ponctuation/Guillemets.md +0 -28
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Ponctuation/Point.md +0 -9
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Ponctuation/Point_exclamation.md +0 -5
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Ponctuation/Point_int/303/251rogation.md +0 -14
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Ponctuation/Points_suspension.md +0 -8
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Ponctuation/Virgule.md +0 -21
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Voix_active.md +0 -1
- package/src/Guideline/Guideline.md +0 -848
- package/src/Guideline/La_Console_HiPay/INTRODUCTION.md +0 -1
- package/src/Guideline/La_Console_HiPay/L_AFFORDANCE.md +0 -5
- package/src/Guideline/La_Console_HiPay/L_ATOMIC_DESIGN.md +0 -11
- package/src/Guideline/La_Console_HiPay/PERSONAS.md +0 -3
- package/src/Guideline/La_Console_HiPay/PERSONNALITE.md +0 -13
- package/src/Guideline/Relation_Console_utilisateurs/VOIX_ET_TON/Degr/303/251_gravit/303/251.md +0 -17
- package/src/Guideline/Relation_Console_utilisateurs/VOIX_ET_TON/Messages_alerte.md +0 -1
- package/src/Guideline/Relation_Console_utilisateurs/VOIX_ET_TON/Messages_erreur.md +0 -6
- package/src/Guideline/Visuel/COULEUR_ET_CONTRASTE/Bleu_HiPay.md +0 -5
- package/src/Guideline/Visuel/COULEUR_ET_CONTRASTE/Contraste.md +0 -2
- package/src/Guideline/Visuel/COULEUR_ET_CONTRASTE/Couleurs_communes.md +0 -1
- package/src/Guideline/Visuel/COULEUR_ET_CONTRASTE/Couleurs_utilitaires.md +0 -1
- package/src/Guideline/Visuel/COULEUR_ET_CONTRASTE/Lignes_tableaux_r/303/251sultats.md +0 -1
- package/src/Guideline/Visuel/COULEUR_ET_CONTRASTE/Palette_couleur_comptes.md +0 -1
- package/src/Guideline/Visuel/IC/303/224NES/IC/303/224NES.md +0 -104
- package/src/Guideline/Visuel/MISE_EN_PAGE/Comportements_tableaux.md +0 -21
- package/src/Guideline/Visuel/MISE_EN_PAGE/Tableaux.md +0 -1
- package/src/Guideline/Visuel/POLICE_D_/303/211CRITURE/Classe_graisse_Roboto.md +0 -10
- package/src/Guideline/Visuel/POLICE_D_/303/211CRITURE/Classe_taille_texte.md +0 -13
- package/src/Guideline/Visuel/UTILISATION_DES_COULEURS_DANS_LA_CONSOLE_HIPAY/UTILISATION_DES_COULEURS_DANS_LA_CONSOLE_HIPAY.md +0 -3
- package/src/Guideline/index.js +0 -1
- package/src/HiAccordion/HiAccordion.js +0 -104
- package/src/HiAccordion/index.js +0 -3
- package/src/HiAccordionActions/HiAccordionActions.js +0 -96
- package/src/HiAccordionActions/index.js +0 -3
- package/src/HiAccordionSummary/HiAccordionSummary.js +0 -112
- package/src/HiAccordionSummary/index.js +0 -3
- package/src/HiAlertModal/HiAlertModal.js +0 -196
- package/src/HiAlertModal/HiAlertModal.md +0 -148
- package/src/HiAlertModal/index.js +0 -3
- package/src/HiAppBar/HiAppBar.js +0 -136
- package/src/HiAppBar/HiAppBar.md +0 -79
- package/src/HiAppBar/index.js +0 -1
- package/src/HiAvatar/HiAvatar.js +0 -29
- package/src/HiAvatar/index.js +0 -1
- package/src/HiBadge/HiBadge.js +0 -123
- package/src/HiBadge/HiBadge.md +0 -63
- package/src/HiBadge/HiBadge.test.js +0 -86
- package/src/HiBadge/index.js +0 -1
- package/src/HiBreadcrumb/HiBreadcrumb.js +0 -92
- package/src/HiBreadcrumb/HiBreadcrumb.md +0 -208
- package/src/HiBreadcrumb/HiBreadcrumb.test.js +0 -45
- package/src/HiBreadcrumb/HiStep.js +0 -122
- package/src/HiBreadcrumb/HiStep.test.js +0 -63
- package/src/HiBreadcrumb/HiStepConnector.js +0 -141
- package/src/HiBreadcrumb/HiStepConnector.test.js +0 -136
- package/src/HiBreadcrumb/HiStepContent.js +0 -63
- package/src/HiBreadcrumb/HiStepContent.test.js +0 -37
- package/src/HiBreadcrumb/HiStepIcon.js +0 -149
- package/src/HiBreadcrumb/HiStepIcon.test.js +0 -182
- package/src/HiBreadcrumb/HiStepLabel.js +0 -182
- package/src/HiBreadcrumb/HiStepLabel.test.js +0 -41
- package/src/HiBreadcrumb/HiStepper.js +0 -44
- package/src/HiBreadcrumb/HiStepper.test.js +0 -41
- package/src/HiBreadcrumb/index.js +0 -1
- package/src/HiButton/HiButton.js +0 -242
- package/src/HiButton/HiButton.md +0 -56
- package/src/HiButton/index.js +0 -3
- package/src/HiCell/CellAddress.js +0 -95
- package/src/HiCell/CellAddress.test.js +0 -105
- package/src/HiCell/CellDate.js +0 -85
- package/src/HiCell/CellDate.test.js +0 -267
- package/src/HiCell/CellHiddenContent.js +0 -87
- package/src/HiCell/CellIcon.js +0 -111
- package/src/HiCell/CellIcon.test.js +0 -62
- package/src/HiCell/CellImage.js +0 -99
- package/src/HiCell/CellImage.test.js +0 -67
- package/src/HiCell/CellNumeric.js +0 -87
- package/src/HiCell/CellNumeric.test.js +0 -36
- package/src/HiCell/CellPinToAction.js +0 -76
- package/src/HiCell/CellRate.js +0 -137
- package/src/HiCell/CellRate.test.js +0 -126
- package/src/HiCell/CellSentinel.js +0 -66
- package/src/HiCell/CellSentinel.test.js +0 -60
- package/src/HiCell/CellSentinelScore.js +0 -62
- package/src/HiCell/CellText.js +0 -192
- package/src/HiCell/CellText.test.js +0 -111
- package/src/HiCell/CellTextStyled.js +0 -119
- package/src/HiCell/HiCell.md +0 -335
- package/src/HiCell/index.js +0 -9
- package/src/HiCheckbox/HiCheckbox.js +0 -200
- package/src/HiCheckbox/HiCheckbox.md +0 -143
- package/src/HiCheckbox/HiCheckbox.test.js +0 -62
- package/src/HiCheckbox/index.js +0 -1
- package/src/HiChip/HiChip.js +0 -344
- package/src/HiChip/HiChip.md +0 -246
- package/src/HiChip/HiChip.test.js +0 -185
- package/src/HiChip/HiChipSwitch.js +0 -258
- package/src/HiChip/HiChipSwitch.test.js +0 -122
- package/src/HiChip/index.js +0 -2
- package/src/HiColoredLabel/HiColoredLabel.js +0 -206
- package/src/HiColoredLabel/HiColoredLabel.md +0 -68
- package/src/HiColoredLabel/HiColoredLabel.test.js +0 -99
- package/src/HiColoredLabel/index.js +0 -1
- package/src/HiDatePicker/Caption.js +0 -56
- package/src/HiDatePicker/Caption.test.js +0 -93
- package/src/HiDatePicker/HiDatePicker.js +0 -397
- package/src/HiDatePicker/HiDatePicker.md +0 -558
- package/src/HiDatePicker/HiDatePicker.test.js +0 -417
- package/src/HiDatePicker/HiDatePickerMobile.js +0 -94
- package/src/HiDatePicker/HiDateRangePicker.js +0 -712
- package/src/HiDatePicker/HiDateRangePicker.test.js +0 -750
- package/src/HiDatePicker/HiDateRangeSelector.js +0 -676
- package/src/HiDatePicker/HiDateRangeSelector.test.js +0 -191
- package/src/HiDatePicker/ListPicker.js +0 -114
- package/src/HiDatePicker/ListPicker.test.js +0 -87
- package/src/HiDatePicker/NavBar.js +0 -124
- package/src/HiDatePicker/NavBar.test.js +0 -71
- package/src/HiDatePicker/Overlays/CustomOverlayLayout.js +0 -104
- package/src/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +0 -97
- package/src/HiDatePicker/Overlays/MonthPickerOverlay.js +0 -83
- package/src/HiDatePicker/Overlays/MonthPickerOverlay.test.js +0 -112
- package/src/HiDatePicker/Overlays/Overlay.js +0 -83
- package/src/HiDatePicker/Overlays/Overlay.test.js +0 -30
- package/src/HiDatePicker/Overlays/TimePickerOverlay.js +0 -198
- package/src/HiDatePicker/Overlays/TimePickerOverlay.test.js +0 -110
- package/src/HiDatePicker/Overlays/YearPickerOverlay.js +0 -114
- package/src/HiDatePicker/Overlays/YearPickerOverlay.test.js +0 -212
- package/src/HiDatePicker/Overlays/index.js +0 -5
- package/src/HiDatePicker/Weekday.js +0 -32
- package/src/HiDatePicker/hiLocaleUtils.js +0 -194
- package/src/HiDatePicker/hiLocaleUtils.test.js +0 -122
- package/src/HiDatePicker/index.js +0 -1
- package/src/HiDatePicker/stylesheet.js +0 -250
- package/src/HiDialog/HiDialog.js +0 -67
- package/src/HiDialog/HiDialog.md +0 -57
- package/src/HiDialog/index.js +0 -1
- package/src/HiDotsStepper/HiDot.js +0 -56
- package/src/HiDotsStepper/HiDot.test.js +0 -97
- package/src/HiDotsStepper/HiDotsStepper.js +0 -71
- package/src/HiDotsStepper/HiDotsStepper.md +0 -43
- package/src/HiDotsStepper/HiDotsStepper.test.js +0 -109
- package/src/HiDotsStepper/index.js +0 -2
- package/src/HiExpansionPanel/HiExpansionPanel.js +0 -193
- package/src/HiExpansionPanel/HiExpansionPanel.md +0 -17
- package/src/HiExpansionPanel/index.js +0 -3
- package/src/HiForm/HiAddressField.js +0 -121
- package/src/HiForm/HiAddressField.test.js +0 -111
- package/src/HiForm/HiEmailField.js +0 -68
- package/src/HiForm/HiEmailField.test.js +0 -20
- package/src/HiForm/HiForm.md +0 -1318
- package/src/HiForm/HiFormControl.js +0 -368
- package/src/HiForm/HiFormControl.test.js +0 -238
- package/src/HiForm/HiFormLabel.js +0 -122
- package/src/HiForm/HiFormLabel.test.js +0 -104
- package/src/HiForm/HiInput.js +0 -573
- package/src/HiForm/HiInput.test.js +0 -227
- package/src/HiForm/HiPasswordField.js +0 -76
- package/src/HiForm/HiPasswordField.test.js +0 -63
- package/src/HiForm/HiSearchField.js +0 -146
- package/src/HiForm/HiSearchField.test.js +0 -208
- package/src/HiForm/HiSlider.js +0 -296
- package/src/HiForm/HiSlider.test.js +0 -194
- package/src/HiForm/HiTextField.js +0 -247
- package/src/HiForm/HiTextField.test.js +0 -292
- package/src/HiForm/HiUpload.js +0 -386
- package/src/HiForm/HiUpload.test.js +0 -231
- package/src/HiForm/HiUploadField.js +0 -122
- package/src/HiForm/HiUploadField.test.js +0 -42
- package/src/HiForm/HiUploadInput.js +0 -400
- package/src/HiForm/HiUploadInput.test.js +0 -154
- package/src/HiForm/index.js +0 -11
- package/src/HiIcon/HiIcon.js +0 -136
- package/src/HiIcon/HiIcon.md +0 -73
- package/src/HiIcon/index.js +0 -1
- package/src/HiIconButton/HiIconButton.js +0 -80
- package/src/HiIconButton/HiIconButton.md +0 -65
- package/src/HiIconButton/HiIconButton.test.js +0 -131
- package/src/HiIconButton/index.js +0 -1
- package/src/HiListItemLink/HiListItemLink.js +0 -102
- package/src/HiListItemLink/HiListItemLink.md +0 -57
- package/src/HiListItemLink/index.js +0 -1
- package/src/HiLoader/HiLoader.js +0 -46
- package/src/HiLoader/HiLoader.md +0 -21
- package/src/HiLoader/HiLoader.test.js +0 -18
- package/src/HiLoader/index.js +0 -1
- package/src/HiNotice/HiKPI.js +0 -198
- package/src/HiNotice/HiKPI.test.js +0 -186
- package/src/HiNotice/HiKPINotice.js +0 -74
- package/src/HiNotice/HiKPINotice.test.js +0 -105
- package/src/HiNotice/index.js +0 -2
- package/src/HiPagination/HiPagination.js +0 -43
- package/src/HiPagination/HiPagination.md +0 -7
- package/src/HiPagination/index.js +0 -1
- package/src/HiPaymentMeans/HiPaymentMeans.js +0 -612
- package/src/HiPaymentMeans/HiPaymentMeans.md +0 -168
- package/src/HiPaymentMeans/HiPaymentMeans.test.js +0 -84
- package/src/HiPaymentMeans/index.js +0 -1
- package/src/HiPdfReader/HiPdfReader.js +0 -195
- package/src/HiPdfReader/index.js +0 -1
- package/src/HiPin/HiPin.js +0 -120
- package/src/HiPin/HiPin.md +0 -58
- package/src/HiPin/HiPin.test.js +0 -71
- package/src/HiPin/index.js +0 -1
- package/src/HiRadio/HiRadio.js +0 -62
- package/src/HiRadio/HiRadio.md +0 -82
- package/src/HiRadio/HiRadio.test.js +0 -65
- package/src/HiRadio/index.js +0 -1
- package/src/HiScrollStepper/HiScrollStepper.js +0 -181
- package/src/HiScrollStepper/HiScrollStepper.md +0 -56
- package/src/HiScrollStepper/index.js +0 -1
- package/src/HiSelect/HiDynamicSelect.js +0 -227
- package/src/HiSelect/HiDynamicSelectField.js +0 -114
- package/src/HiSelect/HiNestedSelect.js +0 -525
- package/src/HiSelect/HiNestedSelectContent.js +0 -430
- package/src/HiSelect/HiNestedSelectField.js +0 -114
- package/src/HiSelect/HiSelect.js +0 -1047
- package/src/HiSelect/HiSelect.md +0 -441
- package/src/HiSelect/HiSelect.test.js +0 -998
- package/src/HiSelect/HiSelectContent.js +0 -497
- package/src/HiSelect/HiSelectField.js +0 -120
- package/src/HiSelect/HiSelectInput.js +0 -352
- package/src/HiSelect/HiSelectInput.test.js +0 -25
- package/src/HiSelect/HiSelectMobile.js +0 -129
- package/src/HiSelect/HiSuggestSelect.js +0 -322
- package/src/HiSelect/HiSuggestSelectField.js +0 -104
- package/src/HiSelect/index.js +0 -8
- package/src/HiSelectableList/HiSelectableList.js +0 -393
- package/src/HiSelectableList/HiSelectableList.md +0 -121
- package/src/HiSelectableList/HiSelectableList.test.js +0 -173
- package/src/HiSelectableList/HiSelectableListHierarchic.js +0 -182
- package/src/HiSelectableList/HiSelectableListItem.js +0 -554
- package/src/HiSelectableList/HiSelectableListItem.test.js +0 -104
- package/src/HiSelectableList/index.js +0 -3
- package/src/HiStepper/DefaultIndicator.js +0 -25
- package/src/HiStepper/HiStep.js +0 -198
- package/src/HiStepper/HiStepper.js +0 -47
- package/src/HiStepper/HiStepper.md +0 -226
- package/src/HiStepper/index.js +0 -2
- package/src/HiSwitch/HiSwitch.js +0 -233
- package/src/HiSwitch/HiSwitch.md +0 -255
- package/src/HiSwitch/HiSwitch.test.js +0 -44
- package/src/HiSwitch/HiSwitchState.js +0 -222
- package/src/HiSwitch/HiSwitchState.test.js +0 -100
- package/src/HiSwitch/index.js +0 -2
- package/src/HiTable/HiCellBuilder.js +0 -238
- package/src/HiTable/HiTable.js +0 -190
- package/src/HiTable/HiTable.md +0 -461
- package/src/HiTable/HiTable.test.js +0 -32
- package/src/HiTable/HiTableBody.js +0 -53
- package/src/HiTable/HiTableHeader.js +0 -112
- package/src/HiTable/HiTableRow.js +0 -116
- package/src/HiTable/constants.js +0 -200
- package/src/HiTable/index.js +0 -1
- package/src/hi-svg-icons/HiAccount.js +0 -27
- package/src/hi-svg-icons/HiActivity.js +0 -30
- package/src/hi-svg-icons/HiAll.js +0 -31
- package/src/hi-svg-icons/HiBilling.js +0 -27
- package/src/hi-svg-icons/HiBriefcaseRescue.js +0 -27
- package/src/hi-svg-icons/HiBusiness.js +0 -27
- package/src/hi-svg-icons/HiCatalog.js +0 -27
- package/src/hi-svg-icons/HiCustomer.js +0 -27
- package/src/hi-svg-icons/HiDownload.js +0 -20
- package/src/hi-svg-icons/HiFinance.js +0 -26
- package/src/hi-svg-icons/HiFinanceMenu.js +0 -26
- package/src/hi-svg-icons/HiHostedPaymentPage.js +0 -27
- package/src/hi-svg-icons/HiHostedPaymentPageMenu.js +0 -26
- package/src/hi-svg-icons/HiIntegration.js +0 -27
- package/src/hi-svg-icons/HiIntegrationMenu.js +0 -26
- package/src/hi-svg-icons/HiIntelligence.js +0 -31
- package/src/hi-svg-icons/HiIntelligenceMenu.js +0 -30
- package/src/hi-svg-icons/HiInvoice.js +0 -26
- package/src/hi-svg-icons/HiInvoiceMenu.js +0 -26
- package/src/hi-svg-icons/HiLogoRounded.js +0 -38
- package/src/hi-svg-icons/HiOrder.js +0 -30
- package/src/hi-svg-icons/HiPaymentOrder.js +0 -27
- package/src/hi-svg-icons/HiPermission.js +0 -30
- package/src/hi-svg-icons/HiPriceGrid.js +0 -27
- package/src/hi-svg-icons/HiPrivate.js +0 -26
- package/src/hi-svg-icons/HiRoute.js +0 -27
- package/src/hi-svg-icons/HiRouteMenu.js +0 -26
- package/src/hi-svg-icons/HiRouteSwitch.js +0 -37
- package/src/hi-svg-icons/HiRouteSwitchMenu.js +0 -36
- package/src/hi-svg-icons/HiSettlement.js +0 -27
- package/src/hi-svg-icons/HiSizeLarge.js +0 -27
- package/src/hi-svg-icons/HiSizeMedium.js +0 -27
- package/src/hi-svg-icons/HiSizeSmall.js +0 -27
- package/src/hi-svg-icons/HiStore.js +0 -43
- package/src/hi-svg-icons/HiStoreMenu.js +0 -42
- package/src/hi-svg-icons/HiTransaction.js +0 -26
- package/src/hi-svg-icons/HiTransactionMenu.js +0 -26
- package/src/hi-svg-icons/HiUser.js +0 -26
- package/src/hi-svg-icons/HiVendor.js +0 -27
- package/src/hi-svg-icons/HiWidget.js +0 -26
- package/src/hi-svg-icons/README.md +0 -125
- package/src/hi-svg-icons/index.js +0 -40
- package/src/hi-svg-icons/index.test.js +0 -43
- package/src/hi-svg-images/HiLogo.js +0 -28
- package/src/hi-svg-images/HiLogoWhite.js +0 -28
- package/src/hi-svg-images/README.md +0 -36
- package/src/hi-svg-images/index.js +0 -2
- package/src/hi-svg-images/index.test.js +0 -43
- package/src/index.css +0 -20
- package/src/index.js +0 -12
- package/src/logo.svg +0 -7
- package/src/serviceWorker.js +0 -135
- package/src/setupTest.js +0 -34
- package/src/styleguide/Wrapper.js +0 -13
- package/src/styles/MuiThemeProvider.js +0 -146
- package/src/styles/Readme.md +0 -142
- package/src/styles/colorManipulator.js +0 -251
- package/src/styles/colorManipulator.test.js +0 -314
- package/src/styles/createBreakpoints.js +0 -71
- package/src/styles/createBreakpoints.test.js +0 -66
- package/src/styles/createGenerateClassName.js +0 -89
- package/src/styles/createGenerateClassName.test.js +0 -166
- package/src/styles/createMixins.js +0 -26
- package/src/styles/createMixins.test.js +0 -26
- package/src/styles/createMuiTheme.js +0 -58
- package/src/styles/createMuiTheme.test.js +0 -87
- package/src/styles/createPalette.js +0 -274
- package/src/styles/createPalette.test.js +0 -375
- package/src/styles/createStyles.js +0 -3
- package/src/styles/createStyles.test.js +0 -9
- package/src/styles/createTypography.js +0 -185
- package/src/styles/createTypography.test.js +0 -67
- package/src/styles/getStylesCreator.js +0 -53
- package/src/styles/getStylesCreator.test.js +0 -105
- package/src/styles/getThemeProps.js +0 -11
- package/src/styles/getThemeProps.test.js +0 -42
- package/src/styles/index.js +0 -5
- package/src/styles/jssPreset.js +0 -23
- package/src/styles/makeStyles.js +0 -11
- package/src/styles/mergeClasses.js +0 -47
- package/src/styles/shadows.js +0 -43
- package/src/styles/shape.js +0 -5
- package/src/styles/spacing.js +0 -2
- package/src/styles/themeListener.js +0 -31
- package/src/styles/themeListener.test.js +0 -36
- package/src/styles/transitions.js +0 -98
- package/src/styles/transitions.test.js +0 -208
- package/src/styles/withStyles.js +0 -11
- package/src/styles/zIndex.js +0 -12
- package/src/test-utils/createMount.js +0 -28
- package/src/test-utils/createRender.js +0 -15
- package/src/test-utils/createShallow.js +0 -32
- package/src/test-utils/getClasses.js +0 -4
- package/src/test-utils/index.js +0 -5
- package/src/test-utils/until.js +0 -28
- package/src/test-utils/until.test.js +0 -117
- package/src/test-utils/unwrap.js +0 -3
- package/src/theme/palette.js +0 -95
- package/src/theme/typography.js +0 -158
- package/src/theme.js +0 -9
- package/src/transitions/utils.js +0 -13
- package/src/utils/exactProp.js +0 -33
- package/src/utils/helpers.js +0 -302
- package/src/withMobileDialog/index.js +0 -1
- package/src/withMobileDialog/withMobileDialog.js +0 -26
- package/src/withMobileDialog/withMobileDialog.test.js +0 -71
- package/static/brand.png +0 -0
- package/static/carbon.png +0 -0
- package/static/favicon.ico +0 -0
- package/static/hmu/images/countries/ad.svg +0 -151
- package/static/hmu/images/countries/ae.svg +0 -6
- package/static/hmu/images/countries/af.svg +0 -83
- package/static/hmu/images/countries/ag.svg +0 -15
- package/static/hmu/images/countries/ai.svg +0 -767
- package/static/hmu/images/countries/al.svg +0 -5
- package/static/hmu/images/countries/am.svg +0 -5
- package/static/hmu/images/countries/ao.svg +0 -13
- package/static/hmu/images/countries/aq.svg +0 -6
- package/static/hmu/images/countries/ar.svg +0 -32
- package/static/hmu/images/countries/as.svg +0 -33
- package/static/hmu/images/countries/at.svg +0 -6
- package/static/hmu/images/countries/au.svg +0 -9
- package/static/hmu/images/countries/aw.svg +0 -186
- package/static/hmu/images/countries/ax.svg +0 -18
- package/static/hmu/images/countries/az.svg +0 -8
- package/static/hmu/images/countries/ba.svg +0 -12
- package/static/hmu/images/countries/bb.svg +0 -6
- package/static/hmu/images/countries/bd.svg +0 -4
- package/static/hmu/images/countries/be.svg +0 -7
- package/static/hmu/images/countries/bf.svg +0 -7
- package/static/hmu/images/countries/bg.svg +0 -7
- package/static/hmu/images/countries/bh.svg +0 -11
- package/static/hmu/images/countries/bi.svg +0 -15
- package/static/hmu/images/countries/bj.svg +0 -14
- package/static/hmu/images/countries/bl.svg +0 -7
- package/static/hmu/images/countries/bm.svg +0 -99
- package/static/hmu/images/countries/bn.svg +0 -36
- package/static/hmu/images/countries/bo.svg +0 -686
- package/static/hmu/images/countries/bq.svg +0 -5
- package/static/hmu/images/countries/br.svg +0 -45
- package/static/hmu/images/countries/bs.svg +0 -13
- package/static/hmu/images/countries/bt.svg +0 -89
- package/static/hmu/images/countries/bv.svg +0 -13
- package/static/hmu/images/countries/bw.svg +0 -7
- package/static/hmu/images/countries/by.svg +0 -61
- package/static/hmu/images/countries/bz.svg +0 -146
- package/static/hmu/images/countries/ca.svg +0 -4
- package/static/hmu/images/countries/cc.svg +0 -19
- package/static/hmu/images/countries/cd.svg +0 -5
- package/static/hmu/images/countries/cf.svg +0 -15
- package/static/hmu/images/countries/cg.svg +0 -12
- package/static/hmu/images/countries/ch.svg +0 -9
- package/static/hmu/images/countries/ci.svg +0 -7
- package/static/hmu/images/countries/ck.svg +0 -9
- package/static/hmu/images/countries/cl.svg +0 -13
- package/static/hmu/images/countries/cm.svg +0 -15
- package/static/hmu/images/countries/cn.svg +0 -11
- package/static/hmu/images/countries/co.svg +0 -7
- package/static/hmu/images/countries/cr.svg +0 -7
- package/static/hmu/images/countries/cu.svg +0 -13
- package/static/hmu/images/countries/cv.svg +0 -13
- package/static/hmu/images/countries/cw.svg +0 -14
- package/static/hmu/images/countries/cx.svg +0 -15
- package/static/hmu/images/countries/cy.svg +0 -6
- package/static/hmu/images/countries/cz.svg +0 -12
- package/static/hmu/images/countries/de.svg +0 -5
- package/static/hmu/images/countries/dj.svg +0 -13
- package/static/hmu/images/countries/dk.svg +0 -5
- package/static/hmu/images/countries/dm.svg +0 -152
- package/static/hmu/images/countries/do.svg +0 -6745
- package/static/hmu/images/countries/dz.svg +0 -5
- package/static/hmu/images/countries/ec.svg +0 -141
- package/static/hmu/images/countries/ee.svg +0 -7
- package/static/hmu/images/countries/eg.svg +0 -38
- package/static/hmu/images/countries/eh.svg +0 -15
- package/static/hmu/images/countries/er.svg +0 -8
- package/static/hmu/images/countries/es-ct.svg +0 -4
- package/static/hmu/images/countries/es.svg +0 -581
- package/static/hmu/images/countries/et.svg +0 -14
- package/static/hmu/images/countries/eu.svg +0 -28
- package/static/hmu/images/countries/fi.svg +0 -5
- package/static/hmu/images/countries/fj.svg +0 -124
- package/static/hmu/images/countries/fk.svg +0 -90
- package/static/hmu/images/countries/fm.svg +0 -11
- package/static/hmu/images/countries/fo.svg +0 -12
- package/static/hmu/images/countries/fr.svg +0 -7
- package/static/hmu/images/countries/ga.svg +0 -7
- package/static/hmu/images/countries/gb-eng.svg +0 -5
- package/static/hmu/images/countries/gb-nir.svg +0 -137
- package/static/hmu/images/countries/gb-sct.svg +0 -4
- package/static/hmu/images/countries/gb-wls.svg +0 -9
- package/static/hmu/images/countries/gb.svg +0 -15
- package/static/hmu/images/countries/gd.svg +0 -27
- package/static/hmu/images/countries/ge.svg +0 -6
- package/static/hmu/images/countries/gf.svg +0 -5
- package/static/hmu/images/countries/gg.svg +0 -9
- package/static/hmu/images/countries/gh.svg +0 -6
- package/static/hmu/images/countries/gi.svg +0 -33
- package/static/hmu/images/countries/gl.svg +0 -4
- package/static/hmu/images/countries/gm.svg +0 -14
- package/static/hmu/images/countries/gn.svg +0 -7
- package/static/hmu/images/countries/gp.svg +0 -7
- package/static/hmu/images/countries/gq.svg +0 -23
- package/static/hmu/images/countries/gr.svg +0 -22
- package/static/hmu/images/countries/gs.svg +0 -205
- package/static/hmu/images/countries/gt.svg +0 -204
- package/static/hmu/images/countries/gu.svg +0 -39
- package/static/hmu/images/countries/gw.svg +0 -13
- package/static/hmu/images/countries/gy.svg +0 -9
- package/static/hmu/images/countries/hk.svg +0 -32
- package/static/hmu/images/countries/hm.svg +0 -9
- package/static/hmu/images/countries/hn.svg +0 -18
- package/static/hmu/images/countries/hr.svg +0 -59
- package/static/hmu/images/countries/ht.svg +0 -122
- package/static/hmu/images/countries/hu.svg +0 -7
- package/static/hmu/images/countries/id.svg +0 -6
- package/static/hmu/images/countries/ie.svg +0 -7
- package/static/hmu/images/countries/il.svg +0 -14
- package/static/hmu/images/countries/im.svg +0 -36
- package/static/hmu/images/countries/in.svg +0 -25
- package/static/hmu/images/countries/io.svg +0 -148
- package/static/hmu/images/countries/iq.svg +0 -10
- package/static/hmu/images/countries/ir.svg +0 -219
- package/static/hmu/images/countries/is.svg +0 -12
- package/static/hmu/images/countries/it.svg +0 -7
- package/static/hmu/images/countries/je.svg +0 -32
- package/static/hmu/images/countries/jm.svg +0 -8
- package/static/hmu/images/countries/jo.svg +0 -16
- package/static/hmu/images/countries/jp.svg +0 -11
- package/static/hmu/images/countries/ke.svg +0 -23
- package/static/hmu/images/countries/kg.svg +0 -15
- package/static/hmu/images/countries/kh.svg +0 -69
- package/static/hmu/images/countries/ki.svg +0 -36
- package/static/hmu/images/countries/km.svg +0 -16
- package/static/hmu/images/countries/kn.svg +0 -14
- package/static/hmu/images/countries/kp.svg +0 -15
- package/static/hmu/images/countries/kr.svg +0 -24
- package/static/hmu/images/countries/kw.svg +0 -13
- package/static/hmu/images/countries/ky.svg +0 -63
- package/static/hmu/images/countries/kz.svg +0 -23
- package/static/hmu/images/countries/la.svg +0 -12
- package/static/hmu/images/countries/lb.svg +0 -15
- package/static/hmu/images/countries/lc.svg +0 -8
- package/static/hmu/images/countries/li.svg +0 -43
- package/static/hmu/images/countries/lk.svg +0 -22
- package/static/hmu/images/countries/lr.svg +0 -14
- package/static/hmu/images/countries/ls.svg +0 -8
- package/static/hmu/images/countries/lt.svg +0 -7
- package/static/hmu/images/countries/lu.svg +0 -5
- package/static/hmu/images/countries/lv.svg +0 -6
- package/static/hmu/images/countries/ly.svg +0 -13
- package/static/hmu/images/countries/ma.svg +0 -4
- package/static/hmu/images/countries/mc.svg +0 -6
- package/static/hmu/images/countries/md.svg +0 -72
- package/static/hmu/images/countries/me.svg +0 -118
- package/static/hmu/images/countries/mf.svg +0 -7
- package/static/hmu/images/countries/mg.svg +0 -7
- package/static/hmu/images/countries/mh.svg +0 -7
- package/static/hmu/images/countries/mk.svg +0 -5
- package/static/hmu/images/countries/ml.svg +0 -7
- package/static/hmu/images/countries/mm.svg +0 -16
- package/static/hmu/images/countries/mn.svg +0 -13
- package/static/hmu/images/countries/mo.svg +0 -9
- package/static/hmu/images/countries/mp.svg +0 -86
- package/static/hmu/images/countries/mq.svg +0 -7
- package/static/hmu/images/countries/mr.svg +0 -6
- package/static/hmu/images/countries/ms.svg +0 -39
- package/static/hmu/images/countries/mt.svg +0 -49
- package/static/hmu/images/countries/mu.svg +0 -8
- package/static/hmu/images/countries/mv.svg +0 -6
- package/static/hmu/images/countries/mw.svg +0 -10
- package/static/hmu/images/countries/mx.svg +0 -385
- package/static/hmu/images/countries/my.svg +0 -15
- package/static/hmu/images/countries/mz.svg +0 -21
- package/static/hmu/images/countries/na.svg +0 -16
- package/static/hmu/images/countries/nc.svg +0 -7
- package/static/hmu/images/countries/ne.svg +0 -6
- package/static/hmu/images/countries/nf.svg +0 -9
- package/static/hmu/images/countries/ng.svg +0 -6
- package/static/hmu/images/countries/ni.svg +0 -131
- package/static/hmu/images/countries/nl.svg +0 -7
- package/static/hmu/images/countries/no.svg +0 -7
- package/static/hmu/images/countries/np.svg +0 -14
- package/static/hmu/images/countries/nr.svg +0 -12
- package/static/hmu/images/countries/nu.svg +0 -26
- package/static/hmu/images/countries/nz.svg +0 -41
- package/static/hmu/images/countries/om.svg +0 -116
- package/static/hmu/images/countries/pa.svg +0 -14
- package/static/hmu/images/countries/pe.svg +0 -279
- package/static/hmu/images/countries/pf.svg +0 -19
- package/static/hmu/images/countries/pg.svg +0 -9
- package/static/hmu/images/countries/ph.svg +0 -28
- package/static/hmu/images/countries/pk.svg +0 -15
- package/static/hmu/images/countries/pl.svg +0 -6
- package/static/hmu/images/countries/pm.svg +0 -7
- package/static/hmu/images/countries/pn.svg +0 -62
- package/static/hmu/images/countries/pr.svg +0 -13
- package/static/hmu/images/countries/ps.svg +0 -15
- package/static/hmu/images/countries/pt.svg +0 -57
- package/static/hmu/images/countries/pw.svg +0 -11
- package/static/hmu/images/countries/py.svg +0 -157
- package/static/hmu/images/countries/qa.svg +0 -4
- package/static/hmu/images/countries/re.svg +0 -7
- package/static/hmu/images/countries/ro.svg +0 -7
- package/static/hmu/images/countries/rs.svg +0 -292
- package/static/hmu/images/countries/ru.svg +0 -7
- package/static/hmu/images/countries/rw.svg +0 -13
- package/static/hmu/images/countries/sa.svg +0 -26
- package/static/hmu/images/countries/sb.svg +0 -13
- package/static/hmu/images/countries/sc.svg +0 -14
- package/static/hmu/images/countries/sd.svg +0 -13
- package/static/hmu/images/countries/se.svg +0 -16
- package/static/hmu/images/countries/sg.svg +0 -13
- package/static/hmu/images/countries/sh.svg +0 -74
- package/static/hmu/images/countries/si.svg +0 -18
- package/static/hmu/images/countries/sj.svg +0 -7
- package/static/hmu/images/countries/sk.svg +0 -9
- package/static/hmu/images/countries/sl.svg +0 -7
- package/static/hmu/images/countries/sm.svg +0 -91
- package/static/hmu/images/countries/sn.svg +0 -8
- package/static/hmu/images/countries/so.svg +0 -11
- package/static/hmu/images/countries/sr.svg +0 -6
- package/static/hmu/images/countries/ss.svg +0 -8
- package/static/hmu/images/countries/st.svg +0 -16
- package/static/hmu/images/countries/sv.svg +0 -618
- package/static/hmu/images/countries/sx.svg +0 -56
- package/static/hmu/images/countries/sy.svg +0 -6
- package/static/hmu/images/countries/sz.svg +0 -45
- package/static/hmu/images/countries/tc.svg +0 -67
- package/static/hmu/images/countries/td.svg +0 -7
- package/static/hmu/images/countries/tf.svg +0 -15
- package/static/hmu/images/countries/tg.svg +0 -14
- package/static/hmu/images/countries/th.svg +0 -7
- package/static/hmu/images/countries/tj.svg +0 -22
- package/static/hmu/images/countries/tk.svg +0 -5
- package/static/hmu/images/countries/tl.svg +0 -13
- package/static/hmu/images/countries/tm.svg +0 -213
- package/static/hmu/images/countries/tn.svg +0 -13
- package/static/hmu/images/countries/to.svg +0 -10
- package/static/hmu/images/countries/tr.svg +0 -8
- package/static/hmu/images/countries/tt.svg +0 -5
- package/static/hmu/images/countries/tv.svg +0 -27
- package/static/hmu/images/countries/tw.svg +0 -14
- package/static/hmu/images/countries/tz.svg +0 -13
- package/static/hmu/images/countries/ua.svg +0 -6
- package/static/hmu/images/countries/ug.svg +0 -30
- package/static/hmu/images/countries/um.svg +0 -23
- package/static/hmu/images/countries/un.svg +0 -16
- package/static/hmu/images/countries/us.svg +0 -12
- package/static/hmu/images/countries/uy.svg +0 -28
- package/static/hmu/images/countries/uz.svg +0 -30
- package/static/hmu/images/countries/va.svg +0 -483
- package/static/hmu/images/countries/vc.svg +0 -8
- package/static/hmu/images/countries/ve.svg +0 -26
- package/static/hmu/images/countries/vg.svg +0 -133
- package/static/hmu/images/countries/vi.svg +0 -31
- package/static/hmu/images/countries/vn.svg +0 -11
- package/static/hmu/images/countries/vu.svg +0 -18
- package/static/hmu/images/countries/wf.svg +0 -7
- package/static/hmu/images/countries/ws.svg +0 -7
- package/static/hmu/images/countries/ye.svg +0 -7
- package/static/hmu/images/countries/yt.svg +0 -7
- package/static/hmu/images/countries/za.svg +0 -17
- package/static/hmu/images/countries/zm.svg +0 -27
- package/static/hmu/images/countries/zw.svg +0 -21
- package/static/hmu/images/logo_visa_75wx45h.gif +0 -0
- package/static/hmu/images/payment-means/1eurocom full.svg +0 -1
- package/static/hmu/images/payment-means/1eurocom.svg +0 -1
- package/static/hmu/images/payment-means/3xcb full.svg +0 -1
- package/static/hmu/images/payment-means/3xcb-no-fees full.svg +0 -1
- package/static/hmu/images/payment-means/3xcb-no-fees.svg +0 -1
- package/static/hmu/images/payment-means/3xcb.svg +0 -1
- package/static/hmu/images/payment-means/4xcb full.svg +0 -1
- package/static/hmu/images/payment-means/4xcb-no-fees full.svg +0 -1
- package/static/hmu/images/payment-means/4xcb-no-fees.svg +0 -1
- package/static/hmu/images/payment-means/4xcb.svg +0 -1
- package/static/hmu/images/payment-means/Gift_shape.svg +0 -13
- package/static/hmu/images/payment-means/Wallet_shape.svg +0 -9
- package/static/hmu/images/payment-means/afterpay full.svg +0 -1
- package/static/hmu/images/payment-means/afterpay.svg +0 -1
- package/static/hmu/images/payment-means/alipay-pos full.svg +0 -1
- package/static/hmu/images/payment-means/alipay-pos.svg +0 -1
- package/static/hmu/images/payment-means/american-express full.svg +0 -1
- package/static/hmu/images/payment-means/american-express.svg +0 -1
- package/static/hmu/images/payment-means/apple-pay full.svg +0 -1
- package/static/hmu/images/payment-means/apple-pay.svg +0 -1
- package/static/hmu/images/payment-means/astropay full.svg +0 -1
- package/static/hmu/images/payment-means/astropay.svg +0 -1
- package/static/hmu/images/payment-means/aura full.svg +0 -1
- package/static/hmu/images/payment-means/aura.svg +0 -1
- package/static/hmu/images/payment-means/banamex full.svg +0 -1
- package/static/hmu/images/payment-means/banamex.svg +0 -1
- package/static/hmu/images/payment-means/banco-do-brasil full.svg +0 -1
- package/static/hmu/images/payment-means/banco-do-brasil.svg +0 -1
- package/static/hmu/images/payment-means/bancontactqrcode full.svg +0 -1
- package/static/hmu/images/payment-means/bancontactqrcode.svg +0 -1
- package/static/hmu/images/payment-means/bank-transfer full.svg +0 -1
- package/static/hmu/images/payment-means/bank-transfer .svg +0 -1
- package/static/hmu/images/payment-means/bbva-bancomer complet.svg +0 -1
- package/static/hmu/images/payment-means/bbva-bancomer.svg +0 -1
- package/static/hmu/images/payment-means/bcmc full.svg +0 -1
- package/static/hmu/images/payment-means/bcmc-mobile full.svg +0 -1
- package/static/hmu/images/payment-means/bcmc-mobile.svg +0 -1
- package/static/hmu/images/payment-means/bcmc.svg +0 -1
- package/static/hmu/images/payment-means/bnp-personal-finance full.svg +0 -1
- package/static/hmu/images/payment-means/bnp-personal-finance.svg +0 -1
- package/static/hmu/images/payment-means/bnpp-3xcb full.svg +0 -1
- package/static/hmu/images/payment-means/bnpp-3xcb.svg +0 -1
- package/static/hmu/images/payment-means/bnpp-4xcb full.svg +0 -1
- package/static/hmu/images/payment-means/bnpp-4xcb.svg +0 -1
- package/static/hmu/images/payment-means/boleto-bancario full.svg +0 -1
- package/static/hmu/images/payment-means/boleto-bancario.svg +0 -1
- package/static/hmu/images/payment-means/bradesco full.svg +0 -1
- package/static/hmu/images/payment-means/bradesco.svg +0 -1
- package/static/hmu/images/payment-means/caixa full.svg +0 -1
- package/static/hmu/images/payment-means/caixa.svg +0 -1
- package/static/hmu/images/payment-means/carte-cadeau full.svg +0 -1
- package/static/hmu/images/payment-means/carte-cadeau.svg +0 -1
- package/static/hmu/images/payment-means/carte-titre-restaurant full.svg +0 -1
- package/static/hmu/images/payment-means/carte-titre-restaurant.svg +0 -1
- package/static/hmu/images/payment-means/cb full.svg +0 -1
- package/static/hmu/images/payment-means/cb.svg +0 -1
- package/static/hmu/images/payment-means/cbc full.svg +0 -1
- package/static/hmu/images/payment-means/cbc.svg +0 -1
- package/static/hmu/images/payment-means/citi full.svg +0 -1
- package/static/hmu/images/payment-means/citi.svg +0 -1
- package/static/hmu/images/payment-means/credit-long full.svg +0 -1
- package/static/hmu/images/payment-means/credit-long.svg +0 -1
- package/static/hmu/images/payment-means/dexia-directnet full.svg +0 -1
- package/static/hmu/images/payment-means/dexia-directnet.svg +0 -1
- package/static/hmu/images/payment-means/dimoco full.svg +0 -1
- package/static/hmu/images/payment-means/dimoco.svg +0 -1
- package/static/hmu/images/payment-means/direct-debit full.svg +0 -1
- package/static/hmu/images/payment-means/direct-debit.svg +0 -1
- package/static/hmu/images/payment-means/divido full.svg +0 -1
- package/static/hmu/images/payment-means/divido.svg +0 -1
- package/static/hmu/images/payment-means/dsb-ch-easypay full.svg +0 -1
- package/static/hmu/images/payment-means/dsb-ch-easypay.svg +0 -1
- package/static/hmu/images/payment-means/giropay full.svg +0 -1
- package/static/hmu/images/payment-means/giropay.svg +0 -1
- package/static/hmu/images/payment-means/ideal full.svg +0 -1
- package/static/hmu/images/payment-means/ideal.svg +0 -1
- package/static/hmu/images/payment-means/ing-homepay full.svg +0 -1
- package/static/hmu/images/payment-means/ing-homepay.svg +0 -1
- package/static/hmu/images/payment-means/itau full.svg +0 -1
- package/static/hmu/images/payment-means/itau.svg +0 -1
- package/static/hmu/images/payment-means/jcb full.svg +0 -1
- package/static/hmu/images/payment-means/jcb.svg +0 -1
- package/static/hmu/images/payment-means/kbc full.svg +0 -1
- package/static/hmu/images/payment-means/kbc.svg +0 -1
- package/static/hmu/images/payment-means/klarnacheckout full.svg +0 -1
- package/static/hmu/images/payment-means/klarnacheckout.svg +0 -1
- package/static/hmu/images/payment-means/klarnainvoice full.svg +0 -1
- package/static/hmu/images/payment-means/klarnainvoice.svg +0 -1
- package/static/hmu/images/payment-means/maestro full.svg +0 -1
- package/static/hmu/images/payment-means/maestro.svg +0 -1
- package/static/hmu/images/payment-means/mastercard full.svg +0 -1
- package/static/hmu/images/payment-means/mastercard.svg +0 -1
- package/static/hmu/images/payment-means/mercado-pago full.svg +0 -1
- package/static/hmu/images/payment-means/mercado-pago.svg +0 -1
- package/static/hmu/images/payment-means/mobilepay full.svg +0 -1
- package/static/hmu/images/payment-means/mobilepay.svg +0 -1
- package/static/hmu/images/payment-means/movistar full.svg +0 -1
- package/static/hmu/images/payment-means/movistar.svg +0 -1
- package/static/hmu/images/payment-means/multi-carte full.svg +0 -1
- package/static/hmu/images/payment-means/multi-carte.svg +0 -1
- package/static/hmu/images/payment-means/multibanco full.svg +0 -1
- package/static/hmu/images/payment-means/multibanco.svg +0 -1
- package/static/hmu/images/payment-means/mybank full.svg +0 -1
- package/static/hmu/images/payment-means/mybank.svg +0 -1
- package/static/hmu/images/payment-means/no-logo.svg +0 -14
- package/static/hmu/images/payment-means/o2 full.svg +0 -1
- package/static/hmu/images/payment-means/o2.svg +0 -1
- package/static/hmu/images/payment-means/orange full.svg +0 -1
- package/static/hmu/images/payment-means/orange.svg +0 -1
- package/static/hmu/images/payment-means/oxxo full.svg +0 -1
- package/static/hmu/images/payment-means/oxxo.svg +0 -1
- package/static/hmu/images/payment-means/paypal full.svg +0 -1
- package/static/hmu/images/payment-means/paypal.svg +0 -1
- package/static/hmu/images/payment-means/paysafecard full.svg +0 -1
- package/static/hmu/images/payment-means/paysafecard.svg +0 -1
- package/static/hmu/images/payment-means/payshop full.svg +0 -1
- package/static/hmu/images/payment-means/payshop.svg +0 -1
- package/static/hmu/images/payment-means/payulatam full.svg +0 -1
- package/static/hmu/images/payment-means/payulatam.svg +0 -1
- package/static/hmu/images/payment-means/postfinance-card full.svg +0 -1
- package/static/hmu/images/payment-means/postfinance-card.svg +0 -1
- package/static/hmu/images/payment-means/postfinance-efinance full.svg +0 -1
- package/static/hmu/images/payment-means/postfinance-efinance.svg +0 -1
- package/static/hmu/images/payment-means/przelewy24 full.svg +0 -1
- package/static/hmu/images/payment-means/przelewy24.svg +0 -1
- package/static/hmu/images/payment-means/qiwi-wallet full.svg +0 -1
- package/static/hmu/images/payment-means/qiwi-wallet.svg +0 -1
- package/static/hmu/images/payment-means/rapipago full.svg +0 -1
- package/static/hmu/images/payment-means/rapipago.svg +0 -1
- package/static/hmu/images/payment-means/refund-pos full.svg +0 -1
- package/static/hmu/images/payment-means/refund-pos.svg +0 -1
- package/static/hmu/images/payment-means/safetypay full.svg +0 -1
- package/static/hmu/images/payment-means/safetypay.svg +0 -1
- package/static/hmu/images/payment-means/sans_logo.svg +0 -1
- package/static/hmu/images/payment-means/sans_logo_full.svg +0 -499
- package/static/hmu/images/payment-means/santander-cash full.svg +0 -1
- package/static/hmu/images/payment-means/santander-cash.svg +0 -1
- package/static/hmu/images/payment-means/santander-home-banking full.svg +0 -1
- package/static/hmu/images/payment-means/santander-home-banking.svg +0 -1
- package/static/hmu/images/payment-means/sct full.svg +0 -1
- package/static/hmu/images/payment-means/sct.svg +0 -1
- package/static/hmu/images/payment-means/sdd full.svg +0 -1
- package/static/hmu/images/payment-means/sdd.svg +0 -1
- package/static/hmu/images/payment-means/sepa-refund-transfer full.svg +0 -1
- package/static/hmu/images/payment-means/sepa-refund-transfer.svg +0 -1
- package/static/hmu/images/payment-means/singtel full.svg +0 -1
- package/static/hmu/images/payment-means/singtel.svg +0 -1
- package/static/hmu/images/payment-means/sisal full.svg +0 -1
- package/static/hmu/images/payment-means/sisal.svg +0 -1
- package/static/hmu/images/payment-means/skrill full.svg +0 -1
- package/static/hmu/images/payment-means/skrill.svg +0 -1
- package/static/hmu/images/payment-means/sofort-uberweisung full.svg +0 -1
- package/static/hmu/images/payment-means/sofort-uberweisung.svg +0 -1
- package/static/hmu/images/payment-means/t-mobile full.svg +0 -1
- package/static/hmu/images/payment-means/t-mobile.svg +0 -1
- package/static/hmu/images/payment-means/tpe full.svg +0 -1
- package/static/hmu/images/payment-means/tpe.svg +0 -1
- package/static/hmu/images/payment-means/trustpay-banking full.svg +0 -1
- package/static/hmu/images/payment-means/trustpay-banking.svg +0 -1
- package/static/hmu/images/payment-means/unionpay full.svg +0 -1
- package/static/hmu/images/payment-means/unionpay.svg +0 -1
- package/static/hmu/images/payment-means/visa full.svg +0 -1
- package/static/hmu/images/payment-means/visa.svg +0 -1
- package/static/hmu/images/payment-means/vodafone full.svg +0 -1
- package/static/hmu/images/payment-means/vodafone.svg +0 -1
- package/static/hmu/images/payment-means/webmoney-transfer full.svg +0 -1
- package/static/hmu/images/payment-means/webmoney-transfer.svg +0 -1
- package/static/hmu/images/payment-means/wechatpay full.svg +0 -1
- package/static/hmu/images/payment-means/wechatpay.svg +0 -1
- package/static/hmu/images/payment-means/yandex full.svg +0 -1
- package/static/hmu/images/payment-means/yandex.svg +0 -1
- package/static/icons/150x150.png +0 -0
- package/static/icons/152x152.png +0 -0
- package/static/icons/192x192.png +0 -0
- package/static/icons/256x256.png +0 -0
- package/static/icons/310x310.png +0 -0
- package/static/icons/384x384.png +0 -0
- package/static/icons/48x48.png +0 -0
- package/static/icons/512x512.png +0 -0
- package/static/icons/70x70.png +0 -0
- package/static/icons/96x96.png +0 -0
- package/static/images/cards/contemplative-reptile.jpg +0 -0
- package/static/images/cards/live-from-space.jpg +0 -0
- package/static/images/cards/paella.jpg +0 -0
- package/static/images/color/colorTool.png +0 -0
- package/static/images/font-size.gif +0 -0
- package/static/images/grid/complex.jpg +0 -0
- package/static/images/grid-list/bike.jpg +0 -0
- package/static/images/grid-list/breakfast.jpg +0 -0
- package/static/images/grid-list/burgers.jpg +0 -0
- package/static/images/grid-list/camera.jpg +0 -0
- package/static/images/grid-list/hats.jpg +0 -0
- package/static/images/grid-list/honey.jpg +0 -0
- package/static/images/grid-list/morning.jpg +0 -0
- package/static/images/grid-list/mushroom.jpg +0 -0
- package/static/images/grid-list/olive.jpg +0 -0
- package/static/images/grid-list/plant.jpg +0 -0
- package/static/images/grid-list/star.jpg +0 -0
- package/static/images/grid-list/vegetables.jpg +0 -0
- package/static/images/hipay-logo.svg +0 -1
- package/static/images/hipay-white-logo.svg +0 -42
- package/static/images/icons/icons.png +0 -0
- package/static/images/layouts/album.png +0 -0
- package/static/images/layouts/blog.png +0 -0
- package/static/images/layouts/checkout.png +0 -0
- package/static/images/layouts/dashboard.png +0 -0
- package/static/images/layouts/pricing.png +0 -0
- package/static/images/layouts/sign-in.png +0 -0
- package/static/images/material-ui-logo.svg +0 -1
- package/static/images/remy.jpg +0 -0
- package/static/images/showcase/audionodes.jpg +0 -0
- package/static/images/showcase/builderbook.jpg +0 -0
- package/static/images/showcase/componofy.jpg +0 -0
- package/static/images/showcase/cryptoverview.jpg +0 -0
- package/static/images/showcase/hijup.jpg +0 -0
- package/static/images/showcase/jdupont.jpg +0 -0
- package/static/images/showcase/johnnymetrics.jpg +0 -0
- package/static/images/showcase/justaskusers.jpg +0 -0
- package/static/images/showcase/localinsights.jpg +0 -0
- package/static/images/showcase/localmonero.jpg +0 -0
- package/static/images/showcase/manty.jpg +0 -0
- package/static/images/showcase/meetingku.jpg +0 -0
- package/static/images/showcase/modole.jpg +0 -0
- package/static/images/showcase/npm-registry-browser.jpg +0 -0
- package/static/images/showcase/pilcro.jpg +0 -0
- package/static/images/showcase/planalyze.jpg +0 -0
- package/static/images/showcase/posters-galore.jpg +0 -0
- package/static/images/showcase/rung.jpg +0 -0
- package/static/images/showcase/sc.bnu.edu.cn.jpg +0 -0
- package/static/images/showcase/slidesup.jpg +0 -0
- package/static/images/showcase/snippets.jpg +0 -0
- package/static/images/showcase/tentu.jpg +0 -0
- package/static/images/showcase/trafikito-monitoring.jpg +0 -0
- package/static/images/showcase/typekev.jpg +0 -0
- package/static/images/showcase/venuemob.jpg +0 -0
- package/static/images/steppers/1-happy.jpg +0 -0
- package/static/images/steppers/2-work.jpg +0 -0
- package/static/images/steppers/3-friends.jpg +0 -0
- package/static/images/steppers/4-travel.jpg +0 -0
- package/static/images/steppers/5-mui.png +0 -0
- package/static/images/themes/creative-tim-dashboard.jpg +0 -0
- package/static/images/themes/creative-tim-kit.jpg +0 -0
- package/static/images/themes.jpg +0 -0
- package/static/images/tidelift.svg +0 -1
- package/static/images/uxceo-128.jpg +0 -0
- package/static/logo.png +0 -0
- package/static/manifest.json +0 -34
- package/static/pdf/pdf-multiple-pages.pdf +0 -0
- package/static/react-lifecycle.png +0 -0
- package/styleguide.config.js +0 -662
package/src/HiSelect/HiSelect.js
DELETED
@@ -1,1047 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
|
-
import Scrollbars from 'react-custom-scrollbars';
|
4
|
-
import Grow from '@mui/material/Grow';
|
5
|
-
import Paper from '@mui/material/Paper';
|
6
|
-
import Popper from '@mui/material/Popper';
|
7
|
-
import ClickAwayListener from '@mui/material/ClickAwayListener';
|
8
|
-
import HiSelectableList from '../HiSelectableList';
|
9
|
-
import HiInput from '../HiForm/HiInput';
|
10
|
-
import HiSelectInput from './HiSelectInput';
|
11
|
-
import withStyles from '@mui/styles/withStyles';
|
12
|
-
import { foldAccents } from '../utils/helpers';
|
13
|
-
import HiIcon from '../HiIcon';
|
14
|
-
import keycode from 'keycode';
|
15
|
-
import classNames from 'classnames';
|
16
|
-
import HiAlertModal from '../HiAlertModal';
|
17
|
-
import { isMobile } from 'react-device-detect';
|
18
|
-
import HiSelectMobile from './HiSelectMobile';
|
19
|
-
import { findDOMNode } from 'react-dom';
|
20
|
-
|
21
|
-
export const styles = (theme) => ({
|
22
|
-
root: {
|
23
|
-
backgroundColor: theme.palette.background2,
|
24
|
-
width: '100%',
|
25
|
-
position: 'relative',
|
26
|
-
},
|
27
|
-
popper: {
|
28
|
-
zIndex: 1200,
|
29
|
-
},
|
30
|
-
popperWidth: {
|
31
|
-
width: '100% !important',
|
32
|
-
},
|
33
|
-
popperRightAlign: {
|
34
|
-
right: 0,
|
35
|
-
left: 'unset!important',
|
36
|
-
},
|
37
|
-
paper: {
|
38
|
-
borderRadius: '0px 2px',
|
39
|
-
maxHeight: 480,
|
40
|
-
transition: 'none !important',
|
41
|
-
},
|
42
|
-
labelIcon: {
|
43
|
-
marginRight: 10,
|
44
|
-
verticalAlign: 'text-bottom',
|
45
|
-
},
|
46
|
-
labelImg: {
|
47
|
-
height: 18,
|
48
|
-
width: 'auto',
|
49
|
-
margin: '0 4px',
|
50
|
-
verticalAlign: 'text-bottom',
|
51
|
-
},
|
52
|
-
selectIconLabel: {
|
53
|
-
whiteSpace: 'nowrap',
|
54
|
-
overflow: 'hidden',
|
55
|
-
textOverflow: 'ellipsis',
|
56
|
-
paddingRight: 16,
|
57
|
-
...theme.typography.b1,
|
58
|
-
display: 'inline-block',
|
59
|
-
width: '100%',
|
60
|
-
},
|
61
|
-
selectImgLabel: {
|
62
|
-
whiteSpace: 'nowrap',
|
63
|
-
overflow: 'hidden',
|
64
|
-
textOverflow: 'ellipsis',
|
65
|
-
paddingRight: 16,
|
66
|
-
...theme.typography.b1,
|
67
|
-
display: 'inline-flex',
|
68
|
-
width: '100%',
|
69
|
-
},
|
70
|
-
separator: {
|
71
|
-
borderTop: `1px solid ${theme.palette.input.bottomLine}`,
|
72
|
-
},
|
73
|
-
});
|
74
|
-
|
75
|
-
function filterValue(item, search) {
|
76
|
-
return (
|
77
|
-
search === '' ||
|
78
|
-
foldAccents(item.label.toString().toLowerCase()).search(
|
79
|
-
foldAccents(search.toLowerCase()),
|
80
|
-
) !== -1
|
81
|
-
);
|
82
|
-
}
|
83
|
-
|
84
|
-
/**
|
85
|
-
*
|
86
|
-
* Utilisé pour tous types de selects dans les formulaires.
|
87
|
-
* - single / multiple ( multi-select )
|
88
|
-
* - avec / sans checkboxes
|
89
|
-
* - avec / sans barre de recherche
|
90
|
-
* - avec / sans option "All"
|
91
|
-
* - prise en compte du type des éléments (text, image, icon, ...)
|
92
|
-
* - les actions du clavier son capturés avec KeyDown
|
93
|
-
*
|
94
|
-
* Ce composant réuni les sous-composants
|
95
|
-
* - HiSelectInput : affiche l'élément dans le formulaire
|
96
|
-
* - HiSearchField : intègre une barre de recherche dans le Popper, il filtre la liste des suggestions
|
97
|
-
* - HiSelectableList : affiche la liste des suggestions selon le type des éléments
|
98
|
-
*/
|
99
|
-
class HiSelect extends React.PureComponent {
|
100
|
-
static propTypes = {
|
101
|
-
/**
|
102
|
-
* Affiche une alerte à l'ouverture de la liste
|
103
|
-
*/
|
104
|
-
alert: PropTypes.object,
|
105
|
-
align: PropTypes.oneOf(['left', 'right']),
|
106
|
-
/**
|
107
|
-
* Permet de forcer le focus sur le composant
|
108
|
-
*/
|
109
|
-
autoFocus: PropTypes.bool,
|
110
|
-
/**
|
111
|
-
* Useful to extend the style applied to components.
|
112
|
-
*/
|
113
|
-
classes: PropTypes.object,
|
114
|
-
/**
|
115
|
-
* Popper width
|
116
|
-
*/
|
117
|
-
containerWidth: PropTypes.number,
|
118
|
-
/**
|
119
|
-
* Inactif
|
120
|
-
*/
|
121
|
-
disabled: PropTypes.bool,
|
122
|
-
/**
|
123
|
-
* Option permettant d'afficher les sélection sous forme de Chip.
|
124
|
-
*/
|
125
|
-
displayAsChip: PropTypes.bool,
|
126
|
-
/**
|
127
|
-
* Applique le style error
|
128
|
-
*/
|
129
|
-
error: PropTypes.bool,
|
130
|
-
/**
|
131
|
-
* Chemin vers l'image à afficher par défaut si une image n'est pas trouvée
|
132
|
-
*/
|
133
|
-
fallbackImage: PropTypes.string,
|
134
|
-
/*
|
135
|
-
* Fonction de filtrage custom
|
136
|
-
*/
|
137
|
-
filterFunc: PropTypes.func,
|
138
|
-
/**
|
139
|
-
* Affiche l'élément 'All'
|
140
|
-
*/
|
141
|
-
hasAll: PropTypes.bool,
|
142
|
-
/**
|
143
|
-
* Override HiInput props (for search)
|
144
|
-
*/
|
145
|
-
hiSearchInputProps: PropTypes.object,
|
146
|
-
/**
|
147
|
-
* Override HiSelectableList props
|
148
|
-
*/
|
149
|
-
hiSelectableListProps: PropTypes.object,
|
150
|
-
/**
|
151
|
-
* Override HiSelectInput props
|
152
|
-
*/
|
153
|
-
hiSelectInputProps: PropTypes.object,
|
154
|
-
/**
|
155
|
-
* Nom de l'icône
|
156
|
-
*/
|
157
|
-
iconAll: PropTypes.string,
|
158
|
-
/**
|
159
|
-
* id du select
|
160
|
-
*/
|
161
|
-
id: PropTypes.string,
|
162
|
-
/**
|
163
|
-
* Ajoute un loader
|
164
|
-
*/
|
165
|
-
loading: PropTypes.bool,
|
166
|
-
/**
|
167
|
-
* Nombre max d'items affichés
|
168
|
-
*/
|
169
|
-
maxOptionsDisplayed: PropTypes.number,
|
170
|
-
/**
|
171
|
-
* Autorise la sélection de plusieurs valeurs
|
172
|
-
*/
|
173
|
-
multiple: PropTypes.bool,
|
174
|
-
/**
|
175
|
-
* Nom du champ de formulaire
|
176
|
-
*/
|
177
|
-
name: PropTypes.string.isRequired,
|
178
|
-
/**
|
179
|
-
* Fonction de callback appelée lorsqu'on perd le focus
|
180
|
-
*/
|
181
|
-
onBlur: PropTypes.func,
|
182
|
-
/**
|
183
|
-
* Fonction de callback qui renvoit la/les valeurs sélectionnées
|
184
|
-
*
|
185
|
-
* @param {object} event
|
186
|
-
* @param {string || array} value
|
187
|
-
*/
|
188
|
-
onChange: PropTypes.func.isRequired,
|
189
|
-
/**
|
190
|
-
* Fonction de callback appelée lorsqu'on ferme le select
|
191
|
-
*/
|
192
|
-
onClose: PropTypes.func,
|
193
|
-
/**
|
194
|
-
* Fonction de callback appelée lorsqu'on survole le champs
|
195
|
-
*/
|
196
|
-
onMouseEnter: PropTypes.func,
|
197
|
-
/**
|
198
|
-
* Fonction de callback appelée lorsque le curseur quitte le champs
|
199
|
-
*/
|
200
|
-
onMouseLeave: PropTypes.func,
|
201
|
-
/**
|
202
|
-
* Fonction de callback appelée lorsqu'on vide le champs
|
203
|
-
*/
|
204
|
-
onReset: PropTypes.func,
|
205
|
-
/**
|
206
|
-
* Fonction de callback appelée lorsque le scroll atteint le bas de la liste
|
207
|
-
*/
|
208
|
-
onScrollReachBottom: PropTypes.func,
|
209
|
-
/**
|
210
|
-
* Fonction de callback appelée lorsque le champs de recherche est utilisé
|
211
|
-
*/
|
212
|
-
onSearch: PropTypes.func,
|
213
|
-
/**
|
214
|
-
* Listes des options du select
|
215
|
-
*/
|
216
|
-
options: PropTypes.array.isRequired,
|
217
|
-
/**
|
218
|
-
* Placeholder affiché lorsque l'input est vide
|
219
|
-
*/
|
220
|
-
placeholder: PropTypes.string,
|
221
|
-
/**
|
222
|
-
* Affiche un input de recherche permettant de filtrer les options
|
223
|
-
*/
|
224
|
-
searchable: PropTypes.bool,
|
225
|
-
/**
|
226
|
-
* Node qui s'ajoute entre la barre de recherche et la liste de résultats
|
227
|
-
*/
|
228
|
-
startAdornment: PropTypes.object,
|
229
|
-
/**
|
230
|
-
* Si true, le contenu du select sera dans une div static plutôt que dans une popper absolute
|
231
|
-
*/
|
232
|
-
staticPosition: PropTypes.bool,
|
233
|
-
/**
|
234
|
-
* Traductions (par défaut en anglais)
|
235
|
-
*/
|
236
|
-
translations: PropTypes.object,
|
237
|
-
/**
|
238
|
-
* Type des éléments du select, définit le rendu d'un élément
|
239
|
-
*/
|
240
|
-
type: PropTypes.oneOf(['icon', 'text', 'image', 'primary-highlight']),
|
241
|
-
/**
|
242
|
-
* Value(s) du select
|
243
|
-
*/
|
244
|
-
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.array]),
|
245
|
-
};
|
246
|
-
|
247
|
-
static defaultProps = {
|
248
|
-
align: 'left',
|
249
|
-
autoFocus: false,
|
250
|
-
disabled: false,
|
251
|
-
displayAsChip: false,
|
252
|
-
error: false,
|
253
|
-
hasAll: false,
|
254
|
-
hiSelectableListProps: {},
|
255
|
-
hiSelectInputProps: {},
|
256
|
-
hiSearchInputProps: {},
|
257
|
-
multiple: false,
|
258
|
-
placeholder: '',
|
259
|
-
searchable: false,
|
260
|
-
staticPosition: false,
|
261
|
-
translations: {
|
262
|
-
all: 'All',
|
263
|
-
no_result_match: 'No result match',
|
264
|
-
search: 'Search',
|
265
|
-
n_items_selected: '%s items selected',
|
266
|
-
one_item_selected: '%s item selected',
|
267
|
-
n_children: '%s items',
|
268
|
-
one_child: '%s item',
|
269
|
-
},
|
270
|
-
type: 'text',
|
271
|
-
filterFunc: filterValue,
|
272
|
-
maxOptionsDisplayed: 12,
|
273
|
-
};
|
274
|
-
|
275
|
-
constructor(props) {
|
276
|
-
super(props);
|
277
|
-
|
278
|
-
this.state = {
|
279
|
-
alertOpen: false,
|
280
|
-
open: false,
|
281
|
-
focused: false,
|
282
|
-
searchValue: props.searchValue ? undefined : '',
|
283
|
-
suggestions: props.options,
|
284
|
-
openDown: true,
|
285
|
-
overlayWidth: 0,
|
286
|
-
};
|
287
|
-
}
|
288
|
-
|
289
|
-
componentDidMount() {
|
290
|
-
if (this.props.autoFocus) {
|
291
|
-
this.inputEl.focus();
|
292
|
-
}
|
293
|
-
|
294
|
-
if (this.overlay) {
|
295
|
-
this.setState({ overlayWidth: findDOMNode(this.overlay).clientWidth });
|
296
|
-
}
|
297
|
-
}
|
298
|
-
|
299
|
-
static getDerivedStateFromProps(nextProps, prevState) {
|
300
|
-
if (nextProps.options !== prevState.suggestions) {
|
301
|
-
return {
|
302
|
-
...prevState,
|
303
|
-
suggestions: nextProps.options,
|
304
|
-
};
|
305
|
-
}
|
306
|
-
return null;
|
307
|
-
}
|
308
|
-
|
309
|
-
/**
|
310
|
-
* Build itemList & inputValue from select props
|
311
|
-
* @param options
|
312
|
-
* @param value
|
313
|
-
* @param search
|
314
|
-
* @param loading
|
315
|
-
* @returns {{itemList: *[], inputValue: *}}
|
316
|
-
*/
|
317
|
-
buildSelectProps = (options, value = [], search = '', loading = false) => {
|
318
|
-
// build item list
|
319
|
-
const itemList = [
|
320
|
-
...(loading
|
321
|
-
? [
|
322
|
-
{
|
323
|
-
id: '_loading',
|
324
|
-
type: 'loader',
|
325
|
-
disabled: true,
|
326
|
-
centered: true,
|
327
|
-
hideCheckbox: true,
|
328
|
-
label: 'loading',
|
329
|
-
},
|
330
|
-
]
|
331
|
-
: []),
|
332
|
-
// simple one level filter on label
|
333
|
-
...(search !== ''
|
334
|
-
? [...options.filter((item) => this.props.filterFunc(item, search))]
|
335
|
-
: [
|
336
|
-
...(this.props.hasAll
|
337
|
-
? [
|
338
|
-
{
|
339
|
-
id: '_all',
|
340
|
-
label: this.props.translations.all,
|
341
|
-
...(this.props.iconAll && {
|
342
|
-
type: 'icon',
|
343
|
-
icon: this.props.iconAll,
|
344
|
-
}),
|
345
|
-
},
|
346
|
-
]
|
347
|
-
: []),
|
348
|
-
...options,
|
349
|
-
]),
|
350
|
-
];
|
351
|
-
|
352
|
-
return {
|
353
|
-
itemList,
|
354
|
-
inputValue: this.buildInputValue(options, value, loading),
|
355
|
-
};
|
356
|
-
};
|
357
|
-
|
358
|
-
findRecursively = (arr, id) => {
|
359
|
-
for (let i = 0; i < arr.length; i++) {
|
360
|
-
if (arr[i].id === id) {
|
361
|
-
return arr[i];
|
362
|
-
} else if (arr[i].children && arr[i].children.length) {
|
363
|
-
let found = this.findRecursively(arr[i].children, id);
|
364
|
-
if (found) return found;
|
365
|
-
}
|
366
|
-
}
|
367
|
-
};
|
368
|
-
|
369
|
-
buildInputValue = (options, value = [], loading = false) => {
|
370
|
-
const { classes, hasAll, translations, type } = this.props;
|
371
|
-
|
372
|
-
// build input value
|
373
|
-
let inputValue;
|
374
|
-
if (loading && value.length === 1) {
|
375
|
-
inputValue = translations.one_item_selected;
|
376
|
-
} else if (hasAll && options.length === value.length) {
|
377
|
-
inputValue = translations.all;
|
378
|
-
value.unshift('_all');
|
379
|
-
} else if (value.length > 1) {
|
380
|
-
inputValue = translations.n_items_selected.replace('%s', value.length);
|
381
|
-
} else if (value.length === 1) {
|
382
|
-
const item = this.findRecursively(options, value[0]);
|
383
|
-
if (item === undefined) {
|
384
|
-
inputValue = translations.one_item_selected;
|
385
|
-
} else if (type === 'icon' || item.type === 'icon') {
|
386
|
-
const iconProps = {
|
387
|
-
className: classes.labelIcon,
|
388
|
-
color: item.color,
|
389
|
-
};
|
390
|
-
let icon;
|
391
|
-
if (typeof item.icon === 'string') {
|
392
|
-
icon = <HiIcon icon={item.icon} {...iconProps} />;
|
393
|
-
} else if (typeof item.icon === 'object') {
|
394
|
-
icon = { ...item.icon };
|
395
|
-
icon.props = { ...icon.props, ...iconProps };
|
396
|
-
}
|
397
|
-
inputValue = (
|
398
|
-
<span className={classes.selectIconLabel}>
|
399
|
-
{icon}
|
400
|
-
{item.label}
|
401
|
-
</span>
|
402
|
-
);
|
403
|
-
} else if (type === 'image' || item.type === 'image') {
|
404
|
-
inputValue = (
|
405
|
-
<span className={classes.selectIconLabel}>
|
406
|
-
{item.img && (
|
407
|
-
<img
|
408
|
-
className={classes.labelImg}
|
409
|
-
src={item.img}
|
410
|
-
alt={item.label}
|
411
|
-
onError={(e) => {
|
412
|
-
if (item.fallbackImage) {
|
413
|
-
e.target.src = `${item.fallbackImage}`;
|
414
|
-
} else {
|
415
|
-
e.target.style.display = 'none';
|
416
|
-
}
|
417
|
-
}}
|
418
|
-
/>
|
419
|
-
)}
|
420
|
-
{item.label}
|
421
|
-
</span>
|
422
|
-
);
|
423
|
-
} else {
|
424
|
-
inputValue = item.label;
|
425
|
-
}
|
426
|
-
}
|
427
|
-
|
428
|
-
return inputValue;
|
429
|
-
};
|
430
|
-
|
431
|
-
focusOnFirstItem = () => {
|
432
|
-
if (this.overlay && this.overlay.querySelector('li:not([tabindex^="-"])')) {
|
433
|
-
setTimeout(() => {
|
434
|
-
const item = this.overlay.querySelector('li:not([tabindex^="-"])');
|
435
|
-
item.focus();
|
436
|
-
}, 1);
|
437
|
-
}
|
438
|
-
};
|
439
|
-
|
440
|
-
getInputElement = (el) => {
|
441
|
-
this.searchField = el;
|
442
|
-
if (this.props.inputRef) {
|
443
|
-
this.props.inputRef(this.searchField);
|
444
|
-
}
|
445
|
-
};
|
446
|
-
|
447
|
-
handleBlur = (event) => {
|
448
|
-
this.handleSearchReset();
|
449
|
-
this.setState({ focused: false });
|
450
|
-
if (this.props.onBlur && !this.inputEl.contains(event.relatedTarget) && !this.state.open) {
|
451
|
-
this.props.onBlur(event);
|
452
|
-
}
|
453
|
-
};
|
454
|
-
|
455
|
-
handleClick = (event) => {
|
456
|
-
if (this.state.open) {
|
457
|
-
this.handleClose();
|
458
|
-
} else if (this.props.alert && !this.state.alertOpen) {
|
459
|
-
this.setState({
|
460
|
-
open: false,
|
461
|
-
alertOpen: true,
|
462
|
-
});
|
463
|
-
} else {
|
464
|
-
this.setState({
|
465
|
-
open: true,
|
466
|
-
alertOpen: false,
|
467
|
-
});
|
468
|
-
this.handleSuggestions(this.props.options);
|
469
|
-
if (this.props.onClick) this.props.onClick();
|
470
|
-
|
471
|
-
// Gestion du focus
|
472
|
-
setTimeout(() => {
|
473
|
-
if (!this.props.searchable) {
|
474
|
-
// Sinon focus sur l'élément sélectionné
|
475
|
-
this.focusOnSelectedItem(this.props.value);
|
476
|
-
}
|
477
|
-
}, 1);
|
478
|
-
}
|
479
|
-
};
|
480
|
-
|
481
|
-
handleSubmitAlert = () => {
|
482
|
-
this.handleClick();
|
483
|
-
};
|
484
|
-
|
485
|
-
handleCancelAlert = () => {
|
486
|
-
this.handleClose();
|
487
|
-
};
|
488
|
-
|
489
|
-
handleExitedAlert = () => {
|
490
|
-
if (this.searchField) {
|
491
|
-
this.searchField.focus();
|
492
|
-
}
|
493
|
-
};
|
494
|
-
|
495
|
-
handleCloseAlert = () => {
|
496
|
-
this.handleClose();
|
497
|
-
};
|
498
|
-
|
499
|
-
focusOnSelectedItem = (selectedValue) => {
|
500
|
-
if (this.overlay && this.overlay.querySelector('li:not([tabindex^="-"])')) {
|
501
|
-
setTimeout(() => {
|
502
|
-
if (this.overlay) {
|
503
|
-
// On initialise au premier élément pour être sûr de ne pas se retrouver avec un focus of undefined
|
504
|
-
let item = this.overlay.querySelector('li:not([tabindex^="-"])');
|
505
|
-
if (selectedValue && typeof selectedValue === 'string') {
|
506
|
-
item = this.overlay.getElementsByTagName('li').namedItem(selectedValue);
|
507
|
-
} else if (selectedValue && typeof selectedValue === 'number') {
|
508
|
-
item =
|
509
|
-
this.overlay.querySelector('li:not([tabindex^="-"])')[
|
510
|
-
selectedValue - 1
|
511
|
-
];
|
512
|
-
}
|
513
|
-
if (item) {
|
514
|
-
item.focus();
|
515
|
-
}
|
516
|
-
}
|
517
|
-
}, 1);
|
518
|
-
}
|
519
|
-
};
|
520
|
-
|
521
|
-
handleClickAway = (event) => {
|
522
|
-
// Au clic sur le bouton, on laisse le handleClick fermer le select
|
523
|
-
if (!this.inputEl.contains(event.target)) {
|
524
|
-
this.handleClose(event);
|
525
|
-
}
|
526
|
-
};
|
527
|
-
|
528
|
-
handleClose = () => {
|
529
|
-
this.handleSearchReset();
|
530
|
-
this.setState({
|
531
|
-
open: false,
|
532
|
-
alertOpen: false,
|
533
|
-
});
|
534
|
-
if (this.props.onClose) {
|
535
|
-
this.props.onClose();
|
536
|
-
}
|
537
|
-
if (this.inputEl) {
|
538
|
-
setTimeout(() => {
|
539
|
-
this.inputEl.focus();
|
540
|
-
}, 100);
|
541
|
-
}
|
542
|
-
};
|
543
|
-
|
544
|
-
handleFocus = () => {
|
545
|
-
this.setState({ focused: true });
|
546
|
-
};
|
547
|
-
|
548
|
-
// Stop the propagation of the event before it reach the childrens
|
549
|
-
handleKeyDownCapture = (event) => {
|
550
|
-
const key = keycode(event);
|
551
|
-
if (key === 'enter') {
|
552
|
-
if (this.state.open) {
|
553
|
-
if (this.props.multiple) {
|
554
|
-
event.stopPropagation();
|
555
|
-
this.handleClose();
|
556
|
-
}
|
557
|
-
}
|
558
|
-
}
|
559
|
-
};
|
560
|
-
|
561
|
-
// Key down on input
|
562
|
-
handleKeyDown = (event) => {
|
563
|
-
const key = keycode(event);
|
564
|
-
if (!this.state.alertOpen) {
|
565
|
-
if (event.target === this.inputEl && this.state.open && key === 'down') {
|
566
|
-
// Focus on list 1st item
|
567
|
-
event.stopPropagation();
|
568
|
-
event.preventDefault();
|
569
|
-
const firstLi = document.querySelector(`#${this.props.id} + div ul > li`);
|
570
|
-
if (!!firstLi) {
|
571
|
-
firstLi.focus();
|
572
|
-
}
|
573
|
-
} else if (key === 'esc' && this.state.open) {
|
574
|
-
event.stopPropagation();
|
575
|
-
event.preventDefault();
|
576
|
-
this.handleClose();
|
577
|
-
} else if (key === 'enter') {
|
578
|
-
if (this.state.open) {
|
579
|
-
if (this.props.multiple) {
|
580
|
-
this.handleClose();
|
581
|
-
}
|
582
|
-
}
|
583
|
-
} else if (key === 'space' && event.target !== this.searchField) {
|
584
|
-
event.preventDefault();
|
585
|
-
} else if (key === 'tab' && (this.state.open || this.state.alertOpen)) {
|
586
|
-
event.stopPropagation();
|
587
|
-
this.handleClose();
|
588
|
-
} else if (key === 'down' && event.target.id.includes('_subheader')) {
|
589
|
-
// Focus on parent, next item is child
|
590
|
-
if (document.querySelector(`#group-${event.target.id} li:nth-child(1)`)) {
|
591
|
-
document.querySelector(`#group-${event.target.id} li:nth-child(1)`).focus();
|
592
|
-
}
|
593
|
-
} else if (key === 'down' && !event.target.nextSibling) {
|
594
|
-
// Focus on parent, next item is child
|
595
|
-
if (document.getElementById(event.target.dataset.group)?.nextSibling?.nextSibling) {
|
596
|
-
document
|
597
|
-
.getElementById(event.target.dataset.group)
|
598
|
-
.nextSibling.nextSibling.focus();
|
599
|
-
}
|
600
|
-
} else if (key === 'up') {
|
601
|
-
if (event.target.previousSibling === null && !!event.target.dataset.group) {
|
602
|
-
// Previous item is parent item
|
603
|
-
document.getElementById(event.target.dataset.group).focus();
|
604
|
-
} else if (!!event.target.previousSibling && !event.target.dataset.group) {
|
605
|
-
// On parent, go to previous (last) child
|
606
|
-
if (event.target.previousSibling.querySelector('li:last-child')) {
|
607
|
-
event.target.previousSibling.querySelector('li:last-child').focus();
|
608
|
-
}
|
609
|
-
}
|
610
|
-
}
|
611
|
-
}
|
612
|
-
};
|
613
|
-
|
614
|
-
// Key down on search input
|
615
|
-
handleKeyDownSearch = (event) => {
|
616
|
-
const key = keycode(event);
|
617
|
-
if (this.overlay && (key === 'down' || key === 'up')) {
|
618
|
-
this.focusOnFirstItem();
|
619
|
-
} else if (this.overlay && (key === 'esc' || key === 'enter')) {
|
620
|
-
event.preventDefault();
|
621
|
-
this.handleClose();
|
622
|
-
} else if (key === 'tab') {
|
623
|
-
this.setState({ open: false });
|
624
|
-
}
|
625
|
-
};
|
626
|
-
|
627
|
-
/**
|
628
|
-
* Call onScrollReachBottom
|
629
|
-
* @param e
|
630
|
-
*/
|
631
|
-
handleScroll = (e) => {
|
632
|
-
if (e.target.scrollHeight - e.target.clientHeight - e.target.scrollTop < 15) {
|
633
|
-
this.props.onScrollReachBottom();
|
634
|
-
}
|
635
|
-
};
|
636
|
-
|
637
|
-
/**
|
638
|
-
* Call onChange with the updated value
|
639
|
-
*
|
640
|
-
* - handle single value
|
641
|
-
* - handle multiple value
|
642
|
-
* - handle '_all' id
|
643
|
-
*
|
644
|
-
* @param event
|
645
|
-
* @param item
|
646
|
-
*/
|
647
|
-
handleSelect = (event, item) => {
|
648
|
-
const { hasAll, multiple, onChange, options, value } = this.props;
|
649
|
-
|
650
|
-
if (!multiple) {
|
651
|
-
// This is a fix to prevent select open after select => TODO improve ?
|
652
|
-
setTimeout(() => {
|
653
|
-
// single value
|
654
|
-
this.handleClose();
|
655
|
-
}, 1);
|
656
|
-
onChange(event, item.id, item);
|
657
|
-
} else if (hasAll && item.id === '_all') {
|
658
|
-
if (value.length === options.length) {
|
659
|
-
// unselect _all options
|
660
|
-
onChange(event, [], item);
|
661
|
-
} else {
|
662
|
-
// select _all options
|
663
|
-
onChange(
|
664
|
-
event,
|
665
|
-
options.map((option) => option.id),
|
666
|
-
item,
|
667
|
-
);
|
668
|
-
}
|
669
|
-
} else if (isMobile && multiple) {
|
670
|
-
// Array of selected values
|
671
|
-
onChange(
|
672
|
-
event,
|
673
|
-
item.map((option) => option.id),
|
674
|
-
item,
|
675
|
-
);
|
676
|
-
} else if (value.includes(item.id)) {
|
677
|
-
// unselect item
|
678
|
-
onChange(
|
679
|
-
event,
|
680
|
-
value.filter((id) => id !== item.id),
|
681
|
-
item,
|
682
|
-
);
|
683
|
-
} else {
|
684
|
-
onChange(event, [...value, item.id], item);
|
685
|
-
}
|
686
|
-
};
|
687
|
-
|
688
|
-
/**
|
689
|
-
* Update suggestions list
|
690
|
-
* - add '_no_result' item if suggestion list is empty
|
691
|
-
* - add '_all' item if suggestion list is complete
|
692
|
-
* @param suggestions
|
693
|
-
*/
|
694
|
-
handleSuggestions = (suggestions) => {
|
695
|
-
const { hasAll, iconAll, translations } = this.props;
|
696
|
-
|
697
|
-
if (suggestions.length === 0) {
|
698
|
-
// Add '_no_result' suggestion
|
699
|
-
this.setState((prevState) => ({
|
700
|
-
...prevState,
|
701
|
-
suggestions: [
|
702
|
-
{
|
703
|
-
id: '_no_result',
|
704
|
-
type: 'text',
|
705
|
-
disabled: true,
|
706
|
-
centered: true,
|
707
|
-
hideCheckbox: true,
|
708
|
-
label: translations.no_result_match,
|
709
|
-
},
|
710
|
-
],
|
711
|
-
}));
|
712
|
-
} else {
|
713
|
-
this.setState({
|
714
|
-
suggestions: [
|
715
|
-
// Add '_all' suggestion
|
716
|
-
...(hasAll
|
717
|
-
? [
|
718
|
-
{
|
719
|
-
id: '_all',
|
720
|
-
label: translations.all,
|
721
|
-
...(iconAll && {
|
722
|
-
type: 'icon',
|
723
|
-
icon: iconAll,
|
724
|
-
}),
|
725
|
-
},
|
726
|
-
]
|
727
|
-
: []),
|
728
|
-
...suggestions,
|
729
|
-
],
|
730
|
-
});
|
731
|
-
}
|
732
|
-
};
|
733
|
-
|
734
|
-
handleSearch = (e, inputValue) => {
|
735
|
-
const searchValue = inputValue && e.target.value ? inputValue : e.target.value;
|
736
|
-
if (this.props.onSearch) {
|
737
|
-
this.props.onSearch(e, searchValue);
|
738
|
-
} else {
|
739
|
-
this.setState({
|
740
|
-
searchValue,
|
741
|
-
});
|
742
|
-
}
|
743
|
-
};
|
744
|
-
|
745
|
-
handleSearchReset = () => {
|
746
|
-
this.handleSearch({ target: { value: '' } }, '');
|
747
|
-
};
|
748
|
-
|
749
|
-
getLengthItemList = (itemList) => {
|
750
|
-
let itemListLength = 0;
|
751
|
-
itemList.forEach((parent) => {
|
752
|
-
if (parent.displayed !== false) {
|
753
|
-
itemListLength += 1;
|
754
|
-
if (parent.children) {
|
755
|
-
itemListLength += this.getLengthItemList(parent.children);
|
756
|
-
}
|
757
|
-
}
|
758
|
-
});
|
759
|
-
return itemListLength;
|
760
|
-
};
|
761
|
-
|
762
|
-
renderScrollbarTrackHorizontal = (props) => {
|
763
|
-
const { style, ...otherProps } = props;
|
764
|
-
|
765
|
-
const inlineStyle = {
|
766
|
-
...style,
|
767
|
-
zIndex: 10,
|
768
|
-
right: 2,
|
769
|
-
bottom: 2,
|
770
|
-
left: 2,
|
771
|
-
borderRadius: 3,
|
772
|
-
};
|
773
|
-
|
774
|
-
return <div {...props} style={inlineStyle} />;
|
775
|
-
};
|
776
|
-
|
777
|
-
renderScrollbarTrackVertical = (props) => {
|
778
|
-
const { style, ...otherProps } = props;
|
779
|
-
|
780
|
-
const inlineStyle = {
|
781
|
-
...style,
|
782
|
-
zIndex: 10,
|
783
|
-
right: 2,
|
784
|
-
bottom: 2,
|
785
|
-
top: 2,
|
786
|
-
borderRadius: 3,
|
787
|
-
};
|
788
|
-
|
789
|
-
return <div {...props} style={inlineStyle} />;
|
790
|
-
};
|
791
|
-
|
792
|
-
render() {
|
793
|
-
const {
|
794
|
-
alert,
|
795
|
-
classes,
|
796
|
-
disabled,
|
797
|
-
error,
|
798
|
-
loading,
|
799
|
-
options,
|
800
|
-
searchable,
|
801
|
-
displayAsChip,
|
802
|
-
type,
|
803
|
-
value,
|
804
|
-
multiple,
|
805
|
-
translations,
|
806
|
-
hiSearchInputProps,
|
807
|
-
hiSelectableListProps,
|
808
|
-
hiSelectInputProps,
|
809
|
-
id,
|
810
|
-
onScrollReachBottom,
|
811
|
-
onSubmit,
|
812
|
-
placeholder,
|
813
|
-
searchValue = this.state.searchValue,
|
814
|
-
startAdornment,
|
815
|
-
staticPosition,
|
816
|
-
maxOptionsDisplayed,
|
817
|
-
buildSelectProps = this.buildSelectProps, // use parent builder if defined
|
818
|
-
} = this.props;
|
819
|
-
|
820
|
-
const { alertOpen, open, focused } = this.state;
|
821
|
-
|
822
|
-
if (multiple) {
|
823
|
-
if (!Array.isArray(value)) {
|
824
|
-
throw new Error(
|
825
|
-
'HiPay Material-UI: the `value` property must be an array ' +
|
826
|
-
'when using the `HiSelect` component with `multiple`.',
|
827
|
-
);
|
828
|
-
}
|
829
|
-
}
|
830
|
-
|
831
|
-
let selectedItemIdList = [];
|
832
|
-
if (value) {
|
833
|
-
selectedItemIdList = multiple ? [...value] : [value];
|
834
|
-
}
|
835
|
-
|
836
|
-
const {
|
837
|
-
itemList,
|
838
|
-
inputValue = this.buildInputValue(options, selectedItemIdList, loading),
|
839
|
-
} = buildSelectProps(options, selectedItemIdList, searchValue, loading);
|
840
|
-
|
841
|
-
let popperStyle = {
|
842
|
-
position: staticPosition ? 'relative' : 'fix',
|
843
|
-
top: 0,
|
844
|
-
left: 0,
|
845
|
-
};
|
846
|
-
if (this.props.containerWidth > 0) {
|
847
|
-
popperStyle = { width: this.props.containerWidth };
|
848
|
-
if (!staticPosition) {
|
849
|
-
popperStyle.position = 'absolute';
|
850
|
-
}
|
851
|
-
}
|
852
|
-
|
853
|
-
const popperClass = classNames(classes.popper, {
|
854
|
-
[classes.popperWidth]: !this.props.containerWidth,
|
855
|
-
[classes.popperRightAlign]: this.props.containerWidth && this.props.align === 'right',
|
856
|
-
});
|
857
|
-
|
858
|
-
const searchInput = (position) => {
|
859
|
-
if (searchable) {
|
860
|
-
return (
|
861
|
-
<HiInput
|
862
|
-
value={searchValue}
|
863
|
-
autoFocus
|
864
|
-
inputRef={this.getInputElement}
|
865
|
-
onKeyDown={this.handleKeyDownSearch}
|
866
|
-
onChange={this.handleSearch}
|
867
|
-
onReset={this.handleSearchReset}
|
868
|
-
placeholder={translations.search}
|
869
|
-
startAdornment={'search'}
|
870
|
-
tabIndex={0}
|
871
|
-
className={classNames({ [classes.separator]: position === 'top' })}
|
872
|
-
{...hiSearchInputProps}
|
873
|
-
/>
|
874
|
-
);
|
875
|
-
}
|
876
|
-
return null;
|
877
|
-
};
|
878
|
-
|
879
|
-
// Replace popper onSearch when popper displayed on top of selectButton
|
880
|
-
if (this.placement && this.placement.indexOf('top') >= 0 && !!searchable) {
|
881
|
-
// In case we have a nested list
|
882
|
-
const itemListLength = this.getLengthItemList(itemList);
|
883
|
-
// +1 for search input
|
884
|
-
const nbItems =
|
885
|
-
itemListLength <= maxOptionsDisplayed - 2
|
886
|
-
? itemListLength + 1
|
887
|
-
: maxOptionsDisplayed - 1;
|
888
|
-
popperStyle.transform = `translate3d(-1px, -${nbItems * 40 + 2}px, 0px)`;
|
889
|
-
} else if (this.placement && this.placement.indexOf('top') < 0 && !!searchable) {
|
890
|
-
popperStyle.transform = 'translate3d(-1px, 40px, 0px)';
|
891
|
-
}
|
892
|
-
|
893
|
-
const content = ({ placement }) => {
|
894
|
-
if (placement !== this.placement) {
|
895
|
-
this.placement = placement;
|
896
|
-
}
|
897
|
-
const nbItemsDisplayed = !!searchable ? maxOptionsDisplayed - 1 : maxOptionsDisplayed;
|
898
|
-
const autoHeightMax = nbItemsDisplayed * 40 - 10;
|
899
|
-
return (
|
900
|
-
<ClickAwayListener onClickAway={this.handleClickAway}>
|
901
|
-
<Grow in={open} id="menu-list" style={{ transformOrigin: '0 0 0' }}>
|
902
|
-
<Paper
|
903
|
-
style={
|
904
|
-
maxOptionsDisplayed < 12
|
905
|
-
? { maxHeight: 40 * maxOptionsDisplayed }
|
906
|
-
: {}
|
907
|
-
}
|
908
|
-
className={classes.paper}
|
909
|
-
>
|
910
|
-
{((this.placement && this.placement.indexOf('bottom') >= 0) ||
|
911
|
-
staticPosition) &&
|
912
|
-
searchInput('bottom')}
|
913
|
-
{startAdornment}
|
914
|
-
<Scrollbars
|
915
|
-
renderTrackHorizontal={this.renderScrollbarTrackHorizontal}
|
916
|
-
renderTrackVertical={this.renderScrollbarTrackVertical}
|
917
|
-
ref={(contentEl) => {
|
918
|
-
this.optionsContent = contentEl;
|
919
|
-
}}
|
920
|
-
autoHeight
|
921
|
-
autoHeightMax={autoHeightMax}
|
922
|
-
{...(onScrollReachBottom && {
|
923
|
-
onScroll: this.handleScroll,
|
924
|
-
})}
|
925
|
-
>
|
926
|
-
<HiSelectableList
|
927
|
-
type={type}
|
928
|
-
itemList={itemList}
|
929
|
-
onSelect={this.handleSelect}
|
930
|
-
selectedItemIdList={selectedItemIdList}
|
931
|
-
fallbackImage={this.props.fallbackImage}
|
932
|
-
overlay={this.overlay}
|
933
|
-
value={value}
|
934
|
-
{...hiSelectableListProps}
|
935
|
-
/>
|
936
|
-
</Scrollbars>
|
937
|
-
{this.placement &&
|
938
|
-
this.placement.indexOf('top') >= 0 &&
|
939
|
-
!staticPosition &&
|
940
|
-
searchInput('top')}
|
941
|
-
</Paper>
|
942
|
-
</Grow>
|
943
|
-
</ClickAwayListener>
|
944
|
-
);
|
945
|
-
};
|
946
|
-
|
947
|
-
return !isMobile ? (
|
948
|
-
<div
|
949
|
-
className={classes.root}
|
950
|
-
ref={(el) => {
|
951
|
-
this.overlay = el;
|
952
|
-
}}
|
953
|
-
onKeyDown={this.handleKeyDown}
|
954
|
-
onKeyDownCapture={this.handleKeyDownCapture}
|
955
|
-
>
|
956
|
-
{alert && (
|
957
|
-
<HiAlertModal
|
958
|
-
open={alertOpen}
|
959
|
-
title={alert.title}
|
960
|
-
content={alert.content}
|
961
|
-
onSubmitClick={this.handleSubmitAlert}
|
962
|
-
onCancelClick={this.handleCancelAlert}
|
963
|
-
onClose={this.handleCloseAlert}
|
964
|
-
onExited={this.handleExitedAlert}
|
965
|
-
labelSubmitButton={alert.submitButton}
|
966
|
-
labelCancelButton={alert.cancelButton}
|
967
|
-
/>
|
968
|
-
)}
|
969
|
-
<HiSelectInput
|
970
|
-
id={id}
|
971
|
-
value={inputValue}
|
972
|
-
open={open}
|
973
|
-
focused={focused}
|
974
|
-
type={type}
|
975
|
-
disabled={disabled}
|
976
|
-
noButton={displayAsChip}
|
977
|
-
error={error}
|
978
|
-
onClick={this.handleClick}
|
979
|
-
onFocus={this.handleFocus}
|
980
|
-
onBlur={this.handleBlur}
|
981
|
-
onSubmit={onSubmit}
|
982
|
-
onMouseEnter={this.props.onMouseEnter}
|
983
|
-
onMouseLeave={this.props.onMouseLeave}
|
984
|
-
onReset={this.props.onReset}
|
985
|
-
placeholder={placeholder}
|
986
|
-
{...hiSelectInputProps}
|
987
|
-
refElement={(el) => {
|
988
|
-
this.inputEl = el;
|
989
|
-
}}
|
990
|
-
/>
|
991
|
-
{open && staticPosition ? (
|
992
|
-
<div style={popperStyle} className={popperClass}>
|
993
|
-
{content({})}
|
994
|
-
</div>
|
995
|
-
) : (
|
996
|
-
<Popper
|
997
|
-
anchorEl={this.inputEl}
|
998
|
-
placement="bottom-start"
|
999
|
-
open={open}
|
1000
|
-
className={popperClass}
|
1001
|
-
disablePortal
|
1002
|
-
style={popperStyle}
|
1003
|
-
>
|
1004
|
-
{content}
|
1005
|
-
</Popper>
|
1006
|
-
)}
|
1007
|
-
</div>
|
1008
|
-
) : (
|
1009
|
-
<div
|
1010
|
-
ref={(el) => {
|
1011
|
-
this.overlay = el;
|
1012
|
-
}}
|
1013
|
-
>
|
1014
|
-
<HiSelectInput
|
1015
|
-
id={id}
|
1016
|
-
value={inputValue}
|
1017
|
-
open={open}
|
1018
|
-
focused={focused}
|
1019
|
-
type={type}
|
1020
|
-
disabled={disabled}
|
1021
|
-
noButton={displayAsChip}
|
1022
|
-
error={error}
|
1023
|
-
onFocus={this.handleFocus}
|
1024
|
-
onBlur={this.handleBlur}
|
1025
|
-
onMouseEnter={this.props.onMouseEnter}
|
1026
|
-
onMouseLeave={this.props.onMouseLeave}
|
1027
|
-
onReset={this.props.onReset}
|
1028
|
-
placeholder={placeholder}
|
1029
|
-
{...hiSelectInputProps}
|
1030
|
-
refElement={(el) => {
|
1031
|
-
this.inputEl = el;
|
1032
|
-
}}
|
1033
|
-
/>
|
1034
|
-
<HiSelectMobile
|
1035
|
-
onChange={this.handleSelect}
|
1036
|
-
multiple={multiple}
|
1037
|
-
id={id}
|
1038
|
-
itemList={itemList}
|
1039
|
-
value={value}
|
1040
|
-
width={this.state.overlayWidth}
|
1041
|
-
/>
|
1042
|
-
</div>
|
1043
|
-
);
|
1044
|
-
}
|
1045
|
-
}
|
1046
|
-
|
1047
|
-
export default withStyles(styles, { hiComponent: true, name: 'HmuiHiSelect' })(HiSelect);
|