@sc-360-v2/storefront-cms-library 0.2.79 → 0.2.81
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/buy-for-tab-container.scss +89 -0
- package/dist/buy-for-tab.scss +579 -0
- package/dist/buy-for-tabs-container-item.scss +80 -0
- package/dist/buyForHeaders.scss +203 -0
- package/dist/{buyFor.scss → buyForPopup.scss} +86 -22
- package/dist/cart-details.scss +1 -1
- package/dist/cart-products-sidebar.scss +201 -0
- package/dist/cartDropdownOverlay.scss +34 -27
- package/dist/checkout.scss +173 -0
- package/dist/layouter.scss +9 -2
- package/dist/light-box-v2.scss +4 -0
- package/dist/quick-links.scss +249 -194
- package/dist/repeater-embla-controls.scss +71 -96
- package/dist/repeater.scss +8 -2
- package/dist/search.scss +30 -0
- package/dist/types/builder/elements/add-order/index.d.ts +1 -1
- package/dist/types/builder/elements/buy-for-tab/index.d.ts +46 -0
- package/dist/types/builder/elements/buy-for-tab-container/index.d.ts +45 -0
- package/dist/types/builder/elements/checkout/index.d.ts +27 -0
- package/dist/types/builder/elements/section/index.d.ts +3 -0
- package/dist/types/builder/elements/toaster/index.d.ts +30 -0
- package/dist/types/builder/enums/index.d.ts +18 -1
- package/dist/types/builder/index.d.ts +5 -1
- package/dist/types/builder/tools/element-edit/bundle.d.ts +15 -0
- package/dist/types/builder/tools/element-edit/buyForTabContainer.d.ts +9 -0
- package/dist/types/builder/tools/element-edit/buyForWithTab.d.ts +215 -0
- package/dist/types/builder/tools/element-edit/checkout.d.ts +343 -0
- package/dist/types/builder/tools/element-edit/index.d.ts +5 -1
- package/dist/types/builder/tools/element-edit/quickLinks.d.ts +98 -123
- package/dist/types/builder/tools/element-edit/section.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/storeLocations.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/toaster.d.ts +38 -0
- package/dist/uom-selector.scss +3 -3
- package/dist/widget.scss +7 -2
- package/package.json +1 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "sass:color"; // Import the sass:color module
|
|
2
|
+
|
|
1
3
|
// Variables
|
|
2
4
|
$primary-color: #243dc6;
|
|
3
5
|
$background-color: #ffffff;
|
|
@@ -5,6 +7,8 @@ $text-color: #333333;
|
|
|
5
7
|
$border-radius: 8px;
|
|
6
8
|
$shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
7
9
|
$font-size: 14px;
|
|
10
|
+
$header-text-font-size: 16px;
|
|
11
|
+
$header-btn-font-size: 24px;
|
|
8
12
|
$spacing-sm: 6px;
|
|
9
13
|
$spacing-md: 12px;
|
|
10
14
|
$button-padding: 6px 12px;
|
|
@@ -32,7 +36,37 @@ $button-padding: 6px 12px;
|
|
|
32
36
|
padding: $spacing-md;
|
|
33
37
|
z-index: 1000;
|
|
34
38
|
// width: 220px;
|
|
39
|
+
.header-template {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
padding-bottom: $spacing-md;
|
|
44
|
+
border-bottom: 1px solid #eee;
|
|
45
|
+
margin-bottom: $spacing-md;
|
|
46
|
+
|
|
47
|
+
span {
|
|
48
|
+
font-size: $header-text-font-size;
|
|
49
|
+
font-weight: 600;
|
|
50
|
+
color: $text-color;
|
|
51
|
+
}
|
|
35
52
|
|
|
53
|
+
button {
|
|
54
|
+
color: $primary-color;
|
|
55
|
+
font-size: $header-btn-font-size;
|
|
56
|
+
background: none;
|
|
57
|
+
border: none;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
transition: color 0.2s ease-in-out;
|
|
60
|
+
|
|
61
|
+
&:hover {
|
|
62
|
+
color: color.scale($primary-color, $lightness: -10%); // Use color.scale
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:focus {
|
|
66
|
+
outline: none;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
36
70
|
.option {
|
|
37
71
|
display: flex;
|
|
38
72
|
align-items: center;
|
|
@@ -88,31 +122,4 @@ $button-padding: 6px 12px;
|
|
|
88
122
|
top: -192px; /* shows above the button */
|
|
89
123
|
margin-bottom: 8px;
|
|
90
124
|
}
|
|
91
|
-
.cta-text-button {
|
|
92
|
-
background: none;
|
|
93
|
-
border: none;
|
|
94
|
-
padding: 0;
|
|
95
|
-
margin: 0;
|
|
96
|
-
color: #2563eb; // Blue-600
|
|
97
|
-
font-size: 14px;
|
|
98
|
-
font-weight: 500;
|
|
99
|
-
cursor: pointer;
|
|
100
|
-
text-decoration: underline;
|
|
101
|
-
transition: color 0.2s ease;
|
|
102
|
-
|
|
103
|
-
&:hover {
|
|
104
|
-
color: #1d4ed8; // Blue-700
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&:focus {
|
|
108
|
-
outline: none;
|
|
109
|
-
text-decoration: underline;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
&:disabled {
|
|
113
|
-
color: #9ca3af; // Gray-400
|
|
114
|
-
cursor: not-allowed;
|
|
115
|
-
text-decoration: none;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
125
|
}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:list";
|
|
3
|
+
|
|
4
|
+
$resizerId: "[data-cms-tool='cms-element-resizer']";
|
|
5
|
+
$resizeActive: '[data-cms-element-resizer="true"]';
|
|
6
|
+
|
|
7
|
+
$primary-color: var(--_primary-400);
|
|
8
|
+
$secondary-color: var(--_gray-300);
|
|
9
|
+
$light-color: #f5f5f5;
|
|
10
|
+
$dark-color: #343a40;
|
|
11
|
+
|
|
12
|
+
[data-div-type="element"] {
|
|
13
|
+
&[data-element-type="checkout"] {
|
|
14
|
+
width: var(
|
|
15
|
+
--_sf-el-wh-st-mx,
|
|
16
|
+
calc(
|
|
17
|
+
1% *
|
|
18
|
+
var(
|
|
19
|
+
--_mob-ctm-ele-nw-wh-vl,
|
|
20
|
+
var(--_tab-ctm-ele-nw-wh-vl, var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh)))
|
|
21
|
+
)
|
|
22
|
+
)
|
|
23
|
+
);
|
|
24
|
+
margin: var(--_ctm-mob-lt-mn, var(--_ctm-tab-lt-mn, var(--_ctm-lt-mn)));
|
|
25
|
+
& > div {
|
|
26
|
+
&.wrapper {
|
|
27
|
+
width: 100%;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.checkout_wrapper {
|
|
32
|
+
font-family: Arial, sans-serif;
|
|
33
|
+
font-size: 0.95rem;
|
|
34
|
+
color: $dark-color;
|
|
35
|
+
.accordion {
|
|
36
|
+
border-radius: 4px;
|
|
37
|
+
margin-bottom: 1rem;
|
|
38
|
+
|
|
39
|
+
.accordion-header {
|
|
40
|
+
padding: 1rem;
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
align-items: flex-start;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
background-color: $light-color;
|
|
46
|
+
|
|
47
|
+
.accordion-title {
|
|
48
|
+
font-weight: 600;
|
|
49
|
+
margin-right: 1rem;
|
|
50
|
+
white-space: nowrap;
|
|
51
|
+
}
|
|
52
|
+
.edit-btn {
|
|
53
|
+
align-self: flex-end;
|
|
54
|
+
background: none;
|
|
55
|
+
border: none;
|
|
56
|
+
color: $primary-color;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
font-size: 0.875rem;
|
|
59
|
+
padding: 0;
|
|
60
|
+
margin-top: 4px;
|
|
61
|
+
|
|
62
|
+
&:hover {
|
|
63
|
+
text-decoration: underline;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.accordion-body {
|
|
69
|
+
padding: 1rem 0;
|
|
70
|
+
|
|
71
|
+
.accordion-summary {
|
|
72
|
+
flex: 1;
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
color: $dark-color;
|
|
76
|
+
font-size: 0.95rem;
|
|
77
|
+
gap: 0.25rem;
|
|
78
|
+
|
|
79
|
+
.summary-content {
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-direction: row;
|
|
82
|
+
justify-content: space-between;
|
|
83
|
+
gap: 0.5rem;
|
|
84
|
+
|
|
85
|
+
.shipping-summary {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
gap: 0.3rem;
|
|
89
|
+
|
|
90
|
+
.address {
|
|
91
|
+
font-weight: 500;
|
|
92
|
+
color: $dark-color;
|
|
93
|
+
line-height: 1.5;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.contact {
|
|
97
|
+
font-size: 0.875rem;
|
|
98
|
+
color: $dark-color;
|
|
99
|
+
line-height: 1.4;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.change-link {
|
|
104
|
+
color: $primary-color;
|
|
105
|
+
font-size: 0.875rem;
|
|
106
|
+
text-decoration: underline;
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
align-self: flex-start;
|
|
109
|
+
white-space: nowrap;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
form {
|
|
115
|
+
display: flex;
|
|
116
|
+
flex-direction: column;
|
|
117
|
+
gap: 0.75rem;
|
|
118
|
+
max-width: calc(100% - 200px);
|
|
119
|
+
}
|
|
120
|
+
.form-group {
|
|
121
|
+
display: flex;
|
|
122
|
+
justify-content: space-between;
|
|
123
|
+
flex-direction: row;
|
|
124
|
+
gap: 30px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
input,
|
|
128
|
+
select {
|
|
129
|
+
font-size: 14px;
|
|
130
|
+
padding: 10px;
|
|
131
|
+
border: 1px solid $secondary-color;
|
|
132
|
+
border-radius: 4px;
|
|
133
|
+
width: -webkit-fill-available;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
input[type="checkbox"] {
|
|
137
|
+
width: auto;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
label {
|
|
141
|
+
display: flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
gap: 0.5rem;
|
|
144
|
+
font-size: 14px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.checkbox-group {
|
|
148
|
+
display: flex;
|
|
149
|
+
align-items: center;
|
|
150
|
+
justify-content: start;
|
|
151
|
+
gap: 8px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.submit-btn {
|
|
155
|
+
align-self: flex-start;
|
|
156
|
+
margin-top: 1rem;
|
|
157
|
+
background-color: $primary-color;
|
|
158
|
+
color: $light-color;
|
|
159
|
+
border: none;
|
|
160
|
+
padding: 0.5rem 1rem;
|
|
161
|
+
font-size: 14px;
|
|
162
|
+
border-radius: 4px;
|
|
163
|
+
cursor: pointer;
|
|
164
|
+
|
|
165
|
+
&:hover {
|
|
166
|
+
opacity: 0.8;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
package/dist/layouter.scss
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@use "sass:list";
|
|
3
3
|
@use "./repeater-embla-controls.scss" as *;
|
|
4
4
|
$childItemSelector: '[data-element-type="layouter-item"]';
|
|
5
|
+
$sliderControlDragging: "[flex-slider-control-moving='true']";
|
|
5
6
|
[data-div-type="element"] {
|
|
6
7
|
&[data-element-type="layouter"] {
|
|
7
8
|
// width: var(--_sf-con-nw-wh);
|
|
@@ -123,7 +124,10 @@ $childItemSelector: '[data-element-type="layouter-item"]';
|
|
|
123
124
|
}
|
|
124
125
|
|
|
125
126
|
&.sld {
|
|
126
|
-
|
|
127
|
+
&:is(:not(#{$sliderControlDragging} *)) {
|
|
128
|
+
overflow: clip;
|
|
129
|
+
}
|
|
130
|
+
// overflow: clip;
|
|
127
131
|
height: auto;
|
|
128
132
|
min-height: 50px !important;
|
|
129
133
|
--_sf-sl-ct-ic-dt-at-cl: var(
|
|
@@ -133,8 +137,11 @@ $childItemSelector: '[data-element-type="layouter-item"]';
|
|
|
133
137
|
// &:is([data-control-type="1"]) {
|
|
134
138
|
// @include CMSRepeaterEmblaControlStyles(1);
|
|
135
139
|
// }
|
|
136
|
-
@for $i from 1 through
|
|
140
|
+
@for $i from 1 through 3 {
|
|
137
141
|
&:is([data-control-type="#{$i}"]) {
|
|
142
|
+
@if ($i == 3) {
|
|
143
|
+
overflow-y: visible;
|
|
144
|
+
}
|
|
138
145
|
@include CMSRepeaterEmblaControlStyles($i);
|
|
139
146
|
}
|
|
140
147
|
}
|
package/dist/light-box-v2.scss
CHANGED
|
@@ -16,6 +16,10 @@ $activeElementSelector: "[data-has-clicked='true']";
|
|
|
16
16
|
--_cms-element-active-zIndex: calc(
|
|
17
17
|
var(--_cms-section-add-button-zIndex) + var(--_cms-sl-df-zIndex) + 3
|
|
18
18
|
);
|
|
19
|
+
--_sf-element-vt-pd: max(
|
|
20
|
+
0.5px,
|
|
21
|
+
0.00625 * (var(--_cms-scaling-factor) - var(--_cms-scrollbar-width))
|
|
22
|
+
);
|
|
19
23
|
|
|
20
24
|
&:has(#{$activeElementSelector}) {
|
|
21
25
|
// border: 1px solid var(--_accent-color-2-500);
|