@cntrl-site/components 1.0.112 → 1.0.113-alpha.1

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 (61) 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-FFenN7yL.js → ChroniclesComponent-B6L-8Gn2.js} +1 -1
  4. package/dist/{ChroniclesComponent-cZLqN307.mjs → ChroniclesComponent-adaAqTy8.mjs} +12 -12
  5. package/dist/Components/PopupMenu/PopupMenu.d.ts +70 -0
  6. package/dist/Components/PopupMenu/PopupMenuComponent.d.ts +597 -0
  7. package/dist/Components/PopupMenu/popupMenuLayout.d.ts +176 -0
  8. package/dist/Components/helpers/SvgImage/loadSvgMaskUrl.d.ts +7 -0
  9. package/dist/{ControlSlider-DqKfaKMG.mjs → ControlSlider-3w-bHQEg.mjs} +1 -1
  10. package/dist/{ControlSlider-C8ckUIDm.js → ControlSlider-DB4nbVLT.js} +1 -1
  11. package/dist/{FAQ-BS-vO0l-.mjs → FAQ-BjLLn81l.mjs} +1 -1
  12. package/dist/{FAQ-Ct0YfqX1.js → FAQ-C5evIqbl.js} +1 -1
  13. package/dist/{Grid-CU1dsdoO.js → Grid-BXUT_Hn6.js} +1 -1
  14. package/dist/{Grid-qbqchSLi.mjs → Grid-Dn44dvgx.mjs} +1 -1
  15. package/dist/{Hive-CzabuuCc.js → Hive-34KvKNsa.js} +1 -1
  16. package/dist/{Hive-DyxYd5eg.mjs → Hive-7xHXyMM1.mjs} +1 -1
  17. package/dist/{HiveLightboxTitles-DhEeFKWs.mjs → HiveLightboxTitles-BCoL46-V.mjs} +1 -1
  18. package/dist/{HiveLightboxTitles-DlyptAaK.js → HiveLightboxTitles-DEeyQGcf.js} +1 -1
  19. package/dist/{Lightbox-DZckgBzK.js → Lightbox-Cb7lyaNt.js} +1 -1
  20. package/dist/{Lightbox-BY99NS14.mjs → Lightbox-DzPqgKP4.mjs} +1 -1
  21. package/dist/{LightboxJournal-DAEZOPDi.js → LightboxJournal-BFF5aKRz.js} +1 -1
  22. package/dist/{LightboxJournal-D59ex6wH.mjs → LightboxJournal-C_q7_s-B.mjs} +1 -1
  23. package/dist/{LightboxStrip-YspzBP8N.mjs → LightboxStrip-BrNj7ipX.mjs} +1 -1
  24. package/dist/{LightboxStrip-BDjI1jyH.js → LightboxStrip-CC2e0_9A.js} +1 -1
  25. package/dist/{Mercury-B-s2Kvuq.js → Mercury-BmhtFYOw.js} +1 -1
  26. package/dist/{Mercury-CCW0Es-s.mjs → Mercury-Q788wrYQ.mjs} +1 -1
  27. package/dist/{OnelinerForm-C2Y_XMCY.js → OnelinerForm-CUmY-bXL.js} +1 -1
  28. package/dist/{OnelinerForm-BEu7_sho.mjs → OnelinerForm-D8WIB9Qy.mjs} +1 -1
  29. package/dist/PopupMenu-On4dKyT3.js +369 -0
  30. package/dist/PopupMenu-RPz8MN6s.mjs +1026 -0
  31. package/dist/{SimpleButton-C-o2W9bS.mjs → SimpleButton-DTpzfmb6.mjs} +1 -1
  32. package/dist/{SimpleButton-nGEcO2gB.js → SimpleButton-DtaCYa3y.js} +1 -1
  33. package/dist/{Slider20-DUi6qwnd.mjs → Slider20-CKngROrc.mjs} +1 -1
  34. package/dist/{Slider20-BOmjDRf2.js → Slider20-q0iGgnE3.js} +1 -1
  35. package/dist/SvgImage-CwRq9-ec.mjs +56 -0
  36. package/dist/SvgImage-_QN8ngad.js +1 -0
  37. package/dist/{TestimonialSingle-DrnyReim.mjs → TestimonialSingle-Bax71Hyo.mjs} +1 -1
  38. package/dist/{TestimonialSingle-BORQom3u.js → TestimonialSingle-CpEUendN.js} +1 -1
  39. package/dist/{Waterfall-DII4-WV5.js → Waterfall-B9YWMhrg.js} +1 -1
  40. package/dist/{Waterfall-3kKioKh2.mjs → Waterfall-znaoynn5.mjs} +1 -1
  41. package/dist/{components-DtO0Ti47.mjs → components-AFk1BYaV.mjs} +652 -29
  42. package/dist/components-Dcrw_wyy.js +1 -0
  43. package/dist/elements.js +1 -1
  44. package/dist/elements.mjs +23 -22
  45. package/dist/elements.node.js +1 -1
  46. package/dist/elements.node.mjs +1 -1
  47. package/dist/index.d.ts +3 -1
  48. package/dist/index.js +1 -1
  49. package/dist/index.mjs +48 -27
  50. package/dist/loadSvgMaskUrl-B6kHUyof.js +1 -0
  51. package/dist/loadSvgMaskUrl-DUhCVvpl.mjs +39 -0
  52. package/dist/sources.js +1 -1
  53. package/dist/sources.mjs +1 -1
  54. package/dist/types/Component.d.ts +7 -0
  55. package/dist/types/SchemaV1.d.ts +3 -0
  56. package/package.json +1 -1
  57. package/dist/SvgImage-B5mR9y6q.mjs +0 -51
  58. package/dist/SvgImage-DFlmxAoL.js +0 -1
  59. package/dist/components-f82884Bk.js +0 -1
  60. package/dist/loadSvgMaskUrl-DfF7ay6h.js +0 -1
  61. package/dist/loadSvgMaskUrl-xHgGYgPe.mjs +0 -20
