@cntrl-site/components 1.0.116-alpha.0 → 1.0.117

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 (73) hide show
  1. package/dist/{Burger-DyORh_vF.mjs → Burger-BkVgNMGU.mjs} +1 -1
  2. package/dist/{Burger-B4kXX9aY.js → Burger-C3yVbQcq.js} +1 -1
  3. package/dist/Chronicles-BNvvaFYY.mjs +744 -0
  4. package/dist/Chronicles-Dj1gvNjE.js +196 -0
  5. package/dist/ChroniclesComponent-CoOgQZx2.js +1 -0
  6. package/dist/{ChroniclesComponent-jh4v7wp6.mjs → ChroniclesComponent-Szt0H-op.mjs} +542 -491
  7. package/dist/Components/Chronicles/Chronicles.d.ts +7 -1
  8. package/dist/Components/Chronicles/ChroniclesComponent.d.ts +26 -2
  9. package/dist/Components/LightboxJournal/LightboxJournal.d.ts +1 -0
  10. package/dist/Components/LightboxStrip/LightboxStrip.d.ts +1 -0
  11. package/dist/Components/helpers/SvgImage/loadSvgMaskUrl.d.ts +0 -7
  12. package/dist/{ControlSlider-DB4nbVLT.js → ControlSlider-C8ckUIDm.js} +1 -1
  13. package/dist/{ControlSlider-3w-bHQEg.mjs → ControlSlider-DqKfaKMG.mjs} +1 -1
  14. package/dist/{FAQ-GmiwRdFq.mjs → FAQ-CJHCMSBa.mjs} +1 -1
  15. package/dist/{FAQ-7HEkaoU6.js → FAQ-DLh63Utr.js} +1 -1
  16. package/dist/{Grid-BzarI5Mc.js → Grid-C4hO8KCr.js} +14 -9
  17. package/dist/{Grid-Z2JZyUdC.mjs → Grid-Dud7PLS9.mjs} +201 -196
  18. package/dist/{Hive-34KvKNsa.js → Hive-CzabuuCc.js} +1 -1
  19. package/dist/{Hive-7xHXyMM1.mjs → Hive-DyxYd5eg.mjs} +1 -1
  20. package/dist/{HiveLightboxTitles-BCoL46-V.mjs → HiveLightboxTitles-DhEeFKWs.mjs} +1 -1
  21. package/dist/{HiveLightboxTitles-DEeyQGcf.js → HiveLightboxTitles-DlyptAaK.js} +1 -1
  22. package/dist/{Lightbox-DzPqgKP4.mjs → Lightbox-BY99NS14.mjs} +1 -1
  23. package/dist/{Lightbox-Cb7lyaNt.js → Lightbox-DZckgBzK.js} +1 -1
  24. package/dist/{LightboxJournal-C_q7_s-B.mjs → LightboxJournal-BDUs6T0B.mjs} +466 -434
  25. package/dist/LightboxJournal-Bf_rZzmz.js +555 -0
  26. package/dist/{LightboxStrip-BrNj7ipX.mjs → LightboxStrip-Cuhb2fIR.mjs} +459 -427
  27. package/dist/LightboxStrip-RA4ABUC-.js +418 -0
  28. package/dist/{Mercury-BmhtFYOw.js → Mercury-B-s2Kvuq.js} +1 -1
  29. package/dist/{Mercury-Q788wrYQ.mjs → Mercury-CCW0Es-s.mjs} +1 -1
  30. package/dist/{OnelinerForm-D8WIB9Qy.mjs → OnelinerForm-BEu7_sho.mjs} +1 -1
  31. package/dist/{OnelinerForm-CUmY-bXL.js → OnelinerForm-C2Y_XMCY.js} +1 -1
  32. package/dist/{SimpleButton-DTpzfmb6.mjs → SimpleButton-C-o2W9bS.mjs} +1 -1
  33. package/dist/{SimpleButton-DtaCYa3y.js → SimpleButton-nGEcO2gB.js} +1 -1
  34. package/dist/{Slider20-q0iGgnE3.js → Slider20-BOmjDRf2.js} +1 -1
  35. package/dist/{Slider20-CKngROrc.mjs → Slider20-DUi6qwnd.mjs} +1 -1
  36. package/dist/SvgImage-B5mR9y6q.mjs +51 -0
  37. package/dist/SvgImage-DFlmxAoL.js +1 -0
  38. package/dist/{TestimonialSingle-CpEUendN.js → TestimonialSingle-BORQom3u.js} +1 -1
  39. package/dist/{TestimonialSingle-Bax71Hyo.mjs → TestimonialSingle-DrnyReim.mjs} +1 -1
  40. package/dist/{Waterfall-znaoynn5.mjs → Waterfall-3kKioKh2.mjs} +1 -1
  41. package/dist/{Waterfall-B9YWMhrg.js → Waterfall-DII4-WV5.js} +1 -1
  42. package/dist/{components-C9Fu28pp.mjs → components-DSHc15vW.mjs} +29 -653
  43. package/dist/components-iORMB3kt.js +1 -0
  44. package/dist/elements.js +1 -1
  45. package/dist/elements.mjs +23 -24
  46. package/dist/elements.node.js +1 -1
  47. package/dist/elements.node.mjs +1 -1
  48. package/dist/index.d.ts +2 -4
  49. package/dist/index.js +1 -1
  50. package/dist/index.mjs +38 -61
  51. package/dist/loadSvgMaskUrl-DfF7ay6h.js +1 -0
  52. package/dist/loadSvgMaskUrl-xHgGYgPe.mjs +20 -0
  53. package/dist/sources.js +143 -30
  54. package/dist/sources.mjs +150 -37
  55. package/dist/types/Component.d.ts +0 -7
  56. package/dist/types/SchemaV1.d.ts +3 -3
  57. package/package.json +1 -1
  58. package/dist/Chronicles-Cy2h3jlZ.mjs +0 -724
  59. package/dist/Chronicles-D0ojQzOP.js +0 -196
  60. package/dist/ChroniclesComponent-DYPJBI3d.js +0 -1
  61. package/dist/Components/PopupMenu/PopupMenu.d.ts +0 -73
  62. package/dist/Components/PopupMenu/PopupMenuComponent.d.ts +0 -594
  63. package/dist/Components/PopupMenu/popupMenuLayout.d.ts +0 -203
  64. package/dist/Components/PopupMenu/popupMenuSnap.d.ts +0 -61
  65. package/dist/LightboxJournal-BFF5aKRz.js +0 -523
  66. package/dist/LightboxStrip-CC2e0_9A.js +0 -386
  67. package/dist/PopupMenu-CYdDyzEt.mjs +0 -1372
  68. package/dist/PopupMenu-Di1fHgho.js +0 -409
  69. package/dist/SvgImage-CwRq9-ec.mjs +0 -56
  70. package/dist/SvgImage-_QN8ngad.js +0 -1
  71. package/dist/components-6QFLq5OI.js +0 -1
  72. package/dist/loadSvgMaskUrl-B6kHUyof.js +0 -1
  73. package/dist/loadSvgMaskUrl-DUhCVvpl.mjs +0 -39
