@gem-sdk/components 2.0.0-dev.469 → 2.0.0-dev.470

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.
@@ -84,15 +84,10 @@ const ArticleDateSettings = [
84
84
  default: {
85
85
  type: 'subheading-3',
86
86
  custom: {
87
- lineHeight: {
88
- desktop: '120%',
89
- tablet: '120%',
90
- mobile: '120%'
91
- },
92
87
  letterSpacing: '0px'
93
88
  },
94
89
  attrs: {
95
- color: '#212121'
90
+ color: 'text-1'
96
91
  }
97
92
  },
98
93
  ignoreReRender: true
@@ -49,7 +49,7 @@ const DialogSettings = [
49
49
  value: 'vertical'
50
50
  },
51
51
  {
52
- label: '3d Unfold',
52
+ label: '3d unfold',
53
53
  value: 'unfold'
54
54
  },
55
55
  {
@@ -114,18 +114,18 @@ const SettingUIV2 = [
114
114
  },
115
115
  {
116
116
  label: {
117
- en: 'Click to close'
117
+ en: 'Opacity'
118
118
  },
119
119
  setting: {
120
- id: 'closeOnClickOutside'
120
+ id: 'overlayOpacity'
121
121
  }
122
122
  },
123
123
  {
124
124
  label: {
125
- en: 'Opacity'
125
+ en: 'Click to close'
126
126
  },
127
127
  setting: {
128
- id: 'overlayOpacity'
128
+ id: 'closeOnClickOutside'
129
129
  }
130
130
  }
131
131
  ]
@@ -275,6 +275,7 @@ const ProductProperties = ({ setting, styles, builderProps })=>{
275
275
  name,
276
276
  handleChange
277
277
  },
278
+ currentProductId: currentProductId,
278
279
  styles: styles,
279
280
  defaultName: builderProps?.uid
280
281
  }),
@@ -10,11 +10,11 @@ var getProductPropertiesChoiceStyles = require('./common/getProductPropertiesCho
10
10
  var getProductPropertiesChoiceInlineCss = require('./common/getProductPropertiesChoiceInlineCss.js');
11
11
  var system = require('@gem-sdk/system');
12
12
 
13
- const ProductPropertyChoice = ({ setting, styles, defaultName })=>{
13
+ const ProductPropertyChoice = ({ setting, styles, defaultName, currentProductId })=>{
14
14
  const uniqId = core.useUniqProductID();
15
15
  const { name, type, handleChange, childItem } = setting ?? {};
16
16
  const { specialValueTextColor } = styles ?? {};
17
- const inputName = name || defaultName;
17
+ const inputName = `${(name || defaultName) ?? ''}-${currentProductId}`;
18
18
  const activeChoiceCss = getProductPropertiesChoiceInlineCss.getPPCInlineStyleChoice(defaultName, specialValueTextColor);
19
19
  const wrapperClasses = system.createClass({
20
20
  ...getProductPropertiesChoiceClasses.getPPCWrapperClasses()
@@ -82,15 +82,10 @@ const ArticleDateSettings = [
82
82
  default: {
83
83
  type: 'subheading-3',
84
84
  custom: {
85
- lineHeight: {
86
- desktop: '120%',
87
- tablet: '120%',
88
- mobile: '120%'
89
- },
90
85
  letterSpacing: '0px'
91
86
  },
92
87
  attrs: {
93
- color: '#212121'
88
+ color: 'text-1'
94
89
  }
95
90
  },
96
91
  ignoreReRender: true
@@ -47,7 +47,7 @@ const DialogSettings = [
47
47
  value: 'vertical'
48
48
  },
49
49
  {
50
- label: '3d Unfold',
50
+ label: '3d unfold',
51
51
  value: 'unfold'
52
52
  },
53
53
  {
@@ -112,18 +112,18 @@ const SettingUIV2 = [
112
112
  },
113
113
  {
114
114
  label: {
115
- en: 'Click to close'
115
+ en: 'Opacity'
116
116
  },
117
117
  setting: {
118
- id: 'closeOnClickOutside'
118
+ id: 'overlayOpacity'
119
119
  }
120
120
  },
121
121
  {
122
122
  label: {
123
- en: 'Opacity'
123
+ en: 'Click to close'
124
124
  },
125
125
  setting: {
126
- id: 'overlayOpacity'
126
+ id: 'closeOnClickOutside'
127
127
  }
128
128
  }
129
129
  ]
@@ -271,6 +271,7 @@ const ProductProperties = ({ setting, styles, builderProps })=>{
271
271
  name,
272
272
  handleChange
273
273
  },
274
+ currentProductId: currentProductId,
274
275
  styles: styles,
275
276
  defaultName: builderProps?.uid
276
277
  }),
@@ -6,11 +6,11 @@ import { getPPCWrapperStyles, getPPCContainerStyles, getPPCLabelStyles } from '.
6
6
  import { getPPCInlineStyleChoice } from './common/getProductPropertiesChoiceInlineCss.js';
7
7
  import { createClass, createStyle } from '@gem-sdk/system';
8
8
 
9
- const ProductPropertyChoice = ({ setting, styles, defaultName })=>{
9
+ const ProductPropertyChoice = ({ setting, styles, defaultName, currentProductId })=>{
10
10
  const uniqId = useUniqProductID();
11
11
  const { name, type, handleChange, childItem } = setting ?? {};
12
12
  const { specialValueTextColor } = styles ?? {};
13
- const inputName = name || defaultName;
13
+ const inputName = `${(name || defaultName) ?? ''}-${currentProductId}`;
14
14
  const activeChoiceCss = getPPCInlineStyleChoice(defaultName, specialValueTextColor);
15
15
  const wrapperClasses = createClass({
16
16
  ...getPPCWrapperClasses()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.469",
3
+ "version": "2.0.0-dev.470",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",