@sc-360-v2/storefront-cms-library 0.2.96 → 0.2.98

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/tab-v2.scss CHANGED
@@ -446,15 +446,16 @@ $tabBodyWrapper: #{$tabBody}__wrapper;
446
446
  // width: max-content;
447
447
 
448
448
  font-family: var(
449
- --_sf-tbs-sd-ft-fy,
450
- var(
451
- --_sf-tbs-hr-ft-fy,
449
+ --_sf-tbs-sd-ft-fy,
452
450
  var(
453
- --_ctm-mob-tbs-dn-ts-dt-se-ft-fy,
454
- var(--_ctm-tab-tbs-dn-ts-dt-se-ft-fy, var(--_ctm-tbs-dn-ts-dt-se-ft-fy))
451
+ --_sf-tbs-hr-ft-fy,
452
+ var(
453
+ --_ctm-mob-tbs-dn-ts-dt-se-ft-fy,
454
+ var(--_ctm-tab-tbs-dn-ts-dt-se-ft-fy, var(--_ctm-tbs-dn-ts-dt-se-ft-fy))
455
+ )
455
456
  )
456
- )
457
- );
457
+ ),
458
+ sans-serif;
458
459
  font-size: var(
459
460
  --_sf-tbs-sd-ft-sz,
460
461
  var(
@@ -0,0 +1,47 @@
1
+ import { CommonStyleProperties } from "../../../global/style-properties";
2
+ import { CMSHTMLAttributes } from "../../../global/attributes";
3
+ import { AlignSelfValue, BoxSizingValue, GridAreaValue, HeightValue, ResponsiveBehaviourTypes, JustifySelfValue, MarginValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
4
+ import { BuilderAttributes } from "../common";
5
+ export interface MenuItemStyleProperties 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: () => MenuItemStyleProperties;
22
+ export interface MenuItemElementAttributes extends CMSHTMLAttributes {
23
+ role?: string;
24
+ ariaLabel?: string;
25
+ ariaDescribedBy?: string;
26
+ id?: string;
27
+ className?: string;
28
+ lang?: string;
29
+ dataMeta?: string;
30
+ }
31
+ export interface CMSMenuItemInterface {
32
+ id?: string | number;
33
+ uniqueKey?: string | number;
34
+ children: any;
35
+ childIds: any[];
36
+ parentKey?: any;
37
+ childIdsV2?: any[];
38
+ attributes?: {
39
+ BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType" | "dataElementType" | "dataDropElement">;
40
+ HTML?: MenuItemElementAttributes;
41
+ CUSTOM?: any;
42
+ };
43
+ styles?: MenuItemStyleProperties;
44
+ editedStyles?: CommonStyleProperties;
45
+ responsiveBehaviour: ResponsiveBehaviourTypes;
46
+ previewImage?: string;
47
+ }
@@ -0,0 +1,47 @@
1
+ import { CommonStyleProperties } from "../../../global/style-properties";
2
+ import { CMSHTMLAttributes } from "../../../global/attributes";
3
+ import { AlignSelfValue, BoxSizingValue, GridAreaValue, HeightValue, ResponsiveBehaviourTypes, JustifySelfValue, MarginValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
4
+ import { BuilderAttributes } from "../common";
5
+ export interface MenuV2StyleProperties 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: () => MenuV2StyleProperties;
22
+ export interface MenuV2ElementAttributes extends CMSHTMLAttributes {
23
+ role?: string;
24
+ ariaLabel?: string;
25
+ ariaDescribedBy?: string;
26
+ id?: string;
27
+ className?: string;
28
+ lang?: string;
29
+ dataMeta?: string;
30
+ }
31
+ export interface CMSMenuV2Interface {
32
+ id?: string | number;
33
+ uniqueKey?: string | number;
34
+ children: any;
35
+ childIds: any[];
36
+ parentKey?: any;
37
+ childIdsV2?: any[];
38
+ attributes?: {
39
+ BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType" | "dataElementType" | "dataDropElement">;
40
+ HTML?: MenuV2ElementAttributes;
41
+ CUSTOM?: any;
42
+ };
43
+ styles?: MenuV2StyleProperties;
44
+ editedStyles?: CommonStyleProperties;
45
+ responsiveBehaviour: ResponsiveBehaviourTypes;
46
+ previewImage?: string;
47
+ }
@@ -66,7 +66,9 @@ export declare enum CMSToolIdTypes {
66
66
  lightBoxV2Wrapper = "cms-light-box-wrapper",
67
67
  marchandiserSetsWrapper = "cms-marchandiser-sets-wrapper",
68
68
  spotlightWrapper = "cms-spotlight-wrapper",
69
- TEXTELEMENTDOBLECLICK = "data-cms-tt-ee-dbl-clkd"
69
+ TEXTELEMENTDOBLECLICK = "data-cms-tt-ee-dbl-clkd",
70
+ menuWrapperV2 = "cms-menu-v2-wrapper",
71
+ menuItemWrapper = "cms-menu-item-wrapper"
70
72
  }
71
73
  export declare enum CMSElementSelectors {
72
74
  iframeSelector = "iframe[data-title='iframe__playground']",
@@ -72,4 +72,6 @@ import * as toasterSchema from "./elements/toaster/index";
72
72
  import * as spotlightSchema from "./elements/spotlight";
73
73
  import * as productCustomizationsSchema from "./elements/product-customizations/index";
74
74
  import * as iconListSchema from "./elements/icon-list/index";
75
- 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, 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, };
75
+ import * as menuV2Schema from "./elements/menu-v2/index";
76
+ import * as menuItemSchema from "./elements/menu-item/index";
77
+ 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, 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, };
@@ -124,6 +124,10 @@ interface selfDesignInterface {
124
124
  selectorKey: string;
125
125
  [key: string]: any;
126
126
  };
127
+ widgetStyle: {
128
+ selectorKey: string;
129
+ [key: string]: any;
130
+ };
127
131
  }
128
132
  export declare enum AmountEstimatorsSelectorKeysEnum {
129
133
  LAYOUT = "layout",
@@ -152,7 +156,8 @@ export declare enum AmountEstimatorsSelectorKeysEnum {
152
156
  HOVER_STATE = "hover",
153
157
  DEFAULT_STATE = "default",
154
158
  SELECTED_STATE = "selectedState",
155
- DATA_CONNECTOR = "dataConnector"
159
+ DATA_CONNECTOR = "dataConnector",
160
+ WIDGET_STYLE = "widgetStyle"
156
161
  }
157
162
  export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
158
163
  export {};
@@ -8,7 +8,9 @@ declare enum SelectorKeysEnum {
8
8
  HOVER_STATE = "hoverState",
9
9
  LIST = "list",
10
10
  ICON = "icon",
11
- TEXT = "text"
11
+ TEXT = "text",
12
+ DESCRIPTION = "description",
13
+ TEXTCONTAINER = "textContainer"
12
14
  }
13
15
  export declare const getDefaultData: () => {
14
16
  layout: {
@@ -28,12 +30,6 @@ export declare const getDefaultData: () => {
28
30
  design: {
29
31
  selectorKey: SelectorKeysEnum;
30
32
  list: {
31
- listGap: {
32
- value: number;
33
- unit: CMSCSSUnitTypesEnums;
34
- property: string;
35
- propertyType: CMSElementEditTypes;
36
- };
37
33
  showDivider: {
38
34
  value: boolean;
39
35
  parentRef: string;
@@ -67,6 +63,12 @@ export declare const getDefaultData: () => {
67
63
  propertyType?: any;
68
64
  isReadOnly?: boolean | undefined;
69
65
  };
66
+ listGap: {
67
+ value: number;
68
+ unit: CMSCSSUnitTypesEnums;
69
+ property: string;
70
+ propertyType: CMSElementEditTypes;
71
+ };
70
72
  borderColor: CMSIBCommonInterface;
71
73
  borderStyle: CMSIBCommonInterface;
72
74
  borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
@@ -143,6 +145,69 @@ export declare const getDefaultData: () => {
143
145
  selectorKey: SelectorKeysEnum;
144
146
  };
145
147
  };
148
+ description: {
149
+ theme: CMSIBCommonInterface;
150
+ font: CMSIBCommonInterface;
151
+ fontSize: import("../../interfaces/global").CMSIBSizeInterface;
152
+ textColor: CMSIBCommonInterface;
153
+ bold: CMSIBCommonInterface;
154
+ italic: CMSIBCommonInterface;
155
+ linethrough: CMSIBCommonInterface;
156
+ underline: CMSIBCommonInterface;
157
+ textAlign: CMSIBCommonInterface;
158
+ characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
159
+ lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
160
+ selectorKey: SelectorKeysEnum;
161
+ };
162
+ textContainer: {
163
+ dividerWidth: {
164
+ isSpecial: boolean;
165
+ value: string;
166
+ property: string;
167
+ unit: CMSCSSUnitTypesEnums;
168
+ propertyType: CMSElementEditTypes;
169
+ };
170
+ dividerPosition: {
171
+ value: string;
172
+ property: string;
173
+ propertyType: CMSElementEditTypes;
174
+ };
175
+ showDivider: {
176
+ value: boolean;
177
+ parentRef: string;
178
+ property?: any;
179
+ propertyType?: any;
180
+ isReadOnly?: boolean | undefined;
181
+ };
182
+ dividerStyle: {
183
+ property: string;
184
+ value?: any;
185
+ propertyType?: any;
186
+ isReadOnly?: boolean | undefined;
187
+ parentRef?: string | undefined;
188
+ };
189
+ dividerWeight: {
190
+ value: string;
191
+ property: string;
192
+ unit: CMSCSSUnitTypesEnums;
193
+ propertyType: CMSElementEditTypes;
194
+ };
195
+ dividerColor: {
196
+ property: string;
197
+ value: null;
198
+ parentRef: string;
199
+ propertyType?: any;
200
+ isReadOnly?: boolean | undefined;
201
+ };
202
+ selectorKey: SelectorKeysEnum;
203
+ padding: import("../../interfaces/global").CSSPaddingValues | undefined;
204
+ itemGap: {
205
+ value: CMSCSSUnitTypesEnums;
206
+ unit: CMSCSSUnitTypesEnums;
207
+ property: string;
208
+ propertyType: CMSElementEditTypes;
209
+ };
210
+ };
146
211
  };
147
212
  content: {
148
213
  selectorKey: SelectorKeysEnum;
@@ -151,6 +216,7 @@ export declare const getDefaultData: () => {
151
216
  title: string;
152
217
  contentSource: {
153
218
  title: string;
219
+ description: string;
154
220
  icon: import("../../interfaces/global").CMSIBIconInterface | undefined;
155
221
  content: {};
156
222
  };
@@ -87,4 +87,6 @@ import * as toaster from "./toaster";
87
87
  import * as spotlight from "./spotlight";
88
88
  import * as productCustomizations from "./productCustomizations";
89
89
  import * as iconList from "./icon-list";
90
- 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, };
90
+ import * as menuV2 from "./menu_v2";
91
+ import * as menuItem from "./menu-item";
92
+ 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, };
@@ -0,0 +1,13 @@
1
+ import { CMSIBCommonInterface, PaddingProps } from "../../interfaces/global";
2
+ import { ShowShubMenuType } from "../../../global/types";
3
+ import { CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
4
+ interface selfLayoutInterface {
5
+ selectorKey: string;
6
+ showSubMenu: CMSIBCommonInterface;
7
+ showSubMenuStyle: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
8
+ value: ShowShubMenuType;
9
+ };
10
+ itemGap: Pick<CMSIBCommonInterface, "property" | "propertyType"> & PaddingProps;
11
+ }
12
+ export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface>;
13
+ export {};
@@ -0,0 +1,41 @@
1
+ import { CMSIBCommonInterface, PaddingProps } from "../../interfaces/global";
2
+ import { AlignItemsValue, JustifyContentValue, StackDirectionType } from "../../../global/types";
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
+ declare enum SelectorKeysEnum {
18
+ LAYOUT = "layout",
19
+ CONTENT = "content",
20
+ DESIGN = "design",
21
+ DEFAULT_STATE = "defaultState",
22
+ HOVER_STATE = "hoverState",
23
+ MENU_CONTAINER = "menuContainer",
24
+ MENU_ITEM_STYLE = "menuItemStyle",
25
+ SUB_MENU_CONTAINER = "subMenuContainer",
26
+ SUBMENU_ITEM_STYLE = "subMenuItemStyle",
27
+ HAMBURGER_OPTIONS = "hamburgerOptions",
28
+ HAMBURGER_STYLE = "hamburgerStyle",
29
+ SELECTED_STATE = "selected"
30
+ }
31
+ export interface selfDesignInterface {
32
+ selectorKey: string;
33
+ [SelectorKeysEnum.MENU_CONTAINER]: any;
34
+ [SelectorKeysEnum.MENU_ITEM_STYLE]: any;
35
+ [SelectorKeysEnum.SUB_MENU_CONTAINER]: any;
36
+ [SelectorKeysEnum.SUBMENU_ITEM_STYLE]: any;
37
+ [SelectorKeysEnum.HAMBURGER_OPTIONS]: any;
38
+ [SelectorKeysEnum.HAMBURGER_STYLE]: any;
39
+ }
40
+ export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
41
+ export {};
@@ -6,6 +6,7 @@ interface selfLayoutInterface {
6
6
  showSearchText: CMSIBCommonInterface;
7
7
  searchText: CMSIBCommonInterface;
8
8
  showNoOfItems: CMSIBCommonInterface;
9
+ searchPlaceholderText: CMSIBCommonInterface;
9
10
  }
10
11
  export interface selfDesignInterface {
11
12
  selectorKey: string;
@@ -33,6 +33,7 @@ export type GlobalVideoAttributes = "src" | "poster" | "controls" | "autoplay" |
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
35
  export type StackDirectionType = "horizontal" | "vertical";
36
+ export type ShowShubMenuType = "On Hover" | "On Click";
36
37
  export type ObjectFitValue = "fill" | "contain" | "cover" | "none" | "scale-down" | string;
37
38
  export type ObjectPositionValue = string;
38
39
  export type RepeaterDisplayStyleType = "grid" | "list" | "slider" | "cards";
package/dist/widget.scss CHANGED
@@ -100,3 +100,4 @@
100
100
  @use "./product-customizations.scss";
101
101
  @use "./bulk-order-pad.scss";
102
102
  @use "./icon-list.scss";
103
+ @use "./menu-v2.scss";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sc-360-v2/storefront-cms-library",
3
- "version": "0.2.96",
3
+ "version": "0.2.98",
4
4
  "main": "/dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {