@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
|
@@ -8556,6 +8556,122 @@ button.muka-progress-tracker__tab:focus-visible {
|
|
|
8556
8556
|
}
|
|
8557
8557
|
|
|
8558
8558
|
|
|
8559
|
+
/* PhotoUploader */
|
|
8560
|
+
/* PhotoUploader Component Styles - Using Muka Design Tokens */
|
|
8561
|
+
|
|
8562
|
+
.muka-photo-uploader {
|
|
8563
|
+
display: flex;
|
|
8564
|
+
flex-direction: column;
|
|
8565
|
+
align-items: flex-start;
|
|
8566
|
+
gap: var(--spacing-4);
|
|
8567
|
+
width: 100%;
|
|
8568
|
+
}
|
|
8569
|
+
|
|
8570
|
+
/* Visually-hidden native file input */
|
|
8571
|
+
.muka-photo-uploader__input {
|
|
8572
|
+
position: absolute;
|
|
8573
|
+
width: 1px;
|
|
8574
|
+
height: 1px;
|
|
8575
|
+
padding: 0;
|
|
8576
|
+
margin: -1px;
|
|
8577
|
+
overflow: hidden;
|
|
8578
|
+
clip: rect(0, 0, 0, 0);
|
|
8579
|
+
white-space: nowrap;
|
|
8580
|
+
border: 0;
|
|
8581
|
+
}
|
|
8582
|
+
|
|
8583
|
+
/* ─── Error feedback alert ────────────────────────────── */
|
|
8584
|
+
.muka-photo-uploader__alert {
|
|
8585
|
+
width: 100%;
|
|
8586
|
+
}
|
|
8587
|
+
|
|
8588
|
+
/* ─── Thumbnail grid ──────────────────────────────────── */
|
|
8589
|
+
.muka-photo-uploader__grid {
|
|
8590
|
+
display: flex;
|
|
8591
|
+
flex-wrap: wrap;
|
|
8592
|
+
gap: var(--spacing-3);
|
|
8593
|
+
width: 100%;
|
|
8594
|
+
margin: 0;
|
|
8595
|
+
padding: 0;
|
|
8596
|
+
list-style: none;
|
|
8597
|
+
}
|
|
8598
|
+
|
|
8599
|
+
.muka-photo-uploader__grid-item {
|
|
8600
|
+
margin: 0;
|
|
8601
|
+
padding: 0;
|
|
8602
|
+
}
|
|
8603
|
+
|
|
8604
|
+
/* ─── Drop zone card (button + "or drop here") ────────── */
|
|
8605
|
+
.muka-photo-uploader__dropzone {
|
|
8606
|
+
display: flex;
|
|
8607
|
+
flex-direction: column;
|
|
8608
|
+
align-items: center;
|
|
8609
|
+
justify-content: center;
|
|
8610
|
+
gap: var(--spacing-4);
|
|
8611
|
+
width: 100%;
|
|
8612
|
+
padding: var(--card-padding-lg);
|
|
8613
|
+
background-color: var(--card-color-default-background);
|
|
8614
|
+
border: var(--border-width-regular, 1px) solid var(--card-color-default-border);
|
|
8615
|
+
border-radius: var(--border-radius-lg);
|
|
8616
|
+
cursor: pointer;
|
|
8617
|
+
text-align: center;
|
|
8618
|
+
transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
|
|
8619
|
+
border-color var(--motion-duration-micro) var(--motion-easing-enter);
|
|
8620
|
+
}
|
|
8621
|
+
|
|
8622
|
+
.muka-photo-uploader__dropzone:hover,
|
|
8623
|
+
.muka-photo-uploader__dropzone--active {
|
|
8624
|
+
border-color: var(--color-border-focus);
|
|
8625
|
+
background-color: var(--color-surface-level1);
|
|
8626
|
+
}
|
|
8627
|
+
|
|
8628
|
+
.muka-photo-uploader__dropzone-text {
|
|
8629
|
+
font-family: var(--text-subheading-sm-fontFamily);
|
|
8630
|
+
font-size: var(--text-subheading-sm-fontSize);
|
|
8631
|
+
font-weight: var(--text-subheading-sm-fontWeight);
|
|
8632
|
+
line-height: var(--text-subheading-sm-lineHeight);
|
|
8633
|
+
color: var(--color-text-default-default);
|
|
8634
|
+
}
|
|
8635
|
+
|
|
8636
|
+
/* ─── Disabled ────────────────────────────────────────── */
|
|
8637
|
+
.muka-photo-uploader--disabled .muka-photo-uploader__dropzone {
|
|
8638
|
+
cursor: not-allowed;
|
|
8639
|
+
opacity: 0.6;
|
|
8640
|
+
}
|
|
8641
|
+
|
|
8642
|
+
.muka-photo-uploader--disabled .muka-photo-uploader__dropzone:hover {
|
|
8643
|
+
border-color: var(--card-color-default-border);
|
|
8644
|
+
background-color: var(--card-color-default-background);
|
|
8645
|
+
}
|
|
8646
|
+
|
|
8647
|
+
/* ─── Enlarged photo dialog ───────────────────────────── */
|
|
8648
|
+
.muka-photo-uploader__preview {
|
|
8649
|
+
display: flex;
|
|
8650
|
+
align-items: center;
|
|
8651
|
+
justify-content: center;
|
|
8652
|
+
width: 100%;
|
|
8653
|
+
height: 100%;
|
|
8654
|
+
}
|
|
8655
|
+
|
|
8656
|
+
/* Fits the dialog while preserving the photo's original aspect ratio. */
|
|
8657
|
+
.muka-photo-uploader__preview-image {
|
|
8658
|
+
display: block;
|
|
8659
|
+
max-width: 100%;
|
|
8660
|
+
max-height: 100%;
|
|
8661
|
+
width: auto;
|
|
8662
|
+
height: auto;
|
|
8663
|
+
object-fit: contain;
|
|
8664
|
+
border-radius: var(--border-radius-lg);
|
|
8665
|
+
}
|
|
8666
|
+
|
|
8667
|
+
/* ─── Reduced motion ──────────────────────────────────── */
|
|
8668
|
+
@media (prefers-reduced-motion: reduce) {
|
|
8669
|
+
.muka-photo-uploader__dropzone {
|
|
8670
|
+
transition: none;
|
|
8671
|
+
}
|
|
8672
|
+
}
|
|
8673
|
+
|
|
8674
|
+
|
|
8559
8675
|
/* PhotoDraftStrip */
|
|
8560
8676
|
/* PhotoDraftStrip Component Styles */
|
|
8561
8677
|
|
|
@@ -9225,122 +9341,6 @@ button.muka-progress-tracker__tab:focus-visible {
|
|
|
9225
9341
|
}
|
|
9226
9342
|
|
|
9227
9343
|
|
|
9228
|
-
/* PhotoUploader */
|
|
9229
|
-
/* PhotoUploader Component Styles - Using Muka Design Tokens */
|
|
9230
|
-
|
|
9231
|
-
.muka-photo-uploader {
|
|
9232
|
-
display: flex;
|
|
9233
|
-
flex-direction: column;
|
|
9234
|
-
align-items: flex-start;
|
|
9235
|
-
gap: var(--spacing-4);
|
|
9236
|
-
width: 100%;
|
|
9237
|
-
}
|
|
9238
|
-
|
|
9239
|
-
/* Visually-hidden native file input */
|
|
9240
|
-
.muka-photo-uploader__input {
|
|
9241
|
-
position: absolute;
|
|
9242
|
-
width: 1px;
|
|
9243
|
-
height: 1px;
|
|
9244
|
-
padding: 0;
|
|
9245
|
-
margin: -1px;
|
|
9246
|
-
overflow: hidden;
|
|
9247
|
-
clip: rect(0, 0, 0, 0);
|
|
9248
|
-
white-space: nowrap;
|
|
9249
|
-
border: 0;
|
|
9250
|
-
}
|
|
9251
|
-
|
|
9252
|
-
/* ─── Error feedback alert ────────────────────────────── */
|
|
9253
|
-
.muka-photo-uploader__alert {
|
|
9254
|
-
width: 100%;
|
|
9255
|
-
}
|
|
9256
|
-
|
|
9257
|
-
/* ─── Thumbnail grid ──────────────────────────────────── */
|
|
9258
|
-
.muka-photo-uploader__grid {
|
|
9259
|
-
display: flex;
|
|
9260
|
-
flex-wrap: wrap;
|
|
9261
|
-
gap: var(--spacing-3);
|
|
9262
|
-
width: 100%;
|
|
9263
|
-
margin: 0;
|
|
9264
|
-
padding: 0;
|
|
9265
|
-
list-style: none;
|
|
9266
|
-
}
|
|
9267
|
-
|
|
9268
|
-
.muka-photo-uploader__grid-item {
|
|
9269
|
-
margin: 0;
|
|
9270
|
-
padding: 0;
|
|
9271
|
-
}
|
|
9272
|
-
|
|
9273
|
-
/* ─── Drop zone card (button + "or drop here") ────────── */
|
|
9274
|
-
.muka-photo-uploader__dropzone {
|
|
9275
|
-
display: flex;
|
|
9276
|
-
flex-direction: column;
|
|
9277
|
-
align-items: center;
|
|
9278
|
-
justify-content: center;
|
|
9279
|
-
gap: var(--spacing-4);
|
|
9280
|
-
width: 100%;
|
|
9281
|
-
padding: var(--card-padding-lg);
|
|
9282
|
-
background-color: var(--card-color-default-background);
|
|
9283
|
-
border: var(--border-width-regular, 1px) solid var(--card-color-default-border);
|
|
9284
|
-
border-radius: var(--border-radius-lg);
|
|
9285
|
-
cursor: pointer;
|
|
9286
|
-
text-align: center;
|
|
9287
|
-
transition: background-color var(--motion-duration-micro) var(--motion-easing-enter),
|
|
9288
|
-
border-color var(--motion-duration-micro) var(--motion-easing-enter);
|
|
9289
|
-
}
|
|
9290
|
-
|
|
9291
|
-
.muka-photo-uploader__dropzone:hover,
|
|
9292
|
-
.muka-photo-uploader__dropzone--active {
|
|
9293
|
-
border-color: var(--color-border-focus);
|
|
9294
|
-
background-color: var(--color-surface-level1);
|
|
9295
|
-
}
|
|
9296
|
-
|
|
9297
|
-
.muka-photo-uploader__dropzone-text {
|
|
9298
|
-
font-family: var(--text-subheading-sm-fontFamily);
|
|
9299
|
-
font-size: var(--text-subheading-sm-fontSize);
|
|
9300
|
-
font-weight: var(--text-subheading-sm-fontWeight);
|
|
9301
|
-
line-height: var(--text-subheading-sm-lineHeight);
|
|
9302
|
-
color: var(--color-text-default-default);
|
|
9303
|
-
}
|
|
9304
|
-
|
|
9305
|
-
/* ─── Disabled ────────────────────────────────────────── */
|
|
9306
|
-
.muka-photo-uploader--disabled .muka-photo-uploader__dropzone {
|
|
9307
|
-
cursor: not-allowed;
|
|
9308
|
-
opacity: 0.6;
|
|
9309
|
-
}
|
|
9310
|
-
|
|
9311
|
-
.muka-photo-uploader--disabled .muka-photo-uploader__dropzone:hover {
|
|
9312
|
-
border-color: var(--card-color-default-border);
|
|
9313
|
-
background-color: var(--card-color-default-background);
|
|
9314
|
-
}
|
|
9315
|
-
|
|
9316
|
-
/* ─── Enlarged photo dialog ───────────────────────────── */
|
|
9317
|
-
.muka-photo-uploader__preview {
|
|
9318
|
-
display: flex;
|
|
9319
|
-
align-items: center;
|
|
9320
|
-
justify-content: center;
|
|
9321
|
-
width: 100%;
|
|
9322
|
-
height: 100%;
|
|
9323
|
-
}
|
|
9324
|
-
|
|
9325
|
-
/* Fits the dialog while preserving the photo's original aspect ratio. */
|
|
9326
|
-
.muka-photo-uploader__preview-image {
|
|
9327
|
-
display: block;
|
|
9328
|
-
max-width: 100%;
|
|
9329
|
-
max-height: 100%;
|
|
9330
|
-
width: auto;
|
|
9331
|
-
height: auto;
|
|
9332
|
-
object-fit: contain;
|
|
9333
|
-
border-radius: var(--border-radius-lg);
|
|
9334
|
-
}
|
|
9335
|
-
|
|
9336
|
-
/* ─── Reduced motion ──────────────────────────────────── */
|
|
9337
|
-
@media (prefers-reduced-motion: reduce) {
|
|
9338
|
-
.muka-photo-uploader__dropzone {
|
|
9339
|
-
transition: none;
|
|
9340
|
-
}
|
|
9341
|
-
}
|
|
9342
|
-
|
|
9343
|
-
|
|
9344
9344
|
/* MediaViewer */
|
|
9345
9345
|
/* MediaViewer Component Styles - Using Muka Design Tokens */
|
|
9346
9346
|
|
|
@@ -10414,6 +10414,60 @@ li.muka-listitem {
|
|
|
10414
10414
|
}
|
|
10415
10415
|
|
|
10416
10416
|
|
|
10417
|
+
/* Icon */
|
|
10418
|
+
/* Icon Component Styles - Using Muka Design Tokens */
|
|
10419
|
+
|
|
10420
|
+
.muka-icon {
|
|
10421
|
+
display: inline-flex;
|
|
10422
|
+
align-items: center;
|
|
10423
|
+
justify-content: center;
|
|
10424
|
+
flex-shrink: 0;
|
|
10425
|
+
color: var(--color-icon-default-default, currentColor);
|
|
10426
|
+
}
|
|
10427
|
+
|
|
10428
|
+
/* Icons inside buttons should inherit from button's foreground color */
|
|
10429
|
+
.muka-button .muka-icon {
|
|
10430
|
+
color: inherit;
|
|
10431
|
+
}
|
|
10432
|
+
|
|
10433
|
+
.muka-icon--subtle {
|
|
10434
|
+
color: var(--color-icon-subtle-default);
|
|
10435
|
+
}
|
|
10436
|
+
|
|
10437
|
+
.muka-icon--muted {
|
|
10438
|
+
color: var(--color-icon-muted-default);
|
|
10439
|
+
}
|
|
10440
|
+
|
|
10441
|
+
.muka-icon--inverse {
|
|
10442
|
+
color: var(--color-icon-default-inverse);
|
|
10443
|
+
}
|
|
10444
|
+
|
|
10445
|
+
.muka-icon--xs {
|
|
10446
|
+
width: var(--icon-size-xs);
|
|
10447
|
+
height: var(--icon-size-xs);
|
|
10448
|
+
}
|
|
10449
|
+
|
|
10450
|
+
.muka-icon--sm {
|
|
10451
|
+
width: var(--icon-size-sm);
|
|
10452
|
+
height: var(--icon-size-sm);
|
|
10453
|
+
}
|
|
10454
|
+
|
|
10455
|
+
.muka-icon--md {
|
|
10456
|
+
width: var(--icon-size-default);
|
|
10457
|
+
height: var(--icon-size-default);
|
|
10458
|
+
}
|
|
10459
|
+
|
|
10460
|
+
.muka-icon--lg {
|
|
10461
|
+
width: var(--icon-size-lg);
|
|
10462
|
+
height: var(--icon-size-lg);
|
|
10463
|
+
}
|
|
10464
|
+
|
|
10465
|
+
.muka-icon svg {
|
|
10466
|
+
width: 100%;
|
|
10467
|
+
height: 100%;
|
|
10468
|
+
}
|
|
10469
|
+
|
|
10470
|
+
|
|
10417
10471
|
/* Form */
|
|
10418
10472
|
.muka-form {
|
|
10419
10473
|
display: flex;
|
|
@@ -10837,60 +10891,6 @@ li.muka-listitem {
|
|
|
10837
10891
|
}
|
|
10838
10892
|
|
|
10839
10893
|
|
|
10840
|
-
/* Icon */
|
|
10841
|
-
/* Icon Component Styles - Using Muka Design Tokens */
|
|
10842
|
-
|
|
10843
|
-
.muka-icon {
|
|
10844
|
-
display: inline-flex;
|
|
10845
|
-
align-items: center;
|
|
10846
|
-
justify-content: center;
|
|
10847
|
-
flex-shrink: 0;
|
|
10848
|
-
color: var(--color-icon-default-default, currentColor);
|
|
10849
|
-
}
|
|
10850
|
-
|
|
10851
|
-
/* Icons inside buttons should inherit from button's foreground color */
|
|
10852
|
-
.muka-button .muka-icon {
|
|
10853
|
-
color: inherit;
|
|
10854
|
-
}
|
|
10855
|
-
|
|
10856
|
-
.muka-icon--subtle {
|
|
10857
|
-
color: var(--color-icon-subtle-default);
|
|
10858
|
-
}
|
|
10859
|
-
|
|
10860
|
-
.muka-icon--muted {
|
|
10861
|
-
color: var(--color-icon-muted-default);
|
|
10862
|
-
}
|
|
10863
|
-
|
|
10864
|
-
.muka-icon--inverse {
|
|
10865
|
-
color: var(--color-icon-default-inverse);
|
|
10866
|
-
}
|
|
10867
|
-
|
|
10868
|
-
.muka-icon--xs {
|
|
10869
|
-
width: var(--icon-size-xs);
|
|
10870
|
-
height: var(--icon-size-xs);
|
|
10871
|
-
}
|
|
10872
|
-
|
|
10873
|
-
.muka-icon--sm {
|
|
10874
|
-
width: var(--icon-size-sm);
|
|
10875
|
-
height: var(--icon-size-sm);
|
|
10876
|
-
}
|
|
10877
|
-
|
|
10878
|
-
.muka-icon--md {
|
|
10879
|
-
width: var(--icon-size-default);
|
|
10880
|
-
height: var(--icon-size-default);
|
|
10881
|
-
}
|
|
10882
|
-
|
|
10883
|
-
.muka-icon--lg {
|
|
10884
|
-
width: var(--icon-size-lg);
|
|
10885
|
-
height: var(--icon-size-lg);
|
|
10886
|
-
}
|
|
10887
|
-
|
|
10888
|
-
.muka-icon svg {
|
|
10889
|
-
width: 100%;
|
|
10890
|
-
height: 100%;
|
|
10891
|
-
}
|
|
10892
|
-
|
|
10893
|
-
|
|
10894
10894
|
/* EmptyState */
|
|
10895
10895
|
/* EmptyState Component Styles - Using Muka Design Tokens */
|
|
10896
10896
|
|
|
@@ -13852,10 +13852,21 @@ button.muka-chat-photo-grid__tile:focus-visible {
|
|
|
13852
13852
|
min-width: 0;
|
|
13853
13853
|
}
|
|
13854
13854
|
|
|
13855
|
+
/* In-thread widgets after the messages share the reasoning's indent. */
|
|
13856
|
+
.muka-chat-message-stack__widgets {
|
|
13857
|
+
display: flex;
|
|
13858
|
+
flex-direction: column;
|
|
13859
|
+
gap: var(--chatbubble-stack-gap);
|
|
13860
|
+
min-width: 0;
|
|
13861
|
+
}
|
|
13862
|
+
|
|
13863
|
+
.muka-chat-message-stack--has-avatar .muka-chat-message-stack__widgets,
|
|
13855
13864
|
.muka-chat-message-stack--has-avatar .muka-chat-message-stack__reasoning {
|
|
13856
13865
|
padding-left: calc(var(--chatbubble-avatar-size) + var(--chatbubble-row-gap));
|
|
13857
13866
|
}
|
|
13858
13867
|
|
|
13868
|
+
.muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
|
|
13869
|
+
.muka-chat-message-stack__widgets,
|
|
13859
13870
|
.muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
|
|
13860
13871
|
.muka-chat-message-stack__reasoning {
|
|
13861
13872
|
padding-left: 0;
|
|
@@ -13864,12 +13875,15 @@ button.muka-chat-photo-grid__tile:focus-visible {
|
|
|
13864
13875
|
|
|
13865
13876
|
/* Follow the message's compact rail and gap below the desktop breakpoint */
|
|
13866
13877
|
@media (max-width: 1023px) {
|
|
13878
|
+
.muka-chat-message-stack--has-avatar .muka-chat-message-stack__widgets,
|
|
13867
13879
|
.muka-chat-message-stack--has-avatar .muka-chat-message-stack__reasoning {
|
|
13868
13880
|
padding-left: calc(
|
|
13869
13881
|
var(--chatbubble-avatar-size-compact) + var(--chatbubble-row-gap-compact)
|
|
13870
13882
|
);
|
|
13871
13883
|
}
|
|
13872
13884
|
|
|
13885
|
+
.muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
|
|
13886
|
+
.muka-chat-message-stack__widgets,
|
|
13873
13887
|
.muka-chat-message-stack--own.muka-chat-message-stack--has-avatar
|
|
13874
13888
|
.muka-chat-message-stack__reasoning {
|
|
13875
13889
|
padding-left: 0;
|