@sc-360-v2/storefront-cms-library 0.1.8 → 0.1.9

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 (45) hide show
  1. package/dist/App.scss +31 -0
  2. package/dist/amount-estimator.scss +28 -0
  3. package/dist/builder.js +1 -1
  4. package/dist/bulk-variant-picker.scss +28 -0
  5. package/dist/button.scss +4 -2
  6. package/dist/code-temp.scss +2 -1
  7. package/dist/countdown.scss +2 -1
  8. package/dist/editor-core.scss +66 -8
  9. package/dist/embed-temp.scss +2 -1
  10. package/dist/faq.scss +7 -1
  11. package/dist/gallery-slider-temp.scss +230 -66
  12. package/dist/global.scss +342 -0
  13. package/dist/hotspot.scss +2 -1
  14. package/dist/icons.js +1 -1
  15. package/dist/image-temp.scss +2 -1
  16. package/dist/index.js +1 -1
  17. package/dist/map.scss +2 -1
  18. package/dist/mixin.scss +9 -0
  19. package/dist/payment-methods.scss +57 -0
  20. package/dist/pickup-locations.scss +10 -162
  21. package/dist/product-actions.scss +3 -1
  22. package/dist/product-basic-elements.scss +329 -0
  23. package/dist/product-highlights.scss +28 -0
  24. package/dist/product-image.scss +572 -0
  25. package/dist/product-inventory.scss +10 -159
  26. package/dist/product-price.scss +11 -3
  27. package/dist/product-promotions.scss +45 -0
  28. package/dist/quantity-selector.scss +265 -0
  29. package/dist/range-slider.module.scss +85 -0
  30. package/dist/scroll.scss +2 -1
  31. package/dist/shipping-estimator.scss +29 -0
  32. package/dist/social.scss +2 -1
  33. package/dist/store-locations.scss +13 -162
  34. package/dist/table.scss +2 -1
  35. package/dist/text-temp.scss +2 -1
  36. package/dist/types/builder/elements/product-image/index.d.ts +30 -0
  37. package/dist/types/builder/index.d.ts +2 -1
  38. package/dist/types/builder/tools/element-edit/index.d.ts +2 -1
  39. package/dist/types/builder/tools/element-edit/product-image.d.ts +112 -0
  40. package/dist/uom-selector.scss +28 -0
  41. package/dist/variable.scss +128 -0
  42. package/dist/variant-picker.scss +28 -0
  43. package/dist/video.scss +4 -2
  44. package/dist/volume-pricing.scss +18 -0
  45. package/package.json +1 -1
@@ -8,173 +8,24 @@
8
8
  aspect-ratio: 1 / var(--_sf-aspect-ratio);
9
9
 
10
10
  & > .wrapper {
11
- // width: 100%;
12
- // height: 100%;
13
- }
14
-
15
- &[data-show-shadow="false"] {
16
- --_show-shadow: none;
17
- }
18
- &[data-icon-position="left"] {
19
- --_sf-fd-bn: row;
20
- }
21
- &[data-icon-position="right"] {
22
- --_sf-fd-bn: row-reverse;
23
- }
24
- &[data-icon-position="center"] {
25
- --_sf-fd-bn: row;
26
- }
27
-
28
- &:hover {
29
- --_sf-hr-bd-cr: var(--_ctm-dn-hr-se-bd-cr, var(--_tst-dn-hr-se-bd-cr));
30
- --_sf-hr-br-cr: var(--_ctm-dn-hr-se-br-cr, var(--_tst-dn-hr-se-br-cr));
31
- --_sf-hr-br-st: var(--_ctm-dn-hr-se-br-se, var(--_tst-dn-hr-se-br-se));
32
- --_sf-hr-br-wt: var(--_ctm-dn-hr-se-br-wh, var(--_tst-dn-hr-se-br-wh));
33
- --_sf-hr-br-br: var(--_ctm-dn-hr-se-br-rs, var(--_tst-dn-hr-se-br-rs));
34
- --_sf-hr-bx-sw: var(--_ctm-dn-hr-se-sw-ae, var(--_tst-dn-hr-se-sw-ae))
35
- var(--_ctm-dn-hr-se-sw-br, var(--_tst-dn-hr-se-sw-br))
36
- var(--_ctm-dn-hr-se-sw-sd, var(--_tst-dn-hr-se-sw-sd))
37
- var(--_ctm-dn-hr-se-sw-cr, var(--_tst-dn-hr-se-sw-cr));
38
-
39
- --_sf-hr-fc: var(--_ctm-dn-hr-se-cr, var(--_tst-dn-hr-se-cr));
40
- --_sf-hr-ff: var(--_ctm-dn-hr-se-ft-fy, var(--_tst-dn-hr-se-ft-fy));
41
- --_sf-hr-fs: var(--_ctm-dn-hr-se-ft-se, var(--_tst-dn-hr-se-ft-se));
42
- --_sf-hr-fw: var(--_ctm-dn-hr-se-ft-wt, var(--_tst-dn-hr-se-ft-wt));
43
- --_sf-hr-ft: var(--_ctm-dn-hr-se-ft-se-ic, var(--_tst-dn-hr-se-ft-se-ic));
44
- --_sf-hr-ta: var(--_ctm-dn-hr-se-tt-an, var(--_tst-dn-hr-se-tt-an));
45
- --_sf-hr-ls: var(--_ctm-dn-hr-se-lr-sg, var(--_tst-dn-hr-se-lr-sg));
46
- --_sf-hr-lh: var(--_ctm-dn-hr-se-le-ht, var(--_tst-dn-hr-se-le-ht));
47
-
48
- --_sf-hr-ic-wt: var(--_ctm-dn-hr-se-in-se, var(--_tst-dn-hr-se-in-se));
49
- --_sf-hr-ic-ht: var(--_ctm-dn-hr-se-in-se, var(--_tst-dn-hr-se-in-se));
50
- --_sf-hr-ic-st: var(--_ctm-dn-hr-se-in-c1, var(--_tst-dn-hr-se-in-c1));
51
- --_sf-hr-tt-dn: var(--_ctm-dn-hr-se-ue, var(--_tst-dn-hr-se-in-c1));
52
-
53
- &[data-hover-show-shadow="false"] {
54
- --_hover-show-shadow: none;
55
- }
56
- &[data-hover-show-icon="false"] {
57
- --_hover-show-icon: none;
58
- }
59
- }
60
- &[data-show-icon="false"] {
61
- --_show-icon: none;
62
- }
63
- &[data-element-style="Icon"] {
64
- &[data-icon-position="left"] {
65
- --_sf-jc: start;
66
- }
67
- &[data-icon-position="right"] {
68
- --_sf-jc: end;
69
- }
70
- &[data-icon-position="center"] {
71
- --_sf-jc: center;
72
- }
11
+ width: 100%;
73
12
  }
74
-
75
- .btn__with__text {
76
- background-color: var(--_sf-hr-bd-cr, var(--_ctm-dn-dt-se-bd-cr, var(--_tst-dn-dt-se-bd-cr)));
77
- // padding: var(--_ctm-lt-pg, var(--_tst-lt-pg));
78
- padding: var(--_sf-element-vt-pd) var(--_sf-element-hr-pd);
79
- display: flex;
80
- flex-direction: var(--_sf-fd-bn);
81
- align-items: center;
82
- // justify-content: var(--_sf-jc, center);
83
- justify-content: var(--_ctm-lt-tt-an, center);
84
- gap: var(--_ctm-lt-gp, var(--_tst-lt-gp));
85
-
13
+ table {
14
+ font-family: arial, sans-serif;
15
+ border-collapse: collapse;
86
16
  width: 100%;
87
17
  height: 100%;
18
+ }
88
19
 
89
- border-radius: var(--_sf-hr-br-br, var(--_ctm-dn-dt-se-br-rs, var(--s_tst-dn-dt-se-br-rs)));
90
- box-shadow: var(
91
- --_hover-show-shadow,
92
- var(
93
- --_sf-hr-bx-sw,
94
- var(
95
- --_show-shadow,
96
- var(--_ctm-dn-dt-se-sw-ae, var(--_tst-dn-dt-se-sw-ae))
97
- var(--_ctm-dn-dt-se-sw-br, var(--_tst-dn-dt-se-sw-br))
98
- var(--_ctm-dn-dt-se-sw-sd, var(--_tst-dn-dt-se-sw-sd))
99
- var(--_ctm-dn-dt-se-sw-cr, var(--_tst-dn-dt-se-sw-cr))
100
- )
101
- )
102
- );
103
- &[data-show-border="true"] {
104
- border-color: var(--_sf-hr-br-cr, var(--_ctm-dn-dt-se-br-cr, var(--_tst-dn-dt-se-br-cr)));
105
- border-style: var(--_sf-hr-br-st, var(--_ctm-dn-dt-se-br-se, var(--_tst-dn-dt-se-br-se)));
106
- border-width: var(--_sf-hr-br-wt, var(--_ctm-dn-dt-se-br-wh, var(--_tst-dn-dt-se-br-wh)));
107
- }
108
- // &.btn__with__text__icon {
109
- // justify-content: center;
110
- // // gap: 10px;
111
- // }
112
- // & > span {
113
- // align-items: center;
114
- // justify-content: center;
115
- // &.txt {
116
- // display: flex;
117
- // color: var(--_sf-hr-fc, var(--_ctm-dn-dt-se-cr, var(--_tst-dn-dt-se-cr)));
118
- // font-family: var(--_sf-hr-ff, var(--_ctm-dn-dt-se-ft-fy, var(--_tst-dn-dt-se-ft-fy))),
119
- // sans-serif;
120
- // font-size: var(--_sf-hr-fs, var(--_ctm-dn-dt-se-ft-se, var(--_tst-dn-dt-se-ft-se)));
121
- // font-weight: var(--_sf-hr-fw, var(--_ctm-dn-dt-se-ft-wt, var(--_tst-dn-dt-se-ft-wt)));
122
- // font-style: var(
123
- // --_sf-hr-ft,
124
- // var(--_ctm-dn-dt-se-ft-se-ic, var(--_tst-dn-dt-se-ft-se-ic))
125
- // );
126
- // text-align: var(--_sf-hr-ta, var(--_ctm-dn-dt-se-tt-an, var(--_tst-dn-dt-se-tt-an)));
127
- // letter-spacing: var(--_sf-hr-ls, var(--_ctm-dn-dt-se-lr-sg, var(--_tst-dn-dt-se-lr-sg)));
128
- // line-height: var(--_sf-hr-lh, var(--_ctm-dn-dt-se-le-ht, var(--_tst-dn-dt-se-le-ht)));
129
- // text-decoration: var(--_sf-hr-tt-dn, var(--_ctm-dn-dt-se-ue, var(--_tst-dn-dt-se-le-ht)));
130
- // // --_sf-hr-tt-dn: var(--_ctm-dn-hr-se-ue, var(--_tst-dn-hr-se-in-c1));
131
- // }
132
-
133
- // &.icon {
134
- // display: var(--_hover-show-icon, var(--_show-icon, flex));
135
- // svg {
136
- // width: var(--_sf-hr-ic-wt, var(--_ctm-dn-dt-se-in-se, var(--_tst-dn-dt-se-in-se)));
137
- // height: var(--_sf-hr-ic-ht, var(--_ctm-dn-dt-se-in-se, var(--_tst-dn-dt-se-in-se)));
138
- // path {
139
- // stroke: var(--_sf-hr-ic-st, var(--_ctm-dn-dt-se-in-c1, var(--_tst-dn-dt-se-in-c1)));
140
- // }
141
- // }
142
- // }
143
- // &[data-element-style="Text"] {
144
- // display: inline-block;
145
- // width: 100%;
146
- // }
147
- // }
148
-
149
- .txt {
150
- display: flex;
151
- color: var(--_sf-hr-fc, var(--_ctm-dn-dt-se-cr, var(--_tst-dn-dt-se-cr)));
152
- font-family: var(--_sf-hr-ff, var(--_ctm-dn-dt-se-ft-fy, var(--_tst-dn-dt-se-ft-fy))),
153
- sans-serif;
154
- font-size: var(--_sf-hr-fs, var(--_ctm-dn-dt-se-ft-se, var(--_tst-dn-dt-se-ft-se)));
155
- font-weight: var(--_sf-hr-fw, var(--_ctm-dn-dt-se-ft-wt, var(--_tst-dn-dt-se-ft-wt)));
156
- font-style: var(--_sf-hr-ft, var(--_ctm-dn-dt-se-ft-se-ic, var(--_tst-dn-dt-se-ft-se-ic)));
157
- text-align: var(--_sf-hr-ta, var(--_ctm-dn-dt-se-tt-an, var(--_tst-dn-dt-se-tt-an)));
158
- letter-spacing: var(--_sf-hr-ls, var(--_ctm-dn-dt-se-lr-sg, var(--_tst-dn-dt-se-lr-sg)));
159
- line-height: var(--_sf-hr-lh, var(--_ctm-dn-dt-se-le-ht, var(--_tst-dn-dt-se-le-ht)));
160
- text-decoration: var(--_sf-hr-tt-dn, var(--_ctm-dn-dt-se-ue, var(--_tst-dn-dt-se-le-ht)));
161
- // --_sf-hr-tt-dn: var(--_ctm-dn-hr-se-ue, var(--_tst-dn-hr-se-in-c1));
162
- }
20
+ td,
21
+ th {
22
+ border: 1px solid #dddddd;
23
+ text-align: center;
24
+ padding: 8px;
25
+ }
163
26
 
164
- .icon {
165
- display: var(--_hover-show-icon, var(--_show-icon, flex));
166
- svg {
167
- width: var(--_sf-hr-ic-wt, var(--_ctm-dn-dt-se-in-se, var(--_tst-dn-dt-se-in-se)));
168
- height: var(--_sf-hr-ic-ht, var(--_ctm-dn-dt-se-in-se, var(--_tst-dn-dt-se-in-se)));
169
- path {
170
- stroke: var(--_sf-hr-ic-st, var(--_ctm-dn-dt-se-in-c1, var(--_tst-dn-dt-se-in-c1)));
171
- }
172
- }
173
- }
174
- [data-element-style="Text"] {
175
- display: inline-block;
176
- width: 100%;
177
- }
27
+ tr:nth-child(even) {
28
+ // background-color: #dddddd;
178
29
  }
179
30
  }
