@empathyco/x-components 5.0.0-alpha.10 → 5.0.0-alpha.11

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 (38) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/core/index.js +1 -1
  3. package/design-system/deprecated-full-theme.css +134 -134
  4. package/docs/API-reference/api/x-components.collapseheight.md +18 -10
  5. package/docs/API-reference/api/x-components.collapsewidth.md +18 -10
  6. package/docs/API-reference/api/x-components.md +3 -3
  7. package/docs/API-reference/api/x-components.usecollapseanimation.md +30 -0
  8. package/js/components/animations/collapse-height.vue.js +1 -1
  9. package/js/components/animations/collapse-height.vue.js.map +1 -1
  10. package/js/components/animations/collapse-height.vue2.js +19 -19
  11. package/js/components/animations/collapse-height.vue2.js.map +1 -1
  12. package/js/components/animations/collapse-height.vue3.js +1 -1
  13. package/js/components/animations/collapse-width.vue.js +1 -1
  14. package/js/components/animations/collapse-width.vue.js.map +1 -1
  15. package/js/components/animations/collapse-width.vue2.js +19 -19
  16. package/js/components/animations/collapse-width.vue2.js.map +1 -1
  17. package/js/components/animations/collapse-width.vue3.js +1 -1
  18. package/js/components/animations/use-collapse-animation.js +58 -0
  19. package/js/components/animations/use-collapse-animation.js.map +1 -0
  20. package/js/index.js +1 -1
  21. package/package.json +2 -2
  22. package/report/x-components.api.json +263 -148
  23. package/report/x-components.api.md +43 -11
  24. package/types/components/animations/collapse-height.vue.d.ts +20 -3
  25. package/types/components/animations/collapse-height.vue.d.ts.map +1 -1
  26. package/types/components/animations/collapse-width.vue.d.ts +20 -3
  27. package/types/components/animations/collapse-width.vue.d.ts.map +1 -1
  28. package/types/components/animations/index.d.ts +1 -1
  29. package/types/components/animations/index.d.ts.map +1 -1
  30. package/types/components/animations/use-collapse-animation.d.ts +19 -0
  31. package/types/components/animations/use-collapse-animation.d.ts.map +1 -0
  32. package/docs/API-reference/api/x-components.collapseheight.appear.md +0 -13
  33. package/docs/API-reference/api/x-components.collapsewidth.appear.md +0 -13
  34. package/docs/API-reference/api/x-components.createcollapseanimationmixin.md +0 -26
  35. package/js/components/animations/animations.mixin.js +0 -59
  36. package/js/components/animations/animations.mixin.js.map +0 -1
  37. package/types/components/animations/animations.mixin.d.ts +0 -15
  38. package/types/components/animations/animations.mixin.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.0.0-alpha.11](https://github.com/empathyco/x/compare/@empathyco/x-components@5.0.0-alpha.10...@empathyco/x-components@5.0.0-alpha.11) (2024-05-13)
7
+
8
+
9
+ ### Features
10
+
11
+ * replace `AnimationsMixin` with `useCollapseAnimation` composable (#1468) ([e3ee9d9](https://github.com/empathyco/x/commit/e3ee9d94f9acc4abdcd1c591a754c86d9a6abbb7))
12
+
13
+
14
+
6
15
  ## [5.0.0-alpha.10](https://github.com/empathyco/x/compare/@empathyco/x-components@5.0.0-alpha.9...@empathyco/x-components@5.0.0-alpha.10) (2024-05-09)
7
16
 
8
17
 
package/core/index.js CHANGED
@@ -6,12 +6,12 @@ export { default as Fade } from '../js/components/animations/fade.vue.js';
6
6
  export { default as FadeAndSlide } from '../js/components/animations/fade-and-slide.vue.js';
7
7
  export { default as StaggeredFadeAndSlide } from '../js/components/animations/staggered-fade-and-slide.vue.js';
8
8
  export { default as StaggeringTransitionGroup } from '../js/components/animations/staggering-transition-group.vue.js';
9
- export { createCollapseAnimationMixin } from '../js/components/animations/animations.mixin.js';
10
9
  export { default as DisableAnimationMixin } from '../js/components/animations/disable-animation.mixin.js';
11
10
  export { createDirectionalAnimationFactory } from '../js/components/animations/create-directional-animation-factory.js';
12
11
  export { animateClipPath } from '../js/components/animations/animate-clip-path/animate-clip-path.factory.js';
13
12
  export { animateScale } from '../js/components/animations/animate-scale/animate-scale.factory.js';
14
13
  export { animateTranslate } from '../js/components/animations/animate-translate/animate-translate.factory.js';
14
+ export { useCollapseAnimation } from '../js/components/animations/use-collapse-animation.js';
15
15
  export { default as BaseColumnPickerDropdown } from '../js/components/column-picker/base-column-picker-dropdown.vue.js';
16
16
  export { default as BaseColumnPickerList } from '../js/components/column-picker/base-column-picker-list.vue.js';
17
17
  export { default as BaseCurrency } from '../js/components/currency/base-currency.vue.js';
@@ -1,5 +1,4 @@
1
1
 
2
-
3
2
  .x-uppercase {
4
3
  text-transform: uppercase;
5
4
  }
@@ -34,6 +33,7 @@
34
33
  -webkit-text-decoration-line: none;
35
34
  text-decoration-line: none;
36
35
  }
36
+
37
37
  .x-static {
38
38
  position: static !important;
39
39
  }
@@ -3387,12 +3387,12 @@
3387
3387
  .x-text--stroke.x-small {
3388
3388
  --x-string-text-decoration-small: line-through;
3389
3389
  }
3390
- :root {
3391
- --x-color-text-secondary: var(--x-color-base-neutral-35);
3392
- }
3393
3390
  .x-text--secondary {
3394
3391
  --x-color-text-default: var(--x-color-text-secondary);
3395
3392
  }
3393
+ :root {
3394
+ --x-color-text-secondary: var(--x-color-base-neutral-35);
3395
+ }
3396
3396
  .x-text--light.x-text {
3397
3397
  --x-number-font-weight-text: var(--x-number-font-weight-base-light);
3398
3398
  }
@@ -4941,10 +4941,6 @@
4941
4941
  --x-number-zoom-scale-picture: 1.1;
4942
4942
  --x-number-zoom-duration-picture: 0.3s;
4943
4943
  }
4944
- :root {
4945
- --x-number-zoom-scale-picture: 1.1;
4946
- --x-number-zoom-duration-picture: 0.3s;
4947
- }
4948
4944
 
4949
4945
  .x-picture--zoom .x-picture-image {
4950
4946
  transition: transform var(--x-number-zoom-duration-picture) ease-out;
@@ -4952,6 +4948,10 @@
4952
4948
  .x-picture--zoom .x-picture-image:hover {
4953
4949
  transform: scale(var(--x-number-zoom-scale-picture));
4954
4950
  }
4951
+ :root {
4952
+ --x-number-zoom-scale-picture: 1.1;
4953
+ --x-number-zoom-duration-picture: 0.3s;
4954
+ }
4955
4955
  :root {
4956
4956
  --x-number-aspect-ratio-picture: 1;
4957
4957
  }
@@ -4981,24 +4981,6 @@
4981
4981
  --x-mix-blend-mode-picture-fallback-default: var(--x-mix-blend-mode-picture-default);
4982
4982
  --x-mix-blend-mode-picture-placeholder-default: var(--x-mix-blend-mode-picture-default);
4983
4983
  }
4984
- :root {
4985
- --x-size-border-radius-picture-default: 0;
4986
- --x-size-border-radius-top-picture-default: var(--x-size-border-radius-picture-default);
4987
- --x-size-border-radius-right-picture-default: var(--x-size-border-radius-picture-default);
4988
- --x-size-border-radius-bottom-picture-default: var(--x-size-border-radius-picture-default);
4989
- --x-size-border-radius-left-picture-default: var(--x-size-border-radius-picture-default);
4990
- --x-color-background-picture-default: transparent;
4991
- --x-color-fill-picture-placeholder-path-default: var(--x-color-base-neutral-70);
4992
- --x-color-fill-picture-placeholder-rect-default: var(--x-color-base-neutral-95);
4993
- --x-color-fill-picture-fallback-path-default: var(--x-color-base-neutral-70);
4994
- --x-color-fill-picture-fallback-rect-default: var(--x-color-base-neutral-95);
4995
- --x-object-fit-picture-default: contain;
4996
- --x-object-fit-picture-fallback-default: var(--x-object-fit-picture-default);
4997
- --x-object-fit-picture-placeholder-default: var(--x-object-fit-picture-default);
4998
- --x-mix-blend-mode-picture-default: normal;
4999
- --x-mix-blend-mode-picture-fallback-default: var(--x-mix-blend-mode-picture-default);
5000
- --x-mix-blend-mode-picture-placeholder-default: var(--x-mix-blend-mode-picture-default);
5001
- }
5002
4984
 
5003
4985
  .x-picture {
5004
4986
  display: block;
@@ -7308,18 +7290,14 @@
7308
7290
  --x-size-width-icon-s: var(--x-size-base-03);
7309
7291
  --x-size-height-icon-s: var(--x-size-base-03);
7310
7292
  }
7311
- :root {
7312
- --x-size-width-icon-s: var(--x-size-base-03);
7313
- --x-size-height-icon-s: var(--x-size-base-03);
7314
- }
7315
7293
 
7316
7294
  .x-icon--s {
7317
7295
  --x-size-width-icon-default: var(--x-size-width-icon-s);
7318
7296
  --x-size-height-icon-default: var(--x-size-height-icon-s);
7319
7297
  }
7320
7298
  :root {
7321
- --x-size-width-icon-m: var(--x-size-base-05);
7322
- --x-size-height-icon-m: var(--x-size-base-05);
7299
+ --x-size-width-icon-s: var(--x-size-base-03);
7300
+ --x-size-height-icon-s: var(--x-size-base-03);
7323
7301
  }
7324
7302
  :root {
7325
7303
  --x-size-width-icon-m: var(--x-size-base-05);
@@ -7331,8 +7309,8 @@
7331
7309
  --x-size-height-icon-default: var(--x-size-height-icon-m);
7332
7310
  }
7333
7311
  :root {
7334
- --x-size-width-icon-l: var(--x-size-base-06);
7335
- --x-size-height-icon-l: var(--x-size-base-06);
7312
+ --x-size-width-icon-m: var(--x-size-base-05);
7313
+ --x-size-height-icon-m: var(--x-size-base-05);
7336
7314
  }
7337
7315
  :root {
7338
7316
  --x-size-width-icon-l: var(--x-size-base-06);
@@ -7343,6 +7321,10 @@
7343
7321
  --x-size-width-icon-default: var(--x-size-width-icon-l);
7344
7322
  --x-size-height-icon-default: var(--x-size-height-icon-l);
7345
7323
  }
