@sc-360-v2/storefront-cms-library 0.1.7 → 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 (58) 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/bulk-variant-picker/index.d.ts +27 -0
  37. package/dist/types/builder/elements/common.d.ts +1 -0
  38. package/dist/types/builder/elements/product-image/index.d.ts +30 -0
  39. package/dist/types/builder/elements/stack/index.d.ts +37 -0
  40. package/dist/types/builder/elements/uom-selector/index.d.ts +27 -0
  41. package/dist/types/builder/elements/variant-picker/index.d.ts +27 -0
  42. package/dist/types/builder/enums/index.d.ts +10 -2
  43. package/dist/types/builder/index.d.ts +6 -1
  44. package/dist/types/builder/tools/element-edit/bulkVariantPicker.d.ts +118 -0
  45. package/dist/types/builder/tools/element-edit/index.d.ts +6 -1
  46. package/dist/types/builder/tools/element-edit/product-image.d.ts +112 -0
  47. package/dist/types/builder/tools/element-edit/productDetails.d.ts +1 -1
  48. package/dist/types/builder/tools/element-edit/productPromotions.d.ts +1 -1
  49. package/dist/types/builder/tools/element-edit/stack.d.ts +25 -0
  50. package/dist/types/builder/tools/element-edit/uomSelector.d.ts +39 -0
  51. package/dist/types/builder/tools/element-edit/variantPicker.d.ts +119 -0
  52. package/dist/types/global/types.d.ts +1 -0
  53. package/dist/uom-selector.scss +28 -0
  54. package/dist/variable.scss +128 -0
  55. package/dist/variant-picker.scss +28 -0
  56. package/dist/video.scss +4 -2
  57. package/dist/volume-pricing.scss +18 -0
  58. 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,27 @@
