@searchcraft/javascript-sdk 0.1.0 → 0.1.1
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-5b0b9d4c.js +84 -0
- package/dist/cjs/index-5b0b9d4c.js.map +1 -0
- package/dist/cjs/{index-0c2339c7.js → index-e7bd239c.js} +48 -4
- package/dist/cjs/index-e7bd239c.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/searchcraft-auto-search-form_13.cjs.entry.js +434 -0
- package/dist/cjs/searchcraft-auto-search-form_13.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-base-search-form.cjs.entry.js +64 -0
- package/dist/cjs/searchcraft-base-search-form.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-button-icon.cjs.entry.js +18 -0
- package/dist/cjs/searchcraft-button-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-button.cjs.entry.js +37 -0
- package/dist/cjs/searchcraft-button.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-javascript-sdk.cjs.js +2 -2
- package/dist/cjs/utils-cbbed1f7.js +23 -0
- package/dist/cjs/utils-cbbed1f7.js.map +1 -0
- package/dist/collection/assets/searchcraft-button-icons.js +9 -0
- package/dist/collection/assets/searchcraft-button-icons.js.map +1 -0
- package/dist/collection/assets/searchcraft-clear-icon-set.js +45 -0
- package/dist/collection/assets/searchcraft-clear-icon-set.js.map +1 -0
- package/dist/collection/assets/searchcraft-search-icon-set.js +45 -0
- package/dist/collection/assets/searchcraft-search-icon-set.js.map +1 -0
- package/dist/collection/collection-manifest.json +16 -13
- package/dist/collection/components/{sc-auto-search-form/sc-auto-search-form.js → searchcraft-auto-search-form/searchcraft-auto-search-form.js} +58 -39
- package/dist/collection/components/searchcraft-auto-search-form/searchcraft-auto-search-form.js.map +1 -0
- package/dist/collection/components/{sc-auto-search-form/sc-auto-search-form.module.css → searchcraft-auto-search-form/searchcraft-auto-search-form.module.css} +3 -0
- package/dist/collection/components/{sc-base-search-form/sc-base-search-form.js → searchcraft-base-search-form/searchcraft-base-search-form.js} +6 -6
- package/dist/collection/components/searchcraft-base-search-form/searchcraft-base-search-form.js.map +1 -0
- package/dist/collection/components/{sc-base-search-result/sc-base-search-result.js → searchcraft-base-search-result/searchcraft-base-search-result.js} +7 -8
- package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.js.map +1 -0
- package/dist/collection/components/{sc-base-search-results/sc-base-search-results.js → searchcraft-base-search-results/searchcraft-base-search-results.js} +7 -7
- package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js.map +1 -0
- package/dist/collection/components/{sc-button/sc-button.js → searchcraft-button/searchcraft-button.js} +6 -6
- package/dist/collection/components/searchcraft-button/searchcraft-button.js.map +1 -0
- package/dist/collection/components/{sc-clear-input-button/sc-clear-input-button.js → searchcraft-clear-input-button/searchcraft-clear-input-button.js} +6 -9
- package/dist/collection/components/searchcraft-clear-input-button/searchcraft-clear-input-button.js.map +1 -0
- package/dist/collection/components/{sc-clear-input-button/sc-clear-input-button.module.css → searchcraft-clear-input-button/searchcraft-clear-input-button.module.css} +4 -2
- package/dist/collection/components/{sc-error-message/sc-error-message.js → searchcraft-error-message/searchcraft-error-message.js} +6 -6
- package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.js.map +1 -0
- package/dist/collection/components/{sc-input/sc-input.js → searchcraft-input/searchcraft-input.js} +51 -26
- package/dist/collection/components/searchcraft-input/searchcraft-input.js.map +1 -0
- package/dist/collection/components/{sc-input/sc-input.module.css → searchcraft-input/searchcraft-input.module.css} +17 -0
- package/dist/collection/components/{sc-input-caption/sc-input-caption.js → searchcraft-input-caption/searchcraft-input-caption.js} +5 -5
- package/dist/collection/components/searchcraft-input-caption/searchcraft-input-caption.js.map +1 -0
- package/dist/collection/components/{sc-input-icon/sc-input-icon.js → searchcraft-input-icon/searchcraft-input-icon.js} +6 -7
- package/dist/collection/components/searchcraft-input-icon/searchcraft-input-icon.js.map +1 -0
- package/dist/collection/components/{sc-input-label/sc-input-label.js → searchcraft-input-label/searchcraft-input-label.js} +14 -11
- package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.js.map +1 -0
- package/dist/collection/components/searchcraft-spinner-dark/searchcraft-spinner-dark.js +19 -0
- package/dist/collection/components/searchcraft-spinner-dark/searchcraft-spinner-dark.js.map +1 -0
- package/dist/collection/components/searchcraft-spinner-light/searchcraft-spinner-light.js +19 -0
- package/dist/collection/components/searchcraft-spinner-light/searchcraft-spinner-light.js.map +1 -0
- package/dist/collection/index.js +3 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/utils/utils.js +17 -0
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/index.js +2 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/p-04e7305e.js +44 -0
- package/dist/components/p-04e7305e.js.map +1 -0
- package/dist/components/p-0c25e95d.js +41 -0
- package/dist/components/p-0c25e95d.js.map +1 -0
- package/dist/components/p-155f7a59.js +44 -0
- package/dist/components/p-155f7a59.js.map +1 -0
- package/dist/components/p-16a533e3.js +34 -0
- package/dist/components/p-16a533e3.js.map +1 -0
- package/dist/components/p-199065b5.js +61 -0
- package/dist/components/p-199065b5.js.map +1 -0
- package/dist/components/p-1ef23e15.js +21 -0
- package/dist/components/p-1ef23e15.js.map +1 -0
- package/dist/components/p-2cc8c074.js +69 -0
- package/dist/components/p-2cc8c074.js.map +1 -0
- package/dist/components/p-83c9df48.js +76 -0
- package/dist/components/p-83c9df48.js.map +1 -0
- package/dist/components/p-8646a603.js +50 -0
- package/dist/components/p-8646a603.js.map +1 -0
- package/dist/components/p-9283a3c2.js +50 -0
- package/dist/components/p-9283a3c2.js.map +1 -0
- package/dist/components/p-a18c4969.js +135 -0
- package/dist/components/p-a18c4969.js.map +1 -0
- package/dist/components/{p-a912a224.js → p-c69651f6.js} +48 -4
- package/dist/components/p-c69651f6.js.map +1 -0
- package/dist/components/p-e8e40447.js +34 -0
- package/dist/components/p-e8e40447.js.map +1 -0
- package/dist/components/p-f83f2b59.js +62 -0
- package/dist/components/p-f83f2b59.js.map +1 -0
- package/dist/components/searchcraft-auto-search-form.d.ts +11 -0
- package/dist/components/searchcraft-auto-search-form.js +185 -0
- package/dist/components/searchcraft-auto-search-form.js.map +1 -0
- package/dist/components/searchcraft-base-search-form.d.ts +11 -0
- package/dist/components/searchcraft-base-search-form.js +153 -0
- package/dist/components/searchcraft-base-search-form.js.map +1 -0
- package/dist/components/searchcraft-base-search-result.d.ts +11 -0
- package/dist/components/searchcraft-base-search-result.js +8 -0
- package/dist/components/searchcraft-base-search-result.js.map +1 -0
- package/dist/components/searchcraft-base-search-results.d.ts +11 -0
- package/dist/components/searchcraft-base-search-results.js +89 -0
- package/dist/components/searchcraft-base-search-results.js.map +1 -0
- package/dist/components/searchcraft-button-icon.d.ts +11 -0
- package/dist/components/searchcraft-button-icon.js +33 -0
- package/dist/components/searchcraft-button-icon.js.map +1 -0
- package/dist/components/{sc-base-search-form.d.ts → searchcraft-button.d.ts} +4 -4
- package/dist/components/searchcraft-button.js +8 -0
- package/dist/components/searchcraft-button.js.map +1 -0
- package/dist/components/searchcraft-clear-icon-set.d.ts +11 -0
- package/dist/components/searchcraft-clear-icon-set.js +8 -0
- package/dist/components/searchcraft-clear-icon-set.js.map +1 -0
- package/dist/components/searchcraft-clear-input-button.d.ts +11 -0
- package/dist/components/searchcraft-clear-input-button.js +8 -0
- package/dist/components/searchcraft-clear-input-button.js.map +1 -0
- package/dist/components/searchcraft-error-message.d.ts +11 -0
- package/dist/components/searchcraft-error-message.js +8 -0
- package/dist/components/searchcraft-error-message.js.map +1 -0
- package/dist/components/searchcraft-input-caption.d.ts +11 -0
- package/dist/components/searchcraft-input-caption.js +8 -0
- package/dist/components/searchcraft-input-caption.js.map +1 -0
- package/dist/components/searchcraft-input-icon.d.ts +11 -0
- package/dist/components/searchcraft-input-icon.js +8 -0
- package/dist/components/searchcraft-input-icon.js.map +1 -0
- package/dist/components/searchcraft-input-label.d.ts +11 -0
- package/dist/components/searchcraft-input-label.js +8 -0
- package/dist/components/searchcraft-input-label.js.map +1 -0
- package/dist/components/{sc-auto-search-form.d.ts → searchcraft-input.d.ts} +4 -4
- package/dist/components/searchcraft-input.js +8 -0
- package/dist/components/searchcraft-input.js.map +1 -0
- package/dist/components/searchcraft-search-icon-set.d.ts +11 -0
- package/dist/components/searchcraft-search-icon-set.js +8 -0
- package/dist/components/searchcraft-search-icon-set.js.map +1 -0
- package/dist/components/searchcraft-spinner-dark.d.ts +11 -0
- package/dist/components/searchcraft-spinner-dark.js +8 -0
- package/dist/components/searchcraft-spinner-dark.js.map +1 -0
- package/dist/components/searchcraft-spinner-light.d.ts +11 -0
- package/dist/components/searchcraft-spinner-light.js +8 -0
- package/dist/components/searchcraft-spinner-light.js.map +1 -0
- package/dist/esm/{index-c97f8c28.js → index-0d9f850d.js} +48 -4
- package/dist/esm/index-0d9f850d.js.map +1 -0
- package/dist/esm/index-72ac5051.js +82 -0
- package/dist/esm/index-72ac5051.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/searchcraft-auto-search-form_13.entry.js +418 -0
- package/dist/esm/searchcraft-auto-search-form_13.entry.js.map +1 -0
- package/dist/esm/searchcraft-base-search-form.entry.js +60 -0
- package/dist/esm/searchcraft-base-search-form.entry.js.map +1 -0
- package/dist/esm/searchcraft-button-icon.entry.js +14 -0
- package/dist/esm/searchcraft-button-icon.entry.js.map +1 -0
- package/dist/esm/searchcraft-button.entry.js +33 -0
- package/dist/esm/searchcraft-button.entry.js.map +1 -0
- package/dist/esm/searchcraft-javascript-sdk.js +3 -3
- package/dist/esm/utils-f221d91f.js +21 -0
- package/dist/esm/utils-f221d91f.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/index.esm.js +1 -1
- package/dist/searchcraft-javascript-sdk/p-0a8c2538.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-0a8c2538.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-1ef23e15.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-1ef23e15.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-329c3f66.js +3 -0
- package/dist/searchcraft-javascript-sdk/p-329c3f66.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-40791ead.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-40791ead.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-4d18a44a.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-4d18a44a.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-5cdc6210.js +7 -0
- package/dist/searchcraft-javascript-sdk/p-5cdc6210.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-c0cb5bb1.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-c0cb5bb1.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/assets/searchcraft-button-icons.d.ts +3 -0
- package/dist/types/assets/searchcraft-clear-icon-set.d.ts +8 -0
- package/dist/types/assets/searchcraft-search-icon-set.d.ts +8 -0
- package/dist/types/components/{sc-auto-search-form/sc-auto-search-form.d.ts → searchcraft-auto-search-form/searchcraft-auto-search-form.d.ts} +4 -18
- package/dist/types/components/{sc-base-search-form/sc-base-search-form.d.ts → searchcraft-base-search-form/searchcraft-base-search-form.d.ts} +2 -2
- package/dist/types/components/{sc-base-search-result/sc-base-search-result.d.ts → searchcraft-base-search-result/searchcraft-base-search-result.d.ts} +1 -1
- package/dist/types/components/{sc-base-search-results/sc-base-search-results.d.ts → searchcraft-base-search-results/searchcraft-base-search-results.d.ts} +1 -1
- package/dist/types/components/{sc-button/sc-button.d.ts → searchcraft-button/searchcraft-button.d.ts} +1 -1
- package/dist/types/components/{sc-clear-input-button/sc-clear-input-button.d.ts → searchcraft-clear-input-button/searchcraft-clear-input-button.d.ts} +1 -1
- package/dist/types/components/{sc-error-message/sc-error-message.d.ts → searchcraft-error-message/searchcraft-error-message.d.ts} +1 -1
- package/dist/types/components/{sc-input/sc-input.d.ts → searchcraft-input/searchcraft-input.d.ts} +4 -3
- package/dist/types/components/{sc-input-caption/sc-input-caption.d.ts → searchcraft-input-caption/searchcraft-input-caption.d.ts} +1 -1
- package/dist/types/components/{sc-input-icon/sc-input-icon.d.ts → searchcraft-input-icon/searchcraft-input-icon.d.ts} +1 -1
- package/dist/types/components/{sc-input-label/sc-input-label.d.ts → searchcraft-input-label/searchcraft-input-label.d.ts} +2 -2
- package/dist/types/components/searchcraft-spinner-dark/searchcraft-spinner-dark.d.ts +3 -0
- package/dist/types/components/searchcraft-spinner-light/searchcraft-spinner-light.d.ts +3 -0
- package/dist/types/components.d.ts +209 -153
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +6 -0
- package/package.json +1 -1
- package/dist/cjs/index-0c2339c7.js.map +0 -1
- package/dist/cjs/sc-auto-search-form.cjs.entry.js +0 -101
- package/dist/cjs/sc-auto-search-form.cjs.entry.js.map +0 -1
- package/dist/cjs/sc-base-search-form_11.cjs.entry.js +0 -471
- package/dist/cjs/sc-base-search-form_11.cjs.entry.js.map +0 -1
- package/dist/cjs/sc-spinner-light-a3bfc8e6.js +0 -20
- package/dist/cjs/sc-spinner-light-a3bfc8e6.js.map +0 -1
- package/dist/cjs/sc-spinner-light.cjs.entry.js +0 -12
- package/dist/cjs/sc-spinner-light.cjs.entry.js.map +0 -1
- package/dist/collection/assets/ButtonIcons.js +0 -3
- package/dist/collection/assets/ButtonIcons.js.map +0 -1
- package/dist/collection/assets/ClearInputIcon.js +0 -6
- package/dist/collection/assets/ClearInputIcon.js.map +0 -1
- package/dist/collection/assets/SearchIcons.js +0 -6
- package/dist/collection/assets/SearchIcons.js.map +0 -1
- package/dist/collection/components/sc-auto-search-form/sc-auto-search-form.js.map +0 -1
- package/dist/collection/components/sc-base-search-form/sc-base-search-form.js.map +0 -1
- package/dist/collection/components/sc-base-search-result/sc-base-search-result.js.map +0 -1
- package/dist/collection/components/sc-base-search-results/sc-base-search-results.js.map +0 -1
- package/dist/collection/components/sc-button/sc-button.js.map +0 -1
- package/dist/collection/components/sc-clear-input-button/sc-clear-input-button.js.map +0 -1
- package/dist/collection/components/sc-error-message/sc-error-message.js.map +0 -1
- package/dist/collection/components/sc-input/sc-input.js.map +0 -1
- package/dist/collection/components/sc-input-caption/sc-input-caption.js.map +0 -1
- package/dist/collection/components/sc-input-icon/sc-input-icon.js.map +0 -1
- package/dist/collection/components/sc-input-label/sc-input-label.js.map +0 -1
- package/dist/collection/components/sc-spinner-dark/sc-spinner-dark.js +0 -19
- package/dist/collection/components/sc-spinner-dark/sc-spinner-dark.js.map +0 -1
- package/dist/collection/components/sc-spinner-light/sc-spinner-light.js +0 -19
- package/dist/collection/components/sc-spinner-light/sc-spinner-light.js.map +0 -1
- package/dist/components/p-074239f9.js +0 -34
- package/dist/components/p-074239f9.js.map +0 -1
- package/dist/components/p-184d9504.js +0 -61
- package/dist/components/p-184d9504.js.map +0 -1
- package/dist/components/p-23bdbb1f.js +0 -58
- package/dist/components/p-23bdbb1f.js.map +0 -1
- package/dist/components/p-255a89f7.js +0 -62
- package/dist/components/p-255a89f7.js.map +0 -1
- package/dist/components/p-5410e357.js +0 -108
- package/dist/components/p-5410e357.js.map +0 -1
- package/dist/components/p-5b7b903a.js +0 -71
- package/dist/components/p-5b7b903a.js.map +0 -1
- package/dist/components/p-75be555b.js +0 -54
- package/dist/components/p-75be555b.js.map +0 -1
- package/dist/components/p-79564f07.js +0 -41
- package/dist/components/p-79564f07.js.map +0 -1
- package/dist/components/p-a912a224.js.map +0 -1
- package/dist/components/p-b05f23e3.js +0 -18
- package/dist/components/p-b05f23e3.js.map +0 -1
- package/dist/components/p-c47cb37f.js +0 -46
- package/dist/components/p-c47cb37f.js.map +0 -1
- package/dist/components/p-c54fdecb.js +0 -164
- package/dist/components/p-c54fdecb.js.map +0 -1
- package/dist/components/p-dfb43eea.js +0 -34
- package/dist/components/p-dfb43eea.js.map +0 -1
- package/dist/components/sc-auto-search-form.js +0 -152
- package/dist/components/sc-auto-search-form.js.map +0 -1
- package/dist/components/sc-base-search-form.js +0 -135
- package/dist/components/sc-base-search-form.js.map +0 -1
- package/dist/components/sc-base-search-result.d.ts +0 -11
- package/dist/components/sc-base-search-result.js +0 -8
- package/dist/components/sc-base-search-result.js.map +0 -1
- package/dist/components/sc-base-search-results.d.ts +0 -11
- package/dist/components/sc-base-search-results.js +0 -83
- package/dist/components/sc-base-search-results.js.map +0 -1
- package/dist/components/sc-button.d.ts +0 -11
- package/dist/components/sc-button.js +0 -8
- package/dist/components/sc-button.js.map +0 -1
- package/dist/components/sc-clear-input-button.d.ts +0 -11
- package/dist/components/sc-clear-input-button.js +0 -8
- package/dist/components/sc-clear-input-button.js.map +0 -1
- package/dist/components/sc-error-message.d.ts +0 -11
- package/dist/components/sc-error-message.js +0 -8
- package/dist/components/sc-error-message.js.map +0 -1
- package/dist/components/sc-input-caption.d.ts +0 -11
- package/dist/components/sc-input-caption.js +0 -8
- package/dist/components/sc-input-caption.js.map +0 -1
- package/dist/components/sc-input-icon.d.ts +0 -11
- package/dist/components/sc-input-icon.js +0 -8
- package/dist/components/sc-input-icon.js.map +0 -1
- package/dist/components/sc-input-label.d.ts +0 -11
- package/dist/components/sc-input-label.js +0 -8
- package/dist/components/sc-input-label.js.map +0 -1
- package/dist/components/sc-input.d.ts +0 -11
- package/dist/components/sc-input.js +0 -8
- package/dist/components/sc-input.js.map +0 -1
- package/dist/components/sc-spinner-dark.d.ts +0 -11
- package/dist/components/sc-spinner-dark.js +0 -8
- package/dist/components/sc-spinner-dark.js.map +0 -1
- package/dist/components/sc-spinner-light.d.ts +0 -11
- package/dist/components/sc-spinner-light.js +0 -8
- package/dist/components/sc-spinner-light.js.map +0 -1
- package/dist/esm/index-c97f8c28.js.map +0 -1
- package/dist/esm/sc-auto-search-form.entry.js +0 -97
- package/dist/esm/sc-auto-search-form.entry.js.map +0 -1
- package/dist/esm/sc-base-search-form_11.entry.js +0 -457
- package/dist/esm/sc-base-search-form_11.entry.js.map +0 -1
- package/dist/esm/sc-spinner-light-cdb79a33.js +0 -18
- package/dist/esm/sc-spinner-light-cdb79a33.js.map +0 -1
- package/dist/esm/sc-spinner-light.entry.js +0 -4
- package/dist/esm/sc-spinner-light.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-8e9ba2cf.js +0 -3
- package/dist/searchcraft-javascript-sdk/p-8e9ba2cf.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-94c68cce.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-94c68cce.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-9545c59a.entry.js +0 -7
- package/dist/searchcraft-javascript-sdk/p-9545c59a.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-c632f66c.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-c632f66c.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/p-f7dbb9a8.entry.js +0 -2
- package/dist/searchcraft-javascript-sdk/p-f7dbb9a8.entry.js.map +0 -1
- package/dist/types/assets/ButtonIcons.d.ts +0 -1
- package/dist/types/assets/ClearInputIcon.d.ts +0 -4
- package/dist/types/assets/SearchIcons.d.ts +0 -4
- package/dist/types/components/sc-spinner-dark/sc-spinner-dark.d.ts +0 -3
- package/dist/types/components/sc-spinner-light/sc-spinner-light.d.ts +0 -3
- /package/dist/collection/components/{sc-base-search-form/sc-base-search-form.module.css → searchcraft-base-search-form/searchcraft-base-search-form.module.css} +0 -0
- /package/dist/collection/components/{sc-base-search-result/sc-base-search-result.module.css → searchcraft-base-search-result/searchcraft-base-search-result.module.css} +0 -0
- /package/dist/collection/components/{sc-base-search-results/sc-base-search-results.module.css → searchcraft-base-search-results/searchcraft-base-search-results.module.css} +0 -0
- /package/dist/collection/components/{sc-button/sc-button.module.css → searchcraft-button/searchcraft-button.module.css} +0 -0
- /package/dist/collection/components/{sc-error-message/sc-error-message.module.css → searchcraft-error-message/searchcraft-error-message.module.css} +0 -0
- /package/dist/collection/components/{sc-input-caption/sc-input-caption.module.css → searchcraft-input-caption/searchcraft-input-caption.module.css} +0 -0
- /package/dist/collection/components/{sc-input-icon/sc-input-icon.module.css → searchcraft-input-icon/searchcraft-input-icon.module.css} +0 -0
- /package/dist/collection/components/{sc-input-label/sc-input-label.module.css → searchcraft-input-label/searchcraft-input-label.module.css} +0 -0
- /package/dist/collection/components/{sc-spinner-dark/sc-spinner-dark.module.css → searchcraft-spinner-dark/searchcraft-spinner-dark.module.css} +0 -0
- /package/dist/collection/components/{sc-spinner-light/sc-spinner-light.module.css → searchcraft-spinner-light/searchcraft-spinner-light.module.css} +0 -0
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-0d9f850d.js';
|
|
2
|
+
import { u as useSearchcraftStore, g } from './store-2370857c.js';
|
|
3
|
+
import { p as parseCustomStyles } from './utils-f221d91f.js';
|
|
4
|
+
import { c as classNames } from './index-72ac5051.js';
|
|
5
|
+
|
|
6
|
+
const searchcraftAutoSearchFormModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.formLTR{text-align:left;width:100%}.formRTL{text-align:right;width:100%}.searchContainer{align-items:center;display:flex;width:100%}";
|
|
7
|
+
const SearchcraftAutoSearchFormStyle0 = searchcraftAutoSearchFormModuleCss;
|
|
8
|
+
|
|
9
|
+
const SearchcraftAutoSearchForm = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
registerInstance(this, hostRef);
|
|
12
|
+
this.querySubmit = createEvent(this, "querySubmit", 7);
|
|
13
|
+
this.debounceTimeout = null;
|
|
14
|
+
this.debounceDelay = 300; // 300ms debounce delay
|
|
15
|
+
this.searchStore = useSearchcraftStore.getState();
|
|
16
|
+
this.handleInputChange = (event) => {
|
|
17
|
+
this.query = event.detail;
|
|
18
|
+
this.querySubmit.emit(this.query);
|
|
19
|
+
// Clear the previous debounce timeout
|
|
20
|
+
if (this.debounceTimeout) {
|
|
21
|
+
clearTimeout(this.debounceTimeout);
|
|
22
|
+
}
|
|
23
|
+
// Set a new debounce timeout
|
|
24
|
+
this.debounceTimeout = setTimeout(() => {
|
|
25
|
+
console.log('Debounced search triggered');
|
|
26
|
+
this.runSearch();
|
|
27
|
+
}, this.debounceDelay);
|
|
28
|
+
};
|
|
29
|
+
this.handleClearInput = () => {
|
|
30
|
+
this.query = '';
|
|
31
|
+
console.log('Input cleared');
|
|
32
|
+
if (typeof this.clearInput === 'function') {
|
|
33
|
+
this.clearInput();
|
|
34
|
+
}
|
|
35
|
+
if (this.debounceTimeout) {
|
|
36
|
+
clearTimeout(this.debounceTimeout);
|
|
37
|
+
}
|
|
38
|
+
this.error = false;
|
|
39
|
+
this.searchResults = '';
|
|
40
|
+
};
|
|
41
|
+
this.runSearch = async () => {
|
|
42
|
+
if (this.query.trim() === '') {
|
|
43
|
+
this.error = true;
|
|
44
|
+
this.searchResults = '';
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
this.error = false;
|
|
48
|
+
this.searchStore.setQuery(this.query);
|
|
49
|
+
try {
|
|
50
|
+
await this.searchStore.search();
|
|
51
|
+
this.searchResults = JSON.stringify(this.searchStore.searchResults);
|
|
52
|
+
}
|
|
53
|
+
catch (error) {
|
|
54
|
+
this.error = true;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
this.handleFormSubmit = async (event) => {
|
|
59
|
+
event.preventDefault();
|
|
60
|
+
await this.runSearch();
|
|
61
|
+
};
|
|
62
|
+
this.autoSearchFormClass = '';
|
|
63
|
+
this.clearInput = () => { };
|
|
64
|
+
this.config = {
|
|
65
|
+
apiKey: '',
|
|
66
|
+
endpointURL: '',
|
|
67
|
+
index: [],
|
|
68
|
+
};
|
|
69
|
+
this.customStylesForInput = {};
|
|
70
|
+
this.inputCaptionValue = '';
|
|
71
|
+
this.labelForInput = '';
|
|
72
|
+
this.placeholderValue = 'Search here';
|
|
73
|
+
this.rightToLeftOrientation = false;
|
|
74
|
+
this.searchContainerClass = '';
|
|
75
|
+
this.error = false;
|
|
76
|
+
this.query = '';
|
|
77
|
+
this.searchResults = '';
|
|
78
|
+
}
|
|
79
|
+
componentDidLoad() {
|
|
80
|
+
const searchcraft = new g(this.config);
|
|
81
|
+
this.searchStore.initialize(searchcraft, true);
|
|
82
|
+
console.log('Component initialized');
|
|
83
|
+
}
|
|
84
|
+
render() {
|
|
85
|
+
const formClass = this.rightToLeftOrientation ? 'formRTL' : 'formLTR';
|
|
86
|
+
const parsedCustomStyles = parseCustomStyles(this.customStylesForInput);
|
|
87
|
+
return (h("form", { key: '60978e813198af27c34232ebd1bda4ca4a6f5199', class: `${formClass}`, onSubmit: this.handleFormSubmit }, h("searchcraft-input-label", { key: '4418b675769d041c684f15afb2d9b919f765c133', label: this.labelForInput }), h("div", { key: '73581bf8fee7deee1bcf426f80493c78e92d8ada', class: 'searchContainer' }, h("searchcraft-input", { key: '6e90612f4fc8c773c9f98f5fcfffb303909d3c6f', customStyles: parsedCustomStyles, "input-caption-value": this.inputCaptionValue, onClearInput: this.handleClearInput, onSearchInputChange: this.handleInputChange, "placeholder-value": this.placeholderValue, query: this.query, "right-to-left-orientation": this.rightToLeftOrientation })), this.error && (h("searchcraft-error-message", { key: '1637aff0dcac83d975d9d53545e7fee26c41aa7f', errorMessage: 'Please enter a search query.' }))));
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
SearchcraftAutoSearchForm.style = SearchcraftAutoSearchFormStyle0;
|
|
91
|
+
|
|
92
|
+
const searchcraftBaseSearchResultModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.interactiveResultContainerLight{background-color:#FAFAFA;align-items:flex-start;border-radius:16px;display:flex;position:relative;flex-direction:column;gap:16px;padding:8px}@media (min-width: 600px){.interactiveResultContainerLight{flex-direction:row}}.interactiveResultContainerDark{background-color:#2E2E2E;align-items:flex-start;border-radius:16px;display:flex;position:relative;flex-direction:column;gap:16px;padding:8px}@media (min-width: 600px){.interactiveResultContainerDark{flex-direction:row}}.resultContainer{align-items:flex-start;display:flex;flex-direction:column;gap:16px}@media (min-width: 600px){.resultContainer{flex-direction:row}}.interactiveIconLarge{display:inline-block;position:absolute;right:5px;top:8px}@media (max-width: 600px){.interactiveIconLarge{display:none}}.interactiveIconSmall{position:absolute;right:5px;top:-2px;display:inline-block}@media (min-width: 600px){.interactiveIconSmall{display:none}}.imageContainer{max-height:540px;max-width:100%}@media (min-width: 600px){.imageContainer{max-height:100%;max-width:50%}}.contentContainer{max-height:100%;max-width:100%}@media (min-width: 600px){.contentContainer{max-width:50%}}.imageLight{aspect-ratio:2/1;border-radius:8px;max-height:100%;max-width:100%;border:1px solid #D9D9D9}.imageDark{aspect-ratio:2/1;border-radius:8px;max-height:100%;max-width:100%;border:1px solid #333}.headingLight{font-family:var(--font-stack);font-size:16px;font-weight:700;line-height:20px;margin-bottom:4px;margin-top:0px;position:relative;color:#292929}.headingDark{font-family:var(--font-stack);font-size:16px;font-weight:700;line-height:20px;margin-bottom:4px;margin-top:0px;position:relative;color:#FFF}.subheadingLight{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-bottom:4px;margin-top:0px;color:#737373}.subheadingDark{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-bottom:4px;margin-top:0px;color:#BFBFBF}.bodyContentLight{font-family:var(--font-stack);font-size:16px;font-weight:400;line-height:20px;margin-bottom:4px;margin-top:0px;color:#404040}.bodyContentDark{font-family:var(--font-stack);font-size:16px;font-weight:400;line-height:20px;margin-bottom:4px;margin-top:0px;color:#E6E6E6}";
|
|
93
|
+
const SearchcraftBaseSearchResultStyle0 = searchcraftBaseSearchResultModuleCss;
|
|
94
|
+
|
|
95
|
+
const SearchcraftBaseSearchResult = class {
|
|
96
|
+
constructor(hostRef) {
|
|
97
|
+
registerInstance(this, hostRef);
|
|
98
|
+
this.handleButtonClick = () => {
|
|
99
|
+
this.buttonCallbackFn();
|
|
100
|
+
};
|
|
101
|
+
this.handleContainerClick = () => {
|
|
102
|
+
if (this.interactiveResult) {
|
|
103
|
+
this.callbackFn();
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
this.buttonCallbackFn = () => { };
|
|
107
|
+
this.buttonLabel = '';
|
|
108
|
+
this.callbackFn = () => { };
|
|
109
|
+
this.imageAltText = '';
|
|
110
|
+
this.imageSrc = '';
|
|
111
|
+
this.interactiveResult = false;
|
|
112
|
+
this.keyDownCallbackFn = () => { };
|
|
113
|
+
this.resultBodyContent = '';
|
|
114
|
+
this.resultHeading = '';
|
|
115
|
+
this.resultSubheading = '';
|
|
116
|
+
this.theme = 'light';
|
|
117
|
+
}
|
|
118
|
+
render() {
|
|
119
|
+
const isLightTheme = this.theme === 'light';
|
|
120
|
+
return (h("div", { key: '26e04a559c37ac68f1dc33d3810c66abc9755871', class: this.interactiveResult
|
|
121
|
+
? isLightTheme
|
|
122
|
+
? 'interactiveResultContainerLight'
|
|
123
|
+
: 'interactiveResultContainerDark'
|
|
124
|
+
: 'resultContainer', id: 'searchcraft-item', onClick: this.handleContainerClick, onKeyDown: this.keyDownCallbackFn, tabindex: '0' }, this.interactiveResult && (h("div", { key: '7d71fd1402fdafe67370eab10ca78ed385fb58d0', class: 'interactiveIconLarge' }, isLightTheme ? (h("searchcraft-clear-icon-set", { type: 'arrow-light' })) : (h("searchcraft-clear-icon-set", { type: 'arrow-dark' })))), h("div", { key: 'def02c3134ae8a756f196d9b9e4d90180767c8f8', class: 'imageContainer' }, h("img", { key: '5fb695256132b8b53f7008d67e2f5808bf3b6d28', alt: this.imageAltText, class: isLightTheme ? 'imageLight' : 'imageDark', src: this.imageSrc })), h("div", { key: 'cf533a08bcd15832ef6f7fd385c829ce8817435d', class: 'contentContainer' }, h("h2", { key: '9d9968ab969950008e1049177fb68d5d7ae00659', class: isLightTheme ? 'headingLight' : 'headingDark' }, this.resultHeading, this.interactiveResult && (h("div", { key: '56271a305c8290ebab89eeab75a466d666f26a2c', class: 'interactiveIconSmall' }, isLightTheme ? (h("searchcraft-clear-icon-set", { type: 'arrow-light' })) : (h("searchcraft-clear-icon-set", { type: 'arrow-dark' }))))), h("h3", { key: 'ea68f1f16f6b89979b3ba90a6e061809024e3498', class: isLightTheme ? 'subheadingLight' : 'subheadingDark' }, this.resultSubheading), h("p", { key: '0584a3077ff4f417e0d20d0acc28a624f5966e1c', class: isLightTheme ? 'bodyContentLight' : 'bodyContentDark' }, this.resultBodyContent), h("button", { key: '83ec2e81bd6dbe24d468cdee553c0c5a021f991b', onClick: this.handleButtonClick, type: 'button' }, this.buttonLabel))));
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
SearchcraftBaseSearchResult.style = SearchcraftBaseSearchResultStyle0;
|
|
128
|
+
|
|
129
|
+
const searchcraftBaseSearchResultsModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.resultsContainer{display:flex;flex-direction:column;justify-content:center;margin:100px 20px}.resultsContainer>p{align-self:center}.resultsContainer>div{margin-bottom:20px}.resultsContainer>div img{height:300px;width:200px}";
|
|
130
|
+
const SearchcraftBaseSearchResultsStyle0 = searchcraftBaseSearchResultsModuleCss;
|
|
131
|
+
|
|
132
|
+
const SearchcraftBaseSearchResults = class {
|
|
133
|
+
constructor(hostRef) {
|
|
134
|
+
registerInstance(this, hostRef);
|
|
135
|
+
this.query = '';
|
|
136
|
+
this.searchResults = null;
|
|
137
|
+
}
|
|
138
|
+
componentDidLoad() {
|
|
139
|
+
// Subscribe to state changes
|
|
140
|
+
this.unsubscribe = useSearchcraftStore.subscribe((state) => {
|
|
141
|
+
console.log('Store updated:', state);
|
|
142
|
+
this.searchResults = Object.assign({}, state.searchResults);
|
|
143
|
+
this.query = state.query;
|
|
144
|
+
});
|
|
145
|
+
// Fetch initial state
|
|
146
|
+
const { searchResults, query } = useSearchcraftStore.getState();
|
|
147
|
+
console.log('Initial state:', searchResults, query);
|
|
148
|
+
this.searchResults = searchResults;
|
|
149
|
+
this.query = query;
|
|
150
|
+
}
|
|
151
|
+
disconnectedCallback() {
|
|
152
|
+
if (this.unsubscribe) {
|
|
153
|
+
this.unsubscribe();
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
render() {
|
|
157
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
158
|
+
if (!((_a = this.searchResults) === null || _a === void 0 ? void 0 : _a.data)) {
|
|
159
|
+
console.warn('No search results data available');
|
|
160
|
+
return h("div", null, "No results to display.");
|
|
161
|
+
}
|
|
162
|
+
return (h("div", { class: 'resultsContainer' }, (_d = (_c = (_b = this.searchResults) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.hits) === null || _d === void 0 ? void 0 :
|
|
163
|
+
_d.map((document, index) => {
|
|
164
|
+
const { doc: result } = document;
|
|
165
|
+
return (h("searchcraft-base-search-result", { key: `${result === null || result === void 0 ? void 0 : result.id}-${index}`, "button-label": 'View More', "callback-fn": () => console.log('interactive element'), "button-callback-fn": () => console.log('button callback'), "interactive-result": true, "image-src": result === null || result === void 0 ? void 0 : result.poster, "result-body-content": result === null || result === void 0 ? void 0 : result.overview, "result-heading": result === null || result === void 0 ? void 0 : result.title, "result-subheading": result === null || result === void 0 ? void 0 : result.release_date }));
|
|
166
|
+
}), this.query.length > 0 &&
|
|
167
|
+
((_g = (_f = (_e = this.searchResults) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.hits) === null || _g === void 0 ? void 0 : _g.length) === 0 && (h("searchcraft-error-message", { "error-message": `No search results found for "${this.query}" query` }))));
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
SearchcraftBaseSearchResults.style = SearchcraftBaseSearchResultsStyle0;
|
|
171
|
+
|
|
172
|
+
const SearchcraftClearIconSet = class {
|
|
173
|
+
constructor(hostRef) {
|
|
174
|
+
registerInstance(this, hostRef);
|
|
175
|
+
this.type = 'clear-light';
|
|
176
|
+
}
|
|
177
|
+
render() {
|
|
178
|
+
switch (this.type) {
|
|
179
|
+
case 'clear-light':
|
|
180
|
+
return (h("svg", { width: '22', height: '22', viewBox: '0 0 22 22', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', "aria-labelledby": 'icon-title' }, h("title", { id: 'icon-title' }, "Searchcraft Clear Input Icon Light"), h("path", { d: 'M14 8L8 14M8 8L14 14M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z', stroke: 'black', "stroke-width": '1.5', "stroke-linecap": 'round', "stroke-linejoin": 'round' })));
|
|
181
|
+
case 'clear-dark':
|
|
182
|
+
return (h("svg", { width: '22', height: '22', viewBox: '0 0 22 22', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', "aria-labelledby": 'icon-title' }, h("title", { id: 'icon-title' }, "Searchcraft Clear Input Icon Dark"), h("path", { d: 'M14 8L8 14M8 8L14 14M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z', stroke: 'white', "stroke-width": '1.5', "stroke-linecap": 'round', "stroke-linejoin": 'round' })));
|
|
183
|
+
case 'arrow-light':
|
|
184
|
+
return (h("svg", { width: '20', height: '21', viewBox: '0 0 20 21', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', "aria-labelledby": 'icon-title' }, h("title", { id: 'icon-title' }, "Searchcraft Arrow Right Icon Light"), h("path", { d: 'M7.5 15.0444L12.5 10.0444L7.5 5.04443', stroke: '#737373', "stroke-width": '1.5', "stroke-linecap": 'round', "stroke-linejoin": 'round' })));
|
|
185
|
+
case 'arrow-dark':
|
|
186
|
+
return (h("svg", { width: '8', height: '12', viewBox: '0 0 8 12', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', "aria-labelledby": 'icon-title' }, h("title", { id: 'icon-title' }, "Searchcraft Arrow Right Icon Dark"), h("path", { d: 'M1.5 11L6.5 6L1.5 1', stroke: '#BFBFBF', "stroke-width": '1.5', "stroke-linecap": 'round', "stroke-linejoin": 'round' })));
|
|
187
|
+
default:
|
|
188
|
+
return null;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
const searchcraftClearInputButtonModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.inputClearButtonLTR{align-items:center;background:none;border:none;display:flex;height:20px;justify-content:center;padding:0;position:absolute;right:25px;top:50%;transform:translateY(-50%);width:20px}.inputClearButtonRTL{align-items:center;background:none;border:none;display:flex;height:20px;justify-content:center;left:25px;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:20px}";
|
|
194
|
+
const SearchcraftClearInputButtonStyle0 = searchcraftClearInputButtonModuleCss;
|
|
195
|
+
|
|
196
|
+
const SearchcraftClearInputButton = class {
|
|
197
|
+
constructor(hostRef) {
|
|
198
|
+
registerInstance(this, hostRef);
|
|
199
|
+
this.clearInput = createEvent(this, "clearInput", 7);
|
|
200
|
+
// Added a click handler to emit the event
|
|
201
|
+
this.handleClearClick = (event) => {
|
|
202
|
+
event.preventDefault(); // Prevent default if necessary
|
|
203
|
+
this.clearInput.emit(); // Emit the event
|
|
204
|
+
};
|
|
205
|
+
this.isRequesting = false;
|
|
206
|
+
this.rightToLeftOrientation = false;
|
|
207
|
+
this.theme = 'light';
|
|
208
|
+
}
|
|
209
|
+
isLightTheme() {
|
|
210
|
+
return this.theme === 'light';
|
|
211
|
+
}
|
|
212
|
+
render() {
|
|
213
|
+
return this.rightToLeftOrientation ? (h("button", { class: classNames('inputClearButtonRTL', '.sc-clear-input-button-rtl'), onClick: this.handleClearClick, type: 'button' }, this.isRequesting ? (this.isLightTheme ? (h("searchcraft-spinner-light", null)) : (h("searchcraft-spinner-dark", null))) : this.isLightTheme ? (h("searchcraft-clear-icon-set", { type: 'clear-light' })) : (h("searchcraft-clear-icon-set", { type: 'clear-dark' })))) : (h("button", { class: classNames('inputClearButtonLTR', '.sc-clear-input-button-ltr'), onClick: this.handleClearClick, type: 'button' }, this.isRequesting ? (this.isLightTheme ? (h("searchcraft-spinner-light", null)) : (h("searchcraft-spinner-dark", null))) : this.isLightTheme ? (h("searchcraft-clear-icon-set", { type: 'clear-light' })) : (h("searchcraft-clear-icon-set", { type: 'clear-dark' }))));
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
SearchcraftClearInputButton.style = SearchcraftClearInputButtonStyle0;
|
|
217
|
+
|
|
218
|
+
const searchcraftErrorMessageModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.errorMessageLight{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#990000}.errorMessageDark{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#FFB3B3}";
|
|
219
|
+
const SearchcraftErrorMessageStyle0 = searchcraftErrorMessageModuleCss;
|
|
220
|
+
|
|
221
|
+
const SearchcraftErrorMessage = class {
|
|
222
|
+
constructor(hostRef) {
|
|
223
|
+
registerInstance(this, hostRef);
|
|
224
|
+
this.errorMessage = undefined;
|
|
225
|
+
this.theme = 'light';
|
|
226
|
+
}
|
|
227
|
+
render() {
|
|
228
|
+
const errorMessageStyle = this.theme === 'light' ? 'errorMessageLight' : 'errorMessageDark';
|
|
229
|
+
return (h("p", { key: '544903d700810ed5d6efdefedab646cafed2376d', class: classNames(errorMessageStyle) }, this.errorMessage || 'Search term is required.'));
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
SearchcraftErrorMessage.style = SearchcraftErrorMessageStyle0;
|
|
233
|
+
|
|
234
|
+
const searchcraftInputModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.inputContainerLTR{position:relative;width:100%}.inputContainerRTL{position:relative;width:100%;margin-left:8px}.inputLightLTR{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#EDEDED;color:#292929;margin-right:8px;padding-left:36px;padding-right:16px}.inputLightLTR::placeholder{font-family:var(--font-stack);font-size:16px}.inputLightLTR::placeholder{color:#737373}.inputLightLTR:focus{outline:2px solid #000}.inputDarkLTR{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#1A1A1A;color:#FFF;margin-right:8px;padding-left:36px;padding-right:16px}.inputDarkLTR::placeholder{font-family:var(--font-stack);font-size:16px}.inputDarkLTR::placeholder{color:#BFBFBF}.inputDarkLTR:focus{outline:2px solid #FFF}.inputErrorLightLTR{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#EDEDED;color:#292929;outline:2px solid #c00;margin-right:8px;padding-left:36px;padding-right:16px}.inputErrorLightLTR::placeholder{font-family:var(--font-stack);font-size:16px}.inputErrorLightLTR::placeholder{color:#737373}.inputErrorLightLTR:focus{outline:2px solid #000}.inputErrorLightLTR:focus-visible{outline:2px solid #c00}.inputErrorDarkLTR{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#1A1A1A;color:#FFF;outline:2px solid #FFB3B3;margin-right:8px;padding-left:36px;padding-right:16px}.inputErrorDarkLTR::placeholder{font-family:var(--font-stack);font-size:16px}.inputErrorDarkLTR::placeholder{color:#BFBFBF}.inputErrorDarkLTR:focus{outline:2px solid #FFF}.inputErrorDarkLTR:focus-visible{outline:2px solid #FFB3B3}.inputLightRTL{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#EDEDED;color:#292929;margin-left:8px;padding-left:16px;padding-right:36px;text-align:right}.inputLightRTL::placeholder{font-family:var(--font-stack);font-size:16px}.inputLightRTL::placeholder{color:#737373}.inputLightRTL:focus{outline:2px solid #000}.inputDarkRTL{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#1A1A1A;color:#FFF;margin-left:8px;padding-left:16px;padding-right:36px;text-align:right}.inputDarkRTL::placeholder{font-family:var(--font-stack);font-size:16px}.inputDarkRTL::placeholder{color:#BFBFBF}.inputDarkRTL:focus{outline:2px solid #FFF}.inputErrorLightRTL{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#EDEDED;color:#292929;outline:2px solid #c00;margin-left:8px;padding-left:16px;padding-right:36px;text-align:right}.inputErrorLightRTL::placeholder{font-family:var(--font-stack);font-size:16px}.inputErrorLightRTL::placeholder{color:#737373}.inputErrorLightRTL:focus{outline:2px solid #000}.inputErrorLightRTL:focus-visible{outline:2px solid #c00}.inputErrorDarkRTL{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#1A1A1A;color:#FFF;outline:2px solid #FFB3B3;margin-left:8px;padding-left:16px;padding-right:36px;text-align:right}.inputErrorDarkRTL::placeholder{font-family:var(--font-stack);font-size:16px}.inputErrorDarkRTL::placeholder{color:#BFBFBF}.inputErrorDarkRTL:focus{outline:2px solid #FFF}.inputErrorDarkRTL:focus-visible{outline:2px solid #FFB3B3}.inputWrapper{align-items:center;display:flex;position:relative;width:100%}";
|
|
235
|
+
const SearchcraftInputStyle0 = searchcraftInputModuleCss;
|
|
236
|
+
|
|
237
|
+
const SearchcraftInput = class {
|
|
238
|
+
constructor(hostRef) {
|
|
239
|
+
registerInstance(this, hostRef);
|
|
240
|
+
this.clearInput = createEvent(this, "clearInput", 7);
|
|
241
|
+
this.searchInputChange = createEvent(this, "searchInputChange", 7);
|
|
242
|
+
this.customStyles = {};
|
|
243
|
+
this.error = false;
|
|
244
|
+
this.formClassName = '';
|
|
245
|
+
this.inputCaptionClassName = '';
|
|
246
|
+
this.inputCaptionValue = '';
|
|
247
|
+
this.inputClassName = '';
|
|
248
|
+
this.placeholderValue = 'Enter Search';
|
|
249
|
+
this.rightToLeftOrientation = false;
|
|
250
|
+
this.query = '';
|
|
251
|
+
this.theme = 'light';
|
|
252
|
+
}
|
|
253
|
+
get isLightTheme() {
|
|
254
|
+
return this.theme === 'light';
|
|
255
|
+
}
|
|
256
|
+
handleInputChange(event) {
|
|
257
|
+
const input = event.target;
|
|
258
|
+
this.searchInputChange.emit(input.value);
|
|
259
|
+
}
|
|
260
|
+
handleClearInput() {
|
|
261
|
+
if (this.clearInput) {
|
|
262
|
+
this.clearInput.emit();
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
render() {
|
|
266
|
+
const containerClassName = this.rightToLeftOrientation
|
|
267
|
+
? 'inputContainerRTL'
|
|
268
|
+
: 'inputContainerLTR';
|
|
269
|
+
const inputClassName = classNames(this.error
|
|
270
|
+
? this.isLightTheme
|
|
271
|
+
? 'inputErrorLightRTL'
|
|
272
|
+
: 'inputErrorDarkRTL'
|
|
273
|
+
: this.isLightTheme
|
|
274
|
+
? 'inputLightLTR'
|
|
275
|
+
: 'inputDarkLTR', 'searchcraft-input');
|
|
276
|
+
const validatedCustomStyles = parseCustomStyles(this.customStyles);
|
|
277
|
+
const placeholderStyle = {
|
|
278
|
+
fontSize: validatedCustomStyles.placeholderFontSize || '16px',
|
|
279
|
+
};
|
|
280
|
+
return (h("div", { key: '3a3fa1335552c53967d35219819024377e726d80', class: classNames(containerClassName, this.formClassName, 'searchcraft-input-form') }, this.rightToLeftOrientation ? (h(Fragment, null, h("input", { class: classNames(inputClassName, 'searchcraft-input'), id: 'searchcraft-input-id', onChange: this.handleInputChange.bind(this), placeholder: this.placeholderValue, type: 'text', value: this.query, style: validatedCustomStyles }), h("style", null, `
|
|
281
|
+
#searchcraft-input-id::placeholder {
|
|
282
|
+
font-size: ${placeholderStyle.fontSize};
|
|
283
|
+
}
|
|
284
|
+
`), this.inputCaptionValue && (h("searchcraft-input-caption", { inputCaptionClassName: this.inputCaptionClassName, inputCaptionValue: this.inputCaptionValue, rightToLeftOrientation: this.rightToLeftOrientation })), this.query.length > 0 && (h("searchcraft-clear-input-button", { onClearInput: this.handleClearInput, rightToLeftOrientation: this.rightToLeftOrientation })), h("searchcraft-input-icon", { error: this.error, rightToLeftOrientation: this.rightToLeftOrientation }))) : (h("div", { class: 'inputWrapper' }, h("searchcraft-input-icon", { error: this.error, rightToLeftOrientation: this.rightToLeftOrientation }), h("input", { class: classNames(inputClassName, 'searchcraft-input'), id: 'searchcraft-input-id', onChange: this.handleInputChange.bind(this), placeholder: this.placeholderValue, type: 'text', value: this.query, style: validatedCustomStyles }), h("style", null, `
|
|
285
|
+
#searchcraft-input-id::placeholder {
|
|
286
|
+
font-size: ${placeholderStyle.fontSize};
|
|
287
|
+
}
|
|
288
|
+
`), this.inputCaptionValue && (h("searchcraft-input-caption", { inputCaptionClassName: this.inputCaptionClassName, inputCaptionValue: this.inputCaptionValue, rightToLeftOrientation: this.rightToLeftOrientation })), this.query.length > 0 && (h("searchcraft-clear-input-button", { onClearInput: this.handleClearInput, rightToLeftOrientation: this.rightToLeftOrientation }))))));
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
SearchcraftInput.style = SearchcraftInputStyle0;
|
|
292
|
+
|
|
293
|
+
const searchcraftInputCaptionModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.inputCaptionLightLTR{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#404040}.inputCaptionDarkLTR{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#E6E6E6}.inputCaptionErrorLightLTR{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#990000}.inputCaptionErrorDarkLTR{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#FFB3B3}.inputCaptionLightRTL{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#404040;text-align:right}.inputCaptionDarkRTL{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#E6E6E6;text-align:right}.inputCaptionErrorLightRTL{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#990000;text-align:right}.inputCaptionErrorDarkRTL{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#FFB3B3;text-align:right}";
|
|
294
|
+
const SearchcraftInputCaptionStyle0 = searchcraftInputCaptionModuleCss;
|
|
295
|
+
|
|
296
|
+
const SearchcraftInputCaption = class {
|
|
297
|
+
constructor(hostRef) {
|
|
298
|
+
registerInstance(this, hostRef);
|
|
299
|
+
this.error = undefined;
|
|
300
|
+
this.inputCaptionClassName = '';
|
|
301
|
+
this.inputCaptionValue = 'Enter Search';
|
|
302
|
+
this.rightToLeftOrientation = false;
|
|
303
|
+
this.theme = 'light';
|
|
304
|
+
}
|
|
305
|
+
isLightTheme() {
|
|
306
|
+
return this.theme === 'light';
|
|
307
|
+
}
|
|
308
|
+
render() {
|
|
309
|
+
return this.rightToLeftOrientation ? (h("p", { class: classNames(this.error
|
|
310
|
+
? this.isLightTheme
|
|
311
|
+
? 'inputCaptionErrorLightRTL'
|
|
312
|
+
: 'inputCaptionErrorDarkRTL'
|
|
313
|
+
: this.isLightTheme
|
|
314
|
+
? 'inputCaptionLightRTL'
|
|
315
|
+
: 'inputCaptionDarkRTL', this.inputCaptionClassName, '.searchcraft-input-caption') }, this.inputCaptionValue)) : (h("p", { class: classNames(this.error
|
|
316
|
+
? this.isLightTheme
|
|
317
|
+
? 'inputCaptionErrorLightLTR'
|
|
318
|
+
: 'inputCaptionErrorDarkLTR'
|
|
319
|
+
: this.isLightTheme
|
|
320
|
+
? 'inputCaptionLightLTR'
|
|
321
|
+
: 'inputCaptionDarkLTR', this.inputCaptionClassName, '.searchcraft-input-caption') }, this.inputCaptionValue));
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
SearchcraftInputCaption.style = SearchcraftInputCaptionStyle0;
|
|
325
|
+
|
|
326
|
+
const searchcraftInputIconModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.inputIconLTR{height:20px;left:10px;position:absolute;top:11px;width:20px}.inputIconRTL{height:20px;position:absolute;right:10px;top:11px;width:20px}";
|
|
327
|
+
const SearchcraftInputIconStyle0 = searchcraftInputIconModuleCss;
|
|
328
|
+
|
|
329
|
+
const SearchcraftInputIcon = class {
|
|
330
|
+
constructor(hostRef) {
|
|
331
|
+
registerInstance(this, hostRef);
|
|
332
|
+
this.error = undefined;
|
|
333
|
+
this.rightToLeftOrientation = false;
|
|
334
|
+
this.theme = 'light';
|
|
335
|
+
}
|
|
336
|
+
isLightTheme() {
|
|
337
|
+
return this.theme === 'light';
|
|
338
|
+
}
|
|
339
|
+
render() {
|
|
340
|
+
return this.error ? (h("div", { class: this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR' }, this.isLightTheme ? (h("searchcraft-search-icon-set", { type: 'error-light' })) : (h("searchcraft-search-icon-set", { type: 'error-dark' })))) : (h("div", { class: this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR' }, this.isLightTheme ? (h("searchcraft-search-icon-set", { type: 'search-light' })) : (h("searchcraft-search-icon-set", { type: 'search-dark' }))));
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
SearchcraftInputIcon.style = SearchcraftInputIconStyle0;
|
|
344
|
+
|
|
345
|
+
const searchcraftInputLabelModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.labelLight{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#292929}.labelDark{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#FFF}";
|
|
346
|
+
const SearchcraftInputLabelStyle0 = searchcraftInputLabelModuleCss;
|
|
347
|
+
|
|
348
|
+
const SearchcraftInputLabel = class {
|
|
349
|
+
constructor(hostRef) {
|
|
350
|
+
registerInstance(this, hostRef);
|
|
351
|
+
this.inputLabelClassName = '';
|
|
352
|
+
this.label = undefined;
|
|
353
|
+
this.theme = 'light';
|
|
354
|
+
}
|
|
355
|
+
isLightTheme() {
|
|
356
|
+
return this.theme === 'light';
|
|
357
|
+
}
|
|
358
|
+
render() {
|
|
359
|
+
// Render nothing if no label prop is provided
|
|
360
|
+
if (!this.label) {
|
|
361
|
+
return null;
|
|
362
|
+
}
|
|
363
|
+
const labelStyle = this.isLightTheme() ? 'labelLight' : 'labelDark';
|
|
364
|
+
return (h("label", { class: classNames(labelStyle, this.inputLabelClassName), htmlFor: 'searchcraft-input-id' }, this.label));
|
|
365
|
+
}
|
|
366
|
+
};
|
|
367
|
+
SearchcraftInputLabel.style = SearchcraftInputLabelStyle0;
|
|
368
|
+
|
|
369
|
+
const SearchcraftSearchIconSet = class {
|
|
370
|
+
constructor(hostRef) {
|
|
371
|
+
registerInstance(this, hostRef);
|
|
372
|
+
this.type = 'search-dark';
|
|
373
|
+
}
|
|
374
|
+
render() {
|
|
375
|
+
switch (this.type) {
|
|
376
|
+
case 'search-light':
|
|
377
|
+
return (h("svg", { width: '20', height: '20', viewBox: '0 0 20 20', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', "aria-labelledby": 'searchcraft-title' }, h("title", { id: 'searchcraft-title' }, "Searchcraft Search Icon Light"), h("path", { d: 'M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z', stroke: '#404040', "stroke-width": '1.5', "stroke-linecap": 'round', "stroke-linejoin": 'round' })));
|
|
378
|
+
case 'search-dark':
|
|
379
|
+
return (h("svg", { width: '18', height: '18', viewBox: '0 0 18 18', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', "aria-labelledby": 'searchcraft-title' }, h("title", { id: 'searchcraft-title' }, "Searchcraft Search Icon Dark"), h("path", { d: 'M16.5 16.5L12.875 12.875M14.8333 8.16667C14.8333 11.8486 11.8486 14.8333 8.16667 14.8333C4.48477 14.8333 1.5 11.8486 1.5 8.16667C1.5 4.48477 4.48477 1.5 8.16667 1.5C11.8486 1.5 14.8333 4.48477 14.8333 8.16667Z', stroke: '#E6E6E6', "stroke-width": '1.5', "stroke-linecap": 'round', "stroke-linejoin": 'round' })));
|
|
380
|
+
case 'error-light':
|
|
381
|
+
return (h("svg", { width: '20', height: '20', viewBox: '0 0 20 20', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', "aria-labelledby": 'searchcraft-title' }, h("title", { id: 'searchcraft-title' }, "Searchcraft Error Search Icon Light"), h("path", { d: 'M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z', stroke: '#737373', "stroke-width": '1.5', "stroke-linecap": 'round', "stroke-linejoin": 'round' })));
|
|
382
|
+
case 'error-dark':
|
|
383
|
+
return (h("svg", { width: '18', height: '18', viewBox: '0 0 18 18', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', "aria-labelledby": 'searchcraft-title' }, h("title", { id: 'searchcraft-title' }, "Searchcraft Error Search Icon Dark"), h("path", { d: 'M16.5 16.5L12.875 12.875M14.8333 8.16667C14.8333 11.8486 11.8486 14.8333 8.16667 14.8333C4.48477 14.8333 1.5 11.8486 1.5 8.16667C1.5 4.48477 4.48477 1.5 8.16667 1.5C11.8486 1.5 14.8333 4.48477 14.8333 8.16667Z', stroke: '#BFBFBF', "stroke-width": '1.5', "stroke-linecap": 'round', "stroke-linejoin": 'round' })));
|
|
384
|
+
default:
|
|
385
|
+
return null;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
const searchcraftSpinnerDarkModuleCss = ".spinnerContainer{background-color:transparent;height:20px;width:20px}.spinnerDark{height:100%;width:100%;background:conic-gradient(#000 50%, #FFFFFF);clip-path:circle(50%);mask-image:radial-gradient(circle at center, rgba(0, 0, 0, 0) 6.6666666667px, rgb(0, 0, 0) 6.6666666667px);animation:spinning 1s linear infinite}.spinnerLight{height:100%;width:100%;background:conic-gradient(#737373 50%, #FFFFFF);clip-path:circle(50%);mask-image:radial-gradient(circle at center, rgba(0, 0, 0, 0) 6.6666666667px, rgb(0, 0, 0) 6.6666666667px);animation:spinning 1s linear infinite}@keyframes spinning{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}100%{transform:rotate(360deg)}}";
|
|
391
|
+
const SearchcraftSpinnerDarkStyle0 = searchcraftSpinnerDarkModuleCss;
|
|
392
|
+
|
|
393
|
+
const SearchcraftSpinnerDark = class {
|
|
394
|
+
constructor(hostRef) {
|
|
395
|
+
registerInstance(this, hostRef);
|
|
396
|
+
}
|
|
397
|
+
render() {
|
|
398
|
+
return (h("div", { key: '60b629930c2e2795236f6768b40c95ce9390e882', class: 'spinnerContainer' }, h("div", { key: 'bfef3329f2e81ecf6538738ac0213da6259dd1c3', class: 'spinnerDark' })));
|
|
399
|
+
}
|
|
400
|
+
};
|
|
401
|
+
SearchcraftSpinnerDark.style = SearchcraftSpinnerDarkStyle0;
|
|
402
|
+
|
|
403
|
+
const searchcraftSpinnerLightModuleCss = ".spinnerContainer{background-color:transparent;height:20px;width:20px}.spinnerLight{height:100%;width:100%;background:conic-gradient(#737373 50%, #FFFFFF);clip-path:circle(50%);mask-image:radial-gradient(circle at center, rgba(0, 0, 0, 0) 6.6666666667px, rgb(0, 0, 0) 6.6666666667px);animation:spinning 1s linear infinite}@keyframes spinning{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}100%{transform:rotate(360deg)}}";
|
|
404
|
+
const SearchcraftSpinnerLightStyle0 = searchcraftSpinnerLightModuleCss;
|
|
405
|
+
|
|
406
|
+
const SearchcraftSpinnerLight = class {
|
|
407
|
+
constructor(hostRef) {
|
|
408
|
+
registerInstance(this, hostRef);
|
|
409
|
+
}
|
|
410
|
+
render() {
|
|
411
|
+
return (h("div", { key: 'ad5224c97faf7e329d2a8904488c17dfd7414b9e', class: 'spinnerContainer' }, h("div", { key: '6336ce7737af65eedac46ee290b20291ce5b6096', class: 'spinnerLight' })));
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
SearchcraftSpinnerLight.style = SearchcraftSpinnerLightStyle0;
|
|
415
|
+
|
|
416
|
+
export { SearchcraftAutoSearchForm as searchcraft_auto_search_form, SearchcraftBaseSearchResult as searchcraft_base_search_result, SearchcraftBaseSearchResults as searchcraft_base_search_results, SearchcraftClearIconSet as searchcraft_clear_icon_set, SearchcraftClearInputButton as searchcraft_clear_input_button, SearchcraftErrorMessage as searchcraft_error_message, SearchcraftInput as searchcraft_input, SearchcraftInputCaption as searchcraft_input_caption, SearchcraftInputIcon as searchcraft_input_icon, SearchcraftInputLabel as searchcraft_input_label, SearchcraftSearchIconSet as searchcraft_search_icon_set, SearchcraftSpinnerDark as searchcraft_spinner_dark, SearchcraftSpinnerLight as searchcraft_spinner_light };
|
|
417
|
+
|
|
418
|
+
//# sourceMappingURL=searchcraft-auto-search-form_13.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"searchcraft-auto-search-form.searchcraft-base-search-result.searchcraft-base-search-results.searchcraft-clear-icon-set.searchcraft-clear-input-button.searchcraft-error-message.searchcraft-input.searchcraft-input-caption.searchcraft-input-icon.searchcraft-input-label.searchcraft-search-icon-set.searchcraft-spinner-dark.searchcraft-spinner-light.entry.js","mappings":";;;;;AAAA,MAAM,kCAAkC,GAAG,uLAAuL,CAAC;AACnO,wCAAe,kCAAkC;;MCqBpC,yBAAyB;;;;QAqB5B,oBAAe,GAAyC,IAAI,CAAC;QAC7D,kBAAa,GAAG,GAAG,CAAC;QACpB,gBAAW,GAAG,mB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Ae,+BAA+B;;MCMjC,sBAAsB;;;;IACjC,MAAM;QACJ,QACE,4DAAK,KAAK,EAAC,kBAAkB,IAC3B,4DAAK,KAAK,EAAC,aAAa,GAAG,CACvB,EACN;KACH;;;;ACdH,MAAM,gCAAgC,GAAG,8aAA8a,CAAC;AACxd,sCAAe,gCAAgC;;MCMlC,uBAAuB;;;;IAClC,MAAM;QACJ,QACE,4DAAK,KAAK,EAAC,kBAAkB,IAC3B,4DAAK,KAAK,EAAC,cAAc,GAAG,CACxB,EACN;KACH;;;;;;","names":["SearchcraftCore"],"sources":["src/components/searchcraft-auto-search-form/searchcraft-auto-search-form.module.scss?tag=searchcraft-auto-search-form&encapsulation=shadow","src/components/searchcraft-auto-search-form/searchcraft-auto-search-form.tsx","src/components/searchcraft-base-search-result/searchcraft-base-search-result.module.scss?tag=searchcraft-base-search-result&encapsulation=shadow","src/components/searchcraft-base-search-result/searchcraft-base-search-result.tsx","src/components/searchcraft-base-search-results/searchcraft-base-search-results.module.scss?tag=searchcraft-base-search-results&encapsulation=shadow","src/components/searchcraft-base-search-results/searchcraft-base-search-results.tsx","src/assets/searchcraft-clear-icon-set.tsx","src/components/searchcraft-clear-input-button/searchcraft-clear-input-button.module.scss?tag=searchcraft-clear-input-button&encapsulation=shadow","src/components/searchcraft-clear-input-button/searchcraft-clear-input-button.tsx","src/components/searchcraft-error-message/searchcraft-error-message.module.scss?tag=searchcraft-error-message&encapsulation=shadow","src/components/searchcraft-error-message/searchcraft-error-message.tsx","src/components/searchcraft-input/searchcraft-input.module.scss?tag=searchcraft-input&encapsulation=shadow","src/components/searchcraft-input/searchcraft-input.tsx","src/components/searchcraft-input-caption/searchcraft-input-caption.module.scss?tag=searchcraft-input-caption&encapsulation=shadow","src/components/searchcraft-input-caption/searchcraft-input-caption.tsx","src/components/searchcraft-input-icon/searchcraft-input-icon.module.scss?tag=searchcraft-input-icon&encapsulation=shadow","src/components/searchcraft-input-icon/searchcraft-input-icon.tsx","src/components/searchcraft-input-label/searchcraft-input-label.module.scss?tag=searchcraft-input-label&encapsulation=shadow","src/components/searchcraft-input-label/searchcraft-input-label.tsx","src/assets/searchcraft-search-icon-set.tsx","src/components/searchcraft-spinner-dark/searchcraft-spinner-dark.module.scss?tag=searchcraft-spinner-dark&encapsulation=shadow","src/components/searchcraft-spinner-dark/searchcraft-spinner-dark.tsx","src/components/searchcraft-spinner-light/searchcraft-spinner-light.module.scss?tag=searchcraft-spinner-light&encapsulation=shadow","src/components/searchcraft-spinner-light/searchcraft-spinner-light.tsx"],"sourcesContent":[":root {\n --font-stack: Helvetica, Arial, sans-serif;\n}\n\n.formLTR {\n text-align: left;\n width: 100%;\n}\n\n.formRTL {\n text-align: right;\n width: 100%;\n}\n\n.searchContainer {\n align-items: center;\n display: flex;\n width: 100%;\n}","import {\n Component,\n Prop,\n State,\n Event,\n type EventEmitter,\n h,\n} from '@stencil/core';\nimport {\n type CoreConfigSDK,\n CoreSDK as SearchcraftCore,\n} from '@searchcraft/core';\n\nimport type { ScInputCustomEvent } from '@components/searchcraft-input/searchcraft-input';\nimport { parseCustomStyles } from '@utils/utils';\nimport { useSearchcraftStore } from '@provider/store';\n\n@Component({\n tag: 'searchcraft-auto-search-form',\n styleUrl: 'searchcraft-auto-search-form.module.scss',\n shadow: true,\n})\nexport class SearchcraftAutoSearchForm {\n @Prop() autoSearchFormClass = '';\n @Prop() clearInput: () => void = () => {};\n @Prop() config: CoreConfigSDK = {\n apiKey: '',\n endpointURL: '',\n index: [],\n };\n @Prop() customStylesForInput: string | Record<string, string> = {};\n @Prop() inputCaptionValue = '';\n @Prop() labelForInput = '';\n @Prop() placeholderValue = 'Search here';\n @Prop() rightToLeftOrientation = false;\n @Prop() searchContainerClass = '';\n\n @Event() querySubmit: EventEmitter<string>;\n\n @State() error = false;\n @State() query = '';\n @State() searchResults = '';\n\n private debounceTimeout: ReturnType<typeof setTimeout> | null = null;\n private debounceDelay = 300; // 300ms debounce delay\n private searchStore = useSearchcraftStore.getState();\n\n componentDidLoad() {\n const searchcraft = new SearchcraftCore(this.config);\n this.searchStore.initialize(searchcraft, true);\n console.log('Component initialized');\n }\n\n handleInputChange = (event: ScInputCustomEvent<string>) => {\n this.query = event.detail;\n this.querySubmit.emit(this.query);\n\n // Clear the previous debounce timeout\n if (this.debounceTimeout) {\n clearTimeout(this.debounceTimeout);\n }\n\n // Set a new debounce timeout\n this.debounceTimeout = setTimeout(() => {\n console.log('Debounced search triggered');\n this.runSearch();\n }, this.debounceDelay);\n };\n\n handleClearInput = () => {\n this.query = '';\n console.log('Input cleared');\n\n if (typeof this.clearInput === 'function') {\n this.clearInput();\n }\n\n if (this.debounceTimeout) {\n clearTimeout(this.debounceTimeout);\n }\n\n this.error = false;\n this.searchResults = '';\n };\n\n private runSearch = async () => {\n if (this.query.trim() === '') {\n this.error = true;\n this.searchResults = '';\n } else {\n this.error = false;\n this.searchStore.setQuery(this.query);\n\n try {\n await this.searchStore.search();\n this.searchResults = JSON.stringify(this.searchStore.searchResults);\n } catch (error) {\n this.error = true;\n }\n }\n };\n\n handleFormSubmit = async (event: Event) => {\n event.preventDefault();\n await this.runSearch();\n };\n\n render() {\n const formClass = this.rightToLeftOrientation ? 'formRTL' : 'formLTR';\n const parsedCustomStyles = parseCustomStyles(this.customStylesForInput);\n return (\n <form class={`${formClass}`} onSubmit={this.handleFormSubmit}>\n <searchcraft-input-label label={this.labelForInput} />\n <div class='searchContainer'>\n <searchcraft-input\n customStyles={parsedCustomStyles}\n input-caption-value={this.inputCaptionValue}\n onClearInput={this.handleClearInput}\n onSearchInputChange={this.handleInputChange}\n placeholder-value={this.placeholderValue}\n query={this.query}\n right-to-left-orientation={this.rightToLeftOrientation}\n />\n </div>\n {this.error && (\n <searchcraft-error-message errorMessage='Please enter a search query.' />\n )}\n </form>\n );\n }\n}\n","@import '../../utils/theme';\n\n:root {\n --font-stack: Helvetica, Arial, sans-serif;\n}\n\n@mixin interactive-result-container-base {\n align-items: flex-start;\n border-radius: 16px;\n display: flex;\n position: relative;\n flex-direction: column;\n gap: 16px;\n padding: 8px;\n\n @media (min-width: 600px) {\n flex-direction: row;\n }\n}\n\n.interactiveResultContainerLight {\n background-color: $light-search-result-container-background;\n @include interactive-result-container-base;\n}\n\n.interactiveResultContainerDark {\n background-color: $dark-search-result-container-background;\n @include interactive-result-container-base;\n}\n\n.resultContainer {\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: 16px;\n\n @media (min-width: 600px) {\n flex-direction: row;\n }\n}\n\n.interactiveIconLarge {\n display: inline-block;\n position: absolute;\n right: 5px;\n top: 8px;\n\n\n @media (max-width: 600px) {\n display: none;\n }\n}\n\n.interactiveIconSmall {\n position: absolute;\n right: 5px;\n top: -2px;\n display: inline-block;\n\n\n @media (min-width: 600px) {\n display: none;\n }\n}\n\n.imageContainer {\n max-height: 540px;\n max-width: 100%;\n\n @media (min-width: 600px) {\n max-height: 100%;\n max-width: 50%;\n }\n}\n\n.contentContainer {\n max-height: 100%;\n max-width: 100%;\n\n @media (min-width: 600px) {\n max-width: 50%;\n }\n}\n\n@mixin image-base {\n aspect-ratio: 2 / 1;\n border-radius: 8px;\n max-height: 100%;\n max-width: 100%;\n}\n\n.imageLight {\n @include image-base;\n border: 1px solid $light-search-result-image-border;\n}\n\n.imageDark {\n @include image-base;\n border: 1px solid $dark-search-result-image-border;\n}\n\n@mixin heading-base {\n font-family: var(--font-stack);\n font-size: 16px;\n font-weight: 700;\n line-height: 20px;\n margin-bottom: 4px;\n margin-top: 0px;\n position: relative;\n}\n\n.headingLight {\n @include heading-base;\n color: $light-search-result-heading-color;\n}\n\n.headingDark {\n @include heading-base;\n color: $dark-search-result-heading-color;\n}\n\n@mixin subheading-base {\n font-family: var(--font-stack);\n font-size: 12px;\n font-weight: 400;\n line-height: 16px;\n margin-bottom: 4px;\n margin-top: 0px;\n}\n\n.subheadingLight {\n @include subheading-base;\n color: $light-search-result-subheading-color;\n}\n\n.subheadingDark {\n @include subheading-base;\n color: $dark-search-result-subheading-color\n}\n\n@mixin body-content-base {\n font-family: var(--font-stack);\n font-size: 16px;\n font-weight: 400;\n line-height: 20px;\n margin-bottom: 4px;\n margin-top: 0px;\n}\n\n.bodyContentLight {\n @include body-content-base;\n color: $light-search-result-body-content-color;\n}\n\n.bodyContentDark {\n @include body-content-base;\n color: $dark-search-result-body-content-color;\n}","import { Component, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'searchcraft-base-search-result',\n styleUrl: 'searchcraft-base-search-result.module.scss',\n shadow: true,\n})\nexport class SearchcraftBaseSearchResult {\n @Prop() buttonCallbackFn: () => void = () => {};\n @Prop() buttonLabel = '';\n @Prop() callbackFn: () => void = () => {};\n @Prop() imageAltText = '';\n @Prop() imageSrc = '';\n @Prop() interactiveResult = false;\n @Prop() keyDownCallbackFn: () => void = () => {};\n @Prop() resultBodyContent = '';\n @Prop() resultHeading = '';\n @Prop() resultSubheading = '';\n @Prop() theme: 'light' | 'dark' = 'light'; // Simulating theme context.\n\n private handleButtonClick = () => {\n this.buttonCallbackFn();\n };\n\n private handleContainerClick = () => {\n if (this.interactiveResult) {\n this.callbackFn();\n }\n };\n\n render() {\n const isLightTheme = this.theme === 'light';\n\n return (\n <div\n class={\n this.interactiveResult\n ? isLightTheme\n ? 'interactiveResultContainerLight'\n : 'interactiveResultContainerDark'\n : 'resultContainer'\n }\n id='searchcraft-item'\n onClick={this.handleContainerClick}\n onKeyDown={this.keyDownCallbackFn}\n tabindex='0'\n >\n {this.interactiveResult && (\n <div class='interactiveIconLarge'>\n {isLightTheme ? (\n <searchcraft-clear-icon-set type='arrow-light' />\n ) : (\n <searchcraft-clear-icon-set type='arrow-dark' />\n )}\n </div>\n )}\n <div class='imageContainer'>\n <img\n alt={this.imageAltText}\n class={isLightTheme ? 'imageLight' : 'imageDark'}\n src={this.imageSrc}\n />\n </div>\n <div class='contentContainer'>\n <h2 class={isLightTheme ? 'headingLight' : 'headingDark'}>\n {this.resultHeading}\n {this.interactiveResult && (\n <div class='interactiveIconSmall'>\n {isLightTheme ? (\n <searchcraft-clear-icon-set type='arrow-light' />\n ) : (\n <searchcraft-clear-icon-set type='arrow-dark' />\n )}\n </div>\n )}\n </h2>\n <h3 class={isLightTheme ? 'subheadingLight' : 'subheadingDark'}>\n {this.resultSubheading}\n </h3>\n <p class={isLightTheme ? 'bodyContentLight' : 'bodyContentDark'}>\n {this.resultBodyContent}\n </p>\n <button onClick={this.handleButtonClick} type='button'>\n {this.buttonLabel}\n </button>\n </div>\n </div>\n );\n }\n}\n",":root {\n --font-stack: Helvetica, Arial, sans-serif;\n}\n\n.resultsContainer {\n display: flex;\n flex-direction: column;\n justify-content: center;\n margin: 100px 20px;\n\n & > p {\n align-self: center;\n }\n\n & > div {\n margin-bottom: 20px;\n img {\n height: 300px;\n width: 200px;\n }\n }\n}\n","import { Component, h, State } from '@stencil/core';\nimport type { SearchResult } from '@searchcraft/core';\n\nimport { useSearchcraftStore } from '@provider/store';\n\n@Component({\n tag: 'searchcraft-base-search-results',\n styleUrl: 'searchcraft-base-search-results.module.scss',\n shadow: true,\n})\nexport class SearchcraftBaseSearchResults {\n @State() query = '';\n @State() searchResults: SearchResult | null = null;\n private unsubscribe: () => void;\n\n componentDidLoad() {\n // Subscribe to state changes\n this.unsubscribe = useSearchcraftStore.subscribe((state) => {\n console.log('Store updated:', state);\n this.searchResults = { ...state.searchResults };\n this.query = state.query;\n });\n\n // Fetch initial state\n const { searchResults, query } = useSearchcraftStore.getState();\n console.log('Initial state:', searchResults, query);\n this.searchResults = searchResults;\n this.query = query;\n }\n\n disconnectedCallback() {\n if (this.unsubscribe) {\n this.unsubscribe();\n }\n }\n\n render() {\n if (!this.searchResults?.data) {\n console.warn('No search results data available');\n return <div>No results to display.</div>;\n }\n return (\n <div class='resultsContainer'>\n {this.searchResults?.data?.hits?.map((document, index) => {\n const { doc: result } = document;\n return (\n <searchcraft-base-search-result\n key={`${result?.id}-${index}`}\n button-label='View More'\n callback-fn={() => console.log('interactive element')}\n button-callback-fn={() => console.log('button callback')}\n interactive-result={true}\n image-src={result?.poster}\n result-body-content={result?.overview}\n result-heading={result?.title}\n result-subheading={result?.release_date}\n />\n );\n })}\n {this.query.length > 0 &&\n this.searchResults?.data?.hits?.length === 0 && (\n <searchcraft-error-message\n error-message={`No search results found for \"${this.query}\" query`}\n />\n )}\n </div>\n );\n }\n}\n","import { Component, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'searchcraft-clear-icon-set',\n shadow: true,\n})\nexport class SearchcraftClearIconSet {\n /**\n * Type of the icon to display.\n * Options: 'clear-light', 'clear-dark', 'arrow-light', 'arrow-dark'\n */\n @Prop() type: 'clear-light' | 'clear-dark' | 'arrow-light' | 'arrow-dark' =\n 'clear-light';\n\n render() {\n switch (this.type) {\n case 'clear-light':\n return (\n <svg\n width='22'\n height='22'\n viewBox='0 0 22 22'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n aria-labelledby='icon-title'\n >\n <title id='icon-title'>Searchcraft Clear Input Icon Light</title>\n <path\n d='M14 8L8 14M8 8L14 14M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z'\n stroke='black'\n stroke-width='1.5'\n stroke-linecap='round'\n stroke-linejoin='round'\n />\n </svg>\n );\n case 'clear-dark':\n return (\n <svg\n width='22'\n height='22'\n viewBox='0 0 22 22'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n aria-labelledby='icon-title'\n >\n <title id='icon-title'>Searchcraft Clear Input Icon Dark</title>\n <path\n d='M14 8L8 14M8 8L14 14M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z'\n stroke='white'\n stroke-width='1.5'\n stroke-linecap='round'\n stroke-linejoin='round'\n />\n </svg>\n );\n case 'arrow-light':\n return (\n <svg\n width='20'\n height='21'\n viewBox='0 0 20 21'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n aria-labelledby='icon-title'\n >\n <title id='icon-title'>Searchcraft Arrow Right Icon Light</title>\n <path\n d='M7.5 15.0444L12.5 10.0444L7.5 5.04443'\n stroke='#737373'\n stroke-width='1.5'\n stroke-linecap='round'\n stroke-linejoin='round'\n />\n </svg>\n );\n case 'arrow-dark':\n return (\n <svg\n width='8'\n height='12'\n viewBox='0 0 8 12'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n aria-labelledby='icon-title'\n >\n <title id='icon-title'>Searchcraft Arrow Right Icon Dark</title>\n <path\n d='M1.5 11L6.5 6L1.5 1'\n stroke='#BFBFBF'\n stroke-width='1.5'\n stroke-linecap='round'\n stroke-linejoin='round'\n />\n </svg>\n );\n\n default:\n return null;\n }\n }\n}\n",":root {\n --font-stack: Helvetica, Arial, sans-serif;\n}\n\n.inputClearButtonLTR {\n align-items: center;\n background: none;\n border: none;\n display: flex;\n height: 20px;\n justify-content: center;\n padding: 0;\n position: absolute;\n right: 25px;\n top: 50%;\n transform: translateY(-50%);\n width: 20px;\n}\n\n.inputClearButtonRTL {\n align-items: center;\n background: none;\n border: none;\n display: flex;\n height: 20px;\n justify-content: center;\n left: 25px;\n padding: 0;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n width: 20px;\n}","import {\n Component,\n Event,\n type EventEmitter,\n Prop,\n h,\n State,\n} from '@stencil/core';\nimport classNames from 'classnames';\n\n@Component({\n tag: 'searchcraft-clear-input-button',\n styleUrl: 'searchcraft-clear-input-button.module.scss',\n shadow: true,\n})\nexport class SearchcraftClearInputButton {\n @Prop() isRequesting? = false;\n @Prop() rightToLeftOrientation = false;\n\n // Updated `clearInput` to an EventEmitter\n @Event() clearInput: EventEmitter<void>;\n\n @State() theme = 'light';\n\n private isLightTheme() {\n return this.theme === 'light';\n }\n\n // Added a click handler to emit the event\n private handleClearClick = (event: MouseEvent) => {\n event.preventDefault(); // Prevent default if necessary\n this.clearInput.emit(); // Emit the event\n };\n\n render() {\n return this.rightToLeftOrientation ? (\n <button\n class={classNames('inputClearButtonRTL', '.sc-clear-input-button-rtl')}\n onClick={this.handleClearClick}\n type='button'\n >\n {this.isRequesting ? (\n this.isLightTheme ? (\n <searchcraft-spinner-light />\n ) : (\n <searchcraft-spinner-dark />\n )\n ) : this.isLightTheme ? (\n <searchcraft-clear-icon-set type='clear-light' />\n ) : (\n <searchcraft-clear-icon-set type='clear-dark' />\n )}\n </button>\n ) : (\n <button\n class={classNames('inputClearButtonLTR', '.sc-clear-input-button-ltr')}\n onClick={this.handleClearClick}\n type='button'\n >\n {this.isRequesting ? (\n this.isLightTheme ? (\n <searchcraft-spinner-light />\n ) : (\n <searchcraft-spinner-dark />\n )\n ) : this.isLightTheme ? (\n <searchcraft-clear-icon-set type='clear-light' />\n ) : (\n <searchcraft-clear-icon-set type='clear-dark' />\n )}\n </button>\n );\n }\n}\n","@import '../../utils/theme';\n\n:root {\n --font-stack: Helvetica, Arial, sans-serif;\n}\n\n@mixin error-message-base {\n font-family: var(--font-stack);\n font-size: 12px;\n font-weight: 400;\n line-height: 16px;\n margin-top: 4px;\n}\n\n.errorMessageLight {\n @include error-message-base;\n color: $light-input-caption-color-error;\n}\n\n.errorMessageDark {\n @include error-message-base;\n color: $dark-input-caption-color-error;\n}","import { Component, Prop, h } from '@stencil/core';\nimport classNames from 'classnames';\n\n@Component({\n tag: 'searchcraft-error-message',\n styleUrl: 'searchcraft-error-message.module.scss',\n shadow: true,\n})\nexport class SearchcraftErrorMessage {\n /**\n * The error message to display. Defaults to a standard message if not provided.\n */\n @Prop() errorMessage?: string;\n\n /**\n * The theme, which determines the style (light or dark).\n */\n @Prop() theme: 'light' | 'dark' = 'light';\n\n render() {\n const errorMessageStyle =\n this.theme === 'light' ? 'errorMessageLight' : 'errorMessageDark';\n\n return (\n <p class={classNames(errorMessageStyle)}>\n {this.errorMessage || 'Search term is required.'}\n </p>\n );\n }\n}\n","@import '../../utils/theme';\n\n:root {\n --font-stack: Helvetica, Arial, sans-serif;\n}\n\n@mixin input-container-base {\n position: relative;\n width: 100%;\n}\n\n@mixin input-base {\n border: none;\n border-radius: 8px;\n font-family: var(--font-stack);\n outline: none;\n padding-bottom: 15px;\n padding-top: 15px;\n width: 100%;\n\n &::placeholder {\n font-family: var(--font-stack);\n font-size: 16px;\n }\n}\n\n@mixin input-base-light {\n @include input-base;\n background-color: $light-input-background-color;\n color: $light-input-label-color;\n\n &::placeholder {\n color: $light-input-placeholder-color;\n }\n\n &:focus {\n outline: 2px solid $light-input-outline-focus;\n }\n}\n\n@mixin input-base-dark {\n @include input-base;\n background-color: $dark-input-background-color;\n color: $dark-input-label-color;\n\n &::placeholder {\n color: $dark-input-placeholder-color;\n }\n\n &:focus {\n outline: 2px solid $dark-input-outline-focus;\n }\n}\n\n@mixin input-error-base-light {\n @include input-base-light;\n outline: 2px solid $light-input-error-outline;\n\n &:focus-visible {\n outline: 2px solid $light-input-error-outline,\n }\n}\n\n@mixin input-error-base-dark {\n @include input-base-dark;\n outline: 2px solid $dark-input-error-outline;\n\n &:focus-visible {\n outline: 2px solid $dark-input-error-outline;\n }\n}\n\n.inputContainerLTR {\n @include input-container-base;\n}\n\n.inputContainerRTL {\n @include input-container-base;\n margin-left: 8px;\n}\n\n@mixin align-LTR {\n margin-right: 8px;\n padding-left: 36px;\n padding-right: 16px;\n}\n\n.inputLightLTR {\n @include input-base-light;\n @include align-LTR;\n}\n\n.inputDarkLTR {\n @include input-base-dark;\n @include align-LTR;\n}\n\n.inputErrorLightLTR {\n @include input-error-base-light;\n @include align-LTR;\n}\n\n.inputErrorDarkLTR {\n @include input-error-base-dark;\n @include align-LTR;\n}\n\n@mixin align-RTL {\n margin-left: 8px;\n padding-left: 16px;\n padding-right: 36px;\n text-align: right;\n}\n\n.inputLightRTL {\n @include input-base-light;\n @include align-RTL;\n}\n\n.inputDarkRTL {\n @include input-base-dark;\n @include align-RTL;\n}\n\n.inputErrorLightRTL {\n @include input-error-base-light;\n @include align-RTL;\n}\n\n.inputErrorDarkRTL {\n @include input-error-base-dark;\n @include align-RTL;\n}\n\n.inputWrapper {\n align-items: center;\n display: flex;\n position: relative;\n width: 100%;\n}\n","import {\n Component,\n h,\n Prop,\n State,\n Event,\n Fragment,\n type EventEmitter,\n} from '@stencil/core';\nimport classNames from 'classnames';\n\nimport { parseCustomStyles } from '@utils/utils';\n\nexport interface ScInputCustomEvent<T> extends CustomEvent<T> {\n detail: T;\n target: HTMLSearchcraftInputElement;\n}\n\n@Component({\n tag: 'searchcraft-input',\n styleUrl: 'searchcraft-input.module.scss',\n shadow: true,\n})\nexport class SearchcraftInput {\n @Prop() customStyles: string | Record<string, string> = {};\n @Prop() error = false;\n @Prop() formClassName = '';\n @Prop() inputCaptionClassName = '';\n @Prop() inputCaptionValue = '';\n @Prop() inputClassName = '';\n @Prop() placeholderValue = 'Enter Search';\n @Prop() rightToLeftOrientation = false;\n @Prop() query = '';\n\n @Event() clearInput: EventEmitter<void>;\n @Event() searchInputChange: EventEmitter<string>;\n\n @State() theme = 'light';\n\n private get isLightTheme() {\n return this.theme === 'light';\n }\n\n handleInputChange(event: Event) {\n const input = event.target as HTMLInputElement;\n this.searchInputChange.emit(input.value);\n }\n\n handleClearInput() {\n if (this.clearInput) {\n this.clearInput.emit();\n }\n }\n\n render() {\n const containerClassName = this.rightToLeftOrientation\n ? 'inputContainerRTL'\n : 'inputContainerLTR';\n\n const inputClassName = classNames(\n this.error\n ? this.isLightTheme\n ? 'inputErrorLightRTL'\n : 'inputErrorDarkRTL'\n : this.isLightTheme\n ? 'inputLightLTR'\n : 'inputDarkLTR',\n 'searchcraft-input',\n );\n\n const validatedCustomStyles = parseCustomStyles(this.customStyles);\n\n const placeholderStyle = {\n fontSize: validatedCustomStyles.placeholderFontSize || '16px',\n };\n return (\n <div\n class={classNames(\n containerClassName,\n this.formClassName,\n 'searchcraft-input-form',\n )}\n >\n {this.rightToLeftOrientation ? (\n <Fragment>\n <input\n class={classNames(inputClassName, 'searchcraft-input')}\n id='searchcraft-input-id'\n onChange={this.handleInputChange.bind(this)}\n placeholder={this.placeholderValue}\n type='text'\n value={this.query}\n style={validatedCustomStyles}\n />\n <style>\n {`\n #searchcraft-input-id::placeholder {\n font-size: ${placeholderStyle.fontSize};\n }\n `}\n </style>\n {this.inputCaptionValue && (\n <searchcraft-input-caption\n inputCaptionClassName={this.inputCaptionClassName}\n inputCaptionValue={this.inputCaptionValue}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n )}\n {this.query.length > 0 && (\n <searchcraft-clear-input-button\n onClearInput={this.handleClearInput}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n )}\n <searchcraft-input-icon\n error={this.error}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n </Fragment>\n ) : (\n <div class='inputWrapper'>\n <searchcraft-input-icon\n error={this.error}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n <input\n class={classNames(inputClassName, 'searchcraft-input')}\n id='searchcraft-input-id'\n onChange={this.handleInputChange.bind(this)}\n placeholder={this.placeholderValue}\n type='text'\n value={this.query}\n style={validatedCustomStyles}\n />\n <style>\n {`\n #searchcraft-input-id::placeholder {\n font-size: ${placeholderStyle.fontSize};\n }\n `}\n </style>\n {this.inputCaptionValue && (\n <searchcraft-input-caption\n inputCaptionClassName={this.inputCaptionClassName}\n inputCaptionValue={this.inputCaptionValue}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n )}\n {this.query.length > 0 && (\n <searchcraft-clear-input-button\n onClearInput={this.handleClearInput}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n )}\n </div>\n )}\n </div>\n );\n }\n}\n","@import '../../utils/theme';\n\n:root {\n --font-stack: Helvetica, Arial, sans-serif;\n}\n\n@mixin input-caption-base {\n font-family: var(--font-stack);\n font-size: 12px;\n font-weight: 400;\n line-height: 16px;\n margin-top: 4px;\n}\n\n@mixin input-caption-base-light {\n @include input-caption-base;\n color: $light-input-caption-color;\n}\n\n@mixin input-caption-base-dark {\n @include input-caption-base;\n color: $dark-input-caption-color;\n}\n\n.inputCaptionLightLTR {\n @include input-caption-base-light;\n}\n\n.inputCaptionDarkLTR {\n @include input-caption-base-dark;\n}\n\n.inputCaptionErrorLightLTR {\n @include input-caption-base;\n color: $light-input-caption-color-error;\n}\n\n.inputCaptionErrorDarkLTR {\n @include input-caption-base;\n color: $dark-input-caption-color-error;\n}\n\n.inputCaptionLightRTL {\n @include input-caption-base-light;\n text-align: right;\n}\n\n.inputCaptionDarkRTL {\n @include input-caption-base-dark;\n text-align: right;\n}\n\n.inputCaptionErrorLightRTL {\n @include input-caption-base;\n color: $light-input-caption-color-error;\n text-align: right;\n}\n\n.inputCaptionErrorDarkRTL {\n @include input-caption-base;\n color: $dark-input-caption-color-error;\n text-align: right;\n}","import { Component, Prop, h, State } from '@stencil/core';\nimport classNames from 'classnames';\n\n@Component({\n tag: 'searchcraft-input-caption',\n styleUrl: 'searchcraft-input-caption.module.scss',\n shadow: true,\n})\nexport class SearchcraftInputCaption {\n @Prop() error?: boolean;\n @Prop() inputCaptionClassName? = '';\n @Prop() inputCaptionValue = 'Enter Search';\n @Prop() rightToLeftOrientation = false;\n @State() theme = 'light';\n\n private isLightTheme() {\n return this.theme === 'light';\n }\n\n render() {\n return this.rightToLeftOrientation ? (\n <p\n class={classNames(\n this.error\n ? this.isLightTheme\n ? 'inputCaptionErrorLightRTL'\n : 'inputCaptionErrorDarkRTL'\n : this.isLightTheme\n ? 'inputCaptionLightRTL'\n : 'inputCaptionDarkRTL',\n this.inputCaptionClassName,\n '.searchcraft-input-caption',\n )}\n >\n {this.inputCaptionValue}\n </p>\n ) : (\n <p\n class={classNames(\n this.error\n ? this.isLightTheme\n ? 'inputCaptionErrorLightLTR'\n : 'inputCaptionErrorDarkLTR'\n : this.isLightTheme\n ? 'inputCaptionLightLTR'\n : 'inputCaptionDarkLTR',\n this.inputCaptionClassName,\n '.searchcraft-input-caption',\n )}\n >\n {this.inputCaptionValue}\n </p>\n );\n }\n}\n",":root {\n --font-stack: Helvetica, Arial, sans-serif;\n}\n\n.inputIconLTR {\n height: 20px;\n left: 10px;\n position: absolute;\n top: 11px;\n width: 20px;\n}\n\n.inputIconRTL {\n height: 20px;\n position: absolute;\n right: 10px;\n top: 11px;\n width: 20px;\n}","import { Component, Prop, h, State } from '@stencil/core';\n\n@Component({\n tag: 'searchcraft-input-icon',\n styleUrl: 'searchcraft-input-icon.module.scss',\n shadow: true,\n})\nexport class SearchcraftInputIcon {\n @Prop() error?: boolean;\n @Prop() rightToLeftOrientation = false;\n @State() theme = 'light';\n\n private isLightTheme() {\n return this.theme === 'light';\n }\n\n render() {\n return this.error ? (\n <div\n class={this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR'}\n >\n {this.isLightTheme ? (\n <searchcraft-search-icon-set type='error-light' />\n ) : (\n <searchcraft-search-icon-set type='error-dark' />\n )}\n </div>\n ) : (\n <div\n class={this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR'}\n >\n {this.isLightTheme ? (\n <searchcraft-search-icon-set type='search-light' />\n ) : (\n <searchcraft-search-icon-set type='search-dark' />\n )}\n </div>\n );\n }\n}\n","@import '../../utils/theme';\n\n:root {\n --font-stack: Helvetica, Arial, sans-serif;\n}\n\n@mixin input-label-base {\n font-family: var(--font-stack);\n font-size: 12px;\n font-weight: 400;\n line-height: 16px;\n margin-top: 4px;\n}\n\n.labelLight {\n @include input-label-base;\n color: $light-input-label-color;\n}\n\n.labelDark {\n @include input-label-base;\n color: $dark-input-label-color;\n}","import { Component, Prop, h, State } from '@stencil/core';\nimport classNames from 'classnames';\n\n@Component({\n tag: 'searchcraft-input-label',\n styleUrl: 'searchcraft-input-label.module.scss',\n shadow: true,\n})\nexport class SearchcraftInputLabel {\n @Prop() inputLabelClassName? = '';\n @Prop() label?: string; // Make label optional\n @State() theme = 'light';\n\n private isLightTheme() {\n return this.theme === 'light';\n }\n\n render() {\n // Render nothing if no label prop is provided\n if (!this.label) {\n return null;\n }\n\n const labelStyle = this.isLightTheme() ? 'labelLight' : 'labelDark';\n\n return (\n <label\n class={classNames(labelStyle, this.inputLabelClassName)}\n htmlFor='searchcraft-input-id'\n >\n {this.label}\n </label>\n );\n }\n}\n","import { Component, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'searchcraft-search-icon-set',\n shadow: true,\n})\nexport class SearchcraftSearchIconSet {\n /**\n * Type of the icon to display.\n * Options: ''search-light', search-dark', 'error-light', 'error-dark'\n */\n @Prop() type: 'search-light' | 'search-dark' | 'error-light' | 'error-dark' =\n 'search-dark';\n\n render() {\n switch (this.type) {\n case 'search-light':\n return (\n <svg\n width='20'\n height='20'\n viewBox='0 0 20 20'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n aria-labelledby='searchcraft-title'\n >\n <title id='searchcraft-title'>Searchcraft Search Icon Light</title>\n <path\n d='M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z'\n stroke='#404040'\n stroke-width='1.5'\n stroke-linecap='round'\n stroke-linejoin='round'\n />\n </svg>\n );\n case 'search-dark':\n return (\n <svg\n width='18'\n height='18'\n viewBox='0 0 18 18'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n aria-labelledby='searchcraft-title'\n >\n <title id='searchcraft-title'>Searchcraft Search Icon Dark</title>\n <path\n d='M16.5 16.5L12.875 12.875M14.8333 8.16667C14.8333 11.8486 11.8486 14.8333 8.16667 14.8333C4.48477 14.8333 1.5 11.8486 1.5 8.16667C1.5 4.48477 4.48477 1.5 8.16667 1.5C11.8486 1.5 14.8333 4.48477 14.8333 8.16667Z'\n stroke='#E6E6E6'\n stroke-width='1.5'\n stroke-linecap='round'\n stroke-linejoin='round'\n />\n </svg>\n );\n case 'error-light':\n return (\n <svg\n width='20'\n height='20'\n viewBox='0 0 20 20'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n aria-labelledby='searchcraft-title'\n >\n <title id='searchcraft-title'>\n Searchcraft Error Search Icon Light\n </title>\n <path\n d='M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z'\n stroke='#737373'\n stroke-width='1.5'\n stroke-linecap='round'\n stroke-linejoin='round'\n />\n </svg>\n );\n case 'error-dark':\n return (\n <svg\n width='18'\n height='18'\n viewBox='0 0 18 18'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n aria-labelledby='searchcraft-title'\n >\n <title id='searchcraft-title'>\n Searchcraft Error Search Icon Dark\n </title>\n <path\n d='M16.5 16.5L12.875 12.875M14.8333 8.16667C14.8333 11.8486 11.8486 14.8333 8.16667 14.8333C4.48477 14.8333 1.5 11.8486 1.5 8.16667C1.5 4.48477 4.48477 1.5 8.16667 1.5C11.8486 1.5 14.8333 4.48477 14.8333 8.16667Z'\n stroke='#BFBFBF'\n stroke-width='1.5'\n stroke-linecap='round'\n stroke-linejoin='round'\n />\n </svg>\n );\n default:\n return null;\n }\n }\n}\n","$spinner-size: 20px;\n\n.spinnerContainer {\n background-color: transparent;\n height: $spinner-size;\n width: $spinner-size;\n}\n\n.spinnerDark {\n height: 100%;\n width: 100%;\n background: conic-gradient(#000 50%, #FFFFFF);\n clip-path: circle(50%);\n mask-image: radial-gradient(circle at center, rgba(0,0,0,0) calc($spinner-size/3), rgba(0,0,0,1) calc($spinner-size/3));\n animation: spinning 1s linear infinite;\n}\n\n.spinnerLight {\n height: 100%;\n width: 100%;\n background: conic-gradient(#737373 50%, #FFFFFF);\n clip-path: circle(50%);\n mask-image: radial-gradient(circle at center, rgba(0,0,0,0) calc($spinner-size/3), rgba(0,0,0,1) calc($spinner-size/3));\n animation: spinning 1s linear infinite;\n}\n\n@keyframes spinning {\n 0% { transform: rotate(0deg); }\n 50% {transform: rotate(180deg);}\n 100% { transform: rotate(360deg); }\n}","import { Component, h } from '@stencil/core';\n\n@Component({\n tag: 'searchcraft-spinner-dark',\n styleUrl: 'searchcraft-spinner-dark.module.scss',\n shadow: true,\n})\nexport class SearchcraftSpinnerDark {\n render() {\n return (\n <div class='spinnerContainer'>\n <div class='spinnerDark' />\n </div>\n );\n }\n}\n","$spinner-size: 20px;\n\n.spinnerContainer {\n background-color: transparent;\n height: $spinner-size;\n width: $spinner-size;\n}\n\n.spinnerLight {\n height: 100%;\n width: 100%;\n background: conic-gradient(#737373 50%, #FFFFFF);\n clip-path: circle(50%);\n mask-image: radial-gradient(circle at center, rgba(0,0,0,0) calc($spinner-size/3), rgba(0,0,0,1) calc($spinner-size/3));\n animation: spinning 1s linear infinite;\n}\n\n@keyframes spinning {\n 0% { transform: rotate(0deg); }\n 50% {transform: rotate(180deg);}\n 100% { transform: rotate(360deg); }\n}","import { Component, h } from '@stencil/core';\n\n@Component({\n tag: 'searchcraft-spinner-light',\n styleUrl: 'searchcraft-spinner-light.module.scss',\n shadow: true,\n})\nexport class SearchcraftSpinnerLight {\n render() {\n return (\n <div class='spinnerContainer'>\n <div class='spinnerLight' />\n </div>\n );\n }\n}\n"],"version":3}
|