@searchcraft/javascript-sdk 0.5.2 → 0.6.0
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/cjs/{index-b76bece0.js → index-b3b77ea2.js} +2 -1
- package/dist/cjs/index-b3b77ea2.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/searchcraft-base-search-result.cjs.entry.js +3 -3
- package/dist/cjs/searchcraft-base-search-result.cjs.entry.js.map +1 -1
- package/dist/cjs/searchcraft-base-search-results.cjs.entry.js +13 -12
- package/dist/cjs/searchcraft-base-search-results.cjs.entry.js.map +1 -1
- package/dist/cjs/searchcraft-button_3.cjs.entry.js +63 -0
- package/dist/cjs/searchcraft-button_3.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-facet-list_3.cjs.entry.js +140 -14
- package/dist/cjs/searchcraft-facet-list_3.cjs.entry.js.map +1 -1
- package/dist/cjs/searchcraft-filter-panel.cjs.entry.js +7 -7
- package/dist/cjs/searchcraft-filter-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/searchcraft-input-form_2.cjs.entry.js +227 -0
- package/dist/cjs/searchcraft-input-form_2.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-javascript-sdk.cjs.js +2 -2
- package/dist/cjs/searchcraft-popover-button.cjs.entry.js +26 -0
- package/dist/cjs/searchcraft-popover-button.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-popover-form.cjs.entry.js +197 -3
- package/dist/cjs/searchcraft-popover-form.cjs.entry.js.map +1 -1
- package/dist/cjs/searchcraft-popover-list-item.cjs.entry.js +32 -0
- package/dist/cjs/searchcraft-popover-list-item.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-results-info.cjs.entry.js +5 -5
- package/dist/cjs/searchcraft-results-info.cjs.entry.js.map +1 -1
- package/dist/cjs/{store-943576b0.js → store-d7ebcf7a.js} +280 -267
- package/dist/cjs/store-d7ebcf7a.js.map +1 -0
- package/dist/cjs/styles-7b2d06f2.js +28 -0
- package/dist/cjs/styles-7b2d06f2.js.map +1 -0
- package/dist/cjs/units-fe4d8083.js +88 -0
- package/dist/cjs/units-fe4d8083.js.map +1 -0
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.js +21 -16
- package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.js.map +1 -1
- package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.module.css +54 -4
- package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js +45 -13
- package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js.map +1 -1
- package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.module.css +52 -2
- package/dist/collection/components/searchcraft-button/searchcraft-button.js +11 -6
- package/dist/collection/components/searchcraft-button/searchcraft-button.js.map +1 -1
- package/dist/collection/components/searchcraft-button/searchcraft-button.module.css +52 -2
- package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.js +11 -2
- package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.js.map +1 -1
- package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.module.css +52 -2
- package/dist/collection/components/searchcraft-facet-list/searchcraft-facet-list.js +23 -4
- package/dist/collection/components/searchcraft-facet-list/searchcraft-facet-list.js.map +1 -1
- package/dist/collection/components/searchcraft-facet-list/searchcraft-facet-list.module.css +52 -2
- package/dist/collection/components/searchcraft-filter-panel/searchcraft-filter-panel.js +13 -4
- package/dist/collection/components/searchcraft-filter-panel/searchcraft-filter-panel.js.map +1 -1
- package/dist/collection/components/searchcraft-filter-panel/searchcraft-filter-panel.module.css +52 -2
- package/dist/collection/components/searchcraft-input-form/searchcraft-input-form.js +66 -49
- package/dist/collection/components/searchcraft-input-form/searchcraft-input-form.js.map +1 -1
- package/dist/collection/components/searchcraft-input-form/searchcraft-input-form.module.css +56 -6
- package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.js +12 -6
- package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.js.map +1 -1
- package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.module.css +52 -2
- package/dist/collection/components/searchcraft-popover-button/searchcraft-popover-button.js +25 -0
- package/dist/collection/components/searchcraft-popover-button/searchcraft-popover-button.js.map +1 -0
- package/dist/collection/components/searchcraft-popover-form/searchcraft-popover-form.js +278 -5
- package/dist/collection/components/searchcraft-popover-form/searchcraft-popover-form.js.map +1 -1
- package/dist/collection/components/searchcraft-popover-form/searchcraft-popover-form.module.css +322 -0
- package/dist/collection/components/searchcraft-popover-list-item/searchcraft-popover-list-item.js +139 -0
- package/dist/collection/components/searchcraft-popover-list-item/searchcraft-popover-list-item.js.map +1 -0
- package/dist/collection/components/searchcraft-popover-list-item/searchcraft-popover-list-item.module.css +209 -0
- package/dist/collection/components/searchcraft-popover-list-view/searchcraft-popover-list-view.js +47 -6
- package/dist/collection/components/searchcraft-popover-list-view/searchcraft-popover-list-view.js.map +1 -1
- package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.js +11 -1
- package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.js.map +1 -1
- package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.module.css +53 -3
- package/dist/collection/components/searchcraft-slider/searchcraft-slider.js +13 -8
- package/dist/collection/components/searchcraft-slider/searchcraft-slider.js.map +1 -1
- package/dist/collection/components/searchcraft-slider/searchcraft-slider.module.css +52 -2
- package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.js +9 -5
- package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.js.map +1 -1
- package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.module.css +52 -2
- package/dist/collection/index.js +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/provider/store.js +14 -15
- package/dist/collection/provider/store.js.map +1 -1
- package/dist/collection/types/_shared.types.js +2 -0
- package/dist/collection/types/_shared.types.js.map +1 -0
- package/dist/collection/types/index.js +1 -0
- package/dist/collection/types/index.js.map +1 -1
- package/dist/collection/types/searchcraft-base-search-results.types.js.map +1 -1
- package/dist/collection/types/searchcraft-popover-form.types.js.map +1 -1
- package/dist/collection/utils/{utils.js → facets.js} +7 -105
- package/dist/collection/utils/facets.js.map +1 -0
- package/dist/collection/utils/index.js +4 -0
- package/dist/collection/utils/index.js.map +1 -0
- package/dist/collection/utils/styles.js +22 -0
- package/dist/collection/utils/styles.js.map +1 -0
- package/dist/collection/utils/units.js +83 -0
- package/dist/collection/utils/units.js.map +1 -0
- package/dist/components/index.js +6 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/p-02a16e53.js +240 -0
- package/dist/components/p-02a16e53.js.map +1 -0
- package/dist/components/{p-cbdcf6df.js → p-04c46179.js} +3 -3
- package/dist/components/p-04c46179.js.map +1 -0
- package/dist/components/p-0e38a723.js +99 -0
- package/dist/components/p-0e38a723.js.map +1 -0
- package/dist/components/p-4c45ef80.js +67 -0
- package/dist/components/p-4c45ef80.js.map +1 -0
- package/dist/components/p-755f491b.js +84 -0
- package/dist/components/p-755f491b.js.map +1 -0
- package/dist/components/p-85765b81.js +56 -0
- package/dist/components/p-85765b81.js.map +1 -0
- package/dist/components/p-953f4238.js +35 -0
- package/dist/components/p-953f4238.js.map +1 -0
- package/dist/components/p-a248ad69.js +276 -0
- package/dist/components/p-a248ad69.js.map +1 -0
- package/dist/components/p-a9bd1872.js +38 -0
- package/dist/components/p-a9bd1872.js.map +1 -0
- package/dist/components/p-cf4ced92.js +49 -0
- package/dist/components/p-cf4ced92.js.map +1 -0
- package/dist/components/{p-ad4ebde0.js → p-d6a88eed.js} +280 -267
- package/dist/components/p-d6a88eed.js.map +1 -0
- package/dist/components/p-d9551738.js +25 -0
- package/dist/components/p-d9551738.js.map +1 -0
- package/dist/components/p-f9d778b3.js +48 -0
- package/dist/components/p-f9d778b3.js.map +1 -0
- package/dist/components/searchcraft-base-search-result.js +1 -1
- package/dist/components/searchcraft-base-search-results.js +6 -5
- package/dist/components/searchcraft-base-search-results.js.map +1 -1
- package/dist/components/searchcraft-button.js +1 -1
- package/dist/components/searchcraft-error-message.js +1 -1
- package/dist/components/searchcraft-facet-list.js +1 -1
- package/dist/components/searchcraft-filter-panel.js +8 -8
- package/dist/components/searchcraft-filter-panel.js.map +1 -1
- package/dist/components/searchcraft-input-form.js +1 -241
- package/dist/components/searchcraft-input-form.js.map +1 -1
- package/dist/components/searchcraft-input-label.js +1 -1
- package/dist/components/searchcraft-popover-button.d.ts +11 -0
- package/dist/components/searchcraft-popover-button.js +39 -0
- package/dist/components/searchcraft-popover-button.js.map +1 -0
- package/dist/components/searchcraft-popover-form.js +245 -5
- package/dist/components/searchcraft-popover-form.js.map +1 -1
- package/dist/components/searchcraft-popover-list-item.d.ts +11 -0
- package/dist/components/searchcraft-popover-list-item.js +8 -0
- package/dist/components/searchcraft-popover-list-item.js.map +1 -0
- package/dist/components/searchcraft-popover-list-view.js +1 -1
- package/dist/components/searchcraft-results-info.js +3 -3
- package/dist/components/searchcraft-results-info.js.map +1 -1
- package/dist/components/searchcraft-slider.js +1 -1
- package/dist/components/searchcraft-toggle-button.js +1 -1
- package/dist/esm/{index-be042742.js → index-11551663.js} +2 -2
- package/dist/esm/index-11551663.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/searchcraft-base-search-result.entry.js +3 -3
- package/dist/esm/searchcraft-base-search-result.entry.js.map +1 -1
- package/dist/esm/searchcraft-base-search-results.entry.js +5 -4
- package/dist/esm/searchcraft-base-search-results.entry.js.map +1 -1
- package/dist/esm/searchcraft-button_3.entry.js +57 -0
- package/dist/esm/searchcraft-button_3.entry.js.map +1 -0
- package/dist/esm/searchcraft-facet-list_3.entry.js +137 -11
- package/dist/esm/searchcraft-facet-list_3.entry.js.map +1 -1
- package/dist/esm/searchcraft-filter-panel.entry.js +6 -6
- package/dist/esm/searchcraft-filter-panel.entry.js.map +1 -1
- package/dist/esm/searchcraft-input-form_2.entry.js +222 -0
- package/dist/esm/searchcraft-input-form_2.entry.js.map +1 -0
- package/dist/esm/searchcraft-javascript-sdk.js +3 -3
- package/dist/esm/searchcraft-popover-button.entry.js +22 -0
- package/dist/esm/searchcraft-popover-button.entry.js.map +1 -0
- package/dist/esm/searchcraft-popover-form.entry.js +197 -3
- package/dist/esm/searchcraft-popover-form.entry.js.map +1 -1
- package/dist/esm/searchcraft-popover-list-item.entry.js +28 -0
- package/dist/esm/searchcraft-popover-list-item.entry.js.map +1 -0
- package/dist/esm/searchcraft-results-info.entry.js +4 -4
- package/dist/esm/searchcraft-results-info.entry.js.map +1 -1
- package/dist/esm/{store-eb4269d6.js → store-1058f7b0.js} +280 -267
- package/dist/esm/store-1058f7b0.js.map +1 -0
- package/dist/esm/styles-961644ef.js +25 -0
- package/dist/esm/styles-961644ef.js.map +1 -0
- package/dist/esm/units-b6eba560.js +84 -0
- package/dist/esm/units-b6eba560.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/index.esm.js +1 -1
- package/dist/searchcraft-javascript-sdk/p-4580e8a4.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-4580e8a4.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-7049b93d.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-7049b93d.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-755f491b.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-755f491b.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-8e539d62.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-8e539d62.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-98640a6a.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-98640a6a.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-9d0f5c89.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-9d0f5c89.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-b8bd53ce.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-b8bd53ce.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-c27a3673.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-c27a3673.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-cd852b84.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-cd852b84.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-d6a88eed.js +11 -0
- package/dist/searchcraft-javascript-sdk/p-d6a88eed.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-d9551738.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-d9551738.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-e042deb9.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-e042deb9.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/{p-d7d0b88c.js → p-e0be53df.js} +2 -2
- package/dist/searchcraft-javascript-sdk/{p-d7d0b88c.js.map → p-e0be53df.js.map} +1 -1
- package/dist/searchcraft-javascript-sdk/p-efab9f3c.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-efab9f3c.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js +1 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js.map +1 -1
- package/dist/types/components/searchcraft-base-search-result/searchcraft-base-search-result.d.ts +53 -0
- package/dist/types/components/searchcraft-base-search-results/searchcraft-base-search-results.d.ts +68 -0
- package/dist/types/components/searchcraft-button/searchcraft-button.d.ts +20 -0
- package/dist/types/components/searchcraft-error-message/searchcraft-error-message.d.ts +12 -0
- package/dist/types/components/searchcraft-facet-list/searchcraft-facet-list.d.ts +25 -0
- package/dist/types/components/searchcraft-filter-panel/searchcraft-filter-panel.d.ts +12 -0
- package/dist/types/components/searchcraft-input-form/searchcraft-input-form.d.ts +37 -13
- package/dist/types/components/searchcraft-input-label/searchcraft-input-label.d.ts +13 -1
- package/dist/types/components/searchcraft-popover-button/searchcraft-popover-button.d.ts +7 -0
- package/dist/types/components/searchcraft-popover-form/searchcraft-popover-form.d.ts +97 -1
- package/dist/types/components/searchcraft-popover-list-item/searchcraft-popover-list-item.d.ts +22 -0
- package/dist/types/components/searchcraft-popover-list-view/searchcraft-popover-list-view.d.ts +19 -3
- package/dist/types/components/searchcraft-results-info/searchcraft-results-info.d.ts +10 -0
- package/dist/types/components/searchcraft-slider/searchcraft-slider.d.ts +18 -0
- package/dist/types/components/searchcraft-toggle-button/searchcraft-toggle-button.d.ts +11 -3
- package/dist/types/components.d.ts +1023 -30
- package/dist/types/index.d.ts +1 -1
- package/dist/types/provider/store.d.ts +4 -2
- package/dist/types/types/_shared.types.d.ts +45 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/searchcraft-base-search-results.types.d.ts +1 -8
- package/dist/types/types/searchcraft-popover-form.types.d.ts +2 -1
- package/dist/types/utils/facets.d.ts +6 -0
- package/dist/types/utils/index.d.ts +3 -0
- package/dist/types/utils/styles.d.ts +2 -0
- package/dist/types/utils/{utils.d.ts → units.d.ts} +12 -19
- package/package.json +11 -8
- package/dist/cjs/index-b76bece0.js.map +0 -1
- package/dist/cjs/searchcraft-button_2.cjs.entry.js +0 -51
- package/dist/cjs/searchcraft-button_2.cjs.entry.js.map +0 -1
- package/dist/cjs/searchcraft-error-message.cjs.entry.js +0 -23
- package/dist/cjs/searchcraft-error-message.cjs.entry.js.map +0 -1
- package/dist/cjs/searchcraft-input-form.cjs.entry.js +0 -202
- package/dist/cjs/searchcraft-input-form.cjs.entry.js.map +0 -1
- package/dist/cjs/searchcraft-popover-list-view.cjs.entry.js +0 -26
- package/dist/cjs/searchcraft-popover-list-view.cjs.entry.js.map +0 -1
- package/dist/cjs/searchcraft-popover-result.cjs.entry.js +0 -25
- package/dist/cjs/searchcraft-popover-result.cjs.entry.js.map +0 -1
- package/dist/cjs/store-943576b0.js.map +0 -1
- package/dist/cjs/utils-a17279a2.js +0 -226
- package/dist/cjs/utils-a17279a2.js.map +0 -1
- package/dist/collection/components/searchcraft-popover-result/searchcraft-popover-result.js +0 -21
- package/dist/collection/components/searchcraft-popover-result/searchcraft-popover-result.js.map +0 -1
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/p-16983367.js +0 -35
- package/dist/components/p-16983367.js.map +0 -1
- package/dist/components/p-42bfef5f.js +0 -151
- package/dist/components/p-42bfef5f.js.map +0 -1
- package/dist/components/p-5380505b.js +0 -99
- package/dist/components/p-5380505b.js.map +0 -1
- package/dist/components/p-672354c0.js +0 -38
- package/dist/components/p-672354c0.js.map +0 -1
- package/dist/components/p-9cb3d38b.js +0 -48
- package/dist/components/p-9cb3d38b.js.map +0 -1
- package/dist/components/p-a23d2994.js +0 -67
- package/dist/components/p-a23d2994.js.map +0 -1
- package/dist/components/p-ad4ebde0.js.map +0 -1
- package/dist/components/p-bd5fede3.js +0 -41
- package/dist/components/p-bd5fede3.js.map +0 -1
- package/dist/components/p-cbdcf6df.js.map +0 -1
- package/dist/components/p-f308d05d.js +0 -218
- package/dist/components/p-f308d05d.js.map +0 -1
- package/dist/components/searchcraft-popover-result.d.ts +0 -11
- package/dist/components/searchcraft-popover-result.js +0 -38
- package/dist/components/searchcraft-popover-result.js.map +0 -1
- package/dist/esm/index-be042742.js.map +0 -1
- package/dist/esm/searchcraft-button_2.entry.js +0 -46
- package/dist/esm/searchcraft-button_2.entry.js.map +0 -1
- package/dist/esm/searchcraft-error-message.entry.js +0 -19
- package/dist/esm/searchcraft-error-message.entry.js.map +0 -1
- package/dist/esm/searchcraft-input-form.entry.js +0 -198
- package/dist/esm/searchcraft-input-form.entry.js.map +0 -1
- package/dist/esm/searchcraft-popover-list-view.entry.js +0 -22
- package/dist/esm/searchcraft-popover-list-view.entry.js.map +0 -1
- package/dist/esm/searchcraft-popover-result.entry.js +0 -21
- package/dist/esm/searchcraft-popover-result.entry.js.map +0 -1
- package/dist/esm/store-eb4269d6.js.map +0 -1
- package/dist/esm/utils-c2ce411f.js +0 -218
- package/dist/esm/utils-c2ce411f.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-04300412.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-04300412.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-09c7fbef.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-09c7fbef.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-3e4a28e7.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-3e4a28e7.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-4d3682a8.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-4d3682a8.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-61cf9d6c.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-61cf9d6c.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-93b92b65.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-93b92b65.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-a7a7b4e0.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-a7a7b4e0.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-a810aeae.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-a810aeae.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-aa155194.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-aa155194.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-ad4ebde0.js +0 -11
- package/dist/searchcraft-javascript-sdk/p-ad4ebde0.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-adadf38a.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-adadf38a.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-d57eba31.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-d57eba31.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-f308d05d.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-f308d05d.js.map +0 -1
- package/dist/types/components/searchcraft-popover-result/searchcraft-popover-result.d.ts +0 -6
- /package/dist/collection/components/{searchcraft-popover-result/searchcraft-popover-result.module.css → searchcraft-popover-button/searchcraft-popover-button.module.css} +0 -0
package/dist/collection/components/searchcraft-popover-form/searchcraft-popover-form.module.css
CHANGED
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
/** Appearance & Layout */
|
|
2
|
+
:root {
|
|
3
|
+
/**
|
|
4
|
+
* Border radius of the input form element.
|
|
5
|
+
*/
|
|
6
|
+
--sc-input-border-radius: 8px;
|
|
7
|
+
/**
|
|
8
|
+
* Icon size of the "magnifying glass" icon rendered in the input form.
|
|
9
|
+
*/
|
|
10
|
+
--sc-input-search-icon-size: 20px;
|
|
11
|
+
/**
|
|
12
|
+
* Icon size of the `x` button rendered in the input form.
|
|
13
|
+
*/
|
|
14
|
+
--sc-input-clear-icon-size: 20px;
|
|
15
|
+
/**
|
|
16
|
+
* Padding on the left side of the input form.
|
|
17
|
+
*/
|
|
18
|
+
--sc-input-padding-left: 44px;
|
|
19
|
+
/**
|
|
20
|
+
* Padding on the right side of the input form.
|
|
21
|
+
*/
|
|
22
|
+
--sc-input-padding-right: 44px;
|
|
23
|
+
/**
|
|
24
|
+
* Border radius applied to result images.
|
|
25
|
+
*/
|
|
26
|
+
--sc-image-border-radius: 8px;
|
|
27
|
+
/**
|
|
28
|
+
* Border radius applied to popover form containers.
|
|
29
|
+
*/
|
|
30
|
+
--sc-popover-form-border-radius: 8px;
|
|
31
|
+
/**
|
|
32
|
+
* Height of the list view/results container portion of the popover form.
|
|
33
|
+
*/
|
|
34
|
+
--sc-popover-list-view-height: 400px;
|
|
35
|
+
/**
|
|
36
|
+
* Size of images of list view items in the popoer list view.
|
|
37
|
+
*/
|
|
38
|
+
--sc-popover-list-item-image-size: 60px;
|
|
39
|
+
/**
|
|
40
|
+
* Horizontal padding of popover list items.
|
|
41
|
+
*/
|
|
42
|
+
--sc-popover-list-item-padding-horizontal: 8px;
|
|
43
|
+
/**
|
|
44
|
+
* Vertical padding of popover list items.
|
|
45
|
+
*/
|
|
46
|
+
--sc-popover-list-item-padding-vertical: 8px;
|
|
47
|
+
/**
|
|
48
|
+
* Maximum width of popover forms of type `modal`.
|
|
49
|
+
*/
|
|
50
|
+
--sc-popover-modal-max-width: 570px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:root {
|
|
54
|
+
--sc-surface-disabled: #D9D9D9;
|
|
55
|
+
--sc-surface-neutral-primary: #FFFFFF;
|
|
56
|
+
--sc-surface-neutral-secondary: #F3F3F3;
|
|
57
|
+
--sc-surface-neutral-light: #FFFFFF;
|
|
58
|
+
--sc-surface-neutral-primary-hover: #FAFAFA;
|
|
59
|
+
--sc-surface-neutral-primary-active: #F7F7F7;
|
|
60
|
+
--sc-surface-neutral-secondary-hover: #EDEDED;
|
|
61
|
+
--sc-surface-neutral-secondary-active: #E6E6E6;
|
|
62
|
+
--sc-surface-brand-primary: #000000;
|
|
63
|
+
--sc-surface-brand-secondary: #E6E6E6;
|
|
64
|
+
--sc-surface-brand-primary-hover: #2E2E2E;
|
|
65
|
+
--sc-surface-brand-primary-active: #292929;
|
|
66
|
+
--sc-surface-brand-secondary-hover: #EBEBEB;
|
|
67
|
+
--sc-surface-brand-secondary-active: #E0E0E0;
|
|
68
|
+
--sc-surface-success-primary: #008000;
|
|
69
|
+
--sc-surface-success-secondary: #CCFFCC;
|
|
70
|
+
--sc-surface-success-primary-hover: #009900;
|
|
71
|
+
--sc-surface-success-primary-active: #006600;
|
|
72
|
+
--sc-surface-success-secondary-hover: #E6FFE6;
|
|
73
|
+
--sc-surface-success-secondary-active: #E6FFE6;
|
|
74
|
+
--sc-surface-caution-primary: #CC6600;
|
|
75
|
+
--sc-surface-caution-secondary: #FFD9B3;
|
|
76
|
+
--sc-surface-caution-primary-hover: #E57300;
|
|
77
|
+
--sc-surface-caution-primary-active: #B25A00;
|
|
78
|
+
--sc-surface-caution-secondary-hover: #FFE5CC;
|
|
79
|
+
--sc-surface-caution-secondary-active: #FFCC99;
|
|
80
|
+
--sc-surface-danger-primary: #CC0000;
|
|
81
|
+
--sc-surface-danger-secondary: #FFCCCC;
|
|
82
|
+
--sc-surface-danger-primary-hover: #E50000;
|
|
83
|
+
--sc-surface-danger-primary-active: #B30000;
|
|
84
|
+
--sc-surface-danger-secondary-hover: #FFE7E7;
|
|
85
|
+
--sc-surface-danger-secondary-active: #FFB3B3;
|
|
86
|
+
--sc-content-brand: #000000;
|
|
87
|
+
--sc-content-success: #008000;
|
|
88
|
+
--sc-content-caution: #994D00;
|
|
89
|
+
--sc-content-danger: #990000;
|
|
90
|
+
--sc-content-disabled: #737373;
|
|
91
|
+
--sc-content-neutral-primary: #292929;
|
|
92
|
+
--sc-content-neutral-secondary: #404040;
|
|
93
|
+
--sc-content-brand-on-primary: #FFFFFF;
|
|
94
|
+
--sc-content-success-on-primary: #FFFFFF;
|
|
95
|
+
--sc-content-caution-on-primary: #FFFFFF;
|
|
96
|
+
--sc-content-danger-on-primary: #FFFFFF;
|
|
97
|
+
--sc-content-disabled-on-disabled: #737373;
|
|
98
|
+
--sc-border-neutral: rgba(0,0,0, 0.1);
|
|
99
|
+
--sc-border-brand: #000000;
|
|
100
|
+
--sc-border-success: #008000;
|
|
101
|
+
--sc-border-caution: #CC6600;
|
|
102
|
+
--sc-border-danger: #CC0000;
|
|
103
|
+
--sc-border-disabled: #737373;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:root {
|
|
107
|
+
/** Typography */
|
|
108
|
+
--sc-font-family: sans-serif;
|
|
109
|
+
--sc-heading-1-font-size: 32px;
|
|
110
|
+
--sc-heading-1-line-height: 36px;
|
|
111
|
+
--sc-heading-1-font-weight: 700;
|
|
112
|
+
--sc-heading-2-font-size: 29px;
|
|
113
|
+
--sc-heading-2-line-height: 32px;
|
|
114
|
+
--sc-heading-2-font-weight: 700;
|
|
115
|
+
--sc-heading-3-font-size: 26px;
|
|
116
|
+
--sc-heading-3-line-height: 28px;
|
|
117
|
+
--sc-heading-3-font-weight: 700;
|
|
118
|
+
--sc-heading-4-font-size: 23px;
|
|
119
|
+
--sc-heading-4-line-height: 24px;
|
|
120
|
+
--sc-heading-4-font-weight: 700;
|
|
121
|
+
--sc-heading-5-font-size: 20px;
|
|
122
|
+
--sc-heading-5-line-height: 24px;
|
|
123
|
+
--sc-heading-5-font-weight: 700;
|
|
124
|
+
--sc-heading-6-font-size: 10px;
|
|
125
|
+
--sc-heading-6-line-height: 12px;
|
|
126
|
+
--sc-heading-6-font-weight: 700;
|
|
127
|
+
--sc-body-bold-font-size: 16px;
|
|
128
|
+
--sc-body-bold-line-height: 20px;
|
|
129
|
+
--sc-body-bold-font-weight: 700;
|
|
130
|
+
--sc-body-font-size: 16px;
|
|
131
|
+
--sc-body-line-height: 20px;
|
|
132
|
+
--sc-body-font-weight:400;
|
|
133
|
+
--sc-body-small-bold-font-size: 12px;
|
|
134
|
+
--sc-body-small-bold-line-height: 16px;
|
|
135
|
+
--sc-body-small-bold-font-weight: 700;
|
|
136
|
+
--sc-body-small-font-size: 12px;
|
|
137
|
+
--sc-body-small-line-height: 16px;
|
|
138
|
+
--sc-body-small-font-weight: 400;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Variables that need to be part of the preprocessor can go here.
|
|
143
|
+
*/
|
|
144
|
+
:root {
|
|
145
|
+
--sc-breakpoint-sm: 576px;
|
|
146
|
+
--sc-breakpoint-md: 768px;
|
|
147
|
+
--sc-breakpoint-lg: 992px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Styles applied to all popover form variants.
|
|
152
|
+
*/
|
|
153
|
+
.searchcraft-popover-form {
|
|
154
|
+
display: flex;
|
|
155
|
+
flex-direction: column;
|
|
156
|
+
flex: 1;
|
|
157
|
+
}
|
|
158
|
+
.searchcraft-popover-form .searchcraft-popover-form-input-wrapper {
|
|
159
|
+
padding: 12px;
|
|
160
|
+
background-color: var(--sc-surface-neutral-secondary);
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: row;
|
|
163
|
+
gap: 4px;
|
|
164
|
+
}
|
|
165
|
+
.searchcraft-popover-form .searchcraft-popover-form-input-wrapper > searchcraft-input-form {
|
|
166
|
+
flex: 1;
|
|
167
|
+
}
|
|
168
|
+
.searchcraft-popover-form .searchcraft-popover-form-cancel-button {
|
|
169
|
+
font-family: var(--sc-font-family);
|
|
170
|
+
-webkit-font-smoothing: antialiased;
|
|
171
|
+
font-size: var(--sc-body-font-size);
|
|
172
|
+
font-weight: var(--sc-body-font-weight);
|
|
173
|
+
line-height: var(--sc-body-line-height);
|
|
174
|
+
border: 0;
|
|
175
|
+
outline: 0;
|
|
176
|
+
padding: 0;
|
|
177
|
+
flex-shrink: 0;
|
|
178
|
+
background: none;
|
|
179
|
+
cursor: pointer;
|
|
180
|
+
padding-left: 12px;
|
|
181
|
+
padding-right: 12px;
|
|
182
|
+
border-radius: calc(var(--sc-popover-form-border-radius) * 0.8);
|
|
183
|
+
}
|
|
184
|
+
.searchcraft-popover-form .searchcraft-popover-form-cancel-button:hover {
|
|
185
|
+
background-color: var(--sc-surface-brand-secondary-hover);
|
|
186
|
+
}
|
|
187
|
+
.searchcraft-popover-form .searchcraft-popover-form-cancel-button:focus {
|
|
188
|
+
background-color: var(--sc-surface-brand-secondary-active);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Styles applied to `inline` popover forms.
|
|
193
|
+
*/
|
|
194
|
+
.searchcraft-popover-form-inline .searchcraft-input {
|
|
195
|
+
border-top-left-radius: var(--sc-popover-form-border-radius);
|
|
196
|
+
border-top-right-radius: var(--sc-popover-form-border-radius);
|
|
197
|
+
border-bottom-left-radius: var(--sc-popover-form-border-radius);
|
|
198
|
+
border-bottom-right-radius: var(--sc-popover-form-border-radius);
|
|
199
|
+
border: none;
|
|
200
|
+
outline: none;
|
|
201
|
+
}
|
|
202
|
+
.searchcraft-popover-form-inline.searchcraft-popover-form-active .searchcraft-input {
|
|
203
|
+
border-top-left-radius: var(--sc-popover-form-border-radius);
|
|
204
|
+
border-top-right-radius: var(--sc-popover-form-border-radius);
|
|
205
|
+
border-bottom-left-radius: 0;
|
|
206
|
+
border-bottom-right-radius: 0;
|
|
207
|
+
}
|
|
208
|
+
.searchcraft-popover-form-inline .searchcraft-popover-inline-wrapper-outer {
|
|
209
|
+
position: relative;
|
|
210
|
+
}
|
|
211
|
+
.searchcraft-popover-form-inline .searchcraft-popover-inline-wrapper-inner {
|
|
212
|
+
position: absolute;
|
|
213
|
+
height: var(--sc-popover-list-view-height);
|
|
214
|
+
z-index: 1000;
|
|
215
|
+
width: 100%;
|
|
216
|
+
}
|
|
217
|
+
.searchcraft-popover-form-inline .searchcraft-popover-list-view {
|
|
218
|
+
display: flex;
|
|
219
|
+
flex-direction: column;
|
|
220
|
+
overflow: auto;
|
|
221
|
+
background-color: var(--sc-surface-neutral-secondary);
|
|
222
|
+
border-bottom-left-radius: var(--sc-popover-form-border-radius);
|
|
223
|
+
border-bottom-right-radius: var(--sc-popover-form-border-radius);
|
|
224
|
+
max-height: var(--sc-popover-list-view-height);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Styles applied to `modal` popover forms.
|
|
229
|
+
*/
|
|
230
|
+
.searchcraft-popover-form-modal {
|
|
231
|
+
position: fixed;
|
|
232
|
+
inset: 0;
|
|
233
|
+
z-index: 1000;
|
|
234
|
+
display: flex;
|
|
235
|
+
align-items: flex-start;
|
|
236
|
+
justify-content: center;
|
|
237
|
+
padding: 0;
|
|
238
|
+
background-color: var(--sc-surface-neutral-secondary);
|
|
239
|
+
}
|
|
240
|
+
@media (min-width: 576px) {
|
|
241
|
+
.searchcraft-popover-form-modal {
|
|
242
|
+
padding: 16px;
|
|
243
|
+
background-color: transparent;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
.searchcraft-popover-form-modal .searchcraft-input {
|
|
247
|
+
border-radius: calc(var(--sc-popover-form-border-radius) * 0.8);
|
|
248
|
+
outline-width: 1px;
|
|
249
|
+
outline-color: var(--sc-border-neutral);
|
|
250
|
+
}
|
|
251
|
+
.searchcraft-popover-form-modal .searchcraft-popover-form-modal-backdrop {
|
|
252
|
+
position: absolute;
|
|
253
|
+
inset: 0;
|
|
254
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
255
|
+
display: none;
|
|
256
|
+
}
|
|
257
|
+
@media (min-width: 576px) {
|
|
258
|
+
.searchcraft-popover-form-modal .searchcraft-popover-form-modal-backdrop {
|
|
259
|
+
display: block;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
.searchcraft-popover-form-modal .searchcraft-popover-form-modal-inner {
|
|
263
|
+
position: absolute;
|
|
264
|
+
inset: 0;
|
|
265
|
+
z-index: 1002;
|
|
266
|
+
margin-top: 0px;
|
|
267
|
+
display: flex;
|
|
268
|
+
border-radius: var(--sc-popover-form-border-radius);
|
|
269
|
+
overflow: hidden;
|
|
270
|
+
}
|
|
271
|
+
@media (min-width: 576px) {
|
|
272
|
+
.searchcraft-popover-form-modal .searchcraft-popover-form-modal-inner {
|
|
273
|
+
inset: auto;
|
|
274
|
+
position: relative;
|
|
275
|
+
width: 100%;
|
|
276
|
+
margin-top: 100px;
|
|
277
|
+
max-width: var(--sc-popover-modal-max-width);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
.searchcraft-popover-form-modal .searchcraft-popover-list-view {
|
|
281
|
+
display: flex;
|
|
282
|
+
flex-direction: column;
|
|
283
|
+
overflow: auto;
|
|
284
|
+
background-color: var(--sc-surface-neutral-secondary);
|
|
285
|
+
border-bottom-left-radius: 0;
|
|
286
|
+
border-bottom-right-radius: 0;
|
|
287
|
+
}
|
|
288
|
+
@media (min-width: 576px) {
|
|
289
|
+
.searchcraft-popover-form-modal .searchcraft-popover-list-view {
|
|
290
|
+
max-height: var(--sc-popover-list-view-height);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
.searchcraft-popover-form-modal searchcraft-popover-list-view {
|
|
294
|
+
overflow: scroll;
|
|
295
|
+
}
|
|
296
|
+
@media (min-width: 576px) {
|
|
297
|
+
.searchcraft-popover-form-modal searchcraft-popover-list-view {
|
|
298
|
+
overflow: auto;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Styles applied to `fullscreen` popover forms.
|
|
304
|
+
*/
|
|
305
|
+
.searchcraft-popover-form-fullscreen {
|
|
306
|
+
position: fixed;
|
|
307
|
+
inset: 0;
|
|
308
|
+
z-index: 1000;
|
|
309
|
+
background-color: var(--sc-surface-neutral-secondary);
|
|
310
|
+
}
|
|
311
|
+
.searchcraft-popover-form-fullscreen .searchcraft-popover-form {
|
|
312
|
+
position: absolute;
|
|
313
|
+
inset: 0;
|
|
314
|
+
}
|
|
315
|
+
.searchcraft-popover-form-fullscreen .searchcraft-input {
|
|
316
|
+
border-radius: calc(var(--sc-popover-form-border-radius) * 0.8);
|
|
317
|
+
outline-width: 1px;
|
|
318
|
+
outline-color: var(--sc-border-neutral);
|
|
319
|
+
}
|
|
320
|
+
.searchcraft-popover-form-fullscreen searchcraft-popover-list-view {
|
|
321
|
+
overflow: scroll;
|
|
322
|
+
}
|
package/dist/collection/components/searchcraft-popover-list-item/searchcraft-popover-list-item.js
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* A single list item rendered in a searchcraft-popover-list-view.
|
|
4
|
+
*/
|
|
5
|
+
export class SearchcraftPopoverListItem {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.titleContent = undefined;
|
|
8
|
+
this.subtitleContent = undefined;
|
|
9
|
+
this.imageSrc = undefined;
|
|
10
|
+
this.imageAlt = undefined;
|
|
11
|
+
this.href = undefined;
|
|
12
|
+
this.documentPosition = undefined;
|
|
13
|
+
}
|
|
14
|
+
componentDidLoad() { }
|
|
15
|
+
connectedCallback() { }
|
|
16
|
+
disconnectedCallback() { }
|
|
17
|
+
handleButtonClick() { }
|
|
18
|
+
render() {
|
|
19
|
+
return (h("a", { key: 'b7a590e92994869477825dd17545e8d4e05d1d07', class: 'searchcraft-popover-list-item', href: this.href }, this.imageSrc && (h("div", { key: '129525e50ec17dce052f503af318b56e06c900ef', class: 'searchcraft-popover-list-item-image-wrapper' }, h("img", { key: '4ba701f35cbf7e167e7edd63ba19e3576e620c26', alt: this.imageAlt, src: this.imageSrc, class: 'searchcraft-popover-list-item-image' }))), h("div", { key: '6a6ab09451f5d9d4e554dc1f1fcd57ec13adf2f2', class: 'searchcraft-popover-list-item-info-wrapper' }, h("p", { key: '476fdefff6cb35167fb00f24cdf03b9f8d826ba5', class: 'searchcraft-popover-list-item-title' }, this.titleContent), h("p", { key: 'b43fd584bfcc8efc7d50d7220b649fafc8bba244', class: 'searchcraft-popover-list-item-subtitle' }, this.subtitleContent))));
|
|
20
|
+
}
|
|
21
|
+
static get is() { return "searchcraft-popover-list-item"; }
|
|
22
|
+
static get originalStyleUrls() {
|
|
23
|
+
return {
|
|
24
|
+
"$": ["searchcraft-popover-list-item.module.scss"]
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
static get styleUrls() {
|
|
28
|
+
return {
|
|
29
|
+
"$": ["searchcraft-popover-list-item.module.css"]
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
static get properties() {
|
|
33
|
+
return {
|
|
34
|
+
"titleContent": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"mutable": false,
|
|
37
|
+
"complexType": {
|
|
38
|
+
"original": "string | undefined",
|
|
39
|
+
"resolved": "string",
|
|
40
|
+
"references": {}
|
|
41
|
+
},
|
|
42
|
+
"required": false,
|
|
43
|
+
"optional": false,
|
|
44
|
+
"docs": {
|
|
45
|
+
"tags": [],
|
|
46
|
+
"text": "The result title"
|
|
47
|
+
},
|
|
48
|
+
"attribute": "title-content",
|
|
49
|
+
"reflect": false
|
|
50
|
+
},
|
|
51
|
+
"subtitleContent": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"mutable": false,
|
|
54
|
+
"complexType": {
|
|
55
|
+
"original": "string | undefined",
|
|
56
|
+
"resolved": "string",
|
|
57
|
+
"references": {}
|
|
58
|
+
},
|
|
59
|
+
"required": false,
|
|
60
|
+
"optional": false,
|
|
61
|
+
"docs": {
|
|
62
|
+
"tags": [],
|
|
63
|
+
"text": "The result subtitle"
|
|
64
|
+
},
|
|
65
|
+
"attribute": "subtitle-content",
|
|
66
|
+
"reflect": false
|
|
67
|
+
},
|
|
68
|
+
"imageSrc": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"mutable": false,
|
|
71
|
+
"complexType": {
|
|
72
|
+
"original": "string | undefined",
|
|
73
|
+
"resolved": "string",
|
|
74
|
+
"references": {}
|
|
75
|
+
},
|
|
76
|
+
"required": false,
|
|
77
|
+
"optional": false,
|
|
78
|
+
"docs": {
|
|
79
|
+
"tags": [],
|
|
80
|
+
"text": "The source of the image. If not included, no item will be rendered."
|
|
81
|
+
},
|
|
82
|
+
"attribute": "image-src",
|
|
83
|
+
"reflect": false
|
|
84
|
+
},
|
|
85
|
+
"imageAlt": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"mutable": false,
|
|
88
|
+
"complexType": {
|
|
89
|
+
"original": "string | undefined",
|
|
90
|
+
"resolved": "string",
|
|
91
|
+
"references": {}
|
|
92
|
+
},
|
|
93
|
+
"required": false,
|
|
94
|
+
"optional": false,
|
|
95
|
+
"docs": {
|
|
96
|
+
"tags": [],
|
|
97
|
+
"text": "The image alt tag."
|
|
98
|
+
},
|
|
99
|
+
"attribute": "image-alt",
|
|
100
|
+
"reflect": false
|
|
101
|
+
},
|
|
102
|
+
"href": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"mutable": false,
|
|
105
|
+
"complexType": {
|
|
106
|
+
"original": "string | undefined",
|
|
107
|
+
"resolved": "string",
|
|
108
|
+
"references": {}
|
|
109
|
+
},
|
|
110
|
+
"required": false,
|
|
111
|
+
"optional": false,
|
|
112
|
+
"docs": {
|
|
113
|
+
"tags": [],
|
|
114
|
+
"text": "The link href"
|
|
115
|
+
},
|
|
116
|
+
"attribute": "href",
|
|
117
|
+
"reflect": false
|
|
118
|
+
},
|
|
119
|
+
"documentPosition": {
|
|
120
|
+
"type": "number",
|
|
121
|
+
"mutable": false,
|
|
122
|
+
"complexType": {
|
|
123
|
+
"original": "number",
|
|
124
|
+
"resolved": "number",
|
|
125
|
+
"references": {}
|
|
126
|
+
},
|
|
127
|
+
"required": false,
|
|
128
|
+
"optional": false,
|
|
129
|
+
"docs": {
|
|
130
|
+
"tags": [],
|
|
131
|
+
"text": "The document position relative to the search results (For Measure)"
|
|
132
|
+
},
|
|
133
|
+
"attribute": "document-position",
|
|
134
|
+
"reflect": false
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
//# sourceMappingURL=searchcraft-popover-list-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchcraft-popover-list-item.js","sourceRoot":"","sources":["../../../../src/components/searchcraft-popover-list-item/searchcraft-popover-list-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD;;GAEG;AAMH,MAAM,OAAO,0BAA0B;;;;;;;;;IAcrC,gBAAgB,KAAI,CAAC;IAErB,iBAAiB,KAAI,CAAC;IAEtB,oBAAoB,KAAI,CAAC;IAEzB,iBAAiB,KAAI,CAAC;IAEtB,MAAM;QACJ,OAAO,CACL,0DAAG,KAAK,EAAC,+BAA+B,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI;YACrD,IAAI,CAAC,QAAQ,IAAI,CAChB,4DAAK,KAAK,EAAC,6CAA6C;gBACtD,4DACE,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,KAAK,EAAC,qCAAqC,GAC3C,CACE,CACP;YACD,4DAAK,KAAK,EAAC,4CAA4C;gBACrD,0DAAG,KAAK,EAAC,qCAAqC,IAAE,IAAI,CAAC,YAAY,CAAK;gBACtE,0DAAG,KAAK,EAAC,wCAAwC,IAC9C,IAAI,CAAC,eAAe,CACnB,CACA,CACJ,CACL,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop } from '@stencil/core';\n\n/**\n * A single list item rendered in a searchcraft-popover-list-view.\n */\n@Component({\n tag: 'searchcraft-popover-list-item',\n styleUrl: 'searchcraft-popover-list-item.module.scss',\n shadow: false,\n})\nexport class SearchcraftPopoverListItem {\n /** The result title */\n @Prop() titleContent: string | undefined;\n /** The result subtitle */\n @Prop() subtitleContent: string | undefined;\n /** The source of the image. If not included, no item will be rendered. */\n @Prop() imageSrc: string | undefined;\n /** The image alt tag. */\n @Prop() imageAlt: string | undefined;\n /** The link href */\n @Prop() href: string | undefined;\n /** The document position relative to the search results (For Measure) */\n @Prop() documentPosition: number;\n\n componentDidLoad() {}\n\n connectedCallback() {}\n\n disconnectedCallback() {}\n\n handleButtonClick() {}\n\n render() {\n return (\n <a class='searchcraft-popover-list-item' href={this.href}>\n {this.imageSrc && (\n <div class='searchcraft-popover-list-item-image-wrapper'>\n <img\n alt={this.imageAlt}\n src={this.imageSrc}\n class='searchcraft-popover-list-item-image'\n />\n </div>\n )}\n <div class='searchcraft-popover-list-item-info-wrapper'>\n <p class='searchcraft-popover-list-item-title'>{this.titleContent}</p>\n <p class='searchcraft-popover-list-item-subtitle'>\n {this.subtitleContent}\n </p>\n </div>\n </a>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/** Appearance & Layout */
|
|
2
|
+
:root {
|
|
3
|
+
/**
|
|
4
|
+
* Border radius of the input form element.
|
|
5
|
+
*/
|
|
6
|
+
--sc-input-border-radius: 8px;
|
|
7
|
+
/**
|
|
8
|
+
* Icon size of the "magnifying glass" icon rendered in the input form.
|
|
9
|
+
*/
|
|
10
|
+
--sc-input-search-icon-size: 20px;
|
|
11
|
+
/**
|
|
12
|
+
* Icon size of the `x` button rendered in the input form.
|
|
13
|
+
*/
|
|
14
|
+
--sc-input-clear-icon-size: 20px;
|
|
15
|
+
/**
|
|
16
|
+
* Padding on the left side of the input form.
|
|
17
|
+
*/
|
|
18
|
+
--sc-input-padding-left: 44px;
|
|
19
|
+
/**
|
|
20
|
+
* Padding on the right side of the input form.
|
|
21
|
+
*/
|
|
22
|
+
--sc-input-padding-right: 44px;
|
|
23
|
+
/**
|
|
24
|
+
* Border radius applied to result images.
|
|
25
|
+
*/
|
|
26
|
+
--sc-image-border-radius: 8px;
|
|
27
|
+
/**
|
|
28
|
+
* Border radius applied to popover form containers.
|
|
29
|
+
*/
|
|
30
|
+
--sc-popover-form-border-radius: 8px;
|
|
31
|
+
/**
|
|
32
|
+
* Height of the list view/results container portion of the popover form.
|
|
33
|
+
*/
|
|
34
|
+
--sc-popover-list-view-height: 400px;
|
|
35
|
+
/**
|
|
36
|
+
* Size of images of list view items in the popoer list view.
|
|
37
|
+
*/
|
|
38
|
+
--sc-popover-list-item-image-size: 60px;
|
|
39
|
+
/**
|
|
40
|
+
* Horizontal padding of popover list items.
|
|
41
|
+
*/
|
|
42
|
+
--sc-popover-list-item-padding-horizontal: 8px;
|
|
43
|
+
/**
|
|
44
|
+
* Vertical padding of popover list items.
|
|
45
|
+
*/
|
|
46
|
+
--sc-popover-list-item-padding-vertical: 8px;
|
|
47
|
+
/**
|
|
48
|
+
* Maximum width of popover forms of type `modal`.
|
|
49
|
+
*/
|
|
50
|
+
--sc-popover-modal-max-width: 570px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:root {
|
|
54
|
+
--sc-surface-disabled: #D9D9D9;
|
|
55
|
+
--sc-surface-neutral-primary: #FFFFFF;
|
|
56
|
+
--sc-surface-neutral-secondary: #F3F3F3;
|
|
57
|
+
--sc-surface-neutral-light: #FFFFFF;
|
|
58
|
+
--sc-surface-neutral-primary-hover: #FAFAFA;
|
|
59
|
+
--sc-surface-neutral-primary-active: #F7F7F7;
|
|
60
|
+
--sc-surface-neutral-secondary-hover: #EDEDED;
|
|
61
|
+
--sc-surface-neutral-secondary-active: #E6E6E6;
|
|
62
|
+
--sc-surface-brand-primary: #000000;
|
|
63
|
+
--sc-surface-brand-secondary: #E6E6E6;
|
|
64
|
+
--sc-surface-brand-primary-hover: #2E2E2E;
|
|
65
|
+
--sc-surface-brand-primary-active: #292929;
|
|
66
|
+
--sc-surface-brand-secondary-hover: #EBEBEB;
|
|
67
|
+
--sc-surface-brand-secondary-active: #E0E0E0;
|
|
68
|
+
--sc-surface-success-primary: #008000;
|
|
69
|
+
--sc-surface-success-secondary: #CCFFCC;
|
|
70
|
+
--sc-surface-success-primary-hover: #009900;
|
|
71
|
+
--sc-surface-success-primary-active: #006600;
|
|
72
|
+
--sc-surface-success-secondary-hover: #E6FFE6;
|
|
73
|
+
--sc-surface-success-secondary-active: #E6FFE6;
|
|
74
|
+
--sc-surface-caution-primary: #CC6600;
|
|
75
|
+
--sc-surface-caution-secondary: #FFD9B3;
|
|
76
|
+
--sc-surface-caution-primary-hover: #E57300;
|
|
77
|
+
--sc-surface-caution-primary-active: #B25A00;
|
|
78
|
+
--sc-surface-caution-secondary-hover: #FFE5CC;
|
|
79
|
+
--sc-surface-caution-secondary-active: #FFCC99;
|
|
80
|
+
--sc-surface-danger-primary: #CC0000;
|
|
81
|
+
--sc-surface-danger-secondary: #FFCCCC;
|
|
82
|
+
--sc-surface-danger-primary-hover: #E50000;
|
|
83
|
+
--sc-surface-danger-primary-active: #B30000;
|
|
84
|
+
--sc-surface-danger-secondary-hover: #FFE7E7;
|
|
85
|
+
--sc-surface-danger-secondary-active: #FFB3B3;
|
|
86
|
+
--sc-content-brand: #000000;
|
|
87
|
+
--sc-content-success: #008000;
|
|
88
|
+
--sc-content-caution: #994D00;
|
|
89
|
+
--sc-content-danger: #990000;
|
|
90
|
+
--sc-content-disabled: #737373;
|
|
91
|
+
--sc-content-neutral-primary: #292929;
|
|
92
|
+
--sc-content-neutral-secondary: #404040;
|
|
93
|
+
--sc-content-brand-on-primary: #FFFFFF;
|
|
94
|
+
--sc-content-success-on-primary: #FFFFFF;
|
|
95
|
+
--sc-content-caution-on-primary: #FFFFFF;
|
|
96
|
+
--sc-content-danger-on-primary: #FFFFFF;
|
|
97
|
+
--sc-content-disabled-on-disabled: #737373;
|
|
98
|
+
--sc-border-neutral: rgba(0,0,0, 0.1);
|
|
99
|
+
--sc-border-brand: #000000;
|
|
100
|
+
--sc-border-success: #008000;
|
|
101
|
+
--sc-border-caution: #CC6600;
|
|
102
|
+
--sc-border-danger: #CC0000;
|
|
103
|
+
--sc-border-disabled: #737373;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:root {
|
|
107
|
+
/** Typography */
|
|
108
|
+
--sc-font-family: sans-serif;
|
|
109
|
+
--sc-heading-1-font-size: 32px;
|
|
110
|
+
--sc-heading-1-line-height: 36px;
|
|
111
|
+
--sc-heading-1-font-weight: 700;
|
|
112
|
+
--sc-heading-2-font-size: 29px;
|
|
113
|
+
--sc-heading-2-line-height: 32px;
|
|
114
|
+
--sc-heading-2-font-weight: 700;
|
|
115
|
+
--sc-heading-3-font-size: 26px;
|
|
116
|
+
--sc-heading-3-line-height: 28px;
|
|
117
|
+
--sc-heading-3-font-weight: 700;
|
|
118
|
+
--sc-heading-4-font-size: 23px;
|
|
119
|
+
--sc-heading-4-line-height: 24px;
|
|
120
|
+
--sc-heading-4-font-weight: 700;
|
|
121
|
+
--sc-heading-5-font-size: 20px;
|
|
122
|
+
--sc-heading-5-line-height: 24px;
|
|
123
|
+
--sc-heading-5-font-weight: 700;
|
|
124
|
+
--sc-heading-6-font-size: 10px;
|
|
125
|
+
--sc-heading-6-line-height: 12px;
|
|
126
|
+
--sc-heading-6-font-weight: 700;
|
|
127
|
+
--sc-body-bold-font-size: 16px;
|
|
128
|
+
--sc-body-bold-line-height: 20px;
|
|
129
|
+
--sc-body-bold-font-weight: 700;
|
|
130
|
+
--sc-body-font-size: 16px;
|
|
131
|
+
--sc-body-line-height: 20px;
|
|
132
|
+
--sc-body-font-weight:400;
|
|
133
|
+
--sc-body-small-bold-font-size: 12px;
|
|
134
|
+
--sc-body-small-bold-line-height: 16px;
|
|
135
|
+
--sc-body-small-bold-font-weight: 700;
|
|
136
|
+
--sc-body-small-font-size: 12px;
|
|
137
|
+
--sc-body-small-line-height: 16px;
|
|
138
|
+
--sc-body-small-font-weight: 400;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Variables that need to be part of the preprocessor can go here.
|
|
143
|
+
*/
|
|
144
|
+
:root {
|
|
145
|
+
--sc-breakpoint-sm: 576px;
|
|
146
|
+
--sc-breakpoint-md: 768px;
|
|
147
|
+
--sc-breakpoint-lg: 992px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.searchcraft-popover-list-item {
|
|
151
|
+
all: unset;
|
|
152
|
+
display: flex;
|
|
153
|
+
flex-direction: row;
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
gap: 8px;
|
|
156
|
+
padding-right: var(--sc-popover-list-item-padding-horizontal);
|
|
157
|
+
padding-left: var(--sc-popover-list-item-padding-horizontal);
|
|
158
|
+
padding-top: var(--sc-popover-list-item-padding-vertical);
|
|
159
|
+
padding-bottom: var(--sc-popover-list-item-padding-vertical);
|
|
160
|
+
}
|
|
161
|
+
.searchcraft-popover-list-item:focus {
|
|
162
|
+
background-color: var(--sc-surface-neutral-secondary-active);
|
|
163
|
+
color: var(--sc-content-neutral-secondary);
|
|
164
|
+
}
|
|
165
|
+
.searchcraft-popover-list-item:hover {
|
|
166
|
+
background-color: var(--sc-surface-neutral-secondary-hover);
|
|
167
|
+
color: var(--sc-content-neutral-secondary);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.searchcraft-popover-list-item-title {
|
|
171
|
+
font-family: var(--sc-font-family);
|
|
172
|
+
-webkit-font-smoothing: antialiased;
|
|
173
|
+
font-size: var(--sc-body-font-size);
|
|
174
|
+
font-weight: var(--sc-body-font-weight);
|
|
175
|
+
line-height: var(--sc-body-line-height);
|
|
176
|
+
margin: 0;
|
|
177
|
+
color: inherit;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.searchcraft-popover-list-item-subtitle {
|
|
181
|
+
font-family: var(--sc-font-family);
|
|
182
|
+
-webkit-font-smoothing: antialiased;
|
|
183
|
+
font-size: var(--sc-body-small-font-size);
|
|
184
|
+
font-weight: var(--sc-body-small-font-weight);
|
|
185
|
+
line-height: var(--sc-body-small-line-height);
|
|
186
|
+
margin: 0;
|
|
187
|
+
color: inherit;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.searchcraft-popover-list-item-image-wrapper {
|
|
191
|
+
width: var(--sc-popover-list-item-image-size);
|
|
192
|
+
height: var(--sc-popover-list-item-image-size);
|
|
193
|
+
display: flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
justify-content: center;
|
|
196
|
+
flex-shrink: 0;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.searchcraft-popover-list-item-image {
|
|
200
|
+
max-width: var(--sc-popover-list-item-image-size);
|
|
201
|
+
max-height: var(--sc-popover-list-item-image-size);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.searchcraft-popover-list-item-info-wrapper {
|
|
205
|
+
display: flex;
|
|
206
|
+
flex-direction: column;
|
|
207
|
+
gap: 8px;
|
|
208
|
+
justify-content: center;
|
|
209
|
+
}
|