@sc-360-v2/storefront-cms-library 0.4.30 → 0.4.33
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/allocationDetails.scss +1 -1
- package/dist/allocations.scss +1 -1
- package/dist/builder.js +1 -1
- package/dist/bulk-order-pad.scss +30 -11
- package/dist/bundle.scss +569 -56
- package/dist/button.scss +69 -0
- package/dist/default-dropdown.scss +15 -1
- package/dist/dropdownTemplate.scss +36 -2
- package/dist/emtpy-templates.scss +29 -0
- package/dist/image-for-product.scss +1 -1
- package/dist/multi-select-dropdown.scss +20 -1
- package/dist/my-templates.scss +14 -4
- package/dist/option-bar.scss +1 -1
- package/dist/product-actions.scss +1 -1
- package/dist/quantity-selector.scss +2 -2
- package/dist/quick-order-pad.scss +7 -2
- package/dist/repeater.scss +1 -1
- package/dist/types/builder/tools/element-edit/bundle.d.ts +887 -62
- package/dist/types/builder/tools/element-edit/button.d.ts +2 -1
- package/package.json +1 -1
package/dist/button.scss
CHANGED
|
@@ -221,3 +221,72 @@
|
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
+
|
|
225
|
+
.action__button {
|
|
226
|
+
display: flex;
|
|
227
|
+
justify-content: center;
|
|
228
|
+
align-items: center;
|
|
229
|
+
border-radius: 4px;
|
|
230
|
+
gap: 8px;
|
|
231
|
+
& > span {
|
|
232
|
+
display: flex;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
&.btn__sm {
|
|
236
|
+
padding-inline: 16px;
|
|
237
|
+
font-size: 14px;
|
|
238
|
+
svg {
|
|
239
|
+
width: 16px;
|
|
240
|
+
height: 16px;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
&.btn__md {
|
|
244
|
+
padding-inline: 24px;
|
|
245
|
+
font-size: 18px;
|
|
246
|
+
svg {
|
|
247
|
+
width: 20px;
|
|
248
|
+
height: 20px;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
&.btn__lg {
|
|
252
|
+
padding-inline: 32px;
|
|
253
|
+
font-size: 24px;
|
|
254
|
+
svg {
|
|
255
|
+
width: 24px;
|
|
256
|
+
height: 24px;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
&.primary {
|
|
261
|
+
background-color: var(--_primary-400);
|
|
262
|
+
color: var(--_base-white);
|
|
263
|
+
|
|
264
|
+
&:hover {
|
|
265
|
+
background-color: var(--_primary-500);
|
|
266
|
+
color: var(--_base-white);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
&.secondary {
|
|
270
|
+
background-color: var(--_gray-100);
|
|
271
|
+
color: var(--_gray-700);
|
|
272
|
+
&:hover {
|
|
273
|
+
background-color: var(--_gray-200);
|
|
274
|
+
color: var(--_gray-900);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
&.tertiary {
|
|
278
|
+
background-color: transparent;
|
|
279
|
+
&.primary__txt {
|
|
280
|
+
color: var(--_primary-400);
|
|
281
|
+
&:hover {
|
|
282
|
+
color: var(--_primary-500);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
&.secondary__txt {
|
|
286
|
+
color: var(--_gray-700);
|
|
287
|
+
&:hover {
|
|
288
|
+
color: var(--_gray-900);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
padding: 8px 12px;
|
|
11
11
|
display: flex;
|
|
12
12
|
align-items: center;
|
|
13
|
+
align-self: stretch;
|
|
13
14
|
justify-content: space-between;
|
|
14
15
|
border: 1px solid var(--_gray-300);
|
|
15
16
|
border-radius: 4px;
|
|
@@ -148,6 +149,18 @@
|
|
|
148
149
|
gap: 8px;
|
|
149
150
|
padding: 8px 12px;
|
|
150
151
|
cursor: pointer;
|
|
152
|
+
.variant__img {
|
|
153
|
+
border: 1px solid var(--_gray-200);
|
|
154
|
+
border-radius: 4px;
|
|
155
|
+
overflow: hidden;
|
|
156
|
+
display: flex;
|
|
157
|
+
justify-content: center;
|
|
158
|
+
align-items: center;
|
|
159
|
+
img {
|
|
160
|
+
max-height: 100%;
|
|
161
|
+
max-width: 100%;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
151
164
|
}
|
|
152
165
|
|
|
153
166
|
.bo-dropdown__option:last-child {
|
|
@@ -161,8 +174,9 @@
|
|
|
161
174
|
}
|
|
162
175
|
|
|
163
176
|
.bo-dropdown__option--selected {
|
|
164
|
-
background-color: var(--_base-white);
|
|
177
|
+
// background-color: var(--_base-white);
|
|
165
178
|
border-radius: 4px;
|
|
179
|
+
@include BgColorLighter(var(--_thm-cs-at-py), 10%);
|
|
166
180
|
}
|
|
167
181
|
|
|
168
182
|
.bo-dropdown__check {
|
|
@@ -18,6 +18,11 @@
|
|
|
18
18
|
line-height: 40px;
|
|
19
19
|
outline: 2px solid var(--_base-white);
|
|
20
20
|
border: 1px solid var(--_gray-300);
|
|
21
|
+
&:focus-within {
|
|
22
|
+
outline: 2px solid var(--_primary-400);
|
|
23
|
+
outline-offset: 0;
|
|
24
|
+
}
|
|
25
|
+
cursor: pointer;
|
|
21
26
|
.selected-display {
|
|
22
27
|
.selected-item {
|
|
23
28
|
display: flex;
|
|
@@ -162,11 +167,17 @@
|
|
|
162
167
|
max-height: 200px;
|
|
163
168
|
box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
|
|
164
169
|
z-index: 10;
|
|
165
|
-
min-width: 240px;
|
|
170
|
+
// min-width: 240px;
|
|
166
171
|
max-height: 300px;
|
|
167
172
|
display: flex;
|
|
168
173
|
flex-direction: column;
|
|
169
174
|
// margin-left: -6px;
|
|
175
|
+
&.open_dropdown {
|
|
176
|
+
animation: open_dropdown 300ms ease-in-out;
|
|
177
|
+
}
|
|
178
|
+
&.close_dropdown {
|
|
179
|
+
animation: close_dropdown 300ms ease-in-out;
|
|
180
|
+
}
|
|
170
181
|
&.w-full {
|
|
171
182
|
width: 100%;
|
|
172
183
|
}
|
|
@@ -199,7 +210,8 @@
|
|
|
199
210
|
}
|
|
200
211
|
|
|
201
212
|
.dropdown_menu_ul {
|
|
202
|
-
height:
|
|
213
|
+
min-height: 100px;
|
|
214
|
+
max-height: 200px;
|
|
203
215
|
overflow-y: auto;
|
|
204
216
|
display: flex;
|
|
205
217
|
flex-direction: column;
|
|
@@ -552,3 +564,25 @@
|
|
|
552
564
|
clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0);
|
|
553
565
|
}
|
|
554
566
|
}
|
|
567
|
+
|
|
568
|
+
@keyframes open_dropdown {
|
|
569
|
+
0% {
|
|
570
|
+
transform: translateY(10px);
|
|
571
|
+
opacity: 0;
|
|
572
|
+
}
|
|
573
|
+
100% {
|
|
574
|
+
transform: translateY(-2px);
|
|
575
|
+
opacity: 1;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
@keyframes close_dropdown {
|
|
580
|
+
0% {
|
|
581
|
+
transform: translateY(-2px);
|
|
582
|
+
opacity: 1;
|
|
583
|
+
}
|
|
584
|
+
100% {
|
|
585
|
+
transform: translateY(10px);
|
|
586
|
+
opacity: 0;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
@@ -119,6 +119,35 @@
|
|
|
119
119
|
animation: split_loader 0.5s ease-out infinite alternate;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
+
// loding data with icon using in bulk order pad and quick order pad
|
|
123
|
+
.data__loading__wrapper {
|
|
124
|
+
width: 100%;
|
|
125
|
+
height: 100%;
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
justify-content: center;
|
|
129
|
+
.loading__container {
|
|
130
|
+
max-width: 500px;
|
|
131
|
+
display: flex;
|
|
132
|
+
flex-direction: column;
|
|
133
|
+
justify-content: center;
|
|
134
|
+
align-items: center;
|
|
135
|
+
gap: 16px;
|
|
136
|
+
.loading__spinner {
|
|
137
|
+
width: 40px;
|
|
138
|
+
height: 40px;
|
|
139
|
+
border: 4px solid var(--_gray-200);
|
|
140
|
+
border-top: 4px solid var(--_primary-400);
|
|
141
|
+
border-radius: 50%;
|
|
142
|
+
animation: spin 1s linear infinite;
|
|
143
|
+
}
|
|
144
|
+
.text {
|
|
145
|
+
color: var(--_gray-600);
|
|
146
|
+
font-size: 14px;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
122
151
|
@keyframes split_loader {
|
|
123
152
|
0% {
|
|
124
153
|
box-shadow:
|
|
@@ -122,6 +122,7 @@ $msd-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
.msd__clear {
|
|
125
|
+
margin-right: 15px;
|
|
125
126
|
svg {
|
|
126
127
|
width: 16px;
|
|
127
128
|
height: 16px;
|
|
@@ -191,10 +192,28 @@ $msd-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
|
|
|
191
192
|
cursor: pointer;
|
|
192
193
|
font-size: 14px;
|
|
193
194
|
display: flex;
|
|
194
|
-
justify-content:
|
|
195
|
+
justify-content: start;
|
|
196
|
+
align-items: center;
|
|
195
197
|
svg path {
|
|
196
198
|
stroke: var(--_primary-50);
|
|
197
199
|
}
|
|
200
|
+
&__img {
|
|
201
|
+
border-radius: 4px;
|
|
202
|
+
justify-content: center;
|
|
203
|
+
align-items: center;
|
|
204
|
+
display: flex;
|
|
205
|
+
width: 32px;
|
|
206
|
+
height: 32px;
|
|
207
|
+
border: 1px solid var(--_gray-200);
|
|
208
|
+
overflow: hidden;
|
|
209
|
+
img {
|
|
210
|
+
max-height: 100%;
|
|
211
|
+
max-width: 100%;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
.is__selected {
|
|
215
|
+
margin-left: auto;
|
|
216
|
+
}
|
|
198
217
|
|
|
199
218
|
&:not(.is-disabled):hover {
|
|
200
219
|
@include BgColorLighter(var(--_thm-cs-at-py), 8%);
|
package/dist/my-templates.scss
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
2
|
@use "sass:list";
|
|
3
|
+
@import "./functions.scss";
|
|
4
|
+
$defaultValues: (
|
|
5
|
+
--_flex-box: getListOfResponsive(flex, block),
|
|
6
|
+
--_width: getListOfResponsive(calc(100% - 400px), 100%),
|
|
7
|
+
--_width-400: getListOfResponsive(400px, 100%),
|
|
8
|
+
);
|
|
3
9
|
|
|
4
10
|
[data-div-type="element"] {
|
|
5
11
|
&[data-element-type="myTemplates"] {
|
|
@@ -65,18 +71,21 @@
|
|
|
65
71
|
font-size: 24px;
|
|
66
72
|
}
|
|
67
73
|
.back_to_cart {
|
|
68
|
-
color: var(--
|
|
74
|
+
color: var(--_thm-cs-tt-ls-as);
|
|
69
75
|
&:hover {
|
|
70
76
|
text-decoration: underline;
|
|
71
77
|
}
|
|
72
78
|
}
|
|
73
79
|
}
|
|
74
80
|
.template_body {
|
|
75
|
-
|
|
81
|
+
@include prepareMediaQueries($defaultValues);
|
|
82
|
+
display: var(--_flex-box, flex);
|
|
83
|
+
// display: flex;
|
|
76
84
|
gap: 60px;
|
|
77
85
|
justify-content: space-between;
|
|
78
86
|
.template_col_left {
|
|
79
|
-
width: calc(100% - 400px);
|
|
87
|
+
// width: calc(100% - 400px);
|
|
88
|
+
width: var(--_width, 100%);
|
|
80
89
|
height: 400px;
|
|
81
90
|
background-color: var(--_base-white);
|
|
82
91
|
.wishlist-modal {
|
|
@@ -243,7 +252,8 @@
|
|
|
243
252
|
}
|
|
244
253
|
}
|
|
245
254
|
.template_col_right {
|
|
246
|
-
width: 400px;
|
|
255
|
+
// width: 400px;
|
|
256
|
+
width: var(--_width-400, 100%);
|
|
247
257
|
height: fit-content;
|
|
248
258
|
background-color: var(--_base-white);
|
|
249
259
|
overflow: hidden;
|
package/dist/option-bar.scss
CHANGED
|
@@ -491,7 +491,7 @@
|
|
|
491
491
|
|
|
492
492
|
&:hover {
|
|
493
493
|
--_sf-hr-bd-cr: var(
|
|
494
|
-
--_ctm-mob-dn-
|
|
494
|
+
--_ctm-mob-dn-ie-bn-hr-se-bd-cr,
|
|
495
495
|
var(--_ctm-tab-dn-ie-bn-hr-se-bd-cr, var(--_ctm-dn-ie-bn-hr-se-bd-cr))
|
|
496
496
|
);
|
|
497
497
|
--_sf-hr-br-cr: var(
|
|
@@ -709,7 +709,7 @@
|
|
|
709
709
|
}
|
|
710
710
|
&:hover {
|
|
711
711
|
--_sf-hr-bd-cr: var(
|
|
712
|
-
--_ctm-mob-dn-
|
|
712
|
+
--_ctm-mob-dn-de-bn-hr-se-bd-cr,
|
|
713
713
|
var(--_ctm-tab-dn-de-bn-hr-se-bd-cr, var(--_ctm-dn-de-bn-hr-se-bd-cr))
|
|
714
714
|
);
|
|
715
715
|
--_sf-hr-br-cr: var(
|
|
@@ -25,7 +25,7 @@ $input-padding: 10px 12px;
|
|
|
25
25
|
.input-group {
|
|
26
26
|
// display: flex;
|
|
27
27
|
display: grid;
|
|
28
|
-
grid-template-columns:
|
|
28
|
+
grid-template-columns: 44vw 44vw 100px;
|
|
29
29
|
gap: 12px;
|
|
30
30
|
height: fit-content;
|
|
31
31
|
align-items: center;
|
|
@@ -112,7 +112,7 @@ $input-padding: 10px 12px;
|
|
|
112
112
|
.input-group-right-col {
|
|
113
113
|
display: flex;
|
|
114
114
|
gap: 16px;
|
|
115
|
-
|
|
115
|
+
width: 100%;
|
|
116
116
|
}
|
|
117
117
|
.add-btn {
|
|
118
118
|
// background-color: $primary;
|
|
@@ -217,6 +217,11 @@ $input-padding: 10px 12px;
|
|
|
217
217
|
}
|
|
218
218
|
.remove-btn {
|
|
219
219
|
color: var(--_error-500);
|
|
220
|
+
padding: 8px 16px;
|
|
221
|
+
border-radius: 4px;
|
|
222
|
+
&:hover {
|
|
223
|
+
background: var(--_error-50);
|
|
224
|
+
}
|
|
220
225
|
}
|
|
221
226
|
}
|
|
222
227
|
}
|
package/dist/repeater.scss
CHANGED
|
@@ -698,7 +698,7 @@ $rai: "repeater-advertise-item";
|
|
|
698
698
|
|
|
699
699
|
&:hover {
|
|
700
700
|
--_sf-hr-bd-cr: var(
|
|
701
|
-
--_ctm-rep-mob-dn-
|
|
701
|
+
--_ctm-rep-mob-dn-bn-se-hr-se-bd-cr,
|
|
702
702
|
var(--_ctm-rep-tab-dn-bn-se-hr-se-bd-cr, var(--_ctm-rep-dn-bn-se-hr-se-bd-cr))
|
|
703
703
|
);
|
|
704
704
|
--_sf-hr-br-cr: var(
|