@sc-360-v2/storefront-cms-library 0.3.15 → 0.3.17
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/builder.js +1 -1
- package/dist/cart-details.scss +60 -87
- package/dist/confirmationModal.scss +12 -2
- package/dist/dropdownTemplate.scss +7 -0
- package/dist/fb-dropdown.scss +66 -89
- package/dist/form-preview.scss +2 -0
- package/dist/layouter.scss +6 -4
- package/dist/repeater.scss +7 -8
- package/dist/toggle-button.scss +12 -12
- package/dist/types/builder/elements/form-builder/index.d.ts +6 -2
- package/package.json +1 -1
package/dist/cart-details.scss
CHANGED
|
@@ -409,91 +409,75 @@ $resizeActive: '[data-cms-element-resizer="true"]';
|
|
|
409
409
|
|
|
410
410
|
.section {
|
|
411
411
|
padding: 12px;
|
|
412
|
-
border
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
font-weight: 600;
|
|
418
|
-
color: #111827;
|
|
412
|
+
border: 1px solid #d9d9d9;
|
|
413
|
+
.section-title {
|
|
414
|
+
font-size: 1rem;
|
|
415
|
+
font-weight: 600;
|
|
416
|
+
color: #111827;
|
|
419
417
|
|
|
420
|
-
|
|
418
|
+
cursor: pointer;
|
|
421
419
|
|
|
422
|
-
|
|
423
|
-
|
|
420
|
+
&.error {
|
|
421
|
+
color: #dc2626;
|
|
422
|
+
}
|
|
424
423
|
}
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
.section-body {
|
|
428
|
-
padding-top: 1rem;
|
|
429
|
-
}
|
|
430
|
-
.attribute {
|
|
431
|
-
margin-bottom: 1.25rem;
|
|
432
|
-
}
|
|
433
424
|
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
425
|
+
.section-body {
|
|
426
|
+
padding-top: 1rem;
|
|
427
|
+
.attribute {
|
|
428
|
+
margin-bottom: 1.25rem;
|
|
429
|
+
.label {
|
|
430
|
+
display: block;
|
|
431
|
+
font-size: 0.875rem;
|
|
432
|
+
font-weight: 500;
|
|
433
|
+
color: #374151;
|
|
434
|
+
margin-bottom: 0.5rem;
|
|
435
|
+
|
|
436
|
+
&.required::after {
|
|
437
|
+
content: " *";
|
|
438
|
+
color: #dc2626;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
.attribute_form_field {
|
|
442
|
+
width: 100% !important;
|
|
443
|
+
padding: 8px 12px !important;
|
|
444
|
+
border-radius: 4px;
|
|
445
|
+
border: 1px solid #ccc;
|
|
446
|
+
/* background-color: #f9fafb !important; */
|
|
447
|
+
outline: none;
|
|
448
|
+
transition: border-color 0.2s ease-in-out;
|
|
449
|
+
font-size: 14px;
|
|
450
|
+
height: 40px;
|
|
451
|
+
|
|
452
|
+
&:focus {
|
|
453
|
+
border-color: #3b82f6;
|
|
454
|
+
background-color: #fff;
|
|
455
|
+
}
|
|
446
456
|
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
border-radius: 4px;
|
|
453
|
-
border: 1px solid #ccc;
|
|
454
|
-
/* background-color: #f9fafb !important; */
|
|
455
|
-
outline: none;
|
|
456
|
-
transition: border-color 0.2s ease-in-out;
|
|
457
|
-
font-size: 14px;
|
|
458
|
-
height: 40px;
|
|
459
|
-
|
|
460
|
-
&:focus {
|
|
461
|
-
border-color: #3b82f6;
|
|
462
|
-
background-color: #fff;
|
|
463
|
-
}
|
|
457
|
+
&.error {
|
|
458
|
+
border-color: #dc2626;
|
|
459
|
+
background-color: #fef2f2;
|
|
460
|
+
}
|
|
461
|
+
}
|
|
464
462
|
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
463
|
+
textarea {
|
|
464
|
+
min-height: 100px;
|
|
465
|
+
resize: vertical;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
.cart_item_attr_disabled {
|
|
469
|
+
pointer-events: none;
|
|
470
|
+
opacity: 0.5;
|
|
471
|
+
cursor: none;
|
|
472
|
+
}
|
|
468
473
|
}
|
|
469
474
|
}
|
|
470
475
|
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
.error-text {
|
|
477
|
-
font-size: 0.75rem;
|
|
478
|
-
color: #dc2626;
|
|
479
|
-
margin-top: 0.25rem;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
.submit-btn {
|
|
483
|
-
background-color: #3b82f6;
|
|
484
|
-
color: #fff;
|
|
485
|
-
padding: 0.5rem 1rem;
|
|
486
|
-
font-size: 0.875rem;
|
|
487
|
-
font-weight: 500;
|
|
488
|
-
border: none;
|
|
489
|
-
border-radius: 0.5rem;
|
|
490
|
-
cursor: pointer;
|
|
491
|
-
margin-top: 2rem;
|
|
492
|
-
|
|
493
|
-
&:hover {
|
|
494
|
-
background-color: #2563eb;
|
|
495
|
-
}
|
|
496
|
-
}
|
|
476
|
+
// .error-text {
|
|
477
|
+
// font-size: 0.75rem;
|
|
478
|
+
// color: #dc2626;
|
|
479
|
+
// margin-top: 0.25rem;
|
|
480
|
+
// }
|
|
497
481
|
}
|
|
498
482
|
|
|
499
483
|
.infinite-list-container {
|
|
@@ -507,17 +491,6 @@ $resizeActive: '[data-cms-element-resizer="true"]';
|
|
|
507
491
|
max-width: 100%;
|
|
508
492
|
min-width: 100%;
|
|
509
493
|
}
|
|
510
|
-
// padding: 1rem;
|
|
511
|
-
// border: 1px solid #e0e0e0;
|
|
512
|
-
// border-radius: 12px;
|
|
513
|
-
// background-color: #fff;
|
|
514
|
-
// box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
|
|
515
|
-
// transition: box-shadow 0.2s ease;
|
|
516
|
-
|
|
517
|
-
// &:hover {
|
|
518
|
-
// box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
519
|
-
// }
|
|
520
|
-
// }
|
|
521
494
|
|
|
522
495
|
.pagination {
|
|
523
496
|
display: flex;
|
|
@@ -64,16 +64,26 @@
|
|
|
64
64
|
border: 1px solid #d0d5dd;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
|
|
68
67
|
.confirm-button {
|
|
69
|
-
background-color: #dc2626; // red-600
|
|
70
68
|
color: #ffffff;
|
|
71
69
|
font-weight: 600;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.confirmation-button {
|
|
73
|
+
background-color: #dc2626; // red-600
|
|
72
74
|
|
|
73
75
|
&:hover {
|
|
74
76
|
background-color: #b91c1c;
|
|
75
77
|
}
|
|
76
78
|
}
|
|
79
|
+
|
|
80
|
+
.primaryConfirmation-button {
|
|
81
|
+
background-color: #162578; // red-600
|
|
82
|
+
|
|
83
|
+
&:hover {
|
|
84
|
+
background-color: #101c5f;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
77
87
|
}
|
|
78
88
|
}
|
|
79
89
|
}
|
package/dist/fb-dropdown.scss
CHANGED
|
@@ -1,124 +1,101 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
border: none;
|
|
6
|
-
border-bottom: 1px solid #333;
|
|
7
|
-
padding-inline: 0px;
|
|
8
|
-
|
|
9
|
-
&:focus-within,
|
|
10
|
-
&:focus {
|
|
11
|
-
border: 0;
|
|
12
|
-
box-shadow: none;
|
|
13
|
-
border-bottom: 1px solid #333;
|
|
14
|
-
// box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
|
|
15
|
-
background-color: var(--_base-white);
|
|
1
|
+
.fb_dropdown_main {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
}
|
|
16
5
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
6
|
+
.dropdown_label {
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 40px;
|
|
9
|
+
border: 1px solid var(--_gray-300);
|
|
10
|
+
border-radius: 6px;
|
|
11
|
+
background: var(--_base-white);
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
padding: 0 12px;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
transition: border 0.2s ease;
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
.label {
|
|
28
|
-
font-size: 14px;
|
|
29
|
-
display: block;
|
|
30
|
-
margin-bottom: 4px;
|
|
19
|
+
&:focus,
|
|
20
|
+
&:focus-within {
|
|
21
|
+
border-color: var(--_primary-300);
|
|
22
|
+
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
|
|
23
|
+
outline: none;
|
|
31
24
|
}
|
|
32
|
-
.dropdown_label {
|
|
33
|
-
width: 100%;
|
|
34
|
-
height: 40px;
|
|
35
|
-
border: 1px solid var(--_gray-300);
|
|
36
|
-
border-radius: 6px;
|
|
37
|
-
background: white;
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
padding-inline: 12px;
|
|
40
|
-
display: flex;
|
|
41
|
-
align-items: center;
|
|
42
|
-
justify-content: space-between;
|
|
43
|
-
|
|
44
|
-
.dropdown_icon {
|
|
45
|
-
display: flex;
|
|
46
|
-
transition: transform 400ms ease;
|
|
47
|
-
will-change: transform;
|
|
48
25
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
26
|
+
&.disabled {
|
|
27
|
+
cursor: not-allowed;
|
|
28
|
+
background: var(--_gray-100);
|
|
29
|
+
color: var(--_gray-400);
|
|
30
|
+
}
|
|
52
31
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
32
|
+
.dropdown_text {
|
|
33
|
+
color: var(--_gray-800);
|
|
34
|
+
}
|
|
57
35
|
|
|
36
|
+
.dropdown_icon {
|
|
37
|
+
display: flex;
|
|
38
|
+
transition: transform 300ms ease;
|
|
58
39
|
svg {
|
|
59
40
|
width: 16px;
|
|
60
41
|
height: 16px;
|
|
61
42
|
}
|
|
62
43
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
border: 1px solid var(--_primary-300);
|
|
66
|
-
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
|
|
67
|
-
background-color: var(--_base-white);
|
|
68
|
-
|
|
69
|
-
.dropdown_text {
|
|
70
|
-
color: var(--_primary-500);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
svg {
|
|
74
|
-
stroke: var(--_primary-500);
|
|
75
|
-
}
|
|
44
|
+
&.open {
|
|
45
|
+
transform: rotate(180deg);
|
|
76
46
|
}
|
|
77
47
|
}
|
|
78
48
|
}
|
|
79
49
|
|
|
80
|
-
.
|
|
81
|
-
border: 1px solid var(--_gray-300);
|
|
82
|
-
padding: 4px;
|
|
83
|
-
border-radius: 6px;
|
|
50
|
+
.fb_dropdown_panel {
|
|
84
51
|
position: absolute;
|
|
85
|
-
|
|
86
|
-
left: var(--_left-pos, 0);
|
|
87
|
-
width: var(--_panel-width, auto);
|
|
52
|
+
width: 100%;
|
|
88
53
|
background-color: var(--_base-white);
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
54
|
+
border: 1px solid var(--_gray-300);
|
|
55
|
+
border-radius: 6px;
|
|
56
|
+
margin-top: 4px;
|
|
57
|
+
z-index: 10;
|
|
58
|
+
max-height: 200px;
|
|
59
|
+
overflow-y: auto;
|
|
60
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
94
61
|
|
|
95
|
-
&.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
62
|
+
&.drop-up {
|
|
63
|
+
bottom: 44px; // height of dropdown + margin
|
|
64
|
+
top: auto;
|
|
65
|
+
margin-top: 0;
|
|
66
|
+
margin-bottom: 4px;
|
|
99
67
|
}
|
|
100
68
|
|
|
101
|
-
&.
|
|
102
|
-
|
|
103
|
-
transform: translateY(20px);
|
|
104
|
-
pointer-events: none;
|
|
69
|
+
&.drop-down {
|
|
70
|
+
top: 100%;
|
|
105
71
|
}
|
|
106
72
|
|
|
107
73
|
ul {
|
|
108
74
|
list-style: none;
|
|
109
|
-
padding: 0;
|
|
75
|
+
padding: 4px 0;
|
|
110
76
|
margin: 0;
|
|
77
|
+
|
|
111
78
|
li {
|
|
112
|
-
padding:
|
|
79
|
+
padding: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.dropdown_option {
|
|
83
|
+
padding: 10px 12px;
|
|
113
84
|
font-size: 14px;
|
|
114
|
-
color: var(--_gray-
|
|
115
|
-
background-color: var(--_base-white);
|
|
85
|
+
color: var(--_gray-700);
|
|
116
86
|
cursor: pointer;
|
|
117
|
-
|
|
87
|
+
transition: background 0.2s;
|
|
88
|
+
|
|
118
89
|
&:hover {
|
|
119
90
|
background-color: var(--_primary-50);
|
|
120
91
|
color: var(--_primary-500);
|
|
121
92
|
}
|
|
93
|
+
|
|
94
|
+
&.selected {
|
|
95
|
+
background-color: var(--_primary-100);
|
|
96
|
+
color: var(--_primary-700);
|
|
97
|
+
font-weight: 500;
|
|
98
|
+
}
|
|
122
99
|
}
|
|
123
100
|
}
|
|
124
101
|
}
|
package/dist/form-preview.scss
CHANGED
|
@@ -97,6 +97,7 @@
|
|
|
97
97
|
font-size: 16px;
|
|
98
98
|
cursor: pointer;
|
|
99
99
|
user-select: none;
|
|
100
|
+
flex-wrap: wrap;
|
|
100
101
|
|
|
101
102
|
input {
|
|
102
103
|
display: none;
|
|
@@ -107,6 +108,7 @@
|
|
|
107
108
|
height: 20px;
|
|
108
109
|
background-color: #fff;
|
|
109
110
|
border: 2px solid #ccc;
|
|
111
|
+
margin: 0px 4px;
|
|
110
112
|
position: relative;
|
|
111
113
|
transition: all 0.2s ease;
|
|
112
114
|
|
package/dist/layouter.scss
CHANGED
|
@@ -174,10 +174,12 @@ $sliderControlDragging: "[flex-slider-control-moving='true']";
|
|
|
174
174
|
// width: calc(var(--_embla-slide-width, 100%) / var(--_embla-col-count, 3));
|
|
175
175
|
flex: 0 0 var(--_sf-cl-vl);
|
|
176
176
|
width: var(--_sf-cl-vl);
|
|
177
|
-
grid-template-rows: minmax(
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
);
|
|
177
|
+
// grid-template-rows: minmax(
|
|
178
|
+
// max(0.5px, 0.09375 * (var(--_cms-scaling-factor) - var(--_cms-scrollbar-width))),
|
|
179
|
+
// auto
|
|
180
|
+
// );
|
|
181
|
+
|
|
182
|
+
grid-template-rows: minmax(50px, auto);
|
|
181
183
|
grid-template-columns: minmax(0px, 1fr);
|
|
182
184
|
// padding-left: calc(var(--_embla-slide-space, 10px) * 1);
|
|
183
185
|
// padding-left: 0px !important;
|
package/dist/repeater.scss
CHANGED
|
@@ -292,10 +292,11 @@ $rai: "repeater-advertise-item";
|
|
|
292
292
|
// width: calc(var(--_embla-slide-width, 100%) / var(--_embla-col-count, 3));
|
|
293
293
|
flex: 0 0 var(--_sf-cl-vl);
|
|
294
294
|
width: var(--_sf-cl-vl);
|
|
295
|
-
grid-template-rows: minmax(
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
);
|
|
295
|
+
// grid-template-rows: minmax(
|
|
296
|
+
// max(0.5px, 0.09375 * (var(--_cms-scaling-factor) - var(--_cms-scrollbar-width))),
|
|
297
|
+
// auto
|
|
298
|
+
// );
|
|
299
|
+
grid-template-rows: minmax(50px, auto);
|
|
299
300
|
grid-template-columns: minmax(0px, 1fr);
|
|
300
301
|
// padding-left: calc(var(--_embla-slide-space, 10px) * 1);
|
|
301
302
|
// padding-left: 0px !important;
|
|
@@ -466,8 +467,7 @@ $rai: "repeater-advertise-item";
|
|
|
466
467
|
--_ctm-mob-rep-dn-bn-se-dt-se-cr,
|
|
467
468
|
var(--_ctm-tab-rep-dn-bn-se-dt-se-cr, var(--_ctm-rep-dn-bn-se-dt-se-cr))
|
|
468
469
|
);
|
|
469
|
-
font-family:
|
|
470
|
-
var(
|
|
470
|
+
font-family: var(
|
|
471
471
|
--_ctm-mob-rep-dn-bn-se-dt-se-ft-fy,
|
|
472
472
|
var(--_ctm-tab-rep-dn-bn-se-dt-se-ft-fy, var(--_ctm-rep-dn-bn-se-dt-se-ft-fy))
|
|
473
473
|
),
|
|
@@ -625,8 +625,7 @@ $rai: "repeater-advertise-item";
|
|
|
625
625
|
--_ctm-mob-rep-dn-bn-se-hr-se-cr,
|
|
626
626
|
var(--_ctm-tab-rep-dn-bn-se-hr-se-cr, var(--_ctm-rep-dn-bn-se-hr-se-cr))
|
|
627
627
|
);
|
|
628
|
-
font-family:
|
|
629
|
-
var(
|
|
628
|
+
font-family: var(
|
|
630
629
|
--_ctm-mob-rep-dn-bn-se-hr-se-ft-fy,
|
|
631
630
|
var(--_ctm-tab-rep-dn-bn-se-hr-se-ft-fy, var(--_ctm-rep-dn-bn-se-hr-se-ft-fy))
|
|
632
631
|
),
|
package/dist/toggle-button.scss
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
.toggle__button {
|
|
2
|
-
position:
|
|
3
|
-
width:
|
|
4
|
-
height:
|
|
5
|
-
background-color:
|
|
6
|
-
border-radius:
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 36px;
|
|
4
|
+
height: 20px;
|
|
5
|
+
background-color: #d0d5dd;
|
|
6
|
+
border-radius: 12px;
|
|
7
7
|
cursor: pointer;
|
|
8
8
|
|
|
9
9
|
.toggle__slider {
|
|
10
|
-
position:
|
|
11
|
-
top:
|
|
12
|
-
left:
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 2px;
|
|
12
|
+
left: 2px;
|
|
13
13
|
transform: translateY(0%);
|
|
14
|
-
width:
|
|
15
|
-
height:
|
|
14
|
+
width: 16px;
|
|
15
|
+
height: 16px;
|
|
16
16
|
background-color: #fff;
|
|
17
17
|
border-radius: 50%;
|
|
18
18
|
transition: transform 0.3s ease;
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&.toggle__active {
|
|
25
|
-
background:
|
|
25
|
+
background: #132067;
|
|
26
26
|
|
|
27
27
|
.toggle__slider {
|
|
28
|
-
top:
|
|
28
|
+
top: 2px;
|
|
29
29
|
transform: translateX(16px);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -8,7 +8,8 @@ export declare const FB_GRID_MIN_WIDTH = 4;
|
|
|
8
8
|
export declare const FB_GRID_MOBILE_MIN_WIDTH = 2;
|
|
9
9
|
export declare enum FBModeEnum {
|
|
10
10
|
Edit = 1,
|
|
11
|
-
Preview = 2
|
|
11
|
+
Preview = 2,
|
|
12
|
+
WebsitePreview = 3
|
|
12
13
|
}
|
|
13
14
|
export declare enum ScreenSizeEnums {
|
|
14
15
|
Desktop = "desktop",
|
|
@@ -53,6 +54,7 @@ export declare enum FormElementIdEnum {
|
|
|
53
54
|
Phone = "Phone",
|
|
54
55
|
DateOfBirth = "DateOfBirth",
|
|
55
56
|
Address = "Address",
|
|
57
|
+
InputText = "InputText",
|
|
56
58
|
ShortAnswer = "ShortAnswer",
|
|
57
59
|
LongAnswer = "LongAnswer",
|
|
58
60
|
Number = "Number",
|
|
@@ -99,6 +101,7 @@ export interface FormComponentConfig {
|
|
|
99
101
|
};
|
|
100
102
|
state: boolean;
|
|
101
103
|
};
|
|
104
|
+
defaultValue?: any;
|
|
102
105
|
fieldKey?: string;
|
|
103
106
|
options?: string[];
|
|
104
107
|
src?: string;
|
|
@@ -118,7 +121,8 @@ export declare enum ElementSettingEnum {
|
|
|
118
121
|
PLACEHOLDER = 3,
|
|
119
122
|
DESCRIPTION = 4,
|
|
120
123
|
LIMIT_CHARACTER = 5,
|
|
121
|
-
MULTI_TOGGLE = 6
|
|
124
|
+
MULTI_TOGGLE = 6,
|
|
125
|
+
OPTIONS = 7
|
|
122
126
|
}
|
|
123
127
|
export interface SidebarElementItem extends FormComponentConfig {
|
|
124
128
|
categoryId?: number;
|