@gem-sdk/components 2.0.0-dev.362 → 2.0.0-dev.364

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.
@@ -49,7 +49,8 @@ const SettingUIV2 = [
49
49
  options: {
50
50
  labelVariant: 'primary',
51
51
  toggleStyle: 'switch',
52
- fullWidth: true
52
+ fullWidth: true,
53
+ tooltipPosition: 'right'
53
54
  },
54
55
  conditionEnable: 'ilEnabled == true'
55
56
  },
@@ -94,7 +95,8 @@ const SettingUIV2 = [
94
95
  options: {
95
96
  labelVariant: 'primary',
96
97
  toggleStyle: 'switch',
97
- fullWidth: true
98
+ fullWidth: true,
99
+ tooltipPosition: 'right'
98
100
  },
99
101
  conditionEnable: 'ftEnabled == true'
100
102
  },
@@ -42,6 +42,7 @@ const ProductQuantitySettings = [
42
42
  {
43
43
  id: 'plusIcon',
44
44
  type: 'icon',
45
+ isHideClear: true,
45
46
  customLabel: 'Plus',
46
47
  info: 'Choose from list or paste any SVG icon',
47
48
  default: `<svg height="100%" width="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508817587901825384">
@@ -50,6 +51,7 @@ const ProductQuantitySettings = [
50
51
  {
51
52
  id: 'minusIcon',
52
53
  type: 'icon',
54
+ isHideClear: true,
53
55
  customLabel: 'Minus',
54
56
  info: 'Choose from list or paste any SVG icon',
55
57
  default: `<svg height="100%" width="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508817584339812712">
@@ -199,7 +201,7 @@ const ProductQuantitySettings = [
199
201
  min: 1,
200
202
  devices: {
201
203
  desktop: {
202
- default: 20
204
+ default: 16
203
205
  }
204
206
  }
205
207
  }
@@ -323,8 +325,8 @@ const ProductQuantitySettings = [
323
325
  type: 'color-picker-v2',
324
326
  label: 'Button Background Color',
325
327
  default: {
326
- normal: 'bg-3',
327
- hover: '#E7E7E7'
328
+ normal: 'brand',
329
+ hover: 'highlight'
328
330
  },
329
331
  state: {
330
332
  hover: true,
@@ -31,17 +31,17 @@ const getTextClasses = ({ styles, setting, className, mode })=>{
31
31
  classList += `gp-relative empty:gp-pl-[2px] after:gp-content-['Your_custom_text_goes_here'] after:gp-absolute after:gp-select-none after:gp-top-0 after:gp-left-[2px] after:gp-w-full after:gp-truncate after:gp-text-black after:gp-opacity-20 `;
32
32
  }
33
33
  if (styles?.underlineLink) {
34
- classList += `${styles.underlineLink.hover ? 'hover:gp-underline' : 'hover:gp-no-underline'} ${styles.underlineLink.normal ? 'gp-underline' : ''}`;
35
- classList += !styles.underlineLink.hover ? 'hover:gp-no-underline' : '';
34
+ classList += ` ${styles.underlineLink.hover ? 'hover:gp-underline' : 'hover:!gp-no-underline'} ${styles.underlineLink.normal ? ' gp-underline' : ''}`;
35
+ classList += !styles.underlineLink.hover ? ' hover:!gp-no-underline' : '';
36
36
  }
37
37
  if (mode === 'edit') {
38
- classList += 'gp-text gp-cursor-pointer !gp-cursor-default gp-p-[2px]';
39
- if (options?.useState) classList += 'child-item-text gp-border gp-border-transparent hover:!gp-border-[#3C67FF]';
38
+ classList += ' gp-text gp-cursor-pointer !gp-cursor-default gp-p-[2px]';
39
+ if (options?.useState) classList += ' child-item-text gp-border gp-border-transparent hover:!gp-border-[#3C67FF]';
40
40
  } else {
41
- classList += 'gp-text-instant';
42
- if (options?.disablePointerEvent) classList += 'gp-pointer-events-none';
41
+ classList += ' gp-text-instant';
42
+ if (options?.disablePointerEvent) classList += ' gp-pointer-events-none';
43
43
  }
44
- const staticClasses = classList.split(' ').reduce((acc, item)=>{
44
+ const staticClasses = classList.trim().split(' ').reduce((acc, item)=>{
45
45
  acc[item] = true;
46
46
  return acc;
47
47
  }, {});
@@ -47,7 +47,8 @@ const SettingUIV2 = [
47
47
  options: {
48
48
  labelVariant: 'primary',
49
49
  toggleStyle: 'switch',
50
- fullWidth: true
50
+ fullWidth: true,
51
+ tooltipPosition: 'right'
51
52
  },
52
53
  conditionEnable: 'ilEnabled == true'
53
54
  },
@@ -92,7 +93,8 @@ const SettingUIV2 = [
92
93
  options: {
93
94
  labelVariant: 'primary',
94
95
  toggleStyle: 'switch',
95
- fullWidth: true
96
+ fullWidth: true,
97
+ tooltipPosition: 'right'
96
98
  },
97
99
  conditionEnable: 'ftEnabled == true'
98
100
  },
@@ -40,6 +40,7 @@ const ProductQuantitySettings = [
40
40
  {
41
41
  id: 'plusIcon',
42
42
  type: 'icon',
43
+ isHideClear: true,
43
44
  customLabel: 'Plus',
44
45
  info: 'Choose from list or paste any SVG icon',
45
46
  default: `<svg height="100%" width="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508817587901825384">
@@ -48,6 +49,7 @@ const ProductQuantitySettings = [
48
49
  {
49
50
  id: 'minusIcon',
50
51
  type: 'icon',
52
+ isHideClear: true,
51
53
  customLabel: 'Minus',
52
54
  info: 'Choose from list or paste any SVG icon',
53
55
  default: `<svg height="100%" width="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" data-id="508817584339812712">
@@ -197,7 +199,7 @@ const ProductQuantitySettings = [
197
199
  min: 1,
198
200
  devices: {
199
201
  desktop: {
200
- default: 20
202
+ default: 16
201
203
  }
202
204
  }
203
205
  }
@@ -321,8 +323,8 @@ const ProductQuantitySettings = [
321
323
  type: 'color-picker-v2',
322
324
  label: 'Button Background Color',
323
325
  default: {
324
- normal: 'bg-3',
325
- hover: '#E7E7E7'
326
+ normal: 'brand',
327
+ hover: 'highlight'
326
328
  },
327
329
  state: {
328
330
  hover: true,
@@ -29,17 +29,17 @@ const getTextClasses = ({ styles, setting, className, mode })=>{
29
29
  classList += `gp-relative empty:gp-pl-[2px] after:gp-content-['Your_custom_text_goes_here'] after:gp-absolute after:gp-select-none after:gp-top-0 after:gp-left-[2px] after:gp-w-full after:gp-truncate after:gp-text-black after:gp-opacity-20 `;
30
30
  }
31
31
  if (styles?.underlineLink) {
32
- classList += `${styles.underlineLink.hover ? 'hover:gp-underline' : 'hover:gp-no-underline'} ${styles.underlineLink.normal ? 'gp-underline' : ''}`;
33
- classList += !styles.underlineLink.hover ? 'hover:gp-no-underline' : '';
32
+ classList += ` ${styles.underlineLink.hover ? 'hover:gp-underline' : 'hover:!gp-no-underline'} ${styles.underlineLink.normal ? ' gp-underline' : ''}`;
33
+ classList += !styles.underlineLink.hover ? ' hover:!gp-no-underline' : '';
34
34
  }
35
35
  if (mode === 'edit') {
36
- classList += 'gp-text gp-cursor-pointer !gp-cursor-default gp-p-[2px]';
37
- if (options?.useState) classList += 'child-item-text gp-border gp-border-transparent hover:!gp-border-[#3C67FF]';
36
+ classList += ' gp-text gp-cursor-pointer !gp-cursor-default gp-p-[2px]';
37
+ if (options?.useState) classList += ' child-item-text gp-border gp-border-transparent hover:!gp-border-[#3C67FF]';
38
38
  } else {
39
- classList += 'gp-text-instant';
40
- if (options?.disablePointerEvent) classList += 'gp-pointer-events-none';
39
+ classList += ' gp-text-instant';
40
+ if (options?.disablePointerEvent) classList += ' gp-pointer-events-none';
41
41
  }
42
- const staticClasses = classList.split(' ').reduce((acc, item)=>{
42
+ const staticClasses = classList.trim().split(' ').reduce((acc, item)=>{
43
43
  acc[item] = true;
44
44
  return acc;
45
45
  }, {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.362",
3
+ "version": "2.0.0-dev.364",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -22,7 +22,7 @@
22
22
  "relationship": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/get-control-relationship.js && node ./scripts/get-element-relationship.js"
23
23
  },
24
24
  "devDependencies": {
25
- "@gem-sdk/core": "2.0.0-dev.360",
25
+ "@gem-sdk/core": "2.0.0-dev.363",
26
26
  "@gem-sdk/styles": "2.0.0-dev.324",
27
27
  "@gem-sdk/system": "2.0.0-dev.324",
28
28
  "@types/react-transition-group": "^4.4.5"