pcm-shared-components 2.1.497 → 2.1.498
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,7 +12,8 @@ export const HelpButton = props => {
|
|
|
12
12
|
tooltipText,
|
|
13
13
|
size,
|
|
14
14
|
iconSize,
|
|
15
|
-
theme
|
|
15
|
+
theme,
|
|
16
|
+
onClickOverride
|
|
16
17
|
} = props;
|
|
17
18
|
const compTheme = theme ? theme : useTheme();
|
|
18
19
|
const defaultTheme = createTheme(compTheme);
|
|
@@ -28,7 +29,11 @@ export const HelpButton = props => {
|
|
|
28
29
|
variant: 'circular',
|
|
29
30
|
theme: compTheme,
|
|
30
31
|
onClick: () => {
|
|
31
|
-
|
|
32
|
+
if (onClickOverride) {
|
|
33
|
+
onClickOverride();
|
|
34
|
+
} else {
|
|
35
|
+
window.open(onClickLink, "_blank");
|
|
36
|
+
}
|
|
32
37
|
}
|
|
33
38
|
}));
|
|
34
39
|
};
|
|
@@ -40,7 +45,8 @@ HelpButton.defaultProps = {
|
|
|
40
45
|
tooltipText: '',
|
|
41
46
|
size: 'large',
|
|
42
47
|
iconSize: 24,
|
|
43
|
-
theme: undefined
|
|
48
|
+
theme: undefined,
|
|
49
|
+
onClickOverride: undefined
|
|
44
50
|
};
|
|
45
51
|
HelpButton.propTypes = {
|
|
46
52
|
/** On click link, it's the URL to navigate too */
|
|
@@ -57,5 +63,7 @@ HelpButton.propTypes = {
|
|
|
57
63
|
size: PropTypes.oneOf(['x-small', 'small', 'medium', 'large']),
|
|
58
64
|
/** Theme object to use on this component, if none provided then the MUI5 theme provider theme is used*/
|
|
59
65
|
|
|
60
|
-
theme: PropTypes.object
|
|
66
|
+
theme: PropTypes.object,
|
|
67
|
+
/** Overrides the default window.open navigation when provided, e.g. for opening an in-app panel instead of an external tab */
|
|
68
|
+
onClickOverride: PropTypes.func
|
|
61
69
|
};
|
|
@@ -1728,7 +1728,11 @@
|
|
|
1728
1728
|
"email_via_pitchcamp_description": "Send this link by email to your guest.",
|
|
1729
1729
|
"email_recipient_past_clients_heading": "Past clients for this lot",
|
|
1730
1730
|
"email_recipient_past_clients_helper": "Select Add to include a client in the To field.",
|
|
1731
|
-
"email_recipient_show_all_clients": "Show all clients"
|
|
1731
|
+
"email_recipient_show_all_clients": "Show all clients",
|
|
1732
|
+
"search_documentation": "Search Documentation",
|
|
1733
|
+
"search_documentation_placeholder": "Search documentation...",
|
|
1734
|
+
"no_documentation_results": "No documentation results",
|
|
1735
|
+
"copy_client_link": "Copy client link"
|
|
1732
1736
|
},
|
|
1733
1737
|
"connectivity": {
|
|
1734
1738
|
"offline-action-blocked": "You're offline. This action needs an internet connection and isn't available right now. It will work again once you're back online.",
|
|
@@ -5826,4 +5830,4 @@
|
|
|
5826
5830
|
"version_heading": "Version {{version}}",
|
|
5827
5831
|
"view_full_release_notes": "View full release notes"
|
|
5828
5832
|
}
|
|
5829
|
-
}
|
|
5833
|
+
}
|
|
@@ -1728,7 +1728,11 @@
|
|
|
1728
1728
|
"email_via_pitchcamp_description": "Envíe este enlace por correo electrónico a su huésped.",
|
|
1729
1729
|
"email_recipient_past_clients_heading": "Clientes anteriores de este lote",
|
|
1730
1730
|
"email_recipient_past_clients_helper": "Seleccione Agregar para incluir un cliente en el campo Para.",
|
|
1731
|
-
"email_recipient_show_all_clients": "Mostrar todos los clientes"
|
|
1731
|
+
"email_recipient_show_all_clients": "Mostrar todos los clientes",
|
|
1732
|
+
"search_documentation": "Buscar documentación",
|
|
1733
|
+
"search_documentation_placeholder": "Buscar en la documentación...",
|
|
1734
|
+
"no_documentation_results": "No se encontraron resultados de documentación",
|
|
1735
|
+
"copy_client_link": "Copiar enlace para el cliente"
|
|
1732
1736
|
},
|
|
1733
1737
|
"connectivity": {
|
|
1734
1738
|
"offline-action-blocked": "Está sin conexión. Esta acción necesita una conexión a Internet y no está disponible en este momento. Volverá a funcionar cuando vuelva a estar en línea.",
|
|
@@ -5826,4 +5830,4 @@
|
|
|
5826
5830
|
"version_heading": "Versión {{version}}",
|
|
5827
5831
|
"view_full_release_notes": "Ver notas completas"
|
|
5828
5832
|
}
|
|
5829
|
-
}
|
|
5833
|
+
}
|
|
@@ -1728,7 +1728,11 @@
|
|
|
1728
1728
|
"email_via_pitchcamp_description": "Envoyez ce lien par courriel à votre client.",
|
|
1729
1729
|
"email_recipient_past_clients_heading": "Clients précédents pour ce lot",
|
|
1730
1730
|
"email_recipient_past_clients_helper": "Sélectionnez Ajouter pour inclure un client dans le champ À.",
|
|
1731
|
-
"email_recipient_show_all_clients": "Afficher tous les clients"
|
|
1731
|
+
"email_recipient_show_all_clients": "Afficher tous les clients",
|
|
1732
|
+
"search_documentation": "Rechercher la documentation",
|
|
1733
|
+
"search_documentation_placeholder": "Rechercher dans la documentation...",
|
|
1734
|
+
"no_documentation_results": "Aucun résultat de documentation",
|
|
1735
|
+
"copy_client_link": "Copier le lien client"
|
|
1732
1736
|
},
|
|
1733
1737
|
"connectivity": {
|
|
1734
1738
|
"offline-action-blocked": "Vous êtes hors ligne. Cette action nécessite une connexion Internet et n'est pas disponible pour le moment. Elle fonctionnera de nouveau dès que vous serez de retour en ligne.",
|
|
@@ -5826,4 +5830,4 @@
|
|
|
5826
5830
|
"version_heading": "Version {{version}}",
|
|
5827
5831
|
"view_full_release_notes": "Voir les notes complètes"
|
|
5828
5832
|
}
|
|
5829
|
-
}
|
|
5833
|
+
}
|