@vectoriox/iox-ui 5.141.0 → 5.143.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 (60) hide show
  1. package/composite-core/index.d.ts +40 -1
  2. package/design-core/index.d.ts +262 -28
  3. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +155 -90
  4. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  5. package/fesm2022/vectoriox-iox-ui-design-core.mjs +539 -268
  6. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  7. package/fesm2022/vectoriox-iox-ui-forms-core.mjs +61 -4
  8. package/fesm2022/vectoriox-iox-ui-forms-core.mjs.map +1 -1
  9. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +1547 -742
  10. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  11. package/fesm2022/vectoriox-iox-ui-harness-core.mjs +510 -20
  12. package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
  13. package/fesm2022/vectoriox-iox-ui.mjs +170 -22
  14. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  15. package/forms-core/index.d.ts +17 -3
  16. package/generation-core/index.d.ts +638 -148
  17. package/harness-core/index.d.ts +359 -20
  18. package/index.d.ts +94 -10
  19. package/package.json +1 -1
  20. package/src/composite-core/accordion.ts +16 -1
  21. package/src/composite-core/card.ts +22 -2
  22. package/src/composite-core/consent.ts +2 -2
  23. package/src/composite-core/recipe-parts.ts +7 -0
  24. package/src/composite-core/segmented.ts +17 -2
  25. package/src/composite-core/slider.ts +19 -3
  26. package/src/composite-core/tabs.ts +16 -1
  27. package/src/design-core/contrast-audit.ts +18 -0
  28. package/src/design-core/flavor-spec.generated.ts +212 -25
  29. package/src/design-core/ink-on-ground.ts +36 -0
  30. package/src/design-core/list-classes.ts +37 -0
  31. package/src/design-core/locale-direction.ts +24 -0
  32. package/src/design-core/menu-look.ts +2 -1
  33. package/src/design-core/node-classes.ts +3 -2
  34. package/src/design-core/public-api.ts +3 -0
  35. package/src/forms-core/form-presets.ts +72 -3
  36. package/src/generation-core/check-layout.ts +4 -1
  37. package/src/generation-core/check-list.ts +144 -5
  38. package/src/generation-core/compose-layout.ts +165 -20
  39. package/src/generation-core/compose-site.ts +58 -21
  40. package/src/generation-core/footer-mix.ts +8 -0
  41. package/src/generation-core/layout-fingerprint.ts +5 -1
  42. package/src/generation-core/layout-language.ts +5 -0
  43. package/src/generation-core/layout-wire.ts +64 -24
  44. package/src/generation-core/list-panel.ts +122 -0
  45. package/src/generation-core/list-space.ts +54 -1
  46. package/src/generation-core/list-table.ts +101 -0
  47. package/src/generation-core/nav-shape.ts +3 -2
  48. package/src/generation-core/node-baselines.generated.ts +3 -1
  49. package/src/generation-core/patterns.ts +4 -0
  50. package/src/generation-core/public-api.ts +1 -0
  51. package/src/generation-core/serialized-node.ts +2 -0
  52. package/src/generation-core/site-plan.model.ts +16 -2
  53. package/src/generation-core/site-spec.generated.ts +469 -201
  54. package/src/generation-core/validate-site-plan.ts +8 -4
  55. package/src/harness-core/business-types.ts +11 -0
  56. package/src/harness-core/film-idea.ts +178 -0
  57. package/src/harness-core/harness-spec.generated.ts +380 -18
  58. package/src/harness-core/intake.ts +8 -1
  59. package/src/harness-core/public-api.ts +1 -0
  60. package/styles/iox-design.css +420 -45
@@ -802,6 +802,21 @@ const SPEC_TIERS = {
802
802
  "type": "size",
803
803
  "default": "-10px"
804
804
  },
