@gem-sdk/components 2.0.0-dev.460 → 2.0.0-dev.461

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.
@@ -1,316 +0,0 @@
1
- import { ChildTemplate } from './childTemplate.js';
2
-
3
- const MarqueeSettings = [
4
- {
5
- id: 'setting',
6
- controls: [
7
- {
8
- id: 'activeItem',
9
- type: 'input',
10
- default: '0'
11
- },
12
- {
13
- id: 'hoverItem',
14
- type: 'input',
15
- default: '0'
16
- },
17
- {
18
- id: 'childItem',
19
- label: 'Item management',
20
- type: 'child-item',
21
- childTemplate: ChildTemplate,
22
- default: [
23
- 'Item 1',
24
- 'Item 2',
25
- 'Item 3',
26
- 'Item 4'
27
- ]
28
- },
29
- {
30
- id: 'isShowIconSeparator',
31
- label: 'isShowIconSeparator',
32
- type: 'toggle',
33
- default: false
34
- },
35
- {
36
- id: 'iconSeparatorSvg',
37
- label: 'iconSeparatorSvg',
38
- type: 'icon',
39
- default: `<svg height="100%" width="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor">
40
- <path fill="currentColor" strokelinecap="round" strokelinejoin="round" d="M232,128A104,104,0,1,1,128,24,104.13,104.13,0,0,1,232,128Z"></path></svg>`
41
- },
42
- {
43
- id: 'stopOnHover',
44
- label: 'stopOnHover',
45
- type: 'toggle',
46
- default: false
47
- },
48
- {
49
- id: 'speed',
50
- label: 'speed',
51
- type: 'input:slider',
52
- hideInput: true,
53
- useOnlyUnitInit: true,
54
- hideUnit: true,
55
- min: 0,
56
- max: 4,
57
- step: 0.1,
58
- default: 1
59
- },
60
- {
61
- id: 'direction',
62
- label: 'direction',
63
- type: 'option:value',
64
- options: [
65
- {
66
- label: 'Left',
67
- value: 'left',
68
- type: 'direction',
69
- tooltip: 'Left'
70
- },
71
- {
72
- label: 'Right',
73
- value: 'right',
74
- type: 'direction',
75
- tooltip: 'Right'
76
- }
77
- ],
78
- default: 'left'
79
- },
80
- {
81
- id: 'isPreview',
82
- type: 'play-pause',
83
- hideLabel: true,
84
- default: false
85
- },
86
- {
87
- id: 'hasItemShadow',
88
- label: 'hasItemShadow',
89
- type: 'toggle',
90
- default: false
91
- },
92
- {
93
- id: 'itemWidthType',
94
- type: 'select',
95
- label: 'Aspect Ratio',
96
- isFullWidth: true,
97
- options: [
98
- {
99
- label: 'Fit to content',
100
- value: 'FIT_CONTENT',
101
- note: 'Match the width of the element inside'
102
- },
103
- {
104
- label: 'Based on the item count',
105
- value: 'BASE_ON_NUMBER_OF_ITEMS',
106
- note: 'Max item width is screen width divided by the number of items'
107
- },
108
- {
109
- label: 'Custom',
110
- value: 'CUSTOM',
111
- note: 'Set the max width as you want'
112
- }
113
- ],
114
- devices: {
115
- desktop: {
116
- default: 'BASE_ON_NUMBER_OF_ITEMS'
117
- },
118
- tablet: {
119
- default: 'BASE_ON_NUMBER_OF_ITEMS'
120
- },
121
- mobile: {
122
- default: 'CUSTOM'
123
- }
124
- }
125
- }
126
- ]
127
- },
128
- {
129
- id: 'style',
130
- controls: [
131
- {
132
- id: 'iconSeparatorSize',
133
- label: 'iconSeparatorSize',
134
- type: 'input:stepper',
135
- devices: {
136
- desktop: {
137
- default: 24
138
- },
139
- tablet: {
140
- default: 24
141
- },
142
- mobile: {
143
- default: 24
144
- }
145
- }
146
- },
147
- {
148
- id: 'iconSeparatorColor',
149
- label: 'iconSeparatorColor',
150
- type: 'color-picker-v2',
151
- default: '#0C0C0C'
152
- },
153
- {
154
- id: 'itemSpacing',
155
- label: 'Spacing',
156
- type: 'input:unit',
157
- units: [
158
- 'px'
159
- ],
160
- placeholder: 'Auto',
161
- min: 0,
162
- devices: {
163
- desktop: {
164
- default: '48px'
165
- }
166
- }
167
- },
168
- {
169
- id: 'itemMaxWidth',
170
- label: 'itemMaxWidth',
171
- type: 'input:unit',
172
- units: [
173
- 'px'
174
- ],
175
- placeholder: 'Auto',
176
- min: 40,
177
- devices: {
178
- desktop: {
179
- default: '300px'
180
- },
181
- tablet: {
182
- default: '300px'
183
- },
184
- mobile: {
185
- default: '150px'
186
- }
187
- }
188
- },
189
- {
190
- id: 'sizeSetting',
191
- type: 'size-setting',
192
- label: '',
193
- devices: {
194
- desktop: {
195
- default: {
196
- shapeLinked: false,
197
- width: '100%',
198
- height: 'auto'
199
- }
200
- }
201
- },
202
- settingConfig: {
203
- width: {
204
- name: 'Width'
205
- },
206
- height: {
207
- displayOptions: [
208
- 'auto',
209
- 'small',
210
- 'medium',
211
- 'large'
212
- ],
213
- name: 'Height',
214
- sizeConfig: {
215
- small: '32px',
216
- medium: '64px',
217
- large: '96px'
218
- }
219
- }
220
- },
221
- hiddenSettings: [
222
- 'padding',
223
- 'gap',
224
- 'shape'
225
- ]
226
- },
227
- {
228
- id: 'itemBorderStyle',
229
- type: 'border',
230
- label: 'Border',
231
- default: {
232
- borderType: 'none',
233
- border: 'none',
234
- borderWidth: '1px',
235
- width: '1px 1px 1px 1px',
236
- isCustom: false,
237
- color: '#000000'
238
- }
239
- },
240
- {
241
- id: 'itemCorner',
242
- type: 'radius-preset',
243
- label: 'Border Radius',
244
- default: {
245
- radiusType: 'none'
246
- }
247
- },
248
- {
249
- id: 'itemBackgroundColor',
250
- type: 'color-picker-v2',
251
- devices: {
252
- desktop: {
253
- default: 'transparent'
254
- }
255
- }
256
- },
257
- {
258
- id: 'backgroundColor',
259
- type: 'color-picker-v2',
260
- devices: {
261
- desktop: {
262
- default: 'transparent'
263
- }
264
- }
265
- },
266
- {
267
- id: 'align',
268
- label: 'Alignment',
269
- type: 'option:value',
270
- options: [
271
- {
272
- label: 'Left',
273
- value: 'left',
274
- type: 'align',
275
- tooltip: 'Align left',
276
- iconName: 'gp-align-left'
277
- },
278
- {
279
- label: 'Center',
280
- value: 'center',
281
- type: 'align',
282
- tooltip: 'Align center',
283
- iconName: 'gp-align-center'
284
- },
285
- {
286
- label: 'Right',
287
- value: 'right',
288
- type: 'align',
289
- tooltip: 'Align right',
290
- iconName: 'gp-align-right'
291
- }
292
- ],
293
- devices: {
294
- desktop: {
295
- default: 'center'
296
- }
297
- }
298
- },
299
- {
300
- id: 'itemShadow',
301
- type: 'shadow-v2',
302
- label: 'Button Shadow',
303
- default: {
304
- type: 'none',
305
- distance: '4px',
306
- blur: '12px',
307
- spread: '0px',
308
- color: '#121212',
309
- angle: 90
310
- }
311
- }
312
- ]
313
- }
314
- ];
315
-
316
- export { MarqueeSettings };