7324
+ :root {
7325
+ --x-size-width-icon-l: var(--x-size-base-06);
7326
+ --x-size-height-icon-l: var(--x-size-base-06);
7327
+ }
7346
7328
  :root {
7347
7329
  --x-color-stroke-icon-default: currentColor;
7348
7330
  --x-color-fill-icon-default: none;
@@ -7413,6 +7395,13 @@
7413
7395
  .x-grid-list--cols-auto .x-grid-list__item {
7414
7396
  min-width: var(--x-size-min-width-grid-item);
7415
7397
  }
7398
+ :root {
7399
+ --x-size-margin-filter-children: 0;
7400
+ --x-size-padding-top-filter-children: 0;
7401
+ --x-size-padding-right-filter-children: 0;
7402
+ --x-size-padding-bottom-filter-children: 0;
7403
+ --x-size-padding-left-filter-children: var(--x-size-base-05);
7404
+ }
7416
7405
  .x-filter--justified.x-filter > *:last-child:not(.x-filter__label),
7417
7406
  .x-filter--justified.x-facet-filter > *:last-child:not(.x-filter__label),
7418
7407
  .x-filter--justified .x-filter > *:last-child:not(.x-filter__label),
@@ -7420,11 +7409,36 @@
7420
7409
  margin-left: auto;
7421
7410
  }
7422
7411
  :root {
7423
- --x-size-margin-filter-children: 0;
7424
- --x-size-padding-top-filter-children: 0;
7425
- --x-size-padding-right-filter-children: 0;
7426
- --x-size-padding-bottom-filter-children: 0;
7427
- --x-size-padding-left-filter-children: var(--x-size-base-05);
7412
+ --x-color-background-filter-default: transparent;
7413
+ --x-color-border-filter-default: var(--x-color-background-filter-default);
7414
+ --x-color-text-filter-default: var(--x-color-text-default);
7415
+ --x-color-background-filter-default-selected: var(--x-color-background-filter-default);
7416
+ --x-color-border-filter-default-selected: var(--x-color-border-filter-default);
7417
+ --x-color-text-filter-default-selected: var(--x-color-text-filter-default);
7418
+ --x-size-border-width-filter-default: var(--x-size-border-width-base);
7419
+ --x-size-border-width-top-filter-default: var(--x-size-border-width-filter-default);
7420
+ --x-size-border-width-right-filter-default: var(--x-size-border-width-filter-default);
7421
+ --x-size-border-width-bottom-filter-default: var(--x-size-border-width-filter-default);
7422
+ --x-size-border-width-left-filter-default: var(--x-size-border-width-filter-default);
7423
+ --x-size-border-radius-filter-default: var(--x-size-border-radius-base-none);
7424
+ --x-size-border-radius-top-left-filter-default: var(--x-size-border-radius-filter-default);
7425
+ --x-size-border-radius-top-right-filter-default: var(--x-size-border-radius-filter-default);
7426
+ --x-size-border-radius-bottom-right-filter-default: var(--x-size-border-radius-filter-default);
7427
+ --x-size-border-radius-bottom-left-filter-default: var(--x-size-border-radius-filter-default);
7428
+ --x-size-padding-top-filter-default: var(--x-size-base-03);
7429
+ --x-size-padding-right-filter-default: 0;
7430
+ --x-size-padding-bottom-filter-default: var(--x-size-base-03);
7431
+ --x-size-padding-left-filter-default: 0;
7432
+ --x-size-gap-filter-default: var(--x-size-base-03);
7433
+ --x-font-family-filter-default: var(--x-font-family-text);
7434
+ --x-size-font-filter-default: var(--x-size-font-text);
7435
+ --x-number-font-weight-filter-default: var(--x-number-font-weight-base-regular);
7436
+ --x-number-font-weight-filter-default-selected: var(--x-number-font-weight-base-bold);
7437
+ --x-number-font-weight-filter-count-default: var(--x-number-font-weight-base-light);
7438
+ --x-number-font-weight-filter-count-default-selected: var(
7439
+ --x-number-font-weight-filter-count-default
7440
+ );
7441
+ --x-size-line-height-filter-default: var(--x-size-line-height-text);
7428
7442
  }
7429
7443
  :root {
7430
7444
  --x-size-margin-filter-children: 0;
@@ -7459,36 +7473,22 @@
7459
7473
  width: 100%;
7460
7474
  }
