@sc-360-v2/storefront-cms-library 0.3.3 → 0.3.4

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.
@@ -165,7 +165,7 @@
165
165
  var(--_ctm-tab-dn-on-ve-se-hr-se-br-rs, var(--_ctm-dn-on-ve-se-hr-se-br-rs))
166
166
  );
167
167
 
168
- // new
168
+ // for shadow
169
169
  --_sf-hr-sw-ae: var(
170
170
  --_ctm-mob-dn-on-ve-se-hr-se-sw-ae,
171
171
  var(--_ctm-tab-dn-on-ve-se-hr-se-sw-ae, var(--_ctm-dn-on-ve-se-hr-se-sw-ae))
@@ -182,6 +182,46 @@
182
182
  --_ctm-mob-dn-on-ve-se-hr-se-sw-cr,
183
183
  var(--_ctm-tab-dn-on-ve-se-hr-se-sw-cr, var(--_ctm-dn-on-ve-se-hr-se-sw-cr))
184
184
  );
185
+
186
+ // for font
187
+
188
+ --_sf-hr-cr: var(
189
+ --_ctm-mob-dn-on-ve-se-hr-se-cr,
190
+ var(--_ctm-tab-dn-on-ve-se-hr-se-cr, var(--_ctm-dn-on-ve-se-hr-se-cr))
191
+ );
192
+ --_sf-hr-ft-fy: var(
193
+ --_ctm-mob-dn-on-ve-se-hr-se-ft-fy,
194
+ var(--_ctm-tab-dn-on-ve-se-hr-se-ft-fy, var(--_ctm-dn-on-ve-se-hr-se-ft-fy))
195
+ );
196
+ --_sf-hr-ft-se: var(
197
+ --_ctm-mob-dn-on-ve-se-hr-se-ft-se,
198
+ var(--_ctm-tab-dn-on-ve-se-hr-se-ft-se, var(--_ctm-dn-on-ve-se-hr-se-ft-se))
199
+ );
200
+ --_sf-hr-ft-wt: var(
201
+ --_ctm-mob-dn-on-ve-se-hr-se-ft-wt,
202
+ var(--_ctm-tab-dn-on-ve-se-hr-se-ft-wt, var(--_ctm-dn-on-ve-se-hr-se-ft-wt))
203
+ );
204
+ --_sf-hr-ft-se-ic: var(
205
+ --_ctm-mob-dn-on-ve-se-hr-se-ft-se-ic,
206
+ var(--_ctm-tab-dn-on-ve-se-hr-se-ft-se-ic, var(--_ctm-dn-on-ve-se-hr-se-ft-se-ic))
207
+ );
208
+ --_sf-hr-tt-an: var(
209
+ --_ctm-mob-dn-on-ve-se-hr-se-tt-an,
210
+ var(--_ctm-tab-dn-on-ve-se-hr-se-tt-an, var(--_ctm-dn-on-ve-se-hr-se-tt-an))
211
+ );
212
+ --_sf-hr-lr-sg: var(
213
+ --_ctm-mob-dn-on-ve-se-hr-se-lr-sg,
214
+ var(--_ctm-tab-dn-on-ve-se-hr-se-lr-sg, var(--_ctm-dn-on-ve-se-hr-se-lr-sg))
215
+ );
216
+ --_sf-hr-le-ht: var(
217
+ --_ctm-mob-dn-on-ve-se-hr-se-le-ht,
218
+ var(--_ctm-tab-dn-on-ve-se-hr-se-le-ht, var(--_ctm-dn-on-ve-se-hr-se-le-ht))
219
+ );
220
+
221
+ --_sf-hr-ue: var(
222
+ --_ctm-mob-dn-on-ve-se-hr-se-ue,
223
+ var(--_ctm-tab-dn-on-ve-se-hr-se-ue, var(--_ctm-dn-on-ve-se-hr-se-ue))
224
+ );
185
225
  }
