@cntrl-site/components 1.0.115-alpha.0 → 1.0.115

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.
Files changed (65) hide show
  1. package/dist/{Burger-DyORh_vF.mjs → Burger-BkVgNMGU.mjs} +1 -1
  2. package/dist/{Burger-B4kXX9aY.js → Burger-C3yVbQcq.js} +1 -1
  3. package/dist/{ChroniclesComponent-DRf1Xd9_.mjs → ChroniclesComponent-D-yEbs9w.mjs} +26 -12
  4. package/dist/ChroniclesComponent-Os_r2IYg.js +1 -0
  5. package/dist/Components/Chronicles/ChroniclesComponent.d.ts +4 -0
  6. package/dist/Components/Grid/Grid.d.ts +1 -0
  7. package/dist/Components/helpers/SvgImage/loadSvgMaskUrl.d.ts +0 -7
  8. package/dist/{ControlSlider-DB4nbVLT.js → ControlSlider-C8ckUIDm.js} +1 -1
  9. package/dist/{ControlSlider-3w-bHQEg.mjs → ControlSlider-DqKfaKMG.mjs} +1 -1
  10. package/dist/{FAQ-GmiwRdFq.mjs → FAQ-CJHCMSBa.mjs} +1 -1
  11. package/dist/{FAQ-7HEkaoU6.js → FAQ-DLh63Utr.js} +1 -1
  12. package/dist/Grid-OvzWvUW9.js +403 -0
  13. package/dist/{Grid-Dn44dvgx.mjs → Grid-t07NDMzY.mjs} +555 -528
  14. package/dist/{Hive-34KvKNsa.js → Hive-CzabuuCc.js} +1 -1
  15. package/dist/{Hive-7xHXyMM1.mjs → Hive-DyxYd5eg.mjs} +1 -1
  16. package/dist/{HiveLightboxTitles-BCoL46-V.mjs → HiveLightboxTitles-DhEeFKWs.mjs} +1 -1
  17. package/dist/{HiveLightboxTitles-DEeyQGcf.js → HiveLightboxTitles-DlyptAaK.js} +1 -1
  18. package/dist/{Lightbox-DzPqgKP4.mjs → Lightbox-BY99NS14.mjs} +1 -1
  19. package/dist/{Lightbox-Cb7lyaNt.js → Lightbox-DZckgBzK.js} +1 -1
  20. package/dist/{LightboxJournal-C_q7_s-B.mjs → LightboxJournal-D59ex6wH.mjs} +1 -1
  21. package/dist/{LightboxJournal-BFF5aKRz.js → LightboxJournal-DAEZOPDi.js} +1 -1
  22. package/dist/{LightboxStrip-CC2e0_9A.js → LightboxStrip-BDjI1jyH.js} +1 -1
  23. package/dist/{LightboxStrip-BrNj7ipX.mjs → LightboxStrip-YspzBP8N.mjs} +1 -1
  24. package/dist/{Mercury-BmhtFYOw.js → Mercury-B-s2Kvuq.js} +1 -1
  25. package/dist/{Mercury-Q788wrYQ.mjs → Mercury-CCW0Es-s.mjs} +1 -1
  26. package/dist/{OnelinerForm-D8WIB9Qy.mjs → OnelinerForm-BEu7_sho.mjs} +1 -1
  27. package/dist/{OnelinerForm-CUmY-bXL.js → OnelinerForm-C2Y_XMCY.js} +1 -1
  28. package/dist/{SimpleButton-DTpzfmb6.mjs → SimpleButton-C-o2W9bS.mjs} +1 -1
  29. package/dist/{SimpleButton-DtaCYa3y.js → SimpleButton-nGEcO2gB.js} +1 -1
  30. package/dist/{Slider20-q0iGgnE3.js → Slider20-BOmjDRf2.js} +1 -1
  31. package/dist/{Slider20-CKngROrc.mjs → Slider20-DUi6qwnd.mjs} +1 -1
  32. package/dist/SvgImage-B5mR9y6q.mjs +51 -0
  33. package/dist/SvgImage-DFlmxAoL.js +1 -0
  34. package/dist/{TestimonialSingle-CpEUendN.js → TestimonialSingle-BORQom3u.js} +1 -1
  35. package/dist/{TestimonialSingle-Bax71Hyo.mjs → TestimonialSingle-DrnyReim.mjs} +1 -1
  36. package/dist/{Waterfall-znaoynn5.mjs → Waterfall-3kKioKh2.mjs} +1 -1
  37. package/dist/{Waterfall-B9YWMhrg.js → Waterfall-DII4-WV5.js} +1 -1
  38. package/dist/components-D4ZrIo2M.js +1 -0
  39. package/dist/{components-y6LC2ILa.mjs → components-Ds6rhj3U.mjs} +29 -652
  40. package/dist/elements.js +1 -1
  41. package/dist/elements.mjs +22 -23
  42. package/dist/elements.node.js +1 -1
  43. package/dist/elements.node.mjs +1 -1
  44. package/dist/index.d.ts +1 -3
  45. package/dist/index.js +1 -1
  46. package/dist/index.mjs +27 -48
  47. package/dist/loadSvgMaskUrl-DfF7ay6h.js +1 -0
  48. package/dist/loadSvgMaskUrl-xHgGYgPe.mjs +20 -0
  49. package/dist/sources.js +42 -5
  50. package/dist/sources.mjs +45 -8
  51. package/dist/types/Component.d.ts +0 -7
  52. package/dist/types/SchemaV1.d.ts +0 -3
  53. package/package.json +1 -1
  54. package/dist/ChroniclesComponent-BHZu7BbK.js +0 -1
  55. package/dist/Components/PopupMenu/PopupMenu.d.ts +0 -70
  56. package/dist/Components/PopupMenu/PopupMenuComponent.d.ts +0 -597
  57. package/dist/Components/PopupMenu/popupMenuLayout.d.ts +0 -176
  58. package/dist/Grid-BXUT_Hn6.js +0 -378
  59. package/dist/PopupMenu-On4dKyT3.js +0 -369
  60. package/dist/PopupMenu-RPz8MN6s.mjs +0 -1026
  61. package/dist/SvgImage-CwRq9-ec.mjs +0 -56
  62. package/dist/SvgImage-_QN8ngad.js +0 -1
  63. package/dist/components-DScrkzXw.js +0 -1
  64. package/dist/loadSvgMaskUrl-B6kHUyof.js +0 -1
  65. package/dist/loadSvgMaskUrl-DUhCVvpl.mjs +0 -39
@@ -1,70 +0,0 @@
1
- import { CommonComponentProps } from '../props';
2
- import { PopupMenuAlign, PopupMenuBlockType, PopupMenuGridSettings, PopupMenuSidesSetting, PopupMenuLayout } from './popupMenuLayout';
3
- /** How the popup comes in as it opens and goes as it closes; the overlay behind it fades with it, but for 'none'. */
4
- export declare const POPUP_MENU_TRANSITIONS: readonly ["slide down", "slide up", "fade", "scale", "none"];
5
- export type PopupMenuTransition = (typeof POPUP_MENU_TRANSITIONS)[number];
6
- export declare const POPUP_MENU_TRIGGER_TYPES: readonly ["burger", "plus", "icon", "text"];
7
- export type PopupMenuTriggerType = (typeof POPUP_MENU_TRIGGER_TYPES)[number];
8
- type PopupMenuImage = {
9
- assetId: string;
10
- name?: string;
11
- };
12
- export type PopupMenuBlock = {
13
- /** 'list' is from before lists had two styles, and reads as 'listA'. */
14
- type?: PopupMenuBlockType | 'list';
15
- title?: string;
16
- text?: any[];
17
- images?: PopupMenuImage[];
18
- };
19
- type PopupMenuColorKey = 'barBackgroundColor' | 'triggerColor' | 'overlayColor' | 'popupBackgroundColor' | 'titleColor' | 'textColor' | 'listAColor' | 'listBColor';
20
- type PopupMenuSettings = PopupMenuGridSettings & {
21
- menuLayout?: PopupMenuLayout | null;
22
- /** None, as in a menu saved before there was a choice, is a text trigger. */
23
- triggerType?: PopupMenuTriggerType;
24
- triggerLabel?: string;
25
- triggerIcon?: string | null;
26
- triggerIconSize?: number;
27
- /** The room round the trigger's icon or text; a menu saved before it had one has none. */
28
- triggerPadding?: PopupMenuSidesSetting;
29
- /** A percentage of the screen's height, 100 at most. */
30
- popupHeight?: number;
31
- /** Where the popup sits across the screen; none is the centre. */
32
- popupAlign?: PopupMenuAlign;
33
- /** How far the popup is moved right from where it is aligned, or left where negative, in fractions of the layout width. */
34
- popupOffset?: number;
35
- /** How far the popup is moved down from the screen's top, or up where negative, in fractions of the layout width. */
36
- popupOffsetTop?: number;
37
- titleGap?: number;
38
- popupRadius?: number;
39
- imageRadius?: number;
40
- /** How the popup shows and hides; none, as in a menu saved before there was a choice, slides down. */
41
- popupTransition?: PopupMenuTransition;
42
- /** How far the page behind the open popup is blurred, in fractions of the layout width; none, not at all. */
43
- overlayBlur?: number;
44
- barBackgroundColor?: string;
45
- triggerColor?: string;
46
- overlayColor?: string;
47
- popupBackgroundColor?: string;
48
- titleColor?: string;
49
- textColor?: string;
50
- listAColor?: string;
51
- listBColor?: string;
52
- /** Colours picked in a state's panel, by state, over the ones above. */
53
- stateOverrides?: Record<string, Partial<Record<PopupMenuColorKey, string>>>;
54
- [key: string]: unknown;
55
- };
56
- type PopupMenuProps = {
57
- settings: PopupMenuSettings;
58
- /** Given in the editor, the open popup's blocks can be dragged across its columns and down its height. */
59
- onUpdateSettings?: (settings: PopupMenuSettings) => void;
60
- content?: PopupMenuBlock[];
61
- isEditor?: boolean;
62
- isEditMode?: boolean;
63
- isPreviewMode?: boolean;
64
- layoutId?: string;
65
- /** Where the open popup is portalled to, so that it covers the screen rather than the element; none, the body. */
66
- portalId?: string;
67
- onOpenChange?: (isOpen: boolean) => void;
68
- } & CommonComponentProps;
69
- export declare function PopupMenu({ settings, content, isEditor, isEditMode, isPreviewMode, layoutId, portalId, currentState, unavailableStates, onOpenChange, onUpdateSettings, }: PopupMenuProps): import("react/jsx-runtime").JSX.Element;
70
- export {};
@@ -1,597 +0,0 @@
1
- import { PopupMenu } from './PopupMenu';
2
- export declare const PopupMenuComponent: {
3
- element: typeof PopupMenu;
4
- id: string;
5
- name: string;
6
- category: string;
7
- version: number;
8
- layoutMode: "navigation";
9
- navigationLayout: "freeform";
10
- defaultSize: {
11
- d: {
12
- width: number;
13
- height: number;
14
- };
15
- t: {
16
- width: number;
17
- height: number;
18
- };
19
- m: {
20
- width: number;
21
- height: number;
22
- };
23
- };
24
- schema: {
25
- type: "object";
26
- version: 1;
27
- content: {
28
- type: "array";
29
- settings: {
30
- addItemWithoutImage: true;
31
- };
32
- display: {
33
- type: string;
34
- };
35
- items: {
36
- type: "object";
37
- properties: {
38
- type: {
39
- type: "string";
40
- label: string;
41
- enum: string[];
42
- default: string;
43
- display: {
44
- type: string;
45
- };
46
- };
47
- title: {
48
- type: "string";
49
- label: string;
50
- placeholder: string;
51
- display: {
52
- type: string;
53
- };
54
- byRowType: {
55
- image: {
56
- display: {
57
- type: string;
58
- visible: boolean;
59
- };
60
- };
61
- };
62
- };
63
- text: {
64
- label: string;
65
- placeholder: string;
66
- display: {
67
- type: string;
68
- };
69
- byRowType: {
70
- image: {
71
- display: {
72
- type: string;
73
- visible: boolean;
74
- };
75
- };
76
- };
77
- };
78
- images: {
79
- type: "object";
80
- label: string;
81
- display: {
82
- type: string;
83
- };
84
- byRowType: {
85
- [k: string]: {
86
- display: {
87
- type: string;
88
- visible: boolean;
89
- };
90
- };
91
- };
92
- properties: {
93
- assetId: {
94
- type: "string";
95
- };
96
- name: {
97
- type: "string";
98
- };
99
- objectFit: {
100
- type: "string";
101
- enum: string[];
102
- };
103
- };
104
- required: string[];
105
- };
106
- };
107
- };
108
- default: ({
109
- type: string;
110
- title: string;
111
- text: {
112
- type: string;
113
- children: {
114
- text: string;
115
- }[];
116
- }[];
117
- images: never[];
118
- } | {
119
- type: string;
120
- title: string;
121
- text: never[];
122
- images: {
123
- assetId: string;
124
- name: string;
125
- objectFit: string;
126
- }[];
127
- })[];
128
- };
129
- settings: {
130
- sizing: string;
131
- properties: {
132
- menuLayout: {
133
- type: "object";
134
- scope: "layout";
135
- title: string;
136
- display: {
137
- type: string;
138
- };
139
- };
140
- gridLayout: {
141
- type: "grid-layout";
142
- scope: "layout";
143
- display: {
144
- type: string;
145
- };
146
- gridParams: {
147
- type: "object";
148
- properties: {
149
- columnsCount: {
150
- type: "number";
151
- title: string;
152
- min: number;
153
- max: number;
154
- display: {
155
- type: string;
156
- };
157
- };
158
- wrapperWidth: {
159
- type: "number";
160
- title: string;
161
- min: number;
162
- };
163
- entryWidth: {
164
- type: "number";
165
- title: string;
166
- min: number;
167
- };
168
- horizontalGap: {
169
- type: "number";
170
- title: string;
171
- min: number;
172
- };
173
- };
174
- };
175
- };
176
- verticalGap: {
177
- type: "number";
178
- scope: "layout";
179
- title: string;
180
- min: number;
181
- max: number;
182
- display: {
183
- type: string;
184
- };
185
- };
186
- triggerType: {
187
- type: "string";
188
- scope: "common";
189
- title: string;
190
- enum: ("text" | "icon" | "burger" | "plus")[];
191
- display: {
192
- type: string;
193
- };
194
- };
195
- triggerLabel: {
196
- type: "string";
197
- scope: "common";
198
- title: string;
199
- display: {
200
- type: string;
201
- };
202
- };
203
- triggerIcon: {
204
- type: readonly ["string", "null"];
205
- scope: "common";
206
- title: string;
207
- display: {
208
- type: string;
209
- visible: boolean;
210
- };
211
- };
212
- triggerIconSize: {
213
- type: "number";
214
- scope: "layout";
215
- title: string;
216
- min: number;
217
- max: number;
218
- display: {
219
- type: string;
220
- visible: boolean;
221
- };
222
- };
223
- triggerPadding: {
224
- type: "object";
225
- scope: "layout";
226
- title: string;
227
- display: {
228
- type: string;
229
- };
230
- properties: {
231
- top: {
232
- type: "number";
233
- };
234
- right: {
235
- type: "number";
236
- };
237
- bottom: {
238
- type: "number";
239
- };
240
- left: {
241
- type: "number";
242
- };
243
- };
244
- };
245
- popupHeight: {
246
- type: "number";
247
- scope: "layout";
248
- title: string;
249
- min: number;
250
- max: number;
251
- display: {
252
- type: string;
253
- };
254
- };
255
- popupAlign: {
256
- type: "string";
257
- scope: "layout";
258
- title: string;
259
- enum: ("center" | "left" | "right")[];
260
- display: {
261
- type: string;
262
- direction: string;
263
- };
264
- };
265
- popupOffset: {
266
- type: "number";
267
- scope: "layout";
268
- title: string;
269
- min: number;
270
- max: number;
271
- display: {
272
- type: string;
273
- };
274
- };
275
- popupOffsetTop: {
276
- type: "number";
277
- scope: "layout";
278
- title: string;
279
- min: number;
280
- max: number;
281
- display: {
282
- type: string;
283
- };
284
- };
285
- titleGap: {
286
- type: "number";
287
- scope: "layout";
288
- title: string;
289
- min: number;
290
- max: number;
291
- display: {
292
- type: string;
293
- };
294
- };
295
- popupRadius: {
296
- type: "number";
297
- scope: "layout";
298
- title: string;
299
- min: number;
300
- max: number;
301
- display: {
302
- type: string;
303
- };
304
- };
305
- imageRadius: {
306
- type: "number";
307
- scope: "layout";
308
- title: string;
309
- min: number;
310
- max: number;
311
- display: {
312
- type: string;
313
- };
314
- };
315
- popupTransition: {
316
- type: "string";
317
- scope: "common";
318
- title: string;
319
- display: {
320
- type: string;
321
- enum: ("none" | "scale" | "fade" | "slide down" | "slide up")[];
322
- };
323
- };
324
- overlayBlur: {
325
- type: "number";
326
- scope: "layout";
327
- title: string;
328
- min: number;
329
- max: number;
330
- display: {
331
- type: string;
332
- };
333
- };
334
- stateOverrides: {
335
- type: "object";
336
- scope: "common";
337
- };
338
- barBackgroundColor: {
339
- type: "string";
340
- scope: "common";
341
- title: string;
342
- display: {
343
- type: string;
344
- };
345
- };
346
- triggerColor: {
347
- type: "string";
348
- scope: "common";
349
- title: string;
350
- display: {
351
- type: string;
352
- };
353
- };
354
- overlayColor: {
355
- type: "string";
356
- scope: "common";
357
- title: string;
358
- display: {
359
- type: string;
360
- };
361
- };
362
- popupBackgroundColor: {
363
- type: "string";
364
- scope: "common";
365
- title: string;
366
- display: {
367
- type: string;
368
- };
369
- };
370
- titleColor: {
371
- type: "string";
372
- scope: "common";
373
- title: string;
374
- display: {
375
- type: string;
376
- };
377
- };
378
- textColor: {
379
- type: "string";
380
- scope: "common";
381
- title: string;
382
- display: {
383
- type: string;
384
- };
385
- };
386
- listAColor: {
387
- type: "string";
388
- scope: "common";
389
- title: string;
390
- display: {
391
- type: string;
392
- };
393
- };
394
- listBColor: {
395
- type: "string";
396
- scope: "common";
397
- title: string;
398
- display: {
399
- type: string;
400
- };
401
- };
402
- };
403
- displayRules: {
404
- if: {
405
- name: string;
406
- value: string;
407
- };
408
- then: {
409
- name: string;
410
- value: boolean;
411
- };
412
- }[];
413
- defaults: {
414
- menuLayout: null;
415
- triggerType: string;
416
- triggerLabel: string;
417
- triggerIcon: null;
418
- popupTransition: string;
419
- barBackgroundColor: string;
420
- triggerColor: string;
421
- overlayColor: string;
422
- popupBackgroundColor: string;
423
- titleColor: string;
424
- textColor: string;
425
- listAColor: string;
426
- listBColor: string;
427
- triggerFontFamily: string;
428
- triggerFontSettings: {
429
- fontWeight: number;
430
- fontStyle: string;
431
- };
432
- titleFontFamily: string;
433
- titleFontSettings: {
434
- fontWeight: number;
435
- fontStyle: string;
436
- };
437
- textFontFamily: string;
438
- textFontSettings: {
439
- fontWeight: number;
440
- fontStyle: string;
441
- };
442
- listAFontFamily: string;
443
- listAFontSettings: {
444
- fontWeight: number;
445
- fontStyle: string;
446
- };
447
- listBFontFamily: string;
448
- listBFontSettings: {
449
- fontWeight: number;
450
- fontStyle: string;
451
- };
452
- };
453
- layoutDefaults: {
454
- d: {
455
- triggerPadding: {
456
- top: number;
457
- right: number;
458
- bottom: number;
459
- left: number;
460
- };
461
- triggerIconSize: number;
462
- popupHeight: number;
463
- popupAlign: string;
464
- popupOffset: number;
465
- popupOffsetTop: number;
466
- titleGap: number;
467
- popupRadius: number;
468
- imageRadius: number;
469
- overlayBlur: number;
470
- gridLayout: {
471
- columnsCount: number;
472
- wrapperWidth: number;
473
- entryWidth: number;
474
- horizontalGap: number;
475
- lockedParam: string;
476
- };
477
- verticalGap: number;
478
- };
479
- t: {
480
- triggerPadding: {
481
- top: number;
482
- right: number;
483
- bottom: number;
484
- left: number;
485
- };
486
- triggerIconSize: number;
487
- popupHeight: number;
488
- popupAlign: string;
489
- popupOffset: number;
490
- popupOffsetTop: number;
491
- titleGap: number;
492
- popupRadius: number;
493
- imageRadius: number;
494
- overlayBlur: number;
495
- gridLayout: {
496
- columnsCount: number;
497
- wrapperWidth: number;
498
- entryWidth: number;
499
- horizontalGap: number;
500
- lockedParam: string;
501
- };
502
- verticalGap: number;
503
- };
504
- m: {
505
- triggerPadding: {
506
- top: number;
507
- right: number;
508
- bottom: number;
509
- left: number;
510
- };
511
- triggerIconSize: number;
512
- popupHeight: number;
513
- popupAlign: string;
514
- popupOffset: number;
515
- popupOffsetTop: number;
516
- titleGap: number;
517
- popupRadius: number;
518
- imageRadius: number;
519
- overlayBlur: number;
520
- gridLayout: {
521
- columnsCount: number;
522
- wrapperWidth: number;
523
- entryWidth: number;
524
- horizontalGap: number;
525
- lockedParam: string;
526
- };
527
- verticalGap: number;
528
- };
529
- };
530
- };
531
- panels: ({
532
- id: string;
533
- icon: string;
534
- title: string;
535
- tooltip: string;
536
- layout: (string | {
537
- type: "row";
538
- items: string[];
539
- title?: undefined;
540
- } | {
541
- type: "row";
542
- title: string;
543
- items: {
544
- type: "group";
545
- title: string;
546
- items: string[];
547
- }[];
548
- })[];
549
- } | {
550
- id: string;
551
- icon: string;
552
- title: string;
553
- tooltip: string;
554
- layout: (string | {
555
- type: "tab";
556
- id: string;
557
- tabs: {
558
- [k: string]: (string | {
559
- type: "row";
560
- items: string[];
561
- })[];
562
- };
563
- })[];
564
- })[];
565
- paletteBookmark: {
566
- items: ("textColor" | "titleColor" | "overlayColor" | "triggerColor" | "barBackgroundColor" | "popupBackgroundColor" | "listAColor" | "listBColor")[];
567
- panelIds: string[];
568
- stateItems: {
569
- default: string[];
570
- open: string[];
571
- };
572
- };
573
- statePanels: string[];
574
- };
575
- assetsPaths: {
576
- content: {
577
- path: string;
578
- placeholderEnabled: boolean;
579
- }[];
580
- parameters: {
581
- path: string;
582
- }[];
583
- };
584
- fontSettingsPaths: {
585
- content: never[];
586
- parameters: {
587
- path: string;
588
- }[];
589
- };
590
- fontRelations: {
591
- triggerFontSettings: string;
592
- titleFontSettings: string;
593
- textFontSettings: string;
594
- listAFontSettings: string;
595
- listBFontSettings: string;
596
- };
597
- };