@gem-sdk/components 2.0.0-dev.588 → 2.0.0-dev.589
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.
- package/dist/cjs/accordion/components/common/styles.js +6 -6
- package/dist/cjs/accordion/setting/configs/uiV2.js +2 -2
- package/dist/cjs/sticky/setting/configs/uiV2.js +1 -1
- package/dist/esm/accordion/components/common/styles.js +6 -6
- package/dist/esm/accordion/setting/configs/uiV2.js +2 -2
- package/dist/esm/sticky/setting/configs/uiV2.js +1 -1
- package/package.json +1 -1
|
@@ -28,10 +28,10 @@ const getContainerStyles = (style, styles)=>{
|
|
|
28
28
|
const widthHeightSizeControl = (widthHeightSize)=>core.makeGlobalSize(widthHeightSize);
|
|
29
29
|
const widthStyle = (width, fullWidth, widthHeightSize)=>widthHeightSizeControl(widthHeightSize).width['--w'] ? widthHeightSizeControl(widthHeightSize).width : core.makeStyleResponsive('w', core.makeWidth(width, fullWidth));
|
|
30
30
|
const getItemContainerStyles = (styles, isShow)=>{
|
|
31
|
-
const { borderContent, backgroundContent, roundedContent, accordionShadow, width, fullWidth, widthHeightSize,
|
|
31
|
+
const { borderContent, backgroundContent, roundedContent, accordionShadow, width, fullWidth, widthHeightSize, iconColor } = styles ?? {};
|
|
32
32
|
return {
|
|
33
|
-
'--icon-hover-color': isShow ?
|
|
34
|
-
'--icon-active-color':
|
|
33
|
+
'--icon-hover-color': isShow ? iconColor?.active : iconColor?.hover,
|
|
34
|
+
'--icon-active-color': iconColor?.active,
|
|
35
35
|
...widthStyle(width, fullWidth, widthHeightSize),
|
|
36
36
|
...core.makeStyle({
|
|
37
37
|
bs: borderContent?.border ?? borderContent?.border,
|
|
@@ -85,12 +85,12 @@ const getDropdownStyles = (styles, extraData)=>{
|
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
87
|
const getIconRotateStyles = (styles, isShow, iconCollapseSize)=>{
|
|
88
|
-
const {
|
|
88
|
+
const { iconColor } = styles ?? {};
|
|
89
89
|
return {
|
|
90
90
|
...isShow ? core.makeStyle({
|
|
91
|
-
c: core.getSingleColorVariable(
|
|
91
|
+
c: core.getSingleColorVariable(iconColor?.active ?? iconColor?.normal)
|
|
92
92
|
}) : {
|
|
93
|
-
...core.getGlobalColorStateStyle('c',
|
|
93
|
+
...core.getGlobalColorStateStyle('c', iconColor)
|
|
94
94
|
},
|
|
95
95
|
width: `${iconCollapseSize ?? 16}px`,
|
|
96
96
|
height: `${iconCollapseSize ?? 16}px`
|
|
@@ -558,7 +558,7 @@ const SettingUIV2 = [
|
|
|
558
558
|
options: {
|
|
559
559
|
updateFields: [
|
|
560
560
|
{
|
|
561
|
-
field: 'enable',
|
|
561
|
+
field: 'normal.enable',
|
|
562
562
|
settingId: 'hasBoxShadow',
|
|
563
563
|
state: 'normal'
|
|
564
564
|
}
|
|
@@ -625,7 +625,7 @@ const SettingUIV2 = [
|
|
|
625
625
|
},
|
|
626
626
|
{
|
|
627
627
|
label: {
|
|
628
|
-
en: '
|
|
628
|
+
en: 'Item'
|
|
629
629
|
},
|
|
630
630
|
setting: {
|
|
631
631
|
id: 'activeKey'
|
|
@@ -26,10 +26,10 @@ const getContainerStyles = (style, styles)=>{
|
|
|
26
26
|
const widthHeightSizeControl = (widthHeightSize)=>makeGlobalSize(widthHeightSize);
|
|
27
27
|
const widthStyle = (width, fullWidth, widthHeightSize)=>widthHeightSizeControl(widthHeightSize).width['--w'] ? widthHeightSizeControl(widthHeightSize).width : makeStyleResponsive('w', makeWidth(width, fullWidth));
|
|
28
28
|
const getItemContainerStyles = (styles, isShow)=>{
|
|
29
|
-
const { borderContent, backgroundContent, roundedContent, accordionShadow, width, fullWidth, widthHeightSize,
|
|
29
|
+
const { borderContent, backgroundContent, roundedContent, accordionShadow, width, fullWidth, widthHeightSize, iconColor } = styles ?? {};
|
|
30
30
|
return {
|
|
31
|
-
'--icon-hover-color': isShow ?
|
|
32
|
-
'--icon-active-color':
|
|
31
|
+
'--icon-hover-color': isShow ? iconColor?.active : iconColor?.hover,
|
|
32
|
+
'--icon-active-color': iconColor?.active,
|
|
33
33
|
...widthStyle(width, fullWidth, widthHeightSize),
|
|
34
34
|
...makeStyle({
|
|
35
35
|
bs: borderContent?.border ?? borderContent?.border,
|
|
@@ -83,12 +83,12 @@ const getDropdownStyles = (styles, extraData)=>{
|
|
|
83
83
|
};
|
|
84
84
|
};
|
|
85
85
|
const getIconRotateStyles = (styles, isShow, iconCollapseSize)=>{
|
|
86
|
-
const {
|
|
86
|
+
const { iconColor } = styles ?? {};
|
|
87
87
|
return {
|
|
88
88
|
...isShow ? makeStyle({
|
|
89
|
-
c: getSingleColorVariable(
|
|
89
|
+
c: getSingleColorVariable(iconColor?.active ?? iconColor?.normal)
|
|
90
90
|
}) : {
|
|
91
|
-
...getGlobalColorStateStyle('c',
|
|
91
|
+
...getGlobalColorStateStyle('c', iconColor)
|
|
92
92
|
},
|
|
93
93
|
width: `${iconCollapseSize ?? 16}px`,
|
|
94
94
|
height: `${iconCollapseSize ?? 16}px`
|
|
@@ -556,7 +556,7 @@ const SettingUIV2 = [
|
|
|
556
556
|
options: {
|
|
557
557
|
updateFields: [
|
|
558
558
|
{
|
|
559
|
-
field: 'enable',
|
|
559
|
+
field: 'normal.enable',
|
|
560
560
|
settingId: 'hasBoxShadow',
|
|
561
561
|
state: 'normal'
|
|
562
562
|
}
|
|
@@ -623,7 +623,7 @@ const SettingUIV2 = [
|
|
|
623
623
|
},
|
|
624
624
|
{
|
|
625
625
|
label: {
|
|
626
|
-
en: '
|
|
626
|
+
en: 'Item'
|
|
627
627
|
},
|
|
628
628
|
setting: {
|
|
629
629
|
id: 'activeKey'
|