@cntrl-site/components 1.0.113 → 1.0.115-alpha.0
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.
- package/dist/{Burger-C3yVbQcq.js → Burger-B4kXX9aY.js} +1 -1
- package/dist/{Burger-BkVgNMGU.mjs → Burger-DyORh_vF.mjs} +1 -1
- package/dist/ChroniclesComponent-BHZu7BbK.js +1 -0
- package/dist/{ChroniclesComponent-Cu34ANdc.mjs → ChroniclesComponent-DRf1Xd9_.mjs} +15 -22
- package/dist/Components/FAQ/FAQ.d.ts +0 -1
- package/dist/Components/PopupMenu/PopupMenu.d.ts +70 -0
- package/dist/Components/PopupMenu/PopupMenuComponent.d.ts +597 -0
- package/dist/Components/PopupMenu/popupMenuLayout.d.ts +176 -0
- package/dist/Components/helpers/SvgImage/loadSvgMaskUrl.d.ts +7 -0
- package/dist/{ControlSlider-DqKfaKMG.mjs → ControlSlider-3w-bHQEg.mjs} +1 -1
- package/dist/{ControlSlider-C8ckUIDm.js → ControlSlider-DB4nbVLT.js} +1 -1
- package/dist/FAQ-7HEkaoU6.js +166 -0
- package/dist/{FAQ-BS-vO0l-.mjs → FAQ-GmiwRdFq.mjs} +77 -78
- package/dist/{Grid-CU1dsdoO.js → Grid-BXUT_Hn6.js} +1 -1
- package/dist/{Grid-qbqchSLi.mjs → Grid-Dn44dvgx.mjs} +1 -1
- package/dist/{Hive-CzabuuCc.js → Hive-34KvKNsa.js} +1 -1
- package/dist/{Hive-DyxYd5eg.mjs → Hive-7xHXyMM1.mjs} +1 -1
- package/dist/{HiveLightboxTitles-DhEeFKWs.mjs → HiveLightboxTitles-BCoL46-V.mjs} +1 -1
- package/dist/{HiveLightboxTitles-DlyptAaK.js → HiveLightboxTitles-DEeyQGcf.js} +1 -1
- package/dist/{Lightbox-DZckgBzK.js → Lightbox-Cb7lyaNt.js} +1 -1
- package/dist/{Lightbox-BY99NS14.mjs → Lightbox-DzPqgKP4.mjs} +1 -1
- package/dist/{LightboxJournal-DAEZOPDi.js → LightboxJournal-BFF5aKRz.js} +1 -1
- package/dist/{LightboxJournal-D59ex6wH.mjs → LightboxJournal-C_q7_s-B.mjs} +1 -1
- package/dist/{LightboxStrip-YspzBP8N.mjs → LightboxStrip-BrNj7ipX.mjs} +1 -1
- package/dist/{LightboxStrip-BDjI1jyH.js → LightboxStrip-CC2e0_9A.js} +1 -1
- package/dist/{Mercury-B-s2Kvuq.js → Mercury-BmhtFYOw.js} +1 -1
- package/dist/{Mercury-CCW0Es-s.mjs → Mercury-Q788wrYQ.mjs} +1 -1
- package/dist/{OnelinerForm-C2Y_XMCY.js → OnelinerForm-CUmY-bXL.js} +1 -1
- package/dist/{OnelinerForm-BEu7_sho.mjs → OnelinerForm-D8WIB9Qy.mjs} +1 -1
- package/dist/PopupMenu-On4dKyT3.js +369 -0
- package/dist/PopupMenu-RPz8MN6s.mjs +1026 -0
- package/dist/{SimpleButton-C-o2W9bS.mjs → SimpleButton-DTpzfmb6.mjs} +1 -1
- package/dist/{SimpleButton-nGEcO2gB.js → SimpleButton-DtaCYa3y.js} +1 -1
- package/dist/{Slider20-DUi6qwnd.mjs → Slider20-CKngROrc.mjs} +1 -1
- package/dist/{Slider20-BOmjDRf2.js → Slider20-q0iGgnE3.js} +1 -1
- package/dist/SvgImage-CwRq9-ec.mjs +56 -0
- package/dist/SvgImage-_QN8ngad.js +1 -0
- package/dist/{TestimonialSingle-DrnyReim.mjs → TestimonialSingle-Bax71Hyo.mjs} +1 -1
- package/dist/{TestimonialSingle-BORQom3u.js → TestimonialSingle-CpEUendN.js} +1 -1
- package/dist/{Waterfall-DII4-WV5.js → Waterfall-B9YWMhrg.js} +1 -1
- package/dist/{Waterfall-3kKioKh2.mjs → Waterfall-znaoynn5.mjs} +1 -1
- package/dist/components-DScrkzXw.js +1 -0
- package/dist/{components-CBovHrnR.mjs → components-y6LC2ILa.mjs} +652 -29
- package/dist/elements.js +1 -1
- package/dist/elements.mjs +23 -22
- package/dist/elements.node.js +1 -1
- package/dist/elements.node.mjs +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +48 -27
- package/dist/loadSvgMaskUrl-B6kHUyof.js +1 -0
- package/dist/loadSvgMaskUrl-DUhCVvpl.mjs +39 -0
- package/dist/sources.js +2 -6
- package/dist/sources.mjs +2 -6
- package/dist/types/Component.d.ts +7 -0
- package/dist/types/SchemaV1.d.ts +4 -0
- package/package.json +1 -1
- package/dist/ChroniclesComponent-D7ICTnJp.js +0 -1
- package/dist/FAQ-Ct0YfqX1.js +0 -166
- package/dist/SvgImage-B5mR9y6q.mjs +0 -51
- package/dist/SvgImage-DFlmxAoL.js +0 -1
- package/dist/components-Nib9fOfN.js +0 -1
- package/dist/loadSvgMaskUrl-DfF7ay6h.js +0 -1
- package/dist/loadSvgMaskUrl-xHgGYgPe.mjs +0 -20
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { Form as vt } from "./Form-BX5_41nb.mjs";
|
|
2
|
-
import { OnelinerForm as Ft } from "./OnelinerForm-
|
|
2
|
+
import { OnelinerForm as Ft } from "./OnelinerForm-D8WIB9Qy.mjs";
|
|
3
3
|
import { Marquee as Ct } from "./Marquee-_xVuf-zp.mjs";
|
|
4
4
|
import { MarqueeText as Tt } from "./MarqueeText-C2E6UDsb.mjs";
|
|
5
5
|
import { TestimonialGrid as Mt } from "./TestimonialGrid-C-8IDzWu.mjs";
|
|
6
|
-
import { TestimonialSingle as Lt } from "./TestimonialSingle-
|
|
7
|
-
import { Grid as wt } from "./Grid-
|
|
8
|
-
import { Hive as Ht } from "./Hive-
|
|
6
|
+
import { TestimonialSingle as Lt } from "./TestimonialSingle-Bax71Hyo.mjs";
|
|
7
|
+
import { Grid as wt } from "./Grid-Dn44dvgx.mjs";
|
|
8
|
+
import { Hive as Ht } from "./Hive-7xHXyMM1.mjs";
|
|
9
9
|
import { J as v, w as i, x as yt, y as mt, z as Wt } from "./utils-FxC9rcxw.mjs";
|
|
10
10
|
import { createListTextStylePanelTab as It, LIST_TEXT_STYLE_PREFIXES as E, applyListColumnCountChange as Pt, List as At, getListColumnTextSettingKey as l, COLUMN_TEXT_PREFIXES as kt, COLUMN_CONTENT_KEYS as B, normalizeListColumnVerticalAlign as zt, CUT_LABEL_TEXT_PREFIX as D, COLUMN_VALIGN_BASIC_OPTIONS as q } from "./List-Bh_-l9vD.mjs";
|
|
11
|
-
import { FAQ as Et } from "./FAQ-
|
|
12
|
-
import { STRIP_TEXT_STYLE_PREFIXES as H, createStripTextStylePanelTab as Bt, LightboxStrip as Dt, getStripTextStyleSettingKey as p } from "./LightboxStrip-
|
|
13
|
-
import { LightboxJournal as _t } from "./LightboxJournal-
|
|
11
|
+
import { FAQ as Et } from "./FAQ-GmiwRdFq.mjs";
|
|
12
|
+
import { STRIP_TEXT_STYLE_PREFIXES as H, createStripTextStylePanelTab as Bt, LightboxStrip as Dt, getStripTextStyleSettingKey as p } from "./LightboxStrip-BrNj7ipX.mjs";
|
|
13
|
+
import { LightboxJournal as _t } from "./LightboxJournal-C_q7_s-B.mjs";
|
|
14
14
|
import { ClickGallerie as jt } from "./ClickGallerie-Cjc_1Gxy.mjs";
|
|
15
15
|
import { Scale as Rt } from "./Scale-TnkWtRrs.mjs";
|
|
16
|
-
import { SimpleButton as Gt } from "./SimpleButton-
|
|
17
|
-
import { Waterfall as Nt } from "./Waterfall-
|
|
18
|
-
import { Slider20 as Qt } from "./Slider20-
|
|
19
|
-
import { Mercury as Xt } from "./Mercury-
|
|
16
|
+
import { SimpleButton as Gt } from "./SimpleButton-DTpzfmb6.mjs";
|
|
17
|
+
import { Waterfall as Nt } from "./Waterfall-znaoynn5.mjs";
|
|
18
|
+
import { Slider20 as Qt } from "./Slider20-CKngROrc.mjs";
|
|
19
|
+
import { Mercury as Xt } from "./Mercury-Q788wrYQ.mjs";
|
|
20
20
|
import { Helix as Ot } from "./Helix-CidI3ucE.mjs";
|
|
21
|
-
import { Burger as Vt, isBurgerOpenMenuAvailable as $t } from "./Burger-
|
|
21
|
+
import { Burger as Vt, isBurgerOpenMenuAvailable as $t } from "./Burger-DyORh_vF.mjs";
|
|
22
22
|
import { settingsForEditablePreset as gt, SHAPE_IDS as ut, Pretext as qt } from "./Pretext-10CcyP1E.mjs";
|
|
23
23
|
import { CHRONICLES_COLUMN_STYLE_PREFIXES as _, CHRONICLES_PANEL_POSITIONS as Kt, applyChroniclesColumnCountChange as Yt, Chronicles as Jt, getChroniclesEqualColumnWidths as Zt, CHRONICLES_COLUMN_WIDTH_KEYS as Ut, CHRONICLES_EXTRA_TITLE_KEYS as J } from "./Chronicles-Cy2h3jlZ.mjs";
|
|
24
24
|
const te = [
|
|
@@ -5447,12 +5447,13 @@ const lt = {
|
|
|
5447
5447
|
},
|
|
5448
5448
|
settings: {
|
|
5449
5449
|
sizing: "auto",
|
|
5450
|
+
hideOpacityParameter: !0,
|
|
5450
5451
|
properties: {
|
|
5451
5452
|
wrapperWidth: {
|
|
5452
5453
|
type: "number",
|
|
5453
5454
|
scope: "layout",
|
|
5454
5455
|
title: "Width",
|
|
5455
|
-
display: { type: "numeric-input"
|
|
5456
|
+
display: { type: "numeric-input" },
|
|
5456
5457
|
min: 0,
|
|
5457
5458
|
max: 9999
|
|
5458
5459
|
},
|
|
@@ -5478,12 +5479,6 @@ const lt = {
|
|
|
5478
5479
|
title: "Style",
|
|
5479
5480
|
display: { type: "toggle-cycle", enum: ["solid", "dashed", "dotted"] }
|
|
5480
5481
|
},
|
|
5481
|
-
entryHoverEffect: {
|
|
5482
|
-
type: "string",
|
|
5483
|
-
scope: "common",
|
|
5484
|
-
title: "Effect",
|
|
5485
|
-
display: { type: "toggle-cycle", enum: ["none", "default"] }
|
|
5486
|
-
},
|
|
5487
5482
|
autoclose: {
|
|
5488
5483
|
type: "string",
|
|
5489
5484
|
scope: "common",
|
|
@@ -5652,7 +5647,6 @@ const lt = {
|
|
|
5652
5647
|
},
|
|
5653
5648
|
defaults: {
|
|
5654
5649
|
dividerStyle: "dotted",
|
|
5655
|
-
entryHoverEffect: "default",
|
|
5656
5650
|
autoclose: "off",
|
|
5657
5651
|
icon: "01M3QM74XGFBPMXNEQB1BXSD9E",
|
|
5658
5652
|
iconAnimation: "rotate 45",
|
|
@@ -5754,7 +5748,6 @@ const lt = {
|
|
|
5754
5748
|
"cellMinHeight",
|
|
5755
5749
|
"dividerWidth",
|
|
5756
5750
|
"dividerStyle",
|
|
5757
|
-
"entryHoverEffect",
|
|
5758
5751
|
"autoclose",
|
|
5759
5752
|
"icon",
|
|
5760
5753
|
"iconMaxWidth",
|
|
@@ -5770,7 +5763,7 @@ const lt = {
|
|
|
5770
5763
|
layout: [
|
|
5771
5764
|
"__componentName__",
|
|
5772
5765
|
{ type: "row", title: "", items: ["wrapperWidth", "cellMinHeight"] },
|
|
5773
|
-
{ type: "row", title: "", items: ["
|
|
5766
|
+
{ type: "row", title: "", items: ["autoclose"] },
|
|
5774
5767
|
{ type: "row", title: "Divider", items: ["dividerWidth", "dividerStyle"] },
|
|
5775
5768
|
{ type: "row", title: "Icon", items: ["icon", "iconMaxWidth"] },
|
|
5776
5769
|
{ type: "row", title: "", items: ["iconAnimation"] }
|
|
@@ -0,0 +1,70 @@
|
|
|
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 {};
|