@gem-sdk/components 2.0.0-dev.362 → 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.
|
@@ -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 +=
|
|
35
|
-
classList += !styles.underlineLink.hover ? 'hover
|
|
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
|
},
|
|
@@ -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 +=
|
|
33
|
-
classList += !styles.underlineLink.hover ? 'hover
|
|
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.
|
|
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.
|
|
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"
|