805
+ {
806
+ "name": "list-fan-step",
807
+ "type": "number",
808
+ "default": "9"
809
+ },
810
+ {
811
+ "name": "list-tilt",
812
+ "type": "number",
813
+ "default": "3"
814
+ },
815
+ {
816
+ "name": "list-tile",
817
+ "type": "color",
818
+ "default": "var(--iox-surface-2)"
819
+ },
805
820
  {
806
821
  "name": "panel-bg",
807
822
  "type": "color",
@@ -1110,7 +1125,12 @@ const SPEC_TIERS = {
1110
1125
  {
1111
1126
  "name": "link-decoration",
1112
1127
  "type": "keyword",
1113
- "default": "underline"
1128
+ "default": "none"
1129
+ },
1130
+ {
1131
+ "name": "link-weight",
1132
+ "type": "number",
1133
+ "default": "var(--iox-weight-strong)"
1114
1134
  },
1115
1135
  {
1116
1136
  "name": "link-current-color",
@@ -1120,12 +1140,12 @@ const SPEC_TIERS = {
1120
1140
  {
1121
1141
  "name": "link-current-decoration",
1122
1142
  "type": "keyword",
1123
- "default": "underline 2px var(--iox-accent-text)"
1143
+ "default": "none"
1124
1144
  },
1125
1145
  {
1126
1146
  "name": "link-underline-rest",
1127
1147
  "type": "number",
1128
- "default": "1"
1148
+ "default": "0"
1129
1149
  },
1130
1150
  {
1131
1151
  "name": "link-underline-thickness",
@@ -4280,6 +4300,7 @@ const SPEC_ELEMENT_STYLES = [
4280
4300
  ],
4281
4301
  "base": {
4282
4302
  "fontFamily": "var(--iox-font-body)",
4303
+ "fontWeight": "var(--iox-link-weight)",
4283
4304
  "color": "var(--iox-link-color)",
4284
4305
  "textDecoration": "var(--iox-link-decoration)",
4285
4306
  "transitionDuration": "var(--iox-dur-fast)",
@@ -7158,6 +7179,27 @@ const SPEC_FLAVOR_PACKS = [
7158
7179
  "group": "components",
7159
7180
  "value": "-10px"
7160
7181
  },
7182
+ {
7183
+ "name": "list-fan-step",
7184
+ "tier": "component",
7185
+ "type": "number",
7186
+ "group": "components",
7187
+ "value": "9"
7188
+ },
7189
+ {
7190
+ "name": "list-tilt",
7191
+ "tier": "component",
7192
+ "type": "number",
7193
+ "group": "components",
7194
+ "value": "3"
7195
+ },
7196
+ {
7197
+ "name": "list-tile",
7198
+ "tier": "component",
7199
+ "type": "color",
7200
+ "group": "components",
7201
+ "value": "var(--iox-surface-2)"
7202
+ },
7161
7203
  {
7162
7204
  "name": "panel-bg",
7163
7205
  "tier": "component",
@@ -7590,7 +7632,14 @@ const SPEC_FLAVOR_PACKS = [
7590
7632
  "tier": "component",
7591
7633
  "type": "keyword",
7592
7634
  "group": "components",
7593
- "value": "underline"
7635
+ "value": "none"
7636
+ },
7637
+ {
7638
+ "name": "link-weight",
7639
+ "tier": "component",
7640
+ "type": "number",
7641
+ "group": "components",
7642
+ "value": "var(--iox-weight-strong)"
7594
7643
  },
7595
7644
  {
7596
7645
  "name": "link-current-color",
@@ -7604,14 +7653,14 @@ const SPEC_FLAVOR_PACKS = [
7604
7653
  "tier": "component",
7605
7654
  "type": "keyword",
7606
7655
  "group": "components",
7607
- "value": "underline 2px var(--iox-accent-text)"
7656
+ "value": "none"
7608
7657
  },
7609
7658
  {
7610
7659
  "name": "link-underline-rest",
7611
7660
  "tier": "component",
7612
7661
  "type": "number",
7613
7662
  "group": "components",
7614
- "value": "1"
7663
+ "value": "0"
7615
7664
  },
7616
7665
  {
7617
7666
  "name": "link-underline-thickness",
@@ -9394,16 +9443,14 @@ const SPEC_FLAVOR_PACKS = [
9394
9443
  "tier": "component",
9395
9444
  "type": "color",
9396
9445
  "group": "components",
9397
- "value": "transparent",
9398
- "overridden": true
9446
+ "value": "var(--iox-surface-2)"
9399
9447
  },
9400
9448
  {
9401
9449
  "name": "button-ghost-decoration",
9402
9450
  "tier": "component",
9403
9451
  "type": "keyword",
9404
9452
  "group": "components",
9405
- "value": "underline",
9406
- "overridden": true
9453
+ "value": "none"
9407
9454
  },
9408
9455
  {
9409
9456
  "name": "card-bg",
@@ -9520,6 +9567,27 @@ const SPEC_FLAVOR_PACKS = [
9520
9567
  "group": "components",
9521
9568
  "value": "-10px"
9522
9569
  },
9570
+ {
9571
+ "name": "list-fan-step",
9572
+ "tier": "component",
9573
+ "type": "number",
9574
+ "group": "components",
9575
+ "value": "9"
9576
+ },
9577
+ {
9578
+ "name": "list-tilt",
9579
+ "tier": "component",
9580
+ "type": "number",
9581
+ "group": "components",
9582
+ "value": "3"
9583
+ },
9584
+ {
9585
+ "name": "list-tile",
9586
+ "tier": "component",
9587
+ "type": "color",
9588
+ "group": "components",
9589
+ "value": "var(--iox-surface-2)"
9590
+ },
9523
9591
  {
9524
9592
  "name": "panel-bg",
9525
9593
  "tier": "component",
@@ -9958,7 +10026,14 @@ const SPEC_FLAVOR_PACKS = [
9958
10026
  "tier": "component",
9959
10027
  "type": "keyword",
9960
10028
  "group": "components",
9961
- "value": "underline"
10029
+ "value": "none"
10030
+ },
10031
+ {
10032
+ "name": "link-weight",
10033
+ "tier": "component",
10034
+ "type": "number",
10035
+ "group": "components",
10036
+ "value": "var(--iox-weight-strong)"
9962
10037
  },
9963
10038
  {
9964
10039
  "name": "link-current-color",
@@ -9972,14 +10047,14 @@ const SPEC_FLAVOR_PACKS = [
9972
10047
  "tier": "component",
9973
10048
  "type": "keyword",
9974
10049
  "group": "components",
9975
- "value": "underline 2px var(--iox-accent-text)"
10050
+ "value": "none"
9976
10051
  },
9977
10052
  {
9978
10053
  "name": "link-underline-rest",
9979
10054
  "tier": "component",
9980
10055
  "type": "number",
9981
10056
  "group": "components",
9982
- "value": "1"
10057
+ "value": "0"
9983
10058
  },
9984
10059
  {
9985
10060
  "name": "link-underline-thickness",
@@ -11890,6 +11965,27 @@ const SPEC_FLAVOR_PACKS = [
11890
11965
  "group": "components",
11891
11966
  "value": "-10px"
11892
11967
  },
11968
+ {
11969
+ "name": "list-fan-step",
11970
+ "tier": "component",
11971
+ "type": "number",
11972
+ "group": "components",
11973
+ "value": "9"
11974
+ },
11975
+ {
11976
+ "name": "list-tilt",
11977
+ "tier": "component",
11978
+ "type": "number",
11979
+ "group": "components",
11980
+ "value": "3"
11981
+ },
11982
+ {
11983
+ "name": "list-tile",
11984
+ "tier": "component",
11985
+ "type": "color",
11986
+ "group": "components",
11987
+ "value": "var(--iox-surface-2)"
11988
+ },
11893
11989
  {
11894
11990
  "name": "panel-bg",
11895
11991
  "tier": "component",
@@ -12324,7 +12420,14 @@ const SPEC_FLAVOR_PACKS = [
12324
12420
  "tier": "component",
12325
12421
  "type": "keyword",
12326
12422
  "group": "components",
12327
- "value": "underline"
12423
+ "value": "none"
12424
+ },
12425
+ {
12426
+ "name": "link-weight",
12427
+ "tier": "component",
12428
+ "type": "number",
12429
+ "group": "components",
12430
+ "value": "var(--iox-weight-strong)"
12328
12431
  },
12329
12432
  {
12330
12433
  "name": "link-current-color",
@@ -12338,14 +12441,14 @@ const SPEC_FLAVOR_PACKS = [
12338
12441
  "tier": "component",
12339
12442
  "type": "keyword",
12340
12443
  "group": "components",
12341
- "value": "underline 2px var(--iox-accent-text)"
12444
+ "value": "none"
12342
12445
  },
12343
12446
  {
12344
12447
  "name": "link-underline-rest",
12345
12448
  "tier": "component",
12346
12449
  "type": "number",
12347
12450
  "group": "components",
12348
- "value": "1"
12451
+ "value": "0"
12349
12452
  },
12350
12453
  {
12351
12454
  "name": "link-underline-thickness",
@@ -14272,6 +14375,27 @@ const SPEC_FLAVOR_PACKS = [
14272
14375
  "group": "components",
14273
14376
  "value": "-10px"
14274
14377
  },
14378
+ {
14379
+ "name": "list-fan-step",
14380
+ "tier": "component",
14381
+ "type": "number",
14382
+ "group": "components",
14383
+ "value": "9"
14384
+ },
14385
+ {
14386
+ "name": "list-tilt",
14387
+ "tier": "component",
14388
+ "type": "number",
14389
+ "group": "components",
14390
+ "value": "3"
14391
+ },
14392
+ {
14393
+ "name": "list-tile",
14394
+ "tier": "component",
14395
+ "type": "color",
14396
+ "group": "components",
14397
+ "value": "var(--iox-surface-2)"
14398
+ },
14275
14399
  {
14276
14400
  "name": "panel-bg",
14277
14401
  "tier": "component",
@@ -14717,7 +14841,14 @@ const SPEC_FLAVOR_PACKS = [
14717
14841
  "tier": "component",
14718
14842
  "type": "keyword",
14719
14843
  "group": "components",
14720
- "value": "underline"
14844
+ "value": "none"
14845
+ },
14846
+ {
14847
+ "name": "link-weight",
14848
+ "tier": "component",
14849
+ "type": "number",
14850
+ "group": "components",
14851
+ "value": "var(--iox-weight-strong)"
14721
14852
  },
14722
14853
  {
14723
14854
  "name": "link-current-color",
@@ -14731,14 +14862,14 @@ const SPEC_FLAVOR_PACKS = [
14731
14862
  "tier": "component",
14732
14863
  "type": "keyword",
14733
14864
  "group": "components",
14734
- "value": "underline 2px var(--iox-accent-text)"
14865
+ "value": "none"
14735
14866
  },
14736
14867
  {
14737
14868
  "name": "link-underline-rest",
14738
14869
  "tier": "component",
14739
14870
  "type": "number",
14740
14871
  "group": "components",
14741
- "value": "1"
14872
+ "value": "0"
14742
14873
  },
14743
14874
  {
14744
14875
  "name": "link-underline-thickness",
@@ -16657,6 +16788,27 @@ const SPEC_FLAVOR_PACKS = [
16657
16788
  "group": "components",
16658
16789
  "value": "-10px"
16659
16790
  },
16791
+ {
16792
+ "name": "list-fan-step",
16793
+ "tier": "component",
16794
+ "type": "number",
16795
+ "group": "components",
16796
+ "value": "9"
16797
+ },
16798
+ {
16799
+ "name": "list-tilt",
16800
+ "tier": "component",
16801
+ "type": "number",
16802
+ "group": "components",
16803
+ "value": "3"
16804
+ },
16805
+ {
16806
+ "name": "list-tile",
16807
+ "tier": "component",
16808
+ "type": "color",
16809
+ "group": "components",
16810
+ "value": "var(--iox-surface-2)"
16811
+ },
16660
16812
  {
16661
16813
  "name": "panel-bg",
16662
16814
  "tier": "component",
@@ -17091,7 +17243,14 @@ const SPEC_FLAVOR_PACKS = [
17091
17243
  "tier": "component",
17092
17244
  "type": "keyword",
17093
17245
  "group": "components",
17094
- "value": "underline"
17246
+ "value": "none"
17247
+ },
17248
+ {
17249
+ "name": "link-weight",
17250
+ "tier": "component",
17251
+ "type": "number",
17252
+ "group": "components",
17253
+ "value": "var(--iox-weight-strong)"
17095
17254
  },
17096
17255
  {
17097
17256
  "name": "link-current-color",
@@ -17105,14 +17264,14 @@ const SPEC_FLAVOR_PACKS = [
17105
17264
  "tier": "component",
17106
17265
  "type": "keyword",
17107
17266
  "group": "components",
17108
- "value": "underline 2px var(--iox-accent-text)"
17267
+ "value": "none"
17109
17268
  },
17110
17269
  {
17111
17270
  "name": "link-underline-rest",
17112
17271
  "tier": "component",
17113
17272
  "type": "number",
17114
17273
  "group": "components",
17115
- "value": "1"
17274
+ "value": "0"
17116
17275
  },
17117
17276
  {
17118
17277
  "name": "link-underline-thickness",
@@ -19023,6 +19182,27 @@ const SPEC_FLAVOR_PACKS = [
19023
19182
  "group": "components",
19024
19183
  "value": "-10px"
19025
19184
  },
19185
+ {
19186
+ "name": "list-fan-step",
19187
+ "tier": "component",
19188
+ "type": "number",
19189
+ "group": "components",
19190
+ "value": "9"
19191
+ },
19192
+ {
19193
+ "name": "list-tilt",
19194
+ "tier": "component",
19195
+ "type": "number",
19196
+ "group": "components",
19197
+ "value": "3"
19198
+ },
19199
+ {
19200
+ "name": "list-tile",
19201
+ "tier": "component",
19202
+ "type": "color",
19203
+ "group": "components",
19204
+ "value": "var(--iox-surface-2)"
19205
+ },
19026
19206
  {
19027
19207
  "name": "panel-bg",
19028
19208
  "tier": "component",
@@ -19463,7 +19643,14 @@ const SPEC_FLAVOR_PACKS = [
19463
19643
  "tier": "component",
19464
19644
  "type": "keyword",
19465
19645
  "group": "components",
19466
- "value": "underline"
19646
+ "value": "none"
19647
+ },
19648
+ {
19649
+ "name": "link-weight",
19650
+ "tier": "component",
19651
+ "type": "number",
19652
+ "group": "components",
19653
+ "value": "var(--iox-weight-strong)"
19467
19654
  },
19468
19655
  {
19469
19656
  "name": "link-current-color",
@@ -19477,14 +19664,14 @@ const SPEC_FLAVOR_PACKS = [
19477
19664
  "tier": "component",
19478
19665
  "type": "keyword",
19479
19666
  "group": "components",
19480
- "value": "underline 2px var(--iox-accent-text)"
19667
+ "value": "none"
19481
19668
  },
19482
19669
  {
19483
19670
  "name": "link-underline-rest",
19484
19671
  "tier": "component",
19485
19672
  "type": "number",
19486
19673
  "group": "components",
19487
- "value": "1"
19674
+ "value": "0"
19488
19675
  },
19489
19676
  {
19490
19677
  "name": "link-underline-thickness",
@@ -20824,6 +21011,35 @@ function applyHeadingLevelRule(target, oldLevel, newLevel, baseline = {}) {
20824
21011
  return switchElementStyle(target, from, to, baseline);
20825
21012
  }
20826
21013
 
21014
+ /**
21015
+ * A COMPOSED LIST'S MIX ON ITS FRAME (award-ingredients-plan §7.1f AW11, board award-lists): the words a list section was
21016
+ * composed as ride on its frame as ONE prop, `listMix` (`item:packshot arrange:grid hover:swap …`, the wire's words), and
21017
+ * become marker classes — `iox-list-item-packshot`, `iox-list-hover-swap` — that the shared iox-design.css draws. The
21018
+ * same decision in all three render paths (`nodeDesignClasses`), so a word is drawn by CSS alone and the canvas, both
21019
+ * engine paths and the raw SSR agree. Bindings ▸ List reads and writes the same prop. Pure.
21020
+ */
21021
+ /** The prop (a Container's trait) the mix is stored under. */
21022
+ const LIST_MIX_PROP = 'listMix';
21023
+ /** Every class a mix writes starts with this — what a live re-sync removes. */
21024
+ const LIST_CLASS_PREFIX = 'iox-list-';
21025
+ const WORD = /^[a-z]+:[a-z0-9-]+$/;
21026
+ /** The stored mix's words (`item:packshot`), from `props` (saved) or the trait (builder); [] for none. */
21027
+ function listMixWordsOf(node) {
21028
+ if (!node)
21029
+ return [];
21030
+ const raw = node.props?.[LIST_MIX_PROP] ?? node.traits?.find(t => t?.name === LIST_MIX_PROP)?.default;
21031
+ const words = Array.isArray(raw) ? raw : typeof raw === 'string' ? raw.split(/\s+/) : [];
21032
+ return words.filter((w) => typeof w === 'string' && WORD.test(w));
21033
+ }
21034
+ /** The marker classes a list frame renders (`iox-list-arrange-hang iox-list-hover-swap`), or '' for none. */
21035
+ function listMixClasses(node) {
21036
+ return [...new Set(listMixWordsOf(node))].map(w => `${LIST_CLASS_PREFIX}${w.replace(':', '-')}`).join(' ');
21037
+ }
21038
+ /** True for a class this module writes. */
21039
+ function isListMixClass(c) {
21040
+ return c.startsWith(LIST_CLASS_PREFIX);
21041
+ }
21042
+
20827
21043
  /**
20828
21044
  * A section's EDGE into the section above it, and its SHAPE (award-ingredients plan §7.1d, AW6 — board award-body,
20829
21045
  * AW6-D1…D11). Two content traits on a Section, edited in Bindings ▸ Section edge and stamped by the composer, and ONE
@@ -21189,11 +21405,11 @@ function hasElementStyleMarker(node) {
21189
21405
  function nodeDesignClasses(node) {
21190
21406
  const marker = elementStyleClass(node?.elementStyle);
21191
21407
  return [marker ? `${ELEMENT_STYLE_MARKER_CLASS} ${marker}` : '', colorSchemeClass(colorSchemeOf(node)) ?? '', roleClass(node?.role) ?? '', barReserveClass(node) ?? '',
21192
- sectionDesignClasses(node)]
21408
+ sectionDesignClasses(node), listMixClasses(node)]
21193
21409
  .filter(Boolean).join(' ');
21194
21410
  }
21195
21411
  const isDesignClass = (c) => c === ELEMENT_STYLE_MARKER_CLASS || c.startsWith(MARKER_PREFIX) || c.startsWith(SCHEME_PREFIX) || c.startsWith(ROLE_PREFIX) || c.startsWith(BAR_RESERVE_CLASS)
21196
- || isSectionDesignClass(c);
21412
+ || isSectionDesignClass(c) || isListMixClass(c);
21197
21413
  /** Make an element's design classes match the node — the live switch on the canvas and the
21198
21414
  * component path's one-time stamp. Removes stale ones; touches no other class. */
21199
21415
  function syncNodeDesignClasses(el, node) {
@@ -21755,7 +21971,8 @@ var MenuButtonKind;
21755
21971
  })(MenuButtonKind || (MenuButtonKind = {}));
21756
21972
  var MenuHover;
21757
21973
  (function (MenuHover) {
21758
- /** A line draws under the page name (today's: the drawn underline of a navigation's links). */
21974
+ /** The page name changes colour (the link style's own hover). It drew a line until 2026-11-22 — no link draws one now
21975
+ * (Doron); the stored word stays. */
21759
21976
  MenuHover["Line"] = "line";
21760
21977
  /** The other page names dim. */
21761
21978
  MenuHover["Dim"] = "dim";
@@ -22079,246 +22296,77 @@ function previewElementStyleAdoption(tree, ctx) {
22079
22296
  return adoptElementStyles(JSON.parse(JSON.stringify(tree ?? [])), ctx);
22080
22297
  }
22081
22298
 
22299
+ function parseHexColor(hex) {
22300
+ const m = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec((hex ?? '').trim());
22301
+ if (!m)
22302
+ return null;
22303
+ let h = m[1];
22304
+ if (h.length === 3)
22305
+ h = h.split('').map(c => c + c).join('');
22306
+ const n = parseInt(h, 16);
22307
+ return { r: ((n >> 16) & 255) / 255, g: ((n >> 8) & 255) / 255, b: (n & 255) / 255 };
22308
+ }
22309
+ function toHexColor(c) {
22310
+ const q = (v) => Math.round(Math.min(1, Math.max(0, v)) * 255).toString(16).padStart(2, '0');
22311
+ return `#${q(c.r)}${q(c.g)}${q(c.b)}`;
22312
+ }
22313
+ const srgbToLinear = (v) => (v <= 0.04045 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4));
22314
+ const linearToSrgb = (v) => (v <= 0.0031308 ? v * 12.92 : 1.055 * Math.pow(v, 1 / 2.4) - 0.055);
22315
+ function rgbToOklab(c) {
22316
+ const r = srgbToLinear(c.r), g = srgbToLinear(c.g), b = srgbToLinear(c.b);
22317
+ const l = Math.cbrt(0.4122214708 * r + 0.5363325363 * g + 0.0514459929 * b);
22318
+ const m = Math.cbrt(0.2119034982 * r + 0.6806995451 * g + 0.1073969566 * b);
22319
+ const s = Math.cbrt(0.0883024619 * r + 0.2817188376 * g + 0.6299787005 * b);
22320
+ return {
22321
+ L: 0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s,
22322
+ a: 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s,
22323
+ b: 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s,
22324
+ };
22325
+ }
22326
+ function oklabToRgb(c) {
22327
+ const l = Math.pow(c.L + 0.3963377774 * c.a + 0.2158037573 * c.b, 3);
22328
+ const m = Math.pow(c.L - 0.1055613458 * c.a - 0.0638541728 * c.b, 3);
22329
+ const s = Math.pow(c.L - 0.0894841775 * c.a - 1.291485548 * c.b, 3);
22330
+ return {
22331
+ r: linearToSrgb(+4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s),
22332
+ g: linearToSrgb(-1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s),
22333
+ b: linearToSrgb(-0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s),
22334
+ };
22335
+ }
22336
+ const inSrgbGamut = (c) => [c.r, c.g, c.b].every(v => v >= -1e-6 && v <= 1 + 1e-6);
22337
+ const inGamut = inSrgbGamut;
22338
+ /** The OKLab colour at (L, hue, chroma), chroma reduced until it fits sRGB. */
22339
+ function atLightness(L, hueA, hueB, chroma) {
22340
+ const len = Math.hypot(hueA, hueB) || 1;
22341
+ const ua = hueA / len, ub = hueB / len;
22342
+ let c = chroma;
22343
+ for (let i = 0; i < 24; i++) {
22344
+ const rgb = oklabToRgb({ L, a: ua * c, b: ub * c });
22345
+ if (inGamut(rgb))
22346
+ return rgb;
22347
+ c *= 0.82;
22348
+ }
22349
+ return oklabToRgb({ L, a: 0, b: 0 });
22350
+ }
22351
+ // ── WCAG 2 (the gate) ────────────────────────────────────────────────────────
22352
+ function relativeLuminance(c) {
22353
+ return 0.2126 * srgbToLinear(c.r) + 0.7152 * srgbToLinear(c.g) + 0.0722 * srgbToLinear(c.b);
22354
+ }
22355
+ /** WCAG 2 contrast ratio between two colours (order-independent), 1..21. */
22356
+ function wcagContrastRatio(a, b) {
22357
+ const ca = typeof a === 'string' ? parseHexColor(a) : a;
22358
+ const cb = typeof b === 'string' ? parseHexColor(b) : b;
22359
+ if (!ca || !cb)
22360
+ return 1;
22361
+ const la = relativeLuminance(ca), lb = relativeLuminance(cb);
22362
+ const [hi, lo] = la >= lb ? [la, lb] : [lb, la];
22363
+ return (hi + 0.05) / (lo + 0.05);
22364
+ }
22365
+ // ── APCA (the read-out — WCAG 2 stays the gate) ─────────────────────────────
22082
22366
  /**
22083
- * A rendered Field's classes and its error, in design-core because two entries write into a Field: forms-core (the
22084
- * string renderer's markup, the form runtimes) and composite-core (the sign-in dialog). composite-core may not import
22085
- * forms-core (forms-core → actions-core → composite-core would close a cycle), and design-core imports no other entry.
22086
- * forms-core re-exports all three names. Framework-free; the DOM is the caller's element.
22087
- */
22088
- /** The classes the markup carries — the runtimes and the shared CSS key on these, never on a literal. */
22089
- var FieldClass;
22090
- (function (FieldClass) {
22091
- FieldClass["Root"] = "iox-field";
22092
- FieldClass["Label"] = "iox-field__label";
22093
- FieldClass["LabelHidden"] = "iox-field__label--hidden";
22094
- FieldClass["Required"] = "iox-field__required";
22095
- FieldClass["Control"] = "iox-field__control";
22096
- FieldClass["Help"] = "iox-field__help";
22097
- FieldClass["Error"] = "iox-field__error";
22098
- FieldClass["Group"] = "iox-field__group";
22099
- FieldClass["Option"] = "iox-field__option";
22100
- FieldClass["Choices"] = "iox-field__choices";
22101
- FieldClass["ChoicesChips"] = "iox-field__choices--chips";
22102
- FieldClass["ChoicesList"] = "iox-field__choices--list";
22103
- FieldClass["Chips"] = "iox-field__chips";
22104
- FieldClass["Chip"] = "iox-field__chip";
22105
- FieldClass["ChipInput"] = "iox-field__control--chip";
22106
- FieldClass["DateButton"] = "iox-field__control--date";
22107
- FieldClass["DateValue"] = "iox-field__date-value";
22108
- FieldClass["DateIcon"] = "iox-field__date-icon";
22109
- FieldClass["DateInput"] = "iox-field__date-input";
22110
- })(FieldClass || (FieldClass = {}));
22111
- /** A field's error class on its element (shared CSS keys on it). */
22112
- const FIELD_INVALID_CLASS = 'iox-invalid';
22113
- /**
22114
- * Say `text` as a Field's error — or clear it with '' — exactly as `IoxFieldComponent` renders one: the error paragraph
22115
- * (`role=alert`, id `<control id>-error`) at the field's end, `aria-invalid` and `aria-describedby` (help first) on every
22116
- * control, the invalid class on the field. ONE copy for every runtime that writes into a rendered Field (the string-form
22117
- * runtime, the sign-in dialog).
22118
- */
22119
- function writeFieldError(field, text) {
22120
- const controls = Array.from(field.querySelectorAll(`.${FieldClass.Control}`));
22121
- const id = (controls[0]?.id || `iox-field-${field.getAttribute('data-iox-field') ?? ''}`) + '-error';
22122
- let p = field.querySelector(`.${FieldClass.Error}`);
22123
- if (text) {
22124
- if (!p) {
22125
- p = field.ownerDocument.createElement('p');
22126
- p.className = FieldClass.Error;
22127
- p.id = id;
22128
- p.setAttribute('role', 'alert');
22129
- field.appendChild(p);
22130
- }
22131
- p.textContent = text;
22132
- }
22133
- else {
22134
- p?.remove();
22135
- }
22136
- field.classList.toggle(FIELD_INVALID_CLASS, !!text);
22137
- const helpId = field.querySelector(`.${FieldClass.Help}`)?.id;
22138
- const describedBy = [helpId, text ? id : ''].filter(Boolean).join(' ');
22139
- for (const control of controls) {
22140
- if (text)
22141
- control.setAttribute('aria-invalid', 'true');
22142
- else
22143
- control.removeAttribute('aria-invalid');
22144
- if (describedBy)
22145
- control.setAttribute('aria-describedby', describedBy);
22146
- else
22147
- control.removeAttribute('aria-describedby');
22148
- }
22149
- }
22150
-
22151
- /**
22152
- * Empty images (design-system DS3). A MARKED Image (`.iox-es-media`) with no source renders a box in
22153
- * the `surface-2` token with its aspect ratio kept — on the canvas with an "Add image" label, on the
22154
- * live site with nothing in it. An UNMARKED empty Image renders exactly as before (no `src`).
22155
- *
22156
- * Why a placeholder `src` instead of a src-less `<img>`: Chromium paints a src-less image as a broken
22157
- * image (a frame, an icon and the alt text) and ignores `aspect-ratio` once alt text is present, and no
22158
- * pseudo-element paints on an `<img>`. A real image with no natural size of its own (an SVG with no
22159
- * width/height) is a proper replaced element: `aspect-ratio`/`object-fit` apply, the background shows
22160
- * through, and its default object size (300×150) is the SAME for the canvas label and the live blank,
22161
- * so both renderers lay the box out identically. The fill itself is shared CSS (`iox-design.css`)
22162
- * keyed on {@link EMPTY_IMAGE_ATTRIBUTE}.
22163
- */
22164
- /** Set on a marked Image while it has no source — the hook the shared fill rule keys on. */
22165
- const EMPTY_IMAGE_ATTRIBUTE = 'data-iox-empty';
22166
- const svgUri = (svg) => `data:image/svg+xml,${encodeURIComponent(svg)}`;
22167
- /** The live site's blank: an SVG with no intrinsic size and nothing in it. */
22168
- const EMPTY_IMAGE_SRC = svgUri('<svg xmlns="http://www.w3.org/2000/svg"/>');
22169
- const xmlEscape = (s) => s.replace(/[&<>"']/g, c => `&#${c.charCodeAt(0)};`);
22170
- /**
22171
- * The canvas blank: the same no-size SVG with `label` centred as a chip. The chip carries its own
22172
- * light ground, so it reads on every flavor's `surface-2`, light or dark; it is builder chrome, never
22173
- * site content. Width is estimated from the label length (an image cannot measure text).
22174
- */
22175
- function emptyImageLabelSrc(label) {
22176
- const text = xmlEscape(label);
22177
- const width = Math.round(28 + label.length * 7);
22178
- return svgUri('<svg xmlns="http://www.w3.org/2000/svg"><svg x="50%" y="50%" overflow="visible">'
22179
- + `<rect x="${-width / 2}" y="-13" width="${width}" height="26" rx="13" fill="#ffffff" fill-opacity="0.92"/>`
22180
- + '<text x="0" y="0" text-anchor="middle" dominant-baseline="central" font-family="system-ui, -apple-system, \'Segoe UI\', sans-serif" '
22181
- + `font-size="12" font-weight="500" fill="#1f1d1b">${text}</text></svg></svg>`);
22182
- }
22183
- /**
22184
- * What a node's Image shows WHENEVER its source is empty: the canvas label (when `label` is given) or
22185
- * the live blank for a MARKED node; `null` — render exactly as before — for an unmarked node. It does
22186
- * not look at the source, so a renderer computes it once per marker/label and the component falls
22187
- * back to it the moment its source is cleared (a binding emptied, a context slot not yet filled).
22188
- */
22189
- function emptyImagePlaceholder(node, label) {
22190
- if (!hasElementStyleMarker(node))
22191
- return null;
22192
- return label ? emptyImageLabelSrc(label) : EMPTY_IMAGE_SRC;
22193
- }
22194
- /**
22195
- * The `src` a node's Image renders for a given source: its placeholder while the source is empty,
22196
- * `null` once it has one (the source itself renders) or when the node is unmarked.
22197
- */
22198
- function emptyImageSrc(node, src, label) {
22199
- if (src != null && src !== '')
22200
- return null;
22201
- return emptyImagePlaceholder(node, label);
22202
- }
22203
-
22204
- /**
22205
- * Where a node links (W1.1). Link and LinkedContainer always had two link types — an external URL or a
22206
- * website PAGE by its route — and ButtonBlock now has the same pair, so a composed "Get in touch" button
22207
- * is a page link the builder shows as `/contact`, not a hand-built URL. Framework-free: the composer
22208
- * (generation-core) writes it, the builder canvas and both engine render paths read it.
22209
- */
22210
- var LinkType;
22211
- (function (LinkType) {
22212
- /** Links nowhere — a Heading's default; "Link the whole card" (Card v2) turns its title's link on. */
22213
- LinkType["None"] = "none";
22214
- LinkType["External"] = "external";
22215
- LinkType["Page"] = "page";
22216
- })(LinkType || (LinkType = {}));
22217
- const ANCHOR_TAG = 'a';
22218
- /**
22219
- * The href a ButtonBlock renders, or `null` for none (it is a `<button>`, or a link with no target).
22220
- * Only an `<a>` links. A page link's route goes through `pageHref` — the engine's `resolvePageHref`
22221
- * (`:params` substituted, base-relative); the builder canvas passes none and shows the route as authored,
22222
- * as its Link does.
22223
- */
22224
- function buttonBlockHref(props, pageHref = route => route) {
22225
- if (props.tag !== ANCHOR_TAG)
22226
- return null;
22227
- const href = props.linkType === LinkType.Page ? pageHref(String(props.pageRoute ?? '')) : String(props.href ?? '');
22228
- return href || null;
22229
- }
22230
- /** The class of the `<a>` a linked Heading renders — the Card v2 stretched link keys on it (iox-design.css:
22231
- * the card is the click target, its buttons sit above, the focus ring is drawn on the card). */
22232
- const CARD_LINK_CLASS = 'iox-card-link';
22233
- /** On the editing canvas the anchor carries this, so the stretched `::after` is off and every part of the
22234
- * card stays clickable (board 8). */
22235
- const CANVAS_LINK_ATTRIBUTE = 'data-iox-canvas';
22236
- /**
22237
- * The href a linked Heading renders (Card v2: the card's title IS its link), or `null` when it links
22238
- * nowhere — `none`, or a link with no target yet (the title then renders as plain words). A page link goes
22239
- * through `pageHref` exactly as a ButtonBlock's does.
22240
- */
22241
- function headingHref(props, pageHref = route => route) {
22242
- if (props.linkType === LinkType.Page) {
22243
- const route = String(props.pageRoute ?? '');
22244
- return route ? pageHref(route) || null : null;
22245
- }
22246
- if (props.linkType === LinkType.External)
22247
- return String(props.url ?? '').trim() || null;
22248
- return null;
22249
- }
22250
-
22251
- function parseHexColor(hex) {
22252
- const m = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec((hex ?? '').trim());
22253
- if (!m)
22254
- return null;
22255
- let h = m[1];
22256
- if (h.length === 3)
22257
- h = h.split('').map(c => c + c).join('');
22258
- const n = parseInt(h, 16);
22259
- return { r: ((n >> 16) & 255) / 255, g: ((n >> 8) & 255) / 255, b: (n & 255) / 255 };
22260
- }
22261
- function toHexColor(c) {
22262
- const q = (v) => Math.round(Math.min(1, Math.max(0, v)) * 255).toString(16).padStart(2, '0');
22263
- return `#${q(c.r)}${q(c.g)}${q(c.b)}`;
22264
- }
22265
- const srgbToLinear = (v) => (v <= 0.04045 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4));
22266
- const linearToSrgb = (v) => (v <= 0.0031308 ? v * 12.92 : 1.055 * Math.pow(v, 1 / 2.4) - 0.055);
22267
- function rgbToOklab(c) {
22268
- const r = srgbToLinear(c.r), g = srgbToLinear(c.g), b = srgbToLinear(c.b);
22269
- const l = Math.cbrt(0.4122214708 * r + 0.5363325363 * g + 0.0514459929 * b);
22270
- const m = Math.cbrt(0.2119034982 * r + 0.6806995451 * g + 0.1073969566 * b);
22271
- const s = Math.cbrt(0.0883024619 * r + 0.2817188376 * g + 0.6299787005 * b);
22272
- return {
22273
- L: 0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s,
22274
- a: 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s,
22275
- b: 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s,
22276
- };
22277
- }
22278
- function oklabToRgb(c) {
22279
- const l = Math.pow(c.L + 0.3963377774 * c.a + 0.2158037573 * c.b, 3);
22280
- const m = Math.pow(c.L - 0.1055613458 * c.a - 0.0638541728 * c.b, 3);
22281
- const s = Math.pow(c.L - 0.0894841775 * c.a - 1.291485548 * c.b, 3);
22282
- return {
22283
- r: linearToSrgb(+4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s),
22284
- g: linearToSrgb(-1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s),
22285
- b: linearToSrgb(-0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s),
22286
- };
22287
- }
22288
- const inSrgbGamut = (c) => [c.r, c.g, c.b].every(v => v >= -1e-6 && v <= 1 + 1e-6);
22289
- const inGamut = inSrgbGamut;
22290
- /** The OKLab colour at (L, hue, chroma), chroma reduced until it fits sRGB. */
22291
- function atLightness(L, hueA, hueB, chroma) {
22292
- const len = Math.hypot(hueA, hueB) || 1;
22293
- const ua = hueA / len, ub = hueB / len;
22294
- let c = chroma;
22295
- for (let i = 0; i < 24; i++) {
22296
- const rgb = oklabToRgb({ L, a: ua * c, b: ub * c });
22297
- if (inGamut(rgb))
22298
- return rgb;
22299
- c *= 0.82;
22300
- }
22301
- return oklabToRgb({ L, a: 0, b: 0 });
22302
- }
22303
- // ── WCAG 2 (the gate) ────────────────────────────────────────────────────────
22304
- function relativeLuminance(c) {
22305
- return 0.2126 * srgbToLinear(c.r) + 0.7152 * srgbToLinear(c.g) + 0.0722 * srgbToLinear(c.b);
22306
- }
22307
- /** WCAG 2 contrast ratio between two colours (order-independent), 1..21. */
22308
- function wcagContrastRatio(a, b) {
22309
- const ca = typeof a === 'string' ? parseHexColor(a) : a;
22310
- const cb = typeof b === 'string' ? parseHexColor(b) : b;
22311
- if (!ca || !cb)
22312
- return 1;
22313
- const la = relativeLuminance(ca), lb = relativeLuminance(cb);
22314
- const [hi, lo] = la >= lb ? [la, lb] : [lb, la];
22315
- return (hi + 0.05) / (lo + 0.05);
22316
- }
22317
- // ── APCA (the read-out — WCAG 2 stays the gate) ─────────────────────────────
22318
- /**
22319
- * APCA-W3 lightness contrast Lc (0.0.98G-4g constants), text-on-background and signed:
22320
- * positive for dark-on-light, negative for light-on-dark; |Lc| ≈ 106–108 at the extremes.
22321
- * Shown in the picker as the perceptual read-out; never used as the pass/fail gate here.
22367
+ * APCA-W3 lightness contrast Lc (0.0.98G-4g constants), text-on-background and signed:
22368
+ * positive for dark-on-light, negative for light-on-dark; |Lc| ≈ 106–108 at the extremes.
22369
+ * Shown in the picker as the perceptual read-out; never used as the pass/fail gate here.
22322
22370
  */
22323
22371
  function apcaLc(text, bg) {
22324
22372
  const toY = (c) => 0.2126729 * Math.pow(c.r, 2.4) + 0.7151522 * Math.pow(c.g, 2.4) + 0.072175 * Math.pow(c.b, 2.4);
@@ -22872,6 +22920,191 @@ function preTintAccentGrounds(palette) {
22872
22920
  return { bg: palette.light['bg'] ?? '', bgDark: dark['bg'], inverseBg: palette.light['inverse-bg'], inverseBgDark: dark['inverse-bg'] };
22873
22921
  }
22874
22922
 
22923
+ const DEFAULT_GROUND_INKS = Object.freeze({ dark: '#111111', light: '#ffffff' });
22924
+ /** WCAG 2 AA for body text. */
22925
+ const GROUND_INK_MIN = 4.5;
22926
+ /** The ink for a ground (and the ground, moved only when no ink reaches `min`); null when the ground is no hex colour. */
22927
+ function inkOnGround(ground, inks = DEFAULT_GROUND_INKS, min = GROUND_INK_MIN) {
22928
+ const g = parseHexColor(String(ground ?? ''));
22929
+ if (!g || !parseHexColor(inks.dark) || !parseHexColor(inks.light))
22930
+ return null;
22931
+ const dark = wcagContrastRatio(inks.dark, g);
22932
+ const light = wcagContrastRatio(inks.light, g);
22933
+ const ink = dark >= light ? inks.dark : inks.light;
22934
+ if (Math.max(dark, light) >= min)
22935
+ return { ground: toHexColor(g), ink, moved: false };
22936
+ return { ground: ensureContrast(toHexColor(g), [ink], min), ink, moved: true };
22937
+ }
22938
+
22939
+ /**
22940
+ * A rendered Field's classes and its error, in design-core because two entries write into a Field: forms-core (the
22941
+ * string renderer's markup, the form runtimes) and composite-core (the sign-in dialog). composite-core may not import
22942
+ * forms-core (forms-core → actions-core → composite-core would close a cycle), and design-core imports no other entry.
22943
+ * forms-core re-exports all three names. Framework-free; the DOM is the caller's element.
22944
+ */
22945
+ /** The classes the markup carries — the runtimes and the shared CSS key on these, never on a literal. */
22946
+ var FieldClass;
22947
+ (function (FieldClass) {
22948
+ FieldClass["Root"] = "iox-field";
22949
+ FieldClass["Label"] = "iox-field__label";
22950
+ FieldClass["LabelHidden"] = "iox-field__label--hidden";
22951
+ FieldClass["Required"] = "iox-field__required";
22952
+ FieldClass["Control"] = "iox-field__control";
22953
+ FieldClass["Help"] = "iox-field__help";
22954
+ FieldClass["Error"] = "iox-field__error";
22955
+ FieldClass["Group"] = "iox-field__group";
22956
+ FieldClass["Option"] = "iox-field__option";
22957
+ FieldClass["Choices"] = "iox-field__choices";
22958
+ FieldClass["ChoicesChips"] = "iox-field__choices--chips";
22959
+ FieldClass["ChoicesList"] = "iox-field__choices--list";
22960
+ FieldClass["Chips"] = "iox-field__chips";
22961
+ FieldClass["Chip"] = "iox-field__chip";
22962
+ FieldClass["ChipInput"] = "iox-field__control--chip";
22963
+ FieldClass["DateButton"] = "iox-field__control--date";
22964
+ FieldClass["DateValue"] = "iox-field__date-value";
22965
+ FieldClass["DateIcon"] = "iox-field__date-icon";
22966
+ FieldClass["DateInput"] = "iox-field__date-input";
22967
+ })(FieldClass || (FieldClass = {}));
22968
+ /** A field's error class on its element (shared CSS keys on it). */
22969
+ const FIELD_INVALID_CLASS = 'iox-invalid';
22970
+ /**
22971
+ * Say `text` as a Field's error — or clear it with '' — exactly as `IoxFieldComponent` renders one: the error paragraph
22972
+ * (`role=alert`, id `<control id>-error`) at the field's end, `aria-invalid` and `aria-describedby` (help first) on every
22973
+ * control, the invalid class on the field. ONE copy for every runtime that writes into a rendered Field (the string-form
22974
+ * runtime, the sign-in dialog).
22975
+ */
22976
+ function writeFieldError(field, text) {
22977
+ const controls = Array.from(field.querySelectorAll(`.${FieldClass.Control}`));
22978
+ const id = (controls[0]?.id || `iox-field-${field.getAttribute('data-iox-field') ?? ''}`) + '-error';
22979
+ let p = field.querySelector(`.${FieldClass.Error}`);
22980
+ if (text) {
22981
+ if (!p) {
22982
+ p = field.ownerDocument.createElement('p');
22983
+ p.className = FieldClass.Error;
22984
+ p.id = id;
22985
+ p.setAttribute('role', 'alert');
22986
+ field.appendChild(p);
22987
+ }
22988
+ p.textContent = text;
22989
+ }
22990
+ else {
22991
+ p?.remove();
22992
+ }
22993
+ field.classList.toggle(FIELD_INVALID_CLASS, !!text);
22994
+ const helpId = field.querySelector(`.${FieldClass.Help}`)?.id;
22995
+ const describedBy = [helpId, text ? id : ''].filter(Boolean).join(' ');
22996
+ for (const control of controls) {
22997
+ if (text)
22998
+ control.setAttribute('aria-invalid', 'true');
22999
+ else
23000
+ control.removeAttribute('aria-invalid');
23001
+ if (describedBy)
23002
+ control.setAttribute('aria-describedby', describedBy);
23003
+ else
23004
+ control.removeAttribute('aria-describedby');
23005
+ }
23006
+ }
23007
+
23008
+ /**
23009
+ * Empty images (design-system DS3). A MARKED Image (`.iox-es-media`) with no source renders a box in
23010
+ * the `surface-2` token with its aspect ratio kept — on the canvas with an "Add image" label, on the
23011
+ * live site with nothing in it. An UNMARKED empty Image renders exactly as before (no `src`).
23012
+ *
23013
+ * Why a placeholder `src` instead of a src-less `<img>`: Chromium paints a src-less image as a broken
23014
+ * image (a frame, an icon and the alt text) and ignores `aspect-ratio` once alt text is present, and no
23015
+ * pseudo-element paints on an `<img>`. A real image with no natural size of its own (an SVG with no
23016
+ * width/height) is a proper replaced element: `aspect-ratio`/`object-fit` apply, the background shows
23017
+ * through, and its default object size (300×150) is the SAME for the canvas label and the live blank,
23018
+ * so both renderers lay the box out identically. The fill itself is shared CSS (`iox-design.css`)
23019
+ * keyed on {@link EMPTY_IMAGE_ATTRIBUTE}.
23020
+ */
23021
+ /** Set on a marked Image while it has no source — the hook the shared fill rule keys on. */
23022
+ const EMPTY_IMAGE_ATTRIBUTE = 'data-iox-empty';
23023
+ const svgUri = (svg) => `data:image/svg+xml,${encodeURIComponent(svg)}`;
23024
+ /** The live site's blank: an SVG with no intrinsic size and nothing in it. */
23025
+ const EMPTY_IMAGE_SRC = svgUri('<svg xmlns="http://www.w3.org/2000/svg"/>');
23026
+ const xmlEscape = (s) => s.replace(/[&<>"']/g, c => `&#${c.charCodeAt(0)};`);
23027
+ /**
23028
+ * The canvas blank: the same no-size SVG with `label` centred as a chip. The chip carries its own
23029
+ * light ground, so it reads on every flavor's `surface-2`, light or dark; it is builder chrome, never
23030
+ * site content. Width is estimated from the label length (an image cannot measure text).
23031
+ */
23032
+ function emptyImageLabelSrc(label) {
23033
+ const text = xmlEscape(label);
23034
+ const width = Math.round(28 + label.length * 7);
23035
+ return svgUri('<svg xmlns="http://www.w3.org/2000/svg"><svg x="50%" y="50%" overflow="visible">'
23036
+ + `<rect x="${-width / 2}" y="-13" width="${width}" height="26" rx="13" fill="#ffffff" fill-opacity="0.92"/>`
23037
+ + '<text x="0" y="0" text-anchor="middle" dominant-baseline="central" font-family="system-ui, -apple-system, \'Segoe UI\', sans-serif" '
23038
+ + `font-size="12" font-weight="500" fill="#1f1d1b">${text}</text></svg></svg>`);
23039
+ }
23040
+ /**
23041
+ * What a node's Image shows WHENEVER its source is empty: the canvas label (when `label` is given) or
23042
+ * the live blank for a MARKED node; `null` — render exactly as before — for an unmarked node. It does
23043
+ * not look at the source, so a renderer computes it once per marker/label and the component falls
23044
+ * back to it the moment its source is cleared (a binding emptied, a context slot not yet filled).
23045
+ */
23046
+ function emptyImagePlaceholder(node, label) {
23047
+ if (!hasElementStyleMarker(node))
23048
+ return null;
23049
+ return label ? emptyImageLabelSrc(label) : EMPTY_IMAGE_SRC;
23050
+ }
23051
+ /**
23052
+ * The `src` a node's Image renders for a given source: its placeholder while the source is empty,
23053
+ * `null` once it has one (the source itself renders) or when the node is unmarked.
23054
+ */
23055
+ function emptyImageSrc(node, src, label) {
23056
+ if (src != null && src !== '')
23057
+ return null;
23058
+ return emptyImagePlaceholder(node, label);
23059
+ }
23060
+
23061
+ /**
23062
+ * Where a node links (W1.1). Link and LinkedContainer always had two link types — an external URL or a
23063
+ * website PAGE by its route — and ButtonBlock now has the same pair, so a composed "Get in touch" button
23064
+ * is a page link the builder shows as `/contact`, not a hand-built URL. Framework-free: the composer
23065
+ * (generation-core) writes it, the builder canvas and both engine render paths read it.
23066
+ */
23067
+ var LinkType;
23068
+ (function (LinkType) {
23069
+ /** Links nowhere — a Heading's default; "Link the whole card" (Card v2) turns its title's link on. */
23070
+ LinkType["None"] = "none";
23071
+ LinkType["External"] = "external";
23072
+ LinkType["Page"] = "page";
23073
+ })(LinkType || (LinkType = {}));
23074
+ const ANCHOR_TAG = 'a';
23075
+ /**
23076
+ * The href a ButtonBlock renders, or `null` for none (it is a `<button>`, or a link with no target).
23077
+ * Only an `<a>` links. A page link's route goes through `pageHref` — the engine's `resolvePageHref`
23078
+ * (`:params` substituted, base-relative); the builder canvas passes none and shows the route as authored,
23079
+ * as its Link does.
23080
+ */
23081
+ function buttonBlockHref(props, pageHref = route => route) {
23082
+ if (props.tag !== ANCHOR_TAG)
23083
+ return null;
23084
+ const href = props.linkType === LinkType.Page ? pageHref(String(props.pageRoute ?? '')) : String(props.href ?? '');
23085
+ return href || null;
23086
+ }
23087
+ /** The class of the `<a>` a linked Heading renders — the Card v2 stretched link keys on it (iox-design.css:
23088
+ * the card is the click target, its buttons sit above, the focus ring is drawn on the card). */
23089
+ const CARD_LINK_CLASS = 'iox-card-link';
23090
+ /** On the editing canvas the anchor carries this, so the stretched `::after` is off and every part of the
23091
+ * card stays clickable (board 8). */
23092
+ const CANVAS_LINK_ATTRIBUTE = 'data-iox-canvas';
23093
+ /**
23094
+ * The href a linked Heading renders (Card v2: the card's title IS its link), or `null` when it links
23095
+ * nowhere — `none`, or a link with no target yet (the title then renders as plain words). A page link goes
23096
+ * through `pageHref` exactly as a ButtonBlock's does.
23097
+ */
23098
+ function headingHref(props, pageHref = route => route) {
23099
+ if (props.linkType === LinkType.Page) {
23100
+ const route = String(props.pageRoute ?? '');
23101
+ return route ? pageHref(route) || null : null;
23102
+ }
23103
+ if (props.linkType === LinkType.External)
23104
+ return String(props.url ?? '').trim() || null;
23105
+ return null;
23106
+ }
23107
+
22875
23108
  const FORM_PARTS = SPEC_CONTRAST_AUDIT.formParts;
22876
23109
  const INK_SCOPES = SPEC_INK_SCOPES;
22877
23110
  const SCRIMS = SPEC_CONTRAST_AUDIT.scrims;
@@ -22884,6 +23117,15 @@ const NOT_CONTENT = new Set(['rule', 'media']);
22884
23117
  /** Styles whose fill IS their mark (premium M6: a reading bar): the fill is judged as a graphic (3:1, WCAG 1.4.11) against
22885
23118
  * the ground it sits on, never its own ink on it — it holds no words. The contract's audit, 1:1. */
22886
23119
  const MARK_STYLES = new Set(['progress-bar']);
23120
+ /**
23121
+ * A LINK in running text draws no line (Doron 2026-11-22) and must still be told from the words around it (WCAG 1.4.1):
23122
+ * by its WEIGHT — at least `LINK_WEIGHT_STEP` above the body's (technique G182) — else by a colour ≥ 3:1 against its
23123
+ * text's ink (G183), judged as the `beside text` pair. Colour alone cannot carry it in every look: a Brand or Muted
23124
+ * section has one ink. The contract's audit, 1:1 (colour.mjs `TEXT_LINK_STYLES`).
23125
+ */
23126
+ const TEXT_LINK_STYLES = new Set(['link']);
23127
+ const LINK_WEIGHT_STEP = 100;
23128
+ const BODY_STYLE = 'body';
22887
23129
  const SECTION_STYLE = 'section';
22888
23130
  const ICON_STYLE = 'icon';
22889
23131
  const GLYPH_GROUP = 'Media';
@@ -22906,6 +23148,8 @@ function resolveIn(values, v) {
22906
23148
  const overAll = (tops, unders) => unders.flatMap(u => tops.map(t => compositeOver(t, u)));
22907
23149
  const opaque = (paints) => paints.some(c => c.a > 0);
22908
23150
  const ownStyle = (e) => (e.base ?? {});
23151
+ /** How much heavier a style's words are than the body's (NaN when either weight is not a number). */
23152
+ const weightStep = (values, style, bodyWeight) => Number(resolveIn(values, style['fontWeight'])) - Number(resolveIn(values, bodyWeight));
22909
23153
  function inkScoped(values, styleId) {
22910
23154
  const scope = INK_SCOPES.find(s => s.styles.includes(styleId));
22911
23155
  return scope ? { ...values, ...scope.set } : values;
@@ -22959,6 +23203,7 @@ function sweepDesignContrast(rows, mode) {
22959
23203
  const notices = styles.filter(e => e.group === FORMS_GROUP && ownStyle(e)['color']);
22960
23204
  const section = ownStyle(byId.get(SECTION_STYLE));
22961
23205
  const iconColour = ownStyle(byId.get(ICON_STYLE))['color'];
23206
+ const bodyWeight = ownStyle(byId.get(BODY_STYLE))['fontWeight'];
22962
23207
  for (const schemeId of SCHEME_IDS) {
22963
23208
  const values = resolveSchemeTokenValues(rows, mode, schemeId);
22964
23209
  const pageInk = parseCssColour(values['text']);
@@ -23002,6 +23247,10 @@ function sweepDesignContrast(rows, mode) {
23002
23247
  const under = fill.length && opaque(fill) ? overAll(fill, bgs) : bgs;
23003
23248
  const ink = s['color'] ? parseCssColour(resolveIn(values, s['color']), boxInk) : boxInk;
23004
23249
  check(e.id, state === 'base' ? (glyph ? 'glyph' : 'text') : `${state} text`, ink, under, glyph ? WCAG_AA_UI : WCAG_AA_TEXT);
23250
+ // A link in running text: its weight tells it from its text, else its colour must (3:1 against the text's ink).
23251
+ if (state === 'base' && TEXT_LINK_STYLES.has(e.id) && !(weightStep(values, s, bodyWeight) >= LINK_WEIGHT_STEP)) {
23252
+ check(e.id, 'beside text', ink, boxInk ? [boxInk] : [], WCAG_AA_UI);
23253
+ }
23005
23254
  // The active tab's mark is the selected state's indicator (WCAG 1.4.11) — the contract's audit, 1:1.
23006
23255
  const on = state === 'on' ? e.on : undefined;
23007
23256
  const mark = on?.['borderColor'];
@@ -25021,6 +25270,28 @@ function designPreloaderOf(config) {
25021
25270
  return hasRow ? preloaderOfChoices(choices) : null;
25022
25271
  }
25023
25272
 
25273
+ /**
25274
+ * Which way a language reads — ONE answer for the live document (`<html dir>`, vectoriox/iox-client-engine#17), the
25275
+ * builder and the composer (generation-core `isRtlLocale`). A locale is read by its language subtag (`he-IL` → `he`),
25276
+ * case-insensitively; anything else reads left to right. Framework-free, pure.
25277
+ */
25278
+ /** The direction a page's document is written in. */
25279
+ var LocaleDirection;
25280
+ (function (LocaleDirection) {
25281
+ LocaleDirection["Ltr"] = "ltr";
25282
+ LocaleDirection["Rtl"] = "rtl";
25283
+ })(LocaleDirection || (LocaleDirection = {}));
25284
+ /** The languages written right to left (their BCP 47 language subtags). */
25285
+ const RTL_LANGUAGES = new Set(['ar', 'ckb', 'dv', 'fa', 'he', 'iw', 'ps', 'sd', 'ug', 'ur', 'yi']);
25286
+ /** The language subtag of a locale (`he-IL` → `he`, `pt_BR` → `pt`), lower-cased; '' when there is none. */
25287
+ function languageOf(locale) {
25288
+ return String(locale ?? '').trim().split(/[-_]/)[0].toLowerCase();
25289
+ }
25290
+ /** The direction `locale` reads in — `rtl` for a right-to-left language, else `ltr` (an unknown or absent locale too). */
25291
+ function localeDirection(locale) {
25292
+ return RTL_LANGUAGES.has(languageOf(locale)) ? LocaleDirection.Rtl : LocaleDirection.Ltr;
25293
+ }
25294
+
25024
25295
  /**
25025
25296
  * @vectoriox/iox-ui/design-core — the shared, FRAMEWORK-FREE core of the design system
25026
25297
  * (design-system plan §3e): the token vocabulary, the flavor contract (generated 1:1 from
@@ -25036,5 +25307,5 @@ function designPreloaderOf(config) {
25036
25307
  * Generated bundle index. Do not edit.
25037
25308
  */
25038
25309
 
25039
- 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_EDGES, 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, HeaderInk, HeaderTrait, INHERITED_TEXT, LEAVE_IDS, LEAVE_SHARE, LinkType, MARK_STYLES, MAX_FONT_FILE_BYTES, MENU_ATTRIBUTES, MENU_PHONE_MAX_WIDTH, MIRRORED_EDGES, 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, PRELOADER_CAP_MS, PRELOADER_ENTER_EASE, PRELOADER_EXIT_EASE, PRELOADER_EXIT_IDS, PRELOADER_EXIT_MAX_MS, PRELOADER_IDS, PRELOADER_LETTERS_MAX, PRELOADER_LEVELS, PRELOADER_MIN_SHOW_MS, PRE_DS2_FLAVOR_DEFAULTS, PRE_MOTION, PRE_TINT_DEFAULT, PreloaderExit, PreloaderKind, 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, SCRUB_IDS, SCRUB_LEVELS, SEAM_CLASS_PREFIX, SEAM_MIRRORED_CLASS, SECTION_CARD_CLASS, SECTION_CARD_STYLES, SECTION_EDGES, SECTION_EDGE_TRAIT, SECTION_EDGE_TYPES, SECTION_FULL_STYLES, SECTION_SHAPE_TRAIT, 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, ScrubId, SectionEdge, SectionShape, 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, designPreloaderOf, designRevertConfig, designTokenRepairs, designTokenRows, drawsScript, edgeFitsShape, 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, graphemes, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerInkOf, headerStaysAtTop, headingHref, inSrgbGamut, isArriveId, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFirstVisit, isFontWeightRange, isMoveId, isPreloaderKind, isRetiredFlavorId, isScrubId, isSectionDesignClass, 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, planPreloader, planSectionShape, planSwissMigration, popAllowed, preTintAccentGrounds, preloaderExitMotion, preloaderExitOf, preloaderGraphemes, preloaderLeaveAt, preloaderOfChoices, preloaderPercent, preloaderWords, presetChoices, presetModes, presetMotionLanguage, previewElementStyleAdoption, previewFontWeight, quantizeRgb, readDesignConfig, readOwnedTrait, relativeLuminance, releaseElementStyle, repeatedRowIndex, resolveDesignChoices, resolveDesignMotion, resolveMotionLanguageChoices, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, roleClass, sameDesignChoices, schemeOfClasses, schemeUnderBar, scriptsForLocale, scrubOfChoices, sectionDesignClasses, sectionEdgeClass, sectionEdgeOf, sectionIsRtl, sectionShapeOf, setColorScheme, setSectionEdge, setSectionShape, 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 };
25310
+ 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_EDGES, CARD_LINK_CLASS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, COMPOSED_HEADER, CONTRAST_AUDIT_MEMORY, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, DEFAULT_GROUND_INKS, 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, GROUND_INK_MIN, HEADER_THEME_COLOR_TOKEN, HELD_CONTRAST, HeaderAttribute, HeaderBehaviour, HeaderEdge, HeaderInk, HeaderTrait, INHERITED_TEXT, LEAVE_IDS, LEAVE_SHARE, LINK_WEIGHT_STEP, LIST_CLASS_PREFIX, LIST_MIX_PROP, LinkType, LocaleDirection, MARK_STYLES, MAX_FONT_FILE_BYTES, MENU_ATTRIBUTES, MENU_PHONE_MAX_WIDTH, MIRRORED_EDGES, 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, PRELOADER_CAP_MS, PRELOADER_ENTER_EASE, PRELOADER_EXIT_EASE, PRELOADER_EXIT_IDS, PRELOADER_EXIT_MAX_MS, PRELOADER_IDS, PRELOADER_LETTERS_MAX, PRELOADER_LEVELS, PRELOADER_MIN_SHOW_MS, PRE_DS2_FLAVOR_DEFAULTS, PRE_MOTION, PRE_TINT_DEFAULT, PreloaderExit, PreloaderKind, QUIET_LEVELS, QUIET_MOVE, REDUCED_DESIGN_MOTION, REDUCED_ENTRANCE_MAX_MS, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, ROW_INDEX_ATTRIBUTE, RTL_LANGUAGES, SCHEME_INK, SCROLL_IDS, SCRUB_IDS, SCRUB_LEVELS, SEAM_CLASS_PREFIX, SEAM_MIRRORED_CLASS, SECTION_CARD_CLASS, SECTION_CARD_STYLES, SECTION_EDGES, SECTION_EDGE_TRAIT, SECTION_EDGE_TYPES, SECTION_FULL_STYLES, SECTION_SHAPE_TRAIT, 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, ScrubId, SectionEdge, SectionShape, TEXT_LINK_STYLES, 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, designPreloaderOf, designRevertConfig, designTokenRepairs, designTokenRows, drawsScript, edgeFitsShape, 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, graphemes, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerInkOf, headerStaysAtTop, headingHref, inSrgbGamut, inkOnGround, isArriveId, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFirstVisit, isFontWeightRange, isListMixClass, isMoveId, isPreloaderKind, isRetiredFlavorId, isScrubId, isSectionDesignClass, languageOf, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, listMixClasses, listMixWordsOf, localeDirection, 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, planPreloader, planSectionShape, planSwissMigration, popAllowed, preTintAccentGrounds, preloaderExitMotion, preloaderExitOf, preloaderGraphemes, preloaderLeaveAt, preloaderOfChoices, preloaderPercent, preloaderWords, presetChoices, presetModes, presetMotionLanguage, previewElementStyleAdoption, previewFontWeight, quantizeRgb, readDesignConfig, readOwnedTrait, relativeLuminance, releaseElementStyle, repeatedRowIndex, resolveDesignChoices, resolveDesignMotion, resolveMotionLanguageChoices, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, roleClass, sameDesignChoices, schemeOfClasses, schemeUnderBar, scriptsForLocale, scrubOfChoices, sectionDesignClasses, sectionEdgeClass, sectionEdgeOf, sectionIsRtl, sectionShapeOf, setColorScheme, setSectionEdge, setSectionShape, 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 };
25040
25311
  //# sourceMappingURL=vectoriox-iox-ui-design-core.mjs.map