@cntrl-site/components 1.0.109 → 1.0.111-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.
@@ -6,7 +6,7 @@ import { TestimonialGrid as Mt } from "./TestimonialGrid-C-8IDzWu.mjs";
6
6
  import { TestimonialSingle as Lt } from "./TestimonialSingle-DrnyReim.mjs";
7
7
  import { Grid as wt } from "./Grid-qbqchSLi.mjs";
8
8
  import { Hive as Ht } from "./Hive-DyxYd5eg.mjs";
9
- import { J as v, w as i, x as ct, y as yt, z as Wt } from "./utils-FxC9rcxw.mjs";
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
11
  import { FAQ as Et } from "./FAQ-BS-vO0l-.mjs";
12
12
  import { STRIP_TEXT_STYLE_PREFIXES as H, createStripTextStylePanelTab as Bt, LightboxStrip as Dt, getStripTextStyleSettingKey as p } from "./LightboxStrip-YspzBP8N.mjs";
@@ -19,8 +19,8 @@ import { Slider20 as Qt } from "./Slider20-DUi6qwnd.mjs";
19
19
  import { Mercury as Xt } from "./Mercury-CCW0Es-s.mjs";
20
20
  import { Helix as Ot } from "./Helix-CidI3ucE.mjs";
21
21
  import { Burger as Vt, isBurgerOpenMenuAvailable as $t } from "./Burger-BkVgNMGU.mjs";
