@hipay/hipay-material-ui 3.11.1 → 3.12.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.babelrc +18 -0
- package/.eslintrc.js +103 -0
- package/.gitlab-ci.yml +74 -0
- package/CHANGELOG.md +278 -0
- package/babel.config.js +109 -0
- package/bin/deploy/functions.sh +88 -0
- package/bin/deploy/manual_deploy.sh +83 -0
- package/bin/deploy/remove_oldest_versions.sh +35 -0
- package/bin/link.sh +44 -0
- package/package.json +183 -79
- package/prettier.config.js +9 -0
- package/public/assets/countries/es.svg +581 -0
- package/public/assets/countries/et.svg +14 -0
- package/public/assets/countries/eu.svg +28 -0
- package/public/assets/countries/fi.svg +5 -0
- package/public/assets/countries/fj.svg +124 -0
- package/public/assets/countries/fk.svg +90 -0
- package/public/assets/countries/fm.svg +11 -0
- package/public/assets/countries/fo.svg +12 -0
- package/public/assets/countries/fr.svg +7 -0
- 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 +1 -0
- package/public/guideline/img/calendar-check.svg +1 -0
- package/public/guideline/img/delia_giandeini.jpg +0 -0
- package/public/guideline/img/share-variant.svg +1 -0
- package/public/guideline/img/sigmund-4MoIpDcSlr4-unsplash.jpg +0 -0
- package/public/guideline/img/sigmund.jpg +0 -0
- package/public/guideline/img/tag.svg +1 -0
- package/public/guideline/style.css +112 -0
- package/public/index.html +41 -0
- package/public/manifest.json +15 -0
- package/scripts/copy-files.js +140 -0
- package/scripts/export-coverage.sh +6 -0
- package/scripts/rollup.config.js +60 -0
- package/sonar-project.properties +24 -0
- package/src/App.css +33 -0
- package/src/App.js +26 -0
- package/src/App.test.js +9 -0
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Am/303/251liorez_lisibilit/303/251/Enrichissez_structure.md +3 -0
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Am/303/251liorez_lisibilit/303/251//303/211vitez_/303/251criture_saccad/303/251e.md +5 -0
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Captures_/303/251crans.md +1 -0
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Clarifiez_actions/Mentionnez_/303/251tapes.md +1 -0
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Clarifiez_actions/Regroupez_r/303/251sultats.md +5 -0
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Clarifiez_actions/Utilisez_verbes.md +9 -0
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Expliquez_t/303/242ches/Introduisez_le_sujet.md +1 -0
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Expliquez_t/303/242ches/Num/303/251rotez_les_/303/251tapes.md +6 -0
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Expliquez_t/303/242ches/T/303/242ches_inclusives.md +37 -0
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Expliquez_t/303/242ches//303/211crire_liste.md +20 -0
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Identifier_les_diff/303/251rents_utilisateurs.md +8 -0
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Structurez_/303/251l/303/251ments.md +5 -0
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Utilisez_des_titres/Astuces_pour_concevoir_vos_titres.md +23 -0
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Utilisez_des_titres/Les_hi/303/251rarchie_des_titres.md +10 -0
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Utilisez_des_titres/Les_titres_principaux.md +1 -0
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Utilisez_des_titres/Les_titres_secondaires.md +1 -0
- package/src/Guideline/Accessibilit/303/251/AIDE_ET_DOCUMENTATION/Voix_active.md +10 -0
- package/src/Guideline/Accessibilit/303/251/NAVIGATION_CLAVIER.md +11 -0
- package/src/Guideline/Accessibilit/303/251/NIVEAU_DE_LECTURE/Blagues_r/303/251f/303/251rences.md +8 -0
- package/src/Guideline/Accessibilit/303/251/NIVEAU_DE_LECTURE/Phrases_courtes.md +6 -0
- package/src/Guideline/Accessibilit/303/251/NIVEAU_DE_LECTURE/Utilisez_mots_simples.md +12 -0
- package/src/Guideline/Accessibilit/303/251/NIVEAU_DE_LECTURE//303/211xag/303/251ration.md +5 -0
- package/src/Guideline/Accessibilit/303/251/TEXTE_ALTERNATIF/Prononciation_traduction.md +5 -0
- package/src/Guideline/Accessibilit/303/251/TEXTE_ALTERNATIF/TEXTE_ALTERNATIF.md +5 -0
- package/src/Guideline/Accessibilit/303/251/TEXTE_ALTERNATIF/Texte_alternatif_image.md +5 -0
- package/src/Guideline/Accessibilit/303/251/TEXTE_ALTERNATIF//303/211crire_texte_alternatif.md +13 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Champs/Attribut.md +7 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Champs/Label.md +7 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Champs/Masque_r/303/250gles.md +3 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Champs/Optionnel.md +3 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Champs/Pr/303/251_remplissage.md +3 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Champs/Qualit/303/251_quantit/303/251.md +6 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Champs/Taille.md +3 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Formulaire/Colonne.md +7 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Formulaire/Ordre_boutons.md +3 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Formulaire/Regroupez_informations.md +3 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Charge_cognitive/Utilisateur/Montrez_progression.md +3 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Emp/303/252chez_erreurs/Champs/Bulle_aide.md +3 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Emp/303/252chez_erreurs/Champs/Contenu_listes.md +3 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Emp/303/252chez_erreurs/Champs/Validation.md +7 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Emp/303/252chez_erreurs/Formulaire/CTA_explicites.md +3 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Emp/303/252chez_erreurs/Formulaire/Diff/303/251renciez_boutons.md +3 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Emp/303/252chez_erreurs/Formulaire/D/303/251sactivez_CTA.md +3 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Emp/303/252chez_erreurs/Utilisateur/Auto_correction.md +6 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/Emp/303/252chez_erreurs/Utilisateur/Verrouillage_majuscules.md +2 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES/LES_BONNES_PRATIQUES.md +10 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES//303/211prouvez_empathie/Consid/303/251rez_contexte.md +1 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES//303/211prouvez_empathie/Donn/303/251es_sensibles.md +3 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES//303/211prouvez_empathie/Formulaire_accessible.md +6 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES//303/211prouvez_empathie/Langage_clair_simple.md +1 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES//303/211prouvez_empathie/Soyez_inclusif.md +7 -0
- package/src/Guideline/Formulaires/LES_BONNES_PRATIQUES//303/211prouvez_empathie/Valorisez_temps.md +1 -0
- package/src/Guideline/Formulaires/LE_FORMULAIRE_DE_CR/303/211ATION.md +3 -0
- package/src/Guideline/Formulaires/LE_FORMULAIRE_DE_RECHERCHE.md +3 -0
- package/src/Guideline/Grammaire_et_m/303/251canismes/GLOSSAIRE/GLOSSAIRE.md +1 -0
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Langage_courant.md +11 -0
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Listes/Num/303/251rot/303/251es.md +5 -0
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Listes//303/200_puces.md +5 -0
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Majuscules.md +10 -0
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Menus_d/303/251roulants/Actions.md +5 -0
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Menus_d/303/251roulants/Noms.md +5 -0
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Mettre_gras.md +15 -0
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Ponctuation/Deux_points.md +5 -0
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Ponctuation/Esperluette.md +5 -0
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Ponctuation/Guillemets.md +28 -0
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Ponctuation/Point.md +9 -0
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Ponctuation/Point_exclamation.md +5 -0
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Ponctuation/Point_int/303/251rogation.md +14 -0
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Ponctuation/Points_suspension.md +8 -0
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Ponctuation/Virgule.md +21 -0
- package/src/Guideline/Grammaire_et_m/303/251canismes/LES_BASES/Voix_active.md +1 -0
- package/src/Guideline/Guideline.md +848 -0
- package/src/Guideline/La_Console_HiPay/INTRODUCTION.md +1 -0
- package/src/Guideline/La_Console_HiPay/L_AFFORDANCE.md +5 -0
- package/src/Guideline/La_Console_HiPay/L_ATOMIC_DESIGN.md +11 -0
- package/src/Guideline/La_Console_HiPay/PERSONAS.md +3 -0
- package/src/Guideline/La_Console_HiPay/PERSONNALITE.md +13 -0
- package/src/Guideline/Relation_Console_utilisateurs/VOIX_ET_TON/Degr/303/251_gravit/303/251.md +17 -0
- package/src/Guideline/Relation_Console_utilisateurs/VOIX_ET_TON/Messages_alerte.md +1 -0
- package/src/Guideline/Relation_Console_utilisateurs/VOIX_ET_TON/Messages_erreur.md +6 -0
- package/src/Guideline/Visuel/COULEUR_ET_CONTRASTE/Bleu_HiPay.md +5 -0
- package/src/Guideline/Visuel/COULEUR_ET_CONTRASTE/Contraste.md +2 -0
- package/src/Guideline/Visuel/COULEUR_ET_CONTRASTE/Couleurs_communes.md +1 -0
- package/src/Guideline/Visuel/COULEUR_ET_CONTRASTE/Couleurs_utilitaires.md +1 -0
- package/src/Guideline/Visuel/COULEUR_ET_CONTRASTE/Lignes_tableaux_r/303/251sultats.md +1 -0
- package/src/Guideline/Visuel/COULEUR_ET_CONTRASTE/Palette_couleur_comptes.md +1 -0
- package/src/Guideline/Visuel/IC/303/224NES/IC/303/224NES.md +104 -0
- package/src/Guideline/Visuel/MISE_EN_PAGE/Comportements_tableaux.md +21 -0
- package/src/Guideline/Visuel/MISE_EN_PAGE/Tableaux.md +1 -0
- package/src/Guideline/Visuel/POLICE_D_/303/211CRITURE/Classe_graisse_Roboto.md +10 -0
- package/src/Guideline/Visuel/POLICE_D_/303/211CRITURE/Classe_taille_texte.md +13 -0
- package/src/Guideline/Visuel/UTILISATION_DES_COULEURS_DANS_LA_CONSOLE_HIPAY/UTILISATION_DES_COULEURS_DANS_LA_CONSOLE_HIPAY.md +3 -0
- package/src/Guideline/index.js +1 -0
- package/src/HiAccordion/HiAccordion.js +104 -0
- package/src/HiAccordion/index.js +3 -0
- package/src/HiAccordionActions/HiAccordionActions.js +96 -0
- package/src/HiAccordionActions/index.js +3 -0
- package/src/HiAccordionSummary/HiAccordionSummary.js +112 -0
- package/src/HiAccordionSummary/index.js +3 -0
- package/src/HiAlertModal/HiAlertModal.js +196 -0
- package/src/HiAlertModal/HiAlertModal.md +148 -0
- package/src/HiAlertModal/index.js +3 -0
- package/src/HiAppBar/HiAppBar.js +136 -0
- package/src/HiAppBar/HiAppBar.md +79 -0
- package/src/HiAppBar/index.js +1 -0
- package/src/HiAvatar/HiAvatar.js +29 -0
- package/src/HiAvatar/index.js +1 -0
- package/src/HiBadge/HiBadge.js +123 -0
- package/src/HiBadge/HiBadge.md +63 -0
- package/src/HiBadge/HiBadge.test.js +86 -0
- package/src/HiBadge/index.js +1 -0
- package/src/HiBreadcrumb/HiBreadcrumb.js +92 -0
- package/src/HiBreadcrumb/HiBreadcrumb.md +208 -0
- package/src/HiBreadcrumb/HiBreadcrumb.test.js +45 -0
- package/src/HiBreadcrumb/HiStep.js +122 -0
- package/src/HiBreadcrumb/HiStep.test.js +63 -0
- package/src/HiBreadcrumb/HiStepConnector.js +141 -0
- package/src/HiBreadcrumb/HiStepConnector.test.js +136 -0
- package/src/HiBreadcrumb/HiStepContent.js +63 -0
- package/src/HiBreadcrumb/HiStepContent.test.js +37 -0
- package/src/HiBreadcrumb/HiStepIcon.js +149 -0
- package/src/HiBreadcrumb/HiStepIcon.test.js +182 -0
- package/src/HiBreadcrumb/HiStepLabel.js +182 -0
- package/src/HiBreadcrumb/HiStepLabel.test.js +41 -0
- package/src/HiBreadcrumb/HiStepper.js +44 -0
- package/src/HiBreadcrumb/HiStepper.test.js +41 -0
- package/src/HiBreadcrumb/index.js +1 -0
- package/src/HiButton/HiButton.js +242 -0
- package/src/HiButton/HiButton.md +56 -0
- package/src/HiButton/index.js +3 -0
- package/src/HiCell/CellAddress.js +95 -0
- package/src/HiCell/CellAddress.test.js +105 -0
- package/src/HiCell/CellDate.js +85 -0
- package/src/HiCell/CellDate.test.js +267 -0
- package/src/HiCell/CellHiddenContent.js +87 -0
- package/src/HiCell/CellIcon.js +111 -0
- package/src/HiCell/CellIcon.test.js +62 -0
- package/src/HiCell/CellImage.js +99 -0
- package/src/HiCell/CellImage.test.js +67 -0
- package/src/HiCell/CellNumeric.js +87 -0
- package/src/HiCell/CellNumeric.test.js +36 -0
- package/src/HiCell/CellPinToAction.js +76 -0
- package/src/HiCell/CellRate.js +137 -0
- package/src/HiCell/CellRate.test.js +126 -0
- package/src/HiCell/CellSentinel.js +66 -0
- package/src/HiCell/CellSentinel.test.js +60 -0
- package/src/HiCell/CellSentinelScore.js +62 -0
- package/src/HiCell/CellText.js +192 -0
- package/src/HiCell/CellText.test.js +111 -0
- package/src/HiCell/CellTextStyled.js +119 -0
- package/src/HiCell/HiCell.md +335 -0
- package/src/HiCell/index.js +9 -0
- package/src/HiCheckbox/HiCheckbox.js +200 -0
- package/src/HiCheckbox/HiCheckbox.md +143 -0
- package/src/HiCheckbox/HiCheckbox.test.js +62 -0
- package/src/HiCheckbox/index.js +1 -0
- package/src/HiChip/HiChip.js +344 -0
- package/src/HiChip/HiChip.md +246 -0
- package/src/HiChip/HiChip.test.js +185 -0
- package/src/HiChip/HiChipSwitch.js +258 -0
- package/src/HiChip/HiChipSwitch.test.js +122 -0
- package/src/HiChip/index.js +2 -0
- package/src/HiColoredLabel/HiColoredLabel.js +206 -0
- package/src/HiColoredLabel/HiColoredLabel.md +68 -0
- package/src/HiColoredLabel/HiColoredLabel.test.js +99 -0
- package/src/HiColoredLabel/index.js +1 -0
- package/src/HiDatePicker/Caption.js +56 -0
- package/src/HiDatePicker/Caption.test.js +93 -0
- package/src/HiDatePicker/HiDatePicker.js +397 -0
- package/src/HiDatePicker/HiDatePicker.md +558 -0
- package/src/HiDatePicker/HiDatePicker.test.js +417 -0
- package/src/HiDatePicker/HiDatePickerMobile.js +94 -0
- package/src/HiDatePicker/HiDateRangePicker.js +712 -0
- package/src/HiDatePicker/HiDateRangePicker.test.js +750 -0
- package/src/HiDatePicker/HiDateRangeSelector.js +676 -0
- package/src/HiDatePicker/HiDateRangeSelector.test.js +191 -0
- package/src/HiDatePicker/ListPicker.js +114 -0
- package/src/HiDatePicker/ListPicker.test.js +87 -0
- package/src/HiDatePicker/NavBar.js +124 -0
- package/src/HiDatePicker/NavBar.test.js +71 -0
- package/src/HiDatePicker/Overlays/CustomOverlayLayout.js +104 -0
- package/src/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +97 -0
- package/src/HiDatePicker/Overlays/MonthPickerOverlay.js +83 -0
- package/src/HiDatePicker/Overlays/MonthPickerOverlay.test.js +112 -0
- package/src/HiDatePicker/Overlays/Overlay.js +83 -0
- package/src/HiDatePicker/Overlays/Overlay.test.js +30 -0
- package/src/HiDatePicker/Overlays/TimePickerOverlay.js +198 -0
- package/src/HiDatePicker/Overlays/TimePickerOverlay.test.js +110 -0
- package/src/HiDatePicker/Overlays/YearPickerOverlay.js +114 -0
- package/src/HiDatePicker/Overlays/YearPickerOverlay.test.js +212 -0
- package/src/HiDatePicker/Overlays/index.js +5 -0
- package/src/HiDatePicker/Weekday.js +32 -0
- package/src/HiDatePicker/hiLocaleUtils.js +194 -0
- package/src/HiDatePicker/hiLocaleUtils.test.js +122 -0
- package/src/HiDatePicker/index.js +1 -0
- package/src/HiDatePicker/stylesheet.js +250 -0
- package/src/HiDialog/HiDialog.js +67 -0
- package/src/HiDialog/HiDialog.md +57 -0
- package/src/HiDialog/index.js +1 -0
- package/src/HiDotsStepper/HiDot.js +56 -0
- package/src/HiDotsStepper/HiDot.test.js +97 -0
- package/src/HiDotsStepper/HiDotsStepper.js +71 -0
- package/src/HiDotsStepper/HiDotsStepper.md +43 -0
- package/src/HiDotsStepper/HiDotsStepper.test.js +109 -0
- package/src/HiDotsStepper/index.js +2 -0
- package/src/HiExpansionPanel/HiExpansionPanel.js +193 -0
- package/src/HiExpansionPanel/HiExpansionPanel.md +17 -0
- package/src/HiExpansionPanel/index.js +3 -0
- package/src/HiForm/HiAddressField.js +121 -0
- package/src/HiForm/HiAddressField.test.js +111 -0
- package/src/HiForm/HiEmailField.js +68 -0
- package/src/HiForm/HiEmailField.test.js +20 -0
- package/src/HiForm/HiForm.md +1318 -0
- package/src/HiForm/HiFormControl.js +368 -0
- package/src/HiForm/HiFormControl.test.js +238 -0
- package/src/HiForm/HiFormLabel.js +122 -0
- package/src/HiForm/HiFormLabel.test.js +104 -0
- package/src/HiForm/HiInput.js +573 -0
- package/src/HiForm/HiInput.test.js +227 -0
- package/src/HiForm/HiPasswordField.js +76 -0
- package/src/HiForm/HiPasswordField.test.js +63 -0
- package/src/HiForm/HiSearchField.js +146 -0
- package/src/HiForm/HiSearchField.test.js +208 -0
- package/src/HiForm/HiSlider.js +296 -0
- package/src/HiForm/HiSlider.test.js +194 -0
- package/src/HiForm/HiTextField.js +247 -0
- package/src/HiForm/HiTextField.test.js +292 -0
- package/src/HiForm/HiUpload.js +386 -0
- package/src/HiForm/HiUpload.test.js +231 -0
- package/src/HiForm/HiUploadField.js +122 -0
- package/src/HiForm/HiUploadField.test.js +42 -0
- package/src/HiForm/HiUploadInput.js +400 -0
- package/src/HiForm/HiUploadInput.test.js +154 -0
- package/src/HiForm/index.js +11 -0
- package/src/HiIcon/HiIcon.js +136 -0
- package/src/HiIcon/HiIcon.md +73 -0
- package/src/HiIcon/index.js +1 -0
- package/src/HiIconButton/HiIconButton.js +80 -0
- package/src/HiIconButton/HiIconButton.md +65 -0
- package/src/HiIconButton/HiIconButton.test.js +131 -0
- package/src/HiIconButton/index.js +1 -0
- package/src/HiListItemLink/HiListItemLink.js +102 -0
- package/src/HiListItemLink/HiListItemLink.md +57 -0
- package/src/HiListItemLink/index.js +1 -0
- package/src/HiLoader/HiLoader.js +46 -0
- package/src/HiLoader/HiLoader.md +21 -0
- package/src/HiLoader/HiLoader.test.js +18 -0
- package/src/HiLoader/index.js +1 -0
- package/src/HiNotice/HiKPI.js +198 -0
- package/src/HiNotice/HiKPI.test.js +186 -0
- package/src/HiNotice/HiKPINotice.js +74 -0
- package/src/HiNotice/HiKPINotice.test.js +105 -0
- package/src/HiNotice/index.js +2 -0
- package/src/HiPagination/HiPagination.js +43 -0
- package/src/HiPagination/HiPagination.md +7 -0
- package/src/HiPagination/index.js +1 -0
- package/src/HiPaymentMeans/HiPaymentMeans.js +612 -0
- package/src/HiPaymentMeans/HiPaymentMeans.md +168 -0
- package/src/HiPaymentMeans/HiPaymentMeans.test.js +84 -0
- package/src/HiPaymentMeans/index.js +1 -0
- package/src/HiPdfReader/HiPdfReader.js +195 -0
- package/src/HiPdfReader/index.js +1 -0
- package/src/HiPin/HiPin.js +120 -0
- package/src/HiPin/HiPin.md +58 -0
- package/src/HiPin/HiPin.test.js +71 -0
- package/src/HiPin/index.js +1 -0
- package/src/HiRadio/HiRadio.js +62 -0
- package/src/HiRadio/HiRadio.md +82 -0
- package/src/HiRadio/HiRadio.test.js +65 -0
- package/src/HiRadio/index.js +1 -0
- package/src/HiScrollStepper/HiScrollStepper.js +181 -0
- package/src/HiScrollStepper/HiScrollStepper.md +56 -0
- package/src/HiScrollStepper/index.js +1 -0
- package/src/HiSelect/HiDynamicSelect.js +227 -0
- package/src/HiSelect/HiDynamicSelectField.js +114 -0
- package/src/HiSelect/HiNestedSelect.js +525 -0
- package/src/HiSelect/HiNestedSelectContent.js +430 -0
- package/src/HiSelect/HiNestedSelectField.js +114 -0
- package/src/HiSelect/HiSelect.js +1047 -0
- package/src/HiSelect/HiSelect.md +441 -0
- package/src/HiSelect/HiSelect.test.js +998 -0
- package/src/HiSelect/HiSelectContent.js +497 -0
- package/src/HiSelect/HiSelectField.js +120 -0
- package/src/HiSelect/HiSelectInput.js +352 -0
- package/src/HiSelect/HiSelectInput.test.js +25 -0
- package/src/HiSelect/HiSelectMobile.js +129 -0
- package/src/HiSelect/HiSuggestSelect.js +322 -0
- package/src/HiSelect/HiSuggestSelectField.js +104 -0
- package/src/HiSelect/index.js +8 -0
- package/src/HiSelectableList/HiSelectableList.js +393 -0
- package/src/HiSelectableList/HiSelectableList.md +121 -0
- package/src/HiSelectableList/HiSelectableList.test.js +173 -0
- package/src/HiSelectableList/HiSelectableListHierarchic.js +182 -0
- package/src/HiSelectableList/HiSelectableListItem.js +554 -0
- package/src/HiSelectableList/HiSelectableListItem.test.js +104 -0
- package/src/HiSelectableList/index.js +3 -0
- package/src/HiStepper/DefaultIndicator.js +25 -0
- package/src/HiStepper/HiStep.js +198 -0
- package/src/HiStepper/HiStepper.js +47 -0
- package/src/HiStepper/HiStepper.md +226 -0
- package/src/HiStepper/index.js +2 -0
- package/src/HiSwitch/HiSwitch.js +233 -0
- package/src/HiSwitch/HiSwitch.md +255 -0
- package/src/HiSwitch/HiSwitch.test.js +44 -0
- package/src/HiSwitch/HiSwitchState.js +222 -0
- package/src/HiSwitch/HiSwitchState.test.js +100 -0
- package/src/HiSwitch/index.js +2 -0
- package/src/HiTable/HiCellBuilder.js +238 -0
- package/src/HiTable/HiTable.js +190 -0
- package/src/HiTable/HiTable.md +461 -0
- package/src/HiTable/HiTable.test.js +32 -0
- package/src/HiTable/HiTableBody.js +53 -0
- package/src/HiTable/HiTableHeader.js +112 -0
- package/src/HiTable/HiTableRow.js +116 -0
- package/src/HiTable/constants.js +200 -0
- package/src/HiTable/index.js +1 -0
- package/src/hi-svg-icons/HiAccount.js +27 -0
- package/src/hi-svg-icons/HiActivity.js +30 -0
- package/src/hi-svg-icons/HiAll.js +31 -0
- package/src/hi-svg-icons/HiBilling.js +27 -0
- package/src/hi-svg-icons/HiBriefcaseRescue.js +27 -0
- package/src/hi-svg-icons/HiBusiness.js +27 -0
- package/src/hi-svg-icons/HiCatalog.js +27 -0
- package/src/hi-svg-icons/HiCustomer.js +27 -0
- package/src/hi-svg-icons/HiDownload.js +20 -0
- package/src/hi-svg-icons/HiFinance.js +26 -0
- package/src/hi-svg-icons/HiFinanceMenu.js +26 -0
- package/src/hi-svg-icons/HiHostedPaymentPage.js +27 -0
- package/src/hi-svg-icons/HiHostedPaymentPageMenu.js +26 -0
- package/src/hi-svg-icons/HiIntegration.js +27 -0
- package/src/hi-svg-icons/HiIntegrationMenu.js +26 -0
- package/src/hi-svg-icons/HiIntelligence.js +31 -0
- package/src/hi-svg-icons/HiIntelligenceMenu.js +30 -0
- package/src/hi-svg-icons/HiInvoice.js +26 -0
- package/src/hi-svg-icons/HiInvoiceMenu.js +26 -0
- package/src/hi-svg-icons/HiLogoRounded.js +38 -0
- package/src/hi-svg-icons/HiOrder.js +30 -0
- package/src/hi-svg-icons/HiPaymentOrder.js +27 -0
- package/src/hi-svg-icons/HiPermission.js +30 -0
- package/src/hi-svg-icons/HiPriceGrid.js +27 -0
- package/src/hi-svg-icons/HiPrivate.js +26 -0
- package/src/hi-svg-icons/HiRoute.js +27 -0
- package/src/hi-svg-icons/HiRouteMenu.js +26 -0
- package/src/hi-svg-icons/HiRouteSwitch.js +37 -0
- package/src/hi-svg-icons/HiRouteSwitchMenu.js +36 -0
- package/src/hi-svg-icons/HiSettlement.js +27 -0
- package/src/hi-svg-icons/HiSizeLarge.js +27 -0
- package/src/hi-svg-icons/HiSizeMedium.js +27 -0
- package/src/hi-svg-icons/HiSizeSmall.js +27 -0
- package/src/hi-svg-icons/HiStore.js +43 -0
- package/src/hi-svg-icons/HiStoreMenu.js +42 -0
- package/src/hi-svg-icons/HiTransaction.js +26 -0
- package/src/hi-svg-icons/HiTransactionMenu.js +26 -0
- package/src/hi-svg-icons/HiUser.js +26 -0
- package/src/hi-svg-icons/HiVendor.js +27 -0
- package/src/hi-svg-icons/HiWidget.js +26 -0
- package/src/hi-svg-icons/README.md +125 -0
- package/src/hi-svg-icons/index.js +40 -0
- package/src/hi-svg-icons/index.test.js +43 -0
- package/src/hi-svg-images/HiLogo.js +28 -0
- package/src/hi-svg-images/HiLogoWhite.js +28 -0
- package/src/hi-svg-images/README.md +36 -0
- package/src/hi-svg-images/index.js +2 -0
- package/src/hi-svg-images/index.test.js +43 -0
- package/src/index.css +20 -0
- package/src/index.js +12 -0
- package/src/logo.svg +7 -0
- package/src/serviceWorker.js +135 -0
- package/src/setupTest.js +34 -0
- package/src/styleguide/Wrapper.js +13 -0
- package/src/styles/MuiThemeProvider.js +146 -0
- package/src/styles/Readme.md +142 -0
- package/src/styles/colorManipulator.js +251 -0
- package/src/styles/colorManipulator.test.js +314 -0
- package/src/styles/createBreakpoints.js +71 -0
- package/src/styles/createBreakpoints.test.js +66 -0
- package/src/styles/createGenerateClassName.js +89 -0
- package/src/styles/createGenerateClassName.test.js +166 -0
- package/src/styles/createMixins.js +26 -0
- package/src/styles/createMixins.test.js +26 -0
- package/src/styles/createMuiTheme.js +58 -0
- package/src/styles/createMuiTheme.test.js +87 -0
- package/src/styles/createPalette.js +274 -0
- package/src/styles/createPalette.test.js +375 -0
- package/src/styles/createStyles.js +3 -0
- package/src/styles/createStyles.test.js +9 -0
- package/src/styles/createTypography.js +185 -0
- package/src/styles/createTypography.test.js +67 -0
- package/src/styles/getStylesCreator.js +53 -0
- package/src/styles/getStylesCreator.test.js +105 -0
- package/src/styles/getThemeProps.js +11 -0
- package/src/styles/getThemeProps.test.js +42 -0
- package/src/styles/index.js +5 -0
- package/src/styles/jssPreset.js +23 -0
- package/src/styles/makeStyles.js +11 -0
- package/src/styles/mergeClasses.js +47 -0
- package/src/styles/shadows.js +43 -0
- package/src/styles/shape.js +5 -0
- package/src/styles/spacing.js +2 -0
- package/src/styles/themeListener.js +31 -0
- package/src/styles/themeListener.test.js +36 -0
- package/src/styles/transitions.js +98 -0
- package/src/styles/transitions.test.js +208 -0
- package/src/styles/withStyles.js +11 -0
- package/src/styles/zIndex.js +12 -0
- package/src/test-utils/createMount.js +28 -0
- package/src/test-utils/createRender.js +15 -0
- package/src/test-utils/createShallow.js +32 -0
- package/src/test-utils/getClasses.js +4 -0
- package/src/test-utils/index.js +5 -0
- package/src/test-utils/until.js +28 -0
- package/src/test-utils/until.test.js +117 -0
- package/src/test-utils/unwrap.js +3 -0
- package/src/theme/palette.js +95 -0
- package/src/theme/typography.js +158 -0
- package/src/theme.js +9 -0
- package/src/transitions/utils.js +13 -0
- package/src/utils/exactProp.js +33 -0
- package/src/utils/helpers.js +302 -0
- package/src/withMobileDialog/index.js +1 -0
- package/src/withMobileDialog/withMobileDialog.js +26 -0
- package/src/withMobileDialog/withMobileDialog.test.js +71 -0
- 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 +151 -0
- package/static/hmu/images/countries/ae.svg +6 -0
- package/static/hmu/images/countries/af.svg +83 -0
- package/static/hmu/images/countries/ag.svg +15 -0
- package/static/hmu/images/countries/ai.svg +767 -0
- package/static/hmu/images/countries/al.svg +5 -0
- package/static/hmu/images/countries/am.svg +5 -0
- package/static/hmu/images/countries/ao.svg +13 -0
- package/static/hmu/images/countries/aq.svg +6 -0
- package/static/hmu/images/countries/ar.svg +32 -0
- package/static/hmu/images/countries/as.svg +33 -0
- package/static/hmu/images/countries/at.svg +6 -0
- package/static/hmu/images/countries/au.svg +9 -0
- package/static/hmu/images/countries/aw.svg +186 -0
- package/static/hmu/images/countries/ax.svg +18 -0
- package/static/hmu/images/countries/az.svg +8 -0
- package/static/hmu/images/countries/ba.svg +12 -0
- package/static/hmu/images/countries/bb.svg +6 -0
- package/static/hmu/images/countries/bd.svg +4 -0
- package/static/hmu/images/countries/be.svg +7 -0
- package/static/hmu/images/countries/bf.svg +7 -0
- package/static/hmu/images/countries/bg.svg +7 -0
- package/static/hmu/images/countries/bh.svg +11 -0
- package/static/hmu/images/countries/bi.svg +15 -0
- package/static/hmu/images/countries/bj.svg +14 -0
- package/static/hmu/images/countries/bl.svg +7 -0
- package/static/hmu/images/countries/bm.svg +99 -0
- package/static/hmu/images/countries/bn.svg +36 -0
- package/static/hmu/images/countries/bo.svg +686 -0
- package/static/hmu/images/countries/bq.svg +5 -0
- package/static/hmu/images/countries/br.svg +45 -0
- package/static/hmu/images/countries/bs.svg +13 -0
- package/static/hmu/images/countries/bt.svg +89 -0
- package/static/hmu/images/countries/bv.svg +13 -0
- package/static/hmu/images/countries/bw.svg +7 -0
- package/static/hmu/images/countries/by.svg +61 -0
- package/static/hmu/images/countries/bz.svg +146 -0
- package/static/hmu/images/countries/ca.svg +4 -0
- package/static/hmu/images/countries/cc.svg +19 -0
- package/static/hmu/images/countries/cd.svg +5 -0
- package/static/hmu/images/countries/cf.svg +15 -0
- package/static/hmu/images/countries/cg.svg +12 -0
- package/static/hmu/images/countries/ch.svg +9 -0
- package/static/hmu/images/countries/ci.svg +7 -0
- package/static/hmu/images/countries/ck.svg +9 -0
- package/static/hmu/images/countries/cl.svg +13 -0
- package/static/hmu/images/countries/cm.svg +15 -0
- package/static/hmu/images/countries/cn.svg +11 -0
- package/static/hmu/images/countries/co.svg +7 -0
- package/static/hmu/images/countries/cr.svg +7 -0
- package/static/hmu/images/countries/cu.svg +13 -0
- package/static/hmu/images/countries/cv.svg +13 -0
- package/static/hmu/images/countries/cw.svg +14 -0
- package/static/hmu/images/countries/cx.svg +15 -0
- package/static/hmu/images/countries/cy.svg +6 -0
- package/static/hmu/images/countries/cz.svg +12 -0
- package/static/hmu/images/countries/de.svg +5 -0
- package/static/hmu/images/countries/dj.svg +13 -0
- package/static/hmu/images/countries/dk.svg +5 -0
- package/static/hmu/images/countries/dm.svg +152 -0
- package/static/hmu/images/countries/do.svg +6745 -0
- package/static/hmu/images/countries/dz.svg +5 -0
- package/static/hmu/images/countries/ec.svg +141 -0
- package/static/hmu/images/countries/ee.svg +7 -0
- package/static/hmu/images/countries/eg.svg +38 -0
- package/static/hmu/images/countries/eh.svg +15 -0
- package/static/hmu/images/countries/er.svg +8 -0
- package/static/hmu/images/countries/es-ct.svg +4 -0
- package/static/hmu/images/countries/es.svg +581 -0
- package/static/hmu/images/countries/et.svg +14 -0
- package/static/hmu/images/countries/eu.svg +28 -0
- package/static/hmu/images/countries/fi.svg +5 -0
- package/static/hmu/images/countries/fj.svg +124 -0
- package/static/hmu/images/countries/fk.svg +90 -0
- package/static/hmu/images/countries/fm.svg +11 -0
- package/static/hmu/images/countries/fo.svg +12 -0
- package/static/hmu/images/countries/fr.svg +7 -0
- package/static/hmu/images/countries/ga.svg +7 -0
- package/static/hmu/images/countries/gb-eng.svg +5 -0
- package/static/hmu/images/countries/gb-nir.svg +137 -0
- package/static/hmu/images/countries/gb-sct.svg +4 -0
- package/static/hmu/images/countries/gb-wls.svg +9 -0
- package/static/hmu/images/countries/gb.svg +15 -0
- package/static/hmu/images/countries/gd.svg +27 -0
- package/static/hmu/images/countries/ge.svg +6 -0
- package/static/hmu/images/countries/gf.svg +5 -0
- package/static/hmu/images/countries/gg.svg +9 -0
- package/static/hmu/images/countries/gh.svg +6 -0
- package/static/hmu/images/countries/gi.svg +33 -0
- package/static/hmu/images/countries/gl.svg +4 -0
- package/static/hmu/images/countries/gm.svg +14 -0
- package/static/hmu/images/countries/gn.svg +7 -0
- package/static/hmu/images/countries/gp.svg +7 -0
- package/static/hmu/images/countries/gq.svg +23 -0
- package/static/hmu/images/countries/gr.svg +22 -0
- package/static/hmu/images/countries/gs.svg +205 -0
- package/static/hmu/images/countries/gt.svg +204 -0
- package/static/hmu/images/countries/gu.svg +39 -0
- package/static/hmu/images/countries/gw.svg +13 -0
- package/static/hmu/images/countries/gy.svg +9 -0
- package/static/hmu/images/countries/hk.svg +32 -0
- package/static/hmu/images/countries/hm.svg +9 -0
- package/static/hmu/images/countries/hn.svg +18 -0
- package/static/hmu/images/countries/hr.svg +59 -0
- package/static/hmu/images/countries/ht.svg +122 -0
- package/static/hmu/images/countries/hu.svg +7 -0
- package/static/hmu/images/countries/id.svg +6 -0
- package/static/hmu/images/countries/ie.svg +7 -0
- package/static/hmu/images/countries/il.svg +14 -0
- package/static/hmu/images/countries/im.svg +36 -0
- package/static/hmu/images/countries/in.svg +25 -0
- package/static/hmu/images/countries/io.svg +148 -0
- package/static/hmu/images/countries/iq.svg +10 -0
- package/static/hmu/images/countries/ir.svg +219 -0
- package/static/hmu/images/countries/is.svg +12 -0
- package/static/hmu/images/countries/it.svg +7 -0
- package/static/hmu/images/countries/je.svg +32 -0
- package/static/hmu/images/countries/jm.svg +8 -0
- package/static/hmu/images/countries/jo.svg +16 -0
- package/static/hmu/images/countries/jp.svg +11 -0
- package/static/hmu/images/countries/ke.svg +23 -0
- package/static/hmu/images/countries/kg.svg +15 -0
- package/static/hmu/images/countries/kh.svg +69 -0
- package/static/hmu/images/countries/ki.svg +36 -0
- package/static/hmu/images/countries/km.svg +16 -0
- package/static/hmu/images/countries/kn.svg +14 -0
- package/static/hmu/images/countries/kp.svg +15 -0
- package/static/hmu/images/countries/kr.svg +24 -0
- package/static/hmu/images/countries/kw.svg +13 -0
- package/static/hmu/images/countries/ky.svg +63 -0
- package/static/hmu/images/countries/kz.svg +23 -0
- package/static/hmu/images/countries/la.svg +12 -0
- package/static/hmu/images/countries/lb.svg +15 -0
- package/static/hmu/images/countries/lc.svg +8 -0
- package/static/hmu/images/countries/li.svg +43 -0
- package/static/hmu/images/countries/lk.svg +22 -0
- package/static/hmu/images/countries/lr.svg +14 -0
- package/static/hmu/images/countries/ls.svg +8 -0
- package/static/hmu/images/countries/lt.svg +7 -0
- package/static/hmu/images/countries/lu.svg +5 -0
- package/static/hmu/images/countries/lv.svg +6 -0
- package/static/hmu/images/countries/ly.svg +13 -0
- package/static/hmu/images/countries/ma.svg +4 -0
- package/static/hmu/images/countries/mc.svg +6 -0
- package/static/hmu/images/countries/md.svg +72 -0
- package/static/hmu/images/countries/me.svg +118 -0
- package/static/hmu/images/countries/mf.svg +7 -0
- package/static/hmu/images/countries/mg.svg +7 -0
- package/static/hmu/images/countries/mh.svg +7 -0
- package/static/hmu/images/countries/mk.svg +5 -0
- package/static/hmu/images/countries/ml.svg +7 -0
- package/static/hmu/images/countries/mm.svg +16 -0
- package/static/hmu/images/countries/mn.svg +13 -0
- package/static/hmu/images/countries/mo.svg +9 -0
- package/static/hmu/images/countries/mp.svg +86 -0
- package/static/hmu/images/countries/mq.svg +7 -0
- package/static/hmu/images/countries/mr.svg +6 -0
- package/static/hmu/images/countries/ms.svg +39 -0
- package/static/hmu/images/countries/mt.svg +49 -0
- package/static/hmu/images/countries/mu.svg +8 -0
- package/static/hmu/images/countries/mv.svg +6 -0
- package/static/hmu/images/countries/mw.svg +10 -0
- package/static/hmu/images/countries/mx.svg +385 -0
- package/static/hmu/images/countries/my.svg +15 -0
- package/static/hmu/images/countries/mz.svg +21 -0
- package/static/hmu/images/countries/na.svg +16 -0
- package/static/hmu/images/countries/nc.svg +7 -0
- package/static/hmu/images/countries/ne.svg +6 -0
- package/static/hmu/images/countries/nf.svg +9 -0
- package/static/hmu/images/countries/ng.svg +6 -0
- package/static/hmu/images/countries/ni.svg +131 -0
- package/static/hmu/images/countries/nl.svg +7 -0
- package/static/hmu/images/countries/no.svg +7 -0
- package/static/hmu/images/countries/np.svg +14 -0
- package/static/hmu/images/countries/nr.svg +12 -0
- package/static/hmu/images/countries/nu.svg +26 -0
- package/static/hmu/images/countries/nz.svg +41 -0
- package/static/hmu/images/countries/om.svg +116 -0
- package/static/hmu/images/countries/pa.svg +14 -0
- package/static/hmu/images/countries/pe.svg +279 -0
- package/static/hmu/images/countries/pf.svg +19 -0
- package/static/hmu/images/countries/pg.svg +9 -0
- package/static/hmu/images/countries/ph.svg +28 -0
- package/static/hmu/images/countries/pk.svg +15 -0
- package/static/hmu/images/countries/pl.svg +6 -0
- package/static/hmu/images/countries/pm.svg +7 -0
- package/static/hmu/images/countries/pn.svg +62 -0
- package/static/hmu/images/countries/pr.svg +13 -0
- package/static/hmu/images/countries/ps.svg +15 -0
- package/static/hmu/images/countries/pt.svg +57 -0
- package/static/hmu/images/countries/pw.svg +11 -0
- package/static/hmu/images/countries/py.svg +157 -0
- package/static/hmu/images/countries/qa.svg +4 -0
- package/static/hmu/images/countries/re.svg +7 -0
- package/static/hmu/images/countries/ro.svg +7 -0
- package/static/hmu/images/countries/rs.svg +292 -0
- package/static/hmu/images/countries/ru.svg +7 -0
- package/static/hmu/images/countries/rw.svg +13 -0
- package/static/hmu/images/countries/sa.svg +26 -0
- package/static/hmu/images/countries/sb.svg +13 -0
- package/static/hmu/images/countries/sc.svg +14 -0
- package/static/hmu/images/countries/sd.svg +13 -0
- package/static/hmu/images/countries/se.svg +16 -0
- package/static/hmu/images/countries/sg.svg +13 -0
- package/static/hmu/images/countries/sh.svg +74 -0
- package/static/hmu/images/countries/si.svg +18 -0
- package/static/hmu/images/countries/sj.svg +7 -0
- package/static/hmu/images/countries/sk.svg +9 -0
- package/static/hmu/images/countries/sl.svg +7 -0
- package/static/hmu/images/countries/sm.svg +91 -0
- package/static/hmu/images/countries/sn.svg +8 -0
- package/static/hmu/images/countries/so.svg +11 -0
- package/static/hmu/images/countries/sr.svg +6 -0
- package/static/hmu/images/countries/ss.svg +8 -0
- package/static/hmu/images/countries/st.svg +16 -0
- package/static/hmu/images/countries/sv.svg +618 -0
- package/static/hmu/images/countries/sx.svg +56 -0
- package/static/hmu/images/countries/sy.svg +6 -0
- package/static/hmu/images/countries/sz.svg +45 -0
- package/static/hmu/images/countries/tc.svg +67 -0
- package/static/hmu/images/countries/td.svg +7 -0
- package/static/hmu/images/countries/tf.svg +15 -0
- package/static/hmu/images/countries/tg.svg +14 -0
- package/static/hmu/images/countries/th.svg +7 -0
- package/static/hmu/images/countries/tj.svg +22 -0
- package/static/hmu/images/countries/tk.svg +5 -0
- package/static/hmu/images/countries/tl.svg +13 -0
- package/static/hmu/images/countries/tm.svg +213 -0
- package/static/hmu/images/countries/tn.svg +13 -0
- package/static/hmu/images/countries/to.svg +10 -0
- package/static/hmu/images/countries/tr.svg +8 -0
- package/static/hmu/images/countries/tt.svg +5 -0
- package/static/hmu/images/countries/tv.svg +27 -0
- package/static/hmu/images/countries/tw.svg +14 -0
- package/static/hmu/images/countries/tz.svg +13 -0
- package/static/hmu/images/countries/ua.svg +6 -0
- package/static/hmu/images/countries/ug.svg +30 -0
- package/static/hmu/images/countries/um.svg +23 -0
- package/static/hmu/images/countries/un.svg +16 -0
- package/static/hmu/images/countries/us.svg +12 -0
- package/static/hmu/images/countries/uy.svg +28 -0
- package/static/hmu/images/countries/uz.svg +30 -0
- package/static/hmu/images/countries/va.svg +483 -0
- package/static/hmu/images/countries/vc.svg +8 -0
- package/static/hmu/images/countries/ve.svg +26 -0
- package/static/hmu/images/countries/vg.svg +133 -0
- package/static/hmu/images/countries/vi.svg +31 -0
- package/static/hmu/images/countries/vn.svg +11 -0
- package/static/hmu/images/countries/vu.svg +18 -0
- package/static/hmu/images/countries/wf.svg +7 -0
- package/static/hmu/images/countries/ws.svg +7 -0
- package/static/hmu/images/countries/ye.svg +7 -0
- package/static/hmu/images/countries/yt.svg +7 -0
- package/static/hmu/images/countries/za.svg +17 -0
- package/static/hmu/images/countries/zm.svg +27 -0
- package/static/hmu/images/countries/zw.svg +21 -0
- package/static/hmu/images/logo_visa_75wx45h.gif +0 -0
- package/static/hmu/images/payment-means/1eurocom full.svg +1 -0
- package/static/hmu/images/payment-means/1eurocom.svg +1 -0
- package/static/hmu/images/payment-means/3xcb full.svg +1 -0
- package/static/hmu/images/payment-means/3xcb-no-fees full.svg +1 -0
- package/static/hmu/images/payment-means/3xcb-no-fees.svg +1 -0
- package/static/hmu/images/payment-means/3xcb.svg +1 -0
- package/static/hmu/images/payment-means/4xcb full.svg +1 -0
- package/static/hmu/images/payment-means/4xcb-no-fees full.svg +1 -0
- package/static/hmu/images/payment-means/4xcb-no-fees.svg +1 -0
- package/static/hmu/images/payment-means/4xcb.svg +1 -0
- package/static/hmu/images/payment-means/Gift_shape.svg +13 -0
- package/static/hmu/images/payment-means/Wallet_shape.svg +9 -0
- package/static/hmu/images/payment-means/afterpay full.svg +1 -0
- package/static/hmu/images/payment-means/afterpay.svg +1 -0
- package/static/hmu/images/payment-means/alipay-pos full.svg +1 -0
- package/static/hmu/images/payment-means/alipay-pos.svg +1 -0
- package/static/hmu/images/payment-means/american-express full.svg +1 -0
- package/static/hmu/images/payment-means/american-express.svg +1 -0
- package/static/hmu/images/payment-means/apple-pay full.svg +1 -0
- package/static/hmu/images/payment-means/apple-pay.svg +1 -0
- package/static/hmu/images/payment-means/astropay full.svg +1 -0
- package/static/hmu/images/payment-means/astropay.svg +1 -0
- package/static/hmu/images/payment-means/aura full.svg +1 -0
- package/static/hmu/images/payment-means/aura.svg +1 -0
- package/static/hmu/images/payment-means/banamex full.svg +1 -0
- package/static/hmu/images/payment-means/banamex.svg +1 -0
- package/static/hmu/images/payment-means/banco-do-brasil full.svg +1 -0
- package/static/hmu/images/payment-means/banco-do-brasil.svg +1 -0
- package/static/hmu/images/payment-means/bancontactqrcode full.svg +1 -0
- package/static/hmu/images/payment-means/bancontactqrcode.svg +1 -0
- package/static/hmu/images/payment-means/bank-transfer full.svg +1 -0
- package/static/hmu/images/payment-means/bank-transfer .svg +1 -0
- package/static/hmu/images/payment-means/bbva-bancomer complet.svg +1 -0
- package/static/hmu/images/payment-means/bbva-bancomer.svg +1 -0
- package/static/hmu/images/payment-means/bcmc full.svg +1 -0
- package/static/hmu/images/payment-means/bcmc-mobile full.svg +1 -0
- package/static/hmu/images/payment-means/bcmc-mobile.svg +1 -0
- package/static/hmu/images/payment-means/bcmc.svg +1 -0
- package/static/hmu/images/payment-means/bnp-personal-finance full.svg +1 -0
- package/static/hmu/images/payment-means/bnp-personal-finance.svg +1 -0
- package/static/hmu/images/payment-means/bnpp-3xcb full.svg +1 -0
- package/static/hmu/images/payment-means/bnpp-3xcb.svg +1 -0
- package/static/hmu/images/payment-means/bnpp-4xcb full.svg +1 -0
- package/static/hmu/images/payment-means/bnpp-4xcb.svg +1 -0
- package/static/hmu/images/payment-means/boleto-bancario full.svg +1 -0
- package/static/hmu/images/payment-means/boleto-bancario.svg +1 -0
- package/static/hmu/images/payment-means/bradesco full.svg +1 -0
- package/static/hmu/images/payment-means/bradesco.svg +1 -0
- package/static/hmu/images/payment-means/caixa full.svg +1 -0
- package/static/hmu/images/payment-means/caixa.svg +1 -0
- package/static/hmu/images/payment-means/carte-cadeau full.svg +1 -0
- package/static/hmu/images/payment-means/carte-cadeau.svg +1 -0
- package/static/hmu/images/payment-means/carte-titre-restaurant full.svg +1 -0
- package/static/hmu/images/payment-means/carte-titre-restaurant.svg +1 -0
- package/static/hmu/images/payment-means/cb full.svg +1 -0
- package/static/hmu/images/payment-means/cb.svg +1 -0
- package/static/hmu/images/payment-means/cbc full.svg +1 -0
- package/static/hmu/images/payment-means/cbc.svg +1 -0
- package/static/hmu/images/payment-means/citi full.svg +1 -0
- package/static/hmu/images/payment-means/citi.svg +1 -0
- package/static/hmu/images/payment-means/credit-long full.svg +1 -0
- package/static/hmu/images/payment-means/credit-long.svg +1 -0
- package/static/hmu/images/payment-means/dexia-directnet full.svg +1 -0
- package/static/hmu/images/payment-means/dexia-directnet.svg +1 -0
- package/static/hmu/images/payment-means/dimoco full.svg +1 -0
- package/static/hmu/images/payment-means/dimoco.svg +1 -0
- package/static/hmu/images/payment-means/direct-debit full.svg +1 -0
- package/static/hmu/images/payment-means/direct-debit.svg +1 -0
- package/static/hmu/images/payment-means/divido full.svg +1 -0
- package/static/hmu/images/payment-means/divido.svg +1 -0
- package/static/hmu/images/payment-means/dsb-ch-easypay full.svg +1 -0
- package/static/hmu/images/payment-means/dsb-ch-easypay.svg +1 -0
- package/static/hmu/images/payment-means/giropay full.svg +1 -0
- package/static/hmu/images/payment-means/giropay.svg +1 -0
- package/static/hmu/images/payment-means/ideal full.svg +1 -0
- package/static/hmu/images/payment-means/ideal.svg +1 -0
- package/static/hmu/images/payment-means/ing-homepay full.svg +1 -0
- package/static/hmu/images/payment-means/ing-homepay.svg +1 -0
- package/static/hmu/images/payment-means/itau full.svg +1 -0
- package/static/hmu/images/payment-means/itau.svg +1 -0
- package/static/hmu/images/payment-means/jcb full.svg +1 -0
- package/static/hmu/images/payment-means/jcb.svg +1 -0
- package/static/hmu/images/payment-means/kbc full.svg +1 -0
- package/static/hmu/images/payment-means/kbc.svg +1 -0
- package/static/hmu/images/payment-means/klarnacheckout full.svg +1 -0
- package/static/hmu/images/payment-means/klarnacheckout.svg +1 -0
- package/static/hmu/images/payment-means/klarnainvoice full.svg +1 -0
- package/static/hmu/images/payment-means/klarnainvoice.svg +1 -0
- package/static/hmu/images/payment-means/maestro full.svg +1 -0
- package/static/hmu/images/payment-means/maestro.svg +1 -0
- package/static/hmu/images/payment-means/mastercard full.svg +1 -0
- package/static/hmu/images/payment-means/mastercard.svg +1 -0
- package/static/hmu/images/payment-means/mercado-pago full.svg +1 -0
- package/static/hmu/images/payment-means/mercado-pago.svg +1 -0
- package/static/hmu/images/payment-means/mobilepay full.svg +1 -0
- package/static/hmu/images/payment-means/mobilepay.svg +1 -0
- package/static/hmu/images/payment-means/movistar full.svg +1 -0
- package/static/hmu/images/payment-means/movistar.svg +1 -0
- package/static/hmu/images/payment-means/multi-carte full.svg +1 -0
- package/static/hmu/images/payment-means/multi-carte.svg +1 -0
- package/static/hmu/images/payment-means/multibanco full.svg +1 -0
- package/static/hmu/images/payment-means/multibanco.svg +1 -0
- package/static/hmu/images/payment-means/mybank full.svg +1 -0
- package/static/hmu/images/payment-means/mybank.svg +1 -0
- package/static/hmu/images/payment-means/no-logo.svg +14 -0
- package/static/hmu/images/payment-means/o2 full.svg +1 -0
- package/static/hmu/images/payment-means/o2.svg +1 -0
- package/static/hmu/images/payment-means/orange full.svg +1 -0
- package/static/hmu/images/payment-means/orange.svg +1 -0
- package/static/hmu/images/payment-means/oxxo full.svg +1 -0
- package/static/hmu/images/payment-means/oxxo.svg +1 -0
- package/static/hmu/images/payment-means/paypal full.svg +1 -0
- package/static/hmu/images/payment-means/paypal.svg +1 -0
- package/static/hmu/images/payment-means/paysafecard full.svg +1 -0
- package/static/hmu/images/payment-means/paysafecard.svg +1 -0
- package/static/hmu/images/payment-means/payshop full.svg +1 -0
- package/static/hmu/images/payment-means/payshop.svg +1 -0
- package/static/hmu/images/payment-means/payulatam full.svg +1 -0
- package/static/hmu/images/payment-means/payulatam.svg +1 -0
- package/static/hmu/images/payment-means/postfinance-card full.svg +1 -0
- package/static/hmu/images/payment-means/postfinance-card.svg +1 -0
- package/static/hmu/images/payment-means/postfinance-efinance full.svg +1 -0
- package/static/hmu/images/payment-means/postfinance-efinance.svg +1 -0
- package/static/hmu/images/payment-means/przelewy24 full.svg +1 -0
- package/static/hmu/images/payment-means/przelewy24.svg +1 -0
- package/static/hmu/images/payment-means/qiwi-wallet full.svg +1 -0
- package/static/hmu/images/payment-means/qiwi-wallet.svg +1 -0
- package/static/hmu/images/payment-means/rapipago full.svg +1 -0
- package/static/hmu/images/payment-means/rapipago.svg +1 -0
- package/static/hmu/images/payment-means/refund-pos full.svg +1 -0
- package/static/hmu/images/payment-means/refund-pos.svg +1 -0
- package/static/hmu/images/payment-means/safetypay full.svg +1 -0
- package/static/hmu/images/payment-means/safetypay.svg +1 -0
- package/static/hmu/images/payment-means/sans_logo.svg +1 -0
- package/static/hmu/images/payment-means/sans_logo_full.svg +499 -0
- package/static/hmu/images/payment-means/santander-cash full.svg +1 -0
- package/static/hmu/images/payment-means/santander-cash.svg +1 -0
- package/static/hmu/images/payment-means/santander-home-banking full.svg +1 -0
- package/static/hmu/images/payment-means/santander-home-banking.svg +1 -0
- package/static/hmu/images/payment-means/sct full.svg +1 -0
- package/static/hmu/images/payment-means/sct.svg +1 -0
- package/static/hmu/images/payment-means/sdd full.svg +1 -0
- package/static/hmu/images/payment-means/sdd.svg +1 -0
- package/static/hmu/images/payment-means/sepa-refund-transfer full.svg +1 -0
- package/static/hmu/images/payment-means/sepa-refund-transfer.svg +1 -0
- package/static/hmu/images/payment-means/singtel full.svg +1 -0
- package/static/hmu/images/payment-means/singtel.svg +1 -0
- package/static/hmu/images/payment-means/sisal full.svg +1 -0
- package/static/hmu/images/payment-means/sisal.svg +1 -0
- package/static/hmu/images/payment-means/skrill full.svg +1 -0
- package/static/hmu/images/payment-means/skrill.svg +1 -0
- package/static/hmu/images/payment-means/sofort-uberweisung full.svg +1 -0
- package/static/hmu/images/payment-means/sofort-uberweisung.svg +1 -0
- package/static/hmu/images/payment-means/t-mobile full.svg +1 -0
- package/static/hmu/images/payment-means/t-mobile.svg +1 -0
- package/static/hmu/images/payment-means/tpe full.svg +1 -0
- package/static/hmu/images/payment-means/tpe.svg +1 -0
- package/static/hmu/images/payment-means/trustpay-banking full.svg +1 -0
- package/static/hmu/images/payment-means/trustpay-banking.svg +1 -0
- package/static/hmu/images/payment-means/unionpay full.svg +1 -0
- package/static/hmu/images/payment-means/unionpay.svg +1 -0
- package/static/hmu/images/payment-means/visa full.svg +1 -0
- package/static/hmu/images/payment-means/visa.svg +1 -0
- package/static/hmu/images/payment-means/vodafone full.svg +1 -0
- package/static/hmu/images/payment-means/vodafone.svg +1 -0
- package/static/hmu/images/payment-means/webmoney-transfer full.svg +1 -0
- package/static/hmu/images/payment-means/webmoney-transfer.svg +1 -0
- package/static/hmu/images/payment-means/wechatpay full.svg +1 -0
- package/static/hmu/images/payment-means/wechatpay.svg +1 -0
- package/static/hmu/images/payment-means/yandex full.svg +1 -0
- package/static/hmu/images/payment-means/yandex.svg +1 -0
- 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 +1 -0
- package/static/images/hipay-white-logo.svg +42 -0
- 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 +1 -0
- 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 +1 -0
- package/static/images/uxceo-128.jpg +0 -0
- package/static/logo.png +0 -0
- package/static/manifest.json +34 -0
- package/static/pdf/pdf-multiple-pages.pdf +0 -0
- package/static/react-lifecycle.png +0 -0
- package/styleguide.config.js +662 -0
- package/Guideline/index.js +0 -2
- package/HiAccordion/HiAccordion.js +0 -82
- package/HiAccordion/index.js +0 -13
- package/HiAccordionActions/HiAccordionActions.js +0 -68
- package/HiAccordionActions/index.js +0 -13
- package/HiAccordionSummary/HiAccordionSummary.js +0 -73
- package/HiAccordionSummary/index.js +0 -13
- package/HiAlertModal/HiAlertModal.js +0 -116
- package/HiAlertModal/index.js +0 -13
- package/HiAppBar/HiAppBar.js +0 -139
- package/HiAppBar/index.js +0 -15
- package/HiAvatar/HiAvatar.js +0 -51
- package/HiAvatar/index.js +0 -15
- package/HiBadge/HiBadge.js +0 -103
- package/HiBadge/index.js +0 -15
- package/HiBreadcrumb/HiBreadcrumb.js +0 -105
- package/HiBreadcrumb/HiStep.js +0 -131
- package/HiBreadcrumb/HiStepConnector.js +0 -168
- package/HiBreadcrumb/HiStepContent.js +0 -101
- package/HiBreadcrumb/HiStepIcon.js +0 -158
- package/HiBreadcrumb/HiStepLabel.js +0 -177
- package/HiBreadcrumb/HiStepper.js +0 -83
- package/HiBreadcrumb/index.js +0 -15
- package/HiButton/HiButton.js +0 -192
- package/HiButton/index.js +0 -13
- package/HiCell/CellAddress.js +0 -100
- package/HiCell/CellDate.js +0 -109
- package/HiCell/CellHiddenContent.js +0 -103
- package/HiCell/CellIcon.js +0 -131
- package/HiCell/CellImage.js +0 -115
- package/HiCell/CellNumeric.js +0 -112
- package/HiCell/CellPinToAction.js +0 -98
- package/HiCell/CellRate.js +0 -158
- package/HiCell/CellSentinel.js +0 -93
- package/HiCell/CellSentinelScore.js +0 -96
- package/HiCell/CellText.js +0 -235
- package/HiCell/CellTextStyled.js +0 -113
- package/HiCell/index.js +0 -79
- package/HiCheckbox/HiCheckbox.js +0 -193
- package/HiCheckbox/index.js +0 -15
- package/HiChip/HiChip.js +0 -268
- package/HiChip/HiChipSwitch.js +0 -256
- package/HiChip/index.js +0 -23
- package/HiColoredLabel/HiColoredLabel.js +0 -179
- package/HiColoredLabel/index.js +0 -15
- package/HiDatePicker/Caption.js +0 -57
- package/HiDatePicker/HiDatePicker.js +0 -381
- package/HiDatePicker/HiDatePickerMobile.js +0 -110
- package/HiDatePicker/HiDateRangePicker.js +0 -659
- package/HiDatePicker/HiDateRangeSelector.js +0 -659
- package/HiDatePicker/ListPicker.js +0 -136
- package/HiDatePicker/NavBar.js +0 -109
- package/HiDatePicker/Overlays/CustomOverlayLayout.js +0 -113
- package/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +0 -105
- package/HiDatePicker/Overlays/MonthPickerOverlay.js +0 -91
- package/HiDatePicker/Overlays/Overlay.js +0 -79
- package/HiDatePicker/Overlays/TimePickerOverlay.js +0 -220
- package/HiDatePicker/Overlays/YearPickerOverlay.js +0 -112
- package/HiDatePicker/Overlays/index.js +0 -47
- package/HiDatePicker/Weekday.js +0 -25
- package/HiDatePicker/hiLocaleUtils.js +0 -149
- package/HiDatePicker/index.js +0 -15
- package/HiDatePicker/stylesheet.js +0 -265
- package/HiDialog/HiDialog.js +0 -73
- package/HiDialog/index.js +0 -15
- package/HiDotsStepper/HiDot.js +0 -104
- package/HiDotsStepper/HiDotsStepper.js +0 -116
- package/HiDotsStepper/index.js +0 -23
- package/HiExpansionPanel/HiExpansionPanel.js +0 -184
- package/HiExpansionPanel/index.js +0 -13
- package/HiForm/HiAddressField.js +0 -156
- package/HiForm/HiEmailField.js +0 -83
- package/HiForm/HiFormControl.js +0 -319
- package/HiForm/HiFormLabel.js +0 -126
- package/HiForm/HiInput.js +0 -485
- package/HiForm/HiPasswordField.js +0 -116
- package/HiForm/HiSearchField.js +0 -159
- package/HiForm/HiSlider.js +0 -288
- package/HiForm/HiTextField.js +0 -174
- package/HiForm/HiUpload.js +0 -396
- package/HiForm/HiUploadField.js +0 -97
- package/HiForm/HiUploadInput.js +0 -401
- package/HiForm/index.js +0 -95
- package/HiIcon/HiIcon.js +0 -118
- package/HiIcon/index.js +0 -15
- package/HiIconButton/HiIconButton.js +0 -80
- package/HiIconButton/index.js +0 -15
- package/HiListItemLink/HiListItemLink.js +0 -106
- package/HiListItemLink/index.js +0 -15
- package/HiLoader/HiLoader.js +0 -49
- package/HiLoader/index.js +0 -15
- package/HiNotice/HiKPI.js +0 -193
- package/HiNotice/HiKPINotice.js +0 -69
- package/HiNotice/index.js +0 -23
- package/HiPagination/HiPagination.js +0 -55
- package/HiPagination/index.js +0 -15
- package/HiPaymentMeans/HiPaymentMeans.js +0 -626
- package/HiPaymentMeans/index.js +0 -15
- package/HiPdfReader/HiPdfReader.js +0 -246
- package/HiPdfReader/index.js +0 -15
- package/HiPin/HiPin.js +0 -96
- package/HiPin/index.js +0 -15
- package/HiRadio/HiRadio.js +0 -67
- package/HiRadio/index.js +0 -15
- package/HiScrollStepper/HiScrollStepper.js +0 -212
- package/HiScrollStepper/index.js +0 -15
- package/HiSelect/HiDynamicSelect.js +0 -169
- package/HiSelect/HiDynamicSelectField.js +0 -114
- package/HiSelect/HiNestedSelect.js +0 -447
- package/HiSelect/HiNestedSelectContent.js +0 -349
- package/HiSelect/HiNestedSelectField.js +0 -114
- package/HiSelect/HiSelect.js +0 -930
- package/HiSelect/HiSelectContent.js +0 -417
- package/HiSelect/HiSelectField.js +0 -116
- package/HiSelect/HiSelectInput.js +0 -327
- package/HiSelect/HiSelectMobile.js +0 -169
- package/HiSelect/HiSuggestSelect.js +0 -346
- package/HiSelect/HiSuggestSelectField.js +0 -103
- package/HiSelect/index.js +0 -89
- package/HiSelectableList/HiSelectableList.js +0 -365
- package/HiSelectableList/HiSelectableListHierarchic.js +0 -174
- package/HiSelectableList/HiSelectableListItem.js +0 -439
- package/HiSelectableList/index.js +0 -31
- package/HiStepper/DefaultIndicator.js +0 -44
- package/HiStepper/HiStep.js +0 -210
- package/HiStepper/HiStepper.js +0 -61
- package/HiStepper/index.js +0 -23
- package/HiSwitch/HiSwitch.js +0 -213
- package/HiSwitch/HiSwitchState.js +0 -163
- package/HiSwitch/index.js +0 -23
- package/HiTable/HiCellBuilder.js +0 -273
- package/HiTable/HiTable.js +0 -214
- package/HiTable/HiTableBody.js +0 -65
- package/HiTable/HiTableHeader.js +0 -148
- package/HiTable/HiTableRow.js +0 -147
- package/HiTable/constants.js +0 -155
- package/HiTable/index.js +0 -15
- package/es/Guideline/index.js +0 -2
- package/es/HiAccordion/HiAccordion.js +0 -82
- package/es/HiAccordion/index.js +0 -13
- package/es/HiAccordionActions/HiAccordionActions.js +0 -68
- package/es/HiAccordionActions/index.js +0 -13
- package/es/HiAccordionSummary/HiAccordionSummary.js +0 -73
- package/es/HiAccordionSummary/index.js +0 -13
- package/es/HiAlertModal/HiAlertModal.js +0 -116
- package/es/HiAlertModal/index.js +0 -13
- package/es/HiAppBar/HiAppBar.js +0 -139
- package/es/HiAppBar/index.js +0 -15
- package/es/HiAvatar/HiAvatar.js +0 -51
- package/es/HiAvatar/index.js +0 -15
- package/es/HiBadge/HiBadge.js +0 -103
- package/es/HiBadge/index.js +0 -15
- package/es/HiBreadcrumb/HiBreadcrumb.js +0 -105
- package/es/HiBreadcrumb/HiStep.js +0 -131
- package/es/HiBreadcrumb/HiStepConnector.js +0 -168
- package/es/HiBreadcrumb/HiStepContent.js +0 -101
- package/es/HiBreadcrumb/HiStepIcon.js +0 -158
- package/es/HiBreadcrumb/HiStepLabel.js +0 -177
- package/es/HiBreadcrumb/HiStepper.js +0 -83
- package/es/HiBreadcrumb/index.js +0 -15
- package/es/HiButton/HiButton.js +0 -192
- package/es/HiButton/index.js +0 -13
- package/es/HiCell/CellAddress.js +0 -100
- package/es/HiCell/CellDate.js +0 -109
- package/es/HiCell/CellHiddenContent.js +0 -103
- package/es/HiCell/CellIcon.js +0 -131
- package/es/HiCell/CellImage.js +0 -115
- package/es/HiCell/CellNumeric.js +0 -112
- package/es/HiCell/CellPinToAction.js +0 -98
- package/es/HiCell/CellRate.js +0 -158
- package/es/HiCell/CellSentinel.js +0 -93
- package/es/HiCell/CellSentinelScore.js +0 -96
- package/es/HiCell/CellText.js +0 -235
- package/es/HiCell/CellTextStyled.js +0 -113
- package/es/HiCell/index.js +0 -79
- package/es/HiCheckbox/HiCheckbox.js +0 -193
- package/es/HiCheckbox/index.js +0 -15
- package/es/HiChip/HiChip.js +0 -268
- package/es/HiChip/HiChipSwitch.js +0 -256
- package/es/HiChip/index.js +0 -23
- package/es/HiColoredLabel/HiColoredLabel.js +0 -179
- package/es/HiColoredLabel/index.js +0 -15
- package/es/HiDatePicker/Caption.js +0 -57
- package/es/HiDatePicker/HiDatePicker.js +0 -381
- package/es/HiDatePicker/HiDatePickerMobile.js +0 -110
- package/es/HiDatePicker/HiDateRangePicker.js +0 -659
- package/es/HiDatePicker/HiDateRangeSelector.js +0 -659
- package/es/HiDatePicker/ListPicker.js +0 -136
- package/es/HiDatePicker/NavBar.js +0 -109
- package/es/HiDatePicker/Overlays/CustomOverlayLayout.js +0 -113
- package/es/HiDatePicker/Overlays/CustomOverlayLayoutWithoutFooter.js +0 -105
- package/es/HiDatePicker/Overlays/MonthPickerOverlay.js +0 -91
- package/es/HiDatePicker/Overlays/Overlay.js +0 -79
- package/es/HiDatePicker/Overlays/TimePickerOverlay.js +0 -220
- package/es/HiDatePicker/Overlays/YearPickerOverlay.js +0 -112
- package/es/HiDatePicker/Overlays/index.js +0 -47
- package/es/HiDatePicker/Weekday.js +0 -25
- package/es/HiDatePicker/hiLocaleUtils.js +0 -149
- package/es/HiDatePicker/index.js +0 -15
- package/es/HiDatePicker/stylesheet.js +0 -265
- package/es/HiDialog/HiDialog.js +0 -73
- package/es/HiDialog/index.js +0 -15
- package/es/HiDotsStepper/HiDot.js +0 -104
- package/es/HiDotsStepper/HiDotsStepper.js +0 -116
- package/es/HiDotsStepper/index.js +0 -23
- package/es/HiExpansionPanel/HiExpansionPanel.js +0 -184
- package/es/HiExpansionPanel/index.js +0 -13
- package/es/HiForm/HiAddressField.js +0 -156
- package/es/HiForm/HiEmailField.js +0 -83
- package/es/HiForm/HiFormControl.js +0 -319
- package/es/HiForm/HiFormLabel.js +0 -126
- package/es/HiForm/HiInput.js +0 -485
- package/es/HiForm/HiPasswordField.js +0 -116
- package/es/HiForm/HiSearchField.js +0 -159
- package/es/HiForm/HiSlider.js +0 -288
- package/es/HiForm/HiTextField.js +0 -174
- package/es/HiForm/HiUpload.js +0 -396
- package/es/HiForm/HiUploadField.js +0 -97
- package/es/HiForm/HiUploadInput.js +0 -401
- package/es/HiForm/index.js +0 -95
- package/es/HiIcon/HiIcon.js +0 -118
- package/es/HiIcon/index.js +0 -15
- package/es/HiIconButton/HiIconButton.js +0 -80
- package/es/HiIconButton/index.js +0 -15
- package/es/HiListItemLink/HiListItemLink.js +0 -106
- package/es/HiListItemLink/index.js +0 -15
- package/es/HiLoader/HiLoader.js +0 -49
- package/es/HiLoader/index.js +0 -15
- package/es/HiNotice/HiKPI.js +0 -193
- package/es/HiNotice/HiKPINotice.js +0 -69
- package/es/HiNotice/index.js +0 -23
- package/es/HiPagination/HiPagination.js +0 -55
- package/es/HiPagination/index.js +0 -15
- package/es/HiPaymentMeans/HiPaymentMeans.js +0 -626
- package/es/HiPaymentMeans/index.js +0 -15
- package/es/HiPdfReader/HiPdfReader.js +0 -246
- package/es/HiPdfReader/index.js +0 -15
- package/es/HiPin/HiPin.js +0 -96
- package/es/HiPin/index.js +0 -15
- package/es/HiRadio/HiRadio.js +0 -67
- package/es/HiRadio/index.js +0 -15
- package/es/HiScrollStepper/HiScrollStepper.js +0 -212
- package/es/HiScrollStepper/index.js +0 -15
- package/es/HiSelect/HiDynamicSelect.js +0 -169
- package/es/HiSelect/HiDynamicSelectField.js +0 -114
- package/es/HiSelect/HiNestedSelect.js +0 -447
- package/es/HiSelect/HiNestedSelectContent.js +0 -349
- package/es/HiSelect/HiNestedSelectField.js +0 -114
- package/es/HiSelect/HiSelect.js +0 -930
- package/es/HiSelect/HiSelectContent.js +0 -417
- package/es/HiSelect/HiSelectField.js +0 -116
- package/es/HiSelect/HiSelectInput.js +0 -327
- package/es/HiSelect/HiSelectMobile.js +0 -169
- package/es/HiSelect/HiSuggestSelect.js +0 -346
- package/es/HiSelect/HiSuggestSelectField.js +0 -103
- package/es/HiSelect/index.js +0 -89
- package/es/HiSelectableList/HiSelectableList.js +0 -365
- package/es/HiSelectableList/HiSelectableListHierarchic.js +0 -174
- package/es/HiSelectableList/HiSelectableListItem.js +0 -439
- package/es/HiSelectableList/index.js +0 -31
- package/es/HiStepper/DefaultIndicator.js +0 -44
- package/es/HiStepper/HiStep.js +0 -210
- package/es/HiStepper/HiStepper.js +0 -61
- package/es/HiStepper/index.js +0 -23
- package/es/HiSwitch/HiSwitch.js +0 -213
- package/es/HiSwitch/HiSwitchState.js +0 -163
- package/es/HiSwitch/index.js +0 -23
- package/es/HiTable/HiCellBuilder.js +0 -273
- package/es/HiTable/HiTable.js +0 -214
- package/es/HiTable/HiTableBody.js +0 -65
- package/es/HiTable/HiTableHeader.js +0 -148
- package/es/HiTable/HiTableRow.js +0 -147
- package/es/HiTable/constants.js +0 -155
- package/es/HiTable/index.js +0 -15
- package/es/hi-svg-icons/HiAccount.js +0 -52
- package/es/hi-svg-icons/HiActivity.js +0 -53
- package/es/hi-svg-icons/HiAll.js +0 -60
- package/es/hi-svg-icons/HiBilling.js +0 -52
- package/es/hi-svg-icons/HiBriefcaseRescue.js +0 -47
- package/es/hi-svg-icons/HiBusiness.js +0 -52
- package/es/hi-svg-icons/HiCatalog.js +0 -52
- package/es/hi-svg-icons/HiCustomer.js +0 -52
- package/es/hi-svg-icons/HiDownload.js +0 -43
- package/es/hi-svg-icons/HiFinance.js +0 -52
- package/es/hi-svg-icons/HiFinanceMenu.js +0 -46
- package/es/hi-svg-icons/HiHostedPaymentPage.js +0 -52
- package/es/hi-svg-icons/HiHostedPaymentPageMenu.js +0 -46
- package/es/hi-svg-icons/HiIntegration.js +0 -52
- package/es/hi-svg-icons/HiIntegrationMenu.js +0 -46
- package/es/hi-svg-icons/HiIntelligence.js +0 -55
- package/es/hi-svg-icons/HiIntelligenceMenu.js +0 -49
- package/es/hi-svg-icons/HiInvoice.js +0 -52
- package/es/hi-svg-icons/HiInvoiceMenu.js +0 -46
- package/es/hi-svg-icons/HiLogoRounded.js +0 -59
- package/es/hi-svg-icons/HiOrder.js +0 -70
- package/es/hi-svg-icons/HiPaymentOrder.js +0 -52
- package/es/hi-svg-icons/HiPermission.js +0 -53
- package/es/hi-svg-icons/HiPriceGrid.js +0 -52
- package/es/hi-svg-icons/HiPrivate.js +0 -51
- package/es/hi-svg-icons/HiRoute.js +0 -52
- package/es/hi-svg-icons/HiRouteMenu.js +0 -46
- package/es/hi-svg-icons/HiRouteSwitch.js +0 -68
- package/es/hi-svg-icons/HiRouteSwitchMenu.js +0 -62
- package/es/hi-svg-icons/HiSettlement.js +0 -52
- package/es/hi-svg-icons/HiSizeLarge.js +0 -47
- package/es/hi-svg-icons/HiSizeMedium.js +0 -47
- package/es/hi-svg-icons/HiSizeSmall.js +0 -47
- package/es/hi-svg-icons/HiStore.js +0 -64
- package/es/hi-svg-icons/HiStoreMenu.js +0 -58
- package/es/hi-svg-icons/HiTransaction.js +0 -52
- package/es/hi-svg-icons/HiTransactionMenu.js +0 -46
- package/es/hi-svg-icons/HiUser.js +0 -52
- package/es/hi-svg-icons/HiVendor.js +0 -52
- package/es/hi-svg-icons/HiWidget.js +0 -52
- package/es/hi-svg-icons/index.js +0 -327
- package/es/hi-svg-images/HiLogo.js +0 -41
- package/es/hi-svg-images/HiLogoWhite.js +0 -41
- package/es/hi-svg-images/index.js +0 -23
- package/es/setupTest.js +0 -44
- package/es/styleguide/Wrapper.js +0 -25
- package/es/styles/MuiThemeProvider.js +0 -161
- package/es/styles/colorManipulator.js +0 -286
- package/es/styles/createBreakpoints.js +0 -81
- package/es/styles/createGenerateClassName.js +0 -86
- package/es/styles/createMixins.js +0 -36
- package/es/styles/createMuiTheme.js +0 -77
- package/es/styles/createPalette.js +0 -288
- package/es/styles/createStyles.js +0 -10
- package/es/styles/createTypography.js +0 -185
- package/es/styles/getStylesCreator.js +0 -54
- package/es/styles/getThemeProps.js +0 -20
- package/es/styles/index.js +0 -47
- package/es/styles/jssPreset.js +0 -31
- package/es/styles/makeStyles.js +0 -28
- package/es/styles/mergeClasses.js +0 -41
- package/es/styles/shadows.js +0 -17
- package/es/styles/shape.js +0 -11
- package/es/styles/spacing.js +0 -14
- package/es/styles/themeListener.js +0 -40
- package/es/styles/transitions.js +0 -106
- package/es/styles/withStyles.js +0 -28
- package/es/styles/zIndex.js +0 -18
- package/es/test-utils/createMount.js +0 -44
- package/es/test-utils/createRender.js +0 -29
- package/es/test-utils/createShallow.js +0 -48
- package/es/test-utils/getClasses.js +0 -12
- package/es/test-utils/index.js +0 -47
- package/es/test-utils/until.js +0 -49
- package/es/test-utils/unwrap.js +0 -10
- package/es/theme/palette.js +0 -106
- package/es/theme/typography.js +0 -170
- package/es/theme.js +0 -20
- package/es/transitions/utils.js +0 -23
- package/es/utils/exactProp.js +0 -43
- package/es/utils/helpers.js +0 -345
- package/es/withMobileDialog/index.js +0 -15
- package/es/withMobileDialog/withMobileDialog.js +0 -48
- package/hi-svg-icons/HiAccount.js +0 -52
- package/hi-svg-icons/HiActivity.js +0 -53
- package/hi-svg-icons/HiAll.js +0 -60
- package/hi-svg-icons/HiBilling.js +0 -52
- package/hi-svg-icons/HiBriefcaseRescue.js +0 -47
- package/hi-svg-icons/HiBusiness.js +0 -52
- package/hi-svg-icons/HiCatalog.js +0 -52
- package/hi-svg-icons/HiCustomer.js +0 -52
- package/hi-svg-icons/HiDownload.js +0 -43
- package/hi-svg-icons/HiFinance.js +0 -52
- package/hi-svg-icons/HiFinanceMenu.js +0 -46
- package/hi-svg-icons/HiHostedPaymentPage.js +0 -52
- package/hi-svg-icons/HiHostedPaymentPageMenu.js +0 -46
- package/hi-svg-icons/HiIntegration.js +0 -52
- package/hi-svg-icons/HiIntegrationMenu.js +0 -46
- package/hi-svg-icons/HiIntelligence.js +0 -55
- package/hi-svg-icons/HiIntelligenceMenu.js +0 -49
- package/hi-svg-icons/HiInvoice.js +0 -52
- package/hi-svg-icons/HiInvoiceMenu.js +0 -46
- package/hi-svg-icons/HiLogoRounded.js +0 -59
- package/hi-svg-icons/HiOrder.js +0 -70
- package/hi-svg-icons/HiPaymentOrder.js +0 -52
- package/hi-svg-icons/HiPermission.js +0 -53
- package/hi-svg-icons/HiPriceGrid.js +0 -52
- package/hi-svg-icons/HiPrivate.js +0 -51
- package/hi-svg-icons/HiRoute.js +0 -52
- package/hi-svg-icons/HiRouteMenu.js +0 -46
- package/hi-svg-icons/HiRouteSwitch.js +0 -68
- package/hi-svg-icons/HiRouteSwitchMenu.js +0 -62
- package/hi-svg-icons/HiSettlement.js +0 -52
- package/hi-svg-icons/HiSizeLarge.js +0 -47
- package/hi-svg-icons/HiSizeMedium.js +0 -47
- package/hi-svg-icons/HiSizeSmall.js +0 -47
- package/hi-svg-icons/HiStore.js +0 -64
- package/hi-svg-icons/HiStoreMenu.js +0 -58
- package/hi-svg-icons/HiTransaction.js +0 -52
- package/hi-svg-icons/HiTransactionMenu.js +0 -46
- package/hi-svg-icons/HiUser.js +0 -52
- package/hi-svg-icons/HiVendor.js +0 -52
- package/hi-svg-icons/HiWidget.js +0 -52
- package/hi-svg-icons/index.js +0 -327
- package/hi-svg-images/HiLogo.js +0 -41
- package/hi-svg-images/HiLogoWhite.js +0 -41
- package/hi-svg-images/index.js +0 -23
- package/setupTest.js +0 -44
- package/styleguide/Wrapper.js +0 -25
- package/styles/MuiThemeProvider.js +0 -161
- package/styles/colorManipulator.js +0 -286
- package/styles/createBreakpoints.js +0 -81
- package/styles/createGenerateClassName.js +0 -86
- package/styles/createMixins.js +0 -36
- package/styles/createMuiTheme.js +0 -77
- package/styles/createPalette.js +0 -288
- package/styles/createStyles.js +0 -10
- package/styles/createTypography.js +0 -185
- package/styles/getStylesCreator.js +0 -54
- package/styles/getThemeProps.js +0 -20
- package/styles/index.js +0 -47
- package/styles/jssPreset.js +0 -31
- package/styles/makeStyles.js +0 -28
- package/styles/mergeClasses.js +0 -41
- package/styles/shadows.js +0 -17
- package/styles/shape.js +0 -11
- package/styles/spacing.js +0 -14
- package/styles/themeListener.js +0 -40
- package/styles/transitions.js +0 -106
- package/styles/withStyles.js +0 -28
- package/styles/zIndex.js +0 -18
- package/test-utils/createMount.js +0 -44
- package/test-utils/createRender.js +0 -29
- package/test-utils/createShallow.js +0 -48
- package/test-utils/getClasses.js +0 -12
- package/test-utils/index.js +0 -47
- package/test-utils/until.js +0 -49
- package/test-utils/unwrap.js +0 -10
- package/theme/palette.js +0 -106
- package/theme/typography.js +0 -170
- package/theme.js +0 -20
- package/transitions/utils.js +0 -23
- package/utils/exactProp.js +0 -43
- package/utils/helpers.js +0 -345
- package/withMobileDialog/index.js +0 -15
- package/withMobileDialog/withMobileDialog.js +0 -48
@@ -0,0 +1,1047 @@
|
|
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);
|