@vectoriox/iox-ui 5.144.0 → 5.146.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 +386 -44
- 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 +9 -6
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +523 -80
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +158 -28
- 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 +33 -11
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +85 -7
- package/harness-core/index.d.ts +91 -1
- package/index.d.ts +11 -4
- package/package.json +1 -1
- package/src/assist-core/site-look.ts +2 -1
- package/src/composite-core/shop.ts +1 -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 +303 -25
- package/src/design-core/flavor-tokens.ts +7 -1
- package/src/design-core/list-classes.ts +14 -3
- package/src/design-core/locale-direction.ts +28 -0
- package/src/design-core/node-classes.ts +66 -1
- package/src/design-core/section-edge.ts +17 -19
- package/src/design-core/token-css.ts +48 -3
- package/src/generation-core/adjustments.ts +7 -3
- package/src/generation-core/compose-layout.ts +116 -3
- package/src/generation-core/compose-site.ts +50 -20
- 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
- package/styles/iox-design.css +38 -8
|
@@ -434,7 +434,7 @@ const SPEC_TIERS = {
|
|
|
434
434
|
"name": "space-gutter",
|
|
435
435
|
"type": "spacing",
|
|
436
436
|
"group": "space",
|
|
437
|
-
"desc": "
|
|
437
|
+
"desc": "The gutter floor: the least room beside the content (px, per Spacing)"
|
|
438
438
|
},
|
|
439
439
|
{
|
|
440
440
|
"name": "space-gap",
|
|
@@ -458,7 +458,37 @@ const SPEC_TIERS = {
|
|
|
458
458
|
"name": "section-pad",
|
|
459
459
|
"type": "spacing",
|
|
460
460
|
"group": "space",
|
|
461
|
-
"desc": "Composite: space-section space-
|
|
461
|
+
"desc": "Composite: space-section space-inline"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"name": "space-edge",
|
|
465
|
+
"type": "spacing",
|
|
466
|
+
"group": "space",
|
|
467
|
+
"desc": "THE one gutter: 4% of the page or the gutter floor, whichever is more"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"name": "column-contained",
|
|
471
|
+
"type": "spacing",
|
|
472
|
+
"group": "space",
|
|
473
|
+
"desc": "One centred column (per Spacing)"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"name": "column-narrow",
|
|
477
|
+
"type": "spacing",
|
|
478
|
+
"group": "space",
|
|
479
|
+
"desc": "A reading column — a story, a case study (per Spacing)"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"name": "content-width",
|
|
483
|
+
"type": "spacing",
|
|
484
|
+
"group": "space",
|
|
485
|
+
"desc": "The column in force: 100% (wide) or a column's width — the site's word; a page's word re-declares it"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"name": "space-inline",
|
|
489
|
+
"type": "spacing",
|
|
490
|
+
"group": "space",
|
|
491
|
+
"desc": "Composite: the ONE inline inset the header, the footer and every section read"
|
|
462
492
|
},
|
|
463
493
|
{
|
|
464
494
|
"name": "dur-fast",
|
|
@@ -865,7 +895,7 @@ const SPEC_TIERS = {
|
|
|
865
895
|
{
|
|
866
896
|
"name": "nav-pad",
|
|
867
897
|
"type": "spacing",
|
|
868
|
-
"default": "16px var(--iox-space-
|
|
898
|
+
"default": "16px var(--iox-space-inline)"
|
|
869
899
|
},
|
|
870
900
|
{
|
|
871
901
|
"name": "field-bg",
|
|
@@ -1723,21 +1753,27 @@ const SPEC_AXES = {
|
|
|
1723
1753
|
"space-section": "64px",
|
|
1724
1754
|
"space-gutter": "20px",
|
|
1725
1755
|
"space-gap": "16px",
|
|
1726
|
-
"space-pad": "20px"
|
|
1756
|
+
"space-pad": "20px",
|
|
1757
|
+
"column-contained": "1200px",
|
|
1758
|
+
"column-narrow": "960px"
|
|
1727
1759
|
},
|
|
1728
1760
|
"regular": {
|
|
1729
1761
|
"label": "Regular",
|
|
1730
1762
|
"space-section": "96px",
|
|
1731
1763
|
"space-gutter": "24px",
|
|
1732
1764
|
"space-gap": "24px",
|
|
1733
|
-
"space-pad": "24px"
|
|
1765
|
+
"space-pad": "24px",
|
|
1766
|
+
"column-contained": "1240px",
|
|
1767
|
+
"column-narrow": "1000px"
|
|
1734
1768
|
},
|
|
1735
1769
|
"airy": {
|
|
1736
1770
|
"label": "Airy",
|
|
1737
1771
|
"space-section": "144px",
|
|
1738
1772
|
"space-gutter": "32px",
|
|
1739
1773
|
"space-gap": "32px",
|
|
1740
|
-
"space-pad": "32px"
|
|
1774
|
+
"space-pad": "32px",
|
|
1775
|
+
"column-contained": "1280px",
|
|
1776
|
+
"column-narrow": "1040px"
|
|
1741
1777
|
}
|
|
1742
1778
|
},
|
|
1743
1779
|
"motions": {
|
|
@@ -1917,6 +1953,28 @@ const SPEC_AXES = {
|
|
|
1917
1953
|
}
|
|
1918
1954
|
}
|
|
1919
1955
|
},
|
|
1956
|
+
"columns": {
|
|
1957
|
+
"wide": {
|
|
1958
|
+
"label": "Wide",
|
|
1959
|
+
"column": null,
|
|
1960
|
+
"desc": "The window minus the gutter — as every page was before the column"
|
|
1961
|
+
},
|
|
1962
|
+
"contained": {
|
|
1963
|
+
"label": "Contained",
|
|
1964
|
+
"column": "column-contained",
|
|
1965
|
+
"desc": "One centred column"
|
|
1966
|
+
},
|
|
1967
|
+
"narrow": {
|
|
1968
|
+
"label": "Narrow",
|
|
1969
|
+
"column": "column-narrow",
|
|
1970
|
+
"desc": "A reading column — a story, a case study"
|
|
1971
|
+
}
|
|
1972
|
+
},
|
|
1973
|
+
"columnChoices": {
|
|
1974
|
+
"pre": "wide",
|
|
1975
|
+
"new": "contained"
|
|
1976
|
+
},
|
|
1977
|
+
"edgeShare": "4%",
|
|
1920
1978
|
"scrolls": {
|
|
1921
1979
|
"normal": {
|
|
1922
1980
|
"label": "Normal",
|
|
@@ -5010,7 +5068,8 @@ const SPEC_ELEMENT_STYLES = [
|
|
|
5010
5068
|
],
|
|
5011
5069
|
"base": {
|
|
5012
5070
|
"backgroundColor": "var(--iox-progress-fill)",
|
|
5013
|
-
"height": "var(--iox-progress-height)"
|
|
5071
|
+
"height": "var(--iox-progress-height)",
|
|
5072
|
+
"minHeight": "var(--iox-progress-height)"
|
|
5014
5073
|
}
|
|
5015
5074
|
},
|
|
5016
5075
|
{
|
|
@@ -5080,6 +5139,9 @@ const SPEC_ELEMENT_STYLES = [
|
|
|
5080
5139
|
"base": {
|
|
5081
5140
|
"width": "var(--iox-swatch-size)",
|
|
5082
5141
|
"height": "var(--iox-swatch-size)",
|
|
5142
|
+
"minWidth": "var(--iox-swatch-size)",
|
|
5143
|
+
"minHeight": "var(--iox-swatch-size)",
|
|
5144
|
+
"padding": "0px",
|
|
5083
5145
|
"backgroundColor": "var(--iox-swatch-fill)",
|
|
5084
5146
|
"borderStyle": "solid",
|
|
5085
5147
|
"borderWidth": "var(--iox-border-width)",
|
|
@@ -6020,7 +6082,8 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
6020
6082
|
"motion": "standard",
|
|
6021
6083
|
"pillButtons": false,
|
|
6022
6084
|
"mode": "light",
|
|
6023
|
-
"tint": "subtle"
|
|
6085
|
+
"tint": "subtle",
|
|
6086
|
+
"column": "contained"
|
|
6024
6087
|
},
|
|
6025
6088
|
"seed": "#2F5BEA",
|
|
6026
6089
|
"seeds": [
|
|
@@ -6722,7 +6785,42 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
6722
6785
|
"tier": "semantic",
|
|
6723
6786
|
"type": "spacing",
|
|
6724
6787
|
"group": "space",
|
|
6725
|
-
"value": "var(--iox-space-section) var(--iox-space-
|
|
6788
|
+
"value": "var(--iox-space-section) var(--iox-space-inline)"
|
|
6789
|
+
},
|
|
6790
|
+
{
|
|
6791
|
+
"name": "space-edge",
|
|
6792
|
+
"tier": "semantic",
|
|
6793
|
+
"type": "spacing",
|
|
6794
|
+
"group": "space",
|
|
6795
|
+
"value": "max(4%, var(--iox-space-gutter))"
|
|
6796
|
+
},
|
|
6797
|
+
{
|
|
6798
|
+
"name": "column-contained",
|
|
6799
|
+
"tier": "semantic",
|
|
6800
|
+
"type": "spacing",
|
|
6801
|
+
"group": "space",
|
|
6802
|
+
"value": "1240px"
|
|
6803
|
+
},
|
|
6804
|
+
{
|
|
6805
|
+
"name": "column-narrow",
|
|
6806
|
+
"tier": "semantic",
|
|
6807
|
+
"type": "spacing",
|
|
6808
|
+
"group": "space",
|
|
6809
|
+
"value": "1000px"
|
|
6810
|
+
},
|
|
6811
|
+
{
|
|
6812
|
+
"name": "content-width",
|
|
6813
|
+
"tier": "semantic",
|
|
6814
|
+
"type": "spacing",
|
|
6815
|
+
"group": "space",
|
|
6816
|
+
"value": "1240px"
|
|
6817
|
+
},
|
|
6818
|
+
{
|
|
6819
|
+
"name": "space-inline",
|
|
6820
|
+
"tier": "semantic",
|
|
6821
|
+
"type": "spacing",
|
|
6822
|
+
"group": "space",
|
|
6823
|
+
"value": "max(var(--iox-space-edge), calc((100% - var(--iox-content-width)) / 2))"
|
|
6726
6824
|
},
|
|
6727
6825
|
{
|
|
6728
6826
|
"name": "dur-fast",
|
|
@@ -7268,7 +7366,7 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
7268
7366
|
"tier": "component",
|
|
7269
7367
|
"type": "spacing",
|
|
7270
7368
|
"group": "components",
|
|
7271
|
-
"value": "16px var(--iox-space-
|
|
7369
|
+
"value": "16px var(--iox-space-inline)"
|
|
7272
7370
|
},
|
|
7273
7371
|
{
|
|
7274
7372
|
"name": "field-bg",
|
|
@@ -8396,7 +8494,8 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
8396
8494
|
"motion": "calm",
|
|
8397
8495
|
"pillButtons": false,
|
|
8398
8496
|
"mode": "light",
|
|
8399
|
-
"tint": "subtle"
|
|
8497
|
+
"tint": "subtle",
|
|
8498
|
+
"column": "contained"
|
|
8400
8499
|
},
|
|
8401
8500
|
"seed": "#7A5B36",
|
|
8402
8501
|
"seeds": [
|
|
@@ -9097,7 +9196,42 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
9097
9196
|
"tier": "semantic",
|
|
9098
9197
|
"type": "spacing",
|
|
9099
9198
|
"group": "space",
|
|
9100
|
-
"value": "var(--iox-space-section) var(--iox-space-
|
|
9199
|
+
"value": "var(--iox-space-section) var(--iox-space-inline)"
|
|
9200
|
+
},
|
|
9201
|
+
{
|
|
9202
|
+
"name": "space-edge",
|
|
9203
|
+
"tier": "semantic",
|
|
9204
|
+
"type": "spacing",
|
|
9205
|
+
"group": "space",
|
|
9206
|
+
"value": "max(4%, var(--iox-space-gutter))"
|
|
9207
|
+
},
|
|
9208
|
+
{
|
|
9209
|
+
"name": "column-contained",
|
|
9210
|
+
"tier": "semantic",
|
|
9211
|
+
"type": "spacing",
|
|
9212
|
+
"group": "space",
|
|
9213
|
+
"value": "1280px"
|
|
9214
|
+
},
|
|
9215
|
+
{
|
|
9216
|
+
"name": "column-narrow",
|
|
9217
|
+
"tier": "semantic",
|
|
9218
|
+
"type": "spacing",
|
|
9219
|
+
"group": "space",
|
|
9220
|
+
"value": "1040px"
|
|
9221
|
+
},
|
|
9222
|
+
{
|
|
9223
|
+
"name": "content-width",
|
|
9224
|
+
"tier": "semantic",
|
|
9225
|
+
"type": "spacing",
|
|
9226
|
+
"group": "space",
|
|
9227
|
+
"value": "1280px"
|
|
9228
|
+
},
|
|
9229
|
+
{
|
|
9230
|
+
"name": "space-inline",
|
|
9231
|
+
"tier": "semantic",
|
|
9232
|
+
"type": "spacing",
|
|
9233
|
+
"group": "space",
|
|
9234
|
+
"value": "max(var(--iox-space-edge), calc((100% - var(--iox-content-width)) / 2))"
|
|
9101
9235
|
},
|
|
9102
9236
|
{
|
|
9103
9237
|
"name": "dur-fast",
|
|
@@ -9656,7 +9790,7 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
9656
9790
|
"tier": "component",
|
|
9657
9791
|
"type": "spacing",
|
|
9658
9792
|
"group": "components",
|
|
9659
|
-
"value": "16px var(--iox-space-
|
|
9793
|
+
"value": "16px var(--iox-space-inline)"
|
|
9660
9794
|
},
|
|
9661
9795
|
{
|
|
9662
9796
|
"name": "field-bg",
|
|
@@ -10796,7 +10930,8 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
10796
10930
|
"motion": "standard",
|
|
10797
10931
|
"pillButtons": false,
|
|
10798
10932
|
"mode": "dark",
|
|
10799
|
-
"tint": "subtle"
|
|
10933
|
+
"tint": "subtle",
|
|
10934
|
+
"column": "contained"
|
|
10800
10935
|
},
|
|
10801
10936
|
"seed": "#6E5BFF",
|
|
10802
10937
|
"seeds": [
|
|
@@ -11502,7 +11637,42 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
11502
11637
|
"tier": "semantic",
|
|
11503
11638
|
"type": "spacing",
|
|
11504
11639
|
"group": "space",
|
|
11505
|
-
"value": "var(--iox-space-section) var(--iox-space-
|
|
11640
|
+
"value": "var(--iox-space-section) var(--iox-space-inline)"
|
|
11641
|
+
},
|
|
11642
|
+
{
|
|
11643
|
+
"name": "space-edge",
|
|
11644
|
+
"tier": "semantic",
|
|
11645
|
+
"type": "spacing",
|
|
11646
|
+
"group": "space",
|
|
11647
|
+
"value": "max(4%, var(--iox-space-gutter))"
|
|
11648
|
+
},
|
|
11649
|
+
{
|
|
11650
|
+
"name": "column-contained",
|
|
11651
|
+
"tier": "semantic",
|
|
11652
|
+
"type": "spacing",
|
|
11653
|
+
"group": "space",
|
|
11654
|
+
"value": "1240px"
|
|
11655
|
+
},
|
|
11656
|
+
{
|
|
11657
|
+
"name": "column-narrow",
|
|
11658
|
+
"tier": "semantic",
|
|
11659
|
+
"type": "spacing",
|
|
11660
|
+
"group": "space",
|
|
11661
|
+
"value": "1000px"
|
|
11662
|
+
},
|
|
11663
|
+
{
|
|
11664
|
+
"name": "content-width",
|
|
11665
|
+
"tier": "semantic",
|
|
11666
|
+
"type": "spacing",
|
|
11667
|
+
"group": "space",
|
|
11668
|
+
"value": "1240px"
|
|
11669
|
+
},
|
|
11670
|
+
{
|
|
11671
|
+
"name": "space-inline",
|
|
11672
|
+
"tier": "semantic",
|
|
11673
|
+
"type": "spacing",
|
|
11674
|
+
"group": "space",
|
|
11675
|
+
"value": "max(var(--iox-space-edge), calc((100% - var(--iox-content-width)) / 2))"
|
|
11506
11676
|
},
|
|
11507
11677
|
{
|
|
11508
11678
|
"name": "dur-fast",
|
|
@@ -12056,7 +12226,7 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
12056
12226
|
"tier": "component",
|
|
12057
12227
|
"type": "spacing",
|
|
12058
12228
|
"group": "components",
|
|
12059
|
-
"value": "16px var(--iox-space-
|
|
12229
|
+
"value": "16px var(--iox-space-inline)"
|
|
12060
12230
|
},
|
|
12061
12231
|
{
|
|
12062
12232
|
"name": "field-bg",
|
|
@@ -13186,7 +13356,8 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
13186
13356
|
"motion": "lively",
|
|
13187
13357
|
"pillButtons": true,
|
|
13188
13358
|
"mode": "light",
|
|
13189
|
-
"tint": "subtle"
|
|
13359
|
+
"tint": "subtle",
|
|
13360
|
+
"column": "contained"
|
|
13190
13361
|
},
|
|
13191
13362
|
"seed": "#0A66E8",
|
|
13192
13363
|
"seeds": [
|
|
@@ -13905,7 +14076,42 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
13905
14076
|
"tier": "semantic",
|
|
13906
14077
|
"type": "spacing",
|
|
13907
14078
|
"group": "space",
|
|
13908
|
-
"value": "var(--iox-space-section) var(--iox-space-
|
|
14079
|
+
"value": "var(--iox-space-section) var(--iox-space-inline)"
|
|
14080
|
+
},
|
|
14081
|
+
{
|
|
14082
|
+
"name": "space-edge",
|
|
14083
|
+
"tier": "semantic",
|
|
14084
|
+
"type": "spacing",
|
|
14085
|
+
"group": "space",
|
|
14086
|
+
"value": "max(4%, var(--iox-space-gutter))"
|
|
14087
|
+
},
|
|
14088
|
+
{
|
|
14089
|
+
"name": "column-contained",
|
|
14090
|
+
"tier": "semantic",
|
|
14091
|
+
"type": "spacing",
|
|
14092
|
+
"group": "space",
|
|
14093
|
+
"value": "1240px"
|
|
14094
|
+
},
|
|
14095
|
+
{
|
|
14096
|
+
"name": "column-narrow",
|
|
14097
|
+
"tier": "semantic",
|
|
14098
|
+
"type": "spacing",
|
|
14099
|
+
"group": "space",
|
|
14100
|
+
"value": "1000px"
|
|
14101
|
+
},
|
|
14102
|
+
{
|
|
14103
|
+
"name": "content-width",
|
|
14104
|
+
"tier": "semantic",
|
|
14105
|
+
"type": "spacing",
|
|
14106
|
+
"group": "space",
|
|
14107
|
+
"value": "1240px"
|
|
14108
|
+
},
|
|
14109
|
+
{
|
|
14110
|
+
"name": "space-inline",
|
|
14111
|
+
"tier": "semantic",
|
|
14112
|
+
"type": "spacing",
|
|
14113
|
+
"group": "space",
|
|
14114
|
+
"value": "max(var(--iox-space-edge), calc((100% - var(--iox-content-width)) / 2))"
|
|
13909
14115
|
},
|
|
13910
14116
|
{
|
|
13911
14117
|
"name": "dur-fast",
|
|
@@ -14471,7 +14677,7 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
14471
14677
|
"tier": "component",
|
|
14472
14678
|
"type": "spacing",
|
|
14473
14679
|
"group": "components",
|
|
14474
|
-
"value": "10px
|
|
14680
|
+
"value": "10px var(--iox-space-inline)",
|
|
14475
14681
|
"overridden": true
|
|
14476
14682
|
},
|
|
14477
14683
|
{
|
|
@@ -15620,7 +15826,8 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
15620
15826
|
"motion": "lively",
|
|
15621
15827
|
"pillButtons": true,
|
|
15622
15828
|
"mode": "light",
|
|
15623
|
-
"tint": "subtle"
|
|
15829
|
+
"tint": "subtle",
|
|
15830
|
+
"column": "contained"
|
|
15624
15831
|
},
|
|
15625
15832
|
"seed": "#6750A4",
|
|
15626
15833
|
"seeds": [
|
|
@@ -16321,7 +16528,42 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
16321
16528
|
"tier": "semantic",
|
|
16322
16529
|
"type": "spacing",
|
|
16323
16530
|
"group": "space",
|
|
16324
|
-
"value": "var(--iox-space-section) var(--iox-space-
|
|
16531
|
+
"value": "var(--iox-space-section) var(--iox-space-inline)"
|
|
16532
|
+
},
|
|
16533
|
+
{
|
|
16534
|
+
"name": "space-edge",
|
|
16535
|
+
"tier": "semantic",
|
|
16536
|
+
"type": "spacing",
|
|
16537
|
+
"group": "space",
|
|
16538
|
+
"value": "max(4%, var(--iox-space-gutter))"
|
|
16539
|
+
},
|
|
16540
|
+
{
|
|
16541
|
+
"name": "column-contained",
|
|
16542
|
+
"tier": "semantic",
|
|
16543
|
+
"type": "spacing",
|
|
16544
|
+
"group": "space",
|
|
16545
|
+
"value": "1240px"
|
|
16546
|
+
},
|
|
16547
|
+
{
|
|
16548
|
+
"name": "column-narrow",
|
|
16549
|
+
"tier": "semantic",
|
|
16550
|
+
"type": "spacing",
|
|
16551
|
+
"group": "space",
|
|
16552
|
+
"value": "1000px"
|
|
16553
|
+
},
|
|
16554
|
+
{
|
|
16555
|
+
"name": "content-width",
|
|
16556
|
+
"tier": "semantic",
|
|
16557
|
+
"type": "spacing",
|
|
16558
|
+
"group": "space",
|
|
16559
|
+
"value": "1240px"
|
|
16560
|
+
},
|
|
16561
|
+
{
|
|
16562
|
+
"name": "space-inline",
|
|
16563
|
+
"tier": "semantic",
|
|
16564
|
+
"type": "spacing",
|
|
16565
|
+
"group": "space",
|
|
16566
|
+
"value": "max(var(--iox-space-edge), calc((100% - var(--iox-content-width)) / 2))"
|
|
16325
16567
|
},
|
|
16326
16568
|
{
|
|
16327
16569
|
"name": "dur-fast",
|
|
@@ -16878,7 +17120,7 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
16878
17120
|
"tier": "component",
|
|
16879
17121
|
"type": "spacing",
|
|
16880
17122
|
"group": "components",
|
|
16881
|
-
"value": "16px var(--iox-space-
|
|
17123
|
+
"value": "16px var(--iox-space-inline)"
|
|
16882
17124
|
},
|
|
16883
17125
|
{
|
|
16884
17126
|
"name": "field-bg",
|
|
@@ -18016,7 +18258,8 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
18016
18258
|
"motion": "snappy",
|
|
18017
18259
|
"pillButtons": false,
|
|
18018
18260
|
"mode": "light",
|
|
18019
|
-
"tint": "subtle"
|
|
18261
|
+
"tint": "subtle",
|
|
18262
|
+
"column": "contained"
|
|
18020
18263
|
},
|
|
18021
18264
|
"seed": "#FF5C39",
|
|
18022
18265
|
"seeds": [
|
|
@@ -18706,7 +18949,42 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
18706
18949
|
"tier": "semantic",
|
|
18707
18950
|
"type": "spacing",
|
|
18708
18951
|
"group": "space",
|
|
18709
|
-
"value": "var(--iox-space-section) var(--iox-space-
|
|
18952
|
+
"value": "var(--iox-space-section) var(--iox-space-inline)"
|
|
18953
|
+
},
|
|
18954
|
+
{
|
|
18955
|
+
"name": "space-edge",
|
|
18956
|
+
"tier": "semantic",
|
|
18957
|
+
"type": "spacing",
|
|
18958
|
+
"group": "space",
|
|
18959
|
+
"value": "max(4%, var(--iox-space-gutter))"
|
|
18960
|
+
},
|
|
18961
|
+
{
|
|
18962
|
+
"name": "column-contained",
|
|
18963
|
+
"tier": "semantic",
|
|
18964
|
+
"type": "spacing",
|
|
18965
|
+
"group": "space",
|
|
18966
|
+
"value": "1200px"
|
|
18967
|
+
},
|
|
18968
|
+
{
|
|
18969
|
+
"name": "column-narrow",
|
|
18970
|
+
"tier": "semantic",
|
|
18971
|
+
"type": "spacing",
|
|
18972
|
+
"group": "space",
|
|
18973
|
+
"value": "960px"
|
|
18974
|
+
},
|
|
18975
|
+
{
|
|
18976
|
+
"name": "content-width",
|
|
18977
|
+
"tier": "semantic",
|
|
18978
|
+
"type": "spacing",
|
|
18979
|
+
"group": "space",
|
|
18980
|
+
"value": "1200px"
|
|
18981
|
+
},
|
|
18982
|
+
{
|
|
18983
|
+
"name": "space-inline",
|
|
18984
|
+
"tier": "semantic",
|
|
18985
|
+
"type": "spacing",
|
|
18986
|
+
"group": "space",
|
|
18987
|
+
"value": "max(var(--iox-space-edge), calc((100% - var(--iox-content-width)) / 2))"
|
|
18710
18988
|
},
|
|
18711
18989
|
{
|
|
18712
18990
|
"name": "dur-fast",
|
|
@@ -19272,7 +19550,7 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
19272
19550
|
"tier": "component",
|
|
19273
19551
|
"type": "spacing",
|
|
19274
19552
|
"group": "components",
|
|
19275
|
-
"value": "16px var(--iox-space-
|
|
19553
|
+
"value": "16px var(--iox-space-inline)"
|
|
19276
19554
|
},
|
|
19277
19555
|
{
|
|
19278
19556
|
"name": "field-bg",
|
|
@@ -20705,6 +20983,11 @@ const DESIGN_TOKEN_GROUPS = ['colour', 'type', 'shape', 'depth', 'space', 'motio
|
|
|
20705
20983
|
const TINT_IDS = Object.keys(SPEC_AXES.tints);
|
|
20706
20984
|
/** What a studio that stored its look BEFORE the tint existed wears: exactly the look's own palette. */
|
|
20707
20985
|
const PRE_TINT_DEFAULT = 'neutral';
|
|
20986
|
+
const COLUMN_IDS = Object.keys(SPEC_AXES.columns);
|
|
20987
|
+
/** What a studio that stored its look BEFORE the column existed wears: Wide — exactly its pages (AW-D39). */
|
|
20988
|
+
const PRE_COLUMN = SPEC_AXES.columnChoices.pre;
|
|
20989
|
+
/** What a NEW look starts on: one centred column (AW-D34; every pack's `defaults.column`). */
|
|
20990
|
+
const NEW_COLUMN = SPEC_AXES.columnChoices.new;
|
|
20708
20991
|
const SCROLL_IDS = Object.keys(SPEC_AXES.scrolls);
|
|
20709
20992
|
const ANIMATE_IDS = Object.keys(SPEC_AXES.animations);
|
|
20710
20993
|
const BETWEEN_IDS = Object.keys(SPEC_AXES.betweens);
|
|
@@ -21011,17 +21294,68 @@ function applyHeadingLevelRule(target, oldLevel, newLevel, baseline = {}) {
|
|
|
21011
21294
|
return switchElementStyle(target, from, to, baseline);
|
|
21012
21295
|
}
|
|
21013
21296
|
|
|
21297
|
+
/**
|
|
21298
|
+
* Which way a language reads — ONE answer for the live document (`<html dir>`, vectoriox/iox-client-engine#17), the
|
|
21299
|
+
* builder and the composer (generation-core `isRtlLocale`). A locale is read by its language subtag (`he-IL` → `he`),
|
|
21300
|
+
* case-insensitively; anything else reads left to right. Framework-free, pure.
|
|
21301
|
+
*/
|
|
21302
|
+
/** The direction a page's document is written in. */
|
|
21303
|
+
var LocaleDirection;
|
|
21304
|
+
(function (LocaleDirection) {
|
|
21305
|
+
LocaleDirection["Ltr"] = "ltr";
|
|
21306
|
+
LocaleDirection["Rtl"] = "rtl";
|
|
21307
|
+
})(LocaleDirection || (LocaleDirection = {}));
|
|
21308
|
+
/** The languages written right to left (their BCP 47 language subtags). */
|
|
21309
|
+
const RTL_LANGUAGES = new Set(['ar', 'ckb', 'dv', 'fa', 'he', 'iw', 'ps', 'sd', 'ug', 'ur', 'yi']);
|
|
21310
|
+
/** The language subtag of a locale (`he-IL` → `he`, `pt_BR` → `pt`), lower-cased; '' when there is none. */
|
|
21311
|
+
function languageOf(locale) {
|
|
21312
|
+
return String(locale ?? '').trim().split(/[-_]/)[0].toLowerCase();
|
|
21313
|
+
}
|
|
21314
|
+
/** The direction `locale` reads in — `rtl` for a right-to-left language, else `ltr` (an unknown or absent locale too). */
|
|
21315
|
+
function localeDirection(locale) {
|
|
21316
|
+
return RTL_LANGUAGES.has(languageOf(locale)) ? LocaleDirection.Rtl : LocaleDirection.Ltr;
|
|
21317
|
+
}
|
|
21318
|
+
/** The Text Direction trait and where it used to live (style-compiler `TEXT_DIRECTION_KEY` / `LEGACY_DIRECTION_KEY`). */
|
|
21319
|
+
const DIRECTION_KEYS = ['textDirection', 'direction'];
|
|
21320
|
+
/**
|
|
21321
|
+
* True when the node's OWN Text Direction is right-to-left (a saved node's styleProps, a builder node's style traits);
|
|
21322
|
+
* a node with no direction of its own reads left-to-right. THE answer for anything the shared CSS mirrors (AW6's seams,
|
|
21323
|
+
* AW11's leaning lists): a composed Hebrew page carries its direction as each node's CSS `direction`, which `:dir(rtl)`
|
|
21324
|
+
* cannot see, and the builder canvas sits inside the ADMIN's `<html dir>`. So design-core writes a class from the
|
|
21325
|
+
* node's own direction instead.
|
|
21326
|
+
*/
|
|
21327
|
+
function nodeIsRtl(node) {
|
|
21328
|
+
if (!node)
|
|
21329
|
+
return false;
|
|
21330
|
+
for (const key of DIRECTION_KEYS) {
|
|
21331
|
+
if (node.styleProps && key in node.styleProps)
|
|
21332
|
+
return node.styleProps[key] === LocaleDirection.Rtl;
|
|
21333
|
+
}
|
|
21334
|
+
for (const group of node.styleTraits ?? []) {
|
|
21335
|
+
const t = group?.traits?.find(x => x?.name === DIRECTION_KEYS[0]);
|
|
21336
|
+
if (t)
|
|
21337
|
+
return t.default === LocaleDirection.Rtl;
|
|
21338
|
+
}
|
|
21339
|
+
return false;
|
|
21340
|
+
}
|
|
21341
|
+
|
|
21014
21342
|
/**
|
|
21015
21343
|
* A COMPOSED LIST'S MIX ON ITS FRAME (award-ingredients-plan §7.1f AW11, board award-lists): the words a list section was
|
|
21016
21344
|
* composed as ride on its frame as ONE prop, `listMix` (`item:packshot arrange:grid hover:swap …`, the wire's words), and
|
|
21017
21345
|
* become marker classes — `iox-list-item-packshot`, `iox-list-hover-swap` — that the shared iox-design.css draws. The
|
|
21018
21346
|
* same decision in all three render paths (`nodeDesignClasses`), so a word is drawn by CSS alone and the canvas, both
|
|
21019
21347
|
* engine paths and the raw SSR agree. Bindings ▸ List reads and writes the same prop. Pure.
|
|
21348
|
+
*
|
|
21349
|
+
* A frame whose OWN Text Direction is right-to-left also renders `iox-list-mirrored`, and the shared CSS turns what leans
|
|
21350
|
+
* and fans the other way (R-H-AW11-8) — decided here as AW6's seams are (`nodeIsRtl`), never by `:dir(rtl)`, which a
|
|
21351
|
+
* composed Hebrew page (a CSS `direction` per node) never matches (#116).
|
|
21020
21352
|
*/
|
|
21021
21353
|
/** The prop (a Container's trait) the mix is stored under. */
|
|
21022
21354
|
const LIST_MIX_PROP = 'listMix';
|
|
21023
21355
|
/** Every class a mix writes starts with this — what a live re-sync removes. */
|
|
21024
21356
|
const LIST_CLASS_PREFIX = 'iox-list-';
|
|
21357
|
+
/** Beside a mix's classes on a right-to-left frame: the leaning and fanning turn the other way. */
|
|
21358
|
+
const LIST_MIRRORED_CLASS = 'iox-list-mirrored';
|
|
21025
21359
|
const WORD = /^[a-z]+:[a-z0-9-]+$/;
|
|
21026
21360
|
/** The stored mix's words (`item:packshot`), from `props` (saved) or the trait (builder); [] for none. */
|
|
21027
21361
|
function listMixWordsOf(node) {
|
|
@@ -21031,9 +21365,13 @@ function listMixWordsOf(node) {
|
|
|
21031
21365
|
const words = Array.isArray(raw) ? raw : typeof raw === 'string' ? raw.split(/\s+/) : [];
|
|
21032
21366
|
return words.filter((w) => typeof w === 'string' && WORD.test(w));
|
|
21033
21367
|
}
|
|
21034
|
-
/** The marker classes a list frame renders (`iox-list-arrange-hang iox-list-hover-swap
|
|
21368
|
+
/** The marker classes a list frame renders (`iox-list-arrange-hang iox-list-hover-swap`, + `iox-list-mirrored` on a
|
|
21369
|
+
* right-to-left frame), or '' for a frame with no mix. */
|
|
21035
21370
|
function listMixClasses(node) {
|
|
21036
|
-
|
|
21371
|
+
const words = [...new Set(listMixWordsOf(node))];
|
|
21372
|
+
if (!words.length)
|
|
21373
|
+
return '';
|
|
21374
|
+
return [...words.map(w => `${LIST_CLASS_PREFIX}${w.replace(':', '-')}`), ...(nodeIsRtl(node) ? [LIST_MIRRORED_CLASS] : [])].join(' ');
|
|
21037
21375
|
}
|
|
21038
21376
|
/** True for a class this module writes. */
|
|
21039
21377
|
function isListMixClass(c) {
|
|
@@ -21117,24 +21455,9 @@ function edgeFitsShape(edge, shape) {
|
|
|
21117
21455
|
function sectionEdgeClass(edge) {
|
|
21118
21456
|
return typeof edge === 'string' && edge !== SectionEdge.Straight && EDGE_IDS.has(edge) ? `${SEAM_CLASS_PREFIX}${edge}` : null;
|
|
21119
21457
|
}
|
|
21120
|
-
|
|
21121
|
-
/** The Text Direction trait and where it used to live (style-compiler `TEXT_DIRECTION_KEY` / `LEGACY_DIRECTION_KEY`). */
|
|
21122
|
-
const DIRECTION_KEYS = ['textDirection', 'direction'];
|
|
21123
|
-
/** True when the section's OWN Text Direction is right-to-left (a saved node's styleProps, a builder node's style
|
|
21124
|
-
* traits). A section with no direction of its own reads left-to-right. */
|
|
21458
|
+
/** True when the section's OWN Text Direction is right-to-left — `nodeIsRtl`, the one answer (locale-direction). */
|
|
21125
21459
|
function sectionIsRtl(node) {
|
|
21126
|
-
|
|
21127
|
-
return false;
|
|
21128
|
-
for (const key of DIRECTION_KEYS) {
|
|
21129
|
-
if (node.styleProps && key in node.styleProps)
|
|
21130
|
-
return node.styleProps[key] === RTL;
|
|
21131
|
-
}
|
|
21132
|
-
for (const group of node.styleTraits ?? []) {
|
|
21133
|
-
const t = group?.traits?.find(x => x?.name === DIRECTION_KEYS[0]);
|
|
21134
|
-
if (t)
|
|
21135
|
-
return t.default === RTL;
|
|
21136
|
-
}
|
|
21137
|
-
return false;
|
|
21460
|
+
return nodeIsRtl(node);
|
|
21138
21461
|
}
|
|
21139
21462
|
/**
|
|
21140
21463
|
* The classes a section renders for its edge and shape: `iox-seam-wave`, `iox-seam-drip iox-seam-mirrored` (a
|
|
@@ -21178,12 +21501,22 @@ function setSectionEdge(node, edge) {
|
|
|
21178
21501
|
return false;
|
|
21179
21502
|
return writeTrait(node, SECTION_EDGE_TRAIT, edge);
|
|
21180
21503
|
}
|
|
21181
|
-
/**
|
|
21182
|
-
*
|
|
21504
|
+
/**
|
|
21505
|
+
* The style props a card shape writes (the page's inset either side, the card's radius — token references, so a
|
|
21506
|
+
* re-theme reaches it), and what Full width puts back. The inset is `space-inline` (award §0c.8, AW-D41): the card's
|
|
21507
|
+
* ground IS the content column — its edges on the header's words at every width, the one gutter in Wide — and its words
|
|
21508
|
+
* pad inside it by `section-pad`, whose `%` is then the card's own width. The margin's `%` resolves against the page.
|
|
21509
|
+
*/
|
|
21183
21510
|
const SECTION_CARD_STYLES = {
|
|
21184
|
-
margin: '0px var(--iox-space-
|
|
21511
|
+
margin: '0px var(--iox-space-inline) 0px var(--iox-space-inline)',
|
|
21185
21512
|
borderRadius: 'var(--iox-card-radius)',
|
|
21186
21513
|
};
|
|
21514
|
+
/** What a card shape wrote before the content column (AW6 → CW1): a card saved then still reads as the card's own
|
|
21515
|
+
* margin, so Full width takes it back like today's. */
|
|
21516
|
+
const SECTION_CARD_SUPERSEDED = {
|
|
21517
|
+
margin: ['0px var(--iox-space-gutter) 0px var(--iox-space-gutter)'],
|
|
21518
|
+
};
|
|
21519
|
+
const isCardValue = (k, v) => v === SECTION_CARD_STYLES[k] || (SECTION_CARD_SUPERSEDED[k] ?? []).includes(v);
|
|
21187
21520
|
const SECTION_FULL_STYLES = {
|
|
21188
21521
|
margin: '0px 0px 0px 0px',
|
|
21189
21522
|
borderRadius: '0px',
|
|
@@ -21204,7 +21537,7 @@ function planSectionShape(shape, current = {}) {
|
|
|
21204
21537
|
}
|
|
21205
21538
|
else {
|
|
21206
21539
|
for (const [k, v] of Object.entries(SECTION_FULL_STYLES))
|
|
21207
|
-
if (
|
|
21540
|
+
if (isCardValue(k, current[k]))
|
|
21208
21541
|
styles[k] = v;
|
|
21209
21542
|
}
|
|
21210
21543
|
return { shape: shape, styles };
|
|
@@ -21303,6 +21636,62 @@ function pageOpeningScheme(pageSettings) {
|
|
|
21303
21636
|
function openingFollowerSelector(id, scope) {
|
|
21304
21637
|
return `${scope ? `${scope} ` : ''}[${OPENING_ATTRIBUTE}="${id}"] .${roleClass(OPENING_FOLLOWER_ROLE)}:not([class*="${SCHEME_PREFIX}"])`;
|
|
21305
21638
|
}
|
|
21639
|
+
/**
|
|
21640
|
+
* The page's CONTENT COLUMN (award plan §0c, AW-D33…AW-D41): every section, the header and the footer inset their words
|
|
21641
|
+
* by `space-inline`, which reads `content-width`. A page stores its own word (`pageSettings.column`, CW2 — absent = the
|
|
21642
|
+
* site's); the renderer puts the word in force on the element around the page AND its globals (the engine's `<body>`, in
|
|
21643
|
+
* the RAW SSR — T-CW5; the canvas's token scopes) as `data-iox-column`, and `compileTokenCss` re-declares `content-width`
|
|
21644
|
+
* (and every token reading it) there per word. Never `pageSettings.style.maxWidth` (an author's px, not a look's word).
|
|
21645
|
+
*/
|
|
21646
|
+
const COLUMN_ATTRIBUTE = 'data-iox-column';
|
|
21647
|
+
/** The `pageSettings` key a page's own column word is stored under. */
|
|
21648
|
+
const COLUMN_SETTING = 'column';
|
|
21649
|
+
/** The token a column word sets — the column in force, read by `space-inline`. */
|
|
21650
|
+
const CONTENT_WIDTH_TOKEN = 'content-width';
|
|
21651
|
+
/** What `content-width` holds for Wide: the whole page, so the inset is the one gutter (`space-edge`). */
|
|
21652
|
+
const WIDE_CONTENT_WIDTH = '100%';
|
|
21653
|
+
const COLUMN_WORDS = SPEC_AXES.columns;
|
|
21654
|
+
/** A known column word, else null — an unknown value never reaches an attribute. */
|
|
21655
|
+
function columnWordOf(value) {
|
|
21656
|
+
return typeof value === 'string' && Object.prototype.hasOwnProperty.call(COLUMN_WORDS, value) ? value : null;
|
|
21657
|
+
}
|
|
21658
|
+
/**
|
|
21659
|
+
* The literal `content-width` holds for a column word, read from the rows that hold the density's columns
|
|
21660
|
+
* (`column-contained` / `column-narrow`) — a literal, never a `var()` chain (DS1.1); Wide is `100%`. Null for an
|
|
21661
|
+
* unknown word or a column row the set lacks. `buildFlavorTokens` and the per-word blocks of `compileTokenCss` use it.
|
|
21662
|
+
*/
|
|
21663
|
+
function contentWidthOf(column, rowValue) {
|
|
21664
|
+
const word = columnWordOf(column);
|
|
21665
|
+
if (!word)
|
|
21666
|
+
return null;
|
|
21667
|
+
const row = COLUMN_WORDS[word].column;
|
|
21668
|
+
return row ? rowValue(row) ?? null : WIDE_CONTENT_WIDTH;
|
|
21669
|
+
}
|
|
21670
|
+
/** The selector a column word's block is declared on, inside `scope` (the builder's token scope — the attribute sits on
|
|
21671
|
+
* the scope element itself) or anywhere (the engine's `<body>`). */
|
|
21672
|
+
function columnSelector(word, scope) {
|
|
21673
|
+
const attr = `[${COLUMN_ATTRIBUTE}="${word}"]`;
|
|
21674
|
+
return scope ? `${scope}${attr}, ${scope} ${attr}` : attr;
|
|
21675
|
+
}
|
|
21676
|
+
/**
|
|
21677
|
+
* The SITE's column word, read from the token rows the renderer already holds: the word whose literal `content-width`
|
|
21678
|
+
* holds (`100%` = wide, else the `column-*` row it equals). Null when the rows hold no `content-width` (a studio not yet
|
|
21679
|
+
* topped up) or a width the author typed — then no word is claimed and `content-width` stays as declared.
|
|
21680
|
+
*/
|
|
21681
|
+
function siteColumnOf(tokens) {
|
|
21682
|
+
const value = (name) => {
|
|
21683
|
+
const row = (tokens ?? []).find(t => t?.name === name);
|
|
21684
|
+
return typeof row?.value === 'string' ? row.value.trim() : undefined;
|
|
21685
|
+
};
|
|
21686
|
+
const width = value(CONTENT_WIDTH_TOKEN);
|
|
21687
|
+
if (!width)
|
|
21688
|
+
return null;
|
|
21689
|
+
return Object.keys(COLUMN_WORDS).find(word => contentWidthOf(word, value) === width) ?? null;
|
|
21690
|
+
}
|
|
21691
|
+
/** The column word in force on a page: its own (`pageSettings.column`), else the site's (from its token rows), else null. */
|
|
21692
|
+
function pageColumn(pageSettings, tokens) {
|
|
21693
|
+
return columnWordOf(pageSettings?.[COLUMN_SETTING]) ?? siteColumnOf(tokens);
|
|
21694
|
+
}
|
|
21306
21695
|
/** `iox-role-<role>` for a well-formed composite role, else null. */
|
|
21307
21696
|
function roleClass(role) {
|
|
21308
21697
|
return typeof role === 'string' && ROLE_SHAPE.test(role) ? `${ROLE_PREFIX}${role.replace(/\./g, '-')}` : null;
|
|
@@ -21728,6 +22117,49 @@ function darkSchemeRules(rows, scope) {
|
|
|
21728
22117
|
function presentOverrides(rows, overrides, onlyWithDark) {
|
|
21729
22118
|
return Object.entries(overrides).filter(([name]) => rows.some(t => t.name === name && (!onlyWithDark || darkOf(t) !== null)));
|
|
21730
22119
|
}
|
|
22120
|
+
/** The names a value reads through `var(--iox-…)`. */
|
|
22121
|
+
const referencedNames = (value) => [...(value ?? '').matchAll(TOKEN_REF$1)].map(m => m[1]);
|
|
22122
|
+
/** The rows whose value (light or dark) reads `content-width`, directly or through another token — `space-inline`,
|
|
22123
|
+
* `section-pad`, `nav-pad`… — in row order. */
|
|
22124
|
+
function columnDependents(rows) {
|
|
22125
|
+
const reads = new Map(rows.map(t => [t.name, [...referencedNames(t.value), ...referencedNames(darkOf(t))]]));
|
|
22126
|
+
const dependent = new Set([CONTENT_WIDTH_TOKEN]);
|
|
22127
|
+
for (let grew = true; grew;) {
|
|
22128
|
+
grew = false;
|
|
22129
|
+
for (const [name, names] of reads) {
|
|
22130
|
+
if (!dependent.has(name) && names.some(n => dependent.has(n))) {
|
|
22131
|
+
dependent.add(name);
|
|
22132
|
+
grew = true;
|
|
22133
|
+
}
|
|
22134
|
+
}
|
|
22135
|
+
}
|
|
22136
|
+
return rows.filter(t => t.name !== CONTENT_WIDTH_TOKEN && dependent.has(t.name));
|
|
22137
|
+
}
|
|
22138
|
+
/**
|
|
22139
|
+
* The content column's words (award plan §0c, AW-D33/AW-D36): one block per word on the element carrying
|
|
22140
|
+
* `data-iox-column` — the engine's `<body>`, the canvas's token scopes — that re-declares `content-width` as the word's
|
|
22141
|
+
* literal at the studio's density (read from its own `column-*` rows) and every token that reads it, re-declared
|
|
22142
|
+
* verbatim. ⚠️ A custom property resolves where it is DECLARED (the §3c rule schemes follow): `space-inline` declared
|
|
22143
|
+
* on the root keeps the root's `content-width`, so a page's word would change nothing without the re-declaration. Rows
|
|
22144
|
+
* with no `content-width` (a studio not yet topped up) emit nothing — their CSS is exactly as before.
|
|
22145
|
+
*/
|
|
22146
|
+
function columnCss(rows, scope) {
|
|
22147
|
+
if (!rows.some(t => t.name === CONTENT_WIDTH_TOKEN))
|
|
22148
|
+
return { base: '', dark: '' };
|
|
22149
|
+
const value = (name) => rows.find(t => t.name === name)?.value;
|
|
22150
|
+
const dependents = columnDependents(rows);
|
|
22151
|
+
const words = Object.keys(SPEC_AXES.columns)
|
|
22152
|
+
.map(word => [word, contentWidthOf(word, value)])
|
|
22153
|
+
.filter((w) => w[1] !== null);
|
|
22154
|
+
const darkDependents = dependents.map((t) => [t.name, darkOf(t)]).filter((e) => e[1] !== null);
|
|
22155
|
+
return {
|
|
22156
|
+
base: words.map(([word, width]) => rule(columnSelector(word, scope), [
|
|
22157
|
+
[CONTENT_WIDTH_TOKEN, width], ...dependents.map((t) => [t.name, t.value]),
|
|
22158
|
+
])).filter(Boolean).join('\n'),
|
|
22159
|
+
// A dependent with a dark value would keep its LIGHT value under the word's block in a dark visit.
|
|
22160
|
+
dark: darkDependents.length ? words.map(([word]) => rule(columnSelector(word, scope), darkDependents, ' ')).join('\n') : '',
|
|
22161
|
+
};
|
|
22162
|
+
}
|
|
21731
22163
|
/** The token CSS as the two halves a renderer places around its node rules. */
|
|
21732
22164
|
function compileTokenCssBlocks(tokens, opts = {}) {
|
|
21733
22165
|
const all = usableTokens(tokens);
|
|
@@ -21739,15 +22171,17 @@ function compileTokenCssBlocks(tokens, opts = {}) {
|
|
|
21739
22171
|
const unset = opts.isolate
|
|
21740
22172
|
? [...specTokenNames()].filter(name => !present.has(name)).map((name) => [name, 'initial'])
|
|
21741
22173
|
: [];
|
|
22174
|
+
const columns = columnCss(rows, opts.scope);
|
|
21742
22175
|
const base = [
|
|
21743
22176
|
rule(root, [...unset, ...rows.map((t) => [t.name, t.value])]),
|
|
21744
22177
|
compileSchemeCss(rows, opts.scope, opposite),
|
|
22178
|
+
columns.base,
|
|
21745
22179
|
...ACCESSIBILITY_MEDIA.map(({ query, overrides }) => media(query, [rule(root, presentOverrides(rows, overrides, false), ' ')])),
|
|
21746
22180
|
].filter(Boolean).join('\n');
|
|
21747
22181
|
const darkRows = rows.map((t) => [t.name, darkOf(t)])
|
|
21748
22182
|
.filter((e) => e[1] !== null);
|
|
21749
22183
|
const dark = darkRows.length ? [
|
|
21750
|
-
media(MEDIA_DARK, [rule(root, darkRows, ' '), ...darkSchemeRules(rows, opts.scope)]),
|
|
22184
|
+
media(MEDIA_DARK, [rule(root, darkRows, ' '), ...darkSchemeRules(rows, opts.scope), columns.dark]),
|
|
21751
22185
|
// Glass carries dark glass values; without this the dark block (LAST) would out-rank the
|
|
21752
22186
|
// reduced-transparency swap and keep dark surfaces translucent.
|
|
21753
22187
|
...ACCESSIBILITY_MEDIA.map(({ query, overrides }) => media(`${MEDIA_DARK} and ${query}`, [rule(root, presentOverrides(rows, overrides, true), ' ')])),
|
|
@@ -24240,6 +24674,8 @@ var DesignConfigKey;
|
|
|
24240
24674
|
DesignConfigKey["PillButtons"] = "pillButtons";
|
|
24241
24675
|
DesignConfigKey["Mode"] = "mode";
|
|
24242
24676
|
DesignConfigKey["Tint"] = "tint";
|
|
24677
|
+
/** Award §0c: the site's content column (a `ColumnId`); absent on a row stored before it = wide (AW-D39). */
|
|
24678
|
+
DesignConfigKey["Column"] = "column";
|
|
24243
24679
|
DesignConfigKey["Fonts"] = "fonts";
|
|
24244
24680
|
DesignConfigKey["Scroll"] = "scroll";
|
|
24245
24681
|
DesignConfigKey["Animate"] = "animate";
|
|
@@ -24326,6 +24762,7 @@ function resolveDesignChoices(partial) {
|
|
|
24326
24762
|
pillButtons: asBoolean(partial?.pillButtons) ?? pack.defaults.pillButtons,
|
|
24327
24763
|
mode: (MODES.includes(asString(partial?.mode) ?? '') ? asString(partial?.mode) : pack.defaults.mode),
|
|
24328
24764
|
tint: keyOf(SPEC_AXES.tints, asString(partial?.tint)) ?? pack.defaults.tint,
|
|
24765
|
+
column: keyOf(SPEC_AXES.columns, asString(partial?.column)) ?? pack.defaults.column,
|
|
24329
24766
|
...(fonts ? { fonts } : {}),
|
|
24330
24767
|
...resolveDesignMotion(partial),
|
|
24331
24768
|
...resolveMotionLanguageChoices(partial),
|
|
@@ -24362,23 +24799,29 @@ function packDesignChoices(flavorId) {
|
|
|
24362
24799
|
/**
|
|
24363
24800
|
* What picking a pack card means, given the design the studio wears: the applied pack → the applied
|
|
24364
24801
|
* choices; another pack → that pack's defaults, CARRYING the author's chosen fonts (§5b — a font the
|
|
24365
|
-
* author chose survives a pack switch unless the author changes it)
|
|
24366
|
-
* how it scrolls and changes page is not a pack's, so a Look pick never resets it)
|
|
24802
|
+
* author chose survives a pack switch unless the author changes it), the site's motion (rev 3.1 MO-D3 —
|
|
24803
|
+
* how it scrolls and changes page is not a pack's, so a Look pick never resets it) and the site's content column
|
|
24804
|
+
* (award §0c, AW-D39 — a width is the site's, not a style's). Both picker homes call this.
|
|
24367
24805
|
*/
|
|
24368
24806
|
function choicesForPack(flavorId, applied) {
|
|
24369
24807
|
const pack = flavorPackById(flavorId) ?? defaultPack();
|
|
24370
24808
|
if (applied && resolveDesignChoices(applied).flavorId === pack.id)
|
|
24371
24809
|
return resolveDesignChoices(applied);
|
|
24372
|
-
return resolveDesignChoices({
|
|
24810
|
+
return resolveDesignChoices({
|
|
24811
|
+
flavorId: pack.id, fonts: applied?.fonts, ...resolveDesignMotion(applied), ...(applied?.column ? { column: applied.column } : {}),
|
|
24812
|
+
});
|
|
24373
24813
|
}
|
|
24374
24814
|
/**
|
|
24375
24815
|
* A stored `settings.design` config → the resolved design. No row (or no config) → Crisp's defaults. A
|
|
24376
24816
|
* row stored before DS9 has no `tint`: it was applied with the look's own palette, so it reads `neutral`
|
|
24377
|
-
* (never the pack's new default — the studio's rows hold the palette, and nothing may repaint them unasked).
|
|
24817
|
+
* (never the pack's new default — the studio's rows hold the palette, and nothing may repaint them unasked). Likewise a
|
|
24818
|
+
* row stored before the content column has no `column`: its pages were built wide, so it reads `wide` (AW-D39, T-CW1 —
|
|
24819
|
+
* the pack's `contained` would narrow every built studio on release).
|
|
24378
24820
|
*/
|
|
24379
24821
|
function readDesignConfig(config, hasRow = !!config) {
|
|
24380
24822
|
const map = configMap(config);
|
|
24381
24823
|
const storedTint = asString(map.get(DesignConfigKey.Tint)) ?? (hasRow ? PRE_TINT_DEFAULT : null);
|
|
24824
|
+
const storedColumn = asString(map.get(DesignConfigKey.Column)) ?? (hasRow ? PRE_COLUMN : null);
|
|
24382
24825
|
const storedFlavorId = asString(map.get(DesignConfigKey.FlavorId));
|
|
24383
24826
|
const storedSeed = asString(map.get(DesignConfigKey.BrandSeed));
|
|
24384
24827
|
const choices = resolveDesignChoices({
|
|
@@ -24391,6 +24834,7 @@ function readDesignConfig(config, hasRow = !!config) {
|
|
|
24391
24834
|
pillButtons: asBoolean(map.get(DesignConfigKey.PillButtons)) ?? undefined,
|
|
24392
24835
|
mode: map.get(DesignConfigKey.Mode),
|
|
24393
24836
|
tint: (storedTint ?? undefined),
|
|
24837
|
+
column: (storedColumn ?? undefined),
|
|
24394
24838
|
fonts: map.get(DesignConfigKey.Fonts),
|
|
24395
24839
|
scroll: map.get(DesignConfigKey.Scroll),
|
|
24396
24840
|
animate: map.get(DesignConfigKey.Animate),
|
|
@@ -24431,6 +24875,7 @@ function designConfigEntries(choices, flavorVersion, revert) {
|
|
|
24431
24875
|
{ key: DesignConfigKey.PillButtons, value: String(c.pillButtons) },
|
|
24432
24876
|
{ key: DesignConfigKey.Mode, value: c.mode },
|
|
24433
24877
|
{ key: DesignConfigKey.Tint, value: c.tint },
|
|
24878
|
+
{ key: DesignConfigKey.Column, value: c.column },
|
|
24434
24879
|
{ key: DesignConfigKey.Scroll, value: c.scroll },
|
|
24435
24880
|
{ key: DesignConfigKey.Animate, value: c.animate },
|
|
24436
24881
|
{ key: DesignConfigKey.Between, value: c.between },
|
|
@@ -24448,7 +24893,7 @@ function sameDesignChoices(a, b) {
|
|
|
24448
24893
|
const y = resolveDesignChoices(b);
|
|
24449
24894
|
return x.flavorId === y.flavorId && x.seed.toLowerCase() === y.seed.toLowerCase() && x.pairId === y.pairId
|
|
24450
24895
|
&& x.shape === y.shape && x.density === y.density && x.motion === y.motion
|
|
24451
|
-
&& x.pillButtons === y.pillButtons && x.mode === y.mode && x.tint === y.tint
|
|
24896
|
+
&& x.pillButtons === y.pillButtons && x.mode === y.mode && x.tint === y.tint && x.column === y.column
|
|
24452
24897
|
&& x.scroll === y.scroll && x.animate === y.animate && x.between === y.between
|
|
24453
24898
|
&& (x.feel ?? '') === (y.feel ?? '') && (x.headings ?? '') === (y.headings ?? '')
|
|
24454
24899
|
&& (x.preloader ?? '') === (y.preloader ?? '')
|
|
@@ -24509,7 +24954,8 @@ function stylePresetOfChoices(choices) {
|
|
|
24509
24954
|
* its token values, so switching flavor — or any choice — rewrites token rows and nothing else.
|
|
24510
24955
|
*
|
|
24511
24956
|
* Layering, each step over the last (the boards' `tokenMap`, with the product's colour math):
|
|
24512
|
-
* pack tokens → chosen font pair → shape · density · motion axes → the
|
|
24957
|
+
* pack tokens → chosen font pair → shape · density · motion axes → the content column (award §0c: `content-width`
|
|
24958
|
+
* takes the column's literal AT this density — never a `var()`, DS1.1) → the look's motion language (AW3:
|
|
24513
24959
|
* ease-enter / ease-exit from Feel) → pill-button rule →
|
|
24514
24960
|
* the author's own font roles → every COLOUR token from the brand seed and the background tint
|
|
24515
24961
|
* (`flavorColours`, DS9: tinted neutrals, the accent quartet, the held contrast pairs).
|
|
@@ -24578,6 +25024,10 @@ function buildFlavorTokens(pack, choices) {
|
|
|
24578
25024
|
...axisValues(axes.motions, choices.motion),
|
|
24579
25025
|
])
|
|
24580
25026
|
set(name, value);
|
|
25027
|
+
// Award §0c: the column in force, as the literal the chosen density gives its word (wide = the whole page).
|
|
25028
|
+
const content = contentWidthOf(choices.column ?? pack.defaults.column, name => byName.get(name)?.value);
|
|
25029
|
+
if (content)
|
|
25030
|
+
set(CONTENT_WIDTH_TOKEN, content);
|
|
24581
25031
|
// AW3 (MB-D1, MB-D5): the look's own arrival and leave — every entrance, dialog and menu moves on them.
|
|
24582
25032
|
const language = motionLanguageOf(choices, stylePresetOfChoices(choices)?.id);
|
|
24583
25033
|
const tokenValue = (name) => byName.get(name)?.value;
|
|
@@ -24942,6 +25392,18 @@ function packDefaultsLookup() {
|
|
|
24942
25392
|
return cache.get(packId);
|
|
24943
25393
|
};
|
|
24944
25394
|
}
|
|
25395
|
+
/**
|
|
25396
|
+
* Token values the contract SUPERSEDED for rows a v2 pack seeds — a machine row still holding one is untouched, so an
|
|
25397
|
+
* Apply rewrites it and the builder load heals it (`designTokenRepairs`), the way DS9's contrast fixes reached studios:
|
|
25398
|
+
* - guidance `56d6264` (award §0c CW0, AW-D41): `section-pad` and `nav-pad` read `space-inline` — before, every pattern
|
|
25399
|
+
* section and the header padded by the bare `space-gutter`, and Glass's pill computed its own `10px 10px 10px 22px`.
|
|
25400
|
+
* A spec pins every entry as no flavor's current value. Add one with every contract change of a seeded token's value.
|
|
25401
|
+
*/
|
|
25402
|
+
const SUPERSEDED_TOKEN_VALUES = {
|
|
25403
|
+
'section-pad': ['var(--iox-space-section) var(--iox-space-gutter)'],
|
|
25404
|
+
'nav-pad': ['16px var(--iox-space-gutter)', '10px 10px 10px 22px'],
|
|
25405
|
+
};
|
|
25406
|
+
const supersededOf = (name) => (SUPERSEDED_TOKEN_VALUES[name] ?? []).map(value => ({ value }));
|
|
24945
25407
|
const present = (list) => list.filter((e) => !!e);
|
|
24946
25408
|
const FONT_ROLES = new Set(FONT_FAMILY_TOKENS);
|
|
24947
25409
|
/** What a font role held before H1-2 put the Hebrew partner second in every pairing's stacks. */
|
|
@@ -24977,7 +25439,7 @@ function designBaseline(previous) {
|
|
|
24977
25439
|
return swiss.get(row.name);
|
|
24978
25440
|
const ownDefaults = stampedBy ? packDefaults(stampedBy).map(m => m.get(row.name)) : [];
|
|
24979
25441
|
const expected = [current.get(row.name), beforeTint.get(row.name), ...ownDefaults];
|
|
24980
|
-
return present([...expected, ...expected.map(e => beforeScriptPartners(row.name, e))]);
|
|
25442
|
+
return present([...expected, ...expected.map(e => beforeScriptPartners(row.name, e)), ...(stampedBy ? supersededOf(row.name) : [])]);
|
|
24981
25443
|
};
|
|
24982
25444
|
}
|
|
24983
25445
|
/**
|
|
@@ -25067,7 +25529,9 @@ function missingDesignRows(existing, choices) {
|
|
|
25067
25529
|
* `accent-text` that reads on every ground — reach a studio that applied its look before them;
|
|
25068
25530
|
* - stamped by the current pack and still holding a font stack WITHOUT the Hebrew partner the pairing now
|
|
25069
25531
|
* names second (H1-2): a Hebrew page of a studio seeded before it would draw its headings in the browser's
|
|
25070
|
-
* default face for good
|
|
25532
|
+
* default face for good;
|
|
25533
|
+
* - stamped by a v2 pack and still holding a value the contract superseded (`SUPERSEDED_TOKEN_VALUES`): the content
|
|
25534
|
+
* column's one edge (award §0c, AW-D41) reaches a studio seeded before it.
|
|
25071
25535
|
* No author edit produces any of these shapes — the Tokens panel edited the light value only, and since DS8 an
|
|
25072
25536
|
* edit makes the row `source: user`, which this never touches.
|
|
25073
25537
|
*/
|
|
@@ -25091,6 +25555,7 @@ function designTokenRepairs(existing, choices) {
|
|
|
25091
25555
|
const machineWrote = present([
|
|
25092
25556
|
...(stampedBy ? packDefaults(stampedBy).map(m => m.get(row.name)) : []),
|
|
25093
25557
|
...(stampedBy === pack.id ? [beforeTint.get(row.name), beforeScriptPartners(row.name, want), beforeScriptPartners(row.name, beforeTint.get(row.name))] : []),
|
|
25558
|
+
...(stampedBy ? supersededOf(row.name) : []),
|
|
25094
25559
|
]);
|
|
25095
25560
|
if (!darkOnly && !untouchedSeedRow(row, machineWrote))
|
|
25096
25561
|
continue;
|
|
@@ -25270,28 +25735,6 @@ function designPreloaderOf(config) {
|
|
|
25270
25735
|
return hasRow ? preloaderOfChoices(choices) : null;
|
|
25271
25736
|
}
|
|
25272
25737
|
|
|
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
|
-
|
|
25295
25738
|
/**
|
|
25296
25739
|
* @vectoriox/iox-ui/design-core — the shared, FRAMEWORK-FREE core of the design system
|
|
25297
25740
|
* (design-system plan §3e): the token vocabulary, the flavor contract (generated 1:1 from
|
|
@@ -25307,5 +25750,5 @@ function localeDirection(locale) {
|
|
|
25307
25750
|
* Generated bundle index. Do not edit.
|
|
25308
25751
|
*/
|
|
25309
25752
|
|
|
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 };
|
|
25753
|
+
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, COLUMN_ATTRIBUTE, COLUMN_IDS, COLUMN_SETTING, COMPOSED_HEADER, CONTENT_WIDTH_TOKEN, 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_MIRRORED_CLASS, 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_COLUMN, 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_COLUMN, 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_CARD_SUPERSEDED, 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, SUPERSEDED_TOKEN_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, WIDE_CONTENT_WIDTH, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, brandNameAttributes, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, columnSelector, columnWordOf, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, contentWidthOf, 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, nodeIsRtl, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, openingFollowerSelector, ownedTraitStatus, ownedTraitsOf, packDesignChoices, pageColumn, 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, siteColumnOf, 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 };
|
|
25311
25754
|
//# sourceMappingURL=vectoriox-iox-ui-design-core.mjs.map
|