@sc-360-v2/storefront-cms-library 0.2.57 → 0.2.58

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.
@@ -0,0 +1,125 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ $ie: '[contenteditable="true"]';
5
+ $re: '[data-cms-tool="cms-element-resizer"]';
6
+ $dblclk: '[data-cms-tt-ee-dbl-clkd="true"]';
7
+
8
+ [data-div-type="element"] {
9
+ &[data-element-type="text"] {
10
+ // width: var(--_lt-wh);
11
+ // height: var(--_lt-ht);
12
+ // margin: var(--_lt-mn);
13
+ // padding: var(--_lt-pg);
14
+ // width: var(--_ctm-lt-wh, var(--_tst-lt-wh));
15
+ // width: var(--_sf-nw-wh, var(--_tst-lt-wh));
16
+ width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
17
+ margin: var(--_ctm-lt-mn, --_tst-lt-mn);
18
+ // min-height: var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht)));
19
+ // height: ;
20
+ // aspect-ratio: 1 / var(--_sf-aspect-ratio);
21
+ // --_aspect-ratio: calc(
22
+ // 1 * (var(--_ctm-lt-ht, var(--_tst-lt-ht)) / var(--_ctm-lt-wh, var(--_tst-lt-wh)))
23
+ // );
24
+
25
+ [data-div-type="wrapper__layer__v2"] {
26
+ position: var(--_p-absolute);
27
+ inset: 0 0 0 0;
28
+ border: 1px solid var(--_accent-color-2-500);
29
+ z-index: 2;
30
+ pointer-events: none;
31
+ visibility: var(--_sf-vt-bm-zz, hidden);
32
+ opacity: var(--_sf-op-bm-zz, 0);
33
+ }
34
+
35
+ &#{$dblclk} {
36
+ --_sf-op-bm-zz: 1;
37
+ --_sf-vt-bm-zz: visible;
38
+ #{$re} {
39
+ display: none !important;
40
+ }
41
+ }
42
+
43
+ [contentEditable="true"] {
44
+ white-space: normal;
45
+ unicode-bidi: plaintext;
46
+ }
47
+
48
+ & > .wrapper {
49
+ width: 100%;
50
+ min-height: var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht)));
51
+ // min-height: 50px;
52
+ background-color: var(--_ctm-mob-dn-bd-cr, var(--_ctm-tab-dn-bd-cr, var(--_ctm-dn-bd-cr)));
53
+ padding: var(--_ctm-lt-pg, var(--_tst-lt-pg));
54
+ border-color: var(--_ctm-dn-br-cr, var(--_tst-dn-br-cr));
55
+ border-style: var(--_ctm-dn-br-se, var(--_tst-dn-br-se));
56
+ border-width: var(--_ctm-dn-br-wh, var(--_tst-dn-br-wh));
57
+ border-radius: var(--_ctm-dn-br-rs, var(--_tst-dn-br-rs));
58
+ box-shadow: var(
59
+ --_show-shadow,
60
+ var(--_ctm-dn-sw-ae, var(--_tst-dn-sw-ae)) var(--_ctm-dn-sw-br, var(--_tst-dn-sw-br))
61
+ var(--_ctm-dn-sw-sd, var(--_tst-dn-sw-sd)) var(--_ctm-dn-sw-cr, var(--_tst-dn-sw-cr))
62
+ );
63
+ // height: 100%;
64
+
65
+ #{$ie} {
66
+ &:focus {
67
+ outline: none;
68
+ border: none;
69
+ }
70
+ }
71
+ }
72
+ &[data-show-shadow="false"] {
73
+ --_show-shadow: none;
74
+ }
75
+
76
+ .text-element {
77
+ // background-color: var(--_ctm-mob-dn-bd-cr, var(--_ctm-tab-dn-bd-cr, var(--_ctm-dn-bd-cr)));
78
+ // padding: var(--_ctm-lt-pg, var(--_tst-lt-pg));
79
+ // border-color: var(--_ctm-dn-br-cr, var(--_tst-dn-br-cr));
80
+ // border-style: var(--_ctm-dn-br-se, var(--_tst-dn-br-se));
81
+ // border-width: var(--_ctm-dn-br-wh, var(--_tst-dn-br-wh));
82
+ // border-radius: var(--_ctm-dn-br-rs, var(--_tst-dn-br-rs));
83
+ // box-shadow: var(
84
+ // --_show-shadow,
85
+ // var(--_ctm-dn-sw-ae, var(--_tst-dn-sw-ae)) var(--_ctm-dn-sw-br, var(--_tst-dn-sw-br))
86
+ // var(--_ctm-dn-sw-sd, var(--_tst-dn-sw-sd)) var(--_ctm-dn-sw-cr, var(--_tst-dn-sw-cr))
87
+ // );
88
+ display: flex;
89
+ flex-direction: column;
90
+ --_sf-gp: 16px;
91
+ --_sf-cd-gp: calc(var(--_sf-gp) * 0.5);
92
+ row-gap: var(--_sf-gp);
93
+ width: 100%;
94
+ // height: 100%;
95
+
96
+ // transform: scale(var(--_ctm-dn-zm-ie));
97
+ scale: var(--_ctm-dn-zm-ie);
98
+ &[data-flip-x="true"] {
99
+ transform: scaleX(-1);
100
+ }
101
+ &[data-flip-y="true"] {
102
+ transform: scaleY(-1);
103
+ }
104
+
105
+ .et-tt {
106
+ &,
107
+ * {
108
+ color: var(--_ctm-mob-dn-cr, var(--_ctm-tab-dn-cr, var(--_ctm-dn-cr)));
109
+ font-family: var(--_ctm-mob-dn-ft-fy, var(--_ctm-tab-dn-ft-fy, var(--_ctm-dn-ft-fy))),
110
+ sans-serif;
111
+ font-size: var(--_ctm-mob-dn-ft-se, var(--_ctm-tab-dn-ft-se, var(--_ctm-dn-ft-se)));
112
+ font-weight: var(--_ctm-mob-dn-ft-wt, var(--_ctm-tab-dn-ft-wt, var(--_ctm-dn-ft-wt)));
113
+ font-style: var(
114
+ --_ctm-mob-dn-ft-se-ic,
115
+ var(--_ctm-tab-dn-ft-se-ic, var(--_ctm-dn-ft-se-ic))
116
+ );
117
+ text-align: var(--_ctm-mob-dn-tt-an, var(--_ctm-tab-dn-tt-an, var(--_ctm-dn-tt-an)));
118
+ letter-spacing: var(--_ctm-mob-dn-lr-sg, var(--_ctm-tab-dn-lr-sg, var(--_ctm-dn-lr-sg)));
119
+ line-height: var(--_ctm-mob-dn-le-ht, var(--_ctm-tab-dn-le-ht, var(--_ctm-dn-le-ht)));
120
+ text-decoration: var(--_ctm-mob-dn-ue, var(--_ctm-tab-dn-ue, var(--_ctm-dn-ue)));
121
+ }
122
+ }
123
+ }
124
+ }
125
+ }
@@ -1,6 +1,10 @@
1
1
  @use "sass:map";
