@empathyco/x-components 6.0.0-alpha.219 → 6.0.0-alpha.220

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 (157) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/docs/API-reference/components/ai/x-components.ai-overview.md +4 -4
  3. package/docs/API-reference/components/common/animations/x-components.animate-width.md +4 -4
  4. package/docs/API-reference/components/common/animations/x-components.change-height.md +10 -6
  5. package/docs/API-reference/components/common/animations/x-components.collapse-height.md +15 -11
  6. package/docs/API-reference/components/common/animations/x-components.collapse-width.md +12 -10
  7. package/docs/API-reference/components/common/animations/x-components.cross-fade.md +9 -9
  8. package/docs/API-reference/components/common/animations/x-components.fade-and-slide.md +6 -6
  9. package/docs/API-reference/components/common/animations/x-components.fade.md +9 -9
  10. package/docs/API-reference/components/common/animations/x-components.no-animation.md +2 -2
  11. package/docs/API-reference/components/common/animations/x-components.staggered-fade-and-slide.md +5 -5
  12. package/docs/API-reference/components/common/column-picker/x-components.base-column-picker-dropdown.md +13 -9
  13. package/docs/API-reference/components/common/column-picker/x-components.base-column-picker-list.md +18 -18
  14. package/docs/API-reference/components/common/currency/x-components.base-currency.md +15 -15
  15. package/docs/API-reference/components/common/filters/labels/x-components.base-price-filter-label.md +6 -2
  16. package/docs/API-reference/components/common/filters/labels/x-components.base-rating-filter-label.md +26 -26
  17. package/docs/API-reference/components/common/layouts/x-components.fixed-header-and-asides-layout.md +1 -1
  18. package/docs/API-reference/components/common/layouts/x-components.multi-column-max-width-layout.md +1 -1
  19. package/docs/API-reference/components/common/layouts/x-components.single-column-layout.md +1 -1
  20. package/docs/API-reference/components/common/modals/x-components.base-events-modal-close.md +5 -3
  21. package/docs/API-reference/components/common/modals/x-components.base-events-modal-open.md +2 -2
  22. package/docs/API-reference/components/common/modals/x-components.base-events-modal.md +28 -10
  23. package/docs/API-reference/components/common/modals/x-components.base-id-modal-close.md +2 -2
  24. package/docs/API-reference/components/common/modals/x-components.base-id-modal-open.md +2 -2
  25. package/docs/API-reference/components/common/modals/x-components.base-id-modal.md +10 -2
  26. package/docs/API-reference/components/common/modals/x-components.base-modal.md +12 -12
  27. package/docs/API-reference/components/common/modals/x-components.close-main-modal.md +5 -1
  28. package/docs/API-reference/components/common/modals/x-components.main-modal.md +20 -4
  29. package/docs/API-reference/components/common/modals/x-components.open-main-modal.md +5 -1
  30. package/docs/API-reference/components/common/panels/x-components.base-header-toggle-panel.md +17 -13
  31. package/docs/API-reference/components/common/panels/x-components.base-id-toggle-panel-button.md +11 -4
  32. package/docs/API-reference/components/common/panels/x-components.base-id-toggle-panel.md +20 -13
  33. package/docs/API-reference/components/common/panels/x-components.base-tabs-panel.md +13 -10
  34. package/docs/API-reference/components/common/panels/x-components.base-toggle-panel.md +4 -4
  35. package/docs/API-reference/components/common/result/x-components.base-result-add-to-cart.md +4 -4
  36. package/docs/API-reference/components/common/result/x-components.base-result-current-price.md +7 -5
  37. package/docs/API-reference/components/common/result/x-components.base-result-image.md +25 -19
  38. package/docs/API-reference/components/common/result/x-components.base-result-link.md +5 -5
  39. package/docs/API-reference/components/common/result/x-components.base-result-previous-price.md +7 -5
  40. package/docs/API-reference/components/common/result/x-components.base-result-rating.md +26 -23
  41. package/docs/API-reference/components/common/result/x-components.result-variant-selector.md +62 -42
  42. package/docs/API-reference/components/common/result/x-components.result-variants-provider.md +35 -25
  43. package/docs/API-reference/components/common/scroll/x-components.base-scroll.md +11 -11
  44. package/docs/API-reference/components/common/suggestions/x-components.base-suggestion.md +24 -24
  45. package/docs/API-reference/components/common/suggestions/x-components.base-suggestions.md +47 -44
  46. package/docs/API-reference/components/common/x-components.auto-progress-bar.md +8 -5
  47. package/docs/API-reference/components/common/x-components.base-dropdown.md +7 -5
  48. package/docs/API-reference/components/common/x-components.base-event-button.md +9 -7
  49. package/docs/API-reference/components/common/x-components.base-grid.md +23 -23
  50. package/docs/API-reference/components/common/x-components.base-keyboard-navigation.md +6 -6
  51. package/docs/API-reference/components/common/x-components.base-rating.md +3 -3
  52. package/docs/API-reference/components/common/x-components.base-slider.md +20 -16
  53. package/docs/API-reference/components/common/x-components.base-switch.md +6 -6
  54. package/docs/API-reference/components/common/x-components.base-variable-column-grid.md +37 -28
  55. package/docs/API-reference/components/common/x-components.display-click-provider.md +9 -9
  56. package/docs/API-reference/components/common/x-components.display-emitter.md +1 -1
  57. package/docs/API-reference/components/common/x-components.global-x-bus.md +3 -3
  58. package/docs/API-reference/components/common/x-components.highlight.md +6 -6
  59. package/docs/API-reference/components/common/x-components.location-provider.md +4 -4
  60. package/docs/API-reference/components/common/x-components.page-loader-button.md +14 -14
  61. package/docs/API-reference/components/common/x-components.page-selector.md +12 -12
  62. package/docs/API-reference/components/common/x-components.sliding-panel.md +23 -20
  63. package/docs/API-reference/components/common/x-components.snippet-callbacks.md +3 -3
  64. package/docs/API-reference/components/device/x-components.device-detector.md +15 -15
  65. package/docs/API-reference/components/empathize/x-components.empathize.md +20 -20
  66. package/docs/API-reference/components/experience-controls/x-components.experience-controls.md +1 -1
  67. package/docs/API-reference/components/extra-params/x-components.extra-params.md +3 -3
  68. package/docs/API-reference/components/extra-params/x-components.renderless-extra-param.md +9 -5
  69. package/docs/API-reference/components/extra-params/x-components.snippet-config-extra-params.md +8 -8
  70. package/docs/API-reference/components/facets/x-components.clear-filters.md +10 -6
  71. package/docs/API-reference/components/facets/x-components.facets/facets-provider.md +16 -16
  72. package/docs/API-reference/components/facets/x-components.facets/facets.md +15 -9
  73. package/docs/API-reference/components/facets/x-components.filters/all-filter.md +20 -6
  74. package/docs/API-reference/components/facets/x-components.filters/editable-number-range-filter.md +37 -30
  75. package/docs/API-reference/components/facets/x-components.filters/hierarchical-filter.md +33 -27
  76. package/docs/API-reference/components/facets/x-components.filters/number-range-filter.md +19 -16
  77. package/docs/API-reference/components/facets/x-components.filters/renderless-filter.md +17 -15
  78. package/docs/API-reference/components/facets/x-components.filters/simple-filter.md +38 -32
  79. package/docs/API-reference/components/facets/x-components.lists/exclude-filters-with-no-results.md +30 -30
  80. package/docs/API-reference/components/facets/x-components.lists/filters-list.md +15 -15
  81. package/docs/API-reference/components/facets/x-components.lists/filters-search.md +31 -22
  82. package/docs/API-reference/components/facets/x-components.lists/selected-filters-list.md +8 -6
  83. package/docs/API-reference/components/facets/x-components.lists/selected-filters.md +5 -5
  84. package/docs/API-reference/components/facets/x-components.lists/sliced-filters.md +35 -8
  85. package/docs/API-reference/components/facets/x-components.lists/sorted-filters.md +7 -2
  86. package/docs/API-reference/components/facets/x-components.preselected-filters.md +15 -9
  87. package/docs/API-reference/components/history-queries/x-components.clear-history-queries.md +8 -5
  88. package/docs/API-reference/components/history-queries/x-components.history-queries-switch.md +12 -9
  89. package/docs/API-reference/components/history-queries/x-components.history-queries.md +18 -15
  90. package/docs/API-reference/components/history-queries/x-components.history-query.md +21 -21
  91. package/docs/API-reference/components/history-queries/x-components.my-history.md +14 -11
  92. package/docs/API-reference/components/history-queries/x-components.remove-history-query.md +5 -5
  93. package/docs/API-reference/components/identifier-results/x-components.identifier-result.md +3 -3
  94. package/docs/API-reference/components/identifier-results/x-components.identifier-results.md +7 -7
  95. package/docs/API-reference/components/next-queries/x-components.next-queries-list.md +20 -15
  96. package/docs/API-reference/components/next-queries/x-components.next-queries.md +17 -13
  97. package/docs/API-reference/components/next-queries/x-components.next-query-preview.md +36 -25
  98. package/docs/API-reference/components/next-queries/x-components.next-query.md +14 -12
  99. package/docs/API-reference/components/popular-searches/x-components.popular-search.md +11 -11
  100. package/docs/API-reference/components/popular-searches/x-components.popular-searches.md +10 -7
  101. package/docs/API-reference/components/queries-preview/x-components.query-preview-button.md +6 -6
  102. package/docs/API-reference/components/queries-preview/x-components.query-preview-list.md +23 -21
  103. package/docs/API-reference/components/queries-preview/x-components.query-preview.md +27 -16
  104. package/docs/API-reference/components/query-suggestions/x-components.query-suggestion.md +20 -17
  105. package/docs/API-reference/components/query-suggestions/x-components.query-suggestions.md +16 -13
  106. package/docs/API-reference/components/recommendations/x-components.recommendations.md +23 -12
  107. package/docs/API-reference/components/related-prompts/x-components.related-prompt.md +12 -12
  108. package/docs/API-reference/components/related-prompts/x-components.related-prompts-list.md +13 -13
  109. package/docs/API-reference/components/related-prompts/x-components.related-prompts-tag-list.md +8 -5
  110. package/docs/API-reference/components/related-tags/x-components.related-tag.md +16 -16
  111. package/docs/API-reference/components/related-tags/x-components.related-tags.md +19 -16
  112. package/docs/API-reference/components/scroll/x-components.main-scroll-item.md +9 -5
  113. package/docs/API-reference/components/scroll/x-components.main-scroll.md +16 -8
  114. package/docs/API-reference/components/scroll/x-components.scroll-to-top.md +1 -1
  115. package/docs/API-reference/components/scroll/x-components.scroll.md +27 -27
  116. package/docs/API-reference/components/search/x-components.banner.md +16 -16
  117. package/docs/API-reference/components/search/x-components.banners-list.md +13 -13
  118. package/docs/API-reference/components/search/x-components.fallback-disclaimer.md +4 -4
  119. package/docs/API-reference/components/search/x-components.partial-query-button.md +6 -6
  120. package/docs/API-reference/components/search/x-components.partial-results-list.md +11 -7
  121. package/docs/API-reference/components/search/x-components.promoted.md +16 -16
  122. package/docs/API-reference/components/search/x-components.promoteds-list.md +13 -13
  123. package/docs/API-reference/components/search/x-components.redirection.md +2 -2
  124. package/docs/API-reference/components/search/x-components.results-list.md +17 -13
  125. package/docs/API-reference/components/search/x-components.sort-dropdown.md +13 -9
  126. package/docs/API-reference/components/search/x-components.sort-list.md +7 -7
  127. package/docs/API-reference/components/search/x-components.sort-picker-list.md +10 -10
  128. package/docs/API-reference/components/search/x-components.spellcheck-button.md +2 -2
  129. package/docs/API-reference/components/search/x-components.spellcheck.md +5 -3
  130. package/docs/API-reference/components/search-box/x-components.clear-search-input.md +15 -7
  131. package/docs/API-reference/components/search-box/x-components.search-button.md +11 -11
  132. package/docs/API-reference/components/search-box/x-components.search-input-placeholder.md +22 -16
  133. package/docs/API-reference/components/search-box/x-components.search-input.md +19 -10
  134. package/docs/API-reference/components/semantic-queries/x-components.semantic-queries.md +17 -11
  135. package/docs/API-reference/components/semantic-queries/x-components.semantic-query.md +12 -9
  136. package/docs/API-reference/components/tagging/x-components.tagging.md +8 -4
  137. package/docs/API-reference/components/url/x-components.url-handler.md +2 -2
  138. package/js/store/utils/store-emitters.utils.js.map +1 -1
  139. package/js/x-bus/x-bus.js.map +1 -1
  140. package/js/x-bus/x-priority-queue/x-priority-queue.js.map +1 -1
  141. package/js/x-modules/facets/entities/types.js.map +1 -1
  142. package/package.json +6 -6
  143. package/types/store/utils/store-emitters.utils.d.ts.map +1 -1
  144. package/types/wiring/events.types.d.ts.map +1 -1
  145. package/types/x-bus/x-bus.d.ts.map +1 -1
  146. package/types/x-bus/x-priority-queue/x-priority-queue.d.ts.map +1 -1
  147. package/types/x-modules/facets/entities/types.d.ts.map +1 -1
  148. package/types/x-modules/facets/store/types.d.ts.map +1 -1
  149. package/types/x-modules/history-queries/store/types.d.ts.map +1 -1
  150. package/types/x-modules/identifier-results/store/types.d.ts.map +1 -1
  151. package/types/x-modules/next-queries/store/types.d.ts.map +1 -1
  152. package/types/x-modules/popular-searches/store/types.d.ts.map +1 -1
  153. package/types/x-modules/query-suggestions/store/types.d.ts.map +1 -1
  154. package/types/x-modules/recommendations/store/types.d.ts.map +1 -1
  155. package/types/x-modules/related-tags/store/types.d.ts.map +1 -1
  156. package/types/x-modules/search/store/types.d.ts.map +1 -1
  157. package/types/x-modules/semantic-queries/store/types.d.ts.map +1 -1
@@ -36,14 +36,14 @@ filter label must be a valid number string. For example: '3', '2.5', '0.25'
36
36
  </template>
37
37
 
38
38
  <script setup>
39
- import BaseRatingFilterLabel from '@empathyco/x-components/js/components/filters/labels/base-rating-filter-label.vue'
40
- import { ref } from 'vue'
39
+ import BaseRatingFilterLabel from "@empathyco/x-components/js/components/filters/labels/base-rating-filter-label.vue";
40
+ import { ref } from "vue";
41
41
  const filter = ref({
42
- label: '3',
42
+ label: "3",
43
43
  selected: false,
44
- id: 'rating-3',
45
- modelName: 'BooleanFilter',
46
- })
44
+ id: "rating-3",
45
+ modelName: "BooleanFilter",
46
+ });
47
47
  </script>
48
48
  ```
49
49
 
@@ -58,14 +58,14 @@ styles, you can style the inner svg icons.
58
58
  </template>
59
59
 
60
60
  <script setup>
61
- import BaseRatingFilterLabel from '@empathyco/x-components/js/components/filters/labels/base-rating-filter-label.vue'
62
- import { ref } from 'vue'
61
+ import BaseRatingFilterLabel from "@empathyco/x-components/js/components/filters/labels/base-rating-filter-label.vue";
62
+ import { ref } from "vue";
63
63
  const filter = ref({
64
- label: '4.5',
64
+ label: "4.5",
65
65
  selected: false,
66
- id: 'rating-4.5',
67
- modelName: 'BooleanFilter',
68
- })
66
+ id: "rating-4.5",
67
+ modelName: "BooleanFilter",
68
+ });
69
69
  </script>
70
70
  ```
