@empathyco/x-components 5.0.0-alpha.1 → 5.0.0-alpha.2
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/CHANGELOG.md +9 -0
- package/design-system/deprecated-full-theme.css +433 -433
- package/docs/API-reference/components/common/animations/x-components.staggering-transition-group.md +3 -3
- package/js/components/animations/staggering-transition-group.vue.js +1 -1
- package/js/components/animations/staggering-transition-group.vue.js.map +1 -1
- package/js/components/animations/staggering-transition-group.vue3.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.0.0-alpha.2](https://github.com/empathyco/x/compare/@empathyco/x-components@5.0.0-alpha.1...@empathyco/x-components@5.0.0-alpha.2) (2024-05-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Documentation
|
|
10
|
+
|
|
11
|
+
* fix typo (#1455) ([44eae35](https://github.com/empathyco/x/commit/44eae359b33f9642eb9af02701fd6a3295a2deb9))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [5.0.0-alpha.1](https://github.com/empathyco/x/compare/@empathyco/x-components@5.0.0-alpha.0...@empathyco/x-components@5.0.0-alpha.1) (2024-04-29)
|
|
7
16
|
|
|
8
17
|
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
|
|
3
|
+
.x-uppercase {
|
|
4
|
+
text-transform: uppercase;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.x-lowercase {
|
|
8
|
+
text-transform: lowercase;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.x-capitalize {
|
|
12
|
+
text-transform: capitalize;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.x-normal-case {
|
|
16
|
+
text-transform: none;
|
|
17
|
+
}
|
|
2
18
|
.x-underline {
|
|
3
19
|
-webkit-text-decoration-line: underline;
|
|
4
20
|
text-decoration-line: underline;
|
|
@@ -478,7 +494,6 @@
|
|
|
478
494
|
[dir="rtl"] .x-padding--left-20 {
|
|
479
495
|
padding-right: var(--x-size-base-20) !important;
|
|
480
496
|
}
|
|
481
|
-
|
|
482
497
|
.x-margin--auto {
|
|
483
498
|
margin: auto !important;
|
|
484
499
|
}
|
|
@@ -964,15 +979,6 @@
|
|
|
964
979
|
.x-line-height--loose {
|
|
965
980
|
line-height: 2 !important;
|
|
966
981
|
}
|
|
967
|
-
.x-font-weight--light {
|
|
968
|
-
font-weight: var(--x-number-font-weight-base-light) !important;
|
|
969
|
-
}
|
|
970
|
-
.x-font-weight--regular {
|
|
971
|
-
font-weight: var(--x-number-font-weight-base-regular) !important;
|
|
972
|
-
}
|
|
973
|
-
.x-font-weight--bold {
|
|
974
|
-
font-weight: var(--x-number-font-weight-base-bold) !important;
|
|
975
|
-
}
|
|
976
982
|
.x-line-clamp--2 {
|
|
977
983
|
overflow: hidden !important;
|
|
978
984
|
display: -webkit-box !important;
|
|
@@ -1007,6 +1013,15 @@
|
|
|
1007
1013
|
-webkit-box-orient: vertical !important;
|
|
1008
1014
|
-webkit-line-clamp: 6 !important;
|
|
1009
1015
|
}
|
|
1016
|
+
.x-font-weight--light {
|
|
1017
|
+
font-weight: var(--x-number-font-weight-base-light) !important;
|
|
1018
|
+
}
|
|
1019
|
+
.x-font-weight--regular {
|
|
1020
|
+
font-weight: var(--x-number-font-weight-base-regular) !important;
|
|
1021
|
+
}
|
|
1022
|
+
.x-font-weight--bold {
|
|
1023
|
+
font-weight: var(--x-number-font-weight-base-bold) !important;
|
|
1024
|
+
}
|
|
1010
1025
|
.x-font-size--01 {
|
|
1011
1026
|
font-size: var(--x-size-base-01) !important;
|
|
1012
1027
|
line-height: 1.5;
|
|
@@ -1763,49 +1778,6 @@
|
|
|
1763
1778
|
.x-border-width--left-10 {
|
|
1764
1779
|
border-style: solid !important;
|
|
1765
1780
|
}
|
|
1766
|
-
.x-border-color--lead {
|
|
1767
|
-
border-color: var(--x-color-base-lead) !important;
|
|
1768
|
-
}
|
|
1769
|
-
|
|
1770
|
-
.x-border-color--auxiliary {
|
|
1771
|
-
border-color: var(--x-color-base-auxiliary) !important;
|
|
1772
|
-
}
|
|
1773
|
-
|
|
1774
|
-
.x-border-color--neutral-10 {
|
|
1775
|
-
border-color: var(--x-color-base-neutral-10) !important;
|
|
1776
|
-
}
|
|
1777
|
-
|
|
1778
|
-
.x-border-color--neutral-35 {
|
|
1779
|
-
border-color: var(--x-color-base-neutral-35) !important;
|
|
1780
|
-
}
|
|
1781
|
-
|
|
1782
|
-
.x-border-color--neutral-70 {
|
|
1783
|
-
border-color: var(--x-color-base-neutral-70) !important;
|
|
1784
|
-
}
|
|
1785
|
-
|
|
1786
|
-
.x-border-color--neutral-95 {
|
|
1787
|
-
border-color: var(--x-color-base-neutral-95) !important;
|
|
1788
|
-
}
|
|
1789
|
-
|
|
1790
|
-
.x-border-color--neutral-100 {
|
|
1791
|
-
border-color: var(--x-color-base-neutral-100) !important;
|
|
1792
|
-
}
|
|
1793
|
-
|
|
1794
|
-
.x-border-color--accent {
|
|
1795
|
-
border-color: var(--x-color-base-accent) !important;
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
|
-
.x-border-color--enable {
|
|
1799
|
-
border-color: var(--x-color-base-enable) !important;
|
|
1800
|
-
}
|
|
1801
|
-
|
|
1802
|
-
.x-border-color--disable {
|
|
1803
|
-
border-color: var(--x-color-base-disable) !important;
|
|
1804
|
-
}
|
|
1805
|
-
|
|
1806
|
-
.x-border-color--transparent {
|
|
1807
|
-
border-color: var(--x-color-base-transparent) !important;
|
|
1808
|
-
}
|
|
1809
1781
|
.x-border-radius--00 {
|
|
1810
1782
|
border-radius: 0 !important;
|
|
1811
1783
|
}
|
|
@@ -3314,20 +3286,48 @@
|
|
|
3314
3286
|
[dir="rtl"] .x-border-radius--bottom-right-20 {
|
|
3315
3287
|
border-bottom-left-radius: var(--x-size-base-20) !important;
|
|
3316
3288
|
}
|
|
3317
|
-
.x-
|
|
3318
|
-
--x-
|
|
3289
|
+
.x-border-color--lead {
|
|
3290
|
+
border-color: var(--x-color-base-lead) !important;
|
|
3319
3291
|
}
|
|
3320
|
-
|
|
3321
|
-
|
|
3292
|
+
|
|
3293
|
+
.x-border-color--auxiliary {
|
|
3294
|
+
border-color: var(--x-color-base-auxiliary) !important;
|
|
3322
3295
|
}
|
|
3323
|
-
|
|
3324
|
-
|
|
3296
|
+
|
|
3297
|
+
.x-border-color--neutral-10 {
|
|
3298
|
+
border-color: var(--x-color-base-neutral-10) !important;
|
|
3325
3299
|
}
|
|
3326
|
-
|
|
3327
|
-
|
|
3300
|
+
|
|
3301
|
+
.x-border-color--neutral-35 {
|
|
3302
|
+
border-color: var(--x-color-base-neutral-35) !important;
|
|
3328
3303
|
}
|
|
3329
|
-
|
|
3330
|
-
|
|
3304
|
+
|
|
3305
|
+
.x-border-color--neutral-70 {
|
|
3306
|
+
border-color: var(--x-color-base-neutral-70) !important;
|
|
3307
|
+
}
|
|
3308
|
+
|
|
3309
|
+
.x-border-color--neutral-95 {
|
|
3310
|
+
border-color: var(--x-color-base-neutral-95) !important;
|
|
3311
|
+
}
|
|
3312
|
+
|
|
3313
|
+
.x-border-color--neutral-100 {
|
|
3314
|
+
border-color: var(--x-color-base-neutral-100) !important;
|
|
3315
|
+
}
|
|
3316
|
+
|
|
3317
|
+
.x-border-color--accent {
|
|
3318
|
+
border-color: var(--x-color-base-accent) !important;
|
|
3319
|
+
}
|
|
3320
|
+
|
|
3321
|
+
.x-border-color--enable {
|
|
3322
|
+
border-color: var(--x-color-base-enable) !important;
|
|
3323
|
+
}
|
|
3324
|
+
|
|
3325
|
+
.x-border-color--disable {
|
|
3326
|
+
border-color: var(--x-color-base-disable) !important;
|
|
3327
|
+
}
|
|
3328
|
+
|
|
3329
|
+
.x-border-color--transparent {
|
|
3330
|
+
border-color: var(--x-color-base-transparent) !important;
|
|
3331
3331
|
}
|
|
3332
3332
|
.x-background--lead {
|
|
3333
3333
|
background-color: var(--x-color-base-lead) !important;
|
|
@@ -3372,6 +3372,21 @@
|
|
|
3372
3372
|
.x-background--transparent {
|
|
3373
3373
|
background-color: var(--x-color-base-transparent) !important;
|
|
3374
3374
|
}
|
|
3375
|
+
.x-text--stroke.x-text {
|
|
3376
|
+
--x-string-text-decoration: line-through;
|
|
3377
|
+
}
|
|
3378
|
+
.x-text--stroke.x-title1 {
|
|
3379
|
+
--x-string-text-decoration-title1: line-through;
|
|
3380
|
+
}
|
|
3381
|
+
.x-text--stroke.x-title2 {
|
|
3382
|
+
--x-string-text-decoration-title2: line-through;
|
|
3383
|
+
}
|
|
3384
|
+
.x-text--stroke.x-title3 {
|
|
3385
|
+
--x-string-text-decoration-title3: line-through;
|
|
3386
|
+
}
|
|
3387
|
+
.x-text--stroke.x-small {
|
|
3388
|
+
--x-string-text-decoration-small: line-through;
|
|
3389
|
+
}
|
|
3375
3390
|
:root {
|
|
3376
3391
|
--x-color-text-secondary: var(--x-color-base-neutral-35);
|
|
3377
3392
|
}
|
|
@@ -3433,6 +3448,108 @@
|
|
|
3433
3448
|
--x-size-line-height-small: var(--x-size-line-height-base-s);
|
|
3434
3449
|
--x-string-text-decoration-small: none;
|
|
3435
3450
|
}
|
|
3451
|
+
:root {
|
|
3452
|
+
--x-font-family-base: "Montserrat", sans-serif;
|
|
3453
|
+
--x-size-font-base-xs: 12px;
|
|
3454
|
+
--x-size-font-base-s: 14px;
|
|
3455
|
+
--x-size-font-base-m: 16px;
|
|
3456
|
+
--x-size-font-base-l: 18px;
|
|
3457
|
+
--x-size-font-base-xl: 32px;
|
|
3458
|
+
--x-number-font-weight-base-light: 300;
|
|
3459
|
+
--x-number-font-weight-base-regular: 400;
|
|
3460
|
+
--x-number-font-weight-base-bold: 600;
|
|
3461
|
+
--x-size-line-height-base-s: 16px;
|
|
3462
|
+
--x-size-line-height-base-m: 24px;
|
|
3463
|
+
--x-size-line-height-base-l: 32px;
|
|
3464
|
+
--x-color-text-default: var(--x-color-base-neutral-10);
|
|
3465
|
+
--x-font-family-text: var(--x-font-family-base);
|
|
3466
|
+
--x-size-font-text: var(--x-size-font-base-s);
|
|
3467
|
+
--x-number-font-weight-text: var(--x-number-font-weight-base-regular);
|
|
3468
|
+
--x-size-line-height-text: var(--x-size-line-height-base-s);
|
|
3469
|
+
--x-string-text-decoration-text: none;
|
|
3470
|
+
--x-font-family-title1: var(--x-font-family-base);
|
|
3471
|
+
--x-size-font-title1: var(--x-size-font-base-xl);
|
|
3472
|
+
--x-number-font-weight-title1: var(--x-number-font-weight-base-regular);
|
|
3473
|
+
--x-size-line-height-title1: var(--x-size-line-height-base-l);
|
|
3474
|
+
--x-string-text-decoration-title1: none;
|
|
3475
|
+
--x-font-family-title2: var(--x-font-family-base);
|
|
3476
|
+
--x-size-font-title2: var(--x-size-font-base-l);
|
|
3477
|
+
--x-number-font-weight-title2: var(--x-number-font-weight-base-regular);
|
|
3478
|
+
--x-size-line-height-title2: var(--x-size-line-height-base-m);
|
|
3479
|
+
--x-string-text-decoration-title2: none;
|
|
3480
|
+
--x-font-family-title3: var(--x-font-family-base);
|
|
3481
|
+
--x-size-font-title3: var(--x-size-font-base-m);
|
|
3482
|
+
--x-number-font-weight-title3: var(--x-number-font-weight-base-regular);
|
|
3483
|
+
--x-size-line-height-title3: var(--x-size-line-height-base-m);
|
|
3484
|
+
--x-string-text-decoration-title3: none;
|
|
3485
|
+
--x-font-family-small: var(--x-font-family-base);
|
|
3486
|
+
--x-size-font-small: var(--x-size-font-base-xs);
|
|
3487
|
+
--x-number-font-weight-small: var(--x-number-font-weight-base-regular);
|
|
3488
|
+
--x-size-line-height-small: var(--x-size-line-height-base-s);
|
|
3489
|
+
--x-string-text-decoration-small: none;
|
|
3490
|
+
}
|
|
3491
|
+
|
|
3492
|
+
.x,
|
|
3493
|
+
.x-text {
|
|
3494
|
+
font-family: var(--x-font-family-text);
|
|
3495
|
+
font-size: var(--x-size-font-text);
|
|
3496
|
+
font-weight: var(--x-number-font-weight-text);
|
|
3497
|
+
line-height: var(--x-size-line-height-text);
|
|
3498
|
+
-webkit-text-decoration: var(--x-string-text-decoration);
|
|
3499
|
+
text-decoration: var(--x-string-text-decoration);
|
|
3500
|
+
color: var(--x-color-text-default);
|
|
3501
|
+
margin: 0;
|
|
3502
|
+
}
|
|
3503
|
+
|
|
3504
|
+
.x-title1 {
|
|
3505
|
+
font-family: var(--x-font-family-title1);
|
|
3506
|
+
font-size: var(--x-size-font-title1);
|
|
3507
|
+
font-weight: var(--x-number-font-weight-title1);
|
|
3508
|
+
line-height: var(--x-size-line-height-title1);
|
|
3509
|
+
-webkit-text-decoration: var(--x-string-text-decoration-title1);
|
|
3510
|
+
text-decoration: var(--x-string-text-decoration-title1);
|
|
3511
|
+
color: var(--x-color-text-default);
|
|
3512
|
+
margin: 0;
|
|
3513
|
+
}
|
|
3514
|
+
|
|
3515
|
+
.x-title2 {
|
|
3516
|
+
font-family: var(--x-font-family-title2);
|
|
3517
|
+
font-size: var(--x-size-font-title2);
|
|
3518
|
+
font-weight: var(--x-number-font-weight-title2);
|
|
3519
|
+
line-height: var(--x-size-line-height-title2);
|
|
3520
|
+
-webkit-text-decoration: var(--x-string-text-decoration-title2);
|
|
3521
|
+
text-decoration: var(--x-string-text-decoration-title2);
|
|
3522
|
+
color: var(--x-color-text-default);
|
|
3523
|
+
margin: 0;
|
|
3524
|
+
}
|
|
3525
|
+
|
|
3526
|
+
.x-title3 {
|
|
3527
|
+
font-family: var(--x-font-family-title3);
|
|
3528
|
+
font-size: var(--x-size-font-title3);
|
|
3529
|
+
font-weight: var(--x-number-font-weight-title3);
|
|
3530
|
+
line-height: var(--x-size-line-height-title3);
|
|
3531
|
+
-webkit-text-decoration: var(--x-string-text-decoration-title3);
|
|
3532
|
+
text-decoration: var(--x-string-text-decoration-title3);
|
|
3533
|
+
color: var(--x-color-text-default);
|
|
3534
|
+
margin: 0;
|
|
3535
|
+
}
|
|
3536
|
+
|
|
3537
|
+
.x-small {
|
|
3538
|
+
font-family: var(--x-font-family-small);
|
|
3539
|
+
font-size: var(--x-size-font-small);
|
|
3540
|
+
font-weight: var(--x-number-font-weight-small);
|
|
3541
|
+
line-height: var(--x-size-line-height-small);
|
|
3542
|
+
-webkit-text-decoration: var(--x-string-text-decoration-small);
|
|
3543
|
+
text-decoration: var(--x-string-text-decoration-small);
|
|
3544
|
+
color: var(--x-color-text-default);
|
|
3545
|
+
margin: 0;
|
|
3546
|
+
}
|
|
3547
|
+
|
|
3548
|
+
.x-ellipsis {
|
|
3549
|
+
text-overflow: ellipsis;
|
|
3550
|
+
overflow: hidden;
|
|
3551
|
+
white-space: nowrap;
|
|
3552
|
+
}
|
|
3436
3553
|
.x-text--bold.x-text {
|
|
3437
3554
|
--x-number-font-weight-text: var(--x-number-font-weight-base-bold);
|
|
3438
3555
|
}
|
|
@@ -3451,9 +3568,6 @@
|
|
|
3451
3568
|
:root {
|
|
3452
3569
|
--x-color-text-accent: var(--x-color-base-accent);
|
|
3453
3570
|
}
|
|
3454
|
-
.x-text--accent {
|
|
3455
|
-
--x-color-text-default: var(--x-color-text-accent);
|
|
3456
|
-
}
|
|
3457
3571
|
:root {
|
|
3458
3572
|
--x-size-border-radius-tag-pill: var(--x-size-border-radius-base-pill);
|
|
3459
3573
|
--x-size-border-radius-top-left-tag-pill: var(--x-size-border-radius-tag-pill);
|
|
@@ -3854,122 +3968,6 @@
|
|
|
3854
3968
|
--x-size-line-height-suggestion-group-default: var(--x-size-line-height-suggestion-default);
|
|
3855
3969
|
--x-number-font-weight-suggestion-group-default: var(--x-number-font-weight-suggestion-default);
|
|
3856
3970
|
}
|
|
3857
|
-
:root {
|
|
3858
|
-
--x-color-text-suggestion-group-default: var(--x-color-text-suggestion-default);
|
|
3859
|
-
--x-color-text-suggestion-group-matching-part-default: var(
|
|
3860
|
-
--x-color-text-suggestion-matching-part-default
|
|
3861
|
-
);
|
|
3862
|
-
--x-color-background-suggestion-group-default: var(--x-color-background-suggestion-default);
|
|
3863
|
-
--x-color-border-suggestion-group-default: var(--x-color-text-suggestion-group-default);
|
|
3864
|
-
--x-size-padding-top-suggestion-group-default: var(--x-size-padding-top-suggestion-default);
|
|
3865
|
-
--x-size-padding-right-suggestion-group-default: var(--x-size-padding-right-suggestion-default);
|
|
3866
|
-
--x-size-padding-bottom-suggestion-group-default: var(--x-size-padding-bottom-suggestion-default);
|
|
3867
|
-
--x-size-padding-left-suggestion-group-default: var(--x-size-padding-left-suggestion-default);
|
|
3868
|
-
--x-size-gap-suggestion-group-default: var(--x-size-gap-suggestion-default);
|
|
3869
|
-
--x-size-border-width-suggestion-group-default: 0;
|
|
3870
|
-
--x-size-border-width-top-suggestion-group-default: var(--x-size-border-width-suggestion-default);
|
|
3871
|
-
--x-size-border-width-right-suggestion-group-default: var(
|
|
3872
|
-
--x-size-border-width-suggestion-default
|
|
3873
|
-
);
|
|
3874
|
-
--x-size-border-width-bottom-suggestion-group-default: var(
|
|
3875
|
-
--x-size-border-width-suggestion-default
|
|
3876
|
-
);
|
|
3877
|
-
--x-size-border-width-left-suggestion-group-default: var(
|
|
3878
|
-
--x-size-border-width-suggestion-default
|
|
3879
|
-
);
|
|
3880
|
-
--x-size-border-radius-suggestion-group-default: var(--x-size-border-radius-base-none);
|
|
3881
|
-
--x-size-border-radius-top-left-suggestion-group-default: var(
|
|
3882
|
-
--x-size-border-radius-suggestion-default
|
|
3883
|
-
);
|
|
3884
|
-
--x-size-border-radius-top-right-suggestion-group-default: var(
|
|
3885
|
-
--x-size-border-radius-suggestion-default
|
|
3886
|
-
);
|
|
3887
|
-
--x-size-border-radius-bottom-right-suggestion-group-default: var(
|
|
3888
|
-
--x-size-border-radius-suggestion-default
|
|
3889
|
-
);
|
|
3890
|
-
--x-size-border-radius-bottom-left-suggestion-group-default: var(
|
|
3891
|
-
--x-size-border-radius-suggestion-default
|
|
3892
|
-
);
|
|
3893
|
-
--x-font-family-suggestion-group-default: var(--x-font-family-suggestion-default);
|
|
3894
|
-
--x-size-font-suggestion-group-default: var(--x-size-font-suggestion-default);
|
|
3895
|
-
--x-size-line-height-suggestion-group-default: var(--x-size-line-height-suggestion-default);
|
|
3896
|
-
--x-number-font-weight-suggestion-group-default: var(--x-number-font-weight-suggestion-default);
|
|
3897
|
-
}
|
|
3898
|
-
|
|
3899
|
-
[dir="ltr"] .x-suggestion-group {
|
|
3900
|
-
padding-left: var(--x-size-padding-left-suggestion-group-default);
|
|
3901
|
-
}
|
|
3902
|
-
|
|
3903
|
-
[dir="rtl"] .x-suggestion-group {
|
|
3904
|
-
padding-right: var(--x-size-padding-left-suggestion-group-default);
|
|
3905
|
-
}
|
|
3906
|
-
|
|
3907
|
-
[dir="ltr"] .x-suggestion-group {
|
|
3908
|
-
padding-right: var(--x-size-padding-right-suggestion-group-default);
|
|
3909
|
-
}
|
|
3910
|
-
|
|
3911
|
-
[dir="rtl"] .x-suggestion-group {
|
|
3912
|
-
padding-left: var(--x-size-padding-right-suggestion-group-default);
|
|
3913
|
-
}
|
|
3914
|
-
|
|
3915
|
-
[dir="ltr"] .x-suggestion-group {
|
|
3916
|
-
border-left-width: var(--x-size-border-width-left-suggestion-group-default);
|
|
3917
|
-
}
|
|
3918
|
-
|
|
3919
|
-
[dir="rtl"] .x-suggestion-group {
|
|
3920
|
-
border-right-width: var(--x-size-border-width-left-suggestion-group-default);
|
|
3921
|
-
}
|
|
3922
|
-
|
|
3923
|
-
[dir="ltr"] .x-suggestion-group {
|
|
3924
|
-
border-right-width: var(--x-size-border-width-right-suggestion-group-default);
|
|
3925
|
-
}
|
|
3926
|
-
|
|
3927
|
-
[dir="rtl"] .x-suggestion-group {
|
|
3928
|
-
border-left-width: var(--x-size-border-width-right-suggestion-group-default);
|
|
3929
|
-
}
|
|
3930
|
-
|
|
3931
|
-
.x-suggestion-group {
|
|
3932
|
-
display: flex;
|
|
3933
|
-
flex-flow: row nowrap;
|
|
3934
|
-
box-sizing: border-box;
|
|
3935
|
-
background-color: var(--x-color-background-suggestion-group-default);
|
|
3936
|
-
color: var(--x-color-text-suggestion-group-default);
|
|
3937
|
-
border-color: var(--x-color-border-suggestion-group-default);
|
|
3938
|
-
font-family: var(--x-font-family-suggestion-group-default);
|
|
3939
|
-
font-size: var(--x-size-font-suggestion-group-default);
|
|
3940
|
-
line-height: var(--x-size-line-height-suggestion-group-default);
|
|
3941
|
-
font-weight: var(--x-number-font-weight-suggestion-group-default);
|
|
3942
|
-
cursor: pointer;
|
|
3943
|
-
padding-top: var(--x-size-padding-top-suggestion-group-default);
|
|
3944
|
-
padding-bottom: var(--x-size-padding-bottom-suggestion-group-default);
|
|
3945
|
-
gap: var(--x-size-gap-suggestion-group-default);
|
|
3946
|
-
border-style: solid;
|
|
3947
|
-
border-top-width: var(--x-size-border-width-top-suggestion-group-default);
|
|
3948
|
-
border-bottom-width: var(--x-size-border-width-bottom-suggestion-group-default);
|
|
3949
|
-
border-radius: var(--x-size-border-radius-top-left-suggestion-group-default) var(--x-size-border-radius-top-right-suggestion-group-default) var(--x-size-border-radius-bottom-right-suggestion-group-default) var(--x-size-border-radius-bottom-left-suggestion-group-default);
|
|
3950
|
-
}
|
|
3951
|
-
@media not all and (min-resolution: 0.001dpcm) {
|
|
3952
|
-
.x-suggestion-group {
|
|
3953
|
-
gap: 0;
|
|
3954
|
-
}
|
|
3955
|
-
.x-suggestion-group > *:not(:last-child) {
|
|
3956
|
-
margin-right: var(--x-size-gap-suggestion-group-default);
|
|
3957
|
-
}
|
|
3958
|
-
}
|
|
3959
|
-
.x-suggestion-group .x-suggestion {
|
|
3960
|
-
padding: 0;
|
|
3961
|
-
flex: 1 1 auto;
|
|
3962
|
-
border: none;
|
|
3963
|
-
}
|
|
3964
|
-
.x-suggestion-group .x-button {
|
|
3965
|
-
--x-color-background-button-default: transparent;
|
|
3966
|
-
--x-color-border-button-default: transparent;
|
|
3967
|
-
--x-color-text-button-default: var(--x-color-text-suggestion-group-default);
|
|
3968
|
-
--x-size-height-button-default: var(--x-size-line-height-suggestion-group-default);
|
|
3969
|
-
--x-size-padding-right-button-default: 0;
|
|
3970
|
-
--x-size-padding-left-button-default: 0;
|
|
3971
|
-
border: none;
|
|
3972
|
-
}
|
|
3973
3971
|
:root {
|
|
3974
3972
|
--x-string-align-items-suggestion-default: center;
|
|
3975
3973
|
--x-color-text-suggestion-default: var(--x-color-text-default);
|
|
@@ -4282,6 +4280,122 @@
|
|
|
4282
4280
|
--x-color-text-suggestion-default-matching-curated
|
|
4283
4281
|
);
|
|
4284
4282
|
}
|
|
4283
|
+
:root {
|
|
4284
|
+
--x-color-text-suggestion-group-default: var(--x-color-text-suggestion-default);
|
|
4285
|
+
--x-color-text-suggestion-group-matching-part-default: var(
|
|
4286
|
+
--x-color-text-suggestion-matching-part-default
|
|
4287
|
+
);
|
|
4288
|
+
--x-color-background-suggestion-group-default: var(--x-color-background-suggestion-default);
|
|
4289
|
+
--x-color-border-suggestion-group-default: var(--x-color-text-suggestion-group-default);
|
|
4290
|
+
--x-size-padding-top-suggestion-group-default: var(--x-size-padding-top-suggestion-default);
|
|
4291
|
+
--x-size-padding-right-suggestion-group-default: var(--x-size-padding-right-suggestion-default);
|
|
4292
|
+
--x-size-padding-bottom-suggestion-group-default: var(--x-size-padding-bottom-suggestion-default);
|
|
4293
|
+
--x-size-padding-left-suggestion-group-default: var(--x-size-padding-left-suggestion-default);
|
|
4294
|
+
--x-size-gap-suggestion-group-default: var(--x-size-gap-suggestion-default);
|
|
4295
|
+
--x-size-border-width-suggestion-group-default: 0;
|
|
4296
|
+
--x-size-border-width-top-suggestion-group-default: var(--x-size-border-width-suggestion-default);
|
|
4297
|
+
--x-size-border-width-right-suggestion-group-default: var(
|
|
4298
|
+
--x-size-border-width-suggestion-default
|
|
4299
|
+
);
|
|
4300
|
+
--x-size-border-width-bottom-suggestion-group-default: var(
|
|
4301
|
+
--x-size-border-width-suggestion-default
|
|
4302
|
+
);
|
|
4303
|
+
--x-size-border-width-left-suggestion-group-default: var(
|
|
4304
|
+
--x-size-border-width-suggestion-default
|
|
4305
|
+
);
|
|
4306
|
+
--x-size-border-radius-suggestion-group-default: var(--x-size-border-radius-base-none);
|
|
4307
|
+
--x-size-border-radius-top-left-suggestion-group-default: var(
|
|
4308
|
+
--x-size-border-radius-suggestion-default
|
|
4309
|
+
);
|
|
4310
|
+
--x-size-border-radius-top-right-suggestion-group-default: var(
|
|
4311
|
+
--x-size-border-radius-suggestion-default
|
|
4312
|
+
);
|
|
4313
|
+
--x-size-border-radius-bottom-right-suggestion-group-default: var(
|
|
4314
|
+
--x-size-border-radius-suggestion-default
|
|
4315
|
+
);
|
|
4316
|
+
--x-size-border-radius-bottom-left-suggestion-group-default: var(
|
|
4317
|
+
--x-size-border-radius-suggestion-default
|
|
4318
|
+
);
|
|
4319
|
+
--x-font-family-suggestion-group-default: var(--x-font-family-suggestion-default);
|
|
4320
|
+
--x-size-font-suggestion-group-default: var(--x-size-font-suggestion-default);
|
|
4321
|
+
--x-size-line-height-suggestion-group-default: var(--x-size-line-height-suggestion-default);
|
|
4322
|
+
--x-number-font-weight-suggestion-group-default: var(--x-number-font-weight-suggestion-default);
|
|
4323
|
+
}
|
|
4324
|
+
|
|
4325
|
+
[dir="ltr"] .x-suggestion-group {
|
|
4326
|
+
padding-left: var(--x-size-padding-left-suggestion-group-default);
|
|
4327
|
+
}
|
|
4328
|
+
|
|
4329
|
+
[dir="rtl"] .x-suggestion-group {
|
|
4330
|
+
padding-right: var(--x-size-padding-left-suggestion-group-default);
|
|
4331
|
+
}
|
|
4332
|
+
|
|
4333
|
+
[dir="ltr"] .x-suggestion-group {
|
|
4334
|
+
padding-right: var(--x-size-padding-right-suggestion-group-default);
|
|
4335
|
+
}
|
|
4336
|
+
|
|
4337
|
+
[dir="rtl"] .x-suggestion-group {
|
|
4338
|
+
padding-left: var(--x-size-padding-right-suggestion-group-default);
|
|
4339
|
+
}
|
|
4340
|
+
|
|
4341
|
+
[dir="ltr"] .x-suggestion-group {
|
|
4342
|
+
border-left-width: var(--x-size-border-width-left-suggestion-group-default);
|
|
4343
|
+
}
|
|
4344
|
+
|
|
4345
|
+
[dir="rtl"] .x-suggestion-group {
|
|
4346
|
+
border-right-width: var(--x-size-border-width-left-suggestion-group-default);
|
|
4347
|
+
}
|
|
4348
|
+
|
|
4349
|
+
[dir="ltr"] .x-suggestion-group {
|
|
4350
|
+
border-right-width: var(--x-size-border-width-right-suggestion-group-default);
|
|
4351
|
+
}
|
|
4352
|
+
|
|
4353
|
+
[dir="rtl"] .x-suggestion-group {
|
|
4354
|
+
border-left-width: var(--x-size-border-width-right-suggestion-group-default);
|
|
4355
|
+
}
|
|
4356
|
+
|
|
4357
|
+
.x-suggestion-group {
|
|
4358
|
+
display: flex;
|
|
4359
|
+
flex-flow: row nowrap;
|
|
4360
|
+
box-sizing: border-box;
|
|
4361
|
+
background-color: var(--x-color-background-suggestion-group-default);
|
|
4362
|
+
color: var(--x-color-text-suggestion-group-default);
|
|
4363
|
+
border-color: var(--x-color-border-suggestion-group-default);
|
|
4364
|
+
font-family: var(--x-font-family-suggestion-group-default);
|
|
4365
|
+
font-size: var(--x-size-font-suggestion-group-default);
|
|
4366
|
+
line-height: var(--x-size-line-height-suggestion-group-default);
|
|
4367
|
+
font-weight: var(--x-number-font-weight-suggestion-group-default);
|
|
4368
|
+
cursor: pointer;
|
|
4369
|
+
padding-top: var(--x-size-padding-top-suggestion-group-default);
|
|
4370
|
+
padding-bottom: var(--x-size-padding-bottom-suggestion-group-default);
|
|
4371
|
+
gap: var(--x-size-gap-suggestion-group-default);
|
|
4372
|
+
border-style: solid;
|
|
4373
|
+
border-top-width: var(--x-size-border-width-top-suggestion-group-default);
|
|
4374
|
+
border-bottom-width: var(--x-size-border-width-bottom-suggestion-group-default);
|
|
4375
|
+
border-radius: var(--x-size-border-radius-top-left-suggestion-group-default) var(--x-size-border-radius-top-right-suggestion-group-default) var(--x-size-border-radius-bottom-right-suggestion-group-default) var(--x-size-border-radius-bottom-left-suggestion-group-default);
|
|
4376
|
+
}
|
|
4377
|
+
@media not all and (min-resolution: 0.001dpcm) {
|
|
4378
|
+
.x-suggestion-group {
|
|
4379
|
+
gap: 0;
|
|
4380
|
+
}
|
|
4381
|
+
.x-suggestion-group > *:not(:last-child) {
|
|
4382
|
+
margin-right: var(--x-size-gap-suggestion-group-default);
|
|
4383
|
+
}
|
|
4384
|
+
}
|
|
4385
|
+
.x-suggestion-group .x-suggestion {
|
|
4386
|
+
padding: 0;
|
|
4387
|
+
flex: 1 1 auto;
|
|
4388
|
+
border: none;
|
|
4389
|
+
}
|
|
4390
|
+
.x-suggestion-group .x-button {
|
|
4391
|
+
--x-color-background-button-default: transparent;
|
|
4392
|
+
--x-color-border-button-default: transparent;
|
|
4393
|
+
--x-color-text-button-default: var(--x-color-text-suggestion-group-default);
|
|
4394
|
+
--x-size-height-button-default: var(--x-size-line-height-suggestion-group-default);
|
|
4395
|
+
--x-size-padding-right-button-default: 0;
|
|
4396
|
+
--x-size-padding-left-button-default: 0;
|
|
4397
|
+
border: none;
|
|
4398
|
+
}
|
|
4285
4399
|
:root {
|
|
4286
4400
|
--x-color-background-sliding-panel: var(--x-color-base-neutral-100);
|
|
4287
4401
|
--x-size-width-sliding-panel-gradient: var(--x-size-base-09);
|
|
@@ -4795,6 +4909,21 @@
|
|
|
4795
4909
|
--x-size-border-radius-progress-bar-default: var(--x-size-border-radius-base-pill);
|
|
4796
4910
|
--x-size-border-width-progress-bar-default: 0;
|
|
4797
4911
|
}
|
|
4912
|
+
:root {
|
|
4913
|
+
--x-number-zoom-scale-picture: 1.1;
|
|
4914
|
+
--x-number-zoom-duration-picture: 0.3s;
|
|
4915
|
+
}
|
|
4916
|
+
:root {
|
|
4917
|
+
--x-number-zoom-scale-picture: 1.1;
|
|
4918
|
+
--x-number-zoom-duration-picture: 0.3s;
|
|
4919
|
+
}
|
|
4920
|
+
|
|
4921
|
+
.x-picture--zoom .x-picture-image {
|
|
4922
|
+
transition: transform var(--x-number-zoom-duration-picture) ease-out;
|
|
4923
|
+
}
|
|
4924
|
+
.x-picture--zoom .x-picture-image:hover {
|
|
4925
|
+
transform: scale(var(--x-number-zoom-scale-picture));
|
|
4926
|
+
}
|
|
4798
4927
|
:root {
|
|
4799
4928
|
--x-size-height-progress-bar-line-default: var(--x-size-base-02);
|
|
4800
4929
|
--x-size-width-progress-bar-line-default: var(--x-size-base-20);
|
|
@@ -4820,21 +4949,6 @@
|
|
|
4820
4949
|
border-radius: var(--x-size-border-radius-progress-bar-default);
|
|
4821
4950
|
background-color: var(--x-color-background-progress-bar-line-default);
|
|
4822
4951
|
}
|
|
4823
|
-
:root {
|
|
4824
|
-
--x-number-zoom-scale-picture: 1.1;
|
|
4825
|
-
--x-number-zoom-duration-picture: 0.3s;
|
|
4826
|
-
}
|
|
4827
|
-
:root {
|
|
4828
|
-
--x-number-zoom-scale-picture: 1.1;
|
|
4829
|
-
--x-number-zoom-duration-picture: 0.3s;
|
|
4830
|
-
}
|
|
4831
|
-
|
|
4832
|
-
.x-picture--zoom .x-picture-image {
|
|
4833
|
-
transition: transform var(--x-number-zoom-duration-picture) ease-out;
|
|
4834
|
-
}
|
|
4835
|
-
.x-picture--zoom .x-picture-image:hover {
|
|
4836
|
-
transform: scale(var(--x-number-zoom-scale-picture));
|
|
4837
|
-
}
|
|
4838
4952
|
:root {
|
|
4839
4953
|
--x-number-aspect-ratio-picture: 1;
|
|
4840
4954
|
}
|
|
@@ -5071,6 +5185,51 @@
|
|
|
5071
5185
|
--x-number-font-weight-option-list-button-default: var(--x-number-font-weight-base-regular);
|
|
5072
5186
|
--x-number-font-weight-option-list-button-default-selected: var(--x-number-font-weight-base-bold);
|
|
5073
5187
|
}
|
|
5188
|
+
:root {
|
|
5189
|
+
--x-color-text-option-list-button-bottom-hover: var(--x-color-base-neutral-10);
|
|
5190
|
+
--x-color-text-option-list-button-bottom-selected-hover: var(
|
|
5191
|
+
--x-color-text-option-list-button-bottom-selected
|
|
5192
|
+
);
|
|
5193
|
+
--x-color-text-option-list-button-bottom: var(--x-color-base-neutral-35);
|
|
5194
|
+
--x-color-text-option-list-button-bottom-selected: var(--x-color-text-default);
|
|
5195
|
+
--x-color-border-option-list-item-bottom: transparent;
|
|
5196
|
+
--x-color-border-top-option-list-item-bottom: var(--x-color-border-option-list-item-bottom);
|
|
5197
|
+
--x-color-border-right-option-list-item-bottom: var(--x-color-border-option-list-item-bottom);
|
|
5198
|
+
--x-color-border-bottom-option-list-item-bottom: var(--x-color-border-option-list-item-bottom);
|
|
5199
|
+
--x-color-border-left-option-list-item-bottom: var(--x-color-border-option-list-item-bottom);
|
|
5200
|
+
--x-color-border-option-list-item-bottom-selected: var(--x-color-base-neutral-10);
|
|
5201
|
+
--x-color-border-top-option-list-item-bottom-selected: var(
|
|
5202
|
+
--x-color-border-option-list-item-bottom
|
|
5203
|
+
);
|
|
5204
|
+
--x-color-border-right-option-list-item-bottom-selected: var(
|
|
5205
|
+
--x-color-border-option-list-item-bottom
|
|
5206
|
+
);
|
|
5207
|
+
--x-color-border-bottom-option-list-item-bottom-selected: var(
|
|
5208
|
+
--x-color-border-option-list-item-bottom-selected
|
|
5209
|
+
);
|
|
5210
|
+
--x-color-border-left-option-list-item-bottom-selected: var(
|
|
5211
|
+
--x-color-border-option-list-item-bottom
|
|
5212
|
+
);
|
|
5213
|
+
--x-size-border-width-option-list-item-bottom: var(--x-size-border-width-base);
|
|
5214
|
+
--x-size-border-width-top-option-list-item-bottom: 0;
|
|
5215
|
+
--x-size-border-width-right-option-list-item-bottom: 0;
|
|
5216
|
+
--x-size-border-width-bottom-option-list-item-bottom: var(
|
|
5217
|
+
--x-size-border-width-option-list-item-bottom
|
|
5218
|
+
);
|
|
5219
|
+
--x-size-border-width-left-option-list-item-bottom: 0;
|
|
5220
|
+
--x-size-border-width-top-option-list-item-bottom-selected: 0;
|
|
5221
|
+
--x-size-border-width-right-option-list-item-bottom-selected: 0;
|
|
5222
|
+
--x-size-border-width-bottom-option-list-item-bottom-selected: var(
|
|
5223
|
+
--x-size-border-width-option-list-item-bottom
|
|
5224
|
+
);
|
|
5225
|
+
--x-size-border-width-left-option-list-item-bottom-selected: 0;
|
|
5226
|
+
--x-size-font-option-list-button-bottom: var(--x-size-font-text);
|
|
5227
|
+
--x-font-decoration-option-list-button-bottom-hover: none;
|
|
5228
|
+
--x-number-font-weight-option-list-button-bottom: var(--x-number-font-weight-base-regular);
|
|
5229
|
+
--x-number-font-weight-option-list-button-bottom-selected: var(
|
|
5230
|
+
--x-number-font-weight-base-regular
|
|
5231
|
+
);
|
|
5232
|
+
}
|
|
5074
5233
|
:root {
|
|
5075
5234
|
--x-color-background-option-list-button-default: transparent;
|
|
5076
5235
|
--x-color-border-option-list-button-default: transparent;
|
|
@@ -5308,51 +5467,6 @@
|
|
|
5308
5467
|
--x-number-font-weight-base-regular
|
|
5309
5468
|
);
|
|
5310
5469
|
}
|
|
5311
|
-
:root {
|
|
5312
|
-
--x-color-text-option-list-button-bottom-hover: var(--x-color-base-neutral-10);
|
|
5313
|
-
--x-color-text-option-list-button-bottom-selected-hover: var(
|
|
5314
|
-
--x-color-text-option-list-button-bottom-selected
|
|
5315
|
-
);
|
|
5316
|
-
--x-color-text-option-list-button-bottom: var(--x-color-base-neutral-35);
|
|
5317
|
-
--x-color-text-option-list-button-bottom-selected: var(--x-color-text-default);
|
|
5318
|
-
--x-color-border-option-list-item-bottom: transparent;
|
|
5319
|
-
--x-color-border-top-option-list-item-bottom: var(--x-color-border-option-list-item-bottom);
|
|
5320
|
-
--x-color-border-right-option-list-item-bottom: var(--x-color-border-option-list-item-bottom);
|
|
5321
|
-
--x-color-border-bottom-option-list-item-bottom: var(--x-color-border-option-list-item-bottom);
|
|
5322
|
-
--x-color-border-left-option-list-item-bottom: var(--x-color-border-option-list-item-bottom);
|
|
5323
|
-
--x-color-border-option-list-item-bottom-selected: var(--x-color-base-neutral-10);
|
|
5324
|
-
--x-color-border-top-option-list-item-bottom-selected: var(
|
|
5325
|
-
--x-color-border-option-list-item-bottom
|
|
5326
|
-
);
|
|
5327
|
-
--x-color-border-right-option-list-item-bottom-selected: var(
|
|
5328
|
-
--x-color-border-option-list-item-bottom
|
|
5329
|
-
);
|
|
5330
|
-
--x-color-border-bottom-option-list-item-bottom-selected: var(
|
|
5331
|
-
--x-color-border-option-list-item-bottom-selected
|
|
5332
|
-
);
|
|
5333
|
-
--x-color-border-left-option-list-item-bottom-selected: var(
|
|
5334
|
-
--x-color-border-option-list-item-bottom
|
|
5335
|
-
);
|
|
5336
|
-
--x-size-border-width-option-list-item-bottom: var(--x-size-border-width-base);
|
|
5337
|
-
--x-size-border-width-top-option-list-item-bottom: 0;
|
|
5338
|
-
--x-size-border-width-right-option-list-item-bottom: 0;
|
|
5339
|
-
--x-size-border-width-bottom-option-list-item-bottom: var(
|
|
5340
|
-
--x-size-border-width-option-list-item-bottom
|
|
5341
|
-
);
|
|
5342
|
-
--x-size-border-width-left-option-list-item-bottom: 0;
|
|
5343
|
-
--x-size-border-width-top-option-list-item-bottom-selected: 0;
|
|
5344
|
-
--x-size-border-width-right-option-list-item-bottom-selected: 0;
|
|
5345
|
-
--x-size-border-width-bottom-option-list-item-bottom-selected: var(
|
|
5346
|
-
--x-size-border-width-option-list-item-bottom
|
|
5347
|
-
);
|
|
5348
|
-
--x-size-border-width-left-option-list-item-bottom-selected: 0;
|
|
5349
|
-
--x-size-font-option-list-button-bottom: var(--x-size-font-text);
|
|
5350
|
-
--x-font-decoration-option-list-button-bottom-hover: none;
|
|
5351
|
-
--x-number-font-weight-option-list-button-bottom: var(--x-number-font-weight-base-regular);
|
|
5352
|
-
--x-number-font-weight-option-list-button-bottom-selected: var(
|
|
5353
|
-
--x-number-font-weight-base-regular
|
|
5354
|
-
);
|
|
5355
|
-
}
|
|
5356
5470
|
|
|
5357
5471
|
.x-option-list--bottom.x-option-list,
|
|
5358
5472
|
.x-option-list--bottom .x-option-list {
|
|
@@ -6597,18 +6711,9 @@
|
|
|
6597
6711
|
.x-list > .x-list__item--11 {
|
|
6598
6712
|
flex: 11 2 auto;
|
|
6599
6713
|
}
|
|
6600
|
-
.x-list > .x-list__item--12 {
|
|
6601
|
-
flex: 12 1 auto;
|
|
6602
|
-
}
|
|
6603
|
-
:root {
|
|
6604
|
-
--x-size-border-radius-input-group-pill: var(--x-size-border-radius-base-pill);
|
|
6605
|
-
--x-size-border-radius-top-left-input-group-pill: var(--x-size-border-radius-input-group-pill);
|
|
6606
|
-
--x-size-border-radius-top-right-input-group-pill: var(--x-size-border-radius-input-group-pill);
|
|
6607
|
-
--x-size-border-radius-bottom-right-input-group-pill: var(
|
|
6608
|
-
--x-size-border-radius-input-group-pill
|
|
6609
|
-
);
|
|
6610
|
-
--x-size-border-radius-bottom-left-input-group-pill: var(--x-size-border-radius-input-group-pill);
|
|
6611
|
-
}
|
|
6714
|
+
.x-list > .x-list__item--12 {
|
|
6715
|
+
flex: 12 1 auto;
|
|
6716
|
+
}
|
|
6612
6717
|
:root {
|
|
6613
6718
|
--x-size-border-radius-input-group-pill: var(--x-size-border-radius-base-pill);
|
|
6614
6719
|
--x-size-border-radius-top-left-input-group-pill: var(--x-size-border-radius-input-group-pill);
|
|
@@ -6635,6 +6740,15 @@
|
|
|
6635
6740
|
--x-size-border-radius-bottom-left-input-group-pill
|
|
6636
6741
|
);
|
|
6637
6742
|
}
|
|
6743
|
+
:root {
|
|
6744
|
+
--x-size-border-radius-input-group-pill: var(--x-size-border-radius-base-pill);
|
|
6745
|
+
--x-size-border-radius-top-left-input-group-pill: var(--x-size-border-radius-input-group-pill);
|
|
6746
|
+
--x-size-border-radius-top-right-input-group-pill: var(--x-size-border-radius-input-group-pill);
|
|
6747
|
+
--x-size-border-radius-bottom-right-input-group-pill: var(
|
|
6748
|
+
--x-size-border-radius-input-group-pill
|
|
6749
|
+
);
|
|
6750
|
+
--x-size-border-radius-bottom-left-input-group-pill: var(--x-size-border-radius-input-group-pill);
|
|
6751
|
+
}
|
|
6638
6752
|
:root {
|
|
6639
6753
|
--x-size-padding-left-input-group-line: 0;
|
|
6640
6754
|
--x-size-padding-right-input-group-line: 0;
|
|
@@ -7011,6 +7125,9 @@
|
|
|
7011
7125
|
--x-size-border-width-bottom-input-default: var(--x-size-border-width-bottom-input-line);
|
|
7012
7126
|
--x-size-border-width-left-input-default: var(--x-size-border-width-left-input-line);
|
|
7013
7127
|
}
|
|
7128
|
+
.x-text--accent {
|
|
7129
|
+
--x-color-text-default: var(--x-color-text-accent);
|
|
7130
|
+
}
|
|
7014
7131
|
:root {
|
|
7015
7132
|
--x-color-background-input-default: var(--x-color-base-neutral-100);
|
|
7016
7133
|
--x-color-border-input-default: var(--x-color-base-neutral-70);
|
|
@@ -7178,15 +7295,15 @@
|
|
|
7178
7295
|
--x-size-width-icon-xl: var(--x-size-base-07);
|
|
7179
7296
|
--x-size-height-icon-xl: var(--x-size-base-07);
|
|
7180
7297
|
}
|
|
7181
|
-
:root {
|
|
7182
|
-
--x-size-width-icon-xl: var(--x-size-base-07);
|
|
7183
|
-
--x-size-height-icon-xl: var(--x-size-base-07);
|
|
7184
|
-
}
|
|
7185
7298
|
|
|
7186
7299
|
.x-icon--xl {
|
|
7187
7300
|
--x-size-width-icon-default: var(--x-size-width-icon-xl);
|
|
7188
7301
|
--x-size-height-icon-default: var(--x-size-height-icon-xl);
|
|
7189
7302
|
}
|
|
7303
|
+
:root {
|
|
7304
|
+
--x-size-width-icon-xl: var(--x-size-base-07);
|
|
7305
|
+
--x-size-height-icon-xl: var(--x-size-base-07);
|
|
7306
|
+
}
|
|
7190
7307
|
:root {
|
|
7191
7308
|
--x-size-width-icon-s: var(--x-size-base-03);
|
|
7192
7309
|
--x-size-height-icon-s: var(--x-size-base-03);
|
|
@@ -7235,6 +7352,11 @@
|
|
|
7235
7352
|
--x-string-stroke-linejoin-icon-default: mitter;
|
|
7236
7353
|
--x-size-stroke-width-icon-default: 1px;
|
|
7237
7354
|
}
|
|
7355
|
+
:root {
|
|
7356
|
+
--x-size-padding-grid: 0;
|
|
7357
|
+
--x-size-gap-grid: var(--x-size-base-03);
|
|
7358
|
+
--x-size-min-width-grid-item: 150px;
|
|
7359
|
+
}
|
|
7238
7360
|
:root {
|
|
7239
7361
|
--x-color-stroke-icon-default: currentColor;
|
|
7240
7362
|
--x-color-fill-icon-default: none;
|
|
@@ -7270,11 +7392,6 @@
|
|
|
7270
7392
|
--x-size-gap-grid: var(--x-size-base-03);
|
|
7271
7393
|
--x-size-min-width-grid-item: 150px;
|
|
7272
7394
|
}
|
|
7273
|
-
:root {
|
|
7274
|
-
--x-size-padding-grid: 0;
|
|
7275
|
-
--x-size-gap-grid: var(--x-size-base-03);
|
|
7276
|
-
--x-size-min-width-grid-item: 150px;
|
|
7277
|
-
}
|
|
7278
7395
|
|
|
7279
7396
|
.x-grid-list {
|
|
7280
7397
|
margin: 0;
|
|
@@ -7373,6 +7490,19 @@
|
|
|
7373
7490
|
);
|
|
7374
7491
|
--x-size-line-height-filter-default: var(--x-size-line-height-text);
|
|
7375
7492
|
}
|
|
7493
|
+
:root {
|
|
7494
|
+
--x-color-border-facet-outlined: var(--x-color-base-neutral-70);
|
|
7495
|
+
--x-size-border-width-facet-outlined: var(--x-size-border-width-base);
|
|
7496
|
+
--x-size-border-width-top-facet-outlined: var(--x-size-border-width-facet-outlined);
|
|
7497
|
+
--x-size-border-width-right-facet-outlined: var(--x-size-border-width-facet-outlined);
|
|
7498
|
+
--x-size-border-width-bottom-facet-outlined: var(--x-size-border-width-facet-outlined);
|
|
7499
|
+
--x-size-border-width-left-facet-outlined: var(--x-size-border-width-facet-outlined);
|
|
7500
|
+
--x-size-padding-facet-header-outlined: var(--x-size-base-03);
|
|
7501
|
+
--x-size-padding-top-facet-header-outlined: var(--x-size-padding-facet-header-outlined);
|
|
7502
|
+
--x-size-padding-right-facet-header-outlined: var(--x-size-padding-facet-header-outlined);
|
|
7503
|
+
--x-size-padding-bottom-facet-header-outlined: var(--x-size-padding-facet-header-outlined);
|
|
7504
|
+
--x-size-padding-left-facet-header-outlined: var(--x-size-padding-facet-header-outlined);
|
|
7505
|
+
}
|
|
7376
7506
|
:root {
|
|
7377
7507
|
--x-color-background-filter-default: transparent;
|
|
7378
7508
|
--x-color-border-filter-default: var(--x-color-background-filter-default);
|
|
@@ -7499,19 +7629,6 @@
|
|
|
7499
7629
|
--x-size-padding-bottom-facet-header-outlined: var(--x-size-padding-facet-header-outlined);
|
|
7500
7630
|
--x-size-padding-left-facet-header-outlined: var(--x-size-padding-facet-header-outlined);
|
|
7501
7631
|
}
|
|
7502
|
-
:root {
|
|
7503
|
-
--x-color-border-facet-outlined: var(--x-color-base-neutral-70);
|
|
7504
|
-
--x-size-border-width-facet-outlined: var(--x-size-border-width-base);
|
|
7505
|
-
--x-size-border-width-top-facet-outlined: var(--x-size-border-width-facet-outlined);
|
|
7506
|
-
--x-size-border-width-right-facet-outlined: var(--x-size-border-width-facet-outlined);
|
|
7507
|
-
--x-size-border-width-bottom-facet-outlined: var(--x-size-border-width-facet-outlined);
|
|
7508
|
-
--x-size-border-width-left-facet-outlined: var(--x-size-border-width-facet-outlined);
|
|
7509
|
-
--x-size-padding-facet-header-outlined: var(--x-size-base-03);
|
|
7510
|
-
--x-size-padding-top-facet-header-outlined: var(--x-size-padding-facet-header-outlined);
|
|
7511
|
-
--x-size-padding-right-facet-header-outlined: var(--x-size-padding-facet-header-outlined);
|
|
7512
|
-
--x-size-padding-bottom-facet-header-outlined: var(--x-size-padding-facet-header-outlined);
|
|
7513
|
-
--x-size-padding-left-facet-header-outlined: var(--x-size-padding-facet-header-outlined);
|
|
7514
|
-
}
|
|
7515
7632
|
|
|
7516
7633
|
.x-facet--outlined.x-facet,
|
|
7517
7634
|
.x-facet--outlined .x-facet {
|
|
@@ -7831,13 +7948,6 @@
|
|
|
7831
7948
|
:root {
|
|
7832
7949
|
--x-size-width-dropdown-m: 130px;
|
|
7833
7950
|
}
|
|
7834
|
-
:root {
|
|
7835
|
-
--x-size-width-dropdown-m: 130px;
|
|
7836
|
-
}
|
|
7837
|
-
|
|
7838
|
-
.x-dropdown.x-dropdown--m {
|
|
7839
|
-
--x-size-width-dropdown-toggle-default: var(--x-size-width-dropdown-m);
|
|
7840
|
-
}
|
|
7841
7951
|
:root {
|
|
7842
7952
|
--x-size-padding-block-dropdown-item-line: var(--x-size-base-03);
|
|
7843
7953
|
--x-size-padding-inline-dropdown-item-line: 0 var(--x-size-base-03);
|
|
@@ -7928,6 +8038,13 @@
|
|
|
7928
8038
|
:root {
|
|
7929
8039
|
--x-size-width-dropdown-l: 202px;
|
|
7930
8040
|
}
|
|
8041
|
+
:root {
|
|
8042
|
+
--x-size-width-dropdown-m: 130px;
|
|
8043
|
+
}
|
|
8044
|
+
|
|
8045
|
+
.x-dropdown.x-dropdown--m {
|
|
8046
|
+
--x-size-width-dropdown-toggle-default: var(--x-size-width-dropdown-m);
|
|
8047
|
+
}
|
|
7931
8048
|
:root {
|
|
7932
8049
|
--x-size-width-dropdown-l: 202px;
|
|
7933
8050
|
}
|
|
@@ -8263,6 +8380,16 @@
|
|
|
8263
8380
|
--x-size-border-width-bottom-dropdown-list-card: var(--x-size-border-width-dropdown-list-card);
|
|
8264
8381
|
--x-size-border-width-left-dropdown-list-card: var(--x-size-border-width-dropdown-list-card);
|
|
8265
8382
|
}
|
|
8383
|
+
:root {
|
|
8384
|
+
--x-color-background-button-tertiary: var(--x-color-base-neutral-95);
|
|
8385
|
+
--x-color-border-button-tertiary: var(--x-color-base-neutral-70);
|
|
8386
|
+
--x-color-text-button-tertiary: var(--x-color-text-default);
|
|
8387
|
+
--x-size-border-width-button-tertiary: var(--x-size-border-width-base);
|
|
8388
|
+
--x-size-border-width-top-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8389
|
+
--x-size-border-width-right-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8390
|
+
--x-size-border-width-bottom-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8391
|
+
--x-size-border-width-left-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8392
|
+
}
|
|
8266
8393
|
:root {
|
|
8267
8394
|
--x-size-gap-dropdown-card: var(--x-size-base-03);
|
|
8268
8395
|
--x-size-border-radius-dropdown-card: var(--x-size-border-radius-base-s);
|
|
@@ -8316,16 +8443,6 @@
|
|
|
8316
8443
|
--x-size-border-width-bottom-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8317
8444
|
--x-size-border-width-left-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8318
8445
|
}
|
|
8319
|
-
:root {
|
|
8320
|
-
--x-color-background-button-tertiary: var(--x-color-base-neutral-95);
|
|
8321
|
-
--x-color-border-button-tertiary: var(--x-color-base-neutral-70);
|
|
8322
|
-
--x-color-text-button-tertiary: var(--x-color-text-default);
|
|
8323
|
-
--x-size-border-width-button-tertiary: var(--x-size-border-width-base);
|
|
8324
|
-
--x-size-border-width-top-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8325
|
-
--x-size-border-width-right-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8326
|
-
--x-size-border-width-bottom-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8327
|
-
--x-size-border-width-left-button-tertiary: var(--x-size-border-width-button-tertiary);
|
|
8328
|
-
}
|
|
8329
8446
|
|
|
8330
8447
|
.x-button--tertiary.x-button,
|
|
8331
8448
|
.x-button--tertiary .x-button {
|
|
@@ -8347,16 +8464,6 @@
|
|
|
8347
8464
|
--x-size-border-width-bottom-button-secondary: var(--x-size-border-width-button-secondary);
|
|
8348
8465
|
--x-size-border-width-left-button-secondary: var(--x-size-border-width-button-secondary);
|
|
8349
8466
|
}
|
|
8350
|
-
:root {
|
|
8351
|
-
--x-color-background-button-secondary: transparent;
|
|
8352
|
-
--x-color-border-button-secondary: var(--x-color-border-button-default);
|
|
8353
|
-
--x-color-text-button-secondary: var(--x-color-border-button-default);
|
|
8354
|
-
--x-size-border-width-button-secondary: var(--x-size-border-width-base);
|
|
8355
|
-
--x-size-border-width-top-button-secondary: var(--x-size-border-width-button-secondary);
|
|
8356
|
-
--x-size-border-width-right-button-secondary: var(--x-size-border-width-button-secondary);
|
|
8357
|
-
--x-size-border-width-bottom-button-secondary: var(--x-size-border-width-button-secondary);
|
|
8358
|
-
--x-size-border-width-left-button-secondary: var(--x-size-border-width-button-secondary);
|
|
8359
|
-
}
|
|
8360
8467
|
|
|
8361
8468
|
.x-button--secondary.x-button,
|
|
8362
8469
|
.x-button--secondary .x-button {
|
|
@@ -8375,6 +8482,16 @@
|
|
|
8375
8482
|
--x-size-border-radius-bottom-right-button-round: var(--x-size-border-radius-button-round);
|
|
8376
8483
|
--x-size-border-radius-bottom-left-button-round: var(--x-size-border-radius-button-round);
|
|
8377
8484
|
}
|
|
8485
|
+
:root {
|
|
8486
|
+
--x-color-background-button-secondary: transparent;
|
|
8487
|
+
--x-color-border-button-secondary: var(--x-color-border-button-default);
|
|
8488
|
+
--x-color-text-button-secondary: var(--x-color-border-button-default);
|
|
8489
|
+
--x-size-border-width-button-secondary: var(--x-size-border-width-base);
|
|
8490
|
+
--x-size-border-width-top-button-secondary: var(--x-size-border-width-button-secondary);
|
|
8491
|
+
--x-size-border-width-right-button-secondary: var(--x-size-border-width-button-secondary);
|
|
8492
|
+
--x-size-border-width-bottom-button-secondary: var(--x-size-border-width-button-secondary);
|
|
8493
|
+
--x-size-border-width-left-button-secondary: var(--x-size-border-width-button-secondary);
|
|
8494
|
+
}
|
|
8378
8495
|
:root {
|
|
8379
8496
|
--x-size-border-radius-button-round: var(--x-size-border-radius-base-pill);
|
|
8380
8497
|
--x-size-border-radius-top-left-button-round: var(--x-size-border-radius-button-round);
|
|
@@ -8683,6 +8800,19 @@
|
|
|
8683
8800
|
.x-badge-container {
|
|
8684
8801
|
position: relative;
|
|
8685
8802
|
}
|
|
8803
|
+
:root {
|
|
8804
|
+
--x-color-base-lead: #243d48;
|
|
8805
|
+
--x-color-base-auxiliary: #bfe1ec;
|
|
8806
|
+
--x-color-base-neutral-10: #1a1a1a;
|
|
8807
|
+
--x-color-base-neutral-35: #595959;
|
|
8808
|
+
--x-color-base-neutral-70: #b3b3b3;
|
|
8809
|
+
--x-color-base-neutral-95: #f2f2f2;
|
|
8810
|
+
--x-color-base-neutral-100: #ffffff;
|
|
8811
|
+
--x-color-base-accent: #0086b2;
|
|
8812
|
+
--x-color-base-enable: #00705c;
|
|
8813
|
+
--x-color-base-disable: #e11f26;
|
|
8814
|
+
--x-color-base-transparent: transparent;
|
|
8815
|
+
}
|
|
8686
8816
|
:root {
|
|
8687
8817
|
--x-size-base-01: 2px;
|
|
8688
8818
|
--x-size-base-02: 4px;
|
|
@@ -8705,140 +8835,10 @@
|
|
|
8705
8835
|
--x-size-base-19: 280px;
|
|
8706
8836
|
--x-size-base-20: 344px;
|
|
8707
8837
|
}
|
|
8708
|
-
:root {
|
|
8709
|
-
--x-color-base-lead: #243d48;
|
|
8710
|
-
--x-color-base-auxiliary: #bfe1ec;
|
|
8711
|
-
--x-color-base-neutral-10: #1a1a1a;
|
|
8712
|
-
--x-color-base-neutral-35: #595959;
|
|
8713
|
-
--x-color-base-neutral-70: #b3b3b3;
|
|
8714
|
-
--x-color-base-neutral-95: #f2f2f2;
|
|
8715
|
-
--x-color-base-neutral-100: #ffffff;
|
|
8716
|
-
--x-color-base-accent: #0086b2;
|
|
8717
|
-
--x-color-base-enable: #00705c;
|
|
8718
|
-
--x-color-base-disable: #e11f26;
|
|
8719
|
-
--x-color-base-transparent: transparent;
|
|
8720
|
-
}
|
|
8721
8838
|
:root {
|
|
8722
8839
|
--x-size-border-radius-base-none: 0;
|
|
8723
8840
|
--x-size-border-radius-base-s: var(--x-size-base-02);
|
|
8724
8841
|
--x-size-border-radius-base-m: var(--x-size-base-06);
|
|
8725
8842
|
--x-size-border-radius-base-pill: 99999px;
|
|
8726
8843
|
--x-size-border-width-base: 1px;
|
|
8727
|
-
}
|
|
8728
|
-
.x-uppercase {
|
|
8729
|
-
text-transform: uppercase;
|
|
8730
|
-
}
|
|
8731
|
-
|
|
8732
|
-
.x-lowercase {
|
|
8733
|
-
text-transform: lowercase;
|
|
8734
|
-
}
|
|
8735
|
-
|
|
8736
|
-
.x-capitalize {
|
|
8737
|
-
text-transform: capitalize;
|
|
8738
|
-
}
|
|
8739
|
-
|
|
8740
|
-
.x-normal-case {
|
|
8741
|
-
text-transform: none;
|
|
8742
|
-
}
|
|
8743
|
-
:root {
|
|
8744
|
-
--x-font-family-base: "Montserrat", sans-serif;
|
|
8745
|
-
--x-size-font-base-xs: 12px;
|
|
8746
|
-
--x-size-font-base-s: 14px;
|
|
8747
|
-
--x-size-font-base-m: 16px;
|
|
8748
|
-
--x-size-font-base-l: 18px;
|
|
8749
|
-
--x-size-font-base-xl: 32px;
|
|
8750
|
-
--x-number-font-weight-base-light: 300;
|
|
8751
|
-
--x-number-font-weight-base-regular: 400;
|
|
8752
|
-
--x-number-font-weight-base-bold: 600;
|
|
8753
|
-
--x-size-line-height-base-s: 16px;
|
|
8754
|
-
--x-size-line-height-base-m: 24px;
|
|
8755
|
-
--x-size-line-height-base-l: 32px;
|
|
8756
|
-
--x-color-text-default: var(--x-color-base-neutral-10);
|
|
8757
|
-
--x-font-family-text: var(--x-font-family-base);
|
|
8758
|
-
--x-size-font-text: var(--x-size-font-base-s);
|
|
8759
|
-
--x-number-font-weight-text: var(--x-number-font-weight-base-regular);
|
|
8760
|
-
--x-size-line-height-text: var(--x-size-line-height-base-s);
|
|
8761
|
-
--x-string-text-decoration-text: none;
|
|
8762
|
-
--x-font-family-title1: var(--x-font-family-base);
|
|
8763
|
-
--x-size-font-title1: var(--x-size-font-base-xl);
|
|
8764
|
-
--x-number-font-weight-title1: var(--x-number-font-weight-base-regular);
|
|
8765
|
-
--x-size-line-height-title1: var(--x-size-line-height-base-l);
|
|
8766
|
-
--x-string-text-decoration-title1: none;
|
|
8767
|
-
--x-font-family-title2: var(--x-font-family-base);
|
|
8768
|
-
--x-size-font-title2: var(--x-size-font-base-l);
|
|
8769
|
-
--x-number-font-weight-title2: var(--x-number-font-weight-base-regular);
|
|
8770
|
-
--x-size-line-height-title2: var(--x-size-line-height-base-m);
|
|
8771
|
-
--x-string-text-decoration-title2: none;
|
|
8772
|
-
--x-font-family-title3: var(--x-font-family-base);
|
|
8773
|
-
--x-size-font-title3: var(--x-size-font-base-m);
|
|
8774
|
-
--x-number-font-weight-title3: var(--x-number-font-weight-base-regular);
|
|
8775
|
-
--x-size-line-height-title3: var(--x-size-line-height-base-m);
|
|
8776
|
-
--x-string-text-decoration-title3: none;
|
|
8777
|
-
--x-font-family-small: var(--x-font-family-base);
|
|
8778
|
-
--x-size-font-small: var(--x-size-font-base-xs);
|
|
8779
|
-
--x-number-font-weight-small: var(--x-number-font-weight-base-regular);
|
|
8780
|
-
--x-size-line-height-small: var(--x-size-line-height-base-s);
|
|
8781
|
-
--x-string-text-decoration-small: none;
|
|
8782
|
-
}
|
|
8783
|
-
|
|
8784
|
-
.x,
|
|
8785
|
-
.x-text {
|
|
8786
|
-
font-family: var(--x-font-family-text);
|
|
8787
|
-
font-size: var(--x-size-font-text);
|
|
8788
|
-
font-weight: var(--x-number-font-weight-text);
|
|
8789
|
-
line-height: var(--x-size-line-height-text);
|
|
8790
|
-
-webkit-text-decoration: var(--x-string-text-decoration);
|
|
8791
|
-
text-decoration: var(--x-string-text-decoration);
|
|
8792
|
-
color: var(--x-color-text-default);
|
|
8793
|
-
margin: 0;
|
|
8794
|
-
}
|
|
8795
|
-
|
|
8796
|
-
.x-title1 {
|
|
8797
|
-
font-family: var(--x-font-family-title1);
|
|
8798
|
-
font-size: var(--x-size-font-title1);
|
|
8799
|
-
font-weight: var(--x-number-font-weight-title1);
|
|
8800
|
-
line-height: var(--x-size-line-height-title1);
|
|
8801
|
-
-webkit-text-decoration: var(--x-string-text-decoration-title1);
|
|
8802
|
-
text-decoration: var(--x-string-text-decoration-title1);
|
|
8803
|
-
color: var(--x-color-text-default);
|
|
8804
|
-
margin: 0;
|
|
8805
|
-
}
|
|
8806
|
-
|
|
8807
|
-
.x-title2 {
|
|
8808
|
-
font-family: var(--x-font-family-title2);
|
|
8809
|
-
font-size: var(--x-size-font-title2);
|
|
8810
|
-
font-weight: var(--x-number-font-weight-title2);
|
|
8811
|
-
line-height: var(--x-size-line-height-title2);
|
|
8812
|
-
-webkit-text-decoration: var(--x-string-text-decoration-title2);
|
|
8813
|
-
text-decoration: var(--x-string-text-decoration-title2);
|
|
8814
|
-
color: var(--x-color-text-default);
|
|
8815
|
-
margin: 0;
|
|
8816
|
-
}
|
|
8817
|
-
|
|
8818
|
-
.x-title3 {
|
|
8819
|
-
font-family: var(--x-font-family-title3);
|
|
8820
|
-
font-size: var(--x-size-font-title3);
|
|
8821
|
-
font-weight: var(--x-number-font-weight-title3);
|
|
8822
|
-
line-height: var(--x-size-line-height-title3);
|
|
8823
|
-
-webkit-text-decoration: var(--x-string-text-decoration-title3);
|
|
8824
|
-
text-decoration: var(--x-string-text-decoration-title3);
|
|
8825
|
-
color: var(--x-color-text-default);
|
|
8826
|
-
margin: 0;
|
|
8827
|
-
}
|
|
8828
|
-
|
|
8829
|
-
.x-small {
|
|
8830
|
-
font-family: var(--x-font-family-small);
|
|
8831
|
-
font-size: var(--x-size-font-small);
|
|
8832
|
-
font-weight: var(--x-number-font-weight-small);
|
|
8833
|
-
line-height: var(--x-size-line-height-small);
|
|
8834
|
-
-webkit-text-decoration: var(--x-string-text-decoration-small);
|
|
8835
|
-
text-decoration: var(--x-string-text-decoration-small);
|
|
8836
|
-
color: var(--x-color-text-default);
|
|
8837
|
-
margin: 0;
|
|
8838
|
-
}
|
|
8839
|
-
|
|
8840
|
-
.x-ellipsis {
|
|
8841
|
-
text-overflow: ellipsis;
|
|
8842
|
-
overflow: hidden;
|
|
8843
|
-
white-space: nowrap;
|
|
8844
8844
|
}
|
package/docs/API-reference/components/common/animations/x-components.staggering-transition-group.md
CHANGED
|
@@ -23,11 +23,11 @@ animations.
|
|
|
23
23
|
### Basic example
|
|
24
24
|
|
|
25
25
|
Apart from all the props and events that the classic transition group has, the staggering transition
|
|
26
|
-
group also exposes a new `
|
|
27
|
-
nodes when animating.
|
|
26
|
+
group also exposes a new `staggering` property, which allows to configure the delay for each one of
|
|
27
|
+
the nodes when animating.
|
|
28
28
|
|
|
29
29
|
```vue
|
|
30
|
-
<staggering-transition-group appear :
|
|
30
|
+
<staggering-transition-group appear :staggering="50" name="staggered-fade-slide-">
|
|
31
31
|
<!-- @slot (Required) Transition-group content -->
|
|
32
32
|
<slot />
|
|
33
33
|
</staggering-transition-group>
|
|
@@ -9,7 +9,7 @@ const __vue_script__ = script;
|
|
|
9
9
|
/* style */
|
|
10
10
|
const __vue_inject_styles__ = undefined;
|
|
11
11
|
/* scoped */
|
|
12
|
-
const __vue_scope_id__ = "data-v-
|
|
12
|
+
const __vue_scope_id__ = "data-v-61b49289";
|
|
13
13
|
/* module identifier */
|
|
14
14
|
const __vue_module_identifier__ = undefined;
|
|
15
15
|
/* functional template */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"staggering-transition-group.vue.js","sources":["../../../../src/components/animations/staggering-transition-group.vue"],"sourcesContent":["<script lang=\"ts\">\n import Vue, { CreateElement, VNode } from 'vue';\n import { Component, Prop } from 'vue-property-decorator';\n import { noOp } from '../../utils';\n\n /* eslint-disable @typescript-eslint/unbound-method */\n /**\n * A replacement component for Vue's transition-group, that also adds the option to stagger\n * the animations.\n *\n * @public\n */\n @Component\n export default class StaggeringTransitionGroup extends Vue {\n /**\n * The name of the transition. Used to generate the CSS classes.\n *\n * @public\n */\n @Prop({ default: 'v' })\n public name!: string;\n\n /**\n * The CSS move class name.\n *\n * @public\n */\n @Prop()\n public moveClass!: string;\n\n /**\n * The tag of the node to render to the DOM.\n *\n * @public\n */\n @Prop({ default: 'div' })\n public tag!: string;\n\n /**\n * The time in ms to stagger each item.\n *\n * @public\n */\n @Prop({ default: 25 })\n public staggering!: number;\n\n /**\n * The CSS class for the moving transitions.\n *\n * @returns The move transition name.\n * @internal\n */\n protected get moveClassName(): string {\n return this.moveClass ?? `${this.name}-move`;\n }\n\n /**\n * The transition data contains the needed events and props to perform a transition using Vue\n * virtual node's API.\n *\n * The `beforeLeave` hook is extended to also restore the previous position of the element using\n * the position absolute.\n * The `afterEnter` and `afterLeave` hooks are extended to also clean the transition delay\n * applied by the stagger.\n *\n * @returns The transition data for Vue virtual nodes.\n * @internal\n */\n protected get transitionData(): TransitionData {\n const transitionData: TransitionData = { ...this.$props, ...this.$attrs, ...this.$listeners };\n\n transitionData.beforeLeave = this.addRestorePositionHook(transitionData.beforeLeave);\n transitionData.afterEnter = this.addClearStaggeringCall(transitionData.afterEnter);\n transitionData.afterLeave = this.addClearStaggeringCall(transitionData.afterLeave);\n\n return transitionData;\n }\n\n /**\n * The list of old virtual nodes, generated by the previous called render method.\n *\n * @internal\n */\n protected oldChildren!: TransitionVNode[];\n /**\n * The list of new virtual nodes, generated by the last called render method.\n *\n * @internal\n */\n protected newChildren!: TransitionVNode[];\n /**\n * A map containing the previous positions relative to the container, for each item\n * rendered inside the slot of this component.\n * This is used together with the `newPositions` to calculate the move transition.\n *\n * @internal\n */\n protected oldPositions!: WeakMap<Element, Bounds>;\n /**\n * A map containing the new positions relative to the container, for each item\n * rendered inside the slot of this component.\n * This is used together with the `newPositions` to calculate the move transition.\n *\n * @internal\n */\n protected newPositions!: WeakMap<Element, Bounds>;\n /**\n * A map containing the move cleanup functions pending to have been called. When invoked\n * this functions remove all the styles and classes associated to the move transition.\n *\n * @internal\n */\n protected pendingCleanupMoveCallbacks!: WeakMap<Element, () => void>;\n /**\n * The counter for the stagger, used to calculate the delay for the transition of each child\n * element. It is reset every time the render method is triggered.\n *\n * @internal\n */\n protected staggerCounter!: number;\n /**\n * The bounds of the container rendered using the `tag` prop. This is used to calculate the\n * relative positions of each leaving child, which are then applied with the position absolute.\n *\n * @internal\n */\n protected wrapperBounds!: DOMRect;\n\n beforeCreate(): void {\n // Initialize properties here to avoid making them reactive, which would cause infinite loops.\n this.oldChildren = [];\n this.newChildren = [];\n this.oldPositions = new WeakMap();\n this.newPositions = new WeakMap();\n this.pendingCleanupMoveCallbacks = new WeakMap<Element, () => void>();\n this.staggerCounter = 0;\n }\n\n render(createElement: CreateElement): VNode {\n this.staggerCounter = 0;\n // New children are now the old ones\n this.oldChildren = this.newChildren;\n // Only vnodes with a tag (i.e. no HTML comments) and with a `key` property are valid.\n this.newChildren = (this.$slots.default ?? []).filter(this.isTransitionValidVNode);\n\n // Apply transition data to both new and old nodes & store the position of the old nodes.\n this.newChildren.forEach(this.addTransitionData);\n this.oldChildren.forEach(this.syncOldNodes);\n\n return createElement(\n this.tag,\n { staticClass: 'x-staggering-transition-group' },\n this.newChildren\n );\n }\n\n mounted(): void {\n this.newChildren.forEach(this.applyStagger);\n }\n\n beforeUpdate(): void {\n this.wrapperBounds = this.$el.getBoundingClientRect();\n }\n\n updated(): void {\n this.wrapperBounds = this.$el.getBoundingClientRect();\n this.newChildren.forEach(this.recordNewPosition);\n const { leavingNodes, stayingNodes, enteringNodes } = this.getNodesByTransitionType();\n\n leavingNodes.forEach(vNode => {\n this.applyStagger(vNode);\n this.disableClickingEvents(vNode);\n });\n const movedChildren = stayingNodes.filter(this.applyTranslation);\n const movedStagger = movedChildren.map(this.getNextTransitionDelay);\n enteringNodes.forEach(this.applyStagger);\n\n // force reflow to put everything in position\n document.body.getBoundingClientRect();\n\n movedChildren.forEach(this.startMoveAnimation(movedStagger));\n }\n\n /**\n * Extends the provided leave transition hook restoring the position of the element with an\n * absolute position.\n * Additionally, it removes the element position from the maps of positions.\n *\n * @param transitionHook - The leave transition hook to extend.\n * @returns The new leave transition hook extended.\n * @internal\n */\n protected addRestorePositionHook(transitionHook: TransitionHook = noOp): TransitionHook {\n return element => {\n const { top, left, width, height } = this.oldPositions.get(element)!;\n const { marginTop, marginLeft } = window.getComputedStyle(element);\n const style = element.style;\n style.position = 'absolute';\n style.top = `${top - parseFloat(marginTop)}px`;\n style.left = `${left - parseFloat(marginLeft)}px`;\n style.width = `${width}px`;\n style.height = `${height}px`;\n this.newPositions.delete(element);\n this.oldPositions.delete(element);\n const pendingCallback = this.pendingCleanupMoveCallbacks.get(element);\n pendingCallback?.();\n transitionHook(element);\n };\n }\n\n /**\n * Extends the provided transition hook clearing the transition delay.\n *\n * @param transitionHook - The transition hook to extend.\n * @returns The new transition hook, that also clears the transitionDelay from the element.\n * @internal\n */\n protected addClearStaggeringCall(transitionHook: TransitionHook = noOp): TransitionHook {\n return element => {\n element.style.transitionDelay = '';\n transitionHook(element);\n };\n }\n\n /**\n * Returns if the vNode contains a non empty key, and a non empty tag.\n *\n * @param vNode - The VNode to check if it is a valid transition node, containing a `tag` and a\n * `key` property.\n * @returns True when the vNode contains a non empty key and a non empty tag. False otherwise.\n * @internal\n */\n protected isTransitionValidVNode(vNode: VNode): vNode is TransitionVNode {\n // TODO Add warning with logger: <staggering-transition-group> children must be keyed.\n return !!vNode.key && !!vNode.tag;\n }\n\n /**\n * Adds the generated transition data to the vNode, creating the `data` property if necessary.\n *\n * @param vNode - The VNode to add the transition data to.\n * @internal\n */\n protected addTransitionData(vNode: TransitionVNode): void {\n if (!vNode.data) {\n vNode.data = {};\n }\n vNode.data.transition = this.transitionData;\n }\n\n /**\n * Re-applies the transition data to an old node, just in case it changed from the previous\n * render call. It also records the position of the node, to then calculate the move\n * transitions.\n *\n * @param vNode - The vNode to add the transition data to, and record his current position as\n * old.\n * @internal\n */\n protected syncOldNodes(vNode: TransitionVNode): void {\n // Synchronize transition data, in case it changed in the last frame.\n // We can trust data to be defined because each new node has the transition applied\n vNode.data!.transition = this.transitionData;\n this.recordOldPosition(vNode);\n }\n\n /**\n * Saves the position of the vNode in the map of old positions.\n *\n * @param vNode - The node to store its position.\n * @internal\n */\n protected recordOldPosition(vNode: TransitionVNode): void {\n this.oldPositions.set(vNode.elm, this.createRelativeBounds(vNode));\n }\n\n /**\n * Saves the position of the vNode in the map of new positions.\n *\n * @param vNode - The node to store its position.\n * @internal\n */\n protected recordNewPosition(vNode: TransitionVNode): void {\n this.newPositions.set(vNode.elm, this.createRelativeBounds(vNode));\n }\n\n /**\n * Creates an object containing the position of the vNode relative to its container.\n *\n * @param vNode - The virtual node to store its relative position.\n * @returns The relative bounds of the provided virtual node.\n * @internal\n */\n protected createRelativeBounds(vNode: TransitionVNode): Bounds {\n const { left, top, width, height } = vNode.elm.getBoundingClientRect();\n const { left: wrapperLeft, top: wrapperTop } = this.wrapperBounds;\n return {\n left: left - wrapperLeft,\n top: top - wrapperTop,\n width,\n height\n };\n }\n\n /**\n * Splits the children of the component into three groups:\n * - Nodes that are leaving.\n * - Nodes that are entering.\n * - Nodes that stay.\n *\n * This is then used to apply the stagger in the correct order: leave -\\> move -\\> enter.\n *\n * @returns The children nodes, divided in different groups depending on if they are leaving,\n * staying or entering.\n * @internal\n */\n protected getNodesByTransitionType(): TransitionTypeNodes {\n const leave = this.oldChildren.filter(child => !this.newPositions.has(child.elm));\n const enter = this.newChildren.filter(child => !this.oldPositions.has(child.elm));\n const stay = this.oldChildren.filter(child => this.newPositions.has(child.elm));\n return {\n leavingNodes: leave,\n enteringNodes: enter,\n stayingNodes: stay\n };\n }\n\n /**\n * Applies an incremental delay to the virtual node element.\n *\n * @param vNode - The virtual node to apply the stagger to.\n * @internal\n */\n protected applyStagger(vNode: TransitionVNode): void {\n vNode.elm.style.transitionDelay = this.getNextTransitionDelay();\n }\n\n /**\n * Disables listening to click events in a virtual node element.\n *\n * @remarks This is done to avoid letting the user click elements that are performing the moving\n * animation to leave the DOM but are still rendered.\n *\n * @param vNode - The virtual node to disable listening to click events.\n * @internal\n */\n protected disableClickingEvents(vNode: TransitionVNode): void {\n vNode.elm.style.pointerEvents = 'none';\n }\n\n /**\n * Calculates the next transition delay property, incrementing the `staggerCounter` property\n * each time it is called.\n *\n * @returns The value for the next element `style.transitionDelay` property.\n * @internal\n */\n protected getNextTransitionDelay(): string {\n return `${this.staggerCounter++ * this.staggering}ms`;\n }\n\n /**\n * Calculates if the virtual node should have a move transition. If its has it, then it\n * applies it immediately using the `style.transform`.\n *\n * @param vNode - The virtual node to calculate if it should have a move transition.\n * @returns True when a move transition was applied to the virtual node.\n * @internal\n */\n protected applyTranslation(vNode: TransitionVNode): boolean {\n const oldPosition = this.oldPositions.get(vNode.elm as Element)!;\n const newPosition = this.newPositions.get(vNode.elm as Element)!;\n const dx = oldPosition.left - newPosition.left;\n const dy = oldPosition.top - newPosition.top;\n if (dx !== 0 || dy !== 0) {\n const style = vNode.elm.style;\n style.transform = `translate3d(${dx}px,${dy}px,0)`;\n style.transitionDuration = '0s';\n return true;\n }\n return false;\n }\n\n /**\n * Generates a function to start the moving animations to each node that it needs them with the\n * provided stagger.\n *\n * @param moveStagger - A list containing the delay to add to each node.\n * @returns A function that starts the moving animation with the provided stagger to a single\n * virtual node.\n * @internal\n */\n protected startMoveAnimation(\n moveStagger: string[]\n ): (vNode: TransitionVNode, index: number) => void {\n return (vNode, index) => {\n const element = vNode.elm;\n const style = element.style;\n element.classList.add(this.moveClassName);\n style.transform = style.transitionDuration = '';\n style.transitionDelay = moveStagger[index];\n const cleanMoveTransition = (event?: TransitionEvent): void => {\n if (!event || (event.target === element && /transform$/.test(event.propertyName))) {\n element.removeEventListener('transitionend', cleanMoveTransition);\n element.style.transitionDelay = '';\n element.classList.remove(this.moveClassName);\n this.pendingCleanupMoveCallbacks.delete(element);\n }\n };\n this.pendingCleanupMoveCallbacks.set(element, cleanMoveTransition);\n element.addEventListener('transitionend', cleanMoveTransition);\n };\n }\n }\n\n /**\n * Contains arrays of nodes, splitted by the action they should have.\n */\n interface TransitionTypeNodes {\n leavingNodes: TransitionVNode[];\n stayingNodes: TransitionVNode[];\n enteringNodes: TransitionVNode[];\n }\n\n /**\n * Safe transition version of the VNode type, with the required non optional properties.\n */\n interface TransitionVNode extends VNode {\n elm: HTMLElement;\n tag: string;\n key: string;\n }\n\n /**\n * Vue's VNode {@link https://vuejs.org/v2/api/#transition} data props and events.\n */\n interface TransitionData {\n name?: string;\n appear?: boolean;\n css?: boolean;\n type?: 'transition' | 'animation'; // Unused\n mode?: 'out-in' | 'in-out'; // Unused\n duration?: number;\n enterClass?: string;\n leaveClass?: string;\n appearClass?: string;\n enterToClass?: string;\n leaveToClass?: string;\n appearToClass?: string;\n enterActiveClass?: string;\n leaveActiveClass?: string;\n appearActiveClass?: string;\n beforeEnter?: TransitionHook;\n enter?: TransitionHook;\n afterEnter?: TransitionHook;\n beforeLeave?: TransitionHook;\n leave?: TransitionHook;\n afterLeave?: TransitionHook;\n }\n\n /**\n * A function that receives an HTMLElement. Used to perform actions when the different phases\n * of Vue transitions happens.\n */\n type TransitionHook = (element: HTMLElement) => void;\n\n /**\n * Represents the dimensions and positions of an element.\n */\n interface Bounds {\n top: number;\n left: number;\n width: number;\n height: number;\n }\n</script>\n\n<style lang=\"scss\" scoped>\n .x-staggering-transition-group {\n position: relative;\n }\n</style>\n\n<docs lang=\"mdx\">\n## Examples\n\n### Basic example\n\nApart from all the props and events that the classic transition group has, the staggering transition\ngroup also exposes a new `stagger` property, which allows to configure the delay for each one of the\nnodes when animating.\n\n```vue\n<staggering-transition-group appear :stagger=\"50\" name=\"staggered-fade-slide-\">\n <!-- @slot (Required) Transition-group content -->\n <slot />\n</staggering-transition-group>\n```\n</docs>\n"],"names":[],"mappings":";;;;;AAEA,MAAc,cAAA,GAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"staggering-transition-group.vue.js","sources":["../../../../src/components/animations/staggering-transition-group.vue"],"sourcesContent":["<script lang=\"ts\">\n import Vue, { CreateElement, VNode } from 'vue';\n import { Component, Prop } from 'vue-property-decorator';\n import { noOp } from '../../utils';\n\n /* eslint-disable @typescript-eslint/unbound-method */\n /**\n * A replacement component for Vue's transition-group, that also adds the option to stagger\n * the animations.\n *\n * @public\n */\n @Component\n export default class StaggeringTransitionGroup extends Vue {\n /**\n * The name of the transition. Used to generate the CSS classes.\n *\n * @public\n */\n @Prop({ default: 'v' })\n public name!: string;\n\n /**\n * The CSS move class name.\n *\n * @public\n */\n @Prop()\n public moveClass!: string;\n\n /**\n * The tag of the node to render to the DOM.\n *\n * @public\n */\n @Prop({ default: 'div' })\n public tag!: string;\n\n /**\n * The time in ms to stagger each item.\n *\n * @public\n */\n @Prop({ default: 25 })\n public staggering!: number;\n\n /**\n * The CSS class for the moving transitions.\n *\n * @returns The move transition name.\n * @internal\n */\n protected get moveClassName(): string {\n return this.moveClass ?? `${this.name}-move`;\n }\n\n /**\n * The transition data contains the needed events and props to perform a transition using Vue\n * virtual node's API.\n *\n * The `beforeLeave` hook is extended to also restore the previous position of the element using\n * the position absolute.\n * The `afterEnter` and `afterLeave` hooks are extended to also clean the transition delay\n * applied by the stagger.\n *\n * @returns The transition data for Vue virtual nodes.\n * @internal\n */\n protected get transitionData(): TransitionData {\n const transitionData: TransitionData = { ...this.$props, ...this.$attrs, ...this.$listeners };\n\n transitionData.beforeLeave = this.addRestorePositionHook(transitionData.beforeLeave);\n transitionData.afterEnter = this.addClearStaggeringCall(transitionData.afterEnter);\n transitionData.afterLeave = this.addClearStaggeringCall(transitionData.afterLeave);\n\n return transitionData;\n }\n\n /**\n * The list of old virtual nodes, generated by the previous called render method.\n *\n * @internal\n */\n protected oldChildren!: TransitionVNode[];\n /**\n * The list of new virtual nodes, generated by the last called render method.\n *\n * @internal\n */\n protected newChildren!: TransitionVNode[];\n /**\n * A map containing the previous positions relative to the container, for each item\n * rendered inside the slot of this component.\n * This is used together with the `newPositions` to calculate the move transition.\n *\n * @internal\n */\n protected oldPositions!: WeakMap<Element, Bounds>;\n /**\n * A map containing the new positions relative to the container, for each item\n * rendered inside the slot of this component.\n * This is used together with the `newPositions` to calculate the move transition.\n *\n * @internal\n */\n protected newPositions!: WeakMap<Element, Bounds>;\n /**\n * A map containing the move cleanup functions pending to have been called. When invoked\n * this functions remove all the styles and classes associated to the move transition.\n *\n * @internal\n */\n protected pendingCleanupMoveCallbacks!: WeakMap<Element, () => void>;\n /**\n * The counter for the stagger, used to calculate the delay for the transition of each child\n * element. It is reset every time the render method is triggered.\n *\n * @internal\n */\n protected staggerCounter!: number;\n /**\n * The bounds of the container rendered using the `tag` prop. This is used to calculate the\n * relative positions of each leaving child, which are then applied with the position absolute.\n *\n * @internal\n */\n protected wrapperBounds!: DOMRect;\n\n beforeCreate(): void {\n // Initialize properties here to avoid making them reactive, which would cause infinite loops.\n this.oldChildren = [];\n this.newChildren = [];\n this.oldPositions = new WeakMap();\n this.newPositions = new WeakMap();\n this.pendingCleanupMoveCallbacks = new WeakMap<Element, () => void>();\n this.staggerCounter = 0;\n }\n\n render(createElement: CreateElement): VNode {\n this.staggerCounter = 0;\n // New children are now the old ones\n this.oldChildren = this.newChildren;\n // Only vnodes with a tag (i.e. no HTML comments) and with a `key` property are valid.\n this.newChildren = (this.$slots.default ?? []).filter(this.isTransitionValidVNode);\n\n // Apply transition data to both new and old nodes & store the position of the old nodes.\n this.newChildren.forEach(this.addTransitionData);\n this.oldChildren.forEach(this.syncOldNodes);\n\n return createElement(\n this.tag,\n { staticClass: 'x-staggering-transition-group' },\n this.newChildren\n );\n }\n\n mounted(): void {\n this.newChildren.forEach(this.applyStagger);\n }\n\n beforeUpdate(): void {\n this.wrapperBounds = this.$el.getBoundingClientRect();\n }\n\n updated(): void {\n this.wrapperBounds = this.$el.getBoundingClientRect();\n this.newChildren.forEach(this.recordNewPosition);\n const { leavingNodes, stayingNodes, enteringNodes } = this.getNodesByTransitionType();\n\n leavingNodes.forEach(vNode => {\n this.applyStagger(vNode);\n this.disableClickingEvents(vNode);\n });\n const movedChildren = stayingNodes.filter(this.applyTranslation);\n const movedStagger = movedChildren.map(this.getNextTransitionDelay);\n enteringNodes.forEach(this.applyStagger);\n\n // force reflow to put everything in position\n document.body.getBoundingClientRect();\n\n movedChildren.forEach(this.startMoveAnimation(movedStagger));\n }\n\n /**\n * Extends the provided leave transition hook restoring the position of the element with an\n * absolute position.\n * Additionally, it removes the element position from the maps of positions.\n *\n * @param transitionHook - The leave transition hook to extend.\n * @returns The new leave transition hook extended.\n * @internal\n */\n protected addRestorePositionHook(transitionHook: TransitionHook = noOp): TransitionHook {\n return element => {\n const { top, left, width, height } = this.oldPositions.get(element)!;\n const { marginTop, marginLeft } = window.getComputedStyle(element);\n const style = element.style;\n style.position = 'absolute';\n style.top = `${top - parseFloat(marginTop)}px`;\n style.left = `${left - parseFloat(marginLeft)}px`;\n style.width = `${width}px`;\n style.height = `${height}px`;\n this.newPositions.delete(element);\n this.oldPositions.delete(element);\n const pendingCallback = this.pendingCleanupMoveCallbacks.get(element);\n pendingCallback?.();\n transitionHook(element);\n };\n }\n\n /**\n * Extends the provided transition hook clearing the transition delay.\n *\n * @param transitionHook - The transition hook to extend.\n * @returns The new transition hook, that also clears the transitionDelay from the element.\n * @internal\n */\n protected addClearStaggeringCall(transitionHook: TransitionHook = noOp): TransitionHook {\n return element => {\n element.style.transitionDelay = '';\n transitionHook(element);\n };\n }\n\n /**\n * Returns if the vNode contains a non empty key, and a non empty tag.\n *\n * @param vNode - The VNode to check if it is a valid transition node, containing a `tag` and a\n * `key` property.\n * @returns True when the vNode contains a non empty key and a non empty tag. False otherwise.\n * @internal\n */\n protected isTransitionValidVNode(vNode: VNode): vNode is TransitionVNode {\n // TODO Add warning with logger: <staggering-transition-group> children must be keyed.\n return !!vNode.key && !!vNode.tag;\n }\n\n /**\n * Adds the generated transition data to the vNode, creating the `data` property if necessary.\n *\n * @param vNode - The VNode to add the transition data to.\n * @internal\n */\n protected addTransitionData(vNode: TransitionVNode): void {\n if (!vNode.data) {\n vNode.data = {};\n }\n vNode.data.transition = this.transitionData;\n }\n\n /**\n * Re-applies the transition data to an old node, just in case it changed from the previous\n * render call. It also records the position of the node, to then calculate the move\n * transitions.\n *\n * @param vNode - The vNode to add the transition data to, and record his current position as\n * old.\n * @internal\n */\n protected syncOldNodes(vNode: TransitionVNode): void {\n // Synchronize transition data, in case it changed in the last frame.\n // We can trust data to be defined because each new node has the transition applied\n vNode.data!.transition = this.transitionData;\n this.recordOldPosition(vNode);\n }\n\n /**\n * Saves the position of the vNode in the map of old positions.\n *\n * @param vNode - The node to store its position.\n * @internal\n */\n protected recordOldPosition(vNode: TransitionVNode): void {\n this.oldPositions.set(vNode.elm, this.createRelativeBounds(vNode));\n }\n\n /**\n * Saves the position of the vNode in the map of new positions.\n *\n * @param vNode - The node to store its position.\n * @internal\n */\n protected recordNewPosition(vNode: TransitionVNode): void {\n this.newPositions.set(vNode.elm, this.createRelativeBounds(vNode));\n }\n\n /**\n * Creates an object containing the position of the vNode relative to its container.\n *\n * @param vNode - The virtual node to store its relative position.\n * @returns The relative bounds of the provided virtual node.\n * @internal\n */\n protected createRelativeBounds(vNode: TransitionVNode): Bounds {\n const { left, top, width, height } = vNode.elm.getBoundingClientRect();\n const { left: wrapperLeft, top: wrapperTop } = this.wrapperBounds;\n return {\n left: left - wrapperLeft,\n top: top - wrapperTop,\n width,\n height\n };\n }\n\n /**\n * Splits the children of the component into three groups:\n * - Nodes that are leaving.\n * - Nodes that are entering.\n * - Nodes that stay.\n *\n * This is then used to apply the stagger in the correct order: leave -\\> move -\\> enter.\n *\n * @returns The children nodes, divided in different groups depending on if they are leaving,\n * staying or entering.\n * @internal\n */\n protected getNodesByTransitionType(): TransitionTypeNodes {\n const leave = this.oldChildren.filter(child => !this.newPositions.has(child.elm));\n const enter = this.newChildren.filter(child => !this.oldPositions.has(child.elm));\n const stay = this.oldChildren.filter(child => this.newPositions.has(child.elm));\n return {\n leavingNodes: leave,\n enteringNodes: enter,\n stayingNodes: stay\n };\n }\n\n /**\n * Applies an incremental delay to the virtual node element.\n *\n * @param vNode - The virtual node to apply the stagger to.\n * @internal\n */\n protected applyStagger(vNode: TransitionVNode): void {\n vNode.elm.style.transitionDelay = this.getNextTransitionDelay();\n }\n\n /**\n * Disables listening to click events in a virtual node element.\n *\n * @remarks This is done to avoid letting the user click elements that are performing the moving\n * animation to leave the DOM but are still rendered.\n *\n * @param vNode - The virtual node to disable listening to click events.\n * @internal\n */\n protected disableClickingEvents(vNode: TransitionVNode): void {\n vNode.elm.style.pointerEvents = 'none';\n }\n\n /**\n * Calculates the next transition delay property, incrementing the `staggerCounter` property\n * each time it is called.\n *\n * @returns The value for the next element `style.transitionDelay` property.\n * @internal\n */\n protected getNextTransitionDelay(): string {\n return `${this.staggerCounter++ * this.staggering}ms`;\n }\n\n /**\n * Calculates if the virtual node should have a move transition. If its has it, then it\n * applies it immediately using the `style.transform`.\n *\n * @param vNode - The virtual node to calculate if it should have a move transition.\n * @returns True when a move transition was applied to the virtual node.\n * @internal\n */\n protected applyTranslation(vNode: TransitionVNode): boolean {\n const oldPosition = this.oldPositions.get(vNode.elm as Element)!;\n const newPosition = this.newPositions.get(vNode.elm as Element)!;\n const dx = oldPosition.left - newPosition.left;\n const dy = oldPosition.top - newPosition.top;\n if (dx !== 0 || dy !== 0) {\n const style = vNode.elm.style;\n style.transform = `translate3d(${dx}px,${dy}px,0)`;\n style.transitionDuration = '0s';\n return true;\n }\n return false;\n }\n\n /**\n * Generates a function to start the moving animations to each node that it needs them with the\n * provided stagger.\n *\n * @param moveStagger - A list containing the delay to add to each node.\n * @returns A function that starts the moving animation with the provided stagger to a single\n * virtual node.\n * @internal\n */\n protected startMoveAnimation(\n moveStagger: string[]\n ): (vNode: TransitionVNode, index: number) => void {\n return (vNode, index) => {\n const element = vNode.elm;\n const style = element.style;\n element.classList.add(this.moveClassName);\n style.transform = style.transitionDuration = '';\n style.transitionDelay = moveStagger[index];\n const cleanMoveTransition = (event?: TransitionEvent): void => {\n if (!event || (event.target === element && /transform$/.test(event.propertyName))) {\n element.removeEventListener('transitionend', cleanMoveTransition);\n element.style.transitionDelay = '';\n element.classList.remove(this.moveClassName);\n this.pendingCleanupMoveCallbacks.delete(element);\n }\n };\n this.pendingCleanupMoveCallbacks.set(element, cleanMoveTransition);\n element.addEventListener('transitionend', cleanMoveTransition);\n };\n }\n }\n\n /**\n * Contains arrays of nodes, splitted by the action they should have.\n */\n interface TransitionTypeNodes {\n leavingNodes: TransitionVNode[];\n stayingNodes: TransitionVNode[];\n enteringNodes: TransitionVNode[];\n }\n\n /**\n * Safe transition version of the VNode type, with the required non optional properties.\n */\n interface TransitionVNode extends VNode {\n elm: HTMLElement;\n tag: string;\n key: string;\n }\n\n /**\n * Vue's VNode {@link https://vuejs.org/v2/api/#transition} data props and events.\n */\n interface TransitionData {\n name?: string;\n appear?: boolean;\n css?: boolean;\n type?: 'transition' | 'animation'; // Unused\n mode?: 'out-in' | 'in-out'; // Unused\n duration?: number;\n enterClass?: string;\n leaveClass?: string;\n appearClass?: string;\n enterToClass?: string;\n leaveToClass?: string;\n appearToClass?: string;\n enterActiveClass?: string;\n leaveActiveClass?: string;\n appearActiveClass?: string;\n beforeEnter?: TransitionHook;\n enter?: TransitionHook;\n afterEnter?: TransitionHook;\n beforeLeave?: TransitionHook;\n leave?: TransitionHook;\n afterLeave?: TransitionHook;\n }\n\n /**\n * A function that receives an HTMLElement. Used to perform actions when the different phases\n * of Vue transitions happens.\n */\n type TransitionHook = (element: HTMLElement) => void;\n\n /**\n * Represents the dimensions and positions of an element.\n */\n interface Bounds {\n top: number;\n left: number;\n width: number;\n height: number;\n }\n</script>\n\n<style lang=\"scss\" scoped>\n .x-staggering-transition-group {\n position: relative;\n }\n</style>\n\n<docs lang=\"mdx\">\n## Examples\n\n### Basic example\n\nApart from all the props and events that the classic transition group has, the staggering transition\ngroup also exposes a new `staggering` property, which allows to configure the delay for each one of\nthe nodes when animating.\n\n```vue\n<staggering-transition-group appear :staggering=\"50\" name=\"staggered-fade-slide-\">\n <!-- @slot (Required) Transition-group content -->\n <slot />\n</staggering-transition-group>\n```\n</docs>\n"],"names":[],"mappings":";;;;;AAEA,MAAc,cAAA,GAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createInjector, createInjectorSSR } from 'vue-runtime-helpers';
|
|
2
2
|
|
|
3
|
-
var css = ".x-staggering-transition-group[data-v-
|
|
3
|
+
var css = ".x-staggering-transition-group[data-v-61b49289] {\n position: relative;\n}";
|
|
4
4
|
const isBrowser = /*#__PURE__*/ (function () {
|
|
5
5
|
return (
|
|
6
6
|
Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) !==
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-components",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.2",
|
|
4
4
|
"description": "Empathy X Components",
|
|
5
5
|
"author": "Empathy Systems Corporation S.L.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -143,5 +143,5 @@
|
|
|
143
143
|
"access": "public",
|
|
144
144
|
"directory": "dist"
|
|
145
145
|
},
|
|
146
|
-
"gitHead": "
|
|
146
|
+
"gitHead": "b109d83a233670bee11ba7d29a8e81b5bb2a801c"
|
|
147
147
|
}
|