@gem-sdk/components 2.0.0-dev.501 → 2.0.0-dev.503

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,9 +34,9 @@ const getStyle = (props)=>{
34
34
  ...style,
35
35
  ...styleHeight,
36
36
  ...styleWidth,
37
- ...core.makeStyleResponsive('bgc', styles?.backgroundColor),
38
- ...core.getStyleBackgroundByDevice(styles?.backgroundImage, {
39
- ignoreBackgroundColor: true
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: false
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: false
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.makeStyleResponsive('bgc', styles?.backgroundColor),
15
- ...core.getStyleBackgroundByDevice(styles?.backgroundImage, {
16
- ignoreBackgroundColor: true
14
+ ...core.getBgByDevice({
15
+ backgroundColor: styles?.backgroundColor,
16
+ backgroundImage: styles?.backgroundImage
17
17
  })
18
18
  });
19
19
  const productListWrapStyle = system.createStyle({
@@ -21,6 +21,8 @@ const getData = (props)=>{
21
21
  },
22
22
  ...setting
23
23
  };
24
+ delete carouselConfigSetting.background;
25
+ delete carouselConfigSetting.childItem;
24
26
  const carouselConfigStyle = {
25
27
  ...styles,
26
28
  sizeSetting: {
@@ -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 = ()=>{
@@ -409,6 +409,8 @@ const SettingUIV2 = [
409
409
  },
410
410
  type: 'combo',
411
411
  iconName: 'polaris-edit',
412
+ getValueFromSettingID: 'dividerColor.hover',
413
+ comboType: 'color',
412
414
  isHideClear: true,
413
415
  controls: [
414
416
  {
@@ -1,4 +1,4 @@
1
- import { makeStyleResponsive, getHeightByShapeGlobalSize, makeStyleWithDefault, getWidthByShapeGlobalSize, getStyleBackgroundByDevice, makeContainerWidthOrHeight, getResponsiveValueByScreen } from '@gem-sdk/core';
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
- ...makeStyleResponsive('bgc', styles?.backgroundColor),
36
- ...getStyleBackgroundByDevice(styles?.backgroundImage, {
37
- ignoreBackgroundColor: true
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: false
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: false
487
+ default: true
488
488
  }
489
489
  }
490
490
  },
@@ -1,4 +1,4 @@
1
- import { makeGlobalSize, makeStyleResponsive, getStyleBackgroundByDevice, getResponsiveValueByScreen, makeStyle, getSingleColorVariable, getRadiusStyleActiveState, getStyleShadow, getGradientBgrStyleByDevice } from '@gem-sdk/core';
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
- ...makeStyleResponsive('bgc', styles?.backgroundColor),
13
- ...getStyleBackgroundByDevice(styles?.backgroundImage, {
14
- ignoreBackgroundColor: true
12
+ ...getBgByDevice({
13
+ backgroundColor: styles?.backgroundColor,
14
+ backgroundImage: styles?.backgroundImage
15
15
  })
16
16
  });
17
17
  const productListWrapStyle = createStyle({
@@ -19,6 +19,8 @@ const getData = (props)=>{
19
19
  },
20
20
  ...setting
21
21
  };
22
+ delete carouselConfigSetting.background;
23
+ delete carouselConfigSetting.childItem;
22
24
  const carouselConfigStyle = {
23
25
  ...styles,
24
26
  sizeSetting: {
@@ -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 = ()=>{
@@ -407,6 +407,8 @@ const SettingUIV2 = [
407
407
  },
408
408
  type: 'combo',
409
409
  iconName: 'polaris-edit',
410
+ getValueFromSettingID: 'dividerColor.hover',
411
+ comboType: 'color',
410
412
  isHideClear: true,
411
413
  controls: [
412
414
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.501",
3
+ "version": "2.0.0-dev.503",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -23,7 +23,7 @@
23
23
  "update-img-src-3rd": "node ./scripts/update-img-src-3rd.js"
24
24
  },
25
25
  "devDependencies": {
26
- "@gem-sdk/core": "2.0.0-dev.497",
26
+ "@gem-sdk/core": "2.0.0-dev.503",
27
27
  "@gem-sdk/styles": "2.0.0-dev.501",
28
28
  "@gem-sdk/system": "2.0.0-dev.464",
29
29
  "@types/react-transition-group": "^4.4.5"