71
71
 
@@ -79,15 +79,15 @@ The `max` prop can be used to set the max rating number. It will render as many
79
79
  </template>
80
80
 
81
81
  <script setup>
82
- import BaseRatingFilterLabel from '@empathyco/x-components/js/components/filters/labels/base-rating-filter-label.vue'
83
- import { ref } from 'vue'
82
+ import BaseRatingFilterLabel from "@empathyco/x-components/js/components/filters/labels/base-rating-filter-label.vue";
83
+ import { ref } from "vue";
84
84
  const filter = ref({
85
- label: '2.5',
85
+ label: "2.5",
86
86
  selected: false,
87
- id: 'rating-2.5',
88
- modelName: 'BooleanFilter',
89
- })
90
- const max = 7
87
+ id: "rating-2.5",
88
+ modelName: "BooleanFilter",
89
+ });
90
+ const max = 7;
91
91
  </script>
92
92
  ```
93
93
 
@@ -103,14 +103,14 @@ represent the filled and empty icons in the rating component.
103
103
  </template>
104
104
 
105
105
  <script setup>
106
- import BaseRatingFilterLabel from '@empathyco/x-components/js/components/filters/labels/base-rating-filter-label.vue'
107
- import { ref } from 'vue'
106
+ import BaseRatingFilterLabel from "@empathyco/x-components/js/components/filters/labels/base-rating-filter-label.vue";
107
+ import { ref } from "vue";
108
108
  const filter = ref({
109
- label: '5',
109
+ label: "5",
110
110
  selected: false,
111
- id: 'rating-5',
112
- modelName: 'BooleanFilter',
113
- })
114
- const max = 5
111
+ id: "rating-5",
112
+ modelName: "BooleanFilter",
113
+ });
114
+ const max = 5;
115
115
  </script>
116
116
  ```
