@gem-sdk/components 2.0.0-dev.377 → 2.0.0-dev.379
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/components/ArticleImage.liquid.js +2 -1
- package/dist/cjs/article/components/ArticleTitle.liquid.js +2 -1
- package/dist/cjs/article/setting/configs/ArticleImage/settings.js +14 -3
- package/dist/cjs/article/setting/configs/ArticleImage/uiV2.js +8 -0
- package/dist/cjs/article/setting/configs/ArticleReadMore/settings.js +12 -12
- package/dist/cjs/article/setting/configs/ArticleReadMore/uiV2.js +1 -179
- package/dist/cjs/article/setting/configs/ArticleTitle/settings.js +15 -4
- package/dist/cjs/article/setting/configs/ArticleTitle/uiV2.js +8 -0
- package/dist/cjs/form/components/textinput/TextInput.js +25 -30
- package/dist/cjs/form/components/textinput/TextInput.liquid.js +3 -3
- package/dist/cjs/form/components/textinput/common/composeClasses.js +0 -6
- package/dist/cjs/form/components/textinput/common/composeStyles.js +8 -2
- package/dist/cjs/form/setting/text-input/configs/settings.js +23 -48
- package/dist/cjs/form/setting/text-input/configs/uiV2.js +72 -11
- package/dist/cjs/helpers.js +4 -0
- package/dist/cjs/index.js +1 -0
- package/dist/esm/article/components/ArticleImage.liquid.js +2 -1
- package/dist/esm/article/components/ArticleTitle.liquid.js +2 -1
- package/dist/esm/article/setting/configs/ArticleImage/settings.js +14 -3
- package/dist/esm/article/setting/configs/ArticleImage/uiV2.js +8 -0
- package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +12 -12
- package/dist/esm/article/setting/configs/ArticleReadMore/uiV2.js +1 -179
- package/dist/esm/article/setting/configs/ArticleTitle/settings.js +15 -4
- package/dist/esm/article/setting/configs/ArticleTitle/uiV2.js +8 -0
- package/dist/esm/form/components/textinput/TextInput.js +28 -33
- package/dist/esm/form/components/textinput/TextInput.liquid.js +5 -5
- package/dist/esm/form/components/textinput/common/composeClasses.js +1 -6
- package/dist/esm/form/components/textinput/common/composeStyles.js +9 -4
- package/dist/esm/form/setting/text-input/configs/settings.js +23 -48
- package/dist/esm/form/setting/text-input/configs/uiV2.js +72 -11
- package/dist/esm/helpers.js +4 -1
- package/dist/esm/index.js +1 -1
- package/dist/types/index.d.ts +21 -4
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var core = require('@gem-sdk/core');
|
|
7
7
|
var Image_liquid = require('../../image/components/Image.liquid.js');
|
|
8
|
+
var helpers = require('../../helpers.js');
|
|
8
9
|
|
|
9
10
|
const ArticleImage = (props)=>{
|
|
10
11
|
const setting = props?.setting ?? {};
|
|
@@ -12,7 +13,7 @@ const ArticleImage = (props)=>{
|
|
|
12
13
|
return core.template`
|
|
13
14
|
<div class="${core.cls('gp-text-center gp-overflow-hidden', props?.className)}" style="border-radius: inherit">
|
|
14
15
|
${setting?.linkArticle ? `
|
|
15
|
-
<a href="{
|
|
16
|
+
<a href="${helpers.getLinkArticle(setting.linkArticle, setting.customURL)}" title="{{article.title}}">
|
|
16
17
|
${Image_liquid.default({
|
|
17
18
|
...props,
|
|
18
19
|
styles: props.styles,
|
|
@@ -5,12 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var core = require('@gem-sdk/core');
|
|
7
7
|
var Text_liquid = require('../../text/components/Text.liquid.js');
|
|
8
|
+
var helpers = require('../../helpers.js');
|
|
8
9
|
|
|
9
10
|
const ArticleTitle = ({ setting, styles, advanced, builderProps })=>{
|
|
10
11
|
const target = setting?.openNewTab ? '_blank' : '_self';
|
|
11
12
|
return core.template`
|
|
12
13
|
${setting?.enableLink && setting?.linkArticle ? `
|
|
13
|
-
<a href="{
|
|
14
|
+
<a href="${helpers.getLinkArticle(setting.linkArticle, setting.customURL)}" target="${{
|
|
14
15
|
target
|
|
15
16
|
}}" title="{{article.title}}">
|
|
16
17
|
${Text_liquid.default({
|
|
@@ -63,16 +63,27 @@ const ArticleImageSettings = [
|
|
|
63
63
|
options: [
|
|
64
64
|
{
|
|
65
65
|
label: 'Go to article',
|
|
66
|
-
value:
|
|
66
|
+
value: 'go-to-article'
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
label: 'Scroll to',
|
|
70
|
-
value:
|
|
70
|
+
value: 'scroll-to'
|
|
71
71
|
}
|
|
72
72
|
],
|
|
73
|
-
default:
|
|
73
|
+
default: 'go-to-article',
|
|
74
74
|
info: 'Ability to click on article title to go to article detail page.'
|
|
75
75
|
},
|
|
76
|
+
{
|
|
77
|
+
id: 'customURL',
|
|
78
|
+
label: 'Custom URL',
|
|
79
|
+
type: 'pick-link',
|
|
80
|
+
default: {
|
|
81
|
+
target: '_self',
|
|
82
|
+
type: 'scroll-to'
|
|
83
|
+
},
|
|
84
|
+
isHiddenOpenLinkSelect: true,
|
|
85
|
+
hide: true
|
|
86
|
+
},
|
|
76
87
|
{
|
|
77
88
|
id: 'openNewTab',
|
|
78
89
|
type: 'option:value',
|
|
@@ -19,18 +19,18 @@ const ArticleReadMoreSettings = [
|
|
|
19
19
|
value: 'button',
|
|
20
20
|
iconName: 'gp-article-filled-square'
|
|
21
21
|
},
|
|
22
|
-
{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
label: 'Text',
|
|
22
|
+
// {
|
|
23
|
+
// label: 'Rounded',
|
|
24
|
+
// value: 'rounded',
|
|
25
|
+
// iconName: 'gp-article-rounded',
|
|
26
|
+
// },
|
|
27
|
+
// {
|
|
28
|
+
// label: 'Outline',
|
|
29
|
+
// value: 'outline',
|
|
30
|
+
// iconName: 'gp-article-outline',
|
|
31
|
+
// },
|
|
32
|
+
{
|
|
33
|
+
label: 'Text only',
|
|
34
34
|
value: 'text',
|
|
35
35
|
iconName: 'gp-article-link'
|
|
36
36
|
}
|
|
@@ -10,185 +10,7 @@ const uiV2 = [
|
|
|
10
10
|
setting: {
|
|
11
11
|
id: 'readMoreType'
|
|
12
12
|
},
|
|
13
|
-
layout: 'vertical'
|
|
14
|
-
controlChangeTrigger: {
|
|
15
|
-
settings: [
|
|
16
|
-
{
|
|
17
|
-
condition: `readMoreType === 'outline'`,
|
|
18
|
-
source: [
|
|
19
|
-
'readMoreType'
|
|
20
|
-
],
|
|
21
|
-
action: {
|
|
22
|
-
controlId: 'borderBtnV2',
|
|
23
|
-
groupType: 'style',
|
|
24
|
-
controlType: 'style',
|
|
25
|
-
newValue: {
|
|
26
|
-
normal: {
|
|
27
|
-
border: 'solid',
|
|
28
|
-
color: '#121212',
|
|
29
|
-
width: '1px',
|
|
30
|
-
borderWidth: '1px',
|
|
31
|
-
borderType: '1px'
|
|
32
|
-
},
|
|
33
|
-
hover: {
|
|
34
|
-
border: 'solid',
|
|
35
|
-
color: '#121212',
|
|
36
|
-
width: '1px',
|
|
37
|
-
borderWidth: '1px',
|
|
38
|
-
borderType: '1px'
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
condition: `readMoreType === 'button'`,
|
|
45
|
-
source: [
|
|
46
|
-
'readMoreType'
|
|
47
|
-
],
|
|
48
|
-
action: {
|
|
49
|
-
controlId: 'roundedBtnV2',
|
|
50
|
-
groupType: 'style',
|
|
51
|
-
controlType: 'style',
|
|
52
|
-
newValue: {
|
|
53
|
-
normal: {},
|
|
54
|
-
hover: {}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
condition: `readMoreType === 'outline'`,
|
|
60
|
-
source: [
|
|
61
|
-
'readMoreType'
|
|
62
|
-
],
|
|
63
|
-
action: {
|
|
64
|
-
controlId: 'backgroundColorV2',
|
|
65
|
-
groupType: 'style',
|
|
66
|
-
controlType: 'style',
|
|
67
|
-
newValue: {
|
|
68
|
-
normal: '#212121',
|
|
69
|
-
hover: '#303030'
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
condition: `readMoreType === 'button' || readMoreType === 'rounded'`,
|
|
75
|
-
source: [
|
|
76
|
-
'readMoreType'
|
|
77
|
-
],
|
|
78
|
-
action: {
|
|
79
|
-
controlId: 'backgroundColorV2',
|
|
80
|
-
groupType: 'style',
|
|
81
|
-
controlType: 'style',
|
|
82
|
-
newValue: {
|
|
83
|
-
normal: '#212121',
|
|
84
|
-
hover: '#303030'
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
condition: `readMoreType === 'outline'`,
|
|
90
|
-
source: [
|
|
91
|
-
'readMoreType'
|
|
92
|
-
],
|
|
93
|
-
action: {
|
|
94
|
-
controlId: 'borderBtnV2',
|
|
95
|
-
groupType: 'style',
|
|
96
|
-
controlType: 'style',
|
|
97
|
-
newValue: {
|
|
98
|
-
normal: {},
|
|
99
|
-
hover: {}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
condition: `readMoreType === 'outline'`,
|
|
105
|
-
source: [
|
|
106
|
-
'readMoreType'
|
|
107
|
-
],
|
|
108
|
-
action: {
|
|
109
|
-
controlId: 'backgroundColorV2',
|
|
110
|
-
groupType: 'style',
|
|
111
|
-
controlType: 'style',
|
|
112
|
-
newValue: {
|
|
113
|
-
normal: 'transparent',
|
|
114
|
-
hover: '#ECECEC'
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
condition: `readMoreType === 'rounded'`,
|
|
120
|
-
source: [
|
|
121
|
-
'readMoreType'
|
|
122
|
-
],
|
|
123
|
-
action: {
|
|
124
|
-
controlId: 'roundedBtnV2',
|
|
125
|
-
groupType: 'style',
|
|
126
|
-
controlType: 'style',
|
|
127
|
-
newValue: {
|
|
128
|
-
normal: {
|
|
129
|
-
btrr: '99999px',
|
|
130
|
-
bblr: '99999px',
|
|
131
|
-
bbrr: '99999px',
|
|
132
|
-
btlr: '99999px',
|
|
133
|
-
radiusType: 'circle'
|
|
134
|
-
},
|
|
135
|
-
hover: {
|
|
136
|
-
btrr: '99999px',
|
|
137
|
-
bblr: '99999px',
|
|
138
|
-
bbrr: '99999px',
|
|
139
|
-
btlr: '99999px',
|
|
140
|
-
radiusType: 'circle'
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
condition: `readMoreType === 'rounded'`,
|
|
147
|
-
source: [
|
|
148
|
-
'readMoreType'
|
|
149
|
-
],
|
|
150
|
-
action: {
|
|
151
|
-
controlId: 'roundedBtnV2',
|
|
152
|
-
groupType: 'style',
|
|
153
|
-
controlType: 'style',
|
|
154
|
-
newValue: {
|
|
155
|
-
normal: {
|
|
156
|
-
btrr: '99999px',
|
|
157
|
-
bblr: '99999px',
|
|
158
|
-
bbrr: '99999px',
|
|
159
|
-
btlr: '99999px',
|
|
160
|
-
radiusType: 'circle'
|
|
161
|
-
},
|
|
162
|
-
hover: {
|
|
163
|
-
btrr: '99999px',
|
|
164
|
-
bblr: '99999px',
|
|
165
|
-
bbrr: '99999px',
|
|
166
|
-
btlr: '99999px',
|
|
167
|
-
radiusType: 'circle'
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
condition: `readMoreType !== 'rounded'`,
|
|
174
|
-
source: [
|
|
175
|
-
'readMoreType'
|
|
176
|
-
],
|
|
177
|
-
action: {
|
|
178
|
-
controlId: 'roundedBtnV2',
|
|
179
|
-
groupType: 'style',
|
|
180
|
-
controlType: 'style',
|
|
181
|
-
newValue: {
|
|
182
|
-
normal: {},
|
|
183
|
-
hover: {}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
],
|
|
188
|
-
options: {
|
|
189
|
-
noRecordHistory: true
|
|
190
|
-
}
|
|
191
|
-
}
|
|
13
|
+
layout: 'vertical'
|
|
192
14
|
}
|
|
193
15
|
]
|
|
194
16
|
},
|
|
@@ -52,17 +52,28 @@ const ArticleTitleSettings = [
|
|
|
52
52
|
type: 'select',
|
|
53
53
|
options: [
|
|
54
54
|
{
|
|
55
|
-
label: '
|
|
56
|
-
value:
|
|
55
|
+
label: 'Go to article',
|
|
56
|
+
value: 'go-to-article'
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
label: 'None',
|
|
60
|
-
value:
|
|
60
|
+
value: 'scroll-to'
|
|
61
61
|
}
|
|
62
62
|
],
|
|
63
|
-
default:
|
|
63
|
+
default: 'go-to-article',
|
|
64
64
|
info: 'Ability to click on article title to go to article detail page.'
|
|
65
65
|
},
|
|
66
|
+
{
|
|
67
|
+
id: 'customURL',
|
|
68
|
+
label: 'Custom URL',
|
|
69
|
+
type: 'pick-link',
|
|
70
|
+
default: {
|
|
71
|
+
target: '_self',
|
|
72
|
+
type: 'scroll-to'
|
|
73
|
+
},
|
|
74
|
+
isHiddenOpenLinkSelect: true,
|
|
75
|
+
hide: true
|
|
76
|
+
},
|
|
66
77
|
{
|
|
67
78
|
id: 'openNewTab',
|
|
68
79
|
type: 'segment',
|
|
@@ -108,6 +108,14 @@ const uiV2 = [
|
|
|
108
108
|
id: 'linkArticle'
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
|
+
{
|
|
112
|
+
type: 'control',
|
|
113
|
+
conditionDisplay: "linkArticle === 'scroll-to'",
|
|
114
|
+
layout: 'vertical',
|
|
115
|
+
setting: {
|
|
116
|
+
id: 'customURL'
|
|
117
|
+
}
|
|
118
|
+
},
|
|
111
119
|
{
|
|
112
120
|
conditionDisplay: 'enableLink === true',
|
|
113
121
|
label: {
|
|
@@ -16,42 +16,37 @@ const TextInput = ({ setting, builderProps, className, builderAttrs, advanced, c
|
|
|
16
16
|
const composedTextFieldClasses = system.createClass(composeClasses.composeTextFieldClasses(setting, builderProps, className ?? ''));
|
|
17
17
|
const composedTextFieldStyles = system.createStyle(composeStyles.composeTextareaStyles(advanced, setting, styles));
|
|
18
18
|
const composedTextAreaClasses = system.createClass({
|
|
19
|
-
composedTextFieldClasses: true
|
|
20
|
-
...composeClasses.composeTextAreaClasses()
|
|
19
|
+
composedTextFieldClasses: true
|
|
21
20
|
});
|
|
21
|
+
const rowsTextArea = composeStyles.getRowsTextArea(setting);
|
|
22
22
|
const isTextArea = formType === 'textarea';
|
|
23
|
-
return /*#__PURE__*/ jsxRuntime.
|
|
23
|
+
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
24
24
|
...builderAttrs,
|
|
25
25
|
"data-id": builderProps?.uid,
|
|
26
26
|
className: composedContainerClasses,
|
|
27
27
|
style: composedContainerStyles,
|
|
28
|
-
children:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
})),
|
|
51
|
-
children
|
|
52
|
-
]
|
|
53
|
-
})
|
|
54
|
-
]
|
|
28
|
+
children: /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
29
|
+
children: [
|
|
30
|
+
system.If(!isTextArea, /*#__PURE__*/ jsxRuntime.jsx("input", {
|
|
31
|
+
type: formType,
|
|
32
|
+
className: composedTextFieldClasses,
|
|
33
|
+
style: composedTextFieldStyles,
|
|
34
|
+
placeholder: placeholder,
|
|
35
|
+
required: required,
|
|
36
|
+
name: defaultName,
|
|
37
|
+
value: text
|
|
38
|
+
}), /*#__PURE__*/ jsxRuntime.jsx("textarea", {
|
|
39
|
+
rows: rowsTextArea,
|
|
40
|
+
className: composedTextAreaClasses,
|
|
41
|
+
placeholder: placeholder,
|
|
42
|
+
style: composedTextFieldStyles,
|
|
43
|
+
required: required,
|
|
44
|
+
name: defaultName,
|
|
45
|
+
value: text
|
|
46
|
+
})),
|
|
47
|
+
children
|
|
48
|
+
]
|
|
49
|
+
})
|
|
55
50
|
});
|
|
56
51
|
};
|
|
57
52
|
|
|
@@ -23,9 +23,9 @@ const TextInput = ({ setting, builderProps, className, builderAttrs, advanced, p
|
|
|
23
23
|
const composedTextFieldClasses = system.createClass(composeClasses.composeTextFieldClasses(setting, builderProps, className ?? ''));
|
|
24
24
|
const composedTextFieldStyles = system.createStyle(composeStyles.composeTextareaStyles(advanced, setting, styles));
|
|
25
25
|
const composedTextAreaClasses = system.createClass({
|
|
26
|
-
composedTextFieldClasses: true
|
|
27
|
-
...composeClasses.composeTextAreaClasses()
|
|
26
|
+
composedTextFieldClasses: true
|
|
28
27
|
});
|
|
28
|
+
const rowsTextArea = composeStyles.getRowsTextArea(setting);
|
|
29
29
|
const isTextArea = formType === 'textarea';
|
|
30
30
|
return core.template`
|
|
31
31
|
<div
|
|
@@ -34,7 +34,6 @@ const TextInput = ({ setting, builderProps, className, builderAttrs, advanced, p
|
|
|
34
34
|
class="${composedContainerClasses}"
|
|
35
35
|
style="${composedContainerStyles}"
|
|
36
36
|
>
|
|
37
|
-
<span class="gp-text-16 gp-text-[#121212]">${placeholder}</span>
|
|
38
37
|
<div>
|
|
39
38
|
${system.If(!isTextArea, core.template`<input
|
|
40
39
|
type="text"
|
|
@@ -45,6 +44,7 @@ const TextInput = ({ setting, builderProps, className, builderAttrs, advanced, p
|
|
|
45
44
|
name="${defaultName}"
|
|
46
45
|
value="${text}"
|
|
47
46
|
></input>`, core.template`<textarea
|
|
47
|
+
rows="${rowsTextArea}"
|
|
48
48
|
class="${composedTextAreaClasses}"
|
|
49
49
|
style="${composedTextFieldStyles}"
|
|
50
50
|
placeholder="${placeholderVal}"
|
|
@@ -22,12 +22,6 @@ const composeTextFieldClasses = (setting, builderProps, className)=>{
|
|
|
22
22
|
'gp-form-item !gp-outline-none focus:!gp-shadow-none hover:!gp-shadow-none !gp-bg-none !gp-border-box': true
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
|
-
const composeTextAreaClasses = ()=>{
|
|
26
|
-
return composeClasses({
|
|
27
|
-
'gp-min-h-[150px]': true
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
25
|
|
|
31
26
|
exports.composeContainerClasses = composeContainerClasses;
|
|
32
|
-
exports.composeTextAreaClasses = composeTextAreaClasses;
|
|
33
27
|
exports.composeTextFieldClasses = composeTextFieldClasses;
|
|
@@ -28,7 +28,7 @@ const composeContainerStyles = (advanced, setting)=>{
|
|
|
28
28
|
const composeTextareaStyles = (advanced, setting, styles)=>{
|
|
29
29
|
const { wrapperBorder, borderRadius, shadow, globalSize } = styles ?? {};
|
|
30
30
|
const { border, rounded, hasBoxShadow, boxShadow } = advanced ?? {};
|
|
31
|
-
const { typography } = setting ?? {};
|
|
31
|
+
const { typography, background } = setting ?? {};
|
|
32
32
|
const composeGlobalSize = core.makeGlobalSize(globalSize);
|
|
33
33
|
const appendTypoStyle = core.composeTypographyStyle(setting?.typo, typography);
|
|
34
34
|
const inputStyle = core.composeAdvanceStyle({
|
|
@@ -60,9 +60,15 @@ const composeTextareaStyles = (advanced, setting, styles)=>{
|
|
|
60
60
|
value: shadow,
|
|
61
61
|
styleAppliedFor: 'box-shadow',
|
|
62
62
|
isEnableShadow: shadow?.type !== 'none'
|
|
63
|
-
})
|
|
63
|
+
}),
|
|
64
|
+
...core.getStyleBackgroundByDevice(background),
|
|
65
|
+
...core.getGradientBgrStyleByDevice(background)
|
|
64
66
|
});
|
|
65
67
|
};
|
|
68
|
+
const getRowsTextArea = (setting)=>{
|
|
69
|
+
return setting?.textLine;
|
|
70
|
+
};
|
|
66
71
|
|
|
67
72
|
exports.composeContainerStyles = composeContainerStyles;
|
|
68
73
|
exports.composeTextareaStyles = composeTextareaStyles;
|
|
74
|
+
exports.getRowsTextArea = getRowsTextArea;
|
|
@@ -27,6 +27,12 @@ const TextInputSettings = [
|
|
|
27
27
|
placeholder: 'Enter text',
|
|
28
28
|
default: 'Enter text'
|
|
29
29
|
},
|
|
30
|
+
{
|
|
31
|
+
id: 'placeholderColor',
|
|
32
|
+
type: 'color-picker-v2',
|
|
33
|
+
label: 'Color',
|
|
34
|
+
default: '#A3A3A3'
|
|
35
|
+
},
|
|
30
36
|
{
|
|
31
37
|
id: 'translate',
|
|
32
38
|
type: 'input',
|
|
@@ -83,7 +89,6 @@ const TextInputSettings = [
|
|
|
83
89
|
type: 'paragraph-1'
|
|
84
90
|
},
|
|
85
91
|
hiddenSetting: {
|
|
86
|
-
color: true,
|
|
87
92
|
textAlign: true,
|
|
88
93
|
textShadow: true
|
|
89
94
|
},
|
|
@@ -156,23 +161,12 @@ const TextInputSettings = [
|
|
|
156
161
|
id: 'background',
|
|
157
162
|
type: 'background-media',
|
|
158
163
|
ignoreReRender: true,
|
|
164
|
+
hideImage: true,
|
|
159
165
|
devices: {
|
|
160
166
|
desktop: {
|
|
161
167
|
default: {
|
|
162
168
|
type: 'color',
|
|
163
|
-
color: 'transparent'
|
|
164
|
-
image: {
|
|
165
|
-
src: '',
|
|
166
|
-
width: 0,
|
|
167
|
-
height: 0
|
|
168
|
-
},
|
|
169
|
-
size: 'cover',
|
|
170
|
-
position: {
|
|
171
|
-
x: 50,
|
|
172
|
-
y: 50
|
|
173
|
-
},
|
|
174
|
-
repeat: 'no-repeat',
|
|
175
|
-
attachment: 'scroll'
|
|
169
|
+
color: 'transparent'
|
|
176
170
|
}
|
|
177
171
|
}
|
|
178
172
|
},
|
|
@@ -180,23 +174,17 @@ const TextInputSettings = [
|
|
|
180
174
|
desktop: {
|
|
181
175
|
default: {
|
|
182
176
|
type: 'color',
|
|
183
|
-
color: '#
|
|
184
|
-
image: {
|
|
185
|
-
src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
|
|
186
|
-
width: 1200,
|
|
187
|
-
height: 480
|
|
188
|
-
},
|
|
189
|
-
size: 'cover',
|
|
190
|
-
position: {
|
|
191
|
-
x: 50,
|
|
192
|
-
y: 50
|
|
193
|
-
},
|
|
194
|
-
repeat: 'no-repeat',
|
|
195
|
-
attachment: 'scroll',
|
|
196
|
-
preload: false
|
|
177
|
+
color: '#FFFFFF'
|
|
197
178
|
}
|
|
198
179
|
}
|
|
199
180
|
}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
id: 'textLine',
|
|
184
|
+
type: 'input:stepper',
|
|
185
|
+
label: 'Visible text lines',
|
|
186
|
+
default: 3,
|
|
187
|
+
min: 1
|
|
200
188
|
}
|
|
201
189
|
]
|
|
202
190
|
},
|
|
@@ -209,14 +197,14 @@ const TextInputSettings = [
|
|
|
209
197
|
devices: {
|
|
210
198
|
desktop: {
|
|
211
199
|
default: {
|
|
212
|
-
width: '
|
|
200
|
+
width: 'Auto',
|
|
213
201
|
height: 'Auto',
|
|
214
202
|
padding: {
|
|
215
203
|
type: 'medium',
|
|
216
|
-
top: '
|
|
217
|
-
bottom: '
|
|
218
|
-
left: '
|
|
219
|
-
right: '
|
|
204
|
+
top: '12px',
|
|
205
|
+
bottom: '12px',
|
|
206
|
+
left: '24px',
|
|
207
|
+
right: '24px'
|
|
220
208
|
}
|
|
221
209
|
}
|
|
222
210
|
}
|
|
@@ -257,14 +245,14 @@ const TextInputSettings = [
|
|
|
257
245
|
},
|
|
258
246
|
{
|
|
259
247
|
id: 'wrapperBorder',
|
|
260
|
-
type: 'border',
|
|
248
|
+
type: 'border-v2',
|
|
261
249
|
label: 'Border',
|
|
262
250
|
default: {
|
|
263
251
|
border: 'solid',
|
|
264
252
|
width: '1px 1px 1px 1px',
|
|
265
253
|
position: 'all',
|
|
266
254
|
borderWidth: '1px',
|
|
267
|
-
color: '#
|
|
255
|
+
color: '#7D7D7D',
|
|
268
256
|
isCustom: true
|
|
269
257
|
}
|
|
270
258
|
},
|
|
@@ -288,19 +276,6 @@ const TextInputSettings = [
|
|
|
288
276
|
type: 'toggle',
|
|
289
277
|
label: 'Enable Button Shadow',
|
|
290
278
|
default: false
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
id: 'shadow',
|
|
294
|
-
type: 'boxShadow',
|
|
295
|
-
label: 'Button Shadow',
|
|
296
|
-
default: {
|
|
297
|
-
type: 'none',
|
|
298
|
-
distance: '10px',
|
|
299
|
-
blur: '12px',
|
|
300
|
-
spread: '10px',
|
|
301
|
-
color: 'rgba(18, 18, 18, 0.77)',
|
|
302
|
-
angle: 40
|
|
303
|
-
}
|
|
304
279
|
}
|
|
305
280
|
]
|
|
306
281
|
}
|