@empathyco/x-components 3.0.0-alpha.385 → 3.0.0-alpha.386

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 (312) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/core/index.js.map +1 -1
  3. package/design-system/deprecated-full-theme.css +38 -37
  4. package/docs/API-reference/api/x-components.basecurrency.md +0 -2
  5. package/docs/API-reference/api/x-components.md +1 -0
  6. package/docs/API-reference/api/x-components.queriespreviewgetters.loadedqueriespreview.md +13 -0
  7. package/docs/API-reference/api/x-components.queriespreviewgetters.md +7 -0
  8. package/docs/API-reference/api/x-components.queryfeature.md +1 -1
  9. package/docs/API-reference/api/x-components.semanticqueries.findsemanticquery.md +26 -0
  10. package/docs/API-reference/api/x-components.semanticqueries.md +12 -0
  11. package/docs/API-reference/api/x-components.semanticqueries.suggestions.md +13 -0
  12. package/docs/API-reference/api/x-components.semanticqueriesgetters.md +1 -0
  13. package/docs/API-reference/api/x-components.semanticqueriesgetters.normalizedquery.md +13 -0
  14. package/docs/API-reference/api/x-components.semanticqueriesxevents.md +1 -0
  15. package/docs/API-reference/api/x-components.semanticqueriesxevents.userselectedasemanticquery.md +13 -0
  16. package/docs/API-reference/api/x-components.semanticquery.md +22 -0
  17. package/docs/API-reference/api/x-components.semanticquery.query.md +13 -0
  18. package/docs/API-reference/api/x-components.semanticquery.suggestion.md +13 -0
  19. package/docs/API-reference/components/common/animations/x-components.animate-width.md +65 -0
  20. package/docs/API-reference/components/common/animations/x-components.collapse-height.md +36 -0
  21. package/docs/API-reference/components/common/animations/x-components.collapse-width.md +37 -0
  22. package/docs/API-reference/components/common/animations/x-components.cross-fade.md +35 -0
  23. package/docs/API-reference/components/common/animations/x-components.fade-and-slide.md +44 -0
  24. package/docs/API-reference/components/common/animations/x-components.fade.md +54 -0
  25. package/docs/API-reference/components/common/animations/x-components.staggered-fade-and-slide.md +46 -0
  26. package/docs/API-reference/components/common/animations/x-components.staggering-transition-group.md +34 -0
  27. package/docs/API-reference/components/common/column-picker/x-components.base-column-picker-dropdown.md +143 -0
  28. package/docs/API-reference/components/common/column-picker/x-components.base-column-picker-list.md +166 -0
  29. package/docs/API-reference/components/common/currency/x-components.base-currency.md +309 -0
  30. package/docs/API-reference/components/common/filters/labels/x-components.base-price-filter-label.md +72 -0
  31. package/docs/API-reference/components/common/filters/labels/x-components.base-rating-filter-label.md +62 -0
  32. package/docs/API-reference/components/common/icons/x-components.arrow-down.md +7 -0
  33. package/docs/API-reference/components/common/icons/x-components.arrow-left.md +7 -0
  34. package/docs/API-reference/components/common/icons/x-components.arrow-right.md +7 -0
  35. package/docs/API-reference/components/common/icons/x-components.arrow-up.md +7 -0
  36. package/docs/API-reference/components/common/icons/x-components.bag.md +7 -0
  37. package/docs/API-reference/components/common/icons/x-components.bar-code.md +7 -0
  38. package/docs/API-reference/components/common/icons/x-components.barcode-tiny.md +7 -0
  39. package/docs/API-reference/components/common/icons/x-components.cart-filled.md +7 -0
  40. package/docs/API-reference/components/common/icons/x-components.cart.md +7 -0
  41. package/docs/API-reference/components/common/icons/x-components.check-tiny.md +7 -0
  42. package/docs/API-reference/components/common/icons/x-components.check.md +7 -0
  43. package/docs/API-reference/components/common/icons/x-components.checkbox-selected-filled.md +7 -0
  44. package/docs/API-reference/components/common/icons/x-components.checkbox-selected.md +7 -0
  45. package/docs/API-reference/components/common/icons/x-components.checkbox-unselected-filled.md +7 -0
  46. package/docs/API-reference/components/common/icons/x-components.checkbox-unselected.md +7 -0
  47. package/docs/API-reference/components/common/icons/x-components.chevron-down.md +7 -0
  48. package/docs/API-reference/components/common/icons/x-components.chevron-left.md +7 -0
  49. package/docs/API-reference/components/common/icons/x-components.chevron-right.md +7 -0
  50. package/docs/API-reference/components/common/icons/x-components.chevron-tiny-down.md +7 -0
  51. package/docs/API-reference/components/common/icons/x-components.chevron-tiny-left.md +7 -0
  52. package/docs/API-reference/components/common/icons/x-components.chevron-tiny-right.md +7 -0
  53. package/docs/API-reference/components/common/icons/x-components.chevron-tiny-up.md +7 -0
  54. package/docs/API-reference/components/common/icons/x-components.chevron-up.md +7 -0
  55. package/docs/API-reference/components/common/icons/x-components.corner-arrow-left.md +7 -0
  56. package/docs/API-reference/components/common/icons/x-components.corner-arrow-right.md +7 -0
  57. package/docs/API-reference/components/common/icons/x-components.cross-tiny.md +7 -0
  58. package/docs/API-reference/components/common/icons/x-components.cross.md +7 -0
  59. package/docs/API-reference/components/common/icons/x-components.curated-check-filled.md +7 -0
  60. package/docs/API-reference/components/common/icons/x-components.curated-check-tiny-filled.md +7 -0
  61. package/docs/API-reference/components/common/icons/x-components.curated-check-tiny.md +7 -0
  62. package/docs/API-reference/components/common/icons/x-components.curated-check.md +7 -0
  63. package/docs/API-reference/components/common/icons/x-components.diagonal-arrow-left-down.md +7 -0
  64. package/docs/API-reference/components/common/icons/x-components.diagonal-arrow-left-top.md +7 -0
  65. package/docs/API-reference/components/common/icons/x-components.diagonal-arrow-right-down.md +7 -0
  66. package/docs/API-reference/components/common/icons/x-components.diagonal-arrow-right-top.md +7 -0
  67. package/docs/API-reference/components/common/icons/x-components.filters.md +7 -0
  68. package/docs/API-reference/components/common/icons/x-components.grid-1-col.md +7 -0
  69. package/docs/API-reference/components/common/icons/x-components.grid-2-col.md +7 -0
  70. package/docs/API-reference/components/common/icons/x-components.grid-2-rows.md +7 -0
  71. package/docs/API-reference/components/common/icons/x-components.grid-4-col.md +7 -0
  72. package/docs/API-reference/components/common/icons/x-components.heart-filled.md +7 -0
  73. package/docs/API-reference/components/common/icons/x-components.heart.md +7 -0
  74. package/docs/API-reference/components/common/icons/x-components.hide.md +7 -0
  75. package/docs/API-reference/components/common/icons/x-components.history-tiny.md +7 -0
  76. package/docs/API-reference/components/common/icons/x-components.history.md +7 -0
  77. package/docs/API-reference/components/common/icons/x-components.light-bulb-off.md +7 -0
  78. package/docs/API-reference/components/common/icons/x-components.light-bulb-on.md +7 -0
  79. package/docs/API-reference/components/common/icons/x-components.menu.md +7 -0
  80. package/docs/API-reference/components/common/icons/x-components.minus-tiny.md +7 -0
  81. package/docs/API-reference/components/common/icons/x-components.minus.md +7 -0
  82. package/docs/API-reference/components/common/icons/x-components.plus-tiny.md +7 -0
  83. package/docs/API-reference/components/common/icons/x-components.plus.md +7 -0
  84. package/docs/API-reference/components/common/icons/x-components.radiobutton-selected.md +7 -0
  85. package/docs/API-reference/components/common/icons/x-components.radiobutton-unselected.md +7 -0
  86. package/docs/API-reference/components/common/icons/x-components.search-tiny.md +7 -0
  87. package/docs/API-reference/components/common/icons/x-components.search.md +7 -0
  88. package/docs/API-reference/components/common/icons/x-components.settings.md +7 -0
  89. package/docs/API-reference/components/common/icons/x-components.show.md +7 -0
  90. package/docs/API-reference/components/common/icons/x-components.sort-az.md +7 -0
  91. package/docs/API-reference/components/common/icons/x-components.sort-price-down.md +7 -0
  92. package/docs/API-reference/components/common/icons/x-components.sort-price-up.md +7 -0
  93. package/docs/API-reference/components/common/icons/x-components.sort-relevancy.md +7 -0
  94. package/docs/API-reference/components/common/icons/x-components.sort-za.md +7 -0
  95. package/docs/API-reference/components/common/icons/x-components.star-filled.md +7 -0
  96. package/docs/API-reference/components/common/icons/x-components.star.md +7 -0
  97. package/docs/API-reference/components/common/icons/x-components.tag-filled.md +7 -0
  98. package/docs/API-reference/components/common/icons/x-components.tag.md +7 -0
  99. package/docs/API-reference/components/common/icons/x-components.trash-open.md +7 -0
  100. package/docs/API-reference/components/common/icons/x-components.trash.md +7 -0
  101. package/docs/API-reference/components/common/icons/x-components.trending-tiny.md +7 -0
  102. package/docs/API-reference/components/common/icons/x-components.trending.md +7 -0
  103. package/docs/API-reference/components/common/icons/x-components.user-filled.md +7 -0
  104. package/docs/API-reference/components/common/icons/x-components.user.md +7 -0
  105. package/docs/API-reference/components/common/layouts/x-components.fixed-header-and-asides-layout.md +75 -0
  106. package/docs/API-reference/components/common/layouts/x-components.multi-column-max-width-layout.md +161 -0
  107. package/docs/API-reference/components/common/layouts/x-components.single-column-layout.md +30 -0
  108. package/docs/API-reference/components/common/modals/x-components.base-events-modal-close.md +79 -0
  109. package/docs/API-reference/components/common/modals/x-components.base-events-modal-open.md +83 -0
  110. package/docs/API-reference/components/common/modals/x-components.base-events-modal.md +144 -0
  111. package/docs/API-reference/components/common/modals/x-components.base-id-modal-close.md +89 -0
  112. package/docs/API-reference/components/common/modals/x-components.base-id-modal-open.md +91 -0
  113. package/docs/API-reference/components/common/modals/x-components.base-id-modal.md +99 -0
  114. package/docs/API-reference/components/common/modals/x-components.base-modal.md +172 -0
  115. package/docs/API-reference/components/common/modals/x-components.close-main-modal.md +49 -0
  116. package/docs/API-reference/components/common/modals/x-components.main-modal.md +84 -0
  117. package/docs/API-reference/components/common/modals/x-components.open-main-modal.md +49 -0
  118. package/docs/API-reference/components/common/panels/x-components.base-header-toggle-panel.md +85 -0
  119. package/docs/API-reference/components/common/panels/x-components.base-id-toggle-panel-button.md +79 -0
  120. package/docs/API-reference/components/common/panels/x-components.base-id-toggle-panel.md +78 -0
  121. package/docs/API-reference/components/common/panels/x-components.base-tabs-panel.md +331 -0
  122. package/docs/API-reference/components/common/panels/x-components.base-toggle-panel.md +42 -0
  123. package/docs/API-reference/components/common/result/x-components.base-result-add-to-cart.md +45 -0
  124. package/docs/API-reference/components/common/result/x-components.base-result-current-price.md +42 -0
  125. package/docs/API-reference/components/common/result/x-components.base-result-fallback-image.md +7 -0
  126. package/docs/API-reference/components/common/result/x-components.base-result-image.md +110 -0
  127. package/docs/API-reference/components/common/result/x-components.base-result-link.md +48 -0
  128. package/docs/API-reference/components/common/result/x-components.base-result-placeholder-image.md +7 -0
  129. package/docs/API-reference/components/common/result/x-components.base-result-previous-price.md +67 -0
  130. package/docs/API-reference/components/common/result/x-components.base-result-rating.md +251 -0
  131. package/docs/API-reference/components/common/result/x-components.result-variant-selector.md +280 -0
  132. package/docs/API-reference/components/common/result/x-components.result-variants-provider.md +185 -0
  133. package/docs/API-reference/components/common/scroll/x-components.base-scroll.md +175 -0
  134. package/docs/API-reference/components/common/suggestions/x-components.base-suggestion.md +122 -0
  135. package/docs/API-reference/components/common/suggestions/x-components.base-suggestions.md +186 -0
  136. package/docs/API-reference/components/common/x-components.auto-progress-bar.md +71 -0
  137. package/docs/API-reference/components/common/x-components.base-dropdown.md +79 -0
  138. package/docs/API-reference/components/common/x-components.base-event-button.md +47 -0
  139. package/docs/API-reference/components/common/x-components.base-grid.md +115 -0
  140. package/docs/API-reference/components/common/x-components.base-keyboard-navigation.md +87 -0
  141. package/docs/API-reference/components/common/x-components.base-rating.md +47 -0
  142. package/docs/API-reference/components/common/x-components.base-switch.md +79 -0
  143. package/docs/API-reference/components/common/x-components.base-variable-column-grid.md +185 -0
  144. package/docs/API-reference/components/common/x-components.global-x-bus.md +47 -0
  145. package/docs/API-reference/components/common/x-components.highlight.md +100 -0
  146. package/docs/API-reference/components/common/x-components.items-list.md +23 -0
  147. package/docs/API-reference/components/common/x-components.location-provider.md +52 -0
  148. package/docs/API-reference/components/common/x-components.sliding-panel.md +280 -0
  149. package/docs/API-reference/components/common/x-components.snippet-callbacks.md +36 -0
  150. package/docs/API-reference/components/device/x-components.device-detector.md +139 -0
  151. package/docs/API-reference/components/empathize/x-components.empathize.md +87 -0
  152. package/docs/API-reference/components/extra-params/x-components.extra-params.md +49 -0
  153. package/docs/API-reference/components/extra-params/x-components.renderless-extra-param.md +55 -0
  154. package/docs/API-reference/components/extra-params/x-components.snippet-config-extra-params.md +51 -0
  155. package/docs/API-reference/components/facets/x-components.clear-filters.md +61 -0
  156. package/docs/API-reference/components/facets/x-components.facets/facets-provider.md +80 -0
  157. package/docs/API-reference/components/facets/x-components.facets/facets.md +268 -0
  158. package/docs/API-reference/components/facets/x-components.filters/all-filter.md +79 -0
  159. package/docs/API-reference/components/facets/x-components.filters/editable-number-range-filter.md +197 -0
  160. package/docs/API-reference/components/facets/x-components.filters/hierarchical-filter.md +229 -0
  161. package/docs/API-reference/components/facets/x-components.filters/number-range-filter.md +145 -0
  162. package/docs/API-reference/components/facets/x-components.filters/renderless-filter.md +61 -0
  163. package/docs/API-reference/components/facets/x-components.filters/simple-filter.md +184 -0
  164. package/docs/API-reference/components/facets/x-components.lists/exclude-filters-with-no-results.md +155 -0
  165. package/docs/API-reference/components/facets/x-components.lists/filters-list.md +68 -0
  166. package/docs/API-reference/components/facets/x-components.lists/filters-search.md +98 -0
  167. package/docs/API-reference/components/facets/x-components.lists/selected-filters-list.md +123 -0
  168. package/docs/API-reference/components/facets/x-components.lists/selected-filters.md +86 -0
  169. package/docs/API-reference/components/facets/x-components.lists/sliced-filters.md +118 -0
  170. package/docs/API-reference/components/facets/x-components.lists/sorted-filters.md +85 -0
  171. package/docs/API-reference/components/facets/x-components.preselected-filters.md +73 -0
  172. package/docs/API-reference/components/history-queries/x-components.clear-history-queries.md +57 -0
  173. package/docs/API-reference/components/history-queries/x-components.history-queries-switch.md +100 -0
  174. package/docs/API-reference/components/history-queries/x-components.history-queries.md +206 -0
  175. package/docs/API-reference/components/history-queries/x-components.history-query.md +173 -0
  176. package/docs/API-reference/components/history-queries/x-components.my-history.md +218 -0
  177. package/docs/API-reference/components/history-queries/x-components.remove-history-query.md +41 -0
  178. package/docs/API-reference/components/identifier-results/x-components.identifier-result.md +27 -0
  179. package/docs/API-reference/components/identifier-results/x-components.identifier-results.md +67 -0
  180. package/docs/API-reference/components/next-queries/x-components.next-queries-list.md +194 -0
  181. package/docs/API-reference/components/next-queries/x-components.next-queries.md +173 -0
  182. package/docs/API-reference/components/next-queries/x-components.next-query-preview.md +194 -0
  183. package/docs/API-reference/components/next-queries/x-components.next-query.md +111 -0
  184. package/docs/API-reference/components/popular-searches/x-components.popular-search.md +97 -0
  185. package/docs/API-reference/components/popular-searches/x-components.popular-searches.md +144 -0
  186. package/docs/API-reference/components/queries-preview/x-components.query-preview-list.md +126 -0
  187. package/docs/API-reference/components/queries-preview/x-components.query-preview.md +194 -0
  188. package/docs/API-reference/components/query-suggestions/x-components.query-suggestion.md +132 -0
  189. package/docs/API-reference/components/query-suggestions/x-components.query-suggestions.md +242 -0
  190. package/docs/API-reference/components/recommendations/x-components.recommendations.md +148 -0
  191. package/docs/API-reference/components/related-tags/x-components.related-tag.md +152 -0
  192. package/docs/API-reference/components/related-tags/x-components.related-tags.md +222 -0
  193. package/docs/API-reference/components/scroll/x-components.main-scroll-item.md +78 -0
  194. package/docs/API-reference/components/scroll/x-components.main-scroll.md +166 -0
  195. package/docs/API-reference/components/scroll/x-components.scroll-to-top.md +65 -0
  196. package/docs/API-reference/components/scroll/x-components.scroll.md +160 -0
  197. package/docs/API-reference/components/scroll/x-components.window-scroll.md +155 -0
  198. package/docs/API-reference/components/search/x-components.banner.md +83 -0
  199. package/docs/API-reference/components/search/x-components.banners-list.md +196 -0
  200. package/docs/API-reference/components/search/x-components.fallback-disclaimer.md +47 -0
  201. package/docs/API-reference/components/search/x-components.partial-query-button.md +73 -0
  202. package/docs/API-reference/components/search/x-components.partial-results-list.md +83 -0
  203. package/docs/API-reference/components/search/x-components.promoted.md +92 -0
  204. package/docs/API-reference/components/search/x-components.promoteds-list.md +194 -0
  205. package/docs/API-reference/components/search/x-components.redirection.md +98 -0
  206. package/docs/API-reference/components/search/x-components.results-list.md +200 -0
  207. package/docs/API-reference/components/search/x-components.sort-dropdown.md +116 -0
  208. package/docs/API-reference/components/search/x-components.sort-list.md +102 -0
  209. package/docs/API-reference/components/search/x-components.sort-picker-list.md +125 -0
  210. package/docs/API-reference/components/search/x-components.spellcheck-button.md +49 -0
  211. package/docs/API-reference/components/search/x-components.spellcheck.md +53 -0
  212. package/docs/API-reference/components/search-box/x-components.clear-search-input.md +134 -0
  213. package/docs/API-reference/components/search-box/x-components.search-button.md +158 -0
  214. package/docs/API-reference/components/search-box/x-components.search-input-placeholder.md +96 -0
  215. package/docs/API-reference/components/search-box/x-components.search-input.md +179 -0
  216. package/docs/API-reference/components/semantic-queries/x-components.semantic-queries.md +194 -0
  217. package/docs/API-reference/components/semantic-queries/x-components.semantic-query.md +93 -0
  218. package/docs/API-reference/components/tagging/x-components.tagging.md +107 -0
  219. package/docs/API-reference/components/url/x-components.url-handler.md +82 -0
  220. package/docs/assets/features/overview-my-history.svg +279 -0
  221. package/docs/assets/features/overview-product-results-card.svg +128 -0
  222. package/docs/assets/interface/build-search-ui.svg +167 -0
  223. package/docs/assets/interface/experience-search-intro.svg +1 -0
  224. package/docs/assets/interface/integration-guide.svg +1 -0
  225. package/docs/assets/interface/integration-video.png +0 -0
  226. package/docs/assets/interface/x-architecture.svg +1 -0
  227. package/docs/assets/interface/x-empathize.gif +0 -0
  228. package/docs/assets/interface/x-facets.gif +0 -0
  229. package/docs/assets/interface/x-facets.svg +189 -0
  230. package/docs/assets/interface/x-history-queries.gif +0 -0
  231. package/docs/assets/interface/x-id-results.gif +0 -0
  232. package/docs/assets/interface/x-next-queries.gif +0 -0
  233. package/docs/assets/interface/x-popular-searches.gif +0 -0
  234. package/docs/assets/interface/x-query-suggestions.gif +0 -0
  235. package/docs/assets/interface/x-recommendations.gif +0 -0
  236. package/docs/assets/interface/x-related-tags.gif +0 -0
  237. package/docs/assets/interface/x-results-layout.svg +259 -0
  238. package/docs/assets/interface/x-search-box-elements.svg +1 -0
  239. package/docs/assets/interface/x-search-box.svg +60 -0
  240. package/docs/build-search-ui/README.md +127 -0
  241. package/docs/build-search-ui/sidebar.js +7 -0
  242. package/docs/build-search-ui/web-archetype-development-guide.md +186 -0
  243. package/docs/build-search-ui/web-archetype-integration-guide.md +355 -0
  244. package/docs/build-search-ui/web-how-to-use-x-components-guide.md +200 -0
  245. package/docs/build-search-ui/web-x-architecture.md +83 -0
  246. package/docs/build-search-ui/web-x-components-development-guide.md +157 -0
  247. package/docs/experience-search-and-discovery/README.md +131 -0
  248. package/docs/experience-search-and-discovery/empathize.md +114 -0
  249. package/docs/experience-search-and-discovery/facets-and-filters.md +151 -0
  250. package/docs/experience-search-and-discovery/history-queries.md +67 -0
  251. package/docs/experience-search-and-discovery/id-results.md +46 -0
  252. package/docs/experience-search-and-discovery/my-history.md +57 -0
  253. package/docs/experience-search-and-discovery/next-queries.md +68 -0
  254. package/docs/experience-search-and-discovery/popular-searches.md +47 -0
  255. package/docs/experience-search-and-discovery/product-results-ui.md +79 -0
  256. package/docs/experience-search-and-discovery/query-suggestions.md +45 -0
  257. package/docs/experience-search-and-discovery/recommendations.md +49 -0
  258. package/docs/experience-search-and-discovery/related-tags.md +63 -0
  259. package/docs/experience-search-and-discovery/search-box.md +94 -0
  260. package/docs/experience-search-and-discovery/serp-ui.md +122 -0
  261. package/docs/experience-search-and-discovery/sidebar.js +17 -0
  262. package/docs/experience-search-and-discovery/web-local-storage.md +25 -0
  263. package/docs/input-status-machine-state.png +0 -0
  264. package/js/components/currency/base-currency.vue.js.map +1 -1
  265. package/js/components/currency/base-currency.vue_rollup-plugin-vue_script.vue.js +0 -1
  266. package/js/components/currency/base-currency.vue_rollup-plugin-vue_script.vue.js.map +1 -1
  267. package/js/index.js +1 -0
  268. package/js/index.js.map +1 -1
  269. package/js/x-modules/queries-preview/store/getters/loaded-queries-preview.getter.js +18 -0
  270. package/js/x-modules/queries-preview/store/getters/loaded-queries-preview.getter.js.map +1 -0
  271. package/js/x-modules/queries-preview/store/module.js +2 -1
  272. package/js/x-modules/queries-preview/store/module.js.map +1 -1
  273. package/js/x-modules/semantic-queries/components/semantic-queries.vue.js +65 -31
  274. package/js/x-modules/semantic-queries/components/semantic-queries.vue.js.map +1 -1
  275. package/js/x-modules/semantic-queries/components/semantic-queries.vue_rollup-plugin-vue_script.vue.js +160 -2
  276. package/js/x-modules/semantic-queries/components/semantic-queries.vue_rollup-plugin-vue_script.vue.js.map +1 -1
  277. package/js/x-modules/semantic-queries/components/semantic-query.vue.js +75 -0
  278. package/js/x-modules/semantic-queries/components/semantic-query.vue.js.map +1 -0
  279. package/js/x-modules/semantic-queries/components/semantic-query.vue_rollup-plugin-vue_script.vue.js +188 -0
  280. package/js/x-modules/semantic-queries/components/semantic-query.vue_rollup-plugin-vue_script.vue.js.map +1 -0
  281. package/js/x-modules/semantic-queries/store/getters/normalized-query.getter.js +16 -0
  282. package/js/x-modules/semantic-queries/store/getters/normalized-query.getter.js.map +1 -0
  283. package/js/x-modules/semantic-queries/store/module.js +3 -1
  284. package/js/x-modules/semantic-queries/store/module.js.map +1 -1
  285. package/package.json +2 -2
  286. package/report/x-components.api.json +286 -7
  287. package/report/x-components.api.md +19 -6
  288. package/semantic-queries/index.js +1 -0
  289. package/types/components/currency/base-currency.vue.d.ts +0 -1
  290. package/types/components/currency/base-currency.vue.d.ts.map +1 -1
  291. package/types/types/origin.d.ts +1 -1
  292. package/types/types/origin.d.ts.map +1 -1
  293. package/types/x-modules/queries-preview/store/getters/loaded-queries-preview.getter.d.ts +11 -0
  294. package/types/x-modules/queries-preview/store/getters/loaded-queries-preview.getter.d.ts.map +1 -0
  295. package/types/x-modules/queries-preview/store/module.d.ts.map +1 -1
  296. package/types/x-modules/queries-preview/store/types.d.ts +4 -0
  297. package/types/x-modules/queries-preview/store/types.d.ts.map +1 -1
  298. package/types/x-modules/semantic-queries/components/index.d.ts +1 -0
  299. package/types/x-modules/semantic-queries/components/index.d.ts.map +1 -1
  300. package/types/x-modules/semantic-queries/components/semantic-queries.vue.d.ts +13 -1
  301. package/types/x-modules/semantic-queries/components/semantic-queries.vue.d.ts.map +1 -1
  302. package/types/x-modules/semantic-queries/components/semantic-query.vue.d.ts +29 -0
  303. package/types/x-modules/semantic-queries/components/semantic-query.vue.d.ts.map +1 -0
  304. package/types/x-modules/semantic-queries/events.types.d.ts +6 -1
  305. package/types/x-modules/semantic-queries/events.types.d.ts.map +1 -1
  306. package/types/x-modules/semantic-queries/store/getters/index.d.ts +1 -0
  307. package/types/x-modules/semantic-queries/store/getters/index.d.ts.map +1 -1
  308. package/types/x-modules/semantic-queries/store/getters/normalized-query.getter.d.ts +13 -0
  309. package/types/x-modules/semantic-queries/store/getters/normalized-query.getter.d.ts.map +1 -0
  310. package/types/x-modules/semantic-queries/store/module.d.ts.map +1 -1
  311. package/types/x-modules/semantic-queries/store/types.d.ts +4 -0
  312. package/types/x-modules/semantic-queries/store/types.d.ts.map +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
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
+ ## [3.0.0-alpha.386](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.385...@empathyco/x-components@3.0.0-alpha.386) (2023-06-12)
7
+
8
+
9
+ ### Features
10
+
11
+ * **queries-preview:** add loaded previews getter (#1227) ([ab59fa2](https://github.com/empathyco/x/commit/ab59fa2c31440e1b47108cc5c334fe0cfaafad27))
12
+ * **semantic-queries:** add SemanticQuery component (#1226) ([09ed3b4](https://github.com/empathyco/x/commit/09ed3b4ad9c01cc116d29a1b618c6dae48e14829))
13
+
14
+
15
+
6
16
  ## [3.0.0-alpha.385](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.384...@empathyco/x-components@3.0.0-alpha.385) (2023-06-09)
7
17
 
8
18
 
package/core/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,5 @@
1
1
 
2
+
2
3
  .x-uppercase {
3
4
  text-transform: uppercase;
4
5
  }
@@ -7351,11 +7352,6 @@
7351
7352
  --x-string-stroke-linejoin-icon-default: mitter;
7352
7353
  --x-size-stroke-width-icon-default: 1px;
7353
7354
  }
7354
- :root {
7355
- --x-size-padding-grid: 0;
7356
- --x-size-gap-grid: var(--x-size-base-03);
7357
- --x-size-min-width-grid-item: 150px;
7358
- }
7359
7355
  :root {
7360
7356
  --x-color-stroke-icon-default: currentColor;
7361
7357
  --x-color-fill-icon-default: none;
@@ -7391,6 +7387,11 @@
7391
7387
  --x-size-gap-grid: var(--x-size-base-03);
7392
7388
  --x-size-min-width-grid-item: 150px;
7393
7389
  }
7390
+ :root {
7391
+ --x-size-padding-grid: 0;
7392
+ --x-size-gap-grid: var(--x-size-base-03);
7393
+ --x-size-min-width-grid-item: 150px;
7394
+ }
7394
7395
 
7395
7396
  .x-grid-list {
7396
7397
  margin: 0;
@@ -7489,38 +7490,6 @@
7489
7490
  );
7490
7491
  --x-size-line-height-filter-default: var(--x-size-line-height-text);
7491
7492
  }
