@searchcraft/javascript-sdk 0.2.8 → 0.3.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.
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/index-5b0b9d4c.js +84 -0
- package/dist/cjs/index-5b0b9d4c.js.map +1 -0
- package/dist/cjs/index-6c5282a0.js +1279 -0
- package/dist/cjs/index-6c5282a0.js.map +1 -0
- package/dist/cjs/index.cjs.js +16 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +17 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/searchcraft-auto-search-form_19.cjs.entry.js +861 -0
- package/dist/cjs/searchcraft-auto-search-form_19.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-base-search-form.cjs.entry.js +64 -0
- package/dist/cjs/searchcraft-base-search-form.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-button-icon.cjs.entry.js +18 -0
- package/dist/cjs/searchcraft-button-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-button.cjs.entry.js +37 -0
- package/dist/cjs/searchcraft-button.cjs.entry.js.map +1 -0
- package/dist/cjs/searchcraft-javascript-sdk.cjs.js +27 -0
- package/dist/cjs/searchcraft-javascript-sdk.cjs.js.map +1 -0
- package/dist/cjs/store-f3bec622.js +406 -0
- package/dist/cjs/store-f3bec622.js.map +1 -0
- package/dist/collection/assets/searchcraft-button-icons.js +9 -0
- package/dist/collection/assets/searchcraft-button-icons.js.map +1 -0
- package/dist/{searchcraft-javascript-sdk/searchcraft-check-icon.entry.js → collection/assets/searchcraft-check-icon.js} +6 -11
- package/dist/collection/assets/searchcraft-check-icon.js.map +1 -0
- package/dist/collection/assets/searchcraft-clear-icon-set.js +45 -0
- package/dist/collection/assets/searchcraft-clear-icon-set.js.map +1 -0
- package/dist/{searchcraft-javascript-sdk/searchcraft-dash-icon.entry.js → collection/assets/searchcraft-dash-icon.js} +6 -11
- package/dist/collection/assets/searchcraft-dash-icon.js.map +1 -0
- package/dist/collection/assets/searchcraft-search-icon-set.js +84 -0
- package/dist/collection/assets/searchcraft-search-icon-set.js.map +1 -0
- package/dist/collection/collection-manifest.json +33 -0
- package/dist/collection/components/searchcraft-auto-search-form/searchcraft-auto-search-form.js +379 -0
- package/dist/collection/components/searchcraft-auto-search-form/searchcraft-auto-search-form.js.map +1 -0
- package/dist/collection/components/searchcraft-auto-search-form/searchcraft-auto-search-form.module.css +15 -0
- package/dist/collection/components/searchcraft-base-search-form/searchcraft-base-search-form.js +168 -0
- package/dist/collection/components/searchcraft-base-search-form/searchcraft-base-search-form.js.map +1 -0
- package/dist/collection/components/searchcraft-base-search-form/searchcraft-base-search-form.module.css +18 -0
- package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.js +329 -0
- package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.js.map +1 -0
- package/dist/collection/components/searchcraft-base-search-result/searchcraft-base-search-result.module.css +224 -0
- package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js +268 -0
- package/dist/{searchcraft-javascript-sdk/searchcraft-base-search-results.entry.js.map → collection/components/searchcraft-base-search-results/searchcraft-base-search-results.js.map} +1 -1
- package/dist/collection/components/searchcraft-base-search-results/searchcraft-base-search-results.module.css +47 -0
- package/dist/collection/components/searchcraft-button/searchcraft-button.js +137 -0
- package/dist/collection/components/searchcraft-button/searchcraft-button.js.map +1 -0
- package/dist/collection/components/searchcraft-button/searchcraft-button.module.css +82 -0
- package/dist/collection/components/searchcraft-clear-input-button/searchcraft-clear-input-button.js +95 -0
- package/dist/collection/components/searchcraft-clear-input-button/searchcraft-clear-input-button.js.map +1 -0
- package/dist/collection/components/searchcraft-clear-input-button/searchcraft-clear-input-button.module.css +33 -0
- package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.js +64 -0
- package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.js.map +1 -0
- package/dist/collection/components/searchcraft-error-message/searchcraft-error-message.module.css +21 -0
- package/dist/{searchcraft-javascript-sdk/searchcraft-filters-list.entry.js → collection/components/searchcraft-filters-list/searchcraft-filters-list.js} +72 -20
- package/dist/collection/components/searchcraft-filters-list/searchcraft-filters-list.js.map +1 -0
- package/dist/collection/components/searchcraft-filters-list/searchcraft-filters-list.module.css +110 -0
- package/dist/collection/components/searchcraft-input/searchcraft-input.js +356 -0
- package/dist/collection/components/searchcraft-input/searchcraft-input.js.map +1 -0
- package/dist/collection/components/searchcraft-input/searchcraft-input.module.css +249 -0
- package/dist/collection/components/searchcraft-input-caption/searchcraft-input-caption.js +122 -0
- package/dist/collection/components/searchcraft-input-caption/searchcraft-input-caption.js.map +1 -0
- package/dist/collection/components/searchcraft-input-caption/searchcraft-input-caption.module.css +79 -0
- package/dist/collection/components/searchcraft-input-icon/searchcraft-input-icon.js +109 -0
- package/dist/collection/components/searchcraft-input-icon/searchcraft-input-icon.js.map +1 -0
- package/dist/collection/components/searchcraft-input-icon/searchcraft-input-icon.module.css +17 -0
- package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.js +76 -0
- package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.js.map +1 -0
- package/dist/collection/components/searchcraft-input-label/searchcraft-input-label.module.css +21 -0
- package/dist/{searchcraft-javascript-sdk/searchcraft-results-info.entry.js → collection/components/searchcraft-results-info/searchcraft-results-info.js} +26 -16
- package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.js.map +1 -0
- package/dist/collection/components/searchcraft-results-info/searchcraft-results-info.module.css +15 -0
- package/dist/collection/components/searchcraft-slider/searchcraft-slider.js +128 -0
- package/dist/collection/components/searchcraft-slider/searchcraft-slider.js.map +1 -0
- package/dist/collection/components/searchcraft-slider/searchcraft-slider.module.css +68 -0
- package/dist/collection/components/searchcraft-spinner-dark/searchcraft-spinner-dark.js +19 -0
- package/dist/collection/components/searchcraft-spinner-dark/searchcraft-spinner-dark.js.map +1 -0
- package/dist/collection/components/searchcraft-spinner-dark/searchcraft-spinner-dark.module.css +35 -0
- package/dist/collection/components/searchcraft-spinner-light/searchcraft-spinner-light.js +19 -0
- package/dist/collection/components/searchcraft-spinner-light/searchcraft-spinner-light.js.map +1 -0
- package/dist/collection/components/searchcraft-spinner-light/searchcraft-spinner-light.module.css +26 -0
- package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.js +107 -0
- package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.js.map +1 -0
- package/dist/collection/components/searchcraft-toggle-button/searchcraft-toggle-button.module.css +31 -0
- package/dist/collection/index.js +12 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/provider/store.js +98 -0
- package/dist/collection/provider/store.js.map +1 -0
- package/dist/collection/utils/utils.js +85 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/index.js +62 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/p-07edaa9b.js +67 -0
- package/dist/components/p-07edaa9b.js.map +1 -0
- package/dist/components/p-27a6ca57.js +149 -0
- package/dist/components/p-27a6ca57.js.map +1 -0
- package/dist/components/p-4468fba3.js +61 -0
- package/dist/components/p-4468fba3.js.map +1 -0
- package/dist/components/p-498c7ef9.js +40 -0
- package/dist/components/p-498c7ef9.js.map +1 -0
- package/dist/{searchcraft-javascript-sdk/index-d6567b9c.js → components/p-5cdc6210.js} +2 -10
- package/dist/components/p-5cdc6210.js.map +1 -0
- package/dist/{searchcraft-javascript-sdk/searchcraft-input-caption.entry.js → components/p-6237f03e.js} +31 -10
- package/dist/components/p-6237f03e.js.map +1 -0
- package/dist/{searchcraft-javascript-sdk/searchcraft-clear-icon-set.entry.js → components/p-70722ab2.js} +24 -7
- package/dist/components/p-70722ab2.js.map +1 -0
- package/dist/components/p-7498e493.js +1113 -0
- package/dist/components/p-7498e493.js.map +1 -0
- package/dist/{searchcraft-javascript-sdk/utils-9f198636.js → components/p-7d1bcd2d.js} +2 -2
- package/dist/components/p-7d1bcd2d.js.map +1 -0
- package/dist/components/p-8c38185e.js +53 -0
- package/dist/components/p-8c38185e.js.map +1 -0
- package/dist/{searchcraft-javascript-sdk/searchcraft-search-icon-set.entry.js → components/p-a3bd1bc8.js} +26 -7
- package/dist/components/p-a3bd1bc8.js.map +1 -0
- package/dist/components/p-ae84b899.js +48 -0
- package/dist/components/p-ae84b899.js.map +1 -0
- package/dist/components/p-bc3f9025.js +33 -0
- package/dist/components/p-bc3f9025.js.map +1 -0
- package/dist/components/p-bfb22305.js +33 -0
- package/dist/components/p-bfb22305.js.map +1 -0
- package/dist/{searchcraft-javascript-sdk/searchcraft-base-search-result.entry.js → components/p-c31274dd.js} +37 -8
- package/dist/components/p-c31274dd.js.map +1 -0
- package/dist/components/p-d3187f5a.js +29 -0
- package/dist/components/p-d3187f5a.js.map +1 -0
- package/dist/components/p-e5471fcf.js +29 -0
- package/dist/components/p-e5471fcf.js.map +1 -0
- package/dist/components/p-ff049f0a.js +313 -0
- package/dist/components/p-ff049f0a.js.map +1 -0
- package/dist/components/searchcraft-auto-search-form.js +221 -0
- package/dist/components/searchcraft-auto-search-form.js.map +1 -0
- package/dist/components/searchcraft-base-search-form.js +152 -0
- package/dist/components/searchcraft-base-search-form.js.map +1 -0
- package/dist/components/searchcraft-base-search-result.js +8 -0
- package/dist/components/searchcraft-base-search-result.js.map +1 -0
- package/dist/{searchcraft-javascript-sdk/searchcraft-base-search-results.entry.js → components/searchcraft-base-search-results.js} +53 -11
- package/dist/components/searchcraft-base-search-results.js.map +1 -0
- package/dist/components/searchcraft-button-icon.js +32 -0
- package/dist/components/searchcraft-button-icon.js.map +1 -0
- package/dist/components/searchcraft-button.js +8 -0
- package/dist/components/searchcraft-button.js.map +1 -0
- package/dist/components/searchcraft-check-icon.js +8 -0
- package/dist/components/searchcraft-check-icon.js.map +1 -0
- package/dist/components/searchcraft-clear-icon-set.js +8 -0
- package/dist/components/searchcraft-clear-icon-set.js.map +1 -0
- package/dist/components/searchcraft-clear-input-button.js +8 -0
- package/dist/components/searchcraft-clear-input-button.js.map +1 -0
- package/dist/components/searchcraft-dash-icon.js +8 -0
- package/dist/components/searchcraft-dash-icon.js.map +1 -0
- package/dist/components/searchcraft-error-message.js +8 -0
- package/dist/components/searchcraft-error-message.js.map +1 -0
- package/dist/components/searchcraft-filters-list.js +155 -0
- package/dist/components/searchcraft-filters-list.js.map +1 -0
- package/dist/components/searchcraft-input-caption.js +8 -0
- package/dist/components/searchcraft-input-caption.js.map +1 -0
- package/dist/components/searchcraft-input-icon.js +8 -0
- package/dist/components/searchcraft-input-icon.js.map +1 -0
- package/dist/components/searchcraft-input-label.js +8 -0
- package/dist/components/searchcraft-input-label.js.map +1 -0
- package/dist/components/searchcraft-input.js +8 -0
- package/dist/components/searchcraft-input.js.map +1 -0
- package/dist/components/searchcraft-results-info.js +63 -0
- package/dist/components/searchcraft-results-info.js.map +1 -0
- package/dist/components/searchcraft-search-icon-set.js +8 -0
- package/dist/components/searchcraft-search-icon-set.js.map +1 -0
- package/dist/{searchcraft-javascript-sdk/searchcraft-slider.entry.js → components/searchcraft-slider.js} +37 -12
- package/dist/components/searchcraft-slider.js.map +1 -0
- package/dist/components/searchcraft-spinner-dark.js +8 -0
- package/dist/components/searchcraft-spinner-dark.js.map +1 -0
- package/dist/components/searchcraft-spinner-light.js +8 -0
- package/dist/components/searchcraft-spinner-light.js.map +1 -0
- package/dist/{searchcraft-javascript-sdk/searchcraft-toggle-button.entry.js → components/searchcraft-toggle-button.js} +48 -11
- package/dist/components/searchcraft-toggle-button.js.map +1 -0
- package/dist/esm/index-0ac5bb53.js +1251 -0
- package/dist/esm/index-0ac5bb53.js.map +1 -0
- package/dist/esm/index-72ac5051.js +82 -0
- package/dist/esm/index-72ac5051.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/searchcraft-auto-search-form_19.entry.js +839 -0
- package/dist/esm/searchcraft-auto-search-form_19.entry.js.map +1 -0
- package/dist/{searchcraft-javascript-sdk → esm}/searchcraft-base-search-form.entry.js +4 -5
- package/dist/esm/searchcraft-base-search-form.entry.js.map +1 -0
- package/dist/{searchcraft-javascript-sdk → esm}/searchcraft-button-icon.entry.js +1 -1
- package/dist/esm/searchcraft-button-icon.entry.js.map +1 -0
- package/dist/{searchcraft-javascript-sdk → esm}/searchcraft-button.entry.js +4 -4
- package/dist/esm/searchcraft-button.entry.js.map +1 -0
- package/dist/esm/searchcraft-javascript-sdk.js +22 -0
- package/dist/esm/searchcraft-javascript-sdk.js.map +1 -0
- package/dist/esm/store-6af9ea01.js +396 -0
- package/dist/esm/store-6af9ea01.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +1 -0
- package/dist/loader/index.cjs.js +1 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +1 -0
- package/dist/loader/index.js +2 -0
- package/dist/loader/package.json +11 -0
- package/dist/searchcraft-javascript-sdk/index.esm.js +1 -14
- package/dist/searchcraft-javascript-sdk/index.esm.js.map +1 -1
- package/dist/searchcraft-javascript-sdk/p-05416a3e.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-05416a3e.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-0880cfbb.js +3 -0
- package/dist/searchcraft-javascript-sdk/p-0880cfbb.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-1ab836bf.js +11 -0
- package/dist/searchcraft-javascript-sdk/p-1ab836bf.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-3cb77ee1.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-3cb77ee1.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-5cdc6210.js +7 -0
- package/dist/searchcraft-javascript-sdk/p-5cdc6210.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-5ec960bd.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-5ec960bd.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-72382d90.entry.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-72382d90.entry.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/p-e1255160.js +2 -0
- package/dist/searchcraft-javascript-sdk/p-e1255160.js.map +1 -0
- package/dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js +1 -48
- package/dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js.map +1 -1
- package/dist/types/components/searchcraft-toggle-button/searchcraft-toggle-button.d.ts +3 -1
- package/package.json +1 -1
- package/dist/searchcraft-javascript-sdk/_commonjsHelpers-63cbe26c.js +0 -34
- package/dist/searchcraft-javascript-sdk/_commonjsHelpers-63cbe26c.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/index-8211f330.js +0 -3043
- package/dist/searchcraft-javascript-sdk/index-8211f330.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/index-d6567b9c.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-auto-search-form.entry.js +0 -127
- package/dist/searchcraft-javascript-sdk/searchcraft-auto-search-form.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-base-search-form.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-base-search-result.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-button-icon.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-button.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-check-icon.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-clear-icon-set.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-clear-input-button.entry.js +0 -30
- package/dist/searchcraft-javascript-sdk/searchcraft-clear-input-button.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-dash-icon.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-error-message.entry.js +0 -22
- package/dist/searchcraft-javascript-sdk/searchcraft-error-message.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-filters-list.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-input-caption.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-input-icon.entry.js +0 -25
- package/dist/searchcraft-javascript-sdk/searchcraft-input-icon.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-input-label.entry.js +0 -29
- package/dist/searchcraft-javascript-sdk/searchcraft-input-label.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-input.entry.js +0 -74
- package/dist/searchcraft-javascript-sdk/searchcraft-input.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-results-info.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-search-icon-set.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-slider.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-spinner-dark.entry.js +0 -17
- package/dist/searchcraft-javascript-sdk/searchcraft-spinner-dark.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-spinner-light.entry.js +0 -17
- package/dist/searchcraft-javascript-sdk/searchcraft-spinner-light.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/searchcraft-toggle-button.entry.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/shadow-css-423dab2c.js +0 -334
- package/dist/searchcraft-javascript-sdk/shadow-css-423dab2c.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/store-08ee97f6.js +0 -3073
- package/dist/searchcraft-javascript-sdk/store-08ee97f6.js.map +0 -1
- package/dist/searchcraft-javascript-sdk/utils-9f198636.js.map +0 -1
- /package/dist/{searchcraft-javascript-sdk → esm}/app-globals-0f993ce5.js +0 -0
- /package/dist/{searchcraft-javascript-sdk → esm}/app-globals-0f993ce5.js.map +0 -0
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--font-stack: Helvetica, Arial, sans-serif;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.inputContainerLTR {
|
|
6
|
+
position: relative;
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.inputContainerRTL {
|
|
11
|
+
position: relative;
|
|
12
|
+
width: 100%;
|
|
13
|
+
margin-left: 8px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.inputLightLTR {
|
|
17
|
+
border: none;
|
|
18
|
+
border-radius: 8px;
|
|
19
|
+
font-family: "Brygada 1918";
|
|
20
|
+
outline: none;
|
|
21
|
+
padding-bottom: 15px;
|
|
22
|
+
padding-top: 15px;
|
|
23
|
+
width: 100%;
|
|
24
|
+
background-color: #EDEDED;
|
|
25
|
+
color: #292929;
|
|
26
|
+
margin-right: 8px;
|
|
27
|
+
padding-left: 36px;
|
|
28
|
+
padding-right: 16px;
|
|
29
|
+
}
|
|
30
|
+
.inputLightLTR::placeholder {
|
|
31
|
+
font-family: "Brygada 1918";
|
|
32
|
+
font-size: 16px;
|
|
33
|
+
font-weight: 600;
|
|
34
|
+
}
|
|
35
|
+
.inputLightLTR::placeholder {
|
|
36
|
+
color: #737373;
|
|
37
|
+
}
|
|
38
|
+
.inputLightLTR:focus {
|
|
39
|
+
outline: 2px solid #000;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.inputDarkLTR {
|
|
43
|
+
border: none;
|
|
44
|
+
border-radius: 8px;
|
|
45
|
+
font-family: "Brygada 1918";
|
|
46
|
+
outline: none;
|
|
47
|
+
padding-bottom: 15px;
|
|
48
|
+
padding-top: 15px;
|
|
49
|
+
width: 100%;
|
|
50
|
+
background-color: #1A1A1A;
|
|
51
|
+
color: #FFF;
|
|
52
|
+
margin-right: 8px;
|
|
53
|
+
padding-left: 36px;
|
|
54
|
+
padding-right: 16px;
|
|
55
|
+
}
|
|
56
|
+
.inputDarkLTR::placeholder {
|
|
57
|
+
font-family: "Brygada 1918";
|
|
58
|
+
font-size: 16px;
|
|
59
|
+
font-weight: 600;
|
|
60
|
+
}
|
|
61
|
+
.inputDarkLTR::placeholder {
|
|
62
|
+
color: #BFBFBF;
|
|
63
|
+
}
|
|
64
|
+
.inputDarkLTR:focus {
|
|
65
|
+
outline: 2px solid #FFF;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.inputErrorLightLTR {
|
|
69
|
+
border: none;
|
|
70
|
+
border-radius: 8px;
|
|
71
|
+
font-family: "Brygada 1918";
|
|
72
|
+
outline: none;
|
|
73
|
+
padding-bottom: 15px;
|
|
74
|
+
padding-top: 15px;
|
|
75
|
+
width: 100%;
|
|
76
|
+
background-color: #EDEDED;
|
|
77
|
+
color: #292929;
|
|
78
|
+
outline: 2px solid #c00;
|
|
79
|
+
margin-right: 8px;
|
|
80
|
+
padding-left: 36px;
|
|
81
|
+
padding-right: 16px;
|
|
82
|
+
}
|
|
83
|
+
.inputErrorLightLTR::placeholder {
|
|
84
|
+
font-family: "Brygada 1918";
|
|
85
|
+
font-size: 16px;
|
|
86
|
+
font-weight: 600;
|
|
87
|
+
}
|
|
88
|
+
.inputErrorLightLTR::placeholder {
|
|
89
|
+
color: #737373;
|
|
90
|
+
}
|
|
91
|
+
.inputErrorLightLTR:focus {
|
|
92
|
+
outline: 2px solid #000;
|
|
93
|
+
}
|
|
94
|
+
.inputErrorLightLTR:focus-visible {
|
|
95
|
+
outline: 2px solid #c00;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.inputErrorDarkLTR {
|
|
99
|
+
border: none;
|
|
100
|
+
border-radius: 8px;
|
|
101
|
+
font-family: "Brygada 1918";
|
|
102
|
+
outline: none;
|
|
103
|
+
padding-bottom: 15px;
|
|
104
|
+
padding-top: 15px;
|
|
105
|
+
width: 100%;
|
|
106
|
+
background-color: #1A1A1A;
|
|
107
|
+
color: #FFF;
|
|
108
|
+
outline: 2px solid #FFB3B3;
|
|
109
|
+
margin-right: 8px;
|
|
110
|
+
padding-left: 36px;
|
|
111
|
+
padding-right: 16px;
|
|
112
|
+
}
|
|
113
|
+
.inputErrorDarkLTR::placeholder {
|
|
114
|
+
font-family: "Brygada 1918";
|
|
115
|
+
font-size: 16px;
|
|
116
|
+
font-weight: 600;
|
|
117
|
+
}
|
|
118
|
+
.inputErrorDarkLTR::placeholder {
|
|
119
|
+
color: #BFBFBF;
|
|
120
|
+
}
|
|
121
|
+
.inputErrorDarkLTR:focus {
|
|
122
|
+
outline: 2px solid #FFF;
|
|
123
|
+
}
|
|
124
|
+
.inputErrorDarkLTR:focus-visible {
|
|
125
|
+
outline: 2px solid #FFB3B3;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.inputLightRTL {
|
|
129
|
+
border: none;
|
|
130
|
+
border-radius: 8px;
|
|
131
|
+
font-family: "Brygada 1918";
|
|
132
|
+
outline: none;
|
|
133
|
+
padding-bottom: 15px;
|
|
134
|
+
padding-top: 15px;
|
|
135
|
+
width: 100%;
|
|
136
|
+
background-color: #EDEDED;
|
|
137
|
+
color: #292929;
|
|
138
|
+
margin-left: 8px;
|
|
139
|
+
padding-left: 16px;
|
|
140
|
+
padding-right: 36px;
|
|
141
|
+
text-align: right;
|
|
142
|
+
}
|
|
143
|
+
.inputLightRTL::placeholder {
|
|
144
|
+
font-family: "Brygada 1918";
|
|
145
|
+
font-size: 16px;
|
|
146
|
+
font-weight: 600;
|
|
147
|
+
}
|
|
148
|
+
.inputLightRTL::placeholder {
|
|
149
|
+
color: #737373;
|
|
150
|
+
}
|
|
151
|
+
.inputLightRTL:focus {
|
|
152
|
+
outline: 2px solid #000;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.inputDarkRTL {
|
|
156
|
+
border: none;
|
|
157
|
+
border-radius: 8px;
|
|
158
|
+
font-family: "Brygada 1918";
|
|
159
|
+
outline: none;
|
|
160
|
+
padding-bottom: 15px;
|
|
161
|
+
padding-top: 15px;
|
|
162
|
+
width: 100%;
|
|
163
|
+
background-color: #1A1A1A;
|
|
164
|
+
color: #FFF;
|
|
165
|
+
margin-left: 8px;
|
|
166
|
+
padding-left: 16px;
|
|
167
|
+
padding-right: 36px;
|
|
168
|
+
text-align: right;
|
|
169
|
+
}
|
|
170
|
+
.inputDarkRTL::placeholder {
|
|
171
|
+
font-family: "Brygada 1918";
|
|
172
|
+
font-size: 16px;
|
|
173
|
+
font-weight: 600;
|
|
174
|
+
}
|
|
175
|
+
.inputDarkRTL::placeholder {
|
|
176
|
+
color: #BFBFBF;
|
|
177
|
+
}
|
|
178
|
+
.inputDarkRTL:focus {
|
|
179
|
+
outline: 2px solid #FFF;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.inputErrorLightRTL {
|
|
183
|
+
border: none;
|
|
184
|
+
border-radius: 8px;
|
|
185
|
+
font-family: "Brygada 1918";
|
|
186
|
+
outline: none;
|
|
187
|
+
padding-bottom: 15px;
|
|
188
|
+
padding-top: 15px;
|
|
189
|
+
width: 100%;
|
|
190
|
+
background-color: #EDEDED;
|
|
191
|
+
color: #292929;
|
|
192
|
+
outline: 2px solid #c00;
|
|
193
|
+
margin-left: 8px;
|
|
194
|
+
padding-left: 16px;
|
|
195
|
+
padding-right: 36px;
|
|
196
|
+
text-align: right;
|
|
197
|
+
}
|
|
198
|
+
.inputErrorLightRTL::placeholder {
|
|
199
|
+
font-family: "Brygada 1918";
|
|
200
|
+
font-size: 16px;
|
|
201
|
+
font-weight: 600;
|
|
202
|
+
}
|
|
203
|
+
.inputErrorLightRTL::placeholder {
|
|
204
|
+
color: #737373;
|
|
205
|
+
}
|
|
206
|
+
.inputErrorLightRTL:focus {
|
|
207
|
+
outline: 2px solid #000;
|
|
208
|
+
}
|
|
209
|
+
.inputErrorLightRTL:focus-visible {
|
|
210
|
+
outline: 2px solid #c00;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.inputErrorDarkRTL {
|
|
214
|
+
border: none;
|
|
215
|
+
border-radius: 8px;
|
|
216
|
+
font-family: "Brygada 1918";
|
|
217
|
+
outline: none;
|
|
218
|
+
padding-bottom: 15px;
|
|
219
|
+
padding-top: 15px;
|
|
220
|
+
width: 100%;
|
|
221
|
+
background-color: #1A1A1A;
|
|
222
|
+
color: #FFF;
|
|
223
|
+
outline: 2px solid #FFB3B3;
|
|
224
|
+
margin-left: 8px;
|
|
225
|
+
padding-left: 16px;
|
|
226
|
+
padding-right: 36px;
|
|
227
|
+
text-align: right;
|
|
228
|
+
}
|
|
229
|
+
.inputErrorDarkRTL::placeholder {
|
|
230
|
+
font-family: "Brygada 1918";
|
|
231
|
+
font-size: 16px;
|
|
232
|
+
font-weight: 600;
|
|
233
|
+
}
|
|
234
|
+
.inputErrorDarkRTL::placeholder {
|
|
235
|
+
color: #BFBFBF;
|
|
236
|
+
}
|
|
237
|
+
.inputErrorDarkRTL:focus {
|
|
238
|
+
outline: 2px solid #FFF;
|
|
239
|
+
}
|
|
240
|
+
.inputErrorDarkRTL:focus-visible {
|
|
241
|
+
outline: 2px solid #FFB3B3;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.inputWrapper {
|
|
245
|
+
align-items: center;
|
|
246
|
+
display: flex;
|
|
247
|
+
position: relative;
|
|
248
|
+
width: 100%;
|
|
249
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
export class SearchcraftInputCaption {
|
|
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 "searchcraft-input-caption"; }
|
|
30
|
+
static get encapsulation() { return "shadow"; }
|
|
31
|
+
static get originalStyleUrls() {
|
|
32
|
+
return {
|
|
33
|
+
"$": ["searchcraft-input-caption.module.scss"]
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
static get styleUrls() {
|
|
37
|
+
return {
|
|
38
|
+
"$": ["searchcraft-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=searchcraft-input-caption.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchcraft-input-caption.js","sourceRoot":"","sources":["../../../src/components/searchcraft-input-caption/searchcraft-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,uBAAuB;;;qCAED,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: '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"]}
|
package/dist/collection/components/searchcraft-input-caption/searchcraft-input-caption.module.css
ADDED
|
@@ -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,109 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class SearchcraftInputIcon {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.error = undefined;
|
|
5
|
+
this.height = 20;
|
|
6
|
+
this.rightToLeftOrientation = false;
|
|
7
|
+
this.width = 20;
|
|
8
|
+
this.theme = 'light';
|
|
9
|
+
}
|
|
10
|
+
isLightTheme() {
|
|
11
|
+
return this.theme === 'light';
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return this.error ? (h("div", { class: this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR' }, this.isLightTheme() ? (h("searchcraft-search-icon-set", { height: this.height, type: 'error-light', width: this.width })) : (h("searchcraft-search-icon-set", { height: this.height, type: 'error-dark', width: this.width })))) : (h("div", { class: this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR' }, this.isLightTheme() ? (h("searchcraft-search-icon-set", { height: this.height, type: 'search-light', width: this.width })) : (h("searchcraft-search-icon-set", { height: this.height, type: 'search-dark', width: this.width }))));
|
|
15
|
+
}
|
|
16
|
+
static get is() { return "searchcraft-input-icon"; }
|
|
17
|
+
static get encapsulation() { return "shadow"; }
|
|
18
|
+
static get originalStyleUrls() {
|
|
19
|
+
return {
|
|
20
|
+
"$": ["searchcraft-input-icon.module.scss"]
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
static get styleUrls() {
|
|
24
|
+
return {
|
|
25
|
+
"$": ["searchcraft-input-icon.module.css"]
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
static get properties() {
|
|
29
|
+
return {
|
|
30
|
+
"error": {
|
|
31
|
+
"type": "boolean",
|
|
32
|
+
"mutable": false,
|
|
33
|
+
"complexType": {
|
|
34
|
+
"original": "boolean",
|
|
35
|
+
"resolved": "boolean",
|
|
36
|
+
"references": {}
|
|
37
|
+
},
|
|
38
|
+
"required": false,
|
|
39
|
+
"optional": true,
|
|
40
|
+
"docs": {
|
|
41
|
+
"tags": [],
|
|
42
|
+
"text": ""
|
|
43
|
+
},
|
|
44
|
+
"attribute": "error",
|
|
45
|
+
"reflect": false
|
|
46
|
+
},
|
|
47
|
+
"height": {
|
|
48
|
+
"type": "number",
|
|
49
|
+
"mutable": false,
|
|
50
|
+
"complexType": {
|
|
51
|
+
"original": "number",
|
|
52
|
+
"resolved": "number",
|
|
53
|
+
"references": {}
|
|
54
|
+
},
|
|
55
|
+
"required": false,
|
|
56
|
+
"optional": false,
|
|
57
|
+
"docs": {
|
|
58
|
+
"tags": [],
|
|
59
|
+
"text": ""
|
|
60
|
+
},
|
|
61
|
+
"attribute": "height",
|
|
62
|
+
"reflect": false,
|
|
63
|
+
"defaultValue": "20"
|
|
64
|
+
},
|
|
65
|
+
"rightToLeftOrientation": {
|
|
66
|
+
"type": "boolean",
|
|
67
|
+
"mutable": false,
|
|
68
|
+
"complexType": {
|
|
69
|
+
"original": "boolean",
|
|
70
|
+
"resolved": "boolean",
|
|
71
|
+
"references": {}
|
|
72
|
+
},
|
|
73
|
+
"required": false,
|
|
74
|
+
"optional": false,
|
|
75
|
+
"docs": {
|
|
76
|
+
"tags": [],
|
|
77
|
+
"text": ""
|
|
78
|
+
},
|
|
79
|
+
"attribute": "right-to-left-orientation",
|
|
80
|
+
"reflect": false,
|
|
81
|
+
"defaultValue": "false"
|
|
82
|
+
},
|
|
83
|
+
"width": {
|
|
84
|
+
"type": "number",
|
|
85
|
+
"mutable": false,
|
|
86
|
+
"complexType": {
|
|
87
|
+
"original": "number",
|
|
88
|
+
"resolved": "number",
|
|
89
|
+
"references": {}
|
|
90
|
+
},
|
|
91
|
+
"required": false,
|
|
92
|
+
"optional": false,
|
|
93
|
+
"docs": {
|
|
94
|
+
"tags": [],
|
|
95
|
+
"text": ""
|
|
96
|
+
},
|
|
97
|
+
"attribute": "width",
|
|
98
|
+
"reflect": false,
|
|
99
|
+
"defaultValue": "20"
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
static get states() {
|
|
104
|
+
return {
|
|
105
|
+
"theme": {}
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=searchcraft-input-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchcraft-input-icon.js","sourceRoot":"","sources":["../../../src/components/searchcraft-input-icon/searchcraft-input-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAO1D,MAAM,OAAO,oBAAoB;;;sBAEd,EAAE;sCACc,KAAK;qBACtB,EAAE;qBAED,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,EAAE,CAAC,CAAC,CAAC,CACrB,mCACE,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,IAAI,EAAC,aAAa,EAClB,KAAK,EAAE,IAAI,CAAC,KAAK,GACjB,CACH,CAAC,CAAC,CAAC,CACF,mCACE,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,IAAI,EAAC,YAAY,EACjB,KAAK,EAAE,IAAI,CAAC,KAAK,GACjB,CACH,CACG,CACP,CAAC,CAAC,CAAC,CACF,WACE,KAAK,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,IAEnE,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,CACrB,mCACE,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,IAAI,EAAC,cAAc,EACnB,KAAK,EAAE,IAAI,CAAC,KAAK,GACjB,CACH,CAAC,CAAC,CAAC,CACF,mCACE,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,IAAI,EAAC,aAAa,EAClB,KAAK,EAAE,IAAI,CAAC,KAAK,GACjB,CACH,CACG,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h, State } from '@stencil/core';\n\n@Component({\n tag: 'searchcraft-input-icon',\n styleUrl: 'searchcraft-input-icon.module.scss',\n shadow: true,\n})\nexport class SearchcraftInputIcon {\n @Prop() error?: boolean;\n @Prop() height = 20;\n @Prop() rightToLeftOrientation = false;\n @Prop() width = 20;\n\n @State() theme = 'light';\n\n private isLightTheme() {\n return this.theme === 'light';\n }\n\n render() {\n return this.error ? (\n <div\n class={this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR'}\n >\n {this.isLightTheme() ? (\n <searchcraft-search-icon-set\n height={this.height}\n type='error-light'\n width={this.width}\n />\n ) : (\n <searchcraft-search-icon-set\n height={this.height}\n type='error-dark'\n width={this.width}\n />\n )}\n </div>\n ) : (\n <div\n class={this.rightToLeftOrientation ? 'inputIconRTL' : 'inputIconLTR'}\n >\n {this.isLightTheme() ? (\n <searchcraft-search-icon-set\n height={this.height}\n type='search-light'\n width={this.width}\n />\n ) : (\n <searchcraft-search-icon-set\n height={this.height}\n type='search-dark'\n width={this.width}\n />\n )}\n </div>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import classNames from "classnames";
|
|
3
|
+
export class SearchcraftInputLabel {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.inputLabelClassName = '';
|
|
6
|
+
this.label = undefined;
|
|
7
|
+
this.theme = 'light';
|
|
8
|
+
}
|
|
9
|
+
isLightTheme() {
|
|
10
|
+
return this.theme === 'light';
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
if (!this.label) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
const labelStyle = this.isLightTheme() ? 'labelLight' : 'labelDark';
|
|
17
|
+
return (h("label", { class: classNames(labelStyle, this.inputLabelClassName), htmlFor: 'searchcraft-input-id' }, this.label));
|
|
18
|
+
}
|
|
19
|
+
static get is() { return "searchcraft-input-label"; }
|
|
20
|
+
static get encapsulation() { return "shadow"; }
|
|
21
|
+
static get originalStyleUrls() {
|
|
22
|
+
return {
|
|
23
|
+
"$": ["searchcraft-input-label.module.scss"]
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
static get styleUrls() {
|
|
27
|
+
return {
|
|
28
|
+
"$": ["searchcraft-input-label.module.css"]
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
static get properties() {
|
|
32
|
+
return {
|
|
33
|
+
"inputLabelClassName": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"mutable": false,
|
|
36
|
+
"complexType": {
|
|
37
|
+
"original": "string",
|
|
38
|
+
"resolved": "string",
|
|
39
|
+
"references": {}
|
|
40
|
+
},
|
|
41
|
+
"required": false,
|
|
42
|
+
"optional": true,
|
|
43
|
+
"docs": {
|
|
44
|
+
"tags": [],
|
|
45
|
+
"text": ""
|
|
46
|
+
},
|
|
47
|
+
"attribute": "input-label-class-name",
|
|
48
|
+
"reflect": false,
|
|
49
|
+
"defaultValue": "''"
|
|
50
|
+
},
|
|
51
|
+
"label": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"mutable": false,
|
|
54
|
+
"complexType": {
|
|
55
|
+
"original": "string",
|
|
56
|
+
"resolved": "string",
|
|
57
|
+
"references": {}
|
|
58
|
+
},
|
|
59
|
+
"required": false,
|
|
60
|
+
"optional": true,
|
|
61
|
+
"docs": {
|
|
62
|
+
"tags": [],
|
|
63
|
+
"text": ""
|
|
64
|
+
},
|
|
65
|
+
"attribute": "label",
|
|
66
|
+
"reflect": false
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
static get states() {
|
|
71
|
+
return {
|
|
72
|
+
"theme": {}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=searchcraft-input-label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchcraft-input-label.js","sourceRoot":"","sources":["../../../src/components/searchcraft-input-label/searchcraft-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,qBAAqB;;mCACD,EAAE;;qBAEhB,OAAO;;IAEhB,YAAY;QAClB,OAAO,IAAI,CAAC,KAAK,KAAK,OAAO,CAAC;IAChC,CAAC;IAED,MAAM;QACJ,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;YAChB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC;QACpE,OAAO,CACL,aACE,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: 'searchcraft-input-label',\n styleUrl: 'searchcraft-input-label.module.scss',\n shadow: true,\n})\nexport class SearchcraftInputLabel {\n @Prop() inputLabelClassName? = '';\n @Prop() label?: string;\n @State() theme = 'light';\n\n private isLightTheme() {\n return this.theme === 'light';\n }\n\n render() {\n if (!this.label) {\n return null;\n }\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
|
+
}
|