@empathyco/x-components 4.1.0-alpha.20 → 4.1.0-alpha.21

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 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
+ ## [4.1.0-alpha.21](https://github.com/empathyco/x/compare/@empathyco/x-components@4.1.0-alpha.20...@empathyco/x-components@4.1.0-alpha.21) (2024-02-20)
7
+
8
+
9
+ ### Features
10
+
11
+ * migrate base-switch to use defineComponent sintax (#1415) ([0592ec9](https://github.com/empathyco/x/commit/0592ec94f7f47c91946d0e3a465dde134dd12021))
12
+
13
+
14
+
6
15
  ## [4.1.0-alpha.20](https://github.com/empathyco/x/compare/@empathyco/x-components@4.1.0-alpha.19...@empathyco/x-components@4.1.0-alpha.20) (2024-02-20)
7
16
 
8
17
 
@@ -494,29 +494,6 @@
494
494
  [dir="rtl"] .x-padding--left-20 {
495
495
  padding-right: var(--x-size-base-20) !important;
496
496
  }
497
- .x-line-height--none {
498
- line-height: 1 !important;
499
- }
500
-
501
- .x-line-height--tight {
502
- line-height: 1.25 !important;
503
- }
504
-
505
- .x-line-height--snug {
506
- line-height: 1.375 !important;
507
- }
508
-
509
- .x-line-height--normal {
510
- line-height: 1.5 !important;
511
- }
512
-
513
- .x-line-height--relaxed {
514
- line-height: 1.625 !important;
515
- }
516
-
517
- .x-line-height--loose {
518
- line-height: 2 !important;
519
- }
520
497
  .x-margin--auto {
521
498
  margin: auto !important;
522
499
  }
@@ -979,6 +956,29 @@
979
956
  [dir="rtl"] .x-margin--left-20 {
980
957
  margin-right: var(--x-size-base-20) !important;
981
958
  }
959
+ .x-line-height--none {
960
+ line-height: 1 !important;
961
+ }
962
+
963
+ .x-line-height--tight {
964
+ line-height: 1.25 !important;
965
+ }
966
+
967
+ .x-line-height--snug {
968
+ line-height: 1.375 !important;
969
+ }
970
+
971
+ .x-line-height--normal {
972
+ line-height: 1.5 !important;
973
+ }
974
+
975
+ .x-line-height--relaxed {
976
+ line-height: 1.625 !important;
977
+ }
978
+
979
+ .x-line-height--loose {
980
+ line-height: 2 !important;
981
+ }
982
982
  .x-line-clamp--2 {
983
983
  overflow: hidden !important;
984
984
  display: -webkit-box !important;
@@ -3578,18 +3578,6 @@
3578
3578
  --x-size-border-radius-bottom-right-tag-pill: var(--x-size-border-radius-tag-pill);
3579
3579
  --x-size-border-radius-bottom-left-tag-pill: var(--x-size-border-radius-tag-pill);
3580
3580
  }
3581
- :root {
3582
- --x-color-background-tag-ghost: transparent;
3583
- --x-color-border-tag-ghost: transparent;
3584
- --x-color-background-tag-selected-ghost: transparent;
3585
- --x-color-border-tag-selected-ghost: transparent;
3586
- --x-color-background-tag-curated-ghost: transparent;
3587
- --x-color-border-tag-curated-ghost: transparent;
3588
- --x-color-background-tag-curated-selected-ghost: transparent;
3589
- --x-color-border-tag-curated-selected-ghost: transparent;
3590
- --x-number-font-weight-tag-selected-ghost: var(--x-number-font-weight-base-bold);
3591
- --x-number-font-weight-tag-curated-selected-ghost: var(--x-number-font-weight-base-bold);
3592
- }
3593
3581
  :root {
3594
3582
  --x-size-border-radius-tag-pill: var(--x-size-border-radius-base-pill);
3595
3583
  --x-size-border-radius-top-left-tag-pill: var(--x-size-border-radius-tag-pill);
@@ -3620,6 +3608,18 @@
3620
3608
  --x-number-font-weight-tag-selected-ghost: var(--x-number-font-weight-base-bold);
3621
3609
  --x-number-font-weight-tag-curated-selected-ghost: var(--x-number-font-weight-base-bold);
3622
3610
  }
3611
+ :root {
3612
+ --x-color-background-tag-ghost: transparent;
3613
+ --x-color-border-tag-ghost: transparent;
3614
+ --x-color-background-tag-selected-ghost: transparent;
3615
+ --x-color-border-tag-selected-ghost: transparent;
3616
+ --x-color-background-tag-curated-ghost: transparent;
3617
+ --x-color-border-tag-curated-ghost: transparent;
3618
+ --x-color-background-tag-curated-selected-ghost: transparent;
3619
+ --x-color-border-tag-curated-selected-ghost: transparent;
3620
+ --x-number-font-weight-tag-selected-ghost: var(--x-number-font-weight-base-bold);
3621
+ --x-number-font-weight-tag-curated-selected-ghost: var(--x-number-font-weight-base-bold);
3622
+ }
3623
3623
 
3624
3624
  .x-tag--ghost.x-tag,
3625
3625
  .x-tag--ghost .x-tag {
@@ -4677,6 +4677,14 @@
4677
4677
  --x-size-span-row-item: 1;
4678
4678
  --x-size-start-row-item: 0;
4679
4679
  }
4680
+ :root {
4681
+ --x-size-gap-row: 0;
4682
+ --x-size-padding-row: 0;
4683
+ --x-size-justify-row: stretch;
4684
+ --x-size-align-row: center;
4685
+ --x-size-span-row-item: 1;
4686
+ --x-size-start-row-item: 0;
4687
+ }
4680
4688
 
4681
4689
  .x-row {
4682
4690
  display: grid;
@@ -4797,14 +4805,6 @@
4797
4805
  .x-row--align-stretch {
4798
4806
  --x-size-align-row: stretch;
4799
4807
  }
4800
- :root {
4801
- --x-size-gap-row: 0;
4802
- --x-size-padding-row: 0;
4803
- --x-size-justify-row: stretch;
4804
- --x-size-align-row: center;
4805
- --x-size-span-row-item: 1;
4806
- --x-size-start-row-item: 0;
4807
- }
4808
4808
  :root {
4809
4809
  --x-color-border-result-default: var(--x-color-base-lead);
4810
4810
  --x-color-border-result-overlay-default: var(--x-color-border-result-default);
@@ -5093,6 +5093,21 @@
5093
5093
  --x-size-border-radius-bottom-picture-card: var(--x-size-border-radius-picture-card);
5094
5094
  --x-size-border-radius-left-picture-card: var(--x-size-border-radius-picture-card);
5095
5095
  }
5096
+ :root {
5097
+ --x-size-border-radius-picture-card: var(--x-size-border-radius-base-s);
5098
+ --x-size-border-radius-top-picture-card: var(--x-size-border-radius-picture-card);
5099
+ --x-size-border-radius-right-picture-card: var(--x-size-border-radius-picture-card);
5100
+ --x-size-border-radius-bottom-picture-card: var(--x-size-border-radius-picture-card);
5101
+ --x-size-border-radius-left-picture-card: var(--x-size-border-radius-picture-card);
5102
+ }
5103
+
5104
+ .x-picture--card.x-picture {
5105
+ --x-size-border-radius-picture-default: var(--x-size-border-radius-picture-card);
5106
+ --x-size-border-radius-top-picture-default: var(--x-size-border-radius-top-picture-card);
5107
+ --x-size-border-radius-right-picture-default: var(--x-size-border-radius-right-picture-card);
5108
+ --x-size-border-radius-bottom-picture-default: var(--x-size-border-radius-bottom-picture-card);
5109
+ --x-size-border-radius-left-picture-default: var(--x-size-border-radius-left-picture-card);
5110
+ }
5096
5111
  :root {
5097
5112
  --x-color-background-option-list-button-default: transparent;
5098
5113
  --x-color-border-option-list-button-default: transparent;
@@ -5173,21 +5188,6 @@
5173
5188
  --x-number-font-weight-option-list-button-default: var(--x-number-font-weight-base-regular);
5174
5189
  --x-number-font-weight-option-list-button-default-selected: var(--x-number-font-weight-base-bold);
5175
5190
  }
5176
- :root {
5177
- --x-size-border-radius-picture-card: var(--x-size-border-radius-base-s);
5178
- --x-size-border-radius-top-picture-card: var(--x-size-border-radius-picture-card);
5179
- --x-size-border-radius-right-picture-card: var(--x-size-border-radius-picture-card);
5180
- --x-size-border-radius-bottom-picture-card: var(--x-size-border-radius-picture-card);
5181
- --x-size-border-radius-left-picture-card: var(--x-size-border-radius-picture-card);
5182
- }
5183
-
5184
- .x-picture--card.x-picture {
5185
- --x-size-border-radius-picture-default: var(--x-size-border-radius-picture-card);
5186
- --x-size-border-radius-top-picture-default: var(--x-size-border-radius-top-picture-card);
5187
- --x-size-border-radius-right-picture-default: var(--x-size-border-radius-right-picture-card);
5188
- --x-size-border-radius-bottom-picture-default: var(--x-size-border-radius-bottom-picture-card);
5189
- --x-size-border-radius-left-picture-default: var(--x-size-border-radius-left-picture-card);
5190
- }
5191
5191
  :root {
5192
5192
  --x-color-background-option-list-button-default: transparent;
5193
5193
  --x-color-border-option-list-button-default: transparent;
@@ -5560,6 +5560,15 @@
5560
5560
  --x-modal-overlay-color: rgb(0, 0, 0);
5561
5561
  --x-modal-overlay-opacity: 0.7;
5562
5562
  }
5563
+ :root {
5564
+ --x-modal-overlay-color: rgb(0, 0, 0);
5565
+ --x-modal-overlay-opacity: 0.7;
5566
+ }
5567
+
5568
+ .x-modal__overlay {
5569
+ background-color: var(--x-modal-overlay-color) !important;
5570
+ opacity: var(--x-modal-overlay-opacity) !important;
5571
+ }
5563
5572
  :root {
5564
5573
  --x-string-justify-message-default: center;
5565
5574
  --x-size-gap-message-default: var(--x-size-base-03);
@@ -6717,6 +6726,32 @@
6717
6726
  );
6718
6727
  --x-size-border-radius-bottom-left-input-group-pill: var(--x-size-border-radius-input-group-pill);
6719
6728
  }
6729
+ :root {
6730
+ --x-size-border-radius-input-group-pill: var(--x-size-border-radius-base-pill);
6731
+ --x-size-border-radius-top-left-input-group-pill: var(--x-size-border-radius-input-group-pill);
6732
+ --x-size-border-radius-top-right-input-group-pill: var(--x-size-border-radius-input-group-pill);
6733
+ --x-size-border-radius-bottom-right-input-group-pill: var(
6734
+ --x-size-border-radius-input-group-pill
6735
+ );
6736
+ --x-size-border-radius-bottom-left-input-group-pill: var(--x-size-border-radius-input-group-pill);
6737
+ }
6738
+
6739
+ .x-input-group--pill.x-input-group,
6740
+ .x-input-group--pill .x-input-group {
6741
+ --x-size-border-radius-input-group-default: var(--x-size-border-radius-input-group-pill);
6742
+ --x-size-border-radius-top-left-input-group-default: var(
6743
+ --x-size-border-radius-top-left-input-group-pill
6744
+ );
6745
+ --x-size-border-radius-top-right-input-group-default: var(
6746
+ --x-size-border-radius-top-right-input-group-pill
6747
+ );
6748
+ --x-size-border-radius-bottom-right-input-group-default: var(
6749
+ --x-size-border-radius-bottom-right-input-group-pill
6750
+ );
6751
+ --x-size-border-radius-bottom-left-input-group-default: var(
6752
+ --x-size-border-radius-bottom-left-input-group-pill
6753
+ );
6754
+ }
6720
6755
  :root {
6721
6756
  --x-size-padding-left-input-group-line: 0;
6722
6757
  --x-size-padding-right-input-group-line: 0;
@@ -7071,32 +7106,6 @@
7071
7106
  --x-size-border-width-bottom-input-line: var(--x-size-border-width-base);
7072
7107
  --x-size-border-width-left-input-line: 0;
7073
7108
  }
7074
- :root {
7075
- --x-size-border-radius-input-group-pill: var(--x-size-border-radius-base-pill);
7076
- --x-size-border-radius-top-left-input-group-pill: var(--x-size-border-radius-input-group-pill);
7077
- --x-size-border-radius-top-right-input-group-pill: var(--x-size-border-radius-input-group-pill);
7078
- --x-size-border-radius-bottom-right-input-group-pill: var(
7079
- --x-size-border-radius-input-group-pill
7080
- );
7081
- --x-size-border-radius-bottom-left-input-group-pill: var(--x-size-border-radius-input-group-pill);
7082
- }
7083
-
7084
- .x-input-group--pill.x-input-group,
7085
- .x-input-group--pill .x-input-group {
7086
- --x-size-border-radius-input-group-default: var(--x-size-border-radius-input-group-pill);
7087
- --x-size-border-radius-top-left-input-group-default: var(
7088
- --x-size-border-radius-top-left-input-group-pill
7089
- );
7090
- --x-size-border-radius-top-right-input-group-default: var(
7091
- --x-size-border-radius-top-right-input-group-pill
7092
- );
7093
- --x-size-border-radius-bottom-right-input-group-default: var(
7094
- --x-size-border-radius-bottom-right-input-group-pill
7095
- );
7096
- --x-size-border-radius-bottom-left-input-group-default: var(
7097
- --x-size-border-radius-bottom-left-input-group-pill
7098
- );
7099
- }
7100
7109
  :root {
7101
7110
  --x-size-padding-top-input-line: var(--x-size-base-03);
7102
7111
  --x-size-padding-right-input-line: 0;
@@ -7286,6 +7295,10 @@
7286
7295
  --x-size-width-icon-xl: var(--x-size-base-07);
7287
7296
  --x-size-height-icon-xl: var(--x-size-base-07);
7288
7297
  }
7298
+ :root {
7299
+ --x-size-width-icon-xl: var(--x-size-base-07);
7300
+ --x-size-height-icon-xl: var(--x-size-base-07);
7301
+ }
7289
7302
 
7290
7303
  .x-icon--xl {
7291
7304
  --x-size-width-icon-default: var(--x-size-width-icon-xl);
@@ -7295,10 +7308,6 @@
7295
7308
  --x-size-width-icon-s: var(--x-size-base-03);
7296
7309
  --x-size-height-icon-s: var(--x-size-base-03);
7297
7310
  }
7298
- :root {
7299
- --x-size-width-icon-xl: var(--x-size-base-07);
7300
- --x-size-height-icon-xl: var(--x-size-base-07);
7301
- }
7302
7311
  :root {
7303
7312
  --x-size-width-icon-s: var(--x-size-base-03);
7304
7313
  --x-size-height-icon-s: var(--x-size-base-03);
@@ -7312,6 +7321,10 @@
7312
7321
  --x-size-width-icon-m: var(--x-size-base-05);
7313
7322
  --x-size-height-icon-m: var(--x-size-base-05);
7314
7323
  }
7324
+ :root {
7325
+ --x-size-width-icon-m: var(--x-size-base-05);
7326
+ --x-size-height-icon-m: var(--x-size-base-05);
7327
+ }
7315
7328
 
7316
7329
  .x-icon--m {
7317
7330
  --x-size-width-icon-default: var(--x-size-width-icon-m);
@@ -7331,8 +7344,13 @@
7331
7344
  --x-size-height-icon-default: var(--x-size-height-icon-l);
7332
7345
  }
7333
7346
  :root {
7334
- --x-size-width-icon-m: var(--x-size-base-05);
7335
- --x-size-height-icon-m: var(--x-size-base-05);
7347
+ --x-color-stroke-icon-default: currentColor;
7348
+ --x-color-fill-icon-default: none;
7349
+ --x-size-width-icon-default: var(--x-size-width-icon-m);
7350
+ --x-size-height-icon-default: var(--x-size-height-icon-m);
7351
+ --x-string-stroke-linecap-icon-default: butt;
7352
+ --x-string-stroke-linejoin-icon-default: mitter;
7353
+ --x-size-stroke-width-icon-default: 1px;
7336
7354
  }
7337
7355
  :root {
7338
7356
  --x-color-stroke-icon-default: currentColor;
@@ -7343,6 +7361,27 @@
7343
7361
  --x-string-stroke-linejoin-icon-default: mitter;
7344
7362
  --x-size-stroke-width-icon-default: 1px;
7345
7363
  }
7364
+
7365
+ .x-icon {
7366
+ stroke: var(--x-color-stroke-icon-default);
7367
+ fill: var(--x-color-fill-icon-default);
7368
+ display: inline-flex;
7369
+ justify-content: center;
7370
+ align-items: center;
7371
+ flex: 0 0 auto;
7372
+ vertical-align: middle;
7373
+ line-height: var(--x-size-height-icon-default);
7374
+ width: var(--x-size-width-icon-default);
7375
+ height: var(--x-size-height-icon-default);
7376
+ font-size: var(--x-size-height-icon-default);
7377
+ stroke-linecap: var(--x-string-stroke-linecap-icon-default);
7378
+ stroke-linejoin: var(--x-string-stroke-linejoin-icon-default);
7379
+ stroke-width: var(--x-size-stroke-width-icon-default);
7380
+ }
7381
+ .x-icon.x-filled {
7382
+ stroke: none;
7383
+ fill: var(--x-color-stroke-icon-default);
7384
+ }
7346
7385
  :root {
7347
7386
  --x-size-padding-grid: 0;
7348
7387
  --x-size-gap-grid: var(--x-size-base-03);
@@ -7387,36 +7426,6 @@
7387
7426
  --x-size-padding-bottom-filter-children: 0;
7388
7427
  --x-size-padding-left-filter-children: var(--x-size-base-05);
7389
7428
  }
7390
- :root {
7391
- --x-color-stroke-icon-default: currentColor;
7392
- --x-color-fill-icon-default: none;
7393
- --x-size-width-icon-default: var(--x-size-width-icon-m);
7394
- --x-size-height-icon-default: var(--x-size-height-icon-m);
7395
- --x-string-stroke-linecap-icon-default: butt;
7396
- --x-string-stroke-linejoin-icon-default: mitter;
7397
- --x-size-stroke-width-icon-default: 1px;
7398
- }
7399
-
7400
- .x-icon {
7401
- stroke: var(--x-color-stroke-icon-default);
7402
- fill: var(--x-color-fill-icon-default);
7403
- display: inline-flex;
7404
- justify-content: center;
7405
- align-items: center;
7406
- flex: 0 0 auto;
7407
- vertical-align: middle;
7408
- line-height: var(--x-size-height-icon-default);
7409
- width: var(--x-size-width-icon-default);
7410
- height: var(--x-size-height-icon-default);
7411
- font-size: var(--x-size-height-icon-default);
7412
- stroke-linecap: var(--x-string-stroke-linecap-icon-default);
7413
- stroke-linejoin: var(--x-string-stroke-linejoin-icon-default);
7414
- stroke-width: var(--x-size-stroke-width-icon-default);
7415
- }
7416
- .x-icon.x-filled {
7417
- stroke: none;
7418
- fill: var(--x-color-stroke-icon-default);
7419
- }
7420
7429
  :root {
7421
7430
  --x-size-margin-filter-children: 0;
7422
7431
  --x-size-padding-top-filter-children: 0;
@@ -7481,13 +7490,45 @@
7481
7490
  );
7482
7491
  --x-size-line-height-filter-default: var(--x-size-line-height-text);
7483
7492
  }
7484
-
7485
- [dir="ltr"] .x-filter,[dir="ltr"] .x-facet-filter {
7486
- padding-left: var(--x-size-padding-left-filter-default);
7487
- }
7488
-
7489
- [dir="rtl"] .x-filter,[dir="rtl"] .x-facet-filter {
7490
- padding-right: var(--x-size-padding-left-filter-default);
7493
+ :root {
7494
+ --x-color-background-filter-default: transparent;
7495
+ --x-color-border-filter-default: var(--x-color-background-filter-default);
7496
+ --x-color-text-filter-default: var(--x-color-text-default);
7497
+ --x-color-background-filter-default-selected: var(--x-color-background-filter-default);
7498
+ --x-color-border-filter-default-selected: var(--x-color-border-filter-default);
7499
+ --x-color-text-filter-default-selected: var(--x-color-text-filter-default);
7500
+ --x-size-border-width-filter-default: var(--x-size-border-width-base);
7501
+ --x-size-border-width-top-filter-default: var(--x-size-border-width-filter-default);
7502
+ --x-size-border-width-right-filter-default: var(--x-size-border-width-filter-default);
7503
+ --x-size-border-width-bottom-filter-default: var(--x-size-border-width-filter-default);
7504
+ --x-size-border-width-left-filter-default: var(--x-size-border-width-filter-default);
7505
+ --x-size-border-radius-filter-default: var(--x-size-border-radius-base-none);
7506
+ --x-size-border-radius-top-left-filter-default: var(--x-size-border-radius-filter-default);
7507
+ --x-size-border-radius-top-right-filter-default: var(--x-size-border-radius-filter-default);
7508
+ --x-size-border-radius-bottom-right-filter-default: var(--x-size-border-radius-filter-default);
7509
+ --x-size-border-radius-bottom-left-filter-default: var(--x-size-border-radius-filter-default);
7510
+ --x-size-padding-top-filter-default: var(--x-size-base-03);
7511
+ --x-size-padding-right-filter-default: 0;
7512
+ --x-size-padding-bottom-filter-default: var(--x-size-base-03);
7513
+ --x-size-padding-left-filter-default: 0;
7514
+ --x-size-gap-filter-default: var(--x-size-base-03);
7515
+ --x-font-family-filter-default: var(--x-font-family-text);
7516
+ --x-size-font-filter-default: var(--x-size-font-text);
7517
+ --x-number-font-weight-filter-default: var(--x-number-font-weight-base-regular);
7518
+ --x-number-font-weight-filter-default-selected: var(--x-number-font-weight-base-bold);
7519
+ --x-number-font-weight-filter-count-default: var(--x-number-font-weight-base-light);
7520
+ --x-number-font-weight-filter-count-default-selected: var(
7521
+ --x-number-font-weight-filter-count-default
7522
+ );
7523
+ --x-size-line-height-filter-default: var(--x-size-line-height-text);
7524
+ }
7525
+
7526
+ [dir="ltr"] .x-filter,[dir="ltr"] .x-facet-filter {
7527
+ padding-left: var(--x-size-padding-left-filter-default);
7528
+ }
7529
+
7530
+ [dir="rtl"] .x-filter,[dir="rtl"] .x-facet-filter {
7531
+ padding-right: var(--x-size-padding-left-filter-default);
7491
7532
  }
7492
7533
 
7493
7534
  [dir="ltr"] .x-filter,[dir="ltr"] .x-facet-filter {
@@ -7562,38 +7603,6 @@
7562
7603
  --x-number-font-weight-filter-count-default-selected
7563
7604
  );
7564
7605
  }
7565
- :root {
7566
- --x-color-background-filter-default: transparent;
7567
- --x-color-border-filter-default: var(--x-color-background-filter-default);
7568
- --x-color-text-filter-default: var(--x-color-text-default);
7569
- --x-color-background-filter-default-selected: var(--x-color-background-filter-default);
7570
- --x-color-border-filter-default-selected: var(--x-color-border-filter-default);
7571
- --x-color-text-filter-default-selected: var(--x-color-text-filter-default);
7572
- --x-size-border-width-filter-default: var(--x-size-border-width-base);
7573
- --x-size-border-width-top-filter-default: var(--x-size-border-width-filter-default);
7574
- --x-size-border-width-right-filter-default: var(--x-size-border-width-filter-default);
7575
- --x-size-border-width-bottom-filter-default: var(--x-size-border-width-filter-default);
7576
- --x-size-border-width-left-filter-default: var(--x-size-border-width-filter-default);
7577
- --x-size-border-radius-filter-default: var(--x-size-border-radius-base-none);
7578
- --x-size-border-radius-top-left-filter-default: var(--x-size-border-radius-filter-default);
7579
- --x-size-border-radius-top-right-filter-default: var(--x-size-border-radius-filter-default);
7580
- --x-size-border-radius-bottom-right-filter-default: var(--x-size-border-radius-filter-default);
7581
- --x-size-border-radius-bottom-left-filter-default: var(--x-size-border-radius-filter-default);
7582
- --x-size-padding-top-filter-default: var(--x-size-base-03);
7583
- --x-size-padding-right-filter-default: 0;
7584
- --x-size-padding-bottom-filter-default: var(--x-size-base-03);
7585
- --x-size-padding-left-filter-default: 0;
7586
- --x-size-gap-filter-default: var(--x-size-base-03);
7587
- --x-font-family-filter-default: var(--x-font-family-text);
7588
- --x-size-font-filter-default: var(--x-size-font-text);
7589
- --x-number-font-weight-filter-default: var(--x-number-font-weight-base-regular);
7590
- --x-number-font-weight-filter-default-selected: var(--x-number-font-weight-base-bold);
7591
- --x-number-font-weight-filter-count-default: var(--x-number-font-weight-base-light);
7592
- --x-number-font-weight-filter-count-default-selected: var(
7593
- --x-number-font-weight-filter-count-default
7594
- );
7595
- --x-size-line-height-filter-default: var(--x-size-line-height-text);
7596
- }
7597
7606
  :root {
7598
7607
  --x-color-border-facet-outlined: var(--x-color-base-neutral-70);
7599
7608
  --x-size-border-width-facet-outlined: var(--x-size-border-width-base);
@@ -7643,6 +7652,30 @@
7643
7652
  --x-size-border-width-bottom-facet-header-line: var(--x-size-border-width-facet-header-line);
7644
7653
  --x-size-border-width-left-facet-header-line: 0;
7645
7654
  }
7655
+ :root {
7656
+ --x-color-border-facet-header-line: var(--x-color-base-neutral-10);
7657
+ --x-size-border-width-facet-header-line: var(--x-size-border-width-base);
7658
+ --x-size-border-width-top-facet-header-line: 0;
7659
+ --x-size-border-width-right-facet-header-line: 0;
7660
+ --x-size-border-width-bottom-facet-header-line: var(--x-size-border-width-facet-header-line);
7661
+ --x-size-border-width-left-facet-header-line: 0;
7662
+ }
7663
+
7664
+ .x-facet--line.x-facet,
7665
+ .x-facet--line .x-facet {
7666
+ --x-color-border-facet-header-default: var(--x-color-border-facet-header-line);
7667
+ --x-size-border-width-facet-header-default: var(--x-size-border-width-facet-header-line);
7668
+ --x-size-border-width-top-facet-header-default: var(--x-size-border-width-top-facet-header-line);
7669
+ --x-size-border-width-right-facet-header-default: var(
7670
+ --x-size-border-width-right-facet-header-line
7671
+ );
7672
+ --x-size-border-width-bottom-facet-header-default: var(
7673
+ --x-size-border-width-bottom-facet-header-line
7674
+ );
7675
+ --x-size-border-width-left-facet-header-default: var(
7676
+ --x-size-border-width-left-facet-header-line
7677
+ );
7678
+ }
7646
7679
  :root {
7647
7680
  --x-color-background-facet-default: transparent;
7648
7681
  --x-color-border-facet-default: var(--x-color-background-facet-default);
@@ -7676,30 +7709,6 @@
7676
7709
  --x-number-font-weight-facet-default: var(--x-number-font-weight-title3);
7677
7710
  --x-size-line-height-facet-default: var(--x-size-line-height-title3);
7678
7711
  }
7679
- :root {
7680
- --x-color-border-facet-header-line: var(--x-color-base-neutral-10);
7681
- --x-size-border-width-facet-header-line: var(--x-size-border-width-base);
7682
- --x-size-border-width-top-facet-header-line: 0;
7683
- --x-size-border-width-right-facet-header-line: 0;
7684
- --x-size-border-width-bottom-facet-header-line: var(--x-size-border-width-facet-header-line);
7685
- --x-size-border-width-left-facet-header-line: 0;
7686
- }
7687
-
7688
- .x-facet--line.x-facet,
7689
- .x-facet--line .x-facet {
7690
- --x-color-border-facet-header-default: var(--x-color-border-facet-header-line);
7691
- --x-size-border-width-facet-header-default: var(--x-size-border-width-facet-header-line);
7692
- --x-size-border-width-top-facet-header-default: var(--x-size-border-width-top-facet-header-line);
7693
- --x-size-border-width-right-facet-header-default: var(
7694
- --x-size-border-width-right-facet-header-line
7695
- );
7696
- --x-size-border-width-bottom-facet-header-default: var(
7697
- --x-size-border-width-bottom-facet-header-line
7698
- );
7699
- --x-size-border-width-left-facet-header-default: var(
7700
- --x-size-border-width-left-facet-header-line
7701
- );
7702
- }
7703
7712
  :root {
7704
7713
  --x-color-background-facet-default: transparent;
7705
7714
  --x-color-border-facet-default: var(--x-color-background-facet-default);
@@ -7839,6 +7848,18 @@
7839
7848
  --x-size-padding-bottom-facet-header-card: var(--x-size-padding-facet-header-card);
7840
7849
  --x-size-padding-left-facet-header-card: var(--x-size-padding-facet-header-card);
7841
7850
  }
7851
+ :root {
7852
+ --x-size-border-radius-facet-card: var(--x-size-border-radius-base-s);
7853
+ --x-size-border-radius-top-left-facet-card: var(--x-size-border-radius-facet-card);
7854
+ --x-size-border-radius-top-right-facet-card: var(--x-size-border-radius-facet-card);
7855
+ --x-size-border-radius-bottom-right-facet-card: var(--x-size-border-radius-facet-card);
7856
+ --x-size-border-radius-bottom-left-facet-card: var(--x-size-border-radius-facet-card);
7857
+ --x-size-padding-facet-header-card: var(--x-size-base-03);
7858
+ --x-size-padding-top-facet-header-card: var(--x-size-padding-facet-header-card);
7859
+ --x-size-padding-right-facet-header-card: var(--x-size-padding-facet-header-card);
7860
+ --x-size-padding-bottom-facet-header-card: var(--x-size-padding-facet-header-card);
7861
+ --x-size-padding-left-facet-header-card: var(--x-size-padding-facet-header-card);
7862
+ }
7842
7863
 
7843
7864
  .x-facet--card.x-facet,
7844
7865
  .x-facet--card .x-facet {
@@ -7853,18 +7874,6 @@
7853
7874
  --x-size-padding-bottom-facet-header-default: var(--x-size-padding-bottom-facet-header-card);
7854
7875
  --x-size-padding-left-facet-header-default: var(--x-size-padding-left-facet-header-card);
7855
7876
  }
7856
- :root {
7857
- --x-size-border-radius-facet-card: var(--x-size-border-radius-base-s);
7858
- --x-size-border-radius-top-left-facet-card: var(--x-size-border-radius-facet-card);
7859
- --x-size-border-radius-top-right-facet-card: var(--x-size-border-radius-facet-card);
7860
- --x-size-border-radius-bottom-right-facet-card: var(--x-size-border-radius-facet-card);
7861
- --x-size-border-radius-bottom-left-facet-card: var(--x-size-border-radius-facet-card);
7862
- --x-size-padding-facet-header-card: var(--x-size-base-03);
7863
- --x-size-padding-top-facet-header-card: var(--x-size-padding-facet-header-card);
7864
- --x-size-padding-right-facet-header-card: var(--x-size-padding-facet-header-card);
7865
- --x-size-padding-bottom-facet-header-card: var(--x-size-padding-facet-header-card);
7866
- --x-size-padding-left-facet-header-card: var(--x-size-padding-facet-header-card);
7867
- }
7868
7877
  :root {
7869
7878
  --x-size-width-dropdown-xl: 282px;
7870
7879
  }
@@ -7878,6 +7887,13 @@
7878
7887
  :root {
7879
7888
  --x-size-width-dropdown-s: 74px;
7880
7889
  }
7890
+ :root {
7891
+ --x-size-width-dropdown-s: 74px;
7892
+ }
7893
+
7894
+ .x-dropdown.x-dropdown--s {
7895
+ --x-size-width-dropdown-toggle-default: var(--x-size-width-dropdown-s);
7896
+ }
7881
7897
  :root {
7882
7898
  --x-size-gap-dropdown-pill: var(--x-size-base-03);
7883
7899
  --x-size-border-width-dropdown-list-pill: var(--x-size-border-width-base);
@@ -7886,13 +7902,6 @@
7886
7902
  --x-size-border-width-bottom-dropdown-list-pill: var(--x-size-border-width-dropdown-list-pill);
7887
7903
  --x-size-border-width-left-dropdown-list-pill: var(--x-size-border-width-dropdown-list-pill);
7888
7904
  }
7889
- :root {
7890
- --x-size-width-dropdown-s: 74px;
7891
- }
7892
-
7893
- .x-dropdown.x-dropdown--s {
7894
- --x-size-width-dropdown-toggle-default: var(--x-size-width-dropdown-s);
7895
- }
7896
7905
  :root {
7897
7906
  --x-size-gap-dropdown-pill: var(--x-size-base-03);
7898
7907
  --x-size-border-width-dropdown-list-pill: var(--x-size-border-width-base);
@@ -7970,6 +7979,30 @@
7970
7979
  --x-size-border-width-bottom-dropdown-list-line: var(--x-size-border-width-dropdown-list-line);
7971
7980
  --x-size-border-width-left-dropdown-list-line: var(--x-size-border-width-dropdown-list-line);
7972
7981
  }
7982
+ :root {
7983
+ --x-size-padding-block-dropdown-item-line: var(--x-size-base-03);
7984
+ --x-size-padding-inline-dropdown-item-line: 0 var(--x-size-base-03);
7985
+ --x-size-padding-top-dropdown-item-line: var(--x-size-base-03);
7986
+ --x-size-padding-right-dropdown-item-line: 0;
7987
+ --x-size-padding-bottom-dropdown-item-line: var(--x-size-base-03);
7988
+ --x-size-padding-left-dropdown-item-line: 0;
7989
+ --x-size-padding-top-dropdown-toggle-line: var(--x-size-base-03);
7990
+ --x-size-padding-right-dropdown-toggle-line: 0;
7991
+ --x-size-padding-bottom-dropdown-toggle-line: var(--x-size-base-03);
7992
+ --x-size-padding-left-dropdown-toggle-line: 0;
7993
+ --x-size-border-width-dropdown-toggle-line: var(--x-size-border-width-base);
7994
+ --x-size-border-width-top-dropdown-toggle-line: 0;
7995
+ --x-size-border-width-right-dropdown-toggle-line: 0;
7996
+ --x-size-border-width-bottom-dropdown-toggle-line: var(
7997
+ --x-size-border-width-dropdown-toggle-line
7998
+ );
7999
+ --x-size-border-width-left-dropdown-toggle-line: 0;
8000
+ --x-size-border-width-dropdown-list-line: 0;
8001
+ --x-size-border-width-top-dropdown-list-line: var(--x-size-border-width-dropdown-list-line);
8002
+ --x-size-border-width-right-dropdown-list-line: var(--x-size-border-width-dropdown-list-line);
8003
+ --x-size-border-width-bottom-dropdown-list-line: var(--x-size-border-width-dropdown-list-line);
8004
+ --x-size-border-width-left-dropdown-list-line: var(--x-size-border-width-dropdown-list-line);
8005
+ }
7973
8006
 
7974
8007
  .x-dropdown--line {
7975
8008
  --x-size-padding-top-dropdown-item-default: var(--x-size-padding-top-dropdown-item-line);
@@ -8010,32 +8043,15 @@
8010
8043
  );
8011
8044
  }
8012
8045
  :root {
8013
- --x-size-padding-block-dropdown-item-line: var(--x-size-base-03);
8014
- --x-size-padding-inline-dropdown-item-line: 0 var(--x-size-base-03);
8015
- --x-size-padding-top-dropdown-item-line: var(--x-size-base-03);
8016
- --x-size-padding-right-dropdown-item-line: 0;
8017
- --x-size-padding-bottom-dropdown-item-line: var(--x-size-base-03);
8018
- --x-size-padding-left-dropdown-item-line: 0;
8019
- --x-size-padding-top-dropdown-toggle-line: var(--x-size-base-03);
8020
- --x-size-padding-right-dropdown-toggle-line: 0;
8021
- --x-size-padding-bottom-dropdown-toggle-line: var(--x-size-base-03);
8022
- --x-size-padding-left-dropdown-toggle-line: 0;
8023
- --x-size-border-width-dropdown-toggle-line: var(--x-size-border-width-base);
8024
- --x-size-border-width-top-dropdown-toggle-line: 0;
8025
- --x-size-border-width-right-dropdown-toggle-line: 0;
8026
- --x-size-border-width-bottom-dropdown-toggle-line: var(
8027
- --x-size-border-width-dropdown-toggle-line
8028
- );
8029
- --x-size-border-width-left-dropdown-toggle-line: 0;
8030
- --x-size-border-width-dropdown-list-line: 0;
8031
- --x-size-border-width-top-dropdown-list-line: var(--x-size-border-width-dropdown-list-line);
8032
- --x-size-border-width-right-dropdown-list-line: var(--x-size-border-width-dropdown-list-line);
8033
- --x-size-border-width-bottom-dropdown-list-line: var(--x-size-border-width-dropdown-list-line);
8034
- --x-size-border-width-left-dropdown-list-line: var(--x-size-border-width-dropdown-list-line);
8046
+ --x-size-width-dropdown-l: 202px;
8035
8047
  }
8036
8048
  :root {
8037
8049
  --x-size-width-dropdown-l: 202px;
8038
8050
  }
8051
+
8052
+ .x-dropdown.x-dropdown--l {
8053
+ --x-size-width-dropdown-toggle-default: var(--x-size-width-dropdown-l);
8054
+ }
8039
8055
  :root {
8040
8056
  --x-size-border-radius-dropdown-default: var(--x-size-border-radius-base-none);
8041
8057
  --x-size-border-radius-top-left-dropdown-default: var(--x-size-border-radius-dropdown-default);
@@ -8109,13 +8125,6 @@
8109
8125
  --x-string-overflow-dropdown-toggle-default: hidden;
8110
8126
  --x-string-overflow-dropdown-list-default: hidden;
8111
8127
  }
8112
- :root {
8113
- --x-size-width-dropdown-l: 202px;
8114
- }
8115
-
8116
- .x-dropdown.x-dropdown--l {
8117
- --x-size-width-dropdown-toggle-default: var(--x-size-width-dropdown-l);
8118
- }
8119
8128
  :root {
8120
8129
  --x-size-border-radius-dropdown-default: var(--x-size-border-radius-base-none);
8121
8130
  --x-size-border-radius-top-left-dropdown-default: var(--x-size-border-radius-dropdown-default);
@@ -8424,6 +8433,16 @@
8424
8433
  --x-size-border-width-bottom-button-tertiary: var(--x-size-border-width-button-tertiary);
8425
8434
  --x-size-border-width-left-button-tertiary: var(--x-size-border-width-button-tertiary);
8426
8435
  }
