@mcp-b/react-components 0.5.2 → 0.5.3

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.
@@ -102,10 +102,47 @@ button[data-streamdown="link"] {
102
102
  }
103
103
 
104
104
  [data-streamdown="image-wrapper"] {
105
+ position: relative;
105
106
  display: inline-block;
106
107
  margin-block: 0.5rem;
107
108
  }
108
109
 
110
+ /* The hover scrim and download button carry no data attributes, only
111
+ Tailwind classes we don't compile. The scrim adds nothing here; the
112
+ button becomes a hover-revealed overlay in the image corner. */
113
+ [data-streamdown="image-wrapper"] > div {
114
+ display: none;
115
+ }
116
+
117
+ [data-streamdown="image-wrapper"] > button {
118
+ position: absolute;
119
+ inset-block-end: 0.375rem;
120
+ inset-inline-end: 0.375rem;
121
+ display: inline-flex;
122
+ align-items: center;
123
+ justify-content: center;
124
+ padding: 0.25rem;
125
+ border: var(--sigvelo-border-style) var(--sigvelo-border-width)
126
+ var(--sigvelo-color-neutral-border-subtle);
127
+ border-radius: var(--sigvelo-radius-sm);
128
+ background-color: var(--sigvelo-color-surface);
129
+ color: var(--sigvelo-color-text-muted);
130
+ cursor: pointer;
131
+ opacity: 0;
132
+ transition:
133
+ opacity 120ms ease,
134
+ color 120ms ease;
135
+ }
136
+
137
+ [data-streamdown="image-wrapper"]:hover > button,
138
+ [data-streamdown="image-wrapper"] > button:focus-visible {
139
+ opacity: 1;
140
+ }
141
+
142
+ [data-streamdown="image-wrapper"] > button:hover {
143
+ color: var(--sigvelo-color-text);
144
+ }
145
+
109
146
  [data-streamdown="image"] {
110
147
  max-width: 100%;
111
148
  border-radius: var(--sigvelo-radius-md);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-b/react-components",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "MCP-B React components built on Base UI and shared design tokens, including Cloudflare Think chat primitives.",
5
5
  "homepage": "https://design-system.sigvelo.com",
6
6
  "bugs": {
@@ -49,7 +49,7 @@
49
49
  "anser": "^2.3.5",
50
50
  "shiki": "^3.23.0",
51
51
  "streamdown": "^2.5.0",
52
- "@mcp-b/design-tokens": "0.5.2"
52
+ "@mcp-b/design-tokens": "0.5.3"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@ai-sdk/react": "^3.0.194",