@searchcraft/javascript-sdk 0.3.0 → 0.4.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/README.md +198 -0
- package/dist/cjs/{index-6c5282a0.js → index-c8a8e492.js} +317 -10
- package/dist/cjs/index-c8a8e492.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -5
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/package-ccc7e307.js +68 -0
- package/dist/cjs/package-ccc7e307.js.map +1 -0
- package/dist/cjs/searchcraft-auto-search-form.cjs.entry.js +160 -0
- package/dist/cjs/searchcraft-auto-search-form.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-base-search-form.cjs.entry.js +13 -8
- package/dist/cjs/searchcraft-base-search-form.cjs.entry.js.map +1 -1
- package/dist/cjs/searchcraft-base-search-result.cjs.entry.js +74 -0
- package/dist/cjs/searchcraft-base-search-result.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-base-search-results.cjs.entry.js +129 -0
- package/dist/cjs/searchcraft-base-search-results.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-button-icon.cjs.entry.js +1 -1
- package/dist/cjs/searchcraft-button.cjs.entry.js +4 -9
- package/dist/cjs/searchcraft-button.cjs.entry.js.map +1 -1
- package/dist/cjs/searchcraft-check-icon_2.cjs.entry.js +28 -0
- package/dist/cjs/searchcraft-check-icon_2.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-clear-icon-set.cjs.entry.js +30 -0
- package/dist/cjs/searchcraft-clear-icon-set.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-error-message_3.cjs.entry.js +95 -0
- package/dist/cjs/searchcraft-error-message_3.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-facet-list_3.cjs.entry.js +183 -0
- package/dist/cjs/searchcraft-facet-list_3.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-filter-panel.cjs.entry.js +134 -0
- package/dist/cjs/searchcraft-filter-panel.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-javascript-sdk.cjs.js +2 -2
- package/dist/cjs/searchcraft-results-info.cjs.entry.js +46 -0
- package/dist/cjs/searchcraft-results-info.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-search-icon-set.cjs.entry.js +33 -0
- package/dist/cjs/searchcraft-search-icon-set.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-spinner-dark.cjs.entry.js +22 -0
- package/dist/cjs/searchcraft-spinner-dark.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-spinner-light.cjs.entry.js +22 -0
- package/dist/cjs/searchcraft-spinner-light.cjs.entry.js.map +1 -0
- package/dist/cjs/store-72205332.js +945 -0
- package/dist/cjs/store-72205332.js.map +1 -0
- package/dist/cjs/utils-4ee2b88d.js +169 -0
- package/dist/cjs/utils-4ee2b88d.js.map +1 -0
- package/dist/collection/assets/searchcraft-button-icons.js.map +1 -1
- package/dist/collection/assets/searchcraft-check-icon.js.map +1 -1
- package/dist/collection/assets/searchcraft-clear-icon-set.js.map +1 -1
- package/dist/collection/assets/searchcraft-dash-icon.js.map +1 -1
- package/dist/collection/assets/searchcraft-search-icon-set.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -4
- package/dist/collection/components/searchcraft-auto-search-form/searchcraft-auto-search-form.js +68 -94
- package/dist/collection/components/searchcraft-auto-search-form/searchcraft-auto-search-form.js.map +1 -1
- package/dist/collection/components/searchcraft-auto-search-form/searchcraft-auto-search-form.module.css +98 -9
- package/dist/collection/components/searchcraft-base-search-form/searchcraft-base-search-form.js +42 -20
- package/dist/collection/components/searchcraft-base-search-form/searchcraft-base-search-form.js.map +1 -1
- package/dist/collection/components/searchcraft-base-search-form/searchcraft-base-search-form.module.css +94 -8
- package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.js +158 -136
- 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 +142 -189
- package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js +172 -83
- 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 +105 -23
- package/dist/collection/components/searchcraft-button/searchcraft-button.js +3 -10
- package/dist/collection/components/searchcraft-button/searchcraft-button.js.map +1 -1
- package/dist/collection/components/searchcraft-button/searchcraft-button.module.css +107 -65
- package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.js +2 -24
- 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 +101 -15
- package/dist/collection/components/searchcraft-facet-list/searchcraft-facet-list.js +140 -0
- package/dist/collection/components/searchcraft-facet-list/searchcraft-facet-list.js.map +1 -0
- package/dist/collection/components/searchcraft-facet-list/searchcraft-facet-list.module.css +216 -0
- package/dist/collection/components/searchcraft-filter-panel/searchcraft-filter-panel.js +166 -0
- package/dist/collection/components/searchcraft-filter-panel/searchcraft-filter-panel.js.map +1 -0
- package/dist/collection/components/searchcraft-filter-panel/searchcraft-filter-panel.module.css +118 -0
- package/dist/collection/components/searchcraft-input/searchcraft-input.js +43 -133
- package/dist/collection/components/searchcraft-input/searchcraft-input.js.map +1 -1
- package/dist/collection/components/searchcraft-input/searchcraft-input.module.css +162 -221
- package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.js +1 -13
- 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 +102 -14
- package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.js +4 -3
- 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 +111 -7
- package/dist/collection/components/searchcraft-slider/searchcraft-slider.js +101 -58
- package/dist/collection/components/searchcraft-slider/searchcraft-slider.js.map +1 -1
- package/dist/collection/components/searchcraft-slider/searchcraft-slider.module.css +136 -23
- package/dist/collection/components/searchcraft-spinner-dark/searchcraft-spinner-dark.js +1 -1
- package/dist/collection/components/searchcraft-spinner-dark/searchcraft-spinner-dark.js.map +1 -1
- package/dist/collection/components/searchcraft-spinner-dark/searchcraft-spinner-dark.module.css +103 -4
- package/dist/collection/components/searchcraft-spinner-light/searchcraft-spinner-light.js +1 -1
- package/dist/collection/components/searchcraft-spinner-light/searchcraft-spinner-light.js.map +1 -1
- package/dist/collection/components/searchcraft-spinner-light/searchcraft-spinner-light.module.css +102 -3
- package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.js +51 -64
- 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 +135 -9
- package/dist/collection/index.js +2 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/provider/store.js +46 -31
- package/dist/collection/provider/store.js.map +1 -1
- package/dist/collection/types/index.js +3 -0
- package/dist/collection/types/index.js.map +1 -0
- package/dist/collection/types/searchcraft-base-search-results.types.js +2 -0
- package/dist/collection/types/searchcraft-base-search-results.types.js.map +1 -0
- package/dist/collection/types/searchcraft-filter-panel.types.js +2 -0
- package/dist/collection/types/searchcraft-filter-panel.types.js.map +1 -0
- package/dist/collection/utils/utils.js +117 -35
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/index.js +7 -11
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-d3187f5a.js → p-04d13314.js} +2 -2
- package/dist/components/{p-d3187f5a.js.map → p-04d13314.js.map} +1 -1
- package/dist/components/p-0deddac7.js +161 -0
- package/dist/components/p-0deddac7.js.map +1 -0
- package/dist/components/p-37f54c0b.js +54 -0
- package/dist/components/p-37f54c0b.js.map +1 -0
- package/dist/components/{p-7498e493.js → p-5639be85.js} +311 -10
- package/dist/components/p-5639be85.js.map +1 -0
- package/dist/components/p-68897c11.js +124 -0
- package/dist/components/p-68897c11.js.map +1 -0
- package/dist/components/p-69eed21e.js +66 -0
- package/dist/components/p-69eed21e.js.map +1 -0
- package/dist/components/p-8062f0ea.js +82 -0
- package/dist/components/p-8062f0ea.js.map +1 -0
- package/dist/components/p-9f2b8375.js +33 -0
- package/dist/components/p-9f2b8375.js.map +1 -0
- package/dist/components/p-ace4e6a0.js +35 -0
- package/dist/components/p-ace4e6a0.js.map +1 -0
- package/dist/components/p-b1a59f07.js +101 -0
- package/dist/components/p-b1a59f07.js.map +1 -0
- package/dist/components/p-be63dcac.js +941 -0
- package/dist/components/p-be63dcac.js.map +1 -0
- package/dist/components/p-c8bc1e4f.js +40 -0
- package/dist/components/p-c8bc1e4f.js.map +1 -0
- package/dist/components/{p-e5471fcf.js → p-de50441f.js} +2 -2
- package/dist/components/{p-e5471fcf.js.map → p-de50441f.js.map} +1 -1
- package/dist/components/p-e3c8b1ef.js +91 -0
- package/dist/components/p-e3c8b1ef.js.map +1 -0
- package/dist/components/p-ebf021b5.js +49 -0
- package/dist/components/p-ebf021b5.js.map +1 -0
- package/dist/components/searchcraft-auto-search-form.js +70 -84
- package/dist/components/searchcraft-auto-search-form.js.map +1 -1
- package/dist/components/searchcraft-base-search-form.js +27 -58
- package/dist/components/searchcraft-base-search-form.js.map +1 -1
- package/dist/components/searchcraft-base-search-result.js +1 -1
- package/dist/components/searchcraft-base-search-results.js +81 -53
- package/dist/components/searchcraft-base-search-results.js.map +1 -1
- package/dist/components/searchcraft-button-icon.js +1 -1
- package/dist/components/searchcraft-button.js +1 -1
- package/dist/components/searchcraft-check-icon.js +1 -1
- package/dist/components/searchcraft-clear-icon-set.js +39 -1
- package/dist/components/searchcraft-clear-icon-set.js.map +1 -1
- package/dist/components/searchcraft-dash-icon.js +1 -1
- package/dist/components/searchcraft-error-message.js +1 -1
- package/dist/components/searchcraft-facet-list.d.ts +11 -0
- package/dist/components/searchcraft-facet-list.js +8 -0
- package/dist/components/searchcraft-facet-list.js.map +1 -0
- package/dist/components/searchcraft-filter-panel.d.ts +11 -0
- package/dist/components/searchcraft-filter-panel.js +184 -0
- package/dist/components/searchcraft-filter-panel.js.map +1 -0
- package/dist/components/searchcraft-input-label.js +1 -1
- package/dist/components/searchcraft-input.js +1 -1
- package/dist/components/searchcraft-results-info.js +8 -7
- package/dist/components/searchcraft-results-info.js.map +1 -1
- package/dist/components/searchcraft-search-icon-set.js +44 -1
- package/dist/components/searchcraft-search-icon-set.js.map +1 -1
- package/dist/components/searchcraft-slider.js +1 -95
- package/dist/components/searchcraft-slider.js.map +1 -1
- package/dist/components/searchcraft-spinner-dark.js +1 -1
- package/dist/components/searchcraft-spinner-light.js +29 -1
- package/dist/components/searchcraft-spinner-light.js.map +1 -1
- package/dist/components/searchcraft-toggle-button.js +1 -91
- package/dist/components/searchcraft-toggle-button.js.map +1 -1
- package/dist/esm/{index-0ac5bb53.js → index-88dc5f88.js} +317 -10
- package/dist/esm/index-88dc5f88.js.map +1 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/package-ee16f835.js +66 -0
- package/dist/esm/package-ee16f835.js.map +1 -0
- package/dist/esm/searchcraft-auto-search-form.entry.js +156 -0
- package/dist/esm/searchcraft-auto-search-form.entry.js.map +1 -0
- package/dist/esm/searchcraft-base-search-form.entry.js +13 -8
- package/dist/esm/searchcraft-base-search-form.entry.js.map +1 -1
- package/dist/esm/searchcraft-base-search-result.entry.js +70 -0
- package/dist/esm/searchcraft-base-search-result.entry.js.map +1 -0
- package/dist/esm/searchcraft-base-search-results.entry.js +125 -0
- package/dist/esm/searchcraft-base-search-results.entry.js.map +1 -0
- package/dist/esm/searchcraft-button-icon.entry.js +1 -1
- package/dist/esm/searchcraft-button.entry.js +4 -9
- package/dist/esm/searchcraft-button.entry.js.map +1 -1
- package/dist/esm/searchcraft-check-icon_2.entry.js +23 -0
- package/dist/esm/searchcraft-check-icon_2.entry.js.map +1 -0
- package/dist/{components/p-70722ab2.js → esm/searchcraft-clear-icon-set.entry.js} +7 -24
- package/dist/esm/searchcraft-clear-icon-set.entry.js.map +1 -0
- package/dist/esm/searchcraft-error-message_3.entry.js +89 -0
- package/dist/esm/searchcraft-error-message_3.entry.js.map +1 -0
- package/dist/esm/searchcraft-facet-list_3.entry.js +177 -0
- package/dist/esm/searchcraft-facet-list_3.entry.js.map +1 -0
- package/dist/esm/searchcraft-filter-panel.entry.js +130 -0
- package/dist/esm/searchcraft-filter-panel.entry.js.map +1 -0
- package/dist/esm/searchcraft-javascript-sdk.js +3 -3
- package/dist/esm/searchcraft-results-info.entry.js +42 -0
- package/dist/esm/searchcraft-results-info.entry.js.map +1 -0
- package/dist/{components/p-a3bd1bc8.js → esm/searchcraft-search-icon-set.entry.js} +7 -26
- package/dist/esm/searchcraft-search-icon-set.entry.js.map +1 -0
- package/dist/esm/searchcraft-spinner-dark.entry.js +18 -0
- package/dist/esm/searchcraft-spinner-dark.entry.js.map +1 -0
- package/dist/esm/searchcraft-spinner-light.entry.js +18 -0
- package/dist/esm/searchcraft-spinner-light.entry.js.map +1 -0
- package/dist/esm/store-52436995.js +941 -0
- package/dist/esm/store-52436995.js.map +1 -0
- package/dist/esm/utils-89a02921.js +161 -0
- package/dist/esm/utils-89a02921.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/index.esm.js +1 -1
- package/dist/searchcraft-javascript-sdk/p-08bd95f1.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-08bd95f1.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-0deddac7.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-0deddac7.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-15f9891d.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-15f9891d.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-2419a8c5.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-2419a8c5.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-343adbe3.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-343adbe3.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-3a2d9be9.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-3a2d9be9.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-4278ff89.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-4278ff89.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-4c32c87d.js +3 -0
- package/dist/searchcraft-javascript-sdk/p-4c32c87d.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-56413bef.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-56413bef.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-69eed21e.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-69eed21e.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/{p-5ec960bd.entry.js → p-69f64bdd.entry.js} +2 -2
- package/dist/searchcraft-javascript-sdk/p-7c59b3cd.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-7c59b3cd.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-93e9de71.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-93e9de71.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-9647ae41.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-9647ae41.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-a613a6ba.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-a613a6ba.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-acc645c7.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-acc645c7.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-bb03e946.js +11 -0
- package/dist/searchcraft-javascript-sdk/p-bb03e946.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-bf80bbee.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-bf80bbee.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-f4612b94.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-f4612b94.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-auto-search-form/searchcraft-auto-search-form.d.ts +7 -7
- package/dist/types/components/searchcraft-base-search-form/searchcraft-base-search-form.d.ts +5 -4
- package/dist/types/components/searchcraft-base-search-result/searchcraft-base-search-result.d.ts +18 -17
- package/dist/types/components/searchcraft-base-search-results/searchcraft-base-search-results.d.ts +17 -5
- package/dist/types/components/searchcraft-button/searchcraft-button.d.ts +0 -2
- package/dist/types/components/searchcraft-error-message/searchcraft-error-message.d.ts +0 -7
- package/dist/types/components/searchcraft-facet-list/searchcraft-facet-list.d.ts +21 -0
- package/dist/types/components/searchcraft-filter-panel/searchcraft-filter-panel.d.ts +25 -0
- package/dist/types/components/searchcraft-input/searchcraft-input.d.ts +5 -11
- package/dist/types/components/searchcraft-input-label/searchcraft-input-label.d.ts +0 -2
- package/dist/types/components/searchcraft-slider/searchcraft-slider.d.ts +14 -10
- package/dist/types/components/searchcraft-toggle-button/searchcraft-toggle-button.d.ts +4 -9
- package/dist/types/components.d.ts +157 -193
- package/dist/types/index.d.ts +2 -1
- package/dist/types/provider/store.d.ts +16 -9
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/searchcraft-base-search-results.types.d.ts +17 -0
- package/dist/types/types/searchcraft-filter-panel.types.d.ts +42 -0
- package/dist/types/utils/utils.d.ts +24 -15
- package/package.json +2 -2
- package/dist/cjs/index-6c5282a0.js.map +0 -1
- package/dist/cjs/searchcraft-auto-search-form_19.cjs.entry.js +0 -861
- package/dist/cjs/searchcraft-auto-search-form_19.cjs.entry.js.map +0 -1
- package/dist/cjs/store-f3bec622.js +0 -406
- package/dist/cjs/store-f3bec622.js.map +0 -1
- package/dist/collection/components/searchcraft-clear-input-button/searchcraft-clear-input-button.js +0 -95
- package/dist/collection/components/searchcraft-clear-input-button/searchcraft-clear-input-button.js.map +0 -1
- package/dist/collection/components/searchcraft-clear-input-button/searchcraft-clear-input-button.module.css +0 -33
- package/dist/collection/components/searchcraft-filters-list/searchcraft-filters-list.js +0 -172
- package/dist/collection/components/searchcraft-filters-list/searchcraft-filters-list.js.map +0 -1
- package/dist/collection/components/searchcraft-filters-list/searchcraft-filters-list.module.css +0 -110
- package/dist/collection/components/searchcraft-input-caption/searchcraft-input-caption.js +0 -122
- package/dist/collection/components/searchcraft-input-caption/searchcraft-input-caption.js.map +0 -1
- package/dist/collection/components/searchcraft-input-caption/searchcraft-input-caption.module.css +0 -79
- package/dist/collection/components/searchcraft-input-icon/searchcraft-input-icon.js +0 -109
- package/dist/collection/components/searchcraft-input-icon/searchcraft-input-icon.js.map +0 -1
- package/dist/collection/components/searchcraft-input-icon/searchcraft-input-icon.module.css +0 -17
- package/dist/components/p-07edaa9b.js +0 -67
- package/dist/components/p-07edaa9b.js.map +0 -1
- package/dist/components/p-27a6ca57.js +0 -149
- package/dist/components/p-27a6ca57.js.map +0 -1
- package/dist/components/p-4468fba3.js +0 -61
- package/dist/components/p-4468fba3.js.map +0 -1
- package/dist/components/p-498c7ef9.js +0 -40
- package/dist/components/p-498c7ef9.js.map +0 -1
- package/dist/components/p-6237f03e.js +0 -60
- package/dist/components/p-6237f03e.js.map +0 -1
- package/dist/components/p-70722ab2.js.map +0 -1
- package/dist/components/p-7498e493.js.map +0 -1
- package/dist/components/p-7d1bcd2d.js +0 -88
- package/dist/components/p-7d1bcd2d.js.map +0 -1
- package/dist/components/p-8c38185e.js +0 -53
- package/dist/components/p-8c38185e.js.map +0 -1
- package/dist/components/p-a3bd1bc8.js.map +0 -1
- package/dist/components/p-ae84b899.js +0 -48
- package/dist/components/p-ae84b899.js.map +0 -1
- package/dist/components/p-bc3f9025.js +0 -33
- package/dist/components/p-bc3f9025.js.map +0 -1
- package/dist/components/p-bfb22305.js +0 -33
- package/dist/components/p-bfb22305.js.map +0 -1
- package/dist/components/p-c31274dd.js +0 -89
- package/dist/components/p-c31274dd.js.map +0 -1
- package/dist/components/p-ff049f0a.js +0 -313
- package/dist/components/p-ff049f0a.js.map +0 -1
- package/dist/components/searchcraft-clear-input-button.d.ts +0 -11
- package/dist/components/searchcraft-clear-input-button.js +0 -8
- package/dist/components/searchcraft-clear-input-button.js.map +0 -1
- package/dist/components/searchcraft-filters-list.d.ts +0 -11
- package/dist/components/searchcraft-filters-list.js +0 -155
- package/dist/components/searchcraft-filters-list.js.map +0 -1
- package/dist/components/searchcraft-input-caption.d.ts +0 -11
- package/dist/components/searchcraft-input-caption.js +0 -8
- package/dist/components/searchcraft-input-caption.js.map +0 -1
- package/dist/components/searchcraft-input-icon.d.ts +0 -11
- package/dist/components/searchcraft-input-icon.js +0 -8
- package/dist/components/searchcraft-input-icon.js.map +0 -1
- package/dist/esm/index-0ac5bb53.js.map +0 -1
- package/dist/esm/searchcraft-auto-search-form_19.entry.js +0 -839
- package/dist/esm/searchcraft-auto-search-form_19.entry.js.map +0 -1
- package/dist/esm/store-6af9ea01.js +0 -396
- package/dist/esm/store-6af9ea01.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-05416a3e.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-05416a3e.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-0880cfbb.js +0 -3
- package/dist/searchcraft-javascript-sdk/p-0880cfbb.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-1ab836bf.js +0 -11
- package/dist/searchcraft-javascript-sdk/p-1ab836bf.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-3cb77ee1.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-3cb77ee1.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-72382d90.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-72382d90.entry.js.map +0 -1
- package/dist/types/components/searchcraft-clear-input-button/searchcraft-clear-input-button.d.ts +0 -10
- package/dist/types/components/searchcraft-filters-list/searchcraft-filters-list.d.ts +0 -34
- package/dist/types/components/searchcraft-input-caption/searchcraft-input-caption.d.ts +0 -9
- package/dist/types/components/searchcraft-input-icon/searchcraft-input-icon.d.ts +0 -9
- package/readme.md +0 -11
- /package/dist/searchcraft-javascript-sdk/{p-5ec960bd.entry.js.map → p-69f64bdd.entry.js.map} +0 -0
|
@@ -1,249 +1,190 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
|
|
2
|
+
/** Appearance & Layout */
|
|
3
|
+
--sc-spinner-size: 20px;
|
|
4
|
+
--sc-input-border-radius: 8px;
|
|
5
|
+
--sc-input-search-icon-size: 20px;
|
|
6
|
+
--sc-input-clear-icon-size: 20px;
|
|
7
|
+
--sc-input-padding-left: 44px;
|
|
8
|
+
--sc-input-padding-right: 44px;
|
|
9
|
+
--sc-image-border-radius: 8px;
|
|
3
10
|
}
|
|
4
11
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
12
|
+
:root {
|
|
13
|
+
--sc-surface-disabled: #D9D9D9;
|
|
14
|
+
--sc-surface-neutral-primary: #FFFFFF;
|
|
15
|
+
--sc-surface-neutral-secondary: #F3F3F3;
|
|
16
|
+
--sc-surface-neutral-light: #FFFFFF;
|
|
17
|
+
--sc-surface-neutral-primary-hover: #FAFAFA;
|
|
18
|
+
--sc-surface-neutral-primary-active: #F7F7F7;
|
|
19
|
+
--sc-surface-neutral-secondary-hover: #EDEDED;
|
|
20
|
+
--sc-surface-neutral-secondary-active: #E6E6E6;
|
|
21
|
+
--sc-surface-brand-primary: #000000;
|
|
22
|
+
--sc-surface-brand-secondary: #E6E6E6;
|
|
23
|
+
--sc-surface-brand-primary-hover: #2E2E2E;
|
|
24
|
+
--sc-surface-brand-primary-active: #292929;
|
|
25
|
+
--sc-surface-brand-secondary-hover: #EBEBEB;
|
|
26
|
+
--sc-surface-brand-secondary-active: #E0E0E0;
|
|
27
|
+
--sc-surface-success-primary: #008000;
|
|
28
|
+
--sc-surface-success-secondary: #CCFFCC;
|
|
29
|
+
--sc-surface-success-primary-hover: #009900;
|
|
30
|
+
--sc-surface-success-primary-active: #006600;
|
|
31
|
+
--sc-surface-success-secondary-hover: #E6FFE6;
|
|
32
|
+
--sc-surface-success-secondary-active: #E6FFE6;
|
|
33
|
+
--sc-surface-caution-primary: #CC6600;
|
|
34
|
+
--sc-surface-caution-secondary: #FFD9B3;
|
|
35
|
+
--sc-surface-caution-primary-hover: #E57300;
|
|
36
|
+
--sc-surface-caution-primary-active: #B25A00;
|
|
37
|
+
--sc-surface-caution-secondary-hover: #FFE5CC;
|
|
38
|
+
--sc-surface-caution-secondary-active: #FFCC99;
|
|
39
|
+
--sc-surface-danger-primary: #CC0000;
|
|
40
|
+
--sc-surface-danger-secondary: #FFCCCC;
|
|
41
|
+
--sc-surface-danger-primary-hover: #E50000;
|
|
42
|
+
--sc-surface-danger-primary-active: #B30000;
|
|
43
|
+
--sc-surface-danger-secondary-hover: #FFE7E7;
|
|
44
|
+
--sc-surface-danger-secondary-active: #FFB3B3;
|
|
45
|
+
--sc-content-brand: #000000;
|
|
46
|
+
--sc-content-success: #008000;
|
|
47
|
+
--sc-content-caution: #994D00;
|
|
48
|
+
--sc-content-danger: #990000;
|
|
49
|
+
--sc-content-disabled: #737373;
|
|
50
|
+
--sc-content-neutral-primary: #292929;
|
|
51
|
+
--sc-content-neutral-secondary: #404040;
|
|
52
|
+
--sc-content-brand-on-primary: #FFFFFF;
|
|
53
|
+
--sc-content-success-on-primary: #FFFFFF;
|
|
54
|
+
--sc-content-caution-on-primary: #FFFFFF;
|
|
55
|
+
--sc-content-danger-on-primary: #FFFFFF;
|
|
56
|
+
--sc-content-disabled-on-disabled: #737373;
|
|
57
|
+
--sc-border-neutral: rgba(0,0,0, 0.1);
|
|
58
|
+
--sc-border-brand: #000000;
|
|
59
|
+
--sc-border-success: #008000;
|
|
60
|
+
--sc-border-caution: #CC6600;
|
|
61
|
+
--sc-border-danger: #CC0000;
|
|
62
|
+
--sc-border-disabled: #737373;
|
|
8
63
|
}
|
|
9
64
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
65
|
+
:root {
|
|
66
|
+
/** Typography */
|
|
67
|
+
--sc-font-family: sans-serif;
|
|
68
|
+
--sc-heading-1-font-size: 32px;
|
|
69
|
+
--sc-heading-1-line-height: 36px;
|
|
70
|
+
--sc-heading-1-font-weight: 700;
|
|
71
|
+
--sc-heading-2-font-size: 29px;
|
|
72
|
+
--sc-heading-2-line-height: 32px;
|
|
73
|
+
--sc-heading-2-font-weight: 700;
|
|
74
|
+
--sc-heading-3-font-size: 26px;
|
|
75
|
+
--sc-heading-3-line-height: 28px;
|
|
76
|
+
--sc-heading-3-font-weight: 700;
|
|
77
|
+
--sc-heading-4-font-size: 23px;
|
|
78
|
+
--sc-heading-4-line-height: 24px;
|
|
79
|
+
--sc-heading-4-font-weight: 700;
|
|
80
|
+
--sc-heading-5-font-size: 20px;
|
|
81
|
+
--sc-heading-5-line-height: 24px;
|
|
82
|
+
--sc-heading-5-font-weight: 700;
|
|
83
|
+
--sc-heading-6-font-size: 10px;
|
|
84
|
+
--sc-heading-6-line-height: 12px;
|
|
85
|
+
--sc-heading-6-font-weight: 700;
|
|
86
|
+
--sc-body-bold-font-size: 16px;
|
|
87
|
+
--sc-body-bold-line-height: 20px;
|
|
88
|
+
--sc-body-bold-font-weight: 700;
|
|
89
|
+
--sc-body-font-size: 16px;
|
|
90
|
+
--sc-body-line-height: 20px;
|
|
91
|
+
--sc-body-font-weight:400;
|
|
92
|
+
--sc-body-small-bold-font-size: 12px;
|
|
93
|
+
--sc-body-small-bold-line-height: 16px;
|
|
94
|
+
--sc-body-small-bold-font-weight: 700;
|
|
95
|
+
--sc-body-small-font-size: 12px;
|
|
96
|
+
--sc-body-small-line-height: 16px;
|
|
97
|
+
--sc-body-small-font-weight: 400;
|
|
14
98
|
}
|
|
15
99
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
font-family: "Brygada 1918";
|
|
20
|
-
outline: none;
|
|
21
|
-
padding-bottom: 15px;
|
|
22
|
-
padding-top: 15px;
|
|
23
|
-
width: 100%;
|
|
24
|
-
background-color: #EDEDED;
|
|
25
|
-
color: #292929;
|
|
26
|
-
margin-right: 8px;
|
|
27
|
-
padding-left: 36px;
|
|
28
|
-
padding-right: 16px;
|
|
29
|
-
}
|
|
30
|
-
.inputLightLTR::placeholder {
|
|
31
|
-
font-family: "Brygada 1918";
|
|
32
|
-
font-size: 16px;
|
|
33
|
-
font-weight: 600;
|
|
34
|
-
}
|
|
35
|
-
.inputLightLTR::placeholder {
|
|
36
|
-
color: #737373;
|
|
37
|
-
}
|
|
38
|
-
.inputLightLTR:focus {
|
|
39
|
-
outline: 2px solid #000;
|
|
100
|
+
searchcraft-input {
|
|
101
|
+
display: flex;
|
|
102
|
+
flex: 1;
|
|
40
103
|
}
|
|
41
104
|
|
|
42
|
-
.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
outline: none;
|
|
47
|
-
padding-bottom: 15px;
|
|
48
|
-
padding-top: 15px;
|
|
49
|
-
width: 100%;
|
|
50
|
-
background-color: #1A1A1A;
|
|
51
|
-
color: #FFF;
|
|
52
|
-
margin-right: 8px;
|
|
53
|
-
padding-left: 36px;
|
|
54
|
-
padding-right: 16px;
|
|
55
|
-
}
|
|
56
|
-
.inputDarkLTR::placeholder {
|
|
57
|
-
font-family: "Brygada 1918";
|
|
58
|
-
font-size: 16px;
|
|
59
|
-
font-weight: 600;
|
|
60
|
-
}
|
|
61
|
-
.inputDarkLTR::placeholder {
|
|
62
|
-
color: #BFBFBF;
|
|
63
|
-
}
|
|
64
|
-
.inputDarkLTR:focus {
|
|
65
|
-
outline: 2px solid #FFF;
|
|
105
|
+
.searchcraft-input-wrapper {
|
|
106
|
+
display: inline-block;
|
|
107
|
+
position: relative;
|
|
108
|
+
cursor: text;
|
|
66
109
|
}
|
|
67
110
|
|
|
68
|
-
.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
font-family: "Brygada 1918";
|
|
72
|
-
outline: none;
|
|
73
|
-
padding-bottom: 15px;
|
|
74
|
-
padding-top: 15px;
|
|
75
|
-
width: 100%;
|
|
76
|
-
background-color: #EDEDED;
|
|
77
|
-
color: #292929;
|
|
78
|
-
outline: 2px solid #c00;
|
|
79
|
-
margin-right: 8px;
|
|
80
|
-
padding-left: 36px;
|
|
81
|
-
padding-right: 16px;
|
|
82
|
-
}
|
|
83
|
-
.inputErrorLightLTR::placeholder {
|
|
84
|
-
font-family: "Brygada 1918";
|
|
85
|
-
font-size: 16px;
|
|
86
|
-
font-weight: 600;
|
|
87
|
-
}
|
|
88
|
-
.inputErrorLightLTR::placeholder {
|
|
89
|
-
color: #737373;
|
|
90
|
-
}
|
|
91
|
-
.inputErrorLightLTR:focus {
|
|
92
|
-
outline: 2px solid #000;
|
|
93
|
-
}
|
|
94
|
-
.inputErrorLightLTR:focus-visible {
|
|
95
|
-
outline: 2px solid #c00;
|
|
111
|
+
.searchcraft-input-wrapper-flex {
|
|
112
|
+
display: flex;
|
|
113
|
+
flex: 1;
|
|
96
114
|
}
|
|
97
115
|
|
|
98
|
-
.
|
|
99
|
-
|
|
100
|
-
border-radius: 8px;
|
|
101
|
-
font-family: "Brygada 1918";
|
|
102
|
-
outline: none;
|
|
103
|
-
padding-bottom: 15px;
|
|
104
|
-
padding-top: 15px;
|
|
105
|
-
width: 100%;
|
|
106
|
-
background-color: #1A1A1A;
|
|
107
|
-
color: #FFF;
|
|
108
|
-
outline: 2px solid #FFB3B3;
|
|
109
|
-
margin-right: 8px;
|
|
110
|
-
padding-left: 36px;
|
|
111
|
-
padding-right: 16px;
|
|
112
|
-
}
|
|
113
|
-
.inputErrorDarkLTR::placeholder {
|
|
114
|
-
font-family: "Brygada 1918";
|
|
115
|
-
font-size: 16px;
|
|
116
|
-
font-weight: 600;
|
|
117
|
-
}
|
|
118
|
-
.inputErrorDarkLTR::placeholder {
|
|
119
|
-
color: #BFBFBF;
|
|
120
|
-
}
|
|
121
|
-
.inputErrorDarkLTR:focus {
|
|
122
|
-
outline: 2px solid #FFF;
|
|
123
|
-
}
|
|
124
|
-
.inputErrorDarkLTR:focus-visible {
|
|
125
|
-
outline: 2px solid #FFB3B3;
|
|
116
|
+
.searchcraft-input-flex {
|
|
117
|
+
flex: 1;
|
|
126
118
|
}
|
|
127
119
|
|
|
128
|
-
.
|
|
120
|
+
.searchcraft-input {
|
|
121
|
+
font-family: var(--sc-font-family);
|
|
122
|
+
-webkit-font-smoothing: antialiased;
|
|
123
|
+
font-size: var(--sc-body-font-size);
|
|
124
|
+
font-weight: var(--sc-body-font-weight);
|
|
125
|
+
line-height: var(--sc-body-line-height);
|
|
126
|
+
background-color: var(--sc-surface-neutral-secondary);
|
|
129
127
|
border: none;
|
|
130
|
-
border-radius:
|
|
131
|
-
|
|
128
|
+
border-radius: var(--sc-input-border-radius);
|
|
129
|
+
color: var(--sc-content-neutral-primary);
|
|
132
130
|
outline: none;
|
|
133
|
-
padding-
|
|
134
|
-
padding-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
font-weight: 600;
|
|
147
|
-
}
|
|
148
|
-
.inputLightRTL::placeholder {
|
|
149
|
-
color: #737373;
|
|
150
|
-
}
|
|
151
|
-
.inputLightRTL:focus {
|
|
152
|
-
outline: 2px solid #000;
|
|
131
|
+
padding-left: var(--sc-input-padding-left);
|
|
132
|
+
padding-right: var(--sc-input-padding-right);
|
|
133
|
+
padding-top: 12px;
|
|
134
|
+
padding-bottom: 12px;
|
|
135
|
+
}
|
|
136
|
+
.searchcraft-input::placeholder {
|
|
137
|
+
color: var(--sc-content-disabled);
|
|
138
|
+
}
|
|
139
|
+
.searchcraft-input:focus {
|
|
140
|
+
outline: var(--sc-border-brand) solid 2px;
|
|
141
|
+
}
|
|
142
|
+
.searchcraft-input:focus::placeholder {
|
|
143
|
+
opacity: 0;
|
|
153
144
|
}
|
|
154
145
|
|
|
155
|
-
.
|
|
156
|
-
|
|
157
|
-
border-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
padding-top: 15px;
|
|
162
|
-
width: 100%;
|
|
163
|
-
background-color: #1A1A1A;
|
|
164
|
-
color: #FFF;
|
|
165
|
-
margin-left: 8px;
|
|
166
|
-
padding-left: 16px;
|
|
167
|
-
padding-right: 36px;
|
|
168
|
-
text-align: right;
|
|
169
|
-
}
|
|
170
|
-
.inputDarkRTL::placeholder {
|
|
171
|
-
font-family: "Brygada 1918";
|
|
172
|
-
font-size: 16px;
|
|
173
|
-
font-weight: 600;
|
|
174
|
-
}
|
|
175
|
-
.inputDarkRTL::placeholder {
|
|
176
|
-
color: #BFBFBF;
|
|
177
|
-
}
|
|
178
|
-
.inputDarkRTL:focus {
|
|
179
|
-
outline: 2px solid #FFF;
|
|
146
|
+
.searchcraft-input.error {
|
|
147
|
+
color: var(--sc-content-danger);
|
|
148
|
+
outline: var(--sc-border-danger) solid 2px;
|
|
149
|
+
}
|
|
150
|
+
.searchcraft-input.error:focus {
|
|
151
|
+
outline: var(--sc-border-danger) solid 2px;
|
|
180
152
|
}
|
|
181
153
|
|
|
182
|
-
.
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
outline: 2px solid #c00;
|
|
193
|
-
margin-left: 8px;
|
|
194
|
-
padding-left: 16px;
|
|
195
|
-
padding-right: 36px;
|
|
196
|
-
text-align: right;
|
|
197
|
-
}
|
|
198
|
-
.inputErrorLightRTL::placeholder {
|
|
199
|
-
font-family: "Brygada 1918";
|
|
200
|
-
font-size: 16px;
|
|
201
|
-
font-weight: 600;
|
|
202
|
-
}
|
|
203
|
-
.inputErrorLightRTL::placeholder {
|
|
204
|
-
color: #737373;
|
|
205
|
-
}
|
|
206
|
-
.inputErrorLightRTL:focus {
|
|
207
|
-
outline: 2px solid #000;
|
|
208
|
-
}
|
|
209
|
-
.inputErrorLightRTL:focus-visible {
|
|
210
|
-
outline: 2px solid #c00;
|
|
154
|
+
.searchcraft-input-search-icon-wrapper {
|
|
155
|
+
align-items: center;
|
|
156
|
+
justify-content: center;
|
|
157
|
+
display: flex;
|
|
158
|
+
position: absolute;
|
|
159
|
+
pointer-events: none;
|
|
160
|
+
bottom: 0;
|
|
161
|
+
left: 0;
|
|
162
|
+
top: 0;
|
|
163
|
+
width: var(--sc-input-padding-left);
|
|
211
164
|
}
|
|
212
165
|
|
|
213
|
-
.
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
outline: none;
|
|
218
|
-
padding-bottom: 15px;
|
|
219
|
-
padding-top: 15px;
|
|
220
|
-
width: 100%;
|
|
221
|
-
background-color: #1A1A1A;
|
|
222
|
-
color: #FFF;
|
|
223
|
-
outline: 2px solid #FFB3B3;
|
|
224
|
-
margin-left: 8px;
|
|
225
|
-
padding-left: 16px;
|
|
226
|
-
padding-right: 36px;
|
|
227
|
-
text-align: right;
|
|
228
|
-
}
|
|
229
|
-
.inputErrorDarkRTL::placeholder {
|
|
230
|
-
font-family: "Brygada 1918";
|
|
231
|
-
font-size: 16px;
|
|
232
|
-
font-weight: 600;
|
|
233
|
-
}
|
|
234
|
-
.inputErrorDarkRTL::placeholder {
|
|
235
|
-
color: #BFBFBF;
|
|
236
|
-
}
|
|
237
|
-
.inputErrorDarkRTL:focus {
|
|
238
|
-
outline: 2px solid #FFF;
|
|
239
|
-
}
|
|
240
|
-
.inputErrorDarkRTL:focus-visible {
|
|
241
|
-
outline: 2px solid #FFB3B3;
|
|
166
|
+
.searchcraft-input-search-icon {
|
|
167
|
+
pointer-events: none;
|
|
168
|
+
width: var(--sc-input-search-icon-size);
|
|
169
|
+
height: var(--sc-input-search-icon-size);
|
|
242
170
|
}
|
|
243
171
|
|
|
244
|
-
.
|
|
172
|
+
.searchcraft-input-clear-button {
|
|
173
|
+
all: unset;
|
|
245
174
|
align-items: center;
|
|
175
|
+
justify-content: center;
|
|
176
|
+
cursor: pointer;
|
|
246
177
|
display: flex;
|
|
247
|
-
position:
|
|
248
|
-
|
|
178
|
+
position: absolute;
|
|
179
|
+
border: none;
|
|
180
|
+
outline: none;
|
|
181
|
+
bottom: 0;
|
|
182
|
+
right: 0;
|
|
183
|
+
top: 0;
|
|
184
|
+
width: var(--sc-input-padding-right);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.searchcraft-input-clear-icon {
|
|
188
|
+
width: var(--sc-input-clear-icon-size);
|
|
189
|
+
height: var(--sc-input-clear-icon-size);
|
|
249
190
|
}
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import classNames from "classnames";
|
|
3
2
|
export class SearchcraftInputLabel {
|
|
4
3
|
constructor() {
|
|
5
4
|
this.inputLabelClassName = '';
|
|
6
5
|
this.label = undefined;
|
|
7
|
-
this.theme = 'light';
|
|
8
|
-
}
|
|
9
|
-
isLightTheme() {
|
|
10
|
-
return this.theme === 'light';
|
|
11
6
|
}
|
|
12
7
|
render() {
|
|
13
8
|
if (!this.label) {
|
|
14
9
|
return null;
|
|
15
10
|
}
|
|
16
|
-
|
|
17
|
-
return (h("label", { class: classNames(labelStyle, this.inputLabelClassName), htmlFor: 'searchcraft-input-id' }, this.label));
|
|
11
|
+
return (h("label", { class: 'searchcraft-input-label', htmlFor: 'searchcraft-input-id' }, this.label));
|
|
18
12
|
}
|
|
19
13
|
static get is() { return "searchcraft-input-label"; }
|
|
20
|
-
static get encapsulation() { return "shadow"; }
|
|
21
14
|
static get originalStyleUrls() {
|
|
22
15
|
return {
|
|
23
16
|
"$": ["searchcraft-input-label.module.scss"]
|
|
@@ -67,10 +60,5 @@ export class SearchcraftInputLabel {
|
|
|
67
60
|
}
|
|
68
61
|
};
|
|
69
62
|
}
|
|
70
|
-
static get states() {
|
|
71
|
-
return {
|
|
72
|
-
"theme": {}
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
63
|
}
|
|
76
64
|
//# sourceMappingURL=searchcraft-input-label.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchcraft-input-label.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"searchcraft-input-label.js","sourceRoot":"","sources":["../../../../src/components/searchcraft-input-label/searchcraft-input-label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,qBAAqB;;mCACD,EAAE;;;IAGjC,MAAM;QACJ,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;YAChB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,CACL,aAAO,KAAK,EAAC,yBAAyB,EAAC,OAAO,EAAC,sBAAsB,IAClE,IAAI,CAAC,KAAK,CACL,CACT,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'searchcraft-input-label',\n styleUrl: 'searchcraft-input-label.module.scss',\n shadow: false,\n})\nexport class SearchcraftInputLabel {\n @Prop() inputLabelClassName? = '';\n @Prop() label?: string;\n\n render() {\n if (!this.label) {\n return null;\n }\n return (\n <label class='searchcraft-input-label' htmlFor='searchcraft-input-id'>\n {this.label}\n </label>\n );\n }\n}\n"]}
|
package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.module.css
CHANGED
|
@@ -1,21 +1,109 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
|
|
2
|
+
/** Appearance & Layout */
|
|
3
|
+
--sc-spinner-size: 20px;
|
|
4
|
+
--sc-input-border-radius: 8px;
|
|
5
|
+
--sc-input-search-icon-size: 20px;
|
|
6
|
+
--sc-input-clear-icon-size: 20px;
|
|
7
|
+
--sc-input-padding-left: 44px;
|
|
8
|
+
--sc-input-padding-right: 44px;
|
|
9
|
+
--sc-image-border-radius: 8px;
|
|
3
10
|
}
|
|
4
11
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
:root {
|
|
13
|
+
--sc-surface-disabled: #D9D9D9;
|
|
14
|
+
--sc-surface-neutral-primary: #FFFFFF;
|
|
15
|
+
--sc-surface-neutral-secondary: #F3F3F3;
|
|
16
|
+
--sc-surface-neutral-light: #FFFFFF;
|
|
17
|
+
--sc-surface-neutral-primary-hover: #FAFAFA;
|
|
18
|
+
--sc-surface-neutral-primary-active: #F7F7F7;
|
|
19
|
+
--sc-surface-neutral-secondary-hover: #EDEDED;
|
|
20
|
+
--sc-surface-neutral-secondary-active: #E6E6E6;
|
|
21
|
+
--sc-surface-brand-primary: #000000;
|
|
22
|
+
--sc-surface-brand-secondary: #E6E6E6;
|
|
23
|
+
--sc-surface-brand-primary-hover: #2E2E2E;
|
|
24
|
+
--sc-surface-brand-primary-active: #292929;
|
|
25
|
+
--sc-surface-brand-secondary-hover: #EBEBEB;
|
|
26
|
+
--sc-surface-brand-secondary-active: #E0E0E0;
|
|
27
|
+
--sc-surface-success-primary: #008000;
|
|
28
|
+
--sc-surface-success-secondary: #CCFFCC;
|
|
29
|
+
--sc-surface-success-primary-hover: #009900;
|
|
30
|
+
--sc-surface-success-primary-active: #006600;
|
|
31
|
+
--sc-surface-success-secondary-hover: #E6FFE6;
|
|
32
|
+
--sc-surface-success-secondary-active: #E6FFE6;
|
|
33
|
+
--sc-surface-caution-primary: #CC6600;
|
|
34
|
+
--sc-surface-caution-secondary: #FFD9B3;
|
|
35
|
+
--sc-surface-caution-primary-hover: #E57300;
|
|
36
|
+
--sc-surface-caution-primary-active: #B25A00;
|
|
37
|
+
--sc-surface-caution-secondary-hover: #FFE5CC;
|
|
38
|
+
--sc-surface-caution-secondary-active: #FFCC99;
|
|
39
|
+
--sc-surface-danger-primary: #CC0000;
|
|
40
|
+
--sc-surface-danger-secondary: #FFCCCC;
|
|
41
|
+
--sc-surface-danger-primary-hover: #E50000;
|
|
42
|
+
--sc-surface-danger-primary-active: #B30000;
|
|
43
|
+
--sc-surface-danger-secondary-hover: #FFE7E7;
|
|
44
|
+
--sc-surface-danger-secondary-active: #FFB3B3;
|
|
45
|
+
--sc-content-brand: #000000;
|
|
46
|
+
--sc-content-success: #008000;
|
|
47
|
+
--sc-content-caution: #994D00;
|
|
48
|
+
--sc-content-danger: #990000;
|
|
49
|
+
--sc-content-disabled: #737373;
|
|
50
|
+
--sc-content-neutral-primary: #292929;
|
|
51
|
+
--sc-content-neutral-secondary: #404040;
|
|
52
|
+
--sc-content-brand-on-primary: #FFFFFF;
|
|
53
|
+
--sc-content-success-on-primary: #FFFFFF;
|
|
54
|
+
--sc-content-caution-on-primary: #FFFFFF;
|
|
55
|
+
--sc-content-danger-on-primary: #FFFFFF;
|
|
56
|
+
--sc-content-disabled-on-disabled: #737373;
|
|
57
|
+
--sc-border-neutral: rgba(0,0,0, 0.1);
|
|
58
|
+
--sc-border-brand: #000000;
|
|
59
|
+
--sc-border-success: #008000;
|
|
60
|
+
--sc-border-caution: #CC6600;
|
|
61
|
+
--sc-border-danger: #CC0000;
|
|
62
|
+
--sc-border-disabled: #737373;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:root {
|
|
66
|
+
/** Typography */
|
|
67
|
+
--sc-font-family: sans-serif;
|
|
68
|
+
--sc-heading-1-font-size: 32px;
|
|
69
|
+
--sc-heading-1-line-height: 36px;
|
|
70
|
+
--sc-heading-1-font-weight: 700;
|
|
71
|
+
--sc-heading-2-font-size: 29px;
|
|
72
|
+
--sc-heading-2-line-height: 32px;
|
|
73
|
+
--sc-heading-2-font-weight: 700;
|
|
74
|
+
--sc-heading-3-font-size: 26px;
|
|
75
|
+
--sc-heading-3-line-height: 28px;
|
|
76
|
+
--sc-heading-3-font-weight: 700;
|
|
77
|
+
--sc-heading-4-font-size: 23px;
|
|
78
|
+
--sc-heading-4-line-height: 24px;
|
|
79
|
+
--sc-heading-4-font-weight: 700;
|
|
80
|
+
--sc-heading-5-font-size: 20px;
|
|
81
|
+
--sc-heading-5-line-height: 24px;
|
|
82
|
+
--sc-heading-5-font-weight: 700;
|
|
83
|
+
--sc-heading-6-font-size: 10px;
|
|
84
|
+
--sc-heading-6-line-height: 12px;
|
|
85
|
+
--sc-heading-6-font-weight: 700;
|
|
86
|
+
--sc-body-bold-font-size: 16px;
|
|
87
|
+
--sc-body-bold-line-height: 20px;
|
|
88
|
+
--sc-body-bold-font-weight: 700;
|
|
89
|
+
--sc-body-font-size: 16px;
|
|
90
|
+
--sc-body-line-height: 20px;
|
|
91
|
+
--sc-body-font-weight:400;
|
|
92
|
+
--sc-body-small-bold-font-size: 12px;
|
|
93
|
+
--sc-body-small-bold-line-height: 16px;
|
|
94
|
+
--sc-body-small-bold-font-weight: 700;
|
|
95
|
+
--sc-body-small-font-size: 12px;
|
|
96
|
+
--sc-body-small-line-height: 16px;
|
|
97
|
+
--sc-body-small-font-weight: 400;
|
|
12
98
|
}
|
|
13
99
|
|
|
14
|
-
.
|
|
15
|
-
font-family: var(--font-
|
|
16
|
-
font-
|
|
17
|
-
font-
|
|
18
|
-
|
|
100
|
+
.searchcraft-input-label {
|
|
101
|
+
font-family: var(--sc-font-family);
|
|
102
|
+
-webkit-font-smoothing: antialiased;
|
|
103
|
+
font-size: var(--sc-body-small-bold-font-size);
|
|
104
|
+
font-weight: var(--sc-body-small-bold-font-weight);
|
|
105
|
+
line-height: var(--sc-body-small-bold-line-height);
|
|
106
|
+
color: var(--sc-content-neutral-primary);
|
|
19
107
|
margin-top: 4px;
|
|
20
|
-
|
|
108
|
+
margin-bottom: 4px;
|
|
21
109
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { useSearchcraftStore } from "../../provider/store";
|
|
3
|
+
import { formatNumberWithCommas } from "../../utils/utils";
|
|
3
4
|
export class SearchcraftResultsInfo {
|
|
4
5
|
constructor() {
|
|
5
6
|
this.isRequesting = false;
|
|
@@ -13,7 +14,7 @@ export class SearchcraftResultsInfo {
|
|
|
13
14
|
this.isRequesting = state.isRequesting;
|
|
14
15
|
this.resultsCount = ((_b = (_a = state.searchResults) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.count) || 0;
|
|
15
16
|
this.responseTime = ((((_d = (_c = state.searchResults) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.time_taken) || 0) * 1000).toFixed(2);
|
|
16
|
-
this.query = state.query || '';
|
|
17
|
+
this.query = state.query || '';
|
|
17
18
|
});
|
|
18
19
|
}
|
|
19
20
|
disconnectedCallback() {
|
|
@@ -25,10 +26,10 @@ export class SearchcraftResultsInfo {
|
|
|
25
26
|
if (!this.query || this.resultsCount === 0) {
|
|
26
27
|
return null;
|
|
27
28
|
}
|
|
28
|
-
|
|
29
|
+
const formattedResults = formatNumberWithCommas(this.resultsCount);
|
|
30
|
+
return (h("div", { class: 'searchcraft-results-info-container' }, h("p", { class: 'searchcraft-results-info-content' }, formattedResults, " results found in ", this.responseTime, "ms")));
|
|
29
31
|
}
|
|
30
32
|
static get is() { return "searchcraft-results-info"; }
|
|
31
|
-
static get encapsulation() { return "shadow"; }
|
|
32
33
|
static get originalStyleUrls() {
|
|
33
34
|
return {
|
|
34
35
|
"$": ["searchcraft-results-info.module.scss"]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchcraft-results-info.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"searchcraft-results-info.js","sourceRoot":"","sources":["../../../../src/components/searchcraft-results-info/searchcraft-results-info.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAOtD,MAAM,OAAO,sBAAsB;;4BACT,KAAK;4BACL,CAAC;4BACD,EAAE;qBACT,EAAE;;IAInB,iBAAiB;QACf,IAAI,CAAC,WAAW,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE;;YACzD,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC;YACvC,IAAI,CAAC,YAAY,GAAG,CAAA,MAAA,MAAA,KAAK,CAAC,aAAa,0CAAE,IAAI,0CAAE,KAAK,KAAI,CAAC,CAAC;YAC1D,IAAI,CAAC,YAAY,GAAG,CAClB,CAAC,CAAA,MAAA,MAAA,KAAK,CAAC,aAAa,0CAAE,IAAI,0CAAE,UAAU,KAAI,CAAC,CAAC,GAAG,IAAI,CACpD,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACb,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC;QACjC,CAAC,CAAC,CAAC;IACL,CAAC;IAED,oBAAoB;QAClB,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;YACrB,IAAI,CAAC,WAAW,EAAE,CAAC;QACrB,CAAC;IACH,CAAC;IAED,MAAM;QACJ,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,YAAY,KAAK,CAAC,EAAE,CAAC;YAC3C,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACnE,OAAO,CACL,WAAK,KAAK,EAAC,oCAAoC;YAC7C,SAAG,KAAK,EAAC,kCAAkC;gBACxC,gBAAgB;;gBAAoB,IAAI,CAAC,YAAY;qBACpD,CACA,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, State } from '@stencil/core';\n\nimport { useSearchcraftStore } from '@provider/store';\n\nimport { formatNumberWithCommas } from '@utils/utils';\n\n@Component({\n tag: 'searchcraft-results-info',\n styleUrl: 'searchcraft-results-info.module.scss',\n shadow: false,\n})\nexport class SearchcraftResultsInfo {\n @State() isRequesting = false;\n @State() resultsCount = 0;\n @State() responseTime = '';\n @State() query = '';\n\n unsubscribe: () => void;\n\n connectedCallback() {\n this.unsubscribe = useSearchcraftStore.subscribe((state) => {\n this.isRequesting = state.isRequesting;\n this.resultsCount = state.searchResults?.data?.count || 0;\n this.responseTime = (\n (state.searchResults?.data?.time_taken || 0) * 1000\n ).toFixed(2);\n this.query = state.query || '';\n });\n }\n\n disconnectedCallback() {\n if (this.unsubscribe) {\n this.unsubscribe();\n }\n }\n\n render() {\n if (!this.query || this.resultsCount === 0) {\n return null;\n }\n const formattedResults = formatNumberWithCommas(this.resultsCount);\n return (\n <div class='searchcraft-results-info-container'>\n <p class='searchcraft-results-info-content'>\n {formattedResults} results found in {this.responseTime}ms\n </p>\n </div>\n );\n }\n}\n"]}
|