@gem-sdk/core 2.0.0-dev.431 → 2.0.0-dev.451
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.
|
@@ -33,7 +33,8 @@ const getCustomRadius = (state, radius, device)=>{
|
|
|
33
33
|
'rounded',
|
|
34
34
|
'single',
|
|
35
35
|
'none',
|
|
36
|
-
'circle'
|
|
36
|
+
'circle',
|
|
37
|
+
'square'
|
|
37
38
|
];
|
|
38
39
|
if (!radius || !state || !list.includes(radius?.radiusType ?? '')) return {};
|
|
39
40
|
const suffix = device && device !== 'desktop' ? constant.devicesMapping?.[device] : '';
|
|
@@ -70,6 +71,7 @@ const composeRadiusState = (radiusValue, device)=>{
|
|
|
70
71
|
case 'circle':
|
|
71
72
|
case 'none':
|
|
72
73
|
case 'custom':
|
|
74
|
+
case 'square':
|
|
73
75
|
case 'rounded':
|
|
74
76
|
Object.assign(style, getCustomRadius('normal', radiusValue.normal, device));
|
|
75
77
|
break;
|
|
@@ -83,6 +85,7 @@ const composeRadiusState = (radiusValue, device)=>{
|
|
|
83
85
|
case 'circle':
|
|
84
86
|
case 'none':
|
|
85
87
|
case 'custom':
|
|
88
|
+
case 'square':
|
|
86
89
|
case 'rounded':
|
|
87
90
|
Object.assign(style, getCustomRadius('hover', radiusValue.hover, device));
|
|
88
91
|
break;
|
|
@@ -96,6 +99,7 @@ const composeRadiusState = (radiusValue, device)=>{
|
|
|
96
99
|
case 'circle':
|
|
97
100
|
case 'none':
|
|
98
101
|
case 'custom':
|
|
102
|
+
case 'square':
|
|
99
103
|
case 'rounded':
|
|
100
104
|
Object.assign(style, getCustomRadius('focus', radiusValue.focus, device));
|
|
101
105
|
break;
|
|
@@ -129,6 +133,7 @@ const composeCornerCss = (value, important = false)=>{
|
|
|
129
133
|
radiusValue = `border-radius: var(--g-radius-${radiusType});`;
|
|
130
134
|
break;
|
|
131
135
|
case 'circle':
|
|
136
|
+
case 'square':
|
|
132
137
|
case 'none':
|
|
133
138
|
case 'rounded':
|
|
134
139
|
case 'custom':
|
|
@@ -31,7 +31,8 @@ const getCustomRadius = (state, radius, device)=>{
|
|
|
31
31
|
'rounded',
|
|
32
32
|
'single',
|
|
33
33
|
'none',
|
|
34
|
-
'circle'
|
|
34
|
+
'circle',
|
|
35
|
+
'square'
|
|
35
36
|
];
|
|
36
37
|
if (!radius || !state || !list.includes(radius?.radiusType ?? '')) return {};
|
|
37
38
|
const suffix = device && device !== 'desktop' ? devicesMapping?.[device] : '';
|
|
@@ -68,6 +69,7 @@ const composeRadiusState = (radiusValue, device)=>{
|
|
|
68
69
|
case 'circle':
|
|
69
70
|
case 'none':
|
|
70
71
|
case 'custom':
|
|
72
|
+
case 'square':
|
|
71
73
|
case 'rounded':
|
|
72
74
|
Object.assign(style, getCustomRadius('normal', radiusValue.normal, device));
|
|
73
75
|
break;
|
|
@@ -81,6 +83,7 @@ const composeRadiusState = (radiusValue, device)=>{
|
|
|
81
83
|
case 'circle':
|
|
82
84
|
case 'none':
|
|
83
85
|
case 'custom':
|
|
86
|
+
case 'square':
|
|
84
87
|
case 'rounded':
|
|
85
88
|
Object.assign(style, getCustomRadius('hover', radiusValue.hover, device));
|
|
86
89
|
break;
|
|
@@ -94,6 +97,7 @@ const composeRadiusState = (radiusValue, device)=>{
|
|
|
94
97
|
case 'circle':
|
|
95
98
|
case 'none':
|
|
96
99
|
case 'custom':
|
|
100
|
+
case 'square':
|
|
97
101
|
case 'rounded':
|
|
98
102
|
Object.assign(style, getCustomRadius('focus', radiusValue.focus, device));
|
|
99
103
|
break;
|
|
@@ -127,6 +131,7 @@ const composeCornerCss = (value, important = false)=>{
|
|
|
127
131
|
radiusValue = `border-radius: var(--g-radius-${radiusType});`;
|
|
128
132
|
break;
|
|
129
133
|
case 'circle':
|
|
134
|
+
case 'square':
|
|
130
135
|
case 'none':
|
|
131
136
|
case 'rounded':
|
|
132
137
|
case 'custom':
|
package/dist/types/index.d.ts
CHANGED
|
@@ -36299,6 +36299,7 @@ type SettingUICompo = {
|
|
|
36299
36299
|
iconPrefix?: string;
|
|
36300
36300
|
disableScrollbar?: boolean;
|
|
36301
36301
|
capitalizeDisplayValue?: boolean;
|
|
36302
|
+
enableCheckSettingsValue?: boolean;
|
|
36302
36303
|
};
|
|
36303
36304
|
type SettingUIMoreSetting = {
|
|
36304
36305
|
label?: LabelWithLang;
|