design-zystem 1.0.396 → 1.0.397

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.
@@ -811,7 +811,10 @@ interface AvatarFallbackProps extends ComponentPropsWithoutRef<typeof RadixAvata
811
811
  color?: ColorToken;
812
812
  }
813
813
  declare const AvatarFallback: react.ForwardRefExoticComponent<AvatarFallbackProps & react.RefAttributes<HTMLSpanElement>>;
814
- type AvatarBadgeProps = HTMLAttributes<HTMLDivElement>;
814
+ interface AvatarBadgeProps extends HTMLAttributes<HTMLDivElement> {
815
+ /** Diamètre en px. Par défaut 35 % de l'Avatar parent — à augmenter quand le badge porte une icône qui doit rester lisible sur un petit avatar. */
816
+ size?: number;
817
+ }
815
818
  /** Positionné dans le coin bas-droit de l'Avatar parent (via context de taille) — un point de statut nu (`<AvatarBadge className="bg-green-700" />`) ou une icône en enfant. */
816
819
  declare const AvatarBadge: react.ForwardRefExoticComponent<AvatarBadgeProps & react.RefAttributes<HTMLDivElement>>;
817
820
  interface AvatarGroupProps extends HTMLAttributes<HTMLDivElement> {
@@ -811,7 +811,10 @@ interface AvatarFallbackProps extends ComponentPropsWithoutRef<typeof RadixAvata
811
811
  color?: ColorToken;
812
812
  }
813
813
  declare const AvatarFallback: react.ForwardRefExoticComponent<AvatarFallbackProps & react.RefAttributes<HTMLSpanElement>>;
814
- type AvatarBadgeProps = HTMLAttributes<HTMLDivElement>;
814
+ interface AvatarBadgeProps extends HTMLAttributes<HTMLDivElement> {
815
+ /** Diamètre en px. Par défaut 35 % de l'Avatar parent — à augmenter quand le badge porte une icône qui doit rester lisible sur un petit avatar. */
816
+ size?: number;
817
+ }
815
818
  /** Positionné dans le coin bas-droit de l'Avatar parent (via context de taille) — un point de statut nu (`<AvatarBadge className="bg-green-700" />`) ou une icône en enfant. */
816
819
  declare const AvatarBadge: react.ForwardRefExoticComponent<AvatarBadgeProps & react.RefAttributes<HTMLDivElement>>;
817
820
  interface AvatarGroupProps extends HTMLAttributes<HTMLDivElement> {
package/dist/ui/index.js CHANGED
@@ -3820,9 +3820,9 @@ var AvatarFallback = (0, import_react26.forwardRef)((_a, ref) => {
3820
3820
  AvatarFallback.displayName = "AvatarFallback";
3821
3821
  var AvatarBadge = (0, import_react26.forwardRef)(
3822
3822
  (_a, ref) => {
3823
- var _b = _a, { className, style } = _b, props = __objRest(_b, ["className", "style"]);
3824
- const size = useAvatarSize();
3825
- const badgeSize = Math.round(size * 0.35);
3823
+ var _b = _a, { size, className, style } = _b, props = __objRest(_b, ["size", "className", "style"]);
3824
+ const avatarSize = useAvatarSize();
3825
+ const badgeSize = size != null ? size : Math.round(avatarSize * 0.35);
3826
3826
  return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3827
3827
  "div",
3828
3828
  __spreadValues({
package/dist/ui/index.mjs CHANGED
@@ -3643,9 +3643,9 @@ var AvatarFallback = forwardRef17((_a, ref) => {
3643
3643
  AvatarFallback.displayName = "AvatarFallback";
3644
3644
  var AvatarBadge = forwardRef17(
3645
3645
  (_a, ref) => {
3646
- var _b = _a, { className, style } = _b, props = __objRest(_b, ["className", "style"]);
3647
- const size = useAvatarSize();
3648
- const badgeSize = Math.round(size * 0.35);
3646
+ var _b = _a, { size, className, style } = _b, props = __objRest(_b, ["size", "className", "style"]);
3647
+ const avatarSize = useAvatarSize();
3648
+ const badgeSize = size != null ? size : Math.round(avatarSize * 0.35);
3649
3649
  return /* @__PURE__ */ jsx44(
3650
3650
  "div",
3651
3651
  __spreadValues({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-zystem",
3
- "version": "1.0.396",
3
+ "version": "1.0.397",
4
4
  "description": "A React design system of importable components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",