@sc-360-v2/storefront-cms-library 0.2.84 → 0.2.86

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.
@@ -4,8 +4,8 @@
4
4
  [data-div-type="element"] {
5
5
  &[data-element-type="code"] {
6
6
  // aspect-ratio: 1 / var(--_sf-aspect-ratio);
7
- width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
8
- margin: var(--_ctm-lt-mn, --_tst-lt-mn);
7
+ // width: var(--_sf-el-wh-st-mx, calc(1% * var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh))));
8
+ // margin: var(--_ctm-lt-mn, --_tst-lt-mn);
9
9
  // min-height: ;
10
10
  // aspect-ratio: 1 / var(--_sf-aspect-ratio);
11
11
  // --_aspect-ratio: calc(
package/dist/menu.scss CHANGED
@@ -114,6 +114,9 @@
114
114
  var(--_ctm-tab-dn-mu-im-se-sw-cr, var(--_ctm-dn-mu-im-se-sw-cr))
115
115
  )
116
116
  );
117
+ &[data-has-link="true"] {
118
+ cursor: pointer;
119
+ }
117
120
 
118
121
  & button {
119
122
  color: var(
package/dist/product.scss CHANGED
@@ -89,6 +89,7 @@ $resizeActive: '[data-cms-element-resizer="true"]';
89
89
  & > div {
90
90
  &.wrapper {
91
91
  width: 100%;
92
+ grid-template-columns: 100% !important;
92
93
  // grid-template-rows: max(var(--_ctm-pro-lt-ht), auto) !important;
93
94
  }
94
95
  }
@@ -30,13 +30,15 @@
30
30
  .quick__links__container .items__container {
31
31
  display: flex;
32
32
  flex-direction: column;
33
+ gap: var(--_ctm-mob-lt-gp-bn-is, var(--_ctm-tab-gp-bn-is, var(--_ctm-lt-gp-bn-is)));
33
34
  }
34
35
  }
35
- &[data-display-style="Wrap horizontal"] {
36
+ &[data-display-style="Wrap Horizontal"] {
36
37
  .quick__links__container .items__container {
37
38
  display: flex;
38
39
  flex-direction: row;
39
40
  flex-wrap: wrap;
41
+ gap: var(--_ctm-mob-lt-gp-bn-is, var(--_ctm-tab-gp-bn-is, var(--_ctm-lt-gp-bn-is)));
40
42
  }
41
43
  }
42
44
 
@@ -314,9 +316,7 @@
314
316
  }
315
317
 
316
318
  .items__container {
317
- gap: var(--_ctm-mob-lt-gp-bn-is, var(--_ctm-tab-gp-bn-is, var(--_ctm-lt-gp-bn-is)));
318
319
  .links__item {
319
- display: inline;
320
320
  background-color: var(
321
321
  --_ctm-mob-dn-im-se-bd-cr,
322
322
  var(--_ctm-tab-dn-im-se-bd-cr, var(--_ctm-dn-im-se-bd-cr))
package/dist/search.scss CHANGED
@@ -141,7 +141,7 @@
141
141
  border: none;
142
142
  padding-left: 10px;
143
143
  border-radius: 4px;
144
- cursor: pointer;
144
+ // cursor: pointer;
145
145
  transition: 0.3s;
146
146
  svg {
147
147
  width: var(
@@ -178,7 +178,7 @@
178
178
  position: absolute;
179
179
  width: 100%;
180
180
  z-index: 1000;
181
- display: none; /* Hidden by default */
181
+ // display: none; /* Hidden by default */
182
182
  cursor: pointer;
183
183
  transition: background 0.2s;
184
184
 
@@ -256,9 +256,9 @@
256
256
  }
257
257
 
258
258
  /* Optional: show dropdown when input is focused (basic) */
259
- .dropdown:focus-within .dropdown-options {
260
- display: block;
261
- }
259
+ // .dropdown:focus-within .dropdown-options {
260
+ // display: block;
261
+ // }
262
262
 
263
263
  &[data-show-shadow="false"] {
264
264
  --_show-shadow: none;
@@ -0,0 +1,125 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+
4
+ [data-div-type="element"] {
5
+ &[data-element-type="spotlight"] {
6
+ width: var(
7
+ --_sf-el-wh-st-mx,
8
+ calc(
9
+ 1% *
10
+ var(
11
+ --_ctm-mob-ele-nw-wh-vl,
12
+ var(--_ctm-tab-ele-nw-wh-vl, var(--_ctm-ele-nw-wh-vl, var(--_sf-nw-wh)))
13
+ )
14
+ )
15
+ );
16
+ height: var(--_ctm-mob-lt-ht, var(--_ctm-tab-lt-ht, var(--_ctm-lt-ht))) !important;
17
+ margin: var(--_ctm-mob-lt-mn, var(--_ctm-tab-lt-mn, var(--_ctm-lt-mn)));
18
+ aspect-ratio: 1 / var(--_sf-aspect-ratio);
19
+ position: relative;
20
+
21
+ & > .wrapper {
22
+ display: flex;
23
+ align-items: center;
24
+ justify-content: center;
25
+ width: 100%;
26
+ height: 100%;
27
+ }
28
+
29
+ .spotlight__section {
30
+ display: flex;
31
+ align-items: center;
32
+ cursor: pointer;
33
+ gap: 8px;
34
+ .spotlight__heading {
35
+ position: relative;
36
+ .spotlight__text {
37
+ color: var(
38
+ --_ctm-mob-dn-spl-tt-cr,
39
+ var(--_ctm-tab-dn-spl-tt-cr, var(--_ctm-dn-spl-tt-cr))
40
+ );
41
+ font-family: var(
42
+ --_ctm-mob-dn-spl-tt-ft-fy,
43
+ var(--_ctm-tab-dn-spl-tt-ft-fy, var(--_ctm-dn-spl-tt-ft-fy))
44
+ ),
45
+ sans-serif;
46
+ font-size: var(
47
+ --_ctm-mob-dn-spl-tt-ft-se,
48
+ var(--_ctm-tab-dn-spl-tt-ft-se, var(--_ctm-dn-spl-tt-ft-se))
49
+ );
50
+ font-weight: var(
51
+ --_ctm-mob-dn-spl-tt-ft-wt,
52
+ var(--_ctm-tab-dn-spl-tt-ft-wt, var(--_ctm-dn-spl-tt-ft-wt))
53
+ );
54
+ font-style: var(
55
+ --_ctm-mob-dn-spl-tt-ft-se-ic,
56
+ var(--_ctm-tab-dn-spl-tt-ft-se-ic, var(--_ctm-dn-spl-tt-ft-se-ic))
57
+ );
58
+ text-align: var(
59
+ --_ctm-mob-dn-spl-tt-tt-an,
60
+ var(--_ctm-tab-dn-spl-tt-tt-an, var(--_ctm-dn-spl-tt-tt-an))
61
+ );
62
+ letter-spacing: var(
63
+ --_ctm-mob-dn-spl-tt-lr-sg,
64
+ var(--_ctm-tab-dn-spl-tt-lr-sg, var(--_ctm-dn-spl-tt-lr-sg))
65
+ );
66
+ line-height: var(
67
+ --_ctm-mob-dn-spl-tt-le-ht,
68
+ var(--_ctm-tab-dn-spl-tt-le-ht, var(--_ctm-dn-spl-tt-le-ht))
69
+ );
70
+ text-decoration: var(
71
+ --_ctm-mob-dn-spl-tt-ue,
72
+ var(--_ctm-tab-dn-spl-tt-ue, var(--_ctm-dn-spl-tt-ue))
73
+ );
74
+ background-color: var(
75
+ --_ctm-mob-dn-spl-tt-bd-cr,
76
+ var(--_ctm-tab-dn-spl-tt-bd-cr, var(--_ctm-dn-spl-tt-bd-cr))
77
+ );
78
+ border-color: var(
79
+ --_ctm-mob-dn-spl-tt-br-cr,
80
+ var(--_ctm-tab-dn-spl-tt-br-cr, var(--_ctm-dn-spl-tt-br-cr))
81
+ );
82
+ border-style: var(
83
+ --_ctm-mob-dn-spl-tt-br-se,
84
+ var(--_ctm-tab-dn-spl-tt-br-se, var(--_ctm-dn-spl-tt-br-se))
85
+ );
86
+ border-width: var(
87
+ --_ctm-mob-dn-spl-tt-br-wh,
88
+ var(--_ctm-tab-dn-spl-tt-br-wh, var(--_ctm-dn-spl-tt-br-wh))
89
+ );
90
+ border-radius: var(
91
+ --_ctm-mob-dn-spl-tt-br-rs,
92
+ var(--_ctm-tab-dn-spl-tt-br-rs, var(--_ctm-dn-spl-tt-br-rs))
93
+ );
94
+ box-shadow: var(
95
+ --_show-text-content-shadow,
96
+ var(
97
+ --_ctm-mob-dn-spl-tt-sw-ae,
98
+ var(--_ctm-tab-dn-spl-tt-sw-ae, var(--_ctm-dn-spl-tt-sw-ae))
99
+ )
100
+ var(
101
+ --_ctm-mob-dn-spl-tt-sw-br,
102
+ var(--_ctm-tab-dn-spl-tt-sw-br, var(--_ctm-dn-spl-tt-sw-br))
103
+ )
104
+ var(
105
+ --_ctm-mob-dn-spl-tt-sw-sd,
106
+ var(--_ctm-tab-dn-spl-tt-sw-sd, var(--_ctm-dn-spl-tt-sw-sd))
107
+ )
108
+ var(
109
+ --_ctm-mob-dn-spl-tt-sw-cr,
110
+ var(--_ctm-tab-dn-spl-tt-sw-cr, var(--_ctm-dn-spl-tt-sw-cr))
111
+ )
112
+ );
113
+ }
114
+ }
115
+ }
116
+
117
+ &[data-widget-shadow="false"] {
118
+ --_show-shadow: none;
119
+ }
120
+
121
+ &[data-show-shadow="false"] {
122
+ --_show-shadow: none;
123
+ }
124
+ }
125
+ }
@@ -15,34 +15,35 @@ export declare enum ScreenSizeEnums {
15
15
  Mobile = "mobile"
16
16
  }
17
17
  export declare enum FormComponentTypeEnum {
18
+ Button = "button",
19
+ Content = "content",
20
+ Custom = "custom",
18
21
  Input = "input",
19
22
  Select = "select",
20
- Textarea = "textarea",
21
- Button = "button",
22
- Content = "content"
23
+ Textarea = "textarea"
23
24
  }
24
25
  export declare enum FormElementTypeEnum {
25
- Text = "text",
26
+ Button = "button",
27
+ Checkbox = "checkbox",
28
+ Date = "date",
29
+ DateTime = "datetime-local",
26
30
  Email = "email",
27
- Tel = "tel",
28
- Url = "url",
31
+ File = "file",
32
+ Heading = "heading",
33
+ Month = "month",
29
34
  Number = "number",
30
35
  Password = "password",
31
- Date = "date",
32
- Textarea = "textarea",
33
- Select = "select",
34
- Checkbox = "checkbox",
35
36
  Radio = "radio",
36
- Button = "button",
37
- Heading1 = "heading1",
38
- Heading2 = "heading2",
39
- Paragraph = "paragraph",
40
- Image = "image",
41
- Video = "video",
42
- ListUnordered = "list-unordered",
43
- ListOrdered = "list-ordered",
44
- Link = "link",
45
- Html = "html"
37
+ Rating = "rating",
38
+ ResetButton = "reset",
39
+ Select = "select",
40
+ SubmitButton = "submit",
41
+ Tel = "tel",
42
+ Text = "text",
43
+ Textarea = "textarea",
44
+ Time = "time",
45
+ Url = "url",
46
+ Week = "week"
46
47
  }
47
48
  export interface FormComponentConfig {
48
49
  icon?: string;
@@ -0,0 +1,63 @@
1
+ import { CommonStyleProperties } from "../../../global/style-properties";
2
+ import { AlignSelfValue, BoxSizingValue, GridAreaValue, HeightValue, JustifySelfValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue, DisplayValue, MarginValue, ResponsiveBehaviourTypes } from "../../../global/types";
3
+ import { CMSGridsContainer } from "../grid";
4
+ import { BuilderAttributes } from "../common";
5
+ export interface SpotlightStyleProperties 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
+ justifySelf?: JustifySelfValue;
15
+ alignSelf?: AlignSelfValue;
16
+ display?: DisplayValue;
17
+ rowGap?: string;
18
+ columnGap?: string;
19
+ gridTemplateRows?: string;
20
+ gridTemplateColumns?: string;
21
+ marginLeft?: MarginValue;
22
+ marginTop?: MarginValue;
23
+ marginBottom?: MarginValue;
24
+ marginRight?: MarginValue;
25
+ }
26
+ export declare const getDefaultStyles: () => SpotlightStyleProperties;
27
+ export declare const getSectionDefaultStyles: () => SpotlightStyleProperties;
28
+ export interface VariationConditionInterface {
29
+ customer?: any[];
30
+ user?: any[];
31
+ relation?: any;
32
+ }
33
+ export interface SectionVariationInterface {
34
+ condition?: VariationConditionInterface;
35
+ attributes?: {
36
+ BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType" | "dataElementType">;
37
+ HTML?: SpotlightStyleProperties;
38
+ CUSTOM?: any;
39
+ };
40
+ styles?: SpotlightStyleProperties;
41
+ editedStyles?: CommonStyleProperties;
42
+ sectionStyles?: CommonStyleProperties;
43
+ grids?: CMSGridsContainer;
44
+ responsiveBehaviour: ResponsiveBehaviourTypes;
45
+ highestGrid?: number | any;
46
+ gtc?: CMSGridsContainer;
47
+ gtr?: CMSGridsContainer;
48
+ childIds: any[];
49
+ }
50
+ export interface CMSSpotlightInterface {
51
+ id?: string | number;
52
+ uniqueKey?: string | number;
53
+ variations?: {
54
+ [key: string]: SectionVariationInterface;
55
+ };
56
+ styles?: SpotlightStyleProperties;
57
+ sort?: number;
58
+ dataContentType?: string;
59
+ isMaximized?: boolean;
60
+ parentKey?: any;
61
+ childIdsV2?: any[];
62
+ children?: any;
63
+ }
@@ -62,7 +62,8 @@ export declare enum CMSToolIdTypes {
62
62
  gridSwapBtn = "cms-grid-swap-btn",
63
63
  lightBox = "cms_lt_bx_mn",
64
64
  lightBoxV2Wrapper = "cms-light-box-wrapper",
65
- marchandiserSetsWrapper = "cms-marchandiser-sets-wrapper"
65
+ marchandiserSetsWrapper = "cms-marchandiser-sets-wrapper",
66
+ spotlightWrapper = "cms-spotlight-wrapper"
66
67
  }
67
68
  export declare enum CMSElementSelectors {
68
69
  iframeSelector = "iframe[data-title='iframe__playground']",
@@ -121,7 +122,8 @@ export declare enum CMSElementSelectors {
121
122
  imageHotspot = "div[data-element-type='imageHotspot']",
122
123
  gridSwapBtn = "div[data-cms-tool='cms-grid-swap-btn']",
123
124
  lightBox = "#cms_lt_bx_mn",
124
- marchandiserSetsElement = "div[data-element-type='marchandiserSets']"
125
+ marchandiserSetsElement = "div[data-element-type='marchandiserSets']",
126
+ spotlightElement = "div[data-element-type='spotlight']"
125
127
  }
126
128
  export declare enum CMSToolAttributes {
127
129
  id = "data-cms-tool",
@@ -295,6 +297,8 @@ export declare const CMSElementsListEnum: {
295
297
  BUY_FOR_WITH_TABS: string;
296
298
  BUY_FOR_TABS_CONTENT_CONTAINER: string;
297
299
  TOASTER: string;
300
+ SPOTLIGHT: string;
301
+ BUNDLE_DETAILS: string;
298
302
  };
299
303
  export declare enum CMSResponsiveModeEnums {
300
304
  DESKTOP = "desktop",
@@ -68,4 +68,5 @@ import * as addOrderSchema from "./elements/add-order/index";
68
68
  import * as buyForTabsSchema from "./elements/buy-for-tab/index";
69
69
  import * as buyForTabsContainerSchema from "./elements/buy-for-tab-container/index";
70
70
  import * as toasterSchema from "./elements/toaster/index";
71
- 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, };
71
+ import * as spotlightSchema from "./elements/spotlight";
72
+ 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, };