7461
7475
  :root {
7462
- --x-color-background-filter-default: transparent;
7463
- --x-color-border-filter-default: var(--x-color-background-filter-default);
7464
- --x-color-text-filter-default: var(--x-color-text-default);
7465
- --x-color-background-filter-default-selected: var(--x-color-background-filter-default);
7466
- --x-color-border-filter-default-selected: var(--x-color-border-filter-default);
7467
- --x-color-text-filter-default-selected: var(--x-color-text-filter-default);
7468
- --x-size-border-width-filter-default: var(--x-size-border-width-base);
7469
- --x-size-border-width-top-filter-default: var(--x-size-border-width-filter-default);
7470
- --x-size-border-width-right-filter-default: var(--x-size-border-width-filter-default);
7471
- --x-size-border-width-bottom-filter-default: var(--x-size-border-width-filter-default);
7472
- --x-size-border-width-left-filter-default: var(--x-size-border-width-filter-default);
7473
- --x-size-border-radius-filter-default: var(--x-size-border-radius-base-none);
7474
- --x-size-border-radius-top-left-filter-default: var(--x-size-border-radius-filter-default);
7475
- --x-size-border-radius-top-right-filter-default: var(--x-size-border-radius-filter-default);
7476
- --x-size-border-radius-bottom-right-filter-default: var(--x-size-border-radius-filter-default);
7477
- --x-size-border-radius-bottom-left-filter-default: var(--x-size-border-radius-filter-default);
7478
- --x-size-padding-top-filter-default: var(--x-size-base-03);
7479
- --x-size-padding-right-filter-default: 0;
7480
- --x-size-padding-bottom-filter-default: var(--x-size-base-03);
7481
- --x-size-padding-left-filter-default: 0;
7482
- --x-size-gap-filter-default: var(--x-size-base-03);
7483
- --x-font-family-filter-default: var(--x-font-family-text);
7484
- --x-size-font-filter-default: var(--x-size-font-text);
7485
- --x-number-font-weight-filter-default: var(--x-number-font-weight-base-regular);
7486
- --x-number-font-weight-filter-default-selected: var(--x-number-font-weight-base-bold);
7487
- --x-number-font-weight-filter-count-default: var(--x-number-font-weight-base-light);
7488
- --x-number-font-weight-filter-count-default-selected: var(
7489
- --x-number-font-weight-filter-count-default
7490
- );
7491
- --x-size-line-height-filter-default: var(--x-size-line-height-text);
7476
+ --x-size-border-radius-picture-default: 0;
7477
+ --x-size-border-radius-top-picture-default: var(--x-size-border-radius-picture-default);
7478
+ --x-size-border-radius-right-picture-default: var(--x-size-border-radius-picture-default);
7479
+ --x-size-border-radius-bottom-picture-default: var(--x-size-border-radius-picture-default);
7480
+ --x-size-border-radius-left-picture-default: var(--x-size-border-radius-picture-default);
7481
+ --x-color-background-picture-default: transparent;
7482
+ --x-color-fill-picture-placeholder-path-default: var(--x-color-base-neutral-70);
7483
+ --x-color-fill-picture-placeholder-rect-default: var(--x-color-base-neutral-95);
7484
+ --x-color-fill-picture-fallback-path-default: var(--x-color-base-neutral-70);
7485
+ --x-color-fill-picture-fallback-rect-default: var(--x-color-base-neutral-95);
7486
+ --x-object-fit-picture-default: contain;
7487
+ --x-object-fit-picture-fallback-default: var(--x-object-fit-picture-default);
7488
+ --x-object-fit-picture-placeholder-default: var(--x-object-fit-picture-default);
7489
+ --x-mix-blend-mode-picture-default: normal;
7490
+ --x-mix-blend-mode-picture-fallback-default: var(--x-mix-blend-mode-picture-default);
7491
+ --x-mix-blend-mode-picture-placeholder-default: var(--x-mix-blend-mode-picture-default);
7492
7492
  }
7493
7493
  :root {
7494
7494
  --x-color-background-filter-default: transparent;
@@ -7616,34 +7616,6 @@
7616
7616
  --x-size-padding-bottom-facet-header-outlined: var(--x-size-padding-facet-header-outlined);
7617
7617
  --x-size-padding-left-facet-header-outlined: var(--x-size-padding-facet-header-outlined);
7618
7618
  }
7619
- :root {
7620
- --x-color-border-facet-outlined: var(--x-color-base-neutral-70);
7621
- --x-size-border-width-facet-outlined: var(--x-size-border-width-base);
7622
- --x-size-border-width-top-facet-outlined: var(--x-size-border-width-facet-outlined);
7623
- --x-size-border-width-right-facet-outlined: var(--x-size-border-width-facet-outlined);
7624
- --x-size-border-width-bottom-facet-outlined: var(--x-size-border-width-facet-outlined);
7625
- --x-size-border-width-left-facet-outlined: var(--x-size-border-width-facet-outlined);
7626
- --x-size-padding-facet-header-outlined: var(--x-size-base-03);
7627
- --x-size-padding-top-facet-header-outlined: var(--x-size-padding-facet-header-outlined);
7628
- --x-size-padding-right-facet-header-outlined: var(--x-size-padding-facet-header-outlined);
7629
- --x-size-padding-bottom-facet-header-outlined: var(--x-size-padding-facet-header-outlined);
7630
- --x-size-padding-left-facet-header-outlined: var(--x-size-padding-facet-header-outlined);
7631
- }
7632
-
7633
- .x-facet--outlined.x-facet,
7634
- .x-facet--outlined .x-facet {
7635
- --x-color-border-facet-default: var(--x-color-border-facet-outlined);
7636
- --x-size-border-width-facet-default: var(--x-size-border-width-facet-outlined);
7637
- --x-size-border-width-top-facet-default: var(--x-size-border-width-top-facet-outlined);
7638
- --x-size-border-width-right-facet-default: var(--x-size-border-width-right-facet-outlined);
7639
- --x-size-border-width-bottom-facet-default: var(--x-size-border-width-bottom-facet-outlined);
7640
- --x-size-border-width-left-facet-default: var(--x-size-border-width-left-facet-outlined);
7641
- --x-size-padding-facet-header-default: var(--x-size-padding-facet-header-outlined);
7642
- --x-size-padding-top-facet-header-default: var(--x-size-padding-top-facet-header-outlined);
7643
- --x-size-padding-right-facet-header-default: var(--x-size-padding-right-facet-header-outlined);
7644
- --x-size-padding-bottom-facet-header-default: var(--x-size-padding-bottom-facet-header-outlined);
7645
- --x-size-padding-left-facet-header-default: var(--x-size-padding-left-facet-header-outlined);
7646
- }
7647
7619
  :root {
7648
7620
  --x-color-border-facet-header-line: var(--x-color-base-neutral-10);
7649
7621
  --x-size-border-width-facet-header-line: var(--x-size-border-width-base);
@@ -7676,6 +7648,34 @@
7676
7648
  --x-size-border-width-left-facet-header-line
7677
7649
  );
