design-zystem 1.0.411 → 1.0.413

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.
@@ -1024,13 +1024,17 @@ interface SidebarUserMenuProps {
1024
1024
  email?: string;
1025
1025
  /** Ligne libre sous `email` (ex. le nom d'un client impersoné) — sur sa propre ligne, tronquée indépendamment, pour les valeurs potentiellement longues. */
1026
1026
  subtitle?: ReactNode;
1027
+ /** `subtitle` n'est affiché que dans le bouton fermé, pas répété en haut du panneau ouvert. Défaut `false` (affiché aux deux endroits). */
1028
+ hideSubtitleInPanel?: boolean;
1029
+ /** `subtitle` n'est affiché que dans le panneau ouvert, pas dans le bouton fermé toujours visible. Défaut `false` (affiché aux deux endroits). */
1030
+ hideSubtitleInTrigger?: boolean;
1027
1031
  avatarSrc?: string | null;
1028
1032
  /** Groupes d'actions séparés par un trait (ex. `[[compte, facturation], [déconnexion]]`), comme le `NavUser` du sidebar shadcn/ui. */
1029
1033
  actionGroups: SidebarUserMenuAction[][];
1030
1034
  className?: string;
1031
1035
  }
1032
1036
  /** Bloc profil du `SidebarFooter` : avatar + nom/e-mail, ouvrant un menu d'actions groupées — calqué sur le `NavUser` du sidebar shadcn/ui (thème sombre propre au `Sidebar`, indépendant du `Popover` clair partagé). Une action avec `subActions` ouvre un panneau secondaire à droite (flyout), sur le même principe que le menu principal. Replié : seul l'avatar reste, le menu s'ouvre toujours au clic. */
1033
- declare const SidebarUserMenu: ({ name, email, subtitle, avatarSrc, actionGroups, className, }: SidebarUserMenuProps) => react.JSX.Element;
1037
+ declare const SidebarUserMenu: ({ name, email, subtitle, hideSubtitleInPanel, hideSubtitleInTrigger, avatarSrc, actionGroups, className, }: SidebarUserMenuProps) => react.JSX.Element;
1034
1038
 
1035
1039
  interface TooltipProps extends Omit<ComponentPropsWithoutRef<typeof RadixTooltip.Trigger>, 'content' | 'children'> {
1036
1040
  children: ReactNode;
@@ -1024,13 +1024,17 @@ interface SidebarUserMenuProps {
1024
1024
  email?: string;
1025
1025
  /** Ligne libre sous `email` (ex. le nom d'un client impersoné) — sur sa propre ligne, tronquée indépendamment, pour les valeurs potentiellement longues. */
1026
1026
  subtitle?: ReactNode;
1027
+ /** `subtitle` n'est affiché que dans le bouton fermé, pas répété en haut du panneau ouvert. Défaut `false` (affiché aux deux endroits). */
1028
+ hideSubtitleInPanel?: boolean;
1029
+ /** `subtitle` n'est affiché que dans le panneau ouvert, pas dans le bouton fermé toujours visible. Défaut `false` (affiché aux deux endroits). */
1030
+ hideSubtitleInTrigger?: boolean;
1027
1031
  avatarSrc?: string | null;
1028
1032
  /** Groupes d'actions séparés par un trait (ex. `[[compte, facturation], [déconnexion]]`), comme le `NavUser` du sidebar shadcn/ui. */
1029
1033
  actionGroups: SidebarUserMenuAction[][];
1030
1034
  className?: string;
1031
1035
  }
1032
1036
  /** Bloc profil du `SidebarFooter` : avatar + nom/e-mail, ouvrant un menu d'actions groupées — calqué sur le `NavUser` du sidebar shadcn/ui (thème sombre propre au `Sidebar`, indépendant du `Popover` clair partagé). Une action avec `subActions` ouvre un panneau secondaire à droite (flyout), sur le même principe que le menu principal. Replié : seul l'avatar reste, le menu s'ouvre toujours au clic. */
1033
- declare const SidebarUserMenu: ({ name, email, subtitle, avatarSrc, actionGroups, className, }: SidebarUserMenuProps) => react.JSX.Element;
1037
+ declare const SidebarUserMenu: ({ name, email, subtitle, hideSubtitleInPanel, hideSubtitleInTrigger, avatarSrc, actionGroups, className, }: SidebarUserMenuProps) => react.JSX.Element;
1034
1038
 
1035
1039
  interface TooltipProps extends Omit<ComponentPropsWithoutRef<typeof RadixTooltip.Trigger>, 'content' | 'children'> {
1036
1040
  children: ReactNode;
package/dist/ui/index.js CHANGED
@@ -4877,6 +4877,8 @@ var SidebarUserMenu = ({
4877
4877
  name,
4878
4878
  email,
4879
4879
  subtitle,
4880
+ hideSubtitleInPanel = false,
4881
+ hideSubtitleInTrigger = false,
4880
4882
  avatarSrc,
4881
4883
  actionGroups,
4882
4884
  className
@@ -4913,7 +4915,7 @@ var SidebarUserMenu = ({
4913
4915
  }
4914
4916
  ),
4915
4917
  email && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "truncate text-xs text-white/50", children: email }),
4916
- subtitle && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "truncate text-xs text-white/50", children: subtitle })
4918
+ subtitle && !hideSubtitleInTrigger && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "truncate text-xs text-white/50", children: subtitle })
4917
4919
  ] }),
