@coveo/atomic 3.31.2-pre.d1ef280b84 → 3.31.2-pre.da74c43571
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atomic/_atomic.esm.js +1 -1
- package/dist/atomic/atomic.esm.js.map +1 -1
- package/dist/atomic/components/_index.d.ts +0 -4
- package/dist/atomic/components/_index.js +0 -2
- package/dist/atomic/components/analytics-config.js +235 -299
- package/dist/atomic/components/analytics-config.js.map +1 -1
- package/dist/atomic/components/atomic-category-facet.js +1 -1
- package/dist/atomic/components/atomic-facet.js +1 -1
- package/dist/atomic/components/atomic-format-currency.js +1 -1
- package/dist/atomic/components/atomic-format-number.js +1 -1
- package/dist/atomic/components/atomic-format-unit.js +1 -1
- package/dist/atomic/components/atomic-numeric-facet.js +1 -1
- package/dist/atomic/components/atomic-quickview-modal2.js +1 -1
- package/dist/atomic/components/atomic-quickview.js +1 -1
- package/dist/atomic/components/atomic-result-children.js +1 -1
- package/dist/atomic/components/atomic-result-fields-list.js +1 -1
- package/dist/atomic/components/atomic-result-link.js +1 -1
- package/dist/atomic/components/atomic-result-list.js +1 -1
- package/dist/atomic/components/atomic-search-box-query-suggestions2.js +1 -1
- package/dist/atomic/components/atomic-search-box-recent-queries2.js +1 -1
- package/dist/atomic/components/atomic-search-interface.js +1 -7
- package/dist/atomic/components/atomic-search-interface.js.map +1 -1
- package/dist/atomic/components/atomic-smart-snippet-feedback-modal2.js +2 -2
- package/dist/atomic/components/atomic-sort-dropdown.js +2 -2
- package/dist/atomic/components/atomic-sort-expression.js +1 -1
- package/dist/atomic/components/atomic-tab-manager.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-interface/analytics-config.js +2 -0
- package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +21 -27
- package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-layout/atomic-commerce-layout.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-load-more-products/atomic-commerce-load-more-products.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-product-list/atomic-commerce-product-list.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-query-summary/atomic-commerce-query-summary.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.js +22 -36
- package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-list/atomic-commerce-recommendation-list.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-refine-modal/atomic-commerce-refine-modal.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-refine-toggle/atomic-commerce-refine-toggle.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +3 -0
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-sort-dropdown/atomic-commerce-sort-dropdown.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product/atomic-product.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-children/atomic-product-children.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-description/atomic-product-description.js +149 -0
- package/dist/atomic/components/components/commerce/atomic-product-description/atomic-product-description.tw.css.js +3 -0
- package/dist/atomic/components/components/commerce/atomic-product-excerpt/atomic-product-excerpt.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-link/atomic-product-link.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-multi-value-text/atomic-product-multi-value-text.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-price/atomic-product-price.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-template/atomic-product-template.js +1 -0
- package/dist/atomic/components/components/commerce/index.js +1 -0
- package/dist/atomic/components/components/commerce/lazy-index.js +1 -0
- package/dist/atomic/components/components/common/atomic-aria-live/atomic-aria-live.js +102 -0
- package/dist/atomic/components/components/common/atomic-icon/atomic-icon.tw.css.js +1 -1
- package/dist/atomic/components/components/common/facets/facet-common.tw.css.js +1 -1
- package/dist/atomic/components/components/common/facets/facet-search/facet-search.tw.css.js +1 -1
- package/dist/atomic/components/components/common/facets/facet-value-box/facet-value-box.tw.css.js +1 -1
- package/dist/atomic/components/components/common/facets/facet-value-checkbox/facet-value-checkbox.tw.css.js +1 -1
- package/dist/atomic/components/components/common/facets/facet-value-exclude/facet-value-exclude.tw.css.js +1 -1
- package/dist/atomic/components/components/common/index.js +1 -0
- package/dist/atomic/components/components/common/interface/analytics-config.js +38 -0
- package/dist/atomic/components/components/common/interface/interface-controller.js +89 -0
- package/dist/atomic/components/components/common/lazy-index.js +1 -0
- package/dist/atomic/components/components/common/refine-modal/refine-modal-common.tw.css.js +1 -1
- package/dist/atomic/components/debounce-utils.js +1 -34
- package/dist/atomic/components/debounce-utils.js.map +1 -1
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/components/global/tailwind.default.css.js +1 -1
- package/dist/atomic/components/index.js.map +1 -1
- package/dist/atomic/components/stencil-accessibility-utils.js.map +1 -1
- package/dist/atomic/components/stencil-facet-show-more-less.js +7 -1
- package/dist/atomic/components/stencil-facet-show-more-less.js.map +1 -1
- package/dist/atomic/components/themes/accessible.css.js +1 -1
- package/dist/atomic/components/themes/coveo.css.js +1 -1
- package/dist/atomic/components/utils/coveo.tw.css.js +1 -1
- package/dist/atomic/components/utils/tailwind-utilities/aspect-square.tw.css.js +1 -1
- package/dist/atomic/components/utils/tailwind-utilities/components.tw.css.js +1 -1
- package/dist/atomic/components/utils/tailwind-utilities/hide-scrollbar.tw.css.js +1 -1
- package/dist/atomic/components/utils/tailwind-utilities/link-style.tw.css.js +1 -1
- package/dist/atomic/components/utils/tailwind-utilities/set-font-size.tw.css.js +1 -1
- package/dist/atomic/components/utils/tailwind-utilities/utilities.tw.css.js +1 -1
- package/dist/atomic/components/utils/tailwind.global.tw.css.js +1 -1
- package/dist/atomic/p-01c91b69.js +2 -0
- package/dist/atomic/p-01c91b69.js.map +1 -0
- package/dist/atomic/{p-1b491649.entry.js → p-0af927f0.entry.js} +2 -2
- package/dist/atomic/{p-b043958c.entry.js → p-0b9cd281.entry.js} +2 -2
- package/dist/atomic/{p-e44ba87e.entry.js → p-0f5ae66e.entry.js} +2 -2
- package/dist/atomic/{p-0674783d.entry.js → p-1b329f85.entry.js} +2 -2
- package/dist/atomic/p-271cf67e.entry.js +2 -0
- package/dist/atomic/p-271cf67e.entry.js.map +1 -0
- package/dist/atomic/p-306161d1.entry.js +2 -0
- package/dist/atomic/p-417b1b64.js +2 -0
- package/dist/atomic/{p-c100197d.js.map → p-417b1b64.js.map} +1 -1
- package/dist/atomic/p-44a3c052.entry.js +2 -0
- package/dist/atomic/{p-e215ba76.entry.js.map → p-44a3c052.entry.js.map} +1 -1
- package/dist/atomic/{p-a0445771.entry.js → p-4c5702ba.entry.js} +2 -2
- package/dist/atomic/{p-acc4d5de.js → p-53bcc515.js} +2 -2
- package/dist/atomic/{p-e2560da8.entry.js → p-5f64bbe0.entry.js} +2 -2
- package/dist/atomic/{p-fc73190d.entry.js → p-6638ca39.entry.js} +2 -2
- package/dist/atomic/{p-0c35973c.entry.js → p-6c412aa0.entry.js} +2 -2
- package/dist/atomic/{p-1176959c.entry.js → p-6f8ae3d2.entry.js} +2 -2
- package/dist/atomic/{p-0ed0e8b8.entry.js → p-731f82ed.entry.js} +2 -2
- package/dist/atomic/{p-25f8b8d8.entry.js → p-7a07530d.entry.js} +2 -2
- package/dist/atomic/{p-c8d47706.entry.js → p-7a5d346b.entry.js} +2 -2
- package/dist/atomic/{p-09af5eb5.entry.js → p-7db6d666.entry.js} +2 -2
- package/dist/atomic/p-8434625a.entry.js +2 -0
- package/dist/atomic/{p-8bb323e8.entry.js.map → p-8434625a.entry.js.map} +1 -1
- package/dist/atomic/{p-5b888121.entry.js → p-89721f11.entry.js} +2 -2
- package/dist/atomic/p-91477908.entry.js +2 -0
- package/dist/atomic/{p-3f881919.entry.js.map → p-91477908.entry.js.map} +1 -1
- package/dist/atomic/p-91d52cad.entry.js +2 -0
- package/dist/atomic/{p-4e77fe24.entry.js.map → p-91d52cad.entry.js.map} +1 -1
- package/dist/atomic/p-96a6f84f.js.map +1 -1
- package/dist/atomic/{p-11dd759c.entry.js → p-b1f7ac63.entry.js} +2 -2
- package/dist/atomic/{p-5fc9f751.entry.js → p-bf5d5c79.entry.js} +2 -2
- package/dist/atomic/{p-716e9e1d.entry.js → p-c0025d4c.entry.js} +2 -2
- package/dist/atomic/p-d99e359b.js +2 -0
- package/dist/atomic/p-d99e359b.js.map +1 -0
- package/dist/atomic/{p-494c57a0.entry.js → p-e406cacd.entry.js} +2 -2
- package/dist/atomic/p-e8ba8acd.entry.js +2 -0
- package/dist/atomic/{p-0873c1b8.entry.js.map → p-e8ba8acd.entry.js.map} +1 -1
- package/dist/atomic/{p-f7e6b154.entry.js → p-ef45ff5c.entry.js} +2 -2
- package/dist/atomic/p-f0e861c5.entry.js +2 -0
- package/dist/atomic/{p-391c26ba.entry.js → p-f9bfd18b.entry.js} +2 -2
- package/dist/cjs/_loader.cjs.js +1 -1
- package/dist/cjs/{analytics-config-2b794369.js → analytics-config-e18c57f7.js} +236 -300
- package/dist/cjs/analytics-config-e18c57f7.js.map +1 -0
- package/dist/cjs/atomic-category-facet.cjs.entry.js +2 -3
- package/dist/cjs/atomic-category-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-color-facet.cjs.entry.js +1 -2
- package/dist/cjs/atomic-color-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-commerce-category-facet_4.cjs.entry.js +1 -2
- package/dist/cjs/atomic-commerce-category-facet_4.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-facet.cjs.entry.js +2 -3
- package/dist/cjs/atomic-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-format-currency.cjs.entry.js +1 -1
- package/dist/cjs/atomic-format-number.cjs.entry.js +1 -1
- package/dist/cjs/atomic-format-unit.cjs.entry.js +1 -1
- package/dist/cjs/atomic-generated-answer.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-facet.cjs.entry.js +1 -2
- package/dist/cjs/atomic-insight-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-generated-answer.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-interface.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-search-box.cjs.entry.js +2 -2
- package/dist/cjs/atomic-numeric-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-quickview-modal.cjs.entry.js +1 -1
- package/dist/cjs/atomic-quickview.cjs.entry.js +1 -1
- package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
- package/dist/cjs/{atomic-aria-live_2.cjs.entry.js → atomic-relevance-inspector.cjs.entry.js} +1 -68
- package/dist/cjs/atomic-relevance-inspector.cjs.entry.js.map +1 -0
- package/dist/cjs/atomic-result-children.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-fields-list.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-link.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-list.cjs.entry.js +1 -1
- package/dist/cjs/atomic-search-box-query-suggestions_2.cjs.entry.js +2 -2
- package/dist/cjs/atomic-search-box.cjs.entry.js +2 -2
- package/dist/cjs/atomic-search-interface.cjs.entry.js +1 -1
- package/dist/cjs/atomic-smart-snippet-feedback-modal.cjs.entry.js +2 -2
- package/dist/cjs/atomic-sort-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/atomic-sort-expression.cjs.entry.js +1 -1
- package/dist/cjs/atomic-tab-manager.cjs.entry.js +1 -1
- package/dist/cjs/atomic.cjs.js +1 -1
- package/dist/cjs/debounce-utils-d26bcad4.js +15 -0
- package/dist/cjs/debounce-utils-d26bcad4.js.map +1 -0
- package/dist/cjs/index-757bc886.js +4 -8
- package/dist/cjs/stencil-accessibility-utils-aa4c9f6c.js.map +1 -1
- package/dist/cjs/{stencil-facet-show-more-less-21d22973.js → stencil-facet-show-more-less-541e1544.js} +10 -4
- package/dist/cjs/stencil-facet-show-more-less-541e1544.js.map +1 -0
- package/dist/cjs/{stencil-suggestion-manager-6f778cf0.js → stencil-suggestion-manager-5fa3ac70.js} +2 -2
- package/dist/cjs/{stencil-suggestion-manager-6f778cf0.js.map → stencil-suggestion-manager-5fa3ac70.js.map} +1 -1
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/_loader.js +1 -1
- package/dist/esm/{analytics-config-482346f6.js → analytics-config-b8b6bdbb.js} +236 -300
- package/dist/esm/analytics-config-b8b6bdbb.js.map +1 -0
- package/dist/esm/atomic-category-facet.entry.js +2 -3
- package/dist/esm/atomic-category-facet.entry.js.map +1 -1
- package/dist/esm/atomic-color-facet.entry.js +1 -2
- package/dist/esm/atomic-color-facet.entry.js.map +1 -1
- package/dist/esm/atomic-commerce-category-facet_4.entry.js +1 -2
- package/dist/esm/atomic-commerce-category-facet_4.entry.js.map +1 -1
- package/dist/esm/atomic-facet.entry.js +2 -3
- package/dist/esm/atomic-facet.entry.js.map +1 -1
- package/dist/esm/atomic-format-currency.entry.js +1 -1
- package/dist/esm/atomic-format-number.entry.js +1 -1
- package/dist/esm/atomic-format-unit.entry.js +1 -1
- package/dist/esm/atomic-generated-answer.entry.js +1 -1
- package/dist/esm/atomic-insight-facet.entry.js +1 -2
- package/dist/esm/atomic-insight-facet.entry.js.map +1 -1
- package/dist/esm/atomic-insight-generated-answer.entry.js +1 -1
- package/dist/esm/atomic-insight-interface.entry.js +1 -1
- package/dist/esm/atomic-insight-search-box.entry.js +2 -2
- package/dist/esm/atomic-numeric-facet.entry.js +1 -1
- package/dist/esm/atomic-quickview-modal.entry.js +1 -1
- package/dist/esm/atomic-quickview.entry.js +1 -1
- package/dist/esm/atomic-recs-interface.entry.js +1 -1
- package/dist/esm/{atomic-aria-live_2.entry.js → atomic-relevance-inspector.entry.js} +3 -69
- package/dist/esm/atomic-relevance-inspector.entry.js.map +1 -0
- package/dist/esm/atomic-result-children.entry.js +1 -1
- package/dist/esm/atomic-result-fields-list.entry.js +1 -1
- package/dist/esm/atomic-result-link.entry.js +1 -1
- package/dist/esm/atomic-result-list.entry.js +1 -1
- package/dist/esm/atomic-search-box-query-suggestions_2.entry.js +2 -2
- package/dist/esm/atomic-search-box.entry.js +2 -2
- package/dist/esm/atomic-search-interface.entry.js +1 -1
- package/dist/esm/atomic-smart-snippet-feedback-modal.entry.js +2 -2
- package/dist/esm/atomic-sort-dropdown.entry.js +2 -2
- package/dist/esm/atomic-sort-expression.entry.js +1 -1
- package/dist/esm/atomic-tab-manager.entry.js +1 -1
- package/dist/esm/atomic.js +1 -1
- package/dist/esm/debounce-utils-8619dece.js +13 -0
- package/dist/esm/{debounce-utils-efa015c0.js.map → debounce-utils-8619dece.js.map} +1 -1
- package/dist/esm/index-3f35faca.js +4 -8
- package/dist/esm/stencil-accessibility-utils-bc273be5.js.map +1 -1
- package/dist/esm/{stencil-facet-show-more-less-4b023ee3.js → stencil-facet-show-more-less-1198472f.js} +8 -2
- package/dist/esm/stencil-facet-show-more-less-1198472f.js.map +1 -0
- package/dist/esm/{stencil-suggestion-manager-91706623.js → stencil-suggestion-manager-f52c6e39.js} +2 -2
- package/dist/esm/{stencil-suggestion-manager-91706623.js.map → stencil-suggestion-manager-f52c6e39.js.map} +1 -1
- package/dist/esm/version.js +2 -2
- package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +3 -4
- package/dist/types/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.d.ts +5 -6
- package/dist/types/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.d.ts +3 -0
- package/dist/types/components/commerce/atomic-product-description/atomic-product-description.d.ts +21 -10
- package/dist/types/components/commerce/atomic-product-template/atomic-product-template.d.ts +1 -0
- package/dist/types/components/commerce/index.d.ts +1 -0
- package/dist/types/components/common/atomic-aria-live/atomic-aria-live.d.ts +38 -0
- package/dist/types/components/common/index.d.ts +1 -0
- package/dist/types/components/common/interface/i18n.d.ts +1 -1
- package/dist/types/components/common/interface/{interface-common.d.ts → interface-controller.d.ts} +14 -11
- package/dist/types/components.d.ts +0 -78
- package/dist/types/utils/accessibility-utils.d.ts +2 -1
- package/dist/types/utils/stencil-accessibility-utils.d.ts +2 -1
- package/docs/atomic-docs.json +33 -194
- package/package.json +6 -6
- package/dist/atomic/components/atomic-aria-live.d.ts +0 -11
- package/dist/atomic/components/atomic-aria-live.js +0 -8
- package/dist/atomic/components/atomic-aria-live.js.map +0 -1
- package/dist/atomic/components/atomic-aria-live2.js +0 -87
- package/dist/atomic/components/atomic-aria-live2.js.map +0 -1
- package/dist/atomic/components/atomic-product-description.d.ts +0 -11
- package/dist/atomic/components/atomic-product-description.js +0 -153
- package/dist/atomic/components/atomic-product-description.js.map +0 -1
- package/dist/atomic/components/components/common/interface/interface-common.js +0 -95
- package/dist/atomic/components/plus.js +0 -10
- package/dist/atomic/components/plus.js.map +0 -1
- package/dist/atomic/p-0873c1b8.entry.js +0 -2
- package/dist/atomic/p-37b7705c.js +0 -2
- package/dist/atomic/p-37b7705c.js.map +0 -1
- package/dist/atomic/p-3f2442d3.entry.js +0 -2
- package/dist/atomic/p-3f2442d3.entry.js.map +0 -1
- package/dist/atomic/p-3f881919.entry.js +0 -2
- package/dist/atomic/p-4e77fe24.entry.js +0 -2
- package/dist/atomic/p-605a2e24.js +0 -2
- package/dist/atomic/p-605a2e24.js.map +0 -1
- package/dist/atomic/p-8bb323e8.entry.js +0 -2
- package/dist/atomic/p-8f20d930.js +0 -2
- package/dist/atomic/p-8f20d930.js.map +0 -1
- package/dist/atomic/p-c100197d.js +0 -2
- package/dist/atomic/p-e215ba76.entry.js +0 -2
- package/dist/atomic/p-e790d557.entry.js +0 -2
- package/dist/atomic/p-efd2bb5f.entry.js +0 -2
- package/dist/atomic/p-f2d31b97.entry.js +0 -2
- package/dist/atomic/p-f2d31b97.entry.js.map +0 -1
- package/dist/cjs/analytics-config-2b794369.js.map +0 -1
- package/dist/cjs/atomic-aria-live_2.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-product-description.cjs.entry.js +0 -141
- package/dist/cjs/atomic-product-description.cjs.entry.js.map +0 -1
- package/dist/cjs/debounce-utils-e014935f.js +0 -49
- package/dist/cjs/debounce-utils-e014935f.js.map +0 -1
- package/dist/cjs/plus-07843914.js +0 -13
- package/dist/cjs/plus-07843914.js.map +0 -1
- package/dist/cjs/stencil-facet-show-more-less-21d22973.js.map +0 -1
- package/dist/esm/analytics-config-482346f6.js.map +0 -1
- package/dist/esm/atomic-aria-live_2.entry.js.map +0 -1
- package/dist/esm/atomic-product-description.entry.js +0 -137
- package/dist/esm/atomic-product-description.entry.js.map +0 -1
- package/dist/esm/debounce-utils-efa015c0.js +0 -46
- package/dist/esm/plus-00840ff6.js +0 -10
- package/dist/esm/plus-00840ff6.js.map +0 -1
- package/dist/esm/stencil-facet-show-more-less-4b023ee3.js.map +0 -1
- package/dist/types/components/search/atomic-search-interface/atomic-aria-live.d.ts +0 -23
- /package/dist/atomic/{p-1b491649.entry.js.map → p-0af927f0.entry.js.map} +0 -0
- /package/dist/atomic/{p-b043958c.entry.js.map → p-0b9cd281.entry.js.map} +0 -0
- /package/dist/atomic/{p-e44ba87e.entry.js.map → p-0f5ae66e.entry.js.map} +0 -0
- /package/dist/atomic/{p-0674783d.entry.js.map → p-1b329f85.entry.js.map} +0 -0
- /package/dist/atomic/{p-efd2bb5f.entry.js.map → p-306161d1.entry.js.map} +0 -0
- /package/dist/atomic/{p-a0445771.entry.js.map → p-4c5702ba.entry.js.map} +0 -0
- /package/dist/atomic/{p-acc4d5de.js.map → p-53bcc515.js.map} +0 -0
- /package/dist/atomic/{p-e2560da8.entry.js.map → p-5f64bbe0.entry.js.map} +0 -0
- /package/dist/atomic/{p-fc73190d.entry.js.map → p-6638ca39.entry.js.map} +0 -0
- /package/dist/atomic/{p-0c35973c.entry.js.map → p-6c412aa0.entry.js.map} +0 -0
- /package/dist/atomic/{p-1176959c.entry.js.map → p-6f8ae3d2.entry.js.map} +0 -0
- /package/dist/atomic/{p-0ed0e8b8.entry.js.map → p-731f82ed.entry.js.map} +0 -0
- /package/dist/atomic/{p-25f8b8d8.entry.js.map → p-7a07530d.entry.js.map} +0 -0
- /package/dist/atomic/{p-c8d47706.entry.js.map → p-7a5d346b.entry.js.map} +0 -0
- /package/dist/atomic/{p-09af5eb5.entry.js.map → p-7db6d666.entry.js.map} +0 -0
- /package/dist/atomic/{p-5b888121.entry.js.map → p-89721f11.entry.js.map} +0 -0
- /package/dist/atomic/{p-11dd759c.entry.js.map → p-b1f7ac63.entry.js.map} +0 -0
- /package/dist/atomic/{p-5fc9f751.entry.js.map → p-bf5d5c79.entry.js.map} +0 -0
- /package/dist/atomic/{p-716e9e1d.entry.js.map → p-c0025d4c.entry.js.map} +0 -0
- /package/dist/atomic/{p-494c57a0.entry.js.map → p-e406cacd.entry.js.map} +0 -0
- /package/dist/atomic/{p-f7e6b154.entry.js.map → p-ef45ff5c.entry.js.map} +0 -0
- /package/dist/atomic/{p-e790d557.entry.js.map → p-f0e861c5.entry.js.map} +0 -0
- /package/dist/atomic/{p-391c26ba.entry.js.map → p-f9bfd18b.entry.js.map} +0 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Schema, StringValue } from '@coveo/bueno';
|
|
8
|
+
import { html, LitElement, nothing, unsafeCSS } from 'lit';
|
|
9
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
10
|
+
import { createRef } from 'lit/directives/ref.js';
|
|
11
|
+
import { booleanConverter } from "../../../converters/boolean-converter.js";
|
|
12
|
+
import { bindingGuard } from "../../../decorators/binding-guard.js";
|
|
13
|
+
import { bindings } from "../../../decorators/bindings.js";
|
|
14
|
+
import { createProductContextController } from "../../../decorators/commerce/product-template-decorators.js";
|
|
15
|
+
import { errorGuard } from "../../../decorators/error-guard.js";
|
|
16
|
+
import { injectStylesForNoShadowDOM } from "../../../decorators/inject-styles-for-no-shadow-dom.js";
|
|
17
|
+
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
|
|
18
|
+
import { renderExpandableText, } from '../../common/expandable-text/expandable-text.js';
|
|
19
|
+
import styles from './atomic-product-description.tw.css';
|
|
20
|
+
import '../atomic-product-text/atomic-product-text.js';
|
|
21
|
+
/**
|
|
22
|
+
* The `atomic-product-description` component renders the description of a product.
|
|
23
|
+
*
|
|
24
|
+
* @part expandable-text - The part that contains the product description text.
|
|
25
|
+
*/
|
|
26
|
+
let AtomicProductDescription = class AtomicProductDescription extends LitElement {
|
|
27
|
+
initialize() { }
|
|
28
|
+
constructor() {
|
|
29
|
+
super();
|
|
30
|
+
this.productController = createProductContextController(this);
|
|
31
|
+
this.isExpanded = false;
|
|
32
|
+
this.isTruncated = false;
|
|
33
|
+
this.descriptionRef = createRef();
|
|
34
|
+
/**
|
|
35
|
+
* The number of lines after which the product description should be truncated. A value of "none" will disable truncation.
|
|
36
|
+
*/
|
|
37
|
+
this.truncateAfter = '2';
|
|
38
|
+
/**
|
|
39
|
+
* The name of the description field to use.
|
|
40
|
+
*/
|
|
41
|
+
this.field = 'ec_shortdesc';
|
|
42
|
+
/**
|
|
43
|
+
* Whether the description should be collapsible after being expanded.
|
|
44
|
+
*/
|
|
45
|
+
this.isCollapsible = true;
|
|
46
|
+
this.onToggleExpand = (e) => {
|
|
47
|
+
if (e) {
|
|
48
|
+
e.stopPropagation();
|
|
49
|
+
}
|
|
50
|
+
this.isExpanded = !this.isExpanded;
|
|
51
|
+
};
|
|
52
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
53
|
+
if (this.descriptionRef.value) {
|
|
54
|
+
this.isTruncated =
|
|
55
|
+
this.descriptionRef.value.scrollHeight >
|
|
56
|
+
this.descriptionRef.value.clientHeight;
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
validateProps() {
|
|
61
|
+
new Schema({
|
|
62
|
+
truncateAfter: new StringValue({
|
|
63
|
+
constrainTo: ['none', '1', '2', '3', '4'],
|
|
64
|
+
}),
|
|
65
|
+
field: new StringValue({
|
|
66
|
+
constrainTo: ['ec_shortdesc', 'ec_description'],
|
|
67
|
+
}),
|
|
68
|
+
}).validate({
|
|
69
|
+
truncateAfter: this.truncateAfter,
|
|
70
|
+
field: this.field,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
updated(changedProperties) {
|
|
74
|
+
super.updated(changedProperties);
|
|
75
|
+
if (changedProperties.has('truncateAfter') ||
|
|
76
|
+
changedProperties.has('field')) {
|
|
77
|
+
this.validateProps();
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
firstUpdated() {
|
|
81
|
+
if (this.descriptionRef.value) {
|
|
82
|
+
this.resizeObserver.observe(this.descriptionRef.value);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
disconnectedCallback() {
|
|
86
|
+
super.disconnectedCallback();
|
|
87
|
+
this.resizeObserver.disconnect();
|
|
88
|
+
}
|
|
89
|
+
get product() {
|
|
90
|
+
return this.productController.item;
|
|
91
|
+
}
|
|
92
|
+
render() {
|
|
93
|
+
const productDescription = this.product?.[this.field] ?? null;
|
|
94
|
+
if (!productDescription) {
|
|
95
|
+
return html `${nothing}`;
|
|
96
|
+
}
|
|
97
|
+
return html `${renderExpandableText({
|
|
98
|
+
props: {
|
|
99
|
+
isExpanded: this.isExpanded,
|
|
100
|
+
isTruncated: this.isTruncated,
|
|
101
|
+
truncateAfter: this.truncateAfter,
|
|
102
|
+
onToggleExpand: this.onToggleExpand,
|
|
103
|
+
showMoreLabel: this.bindings.i18n.t('show-more'),
|
|
104
|
+
showLessLabel: this.bindings.i18n.t('show-less'),
|
|
105
|
+
isCollapsible: this.isCollapsible,
|
|
106
|
+
textRef: this.descriptionRef,
|
|
107
|
+
},
|
|
108
|
+
})(html `
|
|
109
|
+
<atomic-product-text field=${this.field}></atomic-product-text>
|
|
110
|
+
`)}`;
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
AtomicProductDescription.styles = unsafeCSS(styles);
|
|
114
|
+
__decorate([
|
|
115
|
+
state()
|
|
116
|
+
], AtomicProductDescription.prototype, "bindings", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
state()
|
|
119
|
+
], AtomicProductDescription.prototype, "isExpanded", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
state()
|
|
122
|
+
], AtomicProductDescription.prototype, "isTruncated", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
property({
|
|
125
|
+
type: String,
|
|
126
|
+
attribute: 'truncate-after',
|
|
127
|
+
})
|
|
128
|
+
], AtomicProductDescription.prototype, "truncateAfter", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
property()
|
|
131
|
+
], AtomicProductDescription.prototype, "field", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
property({
|
|
134
|
+
type: Boolean,
|
|
135
|
+
converter: booleanConverter,
|
|
136
|
+
attribute: 'is-collapsible',
|
|
137
|
+
})
|
|
138
|
+
], AtomicProductDescription.prototype, "isCollapsible", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
errorGuard(),
|
|
141
|
+
bindingGuard()
|
|
142
|
+
], AtomicProductDescription.prototype, "render", null);
|
|
143
|
+
AtomicProductDescription = __decorate([
|
|
144
|
+
customElement('atomic-product-description'),
|
|
145
|
+
withTailwindStyles,
|
|
146
|
+
injectStylesForNoShadowDOM,
|
|
147
|
+
bindings()
|
|
148
|
+
], AtomicProductDescription);
|
|
149
|
+
export { AtomicProductDescription };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const css = `/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.expandable-text{line-height:var(--line-height)}.min-lines-1{min-height:calc(var(--line-height)*1)}.min-lines-2{min-height:calc(var(--line-height)*2)}.min-lines-3{min-height:calc(var(--line-height)*3)}.min-lines-4{min-height:calc(var(--line-height)*4)}`;
|
|
3
|
+
export default css;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
const css = `/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
2
|
.expandable-text{line-height:var(--line-height)}.min-lines-1{min-height:calc(var(--line-height)*1)}.min-lines-2{min-height:calc(var(--line-height)*2)}.min-lines-3{min-height:calc(var(--line-height)*3)}.min-lines-4{min-height:calc(var(--line-height)*4)}`;
|
|
3
|
-
export default
|
|
3
|
+
export default css;
|
package/dist/atomic/components/components/commerce/atomic-product-link/atomic-product-link.tw.css.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
const css = `/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
2
|
atomic-product-link{& a{color:var(--atomic-on-background);&:hover,&:focus-visible{color:var(--atomic-primary);text-decoration:underline}&:focus{outline:none}&:visited{color:var(--atomic-visited)}}}`;
|
|
3
|
-
export default
|
|
3
|
+
export default css;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const css = `:host{&>ul{margin:0;padding:0;list-style:none;display:flex;& li{display:inline-block}}}.separator{&:before{content:", ";display:inline}}`;
|
|
2
|
-
export default
|
|
2
|
+
export default css;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
const css = `/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-leading:initial}}}.display-grid atomic-product-price{flex-flow:column wrap;display:flex}.display-grid atomic-product-price .original-price{--tw-leading:1;line-height:1}@property --tw-leading{syntax:"*";inherits:false}`;
|
|
3
|
-
export default
|
|
3
|
+
export default css;
|
|
@@ -19,6 +19,7 @@ import '../atomic-product-children/atomic-product-children';
|
|
|
19
19
|
import '../atomic-product-multi-value-text/atomic-product-multi-value-text';
|
|
20
20
|
import '../atomic-product-price/atomic-product-price';
|
|
21
21
|
import '../atomic-product-numeric-field-value/atomic-product-numeric-field-value';
|
|
22
|
+
import '../atomic-product-description/atomic-product-description';
|
|
22
23
|
/**
|
|
23
24
|
* * A product template determines the format of the query results, depending on the conditions that are defined for each template.
|
|
24
25
|
*
|
|
@@ -22,6 +22,7 @@ export { AtomicCommerceSortDropdown } from './atomic-commerce-sort-dropdown/atom
|
|
|
22
22
|
export { AtomicCommerceText } from './atomic-commerce-text/atomic-commerce-text.js';
|
|
23
23
|
export { AtomicProduct } from './atomic-product/atomic-product.js';
|
|
24
24
|
export { AtomicProductChildren } from './atomic-product-children/atomic-product-children.js';
|
|
25
|
+
export { AtomicProductDescription } from './atomic-product-description/atomic-product-description.js';
|
|
25
26
|
export { AtomicProductExcerpt } from './atomic-product-excerpt/atomic-product-excerpt.js';
|
|
26
27
|
export { AtomicProductLink } from './atomic-product-link/atomic-product-link.js';
|
|
27
28
|
export { AtomicProductMultiValueText } from './atomic-product-multi-value-text/atomic-product-multi-value-text.js';
|
|
@@ -23,6 +23,7 @@ export default {
|
|
|
23
23
|
'atomic-commerce-text': async () => await import('./atomic-commerce-text/atomic-commerce-text.js'),
|
|
24
24
|
'atomic-product': async () => await import('./atomic-product/atomic-product.js'),
|
|
25
25
|
'atomic-product-children': async () => await import('./atomic-product-children/atomic-product-children.js'),
|
|
26
|
+
'atomic-product-description': async () => await import('./atomic-product-description/atomic-product-description.js'),
|
|
26
27
|
'atomic-product-excerpt': async () => await import('./atomic-product-excerpt/atomic-product-excerpt.js'),
|
|
27
28
|
'atomic-product-link': async () => await import('./atomic-product-link/atomic-product-link.js'),
|
|
28
29
|
'atomic-product-multi-value-text': async () => await import('./atomic-product-multi-value-text/atomic-product-multi-value-text.js'),
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, LitElement } from 'lit';
|
|
8
|
+
import { customElement, state } from 'lit/decorators.js';
|
|
9
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
|
10
|
+
import { buildDebouncedQueue } from '../../../utils/debounce-utils';
|
|
11
|
+
import { randomID } from '../../../utils/utils';
|
|
12
|
+
/**
|
|
13
|
+
* The `atomic-aria-live` component notifies screen readers of changes in the search and commerce interfaces.
|
|
14
|
+
*
|
|
15
|
+
* @event atomic/accessibility/findAriaLive - Dispatches an event to find the `atomic-aria-live` element.
|
|
16
|
+
*/
|
|
17
|
+
let AtomicAriaLive = class AtomicAriaLive extends LitElement {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.regions = {};
|
|
21
|
+
this.messagesQueue = buildDebouncedQueue({ delay: 500 });
|
|
22
|
+
this.onFindAriaLive = (event) => {
|
|
23
|
+
const customEvent = event;
|
|
24
|
+
customEvent.detail.element = this;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
createRenderRoot() {
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
connectedCallback() {
|
|
31
|
+
super.connectedCallback();
|
|
32
|
+
this.ariaLiveId = randomID('atomic-aria-live-');
|
|
33
|
+
document.addEventListener('atomic/accessibility/findAriaLive', this.onFindAriaLive);
|
|
34
|
+
}
|
|
35
|
+
disconnectedCallback() {
|
|
36
|
+
super.disconnectedCallback();
|
|
37
|
+
this.messagesQueue.clear();
|
|
38
|
+
document.removeEventListener('atomic/accessibility/findAriaLive', this.onFindAriaLive);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Updates the message and assertiveness for a specific ARIA live region.
|
|
42
|
+
* If a message is provided, the update is debounced to avoid rapid changes.
|
|
43
|
+
* If the message is empty, any pending update is canceled and the region is cleared immediately.
|
|
44
|
+
*
|
|
45
|
+
* @param region - The name of the ARIA live region to update.
|
|
46
|
+
* @param message - The message to announce in the region.
|
|
47
|
+
* @param assertive - Whether the region should use 'assertive' or 'polite' mode.
|
|
48
|
+
*/
|
|
49
|
+
updateMessage(region, message, assertive) {
|
|
50
|
+
const updateRegion = () => {
|
|
51
|
+
this.regions = { ...this.regions, [region]: { assertive, message } };
|
|
52
|
+
};
|
|
53
|
+
if (message) {
|
|
54
|
+
this.messagesQueue.enqueue(updateRegion, region);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this.messagesQueue.cancelActionIfQueued(region);
|
|
58
|
+
updateRegion();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Registers a new ARIA live region if it does not already exist.
|
|
63
|
+
*
|
|
64
|
+
* @param region - The name of the ARIA live region to register.
|
|
65
|
+
* @param assertive - Whether the region should use 'assertive' or 'polite' mode.
|
|
66
|
+
*/
|
|
67
|
+
registerRegion(region, assertive) {
|
|
68
|
+
if (region in this.regions) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
this.regions = { ...this.regions, [region]: { assertive, message: '' } };
|
|
72
|
+
}
|
|
73
|
+
render() {
|
|
74
|
+
const hostStyles = {
|
|
75
|
+
position: 'absolute',
|
|
76
|
+
display: 'block',
|
|
77
|
+
height: '0',
|
|
78
|
+
overflow: 'hidden',
|
|
79
|
+
margin: '0',
|
|
80
|
+
};
|
|
81
|
+
return html `
|
|
82
|
+
<div style=${styleMap(hostStyles)}>
|
|
83
|
+
${Object.entries(this.regions).map(([regionName, { assertive, message }]) => html `
|
|
84
|
+
<div
|
|
85
|
+
id="${this.ariaLiveId}-${regionName}"
|
|
86
|
+
aria-live="${assertive ? 'assertive' : 'polite'}"
|
|
87
|
+
role="status"
|
|
88
|
+
>
|
|
89
|
+
${message}
|
|
90
|
+
</div>
|
|
91
|
+
`)}
|
|
92
|
+
</div>
|
|
93
|
+
`;
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
__decorate([
|
|
97
|
+
state()
|
|
98
|
+
], AtomicAriaLive.prototype, "regions", void 0);
|
|
99
|
+
AtomicAriaLive = __decorate([
|
|
100
|
+
customElement('atomic-aria-live')
|
|
101
|
+
], AtomicAriaLive);
|
|
102
|
+
export { AtomicAriaLive };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const css = `@layer components{atomic-icon{fill:currentColor;aspect-ratio:1;height:auto;display:inline-block;@supports not (aspect-ratio:1 / 1){&{height:auto}}&>svg{aspect-ratio:1;width:100%;height:auto;max-height:100%}}}`;
|
|
2
|
-
export default
|
|
2
|
+
export default css;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
const css = `/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}.value-count{margin-left:calc(var(--spacing,.25rem)*1.5);color:var(--atomic-neutral-dark);[part=value-exclude-button]+&{margin-right:calc(var(--spacing,.25rem)*2)}}:host(.popover-nested){min-width:var(--container-2xs,18rem);&::part(label-button){display:none}&::part(facet){--tw-shadow:0px 2px 8px var(--tw-shadow-color,#e5e8e8bf);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}&::part(values){margin-top:calc(var(--spacing,.25rem)*0);max-height:calc(var(--spacing,.25rem)*96);overflow-y:auto}&::part(search-wrapper){margin-bottom:calc(var(--spacing,.25rem)*2)}}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}`;
|
|
3
|
-
export default
|
|
3
|
+
export default css;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
const css = `/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
2
|
input[type=text]:focus-visible~.search-icon{color:var(--atomic-primary)}input[type=text]:hover~.search-icon{color:var(--atomic-primary-light)}.search-icon atomic-icon{width:var(--atomic-facet-search-icon-size,.75rem);height:var(--atomic-facet-search-icon-size,.75rem)}.search-clear-button atomic-icon{width:var(--atomic-facet-search-clear-icon-size,.625rem);height:var(--atomic-facet-search-clear-icon-size,.625rem)}`;
|
|
3
|
-
export default
|
|
3
|
+
export default css;
|
package/dist/atomic/components/components/common/facets/facet-value-box/facet-value-box.tw.css.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
const css = `/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
2
|
.box-container{padding-inline:calc(var(--spacing,.25rem)*2);grid-template-columns:repeat(var(--atomic-facet-boxes-per-row,4),minmax(0,1fr));gap:var(--atomic-facet-boxes-gap,.5rem);display:grid}.value-box .value-label,.value-box-count{width:100%;display:block}.value-box.selected{box-shadow:0 0 0 1px var(--atomic-primary)}`;
|
|
3
|
-
export default
|
|
3
|
+
export default css;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
const css = `/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
2
|
.value-checkbox{width:var(--atomic-facet-checkbox-size,1rem);height:var(--atomic-facet-checkbox-size,1rem);left:calc(var(--spacing,.25rem)*2);z-index:1;position:absolute}.value-checkbox+label{cursor:pointer;text-overflow:ellipsis;white-space:nowrap;width:100%;padding-block:calc(var(--spacing,.25rem)*2.5);padding-right:calc(var(--spacing,.25rem)*2);padding-left:calc(var(--spacing,.25rem)*8);color:var(--atomic-on-background);flex-direction:row;display:flex;overflow:hidden;&:hover{@media (hover:hover){&{background-color:var(--atomic-neutral-light)}}}}.value-checkbox.selected:focus-visible+label .value-label,.value-checkbox.selected:hover+label .value-label{color:var(--atomic-primary)}.value-checkbox.excluded:focus-visible+label .value-label,.value-checkbox.excluded:hover+label .value-label{color:var(--atomic-error)}`;
|
|
3
|
-
export default
|
|
3
|
+
export default css;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const css = `.value-exclude-button:focus-visible atomic-icon{visibility:visible}`;
|
|
2
|
-
export default
|
|
2
|
+
export default css;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Auto-generated file
|
|
2
|
+
export { AtomicAriaLive } from './atomic-aria-live/atomic-aria-live.js';
|
|
2
3
|
export { AtomicComponentError } from './atomic-component-error/atomic-component-error.js';
|
|
3
4
|
export { AtomicIcon } from './atomic-icon/atomic-icon.js';
|
|
4
5
|
export { AtomicLayoutSection } from './atomic-layout-section/atomic-layout-section.js';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { getAtomicEnvironment } from '../../../global/environment';
|
|
2
|
+
export function augmentWithExternalMiddleware(event, payload, config) {
|
|
3
|
+
if (config.analytics?.analyticsClientMiddleware) {
|
|
4
|
+
return config.analytics.analyticsClientMiddleware(event, payload);
|
|
5
|
+
}
|
|
6
|
+
return payload;
|
|
7
|
+
}
|
|
8
|
+
export function augmentAnalyticsWithAtomicVersion(payload) {
|
|
9
|
+
if (payload.customData) {
|
|
10
|
+
payload.customData.coveoAtomicVersion = getAtomicEnvironment().version;
|
|
11
|
+
}
|
|
12
|
+
return payload;
|
|
13
|
+
}
|
|
14
|
+
export function augmentAnalyticsConfigWithDocument() {
|
|
15
|
+
return {
|
|
16
|
+
documentLocation: document.location.href,
|
|
17
|
+
...(document.referrer && { originLevel3: document.referrer }),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
const versionMatcher = /^(\d+\.\d+\.\d+)/;
|
|
21
|
+
export function augmentAnalyticsConfigWithAtomicVersion() {
|
|
22
|
+
return {
|
|
23
|
+
source: {
|
|
24
|
+
'@coveo/atomic': versionMatcher.exec(getAtomicEnvironment().version)?.[0] || '0.0.0',
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export function getNextAnalyticsConfig(searchEngineConfig, enabled) {
|
|
29
|
+
const configuration = {
|
|
30
|
+
enabled,
|
|
31
|
+
documentLocation: document.location.href,
|
|
32
|
+
...(document.referrer && { originLevel3: document.referrer }),
|
|
33
|
+
};
|
|
34
|
+
const analyticsConfiguration = searchEngineConfig.analytics ?? {};
|
|
35
|
+
Object.assign(analyticsConfiguration, augmentAnalyticsConfigWithAtomicVersion());
|
|
36
|
+
Object.assign(configuration, analyticsConfiguration);
|
|
37
|
+
return configuration;
|
|
38
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import Backend from 'i18next-http-backend';
|
|
2
|
+
import { setCoveoGlobal } from "../../../global/environment";
|
|
3
|
+
import { loadDayjsLocale } from "../../../utils/dayjs-locales";
|
|
4
|
+
import { i18nBackendOptions, i18nTranslationNamespace, init18n } from './i18n';
|
|
5
|
+
export class InterfaceController {
|
|
6
|
+
constructor(host, globalVariableName) {
|
|
7
|
+
this.hangingComponentsInitialization = [];
|
|
8
|
+
this.host = host;
|
|
9
|
+
this.host.addController(this);
|
|
10
|
+
setCoveoGlobal(globalVariableName);
|
|
11
|
+
}
|
|
12
|
+
hostConnected() {
|
|
13
|
+
this.i18nPromise = init18n(this.host);
|
|
14
|
+
this.initAriaLive();
|
|
15
|
+
}
|
|
16
|
+
hostDisconnected() {
|
|
17
|
+
this.removeAriaLive();
|
|
18
|
+
}
|
|
19
|
+
onComponentInitializing(event) {
|
|
20
|
+
event.preventDefault();
|
|
21
|
+
event.stopPropagation();
|
|
22
|
+
if (this.host.engine) {
|
|
23
|
+
event.detail(this.host.bindings);
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
this.hangingComponentsInitialization.push(event);
|
|
27
|
+
}
|
|
28
|
+
async onInitialization(initEngine) {
|
|
29
|
+
if (this.host.engine) {
|
|
30
|
+
this.host.engine.logger.warn(`The ${this.interfaceTagname} component "initialize" has already been called.`, this.host);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
this.host.updateIconAssetsPath();
|
|
34
|
+
initEngine();
|
|
35
|
+
if (this.host.registerFieldsToInclude) {
|
|
36
|
+
this.host.registerFieldsToInclude();
|
|
37
|
+
}
|
|
38
|
+
loadDayjsLocale(this.host.language || 'en');
|
|
39
|
+
await this.i18nPromise;
|
|
40
|
+
this.initComponents();
|
|
41
|
+
}
|
|
42
|
+
onAnalyticsChange() {
|
|
43
|
+
const { engine, analytics } = this.host;
|
|
44
|
+
if (!this.engineIsCreated(engine)) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if (!analytics) {
|
|
48
|
+
engine.disableAnalytics();
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
engine.enableAnalytics();
|
|
52
|
+
}
|
|
53
|
+
onLanguageChange(newLanguage) {
|
|
54
|
+
const language = newLanguage ?? this.host.language;
|
|
55
|
+
const languageWithFallback = language ?? 'en';
|
|
56
|
+
const { i18n } = this.host;
|
|
57
|
+
loadDayjsLocale(languageWithFallback);
|
|
58
|
+
new Backend(i18n.services, i18nBackendOptions(this.host)).read(languageWithFallback.split('-')[0], i18nTranslationNamespace, (_, data) => {
|
|
59
|
+
i18n.addResourceBundle(languageWithFallback.split('-')[0], i18nTranslationNamespace, data, true, false);
|
|
60
|
+
i18n.changeLanguage(language);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
engineIsCreated(engine) {
|
|
64
|
+
if (!engine) {
|
|
65
|
+
console.error(`You have to call "initialize" on the ${this.interfaceTagname} component before modifying the props or calling other public methods.`, this.host);
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
get interfaceTagname() {
|
|
71
|
+
return this.host.tagName.toLowerCase();
|
|
72
|
+
}
|
|
73
|
+
initComponents() {
|
|
74
|
+
this.hangingComponentsInitialization.forEach((event) => event.detail(this.host.bindings));
|
|
75
|
+
}
|
|
76
|
+
initAriaLive() {
|
|
77
|
+
if (Array.from(this.host.children).some((element) => element.tagName === 'ATOMIC-ARIA-LIVE')) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const ariaLive = document.createElement('atomic-aria-live');
|
|
81
|
+
this.host.prepend(ariaLive);
|
|
82
|
+
}
|
|
83
|
+
removeAriaLive() {
|
|
84
|
+
const ariaLive = this.host.querySelector('atomic-aria-live');
|
|
85
|
+
if (ariaLive) {
|
|
86
|
+
ariaLive.remove();
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Auto-generated file
|
|
2
2
|
export default {
|
|
3
|
+
'atomic-aria-live': async () => await import('./atomic-aria-live/atomic-aria-live.js'),
|
|
3
4
|
'atomic-component-error': async () => await import('./atomic-component-error/atomic-component-error.js'),
|
|
4
5
|
'atomic-icon': async () => await import('./atomic-icon/atomic-icon.js'),
|
|
5
6
|
'atomic-layout-section': async () => await import('./atomic-layout-section/atomic-layout-section.js'),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const css = `.adjust-for-scroll-bar{margin-right:calc(-100vw + 3rem + 100%)}`;
|
|
2
|
-
export default
|
|
2
|
+
export default css;
|
|
@@ -1,36 +1,3 @@
|
|
|
1
|
-
function buildDebouncedQueue(options) {
|
|
2
|
-
let actions = [];
|
|
3
|
-
let intervalId = null;
|
|
4
|
-
function dequeueAction() {
|
|
5
|
-
const action = actions.shift();
|
|
6
|
-
if (action) {
|
|
7
|
-
action.execute();
|
|
8
|
-
}
|
|
9
|
-
else {
|
|
10
|
-
clearInterval(intervalId);
|
|
11
|
-
intervalId = null;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
function cancelActionIfQueued(id) {
|
|
15
|
-
actions = actions.filter((action) => action.id !== id);
|
|
16
|
-
}
|
|
17
|
-
return {
|
|
18
|
-
enqueue(execute, uniqueId) {
|
|
19
|
-
if (uniqueId) {
|
|
20
|
-
cancelActionIfQueued(uniqueId);
|
|
21
|
-
}
|
|
22
|
-
actions.push({ id: uniqueId, execute });
|
|
23
|
-
if (intervalId === null) {
|
|
24
|
-
dequeueAction();
|
|
25
|
-
intervalId = setInterval(dequeueAction, options.delay);
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
clear() {
|
|
29
|
-
actions = [];
|
|
30
|
-
},
|
|
31
|
-
cancelActionIfQueued,
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
1
|
function debounce(execute, wait) {
|
|
35
2
|
let timer;
|
|
36
3
|
return (...args) => {
|
|
@@ -41,6 +8,6 @@ function debounce(execute, wait) {
|
|
|
41
8
|
};
|
|
42
9
|
}
|
|
43
10
|
|
|
44
|
-
export {
|
|
11
|
+
export { debounce as d };
|
|
45
12
|
|
|
46
13
|
//# sourceMappingURL=debounce-utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"debounce-utils.js","mappings":"
|
|
1
|
+
{"file":"debounce-utils.js","mappings":"SAqDgB,QAAQ,CAItB,OAEmD,EACnD,IAAY;IAEZ,IAAI,KAAoC,CAAC;IAEzC,OAAO,CAAC,GAAG,IAAuB;QAChC,YAAY,CAAC,KAAK,CAAC,CAAC;QACpB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO;YACzB,KAAK,GAAG,UAAU,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;SAC3D,CAAC,CAAC;KACJ,CAAC;AACJ;;;;","names":[],"sources":["src/utils/debounce-utils.ts"],"sourcesContent":["export interface DebouncedQueueOptions {\n delay: number;\n}\n\nexport interface DebouncedQueue {\n enqueue(execute: () => void, uniqueId?: string): void;\n clear(): void;\n cancelActionIfQueued(id: string): void;\n}\n\ninterface QueuedAction {\n id?: string;\n execute: () => void;\n}\n\nexport function buildDebouncedQueue(\n options: DebouncedQueueOptions\n): DebouncedQueue {\n let actions: QueuedAction[] = [];\n let intervalId: ReturnType<typeof setInterval> | null = null;\n\n function dequeueAction() {\n const action = actions.shift();\n if (action) {\n action.execute();\n } else {\n clearInterval(intervalId!);\n intervalId = null;\n }\n }\n\n function cancelActionIfQueued(id: string) {\n actions = actions.filter((action) => action.id !== id);\n }\n\n return {\n enqueue(execute: () => void, uniqueId?: string) {\n if (uniqueId) {\n cancelActionIfQueued(uniqueId);\n }\n actions.push({id: uniqueId, execute});\n if (intervalId === null) {\n dequeueAction();\n intervalId = setInterval(dequeueAction, options.delay);\n }\n },\n clear() {\n actions = [];\n },\n cancelActionIfQueued,\n };\n}\n\nexport function debounce<\n ExecuteParameters extends unknown[],\n ExecuteReturnType,\n>(\n execute: (\n ...args: ExecuteParameters\n ) => Promise<ExecuteReturnType> | ExecuteReturnType,\n wait: number\n) {\n let timer: ReturnType<typeof setTimeout>;\n\n return (...args: ExecuteParameters): Promise<ExecuteReturnType> => {\n clearTimeout(timer);\n return new Promise((resolve) => {\n timer = setTimeout(() => resolve(execute(...args)), wait);\n });\n };\n}\n"],"version":3}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const css = `@theme inline static{--font-sans: ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; --font-serif: ui-serif,Georgia,Cambria,"Times New Roman",Times,serif; --font-mono: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; --color-red-50: oklch(.971 .013 17.38); --color-red-100: oklch(.936 .032 17.717); --color-red-200: oklch(.885 .062 18.334); --color-red-300: oklch(.808 .114 19.571); --color-red-400: oklch(.704 .191 22.216); --color-red-500: oklch(.637 .237 25.331); --color-red-600: oklch(.577 .245 27.325); --color-red-700: oklch(.505 .213 27.518); --color-red-800: oklch(.444 .177 26.899); --color-red-900: oklch(.396 .141 25.723); --color-red-950: oklch(.258 .092 26.042); --color-orange-50: oklch(.98 .016 73.684); --color-orange-100: oklch(.954 .038 75.164); --color-orange-200: oklch(.901 .076 70.697); --color-orange-300: oklch(.837 .128 66.29); --color-orange-400: oklch(.75 .183 55.934); --color-orange-500: oklch(.705 .213 47.604); --color-orange-600: oklch(.646 .222 41.116); --color-orange-700: oklch(.553 .195 38.402); --color-orange-800: oklch(.47 .157 37.304); --color-orange-900: oklch(.408 .123 38.172); --color-orange-950: oklch(.266 .079 36.259); --color-amber-50: oklch(.987 .022 95.277); --color-amber-100: oklch(.962 .059 95.617); --color-amber-200: oklch(.924 .12 95.746); --color-amber-300: oklch(.879 .169 91.605); --color-amber-400: oklch(.828 .189 84.429); --color-amber-500: oklch(.769 .188 70.08); --color-amber-600: oklch(.666 .179 58.318); --color-amber-700: oklch(.555 .163 48.998); --color-amber-800: oklch(.473 .137 46.201); --color-amber-900: oklch(.414 .112 45.904); --color-amber-950: oklch(.279 .077 45.635); --color-yellow-50: oklch(.987 .026 102.212); --color-yellow-100: oklch(.973 .071 103.193); --color-yellow-200: oklch(.945 .129 101.54); --color-yellow-300: oklch(.905 .182 98.111); --color-yellow-400: oklch(.852 .199 91.936); --color-yellow-500: oklch(.795 .184 86.047); --color-yellow-600: oklch(.681 .162 75.834); --color-yellow-700: oklch(.554 .135 66.442); --color-yellow-800: oklch(.476 .114 61.907); --color-yellow-900: oklch(.421 .095 57.708); --color-yellow-950: oklch(.286 .066 53.813); --color-lime-50: oklch(.986 .031 120.757); --color-lime-100: oklch(.967 .067 122.328); --color-lime-200: oklch(.938 .127 124.321); --color-lime-300: oklch(.897 .196 126.665); --color-lime-400: oklch(.841 .238 128.85); --color-lime-500: oklch(.768 .233 130.85); --color-lime-600: oklch(.648 .2 131.684); --color-lime-700: oklch(.532 .157 131.589); --color-lime-800: oklch(.453 .124 130.933); --color-lime-900: oklch(.405 .101 131.063); --color-lime-950: oklch(.274 .072 132.109); --color-green-50: oklch(.982 .018 155.826); --color-green-100: oklch(.962 .044 156.743); --color-green-200: oklch(.925 .084 155.995); --color-green-300: oklch(.871 .15 154.449); --color-green-400: oklch(.792 .209 151.711); --color-green-500: oklch(.723 .219 149.579); --color-green-600: oklch(.627 .194 149.214); --color-green-700: oklch(.527 .154 150.069); --color-green-800: oklch(.448 .119 151.328); --color-green-900: oklch(.393 .095 152.535); --color-green-950: oklch(.266 .065 152.934); --color-emerald-50: oklch(.979 .021 166.113); --color-emerald-100: oklch(.95 .052 163.051); --color-emerald-200: oklch(.905 .093 164.15); --color-emerald-300: oklch(.845 .143 164.978); --color-emerald-400: oklch(.765 .177 163.223); --color-emerald-500: oklch(.696 .17 162.48); --color-emerald-600: oklch(.596 .145 163.225); --color-emerald-700: oklch(.508 .118 165.612); --color-emerald-800: oklch(.432 .095 166.913); --color-emerald-900: oklch(.378 .077 168.94); --color-emerald-950: oklch(.262 .051 172.552); --color-teal-50: oklch(.984 .014 180.72); --color-teal-100: oklch(.953 .051 180.801); --color-teal-200: oklch(.91 .096 180.426); --color-teal-300: oklch(.855 .138 181.071); --color-teal-400: oklch(.777 .152 181.912); --color-teal-500: oklch(.704 .14 182.503); --color-teal-600: oklch(.6 .118 184.704); --color-teal-700: oklch(.511 .096 186.391); --color-teal-800: oklch(.437 .078 188.216); --color-teal-900: oklch(.386 .063 188.416); --color-teal-950: oklch(.277 .046 192.524); --color-cyan-50: oklch(.984 .019 200.873); --color-cyan-100: oklch(.956 .045 203.388); --color-cyan-200: oklch(.917 .08 205.041); --color-cyan-300: oklch(.865 .127 207.078); --color-cyan-400: oklch(.789 .154 211.53); --color-cyan-500: oklch(.715 .143 215.221); --color-cyan-600: oklch(.609 .126 221.723); --color-cyan-700: oklch(.52 .105 223.128); --color-cyan-800: oklch(.45 .085 224.283); --color-cyan-900: oklch(.398 .07 227.392); --color-cyan-950: oklch(.302 .056 229.695); --color-sky-50: oklch(.977 .013 236.62); --color-sky-100: oklch(.951 .026 236.824); --color-sky-200: oklch(.901 .058 230.902); --color-sky-300: oklch(.828 .111 230.318); --color-sky-400: oklch(.746 .16 232.661); --color-sky-500: oklch(.685 .169 237.323); --color-sky-600: oklch(.588 .158 241.966); --color-sky-700: oklch(.5 .134 242.749); --color-sky-800: oklch(.443 .11 240.79); --color-sky-900: oklch(.391 .09 240.876); --color-sky-950: oklch(.293 .066 243.157); --color-blue-50: oklch(.97 .014 254.604); --color-blue-100: oklch(.932 .032 255.585); --color-blue-200: oklch(.882 .059 254.128); --color-blue-300: oklch(.809 .105 251.813); --color-blue-400: oklch(.707 .165 254.624); --color-blue-500: oklch(.623 .214 259.815); --color-blue-600: oklch(.546 .245 262.881); --color-blue-700: oklch(.488 .243 264.376); --color-blue-800: oklch(.424 .199 265.638); --color-blue-900: oklch(.379 .146 265.522); --color-blue-950: oklch(.282 .091 267.935); --color-indigo-50: oklch(.962 .018 272.314); --color-indigo-100: oklch(.93 .034 272.788); --color-indigo-200: oklch(.87 .065 274.039); --color-indigo-300: oklch(.785 .115 274.713); --color-indigo-400: oklch(.673 .182 276.935); --color-indigo-500: oklch(.585 .233 277.117); --color-indigo-600: oklch(.511 .262 276.966); --color-indigo-700: oklch(.457 .24 277.023); --color-indigo-800: oklch(.398 .195 277.366); --color-indigo-900: oklch(.359 .144 278.697); --color-indigo-950: oklch(.257 .09 281.288); --color-violet-50: oklch(.969 .016 293.756); --color-violet-100: oklch(.943 .029 294.588); --color-violet-200: oklch(.894 .057 293.283); --color-violet-300: oklch(.811 .111 293.571); --color-violet-400: oklch(.702 .183 293.541); --color-violet-500: oklch(.606 .25 292.717); --color-violet-600: oklch(.541 .281 293.009); --color-violet-700: oklch(.491 .27 292.581); --color-violet-800: oklch(.432 .232 292.759); --color-violet-900: oklch(.38 .189 293.745); --color-violet-950: oklch(.283 .141 291.089); --color-purple-50: oklch(.977 .014 308.299); --color-purple-100: oklch(.946 .033 307.174); --color-purple-200: oklch(.902 .063 306.703); --color-purple-300: oklch(.827 .119 306.383); --color-purple-400: oklch(.714 .203 305.504); --color-purple-500: oklch(.627 .265 303.9); --color-purple-600: oklch(.558 .288 302.321); --color-purple-700: oklch(.496 .265 301.924); --color-purple-800: oklch(.438 .218 303.724); --color-purple-900: oklch(.381 .176 304.987); --color-purple-950: oklch(.291 .149 302.717); --color-fuchsia-50: oklch(.977 .017 320.058); --color-fuchsia-100: oklch(.952 .037 318.852); --color-fuchsia-200: oklch(.903 .076 319.62); --color-fuchsia-300: oklch(.833 .145 321.434); --color-fuchsia-400: oklch(.74 .238 322.16); --color-fuchsia-500: oklch(.667 .295 322.15); --color-fuchsia-600: oklch(.591 .293 322.896); --color-fuchsia-700: oklch(.518 .253 323.949); --color-fuchsia-800: oklch(.452 .211 324.591); --color-fuchsia-900: oklch(.401 .17 325.612); --color-fuchsia-950: oklch(.293 .136 325.661); --color-pink-50: oklch(.971 .014 343.198); --color-pink-100: oklch(.948 .028 342.258); --color-pink-200: oklch(.899 .061 343.231); --color-pink-300: oklch(.823 .12 346.018); --color-pink-400: oklch(.718 .202 349.761); --color-pink-500: oklch(.656 .241 354.308); --color-pink-600: oklch(.592 .249 .584); --color-pink-700: oklch(.525 .223 3.958); --color-pink-800: oklch(.459 .187 3.815); --color-pink-900: oklch(.408 .153 2.432); --color-pink-950: oklch(.284 .109 3.907); --color-rose-50: oklch(.969 .015 12.422); --color-rose-100: oklch(.941 .03 12.58); --color-rose-200: oklch(.892 .058 10.001); --color-rose-300: oklch(.81 .117 11.638); --color-rose-400: oklch(.712 .194 13.428); --color-rose-500: oklch(.645 .246 16.439); --color-rose-600: oklch(.586 .253 17.585); --color-rose-700: oklch(.514 .222 16.935); --color-rose-800: oklch(.455 .188 13.697); --color-rose-900: oklch(.41 .159 10.272); --color-rose-950: oklch(.271 .105 12.094); --color-slate-50: oklch(.984 .003 247.858); --color-slate-100: oklch(.968 .007 247.896); --color-slate-200: oklch(.929 .013 255.508); --color-slate-300: oklch(.869 .022 252.894); --color-slate-400: oklch(.704 .04 256.788); --color-slate-500: oklch(.554 .046 257.417); --color-slate-600: oklch(.446 .043 257.281); --color-slate-700: oklch(.372 .044 257.287); --color-slate-800: oklch(.279 .041 260.031); --color-slate-900: oklch(.208 .042 265.755); --color-slate-950: oklch(.129 .042 264.695); --color-gray-50: oklch(.985 .002 247.839); --color-gray-100: oklch(.967 .003 264.542); --color-gray-200: oklch(.928 .006 264.531); --color-gray-300: oklch(.872 .01 258.338); --color-gray-400: oklch(.707 .022 261.325); --color-gray-500: oklch(.551 .027 264.364); --color-gray-600: oklch(.446 .03 256.802); --color-gray-700: oklch(.373 .034 259.733); --color-gray-800: oklch(.278 .033 256.848); --color-gray-900: oklch(.21 .034 264.665); --color-gray-950: oklch(.13 .028 261.692); --color-zinc-50: oklch(.985 0 0); --color-zinc-100: oklch(.967 .001 286.375); --color-zinc-200: oklch(.92 .004 286.32); --color-zinc-300: oklch(.871 .006 286.286); --color-zinc-400: oklch(.705 .015 286.067); --color-zinc-500: oklch(.552 .016 285.938); --color-zinc-600: oklch(.442 .017 285.786); --color-zinc-700: oklch(.37 .013 285.805); --color-zinc-800: oklch(.274 .006 286.033); --color-zinc-900: oklch(.21 .006 285.885); --color-zinc-950: oklch(.141 .005 285.823); --color-neutral-50: oklch(.985 0 0); --color-neutral-100: oklch(.97 0 0); --color-neutral-200: oklch(.922 0 0); --color-neutral-300: oklch(.87 0 0); --color-neutral-400: oklch(.708 0 0); --color-neutral-500: oklch(.556 0 0); --color-neutral-600: oklch(.439 0 0); --color-neutral-700: oklch(.371 0 0); --color-neutral-800: oklch(.269 0 0); --color-neutral-900: oklch(.205 0 0); --color-neutral-950: oklch(.145 0 0); --color-stone-50: oklch(.985 .001 106.423); --color-stone-100: oklch(.97 .001 106.424); --color-stone-200: oklch(.923 .003 48.717); --color-stone-300: oklch(.869 .005 56.366); --color-stone-400: oklch(.709 .01 56.259); --color-stone-500: oklch(.553 .013 58.071); --color-stone-600: oklch(.444 .011 73.639); --color-stone-700: oklch(.374 .01 67.558); --color-stone-800: oklch(.268 .007 34.298); --color-stone-900: oklch(.216 .006 56.043); --color-stone-950: oklch(.147 .004 49.25); --color-black: #000; --color-white: #fff; --spacing: .25rem; --breakpoint-sm: 40rem; --breakpoint-md: 48rem; --breakpoint-lg: 64rem; --breakpoint-xl: 80rem; --breakpoint-2xl: 96rem; --container-3xs: 16rem; --container-2xs: 18rem; --container-xs: 20rem; --container-sm: 24rem; --container-md: 28rem; --container-lg: 32rem; --container-xl: 36rem; --container-2xl: 42rem; --container-3xl: 48rem; --container-4xl: 56rem; --container-5xl: 64rem; --container-6xl: 72rem; --container-7xl: 80rem; --text-xs: .75rem; --text-xs--line-height: calc(1/.75); --text-sm: .875rem; --text-sm--line-height: calc(1.25/.875); --text-base: 1rem; --text-base--line-height: calc(1.5/1); --text-lg: 1.125rem; --text-lg--line-height: calc(1.75/1.125); --text-xl: 1.25rem; --text-xl--line-height: calc(1.75/1.25); --text-2xl: 1.5rem; --text-2xl--line-height: calc(2/1.5); --text-3xl: 1.875rem; --text-3xl--line-height: calc(2.25/1.875); --text-4xl: 2.25rem; --text-4xl--line-height: calc(2.5/2.25); --text-5xl: 3rem; --text-5xl--line-height: 1; --text-6xl: 3.75rem; --text-6xl--line-height: 1; --text-7xl: 4.5rem; --text-7xl--line-height: 1; --text-8xl: 6rem; --text-8xl--line-height: 1; --text-9xl: 8rem; --text-9xl--line-height: 1; --font-weight-thin: 100; --font-weight-extralight: 200; --font-weight-light: 300; --font-weight-normal: 400; --font-weight-medium: 500; --font-weight-semibold: 600; --font-weight-bold: 700; --font-weight-extrabold: 800; --font-weight-black: 900; --tracking-tighter: -.05em; --tracking-tight: -.025em; --tracking-normal: 0em; --tracking-wide: .025em; --tracking-wider: .05em; --tracking-widest: .1em; --leading-tight: 1.25; --leading-snug: 1.375; --leading-normal: 1.5; --leading-relaxed: 1.625; --leading-loose: 2; --radius-xs: .125rem; --radius-sm: .25rem; --radius-md: .375rem; --radius-lg: .5rem; --radius-xl: .75rem; --radius-2xl: 1rem; --radius-3xl: 1.5rem; --radius-4xl: 2rem; --shadow-2xs: 0 1px #0000000d; --shadow-xs: 0 1px 2px 0 #0000000d; --shadow-sm: 0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a; --shadow-md: 0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a; --shadow-lg: 0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a; --shadow-xl: 0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a; --shadow-2xl: 0 25px 50px -12px #00000040; --inset-shadow-2xs: inset 0 1px #0000000d; --inset-shadow-xs: inset 0 1px 1px #0000000d; --inset-shadow-sm: inset 0 2px 4px #0000000d; --drop-shadow-xs: 0 1px 1px #0000000d; --drop-shadow-sm: 0 1px 2px #00000026; --drop-shadow-md: 0 3px 3px #0000001f; --drop-shadow-lg: 0 4px 4px #00000026; --drop-shadow-xl: 0 9px 7px #0000001a; --drop-shadow-2xl: 0 25px 25px #00000026; --blur-xs: 4px; --blur-sm: 8px; --blur-md: 12px; --blur-lg: 16px; --blur-xl: 24px; --blur-2xl: 40px; --blur-3xl: 64px; --perspective-dramatic: 100px; --perspective-near: 300px; --perspective-normal: 500px; --perspective-midrange: 800px; --perspective-distant: 1200px; --aspect-video: 16/9; --ease-in: cubic-bezier(.4,0,1,1); --ease-out: cubic-bezier(0,0,.2,1); --ease-in-out: cubic-bezier(.4,0,.2,1); --animate-spin: spin 1s linear infinite; --animate-ping: ping 1s cubic-bezier(0,0,.2,1)infinite; --animate-pulse: pulse 2s cubic-bezier(.4,0,.6,1)infinite; --animate-bounce: bounce 1s infinite; @keyframes spin { to { transform: rotate(360deg); }}@keyframes ping { 75%,100% { transform: scale(2); opacity: 0; }}@keyframes pulse { 50% { opacity: .5; }}@keyframes bounce { 0%,100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8,0,1,1); }50% { transform: none; animation-timing-function: cubic-bezier(0,0,.2,1); }}}`;
|
|
2
|
-
export default
|
|
2
|
+
export default css;
|