@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.
Files changed (317) hide show
  1. package/dist/cjs/index-5b0b9d4c.js +84 -0
  2. package/dist/cjs/index-5b0b9d4c.js.map +1 -0
  3. package/dist/cjs/{index-0c2339c7.js → index-e7bd239c.js} +48 -4
  4. package/dist/cjs/index-e7bd239c.js.map +1 -0
  5. package/dist/cjs/index.cjs.js +2 -0
  6. package/dist/cjs/index.cjs.js.map +1 -1
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/cjs/searchcraft-auto-search-form_13.cjs.entry.js +434 -0
  9. package/dist/cjs/searchcraft-auto-search-form_13.cjs.entry.js.map +1 -0
  10. package/dist/cjs/searchcraft-base-search-form.cjs.entry.js +64 -0
  11. package/dist/cjs/searchcraft-base-search-form.cjs.entry.js.map +1 -0
  12. package/dist/cjs/searchcraft-button-icon.cjs.entry.js +18 -0
  13. package/dist/cjs/searchcraft-button-icon.cjs.entry.js.map +1 -0
  14. package/dist/cjs/searchcraft-button.cjs.entry.js +37 -0
  15. package/dist/cjs/searchcraft-button.cjs.entry.js.map +1 -0
  16. package/dist/cjs/searchcraft-javascript-sdk.cjs.js +2 -2
  17. package/dist/cjs/utils-cbbed1f7.js +23 -0
  18. package/dist/cjs/utils-cbbed1f7.js.map +1 -0
  19. package/dist/collection/assets/searchcraft-button-icons.js +9 -0
  20. package/dist/collection/assets/searchcraft-button-icons.js.map +1 -0
  21. package/dist/collection/assets/searchcraft-clear-icon-set.js +45 -0
  22. package/dist/collection/assets/searchcraft-clear-icon-set.js.map +1 -0
  23. package/dist/collection/assets/searchcraft-search-icon-set.js +45 -0
  24. package/dist/collection/assets/searchcraft-search-icon-set.js.map +1 -0
  25. package/dist/collection/collection-manifest.json +16 -13
  26. package/dist/collection/components/{sc-auto-search-form/sc-auto-search-form.js → searchcraft-auto-search-form/searchcraft-auto-search-form.js} +58 -39
  27. package/dist/collection/components/searchcraft-auto-search-form/searchcraft-auto-search-form.js.map +1 -0
  28. 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
  29. package/dist/collection/components/{sc-base-search-form/sc-base-search-form.js → searchcraft-base-search-form/searchcraft-base-search-form.js} +6 -6
  30. package/dist/collection/components/searchcraft-base-search-form/searchcraft-base-search-form.js.map +1 -0
  31. package/dist/collection/components/{sc-base-search-result/sc-base-search-result.js → searchcraft-base-search-result/searchcraft-base-search-result.js} +7 -8
  32. package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.js.map +1 -0
  33. package/dist/collection/components/{sc-base-search-results/sc-base-search-results.js → searchcraft-base-search-results/searchcraft-base-search-results.js} +7 -7
  34. package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js.map +1 -0
  35. package/dist/collection/components/{sc-button/sc-button.js → searchcraft-button/searchcraft-button.js} +6 -6
  36. package/dist/collection/components/searchcraft-button/searchcraft-button.js.map +1 -0
  37. package/dist/collection/components/{sc-clear-input-button/sc-clear-input-button.js → searchcraft-clear-input-button/searchcraft-clear-input-button.js} +6 -9
  38. package/dist/collection/components/searchcraft-clear-input-button/searchcraft-clear-input-button.js.map +1 -0
  39. 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
  40. package/dist/collection/components/{sc-error-message/sc-error-message.js → searchcraft-error-message/searchcraft-error-message.js} +6 -6
  41. package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.js.map +1 -0
  42. package/dist/collection/components/{sc-input/sc-input.js → searchcraft-input/searchcraft-input.js} +51 -26
  43. package/dist/collection/components/searchcraft-input/searchcraft-input.js.map +1 -0
  44. package/dist/collection/components/{sc-input/sc-input.module.css → searchcraft-input/searchcraft-input.module.css} +17 -0
  45. package/dist/collection/components/{sc-input-caption/sc-input-caption.js → searchcraft-input-caption/searchcraft-input-caption.js} +5 -5
  46. package/dist/collection/components/searchcraft-input-caption/searchcraft-input-caption.js.map +1 -0
  47. package/dist/collection/components/{sc-input-icon/sc-input-icon.js → searchcraft-input-icon/searchcraft-input-icon.js} +6 -7
  48. package/dist/collection/components/searchcraft-input-icon/searchcraft-input-icon.js.map +1 -0
  49. package/dist/collection/components/{sc-input-label/sc-input-label.js → searchcraft-input-label/searchcraft-input-label.js} +14 -11
  50. package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.js.map +1 -0
  51. package/dist/collection/components/searchcraft-spinner-dark/searchcraft-spinner-dark.js +19 -0
  52. package/dist/collection/components/searchcraft-spinner-dark/searchcraft-spinner-dark.js.map +1 -0
  53. package/dist/collection/components/searchcraft-spinner-light/searchcraft-spinner-light.js +19 -0
  54. package/dist/collection/components/searchcraft-spinner-light/searchcraft-spinner-light.js.map +1 -0
  55. package/dist/collection/index.js +3 -1
  56. package/dist/collection/index.js.map +1 -1
  57. package/dist/collection/utils/utils.js +17 -0
  58. package/dist/collection/utils/utils.js.map +1 -1
  59. package/dist/components/index.js +2 -1
  60. package/dist/components/index.js.map +1 -1
  61. package/dist/components/p-04e7305e.js +44 -0
  62. package/dist/components/p-04e7305e.js.map +1 -0
  63. package/dist/components/p-0c25e95d.js +41 -0
  64. package/dist/components/p-0c25e95d.js.map +1 -0
  65. package/dist/components/p-155f7a59.js +44 -0
  66. package/dist/components/p-155f7a59.js.map +1 -0
  67. package/dist/components/p-16a533e3.js +34 -0
  68. package/dist/components/p-16a533e3.js.map +1 -0
  69. package/dist/components/p-199065b5.js +61 -0
  70. package/dist/components/p-199065b5.js.map +1 -0
  71. package/dist/components/p-1ef23e15.js +21 -0
  72. package/dist/components/p-1ef23e15.js.map +1 -0
  73. package/dist/components/p-2cc8c074.js +69 -0
  74. package/dist/components/p-2cc8c074.js.map +1 -0
  75. package/dist/components/p-83c9df48.js +76 -0
  76. package/dist/components/p-83c9df48.js.map +1 -0
  77. package/dist/components/p-8646a603.js +50 -0
  78. package/dist/components/p-8646a603.js.map +1 -0
  79. package/dist/components/p-9283a3c2.js +50 -0
  80. package/dist/components/p-9283a3c2.js.map +1 -0
  81. package/dist/components/p-a18c4969.js +135 -0
  82. package/dist/components/p-a18c4969.js.map +1 -0
  83. package/dist/components/{p-a912a224.js → p-c69651f6.js} +48 -4
  84. package/dist/components/p-c69651f6.js.map +1 -0
  85. package/dist/components/p-e8e40447.js +34 -0
  86. package/dist/components/p-e8e40447.js.map +1 -0
  87. package/dist/components/p-f83f2b59.js +62 -0
  88. package/dist/components/p-f83f2b59.js.map +1 -0
  89. package/dist/components/searchcraft-auto-search-form.d.ts +11 -0
  90. package/dist/components/searchcraft-auto-search-form.js +185 -0
  91. package/dist/components/searchcraft-auto-search-form.js.map +1 -0
  92. package/dist/components/searchcraft-base-search-form.d.ts +11 -0
  93. package/dist/components/searchcraft-base-search-form.js +153 -0
  94. package/dist/components/searchcraft-base-search-form.js.map +1 -0
  95. package/dist/components/searchcraft-base-search-result.d.ts +11 -0
  96. package/dist/components/searchcraft-base-search-result.js +8 -0
  97. package/dist/components/searchcraft-base-search-result.js.map +1 -0
  98. package/dist/components/searchcraft-base-search-results.d.ts +11 -0
  99. package/dist/components/searchcraft-base-search-results.js +89 -0
  100. package/dist/components/searchcraft-base-search-results.js.map +1 -0
  101. package/dist/components/searchcraft-button-icon.d.ts +11 -0
  102. package/dist/components/searchcraft-button-icon.js +33 -0
  103. package/dist/components/searchcraft-button-icon.js.map +1 -0
  104. package/dist/components/{sc-base-search-form.d.ts → searchcraft-button.d.ts} +4 -4
  105. package/dist/components/searchcraft-button.js +8 -0
  106. package/dist/components/searchcraft-button.js.map +1 -0
  107. package/dist/components/searchcraft-clear-icon-set.d.ts +11 -0
  108. package/dist/components/searchcraft-clear-icon-set.js +8 -0
  109. package/dist/components/searchcraft-clear-icon-set.js.map +1 -0
  110. package/dist/components/searchcraft-clear-input-button.d.ts +11 -0
  111. package/dist/components/searchcraft-clear-input-button.js +8 -0
  112. package/dist/components/searchcraft-clear-input-button.js.map +1 -0
  113. package/dist/components/searchcraft-error-message.d.ts +11 -0
  114. package/dist/components/searchcraft-error-message.js +8 -0
  115. package/dist/components/searchcraft-error-message.js.map +1 -0
  116. package/dist/components/searchcraft-input-caption.d.ts +11 -0
  117. package/dist/components/searchcraft-input-caption.js +8 -0
  118. package/dist/components/searchcraft-input-caption.js.map +1 -0
  119. package/dist/components/searchcraft-input-icon.d.ts +11 -0
  120. package/dist/components/searchcraft-input-icon.js +8 -0
  121. package/dist/components/searchcraft-input-icon.js.map +1 -0
  122. package/dist/components/searchcraft-input-label.d.ts +11 -0
  123. package/dist/components/searchcraft-input-label.js +8 -0
  124. package/dist/components/searchcraft-input-label.js.map +1 -0
  125. package/dist/components/{sc-auto-search-form.d.ts → searchcraft-input.d.ts} +4 -4
  126. package/dist/components/searchcraft-input.js +8 -0
  127. package/dist/components/searchcraft-input.js.map +1 -0
  128. package/dist/components/searchcraft-search-icon-set.d.ts +11 -0
  129. package/dist/components/searchcraft-search-icon-set.js +8 -0
  130. package/dist/components/searchcraft-search-icon-set.js.map +1 -0
  131. package/dist/components/searchcraft-spinner-dark.d.ts +11 -0
  132. package/dist/components/searchcraft-spinner-dark.js +8 -0
  133. package/dist/components/searchcraft-spinner-dark.js.map +1 -0
  134. package/dist/components/searchcraft-spinner-light.d.ts +11 -0
  135. package/dist/components/searchcraft-spinner-light.js +8 -0
  136. package/dist/components/searchcraft-spinner-light.js.map +1 -0
  137. package/dist/esm/{index-c97f8c28.js → index-0d9f850d.js} +48 -4
  138. package/dist/esm/index-0d9f850d.js.map +1 -0
  139. package/dist/esm/index-72ac5051.js +82 -0
  140. package/dist/esm/index-72ac5051.js.map +1 -0
  141. package/dist/esm/index.js +1 -0
  142. package/dist/esm/index.js.map +1 -1
  143. package/dist/esm/loader.js +3 -3
  144. package/dist/esm/searchcraft-auto-search-form_13.entry.js +418 -0
  145. package/dist/esm/searchcraft-auto-search-form_13.entry.js.map +1 -0
  146. package/dist/esm/searchcraft-base-search-form.entry.js +60 -0
  147. package/dist/esm/searchcraft-base-search-form.entry.js.map +1 -0
  148. package/dist/esm/searchcraft-button-icon.entry.js +14 -0
  149. package/dist/esm/searchcraft-button-icon.entry.js.map +1 -0
  150. package/dist/esm/searchcraft-button.entry.js +33 -0
  151. package/dist/esm/searchcraft-button.entry.js.map +1 -0
  152. package/dist/esm/searchcraft-javascript-sdk.js +3 -3
  153. package/dist/esm/utils-f221d91f.js +21 -0
  154. package/dist/esm/utils-f221d91f.js.map +1 -0
  155. package/dist/searchcraft-javascript-sdk/index.esm.js +1 -1
  156. package/dist/searchcraft-javascript-sdk/p-0a8c2538.entry.js +2 -0
  157. package/dist/searchcraft-javascript-sdk/p-0a8c2538.entry.js.map +1 -0
  158. package/dist/searchcraft-javascript-sdk/p-1ef23e15.js +2 -0
  159. package/dist/searchcraft-javascript-sdk/p-1ef23e15.js.map +1 -0
  160. package/dist/searchcraft-javascript-sdk/p-329c3f66.js +3 -0
  161. package/dist/searchcraft-javascript-sdk/p-329c3f66.js.map +1 -0
  162. package/dist/searchcraft-javascript-sdk/p-40791ead.entry.js +2 -0
  163. package/dist/searchcraft-javascript-sdk/p-40791ead.entry.js.map +1 -0
  164. package/dist/searchcraft-javascript-sdk/p-4d18a44a.entry.js +2 -0
  165. package/dist/searchcraft-javascript-sdk/p-4d18a44a.entry.js.map +1 -0
  166. package/dist/searchcraft-javascript-sdk/p-5cdc6210.js +7 -0
  167. package/dist/searchcraft-javascript-sdk/p-5cdc6210.js.map +1 -0
  168. package/dist/searchcraft-javascript-sdk/p-c0cb5bb1.entry.js +2 -0
  169. package/dist/searchcraft-javascript-sdk/p-c0cb5bb1.entry.js.map +1 -0
  170. package/dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js +1 -1
  171. package/dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js.map +1 -1
  172. package/dist/types/assets/searchcraft-button-icons.d.ts +3 -0
  173. package/dist/types/assets/searchcraft-clear-icon-set.d.ts +8 -0
  174. package/dist/types/assets/searchcraft-search-icon-set.d.ts +8 -0
  175. 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
  176. 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
  177. 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
  178. 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
  179. package/dist/types/components/{sc-button/sc-button.d.ts → searchcraft-button/searchcraft-button.d.ts} +1 -1
  180. 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
  181. package/dist/types/components/{sc-error-message/sc-error-message.d.ts → searchcraft-error-message/searchcraft-error-message.d.ts} +1 -1
  182. package/dist/types/components/{sc-input/sc-input.d.ts → searchcraft-input/searchcraft-input.d.ts} +4 -3
  183. package/dist/types/components/{sc-input-caption/sc-input-caption.d.ts → searchcraft-input-caption/searchcraft-input-caption.d.ts} +1 -1
  184. package/dist/types/components/{sc-input-icon/sc-input-icon.d.ts → searchcraft-input-icon/searchcraft-input-icon.d.ts} +1 -1
  185. package/dist/types/components/{sc-input-label/sc-input-label.d.ts → searchcraft-input-label/searchcraft-input-label.d.ts} +2 -2
  186. package/dist/types/components/searchcraft-spinner-dark/searchcraft-spinner-dark.d.ts +3 -0
  187. package/dist/types/components/searchcraft-spinner-light/searchcraft-spinner-light.d.ts +3 -0
  188. package/dist/types/components.d.ts +209 -153
  189. package/dist/types/index.d.ts +1 -0
  190. package/dist/types/utils/utils.d.ts +6 -0
  191. package/package.json +1 -1
  192. package/dist/cjs/index-0c2339c7.js.map +0 -1
  193. package/dist/cjs/sc-auto-search-form.cjs.entry.js +0 -101
  194. package/dist/cjs/sc-auto-search-form.cjs.entry.js.map +0 -1
  195. package/dist/cjs/sc-base-search-form_11.cjs.entry.js +0 -471
  196. package/dist/cjs/sc-base-search-form_11.cjs.entry.js.map +0 -1
  197. package/dist/cjs/sc-spinner-light-a3bfc8e6.js +0 -20
  198. package/dist/cjs/sc-spinner-light-a3bfc8e6.js.map +0 -1
  199. package/dist/cjs/sc-spinner-light.cjs.entry.js +0 -12
  200. package/dist/cjs/sc-spinner-light.cjs.entry.js.map +0 -1
  201. package/dist/collection/assets/ButtonIcons.js +0 -3
  202. package/dist/collection/assets/ButtonIcons.js.map +0 -1
  203. package/dist/collection/assets/ClearInputIcon.js +0 -6
  204. package/dist/collection/assets/ClearInputIcon.js.map +0 -1
  205. package/dist/collection/assets/SearchIcons.js +0 -6
  206. package/dist/collection/assets/SearchIcons.js.map +0 -1
  207. package/dist/collection/components/sc-auto-search-form/sc-auto-search-form.js.map +0 -1
  208. package/dist/collection/components/sc-base-search-form/sc-base-search-form.js.map +0 -1
  209. package/dist/collection/components/sc-base-search-result/sc-base-search-result.js.map +0 -1
  210. package/dist/collection/components/sc-base-search-results/sc-base-search-results.js.map +0 -1
  211. package/dist/collection/components/sc-button/sc-button.js.map +0 -1
  212. package/dist/collection/components/sc-clear-input-button/sc-clear-input-button.js.map +0 -1
  213. package/dist/collection/components/sc-error-message/sc-error-message.js.map +0 -1
  214. package/dist/collection/components/sc-input/sc-input.js.map +0 -1
  215. package/dist/collection/components/sc-input-caption/sc-input-caption.js.map +0 -1
  216. package/dist/collection/components/sc-input-icon/sc-input-icon.js.map +0 -1
  217. package/dist/collection/components/sc-input-label/sc-input-label.js.map +0 -1
  218. package/dist/collection/components/sc-spinner-dark/sc-spinner-dark.js +0 -19
  219. package/dist/collection/components/sc-spinner-dark/sc-spinner-dark.js.map +0 -1
  220. package/dist/collection/components/sc-spinner-light/sc-spinner-light.js +0 -19
  221. package/dist/collection/components/sc-spinner-light/sc-spinner-light.js.map +0 -1
  222. package/dist/components/p-074239f9.js +0 -34
  223. package/dist/components/p-074239f9.js.map +0 -1
  224. package/dist/components/p-184d9504.js +0 -61
  225. package/dist/components/p-184d9504.js.map +0 -1
  226. package/dist/components/p-23bdbb1f.js +0 -58
  227. package/dist/components/p-23bdbb1f.js.map +0 -1
  228. package/dist/components/p-255a89f7.js +0 -62
  229. package/dist/components/p-255a89f7.js.map +0 -1
  230. package/dist/components/p-5410e357.js +0 -108
  231. package/dist/components/p-5410e357.js.map +0 -1
  232. package/dist/components/p-5b7b903a.js +0 -71
  233. package/dist/components/p-5b7b903a.js.map +0 -1
  234. package/dist/components/p-75be555b.js +0 -54
  235. package/dist/components/p-75be555b.js.map +0 -1
  236. package/dist/components/p-79564f07.js +0 -41
  237. package/dist/components/p-79564f07.js.map +0 -1
  238. package/dist/components/p-a912a224.js.map +0 -1
  239. package/dist/components/p-b05f23e3.js +0 -18
  240. package/dist/components/p-b05f23e3.js.map +0 -1
  241. package/dist/components/p-c47cb37f.js +0 -46
  242. package/dist/components/p-c47cb37f.js.map +0 -1
  243. package/dist/components/p-c54fdecb.js +0 -164
  244. package/dist/components/p-c54fdecb.js.map +0 -1
  245. package/dist/components/p-dfb43eea.js +0 -34
  246. package/dist/components/p-dfb43eea.js.map +0 -1
  247. package/dist/components/sc-auto-search-form.js +0 -152
  248. package/dist/components/sc-auto-search-form.js.map +0 -1
  249. package/dist/components/sc-base-search-form.js +0 -135
  250. package/dist/components/sc-base-search-form.js.map +0 -1
  251. package/dist/components/sc-base-search-result.d.ts +0 -11
  252. package/dist/components/sc-base-search-result.js +0 -8
  253. package/dist/components/sc-base-search-result.js.map +0 -1
  254. package/dist/components/sc-base-search-results.d.ts +0 -11
  255. package/dist/components/sc-base-search-results.js +0 -83
  256. package/dist/components/sc-base-search-results.js.map +0 -1
  257. package/dist/components/sc-button.d.ts +0 -11
  258. package/dist/components/sc-button.js +0 -8
  259. package/dist/components/sc-button.js.map +0 -1
  260. package/dist/components/sc-clear-input-button.d.ts +0 -11
  261. package/dist/components/sc-clear-input-button.js +0 -8
  262. package/dist/components/sc-clear-input-button.js.map +0 -1
  263. package/dist/components/sc-error-message.d.ts +0 -11
  264. package/dist/components/sc-error-message.js +0 -8
  265. package/dist/components/sc-error-message.js.map +0 -1
  266. package/dist/components/sc-input-caption.d.ts +0 -11
  267. package/dist/components/sc-input-caption.js +0 -8
  268. package/dist/components/sc-input-caption.js.map +0 -1
  269. package/dist/components/sc-input-icon.d.ts +0 -11
  270. package/dist/components/sc-input-icon.js +0 -8
  271. package/dist/components/sc-input-icon.js.map +0 -1
  272. package/dist/components/sc-input-label.d.ts +0 -11
  273. package/dist/components/sc-input-label.js +0 -8
  274. package/dist/components/sc-input-label.js.map +0 -1
  275. package/dist/components/sc-input.d.ts +0 -11
  276. package/dist/components/sc-input.js +0 -8
  277. package/dist/components/sc-input.js.map +0 -1
  278. package/dist/components/sc-spinner-dark.d.ts +0 -11
  279. package/dist/components/sc-spinner-dark.js +0 -8
  280. package/dist/components/sc-spinner-dark.js.map +0 -1
  281. package/dist/components/sc-spinner-light.d.ts +0 -11
  282. package/dist/components/sc-spinner-light.js +0 -8
  283. package/dist/components/sc-spinner-light.js.map +0 -1
  284. package/dist/esm/index-c97f8c28.js.map +0 -1
  285. package/dist/esm/sc-auto-search-form.entry.js +0 -97
  286. package/dist/esm/sc-auto-search-form.entry.js.map +0 -1
  287. package/dist/esm/sc-base-search-form_11.entry.js +0 -457
  288. package/dist/esm/sc-base-search-form_11.entry.js.map +0 -1
  289. package/dist/esm/sc-spinner-light-cdb79a33.js +0 -18
  290. package/dist/esm/sc-spinner-light-cdb79a33.js.map +0 -1
  291. package/dist/esm/sc-spinner-light.entry.js +0 -4
  292. package/dist/esm/sc-spinner-light.entry.js.map +0 -1
  293. package/dist/searchcraft-javascript-sdk/p-8e9ba2cf.js +0 -3
  294. package/dist/searchcraft-javascript-sdk/p-8e9ba2cf.js.map +0 -1
  295. package/dist/searchcraft-javascript-sdk/p-94c68cce.js +0 -2
  296. package/dist/searchcraft-javascript-sdk/p-94c68cce.js.map +0 -1
  297. package/dist/searchcraft-javascript-sdk/p-9545c59a.entry.js +0 -7
  298. package/dist/searchcraft-javascript-sdk/p-9545c59a.entry.js.map +0 -1
  299. package/dist/searchcraft-javascript-sdk/p-c632f66c.entry.js +0 -2
  300. package/dist/searchcraft-javascript-sdk/p-c632f66c.entry.js.map +0 -1
  301. package/dist/searchcraft-javascript-sdk/p-f7dbb9a8.entry.js +0 -2
  302. package/dist/searchcraft-javascript-sdk/p-f7dbb9a8.entry.js.map +0 -1
  303. package/dist/types/assets/ButtonIcons.d.ts +0 -1
  304. package/dist/types/assets/ClearInputIcon.d.ts +0 -4
  305. package/dist/types/assets/SearchIcons.d.ts +0 -4
  306. package/dist/types/components/sc-spinner-dark/sc-spinner-dark.d.ts +0 -3
  307. package/dist/types/components/sc-spinner-light/sc-spinner-light.d.ts +0 -3
  308. /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
  309. /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
  310. /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
  311. /package/dist/collection/components/{sc-button/sc-button.module.css → searchcraft-button/searchcraft-button.module.css} +0 -0
  312. /package/dist/collection/components/{sc-error-message/sc-error-message.module.css → searchcraft-error-message/searchcraft-error-message.module.css} +0 -0
  313. /package/dist/collection/components/{sc-input-caption/sc-input-caption.module.css → searchcraft-input-caption/searchcraft-input-caption.module.css} +0 -0
  314. /package/dist/collection/components/{sc-input-icon/sc-input-icon.module.css → searchcraft-input-icon/searchcraft-input-icon.module.css} +0 -0
  315. /package/dist/collection/components/{sc-input-label/sc-input-label.module.css → searchcraft-input-label/searchcraft-input-label.module.css} +0 -0
  316. /package/dist/collection/components/{sc-spinner-dark/sc-spinner-dark.module.css → searchcraft-spinner-dark/searchcraft-spinner-dark.module.css} +0 -0
  317. /package/dist/collection/components/{sc-spinner-light/sc-spinner-light.module.css → searchcraft-spinner-light/searchcraft-spinner-light.module.css} +0 -0
