@searchcraft/javascript-sdk 0.1.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 (220) hide show
  1. package/LICENSE +201 -0
  2. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  3. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  4. package/dist/cjs/index-0c2339c7.js +1226 -0
  5. package/dist/cjs/index-0c2339c7.js.map +1 -0
  6. package/dist/cjs/index.cjs.js +12 -0
  7. package/dist/cjs/index.cjs.js.map +1 -0
  8. package/dist/cjs/loader.cjs.js +17 -0
  9. package/dist/cjs/loader.cjs.js.map +1 -0
  10. package/dist/cjs/sc-auto-search-form.cjs.entry.js +101 -0
  11. package/dist/cjs/sc-auto-search-form.cjs.entry.js.map +1 -0
  12. package/dist/cjs/sc-base-search-form_11.cjs.entry.js +471 -0
  13. package/dist/cjs/sc-base-search-form_11.cjs.entry.js.map +1 -0
  14. package/dist/cjs/sc-spinner-light-a3bfc8e6.js +20 -0
  15. package/dist/cjs/sc-spinner-light-a3bfc8e6.js.map +1 -0
  16. package/dist/cjs/sc-spinner-light.cjs.entry.js +12 -0
  17. package/dist/cjs/sc-spinner-light.cjs.entry.js.map +1 -0
  18. package/dist/cjs/searchcraft-javascript-sdk.cjs.js +27 -0
  19. package/dist/cjs/searchcraft-javascript-sdk.cjs.js.map +1 -0
  20. package/dist/cjs/store-6c259dd0.js +251 -0
  21. package/dist/cjs/store-6c259dd0.js.map +1 -0
  22. package/dist/collection/assets/ButtonIcons.js +3 -0
  23. package/dist/collection/assets/ButtonIcons.js.map +1 -0
  24. package/dist/collection/assets/ClearInputIcon.js +6 -0
  25. package/dist/collection/assets/ClearInputIcon.js.map +1 -0
  26. package/dist/collection/assets/SearchIcons.js +6 -0
  27. package/dist/collection/assets/SearchIcons.js.map +1 -0
  28. package/dist/collection/collection-manifest.json +24 -0
  29. package/dist/collection/components/sc-auto-search-form/sc-auto-search-form.js +275 -0
  30. package/dist/collection/components/sc-auto-search-form/sc-auto-search-form.js.map +1 -0
  31. package/dist/collection/components/sc-auto-search-form/sc-auto-search-form.module.css +16 -0
  32. package/dist/collection/components/sc-base-search-form/sc-base-search-form.js +168 -0
  33. package/dist/collection/components/sc-base-search-form/sc-base-search-form.js.map +1 -0
  34. package/dist/collection/components/sc-base-search-form/sc-base-search-form.module.css +14 -0
  35. package/dist/collection/components/sc-base-search-result/sc-base-search-result.js +242 -0
  36. package/dist/collection/components/sc-base-search-result/sc-base-search-result.js.map +1 -0
  37. package/dist/collection/components/sc-base-search-result/sc-base-search-result.module.css +170 -0
  38. package/dist/collection/components/sc-base-search-results/sc-base-search-results.js +58 -0
  39. package/dist/collection/components/sc-base-search-results/sc-base-search-results.js.map +1 -0
  40. package/dist/collection/components/sc-base-search-results/sc-base-search-results.module.css +20 -0
  41. package/dist/collection/components/sc-button/sc-button.js +137 -0
  42. package/dist/collection/components/sc-button/sc-button.js.map +1 -0
  43. package/dist/collection/components/sc-button/sc-button.module.css +82 -0
  44. package/dist/collection/components/sc-clear-input-button/sc-clear-input-button.js +99 -0
  45. package/dist/collection/components/sc-clear-input-button/sc-clear-input-button.js.map +1 -0
  46. package/dist/collection/components/sc-clear-input-button/sc-clear-input-button.module.css +31 -0
  47. package/dist/collection/components/sc-error-message/sc-error-message.js +64 -0
  48. package/dist/collection/components/sc-error-message/sc-error-message.js.map +1 -0
  49. package/dist/collection/components/sc-error-message/sc-error-message.module.css +21 -0
  50. package/dist/collection/components/sc-input/sc-input.js +251 -0
  51. package/dist/collection/components/sc-input/sc-input.js.map +1 -0
  52. package/dist/collection/components/sc-input/sc-input.module.css +224 -0
  53. package/dist/collection/components/sc-input-caption/sc-input-caption.js +122 -0
  54. package/dist/collection/components/sc-input-caption/sc-input-caption.js.map +1 -0
  55. package/dist/collection/components/sc-input-caption/sc-input-caption.module.css +79 -0
  56. package/dist/collection/components/sc-input-icon/sc-input-icon.js +72 -0
  57. package/dist/collection/components/sc-input-icon/sc-input-icon.js.map +1 -0
  58. package/dist/collection/components/sc-input-icon/sc-input-icon.module.css +19 -0
  59. package/dist/collection/components/sc-input-label/sc-input-label.js +74 -0
  60. package/dist/collection/components/sc-input-label/sc-input-label.js.map +1 -0
  61. package/dist/collection/components/sc-input-label/sc-input-label.module.css +21 -0
  62. package/dist/collection/components/sc-spinner-dark/sc-spinner-dark.js +19 -0
  63. package/dist/collection/components/sc-spinner-dark/sc-spinner-dark.js.map +1 -0
  64. package/dist/collection/components/sc-spinner-dark/sc-spinner-dark.module.css +35 -0
  65. package/dist/collection/components/sc-spinner-light/sc-spinner-light.js +19 -0
  66. package/dist/collection/components/sc-spinner-light/sc-spinner-light.js.map +1 -0
  67. package/dist/collection/components/sc-spinner-light/sc-spinner-light.module.css +26 -0
  68. package/dist/collection/index.js +12 -0
  69. package/dist/collection/index.js.map +1 -0
  70. package/dist/collection/provider/store.js +68 -0
  71. package/dist/collection/provider/store.js.map +1 -0
  72. package/dist/collection/utils/utils.js +1 -0
  73. package/dist/collection/utils/utils.js.map +1 -0
  74. package/dist/components/index.d.ts +33 -0
  75. package/dist/components/index.js +4 -0
  76. package/dist/components/index.js.map +1 -0
  77. package/dist/components/p-074239f9.js +34 -0
  78. package/dist/components/p-074239f9.js.map +1 -0
  79. package/dist/components/p-184d9504.js +61 -0
  80. package/dist/components/p-184d9504.js.map +1 -0
  81. package/dist/components/p-23bdbb1f.js +58 -0
  82. package/dist/components/p-23bdbb1f.js.map +1 -0
  83. package/dist/components/p-255a89f7.js +62 -0
  84. package/dist/components/p-255a89f7.js.map +1 -0
  85. package/dist/components/p-5410e357.js +108 -0
  86. package/dist/components/p-5410e357.js.map +1 -0
  87. package/dist/components/p-5b7b903a.js +71 -0
  88. package/dist/components/p-5b7b903a.js.map +1 -0
  89. package/dist/components/p-5cdc6210.js +82 -0
  90. package/dist/components/p-5cdc6210.js.map +1 -0
  91. package/dist/components/p-6f0eaec6.js +247 -0
  92. package/dist/components/p-6f0eaec6.js.map +1 -0
  93. package/dist/components/p-75be555b.js +54 -0
  94. package/dist/components/p-75be555b.js.map +1 -0
  95. package/dist/components/p-79564f07.js +41 -0
  96. package/dist/components/p-79564f07.js.map +1 -0
  97. package/dist/components/p-a912a224.js +1062 -0
  98. package/dist/components/p-a912a224.js.map +1 -0
  99. package/dist/components/p-b05f23e3.js +18 -0
  100. package/dist/components/p-b05f23e3.js.map +1 -0
  101. package/dist/components/p-c47cb37f.js +46 -0
  102. package/dist/components/p-c47cb37f.js.map +1 -0
  103. package/dist/components/p-c54fdecb.js +164 -0
  104. package/dist/components/p-c54fdecb.js.map +1 -0
  105. package/dist/components/p-dfb43eea.js +34 -0
  106. package/dist/components/p-dfb43eea.js.map +1 -0
  107. package/dist/components/sc-auto-search-form.d.ts +11 -0
  108. package/dist/components/sc-auto-search-form.js +152 -0
  109. package/dist/components/sc-auto-search-form.js.map +1 -0
  110. package/dist/components/sc-base-search-form.d.ts +11 -0
  111. package/dist/components/sc-base-search-form.js +135 -0
  112. package/dist/components/sc-base-search-form.js.map +1 -0
  113. package/dist/components/sc-base-search-result.d.ts +11 -0
  114. package/dist/components/sc-base-search-result.js +8 -0
  115. package/dist/components/sc-base-search-result.js.map +1 -0
  116. package/dist/components/sc-base-search-results.d.ts +11 -0
  117. package/dist/components/sc-base-search-results.js +83 -0
  118. package/dist/components/sc-base-search-results.js.map +1 -0
  119. package/dist/components/sc-button.d.ts +11 -0
  120. package/dist/components/sc-button.js +8 -0
  121. package/dist/components/sc-button.js.map +1 -0
  122. package/dist/components/sc-clear-input-button.d.ts +11 -0
  123. package/dist/components/sc-clear-input-button.js +8 -0
  124. package/dist/components/sc-clear-input-button.js.map +1 -0
  125. package/dist/components/sc-error-message.d.ts +11 -0
  126. package/dist/components/sc-error-message.js +8 -0
  127. package/dist/components/sc-error-message.js.map +1 -0
  128. package/dist/components/sc-input-caption.d.ts +11 -0
  129. package/dist/components/sc-input-caption.js +8 -0
  130. package/dist/components/sc-input-caption.js.map +1 -0
  131. package/dist/components/sc-input-icon.d.ts +11 -0
  132. package/dist/components/sc-input-icon.js +8 -0
  133. package/dist/components/sc-input-icon.js.map +1 -0
  134. package/dist/components/sc-input-label.d.ts +11 -0
  135. package/dist/components/sc-input-label.js +8 -0
  136. package/dist/components/sc-input-label.js.map +1 -0
  137. package/dist/components/sc-input.d.ts +11 -0
  138. package/dist/components/sc-input.js +8 -0
  139. package/dist/components/sc-input.js.map +1 -0
  140. package/dist/components/sc-spinner-dark.d.ts +11 -0
  141. package/dist/components/sc-spinner-dark.js +8 -0
  142. package/dist/components/sc-spinner-dark.js.map +1 -0
  143. package/dist/components/sc-spinner-light.d.ts +11 -0
  144. package/dist/components/sc-spinner-light.js +8 -0
  145. package/dist/components/sc-spinner-light.js.map +1 -0
  146. package/dist/esm/app-globals-0f993ce5.js +5 -0
  147. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  148. package/dist/esm/index-c97f8c28.js +1198 -0
  149. package/dist/esm/index-c97f8c28.js.map +1 -0
  150. package/dist/esm/index.js +3 -0
  151. package/dist/esm/index.js.map +1 -0
  152. package/dist/esm/loader.js +13 -0
  153. package/dist/esm/loader.js.map +1 -0
  154. package/dist/esm/sc-auto-search-form.entry.js +97 -0
  155. package/dist/esm/sc-auto-search-form.entry.js.map +1 -0
  156. package/dist/esm/sc-base-search-form_11.entry.js +457 -0
  157. package/dist/esm/sc-base-search-form_11.entry.js.map +1 -0
  158. package/dist/esm/sc-spinner-light-cdb79a33.js +18 -0
  159. package/dist/esm/sc-spinner-light-cdb79a33.js.map +1 -0
  160. package/dist/esm/sc-spinner-light.entry.js +4 -0
  161. package/dist/esm/sc-spinner-light.entry.js.map +1 -0
  162. package/dist/esm/searchcraft-javascript-sdk.js +22 -0
  163. package/dist/esm/searchcraft-javascript-sdk.js.map +1 -0
  164. package/dist/esm/store-2370857c.js +247 -0
  165. package/dist/esm/store-2370857c.js.map +1 -0
  166. package/dist/index.cjs.js +1 -0
  167. package/dist/index.js +1 -0
  168. package/dist/loader/cdn.js +1 -0
  169. package/dist/loader/index.cjs.js +1 -0
  170. package/dist/loader/index.d.ts +24 -0
  171. package/dist/loader/index.es2017.js +1 -0
  172. package/dist/loader/index.js +2 -0
  173. package/dist/loader/package.json +11 -0
  174. package/dist/searchcraft-javascript-sdk/index.esm.js +2 -0
  175. package/dist/searchcraft-javascript-sdk/index.esm.js.map +1 -0
  176. package/dist/searchcraft-javascript-sdk/p-6f0eaec6.js +11 -0
  177. package/dist/searchcraft-javascript-sdk/p-6f0eaec6.js.map +1 -0
  178. package/dist/searchcraft-javascript-sdk/p-8e9ba2cf.js +3 -0
  179. package/dist/searchcraft-javascript-sdk/p-8e9ba2cf.js.map +1 -0
  180. package/dist/searchcraft-javascript-sdk/p-94c68cce.js +2 -0
  181. package/dist/searchcraft-javascript-sdk/p-94c68cce.js.map +1 -0
  182. package/dist/searchcraft-javascript-sdk/p-9545c59a.entry.js +7 -0
  183. package/dist/searchcraft-javascript-sdk/p-9545c59a.entry.js.map +1 -0
  184. package/dist/searchcraft-javascript-sdk/p-c632f66c.entry.js +2 -0
  185. package/dist/searchcraft-javascript-sdk/p-c632f66c.entry.js.map +1 -0
  186. package/dist/searchcraft-javascript-sdk/p-e1255160.js +2 -0
  187. package/dist/searchcraft-javascript-sdk/p-e1255160.js.map +1 -0
  188. package/dist/searchcraft-javascript-sdk/p-f7dbb9a8.entry.js +2 -0
  189. package/dist/searchcraft-javascript-sdk/p-f7dbb9a8.entry.js.map +1 -0
  190. package/dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js +2 -0
  191. package/dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js.map +1 -0
  192. package/dist/types/assets/ButtonIcons.d.ts +1 -0
  193. package/dist/types/assets/ClearInputIcon.d.ts +4 -0
  194. package/dist/types/assets/SearchIcons.d.ts +4 -0
  195. package/dist/types/components/sc-auto-search-form/sc-auto-search-form.d.ts +41 -0
  196. package/dist/types/components/sc-base-search-form/sc-base-search-form.d.ts +20 -0
  197. package/dist/types/components/sc-base-search-result/sc-base-search-result.d.ts +16 -0
  198. package/dist/types/components/sc-base-search-results/sc-base-search-results.d.ts +9 -0
  199. package/dist/types/components/sc-button/sc-button.d.ts +13 -0
  200. package/dist/types/components/sc-clear-input-button/sc-clear-input-button.d.ts +10 -0
  201. package/dist/types/components/sc-error-message/sc-error-message.d.ts +11 -0
  202. package/dist/types/components/sc-input/sc-input.d.ts +22 -0
  203. package/dist/types/components/sc-input-caption/sc-input-caption.d.ts +9 -0
  204. package/dist/types/components/sc-input-icon/sc-input-icon.d.ts +7 -0
  205. package/dist/types/components/sc-input-label/sc-input-label.d.ts +7 -0
  206. package/dist/types/components/sc-spinner-dark/sc-spinner-dark.d.ts +3 -0
  207. package/dist/types/components/sc-spinner-light/sc-spinner-light.d.ts +3 -0
  208. package/dist/types/components.d.ts +386 -0
  209. package/dist/types/index.d.ts +11 -0
  210. package/dist/types/provider/store.d.ts +18 -0
  211. package/dist/types/stencil-public-runtime.d.ts +1680 -0
  212. package/dist/types/utils/utils.d.ts +0 -0
  213. package/loader/cdn.js +1 -0
  214. package/loader/index.cjs.js +1 -0
  215. package/loader/index.d.ts +24 -0
  216. package/loader/index.es2017.js +1 -0
  217. package/loader/index.js +2 -0
  218. package/loader/package.json +11 -0
  219. package/package.json +47 -0
  220. package/readme.md +11 -0
