@sc-360-v2/storefront-cms-library 0.3.25 → 0.3.27

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.
package/dist/modal.scss CHANGED
@@ -4,7 +4,7 @@ $modal_background_color: white;
4
4
  $backdrop_color: rgba(0, 0, 0, 0.2);
5
5
  $box_shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
6
6
  $modal_width: 618px;
7
- $modal_padding: 20px 0;
7
+ $modal_padding: 24px;
8
8
  $border_radius: 10px;
9
9
  $header_font_size: 18px;
10
10
  $header_font_weight: 600;
@@ -16,7 +16,7 @@ $footer_btn_font_size: 14px;
16
16
  $primary_100: var(--Primary-100, #ced4f6);
17
17
  $primary_500: var(--Primary-500, #162578);
18
18
  $gray_900: var(--Gray-900, #101828);
19
- $gap_between_elements: 10px;
19
+ $gap_between_elements: 24px;
20
20
  $padding_horizontal: 24px;
21
21
  $box_shadow_active: 0px 1px 2px rgba(16, 24, 40, 0.05);
22
22
  $divider_color: #eaecf0;
@@ -53,7 +53,7 @@ $active_btn_text_color: #fff;
53
53
  left: 50%;
54
54
  transform: translate(-50%, -50%);
55
55
  background-color: $modal_background_color;
56
- width: var(--_sf-ml-wh, 850px);
56
+ width: var(--_sf-ml-wh, 450px);
57
57
  max-width: min(75%, 850px);
58
58
  padding: $modal_padding;
59
59
  box-shadow: $box_shadow;
@@ -62,16 +62,12 @@ $active_btn_text_color: #fff;
62
62
  flex-direction: column;
63
63
  gap: $gap_between_elements;
64
64
  z-index: calc(var(--_higher-zIndex) + var(--_cs-et-zIndex) + 10);
65
- max-height: calc(100vh - 40px);
66
- min-height: 250px;
67
- overflow-y: auto;
68
65
  cursor: auto;
69
66
 
70
67
  &.media__modal {
71
68
  width: 60%;
72
69
 
73
70
  .modal-body {
74
- padding: 0 16px;
75
71
  overflow: hidden;
76
72
  }
77
73
 
@@ -83,8 +79,10 @@ $active_btn_text_color: #fff;
83
79
  }
84
80
 
85
81
  .modal-header {
86
- padding: 0 $padding_horizontal;
87
82
  position: relative;
83
+ display: flex;
84
+ align-items: center;
85
+ justify-content: space-between;
88
86
 
89
87
  h2 {
90
88
  font-size: $header_font_size;
@@ -100,9 +98,6 @@ $active_btn_text_color: #fff;
100
98
  }
101
99
 
102
100
  .modal-close-btn {
103
- position: absolute;
104
- right: $padding_horizontal;
105
- top: 10px;
106
101
  width: $close_btn_size;
107
102
  height: $close_btn_size;
108
103
  font-size: $close_btn_font_size;
@@ -121,19 +116,43 @@ $active_btn_text_color: #fff;
121
116
  }
122
117
 
123
118
  .modal-body {
124
- padding: $modal_padding_body;
125
119
  font-size: 14px;
126
120
  color: $gray_900;
127
121
  }
128
122
 
129
123
  .modal-footer {
130
124
  @include flexbox(flex-end, center, 10px);
131
- padding: 10px $padding_horizontal;
132
- border-top: 1px solid $divider_color;
133
125
  flex-wrap: wrap;
134
126
  bottom: 0;
135
- position: absolute;
136
127
  width: 100%;
128
+
129
+ .modal-footer-wrapper {
130
+ display: flex;
131
+ width: 100%;
132
+ gap: 8px;
133
+
134
+ .modal-footer-white-btn {
135
+ padding: 12px 24px;
136
+ border-radius: 4px;
137
+ background-color: #fff;
138
+ color: #243dc6;
139
+ font-weight: 600;
140
+ width: 100%;
141
+ display: flex;
142
+ justify-content: center;
143
+ }
144
+
145
+ .modal-footer-danger-btn {
146
+ padding: 12px 24px;
147
+ border-radius: 4px;
148
+ background-color: #d92d20;
149
+ color: #fff;
150
+ font-weight: 600;
151
+ width: 100%;
152
+ display: flex;
153
+ justify-content: center;
154
+ }
155
+ }
137
156
  }
138
157
 
139
158
  @keyframes fadeIn {
@@ -191,7 +210,6 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
191
210
 
192
211
  .modalV2-main {
193
212
  .modalV2-wrapper {
194
- min-height: 50%;
195
213
  overflow: hidden !important;
196
214
  position: fixed;
197
215
  left: 50%;
@@ -201,7 +219,8 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
201
219
  background: $white;
202
220
  border-radius: $radius-lg;
203
221
  // padding: 0px 20px;
204
- width: 850px;
222
+ width: 75%;
223
+ max-width: calc(1280px - 10%);
205
224
  font-family: $font-base;
206
225
  box-shadow: $shadow-md;
207
226
  z-index: $z-index-wrapper;
@@ -210,7 +229,20 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
210
229
  display: flex;
211
230
  flex-direction: column;
212
231
  .modal-body {
213
- height: calc(100% - 61px);
232
+ height: auto;
233
+ display: flex;
234
+ width: 100%;
235
+ flex: 1 1 auto;
236
+ overflow-y: auto;
237
+
238
+ .wishlist-modal {
239
+ display: flex;
240
+ flex-direction: column;
241
+ gap: 16px;
242
+ padding: 10px 16px;
243
+ width: 100%;
244
+ overflow: scroll;
245
+ }
214
246
  }
215
247
  &.fullscreen {
216
248
  transition:
@@ -236,8 +268,10 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
236
268
 
237
269
  .footer-bar {
238
270
  border-top: 1px solid $gray-300;
239
- padding-top: 16px;
240
- margin: 15px 0;
271
+ margin: 0px;
272
+ padding: 10px 16px;
273
+ display: flex;
274
+ align-items: center;
241
275
  }
242
276
  }
243
277
 
@@ -277,7 +311,22 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
277
311
  font-weight: 600;
278
312
  display: flex;
279
313
  align-items: center;
280
- gap: 8px;
314
+ gap: 6px;
315
+ color: var(--_gray-900);
316
+ line-height: 24px;
317
+
318
+ .modal_heading_icon {
319
+ width: 36px;
320
+ height: 36px;
321
+ display: flex;
322
+ align-items: center;
323
+ justify-content: center;
324
+
325
+ svg {
326
+ width: 20px;
327
+ height: 20px;
328
+ }
329
+ }
281
330
 
282
331
  .count {
283
332
  font-weight: 700;
@@ -293,15 +342,23 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
293
342
  }
294
343
  }
295
344
 
296
- .actions span {
297
- margin-left: 14px;
298
- cursor: pointer;
299
- font-size: 16px;
300
- color: $text-light;
301
- transition: color 0.2s;
345
+ .actions {
346
+ display: flex;
347
+ gap: 12px;
348
+ span {
349
+ width: 36px;
350
+ height: 36px;
351
+ cursor: pointer;
352
+ font-size: 16px;
353
+ color: $text-light;
354
+ transition: color 0.2s;
355
+ display: flex;
356
+ align-items: center;
357
+ justify-content: center;
302
358
 
303
- &:hover {
304
- color: $black;
359
+ &:hover {
360
+ color: $black;
361
+ }
305
362
  }
306
363
  }
307
364
  }
@@ -353,16 +410,24 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
353
410
  bottom: 0;
354
411
  display: flex;
355
412
  justify-content: space-between;
356
- padding: 15px 0;
413
+ padding: 10px 16px;
357
414
  border-top: 1px solid $gray-300;
358
- margin-top: 24px;
359
415
  font-size: $font-size-base;
360
416
  background: $footer_btn_background_color;
361
417
 
362
- .summary span {
363
- margin-right: 18px;
364
- font-weight: 500;
365
- color: $text-medium;
418
+ .summary {
419
+ display: flex;
420
+ gap: 24px;
421
+ span {
422
+ font-weight: 700;
423
+ line-height: 20px;
424
+ font-size: 14px;
425
+ color: #101828;
426
+ .footer_label {
427
+ font-weight: 400;
428
+ color: #667085;
429
+ }
430
+ }
366
431
  }
367
432
 
368
433
  .footer-actions {
@@ -213,14 +213,18 @@
213
213
  .success-text {
214
214
  h2 {
215
215
  margin: 0 0 4px;
216
- font-size: 1.1rem;
217
- font-weight: 600;
216
+ font-size: var(--_ctm-dn-dn-tt-ft-se);
217
+ color: var(--_ctm-dn-dn-tt-cr);
218
+ font-weight: var(--_ctm-dn-dn-tt-ft-wt);
219
+ font-family: var(--_ctm-dn-dn-tt-ft-fy);
218
220
  }
219
221
 
220
222
  p {
221
223
  margin: 0;
222
- font-size: 0.7rem;
223
- color: #374151;
224
+ font-size: var(--_ctm-dn-dn-tt-ft-se-dc);
225
+ color: var(--_ctm-dn-dn-tt-cr-dc);
226
+ font-weight: var(--_ctm-dn-dn-tt-ft-wt-dc);
227
+ font-family: var(--_ctm-dn-dn-tt-ft-fy-dc);
224
228
  }
225
229
  }
226
230
  }
@@ -15,10 +15,52 @@ $input-padding: 10px 12px;
15
15
 
16
16
  // .quick-order-main Styles
17
17
  .quick-order-main {
18
+ display: flex;
19
+ padding: 12px;
20
+ flex-direction: column;
21
+ gap: 16px;
22
+ width: 100%;
23
+
18
24
  .input-group {
19
25
  display: flex;
20
26
  gap: 12px;
21
- margin-bottom: 10px;
27
+ height: fit-content;
28
+ align-items: center;
29
+
30
+ .quick-order-product-dropdown-section {
31
+ width: 320px;
32
+ height: 40px;
33
+ border: 0.5px solid #d0d5dd;
34
+ border-radius: 4px;
35
+
36
+ .dropdown-input-section {
37
+ padding: 0px 12px;
38
+
39
+ .dropdown-menu {
40
+ top: 40px;
41
+
42
+ .dropdown_menu_ul {
43
+ .dropdown-opt {
44
+ height: auto;
45
+ .dropdown-item {
46
+ max-height: none;
47
+
48
+ .item-image {
49
+ width: 42px;
50
+ height: 42px;
51
+ }
52
+
53
+ .item-name {
54
+ font-size: 16px;
55
+ line-height: 24px;
56
+ color: #344054;
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
22
64
 
23
65
  .qty-input {
24
66
  padding: $input-padding;
@@ -47,9 +89,28 @@ $input-padding: 10px 12px;
47
89
  padding: 10px 16px;
48
90
  border-radius: $radius;
49
91
  font-weight: 600;
50
- font-size: $font-size-base;
92
+ font-size: 14px;
51
93
  cursor: pointer;
52
94
  transition: background-color 0.2s;
95
+ display: flex;
96
+ gap: 4px;
97
+ line-height: 20px;
98
+
99
+ .add-icon {
100
+ width: 20px;
101
+ height: 20px;
102
+ display: flex;
103
+ align-items: center;
104
+ justify-content: center;
105
+
106
+ svg {
107
+ width: 20px;
108
+ height: 20px;
109
+ path {
110
+ stroke: #fff;
111
+ }
112
+ }
113
+ }
53
114
  &:hover {
54
115
  background-color: $primary-hover;
55
116
  }
package/dist/section.scss CHANGED
@@ -30,6 +30,12 @@ $rp: (
30
30
 
31
31
  body {
32
32
  @include prepareCustomClassCSSProps($rp);
33
+
34
+ [data-anim-id="flex-animation-element"] {
35
+ &:not(.animate__animated) {
36
+ opacity: 0;
37
+ }
38
+ }
33
39
  }
34
40
 
35
41
  section {
@@ -0,0 +1,27 @@
1
+ import { CMSHTMLAttributes } from "../../../global/attributes";
2
+ import { CommonStyleProperties } from "../../../global/style-properties";
3
+ import { AlignSelfValue, BoxSizingValue, GridAreaValue, HeightValue, JustifySelfValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue, CommonBuilderAttributes, GlobalImageAttributes } from "../../../global/types";
4
+ import { BuilderAttributes, CMSElementInterface } from "../common";
5
+ export interface CartSummaryStyleProperties extends CommonStyleProperties {
6
+ minHeight?: MinHeightValue;
7
+ height?: HeightValue;
8
+ minWidth?: MinWidthValue;
9
+ maxWidth?: MaxWidthValue;
10
+ maxHeight?: MaxHeightValue;
11
+ gridArea?: GridAreaValue;
12
+ boxSizing?: BoxSizingValue;
13
+ padding?: PaddingValue;
14
+ justifySelf?: JustifySelfValue;
15
+ alignSelf?: AlignSelfValue;
16
+ }
17
+ export declare const getDefaultStyles: () => CartSummaryStyleProperties;
18
+ export interface CMSCartSummaryInterface extends Omit<CMSElementInterface, "attributes"> {
19
+ attributes: {
20
+ HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
21
+ BUILDER: Pick<BuilderAttributes, CommonBuilderAttributes>;
22
+ CUSTOM: any;
23
+ };
24
+ styles: CartSummaryStyleProperties;
25
+ childrenStyles?: CommonStyleProperties;
26
+ content?: string;
27
+ }