186
226
  .swatch__item[data-selected="true"] {
187
227
  --_sf-sd-bd-cr: var(
@@ -217,6 +257,46 @@
217
257
  --_ctm-mob-dn-on-ve-se-sd-se-sw-cr,
218
258
  var(--_ctm-tab-dn-on-ve-se-sd-se-sw-cr, var(--_ctm-dn-on-ve-se-sd-se-sw-cr))
219
259
  );
260
+
261
+ // for font
262
+
263
+ --_sf-sd-cr: var(
264
+ --_ctm-mob-dn-on-ve-se-sd-se-cr,
265
+ var(--_ctm-tab-dn-on-ve-se-sd-se-cr, var(--_ctm-dn-on-ve-se-sd-se-cr))
266
+ );
267
+ --_sf-sd-ft-fy: var(
268
+ --_ctm-mob-dn-on-ve-se-sd-se-ft-fy,
269
+ var(--_ctm-tab-dn-on-ve-se-sd-se-ft-fy, var(--_ctm-dn-on-ve-se-sd-se-ft-fy))
270
+ );
271
+ --_sf-sd-ft-se: var(
272
+ --_ctm-mob-dn-on-ve-se-sd-se-ft-se,
273
+ var(--_ctm-tab-dn-on-ve-se-sd-se-ft-se, var(--_ctm-dn-on-ve-se-sd-se-ft-se))
274
+ );
275
+ --_sf-sd-ft-wt: var(
276
+ --_ctm-mob-dn-on-ve-se-sd-se-ft-wt,
277
+ var(--_ctm-tab-dn-on-ve-se-sd-se-ft-wt, var(--_ctm-dn-on-ve-se-sd-se-ft-wt))
278
+ );
279
+ --_sf-sd-ft-se-ic: var(
280
+ --_ctm-mob-dn-on-ve-se-sd-se-ft-se-ic,
281
+ var(--_ctm-tab-dn-on-ve-se-sd-se-ft-se-ic, var(--_ctm-dn-on-ve-se-sd-se-ft-se-ic))
282
+ );
283
+ --_sf-sd-tt-an: var(
284
+ --_ctm-mob-dn-on-ve-se-sd-se-tt-an,
285
+ var(--_ctm-tab-dn-on-ve-se-sd-se-tt-an, var(--_ctm-dn-on-ve-se-sd-se-tt-an))
286
+ );
287
+ --_sf-sd-lr-sg: var(
288
+ --_ctm-mob-dn-on-ve-se-sd-se-lr-sg,
289
+ var(--_ctm-tab-dn-on-ve-se-sd-se-lr-sg, var(--_ctm-dn-on-ve-se-sd-se-lr-sg))
290
+ );
291
+ --_sf-sd-le-ht: var(
292
+ --_ctm-mob-dn-on-ve-se-sd-se-le-ht,
293
+ var(--_ctm-tab-dn-on-ve-se-sd-se-le-ht, var(--_ctm-dn-on-ve-se-sd-se-le-ht))
294
+ );
295
+
296
+ --_sf-sd-ue: var(
297
+ --_ctm-mob-dn-on-ve-se-sd-se-ue,
298
+ var(--_ctm-tab-dn-on-ve-se-sd-se-ue, var(--_ctm-dn-on-ve-se-sd-se-ue))
299
+ );
220
300
  }
221
301
 