@@ -0,0 +1,224 @@
1
+ :root {
2
+ --font-stack: Helvetica, Arial, sans-serif;
3
+ }
4
+
5
+ .inputContainerLTR {
6
+ position: relative;
7
+ }
8
+
9
+ .inputContainerRTL {
10
+ position: relative;
11
+ margin-left: 8px;
12
+ }
13
+
14
+ .inputLightLTR {
15
+ border: none;
16
+ border-radius: 8px;
17
+ font-family: var(--font-stack);
18
+ outline: none;
19
+ padding-bottom: 15px;
20
+ padding-top: 15px;
21
+ background-color: #EDEDED;
22
+ color: #292929;
23
+ margin-right: 8px;
24
+ padding-left: 36px;
25
+ padding-right: 16px;
26
+ }
27
+ .inputLightLTR::placeholder {
28
+ font-family: var(--font-stack);
29
+ font-size: 16px;
30
+ }
31
+ .inputLightLTR::placeholder {
32
+ color: #737373;
33
+ }
34
+ .inputLightLTR:focus {
35
+ outline: 2px solid #000;
36
+ }
37
+
38
+ .inputDarkLTR {
39
+ border: none;
40
+ border-radius: 8px;
41
+ font-family: var(--font-stack);
42
+ outline: none;
43
+ padding-bottom: 15px;
44
+ padding-top: 15px;
45
+ background-color: #1A1A1A;
46
+ color: #FFF;
47
+ margin-right: 8px;
48
+ padding-left: 36px;
49
+ padding-right: 16px;
50
+ }
51
+ .inputDarkLTR::placeholder {
52
+ font-family: var(--font-stack);
53
+ font-size: 16px;
54
+ }
55
+ .inputDarkLTR::placeholder {
56
+ color: #BFBFBF;
57
+ }
58
+ .inputDarkLTR:focus {
59
+ outline: 2px solid #FFF;
60
+ }
61
+
62
+ .inputErrorLightLTR {
63
+ border: none;
64
+ border-radius: 8px;
65
+ font-family: var(--font-stack);
66
+ outline: none;
67
+ padding-bottom: 15px;
68
+ padding-top: 15px;
69
+ background-color: #EDEDED;
70
+ color: #292929;
71
+ outline: 2px solid #c00;
72
+ margin-right: 8px;
73
+ padding-left: 36px;
74
+ padding-right: 16px;
75
+ }
76
+ .inputErrorLightLTR::placeholder {
77
+ font-family: var(--font-stack);
78
+ font-size: 16px;
79
+ }
80
+ .inputErrorLightLTR::placeholder {
81
+ color: #737373;
82
+ }
83
+ .inputErrorLightLTR:focus {
84
+ outline: 2px solid #000;
85
+ }
86
+ .inputErrorLightLTR:focus-visible {
87
+ outline: 2px solid #c00;
88
+ }
89
+
90
+ .inputErrorDarkLTR {
91
+ border: none;
92
+ border-radius: 8px;
93
+ font-family: var(--font-stack);
94
+ outline: none;
95
+ padding-bottom: 15px;
96
+ padding-top: 15px;
97
+ background-color: #1A1A1A;
98
+ color: #FFF;
99
+ outline: 2px solid #FFB3B3;
100
+ margin-right: 8px;
101
+ padding-left: 36px;
102
+ padding-right: 16px;
103
+ }
104
+ .inputErrorDarkLTR::placeholder {
105
+ font-family: var(--font-stack);
106
+ font-size: 16px;
107
+ }
108
+ .inputErrorDarkLTR::placeholder {
109
+ color: #BFBFBF;
110
+ }
111
+ .inputErrorDarkLTR:focus {
112
+ outline: 2px solid #FFF;
113
+ }
114
+ .inputErrorDarkLTR:focus-visible {
115
+ outline: 2px solid #FFB3B3;
116
+ }
117
+
118
+ .inputLightRTL {
119
+ border: none;
120
+ border-radius: 8px;
121
+ font-family: var(--font-stack);
122
+ outline: none;
123
+ padding-bottom: 15px;
124
+ padding-top: 15px;
125
+ background-color: #EDEDED;
126
+ color: #292929;
127
+ margin-left: 8px;
128
+ padding-left: 16px;
129
+ padding-right: 36px;
130
+ text-align: right;
131
+ }
132
+ .inputLightRTL::placeholder {
133
+ font-family: var(--font-stack);
134
+ font-size: 16px;
135
+ }
136
+ .inputLightRTL::placeholder {
137
+ color: #737373;
138
+ }
139
+ .inputLightRTL:focus {
140
+ outline: 2px solid #000;
141
+ }
142
+
143
+ .inputDarkRTL {
144
+ border: none;
145
+ border-radius: 8px;
146
+ font-family: var(--font-stack);
147
+ outline: none;
148
+ padding-bottom: 15px;
149
+ padding-top: 15px;
150
+ background-color: #1A1A1A;
151
+ color: #FFF;
152
+ margin-left: 8px;
153
+ padding-left: 16px;
154
+ padding-right: 36px;
155
+ text-align: right;
156
+ }
157
+ .inputDarkRTL::placeholder {
158
+ font-family: var(--font-stack);
159
+ font-size: 16px;
160
+ }
161
+ .inputDarkRTL::placeholder {
162
+ color: #BFBFBF;
163
+ }
164
+ .inputDarkRTL:focus {
165
+ outline: 2px solid #FFF;
166
+ }
167
+
168
+ .inputErrorLightRTL {
169
+ border: none;
170
+ border-radius: 8px;
171
+ font-family: var(--font-stack);
172
+ outline: none;
173
+ padding-bottom: 15px;
174
+ padding-top: 15px;
175
+ background-color: #EDEDED;
176
+ color: #292929;
177
+ outline: 2px solid #c00;
178
+ margin-left: 8px;
179
+ padding-left: 16px;
180
+ padding-right: 36px;
181
+ text-align: right;
182
+ }
183
+ .inputErrorLightRTL::placeholder {
184
+ font-family: var(--font-stack);
185
+ font-size: 16px;
186
+ }
187
+ .inputErrorLightRTL::placeholder {
188
+ color: #737373;
189
+ }
190
+ .inputErrorLightRTL:focus {
191
+ outline: 2px solid #000;
192
+ }
193
+ .inputErrorLightRTL:focus-visible {
194
+ outline: 2px solid #c00;
195
+ }
196
+
197
+ .inputErrorDarkRTL {
198
+ border: none;
199
+ border-radius: 8px;
200
+ font-family: var(--font-stack);
201
+ outline: none;
202
+ padding-bottom: 15px;
203
+ padding-top: 15px;
204
+ background-color: #1A1A1A;
205
+ color: #FFF;
206
+ outline: 2px solid #FFB3B3;
207
+ margin-left: 8px;
208
+ padding-left: 16px;
209
+ padding-right: 36px;
210
+ text-align: right;
211
+ }
212
+ .inputErrorDarkRTL::placeholder {
213
+ font-family: var(--font-stack);
214
+ font-size: 16px;
215
+ }
216
+ .inputErrorDarkRTL::placeholder {
217
+ color: #BFBFBF;
218
+ }
219
+ .inputErrorDarkRTL:focus {
220
+ outline: 2px solid #FFF;
221
+ }
222
+ .inputErrorDarkRTL:focus-visible {
223
+ outline: 2px solid #FFB3B3;
224
+ }
@@ -0,0 +1,122 @@
1
+ import { h } from "@stencil/core";
2
+ import classNames from "classnames";
3
+ export class ScInputCaption {
4
+ constructor() {
5
+ this.error = undefined;
6
+ this.inputCaptionClassName = '';
7
+ this.inputCaptionValue = 'Enter Search';
8
+ this.rightToLeftOrientation = false;
9
+ this.theme = 'light';
10
+ }
11
+ isLightTheme() {
12
+ return this.theme === 'light';
13
+ }
14
+ render() {
15
+ return this.rightToLeftOrientation ? (h("p", { class: classNames(this.error
16
+ ? this.isLightTheme
17
+ ? 'inputCaptionErrorLightRTL'
18
+ : 'inputCaptionErrorDarkRTL'
19
+ : this.isLightTheme
20
+ ? 'inputCaptionLightRTL'
21
+ : 'inputCaptionDarkRTL', this.inputCaptionClassName, '.searchcraft-input-caption') }, this.inputCaptionValue)) : (h("p", { class: classNames(this.error
22
+ ? this.isLightTheme
23
+ ? 'inputCaptionErrorLightLTR'
24
+ : 'inputCaptionErrorDarkLTR'
25
+ : this.isLightTheme
26
+ ? 'inputCaptionLightLTR'
27
+ : 'inputCaptionDarkLTR', this.inputCaptionClassName, '.searchcraft-input-caption') }, this.inputCaptionValue));
28
+ }
29
+ static get is() { return "sc-input-caption"; }
30
+ static get encapsulation() { return "shadow"; }
31
+ static get originalStyleUrls() {
32
+ return {
33
+ "$": ["sc-input-caption.module.scss"]
34
+ };
35
+ }
36
+ static get styleUrls() {
37
+ return {
38
+ "$": ["sc-input-caption.module.css"]
39
+ };
40
+ }
41
+ static get properties() {
42
+ return {
43
+ "error": {
44
+ "type": "boolean",
45
+ "mutable": false,
46
+ "complexType": {
47
+ "original": "boolean",
48
+ "resolved": "boolean",
49
+ "references": {}
50
+ },
51
+ "required": false,
52
+ "optional": true,
53
+ "docs": {
54
+ "tags": [],
55
+ "text": ""
56
+ },
57
+ "attribute": "error",
58
+ "reflect": false
59
+ },
60
+ "inputCaptionClassName": {
61
+ "type": "string",
62
+ "mutable": false,
63
+ "complexType": {
64
+ "original": "string",
65
+ "resolved": "string",
66
+ "references": {}
67
+ },
68
+ "required": false,
69
+ "optional": true,
70
+ "docs": {
71
+ "tags": [],
72
+ "text": ""
73
+ },
74
+ "attribute": "input-caption-class-name",
75
+ "reflect": false,
76
+ "defaultValue": "''"
77
+ },
78
+ "inputCaptionValue": {
79
+ "type": "string",
80
+ "mutable": false,
81
+ "complexType": {
82
+ "original": "string",
83
+ "resolved": "string",
84
+ "references": {}
85
+ },
86
+ "required": false,
87
+ "optional": false,
88
+ "docs": {
89
+ "tags": [],
90
+ "text": ""
91
+ },
92
+ "attribute": "input-caption-value",
93
+ "reflect": false,
94
+ "defaultValue": "'Enter Search'"
95
+ },
96
+ "rightToLeftOrientation": {
97
+ "type": "boolean",
98
+ "mutable": false,
99
+ "complexType": {
100
+ "original": "boolean",
101
+ "resolved": "boolean",
102
+ "references": {}
103
+ },
104
+ "required": false,
105
+ "optional": false,
106
+ "docs": {
107
+ "tags": [],
108
+ "text": ""
109
+ },
110
+ "attribute": "right-to-left-orientation",
111
+ "reflect": false,
112
+ "defaultValue": "false"
113
+ }
114
+ };
115
+ }
116
+ static get states() {
117
+ return {
118
+ "theme": {}
119
+ };
120
+ }
121
+ }
122
+ //# sourceMappingURL=sc-input-caption.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sc-input-caption.js","sourceRoot":"","sources":["../../../src/components/sc-input-caption/sc-input-caption.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,UAAU,MAAM,YAAY,CAAC;AAOpC,MAAM,OAAO,cAAc;;;qCAEQ,EAAE;iCACP,cAAc;sCACT,KAAK;qBACrB,OAAO;;IAEhB,YAAY;QAClB,OAAO,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC;IAChC,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,CACnC,SACE,KAAK,EAAE,UAAU,CACf,IAAI,CAAC,KAAK;gBACR,CAAC,CAAC,IAAI,CAAC,YAAY;oBACjB,CAAC,CAAC,2BAA2B;oBAC7B,CAAC,CAAC,0BAA0B;gBAC9B,CAAC,CAAC,IAAI,CAAC,YAAY;oBACjB,CAAC,CAAC,sBAAsB;oBACxB,CAAC,CAAC,qBAAqB,EAC3B,IAAI,CAAC,qBAAqB,EAC1B,4BAA4B,CAC7B,IAEA,IAAI,CAAC,iBAAiB,CACrB,CACL,CAAC,CAAC,CAAC,CACF,SACE,KAAK,EAAE,UAAU,CACf,IAAI,CAAC,KAAK;gBACR,CAAC,CAAC,IAAI,CAAC,YAAY;oBACjB,CAAC,CAAC,2BAA2B;oBAC7B,CAAC,CAAC,0BAA0B;gBAC9B,CAAC,CAAC,IAAI,CAAC,YAAY;oBACjB,CAAC,CAAC,sBAAsB;oBACxB,CAAC,CAAC,qBAAqB,EAC3B,IAAI,CAAC,qBAAqB,EAC1B,4BAA4B,CAC7B,IAEA,IAAI,CAAC,iBAAiB,CACrB,CACL,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, State } from '@stencil/core';\nimport classNames from 'classnames';\n\n@Component({\n tag: 'sc-input-caption',\n styleUrl: 'sc-input-caption.module.scss',\n shadow: true,\n})\nexport class ScInputCaption {\n @Prop() error?: boolean;\n @Prop() inputCaptionClassName? = '';\n @Prop() inputCaptionValue = 'Enter Search';\n @Prop() rightToLeftOrientation = false;\n @State() theme = 'light';\n\n private isLightTheme() {\n return this.theme === 'light';\n }\n\n render() {\n return this.rightToLeftOrientation ? (\n <p\n class={classNames(\n this.error\n ? this.isLightTheme\n ? 'inputCaptionErrorLightRTL'\n : 'inputCaptionErrorDarkRTL'\n : this.isLightTheme\n ? 'inputCaptionLightRTL'\n : 'inputCaptionDarkRTL',\n this.inputCaptionClassName,\n '.searchcraft-input-caption',\n )}\n >\n {this.inputCaptionValue}\n </p>\n ) : (\n <p\n class={classNames(\n this.error\n ? this.isLightTheme\n ? 'inputCaptionErrorLightLTR'\n : 'inputCaptionErrorDarkLTR'\n : this.isLightTheme\n ? 'inputCaptionLightLTR'\n : 'inputCaptionDarkLTR',\n this.inputCaptionClassName,\n '.searchcraft-input-caption',\n )}\n >\n {this.inputCaptionValue}\n </p>\n );\n }\n}\n"]}
@@ -0,0 +1,79 @@
1
+ :root {
2
+ --font-stack: Helvetica, Arial, sans-serif;
3
+ }
4
+
5
+ .inputCaptionLightLTR {
6
+ font-family: var(--font-stack);
7
+ font-size: 12px;
8
+ font-weight: 400;
9
+ line-height: 16px;
10
+ margin-top: 4px;
11
+ color: #404040;
12
+ }
13
+
14
+ .inputCaptionDarkLTR {
15
+ font-family: var(--font-stack);
16
+ font-size: 12px;
17
+ font-weight: 400;
18
+ line-height: 16px;
19
+ margin-top: 4px;
20
+ color: #E6E6E6;
21
+ }
22
+
23
+ .inputCaptionErrorLightLTR {
24
+ font-family: var(--font-stack);
25
+ font-size: 12px;
26
+ font-weight: 400;
27
+ line-height: 16px;
28
+ margin-top: 4px;
29
+ color: #990000;
30
+ }
31
+
32
+ .inputCaptionErrorDarkLTR {
33
+ font-family: var(--font-stack);
34
+ font-size: 12px;
35
+ font-weight: 400;
36
+ line-height: 16px;
37
+ margin-top: 4px;
38
+ color: #FFB3B3;
39
+ }
40
+
41
+ .inputCaptionLightRTL {
42
+ font-family: var(--font-stack);
43
+ font-size: 12px;
44
+ font-weight: 400;
45
+ line-height: 16px;
46
+ margin-top: 4px;
47
+ color: #404040;
48
+ text-align: right;
49
+ }
50
+
51
+ .inputCaptionDarkRTL {
52
+ font-family: var(--font-stack);
53
+ font-size: 12px;
54
+ font-weight: 400;
55
+ line-height: 16px;
56
+ margin-top: 4px;
57
+ color: #E6E6E6;
58
+ text-align: right;
59
+ }
60
+
61
+ .inputCaptionErrorLightRTL {
62
+ font-family: var(--font-stack);
63
+ font-size: 12px;
64
+ font-weight: 400;
65
+ line-height: 16px;
66
+ margin-top: 4px;
67
+ color: #990000;
68
+ text-align: right;
69
+ }
70
+
71
+ .inputCaptionErrorDarkRTL {
72
+ font-family: var(--font-stack);
73
+ font-size: 12px;
74
+ font-weight: 400;
75
+ line-height: 16px;
76
+ margin-top: 4px;
77
+ color: #FFB3B3;
78
+ text-align: right;
79
+ }
@@ -0,0 +1,72 @@
1
+ import { h } from "@stencil/core";
2
+ import { SearchIconLight, SearchIconDark, SearchIconLightError, SearchIconDarkError, } from "../../assets/SearchIcons";
3
+ export class ScInputIcon {
4
+ constructor() {
5
+ this.error = undefined;
6
+ this.rightToLeftOrientation = false;
7
+ this.theme = 'light';
8
+ }
9
+ isLightTheme() {
10
+ return this.theme === 'light';
11
+ }
12
+ render() {
13
+ return this.error ? (h("div", { class: this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR' }, this.isLightTheme ? h(SearchIconLightError, null) : h(SearchIconDarkError, null))) : (h("div", { class: this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR' }, this.isLightTheme ? h(SearchIconLight, null) : h(SearchIconDark, null)));
14
+ }
15
+ static get is() { return "sc-input-icon"; }
16
+ static get encapsulation() { return "shadow"; }
17
+ static get originalStyleUrls() {
18
+ return {
19
+ "$": ["sc-input-icon.module.scss"]
20
+ };
21
+ }
22
+ static get styleUrls() {
23
+ return {
24
+ "$": ["sc-input-icon.module.css"]
25
+ };
26
+ }
27
+ static get properties() {
28
+ return {
29
+ "error": {
30
+ "type": "boolean",
31
+ "mutable": false,
32
+ "complexType": {
33
+ "original": "boolean",
34
+ "resolved": "boolean",
35
+ "references": {}
36
+ },
37
+ "required": false,
38
+ "optional": true,
39
+ "docs": {
40
+ "tags": [],
41
+ "text": ""
42
+ },
43
+ "attribute": "error",
44
+ "reflect": false
45
+ },
46
+ "rightToLeftOrientation": {
47
+ "type": "boolean",
48
+ "mutable": false,
49
+ "complexType": {
50
+ "original": "boolean",
51
+ "resolved": "boolean",
52
+ "references": {}
53
+ },
54
+ "required": false,
55
+ "optional": false,
56
+ "docs": {
57
+ "tags": [],
58
+ "text": ""
59
+ },
60
+ "attribute": "right-to-left-orientation",
61
+ "reflect": false,
62
+ "defaultValue": "false"
63
+ }
64
+ };
65
+ }
66
+ static get states() {
67
+ return {
68
+ "theme": {}
69
+ };
70
+ }
71
+ }
72
+ //# sourceMappingURL=sc-input-icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sc-input-icon.js","sourceRoot":"","sources":["../../../src/components/sc-input-icon/sc-input-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE1D,OAAO,EACL,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAO7B,MAAM,OAAO,WAAW;;;sCAEW,KAAK;qBACrB,OAAO;;IAEhB,YAAY;QAClB,OAAO,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC;IAChC,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAClB,WACE,KAAK,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,IAEnE,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAAC,oBAAoB,OAAG,CAAC,CAAC,CAAC,EAAC,mBAAmB,OAAG,CACnE,CACP,CAAC,CAAC,CAAC,CACF,WACE,KAAK,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,IAEnE,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAAC,eAAe,OAAG,CAAC,CAAC,CAAC,EAAC,cAAc,OAAG,CACzD,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, State } from '@stencil/core';\n\nimport {\n SearchIconLight,\n SearchIconDark,\n SearchIconLightError,\n SearchIconDarkError,\n} from '@assets/SearchIcons';\n\n@Component({\n tag: 'sc-input-icon',\n styleUrl: 'sc-input-icon.module.scss',\n shadow: true,\n})\nexport class ScInputIcon {\n @Prop() error?: boolean;\n @Prop() rightToLeftOrientation = false;\n @State() theme = 'light';\n\n private isLightTheme() {\n return this.theme === 'light';\n }\n\n render() {\n return this.error ? (\n <div\n class={this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR'}\n >\n {this.isLightTheme ? <SearchIconLightError /> : <SearchIconDarkError />}\n </div>\n ) : (\n <div\n class={this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR'}\n >\n {this.isLightTheme ? <SearchIconLight /> : <SearchIconDark />}\n </div>\n );\n }\n}\n"]}
@@ -0,0 +1,19 @@
1
+ :root {
2
+ --font-stack: Helvetica, Arial, sans-serif;
3
+ }
4
+
5
+ .inputIconLTR {
6
+ height: 20px;
7
+ left: 10px;
8
+ position: absolute;
9
+ top: 11px;
10
+ width: 20px;
11
+ }
12
+
13
+ .inputIconRTL {
14
+ height: 20px;
15
+ position: absolute;
16
+ right: 10px;
17
+ top: 11px;
18
+ width: 20px;
19
+ }
@@ -0,0 +1,74 @@
1
+ import { h } from "@stencil/core";
2
+ import classNames from "classnames";
3
+ export class ScInputLabel {
4
+ constructor() {
5
+ this.inputLabelClassName = '';
6
+ this.label = 'Enter Search';
7
+ this.theme = 'light';
8
+ }
9
+ isLightTheme() {
10
+ return this.theme === 'light';
11
+ }
12
+ render() {
13
+ const labelStyle = this.isLightTheme ? 'labelLight' : 'labelDark';
14
+ return (h("label", { key: 'd6f4e489c05903a0b27266df9a22b5fe5ecd57f3', class: classNames(labelStyle, this.inputLabelClassName), htmlFor: 'searchcraft-input-id' }, this.label));
15
+ }
16
+ static get is() { return "sc-input-label"; }
17
+ static get encapsulation() { return "shadow"; }
18
+ static get originalStyleUrls() {
19
+ return {
20
+ "$": ["sc-input-label.module.scss"]
21
+ };
22
+ }
23
+ static get styleUrls() {
24
+ return {
25
+ "$": ["sc-input-label.module.css"]
26
+ };
27
+ }
28
+ static get properties() {
29
+ return {
30
+ "inputLabelClassName": {
31
+ "type": "string",
32
+ "mutable": false,
33
+ "complexType": {
34
+ "original": "string",
35
+ "resolved": "string",
36
+ "references": {}
37
+ },
38
+ "required": false,
39
+ "optional": true,
40
+ "docs": {
41
+ "tags": [],
42
+ "text": ""
43
+ },
44
+ "attribute": "input-label-class-name",
45
+ "reflect": false,
46
+ "defaultValue": "''"
47
+ },
48
+ "label": {
49
+ "type": "string",
50
+ "mutable": false,
51
+ "complexType": {
52
+ "original": "string",
53
+ "resolved": "string",
54
+ "references": {}
55
+ },
56
+ "required": false,
57
+ "optional": false,
58
+ "docs": {
59
+ "tags": [],
60
+ "text": ""
61
+ },
62
+ "attribute": "label",
63
+ "reflect": false,
64
+ "defaultValue": "'Enter Search'"
65
+ }
66
+ };
67
+ }
68
+ static get states() {
69
+ return {
70
+ "theme": {}
71
+ };
72
+ }
73
+ }
74
+ //# sourceMappingURL=sc-input-label.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sc-input-label.js","sourceRoot":"","sources":["../../../src/components/sc-input-label/sc-input-label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,UAAU,MAAM,YAAY,CAAC;AAOpC,MAAM,OAAO,YAAY;;mCACQ,EAAE;qBACjB,cAAc;qBACb,OAAO;;IAEhB,YAAY;QAClB,OAAO,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC;IAChC,CAAC;IAED,MAAM;QACJ,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC;QAClE,OAAO,CACL,8DACE,KAAK,EAAE,UAAU,CAAC,UAAU,EAAE,IAAI,CAAC,mBAAmB,CAAC,EACvD,OAAO,EAAC,sBAAsB,IAE7B,IAAI,CAAC,KAAK,CACL,CACT,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, State } from '@stencil/core';\nimport classNames from 'classnames';\n\n@Component({\n tag: 'sc-input-label',\n styleUrl: 'sc-input-label.module.scss',\n shadow: true,\n})\nexport class ScInputLabel {\n @Prop() inputLabelClassName? = '';\n @Prop() label = 'Enter Search';\n @State() theme = 'light';\n\n private isLightTheme() {\n return this.theme === 'light';\n }\n\n render() {\n const labelStyle = this.isLightTheme ? 'labelLight' : 'labelDark';\n return (\n <label\n class={classNames(labelStyle, this.inputLabelClassName)}\n htmlFor='searchcraft-input-id'\n >\n {this.label}\n </label>\n );\n }\n}\n"]}
@@ -0,0 +1,21 @@
1
+ :root {
2
+ --font-stack: Helvetica, Arial, sans-serif;
3
+ }
4
+
5
+ .labelLight {
6
+ font-family: var(--font-stack);
7
+ font-size: 12px;
8
+ font-weight: 400;
9
+ line-height: 16px;
10
+ margin-top: 4px;
11
+ color: #292929;
12
+ }
13
+
14
+ .labelDark {
15
+ font-family: var(--font-stack);
16
+ font-size: 12px;
17
+ font-weight: 400;
18
+ line-height: 16px;
19
+ margin-top: 4px;
20
+ color: #FFF;
21
+ }
@@ -0,0 +1,19 @@
1
+ import { h } from "@stencil/core";
2
+ export class ScSpinnerDark {
3
+ render() {
4
+ return (h("div", { key: '201b6ffa04c9ad69cb169dd385e25289bae6f98d', class: 'spinnerContainer' }, h("div", { key: 'e20614e8266fe57882f0ada0c210bb0b05e0fe99', class: 'spinnerDark' })));
5
+ }
6
+ static get is() { return "sc-spinner-dark"; }
7
+ static get encapsulation() { return "shadow"; }
8
+ static get originalStyleUrls() {
9
+ return {
10
+ "$": ["sc-spinner-dark.module.scss"]
11
+ };
12
+ }
13
+ static get styleUrls() {
14
+ return {
15
+ "$": ["sc-spinner-dark.module.css"]
16
+ };
17
+ }
18
+ }
19
+ //# sourceMappingURL=sc-spinner-dark.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sc-spinner-dark.js","sourceRoot":"","sources":["../../../src/components/sc-spinner-dark/sc-spinner-dark.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAO7C,MAAM,OAAO,aAAa;IACxB,MAAM;QACJ,OAAO,CACL,4DAAK,KAAK,EAAC,kBAAkB;YAC3B,4DAAK,KAAK,EAAC,aAAa,GAAG,CACvB,CACP,CAAC;IACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import { Component, h } from '@stencil/core';\n\n@Component({\n tag: 'sc-spinner-dark',\n styleUrl: 'sc-spinner-dark.module.scss',\n shadow: true,\n})\nexport class ScSpinnerDark {\n render() {\n return (\n <div class='spinnerContainer'>\n <div class='spinnerDark' />\n </div>\n );\n }\n}\n"]}
@@ -0,0 +1,35 @@
1
+ .spinnerContainer {
2
+ background-color: transparent;
3
+ height: 20px;
4
+ width: 20px;
5
+ }
6
+
7
+ .spinnerDark {
8
+ height: 100%;
9
+ width: 100%;
10
+ background: conic-gradient(#000 50%, #FFFFFF);
11
+ clip-path: circle(50%);
12
+ mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0) 6.6666666667px, rgb(0, 0, 0) 6.6666666667px);
13
+ animation: spinning 1s linear infinite;
14
+ }
15
+
16
+ .spinnerLight {
17
+ height: 100%;
18
+ width: 100%;
19
+ background: conic-gradient(#737373 50%, #FFFFFF);
20
+ clip-path: circle(50%);
21
+ mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0) 6.6666666667px, rgb(0, 0, 0) 6.6666666667px);
22
+ animation: spinning 1s linear infinite;
23
+ }
24
+
25
+ @keyframes spinning {
26
+ 0% {
27
+ transform: rotate(0deg);
28
+ }
29
+ 50% {
30
+ transform: rotate(180deg);
31
+ }
32
+ 100% {
33
+ transform: rotate(360deg);
34
+ }
35
+ }