@trismegisto/core 3.3.2 → 3.3.3
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/core.css +81 -3
- package/package.json +1 -1
package/dist/core.css
CHANGED
|
@@ -5336,6 +5336,12 @@ hm-tab-bar,
|
|
|
5336
5336
|
translate: 0 calc(-1 * var(--hm-space-sm));
|
|
5337
5337
|
}
|
|
5338
5338
|
}
|
|
5339
|
+
@keyframes hm-toast-stack-enter {
|
|
5340
|
+
from {
|
|
5341
|
+
opacity: 0;
|
|
5342
|
+
translate: 0 calc(var(--hm-toast-direction) * -100%);
|
|
5343
|
+
}
|
|
5344
|
+
}
|
|
5339
5345
|
@keyframes hm-toast-countdown {
|
|
5340
5346
|
from {
|
|
5341
5347
|
transform: scaleX(1);
|
|
@@ -5346,17 +5352,75 @@ hm-tab-bar,
|
|
|
5346
5352
|
}
|
|
5347
5353
|
hm-toast-stack,
|
|
5348
5354
|
.hm-toast-stack {
|
|
5355
|
+
--hm-toast-direction: 1;
|
|
5356
|
+
--hm-toast-peek: var(--hm-space-md);
|
|
5357
|
+
--hm-toast-gap: var(--hm-space-sm);
|
|
5349
5358
|
position: fixed;
|
|
5350
5359
|
inset-block-start: var(--hm-space-md);
|
|
5351
5360
|
inset-inline-end: var(--hm-space-md);
|
|
5352
5361
|
z-index: var(--hm-z-toast);
|
|
5353
|
-
display:
|
|
5354
|
-
flex-direction: column;
|
|
5355
|
-
gap: var(--hm-space-sm);
|
|
5362
|
+
display: block;
|
|
5356
5363
|
inline-size: min(var(--hm-space-3xl) * 10, 100vw - 2 * var(--hm-space-md));
|
|
5364
|
+
block-size: max(0px, var(--hm-toast-front-height, 0px) + (var(--hm-toast-count, 0) - 1) * var(--hm-toast-peek));
|
|
5365
|
+
}
|
|
5366
|
+
hm-toast-stack[data-position^=bottom],
|
|
5367
|
+
.hm-toast-stack[data-position^=bottom] {
|
|
5368
|
+
--hm-toast-direction: -1;
|
|
5369
|
+
inset-block: auto var(--hm-space-md);
|
|
5370
|
+
}
|
|
5371
|
+
hm-toast-stack[data-position$=start],
|
|
5372
|
+
.hm-toast-stack[data-position$=start] {
|
|
5373
|
+
inset-inline: var(--hm-space-md) auto;
|
|
5374
|
+
}
|
|
5375
|
+
hm-toast-stack[data-position$=center],
|
|
5376
|
+
.hm-toast-stack[data-position$=center] {
|
|
5377
|
+
inset-inline: 0;
|
|
5378
|
+
margin-inline: auto;
|
|
5379
|
+
}
|
|
5380
|
+
hm-toast-stack > .hm-toast,
|
|
5381
|
+
.hm-toast-stack > .hm-toast {
|
|
5382
|
+
position: absolute;
|
|
5383
|
+
inset-block-start: 0;
|
|
5384
|
+
inset-inline: 0;
|
|
5385
|
+
z-index: calc(var(--hm-toast-count, 1) - var(--hm-toast-index, 0));
|
|
5386
|
+
translate: 0 calc(var(--hm-toast-direction) * var(--hm-toast-index, 0) * var(--hm-toast-peek));
|
|
5387
|
+
scale: calc(1 - var(--hm-toast-index, 0) * 0.05);
|
|
5388
|
+
transform-origin: 50% 100%;
|
|
5389
|
+
transition: translate var(--hm-duration-relaxed) var(--hm-ease-decelerate), scale var(--hm-duration-relaxed) var(--hm-ease-decelerate), opacity var(--hm-duration-relaxed) var(--hm-ease-decelerate), visibility var(--hm-duration-relaxed);
|
|
5390
|
+
animation-name: hm-toast-stack-enter;
|
|
5391
|
+
}
|
|
5392
|
+
hm-toast-stack > .hm-toast > *,
|
|
5393
|
+
.hm-toast-stack > .hm-toast > * {
|
|
5394
|
+
transition: opacity var(--hm-duration-standard) var(--hm-ease-standard);
|
|
5395
|
+
}
|
|
5396
|
+
hm-toast-stack[data-position^=bottom] > .hm-toast,
|
|
5397
|
+
.hm-toast-stack[data-position^=bottom] > .hm-toast {
|
|
5398
|
+
inset-block: auto 0;
|
|
5399
|
+
transform-origin: 50% 0;
|
|
5400
|
+
}
|
|
5401
|
+
hm-toast-stack > .hm-toast[data-toast-state=behind],
|
|
5402
|
+
.hm-toast-stack > .hm-toast[data-toast-state=behind] {
|
|
5403
|
+
block-size: var(--hm-toast-front-height, auto);
|
|
5404
|
+
}
|
|
5405
|
+
hm-toast-stack > .hm-toast[data-toast-state=behind] > *,
|
|
5406
|
+
.hm-toast-stack > .hm-toast[data-toast-state=behind] > * {
|
|
5407
|
+
opacity: 0;
|
|
5408
|
+
}
|
|
5409
|
+
hm-toast-stack > .hm-toast[data-toast-state=hidden],
|
|
5410
|
+
.hm-toast-stack > .hm-toast[data-toast-state=hidden] {
|
|
5411
|
+
visibility: hidden;
|
|
5412
|
+
opacity: 0;
|
|
5357
5413
|
pointer-events: none;
|
|
5358
5414
|
}
|
|
5359
5415
|
|
|
5416
|
+
.hm-toast-stack--expanded {
|
|
5417
|
+
block-size: max(0px, var(--hm-toast-visible-height, 0px) + (var(--hm-toast-count, 0) - 1) * var(--hm-toast-gap));
|
|
5418
|
+
}
|
|
5419
|
+
.hm-toast-stack--expanded > .hm-toast {
|
|
5420
|
+
translate: 0 calc(var(--hm-toast-direction) * (var(--hm-toast-before, 0px) + var(--hm-toast-index, 0) * var(--hm-toast-gap)));
|
|
5421
|
+
scale: 1;
|
|
5422
|
+
}
|
|
5423
|
+
|
|
5360
5424
|
hm-toast,
|
|
5361
5425
|
.hm-toast {
|
|
5362
5426
|
--hm-toast-tone: var(--hm-info);
|
|
@@ -5478,11 +5542,25 @@ hm-toast,
|
|
|
5478
5542
|
:where(:root:not([data-motion])) .hm-toast {
|
|
5479
5543
|
animation: none;
|
|
5480
5544
|
}
|
|
5545
|
+
:where(:root:not([data-motion])) .hm-toast-stack > .hm-toast {
|
|
5546
|
+
animation: none;
|
|
5547
|
+
}
|
|
5548
|
+
:where(:root:not([data-motion])) .hm-toast-stack > .hm-toast,
|
|
5549
|
+
:where(:root:not([data-motion])) .hm-toast-stack > .hm-toast > * {
|
|
5550
|
+
transition: none;
|
|
5551
|
+
}
|
|
5481
5552
|
}
|
|
5482
5553
|
:where(:root[data-motion=reduce]) hm-toast,
|
|
5483
5554
|
:where(:root[data-motion=reduce]) .hm-toast {
|
|
5484
5555
|
animation: none;
|
|
5485
5556
|
}
|
|
5557
|
+
:where(:root[data-motion=reduce]) .hm-toast-stack > .hm-toast {
|
|
5558
|
+
animation: none;
|
|
5559
|
+
}
|
|
5560
|
+
:where(:root[data-motion=reduce]) .hm-toast-stack > .hm-toast,
|
|
5561
|
+
:where(:root[data-motion=reduce]) .hm-toast-stack > .hm-toast > * {
|
|
5562
|
+
transition: none;
|
|
5563
|
+
}
|
|
5486
5564
|
|
|
5487
5565
|
@media (forced-colors: active) {
|
|
5488
5566
|
.hm-toast__timer {
|