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