design-zystem 1.0.411 → 1.0.412
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/ui/index.d.mts +3 -1
- package/dist/ui/index.d.ts +3 -1
- package/dist/ui/index.js +2 -1
- package/dist/ui/index.mjs +2 -1
- package/package.json +1 -1
package/dist/ui/index.d.mts
CHANGED
|
@@ -1024,13 +1024,15 @@ 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;
|
|
1027
1029
|
avatarSrc?: string | null;
|
|
1028
1030
|
/** Groupes d'actions séparés par un trait (ex. `[[compte, facturation], [déconnexion]]`), comme le `NavUser` du sidebar shadcn/ui. */
|
|
1029
1031
|
actionGroups: SidebarUserMenuAction[][];
|
|
1030
1032
|
className?: string;
|
|
1031
1033
|
}
|
|
1032
1034
|
/** 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;
|
|
1035
|
+
declare const SidebarUserMenu: ({ name, email, subtitle, hideSubtitleInPanel, avatarSrc, actionGroups, className, }: SidebarUserMenuProps) => react.JSX.Element;
|
|
1034
1036
|
|
|
1035
1037
|
interface TooltipProps extends Omit<ComponentPropsWithoutRef<typeof RadixTooltip.Trigger>, 'content' | 'children'> {
|
|
1036
1038
|
children: ReactNode;
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1024,13 +1024,15 @@ 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;
|
|
1027
1029
|
avatarSrc?: string | null;
|
|
1028
1030
|
/** Groupes d'actions séparés par un trait (ex. `[[compte, facturation], [déconnexion]]`), comme le `NavUser` du sidebar shadcn/ui. */
|
|
1029
1031
|
actionGroups: SidebarUserMenuAction[][];
|
|
1030
1032
|
className?: string;
|
|
1031
1033
|
}
|
|
1032
1034
|
/** 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;
|
|
1035
|
+
declare const SidebarUserMenu: ({ name, email, subtitle, hideSubtitleInPanel, avatarSrc, actionGroups, className, }: SidebarUserMenuProps) => react.JSX.Element;
|
|
1034
1036
|
|
|
1035
1037
|
interface TooltipProps extends Omit<ComponentPropsWithoutRef<typeof RadixTooltip.Trigger>, 'content' | 'children'> {
|
|
1036
1038
|
children: ReactNode;
|
package/dist/ui/index.js
CHANGED
|
@@ -4877,6 +4877,7 @@ var SidebarUserMenu = ({
|
|
|
4877
4877
|
name,
|
|
4878
4878
|
email,
|
|
4879
4879
|
subtitle,
|
|
4880
|
+
hideSubtitleInPanel = false,
|
|
4880
4881
|
avatarSrc,
|
|
4881
4882
|
actionGroups,
|
|
4882
4883
|
className
|
|
@@ -4951,7 +4952,7 @@ var SidebarUserMenu = ({
|
|
|
4951
4952
|
}
|
|
4952
4953
|
),
|
|
4953
4954
|
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 })
|
|
4955
|
+
subtitle && !hideSubtitleInPanel && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "truncate text-xs text-white/50", children: subtitle })
|
|
4955
4956
|
] })
|
|
4956
4957
|
] }),
|
|
4957
4958
|
actionGroups.map((group, groupIndex) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
package/dist/ui/index.mjs
CHANGED
|
@@ -4697,6 +4697,7 @@ var SidebarUserMenu = ({
|
|
|
4697
4697
|
name,
|
|
4698
4698
|
email,
|
|
4699
4699
|
subtitle,
|
|
4700
|
+
hideSubtitleInPanel = false,
|
|
4700
4701
|
avatarSrc,
|
|
4701
4702
|
actionGroups,
|
|
4702
4703
|
className
|
|
@@ -4771,7 +4772,7 @@ var SidebarUserMenu = ({
|
|
|
4771
4772
|
}
|
|
4772
4773
|
),
|
|
4773
4774
|
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 })
|
|
4775
|
+
subtitle && !hideSubtitleInPanel && /* @__PURE__ */ jsx62("span", { className: "truncate text-xs text-white/50", children: subtitle })
|
|
4775
4776
|
] })
|
|
4776
4777
|
] }),
|
|
4777
4778
|
actionGroups.map((group, groupIndex) => /* @__PURE__ */ jsx62(
|