@searchcraft/javascript-sdk 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/README.md +198 -0
  2. package/dist/cjs/{index-6c5282a0.js → index-c8a8e492.js} +317 -10
  3. package/dist/cjs/index-c8a8e492.js.map +1 -0
  4. package/dist/cjs/index.cjs.js +4 -5
  5. package/dist/cjs/index.cjs.js.map +1 -1
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/package-ccc7e307.js +68 -0
  8. package/dist/cjs/package-ccc7e307.js.map +1 -0
  9. package/dist/cjs/searchcraft-auto-search-form.cjs.entry.js +160 -0
  10. package/dist/cjs/searchcraft-auto-search-form.cjs.entry.js.map +1 -0
  11. package/dist/cjs/searchcraft-base-search-form.cjs.entry.js +13 -8
  12. package/dist/cjs/searchcraft-base-search-form.cjs.entry.js.map +1 -1
  13. package/dist/cjs/searchcraft-base-search-result.cjs.entry.js +74 -0
  14. package/dist/cjs/searchcraft-base-search-result.cjs.entry.js.map +1 -0
  15. package/dist/cjs/searchcraft-base-search-results.cjs.entry.js +129 -0
  16. package/dist/cjs/searchcraft-base-search-results.cjs.entry.js.map +1 -0
  17. package/dist/cjs/searchcraft-button-icon.cjs.entry.js +1 -1
  18. package/dist/cjs/searchcraft-button.cjs.entry.js +4 -9
  19. package/dist/cjs/searchcraft-button.cjs.entry.js.map +1 -1
  20. package/dist/cjs/searchcraft-check-icon_2.cjs.entry.js +28 -0
  21. package/dist/cjs/searchcraft-check-icon_2.cjs.entry.js.map +1 -0
  22. package/dist/cjs/searchcraft-clear-icon-set.cjs.entry.js +30 -0
  23. package/dist/cjs/searchcraft-clear-icon-set.cjs.entry.js.map +1 -0
  24. package/dist/cjs/searchcraft-error-message_3.cjs.entry.js +95 -0
  25. package/dist/cjs/searchcraft-error-message_3.cjs.entry.js.map +1 -0
  26. package/dist/cjs/searchcraft-facet-list_3.cjs.entry.js +183 -0
  27. package/dist/cjs/searchcraft-facet-list_3.cjs.entry.js.map +1 -0
  28. package/dist/cjs/searchcraft-filter-panel.cjs.entry.js +134 -0
  29. package/dist/cjs/searchcraft-filter-panel.cjs.entry.js.map +1 -0
  30. package/dist/cjs/searchcraft-javascript-sdk.cjs.js +2 -2
  31. package/dist/cjs/searchcraft-results-info.cjs.entry.js +46 -0
  32. package/dist/cjs/searchcraft-results-info.cjs.entry.js.map +1 -0
  33. package/dist/cjs/searchcraft-search-icon-set.cjs.entry.js +33 -0
  34. package/dist/cjs/searchcraft-search-icon-set.cjs.entry.js.map +1 -0
  35. package/dist/cjs/searchcraft-spinner-dark.cjs.entry.js +22 -0
  36. package/dist/cjs/searchcraft-spinner-dark.cjs.entry.js.map +1 -0
  37. package/dist/cjs/searchcraft-spinner-light.cjs.entry.js +22 -0
  38. package/dist/cjs/searchcraft-spinner-light.cjs.entry.js.map +1 -0
  39. package/dist/cjs/store-72205332.js +945 -0
  40. package/dist/cjs/store-72205332.js.map +1 -0
  41. package/dist/cjs/utils-4ee2b88d.js +169 -0
  42. package/dist/cjs/utils-4ee2b88d.js.map +1 -0
  43. package/dist/collection/assets/searchcraft-button-icons.js.map +1 -1
  44. package/dist/collection/assets/searchcraft-check-icon.js.map +1 -1
  45. package/dist/collection/assets/searchcraft-clear-icon-set.js.map +1 -1
  46. package/dist/collection/assets/searchcraft-dash-icon.js.map +1 -1
  47. package/dist/collection/assets/searchcraft-search-icon-set.js.map +1 -1
  48. package/dist/collection/collection-manifest.json +2 -4
  49. package/dist/collection/components/searchcraft-auto-search-form/searchcraft-auto-search-form.js +68 -94
  50. package/dist/collection/components/searchcraft-auto-search-form/searchcraft-auto-search-form.js.map +1 -1
  51. package/dist/collection/components/searchcraft-auto-search-form/searchcraft-auto-search-form.module.css +98 -9
  52. package/dist/collection/components/searchcraft-base-search-form/searchcraft-base-search-form.js +42 -20
  53. package/dist/collection/components/searchcraft-base-search-form/searchcraft-base-search-form.js.map +1 -1
  54. package/dist/collection/components/searchcraft-base-search-form/searchcraft-base-search-form.module.css +94 -8
  55. package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.js +158 -136
  56. package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.js.map +1 -1
  57. package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.module.css +142 -189
  58. package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js +172 -83
  59. package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js.map +1 -1
  60. package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.module.css +105 -23
  61. package/dist/collection/components/searchcraft-button/searchcraft-button.js +3 -10
  62. package/dist/collection/components/searchcraft-button/searchcraft-button.js.map +1 -1
  63. package/dist/collection/components/searchcraft-button/searchcraft-button.module.css +107 -65
  64. package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.js +2 -24
  65. package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.js.map +1 -1
  66. package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.module.css +101 -15
  67. package/dist/collection/components/searchcraft-facet-list/searchcraft-facet-list.js +140 -0
  68. package/dist/collection/components/searchcraft-facet-list/searchcraft-facet-list.js.map +1 -0
  69. package/dist/collection/components/searchcraft-facet-list/searchcraft-facet-list.module.css +216 -0
  70. package/dist/collection/components/searchcraft-filter-panel/searchcraft-filter-panel.js +166 -0
  71. package/dist/collection/components/searchcraft-filter-panel/searchcraft-filter-panel.js.map +1 -0
  72. package/dist/collection/components/searchcraft-filter-panel/searchcraft-filter-panel.module.css +118 -0
  73. package/dist/collection/components/searchcraft-input/searchcraft-input.js +43 -133
  74. package/dist/collection/components/searchcraft-input/searchcraft-input.js.map +1 -1
  75. package/dist/collection/components/searchcraft-input/searchcraft-input.module.css +162 -221
  76. package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.js +1 -13
  77. package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.js.map +1 -1
  78. package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.module.css +102 -14
  79. package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.js +4 -3
  80. package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.js.map +1 -1
  81. package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.module.css +111 -7
  82. package/dist/collection/components/searchcraft-slider/searchcraft-slider.js +101 -58
  83. package/dist/collection/components/searchcraft-slider/searchcraft-slider.js.map +1 -1
  84. package/dist/collection/components/searchcraft-slider/searchcraft-slider.module.css +136 -23
  85. package/dist/collection/components/searchcraft-spinner-dark/searchcraft-spinner-dark.js +1 -1
  86. package/dist/collection/components/searchcraft-spinner-dark/searchcraft-spinner-dark.js.map +1 -1
  87. package/dist/collection/components/searchcraft-spinner-dark/searchcraft-spinner-dark.module.css +103 -4
  88. package/dist/collection/components/searchcraft-spinner-light/searchcraft-spinner-light.js +1 -1
  89. package/dist/collection/components/searchcraft-spinner-light/searchcraft-spinner-light.js.map +1 -1
  90. package/dist/collection/components/searchcraft-spinner-light/searchcraft-spinner-light.module.css +102 -3
  91. package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.js +51 -64
  92. package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.js.map +1 -1
  93. package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.module.css +135 -9
  94. package/dist/collection/index.js +2 -1
  95. package/dist/collection/index.js.map +1 -1
  96. package/dist/collection/provider/store.js +46 -31
  97. package/dist/collection/provider/store.js.map +1 -1
  98. package/dist/collection/types/index.js +3 -0
  99. package/dist/collection/types/index.js.map +1 -0
  100. package/dist/collection/types/searchcraft-base-search-results.types.js +2 -0
  101. package/dist/collection/types/searchcraft-base-search-results.types.js.map +1 -0
  102. package/dist/collection/types/searchcraft-filter-panel.types.js +2 -0
  103. package/dist/collection/types/searchcraft-filter-panel.types.js.map +1 -0
  104. package/dist/collection/utils/utils.js +117 -35
  105. package/dist/collection/utils/utils.js.map +1 -1
  106. package/dist/components/index.js +7 -11
  107. package/dist/components/index.js.map +1 -1
  108. package/dist/components/{p-d3187f5a.js → p-04d13314.js} +2 -2
  109. package/dist/components/{p-d3187f5a.js.map → p-04d13314.js.map} +1 -1
  110. package/dist/components/p-0deddac7.js +161 -0
  111. package/dist/components/p-0deddac7.js.map +1 -0
  112. package/dist/components/p-37f54c0b.js +54 -0
  113. package/dist/components/p-37f54c0b.js.map +1 -0
  114. package/dist/components/{p-7498e493.js → p-5639be85.js} +311 -10
  115. package/dist/components/p-5639be85.js.map +1 -0
  116. package/dist/components/p-68897c11.js +124 -0
  117. package/dist/components/p-68897c11.js.map +1 -0
  118. package/dist/components/p-69eed21e.js +66 -0
  119. package/dist/components/p-69eed21e.js.map +1 -0
  120. package/dist/components/p-8062f0ea.js +82 -0
  121. package/dist/components/p-8062f0ea.js.map +1 -0
  122. package/dist/components/p-9f2b8375.js +33 -0
  123. package/dist/components/p-9f2b8375.js.map +1 -0
  124. package/dist/components/p-ace4e6a0.js +35 -0
  125. package/dist/components/p-ace4e6a0.js.map +1 -0
  126. package/dist/components/p-b1a59f07.js +101 -0
  127. package/dist/components/p-b1a59f07.js.map +1 -0
  128. package/dist/components/p-be63dcac.js +941 -0
  129. package/dist/components/p-be63dcac.js.map +1 -0
  130. package/dist/components/p-c8bc1e4f.js +40 -0
  131. package/dist/components/p-c8bc1e4f.js.map +1 -0
  132. package/dist/components/{p-e5471fcf.js → p-de50441f.js} +2 -2
  133. package/dist/components/{p-e5471fcf.js.map → p-de50441f.js.map} +1 -1
  134. package/dist/components/p-e3c8b1ef.js +91 -0
  135. package/dist/components/p-e3c8b1ef.js.map +1 -0
  136. package/dist/components/p-ebf021b5.js +49 -0
  137. package/dist/components/p-ebf021b5.js.map +1 -0
  138. package/dist/components/searchcraft-auto-search-form.js +70 -84
  139. package/dist/components/searchcraft-auto-search-form.js.map +1 -1
  140. package/dist/components/searchcraft-base-search-form.js +27 -58
  141. package/dist/components/searchcraft-base-search-form.js.map +1 -1
  142. package/dist/components/searchcraft-base-search-result.js +1 -1
  143. package/dist/components/searchcraft-base-search-results.js +81 -53
  144. package/dist/components/searchcraft-base-search-results.js.map +1 -1
  145. package/dist/components/searchcraft-button-icon.js +1 -1
  146. package/dist/components/searchcraft-button.js +1 -1
  147. package/dist/components/searchcraft-check-icon.js +1 -1
  148. package/dist/components/searchcraft-clear-icon-set.js +39 -1
  149. package/dist/components/searchcraft-clear-icon-set.js.map +1 -1
  150. package/dist/components/searchcraft-dash-icon.js +1 -1
  151. package/dist/components/searchcraft-error-message.js +1 -1
  152. package/dist/components/searchcraft-facet-list.d.ts +11 -0
  153. package/dist/components/searchcraft-facet-list.js +8 -0
  154. package/dist/components/searchcraft-facet-list.js.map +1 -0
  155. package/dist/components/searchcraft-filter-panel.d.ts +11 -0
  156. package/dist/components/searchcraft-filter-panel.js +184 -0
  157. package/dist/components/searchcraft-filter-panel.js.map +1 -0
  158. package/dist/components/searchcraft-input-label.js +1 -1
  159. package/dist/components/searchcraft-input.js +1 -1
  160. package/dist/components/searchcraft-results-info.js +8 -7
  161. package/dist/components/searchcraft-results-info.js.map +1 -1
  162. package/dist/components/searchcraft-search-icon-set.js +44 -1
  163. package/dist/components/searchcraft-search-icon-set.js.map +1 -1
  164. package/dist/components/searchcraft-slider.js +1 -95
  165. package/dist/components/searchcraft-slider.js.map +1 -1
  166. package/dist/components/searchcraft-spinner-dark.js +1 -1
  167. package/dist/components/searchcraft-spinner-light.js +29 -1
  168. package/dist/components/searchcraft-spinner-light.js.map +1 -1
  169. package/dist/components/searchcraft-toggle-button.js +1 -91
  170. package/dist/components/searchcraft-toggle-button.js.map +1 -1
  171. package/dist/esm/{index-0ac5bb53.js → index-88dc5f88.js} +317 -10
  172. package/dist/esm/index-88dc5f88.js.map +1 -0
  173. package/dist/esm/index.js +2 -1
  174. package/dist/esm/index.js.map +1 -1
  175. package/dist/esm/loader.js +3 -3
  176. package/dist/esm/package-ee16f835.js +66 -0
  177. package/dist/esm/package-ee16f835.js.map +1 -0
  178. package/dist/esm/searchcraft-auto-search-form.entry.js +156 -0
  179. package/dist/esm/searchcraft-auto-search-form.entry.js.map +1 -0
  180. package/dist/esm/searchcraft-base-search-form.entry.js +13 -8
  181. package/dist/esm/searchcraft-base-search-form.entry.js.map +1 -1
  182. package/dist/esm/searchcraft-base-search-result.entry.js +70 -0
  183. package/dist/esm/searchcraft-base-search-result.entry.js.map +1 -0
  184. package/dist/esm/searchcraft-base-search-results.entry.js +125 -0
  185. package/dist/esm/searchcraft-base-search-results.entry.js.map +1 -0
  186. package/dist/esm/searchcraft-button-icon.entry.js +1 -1
  187. package/dist/esm/searchcraft-button.entry.js +4 -9
  188. package/dist/esm/searchcraft-button.entry.js.map +1 -1
  189. package/dist/esm/searchcraft-check-icon_2.entry.js +23 -0
  190. package/dist/esm/searchcraft-check-icon_2.entry.js.map +1 -0
  191. package/dist/{components/p-70722ab2.js → esm/searchcraft-clear-icon-set.entry.js} +7 -24
  192. package/dist/esm/searchcraft-clear-icon-set.entry.js.map +1 -0
  193. package/dist/esm/searchcraft-error-message_3.entry.js +89 -0
  194. package/dist/esm/searchcraft-error-message_3.entry.js.map +1 -0
  195. package/dist/esm/searchcraft-facet-list_3.entry.js +177 -0
  196. package/dist/esm/searchcraft-facet-list_3.entry.js.map +1 -0
  197. package/dist/esm/searchcraft-filter-panel.entry.js +130 -0
  198. package/dist/esm/searchcraft-filter-panel.entry.js.map +1 -0
  199. package/dist/esm/searchcraft-javascript-sdk.js +3 -3
  200. package/dist/esm/searchcraft-results-info.entry.js +42 -0
  201. package/dist/esm/searchcraft-results-info.entry.js.map +1 -0
  202. package/dist/{components/p-a3bd1bc8.js → esm/searchcraft-search-icon-set.entry.js} +7 -26
  203. package/dist/esm/searchcraft-search-icon-set.entry.js.map +1 -0
  204. package/dist/esm/searchcraft-spinner-dark.entry.js +18 -0
  205. package/dist/esm/searchcraft-spinner-dark.entry.js.map +1 -0
  206. package/dist/esm/searchcraft-spinner-light.entry.js +18 -0
  207. package/dist/esm/searchcraft-spinner-light.entry.js.map +1 -0
  208. package/dist/esm/store-52436995.js +941 -0
  209. package/dist/esm/store-52436995.js.map +1 -0
  210. package/dist/esm/utils-89a02921.js +161 -0
  211. package/dist/esm/utils-89a02921.js.map +1 -0
  212. package/dist/searchcraft-javascript-sdk/index.esm.js +1 -1
  213. package/dist/searchcraft-javascript-sdk/p-08bd95f1.entry.js +2 -0
  214. package/dist/searchcraft-javascript-sdk/p-08bd95f1.entry.js.map +1 -0
  215. package/dist/searchcraft-javascript-sdk/p-0deddac7.js +2 -0
  216. package/dist/searchcraft-javascript-sdk/p-0deddac7.js.map +1 -0
  217. package/dist/searchcraft-javascript-sdk/p-15f9891d.entry.js +2 -0
  218. package/dist/searchcraft-javascript-sdk/p-15f9891d.entry.js.map +1 -0
  219. package/dist/searchcraft-javascript-sdk/p-2419a8c5.entry.js +2 -0
  220. package/dist/searchcraft-javascript-sdk/p-2419a8c5.entry.js.map +1 -0
  221. package/dist/searchcraft-javascript-sdk/p-343adbe3.entry.js +2 -0
  222. package/dist/searchcraft-javascript-sdk/p-343adbe3.entry.js.map +1 -0
  223. package/dist/searchcraft-javascript-sdk/p-3a2d9be9.entry.js +2 -0
  224. package/dist/searchcraft-javascript-sdk/p-3a2d9be9.entry.js.map +1 -0
  225. package/dist/searchcraft-javascript-sdk/p-4278ff89.entry.js +2 -0
  226. package/dist/searchcraft-javascript-sdk/p-4278ff89.entry.js.map +1 -0
  227. package/dist/searchcraft-javascript-sdk/p-4c32c87d.js +3 -0
  228. package/dist/searchcraft-javascript-sdk/p-4c32c87d.js.map +1 -0
  229. package/dist/searchcraft-javascript-sdk/p-56413bef.entry.js +2 -0
  230. package/dist/searchcraft-javascript-sdk/p-56413bef.entry.js.map +1 -0
  231. package/dist/searchcraft-javascript-sdk/p-69eed21e.js +2 -0
  232. package/dist/searchcraft-javascript-sdk/p-69eed21e.js.map +1 -0
  233. package/dist/searchcraft-javascript-sdk/{p-5ec960bd.entry.js → p-69f64bdd.entry.js} +2 -2
  234. package/dist/searchcraft-javascript-sdk/p-7c59b3cd.entry.js +2 -0
  235. package/dist/searchcraft-javascript-sdk/p-7c59b3cd.entry.js.map +1 -0
  236. package/dist/searchcraft-javascript-sdk/p-93e9de71.entry.js +2 -0
  237. package/dist/searchcraft-javascript-sdk/p-93e9de71.entry.js.map +1 -0
  238. package/dist/searchcraft-javascript-sdk/p-9647ae41.entry.js +2 -0
  239. package/dist/searchcraft-javascript-sdk/p-9647ae41.entry.js.map +1 -0
  240. package/dist/searchcraft-javascript-sdk/p-a613a6ba.entry.js +2 -0
  241. package/dist/searchcraft-javascript-sdk/p-a613a6ba.entry.js.map +1 -0
  242. package/dist/searchcraft-javascript-sdk/p-acc645c7.entry.js +2 -0
  243. package/dist/searchcraft-javascript-sdk/p-acc645c7.entry.js.map +1 -0
  244. package/dist/searchcraft-javascript-sdk/p-bb03e946.js +11 -0
  245. package/dist/searchcraft-javascript-sdk/p-bb03e946.js.map +1 -0
  246. package/dist/searchcraft-javascript-sdk/p-bf80bbee.entry.js +2 -0
  247. package/dist/searchcraft-javascript-sdk/p-bf80bbee.entry.js.map +1 -0
  248. package/dist/searchcraft-javascript-sdk/p-f4612b94.entry.js +2 -0
  249. package/dist/searchcraft-javascript-sdk/p-f4612b94.entry.js.map +1 -0
  250. package/dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js +1 -1
  251. package/dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js.map +1 -1
  252. package/dist/types/components/searchcraft-auto-search-form/searchcraft-auto-search-form.d.ts +7 -7
  253. package/dist/types/components/searchcraft-base-search-form/searchcraft-base-search-form.d.ts +5 -4
  254. package/dist/types/components/searchcraft-base-search-result/searchcraft-base-search-result.d.ts +18 -17
  255. package/dist/types/components/searchcraft-base-search-results/searchcraft-base-search-results.d.ts +17 -5
  256. package/dist/types/components/searchcraft-button/searchcraft-button.d.ts +0 -2
  257. package/dist/types/components/searchcraft-error-message/searchcraft-error-message.d.ts +0 -7
  258. package/dist/types/components/searchcraft-facet-list/searchcraft-facet-list.d.ts +21 -0
  259. package/dist/types/components/searchcraft-filter-panel/searchcraft-filter-panel.d.ts +25 -0
  260. package/dist/types/components/searchcraft-input/searchcraft-input.d.ts +5 -11
  261. package/dist/types/components/searchcraft-input-label/searchcraft-input-label.d.ts +0 -2
  262. package/dist/types/components/searchcraft-slider/searchcraft-slider.d.ts +14 -10
  263. package/dist/types/components/searchcraft-toggle-button/searchcraft-toggle-button.d.ts +4 -9
  264. package/dist/types/components.d.ts +157 -193
  265. package/dist/types/index.d.ts +2 -1
  266. package/dist/types/provider/store.d.ts +16 -9
  267. package/dist/types/types/index.d.ts +2 -0
  268. package/dist/types/types/searchcraft-base-search-results.types.d.ts +17 -0
  269. package/dist/types/types/searchcraft-filter-panel.types.d.ts +42 -0
  270. package/dist/types/utils/utils.d.ts +24 -15
  271. package/package.json +2 -2
  272. package/dist/cjs/index-6c5282a0.js.map +0 -1
  273. package/dist/cjs/searchcraft-auto-search-form_19.cjs.entry.js +0 -861
  274. package/dist/cjs/searchcraft-auto-search-form_19.cjs.entry.js.map +0 -1
  275. package/dist/cjs/store-f3bec622.js +0 -406
  276. package/dist/cjs/store-f3bec622.js.map +0 -1
  277. package/dist/collection/components/searchcraft-clear-input-button/searchcraft-clear-input-button.js +0 -95
  278. package/dist/collection/components/searchcraft-clear-input-button/searchcraft-clear-input-button.js.map +0 -1
  279. package/dist/collection/components/searchcraft-clear-input-button/searchcraft-clear-input-button.module.css +0 -33
  280. package/dist/collection/components/searchcraft-filters-list/searchcraft-filters-list.js +0 -172
  281. package/dist/collection/components/searchcraft-filters-list/searchcraft-filters-list.js.map +0 -1
  282. package/dist/collection/components/searchcraft-filters-list/searchcraft-filters-list.module.css +0 -110
  283. package/dist/collection/components/searchcraft-input-caption/searchcraft-input-caption.js +0 -122
  284. package/dist/collection/components/searchcraft-input-caption/searchcraft-input-caption.js.map +0 -1
  285. package/dist/collection/components/searchcraft-input-caption/searchcraft-input-caption.module.css +0 -79
  286. package/dist/collection/components/searchcraft-input-icon/searchcraft-input-icon.js +0 -109
  287. package/dist/collection/components/searchcraft-input-icon/searchcraft-input-icon.js.map +0 -1
  288. package/dist/collection/components/searchcraft-input-icon/searchcraft-input-icon.module.css +0 -17
  289. package/dist/components/p-07edaa9b.js +0 -67
  290. package/dist/components/p-07edaa9b.js.map +0 -1
  291. package/dist/components/p-27a6ca57.js +0 -149
  292. package/dist/components/p-27a6ca57.js.map +0 -1
  293. package/dist/components/p-4468fba3.js +0 -61
  294. package/dist/components/p-4468fba3.js.map +0 -1
  295. package/dist/components/p-498c7ef9.js +0 -40
  296. package/dist/components/p-498c7ef9.js.map +0 -1
  297. package/dist/components/p-6237f03e.js +0 -60
  298. package/dist/components/p-6237f03e.js.map +0 -1
  299. package/dist/components/p-70722ab2.js.map +0 -1
  300. package/dist/components/p-7498e493.js.map +0 -1
  301. package/dist/components/p-7d1bcd2d.js +0 -88
  302. package/dist/components/p-7d1bcd2d.js.map +0 -1
  303. package/dist/components/p-8c38185e.js +0 -53
  304. package/dist/components/p-8c38185e.js.map +0 -1
  305. package/dist/components/p-a3bd1bc8.js.map +0 -1
  306. package/dist/components/p-ae84b899.js +0 -48
  307. package/dist/components/p-ae84b899.js.map +0 -1
  308. package/dist/components/p-bc3f9025.js +0 -33
  309. package/dist/components/p-bc3f9025.js.map +0 -1
  310. package/dist/components/p-bfb22305.js +0 -33
  311. package/dist/components/p-bfb22305.js.map +0 -1
  312. package/dist/components/p-c31274dd.js +0 -89
  313. package/dist/components/p-c31274dd.js.map +0 -1
  314. package/dist/components/p-ff049f0a.js +0 -313
  315. package/dist/components/p-ff049f0a.js.map +0 -1
  316. package/dist/components/searchcraft-clear-input-button.d.ts +0 -11
  317. package/dist/components/searchcraft-clear-input-button.js +0 -8
  318. package/dist/components/searchcraft-clear-input-button.js.map +0 -1
  319. package/dist/components/searchcraft-filters-list.d.ts +0 -11
  320. package/dist/components/searchcraft-filters-list.js +0 -155
  321. package/dist/components/searchcraft-filters-list.js.map +0 -1
  322. package/dist/components/searchcraft-input-caption.d.ts +0 -11
  323. package/dist/components/searchcraft-input-caption.js +0 -8
  324. package/dist/components/searchcraft-input-caption.js.map +0 -1
  325. package/dist/components/searchcraft-input-icon.d.ts +0 -11
  326. package/dist/components/searchcraft-input-icon.js +0 -8
  327. package/dist/components/searchcraft-input-icon.js.map +0 -1
  328. package/dist/esm/index-0ac5bb53.js.map +0 -1
  329. package/dist/esm/searchcraft-auto-search-form_19.entry.js +0 -839
  330. package/dist/esm/searchcraft-auto-search-form_19.entry.js.map +0 -1
  331. package/dist/esm/store-6af9ea01.js +0 -396
  332. package/dist/esm/store-6af9ea01.js.map +0 -1
  333. package/dist/searchcraft-javascript-sdk/p-05416a3e.entry.js +0 -2
  334. package/dist/searchcraft-javascript-sdk/p-05416a3e.entry.js.map +0 -1
  335. package/dist/searchcraft-javascript-sdk/p-0880cfbb.js +0 -3
  336. package/dist/searchcraft-javascript-sdk/p-0880cfbb.js.map +0 -1
  337. package/dist/searchcraft-javascript-sdk/p-1ab836bf.js +0 -11
  338. package/dist/searchcraft-javascript-sdk/p-1ab836bf.js.map +0 -1
  339. package/dist/searchcraft-javascript-sdk/p-3cb77ee1.entry.js +0 -2
  340. package/dist/searchcraft-javascript-sdk/p-3cb77ee1.entry.js.map +0 -1
  341. package/dist/searchcraft-javascript-sdk/p-72382d90.entry.js +0 -2
  342. package/dist/searchcraft-javascript-sdk/p-72382d90.entry.js.map +0 -1
  343. package/dist/types/components/searchcraft-clear-input-button/searchcraft-clear-input-button.d.ts +0 -10
  344. package/dist/types/components/searchcraft-filters-list/searchcraft-filters-list.d.ts +0 -34
  345. package/dist/types/components/searchcraft-input-caption/searchcraft-input-caption.d.ts +0 -9
  346. package/dist/types/components/searchcraft-input-icon/searchcraft-input-icon.d.ts +0 -9
  347. package/readme.md +0 -11
  348. /package/dist/searchcraft-javascript-sdk/{p-5ec960bd.entry.js.map → p-69f64bdd.entry.js.map} +0 -0
@@ -1,17 +0,0 @@
1
- :root {
2
- --font-stack: Helvetica, Arial, sans-serif;
3
- }
4
-
5
- .inputIconLTR {
6
- left: 15px;
7
- position: absolute;
8
- top: 50%;
9
- transform: translateY(-50%);
10
- }
11
-
12
- .inputIconRTL {
13
- position: absolute;
14
- right: 15px;
15
- top: 50%;
16
- transform: translateY(-50%);
17
- }
@@ -1,67 +0,0 @@
1
- import { p as proxyCustomElement, H, c as createEvent, h } from './p-7498e493.js';
2
- import { c as classNames } from './p-5cdc6210.js';
3
- import { d as defineCustomElement$3 } from './p-70722ab2.js';
4
- import { d as defineCustomElement$2 } from './p-bc3f9025.js';
5
- import { d as defineCustomElement$1 } from './p-bfb22305.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:0;top:50%;transform:translateY(-50%);width:20px}.inputClearButtonRTL{align-items:center;background:none;border:none;display:flex;height:20px;justify-content:center;left:0px;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
- this.handleClearClick = (event) => {
17
- event.preventDefault();
18
- this.clearInput.emit();
19
- };
20
- this.isRequesting = false;
21
- this.rightToLeftOrientation = false;
22
- this.theme = 'light';
23
- }
24
- isLightTheme() {
25
- return this.theme === 'light';
26
- }
27
- render() {
28
- 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' }))));
29
- }
30
- static get style() { return SearchcraftClearInputButtonStyle0; }
31
- }, [1, "searchcraft-clear-input-button", {
32
- "isRequesting": [4, "is-requesting"],
33
- "rightToLeftOrientation": [4, "right-to-left-orientation"],
34
- "theme": [32]
35
- }]);
36
- function defineCustomElement() {
37
- if (typeof customElements === "undefined") {
38
- return;
39
- }
40
- const components = ["searchcraft-clear-input-button", "searchcraft-clear-icon-set", "searchcraft-spinner-dark", "searchcraft-spinner-light"];
41
- components.forEach(tagName => { switch (tagName) {
42
- case "searchcraft-clear-input-button":
43
- if (!customElements.get(tagName)) {
44
- customElements.define(tagName, SearchcraftClearInputButton);
45
- }
46
- break;
47
- case "searchcraft-clear-icon-set":
48
- if (!customElements.get(tagName)) {
49
- defineCustomElement$3();
50
- }
51
- break;
52
- case "searchcraft-spinner-dark":
53
- if (!customElements.get(tagName)) {
54
- defineCustomElement$2();
55
- }
56
- break;
57
- case "searchcraft-spinner-light":
58
- if (!customElements.get(tagName)) {
59
- defineCustomElement$1();
60
- }
61
- break;
62
- } });
63
- }
64
-
65
- export { SearchcraftClearInputButton as S, defineCustomElement as d };
66
-
67
- //# sourceMappingURL=p-07edaa9b.js.map
@@ -1 +0,0 @@
1
- {"file":"p-07edaa9b.js","mappings":";;;;;;AAAA,MAAM,oCAAoC,GAAG,+bAA+b,CAAC;AAC7e,0CAAe,oCAAoC;;MCctC,2BAA2B;;;;;;QAY9B,qBAAgB,GAAG,CAAC,KAAiB;YAC3C,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;SACxB,CAAC;4BAdsB,KAAK;sCACI,KAAK;qBAIrB,OAAO;;IAEhB,YAAY;QAClB,OAAO,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC;KAC/B;IAOD,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: 0;\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: 0px;\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 @Event() clearInput: EventEmitter<void>;\n\n @State() theme = 'light';\n\n private isLightTheme() {\n return this.theme === 'light';\n }\n\n private handleClearClick = (event: MouseEvent) => {\n event.preventDefault();\n this.clearInput.emit();\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}
@@ -1,149 +0,0 @@
1
- import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment } from './p-7498e493.js';
2
- import { c as classNames } from './p-5cdc6210.js';
3
- import { p as parseCustomStyles } from './p-7d1bcd2d.js';
4
- import { d as defineCustomElement$7 } from './p-70722ab2.js';
5
- import { d as defineCustomElement$6 } from './p-07edaa9b.js';
6
- import { d as defineCustomElement$5 } from './p-6237f03e.js';
7
- import { d as defineCustomElement$4 } from './p-8c38185e.js';
8
- import { d as defineCustomElement$3 } from './p-a3bd1bc8.js';
9
- import { d as defineCustomElement$2 } from './p-bc3f9025.js';
10
- import { d as defineCustomElement$1 } from './p-bfb22305.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:\"Brygada 1918\";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:\"Brygada 1918\";font-size:16px;font-weight:600}.inputLightLTR::placeholder{color:#737373}.inputLightLTR:focus{outline:2px solid #000}.inputDarkLTR{border:none;border-radius:8px;font-family:\"Brygada 1918\";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:\"Brygada 1918\";font-size:16px;font-weight:600}.inputDarkLTR::placeholder{color:#BFBFBF}.inputDarkLTR:focus{outline:2px solid #FFF}.inputErrorLightLTR{border:none;border-radius:8px;font-family:\"Brygada 1918\";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:\"Brygada 1918\";font-size:16px;font-weight:600}.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:\"Brygada 1918\";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:\"Brygada 1918\";font-size:16px;font-weight:600}.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:\"Brygada 1918\";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:\"Brygada 1918\";font-size:16px;font-weight:600}.inputLightRTL::placeholder{color:#737373}.inputLightRTL:focus{outline:2px solid #000}.inputDarkRTL{border:none;border-radius:8px;font-family:\"Brygada 1918\";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:\"Brygada 1918\";font-size:16px;font-weight:600}.inputDarkRTL::placeholder{color:#BFBFBF}.inputDarkRTL:focus{outline:2px solid #FFF}.inputErrorLightRTL{border:none;border-radius:8px;font-family:\"Brygada 1918\";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:\"Brygada 1918\";font-size:16px;font-weight:600}.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:\"Brygada 1918\";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:\"Brygada 1918\";font-size:16px;font-weight:600}.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.inputKeyUp = createEvent(this, "inputKeyUp", 7);
23
- this.customStyles = {};
24
- this.error = false;
25
- this.formClassName = '';
26
- this.inputCaptionClassName = '';
27
- this.inputCaptionValue = '';
28
- this.inputClassName = '';
29
- this.inputIconHeight = 20;
30
- this.inputIconWidth = 20;
31
- this.isRequesting = false;
32
- this.placeholderValue = 'Enter Search';
33
- this.rightToLeftOrientation = false;
34
- this.query = '';
35
- this.theme = 'light';
36
- }
37
- get isLightTheme() {
38
- return this.theme === 'light';
39
- }
40
- handleInputChange(event) {
41
- const input = event.target;
42
- this.searchInputChange.emit(input.value);
43
- }
44
- handleInputKeyUp(event) {
45
- const input = event.target;
46
- this.inputKeyUp.emit(input.value);
47
- }
48
- handleClearInput() {
49
- if (this.query === '') {
50
- return;
51
- }
52
- this.query = '';
53
- if (this.clearInput) {
54
- this.clearInput.emit();
55
- }
56
- }
57
- render() {
58
- const containerClassName = this.rightToLeftOrientation
59
- ? 'inputContainerRTL'
60
- : 'inputContainerLTR';
61
- const inputClassName = classNames(this.error
62
- ? this.isLightTheme
63
- ? 'inputErrorLightRTL'
64
- : 'inputErrorDarkRTL'
65
- : this.isLightTheme
66
- ? 'inputLightLTR'
67
- : 'inputDarkLTR', 'searchcraft-input');
68
- const validatedCustomStyles = parseCustomStyles(this.customStyles);
69
- const placeholderStyle = {
70
- fontSize: validatedCustomStyles.placeholderFontSize || '16px',
71
- };
72
- return (h("div", { key: '7047cbe1692a4c8f11232d7f65e00824703d8b50', class: classNames(containerClassName, this.formClassName, 'searchcraft-input-form') }, this.rightToLeftOrientation ? (h(Fragment, null, h("input", { autoComplete: 'off', class: classNames(inputClassName, 'searchcraft-input'), id: 'searchcraft-input-id', onChange: this.handleInputChange.bind(this), onKeyUp: this.handleInputKeyUp.bind(this), placeholder: this.placeholderValue, type: 'text', value: this.query, style: validatedCustomStyles }), h("style", null, `
73
- #searchcraft-input-id::placeholder {
74
- font-size: ${placeholderStyle.fontSize};
75
- }
76
- `), this.inputCaptionValue && (h("searchcraft-input-caption", { inputCaptionClassName: this.inputCaptionClassName, inputCaptionValue: this.inputCaptionValue, rightToLeftOrientation: this.rightToLeftOrientation })), this.query.length > 0 && (h("searchcraft-clear-input-button", { isRequesting: this.isRequesting, onClearInput: this.handleClearInput, rightToLeftOrientation: this.rightToLeftOrientation })), h("searchcraft-input-icon", { error: this.error, height: this.inputIconHeight, rightToLeftOrientation: this.rightToLeftOrientation, width: this.inputIconWidth }))) : (h(Fragment, null, h("searchcraft-input-icon", { error: this.error, height: this.inputIconHeight, rightToLeftOrientation: this.rightToLeftOrientation, width: this.inputIconWidth }), h("input", { autoComplete: 'off', class: classNames(inputClassName, 'searchcraft-input'), id: 'searchcraft-input-id', onChange: this.handleInputChange.bind(this), onKeyUp: this.handleInputKeyUp.bind(this), placeholder: this.placeholderValue, type: 'text', value: this.query, style: validatedCustomStyles }), h("style", null, `
77
- #searchcraft-input-id::placeholder {
78
- font-size: ${placeholderStyle.fontSize};
79
- }
80
- `), this.inputCaptionValue && (h("searchcraft-input-caption", { inputCaptionClassName: this.inputCaptionClassName, inputCaptionValue: this.inputCaptionValue, rightToLeftOrientation: this.rightToLeftOrientation })), this.query.length > 0 && (h("searchcraft-clear-input-button", { isRequesting: this.isRequesting, onClearInput: this.handleClearInput, rightToLeftOrientation: this.rightToLeftOrientation }))))));
81
- }
82
- static get style() { return SearchcraftInputStyle0; }
83
- }, [1, "searchcraft-input", {
84
- "customStyles": [1, "custom-styles"],
85
- "error": [4],
86
- "formClassName": [1, "form-class-name"],
87
- "inputCaptionClassName": [1, "input-caption-class-name"],
88
- "inputCaptionValue": [1, "input-caption-value"],
89
- "inputClassName": [1, "input-class-name"],
90
- "inputIconHeight": [2, "input-icon-height"],
91
- "inputIconWidth": [2, "input-icon-width"],
92
- "isRequesting": [4, "is-requesting"],
93
- "placeholderValue": [1, "placeholder-value"],
94
- "rightToLeftOrientation": [4, "right-to-left-orientation"],
95
- "query": [1],
96
- "theme": [32]
97
- }]);
98
- function defineCustomElement() {
99
- if (typeof customElements === "undefined") {
100
- return;
101
- }
102
- 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"];
103
- components.forEach(tagName => { switch (tagName) {
104
- case "searchcraft-input":
105
- if (!customElements.get(tagName)) {
106
- customElements.define(tagName, SearchcraftInput);
107
- }
108
- break;
109
- case "searchcraft-clear-icon-set":
110
- if (!customElements.get(tagName)) {
111
- defineCustomElement$7();
112
- }
113
- break;
114
- case "searchcraft-clear-input-button":
115
- if (!customElements.get(tagName)) {
116
- defineCustomElement$6();
117
- }
118
- break;
119
- case "searchcraft-input-caption":
120
- if (!customElements.get(tagName)) {
121
- defineCustomElement$5();
122
- }
123
- break;
124
- case "searchcraft-input-icon":
125
- if (!customElements.get(tagName)) {
126
- defineCustomElement$4();
127
- }
128
- break;
129
- case "searchcraft-search-icon-set":
130
- if (!customElements.get(tagName)) {
131
- defineCustomElement$3();
132
- }
133
- break;
134
- case "searchcraft-spinner-dark":
135
- if (!customElements.get(tagName)) {
136
- defineCustomElement$2();
137
- }
138
- break;
139
- case "searchcraft-spinner-light":
140
- if (!customElements.get(tagName)) {
141
- defineCustomElement$1();
142
- }
143
- break;
144
- } });
145
- }
146
-
147
- export { SearchcraftInput as S, defineCustomElement as d };
148
-
149
- //# sourceMappingURL=p-27a6ca57.js.map
@@ -1 +0,0 @@
1
- {"file":"p-27a6ca57.js","mappings":";;;;;;;;;;;AAAA,MAAM,yBAAyB,GAAG,2zHAA2zH,CAAC;AAC91H,+BAAe,yBAAyB;;MCsB3B,gBAAgB;;;;;;;;4BAC6B,EAAE;qBAC1C,KAAK;6BACG,EAAE;qCACM,EAAE;iCACN,EAAE;8BACL,EAAE;+BACD,EAAE;8BACH,EAAE;4BACJ,KAAK;gCACD,cAAc;sCACR,KAAK;qBACtB,EAAE;qBAMD,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,CAAC,KAAoB;QACnC,MAAM,KAAK,GAAG,KAAK,CAAC,MAA0B,CAAC;QAC/C,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;KACnC;IAED,gBAAgB;QACd,IAAI,IAAI,CAAC,KAAK,KAAK,EAAE,EAAE;YACrB,OAAO;SACR;QACD,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;QAChB,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,YAAY,EAAC,KAAK,EAClB,KAAK,EAAE,UAAU,CAAC,cAAc,EAAE,mBAAmB,CAAC,EACtD,EAAE,EAAC,sBAAsB,EACzB,QAAQ,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,EAC3C,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,EACzC,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,YAAY,EAC/B,YAAY,EAAE,IAAI,CAAC,gBAAgB,EACnC,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,GACnD,CACH,EACD,8BACE,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,eAAe,EAC5B,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,EACnD,KAAK,EAAE,IAAI,CAAC,cAAc,GAC1B,CACO,KAEX,EAAC,QAAQ,QACP,8BACE,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,eAAe,EAC5B,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,EACnD,KAAK,EAAE,IAAI,CAAC,cAAc,GAC1B,EACF,aACE,YAAY,EAAC,KAAK,EAClB,KAAK,EAAE,UAAU,CAAC,cAAc,EAAE,mBAAmB,CAAC,EACtD,EAAE,EAAC,sBAAsB,EACzB,QAAQ,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,EAC3C,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,EACzC,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,YAAY,EAC/B,YAAY,EAAE,IAAI,CAAC,gBAAgB,EACnC,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,GACnD,CACH,CACQ,CACZ,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: 'Brygada 1918';\n outline: none;\n padding-bottom: 15px;\n padding-top: 15px;\n width: 100%;\n\n &::placeholder {\n font-family: 'Brygada 1918';\n font-size: 16px;\n font-weight: 600;\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() inputIconHeight = 20;\n @Prop() inputIconWidth = 20;\n @Prop() isRequesting = false;\n @Prop() placeholderValue = 'Enter Search';\n @Prop() rightToLeftOrientation = false;\n @Prop() query = '';\n\n @Event() clearInput: EventEmitter<void>;\n @Event() searchInputChange: EventEmitter<string>;\n @Event() inputKeyUp: 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 handleInputKeyUp(event: KeyboardEvent) {\n const input = event.target as HTMLInputElement;\n this.inputKeyUp.emit(input.value);\n }\n\n handleClearInput() {\n if (this.query === '') {\n return;\n }\n this.query = '';\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 autoComplete='off'\n class={classNames(inputClassName, 'searchcraft-input')}\n id='searchcraft-input-id'\n onChange={this.handleInputChange.bind(this)}\n onKeyUp={this.handleInputKeyUp.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 isRequesting={this.isRequesting}\n onClearInput={this.handleClearInput}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n )}\n <searchcraft-input-icon\n error={this.error}\n height={this.inputIconHeight}\n rightToLeftOrientation={this.rightToLeftOrientation}\n width={this.inputIconWidth}\n />\n </Fragment>\n ) : (\n <Fragment>\n <searchcraft-input-icon\n error={this.error}\n height={this.inputIconHeight}\n rightToLeftOrientation={this.rightToLeftOrientation}\n width={this.inputIconWidth}\n />\n <input\n autoComplete='off'\n class={classNames(inputClassName, 'searchcraft-input')}\n id='searchcraft-input-id'\n onChange={this.handleInputChange.bind(this)}\n onKeyUp={this.handleInputKeyUp.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 isRequesting={this.isRequesting}\n onClearInput={this.handleClearInput}\n rightToLeftOrientation={this.rightToLeftOrientation}\n />\n )}\n </Fragment>\n )}\n </div>\n );\n }\n}\n"],"version":3}
@@ -1,61 +0,0 @@
1
- import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment } from './p-7498e493.js';
2
- import { c as classNames } from './p-5cdc6210.js';
3
- import { d as defineCustomElement$1 } from './p-bc3f9025.js';
4
-
5
- const searchcraftButtonModuleCss = ":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 SearchcraftButtonStyle0 = searchcraftButtonModuleCss;
7
-
8
- const SearchcraftButton = /*@__PURE__*/ proxyCustomElement(class SearchcraftButton 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: '31e65bdc250d9e87848b6d0c59798ded2855de79' }, this.iconOnly ? (h("button", { class: classNames(buttonStyle, 'searchcraft-button'), onClick: this.handleClick, type: 'submit' }, this.isRequesting ? (h("searchcraft-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("searchcraft-spinner-dark", null))) : (this.iconElement), h("span", { class: classNames(this.isRequesting && 'button-label', 'searchcraft-button-label') }, this.label)))));
30
- }
31
- static get style() { return SearchcraftButtonStyle0; }
32
- }, [1, "searchcraft-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 = ["searchcraft-button", "searchcraft-spinner-dark"];
45
- components.forEach(tagName => { switch (tagName) {
46
- case "searchcraft-button":
47
- if (!customElements.get(tagName)) {
48
- customElements.define(tagName, SearchcraftButton);
49
- }
50
- break;
51
- case "searchcraft-spinner-dark":
52
- if (!customElements.get(tagName)) {
53
- defineCustomElement$1();
54
- }
55
- break;
56
- } });
57
- }
58
-
59
- export { SearchcraftButton as S, defineCustomElement as d };
60
-
61
- //# sourceMappingURL=p-4468fba3.js.map
@@ -1 +0,0 @@
1
- {"file":"p-4468fba3.js","mappings":";;;;AAAA,MAAM,0BAA0B,GAAG,y/BAAy/B,CAAC;AAC7hC,gCAAe,0BAA0B;;MCe5B,iBAAiB;;;;;;QAepB,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,IAChB,mCAA4B,KAE5B,IAAI,CAAC,WAAW,CACjB,CACM,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,mCAA4B,CACxB,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/searchcraft-button/searchcraft-button.module.scss?tag=searchcraft-button&encapsulation=shadow","src/components/searchcraft-button/searchcraft-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: 'searchcraft-button',\n styleUrl: 'searchcraft-button.module.scss',\n shadow: true,\n})\nexport class SearchcraftButton {\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 ? (\n <searchcraft-spinner-dark />\n ) : (\n this.iconElement\n )}\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 <searchcraft-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,40 +0,0 @@
1
- import { p as proxyCustomElement, H, h } from './p-7498e493.js';
2
- import { c as classNames } from './p-5cdc6210.js';
3
-
4
- const searchcraftErrorMessageModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.errorMessageLight{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#990000}.errorMessageDark{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#FFB3B3}";
5
- const SearchcraftErrorMessageStyle0 = searchcraftErrorMessageModuleCss;
6
-
7
- const SearchcraftErrorMessage = /*@__PURE__*/ proxyCustomElement(class SearchcraftErrorMessage 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: '7c26f9a1b2589d57a81f7909c456e712d9b7fe79', class: classNames(errorMessageStyle) }, this.errorMessage || 'Search term is required.'));
18
- }
19
- static get style() { return SearchcraftErrorMessageStyle0; }
20
- }, [1, "searchcraft-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 = ["searchcraft-error-message"];
29
- components.forEach(tagName => { switch (tagName) {
30
- case "searchcraft-error-message":
31
- if (!customElements.get(tagName)) {
32
- customElements.define(tagName, SearchcraftErrorMessage);
33
- }
34
- break;
35
- } });
36
- }
37
-
38
- export { SearchcraftErrorMessage as S, defineCustomElement as d };
39
-
40
- //# sourceMappingURL=p-498c7ef9.js.map
@@ -1 +0,0 @@
1
- {"file":"p-498c7ef9.js","mappings":";;;AAAA,MAAM,gCAAgC,GAAG,6SAA6S,CAAC;AACvV,sCAAe,gCAAgC;;MCOlC,uBAAuB;;;;;;qBASA,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/searchcraft-error-message/searchcraft-error-message.module.scss?tag=searchcraft-error-message&encapsulation=shadow","src/components/searchcraft-error-message/searchcraft-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: 'searchcraft-error-message',\n styleUrl: 'searchcraft-error-message.module.scss',\n shadow: true,\n})\nexport class SearchcraftErrorMessage {\n /**\n * The error message to display. Defaults to a standard message if not provided.\n */\n @Prop() errorMessage?: string;\n\n /**\n * The theme, which determines the style (light or dark).\n */\n @Prop() theme: 'light' | 'dark' = 'light';\n\n render() {\n const errorMessageStyle =\n this.theme === 'light' ? 'errorMessageLight' : 'errorMessageDark';\n\n return (\n <p class={classNames(errorMessageStyle)}>\n {this.errorMessage || 'Search term is required.'}\n </p>\n );\n }\n}\n"],"version":3}
@@ -1,60 +0,0 @@
1
- import { p as proxyCustomElement, H, h } from './p-7498e493.js';
2
- import { c as classNames } from './p-5cdc6210.js';
3
-
4
- const searchcraftInputCaptionModuleCss = ":root{--font-stack:Helvetica, Arial, sans-serif}.inputCaptionLightLTR{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#404040}.inputCaptionDarkLTR{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#E6E6E6}.inputCaptionErrorLightLTR{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#990000}.inputCaptionErrorDarkLTR{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#FFB3B3}.inputCaptionLightRTL{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#404040;text-align:right}.inputCaptionDarkRTL{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#E6E6E6;text-align:right}.inputCaptionErrorLightRTL{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#990000;text-align:right}.inputCaptionErrorDarkRTL{font-family:var(--font-stack);font-size:12px;font-weight:400;line-height:16px;margin-top:4px;color:#FFB3B3;text-align:right}";
5
- const SearchcraftInputCaptionStyle0 = searchcraftInputCaptionModuleCss;
6
-
7
- const SearchcraftInputCaption = /*@__PURE__*/ proxyCustomElement(class SearchcraftInputCaption 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 SearchcraftInputCaptionStyle0; }
37
- }, [1, "searchcraft-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 = ["searchcraft-input-caption"];
49
- components.forEach(tagName => { switch (tagName) {
50
- case "searchcraft-input-caption":
51
- if (!customElements.get(tagName)) {
52
- customElements.define(tagName, SearchcraftInputCaption);
53
- }
54
- break;
55
- } });
56
- }
57
-
58
- export { SearchcraftInputCaption as S, defineCustomElement as d };
59
-
60
- //# sourceMappingURL=p-6237f03e.js.map
@@ -1 +0,0 @@
1
- {"file":"p-6237f03e.js","mappings":";;;AAAA,MAAM,gCAAgC,GAAG,8oCAA8oC,CAAC;AACxrC,sCAAe,gCAAgC;;MCOlC,uBAAuB;;;;;;qCAED,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/searchcraft-input-caption/searchcraft-input-caption.module.scss?tag=searchcraft-input-caption&encapsulation=shadow","src/components/searchcraft-input-caption/searchcraft-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: 'searchcraft-input-caption',\n styleUrl: 'searchcraft-input-caption.module.scss',\n shadow: true,\n})\nexport class SearchcraftInputCaption {\n @Prop() error?: boolean;\n @Prop() inputCaptionClassName? = '';\n @Prop() inputCaptionValue = 'Enter Search';\n @Prop() rightToLeftOrientation = false;\n @State() theme = 'light';\n\n private isLightTheme() {\n return this.theme === 'light';\n }\n\n render() {\n return this.rightToLeftOrientation ? (\n <p\n class={classNames(\n this.error\n ? this.isLightTheme\n ? 'inputCaptionErrorLightRTL'\n : 'inputCaptionErrorDarkRTL'\n : this.isLightTheme\n ? 'inputCaptionLightRTL'\n : 'inputCaptionDarkRTL',\n this.inputCaptionClassName,\n '.searchcraft-input-caption',\n )}\n >\n {this.inputCaptionValue}\n </p>\n ) : (\n <p\n class={classNames(\n this.error\n ? this.isLightTheme\n ? 'inputCaptionErrorLightLTR'\n : 'inputCaptionErrorDarkLTR'\n : this.isLightTheme\n ? 'inputCaptionLightLTR'\n : 'inputCaptionDarkLTR',\n this.inputCaptionClassName,\n '.searchcraft-input-caption',\n )}\n >\n {this.inputCaptionValue}\n </p>\n );\n }\n}\n"],"version":3}
@@ -1 +0,0 @@
1
- {"file":"p-70722ab2.js","mappings":";;MAMa,uBAAuB;;;;;oBAMhC,aAAa;;IAEf,MAAM;QACJ,QAAQ,IAAI,CAAC,IAAI;YACf,KAAK,aAAa;gBAChB,QACE,WACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,qBAClB,YAAY,IAE5B,aAAO,EAAE,EAAC,YAAY,yCAA2C,EACjE,YACE,CAAC,EAAC,uIAAuI,EACzI,MAAM,EAAC,OAAO,kBACD,KAAK,oBACH,OAAO,qBACN,OAAO,GACvB,CACE,EACN;YACJ,KAAK,YAAY;gBACf,QACE,WACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,qBAClB,YAAY,IAE5B,aAAO,EAAE,EAAC,YAAY,wCAA0C,EAChE,YACE,CAAC,EAAC,uIAAuI,EACzI,MAAM,EAAC,OAAO,kBACD,KAAK,oBACH,OAAO,qBACN,OAAO,GACvB,CACE,EACN;YACJ,KAAK,aAAa;gBAChB,QACE,WACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,qBAClB,YAAY,IAE5B,aAAO,EAAE,EAAC,YAAY,yCAA2C,EACjE,YACE,CAAC,EAAC,uCAAuC,EACzC,MAAM,EAAC,SAAS,kBACH,KAAK,oBACH,OAAO,qBACN,OAAO,GACvB,CACE,EACN;YACJ,KAAK,YAAY;gBACf,QACE,WACE,KAAK,EAAC,GAAG,EACT,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,UAAU,EAClB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,qBAClB,YAAY,IAE5B,aAAO,EAAE,EAAC,YAAY,wCAA0C,EAChE,YACE,CAAC,EAAC,qBAAqB,EACvB,MAAM,EAAC,SAAS,kBACH,KAAK,oBACH,OAAO,qBACN,OAAO,GACvB,CACE,EACN;YAEJ;gBACE,OAAO,IAAI,CAAC;SACf;KACF;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/assets/searchcraft-clear-icon-set.tsx"],"sourcesContent":["import { Component, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'searchcraft-clear-icon-set',\n shadow: true,\n})\nexport class SearchcraftClearIconSet {\n /**\n * Type of the icon to display.\n * Options: 'clear-light', 'clear-dark', 'arrow-light', 'arrow-dark'\n */\n @Prop() type: 'clear-light' | 'clear-dark' | 'arrow-light' | 'arrow-dark' =\n 'clear-light';\n\n render() {\n switch (this.type) {\n case 'clear-light':\n return (\n <svg\n width='22'\n height='22'\n viewBox='0 0 22 22'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n aria-labelledby='icon-title'\n >\n <title id='icon-title'>Searchcraft Clear Input Icon Light</title>\n <path\n d='M14 8L8 14M8 8L14 14M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z'\n stroke='black'\n stroke-width='1.5'\n stroke-linecap='round'\n stroke-linejoin='round'\n />\n </svg>\n );\n case 'clear-dark':\n return (\n <svg\n width='22'\n height='22'\n viewBox='0 0 22 22'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n aria-labelledby='icon-title'\n >\n <title id='icon-title'>Searchcraft Clear Input Icon Dark</title>\n <path\n d='M14 8L8 14M8 8L14 14M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z'\n stroke='white'\n stroke-width='1.5'\n stroke-linecap='round'\n stroke-linejoin='round'\n />\n </svg>\n );\n case 'arrow-light':\n return (\n <svg\n width='20'\n height='21'\n viewBox='0 0 20 21'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n aria-labelledby='icon-title'\n >\n <title id='icon-title'>Searchcraft Arrow Right Icon Light</title>\n <path\n d='M7.5 15.0444L12.5 10.0444L7.5 5.04443'\n stroke='#737373'\n stroke-width='1.5'\n stroke-linecap='round'\n stroke-linejoin='round'\n />\n </svg>\n );\n case 'arrow-dark':\n return (\n <svg\n width='8'\n height='12'\n viewBox='0 0 8 12'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n aria-labelledby='icon-title'\n >\n <title id='icon-title'>Searchcraft Arrow Right Icon Dark</title>\n <path\n d='M1.5 11L6.5 6L1.5 1'\n stroke='#BFBFBF'\n stroke-width='1.5'\n stroke-linecap='round'\n stroke-linejoin='round'\n />\n </svg>\n );\n\n default:\n return null;\n }\n }\n}\n"],"version":3}