1
+ import { CommonStyleProperties } from "../../../global/style-properties";
2
+ import { CMSHTMLAttributes } from "../../../global/attributes";
3
+ import { AlignSelfValue, BoxSizingValue, GridAreaValue, HeightValue, JustifySelfValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
4
+ import { BuilderAttributes, CMSElementInterface } from "../common";
5
+ export interface BulkVariantPickerStyleProperties {
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
+ justifySelf?: JustifySelfValue;
15
+ alignSelf?: AlignSelfValue;
16
+ }
17
+ export declare const getDefaultStyles: () => BulkVariantPickerStyleProperties;
18
+ export interface CMSBulkVariantPickerInterface extends Omit<CMSElementInterface, "attributes"> {
19
+ attributes: {
20
+ HTML: CMSHTMLAttributes;
21
+ BUILDER: BuilderAttributes;
22
+ CUSTOM: any;
23
+ };
24
+ styles: BulkVariantPickerStyleProperties;
25
+ content: string;
26
+ childrenStyles?: CommonStyleProperties;
27
+ }
@@ -24,4 +24,5 @@ export interface CMSElementInterface {
24
24
  responsiveBehaviour: ResponsiveBehaviourTypes;
25
25
  builderData?: any;
26
26
  controls?: any;
27
+ sort?: number;
27
28
  }
@@ -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
+ }
@@ -0,0 +1,37 @@
1
+ import { CMSHTMLAttributes } from "../../../global/attributes";
2
+ import { CommonStyleProperties } from "../../../global/style-properties";
3
+ import { ResponsiveBehaviourTypes } from "../../../global/types";
4
+ import { BuilderAttributes } from "../common";
5
+ export interface StackStyleProperties extends CommonStyleProperties {
6
+ maxWidth: string;
7
+ maxHeight: string;
8
+ gridArea: string;
9
+ boxSizing: string;
10
+ gridTemplateRows: string;
11
+ gridTemplateColumns: string;
12
+ }
13
+ export declare const getDefaultStyles: () => StackStyleProperties;
14
+ export interface CommonStackElementAttributes extends CMSHTMLAttributes {
15
+ role?: string;
16
+ ariaLabel?: string;
17
+ ariaDescribedBy?: string;
18
+ id?: string;
19
+ className?: string;
20
+ lang?: string;
21
+ dataMeta?: string;
22
+ }
23
+ export interface StackElementInterface {
24
+ id?: string | number;
25
+ uniqueKey?: string | number;
26
+ attributes?: {
27
+ BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType" | "dataElementType" | "dataDropElement">;
28
+ HTML?: CommonStackElementAttributes;
29
+ CUSTOM?: any;
30
+ };
31
+ styles?: StackStyleProperties;
32
+ editedStyles?: CommonStyleProperties;
33
+ responsiveBehaviour: ResponsiveBehaviourTypes;
34
+ children: any;
35
+ childIds: any[];
36
+ previewImage?: string;
37
+ }
@@ -0,0 +1,27 @@
1
+ import { CommonStyleProperties } from "../../../global/style-properties";
2
+ import { CMSHTMLAttributes } from "../../../global/attributes";
3
+ import { AlignSelfValue, BoxSizingValue, GridAreaValue, HeightValue, JustifySelfValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
4
+ import { BuilderAttributes, CMSElementInterface } from "../common";
5
+ export interface UomSelectorStyleProperties {
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
+ justifySelf?: JustifySelfValue;
15
+ alignSelf?: AlignSelfValue;
16
+ }
17
+ export declare const getDefaultStyles: () => UomSelectorStyleProperties;
18
+ export interface CMSUomSelectorInterface extends Omit<CMSElementInterface, "attributes"> {
19
+ attributes: {
20
+ HTML: CMSHTMLAttributes;
21
+ BUILDER: BuilderAttributes;
22
+ CUSTOM: any;
23
+ };
24
+ styles: UomSelectorStyleProperties;
25
+ content: string;
26
+ childrenStyles?: CommonStyleProperties;
27
+ }
@@ -0,0 +1,27 @@
1
+ import { CommonStyleProperties } from "../../../global/style-properties";
2
+ import { CMSHTMLAttributes } from "../../../global/attributes";
3
+ import { AlignSelfValue, BoxSizingValue, GridAreaValue, HeightValue, JustifySelfValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
4
+ import { BuilderAttributes, CMSElementInterface } from "../common";
5
+ export interface VariantPickerStyleProperties {
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
+ justifySelf?: JustifySelfValue;
15
+ alignSelf?: AlignSelfValue;
16
+ }
17
+ export declare const getDefaultStyles: () => VariantPickerStyleProperties;
18
+ export interface CMSVariantPickerInterface extends Omit<CMSElementInterface, "attributes"> {
19
+ attributes: {
20
+ HTML: CMSHTMLAttributes;
21
+ BUILDER: BuilderAttributes;
22
+ CUSTOM: any;
23
+ };
24
+ styles: VariantPickerStyleProperties;
25
+ content: string;
26
+ childrenStyles?: CommonStyleProperties;
27
+ }
@@ -32,11 +32,13 @@ export declare enum CMSToolIdTypes {
32
32
  cmsPageLoader = "cms-page-loader",
33
33
  dataDropElement = "cms-drop-element",
34
34
  containerWrapper = "cms-container-wrapper",
35
+ stackWrapper = "cms-stack-wrapper",
35
36
  cmsSubElementLayer = "cms-sub-element-layer",
36
37
  editorHeader = "cms-editor-header",
37
38
  cmsAddElementBodyLayer = "data-global-temp-body",
38
39
  cmsIframePreview = "cms-iframe-preview",
39
- cmsIframeMainElement = "cms-iframe-preview-main"
40
+ cmsIframeMainElement = "cms-iframe-preview-main",
41
+ duplicateElement = "cms-element-duplicate"
40
42
  }
41
43
  export declare enum CMSElementSelectors {
42
44
  iframeSelector = "iframe[data-title='iframe__playground']",
@@ -73,7 +75,9 @@ export declare enum CMSElementSelectors {
73
75
  layerDataDropElement = "div[data-layer-drop-element='cms-drop-element']",
74
76
  layerSubElement = "div[data-cms-tool='cms-sub-element-layer']",
75
77
  editorHeader = "div[data-cms-tool='cms-editor-header']",
76
- cmsAddElementBodyLayer = "div[data-cms-tool='data-global-temp-body']"
78
+ cmsAddElementBodyLayer = "div[data-cms-tool='data-global-temp-body']",
79
+ duplicateElement = "div[data-cms-tool='cms-element-duplicate']",
80
+ stackWrapper = "div[data-div-type='cms-stack-wrapper']"
77
81
  }
78
82
  export declare enum CMSToolAttributes {
79
83
  id = "data-cms-tool",
@@ -119,3 +123,7 @@ export declare enum CMSComponentImportTypeEnum {
119
123
  PREVIEW = 2,
120
124
  WEBSITE = 3
121
125
  }
126
+ export declare enum CMSStackDisplayTypeEnum {
127
+ HORIZONTAL = "horizontal",
128
+ VERTICAL = "vertical"
129
+ }
@@ -33,4 +33,9 @@ import * as shippingEstimatorSchema from "./elements/shippingEstimator/index";
33
33
  import * as productPromotionsSchema from "./elements/product-promotions/index";
34
34
  import * as amountEstimatorSchema from "./elements/amount-estimator/index";
35
35
  import * as quantitySelectorSchema from "./elements/quantity-selector/index";
36
- 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, };
36
+ import * as stackSchema from "./elements/stack/index";
37
+ import * as uomSelectorSchema from "./elements/uom-selector/index";
38
+ import * as variantPickerSchema from "./elements/variant-picker/index";
39
+ import * as bulkVariantPickerSchema from "./elements/bulk-variant-picker/index";
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, };
@@ -0,0 +1,118 @@
1
+ import { CMSIBCommonInterface } from "../../interfaces/global";
2
+ import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
3
+ interface selfLayoutInterface {
4
+ selectorKey: string;
5
+ optionSelection: CMSIBCommonInterface;
6
+ displayStyle: CMSIBCommonInterface;
7
+ displayOutOfStockValues: CMSIBCommonInterface;
8
+ notifyMeButton: CMSIBCommonInterface;
9
+ quantitySelectorForVariantSelector: CMSIBCommonInterface;
10
+ dividerBetweenItems: CMSIBCommonInterface;
11
+ optionTitleValueSpacing: CMSIBCommonInterface;
12
+ remainingDisplayStyle: CMSIBCommonInterface;
13
+ allowUserToSearch: CMSIBCommonInterface;
14
+ allowUserToFilter: CMSIBCommonInterface;
15
+ swatchTypeDisplayStyle: {
16
+ selectorKey: string;
17
+ displayValues: CMSIBCommonInterface;
18
+ itemPadding: CMSIBCommonInterface;
19
+ itemSpacing: CMSIBCommonInterface;
20
+ maxItemsToDisplay: CMSIBCommonInterface;
21
+ overflowItems: CMSIBCommonInterface;
22
+ swatchImageType: CMSIBCommonInterface;
23
+ };
24
+ singleSelectDisplayStyle: {
25
+ selectorKey: string;
26
+ displayValues: CMSIBCommonInterface;
27
+ itemSpacing: CMSIBCommonInterface;
28
+ itemPadding: CMSIBCommonInterface;
29
+ maxItemsToDisplay: CMSIBCommonInterface;
30
+ overflowItems: CMSIBCommonInterface;
31
+ imageBehaviour: CMSIBCommonInterface;
32
+ itemsPerRow: CMSIBCommonInterface;
33
+ itemContentAlignment: CMSIBCommonInterface;
34
+ overflowDirection: CMSIBCommonInterface;
35
+ };
36
+ dropdownDisplayStyle: {
37
+ selectorKey: string;
38
+ dropdownOptionsSpacing: CMSIBCommonInterface;
39
+ dropdownOptionsPadding: CMSIBCommonInterface;
40
+ dropdownStyle: CMSIBCommonInterface;
41
+ optionAndListSpacing: CMSIBCommonInterface;
42
+ dropdownListItemSpacing: CMSIBCommonInterface;
43
+ dropdownListItemPadding: CMSIBCommonInterface;
44
+ dividerBetweenListItems: CMSIBCommonInterface;
45
+ maxItemsToDisplay: CMSIBCommonInterface;
46
+ overflowItems: CMSIBCommonInterface;
47
+ };
48
+ groupedOptionsDisplayStyle: {
49
+ selectorKey: string;
50
+ groupsDisplayStyle: CMSIBCommonInterface;
51
+ groupSpacing: CMSIBCommonInterface;
52
+ groupPadding: CMSIBCommonInterface;
53
+ groupHeaderAndOptionSpacing: CMSIBCommonInterface;
54
+ tabDirection: CMSIBCommonInterface;
55
+ tabLayout: CMSIBCommonInterface;
56
+ tabAlignment: CMSIBCommonInterface;
57
+ tabSpacing: CMSIBCommonInterface;
58
+ tabAndContainerSpacing: CMSIBCommonInterface;
59
+ tabHorizontalPadding: CMSIBCommonInterface;
60
+ tabVerticalPadding: CMSIBCommonInterface;
61
+ containerPadding: CMSIBCommonInterface;
62
+ overflowItems: CMSIBCommonInterface;
63
+ tabRowSpacing: CMSIBCommonInterface;
64
+ expandIconPositon: CMSIBCommonInterface;
65
+ expandFirstItemByDefault: CMSIBCommonInterface;
66
+ allowMultipleOpenItems: CMSIBCommonInterface;
67
+ itemDividers: CMSIBCommonInterface;
68
+ accordionSpacing: CMSIBCommonInterface;
69
+ accordionAndContainerSpacing: CMSIBCommonInterface;
70
+ accordionHorizontalPadding: CMSIBCommonInterface;
71
+ accordionVerticalPadding: CMSIBCommonInterface;
72
+ groupAndContainerSpacing: CMSIBCommonInterface;
73
+ groupHorizontalPadding: CMSIBCommonInterface;
74
+ groupVerticalPadding: CMSIBCommonInterface;
75
+ canCollapseGroups: CMSIBCommonInterface;
76
+ };
77
+ matrixDisplayStyle: {
78
+ selectorKey: string;
79
+ header: CMSIBCommonInterface;
80
+ headerHeight: CMSIBCommonInterface;
81
+ rowHeight: CMSIBCommonInterface;
82
+ headerDivider: CMSIBCommonInterface;
83
+ rowDivider: CMSIBCommonInterface;
84
+ columnDivider: CMSIBCommonInterface;
85
+ alternativeRowColors: CMSIBCommonInterface;
86
+ headerCellPadding: CMSIBCommonInterface;
87
+ rowCellPadding: CMSIBCommonInterface;
88
+ contentAlignment: CMSIBCommonInterface;
89
+ rowsPerPage: CMSIBCommonInterface;
90
+ overflowControl: CMSIBCommonInterface;
91
+ paginationType: CMSIBCommonInterface;
92
+ paginationAliginment: CMSIBCommonInterface;
93
+ showMoreRows: CMSIBCommonInterface;
94
+ };
95
+ groupedMatrixDisplayStyle: {
96
+ selectorKey: string;
97
+ groupsDisplayStyle: CMSIBCommonInterface;
98
+ groupSpacing: CMSIBCommonInterface;
99
+ groupPadding: CMSIBCommonInterface;
100
+ groupHeaderAndOptionSpacing: CMSIBCommonInterface;
101
+ };
102
+ }
103
+ interface selfDesignInterface {
104
+ selectorKey: string;
105
+ }
106
+ export declare enum BulkVariantPickerSelectorKeysEnum {
107
+ LAYOUT = "layout",
108
+ CONTENT = "content",
109
+ DESIGN = "design",
110
+ SWATFH_TYPE_DISPLAY_STYLE = "swatchTypeDisplayStyle",
111
+ SINGLE_SELECT_DISPLAY_STYLE = "singleSelectDisplayStyle",
112
+ DROPDOWN_DISPLAY_STYLE = "dropdownDisplayStyle",
113
+ GROUPED_OPTION_DISPLAY_STYLE = "groupedOptionsDisplayStyle",
114
+ MATRIX_DISPLAY_STYLE = "matrixDisplayStyle",
115
+ GROUPED_MATRIX_DISPLAY_STYLE = "groupedMatrixDisplayStyle"
116
+ }
117
+ export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
118
+ export {};
@@ -31,4 +31,9 @@ import * as shippingEstimator from "./shippingEstimator";
31
31
  import * as productPromotions from "./productPromotions";
32
32
  import * as amountEstimator from "./amountEstimator";
33
33
  import * as quantitySelector from "./quantitySelector";
34
- 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, };
34
+ import * as stack from "./stack";
35
+ import * as uomSelector from "./uomSelector";
36
+ import * as variantPicker from "./variantPicker";
37
+ import * as bulkVariantPicker from "./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 {};