@vectoriox/iox-ui 5.133.0 → 5.135.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/commerce-core/index.d.ts +12 -1
  2. package/composite-core/index.d.ts +27 -22
  3. package/design-core/index.d.ts +436 -35
  4. package/domain-core/index.d.ts +353 -0
  5. package/domain-core/package.json +3 -0
  6. package/fesm2022/vectoriox-iox-ui-actions-core.mjs +2 -0
  7. package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
  8. package/fesm2022/vectoriox-iox-ui-assist-core.mjs +6 -48
  9. package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
  10. package/fesm2022/vectoriox-iox-ui-commerce-core.mjs +21 -0
  11. package/fesm2022/vectoriox-iox-ui-commerce-core.mjs.map +1 -1
  12. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +68 -57
  13. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  14. package/fesm2022/vectoriox-iox-ui-design-core.mjs +895 -416
  15. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  16. package/fesm2022/vectoriox-iox-ui-domain-core.mjs +422 -0
  17. package/fesm2022/vectoriox-iox-ui-domain-core.mjs.map +1 -0
  18. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +14039 -12067
  19. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  20. package/fesm2022/vectoriox-iox-ui-harness-core.mjs +9 -3
  21. package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
  22. package/fesm2022/vectoriox-iox-ui-mail-core.mjs +210 -2
  23. package/fesm2022/vectoriox-iox-ui-mail-core.mjs.map +1 -1
  24. package/fesm2022/vectoriox-iox-ui.mjs +290 -16
  25. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  26. package/generation-core/index.d.ts +1511 -432
  27. package/harness-core/index.d.ts +6 -1
  28. package/index.d.ts +139 -10
  29. package/mail-core/index.d.ts +190 -2
  30. package/package.json +5 -1
  31. package/src/actions-core/element-actions.ts +2 -0
  32. package/src/assist-core/page-sections.ts +7 -37
  33. package/src/commerce-core/shop-display.ts +21 -0
  34. package/src/composite-core/shop.ts +71 -57
  35. package/src/design-core/design-settings.ts +16 -0
  36. package/src/design-core/design-token.model.ts +7 -1
  37. package/src/design-core/flavor-spec.generated.ts +374 -35
  38. package/src/design-core/flavor-tokens.ts +12 -1
  39. package/src/design-core/header-behaviour.ts +32 -0
  40. package/src/design-core/motion-language.ts +115 -0
  41. package/src/design-core/public-api.ts +1 -0
  42. package/src/design-core/style-presets.ts +3 -0
  43. package/src/domain-core/domain-vocabulary.ts +125 -0
  44. package/src/domain-core/domain-wire.ts +95 -0
  45. package/src/domain-core/org-path-redirect.ts +105 -0
  46. package/src/domain-core/public-api.ts +12 -0
  47. package/src/domain-core/web-domain.ts +251 -0
  48. package/src/generation-core/carry-fill.ts +36 -0
  49. package/src/generation-core/carry.ts +398 -0
  50. package/src/generation-core/check-carry.ts +216 -0
  51. package/src/generation-core/check-layout.ts +71 -5
  52. package/src/generation-core/compose-layout.ts +187 -28
  53. package/src/generation-core/compose-site.ts +154 -31
  54. package/src/generation-core/entrances.ts +66 -10
  55. package/src/generation-core/header-edit.ts +299 -0
  56. package/src/generation-core/header-mix.ts +64 -5
  57. package/src/generation-core/layout-fingerprint.ts +5 -1
  58. package/src/generation-core/layout-language.ts +20 -1
  59. package/src/generation-core/layout-space.ts +4 -4
  60. package/src/generation-core/layout-wire.ts +36 -1
  61. package/src/generation-core/node-baselines.generated.ts +1 -0
  62. package/src/generation-core/public-api.ts +7 -0
  63. package/src/generation-core/redesign-additions.ts +273 -0
  64. package/src/generation-core/redesign-run.ts +364 -0
  65. package/src/generation-core/refit-page.ts +151 -0
  66. package/src/generation-core/section-stamp.ts +4 -4
  67. package/src/generation-core/shop-plan.ts +15 -0
  68. package/src/generation-core/site-build-run.ts +67 -3
  69. package/src/generation-core/site-spec.generated.ts +194 -94
  70. package/src/generation-core/site-tree.ts +19 -5
  71. package/src/generation-core/validate-site-plan.ts +37 -3
  72. package/src/harness-core/motion.ts +13 -3
  73. package/src/harness-core/starting-design.ts +1 -1
  74. package/src/mail-core/mail-domain.ts +305 -0
  75. package/src/mail-core/mail-wire.ts +8 -0
  76. package/src/mail-core/public-api.ts +3 -1
  77. package/styles/iox-design.css +30 -1
@@ -496,6 +496,12 @@ const SPEC_TIERS = {
496
496
  "group": "motion",
497
497
  "desc": ""
498
498
  },
