@estiva-app/ui 0.69.1 → 0.69.2
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/AttachmentCard.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/registry.json +1 -1
- package/src/AttachmentCard.tsx +8 -2
package/package.json
CHANGED
package/registry.json
CHANGED
package/src/AttachmentCard.tsx
CHANGED
|
@@ -429,9 +429,15 @@ export function AttachmentCard({
|
|
|
429
429
|
return (
|
|
430
430
|
// `role="status"`: a plain box may not carry a name (axe, aria-prohibited-attr), and a
|
|
431
431
|
// status says what it is doing — loading — to a reader that cannot see the pulse.
|
|
432
|
+
// The ready picture's shell — its 112px area and the name row under it — so nothing below moves as it
|
|
433
|
+
// arrives (Peek OPT-10: a loading box 34px shorter than the card it became pushed the conversation).
|
|
432
434
|
// @estiva-escape(no-restyled-part): the loading pulse is AttachmentCard's own state; Card has no loading state (UIG-9, Katerina 17 September)
|
|
433
|
-
<Card role="status" fill="inset" aria-busy="true" aria-label={`Loading ${name}`} className={cn('w-[180px]
|
|
434
|
-
|
|
435
|
+
<Card role="status" fill="inset" aria-busy="true" aria-label={`Loading ${name}`} clip className={cn('flex flex-col w-[180px] animate-pulse', className)} {...props}>
|
|
436
|
+
<div className="w-full h-28" />
|
|
437
|
+
<div className="flex items-center gap-1 pl-2 pr-1 py-1 min-w-0">
|
|
438
|
+
<Truncating text={name} className="flex-1 text-caption text-text-primary truncate" wrapperClassName="flex-1" />
|
|
439
|
+
{downloadControl}
|
|
440
|
+
</div>
|
|
435
441
|
</Card>
|
|
436
442
|
)
|
|
437
443
|
}
|