@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.
Files changed (64) hide show
  1. package/dist/{Burger-C3yVbQcq.js → Burger-B4kXX9aY.js} +1 -1
  2. package/dist/{Burger-BkVgNMGU.mjs → Burger-DyORh_vF.mjs} +1 -1
  3. package/dist/ChroniclesComponent-BHZu7BbK.js +1 -0
  4. package/dist/{ChroniclesComponent-Cu34ANdc.mjs → ChroniclesComponent-DRf1Xd9_.mjs} +15 -22
  5. package/dist/Components/FAQ/FAQ.d.ts +0 -1
  6. package/dist/Components/PopupMenu/PopupMenu.d.ts +70 -0
  7. package/dist/Components/PopupMenu/PopupMenuComponent.d.ts +597 -0
  8. package/dist/Components/PopupMenu/popupMenuLayout.d.ts +176 -0
  9. package/dist/Components/helpers/SvgImage/loadSvgMaskUrl.d.ts +7 -0
  10. package/dist/{ControlSlider-DqKfaKMG.mjs → ControlSlider-3w-bHQEg.mjs} +1 -1
  11. package/dist/{ControlSlider-C8ckUIDm.js → ControlSlider-DB4nbVLT.js} +1 -1
  12. package/dist/FAQ-7HEkaoU6.js +166 -0
  13. package/dist/{FAQ-BS-vO0l-.mjs → FAQ-GmiwRdFq.mjs} +77 -78
  14. package/dist/{Grid-CU1dsdoO.js → Grid-BXUT_Hn6.js} +1 -1
  15. package/dist/{Grid-qbqchSLi.mjs → Grid-Dn44dvgx.mjs} +1 -1
  16. package/dist/{Hive-CzabuuCc.js → Hive-34KvKNsa.js} +1 -1
  17. package/dist/{Hive-DyxYd5eg.mjs → Hive-7xHXyMM1.mjs} +1 -1
  18. package/dist/{HiveLightboxTitles-DhEeFKWs.mjs → HiveLightboxTitles-BCoL46-V.mjs} +1 -1
  19. package/dist/{HiveLightboxTitles-DlyptAaK.js → HiveLightboxTitles-DEeyQGcf.js} +1 -1
  20. package/dist/{Lightbox-DZckgBzK.js → Lightbox-Cb7lyaNt.js} +1 -1
  21. package/dist/{Lightbox-BY99NS14.mjs → Lightbox-DzPqgKP4.mjs} +1 -1
  22. package/dist/{LightboxJournal-DAEZOPDi.js → LightboxJournal-BFF5aKRz.js} +1 -1
  23. package/dist/{LightboxJournal-D59ex6wH.mjs → LightboxJournal-C_q7_s-B.mjs} +1 -1
  24. package/dist/{LightboxStrip-YspzBP8N.mjs → LightboxStrip-BrNj7ipX.mjs} +1 -1
  25. package/dist/{LightboxStrip-BDjI1jyH.js → LightboxStrip-CC2e0_9A.js} +1 -1
  26. package/dist/{Mercury-B-s2Kvuq.js → Mercury-BmhtFYOw.js} +1 -1
  27. package/dist/{Mercury-CCW0Es-s.mjs → Mercury-Q788wrYQ.mjs} +1 -1
  28. package/dist/{OnelinerForm-C2Y_XMCY.js → OnelinerForm-CUmY-bXL.js} +1 -1
  29. package/dist/{OnelinerForm-BEu7_sho.mjs → OnelinerForm-D8WIB9Qy.mjs} +1 -1
  30. package/dist/PopupMenu-On4dKyT3.js +369 -0
  31. package/dist/PopupMenu-RPz8MN6s.mjs +1026 -0
  32. package/dist/{SimpleButton-C-o2W9bS.mjs → SimpleButton-DTpzfmb6.mjs} +1 -1
  33. package/dist/{SimpleButton-nGEcO2gB.js → SimpleButton-DtaCYa3y.js} +1 -1
  34. package/dist/{Slider20-DUi6qwnd.mjs → Slider20-CKngROrc.mjs} +1 -1
  35. package/dist/{Slider20-BOmjDRf2.js → Slider20-q0iGgnE3.js} +1 -1
  36. package/dist/SvgImage-CwRq9-ec.mjs +56 -0
  37. package/dist/SvgImage-_QN8ngad.js +1 -0
  38. package/dist/{TestimonialSingle-DrnyReim.mjs → TestimonialSingle-Bax71Hyo.mjs} +1 -1
  39. package/dist/{TestimonialSingle-BORQom3u.js → TestimonialSingle-CpEUendN.js} +1 -1
  40. package/dist/{Waterfall-DII4-WV5.js → Waterfall-B9YWMhrg.js} +1 -1
  41. package/dist/{Waterfall-3kKioKh2.mjs → Waterfall-znaoynn5.mjs} +1 -1
  42. package/dist/components-DScrkzXw.js +1 -0
  43. package/dist/{components-CBovHrnR.mjs → components-y6LC2ILa.mjs} +652 -29
  44. package/dist/elements.js +1 -1
  45. package/dist/elements.mjs +23 -22
  46. package/dist/elements.node.js +1 -1
  47. package/dist/elements.node.mjs +1 -1
  48. package/dist/index.d.ts +3 -1
  49. package/dist/index.js +1 -1
  50. package/dist/index.mjs +48 -27
  51. package/dist/loadSvgMaskUrl-B6kHUyof.js +1 -0
  52. package/dist/loadSvgMaskUrl-DUhCVvpl.mjs +39 -0
  53. package/dist/sources.js +2 -6
  54. package/dist/sources.mjs +2 -6
  55. package/dist/types/Component.d.ts +7 -0
  56. package/dist/types/SchemaV1.d.ts +4 -0
  57. package/package.json +1 -1
  58. package/dist/ChroniclesComponent-D7ICTnJp.js +0 -1
  59. package/dist/FAQ-Ct0YfqX1.js +0 -166
  60. package/dist/SvgImage-B5mR9y6q.mjs +0 -51
  61. package/dist/SvgImage-DFlmxAoL.js +0 -1
  62. package/dist/components-Nib9fOfN.js +0 -1
  63. package/dist/loadSvgMaskUrl-DfF7ay6h.js +0 -1
  64. 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-BEu7_sho.mjs";
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-DrnyReim.mjs";
7
- import { Grid as wt } from "./Grid-qbqchSLi.mjs";
8
- import { Hive as Ht } from "./Hive-DyxYd5eg.mjs";
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-BS-vO0l-.mjs";
12
- import { STRIP_TEXT_STYLE_PREFIXES as H, createStripTextStylePanelTab as Bt, LightboxStrip as Dt, getStripTextStyleSettingKey as p } from "./LightboxStrip-YspzBP8N.mjs";
13
- import { LightboxJournal as _t } from "./LightboxJournal-D59ex6wH.mjs";
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-C-o2W9bS.mjs";
17
- import { Waterfall as Nt } from "./Waterfall-3kKioKh2.mjs";
18
- import { Slider20 as Qt } from "./Slider20-DUi6qwnd.mjs";
19
- import { Mercury as Xt } from "./Mercury-CCW0Es-s.mjs";
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-BkVgNMGU.mjs";
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", omitInContentBased: !0 },
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: ["entryHoverEffect", "autoclose"] },
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"] }
@@ -9,7 +9,6 @@ type FAQSettings = {
9
9
  cellMinHeight?: number;
10
10
  dividerWidth?: number;
11
11
  dividerStyle?: 'solid' | 'dashed' | 'dotted';
12
- entryHoverEffect?: 'none' | 'default';
13
12
  autoclose?: 'on' | 'off';
14
13
  icon?: string | null;
15
14
  iconMaxWidth?: number;
@@ -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 {};