@danxbot/ui 15.37.0 → 15.38.0
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/index.js +30 -15
- package/dist/index.js.map +1 -1
- package/dist/types/components/chat/Attachment.d.ts +4 -1
- package/package.json +2 -2
|
@@ -53,6 +53,9 @@ export interface AttachmentActionProps {
|
|
|
53
53
|
/**
|
|
54
54
|
* On a tile the buttons sit over imagery, so they need their own ground —
|
|
55
55
|
* and they FADE IN on hover rather than sitting permanently over the picture.
|
|
56
|
+
* A device with no hover at all (`(hover: none)`, a phone or tablet) has
|
|
57
|
+
* nothing to fade them in with, so there they are visible at rest (DX-4039);
|
|
58
|
+
* keyboard focus still reveals them on a hover-capable one.
|
|
56
59
|
*
|
|
57
60
|
* Pass `layout === "tile"`. Getting it wrong is not a style preference: a
|
|
58
61
|
* tinted control on a row is dark-on-dark, and an untinted one on a tile is
|
|
@@ -105,7 +108,7 @@ export interface AttachmentPreviewProps {
|
|
|
105
108
|
* Video is recognised by mime type OR extension, because attachments from chat
|
|
106
109
|
* integrations arrive as `application/octet-stream`.
|
|
107
110
|
*/
|
|
108
|
-
export declare function AttachmentPreview({ file, onOpenChange, onDownload, renderBody, }: AttachmentPreviewProps): import("react").JSX.Element;
|
|
111
|
+
export declare function AttachmentPreview({ file: openFile, onOpenChange, onDownload, renderBody, }: AttachmentPreviewProps): import("react").JSX.Element;
|
|
109
112
|
export interface AttachmentListProps {
|
|
110
113
|
files: ChatFile[];
|
|
111
114
|
layout?: AttachmentLayout;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danxbot/ui",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.38.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Danxbot — a domain-agnostic React design system with motion as a first-class primitive.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"gates": "npm run shoot && npm run a11y && node scripts/shoot-overlays.mjs && npm run probe",
|
|
75
75
|
"a11y": "node scripts/a11y-scan.mjs",
|
|
76
76
|
"shoot": "node scripts/shoot.mjs",
|
|
77
|
-
"probe": "node scripts/probe-scale.mjs && node scripts/probe-switch.mjs && node scripts/probe-slider.mjs && node scripts/probe-panel.mjs && node scripts/probe-popover-width.mjs && node scripts/probe-api.mjs && node scripts/probe-api-live.mjs && node scripts/probe-tabs-overflow.mjs && node scripts/probe-stat-row.mjs && node scripts/probe-packaging.mjs && node scripts/probe-containment.mjs && node scripts/probe-popover-containment.mjs && node scripts/probe-popover-panel-width.mjs && node scripts/probe-theme-menu-overflow.mjs && node scripts/probe-shell.mjs && node scripts/probe-nav-trigger-tap-target.mjs && node scripts/probe-card-header.mjs && node scripts/probe-inline-edit.mjs && node scripts/probe-read-more.mjs && node scripts/probe-section-nav.mjs",
|
|
77
|
+
"probe": "node scripts/probe-scale.mjs && node scripts/probe-switch.mjs && node scripts/probe-slider.mjs && node scripts/probe-panel.mjs && node scripts/probe-popover-width.mjs && node scripts/probe-api.mjs && node scripts/probe-api-live.mjs && node scripts/probe-tabs-overflow.mjs && node scripts/probe-stat-row.mjs && node scripts/probe-packaging.mjs && node scripts/probe-containment.mjs && node scripts/probe-popover-containment.mjs && node scripts/probe-popover-panel-width.mjs && node scripts/probe-theme-menu-overflow.mjs && node scripts/probe-shell.mjs && node scripts/probe-nav-trigger-tap-target.mjs && node scripts/probe-attachment-touch.mjs && node scripts/probe-card-header.mjs && node scripts/probe-inline-edit.mjs && node scripts/probe-read-more.mjs && node scripts/probe-section-nav.mjs",
|
|
78
78
|
"sync": "node scripts/sync.mjs",
|
|
79
79
|
"visual": "node scripts/visual-docker.mjs",
|
|
80
80
|
"visual:update": "node scripts/visual-docker.mjs --update-snapshots",
|