@gem-sdk/components 2.0.0-dev.361 → 2.0.0-dev.363

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.
@@ -62,7 +62,8 @@ const ArticleAuthorSettings = [
62
62
  desktop: '120%',
63
63
  tablet: '120%',
64
64
  mobile: '120%'
65
- }
65
+ },
66
+ letterSpacing: '0px'
66
67
  }
67
68
  },
68
69
  ignoreReRender: true
@@ -55,7 +55,8 @@ const ArticleCategorySettings = [
55
55
  desktop: '120%',
56
56
  tablet: '120%',
57
57
  mobile: '120%'
58
- }
58
+ },
59
+ letterSpacing: '0px'
59
60
  }
60
61
  },
61
62
  ignoreReRender: true
@@ -88,7 +88,8 @@ const ArticleDateSettings = [
88
88
  desktop: '120%',
89
89
  tablet: '120%',
90
90
  mobile: '120%'
91
- }
91
+ },
92
+ letterSpacing: '0px'
92
93
  }
93
94
  },
94
95
  ignoreReRender: true
@@ -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
  },
@@ -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
  }, {});
@@ -60,7 +60,8 @@ const ArticleAuthorSettings = [
60
60
  desktop: '120%',
61
61
  tablet: '120%',
62
62
  mobile: '120%'
63
- }
63
+ },
64
+ letterSpacing: '0px'
64
65
  }
65
66
  },
66
67
  ignoreReRender: true
@@ -53,7 +53,8 @@ const ArticleCategorySettings = [
53
53
  desktop: '120%',
54
54
  tablet: '120%',
55
55
  mobile: '120%'
56
- }
56
+ },
57
+ letterSpacing: '0px'
57
58
  }
58
59
  },
59
60
  ignoreReRender: true
@@ -86,7 +86,8 @@ const ArticleDateSettings = [
86
86
  desktop: '120%',
87
87
  tablet: '120%',
88
88
  mobile: '120%'
89
- }
89
+ },
90
+ letterSpacing: '0px'
90
91
  }
91
92
  },
92
93
  ignoreReRender: true
@@ -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
  },
@@ -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.361",
3
+ "version": "2.0.0-dev.363",
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"