@sc-360-v2/storefront-cms-library 0.3.57 → 0.3.59

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.
@@ -171,8 +171,9 @@ $dark-color: #343a40;
171
171
  .chk_checkout_accordion {
172
172
  display: flex;
173
173
  padding: var(--_ctm-lt-pg);
174
+ gap: 4px;
174
175
  flex-direction: column;
175
- gap: 24px;
176
+ // gap: 24px;
176
177
  // gap: var(--_ctm-lt-te-ad-it-gp);
177
178
  word-break: keep-all;
178
179
  padding-bottom: 24px;
@@ -220,11 +221,28 @@ $dark-color: #343a40;
220
221
  .accordion {
221
222
  border-radius: 4px;
222
223
  display: flex;
223
- gap: 16px;
224
+ // gap: 16px;
224
225
  // gap: var(--_ctm-lt-an-hg-ad-ve-gp);
225
226
  flex-direction: column;
227
+ transition: max-height 800ms ease-in;
228
+ &.open {
229
+ transition: max-height 800ms ease-in;
230
+ .accordion-header {
231
+ background-color: var(--_gray-200);
232
+ }
233
+ .accordion-body {
234
+ transition: max-height 800ms ease-in;
235
+ max-height: 2000px;
236
+ padding-block: 12px 24px;
237
+ .shipping-address {
238
+ max-height: fit-content;
239
+ transition: max-height 800ms ease-in;
240
+ }
241
+ }
242
+ }
226
243
 
227
244
  .accordion-header {
245
+ height: 55px;
228
246
  display: flex;
229
247
  justify-content: space-between;
230
248
  align-items: center;
@@ -520,6 +538,11 @@ $dark-color: #343a40;
520
538
 
521
539
  .accordion-body {
522
540
  // margin-bottom: 16px;
541
+ transition: max-height 800ms ease-in;
542
+
543
+ max-height: 0px;
544
+ overflow: hidden;
545
+ padding: 0;
523
546
  .summary {
524
547
  .chk_shipping_method_label {
525
548
  display: flex;
@@ -609,8 +632,16 @@ $dark-color: #343a40;
609
632
  }
610
633
 
611
634
  .shipping-address {
635
+ transition: max-height 800ms ease-in;
636
+ max-height: 0;
612
637
  display: flex;
613
638
  flex-direction: column;
639
+ .btn_link {
640
+ color: var(--_primary-400);
641
+ &:hover {
642
+ text-decoration: underline;
643
+ }
644
+ }
614
645
  // gap: 24px;
615
646
  background-color: var(
616
647
  --_ctm-mob-dn-an-tb-sg-ds-as-wr-as-cr-bd-cr,
@@ -889,12 +920,16 @@ $dark-color: #343a40;
889
920
  display: flex;
890
921
  flex-direction: column;
891
922
  gap: 24px;
923
+ max-width: 485px;
892
924
  }
893
925
 
894
926
  .shipping_address_heading_container {
895
927
  display: flex;
896
928
  justify-content: space-between;
897
929
  align-items: center;
930
+ font-size: 18px;
931
+ font-weight: 600;
932
+ color: var(--_gray-900);
898
933
  }
899
934
 
900
935
  form {
@@ -2168,6 +2203,29 @@ $dark-color: #343a40;
2168
2203
  .gift_crd_chk_payment_option {
2169
2204
  border: 1px solid var(--_gray-300);
2170
2205
  border-radius: 6px;
2206
+ .add_gift_card {
2207
+ display: flex;
2208
+ gap: 12px;
2209
+ padding: 16px;
2210
+
2211
+ .gc_icon {
2212
+ svg {
2213
+ width: 18px;
2214
+ height: 14px;
2215
+ }
2216
+ }
2217
+
2218
+ .gc_info {
2219
+ display: flex;
2220
+ flex-direction: column;
2221
+ gap: 6px;
2222
+
2223
+ .gc_title {
2224
+ font-size: 14px;
2225
+ font-weight: 600;
2226
+ }
2227
+ }
2228
+ }
2171
2229
  .payment_heading {
2172
2230
  padding: 16px;
2173
2231
  .chk_payment_options_heading {
@@ -2606,6 +2664,10 @@ $dark-color: #343a40;
2606
2664
  .chk_payment_section_col_left {
2607
2665
  display: flex;
2608
2666
  gap: 12px;
2667
+ svg {
2668
+ width: 24px;
2669
+ height: 24px;
2670
+ }
2609
2671
  .chk_payment_section_method {
2610
2672
  display: flex;
2611
2673
  flex-direction: column;
@@ -2746,13 +2808,7 @@ $dark-color: #343a40;
2746
2808
  align-items: center;
2747
2809
  padding-inline: 12px;
2748
2810
  gap: 12px;
2749
- background-color: var(
2750
- --_ctm-mob-dn-an-tb-fm-wr-is-bd-cr,
2751
- var(
2752
- --_ctm-tab-dn-an-tb-fm-wr-is-bd-cr,
2753
- var(--_ctm-dn-an-tb-fm-wr-is-bd-cr)
2754
- )
2755
- );
2811
+
2756
2812
  border-color: var(
2757
2813
  --_ctm-mob-dn-an-tb-fm-wr-is-br-cr,
2758
2814
  var(
@@ -2795,6 +2851,10 @@ $dark-color: #343a40;
2795
2851
  input {
2796
2852
  height: inherit;
2797
2853
  background-color: var(--_base-white);
2854
+ &:disabled {
2855
+ opacity: 0.8;
2856
+ cursor: not-allowed;
2857
+ }
2798
2858
  }
2799
2859
  }
2800
2860
  }
@@ -3815,6 +3875,7 @@ $dark-color: #343a40;
3815
3875
  .chk_payment_section_col_left {
3816
3876
  display: flex;
3817
3877
  gap: 12px;
3878
+
3818
3879
  .chk_payment_section_method {
3819
3880
  display: flex;
3820
3881
  flex-direction: column;
@@ -4622,10 +4683,7 @@ $dark-color: #343a40;
4622
4683
  --_ctm-mob-an-tb-bg-as-bg-te-cr,
4623
4684
  var(--_ctm-tab-an-tb-bg-as-bg-te-cr, var(--_ctm-an-tb-bg-as-bg-te-cr))
4624
4685
  );
4625
- font-weight: var(
4626
- --_ctm-mob-an-tb-bg-as-bg-te-ft-wt,
4627
- var(--_ctm-tab-an-tb-bg-as-bg-te-ft-wt, var(--_ctm-an-tb-bg-as-bg-te-ft-wt))
4628
- );
4686
+ font-weight: 600;
4629
4687
  font-size: var(
4630
4688
  --_ctm-mob-an-tb-bg-as-bg-te-ft-se,
4631
4689
  var(--_ctm-tab-an-tb-bg-as-bg-te-ft-se, var(--_ctm-an-tb-bg-as-bg-te-ft-se))
@@ -4650,6 +4708,7 @@ $dark-color: #343a40;
4650
4708
  display: flex;
4651
4709
  flex-direction: column;
4652
4710
  gap: 24px;
4711
+ max-width: 485px;
4653
4712
  }
4654
4713
 
4655
4714
  .shipping_address_heading_container {
@@ -4667,13 +4726,16 @@ $dark-color: #343a40;
4667
4726
  letter-spacing: var(--_ctm-dn-sg-md-dn-hg-dn-lr-sg);
4668
4727
  text-decoration: var(--_ctm-dn-sg-md-dn-hg-dn-ue);
4669
4728
  }
4729
+ .icon {
4730
+ cursor: pointer;
4731
+ }
4670
4732
  }
4671
4733
 
4672
4734
  form {
4673
4735
  display: flex;
4674
4736
  flex-direction: column;
4675
4737
  gap: 0.75rem;
4676
- max-width: 85%;
4738
+ // max-width: 85%;
4677
4739
 
4678
4740
  @media (max-width: 500px) {
4679
4741
  max-width: 100%;
@@ -4702,10 +4764,7 @@ $dark-color: #343a40;
4702
4764
  .chk_shipping_address_form_label {
4703
4765
  // color: var(--_gray-600);
4704
4766
  // font-size: 14px;
4705
- padding: var(
4706
- --_ctm-mob-dn-an-tb-fm-wr-ls-pg,
4707
- var(--_ctm-tab-dn-an-tb-fm-wr-ls-pg, var(--_ctm-dn-an-tb-fm-wr-ls-pg))
4708
- );
4767
+ padding-bottom: 6px;
4709
4768
  font-family: var(
4710
4769
  --_ctm-mob-dn-an-tb-fm-wr-ls-ft-fy,
4711
4770
  var(--_ctm-tab-dn-an-tb-fm-wr-ls-ft-fy, var(--_ctm-dn-an-tb-fm-wr-ls-ft-fy))
@@ -4756,7 +4815,6 @@ $dark-color: #343a40;
4756
4815
  // padding: 8px 12px;
4757
4816
  height: 40px;
4758
4817
  width: -webkit-fill-available;
4759
- height: auto;
4760
4818
  // background-color: var(--_base-white);
4761
4819
  // color: var(--_gray-600);
4762
4820
  // border: 1px solid var(--_gray-300);
@@ -5388,6 +5446,15 @@ $dark-color: #343a40;
5388
5446
  font-family: sans-serif;
5389
5447
  gap: 12px;
5390
5448
 
5449
+ .discard_btn {
5450
+ padding: 12px 16px;
5451
+ border-radius: 4px;
5452
+ color: var(--_gray-600);
5453
+ &:hover {
5454
+ background-color: var(--_gray-100);
5455
+ }
5456
+ }
5457
+
5391
5458
  input[type="checkbox"] {
5392
5459
  display: none;
5393
5460
  }
@@ -5588,6 +5655,11 @@ $dark-color: #343a40;
5588
5655
  }
5589
5656
  }
5590
5657
  }
5658
+ .chk_address_actions {
5659
+ display: flex;
5660
+ gap: 12px;
5661
+ }
5662
+
5591
5663
  .chk_payment-card__note {
5592
5664
  padding: 8px 6px;
5593
5665
  display: flex;
@@ -5673,6 +5745,7 @@ $dark-color: #343a40;
5673
5745
  display: flex;
5674
5746
  flex-direction: column;
5675
5747
  gap: 12px;
5748
+ max-width: 700px;
5676
5749
 
5677
5750
  .chk_address {
5678
5751
  display: flex;
@@ -5856,7 +5929,7 @@ $dark-color: #343a40;
5856
5929
 
5857
5930
  .right-btn {
5858
5931
  display: none;
5859
- align-items: flex-start;
5932
+ align-items: center;
5860
5933
  gap: 24px;
5861
5934
 
5862
5935
  &:has(.chk_saved_address_button.selected) {
@@ -5864,6 +5937,12 @@ $dark-color: #343a40;
5864
5937
  height: fit-content;
5865
5938
  align-items: center;
5866
5939
  }
5940
+ .chk_saved_address_button {
5941
+ display: flex;
5942
+ align-items: center;
5943
+ gap: 4px;
5944
+ color: var(--_primary-400);
5945
+ }
5867
5946
  }
5868
5947
 
5869
5948
  &:hover {
@@ -6230,6 +6309,10 @@ $dark-color: #343a40;
6230
6309
  input {
6231
6310
  height: inherit;
6232
6311
  background-color: var(--_base-white);
6312
+ &:disabled {
6313
+ opacity: 0.8;
6314
+ cursor: not-allowed;
6315
+ }
6233
6316
  }
6234
6317
  }
6235
6318
  .chk_payment_cred_section_col_left {
@@ -6394,6 +6477,7 @@ $dark-color: #343a40;
6394
6477
  // color: var(--_primary-500);
6395
6478
  // text-decoration: underline;
6396
6479
  // }
6480
+ width: fit-content;
6397
6481
  background-color: var(
6398
6482
  --_ctm-mob-dn-an-tb-bs-ty-py-dt-se-bd-cr,
6399
6483
  var(--_ctm-tab-dn-an-tb-bs-ty-py-dt-se-bd-cr, var(--_ctm-dn-an-tb-bs-ty-py-dt-se-bd-cr))
@@ -6666,7 +6750,7 @@ $dark-color: #343a40;
6666
6750
  }
6667
6751
  }
6668
6752
  .chk_secondary_bnt {
6669
- padding: 12px 24px;
6753
+ padding: 16px 24px;
6670
6754
  background-color: transparent;
6671
6755
  color: var(--_gray-600);
6672
6756
  font-weight: 600;
@@ -6810,6 +6894,10 @@ $dark-color: #343a40;
6810
6894
  outline: 2px solid var(--_primary-100);
6811
6895
  border: 1px solid var(--_primary-300);
6812
6896
  }
6897
+ &:disabled {
6898
+ opacity: 0.8;
6899
+ cursor: not-allowed;
6900
+ }
6813
6901
  }
6814
6902
  }
6815
6903
  }
@@ -6827,6 +6915,10 @@ $dark-color: #343a40;
6827
6915
  input[type="number"] {
6828
6916
  background-color: var(--_base-white);
6829
6917
  padding-right: 10px;
6918
+ &:disabled {
6919
+ opacity: 0.8;
6920
+ cursor: not-allowed;
6921
+ }
6830
6922
  }
6831
6923
  &:focus-within {
6832
6924
  outline: 2px solid var(--_primary-100);
@@ -6923,7 +7015,8 @@ $dark-color: #343a40;
6923
7015
 
6924
7016
  .cc_info {
6925
7017
  display: flex;
6926
- flex-direction: column;
7018
+ justify-content: space-between;
7019
+ width: 100%;
6927
7020
  gap: 6px;
6928
7021
 
6929
7022
  .cc_title {
@@ -40,6 +40,7 @@
40
40
  font-size: 14px;
41
41
  color: #475467;
42
42
  text-align: left;
43
+ padding-block-end: 16px;
43
44
  }
44
45
  }
45
46
  .shp-type {
@@ -2,6 +2,13 @@
2
2
  display: grid;
3
3
  gap: 2px;
4
4
  width: 100%;
5
+ border: 1px solid var(--_gray-300);
6
+ background-color: var(--_base-white);
7
+ border-radius: 6px;
8
+ &:focus-within {
9
+ border: 1px solid var(--_primary-300);
10
+ outline: 2px solid var(--_primary-100);
11
+ }
5
12
 
6
13
  .dropdown-disabled {
7
14
  opacity: 0.6;
@@ -19,16 +26,22 @@
19
26
  display: flex;
20
27
  justify-content: space-between;
21
28
  padding: 0px 12px;
22
- border: 1px solid var(--_gray-300);
23
- background-color: var(--_base-white);
24
- border-radius: 6px;
29
+
25
30
  width: 100%;
26
31
  align-items: center;
27
32
  height: 40px;
28
- &:focus-within {
29
- border: 1px solid var(--_primary-300);
30
- outline: 2px solid var(--_primary-50);
31
- }
33
+
34
+ // .dropdown-disabled {
35
+ // opacity: 0.6;
36
+ // pointer-events: none;
37
+ // user-select: none;
38
+
39
+ // input {
40
+ // background-color: #f5f5f5;
41
+ // cursor: not-allowed;
42
+ // }
43
+ // }
44
+
32
45
  .dropdown-chips {
33
46
  display: flex;
34
47
  // flex-wrap: wrap;
@@ -76,6 +89,17 @@
76
89
  .dropdown__icon {
77
90
  .icon {
78
91
  display: flex;
92
+ svg {
93
+ width: 16px;
94
+ height: 16px;
95
+ }
96
+ &.up,
97
+ &.down {
98
+ svg {
99
+ width: 18px !important;
100
+ height: 18px !important;
101
+ }
102
+ }
79
103
  }
80
104
  cursor: pointer;
81
105
  .icon svg {
@@ -88,15 +112,29 @@
88
112
  .dropdown__clear__icon {
89
113
  position: absolute;
90
114
  right: 32px;
115
+ .icon {
116
+ display: flex;
117
+ svg {
118
+ width: 16px;
119
+ height: 16px;
120
+ }
121
+ &.up,
122
+ &.down {
123
+ svg {
124
+ width: 18px !important;
125
+ height: 18px !important;
126
+ }
127
+ }
128
+ }
91
129
  }
92
130
  .dropdown-menu {
93
131
  position: absolute;
94
132
  width: 100%;
95
- top: 40px;
133
+ top: 38px;
96
134
  left: 0px;
97
135
  right: 24px;
98
136
  background: white;
99
- border: 1px solid #ddd;
137
+ border: 1px solid var(--_gray-100);
100
138
  border-radius: 6px;
101
139
  max-height: 200px;
102
140
  // overflow-y: auto;
@@ -107,6 +145,11 @@
107
145
  display: flex;
108
146
  flex-direction: column;
109
147
  // padding: 4px;
148
+ // &.uom_dropdown {
149
+ // margin-left: -10px;
150
+ // width: 303px !important;
151
+ // max-height: 260px !important;
152
+ // }
110
153
 
111
154
  .dropdown_menu_ul {
112
155
  height: 200px;
@@ -136,6 +179,24 @@
136
179
  height: auto !important;
137
180
  max-height: 52px;
138
181
  border-radius: 4px;
182
+ .profile_block {
183
+ width: 32px;
184
+ height: 32px;
185
+ border-radius: 50%;
186
+ overflow: hidden;
187
+ background-color: var(--_gray-200);
188
+ display: flex;
189
+ justify-content: center;
190
+ align-items: center;
191
+ color: var(--_gray-600);
192
+ font-size: 12px;
193
+ font-weight: 600;
194
+ img {
195
+ max-width: 100%;
196
+ max-height: 100%;
197
+ object-fit: contain;
198
+ }
199
+ }
139
200
  &:hover {
140
201
  background-color: var(--_primary-25);
141
202
  color: var(--_primary-400);
@@ -143,8 +204,8 @@
143
204
 
144
205
  .item-image {
145
206
  // background-image: url("");
146
- width: 30px;
147
- height: 30px;
207
+ width: 32px;
208
+ height: 32px;
148
209
  background-size: 100%;
149
210
  background-position: center;
150
211
  border-radius: 50%;
@@ -158,13 +219,29 @@
158
219
  }
159
220
 
160
221
  .dropdown-item-details {
161
- max-width: 80%;
222
+ max-width: 100%;
223
+ // width: 100%;
224
+ .item-name {
225
+ color: var(--_gray-900);
226
+ }
227
+ .item-code {
228
+ color: var(--_gray-600);
229
+ }
162
230
  }
163
231
  }
164
232
  .selected {
165
233
  background-color: var(--_primary-25);
166
234
  font-weight: normal;
167
- color: var(--_primary-500);
235
+ color: var(--_primary-400);
236
+ .dropdown-item-details {
237
+ width: 70% !important;
238
+ }
239
+ .check_mark {
240
+ margin-left: auto;
241
+ svg path {
242
+ stroke: var(--_primary-400);
243
+ }
244
+ }
168
245
  }
169
246
  }
170
247
  .dropdown-group-li {
@@ -179,6 +256,45 @@
179
256
  width: auto;
180
257
  }
181
258
  }
259
+ // .input-checkbox {
260
+ // display: flex;
261
+ // align-items: center;
262
+ // cursor: pointer;
263
+ // font-size: 16px;
264
+ // user-select: none;
265
+
266
+ // input[type="checkbox"] {
267
+ // display: none;
268
+
269
+ // &:checked + .checkmark::after {
270
+ // content: "";
271
+ // position: absolute;
272
+ // left: 5px;
273
+ // top: 1px;
274
+ // width: 6px;
275
+ // height: 12px;
276
+ // border: solid #2196f3;
277
+ // border-width: 0 2px 2px 0;
278
+ // transform: rotate(45deg);
279
+ // }
280
+ // }
281
+
282
+ // .checkmark {
283
+ // height: 18px;
284
+ // width: 18px;
285
+ // background-color: #eee;
286
+ // border: 2px solid #ccc;
287
+ // border-radius: 4px;
288
+ // margin-right: 10px;
289
+ // position: relative;
290
+ // transition: all 0.2s ease;
291
+ // }
292
+
293
+ // &:hover .checkmark {
294
+ // background-color: #f0f0f0;
295
+ // }
296
+ // }
297
+
182
298
  .dropdown-item {
183
299
  height: 40px;
184
300
  &:not(:last-child) {
@@ -204,6 +320,14 @@
204
320
  align-items: center;
205
321
  justify-content: center;
206
322
  cursor: pointer;
323
+ .add_selected_options {
324
+ &:hover {
325
+ background-color: var(--_primary-25);
326
+ svg path {
327
+ stroke: var(--_primary-400);
328
+ }
329
+ }
330
+ }
207
331
  &:not(:last-child) {
208
332
  border-right: 1px solid var(--_gray-200);
209
333
  }
@@ -229,25 +353,37 @@
229
353
  }
230
354
  .dropdown_template_panel_search {
231
355
  background: none;
232
- padding: 12px;
233
- border-bottom: 1px solid #dddddd;
356
+ padding: 8px;
357
+ border-bottom: 1px solid var(--_gray-100);
234
358
  height: max-content !important;
359
+ position: relative;
235
360
  &:hover {
236
361
  background: none !important;
237
362
  }
363
+
238
364
  input {
239
365
  width: 100%;
240
- padding: 10px 8px;
366
+ padding-inline: 10px;
241
367
  border-radius: 4px;
242
- border: 1px solid #dddddd;
368
+ border: 1px solid var(--_gray-200);
369
+ height: 40px;
370
+ &:focus {
371
+ border: 1px solid var(--_gray-300);
372
+ }
373
+ }
374
+ .close_btn {
375
+ position: absolute;
376
+ right: 20px;
377
+ top: 20px;
378
+ z-index: 10;
243
379
  }
244
380
  }
245
- }
246
- .dropdown-with-icon {
247
- width: 100%;
248
- // pointer-events: none;
249
- border: none;
250
- padding: 0;
381
+ .dropdown-with-icon {
382
+ width: 100%;
383
+ // pointer-events: none;
384
+ border: none;
385
+ padding: 0;
386
+ }
251
387
  }
252
388
  }
253
389
  // .dropdown-with-input-section.full-width {
@@ -284,4 +420,63 @@
284
420
  text-align: center;
285
421
  font-weight: 600;
286
422
  font-size: 16px;
423
+ width: 100%;
424
+ height: 200px;
425
+ display: flex;
426
+ justify-content: center;
427
+ align-items: center;
428
+ font-weight: 600;
429
+ }
430
+
431
+ // spinner for dropdown
432
+ .spinner_dropdown {
433
+ width: 32px;
434
+ height: 32px;
435
+ border-radius: 50%;
436
+ position: relative;
437
+ animation: rotate 1s linear infinite;
438
+ }
439
+ .spinner_dropdown::before,
440
+ .spinner_dropdown::after {
441
+ content: "";
442
+ box-sizing: border-box;
443
+ position: absolute;
444
+ inset: 0px;
445
+ border-radius: 50%;
446
+ border: 2px solid var(--_primary-300);
447
+ animation: prixClipFix 2s linear infinite;
448
+ }
449
+ .spinner_dropdown::after {
450
+ border-color: var(--_primary-500);
451
+ animation:
452
+ prixClipFix 2s linear infinite,
453
+ rotate 0.5s linear infinite reverse;
454
+ inset: 6px;
455
+ }
456
+
457
+ @keyframes rotate {
458
+ 0% {
459
+ transform: rotate(0deg);
460
+ }
461
+ 100% {
462
+ transform: rotate(360deg);
463
+ }
464
+ }
465
+
466
+ @keyframes prixClipFix {
467
+ 0% {
468
+ clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
469
+ }
470
+ 25% {
471
+ clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
472
+ }
473
+ 50% {
474
+ clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
475
+ }
476
+ 75% {
477
+ clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
478
+ }
479
+ 100% {
480
+ clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0);
481
+ }
287
482
  }