@@ -0,0 +1,69 @@
1
+ import { p as proxyCustomElement, H, c as createEvent, h } from './p-c69651f6.js';
2
+ import { c as classNames } from './p-5cdc6210.js';
3
+ import { d as defineCustomElement$3 } from './p-155f7a59.js';
4
+ import { d as defineCustomElement$2 } from './p-16a533e3.js';
5
+ import { d as defineCustomElement$1 } from './p-e8e40447.js';
6
+
7
+ const searchcraftClearInputButtonModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.inputClearButtonLTR{align-items:center;background:none;border:none;display:flex;height:20px;justify-content:center;padding:0;position:absolute;right:25px;top:50%;transform:translateY(-50%);width:20px}.inputClearButtonRTL{align-items:center;background:none;border:none;display:flex;height:20px;justify-content:center;left:25px;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:20px}";
8
+ const SearchcraftClearInputButtonStyle0 = searchcraftClearInputButtonModuleCss;
9
+
10
+ const SearchcraftClearInputButton = /*@__PURE__*/ proxyCustomElement(class SearchcraftClearInputButton 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("searchcraft-spinner-light", null)) : (h("searchcraft-spinner-dark", null))) : this.isLightTheme ? (h("searchcraft-clear-icon-set", { type: 'clear-light' })) : (h("searchcraft-clear-icon-set", { type: 'clear-dark' })))) : (h("button", { class: classNames('inputClearButtonLTR', '.sc-clear-input-button-ltr'), onClick: this.handleClearClick, type: 'button' }, this.isRequesting ? (this.isLightTheme ? (h("searchcraft-spinner-light", null)) : (h("searchcraft-spinner-dark", null))) : this.isLightTheme ? (h("searchcraft-clear-icon-set", { type: 'clear-light' })) : (h("searchcraft-clear-icon-set", { type: 'clear-dark' }))));
30
+ }
31
+ static get style() { return SearchcraftClearInputButtonStyle0; }
32
+ }, [1, "searchcraft-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 = ["searchcraft-clear-input-button", "searchcraft-clear-icon-set", "searchcraft-spinner-dark", "searchcraft-spinner-light"];
42
+ components.forEach(tagName => { switch (tagName) {
43
+ case "searchcraft-clear-input-button":
44
+ if (!customElements.get(tagName)) {
45
+ customElements.define(tagName, SearchcraftClearInputButton);
46
+ }
47
+ break;
48
+ case "searchcraft-clear-icon-set":
49
+ if (!customElements.get(tagName)) {
50
+ defineCustomElement$3();
51
+ }
52
+ break;
53
+ case "searchcraft-spinner-dark":
54
+ if (!customElements.get(tagName)) {
55
+ defineCustomElement$2();
56
+ }
57
+ break;
58
+ case "searchcraft-spinner-light":
59
+ if (!customElements.get(tagName)) {
60
+ defineCustomElement$1();
61
+ }
62
+ break;
63
+ } });
64
+ }
65
+ defineCustomElement();
66
+
67
+ export { SearchcraftClearInputButton as S, defineCustomElement as d };
68
+
69
+ //# sourceMappingURL=p-2cc8c074.js.map
@@ -0,0 +1 @@
1
+ {"file":"p-2cc8c074.js","mappings":";;;;;;AAAA,MAAM,oCAAoC,GAAG,mcAAmc,CAAC;AACjf,0CAAe,oCAAoC;;MCctC,2BAA2B;;;;;;;QAc9B,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,oCAA6B,KAE7B,mCAA4B,CAC7B,IACC,IAAI,CAAC,YAAY,IACnB,kCAA4B,IAAI,EAAC,aAAa,GAAG,KAEjD,kCAA4B,IAAI,EAAC,YAAY,GAAG,CACjD,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,oCAA6B,KAE7B,mCAA4B,CAC7B,IACC,IAAI,CAAC,YAAY,IACnB,kCAA4B,IAAI,EAAC,aAAa,GAAG,KAEjD,kCAA4B,IAAI,EAAC,YAAY,GAAG,CACjD,CACM,CACV,CAAC;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/searchcraft-clear-input-button/searchcraft-clear-input-button.module.scss?tag=searchcraft-clear-input-button&encapsulation=shadow","src/components/searchcraft-clear-input-button/searchcraft-clear-input-button.tsx"],"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: 50%;\n transform: translateY(-50%);\n width: 20px;\n}\n\n.inputClearButtonRTL {\n align-items: center;\n background: none;\n border: none;\n display: flex;\n height: 20px;\n justify-content: center;\n left: 25px;\n padding: 0;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n width: 20px;\n}","import {\n Component,\n Event,\n type EventEmitter,\n Prop,\n h,\n State,\n} from '@stencil/core';\nimport classNames from 'classnames';\n\n@Component({\n tag: 'searchcraft-clear-input-button',\n styleUrl: 'searchcraft-clear-input-button.module.scss',\n shadow: true,\n})\nexport class SearchcraftClearInputButton {\n @Prop() isRequesting? = false;\n @Prop() rightToLeftOrientation = false;\n\n // Updated `clearInput` to an EventEmitter\n @Event() clearInput: EventEmitter<void>;\n\n @State() theme = 'light';\n\n private isLightTheme() {\n return this.theme === 'light';\n }\n\n // Added a click handler to emit the event\n private handleClearClick = (event: MouseEvent) => {\n event.preventDefault(); // Prevent default if necessary\n this.clearInput.emit(); // Emit the event\n };\n\n render() {\n return this.rightToLeftOrientation ? (\n <button\n class={classNames('inputClearButtonRTL', '.sc-clear-input-button-rtl')}\n onClick={this.handleClearClick}\n type='button'\n >\n {this.isRequesting ? (\n this.isLightTheme ? (\n <searchcraft-spinner-light />\n ) : (\n <searchcraft-spinner-dark />\n )\n ) : this.isLightTheme ? (\n <searchcraft-clear-icon-set type='clear-light' />\n ) : (\n <searchcraft-clear-icon-set type='clear-dark' />\n )}\n </button>\n ) : (\n <button\n class={classNames('inputClearButtonLTR', '.sc-clear-input-button-ltr')}\n onClick={this.handleClearClick}\n type='button'\n >\n {this.isRequesting ? (\n this.isLightTheme ? (\n <searchcraft-spinner-light />\n ) : (\n <searchcraft-spinner-dark />\n )\n ) : this.isLightTheme ? (\n <searchcraft-clear-icon-set type='clear-light' />\n ) : (\n <searchcraft-clear-icon-set type='clear-dark' />\n )}\n </button>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,76 @@
1
+ import { p as proxyCustomElement, H, h } from './p-c69651f6.js';
2
+ import { d as defineCustomElement$1 } from './p-155f7a59.js';
3
+
4
+ const searchcraftBaseSearchResultModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.interactiveResultContainerLight{background-color:#FAFAFA;align-items:flex-start;border-radius:16px;display:flex;position:relative;flex-direction:column;gap:16px;padding:8px}@media (min-width: 600px){.interactiveResultContainerLight{flex-direction:row}}.interactiveResultContainerDark{background-color:#2E2E2E;align-items:flex-start;border-radius:16px;display:flex;position:relative;flex-direction:column;gap:16px;padding:8px}@media (min-width: 600px){.interactiveResultContainerDark{flex-direction:row}}.resultContainer{align-items:flex-start;display:flex;flex-direction:column;gap:16px}@media (min-width: 600px){.resultContainer{flex-direction:row}}.interactiveIconLarge{display:inline-block;position:absolute;right:5px;top:8px}@media (max-width: 600px){.interactiveIconLarge{display:none}}.interactiveIconSmall{position:absolute;right:5px;top:-2px;display:inline-block}@media (min-width: 600px){.interactiveIconSmall{display:none}}.imageContainer{max-height:540px;max-width:100%}@media (min-width: 600px){.imageContainer{max-height:100%;max-width:50%}}.contentContainer{max-height:100%;max-width:100%}@media (min-width: 600px){.contentContainer{max-width:50%}}.imageLight{aspect-ratio:2/1;border-radius:8px;max-height:100%;max-width:100%;border:1px solid #D9D9D9}.imageDark{aspect-ratio:2/1;border-radius:8px;max-height:100%;max-width:100%;border:1px solid #333}.headingLight{font-family:var(--font-stack);font-size:16px;font-weight:700;line-height:20px;margin-bottom:4px;margin-top:0px;position:relative;color:#292929}.headingDark{font-family:var(--font-stack);font-size:16px;font-weight:700;line-height:20px;margin-bottom:4px;margin-top:0px;position:relative;color:#FFF}.subheadingLight{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-bottom:4px;margin-top:0px;color:#737373}.subheadingDark{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-bottom:4px;margin-top:0px;color:#BFBFBF}.bodyContentLight{font-family:var(--font-stack);font-size:16px;font-weight:400;line-height:20px;margin-bottom:4px;margin-top:0px;color:#404040}.bodyContentDark{font-family:var(--font-stack);font-size:16px;font-weight:400;line-height:20px;margin-bottom:4px;margin-top:0px;color:#E6E6E6}";
5
+ const SearchcraftBaseSearchResultStyle0 = searchcraftBaseSearchResultModuleCss;
6
+
7
+ const SearchcraftBaseSearchResult = /*@__PURE__*/ proxyCustomElement(class SearchcraftBaseSearchResult 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: '26e04a559c37ac68f1dc33d3810c66abc9755871', 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: '7d71fd1402fdafe67370eab10ca78ed385fb58d0', class: 'interactiveIconLarge' }, isLightTheme ? (h("searchcraft-clear-icon-set", { type: 'arrow-light' })) : (h("searchcraft-clear-icon-set", { type: 'arrow-dark' })))), h("div", { key: 'def02c3134ae8a756f196d9b9e4d90180767c8f8', class: 'imageContainer' }, h("img", { key: '5fb695256132b8b53f7008d67e2f5808bf3b6d28', alt: this.imageAltText, class: isLightTheme ? 'imageLight' : 'imageDark', src: this.imageSrc })), h("div", { key: 'cf533a08bcd15832ef6f7fd385c829ce8817435d', class: 'contentContainer' }, h("h2", { key: '9d9968ab969950008e1049177fb68d5d7ae00659', class: isLightTheme ? 'headingLight' : 'headingDark' }, this.resultHeading, this.interactiveResult && (h("div", { key: '56271a305c8290ebab89eeab75a466d666f26a2c', class: 'interactiveIconSmall' }, isLightTheme ? (h("searchcraft-clear-icon-set", { type: 'arrow-light' })) : (h("searchcraft-clear-icon-set", { type: 'arrow-dark' }))))), h("h3", { key: 'ea68f1f16f6b89979b3ba90a6e061809024e3498', class: isLightTheme ? 'subheadingLight' : 'subheadingDark' }, this.resultSubheading), h("p", { key: '0584a3077ff4f417e0d20d0acc28a624f5966e1c', class: isLightTheme ? 'bodyContentLight' : 'bodyContentDark' }, this.resultBodyContent), h("button", { key: '83ec2e81bd6dbe24d468cdee553c0c5a021f991b', onClick: this.handleButtonClick, type: 'button' }, this.buttonLabel))));
39
+ }
40
+ static get style() { return SearchcraftBaseSearchResultStyle0; }
41
+ }, [1, "searchcraft-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 = ["searchcraft-base-search-result", "searchcraft-clear-icon-set"];
59
+ components.forEach(tagName => { switch (tagName) {
60
+ case "searchcraft-base-search-result":
61
+ if (!customElements.get(tagName)) {
62
+ customElements.define(tagName, SearchcraftBaseSearchResult);
63
+ }
64
+ break;
65
+ case "searchcraft-clear-icon-set":
66
+ if (!customElements.get(tagName)) {
67
+ defineCustomElement$1();
68
+ }
69
+ break;
70
+ } });
71
+ }
72
+ defineCustomElement();
73
+
74
+ export { SearchcraftBaseSearchResult as S, defineCustomElement as d };
75
+
76
+ //# sourceMappingURL=p-83c9df48.js.map
@@ -0,0 +1 @@
1
+ {"file":"p-83c9df48.js","mappings":";;;AAAA,MAAM,oCAAoC,GAAG,qvEAAqvE,CAAC;AACnyE,0CAAe,oCAAoC;;MCMtC,2BAA2B;;;;;QAa9B,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,IACX,kCAA4B,IAAI,EAAC,aAAa,GAAG,KAEjD,kCAA4B,IAAI,EAAC,YAAY,GAAG,CACjD,CACG,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,kCAA4B,IAAI,EAAC,aAAa,GAAG,KAEjD,kCAA4B,IAAI,EAAC,YAAY,GAAG,CACjD,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/searchcraft-base-search-result/searchcraft-base-search-result.module.scss?tag=searchcraft-base-search-result&encapsulation=shadow","src/components/searchcraft-base-search-result/searchcraft-base-search-result.tsx"],"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\n@Component({\n tag: 'searchcraft-base-search-result',\n styleUrl: 'searchcraft-base-search-result.module.scss',\n shadow: true,\n})\nexport class SearchcraftBaseSearchResult {\n @Prop() buttonCallbackFn: () => void = () => {};\n @Prop() buttonLabel = '';\n @Prop() callbackFn: () => void = () => {};\n @Prop() imageAltText = '';\n @Prop() imageSrc = '';\n @Prop() interactiveResult = false;\n @Prop() keyDownCallbackFn: () => void = () => {};\n @Prop() resultBodyContent = '';\n @Prop() resultHeading = '';\n @Prop() resultSubheading = '';\n @Prop() theme: 'light' | 'dark' = 'light'; // Simulating theme context.\n\n private handleButtonClick = () => {\n this.buttonCallbackFn();\n };\n\n private handleContainerClick = () => {\n if (this.interactiveResult) {\n this.callbackFn();\n }\n };\n\n render() {\n const isLightTheme = this.theme === 'light';\n\n return (\n <div\n class={\n this.interactiveResult\n ? isLightTheme\n ? 'interactiveResultContainerLight'\n : 'interactiveResultContainerDark'\n : 'resultContainer'\n }\n id='searchcraft-item'\n onClick={this.handleContainerClick}\n onKeyDown={this.keyDownCallbackFn}\n tabindex='0'\n >\n {this.interactiveResult && (\n <div class='interactiveIconLarge'>\n {isLightTheme ? (\n <searchcraft-clear-icon-set type='arrow-light' />\n ) : (\n <searchcraft-clear-icon-set type='arrow-dark' />\n )}\n </div>\n )}\n <div class='imageContainer'>\n <img\n alt={this.imageAltText}\n class={isLightTheme ? 'imageLight' : 'imageDark'}\n src={this.imageSrc}\n />\n </div>\n <div class='contentContainer'>\n <h2 class={isLightTheme ? 'headingLight' : 'headingDark'}>\n {this.resultHeading}\n {this.interactiveResult && (\n <div class='interactiveIconSmall'>\n {isLightTheme ? (\n <searchcraft-clear-icon-set type='arrow-light' />\n ) : (\n <searchcraft-clear-icon-set type='arrow-dark' />\n )}\n </div>\n )}\n </h2>\n <h3 class={isLightTheme ? 'subheadingLight' : 'subheadingDark'}>\n {this.resultSubheading}\n </h3>\n <p class={isLightTheme ? 'bodyContentLight' : 'bodyContentDark'}>\n {this.resultBodyContent}\n </p>\n <button onClick={this.handleButtonClick} type='button'>\n {this.buttonLabel}\n </button>\n </div>\n </div>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,50 @@
1
+ import { p as proxyCustomElement, H, h } from './p-c69651f6.js';
2
+ import { d as defineCustomElement$1 } from './p-04e7305e.js';
3
+
4
+ const searchcraftInputIconModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.inputIconLTR{height:20px;left:10px;position:absolute;top:11px;width:20px}.inputIconRTL{height:20px;position:absolute;right:10px;top:11px;width:20px}";
5
+ const SearchcraftInputIconStyle0 = searchcraftInputIconModuleCss;
6
+
7
+ const SearchcraftInputIcon = /*@__PURE__*/ proxyCustomElement(class SearchcraftInputIcon extends H {
8
+ constructor() {
9
+ super();
10
+ this.__registerHost();
11
+ this.__attachShadow();
12
+ this.error = undefined;
13
+ this.rightToLeftOrientation = false;
14
+ this.theme = 'light';
15
+ }
16
+ isLightTheme() {
17
+ return this.theme === 'light';
18
+ }
19
+ render() {
20
+ return this.error ? (h("div", { class: this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR' }, this.isLightTheme ? (h("searchcraft-search-icon-set", { type: 'error-light' })) : (h("searchcraft-search-icon-set", { type: 'error-dark' })))) : (h("div", { class: this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR' }, this.isLightTheme ? (h("searchcraft-search-icon-set", { type: 'search-light' })) : (h("searchcraft-search-icon-set", { type: 'search-dark' }))));
21
+ }
22
+ static get style() { return SearchcraftInputIconStyle0; }
23
+ }, [1, "searchcraft-input-icon", {
24
+ "error": [4],
25
+ "rightToLeftOrientation": [4, "right-to-left-orientation"],
26
+ "theme": [32]
27
+ }]);
28
+ function defineCustomElement() {
29
+ if (typeof customElements === "undefined") {
30
+ return;
31
+ }
32
+ const components = ["searchcraft-input-icon", "searchcraft-search-icon-set"];
33
+ components.forEach(tagName => { switch (tagName) {
34
+ case "searchcraft-input-icon":
35
+ if (!customElements.get(tagName)) {
36
+ customElements.define(tagName, SearchcraftInputIcon);
37
+ }
38
+ break;
39
+ case "searchcraft-search-icon-set":
40
+ if (!customElements.get(tagName)) {
41
+ defineCustomElement$1();
42
+ }
43
+ break;
44
+ } });
45
+ }
46
+ defineCustomElement();
47
+
48
+ export { SearchcraftInputIcon as S, defineCustomElement as d };
49
+
50
+ //# sourceMappingURL=p-8646a603.js.map
@@ -0,0 +1 @@
1
+ {"file":"p-8646a603.js","mappings":";;;AAAA,MAAM,6BAA6B,GAAG,uMAAuM,CAAC;AAC9O,mCAAe,6BAA6B;;MCM/B,oBAAoB;;;;;;sCAEE,KAAK;qBACrB,OAAO;;IAEhB,YAAY;QAClB,OAAO,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC;KAC/B;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,IACf,WACE,KAAK,EAAE,IAAI,CAAC,sBAAsB,GAAG,cAAc,GAAG,cAAc,IAEnE,IAAI,CAAC,YAAY,IAChB,mCAA6B,IAAI,EAAC,aAAa,GAAG,KAElD,mCAA6B,IAAI,EAAC,YAAY,GAAG,CAClD,CACG,KAEN,WACE,KAAK,EAAE,IAAI,CAAC,sBAAsB,GAAG,cAAc,GAAG,cAAc,IAEnE,IAAI,CAAC,YAAY,IAChB,mCAA6B,IAAI,EAAC,cAAc,GAAG,KAEnD,mCAA6B,IAAI,EAAC,aAAa,GAAG,CACnD,CACG,CACP,CAAC;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/searchcraft-input-icon/searchcraft-input-icon.module.scss?tag=searchcraft-input-icon&encapsulation=shadow","src/components/searchcraft-input-icon/searchcraft-input-icon.tsx"],"sourcesContent":[":root {\n --font-stack: Helvetica, Arial, sans-serif;\n}\n\n.inputIconLTR {\n height: 20px;\n left: 10px;\n position: absolute;\n top: 11px;\n width: 20px;\n}\n\n.inputIconRTL {\n height: 20px;\n position: absolute;\n right: 10px;\n top: 11px;\n width: 20px;\n}","import { Component, Prop, h, State } from '@stencil/core';\n\n@Component({\n tag: 'searchcraft-input-icon',\n styleUrl: 'searchcraft-input-icon.module.scss',\n shadow: true,\n})\nexport class SearchcraftInputIcon {\n @Prop() error?: boolean;\n @Prop() rightToLeftOrientation = false;\n @State() theme = 'light';\n\n private isLightTheme() {\n return this.theme === 'light';\n }\n\n render() {\n return this.error ? (\n <div\n class={this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR'}\n >\n {this.isLightTheme ? (\n <searchcraft-search-icon-set type='error-light' />\n ) : (\n <searchcraft-search-icon-set type='error-dark' />\n )}\n </div>\n ) : (\n <div\n class={this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR'}\n >\n {this.isLightTheme ? (\n <searchcraft-search-icon-set type='search-light' />\n ) : (\n <searchcraft-search-icon-set type='search-dark' />\n )}\n </div>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,50 @@
1
+ import { p as proxyCustomElement, H, h } from './p-c69651f6.js';
2
+ import { c as classNames } from './p-5cdc6210.js';
3
+
4
+ const searchcraftInputLabelModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.labelLight{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#292929}.labelDark{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#FFF}";
5
+ const SearchcraftInputLabelStyle0 = searchcraftInputLabelModuleCss;
6
+
7
+ const SearchcraftInputLabel = /*@__PURE__*/ proxyCustomElement(class SearchcraftInputLabel extends H {
8
+ constructor() {
9
+ super();
10
+ this.__registerHost();
11
+ this.__attachShadow();
12
+ this.inputLabelClassName = '';
13
+ this.label = undefined;
14
+ this.theme = 'light';
15
+ }
16
+ isLightTheme() {
17
+ return this.theme === 'light';
18
+ }
19
+ render() {
20
+ // Render nothing if no label prop is provided
21
+ if (!this.label) {
22
+ return null;
23
+ }
24
+ const labelStyle = this.isLightTheme() ? 'labelLight' : 'labelDark';
25
+ return (h("label", { class: classNames(labelStyle, this.inputLabelClassName), htmlFor: 'searchcraft-input-id' }, this.label));
26
+ }
27
+ static get style() { return SearchcraftInputLabelStyle0; }
28
+ }, [1, "searchcraft-input-label", {
29
+ "inputLabelClassName": [1, "input-label-class-name"],
30
+ "label": [1],
31
+ "theme": [32]
32
+ }]);
33
+ function defineCustomElement() {
34
+ if (typeof customElements === "undefined") {
35
+ return;
36
+ }
37
+ const components = ["searchcraft-input-label"];
38
+ components.forEach(tagName => { switch (tagName) {
39
+ case "searchcraft-input-label":
40
+ if (!customElements.get(tagName)) {
41
+ customElements.define(tagName, SearchcraftInputLabel);
42
+ }
43
+ break;
44
+ } });
45
+ }
46
+ defineCustomElement();
47
+
48
+ export { SearchcraftInputLabel as S, defineCustomElement as d };
49
+
50
+ //# sourceMappingURL=p-9283a3c2.js.map
@@ -0,0 +1 @@
1
+ {"file":"p-9283a3c2.js","mappings":";;;AAAA,MAAM,8BAA8B,GAAG,4RAA4R,CAAC;AACpU,oCAAe,8BAA8B;;MCOhC,qBAAqB;;;;;mCACD,EAAE;;qBAEhB,OAAO;;IAEhB,YAAY;QAClB,OAAO,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC;KAC/B;IAED,MAAM;;QAEJ,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACf,OAAO,IAAI,CAAC;SACb;QAED,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,EAAE,GAAG,YAAY,GAAG,WAAW,CAAC;QAEpE,QACE,aACE,KAAK,EAAE,UAAU,CAAC,UAAU,EAAE,IAAI,CAAC,mBAAmB,CAAC,EACvD,OAAO,EAAC,sBAAsB,IAE7B,IAAI,CAAC,KAAK,CACL,EACR;KACH;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/searchcraft-input-label/searchcraft-input-label.module.scss?tag=searchcraft-input-label&encapsulation=shadow","src/components/searchcraft-input-label/searchcraft-input-label.tsx"],"sourcesContent":["@import '../../utils/theme';\n\n:root {\n --font-stack: Helvetica, Arial, sans-serif;\n}\n\n@mixin input-label-base {\n font-family: var(--font-stack);\n font-size: 12px;\n font-weight: 400;\n line-height: 16px;\n margin-top: 4px;\n}\n\n.labelLight {\n @include input-label-base;\n color: $light-input-label-color;\n}\n\n.labelDark {\n @include input-label-base;\n color: $dark-input-label-color;\n}","import { Component, Prop, h, State } from '@stencil/core';\nimport classNames from 'classnames';\n\n@Component({\n tag: 'searchcraft-input-label',\n styleUrl: 'searchcraft-input-label.module.scss',\n shadow: true,\n})\nexport class SearchcraftInputLabel {\n @Prop() inputLabelClassName? = '';\n @Prop() label?: string; // Make label optional\n @State() theme = 'light';\n\n private isLightTheme() {\n return this.theme === 'light';\n }\n\n render() {\n // Render nothing if no label prop is provided\n if (!this.label) {\n return null;\n }\n\n const labelStyle = this.isLightTheme() ? 'labelLight' : 'labelDark';\n\n return (\n <label\n class={classNames(labelStyle, this.inputLabelClassName)}\n htmlFor='searchcraft-input-id'\n >\n {this.label}\n </label>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,135 @@
1
+ import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment } from './p-c69651f6.js';
2
+ import { c as classNames } from './p-5cdc6210.js';
3
+ import { p as parseCustomStyles } from './p-1ef23e15.js';
4
+ import { d as defineCustomElement$7 } from './p-155f7a59.js';
5
+ import { d as defineCustomElement$6 } from './p-2cc8c074.js';
6
+ import { d as defineCustomElement$5 } from './p-199065b5.js';
7
+ import { d as defineCustomElement$4 } from './p-8646a603.js';
8
+ import { d as defineCustomElement$3 } from './p-04e7305e.js';
9
+ import { d as defineCustomElement$2 } from './p-16a533e3.js';
10
+ import { d as defineCustomElement$1 } from './p-e8e40447.js';
11
+
12
+ const searchcraftInputModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.inputContainerLTR{position:relative;width:100%}.inputContainerRTL{position:relative;width:100%;margin-left:8px}.inputLightLTR{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#EDEDED;color:#292929;margin-right:8px;padding-left:36px;padding-right:16px}.inputLightLTR::placeholder{font-family:var(--font-stack);font-size:16px}.inputLightLTR::placeholder{color:#737373}.inputLightLTR:focus{outline:2px solid #000}.inputDarkLTR{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#1A1A1A;color:#FFF;margin-right:8px;padding-left:36px;padding-right:16px}.inputDarkLTR::placeholder{font-family:var(--font-stack);font-size:16px}.inputDarkLTR::placeholder{color:#BFBFBF}.inputDarkLTR:focus{outline:2px solid #FFF}.inputErrorLightLTR{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#EDEDED;color:#292929;outline:2px solid #c00;margin-right:8px;padding-left:36px;padding-right:16px}.inputErrorLightLTR::placeholder{font-family:var(--font-stack);font-size:16px}.inputErrorLightLTR::placeholder{color:#737373}.inputErrorLightLTR:focus{outline:2px solid #000}.inputErrorLightLTR:focus-visible{outline:2px solid #c00}.inputErrorDarkLTR{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#1A1A1A;color:#FFF;outline:2px solid #FFB3B3;margin-right:8px;padding-left:36px;padding-right:16px}.inputErrorDarkLTR::placeholder{font-family:var(--font-stack);font-size:16px}.inputErrorDarkLTR::placeholder{color:#BFBFBF}.inputErrorDarkLTR:focus{outline:2px solid #FFF}.inputErrorDarkLTR:focus-visible{outline:2px solid #FFB3B3}.inputLightRTL{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#EDEDED;color:#292929;margin-left:8px;padding-left:16px;padding-right:36px;text-align:right}.inputLightRTL::placeholder{font-family:var(--font-stack);font-size:16px}.inputLightRTL::placeholder{color:#737373}.inputLightRTL:focus{outline:2px solid #000}.inputDarkRTL{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#1A1A1A;color:#FFF;margin-left:8px;padding-left:16px;padding-right:36px;text-align:right}.inputDarkRTL::placeholder{font-family:var(--font-stack);font-size:16px}.inputDarkRTL::placeholder{color:#BFBFBF}.inputDarkRTL:focus{outline:2px solid #FFF}.inputErrorLightRTL{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#EDEDED;color:#292929;outline:2px solid #c00;margin-left:8px;padding-left:16px;padding-right:36px;text-align:right}.inputErrorLightRTL::placeholder{font-family:var(--font-stack);font-size:16px}.inputErrorLightRTL::placeholder{color:#737373}.inputErrorLightRTL:focus{outline:2px solid #000}.inputErrorLightRTL:focus-visible{outline:2px solid #c00}.inputErrorDarkRTL{border:none;border-radius:8px;font-family:var(--font-stack);outline:none;padding-bottom:15px;padding-top:15px;width:100%;background-color:#1A1A1A;color:#FFF;outline:2px solid #FFB3B3;margin-left:8px;padding-left:16px;padding-right:36px;text-align:right}.inputErrorDarkRTL::placeholder{font-family:var(--font-stack);font-size:16px}.inputErrorDarkRTL::placeholder{color:#BFBFBF}.inputErrorDarkRTL:focus{outline:2px solid #FFF}.inputErrorDarkRTL:focus-visible{outline:2px solid #FFB3B3}.inputWrapper{align-items:center;display:flex;position:relative;width:100%}";
13
+ const SearchcraftInputStyle0 = searchcraftInputModuleCss;
14
+
15
+ const SearchcraftInput = /*@__PURE__*/ proxyCustomElement(class SearchcraftInput extends H {
16
+ constructor() {
17
+ super();
18
+ this.__registerHost();
19
+ this.__attachShadow();
20
+ this.clearInput = createEvent(this, "clearInput", 7);
21
+ this.searchInputChange = createEvent(this, "searchInputChange", 7);
22
+ this.customStyles = {};
23
+ this.error = false;
24
+ this.formClassName = '';
25
+ this.inputCaptionClassName = '';
26
+ this.inputCaptionValue = '';
27
+ this.inputClassName = '';
28
+ this.placeholderValue = 'Enter Search';
29
+ this.rightToLeftOrientation = false;
30
+ this.query = '';
31
+ this.theme = 'light';
32
+ }
33
+ get isLightTheme() {
34
+ return this.theme === 'light';
35
+ }
36
+ handleInputChange(event) {
37
+ const input = event.target;
38
+ this.searchInputChange.emit(input.value);
39
+ }
40
+ handleClearInput() {
41
+ if (this.clearInput) {
42
+ this.clearInput.emit();
43
+ }
44
+ }
45
+ render() {
46
+ const containerClassName = this.rightToLeftOrientation
47
+ ? 'inputContainerRTL'
48
+ : 'inputContainerLTR';
49
+ const inputClassName = classNames(this.error
50
+ ? this.isLightTheme
51
+ ? 'inputErrorLightRTL'
52
+ : 'inputErrorDarkRTL'
53
+ : this.isLightTheme
54
+ ? 'inputLightLTR'
55
+ : 'inputDarkLTR', 'searchcraft-input');
56
+ const validatedCustomStyles = parseCustomStyles(this.customStyles);
57
+ const placeholderStyle = {
58
+ fontSize: validatedCustomStyles.placeholderFontSize || '16px',
59
+ };
60
+ return (h("div", { key: '3a3fa1335552c53967d35219819024377e726d80', class: classNames(containerClassName, this.formClassName, 'searchcraft-input-form') }, this.rightToLeftOrientation ? (h(Fragment, null, h("input", { class: classNames(inputClassName, 'searchcraft-input'), id: 'searchcraft-input-id', onChange: this.handleInputChange.bind(this), placeholder: this.placeholderValue, type: 'text', value: this.query, style: validatedCustomStyles }), h("style", null, `
61
+ #searchcraft-input-id::placeholder {
62
+ font-size: ${placeholderStyle.fontSize};
63
+ }
64
+ `), this.inputCaptionValue && (h("searchcraft-input-caption", { inputCaptionClassName: this.inputCaptionClassName, inputCaptionValue: this.inputCaptionValue, rightToLeftOrientation: this.rightToLeftOrientation })), this.query.length > 0 && (h("searchcraft-clear-input-button", { onClearInput: this.handleClearInput, rightToLeftOrientation: this.rightToLeftOrientation })), h("searchcraft-input-icon", { error: this.error, rightToLeftOrientation: this.rightToLeftOrientation }))) : (h("div", { class: 'inputWrapper' }, h("searchcraft-input-icon", { error: this.error, rightToLeftOrientation: this.rightToLeftOrientation }), h("input", { class: classNames(inputClassName, 'searchcraft-input'), id: 'searchcraft-input-id', onChange: this.handleInputChange.bind(this), placeholder: this.placeholderValue, type: 'text', value: this.query, style: validatedCustomStyles }), h("style", null, `
65
+ #searchcraft-input-id::placeholder {
66
+ font-size: ${placeholderStyle.fontSize};
67
+ }
68
+ `), this.inputCaptionValue && (h("searchcraft-input-caption", { inputCaptionClassName: this.inputCaptionClassName, inputCaptionValue: this.inputCaptionValue, rightToLeftOrientation: this.rightToLeftOrientation })), this.query.length > 0 && (h("searchcraft-clear-input-button", { onClearInput: this.handleClearInput, rightToLeftOrientation: this.rightToLeftOrientation }))))));
69
+ }
70
+ static get style() { return SearchcraftInputStyle0; }
71
+ }, [1, "searchcraft-input", {
72
+ "customStyles": [1, "custom-styles"],
73
+ "error": [4],
74
+ "formClassName": [1, "form-class-name"],
75
+ "inputCaptionClassName": [1, "input-caption-class-name"],
76
+ "inputCaptionValue": [1, "input-caption-value"],
77
+ "inputClassName": [1, "input-class-name"],
78
+ "placeholderValue": [1, "placeholder-value"],
79
+ "rightToLeftOrientation": [4, "right-to-left-orientation"],
80
+ "query": [1],
81
+ "theme": [32]
82
+ }]);
83
+ function defineCustomElement() {
84
+ if (typeof customElements === "undefined") {
85
+ return;
86
+ }
87
+ const components = ["searchcraft-input", "searchcraft-clear-icon-set", "searchcraft-clear-input-button", "searchcraft-input-caption", "searchcraft-input-icon", "searchcraft-search-icon-set", "searchcraft-spinner-dark", "searchcraft-spinner-light"];
88
+ components.forEach(tagName => { switch (tagName) {
89
+ case "searchcraft-input":
90
+ if (!customElements.get(tagName)) {
91
+ customElements.define(tagName, SearchcraftInput);
92
+ }
93
+ break;
94
+ case "searchcraft-clear-icon-set":
95
+ if (!customElements.get(tagName)) {
96
+ defineCustomElement$7();
97
+ }
98
+ break;
99
+ case "searchcraft-clear-input-button":
100
+ if (!customElements.get(tagName)) {
101
+ defineCustomElement$6();
102
+ }
103
+ break;
104
+ case "searchcraft-input-caption":
105
+ if (!customElements.get(tagName)) {
106
+ defineCustomElement$5();
107
+ }
108
+ break;
109
+ case "searchcraft-input-icon":
110
+ if (!customElements.get(tagName)) {
111
+ defineCustomElement$4();
112
+ }
113
+ break;
114
+ case "searchcraft-search-icon-set":
115
+ if (!customElements.get(tagName)) {
116
+ defineCustomElement$3();
117
+ }
118
+ break;
119
+ case "searchcraft-spinner-dark":
120
+ if (!customElements.get(tagName)) {
121
+ defineCustomElement$2();
122
+ }
123
+ break;
124
+ case "searchcraft-spinner-light":
125
+ if (!customElements.get(tagName)) {
126
+ defineCustomElement$1();
127
+ }
128
+ break;
129
+ } });
130
+ }
131
+ defineCustomElement();
132
+
133
+ export { SearchcraftInput as S, defineCustomElement as d };
134
+
135
+ //# sourceMappingURL=p-a18c4969.js.map
@@ -0,0 +1 @@
1
+ {"file":"p-a18c4969.js","mappings":";;;;;;;;;;;AAAA,MAAM,yBAAyB,GAAG,2sHAA2sH,CAAC;AAC9uH,+BAAe,yBAAyB;;MCsB3B,gBAAgB;;;;;;;4BAC6B,EAAE;qBAC1C,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,MAAM,qBAAqB,GAAG,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAEnE,MAAM,gBAAgB,GAAG;YACvB,QAAQ,EAAE,qBAAqB,CAAC,mBAAmB,IAAI,MAAM;SAC9D,CAAC;QACF,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,CAAC,cAAc,EAAE,mBAAmB,CAAC,EACtD,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,EACjB,KAAK,EAAE,qBAAqB,GAC5B,EACF,iBACG;;+BAEgB,gBAAgB,CAAC,QAAQ;;eAEzC,CACK,EACP,IAAI,CAAC,iBAAiB,KACrB,iCACE,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,sCACE,YAAY,EAAE,IAAI,CAAC,gBAAgB,EACnC,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,GACnD,CACH,EACD,8BACE,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,GACnD,CACO,KAEX,WAAK,KAAK,EAAC,cAAc,IACvB,8BACE,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,GACnD,EACF,aACE,KAAK,EAAE,UAAU,CAAC,cAAc,EAAE,mBAAmB,CAAC,EACtD,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,EACjB,KAAK,EAAE,qBAAqB,GAC5B,EACF,iBACG;;+BAEgB,gBAAgB,CAAC,QAAQ;;eAEzC,CACK,EACP,IAAI,CAAC,iBAAiB,KACrB,iCACE,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,sCACE,YAAY,EAAE,IAAI,CAAC,gBAAgB,EACnC,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,GACnD,CACH,CACG,CACP,CACG,EACN;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/searchcraft-input/searchcraft-input.module.scss?tag=searchcraft-input&encapsulation=shadow","src/components/searchcraft-input/searchcraft-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 width: 100%;\n}\n\n@mixin input-base {\n border: none;\n border-radius: 8px;\n font-family: var(--font-stack);\n outline: none;\n padding-bottom: 15px;\n padding-top: 15px;\n width: 100%;\n\n &::placeholder {\n font-family: var(--font-stack);\n font-size: 16px;\n }\n}\n\n@mixin input-base-light {\n @include input-base;\n background-color: $light-input-background-color;\n color: $light-input-label-color;\n\n &::placeholder {\n color: $light-input-placeholder-color;\n }\n\n &:focus {\n outline: 2px solid $light-input-outline-focus;\n }\n}\n\n@mixin input-base-dark {\n @include input-base;\n background-color: $dark-input-background-color;\n color: $dark-input-label-color;\n\n &::placeholder {\n color: $dark-input-placeholder-color;\n }\n\n &:focus {\n outline: 2px solid $dark-input-outline-focus;\n }\n}\n\n@mixin input-error-base-light {\n @include input-base-light;\n outline: 2px solid $light-input-error-outline;\n\n &:focus-visible {\n outline: 2px solid $light-input-error-outline,\n }\n}\n\n@mixin input-error-base-dark {\n @include input-base-dark;\n outline: 2px solid $dark-input-error-outline;\n\n &:focus-visible {\n outline: 2px solid $dark-input-error-outline;\n }\n}\n\n.inputContainerLTR {\n @include input-container-base;\n}\n\n.inputContainerRTL {\n @include input-container-base;\n margin-left: 8px;\n}\n\n@mixin align-LTR {\n margin-right: 8px;\n padding-left: 36px;\n padding-right: 16px;\n}\n\n.inputLightLTR {\n @include input-base-light;\n @include align-LTR;\n}\n\n.inputDarkLTR {\n @include input-base-dark;\n @include align-LTR;\n}\n\n.inputErrorLightLTR {\n @include input-error-base-light;\n @include align-LTR;\n}\n\n.inputErrorDarkLTR {\n @include input-error-base-dark;\n @include align-LTR;\n}\n\n@mixin align-RTL {\n margin-left: 8px;\n padding-left: 16px;\n padding-right: 36px;\n text-align: right;\n}\n\n.inputLightRTL {\n @include input-base-light;\n @include align-RTL;\n}\n\n.inputDarkRTL {\n @include input-base-dark;\n @include align-RTL;\n}\n\n.inputErrorLightRTL {\n @include input-error-base-light;\n @include align-RTL;\n}\n\n.inputErrorDarkRTL {\n @include input-error-base-dark;\n @include align-RTL;\n}\n\n.inputWrapper {\n align-items: center;\n display: flex;\n position: relative;\n width: 100%;\n}\n","import {\n Component,\n h,\n Prop,\n State,\n Event,\n Fragment,\n type EventEmitter,\n} from '@stencil/core';\nimport classNames from 'classnames';\n\nimport { parseCustomStyles } from '@utils/utils';\n\nexport interface ScInputCustomEvent<T> extends CustomEvent<T> {\n detail: T;\n target: HTMLSearchcraftInputElement;\n}\n\n@Component({\n tag: 'searchcraft-input',\n styleUrl: 'searchcraft-input.module.scss',\n shadow: true,\n})\nexport class SearchcraftInput {\n @Prop() customStyles: string | Record<string, string> = {};\n @Prop() error = false;\n @Prop() formClassName = '';\n @Prop() inputCaptionClassName = '';\n @Prop() inputCaptionValue = '';\n @Prop() inputClassName = '';\n @Prop() placeholderValue = 'Enter Search';\n @Prop() rightToLeftOrientation = false;\n @Prop() query = '';\n\n @Event() clearInput: EventEmitter<void>;\n @Event() searchInputChange: EventEmitter<string>;\n\n @State() theme = 'light';\n\n private get isLightTheme() {\n return this.theme === 'light';\n }\n\n handleInputChange(event: Event) {\n const input = event.target as HTMLInputElement;\n this.searchInputChange.emit(input.value);\n }\n\n handleClearInput() {\n if (this.clearInput) {\n this.clearInput.emit();\n }\n }\n\n render() {\n const containerClassName = this.rightToLeftOrientation\n ? 'inputContainerRTL'\n : 'inputContainerLTR';\n\n const inputClassName = classNames(\n this.error\n ? this.isLightTheme\n ? 'inputErrorLightRTL'\n : 'inputErrorDarkRTL'\n : this.isLightTheme\n ? 'inputLightLTR'\n : 'inputDarkLTR',\n 'searchcraft-input',\n );\n\n const validatedCustomStyles = parseCustomStyles(this.customStyles);\n\n const placeholderStyle = {\n fontSize: validatedCustomStyles.placeholderFontSize || '16px',\n };\n return (\n <div\n class={classNames(\n containerClassName,\n this.formClassName,\n 'searchcraft-input-form',\n )}\n >\n {this.rightToLeftOrientation ? (\n <Fragment>\n <input\n class={classNames(inputClassName, 'searchcraft-input')}\n id='searchcraft-input-id'\n onChange={this.handleInputChange.bind(this)}\n placeholder={this.placeholderValue}\n type='text'\n value={this.query}\n style={validatedCustomStyles}\n />\n <style>\n {`\n #searchcraft-input-id::placeholder {\n font-size: ${placeholderStyle.fontSize};\n }\n `}\n </style>\n {this.inputCaptionValue && (\n <searchcraft-input-caption\n inputCaptionClassName={this.inputCaptionClassName}\n inputCaptionValue={this.inputCaptionValue}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n )}\n {this.query.length > 0 && (\n <searchcraft-clear-input-button\n onClearInput={this.handleClearInput}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n )}\n <searchcraft-input-icon\n error={this.error}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n </Fragment>\n ) : (\n <div class='inputWrapper'>\n <searchcraft-input-icon\n error={this.error}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n <input\n class={classNames(inputClassName, 'searchcraft-input')}\n id='searchcraft-input-id'\n onChange={this.handleInputChange.bind(this)}\n placeholder={this.placeholderValue}\n type='text'\n value={this.query}\n style={validatedCustomStyles}\n />\n <style>\n {`\n #searchcraft-input-id::placeholder {\n font-size: ${placeholderStyle.fontSize};\n }\n `}\n </style>\n {this.inputCaptionValue && (\n <searchcraft-input-caption\n inputCaptionClassName={this.inputCaptionClassName}\n inputCaptionValue={this.inputCaptionValue}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n )}\n {this.query.length > 0 && (\n <searchcraft-clear-input-button\n onClearInput={this.handleClearInput}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n )}\n </div>\n )}\n </div>\n );\n }\n}\n"],"version":3}
@@ -1,5 +1,5 @@
1
1
  const NAMESPACE = 'searchcraft-javascript-sdk';
2
- const BUILD = /* searchcraft-javascript-sdk */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: false, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
2
+ const BUILD = /* searchcraft-javascript-sdk */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: false, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: false };
3
3
 
4
4
  /*
5
5
  Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
@@ -98,6 +98,8 @@ var setAssetPath = (path) => plt.$resourcesUrl$ = path;
98
98
 
99
99
  // src/utils/constants.ts
100
100
  var EMPTY_OBJ = {};
101
+ var SVG_NS = "http://www.w3.org/2000/svg";
102
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
101
103
 
102
104
  // src/utils/helpers.ts
103
105
  var isDef = (v) => v != null;
@@ -401,6 +403,27 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
401
403
  const newClasses = parseClassList(newValue);
402
404
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
403
405
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
406
+ } else if (memberName === "style") {
407
+ {
408
+ for (const prop in oldValue) {
409
+ if (!newValue || newValue[prop] == null) {
410
+ if (prop.includes("-")) {
411
+ elm.style.removeProperty(prop);
412
+ } else {
413
+ elm.style[prop] = "";
414
+ }
415
+ }
416
+ }
417
+ }
418
+ for (const prop in newValue) {
419
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
420
+ if (prop.includes("-")) {
421
+ elm.style.setProperty(prop, newValue[prop]);
422
+ } else {
423
+ elm.style[prop] = newValue[prop];
424
+ }
425
+ }
426
+ }
404
427
  } else if (memberName === "key") ; else if ((!elm.__lookupSetter__(memberName)) && memberName[0] === "o" && memberName[1] === "n") {
405
428
  if (memberName[2] === "-") {
406
429
  memberName = memberName.slice(3);
@@ -499,9 +522,16 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
499
522
  if (newVNode2.$text$ !== null) {
500
523
  elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
501
524
  } else {
502
- elm = newVNode2.$elm$ = doc.createElement(
525
+ if (!isSvgMode) {
526
+ isSvgMode = newVNode2.$tag$ === "svg";
527
+ }
528
+ elm = newVNode2.$elm$ = doc.createElementNS(
529
+ isSvgMode ? SVG_NS : HTML_NS,
503
530
  !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
504
- );
531
+ ) ;
532
+ if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
533
+ isSvgMode = false;
534
+ }
505
535
  {
506
536
  updateElement(null, newVNode2, isSvgMode);
507
537
  }
@@ -518,6 +548,13 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
518
548
  }
519
549
  }
520
550
  }
551
+ {
552
+ if (newVNode2.$tag$ === "svg") {
553
+ isSvgMode = false;
554
+ } else if (elm.tagName === "foreignObject") {
555
+ isSvgMode = true;
556
+ }
557
+ }
521
558
  }
522
559
  elm["s-hn"] = hostTagName;
523
560
  return elm;
@@ -646,8 +683,12 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
646
683
  const elm = newVNode2.$elm$ = oldVNode.$elm$;
647
684
  const oldChildren = oldVNode.$children$;
648
685
  const newChildren = newVNode2.$children$;
686
+ const tag = newVNode2.$tag$;
649
687
  const text = newVNode2.$text$;
650
688
  if (text === null) {
689
+ {
690
+ isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
691
+ }
651
692
  {
652
693
  {
653
694
  updateElement(oldVNode, newVNode2, isSvgMode);
@@ -666,6 +707,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
666
707
  ) {
667
708
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
668
709
  }
710
+ if (isSvgMode && tag === "svg") {
711
+ isSvgMode = false;
712
+ }
669
713
  } else if (oldVNode.$text$ !== text) {
670
714
  elm.data = text;
671
715
  }
@@ -1059,4 +1103,4 @@ var setPlatformOptions = (opts) => Object.assign(plt, opts);
1059
1103
 
1060
1104
  export { Fragment as F, H, setNonce as a, setPlatformOptions as b, createEvent as c, getAssetPath as g, h, proxyCustomElement as p, setAssetPath as s };
1061
1105
 
1062
- //# sourceMappingURL=p-a912a224.js.map
1106
+ //# sourceMappingURL=p-c69651f6.js.map