@sc-360-v2/storefront-cms-library 0.4.27 → 0.4.29

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.
@@ -436,6 +436,12 @@
436
436
  display: flex;
437
437
  width: 600px;
438
438
  gap: 12px;
439
+ .option-dropdown {
440
+ label {
441
+ display: block;
442
+ margin-bottom: 6px;
443
+ }
444
+ }
439
445
 
440
446
  .dropdown-with-input-section {
441
447
  gap: 6px;
@@ -521,17 +521,17 @@ $resizeActive: '[data-cms-element-resizer="true"]';
521
521
  }
522
522
  // button styles for primary
523
523
  .primary__btn {
524
- color: var(--_thm-py-bs-dt-se-tt-cr);
525
- background-color: var(--_thm-py-bs-dt-se-bd-cr);
526
- color: var(--_thm-py-bs-dt-se-tt-cr);
527
- text-align: center;
528
- border-radius: var(--_thm-py-bs-hr-se-br-rs);
524
+ // color: var(--_thm-py-bs-dt-se-tt-cr);
525
+ // background-color: var(--_thm-py-bs-dt-se-bd-cr);
526
+ // color: var(--_thm-py-bs-dt-se-tt-cr);
527
+ // text-align: center;
528
+ // border-radius: var(--_thm-py-bs-hr-se-br-rs);
529
529
  padding: 10px 16px;
530
- height: 40px;
531
- &:hover {
532
- background-color: var(--_thm-py-bs-hr-se-bd-cr);
533
- color: var(--_thm-py-bs-hr-se-tt-cr);
534
- }
530
+ // height: 40px;
531
+ // &:hover {
532
+ // background-color: var(--_thm-py-bs-hr-se-bd-cr);
533
+ // color: var(--_thm-py-bs-hr-se-tt-cr);
534
+ // }
535
535
  }
536
536
  }
537
537
 
