@gouvfr-lasuite/ui-kit 0.19.8 → 0.19.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -287,9 +287,9 @@ function k1() {
287
287
  return Va || (Va = 1, process.env.NODE_ENV === "production" ? mn.exports = A1() : mn.exports = T1()), mn.exports;
288
288
  }
289
289
  var g = k1();
290
- const I1 = { share: { copyLink: "Copy link", ok: "OK", shareButton: "Share", modalTitle: "Share folder", modalAriaLabel: "Share modal", access: { delete: "Remove access" }, cannot_view: { message: "You can view this item but you need additional access to view its members or modify the settings." }, invitations: { title: "Pending invitations" }, members: { title_plural: "Shared between {count} people", title_singular: "Shared between {count} person", load_more: "Show more " }, item: { add: "Add" }, search: { placeholder: "Search user", group_name: "Search user result" }, user: { no_result: "No result", placeholder: "Search user" }, linkSettings: { title: "Link settings", reach: { choices: { public: { title: "Public", description: "Anyone with the link can access the document" }, authenticated: { title: "Authenticated", description: "Only authenticated users can access the document" }, restricted: { title: "Private", description: "Only users of the space can access the document" } } }, role: { choices: { reader: { title: "Reader" }, editor: { title: "Editor" } } } } }, laGaufre: { label: "Digital LaSuite services", closeLabel: "Close the menu", viewMoreLabel: "View more", viewLessLabel: "View less", loadingText: "Loading…", newWindowLabelSuffix: " (new window)", headerLabel: "About" }, userMenu: { term_of_service: "Terms of service", manage_account: "Manage account", open: "Open user menu", close: "Close user menu", accountSettings: "Account settings", logout: "Logout", dialogTitle: "User menu" }, treeView: { viewMore: "Load more elements" }, footer: { logo: { alt: "Logo of the French government" } }, onboarding: { skip: "Skip", next: "Next", previous: "Previous", complete: "Understood", stepLabel: "Step {current} of {total}: {title}", currentStepSuffix: " (current)", contentRegionLabel: "Step {current} of {total} content" } }, O1 = {
290
+ const I1 = { share: { copyLink: "Copy link", ok: "OK", shareButton: "Share", modalTitle: "Share folder", modalAriaLabel: "Share modal", access: { delete: "Remove access" }, cannot_view: { message: "You can view this item but you need additional access to view its members or modify the settings." }, invitations: { title: "Pending invitations" }, members: { title_plural: "Shared between {count} people", title_singular: "Shared between {count} person", load_more: "Show more " }, item: { add: "Add" }, search: { placeholder: "Search user", group_name: "Search user result" }, user: { no_result: "No result", placeholder: "Search for a user to invite" }, linkSettings: { title: "Link settings", reach: { choices: { public: { title: "Public", description: "Anyone with the link can access the document" }, authenticated: { title: "Authenticated", description: "Only authenticated users can access the document" }, restricted: { title: "Private", description: "Only users of the space can access the document" } } }, role: { choices: { reader: { title: "Reader" }, editor: { title: "Editor" } } } } }, laGaufre: { label: "Digital LaSuite services", closeLabel: "Close the menu", viewMoreLabel: "View more", viewLessLabel: "View less", loadingText: "Loading…", newWindowLabelSuffix: " (new window)", headerLabel: "About" }, userMenu: { term_of_service: "Terms of service", manage_account: "Manage account", open: "Open user menu", close: "Close user menu", accountSettings: "Account settings", logout: "Logout", dialogTitle: "User menu" }, treeView: { viewMore: "Load more elements" }, footer: { logo: { alt: "Logo of the French government" } }, onboarding: { skip: "Skip", next: "Next", previous: "Previous", complete: "Understood", stepLabel: "Step {current} of {total}: {title}", currentStepSuffix: " (current)", contentRegionLabel: "Step {current} of {total} content" } }, O1 = {
291
291
  components: I1
292
- }, N1 = { share: { copyLink: "Copier le lien", ok: "OK", modalTitle: "Partage", modalAriaLabel: "Modale de partage", shareButton: "Partager", access: { delete: "Retirer l'accès" }, cannot_view: { message: "Vous pouvez voir cet élément mais vous avez besoin d'un accès supplémentaire pour voir ses membres ou modifier les paramètres." }, invitations: { title: "Invitations en attente" }, members: { title_plural: "Partagé entre {count} personnes", title_singular: "Partagé entre {count} personne", load_more: "Afficher plus" }, item: { add: "Ajouter" }, search: { placeholder: "Rechercher un utilisateur", group_name: "Résultat de la recherche d'utilisateur" }, user: { no_result: "Aucun résultat", placeholder: "Rechercher un utilisateur" }, linkSettings: { title: "Paramètres du lien", reach: { choices: { public: { title: "Public", description: "N'importe qui avec le lien peut accéder au document" }, restricted: { title: "Privé", description: "Seules les personnes avec accès peuvent l'ouvrir à l'aide du lien" }, authenticated: { title: "Authenticated", description: "Seuls les utilisateurs authentifiés peuvent accéder au document" } } }, role: { choices: { reader: { title: "Lecture seule" }, editor: { title: "Édition" } } } } }, laGaufre: { label: "Services de la Suite numérique", closeLabel: "Fermer le menu", loadingText: "Chargement…", viewMoreLabel: "Voir plus", viewLessLabel: "Voir moins", newWindowLabelSuffix: " (nouvelle fenêtre)", headerLabel: "À propos" }, userMenu: { term_of_service: "Conditions d'utilisation", open: "Ouvrir le menu utilisateur", close: "Fermer le menu utilisateur", accountSettings: "Paramètres du compte", logout: "Déconnexion", dialogTitle: "Menu utilisateur", manage_account: "Gérer le compte" }, treeView: { viewMore: "Charger plus d'éléments" }, footer: { logo: { alt: "Logo du gouvernement français" } }, onboarding: { skip: "Passer", next: "Suivant", previous: "Précédent", complete: "Compris", stepLabel: "Étape {current} sur {total} : {title}", currentStepSuffix: " (actuelle)", contentRegionLabel: "Contenu de l'étape {current} sur {total}" } }, B1 = {
292
+ }, N1 = { share: { copyLink: "Copier le lien", ok: "OK", modalTitle: "Partage", modalAriaLabel: "Modale de partage", shareButton: "Partager", access: { delete: "Retirer l'accès" }, cannot_view: { message: "Vous pouvez voir cet élément mais vous avez besoin d'un accès supplémentaire pour voir ses membres ou modifier les paramètres." }, invitations: { title: "Invitations en attente" }, members: { title_plural: "Partagé entre {count} personnes", title_singular: "Partagé entre {count} personne", load_more: "Afficher plus" }, item: { add: "Ajouter" }, search: { placeholder: "Rechercher un utilisateur", group_name: "Résultat de la recherche d'utilisateur" }, user: { no_result: "Aucun résultat", placeholder: "Rechercher un utilisateur à inviter" }, linkSettings: { title: "Paramètres du lien", reach: { choices: { public: { title: "Public", description: "N'importe qui avec le lien peut accéder au document" }, restricted: { title: "Privé", description: "Seules les personnes avec accès peuvent l'ouvrir à l'aide du lien" }, authenticated: { title: "Authenticated", description: "Seuls les utilisateurs authentifiés peuvent accéder au document" } } }, role: { choices: { reader: { title: "Lecture seule" }, editor: { title: "Édition" } } } } }, laGaufre: { label: "Services de la Suite numérique", closeLabel: "Fermer le menu", loadingText: "Chargement…", viewMoreLabel: "Voir plus", viewLessLabel: "Voir moins", newWindowLabelSuffix: " (nouvelle fenêtre)", headerLabel: "À propos" }, userMenu: { term_of_service: "Conditions d'utilisation", open: "Ouvrir le menu utilisateur", close: "Fermer le menu utilisateur", accountSettings: "Paramètres du compte", logout: "Déconnexion", dialogTitle: "Menu utilisateur", manage_account: "Gérer le compte" }, treeView: { viewMore: "Charger plus d'éléments" }, footer: { logo: { alt: "Logo du gouvernement français" } }, onboarding: { skip: "Passer", next: "Suivant", previous: "Précédent", complete: "Compris", stepLabel: "Étape {current} sur {total} : {title}", currentStepSuffix: " (actuelle)", contentRegionLabel: "Contenu de l'étape {current} sur {total}" } }, B1 = {
293
293
  components: N1
294
294
  };
295
295
  function Qi(t) {
@@ -8862,7 +8862,7 @@ const Up = /* @__PURE__ */ Ii("item", (t, e, r) => {
8862
8862
  onBlur: l
8863
8863
  }) => {
8864
8864
  const { open: a } = Gp(), s = (c) => {
8865
- if (n)
8865
+ if (n || !c.currentTarget.contains(c.target))
8866
8866
  return;
8867
8867
  c.preventDefault(), c.stopPropagation();
8868
8868
  const u = typeof e == "function" ? e(r) : e;
@@ -21810,13 +21810,22 @@ const La = ({
21810
21810
  }) => {
21811
21811
  const o = !!n || !!i, { t: l } = Fe(), a = t ? t.full_name ?? t.email : void 0, s = a ? h1(a) : void 0;
21812
21812
  return t ? /* @__PURE__ */ g.jsx(g.Fragment, { children: /* @__PURE__ */ g.jsxs("div", { className: "user-menu__content__body", children: [
21813
- /* @__PURE__ */ g.jsxs("div", { className: "user-menu__content__body__user-info", style: { "--gradient-color": `var(--c--contextuals--background--palette--${s}--primary)` }, children: [
21814
- /* @__PURE__ */ g.jsx(Ma, { fullName: a }),
21815
- /* @__PURE__ */ g.jsx("div", { className: "user-menu__content__identity__name", children: t.full_name ? /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
21816
- /* @__PURE__ */ g.jsx("p", { className: "user-menu__content__identity__name", children: /* @__PURE__ */ g.jsx("strong", { children: t.full_name }) }),
21817
- /* @__PURE__ */ g.jsx("p", { className: "user-menu__content__identity__email", children: t.email })
21818
- ] }) : /* @__PURE__ */ g.jsx("p", { className: "user-menu__content__identity__email", children: /* @__PURE__ */ g.jsx("strong", { children: t.email }) }) })
21819
- ] }),
21813
+ /* @__PURE__ */ g.jsxs(
21814
+ "div",
21815
+ {
21816
+ className: "user-menu__content__body__user-info",
21817
+ style: {
21818
+ "--gradient-color": `var(--c--contextuals--background--palette--${s}--primary)`
21819
+ },
21820
+ children: [
21821
+ /* @__PURE__ */ g.jsx(Ma, { fullName: a }),
21822
+ /* @__PURE__ */ g.jsx("div", { className: "user-menu__content__identity", children: t.full_name ? /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
21823
+ /* @__PURE__ */ g.jsx("p", { className: "user-menu__content__identity__name", children: /* @__PURE__ */ g.jsx("strong", { children: t.full_name }) }),
21824
+ /* @__PURE__ */ g.jsx("p", { className: "user-menu__content__identity__email", children: t.email })
21825
+ ] }) : /* @__PURE__ */ g.jsx("p", { className: "user-menu__content__identity__email", children: /* @__PURE__ */ g.jsx("strong", { children: t.email }) }) })
21826
+ ]
21827
+ }
21828
+ ),
21820
21829
  r && /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
21821
21830
  /* @__PURE__ */ g.jsx(vi, { withPadding: !1 }),
21822
21831
  /* @__PURE__ */ g.jsx("div", { className: "user-menu__content__body__settings", children: e.map((c) => /* @__PURE__ */ g.jsx(
@@ -21959,8 +21968,8 @@ const La = ({
21959
21968
  return t ? /* @__PURE__ */ g.jsx(
21960
21969
  xe,
21961
21970
  {
21971
+ className: "user-menu__button",
21962
21972
  variant: "tertiary",
21963
- size: "small",
21964
21973
  ref: e,
21965
21974
  id: r,
21966
21975
  onClick: i,
@@ -21970,7 +21979,7 @@ const La = ({
21970
21979
  title: o(
21971
21980
  n ? "components.userMenu.close" : "components.userMenu.open"
21972
21981
  ),
21973
- children: /* @__PURE__ */ g.jsx(Ma, { fullName: t.full_name ?? t.email })
21982
+ children: /* @__PURE__ */ g.jsx(Ma, { size: "small", fullName: t.full_name ?? t.email })
21974
21983
  }
21975
21984
  ) : null;
21976
21985
  }, v1 = () => {