@revikornmann/muka-ui 0.13.0 → 0.15.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/ChatMessage/ChatMessage.css +13 -17
- package/dist/cjs/components/ChatMessage/ChatMessage.js +12 -15
- package/dist/cjs/components/ChatMessage/ChatMessage.js.map +1 -1
- package/dist/cjs/components/Input/Input.js +8 -6
- package/dist/cjs/components/Input/Input.js.map +1 -1
- package/dist/cjs/components/LicensePlateInput/LicensePlateInput.js +10 -5
- package/dist/cjs/components/LicensePlateInput/LicensePlateInput.js.map +1 -1
- package/dist/cjs/components/NumberInput/NumberInput.js +6 -4
- package/dist/cjs/components/NumberInput/NumberInput.js.map +1 -1
- package/dist/cjs/components/SearchInput/SearchInput.js +15 -5
- package/dist/cjs/components/SearchInput/SearchInput.js.map +1 -1
- package/dist/cjs/components/Textarea/Textarea.js +5 -4
- package/dist/cjs/components/Textarea/Textarea.js.map +1 -1
- package/dist/cjs/utils/accessibility.js +14 -0
- package/dist/cjs/utils/accessibility.js.map +1 -1
- package/dist/esm/components/ChatMessage/ChatMessage.css +13 -17
- package/dist/esm/components/ChatMessage/ChatMessage.js +12 -15
- package/dist/esm/components/ChatMessage/ChatMessage.js.map +1 -1
- package/dist/esm/components/Input/Input.js +8 -6
- package/dist/esm/components/Input/Input.js.map +1 -1
- package/dist/esm/components/LicensePlateInput/LicensePlateInput.js +10 -5
- package/dist/esm/components/LicensePlateInput/LicensePlateInput.js.map +1 -1
- package/dist/esm/components/NumberInput/NumberInput.js +6 -4
- package/dist/esm/components/NumberInput/NumberInput.js.map +1 -1
- package/dist/esm/components/SearchInput/SearchInput.js +15 -5
- package/dist/esm/components/SearchInput/SearchInput.js.map +1 -1
- package/dist/esm/components/Textarea/Textarea.js +5 -4
- package/dist/esm/components/Textarea/Textarea.js.map +1 -1
- package/dist/esm/utils/accessibility.js +13 -0
- package/dist/esm/utils/accessibility.js.map +1 -1
- package/dist/styles/components/ChatMessage.css +13 -17
- package/dist/styles/index.css +1157 -1161
- package/dist/styles/muka-dark.css +1157 -1161
- package/dist/styles/muka-light.css +1157 -1161
- package/dist/styles/wireframe-dark.css +1157 -1161
- package/dist/styles/wireframe-light.css +1157 -1161
- package/dist/types/components/ChatMessage/ChatMessage.d.ts +7 -10
- package/dist/types/components/ChatMessage/ChatMessage.d.ts.map +1 -1
- package/dist/types/components/Input/Input.d.ts +4 -2
- package/dist/types/components/Input/Input.d.ts.map +1 -1
- package/dist/types/components/LicensePlateInput/LicensePlateInput.d.ts +2 -2
- package/dist/types/components/LicensePlateInput/LicensePlateInput.d.ts.map +1 -1
- package/dist/types/components/NumberInput/NumberInput.d.ts +2 -2
- package/dist/types/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/types/components/SearchInput/SearchInput.d.ts +2 -2
- package/dist/types/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/types/components/Textarea/Textarea.d.ts +2 -2
- package/dist/types/components/Textarea/Textarea.d.ts.map +1 -1
- package/dist/types/utils/accessibility.d.ts +10 -0
- package/dist/types/utils/accessibility.d.ts.map +1 -1
- package/package.json +2 -1
|
@@ -22,11 +22,6 @@
|
|
|
22
22
|
grid-template-areas: 'rail bubble';
|
|
23
23
|
}
|
|
24
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
25
|
.muka-chat-message__rail {
|
|
31
26
|
grid-area: rail;
|
|
32
27
|
/* Sits on the bubble's baseline (Figma 5355:44091) */
|
|
@@ -61,6 +56,12 @@
|
|
|
61
56
|
|
|
62
57
|
.muka-chat-message__bubble {
|
|
63
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;
|
|
64
65
|
max-width: var(--chatbubble-max-width);
|
|
65
66
|
position: relative;
|
|
66
67
|
display: flex;
|
|
@@ -73,18 +74,11 @@
|
|
|
73
74
|
word-break: break-word;
|
|
74
75
|
}
|
|
75
76
|
|
|
76
|
-
/*
|
|
77
|
-
|
|
78
|
-
* content, long ones fill the row up to the shared max width.
|
|
79
|
-
*/
|
|
80
|
-
.muka-chat-message--long .muka-chat-message__bubble {
|
|
77
|
+
/* Media, an embed or an action stack always run the full bubble width. */
|
|
78
|
+
.muka-chat-message--has-blocks .muka-chat-message__bubble {
|
|
81
79
|
width: 100%;
|
|
82
80
|
}
|
|
83
81
|
|
|
84
|
-
.muka-chat-message--short .muka-chat-message__bubble {
|
|
85
|
-
width: fit-content;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
82
|
.muka-chat-message--own .muka-chat-message__bubble {
|
|
89
83
|
justify-self: end;
|
|
90
84
|
}
|
|
@@ -262,10 +256,12 @@
|
|
|
262
256
|
}
|
|
263
257
|
|
|
264
258
|
/*
|
|
265
|
-
*
|
|
266
|
-
*
|
|
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.
|
|
267
263
|
*/
|
|
268
|
-
.muka-chat-message--has-timestamp.muka-chat-message--
|
|
264
|
+
.muka-chat-message--has-timestamp.muka-chat-message--trailing-block .muka-chat-message__body {
|
|
269
265
|
padding-bottom: var(--text-body-xs-regular-lineHeight);
|
|
270
266
|
}
|
|
271
267
|
|