@@ -1,10 +1,9 @@
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-jh4v7wp6.mjs";
5
- import { x as P, P as M, y as L, z as G } from "./PopupMenu-CYdDyzEt.mjs";
6
- const O = {
7
- element: a,
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-Szt0H-op.mjs";
5
+ const j = {
6
+ element: e,
8
7
  id: "control-slider",
9
8
  name: "Slider",
10
9
  preview: {
@@ -616,8 +615,8 @@ const O = {
616
615
  },
617
616
  required: ["settings", "content", "styles"]
618
617
  }
619
- }, R = {
620
- element: s,
618
+ }, E = {
619
+ element: t,
621
620
  id: "control-image-reveal",
622
621
  name: "Click Gallery",
623
622
  preview: {
@@ -940,8 +939,8 @@ const O = {
940
939
  }
941
940
  }
942
941
  }
943
- }, H = {
944
- element: c,
942
+ }, A = {
943
+ element: i,
945
944
  id: "lightbox",
946
945
  name: "Lightbox",
947
946
  preview: {
@@ -2020,659 +2019,36 @@ const O = {
2020
2019
  },
2021
2020
  required: ["settings", "content", "styles"]
2022
2021
  }
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
- // the blocks' placements, set by moving and resizing them on the canvas; it has no control in the panel
2228
- menuLayout: {
2229
- type: "object",
2230
- scope: "layout"
2231
- },
2232
- // the popup's own grid, which its blocks are placed, moved and resized on, centred inside its padding. Set as
2233
- // Catalogue's is: columns of the Entry width with the Gutter between them, within the Width, any one of the
2234
- // three locked while the others change. A menu saved before it has gridColumns, gridColumnWidth and gridGutter
2235
- gridLayout: {
2236
- type: "grid-layout",
2237
- scope: "layout",
2238
- display: { type: "grid-layout" },
2239
- gridParams: {
2240
- type: "object",
2241
- properties: {
2242
- columnsCount: {
2243
- type: "number",
2244
- title: "Columns",
2245
- min: 1,
2246
- max: 24,
2247
- display: { type: "numeric-input" }
2248
- },
2249
- wrapperWidth: {
2250
- type: "number",
2251
- title: "Width",
2252
- min: 0
2253
- },
2254
- entryWidth: {
2255
- type: "number",
2256
- title: "Entry",
2257
- min: 0
2258
- },
2259
- horizontalGap: {
2260
- type: "number",
2261
- title: "Gutter",
2262
- min: 0
2263
- }
2264
- }
2265
- }
2266
- },
2267
- // the least room between two blocks one above the other in a column; a menu saved before it uses the gutter
2268
- verticalGap: {
2269
- type: "number",
2270
- scope: "layout",
2271
- title: "Vertical Gap",
2272
- min: 0,
2273
- max: 1e3,
2274
- display: { type: "numeric-input" }
2275
- },
2276
- // what opens the popup: an icon that turns into a cross while it is open, the user's own image, or text
2277
- triggerType: {
2278
- type: "string",
2279
- scope: "common",
2280
- title: "Trigger",
2281
- enum: [...L],
2282
- display: { type: "radio-group" }
2283
- },
2284
- // the text shown by a text trigger, and every trigger's accessible name
2285
- triggerLabel: {
2286
- type: "string",
2287
- scope: "common",
2288
- title: "Text",
2289
- display: { type: "label-input" }
2290
- },
2291
- triggerIcon: {
2292
- type: ["string", "null"],
2293
- scope: "common",
2294
- title: "Image",
2295
- display: { type: "settings-image-input", visible: !1 }
2296
- },
2297
- triggerIconSize: {
2298
- type: "number",
2299
- scope: "layout",
2300
- title: "Icon Size",
2301
- min: 1,
2302
- max: 1e3,
2303
- display: { type: "numeric-input", visible: !1 }
2304
- },
2305
- // the element is the trigger: its icon or text, centred in its box, with this padding round it
2306
- triggerPadding: {
2307
- type: "object",
2308
- scope: "layout",
2309
- title: "Padding",
2310
- display: { type: "padding-controls" },
2311
- properties: {
2312
- top: { type: "number" },
2313
- right: { type: "number" },
2314
- bottom: { type: "number" },
2315
- left: { type: "number" }
2316
- }
2317
- },
2318
- // a percentage of the screen's height, from its top
2319
- popupHeight: {
2320
- type: "number",
2321
- scope: "layout",
2322
- title: "Height (%)",
2323
- min: 0,
2324
- max: 100,
2325
- display: { type: "percentage-input" }
2326
- },
2327
- // where the popup sits across the screen, and how far it is moved along from there, right or, negative, left
2328
- popupAlign: {
2329
- type: "string",
2330
- scope: "layout",
2331
- title: "Align",
2332
- enum: [...M],
2333
- display: { type: "align-group", direction: "horizontal" }
2334
- },
2335
- popupOffset: {
2336
- type: "number",
2337
- scope: "layout",
2338
- title: "Offset",
2339
- min: -1e4,
2340
- max: 1e4,
2341
- display: { type: "numeric-input" }
2342
- },
2343
- // moves the popup down from the screen's top, or up where negative
2344
- popupOffsetTop: {
2345
- type: "number",
2346
- scope: "layout",
2347
- title: "Offset Top",
2348
- min: -1e4,
2349
- max: 1e4,
2350
- display: { type: "numeric-input" }
2351
- },
2352
- titleGap: {
2353
- type: "number",
2354
- scope: "layout",
2355
- title: "Title gap",
2356
- min: 0,
2357
- max: 1e3,
2358
- display: { type: "numeric-input" }
2359
- },
2360
- popupRadius: {
2361
- type: "number",
2362
- scope: "layout",
2363
- title: "Popup Radius",
2364
- min: 0,
2365
- max: 1e3,
2366
- display: { type: "numeric-input" }
2367
- },
2368
- imageRadius: {
2369
- type: "number",
2370
- scope: "layout",
2371
- title: "Image Radius",
2372
- min: 0,
2373
- max: 1e3,
2374
- display: { type: "numeric-input" }
2375
- },
2376
- // how the popup shows and hides
2377
- popupTransition: {
2378
- type: "string",
2379
- scope: "common",
2380
- title: "Transition",
2381
- display: { type: "toggle-cycle", enum: [...P] }
2382
- },
2383
- // blurs the page behind the open popup, under the overlay's colour
2384
- overlayBlur: {
2385
- type: "number",
2386
- scope: "layout",
2387
- title: "Overlay Blur",
2388
- min: 0,
2389
- max: 100,
2390
- display: { type: "numeric-input" }
2391
- },
2392
- // colours picked in the open state's panel, which the palette keeps apart from the default state's
2393
- stateOverrides: {
2394
- type: "object",
2395
- scope: "common"
2396
- },
2397
- barBackgroundColor: {
2398
- type: "string",
2399
- scope: "common",
2400
- title: "Trigger BG",
2401
- display: { type: "palette-color-picker" }
2402
- },
2403
- triggerColor: {
2404
- type: "string",
2405
- scope: "common",
2406
- title: "Trigger",
2407
- display: { type: "palette-color-picker" }
2408
- },
2409
- overlayColor: {
2410
- type: "string",
2411
- scope: "common",
2412
- title: "Overlay",
2413
- display: { type: "palette-color-picker" }
2414
- },
2415
- popupBackgroundColor: {
2416
- type: "string",
2417
- scope: "common",
2418
- title: "Popup BG",
2419
- display: { type: "palette-color-picker" }
2420
- },
2421
- titleColor: {
2422
- type: "string",
2423
- scope: "common",
2424
- title: "Title",
2425
- display: { type: "palette-color-picker" }
2426
- },
2427
- textColor: {
2428
- type: "string",
2429
- scope: "common",
2430
- title: "Text",
2431
- display: { type: "palette-color-picker" }
2432
- },
2433
- listAColor: {
2434
- type: "string",
2435
- scope: "common",
2436
- title: "List A",
2437
- display: { type: "palette-color-picker" }
2438
- },
2439
- listBColor: {
2440
- type: "string",
2441
- scope: "common",
2442
- title: "List B",
2443
- display: { type: "palette-color-picker" }
2444
- },
2445
- ...i("trigger"),
2446
- ...i("title"),
2447
- ...i("text"),
2448
- ...i("listA"),
2449
- ...i("listB")
2450
- },
2451
- displayRules: V,
2452
- defaults: {
2453
- menuLayout: null,
2454
- triggerType: "burger",
2455
- triggerLabel: "Menu",
2456
- triggerIcon: null,
2457
- popupTransition: "slide down",
2458
- barBackgroundColor: "rgba(255, 255, 255, 0)",
2459
- triggerColor: "#000000",
2460
- overlayColor: "rgba(0, 0, 0, 0.35)",
2461
- popupBackgroundColor: "#ffffff",
2462
- titleColor: "#8c8c8c",
2463
- textColor: "#000000",
2464
- listAColor: "#000000",
2465
- listBColor: "#000000",
2466
- triggerFontFamily: "Inter",
2467
- triggerFontSettings: r,
2468
- titleFontFamily: "Inter",
2469
- titleFontSettings: r,
2470
- textFontFamily: "Inter",
2471
- textFontSettings: r,
2472
- listAFontFamily: "Inter",
2473
- listAFontSettings: r,
2474
- listBFontFamily: "Inter",
2475
- listBFontSettings: r
2476
- },
2477
- layoutDefaults: {
2478
- d: {
2479
- triggerPadding: { top: 16 / 1440, right: 16 / 1440, bottom: 16 / 1440, left: 16 / 1440 },
2480
- triggerIconSize: 24 / 1440,
2481
- popupHeight: 60,
2482
- popupAlign: "center",
2483
- popupOffset: 0,
2484
- popupOffsetTop: 0,
2485
- titleGap: 8 / 1440,
2486
- popupRadius: 16 / 1440,
2487
- imageRadius: 12 / 1440,
2488
- overlayBlur: 0,
2489
- // the popup is as wide as its grid: 12 columns of 99 and gutters of 20 fill 1408, 16 short of the screen on
2490
- // either side once centred, a width held while the columns or gutter change, as Catalogue holds its width
2491
- gridLayout: {
2492
- columnsCount: 12,
2493
- wrapperWidth: 1408 / 1440,
2494
- entryWidth: 99 / 1440,
2495
- horizontalGap: 20 / 1440,
2496
- lockedParam: "wrapperWidth"
2497
- },
2498
- verticalGap: 20 / 1440,
2499
- ...p(1440, { trigger: [14, 18], title: [14, 18], text: [14, 18], listA: [14, 18], listB: [14, 18] })
2500
- },
2501
- t: {
2502
- triggerPadding: { top: 16 / 768, right: 16 / 768, bottom: 16 / 768, left: 16 / 768 },
2503
- triggerIconSize: 24 / 768,
2504
- popupHeight: 60,
2505
- popupAlign: "center",
2506
- popupOffset: 0,
2507
- popupOffsetTop: 0,
2508
- titleGap: 6 / 768,
2509
- popupRadius: 12 / 768,
2510
- imageRadius: 10 / 768,
2511
- overlayBlur: 0,
2512
- // 12 columns of 51 and gutters of 12 fill 744, 12 short of the screen on either side
2513
- gridLayout: {
2514
- columnsCount: 12,
2515
- wrapperWidth: 744 / 768,
2516
- entryWidth: 51 / 768,
2517
- horizontalGap: 12 / 768,
2518
- lockedParam: "wrapperWidth"
2519
- },
2520
- verticalGap: 12 / 768,
2521
- ...p(768, { trigger: [14, 18], title: [14, 18], text: [14, 18], listA: [14, 18], listB: [14, 18] })
2522
- },
2523
- m: {
2524
- triggerPadding: { top: 12 / 375, right: 12 / 375, bottom: 12 / 375, left: 12 / 375 },
2525
- triggerIconSize: 24 / 375,
2526
- popupHeight: 60,
2527
- popupAlign: "center",
2528
- popupOffset: 0,
2529
- popupOffsetTop: 0,
2530
- titleGap: 6 / 375,
2531
- popupRadius: 10 / 375,
2532
- imageRadius: 8 / 375,
2533
- overlayBlur: 0,
2534
- // 6 columns of 54 and gutters of 7 fill 359, 8 short of the screen on either side
2535
- gridLayout: {
2536
- columnsCount: 6,
2537
- wrapperWidth: 359 / 375,
2538
- entryWidth: 54 / 375,
2539
- horizontalGap: 7 / 375,
2540
- lockedParam: "wrapperWidth"
2541
- },
2542
- verticalGap: 8 / 375,
2543
- ...p(375, { trigger: [13, 16], title: [13, 16], text: [13, 16], listA: [13, 16], listB: [13, 16] })
2544
- }
2545
- }
2546
- },
2547
- panels: [
2548
- {
2549
- id: "default",
2550
- icon: "default",
2551
- title: "Default",
2552
- tooltip: "Default State",
2553
- layout: [
2554
- "__componentName__",
2555
- "triggerType",
2556
- "triggerLabel",
2557
- { type: "row", items: ["triggerIcon", "triggerIconSize"] },
2558
- "triggerPadding"
2559
- ]
2560
- },
2561
- {
2562
- id: "open",
2563
- icon: "open",
2564
- title: "Open",
2565
- tooltip: "Open State",
2566
- layout: [
2567
- "__componentName__",
2568
- "popupAlign",
2569
- { type: "row", items: ["popupOffset", "popupOffsetTop"] },
2570
- { type: "row", items: ["popupHeight", "popupRadius"] },
2571
- { type: "row", items: ["titleGap", "imageRadius"] },
2572
- { type: "row", items: ["overlayBlur", "popupTransition"] },
2573
- { type: "row", title: "Grid", items: [{ type: "group", title: "", items: ["gridLayout"] }] },
2574
- "verticalGap"
2575
- ]
2576
- },
2577
- {
2578
- id: "typeStyle",
2579
- icon: "text-icon",
2580
- title: "Type Style",
2581
- tooltip: "Typography",
2582
- layout: [
2583
- "__componentName__",
2584
- D
2585
- ]
2586
- }
2587
- ],
2588
- paletteBookmark: {
2589
- items: [...Q],
2590
- panelIds: ["default", "open", "typeStyle"],
2591
- stateItems: {
2592
- default: ["barBackgroundColor", "triggerColor"],
2593
- open: ["overlayColor", "popupBackgroundColor", "titleColor", "textColor", "listAColor", "listBColor", "triggerColor"]
2594
- }
2595
- },
2596
- statePanels: ["default", "open"]
2597
- }, U = {
2598
- element: G,
2599
- id: "popup-menu",
2600
- name: "Popup Menu",
2601
- category: "navigation",
2602
- version: 1,
2603
- // the project's navigation, on every page, but placed and sized like an item rather than spanning the page:
2604
- // the trigger stays where it is on the screen as the page scrolls
2605
- layoutMode: "navigation",
2606
- navigationLayout: "freeform",
2607
- // the trigger alone: a 24 icon with 16 round it (12 on mobile); the popup opens over the page from it
2608
- defaultSize: {
2609
- d: {
2610
- width: 56,
2611
- height: 56
2612
- },
2613
- t: {
2614
- width: 56,
2615
- height: 56
2616
- },
2617
- m: {
2618
- width: 48,
2619
- height: 48
2620
- }
2621
- },
2622
- schema: X,
2623
- assetsPaths: {
2624
- content: [{ path: "images.assetId", placeholderEnabled: !0 }],
2625
- parameters: [{ path: "triggerIcon" }]
2626
- },
2627
- fontSettingsPaths: {
2628
- content: [],
2629
- parameters: [
2630
- { path: "triggerFontFamily" },
2631
- { path: "titleFontFamily" },
2632
- { path: "textFontFamily" },
2633
- { path: "listAFontFamily" },
2634
- { path: "listBFontFamily" }
2635
- ]
2636
- },
2637
- fontRelations: {
2638
- triggerFontSettings: "triggerFontFamily",
2639
- titleFontSettings: "titleFontFamily",
2640
- textFontSettings: "textFontFamily",
2641
- listAFontSettings: "listAFontFamily",
2642
- listBFontSettings: "listBFontFamily"
2643
- }
2644
- }, Z = [
2645
- O,
2646
- R,
2022
+ }, F = [
2023
+ j,
2024
+ E,
2025
+ o,
2026
+ A,
2027
+ r,
2028
+ p,
2029
+ n,
2030
+ l,
2031
+ s,
2032
+ a,
2033
+ c,
2647
2034
  y,
2648
- H,
2649
2035
  g,
2650
2036
  m,
2651
- u,
2652
2037
  d,
2038
+ u,
2653
2039
  b,
2654
2040
  h,
2655
2041
  f,
2656
2042
  v,
2043
+ C,
2657
2044
  x,
2658
2045
  S,
2659
- C,
2660
- I,
2661
2046
  k,
2662
- T,
2663
- A,
2664
- j,
2665
- F,
2666
- B,
2667
- w,
2668
- E,
2669
- z,
2670
- U
2047
+ I
2671
2048
  ];
2672
2049
  export {
2673
- O as C,
2674
- H as L,
2675
- U as P,
2676
- R as a,
2677
- Z as c
2050
+ j as C,
2051
+ A as L,
2052
+ E as a,
2053
+ F as c
2678
2054
  };