@cntrl-site/components 1.0.118-alpha.4 → 1.0.118-alpha.8

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