@gem-sdk/components 2.0.0-dev.501 → 2.0.0-dev.502
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/cjs/carousel/root/common/getStyle.js +3 -3
- package/dist/cjs/carousel/setting/configs/settingV2.js +7 -7
- package/dist/cjs/product/components/ProductList/common/getStyle.js +3 -3
- package/dist/cjs/product/components/ProductList/common/index.js +2 -0
- package/dist/cjs/product/components/ProductQuantity/common/getClasses.js +1 -1
- package/dist/cjs/product/setting/product-quantity/configs/uiV2.js +2 -0
- package/dist/esm/carousel/root/common/getStyle.js +4 -4
- package/dist/esm/carousel/setting/configs/settingV2.js +7 -7
- package/dist/esm/product/components/ProductList/common/getStyle.js +4 -4
- package/dist/esm/product/components/ProductList/common/index.js +2 -0
- package/dist/esm/product/components/ProductQuantity/common/getClasses.js +1 -1
- package/dist/esm/product/setting/product-quantity/configs/uiV2.js +2 -0
- package/package.json +1 -1
|
@@ -34,9 +34,9 @@ const getStyle = (props)=>{
|
|
|
34
34
|
...style,
|
|
35
35
|
...styleHeight,
|
|
36
36
|
...styleWidth,
|
|
37
|
-
...core.
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
...core.getBgByDevice({
|
|
38
|
+
backgroundColor: styles?.backgroundColor,
|
|
39
|
+
backgroundImage: styles?.backgroundImage
|
|
40
40
|
})
|
|
41
41
|
});
|
|
42
42
|
const wrapperInnerStyle = system.createStyle({
|
|
@@ -425,15 +425,15 @@ const CarouselSettingsV2Setting = [
|
|
|
425
425
|
label: 'Direction',
|
|
426
426
|
type: 'option:value',
|
|
427
427
|
options: [
|
|
428
|
-
{
|
|
429
|
-
value: true,
|
|
430
|
-
label: 'Left to right',
|
|
431
|
-
iconName: 'polaris-arrow-right'
|
|
432
|
-
},
|
|
433
428
|
{
|
|
434
429
|
value: false,
|
|
435
430
|
iconName: 'polaris-arrow-left',
|
|
436
431
|
label: 'Right to left'
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
value: true,
|
|
435
|
+
label: 'Left to right',
|
|
436
|
+
iconName: 'polaris-arrow-right'
|
|
437
437
|
}
|
|
438
438
|
],
|
|
439
439
|
default: false
|
|
@@ -476,7 +476,7 @@ const CarouselSettingsV2Setting = [
|
|
|
476
476
|
type: 'toggle',
|
|
477
477
|
devices: {
|
|
478
478
|
desktop: {
|
|
479
|
-
default:
|
|
479
|
+
default: true
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
},
|
|
@@ -486,7 +486,7 @@ const CarouselSettingsV2Setting = [
|
|
|
486
486
|
type: 'toggle',
|
|
487
487
|
devices: {
|
|
488
488
|
desktop: {
|
|
489
|
-
default:
|
|
489
|
+
default: true
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
},
|
|
@@ -11,9 +11,9 @@ const getStyle = (props)=>{
|
|
|
11
11
|
const itemPadding = core.makeGlobalSize(styles?.itemPadding);
|
|
12
12
|
const productListStyle = system.createStyle({
|
|
13
13
|
...style,
|
|
14
|
-
...core.
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
...core.getBgByDevice({
|
|
15
|
+
backgroundColor: styles?.backgroundColor,
|
|
16
|
+
backgroundImage: styles?.backgroundImage
|
|
17
17
|
})
|
|
18
18
|
});
|
|
19
19
|
const productListWrapStyle = system.createStyle({
|
|
@@ -30,7 +30,7 @@ const getButtonClass = ({ borderBtn, buttonBackgroundColor, iconColor, buttonSid
|
|
|
30
30
|
};
|
|
31
31
|
const getContainerClasses = (advanceClass)=>{
|
|
32
32
|
return {
|
|
33
|
-
...core.composeClasses(`gp-relative gp-inline-flex gp-h-12 gp-w-full gp-bg-transparent gp-transition-all gp-duration-150 data-[disabled=true]:gp-opacity-60 ${advanceClass ?? ''}`)
|
|
33
|
+
...core.composeClasses(`wc_quantity_selector gp-relative gp-inline-flex gp-h-12 gp-w-full gp-bg-transparent gp-transition-all gp-duration-150 data-[disabled=true]:gp-opacity-60 ${advanceClass ?? ''}`)
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
const getWrapperClasses = ()=>{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeStyleResponsive, getHeightByShapeGlobalSize, makeStyleWithDefault, getWidthByShapeGlobalSize,
|
|
1
|
+
import { makeStyleResponsive, getHeightByShapeGlobalSize, makeStyleWithDefault, getWidthByShapeGlobalSize, getBgByDevice, makeContainerWidthOrHeight, getResponsiveValueByScreen } from '@gem-sdk/core';
|
|
2
2
|
import { createStyle } from '@gem-sdk/system';
|
|
3
3
|
|
|
4
4
|
const getStyle = (props)=>{
|
|
@@ -32,9 +32,9 @@ const getStyle = (props)=>{
|
|
|
32
32
|
...style,
|
|
33
33
|
...styleHeight,
|
|
34
34
|
...styleWidth,
|
|
35
|
-
...
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
...getBgByDevice({
|
|
36
|
+
backgroundColor: styles?.backgroundColor,
|
|
37
|
+
backgroundImage: styles?.backgroundImage
|
|
38
38
|
})
|
|
39
39
|
});
|
|
40
40
|
const wrapperInnerStyle = createStyle({
|
|
@@ -423,15 +423,15 @@ const CarouselSettingsV2Setting = [
|
|
|
423
423
|
label: 'Direction',
|
|
424
424
|
type: 'option:value',
|
|
425
425
|
options: [
|
|
426
|
-
{
|
|
427
|
-
value: true,
|
|
428
|
-
label: 'Left to right',
|
|
429
|
-
iconName: 'polaris-arrow-right'
|
|
430
|
-
},
|
|
431
426
|
{
|
|
432
427
|
value: false,
|
|
433
428
|
iconName: 'polaris-arrow-left',
|
|
434
429
|
label: 'Right to left'
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
value: true,
|
|
433
|
+
label: 'Left to right',
|
|
434
|
+
iconName: 'polaris-arrow-right'
|
|
435
435
|
}
|
|
436
436
|
],
|
|
437
437
|
default: false
|
|
@@ -474,7 +474,7 @@ const CarouselSettingsV2Setting = [
|
|
|
474
474
|
type: 'toggle',
|
|
475
475
|
devices: {
|
|
476
476
|
desktop: {
|
|
477
|
-
default:
|
|
477
|
+
default: true
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
},
|
|
@@ -484,7 +484,7 @@ const CarouselSettingsV2Setting = [
|
|
|
484
484
|
type: 'toggle',
|
|
485
485
|
devices: {
|
|
486
486
|
desktop: {
|
|
487
|
-
default:
|
|
487
|
+
default: true
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
490
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeGlobalSize,
|
|
1
|
+
import { makeGlobalSize, getBgByDevice, makeStyleResponsive, getResponsiveValueByScreen, makeStyle, getSingleColorVariable, getRadiusStyleActiveState, getStyleShadow, getStyleBackgroundByDevice, getGradientBgrStyleByDevice } from '@gem-sdk/core';
|
|
2
2
|
import { createStyle } from '@gem-sdk/system';
|
|
3
3
|
import { getInitialWidthForCarouselItem } from '../../../../carousel/components/common/carousel.js';
|
|
4
4
|
import { createStyleObject } from '../../../../grid/row/commons/helpers.js';
|
|
@@ -9,9 +9,9 @@ const getStyle = (props)=>{
|
|
|
9
9
|
const itemPadding = makeGlobalSize(styles?.itemPadding);
|
|
10
10
|
const productListStyle = createStyle({
|
|
11
11
|
...style,
|
|
12
|
-
...
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
...getBgByDevice({
|
|
13
|
+
backgroundColor: styles?.backgroundColor,
|
|
14
|
+
backgroundImage: styles?.backgroundImage
|
|
15
15
|
})
|
|
16
16
|
});
|
|
17
17
|
const productListWrapStyle = createStyle({
|
|
@@ -28,7 +28,7 @@ const getButtonClass = ({ borderBtn, buttonBackgroundColor, iconColor, buttonSid
|
|
|
28
28
|
};
|
|
29
29
|
const getContainerClasses = (advanceClass)=>{
|
|
30
30
|
return {
|
|
31
|
-
...composeClasses(`gp-relative gp-inline-flex gp-h-12 gp-w-full gp-bg-transparent gp-transition-all gp-duration-150 data-[disabled=true]:gp-opacity-60 ${advanceClass ?? ''}`)
|
|
31
|
+
...composeClasses(`wc_quantity_selector gp-relative gp-inline-flex gp-h-12 gp-w-full gp-bg-transparent gp-transition-all gp-duration-150 data-[disabled=true]:gp-opacity-60 ${advanceClass ?? ''}`)
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
const getWrapperClasses = ()=>{
|