7492
- :root {
7493
- --x-color-background-filter-default: transparent;
7494
- --x-color-border-filter-default: var(--x-color-background-filter-default);
7495
- --x-color-text-filter-default: var(--x-color-text-default);
7496
- --x-color-background-filter-default-selected: var(--x-color-background-filter-default);
7497
- --x-color-border-filter-default-selected: var(--x-color-border-filter-default);
7498
- --x-color-text-filter-default-selected: var(--x-color-text-filter-default);
7499
- --x-size-border-width-filter-default: var(--x-size-border-width-base);
7500
- --x-size-border-width-top-filter-default: var(--x-size-border-width-filter-default);
7501
- --x-size-border-width-right-filter-default: var(--x-size-border-width-filter-default);
7502
- --x-size-border-width-bottom-filter-default: var(--x-size-border-width-filter-default);
7503
- --x-size-border-width-left-filter-default: var(--x-size-border-width-filter-default);
7504
- --x-size-border-radius-filter-default: var(--x-size-border-radius-base-none);
7505
- --x-size-border-radius-top-left-filter-default: var(--x-size-border-radius-filter-default);
7506
- --x-size-border-radius-top-right-filter-default: var(--x-size-border-radius-filter-default);
7507
- --x-size-border-radius-bottom-right-filter-default: var(--x-size-border-radius-filter-default);
7508
- --x-size-border-radius-bottom-left-filter-default: var(--x-size-border-radius-filter-default);
7509
- --x-size-padding-top-filter-default: var(--x-size-base-03);
7510
- --x-size-padding-right-filter-default: 0;
7511
- --x-size-padding-bottom-filter-default: var(--x-size-base-03);
7512
- --x-size-padding-left-filter-default: 0;
7513
- --x-size-gap-filter-default: var(--x-size-base-03);
7514
- --x-font-family-filter-default: var(--x-font-family-text);
7515
- --x-size-font-filter-default: var(--x-size-font-text);
7516
- --x-number-font-weight-filter-default: var(--x-number-font-weight-base-regular);
7517
- --x-number-font-weight-filter-default-selected: var(--x-number-font-weight-base-bold);
7518
- --x-number-font-weight-filter-count-default: var(--x-number-font-weight-base-light);
7519
- --x-number-font-weight-filter-count-default-selected: var(
7520
- --x-number-font-weight-filter-count-default
7521
- );
7522
- --x-size-line-height-filter-default: var(--x-size-line-height-text);
7523
- }
7524
7493
 