499
+ {
500
+ "name": "ease-pop",
501
+ "type": "easing",
502
+ "group": "motion",
503
+ "desc": "Settles just past its place (Lively, Expressive)"
504
+ },
499
505
  {
500
506
  "name": "ease-spring",
501
507
  "type": "easing",
@@ -1722,6 +1728,7 @@ const SPEC_AXES = {
1722
1728
  "dur-slow": "0ms",
1723
1729
  "ease-standard": "linear",
1724
1730
  "ease-spring": "linear",
1731
+ "ease-pop": "linear",
1725
1732
  "dur-spring": "0ms",
1726
1733
  "hover-lift": "0px",
1727
1734
  "press-scale": "1",
@@ -1744,8 +1751,8 @@ const SPEC_AXES = {
1744
1751
  "dur-base": "140ms",
1745
1752
  "dur-slow": "240ms",
1746
1753
  "ease-standard": "cubic-bezier(0.2, 0, 0, 1)",
1747
- "ease-spring": "cubic-bezier(0.2, 0, 0, 1)",
1748
- "dur-spring": "140ms",
1754
+ "ease-spring": "linear(0, 0.0179, 0.0648, 0.1315, 0.2107, 0.2964, 0.384, 0.4701, 0.552, 0.6281, 0.6972, 0.7588, 0.8128, 0.8592, 0.8985, 0.9311, 0.9576, 0.9787, 0.9951, 1.0074, 1.0163, 1.0224, 1.0261, 1.0279, 1.0284, 1.0277, 1.0263, 1.0243, 1.022, 1.0196, 1.0171, 1.0147, 1.0124, 1.0102, 1.0083, 1.0066, 1.0051, 1.0038, 1.0027, 1.0018, 1)",
1755
+ "dur-spring": "240ms",
1749
1756
  "hover-lift": "-2px",
1750
1757
  "press-scale": "0.97",
1751
1758
  "dur-hover": "80ms",
@@ -1759,7 +1766,8 @@ const SPEC_AXES = {
1759
1766
  "sheet-dur-in": "400ms",
1760
1767
  "sheet-dur-out": "240ms",
1761
1768
  "toast-dur-in": "320ms",
1762
- "toast-dur-out": "180ms"
1769
+ "toast-dur-out": "180ms",
1770
+ "ease-pop": "cubic-bezier(0.34, 1.56, 0.64, 1)"
1763
1771
  },
1764
1772
  "standard": {
1765
1773
  "label": "Standard",
@@ -1767,8 +1775,8 @@ const SPEC_AXES = {
1767
1775
  "dur-base": "200ms",
1768
1776
  "dur-slow": "320ms",
1769
1777
  "ease-standard": "cubic-bezier(0.2, 0, 0, 1)",
1770
- "ease-spring": "cubic-bezier(0.2, 0, 0, 1)",
1771
- "dur-spring": "200ms",
1778
+ "ease-spring": "linear(0, 0.018, 0.0649, 0.1318, 0.2111, 0.2969, 0.3846, 0.4707, 0.5527, 0.6288, 0.6979, 0.7595, 0.8135, 0.8598, 0.899, 0.9315, 0.958, 0.979, 0.9954, 1.0076, 1.0165, 1.0225, 1.0261, 1.028, 1.0284, 1.0277, 1.0262, 1.0243, 1.022, 1.0195, 1.017, 1.0146, 1.0123, 1.0102, 1.0082, 1.0065, 1.005, 1.0038, 1.0027, 1.0018, 1)",
1779
+ "dur-spring": "320ms",
1772
1780
  "hover-lift": "-2px",
1773
1781
  "press-scale": "0.98",
1774
1782
  "dur-hover": "120ms",
@@ -1782,7 +1790,8 @@ const SPEC_AXES = {
1782
1790
  "sheet-dur-in": "500ms",
1783
1791
  "sheet-dur-out": "280ms",
1784
1792
  "toast-dur-in": "400ms",
1785
- "toast-dur-out": "220ms"
1793
+ "toast-dur-out": "220ms",
1794
+ "ease-pop": "cubic-bezier(0.34, 1.56, 0.64, 1)"
1786
1795
  },
1787
1796
  "calm": {
1788
1797
  "label": "Calm",
@@ -1790,8 +1799,8 @@ const SPEC_AXES = {
1790
1799
  "dur-base": "400ms",
1791
1800
  "dur-slow": "800ms",
1792
1801
  "ease-standard": "cubic-bezier(0.33, 0, 0.1, 1)",
1793
- "ease-spring": "cubic-bezier(0.33, 0, 0.1, 1)",
1794
- "dur-spring": "400ms",
1802
+ "ease-spring": "linear(0, 0.018, 0.0652, 0.1322, 0.2117, 0.2977, 0.3856, 0.4718, 0.5539, 0.63, 0.6992, 0.7607, 0.8146, 0.8609, 0.9, 0.9324, 0.9587, 0.9796, 0.9959, 1.008, 1.0168, 1.0227, 1.0262, 1.028, 1.0283, 1.0276, 1.0261, 1.0241, 1.0218, 1.0194, 1.0169, 1.0145, 1.0122, 1.01, 1.0081, 1.0064, 1.005, 1.0037, 1.0026, 1.0017, 1)",
1803
+ "dur-spring": "800ms",
1795
1804
  "hover-lift": "0px",
1796
1805
  "press-scale": "0.98",
1797
1806
  "dur-hover": "150ms",
@@ -1805,7 +1814,8 @@ const SPEC_AXES = {
1805
1814
  "sheet-dur-in": "600ms",
1806
1815
  "sheet-dur-out": "340ms",
1807
1816
  "toast-dur-in": "480ms",
1808
- "toast-dur-out": "280ms"
1817
+ "toast-dur-out": "280ms",
1818
+ "ease-pop": "cubic-bezier(0.34, 1.56, 0.64, 1)"
1809
1819
  },
1810
1820
  "lively": {
1811
1821
  "label": "Lively",
@@ -1828,12 +1838,13 @@ const SPEC_AXES = {
1828
1838
  "sheet-dur-in": "500ms",
1829
1839
  "sheet-dur-out": "280ms",
1830
1840
  "toast-dur-in": "400ms",
1831
- "toast-dur-out": "220ms"
1841
+ "toast-dur-out": "220ms",
1842
+ "ease-pop": "cubic-bezier(0.34, 1.56, 0.64, 1)"
1832
1843
  }
1833
1844
  },
1834
1845
  "motionCommon": {
1835
1846
  "ease-enter": "cubic-bezier(0.05, 0.7, 0.1, 1)",
1836
- "ease-exit": "cubic-bezier(0.3, 0, 0.8, 0.15)",
1847
+ "ease-exit": "cubic-bezier(0.25, 1, 0.5, 1)",
1837
1848
  "ease-hover": "ease"
1838
1849
  },
1839
1850
  "modes": [
@@ -2104,6 +2115,53 @@ const SPEC_AXES = {
2104
2115
  "transition": "parallax-up",
2105
2116
  "feel": "cinematic",
2106
2117
  "phone": "fade"
2118
+ },
2119
+ "flood": {
2120
+ "label": "Flood",
2121
+ "he": "הצפה",
2122
+ "hint": "A panel in your accent colour covers the page, then uncovers the next. On phones: Fade.",
2123
+ "transition": "cover-flood",
2124
+ "feel": "snappy",
2125
+ "phone": "fade"
2126
+ },
2127
+ "wipe": {
2128
+ "label": "Wipe",
2129
+ "he": "מגב",
2130
+ "hint": "A panel in the site's dark ground wipes up over the page, then off the next. On phones: Fade.",
2131
+ "transition": "cover-wipe",
2132
+ "feel": "snappy",
2133
+ "phone": "fade"
2134
+ },
2135
+ "circle": {
2136
+ "label": "Circle",
2137
+ "he": "עיגול",
2138
+ "hint": "The next page opens as a circle from where the visitor clicked. On phones: Fade.",
2139
+ "transition": "cover-circle",
2140
+ "feel": "snappy",
2141
+ "phone": "fade"
2142
+ },
2143
+ "veil": {
2144
+ "label": "Veil",
2145
+ "he": "מסך",
2146
+ "hint": "The next page's opening picture covers the screen, then gives way to the page (a page without one fades). On phones: Fade.",
2147
+ "transition": "cover-veil",
2148
+ "feel": "snappy",
2149
+ "phone": "fade"
2150
+ },
2151
+ "interstitial": {
2152
+ "label": "Line",
2153
+ "he": "שורה",
2154
+ "hint": "The next page's name, alone on the ground for a moment, then the page. On phones: Fade.",
2155
+ "transition": "cover-line",
2156
+ "feel": "snappy",
2157
+ "phone": "fade"
2158
+ },
2159
+ "controls": {
2160
+ "label": "Controls",
2161
+ "he": "פקדים",
2162
+ "hint": "No cover: the header's links fade in again and the page cross-fades.",
2163
+ "transition": "cover-controls",
2164
+ "feel": "snappy"
2107
2165
  }
2108
2166
  },
2109
2167
  "motionChoices": {
@@ -2129,6 +2187,244 @@ const SPEC_SPRINGS = {
2129
2187
  }
2130
2188
  }
2131
2189
  };
2190
+ const SPEC_MOTION_LANGUAGE = {
2191
+ "arrive": [
2192
+ "enter",
2193
+ "expo-out",
2194
+ "quart-out",
2195
+ "spring",
2196
+ "pop"
2197
+ ],
2198
+ "leave": [
2199
+ "exit",
2200
+ "expo-out",
2201
+ "quart-out"
2202
+ ],
2203
+ "move": [
2204
+ "rise",
2205
+ "mask-rise",
2206
+ "clip",
2207
+ "fade",
2208
+ "words-lit",
2209
+ "blur-in"
2210
+ ],
2211
+ "curves": {
2212
+ "enter": "cubic-bezier(0.05, 0.7, 0.1, 1)",
2213
+ "expo-out": "cubic-bezier(0.16, 1, 0.3, 1)",
2214
+ "quart-out": "cubic-bezier(0.25, 1, 0.5, 1)",
2215
+ "spring": "{{ease-spring}}",
2216
+ "pop": "cubic-bezier(0.34, 1.56, 0.64, 1)",
2217
+ "exit": "cubic-bezier(0.25, 1, 0.5, 1)"
2218
+ },
2219
+ "tiers": {
2220
+ "arrive": {
2221
+ "enter": "all",
2222
+ "expo-out": "pro",
2223
+ "quart-out": "pro",
2224
+ "spring": "pro",
2225
+ "pop": "pro"
2226
+ },
2227
+ "leave": {
2228
+ "exit": "all",
2229
+ "expo-out": "pro",
2230
+ "quart-out": "all"
2231
+ },
2232
+ "move": {
2233
+ "rise": "all",
2234
+ "mask-rise": "all",
2235
+ "clip": "all",
2236
+ "fade": "all",
2237
+ "words-lit": "all",
2238
+ "blur-in": "pro"
2239
+ },
2240
+ "cover": {
2241
+ "none": "all",
2242
+ "fade": "all",
2243
+ "slide": "all",
2244
+ "cinematic": "all",
2245
+ "flood": "pro",
2246
+ "wipe": "pro",
2247
+ "circle": "pro",
2248
+ "veil": "pro",
2249
+ "interstitial": "pro",
2250
+ "controls": "pro"
2251
+ }
2252
+ },
2253
+ "meanings": {
2254
+ "arrive.enter": "today's arrival curve (a quick start, a long soft landing)",
2255
+ "arrive.expo-out": "a fast start that settles very softly",
2256
+ "arrive.quart-out": "a quick start, a firm landing",
2257
+ "arrive.spring": "the look's spring, settling with a little give",
2258
+ "arrive.pop": "settles just past its place and back (Lively and Expressive looks only)",
2259
+ "move.rise": "headings rise into place",
2260
+ "move.mask-rise": "heading lines rise out of their own masks, one by one",
2261
+ "move.clip": "headings and pictures open from one side",
2262
+ "move.fade": "headings fade in, nothing travels",
2263
+ "move.words-lit": "words light one after another",
2264
+ "move.blur-in": "headings come from blur into focus"
2265
+ },
2266
+ "defaults": {
2267
+ "arrive": "enter",
2268
+ "leave": "quart-out",
2269
+ "move": "rise"
2270
+ },
2271
+ "presets": {
2272
+ "clear-care": {
2273
+ "arrive": "quart-out",
2274
+ "leave": "quart-out",
2275
+ "move": "rise"
2276
+ },
2277
+ "swiss-grid": {
2278
+ "arrive": "quart-out",
2279
+ "leave": "quart-out",
2280
+ "move": "clip"
2281
+ },
2282
+ "trusted-advisor": {
2283
+ "arrive": "quart-out",
2284
+ "leave": "quart-out",
2285
+ "move": "rise"
2286
+ },
2287
+ "fresh-practice": {
2288
+ "arrive": "expo-out",
2289
+ "leave": "quart-out",
2290
+ "move": "fade"
2291
+ },
2292
+ "gallery-minimal": {
2293
+ "arrive": "expo-out",
2294
+ "leave": "quart-out",
2295
+ "move": "fade"
2296
+ },
2297
+ "warm-editorial": {
2298
+ "arrive": "quart-out",
2299
+ "leave": "quart-out",
2300
+ "move": "mask-rise"
2301
+ },
2302
+ "soft-spa": {
2303
+ "arrive": "expo-out",
2304
+ "leave": "quart-out",
2305
+ "move": "blur-in"
2306
+ },
2307
+ "quiet-luxury": {
2308
+ "arrive": "expo-out",
2309
+ "leave": "expo-out",
2310
+ "move": "fade"
2311
+ },
2312
+ "after-dark": {
2313
+ "arrive": "expo-out",
2314
+ "leave": "quart-out",
2315
+ "move": "mask-rise"
2316
+ },
2317
+ "ink-studio": {
2318
+ "arrive": "quart-out",
2319
+ "leave": "quart-out",
2320
+ "move": "mask-rise"
2321
+ },
2322
+ "night-gallery": {
2323
+ "arrive": "expo-out",
2324
+ "leave": "quart-out",
2325
+ "move": "blur-in"
2326
+ },
2327
+ "tech-studio": {
2328
+ "arrive": "quart-out",
2329
+ "leave": "quart-out",
2330
+ "move": "words-lit"
2331
+ },
2332
+ "morning-glass": {
2333
+ "arrive": "expo-out",
2334
+ "leave": "quart-out",
2335
+ "move": "blur-in"
2336
+ },
2337
+ "holiday-light": {
2338
+ "arrive": "spring",
2339
+ "leave": "quart-out",
2340
+ "move": "rise"
2341
+ },
2342
+ "frosted-portfolio": {
2343
+ "arrive": "expo-out",
2344
+ "leave": "quart-out",
2345
+ "move": "blur-in"
2346
+ },
2347
+ "coral-studio": {
2348
+ "arrive": "pop",
2349
+ "leave": "quart-out",
2350
+ "move": "rise"
2351
+ },
2352
+ "corner-cafe": {
2353
+ "arrive": "spring",
2354
+ "leave": "quart-out",
2355
+ "move": "rise"
2356
+ },
2357
+ "kind-community": {
2358
+ "arrive": "quart-out",
2359
+ "leave": "quart-out",
2360
+ "move": "rise"
2361
+ },
2362
+ "little-ones": {
2363
+ "arrive": "pop",
2364
+ "leave": "quart-out",
2365
+ "move": "rise"
2366
+ },
2367
+ "garden-party": {
2368
+ "arrive": "spring",
2369
+ "leave": "quart-out",
2370
+ "move": "rise"
2371
+ },
2372
+ "bold-maker": {
2373
+ "arrive": "pop",
2374
+ "leave": "quart-out",
2375
+ "move": "mask-rise"
2376
+ },
2377
+ "festival": {
2378
+ "arrive": "pop",
2379
+ "leave": "quart-out",
2380
+ "move": "rise"
2381
+ },
2382
+ "zine": {
2383
+ "arrive": "quart-out",
2384
+ "leave": "quart-out",
2385
+ "move": "clip"
2386
+ },
2387
+ "fresh-market": {
2388
+ "arrive": "spring",
2389
+ "leave": "quart-out",
2390
+ "move": "rise"
2391
+ }
2392
+ },
2393
+ "leaveFor": {
2394
+ "enter": "exit",
2395
+ "expo-out": "expo-out",
2396
+ "quart-out": "quart-out",
2397
+ "spring": "quart-out",
2398
+ "pop": "quart-out"
2399
+ },
2400
+ "leaveShare": 0.5,
2401
+ "popLevels": [
2402
+ "lively",
2403
+ "expressive"
2404
+ ],
2405
+ "quietLevels": [
2406
+ "subtle"
2407
+ ],
2408
+ "quiet": {
2409
+ "riseDistance": 8,
2410
+ "clipFrom": 85,
2411
+ "maskBy": "together"
2412
+ },
2413
+ "planFallback": {
2414
+ "arrive": "enter",
2415
+ "move": "fade",
2416
+ "cover": "fade"
2417
+ },
2418
+ "coverMaxMs": {
2419
+ "cover": 400,
2420
+ "hold": 120,
2421
+ "uncover": 500
2422
+ },
2423
+ "reduced": {
2424
+ "enter": "fade",
2425
+ "enterMaxMs": 200
2426
+ }
2427
+ };
2132
2428
  const SPEC_MOODS = {
2133
2429
  "calm": "Calm",
2134
2430
  "warm": "Warm",
@@ -2291,7 +2587,7 @@ const SPEC_STYLE_PRESETS = [
2291
2587
  "moves": {
2292
2588
  "scroll": "extra",
2293
2589
  "animate": "subtle",
2294
- "between": "fade"
2590
+ "between": "interstitial"
2295
2591
  },
2296
2592
  "modes": [
2297
2593
  "light",
@@ -2324,7 +2620,7 @@ const SPEC_STYLE_PRESETS = [
2324
2620
  "moves": {
2325
2621
  "scroll": "smooth",
2326
2622
  "animate": "subtle",
2327
- "between": "fade"
2623
+ "between": "interstitial"
2328
2624
  },
2329
2625
  "modes": [
2330
2626
  "light"
@@ -2421,7 +2717,7 @@ const SPEC_STYLE_PRESETS = [
2421
2717
  "moves": {
2422
2718
  "scroll": "smooth",
2423
2719
  "animate": "expressive",
2424
- "between": "slide"
2720
+ "between": "flood"
2425
2721
  },
2426
2722
  "modes": [
2427
2723
  "dark"
@@ -2453,7 +2749,7 @@ const SPEC_STYLE_PRESETS = [
2453
2749
  "moves": {
2454
2750
  "scroll": "normal",
2455
2751
  "animate": "standard",
2456
- "between": "slide"
2752
+ "between": "wipe"
2457
2753
  },
2458
2754
  "modes": [
2459
2755
  "dark"
@@ -2485,7 +2781,7 @@ const SPEC_STYLE_PRESETS = [
2485
2781
  "moves": {
2486
2782
  "scroll": "extra",
2487
2783
  "animate": "subtle",
2488
- "between": "cinematic"
2784
+ "between": "veil"
2489
2785
  },
2490
2786
  "modes": [
2491
2787
  "dark",
@@ -2583,7 +2879,7 @@ const SPEC_STYLE_PRESETS = [
2583
2879
  "moves": {
2584
2880
  "scroll": "smooth",
2585
2881
  "animate": "lively",
2586
- "between": "slide"
2882
+ "between": "circle"
2587
2883
  },
2588
2884
  "modes": [
2589
2885
  "light"
@@ -2741,7 +3037,7 @@ const SPEC_STYLE_PRESETS = [
2741
3037
  "moves": {
2742
3038
  "scroll": "normal",
2743
3039
  "animate": "lively",
2744
- "between": "slide"
3040
+ "between": "circle"
2745
3041
  },
2746
3042
  "modes": [
2747
3043
  "light"
@@ -2804,7 +3100,7 @@ const SPEC_STYLE_PRESETS = [
2804
3100
  "moves": {
2805
3101
  "scroll": "normal",
2806
3102
  "animate": "expressive",
2807
- "between": "slide"
3103
+ "between": "flood"
2808
3104
  },
2809
3105
  "modes": [
2810
3106
  "light"
@@ -2836,7 +3132,7 @@ const SPEC_STYLE_PRESETS = [
2836
3132
  "moves": {
2837
3133
  "scroll": "normal",
2838
3134
  "animate": "lively",
2839
- "between": "slide"
3135
+ "between": "circle"
2840
3136
  },
2841
3137
  "modes": [
2842
3138
  "light",
@@ -2869,7 +3165,7 @@ const SPEC_STYLE_PRESETS = [
2869
3165
  "moves": {
2870
3166
  "scroll": "normal",
2871
3167
  "animate": "expressive",
2872
- "between": "slide"
3168
+ "between": "wipe"
2873
3169
  },
2874
3170
  "modes": [
2875
3171
  "light"
@@ -6335,21 +6631,28 @@ const SPEC_FLAVOR_PACKS = [
6335
6631
  "tier": "semantic",
6336
6632
  "type": "easing",
6337
6633
  "group": "motion",
6338
- "value": "cubic-bezier(0.3, 0, 0.8, 0.15)"
6634
+ "value": "cubic-bezier(0.25, 1, 0.5, 1)"
6635
+ },
6636
+ {
6637
+ "name": "ease-pop",
6638
+ "tier": "semantic",
6639
+ "type": "easing",
6640
+ "group": "motion",
6641
+ "value": "cubic-bezier(0.34, 1.56, 0.64, 1)"
6339
6642
  },
6340
6643
  {
6341
6644
  "name": "ease-spring",
6342
6645
  "tier": "semantic",
6343
6646
  "type": "easing",
6344
6647
  "group": "motion",
6345
- "value": "cubic-bezier(0.2, 0, 0, 1)"
6648
+ "value": "linear(0, 0.018, 0.0649, 0.1318, 0.2111, 0.2969, 0.3846, 0.4707, 0.5527, 0.6288, 0.6979, 0.7595, 0.8135, 0.8598, 0.899, 0.9315, 0.958, 0.979, 0.9954, 1.0076, 1.0165, 1.0225, 1.0261, 1.028, 1.0284, 1.0277, 1.0262, 1.0243, 1.022, 1.0195, 1.017, 1.0146, 1.0123, 1.0102, 1.0082, 1.0065, 1.005, 1.0038, 1.0027, 1.0018, 1)"
6346
6649
  },
6347
6650
  {
6348
6651
  "name": "dur-spring",
6349
6652
  "tier": "semantic",
6350
6653
  "type": "duration",
6351
6654
  "group": "motion",
6352
- "value": "200ms"
6655
+ "value": "320ms"
6353
6656
  },
6354
6657
  {
6355
6658
  "name": "hover-lift",
@@ -8675,21 +8978,28 @@ const SPEC_FLAVOR_PACKS = [
8675
8978
  "tier": "semantic",
8676
8979
  "type": "easing",
8677
8980
  "group": "motion",
8678
- "value": "cubic-bezier(0.3, 0, 0.8, 0.15)"
8981
+ "value": "cubic-bezier(0.25, 1, 0.5, 1)"
8982
+ },
8983
+ {
8984
+ "name": "ease-pop",
8985
+ "tier": "semantic",
8986
+ "type": "easing",
8987
+ "group": "motion",
8988
+ "value": "cubic-bezier(0.34, 1.56, 0.64, 1)"
8679
8989
  },
8680
8990
  {
8681
8991
  "name": "ease-spring",
8682
8992
  "tier": "semantic",
8683
8993
  "type": "easing",
8684
8994
  "group": "motion",
8685
- "value": "cubic-bezier(0.33, 0, 0.1, 1)"
8995
+ "value": "linear(0, 0.018, 0.0652, 0.1322, 0.2117, 0.2977, 0.3856, 0.4718, 0.5539, 0.63, 0.6992, 0.7607, 0.8146, 0.8609, 0.9, 0.9324, 0.9587, 0.9796, 0.9959, 1.008, 1.0168, 1.0227, 1.0262, 1.028, 1.0283, 1.0276, 1.0261, 1.0241, 1.0218, 1.0194, 1.0169, 1.0145, 1.0122, 1.01, 1.0081, 1.0064, 1.005, 1.0037, 1.0026, 1.0017, 1)"
8686
8996
  },
8687
8997
  {
8688
8998
  "name": "dur-spring",
8689
8999
  "tier": "semantic",
8690
9000
  "type": "duration",
8691
9001
  "group": "motion",
8692
- "value": "400ms"
9002
+ "value": "800ms"
8693
9003
  },
8694
9004
  {
8695
9005
  "name": "hover-lift",
@@ -11047,21 +11357,28 @@ const SPEC_FLAVOR_PACKS = [
11047
11357
  "tier": "semantic",
11048
11358
  "type": "easing",
11049
11359
  "group": "motion",
11050
- "value": "cubic-bezier(0.3, 0, 0.8, 0.15)"
11360
+ "value": "cubic-bezier(0.25, 1, 0.5, 1)"
11361
+ },
11362
+ {
11363
+ "name": "ease-pop",
11364
+ "tier": "semantic",
11365
+ "type": "easing",
11366
+ "group": "motion",
11367
+ "value": "cubic-bezier(0.34, 1.56, 0.64, 1)"
11051
11368
  },
11052
11369
  {
11053
11370
  "name": "ease-spring",
11054
11371
  "tier": "semantic",
11055
11372
  "type": "easing",
11056
11373
  "group": "motion",
11057
- "value": "cubic-bezier(0.2, 0, 0, 1)"
11374
+ "value": "linear(0, 0.018, 0.0649, 0.1318, 0.2111, 0.2969, 0.3846, 0.4707, 0.5527, 0.6288, 0.6979, 0.7595, 0.8135, 0.8598, 0.899, 0.9315, 0.958, 0.979, 0.9954, 1.0076, 1.0165, 1.0225, 1.0261, 1.028, 1.0284, 1.0277, 1.0262, 1.0243, 1.022, 1.0195, 1.017, 1.0146, 1.0123, 1.0102, 1.0082, 1.0065, 1.005, 1.0038, 1.0027, 1.0018, 1)"
11058
11375
  },
11059
11376
  {
11060
11377
  "name": "dur-spring",
11061
11378
  "tier": "semantic",
11062
11379
  "type": "duration",
11063
11380
  "group": "motion",
11064
- "value": "200ms"
11381
+ "value": "320ms"
11065
11382
  },
11066
11383
  {
11067
11384
  "name": "hover-lift",
@@ -13415,7 +13732,14 @@ const SPEC_FLAVOR_PACKS = [
13415
13732
  "tier": "semantic",
13416
13733
  "type": "easing",
13417
13734
  "group": "motion",
13418
- "value": "cubic-bezier(0.3, 0, 0.8, 0.15)"
13735
+ "value": "cubic-bezier(0.25, 1, 0.5, 1)"
13736
+ },
13737
+ {
13738
+ "name": "ease-pop",
13739
+ "tier": "semantic",
13740
+ "type": "easing",
13741
+ "group": "motion",
13742
+ "value": "cubic-bezier(0.34, 1.56, 0.64, 1)"
13419
13743
  },
13420
13744
  {
13421
13745
  "name": "ease-spring",
@@ -15796,7 +16120,14 @@ const SPEC_FLAVOR_PACKS = [
15796
16120
  "tier": "semantic",
15797
16121
  "type": "easing",
15798
16122
  "group": "motion",
15799
- "value": "cubic-bezier(0.3, 0, 0.8, 0.15)"
16123
+ "value": "cubic-bezier(0.25, 1, 0.5, 1)"
16124
+ },
16125
+ {
16126
+ "name": "ease-pop",
16127
+ "tier": "semantic",
16128
+ "type": "easing",
16129
+ "group": "motion",
16130
+ "value": "cubic-bezier(0.34, 1.56, 0.64, 1)"
15800
16131
  },
15801
16132
  {
15802
16133
  "name": "ease-spring",
@@ -18146,21 +18477,28 @@ const SPEC_FLAVOR_PACKS = [
18146
18477
  "tier": "semantic",
18147
18478
  "type": "easing",
18148
18479
  "group": "motion",
18149
- "value": "cubic-bezier(0.3, 0, 0.8, 0.15)"
18480
+ "value": "cubic-bezier(0.25, 1, 0.5, 1)"
18481
+ },
18482
+ {
18483
+ "name": "ease-pop",
18484
+ "tier": "semantic",
18485
+ "type": "easing",
18486
+ "group": "motion",
18487
+ "value": "cubic-bezier(0.34, 1.56, 0.64, 1)"
18150
18488
  },
18151
18489
  {
18152
18490
  "name": "ease-spring",
18153
18491
  "tier": "semantic",
18154
18492
  "type": "easing",
18155
18493
  "group": "motion",
18156
- "value": "cubic-bezier(0.2, 0, 0, 1)"
18494
+ "value": "linear(0, 0.0179, 0.0648, 0.1315, 0.2107, 0.2964, 0.384, 0.4701, 0.552, 0.6281, 0.6972, 0.7588, 0.8128, 0.8592, 0.8985, 0.9311, 0.9576, 0.9787, 0.9951, 1.0074, 1.0163, 1.0224, 1.0261, 1.0279, 1.0284, 1.0277, 1.0263, 1.0243, 1.022, 1.0196, 1.0171, 1.0147, 1.0124, 1.0102, 1.0083, 1.0066, 1.0051, 1.0038, 1.0027, 1.0018, 1)"
18157
18495
  },
18158
18496
  {
18159
18497
  "name": "dur-spring",
18160
18498
  "tier": "semantic",
18161
18499
  "type": "duration",
18162
18500
  "group": "motion",
18163
- "value": "140ms"
18501
+ "value": "240ms"
18164
18502
  },
18165
18503
  {
18166
18504
  "name": "hover-lift",
@@ -20968,6 +21306,9 @@ var HeaderTrait;
20968
21306
  (function (HeaderTrait) {
20969
21307
  HeaderTrait["Behaviour"] = "headerBehaviour";
20970
21308
  HeaderTrait["Edge"] = "headerEdge";
21309
+ /** HI1b (HS-5): the mix the header was composed as — its `<ingredient>:<word>` words, space-separated (generation-core
21310
+ * `stampHeaderMix`). Read by Bindings ▸ Header and the Header studio; no renderer reads it. */
21311
+ HeaderTrait["Mix"] = "headerMix";
20971
21312
  })(HeaderTrait || (HeaderTrait = {}));
20972
21313
  var HeaderAttribute;
20973
21314
  (function (HeaderAttribute) {
@@ -21008,6 +21349,32 @@ function headerAttributes(behaviour, edge) {
21008
21349
  out[HeaderAttribute.Edge] = e;
21009
21350
  return out;
21010
21351
  }
21352
+ // ── The header's name on a phone (vectoriox/iox-ui#98) ─────────────────────────────────────────────────────────────
21353
+ /** The brand's role (generation-core `NavRole.Brand`, spelled here: design-core reads no generation-core). */
21354
+ const BRAND_ROLE = 'nav.brand';
21355
+ /** Written on the brand when its name is long: the shared CSS steps its type down the look's scale on a phone. */
21356
+ const BRAND_NAME_ATTRIBUTE = 'data-iox-name';
21357
+ /** How long a header's name is, for a phone bar that must hold it on one or two lines. */
21358
+ var BrandNameLength;
21359
+ (function (BrandNameLength) {
21360
+ /** Wears `size-lead` on a phone. */
21361
+ BrandNameLength["Long"] = "long";
21362
+ /** Wears `size-body` on a phone. */
21363
+ BrandNameLength["Longer"] = "longer";
21364
+ })(BrandNameLength || (BrandNameLength = {}));
21365
+ /** From this many characters a name is `long`, then `longer`. Below it the name keeps its own size (a phone bar holds a
21366
+ * 16-character name in two lines at the largest heading size the looks give a brand). */
21367
+ const BRAND_NAME_LONG_AT = 17;
21368
+ const BRAND_NAME_LONGER_AT = 29;
21369
+ /** The name's attributes: `{}` for a name that keeps its size. Never shortens the words — the type steps down. */
21370
+ function brandNameAttributes(words) {
21371
+ const n = [...words.replace(/<[^>]+>/g, '').replace(/\s+/g, ' ').trim()].length;
21372
+ if (n >= BRAND_NAME_LONGER_AT)
21373
+ return { [BRAND_NAME_ATTRIBUTE]: BrandNameLength.Longer };
21374
+ if (n >= BRAND_NAME_LONG_AT)
21375
+ return { [BRAND_NAME_ATTRIBUTE]: BrandNameLength.Long };
21376
+ return {};
21377
+ }
21011
21378
 
21012
21379
  /**
21013
21380
  * How a site's MENU looks and moves (header-ingredients-plan.md HI2a; HB-D1/HB-D2, header-builder board v2). The header
@@ -22999,156 +23366,513 @@ function missingFontRoles(tokens, uploaded) {
22999
23366
  }
23000
23367
 
23001
23368
  /**
23002
- * A flavor's COMPLETE token set for a studio's choices (design-system plan §3a/§3e). A flavor IS
23003
- * its token values, so switching flavor — or any choice — rewrites token rows and nothing else.
23369
+ * THE LOOK'S MOTION LANGUAGE (award-ingredients-plan §5.2, AW3; Motion board MB-D1…MB-D10) — pure, framework-free.
23004
23370
  *
23005
- * Layering, each step over the last (the boards' `tokenMap`, with the product's colour math):
23006
- * pack tokens → chosen font pair → shape · density · motion axes → pill-button rule →
23007
- * the author's own font roles → every COLOUR token from the brand seed and the background tint
23008
- * (`flavorColours`, DS9: tinted neutrals, the accent quartet, the held contrast pairs).
23371
+ * Each of the 24 style presets has a language of its own: the curve things ARRIVE on (Design ▸ Motion ▸ Feel), the
23372
+ * curve they LEAVE on (it follows Feel — MB-D5), and the move its headings arrive by (Headings arrive). How animated
23373
+ * stays the AMOUNT; this is the KIND. Read from the contract (`layout.mjs` MOTION → `SPEC_MOTION_LANGUAGE`) — never
23374
+ * retyped. `buildFlavorTokens` writes `ease-enter` / `ease-exit` from it, so a re-theme changes every element's motion
23375
+ * at once; generation-core stamps headings by `move`.
23009
23376
  *
23010
- * `mode` does not change rows — every row keeps its light value and its dark override; mode is
23011
- * how the stylesheet is compiled.
23377
+ * A stored design from before AW3 holds neither word: it reads the contract's defaults for the curves (today's
23378
+ * arrival, the fast ease-out leave of MB-D1) and NO move, so every level keeps its own heading entrance (MB-D8 — a
23379
+ * built page keeps what it was stamped with until a look is applied).
23012
23380
  */
23013
- const LABEL = 'label';
23014
- const BUTTON_RADIUS = 'button-radius';
23015
- const PILL_RADIUS = 'var(--iox-radius-pill)';
23016
- const CONTROL_RADIUS = 'var(--iox-radius-sm)';
23017
- const USER_FONT_FALLBACK = 'system-ui, sans-serif';
23018
- const axisValues = (table, id) => Object.entries(table[id] ?? {}).filter(([k]) => k !== LABEL);
23019
- /** The pack's own defaults as a full set of choices — what Apply means with nothing changed. */
23020
- function defaultDesignChoices(pack) {
23021
- return {
23022
- flavorId: pack.id,
23023
- seed: pack.seed,
23024
- pairId: pack.pairs[0]?.id ?? '',
23025
- ...pack.defaults,
23026
- ...PRE_MOTION,
23027
- };
23381
+ const L = SPEC_MOTION_LANGUAGE;
23382
+ const ARRIVE_IDS = L.arrive;
23383
+ const LEAVE_IDS = L.leave;
23384
+ const MOVE_IDS = L.move;
23385
+ /** The plan tier a word is offered on (AW-D23): `all` every plan, `pro` Pro and Studio. */
23386
+ var MotionWordTier;
23387
+ (function (MotionWordTier) {
23388
+ MotionWordTier["All"] = "all";
23389
+ MotionWordTier["Pro"] = "pro";
23390
+ })(MotionWordTier || (MotionWordTier = {}));
23391
+ /** The arrive curve `spring` names: the look's own `ease-spring` token (a real spring at every speed — MB-D3). */
23392
+ const SPRING_CURVE_TOKEN = 'ease-spring';
23393
+ const SPRING_REF = /^\{\{([a-z0-9-]+)\}\}$/;
23394
+ const isArriveId = (v) => typeof v === 'string' && ARRIVE_IDS.includes(v);
23395
+ const isMoveId = (v) => typeof v === 'string' && MOVE_IDS.includes(v);
23396
+ const PRESET_LANGUAGE = L.presets;
23397
+ const LEAVE_FOR = L.leaveFor;
23398
+ const TIERS = L.tiers;
23399
+ const PLAN_FALLBACK = L.planFallback;
23400
+ /** A style preset's own language (its Feel and Headings arrive) — undefined for an unknown id. */
23401
+ function presetMotionLanguage(presetId) {
23402
+ return presetId ? PRESET_LANGUAGE[presetId] : undefined;
23403
+ }
23404
+ /** The tier of a word: `pro` words (expo-out, spring, pop, blur in, the covers…) are offered on Pro and Studio only (MB-D6). */
23405
+ function motionWordTier(kind, word) {
23406
+ return TIERS[kind]?.[word] === MotionWordTier.Pro ? MotionWordTier.Pro : MotionWordTier.All;
23407
+ }
23408
+ /** `pop` overshoots: only a Lively or Expressive look arrives on it (contract `popLevels`). */
23409
+ function popAllowed(animate) {
23410
+ return L.popLevels.includes(String(animate ?? ''));
23028
23411
  }
23029
23412
  /**
23030
- * The value a font role holds once the author picks a face: `'<Family>', <the look's own stack>` —
23031
- * e.g. `'Rubik', 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif`. The look's font
23032
- * follows the author's, so a family that later stops existing (deleted outside the delete guard, a
23033
- * bucket emptied by hand) renders in the pack's font — Board 8's promise — in every renderer, with no
23034
- * runtime check. With no look stack: `system-ui, sans-serif`.
23413
+ * The language a set of choices wears. The leave follows Feel (MB-D5): the preset's own pair when Feel is still its
23414
+ * arrival, else the contract's `leaveFor`. A `pop` Feel on a level that may not overshoot settles as expo-out.
23035
23415
  */
23036
- function userFontStack(family, packStack) {
23037
- const fallback = fontStackWithout(packStack, family) || USER_FONT_FALLBACK;
23038
- return `${formatFontFamily(family)}, ${fallback}`;
23039
- }
23040
- const toRow = (t, source) => ({
23041
- name: t.name,
23042
- type: t.type,
23043
- value: t.value,
23044
- ...(t.dark !== undefined ? { values: { dark: t.dark } } : {}),
23045
- source,
23046
- group: t.group,
23047
- tier: t.tier,
23048
- });
23049
- function buildFlavorTokens(pack, choices) {
23050
- const stamp = flavorSourceStamp(pack.id);
23051
- const rows = pack.tokens.map(t => toRow(t, stamp));
23052
- const byName = new Map(rows.map(r => [r.name, r]));
23053
- /** An override is ONE value in every mode — a pair or axis value has no dark twin. */
23054
- const set = (name, value, source = stamp) => {
23055
- const row = byName.get(name);
23056
- if (!row)
23057
- return;
23058
- row.value = value;
23059
- delete row.values;
23060
- row.source = source;
23061
- };
23062
- const pair = pack.pairs.find(p => p.id === choices.pairId) ?? pack.pairs[0];
23063
- for (const [name, value] of Object.entries(pair?.tokens ?? {}))
23064
- set(name, value);
23065
- const axes = SPEC_AXES;
23066
- for (const [name, value] of [
23067
- ...axisValues(axes.shapes, choices.shape),
23068
- ...axisValues(axes.densities, choices.density),
23069
- ...axisValues(axes.motions, choices.motion),
23070
- ])
23071
- set(name, value);
23072
- const buttonRadius = pack.tokens.find(t => t.name === BUTTON_RADIUS);
23073
- set(BUTTON_RADIUS, choices.pillButtons ? PILL_RADIUS : (buttonRadius?.overridden ? buttonRadius.value : CONTROL_RADIUS));
23074
- for (const [role, family] of Object.entries(choices.fonts ?? {})) {
23075
- if (typeof family === 'string' && family.trim() !== '')
23076
- set(role, userFontStack(family, byName.get(role)?.value), USER_TOKEN_SOURCE);
23077
- }
23078
- setColours(byName, flavorColours(pack, { seed: choices.seed, tint: choices.tint ?? pack.defaults.tint }));
23079
- return rows;
23416
+ function motionLanguageOf(choices, presetId) {
23417
+ let arrive = isArriveId(choices.feel) ? choices.feel : L.defaults.arrive;
23418
+ if (arrive === 'pop' && choices.animate !== undefined && !popAllowed(choices.animate))
23419
+ arrive = 'expo-out';
23420
+ const own = presetMotionLanguage(presetId ?? null);
23421
+ const leave = own && own.arrive === arrive ? own.leave : (LEAVE_FOR[arrive] ?? L.defaults.leave);
23422
+ return { arrive, leave, move: isMoveId(choices.headings) ? choices.headings : null };
23080
23423
  }
23081
- /** Colour rows take their light value and the dark one only where it differs (the contract's own rule). */
23082
- function setColours(byName, colours) {
23083
- for (const [name, [light, dark]] of Object.entries(colours)) {
23084
- const row = byName.get(name);
23085
- if (!row)
23086
- continue;
23087
- row.value = light;
23088
- if (dark !== undefined && dark !== light)
23089
- row.values = { dark };
23090
- else
23091
- delete row.values;
23092
- }
23424
+ /** The CSS timing function of an arrive / leave word; `spring` reads the look's own spring row. */
23425
+ function motionCurve(word, tokenValue = () => undefined) {
23426
+ const curve = L.curves[word] ?? '';
23427
+ const ref = SPRING_REF.exec(curve);
23428
+ return ref ? (tokenValue(ref[1]) ?? 'linear') : curve;
23093
23429
  }
23094
23430
  /**
23095
- * What the contract wrote for `choices` BEFORE DS9 — the baseline a studio that applied its look before
23096
- * the tint existed is judged against (`designBaseline`, `designTokenRepairs`): the look's own palette, the
23097
- * rows DS9 changed at their old values (`pack.legacy`), and a seed ≠ the pack's own re-deriving the accent
23098
- * set against `bg` alone, as `deriveAccentTokens` was called then. No held pairs, no tint.
23431
+ * What a lower plan wears of a language (AW-D23, MB-D6): a Pro word is drawn as the plan's own (the contract's
23432
+ * `planFallback`) — Feel today's arrival, a Pro move a fade, a Pro cover (AW4) a fade between pages. Applied where a
23433
+ * look is CHOSEN (a Look pick, a build); a built site keeps its words.
23099
23434
  */
23100
- function legacyFlavorTokens(pack, choices) {
23101
- const rows = buildFlavorTokens(pack, { ...choices, seed: pack.seed, tint: 'neutral' });
23102
- const byName = new Map(rows.map(r => [r.name, r]));
23103
- for (const [name, old] of Object.entries(pack.legacy ?? {})) {
23104
- const row = byName.get(name);
23105
- if (!row)
23106
- continue;
23107
- row.value = old.value;
23108
- if (old.dark !== undefined)
23109
- row.values = { dark: old.dark };
23110
- else
23111
- delete row.values;
23112
- }
23113
- if (choices.seed && choices.seed.toLowerCase() !== pack.seed.toLowerCase()) {
23114
- for (const accent of deriveAccentTokens(choices.seed, preTintAccentGrounds(pack.palette))) {
23115
- const row = byName.get(accent.name);
23116
- if (!row)
23117
- continue;
23118
- row.value = accent.value;
23119
- if (accent.values?.dark)
23120
- row.values = { dark: accent.values.dark };
23121
- else
23122
- delete row.values;
23123
- }
23124
- }
23125
- return rows;
23435
+ function motionLanguageForPlan(choices, pro) {
23436
+ if (pro)
23437
+ return choices;
23438
+ const proWord = (kind, word) => typeof word === 'string' && motionWordTier(kind, word) === MotionWordTier.Pro;
23439
+ const feel = isArriveId(choices.feel) && proWord('arrive', choices.feel) ? PLAN_FALLBACK.arrive : choices.feel;
23440
+ const headings = isMoveId(choices.headings) && proWord('move', choices.headings) ? PLAN_FALLBACK.move : choices.headings;
23441
+ const out = { ...choices, feel, headings };
23442
+ if (proWord('cover', choices.between))
23443
+ out.between = PLAN_FALLBACK.cover;
23444
+ return out;
23126
23445
  }
23446
+ /** The reduced-motion floor (AW-D6): an entrance is a fade this long at most — gentler, never zero. */
23447
+ const REDUCED_ENTRANCE_MAX_MS = L.reduced.enterMaxMs;
23448
+ /** MB-D7: a travelling move plays its quiet form on these levels (rise 8 px, mask lines together, clip from 85 %). */
23449
+ const QUIET_LEVELS = L.quietLevels;
23450
+ const QUIET_MOVE = L.quiet;
23451
+ /** An exit takes about this share of its entrance's time (Emil: exits faster than entrances). */
23452
+ const LEAVE_SHARE = L.leaveShare;
23453
+ /** Every preset id the contract gives a language to — all 24 (build-spec refuses one without). */
23454
+ const MOTION_LANGUAGE_PRESET_IDS = SPEC_STYLE_PRESETS.map(p => p.id).filter(id => id in PRESET_LANGUAGE);
23127
23455
 
23128
23456
  /**
23129
- * Seeding and reverting a look, as pure plans (flavors F2, moved here from iox-cms-client in
23130
- * design-system DS1 so the builder, the wizard and the server-side site build share ONE merge).
23131
- * Each caller applies a plan with its own transport.
23457
+ * The `settings.design` row (design-system plan §3f), read and written by ONE pair of functions so
23458
+ * the builder, the server's public page read (the engine's mode) and the site build agree on what a
23459
+ * stored row MEANS. The row is the settings collection's generic `config: [{ key, value }]`; values
23460
+ * are strings there (Boolean "true"/"false", Object as JSON), but a reader also accepts the typed
23461
+ * value a client control may have sent.
23132
23462
  */
23133
- const FLAVOR_SOURCE_PREFIX = 'flavor:';
23134
- const DEFAULT_TOKEN_TYPE = 'other';
23135
- const REVERT_WINDOW_MS = 7 * 24 * 60 * 60 * 1000;
23136
- const isSeeded = (row) => (row?.source ?? '').startsWith(FLAVOR_SOURCE_PREFIX);
23137
- const classification = (def) => ({
23138
- ...(def.group ? { group: def.group } : {}),
23139
- ...(def.tier ? { tier: def.tier } : {}),
23140
- });
23141
- /** Board F7's footer promise, as a boundary: available through the 7th day, not beyond. */
23142
- function revertAvailable(appliedAt, now) {
23143
- return typeof appliedAt === 'number' && appliedAt > 0 && now - appliedAt <= REVERT_WINDOW_MS;
23463
+ /** The look a studio wears until it picks one (DS2's interim seed, and DS6's first-run selection). */
23464
+ const DEFAULT_FLAVOR_ID = 'crisp';
23465
+ var DesignConfigKey;
23466
+ (function (DesignConfigKey) {
23467
+ DesignConfigKey["FlavorId"] = "flavorId";
23468
+ DesignConfigKey["FlavorVersion"] = "flavorVersion";
23469
+ DesignConfigKey["BrandSeed"] = "brandSeed";
23470
+ DesignConfigKey["PairId"] = "pairId";
23471
+ DesignConfigKey["Shape"] = "shape";
23472
+ DesignConfigKey["Density"] = "density";
23473
+ DesignConfigKey["Motion"] = "motion";
23474
+ DesignConfigKey["PillButtons"] = "pillButtons";
23475
+ DesignConfigKey["Mode"] = "mode";
23476
+ DesignConfigKey["Tint"] = "tint";
23477
+ DesignConfigKey["Fonts"] = "fonts";
23478
+ DesignConfigKey["Scroll"] = "scroll";
23479
+ DesignConfigKey["Animate"] = "animate";
23480
+ DesignConfigKey["Between"] = "between";
23481
+ DesignConfigKey["Feel"] = "feel";
23482
+ DesignConfigKey["Headings"] = "headings";
23483
+ DesignConfigKey["Revert"] = "revert";
23484
+ })(DesignConfigKey || (DesignConfigKey = {}));
23485
+ const MODES = SPEC_AXES.modes;
23486
+ const FONT_ROLE_TOKENS = SPEC_FONT_ROLES.map(r => r.token);
23487
+ /** The pack for an id; a retired id (Swiss) resolves to the pack that `replaces` it. */
23488
+ function flavorPackById(id) {
23489
+ if (!id)
23490
+ return undefined;
23491
+ return SPEC_FLAVORS.find(f => f.id === id) ?? SPEC_FLAVORS.find(f => f.replaces === id);
23144
23492
  }
23145
- /**
23146
- * Restore the snapshot: snapshot rows come back to their stored value/dark/source (update when
23147
- * present, recreate when deleted); rows the apply CREATED (flavor-stamped and absent from the
23148
- * snapshot) are removed. A revert undoes the FLAVOR, not the author's week: hand-made rows born after
23149
- * the apply are not touched, and a row the author EDITED after the apply is kept (DS8: an edit makes
23150
- * the row the author's, and a pack switch keeps it — so does going back). Edited-after = `source: user`,
23151
- * differing from the snapshot, and holding something other than what the apply wrote (`wrote` — the
23493
+ /** True when `id` names a retired flavor that a v2 pack replaces (Swiss → Crisp). */
23494
+ function isRetiredFlavorId(id) {
23495
+ return !!id && !SPEC_FLAVORS.some(f => f.id === id) && SPEC_FLAVORS.some(f => f.replaces === id);
23496
+ }
23497
+ const defaultPack = () => flavorPackById(DEFAULT_FLAVOR_ID);
23498
+ const asString = (v) => (typeof v === 'string' && v.trim() !== '' ? v.trim() : null);
23499
+ function asBoolean(v) {
23500
+ if (v === true || v === 'true')
23501
+ return true;
23502
+ if (v === false || v === 'false')
23503
+ return false;
23504
+ return null;
23505
+ }
23506
+ function asObject(v) {
23507
+ if (v && typeof v === 'object')
23508
+ return v;
23509
+ if (typeof v !== 'string' || v.trim() === '')
23510
+ return null;
23511
+ try {
23512
+ const parsed = JSON.parse(v);
23513
+ return parsed && typeof parsed === 'object' ? parsed : null;
23514
+ }
23515
+ catch {
23516
+ return null;
23517
+ }
23518
+ }
23519
+ function asFonts(v) {
23520
+ const raw = asObject(v);
23521
+ if (!raw)
23522
+ return undefined;
23523
+ const fonts = {};
23524
+ for (const role of FONT_ROLE_TOKENS) {
23525
+ const family = raw[role];
23526
+ if (typeof family === 'string' && family.trim() !== '')
23527
+ fonts[role] = family.trim();
23528
+ }
23529
+ return Object.keys(fonts).length ? fonts : undefined;
23530
+ }
23531
+ const keyOf = (table, v) => v !== null && Object.prototype.hasOwnProperty.call(table, v) ? v : null;
23532
+ /** A config array → the key/value map (last entry wins, as the settings form writes it). */
23533
+ function configMap(config) {
23534
+ const map = new Map();
23535
+ for (const kv of config ?? [])
23536
+ if (kv && typeof kv.key === 'string')
23537
+ map.set(kv.key, kv.value);
23538
+ return map;
23539
+ }
23540
+ /**
23541
+ * A partial set of choices completed against its pack: every missing or invalid value falls back to
23542
+ * the pack's own default (an unknown pair → the pack's first, a bad seed → the pack's seed).
23543
+ */
23544
+ function resolveDesignChoices(partial) {
23545
+ const pack = flavorPackById(partial?.flavorId) ?? defaultPack();
23546
+ const seed = asString(partial?.seed);
23547
+ const pairId = asString(partial?.pairId);
23548
+ const fonts = asFonts(partial?.fonts);
23549
+ return {
23550
+ flavorId: pack.id,
23551
+ seed: seed && parseHexColor(seed) ? seed : pack.seed,
23552
+ pairId: pairId && pack.pairs.some(p => p.id === pairId) ? pairId : pack.pairs[0]?.id ?? '',
23553
+ shape: keyOf(SPEC_AXES.shapes, asString(partial?.shape)) ?? pack.defaults.shape,
23554
+ density: keyOf(SPEC_AXES.densities, asString(partial?.density)) ?? pack.defaults.density,
23555
+ motion: keyOf(SPEC_AXES.motions, asString(partial?.motion)) ?? pack.defaults.motion,
23556
+ pillButtons: asBoolean(partial?.pillButtons) ?? pack.defaults.pillButtons,
23557
+ mode: (MODES.includes(asString(partial?.mode) ?? '') ? asString(partial?.mode) : pack.defaults.mode),
23558
+ tint: keyOf(SPEC_AXES.tints, asString(partial?.tint)) ?? pack.defaults.tint,
23559
+ ...(fonts ? { fonts } : {}),
23560
+ ...resolveDesignMotion(partial),
23561
+ ...resolveMotionLanguageChoices(partial),
23562
+ };
23563
+ }
23564
+ /** The look's motion language as stored: a known Feel / Headings word is kept, anything else is absent (AW3). */
23565
+ function resolveMotionLanguageChoices(partial) {
23566
+ const feel = asString(partial?.feel);
23567
+ const headings = asString(partial?.headings);
23568
+ return { ...(isArriveId(feel) ? { feel } : {}), ...(isMoveId(headings) ? { headings } : {}) };
23569
+ }
23570
+ /** The look's motion, completed: an absent or unknown choice reads `PRE_MOTION` — what the site already does. */
23571
+ function resolveDesignMotion(partial) {
23572
+ return {
23573
+ scroll: keyOf(SPEC_AXES.scrolls, asString(partial?.scroll)) ?? PRE_MOTION.scroll,
23574
+ animate: keyOf(SPEC_AXES.animations, asString(partial?.animate)) ?? PRE_MOTION.animate,
23575
+ between: keyOf(SPEC_AXES.betweens, asString(partial?.between)) ?? PRE_MOTION.between,
23576
+ };
23577
+ }
23578
+ /** The pack's own defaults for `flavorId` — what picking a card means before anything is tuned. */
23579
+ function packDesignChoices(flavorId) {
23580
+ return resolveDesignChoices({ flavorId });
23581
+ }
23582
+ /**
23583
+ * What picking a pack card means, given the design the studio wears: the applied pack → the applied
23584
+ * choices; another pack → that pack's defaults, CARRYING the author's chosen fonts (§5b — a font the
23585
+ * author chose survives a pack switch unless the author changes it) and the site's motion (rev 3.1 MO-D3 —
23586
+ * how it scrolls and changes page is not a pack's, so a Look pick never resets it). Both picker homes call this.
23587
+ */
23588
+ function choicesForPack(flavorId, applied) {
23589
+ const pack = flavorPackById(flavorId) ?? defaultPack();
23590
+ if (applied && resolveDesignChoices(applied).flavorId === pack.id)
23591
+ return resolveDesignChoices(applied);
23592
+ return resolveDesignChoices({ flavorId: pack.id, fonts: applied?.fonts, ...resolveDesignMotion(applied) });
23593
+ }
23594
+ /**
23595
+ * A stored `settings.design` config → the resolved design. No row (or no config) → Crisp's defaults. A
23596
+ * row stored before DS9 has no `tint`: it was applied with the look's own palette, so it reads `neutral`
23597
+ * (never the pack's new default — the studio's rows hold the palette, and nothing may repaint them unasked).
23598
+ */
23599
+ function readDesignConfig(config, hasRow = !!config) {
23600
+ const map = configMap(config);
23601
+ const storedTint = asString(map.get(DesignConfigKey.Tint)) ?? (hasRow ? PRE_TINT_DEFAULT : null);
23602
+ const storedFlavorId = asString(map.get(DesignConfigKey.FlavorId));
23603
+ const storedSeed = asString(map.get(DesignConfigKey.BrandSeed));
23604
+ const choices = resolveDesignChoices({
23605
+ flavorId: storedFlavorId ?? undefined,
23606
+ seed: storedSeed ?? undefined,
23607
+ pairId: asString(map.get(DesignConfigKey.PairId)) ?? undefined,
23608
+ shape: map.get(DesignConfigKey.Shape),
23609
+ density: map.get(DesignConfigKey.Density),
23610
+ motion: map.get(DesignConfigKey.Motion),
23611
+ pillButtons: asBoolean(map.get(DesignConfigKey.PillButtons)) ?? undefined,
23612
+ mode: map.get(DesignConfigKey.Mode),
23613
+ tint: (storedTint ?? undefined),
23614
+ fonts: map.get(DesignConfigKey.Fonts),
23615
+ scroll: map.get(DesignConfigKey.Scroll),
23616
+ animate: map.get(DesignConfigKey.Animate),
23617
+ between: map.get(DesignConfigKey.Between),
23618
+ feel: asString(map.get(DesignConfigKey.Feel)) ?? undefined,
23619
+ headings: asString(map.get(DesignConfigKey.Headings)) ?? undefined,
23620
+ });
23621
+ return {
23622
+ choices,
23623
+ storedFlavorId,
23624
+ storedSeed,
23625
+ flavorVersion: asString(map.get(DesignConfigKey.FlavorVersion)),
23626
+ revert: asObject(map.get(DesignConfigKey.Revert)),
23627
+ hasRow,
23628
+ };
23629
+ }
23630
+ /** The colour mode a stored config compiles in — what the public page read hands the engine. */
23631
+ function designModeOf(config) {
23632
+ return readDesignConfig(config).choices.mode;
23633
+ }
23634
+ /** The look's motion of a stored config — what the public page read hands the engine (`designMotion`). */
23635
+ function designMotionOf(config) {
23636
+ return resolveDesignMotion(readDesignConfig(config).choices);
23637
+ }
23638
+ /** Resolved choices (+ the revert snapshot) → the config array a settings row stores. */
23639
+ function designConfigEntries(choices, flavorVersion, revert) {
23640
+ const c = resolveDesignChoices(choices);
23641
+ return [
23642
+ { key: DesignConfigKey.FlavorId, value: c.flavorId },
23643
+ { key: DesignConfigKey.FlavorVersion, value: String(flavorVersion) },
23644
+ { key: DesignConfigKey.BrandSeed, value: c.seed },
23645
+ { key: DesignConfigKey.PairId, value: c.pairId },
23646
+ { key: DesignConfigKey.Shape, value: c.shape },
23647
+ { key: DesignConfigKey.Density, value: c.density },
23648
+ { key: DesignConfigKey.Motion, value: c.motion },
23649
+ { key: DesignConfigKey.PillButtons, value: String(c.pillButtons) },
23650
+ { key: DesignConfigKey.Mode, value: c.mode },
23651
+ { key: DesignConfigKey.Tint, value: c.tint },
23652
+ { key: DesignConfigKey.Scroll, value: c.scroll },
23653
+ { key: DesignConfigKey.Animate, value: c.animate },
23654
+ { key: DesignConfigKey.Between, value: c.between },
23655
+ ...(c.feel ? [{ key: DesignConfigKey.Feel, value: c.feel }] : []),
23656
+ ...(c.headings ? [{ key: DesignConfigKey.Headings, value: c.headings }] : []),
23657
+ ...(c.fonts ? [{ key: DesignConfigKey.Fonts, value: JSON.stringify(c.fonts) }] : []),
23658
+ ...(revert ? [{ key: DesignConfigKey.Revert, value: JSON.stringify(revert) }] : []),
23659
+ ];
23660
+ }
23661
+ /** Two choice sets describe the same look (fonts compared by role). */
23662
+ function sameDesignChoices(a, b) {
23663
+ const x = resolveDesignChoices(a);
23664
+ const y = resolveDesignChoices(b);
23665
+ return x.flavorId === y.flavorId && x.seed.toLowerCase() === y.seed.toLowerCase() && x.pairId === y.pairId
23666
+ && x.shape === y.shape && x.density === y.density && x.motion === y.motion
23667
+ && x.pillButtons === y.pillButtons && x.mode === y.mode && x.tint === y.tint
23668
+ && x.scroll === y.scroll && x.animate === y.animate && x.between === y.between
23669
+ && (x.feel ?? '') === (y.feel ?? '') && (x.headings ?? '') === (y.headings ?? '')
23670
+ && JSON.stringify(x.fonts ?? {}) === JSON.stringify(y.fonts ?? {});
23671
+ }
23672
+
23673
+ const MOOD_IDS = Object.keys(SPEC_MOODS);
23674
+ const MOOD_LABELS = SPEC_MOODS;
23675
+ /** The 24, catalogue order (four per flavor). Assignment here proves the generated data fits the type. */
23676
+ const STYLE_PRESETS = SPEC_STYLE_PRESETS;
23677
+ function stylePresetById(id) {
23678
+ return id ? STYLE_PRESETS.find(p => p.id === id) : undefined;
23679
+ }
23680
+ const FOLLOW_VISITOR = 'auto';
23681
+ /** The modes Design offers for a preset: the audited ones, then "Follow visitor" when it passed both (H-D3). */
23682
+ function presetModes(preset) {
23683
+ return preset.modes.length > 1 ? [...preset.modes, FOLLOW_VISITOR] : [...preset.modes];
23684
+ }
23685
+ /**
23686
+ * What picking a preset means — the complete `DesignChoices`, its motion included — in `mode` (default:
23687
+ * its first). A mode it was not audited in is REFUSED (null): a light-only preset is never worn dark.
23688
+ */
23689
+ function presetChoices(id, mode) {
23690
+ const preset = stylePresetById(id);
23691
+ if (!preset)
23692
+ return null;
23693
+ const wear = mode ?? preset.modes[0];
23694
+ if (!presetModes(preset).includes(wear))
23695
+ return null;
23696
+ return resolveDesignChoices({
23697
+ flavorId: preset.flavorId, seed: preset.seed, pairId: preset.pairId, shape: preset.shape, density: preset.density,
23698
+ motion: preset.motion, pillButtons: preset.pillButtons, mode: wear, tint: preset.tint, ...preset.moves,
23699
+ // AW3: the look's own motion language — its Feel and how its headings arrive (MB-D5).
23700
+ feel: presetMotionLanguage(preset.id)?.arrive, headings: presetMotionLanguage(preset.id)?.move,
23701
+ });
23702
+ }
23703
+ /**
23704
+ * The preset a set of choices IS (Design ▸ Look's "Current", 2026-10-28): its look — flavor, colour, tint, pairing,
23705
+ * shape, spacing, pill buttons — in a mode it offers. Motion, speed and font overrides are the site's, not the
23706
+ * style's, so they never unmark it; a colour or a corner changed by hand does: the look is then its flavor's, customised.
23707
+ */
23708
+ function stylePresetOfChoices(choices) {
23709
+ if (!choices)
23710
+ return undefined;
23711
+ const c = resolveDesignChoices(choices);
23712
+ return STYLE_PRESETS.find(p => p.flavorId === c.flavorId && p.seed.toLowerCase() === c.seed.toLowerCase() && p.tint === c.tint
23713
+ && p.pairId === c.pairId && p.shape === c.shape && p.density === c.density && p.pillButtons === c.pillButtons
23714
+ && presetModes(p).includes(c.mode));
23715
+ }
23716
+
23717
+ /**
23718
+ * A flavor's COMPLETE token set for a studio's choices (design-system plan §3a/§3e). A flavor IS
23719
+ * its token values, so switching flavor — or any choice — rewrites token rows and nothing else.
23720
+ *
23721
+ * Layering, each step over the last (the boards' `tokenMap`, with the product's colour math):
23722
+ * pack tokens → chosen font pair → shape · density · motion axes → the look's motion language (AW3:
23723
+ * ease-enter / ease-exit from Feel) → pill-button rule →
23724
+ * the author's own font roles → every COLOUR token from the brand seed and the background tint
23725
+ * (`flavorColours`, DS9: tinted neutrals, the accent quartet, the held contrast pairs).
23726
+ *
23727
+ * `mode` does not change rows — every row keeps its light value and its dark override; mode is
23728
+ * how the stylesheet is compiled.
23729
+ */
23730
+ const LABEL = 'label';
23731
+ const BUTTON_RADIUS = 'button-radius';
23732
+ const PILL_RADIUS = 'var(--iox-radius-pill)';
23733
+ const CONTROL_RADIUS = 'var(--iox-radius-sm)';
23734
+ const USER_FONT_FALLBACK = 'system-ui, sans-serif';
23735
+ const EASE_ENTER = 'ease-enter';
23736
+ const EASE_EXIT = 'ease-exit';
23737
+ const axisValues = (table, id) => Object.entries(table[id] ?? {}).filter(([k]) => k !== LABEL);
23738
+ /** The pack's own defaults as a full set of choices — what Apply means with nothing changed. */
23739
+ function defaultDesignChoices(pack) {
23740
+ return {
23741
+ flavorId: pack.id,
23742
+ seed: pack.seed,
23743
+ pairId: pack.pairs[0]?.id ?? '',
23744
+ ...pack.defaults,
23745
+ ...PRE_MOTION,
23746
+ };
23747
+ }
23748
+ /**
23749
+ * The value a font role holds once the author picks a face: `'<Family>', <the look's own stack>` —
23750
+ * e.g. `'Rubik', 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif`. The look's font
23751
+ * follows the author's, so a family that later stops existing (deleted outside the delete guard, a
23752
+ * bucket emptied by hand) renders in the pack's font — Board 8's promise — in every renderer, with no
23753
+ * runtime check. With no look stack: `system-ui, sans-serif`.
23754
+ */
23755
+ function userFontStack(family, packStack) {
23756
+ const fallback = fontStackWithout(packStack, family) || USER_FONT_FALLBACK;
23757
+ return `${formatFontFamily(family)}, ${fallback}`;
23758
+ }
23759
+ const toRow = (t, source) => ({
23760
+ name: t.name,
23761
+ type: t.type,
23762
+ value: t.value,
23763
+ ...(t.dark !== undefined ? { values: { dark: t.dark } } : {}),
23764
+ source,
23765
+ group: t.group,
23766
+ tier: t.tier,
23767
+ });
23768
+ function buildFlavorTokens(pack, choices) {
23769
+ const stamp = flavorSourceStamp(pack.id);
23770
+ const rows = pack.tokens.map(t => toRow(t, stamp));
23771
+ const byName = new Map(rows.map(r => [r.name, r]));
23772
+ /** An override is ONE value in every mode — a pair or axis value has no dark twin. */
23773
+ const set = (name, value, source = stamp) => {
23774
+ const row = byName.get(name);
23775
+ if (!row)
23776
+ return;
23777
+ row.value = value;
23778
+ delete row.values;
23779
+ row.source = source;
23780
+ };
23781
+ const pair = pack.pairs.find(p => p.id === choices.pairId) ?? pack.pairs[0];
23782
+ for (const [name, value] of Object.entries(pair?.tokens ?? {}))
23783
+ set(name, value);
23784
+ const axes = SPEC_AXES;
23785
+ for (const [name, value] of [
23786
+ ...axisValues(axes.shapes, choices.shape),
23787
+ ...axisValues(axes.densities, choices.density),
23788
+ ...axisValues(axes.motions, choices.motion),
23789
+ ])
23790
+ set(name, value);
23791
+ // AW3 (MB-D1, MB-D5): the look's own arrival and leave — every entrance, dialog and menu moves on them.
23792
+ const language = motionLanguageOf(choices, stylePresetOfChoices(choices)?.id);
23793
+ const tokenValue = (name) => byName.get(name)?.value;
23794
+ set(EASE_ENTER, motionCurve(language.arrive, tokenValue));
23795
+ set(EASE_EXIT, motionCurve(language.leave, tokenValue));
23796
+ const buttonRadius = pack.tokens.find(t => t.name === BUTTON_RADIUS);
23797
+ set(BUTTON_RADIUS, choices.pillButtons ? PILL_RADIUS : (buttonRadius?.overridden ? buttonRadius.value : CONTROL_RADIUS));
23798
+ for (const [role, family] of Object.entries(choices.fonts ?? {})) {
23799
+ if (typeof family === 'string' && family.trim() !== '')
23800
+ set(role, userFontStack(family, byName.get(role)?.value), USER_TOKEN_SOURCE);
23801
+ }
23802
+ setColours(byName, flavorColours(pack, { seed: choices.seed, tint: choices.tint ?? pack.defaults.tint }));
23803
+ return rows;
23804
+ }
23805
+ /** Colour rows take their light value and the dark one only where it differs (the contract's own rule). */
23806
+ function setColours(byName, colours) {
23807
+ for (const [name, [light, dark]] of Object.entries(colours)) {
23808
+ const row = byName.get(name);
23809
+ if (!row)
23810
+ continue;
23811
+ row.value = light;
23812
+ if (dark !== undefined && dark !== light)
23813
+ row.values = { dark };
23814
+ else
23815
+ delete row.values;
23816
+ }
23817
+ }
23818
+ /**
23819
+ * What the contract wrote for `choices` BEFORE DS9 — the baseline a studio that applied its look before
23820
+ * the tint existed is judged against (`designBaseline`, `designTokenRepairs`): the look's own palette, the
23821
+ * rows DS9 changed at their old values (`pack.legacy`), and a seed ≠ the pack's own re-deriving the accent
23822
+ * set against `bg` alone, as `deriveAccentTokens` was called then. No held pairs, no tint.
23823
+ */
23824
+ function legacyFlavorTokens(pack, choices) {
23825
+ const rows = buildFlavorTokens(pack, { ...choices, seed: pack.seed, tint: 'neutral' });
23826
+ const byName = new Map(rows.map(r => [r.name, r]));
23827
+ for (const [name, old] of Object.entries(pack.legacy ?? {})) {
23828
+ const row = byName.get(name);
23829
+ if (!row)
23830
+ continue;
23831
+ row.value = old.value;
23832
+ if (old.dark !== undefined)
23833
+ row.values = { dark: old.dark };
23834
+ else
23835
+ delete row.values;
23836
+ }
23837
+ if (choices.seed && choices.seed.toLowerCase() !== pack.seed.toLowerCase()) {
23838
+ for (const accent of deriveAccentTokens(choices.seed, preTintAccentGrounds(pack.palette))) {
23839
+ const row = byName.get(accent.name);
23840
+ if (!row)
23841
+ continue;
23842
+ row.value = accent.value;
23843
+ if (accent.values?.dark)
23844
+ row.values = { dark: accent.values.dark };
23845
+ else
23846
+ delete row.values;
23847
+ }
23848
+ }
23849
+ return rows;
23850
+ }
23851
+
23852
+ /**
23853
+ * Seeding and reverting a look, as pure plans (flavors F2, moved here from iox-cms-client in
23854
+ * design-system DS1 so the builder, the wizard and the server-side site build share ONE merge).
23855
+ * Each caller applies a plan with its own transport.
23856
+ */
23857
+ const FLAVOR_SOURCE_PREFIX = 'flavor:';
23858
+ const DEFAULT_TOKEN_TYPE = 'other';
23859
+ const REVERT_WINDOW_MS = 7 * 24 * 60 * 60 * 1000;
23860
+ const isSeeded = (row) => (row?.source ?? '').startsWith(FLAVOR_SOURCE_PREFIX);
23861
+ const classification = (def) => ({
23862
+ ...(def.group ? { group: def.group } : {}),
23863
+ ...(def.tier ? { tier: def.tier } : {}),
23864
+ });
23865
+ /** Board F7's footer promise, as a boundary: available through the 7th day, not beyond. */
23866
+ function revertAvailable(appliedAt, now) {
23867
+ return typeof appliedAt === 'number' && appliedAt > 0 && now - appliedAt <= REVERT_WINDOW_MS;
23868
+ }
23869
+ /**
23870
+ * Restore the snapshot: snapshot rows come back to their stored value/dark/source (update when
23871
+ * present, recreate when deleted); rows the apply CREATED (flavor-stamped and absent from the
23872
+ * snapshot) are removed. A revert undoes the FLAVOR, not the author's week: hand-made rows born after
23873
+ * the apply are not touched, and a row the author EDITED after the apply is kept (DS8: an edit makes
23874
+ * the row the author's, and a pack switch keeps it — so does going back). Edited-after = `source: user`,
23875
+ * differing from the snapshot, and holding something other than what the apply wrote (`wrote` — the
23152
23876
  * apply's own author rows, a chosen font or an Element-styles edit, still go back with it). With no
23153
23877
  * `wrote` at all, every author row that differs from the snapshot is judged edited after.
23154
23878
  */
@@ -23384,209 +24108,6 @@ function repeatedRowIndex(el) {
23384
24108
  return Number.isInteger(n) && n >= 0 ? n : null;
23385
24109
  }
23386
24110
 
23387
- /**
23388
- * The `settings.design` row (design-system plan §3f), read and written by ONE pair of functions so
23389
- * the builder, the server's public page read (the engine's mode) and the site build agree on what a
23390
- * stored row MEANS. The row is the settings collection's generic `config: [{ key, value }]`; values
23391
- * are strings there (Boolean "true"/"false", Object as JSON), but a reader also accepts the typed
23392
- * value a client control may have sent.
23393
- */
23394
- /** The look a studio wears until it picks one (DS2's interim seed, and DS6's first-run selection). */
23395
- const DEFAULT_FLAVOR_ID = 'crisp';
23396
- var DesignConfigKey;
23397
- (function (DesignConfigKey) {
23398
- DesignConfigKey["FlavorId"] = "flavorId";
23399
- DesignConfigKey["FlavorVersion"] = "flavorVersion";
23400
- DesignConfigKey["BrandSeed"] = "brandSeed";
23401
- DesignConfigKey["PairId"] = "pairId";
23402
- DesignConfigKey["Shape"] = "shape";
23403
- DesignConfigKey["Density"] = "density";
23404
- DesignConfigKey["Motion"] = "motion";
23405
- DesignConfigKey["PillButtons"] = "pillButtons";
23406
- DesignConfigKey["Mode"] = "mode";
23407
- DesignConfigKey["Tint"] = "tint";
23408
- DesignConfigKey["Fonts"] = "fonts";
23409
- DesignConfigKey["Scroll"] = "scroll";
23410
- DesignConfigKey["Animate"] = "animate";
23411
- DesignConfigKey["Between"] = "between";
23412
- DesignConfigKey["Revert"] = "revert";
23413
- })(DesignConfigKey || (DesignConfigKey = {}));
23414
- const MODES = SPEC_AXES.modes;
23415
- const FONT_ROLE_TOKENS = SPEC_FONT_ROLES.map(r => r.token);
23416
- /** The pack for an id; a retired id (Swiss) resolves to the pack that `replaces` it. */
23417
- function flavorPackById(id) {
23418
- if (!id)
23419
- return undefined;
23420
- return SPEC_FLAVORS.find(f => f.id === id) ?? SPEC_FLAVORS.find(f => f.replaces === id);
23421
- }
23422
- /** True when `id` names a retired flavor that a v2 pack replaces (Swiss → Crisp). */
23423
- function isRetiredFlavorId(id) {
23424
- return !!id && !SPEC_FLAVORS.some(f => f.id === id) && SPEC_FLAVORS.some(f => f.replaces === id);
23425
- }
23426
- const defaultPack = () => flavorPackById(DEFAULT_FLAVOR_ID);
23427
- const asString = (v) => (typeof v === 'string' && v.trim() !== '' ? v.trim() : null);
23428
- function asBoolean(v) {
23429
- if (v === true || v === 'true')
23430
- return true;
23431
- if (v === false || v === 'false')
23432
- return false;
23433
- return null;
23434
- }
23435
- function asObject(v) {
23436
- if (v && typeof v === 'object')
23437
- return v;
23438
- if (typeof v !== 'string' || v.trim() === '')
23439
- return null;
23440
- try {
23441
- const parsed = JSON.parse(v);
23442
- return parsed && typeof parsed === 'object' ? parsed : null;
23443
- }
23444
- catch {
23445
- return null;
23446
- }
23447
- }
23448
- function asFonts(v) {
23449
- const raw = asObject(v);
23450
- if (!raw)
23451
- return undefined;
23452
- const fonts = {};
23453
- for (const role of FONT_ROLE_TOKENS) {
23454
- const family = raw[role];
23455
- if (typeof family === 'string' && family.trim() !== '')
23456
- fonts[role] = family.trim();
23457
- }
23458
- return Object.keys(fonts).length ? fonts : undefined;
23459
- }
23460
- const keyOf = (table, v) => v !== null && Object.prototype.hasOwnProperty.call(table, v) ? v : null;
23461
- /** A config array → the key/value map (last entry wins, as the settings form writes it). */
23462
- function configMap(config) {
23463
- const map = new Map();
23464
- for (const kv of config ?? [])
23465
- if (kv && typeof kv.key === 'string')
23466
- map.set(kv.key, kv.value);
23467
- return map;
23468
- }
23469
- /**
23470
- * A partial set of choices completed against its pack: every missing or invalid value falls back to
23471
- * the pack's own default (an unknown pair → the pack's first, a bad seed → the pack's seed).
23472
- */
23473
- function resolveDesignChoices(partial) {
23474
- const pack = flavorPackById(partial?.flavorId) ?? defaultPack();
23475
- const seed = asString(partial?.seed);
23476
- const pairId = asString(partial?.pairId);
23477
- const fonts = asFonts(partial?.fonts);
23478
- return {
23479
- flavorId: pack.id,
23480
- seed: seed && parseHexColor(seed) ? seed : pack.seed,
23481
- pairId: pairId && pack.pairs.some(p => p.id === pairId) ? pairId : pack.pairs[0]?.id ?? '',
23482
- shape: keyOf(SPEC_AXES.shapes, asString(partial?.shape)) ?? pack.defaults.shape,
23483
- density: keyOf(SPEC_AXES.densities, asString(partial?.density)) ?? pack.defaults.density,
23484
- motion: keyOf(SPEC_AXES.motions, asString(partial?.motion)) ?? pack.defaults.motion,
23485
- pillButtons: asBoolean(partial?.pillButtons) ?? pack.defaults.pillButtons,
23486
- mode: (MODES.includes(asString(partial?.mode) ?? '') ? asString(partial?.mode) : pack.defaults.mode),
23487
- tint: keyOf(SPEC_AXES.tints, asString(partial?.tint)) ?? pack.defaults.tint,
23488
- ...(fonts ? { fonts } : {}),
23489
- ...resolveDesignMotion(partial),
23490
- };
23491
- }
23492
- /** The look's motion, completed: an absent or unknown choice reads `PRE_MOTION` — what the site already does. */
23493
- function resolveDesignMotion(partial) {
23494
- return {
23495
- scroll: keyOf(SPEC_AXES.scrolls, asString(partial?.scroll)) ?? PRE_MOTION.scroll,
23496
- animate: keyOf(SPEC_AXES.animations, asString(partial?.animate)) ?? PRE_MOTION.animate,
23497
- between: keyOf(SPEC_AXES.betweens, asString(partial?.between)) ?? PRE_MOTION.between,
23498
- };
23499
- }
23500
- /** The pack's own defaults for `flavorId` — what picking a card means before anything is tuned. */
23501
- function packDesignChoices(flavorId) {
23502
- return resolveDesignChoices({ flavorId });
23503
- }
23504
- /**
23505
- * What picking a pack card means, given the design the studio wears: the applied pack → the applied
23506
- * choices; another pack → that pack's defaults, CARRYING the author's chosen fonts (§5b — a font the
23507
- * author chose survives a pack switch unless the author changes it) and the site's motion (rev 3.1 MO-D3 —
23508
- * how it scrolls and changes page is not a pack's, so a Look pick never resets it). Both picker homes call this.
23509
- */
23510
- function choicesForPack(flavorId, applied) {
23511
- const pack = flavorPackById(flavorId) ?? defaultPack();
23512
- if (applied && resolveDesignChoices(applied).flavorId === pack.id)
23513
- return resolveDesignChoices(applied);
23514
- return resolveDesignChoices({ flavorId: pack.id, fonts: applied?.fonts, ...resolveDesignMotion(applied) });
23515
- }
23516
- /**
23517
- * A stored `settings.design` config → the resolved design. No row (or no config) → Crisp's defaults. A
23518
- * row stored before DS9 has no `tint`: it was applied with the look's own palette, so it reads `neutral`
23519
- * (never the pack's new default — the studio's rows hold the palette, and nothing may repaint them unasked).
23520
- */
23521
- function readDesignConfig(config, hasRow = !!config) {
23522
- const map = configMap(config);
23523
- const storedTint = asString(map.get(DesignConfigKey.Tint)) ?? (hasRow ? PRE_TINT_DEFAULT : null);
23524
- const storedFlavorId = asString(map.get(DesignConfigKey.FlavorId));
23525
- const storedSeed = asString(map.get(DesignConfigKey.BrandSeed));
23526
- const choices = resolveDesignChoices({
23527
- flavorId: storedFlavorId ?? undefined,
23528
- seed: storedSeed ?? undefined,
23529
- pairId: asString(map.get(DesignConfigKey.PairId)) ?? undefined,
23530
- shape: map.get(DesignConfigKey.Shape),
23531
- density: map.get(DesignConfigKey.Density),
23532
- motion: map.get(DesignConfigKey.Motion),
23533
- pillButtons: asBoolean(map.get(DesignConfigKey.PillButtons)) ?? undefined,
23534
- mode: map.get(DesignConfigKey.Mode),
23535
- tint: (storedTint ?? undefined),
23536
- fonts: map.get(DesignConfigKey.Fonts),
23537
- scroll: map.get(DesignConfigKey.Scroll),
23538
- animate: map.get(DesignConfigKey.Animate),
23539
- between: map.get(DesignConfigKey.Between),
23540
- });
23541
- return {
23542
- choices,
23543
- storedFlavorId,
23544
- storedSeed,
23545
- flavorVersion: asString(map.get(DesignConfigKey.FlavorVersion)),
23546
- revert: asObject(map.get(DesignConfigKey.Revert)),
23547
- hasRow,
23548
- };
23549
- }
23550
- /** The colour mode a stored config compiles in — what the public page read hands the engine. */
23551
- function designModeOf(config) {
23552
- return readDesignConfig(config).choices.mode;
23553
- }
23554
- /** The look's motion of a stored config — what the public page read hands the engine (`designMotion`). */
23555
- function designMotionOf(config) {
23556
- return resolveDesignMotion(readDesignConfig(config).choices);
23557
- }
23558
- /** Resolved choices (+ the revert snapshot) → the config array a settings row stores. */
23559
- function designConfigEntries(choices, flavorVersion, revert) {
23560
- const c = resolveDesignChoices(choices);
23561
- return [
23562
- { key: DesignConfigKey.FlavorId, value: c.flavorId },
23563
- { key: DesignConfigKey.FlavorVersion, value: String(flavorVersion) },
23564
- { key: DesignConfigKey.BrandSeed, value: c.seed },
23565
- { key: DesignConfigKey.PairId, value: c.pairId },
23566
- { key: DesignConfigKey.Shape, value: c.shape },
23567
- { key: DesignConfigKey.Density, value: c.density },
23568
- { key: DesignConfigKey.Motion, value: c.motion },
23569
- { key: DesignConfigKey.PillButtons, value: String(c.pillButtons) },
23570
- { key: DesignConfigKey.Mode, value: c.mode },
23571
- { key: DesignConfigKey.Tint, value: c.tint },
23572
- { key: DesignConfigKey.Scroll, value: c.scroll },
23573
- { key: DesignConfigKey.Animate, value: c.animate },
23574
- { key: DesignConfigKey.Between, value: c.between },
23575
- ...(c.fonts ? [{ key: DesignConfigKey.Fonts, value: JSON.stringify(c.fonts) }] : []),
23576
- ...(revert ? [{ key: DesignConfigKey.Revert, value: JSON.stringify(revert) }] : []),
23577
- ];
23578
- }
23579
- /** Two choice sets describe the same look (fonts compared by role). */
23580
- function sameDesignChoices(a, b) {
23581
- const x = resolveDesignChoices(a);
23582
- const y = resolveDesignChoices(b);
23583
- return x.flavorId === y.flavorId && x.seed.toLowerCase() === y.seed.toLowerCase() && x.pairId === y.pairId
23584
- && x.shape === y.shape && x.density === y.density && x.motion === y.motion
23585
- && x.pillButtons === y.pillButtons && x.mode === y.mode && x.tint === y.tint
23586
- && x.scroll === y.scroll && x.animate === y.animate && x.between === y.between
23587
- && JSON.stringify(x.fonts ?? {}) === JSON.stringify(y.fonts ?? {});
23588
- }
23589
-
23590
24111
  /**
23591
24112
  * Applying a look (design-system DS4): the COMPLETE `buildFlavorTokens` set for the chosen
23592
24113
  * `DesignChoices`, merged into the org's rows by the §10 C2 rule — rewrite only what the previous
@@ -23937,48 +24458,6 @@ function elementStyleFace(choices, styleId) {
23937
24458
  return { stack: read('fontFamily'), weight: Number(read('fontWeight')) || 400, tracking: spacing ? Number(spacing[1]) : 0 };
23938
24459
  }
23939
24460
 
23940
- const MOOD_IDS = Object.keys(SPEC_MOODS);
23941
- const MOOD_LABELS = SPEC_MOODS;
23942
- /** The 24, catalogue order (four per flavor). Assignment here proves the generated data fits the type. */
23943
- const STYLE_PRESETS = SPEC_STYLE_PRESETS;
23944
- function stylePresetById(id) {
23945
- return id ? STYLE_PRESETS.find(p => p.id === id) : undefined;
23946
- }
23947
- const FOLLOW_VISITOR = 'auto';
23948
- /** The modes Design offers for a preset: the audited ones, then "Follow visitor" when it passed both (H-D3). */
23949
- function presetModes(preset) {
23950
- return preset.modes.length > 1 ? [...preset.modes, FOLLOW_VISITOR] : [...preset.modes];
23951
- }
23952
- /**
23953
- * What picking a preset means — the complete `DesignChoices`, its motion included — in `mode` (default:
23954
- * its first). A mode it was not audited in is REFUSED (null): a light-only preset is never worn dark.
23955
- */
23956
- function presetChoices(id, mode) {
23957
- const preset = stylePresetById(id);
23958
- if (!preset)
23959
- return null;
23960
- const wear = mode ?? preset.modes[0];
23961
- if (!presetModes(preset).includes(wear))
23962
- return null;
23963
- return resolveDesignChoices({
23964
- flavorId: preset.flavorId, seed: preset.seed, pairId: preset.pairId, shape: preset.shape, density: preset.density,
23965
- motion: preset.motion, pillButtons: preset.pillButtons, mode: wear, tint: preset.tint, ...preset.moves,
23966
- });
23967
- }
23968
- /**
23969
- * The preset a set of choices IS (Design ▸ Look's "Current", 2026-10-28): its look — flavor, colour, tint, pairing,
23970
- * shape, spacing, pill buttons — in a mode it offers. Motion, speed and font overrides are the site's, not the
23971
- * style's, so they never unmark it; a colour or a corner changed by hand does: the look is then its flavor's, customised.
23972
- */
23973
- function stylePresetOfChoices(choices) {
23974
- if (!choices)
23975
- return undefined;
23976
- const c = resolveDesignChoices(choices);
23977
- return STYLE_PRESETS.find(p => p.flavorId === c.flavorId && p.seed.toLowerCase() === c.seed.toLowerCase() && p.tint === c.tint
23978
- && p.pairId === c.pairId && p.shape === c.shape && p.density === c.density && p.pillButtons === c.pillButtons
23979
- && presetModes(p).includes(c.mode));
23980
- }
23981
-
23982
24461
  /**
23983
24462
  * @vectoriox/iox-ui/design-core — the shared, FRAMEWORK-FREE core of the design system
23984
24463
  * (design-system plan §3e): the token vocabulary, the flavor contract (generated 1:1 from
@@ -23994,5 +24473,5 @@ function stylePresetOfChoices(choices) {
23994
24473
  * Generated bundle index. Do not edit.
23995
24474
  */
23996
24475
 
23997
- export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, AdoptOutcome, AdoptSkipReason, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, BUTTON_VARIANT_TO_STYLE, CANVAS_LINK_ATTRIBUTE, CARD_LINK_CLASS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, COMPOSED_HEADER, CONTRAST_AUDIT_MEMORY, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, DEFAULT_MENU_LOOK, DESIGN_TOKEN_GROUPS, DESIGN_TOKEN_TIERS, DESIGN_TOKEN_TYPES, DesignConfigKey, ELEMENT_STYLES, ELEMENT_STYLE_MARKER_CLASS, ELEMENT_STYLE_STATES, EMPTY_IMAGE_ATTRIBUTE, EMPTY_IMAGE_SRC, ElementStyleState, EntranceParam, FIELD_INVALID_CLASS, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FieldClass, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, HEADER_THEME_COLOR_TOKEN, HELD_CONTRAST, HeaderAttribute, HeaderBehaviour, HeaderEdge, HeaderTrait, INHERITED_TEXT, LinkType, MARK_STYLES, MAX_FONT_FILE_BYTES, MENU_ATTRIBUTES, MENU_PHONE_MAX_WIDTH, MOOD_IDS, MOOD_LABELS, MenuAttribute, MenuButtonKind, MenuForm, MenuHover, MenuPhoneForm, MenuReveal, MenuTrait, NEW_NODE_STYLE_DEFAULTS, OPENING_ATTRIBUTE, OPENING_FOLLOWER_ROLE, OPENING_SETTING, OwnedTraitLink, PALETTE_PRESETS, PRE_DS2_FLAVOR_DEFAULTS, PRE_MOTION, PRE_TINT_DEFAULT, REDUCED_DESIGN_MOTION, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, ROW_INDEX_ATTRIBUTE, SCHEME_INK, SCROLL_IDS, SPEC_A11Y, SPEC_AXES, SPEC_BUTTON_VARIANT_TO_STYLE, SPEC_CONTRAST, SPEC_CONTRAST_AUDIT, SPEC_DEFAULT_ELEMENT_STYLE, SPEC_ELEMENT_STYLES, SPEC_FIELD_CLASS_BASELINE, SPEC_FLAVORS, SPEC_FLAVOR_PACKS, SPEC_FLOATING_BASELINE, SPEC_FONTS, SPEC_FONT_METRICS, SPEC_FONT_ROLES, SPEC_INK_SCOPES, SPEC_LEGACY_ALIASES, SPEC_MOODS, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SCHEME_INK, SPEC_SCRIPTS, SPEC_SPRINGS, SPEC_STYLE_PRESETS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, STAGGER_MAX_ITEMS, STAGGER_SHRINK, STYLE_PRESETS, SUPERSEDED_STYLE_VALUES, SWISS_FLAVOR, THEME_COLOR_TOKEN, TINT_FULL_CHROMA, TINT_IDS, TINT_LEVELS, TINT_OWN_HUE_CHROMA, TINT_TURN_CHROMA, USER_TOKEN_SOURCE, WCAG_AA_TEXT, WCAG_AA_UI, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designApplySnapshot, designBaseline, designConfigEntries, designModeOf, designMotionOf, designRevertConfig, designTokenRepairs, designTokenRows, drawsScript, elementStyleById, elementStyleClass, elementStyleFace, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, ensureAlpha, ensureContrast, entranceDelay, flavorColours, flavorPackById, flavorSeedWrites, flavorSourceStamp, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerStaysAtTop, headingHref, inSrgbGamut, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFontWeightRange, isRetiredFlavorId, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, matchFontWeight, menuButtonAttributes, menuButtonOf, menuButtonProps, menuDialogAttributes, menuDialogProps, menuFormOf, menuFormSwitchesOnPhone, menuHoverOf, menuPhoneOf, menuRevealOf, missingDesignRows, missingFontRoles, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, openingFollowerSelector, ownedTraitStatus, ownedTraitsOf, packDesignChoices, pageOpeningScheme, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planSwissMigration, preTintAccentGrounds, presetChoices, presetModes, previewElementStyleAdoption, previewFontWeight, quantizeRgb, readDesignConfig, readOwnedTrait, relativeLuminance, releaseElementStyle, repeatedRowIndex, resolveDesignChoices, resolveDesignMotion, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, roleClass, sameDesignChoices, scriptsForLocale, setColorScheme, specTokenNames, splitTopLevel, springToLinear, stackNamesFamily, staggerDelay, styleKeyToKebab, stylePresetById, stylePresetOfChoices, switchElementStyle, syncNodeDesignClasses, textWidthEm, themeColors, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, untouchedSeedRow, userFontStack, validateFlavorPack, wcagContrastRatio, withSchemeInk, withoutScriptPartners, writeFieldError, writeOwnedTrait };
24476
+ export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, ARRIVE_IDS, AdoptOutcome, AdoptSkipReason, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, BRAND_NAME_ATTRIBUTE, BRAND_NAME_LONGER_AT, BRAND_NAME_LONG_AT, BRAND_ROLE, BUTTON_VARIANT_TO_STYLE, BrandNameLength, CANVAS_LINK_ATTRIBUTE, CARD_LINK_CLASS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, COMPOSED_HEADER, CONTRAST_AUDIT_MEMORY, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, DEFAULT_MENU_LOOK, DESIGN_TOKEN_GROUPS, DESIGN_TOKEN_TIERS, DESIGN_TOKEN_TYPES, DesignConfigKey, ELEMENT_STYLES, ELEMENT_STYLE_MARKER_CLASS, ELEMENT_STYLE_STATES, EMPTY_IMAGE_ATTRIBUTE, EMPTY_IMAGE_SRC, ElementStyleState, EntranceParam, FIELD_INVALID_CLASS, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FieldClass, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, HEADER_THEME_COLOR_TOKEN, HELD_CONTRAST, HeaderAttribute, HeaderBehaviour, HeaderEdge, HeaderTrait, INHERITED_TEXT, LEAVE_IDS, LEAVE_SHARE, LinkType, MARK_STYLES, MAX_FONT_FILE_BYTES, MENU_ATTRIBUTES, MENU_PHONE_MAX_WIDTH, MOOD_IDS, MOOD_LABELS, MOTION_LANGUAGE_PRESET_IDS, MOVE_IDS, MenuAttribute, MenuButtonKind, MenuForm, MenuHover, MenuPhoneForm, MenuReveal, MenuTrait, MotionWordTier, NEW_NODE_STYLE_DEFAULTS, OPENING_ATTRIBUTE, OPENING_FOLLOWER_ROLE, OPENING_SETTING, OwnedTraitLink, PALETTE_PRESETS, PRE_DS2_FLAVOR_DEFAULTS, PRE_MOTION, PRE_TINT_DEFAULT, QUIET_LEVELS, QUIET_MOVE, REDUCED_DESIGN_MOTION, REDUCED_ENTRANCE_MAX_MS, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, ROW_INDEX_ATTRIBUTE, SCHEME_INK, SCROLL_IDS, SPEC_A11Y, SPEC_AXES, SPEC_BUTTON_VARIANT_TO_STYLE, SPEC_CONTRAST, SPEC_CONTRAST_AUDIT, SPEC_DEFAULT_ELEMENT_STYLE, SPEC_ELEMENT_STYLES, SPEC_FIELD_CLASS_BASELINE, SPEC_FLAVORS, SPEC_FLAVOR_PACKS, SPEC_FLOATING_BASELINE, SPEC_FONTS, SPEC_FONT_METRICS, SPEC_FONT_ROLES, SPEC_INK_SCOPES, SPEC_LEGACY_ALIASES, SPEC_MOODS, SPEC_MOTION_LANGUAGE, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SCHEME_INK, SPEC_SCRIPTS, SPEC_SPRINGS, SPEC_STYLE_PRESETS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, SPRING_CURVE_TOKEN, STAGGER_MAX_ITEMS, STAGGER_SHRINK, STYLE_PRESETS, SUPERSEDED_STYLE_VALUES, SWISS_FLAVOR, THEME_COLOR_TOKEN, TINT_FULL_CHROMA, TINT_IDS, TINT_LEVELS, TINT_OWN_HUE_CHROMA, TINT_TURN_CHROMA, USER_TOKEN_SOURCE, WCAG_AA_TEXT, WCAG_AA_UI, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, brandNameAttributes, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designApplySnapshot, designBaseline, designConfigEntries, designModeOf, designMotionOf, designRevertConfig, designTokenRepairs, designTokenRows, drawsScript, elementStyleById, elementStyleClass, elementStyleFace, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, ensureAlpha, ensureContrast, entranceDelay, flavorColours, flavorPackById, flavorSeedWrites, flavorSourceStamp, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerStaysAtTop, headingHref, inSrgbGamut, isArriveId, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFontWeightRange, isMoveId, isRetiredFlavorId, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, matchFontWeight, menuButtonAttributes, menuButtonOf, menuButtonProps, menuDialogAttributes, menuDialogProps, menuFormOf, menuFormSwitchesOnPhone, menuHoverOf, menuPhoneOf, menuRevealOf, missingDesignRows, missingFontRoles, motionCurve, motionLanguageForPlan, motionLanguageOf, motionWordTier, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, openingFollowerSelector, ownedTraitStatus, ownedTraitsOf, packDesignChoices, pageOpeningScheme, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planSwissMigration, popAllowed, preTintAccentGrounds, presetChoices, presetModes, presetMotionLanguage, previewElementStyleAdoption, previewFontWeight, quantizeRgb, readDesignConfig, readOwnedTrait, relativeLuminance, releaseElementStyle, repeatedRowIndex, resolveDesignChoices, resolveDesignMotion, resolveMotionLanguageChoices, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, roleClass, sameDesignChoices, scriptsForLocale, setColorScheme, specTokenNames, splitTopLevel, springToLinear, stackNamesFamily, staggerDelay, styleKeyToKebab, stylePresetById, stylePresetOfChoices, switchElementStyle, syncNodeDesignClasses, textWidthEm, themeColors, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, untouchedSeedRow, userFontStack, validateFlavorPack, wcagContrastRatio, withSchemeInk, withoutScriptPartners, writeFieldError, writeOwnedTrait };
23998
24477
  //# sourceMappingURL=vectoriox-iox-ui-design-core.mjs.map