180
31
  }
package/dist/table.scss CHANGED
@@ -3,7 +3,8 @@
3
3
 
4
4
  [data-div-type="element"] {
5
5
  &[data-element-type="table"] {
6
- width: var(--_sf-nw-wh, var(--_tst-lt-wh));
6
+ // width: var(--_sf-nw-wh, var(--_tst-lt-wh));
7
+ width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
7
8
  margin: var(--_ctm-lt-mn, --_tst-lt-mn);
8
9
  // aspect-ratio: 1 / var(--_sf-aspect-ratio);
9
10
  // --_aspect-ratio: calc(
@@ -8,7 +8,8 @@
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
+ width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
12
13
  margin: var(--_ctm-lt-mn, --_tst-lt-mn);
13
14
  // height: var(--_ctm-lt-ht, var(--_tst-lt-ht));
14
15
  // height: ;
@@ -0,0 +1,30 @@
1
+ import { CommonStyleProperties } from "../../../global/style-properties";
2
+ import { CMSHTMLAttributes } from "../../../global/attributes";
3
+ import { AlignSelfValue, BoxSizingValue, GlobalImageAttributes, GridAreaValue, HeightValue, ImageBuilderAttributes, JustifySelfValue, MarginValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
4
+ import { BuilderAttributes, CMSElementInterface } from "../common";
5
+ export interface ProductImageStyleProperties extends CommonStyleProperties {
6
+ minHeight?: MinHeightValue;
7
+ height?: HeightValue;
8
+ minWidth?: MinWidthValue;
9
+ maxWidth?: MaxWidthValue;
10
+ maxHeight?: MaxHeightValue;
11
+ gridArea?: GridAreaValue;
12
+ boxSizing?: BoxSizingValue;
13
+ padding?: PaddingValue;
14
+ marginLeft?: MarginValue;
15
+ marginTop?: MarginValue;
16
+ marginBottom?: MarginValue;
17
+ marginRight?: MarginValue;
18
+ justifySelf?: JustifySelfValue;
19
+ alignSelf?: AlignSelfValue;
20
+ }
21
+ export declare const getDefaultStyles: () => ProductImageStyleProperties;
22
+ export interface CMSProductImageInterface extends Omit<CMSElementInterface, "attributes"> {
23
+ attributes: {
24
+ HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
25
+ BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
26
+ CUSTOM: any;
27
+ };
28
+ styles: ProductImageStyleProperties;
29
+ childrenStyles?: CommonStyleProperties;
30
+ }
@@ -37,4 +37,5 @@ import * as stackSchema from "./elements/stack/index";
37
37
  import * as uomSelectorSchema from "./elements/uom-selector/index";
38
38
  import * as variantPickerSchema from "./elements/variant-picker/index";
39
39
  import * as bulkVariantPickerSchema from "./elements/bulk-variant-picker/index";
40
- export { commonFunctions, interfaces, enums, sectionSchema, gridSchema, cmsTypes, textSchema, ElementEditSchema, imageSchema, videoSChema, socialIconsSchema, buttonSchema, gallerySliderSchema, tabSchema, tableSchema, faqSchema, codeSchema, embedSchema, scrollSchema, countdownSchema, imageHotspotSchema, mapSchema, containerSchema, priceSchema, productActionsSchema, volumePricingSchema, pickupLocationsSchema, storeLocationsSchema, productInventorySchema, paymentMethodsSchema, productHighlightsSchema, shippingEstimatorSchema, productPromotionsSchema, amountEstimatorSchema, quantitySelectorSchema, stackSchema, uomSelectorSchema, variantPickerSchema, bulkVariantPickerSchema, };
40
+ import * as productImageSchema from "./elements/product-image/index";
41
+ export { commonFunctions, interfaces, enums, sectionSchema, gridSchema, cmsTypes, textSchema, ElementEditSchema, imageSchema, videoSChema, socialIconsSchema, buttonSchema, gallerySliderSchema, tabSchema, tableSchema, faqSchema, codeSchema, embedSchema, scrollSchema, countdownSchema, imageHotspotSchema, mapSchema, containerSchema, priceSchema, productActionsSchema, volumePricingSchema, pickupLocationsSchema, storeLocationsSchema, productInventorySchema, paymentMethodsSchema, productHighlightsSchema, shippingEstimatorSchema, productPromotionsSchema, amountEstimatorSchema, quantitySelectorSchema, stackSchema, uomSelectorSchema, variantPickerSchema, bulkVariantPickerSchema, productImageSchema, };
@@ -35,4 +35,5 @@ import * as stack from "./stack";
35
35
  import * as uomSelector from "./uomSelector";
36
36
  import * as variantPicker from "./variantPicker";
37
37
  import * as bulkVariantPicker from "./bulkVariantPicker";
38
- export { section, grid, common, image, button, slideShowLayouter, tabs, video, table, gallerySlider, social, faq, code, text, embed, buttonV2, scroll, countdown, imageHotspot, map, container, price, productActions, volumePricing, pickupLocations, storeLocations, productInventory, paymentMethods, productHighlights, shippingEstimator, productPromotions, amountEstimator, quantitySelector, stack, uomSelector, variantPicker, bulkVariantPicker, };
38
+ import * as productImage from "./product-image";
39
+ export { section, grid, common, image, button, slideShowLayouter, tabs, video, table, gallerySlider, social, faq, code, text, embed, buttonV2, scroll, countdown, imageHotspot, map, container, price, productActions, volumePricing, pickupLocations, storeLocations, productInventory, paymentMethods, productHighlights, shippingEstimator, productPromotions, amountEstimator, quantitySelector, stack, uomSelector, variantPicker, bulkVariantPicker, productImage, };
@@ -0,0 +1,112 @@
1
+ import { CMSIBCommonInterface, CMSIBSizeInterface } from "../../interfaces/global";
2
+ import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
3
+ interface selfLayoutInterface {
4
+ selectorKey: string;
5
+ displayStyle: CMSIBCommonInterface;
6
+ itemsPerSlide: CMSIBSizeInterface;
7
+ itemGap: CMSIBSizeInterface;
8
+ rowGap: CMSIBSizeInterface;
9
+ sliderControl: CMSIBCommonInterface;
10
+ controlPosition: CMSIBCommonInterface;
11
+ loopImages: CMSIBCommonInterface;
12
+ sliderDisplayScrollbar: CMSIBCommonInterface;
13
+ autoplay: CMSIBCommonInterface;
14
+ autoplayStyle: CMSIBCommonInterface;
15
+ autoplayDuration: CMSIBSizeInterface;
16
+ sliderSpeed: CMSIBSizeInterface;
17
+ }
18
+ export interface selfDesignInterface {
19
+ selectorKey: string;
20
+ galleryWidgetStyle: {
21
+ selectorKey: string;
22
+ backgroundColor: CMSIBCommonInterface;
23
+ borderColor: CMSIBCommonInterface;
24
+ borderStyle: CMSIBCommonInterface;
25
+ borderPerSlide: CMSIBCommonInterface;
26
+ showBorder: CMSIBCommonInterface;
27
+ showShadow: CMSIBCommonInterface;
28
+ shadowColor: CMSIBCommonInterface;
29
+ blur: CMSIBCommonInterface;
30
+ spread: CMSIBCommonInterface;
31
+ angle: CMSIBCommonInterface;
32
+ borderRadius: CMSIBCommonInterface;
33
+ [key: string]: any;
34
+ };
35
+ galleryWidgetLayout: {
36
+ selectorKey: string;
37
+ galleryTextAndItemAlignment: CMSIBCommonInterface;
38
+ galleryTextAndItemSpacing: CMSIBCommonInterface;
39
+ galleryTitleAndDescriptionSpacing: CMSIBCommonInterface;
40
+ [key: string]: any;
41
+ };
42
+ galleryWidgetTextContainerDesign: {
43
+ [key: string]: any;
44
+ };
45
+ galleryWidgetTextContainerLayout: {
46
+ [key: string]: any;
47
+ };
48
+ itemStyle: {
49
+ selectorKey: string;
50
+ backgroundColor: CMSIBCommonInterface;
51
+ borderColor: CMSIBCommonInterface;
52
+ borderStyle: CMSIBCommonInterface;
53
+ borderPerSlide: CMSIBCommonInterface;
54
+ showBorder: CMSIBCommonInterface;
55
+ showShadow: CMSIBCommonInterface;
56
+ shadowColor: CMSIBCommonInterface;
57
+ blur: CMSIBCommonInterface;
58
+ spread: CMSIBCommonInterface;
59
+ angle: CMSIBCommonInterface;
60
+ borderRadius: CMSIBCommonInterface;
61
+ [key: string]: any;
62
+ };
63
+ itemLayout: {
64
+ selectorKey: string;
65
+ galleryTextAndItemAlignment: CMSIBCommonInterface;
66
+ textAndImageSpacing: CMSIBCommonInterface;
67
+ galleryTitleAndDescriptionSpacing: CMSIBCommonInterface;
68
+ [key: string]: any;
69
+ };
70
+ itemTextContainerDesign: {
71
+ [key: string]: any;
72
+ };
73
+ itemTextContainerLayout: {
74
+ [key: string]: any;
75
+ };
76
+ paginationArrows: {
77
+ selectorKey: string;
78
+ arrowIconStyle: CMSIBCommonInterface;
79
+ leftArrowIconStyle: CMSIBCommonInterface;
80
+ rightArrowIconStyle: CMSIBCommonInterface;
81
+ backgroundShape: CMSIBCommonInterface;
82
+ arrowSize: CMSIBCommonInterface;
83
+ arrowColor: CMSIBCommonInterface;
84
+ };
85
+ paginationDots: {
86
+ selectorKey: string;
87
+ dotSize: CMSIBCommonInterface;
88
+ currentDotColor: CMSIBCommonInterface;
89
+ otherDotColor: CMSIBCommonInterface;
90
+ };
91
+ paginationLine: {
92
+ selectorKey: string;
93
+ currentLineColor: CMSIBCommonInterface;
94
+ otherLineColor: CMSIBCommonInterface;
95
+ lineHeight: CMSIBCommonInterface;
96
+ lineWidth: CMSIBCommonInterface;
97
+ };
98
+ }
99
+ export declare enum SelectorKeysEnum {
100
+ LAYOUT = "layout",
101
+ DESIGN = "design",
102
+ GALLERY_WIDGET_STYLE = "gallery-widget-style",
103
+ GALLERY_LAYOUT = "gallery-layout",
104
+ ITEM_STYLE = "item-style",
105
+ PAGINATION_ARROWS = "pagination-arrows",
106
+ PAGINATION_DOTS = "pagination-dots",
107
+ PAGINATION_LINE = "pagination-lines",
108
+ MAP_WIDGET_TEXT_CONTAINER_DESIGN = "galleryWidgetTextContainerDesign",
109
+ MAP_WIDGET_TEXT_CONTAINER_LAYOUT = "galleryWidgetTextContainerLayout"
110
+ }
111
+ export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
112
+ export {};
@@ -0,0 +1,28 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ [data-div-type="element"] {
5
+ &[data-element-type="uomSelector"] {
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
+ }
@@ -0,0 +1,128 @@
1
+ @use "sass:list";
2
+ @use "sass:map";
3
+
4
+ body {
5
+ --_container-width: 1366px;
6
+ --_builder-breakpoint: 1024px;
7
+ --_sidebar-small-width: 428px;
8
+ --_sidebar-big-width: 600px;
9
+ --_dotted-input-width: 55px;
10
+ --_settings-tab-width: 370px;
11
+ --_settings-tab-top: 170px;
12
+ --_settings-tab-default-value: 10px;
13
+ --_themesettings-button-minwidth: 165px;
14
+
15
+ --_element-settngs-popup-mxheight: 500px;
16
+ --_element-settngs-popup-gap: 12px;
17
+
18
+ --_d-flex: flex;
19
+ --_flex-wrap: wrap;
20
+ --_d-inline-flex: inline-flex;
21
+ --_d-grid: grid;
22
+ --_d-block: block;
23
+ --_d-none: none;
24
+
25
+ --_p-absolute: absolute;
26
+ --_p-fixed: fixed;
27
+ --_p-sticky: sticky;
28
+ --_p-static: static;
29
+ --_p-relative: relative;
30
+
31
+ --_f-row: row;
32
+ --_f-column: column;
33
+ --_justify_start: flex-start;
34
+ --_justify-center: center;
35
+ --_justify-between: space-between;
36
+ --_justify-end: flex-end;
37
+
38
+ --_align-center: center;
39
+ --_align-start: start;
40
+ --_align-left: left;
41
+ --_align-items-flex-start: flex-start;
42
+
43
+ --_shadow-xs: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
44
+ --_shadow-x1: 0px 8px 8px -4px rgba(16, 24, 40, 0.03), 0px 20px 24px -4px rgba(16, 24, 40, 0.08);
45
+ --_shadow-x3: 0px 32px 64px -12px rgba(16, 24, 40, 0.14);
46
+ --_shadow-md: 0px 2px 4px -2px rgba(16, 24, 40, 0.06), 0px 4px 8px -2px rgba(16, 24, 40, 0.1);
47
+
48
+ --_shadow-lg: 0px 4px 6px -2px rgba(16, 24, 40, 0.03), 0px 12px 16px -4px rgba(16, 24, 40, 0.08);
49
+ --_higher-zIndex: 99999;
50
+
51
+ --_cms-map-at-zIndex: 9;
52
+ --_cms-zoom-at-zIndex: 10;
53
+ --_cs-canvas-img-zIndex: 9;
54
+ --_cs-pl-zIndex: 8;
55
+ --_cms-properties-zIndex: 7;
56
+ --_cms-sidebar-zIndex: 6;
57
+ --_cs-cms-root-zIndex: 5;
58
+ --_add-element-zIndex: 3;
59
+ --_cs-et-zIndex: 2;
60
+ --_it-gl-zIndex: 1;
61
+ --_cms-et-pe-zIndex: 1;
62
+
63
+ --_inline-toolbar-zIndex: 9999;
64
+ --_white: #fff;
65
+ --_body-bg: #f7f8fa;
66
+ --_gray-25: #fcfcfd;
67
+ --_gray-50: #f9fafb;
68
+ --_gray-100: #f2f4f7;
69
+ --_gray-200: #eaecf0;
70
+ --_gray-300: #d0d5dd;
71
+ --_gray-400: #98a2b3;
72
+ --_gray-500: #667085;
73
+ --_gray-600: #475467;
74
+ --_gray-700: #344054;
75
+ --_gray-900: #101828;
76
+ --_base-white: #fff;
77
+ --_base-black: #000;
78
+ --_border-light-color: #eaecf0;
79
+ --_gray-bg: #d9d9d9;
80
+ --_gray-bg-r: 217;
81
+ --_gray-bg-g: 217;
82
+ --_gray-bg-b: 217;
83
+ --_bg-overlay: rgba(52, 64, 84, 0.4);
84
+ --_gray-blue-300: #b3b8db;
85
+ --_red-500: #f04438;
86
+
87
+ --_accent-color-2-500: #583fff;
88
+ --_success-800: #05603a;
89
+
90
+ --_primary-25: #f5f6fd;
91
+ --_primary-50: #e2e5fa;
92
+ --_primary-100: #ced4f6;
93
+ --_primary-200: #a8b2ef;
94
+ --_primary-300: #8190e8;
95
+ --_primary-400: #243dc6;
96
+ --_primary-500: #162578;
97
+ --_primary-600: #132067;
98
+ --_primary-700: #111c5b;
99
+
100
+ --_success-50: #ecfdf3;
101
+ --_success-200: #a6f4c5;
102
+ --_success-600: #039855;
103
+ --_success-700: #027a48;
104
+
105
+ --_red-300: #fda29b;
106
+ --_red-100: #fee4e2;
107
+ --_warning-50: #fffaeb;
108
+ --_warning-200: #fedf89;
109
+ --_warning-300: #fec84b;
110
+ --_warning-500: #f79009;
111
+ --_warning-600: #dc6803;
112
+ --_warning-700: #fec84b;
113
+
114
+ --_error-700: #b42318;
115
+ --_error-500: #f04438;
116
+ --_error-200: #fecdca;
117
+ --_error-50: #fef3f2;
118
+
119
+ --_transition-duration: 0.45s;
120
+ --_transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
121
+
122
+ --_user-select-none: none;
123
+ --scroll-page: 0;
124
+ }
125
+
126
+ .pac-container {
127
+ z-index: calc(var(--_higher-zIndex) + var(--_cms-map-at-zIndex));
128
+ }
@@ -0,0 +1,28 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ [data-div-type="element"] {
5
+ &[data-element-type="variantPicker"] {
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/video.scss CHANGED
@@ -1,6 +1,7 @@
1
1
  [data-div-type="element"] {
2
2
  &[data-element-type="video"] {
3
- width: var(--_sf-nw-wh, var(--_tst-lt-wh));
3
+ // width: var(--_sf-nw-wh, var(--_tst-lt-wh));
4
+ width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
4
5
  margin: var(--_ctm-lt-mn, --_tst-lt-mn);
5
6
  // aspect-ratio: 1 / var(--_sf-aspect-ratio);
6
7
  --_aspect-ratio: calc(
@@ -167,8 +168,9 @@
167
168
  }
168
169
  .video__thumbnail {
169
170
  position: relative;
171
+ width: 100%;
170
172
  .placeholder__img {
171
- max-width: 100%;
173
+ width: 100%;
172
174
  // position: absolute;
173
175
  // left: 0;
174
176
  // top: 0;
@@ -24,5 +24,23 @@
24
24
  &[data-show-shadow="false"] {
25
25
  --_show-shadow: none;
26
26
  }
27
+
28
+ table {
29
+ font-family: arial, sans-serif;
30
+ border-collapse: collapse;
31
+ width: 100%;
32
+ height: 100%;
33
+ }
34
+
35
+ td,
36
+ th {
37
+ border: 1px solid #dddddd;
38
+ text-align: center;
39
+ padding: 8px;
40
+ }
41
+
42
+ tr:nth-child(even) {
43
+ // background-color: #dddddd;
44
+ }
27
45
  }
28
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {