@tutti-os/ui-system 0.0.227 → 0.0.229
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/{chunk-FQWIOPDU.js → chunk-GYBECSSN.js} +111 -13
- package/dist/chunk-GYBECSSN.js.map +1 -0
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/metadata/components.json +3 -1
- package/dist/metadata/index.js +3 -1
- package/dist/metadata/index.js.map +1 -1
- package/package.json +1 -1
- package/ui-system.md +14 -8
- package/dist/chunk-FQWIOPDU.js.map +0 -1
|
@@ -20,6 +20,7 @@ interface AvatarProps extends Omit<ComponentProps<typeof Avatar$1.Root>, "asChil
|
|
|
20
20
|
children?: ReactNode;
|
|
21
21
|
fallback?: AvatarFallback;
|
|
22
22
|
fallbackColor?: string;
|
|
23
|
+
fallbackSrc?: string | null;
|
|
23
24
|
imageClassName?: string;
|
|
24
25
|
imageProps?: Omit<ComponentPropsWithoutRef<typeof Avatar$1.Image>, "alt" | "className" | "src"> & DataAttributes;
|
|
25
26
|
initial?: string;
|
|
@@ -28,8 +29,9 @@ interface AvatarProps extends Omit<ComponentProps<typeof Avatar$1.Root>, "asChil
|
|
|
28
29
|
size?: AvatarSize;
|
|
29
30
|
src?: string | null;
|
|
30
31
|
surfaceClassName?: string;
|
|
32
|
+
transform?: boolean;
|
|
31
33
|
}
|
|
32
|
-
declare function Avatar({ children, className, fallback, fallbackColor, imageClassName, imageProps, initial, label, loading, size, src, style, surfaceClassName, ...rootProps }: AvatarProps): React.JSX.Element;
|
|
34
|
+
declare function Avatar({ children, className, fallback, fallbackColor, fallbackSrc, imageClassName, imageProps, initial, label, loading, size, src, style, surfaceClassName, transform, ...rootProps }: AvatarProps): React.JSX.Element;
|
|
33
35
|
|
|
34
36
|
declare const badgeVariants: (props?: ({
|
|
35
37
|
variant?: "link" | "default" | "accent" | "success" | "warning" | "pending" | "muted" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
package/dist/components/index.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"category": "primitive",
|
|
104
104
|
"status": "stable",
|
|
105
105
|
"source": "src/components/avatar/index.tsx",
|
|
106
|
-
"description": "High-level identity image primitive with
|
|
106
|
+
"description": "High-level identity image primitive with rendered-size-aware CloudFront delivery and resilient fallback states.",
|
|
107
107
|
"propsType": "AvatarProps",
|
|
108
108
|
"useCases": [
|
|
109
109
|
"People and account identity",
|
|
@@ -112,6 +112,8 @@
|
|
|
112
112
|
],
|
|
113
113
|
"migrationHints": [
|
|
114
114
|
"Pass a stable label even when src is available so broken images have a meaningful fallback.",
|
|
115
|
+
"Pass a directly consumable CloudFront URL; Avatar defaults to a bucketed 2x WebP request and retries the original URL if delivery fails.",
|
|
116
|
+
"Sources are requested unchanged by default; pass transform only when the caller knows the URL supports image-delivery query parameters.",
|
|
115
117
|
"Use children for caller-owned presence badges and other overlays."
|
|
116
118
|
],
|
|
117
119
|
"storyboard": true
|
package/dist/metadata/index.js
CHANGED
|
@@ -104,7 +104,7 @@ var components_default = {
|
|
|
104
104
|
category: "primitive",
|
|
105
105
|
status: "stable",
|
|
106
106
|
source: "src/components/avatar/index.tsx",
|
|
107
|
-
description: "High-level identity image primitive with
|
|
107
|
+
description: "High-level identity image primitive with rendered-size-aware CloudFront delivery and resilient fallback states.",
|
|
108
108
|
propsType: "AvatarProps",
|
|
109
109
|
useCases: [
|
|
110
110
|
"People and account identity",
|
|
@@ -113,6 +113,8 @@ var components_default = {
|
|
|
113
113
|
],
|
|
114
114
|
migrationHints: [
|
|
115
115
|
"Pass a stable label even when src is available so broken images have a meaningful fallback.",
|
|
116
|
+
"Pass a directly consumable CloudFront URL; Avatar defaults to a bucketed 2x WebP request and retries the original URL if delivery fails.",
|
|
117
|
+
"Sources are requested unchanged by default; pass transform only when the caller knows the URL supports image-delivery query parameters.",
|
|
116
118
|
"Use children for caller-owned presence badges and other overlays."
|
|
117
119
|
],
|
|
118
120
|
storyboard: true
|