@empathyco/x-components 5.0.0-alpha.1 → 5.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/design-system/deprecated-full-theme.css +212 -212
  3. package/docs/API-reference/api/x-components.baseeventbutton.md +16 -17
  4. package/docs/API-reference/api/x-components.md +1 -1
  5. package/docs/API-reference/components/common/animations/x-components.staggering-transition-group.md +3 -3
  6. package/docs/API-reference/components/common/x-components.base-event-button.md +6 -6
  7. package/js/components/animations/animate-width.vue.js +1 -1
  8. package/js/components/animations/animate-width.vue.js.map +1 -1
  9. package/js/components/animations/animate-width.vue2.js +1 -0
  10. package/js/components/animations/animate-width.vue2.js.map +1 -1
  11. package/js/components/animations/animate-width.vue3.js +1 -1
  12. package/js/components/animations/fade.vue.js +1 -1
  13. package/js/components/animations/fade.vue.js.map +1 -1
  14. package/js/components/animations/fade.vue2.js +1 -3
  15. package/js/components/animations/fade.vue2.js.map +1 -1
  16. package/js/components/animations/fade.vue3.js +1 -1
  17. package/js/components/animations/staggering-transition-group.vue.js +1 -1
  18. package/js/components/animations/staggering-transition-group.vue.js.map +1 -1
  19. package/js/components/animations/staggering-transition-group.vue3.js +1 -1
  20. package/js/components/base-event-button.vue.js +5 -1
  21. package/js/components/base-event-button.vue.js.map +1 -1
  22. package/js/components/base-event-button.vue2.js +26 -17
  23. package/js/components/base-event-button.vue2.js.map +1 -1
  24. package/package.json +2 -2
  25. package/report/x-components.api.json +123 -90
  26. package/report/x-components.api.md +14 -5
  27. package/types/components/animations/animate-width.vue.d.ts.map +1 -1
  28. package/types/components/animations/fade.vue.d.ts +2 -6
  29. package/types/components/animations/fade.vue.d.ts.map +1 -1
  30. package/types/components/base-event-button.vue.d.ts +20 -13
  31. package/types/components/base-event-button.vue.d.ts.map +1 -1
  32. package/docs/API-reference/api/x-components.baseeventbutton.emitevents.md +0 -15
  33. package/docs/API-reference/api/x-components.baseeventbutton.events.md +0 -13
