@sc-360-v2/storefront-cms-library 0.3.13 → 0.3.14
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 +7 -1
- package/dist/badge.scss +382 -0
- package/dist/builder.js +1 -1
- package/dist/bulk-variant-picker copy.scss +1123 -0
- package/dist/bulk-variant-picker.scss +2629 -647
- package/dist/cart-summary.scss +11 -4
- package/dist/contact-us.scss +7 -1
- package/dist/filters.scss +42 -0
- package/dist/hotspot.scss +7 -1
- package/dist/product-image.scss +23 -13
- package/dist/submit-quote.scss +250 -0
- package/dist/table.scss +8 -2
- package/dist/types/builder/elements/badge/index.d.ts +26 -0
- package/dist/types/builder/enums/index.d.ts +1 -0
- package/dist/types/builder/index.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/badge.d.ts +47 -0
- package/dist/types/builder/tools/element-edit/bulkVariantPicker copy.d.ts +119 -0
- package/dist/types/builder/tools/element-edit/bulkVariantPicker.d.ts +54 -17
- package/dist/types/builder/tools/element-edit/index.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/variantPicker.d.ts +1 -1
- package/dist/types/global/types.d.ts +1 -1
- package/dist/uom-selector.scss +0 -1
- package/dist/widget.scss +2 -0
- package/package.json +1 -1
package/dist/cart-summary.scss
CHANGED
|
@@ -161,13 +161,20 @@ $resizeActive: '[data-cms-element-resizer="true"]';
|
|
|
161
161
|
gap: 8px;
|
|
162
162
|
align-self: stretch;
|
|
163
163
|
border-radius: 4px;
|
|
164
|
-
border: 1px solid #243dc6;
|
|
165
|
-
background: #243dc6;
|
|
166
|
-
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
167
|
-
color: #fff;
|
|
168
164
|
font-size: 16px;
|
|
169
165
|
font-weight: 600;
|
|
170
166
|
line-height: 24px;
|
|
167
|
+
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
168
|
+
&.proceed {
|
|
169
|
+
border: 1px solid #243dc6;
|
|
170
|
+
background: #243dc6;
|
|
171
|
+
color: #fff;
|
|
172
|
+
}
|
|
173
|
+
&.submit_quotes {
|
|
174
|
+
border: 1px solid #c9c9c9;
|
|
175
|
+
background: #fff;
|
|
176
|
+
color: #313131;
|
|
177
|
+
}
|
|
171
178
|
}
|
|
172
179
|
}
|
|
173
180
|
}
|
package/dist/contact-us.scss
CHANGED
|
@@ -4,7 +4,13 @@
|
|
|
4
4
|
[data-div-type="element"] {
|
|
5
5
|
&[data-element-type="contactUs"],
|
|
6
6
|
&[data-element-type="createForm"] {
|
|
7
|
-
width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
|
|
7
|
+
// width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
|
|
8
|
+
width: var(
|
|
9
|
+
--_sf-el-wh-st-mx,
|
|
10
|
+
calc(
|
|
11
|
+
1% * var(--_ctm-mob-ele-nw-wh-vl, var(--_ctm-tab-ele-nw-wh-vl, var(--_ctm-ele-nw-wh-vl)))
|
|
12
|
+
)
|
|
13
|
+
);
|
|
8
14
|
height: var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht))) !important;
|
|
9
15
|
margin: var(--_ctm-lt-mn, --_tst-lt-mn);
|
|
10
16
|
aspect-ratio: 1 / var(--_sf-aspect-ratio);
|
package/dist/filters.scss
CHANGED
|
@@ -678,12 +678,46 @@ $resizeActive: '[data-cms-element-resizer="true"]';
|
|
|
678
678
|
border-bottom: 1px solid var(--_gray-300);
|
|
679
679
|
}
|
|
680
680
|
li {
|
|
681
|
+
// display: flex;
|
|
682
|
+
// align-items: center;
|
|
683
|
+
// justify-content: space-between;
|
|
684
|
+
// padding-block: 6px;
|
|
685
|
+
// font-size: 14px;
|
|
681
686
|
display: flex;
|
|
682
687
|
align-items: center;
|
|
683
688
|
justify-content: space-between;
|
|
684
689
|
padding-block: 6px;
|
|
685
690
|
font-size: 14px;
|
|
686
691
|
|
|
692
|
+
.filter-li-inner {
|
|
693
|
+
display: flex;
|
|
694
|
+
align-items: center;
|
|
695
|
+
justify-content: space-between;
|
|
696
|
+
width: 100%;
|
|
697
|
+
gap: 8px;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
.filter-indicator {
|
|
701
|
+
width: 16px;
|
|
702
|
+
height: 16px;
|
|
703
|
+
flex-shrink: 0;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.filter-indicator img {
|
|
707
|
+
width: 16px;
|
|
708
|
+
height: 16px;
|
|
709
|
+
border-radius: 50%;
|
|
710
|
+
object-fit: cover;
|
|
711
|
+
border: 1px solid var(--_gray-300);
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
.color-circle {
|
|
715
|
+
width: 16px;
|
|
716
|
+
height: 16px;
|
|
717
|
+
border-radius: 50%;
|
|
718
|
+
border: 1px solid var(--_gray-300);
|
|
719
|
+
}
|
|
720
|
+
|
|
687
721
|
a {
|
|
688
722
|
// padding-block: 6px;
|
|
689
723
|
padding-left: 10px;
|
|
@@ -1231,6 +1265,14 @@ $resizeActive: '[data-cms-element-resizer="true"]';
|
|
|
1231
1265
|
-moz-user-select: none;
|
|
1232
1266
|
-ms-user-select: none;
|
|
1233
1267
|
user-select: none;
|
|
1268
|
+
.color-image {
|
|
1269
|
+
width: 15px;
|
|
1270
|
+
height: 15px;
|
|
1271
|
+
border-radius: 50%;
|
|
1272
|
+
border: 1px solid var(--_gray-200);
|
|
1273
|
+
object-fit: "cover";
|
|
1274
|
+
display: "block";
|
|
1275
|
+
}
|
|
1234
1276
|
.color {
|
|
1235
1277
|
width: 15px;
|
|
1236
1278
|
height: 15px;
|
package/dist/hotspot.scss
CHANGED
|
@@ -147,7 +147,13 @@ $data: (
|
|
|
147
147
|
|
|
148
148
|
[data-div-type="element"] {
|
|
149
149
|
&[data-element-type="imageHotspot"] {
|
|
150
|
-
width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
|
|
150
|
+
// width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
|
|
151
|
+
width: var(
|
|
152
|
+
--_sf-el-wh-st-mx,
|
|
153
|
+
calc(
|
|
154
|
+
1% * var(--_ctm-mob-ele-nw-wh-vl, var(--_ctm-tab-ele-nw-wh-vl, var(--_ctm-ele-nw-wh-vl)))
|
|
155
|
+
)
|
|
156
|
+
);
|
|
151
157
|
margin: var(--_ctm-lt-mn, --_tst-lt-mn);
|
|
152
158
|
height: var(--_ctm-lt-ht, var(--_tst-lt-ht));
|
|
153
159
|
// aspect-ratio: 1 / var(--_sf-aspect-ratio);
|
package/dist/product-image.scss
CHANGED
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
[data-div-type="element"] {
|
|
4
4
|
&[data-element-type="productImage"] {
|
|
5
5
|
// width: var(--_sf-nw-wh, var(--_tst-lt-wh));
|
|
6
|
-
width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
|
|
6
|
+
// width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
|
|
7
|
+
width: var(
|
|
8
|
+
--_sf-el-wh-st-mx,
|
|
9
|
+
calc(
|
|
10
|
+
1% * var(--_ctm-mob-ele-nw-wh-vl, var(--_ctm-tab-ele-nw-wh-vl, var(--_ctm-ele-nw-wh-vl)))
|
|
11
|
+
)
|
|
12
|
+
);
|
|
7
13
|
height: var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht)));
|
|
8
14
|
margin: var(--_ctm-mob-lt-mn, var(--_ctm-tab-lt-mn, var(--_ctm-lt-mn)));
|
|
9
15
|
|
|
@@ -29,18 +35,18 @@
|
|
|
29
35
|
// cursor: auto;
|
|
30
36
|
// }
|
|
31
37
|
|
|
32
|
-
&[data-view-state="full"] {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
38
|
+
// &[data-view-state="full"] {
|
|
39
|
+
// aspect-ratio: 1/0.01;
|
|
40
|
+
// & > .wrapper {
|
|
41
|
+
// & > div {
|
|
42
|
+
// height: 100%;
|
|
43
|
+
// }
|
|
44
|
+
// }
|
|
45
|
+
// img {
|
|
46
|
+
// height: 100%;
|
|
47
|
+
// object-fit: cover;
|
|
48
|
+
// }
|
|
49
|
+
// }
|
|
44
50
|
|
|
45
51
|
& > .wrapper {
|
|
46
52
|
width: 100%;
|
|
@@ -529,6 +535,7 @@
|
|
|
529
535
|
}
|
|
530
536
|
|
|
531
537
|
.embla__slide {
|
|
538
|
+
flex: 0 0 auto;
|
|
532
539
|
width: 100%;
|
|
533
540
|
height: 100%;
|
|
534
541
|
}
|
|
@@ -995,8 +1002,11 @@
|
|
|
995
1002
|
cursor: pointer;
|
|
996
1003
|
}
|
|
997
1004
|
width: 100%;
|
|
1005
|
+
max-width: 100%;
|
|
998
1006
|
height: 100%;
|
|
999
1007
|
display: flex;
|
|
1008
|
+
flex: 0 0 auto;
|
|
1009
|
+
|
|
1000
1010
|
// flex-direction: column;
|
|
1001
1011
|
|
|
1002
1012
|
background-color: var(
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
.submit-quote-main {
|
|
2
|
+
display: flex;
|
|
3
|
+
gap: 24px;
|
|
4
|
+
padding: 32px;
|
|
5
|
+
background-color: #f9f9f9;
|
|
6
|
+
|
|
7
|
+
.quote-items {
|
|
8
|
+
flex: 2;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.quote-item {
|
|
12
|
+
padding: 32px 0;
|
|
13
|
+
display: flex;
|
|
14
|
+
gap: 24px;
|
|
15
|
+
border-bottom: 1px dotted #d0d0d0;
|
|
16
|
+
|
|
17
|
+
.quote-item__image {
|
|
18
|
+
width: 120px;
|
|
19
|
+
height: 120px;
|
|
20
|
+
object-fit: cover;
|
|
21
|
+
border-radius: 6px;
|
|
22
|
+
background-color: #f0f0f0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.quote-item__details {
|
|
26
|
+
flex: 1;
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
|
|
30
|
+
.quote-item__header {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: row;
|
|
33
|
+
gap: 10px;
|
|
34
|
+
margin-bottom: 20px;
|
|
35
|
+
padding-bottom: 20px;
|
|
36
|
+
border-bottom: 1px dotted #d0d0d0;
|
|
37
|
+
|
|
38
|
+
.quote-item__title {
|
|
39
|
+
font-size: 18px;
|
|
40
|
+
font-weight: 600;
|
|
41
|
+
color: #111;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.quote-item__meta {
|
|
45
|
+
display: flex;
|
|
46
|
+
gap: 10px;
|
|
47
|
+
font-size: 18px;
|
|
48
|
+
color: #363636;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.quote-item__row {
|
|
53
|
+
display: flex;
|
|
54
|
+
gap: 60px;
|
|
55
|
+
align-items: flex-start;
|
|
56
|
+
|
|
57
|
+
.field {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
font-size: 14px;
|
|
61
|
+
|
|
62
|
+
label {
|
|
63
|
+
margin-bottom: 6px;
|
|
64
|
+
font-weight: 500;
|
|
65
|
+
color: #333;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.value {
|
|
69
|
+
font-weight: 600;
|
|
70
|
+
font-size: 16px;
|
|
71
|
+
color: #111;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
input {
|
|
75
|
+
height: 40px;
|
|
76
|
+
padding: 8px 12px;
|
|
77
|
+
font-size: 15px;
|
|
78
|
+
border: 1px solid #ccc;
|
|
79
|
+
border-radius: 6px;
|
|
80
|
+
outline: none;
|
|
81
|
+
width: 130px;
|
|
82
|
+
|
|
83
|
+
&:focus {
|
|
84
|
+
border-color: #2563eb;
|
|
85
|
+
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.input-with-prefix {
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
border: 1px solid #ccc;
|
|
93
|
+
border-radius: 6px;
|
|
94
|
+
overflow: hidden;
|
|
95
|
+
width: 130px;
|
|
96
|
+
height: 40px;
|
|
97
|
+
|
|
98
|
+
span {
|
|
99
|
+
background-color: #f9f9f9;
|
|
100
|
+
padding: 0 8px;
|
|
101
|
+
font-size: 15px;
|
|
102
|
+
color: #444;
|
|
103
|
+
border-right: 1px solid #ccc;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
input {
|
|
107
|
+
border: none;
|
|
108
|
+
width: 100%;
|
|
109
|
+
height: 100%;
|
|
110
|
+
padding-left: 6px;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.quote-item__totals {
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-direction: column;
|
|
118
|
+
gap: 16px;
|
|
119
|
+
text-align: right;
|
|
120
|
+
margin-left: auto;
|
|
121
|
+
min-width: 180px;
|
|
122
|
+
|
|
123
|
+
.quote-total {
|
|
124
|
+
display: flex;
|
|
125
|
+
flex-direction: column;
|
|
126
|
+
|
|
127
|
+
> div {
|
|
128
|
+
display: flex;
|
|
129
|
+
justify-content: flex-end;
|
|
130
|
+
align-items: baseline;
|
|
131
|
+
gap: 4px;
|
|
132
|
+
|
|
133
|
+
.label {
|
|
134
|
+
font-size: 14px;
|
|
135
|
+
color: #444;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.amount {
|
|
139
|
+
font-size: 18px;
|
|
140
|
+
font-weight: 700;
|
|
141
|
+
color: #111;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
small {
|
|
146
|
+
font-size: 13px;
|
|
147
|
+
color: #888;
|
|
148
|
+
margin-top: 4px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&.discounted {
|
|
152
|
+
.label {
|
|
153
|
+
color: #198754;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.amount {
|
|
157
|
+
color: #198754;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.quote-summary {
|
|
167
|
+
background: #f8f9fa;
|
|
168
|
+
border: 1px solid #e3e3e3;
|
|
169
|
+
border-radius: 8px;
|
|
170
|
+
padding: 24px;
|
|
171
|
+
width: 100%;
|
|
172
|
+
max-width: 400px;
|
|
173
|
+
|
|
174
|
+
h3 {
|
|
175
|
+
font-size: 18px;
|
|
176
|
+
font-weight: 600;
|
|
177
|
+
margin-bottom: 20px;
|
|
178
|
+
color: #333;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&__row {
|
|
182
|
+
display: flex;
|
|
183
|
+
justify-content: space-between;
|
|
184
|
+
align-items: center;
|
|
185
|
+
padding: 12px 0;
|
|
186
|
+
border-bottom: 1px dotted #ccc;
|
|
187
|
+
margin-bottom: 4px;
|
|
188
|
+
|
|
189
|
+
.label {
|
|
190
|
+
font-size: 14px;
|
|
191
|
+
color: #666;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.value {
|
|
195
|
+
font-size: 16px;
|
|
196
|
+
font-weight: 500;
|
|
197
|
+
color: #333;
|
|
198
|
+
|
|
199
|
+
&.highlight {
|
|
200
|
+
font-size: 24px;
|
|
201
|
+
font-weight: 700;
|
|
202
|
+
color: #000;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&--quoted {
|
|
207
|
+
margin-bottom: 20px;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&__notes {
|
|
212
|
+
width: 100%;
|
|
213
|
+
height: 100px;
|
|
214
|
+
padding: 12px;
|
|
215
|
+
border: 1px solid #ddd;
|
|
216
|
+
border-radius: 6px;
|
|
217
|
+
resize: none;
|
|
218
|
+
font-size: 14px;
|
|
219
|
+
font-family: inherit;
|
|
220
|
+
margin-bottom: 20px;
|
|
221
|
+
box-sizing: border-box;
|
|
222
|
+
|
|
223
|
+
&::placeholder {
|
|
224
|
+
color: #999;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
&:focus {
|
|
228
|
+
outline: none;
|
|
229
|
+
border-color: #1a40f2;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
&__button {
|
|
234
|
+
width: 100%;
|
|
235
|
+
padding: 14px;
|
|
236
|
+
background-color: #1a40f2;
|
|
237
|
+
color: #fff;
|
|
238
|
+
font-size: 16px;
|
|
239
|
+
font-weight: 600;
|
|
240
|
+
border: none;
|
|
241
|
+
border-radius: 6px;
|
|
242
|
+
cursor: pointer;
|
|
243
|
+
transition: background-color 0.2s ease;
|
|
244
|
+
|
|
245
|
+
&:hover {
|
|
246
|
+
background-color: #1232c8;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
package/dist/table.scss
CHANGED
|
@@ -267,7 +267,10 @@
|
|
|
267
267
|
);
|
|
268
268
|
|
|
269
269
|
.thead__row__divider {
|
|
270
|
-
height: var(
|
|
270
|
+
height: var(
|
|
271
|
+
--_ctm-mob-lt-mx-dy-se-hr-ht,
|
|
272
|
+
var(--_ctm-tab-lt-mx-dy-se-hr-ht, var(--_ctm-lt-mx-dy-se-hr-ht))
|
|
273
|
+
);
|
|
271
274
|
|
|
272
275
|
.th__col__divider {
|
|
273
276
|
padding: var(
|
|
@@ -330,7 +333,10 @@
|
|
|
330
333
|
var(--_ctm-tab-dn-te-rw-bd-cr, var(--_ctm-dn-te-rw-bd-cr))
|
|
331
334
|
);
|
|
332
335
|
|
|
333
|
-
height: var(
|
|
336
|
+
height: var(
|
|
337
|
+
--_ctm-mob-lt-mx-dy-se-rw-ht,
|
|
338
|
+
var(--_ctm-tab-lt-mx-dy-se-rw-ht, var(--_ctm-lt-mx-dy-se-rw-ht))
|
|
339
|
+
);
|
|
334
340
|
|
|
335
341
|
.td__col__divider {
|
|
336
342
|
padding: var(
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CommonStyleProperties } from "../../../global/style-properties";
|
|
2
|
+
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
3
|
+
import { AlignSelfValue, BoxSizingValue, GlobalImageAttributes, GridAreaValue, HeightValue, ImageBuilderAttributes, JustifySelfValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
|
|
4
|
+
import { BuilderAttributes, CMSElementInterface } from "../common";
|
|
5
|
+
export interface BadgeStyleProperties extends CommonStyleProperties {
|
|
6
|
+
minHeight?: MinHeightValue;
|
|
7
|
+
height?: HeightValue;
|
|
8
|
+
minWidth?: MinWidthValue;
|
|
9
|
+
maxWidth?: MaxWidthValue;
|
|
10
|
+
maxHeight?: MaxHeightValue;
|
|
11
|
+
gridArea?: GridAreaValue;
|
|
12
|
+
boxSizing?: BoxSizingValue;
|
|
13
|
+
padding?: PaddingValue;
|
|
14
|
+
justifySelf?: JustifySelfValue;
|
|
15
|
+
alignSelf?: AlignSelfValue;
|
|
16
|
+
}
|
|
17
|
+
export declare const getDefaultStyles: () => BadgeStyleProperties;
|
|
18
|
+
export interface CMSBadgeInterface extends Omit<CMSElementInterface, "attributes"> {
|
|
19
|
+
attributes: {
|
|
20
|
+
HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
|
|
21
|
+
BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
|
|
22
|
+
CUSTOM: any;
|
|
23
|
+
};
|
|
24
|
+
styles: BadgeStyleProperties;
|
|
25
|
+
childrenStyles?: CommonStyleProperties;
|
|
26
|
+
}
|
|
@@ -80,4 +80,5 @@ import * as layouterProItemSchema from "./elements/layouter-pro-item/index";
|
|
|
80
80
|
import * as userElementsSchema from "./elements/user-elements/index";
|
|
81
81
|
import * as filterResultsSchema from "./elements/filter-results/index";
|
|
82
82
|
import * as productSizeChartSchema from "./elements/product-sizechart/index";
|
|
83
|
-
|
|
83
|
+
import * as badgeSchema from "./elements/badge/index";
|
|
84
|
+
export { ElementEditSchema, amountEstimatorSchema, bulkVariantPickerSchema, buttonSchema, cmsTypes, codeSchema, commonFunctions, containerSchema, countdownSchema, embedSchema, enums, faqSchema, gallerySliderSchema, gridSchema, imageHotspotSchema, imageSchema, interfaces, mapSchema, paymentMethodsSchema, pickupLocationsSchema, priceSchema, productActionsSchema, productHighlightsSchema, productImageSchema, productInventorySchema, productPromotionsSchema, quantitySelectorSchema, scrollSchema, sectionSchema, shippingEstimatorSchema, socialIconsSchema, stackSchema, storeLocationsSchema, tabSchema, tableSchema, textSchema, uomSelectorSchema, variantPickerSchema, videoSChema, volumePricingSchema, lightboxSchema, cartSchema, profileSchema, productSchema, repeaterSchema, brandSchema, bundleSchema, bundleDetailsSchema, brandImageSchema, lightBoxV2Schema, searchSchema, layouterSchema, layouterItemSchema, categoryDetailsSchema, contactUsSchema, loginSchema, createFormSchema, resetPasswordSchema, searchResultsHeadingSchema, itemStockSchema, lineItemSchema, tabsV2Schema, tabsContainerSchema, marchandiserSetsSchema, formBuilder, quickLinksSchema, addOrderSchema, buyForTabsSchema, buyForTabsContainerSchema, checkoutSchema, toasterSchema, spotlightSchema, productCustomizationsSchema, iconListSchema, orderStatusSchema, menuV2Schema, menuItemSchema, layouterProSchema, layouterProItemSchema, userElementsSchema, filterResultsSchema, productSizeChartSchema, badgeSchema, };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { CMSIBCommonInterface, CMSIBSizeInterface, PaddingProps } from "../../interfaces/global";
|
|
2
|
+
import { AlignItemsValue, JustifyContentValue, StackDirectionType } from "../../../global/types";
|
|
3
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
4
|
+
interface selfLayoutInterface {
|
|
5
|
+
selectorKey: string;
|
|
6
|
+
badge: CMSIBCommonInterface;
|
|
7
|
+
badgeType: CMSIBCommonInterface;
|
|
8
|
+
direction: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
|
|
9
|
+
value: StackDirectionType;
|
|
10
|
+
};
|
|
11
|
+
itemGap: Pick<CMSIBCommonInterface, "property" | "propertyType"> & PaddingProps;
|
|
12
|
+
justifyContent: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
|
|
13
|
+
value: JustifyContentValue;
|
|
14
|
+
};
|
|
15
|
+
alignItems: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
|
|
16
|
+
value: AlignItemsValue;
|
|
17
|
+
};
|
|
18
|
+
badgePosition: CMSIBCommonInterface;
|
|
19
|
+
spacingBetweenItems: CMSIBSizeInterface;
|
|
20
|
+
badgeItemStyle: CMSIBCommonInterface;
|
|
21
|
+
}
|
|
22
|
+
export interface selfDesignInterface {
|
|
23
|
+
selectorKey: string;
|
|
24
|
+
badge: {
|
|
25
|
+
selectorKey: string;
|
|
26
|
+
defaultState: any;
|
|
27
|
+
newState: any;
|
|
28
|
+
bestsellerState: any;
|
|
29
|
+
limitedState: any;
|
|
30
|
+
exclusiveState: any;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export declare enum BadgeSelectorKeysEnum {
|
|
34
|
+
HOVER_STATE = "hover",
|
|
35
|
+
DEFAULT_STATE = "default",
|
|
36
|
+
NEW_STATE = "newState",
|
|
37
|
+
BESTSELLER_STATE = "bestsellerState",
|
|
38
|
+
LIMITED_STATE = "limitedState",
|
|
39
|
+
EXCLUSIVE_STATE = "exclusiveState",
|
|
40
|
+
LAYOUT = "layout",
|
|
41
|
+
CONTENT = "content",
|
|
42
|
+
DESIGN = "design",
|
|
43
|
+
BADGE = "badge",
|
|
44
|
+
DATA_CONNECTOR = "dataConnector"
|
|
45
|
+
}
|
|
46
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { CMSIBCommonInterface } from "../../interfaces/global";
|
|
2
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
3
|
+
interface selfLayoutInterface {
|
|
4
|
+
selectorKey: string;
|
|
5
|
+
optionSelection: CMSIBCommonInterface;
|
|
6
|
+
displayStyle: CMSIBCommonInterface;
|
|
7
|
+
displayOutOfStockValues: CMSIBCommonInterface;
|
|
8
|
+
notifyMeButton: CMSIBCommonInterface;
|
|
9
|
+
quantitySelectorForVariantSelector: CMSIBCommonInterface;
|
|
10
|
+
dividerBetweenItems: CMSIBCommonInterface;
|
|
11
|
+
optionTitleValueSpacing: CMSIBCommonInterface;
|
|
12
|
+
remainingDisplayStyle: CMSIBCommonInterface;
|
|
13
|
+
allowUserToSearch: CMSIBCommonInterface;
|
|
14
|
+
allowUserToFilter: CMSIBCommonInterface;
|
|
15
|
+
swatchTypeDisplayStyle: {
|
|
16
|
+
selectorKey: string;
|
|
17
|
+
displayValues: CMSIBCommonInterface;
|
|
18
|
+
itemPadding: CMSIBCommonInterface;
|
|
19
|
+
itemSpacing: CMSIBCommonInterface;
|
|
20
|
+
maxItemsToDisplay: CMSIBCommonInterface;
|
|
21
|
+
overflowItems: CMSIBCommonInterface;
|
|
22
|
+
swatchImageType: CMSIBCommonInterface;
|
|
23
|
+
};
|
|
24
|
+
singleSelectDisplayStyle: {
|
|
25
|
+
selectorKey: string;
|
|
26
|
+
displayValues: CMSIBCommonInterface;
|
|
27
|
+
itemSpacing: CMSIBCommonInterface;
|
|
28
|
+
itemPadding: CMSIBCommonInterface;
|
|
29
|
+
maxItemsToDisplay: CMSIBCommonInterface;
|
|
30
|
+
overflowItems: CMSIBCommonInterface;
|
|
31
|
+
imageBehaviour: CMSIBCommonInterface;
|
|
32
|
+
itemsPerRow: CMSIBCommonInterface;
|
|
33
|
+
itemContentAlignment: CMSIBCommonInterface;
|
|
34
|
+
overflowDirection: CMSIBCommonInterface;
|
|
35
|
+
};
|
|
36
|
+
dropdownDisplayStyle: {
|
|
37
|
+
selectorKey: string;
|
|
38
|
+
dropdownOptionsSpacing: CMSIBCommonInterface;
|
|
39
|
+
dropdownOptionsPadding: CMSIBCommonInterface;
|
|
40
|
+
dropdownStyle: CMSIBCommonInterface;
|
|
41
|
+
optionAndListSpacing: CMSIBCommonInterface;
|
|
42
|
+
dropdownListItemSpacing: CMSIBCommonInterface;
|
|
43
|
+
dropdownListItemPadding: CMSIBCommonInterface;
|
|
44
|
+
dividerBetweenListItems: CMSIBCommonInterface;
|
|
45
|
+
maxItemsToDisplay: CMSIBCommonInterface;
|
|
46
|
+
overflowItems: CMSIBCommonInterface;
|
|
47
|
+
};
|
|
48
|
+
groupedOptionsDisplayStyle: {
|
|
49
|
+
selectorKey: string;
|
|
50
|
+
groupsDisplayStyle: CMSIBCommonInterface;
|
|
51
|
+
groupSpacing: CMSIBCommonInterface;
|
|
52
|
+
groupPadding: CMSIBCommonInterface;
|
|
53
|
+
groupHeaderAndOptionSpacing: CMSIBCommonInterface;
|
|
54
|
+
tabDirection: CMSIBCommonInterface;
|
|
55
|
+
tabLayout: CMSIBCommonInterface;
|
|
56
|
+
tabAlignment: CMSIBCommonInterface;
|
|
57
|
+
tabSpacing: CMSIBCommonInterface;
|
|
58
|
+
tabAndContainerSpacing: CMSIBCommonInterface;
|
|
59
|
+
tabHorizontalPadding: CMSIBCommonInterface;
|
|
60
|
+
tabVerticalPadding: CMSIBCommonInterface;
|
|
61
|
+
containerPadding: CMSIBCommonInterface;
|
|
62
|
+
overflowItems: CMSIBCommonInterface;
|
|
63
|
+
tabRowSpacing: CMSIBCommonInterface;
|
|
64
|
+
expandIconPositon: CMSIBCommonInterface;
|
|
65
|
+
expandFirstItemByDefault: CMSIBCommonInterface;
|
|
66
|
+
allowMultipleOpenItems: CMSIBCommonInterface;
|
|
67
|
+
itemDividers: CMSIBCommonInterface;
|
|
68
|
+
accordionSpacing: CMSIBCommonInterface;
|
|
69
|
+
accordionAndContainerSpacing: CMSIBCommonInterface;
|
|
70
|
+
accordionHorizontalPadding: CMSIBCommonInterface;
|
|
71
|
+
accordionVerticalPadding: CMSIBCommonInterface;
|
|
72
|
+
groupAndContainerSpacing: CMSIBCommonInterface;
|
|
73
|
+
groupHorizontalPadding: CMSIBCommonInterface;
|
|
74
|
+
groupVerticalPadding: CMSIBCommonInterface;
|
|
75
|
+
canCollapseGroups: CMSIBCommonInterface;
|
|
76
|
+
};
|
|
77
|
+
matrixDisplayStyle: {
|
|
78
|
+
selectorKey: string;
|
|
79
|
+
header: CMSIBCommonInterface;
|
|
80
|
+
headerHeight: CMSIBCommonInterface;
|
|
81
|
+
rowHeight: CMSIBCommonInterface;
|
|
82
|
+
headerDivider: CMSIBCommonInterface;
|
|
83
|
+
rowDivider: CMSIBCommonInterface;
|
|
84
|
+
columnDivider: CMSIBCommonInterface;
|
|
85
|
+
alternativeRowColors: CMSIBCommonInterface;
|
|
86
|
+
headerCellPadding: CMSIBCommonInterface;
|
|
87
|
+
rowCellPadding: CMSIBCommonInterface;
|
|
88
|
+
contentAlignment: CMSIBCommonInterface;
|
|
89
|
+
rowsPerPage: CMSIBCommonInterface;
|
|
90
|
+
overflowControl: CMSIBCommonInterface;
|
|
91
|
+
paginationType: CMSIBCommonInterface;
|
|
92
|
+
paginationAliginment: CMSIBCommonInterface;
|
|
93
|
+
showMoreRows: CMSIBCommonInterface;
|
|
94
|
+
};
|
|
95
|
+
groupedMatrixDisplayStyle: {
|
|
96
|
+
selectorKey: string;
|
|
97
|
+
groupsDisplayStyle: CMSIBCommonInterface;
|
|
98
|
+
groupSpacing: CMSIBCommonInterface;
|
|
99
|
+
groupPadding: CMSIBCommonInterface;
|
|
100
|
+
groupHeaderAndOptionSpacing: CMSIBCommonInterface;
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
interface selfDesignInterface {
|
|
104
|
+
selectorKey: string;
|
|
105
|
+
}
|
|
106
|
+
export declare enum BulkVariantPickerSelectorKeysEnum {
|
|
107
|
+
LAYOUT = "layout",
|
|
108
|
+
CONTENT = "content",
|
|
109
|
+
DESIGN = "design",
|
|
110
|
+
SWATFH_TYPE_DISPLAY_STYLE = "swatchTypeDisplayStyle",
|
|
111
|
+
SINGLE_SELECT_DISPLAY_STYLE = "singleSelectDisplayStyle",
|
|
112
|
+
DROPDOWN_DISPLAY_STYLE = "dropdownDisplayStyle",
|
|
113
|
+
GROUPED_OPTION_DISPLAY_STYLE = "groupedOptionsDisplayStyle",
|
|
114
|
+
MATRIX_DISPLAY_STYLE = "matrixDisplayStyle",
|
|
115
|
+
GROUPED_MATRIX_DISPLAY_STYLE = "groupedMatrixDisplayStyle",
|
|
116
|
+
DATA_CONNECTOR = "dataConnector"
|
|
117
|
+
}
|
|
118
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
119
|
+
export {};
|