222
302
  .swatch__item {
@@ -228,8 +308,16 @@
228
308
  justify-content: center;
229
309
  // border: 1px solid gray;
230
310
 
231
- height: prepareMediaVariable(--_ctm-lt-sh-im-se);
232
- width: prepareMediaVariable(--_ctm-lt-sh-im-se);
311
+ &[data-display-style="Swatch"] {
312
+ height: prepareMediaVariable(--_ctm-lt-sh-im-se);
313
+ width: prepareMediaVariable(--_ctm-lt-sh-im-se);
314
+ }
315
+ &[data-display-style="Single Select"] {
316
+ min-width: 20px;
317
+ min-height: 20px;
318
+ box-sizing: content-box;
319
+ }
320
+
233
321
  gap: prepareMediaVariable(--_ctm-lt-im-gp);
234
322
  padding: prepareMediaVariable(--_ctm-lt-sh-im-pg);
235
323
 
@@ -245,7 +333,8 @@
245
333
  var(--_sf-hr-sw-br, prepareMediaVariable(--_ctm-dn-on-ve-se-dt-se-sw-br))
246
334
  var(--_sf-hr-sw-sd, prepareMediaVariable(--_ctm-dn-on-ve-se-dt-se-sw-sd))
247
335
  var(--_sf-hr-sw-cr, prepareMediaVariable(--_ctm-dn-on-ve-se-dt-se-sw-cr));
248
- & div {
336
+ & div,
337
+ .product-select-image {
249
338
  height: 100%;
250
339
  width: 100%;
251
340
  }
@@ -257,24 +346,27 @@
257
346
  border-radius: 5px;
258
347
  }
259
348
  &[data-background-shape="capsule"] {
260
- --toggle-height: var(--_ctm-lt-sh-im-se);
261
- --toggle-width: calc(var(--_ctm-lt-sh-im-se) * 1.5);
349
+ &:not([data-display-style="Single Select"]) {
350
+ --toggle-height: var(--_ctm-lt-sh-im-se);
351
+ --toggle-width: calc(var(--_ctm-lt-sh-im-se) * 1.5);
262
352
 
263
- width: var(--toggle-width);
264
- height: var(--toggle-height);
353
+ width: var(--toggle-width);
354
+ height: var(--toggle-height);
355
+ }
265
356
 
266
357
  border-radius: var(--toggle-height); /* Full pill shape */
267
358
  box-sizing: border-box;
268
359
  }
269
360
  &[data-swatch-shape="circle"] {
270
- & div {
361
+ & div,
362
+ .product-select-image {
271
363
  border-radius: 50%;
272
- width: var(--_ctm-lt-sh-im-se);
273
364
  }
274
365
  // border-radius: 50%;
275
366
  }
276
367
  &[data-swatch-shape="capsule"] {
277
- & div {
368
+ & div,
369
+ .product-select-image {
278
370
  // border-radius: 50%;
279
371
  width: 100%;
280
372
  height: 100%;
@@ -302,14 +394,15 @@
302
394
  }
303
395
 
304
396
  &[data-swatch-shape-hover="circle"] {
305
- & div {
397
+ & div,
398
+ .product-select-image {
306
399
  border-radius: 50%;
307
- width: var(--_ctm-lt-sh-im-se);
308
400
  }
309
401
  // border-radius: 50%;
310
402
  }
311
403
  &[data-swatch-shape-hover="capsule"] {
312
- & div {
404
+ & div,
405
+ .product-select-image {
313
406
  // border-radius: 50%;
314
407
  width: 100%;
315
408
  height: 100%;
@@ -317,7 +410,8 @@
317
410
  }
318
411
  }
319
412
  &[data-swatch-shape-hover="square"] {
320
- & div {
413
+ & div,
414
+ .product-select-image {
321
415
  border-radius: 5px;
322
416
  }
323
417
  }
@@ -353,13 +447,14 @@
353
447
  box-sizing: border-box;
354
448
  }
355
449
  &[data-swatch-shape-selected="circle"] {
356
- & div {
450
+ & div,
451
+ .product-select-image {
357
452
  border-radius: 50%;
358
- width: var(--_ctm-lt-sh-im-se);
359
453
  }
360
454
  }
361
455
  &[data-swatch-shape-selected="capsule"] {
362
- & div {
456
+ & div,
457
+ .product-select-image {
363
458
  // border-radius: 50%;
364
459
  width: 100%;
365
460
  height: 100%;
@@ -367,11 +462,28 @@
367
462
  }
368
463
  }
369
464
  &[data-swatch-shape-selected="square"] {
370
- & div {
465
+ & div,
466
+ .product-select-image {
371
467
  border-radius: 5px;
372
468
  }
373
469
  }
374
470
  }
471
+
472
+ .option__value__text {
473
+ color: var(--_sf-sd-cr, prepareMediaVariable(--_ctm-dn-on-ve-se-dt-se-cr));
474
+ font-family: var(--_sf-sd-ft-fy, prepareMediaVariable(--_ctm-dn-on-ve-se-dt-se-ft-fy)),
475
+ sans-serif;
476
+ font-size: var(--_sf-sd-ft-se, prepareMediaVariable(--_ctm-dn-on-ve-se-dt-se-ft-se));
477
+ font-weight: var(--_sf-sd-ft-wt, prepareMediaVariable(--_ctm-dn-on-ve-se-dt-se-ft-wt));
478
+ font-style: var(
479
+ --_sf-sd-ft-se-ic,
480
+ prepareMediaVariable(--_ctm-dn-on-ve-se-dt-se-ft-se-ic)
481
+ );
482
+ text-align: var(--_sf-sd-tt-an, prepareMediaVariable(--_ctm-dn-on-ve-se-dt-se-tt-an));
483
+ letter-spacing: var(--_sf-sd-lr-sg, prepareMediaVariable(--_ctm-dn-on-ve-se-dt-se-lr-sg));
484
+ line-height: var(--_sf-sd-le-ht, prepareMediaVariable(--_ctm-dn-on-ve-se-dt-se-le-ht-dc));
485
+ text-decoration: var(--_sf-sd-ue, prepareMediaVariable(--_ctm-dn-on-ve-se-dt-se-ue));
486
+ }
375
487
  }
376
488
 
377
489
  .disabled {
@@ -410,6 +522,19 @@
410
522
  }
411
523
  }
412
524
 
525
+ .option__value__text {
526
+ color: var(--_sf-hr-cr, prepareMediaVariable(--_ctm-dn-on-ve-se-dt-se-cr));
527
+ font-family: var(--_sf-hr-ft-fy, prepareMediaVariable(--_ctm-dn-on-ve-se-dt-se-ft-fy)),
528
+ sans-serif;
529
+ font-size: var(--_sf-hr-ft-se, prepareMediaVariable(--_ctm-dn-on-ve-se-dt-se-ft-se));
530
+ font-weight: var(--_sf-hr-ft-wt, prepareMediaVariable(--_ctm-dn-on-ve-se-dt-se-ft-wt));
531
+ font-style: var(--_sf-hr-ft-se-ic, prepareMediaVariable(--_ctm-dn-on-ve-se-dt-se-ft-se-ic));
532
+ text-align: var(--_sf-hr-tt-an, prepareMediaVariable(--_ctm-dn-on-ve-se-dt-se-tt-an));
533
+ letter-spacing: var(--_sf-hr-lr-sg, prepareMediaVariable(--_ctm-dn-on-ve-se-dt-se-lr-sg));
534
+ line-height: var(--_sf-hr-le-ht, prepareMediaVariable(--_ctm-dn-on-ve-se-dt-se-le-ht-dc));
535
+ text-decoration: var(--_sf-hr-ue, prepareMediaVariable(--_ctm-dn-on-ve-se-dt-se-ue));
536
+ }
537
+
413
538
  .product-select-image {
414
539
  height: 100%;
415
540
  width: 100%;
@@ -6,6 +6,7 @@ export interface CMSElementEditPopupLayoutInterface {
6
6
  [key: string]: CMSIBSizeInterface | any;
7
7
  };
8
8
  height?: CMSIBSizeInterface;
9
+ minHeight?: CMSIBSizeInterface;
9
10
  margin?: CSSPaddingValues;
10
11
  padding?: CSSPaddingValues;
11
12
  overflowContent?: CMSIBCommonInterface;
@@ -31,6 +31,30 @@ interface selfLayoutInterface {
31
31
  }
32
32
  interface selfDesignInterface {
33
33
  selectorKey: string;
34
+ filtersWidget: {
35
+ selectorKey: string;
36
+ [key: string]: any;
37
+ };
38
+ checkboxStyle: {
39
+ selectorKey: string;
40
+ [key: string]: any;
41
+ };
42
+ clearAllText: {
43
+ selectorKey: string;
44
+ [key: string]: any;
45
+ };
46
+ chipButton: {
47
+ selectorKey: string;
48
+ [key: string]: any;
49
+ };
50
+ optionLabels: {
51
+ selectorKey: string;
52
+ [key: string]: any;
53
+ };
54
+ moreButton: {
55
+ selectorKey: string;
56
+ [key: string]: any;
57
+ };
34
58
  }
35
59
  export declare enum SelectorKeysEnum {
36
60
  LAYOUT = "layout",
@@ -41,7 +65,21 @@ export declare enum SelectorKeysEnum {
41
65
  SELECTED_STATE = "selected",
42
66
  TAB_CONTAINER = "tabContainer",
43
67
  TAB_CONTENT_CONTAINER = "tabContentContainer",
44
- TABS = "tabs"
68
+ TABS = "tabs",
69
+ FILTERS_WIDGET = "filtersWidget",
70
+ CHECKBOX_STYLE = "checkboxStyle",
71
+ CHECKBOX_DEFAULT_STATE = "checkboxDefaultState",
72
+ CHECKBOX_HOVER_STATE = "checkboxHoverState",
73
+ CLEAR_ALL_BUTTON = "clearAllText",
74
+ CHIP_BUTTON = "chipButton",
75
+ CLEAR_ALL_BUTTON_DEFAULT_STATE = "clearAllButtonDefaultState",
76
+ CLEAR_ALL_BUTTON_HOVER_STATE = "clearAllButtonHoverState",
77
+ CHIP_BUTTON_DEFAULT_STATE = "chipButtonDefaultState",
78
+ CHIP_BUTTON_HOVER_STATE = "chipButtonHoverState",
79
+ OPTION_STYLE = "optionStyle",
80
+ MORE_BUTTON = "moreButton",
81
+ MORE_BUTTON_DEFAULT_STATE = "moreButtonDefaultState",
82
+ MORE_BUTTON_HOVER_STATE = "moreButtonHoverState"
45
83
  }
46
84
  export declare const getDefaultData: () => CMSElementEditPopupInterface<selfLayoutInterface & CMSElementEditPopupLayoutInterface, selfDesignInterface & CMSElementEditPopupDesignInterface>;
47
85
  export {};
@@ -1,11 +1,13 @@
1
- import { AlignItemsValue, JustifyContentValue, LayouterDisplayStyleType } from "../../../../components/global/types";
2
- import { CMSCSSUnitTypesEnums } from "../../enums";
1
+ import { AlignItemsValue, FlexDirectionValue, JustifyContentValue, LayouterProDisplayStyleType } from "../../../../components/global/types";
3
2
  import { CMSIBCommonInterface, PaddingProps } from "../../interfaces/global";
4
3
  import { CMSElementEditPopupDesignInterface, CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
5
4
  interface selfLayoutInterface {
6
5
  selectorKey: string;
7
6
  displayStyle: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
8
- value: LayouterDisplayStyleType;
7
+ value: LayouterProDisplayStyleType;
8
+ };
9
+ direction?: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
10
+ value: FlexDirectionValue;
9
11
  };
10
12
  itemGap: Pick<CMSIBCommonInterface, "property" | "propertyType"> & PaddingProps;
11
13
  justifyContent: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
@@ -18,14 +20,6 @@ interface selfLayoutInterface {
18
20
  isShow: boolean;
19
21
  value: string | number | any;
20
22
  };
21
- minColumnWidth: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
22
- value: string | number | any;
23
- unit: CMSCSSUnitTypesEnums;
24
- };
25
- minRowHeight: Pick<CMSIBCommonInterface, "property" | "propertyType"> & {
26
- value: string | number | any;
27
- unit: CMSCSSUnitTypesEnums;
28
- };
29
23
  }
30
24
  export interface selfDesignInterface {
31
25
  selectorKey: string;
@@ -16,11 +16,12 @@ export interface ButtonLayoutInterface {
16
16
  showCompareListAs: CMSIBCommonInterface;
17
17
  addToQuote: CMSIBCommonInterface;
18
18
  addToOrderTemplate: CMSIBCommonInterface;
19
- notifyMeInventoryNotifications: CMSIBCommonInterface;
20
- downloadProductInformation: CMSIBCommonInterface;
19
+ notifyMe: CMSIBCommonInterface;
20
+ download: CMSIBCommonInterface;
21
21
  displayStyle: CMSIBCommonInterface;
22
22
  itemSpacing: CMSIBCommonInterface;
23
23
  maxItemsToDisplay: CMSIBCommonInterface;
24
+ noOfItemsToShow: CMSIBCommonInterface;
24
25
  overflowItems: CMSIBCommonInterface;
25
26
  openItemsIn: CMSIBCommonInterface;
26
27
  addToCartMetaData: CMSIBCommonInterface;
@@ -41,6 +41,7 @@ export type RepeaterSliderControlTypes = "Arrows & Dots" | "Arrows" | "Dots" | "
41
41
  export type DeviceVisibilityByOptionsType = "HTML" | "CSS" | "NONE";
42
42
  export type CustomEventCallback<T = any> = (data: T) => void;
43
43
  export type LayouterDisplayStyleType = "rows" | "columns" | "slider" | "grid";
44
+ export type LayouterProDisplayStyleType = "flex-box" | "grid";
44
45
  export type SpotlightDisplayStyleType = "carousel" | "slider";
45
46
  export type SpotlightSectionType = "single" | "multi";
46
47
  export type SpotlightLineDisplayType = "solid" | "dots";