@cntrl-site/components 1.0.114 → 1.0.115-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-DSeTsRpR.js → ChroniclesComponent-BHZu7BbK.js} +1 -1
  4. package/dist/{ChroniclesComponent-DnjT4LDh.mjs → ChroniclesComponent-DRf1Xd9_.mjs} +12 -12
  5. package/dist/Components/PopupMenu/PopupMenu.d.ts +72 -0
  6. package/dist/Components/PopupMenu/PopupMenuComponent.d.ts +598 -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-DLh63Utr.js → FAQ-7HEkaoU6.js} +1 -1
  12. package/dist/{FAQ-CJHCMSBa.mjs → FAQ-GmiwRdFq.mjs} +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-Ct6PbiJq.js +369 -0
  30. package/dist/PopupMenu-DGVvx5AW.mjs +1067 -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-DCG0h7Jb.js +1 -0
  42. package/dist/{components-7yLwgeCc.mjs → components-DH803b-9.mjs} +655 -29
  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-D_Il3njP.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-DnjT4LDh.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 T, f as A, g as j, h as F, i as B, B as w, P as E, j as z } from "./ChroniclesComponent-DRf1Xd9_.mjs";
5
+ import { p as P, P as L, q as M, t as G } from "./PopupMenu-DGVvx5AW.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,661 @@ 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
+ ...Object.keys(i("trigger")).map((t) => ({ if: { name: "triggerType", value: e }, then: { name: `properties.${t}.display.visible`, value: !1 } }))
2135
+ ]),
2136
+ { if: { name: "triggerType", value: "icon" }, then: { name: "properties.triggerIcon.display.visible", value: !0 } }
2137
+ ], X = {
2138
+ type: "object",
2139
+ version: 1,
2140
+ content: {
2141
+ type: "array",
2142
+ settings: {
2143
+ addItemWithoutImage: !0,
2144
+ // a media item's images may be videos, uploaded or embedded, which play on their own, muted and looping
2145
+ allowsVideo: !0
2146
+ },
2147
+ display: {
2148
+ type: "array"
2149
+ },
2150
+ items: {
2151
+ type: "object",
2152
+ properties: {
2153
+ type: {
2154
+ type: "string",
2155
+ label: "Type",
2156
+ enum: ["text", "image", "listA", "listB"],
2157
+ default: "text",
2158
+ display: { type: "select-input" }
2159
+ },
2160
+ // a media item is its images alone, with no title or text, as a text or list item has no images
2161
+ title: {
2162
+ type: "string",
2163
+ label: "Title",
2164
+ placeholder: "Add Title...",
2165
+ display: { type: "text-input" },
2166
+ byRowType: { image: { display: { type: "text-input", visible: !1 } } }
2167
+ },
2168
+ text: {
2169
+ label: "Text",
2170
+ placeholder: "Add text...",
2171
+ display: { type: "rich-text" },
2172
+ byRowType: {
2173
+ // a list is still a paragraph per item, which the editor shows as an input per item
2174
+ ...Object.fromEntries(["listA", "listB", "list"].map((e) => [e, {
2175
+ placeholder: "Add item...",
2176
+ display: { type: "rich-text-list" }
2177
+ }])),
2178
+ image: { display: { type: "rich-text", visible: !1 } }
2179
+ }
2180
+ },
2181
+ images: {
2182
+ type: "object",
2183
+ label: "Images",
2184
+ display: { type: "media-list-input" },
2185
+ byRowType: Object.fromEntries(["text", "listA", "listB", "list"].map((e) => [e, {
2186
+ display: { type: "media-list-input", visible: !1 }
2187
+ }])),
2188
+ properties: {
2189
+ assetId: { type: "string" },
2190
+ name: { type: "string" },
2191
+ objectFit: { type: "string", enum: ["cover", "contain"] }
2192
+ },
2193
+ required: ["assetId", "name"]
2194
+ }
2195
+ }
2196
+ },
2197
+ default: [
2198
+ {
2199
+ type: "text",
2200
+ title: "About",
2201
+ text: [{ type: "paragraph", children: [{ text: "An independent studio for identity, type and the web. We work with people who care about the details." }] }],
2202
+ images: []
2203
+ },
2204
+ {
2205
+ type: "image",
2206
+ title: "",
2207
+ text: [],
2208
+ images: [{ assetId: "01M3QM74XEVZ9F59FC7M9BA63Q", name: "", objectFit: "cover" }]
2209
+ },
2210
+ {
2211
+ type: "listA",
2212
+ title: "Selected Work",
2213
+ text: ["Archive", "Identity", "Type", "Web"].map((e) => ({ type: "paragraph", children: [{ text: e }] })),
2214
+ images: []
2215
+ },
2216
+ {
2217
+ type: "listB",
2218
+ title: "Contact",
2219
+ text: ["hello@studio.com", "Instagram"].map((e) => ({ type: "paragraph", children: [{ text: e }] })),
2220
+ images: []
2221
+ }
2222
+ ]
2223
+ },
2224
+ settings: {
2225
+ sizing: "auto",
2226
+ properties: {
2227
+ menuLayout: {
2228
+ type: "object",
2229
+ scope: "layout",
2230
+ title: "Layout",
2231
+ display: { type: "popup-menu-layout" }
2232
+ },
2233
+ // the popup's own grid, which its blocks are placed, moved and resized on, centred inside its padding. Set as
2234
+ // Catalogue's is: columns of the Entry width with the Gutter between them, within the Width, any one of the
2235
+ // three locked while the others change. A menu saved before it has gridColumns, gridColumnWidth and gridGutter
2236
+ gridLayout: {
2237
+ type: "grid-layout",
2238
+ scope: "layout",
2239
+ display: { type: "grid-layout" },
2240
+ gridParams: {
2241
+ type: "object",
2242
+ properties: {
2243
+ columnsCount: {
2244
+ type: "number",
2245
+ title: "Columns",
2246
+ min: 1,
2247
+ max: 24,
2248
+ display: { type: "numeric-input" }
2249
+ },
2250
+ wrapperWidth: {
2251
+ type: "number",
2252
+ title: "Width",
2253
+ min: 0
2254
+ },
2255
+ entryWidth: {
2256
+ type: "number",
2257
+ title: "Entry",
2258
+ min: 0
2259
+ },
2260
+ horizontalGap: {
2261
+ type: "number",
2262
+ title: "Gutter",
2263
+ min: 0
2264
+ }
2265
+ }
2266
+ }
2267
+ },
2268
+ // the least room between two blocks one above the other in a column; a menu saved before it uses the gutter
2269
+ verticalGap: {
2270
+ type: "number",
2271
+ scope: "layout",
2272
+ title: "Vertical Gap",
2273
+ min: 0,
2274
+ max: 1e3,
2275
+ display: { type: "numeric-input" }
2276
+ },
2277
+ // what opens the popup: an icon that turns into a cross while it is open, the user's own image, or text
2278
+ triggerType: {
2279
+ type: "string",
2280
+ scope: "common",
2281
+ title: "Trigger",
2282
+ enum: [...M],
2283
+ display: { type: "radio-group" }
2284
+ },
2285
+ // the text shown by a text trigger, and every trigger's accessible name
2286
+ triggerLabel: {
2287
+ type: "string",
2288
+ scope: "common",
2289
+ title: "Text",
2290
+ display: { type: "label-input" }
2291
+ },
2292
+ triggerIcon: {
2293
+ type: ["string", "null"],
2294
+ scope: "common",
2295
+ title: "Image",
2296
+ display: { type: "settings-image-input", visible: !1 }
2297
+ },
2298
+ triggerIconSize: {
2299
+ type: "number",
2300
+ scope: "layout",
2301
+ title: "Icon Size",
2302
+ min: 1,
2303
+ max: 1e3,
2304
+ display: { type: "numeric-input", visible: !1 }
2305
+ },
2306
+ // the element is the trigger: its icon or text, centred in its box, with this padding round it
2307
+ triggerPadding: {
2308
+ type: "object",
2309
+ scope: "layout",
2310
+ title: "Padding",
2311
+ display: { type: "padding-controls" },
2312
+ properties: {
2313
+ top: { type: "number" },
2314
+ right: { type: "number" },
2315
+ bottom: { type: "number" },
2316
+ left: { type: "number" }
2317
+ }
2318
+ },
2319
+ // a percentage of the screen's height, from its top
2320
+ popupHeight: {
2321
+ type: "number",
2322
+ scope: "layout",
2323
+ title: "Height (%)",
2324
+ min: 0,
2325
+ max: 100,
2326
+ display: { type: "percentage-input" }
2327
+ },
2328
+ // where the popup sits across the screen, and how far it is moved along from there, right or, negative, left
2329
+ popupAlign: {
2330
+ type: "string",
2331
+ scope: "layout",
2332
+ title: "Align",
2333
+ enum: [...L],
2334
+ display: { type: "align-group", direction: "horizontal" }
2335
+ },
2336
+ popupOffset: {
2337
+ type: "number",
2338
+ scope: "layout",
2339
+ title: "Offset",
2340
+ min: -1e4,
2341
+ max: 1e4,
2342
+ display: { type: "numeric-input" }
2343
+ },
2344
+ // moves the popup down from the screen's top, or up where negative
2345
+ popupOffsetTop: {
2346
+ type: "number",
2347
+ scope: "layout",
2348
+ title: "Offset Top",
2349
+ min: -1e4,
2350
+ max: 1e4,
2351
+ display: { type: "numeric-input" }
2352
+ },
2353
+ titleGap: {
2354
+ type: "number",
2355
+ scope: "layout",
2356
+ title: "Title gap",
2357
+ min: 0,
2358
+ max: 1e3,
2359
+ display: { type: "numeric-input" }
2360
+ },
2361
+ popupRadius: {
2362
+ type: "number",
2363
+ scope: "layout",
2364
+ title: "Popup Radius",
2365
+ min: 0,
2366
+ max: 1e3,
2367
+ display: { type: "numeric-input" }
2368
+ },
2369
+ imageRadius: {
2370
+ type: "number",
2371
+ scope: "layout",
2372
+ title: "Image Radius",
2373
+ min: 0,
2374
+ max: 1e3,
2375
+ display: { type: "numeric-input" }
2376
+ },
2377
+ // how the popup shows and hides
2378
+ popupTransition: {
2379
+ type: "string",
2380
+ scope: "common",
2381
+ title: "Transition",
2382
+ display: { type: "toggle-cycle", enum: [...P] }
2383
+ },
2384
+ // blurs the page behind the open popup, under the overlay's colour
2385
+ overlayBlur: {
2386
+ type: "number",
2387
+ scope: "layout",
2388
+ title: "Overlay Blur",
2389
+ min: 0,
2390
+ max: 100,
2391
+ display: { type: "numeric-input" }
2392
+ },
2393
+ // colours picked in the open state's panel, which the palette keeps apart from the default state's
2394
+ stateOverrides: {
2395
+ type: "object",
2396
+ scope: "common"
2397
+ },
2398
+ barBackgroundColor: {
2399
+ type: "string",
2400
+ scope: "common",
2401
+ title: "Trigger BG",
2402
+ display: { type: "palette-color-picker" }
2403
+ },
2404
+ triggerColor: {
2405
+ type: "string",
2406
+ scope: "common",
2407
+ title: "Trigger",
2408
+ display: { type: "palette-color-picker" }
2409
+ },
2410
+ overlayColor: {
2411
+ type: "string",
2412
+ scope: "common",
2413
+ title: "Overlay",
2414
+ display: { type: "palette-color-picker" }
2415
+ },
2416
+ popupBackgroundColor: {
2417
+ type: "string",
2418
+ scope: "common",
2419
+ title: "Popup BG",
2420
+ display: { type: "palette-color-picker" }
2421
+ },
2422
+ titleColor: {
2423
+ type: "string",
2424
+ scope: "common",
2425
+ title: "Title",
2426
+ display: { type: "palette-color-picker" }
2427
+ },
2428
+ textColor: {
2429
+ type: "string",
2430
+ scope: "common",
2431
+ title: "Text",
2432
+ display: { type: "palette-color-picker" }
2433
+ },
2434
+ listAColor: {
2435
+ type: "string",
2436
+ scope: "common",
2437
+ title: "List A",
2438
+ display: { type: "palette-color-picker" }
2439
+ },
2440
+ listBColor: {
2441
+ type: "string",
2442
+ scope: "common",
2443
+ title: "List B",
2444
+ display: { type: "palette-color-picker" }
2445
+ },
2446
+ ...i("trigger"),
2447
+ ...i("title"),
2448
+ ...i("text"),
2449
+ ...i("listA"),
2450
+ ...i("listB")
2451
+ },
2452
+ displayRules: V,
2453
+ defaults: {
2454
+ menuLayout: null,
2455
+ triggerType: "burger",
2456
+ triggerLabel: "Menu",
2457
+ triggerIcon: null,
2458
+ popupTransition: "slide down",
2459
+ barBackgroundColor: "rgba(255, 255, 255, 0)",
2460
+ triggerColor: "#000000",
2461
+ overlayColor: "rgba(0, 0, 0, 0.35)",
2462
+ popupBackgroundColor: "#ffffff",
2463
+ titleColor: "#8c8c8c",
2464
+ textColor: "#000000",
2465
+ listAColor: "#000000",
2466
+ listBColor: "#000000",
2467
+ triggerFontFamily: "Inter",
2468
+ triggerFontSettings: r,
2469
+ titleFontFamily: "Inter",
2470
+ titleFontSettings: r,
2471
+ textFontFamily: "Inter",
2472
+ textFontSettings: r,
2473
+ listAFontFamily: "Inter",
2474
+ listAFontSettings: r,
2475
+ listBFontFamily: "Inter",
2476
+ listBFontSettings: r
2477
+ },
2478
+ layoutDefaults: {
2479
+ d: {
2480
+ triggerPadding: { top: 16 / 1440, right: 16 / 1440, bottom: 16 / 1440, left: 16 / 1440 },
2481
+ triggerIconSize: 24 / 1440,
2482
+ popupHeight: 60,
2483
+ popupAlign: "center",
2484
+ popupOffset: 0,
2485
+ popupOffsetTop: 0,
2486
+ titleGap: 8 / 1440,
2487
+ popupRadius: 16 / 1440,
2488
+ imageRadius: 12 / 1440,
2489
+ overlayBlur: 0,
2490
+ // the popup is as wide as its grid: 12 columns of 99 and gutters of 20 fill 1408, 16 short of the screen on
2491
+ // either side once centred, a width held while the columns or gutter change, as Catalogue holds its width
2492
+ gridLayout: {
2493
+ columnsCount: 12,
2494
+ wrapperWidth: 1408 / 1440,
2495
+ entryWidth: 99 / 1440,
2496
+ horizontalGap: 20 / 1440,
2497
+ lockedParam: "wrapperWidth"
2498
+ },
2499
+ verticalGap: 20 / 1440,
2500
+ ...p(1440, { trigger: [14, 18], title: [14, 18], text: [14, 18], listA: [14, 18], listB: [14, 18] })
2501
+ },
2502
+ t: {
2503
+ triggerPadding: { top: 16 / 768, right: 16 / 768, bottom: 16 / 768, left: 16 / 768 },
2504
+ triggerIconSize: 24 / 768,
2505
+ popupHeight: 60,
2506
+ popupAlign: "center",
2507
+ popupOffset: 0,
2508
+ popupOffsetTop: 0,
2509
+ titleGap: 6 / 768,
2510
+ popupRadius: 12 / 768,
2511
+ imageRadius: 10 / 768,
2512
+ overlayBlur: 0,
2513
+ // 12 columns of 51 and gutters of 12 fill 744, 12 short of the screen on either side
2514
+ gridLayout: {
2515
+ columnsCount: 12,
2516
+ wrapperWidth: 744 / 768,
2517
+ entryWidth: 51 / 768,
2518
+ horizontalGap: 12 / 768,
2519
+ lockedParam: "wrapperWidth"
2520
+ },
2521
+ verticalGap: 12 / 768,
2522
+ ...p(768, { trigger: [14, 18], title: [14, 18], text: [14, 18], listA: [14, 18], listB: [14, 18] })
2523
+ },
2524
+ m: {
2525
+ triggerPadding: { top: 12 / 375, right: 12 / 375, bottom: 12 / 375, left: 12 / 375 },
2526
+ triggerIconSize: 24 / 375,
2527
+ popupHeight: 60,
2528
+ popupAlign: "center",
2529
+ popupOffset: 0,
2530
+ popupOffsetTop: 0,
2531
+ titleGap: 6 / 375,
2532
+ popupRadius: 10 / 375,
2533
+ imageRadius: 8 / 375,
2534
+ overlayBlur: 0,
2535
+ // 6 columns of 54 and gutters of 7 fill 359, 8 short of the screen on either side
2536
+ gridLayout: {
2537
+ columnsCount: 6,
2538
+ wrapperWidth: 359 / 375,
2539
+ entryWidth: 54 / 375,
2540
+ horizontalGap: 7 / 375,
2541
+ lockedParam: "wrapperWidth"
2542
+ },
2543
+ verticalGap: 8 / 375,
2544
+ ...p(375, { trigger: [13, 16], title: [13, 16], text: [13, 16], listA: [13, 16], listB: [13, 16] })
2545
+ }
2546
+ }
2547
+ },
2548
+ panels: [
2549
+ {
2550
+ id: "default",
2551
+ icon: "default",
2552
+ title: "Default",
2553
+ tooltip: "Default State",
2554
+ layout: [
2555
+ "__componentName__",
2556
+ "triggerType",
2557
+ "triggerLabel",
2558
+ { type: "row", items: ["triggerIcon", "triggerIconSize"] },
2559
+ "triggerPadding"
2560
+ ]
2561
+ },
2562
+ {
2563
+ id: "open",
2564
+ icon: "open",
2565
+ title: "Open",
2566
+ tooltip: "Open State",
2567
+ layout: [
2568
+ "__componentName__",
2569
+ "popupAlign",
2570
+ { type: "row", items: ["popupOffset", "popupOffsetTop"] },
2571
+ { type: "row", items: ["popupHeight", "popupRadius"] },
2572
+ { type: "row", items: ["titleGap", "imageRadius"] },
2573
+ { type: "row", items: ["overlayBlur", "popupTransition"] },
2574
+ { type: "row", title: "Grid", items: [{ type: "group", title: "", items: ["gridLayout"] }] },
2575
+ "verticalGap",
2576
+ "menuLayout"
2577
+ ]
2578
+ },
2579
+ {
2580
+ id: "typeStyle",
2581
+ icon: "text-icon",
2582
+ title: "Type Style",
2583
+ tooltip: "Typography",
2584
+ layout: [
2585
+ "__componentName__",
2586
+ D
2587
+ ]
2588
+ }
2589
+ ],
2590
+ paletteBookmark: {
2591
+ items: [...Q],
2592
+ panelIds: ["default", "open", "typeStyle"],
2593
+ stateItems: {
2594
+ default: ["barBackgroundColor", "triggerColor"],
2595
+ open: ["overlayColor", "popupBackgroundColor", "titleColor", "textColor", "listAColor", "listBColor", "triggerColor"]
2596
+ }
2597
+ },
2598
+ statePanels: ["default", "open"]
2599
+ }, U = {
2600
+ element: G,
2601
+ id: "popup-menu",
2602
+ name: "Popup Menu",
2603
+ category: "navigation",
2604
+ version: 1,
2605
+ // the project's navigation, on every page, but placed and sized like an item rather than spanning the page:
2606
+ // the trigger stays where it is on the screen as the page scrolls
2607
+ layoutMode: "navigation",
2608
+ navigationLayout: "freeform",
2609
+ // the trigger alone: a 24 icon with 16 round it (12 on mobile); the popup opens over the page from it
2610
+ defaultSize: {
2611
+ d: {
2612
+ width: 56,
2613
+ height: 56
2614
+ },
2615
+ t: {
2616
+ width: 56,
2617
+ height: 56
2618
+ },
2619
+ m: {
2620
+ width: 48,
2621
+ height: 48
2622
+ }
2623
+ },
2624
+ schema: X,
2625
+ assetsPaths: {
2626
+ content: [{ path: "images.assetId", placeholderEnabled: !0 }],
2627
+ parameters: [{ path: "triggerIcon" }]
2628
+ },
2629
+ fontSettingsPaths: {
2630
+ content: [],
2631
+ parameters: [
2632
+ { path: "triggerFontFamily" },
2633
+ { path: "titleFontFamily" },
2634
+ { path: "textFontFamily" },
2635
+ { path: "listAFontFamily" },
2636
+ { path: "listBFontFamily" }
2637
+ ]
2638
+ },
2639
+ fontRelations: {
2640
+ triggerFontSettings: "triggerFontFamily",
2641
+ titleFontSettings: "titleFontFamily",
2642
+ textFontSettings: "textFontFamily",
2643
+ listAFontSettings: "listAFontFamily",
2644
+ listBFontSettings: "listBFontFamily"
2645
+ }
2646
+ }, Z = [
2647
+ O,
2648
+ R,
2034
2649
  y,
2650
+ H,
2035
2651
  g,
2036
2652
  m,
2037
- d,
2038
2653
  u,
2654
+ d,
2039
2655
  b,
2040
2656
  h,
2041
2657
  f,
2042
2658
  v,
2043
- C,
2044
2659
  x,
2045
2660
  S,
2661
+ C,
2662
+ I,
2046
2663
  k,
2047
- I
2664
+ T,
2665
+ A,
2666
+ j,
2667
+ F,
2668
+ B,
2669
+ w,
2670
+ E,
2671
+ z,
2672
+ U
2048
2673
  ];
2049
2674
  export {
2050
- j as C,
2051
- A as L,
2052
- E as a,
2053
- F as c
2675
+ O as C,
2676
+ H as L,
2677
+ U as P,
2678
+ R as a,
2679
+ Z as c
2054
2680
  };