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.
- package/dist/ui/index.d.mts +4 -1
- package/dist/ui/index.d.ts +4 -1
- package/dist/ui/index.js +3 -3
- package/dist/ui/index.mjs +3 -3
- package/package.json +1 -1
package/dist/ui/index.d.mts
CHANGED
|
@@ -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
|
-
|
|
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.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
|
3825
|
-
const badgeSize = Math.round(
|
|
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
|
|
3648
|
-
const badgeSize = Math.round(
|
|
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({
|