@@ -94,6 +94,6 @@ The component exposes the following `Design Tokens` for configuration:
94
94
  </template>
95
95
 
96
96
  <script setup>
97
- import FixedHeaderAndAsidesLayout from '@empathyco/x-components/js/components/layouts/fixed-header-and-asides-layout.vue'
97
+ import FixedHeaderAndAsidesLayout from "@empathyco/x-components/js/components/layouts/fixed-header-and-asides-layout.vue";
98
98
  </script>
99
99
  ```
@@ -180,6 +180,6 @@ The component exposes the following `Design Tokens` for configuration:
180
180
  </template>
181
181
 
182
182
  <script setup>
183
- import MultiColumnMaxWidthLayout from '@empathyco/x-components/js/components/layouts/multi-column-max-width-layout.vue'
183
+ import MultiColumnMaxWidthLayout from "@empathyco/x-components/js/components/layouts/multi-column-max-width-layout.vue";
184
184
  </script>
185
185
  ```
@@ -76,6 +76,6 @@ The component exposes the following `Design Tokens` for configuration:
76
76
  </template>
77
77
 
78
78
  <script setup>
79
- import SingleColumnLayout from '@empathyco/x-components/js/components/layouts/single-column-layout.vue'
79
+ import SingleColumnLayout from "@empathyco/x-components/js/components/layouts/single-column-layout.vue";
80
80
  </script>
81
81
  ```
@@ -45,7 +45,7 @@ the button should render, which can be anything: text, image, icon, or a combina
45
45
  </template>
46
46
 
47
47
  <script setup>
48
- import { BaseEventsModalClose } from '@empathyco/x-components'
48
+ import { BaseEventsModalClose } from "@empathyco/x-components";
49
49
  </script>
50
50
  ```
51
51
 
@@ -55,10 +55,12 @@ By default, it uses the same `closingEvent` that the `BaseEventsModal` is listen
55
55
 
56
56
  ```vue
57
57
  <template>
58
- <BaseEventsModalClose closingEvent="UserClosedEmpathize">×</BaseEventsModalClose>
58
+ <BaseEventsModalClose closingEvent="UserClosedEmpathize"
59
+ >×</BaseEventsModalClose
60
+ >
59
61
  </template>
60
62
 
61
63
  <script setup>
62
- import { BaseEventsModalClose } from '@empathyco/x-components'
64
+ import { BaseEventsModalClose } from "@empathyco/x-components";
63
65
  </script>
64
66
  ```
@@ -46,7 +46,7 @@ the button should render, which can be anything: text, image, icon, or a combina
46
46
  </template>
47
47
 
48
48
  <script setup>
49
- import { BaseEventsModalOpen } from '@empathyco/x-components'
49
+ import { BaseEventsModalOpen } from "@empathyco/x-components";
50
50
  </script>
51
51
  ```
52
52
 
@@ -63,6 +63,6 @@ This event can be changed using the `openingEvent` prop, but remember to change
63
63
  </template>
64
64
 
65
65
  <script setup>
66
- import { BaseEventsModalOpen } from '@empathyco/x-components'
66
+ import { BaseEventsModalOpen } from "@empathyco/x-components";
67
67
  </script>
68
68
  ```
@@ -62,7 +62,11 @@ emit the same events that the `BaseEventsModal` component is listening to:
62
62
  </template>
63
63
 
64
64
  <script setup>
65
- import { BaseEventsModalOpen, BaseEventsModal, BaseEventsModalClose } from '@empathyco/x-components'
65
+ import {
66
+ BaseEventsModalOpen,
67
+ BaseEventsModal,
68
+ BaseEventsModalClose,
69
+ } from "@empathyco/x-components";
66
70
  </script>
67
71
  ```
68
72
 
@@ -75,16 +79,22 @@ see a full example on how this would work with custom events.
75
79
  ```vue
76
80
  <template>
77
81
  <div>
78
- <BaseEventsModalOpen openingEvent="UserClickedOpenMyCustomModal">Open</BaseEventsModalOpen>
82
+ <BaseEventsModalOpen openingEvent="UserClickedOpenMyCustomModal"
83
+ >Open</BaseEventsModalOpen
84
+ >
79
85
  <BaseEventsModal
80
86
  :eventsToCloseModal="eventsToCloseModal"
81
87
  :eventsToOpenModal="eventsToOpenModal"
82
88
  >
83
- <BaseEventsModalClose closingEvent="UserClickedCloseMyCustomModalFromHeader">
89
+ <BaseEventsModalClose
90
+ closingEvent="UserClickedCloseMyCustomModalFromHeader"
91
+ >
84
92
  Close from header
85
93
  </BaseEventsModalClose>
86
94
  <img src="success.png" />
87
- <BaseEventsModalClose closingEvent="UserClickedCloseMyCustomModalFromFooter">
95
+ <BaseEventsModalClose
96
+ closingEvent="UserClickedCloseMyCustomModalFromFooter"
97
+ >
88
98
  Close from footer
89
99
  </BaseEventsModalClose>
90
100
  </BaseEventsModal>
@@ -92,12 +102,16 @@ see a full example on how this would work with custom events.
92
102
  </template>
93
103
 
94
104
  <script setup>
95
- import { BaseEventsModalOpen, BaseEventsModal, BaseEventsModalClose } from '@empathyco/x-components'
96
- const eventsToOpenModal = ['UserClickedOpenMyCustomModal']
105
+ import {
106
+ BaseEventsModalOpen,
107
+ BaseEventsModal,
108
+ BaseEventsModalClose,
109
+ } from "@empathyco/x-components";
110
+ const eventsToOpenModal = ["UserClickedOpenMyCustomModal"];
97
111
  const eventsToCloseModal = [
98
- 'UserClickedCloseMyCustomModalFromHeader',
99
- 'UserClickedCloseMyCustomModalFromFooter',
100
- ]
112
+ "UserClickedCloseMyCustomModalFromHeader",
113
+ "UserClickedCloseMyCustomModalFromFooter",
114
+ ];
101
115
  </script>
102
116
  ```
103
117
 
@@ -117,6 +131,10 @@ The `contentClass` prop can be used to add classes to the modal content.
117
131
  </template>
118
132
 
119
133
  <script setup>
120
- import { BaseEventsModalOpen, BaseEventsModal, BaseEventsModalClose } from '@empathyco/x-components'
134
+ import {
135
+ BaseEventsModalOpen,
136
+ BaseEventsModal,
137
+ BaseEventsModalClose,
138
+ } from "@empathyco/x-components";
121
139
  </script>
122
140
  ```
@@ -50,7 +50,7 @@ modal with modalId `my-modal`.
50
50
  </template>
51
51
 
52
52
  <script setup>
53
- import { BaseIdModalClose } from '@empathyco/x-components'
53
+ import { BaseIdModalClose } from "@empathyco/x-components";
54
54
  </script>
55
55
  ```
56
56
 
@@ -72,6 +72,6 @@ function to close the modal with modalId `my-modal`.
72
72
  </template>
73
73
 
74
74
  <script setup>
75
- import { BaseIdModalClose } from '@empathyco/x-components'
75
+ import { BaseIdModalClose } from "@empathyco/x-components";
76
76
  </script>
77
77
  ```
@@ -50,7 +50,7 @@ with modalId `my-modal`.
50
50
  </template>
51
51
 
52
52
  <script setup>
53
- import { BaseIdModalOpen } from '@empathyco/x-components'
53
+ import { BaseIdModalOpen } from "@empathyco/x-components";
54
54
  </script>
55
55
  ```
56
56
 
@@ -72,6 +72,6 @@ function to open the modal with modalId `my-modal`.
72
72
  </template>
73
73
 
74
74
  <script setup>
75
- import { BaseIdModalOpen } from '@empathyco/x-components'
75
+ import { BaseIdModalOpen } from "@empathyco/x-components";
76
76
  </script>
77
77
  ```
@@ -55,7 +55,11 @@ share the same value in their `modalId` prop to work:
55
55
  </template>
56
56
 
57
57
  <script setup>
58
- import { BaseIdModalOpen, BaseIdModal, BaseIdModalClose } from '@empathyco/x-components'
58
+ import {
59
+ BaseIdModalOpen,
60
+ BaseIdModal,
61
+ BaseIdModalClose,
62
+ } from "@empathyco/x-components";
59
63
  </script>
60
64
  ```
61
65
 
@@ -77,6 +81,10 @@ The `contentClass` prop can be used to add classes to the modal content.
77
81
  </template>
78
82
 
79
83
  <script setup>
80
- import { BaseIdModalOpen, BaseIdModal, BaseIdModalClose } from '@empathyco/x-components'
84
+ import {
85
+ BaseIdModalOpen,
86
+ BaseIdModal,
87
+ BaseIdModalClose,
88
+ } from "@empathyco/x-components";
81
89
  </script>
82
90
  ```