8436
+ :root {
8437
+ --x-color-background-button-tertiary: var(--x-color-base-neutral-95);
8438
+ --x-color-border-button-tertiary: var(--x-color-base-neutral-70);
8439
+ --x-color-text-button-tertiary: var(--x-color-text-default);
8440
+ --x-size-border-width-button-tertiary: var(--x-size-border-width-base);
8441
+ --x-size-border-width-top-button-tertiary: var(--x-size-border-width-button-tertiary);
8442
+ --x-size-border-width-right-button-tertiary: var(--x-size-border-width-button-tertiary);
8443
+ --x-size-border-width-bottom-button-tertiary: var(--x-size-border-width-button-tertiary);
8444
+ --x-size-border-width-left-button-tertiary: var(--x-size-border-width-button-tertiary);
8445
+ }
8427
8446
 
8428
8447
  .x-button--tertiary.x-button,
8429
8448
  .x-button--tertiary .x-button {
@@ -8435,16 +8454,6 @@
8435
8454
  --x-size-border-width-bottom-button-default: var(--x-size-border-width-bottom-button-tertiary);
8436
8455
  --x-size-border-width-left-button-default: var(--x-size-border-width-left-button-tertiary);
8437
8456
  }
8438
- :root {
8439
- --x-color-background-button-tertiary: var(--x-color-base-neutral-95);
8440
- --x-color-border-button-tertiary: var(--x-color-base-neutral-70);
8441
- --x-color-text-button-tertiary: var(--x-color-text-default);
8442
- --x-size-border-width-button-tertiary: var(--x-size-border-width-base);
8443
- --x-size-border-width-top-button-tertiary: var(--x-size-border-width-button-tertiary);
8444
- --x-size-border-width-right-button-tertiary: var(--x-size-border-width-button-tertiary);
8445
- --x-size-border-width-bottom-button-tertiary: var(--x-size-border-width-button-tertiary);
8446
- --x-size-border-width-left-button-tertiary: var(--x-size-border-width-button-tertiary);
8447
- }
8448
8457
  :root {
8449
8458
  --x-color-background-button-secondary: transparent;
8450
8459
  --x-color-border-button-secondary: var(--x-color-border-button-default);
@@ -8455,13 +8464,6 @@
8455
8464
  --x-size-border-width-bottom-button-secondary: var(--x-size-border-width-button-secondary);
8456
8465
  --x-size-border-width-left-button-secondary: var(--x-size-border-width-button-secondary);
8457
8466
  }
8458
- :root {
8459
- --x-size-border-radius-button-round: var(--x-size-border-radius-base-pill);
8460
- --x-size-border-radius-top-left-button-round: var(--x-size-border-radius-button-round);
8461
- --x-size-border-radius-top-right-button-round: var(--x-size-border-radius-button-round);
8462
- --x-size-border-radius-bottom-right-button-round: var(--x-size-border-radius-button-round);
8463
- --x-size-border-radius-bottom-left-button-round: var(--x-size-border-radius-button-round);
8464
- }
8465
8467
  :root {
8466
8468
  --x-color-background-button-secondary: transparent;
8467
8469
  --x-color-border-button-secondary: var(--x-color-border-button-default);
@@ -8490,6 +8492,13 @@
8490
8492
  --x-size-border-radius-bottom-right-button-round: var(--x-size-border-radius-button-round);
8491
8493
  --x-size-border-radius-bottom-left-button-round: var(--x-size-border-radius-button-round);
8492
8494
  }
8495
+ :root {
8496
+ --x-size-border-radius-button-round: var(--x-size-border-radius-base-pill);
8497
+ --x-size-border-radius-top-left-button-round: var(--x-size-border-radius-button-round);
8498
+ --x-size-border-radius-top-right-button-round: var(--x-size-border-radius-button-round);
8499
+ --x-size-border-radius-bottom-right-button-round: var(--x-size-border-radius-button-round);
8500
+ --x-size-border-radius-bottom-left-button-round: var(--x-size-border-radius-button-round);
8501
+ }
8493
8502
 
8494
8503
  .x-button--round.x-button,
8495
8504
  .x-button--round .x-button {
@@ -8710,16 +8719,6 @@
8710
8719
  --x-size-border-radius-bottom-right-button-card: var(--x-size-border-radius-button-card);
8711
8720
  --x-size-border-radius-bottom-left-button-card: var(--x-size-border-radius-button-card);
8712
8721
  }
8713
- :root {
8714
- --x-color-background-badge-default: var(--x-color-base-neutral-10);
8715
- --x-color-text-badge-default: var(--x-color-base-neutral-100);
8716
- --x-color-border-badge-default: var(--x-color-base-neutral-10);
8717
- --x-size-border-radius-badge-default: var(--x-size-border-radius-base-pill);
8718
- --x-size-border-width-badge-default: 0;
8719
- --x-size-width-badge-default: 1.5em;
8720
- --x-number-font-weight-badge-default: var(--x-number-font-weight-base-regular);
8721
- --x-size-font-badge-default: var(--x-size-font-base-xs);
8722
- }
8723
8722
  :root {
8724
8723
  --x-size-border-radius-button-card: var(--x-size-border-radius-base-s);
8725
8724
  --x-size-border-radius-top-left-button-card: var(--x-size-border-radius-button-card);
@@ -8752,6 +8751,16 @@
8752
8751
  --x-number-font-weight-badge-default: var(--x-number-font-weight-base-regular);
8753
8752
  --x-size-font-badge-default: var(--x-size-font-base-xs);
8754
8753
  }
8754
+ :root {
8755
+ --x-color-background-badge-default: var(--x-color-base-neutral-10);
8756
+ --x-color-text-badge-default: var(--x-color-base-neutral-100);
8757
+ --x-color-border-badge-default: var(--x-color-base-neutral-10);
8758
+ --x-size-border-radius-badge-default: var(--x-size-border-radius-base-pill);
8759
+ --x-size-border-width-badge-default: 0;
8760
+ --x-size-width-badge-default: 1.5em;
8761
+ --x-number-font-weight-badge-default: var(--x-number-font-weight-base-regular);
8762
+ --x-size-font-badge-default: var(--x-size-font-base-xs);
8763
+ }
8755
8764
 
8756
8765
  [dir="ltr"] .x-badge {
8757
8766
  right: calc(var(--x-size-width-badge-default) / 4);
@@ -8832,13 +8841,4 @@
8832
8841
  --x-size-border-radius-base-m: var(--x-size-base-06);
8833
8842
  --x-size-border-radius-base-pill: 99999px;
8834
8843
  --x-size-border-width-base: 1px;
8835
- }
8836
- :root {
8837
- --x-modal-overlay-color: rgb(0, 0, 0);
8838
- --x-modal-overlay-opacity: 0.7;
8839
- }
8840
-
8841
- .x-modal__overlay {
8842
- background-color: var(--x-modal-overlay-color) !important;
8843
- opacity: var(--x-modal-overlay-opacity) !important;
8844
8844
  }
@@ -2,20 +2,25 @@
2
2
 
3
3
  [Home](./index.md) > [@empathyco/x-components](./x-components.md) > [BaseSwitch](./x-components.baseswitch.md)
4
4
 
5
- ## BaseSwitch class
5
+ ## BaseSwitch variable
6
6
 
7
7
  Basic switch component to handle boolean values. This component receives its selected state using a prop, and emits a Vue event whenever the user clicks it.
