@revikornmann/muka-ui 0.47.0 → 0.48.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/ChatMessageStack/ChatMessageStack.css +14 -0
- package/dist/cjs/components/ChatMessageStack/ChatMessageStack.js +2 -2
- package/dist/cjs/components/ChatMessageStack/ChatMessageStack.js.map +1 -1
- package/dist/esm/components/ChatMessageStack/ChatMessageStack.css +14 -0
- package/dist/esm/components/ChatMessageStack/ChatMessageStack.js +2 -2
- package/dist/esm/components/ChatMessageStack/ChatMessageStack.js.map +1 -1
- package/dist/styles/components/ChatMessageStack.css +14 -0
- package/dist/styles/index.css +184 -170
- package/dist/styles/muka-dark.css +184 -170
- package/dist/styles/muka-light.css +184 -170
- package/dist/styles/wireframe-dark.css +184 -170
- package/dist/styles/wireframe-light.css +184 -170
- package/dist/types/components/ChatMessageStack/ChatMessageStack.d.ts +6 -0
- package/dist/types/components/ChatMessageStack/ChatMessageStack.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -8491,6 +8491,122 @@ button.muka-progress-tracker__tab:focus-visible {
|
|
|
8491
8491
|
}
|
|
8492
8492
|
|
|
8493
8493
|
|
|
8494
|
+
/* PhotoUploader */
|
|
8495
|
+
/* PhotoUploader Component Styles - Using Muka Design Tokens */
|
|
8496
|
+
|
|
8497
|
+
.muka-photo-uploader {
|
|
8498
|
+
display: flex;
|
|
8499
|
+
flex-direction: column;
|
|
8500
|
+
align-items: flex-start;
|
|
8501
|
+
gap: var(--spacing-4);
|
|
8502
|
+
width: 100%;
|
|
8503
|
+
}
|
|
8504
|
+
|
|
8505
|
+
/* Visually-hidden native file input */
|
|
8506
|
+
.muka-photo-uploader__input {
|
|
8507
|
+
position: absolute;
|
|
8508
|
+
width: 1px;
|
|
8509
|
+
height: 1px;
|
|
8510
|
+
padding: 0;
|
|
8511
|
+
margin: -1px;
|
|
8512
|
+
overflow: hidden;
|
|
8513
|
+
clip: rect(0, 0, 0, 0);
|
|
8514
|
+
white-space: nowrap;
|
|
8515
|
+
border: 0;
|
|
8516
|
+
}
|
|
8517
|
+
|
|
8518
|
+
/* ─── Error feedback alert ────────────────────────────── */
|
|
8519
|
+
.muka-photo-uploader__alert {
|
|
8520
|
+
width: 100%;
|
|
8521
|
+
}
|
|
8522
|
+
|
|
8523
|
+
/* ─── Thumbnail grid ──────────────────────────────────── */
|
|
8524
|
+
.muka-photo-uploader__grid {
|
|
8525
|
+
display: flex;
|
|
8526
|
+
flex-wrap: wrap;
|
|
8527
|
+
gap: var(--spacing-3);
|
|
8528
|
+
width: 100%;
|
|
8529
|
+
margin: 0;
|
|
8530
|
+
padding: 0;
|
|
8531
|
+
list-style: none;
|
|
8532
|
+
}
|
|
8533
|
+
|
|
8534
|
+
.muka-photo-uploader__grid-item {
|
|
8535
|
+
margin: 0;
|
|
8536
|
+
padding: 0;
|
|
8537
|
+
}
|
|
8538
|
+
|
|
8539
|
+
/* ─── Drop zone card (button + "or drop here") ────────── */
|
|
8540
|
+
.muka-photo-uploader__dropzone {
|
|
8541
|
+
display: flex;
|
|
8542
|
+
flex-direction: column;
|
|
8543
|
+
align-items: center;
|
|
8544
|
+
justify-content: center;
|
|
8545
|
+
gap: var(--spacing-4);
|
|
8546
|
+
width: 100%;
|
|
8547
|
+
padding: var(--card-padding-lg);
|
|
8548
|
+
background-color: var(--card-color-default-background);
|
|
8549
|
+
border: var(--border-width-regular, 1px) solid var(--card-color-default-border);
|
|
8550
|
+
border-radius: var(--border-radius-lg);
|
|
8551
|
+
cursor: pointer;
|
|
8552
|
+
text-align: center;
|
|
8553
|
+
transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
|
|
8554
|
+
border-color var(--motion-duration-micro) var(--motion-easing-enter);
|
|
8555
|
+
}
|
|
8556
|
+
|
|
8557
|
+
.muka-photo-uploader__dropzone:hover,
|
|
8558
|
+
.muka-photo-uploader__dropzone--active {
|
|
8559
|
+
border-color: var(--color-border-focus);
|
|
8560
|
+
background-color: var(--color-surface-level1);
|
|
8561
|
+
}
|
|
8562
|
+
|
|
8563
|
+
.muka-photo-uploader__dropzone-text {
|
|
8564
|
+
font-family: var(--text-subheading-sm-fontFamily);
|
|
8565
|
+
font-size: var(--text-subheading-sm-fontSize);
|
|
8566
|
+
font-weight: var(--text-subheading-sm-fontWeight);
|
|
8567
|
+
line-height: var(--text-subheading-sm-lineHeight);
|
|
8568
|
+
color: var(--color-text-default-default);
|
|
8569
|
+
}
|
|
8570
|
+
|
|
8571
|
+
/* ─── Disabled ────────────────────────────────────────── */
|
|
8572
|
+
.muka-photo-uploader--disabled .muka-photo-uploader__dropzone {
|
|
8573
|
+
cursor: not-allowed;
|
|
8574
|
+
opacity: 0.6;
|
|
8575
|
+
}
|
|
8576
|
+
|
|
8577
|
+
.muka-photo-uploader--disabled .muka-photo-uploader__dropzone:hover {
|
|
8578
|
+
border-color: var(--card-color-default-border);
|
|
8579
|
+
background-color: var(--card-color-default-background);
|
|
8580
|
+
}
|
|
8581
|
+
|
|
8582
|
+
/* ─── Enlarged photo dialog ───────────────────────────── */
|
|
8583
|
+
.muka-photo-uploader__preview {
|
|
8584
|
+
display: flex;
|
|
8585
|
+
align-items: center;
|
|
8586
|
+
justify-content: center;
|
|
8587
|
+
width: 100%;
|
|
8588
|
+
height: 100%;
|
|
8589
|
+
}
|
|
8590
|
+
|
|
8591
|
+
/* Fits the dialog while preserving the photo's original aspect ratio. */
|
|
8592
|
+
.muka-photo-uploader__preview-image {
|
|
8593
|
+
display: block;
|
|
8594
|
+
max-width: 100%;
|
|
8595
|
+
max-height: 100%;
|
|
8596
|
+
width: auto;
|
|
8597
|
+
height: auto;
|
|
8598
|
+
object-fit: contain;
|
|
8599
|
+
border-radius: var(--border-radius-lg);
|
|
8600
|
+
}
|
|
8601
|
+
|
|
8602
|
+
/* ─── Reduced motion ──────────────────────────────────── */
|
|
8603
|
+
@media (prefers-reduced-motion: reduce) {
|
|
8604
|
+
.muka-photo-uploader__dropzone {
|
|
8605
|
+
transition: none;
|
|
8606
|
+
}
|
|
8607
|
+
}
|
|
8608
|
+
|
|
8609
|
+
|
|
8494
8610
|
/* PhotoDraftStrip */
|
|
8495
8611
|
/* PhotoDraftStrip Component Styles */
|
|
8496
8612
|
|
|
@@ -9160,122 +9276,6 @@ button.muka-progress-tracker__tab:focus-visible {
|
|
|
9160
9276
|
}
|
|
9161
9277
|
|
|
9162
9278
|
|
|
9163
|
-
/* PhotoUploader */
|
|
9164
|
-
/* PhotoUploader Component Styles - Using Muka Design Tokens */
|
|
9165
|
-
|
|
9166
|
-
.muka-photo-uploader {
|
|
9167
|
-
display: flex;
|
|
9168
|
-
flex-direction: column;
|
|
9169
|
-
align-items: flex-start;
|
|
9170
|
-
gap: var(--spacing-4);
|
|
9171
|
-
width: 100%;
|
|
9172
|
-
}
|
|
9173
|
-
|
|
9174
|
-
/* Visually-hidden native file input */
|
|
9175
|
-
.muka-photo-uploader__input {
|
|
9176
|
-
position: absolute;
|
|
9177
|
-
width: 1px;
|
|
9178
|
-
height: 1px;
|
|
9179
|
-
padding: 0;
|
|
9180
|
-
margin: -1px;
|
|
9181
|
-
overflow: hidden;
|
|
9182
|
-
clip: rect(0, 0, 0, 0);
|
|
9183
|
-
white-space: nowrap;
|
|
9184
|
-
border: 0;
|
|
9185
|
-
}
|
|
9186
|
-
|
|
9187
|
-
/* ─── Error feedback alert ────────────────────────────── */
|
|
9188
|
-
.muka-photo-uploader__alert {
|
|
9189
|
-
width: 100%;
|
|
9190
|
-
}
|
|
9191
|
-
|
|
9192
|
-
/* ─── Thumbnail grid ──────────────────────────────────── */
|
|
9193
|
-
.muka-photo-uploader__grid {
|
|
9194
|
-
display: flex;
|
|
9195
|
-
flex-wrap: wrap;
|
|
9196
|
-
gap: var(--spacing-3);
|
|
9197
|
-
width: 100%;
|
|
9198
|
-
margin: 0;
|
|
9199
|
-
padding: 0;
|
|
9200
|
-
list-style: none;
|
|
9201
|
-
}
|
|
9202
|
-
|
|
9203
|
-
.muka-photo-uploader__grid-item {
|
|
9204
|
-
margin: 0;
|
|
9205
|
-
padding: 0;
|
|
9206
|
-
}
|
|
9207
|
-
|
|
9208
|
-
/* ─── Drop zone card (button + "or drop here") ────────── */
|
|
9209
|
-
.muka-photo-uploader__dropzone {
|
|
9210
|
-
display: flex;
|
|
9211
|
-
flex-direction: column;
|
|
9212
|
-
align-items: center;
|
|
9213
|
-
justify-content: center;
|
|
9214
|
-
gap: var(--spacing-4);
|
|
9215
|
-
width: 100%;
|
|
9216
|
-
padding: var(--card-padding-lg);
|
|
9217
|
-
background-color: var(--card-color-default-background);
|
|
9218
|
-
border: var(--border-width-regular, 1px) solid var(--card-color-default-border);
|
|
9219
|
-
border-radius: var(--border-radius-lg);
|
|
9220
|
-
cursor: pointer;
|
|
9221
|
-
text-align: center;
|
|
9222
|
-
transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
|
|
9223
|
-
border-color var(--motion-duration-micro) var(--motion-easing-enter);
|
|
9224
|
-
}
|
|
9225
|
-
|
|
9226
|
-
.muka-photo-uploader__dropzone:hover,
|
|
9227
|
-
.muka-photo-uploader__dropzone--active {
|
|
9228
|
-
border-color: var(--color-border-focus);
|
|
9229
|
-
background-color: var(--color-surface-level1);
|
|
9230
|
-
}
|
|
9231
|
-
|
|
9232
|
-
.muka-photo-uploader__dropzone-text {
|
|
9233
|
-
font-family: var(--text-subheading-sm-fontFamily);
|
|
9234
|
-
font-size: var(--text-subheading-sm-fontSize);
|
|
9235
|
-
font-weight: var(--text-subheading-sm-fontWeight);
|
|
9236
|
-
line-height: var(--text-subheading-sm-lineHeight);
|
|
9237
|
-
color: var(--color-text-default-default);
|
|
9238
|
-
}
|
|
9239
|
-
|
|
9240
|
-
/* ─── Disabled ────────────────────────────────────────── */
|
|
9241
|
-
.muka-photo-uploader--disabled .muka-photo-uploader__dropzone {
|
|
9242
|
-
cursor: not-allowed;
|
|
9243
|
-
opacity: 0.6;
|
|
9244
|
-
}
|
|
9245
|
-
|
|
9246
|
-
.muka-photo-uploader--disabled .muka-photo-uploader__dropzone:hover {
|
|
9247
|
-
border-color: var(--card-color-default-border);
|
|
9248
|
-
background-color: var(--card-color-default-background);
|
|
9249
|
-
}
|
|
9250
|
-
|
|
9251
|
-
/* ─── Enlarged photo dialog ───────────────────────────── */
|
|
9252
|
-
.muka-photo-uploader__preview {
|
|
9253
|
-
display: flex;
|
|
9254
|
-
align-items: center;
|
|
9255
|
-
justify-content: center;
|
|
9256
|
-
width: 100%;
|
|
9257
|
-
height: 100%;
|
|
9258
|
-
}
|
|
9259
|
-
|
|
9260
|
-
/* Fits the dialog while preserving the photo's original aspect ratio. */
|
|
9261
|
-
.muka-photo-uploader__preview-image {
|
|
9262
|
-
display: block;
|
|
9263
|
-
max-width: 100%;
|
|
9264
|
-
max-height: 100%;
|
|
9265
|
-
width: auto;
|
|
9266
|
-
height: auto;
|
|
9267
|
-
object-fit: contain;
|
|
9268
|
-
border-radius: var(--border-radius-lg);
|
|
9269
|
-
}
|
|
9270
|
-
|
|
9271
|
-
/* ─── Reduced motion ──────────────────────────────────── */
|
|
9272
|
-
@media (prefers-reduced-motion: reduce) {
|
|
9273
|
-
.muka-photo-uploader__dropzone {
|
|
9274
|
-
transition: none;
|
|
9275
|
-
}
|
|
9276
|
-
}
|
|
9277
|
-
|
|
9278
|
-
|
|
9279
9279
|
/* MediaViewer */
|
|
9280
9280
|
/* MediaViewer Component Styles - Using Muka Design Tokens */
|
|
9281
9281
|
|
|
@@ -10349,6 +10349,60 @@ li.muka-listitem {
|
|
|
10349
10349
|
}
|
|
10350
10350
|
|
|
10351
10351
|
|
|
10352
|
+
/* Icon */
|
|
10353
|
+
/* Icon Component Styles - Using Muka Design Tokens */
|
|
10354
|
+
|
|
10355
|
+
.muka-icon {
|
|
10356
|
+
display: inline-flex;
|
|
10357
|
+
align-items: center;
|
|
10358
|
+
justify-content: center;
|
|
10359
|
+
flex-shrink: 0;
|
|
10360
|
+
color: var(--color-icon-default-default, currentColor);
|
|
10361
|
+
}
|
|
10362
|
+
|
|
10363
|
+
/* Icons inside buttons should inherit from button's foreground color */
|
|
10364
|
+
.muka-button .muka-icon {
|
|
10365
|
+
color: inherit;
|
|
10366
|
+
}
|
|
10367
|
+
|
|
10368
|
+
.muka-icon--subtle {
|
|
10369
|
+
color: var(--color-icon-subtle-default);
|
|
10370
|
+
}
|
|
10371
|
+
|
|
10372
|
+
.muka-icon--muted {
|
|
10373
|
+
color: var(--color-icon-muted-default);
|
|
10374
|
+
}
|
|
10375
|
+
|
|
10376
|
+
.muka-icon--inverse {
|
|
10377
|
+
color: var(--color-icon-default-inverse);
|
|
10378
|
+
}
|
|
10379
|
+
|
|
10380
|
+
.muka-icon--xs {
|
|
10381
|
+
width: var(--icon-size-xs);
|
|
10382
|
+
height: var(--icon-size-xs);
|
|
10383
|
+
}
|
|
10384
|
+
|
|
10385
|
+
.muka-icon--sm {
|
|
10386
|
+
width: var(--icon-size-sm);
|
|
10387
|
+
height: var(--icon-size-sm);
|
|
10388
|
+
}
|
|
10389
|
+
|
|
10390
|
+
.muka-icon--md {
|
|
10391
|
+
width: var(--icon-size-default);
|
|
10392
|
+
height: var(--icon-size-default);
|
|
10393
|
+
}
|
|
10394
|
+
|
|
10395
|
+
.muka-icon--lg {
|
|
10396
|
+
width: var(--icon-size-lg);
|
|
10397
|
+
height: var(--icon-size-lg);
|
|
10398
|
+
}
|
|
10399
|
+
|
|
10400
|
+
.muka-icon svg {
|
|
10401
|
+
width: 100%;
|
|
10402
|
+
height: 100%;
|
|
10403
|
+
}
|
|
10404
|
+
|
|
10405
|
+
|
|
10352
10406
|
/* Form */
|
|
10353
10407
|
.muka-form {
|
|
10354
10408
|
display: flex;
|
|
@@ -10772,60 +10826,6 @@ li.muka-listitem {
|
|
|
10772
10826
|
}
|
|
10773
10827
|
|
|
10774
10828
|
|
|
10775
|
-
/* Icon */
|
|
10776
|
-
/* Icon Component Styles - Using Muka Design Tokens */
|
|
10777
|
-
|
|
10778
|
-
.muka-icon {
|
|
10779
|
-
display: inline-flex;
|
|
10780
|
-
align-items: center;
|
|
10781
|
-
justify-content: center;
|
|
10782
|
-
flex-shrink: 0;
|
|
10783
|
-
color: var(--color-icon-default-default, currentColor);
|
|
10784
|
-
}
|
|
10785
|
-
|
|
10786
|
-
/* Icons inside buttons should inherit from button's foreground color */
|
|
10787
|
-
.muka-button .muka-icon {
|
|
10788
|
-
color: inherit;
|
|
10789
|
-
}
|
|
10790
|
-
|
|
10791
|
-
.muka-icon--subtle {
|
|
10792
|
-
color: var(--color-icon-subtle-default);
|
|
10793
|
-
}
|
|
10794
|
-
|
|
10795
|
-
.muka-icon--muted {
|
|
10796
|
-
color: var(--color-icon-muted-default);
|
|
10797
|
-
}
|
|
10798
|
-
|
|
10799
|
-
.muka-icon--inverse {
|
|
10800
|
-
color: var(--color-icon-default-inverse);
|
|
10801
|
-
}
|
|
10802
|
-
|
|
10803
|
-
.muka-icon--xs {
|
|
10804
|
-
width: var(--icon-size-xs);
|
|
10805
|
-
height: var(--icon-size-xs);
|
|
10806
|
-
}
|
|
10807
|
-
|
|
10808
|
-
.muka-icon--sm {
|
|
10809
|
-
width: var(--icon-size-sm);
|
|
10810
|
-
height: var(--icon-size-sm);
|
|
10811
|
-
}
|
|
10812
|
-
|
|
10813
|
-
.muka-icon--md {
|
|
10814
|
-
width: var(--icon-size-default);
|
|
10815
|
-
height: var(--icon-size-default);
|
|
10816
|
-
}
|
|
10817
|
-
|
|
10818
|
-
.muka-icon--lg {
|
|
10819
|
-
width: var(--icon-size-lg);
|
|
10820
|
-
height: var(--icon-size-lg);
|
|
10821
|
-
}
|
|
10822
|
-
|
|
10823
|
-
.muka-icon svg {
|
|
10824
|
-
width: 100%;
|
|
10825
|
-
height: 100%;
|
|
10826
|
-
}
|
|
10827
|
-
|
|
10828
|
-
|
|
10829
10829
|
/* EmptyState */
|
|
10830
10830
|
/* EmptyState Component Styles - Using Muka Design Tokens */
|
|
10831
10831
|
|
|
@@ -13787,10 +13787,21 @@ button.muka-chat-photo-grid__tile:focus-visible {
|
|
|
13787
13787
|
min-width: 0;
|
|
13788
13788
|
}
|
|
13789
13789
|
|
|
13790
|
+
/* In-thread widgets after the messages share the reasoning's indent. */
|
|
13791
|
+
.muka-chat-message-stack__widgets {
|
|
13792
|
+
display: flex;
|
|
13793
|
+
flex-direction: column;
|
|
13794
|
+
gap: var(--chatbubble-stack-gap);
|
|
13795
|
+
min-width: 0;
|
|
13796
|
+
}
|
|
13797
|
+
|
|
13798
|
+
.muka-chat-message-stack--has-avatar .muka-chat-message-stack__widgets,
|
|
13790
13799
|
.muka-chat-message-stack--has-avatar .muka-chat-message-stack__reasoning {
|
|
13791
13800
|
padding-left: calc(var(--chatbubble-avatar-size) + var(--chatbubble-row-gap));
|
|
13792
13801
|
}
|
|
13793
13802
|
|
|
13803
|
+
.muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
|
|
13804
|
+
.muka-chat-message-stack__widgets,
|
|
13794
13805
|
.muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
|
|
13795
13806
|
.muka-chat-message-stack__reasoning {
|
|
13796
13807
|
padding-left: 0;
|
|
@@ -13799,12 +13810,15 @@ button.muka-chat-photo-grid__tile:focus-visible {
|
|
|
13799
13810
|
|
|
13800
13811
|
/* Follow the message's compact rail and gap below the desktop breakpoint */
|
|
13801
13812
|
@media (max-width: 1023px) {
|
|
13813
|
+
.muka-chat-message-stack--has-avatar .muka-chat-message-stack__widgets,
|
|
13802
13814
|
.muka-chat-message-stack--has-avatar .muka-chat-message-stack__reasoning {
|
|
13803
13815
|
padding-left: calc(
|
|
13804
13816
|
var(--chatbubble-avatar-size-compact) + var(--chatbubble-row-gap-compact)
|
|
13805
13817
|
);
|
|
13806
13818
|
}
|
|
13807
13819
|
|
|
13820
|
+
.muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
|
|
13821
|
+
.muka-chat-message-stack__widgets,
|
|
13808
13822
|
.muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
|
|
13809
13823
|
.muka-chat-message-stack__reasoning {
|
|
13810
13824
|
padding-left: 0;
|