@sc-360-v2/storefront-cms-library 0.3.35 → 0.3.36
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/add-order.scss +22 -8
- package/dist/builder.js +1 -1
- package/dist/cart-details.scss +14 -1
- package/dist/cart.scss +1 -4
- package/dist/cartAttributes.scss +191 -0
- package/dist/cartDropdownOverlay.scss +74 -72
- package/dist/customization-tree.scss +13 -3
- package/dist/loader.scss +55 -0
- package/dist/modal.scss +15 -4
- package/dist/overflow-module.scss +63 -0
- package/dist/section.scss +4 -0
- package/dist/types/builder/interfaces/global.d.ts +6 -0
- package/dist/types/builder/tools/element-edit/buyForWithTab.d.ts +11 -10
- package/dist/types/builder/tools/element-edit/common.d.ts +7 -0
- package/dist/types/builder/tools/element-edit/tabsV2.d.ts +11 -10
- package/package.json +1 -1
package/dist/cart-details.scss
CHANGED
|
@@ -473,7 +473,6 @@ $resizeActive: '[data-cms-element-resizer="true"]';
|
|
|
473
473
|
background-color: #eaeaea;
|
|
474
474
|
border: 1px solid var(--_gray-100);
|
|
475
475
|
border-radius: 4px;
|
|
476
|
-
margin-right: 24px;
|
|
477
476
|
}
|
|
478
477
|
|
|
479
478
|
.product_info_wrapper {
|
|
@@ -1400,3 +1399,17 @@ width: 380px;
|
|
|
1400
1399
|
// width: 100%;
|
|
1401
1400
|
// }
|
|
1402
1401
|
// }
|
|
1402
|
+
|
|
1403
|
+
.cart-item-attr-grid {
|
|
1404
|
+
display: grid;
|
|
1405
|
+
grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
|
|
1406
|
+
gap: 1rem;
|
|
1407
|
+
margin-top: 24px;
|
|
1408
|
+
|
|
1409
|
+
.attr-grid-item {
|
|
1410
|
+
padding: 1rem;
|
|
1411
|
+
border: 1px solid var(--_gray-200);
|
|
1412
|
+
border-radius: 6px;
|
|
1413
|
+
background-color: var(--_base-white);
|
|
1414
|
+
}
|
|
1415
|
+
}
|
package/dist/cart.scss
CHANGED
|
@@ -220,10 +220,7 @@
|
|
|
220
220
|
--_ctm-mob-dn-mi-ct-tt-le-ht-dc,
|
|
221
221
|
var(--_ctm-tab-dn-mi-ct-tt-le-ht-dc, var(--_ctm-dn-mi-ct-tt-le-ht-dc))
|
|
222
222
|
);
|
|
223
|
-
|
|
224
|
-
--_ctm-mob-dn-mi-ct-tt-ue-dc,
|
|
225
|
-
var(--_ctm-tab-dn-mi-ct-tt-ue-dc, var(--_ctm-dn-mi-ct-tt-ue-dc))
|
|
226
|
-
);
|
|
223
|
+
|
|
227
224
|
}
|
|
228
225
|
}
|
|
229
226
|
}
|
package/dist/cartAttributes.scss
CHANGED
|
@@ -74,6 +74,9 @@
|
|
|
74
74
|
flex-wrap: wrap;
|
|
75
75
|
gap: 16px;
|
|
76
76
|
margin-top: 20px;
|
|
77
|
+
max-height: 500px;
|
|
78
|
+
overflow-y: auto;
|
|
79
|
+
padding: 2px;
|
|
77
80
|
.attribute {
|
|
78
81
|
width: 100%;
|
|
79
82
|
display: flex;
|
|
@@ -96,6 +99,95 @@
|
|
|
96
99
|
&.required::after {
|
|
97
100
|
content: " *";
|
|
98
101
|
color: var(--_error-500);
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
[data-div-type="element"] {
|
|
105
|
+
&[data-element-type="cartAttributes"] {
|
|
106
|
+
// width: var(
|
|
107
|
+
// --_ctm-mob-ele-nw-wh-st-mx,
|
|
108
|
+
// var(
|
|
109
|
+
// --_ctm-tab-ele-nw-wh-st-mx,
|
|
110
|
+
// var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))))
|
|
111
|
+
// )
|
|
112
|
+
// );
|
|
113
|
+
|
|
114
|
+
// margin: var(--_ctm-mob-lt-mn, var(--_ctm-tab-lt-mn, var(--_ctm-lt-mn)));
|
|
115
|
+
|
|
116
|
+
height: max-content;
|
|
117
|
+
min-width: 240px;
|
|
118
|
+
|
|
119
|
+
// aspect-ratio: var(
|
|
120
|
+
// --_ctm-mob-aspect-ratio,
|
|
121
|
+
// var(--_ctm-tab-aspect-ratio, var(--_sf-aspect-ratio))
|
|
122
|
+
// );
|
|
123
|
+
|
|
124
|
+
& > .wrapper {
|
|
125
|
+
display: flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
justify-content: center;
|
|
128
|
+
width: 100%;
|
|
129
|
+
height: auto;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.cart__section {
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
cursor: pointer;
|
|
136
|
+
gap: 8px;
|
|
137
|
+
}
|
|
138
|
+
.cart-attribute-container {
|
|
139
|
+
display: flex;
|
|
140
|
+
flex-direction: column;
|
|
141
|
+
gap: 20px;
|
|
142
|
+
background-color: var(--_ctm-dn-ct-as-cr-bd-cr);
|
|
143
|
+
margin: var(--_ctm-dn-ct-as-cr-mn);
|
|
144
|
+
padding: var(--_ctm-lt-pg);
|
|
145
|
+
border-color: var(--_ctm-dn-ct-as-cr-br-cr);
|
|
146
|
+
border-style: var(--_ctm-dn-ct-as-cr-br-se);
|
|
147
|
+
border-width: var(--_ctm-dn-ct-as-cr-br-wh);
|
|
148
|
+
border-radius: var(--_ctm-dn-ct-as-cr-br-rs);
|
|
149
|
+
// box-shadow: var();
|
|
150
|
+
}
|
|
151
|
+
.cart-attribute-title {
|
|
152
|
+
color: var(--_ctm-dn-ct-as-hr-cr);
|
|
153
|
+
font-family: var(--_ctm-dn-ct-as-hr-ft-fy);
|
|
154
|
+
font-size: var(--_ctm-dn-ct-as-hr-ft-se);
|
|
155
|
+
font-weight: var(--_ctm-dn-ct-as-hr-ft-wt);
|
|
156
|
+
font-style: var(--_ctm-dn-ct-as-hr-ft-se-ic);
|
|
157
|
+
text-align: var(--_ctm-dn-ct-as-hr-tt-an);
|
|
158
|
+
letter-spacing: var(--_ctm-dn-ct-as-hr-lr-sg);
|
|
159
|
+
line-height: var(--_ctm-dn-ct-as-hr-le-ht);
|
|
160
|
+
text-decoration: var(--_ctm-dn-ct-as-hr-ue);
|
|
161
|
+
background-color: var(--_ctm-dn-ct-as-hr-bd-cr);
|
|
162
|
+
padding: var(--_ctm-dn-ct-as-hr-pg);
|
|
163
|
+
margin: var(--_ctm-dn-ct-as-hr-mn);
|
|
164
|
+
border-color: var(--_ctm-dn-ct-as-hr-br-cr);
|
|
165
|
+
border-style: var(--_ctm-dn-ct-as-hr-br-se);
|
|
166
|
+
border-width: var(--_ctm-dn-ct-as-hr-br-wh);
|
|
167
|
+
border-radius: var(--_ctm-dn-ct-as-hr-br-rs);
|
|
168
|
+
// box-shadow: var();
|
|
169
|
+
}
|
|
170
|
+
.attributes-section-body {
|
|
171
|
+
padding: 0;
|
|
172
|
+
width: 100%;
|
|
173
|
+
display: flex;
|
|
174
|
+
flex-wrap: wrap;
|
|
175
|
+
gap: 16px;
|
|
176
|
+
margin-top: 20px;
|
|
177
|
+
.attribute {
|
|
178
|
+
width: 100%;
|
|
179
|
+
.label {
|
|
180
|
+
display: block;
|
|
181
|
+
font-size: var(--_ctm-dn-ct-as-is-ll-ft-se);
|
|
182
|
+
font-weight: var(--_ctm-dn-ct-as-is-ll-ft-wt);
|
|
183
|
+
color: var(--_ctm-dn-ct-as-is-ll-cr);
|
|
184
|
+
margin-bottom: 0.5rem;
|
|
185
|
+
letter-spacing: var(--_ctm-dn-ct-as-is-ll-lr-sg);
|
|
186
|
+
line-height: var(--_ctm-dn-ct-as-is-ll-le-ht);
|
|
187
|
+
margin-bottom: 10px;
|
|
188
|
+
&.required::after {
|
|
189
|
+
content: " *";
|
|
190
|
+
color: var(--_error-500);
|
|
99
191
|
}
|
|
100
192
|
}
|
|
101
193
|
}
|
|
@@ -105,6 +197,105 @@
|
|
|
105
197
|
}
|
|
106
198
|
.attribute_field {
|
|
107
199
|
width: 100%;
|
|
200
|
+
.attribute_form_field {
|
|
201
|
+
width: 100%;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.attribute_form_field {
|
|
205
|
+
width: 100% !important;
|
|
206
|
+
padding: 12px;
|
|
207
|
+
border-radius: var(--_ctm-dn-ct-as-is-fd-br-rs);
|
|
208
|
+
border-style: var(--_ctm-dn-ct-as-is-fd-br-se);
|
|
209
|
+
border-width: var(--_ctm-dn-ct-as-is-fd-br-wh);
|
|
210
|
+
border-color: var(--_ctm-dn-ct-as-is-fd-br-cr);
|
|
211
|
+
outline: none;
|
|
212
|
+
transition: border-color 0.2s ease-in-out;
|
|
213
|
+
font-size: 14px;
|
|
214
|
+
height: 40px;
|
|
215
|
+
|
|
216
|
+
&:focus {
|
|
217
|
+
border-color: var(--_primary-400);
|
|
218
|
+
outline: 2px solid var(--_primary-200);
|
|
219
|
+
}
|
|
220
|
+
&.error {
|
|
221
|
+
border-color: #dc2626;
|
|
222
|
+
background-color: #fef2f2;
|
|
223
|
+
}
|
|
224
|
+
.react-datepicker-wrapper {
|
|
225
|
+
width: 100%;
|
|
226
|
+
.react-datepicker__close-icon::after {
|
|
227
|
+
background-color: transparent;
|
|
228
|
+
font-size: 25px;
|
|
229
|
+
color: var(--_gray-500);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
textarea {
|
|
235
|
+
min-height: 100px;
|
|
236
|
+
resize: vertical;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
.text_area_attribute {
|
|
240
|
+
width: 100%;
|
|
241
|
+
.input_textarea_a {
|
|
242
|
+
width: 100%;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
.cart_item_attr_disabled {
|
|
246
|
+
pointer-events: none;
|
|
247
|
+
opacity: 0.5;
|
|
248
|
+
cursor: auto;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.custom-upload {
|
|
255
|
+
text-align: center;
|
|
256
|
+
border: 1px solid var(--_gray-200);
|
|
257
|
+
border-radius: 6px;
|
|
258
|
+
padding: 16px;
|
|
259
|
+
&:hover {
|
|
260
|
+
cursor: pointer;
|
|
261
|
+
border: 1px solid var(--_primary-200);
|
|
262
|
+
background: var(--_primary-25);
|
|
263
|
+
}
|
|
264
|
+
.uploadicon {
|
|
265
|
+
padding: 10px;
|
|
266
|
+
background: #f2f4f7;
|
|
267
|
+
display: inline-block;
|
|
268
|
+
border-radius: 50%;
|
|
269
|
+
margin-bottom: 12px;
|
|
270
|
+
color: var(--_gray-600);
|
|
271
|
+
}
|
|
272
|
+
p {
|
|
273
|
+
padding-bottom: 4px;
|
|
274
|
+
color: var(--_gray-600);
|
|
275
|
+
font-size: 14px;
|
|
276
|
+
strong {
|
|
277
|
+
color: var(--_primary-400);
|
|
278
|
+
font-weight: 600;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
span {
|
|
282
|
+
color: var(--_gray-600);
|
|
283
|
+
font-size: 12px;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
.error-text {
|
|
291
|
+
font-size: 12px;
|
|
292
|
+
color: var(--_error-500);
|
|
293
|
+
}
|
|
294
|
+
.attribute_field {
|
|
295
|
+
width: 100%;
|
|
296
|
+
.react-datepicker-wrapper {
|
|
297
|
+
width: 100%;
|
|
298
|
+
}
|
|
108
299
|
|
|
109
300
|
.attribute_form_field {
|
|
110
301
|
width: 100%;
|
|
@@ -25,45 +25,25 @@ $button-padding: 6px 12px;
|
|
|
25
25
|
// font-weight: 500;
|
|
26
26
|
// padding: $spacing-sm;
|
|
27
27
|
white-space: nowrap;
|
|
28
|
-
color: var(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
var(--_ctm-tab-dn-pt-as-ss-ft-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
font-style: var(
|
|
48
|
-
--_ctm-mob-dn-pt-as-ss-ft-se-ic,
|
|
49
|
-
var(--_ctm-tab-dn-pt-as-ss-ft-se-ic, var(--_ctm-dn-pt-as-ss-ft-se-ic))
|
|
50
|
-
);
|
|
51
|
-
text-align: var(
|
|
52
|
-
--_ctm-mob-dn-pt-as-ss-tt-an,
|
|
53
|
-
var(--_ctm-tab-dn-pt-as-ss-tt-an, var(--_ctm-dn-pt-as-ss-tt-an))
|
|
54
|
-
);
|
|
55
|
-
letter-spacing: var(
|
|
56
|
-
--_ctm-mob-dn-pt-as-ss-lr-sg,
|
|
57
|
-
var(--_ctm-tab-dn-pt-as-ss-lr-sg, var(--_ctm-dn-pt-as-ss-lr-sg))
|
|
58
|
-
);
|
|
59
|
-
line-height: var(
|
|
60
|
-
--_ctm-mob-dn-pt-as-ss-le-ht,
|
|
61
|
-
var(--_ctm-tab-dn-pt-as-ss-le-ht, var(--_ctm-dn-pt-as-ss-le-ht))
|
|
62
|
-
);
|
|
63
|
-
text-decoration: var(
|
|
64
|
-
--_ctm-mob-dn-pt-as-ss-ue,
|
|
65
|
-
var(--_ctm-tab-dn-pt-as-ss-ue, var(--_ctm-dn-pt-as-ss-ue))
|
|
66
|
-
);
|
|
28
|
+
color: var(--_ctm-mob-dn-pt-as-ss-cr,
|
|
29
|
+
var(--_ctm-tab-dn-pt-as-ss-cr, var(--_ctm-dn-pt-as-ss-cr)));
|
|
30
|
+
font-family: var(--_sf-hr-ff,
|
|
31
|
+
var(--_ctm-mob-dn-pt-as-ss-ft-fy,
|
|
32
|
+
var(--_ctm-tab-dn-pt-as-ss-ft-fy, var(--_ctm-dn-pt-as-ss-ft-fy))));
|
|
33
|
+
font-size: var(--_ctm-mob-dn-pt-as-ss-ft-se,
|
|
34
|
+
var(--_ctm-tab-dn-pt-as-ss-ft-se, var(--_ctm-dn-pt-as-ss-ft-se)));
|
|
35
|
+
font-weight: var(--_ctm-mob-dn-pt-as-ss-ft-wt,
|
|
36
|
+
var(--_ctm-tab-dn-pt-as-ss-ft-wt, var(--_ctm-dn-pt-as-ss-ft-wt)));
|
|
37
|
+
font-style: var(--_ctm-mob-dn-pt-as-ss-ft-se-ic,
|
|
38
|
+
var(--_ctm-tab-dn-pt-as-ss-ft-se-ic, var(--_ctm-dn-pt-as-ss-ft-se-ic)));
|
|
39
|
+
text-align: var(--_ctm-mob-dn-pt-as-ss-tt-an,
|
|
40
|
+
var(--_ctm-tab-dn-pt-as-ss-tt-an, var(--_ctm-dn-pt-as-ss-tt-an)));
|
|
41
|
+
letter-spacing: var(--_ctm-mob-dn-pt-as-ss-lr-sg,
|
|
42
|
+
var(--_ctm-tab-dn-pt-as-ss-lr-sg, var(--_ctm-dn-pt-as-ss-lr-sg)));
|
|
43
|
+
line-height: var(--_ctm-mob-dn-pt-as-ss-le-ht,
|
|
44
|
+
var(--_ctm-tab-dn-pt-as-ss-le-ht, var(--_ctm-dn-pt-as-ss-le-ht)));
|
|
45
|
+
text-decoration: var(--_ctm-mob-dn-pt-as-ss-ue,
|
|
46
|
+
var(--_ctm-tab-dn-pt-as-ss-ue, var(--_ctm-dn-pt-as-ss-ue)));
|
|
67
47
|
}
|
|
68
48
|
|
|
69
49
|
.overlay-panel {
|
|
@@ -78,6 +58,7 @@ $button-padding: 6px 12px;
|
|
|
78
58
|
display: flex;
|
|
79
59
|
flex-direction: column;
|
|
80
60
|
width: 260px;
|
|
61
|
+
|
|
81
62
|
// width: 220px;
|
|
82
63
|
.header-template {
|
|
83
64
|
display: flex;
|
|
@@ -109,47 +90,65 @@ $button-padding: 6px 12px;
|
|
|
109
90
|
}
|
|
110
91
|
}
|
|
111
92
|
}
|
|
112
|
-
.option {
|
|
113
|
-
display: flex;
|
|
114
|
-
align-items: center;
|
|
115
|
-
padding: 8px $spacing-md;
|
|
116
|
-
cursor: pointer;
|
|
117
|
-
font-size: $font-size;
|
|
118
|
-
min-height: 48px;
|
|
119
|
-
border-radius: 4px;
|
|
120
93
|
|
|
121
|
-
|
|
94
|
+
.options-container {
|
|
95
|
+
max-height: 200px;
|
|
96
|
+
overflow-y: auto;
|
|
97
|
+
|
|
98
|
+
.option {
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
padding: 8px $spacing-md;
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
font-size: $font-size;
|
|
104
|
+
min-height: 48px;
|
|
105
|
+
border-radius: 4px;
|
|
106
|
+
|
|
107
|
+
&.disabled {
|
|
108
|
+
.label-content {
|
|
109
|
+
width: 100%;
|
|
110
|
+
align-items: center;
|
|
111
|
+
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
122
115
|
.label-content {
|
|
123
|
-
|
|
124
|
-
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-direction: column;
|
|
118
|
+
gap: 4px;
|
|
119
|
+
|
|
120
|
+
.option-description {
|
|
121
|
+
&>div {
|
|
122
|
+
max-width: 204px;
|
|
123
|
+
white-space: nowrap;
|
|
124
|
+
overflow: hidden;
|
|
125
|
+
text-overflow: ellipsis;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
125
128
|
}
|
|
126
|
-
}
|
|
127
129
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
gap: 4px;
|
|
132
|
-
}
|
|
130
|
+
&:hover {
|
|
131
|
+
background-color: var(--_gray-100);
|
|
132
|
+
}
|
|
133
133
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
input {
|
|
135
|
+
margin-right: 8px;
|
|
136
|
+
width: auto;
|
|
137
|
+
cursor: pointer;
|
|
138
|
+
}
|
|
137
139
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
input[type="radio"] {
|
|
144
|
-
margin-right: 8px;
|
|
145
|
-
accent-color: $primary-color; // 🔴 Red color when selected
|
|
146
|
-
}
|
|
140
|
+
input[type="radio"] {
|
|
141
|
+
margin-right: 8px;
|
|
142
|
+
accent-color: $primary-color; // 🔴 Red color when selected
|
|
143
|
+
}
|
|
147
144
|
|
|
148
|
-
|
|
149
|
-
|
|
145
|
+
&:has(input[type="radio"]:checked) {
|
|
146
|
+
background-color: var(--_gray-200);
|
|
147
|
+
}
|
|
150
148
|
}
|
|
151
149
|
}
|
|
152
150
|
|
|
151
|
+
|
|
153
152
|
.footer {
|
|
154
153
|
display: flex;
|
|
155
154
|
justify-content: space-between;
|
|
@@ -166,6 +165,7 @@ $button-padding: 6px 12px;
|
|
|
166
165
|
justify-content: center;
|
|
167
166
|
flex: 1 0 0;
|
|
168
167
|
margin: $spacing-md 0px;
|
|
168
|
+
|
|
169
169
|
&:hover {
|
|
170
170
|
border: 1px solid $primary-color;
|
|
171
171
|
border-radius: 4px;
|
|
@@ -198,6 +198,7 @@ $button-padding: 6px 12px;
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
+
|
|
201
202
|
.position-bottom {
|
|
202
203
|
top: 80%;
|
|
203
204
|
margin-top: 8px;
|
|
@@ -206,7 +207,8 @@ $button-padding: 6px 12px;
|
|
|
206
207
|
}
|
|
207
208
|
|
|
208
209
|
.position-top {
|
|
209
|
-
top: -192px;
|
|
210
|
+
top: -192px;
|
|
211
|
+
/* shows above the button */
|
|
210
212
|
margin-bottom: 8px;
|
|
211
213
|
}
|
|
212
|
-
}
|
|
214
|
+
}
|
|
@@ -4,7 +4,7 @@ $Gray-600: #475467;
|
|
|
4
4
|
$link-color: #243dc6;
|
|
5
5
|
|
|
6
6
|
.customTreeWrapper {
|
|
7
|
-
padding: 20px;
|
|
7
|
+
padding: 20px 20px 20px 145px;
|
|
8
8
|
font-family: sans-serif;
|
|
9
9
|
|
|
10
10
|
h3 {
|
|
@@ -14,12 +14,22 @@ $link-color: #243dc6;
|
|
|
14
14
|
line-height: 28px;
|
|
15
15
|
margin-bottom: 12px;
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
.treeNode {
|
|
18
|
+
position: relative;
|
|
19
|
+
&::after {
|
|
20
|
+
content: "";
|
|
21
|
+
position: absolute;
|
|
22
|
+
bottom: 0;
|
|
23
|
+
left: 0;
|
|
24
|
+
width: 100%;
|
|
25
|
+
border-bottom:1px dotted var(--_gray-300);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
18
28
|
.treeNode,
|
|
19
29
|
.treeItem {
|
|
20
30
|
position: relative;
|
|
21
31
|
padding-left: 16px;
|
|
22
|
-
border-left: 1px dotted
|
|
32
|
+
border-left: 1px dotted var(--_gray-300);
|
|
23
33
|
margin: 24px 0;
|
|
24
34
|
}
|
|
25
35
|
|
package/dist/loader.scss
CHANGED
|
@@ -35,3 +35,58 @@
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
// fetch data loader
|
|
41
|
+
.fetch-data-loader {
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
gap: 6px;
|
|
45
|
+
background-color: var(--_base-white);
|
|
46
|
+
border-radius: 50%;
|
|
47
|
+
padding: 16px;
|
|
48
|
+
width: 60px;
|
|
49
|
+
height: 60px;
|
|
50
|
+
border: 1px solid var(--_gray-200);
|
|
51
|
+
margin: 0 auto;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.line {
|
|
55
|
+
width: 0%;
|
|
56
|
+
height: 8px;
|
|
57
|
+
background-color: var(--_primary-400);
|
|
58
|
+
border-radius: 4px;
|
|
59
|
+
animation: expand-line 1.2s ease-in-out infinite;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.line:nth-child(1) {
|
|
63
|
+
animation-delay: 0s;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.line:nth-child(2) {
|
|
67
|
+
animation-delay: 0.3s;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.line:nth-child(3) {
|
|
71
|
+
animation-delay: 0.6s;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.line:nth-child(4) {
|
|
75
|
+
animation-delay: 0.9s;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@keyframes expand-line {
|
|
79
|
+
0% {
|
|
80
|
+
width: 0%;
|
|
81
|
+
opacity: 0.2;
|
|
82
|
+
}
|
|
83
|
+
50% {
|
|
84
|
+
width: 100%;
|
|
85
|
+
opacity: 1;
|
|
86
|
+
}
|
|
87
|
+
100% {
|
|
88
|
+
width: 0%;
|
|
89
|
+
opacity: 0.2;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
package/dist/modal.scss
CHANGED
|
@@ -299,8 +299,10 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
299
299
|
z-index: $z-index-modal;
|
|
300
300
|
display: flex;
|
|
301
301
|
flex-direction: column;
|
|
302
|
-
max-height: 100vh;
|
|
303
|
-
max-width: 1200px;
|
|
302
|
+
// max-height: 100vh;
|
|
303
|
+
// max-width: 1200px;
|
|
304
|
+
max-height: calc(100vw - 24px);
|
|
305
|
+
max-width: calc(100vw - 24px);
|
|
304
306
|
|
|
305
307
|
.product-list {
|
|
306
308
|
flex: 1;
|
|
@@ -559,7 +561,7 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
559
561
|
background-color: transparent; /* Make the main container transparent */
|
|
560
562
|
|
|
561
563
|
.min-toolbar {
|
|
562
|
-
background-color:
|
|
564
|
+
background-color: var(--_base-white);
|
|
563
565
|
display: flex;
|
|
564
566
|
align-items: center; /* Align items vertically in the toolbar */
|
|
565
567
|
padding-inline-start: 16px; /* Add padding to the toolbar */
|
|
@@ -569,6 +571,7 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
569
571
|
|
|
570
572
|
&.active {
|
|
571
573
|
display: flex;
|
|
574
|
+
background-color: var(--_base-white);
|
|
572
575
|
}
|
|
573
576
|
|
|
574
577
|
.cart-btn {
|
|
@@ -594,6 +597,7 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
594
597
|
.actions {
|
|
595
598
|
display: flex;
|
|
596
599
|
gap: 8px;
|
|
600
|
+
|
|
597
601
|
|
|
598
602
|
span {
|
|
599
603
|
cursor: pointer;
|
|
@@ -612,13 +616,20 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
612
616
|
stroke: var(--_gray-900)
|
|
613
617
|
}
|
|
614
618
|
}
|
|
615
|
-
[title="
|
|
619
|
+
&[title="Maximize"] {
|
|
616
620
|
svg {
|
|
617
621
|
width: 14px;
|
|
618
622
|
height: 14px;
|
|
619
623
|
}
|
|
620
624
|
}
|
|
621
625
|
|
|
626
|
+
&[title="close"] {
|
|
627
|
+
svg {
|
|
628
|
+
width: 20px;
|
|
629
|
+
height: 20px;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
|
|
622
633
|
svg {
|
|
623
634
|
width: 20px;
|
|
624
635
|
height: 20px;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "./functions.scss" as *;
|
|
3
|
+
@use "./prefix-list.scss" as *;
|
|
4
|
+
|
|
5
|
+
$overflow: (
|
|
6
|
+
class: (
|
|
7
|
+
scrollable: "flx-oflow",
|
|
8
|
+
),
|
|
9
|
+
attributes: (
|
|
10
|
+
vertical: "data-scroll-vertical",
|
|
11
|
+
horizontal: "data-scroll-horizontal",
|
|
12
|
+
maxHeight: "data-max-height",
|
|
13
|
+
displayScrollbar: "data-scrollbar",
|
|
14
|
+
),
|
|
15
|
+
directions: (
|
|
16
|
+
vertical: (
|
|
17
|
+
property: "overflow-y",
|
|
18
|
+
value: "scroll",
|
|
19
|
+
),
|
|
20
|
+
horizontal: (
|
|
21
|
+
property: "overflow-x",
|
|
22
|
+
value: "scroll",
|
|
23
|
+
),
|
|
24
|
+
),
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
@mixin FlexOverflowModuleStyles() {
|
|
28
|
+
$cls: map.get($overflow, class);
|
|
29
|
+
$attrs: map.get($overflow, attributes);
|
|
30
|
+
$dirs: map.get($overflow, directions);
|
|
31
|
+
|
|
32
|
+
:is(.#{map.get($cls, scrollable)}) {
|
|
33
|
+
// overflow-x / overflow-y per direction
|
|
34
|
+
@each $key, $config in $dirs {
|
|
35
|
+
$prop: map.get($config, property);
|
|
36
|
+
$val: map.get($config, value);
|
|
37
|
+
$attr: map.get($attrs, $key);
|
|
38
|
+
|
|
39
|
+
&[#{$attr}="#{$val}"] {
|
|
40
|
+
#{$prop}: #{$val};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// max-height only when vertical scroll is active
|
|
45
|
+
&[#{map.get($attrs, vertical)}="scroll"] {
|
|
46
|
+
&[#{map.get($attrs, maxHeight)}] {
|
|
47
|
+
max-height: var(--cms-max-height);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// scrollbar styling only when data-scrollbar=true
|
|
52
|
+
&[#{map.get($attrs, displayScrollbar)}="true"] {
|
|
53
|
+
&::-webkit-scrollbar {
|
|
54
|
+
width: var(--cms-scrollbar-width, 8px);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&::-webkit-scrollbar-thumb {
|
|
58
|
+
background-color: var(--cms-scrollbar-thumb-color, rgba(0, 0, 0, 0.3));
|
|
59
|
+
border-radius: var(--cms-scrollbar-radius, 4px);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
package/dist/section.scss
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
@use "./position-module.scss" as *;
|
|
5
5
|
@use "./animation-control.scss" as *;
|
|
6
6
|
@use "./responsive-behaviour.scss" as *;
|
|
7
|
+
@use "./overflow-module.scss" as *;
|
|
7
8
|
|
|
8
9
|
$activeElementSelector: "[data-has-clicked='true']";
|
|
9
10
|
$repeterLElement: '[data-element-type="repeater"]';
|
|
@@ -43,6 +44,9 @@ body {
|
|
|
43
44
|
|
|
44
45
|
// Responsive
|
|
45
46
|
@include FlexElementResponsiveBehaviourStyles();
|
|
47
|
+
|
|
48
|
+
// overflow
|
|
49
|
+
@include FlexOverflowModuleStyles();
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
section {
|
|
@@ -161,3 +161,9 @@ export type FlexPositionDataType = {
|
|
|
161
161
|
};
|
|
162
162
|
zIndex: string;
|
|
163
163
|
};
|
|
164
|
+
export type FlexOverFlowDataType = {
|
|
165
|
+
displayScrollbar: Record<string, CMSIBCommonInterface>;
|
|
166
|
+
overflowContent: Record<string, CMSIBCommonInterface>;
|
|
167
|
+
scrollDirection: Record<string, CMSIBCommonInterface>;
|
|
168
|
+
maxHeight: Record<string, CMSIBCommonInterface>;
|
|
169
|
+
};
|