@vectoriox/iox-ui 5.145.0 → 5.147.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.
- package/composite-core/index.d.ts +10 -1
- package/design-core/index.d.ts +336 -23
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs +2 -1
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +8 -5
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +459 -38
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +34 -3
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +108 -0
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +29 -1
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +23 -0
- package/harness-core/index.d.ts +91 -1
- package/index.d.ts +23 -2
- package/package.json +1 -1
- package/src/assist-core/site-look.ts +2 -1
- package/src/composite-core/slider.ts +7 -4
- package/src/design-core/design-apply.ts +19 -2
- package/src/design-core/design-settings.ts +18 -7
- package/src/design-core/design-token.model.ts +11 -0
- package/src/design-core/flavor-spec.generated.ts +298 -24
- package/src/design-core/flavor-tokens.ts +7 -1
- package/src/design-core/node-classes.ts +66 -1
- package/src/design-core/section-edge.ts +14 -4
- package/src/design-core/token-css.ts +48 -3
- package/src/generation-core/adjustments.ts +7 -3
- package/src/generation-core/site-spec.generated.ts +26 -0
- package/src/generation-core/validate-site-plan.ts +1 -0
- package/src/harness-core/harness-spec.generated.ts +108 -0
- package/src/harness-core/starting-design.ts +1 -1
|
@@ -436,7 +436,7 @@ export const SPEC_TIERS = {
|
|
|
436
436
|
"name": "space-gutter",
|
|
437
437
|
"type": "spacing",
|
|
438
438
|
"group": "space",
|
|
439
|
-
"desc": "
|
|
439
|
+
"desc": "The gutter floor: the least room beside the content (px, per Spacing)"
|
|
440
440
|
},
|
|
441
441
|
{
|
|
442
442
|
"name": "space-gap",
|
|
@@ -460,7 +460,37 @@ export const SPEC_TIERS = {
|
|
|
460
460
|
"name": "section-pad",
|
|
461
461
|
"type": "spacing",
|
|
462
462
|
"group": "space",
|
|
463
|
-
"desc": "Composite: space-section space-
|
|
463
|
+
"desc": "Composite: space-section space-inline"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"name": "space-edge",
|
|
467
|
+
"type": "spacing",
|
|
468
|
+
"group": "space",
|
|
469
|
+
"desc": "THE one gutter: 4% of the page or the gutter floor, whichever is more"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"name": "column-contained",
|
|
473
|
+
"type": "spacing",
|
|
474
|
+
"group": "space",
|
|
475
|
+
"desc": "One centred column (per Spacing)"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"name": "column-narrow",
|
|
479
|
+
"type": "spacing",
|
|
480
|
+
"group": "space",
|
|
481
|
+
"desc": "A reading column — a story, a case study (per Spacing)"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"name": "content-width",
|
|
485
|
+
"type": "spacing",
|
|
486
|
+
"group": "space",
|
|
487
|
+
"desc": "The column in force: 100% (wide) or a column's width — the site's word; a page's word re-declares it"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"name": "space-inline",
|
|
491
|
+
"type": "spacing",
|
|
492
|
+
"group": "space",
|
|
493
|
+
"desc": "Composite: the ONE inline inset the header, the footer and every section read"
|
|
464
494
|
},
|
|
465
495
|
{
|
|
466
496
|
"name": "dur-fast",
|
|
@@ -867,7 +897,7 @@ export const SPEC_TIERS = {
|
|
|
867
897
|
{
|
|
868
898
|
"name": "nav-pad",
|
|
869
899
|
"type": "spacing",
|
|
870
|
-
"default": "16px var(--iox-space-
|
|
900
|
+
"default": "16px var(--iox-space-inline)"
|
|
871
901
|
},
|
|
872
902
|
{
|
|
873
903
|
"name": "field-bg",
|
|
@@ -1727,21 +1757,27 @@ export const SPEC_AXES = {
|
|
|
1727
1757
|
"space-section": "64px",
|
|
1728
1758
|
"space-gutter": "20px",
|
|
1729
1759
|
"space-gap": "16px",
|
|
1730
|
-
"space-pad": "20px"
|
|
1760
|
+
"space-pad": "20px",
|
|
1761
|
+
"column-contained": "1200px",
|
|
1762
|
+
"column-narrow": "960px"
|
|
1731
1763
|
},
|
|
1732
1764
|
"regular": {
|
|
1733
1765
|
"label": "Regular",
|
|
1734
1766
|
"space-section": "96px",
|
|
1735
1767
|
"space-gutter": "24px",
|
|
1736
1768
|
"space-gap": "24px",
|
|
1737
|
-
"space-pad": "24px"
|
|
1769
|
+
"space-pad": "24px",
|
|
1770
|
+
"column-contained": "1240px",
|
|
1771
|
+
"column-narrow": "1000px"
|
|
1738
1772
|
},
|
|
1739
1773
|
"airy": {
|
|
1740
1774
|
"label": "Airy",
|
|
1741
1775
|
"space-section": "144px",
|
|
1742
1776
|
"space-gutter": "32px",
|
|
1743
1777
|
"space-gap": "32px",
|
|
1744
|
-
"space-pad": "32px"
|
|
1778
|
+
"space-pad": "32px",
|
|
1779
|
+
"column-contained": "1280px",
|
|
1780
|
+
"column-narrow": "1040px"
|
|
1745
1781
|
}
|
|
1746
1782
|
},
|
|
1747
1783
|
"motions": {
|
|
@@ -1921,6 +1957,28 @@ export const SPEC_AXES = {
|
|
|
1921
1957
|
}
|
|
1922
1958
|
}
|
|
1923
1959
|
},
|
|
1960
|
+
"columns": {
|
|
1961
|
+
"wide": {
|
|
1962
|
+
"label": "Wide",
|
|
1963
|
+
"column": null,
|
|
1964
|
+
"desc": "The window minus the gutter — as every page was before the column"
|
|
1965
|
+
},
|
|
1966
|
+
"contained": {
|
|
1967
|
+
"label": "Contained",
|
|
1968
|
+
"column": "column-contained",
|
|
1969
|
+
"desc": "One centred column"
|
|
1970
|
+
},
|
|
1971
|
+
"narrow": {
|
|
1972
|
+
"label": "Narrow",
|
|
1973
|
+
"column": "column-narrow",
|
|
1974
|
+
"desc": "A reading column — a story, a case study"
|
|
1975
|
+
}
|
|
1976
|
+
},
|
|
1977
|
+
"columnChoices": {
|
|
1978
|
+
"pre": "wide",
|
|
1979
|
+
"new": "contained"
|
|
1980
|
+
},
|
|
1981
|
+
"edgeShare": "4%",
|
|
1924
1982
|
"scrolls": {
|
|
1925
1983
|
"normal": {
|
|
1926
1984
|
"label": "Normal",
|
|
@@ -6048,7 +6106,8 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
6048
6106
|
"motion": "standard",
|
|
6049
6107
|
"pillButtons": false,
|
|
6050
6108
|
"mode": "light",
|
|
6051
|
-
"tint": "subtle"
|
|
6109
|
+
"tint": "subtle",
|
|
6110
|
+
"column": "contained"
|
|
6052
6111
|
},
|
|
6053
6112
|
"seed": "#2F5BEA",
|
|
6054
6113
|
"seeds": [
|
|
@@ -6750,7 +6809,42 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
6750
6809
|
"tier": "semantic",
|
|
6751
6810
|
"type": "spacing",
|
|
6752
6811
|
"group": "space",
|
|
6753
|
-
"value": "var(--iox-space-section) var(--iox-space-
|
|
6812
|
+
"value": "var(--iox-space-section) var(--iox-space-inline)"
|
|
6813
|
+
},
|
|
6814
|
+
{
|
|
6815
|
+
"name": "space-edge",
|
|
6816
|
+
"tier": "semantic",
|
|
6817
|
+
"type": "spacing",
|
|
6818
|
+
"group": "space",
|
|
6819
|
+
"value": "max(4%, var(--iox-space-gutter))"
|
|
6820
|
+
},
|
|
6821
|
+
{
|
|
6822
|
+
"name": "column-contained",
|
|
6823
|
+
"tier": "semantic",
|
|
6824
|
+
"type": "spacing",
|
|
6825
|
+
"group": "space",
|
|
6826
|
+
"value": "1240px"
|
|
6827
|
+
},
|
|
6828
|
+
{
|
|
6829
|
+
"name": "column-narrow",
|
|
6830
|
+
"tier": "semantic",
|
|
6831
|
+
"type": "spacing",
|
|
6832
|
+
"group": "space",
|
|
6833
|
+
"value": "1000px"
|
|
6834
|
+
},
|
|
6835
|
+
{
|
|
6836
|
+
"name": "content-width",
|
|
6837
|
+
"tier": "semantic",
|
|
6838
|
+
"type": "spacing",
|
|
6839
|
+
"group": "space",
|
|
6840
|
+
"value": "1240px"
|
|
6841
|
+
},
|
|
6842
|
+
{
|
|
6843
|
+
"name": "space-inline",
|
|
6844
|
+
"tier": "semantic",
|
|
6845
|
+
"type": "spacing",
|
|
6846
|
+
"group": "space",
|
|
6847
|
+
"value": "max(var(--iox-space-edge), calc((100% - var(--iox-content-width)) / 2))"
|
|
6754
6848
|
},
|
|
6755
6849
|
{
|
|
6756
6850
|
"name": "dur-fast",
|
|
@@ -7296,7 +7390,7 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
7296
7390
|
"tier": "component",
|
|
7297
7391
|
"type": "spacing",
|
|
7298
7392
|
"group": "components",
|
|
7299
|
-
"value": "16px var(--iox-space-
|
|
7393
|
+
"value": "16px var(--iox-space-inline)"
|
|
7300
7394
|
},
|
|
7301
7395
|
{
|
|
7302
7396
|
"name": "field-bg",
|
|
@@ -8424,7 +8518,8 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
8424
8518
|
"motion": "calm",
|
|
8425
8519
|
"pillButtons": false,
|
|
8426
8520
|
"mode": "light",
|
|
8427
|
-
"tint": "subtle"
|
|
8521
|
+
"tint": "subtle",
|
|
8522
|
+
"column": "contained"
|
|
8428
8523
|
},
|
|
8429
8524
|
"seed": "#7A5B36",
|
|
8430
8525
|
"seeds": [
|
|
@@ -9125,7 +9220,42 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
9125
9220
|
"tier": "semantic",
|
|
9126
9221
|
"type": "spacing",
|
|
9127
9222
|
"group": "space",
|
|
9128
|
-
"value": "var(--iox-space-section) var(--iox-space-
|
|
9223
|
+
"value": "var(--iox-space-section) var(--iox-space-inline)"
|
|
9224
|
+
},
|
|
9225
|
+
{
|
|
9226
|
+
"name": "space-edge",
|
|
9227
|
+
"tier": "semantic",
|
|
9228
|
+
"type": "spacing",
|
|
9229
|
+
"group": "space",
|
|
9230
|
+
"value": "max(4%, var(--iox-space-gutter))"
|
|
9231
|
+
},
|
|
9232
|
+
{
|
|
9233
|
+
"name": "column-contained",
|
|
9234
|
+
"tier": "semantic",
|
|
9235
|
+
"type": "spacing",
|
|
9236
|
+
"group": "space",
|
|
9237
|
+
"value": "1280px"
|
|
9238
|
+
},
|
|
9239
|
+
{
|
|
9240
|
+
"name": "column-narrow",
|
|
9241
|
+
"tier": "semantic",
|
|
9242
|
+
"type": "spacing",
|
|
9243
|
+
"group": "space",
|
|
9244
|
+
"value": "1040px"
|
|
9245
|
+
},
|
|
9246
|
+
{
|
|
9247
|
+
"name": "content-width",
|
|
9248
|
+
"tier": "semantic",
|
|
9249
|
+
"type": "spacing",
|
|
9250
|
+
"group": "space",
|
|
9251
|
+
"value": "1280px"
|
|
9252
|
+
},
|
|
9253
|
+
{
|
|
9254
|
+
"name": "space-inline",
|
|
9255
|
+
"tier": "semantic",
|
|
9256
|
+
"type": "spacing",
|
|
9257
|
+
"group": "space",
|
|
9258
|
+
"value": "max(var(--iox-space-edge), calc((100% - var(--iox-content-width)) / 2))"
|
|
9129
9259
|
},
|
|
9130
9260
|
{
|
|
9131
9261
|
"name": "dur-fast",
|
|
@@ -9684,7 +9814,7 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
9684
9814
|
"tier": "component",
|
|
9685
9815
|
"type": "spacing",
|
|
9686
9816
|
"group": "components",
|
|
9687
|
-
"value": "16px var(--iox-space-
|
|
9817
|
+
"value": "16px var(--iox-space-inline)"
|
|
9688
9818
|
},
|
|
9689
9819
|
{
|
|
9690
9820
|
"name": "field-bg",
|
|
@@ -10824,7 +10954,8 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
10824
10954
|
"motion": "standard",
|
|
10825
10955
|
"pillButtons": false,
|
|
10826
10956
|
"mode": "dark",
|
|
10827
|
-
"tint": "subtle"
|
|
10957
|
+
"tint": "subtle",
|
|
10958
|
+
"column": "contained"
|
|
10828
10959
|
},
|
|
10829
10960
|
"seed": "#6E5BFF",
|
|
10830
10961
|
"seeds": [
|
|
@@ -11530,7 +11661,42 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
11530
11661
|
"tier": "semantic",
|
|
11531
11662
|
"type": "spacing",
|
|
11532
11663
|
"group": "space",
|
|
11533
|
-
"value": "var(--iox-space-section) var(--iox-space-
|
|
11664
|
+
"value": "var(--iox-space-section) var(--iox-space-inline)"
|
|
11665
|
+
},
|
|
11666
|
+
{
|
|
11667
|
+
"name": "space-edge",
|
|
11668
|
+
"tier": "semantic",
|
|
11669
|
+
"type": "spacing",
|
|
11670
|
+
"group": "space",
|
|
11671
|
+
"value": "max(4%, var(--iox-space-gutter))"
|
|
11672
|
+
},
|
|
11673
|
+
{
|
|
11674
|
+
"name": "column-contained",
|
|
11675
|
+
"tier": "semantic",
|
|
11676
|
+
"type": "spacing",
|
|
11677
|
+
"group": "space",
|
|
11678
|
+
"value": "1240px"
|
|
11679
|
+
},
|
|
11680
|
+
{
|
|
11681
|
+
"name": "column-narrow",
|
|
11682
|
+
"tier": "semantic",
|
|
11683
|
+
"type": "spacing",
|
|
11684
|
+
"group": "space",
|
|
11685
|
+
"value": "1000px"
|
|
11686
|
+
},
|
|
11687
|
+
{
|
|
11688
|
+
"name": "content-width",
|
|
11689
|
+
"tier": "semantic",
|
|
11690
|
+
"type": "spacing",
|
|
11691
|
+
"group": "space",
|
|
11692
|
+
"value": "1240px"
|
|
11693
|
+
},
|
|
11694
|
+
{
|
|
11695
|
+
"name": "space-inline",
|
|
11696
|
+
"tier": "semantic",
|
|
11697
|
+
"type": "spacing",
|
|
11698
|
+
"group": "space",
|
|
11699
|
+
"value": "max(var(--iox-space-edge), calc((100% - var(--iox-content-width)) / 2))"
|
|
11534
11700
|
},
|
|
11535
11701
|
{
|
|
11536
11702
|
"name": "dur-fast",
|
|
@@ -12084,7 +12250,7 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
12084
12250
|
"tier": "component",
|
|
12085
12251
|
"type": "spacing",
|
|
12086
12252
|
"group": "components",
|
|
12087
|
-
"value": "16px var(--iox-space-
|
|
12253
|
+
"value": "16px var(--iox-space-inline)"
|
|
12088
12254
|
},
|
|
12089
12255
|
{
|
|
12090
12256
|
"name": "field-bg",
|
|
@@ -13214,7 +13380,8 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
13214
13380
|
"motion": "lively",
|
|
13215
13381
|
"pillButtons": true,
|
|
13216
13382
|
"mode": "light",
|
|
13217
|
-
"tint": "subtle"
|
|
13383
|
+
"tint": "subtle",
|
|
13384
|
+
"column": "contained"
|
|
13218
13385
|
},
|
|
13219
13386
|
"seed": "#0A66E8",
|
|
13220
13387
|
"seeds": [
|
|
@@ -13933,7 +14100,42 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
13933
14100
|
"tier": "semantic",
|
|
13934
14101
|
"type": "spacing",
|
|
13935
14102
|
"group": "space",
|
|
13936
|
-
"value": "var(--iox-space-section) var(--iox-space-
|
|
14103
|
+
"value": "var(--iox-space-section) var(--iox-space-inline)"
|
|
14104
|
+
},
|
|
14105
|
+
{
|
|
14106
|
+
"name": "space-edge",
|
|
14107
|
+
"tier": "semantic",
|
|
14108
|
+
"type": "spacing",
|
|
14109
|
+
"group": "space",
|
|
14110
|
+
"value": "max(4%, var(--iox-space-gutter))"
|
|
14111
|
+
},
|
|
14112
|
+
{
|
|
14113
|
+
"name": "column-contained",
|
|
14114
|
+
"tier": "semantic",
|
|
14115
|
+
"type": "spacing",
|
|
14116
|
+
"group": "space",
|
|
14117
|
+
"value": "1240px"
|
|
14118
|
+
},
|
|
14119
|
+
{
|
|
14120
|
+
"name": "column-narrow",
|
|
14121
|
+
"tier": "semantic",
|
|
14122
|
+
"type": "spacing",
|
|
14123
|
+
"group": "space",
|
|
14124
|
+
"value": "1000px"
|
|
14125
|
+
},
|
|
14126
|
+
{
|
|
14127
|
+
"name": "content-width",
|
|
14128
|
+
"tier": "semantic",
|
|
14129
|
+
"type": "spacing",
|
|
14130
|
+
"group": "space",
|
|
14131
|
+
"value": "1240px"
|
|
14132
|
+
},
|
|
14133
|
+
{
|
|
14134
|
+
"name": "space-inline",
|
|
14135
|
+
"tier": "semantic",
|
|
14136
|
+
"type": "spacing",
|
|
14137
|
+
"group": "space",
|
|
14138
|
+
"value": "max(var(--iox-space-edge), calc((100% - var(--iox-content-width)) / 2))"
|
|
13937
14139
|
},
|
|
13938
14140
|
{
|
|
13939
14141
|
"name": "dur-fast",
|
|
@@ -14499,7 +14701,7 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
14499
14701
|
"tier": "component",
|
|
14500
14702
|
"type": "spacing",
|
|
14501
14703
|
"group": "components",
|
|
14502
|
-
"value": "10px
|
|
14704
|
+
"value": "10px var(--iox-space-inline)",
|
|
14503
14705
|
"overridden": true
|
|
14504
14706
|
},
|
|
14505
14707
|
{
|
|
@@ -15648,7 +15850,8 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
15648
15850
|
"motion": "lively",
|
|
15649
15851
|
"pillButtons": true,
|
|
15650
15852
|
"mode": "light",
|
|
15651
|
-
"tint": "subtle"
|
|
15853
|
+
"tint": "subtle",
|
|
15854
|
+
"column": "contained"
|
|
15652
15855
|
},
|
|
15653
15856
|
"seed": "#6750A4",
|
|
15654
15857
|
"seeds": [
|
|
@@ -16349,7 +16552,42 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
16349
16552
|
"tier": "semantic",
|
|
16350
16553
|
"type": "spacing",
|
|
16351
16554
|
"group": "space",
|
|
16352
|
-
"value": "var(--iox-space-section) var(--iox-space-
|
|
16555
|
+
"value": "var(--iox-space-section) var(--iox-space-inline)"
|
|
16556
|
+
},
|
|
16557
|
+
{
|
|
16558
|
+
"name": "space-edge",
|
|
16559
|
+
"tier": "semantic",
|
|
16560
|
+
"type": "spacing",
|
|
16561
|
+
"group": "space",
|
|
16562
|
+
"value": "max(4%, var(--iox-space-gutter))"
|
|
16563
|
+
},
|
|
16564
|
+
{
|
|
16565
|
+
"name": "column-contained",
|
|
16566
|
+
"tier": "semantic",
|
|
16567
|
+
"type": "spacing",
|
|
16568
|
+
"group": "space",
|
|
16569
|
+
"value": "1240px"
|
|
16570
|
+
},
|
|
16571
|
+
{
|
|
16572
|
+
"name": "column-narrow",
|
|
16573
|
+
"tier": "semantic",
|
|
16574
|
+
"type": "spacing",
|
|
16575
|
+
"group": "space",
|
|
16576
|
+
"value": "1000px"
|
|
16577
|
+
},
|
|
16578
|
+
{
|
|
16579
|
+
"name": "content-width",
|
|
16580
|
+
"tier": "semantic",
|
|
16581
|
+
"type": "spacing",
|
|
16582
|
+
"group": "space",
|
|
16583
|
+
"value": "1240px"
|
|
16584
|
+
},
|
|
16585
|
+
{
|
|
16586
|
+
"name": "space-inline",
|
|
16587
|
+
"tier": "semantic",
|
|
16588
|
+
"type": "spacing",
|
|
16589
|
+
"group": "space",
|
|
16590
|
+
"value": "max(var(--iox-space-edge), calc((100% - var(--iox-content-width)) / 2))"
|
|
16353
16591
|
},
|
|
16354
16592
|
{
|
|
16355
16593
|
"name": "dur-fast",
|
|
@@ -16906,7 +17144,7 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
16906
17144
|
"tier": "component",
|
|
16907
17145
|
"type": "spacing",
|
|
16908
17146
|
"group": "components",
|
|
16909
|
-
"value": "16px var(--iox-space-
|
|
17147
|
+
"value": "16px var(--iox-space-inline)"
|
|
16910
17148
|
},
|
|
16911
17149
|
{
|
|
16912
17150
|
"name": "field-bg",
|
|
@@ -18044,7 +18282,8 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
18044
18282
|
"motion": "snappy",
|
|
18045
18283
|
"pillButtons": false,
|
|
18046
18284
|
"mode": "light",
|
|
18047
|
-
"tint": "subtle"
|
|
18285
|
+
"tint": "subtle",
|
|
18286
|
+
"column": "contained"
|
|
18048
18287
|
},
|
|
18049
18288
|
"seed": "#FF5C39",
|
|
18050
18289
|
"seeds": [
|
|
@@ -18734,7 +18973,42 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
18734
18973
|
"tier": "semantic",
|
|
18735
18974
|
"type": "spacing",
|
|
18736
18975
|
"group": "space",
|
|
18737
|
-
"value": "var(--iox-space-section) var(--iox-space-
|
|
18976
|
+
"value": "var(--iox-space-section) var(--iox-space-inline)"
|
|
18977
|
+
},
|
|
18978
|
+
{
|
|
18979
|
+
"name": "space-edge",
|
|
18980
|
+
"tier": "semantic",
|
|
18981
|
+
"type": "spacing",
|
|
18982
|
+
"group": "space",
|
|
18983
|
+
"value": "max(4%, var(--iox-space-gutter))"
|
|
18984
|
+
},
|
|
18985
|
+
{
|
|
18986
|
+
"name": "column-contained",
|
|
18987
|
+
"tier": "semantic",
|
|
18988
|
+
"type": "spacing",
|
|
18989
|
+
"group": "space",
|
|
18990
|
+
"value": "1200px"
|
|
18991
|
+
},
|
|
18992
|
+
{
|
|
18993
|
+
"name": "column-narrow",
|
|
18994
|
+
"tier": "semantic",
|
|
18995
|
+
"type": "spacing",
|
|
18996
|
+
"group": "space",
|
|
18997
|
+
"value": "960px"
|
|
18998
|
+
},
|
|
18999
|
+
{
|
|
19000
|
+
"name": "content-width",
|
|
19001
|
+
"tier": "semantic",
|
|
19002
|
+
"type": "spacing",
|
|
19003
|
+
"group": "space",
|
|
19004
|
+
"value": "1200px"
|
|
19005
|
+
},
|
|
19006
|
+
{
|
|
19007
|
+
"name": "space-inline",
|
|
19008
|
+
"tier": "semantic",
|
|
19009
|
+
"type": "spacing",
|
|
19010
|
+
"group": "space",
|
|
19011
|
+
"value": "max(var(--iox-space-edge), calc((100% - var(--iox-content-width)) / 2))"
|
|
18738
19012
|
},
|
|
18739
19013
|
{
|
|
18740
19014
|
"name": "dur-fast",
|
|
@@ -19300,7 +19574,7 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
19300
19574
|
"tier": "component",
|
|
19301
19575
|
"type": "spacing",
|
|
19302
19576
|
"group": "components",
|
|
19303
|
-
"value": "16px var(--iox-space-
|
|
19577
|
+
"value": "16px var(--iox-space-inline)"
|
|
19304
19578
|
},
|
|
19305
19579
|
{
|
|
19306
19580
|
"name": "field-bg",
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
DesignChoices, DesignTokenRow, FlavorPackV2, FlavorSpecToken, flavorSourceStamp, PRE_MOTION, USER_TOKEN_SOURCE,
|
|
7
7
|
} from './design-token.model';
|
|
8
8
|
import { motionCurve, motionLanguageOf } from './motion-language';
|
|
9
|
+
import { CONTENT_WIDTH_TOKEN, contentWidthOf } from './node-classes';
|
|
9
10
|
import { stylePresetOfChoices } from './style-presets';
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -13,7 +14,8 @@ import { stylePresetOfChoices } from './style-presets';
|
|
|
13
14
|
* its token values, so switching flavor — or any choice — rewrites token rows and nothing else.
|
|
14
15
|
*
|
|
15
16
|
* Layering, each step over the last (the boards' `tokenMap`, with the product's colour math):
|
|
16
|
-
* pack tokens → chosen font pair → shape · density · motion axes → the
|
|
17
|
+
* pack tokens → chosen font pair → shape · density · motion axes → the content column (award §0c: `content-width`
|
|
18
|
+
* takes the column's literal AT this density — never a `var()`, DS1.1) → the look's motion language (AW3:
|
|
17
19
|
* ease-enter / ease-exit from Feel) → pill-button rule →
|
|
18
20
|
* the author's own font roles → every COLOUR token from the brand seed and the background tint
|
|
19
21
|
* (`flavorColours`, DS9: tinted neutrals, the accent quartet, the held contrast pairs).
|
|
@@ -92,6 +94,10 @@ export function buildFlavorTokens(pack: FlavorPackV2, choices: DesignChoices): D
|
|
|
92
94
|
...axisValues(axes.motions, choices.motion),
|
|
93
95
|
]) set(name, value);
|
|
94
96
|
|
|
97
|
+
// Award §0c: the column in force, as the literal the chosen density gives its word (wide = the whole page).
|
|
98
|
+
const content = contentWidthOf(choices.column ?? pack.defaults.column, name => byName.get(name)?.value);
|
|
99
|
+
if (content) set(CONTENT_WIDTH_TOKEN, content);
|
|
100
|
+
|
|
95
101
|
// AW3 (MB-D1, MB-D5): the look's own arrival and leave — every entrance, dialog and menu moves on them.
|
|
96
102
|
const language = motionLanguageOf(choices, stylePresetOfChoices(choices)?.id);
|
|
97
103
|
const tokenValue = (name: string) => byName.get(name)?.value;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ELEMENT_STYLE_MARKER_CLASS, elementStyleClass } from './element-styles';
|
|
2
|
-
import { SPEC_SCHEME_INK, SPEC_SCHEMES } from './flavor-spec.generated';
|
|
2
|
+
import { SPEC_AXES, SPEC_SCHEME_INK, SPEC_SCHEMES } from './flavor-spec.generated';
|
|
3
3
|
import { isListMixClass, listMixClasses } from './list-classes';
|
|
4
4
|
import { isSectionDesignClass, sectionDesignClasses } from './section-edge';
|
|
5
5
|
|
|
@@ -78,6 +78,71 @@ export function openingFollowerSelector(id: string, scope?: string): string {
|
|
|
78
78
|
return `${scope ? `${scope} ` : ''}[${OPENING_ATTRIBUTE}="${id}"] .${roleClass(OPENING_FOLLOWER_ROLE)}:not([class*="${SCHEME_PREFIX}"])`;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
/**
|
|
82
|
+
* The page's CONTENT COLUMN (award plan §0c, AW-D33…AW-D41): every section, the header and the footer inset their words
|
|
83
|
+
* by `space-inline`, which reads `content-width`. A page stores its own word (`pageSettings.column`, CW2 — absent = the
|
|
84
|
+
* site's); the renderer puts the word in force on the element around the page AND its globals (the engine's `<body>`, in
|
|
85
|
+
* the RAW SSR — T-CW5; the canvas's token scopes) as `data-iox-column`, and `compileTokenCss` re-declares `content-width`
|
|
86
|
+
* (and every token reading it) there per word. Never `pageSettings.style.maxWidth` (an author's px, not a look's word).
|
|
87
|
+
*/
|
|
88
|
+
export const COLUMN_ATTRIBUTE = 'data-iox-column';
|
|
89
|
+
/** The `pageSettings` key a page's own column word is stored under. */
|
|
90
|
+
export const COLUMN_SETTING = 'column';
|
|
91
|
+
/** The token a column word sets — the column in force, read by `space-inline`. */
|
|
92
|
+
export const CONTENT_WIDTH_TOKEN = 'content-width';
|
|
93
|
+
/** What `content-width` holds for Wide: the whole page, so the inset is the one gutter (`space-edge`). */
|
|
94
|
+
export const WIDE_CONTENT_WIDTH = '100%';
|
|
95
|
+
|
|
96
|
+
type ColumnWord = keyof typeof SPEC_AXES.columns;
|
|
97
|
+
const COLUMN_WORDS = SPEC_AXES.columns as Readonly<Record<string, { readonly column: string | null }>>;
|
|
98
|
+
|
|
99
|
+
/** A known column word, else null — an unknown value never reaches an attribute. */
|
|
100
|
+
export function columnWordOf(value: unknown): ColumnWord | null {
|
|
101
|
+
return typeof value === 'string' && Object.prototype.hasOwnProperty.call(COLUMN_WORDS, value) ? value as ColumnWord : null;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* The literal `content-width` holds for a column word, read from the rows that hold the density's columns
|
|
106
|
+
* (`column-contained` / `column-narrow`) — a literal, never a `var()` chain (DS1.1); Wide is `100%`. Null for an
|
|
107
|
+
* unknown word or a column row the set lacks. `buildFlavorTokens` and the per-word blocks of `compileTokenCss` use it.
|
|
108
|
+
*/
|
|
109
|
+
export function contentWidthOf(column: unknown, rowValue: (name: string) => string | undefined): string | null {
|
|
110
|
+
const word = columnWordOf(column);
|
|
111
|
+
if (!word) return null;
|
|
112
|
+
const row = COLUMN_WORDS[word].column;
|
|
113
|
+
return row ? rowValue(row) ?? null : WIDE_CONTENT_WIDTH;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/** The selector a column word's block is declared on, inside `scope` (the builder's token scope — the attribute sits on
|
|
117
|
+
* the scope element itself) or anywhere (the engine's `<body>`). */
|
|
118
|
+
export function columnSelector(word: string, scope?: string): string {
|
|
119
|
+
const attr = `[${COLUMN_ATTRIBUTE}="${word}"]`;
|
|
120
|
+
return scope ? `${scope}${attr}, ${scope} ${attr}` : attr;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The SITE's column word, read from the token rows the renderer already holds: the word whose literal `content-width`
|
|
125
|
+
* holds (`100%` = wide, else the `column-*` row it equals). Null when the rows hold no `content-width` (a studio not yet
|
|
126
|
+
* topped up) or a width the author typed — then no word is claimed and `content-width` stays as declared.
|
|
127
|
+
*/
|
|
128
|
+
export function siteColumnOf(tokens: ReadonlyArray<{ name?: string; value?: unknown }> | null | undefined): ColumnWord | null {
|
|
129
|
+
const value = (name: string) => {
|
|
130
|
+
const row = (tokens ?? []).find(t => t?.name === name);
|
|
131
|
+
return typeof row?.value === 'string' ? row.value.trim() : undefined;
|
|
132
|
+
};
|
|
133
|
+
const width = value(CONTENT_WIDTH_TOKEN);
|
|
134
|
+
if (!width) return null;
|
|
135
|
+
return (Object.keys(COLUMN_WORDS) as ColumnWord[]).find(word => contentWidthOf(word, value) === width) ?? null;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** The column word in force on a page: its own (`pageSettings.column`), else the site's (from its token rows), else null. */
|
|
139
|
+
export function pageColumn(
|
|
140
|
+
pageSettings: Readonly<Record<string, unknown>> | null | undefined,
|
|
141
|
+
tokens?: ReadonlyArray<{ name?: string; value?: unknown }> | null,
|
|
142
|
+
): ColumnWord | null {
|
|
143
|
+
return columnWordOf(pageSettings?.[COLUMN_SETTING]) ?? siteColumnOf(tokens);
|
|
144
|
+
}
|
|
145
|
+
|
|
81
146
|
/** `iox-role-<role>` for a well-formed composite role, else null. */
|
|
82
147
|
export function roleClass(role: unknown): string | null {
|
|
83
148
|
return typeof role === 'string' && ROLE_SHAPE.test(role) ? `${ROLE_PREFIX}${role.replace(/\./g, '-')}` : null;
|
|
@@ -145,12 +145,22 @@ export function setSectionEdge(node: WritableNode | null | undefined, edge: stri
|
|
|
145
145
|
return writeTrait(node, SECTION_EDGE_TRAIT, edge);
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
/**
|
|
149
|
-
*
|
|
148
|
+
/**
|
|
149
|
+
* The style props a card shape writes (the page's inset either side, the card's radius — token references, so a
|
|
150
|
+
* re-theme reaches it), and what Full width puts back. The inset is `space-inline` (award §0c.8, AW-D41): the card's
|
|
151
|
+
* ground IS the content column — its edges on the header's words at every width, the one gutter in Wide — and its words
|
|
152
|
+
* pad inside it by `section-pad`, whose `%` is then the card's own width. The margin's `%` resolves against the page.
|
|
153
|
+
*/
|
|
150
154
|
export const SECTION_CARD_STYLES: Readonly<Record<string, string>> = {
|
|
151
|
-
margin: '0px var(--iox-space-
|
|
155
|
+
margin: '0px var(--iox-space-inline) 0px var(--iox-space-inline)',
|
|
152
156
|
borderRadius: 'var(--iox-card-radius)',
|
|
153
157
|
};
|
|
158
|
+
/** What a card shape wrote before the content column (AW6 → CW1): a card saved then still reads as the card's own
|
|
159
|
+
* margin, so Full width takes it back like today's. */
|
|
160
|
+
export const SECTION_CARD_SUPERSEDED: Readonly<Record<string, ReadonlyArray<string>>> = {
|
|
161
|
+
margin: ['0px var(--iox-space-gutter) 0px var(--iox-space-gutter)'],
|
|
162
|
+
};
|
|
163
|
+
const isCardValue = (k: string, v: unknown) => v === SECTION_CARD_STYLES[k] || (SECTION_CARD_SUPERSEDED[k] ?? []).includes(v as string);
|
|
154
164
|
export const SECTION_FULL_STYLES: Readonly<Record<string, string>> = {
|
|
155
165
|
margin: '0px 0px 0px 0px',
|
|
156
166
|
borderRadius: '0px',
|
|
@@ -167,7 +177,7 @@ export function planSectionShape(shape: string, current: Readonly<Record<string,
|
|
|
167
177
|
if (shape === SectionShape.Card) {
|
|
168
178
|
for (const [k, v] of Object.entries(SECTION_CARD_STYLES)) if (current[k] !== v) styles[k] = v;
|
|
169
179
|
} else {
|
|
170
|
-
for (const [k, v] of Object.entries(SECTION_FULL_STYLES)) if (
|
|
180
|
+
for (const [k, v] of Object.entries(SECTION_FULL_STYLES)) if (isCardValue(k, current[k])) styles[k] = v;
|
|
171
181
|
}
|
|
172
182
|
return { shape: shape as SectionShape, styles };
|
|
173
183
|
}
|