@@ -62,10 +62,10 @@ is open.
62
62
  </template>
63
63
 
64
64
  <script setup>
65
- import { ref } from 'vue'
66
- import { BaseModal, FadeAndSlide } from '@empathyco/x-components'
67
- const open = ref(false)
68
- const fadeAndSlide = FadeAndSlide
65
+ import { ref } from "vue";
66
+ import { BaseModal, FadeAndSlide } from "@empathyco/x-components";
67
+ const open = ref(false);
68
+ const fadeAndSlide = FadeAndSlide;
69
69
  </script>
70
70
  ```
71
71
 
@@ -94,10 +94,10 @@ The `contentClass` prop can be used to add classes to the modal content.
94
94
  </template>
95
95
 
96
96
  <script setup>
97
- import { ref } from 'vue'
98
- import { BaseModal, FadeAndSlide } from '@empathyco/x-components'
99
- const open = ref(false)
100
- const fadeAndSlide = FadeAndSlide
97
+ import { ref } from "vue";
98
+ import { BaseModal, FadeAndSlide } from "@empathyco/x-components";
99
+ const open = ref(false);
100
+ const fadeAndSlide = FadeAndSlide;
101
101
  </script>
102
102
  ```
103
103
 
@@ -124,10 +124,10 @@ The `overlayClass` prop can be used to add classes to the modal overlay.
124
124
  </template>
125
125
 
126
126
  <script setup>
127
- import { ref } from 'vue'
128
- import { BaseModal, FadeAndSlide } from '@empathyco/x-components'
129
- const open = ref(false)
130
- const fadeAndSlide = FadeAndSlide
127
+ import { ref } from "vue";
128
+ import { BaseModal, FadeAndSlide } from "@empathyco/x-components";
129
+ const open = ref(false);
130
+ const fadeAndSlide = FadeAndSlide;
131
131
  </script>
132
132
  ```
133
133
 
@@ -33,6 +33,10 @@ A basic example of how the close main modal button works:
33
33
  </template>
34
34
 
35
35
  <script setup>
36
- import { MainModal, CloseMainModal, OpenMainModal } from '@empathyco/x-components'
36
+ import {
37
+ MainModal,
38
+ CloseMainModal,
39
+ OpenMainModal,
40
+ } from "@empathyco/x-components";
37
41
  </script>
38
42
  ```
@@ -43,7 +43,11 @@ A basic example of how the main modal works:
43
43
  </template>
44
44
 
45
45
  <script setup>
46
- import { MainModal, CloseMainModal, OpenMainModal } from '@empathyco/x-components'
46
+ import {
47
+ MainModal,
48
+ CloseMainModal,
49
+ OpenMainModal,
50
+ } from "@empathyco/x-components";
47
51
  </script>
48
52
  ```
49
53
 
@@ -60,7 +64,11 @@ The `contentClass` prop can be used to add classes to the modal content.
60
64
  </template>
61
65
 
62
66
  <script setup>
63
- import { MainModal, CloseMainModal, OpenMainModal } from '@empathyco/x-components'
67
+ import {
68
+ MainModal,
69
+ CloseMainModal,
70
+ OpenMainModal,
71
+ } from "@empathyco/x-components";
64
72
  </script>
65
73
  ```
66
74
 
@@ -78,7 +86,11 @@ that the modal would emit when the user clicks out of the modal.
78
86
  <template>
79
87
  <OpenMainModal>Open X</OpenMainModal>
80
88
  <MainModal
81
- :openEvents="['UserClickedOpenX', 'UserOpenXProgrammatically', 'MyCustomXEvent']"
89
+ :openEvents="[
90
+ 'UserClickedOpenX',
91
+ 'UserOpenXProgrammatically',
92
+ 'MyCustomXEvent',
93
+ ]"
82
94
  :outOfModalClickEvent="null"
83
95
  >
84
96
  <CloseMainModal>Close X</CloseMainModal>
@@ -86,6 +98,10 @@ that the modal would emit when the user clicks out of the modal.
86
98
  </template>
87
99
 
88
100
  <script setup>
89
- import { MainModal, CloseMainModal, OpenMainModal } from '@empathyco/x-components'
101
+ import {
102
+ MainModal,
103
+ CloseMainModal,
104
+ OpenMainModal,
105
+ } from "@empathyco/x-components";
90
106
  </script>
91
107
  ```
@@ -33,6 +33,10 @@ A basic example of how the open main modal button works:
33
33
  </template>
34
34
 
35
35
  <script setup>
36
- import { MainModal, CloseMainModal, OpenMainModal } from '@empathyco/x-components'
36
+ import {
37
+ MainModal,
38
+ CloseMainModal,
39
+ OpenMainModal,
40
+ } from "@empathyco/x-components";
37
41
  </script>
38
42
  ```
@@ -42,7 +42,7 @@ Toggle panel which uses the base toggle panel, adds a header and manages the ope
42
42
  <template>
43
43
  <BaseHeaderTogglePanel :animation="animation" :start-collapsed="false">
44
44
  <template #header-content="{ open }">
45
- <p>Header, open: {{ open ? 'close' : 'open' }}</p>
45
+ <p>Header, open: {{ open ? "close" : "open" }}</p>
46
46
  </template>
