@revikornmann/muka-ui 0.12.0 → 0.14.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/build/manifest.json +10 -0
- package/dist/cjs/components/AgentTaskList/AgentTaskList.js +1 -1
- package/dist/cjs/components/BadgeNumber/BadgeNumber.css +105 -0
- package/dist/cjs/components/BadgeNumber/BadgeNumber.js +19 -0
- package/dist/cjs/components/BadgeNumber/BadgeNumber.js.map +1 -0
- package/dist/cjs/components/BadgeNumber/index.js +11 -0
- package/dist/cjs/components/BadgeNumber/index.js.map +1 -0
- package/dist/cjs/components/ChatMessage/ChatMessage.css +324 -0
- package/dist/cjs/components/ChatMessage/ChatMessage.js +138 -0
- package/dist/cjs/components/ChatMessage/ChatMessage.js.map +1 -0
- package/dist/cjs/components/ChatMessage/index.js +7 -0
- package/dist/cjs/components/ChatMessage/index.js.map +1 -0
- package/dist/cjs/components/ChatMessageList/ChatMessageList.js +1 -1
- package/dist/cjs/components/ChatMessageStack/ChatMessageStack.css +51 -0
- package/dist/cjs/components/ChatMessageStack/ChatMessageStack.js +49 -0
- package/dist/cjs/components/ChatMessageStack/ChatMessageStack.js.map +1 -0
- package/dist/cjs/components/ChatMessageStack/index.js +6 -0
- package/dist/cjs/components/ChatMessageStack/index.js.map +1 -0
- package/dist/cjs/components/ChatPhotoGrid/ChatPhotoGrid.css +8 -2
- package/dist/cjs/components/ChatPhotoGrid/ChatPhotoGrid.js +1 -1
- package/dist/cjs/components/Menu/Menu.js +5 -4
- package/dist/cjs/components/Menu/Menu.js.map +1 -1
- package/dist/cjs/components/index.js +9 -5
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/utils/useLongPress.js +71 -0
- package/dist/cjs/utils/useLongPress.js.map +1 -0
- package/dist/esm/components/AgentTaskList/AgentTaskList.js +1 -1
- package/dist/esm/components/BadgeNumber/BadgeNumber.css +105 -0
- package/dist/esm/components/BadgeNumber/BadgeNumber.js +15 -0
- package/dist/esm/components/BadgeNumber/BadgeNumber.js.map +1 -0
- package/dist/esm/components/BadgeNumber/index.js +3 -0
- package/dist/esm/components/BadgeNumber/index.js.map +1 -0
- package/dist/esm/components/ChatMessage/ChatMessage.css +324 -0
- package/dist/esm/components/ChatMessage/ChatMessage.js +134 -0
- package/dist/esm/components/ChatMessage/ChatMessage.js.map +1 -0
- package/dist/esm/components/ChatMessage/index.js +2 -0
- package/dist/esm/components/ChatMessage/index.js.map +1 -0
- package/dist/esm/components/ChatMessageList/ChatMessageList.js +1 -1
- package/dist/esm/components/ChatMessageStack/ChatMessageStack.css +51 -0
- package/dist/esm/components/ChatMessageStack/ChatMessageStack.js +42 -0
- package/dist/esm/components/ChatMessageStack/ChatMessageStack.js.map +1 -0
- package/dist/esm/components/ChatMessageStack/index.js +2 -0
- package/dist/esm/components/ChatMessageStack/index.js.map +1 -0
- package/dist/esm/components/ChatPhotoGrid/ChatPhotoGrid.css +8 -2
- package/dist/esm/components/ChatPhotoGrid/ChatPhotoGrid.js +1 -1
- package/dist/esm/components/Menu/Menu.js +5 -4
- package/dist/esm/components/Menu/Menu.js.map +1 -1
- package/dist/esm/components/index.js +3 -1
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/utils/useLongPress.js +68 -0
- package/dist/esm/utils/useLongPress.js.map +1 -0
- package/dist/styles/components/BadgeNumber.css +105 -0
- package/dist/styles/components/ChatMessage.css +324 -0
- package/dist/styles/components/ChatMessageStack.css +51 -0
- package/dist/styles/components/ChatPhotoGrid.css +8 -2
- package/dist/styles/index.css +2694 -2475
- package/dist/styles/muka-dark.css +2694 -2475
- package/dist/styles/muka-light.css +2694 -2475
- package/dist/styles/tokens-bouwplan-dark.css +32 -5
- package/dist/styles/tokens-bouwplan-light.css +32 -5
- package/dist/styles/tokens-fscl-dark.css +32 -5
- package/dist/styles/tokens-fscl-light.css +32 -5
- package/dist/styles/tokens-grip-dark.css +32 -5
- package/dist/styles/tokens-grip-light.css +32 -5
- package/dist/styles/tokens-muka-dark.css +32 -5
- package/dist/styles/tokens-muka-light.css +32 -5
- package/dist/styles/tokens-wireframe-dark.css +31 -4
- package/dist/styles/tokens-wireframe-light.css +31 -4
- package/dist/styles/wireframe-dark.css +2693 -2474
- package/dist/styles/wireframe-light.css +2693 -2474
- package/dist/types/components/AgentTaskList/AgentTaskList.d.ts +1 -1
- package/dist/types/components/BadgeNumber/BadgeNumber.d.ts +17 -0
- package/dist/types/components/BadgeNumber/BadgeNumber.d.ts.map +1 -0
- package/dist/types/components/BadgeNumber/index.d.ts +3 -0
- package/dist/types/components/BadgeNumber/index.d.ts.map +1 -0
- package/dist/types/components/ChatMessage/ChatMessage.d.ts +127 -0
- package/dist/types/components/ChatMessage/ChatMessage.d.ts.map +1 -0
- package/dist/types/components/ChatMessage/index.d.ts +2 -0
- package/dist/types/components/ChatMessage/index.d.ts.map +1 -0
- package/dist/types/components/ChatMessageList/ChatMessageList.d.ts +2 -2
- package/dist/types/components/ChatMessageList/ChatMessageList.d.ts.map +1 -1
- package/dist/types/components/ChatMessageStack/ChatMessageStack.d.ts +46 -0
- package/dist/types/components/ChatMessageStack/ChatMessageStack.d.ts.map +1 -0
- package/dist/types/components/ChatMessageStack/index.d.ts +2 -0
- package/dist/types/components/ChatMessageStack/index.d.ts.map +1 -0
- package/dist/types/components/ChatPhotoGrid/ChatPhotoGrid.d.ts +1 -1
- package/dist/types/components/Menu/Menu.d.ts +12 -0
- package/dist/types/components/Menu/Menu.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +3 -1
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/utils/useLongPress.d.ts +28 -0
- package/dist/types/utils/useLongPress.d.ts.map +1 -0
- package/package.json +1 -1
- package/tokens/t3-semantics/ui.json +29 -0
- package/tokens/t4-components/badge-number.json +48 -0
- package/tokens/t4-components/chatbubble.json +33 -7
- package/tokens/t4-components/chatphotogrid.json +2 -2
- package/dist/cjs/components/ChatBubble/ChatBubble.css +0 -300
- package/dist/cjs/components/ChatBubble/ChatBubble.js +0 -37
- package/dist/cjs/components/ChatBubble/ChatBubble.js.map +0 -1
- package/dist/cjs/components/ChatBubble/index.js +0 -6
- package/dist/cjs/components/ChatBubble/index.js.map +0 -1
- package/dist/esm/components/ChatBubble/ChatBubble.css +0 -300
- package/dist/esm/components/ChatBubble/ChatBubble.js +0 -33
- package/dist/esm/components/ChatBubble/ChatBubble.js.map +0 -1
- package/dist/esm/components/ChatBubble/index.js +0 -2
- package/dist/esm/components/ChatBubble/index.js.map +0 -1
- package/dist/styles/components/ChatBubble.css +0 -300
- package/dist/types/components/ChatBubble/ChatBubble.d.ts +0 -85
- package/dist/types/components/ChatBubble/ChatBubble.d.ts.map +0 -1
- package/dist/types/components/ChatBubble/index.d.ts +0 -2
- package/dist/types/components/ChatBubble/index.d.ts.map +0 -1
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
/* ChatMessage Component Styles */
|
|
2
|
+
|
|
3
|
+
.muka-chat-message {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
width: 100%;
|
|
7
|
+
max-width: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* ─── Row: avatar rail + bubble ────────────────────────── */
|
|
11
|
+
|
|
12
|
+
.muka-chat-message__row {
|
|
13
|
+
display: grid;
|
|
14
|
+
grid-template-columns: minmax(0, 1fr);
|
|
15
|
+
grid-template-areas: 'bubble';
|
|
16
|
+
column-gap: var(--chatbubble-row-gap);
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.muka-chat-message--has-avatar .muka-chat-message__row {
|
|
21
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
22
|
+
grid-template-areas: 'rail bubble';
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.muka-chat-message__rail {
|
|
26
|
+
grid-area: rail;
|
|
27
|
+
/* Sits on the bubble's baseline (Figma 5355:44091) */
|
|
28
|
+
align-self: end;
|
|
29
|
+
display: flex;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
min-width: var(--chatbubble-avatar-size);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/*
|
|
35
|
+
* The Small size in Figma (5373:44702) halves the avatar to 32px and tightens
|
|
36
|
+
* the gap to the bubble. Size the avatar itself, not just the rail, so the
|
|
37
|
+
* bubbles keep their alignment. The header row keeps its own gap.
|
|
38
|
+
*/
|
|
39
|
+
@media (max-width: 1023px) {
|
|
40
|
+
.muka-chat-message__row {
|
|
41
|
+
column-gap: var(--chatbubble-row-gap-compact);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.muka-chat-message__rail {
|
|
45
|
+
min-width: var(--chatbubble-avatar-size-compact);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Outweighs the avatar's own size class, which sets width/height directly */
|
|
49
|
+
.muka-chat-message .muka-chat-message__rail > * {
|
|
50
|
+
width: var(--chatbubble-avatar-size-compact);
|
|
51
|
+
height: var(--chatbubble-avatar-size-compact);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* ─── Bubble surface ───────────────────────────────────── */
|
|
56
|
+
|
|
57
|
+
.muka-chat-message__bubble {
|
|
58
|
+
grid-area: bubble;
|
|
59
|
+
/*
|
|
60
|
+
* Width follows the content: a single line hugs, and once the text wraps the
|
|
61
|
+
* bubble fills to the shared max width. Robust to string or rich children —
|
|
62
|
+
* no length measuring needed (Figma `Text length` on 5355:44091).
|
|
63
|
+
*/
|
|
64
|
+
width: fit-content;
|
|
65
|
+
max-width: var(--chatbubble-max-width);
|
|
66
|
+
position: relative;
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
gap: var(--chatbubble-gap);
|
|
70
|
+
padding: var(--chatbubble-padding-block) var(--chatbubble-padding-inline);
|
|
71
|
+
border-radius: var(--chatbubble-radius);
|
|
72
|
+
border: var(--border-width-regular) solid transparent;
|
|
73
|
+
box-shadow: var(--shadow-level2);
|
|
74
|
+
word-break: break-word;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* Media, an embed or an action stack always run the full bubble width. */
|
|
78
|
+
.muka-chat-message--has-blocks .muka-chat-message__bubble {
|
|
79
|
+
width: 100%;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.muka-chat-message--own .muka-chat-message__bubble {
|
|
83
|
+
justify-self: end;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.muka-chat-message--own .muka-chat-message__bubble {
|
|
87
|
+
background-color: var(--chatbubble-color-own-background);
|
|
88
|
+
border-color: var(--chatbubble-color-own-border);
|
|
89
|
+
color: var(--chatbubble-color-own-foreground);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.muka-chat-message--peer .muka-chat-message__bubble {
|
|
93
|
+
background-color: var(--chatbubble-color-peer-background);
|
|
94
|
+
border-color: var(--chatbubble-color-peer-border);
|
|
95
|
+
color: var(--chatbubble-color-peer-foreground);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.muka-chat-message--agent .muka-chat-message__bubble {
|
|
99
|
+
background-color: var(--chatbubble-color-agent-background);
|
|
100
|
+
border-color: var(--chatbubble-color-agent-border);
|
|
101
|
+
color: var(--chatbubble-color-agent-foreground);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* ─── Header row (author · meta · time · badge) ────────── */
|
|
105
|
+
|
|
106
|
+
.muka-chat-message__header {
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-flow: row wrap;
|
|
109
|
+
align-items: center;
|
|
110
|
+
gap: var(--chatbubble-row-gap);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.muka-chat-message__author {
|
|
114
|
+
font-family: var(--text-body-base-bold-fontFamily);
|
|
115
|
+
font-weight: var(--text-body-base-bold-fontWeight);
|
|
116
|
+
font-size: var(--text-body-base-bold-fontSize);
|
|
117
|
+
line-height: var(--text-body-base-bold-lineHeight);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.muka-chat-message__author-meta {
|
|
121
|
+
/* Inherits the variant's body colour from the bubble */
|
|
122
|
+
color: inherit;
|
|
123
|
+
font-family: var(--text-body-base-regular-fontFamily);
|
|
124
|
+
font-weight: var(--text-body-base-regular-fontWeight);
|
|
125
|
+
font-size: var(--text-body-base-regular-fontSize);
|
|
126
|
+
line-height: var(--text-body-base-regular-lineHeight);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.muka-chat-message__badge {
|
|
130
|
+
display: inline-flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/*
|
|
135
|
+
* Keep the first line of content clear of the absolutely positioned menu
|
|
136
|
+
* button in the bubble's top-right corner.
|
|
137
|
+
*/
|
|
138
|
+
.muka-chat-message--has-menu .muka-chat-message__header,
|
|
139
|
+
.muka-chat-message--has-menu.muka-chat-message--no-header .muka-chat-message__message {
|
|
140
|
+
padding-right: var(--spacing-10);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* …and the last line clear of the inset timestamp in the bottom-right corner */
|
|
144
|
+
.muka-chat-message--has-timestamp .muka-chat-message__message {
|
|
145
|
+
padding-right: var(--spacing-10);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* ─── Body ─────────────────────────────────────────────── */
|
|
149
|
+
|
|
150
|
+
.muka-chat-message__body {
|
|
151
|
+
display: flex;
|
|
152
|
+
flex-direction: column;
|
|
153
|
+
gap: var(--chatbubble-gap);
|
|
154
|
+
min-width: 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.muka-chat-message__media {
|
|
158
|
+
min-width: 0;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.muka-chat-message__message {
|
|
162
|
+
font-family: var(--text-body-base-regular-fontFamily);
|
|
163
|
+
font-weight: var(--text-body-base-regular-fontWeight);
|
|
164
|
+
font-size: var(--text-body-base-regular-fontSize);
|
|
165
|
+
line-height: var(--text-body-base-regular-lineHeight);
|
|
166
|
+
white-space: pre-wrap;
|
|
167
|
+
word-break: break-word;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* Empty message block should not add a gap of its own */
|
|
171
|
+
.muka-chat-message__message:empty {
|
|
172
|
+
display: none;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* ─── Embedded card ────────────────────────────────────── */
|
|
176
|
+
|
|
177
|
+
.muka-chat-message__embed {
|
|
178
|
+
position: relative;
|
|
179
|
+
display: flex;
|
|
180
|
+
flex-direction: column;
|
|
181
|
+
gap: var(--chatbubble-embed-gap);
|
|
182
|
+
/* The card is inset from the blocks above and below it (Figma 5289:40562) */
|
|
183
|
+
margin-block: var(--chatbubble-embed-margin-block);
|
|
184
|
+
padding: var(--chatbubble-embed-padding-block) var(--chatbubble-embed-padding-inline);
|
|
185
|
+
border-radius: var(--chatbubble-embed-radius);
|
|
186
|
+
border: var(--border-width-regular) solid transparent;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/*
|
|
190
|
+
* The embed sits on the raised surface of its author's role, one step apart
|
|
191
|
+
* from the bubble it is nested in, and reuses that role's border colour.
|
|
192
|
+
*/
|
|
193
|
+
.muka-chat-message--own .muka-chat-message__embed {
|
|
194
|
+
background-color: var(--chatbubble-embed-color-own-background);
|
|
195
|
+
border-color: var(--chatbubble-embed-color-own-border);
|
|
196
|
+
color: var(--chatbubble-embed-color-own-foreground);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.muka-chat-message--peer .muka-chat-message__embed {
|
|
200
|
+
background-color: var(--chatbubble-embed-color-peer-background);
|
|
201
|
+
border-color: var(--chatbubble-embed-color-peer-border);
|
|
202
|
+
color: var(--chatbubble-embed-color-peer-foreground);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.muka-chat-message--agent .muka-chat-message__embed {
|
|
206
|
+
background-color: var(--chatbubble-embed-color-agent-background);
|
|
207
|
+
border-color: var(--chatbubble-embed-color-agent-border);
|
|
208
|
+
color: var(--chatbubble-embed-color-agent-foreground);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.muka-chat-message__embed-content {
|
|
212
|
+
display: flex;
|
|
213
|
+
flex-direction: column;
|
|
214
|
+
gap: var(--chatbubble-embed-gap);
|
|
215
|
+
min-width: 0;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.muka-chat-message__embed-copy {
|
|
219
|
+
position: absolute;
|
|
220
|
+
top: var(--chatbubble-embed-padding-block);
|
|
221
|
+
right: var(--chatbubble-embed-padding-inline);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/* ─── Stacked full-width action buttons ────────────────── */
|
|
225
|
+
|
|
226
|
+
.muka-chat-message__action-stack {
|
|
227
|
+
display: flex;
|
|
228
|
+
flex-direction: column;
|
|
229
|
+
gap: var(--chatbubble-action-stack-gap);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/* ─── Inset timestamp ──────────────────────────────────── */
|
|
233
|
+
|
|
234
|
+
/*
|
|
235
|
+
* Every author puts its timestamp in the bubble's bottom-right corner, below
|
|
236
|
+
* the message — never in the header row (Figma 5355:44091).
|
|
237
|
+
*/
|
|
238
|
+
|
|
239
|
+
.muka-chat-message__timestamp {
|
|
240
|
+
color: var(--chatbubble-color-timestamp);
|
|
241
|
+
font-family: var(--text-body-xs-regular-fontFamily);
|
|
242
|
+
font-weight: var(--text-body-xs-regular-fontWeight);
|
|
243
|
+
font-size: var(--text-body-xs-regular-fontSize);
|
|
244
|
+
line-height: var(--text-body-xs-regular-lineHeight);
|
|
245
|
+
white-space: nowrap;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/*
|
|
249
|
+
* Pinned to the corner rather than stacked below the message, so a one-line
|
|
250
|
+
* message stays one line tall. The message reserves the width it needs.
|
|
251
|
+
*/
|
|
252
|
+
.muka-chat-message__timestamp--inset {
|
|
253
|
+
position: absolute;
|
|
254
|
+
right: var(--spacing-2);
|
|
255
|
+
bottom: var(--spacing-1);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/*
|
|
259
|
+
* When the last block in the body is media, an embed or an action stack (not
|
|
260
|
+
* trailing text), it runs the full width, so reserve a line below for the inset
|
|
261
|
+
* timestamp. A message that ends in text clears the corner inline instead (see
|
|
262
|
+
* `__message` padding-right above), so it needs no extra bottom space.
|
|
263
|
+
*/
|
|
264
|
+
.muka-chat-message--has-timestamp.muka-chat-message--trailing-block .muka-chat-message__body {
|
|
265
|
+
padding-bottom: var(--text-body-xs-regular-lineHeight);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/* ─── Menu affordance ──────────────────────────────────── */
|
|
269
|
+
|
|
270
|
+
/*
|
|
271
|
+
* Hidden at rest. Revealed on hover on pointer devices, on keyboard focus
|
|
272
|
+
* everywhere, and pinned while its menu is open. On touch the equivalent
|
|
273
|
+
* affordance is a long-press on the bubble, which opens an ActionSheet.
|
|
274
|
+
*/
|
|
275
|
+
.muka-chat-message__menu {
|
|
276
|
+
position: absolute;
|
|
277
|
+
top: var(--spacing-1);
|
|
278
|
+
right: var(--spacing-1);
|
|
279
|
+
opacity: 0;
|
|
280
|
+
pointer-events: none;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.muka-chat-message__menu:focus-within,
|
|
284
|
+
.muka-chat-message--menu-open .muka-chat-message__menu {
|
|
285
|
+
opacity: 1;
|
|
286
|
+
pointer-events: auto;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
|
|
290
|
+
.muka-chat-message__bubble:hover .muka-chat-message__menu {
|
|
291
|
+
opacity: 1;
|
|
292
|
+
pointer-events: auto;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/* Suppress iOS Safari's own callout so the long-press sheet can take over */
|
|
297
|
+
@media (pointer: coarse) {
|
|
298
|
+
.muka-chat-message--has-menu .muka-chat-message__bubble {
|
|
299
|
+
-webkit-touch-callout: none;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/* ─── Print ────────────────────────────────────────────── */
|
|
304
|
+
|
|
305
|
+
@media print {
|
|
306
|
+
.muka-chat-message__bubble {
|
|
307
|
+
box-shadow: none;
|
|
308
|
+
break-inside: avoid;
|
|
309
|
+
print-color-adjust: exact;
|
|
310
|
+
-webkit-print-color-adjust: exact;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.muka-chat-message__embed {
|
|
314
|
+
break-inside: avoid;
|
|
315
|
+
print-color-adjust: exact;
|
|
316
|
+
-webkit-print-color-adjust: exact;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.muka-chat-message__menu,
|
|
320
|
+
.muka-chat-message__embed-copy,
|
|
321
|
+
.muka-chat-message__action-stack {
|
|
322
|
+
display: none;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* ChatMessageStack Component Styles */
|
|
2
|
+
|
|
3
|
+
.muka-chat-message-stack {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: var(--chatbubble-stack-gap);
|
|
7
|
+
width: 100%;
|
|
8
|
+
max-width: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.muka-chat-message-stack__messages {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
gap: var(--chatbubble-stack-gap);
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/*
|
|
19
|
+
* Reasoning sits above the stack, indented past the avatar rail so it lines up
|
|
20
|
+
* with the bubbles rather than with the avatar (Figma 5379:47300).
|
|
21
|
+
*/
|
|
22
|
+
.muka-chat-message-stack__reasoning {
|
|
23
|
+
min-width: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.muka-chat-message-stack--has-avatar .muka-chat-message-stack__reasoning {
|
|
27
|
+
padding-left: calc(var(--chatbubble-avatar-size) + var(--chatbubble-row-gap));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
|
|
31
|
+
.muka-chat-message-stack__reasoning {
|
|
32
|
+
padding-left: 0;
|
|
33
|
+
padding-right: calc(var(--chatbubble-avatar-size) + var(--chatbubble-row-gap));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Follow the message's compact rail and gap below the desktop breakpoint */
|
|
37
|
+
@media (max-width: 1023px) {
|
|
38
|
+
.muka-chat-message-stack--has-avatar .muka-chat-message-stack__reasoning {
|
|
39
|
+
padding-left: calc(
|
|
40
|
+
var(--chatbubble-avatar-size-compact) + var(--chatbubble-row-gap-compact)
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
|
|
45
|
+
.muka-chat-message-stack__reasoning {
|
|
46
|
+
padding-left: 0;
|
|
47
|
+
padding-right: calc(
|
|
48
|
+
var(--chatbubble-avatar-size-compact) + var(--chatbubble-row-gap-compact)
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
/* ChatPhotoGrid Component Styles */
|
|
2
2
|
|
|
3
|
+
/*
|
|
4
|
+
* The grid clips to its own radius and the tiles stay square, so only the four
|
|
5
|
+
* outer corners round — matching the Figma "Wrapper" frame (5225:1394).
|
|
6
|
+
*/
|
|
3
7
|
.muka-chat-photo-grid {
|
|
4
8
|
display: grid;
|
|
5
9
|
gap: var(--chatphotogrid-gap);
|
|
6
10
|
width: 100%;
|
|
7
11
|
min-width: 0;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
border-radius: var(--chatphotogrid-radius);
|
|
8
14
|
}
|
|
9
15
|
|
|
10
16
|
/* ─── Tiles ────────────────────────────────────────────── */
|
|
@@ -17,7 +23,6 @@
|
|
|
17
23
|
padding: 0;
|
|
18
24
|
margin: 0;
|
|
19
25
|
border: none;
|
|
20
|
-
border-radius: var(--chatphotogrid-radius);
|
|
21
26
|
background-color: var(--chatphotogrid-color-placeholder);
|
|
22
27
|
aspect-ratio: 1 / 1;
|
|
23
28
|
}
|
|
@@ -29,7 +34,8 @@ button.muka-chat-photo-grid__tile {
|
|
|
29
34
|
|
|
30
35
|
button.muka-chat-photo-grid__tile:focus-visible {
|
|
31
36
|
outline: var(--border-width-bold) solid var(--color-border-focus);
|
|
32
|
-
|
|
37
|
+
/* Inset, so the grid's overflow clip cannot cut the ring off on corner tiles */
|
|
38
|
+
outline-offset: calc(-1 * var(--border-width-bold));
|
|
33
39
|
}
|
|
34
40
|
|
|
35
41
|
.muka-chat-photo-grid__image {
|