@cntrl-site/components 1.0.43-alpha.3 → 1.0.44

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.
@@ -63,7 +63,6 @@ export type SchemaDisplayRule = {
63
63
  };
64
64
  export type SchemaSection = {
65
65
  sizing?: string;
66
- linkInParamsPanel?: boolean;
67
66
  properties: Record<string, SchemaProperty>;
68
67
  layout?: LayoutItem[];
69
68
  defaults: Record<string, unknown>;
@@ -92,5 +91,4 @@ export type ComponentSchemaV1 = {
92
91
  fontRelations?: Record<string, string>;
93
92
  allowedPlugins?: string[];
94
93
  states?: string[];
95
- statesByLayout?: Partial<Record<string, string[]>>;
96
94
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/components",
3
- "version": "1.0.43-alpha.3",
3
+ "version": "1.0.44",
4
4
  "description": "Custom components for control editor and public websites.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1,70 +0,0 @@
1
- import { CommonComponentProps } from '../props';
2
- type Padding = {
3
- top: number;
4
- right: number;
5
- bottom: number;
6
- left: number;
7
- };
8
- type CornerRadius = {
9
- top: number;
10
- right: number;
11
- bottom: number;
12
- left: number;
13
- };
14
- type BoxShadow = {
15
- top: number;
16
- left: number;
17
- right: number;
18
- bottom: number;
19
- };
20
- type HoverEffect = 'none' | 'scale-up' | 'lift' | 'blinds' | 'reveal' | 'swipe' | 'content-roll';
21
- type SimpleButtonSettings = {
22
- type?: 'a' | 'b' | 'c';
23
- label?: string;
24
- icon?: string | null;
25
- alignment?: 'left' | 'center' | 'right';
26
- alignA?: 'left' | 'center' | 'right';
27
- order?: 'text-icon' | 'icon-text';
28
- gap?: number;
29
- iconScale?: number;
30
- iconSize?: number;
31
- iconColor?: string;
32
- dimensions?: boolean;
33
- padding?: Padding;
34
- cornerRadius?: CornerRadius;
35
- boxShadow?: BoxShadow;
36
- boxShadowColor?: string;
37
- innerBoxShadow?: BoxShadow;
38
- innerBoxShadowColor?: string;
39
- stroke?: number;
40
- backgroundColor?: string;
41
- textColor?: string;
42
- borderColor?: string;
43
- hoverEffect?: HoverEffect;
44
- fontFamily?: string;
45
- fontSettings?: {
46
- fontWeight?: number;
47
- fontStyle?: string;
48
- };
49
- fontSize?: number;
50
- lineHeight?: number;
51
- letterSpacing?: number;
52
- wordSpacing?: number;
53
- textAppearance?: {
54
- textTransform?: string;
55
- textDecoration?: string;
56
- fontVariant?: string;
57
- };
58
- stateOverrides?: Record<string, Partial<Record<ColorKeys, string>>>;
59
- minWidth?: number;
60
- minHeight?: number;
61
- };
62
- type ColorKeys = 'backgroundColor' | 'textColor' | 'borderColor' | 'iconColor' | 'boxShadowColor' | 'innerBoxShadowColor';
63
- type SimpleButtonProps = {
64
- settings: SimpleButtonSettings;
65
- isEditor?: boolean;
66
- isPreviewMode?: boolean;
67
- activeEvent?: string;
68
- } & CommonComponentProps;
69
- export declare function SimpleButton({ settings, isEditor, isPreviewMode, activeEvent }: SimpleButtonProps): import("react/jsx-runtime").JSX.Element;
70
- export {};
@@ -1,517 +0,0 @@
1
- import { SimpleButton } from './SimpleButton';
2
- export declare const SimpleButtonComponent: {
3
- element: typeof SimpleButton;
4
- id: string;
5
- name: string;
6
- category: string;
7
- version: number;
8
- defaultSize: {
9
- d: {
10
- width: number;
11
- height: number;
12
- };
13
- m: {
14
- width: number;
15
- height: number;
16
- };
17
- };
18
- schema: {
19
- type: "object";
20
- version: 1;
21
- settings: {
22
- sizing: string;
23
- linkInParamsPanel: true;
24
- properties: {
25
- type: {
26
- type: "string";
27
- scope: "layout";
28
- title: string;
29
- display: {
30
- type: string;
31
- };
32
- enum: string[];
33
- };
34
- label: {
35
- type: "string";
36
- scope: "common";
37
- title: string;
38
- display: {
39
- type: string;
40
- };
41
- };
42
- icon: {
43
- type: readonly ["string", "null"];
44
- scope: "common";
45
- title: string;
46
- display: {
47
- type: string;
48
- visible: boolean;
49
- };
50
- };
51
- alignment: {
52
- type: "string";
53
- scope: "layout";
54
- title: string;
55
- display: {
56
- type: string;
57
- enum: string[];
58
- };
59
- };
60
- alignA: {
61
- type: "string";
62
- scope: "layout";
63
- title: string;
64
- display: {
65
- type: string;
66
- enum: string[];
67
- visible: boolean;
68
- };
69
- };
70
- order: {
71
- type: "string";
72
- scope: "layout";
73
- title: string;
74
- display: {
75
- type: string;
76
- enum: string[];
77
- visible: boolean;
78
- };
79
- };
80
- gap: {
81
- type: "number";
82
- scope: "layout";
83
- title: string;
84
- display: {
85
- type: string;
86
- visible: boolean;
87
- };
88
- min: number;
89
- max: number;
90
- };
91
- iconScale: {
92
- type: "number";
93
- scope: "layout";
94
- title: string;
95
- display: {
96
- type: string;
97
- visible: boolean;
98
- };
99
- min: number;
100
- max: number;
101
- };
102
- iconSize: {
103
- type: "number";
104
- scope: "layout";
105
- title: string;
106
- display: {
107
- type: string;
108
- visible: boolean;
109
- };
110
- min: number;
111
- max: number;
112
- };
113
- dimensions: {
114
- type: "boolean";
115
- scope: "layout";
116
- title: string;
117
- display: {
118
- type: string;
119
- enum: string[];
120
- };
121
- };
122
- padding: {
123
- type: "object";
124
- scope: "layout";
125
- title: string;
126
- display: {
127
- type: string;
128
- };
129
- };
130
- cornerRadius: {
131
- type: "object";
132
- scope: "layout";
133
- title: string;
134
- display: {
135
- type: string;
136
- };
137
- };
138
- boxShadow: {
139
- type: "object";
140
- scope: "layout";
141
- title: string;
142
- display: {
143
- type: string;
144
- step: number;
145
- decimal: boolean;
146
- allowNegative: boolean;
147
- nonNegativeSides: string[];
148
- sideLetters: {
149
- top: string;
150
- left: string;
151
- right: string;
152
- bottom: string;
153
- };
154
- };
155
- };
156
- boxShadowColor: {
157
- type: "string";
158
- scope: "common";
159
- title: string;
160
- display: {
161
- type: string;
162
- };
163
- };
164
- innerBoxShadow: {
165
- type: "object";
166
- scope: "layout";
167
- title: string;
168
- display: {
169
- type: string;
170
- step: number;
171
- decimal: boolean;
172
- allowNegative: boolean;
173
- nonNegativeSides: string[];
174
- sideLetters: {
175
- top: string;
176
- left: string;
177
- right: string;
178
- bottom: string;
179
- };
180
- };
181
- };
182
- innerBoxShadowColor: {
183
- type: "string";
184
- scope: "common";
185
- title: string;
186
- display: {
187
- type: string;
188
- };
189
- };
190
- stroke: {
191
- type: "number";
192
- scope: "layout";
193
- title: string;
194
- display: {
195
- type: string;
196
- };
197
- min: number;
198
- max: number;
199
- };
200
- backgroundColor: {
201
- type: "string";
202
- scope: "common";
203
- title: string;
204
- display: {
205
- type: string;
206
- };
207
- };
208
- textColor: {
209
- type: "string";
210
- scope: "common";
211
- title: string;
212
- display: {
213
- type: string;
214
- };
215
- };
216
- borderColor: {
217
- type: "string";
218
- scope: "common";
219
- title: string;
220
- display: {
221
- type: string;
222
- };
223
- };
224
- iconColor: {
225
- type: "string";
226
- scope: "common";
227
- title: string;
228
- display: {
229
- type: string;
230
- };
231
- };
232
- stateOverrides: {
233
- type: "object";
234
- scope: "common";
235
- };
236
- hoverEffect: {
237
- type: "string";
238
- scope: "layout";
239
- title: string;
240
- display: {
241
- type: string;
242
- enum: string[];
243
- };
244
- };
245
- fontFamily: {
246
- type: "string";
247
- scope: "common";
248
- title: string;
249
- display: {
250
- type: string;
251
- };
252
- };
253
- fontSettings: {
254
- scope: "common";
255
- title: string;
256
- display: {
257
- type: string;
258
- };
259
- type: "object";
260
- properties: {
261
- fontWeight: {
262
- type: "number";
263
- };
264
- fontStyle: {
265
- type: "string";
266
- };
267
- };
268
- };
269
- fontSize: {
270
- type: "number";
271
- scope: "layout";
272
- title: string;
273
- display: {
274
- type: string;
275
- };
276
- };
277
- lineHeight: {
278
- type: "number";
279
- scope: "layout";
280
- title: string;
281
- display: {
282
- type: string;
283
- };
284
- };
285
- letterSpacing: {
286
- type: "number";
287
- scope: "layout";
288
- title: string;
289
- display: {
290
- type: string;
291
- };
292
- };
293
- wordSpacing: {
294
- type: "number";
295
- scope: "layout";
296
- title: string;
297
- display: {
298
- type: string;
299
- };
300
- };
301
- textAppearance: {
302
- type: "object";
303
- scope: "layout";
304
- title: string;
305
- display: {
306
- type: string;
307
- };
308
- };
309
- minWidth: {
310
- type: "number";
311
- scope: "layout";
312
- title: string;
313
- display: {
314
- type: string;
315
- };
316
- min: number;
317
- max: number;
318
- };
319
- minHeight: {
320
- type: "number";
321
- scope: "layout";
322
- title: string;
323
- display: {
324
- type: string;
325
- };
326
- min: number;
327
- max: number;
328
- };
329
- };
330
- defaults: {
331
- type: string;
332
- label: string;
333
- icon: string;
334
- alignment: string;
335
- alignA: string;
336
- order: string;
337
- gap: number;
338
- iconScale: number;
339
- iconSize: number;
340
- dimensions: boolean;
341
- padding: {
342
- top: number;
343
- right: number;
344
- bottom: number;
345
- left: number;
346
- };
347
- cornerRadius: {
348
- top: number;
349
- right: number;
350
- bottom: number;
351
- left: number;
352
- };
353
- boxShadow: {
354
- top: number;
355
- left: number;
356
- right: number;
357
- bottom: number;
358
- };
359
- boxShadowColor: string;
360
- innerBoxShadow: {
361
- top: number;
362
- left: number;
363
- right: number;
364
- bottom: number;
365
- };
366
- innerBoxShadowColor: string;
367
- stroke: number;
368
- backgroundColor: string;
369
- textColor: string;
370
- borderColor: string;
371
- iconColor: string;
372
- hoverEffect: string;
373
- fontFamily: string;
374
- fontSettings: {
375
- fontWeight: number;
376
- fontStyle: string;
377
- };
378
- letterSpacing: number;
379
- wordSpacing: number;
380
- textAppearance: {
381
- textTransform: string;
382
- textDecoration: string;
383
- fontVariant: string;
384
- };
385
- stateOverrides: {
386
- hover: {
387
- backgroundColor: string;
388
- };
389
- active: {
390
- backgroundColor: string;
391
- };
392
- };
393
- minWidth: number;
394
- minHeight: number;
395
- };
396
- layoutDefaults: {
397
- m: {
398
- dimensions: boolean;
399
- padding: {
400
- top: number;
401
- right: number;
402
- bottom: number;
403
- left: number;
404
- };
405
- minWidth: number;
406
- minHeight: number;
407
- iconSize: number;
408
- fontSize: number;
409
- lineHeight: number;
410
- };
411
- t: {
412
- dimensions: boolean;
413
- padding: {
414
- top: number;
415
- right: number;
416
- bottom: number;
417
- left: number;
418
- };
419
- minWidth: number;
420
- minHeight: number;
421
- iconSize: number;
422
- fontSize: number;
423
- lineHeight: number;
424
- };
425
- d: {
426
- dimensions: boolean;
427
- padding: {
428
- top: number;
429
- right: number;
430
- bottom: number;
431
- left: number;
432
- };
433
- minWidth: number;
434
- minHeight: number;
435
- iconSize: number;
436
- fontSize: number;
437
- lineHeight: number;
438
- };
439
- };
440
- layout: (string | {
441
- type: "row";
442
- title: string;
443
- items: string[];
444
- })[];
445
- displayRules: ({
446
- if: {
447
- name: string;
448
- value: string;
449
- };
450
- then: {
451
- name: string;
452
- value: boolean;
453
- };
454
- } | {
455
- if: {
456
- name: string;
457
- value: number;
458
- };
459
- then: {
460
- name: string;
461
- value: boolean;
462
- };
463
- } | {
464
- if: {
465
- name: string;
466
- value: boolean;
467
- };
468
- then: {
469
- name: string;
470
- value: boolean;
471
- };
472
- })[];
473
- };
474
- panels: {
475
- id: string;
476
- icon: string;
477
- title: string;
478
- tooltip: string;
479
- layout: (string | {
480
- type: "row";
481
- title: string;
482
- items: string[];
483
- })[];
484
- }[];
485
- paletteBookmark: {
486
- items: ("backgroundColor" | "borderColor" | "textColor" | "iconColor" | "boxShadowColor" | "innerBoxShadowColor")[];
487
- panelIds: string[];
488
- stateItems: {
489
- default: string[];
490
- hover: string[];
491
- active: string[];
492
- };
493
- };
494
- states: string[];
495
- statesByLayout: {
496
- m: string[];
497
- t: string[];
498
- };
499
- };
500
- sourceCode: string;
501
- assetsPaths: {
502
- content: never[];
503
- parameters: {
504
- path: string;
505
- placeholderEnabled: boolean;
506
- }[];
507
- };
508
- fontSettingsPaths: {
509
- content: never[];
510
- parameters: {
511
- path: string;
512
- }[];
513
- };
514
- fontRelations: {
515
- fontSettings: string;
516
- };
517
- };