@@ -1826,7 +1826,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1826
1826
  .review_cart-main {
1827
1827
  border: 1px solid var(--_gray-200);
1828
1828
  border-radius: 6px;
1829
- margin: 24px;
1829
+ // margin: 24px;
1830
1830
  padding: 24px 24px 8px 24px;
1831
1831
  max-height: 550px;
1832
1832
  overflow-y: auto;
@@ -1848,6 +1848,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1848
1848
  ul {
1849
1849
  display: flex;
1850
1850
  align-items: center;
1851
+ list-style: none;
1851
1852
  li {
1852
1853
  line-height: 20px;
1853
1854
  font-size: 14px;
@@ -1875,12 +1876,14 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1875
1876
  }
1876
1877
  .shipping_address {
1877
1878
  display: flex;
1879
+ grid-template-columns: auto auto auto;
1878
1880
  padding: 24px 0;
1879
1881
  border-bottom: 1px solid var(--_gray-200);
1880
1882
  .shipping {
1881
- min-width: 45%;
1883
+ min-width: 40%;
1882
1884
  margin-right: 16px;
1883
1885
  border-right: 1px solid var(--_gray-200);
1886
+ padding-right: 12px;
1884
1887
  &:last-of-type {
1885
1888
  border-right: 0;
1886
1889
  }
@@ -1899,7 +1902,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1899
1902
  }
1900
1903
  }
1901
1904
  .cart_main {
1902
- width: 10%;
1905
+ width: 150px;
1903
1906
  display: flex;
1904
1907
  gap: 16px;
1905
1908
  align-items: center;
@@ -1911,7 +1914,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1911
1914
  background: #ffd700;
1912
1915
  border-radius: 4px;
1913
1916
  left: 15px;
1914
- padding: 2px;
1917
+ padding: 2px 6px;
1915
1918
  line-height: normal;
1916
1919
  color: #1f1930;
1917
1920
  font-weight: 400;
@@ -1932,7 +1935,8 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1932
1935
  }
1933
1936
 
1934
1937
  .cart-items {
1935
- h6 {
1938
+ h6,
1939
+ .cart-items-title {
1936
1940
  font-size: 14px;
1937
1941
  font-weight: 600;
1938
1942
  color: var(--_gray-900);
@@ -1956,6 +1960,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1956
1960
  border-radius: 4px;
1957
1961
  }
1958
1962
  .product_item-details {
1963
+ list-style: none;
1959
1964
  .product_item-name {
1960
1965
  font-size: 14px;
1961
1966
  font-weight: 700;
@@ -1969,6 +1974,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1969
1974
  }
1970
1975
  .product_item-specs {
1971
1976
  display: flex;
1977
+ list-style: none;
1972
1978
  li {
1973
1979
  color: var(--_gray-600);
1974
1980
  font-size: 14px;
@@ -48,6 +48,7 @@
48
48
  }
49
49
 
50
50
  h2 {
51
+ color: var(--_thm-ty-p1-tt-cr);
51
52
  font-size: 18px;
52
53
  font-weight: normal;
53
54
  margin: 0;
@@ -91,55 +92,56 @@
91
92
 
92
93
  button {
93
94
  padding: 10px 16px;
94
- border-radius: 6px;
95
- font-size: 14px;
96
- font-weight: 500;
97
- cursor: pointer;
98
- border: none;
99
- transition: background 0.2s ease;
100
- display: flex;
101
- align-items: center;
102
- &[aria-label="Discard"] {
103
- &:hover {
104
- background-color: var(--_gray-100);
105
- color: var(--_gray-900);
106
- }
107
- }
108
-
109
- &:first-child {
110
- // background: #f3f3f3;
111
- color: #333;
112
-
113
- &:hover {
114
- // background: #e0e0e0;
115
- }
116
- }
95
+ // border-radius: 6px;
96
+ // font-size: 14px;
97
+ // font-weight: 500;
98
+ // cursor: pointer;
99
+ // border: none;
100
+ // transition: background 0.2s ease;
101
+ // display: flex;
102
+ // align-items: center;
103
+ // &[aria-label="Discard"] {
104
+ // &:hover {
105
+ // background-color: var(--_gray-100);
106
+ // color: var(--_gray-900);
107
+ // }
108
+ // }
109
+
110
+ // &:first-child {
111
+ // // background: #f3f3f3;
112
+ // color: #333;
113
+
114
+ // &:hover {
115
+ // // background: #e0e0e0;
116
+ // }
117
+ // }
117
118
 
118
119
  &.proceed_button {
119
- background: var(--_primary-400);
120
- color: #fff;
121
- display: flex;
122
- gap: 10px;
123
-
124
- span {
125
- svg {
126
- width: 18px;
127
- height: 18px;
128
-
129
- path {
130
- stroke: #ffffff;
131
- }
132
- }
133
- }
120
+ // background: var(--_primary-400);
121
+ // color: #fff;
122
+ // display: flex;
123
+ // gap: 10px;
124
+
125
+ // span {
126
+ // svg {
127
+ // width: 18px;
128
+ // height: 18px;
129
+
130
+ // path {
131
+ // stroke: #ffffff;
132
+ // }
133
+ // }
134
+ // }
134
135
 
135
136
  &:disabled {
136
- background: var(--_primary-100);
137
+ background: var(--_sf-hr-bd-cr, var(--_thm-py-bs-dt-se-bd-cr));
137
138
  cursor: not-allowed;
139
+ opacity: 0.7;
138
140
  }
139
141
 
140
- &:not(:disabled):hover {
141
- background: #0069d9;
142
- }
142
+ // &:not(:disabled):hover {
143
+ // background: #0069d9;
144
+ // }
143
145
  }
144
146
  }
145
147
  }
@@ -205,6 +207,13 @@
205
207
  justify-content: center;
206
208
  align-items: center;
207
209
  height: 210px;
210
+ p {
211
+ color: var(--_thm-ty-p1-tt-cr);
212
+ font-size: 18px;
213
+ font-weight: normal;
214
+ margin: 0;
215
+ line-height: 28px;
216
+ }
208
217
  }
209
218
  }
210
219
 
@@ -260,12 +269,16 @@
260
269
  flex-direction: column;
261
270
 
262
271
  .user_name {
272
+ color: var(--_thm-ty-p1-tt-cr);
263
273
  font-weight: 500;
274
+ font-size: 18px;
275
+ margin: 0;
276
+ line-height: 28px;
264
277
  }
265
278
 
266
279
  .user_id {
267
280
  font-size: 12px;
268
- color: #666;
281
+ color: var(--_thm-ty-p3-tt-cr);
269
282
  display: flex;
270
283
  gap: 4px;
271
284
  margin-top: 6px;
@@ -1585,7 +1585,8 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1585
1585
  }
1586
1586
 
1587
1587
  &:hover {
1588
- --_sf-hr-bd-cr: #{prepareMediaVariable(--_ctm-dn-ct-as-rt-qe-hr-se-bd-cr)};
1588
+ // --_sf-hr-bd-cr: #{prepareMediaVariable(--_ctm-dn-ct-as-rt-qe-hr-se-bd-cr)};
1589
+ @include BgColorLighter(var(--_sf-hr-cr), 5%);
1589
1590
  --_sf-hr-br-cr: #{prepareMediaVariable(--_ctm-dn-ct-as-rt-qe-hr-se-br-cr)};
1590
1591
  --_sf-hr-br-se: #{prepareMediaVariable(--_ctm-dn-ct-as-rt-qe-hr-se-br-se)};
1591
1592
  --_sf-hr-br-wh: #{prepareMediaVariable(--_ctm-dn-ct-as-rt-qe-hr-se-br-wh)};
package/dist/coupon.scss CHANGED
@@ -295,6 +295,91 @@ $resizeActive: '[data-cms-element-resizer="true"]';
295
295
  white-space: nowrap;
296
296
  }
297
297
  }
298
+ .coupon_code_apply_section {
299
+ display: flex;
300
+ flex-direction: column;
301
+ gap: 16px;
302
+ .coupon_code_fields_wrapper {
303
+ display: flex;
304
+ align-items: center;
305
+ justify-content: space-between;
306
+ gap: 12px;
307
+ input {
308
+ border: 1px solid #d0d5dd;
309
+ padding: 12px;
310
+ width: 100%;
311
+ border-radius: 4px;
312
+ }
313
+ .coupon-search-btn {
314
+ width: 93px;
315
+ height: 48px;
316
+ white-space: nowrap;
317
+ }
318
+ }
319
+ .couponCode_divider {
320
+ border: 1px dashed #d0d5dd;
321
+ }
322
+ .coupon-list {
323
+ display: flex;
324
+ flex-direction: column;
325
+ gap: 24px;
326
+ .coupon-item {
327
+ display: flex;
328
+ flex-direction: row;
329
+ gap: 12px;
330
+ input {
331
+ width: 18px;
332
+ display: flex;
333
+ flex-direction: column;
334
+ position: relative;
335
+ top: -9px;
336
+ }
337
+ input[type="checkbox"] {
338
+ accent-color: rgb(36 61 198);
339
+ }
340
+ .coupon-info {
341
+ display: flex;
342
+ flex-direction: column;
343
+ gap: 6px;
344
+ .coupon-title {
345
+ font-size: 16px;
346
+ font-weight: 700;
347
+ line-height: 24px;
348
+ color: #101828;
349
+ }
350
+ .coupon-desc {
351
+ font-size: 14px;
352
+ font-weight: 400;
353
+ line-height: 20px;
354
+ color: #667085;
355
+ }
356
+ }
357
+ }
358
+ }
359
+ .coupon-footer-section {
360
+ display: flex;
361
+ justify-content: space-between;
362
+ .coupon-savings {
363
+ .title {
364
+ font-size: 14px;
365
+ font-weight: 400;
366
+ line-height: 20px;
367
+ color: #344054;
368
+ }
369
+ .price {
370
+ font-size: 16px;
371
+ font-weight: 700;
372
+ line-height: 24px;
373
+ color: #101828;
374
+ }
375
+ }
376
+ .apply-coupon-primary-btn {
377
+ width: 158px;
378
+ height: 48px;
379
+ white-space: nowrap;
380
+ }
381
+ }
382
+ }
298
383
  }
299
384
  }
300
385
  }
