@sc-360-v2/storefront-cms-library 0.2.82 → 0.2.85

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(
@@ -144,4 +144,16 @@
144
144
  color: #777;
145
145
  line-height: 1.4;
146
146
  }
147
+ .spinner {
148
+ animation: spin 1s linear infinite;
149
+ }
150
+
151
+ @keyframes spin {
152
+ 0% {
153
+ transform: rotate(0deg);
154
+ }
155
+ 100% {
156
+ transform: rotate(360deg);
157
+ }
158
+ }
147
159
  }
package/dist/login.scss CHANGED
@@ -178,6 +178,8 @@
178
178
  display: flex;
179
179
  justify-content: center;
180
180
  align-items: center;
181
+ // margin: var(--_ctm-lt-mn);
182
+ padding: var(--_ctm-lt-pg);
181
183
  }
182
184
 
183
185
  // Login Box
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
@@ -51,6 +51,13 @@
51
51
  .search-container {
52
52
  width: 100%;
53
53
  height: 100%;
54
+ &.dropdown {
55
+ &:focus-within {
56
+ .dropdown__options {
57
+ display: block;
58
+ }
59
+ }
60
+ }
54
61
  }
55
62
 
56
63
  .search-wrapper {
@@ -134,7 +141,7 @@
134
141
  border: none;
135
142
  padding-left: 10px;
136
143
  border-radius: 4px;
137
- cursor: pointer;
144
+ // cursor: pointer;
138
145
  transition: 0.3s;
139
146
  svg {
140
147
  width: var(
@@ -162,7 +169,7 @@
162
169
 
163
170
  .dropdown__options {
164
171
  list-style: none;
165
- margin: 4px 0 0;
172
+ margin: 3px 0 0;
166
173
  max-height: 200px;
167
174
  overflow-y: auto;
168
175
  border: 1px solid var(--_gray-200);
@@ -171,7 +178,7 @@
171
178
  position: absolute;
172
179
  width: 100%;
173
180
  z-index: 1000;
174
- display: block; /* Hidden by default */
181
+ // display: none; /* Hidden by default */
175
182
  cursor: pointer;
176
183
  transition: background 0.2s;
177
184
 
@@ -249,9 +256,9 @@
249
256
  }
250
257
 
251
258
  /* Optional: show dropdown when input is focused (basic) */
252
- .dropdown:focus-within .dropdown-options {
253
- display: block;
254
- }
259
+ // .dropdown:focus-within .dropdown-options {
260
+ // display: block;
261
+ // }
255
262
 
256
263
  &[data-show-shadow="false"] {
257
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;
@@ -103,3 +104,12 @@ export interface FormGridLayoutInterface {
103
104
  minH?: number;
104
105
  minW?: number;
105
106
  }
107
+ export declare enum FormConfirmationOption {
108
+ ShowMessage = 1,
109
+ RedirectToURL = 2,
110
+ ClearForm = 3
111
+ }
112
+ export declare enum FormMessageDisplay {
113
+ Custom = 1,
114
+ Always = 2
115
+ }
@@ -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, };