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

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.
@@ -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
- @include FlexOverflowModuleStyles();
49
+ // Overflow
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
+ };