@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.
- package/dist/cjs/article/setting/configs/ArticleDate/settings.js +1 -6
- package/dist/cjs/dialog/setting/configs/settings.js +1 -1
- package/dist/cjs/dialog/setting/configs/uiV2.js +4 -4
- package/dist/cjs/product/components/ProductProperties/ProductProperties.js +1 -0
- package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/ProductPropertyChoice.js +2 -2
- package/dist/esm/article/setting/configs/ArticleDate/settings.js +1 -6
- package/dist/esm/dialog/setting/configs/settings.js +1 -1
- package/dist/esm/dialog/setting/configs/uiV2.js +4 -4
- package/dist/esm/product/components/ProductProperties/ProductProperties.js +1 -0
- package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/ProductPropertyChoice.js +2 -2
- package/package.json +1 -1
|
@@ -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: '
|
|
90
|
+
color: 'text-1'
|
|
96
91
|
}
|
|
97
92
|
},
|
|
98
93
|
ignoreReRender: true
|
|
@@ -114,18 +114,18 @@ const SettingUIV2 = [
|
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
label: {
|
|
117
|
-
en: '
|
|
117
|
+
en: 'Opacity'
|
|
118
118
|
},
|
|
119
119
|
setting: {
|
|
120
|
-
id: '
|
|
120
|
+
id: 'overlayOpacity'
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
label: {
|
|
125
|
-
en: '
|
|
125
|
+
en: 'Click to close'
|
|
126
126
|
},
|
|
127
127
|
setting: {
|
|
128
|
-
id: '
|
|
128
|
+
id: 'closeOnClickOutside'
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
]
|
package/dist/cjs/product/components/ProductProperties/ProductPropertyChoice/ProductPropertyChoice.js
CHANGED
|
@@ -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: '
|
|
88
|
+
color: 'text-1'
|
|
94
89
|
}
|
|
95
90
|
},
|
|
96
91
|
ignoreReRender: true
|
|
@@ -112,18 +112,18 @@ const SettingUIV2 = [
|
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
label: {
|
|
115
|
-
en: '
|
|
115
|
+
en: 'Opacity'
|
|
116
116
|
},
|
|
117
117
|
setting: {
|
|
118
|
-
id: '
|
|
118
|
+
id: 'overlayOpacity'
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
label: {
|
|
123
|
-
en: '
|
|
123
|
+
en: 'Click to close'
|
|
124
124
|
},
|
|
125
125
|
setting: {
|
|
126
|
-
id: '
|
|
126
|
+
id: 'closeOnClickOutside'
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
]
|
package/dist/esm/product/components/ProductProperties/ProductPropertyChoice/ProductPropertyChoice.js
CHANGED
|
@@ -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()
|