@vectoriox/iox-ui 5.84.0 → 5.85.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/actions-core/index.d.ts +18 -2
- package/composite-core/index.d.ts +93 -15
- package/design-core/index.d.ts +566 -4
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs +18 -1
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +307 -39
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +680 -15
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +35 -4
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs +101 -5
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +285 -12
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +13 -0
- package/index.d.ts +143 -42
- package/package.json +1 -1
- package/scene-core/index.d.ts +32 -4
- package/src/actions-core/dialog-motion.ts +25 -0
- package/src/composite-core/header.ts +25 -0
- package/src/composite-core/public-api.ts +1 -0
- package/src/composite-core/slider-runtime.ts +82 -0
- package/src/composite-core/slider.ts +194 -27
- package/src/composite-core/structure.ts +14 -9
- package/src/design-core/flavor-spec.generated.ts +596 -9
- package/src/design-core/header-behaviour.ts +76 -0
- package/src/design-core/public-api.ts +1 -0
- package/src/design-core/theme-color.ts +21 -5
- package/src/generation-core/compose-site.ts +8 -0
- package/src/generation-core/node-baselines.generated.ts +17 -3
- package/src/generation-core/patterns.ts +2 -0
- package/src/generation-core/site-spec.generated.ts +8 -0
- package/src/scene-core/scene.ts +18 -0
- package/src/scene-core/scroll-driver.ts +83 -6
- package/styles/iox-design.css +232 -1
- package/styles/iox-forms.css +5 -2
|
@@ -519,6 +519,30 @@ const SPEC_TIERS = {
|
|
|
519
519
|
"type": "number",
|
|
520
520
|
"group": "motion",
|
|
521
521
|
"desc": ""
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"name": "dur-hover",
|
|
525
|
+
"type": "duration",
|
|
526
|
+
"group": "motion",
|
|
527
|
+
"desc": "Hover colour: links, chips (≤150ms)"
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"name": "ease-hover",
|
|
531
|
+
"type": "easing",
|
|
532
|
+
"group": "motion",
|
|
533
|
+
"desc": "Hover colour (ease)"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"name": "dur-press",
|
|
537
|
+
"type": "duration",
|
|
538
|
+
"group": "motion",
|
|
539
|
+
"desc": "A press, faster than its release"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"name": "dur-ui",
|
|
543
|
+
"type": "duration",
|
|
544
|
+
"group": "motion",
|
|
545
|
+
"desc": "UI motion ≤300ms: a linked card, the header"
|
|
522
546
|
}
|
|
523
547
|
],
|
|
524
548
|
"component": [
|
|
@@ -747,6 +771,11 @@ const SPEC_TIERS = {
|
|
|
747
771
|
"type": "effect",
|
|
748
772
|
"default": "none"
|
|
749
773
|
},
|
|
774
|
+
{
|
|
775
|
+
"name": "card-shadow-raise",
|
|
776
|
+
"type": "shadow",
|
|
777
|
+
"default": "var(--iox-card-shadow-hover)"
|
|
778
|
+
},
|
|
750
779
|
{
|
|
751
780
|
"name": "panel-bg",
|
|
752
781
|
"type": "color",
|
|
@@ -877,6 +906,11 @@ const SPEC_TIERS = {
|
|
|
877
906
|
"type": "size",
|
|
878
907
|
"default": "0px"
|
|
879
908
|
},
|
|
909
|
+
{
|
|
910
|
+
"name": "dialog-edge",
|
|
911
|
+
"type": "color",
|
|
912
|
+
"default": "var(--iox-line)"
|
|
913
|
+
},
|
|
880
914
|
{
|
|
881
915
|
"name": "image-radius",
|
|
882
916
|
"type": "radius",
|
|
@@ -912,6 +946,31 @@ const SPEC_TIERS = {
|
|
|
912
946
|
"type": "keyword",
|
|
913
947
|
"default": "underline 2px var(--iox-accent-text)"
|
|
914
948
|
},
|
|
949
|
+
{
|
|
950
|
+
"name": "link-underline-rest",
|
|
951
|
+
"type": "number",
|
|
952
|
+
"default": "1"
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
"name": "link-underline-thickness",
|
|
956
|
+
"type": "size",
|
|
957
|
+
"default": "max(1px, 0.06em)"
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"name": "link-underline-offset",
|
|
961
|
+
"type": "size",
|
|
962
|
+
"default": "0.12em"
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"name": "link-current-underline",
|
|
966
|
+
"type": "color",
|
|
967
|
+
"default": "var(--iox-accent-text)"
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"name": "link-current-underline-thickness",
|
|
971
|
+
"type": "size",
|
|
972
|
+
"default": "2px"
|
|
973
|
+
},
|
|
915
974
|
{
|
|
916
975
|
"name": "tabbar-bg",
|
|
917
976
|
"type": "color",
|
|
@@ -1231,6 +1290,11 @@ const SPEC_TIERS = {
|
|
|
1231
1290
|
"name": "video-play-size",
|
|
1232
1291
|
"type": "size",
|
|
1233
1292
|
"default": "64px"
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
"name": "slider-ease",
|
|
1296
|
+
"type": "easing",
|
|
1297
|
+
"default": "var(--iox-ease-standard)"
|
|
1234
1298
|
}
|
|
1235
1299
|
]
|
|
1236
1300
|
};
|
|
@@ -1325,7 +1389,10 @@ const SPEC_AXES = {
|
|
|
1325
1389
|
"ease-spring": "linear",
|
|
1326
1390
|
"dur-spring": "0ms",
|
|
1327
1391
|
"hover-lift": "0px",
|
|
1328
|
-
"press-scale": "1"
|
|
1392
|
+
"press-scale": "1",
|
|
1393
|
+
"dur-hover": "0ms",
|
|
1394
|
+
"dur-press": "0ms",
|
|
1395
|
+
"dur-ui": "0ms"
|
|
1329
1396
|
},
|
|
1330
1397
|
"snappy": {
|
|
1331
1398
|
"label": "Snappy",
|
|
@@ -1336,7 +1403,10 @@ const SPEC_AXES = {
|
|
|
1336
1403
|
"ease-spring": "cubic-bezier(0.2, 0, 0, 1)",
|
|
1337
1404
|
"dur-spring": "140ms",
|
|
1338
1405
|
"hover-lift": "-2px",
|
|
1339
|
-
"press-scale": "0.97"
|
|
1406
|
+
"press-scale": "0.97",
|
|
1407
|
+
"dur-hover": "80ms",
|
|
1408
|
+
"dur-press": "60ms",
|
|
1409
|
+
"dur-ui": "140ms"
|
|
1340
1410
|
},
|
|
1341
1411
|
"standard": {
|
|
1342
1412
|
"label": "Standard",
|
|
@@ -1347,7 +1417,10 @@ const SPEC_AXES = {
|
|
|
1347
1417
|
"ease-spring": "cubic-bezier(0.2, 0, 0, 1)",
|
|
1348
1418
|
"dur-spring": "200ms",
|
|
1349
1419
|
"hover-lift": "-2px",
|
|
1350
|
-
"press-scale": "0.98"
|
|
1420
|
+
"press-scale": "0.98",
|
|
1421
|
+
"dur-hover": "120ms",
|
|
1422
|
+
"dur-press": "90ms",
|
|
1423
|
+
"dur-ui": "200ms"
|
|
1351
1424
|
},
|
|
1352
1425
|
"calm": {
|
|
1353
1426
|
"label": "Calm",
|
|
@@ -1358,7 +1431,10 @@ const SPEC_AXES = {
|
|
|
1358
1431
|
"ease-spring": "cubic-bezier(0.33, 0, 0.1, 1)",
|
|
1359
1432
|
"dur-spring": "400ms",
|
|
1360
1433
|
"hover-lift": "0px",
|
|
1361
|
-
"press-scale": "0.98"
|
|
1434
|
+
"press-scale": "0.98",
|
|
1435
|
+
"dur-hover": "150ms",
|
|
1436
|
+
"dur-press": "120ms",
|
|
1437
|
+
"dur-ui": "300ms"
|
|
1362
1438
|
},
|
|
1363
1439
|
"lively": {
|
|
1364
1440
|
"label": "Lively",
|
|
@@ -1369,12 +1445,16 @@ const SPEC_AXES = {
|
|
|
1369
1445
|
"ease-spring": "linear(0, 0.018, 0.0651, 0.132, 0.2115, 0.2974, 0.3852, 0.4714, 0.5535, 0.6296, 0.6987, 0.7603, 0.8142, 0.8605, 0.8996, 0.9321, 0.9585, 0.9794, 0.9957, 1.0079, 1.0167, 1.0226, 1.0262, 1.028, 1.0284, 1.0276, 1.0262, 1.0242, 1.0219, 1.0194, 1.0169, 1.0145, 1.0122, 1.0101, 1.0082, 1.0065, 1.005, 1.0037, 1.0026, 1.0018, 1)",
|
|
1370
1446
|
"dur-spring": "470ms",
|
|
1371
1447
|
"hover-lift": "-3px",
|
|
1372
|
-
"press-scale": "0.97"
|
|
1448
|
+
"press-scale": "0.97",
|
|
1449
|
+
"dur-hover": "150ms",
|
|
1450
|
+
"dur-press": "100ms",
|
|
1451
|
+
"dur-ui": "280ms"
|
|
1373
1452
|
}
|
|
1374
1453
|
},
|
|
1375
1454
|
"motionCommon": {
|
|
1376
1455
|
"ease-enter": "cubic-bezier(0.05, 0.7, 0.1, 1)",
|
|
1377
|
-
"ease-exit": "cubic-bezier(0.3, 0, 0.8, 0.15)"
|
|
1456
|
+
"ease-exit": "cubic-bezier(0.3, 0, 0.8, 0.15)",
|
|
1457
|
+
"ease-hover": "ease"
|
|
1378
1458
|
},
|
|
1379
1459
|
"modes": [
|
|
1380
1460
|
"light",
|
|
@@ -2591,6 +2671,7 @@ const SPEC_A11Y = {
|
|
|
2591
2671
|
"dur-slow": "0ms",
|
|
2592
2672
|
"dur-spring": "0ms",
|
|
2593
2673
|
"ease-spring": "linear",
|
|
2674
|
+
"dur-press": "0ms",
|
|
2594
2675
|
"hover-lift": "0px",
|
|
2595
2676
|
"press-scale": "1",
|
|
2596
2677
|
"card-hover-x": "0px",
|
|
@@ -3758,10 +3839,11 @@ const SPEC_FIELD_CLASS_BASELINE = {
|
|
|
3758
3839
|
"font-family": "var(--iox-font-label)",
|
|
3759
3840
|
"font-size": "var(--iox-badge-size)",
|
|
3760
3841
|
"font-weight": "var(--iox-weight-label)",
|
|
3761
|
-
"transition": "border-color var(--iox-dur-
|
|
3842
|
+
"transition": "border-color var(--iox-dur-hover) var(--iox-ease-hover), background-color var(--iox-dur-hover) var(--iox-ease-hover), color var(--iox-dur-hover) var(--iox-ease-hover), box-shadow var(--iox-dur-hover) var(--iox-ease-hover), opacity var(--iox-dur-hover) var(--iox-ease-hover), transform var(--iox-dur-fast) var(--iox-ease-standard)"
|
|
3762
3843
|
},
|
|
3763
3844
|
".iox-es-field .iox-field__chip:active:not(:has(:disabled))": {
|
|
3764
|
-
"transform": "scale(var(--iox-press-scale))"
|
|
3845
|
+
"transform": "scale(var(--iox-press-scale))",
|
|
3846
|
+
"transition-duration": "var(--iox-dur-press)"
|
|
3765
3847
|
},
|
|
3766
3848
|
".iox-es-field .iox-field__chip:hover:not(:has(:disabled))": {
|
|
3767
3849
|
"border-color": "var(--iox-text)"
|
|
@@ -3831,7 +3913,8 @@ const SPEC_FIELD_CLASS_BASELINE = {
|
|
|
3831
3913
|
"transition": "background-color var(--iox-dur-fast) var(--iox-ease-standard), color var(--iox-dur-fast) var(--iox-ease-standard), border-color var(--iox-dur-fast) var(--iox-ease-standard), box-shadow var(--iox-dur-fast) var(--iox-ease-standard), opacity var(--iox-dur-fast) var(--iox-ease-standard), transform var(--iox-dur-fast) var(--iox-ease-standard)"
|
|
3832
3914
|
},
|
|
3833
3915
|
".iox-es-field .iox-cal .iox-cal__day:active:not([aria-disabled='true'])": {
|
|
3834
|
-
"transform": "scale(var(--iox-press-scale))"
|
|
3916
|
+
"transform": "scale(var(--iox-press-scale))",
|
|
3917
|
+
"transition-duration": "var(--iox-dur-press)"
|
|
3835
3918
|
},
|
|
3836
3919
|
".iox-es-field .iox-cal .iox-cal__day:hover:not([aria-disabled='true'])": {
|
|
3837
3920
|
"background-color": "var(--iox-surface-2)"
|
|
@@ -4966,6 +5049,34 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
4966
5049
|
"group": "motion",
|
|
4967
5050
|
"value": "0.98"
|
|
4968
5051
|
},
|
|
5052
|
+
{
|
|
5053
|
+
"name": "dur-hover",
|
|
5054
|
+
"tier": "semantic",
|
|
5055
|
+
"type": "duration",
|
|
5056
|
+
"group": "motion",
|
|
5057
|
+
"value": "120ms"
|
|
5058
|
+
},
|
|
5059
|
+
{
|
|
5060
|
+
"name": "ease-hover",
|
|
5061
|
+
"tier": "semantic",
|
|
5062
|
+
"type": "easing",
|
|
5063
|
+
"group": "motion",
|
|
5064
|
+
"value": "ease"
|
|
5065
|
+
},
|
|
5066
|
+
{
|
|
5067
|
+
"name": "dur-press",
|
|
5068
|
+
"tier": "semantic",
|
|
5069
|
+
"type": "duration",
|
|
5070
|
+
"group": "motion",
|
|
5071
|
+
"value": "90ms"
|
|
5072
|
+
},
|
|
5073
|
+
{
|
|
5074
|
+
"name": "dur-ui",
|
|
5075
|
+
"tier": "semantic",
|
|
5076
|
+
"type": "duration",
|
|
5077
|
+
"group": "motion",
|
|
5078
|
+
"value": "200ms"
|
|
5079
|
+
},
|
|
4969
5080
|
{
|
|
4970
5081
|
"name": "button-font",
|
|
4971
5082
|
"tier": "component",
|
|
@@ -5281,6 +5392,13 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
5281
5392
|
"group": "components",
|
|
5282
5393
|
"value": "none"
|
|
5283
5394
|
},
|
|
5395
|
+
{
|
|
5396
|
+
"name": "card-shadow-raise",
|
|
5397
|
+
"tier": "component",
|
|
5398
|
+
"type": "shadow",
|
|
5399
|
+
"group": "components",
|
|
5400
|
+
"value": "var(--iox-card-shadow-hover)"
|
|
5401
|
+
},
|
|
5284
5402
|
{
|
|
5285
5403
|
"name": "panel-bg",
|
|
5286
5404
|
"tier": "component",
|
|
@@ -5463,6 +5581,13 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
5463
5581
|
"group": "components",
|
|
5464
5582
|
"value": "0px"
|
|
5465
5583
|
},
|
|
5584
|
+
{
|
|
5585
|
+
"name": "dialog-edge",
|
|
5586
|
+
"tier": "component",
|
|
5587
|
+
"type": "color",
|
|
5588
|
+
"group": "components",
|
|
5589
|
+
"value": "var(--iox-line)"
|
|
5590
|
+
},
|
|
5466
5591
|
{
|
|
5467
5592
|
"name": "image-radius",
|
|
5468
5593
|
"tier": "component",
|
|
@@ -5512,6 +5637,41 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
5512
5637
|
"group": "components",
|
|
5513
5638
|
"value": "underline 2px var(--iox-accent-text)"
|
|
5514
5639
|
},
|
|
5640
|
+
{
|
|
5641
|
+
"name": "link-underline-rest",
|
|
5642
|
+
"tier": "component",
|
|
5643
|
+
"type": "number",
|
|
5644
|
+
"group": "components",
|
|
5645
|
+
"value": "1"
|
|
5646
|
+
},
|
|
5647
|
+
{
|
|
5648
|
+
"name": "link-underline-thickness",
|
|
5649
|
+
"tier": "component",
|
|
5650
|
+
"type": "size",
|
|
5651
|
+
"group": "components",
|
|
5652
|
+
"value": "max(1px, 0.06em)"
|
|
5653
|
+
},
|
|
5654
|
+
{
|
|
5655
|
+
"name": "link-underline-offset",
|
|
5656
|
+
"tier": "component",
|
|
5657
|
+
"type": "size",
|
|
5658
|
+
"group": "components",
|
|
5659
|
+
"value": "0.12em"
|
|
5660
|
+
},
|
|
5661
|
+
{
|
|
5662
|
+
"name": "link-current-underline",
|
|
5663
|
+
"tier": "component",
|
|
5664
|
+
"type": "color",
|
|
5665
|
+
"group": "components",
|
|
5666
|
+
"value": "var(--iox-accent-text)"
|
|
5667
|
+
},
|
|
5668
|
+
{
|
|
5669
|
+
"name": "link-current-underline-thickness",
|
|
5670
|
+
"tier": "component",
|
|
5671
|
+
"type": "size",
|
|
5672
|
+
"group": "components",
|
|
5673
|
+
"value": "2px"
|
|
5674
|
+
},
|
|
5515
5675
|
{
|
|
5516
5676
|
"name": "tabbar-bg",
|
|
5517
5677
|
"tier": "component",
|
|
@@ -5959,6 +6119,13 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
5959
6119
|
"type": "size",
|
|
5960
6120
|
"group": "components",
|
|
5961
6121
|
"value": "64px"
|
|
6122
|
+
},
|
|
6123
|
+
{
|
|
6124
|
+
"name": "slider-ease",
|
|
6125
|
+
"tier": "component",
|
|
6126
|
+
"type": "easing",
|
|
6127
|
+
"group": "components",
|
|
6128
|
+
"value": "var(--iox-ease-standard)"
|
|
5962
6129
|
}
|
|
5963
6130
|
]
|
|
5964
6131
|
},
|
|
@@ -6753,6 +6920,34 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
6753
6920
|
"group": "motion",
|
|
6754
6921
|
"value": "0.98"
|
|
6755
6922
|
},
|
|
6923
|
+
{
|
|
6924
|
+
"name": "dur-hover",
|
|
6925
|
+
"tier": "semantic",
|
|
6926
|
+
"type": "duration",
|
|
6927
|
+
"group": "motion",
|
|
6928
|
+
"value": "150ms"
|
|
6929
|
+
},
|
|
6930
|
+
{
|
|
6931
|
+
"name": "ease-hover",
|
|
6932
|
+
"tier": "semantic",
|
|
6933
|
+
"type": "easing",
|
|
6934
|
+
"group": "motion",
|
|
6935
|
+
"value": "ease"
|
|
6936
|
+
},
|
|
6937
|
+
{
|
|
6938
|
+
"name": "dur-press",
|
|
6939
|
+
"tier": "semantic",
|
|
6940
|
+
"type": "duration",
|
|
6941
|
+
"group": "motion",
|
|
6942
|
+
"value": "120ms"
|
|
6943
|
+
},
|
|
6944
|
+
{
|
|
6945
|
+
"name": "dur-ui",
|
|
6946
|
+
"tier": "semantic",
|
|
6947
|
+
"type": "duration",
|
|
6948
|
+
"group": "motion",
|
|
6949
|
+
"value": "300ms"
|
|
6950
|
+
},
|
|
6756
6951
|
{
|
|
6757
6952
|
"name": "button-font",
|
|
6758
6953
|
"tier": "component",
|
|
@@ -7083,6 +7278,13 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
7083
7278
|
"group": "components",
|
|
7084
7279
|
"value": "none"
|
|
7085
7280
|
},
|
|
7281
|
+
{
|
|
7282
|
+
"name": "card-shadow-raise",
|
|
7283
|
+
"tier": "component",
|
|
7284
|
+
"type": "shadow",
|
|
7285
|
+
"group": "components",
|
|
7286
|
+
"value": "var(--iox-card-shadow-hover)"
|
|
7287
|
+
},
|
|
7086
7288
|
{
|
|
7087
7289
|
"name": "panel-bg",
|
|
7088
7290
|
"tier": "component",
|
|
@@ -7268,6 +7470,13 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
7268
7470
|
"group": "components",
|
|
7269
7471
|
"value": "0px"
|
|
7270
7472
|
},
|
|
7473
|
+
{
|
|
7474
|
+
"name": "dialog-edge",
|
|
7475
|
+
"tier": "component",
|
|
7476
|
+
"type": "color",
|
|
7477
|
+
"group": "components",
|
|
7478
|
+
"value": "var(--iox-line)"
|
|
7479
|
+
},
|
|
7271
7480
|
{
|
|
7272
7481
|
"name": "image-radius",
|
|
7273
7482
|
"tier": "component",
|
|
@@ -7320,6 +7529,41 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
7320
7529
|
"group": "components",
|
|
7321
7530
|
"value": "underline 2px var(--iox-accent-text)"
|
|
7322
7531
|
},
|
|
7532
|
+
{
|
|
7533
|
+
"name": "link-underline-rest",
|
|
7534
|
+
"tier": "component",
|
|
7535
|
+
"type": "number",
|
|
7536
|
+
"group": "components",
|
|
7537
|
+
"value": "1"
|
|
7538
|
+
},
|
|
7539
|
+
{
|
|
7540
|
+
"name": "link-underline-thickness",
|
|
7541
|
+
"tier": "component",
|
|
7542
|
+
"type": "size",
|
|
7543
|
+
"group": "components",
|
|
7544
|
+
"value": "max(1px, 0.06em)"
|
|
7545
|
+
},
|
|
7546
|
+
{
|
|
7547
|
+
"name": "link-underline-offset",
|
|
7548
|
+
"tier": "component",
|
|
7549
|
+
"type": "size",
|
|
7550
|
+
"group": "components",
|
|
7551
|
+
"value": "0.12em"
|
|
7552
|
+
},
|
|
7553
|
+
{
|
|
7554
|
+
"name": "link-current-underline",
|
|
7555
|
+
"tier": "component",
|
|
7556
|
+
"type": "color",
|
|
7557
|
+
"group": "components",
|
|
7558
|
+
"value": "var(--iox-accent-text)"
|
|
7559
|
+
},
|
|
7560
|
+
{
|
|
7561
|
+
"name": "link-current-underline-thickness",
|
|
7562
|
+
"tier": "component",
|
|
7563
|
+
"type": "size",
|
|
7564
|
+
"group": "components",
|
|
7565
|
+
"value": "2px"
|
|
7566
|
+
},
|
|
7323
7567
|
{
|
|
7324
7568
|
"name": "tabbar-bg",
|
|
7325
7569
|
"tier": "component",
|
|
@@ -7773,6 +8017,13 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
7773
8017
|
"type": "size",
|
|
7774
8018
|
"group": "components",
|
|
7775
8019
|
"value": "64px"
|
|
8020
|
+
},
|
|
8021
|
+
{
|
|
8022
|
+
"name": "slider-ease",
|
|
8023
|
+
"tier": "component",
|
|
8024
|
+
"type": "easing",
|
|
8025
|
+
"group": "components",
|
|
8026
|
+
"value": "var(--iox-ease-standard)"
|
|
7776
8027
|
}
|
|
7777
8028
|
]
|
|
7778
8029
|
},
|
|
@@ -8572,6 +8823,34 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
8572
8823
|
"group": "motion",
|
|
8573
8824
|
"value": "0.98"
|
|
8574
8825
|
},
|
|
8826
|
+
{
|
|
8827
|
+
"name": "dur-hover",
|
|
8828
|
+
"tier": "semantic",
|
|
8829
|
+
"type": "duration",
|
|
8830
|
+
"group": "motion",
|
|
8831
|
+
"value": "120ms"
|
|
8832
|
+
},
|
|
8833
|
+
{
|
|
8834
|
+
"name": "ease-hover",
|
|
8835
|
+
"tier": "semantic",
|
|
8836
|
+
"type": "easing",
|
|
8837
|
+
"group": "motion",
|
|
8838
|
+
"value": "ease"
|
|
8839
|
+
},
|
|
8840
|
+
{
|
|
8841
|
+
"name": "dur-press",
|
|
8842
|
+
"tier": "semantic",
|
|
8843
|
+
"type": "duration",
|
|
8844
|
+
"group": "motion",
|
|
8845
|
+
"value": "90ms"
|
|
8846
|
+
},
|
|
8847
|
+
{
|
|
8848
|
+
"name": "dur-ui",
|
|
8849
|
+
"tier": "semantic",
|
|
8850
|
+
"type": "duration",
|
|
8851
|
+
"group": "motion",
|
|
8852
|
+
"value": "200ms"
|
|
8853
|
+
},
|
|
8575
8854
|
{
|
|
8576
8855
|
"name": "button-font",
|
|
8577
8856
|
"tier": "component",
|
|
@@ -8893,6 +9172,13 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
8893
9172
|
"group": "components",
|
|
8894
9173
|
"value": "none"
|
|
8895
9174
|
},
|
|
9175
|
+
{
|
|
9176
|
+
"name": "card-shadow-raise",
|
|
9177
|
+
"tier": "component",
|
|
9178
|
+
"type": "shadow",
|
|
9179
|
+
"group": "components",
|
|
9180
|
+
"value": "var(--iox-card-shadow-hover)"
|
|
9181
|
+
},
|
|
8896
9182
|
{
|
|
8897
9183
|
"name": "panel-bg",
|
|
8898
9184
|
"tier": "component",
|
|
@@ -9077,6 +9363,13 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
9077
9363
|
"group": "components",
|
|
9078
9364
|
"value": "0px"
|
|
9079
9365
|
},
|
|
9366
|
+
{
|
|
9367
|
+
"name": "dialog-edge",
|
|
9368
|
+
"tier": "component",
|
|
9369
|
+
"type": "color",
|
|
9370
|
+
"group": "components",
|
|
9371
|
+
"value": "var(--iox-line)"
|
|
9372
|
+
},
|
|
9080
9373
|
{
|
|
9081
9374
|
"name": "image-radius",
|
|
9082
9375
|
"tier": "component",
|
|
@@ -9126,6 +9419,41 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
9126
9419
|
"group": "components",
|
|
9127
9420
|
"value": "underline 2px var(--iox-accent-text)"
|
|
9128
9421
|
},
|
|
9422
|
+
{
|
|
9423
|
+
"name": "link-underline-rest",
|
|
9424
|
+
"tier": "component",
|
|
9425
|
+
"type": "number",
|
|
9426
|
+
"group": "components",
|
|
9427
|
+
"value": "1"
|
|
9428
|
+
},
|
|
9429
|
+
{
|
|
9430
|
+
"name": "link-underline-thickness",
|
|
9431
|
+
"tier": "component",
|
|
9432
|
+
"type": "size",
|
|
9433
|
+
"group": "components",
|
|
9434
|
+
"value": "max(1px, 0.06em)"
|
|
9435
|
+
},
|
|
9436
|
+
{
|
|
9437
|
+
"name": "link-underline-offset",
|
|
9438
|
+
"tier": "component",
|
|
9439
|
+
"type": "size",
|
|
9440
|
+
"group": "components",
|
|
9441
|
+
"value": "0.12em"
|
|
9442
|
+
},
|
|
9443
|
+
{
|
|
9444
|
+
"name": "link-current-underline",
|
|
9445
|
+
"tier": "component",
|
|
9446
|
+
"type": "color",
|
|
9447
|
+
"group": "components",
|
|
9448
|
+
"value": "var(--iox-accent-text)"
|
|
9449
|
+
},
|
|
9450
|
+
{
|
|
9451
|
+
"name": "link-current-underline-thickness",
|
|
9452
|
+
"tier": "component",
|
|
9453
|
+
"type": "size",
|
|
9454
|
+
"group": "components",
|
|
9455
|
+
"value": "2px"
|
|
9456
|
+
},
|
|
9129
9457
|
{
|
|
9130
9458
|
"name": "tabbar-bg",
|
|
9131
9459
|
"tier": "component",
|
|
@@ -9575,6 +9903,13 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
9575
9903
|
"type": "size",
|
|
9576
9904
|
"group": "components",
|
|
9577
9905
|
"value": "64px"
|
|
9906
|
+
},
|
|
9907
|
+
{
|
|
9908
|
+
"name": "slider-ease",
|
|
9909
|
+
"tier": "component",
|
|
9910
|
+
"type": "easing",
|
|
9911
|
+
"group": "components",
|
|
9912
|
+
"value": "var(--iox-ease-standard)"
|
|
9578
9913
|
}
|
|
9579
9914
|
]
|
|
9580
9915
|
},
|
|
@@ -10387,6 +10722,34 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
10387
10722
|
"group": "motion",
|
|
10388
10723
|
"value": "0.97"
|
|
10389
10724
|
},
|
|
10725
|
+
{
|
|
10726
|
+
"name": "dur-hover",
|
|
10727
|
+
"tier": "semantic",
|
|
10728
|
+
"type": "duration",
|
|
10729
|
+
"group": "motion",
|
|
10730
|
+
"value": "150ms"
|
|
10731
|
+
},
|
|
10732
|
+
{
|
|
10733
|
+
"name": "ease-hover",
|
|
10734
|
+
"tier": "semantic",
|
|
10735
|
+
"type": "easing",
|
|
10736
|
+
"group": "motion",
|
|
10737
|
+
"value": "ease"
|
|
10738
|
+
},
|
|
10739
|
+
{
|
|
10740
|
+
"name": "dur-press",
|
|
10741
|
+
"tier": "semantic",
|
|
10742
|
+
"type": "duration",
|
|
10743
|
+
"group": "motion",
|
|
10744
|
+
"value": "100ms"
|
|
10745
|
+
},
|
|
10746
|
+
{
|
|
10747
|
+
"name": "dur-ui",
|
|
10748
|
+
"tier": "semantic",
|
|
10749
|
+
"type": "duration",
|
|
10750
|
+
"group": "motion",
|
|
10751
|
+
"value": "280ms"
|
|
10752
|
+
},
|
|
10390
10753
|
{
|
|
10391
10754
|
"name": "button-font",
|
|
10392
10755
|
"tier": "component",
|
|
@@ -10715,6 +11078,13 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
10715
11078
|
"value": "var(--iox-blur-surface)",
|
|
10716
11079
|
"overridden": true
|
|
10717
11080
|
},
|
|
11081
|
+
{
|
|
11082
|
+
"name": "card-shadow-raise",
|
|
11083
|
+
"tier": "component",
|
|
11084
|
+
"type": "shadow",
|
|
11085
|
+
"group": "components",
|
|
11086
|
+
"value": "var(--iox-card-shadow-hover)"
|
|
11087
|
+
},
|
|
10718
11088
|
{
|
|
10719
11089
|
"name": "panel-bg",
|
|
10720
11090
|
"tier": "component",
|
|
@@ -10910,6 +11280,13 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
10910
11280
|
"value": "var(--iox-border-width)",
|
|
10911
11281
|
"overridden": true
|
|
10912
11282
|
},
|
|
11283
|
+
{
|
|
11284
|
+
"name": "dialog-edge",
|
|
11285
|
+
"tier": "component",
|
|
11286
|
+
"type": "color",
|
|
11287
|
+
"group": "components",
|
|
11288
|
+
"value": "var(--iox-line)"
|
|
11289
|
+
},
|
|
10913
11290
|
{
|
|
10914
11291
|
"name": "image-radius",
|
|
10915
11292
|
"tier": "component",
|
|
@@ -10959,6 +11336,41 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
10959
11336
|
"group": "components",
|
|
10960
11337
|
"value": "underline 2px var(--iox-accent-text)"
|
|
10961
11338
|
},
|
|
11339
|
+
{
|
|
11340
|
+
"name": "link-underline-rest",
|
|
11341
|
+
"tier": "component",
|
|
11342
|
+
"type": "number",
|
|
11343
|
+
"group": "components",
|
|
11344
|
+
"value": "1"
|
|
11345
|
+
},
|
|
11346
|
+
{
|
|
11347
|
+
"name": "link-underline-thickness",
|
|
11348
|
+
"tier": "component",
|
|
11349
|
+
"type": "size",
|
|
11350
|
+
"group": "components",
|
|
11351
|
+
"value": "max(1px, 0.06em)"
|
|
11352
|
+
},
|
|
11353
|
+
{
|
|
11354
|
+
"name": "link-underline-offset",
|
|
11355
|
+
"tier": "component",
|
|
11356
|
+
"type": "size",
|
|
11357
|
+
"group": "components",
|
|
11358
|
+
"value": "0.12em"
|
|
11359
|
+
},
|
|
11360
|
+
{
|
|
11361
|
+
"name": "link-current-underline",
|
|
11362
|
+
"tier": "component",
|
|
11363
|
+
"type": "color",
|
|
11364
|
+
"group": "components",
|
|
11365
|
+
"value": "var(--iox-accent-text)"
|
|
11366
|
+
},
|
|
11367
|
+
{
|
|
11368
|
+
"name": "link-current-underline-thickness",
|
|
11369
|
+
"tier": "component",
|
|
11370
|
+
"type": "size",
|
|
11371
|
+
"group": "components",
|
|
11372
|
+
"value": "2px"
|
|
11373
|
+
},
|
|
10962
11374
|
{
|
|
10963
11375
|
"name": "tabbar-bg",
|
|
10964
11376
|
"tier": "component",
|
|
@@ -11421,6 +11833,13 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
11421
11833
|
"type": "size",
|
|
11422
11834
|
"group": "components",
|
|
11423
11835
|
"value": "64px"
|
|
11836
|
+
},
|
|
11837
|
+
{
|
|
11838
|
+
"name": "slider-ease",
|
|
11839
|
+
"tier": "component",
|
|
11840
|
+
"type": "easing",
|
|
11841
|
+
"group": "components",
|
|
11842
|
+
"value": "var(--iox-ease-standard)"
|
|
11424
11843
|
}
|
|
11425
11844
|
]
|
|
11426
11845
|
},
|
|
@@ -12215,6 +12634,34 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
12215
12634
|
"group": "motion",
|
|
12216
12635
|
"value": "0.97"
|
|
12217
12636
|
},
|
|
12637
|
+
{
|
|
12638
|
+
"name": "dur-hover",
|
|
12639
|
+
"tier": "semantic",
|
|
12640
|
+
"type": "duration",
|
|
12641
|
+
"group": "motion",
|
|
12642
|
+
"value": "150ms"
|
|
12643
|
+
},
|
|
12644
|
+
{
|
|
12645
|
+
"name": "ease-hover",
|
|
12646
|
+
"tier": "semantic",
|
|
12647
|
+
"type": "easing",
|
|
12648
|
+
"group": "motion",
|
|
12649
|
+
"value": "ease"
|
|
12650
|
+
},
|
|
12651
|
+
{
|
|
12652
|
+
"name": "dur-press",
|
|
12653
|
+
"tier": "semantic",
|
|
12654
|
+
"type": "duration",
|
|
12655
|
+
"group": "motion",
|
|
12656
|
+
"value": "100ms"
|
|
12657
|
+
},
|
|
12658
|
+
{
|
|
12659
|
+
"name": "dur-ui",
|
|
12660
|
+
"tier": "semantic",
|
|
12661
|
+
"type": "duration",
|
|
12662
|
+
"group": "motion",
|
|
12663
|
+
"value": "280ms"
|
|
12664
|
+
},
|
|
12218
12665
|
{
|
|
12219
12666
|
"name": "button-font",
|
|
12220
12667
|
"tier": "component",
|
|
@@ -12540,6 +12987,13 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
12540
12987
|
"group": "components",
|
|
12541
12988
|
"value": "none"
|
|
12542
12989
|
},
|
|
12990
|
+
{
|
|
12991
|
+
"name": "card-shadow-raise",
|
|
12992
|
+
"tier": "component",
|
|
12993
|
+
"type": "shadow",
|
|
12994
|
+
"group": "components",
|
|
12995
|
+
"value": "var(--iox-card-shadow-hover)"
|
|
12996
|
+
},
|
|
12543
12997
|
{
|
|
12544
12998
|
"name": "panel-bg",
|
|
12545
12999
|
"tier": "component",
|
|
@@ -12724,6 +13178,13 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
12724
13178
|
"group": "components",
|
|
12725
13179
|
"value": "0px"
|
|
12726
13180
|
},
|
|
13181
|
+
{
|
|
13182
|
+
"name": "dialog-edge",
|
|
13183
|
+
"tier": "component",
|
|
13184
|
+
"type": "color",
|
|
13185
|
+
"group": "components",
|
|
13186
|
+
"value": "var(--iox-line)"
|
|
13187
|
+
},
|
|
12727
13188
|
{
|
|
12728
13189
|
"name": "image-radius",
|
|
12729
13190
|
"tier": "component",
|
|
@@ -12773,6 +13234,41 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
12773
13234
|
"group": "components",
|
|
12774
13235
|
"value": "underline 2px var(--iox-accent-text)"
|
|
12775
13236
|
},
|
|
13237
|
+
{
|
|
13238
|
+
"name": "link-underline-rest",
|
|
13239
|
+
"tier": "component",
|
|
13240
|
+
"type": "number",
|
|
13241
|
+
"group": "components",
|
|
13242
|
+
"value": "1"
|
|
13243
|
+
},
|
|
13244
|
+
{
|
|
13245
|
+
"name": "link-underline-thickness",
|
|
13246
|
+
"tier": "component",
|
|
13247
|
+
"type": "size",
|
|
13248
|
+
"group": "components",
|
|
13249
|
+
"value": "max(1px, 0.06em)"
|
|
13250
|
+
},
|
|
13251
|
+
{
|
|
13252
|
+
"name": "link-underline-offset",
|
|
13253
|
+
"tier": "component",
|
|
13254
|
+
"type": "size",
|
|
13255
|
+
"group": "components",
|
|
13256
|
+
"value": "0.12em"
|
|
13257
|
+
},
|
|
13258
|
+
{
|
|
13259
|
+
"name": "link-current-underline",
|
|
13260
|
+
"tier": "component",
|
|
13261
|
+
"type": "color",
|
|
13262
|
+
"group": "components",
|
|
13263
|
+
"value": "var(--iox-accent-text)"
|
|
13264
|
+
},
|
|
13265
|
+
{
|
|
13266
|
+
"name": "link-current-underline-thickness",
|
|
13267
|
+
"tier": "component",
|
|
13268
|
+
"type": "size",
|
|
13269
|
+
"group": "components",
|
|
13270
|
+
"value": "2px"
|
|
13271
|
+
},
|
|
12776
13272
|
{
|
|
12777
13273
|
"name": "tabbar-bg",
|
|
12778
13274
|
"tier": "component",
|
|
@@ -13229,6 +13725,13 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
13229
13725
|
"type": "size",
|
|
13230
13726
|
"group": "components",
|
|
13231
13727
|
"value": "64px"
|
|
13728
|
+
},
|
|
13729
|
+
{
|
|
13730
|
+
"name": "slider-ease",
|
|
13731
|
+
"tier": "component",
|
|
13732
|
+
"type": "easing",
|
|
13733
|
+
"group": "components",
|
|
13734
|
+
"value": "var(--iox-ease-standard)"
|
|
13232
13735
|
}
|
|
13233
13736
|
]
|
|
13234
13737
|
},
|
|
@@ -14012,6 +14515,34 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
14012
14515
|
"group": "motion",
|
|
14013
14516
|
"value": "0.97"
|
|
14014
14517
|
},
|
|
14518
|
+
{
|
|
14519
|
+
"name": "dur-hover",
|
|
14520
|
+
"tier": "semantic",
|
|
14521
|
+
"type": "duration",
|
|
14522
|
+
"group": "motion",
|
|
14523
|
+
"value": "80ms"
|
|
14524
|
+
},
|
|
14525
|
+
{
|
|
14526
|
+
"name": "ease-hover",
|
|
14527
|
+
"tier": "semantic",
|
|
14528
|
+
"type": "easing",
|
|
14529
|
+
"group": "motion",
|
|
14530
|
+
"value": "ease"
|
|
14531
|
+
},
|
|
14532
|
+
{
|
|
14533
|
+
"name": "dur-press",
|
|
14534
|
+
"tier": "semantic",
|
|
14535
|
+
"type": "duration",
|
|
14536
|
+
"group": "motion",
|
|
14537
|
+
"value": "60ms"
|
|
14538
|
+
},
|
|
14539
|
+
{
|
|
14540
|
+
"name": "dur-ui",
|
|
14541
|
+
"tier": "semantic",
|
|
14542
|
+
"type": "duration",
|
|
14543
|
+
"group": "motion",
|
|
14544
|
+
"value": "140ms"
|
|
14545
|
+
},
|
|
14015
14546
|
{
|
|
14016
14547
|
"name": "button-font",
|
|
14017
14548
|
"tier": "component",
|
|
@@ -14346,6 +14877,13 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
14346
14877
|
"group": "components",
|
|
14347
14878
|
"value": "none"
|
|
14348
14879
|
},
|
|
14880
|
+
{
|
|
14881
|
+
"name": "card-shadow-raise",
|
|
14882
|
+
"tier": "component",
|
|
14883
|
+
"type": "shadow",
|
|
14884
|
+
"group": "components",
|
|
14885
|
+
"value": "var(--iox-card-shadow-hover)"
|
|
14886
|
+
},
|
|
14349
14887
|
{
|
|
14350
14888
|
"name": "panel-bg",
|
|
14351
14889
|
"tier": "component",
|
|
@@ -14534,6 +15072,13 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
14534
15072
|
"value": "var(--iox-border-width)",
|
|
14535
15073
|
"overridden": true
|
|
14536
15074
|
},
|
|
15075
|
+
{
|
|
15076
|
+
"name": "dialog-edge",
|
|
15077
|
+
"tier": "component",
|
|
15078
|
+
"type": "color",
|
|
15079
|
+
"group": "components",
|
|
15080
|
+
"value": "var(--iox-line)"
|
|
15081
|
+
},
|
|
14537
15082
|
{
|
|
14538
15083
|
"name": "image-radius",
|
|
14539
15084
|
"tier": "component",
|
|
@@ -14585,6 +15130,41 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
14585
15130
|
"group": "components",
|
|
14586
15131
|
"value": "underline 2px var(--iox-accent-text)"
|
|
14587
15132
|
},
|
|
15133
|
+
{
|
|
15134
|
+
"name": "link-underline-rest",
|
|
15135
|
+
"tier": "component",
|
|
15136
|
+
"type": "number",
|
|
15137
|
+
"group": "components",
|
|
15138
|
+
"value": "1"
|
|
15139
|
+
},
|
|
15140
|
+
{
|
|
15141
|
+
"name": "link-underline-thickness",
|
|
15142
|
+
"tier": "component",
|
|
15143
|
+
"type": "size",
|
|
15144
|
+
"group": "components",
|
|
15145
|
+
"value": "max(1px, 0.06em)"
|
|
15146
|
+
},
|
|
15147
|
+
{
|
|
15148
|
+
"name": "link-underline-offset",
|
|
15149
|
+
"tier": "component",
|
|
15150
|
+
"type": "size",
|
|
15151
|
+
"group": "components",
|
|
15152
|
+
"value": "0.12em"
|
|
15153
|
+
},
|
|
15154
|
+
{
|
|
15155
|
+
"name": "link-current-underline",
|
|
15156
|
+
"tier": "component",
|
|
15157
|
+
"type": "color",
|
|
15158
|
+
"group": "components",
|
|
15159
|
+
"value": "var(--iox-accent-text)"
|
|
15160
|
+
},
|
|
15161
|
+
{
|
|
15162
|
+
"name": "link-current-underline-thickness",
|
|
15163
|
+
"tier": "component",
|
|
15164
|
+
"type": "size",
|
|
15165
|
+
"group": "components",
|
|
15166
|
+
"value": "2px"
|
|
15167
|
+
},
|
|
14588
15168
|
{
|
|
14589
15169
|
"name": "tabbar-bg",
|
|
14590
15170
|
"tier": "component",
|
|
@@ -15046,6 +15626,13 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
15046
15626
|
"type": "size",
|
|
15047
15627
|
"group": "components",
|
|
15048
15628
|
"value": "64px"
|
|
15629
|
+
},
|
|
15630
|
+
{
|
|
15631
|
+
"name": "slider-ease",
|
|
15632
|
+
"tier": "component",
|
|
15633
|
+
"type": "easing",
|
|
15634
|
+
"group": "components",
|
|
15635
|
+
"value": "var(--iox-ease-standard)"
|
|
15049
15636
|
}
|
|
15050
15637
|
]
|
|
15051
15638
|
}
|
|
@@ -16139,6 +16726,8 @@ function compileTokenCss(tokens, opts = {}) {
|
|
|
16139
16726
|
|
|
16140
16727
|
/** The token the browser's own chrome takes its colour from: the page's ground. */
|
|
16141
16728
|
const THEME_COLOR_TOKEN = 'bg';
|
|
16729
|
+
/** …or the header's ground, when a header stays at the top of the screen (premium components T2, M4). */
|
|
16730
|
+
const HEADER_THEME_COLOR_TOKEN = 'nav-bg';
|
|
16142
16731
|
const VAR_REF = /^var\(\s*--iox-([\w-]+)\s*(?:,\s*([^()]+))?\)$/;
|
|
16143
16732
|
/** A colour the browser's chrome can wear: opaque hex, rgb() or hsl() — never a gradient, a mix or a translucent one. */
|
|
16144
16733
|
const SOLID_COLOUR = /^(#([0-9a-f]{3}|[0-9a-f]{6})|rgb\(\s*[\d.]+\s*,?\s*[\d.]+\s*,?\s*[\d.]+\s*\)|hsl\([^()/]+\))$/i;
|
|
@@ -16150,33 +16739,109 @@ function resolveIn$1(map, value, depth = 0) {
|
|
|
16150
16739
|
return value.trim();
|
|
16151
16740
|
return resolveIn$1(map, map.get(ref[1]) ?? ref[2]?.trim(), depth + 1);
|
|
16152
16741
|
}
|
|
16153
|
-
function colourFor(rows, dark) {
|
|
16742
|
+
function colourFor(rows, dark, token) {
|
|
16154
16743
|
const map = new Map(rows.map(r => [r.name, dark ? (r.values?.dark ?? r.value) : r.value]));
|
|
16155
|
-
const colour = resolveIn$1(map, map.get(
|
|
16744
|
+
const colour = resolveIn$1(map, map.get(token));
|
|
16156
16745
|
return colour && SOLID_COLOUR.test(colour) ? colour : undefined;
|
|
16157
16746
|
}
|
|
16747
|
+
function themeColourFor(rows, dark, options) {
|
|
16748
|
+
return (options.header ? colourFor(rows, dark, HEADER_THEME_COLOR_TOKEN) : undefined) ?? colourFor(rows, dark, THEME_COLOR_TOKEN);
|
|
16749
|
+
}
|
|
16158
16750
|
/**
|
|
16159
16751
|
* The `theme-color` the browser's chrome takes per colour scheme (premium components G15 — mobile-native M10): the
|
|
16160
16752
|
* page's ground in each mode the site shows, resolved through the org's rows. A light or dark site answers its one
|
|
16161
16753
|
* mode; `auto` answers both (the engine writes them with `media="(prefers-color-scheme: …)"`). A value that is not a
|
|
16162
16754
|
* solid colour answers nothing — the browser keeps its own.
|
|
16163
16755
|
*/
|
|
16164
|
-
function themeColors(rows, mode = 'auto') {
|
|
16756
|
+
function themeColors(rows, mode = 'auto', options = {}) {
|
|
16165
16757
|
const list = rows ?? [];
|
|
16166
16758
|
const out = {};
|
|
16167
16759
|
if (mode !== 'dark') {
|
|
16168
|
-
const light =
|
|
16760
|
+
const light = themeColourFor(list, false, options);
|
|
16169
16761
|
if (light)
|
|
16170
16762
|
out.light = light;
|
|
16171
16763
|
}
|
|
16172
16764
|
if (mode !== 'light') {
|
|
16173
|
-
const dark =
|
|
16765
|
+
const dark = themeColourFor(list, true, options);
|
|
16174
16766
|
if (dark)
|
|
16175
16767
|
out.dark = dark;
|
|
16176
16768
|
}
|
|
16177
16769
|
return out;
|
|
16178
16770
|
}
|
|
16179
16771
|
|
|
16772
|
+
/**
|
|
16773
|
+
* How a site's header behaves as the page scrolls (premium components T2, M4). Two traits on the header's ROOT (the
|
|
16774
|
+
* Navigation bar, generation-core `NavRole.Root`) — edited in its "Header" section, stamped by the composer from a
|
|
16775
|
+
* `nav.*` pattern's `header` — and ONE answer every renderer applies: the attributes below, which the shared CSS
|
|
16776
|
+
* (`iox-design.css`) and the header runtime (`HeaderRuntime`, main entry) read. A header with neither trait renders
|
|
16777
|
+
* exactly as before (it scrolls away with the page, its divider line as its look draws it).
|
|
16778
|
+
*
|
|
16779
|
+
* Framework-free: the composer (generation-core) and both renderers read it.
|
|
16780
|
+
*/
|
|
16781
|
+
var HeaderBehaviour;
|
|
16782
|
+
(function (HeaderBehaviour) {
|
|
16783
|
+
/** It scrolls away with the page (the default; what every header saved before M4 does). */
|
|
16784
|
+
HeaderBehaviour["Scrolls"] = "scrolls";
|
|
16785
|
+
/** It stays at the top while the page scrolls under it. */
|
|
16786
|
+
HeaderBehaviour["Stays"] = "stays";
|
|
16787
|
+
/** It steps aside while the page scrolls down and comes back the moment it scrolls up. */
|
|
16788
|
+
HeaderBehaviour["Hides"] = "hides";
|
|
16789
|
+
})(HeaderBehaviour || (HeaderBehaviour = {}));
|
|
16790
|
+
/** What separates the header from the page once the page has moved under it (Emil 99: an edge, not a divider). */
|
|
16791
|
+
var HeaderEdge;
|
|
16792
|
+
(function (HeaderEdge) {
|
|
16793
|
+
/** A soft fade of the header's own ground over the content under it. */
|
|
16794
|
+
HeaderEdge["Fade"] = "fade";
|
|
16795
|
+
/** A hairline in the header's border colour. */
|
|
16796
|
+
HeaderEdge["Line"] = "line";
|
|
16797
|
+
HeaderEdge["None"] = "none";
|
|
16798
|
+
})(HeaderEdge || (HeaderEdge = {}));
|
|
16799
|
+
/** The traits, stored in the root's props (no default: a plain Container saves neither). */
|
|
16800
|
+
var HeaderTrait;
|
|
16801
|
+
(function (HeaderTrait) {
|
|
16802
|
+
HeaderTrait["Behaviour"] = "headerBehaviour";
|
|
16803
|
+
HeaderTrait["Edge"] = "headerEdge";
|
|
16804
|
+
})(HeaderTrait || (HeaderTrait = {}));
|
|
16805
|
+
var HeaderAttribute;
|
|
16806
|
+
(function (HeaderAttribute) {
|
|
16807
|
+
/** `stays` | `hides` on a header that stays at the top. Absent: it scrolls away. */
|
|
16808
|
+
HeaderAttribute["Behaviour"] = "data-iox-header";
|
|
16809
|
+
/** `fade` | `line` | `none`: the edge it shows once the page has scrolled. Absent: its look's own divider stays. */
|
|
16810
|
+
HeaderAttribute["Edge"] = "data-iox-header-edge";
|
|
16811
|
+
/** Written by the header runtime while a `hides` header has stepped aside. */
|
|
16812
|
+
HeaderAttribute["Hidden"] = "data-iox-header-hidden";
|
|
16813
|
+
})(HeaderAttribute || (HeaderAttribute = {}));
|
|
16814
|
+
/** What a composed header gets (the `nav.*` patterns' `header`, the palette's Navigation bar). */
|
|
16815
|
+
const COMPOSED_HEADER = {
|
|
16816
|
+
behaviour: HeaderBehaviour.Hides,
|
|
16817
|
+
edge: HeaderEdge.Fade,
|
|
16818
|
+
};
|
|
16819
|
+
const BEHAVIOURS = new Set(Object.values(HeaderBehaviour));
|
|
16820
|
+
const EDGES = new Set(Object.values(HeaderEdge));
|
|
16821
|
+
/** A stored behaviour, or Scrolls for anything else. */
|
|
16822
|
+
function headerBehaviourOf(value) {
|
|
16823
|
+
return typeof value === 'string' && BEHAVIOURS.has(value) ? value : HeaderBehaviour.Scrolls;
|
|
16824
|
+
}
|
|
16825
|
+
/** A stored edge, or null (none chosen: the look's divider stays as it is). */
|
|
16826
|
+
function headerEdgeOf(value) {
|
|
16827
|
+
return typeof value === 'string' && EDGES.has(value) ? value : null;
|
|
16828
|
+
}
|
|
16829
|
+
/** True when the header keeps its place at the top of the screen (it stays, or it hides and comes back). */
|
|
16830
|
+
function headerStaysAtTop(behaviour) {
|
|
16831
|
+
return headerBehaviourOf(behaviour) !== HeaderBehaviour.Scrolls;
|
|
16832
|
+
}
|
|
16833
|
+
/** The attributes a header renders, from its two trait values — `{}` for a header that keeps today's behaviour. */
|
|
16834
|
+
function headerAttributes(behaviour, edge) {
|
|
16835
|
+
const out = {};
|
|
16836
|
+
const b = headerBehaviourOf(behaviour);
|
|
16837
|
+
if (b !== HeaderBehaviour.Scrolls)
|
|
16838
|
+
out[HeaderAttribute.Behaviour] = b;
|
|
16839
|
+
const e = headerEdgeOf(edge);
|
|
16840
|
+
if (e)
|
|
16841
|
+
out[HeaderAttribute.Edge] = e;
|
|
16842
|
+
return out;
|
|
16843
|
+
}
|
|
16844
|
+
|
|
16180
16845
|
/** A pack's own sanity: every token row names itself and carries a value. Returns errors. */
|
|
16181
16846
|
function validateFlavorPack(pack) {
|
|
16182
16847
|
const errors = [];
|
|
@@ -18832,5 +19497,5 @@ function stylePresetOfChoices(choices) {
|
|
|
18832
19497
|
* Generated bundle index. Do not edit.
|
|
18833
19498
|
*/
|
|
18834
19499
|
|
|
18835
|
-
export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, AdoptOutcome, AdoptSkipReason, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, BUTTON_VARIANT_TO_STYLE, CANVAS_LINK_ATTRIBUTE, CARD_LINK_CLASS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, 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, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, HELD_CONTRAST, INHERITED_TEXT, LinkType, MAX_FONT_FILE_BYTES, MOOD_IDS, MOOD_LABELS, NEW_NODE_STYLE_DEFAULTS, OwnedTraitLink, PALETTE_PRESETS, PRE_DS2_FLAVOR_DEFAULTS, PRE_MOTION, PRE_TINT_DEFAULT, REDUCED_DESIGN_MOTION, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, ROW_INDEX_ATTRIBUTE, SCHEME_INK, SCROLL_IDS, SPEC_A11Y, SPEC_AXES, SPEC_BUTTON_VARIANT_TO_STYLE, SPEC_CONTRAST, SPEC_CONTRAST_AUDIT, SPEC_DEFAULT_ELEMENT_STYLE, SPEC_ELEMENT_STYLES, SPEC_FIELD_CLASS_BASELINE, SPEC_FLAVORS, SPEC_FLAVOR_PACKS, SPEC_FONTS, SPEC_FONT_ROLES, SPEC_INK_SCOPES, SPEC_LEGACY_ALIASES, SPEC_MOODS, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SCHEME_INK, SPEC_SCRIPTS, SPEC_SPRINGS, SPEC_STYLE_PRESETS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, STAGGER_MAX_ITEMS, STAGGER_SHRINK, STYLE_PRESETS, SUPERSEDED_STYLE_VALUES, SWISS_FLAVOR, THEME_COLOR_TOKEN, TINT_FULL_CHROMA, TINT_IDS, TINT_LEVELS, TINT_OWN_HUE_CHROMA, TINT_TURN_CHROMA, USER_TOKEN_SOURCE, WCAG_AA_TEXT, WCAG_AA_UI, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designApplySnapshot, designBaseline, designConfigEntries, designModeOf, designMotionOf, designRevertConfig, designTokenRepairs, designTokenRows, drawsScript, elementStyleById, elementStyleClass, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, ensureAlpha, ensureContrast, entranceDelay, flavorColours, flavorPackById, flavorSeedWrites, flavorSourceStamp, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, groupFontFamilies, hasElementStyleMarker, headingHref, inSrgbGamut, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFontWeightRange, isRetiredFlavorId, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, matchFontWeight, missingDesignRows, missingFontRoles, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, ownedTraitStatus, ownedTraitsOf, packDesignChoices, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planSwissMigration, preTintAccentGrounds, presetChoices, presetModes, previewElementStyleAdoption, previewFontWeight, quantizeRgb, readDesignConfig, readOwnedTrait, relativeLuminance, releaseElementStyle, repeatedRowIndex, resolveDesignChoices, resolveDesignMotion, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, roleClass, sameDesignChoices, scriptsForLocale, setColorScheme, specTokenNames, splitTopLevel, springToLinear, stackNamesFamily, staggerDelay, styleKeyToKebab, stylePresetById, stylePresetOfChoices, switchElementStyle, syncNodeDesignClasses, themeColors, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, untouchedSeedRow, userFontStack, validateFlavorPack, wcagContrastRatio, withSchemeInk, withoutScriptPartners, writeOwnedTrait };
|
|
19500
|
+
export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, AdoptOutcome, AdoptSkipReason, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, BUTTON_VARIANT_TO_STYLE, CANVAS_LINK_ATTRIBUTE, CARD_LINK_CLASS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, COMPOSED_HEADER, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, 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, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, HEADER_THEME_COLOR_TOKEN, HELD_CONTRAST, HeaderAttribute, HeaderBehaviour, HeaderEdge, HeaderTrait, INHERITED_TEXT, LinkType, MAX_FONT_FILE_BYTES, MOOD_IDS, MOOD_LABELS, NEW_NODE_STYLE_DEFAULTS, OwnedTraitLink, PALETTE_PRESETS, PRE_DS2_FLAVOR_DEFAULTS, PRE_MOTION, PRE_TINT_DEFAULT, REDUCED_DESIGN_MOTION, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, ROW_INDEX_ATTRIBUTE, SCHEME_INK, SCROLL_IDS, SPEC_A11Y, SPEC_AXES, SPEC_BUTTON_VARIANT_TO_STYLE, SPEC_CONTRAST, SPEC_CONTRAST_AUDIT, SPEC_DEFAULT_ELEMENT_STYLE, SPEC_ELEMENT_STYLES, SPEC_FIELD_CLASS_BASELINE, SPEC_FLAVORS, SPEC_FLAVOR_PACKS, SPEC_FONTS, SPEC_FONT_ROLES, SPEC_INK_SCOPES, SPEC_LEGACY_ALIASES, SPEC_MOODS, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SCHEME_INK, SPEC_SCRIPTS, SPEC_SPRINGS, SPEC_STYLE_PRESETS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, STAGGER_MAX_ITEMS, STAGGER_SHRINK, STYLE_PRESETS, SUPERSEDED_STYLE_VALUES, SWISS_FLAVOR, THEME_COLOR_TOKEN, TINT_FULL_CHROMA, TINT_IDS, TINT_LEVELS, TINT_OWN_HUE_CHROMA, TINT_TURN_CHROMA, USER_TOKEN_SOURCE, WCAG_AA_TEXT, WCAG_AA_UI, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designApplySnapshot, designBaseline, designConfigEntries, designModeOf, designMotionOf, designRevertConfig, designTokenRepairs, designTokenRows, drawsScript, elementStyleById, elementStyleClass, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, ensureAlpha, ensureContrast, entranceDelay, flavorColours, flavorPackById, flavorSeedWrites, flavorSourceStamp, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerStaysAtTop, headingHref, inSrgbGamut, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFontWeightRange, isRetiredFlavorId, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, matchFontWeight, missingDesignRows, missingFontRoles, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, ownedTraitStatus, ownedTraitsOf, packDesignChoices, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planSwissMigration, preTintAccentGrounds, presetChoices, presetModes, previewElementStyleAdoption, previewFontWeight, quantizeRgb, readDesignConfig, readOwnedTrait, relativeLuminance, releaseElementStyle, repeatedRowIndex, resolveDesignChoices, resolveDesignMotion, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, roleClass, sameDesignChoices, scriptsForLocale, setColorScheme, specTokenNames, splitTopLevel, springToLinear, stackNamesFamily, staggerDelay, styleKeyToKebab, stylePresetById, stylePresetOfChoices, switchElementStyle, syncNodeDesignClasses, themeColors, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, untouchedSeedRow, userFontStack, validateFlavorPack, wcagContrastRatio, withSchemeInk, withoutScriptPartners, writeOwnedTrait };
|
|
18836
19501
|
//# sourceMappingURL=vectoriox-iox-ui-design-core.mjs.map
|