7678
7650
  }
7651
+ :root {
7652
+ --x-color-border-facet-outlined: var(--x-color-base-neutral-70);
7653
+ --x-size-border-width-facet-outlined: var(--x-size-border-width-base);
7654
+ --x-size-border-width-top-facet-outlined: var(--x-size-border-width-facet-outlined);
7655
+ --x-size-border-width-right-facet-outlined: var(--x-size-border-width-facet-outlined);
7656
+ --x-size-border-width-bottom-facet-outlined: var(--x-size-border-width-facet-outlined);
7657
+ --x-size-border-width-left-facet-outlined: var(--x-size-border-width-facet-outlined);
7658
+ --x-size-padding-facet-header-outlined: var(--x-size-base-03);
7659
+ --x-size-padding-top-facet-header-outlined: var(--x-size-padding-facet-header-outlined);
7660
+ --x-size-padding-right-facet-header-outlined: var(--x-size-padding-facet-header-outlined);
7661
+ --x-size-padding-bottom-facet-header-outlined: var(--x-size-padding-facet-header-outlined);
7662
+ --x-size-padding-left-facet-header-outlined: var(--x-size-padding-facet-header-outlined);
7663
+ }
7664
+
7665
+ .x-facet--outlined.x-facet,
7666
+ .x-facet--outlined .x-facet {
7667
+ --x-color-border-facet-default: var(--x-color-border-facet-outlined);
7668
+ --x-size-border-width-facet-default: var(--x-size-border-width-facet-outlined);
7669
+ --x-size-border-width-top-facet-default: var(--x-size-border-width-top-facet-outlined);
7670
+ --x-size-border-width-right-facet-default: var(--x-size-border-width-right-facet-outlined);
7671
+ --x-size-border-width-bottom-facet-default: var(--x-size-border-width-bottom-facet-outlined);
7672
+ --x-size-border-width-left-facet-default: var(--x-size-border-width-left-facet-outlined);
7673
+ --x-size-padding-facet-header-default: var(--x-size-padding-facet-header-outlined);
7674
+ --x-size-padding-top-facet-header-default: var(--x-size-padding-top-facet-header-outlined);
7675
+ --x-size-padding-right-facet-header-default: var(--x-size-padding-right-facet-header-outlined);
7676
+ --x-size-padding-bottom-facet-header-default: var(--x-size-padding-bottom-facet-header-outlined);
7677
+ --x-size-padding-left-facet-header-default: var(--x-size-padding-left-facet-header-outlined);
7678
+ }
7679
7679
  :root {
7680
7680
  --x-color-background-facet-default: transparent;
7681
7681
  --x-color-border-facet-default: var(--x-color-background-facet-default);
@@ -8045,13 +8045,13 @@
8045
8045
  :root {
8046
8046
  --x-size-width-dropdown-l: 202px;
8047
8047
  }
8048
- :root {
8049
- --x-size-width-dropdown-l: 202px;
8050
- }
8051
8048
 
8052
8049
  .x-dropdown.x-dropdown--l {
8053
8050
  --x-size-width-dropdown-toggle-default: var(--x-size-width-dropdown-l);
8054
8051
  }
8052
+ :root {
8053
+ --x-size-width-dropdown-l: 202px;
8054
+ }
8055
8055
  :root {
8056
8056
  --x-size-border-radius-dropdown-default: var(--x-size-border-radius-base-none);
8057
8057
  --x-size-border-radius-top-left-dropdown-default: var(--x-size-border-radius-dropdown-default);
@@ -8582,11 +8582,6 @@
8582
8582
  --x-color-border-button-ghost: transparent;
8583
8583
  --x-color-text-button-ghost: var(--x-color-base-lead);
8584
8584
  }
8585
- :root {
8586
- --x-color-background-button-ghost: transparent;
8587
- --x-color-border-button-ghost: transparent;
8588
- --x-color-text-button-ghost: var(--x-color-base-lead);
8589
- }
8590
8585
 
8591
8586
  .x-button--ghost.x-button,
8592
8587
  .x-button--ghost .x-button {
@@ -8604,6 +8599,11 @@
8604
8599
  .x-button--ghost.x-button--ghost-end .x-button {
8605
8600
  --x-size-padding-right-button-default: 0;
8606
8601
  }
8602
+ :root {
8603
+ --x-color-background-button-ghost: transparent;
8604
+ --x-color-border-button-ghost: transparent;
8605
+ --x-color-text-button-ghost: var(--x-color-base-lead);
8606
+ }
8607
8607
  :root {
8608
8608
  --x-color-background-button-default: var(--x-color-base-lead);
8609
8609
  --x-color-border-button-default: var(--x-color-background-button-default);
@@ -8719,28 +8719,6 @@
8719
8719
  --x-size-border-radius-bottom-right-button-card: var(--x-size-border-radius-button-card);
8720
8720
  --x-size-border-radius-bottom-left-button-card: var(--x-size-border-radius-button-card);
8721
8721
  }
8722
- :root {
8723
- --x-size-border-radius-button-card: var(--x-size-border-radius-base-s);
8724
- --x-size-border-radius-top-left-button-card: var(--x-size-border-radius-button-card);
8725
- --x-size-border-radius-top-right-button-card: var(--x-size-border-radius-button-card);
8726
- --x-size-border-radius-bottom-right-button-card: var(--x-size-border-radius-button-card);
8727
- --x-size-border-radius-bottom-left-button-card: var(--x-size-border-radius-button-card);
8728
- }
8729
-
8730
- .x-button--card.x-button,
8731
- .x-button--card .x-button {
8732
- --x-size-border-radius-button-default: var(--x-size-border-radius-button-card);
8733
- --x-size-border-radius-top-left-button-default: var(--x-size-border-radius-top-left-button-card);
8734
- --x-size-border-radius-top-right-button-default: var(
8735
- --x-size-border-radius-top-right-button-card
8736
- );
8737
- --x-size-border-radius-bottom-right-button-default: var(
8738
- --x-size-border-radius-bottom-right-button-card
8739
- );
8740
- --x-size-border-radius-bottom-left-button-default: var(
8741
- --x-size-border-radius-bottom-left-button-card
8742
- );
8743
- }
8744
8722
  :root {
8745
8723
  --x-color-background-badge-default: var(--x-color-base-neutral-10);
8746
8724
  --x-color-text-badge-default: var(--x-color-base-neutral-100);
@@ -8800,6 +8778,28 @@
8800
8778
  .x-badge-container {
8801
8779
  position: relative;
8802
8780
  }
8781
+ :root {
8782
+ --x-size-border-radius-button-card: var(--x-size-border-radius-base-s);
8783
+ --x-size-border-radius-top-left-button-card: var(--x-size-border-radius-button-card);
8784
+ --x-size-border-radius-top-right-button-card: var(--x-size-border-radius-button-card);
8785
+ --x-size-border-radius-bottom-right-button-card: var(--x-size-border-radius-button-card);
8786
+ --x-size-border-radius-bottom-left-button-card: var(--x-size-border-radius-button-card);
8787
+ }
8788
+
8789
+ .x-button--card.x-button,
8790
+ .x-button--card .x-button {
8791
+ --x-size-border-radius-button-default: var(--x-size-border-radius-button-card);
8792
+ --x-size-border-radius-top-left-button-default: var(--x-size-border-radius-top-left-button-card);
8793
+ --x-size-border-radius-top-right-button-default: var(
8794
+ --x-size-border-radius-top-right-button-card
8795
+ );
8796
+ --x-size-border-radius-bottom-right-button-default: var(
8797
+ --x-size-border-radius-bottom-right-button-card
8798
+ );
8799
+ --x-size-border-radius-bottom-left-button-default: var(
8800
+ --x-size-border-radius-bottom-left-button-card
8801
+ );
8802
+ }
8803
8803
  :root {
8804
8804
  --x-size-base-01: 2px;
8805
8805
  --x-size-base-02: 4px;
@@ -8822,6 +8822,13 @@
8822
8822
  --x-size-base-19: 280px;
8823
8823
  --x-size-base-20: 344px;
8824
8824
  }
8825
+ :root {
8826
+ --x-size-border-radius-base-none: 0;
8827
+ --x-size-border-radius-base-s: var(--x-size-base-02);
8828
+ --x-size-border-radius-base-m: var(--x-size-base-06);
8829
+ --x-size-border-radius-base-pill: 99999px;
8830
+ --x-size-border-width-base: 1px;
8831
+ }
8825
8832
  :root {
8826
8833
  --x-color-base-lead: #243d48;
8827
8834
  --x-color-base-auxiliary: #bfe1ec;
@@ -8834,11 +8841,4 @@
8834
8841
  --x-color-base-enable: #00705c;
8835
8842
  --x-color-base-disable: #e11f26;
8836
8843
  --x-color-base-transparent: transparent;
8837
- }
8838
- :root {
8839
- --x-size-border-radius-base-none: 0;
8840
- --x-size-border-radius-base-s: var(--x-size-base-02);
8841
- --x-size-border-radius-base-m: var(--x-size-base-06);
8842
- --x-size-border-radius-base-pill: 99999px;
8843
- --x-size-border-width-base: 1px;
8844
8844
  }
@@ -2,20 +2,28 @@
2
2
 
3
3
  [Home](./index.md) > [@empathyco/x-components](./x-components.md) > [CollapseHeight](./x-components.collapseheight.md)
4
4
 
5
- ## CollapseHeight class
5
+ ## CollapseHeight variable
6
6
 
7
7
  Renders a transition wrapping the element passed in the default slot and animating it with a height animation.
8
8
 
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export default class CollapseHeight extends Vue
12
+ _default: import("vue").DefineComponent<{
13
+ appear: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ }, {
18
+ expand: (element: HTMLElement) => void;
19
+ cleanUpAnimationStyles: (element: HTMLElement) => void;
20
+ collapse: (element: HTMLElement) => void;
21
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
22
+ appear: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ }>>, {
27
+ appear: boolean;
28
+ }>
13
29
  ```
14
- **Extends:** Vue
15
-
16
- ## Properties
17
-
18
- | Property | Modifiers | Type | Description |
19
- | --- | --- | --- | --- |
20
- | [appear](./x-components.collapseheight.appear.md) | | boolean | Indicates if the transition must be applied on the initial render of the node. |
21
-
@@ -2,20 +2,28 @@
2
2
 
3
3
  [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [CollapseWidth](./x-components.collapsewidth.md)
4
4
 
5
- ## CollapseWidth class
5
+ ## CollapseWidth variable
6
6
 
7
7
  Renders a transition wrapping the element passed in the default slot and animating it with a width animation.
8
8
 
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export default class CollapseWidth extends Vue
12
+ _default: import("vue").DefineComponent<{
13
+ appear: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ }, {
18
+ expand: (element: HTMLElement) => void;
19
+ cleanUpAnimationStyles: (element: HTMLElement) => void;
20
+ collapse: (element: HTMLElement) => void;
21
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
22
+ appear: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ }>>, {
27
+ appear: boolean;
28
+ }>
13
29
  ```
14
- **Extends:** Vue
15
-
16
- ## Properties
17
-
18
- | Property | Modifiers | Type | Description |
19
- | --- | --- | --- | --- |
20
- | [appear](./x-components.collapsewidth.appear.md) | | boolean | Indicates if the transition must be applied on the initial render of the node. |
21
-
@@ -27,8 +27,6 @@ X-Components is a library usable everywhere not only for search experiences.
27
27
  | [BaseXAPI](./x-components.basexapi.md) | Default implementation for [XAPI](./x-components.xapi.md)<!-- -->. |
28
28
  | [ClearHistoryQueries](./x-components.clearhistoryqueries.md) | A button that when is pressed, emits the [HistoryQueriesXEvents.UserPressedClearHistoryQueries](./x-components.historyqueriesxevents.userpressedclearhistoryqueries.md) event, expressing the user intention to clear the whole history of queries. |
29
29
  | [ClearSearchInput](./x-components.clearsearchinput.md) | This component renders a button to delete the current query. |
30
- | [CollapseHeight](./x-components.collapseheight.md) | Renders a transition wrapping the element passed in the default slot and animating it with a height animation. |
31
- | [CollapseWidth](./x-components.collapsewidth.md) | Renders a transition wrapping the element passed in the default slot and animating it with a width animation. |
32
30
  | [DefaultFacetsService](./x-components.defaultfacetsservice.md) | Default implementation for the [FacetsService](./x-components.facetsservice.md)<!-- -->. |
33
31
  | [DefaultPDPAddToCartService](./x-components.defaultpdpaddtocartservice.md) | Default implementation for the [PDPAddToCartService](./x-components.pdpaddtocartservice.md)<!-- -->. |
34
32
  | [DeviceDetector](./x-components.devicedetector.md) | This component helps to detect or setting a device, that can be used later to create different layouts optimized for different devices. This detected device is available under the [XComponentAliasAPI.device](./x-components.xcomponentaliasapi.device.md) property. |
@@ -110,7 +108,6 @@ X-Components is a library usable everywhere not only for search experiences.
110
108
  | [assertXPluginOptionsAreValid(options)](./x-components.assertxpluginoptionsarevalid.md) | Asserts that the passed options object is valid, providing helpful error messages. |
111
109
  | [capitalize(str)](./x-components.capitalize.md) | Util to capitalize a string . |
112
110
  | [clone(something)](./x-components.clone.md) | Deeply clones an object or an array. |
113
- | [createCollapseAnimationMixin(property)](./x-components.createcollapseanimationmixin.md) | Adds parametrized methods to a component to allow the collapsing of the provided property. |
114
111
  | [createFetchAndSaveActions({ fetch, onSuccess, onError, onCancel })](./x-components.createfetchandsaveactions.md) | Utility to create an action that requests and save some data asynchronously, with the option to cancel the request at any moment. This factory provides with the standard flow for requesting, cancelling, handling errors for a module, while also taking care of its status. |
115
112
  | [createRawFilters(filterIds)](./x-components.createrawfilters.md) | Helper method which creates the filter entity from the filter ir of the url. |
116
113
  | [createSetQueryTaggingFromQueryPreview()](./x-components.createsetquerytaggingfromquerypreview.md) | Factory helper to create a wire to set the queryTagging. |
@@ -157,6 +154,7 @@ X-Components is a library usable everywhere not only for search experiences.
157
154
  | [throttle(wire, timeInMs, options)](./x-components.throttle.md) | Creates a throttled [Wire](./x-components.wire.md)<!-- -->. Being throttled means that it will only be executed once every couple of milliseconds given by the <code>timeInMs</code> parameter. |
158
155
  | [toKebabCase(str)](./x-components.tokebabcase.md) | Util to transform string a into kebab case. |
159
156
  | [use$x()](./x-components.use_x.md) | Function which returns the <code>$x</code> object from the current component instance. |
157
+ | [useCollapseAnimation(property)](./x-components.usecollapseanimation.md) | Returns parametrized methods to use in a component to allow the collapsing of the provided property. |
160
158
  | [useEmitDisplayEvent({ element, taggingRequest, eventMetadata })](./x-components.useemitdisplayevent.md) | Composable that emits a <code>TrackableElementDisplayed</code> event whenever the provided element appears in the viewport for the first time. |
161
159
  | [useFacets(props)](./x-components.usefacets.md) | Composable to share Facets logic. |
162
160
  | [useGetter(module, getters)](./x-components.usegetter.md) | Function which returns the requested getters as a dictionary of getters. |
@@ -441,6 +439,8 @@ X-Components is a library usable everywhere not only for search experiences.
441
439
  | [clearSelectedQueryPreviewWire](./x-components.clearselectedquerypreviewwire.md) | Clears the selected query preview object from queries preview module. |
442
440
  | [clearSelectedRelatedTags](./x-components.clearselectedrelatedtags.md) | Clear the selected related tags. |
443
441
  | [CloseMainModal](./x-components.closemainmodal.md) | Button to close the [MainModal](./x-components.mainmodal.md)<!-- -->. |
442
+ | [CollapseHeight](./x-components.collapseheight.md) | Renders a transition wrapping the element passed in the default slot and animating it with a height animation. |
443
+ | [CollapseWidth](./x-components.collapsewidth.md) | Renders a transition wrapping the element passed in the default slot and animating it with a width animation. |
444
444
  | [CornerArrowLeft](./x-components.cornerarrowleft.md) | |
445
445
  | [CornerArrowRight](./x-components.cornerarrowright.md) | |
446
446
  | [CrossFade](./x-components.crossfade.md) | Renders a transition wrapping the element passed in the default slot. The transition fades between the two toggled elements at the same time. |
@@ -0,0 +1,30 @@
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; [useCollapseAnimation](./x-components.usecollapseanimation.md)
4
+
5
+ ## useCollapseAnimation() function
6
+
7
+ Returns parametrized methods to use in a component to allow the collapsing of the provided property.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export declare function useCollapseAnimation(property: AnimatedProperty): {
13
+ expand: (element: HTMLElement) => void;
14
+ cleanUpAnimationStyles: (element: HTMLElement) => void;
15
+ collapse: (element: HTMLElement) => void;
16
+ };
17
+ ```
18
+
19
+ ## Parameters
20
+
21
+ | Parameter | Type | Description |
22
+ | --- | --- | --- |
23
+ | property | AnimatedProperty | The property that will be animated. |
24
+
25
+ **Returns:**
26
+
27
+ { expand: (element: HTMLElement) =&gt; void; cleanUpAnimationStyles: (element: HTMLElement) =&gt; void; collapse: (element: HTMLElement) =&gt; void; }
28
+
29
+ Composable for the module.
30
+
@@ -37,7 +37,7 @@ __vue_render__._withStripped = true;
37
37
  /* style */
38
38
  const __vue_inject_styles__ = undefined;
39
39
  /* scoped */
40
- const __vue_scope_id__ = "data-v-a801a3a8";
40
+ const __vue_scope_id__ = "data-v-3ad4c84c";
41
41
  /* module identifier */
42
42
  const __vue_module_identifier__ = undefined;
43
43
  /* functional template */
@@ -1 +1 @@
1
- {"version":3,"file":"collapse-height.vue.js","sources":["../../../../src/components/animations/collapse-height.vue"],"sourcesContent":["<template>\n <transition\n v-on=\"$listeners\"\n @enter=\"expand\"\n @after-enter=\"cleanUpAnimationStyles\"\n @leave=\"collapse\"\n name=\"x-collapse-height-\"\n v-bind=\"$attrs\"\n :appear=\"appear\"\n >\n <!-- @slot (Required) to add content to the transition -->\n <slot />\n </transition>\n</template>\n\n<script lang=\"ts\">\n import Vue from 'vue';\n import { Component, Prop } from 'vue-property-decorator';\n import { createCollapseAnimationMixin } from './animations.mixin';\n\n /**\n * Renders a transition wrapping the element passed in the default slot and animating\n * it with a height animation.\n *\n * @public\n */\n @Component({\n mixins: [createCollapseAnimationMixin('height')],\n inheritAttrs: false\n })\n export default class CollapseHeight extends Vue {\n /**\n * Indicates if the transition must be applied on the initial render of the node.\n */\n @Prop({\n type: Boolean,\n default: true\n })\n public appear!: boolean;\n // TODO Add support for extending enter, after-enter and leave transitions\n }\n</script>\n\n<style lang=\"scss\" scoped>\n .x-collapse-height {\n &--enter-active,\n &--leave-active {\n transition: height 0.3s ease-out;\n overflow: hidden;\n }\n }\n</style>\n\n<docs lang=\"mdx\">\n## Examples\n\nThe CollapseHeight component is intended to be used as animation to wrap an element with v-if or\nv-show and animate it. The animation consists on scale its height size from 0 to auto. This\ntransition does not work with components that have vertical margin, padding or border.\n\nUsed wrapping a component:\n\n```vue\n<CollapseHeight>\n <ComponentOrElement v-if=\"open\"/>\n</CollapseHeight>\n```\n</docs>\n"],"names":[],"mappings":";;;;;AAEA,MAAc,cAAA,GAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"collapse-height.vue.js","sources":["../../../../src/components/animations/collapse-height.vue"],"sourcesContent":["<template>\n <transition\n v-on=\"$listeners\"\n @enter=\"expand\"\n @after-enter=\"cleanUpAnimationStyles\"\n @leave=\"collapse\"\n name=\"x-collapse-height-\"\n v-bind=\"$attrs\"\n :appear=\"appear\"\n >\n <!-- @slot (Required) to add content to the transition -->\n <slot />\n </transition>\n</template>\n\n<script lang=\"ts\">\n import { defineComponent } from 'vue';\n import { useCollapseAnimation } from './use-collapse-animation';\n\n /**\n * Renders a transition wrapping the element passed in the default slot and animating\n * it with a height animation.\n *\n * @public\n */\n export default defineComponent({\n name: 'CollapseHeight',\n inheritAttrs: false,\n props: {\n /**\n * Indicates if the transition must be applied on the initial render of the node.\n */\n appear: {\n type: Boolean,\n default: true\n }\n },\n setup: function () {\n return useCollapseAnimation('height');\n }\n // TODO Add support for extending enter, after-enter and leave transitions\n });\n</script>\n\n<style lang=\"scss\" scoped>\n .x-collapse-height {\n &--enter-active,\n &--leave-active {\n transition: height 0.3s ease-out;\n overflow: hidden;\n }\n }\n</style>\n\n<docs lang=\"mdx\">\n## Examples\n\nThe CollapseHeight component is intended to be used as animation to wrap an element with v-if or\nv-show and animate it. The animation consists on scale its height size from 0 to auto. This\ntransition does not work with components that have vertical margin, padding or border.\n\nUsed wrapping a component:\n\n```vue\n<CollapseHeight>\n <ComponentOrElement v-if=\"open\"/>\n</CollapseHeight>\n```\n</docs>\n"],"names":[],"mappings":";;;;;AAEA,MAAc,cAAA,GAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}