7525
7494
  [dir="ltr"] .x-filter,[dir="ltr"] .x-facet-filter {
7526
7495
  padding-left: var(--x-size-padding-left-filter-default);
@@ -8841,3 +8810,35 @@
8841
8810
  --x-size-border-radius-base-pill: 99999px;
8842
8811
  --x-size-border-width-base: 1px;
8843
8812
  }
8813
+ :root {
8814
+ --x-color-background-filter-default: transparent;
8815
+ --x-color-border-filter-default: var(--x-color-background-filter-default);
8816
+ --x-color-text-filter-default: var(--x-color-text-default);
8817
+ --x-color-background-filter-default-selected: var(--x-color-background-filter-default);
8818
+ --x-color-border-filter-default-selected: var(--x-color-border-filter-default);
8819
+ --x-color-text-filter-default-selected: var(--x-color-text-filter-default);
8820
+ --x-size-border-width-filter-default: var(--x-size-border-width-base);
8821
+ --x-size-border-width-top-filter-default: var(--x-size-border-width-filter-default);
8822
+ --x-size-border-width-right-filter-default: var(--x-size-border-width-filter-default);
8823
+ --x-size-border-width-bottom-filter-default: var(--x-size-border-width-filter-default);
8824
+ --x-size-border-width-left-filter-default: var(--x-size-border-width-filter-default);
8825
+ --x-size-border-radius-filter-default: var(--x-size-border-radius-base-none);
8826
+ --x-size-border-radius-top-left-filter-default: var(--x-size-border-radius-filter-default);
8827
+ --x-size-border-radius-top-right-filter-default: var(--x-size-border-radius-filter-default);
8828
+ --x-size-border-radius-bottom-right-filter-default: var(--x-size-border-radius-filter-default);
8829
+ --x-size-border-radius-bottom-left-filter-default: var(--x-size-border-radius-filter-default);
8830
+ --x-size-padding-top-filter-default: var(--x-size-base-03);
8831
+ --x-size-padding-right-filter-default: 0;
8832
+ --x-size-padding-bottom-filter-default: var(--x-size-base-03);
8833
+ --x-size-padding-left-filter-default: 0;
8834
+ --x-size-gap-filter-default: var(--x-size-base-03);
8835
+ --x-font-family-filter-default: var(--x-font-family-text);
8836
+ --x-size-font-filter-default: var(--x-size-font-text);
8837
+ --x-number-font-weight-filter-default: var(--x-number-font-weight-base-regular);
8838
+ --x-number-font-weight-filter-default-selected: var(--x-number-font-weight-base-bold);
8839
+ --x-number-font-weight-filter-count-default: var(--x-number-font-weight-base-light);
8840
+ --x-number-font-weight-filter-count-default-selected: var(
8841
+ --x-number-font-weight-filter-count-default
8842
+ );
8843
+ --x-size-line-height-filter-default: var(--x-size-line-height-text);
8844
+ }
@@ -36,8 +36,6 @@ _default: import("vue").DefineComponent<{
36
36
 
37
37
  The number of 'd', which is the maximum decimal length, MUST matches with the length of decimals provided from the adapter. Otherwise, when the component truncate the decimal part, it deletes significant digits.
38
38
 
39
- ## Example
40
-
41
39
  Basic example:
42
40
 
43
41
  ```vue
@@ -112,6 +112,7 @@ X-Components is a library usable everywhere not only for search experiences.
112
112
  | [SelectedFilters](./x-components.selectedfilters.md) | <p>Provides a scoped slot with the selected filters from every facet, or from the facet which facet id is passed as property.</p><p>The default slot renders the length of the selected filters array. The property "alwaysVisible" handles if the component is rendered if no filters are selected.</p> |
113
113
  | [SelectedFiltersList](./x-components.selectedfilterslist.md) | <p>This component renders a list of selected filters from every facet, or from the facet ids passed as property. It uses the SelectedFilters component (state).</p><p>It provides two slots: a scoped one which name is the filter facet id; and a default one. Both exposes the filter and renders the filter label by default.</p><p>The property "alwaysVisible" handles if the component is rendered if no filters are selected.</p> |
114
114
  | [SemanticQueries](./x-components.semanticqueries.md) | Retrieves a list of semantic queries from the state and exposes them in the slots. |
115
+ | [SemanticQuery](./x-components.semanticquery.md) | This component renders a semantic query. A semantic query is a recommended query that is similar in its meaning to another one. It contains the query and the distance, which indicates how similar the query is compared to the searched query. |
115
116
  | [SimpleFilter](./x-components.simplefilter.md) | Renders a simple filter, emitting the needed events when clicked. |
116
117
  | [SingleColumnLayout](./x-components.singlecolumnlayout.md) | Component for use as Layout to be filled with the rest of the Components. |
117
118
  | [SlicedFilters](./x-components.slicedfilters.md) | Component that slices a list of filters and returns them using the default scoped slot, allowing the user to show the full list of them or slicing them again using the show more/less buttons. |
@@ -0,0 +1,13 @@
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; [QueriesPreviewGetters](./x-components.queriespreviewgetters.md) &gt; [loadedQueriesPreview](./x-components.queriespreviewgetters.loadedqueriespreview.md)
4
+
5
+ ## QueriesPreviewGetters.loadedQueriesPreview property
6
+
7
+ The loaded previews from the state.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ loadedQueriesPreview: Dictionary<QueryPreviewItem>;
13
+ ```
@@ -11,3 +11,10 @@ QueriesPreview store getters.
11
11
  ```typescript
12
12
  export interface QueriesPreviewGetters
13
13
  ```
14
+
15
+ ## Properties
16
+
17
+ | Property | Modifiers | Type | Description |
18
+ | --- | --- | --- | --- |
19
+ | [loadedQueriesPreview](./x-components.queriespreviewgetters.loadedqueriespreview.md) | | Dictionary&lt;[QueryPreviewItem](./x-components.querypreviewitem.md)<!-- -->&gt; | The loaded previews from the state. |
20
+
@@ -9,5 +9,5 @@ The name of the tool that generated the query.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export type QueryFeature = 'search_box' | 'url' | 'query_suggestion' | 'next_query' | 'popular_search' | 'history_query' | 'partial_result' | 'related_tag' | 'spellcheck' | 'customer';
12
+ export type QueryFeature = 'search_box' | 'url' | 'query_suggestion' | 'next_query' | 'popular_search' | 'history_query' | 'partial_result' | 'related_tag' | 'spellcheck' | 'customer' | 'semantics';
13
13
  ```
@@ -0,0 +1,26 @@
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; [SemanticQueries](./x-components.semanticqueries.md) &gt; [findSemanticQuery](./x-components.semanticqueries.findsemanticquery.md)
4
+
5
+ ## SemanticQueries.findSemanticQuery() method
6
+
7
+ Finds a [SemanticQuery](./x-types.semanticquery.md) given a query.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ findSemanticQuery(query: string): SemanticQueryModel | undefined;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ | Parameter | Type | Description |
18
+ | --- | --- | --- |
19
+ | query | string | The query to search. |
20
+
21
+ **Returns:**
22
+
23
+ SemanticQueryModel \| undefined
24
+
25
+ The [SemanticQuery](./x-types.semanticquery.md) or undefined if not found.
26
+
@@ -13,3 +13,15 @@ export default class SemanticQueries extends Vue
13
13
  ```
14
14
  **Extends:** Vue
15
15
 
16
+ ## Properties
17
+
18
+ | Property | Modifiers | Type | Description |
19
+ | --- | --- | --- | --- |
20
+ | [suggestions](./x-components.semanticqueries.suggestions.md) | | SemanticQueryModel\[\] | The semantic queries from the state. |
21
+
22
+ ## Methods
23
+
24
+ | Method | Modifiers | Description |
25
+ | --- | --- | --- |
26
+ | [findSemanticQuery(query)](./x-components.semanticqueries.findsemanticquery.md) | | Finds a [SemanticQuery](./x-types.semanticquery.md) given a query. |
27
+
@@ -0,0 +1,13 @@
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; [SemanticQueries](./x-components.semanticqueries.md) &gt; [suggestions](./x-components.semanticqueries.suggestions.md)
4
+
5
+ ## SemanticQueries.suggestions property
6
+
7
+ The semantic queries from the state.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ suggestions: SemanticQueryModel[];
13
+ ```
@@ -16,5 +16,6 @@ export interface SemanticQueriesGetters
16
16
 
17
17
  | Property | Modifiers | Type | Description |
18
18
  | --- | --- | --- | --- |
19
+ | [normalizedQuery](./x-components.semanticqueriesgetters.normalizedquery.md) | | string | The normalized module's query. |
19
20
  | [request](./x-components.semanticqueriesgetters.request.md) | | SemanticQueriesRequest \| null | The request to fetch the semantic queries. |
20
21
 
@@ -0,0 +1,13 @@
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; [SemanticQueriesGetters](./x-components.semanticqueriesgetters.md) &gt; [normalizedQuery](./x-components.semanticqueriesgetters.normalizedquery.md)
4
+
5
+ ## SemanticQueriesGetters.normalizedQuery property
6
+
7
+ The normalized module's query.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ normalizedQuery: string;
13
+ ```
@@ -17,4 +17,5 @@ export interface SemanticQueriesXEvents
17
17
  | Property | Modifiers | Type | Description |
18
18
  | --- | --- | --- | --- |
19
19
  | [SemanticQueryRequestUpdated](./x-components.semanticqueriesxevents.semanticqueryrequestupdated.md) | | SemanticQueriesRequest \| null | Any property of the semantic queries request has changed. Payload: The new [request](./x-types.semanticqueriesrequest.md)<!-- -->. |
20
+ | [UserSelectedASemanticQuery](./x-components.semanticqueriesxevents.userselectedasemanticquery.md) | | SemanticQuery | The user has selected a semantic query. Payload: The [semantic query](./x-components.semanticquery.md) selected. |
20
21
 
@@ -0,0 +1,13 @@
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; [SemanticQueriesXEvents](./x-components.semanticqueriesxevents.md) &gt; [UserSelectedASemanticQuery](./x-components.semanticqueriesxevents.userselectedasemanticquery.md)
4
+
5
+ ## SemanticQueriesXEvents.UserSelectedASemanticQuery property
6
+
7
+ The user has selected a semantic query. Payload: The [semantic query](./x-components.semanticquery.md) selected.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ UserSelectedASemanticQuery: SemanticQuery;
13
+ ```
@@ -0,0 +1,22 @@
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; [SemanticQuery](./x-components.semanticquery.md)
4
+
5
+ ## SemanticQuery class
6
+
7
+ This component renders a semantic query. A semantic query is a recommended query that is similar in its meaning to another one. It contains the query and the distance, which indicates how similar the query is compared to the searched query.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export default class SemanticQuery extends Vue
13
+ ```
14
+ **Extends:** Vue
15
+
16
+ ## Properties
17
+
18
+ | Property | Modifiers | Type | Description |
19
+ | --- | --- | --- | --- |
20
+ | [query](./x-components.semanticquery.query.md) | | string | The normalized query of the semantic queries module. |
21
+ | [suggestion](./x-components.semanticquery.suggestion.md) | | SemanticQueryModel | The [SemanticQuery](./x-types.semanticquery.md) to render. |
22
+
@@ -0,0 +1,13 @@
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; [SemanticQuery](./x-components.semanticquery.md) &gt; [query](./x-components.semanticquery.query.md)
4
+
5
+ ## SemanticQuery.query property
6
+
7
+ The normalized query of the semantic queries module.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ query: string;
13
+ ```
@@ -0,0 +1,13 @@
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; [SemanticQuery](./x-components.semanticquery.md) &gt; [suggestion](./x-components.semanticquery.suggestion.md)
4
+
5
+ ## SemanticQuery.suggestion property
6
+
7
+ The [SemanticQuery](./x-types.semanticquery.md) to render.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ suggestion: SemanticQueryModel;
13
+ ```
@@ -0,0 +1,65 @@
1
+ ---
2
+
3
+ title: AnimateWidth
4
+
5
+ ---
6
+
7
+ # AnimateWidth
8
+
9
+ Renders a transition wrapping an element passed in the default slot and animating its width.
10
+
11
+ ## Slots
12
+
13
+ | Name | Description | Bindings<br />(name - type - description) |
14
+ | -------------------- | ----------------------------- | ----------------------------------------- |
15
+ | <code>default</code> | (Required) Transition content | None |
16
+
17
+ ## Examples
18
+
19
+ The AnimateWidth component is intended to be used as a prop in animatable components but also works
20
+ as a transition to animate the width of an element.
21
+
22
+ Used as a prop in an animatable component:
23
+
24
+ ```vue
25
+ <template>
26
+ <AnimatableComponent :animation="AnimateWidth" />
27
+ </template>
28
+
29
+ <script>
30
+ import AnimateWidth from '@empathyco/x-components/js/components/animations/animate-width.vue';
31
+
32
+ export default {
33
+ data() {
34
+ return {
35
+ AnimateWidth
36
+ };
37
+ }
38
+ };
39
+ </script>
40
+ ```
41
+
42
+ Used as a regular Transition:
43
+
44
+ ```vue
45
+ <template>
46
+ <div>
47
+ <button @click="visible = !visible">Toggle</button>
48
+ <AnimateWidth>
49
+ <div v-if="visible" style="width: 300px">Element to animate</div>
50
+ </AnimateWidth>
51
+ </div>
52
+ </template>
53
+
54
+ <script>
55
+ import AnimateWidth from '@empathyco/x-components/js/components/animations/animate-width.vue';
56
+
57
+ export default {
58
+ data() {
59
+ return {
60
+ visible: true
61
+ };
62
+ }
63
+ };
64
+ </script>
65
+ ```
@@ -0,0 +1,36 @@
1
+ ---
2
+
3
+ title: CollapseHeight
4
+
5
+ ---
6
+
7
+ # CollapseHeight
8
+
9
+ Renders a transition wrapping the element passed in the default slot and animating it with a height
10
+ animation.
11
+
12
+ ## Props
13
+
14
+ | Name | Description | Type | Default |
15
+ | ------------------- | ------------------------------------------------------------------------------ | -------------------- | ----------------- |
16
+ | <code>appear</code> | Indicates if the transition must be applied on the initial render of the node. | <code>boolean</code> | <code>true</code> |
17
+
18
+ ## Slots
19
+
20
+ | Name | Description | Bindings<br />(name - type - description) |
21
+ | -------------------- | ------------------------------------------- | ----------------------------------------- |
22
+ | <code>default</code> | (Required) to add content to the transition | None |
23
+
24
+ ## Examples
25
+
26
+ The CollapseHeight component is intended to be used as animation to wrap an element with v-if or
27
+ v-show and animate it. The animation consists on scale its height size from 0 to auto. This
28
+ transition does not work with components that have vertical margin, padding or border.
29
+
30
+ Used wrapping a component:
31
+
32
+ ```vue
33
+ <CollapseHeight>
34
+ <ComponentOrElement v-if="open"/>
35
+ </CollapseHeight>
36
+ ```
@@ -0,0 +1,37 @@
1
+ ---
2
+
3
+ title: CollapseWidth
4
+
5
+ ---
6
+
7
+ # CollapseWidth
8
+
9
+ Renders a transition wrapping the element passed in the default slot and animating it with a width
10
+ animation.
11
+
12
+ ## Props
13
+
14
+ | Name | Description | Type | Default |
15
+ | ------------------- | ------------------------------------------------------------------------------ | -------------------- | ----------------- |
16
+ | <code>appear</code> | Indicates if the transition must be applied on the initial render of the node. | <code>boolean</code> | <code>true</code> |
17
+
18
+ ## Slots
19
+
20
+ | Name | Description | Bindings<br />(name - type - description) |
21
+ | -------------------- | ------------------------------------------- | ----------------------------------------- |
22
+ | <code>default</code> | (Required) to add content to the transition | None |
23
+
24
+ ## Examples
25
+
26
+ The CollapseWidth component is intended to be used as animation to wrap an element with v-if or
27
+ v-show and animate it. The animation consists on scale its width size from 0 to auto. This
28
+ transition does not work with components that have horizontal margin, padding or border. It also is
29
+ dependant of the width of the child elements and not the root element.
30
+
31
+ Used wrapping a component:
32
+
33
+ ```vue
34
+ <CollapseWidth>
35
+ <ComponentOrElement v-if="open"/>
36
+ </CollapseWidth>
37
+ ```
@@ -0,0 +1,35 @@
1
+ ---
2
+
3
+ title: CrossFade
4
+
5
+ ---
6
+
7
+ # CrossFade
8
+
9
+ Renders a transition wrapping the element passed in the default slot. The transition fades between
10
+ the two toggled elements at the same time.
11
+
12
+ ## Props
13
+
14
+ | Name | Description | Type | Default |
15
+ | ------------------- | ------------------------------------------------------------------------------ | -------------------- | ----------------- |
16
+ | <code>appear</code> | Indicates if the transition must be applied on the initial render of the node. | <code>boolean</code> | <code>true</code> |
17
+
18
+ ## Slots
19
+
20
+ | Name | Description | Bindings<br />(name - type - description) |
21
+ | -------------------- | ------------------------------------------- | ----------------------------------------- |
22
+ | <code>default</code> | (Required) to add content to the transition | None |
23
+
24
+ ## Example
25
+
26
+ The `CrossFade` component is intended to be used as animation to wrap an element with v-if or v-show
27
+ and animate it. The animation fades the new element into the previous one.
28
+
29
+ Wrapping a component:
30
+
31
+ ```vue
32
+ <CrossFade>
33
+ <ComponentOrElement v-if="open"/>
34
+ </CrossFade>
35
+ ```
@@ -0,0 +1,44 @@
1
+ ---
2
+
3
+ title: FadeAndSlide
4
+
5
+ ---
6
+
7
+ # FadeAndSlide
8
+
9
+ Renders a transition group wrapping the elements passed in the default slot and animating them with
10
+ a fade and slide animation.
11
+
12
+ ## Props
13
+
14
+ | Name | Description | Type | Default |
15
+ | ------------------- | ------------------------------------------------------------------------------ | -------------------- | ----------------- |
16
+ | <code>tag</code> | HTML Element that the transition-group children will be wrapped in. | <code>string</code> | <code></code> |
17
+ | <code>appear</code> | Indicates if the transition must be applied on the initial render of the node. | <code>boolean</code> | <code>true</code> |
18
+
19
+ ## Slots
20
+
21
+ | Name | Description | Bindings<br />(name - type - description) |
22
+ | -------------------- | ----------------------------------- | ----------------------------------------- |
23
+ | <code>default</code> | (Required) Transition-group content | None |
24
+
25
+ ## Examples
26
+
27
+ The FadeAndSlide component is intended to be used as a prop in animatable components but also works
28
+ as a wrapper of a transition group that can receive the tag it will render to as a prop.
29
+
30
+ Used as a prop in an animatable component:
31
+
32
+ ```vue
33
+ <AnimatableComponent :animation="FadeAndSlide" />
34
+ ```
35
+
36
+ Used as a regular component passing a the tag as prop:
37
+
38
+ ```vue
39
+ <FadeAndSlide tag="ul">
40
+ <li>Element to animate</li>
41
+ <li>Element to animate</li>
42
+ <li>Element to animate</li>
43
+ </FadeAndSlide>
44
+ ```
@@ -0,0 +1,54 @@
1
+ ---
2
+
3
+ title: Fade
4
+
5
+ ---
6
+
7
+ # Fade
8
+
9
+ Renders a transition wrapping the element passed in the default slot. The animation just fades
10
+ in/out the element by changing its opacity.
11
+
12
+ ## Props
13
+
14
+ | Name | Description | Type | Default |
15
+ | ------------------- | ------------------------------------------------------------------------------ | -------------------- | ----------------- |
16
+ | <code>appear</code> | Indicates if the transition must be applied on the initial render of the node. | <code>boolean</code> | <code>true</code> |
17
+
18
+ ## Slots
19
+
20
+ | Name | Description | Bindings<br />(name - type - description) |
21
+ | -------------------- | ------------------------------------------- | ----------------------------------------- |
22
+ | <code>default</code> | (Required) to add content to the transition | None |
23
+
24
+ ## Example
25
+
26
+ The `Fade` component is intended to be used as animation to wrap an element with v-if or v-show and
27
+ animate it. The animation just fades in/out the element by changing its opacity.
28
+
29
+ Wrapping a component:
30
+
31
+ ```vue live
32
+ <template>
33
+ <div>
34
+ <button @click="shouldRender = !shouldRender">Toggle</button>
35
+ <Fade>
36
+ <p v-if="shouldRender">León is southern Spain</p>
37
+ </Fade>
38
+ </div>
39
+ </template>
40
+ <script>
41
+ import { Fade } from '@empathyco/x-components';
42
+ export default {
43
+ name: 'FadeAnimationDemo',
44
+ components: {
45
+ Fade
46
+ },
47
+ data() {
48
+ return {
49
+ shouldRender: false
50
+ };
51
+ }
52
+ };
53
+ </script>
54
+ ```
@@ -0,0 +1,46 @@
1
+ ---
2
+
3
+ title: StaggeredFadeAndSlide
4
+
5
+ ---
6
+
7
+ # StaggeredFadeAndSlide
8
+
9
+ Renders a transition group wrapping the elements passed in the default slot and animating them with
10
+ an staggered fade and slide animation.
11
+
12
+ ## Props
13
+
14
+ | Name | Description | Type | Default |
15
+ | ------------------- | ------------------------------------------------------------------------------ | -------------------- | ----------------- |
16
+ | <code>appear</code> | Indicates if the transition must be applied on the initial render of the node. | <code>boolean</code> | <code>true</code> |
17
+
18
+ ## Slots
19
+
20
+ | Name | Description | Bindings<br />(name - type - description) |
21
+ | -------------------- | ----------------------------------- | ----------------------------------------- |
22
+ | <code>default</code> | (Required) Transition-group content | None |
23
+
24
+ The Staggered fade and slide components works as the normal fade and slide components, but it also
25
+ adds a configurable delay to each transition.
26
+
27
+ ## Example
28
+
29
+ ### Used with animatable components
30
+
31
+ ```vue
32
+ <AnimatableComponent :animation="StaggeredFadeAndSlide" />
33
+ ```
34
+
35
+ ### Used as a regular component:
36
+
37
+ This components exposes all the props and events of the Staggering transition group, like the `tag`
38
+ or the `stagger` props:
39
+
40
+ ```vue
41
+ <StaggeredFadeAndSlide tag="ul" :stagger="50">
42
+ <li>Element to animate</li>
43
+ <li>Element to animate</li>
44
+ <li>Element to animate</li>
45
+ </StaggeredFadeAndSlide>
46
+ ```