@cntrl-site/components 1.0.115-alpha.1 → 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-DH803b-9.mjs → components-Ds6rhj3U.mjs} +29 -655
  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 -72
  56. package/dist/Components/PopupMenu/PopupMenuComponent.d.ts +0 -598
  57. package/dist/Components/PopupMenu/popupMenuLayout.d.ts +0 -176
  58. package/dist/Grid-BXUT_Hn6.js +0 -378
  59. package/dist/PopupMenu-Ct6PbiJq.js +0 -369
  60. package/dist/PopupMenu-DGVvx5AW.mjs +0 -1067
  61. package/dist/SvgImage-CwRq9-ec.mjs +0 -56
  62. package/dist/SvgImage-_QN8ngad.js +0 -1
  63. package/dist/components-DCG0h7Jb.js +0 -1
  64. package/dist/loadSvgMaskUrl-B6kHUyof.js +0 -1
  65. package/dist/loadSvgMaskUrl-DUhCVvpl.mjs +0 -39
@@ -1,72 +0,0 @@
1
- import { CommonComponentProps } from '../props';
2
- import { EmbedMediaLike } from '../utils/embedMedia';
3
- import { PopupMenuAlign, PopupMenuBlockType, PopupMenuGridSettings, PopupMenuSidesSetting, PopupMenuLayout } 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
- menuLayout?: PopupMenuLayout | null;
24
- /** None, as in a menu saved before there was a choice, is a text trigger. */
25
- triggerType?: PopupMenuTriggerType;
26
- triggerLabel?: string;
27
- triggerIcon?: string | null;
28
- triggerIconSize?: number;
29
- /** The room round the trigger's icon or text; a menu saved before it had one has none. */
30
- triggerPadding?: PopupMenuSidesSetting;
31
- /** A percentage of the screen's height, 100 at most. */
32
- popupHeight?: number;
33
- /** Where the popup sits across the screen; none is the centre. */
34
- popupAlign?: PopupMenuAlign;
35
- /** How far the popup is moved right from where it is aligned, or left where negative, in fractions of the layout width. */
36
- popupOffset?: number;
37
- /** How far the popup is moved down from the screen's top, or up where negative, in fractions of the layout width. */
38
- popupOffsetTop?: number;
39
- titleGap?: number;
40
- popupRadius?: number;
41
- imageRadius?: number;
42
- /** How the popup shows and hides; none, as in a menu saved before there was a choice, slides down. */
43
- popupTransition?: PopupMenuTransition;
44
- /** How far the page behind the open popup is blurred, in fractions of the layout width; none, not at all. */
45
- overlayBlur?: number;
46
- barBackgroundColor?: string;
47
- triggerColor?: string;
48
- overlayColor?: string;
49
- popupBackgroundColor?: string;
50
- titleColor?: string;
51
- textColor?: string;
52
- listAColor?: string;
53
- listBColor?: string;
54
- /** Colours picked in a state's panel, by state, over the ones above. */
55
- stateOverrides?: Record<string, Partial<Record<PopupMenuColorKey, string>>>;
56
- [key: string]: unknown;
57
- };
58
- type PopupMenuProps = {
59
- settings: PopupMenuSettings;
60
- /** Given in the editor, the open popup's blocks can be dragged across its columns and down its height. */
61
- onUpdateSettings?: (settings: PopupMenuSettings) => void;
62
- content?: PopupMenuBlock[];
63
- isEditor?: boolean;
64
- isEditMode?: boolean;
65
- isPreviewMode?: boolean;
66
- layoutId?: string;
67
- /** Where the open popup is portalled to, so that it covers the screen rather than the element; none, the body. */
68
- portalId?: string;
69
- onOpenChange?: (isOpen: boolean) => void;
70
- } & CommonComponentProps;
71
- export declare function PopupMenu({ settings, content, isEditor, isEditMode, isPreviewMode, layoutId, portalId, currentState, unavailableStates, onOpenChange, onUpdateSettings, }: PopupMenuProps): import("react/jsx-runtime").JSX.Element;
72
- export {};
@@ -1,598 +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
- title: string;
137
- display: {
138
- type: string;
139
- };
140
- };
141
- gridLayout: {
142
- type: "grid-layout";
143
- scope: "layout";
144
- display: {
145
- type: string;
146
- };
147
- gridParams: {
148
- type: "object";
149
- properties: {
150
- columnsCount: {
151
- type: "number";
152
- title: string;
153
- min: number;
154
- max: number;
155
- display: {
156
- type: string;
157
- };
158
- };
159
- wrapperWidth: {
160
- type: "number";
161
- title: string;
162
- min: number;
163
- };
164
- entryWidth: {
165
- type: "number";
166
- title: string;
167
- min: number;
168
- };
169
- horizontalGap: {
170
- type: "number";
171
- title: string;
172
- min: number;
173
- };
174
- };
175
- };
176
- };
177
- verticalGap: {
178
- type: "number";
179
- scope: "layout";
180
- title: string;
181
- min: number;
182
- max: number;
183
- display: {
184
- type: string;
185
- };
186
- };
187
- triggerType: {
188
- type: "string";
189
- scope: "common";
190
- title: string;
191
- enum: ("text" | "icon" | "burger" | "plus")[];
192
- display: {
193
- type: string;
194
- };
195
- };
196
- triggerLabel: {
197
- type: "string";
198
- scope: "common";
199
- title: string;
200
- display: {
201
- type: string;
202
- };
203
- };
204
- triggerIcon: {
205
- type: readonly ["string", "null"];
206
- scope: "common";
207
- title: string;
208
- display: {
209
- type: string;
210
- visible: boolean;
211
- };
212
- };
213
- triggerIconSize: {
214
- type: "number";
215
- scope: "layout";
216
- title: string;
217
- min: number;
218
- max: number;
219
- display: {
220
- type: string;
221
- visible: boolean;
222
- };
223
- };
224
- triggerPadding: {
225
- type: "object";
226
- scope: "layout";
227
- title: string;
228
- display: {
229
- type: string;
230
- };
231
- properties: {
232
- top: {
233
- type: "number";
234
- };
235
- right: {
236
- type: "number";
237
- };
238
- bottom: {
239
- type: "number";
240
- };
241
- left: {
242
- type: "number";
243
- };
244
- };
245
- };
246
- popupHeight: {
247
- type: "number";
248
- scope: "layout";
249
- title: string;
250
- min: number;
251
- max: number;
252
- display: {
253
- type: string;
254
- };
255
- };
256
- popupAlign: {
257
- type: "string";
258
- scope: "layout";
259
- title: string;
260
- enum: ("center" | "left" | "right")[];
261
- display: {
262
- type: string;
263
- direction: string;
264
- };
265
- };
266
- popupOffset: {
267
- type: "number";
268
- scope: "layout";
269
- title: string;
270
- min: number;
271
- max: number;
272
- display: {
273
- type: string;
274
- };
275
- };
276
- popupOffsetTop: {
277
- type: "number";
278
- scope: "layout";
279
- title: string;
280
- min: number;
281
- max: number;
282
- display: {
283
- type: string;
284
- };
285
- };
286
- titleGap: {
287
- type: "number";
288
- scope: "layout";
289
- title: string;
290
- min: number;
291
- max: number;
292
- display: {
293
- type: string;
294
- };
295
- };
296
- popupRadius: {
297
- type: "number";
298
- scope: "layout";
299
- title: string;
300
- min: number;
301
- max: number;
302
- display: {
303
- type: string;
304
- };
305
- };
306
- imageRadius: {
307
- type: "number";
308
- scope: "layout";
309
- title: string;
310
- min: number;
311
- max: number;
312
- display: {
313
- type: string;
314
- };
315
- };
316
- popupTransition: {
317
- type: "string";
318
- scope: "common";
319
- title: string;
320
- display: {
321
- type: string;
322
- enum: ("none" | "scale" | "fade" | "slide down" | "slide up")[];
323
- };
324
- };
325
- overlayBlur: {
326
- type: "number";
327
- scope: "layout";
328
- title: string;
329
- min: number;
330
- max: number;
331
- display: {
332
- type: string;
333
- };
334
- };
335
- stateOverrides: {
336
- type: "object";
337
- scope: "common";
338
- };
339
- barBackgroundColor: {
340
- type: "string";
341
- scope: "common";
342
- title: string;
343
- display: {
344
- type: string;
345
- };
346
- };
347
- triggerColor: {
348
- type: "string";
349
- scope: "common";
350
- title: string;
351
- display: {
352
- type: string;
353
- };
354
- };
355
- overlayColor: {
356
- type: "string";
357
- scope: "common";
358
- title: string;
359
- display: {
360
- type: string;
361
- };
362
- };
363
- popupBackgroundColor: {
364
- type: "string";
365
- scope: "common";
366
- title: string;
367
- display: {
368
- type: string;
369
- };
370
- };
371
- titleColor: {
372
- type: "string";
373
- scope: "common";
374
- title: string;
375
- display: {
376
- type: string;
377
- };
378
- };
379
- textColor: {
380
- type: "string";
381
- scope: "common";
382
- title: string;
383
- display: {
384
- type: string;
385
- };
386
- };
387
- listAColor: {
388
- type: "string";
389
- scope: "common";
390
- title: string;
391
- display: {
392
- type: string;
393
- };
394
- };
395
- listBColor: {
396
- type: "string";
397
- scope: "common";
398
- title: string;
399
- display: {
400
- type: string;
401
- };
402
- };
403
- };
404
- displayRules: {
405
- if: {
406
- name: string;
407
- value: string;
408
- };
409
- then: {
410
- name: string;
411
- value: boolean;
412
- };
413
- }[];
414
- defaults: {
415
- menuLayout: null;
416
- triggerType: string;
417
- triggerLabel: string;
418
- triggerIcon: null;
419
- popupTransition: string;
420
- barBackgroundColor: string;
421
- triggerColor: string;
422
- overlayColor: string;
423
- popupBackgroundColor: string;
424
- titleColor: string;
425
- textColor: string;
426
- listAColor: string;
427
- listBColor: string;
428
- triggerFontFamily: string;
429
- triggerFontSettings: {
430
- fontWeight: number;
431
- fontStyle: string;
432
- };
433
- titleFontFamily: string;
434
- titleFontSettings: {
435
- fontWeight: number;
436
- fontStyle: string;
437
- };
438
- textFontFamily: string;
439
- textFontSettings: {
440
- fontWeight: number;
441
- fontStyle: string;
442
- };
443
- listAFontFamily: string;
444
- listAFontSettings: {
445
- fontWeight: number;
446
- fontStyle: string;
447
- };
448
- listBFontFamily: string;
449
- listBFontSettings: {
450
- fontWeight: number;
451
- fontStyle: string;
452
- };
453
- };
454
- layoutDefaults: {
455
- d: {
456
- triggerPadding: {
457
- top: number;
458
- right: number;
459
- bottom: number;
460
- left: number;
461
- };
462
- triggerIconSize: number;
463
- popupHeight: number;
464
- popupAlign: string;
465
- popupOffset: number;
466
- popupOffsetTop: number;
467
- titleGap: number;
468
- popupRadius: number;
469
- imageRadius: number;
470
- overlayBlur: number;
471
- gridLayout: {
472
- columnsCount: number;
473
- wrapperWidth: number;
474
- entryWidth: number;
475
- horizontalGap: number;
476
- lockedParam: string;
477
- };
478
- verticalGap: number;
479
- };
480
- t: {
481
- triggerPadding: {
482
- top: number;
483
- right: number;
484
- bottom: number;
485
- left: number;
486
- };
487
- triggerIconSize: number;
488
- popupHeight: number;
489
- popupAlign: string;
490
- popupOffset: number;
491
- popupOffsetTop: number;
492
- titleGap: number;
493
- popupRadius: number;
494
- imageRadius: number;
495
- overlayBlur: number;
496
- gridLayout: {
497
- columnsCount: number;
498
- wrapperWidth: number;
499
- entryWidth: number;
500
- horizontalGap: number;
501
- lockedParam: string;
502
- };
503
- verticalGap: number;
504
- };
505
- m: {
506
- triggerPadding: {
507
- top: number;
508
- right: number;
509
- bottom: number;
510
- left: number;
511
- };
512
- triggerIconSize: number;
513
- popupHeight: number;
514
- popupAlign: string;
515
- popupOffset: number;
516
- popupOffsetTop: number;
517
- titleGap: number;
518
- popupRadius: number;
519
- imageRadius: number;
520
- overlayBlur: number;
521
- gridLayout: {
522
- columnsCount: number;
523
- wrapperWidth: number;
524
- entryWidth: number;
525
- horizontalGap: number;
526
- lockedParam: string;
527
- };
528
- verticalGap: number;
529
- };
530
- };
531
- };
532
- panels: ({
533
- id: string;
534
- icon: string;
535
- title: string;
536
- tooltip: string;
537
- layout: (string | {
538
- type: "row";
539
- items: string[];
540
- title?: undefined;
541
- } | {
542
- type: "row";
543
- title: string;
544
- items: {
545
- type: "group";
546
- title: string;
547
- items: string[];
548
- }[];
549
- })[];
550
- } | {
551
- id: string;
552
- icon: string;
553
- title: string;
554
- tooltip: string;
555
- layout: (string | {
556
- type: "tab";
557
- id: string;
558
- tabs: {
559
- [k: string]: (string | {
560
- type: "row";
561
- items: string[];
562
- })[];
563
- };
564
- })[];
565
- })[];
566
- paletteBookmark: {
567
- items: ("textColor" | "titleColor" | "overlayColor" | "triggerColor" | "barBackgroundColor" | "popupBackgroundColor" | "listAColor" | "listBColor")[];
568
- panelIds: string[];
569
- stateItems: {
570
- default: string[];
571
- open: string[];
572
- };
573
- };
574
- statePanels: string[];
575
- };
576
- assetsPaths: {
577
- content: {
578
- path: string;
579
- placeholderEnabled: boolean;
580
- }[];
581
- parameters: {
582
- path: string;
583
- }[];
584
- };
585
- fontSettingsPaths: {
586
- content: never[];
587
- parameters: {
588
- path: string;
589
- }[];
590
- };
591
- fontRelations: {
592
- triggerFontSettings: string;
593
- titleFontSettings: string;
594
- textFontSettings: string;
595
- listAFontSettings: string;
596
- listBFontSettings: string;
597
- };
598
- };