@giddaa-housing/ui 3.7.0 → 3.9.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/css/generated/shared.css +1 -1
- package/css/giddaa.css +16 -0
- package/dist/button.js +6 -4
- package/dist/calendar.js +1 -1
- package/dist/{combobox-D70DFHoM.js → combobox-Jfz8hryr.js} +98 -11
- package/dist/combobox.d.ts +2 -2
- package/dist/combobox.js +1 -1
- package/dist/data-table.d.ts +1 -1
- package/dist/date-picker.d.ts +1 -1
- package/dist/field.d.ts +3 -2
- package/dist/field.js +9 -2
- package/dist/label.d.ts +2 -1
- package/dist/label.js +12 -24
- package/dist/photo-gallery.js +19 -8
- package/dist/{picker-j3txxA5t.d.ts → picker-qxWi9wZ1.d.ts} +1 -1
- package/dist/{popover-CNymD33m.d.ts → popover-BMTZp3AQ.d.ts} +2 -2
- package/dist/popover.d.ts +1 -1
- package/dist/popover.js +2 -1
- package/dist/sheet.js +1 -1
- package/dist/skeleton.d.ts +2 -1
- package/dist/skeleton.js +12 -6
- package/dist/styles.css +150 -18
- package/dist/time-picker.d.ts +1 -1
- package/dist/toast.js +3 -3
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -1009,6 +1009,9 @@
|
|
|
1009
1009
|
.h-\[calc\(--spacing\(5\.25\)\)\] {
|
|
1010
1010
|
height: calc(calc(var(--spacing) * 5.25));
|
|
1011
1011
|
}
|
|
1012
|
+
.h-\[calc\(100dvh-3\.5rem\)\] {
|
|
1013
|
+
height: calc(100dvh - 3.5rem);
|
|
1014
|
+
}
|
|
1012
1015
|
.h-\[calc\(100lvh-3\.5rem\)\] {
|
|
1013
1016
|
height: calc(100lvh - 3.5rem);
|
|
1014
1017
|
}
|
|
@@ -3337,8 +3340,8 @@
|
|
|
3337
3340
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
3338
3341
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
3339
3342
|
}
|
|
3340
|
-
.transition-\[background-color\,color\,border-color\,box-shadow\,scale
|
|
3341
|
-
transition-property: background-color,color,border-color,box-shadow,scale
|
|
3343
|
+
.transition-\[background-color\,color\,border-color\,box-shadow\,scale\] {
|
|
3344
|
+
transition-property: background-color,color,border-color,box-shadow,scale;
|
|
3342
3345
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
3343
3346
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
3344
3347
|
}
|
|
@@ -6241,10 +6244,10 @@
|
|
|
6241
6244
|
inset-inline-start: calc(1/2 * 100%);
|
|
6242
6245
|
}
|
|
6243
6246
|
}
|
|
6244
|
-
.after\:top
|
|
6247
|
+
.after\:top-\[calc\(100\%-1px\)\] {
|
|
6245
6248
|
&::after {
|
|
6246
6249
|
content: var(--tw-content);
|
|
6247
|
-
top: 100
|
|
6250
|
+
top: calc(100% - 1px);
|
|
6248
6251
|
}
|
|
6249
6252
|
}
|
|
6250
6253
|
.after\:right-0 {
|
|
@@ -6253,10 +6256,16 @@
|
|
|
6253
6256
|
right: 0;
|
|
6254
6257
|
}
|
|
6255
6258
|
}
|
|
6256
|
-
.after\:bottom
|
|
6259
|
+
.after\:bottom-\[calc\(100\%-1px\)\] {
|
|
6257
6260
|
&::after {
|
|
6258
6261
|
content: var(--tw-content);
|
|
6259
|
-
bottom: 100
|
|
6262
|
+
bottom: calc(100% - 1px);
|
|
6263
|
+
}
|
|
6264
|
+
}
|
|
6265
|
+
.after\:-left-px {
|
|
6266
|
+
&::after {
|
|
6267
|
+
content: var(--tw-content);
|
|
6268
|
+
left: -1px;
|
|
6260
6269
|
}
|
|
6261
6270
|
}
|
|
6262
6271
|
.after\:left-0 {
|
|
@@ -6271,10 +6280,10 @@
|
|
|
6271
6280
|
z-index: 10;
|
|
6272
6281
|
}
|
|
6273
6282
|
}
|
|
6274
|
-
.after\:h-\[calc\(var\(--gap\)\+
|
|
6283
|
+
.after\:h-\[calc\(var\(--gap\)\+2px\)\] {
|
|
6275
6284
|
&::after {
|
|
6276
6285
|
content: var(--tw-content);
|
|
6277
|
-
height: calc(var(--gap) +
|
|
6286
|
+
height: calc(var(--gap) + 2px);
|
|
6278
6287
|
}
|
|
6279
6288
|
}
|
|
6280
6289
|
.after\:w-0\.5 {
|
|
@@ -6289,10 +6298,10 @@
|
|
|
6289
6298
|
width: 2px;
|
|
6290
6299
|
}
|
|
6291
6300
|
}
|
|
6292
|
-
.after\:w
|
|
6301
|
+
.after\:w-\[calc\(100\%\+2px\)\] {
|
|
6293
6302
|
&::after {
|
|
6294
6303
|
content: var(--tw-content);
|
|
6295
|
-
width: 100
|
|
6304
|
+
width: calc(100% + 2px);
|
|
6296
6305
|
}
|
|
6297
6306
|
}
|
|
6298
6307
|
.after\:bg-line {
|
|
@@ -7033,19 +7042,28 @@
|
|
|
7033
7042
|
}
|
|
7034
7043
|
}
|
|
7035
7044
|
}
|
|
7036
|
-
.active\:not-aria-\[haspopup\]\:translate-y-
|
|
7045
|
+
.active\:not-aria-\[haspopup\]\:translate-y-px {
|
|
7037
7046
|
&:active {
|
|
7038
7047
|
&:not(*[aria-haspopup]) {
|
|
7039
|
-
--tw-translate-y:
|
|
7048
|
+
--tw-translate-y: 1px;
|
|
7040
7049
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
7041
7050
|
}
|
|
7042
7051
|
}
|
|
7043
7052
|
}
|
|
7044
|
-
.active\:not-aria-\[haspopup\]\:
|
|
7053
|
+
.active\:not-aria-\[haspopup\]\:scale-100 {
|
|
7045
7054
|
&:active {
|
|
7046
7055
|
&:not(*[aria-haspopup]) {
|
|
7047
|
-
--tw-
|
|
7048
|
-
|
|
7056
|
+
--tw-scale-x: 100%;
|
|
7057
|
+
--tw-scale-y: 100%;
|
|
7058
|
+
--tw-scale-z: 100%;
|
|
7059
|
+
scale: var(--tw-scale-x) var(--tw-scale-y);
|
|
7060
|
+
}
|
|
7061
|
+
}
|
|
7062
|
+
}
|
|
7063
|
+
.active\:not-aria-\[haspopup\]\:scale-\[0\.97\] {
|
|
7064
|
+
&:active {
|
|
7065
|
+
&:not(*[aria-haspopup]) {
|
|
7066
|
+
scale: 0.97;
|
|
7049
7067
|
}
|
|
7050
7068
|
}
|
|
7051
7069
|
}
|
|
@@ -9881,12 +9899,14 @@
|
|
|
9881
9899
|
}
|
|
9882
9900
|
}
|
|
9883
9901
|
}
|
|
9884
|
-
.motion-reduce\:active\:not-aria-\[haspopup\]\:
|
|
9902
|
+
.motion-reduce\:active\:not-aria-\[haspopup\]\:scale-100 {
|
|
9885
9903
|
@media (prefers-reduced-motion: reduce) {
|
|
9886
9904
|
&:active {
|
|
9887
9905
|
&:not(*[aria-haspopup]) {
|
|
9888
|
-
--tw-
|
|
9889
|
-
|
|
9906
|
+
--tw-scale-x: 100%;
|
|
9907
|
+
--tw-scale-y: 100%;
|
|
9908
|
+
--tw-scale-z: 100%;
|
|
9909
|
+
scale: var(--tw-scale-x) var(--tw-scale-y);
|
|
9890
9910
|
}
|
|
9891
9911
|
}
|
|
9892
9912
|
}
|
|
@@ -10745,6 +10765,11 @@
|
|
|
10745
10765
|
height: 380px;
|
|
10746
10766
|
}
|
|
10747
10767
|
}
|
|
10768
|
+
.md\:h-\[calc\(--spacing\(5\.25\)\)\] {
|
|
10769
|
+
@media (width >= 48rem) {
|
|
10770
|
+
height: calc(calc(var(--spacing) * 5.25));
|
|
10771
|
+
}
|
|
10772
|
+
}
|
|
10748
10773
|
.md\:h-auto {
|
|
10749
10774
|
@media (width >= 48rem) {
|
|
10750
10775
|
height: auto;
|
|
@@ -10760,16 +10785,31 @@
|
|
|
10760
10785
|
min-height: calc(var(--spacing) * 7);
|
|
10761
10786
|
}
|
|
10762
10787
|
}
|
|
10788
|
+
.md\:min-h-8 {
|
|
10789
|
+
@media (width >= 48rem) {
|
|
10790
|
+
min-height: calc(var(--spacing) * 8);
|
|
10791
|
+
}
|
|
10792
|
+
}
|
|
10763
10793
|
.md\:min-h-9 {
|
|
10764
10794
|
@media (width >= 48rem) {
|
|
10765
10795
|
min-height: calc(var(--spacing) * 9);
|
|
10766
10796
|
}
|
|
10767
10797
|
}
|
|
10798
|
+
.md\:min-h-10 {
|
|
10799
|
+
@media (width >= 48rem) {
|
|
10800
|
+
min-height: calc(var(--spacing) * 10);
|
|
10801
|
+
}
|
|
10802
|
+
}
|
|
10768
10803
|
.md\:min-h-10\.5 {
|
|
10769
10804
|
@media (width >= 48rem) {
|
|
10770
10805
|
min-height: calc(var(--spacing) * 10.5);
|
|
10771
10806
|
}
|
|
10772
10807
|
}
|
|
10808
|
+
.md\:min-h-12 {
|
|
10809
|
+
@media (width >= 48rem) {
|
|
10810
|
+
min-height: calc(var(--spacing) * 12);
|
|
10811
|
+
}
|
|
10812
|
+
}
|
|
10773
10813
|
.md\:min-h-22 {
|
|
10774
10814
|
@media (width >= 48rem) {
|
|
10775
10815
|
min-height: calc(var(--spacing) * 22);
|
|
@@ -10985,6 +11025,11 @@
|
|
|
10985
11025
|
border-radius: var(--radius-lg);
|
|
10986
11026
|
}
|
|
10987
11027
|
}
|
|
11028
|
+
.md\:rounded-md {
|
|
11029
|
+
@media (width >= 48rem) {
|
|
11030
|
+
border-radius: var(--radius-md);
|
|
11031
|
+
}
|
|
11032
|
+
}
|
|
10988
11033
|
.md\:rounded-xl {
|
|
10989
11034
|
@media (width >= 48rem) {
|
|
10990
11035
|
border-radius: var(--radius-xl);
|
|
@@ -11020,6 +11065,16 @@
|
|
|
11020
11065
|
padding-inline: 0;
|
|
11021
11066
|
}
|
|
11022
11067
|
}
|
|
11068
|
+
.md\:px-1\.5 {
|
|
11069
|
+
@media (width >= 48rem) {
|
|
11070
|
+
padding-inline: calc(var(--spacing) * 1.5);
|
|
11071
|
+
}
|
|
11072
|
+
}
|
|
11073
|
+
.md\:px-2 {
|
|
11074
|
+
@media (width >= 48rem) {
|
|
11075
|
+
padding-inline: calc(var(--spacing) * 2);
|
|
11076
|
+
}
|
|
11077
|
+
}
|
|
11023
11078
|
.md\:px-2\.5 {
|
|
11024
11079
|
@media (width >= 48rem) {
|
|
11025
11080
|
padding-inline: calc(var(--spacing) * 2.5);
|
|
@@ -11335,6 +11390,27 @@
|
|
|
11335
11390
|
}
|
|
11336
11391
|
}
|
|
11337
11392
|
}
|
|
11393
|
+
.md\:has-data-\[slot\=combobox-chip\]\:px-1\.5 {
|
|
11394
|
+
@media (width >= 48rem) {
|
|
11395
|
+
&:has(*[data-slot="combobox-chip"]) {
|
|
11396
|
+
padding-inline: calc(var(--spacing) * 1.5);
|
|
11397
|
+
}
|
|
11398
|
+
}
|
|
11399
|
+
}
|
|
11400
|
+
.md\:has-data-\[slot\=combobox-chip\]\:px-2 {
|
|
11401
|
+
@media (width >= 48rem) {
|
|
11402
|
+
&:has(*[data-slot="combobox-chip"]) {
|
|
11403
|
+
padding-inline: calc(var(--spacing) * 2);
|
|
11404
|
+
}
|
|
11405
|
+
}
|
|
11406
|
+
}
|
|
11407
|
+
.md\:has-data-\[slot\=combobox-chip\]\:px-2\.5 {
|
|
11408
|
+
@media (width >= 48rem) {
|
|
11409
|
+
&:has(*[data-slot="combobox-chip"]) {
|
|
11410
|
+
padding-inline: calc(var(--spacing) * 2.5);
|
|
11411
|
+
}
|
|
11412
|
+
}
|
|
11413
|
+
}
|
|
11338
11414
|
.lg\:order-first {
|
|
11339
11415
|
@media (width >= 64rem) {
|
|
11340
11416
|
order: -9999;
|
|
@@ -11502,6 +11578,11 @@
|
|
|
11502
11578
|
height: 480px;
|
|
11503
11579
|
}
|
|
11504
11580
|
}
|
|
11581
|
+
.lg\:h-\[calc\(--spacing\(5\.25\)\)\] {
|
|
11582
|
+
@media (width >= 64rem) {
|
|
11583
|
+
height: calc(calc(var(--spacing) * 5.25));
|
|
11584
|
+
}
|
|
11585
|
+
}
|
|
11505
11586
|
.lg\:h-auto {
|
|
11506
11587
|
@media (width >= 64rem) {
|
|
11507
11588
|
height: auto;
|
|
@@ -11517,16 +11598,31 @@
|
|
|
11517
11598
|
min-height: calc(var(--spacing) * 7);
|
|
11518
11599
|
}
|
|
11519
11600
|
}
|
|
11601
|
+
.lg\:min-h-8 {
|
|
11602
|
+
@media (width >= 64rem) {
|
|
11603
|
+
min-height: calc(var(--spacing) * 8);
|
|
11604
|
+
}
|
|
11605
|
+
}
|
|
11520
11606
|
.lg\:min-h-9 {
|
|
11521
11607
|
@media (width >= 64rem) {
|
|
11522
11608
|
min-height: calc(var(--spacing) * 9);
|
|
11523
11609
|
}
|
|
11524
11610
|
}
|
|
11611
|
+
.lg\:min-h-10 {
|
|
11612
|
+
@media (width >= 64rem) {
|
|
11613
|
+
min-height: calc(var(--spacing) * 10);
|
|
11614
|
+
}
|
|
11615
|
+
}
|
|
11525
11616
|
.lg\:min-h-10\.5 {
|
|
11526
11617
|
@media (width >= 64rem) {
|
|
11527
11618
|
min-height: calc(var(--spacing) * 10.5);
|
|
11528
11619
|
}
|
|
11529
11620
|
}
|
|
11621
|
+
.lg\:min-h-12 {
|
|
11622
|
+
@media (width >= 64rem) {
|
|
11623
|
+
min-height: calc(var(--spacing) * 12);
|
|
11624
|
+
}
|
|
11625
|
+
}
|
|
11530
11626
|
.lg\:min-h-22 {
|
|
11531
11627
|
@media (width >= 64rem) {
|
|
11532
11628
|
min-height: calc(var(--spacing) * 22);
|
|
@@ -11687,6 +11783,11 @@
|
|
|
11687
11783
|
border-radius: var(--radius-lg);
|
|
11688
11784
|
}
|
|
11689
11785
|
}
|
|
11786
|
+
.lg\:rounded-md {
|
|
11787
|
+
@media (width >= 64rem) {
|
|
11788
|
+
border-radius: var(--radius-md);
|
|
11789
|
+
}
|
|
11790
|
+
}
|
|
11690
11791
|
.lg\:rounded-xl {
|
|
11691
11792
|
@media (width >= 64rem) {
|
|
11692
11793
|
border-radius: var(--radius-xl);
|
|
@@ -11723,6 +11824,16 @@
|
|
|
11723
11824
|
padding-inline: 0;
|
|
11724
11825
|
}
|
|
11725
11826
|
}
|
|
11827
|
+
.lg\:px-1\.5 {
|
|
11828
|
+
@media (width >= 64rem) {
|
|
11829
|
+
padding-inline: calc(var(--spacing) * 1.5);
|
|
11830
|
+
}
|
|
11831
|
+
}
|
|
11832
|
+
.lg\:px-2 {
|
|
11833
|
+
@media (width >= 64rem) {
|
|
11834
|
+
padding-inline: calc(var(--spacing) * 2);
|
|
11835
|
+
}
|
|
11836
|
+
}
|
|
11726
11837
|
.lg\:px-2\.5 {
|
|
11727
11838
|
@media (width >= 64rem) {
|
|
11728
11839
|
padding-inline: calc(var(--spacing) * 2.5);
|
|
@@ -12101,6 +12212,27 @@
|
|
|
12101
12212
|
}
|
|
12102
12213
|
}
|
|
12103
12214
|
}
|
|
12215
|
+
.lg\:has-data-\[slot\=combobox-chip\]\:px-1\.5 {
|
|
12216
|
+
@media (width >= 64rem) {
|
|
12217
|
+
&:has(*[data-slot="combobox-chip"]) {
|
|
12218
|
+
padding-inline: calc(var(--spacing) * 1.5);
|
|
12219
|
+
}
|
|
12220
|
+
}
|
|
12221
|
+
}
|
|
12222
|
+
.lg\:has-data-\[slot\=combobox-chip\]\:px-2 {
|
|
12223
|
+
@media (width >= 64rem) {
|
|
12224
|
+
&:has(*[data-slot="combobox-chip"]) {
|
|
12225
|
+
padding-inline: calc(var(--spacing) * 2);
|
|
12226
|
+
}
|
|
12227
|
+
}
|
|
12228
|
+
}
|
|
12229
|
+
.lg\:has-data-\[slot\=combobox-chip\]\:px-2\.5 {
|
|
12230
|
+
@media (width >= 64rem) {
|
|
12231
|
+
&:has(*[data-slot="combobox-chip"]) {
|
|
12232
|
+
padding-inline: calc(var(--spacing) * 2.5);
|
|
12233
|
+
}
|
|
12234
|
+
}
|
|
12235
|
+
}
|
|
12104
12236
|
.xl\:-mb-\[9rem\] {
|
|
12105
12237
|
@media (width >= 80rem) {
|
|
12106
12238
|
margin-bottom: calc(9rem * -1);
|
package/dist/time-picker.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputSizeValue } from "./input.js";
|
|
2
|
-
import { t as PickerPlacementProps } from "./picker-
|
|
2
|
+
import { t as PickerPlacementProps } from "./picker-qxWi9wZ1.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
//#region src/time-picker.d.ts
|
|
5
5
|
interface TimePickerProps extends PickerPlacementProps {
|
package/dist/toast.js
CHANGED
|
@@ -137,7 +137,7 @@ function ToastIcon({ type }) {
|
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
const toastContentClassName = "transition-opacity duration-250 data-behind:pointer-events-none data-behind:opacity-0 data-expanded:pointer-events-auto data-expanded:opacity-100";
|
|
140
|
-
const toastRootBaseClassName = "[--gap:12px] [--peek:12px] [--anchor-x:0px] [--anchor-y:0px] [--scale:calc(max(0,1-(var(--toast-placement-index)*0.04)))] [--shrink:calc(1-var(--scale))] [--height:var(--toast-placement-frontmost-height,var(--toast-height))] absolute z-[calc(1000-var(--toast-placement-index))] h-[var(--height)] min-h-[var(--height)] w-[min(335px,calc(100vw-32px))] overflow-visible rounded-lg border border-line bg-surface-overlay text-fg-primary shadow-[var(--elevation-e2-shadow)] pointer-events-auto select-none [transform:translateX(calc(var(--anchor-x)+var(--toast-swipe-movement-x,0px)))_translateY(var(--collapsed-y))_scale(var(--scale))] [transition:transform_var(--duration-motion-surface)_var(--ease-gdt-out),opacity_var(--duration-motion-surface)_var(--ease-gdt-out)] motion-reduce:[transition:opacity_var(--duration-motion-surface)_var(--ease-gdt-out)] data-swiping:transition-none after:absolute after
|
|
140
|
+
const toastRootBaseClassName = "[--gap:12px] [--peek:12px] [--anchor-x:0px] [--anchor-y:0px] [--scale:calc(max(0,1-(var(--toast-placement-index)*0.04)))] [--shrink:calc(1-var(--scale))] [--height:var(--toast-placement-frontmost-height,var(--toast-height))] absolute z-[calc(1000-var(--toast-placement-index))] h-[var(--height)] min-h-[var(--height)] w-[min(335px,calc(100vw-32px))] overflow-visible rounded-lg border border-line bg-surface-overlay text-fg-primary shadow-[var(--elevation-e2-shadow)] pointer-events-auto select-none [transform:translateX(calc(var(--anchor-x)+var(--toast-swipe-movement-x,0px)))_translateY(var(--collapsed-y))_scale(var(--scale))] [transition:transform_var(--duration-motion-surface)_var(--ease-gdt-out),opacity_var(--duration-motion-surface)_var(--ease-gdt-out)] motion-reduce:[transition:opacity_var(--duration-motion-surface)_var(--ease-gdt-out)] data-swiping:transition-none after:absolute after:-left-px after:h-[calc(var(--gap)+2px)] after:w-[calc(100%+2px)] after:pointer-events-auto after:content-[''] data-[expanded]:h-[var(--toast-height)] data-[expanded]:[transform:translateX(calc(var(--anchor-x)+var(--toast-swipe-movement-x,0px)))_translateY(var(--expanded-y))_scale(1)] data-[starting-style]:opacity-0 data-[starting-style]:[transform:translateX(var(--exit-x))_translateY(var(--exit-y))_scale(var(--scale))] data-[ending-style]:opacity-0 data-[limited]:opacity-0 [&[data-ending-style]:not([data-limited]):not([data-swipe-direction])]:[transform:translateX(var(--exit-x))_translateY(var(--exit-y))_scale(var(--scale))] data-[ending-style]:data-[swipe-direction=up]:[transform:translateX(calc(var(--anchor-x)+var(--toast-swipe-movement-x,0px)))_translateY(calc(var(--anchor-y)+var(--toast-swipe-movement-y)-150%))_scale(var(--scale))] data-[expanded]:data-[ending-style]:data-[swipe-direction=up]:[transform:translateX(calc(var(--anchor-x)+var(--toast-swipe-movement-x,0px)))_translateY(calc(var(--anchor-y)+var(--toast-swipe-movement-y)-150%))_scale(1)] data-[ending-style]:data-[swipe-direction=down]:[transform:translateX(calc(var(--anchor-x)+var(--toast-swipe-movement-x,0px)))_translateY(calc(var(--anchor-y)+var(--toast-swipe-movement-y)+150%))_scale(var(--scale))] data-[expanded]:data-[ending-style]:data-[swipe-direction=down]:[transform:translateX(calc(var(--anchor-x)+var(--toast-swipe-movement-x,0px)))_translateY(calc(var(--anchor-y)+var(--toast-swipe-movement-y)+150%))_scale(1)] data-[ending-style]:data-[swipe-direction=left]:[transform:translateX(calc(var(--anchor-x)+var(--toast-swipe-movement-x,0px)-150%))_translateY(var(--expanded-y))_scale(var(--scale))] data-[expanded]:data-[ending-style]:data-[swipe-direction=left]:[transform:translateX(calc(var(--anchor-x)+var(--toast-swipe-movement-x,0px)-150%))_translateY(var(--expanded-y))_scale(1)] data-[ending-style]:data-[swipe-direction=right]:[transform:translateX(calc(var(--anchor-x)+var(--toast-swipe-movement-x,0px)+150%))_translateY(var(--expanded-y))_scale(var(--scale))] data-[expanded]:data-[ending-style]:data-[swipe-direction=right]:[transform:translateX(calc(var(--anchor-x)+var(--toast-swipe-movement-x,0px)+150%))_translateY(var(--expanded-y))_scale(1)]";
|
|
141
141
|
function getToastPlacement(item, isRtl = false) {
|
|
142
142
|
const side = item.positionerProps?.side ?? DEFAULT_TOAST_SIDE;
|
|
143
143
|
const align = item.positionerProps?.align ?? DEFAULT_TOAST_ALIGN;
|
|
@@ -159,8 +159,8 @@ function getToastPositionClassName({ side, align }) {
|
|
|
159
159
|
return cn(side === "left" && "left-6 origin-left max-sm:left-4", side === "right" && "right-6 origin-right max-sm:right-4", align === "start" && "top-6 max-sm:top-4", align === "center" && "top-1/2 [--anchor-y:-50%]", align === "end" && "bottom-6 max-sm:bottom-4", side === "left" && align === "start" && "origin-top-left", side === "left" && align === "end" && "origin-bottom-left", side === "right" && align === "start" && "origin-top-right", side === "right" && align === "end" && "origin-bottom-right");
|
|
160
160
|
}
|
|
161
161
|
function getToastStackClassName({ side, align }) {
|
|
162
|
-
if (side === "bottom" || (side === "left" || side === "right") && align === "end") return "after:bottom-
|
|
163
|
-
return "after:top-
|
|
162
|
+
if (side === "bottom" || (side === "left" || side === "right") && align === "end") return "after:bottom-[calc(100%-1px)] [--expanded-y:calc(var(--anchor-y)+var(--toast-swipe-movement-y)-var(--toast-placement-offset-y)-(var(--toast-placement-index)*var(--gap)))] [--collapsed-y:calc(var(--anchor-y)+var(--toast-swipe-movement-y)-(var(--toast-placement-index)*var(--peek))-(var(--shrink)*var(--height)))]";
|
|
163
|
+
return "after:top-[calc(100%-1px)] [--expanded-y:calc(var(--anchor-y)+var(--toast-placement-offset-y)+(var(--toast-placement-index)*var(--gap))+var(--toast-swipe-movement-y))] [--collapsed-y:calc(var(--anchor-y)+var(--toast-swipe-movement-y)+(var(--toast-placement-index)*var(--peek))+(var(--shrink)*var(--height)))]";
|
|
164
164
|
}
|
|
165
165
|
function getToastExitClassName(side) {
|
|
166
166
|
if (side === "bottom") return "[--exit-x:calc(var(--anchor-x)+24px)] [--exit-y:calc(var(--anchor-y)+150%)]";
|