@sc-360-v2/storefront-cms-library 0.3.41 → 0.3.42

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.
@@ -390,3 +390,8 @@
390
390
  }
391
391
  }
392
392
  }
393
+
394
+ .buyfor_emp_dropdown {
395
+ right: 0 !important;
396
+ left: auto !important;
397
+ }
@@ -468,8 +468,8 @@ $resizeActive: '[data-cms-element-resizer="true"]';
468
468
  background-size: 100%;
469
469
  height: 130px;
470
470
  background-repeat: no-repeat;
471
- background-position: center;
472
- background-color: #eaeaea;
471
+ background-position: 0 0;
472
+ background-color: var(--_base-white);
473
473
  border: 1px solid var(--_gray-100);
474
474
  border-radius: 4px;
475
475
  }
@@ -34,6 +34,12 @@ $prefixList: (
34
34
  spotlight: spo,
35
35
  );
36
36
 
37
+ $VariableTypes: (
38
+ width: "lt-wh",
39
+ maxHeight: "lt-mx-ht",
40
+ transform: "trsnf-vl",
41
+ );
42
+
37
43
  @function convertListToCommaSeparateString($list) {
38
44
  $items: ();
39
45
  @each $key, $value in $list {
@@ -45,14 +51,16 @@ $prefixList: (
45
51
  }
46
52
 
47
53
  @function convertIntoActualVariable($prefix, $type) {
48
- $types: (
49
- width: "lt-wh",
50
- );
51
- $suffix: map.get($types, $type);
54
+ // $types: (
55
+ // width: "lt-wh",
56
+ // maxHeight: "lt-mx-ht",
57
+ // transform: "trsnf-vl",
58
+ // );
59
+ $suffix: map.get($VariableTypes, $type);
52
60
  @return --_ctm-#{$prefix}-#{$suffix};
53
61
  }
54
62
 
55
- @mixin FlexUpdatedPrefixCSSVariable($var, $isLayer: false) {
63
+ @mixin FlexUpdatedPrefixCSSVariable($var, $isLayer: false, $type: width, $defaultValue: inherit) {
56
64
  $selector: "";
57
65
  @if ($isLayer == false) {
58
66
  $selector: $dataElementType;
@@ -61,13 +69,14 @@ $prefixList: (
61
69
  }
62
70
  @each $key, $value in $prefixList {
63
71
  &[#{$selector}="#{$key}"] {
64
- #{$var}: #{prepareMediaVariable(convertIntoActualVariable($value, width))};
72
+ #{$var}: #{prepareMediaVariable(convertIntoActualVariable($value, $type), $defaultValue)};
65
73
  }
66
74
  }
67
-
68
- &#{$elementSelector} {
69
- &:is(:not(#{convertListToCommaSeparateString($prefixList)})) {
70
- #{$var}: #{prepareMediaVariable(--_ctm-lt-wh)};
75
+ @if ($type != maxHeight) {
76
+ &#{$elementSelector} {
77
+ &:is(:not(#{convertListToCommaSeparateString($prefixList)})) {
78
+ #{$var}: #{prepareMediaVariable(--_ctm-#{map.get($VariableTypes, $type), $defaultValue})};
79
+ }
71
80
  }
72
81
  }
73
82
  }
@@ -139,6 +139,9 @@ $input-padding: 10px 12px;
139
139
  }
140
140
  }
141
141
  .cart_products_wrapper {
142
+ display: flex;
143
+ flex-direction: column;
144
+ gap: 24px;
142
145
  padding: 12px;
143
146
  .emptyData {
144
147
  color: $text-color;
package/dist/section.scss CHANGED
@@ -5,6 +5,7 @@
5
5
  @use "./animation-control.scss" as *;
6
6
  @use "./responsive-behaviour.scss" as *;
7
7
  @use "./overflow-module.scss" as *;
8
+ @use "./transform-properties-module.scss" as *;
8
9
 
9
10
  $activeElementSelector: "[data-has-clicked='true']";
10
11
  $repeterLElement: '[data-element-type="repeater"]';
@@ -45,8 +46,11 @@ body {
45
46
  // Responsive
46
47
  @include FlexElementResponsiveBehaviourStyles();
47
48
 
48
- // overflow
49
+ // Overflow
49
50
  @include FlexOverflowModuleStyles();
51
+
52
+ // Additional Tranform Properties
53
+ @include FlexElementTransformProps();
50
54
  }
51
55
 
52
56
  section {
@@ -0,0 +1,20 @@
1
+ @use "sass:map";
2
+ @use "sass:list";
3
+ @use "./prefix-list.scss" as *;
4
+ $editorBodySelector: '[data-iframe-body="true"]';
5
+ $sectionWrapper: '[data-div-type="cms-section-wrapper"]';
6
+ $le: '[data-element-type="lightboxv2"]';
7
+ $elementSelector: '[data-div-type="element"]';
8
+ $gridSelector: '[data-div-type="grid"]';
9
+ $var: "--_sf-transform-pr-vl";
10
+
11
+ @mixin FlexElementTransformProps() {
12
+ &:not(#{$editorBodySelector}) {
13
+ :is(#{$sectionWrapper} *, #{$le} *) {
14
+ &:is(#{$gridSelector}, #{$elementSelector}) {
15
+ @include FlexUpdatedPrefixCSSVariable($var, false, transform, none);
16
+ transform: var(#{$var}, none);
17
+ }
18
+ }
19
+ }
20
+ }
@@ -331,6 +331,7 @@ export declare const CMSElementsListEnum: {
331
331
  LOADER: string;
332
332
  PRODUCT_BRAND_IMAGE: string;
333
333
  ADD_PRODUCTS_TAB: string;
334
+ QUOTA_DETAILS: string;
334
335
  };
335
336
  export declare enum CMSResponsiveModeEnums {
336
337
  DESKTOP = "desktop",
@@ -56,6 +56,14 @@ export interface CMSIBCommonInterface {
56
56
  isReadOnly?: boolean;
57
57
  parentRef?: string;
58
58
  }
59
+ export interface CMSIBCommonTypeV2 {
60
+ value: any;
61
+ property: string;
62
+ isDefault: boolean;
63
+ }
64
+ export interface CMSIBSizeInterfaceV2 extends CMSIBCommonTypeV2 {
65
+ unit?: number | string;
66
+ }
59
67
  export interface CMSIBSizeInterface extends CMSIBCommonInterface {
60
68
  unit?: number | string;
61
69
  }
@@ -167,3 +175,20 @@ export type FlexOverFlowDataType = {
167
175
  scrollDirection: Record<string, CMSIBCommonInterface>;
168
176
  maxHeight: Record<string, CMSIBCommonInterface>;
169
177
  };
178
+ export type FlexTranformDirectionType = {
179
+ x: CMSIBSizeInterfaceV2;
180
+ y: CMSIBSizeInterfaceV2;
181
+ };
182
+ export type FlexTransformDatatype = {
183
+ rotate: CMSIBCommonTypeV2;
184
+ translate: CMSIBCommonTypeV2 & {
185
+ value: FlexTranformDirectionType;
186
+ };
187
+ skew: CMSIBCommonTypeV2 & {
188
+ value: FlexTranformDirectionType;
189
+ };
190
+ scale: CMSIBCommonTypeV2 & {
191
+ value: FlexTranformDirectionType;
192
+ isAll: boolean;
193
+ };
194
+ };
@@ -17,7 +17,13 @@ export declare enum SelectorKeysEnum {
17
17
  PRODUCT_QUANTITY_STYLES = "productQuantityStyles",
18
18
  PRODUCT_IMAGE_STYLES = "productImageStyles",
19
19
  PRODUCT_REQUIRED_INFO = "productRequiredInfo",
20
- PRODUCT_ATTRIBUTES_ITEMS = "productAttributesItems"
20
+ PRODUCT_ATTRIBUTES_ITEMS = "productAttributesItems",
21
+ PRODUCT_ACTION = "productAction",
22
+ PRODUCT_ACTIONEDIT = "productActionEdit",
23
+ PRODUCT_ACTIONWISHLIST = "productActionwishlist",
24
+ PRODUCT_ACTIONDELETE = "productActiondelete",
25
+ HOVER_STATE = "hoverState",
26
+ DEFAULT_STATE = "defaultState"
21
27
  }
22
28
  export declare const getDefaultData: () => {
23
29
  layout: {
@@ -379,6 +385,137 @@ export declare const getDefaultData: () => {
379
385
  shadows: import("../../interfaces/global").CMSIBSizeInterface;
380
386
  selectorKey: SelectorKeysEnum;
381
387
  };
388
+ productAction: {
389
+ productActionEdit: {
390
+ selectorKey: SelectorKeysEnum;
391
+ defaultState: {
392
+ theme: CMSIBCommonInterface;
393
+ font: CMSIBCommonInterface;
394
+ fontSize: import("../../interfaces/global").CMSIBSizeInterface;
395
+ textColor: CMSIBCommonInterface;
396
+ bold: CMSIBCommonInterface;
397
+ italic: CMSIBCommonInterface;
398
+ linethrough: CMSIBCommonInterface;
399
+ underline: CMSIBCommonInterface;
400
+ textAlign: CMSIBCommonInterface;
401
+ characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
402
+ lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
403
+ backgroundColor: CMSIBCommonInterface;
404
+ borderColor: CMSIBCommonInterface;
405
+ borderStyle: CMSIBCommonInterface;
406
+ borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
407
+ showBorder: CMSIBCommonInterface;
408
+ showShadow: CMSIBCommonInterface;
409
+ shadowColor: CMSIBCommonInterface;
410
+ blur: import("../../interfaces/global").CMSIBSizeInterface;
411
+ spread: import("../../interfaces/global").CMSIBSizeInterface;
412
+ angle: import("../../interfaces/global").CMSIBSizeInterface;
413
+ borderRadius: import("../../interfaces/global").CSSPaddingValues;
414
+ exposure: import("../../interfaces/global").CMSIBSizeInterface;
415
+ contrast: import("../../interfaces/global").CMSIBSizeInterface;
416
+ saturation: import("../../interfaces/global").CMSIBSizeInterface;
417
+ highlights: import("../../interfaces/global").CMSIBSizeInterface;
418
+ shadows: import("../../interfaces/global").CMSIBSizeInterface;
419
+ selectorKey: SelectorKeysEnum;
420
+ };
421
+ hoverState: {
422
+ theme: CMSIBCommonInterface;
423
+ font: CMSIBCommonInterface;
424
+ fontSize: import("../../interfaces/global").CMSIBSizeInterface;
425
+ textColor: CMSIBCommonInterface;
426
+ bold: CMSIBCommonInterface;
427
+ italic: CMSIBCommonInterface;
428
+ linethrough: CMSIBCommonInterface;
429
+ underline: CMSIBCommonInterface;
430
+ textAlign: CMSIBCommonInterface;
431
+ characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
432
+ lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
433
+ backgroundColor: CMSIBCommonInterface;
434
+ borderColor: CMSIBCommonInterface;
435
+ borderStyle: CMSIBCommonInterface;
436
+ borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
437
+ showBorder: CMSIBCommonInterface;
438
+ showShadow: CMSIBCommonInterface;
439
+ shadowColor: CMSIBCommonInterface;
440
+ blur: import("../../interfaces/global").CMSIBSizeInterface;
441
+ spread: import("../../interfaces/global").CMSIBSizeInterface;
442
+ angle: import("../../interfaces/global").CMSIBSizeInterface;
443
+ borderRadius: import("../../interfaces/global").CSSPaddingValues;
444
+ exposure: import("../../interfaces/global").CMSIBSizeInterface;
445
+ contrast: import("../../interfaces/global").CMSIBSizeInterface;
446
+ saturation: import("../../interfaces/global").CMSIBSizeInterface;
447
+ highlights: import("../../interfaces/global").CMSIBSizeInterface;
448
+ shadows: import("../../interfaces/global").CMSIBSizeInterface;
449
+ selectorKey: SelectorKeysEnum;
450
+ };
451
+ };
452
+ productActionWishlist: {
453
+ icon: import("../../interfaces/global").CMSIBIconInterface | undefined;
454
+ showIcon: {
455
+ value: boolean;
456
+ property?: any;
457
+ propertyType?: any;
458
+ isReadOnly?: boolean | undefined;
459
+ parentRef?: string | undefined;
460
+ };
461
+ iconSize: import("../../interfaces/global").CMSIBSizeInterface;
462
+ iconColor: CMSIBCommonInterface;
463
+ selectorKey: SelectorKeysEnum;
464
+ };
465
+ productActionDelete: {
466
+ icon: {
467
+ unit?: string | number | undefined;
468
+ customIcon?: {
469
+ isCustomIcon: boolean;
470
+ url: string;
471
+ name: string;
472
+ } | undefined;
473
+ value?: any;
474
+ property?: any;
475
+ propertyType?: any;
476
+ isReadOnly?: boolean | undefined;
477
+ parentRef?: string | undefined;
478
+ };
479
+ showIcon: {
480
+ value: boolean;
481
+ property?: any;
482
+ propertyType?: any;
483
+ isReadOnly?: boolean | undefined;
484
+ parentRef?: string | undefined;
485
+ };
486
+ iconSize: import("../../interfaces/global").CMSIBSizeInterface;
487
+ iconColor: CMSIBCommonInterface;
488
+ selectorKey: SelectorKeysEnum;
489
+ };
490
+ theme: CMSIBCommonInterface;
491
+ font: CMSIBCommonInterface;
492
+ fontSize: import("../../interfaces/global").CMSIBSizeInterface;
493
+ textColor: CMSIBCommonInterface;
494
+ bold: CMSIBCommonInterface;
495
+ italic: CMSIBCommonInterface;
496
+ linethrough: CMSIBCommonInterface;
497
+ underline: CMSIBCommonInterface;
498
+ textAlign: CMSIBCommonInterface;
499
+ characterSpacing: import("../../interfaces/global").CMSIBSizeInterface;
500
+ lineHeight: import("../../interfaces/global").CMSIBSizeInterface;
501
+ backgroundColor: CMSIBCommonInterface;
502
+ borderColor: CMSIBCommonInterface;
503
+ borderStyle: CMSIBCommonInterface;
504
+ borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
505
+ showBorder: CMSIBCommonInterface;
506
+ showShadow: CMSIBCommonInterface;
507
+ shadowColor: CMSIBCommonInterface;
508
+ blur: import("../../interfaces/global").CMSIBSizeInterface;
509
+ spread: import("../../interfaces/global").CMSIBSizeInterface;
510
+ angle: import("../../interfaces/global").CMSIBSizeInterface;
511
+ borderRadius: import("../../interfaces/global").CSSPaddingValues;
512
+ exposure: import("../../interfaces/global").CMSIBSizeInterface;
513
+ contrast: import("../../interfaces/global").CMSIBSizeInterface;
514
+ saturation: import("../../interfaces/global").CMSIBSizeInterface;
515
+ highlights: import("../../interfaces/global").CMSIBSizeInterface;
516
+ shadows: import("../../interfaces/global").CMSIBSizeInterface;
517
+ selectorKey: SelectorKeysEnum;
518
+ };
382
519
  };
383
520
  content: {
384
521
  selectorKey: SelectorKeysEnum;
@@ -134,24 +134,6 @@ export declare const getDefaultData: () => {
134
134
  property: string;
135
135
  propertyType: CMSElementEditTypes;
136
136
  };
137
- headingPadding: {
138
- value: number;
139
- property: string;
140
- propertyType: CMSElementEditTypes;
141
- unit: number;
142
- };
143
- bodyPadding: {
144
- value: number;
145
- property: string;
146
- propertyType: CMSElementEditTypes;
147
- unit: number;
148
- };
149
- buttonPadding: {
150
- value: number;
151
- property: string;
152
- propertyType: CMSElementEditTypes;
153
- unit: number;
154
- };
155
137
  };
156
138
  design: {
157
139
  selectorKey: SelectorKeysEnum;
@@ -161,19 +143,10 @@ export declare const getDefaultData: () => {
161
143
  iconColor: CMSIBCommonInterface;
162
144
  iconSize: import("../../interfaces/global").CMSIBSizeInterface;
163
145
  icon: import("../../interfaces/global").CMSIBIconInterface | undefined;
164
- iconTwo: {
165
- property: string;
166
- unit?: string | number | undefined;
167
- customIcon?: {
168
- isCustomIcon: boolean;
169
- url: string;
170
- name: string;
171
- } | undefined;
172
- value?: any;
173
- propertyType?: any;
174
- isReadOnly?: boolean | undefined;
175
- parentRef?: string | undefined;
176
- };
146
+ showIconDesc: CMSIBCommonInterface | undefined;
147
+ iconColorDesc: CMSIBCommonInterface;
148
+ iconSizeDesc: import("../../interfaces/global").CMSIBSizeInterface;
149
+ iconDesc: import("../../interfaces/global").CMSIBIconInterface | undefined;
177
150
  };
178
151
  headerContainer: {
179
152
  theme: CMSIBCommonInterface;
@@ -92,8 +92,11 @@ export interface CMSElementEditPopupDesignInterface {
92
92
  overlayColor: CMSIBCommonInterface;
93
93
  textPosition: CMSIBCommonInterface;
94
94
  verticalAlignment: CMSIBCommonInterface;
95
+ horizontalAlignment: CMSIBCommonInterface;
95
96
  textHorizontalPadding: CMSIBSizeInterface;
96
97
  dividerColor: CMSIBCommonInterface;
98
+ iconColorDesc: CMSIBCommonInterface;
99
+ iconSizeDesc: CMSIBSizeInterface;
97
100
  }
98
101
  export interface CMSElementEditPopupInterface<L = CMSElementEditPopupLayoutInterface, D = CMSElementEditPopupDesignInterface> {
99
102
  layout?: L;
@@ -99,4 +99,5 @@ import * as languageMenu from "./language-menu";
99
99
  import * as cartAttributes from "./cartAttributes";
100
100
  import * as loader from "./loader";
101
101
  import * as addProductsTab from "./addProductsTab";
102
- 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, layouterPro, layouterProItem, filterResults, productSizeChart, userElements, badge, cartAttributes, languageMenu, loader, addProductsTab, };
102
+ import * as quotaDetails from "./quotaDetails";
103
+ 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, layouterPro, layouterProItem, filterResults, productSizeChart, userElements, badge, cartAttributes, languageMenu, loader, addProductsTab, quotaDetails, };