@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
|
@@ -1,457 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-c97f8c28.js';
|
|
2
|
-
import { u as useSearchcraftStore, a as useThemeStore, g } from './store-2370857c.js';
|
|
3
|
-
import { S as ScSpinnerLight } from './sc-spinner-light-cdb79a33.js';
|
|
4
|
-
|
|
5
|
-
const scBaseSearchFormModuleCss = ".formLTR{font-family:Helvetica, Arial, sans-serif;text-align:left}.formRTL{font-family:Helvetica, Arial, sans-serif;text-align:right}.searchContainer{align-items:center;display:flex}";
|
|
6
|
-
const ScBaseSearchFormStyle0 = scBaseSearchFormModuleCss;
|
|
7
|
-
|
|
8
|
-
const ScBaseSearchForm = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
registerInstance(this, hostRef);
|
|
11
|
-
this.clearInput = createEvent(this, "clearInput", 7);
|
|
12
|
-
this.clearInput = () => { };
|
|
13
|
-
this.searchStore = useSearchcraftStore.getState();
|
|
14
|
-
this.themeStore = useThemeStore.getState();
|
|
15
|
-
this.componentDidLoad = () => {
|
|
16
|
-
const searchcraft = new g(this.config);
|
|
17
|
-
this.searchStore.initialize(searchcraft, true);
|
|
18
|
-
};
|
|
19
|
-
this.handleFormSubmit = async (event) => {
|
|
20
|
-
event.preventDefault();
|
|
21
|
-
if (this.query.trim() === '') {
|
|
22
|
-
this.error = true;
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
this.error = false;
|
|
26
|
-
this.searchStore.setQuery(this.query);
|
|
27
|
-
await this.searchStore.search();
|
|
28
|
-
this.searchResults = JSON.stringify(this.searchStore.searchResults);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
this.handleSearchInputChange = (event) => {
|
|
32
|
-
this.query = event.detail;
|
|
33
|
-
};
|
|
34
|
-
this.handleClearInput = () => {
|
|
35
|
-
this.query = '';
|
|
36
|
-
this === null || this === void 0 ? void 0 : this.clearInput();
|
|
37
|
-
};
|
|
38
|
-
this.toggleTheme = () => {
|
|
39
|
-
this.themeStore.toggleTheme();
|
|
40
|
-
};
|
|
41
|
-
this.config = {
|
|
42
|
-
apiKey: '',
|
|
43
|
-
endpointURL: '',
|
|
44
|
-
index: [],
|
|
45
|
-
};
|
|
46
|
-
this.errorMessage = 'Search was unsuccessful';
|
|
47
|
-
this.labelForInput = 'Search';
|
|
48
|
-
this.rightToLeftOrientation = false;
|
|
49
|
-
this.error = false;
|
|
50
|
-
this.query = '';
|
|
51
|
-
this.searchResults = null;
|
|
52
|
-
}
|
|
53
|
-
render() {
|
|
54
|
-
return (h("form", { key: '2f128025b9caa2ab8a888d461da9b162bbc30d2f', class: this.rightToLeftOrientation ? 'formRTL' : 'formLTR', onSubmit: this.handleFormSubmit }, h("sc-input-label", { key: '110f30f0bbd27a0a512d9461a141198b738cc945', label: this.labelForInput }), h("div", { key: '5ec54632aeb5595f76a769d99801c8b92745bb05', class: 'searchContainer' }, this.rightToLeftOrientation && h("sc-button", { key: '753746e7c6bab72006e5a866609934e4738cb096' }), h("sc-input", { key: '823cda15577d253db0f1c30e3c8aa64fc19520ff', onClearInput: this.handleClearInput, rightToLeftOrientation: this.rightToLeftOrientation, onSearchInputChange: this.handleSearchInputChange, query: this.query }), !this.rightToLeftOrientation && (h("sc-button", { key: '99474f1a9fe35c18de0d6cc8ba9e70a4f1471c55', onButtonClick: this.handleFormSubmit }))), this.error && h("sc-error-message", { key: '03da10c2d3c51da69db971a0bfdbc7edbe218e1c', errorMessage: this.errorMessage })));
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
ScBaseSearchForm.style = ScBaseSearchFormStyle0;
|
|
58
|
-
|
|
59
|
-
const ClearInputIconLight = () => (h("svg", { width: '22', height: '22', viewBox: '0 0 22 22', fill: 'none' },
|
|
60
|
-
h("title", null, "Searchcraft Clear Input Icon Light"),
|
|
61
|
-
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' })));
|
|
62
|
-
const ClearInputIconDark = () => (h("svg", { width: '22', height: '22', viewBox: '0 0 22 22', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
|
|
63
|
-
h("title", null, "Searchcraft Clear Input Icon Dark"),
|
|
64
|
-
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' })));
|
|
65
|
-
const ArrowRightIconLight = () => (h("svg", { width: '20', height: '21', viewBox: '0 0 20 21', fill: 'none' },
|
|
66
|
-
h("title", null, "Searchcraft Arrow Right Icon Light"),
|
|
67
|
-
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' })));
|
|
68
|
-
const ArrowRightIconDark = () => (h("svg", { width: '8', height: '12', viewBox: '0 0 8 12', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
|
|
69
|
-
h("title", null, "Searchcraft Arrow Right Icon Dark"),
|
|
70
|
-
h("path", { d: 'M1.5 11L6.5 6L1.5 1', stroke: '#BFBFBF', "stroke-width": '1.5', "stroke-linecap": 'round', "stroke-linejoin": 'round' })));
|
|
71
|
-
|
|
72
|
-
const scBaseSearchResultModuleCss = ":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}";
|
|
73
|
-
const ScBaseSearchResultStyle0 = scBaseSearchResultModuleCss;
|
|
74
|
-
|
|
75
|
-
const ScBaseSearchResult = class {
|
|
76
|
-
constructor(hostRef) {
|
|
77
|
-
registerInstance(this, hostRef);
|
|
78
|
-
this.handleButtonClick = () => {
|
|
79
|
-
this.buttonCallbackFn();
|
|
80
|
-
};
|
|
81
|
-
this.handleContainerClick = () => {
|
|
82
|
-
if (this.interactiveResult) {
|
|
83
|
-
this.callbackFn();
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
this.buttonCallbackFn = () => { };
|
|
87
|
-
this.buttonLabel = '';
|
|
88
|
-
this.callbackFn = () => { };
|
|
89
|
-
this.imageAltText = '';
|
|
90
|
-
this.imageSrc = '';
|
|
91
|
-
this.interactiveResult = false;
|
|
92
|
-
this.keyDownCallbackFn = () => { };
|
|
93
|
-
this.resultBodyContent = '';
|
|
94
|
-
this.resultHeading = '';
|
|
95
|
-
this.resultSubheading = '';
|
|
96
|
-
this.theme = 'light';
|
|
97
|
-
}
|
|
98
|
-
render() {
|
|
99
|
-
const isLightTheme = this.theme === 'light';
|
|
100
|
-
return (h("div", { key: 'ee89d0d997c1616d4534cae4ee9685f6ce040099', class: this.interactiveResult
|
|
101
|
-
? isLightTheme
|
|
102
|
-
? 'interactiveResultContainerLight'
|
|
103
|
-
: 'interactiveResultContainerDark'
|
|
104
|
-
: 'resultContainer', id: 'searchcraft-item', onClick: this.handleContainerClick, onKeyDown: this.keyDownCallbackFn, tabindex: '0' }, this.interactiveResult && (h("div", { key: 'fe1174e8a72f4b73a076c5be015e44a4b1ef8215', class: 'interactiveIconLarge' }, isLightTheme ? h(ArrowRightIconLight, null) : h(ArrowRightIconDark, null))), h("div", { key: 'c8c68d1beb4b57d9b6a7a860d754f2d8577a73fb', class: 'imageContainer' }, h("img", { key: 'e102470ecc13a71620004ed148a81d9af9984976', alt: this.imageAltText, class: isLightTheme ? 'imageLight' : 'imageDark', src: this.imageSrc })), h("div", { key: '07dbf514b64cb063c690ed42ec6ae04b1afbaf9a', class: 'contentContainer' }, h("h2", { key: 'fb6dfe3c58667cab4319f82e49ab90145904671c', class: isLightTheme ? 'headingLight' : 'headingDark' }, this.resultHeading, this.interactiveResult && (h("div", { key: '378b93a681888fc5709c627631284fd34b375b02', class: 'interactiveIconSmall' }, isLightTheme ? (h(ArrowRightIconLight, null)) : (h(ArrowRightIconDark, null))))), h("h3", { key: '9fc6e4d8d9a55489996492fbbb482eeabb69fde1', class: isLightTheme ? 'subheadingLight' : 'subheadingDark' }, this.resultSubheading), h("p", { key: '66810ac7427abe83a88237471cdc30c9cd2fa84b', class: isLightTheme ? 'bodyContentLight' : 'bodyContentDark' }, this.resultBodyContent), h("button", { key: '1df164311052868adde2dc41b8c769834622a10f', onClick: this.handleButtonClick, type: 'button' }, this.buttonLabel))));
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
ScBaseSearchResult.style = ScBaseSearchResultStyle0;
|
|
108
|
-
|
|
109
|
-
const scBaseSearchResultsModuleCss = ":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}";
|
|
110
|
-
const ScBaseSearchResultsStyle0 = scBaseSearchResultsModuleCss;
|
|
111
|
-
|
|
112
|
-
const ScBaseSearchResults = class {
|
|
113
|
-
constructor(hostRef) {
|
|
114
|
-
registerInstance(this, hostRef);
|
|
115
|
-
this.query = '';
|
|
116
|
-
this.searchResults = null;
|
|
117
|
-
}
|
|
118
|
-
componentDidLoad() {
|
|
119
|
-
// Subscribe to state changes
|
|
120
|
-
this.unsubscribe = useSearchcraftStore.subscribe((state) => {
|
|
121
|
-
console.log('Store updated:', state);
|
|
122
|
-
this.searchResults = Object.assign({}, state.searchResults);
|
|
123
|
-
this.query = state.query;
|
|
124
|
-
});
|
|
125
|
-
// Fetch initial state
|
|
126
|
-
const { searchResults, query } = useSearchcraftStore.getState();
|
|
127
|
-
console.log('Initial state:', searchResults, query);
|
|
128
|
-
this.searchResults = searchResults;
|
|
129
|
-
this.query = query;
|
|
130
|
-
}
|
|
131
|
-
disconnectedCallback() {
|
|
132
|
-
if (this.unsubscribe) {
|
|
133
|
-
this.unsubscribe();
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
render() {
|
|
137
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
138
|
-
if (!((_a = this.searchResults) === null || _a === void 0 ? void 0 : _a.data)) {
|
|
139
|
-
console.warn('No search results data available');
|
|
140
|
-
return h("div", null, "No results to display.");
|
|
141
|
-
}
|
|
142
|
-
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 :
|
|
143
|
-
_d.map((document, index) => {
|
|
144
|
-
const { doc: result } = document;
|
|
145
|
-
return (h("sc-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 }));
|
|
146
|
-
}), this.query.length > 0 &&
|
|
147
|
-
((_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("sc-error-message", { "error-message": `No search results found for "${this.query}" query` }))));
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
ScBaseSearchResults.style = ScBaseSearchResultsStyle0;
|
|
151
|
-
|
|
152
|
-
var classnames = {exports: {}};
|
|
153
|
-
|
|
154
|
-
/*!
|
|
155
|
-
Copyright (c) 2018 Jed Watson.
|
|
156
|
-
Licensed under the MIT License (MIT), see
|
|
157
|
-
http://jedwatson.github.io/classnames
|
|
158
|
-
*/
|
|
159
|
-
|
|
160
|
-
(function (module) {
|
|
161
|
-
/* global define */
|
|
162
|
-
|
|
163
|
-
(function () {
|
|
164
|
-
|
|
165
|
-
var hasOwn = {}.hasOwnProperty;
|
|
166
|
-
|
|
167
|
-
function classNames () {
|
|
168
|
-
var classes = '';
|
|
169
|
-
|
|
170
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
171
|
-
var arg = arguments[i];
|
|
172
|
-
if (arg) {
|
|
173
|
-
classes = appendClass(classes, parseValue(arg));
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
return classes;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
function parseValue (arg) {
|
|
181
|
-
if (typeof arg === 'string' || typeof arg === 'number') {
|
|
182
|
-
return arg;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
if (typeof arg !== 'object') {
|
|
186
|
-
return '';
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
if (Array.isArray(arg)) {
|
|
190
|
-
return classNames.apply(null, arg);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
194
|
-
return arg.toString();
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
var classes = '';
|
|
198
|
-
|
|
199
|
-
for (var key in arg) {
|
|
200
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
201
|
-
classes = appendClass(classes, key);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
return classes;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
function appendClass (value, newClass) {
|
|
209
|
-
if (!newClass) {
|
|
210
|
-
return value;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
if (value) {
|
|
214
|
-
return value + ' ' + newClass;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
return value + newClass;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
if (module.exports) {
|
|
221
|
-
classNames.default = classNames;
|
|
222
|
-
module.exports = classNames;
|
|
223
|
-
} else {
|
|
224
|
-
window.classNames = classNames;
|
|
225
|
-
}
|
|
226
|
-
}());
|
|
227
|
-
}(classnames));
|
|
228
|
-
|
|
229
|
-
const classNames = classnames.exports;
|
|
230
|
-
|
|
231
|
-
const scButtonModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.buttonLight{border-radius:8px;display:flex;font-family:var(--font-stack);font-size:16px;font-weight:700;line-height:20px;padding:11px 20px;position:relative;background-color:#000;border:1px solid #E6E6E6;color:#FFF}.buttonLight:hover{cursor:pointer}.buttonLight:hover{background-color:#2E2E2E}.buttonLight:focus{outline:2px solid #000000}.buttonDark{border-radius:8px;display:flex;font-family:var(--font-stack);font-size:16px;font-weight:700;line-height:20px;padding:11px 20px;position:relative;background-color:#FFF;border:1px solid #404040;color:#292929}.buttonDark:hover{cursor:pointer}.buttonDark:hover{background-color:#FAFAFA}.buttonDark:focus{outline:2px solid #404040}.spinnerMarginRight{left:4px;margin-right:4px;position:absolute}.spinnerMarginLeft{left:4px;margin-left:4px;position:absolute}.buttonLabel{animation:right-and-back 0.2s;margin-left:4px;position:relative}@keyframes right-and-back{0%{right:-6px}50%{right:-12px}75%{right:-6px}100%{right:0px}}";
|
|
232
|
-
const ScButtonStyle0 = scButtonModuleCss;
|
|
233
|
-
|
|
234
|
-
const ScButton = class {
|
|
235
|
-
constructor(hostRef) {
|
|
236
|
-
registerInstance(this, hostRef);
|
|
237
|
-
this.buttonClick = createEvent(this, "buttonClick", 7);
|
|
238
|
-
this.handleClick = () => {
|
|
239
|
-
this.buttonClick.emit(); // Emit the event instead of calling a function
|
|
240
|
-
};
|
|
241
|
-
this.iconElement = undefined;
|
|
242
|
-
this.iconOnly = false;
|
|
243
|
-
this.iconPosition = 'left';
|
|
244
|
-
this.label = 'Search';
|
|
245
|
-
this.isRequesting = false;
|
|
246
|
-
this.theme = 'light';
|
|
247
|
-
}
|
|
248
|
-
getButtonStyle() {
|
|
249
|
-
return this.theme === 'light' ? 'buttonLight' : 'buttonDark';
|
|
250
|
-
}
|
|
251
|
-
render() {
|
|
252
|
-
const buttonStyle = this.getButtonStyle();
|
|
253
|
-
return (h(Fragment, { key: '1786fa90c9eff082b58b6b45dda5d64cc1da9c8a' }, this.iconOnly ? (h("button", { class: classNames(buttonStyle, 'searchcraft-button'), onClick: this.handleClick, type: 'submit' }, this.isRequesting ? h("sc-spinner-dark", null) : this.iconElement)) : (h("button", { class: classNames(buttonStyle, 'searchcraft-button'), onClick: this.handleClick, type: 'submit' }, this.iconPosition === 'left' && this.isRequesting ? (h("div", { class: 'spinner-margin-right' }, h("sc-spinner-dark", null))) : (this.iconElement), h("span", { class: classNames(this.isRequesting && 'button-label', 'searchcraft-button-label') }, this.label)))));
|
|
254
|
-
}
|
|
255
|
-
};
|
|
256
|
-
ScButton.style = ScButtonStyle0;
|
|
257
|
-
|
|
258
|
-
const scSpinnerDarkModuleCss = ".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)}}";
|
|
259
|
-
const ScSpinnerDarkStyle0 = scSpinnerDarkModuleCss;
|
|
260
|
-
|
|
261
|
-
const ScSpinnerDark = class {
|
|
262
|
-
constructor(hostRef) {
|
|
263
|
-
registerInstance(this, hostRef);
|
|
264
|
-
}
|
|
265
|
-
render() {
|
|
266
|
-
return (h("div", { key: '201b6ffa04c9ad69cb169dd385e25289bae6f98d', class: 'spinnerContainer' }, h("div", { key: 'e20614e8266fe57882f0ada0c210bb0b05e0fe99', class: 'spinnerDark' })));
|
|
267
|
-
}
|
|
268
|
-
};
|
|
269
|
-
ScSpinnerDark.style = ScSpinnerDarkStyle0;
|
|
270
|
-
|
|
271
|
-
const scClearInputButtonModuleCss = ":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:11px;width:20px}.inputClearButtonRTL{align-items:center;background:none;border:none;display:flex;height:20px;justify-content:center;left:25px;padding:0;position:absolute;top:11px;width:20px}";
|
|
272
|
-
const ScClearInputButtonStyle0 = scClearInputButtonModuleCss;
|
|
273
|
-
|
|
274
|
-
const ScClearInputButton = class {
|
|
275
|
-
constructor(hostRef) {
|
|
276
|
-
registerInstance(this, hostRef);
|
|
277
|
-
this.clearInput = createEvent(this, "clearInput", 7);
|
|
278
|
-
// Added a click handler to emit the event
|
|
279
|
-
this.handleClearClick = (event) => {
|
|
280
|
-
event.preventDefault(); // Prevent default if necessary
|
|
281
|
-
this.clearInput.emit(); // Emit the event
|
|
282
|
-
};
|
|
283
|
-
this.isRequesting = false;
|
|
284
|
-
this.rightToLeftOrientation = false;
|
|
285
|
-
this.theme = 'light';
|
|
286
|
-
}
|
|
287
|
-
isLightTheme() {
|
|
288
|
-
return this.theme === 'light';
|
|
289
|
-
}
|
|
290
|
-
render() {
|
|
291
|
-
return this.rightToLeftOrientation ? (h("button", { class: classNames('inputClearButtonRTL', '.sc-clear-input-button-rtl'), onClick: this.handleClearClick, type: 'button' }, this.isRequesting ? (this.isLightTheme ? (h(ScSpinnerLight, null)) : (h(ScSpinnerDark, null))) : this.isLightTheme ? (h(ClearInputIconLight, null)) : (h(ClearInputIconDark, null)))) : (h("button", { class: classNames('inputClearButtonLTR', '.sc-clear-input-button-ltr'), onClick: this.handleClearClick, type: 'button' }, this.isRequesting ? (this.isLightTheme ? (h(ScSpinnerLight, null)) : (h(ScSpinnerDark, null))) : this.isLightTheme ? (h(ClearInputIconLight, null)) : (h(ClearInputIconDark, null))));
|
|
292
|
-
}
|
|
293
|
-
};
|
|
294
|
-
ScClearInputButton.style = ScClearInputButtonStyle0;
|
|
295
|
-
|
|
296
|
-
const scErrorMessageModuleCss = ":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}";
|
|
297
|
-
const ScErrorMessageStyle0 = scErrorMessageModuleCss;
|
|
298
|
-
|
|
299
|
-
const ScErrorMessage = class {
|
|
300
|
-
constructor(hostRef) {
|
|
301
|
-
registerInstance(this, hostRef);
|
|
302
|
-
this.errorMessage = undefined;
|
|
303
|
-
this.theme = 'light';
|
|
304
|
-
}
|
|
305
|
-
render() {
|
|
306
|
-
const errorMessageStyle = this.theme === 'light' ? 'errorMessageLight' : 'errorMessageDark';
|
|
307
|
-
return (h("p", { key: '485fcb74212005ebf4f2d63576bca05d4b9a9867', class: classNames(errorMessageStyle) }, this.errorMessage || 'Search term is required.'));
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
|
-
ScErrorMessage.style = ScErrorMessageStyle0;
|
|
311
|
-
|
|
312
|
-
const scInputModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.inputContainerLTR{position:relative}.inputContainerRTL{position:relative;margin-left:8px}.inputLightLTR{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;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;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;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;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;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;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;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;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}";
|
|
313
|
-
const ScInputStyle0 = scInputModuleCss;
|
|
314
|
-
|
|
315
|
-
const ScInput = class {
|
|
316
|
-
constructor(hostRef) {
|
|
317
|
-
registerInstance(this, hostRef);
|
|
318
|
-
this.searchInputChange = createEvent(this, "searchInputChange", 7);
|
|
319
|
-
this.clearInput = createEvent(this, "clearInput", 7);
|
|
320
|
-
this.error = false;
|
|
321
|
-
this.formClassName = '';
|
|
322
|
-
this.inputCaptionClassName = '';
|
|
323
|
-
this.inputCaptionValue = '';
|
|
324
|
-
this.inputClassName = '';
|
|
325
|
-
this.placeholderValue = 'Enter Search';
|
|
326
|
-
this.rightToLeftOrientation = false;
|
|
327
|
-
this.query = '';
|
|
328
|
-
this.theme = 'light';
|
|
329
|
-
}
|
|
330
|
-
get isLightTheme() {
|
|
331
|
-
return this.theme === 'light';
|
|
332
|
-
}
|
|
333
|
-
handleInputChange(event) {
|
|
334
|
-
const input = event.target;
|
|
335
|
-
this.searchInputChange.emit(input.value);
|
|
336
|
-
}
|
|
337
|
-
handleClearInput() {
|
|
338
|
-
if (this.clearInput) {
|
|
339
|
-
this.clearInput.emit();
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
render() {
|
|
343
|
-
const containerClassName = this.rightToLeftOrientation
|
|
344
|
-
? 'inputContainerRTL'
|
|
345
|
-
: 'inputContainerLTR';
|
|
346
|
-
const inputClassName = classNames(this.error
|
|
347
|
-
? this.isLightTheme
|
|
348
|
-
? 'inputErrorLightRTL'
|
|
349
|
-
: 'inputErrorDarkRTL'
|
|
350
|
-
: this.isLightTheme
|
|
351
|
-
? 'inputLightLTR'
|
|
352
|
-
: 'inputDarkLTR', 'searchcraft-input');
|
|
353
|
-
return (h("div", { key: '0257fcbab8d8f78439506f609784ef089f9b2784', class: classNames(containerClassName, this.formClassName, 'searchcraft-input-form') }, this.rightToLeftOrientation ? (h(Fragment, null, h("input", { class: classNames(this.error
|
|
354
|
-
? this.isLightTheme
|
|
355
|
-
? 'inputErrorLightRTL'
|
|
356
|
-
: 'inputErrorDarkRTL'
|
|
357
|
-
: this.isLightTheme
|
|
358
|
-
? 'inputLightRTL'
|
|
359
|
-
: 'inputDarkRTL', inputClassName, 'searchcraft-input'), id: 'searchcraft-input-id', onChange: this.handleInputChange.bind(this), placeholder: this.placeholderValue, type: 'text', value: this.query }), this.inputCaptionValue && (h("sc-input-caption", { inputCaptionClassName: this.inputCaptionClassName, inputCaptionValue: this.inputCaptionValue, rightToLeftOrientation: this.rightToLeftOrientation })), this.query.length > 0 && (h("sc-clear-input-button", { onClearInput: this.handleClearInput, rightToLeftOrientation: this.rightToLeftOrientation })), h("sc-input-icon", { error: this.error, rightToLeftOrientation: this.rightToLeftOrientation }))) : (h(Fragment, null, h("input", { class: classNames(this.error
|
|
360
|
-
? this.isLightTheme
|
|
361
|
-
? 'inputErrorLightLTR'
|
|
362
|
-
: 'inputErrorDarkLTR'
|
|
363
|
-
: this.isLightTheme
|
|
364
|
-
? 'inputLightLTR'
|
|
365
|
-
: 'inputDarkLTR', inputClassName, 'searchcraft-input'), id: 'searchcraft-input-id', onChange: this.handleInputChange.bind(this), placeholder: this.placeholderValue, type: 'text', value: this.query }), this.inputCaptionValue && (h("sc-input-caption", { inputCaptionClassName: this.inputCaptionClassName, inputCaptionValue: this.inputCaptionValue, rightToLeftOrientation: this.rightToLeftOrientation })), this.query.length > 0 && (h("sc-clear-input-button", { onClearInput: this.handleClearInput, rightToLeftOrientation: this.rightToLeftOrientation }))))));
|
|
366
|
-
}
|
|
367
|
-
};
|
|
368
|
-
ScInput.style = ScInputStyle0;
|
|
369
|
-
|
|
370
|
-
const scInputCaptionModuleCss = ":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}";
|
|
371
|
-
const ScInputCaptionStyle0 = scInputCaptionModuleCss;
|
|
372
|
-
|
|
373
|
-
const ScInputCaption = class {
|
|
374
|
-
constructor(hostRef) {
|
|
375
|
-
registerInstance(this, hostRef);
|
|
376
|
-
this.error = undefined;
|
|
377
|
-
this.inputCaptionClassName = '';
|
|
378
|
-
this.inputCaptionValue = 'Enter Search';
|
|
379
|
-
this.rightToLeftOrientation = false;
|
|
380
|
-
this.theme = 'light';
|
|
381
|
-
}
|
|
382
|
-
isLightTheme() {
|
|
383
|
-
return this.theme === 'light';
|
|
384
|
-
}
|
|
385
|
-
render() {
|
|
386
|
-
return this.rightToLeftOrientation ? (h("p", { class: classNames(this.error
|
|
387
|
-
? this.isLightTheme
|
|
388
|
-
? 'inputCaptionErrorLightRTL'
|
|
389
|
-
: 'inputCaptionErrorDarkRTL'
|
|
390
|
-
: this.isLightTheme
|
|
391
|
-
? 'inputCaptionLightRTL'
|
|
392
|
-
: 'inputCaptionDarkRTL', this.inputCaptionClassName, '.searchcraft-input-caption') }, this.inputCaptionValue)) : (h("p", { class: classNames(this.error
|
|
393
|
-
? this.isLightTheme
|
|
394
|
-
? 'inputCaptionErrorLightLTR'
|
|
395
|
-
: 'inputCaptionErrorDarkLTR'
|
|
396
|
-
: this.isLightTheme
|
|
397
|
-
? 'inputCaptionLightLTR'
|
|
398
|
-
: 'inputCaptionDarkLTR', this.inputCaptionClassName, '.searchcraft-input-caption') }, this.inputCaptionValue));
|
|
399
|
-
}
|
|
400
|
-
};
|
|
401
|
-
ScInputCaption.style = ScInputCaptionStyle0;
|
|
402
|
-
|
|
403
|
-
const SearchIconLight = () => (h("svg", { width: '20', height: '20', viewBox: '0 0 20 20', fill: 'none' },
|
|
404
|
-
h("title", null, "Searchcraft Search Icon Light"),
|
|
405
|
-
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' })));
|
|
406
|
-
const SearchIconDark = () => (h("svg", { width: '18', height: '18', viewBox: '0 0 18 18', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
|
|
407
|
-
h("title", null, "Searchcraft Search Icon Dark"),
|
|
408
|
-
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' })));
|
|
409
|
-
const SearchIconLightError = () => (h("svg", { width: '20', height: '20', viewBox: '0 0 20 20', fill: 'none' },
|
|
410
|
-
h("title", null, "Searchcraft Error Search Icon Light"),
|
|
411
|
-
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' })));
|
|
412
|
-
const SearchIconDarkError = () => (h("svg", { width: '18', height: '18', viewBox: '0 0 18 18', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
|
|
413
|
-
h("title", null, "Searchcraft Error Search Icon Dark"),
|
|
414
|
-
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' })));
|
|
415
|
-
|
|
416
|
-
const scInputIconModuleCss = ":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}";
|
|
417
|
-
const ScInputIconStyle0 = scInputIconModuleCss;
|
|
418
|
-
|
|
419
|
-
const ScInputIcon = class {
|
|
420
|
-
constructor(hostRef) {
|
|
421
|
-
registerInstance(this, hostRef);
|
|
422
|
-
this.error = undefined;
|
|
423
|
-
this.rightToLeftOrientation = false;
|
|
424
|
-
this.theme = 'light';
|
|
425
|
-
}
|
|
426
|
-
isLightTheme() {
|
|
427
|
-
return this.theme === 'light';
|
|
428
|
-
}
|
|
429
|
-
render() {
|
|
430
|
-
return this.error ? (h("div", { class: this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR' }, this.isLightTheme ? h(SearchIconLightError, null) : h(SearchIconDarkError, null))) : (h("div", { class: this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR' }, this.isLightTheme ? h(SearchIconLight, null) : h(SearchIconDark, null)));
|
|
431
|
-
}
|
|
432
|
-
};
|
|
433
|
-
ScInputIcon.style = ScInputIconStyle0;
|
|
434
|
-
|
|
435
|
-
const scInputLabelModuleCss = ":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}";
|
|
436
|
-
const ScInputLabelStyle0 = scInputLabelModuleCss;
|
|
437
|
-
|
|
438
|
-
const ScInputLabel = class {
|
|
439
|
-
constructor(hostRef) {
|
|
440
|
-
registerInstance(this, hostRef);
|
|
441
|
-
this.inputLabelClassName = '';
|
|
442
|
-
this.label = 'Enter Search';
|
|
443
|
-
this.theme = 'light';
|
|
444
|
-
}
|
|
445
|
-
isLightTheme() {
|
|
446
|
-
return this.theme === 'light';
|
|
447
|
-
}
|
|
448
|
-
render() {
|
|
449
|
-
const labelStyle = this.isLightTheme ? 'labelLight' : 'labelDark';
|
|
450
|
-
return (h("label", { key: 'd6f4e489c05903a0b27266df9a22b5fe5ecd57f3', class: classNames(labelStyle, this.inputLabelClassName), htmlFor: 'searchcraft-input-id' }, this.label));
|
|
451
|
-
}
|
|
452
|
-
};
|
|
453
|
-
ScInputLabel.style = ScInputLabelStyle0;
|
|
454
|
-
|
|
455
|
-
export { ScBaseSearchForm as sc_base_search_form, ScBaseSearchResult as sc_base_search_result, ScBaseSearchResults as sc_base_search_results, ScButton as sc_button, ScClearInputButton as sc_clear_input_button, ScErrorMessage as sc_error_message, ScInput as sc_input, ScInputCaption as sc_input_caption, ScInputIcon as sc_input_icon, ScInputLabel as sc_input_label, ScSpinnerDark as sc_spinner_dark };
|
|
456
|
-
|
|
457
|
-
//# sourceMappingURL=sc-base-search-form_11.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"sc-base-search-form.sc-base-search-result.sc-base-search-results.sc-button.sc-clear-input-button.sc-error-message.sc-input.sc-input-caption.sc-input-icon.sc-input-label.sc-spinner-dark.entry.js","mappings":";;;;AAAA,MAAM,yBAAyB,GAAG,wLAAwL,CAAC;AAC3N,+BAAe,yBAAyB;;MCc3B,gBAAgB;;;;QAUlB,eAAU,GAAG,SAAQ,CAAC;QAMvB,gBAAW,GAAG,mBAAmB,CAAC,QAAQ,EAAE,CAAC;QAC7C,eAAU,GAAG,aAAa,CAAC,QAAQ,EAAE,CAA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CAAC,mBAAmB,CAAC,EACvD,OAAO,EAAC,sBAAsB,IAE7B,IAAI,CAAC,KAAK,CACL,EACR;KACH;;;;;;","names":["SearchcraftCore"],"sources":["src/components/sc-base-search-form/sc-base-search-form.module.scss?tag=sc-base-search-form&encapsulation=shadow","src/components/sc-base-search-form/sc-base-search-form.tsx","src/assets/ClearInputIcon.tsx","src/components/sc-base-search-result/sc-base-search-result.module.scss?tag=sc-base-search-result&encapsulation=shadow","src/components/sc-base-search-result/sc-base-search-result.tsx","src/components/sc-base-search-results/sc-base-search-results.module.scss?tag=sc-base-search-results&encapsulation=shadow","src/components/sc-base-search-results/sc-base-search-results.tsx","../../node_modules/classnames/index.js","src/components/sc-button/sc-button.module.scss?tag=sc-button&encapsulation=shadow","src/components/sc-button/sc-button.tsx","src/components/sc-spinner-dark/sc-spinner-dark.module.scss?tag=sc-spinner-dark&encapsulation=shadow","src/components/sc-spinner-dark/sc-spinner-dark.tsx","src/components/sc-clear-input-button/sc-clear-input-button.module.scss?tag=sc-clear-input-button&encapsulation=shadow","src/components/sc-clear-input-button/sc-clear-input-button.tsx","src/components/sc-error-message/sc-error-message.module.scss?tag=sc-error-message&encapsulation=shadow","src/components/sc-error-message/sc-error-message.tsx","src/components/sc-input/sc-input.module.scss?tag=sc-input&encapsulation=shadow","src/components/sc-input/sc-input.tsx","src/components/sc-input-caption/sc-input-caption.module.scss?tag=sc-input-caption&encapsulation=shadow","src/components/sc-input-caption/sc-input-caption.tsx","src/assets/SearchIcons.tsx","src/components/sc-input-icon/sc-input-icon.module.scss?tag=sc-input-icon&encapsulation=shadow","src/components/sc-input-icon/sc-input-icon.tsx","src/components/sc-input-label/sc-input-label.module.scss?tag=sc-input-label&encapsulation=shadow","src/components/sc-input-label/sc-input-label.tsx"],"sourcesContent":[".formLTR {\n font-family: Helvetica, Arial, sans-serif;\n text-align: left;\n}\n\n.formRTL {\n font-family: Helvetica, Arial, sans-serif;\n text-align: right;\n}\n\n.searchContainer {\n align-items: center;\n display: flex;\n}","import { Component, h, Event, Prop, State } from '@stencil/core';\nimport {\n type CoreConfigSDK,\n CoreSDK as SearchcraftCore,\n} from '@searchcraft/core';\n\nimport { useSearchcraftStore, useThemeStore } from '@provider/store';\n\nimport type { ScInputCustomEvent } from '@components/sc-input/sc-input';\n\n@Component({\n tag: 'sc-base-search-form',\n styleUrl: 'sc-base-search-form.module.scss',\n shadow: true,\n})\nexport class ScBaseSearchForm {\n @Prop() config: CoreConfigSDK = {\n apiKey: '',\n endpointURL: '',\n index: [],\n };\n @Prop() errorMessage = 'Search was unsuccessful';\n @Prop() labelForInput = 'Search';\n @Prop() rightToLeftOrientation = false;\n\n @Event() clearInput = () => {};\n\n @State() error = false;\n @State() query = '';\n @State() searchResults: string | null = null;\n\n private searchStore = useSearchcraftStore.getState();\n private themeStore = useThemeStore.getState();\n\n componentDidLoad = () => {\n const searchcraft = new SearchcraftCore(this.config);\n this.searchStore.initialize(searchcraft, true);\n };\n\n handleFormSubmit = async (event) => {\n event.preventDefault();\n if (this.query.trim() === '') {\n this.error = true;\n } else {\n this.error = false;\n this.searchStore.setQuery(this.query);\n await this.searchStore.search();\n this.searchResults = JSON.stringify(this.searchStore.searchResults);\n }\n };\n\n handleSearchInputChange = (event: ScInputCustomEvent<string>) => {\n this.query = event.detail;\n };\n\n handleClearInput = () => {\n this.query = '';\n this?.clearInput();\n };\n\n toggleTheme = () => {\n this.themeStore.toggleTheme();\n };\n\n render() {\n return (\n <form\n class={this.rightToLeftOrientation ? 'formRTL' : 'formLTR'}\n onSubmit={this.handleFormSubmit}\n >\n <sc-input-label label={this.labelForInput} />\n <div class='searchContainer'>\n {this.rightToLeftOrientation && <sc-button />}\n <sc-input\n onClearInput={this.handleClearInput}\n rightToLeftOrientation={this.rightToLeftOrientation}\n onSearchInputChange={this.handleSearchInputChange}\n query={this.query}\n />\n {!this.rightToLeftOrientation && (\n <sc-button onButtonClick={this.handleFormSubmit} />\n )}\n </div>\n {this.error && <sc-error-message errorMessage={this.errorMessage} />}\n </form>\n );\n }\n}\n","import { h } from '@stencil/core';\n\nexport const ClearInputIconLight = () => (\n <svg width='22' height='22' viewBox='0 0 22 22' fill='none'>\n <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\nexport const ClearInputIconDark = () => (\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 >\n <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\nexport const ArrowRightIconLight = () => (\n <svg width='20' height='21' viewBox='0 0 20 21' fill='none'>\n <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\nexport const ArrowRightIconDark = () => (\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 >\n <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","@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\nimport {\n ArrowRightIconLight,\n ArrowRightIconDark,\n} from '@assets/ClearInputIcon';\n\n@Component({\n tag: 'sc-base-search-result',\n styleUrl: 'sc-base-search-result.module.scss',\n shadow: true,\n})\nexport class ScBaseSearchResult {\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 ? <ArrowRightIconLight /> : <ArrowRightIconDark />}\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 <ArrowRightIconLight />\n ) : (\n <ArrowRightIconDark />\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: 'sc-base-search-results',\n styleUrl: 'sc-base-search-results.module.scss',\n shadow: true,\n})\nexport class ScBaseSearchResults {\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 <sc-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 <sc-error-message\n error-message={`No search results found for \"${this.query}\" query`}\n />\n )}\n </div>\n );\n }\n}\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","@import '../../utils/theme';\n\n:root {\n --font-stack: Helvetica, Arial, sans-serif;\n}\n\n@mixin button-base {\n border-radius: 8px;\n display: flex;\n font-family: var(--font-stack);\n font-size: 16px;\n font-weight: 700;\n line-height: 20px;\n padding: 11px 20px;\n position: relative;\n\n &:hover {\n cursor: pointer;\n }\n}\n\n.buttonLight {\n @include button-base;\n background-color: $light-background;\n border: 1px solid $light-button-border;\n color: $light-button-color;\n\n &:hover {\n background-color: $light-button-hover;\n }\n\n &:focus {\n outline: 2px solid $light-button-outline-focus;\n }\n}\n\n.buttonDark {\n @include button-base;\n background-color: $dark-background;\n border: 1px solid $dark-button-border;\n color: $dark-button-color;\n\n &:hover {\n background-color: $dark-button-hover;\n }\n\n &:focus {\n outline: 2px solid $dark-button-outline-focus;\n }\n}\n\n.spinnerMarginRight {\n left: 4px;\n margin-right: 4px;\n position: absolute;\n}\n\n.spinnerMarginLeft {\n left: 4px;\n margin-left: 4px;\n position: absolute;\n}\n\n.buttonLabel {\n animation: right-and-back .2s;\n margin-left: 4px;\n position: relative;\n}\n\n@keyframes right-and-back {\n 0% { right: -6px; }\n 50% { right: -12px; }\n 75% { right: -6px; }\n 100% {right: 0px; }\n}","import {\n Component,\n Event,\n type EventEmitter,\n Prop,\n h,\n State,\n Fragment,\n} from '@stencil/core';\nimport classNames from 'classnames';\n\n@Component({\n tag: 'sc-button',\n styleUrl: 'sc-button.module.scss',\n shadow: true,\n})\nexport class ScButton {\n @Prop() iconElement?: Element;\n @Prop() iconOnly = false;\n @Prop() iconPosition = 'left';\n @Prop() label = 'Search';\n\n @Event() buttonClick!: EventEmitter<void>;\n\n @State() isRequesting = false;\n @State() theme = 'light';\n\n private getButtonStyle() {\n return this.theme === 'light' ? 'buttonLight' : 'buttonDark';\n }\n\n private handleClick = () => {\n this.buttonClick.emit(); // Emit the event instead of calling a function\n };\n\n render() {\n const buttonStyle = this.getButtonStyle();\n\n return (\n <Fragment>\n {this.iconOnly ? (\n <button\n class={classNames(buttonStyle, 'searchcraft-button')}\n onClick={this.handleClick}\n type='submit'\n >\n {this.isRequesting ? <sc-spinner-dark /> : this.iconElement}\n </button>\n ) : (\n <button\n class={classNames(buttonStyle, 'searchcraft-button')}\n onClick={this.handleClick}\n type='submit'\n >\n {this.iconPosition === 'left' && this.isRequesting ? (\n <div class='spinner-margin-right'>\n <sc-spinner-dark />\n </div>\n ) : (\n this.iconElement\n )}\n <span\n class={classNames(\n this.isRequesting && 'button-label',\n 'searchcraft-button-label',\n )}\n >\n {this.label}\n </span>\n </button>\n )}\n </Fragment>\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: 'sc-spinner-dark',\n styleUrl: 'sc-spinner-dark.module.scss',\n shadow: true,\n})\nexport class ScSpinnerDark {\n render() {\n return (\n <div class='spinnerContainer'>\n <div class='spinnerDark' />\n </div>\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: 11px;\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: 11px;\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\nimport {\n ClearInputIconLight,\n ClearInputIconDark,\n} from '@assets/ClearInputIcon';\n\nimport { ScSpinnerDark } from '@components/sc-spinner-dark/sc-spinner-dark';\nimport { ScSpinnerLight } from '@components/sc-spinner-light/sc-spinner-light';\n\n@Component({\n tag: 'sc-clear-input-button',\n styleUrl: 'sc-clear-input-button.module.scss',\n shadow: true,\n})\nexport class ScClearInputButton {\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} // Use the handler\n type='button'\n >\n {this.isRequesting ? (\n this.isLightTheme ? (\n <ScSpinnerLight />\n ) : (\n <ScSpinnerDark />\n )\n ) : this.isLightTheme ? (\n <ClearInputIconLight />\n ) : (\n <ClearInputIconDark />\n )}\n </button>\n ) : (\n <button\n class={classNames('inputClearButtonLTR', '.sc-clear-input-button-ltr')}\n onClick={this.handleClearClick} // Use the handler\n type='button'\n >\n {this.isRequesting ? (\n this.isLightTheme ? (\n <ScSpinnerLight />\n ) : (\n <ScSpinnerDark />\n )\n ) : this.isLightTheme ? (\n <ClearInputIconLight />\n ) : (\n <ClearInputIconDark />\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: 'sc-error-message',\n styleUrl: 'sc-error-message.module.scss',\n shadow: true, // Enable shadow DOM if desired\n})\nexport class ScErrorMessage {\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}\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\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","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\nexport interface ScInputCustomEvent<T> extends CustomEvent<T> {\n detail: T;\n target: HTMLScInputElement;\n}\n\n@Component({\n tag: 'sc-input',\n styleUrl: 'sc-input.module.scss',\n shadow: true,\n})\nexport class ScInput {\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() searchInputChange: EventEmitter<string>;\n @Event() clearInput: EventEmitter<void>;\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 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(\n this.error\n ? this.isLightTheme\n ? 'inputErrorLightRTL'\n : 'inputErrorDarkRTL'\n : this.isLightTheme\n ? 'inputLightRTL'\n : 'inputDarkRTL',\n inputClassName,\n 'searchcraft-input',\n )}\n id='searchcraft-input-id'\n onChange={this.handleInputChange.bind(this)}\n placeholder={this.placeholderValue}\n type='text'\n value={this.query}\n />\n {this.inputCaptionValue && (\n <sc-input-caption\n inputCaptionClassName={this.inputCaptionClassName}\n inputCaptionValue={this.inputCaptionValue}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n )}\n {this.query.length > 0 && (\n <sc-clear-input-button\n onClearInput={this.handleClearInput}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n )}\n <sc-input-icon\n error={this.error}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n </Fragment>\n ) : (\n <Fragment>\n <input\n class={classNames(\n this.error\n ? this.isLightTheme\n ? 'inputErrorLightLTR'\n : 'inputErrorDarkLTR'\n : this.isLightTheme\n ? 'inputLightLTR'\n : 'inputDarkLTR',\n inputClassName,\n 'searchcraft-input',\n )}\n id='searchcraft-input-id'\n onChange={this.handleInputChange.bind(this)}\n placeholder={this.placeholderValue}\n type='text'\n value={this.query}\n />\n {this.inputCaptionValue && (\n <sc-input-caption\n inputCaptionClassName={this.inputCaptionClassName}\n inputCaptionValue={this.inputCaptionValue}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n )}\n {this.query.length > 0 && (\n <sc-clear-input-button\n onClearInput={this.handleClearInput}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n )}\n </Fragment>\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: 'sc-input-caption',\n styleUrl: 'sc-input-caption.module.scss',\n shadow: true,\n})\nexport class ScInputCaption {\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","import { h } from '@stencil/core';\n\nexport const SearchIconLight = () => (\n <svg width='20' height='20' viewBox='0 0 20 20' fill='none'>\n <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\nexport const SearchIconDark = () => (\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 >\n <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\nexport const SearchIconLightError = () => (\n <svg width='20' height='20' viewBox='0 0 20 20' fill='none'>\n <title>Searchcraft Error 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='#737373'\n stroke-width='1.5'\n stroke-linecap='round'\n stroke-linejoin='round'\n />\n </svg>\n);\n\nexport const SearchIconDarkError = () => (\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 >\n <title>Searchcraft Error 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='#BFBFBF'\n stroke-width='1.5'\n stroke-linecap='round'\n stroke-linejoin='round'\n />\n </svg>\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\nimport {\n SearchIconLight,\n SearchIconDark,\n SearchIconLightError,\n SearchIconDarkError,\n} from '@assets/SearchIcons';\n\n@Component({\n tag: 'sc-input-icon',\n styleUrl: 'sc-input-icon.module.scss',\n shadow: true,\n})\nexport class ScInputIcon {\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 ? <SearchIconLightError /> : <SearchIconDarkError />}\n </div>\n ) : (\n <div\n class={this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR'}\n >\n {this.isLightTheme ? <SearchIconLight /> : <SearchIconDark />}\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: 'sc-input-label',\n styleUrl: 'sc-input-label.module.scss',\n shadow: true,\n})\nexport class ScInputLabel {\n @Prop() inputLabelClassName? = '';\n @Prop() label = 'Enter Search';\n @State() theme = 'light';\n\n private isLightTheme() {\n return this.theme === 'light';\n }\n\n render() {\n const labelStyle = this.isLightTheme ? 'labelLight' : 'labelDark';\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"],"version":3}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-c97f8c28.js';
|
|
2
|
-
|
|
3
|
-
const scSpinnerLightModuleCss = ".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)}}";
|
|
4
|
-
const ScSpinnerLightStyle0 = scSpinnerLightModuleCss;
|
|
5
|
-
|
|
6
|
-
const ScSpinnerLight = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
}
|
|
10
|
-
render() {
|
|
11
|
-
return (h("div", { key: '688125d45da633cea7894306e57b80b940d72fa0', class: 'spinnerContainer' }, h("div", { key: '5775e4964f7446736fcf2262d7797389679b29c5', class: 'spinnerLight' })));
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
ScSpinnerLight.style = ScSpinnerLightStyle0;
|
|
15
|
-
|
|
16
|
-
export { ScSpinnerLight as S };
|
|
17
|
-
|
|
18
|
-
//# sourceMappingURL=sc-spinner-light-cdb79a33.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"sc-spinner-light-cdb79a33.js","mappings":";;AAAA,MAAM,uBAAuB,GAAG,8aAA8a,CAAC;AAC/c,6BAAe,uBAAuB;;MCMzB,cAAc;;;;IACzB,MAAM;QACJ,QACE,4DAAK,KAAK,EAAC,kBAAkB,IAC3B,4DAAK,KAAK,EAAC,cAAc,GAAG,CACxB,EACN;KACH;;;;;;","names":[],"sources":["src/components/sc-spinner-light/sc-spinner-light.module.scss?tag=sc-spinner-light&encapsulation=shadow","src/components/sc-spinner-light/sc-spinner-light.tsx"],"sourcesContent":["$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: 'sc-spinner-light',\n styleUrl: 'sc-spinner-light.module.scss',\n shadow: true,\n})\nexport class ScSpinnerLight {\n render() {\n return (\n <div class='spinnerContainer'>\n <div class='spinnerLight' />\n </div>\n );\n }\n}\n"],"version":3}
|