@revikornmann/muka-ui 0.32.0 → 0.33.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/Button/Button.css +6 -0
- package/dist/cjs/components/ChatComposer/ChatComposer.css +22 -0
- package/dist/cjs/components/ChatComposer/ChatComposer.js +23 -6
- package/dist/cjs/components/ChatComposer/ChatComposer.js.map +1 -1
- package/dist/cjs/components/VoiceRecorder/useVoiceRecorder.js +14 -0
- package/dist/cjs/components/VoiceRecorder/useVoiceRecorder.js.map +1 -1
- package/dist/esm/components/Button/Button.css +6 -0
- package/dist/esm/components/ChatComposer/ChatComposer.css +22 -0
- package/dist/esm/components/ChatComposer/ChatComposer.js +23 -6
- package/dist/esm/components/ChatComposer/ChatComposer.js.map +1 -1
- package/dist/esm/components/VoiceRecorder/useVoiceRecorder.js +14 -0
- package/dist/esm/components/VoiceRecorder/useVoiceRecorder.js.map +1 -1
- package/dist/styles/base.css +10 -7
- package/dist/styles/components/Button.css +6 -0
- package/dist/styles/components/ChatComposer.css +22 -0
- package/dist/styles/index.css +1043 -1012
- package/dist/styles/muka-dark.css +1043 -1012
- package/dist/styles/muka-light.css +1043 -1012
- package/dist/styles/wireframe-dark.css +1049 -1018
- package/dist/styles/wireframe-light.css +1049 -1018
- package/dist/types/components/ChatComposer/ChatComposer.d.ts +25 -2
- package/dist/types/components/ChatComposer/ChatComposer.d.ts.map +1 -1
- package/dist/types/components/VoiceRecorder/useVoiceRecorder.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/styles/base.css
CHANGED
|
@@ -53,19 +53,22 @@
|
|
|
53
53
|
--spacing-4: 1rem;
|
|
54
54
|
--spacing-5: 1.25rem;
|
|
55
55
|
|
|
56
|
-
--button-padding-sm-x: 0.
|
|
56
|
+
--button-padding-sm-x: 0.75rem;
|
|
57
57
|
--button-padding-sm-y: 0.5rem;
|
|
58
58
|
--button-padding-md-x: 0.75rem;
|
|
59
59
|
--button-padding-md-y: 0.75rem;
|
|
60
60
|
--button-padding-lg-x: 1rem;
|
|
61
61
|
--button-padding-lg-y: 1rem;
|
|
62
62
|
|
|
63
|
-
/* Border radius fallbacks
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
--
|
|
68
|
-
|
|
63
|
+
/* Border radius fallbacks. Shape and spacing match the brand tokens (every
|
|
64
|
+
brand but wireframe, which draws square buttons), so a page whose theme
|
|
65
|
+
tokens load late or out of order keeps the real geometry. Colours and
|
|
66
|
+
fonts above stay deliberately neutral. */
|
|
67
|
+
--radius-md: 0.375rem;
|
|
68
|
+
|
|
69
|
+
--button-radius-sm: 0.75rem;
|
|
70
|
+
--button-radius-md: 0.75rem;
|
|
71
|
+
--button-radius-lg: 0.75rem;
|
|
69
72
|
|
|
70
73
|
/* Typography fallbacks */
|
|
71
74
|
--text-label-sm-fontSize: 0.875rem;
|
|
@@ -298,6 +298,12 @@
|
|
|
298
298
|
display: block;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
+
/* A Spinner in the icon slot keeps its own flex centring: as a block its
|
|
302
|
+
circle sat at the top of the slot (4px high in an lg icon-only button). */
|
|
303
|
+
.muka-button .muka-button__icon > .muka-spinner {
|
|
304
|
+
display: flex;
|
|
305
|
+
}
|
|
306
|
+
|
|
301
307
|
.muka-button--sm .muka-button__icon {
|
|
302
308
|
width: var(--button-icon-sm);
|
|
303
309
|
height: var(--button-icon-sm);
|
|
@@ -26,6 +26,16 @@
|
|
|
26
26
|
gap: var(--spacing-3);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
/*
|
|
30
|
+
* Buttons beside the field keep their square size (`.muka-button--icon-only`
|
|
31
|
+
* width). Only the field or recording bar flexes, so a wide waveform or a
|
|
32
|
+
* long text can never squeeze them.
|
|
33
|
+
*/
|
|
34
|
+
.muka-chat-composer__row > .muka-button,
|
|
35
|
+
.muka-chat-composer__options-input > .muka-button {
|
|
36
|
+
flex-shrink: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
29
39
|
/* ─── Text field ───────────────────────────────────────── */
|
|
30
40
|
|
|
31
41
|
.muka-chat-composer__field {
|
|
@@ -83,6 +93,16 @@
|
|
|
83
93
|
color: var(--color-text-subtle-default);
|
|
84
94
|
}
|
|
85
95
|
|
|
96
|
+
/* Transcribing: the field is back but inert (Input disabled tokens). */
|
|
97
|
+
.muka-chat-composer__field--disabled {
|
|
98
|
+
border-color: var(--input-field-color-disabled-border);
|
|
99
|
+
background-color: var(--input-field-color-disabled-background);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.muka-chat-composer__field--disabled .muka-chat-composer__input::placeholder {
|
|
103
|
+
color: var(--input-field-color-disabled-foreground);
|
|
104
|
+
}
|
|
105
|
+
|
|
86
106
|
/* Keep the in-field emoji button flush to the bottom-right as the field grows */
|
|
87
107
|
.muka-chat-composer__emoji {
|
|
88
108
|
flex-shrink: 0;
|
|
@@ -101,6 +121,8 @@
|
|
|
101
121
|
border: var(--border-width-regular) solid var(--card-color-default-border);
|
|
102
122
|
border-radius: var(--radius-lg);
|
|
103
123
|
background-color: var(--card-color-default-background);
|
|
124
|
+
/* A waveform wider than the space left is clipped, never laid over pause. */
|
|
125
|
+
overflow: hidden;
|
|
104
126
|
}
|
|
105
127
|
|
|
106
128
|
/* ─── Staged attachments strip ─────────────────────────── */
|