@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.
- package/dist/builder.js +1 -1
- package/dist/buyForHeaders.scss +5 -0
- package/dist/cart-details.scss +348 -42
- package/dist/cart-summary.scss +1347 -167
- package/dist/icons.js +1 -1
- package/dist/index.js +1 -1
- package/dist/order-status.scss +1068 -202
- package/dist/prefix-list.scss +19 -10
- package/dist/quick-order-pad.scss +3 -0
- package/dist/section.scss +6 -2
- package/dist/transform-properties-module.scss +20 -0
- package/dist/types/builder/enums/index.d.ts +1 -0
- package/dist/types/builder/interfaces/global.d.ts +25 -0
- package/dist/types/builder/tools/element-edit/addProductsTab.d.ts +306 -460
- package/dist/types/builder/tools/element-edit/allocationDetails.d.ts +7 -1
- package/dist/types/builder/tools/element-edit/cartAttributes.d.ts +818 -99
- package/dist/types/builder/tools/element-edit/cartDetails.d.ts +234 -13
- package/dist/types/builder/tools/element-edit/cartSummary.d.ts +4 -31
- package/dist/types/builder/tools/element-edit/common.d.ts +6 -0
- package/dist/types/builder/tools/element-edit/index.d.ts +2 -1
- package/dist/types/builder/tools/element-edit/orderStatus.d.ts +1076 -101
- package/dist/types/builder/tools/element-edit/quotaDetails.d.ts +34 -0
- package/package.json +1 -1
package/dist/prefix-list.scss
CHANGED
|
@@ -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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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,
|
|
72
|
+
#{$var}: #{prepareMediaVariable(convertIntoActualVariable($value, $type), $defaultValue)};
|
|
65
73
|
}
|
|
66
74
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
}
|
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
|
-
//
|
|
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
|
+
}
|
|
@@ -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
|
+
};
|