47
47
  <template #default>
48
48
  <p>Default content</p>
@@ -51,9 +51,9 @@ Toggle panel which uses the base toggle panel, adds a header and manages the ope
51
51
  </template>
52
52
 
53
53
  <script setup>
54
- import { BaseHeaderTogglePanel } from '@empathyco/x-components'
55
- import { CollapseHeight } from '@empathyco/x-components/animations'
56
- const animation = CollapseHeight
54
+ import { BaseHeaderTogglePanel } from "@empathyco/x-components";
55
+ import { CollapseHeight } from "@empathyco/x-components/animations";
56
+ const animation = CollapseHeight;
57
57
  </script>
58
58
  ```
59
59
 
@@ -63,7 +63,7 @@ const animation = CollapseHeight
63
63
  <template>
64
64
  <BaseHeaderTogglePanel :animation="animation" :start-collapsed="true">
65
65
  <template #header="{ toggleOpen, open }">
66
- <p>Header, open: {{ open ? 'close' : 'open' }}</p>
66
+ <p>Header, open: {{ open ? "close" : "open" }}</p>
67
67
  <button @click="toggleOpen">Toggle</button>
68
68
  </template>
69
69
  <template #default>
@@ -73,9 +73,9 @@ const animation = CollapseHeight
73
73
  </template>
74
74
 
75
75
  <script setup>
76
- import { BaseHeaderTogglePanel } from '@empathyco/x-components'
77
- import { CollapseHeight } from '@empathyco/x-components/animations'
78
- const animation = CollapseHeight
76
+ import { BaseHeaderTogglePanel } from "@empathyco/x-components";
77
+ import { CollapseHeight } from "@empathyco/x-components/animations";
78
+ const animation = CollapseHeight;
79
79
  </script>
80
80
  ```
81
81
 
@@ -85,9 +85,13 @@ The `headerClass` prop can be used to add classes to the header of the toggle pa
85
85
 
86
86
  ```vue
87
87
  <template>
88
- <BaseHeaderTogglePanel headerClass="custom-class" :animation="animation" :start-collapsed="false">
88
+ <BaseHeaderTogglePanel
89
+ headerClass="custom-class"
90
+ :animation="animation"
91
+ :start-collapsed="false"
92
+ >
89
93
  <template #header-content="{ open }">
90
- <p>Header, open: {{ open ? 'close' : 'open' }}</p>
94
+ <p>Header, open: {{ open ? "close" : "open" }}</p>
91
95
  </template>
92
96
  <template #default>
93
97
  <p>Default content</p>
@@ -96,8 +100,8 @@ The `headerClass` prop can be used to add classes to the header of the toggle pa
96
100
  </template>
97
101
 
98
102
  <script setup>
99
- import { BaseHeaderTogglePanel } from '@empathyco/x-components'
100
- import { CollapseHeight } from '@empathyco/x-components/animations'
101
- const animation = CollapseHeight
103
+ import { BaseHeaderTogglePanel } from "@empathyco/x-components";
104
+ import { CollapseHeight } from "@empathyco/x-components/animations";
105
+ const animation = CollapseHeight;
102
106
  </script>
103
107
  ```
@@ -52,15 +52,22 @@ The component renders content passed to the default slot and toggles the panel w
52
52
  <span>Open aside</span>
53
53
  </template>
54
54
  </BaseIdTogglePanelButton>
55
- <BaseIdTogglePanel :startOpen="true" :animation="animation" panelId="myToggle">
55
+ <BaseIdTogglePanel
56
+ :startOpen="true"
57
+ :animation="animation"
58
+ panelId="myToggle"
59
+ >
56
60
  <div class="x-text1">My toggle</div>
57
61
  </BaseIdTogglePanel>
58
62
  </div>
59
63
  </template>
60
64
 
61
65
  <script setup>
62
- import { BaseIdTogglePanel, BaseIdTogglePanelButton } from '@empathyco/x-components'
63
- import { CollapseFromTop } from '@empathyco/x-components/animations'
64
- const animation = CollapseFromTop
66
+ import {
67
+ BaseIdTogglePanel,
68
+ BaseIdTogglePanelButton,
69
+ } from "@empathyco/x-components";
70
+ import { CollapseFromTop } from "@empathyco/x-components/animations";
71
+ const animation = CollapseFromTop;
65
72
  </script>
66
73
  ```
@@ -49,16 +49,23 @@ A list of events that the component will watch and emit:
49
49
  <img src="./open-button-icon.svg" alt="Toggle Aside" />
50
50
  <span>Toggle Aside</span>
51
51
  </BaseIdTogglePanelButton>
52
- <BaseIdTogglePanel :startOpen="true" :animation="animation" panelId="myToggle">
52
+ <BaseIdTogglePanel
53
+ :startOpen="true"
54
+ :animation="animation"
55
+ panelId="myToggle"
56
+ >
53
57
  <div class="x-text1">My toggle</div>
54
58
  </BaseIdTogglePanel>
55
59
  </div>
56
60
  </template>
57
61
 
58
62
  <script setup>
59
- import { BaseIdTogglePanel, BaseIdTogglePanelButton } from '@empathyco/x-components'
60
- import { CollapseFromTop } from '@empathyco/x-components/animations'
61
- const animation = CollapseFromTop
63
+ import {
64
+ BaseIdTogglePanel,
65
+ BaseIdTogglePanelButton,
66
+ } from "@empathyco/x-components";
67
+ import { CollapseFromTop } from "@empathyco/x-components/animations";
68
+ const animation = CollapseFromTop;
62
69
  </script>
63
70
  ```
64
71
 
@@ -69,22 +76,22 @@ You can listen to the `TogglePanelStateChanged` event to react to panel open/clo
69
76
  ```vue
70
77
  <template>
71
78
  <div>
72
- <span>Panel is {{ isPanelOpen ? 'open' : 'closed' }}</span>
79
+ <span>Panel is {{ isPanelOpen ? "open" : "closed" }}</span>
73
80
  </div>
74
81
  </template>
75
82
 
76
83
  <script setup>
77
- import { ref } from 'vue'
78
- import { use$x } from '@empathyco/x-components'
84
+ import { ref } from "vue";
85
+ import { use$x } from "@empathyco/x-components";
79
86
 
80
- const x = use$x()
81
- const isPanelOpen = ref(false)
82
- const panelId = 'myToggle'
87
+ const x = use$x();
88
+ const isPanelOpen = ref(false);
89
+ const panelId = "myToggle";
83
90
 
84
- x.on('TogglePanelStateChanged').subscribe((isOpen, { id }) => {
91
+ x.on("TogglePanelStateChanged").subscribe((isOpen, { id }) => {
85
92
  if (id === panelId) {
86
- isPanelOpen.value = isOpen
93
+ isPanelOpen.value = isOpen;
87
94
  }
88
- })
95
+ });
89
96
  </script>
90
97
  ```
@@ -60,7 +60,7 @@ It renders a list of tabs and, when a tab is clicked, a panel with its content w
60
60
  </template>
61
61
 
62
62
  <script setup>
63
- import { BaseTabsPanel } from '@empathyco/x-components'
63
+ import { BaseTabsPanel } from "@empathyco/x-components";
64
64
  </script>
65
65
  ```
66
66
 
@@ -87,7 +87,7 @@ which tab should be opened at first.
87
87
  </template>
88
88
 
89
89
  <script setup>
90
- import { BaseTabsPanel } from '@empathyco/x-components'
90
+ import { BaseTabsPanel } from "@empathyco/x-components";
91
91
  </script>
92
92
  ```
93
93
 
@@ -113,7 +113,7 @@ behavior is deactivated.
113
113
  </template>
114
114
 
115
115
  <script setup>
116
- import { BaseTabsPanel } from '@empathyco/x-components'
116
+ import { BaseTabsPanel } from "@empathyco/x-components";
117
117
  </script>
118
118
  ```
119
119
 
@@ -145,7 +145,7 @@ import { BaseTabsPanel } from '@empathyco/x-components'
145
145
  </template>
146
146
 
147
147
  <script setup>
148
- import { BaseTabsPanel } from '@empathyco/x-components'
148
+ import { BaseTabsPanel } from "@empathyco/x-components";
149
149
  </script>
150
150
  ```
151
151
 
@@ -156,7 +156,10 @@ import { BaseTabsPanel } from '@empathyco/x-components'
156
156
 
157
157
  ```vue
158
158
  <template>
159
- <BaseTabsPanel :tabsAnimation="staggeredFadeAndSlide" :contentAnimation="staggeredFadeAndSlide">
159
+ <BaseTabsPanel
160
+ :tabsAnimation="staggeredFadeAndSlide"
161
+ :contentAnimation="staggeredFadeAndSlide"
162
+ >
160
163
  <template #summer>
161
164
  <div>Summer Top Sales</div>
162
165
  </template>
@@ -167,8 +170,8 @@ import { BaseTabsPanel } from '@empathyco/x-components'
167
170
  </template>
168
171
 
169
172
  <script setup>
170
- import { BaseTabsPanel, StaggeredFadeAndSlide } from '@empathyco/x-components'
171
- const staggeredFadeAndSlide = StaggeredFadeAndSlide
173
+ import { BaseTabsPanel, StaggeredFadeAndSlide } from "@empathyco/x-components";
174
+ const staggeredFadeAndSlide = StaggeredFadeAndSlide;
172
175
  </script>
173
176
  ```
174
177
 
@@ -200,7 +203,7 @@ replaced entirely through the `tab` slot.
200
203
  </template>
201
204
 
202
205
  <script setup>
203
- import { BaseTabsPanel, CheckIcon } from '@empathyco/x-components'
206
+ import { BaseTabsPanel, CheckIcon } from "@empathyco/x-components";
204
207
  </script>
205
208
  ```
206
209
 
@@ -229,7 +232,7 @@ Alternatively to the previous example, instead of changing the whole tab button,
229
232
  </template>
230
233
 
231
234
  <script setup>
232
- import { BaseTabsPanel, CheckIcon } from '@empathyco/x-components'
235
+ import { BaseTabsPanel, CheckIcon } from "@empathyco/x-components";
233
236
  </script>
234
237
  ```
235
238
 
@@ -252,6 +255,6 @@ The displayed tab name and a method to select a tab are exposed to the tab panel
252
255
  </template>
253
256
 
254
257
  <script setup>
255
- import { BaseTabsPanel } from '@empathyco/x-components'
258
+ import { BaseTabsPanel } from "@empathyco/x-components";
256
259
  </script>
257
260
  ```