@gem-sdk/components 2.0.0-dev.413 → 2.0.0-dev.414

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.
@@ -65,7 +65,7 @@ const uiV2 = [
65
65
  controls: [
66
66
  {
67
67
  label: {
68
- en: 'SEO tag'
68
+ en: 'HTML tag'
69
69
  },
70
70
  setting: {
71
71
  id: 'htmlTag'
@@ -49,7 +49,10 @@ const ArticleExcerptSettings = [
49
49
  id: 'typo',
50
50
  type: 'typography-v2',
51
51
  default: {
52
- type: 'subheading-3'
52
+ type: 'subheading-3',
53
+ attrs: {
54
+ color: '#212121'
55
+ }
53
56
  },
54
57
  ignoreReRender: true
55
58
  },
@@ -76,7 +76,7 @@ const uiV2 = [
76
76
  controls: [
77
77
  {
78
78
  label: {
79
- en: 'SEO tag'
79
+ en: 'HTML tag'
80
80
  },
81
81
  setting: {
82
82
  id: 'htmlTag'
@@ -9,7 +9,7 @@ const uiV2 = [
9
9
  controls: [
10
10
  {
11
11
  label: {
12
- en: 'Scale'
12
+ en: 'Image scale'
13
13
  },
14
14
  setting: {
15
15
  id: 'objectFit'
@@ -541,7 +541,7 @@ const uiV2 = [
541
541
  options: {
542
542
  labelVariant: 'primary',
543
543
  fullWidth: true,
544
- disableMessage: `This option is disabled because the width is set to 100%`
544
+ disableMessage: `Horizontal alignment is disabled when the width is set to 100% or greater`
545
545
  }
546
546
  }
547
547
  ]
@@ -18,7 +18,7 @@ const ArticleTitlePresets = [
18
18
  tag: 'ArticleTitle',
19
19
  settings: {
20
20
  htmlTag: 'h1',
21
- linkArticle: true
21
+ linkArticle: 'go-to-article'
22
22
  },
23
23
  styles: {
24
24
  typo: {
@@ -38,7 +38,7 @@ const ArticleTitleSettings = [
38
38
  label: 'Div'
39
39
  }
40
40
  ],
41
- default: 'h1'
41
+ default: 'h2'
42
42
  },
43
43
  {
44
44
  id: 'enableLink',
@@ -56,7 +56,7 @@ const ArticleTitleSettings = [
56
56
  value: 'go-to-article'
57
57
  },
58
58
  {
59
- label: 'None',
59
+ label: 'Scroll to',
60
60
  value: 'scroll-to'
61
61
  }
62
62
  ],
@@ -130,18 +130,22 @@ const DialogSettings = [
130
130
  units: [
131
131
  '%'
132
132
  ],
133
- useOnlyUnitInit: true
133
+ useOnlyUnitInit: true,
134
+ showDefaultUnit: true,
135
+ isNumber: true
134
136
  },
135
137
  {
136
138
  id: 'triggerTime',
137
139
  type: 'input:slider',
138
140
  min: 0,
139
- default: 10,
141
+ default: 0,
140
142
  max: 100,
141
143
  units: [
142
144
  's'
143
145
  ],
144
- useOnlyUnitInit: true
146
+ useOnlyUnitInit: true,
147
+ showDefaultUnit: true,
148
+ isNumber: true
145
149
  },
146
150
  {
147
151
  id: 'triggerPercentage',
@@ -152,7 +156,9 @@ const DialogSettings = [
152
156
  min: 0,
153
157
  max: 100,
154
158
  default: 10,
155
- useOnlyUnitInit: true
159
+ useOnlyUnitInit: true,
160
+ showDefaultUnit: true,
161
+ isNumber: true
156
162
  },
157
163
  {
158
164
  id: 'frequency',
@@ -163,7 +169,9 @@ const DialogSettings = [
163
169
  units: [
164
170
  'days'
165
171
  ],
166
- useOnlyUnitInit: true
172
+ useOnlyUnitInit: true,
173
+ showDefaultUnit: true,
174
+ isNumber: true
167
175
  },
168
176
  {
169
177
  id: 'frequencyMode',
@@ -191,12 +199,16 @@ const DialogSettings = [
191
199
  },
192
200
  {
193
201
  id: 'iconSize',
194
- type: 'input:unit',
195
- units: [
196
- 'px'
197
- ],
198
- default: '12px'
202
+ type: 'input:stepper',
203
+ default: '12px',
204
+ includeUnit: 'px'
199
205
  },
206
+ // {
207
+ // id: 'iconSize',
208
+ // type: 'input:unit',
209
+ // units: ['px'],
210
+ // default: '12px',
211
+ // },
200
212
  {
201
213
  id: 'btnBg',
202
214
  type: 'color-picker-v2',
@@ -219,10 +231,6 @@ const DialogSettings = [
219
231
  label: 'After page loaded',
220
232
  value: 'show-on-page-load'
221
233
  },
222
- {
223
- label: 'After a time',
224
- value: 'show-after-time'
225
- },
226
234
  {
227
235
  label: 'Scroll partially',
228
236
  value: 'show-after-scroll'
@@ -258,7 +266,9 @@ const DialogSettings = [
258
266
  units: [
259
267
  's'
260
268
  ],
261
- useOnlyUnitInit: true
269
+ useOnlyUnitInit: true,
270
+ showDefaultUnit: true,
271
+ isNumber: true
262
272
  },
263
273
  {
264
274
  id: 'btnRounded',
@@ -148,10 +148,19 @@ const SettingUIV2 = [
148
148
  name: 'spacing-setting',
149
149
  field: 'padding'
150
150
  },
151
+ devices: {
152
+ desktop: {
153
+ default: {
154
+ top: '32px',
155
+ bottom: '32px',
156
+ left: '32px',
157
+ right: '32px'
158
+ }
159
+ }
160
+ },
151
161
  compoDefaultValue: {
152
162
  desktop: {
153
163
  default: {
154
- type: 'medium',
155
164
  top: '32px',
156
165
  bottom: '32px',
157
166
  left: '32px',
@@ -302,7 +311,7 @@ const SettingUIV2 = [
302
311
  {
303
312
  conditionDisplay: `trigger === 'show-after-time' || trigger === 'show-on-page-load'`,
304
313
  label: {
305
- en: 'Time'
314
+ en: 'Delay'
306
315
  },
307
316
  setting: {
308
317
  id: 'triggerTime'
@@ -63,7 +63,7 @@ const uiV2 = [
63
63
  controls: [
64
64
  {
65
65
  label: {
66
- en: 'SEO tag'
66
+ en: 'HTML tag'
67
67
  },
68
68
  setting: {
69
69
  id: 'htmlTag'
@@ -47,7 +47,10 @@ const ArticleExcerptSettings = [
47
47
  id: 'typo',
48
48
  type: 'typography-v2',
49
49
  default: {
50
- type: 'subheading-3'
50
+ type: 'subheading-3',
51
+ attrs: {
52
+ color: '#212121'
53
+ }
51
54
  },
52
55
  ignoreReRender: true
53
56
  },
@@ -74,7 +74,7 @@ const uiV2 = [
74
74
  controls: [
75
75
  {
76
76
  label: {
77
- en: 'SEO tag'
77
+ en: 'HTML tag'
78
78
  },
79
79
  setting: {
80
80
  id: 'htmlTag'
@@ -7,7 +7,7 @@ const uiV2 = [
7
7
  controls: [
8
8
  {
9
9
  label: {
10
- en: 'Scale'
10
+ en: 'Image scale'
11
11
  },
12
12
  setting: {
13
13
  id: 'objectFit'
@@ -539,7 +539,7 @@ const uiV2 = [
539
539
  options: {
540
540
  labelVariant: 'primary',
541
541
  fullWidth: true,
542
- disableMessage: `This option is disabled because the width is set to 100%`
542
+ disableMessage: `Horizontal alignment is disabled when the width is set to 100% or greater`
543
543
  }
544
544
  }
545
545
  ]
@@ -16,7 +16,7 @@ const ArticleTitlePresets = [
16
16
  tag: 'ArticleTitle',
17
17
  settings: {
18
18
  htmlTag: 'h1',
19
- linkArticle: true
19
+ linkArticle: 'go-to-article'
20
20
  },
21
21
  styles: {
22
22
  typo: {
@@ -36,7 +36,7 @@ const ArticleTitleSettings = [
36
36
  label: 'Div'
37
37
  }
38
38
  ],
39
- default: 'h1'
39
+ default: 'h2'
40
40
  },
41
41
  {
42
42
  id: 'enableLink',
@@ -54,7 +54,7 @@ const ArticleTitleSettings = [
54
54
  value: 'go-to-article'
55
55
  },
56
56
  {
57
- label: 'None',
57
+ label: 'Scroll to',
58
58
  value: 'scroll-to'
59
59
  }
60
60
  ],
@@ -128,18 +128,22 @@ const DialogSettings = [
128
128
  units: [
129
129
  '%'
130
130
  ],
131
- useOnlyUnitInit: true
131
+ useOnlyUnitInit: true,
132
+ showDefaultUnit: true,
133
+ isNumber: true
132
134
  },
133
135
  {
134
136
  id: 'triggerTime',
135
137
  type: 'input:slider',
136
138
  min: 0,
137
- default: 10,
139
+ default: 0,
138
140
  max: 100,
139
141
  units: [
140
142
  's'
141
143
  ],
142
- useOnlyUnitInit: true
144
+ useOnlyUnitInit: true,
145
+ showDefaultUnit: true,
146
+ isNumber: true
143
147
  },
144
148
  {
145
149
  id: 'triggerPercentage',
@@ -150,7 +154,9 @@ const DialogSettings = [
150
154
  min: 0,
151
155
  max: 100,
152
156
  default: 10,
153
- useOnlyUnitInit: true
157
+ useOnlyUnitInit: true,
158
+ showDefaultUnit: true,
159
+ isNumber: true
154
160
  },
155
161
  {
156
162
  id: 'frequency',
@@ -161,7 +167,9 @@ const DialogSettings = [
161
167
  units: [
162
168
  'days'
163
169
  ],
164
- useOnlyUnitInit: true
170
+ useOnlyUnitInit: true,
171
+ showDefaultUnit: true,
172
+ isNumber: true
165
173
  },
166
174
  {
167
175
  id: 'frequencyMode',
@@ -189,12 +197,16 @@ const DialogSettings = [
189
197
  },
190
198
  {
191
199
  id: 'iconSize',
192
- type: 'input:unit',
193
- units: [
194
- 'px'
195
- ],
196
- default: '12px'
200
+ type: 'input:stepper',
201
+ default: '12px',
202
+ includeUnit: 'px'
197
203
  },
204
+ // {
205
+ // id: 'iconSize',
206
+ // type: 'input:unit',
207
+ // units: ['px'],
208
+ // default: '12px',
209
+ // },
198
210
  {
199
211
  id: 'btnBg',
200
212
  type: 'color-picker-v2',
@@ -217,10 +229,6 @@ const DialogSettings = [
217
229
  label: 'After page loaded',
218
230
  value: 'show-on-page-load'
219
231
  },
220
- {
221
- label: 'After a time',
222
- value: 'show-after-time'
223
- },
224
232
  {
225
233
  label: 'Scroll partially',
226
234
  value: 'show-after-scroll'
@@ -256,7 +264,9 @@ const DialogSettings = [
256
264
  units: [
257
265
  's'
258
266
  ],
259
- useOnlyUnitInit: true
267
+ useOnlyUnitInit: true,
268
+ showDefaultUnit: true,
269
+ isNumber: true
260
270
  },
261
271
  {
262
272
  id: 'btnRounded',
@@ -146,10 +146,19 @@ const SettingUIV2 = [
146
146
  name: 'spacing-setting',
147
147
  field: 'padding'
148
148
  },
149
+ devices: {
150
+ desktop: {
151
+ default: {
152
+ top: '32px',
153
+ bottom: '32px',
154
+ left: '32px',
155
+ right: '32px'
156
+ }
157
+ }
158
+ },
149
159
  compoDefaultValue: {
150
160
  desktop: {
151
161
  default: {
152
- type: 'medium',
153
162
  top: '32px',
154
163
  bottom: '32px',
155
164
  left: '32px',
@@ -300,7 +309,7 @@ const SettingUIV2 = [
300
309
  {
301
310
  conditionDisplay: `trigger === 'show-after-time' || trigger === 'show-on-page-load'`,
302
311
  label: {
303
- en: 'Time'
312
+ en: 'Delay'
304
313
  },
305
314
  setting: {
306
315
  id: 'triggerTime'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.413",
3
+ "version": "2.0.0-dev.414",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",