@sc-360-v2/storefront-cms-library 0.1.4 → 0.1.5

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 (39) hide show
  1. package/dist/builder.js +1 -1
  2. package/dist/button.scss +75 -34
  3. package/dist/code-temp.scss +58 -0
  4. package/dist/container.scss +17 -0
  5. package/dist/countdown.scss +378 -0
  6. package/dist/editor-core.scss +312 -0
  7. package/dist/embed-temp.scss +58 -0
  8. package/dist/faq.scss +242 -0
  9. package/dist/functions.scss +133 -0
  10. package/dist/gallery-slider-temp.scss +410 -0
  11. package/dist/grid.scss +34 -0
  12. package/dist/hotspot.scss +250 -0
  13. package/dist/image-temp.scss +75 -0
  14. package/dist/map.scss +280 -0
  15. package/dist/pickup-locations.scss +180 -0
  16. package/dist/product-actions.scss +180 -0
  17. package/dist/product-inventory.scss +180 -0
  18. package/dist/product-price.scss +61 -0
  19. package/dist/scroll.scss +157 -0
  20. package/dist/section.scss +60 -0
  21. package/dist/social.scss +166 -0
  22. package/dist/store-locations.scss +180 -0
  23. package/dist/table.scss +373 -0
  24. package/dist/text-temp.scss +58 -0
  25. package/dist/types/builder/elements/paymentMethods/index.d.ts +26 -0
  26. package/dist/types/builder/elements/productHighlights/index.d.ts +26 -0
  27. package/dist/types/builder/elements/shippingEstimator/index.d.ts +26 -0
  28. package/dist/types/builder/enums/index.d.ts +2 -1
  29. package/dist/types/builder/index.d.ts +4 -1
  30. package/dist/types/builder/tools/element-edit/common.d.ts +3 -0
  31. package/dist/types/builder/tools/element-edit/gallery-slider.d.ts +12 -2
  32. package/dist/types/builder/tools/element-edit/index.d.ts +4 -1
  33. package/dist/types/builder/tools/element-edit/paymentMethods.d.ts +37 -0
  34. package/dist/types/builder/tools/element-edit/productHighlights.d.ts +24 -0
  35. package/dist/types/builder/tools/element-edit/shippingEstimator.d.ts +14 -0
  36. package/dist/video.scss +199 -0
  37. package/dist/volume-pricing.scss +28 -0
  38. package/dist/widget.scss +23 -1
  39. package/package.json +1 -1
@@ -0,0 +1,199 @@
1
+ [data-div-type="element"] {
2
+ &[data-element-type="video"] {
3
+ width: var(--_sf-nw-wh, var(--_tst-lt-wh));
4
+ margin: var(--_ctm-lt-mn, --_tst-lt-mn);
5
+ // aspect-ratio: 1 / var(--_sf-aspect-ratio);
6
+ --_aspect-ratio: calc(
7
+ 1 * (var(--_ctm-lt-ht, var(--_tst-lt-ht)) / var(--_ctm-lt-wh, var(--_tst-lt-wh)))
8
+ );
9
+
10
+ & > .wrapper {
11
+ // width: 100%;
12
+ // height: 100%;
13
+ position: relative;
14
+ }
15
+
16
+ &[data-text-position="top"] {
17
+ .video__container {
18
+ flex-direction: column;
19
+ }
20
+ }
21
+ &[data-text-position="bottom"] {
22
+ .video__container {
23
+ flex-direction: column-reverse;
24
+ }
25
+ }
26
+ &[data-text-position="left"] {
27
+ .video__container {
28
+ flex-direction: row;
29
+ }
30
+ &[data-widget-alignment="top"] {
31
+ .video__container {
32
+ align-items: flex-start;
33
+ }
34
+ }
35
+ &[data-widget-alignment="center"] {
36
+ .video__container {
37
+ align-items: center;
38
+ }
39
+ }
40
+ &[data-widget-alignment="bottom"] {
41
+ .video__container {
42
+ align-items: flex-end;
43
+ }
44
+ }
45
+ }
46
+ &[data-text-position="right"] {
47
+ .video__container {
48
+ flex-direction: row-reverse;
49
+ }
50
+ &[data-widget-alignment="top"] {
51
+ .video__container {
52
+ align-items: flex-start;
53
+ }
54
+ }
55
+ &[data-widget-alignment="center"] {
56
+ .video__container {
57
+ align-items: center;
58
+ }
59
+ }
60
+ &[data-widget-alignment="bottom"] {
61
+ .video__container {
62
+ align-items: flex-end;
63
+ }
64
+ }
65
+ }
66
+
67
+ &[data-widget-border="true"] {
68
+ .video__container {
69
+ border-color: var(--_ctm-dn-vo-wt-dn-br-cr, var(--_tst-dn-vo-wt-dn-br-cr));
70
+ border-style: var(--_ctm-dn-vo-wt-dn-br-se, var(--_tst-dn-vo-wt-dn-br-se));
71
+ border-width: var(--_ctm-dn-vo-wt-dn-br-wh, var(--_tst-dn-vo-wt-dn-br-wh));
72
+ }
73
+ }
74
+
75
+ &[data-widget-shadow="false"] {
76
+ --_show-shadow: none;
77
+ }
78
+
79
+ &[data-content-border="true"] {
80
+ .video__content {
81
+ border-color: var(--_ctm-dn-vo-tt-cr-dn-br-cr, var(--_tst-dn-vo-tt-cr-dn-br-cr));
82
+ border-style: var(--_ctm-dn-vo-tt-cr-dn-br-se, var(--_tst-dn-vo-tt-cr-dn-br-se));
83
+ border-width: var(--_ctm-dn-vo-tt-cr-dn-br-wh, var(--_tst-dn-vo-tt-cr-dn-br-wh));
84
+ }
85
+ }
86
+
87
+ &[data-content-shadow="false"] {
88
+ --_show-text-content-shadow: none;
89
+ }
90
+ &[data-icon-background-shape="circle"] {
91
+ .video__icon {
92
+ border-radius: 50%;
93
+ }
94
+ }
95
+ &[data-icon-background-shape="rectange"] {
96
+ .video__icon {
97
+ border-radius: 6px;
98
+ }
99
+ }
100
+
101
+ .video__container {
102
+ display: flex;
103
+ gap: var(--_ctm-dn-vo-wt-lt-wt-tt-ad-im-sg, var(--_tst-dn-vo-wt-lt-wt-tt-ad-im-sg));
104
+ padding: var(--_ctm-lt-pg, var(--_tst-lt-pg));
105
+ background-color: var(--_ctm-dn-vo-wt-dn-bd-cr, var(--_tst-dn-vo-wt-dn-bd-cr));
106
+ padding: var(--_ctm-lt-pg, var(--_tst-lt-pg));
107
+ flex-direction: var(--_sf-fd-bn);
108
+ align-items: center;
109
+ justify-content: var(--_sf-jc, center);
110
+ box-shadow: var(
111
+ --_show-shadow,
112
+ var(--_ctm-dn-vo-wt-dn-sw-ae, var(--_tst-dn-vo-tt-cr-dn-sw-ae))
113
+ var(--_ctm-dn-vo-wt-dn-sw-br, var(--_tst-vo-se-sw-br))
114
+ var(--_ctm-dn-vo-wt-dn-sw-sd, var(--_tst-vo-se-sw-sd))
115
+ var(--_ctm-dn-vo-wt-dn-sw-cr, var(--_tst-dn-vo-tt-cr-dn-sw-cr))
116
+ );
117
+ width: 100%;
118
+ height: auto;
119
+
120
+ border-radius: var(--_ctm-dn-vo-wt-dn-br-rs, var(--_tst-dn-vo-wt-dn-br-rs));
121
+
122
+ .video__content {
123
+ display: flex;
124
+ flex-direction: column;
125
+ padding: var(--_ctm-dn-vo-tt-lt-tt-vl-pg, var(--_ctm-dn-vo-tt-lt-tt-vl-pg))
126
+ var(--_ctm-dn-vo-tt-lt-tt-hl-pg, var(--_tst-dn-vo-tt-lt-tt-hl-pg));
127
+ gap: var(--_ctm-dn-vo-tt-lt-te-ad-dn-sg, var(--_tst-dn-vo-tt-lt-te-ad-dn-sg));
128
+ background-color: var(--_ctm-dn-vo-tt-cr-dn-bd-cr, var(--_tst-dn-vo-tt-cr-dn-bd-cr));
129
+ border-radius: var(--_ctm-dn-vo-tt-cr-dn-br-rs, var(--_tst-dn-vo-tt-cr-dn-br-rs));
130
+ box-shadow: var(
131
+ --_show-text-content-shadow,
132
+ var(--_ctm-dn-vo-tt-cr-dn-sw-ae, var(--_tst-dn-vo-tt-cr-dn-sw-ae))
133
+ var(--_ctm-dn-vo-tt-cr-dn-sw-br, var(--_tst-vo-se-sw-br))
134
+ var(--_ctm-dn-vo-tt-cr-dn-sw-sd, var(--_tst-vo-se-sw-sd))
135
+ var(--_ctm-dn-vo-tt-cr-dn-sw-cr, var(--_tst-dn-vo-tt-cr-dn-sw-cr))
136
+ );
137
+ h3 {
138
+ color: var(--_ctm-dn-vo-wt-dn-cr, var(--_tst-dn-vo-wt-dn-cr));
139
+ font-family: var(--_ctm-dn-vo-wt-dn-ft-fy, var(--_tst-dn-vo-wt-dn-ft-fy)), sans-serif;
140
+ font-size: var(--_ctm-dn-vo-wt-dn-ft-se, var(--_tst-dn-vo-wt-dn-ft-se));
141
+ font-weight: var(--_ctm-dn-vo-wt-dn-ft-wt, var(--_tst-dn-vo-wt-dn-ft-wt));
142
+ font-style: var(--_ctm-dn-vo-wt-dn-ft-se-ic, var(--_tst-dn-vo-wt-dn-ft-se-ic));
143
+ text-align: var(--_ctm-dn-vo-wt-dn-tt-an, var(--_tst-dn-vo-wt-dn-tt-an));
144
+ letter-spacing: var(--_ctm-dn-vo-wt-dn-lr-sg, var(--_tst-dn-vo-wt-dn-lr-sg));
145
+ line-height: var(--_ctm-dn-vo-wt-dn-le-ht, var(--_tst-dn-vo-wt-dn-le-ht));
146
+ text-decoration: var(--_ctm-dn-vo-wt-dn-ue);
147
+ }
148
+ p {
149
+ color: var(--_ctm-dn-vo-wt-dn-cr-dc, var(--_tst-dn-vo-wt-dn-cr-dc));
150
+ font-family: var(--_ctm-dn-vo-wt-dn-ft-fy-dc, var(--_tst-dn-vo-wt-dn-ft-fy-dc)),
151
+ sans-serif;
152
+ font-size: var(--_ctm-dn-vo-wt-dn-ft-se-dc, var(--_tst-dn-vo-wt-dn-ft-se-dc));
153
+ font-weight: var(--_ctm-dn-vo-wt-dn-ft-wt-dc, var(--_tst-dn-vo-wt-dn-ft-wt-dc));
154
+ font-style: var(--_ctm-dn-vo-wt-dn-ft-se-ic-dc, var(--_tst-dn-vo-wt-dn-ft-se-ic-dc));
155
+ text-align: var(--_ctm-dn-vo-wt-dn-tt-an-dc, var(--_tst-dn-vo-wt-dn-tt-an-dc));
156
+ letter-spacing: var(--_ctm-dn-vo-wt-dn-lr-sg-dc, var(--_tst-dn-vo-wt-dn-lr-sg-dc));
157
+ line-height: var(--_ctm-dn-vo-wt-dn-le-ht-dc, var(--_tst-dn-vo-wt-dn-le-ht-dc));
158
+ text-decoration: var(--_ctm-dn-vo-wt-dn-ue-dc);
159
+ }
160
+ }
161
+
162
+ .video__data {
163
+ video {
164
+ max-width: 100%;
165
+ width: 100%;
166
+ }
167
+ }
168
+ .video__thumbnail {
169
+ position: relative;
170
+ .placeholder__img {
171
+ max-width: 100%;
172
+ // position: absolute;
173
+ // left: 0;
174
+ // top: 0;
175
+ }
176
+
177
+ .video__icon {
178
+ cursor: pointer;
179
+ position: absolute;
180
+ top: 50%;
181
+ left: 50%;
182
+ transform: translate(-50%, -50%);
183
+ background-color: var(--_ctm-dn-py-pe-bd-cr, var(--_tst-dn-py-pe-bd-cr));
184
+ padding: 5%;
185
+ width: var(--_ctm-dn-py-pe-se + 40);
186
+ height: var(--_ctm-dn-py-pe-se + 40);
187
+
188
+ svg {
189
+ width: var(--_ctm-dn-py-pe-se, var(--_tst-dn-py-pe-se));
190
+ height: var(--_ctm-dn-py-pe-se, var(--_tst-dn-py-pe-se));
191
+ path {
192
+ stroke: var(--_ctm-dn-py-pe-in-c1, var(--_tst-dn-py-pe-in-c1));
193
+ }
194
+ }
195
+ }
196
+ }
197
+ }
198
+ }
199
+ }
@@ -0,0 +1,28 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ [data-div-type="element"] {
5
+ &[data-element-type="volumePricing"] {
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: var(--_sf-nw-wh, var(--_tst-lt-wh));
12
+ margin: var(--_ctm-lt-mn, --_tst-lt-mn);
13
+ // height: var(--_ctm-lt-ht, var(--_tst-lt-ht));
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
+ );
19
+
20
+ & > .wrapper {
21
+ width: 100%;
22
+ // height: 100%;
23
+ }
24
+ &[data-show-shadow="false"] {
25
+ --_show-shadow: none;
26
+ }
27
+ }
28
+ }
package/dist/widget.scss CHANGED
@@ -1 +1,23 @@
1
-
1
+ @import "./section.scss";
2
+ @import "./grid.scss";
3
+ @import "./container.scss";
4
+ @import "./video.scss";
5
+ @import "./social.scss";
6
+ @import "./faq.scss";
7
+ @import "./table.scss";
8
+ @import "./button.scss";
9
+ @import "./code-temp.scss";
10
+ @import "./embed-temp.scss";
11
+ @import "./text-temp.scss";
12
+ @import "./image-temp.scss";
13
+ @import "./gallery-slider-temp.scss";
14
+ @import "./scroll.scss";
15
+ @import "./countdown.scss";
16
+ @import "./hotspot.scss";
17
+ @import "./map.scss";
18
+ @import "./product-price.scss";
19
+ @import "./product-actions.scss";
20
+ @import "./volume-pricing.scss";
21
+ @import "./product-inventory.scss";
22
+ @import "./store-locations.scss";
23
+ @import "./pickup-locations.scss";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {