@sc-360-v2/storefront-cms-library 0.1.94 → 0.1.96

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.
Files changed (49) hide show
  1. package/dist/amount-estimator.scss +444 -4
  2. package/dist/builder.js +1 -1
  3. package/dist/bulk-variant-picker.scss +629 -19
  4. package/dist/container.scss +9 -0
  5. package/dist/editor-core.scss +97 -8
  6. package/dist/functions.js +1 -1
  7. package/dist/gallery-slider-temp.scss +463 -348
  8. package/dist/grid.scss +20 -2
  9. package/dist/image-temp.scss +1 -1
  10. package/dist/menu.scss +89 -0
  11. package/dist/payment-methods.scss +175 -11
  12. package/dist/pickup-locations.scss +443 -11
  13. package/dist/product-actions.scss +905 -77
  14. package/dist/product-basic-elements.scss +37 -6
  15. package/dist/product-highlights.scss +114 -4
  16. package/dist/product-image.scss +472 -339
  17. package/dist/product-inventory.scss +559 -14
  18. package/dist/product-options.scss +156 -0
  19. package/dist/product-price.scss +695 -289
  20. package/dist/product-promotions.scss +1118 -17
  21. package/dist/product.scss +32 -172
  22. package/dist/productDetails.scss +28 -0
  23. package/dist/quantity-selector.scss +58 -4
  24. package/dist/repeater-item.scss +22 -0
  25. package/dist/repeater.scss +113 -0
  26. package/dist/section.scss +16 -0
  27. package/dist/shipping-estimator.scss +13 -5
  28. package/dist/stack.scss +7 -1
  29. package/dist/store-locations.scss +442 -14
  30. package/dist/tooltip.scss +276 -0
  31. package/dist/types/builder/enums/index.d.ts +9 -2
  32. package/dist/types/builder/tools/element-edit/amountEstimator.d.ts +2 -1
  33. package/dist/types/builder/tools/element-edit/index.d.ts +3 -1
  34. package/dist/types/builder/tools/element-edit/productActions.d.ts +1 -0
  35. package/dist/types/builder/tools/element-edit/productDetails.d.ts +6 -31
  36. package/dist/types/builder/tools/element-edit/productDetailsOLd.d.ts +42 -0
  37. package/dist/types/builder/tools/element-edit/productOptions.d.ts +59 -0
  38. package/dist/types/builder/tools/element-edit/repeater.d.ts +2 -1
  39. package/dist/types/helper/helper-functions.d.ts +1 -0
  40. package/dist/uom-selector.scss +501 -4
  41. package/dist/variable.scss +9 -1
  42. package/dist/variant-picker.scss +672 -19
  43. package/dist/volume-pricing.scss +473 -19
  44. package/dist/widget.scss +25 -3
  45. package/package.json +1 -1
  46. package/dist/App.scss +0 -31
  47. package/dist/mixin.scss +0 -9
  48. package/dist/modal.module.scss +0 -121
  49. package/dist/range-slider.module.scss +0 -85
package/dist/grid.scss CHANGED
@@ -1,3 +1,5 @@
1
+ $activeElementSelector: "[data-has-clicked='true']";
2
+ $elementSelector: "[data-div-type='element']";
1
3
  [data-div-type="grid"] {
2
4
  position: var(--_p-relative);
3
5
  box-shadow: var(
@@ -13,13 +15,29 @@
13
15
  &[data-show-border="false"] {
14
16
  --_hide-grid-border: none;
15
17
  }
18
+
19
+ &:is(#{$activeElementSelector}) {
20
+ &:has(#{$activeElementSelector}#{$elementSelector}) {
21
+ & > div {
22
+ &[data-type="wrapper-layer"] {
23
+ --_sf-gri-wl-vt: visible;
24
+ --_sf-gri-wl-op: 1;
25
+ --_sf-gri-wl-dp: block;
26
+ --_sf-gri-wl-bw: 1px;
27
+ z-index: 2;
28
+ }
29
+ }
30
+ }
31
+ }
16
32
  & > div {
17
33
  &[data-type="wrapper-layer"] {
18
- display: var(--_d-none) !important;
34
+ display: var(--_sf-gri-wl-dp, var(--_d-none)) !important;
19
35
  pointer-events: none;
20
- visibility: hidden !important;
36
+ visibility: var(--_sf-gri-wl-vt, hidden) !important;
37
+ opacity: var(--_sf-gri-wl-op, 0) !important;
21
38
  position: var(--_p-absolute) !important;
22
39
  inset: 0 0 0 0;
40
+ border: var(--_sf-gri-wl-bw) solid var(--_accent-color-2-500);
23
41
  }
24
42
  &[data-div-type="cms-grid-wrapper"] {
25
43
  padding: var(--_ctm-gri-lt-pg);
@@ -13,7 +13,7 @@
13
13
  margin: var(--_ctm-lt-mn, --_tst-lt-mn);
14
14
  // height: var(--_ctm-lt-ht, var(--_tst-lt-ht));
15
15
  // height: ;
16
- aspect-ratio: 1 / var(--_sf-aspect-ratio);
16
+ // aspect-ratio: 1 / var(--_sf-aspect-ratio);
17
17
  --_aspect-ratio: calc(
18
18
  1 * (var(--_ctm-lt-ht, var(--_tst-lt-ht)) / var(--_ctm-lt-wh, var(--_tst-lt-wh)))
19
19
  );
package/dist/menu.scss ADDED
@@ -0,0 +1,89 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ [data-div-type="element"] {
5
+ &[data-element-type="menu"] {
6
+ // width: var(--_lt-wh);
7
+ // height: var(--_lt-ht);
8
+ // margin: var(--_lt-mn);
9
+ // padding: var(--_lt-pg);
10
+ // width: var(--_ctm-lt-wh, var(--_tst-lt-wh));
11
+ // width: 50%;
12
+ // width: var(--_sf-nw-wh, var(--_tst-lt-wh));
13
+ // width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
14
+ width: var(--_ctm-lt-wh);
15
+ margin: var(--_ctm-lt-mn, --_tst-lt-mn);
16
+ // height: clamp(var(--_ctm-lt-ht, 50px), 100px, auto) !important;
17
+ // height: var(--_ctm-lt-ht);
18
+ // height: ;
19
+ // height: auto;
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-element-sub-child="true"] {
26
+ // // width: max(var(--_sf-nw-wh, var(--_tst-lt-wh)));
27
+ // width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
28
+ // }
29
+
30
+ & > .wrapper {
31
+ // width: 100%;
32
+ // height: 100%;
33
+ }
34
+ &[data-show-shadow="false"] {
35
+ --_show-shadow: none;
36
+ }
37
+
38
+ .menu__element {
39
+ background-color: var(--_ctm-dn-mu-cr-bd-cr, var(--_tst-dn-bd-cr));
40
+ padding: var(--_ctm-lt-pg, var(--_tst-lt-pg));
41
+ display: flex;
42
+ align-items: center;
43
+
44
+ width: 100%;
45
+ // height: 100%;
46
+ border-color: var(--_ctm-dn-mu-cr-br-cr, var(--_tst-dn-br-cr));
47
+ border-style: var(--_ctm-dn-mu-cr-br-se, var(--_tst-dn-br-se));
48
+ border-width: var(--_ctm-dn-mu-cr-br-wh, var(--_tst-dn-br-wh));
49
+ border-radius: var(--_ctm-dn-mu-cr-br-rs, var(--_tst-dn-br-rs));
50
+ box-shadow: var(
51
+ --_show-shadow,
52
+ var(--_ctm-dn-mu-cr-sw-ae, var(--_tst-dn-sw-ae))
53
+ var(--_ctm-dn-mu-cr-sw-br, var(--_tst-dn-sw-br))
54
+ var(--_ctm-dn-mu-cr-sw-sd, var(--_tst-dn-sw-sd))
55
+ var(--_ctm-dn-mu-cr-sw-cr, var(--_tst-dn-sw-cr))
56
+ );
57
+
58
+ gap: var(--_ctm-lt-sg-bn-mu-lt-is);
59
+ .menu__item {
60
+ background-color: var(--_ctm-dn-mu-im-se-bd-cr, var(--_tst-dn-bd-cr));
61
+
62
+ width: 100%;
63
+ // height: 100%;
64
+ border-color: var(--_ctm-dn-mu-im-se-br-cr, var(--_tst-dn-br-cr));
65
+ border-style: var(--_ctm-dn-mu-im-se-br-se, var(--_tst-dn-br-se));
66
+ border-width: var(--_ctm-dn-mu-im-se-br-wh, var(--_tst-dn-br-wh));
67
+ border-radius: var(--_ctm-dn-mu-im-se-br-rs, var(--_tst-dn-br-rs));
68
+ box-shadow: var(
69
+ --_show-shadow,
70
+ var(--_ctm-dn-mu-im-se-sw-ae, var(--_tst-dn-sw-ae))
71
+ var(--_ctm-dn-mu-im-se-sw-br, var(--_tst-dn-sw-br))
72
+ var(--_ctm-dn-mu-im-se-sw-sd, var(--_tst-dn-sw-sd))
73
+ var(--_ctm-dn-mu-im-se-sw-cr, var(--_tst-dn-sw-cr))
74
+ );
75
+ & button {
76
+ color: var(--_ctm-dn-mu-im-se-cr, var(--_tst-dn-mu-im-se-cr));
77
+ font-family: var(--_ctm-dn-mu-im-se-ft-fy, var(--_tst-dn-mu-im-se-ft-fy)), sans-serif;
78
+ font-size: var(--_ctm-dn-mu-im-se-ft-se, var(--_tst-dn-mu-im-se-ft-se));
79
+ font-weight: var(--_ctm-dn-mu-im-se-ft-wt, var(--_tst-dn-mu-im-se-ft-wt));
80
+ font-style: var(--_ctm-dn-mu-im-se-ft-se-ic, var(--_tst-dn-mu-im-se-ft-se-ic));
81
+ text-align: var(--_ctm-dn-mu-im-se-tt-an, var(--_tst-dn-mu-im-se-se-an));
82
+ letter-spacing: var(--_ctm-dn-mu-im-se-lr-sg, var(--_tst-dn-mu-im-se-lr-sg));
83
+ line-height: var(--_ctm-dn-mu-im-se-le-ht, var(--_tst-dn-mu-im-se-le-ht));
84
+ text-decoration: var(--_ctm-dn-mu-im-se-ue,);
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
@@ -12,10 +12,10 @@
12
12
  margin: var(--_ctm-lt-mn, --_tst-lt-mn);
13
13
  // height: var(--_ctm-lt-ht, var(--_tst-lt-ht));
14
14
  // height: ;
15
- aspect-ratio: 1 / var(--_sf-aspect-ratio);
16
- --_aspect-ratio: calc(
17
- 1 * (var(--_ctm-lt-ht, var(--_tst-lt-ht)) / var(--_ctm-lt-wh, var(--_tst-lt-wh)))
18
- );
15
+ // aspect-ratio: 1 / var(--_sf-aspect-ratio);
16
+ // --_aspect-ratio: calc(
17
+ // 1 * (var(--_ctm-lt-ht, var(--_tst-lt-ht)) / var(--_ctm-lt-wh, var(--_tst-lt-wh)))
18
+ // );
19
19
 
20
20
  & > .wrapper {
21
21
  width: 100%;
@@ -24,13 +24,177 @@
24
24
  &[data-show-shadow="false"] {
25
25
  --_show-shadow: none;
26
26
  }
27
- .payment__methods__container {
28
- display: var(--_d-flex);
29
- gap: 20px;
30
- padding: 20px;
31
- img {
32
- width: 50px;
33
- height: 30px;
27
+ .text-element {
28
+ background: #6d96e4;
29
+ padding: 10px;
30
+ font-weight: 600;
31
+ color: rgba(75, 69, 70, 1);
32
+ }
33
+ .container {
34
+ display: flex;
35
+ flex-direction: column;
36
+ padding: var(--_ctm-lt-pg);
37
+ .title-content {
38
+ display: flex;
39
+ flex-direction: column;
40
+ .title {
41
+ font-size: 24px;
42
+ margin-bottom: 10px;
43
+ color: #000;
44
+ }
45
+ .description {
46
+ font-size: 16px;
47
+ color: #000;
48
+ }
49
+ }
50
+ .payment__methods__container {
51
+ display: var(--_d-flex);
52
+ flex-direction: column;
53
+ gap: 20px;
54
+ // padding: 20px 0;
55
+ justify-content: var(--_ctm-lt-im-ct-at);
56
+ .horizontal {
57
+ display: flex;
58
+ align-items: center;
59
+ gap: var(--_ctm-lt-im-sg);
60
+ flex-direction: row;
61
+ &[data-overflow-item="Wrap"] {
62
+ flex-wrap: wrap;
63
+ }
64
+ &[data-overflow-item="Scroll"] {
65
+ overflow-x: scroll;
66
+ width: 35%;
67
+ }
68
+ .item {
69
+ padding: var(--_ctm-lt-im-pg);
70
+ img {
71
+ width: 50px;
72
+ height: 30px;
73
+ }
74
+ }
75
+ }
76
+ .vertical {
77
+ display: flex;
78
+ align-items: center;
79
+ gap: var(--_ctm-lt-im-sg);
80
+ flex-direction: column;
81
+ &[data-overflow-item="Wrap"] {
82
+ flex-wrap: wrap;
83
+ }
84
+ &[data-overflow-item="Scroll"] {
85
+ overflow-x: scroll;
86
+ width: 35%;
87
+ }
88
+ .item {
89
+ padding: var(--_ctm-lt-im-pg);
90
+ img {
91
+ width: 50px;
92
+ height: 30px;
93
+ }
94
+ }
95
+ }
96
+ .table-content {
97
+ border-collapse: collapse;
98
+ border: 1px solid #000;
99
+ &[data-header-divider="true"] {
100
+ thead tr th {
101
+ border-bottom: 1px solid red;
102
+ }
103
+ }
104
+ &[data-row-divider="true"] {
105
+ tbody tr td {
106
+ border-bottom: 1px solid green;
107
+ }
108
+ }
109
+ &[data-column-divider="true"] {
110
+ tbody tr td,
111
+ thead tr th {
112
+ border-right: 1px solid orange;
113
+ }
114
+
115
+ tbody tr td:last-child,
116
+ thead tr th:last-child {
117
+ border-right: none;
118
+ }
119
+ }
120
+ &[data-alternative-row-colors="true"] {
121
+ tbody tr:nth-child(odd) {
122
+ background-color: #f78a8a;
123
+ width: 100%;
124
+ }
125
+ }
126
+ thead {
127
+ height: var(--_ctm-lt-hr-ht);
128
+ tr {
129
+ th {
130
+ padding: var(--_ctm-lt-hr-cl-pg);
131
+ text-align: var(--_ctm-lt-ct-at);
132
+ border: 0;
133
+ }
134
+ }
135
+ }
136
+ tbody {
137
+ tr {
138
+ padding: var(--_ctm-lt-rw-cl-pg);
139
+ height: var(--_ctm-lt-rw-ht);
140
+ th,
141
+ td {
142
+ border: 0;
143
+ padding: inherit;
144
+ text-align: var(--_ctm-lt-ct-at);
145
+ }
146
+ }
147
+ }
148
+ }
149
+
150
+ .button-content {
151
+ button {
152
+ font-size: 16px;
153
+ padding: 10px 20px;
154
+ background-color: #000;
155
+ color: #fff;
156
+ border: none;
157
+ cursor: pointer;
158
+ border-radius: 10px;
159
+ }
160
+ }
161
+ }
162
+ .loadmore_conatiner {
163
+ display: flex;
164
+ justify-content: center;
165
+ align-items: center;
166
+ gap: 10px;
167
+ margin-top: 10px;
168
+ button {
169
+ font-size: 10px;
170
+ padding: 10px;
171
+ background-color: #000;
172
+ color: #fff;
173
+ border: none;
174
+ cursor: pointer;
175
+ border-radius: 10px;
176
+ }
177
+ }
178
+ .pagination_container {
179
+ display: flex;
180
+ justify-content: center;
181
+ align-items: center;
182
+ gap: 10px;
183
+ button {
184
+ font-size: 16px;
185
+ // padding: 10px 20px;
186
+ // background-color: #000;
187
+ color: #fff;
188
+ border: none;
189
+ cursor: pointer;
190
+ // border-radius: 10px;
191
+ }
192
+ .active {
193
+ span {
194
+ background-color: var(--_gray-300);
195
+ padding: 2px;
196
+ }
197
+ }
34
198
  }
35
199
  }
36
200
  }