@@ -0,0 +1,226 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+ @use "./functions.scss" as *;
4
+
5
+ .default__dropdown {
6
+ position: relative;
7
+ width: 100%;
8
+
9
+ .bo-dropdown__container {
10
+ padding: 8px 12px;
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: space-between;
14
+ border: 1px solid var(--_gray-300);
15
+ border-radius: 4px;
16
+ background-color: var(--_base-white);
17
+ min-height: 40px;
18
+ cursor: pointer;
19
+ transition: 0.2s ease;
20
+ padding-inline: 12px !important;
21
+ // .bod-trigger-left {
22
+ // padding-left: 12px;
23
+ // }
24
+ .bo-dropdown__actions {
25
+ // padding-right: 12px;
26
+ .bo-dropdown__clear-btn {
27
+ span {
28
+ display: flex;
29
+ }
30
+ }
31
+ }
32
+ .bod-trigger-left {
33
+ width: -webkit-fill-available;
34
+ }
35
+ }
36
+
37
+ .bo-dropdown__container--search {
38
+ padding: 0;
39
+ cursor: text;
40
+ }
41
+
42
+ .bo-dropdown__container--disabled {
43
+ cursor: not-allowed;
44
+ opacity: 0.6;
45
+ }
46
+
47
+ .bo-dropdown__value-wrapper {
48
+ flex: 1;
49
+ min-width: 0;
50
+ }
51
+
52
+ .bo-dropdown__placeholder {
53
+ color: #9ca3af;
54
+ font-size: 14px;
55
+ white-space: nowrap;
56
+ overflow: hidden;
57
+ text-overflow: ellipsis;
58
+ }
59
+
60
+ .bo-dropdown__selected {
61
+ display: flex;
62
+ align-items: center;
63
+ gap: 8px;
64
+ }
65
+
66
+ .bo-dropdown__selected-info {
67
+ display: flex;
68
+ flex-direction: column;
69
+ min-width: 0;
70
+ }
71
+
72
+ .bo-dropdown__selected-name {
73
+ font-weight: normal;
74
+ color: #111827;
75
+ white-space: nowrap;
76
+ overflow: hidden;
77
+ text-overflow: ellipsis;
78
+ }
79
+
80
+ .bo-dropdown__selected-code {
81
+ font-size: 12px;
82
+ color: #6b7280;
83
+ white-space: nowrap;
84
+ overflow: hidden;
85
+ text-overflow: ellipsis;
86
+ }
87
+
88
+ .bo-dropdown__actions {
89
+ display: flex;
90
+ align-items: center;
91
+ gap: 4px;
92
+ flex-shrink: 0;
93
+ }
94
+
95
+ .bo-dropdown__clear-btn,
96
+ .bo-dropdown__toggle-btn {
97
+ display: flex;
98
+ align-items: center;
99
+ justify-content: center;
100
+ width: 20px;
101
+ height: 20px;
102
+ border: none;
103
+ background: none;
104
+ cursor: pointer;
105
+ border-radius: 4px;
106
+ }
107
+
108
+ .bo-dropdown__chevron {
109
+ transition: transform 0.2s ease;
110
+ }
111
+
112
+ .bo-dropdown__chevron--open {
113
+ transform: rotate(180deg);
114
+ }
115
+
116
+ .bo-dropdown__panel {
117
+ position: absolute;
118
+ top: 100%;
119
+ left: 0;
120
+ right: 0;
121
+ z-index: 1000;
122
+ margin-top: 4px;
123
+ background-color: #ffffff;
124
+ border: 1px solid #d1d5db;
125
+ border-radius: 8px;
126
+ box-shadow:
127
+ 0 10px 15px -3px rgba(0, 0, 0, 0.1),
128
+ 0 4px 6px -2px rgba(0, 0, 0, 0.05);
129
+ max-height: 320px;
130
+ overflow: hidden;
131
+ }
132
+
133
+ .bo-dropdown__list {
134
+ max-height: 240px;
135
+ overflow-y: auto;
136
+ margin: 0;
137
+ padding: 0;
138
+ list-style: none;
139
+ padding: 4px;
140
+ display: flex;
141
+ flex-direction: column;
142
+ gap: 2px;
143
+ }
144
+
145
+ .bo-dropdown__option {
146
+ display: flex;
147
+ align-items: center;
148
+ gap: 8px;
149
+ padding: 8px 12px;
150
+ cursor: pointer;
151
+ }
152
+
153
+ .bo-dropdown__option:last-child {
154
+ border-bottom: none;
155
+ }
156
+
157
+ .bo-dropdown__option--highlighted {
158
+ @include BgColorLighter(var(--_thm-cs-at-py), 10%);
159
+ color: var(--_thm-cs-at-py);
160
+ border-radius: 4px;
161
+ }
162
+
163
+ .bo-dropdown__option--selected {
164
+ background-color: var(--_base-white);
165
+ border-radius: 4px;
166
+ }
167
+
168
+ .bo-dropdown__check {
169
+ svg path {
170
+ stroke: var(--_thm-cs-at-py);
171
+ }
172
+ }
173
+
174
+ .bo-dropdown__option-text {
175
+ flex: 1;
176
+ min-width: 0;
177
+ }
178
+
179
+ .bo-dropdown__option-name {
180
+ font-weight: 500;
181
+ color: #111827;
182
+ font-size: 13px;
183
+ line-height: 1.2;
184
+ margin-bottom: 1px;
185
+ white-space: nowrap;
186
+ overflow: hidden;
187
+ text-overflow: ellipsis;
188
+ }
189
+
190
+ .bo-dropdown__option-code {
191
+ font-size: 11px;
192
+ color: #6b7280;
193
+ line-height: 1.2;
194
+ white-space: nowrap;
195
+ overflow: hidden;
196
+ text-overflow: ellipsis;
197
+ }
198
+
199
+ .bo-dropdown__empty,
200
+ .bo-dropdown__loading {
201
+ padding: 24px 12px;
202
+ text-align: center;
203
+ color: #6b7280;
204
+ }
205
+
206
+ .bo-dropdown__empty-title {
207
+ display: block;
208
+ font-weight: 500;
209
+ margin-bottom: 4px;
210
+ }
211
+
212
+ .bo-dropdown__empty-sub {
213
+ font-size: 12px;
214
+ color: #9ca3af;
215
+ }
216
+
217
+ @keyframes pulse {
218
+ 0%,
219
+ 100% {
220
+ opacity: 0.4;
221
+ }
222
+ 50% {
223
+ opacity: 1;
224
+ }
225
+ }
226
+ }