@sc-360-v2/storefront-cms-library 0.4.35 → 0.4.37

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.
@@ -476,7 +476,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
476
476
  .buy_for_back_btn {
477
477
  display: flex;
478
478
  gap: 8px;
479
- color: var(--_gray-700);
479
+ color: var(--_thm-cs-tt-by-tt);
480
480
  cursor: pointer;
481
481
  button {
482
482
  display: flex;
@@ -506,6 +506,9 @@ $resizeActive: '[data-cms-element-resizer="true"]';
506
506
  border: 1px solid var(--_gray-100);
507
507
  border-radius: 4px;
508
508
  padding: 10px;
509
+ border: 1px solid var(--_gray-200);
510
+ background-color: var(--_base-white);
511
+ border-radius: 4px;
509
512
  .label {
510
513
  display: block;
511
514
  color: var(--_gray-700);
@@ -650,82 +653,86 @@ $resizeActive: '[data-cms-element-resizer="true"]';
650
653
  border: 1px solid var(--primary-300);
651
654
  }
652
655
  }
653
- .dropdown-input-section {
654
- height: 40px;
655
- background-color: var(--_base-white);
656
- padding: 8px 12px;
657
- border: 1px solid var(--_gray-300);
658
- border-radius: 4px;
659
- cursor: pointer;
660
- transition:
661
- background-color 0.2s,
662
- color 0.2s,
663
- border-color 0.2s,
664
- box-shadow 0.2s;
665
- &::placeholder {
666
- color: var(--_gray-500);
667
- font-weight: 500;
668
- font-size: 14px;
669
- line-height: 24px;
670
- }
671
- &:focus-within {
672
- outline: 0 none;
673
- outline-offset: 0;
674
- border-radius: 4px;
675
- box-shadow:
676
- 0px 1px 2px rgba(16, 24, 40, 0.05),
677
- 0px 0px 0px 2px var(--primary-100);
678
- border: 1px solid var(--primary-300);
679
- }
680
- input {
681
- border: none;
682
- padding: 0;
683
- &:focus {
684
- box-shadow: none;
685
- border: none;
686
- }
687
- }
688
- .dropdown__icon {
689
- .icon {
690
- transition: rotate 0.4s ease-in-out;
691
- }
692
- }
693
- .selected-display {
694
- .selected-item {
695
- display: flex;
696
- align-items: center;
697
- gap: 4px;
698
- font-size: 14px;
699
- font-weight: 500;
700
- line-height: 20px;
701
- color: #344054;
702
- .svg_icon {
703
- vertical-align: middle;
704
- svg {
705
- width: 12px;
706
- height: 12px;
707
- cursor: pointer;
708
- vertical-align: middle;
709
- g {
710
- path {
711
- stroke: #98a2b3;
712
- }
713
- }
714
- }
715
- }
716
- }
717
- .multi-selected-display {
718
- display: flex;
719
- align-items: center;
720
- gap: 8px;
721
- .selected-item {
722
- border: 1px solid var(--_gray-300);
723
- border-radius: 4px;
724
- padding: 2px 4px;
725
- }
726
- }
727
- }
728
- }
656
+
657
+ // .dropdown-input-section {
658
+ // height: 40px;
659
+ // background-color: var(--_base-white);
660
+ // padding: 8px 8px 8px 12px;
661
+ // border: 1px solid var(--_gray-300);
662
+ // border-radius: 4px;
663
+ // cursor: pointer;
664
+ // transition:
665
+ // background-color 0.2s,
666
+ // color 0.2s,
667
+ // border-color 0.2s,
668
+ // box-shadow 0.2s;
669
+ // &::placeholder {
670
+ // color: var(--_gray-500);
671
+ // font-weight: 500;
672
+ // font-size: 14px;
673
+ // line-height: 24px;
674
+ // }
675
+ // &:focus-within {
676
+ // outline: 0 none;
677
+ // outline-offset: 0;
678
+ // border-radius: 4px;
679
+ // box-shadow:
680
+ // 0px 1px 2px rgba(16, 24, 40, 0.05),
681
+ // 0px 0px 0px 2px var(--primary-100);
682
+ // border: 1px solid var(--primary-300);
683
+ // }
684
+ // input {
685
+ // border: none;
686
+ // padding: 0;
687
+ // &:focus {
688
+ // box-shadow: none;
689
+ // border: none;
690
+ // }
691
+ // }
692
+ // .dropdown__icon {
693
+ // .icon {
694
+ // transition: rotate 0.4s ease-in-out;
695
+ // padding-left: 4px;
696
+ // }
697
+ // }
698
+ // .selected-display {
699
+ // .selected-item {
700
+ // display: flex;
701
+ // align-items: center;
702
+ // gap: 4px;
703
+ // font-size: 14px;
704
+ // font-weight: 500;
705
+ // line-height: 20px;
706
+ // color: #344054;
707
+ // .svg_icon {
708
+ // vertical-align: middle;
709
+ // display: flex;
710
+ // svg {
711
+ // width: 12px;
712
+ // height: 12px;
713
+ // cursor: pointer;
714
+ // vertical-align: middle;
715
+ // g {
716
+ // path {
717
+ // stroke: #98a2b3;
718
+ // }
719
+ // }
720
+ // }
721
+ // }
722
+ // }
723
+ // .multi-selected-display {
724
+ // display: flex;
725
+ // align-items: center;
726
+ // gap: 8px;
727
+ // .selected-item {
728
+ // border: 1px solid var(--_gray-300);
729
+ // border-radius: 4px;
730
+ // padding: 2px 4px;
731
+ // font-size: 12px;
732
+ // }
733
+ // }
734
+ // }
735
+ // }
729
736
  &:focus {
730
737
  border-color: var(--_primary-400);
731
738
  outline: 2px solid var(--_primary-200);
@@ -869,7 +876,6 @@ $resizeActive: '[data-cms-element-resizer="true"]';
869
876
  .input_toggle_switch_container {
870
877
  display: flex;
871
878
  gap: 10px;
872
- padding: 16px;
873
879
  .input_toggle_switch {
874
880
  position: relative;
875
881
  display: inline-block;
@@ -0,0 +1,351 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+ @use "./functions.scss" as *;
4
+
5
+ @mixin flexbox($justify: center, $align: center, $gap: 0) {
6
+ display: flex;
7
+ justify-content: $justify;
8
+ align-items: $align;
9
+ gap: $gap;
10
+ }
11
+
12
+ .cfrm__modal {
13
+ &__backdrop {
14
+ position: fixed;
15
+ top: 0;
16
+ left: 0;
17
+ width: 100%;
18
+ height: 100%;
19
+ background-color: rgba(0, 0, 0, 0.5);
20
+ z-index: calc(var(--_higher-zIndex) + var(--_cs-et-zIndex) + 9);
21
+ animation: fadeIn 0.4s forwards;
22
+ cursor: auto;
23
+ }
24
+
25
+ &__container {
26
+ position: fixed;
27
+ top: 50%;
28
+ left: 50%;
29
+ transform: translate(-50%, -50%);
30
+ background-color: var(--_base-white);
31
+ width: var(--_sf-ml-wh, 450px);
32
+ max-width: min(75%, 850px);
33
+ border-radius: 4px;
34
+ display: flex;
35
+ flex-direction: column;
36
+ z-index: calc(var(--_higher-zIndex) + var(--_cs-et-zIndex) + 10);
37
+ cursor: auto;
38
+ }
39
+
40
+ &__header {
41
+ position: relative;
42
+ display: flex;
43
+ align-items: center;
44
+ justify-content: space-between;
45
+ padding-bottom: 6px;
46
+ padding: 16px 24px;
47
+
48
+ h2 {
49
+ font-size: 18px;
50
+ font-weight: 600;
51
+ margin: 0;
52
+ color: var(--_thm-ty-h2-ft-se);
53
+ }
54
+
55
+ p {
56
+ font-size: 14px;
57
+ color: var(--_thm-cs-tt-by-tt);
58
+ margin-top: 12px;
59
+ }
60
+
61
+ &__close__btn {
62
+ width: 24px;
63
+ height: 24px;
64
+ font-size: 14px;
65
+ background: none;
66
+ border: none;
67
+ cursor: pointer;
68
+ display: flex;
69
+ align-items: center;
70
+ justify-content: center;
71
+ border-radius: 4px;
72
+ margin-top: -16px;
73
+ margin-right: -16px;
74
+ span {
75
+ display: flex;
76
+ svg {
77
+ width: 20px;
78
+ height: 20px;
79
+ }
80
+ }
81
+
82
+ &:hover {
83
+ background-color: var(--_gray-100);
84
+ }
85
+ }
86
+ }
87
+
88
+ &__body {
89
+ font-size: 14px;
90
+ color: var(--_gray-900);
91
+ padding-inline: 24px;
92
+ }
93
+
94
+ &__footer {
95
+ @include flexbox(flex-end, center, 10px);
96
+ flex-wrap: wrap;
97
+ bottom: 0;
98
+ width: 100%;
99
+ padding: 24px;
100
+ }
101
+ // .modal-footer-wrapper {
102
+ // display: flex;
103
+ // width: 100%;
104
+ // gap: 12px;
105
+
106
+ // .wishlist_button_wrapper {
107
+ // position: relative;
108
+ // width: 100%;
109
+ // .wishlist_btn {
110
+ // width: 100%;
111
+ // display: flex;
112
+ // justify-content: center;
113
+ // align-items: center;
114
+ // color: var(--_primary-400);
115
+ // height: 100%;
116
+ // &:hover {
117
+ // text-decoration: underline;
118
+ // color: var(--_primary-500);
119
+ // }
120
+ // }
121
+ // .wishlist_list_overlay {
122
+ // position: absolute;
123
+ // z-index: 10;
124
+ // top: 44px;
125
+ // left: 41px;
126
+ // min-height: 80px;
127
+ // max-height: 190px;
128
+ // width: 250px;
129
+ // overflow-y: auto;
130
+ // border-radius: 4px;
131
+ // background-color: var(--_base-white);
132
+ // box-shadow: 0px 0px 4px rgb(0, 0, 0, 0.1);
133
+ // border: 1px solid var(--_gray-200);
134
+
135
+ // .empty_message {
136
+ // height: 200px;
137
+ // display: flex;
138
+ // justify-content: center;
139
+ // align-items: center;
140
+ // padding: 24px;
141
+ // font-size: 16px;
142
+ // font-weight: 500;
143
+ // text-align: center;
144
+ // .dots {
145
+ // display: inline-flex;
146
+ // width: 20px; /* fixed space so text doesn’t shift */
147
+ // justify-content: space-between;
148
+ // align-items: flex-end;
149
+ // margin-left: 6px;
150
+ // margin-bottom: -9px;
151
+ // }
152
+
153
+ // .dots span {
154
+ // animation: blink 1.5s infinite;
155
+ // opacity: 0;
156
+ // width: 2px;
157
+ // height: 2px;
158
+ // border-radius: 50%;
159
+ // background-color: var(--_gray-700);
160
+ // }
161
+
162
+ // .dots span:nth-child(1) {
163
+ // animation-delay: 0s;
164
+ // }
165
+ // .dots span:nth-child(2) {
166
+ // animation-delay: 0.3s;
167
+ // }
168
+ // .dots span:nth-child(3) {
169
+ // animation-delay: 0.6s;
170
+ // }
171
+
172
+ // @keyframes blink {
173
+ // 0% {
174
+ // opacity: 0;
175
+ // }
176
+ // 50% {
177
+ // opacity: 1;
178
+ // }
179
+ // 100% {
180
+ // opacity: 0;
181
+ // }
182
+ // }
183
+ // }
184
+ // .wishlist_overlay_header {
185
+ // display: flex;
186
+ // justify-content: space-between;
187
+ // align-items: center;
188
+ // padding: 12px;
189
+ // font-size: 14px;
190
+ // font-weight: 600;
191
+ // }
192
+ // .wishlist_list_items {
193
+ // display: flex;
194
+ // flex-direction: column;
195
+
196
+ // .wishlist_item {
197
+ // display: flex;
198
+ // align-items: center;
199
+ // gap: 8px;
200
+ // color: var(--_gray-700);
201
+ // padding: 12px;
202
+ // border-radius: 4px;
203
+ // cursor: pointer;
204
+ // position: relative;
205
+ // margin: 4px;
206
+ // &.active {
207
+ // color: var(--_primary-400);
208
+ // }
209
+
210
+ // &:not(:last-child) {
211
+ // margin-bottom: 2px;
212
+ // }
213
+
214
+ // &:hover {
215
+ // background-color: var(--_primary-25);
216
+ // color: var(--_primary-400);
217
+ // }
218
+
219
+ // input {
220
+ // display: none; // hide default checkbox
221
+ // }
222
+
223
+ // .custom_checkbox {
224
+ // width: 18px;
225
+ // height: 18px;
226
+ // border: 2px solid var(--_gray-400);
227
+ // border-radius: 4px;
228
+ // display: inline-flex;
229
+ // align-items: center;
230
+ // justify-content: center;
231
+ // transition: all 0.2s ease-in-out;
232
+ // background-color: #fff;
233
+
234
+ // &::after {
235
+ // content: "";
236
+ // width: 8px;
237
+ // height: 4px;
238
+ // border-left: 2px solid #fff;
239
+ // border-bottom: 2px solid #fff;
240
+ // transform: rotate(-45deg);
241
+ // opacity: 0;
242
+ // transition: opacity 0.2s ease-in-out;
243
+ // margin-bottom: 4px;
244
+ // }
245
+ // }
246
+
247
+ // input:checked + .custom_checkbox {
248
+ // background-color: var(--_primary-400);
249
+ // border-color: var(--_primary-400);
250
+
251
+ // &::after {
252
+ // opacity: 1; // show tick mark
253
+ // }
254
+ // }
255
+
256
+ // .label_text {
257
+ // font-size: 14px;
258
+ // font-weight: 500;
259
+ // }
260
+ // }
261
+ // }
262
+
263
+ // .wishlist_overlay_footer {
264
+ // display: flex;
265
+ // justify-content: space-between;
266
+ // align-items: center;
267
+ // padding: 8px;
268
+ // font-size: 14px;
269
+ // font-weight: 600;
270
+ // border-top: 1px solid var(--_gray-200);
271
+ // padding: 8px;
272
+
273
+ // .btn {
274
+ // padding: 8px 12px;
275
+ // width: 100%;
276
+ // border-radius: 4px;
277
+ // text-align: center;
278
+ // width: 100%;
279
+ // font-weight: 500;
280
+ // text-decoration: none !important;
281
+ // &.primary {
282
+ // background-color: var(--_primary-400);
283
+ // color: var(--_base-white);
284
+ // font-size: 14px;
285
+ // }
286
+ // &.secondary {
287
+ // color: var(--_gray-700);
288
+ // &:hover {
289
+ // color: var(--_gray-900);
290
+
291
+ // background-color: var(--_gray-100);
292
+ // }
293
+ // }
294
+ // }
295
+ // }
296
+
297
+ // .no_wishlist,
298
+ // .loading_state {
299
+ // min-height: 80px;
300
+ // display: flex;
301
+ // justify-content: center;
302
+ // align-items: center;
303
+ // font-size: 14px;
304
+ // font-weight: 700;
305
+ // color: var(--_gray-700);
306
+ // }
307
+ // }
308
+ // }
309
+
310
+ // .modal-footer-secondary-btn {
311
+ // padding: 12px 24px;
312
+ // border-radius: 4px;
313
+ // background-color: var(--_base-white);
314
+ // color: var(--_primary-400);
315
+ // font-weight: 500;
316
+ // width: 100%;
317
+ // display: flex;
318
+ // justify-content: center;
319
+ // // &:hover {
320
+ // // text-decoration: underline;
321
+ // // }
322
+ // }
323
+
324
+ // .modal-footer-danger-btn {
325
+ // padding: 12px 24px;
326
+ // border-radius: 4px;
327
+ // background-color: #d92d20;
328
+ // color: #fff;
329
+ // font-weight: 600;
330
+ // width: 100%;
331
+ // display: flex;
332
+ // border: 1px solid #d92d20;
333
+ // justify-content: center;
334
+ // align-items: center;
335
+
336
+ // &:hover {
337
+ // // background-color: darken(#d92d20, 5%);
338
+ // background-color: color-mix(in srgb, #d92d20 95%, var(--_base-black) 5%);
339
+ // }
340
+ // }
341
+ // }
342
+
343
+ @keyframes fadeIn {
344
+ from {
345
+ opacity: 0;
346
+ }
347
+ to {
348
+ opacity: 1;
349
+ }
350
+ }
351
+ }