@sc-360-v2/storefront-cms-library 0.1.6 → 0.1.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.
@@ -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,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,8 @@ 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
+ 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, };
@@ -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 {};
@@ -47,17 +47,37 @@ export interface selfDesignInterface {
47
47
  };
48
48
  itemStyle: {
49
49
  selectorKey: string;
50
- imageRatio: CMSIBCommonInterface;
51
- fitOptions: CMSIBCommonInterface;
52
- textLayout: CMSIBCommonInterface;
53
- itemTitleAndDescriptionAlignment: CMSIBCommonInterface;
54
- textVerticalPadding: CMSIBCommonInterface;
55
- texHorizontalPadding: CMSIBCommonInterface;
56
- titleAndDescriptionSpacing: CMSIBCommonInterface;
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;
57
75
  };
58
76
  paginationArrows: {
59
77
  selectorKey: string;
60
78
  arrowIconStyle: CMSIBCommonInterface;
79
+ leftArrowIconStyle: CMSIBCommonInterface;
80
+ rightArrowIconStyle: CMSIBCommonInterface;
61
81
  backgroundShape: CMSIBCommonInterface;
62
82
  arrowSize: CMSIBCommonInterface;
63
83
  arrowColor: CMSIBCommonInterface;
@@ -31,4 +31,8 @@ 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
+ 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, };
@@ -16,7 +16,7 @@ export interface selfContentInterface {
16
16
  selectorKey: string;
17
17
  productName: controlInterface;
18
18
  productCodes: controlInterface;
19
- varientCodes: controlInterface;
19
+ variantCodes: controlInterface;
20
20
  productImages: controlInterface;
21
21
  prices: controlInterface;
22
22
  productDescription: controlInterface;
@@ -6,7 +6,7 @@ interface selfLayoutInterface {
6
6
  dividerBetweenItems: CMSIBCommonInterface;
7
7
  itemSpacing: CMSIBCommonInterface;
8
8
  itemPadding: CMSIBCommonInterface;
9
- ItemContentAlignment: CMSIBCommonInterface;
9
+ itemContentAlignment: CMSIBCommonInterface;
10
10
  overflowItems: CMSIBCommonInterface;
11
11
  maxItemsToDisplay: CMSIBCommonInterface;
12
12
  header: CMSIBCommonInterface;
@@ -9,7 +9,11 @@ export interface selfDesignInterface {
9
9
  }
10
10
  export declare enum sectionSelectorKeysEnum {
11
11
  LAYOUT = "layout",
12
- DESIGN = "design"
12
+ DESIGN = "design",
13
+ SETTINGS = "settings",
14
+ VISIBILITY = "visibility",
15
+ SCHEDULES = "schedules",
16
+ DEVICE_VISIBILITY = "deviceVisibility"
13
17
  }
14
18
  export declare const getDefaultData: (contentWidth: any) => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
15
19
  export {};
@@ -0,0 +1,25 @@
1
+ import { AlignItemsValue, JustifyContentValue, StackDirectionType } from "../../../global/types";
2
+ import { CMSIBCommonInterface, PaddingProps } from "../../interfaces/global";
3
+ import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
4
+ interface selfLayoutInterface {
5
+ selectorKey: string;
6
+ direction: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
7
+ value: StackDirectionType;
8
+ };
9
+ itemGap: Pick<CMSIBCommonInterface, "property" | "propertyType"> & PaddingProps;
10
+ justifyContent: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
11
+ value: JustifyContentValue;
12
+ };
13
+ alignItems: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
14
+ value: AlignItemsValue;
15
+ };
16
+ }
17
+ export interface selfDesignInterface {
18
+ selectorKey: string;
19
+ }
20
+ export declare enum selfSelectorKeysEnum {
21
+ LAYOUT = "layout",
22
+ DESIGN = "design"
23
+ }
24
+ export declare const getDefaultData: (contentWidth: any) => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
25
+ export {};
@@ -0,0 +1,39 @@
1
+ import { CMSIBCommonInterface } from "../../interfaces/global";
2
+ import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
3
+ interface selfLayoutInterface {
4
+ selectorKey: string;
5
+ displayFormat: CMSIBCommonInterface;
6
+ showUOMPrice: CMSIBCommonInterface;
7
+ itemSpacing: CMSIBCommonInterface;
8
+ maxItemsToDisplay: CMSIBCommonInterface;
9
+ overflowControl: CMSIBCommonInterface;
10
+ onClick: CMSIBCommonInterface;
11
+ header: CMSIBCommonInterface;
12
+ headerHeight: CMSIBCommonInterface;
13
+ rowHeight: CMSIBCommonInterface;
14
+ headerDivider: CMSIBCommonInterface;
15
+ rowDivider: CMSIBCommonInterface;
16
+ columnDivider: CMSIBCommonInterface;
17
+ alternativeRowColors: CMSIBCommonInterface;
18
+ headerCellPadding: CMSIBCommonInterface;
19
+ rowCellPadding: CMSIBCommonInterface;
20
+ contentAlignment: CMSIBCommonInterface;
21
+ rowsPerPage: CMSIBCommonInterface;
22
+ paginationType: CMSIBCommonInterface;
23
+ paginationAliginment: CMSIBCommonInterface;
24
+ imageBehavior: CMSIBCommonInterface;
25
+ itemsPerRow: CMSIBCommonInterface;
26
+ itemPadding: CMSIBCommonInterface;
27
+ ItemContentAlignment: CMSIBCommonInterface;
28
+ overflowItems: CMSIBCommonInterface;
29
+ }
30
+ interface selfDesignInterface {
31
+ selectorKey: string;
32
+ }
33
+ export declare enum UOMSelectorKeysEnum {
34
+ LAYOUT = "layout",
35
+ CONTENT = "content",
36
+ DESIGN = "design"
37
+ }
38
+ export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
39
+ export {};
@@ -0,0 +1,119 @@
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
+ collapseIconPosition: CMSIBCommonInterface;
77
+ };
78
+ tableDisplayStyle: {
79
+ selectorKey: string;
80
+ header: CMSIBCommonInterface;
81
+ headerHeight: CMSIBCommonInterface;
82
+ rowHeight: CMSIBCommonInterface;
83
+ headerDivider: CMSIBCommonInterface;
84
+ rowDivider: CMSIBCommonInterface;
85
+ columnDivider: CMSIBCommonInterface;
86
+ alternativeRowColors: CMSIBCommonInterface;
87
+ headerCellPadding: CMSIBCommonInterface;
88
+ rowCellPadding: CMSIBCommonInterface;
89
+ contentAlignment: CMSIBCommonInterface;
90
+ rowsPerPage: CMSIBCommonInterface;
91
+ overflowControl: CMSIBCommonInterface;
92
+ showMoreRows: CMSIBCommonInterface;
93
+ paginationType: CMSIBCommonInterface;
94
+ paginationAliginment: CMSIBCommonInterface;
95
+ };
96
+ groupedTableDisplayStyle: {
97
+ selectorKey: string;
98
+ groupsDisplayStyle: CMSIBCommonInterface;
99
+ groupSpacing: CMSIBCommonInterface;
100
+ groupPadding: CMSIBCommonInterface;
101
+ groupHeaderAndOptionSpacing: CMSIBCommonInterface;
102
+ };
103
+ }
104
+ interface selfDesignInterface {
105
+ selectorKey: string;
106
+ }
107
+ export declare enum VariantPickerSelectorKeysEnum {
108
+ LAYOUT = "layout",
109
+ CONTENT = "content",
110
+ DESIGN = "design",
111
+ SWATFH_TYPE_DISPLAY_STYLE = "swatchTypeDisplayStyle",
112
+ SINGLE_SELECT_DISPLAY_STYLE = "singleSelectDisplayStyle",
113
+ DROPDOWN_DISPLAY_STYLE = "dropdownDisplayStyle",
114
+ GROUPED_OPTION_DISPLAY_STYLE = "groupedOptionsDisplayStyle",
115
+ TABLE_DISPLAY_STYLE = "tableDisplayStyle",
116
+ GROUPED_TABLE_DISPLAY_STYLE = "groupedTableDisplayStyle"
117
+ }
118
+ export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
119
+ export {};
@@ -1,3 +1,4 @@
1
1
  export { default as HTMLElements } from "./html-elements/elements";
