@sc-360-v2/storefront-cms-library 0.3.6 → 0.3.8
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.
- package/dist/builder.js +1 -1
- package/dist/bulk-order-pad.scss +13 -8
- package/dist/common-element.scss +6 -0
- package/dist/confirmationModal.scss +79 -0
- package/dist/dropdownTemplate.scss +71 -8
- package/dist/employee-bulk-order.scss +547 -0
- package/dist/fb-dropdown.scss +124 -0
- package/dist/form-preview.scss +163 -108
- package/dist/globals.scss +6 -0
- package/dist/icons.js +1 -1
- package/dist/index.js +1 -1
- package/dist/modal.scss +13 -6
- package/dist/product-options.scss +1 -0
- package/dist/toggle-button.scss +32 -0
- package/dist/types/builder/constants/data-connectors.d.ts +55 -0
- package/dist/types/builder/elements/form-builder/index.d.ts +15 -0
- package/dist/types/builder/enums/data-connectors.d.ts +21 -0
- package/dist/types/builder/enums/index.d.ts +1 -0
- package/dist/types/builder/index.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/common.d.ts +8 -0
- package/dist/types/builder/tools/element-edit/productActions.d.ts +94 -0
- package/dist/types/builder/tools/element-edit/productSizeChart.d.ts +78 -4
- package/dist/types/builder/tools/element-edit/profile.d.ts +26 -2
- package/dist/types/builder/tools/element-edit/quantitySelector.d.ts +16 -2
- package/dist/variant-picker.scss +5 -0
- package/dist/widget.scss +3 -0
- package/package.json +5 -1
package/dist/modal.scss
CHANGED
|
@@ -191,6 +191,8 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
191
191
|
|
|
192
192
|
.modalV2-main {
|
|
193
193
|
.modalV2-wrapper {
|
|
194
|
+
min-height: 50%;
|
|
195
|
+
overflow: hidden !important;
|
|
194
196
|
position: fixed;
|
|
195
197
|
left: 50%;
|
|
196
198
|
transition:
|
|
@@ -198,7 +200,7 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
198
200
|
transform 0.4s ease-in-out;
|
|
199
201
|
background: $white;
|
|
200
202
|
border-radius: $radius-lg;
|
|
201
|
-
padding: 0px 20px;
|
|
203
|
+
// padding: 0px 20px;
|
|
202
204
|
width: 850px;
|
|
203
205
|
font-family: $font-base;
|
|
204
206
|
box-shadow: $shadow-md;
|
|
@@ -207,15 +209,17 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
207
209
|
overflow: scroll;
|
|
208
210
|
display: flex;
|
|
209
211
|
flex-direction: column;
|
|
210
|
-
|
|
212
|
+
.modal-body {
|
|
213
|
+
height: calc(100% - 61px);
|
|
214
|
+
}
|
|
211
215
|
&.fullscreen {
|
|
212
216
|
transition:
|
|
213
217
|
all 0.5s ease-in-out,
|
|
214
218
|
transform 0.5s ease-in-out;
|
|
215
219
|
top: 50%;
|
|
216
220
|
left: 50%;
|
|
217
|
-
width:
|
|
218
|
-
height:
|
|
221
|
+
width: 99vw;
|
|
222
|
+
height: 98vh;
|
|
219
223
|
border-radius: $radius-lg;
|
|
220
224
|
transform: translate(-50%, -50%);
|
|
221
225
|
box-shadow: none;
|
|
@@ -245,6 +249,7 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
245
249
|
&.bottom {
|
|
246
250
|
bottom: 5%;
|
|
247
251
|
transform: translate(-50%, 0%);
|
|
252
|
+
height: 100%;
|
|
248
253
|
}
|
|
249
254
|
|
|
250
255
|
.top-bar {
|
|
@@ -252,12 +257,14 @@ $shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
|
252
257
|
top: 0;
|
|
253
258
|
background: $white;
|
|
254
259
|
z-index: 1;
|
|
255
|
-
padding
|
|
260
|
+
padding: 0 16px;
|
|
261
|
+
border-bottom: 1px solid #d0d5dd;
|
|
256
262
|
.title-bar {
|
|
257
263
|
display: flex;
|
|
258
264
|
justify-content: space-between;
|
|
259
265
|
align-items: center;
|
|
260
|
-
padding: 15px 0px;
|
|
266
|
+
// padding: 15px 0px;
|
|
267
|
+
height: 60px;
|
|
261
268
|
|
|
262
269
|
.left-col {
|
|
263
270
|
display: flex;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.toggle__button {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 36px;
|
|
4
|
+
height: 20px;
|
|
5
|
+
background-color: #d0d5dd;
|
|
6
|
+
border-radius: 12px;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
|
|
9
|
+
.toggle__slider {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 2px;
|
|
12
|
+
left: 2px;
|
|
13
|
+
transform: translateY(0%);
|
|
14
|
+
width: 16px;
|
|
15
|
+
height: 16px;
|
|
16
|
+
background-color: #fff;
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
transition: transform 0.3s ease;
|
|
19
|
+
fill: var(--_base-white);
|
|
20
|
+
filter: drop-shadow(0px 1px 2px rgba(16, 24, 40, 0.06))
|
|
21
|
+
drop-shadow(0px 1px 3px rgba(16, 24, 40, 0.1));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.toggle__active {
|
|
25
|
+
background: #132067;
|
|
26
|
+
|
|
27
|
+
.toggle__slider {
|
|
28
|
+
top: 2px;
|
|
29
|
+
transform: translateX(16px);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ApiMethods } from "../enums/data-connectors";
|
|
2
|
+
export declare const dataConnectorApisData: {
|
|
3
|
+
PRODUST: {
|
|
4
|
+
url: string;
|
|
5
|
+
method: ApiMethods;
|
|
6
|
+
};
|
|
7
|
+
PRODUCT_BY_ID: {
|
|
8
|
+
url: string;
|
|
9
|
+
method: ApiMethods;
|
|
10
|
+
};
|
|
11
|
+
CATEGORIES: {
|
|
12
|
+
url: string;
|
|
13
|
+
method: ApiMethods;
|
|
14
|
+
};
|
|
15
|
+
CATegory_BY_ID: {
|
|
16
|
+
url: string;
|
|
17
|
+
method: ApiMethods;
|
|
18
|
+
};
|
|
19
|
+
BRANDS: {
|
|
20
|
+
url: string;
|
|
21
|
+
method: ApiMethods;
|
|
22
|
+
};
|
|
23
|
+
BRAND_BY_ID: {
|
|
24
|
+
url: string;
|
|
25
|
+
method: ApiMethods;
|
|
26
|
+
};
|
|
27
|
+
SUB_CATEGORY: {
|
|
28
|
+
url: string;
|
|
29
|
+
method: ApiMethods;
|
|
30
|
+
};
|
|
31
|
+
MARCHANDISER_SETS: {
|
|
32
|
+
url: string;
|
|
33
|
+
method: ApiMethods;
|
|
34
|
+
};
|
|
35
|
+
BUNDLES: {
|
|
36
|
+
url: string;
|
|
37
|
+
method: ApiMethods;
|
|
38
|
+
};
|
|
39
|
+
BUNLES_BY_ID: {
|
|
40
|
+
url: string;
|
|
41
|
+
method: ApiMethods;
|
|
42
|
+
};
|
|
43
|
+
BUNDLE_BY_TYPE: {
|
|
44
|
+
url: string;
|
|
45
|
+
method: ApiMethods;
|
|
46
|
+
};
|
|
47
|
+
PRODUCT_BUNDLE_DETAILS: {
|
|
48
|
+
url: string;
|
|
49
|
+
method: ApiMethods;
|
|
50
|
+
};
|
|
51
|
+
CATEGORY_BUNDLE_DETAILS: {
|
|
52
|
+
url: string;
|
|
53
|
+
method: ApiMethods;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
@@ -155,3 +155,18 @@ export declare enum FormMessageDisplay {
|
|
|
155
155
|
Custom = 1,
|
|
156
156
|
Always = 2
|
|
157
157
|
}
|
|
158
|
+
export declare enum FormRequiredFieldStyle {
|
|
159
|
+
Character = 1,
|
|
160
|
+
SVG = 2,
|
|
161
|
+
Label = 3,
|
|
162
|
+
None = 4
|
|
163
|
+
}
|
|
164
|
+
export declare enum FormSpamFilterMethod {
|
|
165
|
+
None = 0,
|
|
166
|
+
GoogleRecaptchaV2 = 2,
|
|
167
|
+
GoogleRecaptchaV3 = 3
|
|
168
|
+
}
|
|
169
|
+
export declare enum FormRequiredFieldPlacement {
|
|
170
|
+
BeforeField = 1,
|
|
171
|
+
AfterField = 2
|
|
172
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare enum ApiMethods {
|
|
2
|
+
GET = "GET",
|
|
3
|
+
POST = "POST",
|
|
4
|
+
PUT = "PUT",
|
|
5
|
+
DELETE = "DELETE"
|
|
6
|
+
}
|
|
7
|
+
export declare enum dataConnectorapis {
|
|
8
|
+
PRODUST = "PRODUST",
|
|
9
|
+
CATEGORIES = "CATEGORIES",
|
|
10
|
+
BRANDS = "BRANDS",
|
|
11
|
+
PRODUCT_BY_ID = "PRODUCT_BY_ID",
|
|
12
|
+
CATEGORY_BY_ID = "CATegory_BY_ID",
|
|
13
|
+
BRAND_BY_ID = "BRAND_BY_ID",
|
|
14
|
+
SUB_CATEGORY = "SUB_CATEGORY",
|
|
15
|
+
MARCHANDISER_SETS = "MARCHANDISER_SETS",
|
|
16
|
+
BUNDLES = "BUNDLES",
|
|
17
|
+
BUNLES_BY_ID = "BUNLES_BY_ID",
|
|
18
|
+
BUNDLE_BY_TYPE = "BUNDLE_BY_TYPE",
|
|
19
|
+
PRODUCT_BUNDLE_DETAILS = "PRODUCT_BUNDLE_DETAILS",
|
|
20
|
+
CATEGORY_BUNDLE_DETAILS = "CATEGORY_BUNDLE_DETAILS"
|
|
21
|
+
}
|
|
@@ -80,4 +80,5 @@ import * as layouterProItemSchema from "./elements/layouter-pro-item/index";
|
|
|
80
80
|
import * as userElementsSchema from "./elements/user-elements/index";
|
|
81
81
|
import * as filterResultsSchema from "./elements/filter-results/index";
|
|
82
82
|
import * as productSizeChartSchema from "./elements/product-sizechart/index";
|
|
83
|
-
|
|
83
|
+
import * as dataConnectorContants from "./constants/data-connectors";
|
|
84
|
+
export { ElementEditSchema, amountEstimatorSchema, bulkVariantPickerSchema, buttonSchema, cmsTypes, codeSchema, commonFunctions, containerSchema, countdownSchema, embedSchema, enums, faqSchema, gallerySliderSchema, gridSchema, imageHotspotSchema, imageSchema, interfaces, mapSchema, paymentMethodsSchema, pickupLocationsSchema, priceSchema, productActionsSchema, productHighlightsSchema, productImageSchema, productInventorySchema, productPromotionsSchema, quantitySelectorSchema, scrollSchema, sectionSchema, shippingEstimatorSchema, socialIconsSchema, stackSchema, storeLocationsSchema, tabSchema, tableSchema, textSchema, uomSelectorSchema, variantPickerSchema, videoSChema, volumePricingSchema, lightboxSchema, cartSchema, profileSchema, productSchema, repeaterSchema, brandSchema, bundleSchema, bundleDetailsSchema, brandImageSchema, lightBoxV2Schema, searchSchema, layouterSchema, layouterItemSchema, categoryDetailsSchema, contactUsSchema, loginSchema, createFormSchema, resetPasswordSchema, searchResultsHeadingSchema, itemStockSchema, lineItemSchema, tabsV2Schema, tabsContainerSchema, marchandiserSetsSchema, formBuilder, quickLinksSchema, addOrderSchema, buyForTabsSchema, buyForTabsContainerSchema, checkoutSchema, toasterSchema, spotlightSchema, productCustomizationsSchema, iconListSchema, orderStatusSchema, menuV2Schema, menuItemSchema, layouterProSchema, layouterProItemSchema, userElementsSchema, filterResultsSchema, productSizeChartSchema, dataConnectorContants, };
|
|
@@ -14,6 +14,14 @@ export interface CMSElementEditPopupLayoutInterface {
|
|
|
14
14
|
displayScrollbar?: CMSIBCommonInterface;
|
|
15
15
|
positionType?: CMSIBCommonInterface;
|
|
16
16
|
pinTo?: CMSIBCommonInterface;
|
|
17
|
+
dropdownOptionsSpacing?: CMSIBSizeInterface;
|
|
18
|
+
dropdownOptionsPadding?: CMSIBSizeInterface;
|
|
19
|
+
dropdownStyle?: CMSIBCommonInterface;
|
|
20
|
+
optionAndListSpacing?: CMSIBSizeInterface;
|
|
21
|
+
dropdownListItemSpacing?: CMSIBSizeInterface;
|
|
22
|
+
dropdownListItemPadding?: CMSIBSizeInterface;
|
|
23
|
+
dividerBetweenListItems?: CMSIBSizeInterface;
|
|
24
|
+
maxItemsToDisplay?: CMSIBSizeInterface;
|
|
17
25
|
}
|
|
18
26
|
export interface CMSElementEditPopupDesignInterface {
|
|
19
27
|
backgroundColor: CMSIBCommonInterface;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CMSElementEditTypes } from "../../enums/index";
|
|
1
2
|
import { CMSIBCommonInterface } from "../../interfaces/global";
|
|
2
3
|
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
3
4
|
export interface ButtonLayoutInterface {
|
|
@@ -64,4 +65,97 @@ export declare enum ButtonSelectorKeysEnum {
|
|
|
64
65
|
WIDGET_STYLE = "widgetStyle",
|
|
65
66
|
DROPDOWN_STYLE = "dropdownStyle"
|
|
66
67
|
}
|
|
68
|
+
export declare const ButtonProperties: {
|
|
69
|
+
buttonStyle: {
|
|
70
|
+
value: string;
|
|
71
|
+
parentRef: string;
|
|
72
|
+
propertyType: CMSElementEditTypes;
|
|
73
|
+
};
|
|
74
|
+
buttonText: {
|
|
75
|
+
value: string;
|
|
76
|
+
property: string;
|
|
77
|
+
propertyType: CMSElementEditTypes;
|
|
78
|
+
};
|
|
79
|
+
icon: {
|
|
80
|
+
value: string;
|
|
81
|
+
property: string;
|
|
82
|
+
propertyType: CMSElementEditTypes;
|
|
83
|
+
};
|
|
84
|
+
iconPadding: {
|
|
85
|
+
value: number;
|
|
86
|
+
property: string;
|
|
87
|
+
parentRef: string;
|
|
88
|
+
propertyType: CMSElementEditTypes;
|
|
89
|
+
};
|
|
90
|
+
iconPosition: {
|
|
91
|
+
value: string;
|
|
92
|
+
parentRef: string;
|
|
93
|
+
propertyType: CMSElementEditTypes;
|
|
94
|
+
};
|
|
95
|
+
iconAndTextSpacing: {
|
|
96
|
+
value: number;
|
|
97
|
+
property: string;
|
|
98
|
+
unit: number;
|
|
99
|
+
parentRef: string;
|
|
100
|
+
propertyType: CMSElementEditTypes;
|
|
101
|
+
};
|
|
102
|
+
alignment: {
|
|
103
|
+
value: string;
|
|
104
|
+
property: string;
|
|
105
|
+
parentRef: string;
|
|
106
|
+
propertyType: CMSElementEditTypes;
|
|
107
|
+
};
|
|
108
|
+
buttonType: {
|
|
109
|
+
value: string;
|
|
110
|
+
propertyType: CMSElementEditTypes;
|
|
111
|
+
};
|
|
112
|
+
showIcon: {
|
|
113
|
+
value: boolean;
|
|
114
|
+
property: string;
|
|
115
|
+
propertyType: CMSElementEditTypes;
|
|
116
|
+
};
|
|
117
|
+
backgroundColor: CMSIBCommonInterface;
|
|
118
|
+
borderColor: CMSIBCommonInterface;
|
|
119
|
+
borderStyle: CMSIBCommonInterface;
|
|
120
|
+
borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
|
|
121
|
+
showBorder: CMSIBCommonInterface;
|
|
122
|
+
showShadow: CMSIBCommonInterface;
|
|
123
|
+
shadowColor: CMSIBCommonInterface;
|
|
124
|
+
blur: import("../../interfaces/global").CMSIBSizeInterface;
|
|
125
|
+
spread: import("../../interfaces/global").CMSIBSizeInterface;
|
|
126
|
+
angle: import("../../interfaces/global").CMSIBSizeInterface;
|
|
127
|
+
borderRadius: import("../../interfaces/global").CSSPaddingValues;
|
|
128
|
+
theme: CMSIBCommonInterface;
|
|
129
|
+
font: CMSIBCommonInterface;
|
|
130
|
+
fontSize: import("../../interfaces/global").CMSIBSizeInterface;
|
|
131
|
+
textColor: CMSIBCommonInterface;
|
|
132
|
+
bold: CMSIBCommonInterface;
|
|
133
|
+
italic: CMSIBCommonInterface;
|
|
134
|
+
linethrough: CMSIBCommonInterface;
|
|
135
|
+
underline: CMSIBCommonInterface;
|
|
136
|
+
textAlign: CMSIBCommonInterface;
|
|
137
|
+
characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
|
|
138
|
+
lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
|
|
139
|
+
iconSize: import("../../interfaces/global").CMSIBSizeInterface;
|
|
140
|
+
width: {
|
|
141
|
+
value: string;
|
|
142
|
+
unit: number;
|
|
143
|
+
};
|
|
144
|
+
padding: import("../../interfaces/global").CSSPaddingValues | undefined;
|
|
145
|
+
iconColor: {
|
|
146
|
+
value: {
|
|
147
|
+
rgb: {
|
|
148
|
+
r: number;
|
|
149
|
+
g: number;
|
|
150
|
+
b: number;
|
|
151
|
+
a: number;
|
|
152
|
+
};
|
|
153
|
+
hex: string;
|
|
154
|
+
};
|
|
155
|
+
property?: any;
|
|
156
|
+
propertyType?: any;
|
|
157
|
+
isReadOnly?: boolean | undefined;
|
|
158
|
+
parentRef?: string | undefined;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
67
161
|
export declare const getDefaultData: () => CMSElementEditPopupInterface<ButtonLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
@@ -1,16 +1,84 @@
|
|
|
1
|
-
import { CMSIBCommonInterface } from "../../interfaces/global";
|
|
1
|
+
import { CMSIBCommonInterface, CMSIBSizeInterface } from "../../interfaces/global";
|
|
2
2
|
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
3
3
|
export interface ButtonLayoutInterface {
|
|
4
4
|
selectorKey: string;
|
|
5
5
|
sizeChart: CMSIBCommonInterface;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
zoomType: CMSIBCommonInterface;
|
|
7
|
+
displayStyle: CMSIBCommonInterface;
|
|
8
|
+
scrollDirection: CMSIBCommonInterface;
|
|
9
|
+
noOfItemsToLoad: CMSIBCommonInterface;
|
|
10
|
+
scrollControl: CMSIBCommonInterface;
|
|
11
|
+
itemsPerSlide: CMSIBSizeInterface;
|
|
12
|
+
itemsPerRow: CMSIBSizeInterface;
|
|
13
|
+
itemsPerColumn: CMSIBSizeInterface;
|
|
14
|
+
itemGap: CMSIBSizeInterface;
|
|
15
|
+
rowGap: CMSIBSizeInterface;
|
|
16
|
+
sliderControl: CMSIBCommonInterface;
|
|
17
|
+
controlPosition: CMSIBCommonInterface;
|
|
18
|
+
loopImages: CMSIBCommonInterface;
|
|
19
|
+
setItemsPerRow: CMSIBCommonInterface;
|
|
20
|
+
sliderDisplayScrollbar: CMSIBCommonInterface;
|
|
21
|
+
autoplay: CMSIBCommonInterface;
|
|
22
|
+
autoplayStyle: CMSIBCommonInterface;
|
|
23
|
+
autoplayDuration: CMSIBSizeInterface;
|
|
24
|
+
sliderSpeed: CMSIBSizeInterface;
|
|
9
25
|
}
|
|
10
26
|
export interface selfDesignInterface {
|
|
11
27
|
selectorKey: string;
|
|
12
28
|
defaultState: any;
|
|
13
29
|
sizeChart: any;
|
|
30
|
+
galleryWidgetStyle: {
|
|
31
|
+
selectorKey: string;
|
|
32
|
+
backgroundColor: CMSIBCommonInterface;
|
|
33
|
+
borderColor: CMSIBCommonInterface;
|
|
34
|
+
borderStyle: CMSIBCommonInterface;
|
|
35
|
+
borderPerSlide: CMSIBCommonInterface;
|
|
36
|
+
showBorder: CMSIBCommonInterface;
|
|
37
|
+
showShadow: CMSIBCommonInterface;
|
|
38
|
+
shadowColor: CMSIBCommonInterface;
|
|
39
|
+
blur: CMSIBCommonInterface;
|
|
40
|
+
spread: CMSIBCommonInterface;
|
|
41
|
+
angle: CMSIBCommonInterface;
|
|
42
|
+
borderRadius: CMSIBCommonInterface;
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
};
|
|
45
|
+
itemStyle: {
|
|
46
|
+
selectorKey: string;
|
|
47
|
+
backgroundColor: CMSIBCommonInterface;
|
|
48
|
+
borderColor: CMSIBCommonInterface;
|
|
49
|
+
borderStyle: CMSIBCommonInterface;
|
|
50
|
+
borderPerSlide: CMSIBCommonInterface;
|
|
51
|
+
showBorder: CMSIBCommonInterface;
|
|
52
|
+
showShadow: CMSIBCommonInterface;
|
|
53
|
+
shadowColor: CMSIBCommonInterface;
|
|
54
|
+
blur: CMSIBCommonInterface;
|
|
55
|
+
spread: CMSIBCommonInterface;
|
|
56
|
+
angle: CMSIBCommonInterface;
|
|
57
|
+
borderRadius: CMSIBCommonInterface;
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
};
|
|
60
|
+
paginationArrows: {
|
|
61
|
+
selectorKey: string;
|
|
62
|
+
arrowIconStyle: CMSIBCommonInterface;
|
|
63
|
+
leftArrowIconStyle: CMSIBCommonInterface;
|
|
64
|
+
rightArrowIconStyle: CMSIBCommonInterface;
|
|
65
|
+
backgroundShape: CMSIBCommonInterface;
|
|
66
|
+
arrowSize: CMSIBCommonInterface;
|
|
67
|
+
arrowColor: CMSIBCommonInterface;
|
|
68
|
+
};
|
|
69
|
+
paginationDots: {
|
|
70
|
+
selectorKey: string;
|
|
71
|
+
dotSize: CMSIBCommonInterface;
|
|
72
|
+
currentDotColor: CMSIBCommonInterface;
|
|
73
|
+
otherDotColor: CMSIBCommonInterface;
|
|
74
|
+
};
|
|
75
|
+
paginationLine: {
|
|
76
|
+
selectorKey: string;
|
|
77
|
+
currentLineColor: CMSIBCommonInterface;
|
|
78
|
+
otherLineColor: CMSIBCommonInterface;
|
|
79
|
+
lineHeight: CMSIBCommonInterface;
|
|
80
|
+
lineWidth: CMSIBCommonInterface;
|
|
81
|
+
};
|
|
14
82
|
}
|
|
15
83
|
export declare enum ButtonSelectorKeysEnum {
|
|
16
84
|
HOVER_STATE = "hover",
|
|
@@ -19,6 +87,12 @@ export declare enum ButtonSelectorKeysEnum {
|
|
|
19
87
|
LAYOUT = "layout",
|
|
20
88
|
DESIGN = "design",
|
|
21
89
|
SIZE_CHART = "sizeChart",
|
|
90
|
+
GALLERY_WIDGET_STYLE = "gallery-widget-style",
|
|
91
|
+
GALLERY_LAYOUT = "gallery-layout",
|
|
92
|
+
ITEM_STYLE = "item-style",
|
|
93
|
+
PAGINATION_ARROWS = "pagination-arrows",
|
|
94
|
+
PAGINATION_DOTS = "pagination-dots",
|
|
95
|
+
PAGINATION_LINE = "pagination-lines",
|
|
22
96
|
DATA_CONNECTOR = "dataConnector"
|
|
23
97
|
}
|
|
24
98
|
export declare const getDefaultData: () => CMSElementEditPopupInterface<ButtonLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
@@ -4,6 +4,15 @@ interface selfLayoutInterface {
|
|
|
4
4
|
selectorKey: string;
|
|
5
5
|
loggedInButtonStyle: CMSIBCommonInterface;
|
|
6
6
|
beforeLoginText: CMSIBCommonInterface;
|
|
7
|
+
showdDropdown: CMSIBCommonInterface;
|
|
8
|
+
dropdownWidth: CMSIBCommonInterface;
|
|
9
|
+
openDropdown: CMSIBCommonInterface;
|
|
10
|
+
showProfileIcon: CMSIBCommonInterface;
|
|
11
|
+
showTextFields: CMSIBCommonInterface;
|
|
12
|
+
contentData: CMSIBCommonInterface;
|
|
13
|
+
showDropdownIcon: CMSIBCommonInterface;
|
|
14
|
+
dropdownIcon: CMSIBCommonInterface;
|
|
15
|
+
profileSettings: CMSIBCommonInterface;
|
|
7
16
|
}
|
|
8
17
|
interface selfContentInterface {
|
|
9
18
|
selectorKey: string;
|
|
@@ -20,6 +29,18 @@ export interface selfDesignInterface {
|
|
|
20
29
|
iconSize: CMSIBCommonInterface;
|
|
21
30
|
iconColor: CMSIBCommonInterface;
|
|
22
31
|
};
|
|
32
|
+
dropdownItems: {
|
|
33
|
+
selectorKey: string;
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
};
|
|
36
|
+
profileWidget: {
|
|
37
|
+
selectorKey: string;
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
};
|
|
40
|
+
profileDropdownIcon: {
|
|
41
|
+
selectorKey: string;
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
};
|
|
23
44
|
profileMenuItems: {
|
|
24
45
|
selectorKey: string;
|
|
25
46
|
backgroundColor: CMSIBCommonInterface;
|
|
@@ -52,9 +73,12 @@ export declare enum profileSelectorKeysEnum {
|
|
|
52
73
|
LAYOUT = "layout",
|
|
53
74
|
DESIGN = "design",
|
|
54
75
|
CONTENT = "content",
|
|
55
|
-
|
|
76
|
+
profile_ELEMENT = "profileWidget",
|
|
56
77
|
MINI_profile_TEXT = "profileNameText",
|
|
57
|
-
PROFILE_AVATAR = "profileAvatar"
|
|
78
|
+
PROFILE_AVATAR = "profileAvatar",
|
|
79
|
+
DROPDOWN_ITEMS = "dropdownItems",
|
|
80
|
+
DROPDOWN_ITEMS_HOVER_STYLE = "dropdownItemsHoverStyle",
|
|
81
|
+
DROPDOWN_ITEMS_DEFAULT_STYLE = "dropdownItemsDefaultStyle"
|
|
58
82
|
}
|
|
59
83
|
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & selfContentInterface & CMSElementEditPopupDesignInterface>;
|
|
60
84
|
export {};
|
|
@@ -4,15 +4,29 @@ interface selfLayoutInterface {
|
|
|
4
4
|
selectorKey: string;
|
|
5
5
|
displayStyle: CMSIBCommonInterface;
|
|
6
6
|
displayMinQtyToPurchase: CMSIBCommonInterface;
|
|
7
|
+
labelAndInputSpacing: CMSIBCommonInterface;
|
|
8
|
+
inputAndMinQuantitySpacing: CMSIBCommonInterface;
|
|
9
|
+
[key: string]: any;
|
|
7
10
|
}
|
|
8
11
|
interface selfDesignInterface {
|
|
9
12
|
selectorKey: string;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
widgetStyle: any;
|
|
10
15
|
}
|
|
11
|
-
export declare enum
|
|
16
|
+
export declare enum selfEnums {
|
|
12
17
|
LAYOUT = "layout",
|
|
13
18
|
CONTENT = "content",
|
|
14
19
|
DESIGN = "design",
|
|
15
|
-
DATA_CONNECTOR = "dataConnector"
|
|
20
|
+
DATA_CONNECTOR = "dataConnector",
|
|
21
|
+
WIDGET_STYLE = "widgetStyle",
|
|
22
|
+
SEARCHBAR = "searchBar",
|
|
23
|
+
PLACEHOLDER_TEXT = "placeholderText",
|
|
24
|
+
DROPDOWN_STYLE = "dropdownStyle",
|
|
25
|
+
INCREMENT_BUTTON = "incrementButton",
|
|
26
|
+
DECREMENT_BUTTON = "decrementButton",
|
|
27
|
+
HOVER_STATE = "hover",
|
|
28
|
+
DEFAULT_STATE = "default",
|
|
29
|
+
SELECTED_STATE = "selected"
|
|
16
30
|
}
|
|
17
31
|
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
18
32
|
export {};
|
package/dist/variant-picker.scss
CHANGED
package/dist/widget.scss
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sc-360-v2/storefront-cms-library",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.8",
|
|
4
4
|
"main": "/dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
"import": "./dist/htmlElement.js",
|
|
13
13
|
"types": "./dist/types/html-elements/elements.d.ts"
|
|
14
14
|
},
|
|
15
|
+
"./dataConnectors": {
|
|
16
|
+
"import": "./dist/htmlElement.js",
|
|
17
|
+
"types": "./dist/types/html-elements/elements.d.ts"
|
|
18
|
+
},
|
|
15
19
|
"./css": {
|
|
16
20
|
"import": "./dist/css.js",
|
|
17
21
|
"types": "./dist/types/css/cssVariables.d.ts"
|