@revikornmann/muka-ui 0.54.0 → 0.55.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/cjs/components/ChatEvent/ChatEvent.css +49 -0
- package/dist/cjs/components/ChatEvent/ChatEvent.js +23 -0
- package/dist/cjs/components/ChatEvent/ChatEvent.js.map +1 -0
- package/dist/cjs/components/ChatEvent/index.js +6 -0
- package/dist/cjs/components/ChatEvent/index.js.map +1 -0
- package/dist/cjs/components/ChatMessage/ChatMessage.css +10 -0
- package/dist/cjs/components/ChatMessage/ChatMessage.js +5 -3
- package/dist/cjs/components/ChatMessage/ChatMessage.js.map +1 -1
- package/dist/cjs/components/ChatMessageStack/ChatMessageStack.js +5 -2
- package/dist/cjs/components/ChatMessageStack/ChatMessageStack.js.map +1 -1
- package/dist/cjs/components/Divider/Divider.css +27 -0
- package/dist/cjs/components/Divider/Divider.js +5 -1
- package/dist/cjs/components/Divider/Divider.js.map +1 -1
- package/dist/cjs/components/ListItem/ListItem.css +69 -0
- package/dist/cjs/components/ListItem/ListItem.js +25 -6
- package/dist/cjs/components/ListItem/ListItem.js.map +1 -1
- package/dist/cjs/components/TopBar/TopBar.css +22 -0
- package/dist/cjs/components/TopBar/TopBar.js +16 -7
- package/dist/cjs/components/TopBar/TopBar.js.map +1 -1
- package/dist/cjs/components/View/View.js +2 -2
- package/dist/cjs/components/View/View.js.map +1 -1
- package/dist/cjs/components/index.js +3 -1
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/esm/components/ChatEvent/ChatEvent.css +49 -0
- package/dist/esm/components/ChatEvent/ChatEvent.js +19 -0
- package/dist/esm/components/ChatEvent/ChatEvent.js.map +1 -0
- package/dist/esm/components/ChatEvent/index.js +2 -0
- package/dist/esm/components/ChatEvent/index.js.map +1 -0
- package/dist/esm/components/ChatMessage/ChatMessage.css +10 -0
- package/dist/esm/components/ChatMessage/ChatMessage.js +5 -3
- package/dist/esm/components/ChatMessage/ChatMessage.js.map +1 -1
- package/dist/esm/components/ChatMessageStack/ChatMessageStack.js +5 -2
- package/dist/esm/components/ChatMessageStack/ChatMessageStack.js.map +1 -1
- package/dist/esm/components/Divider/Divider.css +27 -0
- package/dist/esm/components/Divider/Divider.js +6 -2
- package/dist/esm/components/Divider/Divider.js.map +1 -1
- package/dist/esm/components/ListItem/ListItem.css +69 -0
- package/dist/esm/components/ListItem/ListItem.js +25 -6
- package/dist/esm/components/ListItem/ListItem.js.map +1 -1
- package/dist/esm/components/TopBar/TopBar.css +22 -0
- package/dist/esm/components/TopBar/TopBar.js +16 -7
- package/dist/esm/components/TopBar/TopBar.js.map +1 -1
- package/dist/esm/components/View/View.js +2 -2
- package/dist/esm/components/View/View.js.map +1 -1
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/styles/components/ChatEvent.css +49 -0
- package/dist/styles/components/ChatMessage.css +10 -0
- package/dist/styles/components/Divider.css +27 -0
- package/dist/styles/components/ListItem.css +69 -0
- package/dist/styles/components/TopBar.css +22 -0
- package/dist/styles/index.css +380 -200
- package/dist/styles/muka-dark.css +380 -200
- package/dist/styles/muka-light.css +380 -200
- package/dist/styles/wireframe-dark.css +380 -200
- package/dist/styles/wireframe-light.css +380 -200
- package/dist/types/components/ChatEvent/ChatEvent.d.ts +33 -0
- package/dist/types/components/ChatEvent/ChatEvent.d.ts.map +1 -0
- package/dist/types/components/ChatEvent/index.d.ts +2 -0
- package/dist/types/components/ChatEvent/index.d.ts.map +1 -0
- package/dist/types/components/ChatMessage/ChatMessage.d.ts +8 -3
- package/dist/types/components/ChatMessage/ChatMessage.d.ts.map +1 -1
- package/dist/types/components/ChatMessageStack/ChatMessageStack.d.ts +4 -2
- package/dist/types/components/ChatMessageStack/ChatMessageStack.d.ts.map +1 -1
- package/dist/types/components/Divider/Divider.d.ts +6 -0
- package/dist/types/components/Divider/Divider.d.ts.map +1 -1
- package/dist/types/components/ListItem/ListItem.d.ts +17 -3
- package/dist/types/components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/types/components/TopBar/TopBar.d.ts +6 -0
- package/dist/types/components/TopBar/TopBar.d.ts.map +1 -1
- package/dist/types/components/View/View.d.ts +2 -0
- package/dist/types/components/View/View.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* ChatEvent: a line in a chat that isn't a message from a person */
|
|
2
|
+
|
|
3
|
+
.muka-chat-event {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: center;
|
|
7
|
+
gap: var(--spacing-2);
|
|
8
|
+
width: 100%;
|
|
9
|
+
padding: 0 var(--spacing-4);
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
text-align: center;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.muka-chat-event__text {
|
|
15
|
+
margin: 0;
|
|
16
|
+
max-width: var(--chatbubble-max-width);
|
|
17
|
+
/* Default text, not subtle: subtle reaches only ~3:1 on the chat surfaces,
|
|
18
|
+
and this is body text. Size and centring set it apart from messages. */
|
|
19
|
+
color: var(--color-text-default-default);
|
|
20
|
+
font-family: var(--text-body-sm-regular-fontFamily);
|
|
21
|
+
font-weight: var(--text-body-sm-regular-fontWeight);
|
|
22
|
+
font-size: var(--text-body-sm-regular-fontSize);
|
|
23
|
+
line-height: var(--text-body-sm-regular-lineHeight);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.muka-chat-event__timestamp {
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.muka-chat-event__media {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-wrap: wrap;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
gap: var(--spacing-2);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Day divider: a small pill */
|
|
38
|
+
.muka-chat-event__pill {
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
padding: var(--spacing-1) var(--spacing-3);
|
|
42
|
+
border-radius: var(--radius-full);
|
|
43
|
+
background-color: var(--color-surface-level2);
|
|
44
|
+
color: var(--color-text-default-default);
|
|
45
|
+
font-family: var(--text-label-sm-regular-fontFamily);
|
|
46
|
+
font-weight: var(--text-label-sm-regular-fontWeight);
|
|
47
|
+
font-size: var(--text-label-sm-regular-fontSize);
|
|
48
|
+
line-height: var(--text-label-sm-leading);
|
|
49
|
+
}
|
|
@@ -326,3 +326,13 @@
|
|
|
326
326
|
display: none;
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
|
+
|
|
330
|
+
/* ─── Muted (a message from another context) ──────────────
|
|
331
|
+
* The bubble drops its fill and keeps a hairline, so it recedes next to the
|
|
332
|
+
* current conversation; the text keeps full contrast. */
|
|
333
|
+
|
|
334
|
+
.muka-chat-message--muted .muka-chat-message__bubble {
|
|
335
|
+
background-color: transparent;
|
|
336
|
+
border-color: var(--chatbubble-color-peer-border);
|
|
337
|
+
color: var(--color-text-default-default);
|
|
338
|
+
}
|
|
@@ -22,3 +22,30 @@
|
|
|
22
22
|
.muka-divider--contrast {
|
|
23
23
|
background-color: var(--separator-color-contrast);
|
|
24
24
|
}
|
|
25
|
+
|
|
26
|
+
/* ─── With a label in the middle ───────────────────────── */
|
|
27
|
+
|
|
28
|
+
.muka-divider-labelled {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: var(--spacing-3);
|
|
32
|
+
width: 100%;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.muka-divider-labelled > .muka-divider {
|
|
36
|
+
flex: 1 1 0%;
|
|
37
|
+
width: auto;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.muka-divider-labelled__label {
|
|
41
|
+
flex-shrink: 0;
|
|
42
|
+
max-width: 70%;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
text-overflow: ellipsis;
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
color: var(--color-text-default-default);
|
|
47
|
+
font-family: var(--text-label-sm-regular-fontFamily);
|
|
48
|
+
font-weight: var(--text-label-sm-regular-fontWeight);
|
|
49
|
+
font-size: var(--text-label-sm-regular-fontSize);
|
|
50
|
+
line-height: var(--text-label-sm-leading);
|
|
51
|
+
}
|
|
@@ -205,7 +205,76 @@ a.muka-listitem {
|
|
|
205
205
|
width: 100%;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
+
/* A row rendered as a link reads as a row, not as link text */
|
|
209
|
+
a.muka-listitem {
|
|
210
|
+
color: inherit;
|
|
211
|
+
text-decoration: none;
|
|
212
|
+
}
|
|
213
|
+
|
|
208
214
|
/* List item specific styles */
|
|
209
215
|
li.muka-listitem {
|
|
210
216
|
list-style: none;
|
|
211
217
|
}
|
|
218
|
+
|
|
219
|
+
/* ─── Tone ─────────────────────────────────────────────── */
|
|
220
|
+
|
|
221
|
+
.muka-listitem--tone-info,
|
|
222
|
+
.muka-listitem-group--tone-info {
|
|
223
|
+
background-color: var(--color-state-info-background);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.muka-listitem--tone-warning,
|
|
227
|
+
.muka-listitem-group--tone-warning {
|
|
228
|
+
background-color: var(--color-state-warning-background);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* ─── Actions beside the row ───────────────────────────── */
|
|
232
|
+
|
|
233
|
+
/*
|
|
234
|
+
* With `actions`, the row (the click target) and the actions are siblings in a
|
|
235
|
+
* group. The group carries the surface, the tone and the divider; the row
|
|
236
|
+
* fills the space and the actions sit at the end.
|
|
237
|
+
*/
|
|
238
|
+
.muka-listitem-group {
|
|
239
|
+
display: flex;
|
|
240
|
+
align-items: center;
|
|
241
|
+
position: relative;
|
|
242
|
+
background-color: var(--color-surface-level3);
|
|
243
|
+
list-style: none;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.muka-listitem-group--selected {
|
|
247
|
+
background-color: var(--color-surface-level2);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.muka-listitem-group--disabled {
|
|
251
|
+
opacity: 0.5;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.muka-listitem-group--disabled .muka-listitem--disabled {
|
|
255
|
+
/* The group already dims; don't dim the row twice */
|
|
256
|
+
opacity: 1;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.muka-listitem--with-actions {
|
|
260
|
+
flex: 1;
|
|
261
|
+
min-width: 0;
|
|
262
|
+
padding-right: var(--spacing-2);
|
|
263
|
+
background-color: transparent;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.muka-listitem--with-actions.muka-listitem--selected {
|
|
267
|
+
background-color: transparent;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.muka-listitem__actions {
|
|
271
|
+
display: flex;
|
|
272
|
+
align-items: center;
|
|
273
|
+
gap: var(--spacing-2);
|
|
274
|
+
flex-shrink: 0;
|
|
275
|
+
padding-right: var(--spacing-4);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.muka-listitem-group--no-divider .muka-listitem__divider {
|
|
279
|
+
display: none;
|
|
280
|
+
}
|
|
@@ -232,6 +232,28 @@
|
|
|
232
232
|
color: var(--color-text-subtle-default);
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
+
/* ─── Title with a leading avatar (titleLeading) ─────────
|
|
236
|
+
The row takes the title's grid cell: the avatar, then the title (block). */
|
|
237
|
+
|
|
238
|
+
.muka-topbar__title-row {
|
|
239
|
+
grid-column: 2;
|
|
240
|
+
display: flex;
|
|
241
|
+
align-items: center;
|
|
242
|
+
justify-content: var(--tb-title-justify);
|
|
243
|
+
gap: var(--spacing-2);
|
|
244
|
+
min-width: 0;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.muka-topbar__title-row > .muka-topbar__title,
|
|
248
|
+
.muka-topbar__title-row > .muka-topbar__title-block {
|
|
249
|
+
min-width: 0;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.muka-topbar__title-leading {
|
|
253
|
+
display: inline-flex;
|
|
254
|
+
flex-shrink: 0;
|
|
255
|
+
}
|
|
256
|
+
|
|
235
257
|
/* ─── Title as a button (titleTrailing) ──────────────────
|
|
236
258
|
Same type as the text title, with a trailing glyph; sized to its content so
|
|
237
259
|
only the title is the hit area, centred (start in the large tier). */
|