@sc-360-v2/storefront-cms-library 0.4.78 → 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.
@@ -1,290 +1,328 @@
1
- @use "sass:map";
2
- @use "sass:list";
3
- @use "./fb-dropdown.scss";
4
- /**************************************************************
5
- * Preview Form Styles
6
- **************************************************************/
7
-
8
- .new-form-template {
9
- display: flex;
10
- flex-direction: column;
11
- align-items: center;
12
- justify-content: center;
13
- padding: 20px;
14
- height: 100%;
15
- width: 100%;
16
- border-radius: 5px;
17
- text-align: center;
18
- background-color: #ffffff;
19
-
20
- .icon-container {
21
- margin-bottom: 10px;
22
-
23
- svg {
24
- width: 50px;
25
- height: 50px;
26
- color: #666;
27
- }
28
- }
29
-
30
- .title {
31
- font-size: 1.2em;
32
- color: #8b4513;
33
- margin-bottom: 10px;
34
- }
35
-
36
- .description {
37
- font-size: 0.9em;
38
- color: #777;
39
- line-height: 1.4;
40
- }
41
- .spinner {
42
- animation: spin 1s linear infinite;
43
- }
44
-
45
- @keyframes spin {
46
- 0% {
47
- transform: rotate(0deg);
48
- }
49
- 100% {
50
- transform: rotate(360deg);
51
- }
52
- }
53
- }
54
-
55
- .fb_field {
56
- width: 100%;
57
- .cnf_checkbox {
58
- display: flex;
59
- gap: 8px;
60
- }
61
-
62
- .input__error {
63
- border: 1px solid var(--_error-300) !important;
64
-
65
- &:focus {
66
- outline: 2px solid var(--_error-100) !important;
67
- }
68
-
69
- box-shadow: 0px 0px 0px 4px var(--_error-100);
70
- }
71
-
72
- .error_styles {
73
- span {
74
- svg {
75
- width: 14px;
76
- height: 14px;
77
- path {
78
- stroke: var(--_error-500);
79
- }
80
- }
81
- }
82
- }
83
-
84
- .toggle_input {
85
- display: flex;
86
- svg {
87
- width: 18px;
88
- height: 18px;
89
- }
90
- }
91
- .editor {
92
- padding-inline: 0px !important;
93
- .fr-toolbar.fr-top {
94
- border-top-left-radius: 6px;
95
- border-top-right-radius: 6px;
96
- }
97
- .fr-second-toolbar {
98
- border-bottom-left-radius: 6px;
99
- border-bottom-right-radius: 6px;
100
- }
101
- }
102
-
103
- .react-datepicker-wrapper {
104
- display: block;
105
- }
106
- input:not([type="checkbox"][type="radio"]),
107
- select {
108
- border: 1px solid var(--_primary-300);
109
- border-radius: 6px;
110
- padding-inline: 12px;
111
- width: 100%;
112
- height: 38px;
113
- &:focus {
114
- outline: 2px solid var(--_primary-100);
115
- }
116
- }
117
- input[type="tel"] {
118
- border-top-left-radius: 0px !important;
119
- border-bottom-left-radius: 0px !important;
120
- border-left: 0 !important;
121
- background-color: var(--_base-white);
122
- height: 38px;
123
- }
124
- textarea {
125
- width: 100%;
126
- resize: vertical;
127
- border-radius: 6px;
128
- background-color: var(--_base-white);
129
- border: 1px solid var(--_gray-300);
130
- padding: 12px;
131
- }
132
- .error_styles {
133
- min-height: 20px;
134
- }
135
- .label_with_radio {
136
- display: flex;
137
- align-items: center;
138
- gap: 4px;
139
- label {
140
- margin-right: 12px;
141
- display: flex;
142
- align-items: center;
143
- gap: 12px;
144
- text-wrap: nowrap;
145
- }
146
- }
147
-
148
- .custom-input {
149
- display: inline-flex;
150
- align-items: center;
151
- gap: 0.5rem;
152
- font-size: 16px;
153
- cursor: pointer;
154
- user-select: none;
155
- flex-wrap: wrap;
156
-
157
- input {
158
- display: none;
159
- }
160
-
161
- .custom-mark {
162
- width: 20px;
163
- height: 20px;
164
- background-color: var(--_base-white);
165
- border: 2px solid var(--_gray-400);
166
- margin: 0px 4px;
167
- position: relative;
168
- transition: all 0.2s ease;
169
-
170
- &::after {
171
- content: "";
172
- position: absolute;
173
- opacity: 0;
174
- transition: opacity 0.2s ease;
175
- }
176
- }
177
-
178
- &.checkbox {
179
- .custom-mark {
180
- border-radius: 4px;
181
-
182
- &::after {
183
- left: 6px;
184
- top: 2px;
185
- width: 5px;
186
- height: 10px;
187
- border: solid #fff;
188
- border-width: 0 2px 2px 0;
189
- transform: rotate(45deg);
190
- }
191
- }
192
-
193
- input:checked + .custom-mark {
194
- background-color: var(--_primary-400);
195
- border-color: var(--_primary-400);
196
-
197
- &::after {
198
- opacity: 1;
199
- }
200
- }
201
- }
202
-
203
- &.radio {
204
- .custom-mark {
205
- border-radius: 50%;
206
-
207
- &::after {
208
- top: 50%;
209
- left: 50%;
210
- width: 10px;
211
- height: 10px;
212
- background-color: var(--_base-white);
213
- border-radius: 50%;
214
- transform: translate(-50%, -50%);
215
- }
216
- }
217
-
218
- input:checked + .custom-mark {
219
- background-color: var(--_primary-400);
220
- border-color: var(--_primary-400);
221
-
222
- &::after {
223
- opacity: 1;
224
- }
225
- }
226
- }
227
- }
228
- .label_styles {
229
- display: block;
230
- margin-bottom: 4px;
231
- }
232
- &:has(input[type="checkbox"]) {
233
- display: flex;
234
- flex-direction: column;
235
- // align-items: center;
236
- // gap: 8px;
237
- }
238
- input[type="checkbox"] {
239
- width: 20px !important;
240
- height: 20px !important;
241
- }
242
-
243
- .react-international-phone-country-selector-button {
244
- height: 38px;
245
- padding-inline: 4px;
246
- }
247
- }
248
- .fb_file_upload {
249
- label {
250
- display: block;
251
- margin-bottom: 6px;
252
- }
253
- }
254
- .fb_btn {
255
- height: 38px;
256
- text-align: center;
257
- border-radius: 6px;
258
- background-color: var(--_primary-400);
259
- color: var(--_base-white);
260
- width: 100%;
261
- padding-inline: 16px;
262
- cursor: pointer;
263
- transition: opacity 0.2s ease;
264
-
265
- &:disabled,
266
- &[disabled] {
267
- background-color: var(--_primary-400);
268
- color: var(--_base-white);
269
- cursor: not-allowed;
270
- opacity: 0.6;
271
- }
272
- }
273
-
274
- .react-datepicker__month {
275
- background-color: var(--_base-white);
276
- margin: 0px;
277
- border: 1px solid var(--_gray-200);
278
- border-top: 0;
279
- margin: 0px !important;
280
- }
281
-
282
- .react-datepicker__header:not(.react-datepicker__header--has-time-select) {
283
- padding: 25px 10px 15px 20px;
284
- }
285
- .react-datepicker__day-names {
286
- padding-top: 5px;
287
- }
288
- .react-datepicker__header {
289
- padding: 25px 10px 15px 20px;
290
- }
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+ @use "./fb-dropdown.scss";
4
+ @use "./phone-input.scss";
5
+ /**************************************************************
6
+ * Preview Form Styles
7
+ **************************************************************/
8
+
9
+ .new-form-template {
10
+ display: flex;
11
+ flex-direction: column;
12
+ align-items: center;
13
+ justify-content: center;
14
+ padding: 20px;
15
+ height: 100%;
16
+ width: 100%;
17
+ border-radius: 5px;
18
+ text-align: center;
19
+ background-color: #ffffff;
20
+
21
+ .icon-container {
22
+ margin-bottom: 10px;
23
+
24
+ svg {
25
+ width: 50px;
26
+ height: 50px;
27
+ color: #666;
28
+ }
29
+ }
30
+
31
+ .title {
32
+ font-size: 1.2em;
33
+ color: #8b4513;
34
+ margin-bottom: 10px;
35
+ }
36
+
37
+ .description {
38
+ font-size: 0.9em;
39
+ color: #777;
40
+ line-height: 1.4;
41
+ }
42
+ .spinner {
43
+ animation: spin 1s linear infinite;
44
+ }
45
+
46
+ @keyframes spin {
47
+ 0% {
48
+ transform: rotate(0deg);
49
+ }
50
+ 100% {
51
+ transform: rotate(360deg);
52
+ }
53
+ }
54
+ }
55
+
56
+ .fb_field {
57
+ width: 100%;
58
+ .cnf_checkbox {
59
+ display: flex;
60
+ gap: 8px;
61
+ }
62
+
63
+ .input__error {
64
+ border: 1px solid var(--_error-300) !important;
65
+
66
+ &:focus {
67
+ outline: 2px solid var(--_error-100) !important;
68
+ }
69
+
70
+ box-shadow: 0px 0px 0px 4px var(--_error-100);
71
+ }
72
+
73
+ .error_styles {
74
+ span {
75
+ svg {
76
+ width: 14px;
77
+ height: 14px;
78
+ path {
79
+ stroke: var(--_error-500);
80
+ }
81
+ }
82
+ }
83
+ }
84
+
85
+ .toggle_input {
86
+ display: flex;
87
+ svg {
88
+ width: 18px;
89
+ height: 18px;
90
+ }
91
+ }
92
+ .editor {
93
+ padding-inline: 0px !important;
94
+ .fr-toolbar.fr-top {
95
+ border-top-left-radius: 6px;
96
+ border-top-right-radius: 6px;
97
+ }
98
+ .fr-second-toolbar {
99
+ border-bottom-left-radius: 6px;
100
+ border-bottom-right-radius: 6px;
101
+ }
102
+ }
103
+
104
+ .date_picker_container {
105
+ position: relative;
106
+
107
+ .svg_icon {
108
+ position: absolute;
109
+ left: 8px;
110
+ top: 9px;
111
+ z-index: 1;
112
+ display: flex;
113
+ }
114
+
115
+ .react-datepicker-wrapper {
116
+ display: block;
117
+
118
+ .react-datepicker__input-container {
119
+ input {
120
+ padding-left: 32px !important;
121
+ }
122
+ }
123
+ }
124
+ }
125
+
126
+ .react-datepicker-wrapper {
127
+ display: block;
128
+ }
129
+ input:not([type="checkbox"][type="radio"]),
130
+ select {
131
+ border: 1px solid var(--_primary-300);
132
+ border-radius: 6px;
133
+ padding-inline: 12px;
134
+ width: 100%;
135
+ height: 38px;
136
+ &:focus {
137
+ outline: 2px solid var(--_primary-100);
138
+ }
139
+ }
140
+ input[type="tel"] {
141
+ border-top-left-radius: 0px !important;
142
+ border-bottom-left-radius: 0px !important;
143
+ border-left: 0 !important;
144
+ background-color: var(--_base-white);
145
+ height: 38px;
146
+ }
147
+ textarea {
148
+ width: 100%;
149
+ resize: vertical;
150
+ border-radius: 6px;
151
+ background-color: var(--_base-white);
152
+ border: 1px solid var(--_gray-300);
153
+ padding: 12px;
154
+ }
155
+ .error_styles {
156
+ min-height: 20px;
157
+ }
158
+ .label_with_radio {
159
+ display: flex;
160
+ align-items: center;
161
+ gap: 4px;
162
+ label {
163
+ margin-right: 12px;
164
+ display: flex;
165
+ align-items: center;
166
+ gap: 12px;
167
+ text-wrap: nowrap;
168
+ }
169
+ }
170
+
171
+ .custom-input {
172
+ display: inline-flex;
173
+ align-items: center;
174
+ gap: 0.5rem;
175
+ font-size: 16px;
176
+ cursor: pointer;
177
+ user-select: none;
178
+ flex-wrap: wrap;
179
+
180
+ input {
181
+ display: none;
182
+ }
183
+
184
+ .custom-mark {
185
+ width: 20px;
186
+ height: 20px;
187
+ background-color: var(--_base-white);
188
+ border: 2px solid var(--_gray-400);
189
+ margin: 0px 4px;
190
+ position: relative;
191
+ transition: all 0.2s ease;
192
+
193
+ &::after {
194
+ content: "";
195
+ position: absolute;
196
+ opacity: 0;
197
+ transition: opacity 0.2s ease;
198
+ }
199
+ }
200
+
201
+ &.checkbox {
202
+ .custom-mark {
203
+ border-radius: 4px;
204
+
205
+ &::after {
206
+ left: 6px;
207
+ top: 2px;
208
+ width: 5px;
209
+ height: 10px;
210
+ border: solid #fff;
211
+ border-width: 0 2px 2px 0;
212
+ transform: rotate(45deg);
213
+ }
214
+ }
215
+
216
+ input:checked + .custom-mark {
217
+ background-color: var(--_primary-400);
218
+ border-color: var(--_primary-400);
219
+
220
+ &::after {
221
+ opacity: 1;
222
+ }
223
+ }
224
+ }
225
+
226
+ &.radio {
227
+ .custom-mark {
228
+ border-radius: 50%;
229
+
230
+ &::after {
231
+ top: 50%;
232
+ left: 50%;
233
+ width: 10px;
234
+ height: 10px;
235
+ background-color: var(--_base-white);
236
+ border-radius: 50%;
237
+ transform: translate(-50%, -50%);
238
+ }
239
+ }
240
+
241
+ input:checked + .custom-mark {
242
+ background-color: var(--_primary-400);
243
+ border-color: var(--_primary-400);
244
+
245
+ &::after {
246
+ opacity: 1;
247
+ }
248
+ }
249
+ }
250
+ }
251
+ .label_styles {
252
+ display: block;
253
+ margin-bottom: 4px;
254
+ }
255
+ &:has(input[type="checkbox"]) {
256
+ display: flex;
257
+ flex-direction: column;
258
+ // align-items: center;
259
+ // gap: 8px;
260
+ }
261
+ input[type="checkbox"] {
262
+ width: 20px !important;
263
+ height: 20px !important;
264
+ }
265
+ }
266
+ .fb_file_upload {
267
+ label {
268
+ display: block;
269
+ margin-bottom: 6px;
270
+ }
271
+ }
272
+ .fb_btn {
273
+ height: 38px;
274
+ text-align: center;
275
+ border-radius: 6px;
276
+ background-color: var(--_primary-400);
277
+ color: var(--_base-white);
278
+ width: 100%;
279
+ padding-inline: 16px;
280
+ cursor: pointer;
281
+ transition: opacity 0.2s ease;
282
+
283
+ &:disabled,
284
+ &[disabled] {
285
+ background-color: var(--_primary-400);
286
+ color: var(--_base-white);
287
+ cursor: not-allowed;
288
+ opacity: 0.6;
289
+ }
290
+ }
291
+
292
+ .react-datepicker-popper {
293
+ z-index: 9999 !important;
294
+ }
295
+
296
+ .react-grid-item:has(.react-datepicker-popper) {
297
+ z-index: 2 !important;
298
+ }
299
+
300
+ .react-grid-item:has(.sc-phone-dropdown) {
301
+ z-index: 2 !important;
302
+ }
303
+
304
+ .react-datepicker__month {
305
+ background-color: var(--_base-white);
306
+ margin: 0px;
307
+ border: 1px solid var(--_gray-200);
308
+ border-top: 0;
309
+ margin: 0px !important;
310
+ }
311
+
312
+ .react-datepicker__header:not(.react-datepicker__header--has-time-select) {
313
+ // padding: 25px 10px 15px 20px;
314
+ // display: flex;
315
+ // justify-content: center;
316
+ // align-items: center;
317
+ // height: 67px;
318
+ }
319
+ .react-datepicker__day-names {
320
+ padding-top: 5px;
321
+ }
322
+ .react-datepicker__header {
323
+ // padding: 25px 10px 15px 20px;
324
+ display: flex;
325
+ justify-content: center;
326
+ align-items: center;
327
+ height: 67px;
328
+ }
@@ -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;