@@ -1,9 +1,10 @@
1
- import { ControlSlider as e } from "./ControlSlider-DqKfaKMG.mjs";
2
- import { ImageRevealSlider as t } from "./ImageRevealSlider-DifEXySR.mjs";
3
- import { LightboxGallery as i } from "./Lightbox-BY99NS14.mjs";
4
- import { C as o, F as r, O as p, M as n, a as l, T as s, b as a, G as c, H as y, L as g, c as m, d, e as u, S as b, W as h, f, g as v, h as C, i as x, B as S, P as k, j as I } from "./ChroniclesComponent-cZLqN307.mjs";
5
- const j = {
6
- element: e,
1
+ import { ControlSlider as a } from "./ControlSlider-3w-bHQEg.mjs";
2
+ import { ImageRevealSlider as s } from "./ImageRevealSlider-DifEXySR.mjs";
3
+ import { LightboxGallery as c } from "./Lightbox-DzPqgKP4.mjs";
4
+ import { C as y, F as g, O as m, M as u, a as d, T as b, b as h, G as f, H as v, L as x, c as S, d as C, e as I, S as k, W as A, f as T, g as j, h as F, i as B, B as w, P as E, j as z } from "./ChroniclesComponent-adaAqTy8.mjs";
5
+ import { p as P, P as L, q as M, t as G } from "./PopupMenu-RPz8MN6s.mjs";
6
+ const O = {
7
+ element: a,
7
8
  id: "control-slider",
8
9
  name: "Slider",
9
10
  preview: {
@@ -615,8 +616,8 @@ const j = {
615
616
  },
616
617
  required: ["settings", "content", "styles"]
617
618
  }
618
- }, E = {
619
- element: t,
619
+ }, R = {
620
+ element: s,
620
621
  id: "control-image-reveal",
621
622
  name: "Click Gallery",
622
623
  preview: {
@@ -939,8 +940,8 @@ const j = {
939
940
  }
940
941
  }
941
942
  }
942
- }, A = {
943
- element: i,
943
+ }, H = {
944
+ element: c,
944
945
  id: "lightbox",
945
946
  name: "Lightbox",
946
947
  preview: {
@@ -2019,36 +2020,658 @@ const j = {
2019
2020
  },
2020
2021
  required: ["settings", "content", "styles"]
2021
2022
  }
2022
- }, F = [
2023
- j,
2024
- E,
2025
- o,
2026
- A,
2027
- r,
2028
- p,
2029
- n,
2030
- l,
2031
- s,
2032
- a,
2033
- c,
2023
+ };
2024
+ function i(e) {
2025
+ return {
2026
+ [`${e}FontFamily`]: {
2027
+ type: "string",
2028
+ scope: "common",
2029
+ title: "",
2030
+ display: { type: "font-family-select", hideLabel: !0, useTabDesign: !0 }
2031
+ },
2032
+ [`${e}FontSettings`]: {
2033
+ type: "object",
2034
+ scope: "common",
2035
+ title: "",
2036
+ display: { type: "font-settings-weight", hideLabel: !0, useTabDesign: !0 },
2037
+ properties: {
2038
+ fontWeight: { type: "number" },
2039
+ fontStyle: { type: "string" }
2040
+ }
2041
+ },
2042
+ [`${e}FontSize`]: {
2043
+ type: "number",
2044
+ scope: "layout",
2045
+ title: "",
2046
+ display: { type: "font-size" }
2047
+ },
2048
+ [`${e}LineHeight`]: {
2049
+ type: "number",
2050
+ scope: "layout",
2051
+ title: "",
2052
+ display: { type: "line-height-input" }
2053
+ },
2054
+ [`${e}LetterSpacing`]: {
2055
+ type: "number",
2056
+ scope: "layout",
2057
+ title: "",
2058
+ display: { type: "letter-spacing-input" }
2059
+ },
2060
+ [`${e}WordSpacing`]: {
2061
+ type: "number",
2062
+ scope: "layout",
2063
+ title: "",
2064
+ display: { type: "word-spacing-input" }
2065
+ },
2066
+ [`${e}TextAppearance`]: {
2067
+ type: "object",
2068
+ scope: "layout",
2069
+ title: "",
2070
+ display: { type: "text-appearance", useTabDesign: !0 },
2071
+ properties: {
2072
+ textTransform: { type: "string", enum: ["none", "uppercase", "lowercase", "capitalize"] },
2073
+ textDecoration: { type: "string", enum: ["none", "underline"] },
2074
+ fontVariant: { type: "string", enum: ["normal", "small-caps"] }
2075
+ }
2076
+ }
2077
+ };
2078
+ }
2079
+ function W(e) {
2080
+ return [
2081
+ `${e}FontFamily`,
2082
+ `${e}FontSettings`,
2083
+ { type: "row", items: [`${e}FontSize`, `${e}LineHeight`, `${e}LetterSpacing`, `${e}WordSpacing`] },
2084
+ `${e}TextAppearance`
2085
+ ];
2086
+ }
2087
+ const l = {
2088
+ trigger: "Trigger",
2089
+ title: "Title",
2090
+ text: "Text",
2091
+ listA: "List A",
2092
+ listB: "List B"
2093
+ }, D = {
2094
+ type: "tab",
2095
+ id: "popupMenuTextStyle",
2096
+ tabs: Object.fromEntries(
2097
+ Object.keys(l).map((e) => [l[e], W(e)])
2098
+ )
2099
+ };
2100
+ function o(e, t, n) {
2101
+ return {
2102
+ [`${e}FontSize`]: t,
2103
+ [`${e}LineHeight`]: n,
2104
+ [`${e}LetterSpacing`]: 0,
2105
+ [`${e}WordSpacing`]: 0,
2106
+ [`${e}TextAppearance`]: { textTransform: "none", textDecoration: "none", fontVariant: "normal" }
2107
+ };
2108
+ }
2109
+ function p(e, t) {
2110
+ return {
2111
+ ...o("trigger", t.trigger[0] / e, t.trigger[1] / e),
2112
+ ...o("title", t.title[0] / e, t.title[1] / e),
2113
+ ...o("text", t.text[0] / e, t.text[1] / e),
2114
+ ...o("listA", t.listA[0] / e, t.listA[1] / e),
2115
+ ...o("listB", t.listB[0] / e, t.listB[1] / e)
2116
+ };
2117
+ }
2118
+ const r = {
2119
+ fontWeight: 400,
2120
+ fontStyle: "normal"
2121
+ }, Q = [
2122
+ "barBackgroundColor",
2123
+ "triggerColor",
2124
+ "overlayColor",
2125
+ "popupBackgroundColor",
2126
+ "titleColor",
2127
+ "textColor",
2128
+ "listAColor",
2129
+ "listBColor"
2130
+ ], V = [
2131
+ ...["burger", "plus", "icon"].flatMap((e) => [
2132
+ { if: { name: "triggerType", value: e }, then: { name: "properties.triggerLabel.display.visible", value: !1 } },
2133
+ { if: { name: "triggerType", value: e }, then: { name: "properties.triggerIconSize.display.visible", value: !0 } }
2134
+ ]),
2135
+ { if: { name: "triggerType", value: "icon" }, then: { name: "properties.triggerIcon.display.visible", value: !0 } }
2136
+ ], X = {
2137
+ type: "object",
2138
+ version: 1,
2139
+ content: {
2140
+ type: "array",
2141
+ settings: {
2142
+ addItemWithoutImage: !0
2143
+ },
2144
+ display: {
2145
+ type: "array"
2146
+ },
2147
+ items: {
2148
+ type: "object",
2149
+ properties: {
2150
+ type: {
2151
+ type: "string",
2152
+ label: "Type",
2153
+ enum: ["text", "image", "listA", "listB"],
2154
+ default: "text",
2155
+ display: { type: "select-input" }
2156
+ },
2157
+ // a media item is its images alone, with no title or text, as a text or list item has no images
2158
+ title: {
2159
+ type: "string",
2160
+ label: "Title",
2161
+ placeholder: "Add Title...",
2162
+ display: { type: "text-input" },
2163
+ byRowType: { image: { display: { type: "text-input", visible: !1 } } }
2164
+ },
2165
+ text: {
2166
+ label: "Text",
2167
+ placeholder: "Add text...",
2168
+ display: { type: "rich-text" },
2169
+ byRowType: {
2170
+ // a list is still a paragraph per item, which the editor shows as an input per item
2171
+ ...Object.fromEntries(["listA", "listB", "list"].map((e) => [e, {
2172
+ placeholder: "Add item...",
2173
+ display: { type: "rich-text-list" }
2174
+ }])),
2175
+ image: { display: { type: "rich-text", visible: !1 } }
2176
+ }
2177
+ },
2178
+ images: {
2179
+ type: "object",
2180
+ label: "Images",
2181
+ display: { type: "media-list-input" },
2182
+ byRowType: Object.fromEntries(["text", "listA", "listB", "list"].map((e) => [e, {
2183
+ display: { type: "media-list-input", visible: !1 }
2184
+ }])),
2185
+ properties: {
2186
+ assetId: { type: "string" },
2187
+ name: { type: "string" },
2188
+ objectFit: { type: "string", enum: ["cover", "contain"] }
2189
+ },
2190
+ required: ["assetId", "name"]
2191
+ }
2192
+ }
2193
+ },
2194
+ default: [
2195
+ {
2196
+ type: "text",
2197
+ title: "About",
2198
+ text: [{ type: "paragraph", children: [{ text: "An independent studio for identity, type and the web. We work with people who care about the details." }] }],
2199
+ images: []
2200
+ },
2201
+ {
2202
+ type: "image",
2203
+ title: "",
2204
+ text: [],
2205
+ images: [{ assetId: "01M3QM74XEVZ9F59FC7M9BA63Q", name: "", objectFit: "cover" }]
2206
+ },
2207
+ {
2208
+ type: "listA",
2209
+ title: "Selected Work",
2210
+ text: ["Archive", "Identity", "Type", "Web"].map((e) => ({ type: "paragraph", children: [{ text: e }] })),
2211
+ images: []
2212
+ },
2213
+ {
2214
+ type: "listB",
2215
+ title: "Contact",
2216
+ text: ["hello@studio.com", "Instagram"].map((e) => ({ type: "paragraph", children: [{ text: e }] })),
2217
+ images: []
2218
+ }
2219
+ ]
2220
+ },
2221
+ settings: {
2222
+ sizing: "auto",
2223
+ properties: {
2224
+ menuLayout: {
2225
+ type: "object",
2226
+ scope: "layout",
2227
+ title: "Layout",
2228
+ display: { type: "popup-menu-layout" }
2229
+ },
2230
+ // the popup's own grid, which its blocks are placed, moved and resized on, centred inside its padding. Set as
2231
+ // Catalogue's is: columns of the Entry width with the Gutter between them, within the Width, any one of the
2232
+ // three locked while the others change. A menu saved before it has gridColumns, gridColumnWidth and gridGutter
2233
+ gridLayout: {
2234
+ type: "grid-layout",
2235
+ scope: "layout",
2236
+ display: { type: "grid-layout" },
2237
+ gridParams: {
2238
+ type: "object",
2239
+ properties: {
2240
+ columnsCount: {
2241
+ type: "number",
2242
+ title: "Columns",
2243
+ min: 1,
2244
+ max: 24,
2245
+ display: { type: "numeric-input" }
2246
+ },
2247
+ wrapperWidth: {
2248
+ type: "number",
2249
+ title: "Width",
2250
+ min: 0
2251
+ },
2252
+ entryWidth: {
2253
+ type: "number",
2254
+ title: "Entry",
2255
+ min: 0
2256
+ },
2257
+ horizontalGap: {
2258
+ type: "number",
2259
+ title: "Gutter",
2260
+ min: 0
2261
+ }
2262
+ }
2263
+ }
2264
+ },
2265
+ // the least room between two blocks one above the other in a column; a menu saved before it uses the gutter
2266
+ verticalGap: {
2267
+ type: "number",
2268
+ scope: "layout",
2269
+ title: "Vertical Gap",
2270
+ min: 0,
2271
+ max: 1e3,
2272
+ display: { type: "numeric-input" }
2273
+ },
2274
+ // what opens the popup: an icon that turns into a cross while it is open, the user's own image, or text
2275
+ triggerType: {
2276
+ type: "string",
2277
+ scope: "common",
2278
+ title: "Trigger",
2279
+ enum: [...M],
2280
+ display: { type: "radio-group" }
2281
+ },
2282
+ // the text shown by a text trigger, and every trigger's accessible name
2283
+ triggerLabel: {
2284
+ type: "string",
2285
+ scope: "common",
2286
+ title: "Text",
2287
+ display: { type: "label-input" }
2288
+ },
2289
+ triggerIcon: {
2290
+ type: ["string", "null"],
2291
+ scope: "common",
2292
+ title: "Image",
2293
+ display: { type: "settings-image-input", visible: !1 }
2294
+ },
2295
+ triggerIconSize: {
2296
+ type: "number",
2297
+ scope: "layout",
2298
+ title: "Icon Size",
2299
+ min: 1,
2300
+ max: 1e3,
2301
+ display: { type: "numeric-input", visible: !1 }
2302
+ },
2303
+ // the element is the trigger: its icon or text, centred in its box, with this padding round it
2304
+ triggerPadding: {
2305
+ type: "object",
2306
+ scope: "layout",
2307
+ title: "Padding",
2308
+ display: { type: "padding-controls" },
2309
+ properties: {
2310
+ top: { type: "number" },
2311
+ right: { type: "number" },
2312
+ bottom: { type: "number" },
2313
+ left: { type: "number" }
2314
+ }
2315
+ },
2316
+ // a percentage of the screen's height, from its top
2317
+ popupHeight: {
2318
+ type: "number",
2319
+ scope: "layout",
2320
+ title: "Height (%)",
2321
+ min: 0,
2322
+ max: 100,
2323
+ display: { type: "percentage-input" }
2324
+ },
2325
+ // where the popup sits across the screen, and how far it is moved along from there, right or, negative, left
2326
+ popupAlign: {
2327
+ type: "string",
2328
+ scope: "layout",
2329
+ title: "Align",
2330
+ enum: [...L],
2331
+ display: { type: "align-group", direction: "horizontal" }
2332
+ },
2333
+ popupOffset: {
2334
+ type: "number",
2335
+ scope: "layout",
2336
+ title: "Offset",
2337
+ min: -1e4,
2338
+ max: 1e4,
2339
+ display: { type: "numeric-input" }
2340
+ },
2341
+ // moves the popup down from the screen's top, or up where negative
2342
+ popupOffsetTop: {
2343
+ type: "number",
2344
+ scope: "layout",
2345
+ title: "Offset Top",
2346
+ min: -1e4,
2347
+ max: 1e4,
2348
+ display: { type: "numeric-input" }
2349
+ },
2350
+ titleGap: {
2351
+ type: "number",
2352
+ scope: "layout",
2353
+ title: "Title gap",
2354
+ min: 0,
2355
+ max: 1e3,
2356
+ display: { type: "numeric-input" }
2357
+ },
2358
+ popupRadius: {
2359
+ type: "number",
2360
+ scope: "layout",
2361
+ title: "Popup Radius",
2362
+ min: 0,
2363
+ max: 1e3,
2364
+ display: { type: "numeric-input" }
2365
+ },
2366
+ imageRadius: {
2367
+ type: "number",
2368
+ scope: "layout",
2369
+ title: "Image Radius",
2370
+ min: 0,
2371
+ max: 1e3,
2372
+ display: { type: "numeric-input" }
2373
+ },
2374
+ // how the popup shows and hides
2375
+ popupTransition: {
2376
+ type: "string",
2377
+ scope: "common",
2378
+ title: "Transition",
2379
+ display: { type: "toggle-cycle", enum: [...P] }
2380
+ },
2381
+ // blurs the page behind the open popup, under the overlay's colour
2382
+ overlayBlur: {
2383
+ type: "number",
2384
+ scope: "layout",
2385
+ title: "Overlay Blur",
2386
+ min: 0,
2387
+ max: 100,
2388
+ display: { type: "numeric-input" }
2389
+ },
2390
+ // colours picked in the open state's panel, which the palette keeps apart from the default state's
2391
+ stateOverrides: {
2392
+ type: "object",
2393
+ scope: "common"
2394
+ },
2395
+ barBackgroundColor: {
2396
+ type: "string",
2397
+ scope: "common",
2398
+ title: "Trigger BG",
2399
+ display: { type: "palette-color-picker" }
2400
+ },
2401
+ triggerColor: {
2402
+ type: "string",
2403
+ scope: "common",
2404
+ title: "Trigger",
2405
+ display: { type: "palette-color-picker" }
2406
+ },
2407
+ overlayColor: {
2408
+ type: "string",
2409
+ scope: "common",
2410
+ title: "Overlay",
2411
+ display: { type: "palette-color-picker" }
2412
+ },
2413
+ popupBackgroundColor: {
2414
+ type: "string",
2415
+ scope: "common",
2416
+ title: "Popup BG",
2417
+ display: { type: "palette-color-picker" }
2418
+ },
2419
+ titleColor: {
2420
+ type: "string",
2421
+ scope: "common",
2422
+ title: "Title",
2423
+ display: { type: "palette-color-picker" }
2424
+ },
2425
+ textColor: {
2426
+ type: "string",
2427
+ scope: "common",
2428
+ title: "Text",
2429
+ display: { type: "palette-color-picker" }
2430
+ },
2431
+ listAColor: {
2432
+ type: "string",
2433
+ scope: "common",
2434
+ title: "List A",
2435
+ display: { type: "palette-color-picker" }
2436
+ },
2437
+ listBColor: {
2438
+ type: "string",
2439
+ scope: "common",
2440
+ title: "List B",
2441
+ display: { type: "palette-color-picker" }
2442
+ },
2443
+ ...i("trigger"),
2444
+ ...i("title"),
2445
+ ...i("text"),
2446
+ ...i("listA"),
2447
+ ...i("listB")
2448
+ },
2449
+ displayRules: V,
2450
+ defaults: {
2451
+ menuLayout: null,
2452
+ triggerType: "burger",
2453
+ triggerLabel: "Menu",
2454
+ triggerIcon: null,
2455
+ popupTransition: "slide down",
2456
+ barBackgroundColor: "rgba(255, 255, 255, 0)",
2457
+ triggerColor: "#000000",
2458
+ overlayColor: "rgba(0, 0, 0, 0.35)",
2459
+ popupBackgroundColor: "#ffffff",
2460
+ titleColor: "#8c8c8c",
2461
+ textColor: "#000000",
2462
+ listAColor: "#000000",
2463
+ listBColor: "#000000",
2464
+ triggerFontFamily: "Inter",
2465
+ triggerFontSettings: r,
2466
+ titleFontFamily: "Inter",
2467
+ titleFontSettings: r,
2468
+ textFontFamily: "Inter",
2469
+ textFontSettings: r,
2470
+ listAFontFamily: "Inter",
2471
+ listAFontSettings: r,
2472
+ listBFontFamily: "Inter",
2473
+ listBFontSettings: r
2474
+ },
2475
+ layoutDefaults: {
2476
+ d: {
2477
+ triggerPadding: { top: 16 / 1440, right: 16 / 1440, bottom: 16 / 1440, left: 16 / 1440 },
2478
+ triggerIconSize: 24 / 1440,
2479
+ popupHeight: 60,
2480
+ popupAlign: "center",
2481
+ popupOffset: 0,
2482
+ popupOffsetTop: 0,
2483
+ titleGap: 8 / 1440,
2484
+ popupRadius: 16 / 1440,
2485
+ imageRadius: 12 / 1440,
2486
+ overlayBlur: 0,
2487
+ // the popup is as wide as its grid: 12 columns of 99 and gutters of 20 fill 1408, 16 short of the screen on
2488
+ // either side once centred, a width held while the columns or gutter change, as Catalogue holds its width
2489
+ gridLayout: {
2490
+ columnsCount: 12,
2491
+ wrapperWidth: 1408 / 1440,
2492
+ entryWidth: 99 / 1440,
2493
+ horizontalGap: 20 / 1440,
2494
+ lockedParam: "wrapperWidth"
2495
+ },
2496
+ verticalGap: 20 / 1440,
2497
+ ...p(1440, { trigger: [14, 18], title: [14, 18], text: [14, 18], listA: [14, 18], listB: [14, 18] })
2498
+ },
2499
+ t: {
2500
+ triggerPadding: { top: 16 / 768, right: 16 / 768, bottom: 16 / 768, left: 16 / 768 },
2501
+ triggerIconSize: 24 / 768,
2502
+ popupHeight: 60,
2503
+ popupAlign: "center",
2504
+ popupOffset: 0,
2505
+ popupOffsetTop: 0,
2506
+ titleGap: 6 / 768,
2507
+ popupRadius: 12 / 768,
2508
+ imageRadius: 10 / 768,
2509
+ overlayBlur: 0,
2510
+ // 12 columns of 51 and gutters of 12 fill 744, 12 short of the screen on either side
2511
+ gridLayout: {
2512
+ columnsCount: 12,
2513
+ wrapperWidth: 744 / 768,
2514
+ entryWidth: 51 / 768,
2515
+ horizontalGap: 12 / 768,
2516
+ lockedParam: "wrapperWidth"
2517
+ },
2518
+ verticalGap: 12 / 768,
2519
+ ...p(768, { trigger: [14, 18], title: [14, 18], text: [14, 18], listA: [14, 18], listB: [14, 18] })
2520
+ },
2521
+ m: {
2522
+ triggerPadding: { top: 12 / 375, right: 12 / 375, bottom: 12 / 375, left: 12 / 375 },
2523
+ triggerIconSize: 24 / 375,
2524
+ popupHeight: 60,
2525
+ popupAlign: "center",
2526
+ popupOffset: 0,
2527
+ popupOffsetTop: 0,
2528
+ titleGap: 6 / 375,
2529
+ popupRadius: 10 / 375,
2530
+ imageRadius: 8 / 375,
2531
+ overlayBlur: 0,
2532
+ // 6 columns of 54 and gutters of 7 fill 359, 8 short of the screen on either side
2533
+ gridLayout: {
2534
+ columnsCount: 6,
2535
+ wrapperWidth: 359 / 375,
2536
+ entryWidth: 54 / 375,
2537
+ horizontalGap: 7 / 375,
2538
+ lockedParam: "wrapperWidth"
2539
+ },
2540
+ verticalGap: 8 / 375,
2541
+ ...p(375, { trigger: [13, 16], title: [13, 16], text: [13, 16], listA: [13, 16], listB: [13, 16] })
2542
+ }
2543
+ }
2544
+ },
2545
+ panels: [
2546
+ {
2547
+ id: "default",
2548
+ icon: "default",
2549
+ title: "Default",
2550
+ tooltip: "Default State",
2551
+ layout: [
2552
+ "__componentName__",
2553
+ "triggerType",
2554
+ "triggerLabel",
2555
+ { type: "row", items: ["triggerIcon", "triggerIconSize"] },
2556
+ "triggerPadding"
2557
+ ]
2558
+ },
2559
+ {
2560
+ id: "open",
2561
+ icon: "open",
2562
+ title: "Open",
2563
+ tooltip: "Open State",
2564
+ layout: [
2565
+ "__componentName__",
2566
+ "popupAlign",
2567
+ { type: "row", items: ["popupOffset", "popupOffsetTop"] },
2568
+ { type: "row", items: ["popupHeight", "popupRadius"] },
2569
+ { type: "row", items: ["titleGap", "imageRadius"] },
2570
+ { type: "row", items: ["overlayBlur", "popupTransition"] },
2571
+ { type: "row", title: "Grid", items: [{ type: "group", title: "", items: ["gridLayout"] }] },
2572
+ "verticalGap",
2573
+ "menuLayout"
2574
+ ]
2575
+ },
2576
+ {
2577
+ id: "typeStyle",
2578
+ icon: "text-icon",
2579
+ title: "Type Style",
2580
+ tooltip: "Typography",
2581
+ layout: [
2582
+ "__componentName__",
2583
+ D
2584
+ ]
2585
+ }
2586
+ ],
2587
+ paletteBookmark: {
2588
+ items: [...Q],
2589
+ panelIds: ["default", "open", "typeStyle"],
2590
+ stateItems: {
2591
+ default: ["barBackgroundColor", "triggerColor"],
2592
+ open: ["overlayColor", "popupBackgroundColor", "titleColor", "textColor", "listAColor", "listBColor", "triggerColor"]
2593
+ }
2594
+ },
2595
+ statePanels: ["default", "open"]
2596
+ }, U = {
2597
+ element: G,
2598
+ id: "popup-menu",
2599
+ name: "Popup Menu",
2600
+ category: "navigation",
2601
+ version: 1,
2602
+ // the project's navigation, on every page, but placed and sized like an item rather than spanning the page:
2603
+ // the trigger stays where it is on the screen as the page scrolls
2604
+ layoutMode: "navigation",
2605
+ navigationLayout: "freeform",
2606
+ // the trigger alone: a 24 icon with 16 round it (12 on mobile); the popup opens over the page from it
2607
+ defaultSize: {
2608
+ d: {
2609
+ width: 56,
2610
+ height: 56
2611
+ },
2612
+ t: {
2613
+ width: 56,
2614
+ height: 56
2615
+ },
2616
+ m: {
2617
+ width: 48,
2618
+ height: 48
2619
+ }
2620
+ },
2621
+ schema: X,
2622
+ assetsPaths: {
2623
+ content: [{ path: "images.assetId", placeholderEnabled: !0 }],
2624
+ parameters: [{ path: "triggerIcon" }]
2625
+ },
2626
+ fontSettingsPaths: {
2627
+ content: [],
2628
+ parameters: [
2629
+ { path: "triggerFontFamily" },
2630
+ { path: "titleFontFamily" },
2631
+ { path: "textFontFamily" },
2632
+ { path: "listAFontFamily" },
2633
+ { path: "listBFontFamily" }
2634
+ ]
2635
+ },
2636
+ fontRelations: {
2637
+ triggerFontSettings: "triggerFontFamily",
2638
+ titleFontSettings: "titleFontFamily",
2639
+ textFontSettings: "textFontFamily",
2640
+ listAFontSettings: "listAFontFamily",
2641
+ listBFontSettings: "listBFontFamily"
2642
+ }
2643
+ }, Z = [
2644
+ O,
2645
+ R,
2034
2646
  y,
2647
+ H,
2035
2648
  g,
2036
2649
  m,
2037
- d,
2038
2650
  u,
2651
+ d,
2039
2652
  b,
2040
2653
  h,
2041
2654
  f,
2042
2655
  v,
2043
- C,
2044
2656
  x,
2045
2657
  S,
2658
+ C,
2659
+ I,
2046
2660
  k,
2047
- I
2661
+ A,
2662
+ T,
2663
+ j,
2664
+ F,
2665
+ B,
2666
+ w,
2667
+ E,
2668
+ z,
2669
+ U
2048
2670
  ];
2049
2671
  export {
2050
- j as C,
2051
- A as L,
2052
- E as a,
2053
- F as c
2672
+ O as C,
2673
+ H as L,
2674
+ U as P,
2675
+ R as a,
2676
+ Z as c
2054
2677
  };