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

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.
@@ -100,6 +100,28 @@
100
100
  }
101
101
  }
102
102
 
103
+ .date_picker_container {
104
+ position: relative;
105
+
106
+ .svg_icon {
107
+ position: absolute;
108
+ left: 8px;
109
+ top: 9px;
110
+ z-index: 1;
111
+ display: flex;
112
+ }
113
+
114
+ .react-datepicker-wrapper {
115
+ display: block;
116
+
117
+ .react-datepicker__input-container {
118
+ input {
119
+ padding-left: 32px !important;
120
+ }
121
+ }
122
+ }
123
+ }
124
+
103
125
  .react-datepicker-wrapper {
104
126
  display: block;
105
127
  }
@@ -240,9 +262,170 @@
240
262
  height: 20px !important;
241
263
  }
242
264
 
243
- .react-international-phone-country-selector-button {
244
- height: 38px;
245
- padding-inline: 4px;
265
+ .sc-phone-container {
266
+ position: relative;
267
+ width: 100%;
268
+
269
+ .sc-phone-input-wrapper {
270
+ display: flex;
271
+ align-items: center;
272
+ border: 1px solid var(--_primary-300);
273
+ border-radius: 6px;
274
+ height: 38px;
275
+ background-color: var(--_base-white);
276
+ overflow: hidden;
277
+
278
+ &:focus-within {
279
+ outline: 2px solid var(--_primary-100);
280
+ }
281
+ }
282
+
283
+ .sc-phone-country-btn {
284
+ display: flex;
285
+ align-items: center;
286
+ gap: 4px;
287
+ padding: 0 8px;
288
+ border: none;
289
+ background: transparent;
290
+ cursor: pointer;
291
+ height: 100%;
292
+ border-right: 1px solid var(--_primary-300);
293
+ flex-shrink: 0;
294
+
295
+ &:disabled {
296
+ cursor: not-allowed;
297
+ opacity: 0.6;
298
+ }
299
+ }
300
+
301
+ .sc-phone-flag {
302
+ width: 24px;
303
+ height: 24px;
304
+ min-width: 24px;
305
+ min-height: 24px;
306
+ object-fit: cover;
307
+ border-radius: 50%;
308
+ flex-shrink: 0;
309
+ }
310
+
311
+ .sc-phone-chevron {
312
+ font-size: 10px;
313
+ color: var(--_gray-500, #667085);
314
+ line-height: 1;
315
+ }
316
+
317
+ .sc-phone-dial-code {
318
+ padding: 0 4px 0 8px;
319
+ font-size: 14px;
320
+ color: var(--_gray-700, #344054);
321
+ white-space: nowrap;
322
+ flex-shrink: 0;
323
+ }
324
+
325
+ input[type="tel"].sc-phone-input {
326
+ flex: 1;
327
+ border: none !important;
328
+ outline: none !important;
329
+ box-shadow: none !important;
330
+ border-radius: 0 !important;
331
+ height: 100%;
332
+ font-size: 14px;
333
+ padding: 0 12px 0 0 !important;
334
+ background: transparent !important;
335
+ min-width: 0;
336
+
337
+ &:focus {
338
+ outline: none !important;
339
+ box-shadow: none !important;
340
+ }
341
+ }
342
+
343
+ .sc-phone-dropdown {
344
+ position: absolute;
345
+ top: calc(100% + 4px);
346
+ left: 0;
347
+ width: 240px;
348
+ background: var(--_base-white, #fff);
349
+ border: 1px solid var(--_primary-300);
350
+ border-radius: 8px;
351
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
352
+ z-index: 9999;
353
+ overflow: hidden;
354
+ }
355
+
356
+ .sc-phone-search-wrapper {
357
+ position: relative;
358
+ padding: 8px;
359
+ border-bottom: 1px solid var(--_gray-200, #e4e7ec);
360
+ }
361
+
362
+ input[type="text"].sc-phone-search {
363
+ width: 100%;
364
+ padding: 6px 30px 6px 10px !important;
365
+ border: 1px solid var(--_gray-300, #d0d5dd) !important;
366
+ border-radius: 6px !important;
367
+ font-size: 14px;
368
+ outline: none !important;
369
+ box-sizing: border-box;
370
+ height: auto !important;
371
+
372
+ &:focus {
373
+ border-color: var(--_primary-300) !important;
374
+ outline: none !important;
375
+ }
376
+ }
377
+
378
+ .sc-phone-search-icon {
379
+ position: absolute;
380
+ right: 16px;
381
+ top: 50%;
382
+ transform: translateY(-50%);
383
+ pointer-events: none;
384
+ display: flex;
385
+ }
386
+
387
+ .sc-phone-dropdown-list {
388
+ max-height: 200px;
389
+ overflow-y: auto;
390
+ }
391
+
392
+ .sc-phone-dropdown-item {
393
+ display: flex;
394
+ align-items: center;
395
+ gap: 8px;
396
+ padding: 8px 12px;
397
+ cursor: pointer;
398
+ font-size: 14px;
399
+ color: var(--_gray-700, #344054);
400
+
401
+ &:hover {
402
+ background-color: var(--_gray-50, #f9fafb);
403
+ }
404
+
405
+ &.selected {
406
+ background-color: var(--_primary-50, #f0f4ff);
407
+ }
408
+ }
409
+
410
+ .sc-phone-country-name {
411
+ flex: 1;
412
+ white-space: nowrap;
413
+ overflow: hidden;
414
+ text-overflow: ellipsis;
415
+ }
416
+
417
+ .sc-phone-check {
418
+ color: var(--_primary-400);
419
+ font-size: 16px;
420
+ flex-shrink: 0;
421
+ }
422
+
423
+ .sc-phone-no-results {
424
+ padding: 12px;
425
+ text-align: center;
426
+ color: var(--_gray-500, #667085);
427
+ font-size: 14px;
428
+ }
246
429
  }
247
430
  }
248
431
  .fb_file_upload {
@@ -271,6 +454,14 @@
271
454
  }
272
455
  }
273
456
 
457
+ .react-datepicker-popper {
458
+ z-index: 9999 !important;
459
+ }
460
+
461
+ .react-grid-item:has(.react-datepicker-popper) {
462
+ z-index: 2 !important;
463
+ }
464
+
274
465
  .react-datepicker__month {
275
466
  background-color: var(--_base-white);
276
467
  margin: 0px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.4.78",
3
+ "version": "0.4.79",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {