@sc-360-v2/storefront-cms-library 0.3.39 → 0.3.41

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.
@@ -8,6 +8,17 @@
8
8
  justify-content: space-between;
9
9
  align-items: center;
10
10
  margin-bottom: 1rem;
11
+ .buy-for-header-subtitle {
12
+ display: flex;
13
+ align-items: center;
14
+ gap: 12px;
15
+ font-size: 14px;
16
+ font-weight: normal;
17
+ color: var(--_gray-600);
18
+ svg path {
19
+ stroke: var(--_gray-600);
20
+ }
21
+ }
11
22
 
12
23
  h1 {
13
24
  font-size: var(--_ctm-buy-dn-pe-te-ss-ft-se);
@@ -20,6 +31,8 @@
20
31
  letter-spacing: var(--_ctm-buy-dn-pe-te-ss-lr-sg);
21
32
  line-height: var(--_ctm-buy-dn-pe-te-ss-le-ht);
22
33
  text-decoration: var(--_ctm-buy-dn-pe-te-ss-ue);
34
+ display: flex;
35
+ gap: 12px;
23
36
 
24
37
  .separator {
25
38
  margin: 0 0.5rem;
@@ -41,6 +54,7 @@
41
54
  display: flex;
42
55
  align-items: center;
43
56
  gap: 1rem;
57
+ text-wrap: nowrap;
44
58
 
45
59
  .impersonate-text {
46
60
  background: #f3f5f7;
@@ -59,6 +73,13 @@
59
73
  text-decoration: var(--_ctm-buy-dn-me-es-ll-ss-ue);
60
74
  letter-spacing: var(--_ctm-buy-dn-me-es-ll-ss-lr-sg);
61
75
  line-height: var(--_ctm-buy-dn-me-es-ll-ss-le-ht);
76
+ cursor: pointer;
77
+ padding: 6px 12px;
78
+ font-weight: 500;
79
+ border-radius: 6px;
80
+ &:hover {
81
+ background-color: var(--_primary-25);
82
+ }
62
83
  }
63
84
 
64
85
  .employee-switch {
@@ -88,15 +109,40 @@
88
109
 
89
110
  .employee-info {
90
111
  border-top: 1px solid #eee;
91
- padding-top: 1rem;
92
112
  .employee-details-section {
93
113
  display: flex;
94
114
  justify-content: space-between;
115
+ padding-block: 24px;
116
+ .employee-meta-info {
117
+ display: flex;
118
+ li {
119
+ display: flex;
120
+ align-items: center;
121
+ gap: 8px;
122
+ &:not(:last-child)::after {
123
+ content: "";
124
+ width: 6px;
125
+ height: 6px;
126
+ margin-inline-end: 8px;
127
+ display: inline-block;
128
+ background-color: var(--_gray-200);
129
+ border-radius: 50%;
130
+ }
131
+ }
132
+ }
95
133
  .employee-details {
96
134
  display: flex;
97
135
  justify-content: space-between;
98
136
  align-items: center;
99
- flex-wrap: wrap;
137
+ gap: 12px;
138
+
139
+ .employee-info-status {
140
+ font-size: 14px;
141
+ color: var(--_success-600);
142
+ background: var(--_success-50);
143
+ padding: 4px 8px 6px 8px;
144
+ border-radius: 6px;
145
+ }
100
146
 
101
147
  .employee-name {
102
148
  font-size: var(--_ctm-buy-dn-ee-ne-ss-ft-se);
@@ -266,3 +312,81 @@
266
312
  }
267
313
  }
268
314
  }
315
+
316
+ .buy-for-address-block {
317
+ display: flex;
318
+ gap: 24px;
319
+ border-block: 1px solid var(--_gray-200);
320
+ padding-block: 24px;
321
+ .buy-for-shipping-address {
322
+ display: grid;
323
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
324
+ gap: 24px;
325
+ width: 100%;
326
+ align-items: flex-start;
327
+
328
+ .buy-for-shipping {
329
+ display: flex;
330
+ flex-direction: column;
331
+ gap: 4px;
332
+ position: relative;
333
+ &:not(:first-child)::before {
334
+ content: "";
335
+ width: 1px;
336
+ height: 40px;
337
+ background-color: var(--_gray-200);
338
+ display: inline-block;
339
+ position: absolute;
340
+ margin-left: -12px;
341
+ top: 4px;
342
+ }
343
+ h6 {
344
+ color: var(--_gray-500);
345
+ font-weight: 400;
346
+ font-size: 14px;
347
+ line-height: 20px;
348
+ }
349
+
350
+ .buy-for-shipping-details {
351
+ font-size: 14px;
352
+ font-weight: 600;
353
+ color: var(--_gray-900);
354
+ line-height: 20px;
355
+ }
356
+ }
357
+ }
358
+ .buy-for-cart-main {
359
+ width: 130px;
360
+ display: flex;
361
+ align-items: center;
362
+ gap: 12px;
363
+ height: 40px;
364
+ border-left: 1px solid var(--_gray-200);
365
+ padding-left: 12px;
366
+
367
+ .cart-icon {
368
+ position: relative;
369
+
370
+ .badge {
371
+ position: absolute;
372
+ top: -9px;
373
+ background: #ffd700;
374
+ border-radius: 4px;
375
+ left: 12px;
376
+ padding: 2px 4px;
377
+ line-height: normal;
378
+ color: var(--_gray-900);
379
+ font-weight: 400;
380
+ }
381
+ }
382
+
383
+ .buy-for-cart-content {
384
+ .cart-amount {
385
+ color: var(--_gray-900);
386
+ font-size: 14px;
387
+ font-weight: 600;
388
+ line-height: 20px;
389
+ }
390
+ }
391
+ }
392
+ }
@@ -12,24 +12,47 @@
12
12
  .popup_container {
13
13
  width: 90%;
14
14
  max-width: 600px;
15
- background: #ffffff;
15
+ background: var(--_base-white);
16
16
  border-radius: 12px;
17
17
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
18
18
  display: flex;
19
19
  flex-direction: column;
20
20
  max-height: 83vh;
21
- overflow-y: auto;
22
21
  }
23
22
 
24
23
  .popup_header {
25
24
  display: flex;
26
25
  justify-content: space-between;
26
+ align-items: center;
27
27
  border-bottom: 1px solid var(--_gray-200);
28
28
  padding: 16px 24px;
29
+ gap: 4px;
30
+
31
+ .close-icon {
32
+ width: 32px;
33
+ height: 32px;
34
+ display: flex;
35
+ justify-content: center;
36
+ align-items: center;
37
+ border-radius: 4px;
38
+ svg {
39
+ width: 18px;
40
+ height: 18px;
41
+ path {
42
+ stroke: var(--_gray-600);
43
+ }
44
+ }
45
+ &:hover {
46
+ background-color: var(--_gray-100);
47
+ svg path {
48
+ stroke: var(--_gray-900);
49
+ }
50
+ }
51
+ }
29
52
 
30
53
  h2 {
31
54
  font-size: 18px;
32
- font-weight: 600;
55
+ font-weight: normal;
33
56
  margin: 0;
34
57
  line-height: 28px;
35
58
  }
@@ -48,6 +71,7 @@
48
71
  gap: 12px;
49
72
  font-size: 14px;
50
73
  color: var(--_gray-600);
74
+ list-style: none;
51
75
 
52
76
  li {
53
77
  &::after {
@@ -71,6 +95,7 @@
71
95
 
72
96
  .popup_body {
73
97
  padding: 24px;
98
+ flex-grow: 1;
74
99
  }
75
100
 
76
101
  .search_input {
@@ -85,8 +110,8 @@
85
110
  border: 1px solid var(--_gray-200) !important;
86
111
 
87
112
  &:focus {
88
- outline: none;
89
- border-color: #007bff;
113
+ border: 1px solid var(--_primary-200) !important;
114
+ outline: 2px solid var(--_primary-50);
90
115
  }
91
116
  }
92
117
 
@@ -95,7 +120,7 @@
95
120
  flex-direction: column;
96
121
  gap: 16px;
97
122
  overflow-y: auto;
98
- max-height: 50vh;
123
+ max-height: 30vh;
99
124
  }
100
125
 
101
126
  .group_section {
@@ -178,15 +203,24 @@
178
203
  padding: 16px 24px;
179
204
  border-top: 1px solid var(--_gray-200);
180
205
  justify-content: end;
206
+ gap: 12px;
181
207
 
182
208
  button {
183
209
  padding: 10px 16px;
184
- border-radius: 4px;
210
+ border-radius: 6px;
185
211
  font-size: 14px;
186
212
  font-weight: 500;
187
213
  cursor: pointer;
188
214
  border: none;
189
215
  transition: background 0.2s ease;
216
+ display: flex;
217
+ align-items: center;
218
+ &[aria-label="Discard"] {
219
+ &:hover {
220
+ background-color: var(--_gray-100);
221
+ color: var(--_gray-900);
222
+ }
223
+ }
190
224
 
191
225
  &:first-child {
192
226
  // background: #f3f3f3;
@@ -270,36 +270,36 @@ $resizeActive: '[data-cms-element-resizer="true"]';
270
270
  align-items: center;
271
271
  gap: 1rem;
272
272
 
273
- .dropdown {
274
- flex: 1;
275
- display: flex;
276
- flex-direction: column;
277
- gap: 8px;
278
- max-width: 400px;
279
-
280
- // .quick-order-product-dropdown-section {
281
- // &:focus {
282
- // &:focus {
283
- // border-color: #2563eb;
284
- // box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
285
- // }
286
- // }
287
-
288
- // .dropdown-input-section {
289
- // // padding: 0.5rem;
290
-
291
- // .input-field {
292
- // border: none;
293
- // box-shadow: none;
294
- // padding: 0px;
295
- // }
296
-
297
- // .dropdown-menu {
298
- // top: 40px;
299
- // }
300
- // }
301
- // }
302
- }
273
+ // .dropdown {
274
+ // flex: 1;
275
+ // display: flex;
276
+ // flex-direction: column;
277
+ // gap: 8px;
278
+ // max-width: 400px;
279
+
280
+ // .quick-order-product-dropdown-section {
281
+ // &:focus {
282
+ // &:focus {
283
+ // border-color: #2563eb;
284
+ // box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
285
+ // }
286
+ // }
287
+
288
+ // .dropdown-input-section {
289
+ // // padding: 0.5rem;
290
+
291
+ // .input-field {
292
+ // border: none;
293
+ // box-shadow: none;
294
+ // padding: 0px;
295
+ // }
296
+
297
+ // .dropdown-menu {
298
+ // top: 40px;
299
+ // }
300
+ // }
301
+ // }
302
+ // }
303
303
 
304
304
  .checkbox-wrapper {
305
305
  display: flex;
@@ -354,6 +354,103 @@
354
354
  }
355
355
  }
356
356
 
357
+ // toggle styles
358
+ .input_toggle_switch {
359
+ position: relative;
360
+ display: inline-block;
361
+ width: 50px;
362
+ height: 28px;
363
+
364
+ input[type="checkbox"] {
365
+ opacity: 0;
366
+ width: 0;
367
+ height: 0;
368
+
369
+ &:checked + .slider {
370
+ background-color: #4caf50;
371
+
372
+ &::before {
373
+ transform: translateX(22px);
374
+ }
375
+ }
376
+ }
377
+
378
+ .slider {
379
+ position: absolute;
380
+ cursor: pointer;
381
+ top: 0;
382
+ left: 0;
383
+ right: 0;
384
+ bottom: 0;
385
+ background-color: #ccc;
386
+ transition: 0.4s;
387
+ border-radius: 28px;
388
+
389
+ &::before {
390
+ position: absolute;
391
+ content: "";
392
+ height: 22px;
393
+ width: 22px;
394
+ left: 3px;
395
+ bottom: 3px;
396
+ background-color: white;
397
+ border-radius: 50%;
398
+ transition: 0.4s;
399
+ }
400
+ }
401
+ }
402
+
403
+ // input radio styles
404
+ .input_radio_a {
405
+ position: relative;
406
+ display: inline-flex;
407
+ align-items: center;
408
+ cursor: pointer;
409
+ height: 20px;
410
+ width: 20px;
411
+
412
+ input[type="radio"] {
413
+ opacity: 0;
414
+ width: 0;
415
+ height: 0;
416
+
417
+ &:checked + .custom_radio::after {
418
+ display: block;
419
+ }
420
+ }
421
+
422
+ .custom_radio {
423
+ height: 18px;
424
+ width: 18px;
425
+ border-radius: 50%;
426
+ background-color: var(--_base-white);
427
+ border: 2px solid var(--_gray-600);
428
+ position: relative;
429
+ transition: border-color 0.3s ease;
430
+
431
+ &::after {
432
+ content: "";
433
+ position: absolute;
434
+ top: 3px;
435
+ left: 3px;
436
+ width: 8px;
437
+ height: 8px;
438
+ border-radius: 50%;
439
+ background-color: var(--_primary-400);
440
+ display: none;
441
+ }
442
+ }
443
+
444
+ input[type="radio"]:checked + .custom_radio {
445
+ border-color: var(--_primary-400);
446
+ }
447
+
448
+ &.disabled {
449
+ opacity: 0.5;
450
+ pointer-events: none;
451
+ }
452
+ }
453
+
357
454
  .custom-upload {
358
455
  // text-align: center;
359
456
  // border: 1px solid var(--_gray-200);
@@ -130,6 +130,7 @@ $button-padding: 6px 12px;
130
130
  .label-content {
131
131
  width: 100%;
132
132
  align-items: center;
133
+ cursor: auto;
133
134
  }
134
135
  }
135
136
 
@@ -208,6 +209,11 @@ $button-padding: 6px 12px;
208
209
  flex: 1 0 0;
209
210
  margin: $spacing-md 0px;
210
211
 
212
+ &.disabled {
213
+ opacity: 0.5;
214
+ pointer-events: none;
215
+ }
216
+
211
217
  &:hover {
212
218
  // background-color: lighten($primary-color, $amount: 5%);
213
219
  background-color: color-mix(in srgb, #{$primary-color} 95%, var(--_base-white));