@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.
@@ -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;
@@ -126,7 +126,7 @@ import {
126
126
  toast,
127
127
  toastVariants,
128
128
  useTextOverflow
129
- } from "../chunk-FQWIOPDU.js";
129
+ } from "../chunk-GYBECSSN.js";
130
130
  import "../chunk-JVOHHYQF.js";
131
131
  import "../chunk-DGPY4WP3.js";
132
132
  export {
package/dist/index.js CHANGED
@@ -126,7 +126,7 @@ import {
126
126
  toast,
127
127
  toastVariants,
128
128
  useTextOverflow
129
- } from "./chunk-FQWIOPDU.js";
129
+ } from "./chunk-GYBECSSN.js";
130
130
  import {
131
131
  formatTuttiDateTime,
132
132
  formatTuttiShortDateTime,
@@ -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 initial, empty, loading, and broken-image fallback states.",
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
@@ -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 initial, empty, loading, and broken-image fallback states.",
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