4918
4920
  /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
4919
4921
  FaIcon,
@@ -4951,7 +4953,7 @@ var SidebarUserMenu = ({
4951
4953
  }
4952
4954
  ),
4953
4955
  email && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "truncate text-xs text-white/50", children: email }),
4954
- subtitle && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "truncate text-xs text-white/50", children: subtitle })
4956
+ subtitle && !hideSubtitleInPanel && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "truncate text-xs text-white/50", children: subtitle })
4955
4957
  ] })
4956
4958
  ] }),
4957
4959
  actionGroups.map((group, groupIndex) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
package/dist/ui/index.mjs CHANGED
@@ -4697,6 +4697,8 @@ var SidebarUserMenu = ({
4697
4697
  name,
4698
4698
  email,
4699
4699
  subtitle,
4700
+ hideSubtitleInPanel = false,
4701
+ hideSubtitleInTrigger = false,
4700
4702
  avatarSrc,
4701
4703
  actionGroups,
4702
4704
  className
@@ -4733,7 +4735,7 @@ var SidebarUserMenu = ({
4733
4735
  }
4734
4736
  ),
4735
4737
  email && /* @__PURE__ */ jsx62("span", { className: "truncate text-xs text-white/50", children: email }),
4736
- subtitle && /* @__PURE__ */ jsx62("span", { className: "truncate text-xs text-white/50", children: subtitle })
4738
+ subtitle && !hideSubtitleInTrigger && /* @__PURE__ */ jsx62("span", { className: "truncate text-xs text-white/50", children: subtitle })
4737
4739
  ] }),
4738
4740
  /* @__PURE__ */ jsx62(
4739
4741
  FaIcon,
@@ -4771,7 +4773,7 @@ var SidebarUserMenu = ({
4771
4773
  }
4772
4774
  ),
4773
4775
  email && /* @__PURE__ */ jsx62("span", { className: "truncate text-xs text-white/50", children: email }),
4774
- subtitle && /* @__PURE__ */ jsx62("span", { className: "truncate text-xs text-white/50", children: subtitle })
4776
+ subtitle && !hideSubtitleInPanel && /* @__PURE__ */ jsx62("span", { className: "truncate text-xs text-white/50", children: subtitle })
4775
4777
  ] })
4776
4778
  ] }),
4777
4779
  actionGroups.map((group, groupIndex) => /* @__PURE__ */ jsx62(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-zystem",
3
- "version": "1.0.411",
3
+ "version": "1.0.413",
4
4
  "description": "A React design system of importable components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",