@sc-360-v2/storefront-cms-library 0.3.34 → 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/bulk-order-pad.scss +26 -7
- package/dist/cart-details.scss +74 -9
- package/dist/cart-summary.scss +47 -22
- 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/empty-states.scss +42 -10
- package/dist/loader.scss +55 -0
- package/dist/modal.scss +38 -16
- package/dist/overflow-module.scss +63 -0
- package/dist/section.scss +4 -0
- package/dist/submit-quote.scss +2 -1
- 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/dist/widget.scss +1 -0
- package/package.json +1 -1
|
@@ -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/empty-states.scss
CHANGED
|
@@ -17,36 +17,68 @@ p {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.
|
|
20
|
+
.empty_cart_wrapper {
|
|
21
21
|
display: flex;
|
|
22
|
-
width: 100%;
|
|
23
22
|
flex-direction: column;
|
|
24
|
-
gap: 6px;
|
|
25
23
|
align-items: center;
|
|
26
24
|
justify-content: center;
|
|
27
|
-
flex: 1 1 auto;
|
|
28
25
|
width: 100%;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
justify-content: center;
|
|
32
|
-
align-items: center;
|
|
26
|
+
gap: 6px;
|
|
27
|
+
margin-top: 24px;
|
|
33
28
|
img {
|
|
34
29
|
max-width: 100px;
|
|
35
30
|
max-height: 100px;
|
|
36
31
|
}
|
|
37
32
|
|
|
38
|
-
.
|
|
33
|
+
.empty_msg_title {
|
|
39
34
|
font-family: "Lato";
|
|
40
35
|
font-weight: 700;
|
|
41
36
|
font-size: 24px;
|
|
42
37
|
color: var(--_gray-900);
|
|
43
38
|
line-height: 32px;
|
|
39
|
+
margin-top: 24px;
|
|
44
40
|
}
|
|
45
41
|
|
|
46
|
-
.
|
|
42
|
+
.empty_msg_desc {
|
|
47
43
|
font-family: "Lato";
|
|
48
44
|
font-size: 14px;
|
|
49
45
|
line-height: 20px;
|
|
50
46
|
color: var(--_gray-900);
|
|
51
47
|
}
|
|
48
|
+
.emtpy_cart_btn {
|
|
49
|
+
display: flex;
|
|
50
|
+
gap: 12px;
|
|
51
|
+
margin-top: 24px;
|
|
52
|
+
.empty_crt_btn {
|
|
53
|
+
padding: 12px 24px;
|
|
54
|
+
border-radius: 6px;
|
|
55
|
+
background-color: var(--_primary-400);
|
|
56
|
+
font-weight: 600px;
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
gap: 8px;
|
|
60
|
+
&:hover {
|
|
61
|
+
background-color: var(--_primary-500);
|
|
62
|
+
}
|
|
63
|
+
.label {
|
|
64
|
+
color: var(--_base-white);
|
|
65
|
+
font-size: 16px;
|
|
66
|
+
}
|
|
67
|
+
svg path {
|
|
68
|
+
stroke: var(--_base-white);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
.empty_wl_btn {
|
|
72
|
+
padding: 12px 24px;
|
|
73
|
+
border-radius: 6px;
|
|
74
|
+
background-color: var(--_base-white);
|
|
75
|
+
color: var(--_primary-400);
|
|
76
|
+
font-weight: 500;
|
|
77
|
+
font-size: 16px;
|
|
78
|
+
&:hover {
|
|
79
|
+
background-color: var(--_gray-50);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
}
|
|
52
84
|
}
|
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
|
@@ -107,11 +107,19 @@ $active_btn_text_color: #fff;
|
|
|
107
107
|
display: flex;
|
|
108
108
|
align-items: center;
|
|
109
109
|
justify-content: center;
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
border-radius: 4px;
|
|
111
|
+
span {
|
|
112
|
+
display: flex;
|
|
113
|
+
svg {
|
|
112
114
|
width: 20px;
|
|
113
115
|
height: 20px;
|
|
114
116
|
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
&:hover {
|
|
121
|
+
background-color: var(--_gray-100);
|
|
122
|
+
}
|
|
115
123
|
}
|
|
116
124
|
}
|
|
117
125
|
|
|
@@ -248,7 +256,7 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
248
256
|
.wishlist-modal {
|
|
249
257
|
display: flex;
|
|
250
258
|
flex-direction: column;
|
|
251
|
-
padding:
|
|
259
|
+
padding: 16px;
|
|
252
260
|
width: 100%;
|
|
253
261
|
.wishlist-modal-section {
|
|
254
262
|
gap: 16px !important;
|
|
@@ -291,8 +299,10 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
291
299
|
z-index: $z-index-modal;
|
|
292
300
|
display: flex;
|
|
293
301
|
flex-direction: column;
|
|
294
|
-
max-height: 100vh;
|
|
295
|
-
max-width: 1200px;
|
|
302
|
+
// max-height: 100vh;
|
|
303
|
+
// max-width: 1200px;
|
|
304
|
+
max-height: calc(100vw - 24px);
|
|
305
|
+
max-width: calc(100vw - 24px);
|
|
296
306
|
|
|
297
307
|
.product-list {
|
|
298
308
|
flex: 1;
|
|
@@ -336,17 +346,16 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
336
346
|
padding: 16px;
|
|
337
347
|
|
|
338
348
|
.left-col {
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
.title {
|
|
345
|
-
color: var(--Gray-900, #101828);
|
|
346
|
-
font-size: 14px;
|
|
349
|
+
|
|
350
|
+
.title {
|
|
351
|
+
color: var(--_gray-900, #101828);
|
|
352
|
+
font-size: 16px;
|
|
347
353
|
font-weight: 700;
|
|
348
354
|
line-height: 24px;
|
|
349
355
|
text-transform: capitalize;
|
|
356
|
+
display: flex;
|
|
357
|
+
gap: 10px;
|
|
358
|
+
align-items: center;
|
|
350
359
|
// font-size: $font-size-lg;
|
|
351
360
|
// font-weight: 600;
|
|
352
361
|
// display: flex;
|
|
@@ -383,7 +392,9 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
383
392
|
}
|
|
384
393
|
}
|
|
385
394
|
|
|
386
|
-
|
|
395
|
+
|
|
396
|
+
}
|
|
397
|
+
.actions {
|
|
387
398
|
display: flex;
|
|
388
399
|
align-items: center;
|
|
389
400
|
gap: 12px;
|
|
@@ -413,6 +424,8 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
413
424
|
height: 20px !important;
|
|
414
425
|
}
|
|
415
426
|
}
|
|
427
|
+
|
|
428
|
+
|
|
416
429
|
}
|
|
417
430
|
|
|
418
431
|
.input-group {
|
|
@@ -548,7 +561,7 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
548
561
|
background-color: transparent; /* Make the main container transparent */
|
|
549
562
|
|
|
550
563
|
.min-toolbar {
|
|
551
|
-
background-color:
|
|
564
|
+
background-color: var(--_base-white);
|
|
552
565
|
display: flex;
|
|
553
566
|
align-items: center; /* Align items vertically in the toolbar */
|
|
554
567
|
padding-inline-start: 16px; /* Add padding to the toolbar */
|
|
@@ -558,6 +571,7 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
558
571
|
|
|
559
572
|
&.active {
|
|
560
573
|
display: flex;
|
|
574
|
+
background-color: var(--_base-white);
|
|
561
575
|
}
|
|
562
576
|
|
|
563
577
|
.cart-btn {
|
|
@@ -583,6 +597,7 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
583
597
|
.actions {
|
|
584
598
|
display: flex;
|
|
585
599
|
gap: 8px;
|
|
600
|
+
|
|
586
601
|
|
|
587
602
|
span {
|
|
588
603
|
cursor: pointer;
|
|
@@ -601,13 +616,20 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
601
616
|
stroke: var(--_gray-900)
|
|
602
617
|
}
|
|
603
618
|
}
|
|
604
|
-
[title="
|
|
619
|
+
&[title="Maximize"] {
|
|
605
620
|
svg {
|
|
606
621
|
width: 14px;
|
|
607
622
|
height: 14px;
|
|
608
623
|
}
|
|
609
624
|
}
|
|
610
625
|
|
|
626
|
+
&[title="close"] {
|
|
627
|
+
svg {
|
|
628
|
+
width: 20px;
|
|
629
|
+
height: 20px;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
|
|
611
633
|
svg {
|
|
612
634
|
width: 20px;
|
|
613
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 {
|
package/dist/submit-quote.scss
CHANGED
|
@@ -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
|
+
};
|
|
@@ -22,16 +22,6 @@ declare enum SelectorKeysEnum {
|
|
|
22
22
|
}
|
|
23
23
|
export declare const getDefaultData: () => {
|
|
24
24
|
layout: {
|
|
25
|
-
selectorKey: SelectorKeysEnum;
|
|
26
|
-
width: {
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
} | undefined;
|
|
29
|
-
height: import("../../interfaces/global").CMSIBSizeInterface | undefined;
|
|
30
|
-
margin: import("../../interfaces/global").CSSPaddingValues | undefined;
|
|
31
|
-
padding: import("../../interfaces/global").CSSPaddingValues | undefined;
|
|
32
|
-
overflowContent: CMSIBCommonInterface | undefined;
|
|
33
|
-
scrollDirection: CMSIBCommonInterface | undefined;
|
|
34
|
-
displayScrollbar: CMSIBCommonInterface | undefined;
|
|
35
25
|
positionType: CMSIBCommonInterface | undefined;
|
|
36
26
|
pinTo: CMSIBCommonInterface | undefined;
|
|
37
27
|
tabPosition: {
|
|
@@ -89,6 +79,17 @@ export declare const getDefaultData: () => {
|
|
|
89
79
|
property: string;
|
|
90
80
|
propertyType: CMSElementEditTypes;
|
|
91
81
|
};
|
|
82
|
+
overflowContent: CMSIBCommonInterface | undefined;
|
|
83
|
+
scrollDirection: CMSIBCommonInterface | undefined;
|
|
84
|
+
displayScrollbar: CMSIBCommonInterface | undefined;
|
|
85
|
+
maxHeight: import("../../interfaces/global").CMSIBSizeInterface | undefined;
|
|
86
|
+
selectorKey: SelectorKeysEnum;
|
|
87
|
+
width: {
|
|
88
|
+
[key: string]: any;
|
|
89
|
+
} | undefined;
|
|
90
|
+
height: import("../../interfaces/global").CMSIBSizeInterface | undefined;
|
|
91
|
+
margin: import("../../interfaces/global").CSSPaddingValues | undefined;
|
|
92
|
+
padding: import("../../interfaces/global").CSSPaddingValues | undefined;
|
|
92
93
|
};
|
|
93
94
|
design: {
|
|
94
95
|
selectorKey: SelectorKeysEnum;
|
|
@@ -7,6 +7,7 @@ export interface CMSElementEditPopupLayoutInterface {
|
|
|
7
7
|
};
|
|
8
8
|
height?: CMSIBSizeInterface;
|
|
9
9
|
minHeight?: CMSIBSizeInterface;
|
|
10
|
+
maxHeight?: CMSIBSizeInterface;
|
|
10
11
|
margin?: CSSPaddingValues;
|
|
11
12
|
padding?: CSSPaddingValues;
|
|
12
13
|
overflowContent?: CMSIBCommonInterface;
|
|
@@ -103,3 +104,9 @@ export interface CMSElementEditPopupInterface<L = CMSElementEditPopupLayoutInter
|
|
|
103
104
|
dataConnector?: any;
|
|
104
105
|
}
|
|
105
106
|
export declare const cssInputInstances: CMSElementEditPopupLayoutInterface & CMSElementEditPopupDesignInterface;
|
|
107
|
+
export declare const overflowDefaultSchema: {
|
|
108
|
+
overflowContent: CMSIBCommonInterface | undefined;
|
|
109
|
+
scrollDirection: CMSIBCommonInterface | undefined;
|
|
110
|
+
displayScrollbar: CMSIBCommonInterface | undefined;
|
|
111
|
+
maxHeight: CMSIBSizeInterface | undefined;
|
|
112
|
+
};
|
|
@@ -13,16 +13,6 @@ declare enum SelectorKeysEnum {
|
|
|
13
13
|
}
|
|
14
14
|
export declare const getDefaultData: () => {
|
|
15
15
|
layout: {
|
|
16
|
-
selectorKey: SelectorKeysEnum;
|
|
17
|
-
width: {
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
} | undefined;
|
|
20
|
-
height: import("../../interfaces/global").CMSIBSizeInterface | undefined;
|
|
21
|
-
margin: import("../../interfaces/global").CSSPaddingValues | undefined;
|
|
22
|
-
padding: import("../../interfaces/global").CSSPaddingValues | undefined;
|
|
23
|
-
overflowContent: CMSIBCommonInterface | undefined;
|
|
24
|
-
scrollDirection: CMSIBCommonInterface | undefined;
|
|
25
|
-
displayScrollbar: CMSIBCommonInterface | undefined;
|
|
26
16
|
positionType: CMSIBCommonInterface | undefined;
|
|
27
17
|
pinTo: CMSIBCommonInterface | undefined;
|
|
28
18
|
tabPosition: {
|
|
@@ -80,6 +70,17 @@ export declare const getDefaultData: () => {
|
|
|
80
70
|
property: string;
|
|
81
71
|
propertyType: CMSElementEditTypes;
|
|
82
72
|
};
|
|
73
|
+
overflowContent: CMSIBCommonInterface | undefined;
|
|
74
|
+
scrollDirection: CMSIBCommonInterface | undefined;
|
|
75
|
+
displayScrollbar: CMSIBCommonInterface | undefined;
|
|
76
|
+
maxHeight: import("../../interfaces/global").CMSIBSizeInterface | undefined;
|
|
77
|
+
selectorKey: SelectorKeysEnum;
|
|
78
|
+
width: {
|
|
79
|
+
[key: string]: any;
|
|
80
|
+
} | undefined;
|
|
81
|
+
height: import("../../interfaces/global").CMSIBSizeInterface | undefined;
|
|
82
|
+
margin: import("../../interfaces/global").CSSPaddingValues | undefined;
|
|
83
|
+
padding: import("../../interfaces/global").CSSPaddingValues | undefined;
|
|
83
84
|
};
|
|
84
85
|
design: {
|
|
85
86
|
selectorKey: SelectorKeysEnum;
|