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

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.
@@ -478,6 +478,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
478
478
  display: flex;
479
479
  gap: 8px;
480
480
  color: var(--_gray-700);
481
+ cursor: pointer;
481
482
  button {
482
483
  display: flex;
483
484
  }
@@ -521,17 +522,17 @@ $resizeActive: '[data-cms-element-resizer="true"]';
521
522
  }
522
523
  // button styles for primary
523
524
  .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);
525
+ color: var(--_thm-py-bs-dt-se-tt-cr);
526
+ background-color: var(--_thm-py-bs-dt-se-bd-cr);
527
+ color: var(--_thm-py-bs-dt-se-tt-cr);
528
+ text-align: center;
529
+ border-radius: var(--_thm-py-bs-hr-se-br-rs);
529
530
  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
- // }
531
+ height: 40px;
532
+ &:hover {
533
+ background-color: var(--_thm-py-bs-hr-se-bd-cr);
534
+ color: var(--_thm-py-bs-hr-se-tt-cr);
535
+ }
535
536
  }
536
537
  }
537
538
 
@@ -1069,6 +1070,16 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1069
1070
  font-size: 1rem;
1070
1071
  text-decoration: none;
1071
1072
  }
1073
+ .auto_saved {
1074
+ background-color: var(--_success-50);
1075
+ border-radius: 4px;
1076
+ padding-inline: 12px;
1077
+ font-size: 14px;
1078
+ font-weight: 500;
1079
+ display: inline-block;
1080
+ margin-left: 12px;
1081
+ color: var(--_success-600);
1082
+ }
1072
1083
  }
1073
1084
 