2
2
  @use "sass:list";
3
3
 
4
+ $ie: '[contenteditable="true"]';
5
+ $re: '[data-cms-tool="cms-element-resizer"]';
6
+ $dblclk: '[data-cms-tt-ee-dbl-clkd="true"]';
7
+
4
8
  [data-div-type="element"] {
5
9
  &[data-element-type="text"] {
6
10
  // width: var(--_lt-wh);
@@ -11,15 +15,39 @@
11
15
  // width: var(--_sf-nw-wh, var(--_tst-lt-wh));
12
16
  width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
13
17
  margin: var(--_ctm-lt-mn, --_tst-lt-mn);
14
- min-height: var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht)));
18
+ // min-height: var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht)));
15
19
  // height: ;
16
20
  // aspect-ratio: 1 / var(--_sf-aspect-ratio);
17
21
  // --_aspect-ratio: calc(
18
22
  // 1 * (var(--_ctm-lt-ht, var(--_tst-lt-ht)) / var(--_ctm-lt-wh, var(--_tst-lt-wh)))
19
23
  // );
20
24
 
25
+ [data-div-type="wrapper__layer"] {
26
+ position: var(--_p-absolute);
27
+ inset: 0 0 0 0;
28
+ border: 1px solid var(--_accent-color-2-500);
29
+ z-index: 2;
30
+ pointer-events: none;
31
+ visibility: var(--_sf-vt-bm-zz, hidden);
32
+ opacity: var(--_sf-op-bm-zz, 0);
33
+ }
34
+
35
+ &#{$dblclk} {
36
+ --_sf-op-bm-zz: 1;
37
+ --_sf-vt-bm-zz: visible;
38
+ #{$re} {
39
+ display: none !important;
40
+ }
41
+ }
42
+
43
+ [contentEditable="true"] {
44
+ white-space: normal;
45
+ unicode-bidi: plaintext;
46
+ }
47
+
21
48
  & > .wrapper {
22
49
  width: 100%;
50
+ min-height: var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht)));
23
51
  // min-height: 50px;
24
52
  background-color: var(--_ctm-mob-dn-bd-cr, var(--_ctm-tab-dn-bd-cr, var(--_ctm-dn-bd-cr)));
25
53
  padding: var(--_ctm-lt-pg, var(--_tst-lt-pg));
@@ -33,6 +61,13 @@
33
61
  var(--_ctm-dn-sw-sd, var(--_tst-dn-sw-sd)) var(--_ctm-dn-sw-cr, var(--_tst-dn-sw-cr))
34
62
  );
35
63
  // height: 100%;
64
+
65
+ #{$ie} {
66
+ &:focus {
67
+ outline: none;
68
+ border: none;
69
+ }
70
+ }
36
71
  }
37
72
  &[data-show-shadow="false"] {
38
73
  --_show-shadow: none;
@@ -134,6 +134,11 @@ export declare const getDefaultData: () => {
134
134
  };
135
135
  shape: {
136
136
  value: string;
137
+ customIcon: {
138
+ isCustomIcon: boolean;
139
+ url: string;
140
+ name: string;
141
+ };
137
142
  property: string;
138
143
  propertyType: CMSElementEditTypes;
139
144
  };
@@ -123,6 +123,7 @@ export declare const getDefaultData: () => {
123
123
  videoFile: {
124
124
  value: string;
125
125
  propertyType: CMSElementEditTypes;
126
+ property: string;
126
127
  };
127
128
  showVideoTitle: {
128
129
  value: boolean;
@@ -8,7 +8,7 @@
8
8
  // margin: var(--_lt-mn);
9
9
  // padding: var(--_lt-pg);
10
10
  // width: var(--_ctm-lt-wh, var(--_tst-lt-wh));
11
- width: var(--_sf-nw-wh, var(--_tst-lt-wh));
11
+ // width: var(--_sf-nw-wh, var(--_tst-lt-wh));
12
12
  margin: var(--_ctm-lt-mn, --_tst-lt-mn);
13
13
  // height: var(--_ctm-lt-ht, var(--_tst-lt-ht));
14
14
  // height: ;
@@ -1,14 +1,17 @@
1
1
  @use "sass:map";
2
2
  @use "sass:list";
3
3
  // @use "./functions.scss";
4
+ $minWidth: 70px;
5
+
4
6
  [data-div-type="element"] {
5
7
  &[data-element-type="variantPicker"] {
8
+ --_ctm-mob-var-lt-mn-cn-wh: 70px;
6
9
  // width: var(--_lt-wh);
7
10
  // height: var(--_lt-ht);
8
11
  // margin: var(--_lt-mn);
9
12
  // padding: var(--_lt-pg);
10
13
  // width: var(--_ctm-lt-wh, var(--_tst-lt-wh));
11
- width: var(--_sf-nw-wh, var(--_tst-lt-wh));
14
+ // width: var(--_sf-nw-wh, var(--_tst-lt-wh));
12
15
  margin: var(--_ctm-lt-mn, --_tst-lt-mn);
13
16
  // height: var(--_ctm-lt-ht, var(--_tst-lt-ht));
14
17
  // height: ;
@@ -16,6 +19,7 @@
16
19
  // --_aspect-ratio: calc(
17
20
  // 1 * (var(--_ctm-lt-ht, var(--_tst-lt-ht)) / var(--_ctm-lt-wh, var(--_tst-lt-wh)))
18
21
  // );
22
+ min-width: #{$minWidth} !important;
19
23
 
20
24
  & > .wrapper {
21
25
  width: 100%;
@@ -60,6 +64,7 @@
60
64
  flex-wrap: wrap;
61
65
  flex-direction: row;
62
66
  gap: var(--_ctm-lt-sh-te-dy-se-im-sg);
67
+
63
68
  &[data-swatch-dispaly="Vertically"] {
64
69
  flex-direction: column;
65
70
  }
@@ -243,6 +248,20 @@
243
248
  );
244
249
  border-radius: var(--_ctm-dn-sh-on-ve-se-sd-se-br-rs);
245
250
  }
251
+ &.disabled {
252
+ cursor: not-allowed;
253
+ opacity: 0.5;
254
+ position: relative;
255
+ &::after {
256
+ content: "X";
257
+ position: absolute;
258
+ top: -5px;
259
+ left: 50%;
260
+ transform: translateX(-50%);
261
+ font-size: 30px;
262
+ color: #f55d42;
263
+ }
264
+ }
246
265
  }
247
266
  }
248
267
  }
@@ -283,7 +302,7 @@
283
302
  }
284
303
  .select__group__item {
285
304
  transition: color 0.3s ease;
286
- padding: 8px 12px;
305
+ padding: 5px 12px;
287
306
  border-radius: 6px;
288
307
  border: 1px solid var(--_gray-200);
289
308
  font-size: 16px;
@@ -380,6 +399,20 @@
380
399
  border: 0px;
381
400
  border-bottom: 2px solid var(--_primary-400);
382
401
  }
402
+ &.disabled {
403
+ cursor: not-allowed;
404
+ opacity: 0.5;
405
+ position: relative;
406
+ &::after {
407
+ content: "X";
408
+ position: absolute;
409
+ top: -5px;
410
+ left: 50%;
411
+ transform: translateX(-50%);
412
+ font-size: 30px;
413
+ color: #f55d42;
414
+ }
415
+ }
383
416
  }
384
417
  }
385
418
  }
@@ -460,6 +493,10 @@
460
493
  background-color: var(--_primary-25);
461
494
  color: var(--_primary-400);
462
495
  }
496
+ &.disabled {
497
+ cursor: not-allowed;
498
+ opacity: 0.5;
499
+ }
463
500
  }
464
501
  }
465
502
  }
@@ -480,8 +517,20 @@
480
517
  }
481
518
  // Quantity Fields
482
519
  .field__group {
483
- display: flex;
484
- flex-wrap: wrap;
520
+ // display: flex;
521
+ // flex-wrap: wrap;
522
+ // gap: 8px;
523
+ display: grid;
524
+ grid-template-columns: repeat(
525
+ auto-fit,
526
+ minmax(
527
+ var(
528
+ --_ctm-mob-var-lt-mn-cn-wh,
529
+ var(--_ctm-tab-var-lt-mn-cn-wh, var(--_ctm-var-lt-mn-cn-wh))
530
+ ),
531
+ var(--_ctm-mob-var-lt-mn-cn-wh)
532
+ )
533
+ );
485
534
  gap: 8px;
486
535
  .field__group__item {
487
536
  font-size: 16px;
@@ -491,15 +540,21 @@
491
540
  justify-content: center;
492
541
  gap: 8px;
493
542
  input[type="number"] {
494
- width: 70px !important;
495
- border: 1px solid var(--_gray-300) !important;
543
+ // width: 70px !important;
544
+ width: 100%;
545
+ border: 1px solid var(--_gray-300);
496
546
  padding-inline: 10px;
497
547
  border-radius: 4px;
498
548
  text-align: center;
549
+ height: 40px;
499
550
  &:focus-within {
500
- border: 1px solid var(--_primary-200) !important;
551
+ border: 1px solid var(--_primary-200);
501
552
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);
502
553
  }
554
+ &:disabled {
555
+ cursor: not-allowed;
556
+ opacity: 0.5;
557
+ }
503
558
  }
504
559
  }
505
560
  }
@@ -660,6 +715,7 @@
660
715
  background-color: var(--_gray-50);
661
716
  font-weight: 600;
662
717
  color: var(--_gray-600);
718
+ word-break: break-word;
663
719
  }
664
720
  }
665
721
  tbody {
@@ -680,6 +736,7 @@
680
736
  padding-inline: 10px;
681
737
  text-align: center;
682
738
  border-radius: 6px;
739
+ height: 40px;
683
740
  }
684
741
  }
685
742
  }
@@ -8,7 +8,7 @@
8
8
  // margin: var(--_lt-mn);
9
9
  // padding: var(--_lt-pg);
10
10
  // width: var(--_ctm-lt-wh, var(--_tst-lt-wh));
11
- width: var(--_sf-nw-wh, var(--_tst-lt-wh));
11
+ // width: var(--_sf-nw-wh, var(--_tst-lt-wh));
12
12
  margin: var(--_ctm-lt-mn, --_tst-lt-mn);
13
13
  // height: var(--_ctm-lt-ht, var(--_tst-lt-ht));
14
14
  // height: ;
package/dist/widget.scss CHANGED
@@ -15,7 +15,8 @@
15
15
  @use "./code-temp.scss";
16
16
  @use "./static-text.scss";
17
17
  @use "./embed-temp.scss";
18
- @use "./text-temp.scss";
18
+ // @use "./text-temp.scss";
19
+ @use "./text-temp-v2.scss";
19
20
  @use "./image-temp.scss";
20
21
  @use "./gallery-slider-temp.scss";
21
22
  @use "./scroll.scss";
@@ -65,3 +66,6 @@
65
66
  @use "./layouter.scss";
66
67
  @use "./layouter-item.scss";
67
68
  @use "./categoryDetails.scss";
69
+ @use "./contact-us.scss";
70
+ @use "./breadcrumbs.scss";
71
+ @use "./icon-library.scss";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.2.57",
3
+ "version": "0.2.58",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {