@sc-360-v2/storefront-cms-library 0.1.4 → 0.1.6

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.
Files changed (45) hide show
  1. package/dist/builder.js +1 -1
  2. package/dist/button.scss +75 -34
  3. package/dist/code-temp.scss +58 -0
  4. package/dist/container.scss +17 -0
  5. package/dist/countdown.scss +378 -0
  6. package/dist/editor-core.scss +312 -0
  7. package/dist/embed-temp.scss +58 -0
  8. package/dist/faq.scss +242 -0
  9. package/dist/functions.scss +133 -0
  10. package/dist/gallery-slider-temp.scss +410 -0
  11. package/dist/grid.scss +34 -0
  12. package/dist/hotspot.scss +250 -0
  13. package/dist/image-temp.scss +75 -0
  14. package/dist/map.scss +280 -0
  15. package/dist/pickup-locations.scss +180 -0
  16. package/dist/product-actions.scss +180 -0
  17. package/dist/product-inventory.scss +180 -0
  18. package/dist/product-price.scss +61 -0
  19. package/dist/scroll.scss +157 -0
  20. package/dist/section.scss +60 -0
  21. package/dist/social.scss +166 -0
  22. package/dist/store-locations.scss +180 -0
  23. package/dist/table.scss +373 -0
  24. package/dist/text-temp.scss +58 -0
  25. package/dist/types/builder/elements/amount-estimator/index.d.ts +26 -0
  26. package/dist/types/builder/elements/paymentMethods/index.d.ts +26 -0
  27. package/dist/types/builder/elements/product-promotions/index.d.ts +26 -0
  28. package/dist/types/builder/elements/productHighlights/index.d.ts +26 -0
  29. package/dist/types/builder/elements/quantity-selector/index.d.ts +26 -0
  30. package/dist/types/builder/elements/shippingEstimator/index.d.ts +26 -0
  31. package/dist/types/builder/enums/index.d.ts +2 -1
  32. package/dist/types/builder/index.d.ts +7 -1
  33. package/dist/types/builder/tools/element-edit/amountEstimator.d.ts +40 -0
  34. package/dist/types/builder/tools/element-edit/common.d.ts +3 -0
  35. package/dist/types/builder/tools/element-edit/gallery-slider.d.ts +12 -2
  36. package/dist/types/builder/tools/element-edit/index.d.ts +7 -1
  37. package/dist/types/builder/tools/element-edit/paymentMethods.d.ts +37 -0
  38. package/dist/types/builder/tools/element-edit/productHighlights.d.ts +24 -0
  39. package/dist/types/builder/tools/element-edit/productPromotions.d.ts +39 -0
  40. package/dist/types/builder/tools/element-edit/quantitySelector.d.ts +17 -0
  41. package/dist/types/builder/tools/element-edit/shippingEstimator.d.ts +14 -0
  42. package/dist/video.scss +199 -0
  43. package/dist/volume-pricing.scss +28 -0
  44. package/dist/widget.scss +23 -1
  45. package/package.json +1 -1
@@ -0,0 +1,373 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ [data-div-type="element"] {
5
+ &[data-element-type="table"] {
6
+ width: var(--_sf-nw-wh, var(--_tst-lt-wh));
7
+ margin: var(--_ctm-lt-mn, --_tst-lt-mn);
8
+ // aspect-ratio: 1 / var(--_sf-aspect-ratio);
9
+ // --_aspect-ratio: calc(
10
+ // 1 * (var(--_ctm-lt-ht, var(--_tst-lt-ht)) / var(--_ctm-lt-wh, var(--_tst-lt-wh)))
11
+ // );
12
+
13
+ & > .wrapper {
14
+ width: 100%;
15
+ .pagination:hover {
16
+ --_sf-bd-cr: var(--_ctm-dn-pn-hr-se-bd-cr, var(--_tst-dn-pn-hr-se-bd-cr));
17
+ }
18
+ .pagination .active:hover {
19
+ cursor: pointer;
20
+ --_sf-hr-fc: var(--_ctm-dn-pn-hr-se-cr, var(--_tst-dn-pn-hr-se-cr));
21
+ --_sf-hr-ff: var(--_ctm-dn-pn-hr-se-ft-fy, var(--_tst-dn-pn-hr-se-ft-fy));
22
+ --_sf-hr-fs: var(--_ctm-dn-pn-hr-se-ft-se, var(--_tst-dn-pn-hr-se-ft-se));
23
+ --_sf-hr-td: var(--_ctm-dn-pn-hr-se-tt-ue, var(--_tst-dn-hr-tt-ue)) --_sf-hr-fw:
24
+ var(--_ctm-dn-pn-hr-se-ft-wt, var(--_tst-dn-pn-hr-se-ft-wt));
25
+ --_sf-hr-ft: var(--_ctm-dn-pn-hr-se-ft-se-ic, var(--_tst-dn-pn-hr-se-ft-se-ic));
26
+ --_sf-hr-ta: var(--_ctm-dn-pn-hr-se-tt-an, var(--_tst-dn-pn-hr-se-tt-an));
27
+ --_sf-hr-ls: var(--_ctm-dn-pn-hr-se-lr-sg, var(--_tst-dn-pn-hr-se-lr-sg));
28
+ --_sf-hr-lh: var(--_ctm-dn-pn-hr-se-le-ht, var(--_tst-dn-pn-hr-se-le-ht));
29
+ }
30
+ }
31
+ &[data-widget-shadow="false"] {
32
+ .table__wrapper {
33
+ --_show-shadow: none;
34
+ }
35
+ }
36
+ &[data-widget-border="true"] {
37
+ .table__wrapper {
38
+ border-color: var(--_ctm-dn-te-wt-br-cr, var(--_tst-dn-te-wt-br-cr));
39
+ border-style: var(--_ctm-dn-te-wt-br-se, var(--_tst-dn-te-wt-br-se));
40
+ border-width: var(--_ctm-dn-te-wt-br-wh, var(--_tst-dn-te-wt-br-wh));
41
+ }
42
+ }
43
+ &[data-table-shadow="false"] {
44
+ .table__container {
45
+ --_show-table-shadow: none;
46
+ }
47
+ }
48
+ &[data-table-border="true"] {
49
+ .table__container {
50
+ border-color: var(--_ctm-dn-te-br-cr, var(--_tst-dn-te-br-cr));
51
+ border-style: var(--_ctm-dn-te-br-se, var(--_tst-dn-te-br-se));
52
+ border-width: var(--_ctm-dn-te-br-wh, var(--_tst-dn-te-br-wh));
53
+ }
54
+ }
55
+ &[data-loadmore-button-shadow="true"] {
56
+ .load__more {
57
+ box-shadow: var(--_ctm-dn-ld-me-bn-sw-ae, var(--_tst-dn-ld-me-bn-sw-ae))
58
+ var(--_ctm-dn-ld-me-bn-sw-br, var(--_tst-dn-ld-me-bn-sw-br))
59
+ var(--_ctm-dn-ld-me-bn-sw-sd, var(--_tst-dn-ld-me-bn-sw-sd))
60
+ var(--_ctm-dn-ld-me-bn-sw-cr, var(--_tst-dn-ld-me-bn-sw-cr));
61
+ }
62
+ }
63
+ &[data-loadmore-button-border="true"] {
64
+ .load__more {
65
+ border-color: var(
66
+ --_sf-hr-br-cr,
67
+ var(--_ctm-dn-ld-me-bn-br-cr, var(--_tst-dn-ld-me-bn-br-cr))
68
+ );
69
+ border-style: var(
70
+ --_sf-hr-br-st,
71
+ var(--_ctm-dn-ld-me-bn-br-se, var(--_tst-dn-ld-me-bn-br-se))
72
+ );
73
+ border-width: var(
74
+ --_sf-hr-br-wt,
75
+ var(--_ctm-dn-ld-me-bn-br-wh, var(--_tst-dn-ld-me-bn-br-wh))
76
+ );
77
+ }
78
+ }
79
+ &[data-header-divider="true"] {
80
+ thead tr th {
81
+ border-bottom: 1px solid var(--_ctm-dn-rw-ad-hr-ds-hr-dr);
82
+ }
83
+ }
84
+ &[data-row-divider="true"] {
85
+ tbody tr td {
86
+ border-bottom: 1px solid var(--_ctm-dn-rw-ad-hr-ds-rw-dr);
87
+ }
88
+ }
89
+ &[data-column-divider="true"] {
90
+ tbody tr td,
91
+ thead tr th {
92
+ border-right: 1px solid var(--_ctm-dn-rw-ad-hr-ds-cn-dr);
93
+ }
94
+
95
+ tbody tr td:last-child,
96
+ thead tr th:last-child {
97
+ border-right: none;
98
+ }
99
+ }
100
+ &[data-show-more-rows="onScroll"] {
101
+ .table__container {
102
+ overflow-y: auto;
103
+
104
+ &::-webkit-scrollbar {
105
+ // width: var(--_ctm-dn-sl-br-sl-br-w, var(--_tst-dn-sl-br-sl-br-w));
106
+ width: var(--_ctm-dn-sl-br-sl-br-wh);
107
+ }
108
+
109
+ &::-webkit-scrollbar-track {
110
+ background-color: var(--_base-white);
111
+ }
112
+
113
+ &::-webkit-scrollbar-thumb {
114
+ background-color: var(--_ctm-dn-sl-br-sl-br-cr);
115
+ }
116
+
117
+ // // Scrollbar thumb when hovered
118
+ // &::-webkit-scrollbar-thumb:hover {
119
+ // background-color: #555; // Darker color when hovering over the thumb
120
+ // }
121
+
122
+ // // For Firefox, using scrollbar-width and scrollbar-color
123
+ // scrollbar-width: thin; // Thin scrollbar
124
+ // scrollbar-color: #888 #f1f1f1; // Thumb and track colors
125
+ }
126
+ }
127
+
128
+ &[data-alternative-row-colors="true"] {
129
+ tbody .tbody__row__divider:nth-child(odd) {
130
+ background-color: #f76b6b;
131
+ }
132
+ }
133
+
134
+ .table__wrapper {
135
+ padding: var(--_ctm-lt-pg, var(--_tst-lt-pg));
136
+ background-color: var(--_ctm-dn-te-wt-bd-cr, var(--_tst-dn-te-wt-bd-cr));
137
+ border-radius: var(--_ctm-dn-te-wt-br-rs, var(--_tst-dn-te-wt-br-rs));
138
+ box-shadow: var(
139
+ --_show-shadow,
140
+ var(--_ctm-dn-te-wt-sw-ae, var(--_tst-dn-te-wt-sw-ae))
141
+ var(--_ctm-dn-te-wt-sw-br, var(--_tst-dn-te-wt-sw-br))
142
+ var(--_ctm-dn-te-wt-sw-sd, var(--_tst-dn-te-wt-sw-sd))
143
+ var(--_ctm-dn-te-wt-sw-cr, var(--_tst-dn-te-wt-sw-cr))
144
+ );
145
+
146
+ width: 100%;
147
+ .table__container {
148
+ // height: fit-content;
149
+ // height: var(--_ctm-lt-ht, var(--_tst-lt-ht));
150
+ background-color: var(--_ctm-dn-te-bd-cr, var(--_tst-dn-te-bd-cr));
151
+ border-radius: var(--_ctm-dn-te-br-rs, var(--_tst-dn-te-br-rs));
152
+
153
+ box-shadow: var(
154
+ --_show-table-shadow,
155
+ var(--_ctm-dn-te-sw-ae, var(--_tst-dn-te-wt-sw-ae))
156
+ var(--_ctm-dn-te-sw-br, var(--_tst-dn-te-sw-br))
157
+ var(--_ctm-dn-te-sw-sd, var(--_tst-dn-te-sw-sd))
158
+ var(--_ctm-dn-te-sw-cr, var(--_tst-dn-te-sw-cr))
159
+ );
160
+ }
161
+
162
+ h3 {
163
+ text-align: center;
164
+ width: 100%;
165
+ margin-bottom: 10px;
166
+ }
167
+ table {
168
+ border-collapse: collapse;
169
+ // border: none;
170
+ width: 100%;
171
+ // height: 100%;
172
+ text-align: var(--_ctm-lt-ct-at, var(--_tst-lt-ct-at));
173
+
174
+ th,
175
+ td {
176
+ border: none;
177
+ }
178
+ thead {
179
+ background-color: var(--_ctm-dn-te-hr-bd-cr, var(--_tst-dn-te-hr-bd-cr));
180
+ .thead__row__divider {
181
+ // border-bottom: 1px solid var(--_gray-500);
182
+ // border-top: 1px solid var(--_gray-500);
183
+ height: var(--_ctm-lt-hr-ht, var(--_tst-lt-hr-ht));
184
+
185
+ .th__col__divider {
186
+ padding: var(--_ctm-lt-hr-cl-pg, var(--_tst-lt-hr-cl-pg));
187
+ color: var(--_ctm-dn-hr-tt-cr, var(--_tst-dn-hr-tt-cr));
188
+ font-family: var(--_ctm-dn-hr-tt-ft-fy, var(--_tst-dn-hr-tt-ft-fy)), sans-serif;
189
+ font-size: var(--_ctm-dn-hr-tt-ft-se, var(--_tst-dn-hr-tt-ft-se));
190
+ font-weight: var(--_ctm-dn-hr-tt-ft-wt, var(--_tst-dn-hr-tt-ft-wt));
191
+ text-decoration: var(--_ctm-dn-hr-tt-ue, var(--_tst-dn-hr-tt-ue));
192
+ font-style: var(--_ctm-dn-hr-tt-ft-se-ic, var(--_tst-dn-hr-tt-ft-se-ic));
193
+ text-align: var(--_ctm-dn-hr-tt-tt-an, var(--_tst-dn-hr-tt-tt-an));
194
+ letter-spacing: var(--_ctm-dn-hr-tt-lr-sg, var(--_tst-dn-hr-tt-lr-sg));
195
+ line-height: var(--_ctm-dn-hr-tt-le-ht, var(--_tst-dn-hr-tt-le-ht));
196
+ }
197
+ }
198
+ }
199
+
200
+ tbody {
201
+ .tbody__row__divider {
202
+ background-color: var(--_ctm-dn-te-rw-bd-cr, var(--_tst-dn-te-rw-bd-cr));
203
+ height: var(--_ctm-lt-rw-ht, var(--_tst-lt-rw-ht));
204
+ // border-bottom: 1px solid var(--_gray-500);
205
+ .td__col__divider {
206
+ padding: var(--_ctm-lt-rw-cl-pg, var(--_tst-rw-cl-pg));
207
+ color: var(--_sf-hr-fc, var(--_ctm-dn-rw-tt-cr, var(--_tst-dn-rw-tt-cr)));
208
+ font-family: var(--_sf-hr-ff, var(--_ctm-dn-rw-tt-ft-fy, var(--_tst-dn-rw-tt-ft-fy))),
209
+ sans-serif;
210
+ font-size: var(--_sf-hr-fs, var(--_ctm-dn-rw-tt-ft-se, var(--_tst-dn-rw-tt-ft-se)));
211
+ text-decoration: var(--_ctm-dn-rw-tt-ue, var(--_tst-dn-hr-tt-ue));
212
+ font-weight: var(--_sf-hr-fw, var(--_ctm-dn-rw-tt-ft-wt, var(--_tst-dn-rw-tt-ft-wt)));
213
+ font-style: var(
214
+ --_sf-hr-ft,
215
+ var(--_ctm-dn-rw-tt-ft-se-ic, var(--_tst-dn-rw-tt-ft-se-ic))
216
+ );
217
+ text-align: var(--_sf-hr-ta, var(--_ctm-dn-rw-tt-tt-an, var(--_tst-dn-rw-tt-tt-an)));
218
+ letter-spacing: var(
219
+ --_sf-hr-ls,
220
+ var(--_ctm-dn-rw-tt-lr-sg, var(--_tst-dn-rw-tt-lr-sg))
221
+ );
222
+ line-height: var(--_sf-hr-lh, var(--_ctm-dn-rw-tt-le-ht, var(--_tst-dn-rw-tt-le-ht)));
223
+ }
224
+ }
225
+ }
226
+ }
227
+
228
+ .pagination {
229
+ display: var(--_d-flex);
230
+ align-items: var(--_align-center);
231
+ justify-content: var(--_ctm-lt-pn-at, var(--_tst-lt-pn-at));
232
+ margin-top: 10px;
233
+ background-color: var(
234
+ --_sf-bd-cr,
235
+ var(--_ctm-dn-pn-dt-se-bd-cr, var(--_tst-dn-pn-dt-se-bd-cr))
236
+ );
237
+ &.pagination__center {
238
+ justify-content: var(justify-center);
239
+ }
240
+
241
+ button {
242
+ svg {
243
+ width: var(--_width-18);
244
+ height: var(--_height-18);
245
+ path {
246
+ stroke: var(--_gray-500);
247
+ // stroke: var(--_ctm-dn-pn-in-c1, var(--_tst-dn-pn-in-c1));
248
+ }
249
+ }
250
+ }
251
+ span {
252
+ float: left;
253
+ padding: var(--_pd-8) var(--_pd-16);
254
+ text-decoration: none;
255
+ span {
256
+ // color: var(--_sf-hr-fc, var(--_ctm-dn-pn-bn-cr, var(--_tst-dn-pn-bn-cr)));
257
+ // font-size: var(--_sf-hr-fs, var(--_ctm-dn-pn-ft-se, var(--_tst-dn-pn-ft-se)));
258
+ // font-family: var(--_sf-hr-ff, var(--_ctm-dn-pn-ft-fy, var(--_tst-dn-pn-ft-fy))),
259
+ // sans-serif;
260
+ // font-weight: var(--_sf-hr-fw, var(--_ctm-dn-pn-ft-wt, var(--_tst-dn-pn-ft-wt)));
261
+ // font-style: var(--_sf-hr-ft, var(--_ctm-dn-pn-ft-se-ic, var(--_tst-dn-pn-ft-se-ic)));
262
+ // text-align: var(--_sf-hr-ta, var(--_ctm-dn-pn-tt-an, var(--_tst-dn-pn-tt-an)));
263
+ // letter-spacing: var(--_sf-hr-ls, var(--_ctm-dn-pn-lr-sg, var(--_tst-dn-pn-lr-sg)));
264
+ // line-height: var(--_sf-hr-lh, var(--_ctm-dn-pn-le-ht, var(--_tst-dn-pn-le-ht)));
265
+ }
266
+ &.active:hover {
267
+ &hover {
268
+ --_sf-hr-fc: var(--_ctm-dn-pn-hr-se-cr, var(--_tst-dn-pn-hr-se-cr));
269
+ --_sf-hr-ff: var(--_ctm-dn-pn-hr-se-ft-fy, var(--_tst-dn-pn-hr-se-ft-fy));
270
+ --_sf-hr-fs: var(--_ctm-dn-pn-hr-se-ft-se, var(--_tst-dn-pn-hr-se-ft-se));
271
+ --_sf-hr-fw: var(--_ctm-dn-pn-hr-se-ft-wt, var(--_tst-dn-pn-hr-se-ft-wt));
272
+ --_sf-hr-ft: var(--_ctm-dn-pn-hr-se-ft-se-ic, var(--_tst-dn-pn-hr-se-ft-se-ic));
273
+ --_sf-hr-ta: var(--_ctm-dn-pn-hr-se-tt-an, var(--_tst-dn-pn-hr-se-tt-an));
274
+ --_sf-hr-ls: var(--_ctm-dn-pn-hr-se-lr-sg, var(--_tst-dn-pn-hr-se-lr-sg));
275
+ --_sf-hr-lh: var(--_ctm-dn-pn-hr-se-le-ht, var(--_tst-dn-pn-hr-se-le-ht));
276
+ }
277
+ }
278
+ &.active {
279
+ color: var(--_sf-hr-fc, var(--_ctm-dn-pn-dt-se-cr, var(--_tst-dn-pn-dt-se-cr)));
280
+ font-family: var(
281
+ --_sf-hr-ff,
282
+ var(--_ctm-dn-pn-dt-se-ft-fy, var(--_tst-dn-pn-dt-se-ft-fy))
283
+ ),
284
+ sans-serif;
285
+ font-size: var(
286
+ --_sf-hr-fs,
287
+ var(--_ctm-dn-pn-dt-se-ft-se, var(--_tst-dn-pn-dt-se-ft-se))
288
+ );
289
+ text-decoration: var(--_sf-hr-td, var(--_ctm-dn-pn-dt-se-ue, var(--_tst-dn-hr-tt-ue)));
290
+ font-weight: var(
291
+ --_sf-hr-fw,
292
+ var(--_ctm-dn-pn-dt-se-ft-wt, var(--_tst-dn-pn-dt-se-ft-wt))
293
+ );
294
+ font-style: var(
295
+ --_sf-hr-ft,
296
+ var(--_ctm-dn-pn-dt-se-ft-se-ic, var(--_tst-dn-pn-dt-se-ft-se-ic))
297
+ );
298
+ text-align: var(
299
+ --_sf-hr-ta,
300
+ var(--_ctm-dn-pn-dt-se-tt-an, var(--_tst-dn-pn-dt-se-tt-an))
301
+ );
302
+ letter-spacing: var(
303
+ --_sf-hr-ls,
304
+ var(--_ctm-dn-pn-dt-se-lr-sg, var(--_tst-dn-pn-dt-se-lr-sg))
305
+ );
306
+ line-height: var(
307
+ --_sf-hr-lh,
308
+ var(--_ctm-dn-pn-dt-se-le-ht, var(--_tst-dn-pn-dt-se-le-ht))
309
+ );
310
+ }
311
+ }
312
+ .pagination__arrows {
313
+ color: var(--_sf-hr-fc, var(--_ctm-dn-pn-in-c1, var(--_tst-dn-pn-in-c1)));
314
+ font-size: var(--_sf-hr-fs, var(--_ctm-dn-pn-in-se, var(--_tst-dn-pn-in-se)));
315
+ }
316
+ }
317
+
318
+ .load__more {
319
+ margin: 10px;
320
+ background-color: var(
321
+ --_sf-hr-bd-cr,
322
+ var(--_ctm-dn-ld-me-bn-bd-cr, var(--_tst-dn-ld-me-bn-bd-cr))
323
+ );
324
+ border-radius: var(
325
+ --_sf-hr-br-br,
326
+ var(--_ctm-dn-ld-me-bn-br-rs, var(--_tst-dn-ld-me-bn-br-rs))
327
+ );
328
+
329
+ h3 {
330
+ color: var(--_sf-hr-fc, var(--_ctm-dn-ld-me-bn-cr, var(--_tst-dn-ld-me-bn-cr)));
331
+ font-family: var(
332
+ --_sf-hr-ff,
333
+ var(--_ctm-dn-ld-me-bn-ft-fy, var(--_tst-dn-ld-me-bn-ft-fy))
334
+ ),
335
+ sans-serif;
336
+ font-size: var(--_sf-hr-fs, var(--_ctm-dn-ld-me-bn-ft-se, var(--_tst-dn-ld-me-bn-ft-se)));
337
+ text-decoration: var(--_ctm-dn-ld-me-bn-ue);
338
+ font-weight: var(
339
+ --_sf-hr-fw,
340
+ var(--_ctm-dn-ld-me-bn-ft-wt, var(--_tst-dn-ld-me-bn-ft-wt))
341
+ );
342
+ font-style: var(
343
+ --_sf-hr-ft,
344
+ var(--_ctm-dn-ld-me-bn-ft-se-ic, var(--_tst-dn-ld-me-bn-ft-se-ic))
345
+ );
346
+ text-align: var(
347
+ --_sf-hr-ta,
348
+ var(--_ctm-dn-ld-me-bn-tt-an, var(--_tst-dn-ld-me-bn-tt-an))
349
+ );
350
+ letter-spacing: var(
351
+ --_sf-hr-ls,
352
+ var(--_ctm-dn-ld-me-bn-lr-sg, var(--_tst-dn-ld-me-bn-lr-sg))
353
+ );
354
+ line-height: var(
355
+ --_sf-hr-lh,
356
+ var(--_ctm-dn-ld-me-bn-le-ht, var(--_tst-dn-ld-me-bn-le-ht))
357
+ );
358
+ }
359
+ // background-color: var(--_primary-400);
360
+ // border: 1px solid var(--_primary-400);
361
+ // border-radius: var(--_br-6);
362
+ // padding: var(--_pd-8) var(--_pd-12);
363
+ // color: var(---base-whiet);
364
+ // display: inline-block;
365
+ // color: var(--_base-white);
366
+ // margin: 0 auto;
367
+ // width: 150px;
368
+ // text-align: center;
369
+ // margin-top: 20px;
370
+ }
371
+ }
372
+ }
373
+ }
@@ -0,0 +1,58 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ [data-div-type="element"] {
5
+ &[data-element-type="text"] {
6
+ // width: var(--_lt-wh);
7
+ // height: var(--_lt-ht);
8
+ // margin: var(--_lt-mn);
9
+ // padding: var(--_lt-pg);
10
+ // width: var(--_ctm-lt-wh, var(--_tst-lt-wh));
11
+ width: var(--_sf-nw-wh, var(--_tst-lt-wh));
12
+ margin: var(--_ctm-lt-mn, --_tst-lt-mn);
13
+ // height: var(--_ctm-lt-ht, var(--_tst-lt-ht));
14
+ // height: ;
15
+ // aspect-ratio: 1 / var(--_sf-aspect-ratio);
16
+ // --_aspect-ratio: calc(
17
+ // 1 * (var(--_ctm-lt-ht, var(--_tst-lt-ht)) / var(--_ctm-lt-wh, var(--_tst-lt-wh)))
18
+ // );
19
+
20
+ & > .wrapper {
21
+ width: 100%;
22
+ // height: 100%;
23
+ }
24
+ &[data-show-shadow="false"] {
25
+ --_show-shadow: none;
26
+ }
27
+
28
+ .text-element {
29
+ background-color: var(--_ctm-dn-bd-cr, var(--_tst-dn-bd-cr));
30
+ padding: var(--_ctm-lt-pg, var(--_tst-lt-pg));
31
+ display: flex;
32
+ flex-direction: column;
33
+ --_sf-gp: 16px;
34
+ --_sf-cd-gp: calc(var(--_sf-gp) * 0.5);
35
+ row-gap: var(--_sf-gp);
36
+ width: 100%;
37
+ // height: 100%;
38
+ border-color: var(--_ctm-dn-br-cr, var(--_tst-dn-br-cr));
39
+ border-style: var(--_ctm-dn-br-se, var(--_tst-dn-br-se));
40
+ border-width: var(--_ctm-dn-br-wh, var(--_tst-dn-br-wh));
41
+ border-radius: var(--_ctm-dn-br-rs, var(--_tst-dn-br-rs));
42
+ box-shadow: var(
43
+ --_show-shadow,
44
+ var(--_ctm-dn-sw-ae, var(--_tst-dn-sw-ae)) var(--_ctm-dn-sw-br, var(--_tst-dn-sw-br))
45
+ var(--_ctm-dn-sw-sd, var(--_tst-dn-sw-sd)) var(--_ctm-dn-sw-cr, var(--_tst-dn-sw-cr))
46
+ );
47
+
48
+ // transform: scale(var(--_ctm-dn-zm-ie));
49
+ scale: var(--_ctm-dn-zm-ie);
50
+ &[data-flip-x="true"] {
51
+ transform: scaleX(-1);
52
+ }
53
+ &[data-flip-y="true"] {
54
+ transform: scaleY(-1);
55
+ }
56
+ }
57
+ }
58
+ }
@@ -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 AmountEstimatorStyleProperties 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: () => AmountEstimatorStyleProperties;
18
+ export interface CMSAmountEstimatorInterface extends Omit<CMSElementInterface, "attributes"> {
19
+ attributes: {
20
+ HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
21
+ BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
22
+ CUSTOM: any;
23
+ };
24
+ styles: AmountEstimatorStyleProperties;
25
+ childrenStyles?: CommonStyleProperties;
26
+ }
@@ -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 PaymentMethodsStyleProperties 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: () => PaymentMethodsStyleProperties;
18
+ export interface CMSPaymentMethodsInterface extends Omit<CMSElementInterface, "attributes"> {
19
+ attributes: {
20
+ HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
21
+ BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
22
+ CUSTOM: any;
23
+ };
24
+ styles: PaymentMethodsStyleProperties;
25
+ childrenStyles?: CommonStyleProperties;
26
+ }
@@ -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 ProductPromotionsStyleProperties 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: () => ProductPromotionsStyleProperties;
18
+ export interface CMSProductPromotionsInterface extends Omit<CMSElementInterface, "attributes"> {
19
+ attributes: {
20
+ HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
21
+ BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
22
+ CUSTOM: any;
23
+ };
24
+ styles: ProductPromotionsStyleProperties;
25
+ childrenStyles?: CommonStyleProperties;
26
+ }
@@ -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 ProductHighlightsStyleProperties 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: () => ProductHighlightsStyleProperties;
18
+ export interface CMSProductHighlightsInterface extends Omit<CMSElementInterface, "attributes"> {
19
+ attributes: {
20
+ HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
21
+ BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
22
+ CUSTOM: any;
23
+ };
24
+ styles: ProductHighlightsStyleProperties;
25
+ childrenStyles?: CommonStyleProperties;
26
+ }
@@ -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 QuantitySelectorStyleProperties 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: () => QuantitySelectorStyleProperties;
18
+ export interface CMSQuantitySelectorInterface extends Omit<CMSElementInterface, "attributes"> {
19
+ attributes: {
20
+ HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
21
+ BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
22
+ CUSTOM: any;
23
+ };
24
+ styles: QuantitySelectorStyleProperties;
25
+ childrenStyles?: CommonStyleProperties;
26
+ }
@@ -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 ShippingEstimatorStyleProperties 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: () => ShippingEstimatorStyleProperties;
18
+ export interface CMSShippingEstimatorInterface extends Omit<CMSElementInterface, "attributes"> {
19
+ attributes: {
20
+ HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
21
+ BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
22
+ CUSTOM: any;
23
+ };
24
+ styles: ShippingEstimatorStyleProperties;
25
+ childrenStyles?: CommonStyleProperties;
26
+ }
@@ -116,5 +116,6 @@ export declare enum CMSCSSUnitTypesEnums {
116
116
  }
117
117
  export declare enum CMSComponentImportTypeEnum {
118
118
  BUILDER = 1,
119
- PREVIEW = 2
119
+ PREVIEW = 2,
120
+ WEBSITE = 3
120
121
  }
@@ -27,4 +27,10 @@ import * as volumePricingSchema from "./elements/volumePricing/index";
27
27
  import * as pickupLocationsSchema from "./elements/pickup-locations/index";
28
28
  import * as storeLocationsSchema from "./elements/store-locations/index";
29
29
  import * as productInventorySchema from "./elements/product-inventory/index";
30
- export { commonFunctions, interfaces, enums, sectionSchema, gridSchema, cmsTypes, textSchema, ElementEditSchema, imageSchema, videoSChema, socialIconsSchema, buttonSchema, gallerySliderSchema, tabSchema, tableSchema, faqSchema, codeSchema, embedSchema, scrollSchema, countdownSchema, imageHotspotSchema, mapSchema, containerSchema, priceSchema, productActionsSchema, volumePricingSchema, pickupLocationsSchema, storeLocationsSchema, productInventorySchema, };
30
+ import * as productHighlightsSchema from "./elements/productHighlights/index";
31
+ import * as paymentMethodsSchema from "./elements/paymentMethods/index";
32
+ import * as shippingEstimatorSchema from "./elements/shippingEstimator/index";
33
+ import * as productPromotionsSchema from "./elements/product-promotions/index";
34
+ import * as amountEstimatorSchema from "./elements/amount-estimator/index";
35
+ import * as quantitySelectorSchema from "./elements/quantity-selector/index";
36
+ export { commonFunctions, interfaces, enums, sectionSchema, gridSchema, cmsTypes, textSchema, ElementEditSchema, imageSchema, videoSChema, socialIconsSchema, buttonSchema, gallerySliderSchema, tabSchema, tableSchema, faqSchema, codeSchema, embedSchema, scrollSchema, countdownSchema, imageHotspotSchema, mapSchema, containerSchema, priceSchema, productActionsSchema, volumePricingSchema, pickupLocationsSchema, storeLocationsSchema, productInventorySchema, paymentMethodsSchema, productHighlightsSchema, shippingEstimatorSchema, productPromotionsSchema, amountEstimatorSchema, quantitySelectorSchema, };
@@ -0,0 +1,40 @@
1
+ import { CMSIBCommonInterface } from "../../interfaces/global";
2
+ import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
3
+ interface selfLayoutInterface {
4
+ selectorKey: string;
5
+ displayStyle: CMSIBCommonInterface;
6
+ displayResults: CMSIBCommonInterface;
7
+ displayType: CMSIBCommonInterface;
8
+ dividerBetweenItems: CMSIBCommonInterface;
9
+ itemSpacing: CMSIBCommonInterface;
10
+ itemPadding: CMSIBCommonInterface;
11
+ ItemContentAlignment: CMSIBCommonInterface;
12
+ overflowItems: CMSIBCommonInterface;
13
+ maxItemsToDisplay: CMSIBCommonInterface;
14
+ imageBehavior: CMSIBCommonInterface;
15
+ itemsPerRow: CMSIBCommonInterface;
16
+ header: CMSIBCommonInterface;
17
+ headerHeight: CMSIBCommonInterface;
18
+ rowHeight: CMSIBCommonInterface;
19
+ headerDivider: CMSIBCommonInterface;
20
+ rowDivider: CMSIBCommonInterface;
21
+ columnDivider: CMSIBCommonInterface;
22
+ alternativeRowColors: CMSIBCommonInterface;
23
+ headerCellPadding: CMSIBCommonInterface;
24
+ rowCellPadding: CMSIBCommonInterface;
25
+ contentAlignment: CMSIBCommonInterface;
26
+ rowsPerPage: CMSIBCommonInterface;
27
+ overflowControl: CMSIBCommonInterface;
28
+ paginationType: CMSIBCommonInterface;
29
+ paginationAliginment: CMSIBCommonInterface;
30
+ }
31
+ interface selfDesignInterface {
32
+ selectorKey: string;
33
+ }
34
+ export declare enum AmountEstimatorsSelectorKeysEnum {
35
+ LAYOUT = "layout",
36
+ CONTENT = "content",
37
+ DESIGN = "design"
38
+ }
39
+ export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
40
+ export {};
@@ -71,6 +71,9 @@ export interface CMSElementEditPopupDesignInterface {
71
71
  showIcon?: CMSIBCommonInterface;
72
72
  dividerWidth: CMSIBSizeInterface;
73
73
  overlayColor: CMSIBCommonInterface;
74
+ textPosition: CMSIBCommonInterface;
75
+ verticalAlignment: CMSIBCommonInterface;
76
+ textHorizontalPadding: CMSIBSizeInterface;
74
77
  }
75
78
  export interface CMSElementEditPopupInterface<L = CMSElementEditPopupLayoutInterface, D = CMSElementEditPopupDesignInterface> {
76
79
  layout?: L;