1074
1085
  .autosave-info {
@@ -1830,6 +1841,9 @@ $resizeActive: '[data-cms-element-resizer="true"]';
1830
1841
  padding: 24px 24px 8px 24px;
1831
1842
  max-height: 550px;
1832
1843
  overflow-y: auto;
1844
+ &:not(:last-child) {
1845
+ margin-bottom: 16px;
1846
+ }
1833
1847
  .review_header {
1834
1848
  padding-bottom: 24px;
1835
1849
  border-bottom: 1px solid var(--_gray-200);
@@ -22,7 +22,7 @@
22
22
  justify-content: space-between;
23
23
  align-items: center;
24
24
  border-bottom: 1px solid var(--_gray-200);
25
- padding: 16px 24px;
25
+ padding: 16px 12px 16px 16px;
26
26
  gap: 4px;
27
27
 
28
28
  .close-icon {
@@ -63,9 +63,10 @@
63
63
  }
64
64
 
65
65
  .popup_body {
66
- padding: 8px 24px 24px 24px;
66
+ // padding: 8px 24px 24px 24px;
67
67
  flex-grow: 1;
68
68
  .est__dropdown__main {
69
+ padding-inline: 16px;
69
70
  .est__dropdown {
70
71
  .list .list__option {
71
72
  font-size: 14px;
@@ -75,6 +76,9 @@
75
76
  justify-content: space-between;
76
77
  align-items: center;
77
78
  width: 100%;
79
+ &.placeholder__text {
80
+ color: var(--_gray-500);
81
+ }
78
82
  .value__selected {
79
83
  justify-content: start;
80
84
  }
@@ -132,6 +136,9 @@
132
136
  // }
133
137
  // }
134
138
  // }
139
+ & > span {
140
+ display: flex;
141
+ }
135
142
 
136
143
  &:disabled {
137
144
  background: var(--_sf-hr-bd-cr, var(--_thm-py-bs-dt-se-bd-cr));
@@ -199,14 +206,17 @@
199
206
  flex-direction: column;
200
207
  gap: 16px;
201
208
  overflow-y: auto;
202
- max-height: 210px;
209
+ max-height: 240px;
210
+ overflow-y: auto;
211
+
203
212
  .empty__data {
204
213
  width: 100%;
205
214
  display: flex;
206
215
  flex-direction: column;
207
216
  justify-content: center;
208
217
  align-items: center;
209
- height: 210px;
218
+ margin-top: 36px;
219
+
210
220
  p {
211
221
  color: var(--_thm-ty-p1-tt-cr);
212
222
  font-size: 18px;
@@ -218,6 +228,10 @@
218
228
  }
219
229
 
220
230
  .group_section {
231
+ padding-inline: 16px 6px;
232
+ height: 100%;
233
+ overflow-y: auto;
234
+
221
235
  .group_header {
222
236
  display: flex;
223
237
  align-items: center;
@@ -277,7 +291,7 @@
277
291
  }
278
292
 
279
293
  .user_id {
280
- font-size: 12px;
294
+ font-size: 14px;
281
295
  color: var(--_thm-ty-p3-tt-cr);
282
296
  display: flex;
283
297
  gap: 4px;
@@ -423,6 +423,7 @@
423
423
 
424
424
  &.open .list {
425
425
  display: flex;
426
+ animation: slideDown 0.8s ease-in-out;
426
427
  }
427
428
  .dropdown__button__wrapper {
428
429
  width: 100%;
@@ -442,7 +443,7 @@
442
443
  .est__dropdown__icon {
443
444
  position: absolute;
444
445
  right: 5px;
445
- // transition: all 200ms ease-in;
446
+ transition: transform 0.4s ease-in-out;
446
447
  &.open {
447
448
  transform: rotate(180deg);
448
449
  }
@@ -466,6 +467,7 @@
466
467
  }
467
468
 
468
469
  .list {
470
+ animation: slideDown 0.8s ease-in-out;
469
471
  display: none;
470
472
  flex-direction: column;
471
473
  border: 1px solid var(--_gray-200);
@@ -502,3 +504,25 @@
502
504
  }
503
505
  }
504
506
  }
507
+
508
+ @keyframes slideUp {
509
+ 0% {
510
+ transform: translateY(0px);
511
+ opacity: 1;
512
+ }
513
+ 100% {
514
+ transform: translateY(20px);
515
+ opacity: 0;
516
+ }
517
+ }
518
+
519
+ @keyframes slideDown {
520
+ 0% {
521
+ transform: translateY(20px);
522
+ opacity: 0;
523
+ }
524
+ 100% {
525
+ transform: translateY(0px);
526
+ opacity: 1;
527
+ }
528
+ }
@@ -23,6 +23,7 @@ $msd-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
23
23
  &--disabled {
24
24
  opacity: 0.6;
25
25
  pointer-events: none;
26
+ background-color: var(--_gray-100);
26
27
  }
27
28
  }
28
29
 
@@ -33,7 +34,7 @@ $msd-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
33
34
  gap: 14px;
34
35
  min-height: 40px;
35
36
  border: 1px solid $msd-border;
36
- background: $msd-bg;
37
+ background: var(--_base-white);
37
38
  border-radius: 4px;
38
39
  padding: 6px 8px;
39
40
  cursor: text;
@@ -67,7 +68,7 @@ $msd-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
67
68
  display: inline-flex;
68
69
  align-items: center;
69
70
  gap: 6px;
70
- padding: 2px 8px 5px 8px;
71
+ padding: 5px 8px 5px 8px;
71
72
  background: $msd-chip-bg;
72
73
  border-radius: 999px;
73
74
  line-height: 1;
@@ -96,6 +97,10 @@ $msd-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
96
97
  line-height: 1;
97
98
  padding: 0;
98
99
  margin: 0;
100
+ svg {
101
+ width: 10px;
102
+ height: 10px;
103
+ }
99
104
  &:hover {
100
105
  color: $msd-chip-remove-hover;
101
106
  }
@@ -110,6 +115,8 @@ $msd-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
110
115
  font-size: 14px;
111
116
  background: transparent;
112
117
  color: $msd-text;
118
+ line-height: 19px;
119
+
113
120
  &::placeholder {
114
121
  color: $msd-muted;
115
122
  }
@@ -122,39 +129,41 @@ $msd-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
122
129
  }
123
130
  .msd__clear,
124
131
  .msd__arrow {
132
+ width: 26px;
133
+ // height: 26px;
125
134
  border: 0;
126
135
  background: transparent;
127
136
  cursor: pointer;
128
137
  font-size: 12px;
129
138
  color: $msd-muted;
130
- padding: 4px 6px;
139
+ // padding: 4px 6px;
131
140
  border-radius: 4px;
132
- &:hover {
133
- background: #f8fafc;
134
- color: #374151;
135
- }
141
+ display: flex;
142
+ // &:hover {
143
+ // color: #374151;
144
+ // }
136
145
  }
137
146
 
138
147
  .msd__ellipsis {
139
148
  position: absolute;
140
- right: 33px; // leave room for the arrow
141
- top: 3px;
149
+ right: 30px; // leave room for the arrow
150
+ top: 5px;
142
151
  // transform: translateY(-50%);
143
152
  pointer-events: none;
144
153
  background: $msd-bg;
145
154
  padding-left: 6px;
146
- width: 30px;
155
+ width: 24px;
147
156
  }
148
157
 
149
158
  .msd__menu {
150
159
  position: absolute;
151
160
  z-index: 20;
152
- top: 100%;
161
+ top: 99%;
153
162
  left: 0;
154
163
  right: 0;
155
164
  background: $msd-bg;
156
165
  border: 1px solid $msd-border;
157
- border-radius: 10px;
166
+ border-radius: 4px;
158
167
  box-shadow: $msd-shadow;
159
168
  overflow: auto;
160
169
  padding: 6px;
@@ -194,7 +203,7 @@ $msd-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
194
203
  // background: #f1f5f9;
195
204
  // }
196
205
  &.is-selected {
197
- font-weight: 600;
206
+ font-weight: normal;
198
207
  @include BgColorLighter(var(--_thm-cs-at-py), 8%);
199
208
  color: var(--_thm-cs-at-py);
200
209
  // background: var(--_thm-cs-at-py);
@@ -229,6 +238,7 @@ $msd-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
229
238
  &::after {
230
239
  content: "";
231
240
  position: absolute;
241
+ top: 2px;
232
242
  inset: 0;
233
243
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="white" d="M7.629 13.296L3.7 9.367l1.414-1.414 2.515 2.515L14.886 3.21l1.414 1.415z"/></svg>')
234
244
  center/12px 12px no-repeat;
@@ -38,7 +38,6 @@ $defaultValues: (
38
38
  }
39
39
 
40
40
  .order-confirmation {
41
- @include prepareMediaQueries($defaultValues);
42
41
  display: flex;
43
42
  flex-direction: column;
44
43
  padding: prepareMediaVariable(--_ctm-dn-or-wt-pg);
@@ -60,6 +59,7 @@ $defaultValues: (
60
59
  --_ctm-mob-dn-or-wt-im-gp,
61
60
  var(--_ctm-tab-dn-or-wt-im-gp, var(--_ctm-dn-or-wt-im-gp))
62
61
  );
62
+ @include prepareMediaQueries($defaultValues);
63
63
 
64
64
  .each-order {
65
65
  border: 1px solid var(--_gray-200);
@@ -1,6 +1,6 @@
1
1
  @use "sass:map";
2
2
  @use "sass:list";
3
- @use "./functions.scss";
3
+ @use "./functions.scss" as *;
4
4
 
5
5
  [data-div-type="element"] {
6
6
  &[data-element-type="productImage"] {
@@ -166,6 +166,7 @@
166
166
  --text-high-contrast-rgb-value: 49, 49, 49;
167
167
  --detail-medium-contrast: rgb(234, 234, 234);
168
168
  --text-body: rgb(54, 49, 61);
169
+ overflow: hidden;
169
170
 
170
171
  position: relative;
171
172
  background-color: var(
@@ -731,8 +732,14 @@
731
732
  &[data-background-shape="Round"] {
732
733
  .left-button,
733
734
  .right-button {
734
- background-color: #f2f5f5;
735
- box-sizing: 0 4px 8px rgba(0, 0, 0, 0.1);
735
+ // background-color: var(
736
+ // --_ctm-mob-dn-pn-as-bd-cr,
737
+ // var(--_ctm-tab-dn-pn-as-bd-cr, var(--_ctm-dn-pn-as-bd-cr))
738
+ // );
739
+ &:not(:disabled):hover {
740
+ @include BgColorLighter(var(--_thm-py-bs-hr-se-bd-cr), 5%);
741
+ }
742
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
736
743
  }
737
744
  }
738
745
 
@@ -755,6 +762,32 @@
755
762
  cursor: pointer;
756
763
  outline: none;
757
764
  margin-left: 12px;
765
+ span {
766
+ display: flex;
767
+ svg {
768
+ width: calc(
769
+ var(
770
+ --_ctm-mob-dn-pn-as-aw-se,
771
+ var(--_ctm-tab-dn-pn-as-aw-se, var(--_ctm-dn-pn-as-aw-se))
772
+ ) *
773
+ 0.5
774
+ );
775
+ height: calc(
776
+ var(
777
+ --_ctm-mob-dn-pn-as-aw-se,
778
+ var(--_ctm-tab-dn-pn-as-aw-se, var(--_ctm-dn-pn-as-aw-se))
779
+ ) *
780
+ 0.5
781
+ );
782
+
783
+ path {
784
+ stroke: var(
785
+ --_ctm-mob-dn-pn-as-aw-cr,
786
+ var(--_ctm-tab-dn-pn-as-aw-cr, var(--_ctm-dn-pn-as-aw-cr))
787
+ );
788
+ }
789
+ }
790
+ }
758
791
  &:disabled {
759
792
  & svg {
760
793
  path {
@@ -782,7 +815,32 @@
782
815
  outline: none;
783
816
  margin-right: 12px;
784
817
  padding: 10px;
818
+ span {
819
+ display: flex;
820
+ svg {
821
+ width: calc(
822
+ var(
823
+ --_ctm-mob-dn-pn-as-aw-se,
824
+ var(--_ctm-tab-dn-pn-as-aw-se, var(--_ctm-dn-pn-as-aw-se))
825
+ ) *
826
+ 0.5
827
+ );
828
+ height: calc(
829
+ var(
830
+ --_ctm-mob-dn-pn-as-aw-se,
831
+ var(--_ctm-tab-dn-pn-as-aw-se, var(--_ctm-dn-pn-as-aw-se))
832
+ ) *
833
+ 0.5
834
+ );
785
835
 
836
+ path {
837
+ stroke: var(
838
+ --_ctm-mob-dn-pn-as-aw-cr,
839
+ var(--_ctm-tab-dn-pn-as-aw-cr, var(--_ctm-dn-pn-as-aw-cr))
840
+ );
841
+ }
842
+ }
843
+ }
786
844
  &:disabled {
787
845
  & svg {
788
846
  path {
@@ -25,7 +25,7 @@ $input-padding: 10px 12px;
25
25
  .input-group {
26
26
  // display: flex;
27
27
  display: grid;
28
- grid-template-columns: 1fr 1fr;
28
+ grid-template-columns: 1fr 1fr 90px;
29
29
  gap: 12px;
30
30
  height: fit-content;
31
31
  align-items: center;
@@ -105,57 +105,60 @@ $input-padding: 10px 12px;
105
105
  font-weight: 400;
106
106
  line-height: 20px;
107
107
  }
108
+ .msd {
109
+ width: 100%;
110
+ }
108
111
 
109
112
  .input-group-right-col {
110
113
  display: flex;
111
114
  gap: 16px;
112
- .msd {
113
- width: 100%;
115
+ max-width: 1200px;
116
+ }
117
+ .add-btn {
118
+ // background-color: $primary;
119
+ // color: $white;
120
+ padding: 10px 16px;
121
+ height: 40px;
122
+ gap: 6px;
123
+ // border-radius: 4px;
124
+ // font-weight: 600;
125
+ // font-size: 14px;
126
+ // cursor: pointer;
127
+ // transition: background-color 0.2s;
128
+ // display: flex;
129
+ // gap: 4px;
130
+ // line-height: 20px;
131
+ // justify-content: center;
132
+ svg path {
133
+ stroke: var(--_base-white);
114
134
  }
115
- .add-btn {
116
- // background-color: $primary;
117
- // color: $white;
118
- padding: 10px 16px;
119
- // border-radius: 4px;
120
- // font-weight: 600;
121
- // font-size: 14px;
122
- // cursor: pointer;
123
- // transition: background-color 0.2s;
124
- // display: flex;
125
- // gap: 4px;
126
- // line-height: 20px;
127
- // justify-content: center;
128
- svg path {
129
- stroke: var(--_base-white);
130
- }
131
- &.disabled {
132
- opacity: 0.4;
133
- pointer-events: none;
134
- }
135
- .spinner {
136
- margin-top: -3px;
137
- display: inline-block;
138
- }
139
-
140
- // .add-icon {
141
- // width: 20px;
142
- // height: 20px;
143
- // display: flex;
144
- // align-items: center;
145
- // justify-content: center;
146
-
147
- // svg {
148
- // width: 16px;
149
- // height: 16px;
150
- // path {
151
- // stroke: #fff;
152
- // }
153
- // }
154
- // }
155
- // &:hover {
156
- // background-color: $primary-hover;
157
- // }
135
+ &.disabled {
136
+ opacity: 0.4;
137
+ pointer-events: none;
158
138
  }
139
+ .spinner {
140
+ // margin-top: -3px;
141
+ display: inline-block;
142
+ }
143
+
144
+ // .add-icon {
145
+ // width: 20px;
146
+ // height: 20px;
147
+ // display: flex;
148
+ // align-items: center;
149
+ // justify-content: center;
150
+
151
+ // svg {
152
+ // width: 16px;
153
+ // height: 16px;
154
+ // path {
155
+ // stroke: #fff;
156
+ // }
157
+ // }
158
+ // }
159
+ // &:hover {
160
+ // background-color: $primary-hover;
161
+ // }
159
162
  }
160
163
  }
161
164
  .cart_products_wrapper {
@@ -2089,10 +2089,11 @@ $activeElementSelector: "[data-has-clicked='true']";
2089
2089
  .chk_address {
2090
2090
  display: flex;
2091
2091
  flex-direction: column;
2092
- gap: calc(var(--_ctm-lt-sd-sg-as-le-gp) / 2);
2092
+ // gap: calc(var(--_ctm-lt-sd-sg-as-le-gp) / 2);
2093
+ gap: 12px;
2093
2094
 
2094
2095
  .chk_saved_address_name {
2095
- color: var(--_gray-700);
2096
+ color: var(--_gray-900);
2096
2097
  font-size: 16px;
2097
2098
  font-weight: 600;
2098
2099
  }
@@ -2108,7 +2109,7 @@ $activeElementSelector: "[data-has-clicked='true']";
2108
2109
  }
2109
2110
 
2110
2111
  .chk_saved_address_value {
2111
- color: var(--_gray-700);
2112
+ color: var(--_gray-900);
2112
2113
  font-size: 12px;
2113
2114
  }
2114
2115
  .address_skeletons {
@@ -2120,7 +2121,7 @@ $activeElementSelector: "[data-has-clicked='true']";
2120
2121
 
2121
2122
  .contact {
2122
2123
  font-size: 0.875rem;
2123
- color: $dark-color;
2124
+ color: var(--_gray-900);
2124
2125
  line-height: 1.4;
2125
2126
  }
2126
2127
  }
@@ -15,7 +15,6 @@ export declare enum dataConnectorapis {
15
15
  MARCHANDISER_SETS = "MARCHANDISER_SETS",
16
16
  BUNDLES = "BUNDLES",
17
17
  BUNLES_BY_ID = "BUNLES_BY_ID",
18
- BUNDLE_BY_TYPE = "BUNDLE_BY_TYPE",
19
18
  PRODUCT_BUNDLE_DETAILS = "PRODUCT_BUNDLE_DETAILS",
20
19
  CATEGORY_BUNDLE_DETAILS = "CATEGORY_BUNDLE_DETAILS",
21
20
  CATEGORY_GROUPS = "CATEGORY_GROUPS",