@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.
@@ -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, color } = styles ?? {};
31
+ const { borderContent, backgroundContent, roundedContent, accordionShadow, width, fullWidth, widthHeightSize, iconColor } = styles ?? {};
32
32
  return {
33
- '--icon-hover-color': isShow ? color?.active : color?.hover,
34
- '--icon-active-color': color?.active,
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 { color } = styles ?? {};
88
+ const { iconColor } = styles ?? {};
89
89
  return {
90
90
  ...isShow ? core.makeStyle({
91
- c: core.getSingleColorVariable(color?.active ?? color?.normal)
91
+ c: core.getSingleColorVariable(iconColor?.active ?? iconColor?.normal)
92
92
  }) : {
93
- ...core.getGlobalColorStateStyle('c', color)
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: 'Select item'
628
+ en: 'Item'
629
629
  },
630
630
  setting: {
631
631
  id: 'activeKey'
@@ -113,7 +113,7 @@ const SettingUIV2 = [
113
113
  options: {
114
114
  updateFields: [
115
115
  {
116
- field: 'enable',
116
+ field: 'normal.enable',
117
117
  settingId: 'hasBoxShadow',
118
118
  state: 'normal'
119
119
  }
@@ -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, color } = styles ?? {};
29
+ const { borderContent, backgroundContent, roundedContent, accordionShadow, width, fullWidth, widthHeightSize, iconColor } = styles ?? {};
30
30
  return {
31
- '--icon-hover-color': isShow ? color?.active : color?.hover,
32
- '--icon-active-color': color?.active,
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 { color } = styles ?? {};
86
+ const { iconColor } = styles ?? {};
87
87
  return {
88
88
  ...isShow ? makeStyle({
89
- c: getSingleColorVariable(color?.active ?? color?.normal)
89
+ c: getSingleColorVariable(iconColor?.active ?? iconColor?.normal)
90
90
  }) : {
91
- ...getGlobalColorStateStyle('c', color)
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: 'Select item'
626
+ en: 'Item'
627
627
  },
628
628
  setting: {
629
629
  id: 'activeKey'
@@ -111,7 +111,7 @@ const SettingUIV2 = [
111
111
  options: {
112
112
  updateFields: [
113
113
  {
114
- field: 'enable',
114
+ field: 'normal.enable',
115
115
  settingId: 'hasBoxShadow',
116
116
  state: 'normal'
117
117
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.588",
3
+ "version": "2.0.0-dev.589",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",