@sc-360-v2/storefront-cms-library 0.4.79 → 0.4.80

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.
@@ -687,11 +687,11 @@
687
687
  // }
688
688
  }
689
689
  &.show__panel {
690
- animation: slideUp 0.4s ease-in-out;
690
+ animation: slideUp 0.4s ease-in-out forwards;
691
691
  }
692
692
 
693
693
  &.hide__panel {
694
- animation: slideDown 0.4s ease-in-out;
694
+ animation: slideDown 0.4s ease-in-out forwards;
695
695
  pointer-events: none;
696
696
  }
697
697
  }
package/dist/menu-v2.scss CHANGED
@@ -15,13 +15,13 @@ $hamburgerActive: "[data-hamburger-active='true']";
15
15
 
16
16
  $wrapperData: (
17
17
  start: (
18
- left: prepareMediaVariable(--_ctm-meg-dn-hr-os-cr-ot-x, 0px),
18
+ left: prepareMediaVariable(--_ctm-dn-hr-os-cr-ot-x, 0px),
19
19
  ),
20
20
  end: (
21
- right: prepareMediaVariable(--_ctm-meg-dn-hr-os-cr-ot-x, 0px),
21
+ right: prepareMediaVariable(--_ctm-dn-hr-os-cr-ot-x, 0px),
22
22
  ),
23
23
  center: (
24
- left: calc(50% + #{prepareMediaVariable(--_ctm-meg-dn-hr-os-cr-ot-x, 0px)}),
24
+ left: calc(50% + #{prepareMediaVariable(--_ctm-dn-hr-os-cr-ot-x, 0px)}),
25
25
  transform: translateX(-50%),
26
26
  ),
27
27
  );
package/dist/modal.scss CHANGED
@@ -439,7 +439,7 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
439
439
 
440
440
  .modalV2-main {
441
441
  position: fixed;
442
- z-index: 9999;
442
+ z-index: $z-index-modal;
443
443
  inset: 0;
444
444
  background: rgba(0, 0, 0, 0.4);
445
445
 
@@ -2059,7 +2059,7 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
2059
2059
 
2060
2060
  .footer-actions {
2061
2061
  display: flex;
2062
- gap: 10px;
2062
+ gap: 12px;
2063
2063
 
2064
2064
  .cancel-btn {
2065
2065
  // border-radius: $radius;
@@ -1,282 +1,293 @@
1
- /* ----------------------------------------------
2
- File: MultiSelect.scss
3
- Place this in the same folder. This file contains styles only.
4
- ------------------------------------------------*/
5
- @use "sass:map";
6
- @use "sass:list";
7
- @use "./functions.scss" as *;
8
-
9
- $msd-bg: #fff;
10
- $msd-border: #dcdfe4;
11
- $msd-border-focus: #6b9cff;
12
- $msd-text: #1f2937;
13
- $msd-muted: #6b7280;
14
- $msd-chip-bg: #f3f4f6;
15
- $msd-chip-text: #111827;
16
- $msd-chip-remove: #9ca3af;
17
- $msd-chip-remove-hover: #4b5563;
18
- $msd-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
19
-
20
- .msd {
21
- position: relative;
22
- color: $msd-text;
23
- &--disabled {
24
- opacity: 0.6;
25
- pointer-events: none;
26
- background-color: var(--_gray-100);
27
- }
28
- }
29
-
30
- .msd__control {
31
- position: relative; // anchor for ellipsis
32
- display: flex;
33
- align-items: center;
34
- gap: 14px;
35
- min-height: 40px;
36
- border: 1px solid $msd-border;
37
- background: var(--_base-white);
38
- border-radius: 4px;
39
- padding: 6px 8px;
40
- cursor: text;
41
- transition:
42
- border-color 0.15s ease,
43
- box-shadow 0.15s ease;
44
-
45
- &--open {
46
- box-shadow: $msd-shadow;
47
- border-color: lighten($msd-border, 5%);
48
- }
49
-
50
- &:focus-within {
51
- border-color: $msd-border-focus;
52
- box-shadow: 0 0 0 3px rgba($msd-border-focus, 0.25);
53
- }
54
- }
55
-
56
- .msd__chips {
57
- display: flex;
58
- align-items: center;
59
- flex-wrap: nowrap; // single line only
60
- overflow: hidden; // hide overflowed chips
61
- white-space: nowrap; // prevent wrapping
62
- gap: 6px;
63
- min-height: 28px;
64
- flex: 1 1 auto;
65
- .msd__chip {
66
- // ensure chips do not wrap individually
67
- flex: 0 0 auto;
68
- display: inline-flex;
69
- align-items: center;
70
- gap: 6px;
71
- padding: 5px 8px 5px 8px;
72
- background: $msd-chip-bg;
73
- border-radius: 999px;
74
- line-height: 1;
75
- border: 1px solid lighten($msd-border, 6%);
76
- &:hover {
77
- border: 1px solid var(--_gray-300);
78
- }
79
- }
80
- &--single {
81
- .msd__chip {
82
- background-color: transparent;
83
- border: none !important;
84
- border-radius: 0px !important;
85
- }
86
- }
87
- }
88
-
89
- .msd__chipLabel {
90
- font-size: 12px;
91
- color: $msd-chip-text;
92
- }
93
-
94
- .msd__chipRemove {
95
- border: 0;
96
- background: transparent;
97
- cursor: pointer;
98
- color: $msd-chip-remove;
99
- font-size: 14px;
100
- line-height: 1;
101
- padding: 0;
102
- margin: 0;
103
- svg {
104
- width: 10px;
105
- height: 10px;
106
- }
107
- &:hover {
108
- color: $msd-chip-remove-hover;
109
- }
110
- }
111
-
112
- .msd__input {
113
- border: 0;
114
- outline: 0;
115
- flex: 0 0 auto;
116
- min-width: 100px; // keep single line
117
- max-width: 45%; // avoid pushing actions off-screen
118
- font-size: 14px;
119
- background: transparent;
120
- color: $msd-text;
121
- line-height: 19px;
122
-
123
- &::placeholder {
124
- color: $msd-muted;
125
- }
126
- }
127
- .msd__clear {
128
- margin-right: 15px;
129
- svg {
130
- width: 16px;
131
- height: 16px;
132
- }
133
- }
134
- .msd__clear,
135
- .msd__arrow {
136
- width: 26px;
137
- // height: 26px;
138
- border: 0;
139
- background: transparent;
140
- cursor: pointer;
141
- font-size: 12px;
142
- color: $msd-muted;
143
- // padding: 4px 6px;
144
- border-radius: 4px;
145
- display: flex;
146
- // &:hover {
147
- // color: #374151;
148
- // }
149
- }
150
-
151
- .msd__ellipsis {
152
- position: absolute;
153
- right: 30px; // leave room for the arrow
154
- top: 5px;
155
- // transform: translateY(-50%);
156
- pointer-events: none;
157
- background: $msd-bg;
158
- padding-left: 6px;
159
- width: 24px;
160
- }
161
-
162
- .msd__menu {
163
- position: absolute;
164
- z-index: 20;
165
- top: 99%;
166
- left: 0;
167
- right: 0;
168
- background: $msd-bg;
169
- border: 1px solid $msd-border;
170
- border-radius: 4px;
171
- box-shadow: $msd-shadow;
172
- overflow: auto;
173
- padding: 6px;
174
- }
175
-
176
- .msd__empty {
177
- padding: 10px;
178
- text-align: center;
179
- color: $msd-muted;
180
- font-size: 13px;
181
- }
182
-
183
- .msd__menu--up {
184
- top: auto;
185
- bottom: 100%;
186
- }
187
-
188
- .msd__option {
189
- // display: grid;
190
- // grid-template-columns: 16px 1fr;
191
- // align-items: center;
192
- gap: 10px;
193
- padding: 10px;
194
- border-radius: 4px;
195
- cursor: pointer;
196
- font-size: 14px;
197
- display: flex;
198
- justify-content: start;
199
- align-items: center;
200
- svg path {
201
- stroke: var(--_primary-50);
202
- }
203
- &__img {
204
- border-radius: 4px;
205
- justify-content: center;
206
- align-items: center;
207
- display: flex;
208
- width: 32px;
209
- height: 32px;
210
- border: 1px solid var(--_gray-200);
211
- overflow: hidden;
212
- img {
213
- max-height: 100%;
214
- max-width: 100%;
215
- }
216
- }
217
- .msd__option__text {
218
- display: flex;
219
- flex-direction: column;
220
- gap: 4px;
221
- .msd__option__subtitle {
222
- font-size: 12px;
223
- color: var(--_gray-500);
224
- }
225
- }
226
- .is__selected {
227
- margin-left: auto;
228
- }
229
-
230
- &:not(.is-disabled):hover {
231
- @include BgColorLighter(var(--_thm-cs-at-py), 8%);
232
- }
233
- // &.is-active {
234
- // background: #f1f5f9;
235
- // }
236
- &.is-selected {
237
- font-weight: normal;
238
- @include BgColorLighter(var(--_thm-cs-at-py), 8%);
239
- color: var(--_thm-cs-at-py);
240
- // background: var(--_thm-cs-at-py);
241
- svg path {
242
- stroke: var(--_thm-cs-at-py);
243
- }
244
- }
245
- &.is-disabled {
246
- opacity: 0.5;
247
- pointer-events: none;
248
- }
249
- &--selectAll {
250
- font-weight: 600;
251
- }
252
- &:not(:last-child) {
253
- margin-bottom: 2px;
254
- }
255
- }
256
-
257
- .msd__checkbox {
258
- width: 16px;
259
- height: 16px;
260
- border-radius: 4px;
261
- border: 1.5px solid $msd-border;
262
- background: #fff;
263
- position: relative;
264
- top: 2px;
265
-
266
- &.is-checked {
267
- border-color: $msd-border-focus;
268
- background: $msd-border-focus;
269
- &::after {
270
- content: "";
271
- position: absolute;
272
- top: 2px;
273
- inset: 0;
274
- 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>')
275
- center/12px 12px no-repeat;
276
- }
277
- }
278
-
279
- &.is-disabled {
280
- opacity: 0.6;
281
- }
282
- }
1
+ /* ----------------------------------------------
2
+ File: MultiSelect.scss
3
+ Place this in the same folder. This file contains styles only.
4
+ ------------------------------------------------*/
5
+ @use "sass:map";
6
+ @use "sass:list";
7
+ @use "./functions.scss" as *;
8
+
9
+ $msd-bg: #fff;
10
+ $msd-border: #dcdfe4;
11
+ $msd-border-focus: #6b9cff;
12
+ $msd-text: #1f2937;
13
+ $msd-muted: #6b7280;
14
+ $msd-chip-bg: #f3f4f6;
15
+ $msd-chip-text: #111827;
16
+ $msd-chip-remove: #9ca3af;
17
+ $msd-chip-remove-hover: #4b5563;
18
+ $msd-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
19
+
20
+ .msd {
21
+ position: relative;
22
+ color: $msd-text;
23
+ &--disabled {
24
+ opacity: 0.6;
25
+ pointer-events: none;
26
+ background-color: var(--_gray-100);
27
+ }
28
+ }
29
+
30
+ .msd__control {
31
+ position: relative; // anchor for ellipsis
32
+ display: flex;
33
+ align-items: center;
34
+ gap: 14px;
35
+ min-height: 40px;
36
+ border: 1px solid var(--_gray-300);
37
+ background: var(--_base-white);
38
+ border-radius: 4px;
39
+ padding: 6px 8px;
40
+ cursor: text;
41
+ transition:
42
+ border-color 0.15s ease,
43
+ box-shadow 0.15s ease;
44
+
45
+ // &--open {
46
+ // box-shadow: $msd-shadow;
47
+ // border-color: lighten($msd-border, 5%);
48
+ // }
49
+
50
+ &:focus-within {
51
+ border-color: var(--_gray-300);
52
+ box-shadow: 0px 0px 0px 2px var(--_gray-100);
53
+ }
54
+ }
55
+
56
+ .msd__chips {
57
+ display: flex;
58
+ align-items: center;
59
+ flex-wrap: nowrap; // single line only
60
+ overflow: hidden; // hide overflowed chips
61
+ white-space: nowrap; // prevent wrapping
62
+ gap: 6px;
63
+ min-height: 28px;
64
+ flex: 1 1 auto;
65
+ .msd__chip {
66
+ // ensure chips do not wrap individually
67
+ flex: 0 0 auto;
68
+ display: inline-flex;
69
+ align-items: center;
70
+ gap: 6px;
71
+ padding: 5px 8px 5px 8px;
72
+ background: $msd-chip-bg;
73
+ border-radius: 999px;
74
+ line-height: 1;
75
+ border: 1px solid lighten($msd-border, 6%);
76
+ transition:
77
+ padding 0.2s ease,
78
+ background-color 0.2s ease;
79
+ .msd__chipRemove {
80
+ border: 0;
81
+ background: transparent;
82
+ cursor: pointer;
83
+ color: $msd-chip-remove;
84
+ font-size: 14px;
85
+ line-height: 1;
86
+ padding: 0;
87
+ margin: 0;
88
+ svg {
89
+ width: 10px;
90
+ height: 10px;
91
+ }
92
+ &:hover {
93
+ color: $msd-chip-remove-hover;
94
+ }
95
+ }
96
+ &:hover {
97
+ // border: 1px solid var(--_gray-300);
98
+ background-color: var(--_base-white);
99
+ padding: 5px 10px;
100
+ svg path {
101
+ stroke: var(--_gray-900);
102
+ }
103
+ }
104
+ }
105
+ &--single {
106
+ .msd__chip {
107
+ background-color: transparent;
108
+ border: none !important;
109
+ border-radius: 0px !important;
110
+ }
111
+ }
112
+ }
113
+
114
+ .msd__chipLabel {
115
+ font-size: 12px;
116
+ color: $msd-chip-text;
117
+ }
118
+
119
+ .msd__input {
120
+ border: 0;
121
+ outline: 0;
122
+ flex: 0 0 auto;
123
+ min-width: 100px; // keep single line
124
+ max-width: 45%; // avoid pushing actions off-screen
125
+ font-size: 14px;
126
+ background: transparent;
127
+ color: $msd-text;
128
+ line-height: 19px;
129
+
130
+ &::placeholder {
131
+ color: $msd-muted;
132
+ }
133
+ }
134
+ .msd__clear {
135
+ margin-right: 15px;
136
+ svg {
137
+ width: 16px;
138
+ height: 16px;
139
+ }
140
+ }
141
+ .msd__clear,
142
+ .msd__arrow {
143
+ width: 26px;
144
+ // height: 26px;
145
+ border: 0;
146
+ background: transparent;
147
+ cursor: pointer;
148
+ font-size: 12px;
149
+ color: $msd-muted;
150
+ // padding: 4px 6px;
151
+ border-radius: 4px;
152
+ display: flex;
153
+ // &:hover {
154
+ // color: #374151;
155
+ // }
156
+ }
157
+
158
+ .msd__ellipsis {
159
+ position: absolute;
160
+ right: 30px; // leave room for the arrow
161
+ top: 5px;
162
+ // transform: translateY(-50%);
163
+ pointer-events: none;
164
+ background: $msd-bg;
165
+ padding-left: 6px;
166
+ width: 24px;
167
+ }
168
+
169
+ .msd__menu {
170
+ position: absolute;
171
+ z-index: 20;
172
+ top: 99%;
173
+ left: 0;
174
+ right: 0;
175
+ background: $msd-bg;
176
+ border: 1px solid $msd-border;
177
+ border-radius: 4px;
178
+ box-shadow: $msd-shadow;
179
+ overflow: auto;
180
+ padding: 6px;
181
+ }
182
+
183
+ .msd__empty {
184
+ padding: 10px;
185
+ text-align: center;
186
+ color: $msd-muted;
187
+ font-size: 13px;
188
+ }
189
+
190
+ .msd__menu--up {
191
+ top: auto;
192
+ bottom: 100%;
193
+ }
194
+
195
+ .msd__option {
196
+ // display: grid;
197
+ // grid-template-columns: 16px 1fr;
198
+ // align-items: center;
199
+ gap: 10px;
200
+ padding: 10px;
201
+ border-radius: 4px;
202
+ cursor: pointer;
203
+ font-size: 14px;
204
+ display: flex;
205
+ justify-content: start;
206
+ align-items: center;
207
+ svg path {
208
+ stroke: var(--_gray-50);
209
+ }
210
+ &__img {
211
+ border-radius: 4px;
212
+ justify-content: center;
213
+ align-items: center;
214
+ display: flex;
215
+ width: 32px;
216
+ height: 32px;
217
+ border: 1px solid var(--_gray-200);
218
+ overflow: hidden;
219
+ img {
220
+ max-height: 100%;
221
+ max-width: 100%;
222
+ }
223
+ }
224
+ .msd__option__text {
225
+ display: flex;
226
+ flex-direction: column;
227
+ gap: 4px;
228
+ .msd__option__subtitle {
229
+ font-size: 12px;
230
+ color: var(--_gray-700);
231
+ }
232
+ }
233
+ .is__selected {
234
+ margin-left: auto;
235
+ }
236
+
237
+ &:not(.is-disabled):hover {
238
+ // @include BgColorLighter(var(--_thm-cs-at-py), 8%);
239
+ background-color: var(--_gray-50);
240
+ }
241
+ // &.is-active {
242
+ // background: #f1f5f9;
243
+ // }
244
+ &.is-selected {
245
+ font-weight: normal;
246
+ // @include BgColorLighter(var(--_thm-cs-at-py), 8%);
247
+ background-color: var(--_gray-100);
248
+ // color: var(--_thm-cs-at-py);
249
+ color: var(--_gray-900);
250
+ // background: var(--_thm-cs-at-py);
251
+ svg path {
252
+ // stroke: var(--_thm-cs-at-py);
253
+ stroke: var(--_gray-900);
254
+ }
255
+ }
256
+ &.is-disabled {
257
+ opacity: 0.5;
258
+ pointer-events: none;
259
+ }
260
+ &--selectAll {
261
+ font-weight: 600;
262
+ }
263
+ &:not(:last-child) {
264
+ margin-bottom: 2px;
265
+ }
266
+ }
267
+
268
+ .msd__checkbox {
269
+ width: 16px;
270
+ height: 16px;
271
+ border-radius: 4px;
272
+ border: 1.5px solid var(--_gray-600);
273
+ background: #fff;
274
+ position: relative;
275
+ top: 2px;
276
+
277
+ &.is-checked {
278
+ border-color: var(--_gray-600);
279
+ background: var(--_gray-600);
280
+ &::after {
281
+ content: "";
282
+ position: absolute;
283
+ top: 2px;
284
+ inset: 0;
285
+ 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>')
286
+ center/12px 12px no-repeat;
287
+ }
288
+ }
289
+
290
+ &.is-disabled {
291
+ opacity: 0.6;
292
+ }
293
+ }
@@ -1019,14 +1019,14 @@ $defaultValues: (
1019
1019
  // var(--_ctm-tab-dn-qk-as-as-im-gp, var(--_ctm-dn-qk-as-as-im-gp))
1020
1020
  // );
1021
1021
 
1022
- background-color: var(--_ctm-dn-dn-qk-as-bd-cr);
1023
- margin: var(--_ctm-dn-dn-qk-as-mn);
1024
- padding: var(--_ctm-dn-dn-qk-as-pg);
1025
- border-color: var(--_ctm-dn-dn-qk-as-br-cr);
1022
+ background-color: prepareMediaVariable(--_ctm-dn-dn-qk-as-bd-cr);
1023
+ margin: prepareMediaVariable(--_ctm-dn-dn-qk-as-mn);
1024
+ padding: prepareMediaVariable(--_ctm-dn-dn-qk-as-pg);
1025
+ border-color: prepareMediaVariable(--_ctm-dn-dn-qk-as-br-cr);
1026
1026
 
1027
- border-style: var(--_ctm-dn-dn-qk-as-br-se);
1028
- border-width: var(--_ctm-dn-dn-qk-as-br-wh);
1029
- border-radius: var(--_ctm-dn-dn-qk-as-br-rs);
1027
+ border-style: prepareMediaVariable(--_ctm-dn-dn-qk-as-br-se);
1028
+ border-width: prepareMediaVariable(--_ctm-dn-dn-qk-as-br-wh);
1029
+ border-radius: prepareMediaVariable(--_ctm-dn-dn-qk-as-br-rs);
1030
1030
 
1031
1031
  box-shadow: var(
1032
1032
  --_show-shadow,
@@ -1866,6 +1866,27 @@ $defaultValues: (
1866
1866
  }
1867
1867
  }
1868
1868
 
1869
+ .order-summary-breakup {
1870
+ .breakup-item {
1871
+ display: flex;
1872
+ justify-content: space-between;
1873
+ .breakup-label {
1874
+ line-height: prepareMediaVariable(--_ctm-dn-or-io-bk-up-ds-le-ht);
1875
+ font-family: prepareMediaVariable(--_ctm-dn-or-io-bk-up-ds-ft-fy);
1876
+ font-size: prepareMediaVariable(--_ctm-dn-or-io-bk-up-ds-ft-se);
1877
+ // font-size: 16px;
1878
+ color: prepareMediaVariable(--_ctm-dn-or-io-bk-up-ds-cr);
1879
+ font-weight: prepareMediaVariable(--_ctm-dn-or-io-bk-up-ds-ft-wt);
1880
+ text-decoration: prepareMediaVariable(--_ctm-dn-or-io-bk-up-ds-ue);
1881
+ letter-spacing: prepareMediaVariable(--_ctm-dn-or-io-bk-up-ds-lr-sg);
1882
+
1883
+ font-style: prepareMediaVariable(--_ctm-dn-or-io-bk-up-ds-ft-se-ic);
1884
+ text-align: prepareMediaVariable(--_ctm-dn-or-io-bk-up-ds-tt-an);
1885
+ padding: prepareMediaVariable(--_ctm-dn-or-io-bk-up-ds-pg);
1886
+ }
1887
+ }
1888
+ }
1889
+
1869
1890
  &:hover .os-order-info-wrapper {
1870
1891
  display: block;
1871
1892
  }