@searchcraft/javascript-sdk 0.1.0 → 0.1.2
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-e7e9ab69.js} +50 -5
- package/dist/cjs/index-e7e9ab69.js.map +1 -0
- package/dist/cjs/index.cjs.js +5 -1
- 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 +460 -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/{store-6c259dd0.js → store-ab3978ce.js} +2 -2
- package/dist/cjs/{store-6c259dd0.js.map → store-ab3978ce.js.map} +1 -1
- package/dist/cjs/utils-57b6c18f.js +48 -0
- package/dist/cjs/utils-57b6c18f.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/searchcraft-base-search-result/searchcraft-base-search-result.js +302 -0
- package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.js.map +1 -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} +42 -2
- package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js +123 -0
- 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-icon/sc-input-icon.module.css → searchcraft-input-icon/searchcraft-input-icon.module.css} +6 -4
- 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/provider/store.js.map +1 -1
- package/dist/collection/utils/utils.js +40 -0
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/index.js +3 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-a912a224.js → p-066c8210.js} +49 -5
- package/dist/components/p-066c8210.js.map +1 -0
- package/dist/components/p-1912bbbd.js +83 -0
- package/dist/components/p-1912bbbd.js.map +1 -0
- package/dist/components/p-1bd04bac.js +135 -0
- package/dist/components/p-1bd04bac.js.map +1 -0
- package/dist/{esm/store-2370857c.js → components/p-36c95064.js} +2 -2
- package/dist/components/{p-6f0eaec6.js.map → p-36c95064.js.map} +1 -1
- package/dist/components/p-5e3152c4.js +44 -0
- package/dist/components/p-5e3152c4.js.map +1 -0
- package/dist/components/p-63035c6a.js +50 -0
- package/dist/components/p-63035c6a.js.map +1 -0
- package/dist/components/p-6f2a72d3.js +41 -0
- package/dist/components/p-6f2a72d3.js.map +1 -0
- package/dist/components/p-8d9551ce.js +34 -0
- package/dist/components/p-8d9551ce.js.map +1 -0
- package/dist/components/p-b1ff2296.js +69 -0
- package/dist/components/p-b1ff2296.js.map +1 -0
- package/dist/components/p-c3838435.js +62 -0
- package/dist/components/p-c3838435.js.map +1 -0
- package/dist/components/p-cb75ba7a.js +61 -0
- package/dist/components/p-cb75ba7a.js.map +1 -0
- package/dist/components/p-d0edf961.js +44 -0
- package/dist/components/p-d0edf961.js.map +1 -0
- package/dist/components/p-d446eda4.js +44 -0
- package/dist/components/p-d446eda4.js.map +1 -0
- package/dist/components/p-d54bca75.js +50 -0
- package/dist/components/p-d54bca75.js.map +1 -0
- package/dist/components/p-d6616aa5.js +34 -0
- package/dist/components/p-d6616aa5.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 +111 -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-72ac5051.js +82 -0
- package/dist/esm/index-72ac5051.js.map +1 -0
- package/dist/esm/{index-c97f8c28.js → index-eace3343.js} +50 -6
- package/dist/esm/index-eace3343.js.map +1 -0
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/searchcraft-auto-search-form_13.entry.js +444 -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/{components/p-6f0eaec6.js → esm/store-e55b12aa.js} +2 -2
- package/dist/esm/{store-2370857c.js.map → store-e55b12aa.js.map} +1 -1
- package/dist/esm/utils-02b18bb5.js +44 -0
- package/dist/esm/utils-02b18bb5.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/index.esm.js +1 -1
- package/dist/searchcraft-javascript-sdk/p-0ba9029b.js +3 -0
- package/dist/searchcraft-javascript-sdk/p-0ba9029b.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/{p-6f0eaec6.js → p-36c95064.js} +1 -1
- package/dist/searchcraft-javascript-sdk/p-36c95064.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-437c6ef9.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-437c6ef9.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-562e923d.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-562e923d.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-5959cd6a.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-5959cd6a.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-5e3152c4.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-5e3152c4.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-eb632a89.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-eb632a89.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/searchcraft-base-search-result/searchcraft-base-search-result.d.ts +19 -0
- package/dist/types/components/searchcraft-base-search-results/searchcraft-base-search-results.d.ts +20 -0
- 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 +269 -177
- package/dist/types/index.d.ts +1 -0
- package/dist/types/provider/store.d.ts +3 -3
- package/dist/types/utils/utils.d.ts +8 -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 +0 -242
- 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 +0 -58
- 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-6f0eaec6.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-base-search-result/sc-base-search-result.d.ts +0 -16
- package/dist/types/components/sc-base-search-results/sc-base-search-results.d.ts +0 -9
- 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-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-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,34 +0,0 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h } from './p-a912a224.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 = /*@__PURE__*/ proxyCustomElement(class ScSpinnerLight extends H {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.__attachShadow();
|
|
11
|
-
}
|
|
12
|
-
render() {
|
|
13
|
-
return (h("div", { key: '688125d45da633cea7894306e57b80b940d72fa0', class: 'spinnerContainer' }, h("div", { key: '5775e4964f7446736fcf2262d7797389679b29c5', class: 'spinnerLight' })));
|
|
14
|
-
}
|
|
15
|
-
static get style() { return ScSpinnerLightStyle0; }
|
|
16
|
-
}, [1, "sc-spinner-light"]);
|
|
17
|
-
function defineCustomElement() {
|
|
18
|
-
if (typeof customElements === "undefined") {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
const components = ["sc-spinner-light"];
|
|
22
|
-
components.forEach(tagName => { switch (tagName) {
|
|
23
|
-
case "sc-spinner-light":
|
|
24
|
-
if (!customElements.get(tagName)) {
|
|
25
|
-
customElements.define(tagName, ScSpinnerLight);
|
|
26
|
-
}
|
|
27
|
-
break;
|
|
28
|
-
} });
|
|
29
|
-
}
|
|
30
|
-
defineCustomElement();
|
|
31
|
-
|
|
32
|
-
export { ScSpinnerLight as S, defineCustomElement as d };
|
|
33
|
-
|
|
34
|
-
//# sourceMappingURL=p-074239f9.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"p-074239f9.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}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h } from './p-a912a224.js';
|
|
2
|
-
import { c as classNames } from './p-5cdc6210.js';
|
|
3
|
-
|
|
4
|
-
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}";
|
|
5
|
-
const ScInputCaptionStyle0 = scInputCaptionModuleCss;
|
|
6
|
-
|
|
7
|
-
const ScInputCaption = /*@__PURE__*/ proxyCustomElement(class ScInputCaption extends H {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
this.__registerHost();
|
|
11
|
-
this.__attachShadow();
|
|
12
|
-
this.error = undefined;
|
|
13
|
-
this.inputCaptionClassName = '';
|
|
14
|
-
this.inputCaptionValue = 'Enter Search';
|
|
15
|
-
this.rightToLeftOrientation = false;
|
|
16
|
-
this.theme = 'light';
|
|
17
|
-
}
|
|
18
|
-
isLightTheme() {
|
|
19
|
-
return this.theme === 'light';
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
22
|
-
return this.rightToLeftOrientation ? (h("p", { class: classNames(this.error
|
|
23
|
-
? this.isLightTheme
|
|
24
|
-
? 'inputCaptionErrorLightRTL'
|
|
25
|
-
: 'inputCaptionErrorDarkRTL'
|
|
26
|
-
: this.isLightTheme
|
|
27
|
-
? 'inputCaptionLightRTL'
|
|
28
|
-
: 'inputCaptionDarkRTL', this.inputCaptionClassName, '.searchcraft-input-caption') }, this.inputCaptionValue)) : (h("p", { class: classNames(this.error
|
|
29
|
-
? this.isLightTheme
|
|
30
|
-
? 'inputCaptionErrorLightLTR'
|
|
31
|
-
: 'inputCaptionErrorDarkLTR'
|
|
32
|
-
: this.isLightTheme
|
|
33
|
-
? 'inputCaptionLightLTR'
|
|
34
|
-
: 'inputCaptionDarkLTR', this.inputCaptionClassName, '.searchcraft-input-caption') }, this.inputCaptionValue));
|
|
35
|
-
}
|
|
36
|
-
static get style() { return ScInputCaptionStyle0; }
|
|
37
|
-
}, [1, "sc-input-caption", {
|
|
38
|
-
"error": [4],
|
|
39
|
-
"inputCaptionClassName": [1, "input-caption-class-name"],
|
|
40
|
-
"inputCaptionValue": [1, "input-caption-value"],
|
|
41
|
-
"rightToLeftOrientation": [4, "right-to-left-orientation"],
|
|
42
|
-
"theme": [32]
|
|
43
|
-
}]);
|
|
44
|
-
function defineCustomElement() {
|
|
45
|
-
if (typeof customElements === "undefined") {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
const components = ["sc-input-caption"];
|
|
49
|
-
components.forEach(tagName => { switch (tagName) {
|
|
50
|
-
case "sc-input-caption":
|
|
51
|
-
if (!customElements.get(tagName)) {
|
|
52
|
-
customElements.define(tagName, ScInputCaption);
|
|
53
|
-
}
|
|
54
|
-
break;
|
|
55
|
-
} });
|
|
56
|
-
}
|
|
57
|
-
defineCustomElement();
|
|
58
|
-
|
|
59
|
-
export { ScInputCaption as S, defineCustomElement as d };
|
|
60
|
-
|
|
61
|
-
//# sourceMappingURL=p-184d9504.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"p-184d9504.js","mappings":";;;AAAA,MAAM,uBAAuB,GAAG,8oCAA8oC,CAAC;AAC/qC,6BAAe,uBAAuB;;MCOzB,cAAc;;;;;;qCAEQ,EAAE;iCACP,cAAc;sCACT,KAAK;qBACrB,OAAO;;IAEhB,YAAY;QAClB,OAAO,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC;KAC/B;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,sBAAsB,IAChC,SACE,KAAK,EAAE,UAAU,CACf,IAAI,CAAC,KAAK;kBACN,IAAI,CAAC,YAAY;sBACf,2BAA2B;sBAC3B,0BAA0B;kBAC5B,IAAI,CAAC,YAAY;sBACf,sBAAsB;sBACtB,qBAAqB,EAC3B,IAAI,CAAC,qBAAqB,EAC1B,4BAA4B,CAC7B,IAEA,IAAI,CAAC,iBAAiB,CACrB,KAEJ,SACE,KAAK,EAAE,UAAU,CACf,IAAI,CAAC,KAAK;kBACN,IAAI,CAAC,YAAY;sBACf,2BAA2B;sBAC3B,0BAA0B;kBAC5B,IAAI,CAAC,YAAY;sBACf,sBAAsB;sBACtB,qBAAqB,EAC3B,IAAI,CAAC,qBAAqB,EAC1B,4BAA4B,CAC7B,IAEA,IAAI,CAAC,iBAAiB,CACrB,CACL,CAAC;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["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"],"sourcesContent":["@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"],"version":3}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h as h$1 } from './p-a912a224.js';
|
|
2
|
-
import { h } from './p-c54fdecb.js';
|
|
3
|
-
|
|
4
|
-
const SearchIconLight = () => (h("svg", { width: '20', height: '20', viewBox: '0 0 20 20', fill: 'none' },
|
|
5
|
-
h("title", null, "Searchcraft Search Icon Light"),
|
|
6
|
-
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' })));
|
|
7
|
-
const SearchIconDark = () => (h("svg", { width: '18', height: '18', viewBox: '0 0 18 18', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
|
|
8
|
-
h("title", null, "Searchcraft Search Icon Dark"),
|
|
9
|
-
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' })));
|
|
10
|
-
const SearchIconLightError = () => (h("svg", { width: '20', height: '20', viewBox: '0 0 20 20', fill: 'none' },
|
|
11
|
-
h("title", null, "Searchcraft Error Search Icon Light"),
|
|
12
|
-
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' })));
|
|
13
|
-
const SearchIconDarkError = () => (h("svg", { width: '18', height: '18', viewBox: '0 0 18 18', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
|
|
14
|
-
h("title", null, "Searchcraft Error Search Icon Dark"),
|
|
15
|
-
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' })));
|
|
16
|
-
|
|
17
|
-
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}";
|
|
18
|
-
const ScInputIconStyle0 = scInputIconModuleCss;
|
|
19
|
-
|
|
20
|
-
const ScInputIcon = /*@__PURE__*/ proxyCustomElement(class ScInputIcon extends H {
|
|
21
|
-
constructor() {
|
|
22
|
-
super();
|
|
23
|
-
this.__registerHost();
|
|
24
|
-
this.__attachShadow();
|
|
25
|
-
this.error = undefined;
|
|
26
|
-
this.rightToLeftOrientation = false;
|
|
27
|
-
this.theme = 'light';
|
|
28
|
-
}
|
|
29
|
-
isLightTheme() {
|
|
30
|
-
return this.theme === 'light';
|
|
31
|
-
}
|
|
32
|
-
render() {
|
|
33
|
-
return this.error ? (h$1("div", { class: this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR' }, this.isLightTheme ? h$1(SearchIconLightError, null) : h$1(SearchIconDarkError, null))) : (h$1("div", { class: this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR' }, this.isLightTheme ? h$1(SearchIconLight, null) : h$1(SearchIconDark, null)));
|
|
34
|
-
}
|
|
35
|
-
static get style() { return ScInputIconStyle0; }
|
|
36
|
-
}, [1, "sc-input-icon", {
|
|
37
|
-
"error": [4],
|
|
38
|
-
"rightToLeftOrientation": [4, "right-to-left-orientation"],
|
|
39
|
-
"theme": [32]
|
|
40
|
-
}]);
|
|
41
|
-
function defineCustomElement() {
|
|
42
|
-
if (typeof customElements === "undefined") {
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
const components = ["sc-input-icon"];
|
|
46
|
-
components.forEach(tagName => { switch (tagName) {
|
|
47
|
-
case "sc-input-icon":
|
|
48
|
-
if (!customElements.get(tagName)) {
|
|
49
|
-
customElements.define(tagName, ScInputIcon);
|
|
50
|
-
}
|
|
51
|
-
break;
|
|
52
|
-
} });
|
|
53
|
-
}
|
|
54
|
-
defineCustomElement();
|
|
55
|
-
|
|
56
|
-
export { ScInputIcon as S, defineCustomElement as d };
|
|
57
|
-
|
|
58
|
-
//# sourceMappingURL=p-23bdbb1f.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"p-23bdbb1f.js","mappings":";;;AAEO,MAAM,eAAe,GAAG,OAC7B,WAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM;IACzD,iDAA4C;IAC5C,YACE,CAAC,EAAC,mNAAmN,EACrN,MAAM,EAAC,SAAS,kBACH,KAAK,oBACH,OAAO,qBACN,OAAO,GACvB,CACE,CACP,CAAC;AAEK,MAAM,cAAc,GAAG,OAC5B,WACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B;IAElC,gDAA2C;IAC3C,YACE,CAAC,EAAC,mNAAmN,EACrN,MAAM,EAAC,SAAS,kBACH,KAAK,oBACH,OAAO,qBACN,OAAO,GACvB,CACE,CACP,CAAC;AAEK,MAAM,oBAAoB,GAAG,OAClC,WAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM;IACzD,uDAAkD;IAClD,YACE,CAAC,EAAC,mNAAmN,EACrN,MAAM,EAAC,SAAS,kBACH,KAAK,oBACH,OAAO,qBACN,OAAO,GACvB,CACE,CACP,CAAC;AAEK,MAAM,mBAAmB,GAAG,OACjC,WACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B;IAElC,sDAAiD;IACjD,YACE,CAAC,EAAC,mNAAmN,EACrN,MAAM,EAAC,SAAS,kBACH,KAAK,oBACH,OAAO,qBACN,OAAO,GACvB,CACE,CACP;;AChED,MAAM,oBAAoB,GAAG,uMAAuM,CAAC;AACrO,0BAAe,oBAAoB;;MCatB,WAAW;;;;;;sCAEW,KAAK;qBACrB,OAAO;;IAEhB,YAAY;QAClB,OAAO,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC;KAC/B;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,IACfA,aACE,KAAK,EAAE,IAAI,CAAC,sBAAsB,GAAG,cAAc,GAAG,cAAc,IAEnE,IAAI,CAAC,YAAY,GAAGA,IAAC,oBAAoB,OAAG,GAAGA,IAAC,mBAAmB,OAAG,CACnE,KAENA,aACE,KAAK,EAAE,IAAI,CAAC,sBAAsB,GAAG,cAAc,GAAG,cAAc,IAEnE,IAAI,CAAC,YAAY,GAAGA,IAAC,eAAe,OAAG,GAAGA,IAAC,cAAc,OAAG,CACzD,CACP,CAAC;KACH;;;;;;;;;;;;;;;;;;;;;;;;","names":["h"],"sources":["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"],"sourcesContent":["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"],"version":3}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment } from './p-a912a224.js';
|
|
2
|
-
import { c as classNames } from './p-5cdc6210.js';
|
|
3
|
-
import { d as defineCustomElement$1 } from './p-dfb43eea.js';
|
|
4
|
-
|
|
5
|
-
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}}";
|
|
6
|
-
const ScButtonStyle0 = scButtonModuleCss;
|
|
7
|
-
|
|
8
|
-
const ScButton = /*@__PURE__*/ proxyCustomElement(class ScButton extends H {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.__attachShadow();
|
|
13
|
-
this.buttonClick = createEvent(this, "buttonClick", 7);
|
|
14
|
-
this.handleClick = () => {
|
|
15
|
-
this.buttonClick.emit(); // Emit the event instead of calling a function
|
|
16
|
-
};
|
|
17
|
-
this.iconElement = undefined;
|
|
18
|
-
this.iconOnly = false;
|
|
19
|
-
this.iconPosition = 'left';
|
|
20
|
-
this.label = 'Search';
|
|
21
|
-
this.isRequesting = false;
|
|
22
|
-
this.theme = 'light';
|
|
23
|
-
}
|
|
24
|
-
getButtonStyle() {
|
|
25
|
-
return this.theme === 'light' ? 'buttonLight' : 'buttonDark';
|
|
26
|
-
}
|
|
27
|
-
render() {
|
|
28
|
-
const buttonStyle = this.getButtonStyle();
|
|
29
|
-
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)))));
|
|
30
|
-
}
|
|
31
|
-
static get style() { return ScButtonStyle0; }
|
|
32
|
-
}, [1, "sc-button", {
|
|
33
|
-
"iconElement": [16],
|
|
34
|
-
"iconOnly": [4, "icon-only"],
|
|
35
|
-
"iconPosition": [1, "icon-position"],
|
|
36
|
-
"label": [1],
|
|
37
|
-
"isRequesting": [32],
|
|
38
|
-
"theme": [32]
|
|
39
|
-
}]);
|
|
40
|
-
function defineCustomElement() {
|
|
41
|
-
if (typeof customElements === "undefined") {
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
const components = ["sc-button", "sc-spinner-dark"];
|
|
45
|
-
components.forEach(tagName => { switch (tagName) {
|
|
46
|
-
case "sc-button":
|
|
47
|
-
if (!customElements.get(tagName)) {
|
|
48
|
-
customElements.define(tagName, ScButton);
|
|
49
|
-
}
|
|
50
|
-
break;
|
|
51
|
-
case "sc-spinner-dark":
|
|
52
|
-
if (!customElements.get(tagName)) {
|
|
53
|
-
defineCustomElement$1();
|
|
54
|
-
}
|
|
55
|
-
break;
|
|
56
|
-
} });
|
|
57
|
-
}
|
|
58
|
-
defineCustomElement();
|
|
59
|
-
|
|
60
|
-
export { ScButton as S, defineCustomElement as d };
|
|
61
|
-
|
|
62
|
-
//# sourceMappingURL=p-255a89f7.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"p-255a89f7.js","mappings":";;;;AAAA,MAAM,iBAAiB,GAAG,y/BAAy/B,CAAC;AACphC,uBAAe,iBAAiB;;MCenB,QAAQ;;;;;;QAeX,gBAAW,GAAG;YACpB,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;SACzB,CAAC;;wBAfiB,KAAK;4BACD,MAAM;qBACb,QAAQ;4BAIA,KAAK;qBACZ,OAAO;;IAEhB,cAAc;QACpB,OAAO,IAAI,CAAC,KAAK,KAAK,OAAO,GAAG,aAAa,GAAG,YAAY,CAAC;KAC9D;IAMD,MAAM;QACJ,MAAM,WAAW,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QAE1C,QACE,EAAC,QAAQ,uDACN,IAAI,CAAC,QAAQ,IACZ,cACE,KAAK,EAAE,UAAU,CAAC,WAAW,EAAE,oBAAoB,CAAC,EACpD,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,IAAI,EAAC,QAAQ,IAEZ,IAAI,CAAC,YAAY,GAAG,0BAAmB,GAAG,IAAI,CAAC,WAAW,CACpD,KAET,cACE,KAAK,EAAE,UAAU,CAAC,WAAW,EAAE,oBAAoB,CAAC,EACpD,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,IAAI,EAAC,QAAQ,IAEZ,IAAI,CAAC,YAAY,KAAK,MAAM,IAAI,IAAI,CAAC,YAAY,IAChD,WAAK,KAAK,EAAC,sBAAsB,IAC/B,0BAAmB,CACf,KAEN,IAAI,CAAC,WAAW,CACjB,EACD,YACE,KAAK,EAAE,UAAU,CACf,IAAI,CAAC,YAAY,IAAI,cAAc,EACnC,0BAA0B,CAC3B,IAEA,IAAI,CAAC,KAAK,CACN,CACA,CACV,CACQ,EACX;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/sc-button/sc-button.module.scss?tag=sc-button&encapsulation=shadow","src/components/sc-button/sc-button.tsx"],"sourcesContent":["@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"],"version":3}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment } from './p-a912a224.js';
|
|
2
|
-
import { c as classNames } from './p-5cdc6210.js';
|
|
3
|
-
import { d as defineCustomElement$3 } from './p-75be555b.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './p-184d9504.js';
|
|
5
|
-
import { d as defineCustomElement$1 } from './p-23bdbb1f.js';
|
|
6
|
-
|
|
7
|
-
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}";
|
|
8
|
-
const ScInputStyle0 = scInputModuleCss;
|
|
9
|
-
|
|
10
|
-
const ScInput = /*@__PURE__*/ proxyCustomElement(class ScInput extends H {
|
|
11
|
-
constructor() {
|
|
12
|
-
super();
|
|
13
|
-
this.__registerHost();
|
|
14
|
-
this.__attachShadow();
|
|
15
|
-
this.searchInputChange = createEvent(this, "searchInputChange", 7);
|
|
16
|
-
this.clearInput = createEvent(this, "clearInput", 7);
|
|
17
|
-
this.error = false;
|
|
18
|
-
this.formClassName = '';
|
|
19
|
-
this.inputCaptionClassName = '';
|
|
20
|
-
this.inputCaptionValue = '';
|
|
21
|
-
this.inputClassName = '';
|
|
22
|
-
this.placeholderValue = 'Enter Search';
|
|
23
|
-
this.rightToLeftOrientation = false;
|
|
24
|
-
this.query = '';
|
|
25
|
-
this.theme = 'light';
|
|
26
|
-
}
|
|
27
|
-
get isLightTheme() {
|
|
28
|
-
return this.theme === 'light';
|
|
29
|
-
}
|
|
30
|
-
handleInputChange(event) {
|
|
31
|
-
const input = event.target;
|
|
32
|
-
this.searchInputChange.emit(input.value);
|
|
33
|
-
}
|
|
34
|
-
handleClearInput() {
|
|
35
|
-
if (this.clearInput) {
|
|
36
|
-
this.clearInput.emit();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
render() {
|
|
40
|
-
const containerClassName = this.rightToLeftOrientation
|
|
41
|
-
? 'inputContainerRTL'
|
|
42
|
-
: 'inputContainerLTR';
|
|
43
|
-
const inputClassName = classNames(this.error
|
|
44
|
-
? this.isLightTheme
|
|
45
|
-
? 'inputErrorLightRTL'
|
|
46
|
-
: 'inputErrorDarkRTL'
|
|
47
|
-
: this.isLightTheme
|
|
48
|
-
? 'inputLightLTR'
|
|
49
|
-
: 'inputDarkLTR', 'searchcraft-input');
|
|
50
|
-
return (h("div", { key: '0257fcbab8d8f78439506f609784ef089f9b2784', class: classNames(containerClassName, this.formClassName, 'searchcraft-input-form') }, this.rightToLeftOrientation ? (h(Fragment, null, h("input", { class: classNames(this.error
|
|
51
|
-
? this.isLightTheme
|
|
52
|
-
? 'inputErrorLightRTL'
|
|
53
|
-
: 'inputErrorDarkRTL'
|
|
54
|
-
: this.isLightTheme
|
|
55
|
-
? 'inputLightRTL'
|
|
56
|
-
: '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
|
|
57
|
-
? this.isLightTheme
|
|
58
|
-
? 'inputErrorLightLTR'
|
|
59
|
-
: 'inputErrorDarkLTR'
|
|
60
|
-
: this.isLightTheme
|
|
61
|
-
? 'inputLightLTR'
|
|
62
|
-
: '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 }))))));
|
|
63
|
-
}
|
|
64
|
-
static get style() { return ScInputStyle0; }
|
|
65
|
-
}, [1, "sc-input", {
|
|
66
|
-
"error": [4],
|
|
67
|
-
"formClassName": [1, "form-class-name"],
|
|
68
|
-
"inputCaptionClassName": [1, "input-caption-class-name"],
|
|
69
|
-
"inputCaptionValue": [1, "input-caption-value"],
|
|
70
|
-
"inputClassName": [1, "input-class-name"],
|
|
71
|
-
"placeholderValue": [1, "placeholder-value"],
|
|
72
|
-
"rightToLeftOrientation": [4, "right-to-left-orientation"],
|
|
73
|
-
"query": [1],
|
|
74
|
-
"theme": [32]
|
|
75
|
-
}]);
|
|
76
|
-
function defineCustomElement() {
|
|
77
|
-
if (typeof customElements === "undefined") {
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
const components = ["sc-input", "sc-clear-input-button", "sc-input-caption", "sc-input-icon"];
|
|
81
|
-
components.forEach(tagName => { switch (tagName) {
|
|
82
|
-
case "sc-input":
|
|
83
|
-
if (!customElements.get(tagName)) {
|
|
84
|
-
customElements.define(tagName, ScInput);
|
|
85
|
-
}
|
|
86
|
-
break;
|
|
87
|
-
case "sc-clear-input-button":
|
|
88
|
-
if (!customElements.get(tagName)) {
|
|
89
|
-
defineCustomElement$3();
|
|
90
|
-
}
|
|
91
|
-
break;
|
|
92
|
-
case "sc-input-caption":
|
|
93
|
-
if (!customElements.get(tagName)) {
|
|
94
|
-
defineCustomElement$2();
|
|
95
|
-
}
|
|
96
|
-
break;
|
|
97
|
-
case "sc-input-icon":
|
|
98
|
-
if (!customElements.get(tagName)) {
|
|
99
|
-
defineCustomElement$1();
|
|
100
|
-
}
|
|
101
|
-
break;
|
|
102
|
-
} });
|
|
103
|
-
}
|
|
104
|
-
defineCustomElement();
|
|
105
|
-
|
|
106
|
-
export { ScInput as S, defineCustomElement as d };
|
|
107
|
-
|
|
108
|
-
//# sourceMappingURL=p-5410e357.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"p-5410e357.js","mappings":";;;;;;AAAA,MAAM,gBAAgB,GAAG,khHAAkhH,CAAC;AAC5iH,sBAAe,gBAAgB;;MCoBlB,OAAO;;;;;;;qBACF,KAAK;6BACG,EAAE;qCACM,EAAE;iCACN,EAAE;8BACL,EAAE;gCACA,cAAc;sCACR,KAAK;qBACtB,EAAE;qBAKD,OAAO;;IAExB,IAAY,YAAY;QACtB,OAAO,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC;KAC/B;IAED,iBAAiB,CAAC,KAAY;QAC5B,MAAM,KAAK,GAAG,KAAK,CAAC,MAA0B,CAAC;QAC/C,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;KAC1C;IAED,gBAAgB;QACd,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;SACxB;KACF;IAED,MAAM;QACJ,MAAM,kBAAkB,GAAG,IAAI,CAAC,sBAAsB;cAClD,mBAAmB;cACnB,mBAAmB,CAAC;QAExB,MAAM,cAAc,GAAG,UAAU,CAC/B,IAAI,CAAC,KAAK;cACN,IAAI,CAAC,YAAY;kBACf,oBAAoB;kBACpB,mBAAmB;cACrB,IAAI,CAAC,YAAY;kBACf,eAAe;kBACf,cAAc,EACpB,mBAAmB,CACpB,CAAC;QAEF,QACE,4DACE,KAAK,EAAE,UAAU,CACf,kBAAkB,EAClB,IAAI,CAAC,aAAa,EAClB,wBAAwB,CACzB,IAEA,IAAI,CAAC,sBAAsB,IAC1B,EAAC,QAAQ,QACP,aACE,KAAK,EAAE,UAAU,CACf,IAAI,CAAC,KAAK;kBACN,IAAI,CAAC,YAAY;sBACf,oBAAoB;sBACpB,mBAAmB;kBACrB,IAAI,CAAC,YAAY;sBACf,eAAe;sBACf,cAAc,EACpB,cAAc,EACd,mBAAmB,CACpB,EACD,EAAE,EAAC,sBAAsB,EACzB,QAAQ,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,EAC3C,WAAW,EAAE,IAAI,CAAC,gBAAgB,EAClC,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,IAAI,CAAC,KAAK,GACjB,EACD,IAAI,CAAC,iBAAiB,KACrB,wBACE,qBAAqB,EAAE,IAAI,CAAC,qBAAqB,EACjD,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,EACzC,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,GACnD,CACH,EACA,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,KACpB,6BACE,YAAY,EAAE,IAAI,CAAC,gBAAgB,EACnC,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,GACnD,CACH,EACD,qBACE,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,GACnD,CACO,KAEX,EAAC,QAAQ,QACP,aACE,KAAK,EAAE,UAAU,CACf,IAAI,CAAC,KAAK;kBACN,IAAI,CAAC,YAAY;sBACf,oBAAoB;sBACpB,mBAAmB;kBACrB,IAAI,CAAC,YAAY;sBACf,eAAe;sBACf,cAAc,EACpB,cAAc,EACd,mBAAmB,CACpB,EACD,EAAE,EAAC,sBAAsB,EACzB,QAAQ,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,EAC3C,WAAW,EAAE,IAAI,CAAC,gBAAgB,EAClC,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,IAAI,CAAC,KAAK,GACjB,EACD,IAAI,CAAC,iBAAiB,KACrB,wBACE,qBAAqB,EAAE,IAAI,CAAC,qBAAqB,EACjD,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,EACzC,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,GACnD,CACH,EACA,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,KACpB,6BACE,YAAY,EAAE,IAAI,CAAC,gBAAgB,EACnC,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,GACnD,CACH,CACQ,CACZ,CACG,EACN;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/sc-input/sc-input.module.scss?tag=sc-input&encapsulation=shadow","src/components/sc-input/sc-input.tsx"],"sourcesContent":["@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"],"version":3}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h } from './p-a912a224.js';
|
|
2
|
-
import { A as ArrowRightIconLight, b as ArrowRightIconDark } from './p-b05f23e3.js';
|
|
3
|
-
|
|
4
|
-
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}";
|
|
5
|
-
const ScBaseSearchResultStyle0 = scBaseSearchResultModuleCss;
|
|
6
|
-
|
|
7
|
-
const ScBaseSearchResult = /*@__PURE__*/ proxyCustomElement(class ScBaseSearchResult extends H {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
this.__registerHost();
|
|
11
|
-
this.__attachShadow();
|
|
12
|
-
this.handleButtonClick = () => {
|
|
13
|
-
this.buttonCallbackFn();
|
|
14
|
-
};
|
|
15
|
-
this.handleContainerClick = () => {
|
|
16
|
-
if (this.interactiveResult) {
|
|
17
|
-
this.callbackFn();
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
this.buttonCallbackFn = () => { };
|
|
21
|
-
this.buttonLabel = '';
|
|
22
|
-
this.callbackFn = () => { };
|
|
23
|
-
this.imageAltText = '';
|
|
24
|
-
this.imageSrc = '';
|
|
25
|
-
this.interactiveResult = false;
|
|
26
|
-
this.keyDownCallbackFn = () => { };
|
|
27
|
-
this.resultBodyContent = '';
|
|
28
|
-
this.resultHeading = '';
|
|
29
|
-
this.resultSubheading = '';
|
|
30
|
-
this.theme = 'light';
|
|
31
|
-
}
|
|
32
|
-
render() {
|
|
33
|
-
const isLightTheme = this.theme === 'light';
|
|
34
|
-
return (h("div", { key: 'ee89d0d997c1616d4534cae4ee9685f6ce040099', class: this.interactiveResult
|
|
35
|
-
? isLightTheme
|
|
36
|
-
? 'interactiveResultContainerLight'
|
|
37
|
-
: 'interactiveResultContainerDark'
|
|
38
|
-
: '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))));
|
|
39
|
-
}
|
|
40
|
-
static get style() { return ScBaseSearchResultStyle0; }
|
|
41
|
-
}, [1, "sc-base-search-result", {
|
|
42
|
-
"buttonCallbackFn": [16],
|
|
43
|
-
"buttonLabel": [1, "button-label"],
|
|
44
|
-
"callbackFn": [16],
|
|
45
|
-
"imageAltText": [1, "image-alt-text"],
|
|
46
|
-
"imageSrc": [1, "image-src"],
|
|
47
|
-
"interactiveResult": [4, "interactive-result"],
|
|
48
|
-
"keyDownCallbackFn": [16],
|
|
49
|
-
"resultBodyContent": [1, "result-body-content"],
|
|
50
|
-
"resultHeading": [1, "result-heading"],
|
|
51
|
-
"resultSubheading": [1, "result-subheading"],
|
|
52
|
-
"theme": [1]
|
|
53
|
-
}]);
|
|
54
|
-
function defineCustomElement() {
|
|
55
|
-
if (typeof customElements === "undefined") {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
const components = ["sc-base-search-result"];
|
|
59
|
-
components.forEach(tagName => { switch (tagName) {
|
|
60
|
-
case "sc-base-search-result":
|
|
61
|
-
if (!customElements.get(tagName)) {
|
|
62
|
-
customElements.define(tagName, ScBaseSearchResult);
|
|
63
|
-
}
|
|
64
|
-
break;
|
|
65
|
-
} });
|
|
66
|
-
}
|
|
67
|
-
defineCustomElement();
|
|
68
|
-
|
|
69
|
-
export { ScBaseSearchResult as S, defineCustomElement as d };
|
|
70
|
-
|
|
71
|
-
//# sourceMappingURL=p-5b7b903a.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"p-5b7b903a.js","mappings":";;;AAAA,MAAM,2BAA2B,GAAG,qvEAAqvE,CAAC;AAC1xE,iCAAe,2BAA2B;;MCW7B,kBAAkB;;;;;QAarB,sBAAiB,GAAG;YAC1B,IAAI,CAAC,gBAAgB,EAAE,CAAC;SACzB,CAAC;QAEM,yBAAoB,GAAG;YAC7B,IAAI,IAAI,CAAC,iBAAiB,EAAE;gBAC1B,IAAI,CAAC,UAAU,EAAE,CAAC;aACnB;SACF,CAAC;gCApBqC,SAAQ;2BACzB,EAAE;0BACS,SAAQ;4BAClB,EAAE;wBACN,EAAE;iCACO,KAAK;iCACO,SAAQ;iCACpB,EAAE;6BACN,EAAE;gCACC,EAAE;qBACK,OAAO;;IAYzC,MAAM;QACJ,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC;QAE5C,QACE,4DACE,KAAK,EACH,IAAI,CAAC,iBAAiB;kBAClB,YAAY;sBACV,iCAAiC;sBACjC,gCAAgC;kBAClC,iBAAiB,EAEvB,EAAE,EAAC,kBAAkB,EACrB,OAAO,EAAE,IAAI,CAAC,oBAAoB,EAClC,SAAS,EAAE,IAAI,CAAC,iBAAiB,EACjC,QAAQ,EAAC,GAAG,IAEX,IAAI,CAAC,iBAAiB,KACrB,4DAAK,KAAK,EAAC,sBAAsB,IAC9B,YAAY,GAAG,EAAC,mBAAmB,OAAG,GAAG,EAAC,kBAAkB,OAAG,CAC5D,CACP,EACD,4DAAK,KAAK,EAAC,gBAAgB,IACzB,4DACE,GAAG,EAAE,IAAI,CAAC,YAAY,EACtB,KAAK,EAAE,YAAY,GAAG,YAAY,GAAG,WAAW,EAChD,GAAG,EAAE,IAAI,CAAC,QAAQ,GAClB,CACE,EACN,4DAAK,KAAK,EAAC,kBAAkB,IAC3B,2DAAI,KAAK,EAAE,YAAY,GAAG,cAAc,GAAG,aAAa,IACrD,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,iBAAiB,KACrB,4DAAK,KAAK,EAAC,sBAAsB,IAC9B,YAAY,IACX,EAAC,mBAAmB,OAAG,KAEvB,EAAC,kBAAkB,OAAG,CACvB,CACG,CACP,CACE,EACL,2DAAI,KAAK,EAAE,YAAY,GAAG,iBAAiB,GAAG,gBAAgB,IAC3D,IAAI,CAAC,gBAAgB,CACnB,EACL,0DAAG,KAAK,EAAE,YAAY,GAAG,kBAAkB,GAAG,iBAAiB,IAC5D,IAAI,CAAC,iBAAiB,CACrB,EACJ,+DAAQ,OAAO,EAAE,IAAI,CAAC,iBAAiB,EAAE,IAAI,EAAC,QAAQ,IACnD,IAAI,CAAC,WAAW,CACV,CACL,CACF,EACN;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["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"],"sourcesContent":["@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"],"version":3}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, c as createEvent, h } from './p-a912a224.js';
|
|
2
|
-
import { c as classNames } from './p-5cdc6210.js';
|
|
3
|
-
import { C as ClearInputIconLight, a as ClearInputIconDark } from './p-b05f23e3.js';
|
|
4
|
-
import { S as ScSpinnerDark } from './p-dfb43eea.js';
|
|
5
|
-
import { S as ScSpinnerLight } from './p-074239f9.js';
|
|
6
|
-
|
|
7
|
-
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}";
|
|
8
|
-
const ScClearInputButtonStyle0 = scClearInputButtonModuleCss;
|
|
9
|
-
|
|
10
|
-
const ScClearInputButton = /*@__PURE__*/ proxyCustomElement(class ScClearInputButton extends H {
|
|
11
|
-
constructor() {
|
|
12
|
-
super();
|
|
13
|
-
this.__registerHost();
|
|
14
|
-
this.__attachShadow();
|
|
15
|
-
this.clearInput = createEvent(this, "clearInput", 7);
|
|
16
|
-
// Added a click handler to emit the event
|
|
17
|
-
this.handleClearClick = (event) => {
|
|
18
|
-
event.preventDefault(); // Prevent default if necessary
|
|
19
|
-
this.clearInput.emit(); // Emit the event
|
|
20
|
-
};
|
|
21
|
-
this.isRequesting = false;
|
|
22
|
-
this.rightToLeftOrientation = false;
|
|
23
|
-
this.theme = 'light';
|
|
24
|
-
}
|
|
25
|
-
isLightTheme() {
|
|
26
|
-
return this.theme === 'light';
|
|
27
|
-
}
|
|
28
|
-
render() {
|
|
29
|
-
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))));
|
|
30
|
-
}
|
|
31
|
-
static get style() { return ScClearInputButtonStyle0; }
|
|
32
|
-
}, [1, "sc-clear-input-button", {
|
|
33
|
-
"isRequesting": [4, "is-requesting"],
|
|
34
|
-
"rightToLeftOrientation": [4, "right-to-left-orientation"],
|
|
35
|
-
"theme": [32]
|
|
36
|
-
}]);
|
|
37
|
-
function defineCustomElement() {
|
|
38
|
-
if (typeof customElements === "undefined") {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
const components = ["sc-clear-input-button"];
|
|
42
|
-
components.forEach(tagName => { switch (tagName) {
|
|
43
|
-
case "sc-clear-input-button":
|
|
44
|
-
if (!customElements.get(tagName)) {
|
|
45
|
-
customElements.define(tagName, ScClearInputButton);
|
|
46
|
-
}
|
|
47
|
-
break;
|
|
48
|
-
} });
|
|
49
|
-
}
|
|
50
|
-
defineCustomElement();
|
|
51
|
-
|
|
52
|
-
export { ScClearInputButton as S, defineCustomElement as d };
|
|
53
|
-
|
|
54
|
-
//# sourceMappingURL=p-75be555b.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"p-75be555b.js","mappings":";;;;;;AAAA,MAAM,2BAA2B,GAAG,+YAA+Y,CAAC;AACpb,iCAAe,2BAA2B;;MCsB7B,kBAAkB;;;;;;;QAcrB,qBAAgB,GAAG,CAAC,KAAiB;YAC3C,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;SACxB,CAAC;4BAhBsB,KAAK;sCACI,KAAK;qBAKrB,OAAO;;IAEhB,YAAY;QAClB,OAAO,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC;KAC/B;IAQD,MAAM;QACJ,OAAO,IAAI,CAAC,sBAAsB,IAChC,cACE,KAAK,EAAE,UAAU,CAAC,qBAAqB,EAAE,4BAA4B,CAAC,EACtE,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAC9B,IAAI,EAAC,QAAQ,IAEZ,IAAI,CAAC,YAAY,IAChB,IAAI,CAAC,YAAY,IACf,EAAC,cAAc,OAAG,KAElB,EAAC,aAAa,OAAG,CAClB,IACC,IAAI,CAAC,YAAY,IACnB,EAAC,mBAAmB,OAAG,KAEvB,EAAC,kBAAkB,OAAG,CACvB,CACM,KAET,cACE,KAAK,EAAE,UAAU,CAAC,qBAAqB,EAAE,4BAA4B,CAAC,EACtE,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAC9B,IAAI,EAAC,QAAQ,IAEZ,IAAI,CAAC,YAAY,IAChB,IAAI,CAAC,YAAY,IACf,EAAC,cAAc,OAAG,KAElB,EAAC,aAAa,OAAG,CAClB,IACC,IAAI,CAAC,YAAY,IACnB,EAAC,mBAAmB,OAAG,KAEvB,EAAC,kBAAkB,OAAG,CACvB,CACM,CACV,CAAC;KACH;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["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"],"sourcesContent":[":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"],"version":3}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h } from './p-a912a224.js';
|
|
2
|
-
import { c as classNames } from './p-5cdc6210.js';
|
|
3
|
-
|
|
4
|
-
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}";
|
|
5
|
-
const ScErrorMessageStyle0 = scErrorMessageModuleCss;
|
|
6
|
-
|
|
7
|
-
const ScErrorMessage = /*@__PURE__*/ proxyCustomElement(class ScErrorMessage extends H {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
this.__registerHost();
|
|
11
|
-
this.__attachShadow();
|
|
12
|
-
this.errorMessage = undefined;
|
|
13
|
-
this.theme = 'light';
|
|
14
|
-
}
|
|
15
|
-
render() {
|
|
16
|
-
const errorMessageStyle = this.theme === 'light' ? 'errorMessageLight' : 'errorMessageDark';
|
|
17
|
-
return (h("p", { key: '485fcb74212005ebf4f2d63576bca05d4b9a9867', class: classNames(errorMessageStyle) }, this.errorMessage || 'Search term is required.'));
|
|
18
|
-
}
|
|
19
|
-
static get style() { return ScErrorMessageStyle0; }
|
|
20
|
-
}, [1, "sc-error-message", {
|
|
21
|
-
"errorMessage": [1, "error-message"],
|
|
22
|
-
"theme": [1]
|
|
23
|
-
}]);
|
|
24
|
-
function defineCustomElement() {
|
|
25
|
-
if (typeof customElements === "undefined") {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
const components = ["sc-error-message"];
|
|
29
|
-
components.forEach(tagName => { switch (tagName) {
|
|
30
|
-
case "sc-error-message":
|
|
31
|
-
if (!customElements.get(tagName)) {
|
|
32
|
-
customElements.define(tagName, ScErrorMessage);
|
|
33
|
-
}
|
|
34
|
-
break;
|
|
35
|
-
} });
|
|
36
|
-
}
|
|
37
|
-
defineCustomElement();
|
|
38
|
-
|
|
39
|
-
export { ScErrorMessage as S, defineCustomElement as d };
|
|
40
|
-
|
|
41
|
-
//# sourceMappingURL=p-79564f07.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"p-79564f07.js","mappings":";;;AAAA,MAAM,uBAAuB,GAAG,6SAA6S,CAAC;AAC9U,6BAAe,uBAAuB;;MCOzB,cAAc;;;;;;qBASS,OAAO;;IAEzC,MAAM;QACJ,MAAM,iBAAiB,GACrB,IAAI,CAAC,KAAK,KAAK,OAAO,GAAG,mBAAmB,GAAG,kBAAkB,CAAC;QAEpE,QACE,0DAAG,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,IACpC,IAAI,CAAC,YAAY,IAAI,0BAA0B,CAC9C,EACJ;KACH;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["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"],"sourcesContent":["@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"],"version":3}
|