8
8
 
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export default class BaseSwitch extends Vue
12
+ _default: import("vue").DefineComponent<{
13
+ value: {
14
+ type: BooleanConstructor;
15
+ required: true;
16
+ };
17
+ }, {
18
+ cssClasses: import("vue").Ref<string | import("@empathyco/x-utils").Dictionary<boolean> | (string | import("@empathyco/x-utils").Dictionary<boolean>)[]>;
19
+ toggle: () => void;
20
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("change" | "input")[], string, Readonly<import("vue").ExtractPropTypes<{
21
+ value: {
22
+ type: BooleanConstructor;
23
+ required: true;
24
+ };
25
+ }>>, {}>
13
26
  ```
14
- **Extends:** Vue
15
-
16
- ## Properties
17
-
18
- | Property | Modifiers | Type | Description |
19
- | --- | --- | --- | --- |
20
- | [value](./x-components.baseswitch.value.md) | | boolean | The selected value of the switch. |
21
-
@@ -29,7 +29,6 @@ X-Components is a library usable everywhere not only for search experiences.
29
29
  | [BaseRating](./x-components.baserating.md) | Rating component. This component renders a set of elements filled based on the value passed as prop. |
30
30
  | [BaseScroll](./x-components.basescroll.md) | Base scroll component that depending on the user interactivity emits different events for knowing when the user scrolls, the direction of scroll and if user reaches the start or end. |
31
31
  | [BaseSuggestions](./x-components.basesuggestions.md) | Paints a list of suggestions passed in by prop. Requires a component for a single suggestion in the default slot for working. |
32
- | [BaseSwitch](./x-components.baseswitch.md) | Basic switch component to handle boolean values. This component receives its selected state using a prop, and emits a Vue event whenever the user clicks it. |
33
32
  | [BaseTabsPanel](./x-components.basetabspanel.md) | Base Tabs Panel. |
34
33
  | [BaseVariableColumnGrid](./x-components.basevariablecolumngrid.md) | The <code>BaseVariableColumnGrid</code> component is a wrapper of the <code>BaseGrid</code> component that listens to the <code>UserClickedColumnPicker</code> and the <code>ColumnsNumberProvided</code> events and passes the selected number of columns to the grid. It also allows to customize the grid items using the available <code>scopedSlots</code>. |
35
34
  | [BaseXAPI](./x-components.basexapi.md) | Default implementation for [XAPI](./x-components.xapi.md)<!-- -->. |
@@ -418,6 +417,7 @@ X-Components is a library usable everywhere not only for search experiences.
418
417
  | [BaseResultPreviousPrice](./x-components.baseresultpreviousprice.md) | Component that renders the [Result](./x-types.result.md) previous price. |
419
418
  | [BaseResultRating](./x-components.baseresultrating.md) | This component renders a [BaseRating](./x-components.baserating.md) for a result passed as prop. |
420
419
  | [BaseSuggestion](./x-components.basesuggestion.md) | <p>Renders a button with a default slot. It receives a query, which should be the query of the module using this component, a suggestion, the [XEvent](./x-components.xevent.md) that will be emitted on click with a given feature.</p><p>The default slot receives the suggestion and the matched query has props.</p> |
420
+ | [BaseSwitch](./x-components.baseswitch.md) | Basic switch component to handle boolean values. This component receives its selected state using a prop, and emits a Vue event whenever the user clicks it. |
421
421
  | [BaseTogglePanel](./x-components.basetogglepanel.md) | Simple panel that receives its open state via prop, which is responsible of rendering default slot inside a configurable transition. |
422
422
  | [bus](./x-components.bus.md) | Default implementation. |
423
423
  | [cancelFetchAndSaveControls](./x-components.cancelfetchandsavecontrols.md) | Default implementation for fetchAndSaveExperienceControls action. |
@@ -11,15 +11,16 @@ prop, and emits a Vue event whenever the user clicks it.
11
11
 
12
12
  ## Props
13
13
 
14
- | Name | Description | Type | Default |
15
- | ------------------ | --------------------------------- | -------------------- | ------------- |
16
- | <code>value</code> | The selected value of the switch. | <code>boolean</code> | <code></code> |
14
+ | Name | Description | Type | Default |
15
+ | ------------------ | ----------- | -------------------- | ------------- |
16
+ | <code>value</code> | | <code>boolean</code> | <code></code> |
17
17
 
18
18
  ## Events
19
19
 
20
20
  | Event name | Properties | Description |
21
21
  | ---------- | ---------- | ----------- |
22
22
  | change | |
23
+ | input | |
23
24
 
24
25
  ## Events
25
26
 
@@ -26,7 +26,7 @@ __vue_render__._withStripped = true;
26
26
  /* style */
27
27
  const __vue_inject_styles__ = undefined;
28
28
  /* scoped */
29
- const __vue_scope_id__ = "data-v-5075e350";
29
+ const __vue_scope_id__ = "data-v-7245357a";
30
30
  /* module identifier */
31
31
  const __vue_module_identifier__ = undefined;
32
32
  /* functional template */
@@ -1 +1 @@
1
- {"version":3,"file":"base-switch.vue.js","sources":["../../../src/components/base-switch.vue"],"sourcesContent":["<template>\n <button\n @click=\"toggle\"\n :aria-checked=\"value.toString()\"\n :class=\"cssClasses\"\n class=\"x-switch\"\n role=\"switch\"\n >\n <div class=\"x-switch__handle\" />\n </button>\n</template>\n\n<script lang=\"ts\">\n import Vue from 'vue';\n import { Component, Prop } from 'vue-property-decorator';\n import { VueCSSClasses } from '../utils/types';\n\n /**\n * Basic switch component to handle boolean values. This component receives\n * its selected state using a prop, and emits a Vue event whenever the user\n * clicks it.\n *\n * @public\n */\n @Component({\n model: {\n event: 'change'\n }\n })\n export default class BaseSwitch extends Vue {\n /**\n * The selected value of the switch.\n *\n * @public\n */\n @Prop({ required: true })\n public value!: boolean;\n\n /**\n * Dynamic CSS classes to add to the switch component\n * depending on its internal state.\n *\n * @returns A boolean dictionary with dynamic CSS classes.\n * @internal\n */\n protected get cssClasses(): VueCSSClasses {\n return {\n 'x-switch--is-selected x-selected': this.value\n };\n }\n\n /**\n * Emits a change event with the desired value of the switch.\n *\n * @internal\n */\n protected toggle(): void {\n this.$emit('change', !this.value);\n }\n }\n</script>\n\n<style lang=\"scss\" scoped>\n .x-switch {\n --x-switch-height: 16px;\n --x-switch-width: calc(2 * (var(--x-switch-height)) + 2 * var(--x-switch-padding));\n --x-switch-background: #b3b3b3;\n --x-switch-padding: 2px;\n --x-switch-handle-size: var(--x-switch-height);\n box-sizing: content-box;\n height: var(--x-switch-height);\n padding: var(--x-switch-padding);\n border-radius: 99999px;\n background: var(--x-switch-background);\n width: var(--x-switch-width);\n border: none;\n transition: 0.25s ease-out background-color;\n cursor: pointer;\n\n &__handle {\n background: #ffffff;\n border-radius: 50%;\n height: var(--x-switch-handle-size);\n width: var(--x-switch-handle-size);\n transition: 0.25s ease-out transform;\n transform: translateX(var(--x-switch-translate-x, 0%));\n }\n\n &--is-selected {\n --x-switch-translate-x: calc(var(--x-switch-padding) + var(--x-switch-width) / 2);\n --x-switch-background: #1a1a1a;\n }\n\n &--sm {\n --x-switch-height: 12px;\n }\n\n &--lg {\n --x-switch-height: 24px;\n }\n }\n</style>\n\n<docs lang=\"mdx\">\n## Events\n\nThis component emits no events.\n\n## See it in action\n\nHere you have a basic example of how the switch is rendered.\n\n_Try clicking it to see how it changes its state_\n\n```vue live\n<template>\n <BaseSwitch @change=\"value = !value\" :value=\"value\" />\n</template>\n\n<script>\n import { BaseSwitch } from '@empathyco/x-components';\n\n export default {\n name: 'BaseSwitchDemo',\n components: {\n BaseSwitch\n },\n data() {\n return {\n value: false\n };\n }\n };\n</script>\n```\n\nThe switch component also supports using the `v-model` directive, to automatically handle its state\nchange:\n\n```vue live\n<template>\n <BaseSwitch v-model=\"value\" />\n</template>\n\n<script>\n import { BaseSwitch } from '@empathyco/x-components';\n\n export default {\n name: 'BaseSwitchDemo',\n components: {\n BaseSwitch\n },\n data() {\n return {\n value: false\n };\n }\n };\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;;;AAEA,MAAc,cAAA,GAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"base-switch.vue.js","sources":["../../../src/components/base-switch.vue"],"sourcesContent":["<template>\n <button\n @click=\"toggle\"\n :aria-checked=\"value.toString()\"\n :class=\"cssClasses\"\n class=\"x-switch\"\n role=\"switch\"\n >\n <div class=\"x-switch__handle\" />\n </button>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, ref } from 'vue';\n import { VueCSSClasses } from '../utils/types';\n\n /**\n * Basic switch component to handle boolean values. This component receives\n * its selected state using a prop, and emits a Vue event whenever the user\n * clicks it.\n *\n * @public\n */\n\n export default defineComponent({\n name: 'BaseSwitch',\n /**\n * The selected value of the switch.\n *\n * @public\n */\n props: {\n value: {\n type: Boolean,\n required: true\n }\n },\n emits: ['change', 'input'],\n setup(props, { emit }) {\n /**\n * Dynamic CSS classes to add to the switch component\n * depending on its internal state.\n *\n * @returns A boolean dictionary with dynamic CSS classes.\n * @internal\n */\n const cssClasses = ref<VueCSSClasses>({\n 'x-switch--is-selected x-selected': props.value\n });\n\n /**\n * Emits a change and input event with the desired value of the switch.\n *\n * @internal\n */\n const toggle = (): void => {\n const newValue = !props.value;\n cssClasses.value = {\n 'x-switch--is-selected': newValue,\n 'x-selected': newValue\n };\n\n emit('input', newValue);\n emit('change', newValue);\n };\n\n return {\n cssClasses,\n toggle\n };\n }\n });\n</script>\n\n<style lang=\"scss\" scoped>\n .x-switch {\n --x-switch-height: 16px;\n --x-switch-width: calc(2 * (var(--x-switch-height)) + 2 * var(--x-switch-padding));\n --x-switch-background: #b3b3b3;\n --x-switch-padding: 2px;\n --x-switch-handle-size: var(--x-switch-height);\n box-sizing: content-box;\n height: var(--x-switch-height);\n padding: var(--x-switch-padding);\n border-radius: 99999px;\n background: var(--x-switch-background);\n width: var(--x-switch-width);\n border: none;\n transition: 0.25s ease-out background-color;\n cursor: pointer;\n\n &__handle {\n background: #ffffff;\n border-radius: 50%;\n height: var(--x-switch-handle-size);\n width: var(--x-switch-handle-size);\n transition: 0.25s ease-out transform;\n transform: translateX(var(--x-switch-translate-x, 0%));\n }\n\n &--is-selected {\n --x-switch-translate-x: calc(var(--x-switch-padding) + var(--x-switch-width) / 2);\n --x-switch-background: #1a1a1a;\n }\n\n &--sm {\n --x-switch-height: 12px;\n }\n\n &--lg {\n --x-switch-height: 24px;\n }\n }\n</style>\n\n<docs lang=\"mdx\">\n## Events\n\nThis component emits no events.\n\n## See it in action\n\nHere you have a basic example of how the switch is rendered.\n\n_Try clicking it to see how it changes its state_\n\n```vue live\n<template>\n <BaseSwitch @change=\"value = !value\" :value=\"value\" />\n</template>\n\n<script>\n import { BaseSwitch } from '@empathyco/x-components';\n\n export default {\n name: 'BaseSwitchDemo',\n components: {\n BaseSwitch\n },\n data() {\n return {\n value: false\n };\n }\n };\n</script>\n```\n\nThe switch component also supports using the `v-model` directive, to automatically handle its state\nchange:\n\n```vue live\n<template>\n <BaseSwitch v-model=\"value\" />\n</template>\n\n<script>\n import { BaseSwitch } from '@empathyco/x-components';\n\n export default {\n name: 'BaseSwitchDemo',\n components: {\n BaseSwitch\n },\n data() {\n return {\n value: false\n };\n }\n };\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;;;AAEA,MAAc,cAAA,GAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,4 @@
1
- import { __decorate } from 'tslib';
2
- import Vue from 'vue';
3
- import { Prop, Component } from 'vue-property-decorator';
1
+ import { defineComponent, ref } from 'vue';
4
2
 
5
3
  /**
6
4
  * Basic switch component to handle boolean values. This component receives
@@ -9,39 +7,51 @@ import { Prop, Component } from 'vue-property-decorator';
9
7
  *
10
8
  * @public
11
9
  */
12
- let BaseSwitch = class BaseSwitch extends Vue {
10
+ var script = defineComponent({
11
+ name: 'BaseSwitch',
13
12
  /**
14
- * Dynamic CSS classes to add to the switch component
15
- * depending on its internal state.
13
+ * The selected value of the switch.
16
14
  *
17
- * @returns A boolean dictionary with dynamic CSS classes.
18
- * @internal
15
+ * @public
19
16
  */
20
- get cssClasses() {
17
+ props: {
18
+ value: {
19
+ type: Boolean,
20
+ required: true
21
+ }
22
+ },
23
+ emits: ['change', 'input'],
24
+ setup(props, { emit }) {
25
+ /**
26
+ * Dynamic CSS classes to add to the switch component
27
+ * depending on its internal state.
28
+ *
29
+ * @returns A boolean dictionary with dynamic CSS classes.
30
+ * @internal
31
+ */
32
+ const cssClasses = ref({
33
+ 'x-switch--is-selected x-selected': props.value
34
+ });
35
+ /**
36
+ * Emits a change and input event with the desired value of the switch.
37
+ *
38
+ * @internal
39
+ */
40
+ const toggle = () => {
41
+ const newValue = !props.value;
42
+ cssClasses.value = {
43
+ 'x-switch--is-selected': newValue,
44
+ 'x-selected': newValue
45
+ };
46
+ emit('input', newValue);
47
+ emit('change', newValue);
48
+ };
21
49
  return {
22
- 'x-switch--is-selected x-selected': this.value
50
+ cssClasses,
51
+ toggle
23
52
  };
24
53
  }
25
- /**
26
- * Emits a change event with the desired value of the switch.
27
- *
28
- * @internal
29
- */
30
- toggle() {
31
- this.$emit('change', !this.value);
32
- }
33
- };
34
- __decorate([
35
- Prop({ required: true })
36
- ], BaseSwitch.prototype, "value", void 0);
37
- BaseSwitch = __decorate([
38
- Component({
39
- model: {
40
- event: 'change'
41
- }
42
- })
43
- ], BaseSwitch);
44
- var script = BaseSwitch;
54
+ });
45
55
 
46
56
  export { script as default };
47
57
  //# sourceMappingURL=base-switch.vue2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-switch.vue2.js","sources":["../../../src/components/base-switch.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\n\n import Vue from 'vue';\n import { Component, Prop } from 'vue-property-decorator';\n import { VueCSSClasses } from '../utils/types';\n\n /**\n * Basic switch component to handle boolean values. This component receives\n * its selected state using a prop, and emits a Vue event whenever the user\n * clicks it.\n *\n * @public\n */\n @Component({\n model: {\n event: 'change'\n }\n })\n export default class BaseSwitch extends Vue {\n /**\n * The selected value of the switch.\n *\n * @public\n */\n @Prop({ required: true })\n public value!: boolean;\n\n /**\n * Dynamic CSS classes to add to the switch component\n * depending on its internal state.\n *\n * @returns A boolean dictionary with dynamic CSS classes.\n * @internal\n */\n protected get cssClasses(): VueCSSClasses {\n return {\n 'x-switch--is-selected x-selected': this.value\n };\n }\n\n /**\n * Emits a change event with the desired value of the switch.\n *\n * @internal\n */\n protected toggle(): void {\n this.$emit('change', !this.value);\n }\n }\n"],"names":[],"mappings":";;;;AAiBE;;;;;;AAMG;AAMY,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,GAAG,CAAA;AASzC;;;;;;AAMG;AACH,IAAA,IAAc,UAAU,GAAA;QACtB,OAAO;YACL,kCAAkC,EAAE,IAAI,CAAC,KAAK;SAC/C,CAAC;KACH;AAED;;;;AAIG;IACO,MAAM,GAAA;QACd,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACnC;CACF,CAAA;AAvBC,UAAA,CAAA;AADC,IAAA,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACF,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAPJ,UAAU,GAAA,UAAA,CAAA;AAL9B,IAAA,SAAS,CAAC;AACT,QAAA,KAAK,EAAE;AACL,YAAA,KAAK,EAAE,QAAQ;AAChB,SAAA;KACF,CAAC;AACmB,CAAA,EAAA,UAAU,CA8B9B,CAAA;aA9BoB,UAAU;;;;"}
1
+ {"version":3,"file":"base-switch.vue2.js","sources":["../../../src/components/base-switch.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\n\n import { defineComponent, ref } from 'vue';\n import { VueCSSClasses } from '../utils/types';\n\n /**\n * Basic switch component to handle boolean values. This component receives\n * its selected state using a prop, and emits a Vue event whenever the user\n * clicks it.\n *\n * @public\n */\n\n export default defineComponent({\n name: 'BaseSwitch',\n /**\n * The selected value of the switch.\n *\n * @public\n */\n props: {\n value: {\n type: Boolean,\n required: true\n }\n },\n emits: ['change', 'input'],\n setup(props, { emit }) {\n /**\n * Dynamic CSS classes to add to the switch component\n * depending on its internal state.\n *\n * @returns A boolean dictionary with dynamic CSS classes.\n * @internal\n */\n const cssClasses = ref<VueCSSClasses>({\n 'x-switch--is-selected x-selected': props.value\n });\n\n /**\n * Emits a change and input event with the desired value of the switch.\n *\n * @internal\n */\n const toggle = (): void => {\n const newValue = !props.value;\n cssClasses.value = {\n 'x-switch--is-selected': newValue,\n 'x-selected': newValue\n };\n\n emit('input', newValue);\n emit('change', newValue);\n };\n\n return {\n cssClasses,\n toggle\n };\n }\n });\n"],"names":[],"mappings":";;AAgBE;;;;;;AAMG;AAEH,aAAe,eAAe,CAAC;AAC7B,IAAA,IAAI,EAAE,YAAY;AAClB;;;;AAIG;AACH,IAAA,KAAK,EAAE;AACL,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACF,KAAA;AACD,IAAA,KAAK,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;AAC1B,IAAA,KAAK,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAA;AACnB;;;;;;AAMG;QACH,MAAM,UAAU,GAAG,GAAG,CAAgB;YACpC,kCAAkC,EAAE,KAAK,CAAC,KAAK;AAChD,SAAA,CAAC,CAAC;AAEH;;;;AAIG;QACH,MAAM,MAAM,GAAG,MAAW;AACxB,YAAA,MAAM,QAAQ,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC;YAC9B,UAAU,CAAC,KAAK,GAAG;AACjB,gBAAA,uBAAuB,EAAE,QAAQ;AACjC,gBAAA,YAAY,EAAE,QAAQ;aACvB,CAAC;AAEF,YAAA,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AACxB,YAAA,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAC3B,SAAC,CAAC;QAEF,OAAO;YACL,UAAU;YACV,MAAM;SACP,CAAC;KACH;AACF,CAAA,CAAC;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { createInjector, createInjectorSSR } from 'vue-runtime-helpers';
2
2
 
3
- var css = ".x-switch[data-v-5075e350] {\n --x-switch-height: 16px;\n --x-switch-width: calc(2 * (var(--x-switch-height)) + 2 * var(--x-switch-padding));\n --x-switch-background: #b3b3b3;\n --x-switch-padding: 2px;\n --x-switch-handle-size: var(--x-switch-height);\n box-sizing: content-box;\n height: var(--x-switch-height);\n padding: var(--x-switch-padding);\n border-radius: 99999px;\n background: var(--x-switch-background);\n width: var(--x-switch-width);\n border: none;\n transition: 0.25s ease-out background-color;\n cursor: pointer;\n}\n.x-switch__handle[data-v-5075e350] {\n background: #ffffff;\n border-radius: 50%;\n height: var(--x-switch-handle-size);\n width: var(--x-switch-handle-size);\n transition: 0.25s ease-out transform;\n transform: translateX(var(--x-switch-translate-x, 0%));\n}\n.x-switch--is-selected[data-v-5075e350] {\n --x-switch-translate-x: calc(var(--x-switch-padding) + var(--x-switch-width) / 2);\n --x-switch-background: #1a1a1a;\n}\n.x-switch--sm[data-v-5075e350] {\n --x-switch-height: 12px;\n}\n.x-switch--lg[data-v-5075e350] {\n --x-switch-height: 24px;\n}";
3
+ var css = ".x-switch[data-v-7245357a] {\n --x-switch-height: 16px;\n --x-switch-width: calc(2 * (var(--x-switch-height)) + 2 * var(--x-switch-padding));\n --x-switch-background: #b3b3b3;\n --x-switch-padding: 2px;\n --x-switch-handle-size: var(--x-switch-height);\n box-sizing: content-box;\n height: var(--x-switch-height);\n padding: var(--x-switch-padding);\n border-radius: 99999px;\n background: var(--x-switch-background);\n width: var(--x-switch-width);\n border: none;\n transition: 0.25s ease-out background-color;\n cursor: pointer;\n}\n.x-switch__handle[data-v-7245357a] {\n background: #ffffff;\n border-radius: 50%;\n height: var(--x-switch-handle-size);\n width: var(--x-switch-handle-size);\n transition: 0.25s ease-out transform;\n transform: translateX(var(--x-switch-translate-x, 0%));\n}\n.x-switch--is-selected[data-v-7245357a] {\n --x-switch-translate-x: calc(var(--x-switch-padding) + var(--x-switch-width) / 2);\n --x-switch-background: #1a1a1a;\n}\n.x-switch--sm[data-v-7245357a] {\n --x-switch-height: 12px;\n}\n.x-switch--lg[data-v-7245357a] {\n --x-switch-height: 24px;\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": "4.1.0-alpha.20",
3
+ "version": "4.1.0-alpha.21",
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": "3fe4ca41c2cc2d3281d5fa76c4a61807afc3415b"
146
+ "gitHead": "fb1f2f29e0ab2fcbc6c32bd89450cee79aa985c4"
147
147
  }
@@ -8223,66 +8223,117 @@
8223
8223
  "implementsTokenRanges": []
8224
8224
  },
8225
8225
  {
8226
- "kind": "Class",
8227
- "canonicalReference": "@empathyco/x-components!BaseSwitch:class",
8226
+ "kind": "Variable",
8227
+ "canonicalReference": "@empathyco/x-components!BaseSwitch:var",
8228
8228
  "docComment": "/**\n * Basic switch component to handle boolean values. This component receives its selected state using a prop, and emits a Vue event whenever the user clicks it.\n *\n * @public\n */\n",
8229
8229
  "excerptTokens": [
8230
8230
  {
8231
8231
  "kind": "Content",
8232
- "text": "export default class BaseSwitch extends "
8232
+ "text": "_default: "
8233
+ },
8234
+ {
8235
+ "kind": "Content",
8236
+ "text": "import(\"vue\")."
8233
8237
  },
8234
8238
  {
8235
8239
  "kind": "Reference",
8236
- "text": "Vue",
8237
- "canonicalReference": "vue!Vue:interface"
8240
+ "text": "DefineComponent",
8241
+ "canonicalReference": "vue!DefineComponent:type"
8238
8242
  },
8239
8243
  {
8240
8244
  "kind": "Content",
8241
- "text": " "
8245
+ "text": "<{\n value: {\n type: "
8246
+ },
8247
+ {
8248
+ "kind": "Reference",
8249
+ "text": "BooleanConstructor",
8250
+ "canonicalReference": "!BooleanConstructor:interface"
8251
+ },
8252
+ {
8253
+ "kind": "Content",
8254
+ "text": ";\n required: true;\n };\n}, {\n cssClasses: import(\"vue\")."
8255
+ },
8256
+ {
8257
+ "kind": "Reference",
8258
+ "text": "Ref",
8259
+ "canonicalReference": "vue!Ref:interface"
8260
+ },
8261
+ {
8262
+ "kind": "Content",
8263
+ "text": "<string | import(\"@empathyco/x-utils\")."
8264
+ },
8265
+ {
8266
+ "kind": "Reference",
8267
+ "text": "Dictionary",
8268
+ "canonicalReference": "@empathyco/x-utils!Dictionary:type"
8269
+ },
8270
+ {
8271
+ "kind": "Content",
8272
+ "text": "<boolean> | (string | import(\"@empathyco/x-utils\")."
8273
+ },
8274
+ {
8275
+ "kind": "Reference",
8276
+ "text": "Dictionary",
8277
+ "canonicalReference": "@empathyco/x-utils!Dictionary:type"
8278
+ },
8279
+ {
8280
+ "kind": "Content",
8281
+ "text": "<boolean>)[]>;\n toggle: () => void;\n}, {}, {}, {}, import(\"vue/types/v3-component-options\")."
8282
+ },
8283
+ {
8284
+ "kind": "Reference",
8285
+ "text": "ComponentOptionsMixin",
8286
+ "canonicalReference": "vue!ComponentOptionsMixin:type"
8287
+ },
8288
+ {
8289
+ "kind": "Content",
8290
+ "text": ", import(\"vue/types/v3-component-options\")."
8291
+ },
8292
+ {
8293
+ "kind": "Reference",
8294
+ "text": "ComponentOptionsMixin",
8295
+ "canonicalReference": "vue!ComponentOptionsMixin:type"
8296
+ },
8297
+ {
8298
+ "kind": "Content",
8299
+ "text": ", (\"change\" | \"input\")[], string, "
8300
+ },
8301
+ {
8302
+ "kind": "Reference",
8303
+ "text": "Readonly",
8304
+ "canonicalReference": "!Readonly:type"
8305
+ },
8306
+ {
8307
+ "kind": "Content",
8308
+ "text": "<import(\"vue\")."
8309
+ },
8310
+ {
8311
+ "kind": "Reference",
8312
+ "text": "ExtractPropTypes",
8313
+ "canonicalReference": "vue!ExtractPropTypes:type"
8314
+ },
8315
+ {
8316
+ "kind": "Content",
8317
+ "text": "<{\n value: {\n type: "
8318
+ },
8319
+ {
8320
+ "kind": "Reference",
8321
+ "text": "BooleanConstructor",
8322
+ "canonicalReference": "!BooleanConstructor:interface"
8323
+ },
8324
+ {
8325
+ "kind": "Content",
8326
+ "text": ";\n required: true;\n };\n}>>, {}>"
8242
8327
  }
8243
8328
  ],
8244
8329
  "fileUrlPath": "dist/types/components/base-switch.vue.d.ts",
8330
+ "isReadonly": true,
8245
8331
  "releaseTag": "Public",
8246
- "isAbstract": false,
8247
8332
  "name": "BaseSwitch",
8248
- "preserveMemberOrder": false,
8249
- "members": [
8250
- {
8251
- "kind": "Property",
8252
- "canonicalReference": "@empathyco/x-components!BaseSwitch#value:member",
8253
- "docComment": "/**\n * The selected value of the switch.\n *\n * @public\n */\n",
8254
- "excerptTokens": [
8255
- {
8256
- "kind": "Content",
8257
- "text": "value: "
8258
- },
8259
- {
8260
- "kind": "Content",
8261
- "text": "boolean"
8262
- },
8263
- {
8264
- "kind": "Content",
8265
- "text": ";"
8266
- }
8267
- ],
8268
- "isReadonly": false,
8269
- "isOptional": false,
8270
- "releaseTag": "Public",
8271
- "name": "value",
8272
- "propertyTypeTokenRange": {
8273
- "startIndex": 1,
8274
- "endIndex": 2
8275
- },
8276
- "isStatic": false,
8277
- "isProtected": false,
8278
- "isAbstract": false
8279
- }
8280
- ],
8281
- "extendsTokenRange": {
8333
+ "variableTypeTokenRange": {
8282
8334
  "startIndex": 1,
8283
- "endIndex": 2
8284
- },
8285
- "implementsTokenRanges": []
8335
+ "endIndex": 22
8336
+ }
8286
8337
  },
8287
8338
  {
8288
8339
  "kind": "Class",
@@ -885,13 +885,20 @@ export class BaseSuggestions extends BaseSuggestions_base {
885
885
  }
886
886
 
887
887
  // @public
888
- export class BaseSwitch extends Vue_2 {
889
- // @internal
890
- protected get cssClasses(): VueCSSClasses;
891
- // @internal
892
- protected toggle(): void;
893
- value: boolean;
894
- }
888
+ export const BaseSwitch: DefineComponent< {
889
+ value: {
890
+ type: BooleanConstructor;
891
+ required: true;
892
+ };
893
+ }, {
894
+ cssClasses: Ref<string | Dictionary<boolean> | (string | Dictionary<boolean>)[]>;
895
+ toggle: () => void;
896
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("change" | "input")[], string, Readonly<ExtractPropTypes< {
897
+ value: {
898
+ type: BooleanConstructor;
899
+ required: true;
900
+ };
901
+ }>>, {}>;
895
902
 
896
903
  // Warning: (ae-forgotten-export) The symbol "BaseTabsPanel_base" needs to be exported by the entry point index.d.ts
897
904
  //
@@ -1,5 +1,3 @@
1
- import Vue from 'vue';
2
- import { VueCSSClasses } from '../utils/types';
3
1
  /**
4
2
  * Basic switch component to handle boolean values. This component receives
5
3
  * its selected state using a prop, and emits a Vue event whenever the user
@@ -7,26 +5,19 @@ import { VueCSSClasses } from '../utils/types';
7
5
  *
8
6
  * @public
9
7
  */
10
- export default class BaseSwitch extends Vue {
11
- /**
12
- * The selected value of the switch.
13
- *
14
- * @public
15
- */
16
- value: boolean;
17
- /**
18
- * Dynamic CSS classes to add to the switch component
19
- * depending on its internal state.
20
- *
21
- * @returns A boolean dictionary with dynamic CSS classes.
22
- * @internal
23
- */
24
- protected get cssClasses(): VueCSSClasses;
25
- /**
26
- * Emits a change event with the desired value of the switch.
27
- *
28
- * @internal
29
- */
30
- protected toggle(): void;
31
- }
8
+ declare const _default: import("vue").DefineComponent<{
9
+ value: {
10
+ type: BooleanConstructor;
11
+ required: true;
12
+ };
13
+ }, {
14
+ cssClasses: import("vue").Ref<string | import("@empathyco/x-utils").Dictionary<boolean> | (string | import("@empathyco/x-utils").Dictionary<boolean>)[]>;
15
+ toggle: () => void;
16
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("change" | "input")[], string, Readonly<import("vue").ExtractPropTypes<{
17
+ value: {
18
+ type: BooleanConstructor;
19
+ required: true;
20
+ };
21
+ }>>, {}>;
22
+ export default _default;
32
23
  //# sourceMappingURL=base-switch.vue?rollup-plugin-vue=script.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-switch.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../src/components/base-switch.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAaE,OAAO,GAAG,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C;;;;;;GAMG;AAMH,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,GAAG;IACzC;;;;OAIG;IAEI,KAAK,EAAG,OAAO,CAAC;IAEvB;;;;;;OAMG;IACH,SAAS,KAAK,UAAU,IAAI,aAAa,CAIxC;IAED;;;;OAIG;IACH,SAAS,CAAC,MAAM,IAAI,IAAI;CAGzB"}
1
+ {"version":3,"file":"base-switch.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../src/components/base-switch.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAgBE;;;;;;GAMG;;;;;;;;kBAiCoB,IAAI;;;;;;;AA/B3B,wBA+CG"}
@@ -1,13 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [BaseSwitch](./x-components.baseswitch.md) &gt; [value](./x-components.baseswitch.value.md)
4
-
5
- ## BaseSwitch.value property
6
-
7
- The selected value of the switch.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- value: boolean;
13
- ```