package/CHANGELOG.md CHANGED
@@ -3,6 +3,24 @@
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.3](https://github.com/empathyco/x/compare/@empathyco/x-components@5.0.0-alpha.2...@empathyco/x-components@5.0.0-alpha.3) (2024-05-01)
7
+
8
+
9
+ ### Code Refactoring
10
+
11
+ * **base-event-button:** migrate base-event-button component to Composition API (#1457) ([39a7a8e](https://github.com/empathyco/x/commit/39a7a8ed4767ae78d447e6ddca530c41f9f681dc))
12
+
13
+
14
+
15
+ ## [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)
16
+
17
+
18
+ ### Documentation
19
+
20
+ * fix typo (#1455) ([44eae35](https://github.com/empathyco/x/commit/44eae359b33f9642eb9af02701fd6a3295a2deb9))
21
+
22
+
23
+
6
24
  ## [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
25
 
8
26
 
@@ -1,22 +1,18 @@
1
1
 
2
- .x-underline {
3
- -webkit-text-decoration-line: underline;
4
- text-decoration-line: underline;
2
+ .x-uppercase {
3
+ text-transform: uppercase;
5
4
  }
6
5
 
7
- .x-overline {
8
- -webkit-text-decoration-line: overline;
9
- text-decoration-line: overline;
6
+ .x-lowercase {
7
+ text-transform: lowercase;
10
8
  }
11
9
 
12
- .x-line-through {
13
- -webkit-text-decoration-line: line-through;
14
- text-decoration-line: line-through;
10
+ .x-capitalize {
11
+ text-transform: capitalize;
15
12
  }
16
13
 
17
- .x-no-underline {
18
- -webkit-text-decoration-line: none;
19
- text-decoration-line: none;
14
+ .x-normal-case {
15
+ text-transform: none;
20
16
  }
21
17
  .x-static {
22
18
  position: static !important;
@@ -37,6 +33,26 @@
37
33
  .x-sticky {
38
34
  position: sticky !important;
39
35
  }
36
+ .x-underline {
37
+ -webkit-text-decoration-line: underline;
38
+ text-decoration-line: underline;
39
+ }
40
+
41
+ .x-overline {
42
+ -webkit-text-decoration-line: overline;
43
+ text-decoration-line: overline;
44
+ }
45
+
46
+ .x-line-through {
47
+ -webkit-text-decoration-line: line-through;
48
+ text-decoration-line: line-through;
49
+ }
50
+
51
+ .x-no-underline {
52
+ -webkit-text-decoration-line: none;
53
+ text-decoration-line: none;
54
+ }
55
+
40
56
  .x-padding--00 {
41
57
  padding: 0 !important;
42
58
  }
@@ -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,63 +3286,63 @@
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-text--stroke.x-text {
3318
- --x-string-text-decoration: line-through;
3319
- }
3320
- .x-text--stroke.x-title1 {
3321
- --x-string-text-decoration-title1: line-through;
3322
- }
3323
- .x-text--stroke.x-title2 {
3324
- --x-string-text-decoration-title2: line-through;
3325
- }
3326
- .x-text--stroke.x-title3 {
3327
- --x-string-text-decoration-title3: line-through;
3328
- }
3329
- .x-text--stroke.x-small {
3330
- --x-string-text-decoration-small: line-through;
3331
- }
3332
- .x-background--lead {
3333
- background-color: var(--x-color-base-lead) !important;
3289
+ .x-border-color--lead {
3290
+ border-color: var(--x-color-base-lead) !important;
3334
3291
  }
3335
3292
 
3336
- .x-background--auxiliary {
3337
- background-color: var(--x-color-base-auxiliary) !important;
3293
+ .x-border-color--auxiliary {
3294
+ border-color: var(--x-color-base-auxiliary) !important;
3338
3295
  }
3339
3296
 
3340
- .x-background--neutral-10 {
3341
- background-color: var(--x-color-base-neutral-10) !important;
3297
+ .x-border-color--neutral-10 {
3298
+ border-color: var(--x-color-base-neutral-10) !important;
3342
3299
  }
3343
3300
 
3344
- .x-background--neutral-35 {
3345
- background-color: var(--x-color-base-neutral-35) !important;
3301
+ .x-border-color--neutral-35 {
3302
+ border-color: var(--x-color-base-neutral-35) !important;
3346
3303
  }
3347
3304
 
3348
- .x-background--neutral-70 {
3349
- background-color: var(--x-color-base-neutral-70) !important;
3305
+ .x-border-color--neutral-70 {
3306
+ border-color: var(--x-color-base-neutral-70) !important;
3350
3307
  }
3351
3308
 
3352
- .x-background--neutral-95 {
3353
- background-color: var(--x-color-base-neutral-95) !important;
3309
+ .x-border-color--neutral-95 {
3310
+ border-color: var(--x-color-base-neutral-95) !important;
3354
3311
  }
3355
3312
 
3356
- .x-background--neutral-100 {
3357
- background-color: var(--x-color-base-neutral-100) !important;
3313
+ .x-border-color--neutral-100 {
3314
+ border-color: var(--x-color-base-neutral-100) !important;
3358
3315
  }
3359
3316
 
3360
- .x-background--accent {
3361
- background-color: var(--x-color-base-accent) !important;
3317
+ .x-border-color--accent {
3318
+ border-color: var(--x-color-base-accent) !important;
3362
3319
  }
3363
3320
 
3364
- .x-background--enable {
3365
- background-color: var(--x-color-base-enable) !important;
3321
+ .x-border-color--enable {
3322
+ border-color: var(--x-color-base-enable) !important;
3366
3323
  }
3367
3324
 
3368
- .x-background--disable {
3369
- background-color: var(--x-color-base-disable) !important;
3325
+ .x-border-color--disable {
3326
+ border-color: var(--x-color-base-disable) !important;
3370
3327
  }
3371
3328
 
3372
- .x-background--transparent {
3373
- background-color: var(--x-color-base-transparent) !important;
3329
+ .x-border-color--transparent {
3330
+ border-color: var(--x-color-base-transparent) !important;
3331
+ }
3332
+ .x-text--stroke.x-text {
3333
+ --x-string-text-decoration: line-through;
3334
+ }
3335
+ .x-text--stroke.x-title1 {
3336
+ --x-string-text-decoration-title1: line-through;
3337
+ }
3338
+ .x-text--stroke.x-title2 {
3339
+ --x-string-text-decoration-title2: line-through;
3340
+ }
3341
+ .x-text--stroke.x-title3 {
3342
+ --x-string-text-decoration-title3: line-through;
3343
+ }
3344
+ .x-text--stroke.x-small {
3345
+ --x-string-text-decoration-small: line-through;
3374
3346
  }
3375
3347
  :root {
3376
3348
  --x-color-text-secondary: var(--x-color-base-neutral-35);
@@ -3433,6 +3405,108 @@
3433
3405
  --x-size-line-height-small: var(--x-size-line-height-base-s);
3434
3406
  --x-string-text-decoration-small: none;
3435
3407
  }
3408
+ :root {
3409
+ --x-font-family-base: "Montserrat", sans-serif;
3410
+ --x-size-font-base-xs: 12px;
3411
+ --x-size-font-base-s: 14px;
3412
+ --x-size-font-base-m: 16px;
3413
+ --x-size-font-base-l: 18px;
3414
+ --x-size-font-base-xl: 32px;
3415
+ --x-number-font-weight-base-light: 300;
3416
+ --x-number-font-weight-base-regular: 400;
3417
+ --x-number-font-weight-base-bold: 600;
3418
+ --x-size-line-height-base-s: 16px;
3419
+ --x-size-line-height-base-m: 24px;
3420
+ --x-size-line-height-base-l: 32px;
3421
+ --x-color-text-default: var(--x-color-base-neutral-10);
3422
+ --x-font-family-text: var(--x-font-family-base);
3423
+ --x-size-font-text: var(--x-size-font-base-s);
3424
+ --x-number-font-weight-text: var(--x-number-font-weight-base-regular);
3425
+ --x-size-line-height-text: var(--x-size-line-height-base-s);
3426
+ --x-string-text-decoration-text: none;
3427
+ --x-font-family-title1: var(--x-font-family-base);
3428
+ --x-size-font-title1: var(--x-size-font-base-xl);
3429
+ --x-number-font-weight-title1: var(--x-number-font-weight-base-regular);
3430
+ --x-size-line-height-title1: var(--x-size-line-height-base-l);
3431
+ --x-string-text-decoration-title1: none;
3432
+ --x-font-family-title2: var(--x-font-family-base);
3433
+ --x-size-font-title2: var(--x-size-font-base-l);
3434
+ --x-number-font-weight-title2: var(--x-number-font-weight-base-regular);
3435
+ --x-size-line-height-title2: var(--x-size-line-height-base-m);
3436
+ --x-string-text-decoration-title2: none;
3437
+ --x-font-family-title3: var(--x-font-family-base);
3438
+ --x-size-font-title3: var(--x-size-font-base-m);
3439
+ --x-number-font-weight-title3: var(--x-number-font-weight-base-regular);
3440
+ --x-size-line-height-title3: var(--x-size-line-height-base-m);
3441
+ --x-string-text-decoration-title3: none;
3442
+ --x-font-family-small: var(--x-font-family-base);
3443
+ --x-size-font-small: var(--x-size-font-base-xs);
3444
+ --x-number-font-weight-small: var(--x-number-font-weight-base-regular);
3445
+ --x-size-line-height-small: var(--x-size-line-height-base-s);
3446
+ --x-string-text-decoration-small: none;
3447
+ }
3448
+
3449
+ .x,
3450
+ .x-text {
3451
+ font-family: var(--x-font-family-text);
3452
+ font-size: var(--x-size-font-text);
3453
+ font-weight: var(--x-number-font-weight-text);
3454
+ line-height: var(--x-size-line-height-text);
3455
+ -webkit-text-decoration: var(--x-string-text-decoration);
3456
+ text-decoration: var(--x-string-text-decoration);
3457
+ color: var(--x-color-text-default);
3458
+ margin: 0;
3459
+ }
3460
+
3461
+ .x-title1 {
3462
+ font-family: var(--x-font-family-title1);
3463
+ font-size: var(--x-size-font-title1);
3464
+ font-weight: var(--x-number-font-weight-title1);
3465
+ line-height: var(--x-size-line-height-title1);
3466
+ -webkit-text-decoration: var(--x-string-text-decoration-title1);
3467
+ text-decoration: var(--x-string-text-decoration-title1);
3468
+ color: var(--x-color-text-default);
3469
+ margin: 0;
3470
+ }
3471
+
3472
+ .x-title2 {
3473
+ font-family: var(--x-font-family-title2);
3474
+ font-size: var(--x-size-font-title2);
3475
+ font-weight: var(--x-number-font-weight-title2);
3476
+ line-height: var(--x-size-line-height-title2);
3477
+ -webkit-text-decoration: var(--x-string-text-decoration-title2);
3478
+ text-decoration: var(--x-string-text-decoration-title2);
3479
+ color: var(--x-color-text-default);
3480
+ margin: 0;
3481
+ }
3482
+
3483
+ .x-title3 {
3484
+ font-family: var(--x-font-family-title3);
3485
+ font-size: var(--x-size-font-title3);
3486
+ font-weight: var(--x-number-font-weight-title3);
3487
+ line-height: var(--x-size-line-height-title3);
3488
+ -webkit-text-decoration: var(--x-string-text-decoration-title3);
3489
+ text-decoration: var(--x-string-text-decoration-title3);
3490
+ color: var(--x-color-text-default);
3491
+ margin: 0;
3492
+ }
3493
+
3494
+ .x-small {
3495
+ font-family: var(--x-font-family-small);
3496
+ font-size: var(--x-size-font-small);
3497
+ font-weight: var(--x-number-font-weight-small);
3498
+ line-height: var(--x-size-line-height-small);
3499
+ -webkit-text-decoration: var(--x-string-text-decoration-small);
3500
+ text-decoration: var(--x-string-text-decoration-small);
3501
+ color: var(--x-color-text-default);
3502
+ margin: 0;
3503
+ }
3504
+
3505
+ .x-ellipsis {
3506
+ text-overflow: ellipsis;
3507
+ overflow: hidden;
3508
+ white-space: nowrap;
3509
+ }
3436
3510
  .x-text--bold.x-text {
3437
3511
  --x-number-font-weight-text: var(--x-number-font-weight-base-bold);
3438
3512
  }
@@ -7535,14 +7609,6 @@
7535
7609
  --x-size-border-width-bottom-facet-header-line: var(--x-size-border-width-facet-header-line);
7536
7610
  --x-size-border-width-left-facet-header-line: 0;
7537
7611
  }
7538
- :root {
7539
- --x-color-border-facet-header-line: var(--x-color-base-neutral-10);
7540
- --x-size-border-width-facet-header-line: var(--x-size-border-width-base);
7541
- --x-size-border-width-top-facet-header-line: 0;
7542
- --x-size-border-width-right-facet-header-line: 0;
7543
- --x-size-border-width-bottom-facet-header-line: var(--x-size-border-width-facet-header-line);
7544
- --x-size-border-width-left-facet-header-line: 0;
7545
- }
7546
7612
 
7547
7613
  .x-facet--line.x-facet,
7548
7614
  .x-facet--line .x-facet {
@@ -7559,6 +7625,14 @@
7559
7625
  --x-size-border-width-left-facet-header-line
7560
7626
  );
7561
7627
  }
7628
+ :root {
7629
+ --x-color-border-facet-header-line: var(--x-color-base-neutral-10);
7630
+ --x-size-border-width-facet-header-line: var(--x-size-border-width-base);
7631
+ --x-size-border-width-top-facet-header-line: 0;
7632
+ --x-size-border-width-right-facet-header-line: 0;
7633
+ --x-size-border-width-bottom-facet-header-line: var(--x-size-border-width-facet-header-line);
7634
+ --x-size-border-width-left-facet-header-line: 0;
7635
+ }
7562
7636
  :root {
7563
7637
  --x-color-background-facet-default: transparent;
7564
7638
  --x-color-border-facet-default: var(--x-color-background-facet-default);
@@ -8465,11 +8539,6 @@
8465
8539
  --x-color-border-button-ghost: transparent;
8466
8540
  --x-color-text-button-ghost: var(--x-color-base-lead);
8467
8541
  }
8468
- :root {
8469
- --x-color-background-button-ghost: transparent;
8470
- --x-color-border-button-ghost: transparent;
8471
- --x-color-text-button-ghost: var(--x-color-base-lead);
8472
- }
8473
8542
 
8474
8543
  .x-button--ghost.x-button,
8475
8544
  .x-button--ghost .x-button {
@@ -8487,6 +8556,11 @@
8487
8556
  .x-button--ghost.x-button--ghost-end .x-button {
8488
8557
  --x-size-padding-right-button-default: 0;
8489
8558
  }
8559
+ :root {
8560
+ --x-color-background-button-ghost: transparent;
8561
+ --x-color-border-button-ghost: transparent;
8562
+ --x-color-text-button-ghost: var(--x-color-base-lead);
8563
+ }
8490
8564
  :root {
8491
8565
  --x-color-background-button-default: var(--x-color-base-lead);
8492
8566
  --x-color-border-button-default: var(--x-color-background-button-default);
@@ -8725,120 +8799,46 @@
8725
8799
  --x-size-border-radius-base-pill: 99999px;
8726
8800
  --x-size-border-width-base: 1px;
8727
8801
  }
8728
- .x-uppercase {
8729
- text-transform: uppercase;
8802
+ .x-background--lead {
8803
+ background-color: var(--x-color-base-lead) !important;
8730
8804
  }
8731
8805
 
8732
- .x-lowercase {
8733
- text-transform: lowercase;
8806
+ .x-background--auxiliary {
8807
+ background-color: var(--x-color-base-auxiliary) !important;
8734
8808
  }
8735
8809
 
8736
- .x-capitalize {
8737
- text-transform: capitalize;
8810
+ .x-background--neutral-10 {
8811
+ background-color: var(--x-color-base-neutral-10) !important;
8738
8812
  }
8739
8813
 
8740
- .x-normal-case {
8741
- text-transform: none;
8814
+ .x-background--neutral-35 {
8815
+ background-color: var(--x-color-base-neutral-35) !important;
8742
8816
  }
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;
8817
+
8818
+ .x-background--neutral-70 {
8819
+ background-color: var(--x-color-base-neutral-70) !important;
8782
8820
  }
8783
8821
 
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;
8822
+ .x-background--neutral-95 {
8823
+ background-color: var(--x-color-base-neutral-95) !important;
8794
8824
  }
8795
8825
 
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;
8826
+ .x-background--neutral-100 {
8827
+ background-color: var(--x-color-base-neutral-100) !important;
8805
8828
  }
8806
8829
 
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;
8830
+ .x-background--accent {
8831
+ background-color: var(--x-color-base-accent) !important;
8816
8832
  }
8817
8833
 
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;
8834
+ .x-background--enable {
8835
+ background-color: var(--x-color-base-enable) !important;
8827
8836
  }
8828
8837
 
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
+ .x-background--disable {
8839
+ background-color: var(--x-color-base-disable) !important;
8838
8840
  }
8839
8841
 
8840
- .x-ellipsis {
8841
- text-overflow: ellipsis;
8842
- overflow: hidden;
8843
- white-space: nowrap;
8842
+ .x-background--transparent {
8843
+ background-color: var(--x-color-base-transparent) !important;
8844
8844
  }
@@ -2,26 +2,25 @@
2
2
 
3
3
  [Home](./index.md) > [@empathyco/x-components](./x-components.md) > [BaseEventButton](./x-components.baseeventbutton.md)
4
4
 
5
- ## BaseEventButton class
5
+ ## BaseEventButton variable
6
6
 
7
- Component to be reused that renders a `<button>` with the logic of emitting events to the bus on click. The events are passed as an object to prop [XEventsTypes](./x-components.xeventstypes.md)<!-- -->. The keys are the event name and the values are the payload of each event. All events are emitted with its respective payload. If any event doesn't need payload a `undefined` must be passed as value.
7
+ Component to be reused that renders a `<button>` with the logic of emitting events to the bus on click. The events are passed as an object to prop [XEvent](./x-components.xevent.md)<!-- -->. The keys are the event name and the values are the payload of each event. All events are emitted with its respective payload. If any event doesn't need payload a `undefined` must be passed as value.
8
8
 
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export default class BaseEventButton extends Vue
12
+ _default: import("vue").DefineComponent<{
13
+ events: {
14
+ type: PropType<Partial<XEventsTypes>>;
15
+ required: true;
16
+ };
17
+ }, {
18
+ emitEvents: () => void;
19
+ rootRef: import("vue").Ref<HTMLButtonElement | undefined>;
20
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
21
+ events: {
22
+ type: PropType<Partial<XEventsTypes>>;
23
+ required: true;
24
+ };
25
+ }>>, {}>
13
26
  ```
14
- **Extends:** Vue
15
-
16
- ## Properties
17
-
18
- | Property | Modifiers | Type | Description |
19
- | --- | --- | --- | --- |
20
- | [events](./x-components.baseeventbutton.events.md) | <code>protected</code> | Partial&lt;[XEventsTypes](./x-components.xeventstypes.md)<!-- -->&gt; | (Required) A object where the keys are the [XEvent](./x-components.xevent.md) and the values are the payload of each event. |
21
-
22
- ## Methods
23
-
24
- | Method | Modifiers | Description |
25
- | --- | --- | --- |
26
- | [emitEvents()](./x-components.baseeventbutton.emitevents.md) | <code>protected</code> | |
27
-
@@ -16,7 +16,6 @@ X-Components is a library usable everywhere not only for search experiences.
16
16
  | [BannersList](./x-components.bannerslist.md) | <p>It renders a [ItemsList](./x-components.itemslist.md) list of banners from [SearchState.banners](./x-components.searchstate.banners.md) by default using the <code>ItemsInjectionMixin</code>.</p><p>The component provides a default slot which wraps the whole component with the <code>banners</code> plus the <code>searchInjectedItems</code> which also contains the injected list items from the ancestor.</p><p>It also provides the parent slots to customize the items.</p> |
17
17
  | [BaseColumnPickerDropdown](./x-components.basecolumnpickerdropdown.md) | <p>Column picker dropdown component renders [BaseDropdown](./x-components.basedropdown.md) component which options are the different columns you can set for a grid.</p><p>It emits [XEventsTypes.UserClickedColumnPicker](./x-components.xeventstypes.userclickedcolumnpicker.md) on dropdown input.</p> |
18
18
  | [BaseColumnPickerList](./x-components.basecolumnpickerlist.md) | <p>Column picker list component renders a list of buttons to choose the columns number.</p><p>Additionally, this component exposes the following props to modify the classes of the elements: <code>buttonClass</code>.</p> |
19
- | [BaseEventButton](./x-components.baseeventbutton.md) | Component to be reused that renders a <code>&lt;button&gt;</code> with the logic of emitting events to the bus on click. The events are passed as an object to prop [XEventsTypes](./x-components.xeventstypes.md)<!-- -->. The keys are the event name and the values are the payload of each event. All events are emitted with its respective payload. If any event doesn't need payload a <code>undefined</code> must be passed as value. |
20
19
  | [BaseEventsModal](./x-components.baseeventsmodal.md) | Component containing a modal that emits a [XEventsTypes.UserClickedCloseEventsModal](./x-components.xeventstypes.userclickedcloseeventsmodal.md) when clicking outside the content rendered in the default slot and can receive, through the eventsToCloseModal prop, a list of [XEvent](./x-components.xevent.md) to listen to in order to close also the modal, eventsToOpenModal prop, another list of [XEvent](./x-components.xevent.md) to customize the events to listen to open the modal and a prop, displayOverlay, to display an overlay over the rest of the html. The default slot offers the possibility to customize the modal content. |
21
20
  | [BaseHeaderTogglePanel](./x-components.baseheadertogglepanel.md) | Toggle panel which uses the base toggle panel, adds a header and manage the open / close state of the panel. |
22
21
  | [BaseIdModal](./x-components.baseidmodal.md) | Component containing a modal expecting a required prop, named <code>modalId</code>. It reacts to <code>UserClickedOpenModal</code>, <code>UserClickedCloseModal</code> and <code>UserClickedOutOfModal</code> events, when their payload matches the component's 'modalId' prop, to handle its open/close state. The default slot offers the possibility to customise the modal content. |
@@ -393,6 +392,7 @@ X-Components is a library usable everywhere not only for search experiences.
393
392
  | [BaseAddToCart](./x-components.baseaddtocart.md) | Renders a button with a default slot. It receives the result with the data and emits [XEventsTypes.UserClickedResultAddToCart](./x-components.xeventstypes.userclickedresultaddtocart.md) to the bus on click mouse event. |
394
393
  | [BaseCurrency](./x-components.basecurrency.md) | <p>Renders the value received as a property which always must be a JavaScript number, with the proper format provided as a string property or by injection. The rendered tag is a span in order to render a default inline HTML element.</p><p>Regarding the format or mask to be defined as string: - Use 'i' to define integer numbers. - Use 'd' to define decimal numbers. You can define the length of the decimal part. If the format doesn't include decimals, it is filled with zeros until reach the length defined with 'd's. - Integer separator must be defined between the 3rd and the 4th integer 'i' of a group. - Decimal separator must be defined between the last 'i' and the first 'd'. It can be more than one character. - If you want to hide the decimal part if it's zero, you can add the <code>?</code> symbol after the decimal characters (e.g. 'i.iii,dd?', for <code>1234</code> you would get <code>1.234</code> instead of <code>1.234,00</code>). - Set whatever you need around the integers and decimals marks. - Default mask: 'i.iii,dd' which returns '1.345,67'.</p> |
395
394
  | [BaseDropdown](./x-components.basedropdown.md) | Dropdown component that mimics a Select element behavior, but with the option to customize the toggle button and each item contents. |
395
+ | [BaseEventButton](./x-components.baseeventbutton.md) | Component to be reused that renders a <code>&lt;button&gt;</code> with the logic of emitting events to the bus on click. The events are passed as an object to prop [XEvent](./x-components.xevent.md)<!-- -->. The keys are the event name and the values are the payload of each event. All events are emitted with its respective payload. If any event doesn't need payload a <code>undefined</code> must be passed as value. |
396
396
  | [BaseEventsModalClose](./x-components.baseeventsmodalclose.md) | Component contains an event button that emits [XEventsTypes.UserClickedCloseEventsModal](./x-components.xeventstypes.userclickedcloseeventsmodal.md) when clicked. It has a default slot to customize its contents. |
397
397
  | [BaseEventsModalOpen](./x-components.baseeventsmodalopen.md) | Component contains an event button that emits [XEventsTypes.UserClickedOpenEventsModal](./x-components.xeventstypes.userclickedopeneventsmodal.md) when clicked. It has a default slot to customize its contents. |
398
398
  | [BaseFallbackImage](./x-components.basefallbackimage.md) | |
@@ -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 `stagger` property, which allows to configure the delay for each one of the
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 :stagger="50" name="staggered-fade-slide-">
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>
@@ -7,15 +7,15 @@ title: BaseEventButton
7
7
  # BaseEventButton
8
8
 
9
9
  Component to be reused that renders a `<button>` with the logic of emitting events to the bus on
10
- click. The events are passed as an object to prop XEventsTypes. The keys are the event name and the
11
- values are the payload of each event. All events are emitted with its respective payload. If any
12
- event doesn't need payload a `undefined` must be passed as value.
10
+ click. The events are passed as an object to prop XEvent. The keys are the event name and the values
11
+ are the payload of each event. All events are emitted with its respective payload. If any event
12
+ doesn't need payload a `undefined` must be passed as value.
13
13
 
14
14
  ## Props
15
15
 
16
- | Name | Description | Type | Default |
17
- | ------------------- | ---------------------------------------------------------------------------------------------------- | -------------------- | ------------- |
18
- | <code>events</code> | (Required) A object where the keys are the XEvent and the values<br />are the payload of each event. | <code>Partial</code> | <code></code> |
16
+ | Name | Description | Type | Default |
17
+ | ------------------- | ----------------------------------------------------------------------- | ---------------------------------- | ------------- |
18
+ | <code>events</code> | An object where the keys are the XEvent and the values are the payload. | <code>Partial<XEventsTypes></code> | <code></code> |
19
19
 
20
20
  ## Slots
21
21