22
- import { settingsForEditablePreset as mt, SHAPE_IDS as gt, Pretext as qt } from "./Pretext-10CcyP1E.mjs";
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 ut } from "./Chronicles-Clc3aiGG.mjs";
22
+ import { settingsForEditablePreset as gt, SHAPE_IDS as ut, Pretext as qt } from "./Pretext-10CcyP1E.mjs";
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 = [
25
25
  { name: "name", type: "text", placeholder: "Enter your name", label: "Name", isRequired: !1, error: "Please, enter your name." },
26
26
  { name: "email", type: "email", placeholder: "Enter your email", label: "Email", isRequired: !0, error: "Please, enter a valid e-mail." },
@@ -1805,7 +1805,7 @@ const te = [
1805
1805
  fontRelations: {
1806
1806
  textFontSettings: "textFontFamily"
1807
1807
  }
1808
- }, tt = {
1808
+ }, et = {
1809
1809
  fontSettings: {
1810
1810
  type: "object",
1811
1811
  scope: "common",
@@ -1952,7 +1952,7 @@ const te = [
1952
1952
  display: { type: "font-family-select" }
1953
1953
  },
1954
1954
  captionFontSettings: {
1955
- ...tt.fontSettings,
1955
+ ...et.fontSettings,
1956
1956
  scope: "common",
1957
1957
  title: "",
1958
1958
  display: { type: "font-settings-weight" }
@@ -1994,7 +1994,7 @@ const te = [
1994
1994
  display: { type: "font-family-select" }
1995
1995
  },
1996
1996
  textFontSettings: {
1997
- ...tt.fontSettings,
1997
+ ...et.fontSettings,
1998
1998
  scope: "common",
1999
1999
  title: "",
2000
2000
  display: { type: "font-settings-weight" }
@@ -2307,7 +2307,7 @@ const te = [
2307
2307
  textFontSettings: "textFontFamily",
2308
2308
  captionFontSettings: "captionFontFamily"
2309
2309
  }
2310
- }, ye = "01M46GNEM3GEJ4HQSNJYYTA45T", et = {
2310
+ }, ye = "01M46GNEM3GEJ4HQSNJYYTA45T", it = {
2311
2311
  fontSettings: {
2312
2312
  type: "object",
2313
2313
  scope: "common",
@@ -2433,7 +2433,7 @@ const te = [
2433
2433
  display: { type: "font-family-select" }
2434
2434
  },
2435
2435
  captionFontSettings: {
2436
- ...et.fontSettings,
2436
+ ...it.fontSettings,
2437
2437
  scope: "common",
2438
2438
  title: "",
2439
2439
  display: { type: "font-settings-weight" }
@@ -2481,7 +2481,7 @@ const te = [
2481
2481
  display: { type: "font-family-select" }
2482
2482
  },
2483
2483
  textFontSettings: {
2484
- ...et.fontSettings,
2484
+ ...it.fontSettings,
2485
2485
  scope: "common",
2486
2486
  title: "",
2487
2487
  display: { type: "font-settings-weight" }
@@ -3819,8 +3819,8 @@ const xe = {
3819
3819
  id: "journalTextStyle",
3820
3820
  tabs: Object.fromEntries(
3821
3821
  F.map((t) => [
3822
- ct[t],
3823
- yt(t)
3822
+ yt[t],
3823
+ mt(t)
3824
3824
  ])
3825
3825
  )
3826
3826
  }, ve = {
@@ -4459,7 +4459,7 @@ const xe = {
4459
4459
  }), {})
4460
4460
  },
4461
4461
  schema: Me
4462
- }, T = ["A", "B", "C", "D", "E"], it = [
4462
+ }, T = ["A", "B", "C", "D", "E"], ot = [
4463
4463
  ...q,
4464
4464
  "Baseline A",
4465
4465
  "Baseline B",
@@ -4544,7 +4544,7 @@ function We() {
4544
4544
  t[`${e}ColumnWidth`] = I(`${e} column width`), t[`${e}ColumnPaddingLeft`] = I(`${e} column padding left`), t[`${e}ColumnPaddingRight`] = I(`${e} column padding right`), t[`${e}ColumnPaddingBottom`] = I(`${e} column padding bottom`);
4545
4545
  return t;
4546
4546
  }
4547
- function ot(t = {}) {
4547
+ function nt(t = {}) {
4548
4548
  const { typeBDefaults: e, ...o } = t, n = {
4549
4549
  wrapperWidth: 1,
4550
4550
  columnsOrder: [...B]
@@ -4577,11 +4577,11 @@ function Ie(t) {
4577
4577
  display: {
4578
4578
  type: "drop-down",
4579
4579
  label: "Vertical alignment",
4580
- enum: [...it],
4580
+ enum: [...ot],
4581
4581
  filterBaselineByTopAnchor: !0,
4582
4582
  columnLetter: o
4583
4583
  },
4584
- enum: [...it]
4584
+ enum: [...ot]
4585
4585
  };
4586
4586
  }
4587
4587
  return e[l(t, "textFontFamily")] = {
@@ -4659,12 +4659,12 @@ function ke(t, e = {}) {
4659
4659
  ...(o = e.byPrefix) == null ? void 0 : o[t]
4660
4660
  };
4661
4661
  }
4662
- const nt = /* @__PURE__ */ new Set([
4662
+ const at = /* @__PURE__ */ new Set([
4663
4663
  "textFontFamily",
4664
4664
  "textFontSettings"
4665
4665
  ]);
4666
4666
  function ze(t, e, o) {
4667
- const n = (s) => o === void 0 ? !0 : o === "common" ? nt.has(s) : !nt.has(s), a = {};
4667
+ const n = (s) => o === void 0 ? !0 : o === "common" ? at.has(s) : !at.has(s), a = {};
4668
4668
  return n("verticalAlign") && e.verticalAlign !== void 0 && (a[`${t}VerticalAlign`] = zt(e.verticalAlign)), n("textFontFamily") && e.textFontFamily !== void 0 && (a[l(t, "textFontFamily")] = e.textFontFamily), n("textFontSettings") && e.textFontSettings !== void 0 && (a[l(t, "textFontSettings")] = e.textFontSettings), n("textFontSize") && e.textFontSize !== void 0 && (a[l(t, "textFontSize")] = e.textFontSize), n("textLineHeight") && e.textLineHeight !== void 0 && (a[l(t, "textLineHeight")] = e.textLineHeight), n("textLetterSpacing") && e.textLetterSpacing !== void 0 && (a[l(t, "textLetterSpacing")] = e.textLetterSpacing), n("textWordSpacing") && e.textWordSpacing !== void 0 && (a[l(t, "textWordSpacing")] = e.textWordSpacing), n("textTextAlign") && e.textTextAlign !== void 0 && (a[l(t, "textTextAlign")] = e.textTextAlign), n("textTextAppearance") && e.textTextAppearance !== void 0 && (a[l(t, "textTextAppearance")] = e.textTextAppearance), a;
4669
4669
  }
4670
4670
  function z(t = {}, e) {
@@ -4697,17 +4697,17 @@ function De() {
4697
4697
  for (let s = 1; s < B.length; s += 1) {
4698
4698
  const St = [
4699
4699
  { name: "columns", value: s },
4700
- ...Array.from({ length: s }, (U, xt) => ({
4700
+ ...Array.from({ length: s }, (tt, xt) => ({
4701
4701
  name: `columnsOrder.${xt}`,
4702
4702
  value: n,
4703
4703
  isNotEqual: !0
4704
4704
  }))
4705
4705
  ];
4706
- a.forEach((U) => {
4706
+ a.forEach((tt) => {
4707
4707
  t.push({
4708
4708
  if: St,
4709
4709
  then: {
4710
- name: `properties.${U}.display.visible`,
4710
+ name: `properties.${tt}.display.visible`,
4711
4711
  value: !1
4712
4712
  }
4713
4713
  });
@@ -5108,7 +5108,7 @@ const je = [
5108
5108
  dividerHoverColor: "#000000"
5109
5109
  },
5110
5110
  layoutDefaults: {
5111
- m: ot({
5111
+ m: nt({
5112
5112
  columns: 3,
5113
5113
  type: "b",
5114
5114
  textPaddingLR: 0.0373,
@@ -5145,7 +5145,7 @@ const je = [
5145
5145
  }
5146
5146
  }, "layout")
5147
5147
  }),
5148
- d: ot({
5148
+ d: nt({
5149
5149
  columns: 4,
5150
5150
  type: "a",
5151
5151
  textPaddingLR: 0.01,
@@ -5333,7 +5333,7 @@ function y(t) {
5333
5333
  display: { type: "range-control" }
5334
5334
  };
5335
5335
  }
5336
- const at = {
5336
+ const lt = {
5337
5337
  fontSettings: {
5338
5338
  type: "object",
5339
5339
  display: { type: "font-settings-weight" },
@@ -5565,7 +5565,7 @@ const at = {
5565
5565
  display: { type: "font-family-select" }
5566
5566
  },
5567
5567
  questionFontSettings: {
5568
- ...at.fontSettings,
5568
+ ...lt.fontSettings,
5569
5569
  scope: "common",
5570
5570
  title: "",
5571
5571
  display: { type: "font-settings-weight" }
@@ -5607,7 +5607,7 @@ const at = {
5607
5607
  display: { type: "font-family-select" }
5608
5608
  },
5609
5609
  answerFontSettings: {
5610
- ...at.fontSettings,
5610
+ ...lt.fontSettings,
5611
5611
  scope: "common",
5612
5612
  title: "",
5613
5613
  display: { type: "font-settings-weight" }
@@ -8307,8 +8307,8 @@ const mi = {
8307
8307
  id: "journalTextStyle",
8308
8308
  tabs: Object.fromEntries(
8309
8309
  C.map((t) => [
8310
- ct[t],
8311
- yt(t)
8310
+ yt[t],
8311
+ mt(t)
8312
8312
  ])
8313
8313
  )
8314
8314
  }, P = {
@@ -10476,7 +10476,7 @@ const x = {
10476
10476
  function g(t, e) {
10477
10477
  return t ? `${t}${e.charAt(0).toUpperCase()}${e.slice(1)}` : e;
10478
10478
  }
10479
- function J(t) {
10479
+ function Z(t) {
10480
10480
  return {
10481
10481
  [g(t, "fontFamily")]: {
10482
10482
  type: "string",
@@ -10521,7 +10521,7 @@ function J(t) {
10521
10521
  }
10522
10522
  };
10523
10523
  }
10524
- const xi = J(""), vi = J("open"), Fi = J("compact"), Ci = [
10524
+ const xi = Z(""), vi = Z("open"), Fi = Z("compact"), Ci = [
10525
10525
  "__componentName__",
10526
10526
  { type: "row", items: ["panelHeight", "navTextWidth"] },
10527
10527
  { type: "row", title: "", items: ["navTextPosition", "navTextOffset"] },
@@ -11402,7 +11402,7 @@ const xi = J(""), vi = J("open"), Fi = J("compact"), Ci = [
11402
11402
  getPanelAvailabilityContext: (t, e) => ({
11403
11403
  openMenu: $t(t.link, e) ? "on" : "off"
11404
11404
  })
11405
- }, lt = [...gt], Wi = {
11405
+ }, pt = [...ut], Wi = {
11406
11406
  fontSettings: {
11407
11407
  type: "object",
11408
11408
  display: { type: "font-settings-weight" },
@@ -11423,9 +11423,9 @@ const xi = J(""), vi = J("open"), Fi = J("compact"), Ci = [
11423
11423
  display: {
11424
11424
  type: "shape-select",
11425
11425
  isFilled: !0,
11426
- enum: lt
11426
+ enum: pt
11427
11427
  },
11428
- enum: lt
11428
+ enum: pt
11429
11429
  },
11430
11430
  customPath: {
11431
11431
  type: "string",
@@ -11598,7 +11598,7 @@ const xi = J(""), vi = J("open"), Fi = J("compact"), Ci = [
11598
11598
  }
11599
11599
  },
11600
11600
  defaults: {
11601
- ...mt("circle"),
11601
+ ...gt("circle"),
11602
11602
  pathSnap: 0,
11603
11603
  shapeMode: "A",
11604
11604
  fitText: "off",
@@ -11767,9 +11767,9 @@ const xi = J(""), vi = J("open"), Fi = J("compact"), Ci = [
11767
11767
  version: 1,
11768
11768
  normalizeLayoutSettingsUpdate: (t, e) => {
11769
11769
  const o = t.shape;
11770
- return typeof o != "string" || o === "custom" || gt.indexOf(o) === -1 || (e == null ? void 0 : e.shape) === o ? t : {
11770
+ return typeof o != "string" || o === "custom" || ut.indexOf(o) === -1 || (e == null ? void 0 : e.shape) === o ? t : {
11771
11771
  ...t,
11772
- ...mt(o)
11772
+ ...gt(o)
11773
11773
  };
11774
11774
  },
11775
11775
  defaultSize: {
@@ -11805,7 +11805,7 @@ const xi = J(""), vi = J("open"), Fi = J("compact"), Ci = [
11805
11805
  }, K = 1, V = 2, ht = 5, Y = ["trigger", ..._], bt = 2, ft = Array.from(
11806
11806
  { length: ht - K },
11807
11807
  (t, e) => K + e
11808
- ), pt = [
11808
+ ), rt = [
11809
11809
  "01M3QM74XESYN1HRYH9VRTZ5CK",
11810
11810
  "01M3QM74XEVZ9F59FC7M9BA63Q",
11811
11811
  "01M3QM74XEE2101QD8PM6E4JSA",
@@ -11822,13 +11822,15 @@ const xi = J(""), vi = J("open"), Fi = J("compact"), Ci = [
11822
11822
  ], Ai = Pi.map(([t, e], o) => ({
11823
11823
  group: t,
11824
11824
  title: e,
11825
+ // every column a row can show, in the schema's order, so the content panel draws a field for each
11826
+ ...Object.fromEntries(J.map((n) => [n, ""])),
11825
11827
  link: { type: "url", value: "", target: "self" },
11826
11828
  image: [o, o + 1].map((n) => ({
11827
- assetId: pt[n % pt.length],
11829
+ assetId: rt[n % rt.length],
11828
11830
  name: "",
11829
11831
  objectFit: "cover"
11830
11832
  }))
11831
- })), rt = {
11833
+ })), st = {
11832
11834
  textTransform: "none",
11833
11835
  textDecoration: "none",
11834
11836
  fontVariant: "normal"
@@ -11851,7 +11853,7 @@ function u(t) {
11851
11853
  display: { type: "palette-color-picker" }
11852
11854
  };
11853
11855
  }
11854
- function Z(t) {
11856
+ function U(t) {
11855
11857
  return {
11856
11858
  [`${t}FontFamily`]: {
11857
11859
  type: "string",
@@ -11915,7 +11917,7 @@ function Z(t) {
11915
11917
  }
11916
11918
  };
11917
11919
  }
11918
- function st(t) {
11920
+ function ct(t) {
11919
11921
  return [
11920
11922
  `${t}FontFamily`,
11921
11923
  `${t}FontSettings`,
@@ -11932,9 +11934,9 @@ function $(t) {
11932
11934
  }
11933
11935
  const ki = Object.assign(
11934
11936
  {},
11935
- ...Y.map(Z)
11937
+ ...Y.map(U)
11936
11938
  ), zi = Object.fromEntries(
11937
- ut.map((t, e) => [t, {
11939
+ J.map((t, e) => [t, {
11938
11940
  type: "string",
11939
11941
  label: `Column ${e + bt + 1}`,
11940
11942
  placeholder: "Add text...",
@@ -11944,11 +11946,11 @@ const ki = Object.assign(
11944
11946
  Ut.map((t, e) => [t, w(`Column ${e + 1} Width`)])
11945
11947
  ), Bi = [
11946
11948
  { if: { name: "columns", value: 1 }, then: { name: "title", value: !1 } },
11947
- ...ft.flatMap((t) => ut.slice(Math.max(0, t - bt)).map((e) => ({
11949
+ ...ft.flatMap((t) => J.slice(Math.max(0, t - bt)).map((e) => ({
11948
11950
  if: { name: "columns", value: t },
11949
11951
  then: { name: e, value: !1 }
11950
11952
  })))
11951
- ], Di = ft.flatMap((t) => _.slice(t).flatMap((e) => Object.keys(Z(e)).map((o) => ({
11953
+ ], Di = ft.flatMap((t) => _.slice(t).flatMap((e) => Object.keys(U(e)).map((o) => ({
11952
11954
  if: { name: "columns", value: t },
11953
11955
  then: { name: `properties.${o}.display.visible`, value: !1 }
11954
11956
  })))), _i = [
@@ -11960,7 +11962,7 @@ const ki = Object.assign(
11960
11962
  "closeHoverColor",
11961
11963
  "overlayColor",
11962
11964
  "panelPosition",
11963
- ...Object.keys(Z("trigger"))
11965
+ ...Object.keys(U("trigger"))
11964
11966
  ], ji = {
11965
11967
  type: "object",
11966
11968
  version: 1,
@@ -12093,14 +12095,14 @@ const ki = Object.assign(
12093
12095
  triggerFontSettings: { fontWeight: 400, fontStyle: "normal" },
12094
12096
  triggerLetterSpacing: 0,
12095
12097
  triggerWordSpacing: 0,
12096
- triggerTextAppearance: { ...rt, textTransform: "uppercase" },
12098
+ triggerTextAppearance: { ...st, textTransform: "uppercase" },
12097
12099
  ...k({
12098
12100
  FontFamily: "Goudy Bookletter 1911",
12099
12101
  FontSettings: { fontWeight: 400, fontStyle: "normal" },
12100
12102
  LetterSpacing: 0,
12101
12103
  WordSpacing: 0,
12102
12104
  TextAlign: "left",
12103
- TextAppearance: rt
12105
+ TextAppearance: st
12104
12106
  })
12105
12107
  },
12106
12108
  layoutDefaults: {
@@ -12179,10 +12181,10 @@ const ki = Object.assign(
12179
12181
  type: "tab",
12180
12182
  id: "chroniclesTextStyle",
12181
12183
  tabs: {
12182
- Label: st("trigger"),
12184
+ Label: ct("trigger"),
12183
12185
  ...Object.fromEntries(_.map((t, e) => [
12184
12186
  String(e + 1),
12185
- st(t)
12187
+ ct(t)
12186
12188
  ]))
12187
12189
  }
12188
12190
  }
@@ -12200,15 +12202,9 @@ const ki = Object.assign(
12200
12202
  "textHoverColor",
12201
12203
  "overlayColor"
12202
12204
  ],
12203
- panelIds: ["default", "open"],
12204
- stateItems: {
12205
- default: ["triggerColor"],
12206
- hover: ["triggerHoverColor"],
12207
- open: ["closeColor", "closeHoverColor", "panelColor", "textColor", "textHoverColor", "overlayColor"]
12208
- }
12205
+ panelIds: ["open"]
12209
12206
  },
12210
- states: ["default", "hover"],
12211
- statePanels: ["default", "open"]
12207
+ statePanels: ["open"]
12212
12208
  }, Po = {
12213
12209
  element: Jt,
12214
12210
  id: "chronicles",
@@ -112,10 +112,9 @@ type ChroniclesProps = {
112
112
  isEditor?: boolean;
113
113
  isEditMode?: boolean;
114
114
  isPreviewMode?: boolean;
115
- activeEvent?: string;
116
115
  portalId?: string;
117
116
  } & CommonComponentProps;
118
117
  export declare function getChroniclesEqualColumnWidths(settings: ColumnLayoutSettings): Partial<Record<ColumnWidthKey, number>>;
119
118
  export declare function applyChroniclesColumnCountChange(nextSettings: Record<string, any>, prevSettings: Record<string, any>): Record<string, any>;
120
- export declare function Chronicles({ settings, content, isEditor, isEditMode, isPreviewMode, activeEvent, portalId, currentState, unavailableStates, }: ChroniclesProps): import("react/jsx-runtime").JSX.Element;
119
+ export declare function Chronicles({ settings, content, isEditor, isEditMode, isPreviewMode, portalId, currentState, unavailableStates, }: ChroniclesProps): import("react/jsx-runtime").JSX.Element;
121
120
  export {};
@@ -77,8 +77,6 @@ export declare const ChroniclesComponent: {
77
77
  };
78
78
  };
79
79
  default: {
80
- group: string;
81
- title: string;
82
80
  link: {
83
81
  type: "url";
84
82
  value: string;
@@ -89,6 +87,8 @@ export declare const ChroniclesComponent: {
89
87
  name: string;
90
88
  objectFit: "cover";
91
89
  }[];
90
+ group: string;
91
+ title: string;
92
92
  }[];
93
93
  };
94
94
  settings: {
@@ -285,13 +285,7 @@ export declare const ChroniclesComponent: {
285
285
  paletteBookmark: {
286
286
  items: string[];
287
287
  panelIds: string[];
288
- stateItems: {
289
- default: string[];
290
- hover: string[];
291
- open: string[];
292
- };
293
288
  };
294
- states: string[];
295
289
  statePanels: string[];
296
290
  };
297
291
  assetsPaths: {
@@ -0,0 +1,57 @@
1
+ import { CommonComponentProps } from '../props';
2
+ import { PopupMenuBlockType, PopupMenuGridSettings, PopupMenuSidesSetting, PopupMenuLayout } from './popupMenuLayout';
3
+ export declare const POPUP_MENU_TRIGGER_TYPES: readonly ["burger", "plus", "image", "text"];
4
+ export type PopupMenuTriggerType = (typeof POPUP_MENU_TRIGGER_TYPES)[number];
5
+ type PopupMenuImage = {
6
+ assetId: string;
7
+ name?: string;
8
+ };
9
+ export type PopupMenuBlock = {
10
+ /** 'list' is from before lists had two styles, and reads as 'listA'. */
11
+ type?: PopupMenuBlockType | 'list';
12
+ title?: string;
13
+ text?: any[];
14
+ images?: PopupMenuImage[];
15
+ };
16
+ type PopupMenuColorKey = 'barBackgroundColor' | 'triggerColor' | 'overlayColor' | 'popupBackgroundColor' | 'titleColor' | 'textColor' | 'listAColor' | 'listBColor';
17
+ type PopupMenuSettings = PopupMenuGridSettings & {
18
+ menuLayout?: PopupMenuLayout | null;
19
+ /** None, as in a menu saved before there was a choice, is a text trigger. */
20
+ triggerType?: PopupMenuTriggerType;
21
+ triggerLabel?: string;
22
+ triggerIcon?: string | null;
23
+ triggerIconSize?: number;
24
+ triggerPosition?: 'left' | 'center' | 'right';
25
+ /** The room round the trigger's icon or text; a menu saved before it had one has none. */
26
+ triggerPadding?: PopupMenuSidesSetting;
27
+ popupHeight?: number;
28
+ popupInset?: PopupMenuSidesSetting;
29
+ popupPadding?: PopupMenuSidesSetting;
30
+ titleGap?: number;
31
+ popupRadius?: number;
32
+ imageRadius?: number;
33
+ barBackgroundColor?: string;
34
+ triggerColor?: string;
35
+ overlayColor?: string;
36
+ popupBackgroundColor?: string;
37
+ titleColor?: string;
38
+ textColor?: string;
39
+ listAColor?: string;
40
+ listBColor?: string;
41
+ /** Colours picked in a state's panel, by state, over the ones above. */
42
+ stateOverrides?: Record<string, Partial<Record<PopupMenuColorKey, string>>>;
43
+ [key: string]: unknown;
44
+ };
45
+ type PopupMenuProps = {
46
+ settings: PopupMenuSettings;
47
+ /** Given in the editor, the open popup's blocks can be dragged across its columns and down its height. */
48
+ onUpdateSettings?: (settings: PopupMenuSettings) => void;
49
+ content?: PopupMenuBlock[];
50
+ isEditor?: boolean;
51
+ isEditMode?: boolean;
52
+ isPreviewMode?: boolean;
53
+ layoutId?: string;
54
+ onOpenChange?: (isOpen: boolean) => void;
55
+ } & CommonComponentProps;
56
+ export declare function PopupMenu({ settings, content, isEditor, isEditMode, isPreviewMode, layoutId, currentState, unavailableStates, onOpenChange, onUpdateSettings, }: PopupMenuProps): import("react/jsx-runtime").JSX.Element;
57
+ export {};