@gem-sdk/components 2.0.0-dev.377 → 2.0.0-dev.378

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.
@@ -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.jsxs("div", {
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
- /*#__PURE__*/ jsxRuntime.jsx("span", {
30
- className: "gp-text-16 gp-text-[#121212]",
31
- children: placeholder
32
- }),
33
- /*#__PURE__*/ jsxRuntime.jsxs("div", {
34
- children: [
35
- system.If(!isTextArea, /*#__PURE__*/ jsxRuntime.jsx("input", {
36
- type: formType,
37
- className: composedTextFieldClasses,
38
- style: composedTextFieldStyles,
39
- placeholder: placeholder,
40
- required: required,
41
- name: defaultName,
42
- value: text
43
- }), /*#__PURE__*/ jsxRuntime.jsx("textarea", {
44
- className: composedTextAreaClasses,
45
- placeholder: placeholder,
46
- style: composedTextFieldStyles,
47
- required: required,
48
- name: defaultName,
49
- value: text
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: '#DDDDDD',
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: '100%',
200
+ width: 'Auto',
213
201
  height: 'Auto',
214
202
  padding: {
215
203
  type: 'medium',
216
- top: '4px',
217
- bottom: '4px',
218
- left: '16px',
219
- right: '16px'
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: '#A01414',
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
  }
@@ -17,9 +17,20 @@ const SettingUIV2 = [
17
17
  controls: [
18
18
  {
19
19
  layout: 'vertical',
20
+ label: {
21
+ en: 'Content'
22
+ },
20
23
  setting: {
21
24
  id: 'placeholder'
22
25
  }
26
+ },
27
+ {
28
+ setting: {
29
+ id: 'placeholderColor'
30
+ },
31
+ label: {
32
+ en: 'Color'
33
+ }
23
34
  }
24
35
  ]
25
36
  },
@@ -165,23 +176,61 @@ const SettingUIV2 = [
165
176
  label: {
166
177
  en: 'Corner'
167
178
  },
168
- controlConfig: {
169
- id: 'corner',
170
- type: 'corner-v2',
171
- linkWithSetting: {
172
- name: 'borderRadius'
173
- }
179
+ setting: {
180
+ id: 'rounded',
181
+ state: 'normal'
174
182
  }
175
183
  },
176
184
  {
177
185
  label: {
178
186
  en: 'Shadow'
179
187
  },
180
- controlConfig: {
181
- id: 'shadow',
182
- type: 'shadow-v2',
183
- linkWithSetting: {
184
- name: 'shadow'
188
+ setting: {
189
+ id: 'boxShadow',
190
+ state: 'normal'
191
+ },
192
+ options: {
193
+ updateFields: [
194
+ {
195
+ field: 'enable',
196
+ settingId: 'hasBoxShadow',
197
+ state: 'normal'
198
+ }
199
+ ]
200
+ },
201
+ controlChangeTrigger: {
202
+ settings: [
203
+ {
204
+ condition: `boxShadow.normal.enable === true`,
205
+ source: [
206
+ 'boxShadow',
207
+ 'hasBoxShadow'
208
+ ],
209
+ action: {
210
+ controlId: 'hasBoxShadow',
211
+ groupType: 'advanced',
212
+ controlType: 'advanced',
213
+ state: 'normal',
214
+ newValue: true
215
+ }
216
+ },
217
+ {
218
+ condition: `boxShadow.normal.enable === false`,
219
+ source: [
220
+ 'boxShadow',
221
+ 'hasBoxShadow'
222
+ ],
223
+ action: {
224
+ controlId: 'hasBoxShadow',
225
+ groupType: 'advanced',
226
+ controlType: 'advanced',
227
+ state: 'normal',
228
+ newValue: false
229
+ }
230
+ }
231
+ ],
232
+ options: {
233
+ noRecordHistory: true
185
234
  }
186
235
  }
187
236
  }
@@ -200,6 +249,15 @@ const SettingUIV2 = [
200
249
  id: 'formType'
201
250
  }
202
251
  },
252
+ {
253
+ label: {
254
+ en: 'Visible text lines'
255
+ },
256
+ setting: {
257
+ id: 'textLine'
258
+ },
259
+ conditionDisplay: `formType === 'textarea'`
260
+ },
203
261
  {
204
262
  label: {
205
263
  en: 'Required'
@@ -212,6 +270,9 @@ const SettingUIV2 = [
212
270
  label: {
213
271
  en: 'Field name'
214
272
  },
273
+ help: {
274
+ content: 'Identify the information submitted via this element.'
275
+ },
215
276
  conditionDisplay: `formType === 'text'`,
216
277
  controlConfig: {
217
278
  id: 'name_text',
@@ -1,8 +1,8 @@
1
1
  'use client';
2
- import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { createStyle, createClass, If } from '@gem-sdk/system';
4
- import { composeContainerStyles, composeTextareaStyles } from './common/composeStyles.js';
5
- import { composeContainerClasses, composeTextFieldClasses, composeTextAreaClasses } from './common/composeClasses.js';
4
+ import { composeContainerStyles, composeTextareaStyles, getRowsTextArea } from './common/composeStyles.js';
5
+ import { composeContainerClasses, composeTextFieldClasses } from './common/composeClasses.js';
6
6
 
7
7
  const TextInput = ({ setting, builderProps, className, builderAttrs, advanced, children, styles })=>{
8
8
  const { text, name, placeholder, required, formType } = setting ?? {};
@@ -12,42 +12,37 @@ const TextInput = ({ setting, builderProps, className, builderAttrs, advanced, c
12
12
  const composedTextFieldClasses = createClass(composeTextFieldClasses(setting, builderProps, className ?? ''));
13
13
  const composedTextFieldStyles = createStyle(composeTextareaStyles(advanced, setting, styles));
14
14
  const composedTextAreaClasses = createClass({
15
- composedTextFieldClasses: true,
16
- ...composeTextAreaClasses()
15
+ composedTextFieldClasses: true
17
16
  });
17
+ const rowsTextArea = getRowsTextArea(setting);
18
18
  const isTextArea = formType === 'textarea';
19
- return /*#__PURE__*/ jsxs("div", {
19
+ return /*#__PURE__*/ jsx("div", {
20
20
  ...builderAttrs,
21
21
  "data-id": builderProps?.uid,
22
22
  className: composedContainerClasses,
23
23
  style: composedContainerStyles,
24
- children: [
25
- /*#__PURE__*/ jsx("span", {
26
- className: "gp-text-16 gp-text-[#121212]",
27
- children: placeholder
28
- }),
29
- /*#__PURE__*/ jsxs("div", {
30
- children: [
31
- If(!isTextArea, /*#__PURE__*/ jsx("input", {
32
- type: formType,
33
- className: composedTextFieldClasses,
34
- style: composedTextFieldStyles,
35
- placeholder: placeholder,
36
- required: required,
37
- name: defaultName,
38
- value: text
39
- }), /*#__PURE__*/ jsx("textarea", {
40
- className: composedTextAreaClasses,
41
- placeholder: placeholder,
42
- style: composedTextFieldStyles,
43
- required: required,
44
- name: defaultName,
45
- value: text
46
- })),
47
- children
48
- ]
49
- })
50
- ]
24
+ children: /*#__PURE__*/ jsxs("div", {
25
+ children: [
26
+ If(!isTextArea, /*#__PURE__*/ jsx("input", {
27
+ type: formType,
28
+ className: composedTextFieldClasses,
29
+ style: composedTextFieldStyles,
30
+ placeholder: placeholder,
31
+ required: required,
32
+ name: defaultName,
33
+ value: text
34
+ }), /*#__PURE__*/ jsx("textarea", {
35
+ rows: rowsTextArea,
36
+ className: composedTextAreaClasses,
37
+ placeholder: placeholder,
38
+ style: composedTextFieldStyles,
39
+ required: required,
40
+ name: defaultName,
41
+ value: text
42
+ })),
43
+ children
44
+ ]
45
+ })
51
46
  });
52
47
  };
53
48
 
@@ -1,8 +1,8 @@
1
1
  import { template } from '@gem-sdk/core';
2
2
  import { getDynamicSourceLocales } from '../../../helpers.js';
3
3
  import { createStyle, createClass, If } from '@gem-sdk/system';
4
- import { composeContainerStyles, composeTextareaStyles } from './common/composeStyles.js';
5
- import { composeContainerClasses, composeTextFieldClasses, composeTextAreaClasses } from './common/composeClasses.js';
4
+ import { composeContainerStyles, composeTextareaStyles, getRowsTextArea } from './common/composeStyles.js';
5
+ import { composeContainerClasses, composeTextFieldClasses } from './common/composeClasses.js';
6
6
 
7
7
  const TextInput = ({ setting, builderProps, className, builderAttrs, advanced, pageContext, styles })=>{
8
8
  const { text, name, placeholder, required, translate, formType } = setting ?? {};
@@ -19,9 +19,9 @@ const TextInput = ({ setting, builderProps, className, builderAttrs, advanced, p
19
19
  const composedTextFieldClasses = createClass(composeTextFieldClasses(setting, builderProps, className ?? ''));
20
20
  const composedTextFieldStyles = createStyle(composeTextareaStyles(advanced, setting, styles));
21
21
  const composedTextAreaClasses = createClass({
22
- composedTextFieldClasses: true,
23
- ...composeTextAreaClasses()
22
+ composedTextFieldClasses: true
24
23
  });
24
+ const rowsTextArea = getRowsTextArea(setting);
25
25
  const isTextArea = formType === 'textarea';
26
26
  return template`
27
27
  <div
@@ -30,7 +30,6 @@ const TextInput = ({ setting, builderProps, className, builderAttrs, advanced, p
30
30
  class="${composedContainerClasses}"
31
31
  style="${composedContainerStyles}"
32
32
  >
33
- <span class="gp-text-16 gp-text-[#121212]">${placeholder}</span>
34
33
  <div>
35
34
  ${If(!isTextArea, template`<input
36
35
  type="text"
@@ -41,6 +40,7 @@ const TextInput = ({ setting, builderProps, className, builderAttrs, advanced, p
41
40
  name="${defaultName}"
42
41
  value="${text}"
43
42
  ></input>`, template`<textarea
43
+ rows="${rowsTextArea}"
44
44
  class="${composedTextAreaClasses}"
45
45
  style="${composedTextFieldStyles}"
46
46
  placeholder="${placeholderVal}"
@@ -20,10 +20,5 @@ const composeTextFieldClasses = (setting, builderProps, className)=>{
20
20
  'gp-form-item !gp-outline-none focus:!gp-shadow-none hover:!gp-shadow-none !gp-bg-none !gp-border-box': true
21
21
  });
22
22
  };
23
- const composeTextAreaClasses = ()=>{
24
- return composeClasses({
25
- 'gp-min-h-[150px]': true
26
- });
27
- };
28
23
 
29
- export { composeContainerClasses, composeTextAreaClasses, composeTextFieldClasses };
24
+ export { composeContainerClasses, composeTextFieldClasses };
@@ -1,5 +1,5 @@
1
1
  import { filterTruthy } from '../../../helpers/common.js';
2
- import { composeAdvanceStyle, makeStyleResponsive, makeGlobalSize, composeTypographyStyle, getGlobalColorStyle, makeStyle, getSingleColorVariable, getBorderStyle, getBorderRadiusStyle, getStyleShadow } from '@gem-sdk/core';
2
+ import { composeAdvanceStyle, makeStyleResponsive, makeGlobalSize, composeTypographyStyle, getGlobalColorStyle, makeStyle, getSingleColorVariable, getBorderStyle, getBorderRadiusStyle, getStyleShadow, getStyleBackgroundByDevice, getGradientBgrStyleByDevice } from '@gem-sdk/core';
3
3
 
4
4
  const composeStyles = (styles)=>filterTruthy(styles);
5
5
  const composeContainerStyles = (advanced, setting)=>{
@@ -26,7 +26,7 @@ const composeContainerStyles = (advanced, setting)=>{
26
26
  const composeTextareaStyles = (advanced, setting, styles)=>{
27
27
  const { wrapperBorder, borderRadius, shadow, globalSize } = styles ?? {};
28
28
  const { border, rounded, hasBoxShadow, boxShadow } = advanced ?? {};
29
- const { typography } = setting ?? {};
29
+ const { typography, background } = setting ?? {};
30
30
  const composeGlobalSize = makeGlobalSize(globalSize);
31
31
  const appendTypoStyle = composeTypographyStyle(setting?.typo, typography);
32
32
  const inputStyle = composeAdvanceStyle({
@@ -58,8 +58,13 @@ const composeTextareaStyles = (advanced, setting, styles)=>{
58
58
  value: shadow,
59
59
  styleAppliedFor: 'box-shadow',
60
60
  isEnableShadow: shadow?.type !== 'none'
61
- })
61
+ }),
62
+ ...getStyleBackgroundByDevice(background),
63
+ ...getGradientBgrStyleByDevice(background)
62
64
  });
63
65
  };
66
+ const getRowsTextArea = (setting)=>{
67
+ return setting?.textLine;
68
+ };
64
69
 
65
- export { composeContainerStyles, composeTextareaStyles };
70
+ export { composeContainerStyles, composeTextareaStyles, getRowsTextArea };
@@ -23,6 +23,12 @@ const TextInputSettings = [
23
23
  placeholder: 'Enter text',
24
24
  default: 'Enter text'
25
25
  },
26
+ {
27
+ id: 'placeholderColor',
28
+ type: 'color-picker-v2',
29
+ label: 'Color',
30
+ default: '#A3A3A3'
31
+ },
26
32
  {
27
33
  id: 'translate',
28
34
  type: 'input',
@@ -79,7 +85,6 @@ const TextInputSettings = [
79
85
  type: 'paragraph-1'
80
86
  },
81
87
  hiddenSetting: {
82
- color: true,
83
88
  textAlign: true,
84
89
  textShadow: true
85
90
  },
@@ -152,23 +157,12 @@ const TextInputSettings = [
152
157
  id: 'background',
153
158
  type: 'background-media',
154
159
  ignoreReRender: true,
160
+ hideImage: true,
155
161
  devices: {
156
162
  desktop: {
157
163
  default: {
158
164
  type: 'color',
159
- color: 'transparent',
160
- image: {
161
- src: '',
162
- width: 0,
163
- height: 0
164
- },
165
- size: 'cover',
166
- position: {
167
- x: 50,
168
- y: 50
169
- },
170
- repeat: 'no-repeat',
171
- attachment: 'scroll'
165
+ color: 'transparent'
172
166
  }
173
167
  }
174
168
  },
@@ -176,23 +170,17 @@ const TextInputSettings = [
176
170
  desktop: {
177
171
  default: {
178
172
  type: 'color',
179
- color: '#DDDDDD',
180
- image: {
181
- src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
182
- width: 1200,
183
- height: 480
184
- },
185
- size: 'cover',
186
- position: {
187
- x: 50,
188
- y: 50
189
- },
190
- repeat: 'no-repeat',
191
- attachment: 'scroll',
192
- preload: false
173
+ color: '#FFFFFF'
193
174
  }
194
175
  }
195
176
  }
177
+ },
178
+ {
179
+ id: 'textLine',
180
+ type: 'input:stepper',
181
+ label: 'Visible text lines',
182
+ default: 3,
183
+ min: 1
196
184
  }
197
185
  ]
198
186
  },
@@ -205,14 +193,14 @@ const TextInputSettings = [
205
193
  devices: {
206
194
  desktop: {
207
195
  default: {
208
- width: '100%',
196
+ width: 'Auto',
209
197
  height: 'Auto',
210
198
  padding: {
211
199
  type: 'medium',
212
- top: '4px',
213
- bottom: '4px',
214
- left: '16px',
215
- right: '16px'
200
+ top: '12px',
201
+ bottom: '12px',
202
+ left: '24px',
203
+ right: '24px'
216
204
  }
217
205
  }
218
206
  }
@@ -253,14 +241,14 @@ const TextInputSettings = [
253
241
  },
254
242
  {
255
243
  id: 'wrapperBorder',
256
- type: 'border',
244
+ type: 'border-v2',
257
245
  label: 'Border',
258
246
  default: {
259
247
  border: 'solid',
260
248
  width: '1px 1px 1px 1px',
261
249
  position: 'all',
262
250
  borderWidth: '1px',
263
- color: '#A01414',
251
+ color: '#7D7D7D',
264
252
  isCustom: true
265
253
  }
266
254
  },
@@ -284,19 +272,6 @@ const TextInputSettings = [
284
272
  type: 'toggle',
285
273
  label: 'Enable Button Shadow',
286
274
  default: false
287
- },
288
- {
289
- id: 'shadow',
290
- type: 'boxShadow',
291
- label: 'Button Shadow',
292
- default: {
293
- type: 'none',
294
- distance: '10px',
295
- blur: '12px',
296
- spread: '10px',
297
- color: 'rgba(18, 18, 18, 0.77)',
298
- angle: 40
299
- }
300
275
  }
301
276
  ]
302
277
  }
@@ -15,9 +15,20 @@ const SettingUIV2 = [
15
15
  controls: [
16
16
  {
17
17
  layout: 'vertical',
18
+ label: {
19
+ en: 'Content'
20
+ },
18
21
  setting: {
19
22
  id: 'placeholder'
20
23
  }
24
+ },
25
+ {
26
+ setting: {
27
+ id: 'placeholderColor'
28
+ },
29
+ label: {
30
+ en: 'Color'
31
+ }
21
32
  }
22
33
  ]
23
34
  },
@@ -163,23 +174,61 @@ const SettingUIV2 = [
163
174
  label: {
164
175
  en: 'Corner'
165
176
  },
166
- controlConfig: {
167
- id: 'corner',
168
- type: 'corner-v2',
169
- linkWithSetting: {
170
- name: 'borderRadius'
171
- }
177
+ setting: {
178
+ id: 'rounded',
179
+ state: 'normal'
172
180
  }
173
181
  },
174
182
  {
175
183
  label: {
176
184
  en: 'Shadow'
177
185
  },
178
- controlConfig: {
179
- id: 'shadow',
180
- type: 'shadow-v2',
181
- linkWithSetting: {
182
- name: 'shadow'
186
+ setting: {
187
+ id: 'boxShadow',
188
+ state: 'normal'
189
+ },
190
+ options: {
191
+ updateFields: [
192
+ {
193
+ field: 'enable',
194
+ settingId: 'hasBoxShadow',
195
+ state: 'normal'
196
+ }
197
+ ]
198
+ },
199
+ controlChangeTrigger: {
200
+ settings: [
201
+ {
202
+ condition: `boxShadow.normal.enable === true`,
203
+ source: [
204
+ 'boxShadow',
205
+ 'hasBoxShadow'
206
+ ],
207
+ action: {
208
+ controlId: 'hasBoxShadow',
209
+ groupType: 'advanced',
210
+ controlType: 'advanced',
211
+ state: 'normal',
212
+ newValue: true
213
+ }
214
+ },
215
+ {
216
+ condition: `boxShadow.normal.enable === false`,
217
+ source: [
218
+ 'boxShadow',
219
+ 'hasBoxShadow'
220
+ ],
221
+ action: {
222
+ controlId: 'hasBoxShadow',
223
+ groupType: 'advanced',
224
+ controlType: 'advanced',
225
+ state: 'normal',
226
+ newValue: false
227
+ }
228
+ }
229
+ ],
230
+ options: {
231
+ noRecordHistory: true
183
232
  }
184
233
  }
185
234
  }
@@ -198,6 +247,15 @@ const SettingUIV2 = [
198
247
  id: 'formType'
199
248
  }
200
249
  },
250
+ {
251
+ label: {
252
+ en: 'Visible text lines'
253
+ },
254
+ setting: {
255
+ id: 'textLine'
256
+ },
257
+ conditionDisplay: `formType === 'textarea'`
258
+ },
201
259
  {
202
260
  label: {
203
261
  en: 'Required'
@@ -210,6 +268,9 @@ const SettingUIV2 = [
210
268
  label: {
211
269
  en: 'Field name'
212
270
  },
271
+ help: {
272
+ content: 'Identify the information submitted via this element.'
273
+ },
213
274
  conditionDisplay: `formType === 'text'`,
214
275
  controlConfig: {
215
276
  id: 'name_text',
@@ -1624,12 +1624,14 @@ type TextInputSetting = {
1624
1624
  background?: ObjectDevices$1<BackgroundMedia>;
1625
1625
  formType?: InputType;
1626
1626
  formConfiguration?: any;
1627
+ placeholderColor?: ColorValueType$1;
1628
+ textLine?: number;
1627
1629
  };
1628
1630
  type TextInputStyle = {
1629
1631
  globalSize?: ObjectDevices$1<SizeSettingGlobal>;
1630
1632
  horizontalSpacing?: ObjectDevices$1<Property.Padding>;
1631
1633
  borderRadius?: CornerRadius;
1632
- border?: Border;
1634
+ border?: ObjectDevices$1<StateProp<Border>>;
1633
1635
  wrapperBorder?: Border;
1634
1636
  hasActiveShadow?: boolean;
1635
1637
  shadow?: ShadowProps$1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.377",
3
+ "version": "2.0.0-dev.378",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",