@sc-360-v2/storefront-cms-library 0.3.20 → 0.3.22
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/cart-details.scss +486 -132
- package/dist/cartAttributes.scss +65 -1
- package/dist/cartDropdownOverlay.scss +46 -6
- package/dist/checkout.scss +914 -110
- package/dist/container.scss +2 -0
- package/dist/faq.scss +79 -84
- package/dist/language-selector.scss +451 -0
- package/dist/product-image.scss +3 -0
- package/dist/quantity-selector.scss +1 -16
- package/dist/section.scss +1 -0
- package/dist/types/builder/elements/container/index.d.ts +0 -1
- package/dist/types/builder/elements/form-builder/index.d.ts +24 -0
- package/dist/types/builder/elements/section/index.d.ts +0 -1
- package/dist/types/builder/enums/index.d.ts +1 -0
- package/dist/types/builder/tools/element-edit/cartDetails.d.ts +21 -2
- package/dist/types/builder/tools/element-edit/checkout.d.ts +1 -93
- package/dist/types/builder/tools/element-edit/index.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/language-menu.d.ts +31 -0
- package/dist/types/builder/tools/element-edit/tabs.d.ts +0 -1
- package/dist/widget.scss +1 -0
- package/package.json +1 -1
|
@@ -340,8 +340,6 @@
|
|
|
340
340
|
position: relative;
|
|
341
341
|
width: 100%;
|
|
342
342
|
margin-top: 0px;
|
|
343
|
-
width: prepareMediaVariable(--_ctm-dn-dn-se-wh);
|
|
344
|
-
|
|
345
343
|
label {
|
|
346
344
|
font-size: 14px;
|
|
347
345
|
color: var(--_gray-700);
|
|
@@ -443,10 +441,7 @@
|
|
|
443
441
|
--_ctm-mob-dn-dn-se-on-ad-lt-sg,
|
|
444
442
|
var(--_ctm-tab-dn-dn-se-on-ad-lt-sg, var(--_ctm-dn-dn-se-on-ad-lt-sg))
|
|
445
443
|
);
|
|
446
|
-
gap: var(
|
|
447
|
-
--_ctm-mob-dn-dn-se-dn-lt-im-sg,
|
|
448
|
-
var(--_ctm-tab-dn-dn-se-dn-lt-im-sg, var(--_ctm-dn-dn-se-dn-lt-im-sg))
|
|
449
|
-
);
|
|
444
|
+
gap: var(--_ctm-mob-lt-gp-bn-is, var(--_ctm-tab-lt-gp-bn-is, var(--_ctm-lt-gp-bn-is)));
|
|
450
445
|
|
|
451
446
|
&.top {
|
|
452
447
|
bottom: 100%;
|
|
@@ -454,17 +449,7 @@
|
|
|
454
449
|
}
|
|
455
450
|
|
|
456
451
|
.list__option {
|
|
457
|
-
padding: 12px;
|
|
458
452
|
cursor: pointer;
|
|
459
|
-
padding: var(
|
|
460
|
-
--_ctm-mob-dn-dn-se-dn-lt-im-pg,
|
|
461
|
-
var(--_ctm-tab-dn-dn-se-dn-lt-im-pg, var(--_ctm-dn-dn-se-dn-lt-im-pg))
|
|
462
|
-
);
|
|
463
|
-
|
|
464
|
-
&:hover {
|
|
465
|
-
background-color: var(--_primary-25);
|
|
466
|
-
color: var(--_primary-400);
|
|
467
|
-
}
|
|
468
453
|
}
|
|
469
454
|
}
|
|
470
455
|
}
|
package/dist/section.scss
CHANGED
|
@@ -90,6 +90,7 @@ section {
|
|
|
90
90
|
&[data-div-type="cms-section-wrapper"] {
|
|
91
91
|
// max-width: var(--_sf-wp-mx-wt);
|
|
92
92
|
max-width: prepareMediaVariable(--_ctm-sec-lt-wh);
|
|
93
|
+
// min-height: prepareMediaVariable(--_ctm-sec-lt-mn-ht);
|
|
93
94
|
margin-inline: auto;
|
|
94
95
|
position: var(--_p-relative);
|
|
95
96
|
width: 100%;
|
|
@@ -3,7 +3,6 @@ import { CommonStyleProperties } from "../../../global/style-properties";
|
|
|
3
3
|
import { DisplayValue, ResponsiveBehaviourTypes } from "../../../global/types";
|
|
4
4
|
import { BuilderAttributes } from "../common";
|
|
5
5
|
export interface ContainerStyleProperties extends CommonStyleProperties {
|
|
6
|
-
minHeight: string;
|
|
7
6
|
minWidth: string;
|
|
8
7
|
maxWidth: string;
|
|
9
8
|
maxHeight: string;
|
|
@@ -108,6 +108,7 @@ export interface FormComponentConfig {
|
|
|
108
108
|
options?: string[];
|
|
109
109
|
src?: string;
|
|
110
110
|
captionsSrc?: string;
|
|
111
|
+
customAttributeKey?: string;
|
|
111
112
|
href?: string;
|
|
112
113
|
html?: string;
|
|
113
114
|
showElementProperties: ElementSettingEnum[];
|
|
@@ -186,3 +187,26 @@ export declare const genderConstant: {
|
|
|
186
187
|
label: string;
|
|
187
188
|
value: GENDEREnum;
|
|
188
189
|
}[];
|
|
190
|
+
export declare enum AttributeDataType {
|
|
191
|
+
STRING = 1,
|
|
192
|
+
DATE = 2,
|
|
193
|
+
INTEGER = 3,
|
|
194
|
+
FILE = 4,
|
|
195
|
+
IMAGE = 5,
|
|
196
|
+
COLORPICKER = 6,
|
|
197
|
+
CURRENCY = 7,
|
|
198
|
+
BOOLEAN = 8,
|
|
199
|
+
BIGINTEGER = 9,
|
|
200
|
+
DATEANDTIME = 10,
|
|
201
|
+
DECIMAL = 11,
|
|
202
|
+
MULTISELECT = 12,
|
|
203
|
+
PERCENT = 13,
|
|
204
|
+
SELECT = 14,
|
|
205
|
+
TEXTEDITOR = 15
|
|
206
|
+
}
|
|
207
|
+
export declare function getCompTypeByAttrId(dataTypeId: AttributeDataType): {
|
|
208
|
+
id: FormElementIdEnum;
|
|
209
|
+
type: FormComponentTypeEnum;
|
|
210
|
+
fieldType: FormElementTypeEnum;
|
|
211
|
+
key: string;
|
|
212
|
+
};
|
|
@@ -14,7 +14,8 @@ export declare enum SelectorKeysEnum {
|
|
|
14
14
|
PRODUCT_NAME_STYLES = "productNameStyles",
|
|
15
15
|
PRODUCT_PRICE_STYLES = "productPriceStyles",
|
|
16
16
|
PRODUCT_INFORMATION_STYLES = "productInformationStyles",
|
|
17
|
-
PRODUCT_QUANTITY_STYLES = "productQuantityStyles"
|
|
17
|
+
PRODUCT_QUANTITY_STYLES = "productQuantityStyles",
|
|
18
|
+
PRODUCT_IMAGE_STYLES = "productImageStyles"
|
|
18
19
|
}
|
|
19
20
|
export declare const getDefaultData: () => {
|
|
20
21
|
layout: {
|
|
@@ -139,7 +140,14 @@ export declare const getDefaultData: () => {
|
|
|
139
140
|
angle: import("../../interfaces/global").CMSIBSizeInterface;
|
|
140
141
|
};
|
|
141
142
|
cartActionStyles: {
|
|
142
|
-
|
|
143
|
+
padding: import("../../interfaces/global").CSSPaddingValues | undefined;
|
|
144
|
+
itemGap: {
|
|
145
|
+
value: CMSCSSUnitTypesEnums;
|
|
146
|
+
unit: CMSCSSUnitTypesEnums;
|
|
147
|
+
property: string;
|
|
148
|
+
propertyType: CMSElementEditTypes;
|
|
149
|
+
};
|
|
150
|
+
theme: CMSIBCommonInterface;
|
|
143
151
|
font: CMSIBCommonInterface;
|
|
144
152
|
fontSize: import("../../interfaces/global").CMSIBSizeInterface;
|
|
145
153
|
textColor: CMSIBCommonInterface;
|
|
@@ -149,6 +157,9 @@ export declare const getDefaultData: () => {
|
|
|
149
157
|
underline: CMSIBCommonInterface;
|
|
150
158
|
textAlign: CMSIBCommonInterface;
|
|
151
159
|
characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
|
|
160
|
+
lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
|
|
161
|
+
backgroundColor: CMSIBCommonInterface;
|
|
162
|
+
selectorKey: SelectorKeysEnum;
|
|
152
163
|
};
|
|
153
164
|
cartItemStyles: {
|
|
154
165
|
selectorKey: SelectorKeysEnum;
|
|
@@ -292,6 +303,14 @@ export declare const getDefaultData: () => {
|
|
|
292
303
|
shadows: import("../../interfaces/global").CMSIBSizeInterface;
|
|
293
304
|
selectorKey: SelectorKeysEnum;
|
|
294
305
|
};
|
|
306
|
+
productImageStyles: {
|
|
307
|
+
selectorKey: SelectorKeysEnum;
|
|
308
|
+
borderColor: CMSIBCommonInterface;
|
|
309
|
+
borderStyle: CMSIBCommonInterface;
|
|
310
|
+
borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
|
|
311
|
+
showBorder: CMSIBCommonInterface;
|
|
312
|
+
showShadow: CMSIBCommonInterface;
|
|
313
|
+
};
|
|
295
314
|
};
|
|
296
315
|
content: {
|
|
297
316
|
selectorKey: SelectorKeysEnum;
|
|
@@ -55,6 +55,7 @@ export declare const getDefaultData: () => {
|
|
|
55
55
|
value: number;
|
|
56
56
|
property: string;
|
|
57
57
|
propertyType: CMSElementEditTypes;
|
|
58
|
+
unit: number;
|
|
58
59
|
};
|
|
59
60
|
};
|
|
60
61
|
design: {
|
|
@@ -259,99 +260,6 @@ export declare const getDefaultData: () => {
|
|
|
259
260
|
shadows: import("../../interfaces/global").CMSIBSizeInterface;
|
|
260
261
|
selectorKey: SelectorKeysEnum;
|
|
261
262
|
};
|
|
262
|
-
paymentOptionsButtonDesign: {
|
|
263
|
-
selectorKey: SelectorKeysEnum;
|
|
264
|
-
defaultState: {
|
|
265
|
-
borderColor: import("../../interfaces/global").CMSIBCommonInterface;
|
|
266
|
-
borderStyle: import("../../interfaces/global").CMSIBCommonInterface;
|
|
267
|
-
borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
|
|
268
|
-
showBorder: import("../../interfaces/global").CMSIBCommonInterface;
|
|
269
|
-
backgroundColor: import("../../interfaces/global").CMSIBCommonInterface;
|
|
270
|
-
showShadow: import("../../interfaces/global").CMSIBCommonInterface;
|
|
271
|
-
shadowColor: import("../../interfaces/global").CMSIBCommonInterface;
|
|
272
|
-
blur: import("../../interfaces/global").CMSIBSizeInterface;
|
|
273
|
-
spread: import("../../interfaces/global").CMSIBSizeInterface;
|
|
274
|
-
angle: import("../../interfaces/global").CMSIBSizeInterface;
|
|
275
|
-
borderRadius: import("../../interfaces/global").CSSPaddingValues;
|
|
276
|
-
exposure: import("../../interfaces/global").CMSIBSizeInterface;
|
|
277
|
-
contrast: import("../../interfaces/global").CMSIBSizeInterface;
|
|
278
|
-
saturation: import("../../interfaces/global").CMSIBSizeInterface;
|
|
279
|
-
highlights: import("../../interfaces/global").CMSIBSizeInterface;
|
|
280
|
-
shadows: import("../../interfaces/global").CMSIBSizeInterface;
|
|
281
|
-
theme: import("../../interfaces/global").CMSIBCommonInterface;
|
|
282
|
-
font: import("../../interfaces/global").CMSIBCommonInterface;
|
|
283
|
-
fontSize: import("../../interfaces/global").CMSIBSizeInterface;
|
|
284
|
-
textColor: import("../../interfaces/global").CMSIBCommonInterface;
|
|
285
|
-
bold: import("../../interfaces/global").CMSIBCommonInterface;
|
|
286
|
-
italic: import("../../interfaces/global").CMSIBCommonInterface;
|
|
287
|
-
linethrough: import("../../interfaces/global").CMSIBCommonInterface;
|
|
288
|
-
underline: import("../../interfaces/global").CMSIBCommonInterface;
|
|
289
|
-
textAlign: import("../../interfaces/global").CMSIBCommonInterface;
|
|
290
|
-
characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
|
|
291
|
-
lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
|
|
292
|
-
selectorKey: SelectorKeysEnum;
|
|
293
|
-
};
|
|
294
|
-
hoverState: {
|
|
295
|
-
borderColor: import("../../interfaces/global").CMSIBCommonInterface;
|
|
296
|
-
borderStyle: import("../../interfaces/global").CMSIBCommonInterface;
|
|
297
|
-
borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
|
|
298
|
-
showBorder: import("../../interfaces/global").CMSIBCommonInterface;
|
|
299
|
-
backgroundColor: import("../../interfaces/global").CMSIBCommonInterface;
|
|
300
|
-
showShadow: import("../../interfaces/global").CMSIBCommonInterface;
|
|
301
|
-
shadowColor: import("../../interfaces/global").CMSIBCommonInterface;
|
|
302
|
-
blur: import("../../interfaces/global").CMSIBSizeInterface;
|
|
303
|
-
spread: import("../../interfaces/global").CMSIBSizeInterface;
|
|
304
|
-
angle: import("../../interfaces/global").CMSIBSizeInterface;
|
|
305
|
-
borderRadius: import("../../interfaces/global").CSSPaddingValues;
|
|
306
|
-
exposure: import("../../interfaces/global").CMSIBSizeInterface;
|
|
307
|
-
contrast: import("../../interfaces/global").CMSIBSizeInterface;
|
|
308
|
-
saturation: import("../../interfaces/global").CMSIBSizeInterface;
|
|
309
|
-
highlights: import("../../interfaces/global").CMSIBSizeInterface;
|
|
310
|
-
shadows: import("../../interfaces/global").CMSIBSizeInterface;
|
|
311
|
-
theme: import("../../interfaces/global").CMSIBCommonInterface;
|
|
312
|
-
font: import("../../interfaces/global").CMSIBCommonInterface;
|
|
313
|
-
fontSize: import("../../interfaces/global").CMSIBSizeInterface;
|
|
314
|
-
textColor: import("../../interfaces/global").CMSIBCommonInterface;
|
|
315
|
-
bold: import("../../interfaces/global").CMSIBCommonInterface;
|
|
316
|
-
italic: import("../../interfaces/global").CMSIBCommonInterface;
|
|
317
|
-
linethrough: import("../../interfaces/global").CMSIBCommonInterface;
|
|
318
|
-
underline: import("../../interfaces/global").CMSIBCommonInterface;
|
|
319
|
-
textAlign: import("../../interfaces/global").CMSIBCommonInterface;
|
|
320
|
-
characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
|
|
321
|
-
lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
|
|
322
|
-
selectorKey: SelectorKeysEnum;
|
|
323
|
-
};
|
|
324
|
-
selectedState: {
|
|
325
|
-
borderColor: import("../../interfaces/global").CMSIBCommonInterface;
|
|
326
|
-
borderStyle: import("../../interfaces/global").CMSIBCommonInterface;
|
|
327
|
-
borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
|
|
328
|
-
showBorder: import("../../interfaces/global").CMSIBCommonInterface;
|
|
329
|
-
backgroundColor: import("../../interfaces/global").CMSIBCommonInterface;
|
|
330
|
-
showShadow: import("../../interfaces/global").CMSIBCommonInterface;
|
|
331
|
-
shadowColor: import("../../interfaces/global").CMSIBCommonInterface;
|
|
332
|
-
blur: import("../../interfaces/global").CMSIBSizeInterface;
|
|
333
|
-
spread: import("../../interfaces/global").CMSIBSizeInterface;
|
|
334
|
-
angle: import("../../interfaces/global").CMSIBSizeInterface;
|
|
335
|
-
borderRadius: import("../../interfaces/global").CSSPaddingValues;
|
|
336
|
-
exposure: import("../../interfaces/global").CMSIBSizeInterface;
|
|
337
|
-
contrast: import("../../interfaces/global").CMSIBSizeInterface;
|
|
338
|
-
saturation: import("../../interfaces/global").CMSIBSizeInterface;
|
|
339
|
-
highlights: import("../../interfaces/global").CMSIBSizeInterface;
|
|
340
|
-
shadows: import("../../interfaces/global").CMSIBSizeInterface;
|
|
341
|
-
theme: import("../../interfaces/global").CMSIBCommonInterface;
|
|
342
|
-
font: import("../../interfaces/global").CMSIBCommonInterface;
|
|
343
|
-
fontSize: import("../../interfaces/global").CMSIBSizeInterface;
|
|
344
|
-
textColor: import("../../interfaces/global").CMSIBCommonInterface;
|
|
345
|
-
bold: import("../../interfaces/global").CMSIBCommonInterface;
|
|
346
|
-
italic: import("../../interfaces/global").CMSIBCommonInterface;
|
|
347
|
-
linethrough: import("../../interfaces/global").CMSIBCommonInterface;
|
|
348
|
-
underline: import("../../interfaces/global").CMSIBCommonInterface;
|
|
349
|
-
textAlign: import("../../interfaces/global").CMSIBCommonInterface;
|
|
350
|
-
characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
|
|
351
|
-
lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
|
|
352
|
-
selectorKey: SelectorKeysEnum;
|
|
353
|
-
};
|
|
354
|
-
};
|
|
355
263
|
primaryValueTextDesign: {
|
|
356
264
|
theme: import("../../interfaces/global").CMSIBCommonInterface;
|
|
357
265
|
font: import("../../interfaces/global").CMSIBCommonInterface;
|
|
@@ -95,5 +95,6 @@ import * as filterResults from "./filterResults";
|
|
|
95
95
|
import * as productSizeChart from "./productSizeChart";
|
|
96
96
|
import * as userElements from "./userElements";
|
|
97
97
|
import * as badge from "./badge";
|
|
98
|
+
import * as languageMenu from "./language-menu";
|
|
98
99
|
import * as cartAttributes from "./cartAttributes";
|
|
99
|
-
export { amountEstimator, bulkVariantPicker, button, code, staticText, common, container, countdown, embed, faq, gallerySlider, grid, image, imageHotspot, map, paymentMethods, pickupLocations, price, productActions, productHighlights, productImage, productInventory, productPromotions, quantitySelector, scroll, section, shippingEstimator, slideShowLayouter, social, stack, storeLocations, table, tabs, text, uomSelector, variantPicker, video, volumePricing, lightbox, cart, profile, repeater, repeaterItem, product, menu, productOptions, productDetails, category, subCategory, brand, bundle, brandImage, filters, sort, pastOrders, quotes, rfqs, lightBoxV2, allocations, search, layouter, layouterItem, categoryDetails, contactUs, login, resetPassword, breadcrumbs, iconLibrary, searchResultsHeading, itemStock, cartDetails, cartSummary, checkout, allocationDetails, line, tabsV2, tabContainer, marchandiserSets, createForm, quickLinks, addOrder, buyForWithTabs, buyForTabsContainer, toaster, spotlight, bundleDetails, productCustomizations, iconList, orderStatus, menuV2, menuItem, layouterPro, layouterProItem, filterResults, productSizeChart, userElements, badge, cartAttributes, };
|
|
100
|
+
export { amountEstimator, bulkVariantPicker, button, code, staticText, common, container, countdown, embed, faq, gallerySlider, grid, image, imageHotspot, map, paymentMethods, pickupLocations, price, productActions, productHighlights, productImage, productInventory, productPromotions, quantitySelector, scroll, section, shippingEstimator, slideShowLayouter, social, stack, storeLocations, table, tabs, text, uomSelector, variantPicker, video, volumePricing, lightbox, cart, profile, repeater, repeaterItem, product, menu, productOptions, productDetails, category, subCategory, brand, bundle, brandImage, filters, sort, pastOrders, quotes, rfqs, lightBoxV2, allocations, search, layouter, layouterItem, categoryDetails, contactUs, login, resetPassword, breadcrumbs, iconLibrary, searchResultsHeading, itemStock, cartDetails, cartSummary, checkout, allocationDetails, line, tabsV2, tabContainer, marchandiserSets, createForm, quickLinks, addOrder, buyForWithTabs, buyForTabsContainer, toaster, spotlight, bundleDetails, productCustomizations, iconList, orderStatus, menuV2, menuItem, layouterPro, layouterProItem, filterResults, productSizeChart, userElements, badge, cartAttributes, languageMenu, };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CMSIBCommonInterface } from "../../interfaces/global";
|
|
2
|
+
import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
|
|
3
|
+
interface selfLayoutInterface {
|
|
4
|
+
selectorKey: string;
|
|
5
|
+
whenClicked: CMSIBCommonInterface;
|
|
6
|
+
showSearchText: CMSIBCommonInterface;
|
|
7
|
+
searchText: CMSIBCommonInterface;
|
|
8
|
+
showNoOfItems: CMSIBCommonInterface;
|
|
9
|
+
searchPlaceholderText: CMSIBCommonInterface;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
export interface selfDesignInterface {
|
|
13
|
+
selectorKey: string;
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}
|
|
16
|
+
export declare enum selfEnums {
|
|
17
|
+
LAYOUT = "layout",
|
|
18
|
+
DESIGN = "design",
|
|
19
|
+
SEARCHBAR = "searchBar",
|
|
20
|
+
PLACEHOLDER_TEXT = "placeholderText",
|
|
21
|
+
SEARCH_ICON = "searchIcon",
|
|
22
|
+
MINI_CART_TEXT = "miniSearchText",
|
|
23
|
+
DROPDOWN_DISPLAY_STYLE = "dropdownDisplayStyle",
|
|
24
|
+
WIDGET_STYLE = "widgetStyle",
|
|
25
|
+
OPTION_STYLE = "optionStyle",
|
|
26
|
+
HOVER_STATE = "hover",
|
|
27
|
+
SELECTED_STATE = "selected",
|
|
28
|
+
DEFAULT_STATE = "default"
|
|
29
|
+
}
|
|
30
|
+
export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
|
|
31
|
+
export {};
|
package/dist/widget.scss
CHANGED