2
2
  export { default as cssFunctions } from "./css/cssVariables";
3
3
  export { default as CMSSvgIcons } from "./icons/cms-svg-icons";
4
+ export { default as SvgIcons } from "./icons/svg-icons";
@@ -32,5 +32,6 @@ export type CMSEditControlsTypes = "Slider" | "Settings" | string;
32
32
  export type GlobalVideoAttributes = "src" | "poster" | "controls" | "autoplay" | "loop" | "muted" | "preload" | "crossOrigin" | "playsInline";
33
33
  export type CommonBuilderAttributes = "dataDivType" | "dataType" | "dataElementType" | "dataWidgetType" | "dataElementSubChild";
34
34
  export type GlobalTableAttributes = "cellPadding" | "cellSpacing" | "border" | "width" | "height" | "align" | "bgColor" | "frame" | "headers" | "rows" | "rules";
35
+ export type StackDirectionType = "horizontal" | "vertical";
35
36
  export type ObjectFitValue = "fill" | "contain" | "cover" | "none" | "scale-down" | string;
36
37
  export type ObjectPositionValue = string;
@@ -1,2 +1,3 @@
1
1
  import CMSSVG from "./cms-svg-icons";
2
- export { CMSSVG };
2
+ import SVG from "./svg-icons";
3
+ export { CMSSVG, SVG };
@@ -0,0 +1,5 @@
1
+ /**
2
+ *
3
+ * @param {string} type - Please Enter SVG Type.
4
+ */
5
+ export default function SVG(type: string, size?: string, color?: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
@@ -46,7 +46,7 @@
46
46
  "lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --max-warnings=0",
47
47
  "lint:fix": "eslint src --ext .js,.jsx,.ts,.tsx --fix",
48
48
  "prettier": "prettier --write 'src/**/*.{js,jsx,ts,tsx,json,css,scss,md}'",
49
- "publish": "npm publish --access public"
49
+ "deploy": "npm publish --access public"
50
50
  },
51
51
  "dependencies": {
52
52
  "@babel/runtime": "^7.25.6",