@sc-360-v2/storefront-cms-library 0.3.9 → 0.3.11
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/builder.js +1 -1
- package/dist/bundle.scss +258 -1
- package/dist/common-element.scss +0 -6
- package/dist/filters.scss +3 -1
- package/dist/functions.js +1 -1
- package/dist/past-orders.scss +88 -0
- package/dist/product-sizechart.scss +1815 -0
- package/dist/profile.scss +441 -17
- package/dist/quantity-selector.scss +854 -210
- package/dist/shareCartSideBar.scss +177 -177
- package/dist/ssrFunctions.js +1 -0
- package/dist/toggle-button.scss +12 -12
- package/dist/types/builder/utilities/global.d.ts +1 -2
- package/dist/types/helper/helper-functions.d.ts +0 -1
- package/dist/types/helper/ssr-functions.d.ts +3 -0
- package/dist/widget.scss +1 -0
- package/package.json +5 -1
|
@@ -18,213 +18,213 @@ $shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
|
|
|
18
18
|
top: 0;
|
|
19
19
|
background: rgba(112, 112, 112, 0.13);
|
|
20
20
|
z-index: 9999;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// Container overlay
|
|
24
|
-
.sidebar-overlay {
|
|
25
|
-
position: fixed;
|
|
26
|
-
top: 0;
|
|
27
|
-
left: 0;
|
|
28
|
-
width: 100vw;
|
|
29
|
-
height: 100vh;
|
|
30
|
-
background: rgba(20, 20, 20, 0.4); // Glass effect
|
|
31
|
-
backdrop-filter: blur(3px);
|
|
32
|
-
z-index: 1000;
|
|
33
|
-
}
|
|
34
21
|
|
|
35
|
-
//
|
|
36
|
-
.sidebar-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
z-index: 1001;
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: column;
|
|
48
|
-
animation: slide-in 0.3s ease-out;
|
|
49
|
-
.container {
|
|
50
|
-
padding: 0px 24px;
|
|
51
|
-
overflow-y: auto;
|
|
52
|
-
width: 100%;
|
|
53
|
-
height: calc(100vh - 40px);
|
|
22
|
+
// Container overlay
|
|
23
|
+
.sidebar-overlay {
|
|
24
|
+
position: fixed;
|
|
25
|
+
top: 0;
|
|
26
|
+
left: 0;
|
|
27
|
+
width: 100vw;
|
|
28
|
+
height: 100vh;
|
|
29
|
+
background: rgba(20, 20, 20, 0.4); // Glass effect
|
|
30
|
+
backdrop-filter: blur(3px);
|
|
31
|
+
z-index: 1000;
|
|
54
32
|
}
|
|
55
33
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
34
|
+
// Sidebar slide-in
|
|
35
|
+
.sidebar-container {
|
|
36
|
+
position: fixed;
|
|
37
|
+
top: 0;
|
|
38
|
+
right: 0;
|
|
39
|
+
width: 400px;
|
|
40
|
+
max-width: 100%;
|
|
41
|
+
height: 100vh;
|
|
42
|
+
background: $background-color;
|
|
43
|
+
box-shadow: $shadow;
|
|
44
|
+
z-index: 1001;
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
animation: slide-in 0.3s ease-out;
|
|
48
|
+
.container {
|
|
49
|
+
padding: 0px 24px;
|
|
50
|
+
overflow-y: auto;
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: calc(100vh - 40px);
|
|
59
53
|
}
|
|
60
|
-
|
|
61
|
-
|
|
54
|
+
|
|
55
|
+
@keyframes slide-in {
|
|
56
|
+
from {
|
|
57
|
+
transform: translateX(100%);
|
|
58
|
+
}
|
|
59
|
+
to {
|
|
60
|
+
transform: translateX(0);
|
|
61
|
+
}
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
}
|
|
65
64
|
|
|
66
|
-
// Header
|
|
67
|
-
.sidebar-header {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
65
|
+
// Header
|
|
66
|
+
.sidebar-header {
|
|
67
|
+
display: flex;
|
|
68
|
+
justify-content: space-between;
|
|
69
|
+
align-items: center;
|
|
70
|
+
padding: 16px 0px;
|
|
71
|
+
position: sticky;
|
|
72
|
+
top: 0px;
|
|
73
|
+
background: #fff;
|
|
74
|
+
margin: 0 -14px;
|
|
75
|
+
|
|
76
|
+
h2 {
|
|
77
|
+
font-size: 18px;
|
|
78
|
+
font-weight: 600;
|
|
79
|
+
color: $text-color;
|
|
80
|
+
}
|
|
82
81
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
82
|
+
.close-btn {
|
|
83
|
+
font-size: 24px;
|
|
84
|
+
background: none;
|
|
85
|
+
border: none;
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
color: $text-color;
|
|
88
|
+
}
|
|
89
89
|
}
|
|
90
|
-
}
|
|
91
90
|
|
|
92
|
-
// Form fields
|
|
93
|
-
.form-group {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
91
|
+
// Form fields
|
|
92
|
+
.form-group {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
margin-bottom: 16px;
|
|
97
96
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
97
|
+
label {
|
|
98
|
+
font-weight: 500;
|
|
99
|
+
margin-bottom: 6px;
|
|
100
|
+
color: $text-color;
|
|
101
|
+
}
|
|
103
102
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
103
|
+
input {
|
|
104
|
+
padding: 10px 12px;
|
|
105
|
+
font-size: 14px;
|
|
106
|
+
border-radius: $border-radius;
|
|
107
|
+
border: 1px solid $input-border;
|
|
108
|
+
outline: none;
|
|
110
109
|
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
&:focus {
|
|
111
|
+
border-color: $primary-color;
|
|
112
|
+
}
|
|
113
113
|
}
|
|
114
|
-
}
|
|
115
114
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
115
|
+
.hint {
|
|
116
|
+
font-size: 12px;
|
|
117
|
+
color: $hint-color;
|
|
118
|
+
margin-top: 4px;
|
|
119
|
+
}
|
|
121
120
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
121
|
+
.error {
|
|
122
|
+
color: $error-color;
|
|
123
|
+
font-size: 12px;
|
|
124
|
+
margin-top: 4px;
|
|
125
|
+
}
|
|
126
126
|
}
|
|
127
|
-
}
|
|
128
127
|
|
|
129
|
-
// Chip Input
|
|
130
|
-
.input-wrapper {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.chips-input-wrapper:focus-within {
|
|
143
|
-
border-color: $primary-color;
|
|
144
|
-
}
|
|
128
|
+
// Chip Input
|
|
129
|
+
.input-wrapper {
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-wrap: wrap;
|
|
132
|
+
align-items: center;
|
|
133
|
+
gap: 6px;
|
|
134
|
+
padding: 8px 0px;
|
|
135
|
+
border: 1px solid #ccc;
|
|
136
|
+
border-radius: 8px;
|
|
137
|
+
min-height: 44px;
|
|
138
|
+
cursor: text;
|
|
139
|
+
}
|
|
145
140
|
|
|
146
|
-
.chips-input {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
outline: none;
|
|
150
|
-
min-width: 120px;
|
|
151
|
-
font-size: 14px;
|
|
152
|
-
}
|
|
141
|
+
.chips-input-wrapper:focus-within {
|
|
142
|
+
border-color: $primary-color;
|
|
143
|
+
}
|
|
153
144
|
|
|
154
|
-
.
|
|
155
|
-
|
|
156
|
-
align-items: center;
|
|
157
|
-
background-color: #f1f1f1;
|
|
158
|
-
padding: 4px 8px;
|
|
159
|
-
border-radius: 999px;
|
|
160
|
-
font-size: 13px;
|
|
161
|
-
|
|
162
|
-
button {
|
|
163
|
-
margin-left: 6px;
|
|
164
|
-
background: transparent;
|
|
145
|
+
.chips-input {
|
|
146
|
+
flex: 1;
|
|
165
147
|
border: none;
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
148
|
+
outline: none;
|
|
149
|
+
min-width: 120px;
|
|
150
|
+
font-size: 14px;
|
|
169
151
|
}
|
|
170
|
-
}
|
|
171
152
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
153
|
+
.chip {
|
|
154
|
+
display: flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
background-color: #f1f1f1;
|
|
157
|
+
padding: 4px 8px;
|
|
158
|
+
border-radius: 999px;
|
|
159
|
+
font-size: 13px;
|
|
160
|
+
|
|
161
|
+
button {
|
|
162
|
+
margin-left: 6px;
|
|
163
|
+
background: transparent;
|
|
164
|
+
border: none;
|
|
165
|
+
font-size: 16px;
|
|
166
|
+
cursor: pointer;
|
|
167
|
+
line-height: 1;
|
|
168
|
+
}
|
|
186
169
|
}
|
|
187
170
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
171
|
+
// Footer buttons
|
|
172
|
+
.sidebar-footer {
|
|
173
|
+
margin-top: auto;
|
|
174
|
+
display: flex;
|
|
175
|
+
justify-content: space-between;
|
|
176
|
+
padding: 12px;
|
|
177
|
+
border-top: 1px solid #eee;
|
|
178
|
+
|
|
179
|
+
.discard-btn {
|
|
180
|
+
background: none;
|
|
181
|
+
border: none;
|
|
182
|
+
color: $text-color;
|
|
183
|
+
cursor: pointer;
|
|
184
|
+
font-weight: 500;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.share-btn {
|
|
188
|
+
background: $primary-color;
|
|
189
|
+
color: $background-color;
|
|
190
|
+
border: none;
|
|
191
|
+
padding: 10px 16px;
|
|
192
|
+
border-radius: $border-radius;
|
|
193
|
+
cursor: pointer;
|
|
194
|
+
font-weight: 600;
|
|
195
|
+
transition: background 0.2s;
|
|
196
|
+
// if it needed import the darken function from sass
|
|
197
|
+
// &:hover {
|
|
198
|
+
// background: darken($primary-color, 5%);
|
|
199
|
+
// }
|
|
200
|
+
}
|
|
201
201
|
}
|
|
202
|
-
}
|
|
203
202
|
|
|
204
|
-
// PhoneInput override
|
|
205
|
-
.react-tel-input {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
203
|
+
// PhoneInput override
|
|
204
|
+
.react-tel-input {
|
|
205
|
+
input {
|
|
206
|
+
width: 100% !important;
|
|
207
|
+
border-radius: $border-radius !important;
|
|
208
|
+
border-color: $input-border !important;
|
|
209
|
+
}
|
|
210
210
|
}
|
|
211
|
-
}
|
|
212
211
|
|
|
213
|
-
.form-group.checkbox-group {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
212
|
+
.form-group.checkbox-group {
|
|
213
|
+
display: flex;
|
|
214
|
+
align-items: center;
|
|
215
|
+
gap: 8px; // spacing between checkbox and label
|
|
216
|
+
margin-top: 12px;
|
|
218
217
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
218
|
+
input[type="checkbox"] {
|
|
219
|
+
width: 16px;
|
|
220
|
+
height: 16px;
|
|
221
|
+
cursor: pointer;
|
|
222
|
+
}
|
|
224
223
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
224
|
+
label {
|
|
225
|
+
font-size: 14px;
|
|
226
|
+
color: $text-color;
|
|
227
|
+
cursor: pointer;
|
|
228
|
+
}
|
|
229
229
|
}
|
|
230
230
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["storefront-cms-library"]=e():t["storefront-cms-library"]=e()}(this,(()=>(()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,l,u=[],c=!0,a=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){a=!0,o=t}finally{try{if(!c&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(a)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t){return Object.entries(t).filter((function(t){var e=o(t,2);return null!=(e[0],e[1])})).map((function(t){var e=o(t,2),r=e[0],n=e[1];return"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(n))})).join("&")}t.r(e),t.d(e,{createQueryStringForCollection:()=>i,parseThemeSettings:()=>l});var l=function(t){var e=Object.assign({},t);return["layout","colors","typography","buttons","animations"].forEach((function(t){if("string"==typeof e[t]&&e[t].length>0)try{e[t]=JSON.parse(e[t])}catch(t){}else"object"===r(e[t])&&null!==e[t]&&(e[t]=JSON.stringify(e[t]))})),e};return e})()));
|
package/dist/toggle-button.scss
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
.toggle__button {
|
|
2
|
-
position: relative;
|
|
3
|
-
width:
|
|
4
|
-
height:
|
|
5
|
-
background-color:
|
|
6
|
-
border-radius:
|
|
2
|
+
position: var(--_p-relative);
|
|
3
|
+
width: var(--_width-36);
|
|
4
|
+
height: var(--_height-20);
|
|
5
|
+
background-color: var(--_gray-100);
|
|
6
|
+
border-radius: var(--_br-12);
|
|
7
7
|
cursor: pointer;
|
|
8
8
|
|
|
9
9
|
.toggle__slider {
|
|
10
|
-
position: absolute;
|
|
11
|
-
top:
|
|
12
|
-
left:
|
|
10
|
+
position: var(--_p-absolute);
|
|
11
|
+
top: var(--_top-2);
|
|
12
|
+
left: var(--_left-2);
|
|
13
13
|
transform: translateY(0%);
|
|
14
|
-
width:
|
|
15
|
-
height:
|
|
14
|
+
width: var(--_width-16);
|
|
15
|
+
height: var(--_width-16);
|
|
16
16
|
background-color: #fff;
|
|
17
17
|
border-radius: 50%;
|
|
18
18
|
transition: transform 0.3s ease;
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&.toggle__active {
|
|
25
|
-
background:
|
|
25
|
+
background: var(--_primary-600);
|
|
26
26
|
|
|
27
27
|
.toggle__slider {
|
|
28
|
-
top:
|
|
28
|
+
top: var(--_top-2);
|
|
29
29
|
transform: translateX(16px);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { CSSUnitOption
|
|
1
|
+
import { CSSUnitOption } from "../interfaces/global";
|
|
2
2
|
export declare const CSSUnits: CSSUnitOption[];
|
|
3
3
|
export declare function setTimeoutAsyncV2(timeout: any): Promise<void>;
|
|
4
|
-
export declare const parseThemeSettings: (data: ThemeSettingsInterface) => ThemeSettingsInterface;
|
|
5
4
|
declare const commonFunctions: any;
|
|
6
5
|
export default commonFunctions;
|
package/dist/widget.scss
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sc-360-v2/storefront-cms-library",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.11",
|
|
4
4
|
"main": "/dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -32,6 +32,10 @@
|
|
|
32
32
|
"import": "./dist/functions.js",
|
|
33
33
|
"types": "./dist/types/helper/helper-functions.d.ts"
|
|
34
34
|
},
|
|
35
|
+
"./ssrFunctions": {
|
|
36
|
+
"import": "./dist/ssrFunctions.js",
|
|
37
|
+
"types": "./dist/types/helper/ssr-functions.d.ts"
|
|
38
|
+
},
|
|
35
39
|
"./textEditor.scss": {
|
|
36
40
|
"import": "./dist/text-editor.scss"
|
|
37
41
|
},
|